OSDN Git Service

2006-12-18 Kazunori Asayama <asayama@sm.sony.co.jp>
[pf3gnuchains/pf3gnuchains4x.git] / newlib / ChangeLog
1 2006-12-18  Kazunori Asayama <asayama@sm.sony.co.jp>
2
3         * libc/include/machine/setjmp.h[__SPU__]: Replace vector with __vector.
4
5 2006-12-14  Jeff Johnston  <jjohnstn@redhat.com>
6             Eric Blake  <ebb9@byu.net>
7
8         * libc/stdio/fflush.c (fflush): On seekable streams, always flush
9         read but unused data.
10         * libc/stdio/fclose.c (_fclose_r): Always flush streams, since
11         even read streams may have side effects that must happen.
12
13 2006-12-13  Joel Schopp <jschopp@austin.ibm.com>
14
15         * libc/machine/spu/setjmp.S: Fix to handle registers past 115
16         correctly.
17
18 2006-12-13  Joel Schopp <jschopp@austin.ibm.com>
19
20         * libc/include/alloca.h: Add undef alloca to work with xlc.
21
22 2006-12-12  Joel Schopp <jschopp@austin.ibm.com>
23
24         * libc/include/machine/setjmp.h[__SPU__]: Redefine _JBTYPE for 
25         cell spu.
26
27 2006-12-04  Kazunori Asayama  <asayama@sm.sony.co.jp>
28
29         * libc/machine/spu/strncpy.c: Add padding.
30
31 2006-12-04  Kazunori Asayama  <asayama@sm.sony.co.jp>
32
33         * testsuite/newlib.string/tstring.c: 
34
35 2006-12-01  Kazunori Asayama  <asayama@sm.sony.co.jp>
36
37         * libc/machine/spu/strchr.c: Fix mask for misaligned string.
38         * libc/machine/spu/strrchr.c: Ditto.
39
40 2006-11-30  Lev Bishop  <lev.bishop@gmail.com>
41
42         * libc/include/math.h: Allow C99 functions/macros to be
43         defined for C++ even when __STRICT_ANSI__.
44
45 2006-11-29  Jeff Johnston  <jjohnstn@redhat.com>
46
47         * libc/stdio/makebuf.c (__smakebuf): If dealing with
48         an asprintf-family buffer, make the default initial size 64.
49
50 2006-11-29  Eric Blake  <ebb9@byu.net>
51
52         * libc/stdio/fvwrite.c (__sfvwrite_r): Avoid off-by-one error in
53         asprintf, as well as quadratic realloc behavior.
54
55 2006-11-29  Kazunori Asayama  <asayama@sm.sony.co.jpi
56
57         * libc/machine/spu/memset.c: Fix type of explicit cast.
58         * libc/machine/spu/strncmp.c: Add explicit cast.
59         * libc/machine/spu/strrchr.c: Ditto.
60         * libc/machine/spu/strspn.c: Ditto.
61
62 2006-11-22  Luca Barbato  <lu_zero@gentoo.org>
63
64         * libc/machine/spu/memcpy.c: Use spu_splats, explicit cast.
65         * libc/machine/spu/memmove.c: Use spu_splats, explicit cast.
66         * libc/machine/spu/memset.c: Use spu_splats, remove apple-cast.
67         * libc/machine/spu/strchr.c: Use spu_splats, remove apple-cast.
68         * libc/machine/spu/strncat.c: Explicit cast.
69         * libc/machine/spu/strncmp.c: Use spu_splats.
70         * libc/machine/spu/strncpy.c: Explicit cast.
71         * libc/machine/spu/strrchr.c: Use spu_splats.
72         * libc/machine/spu/strspn.c: Use spu_splats.
73
74 2006-11-15  Till Straumann  <strauman@slac.stanford.edu>
75
76         * libc/time/tzset_r.c (_tzset_r): Initialize local variable.
77
78 2006-11-14  Eric Blake  <ebb9@byu.net>
79
80         * libc/stdio/vfprintf.c (_vfprintf_r): Support ' flag.
81         (chclass): ' is a flag.  j, t, and z are modifiers.
82
83 2006-11-08  Jie Zhang  <jie.zhang@analog.com>
84
85         * configure.host: Add support for bfin.
86         * libc/include/machine/ieeefp.h: Define __IEEE_LITTLE_ENDIAN for bfin.
87         * libc/include/machine/setjmp.h: Define _JBLEN for bfin.
88         * libc/machine/bfin/aclocal.m4: Generate.
89         * libc/machine/bfin/configure.in: New.
90         * libc/machine/bfin/configure: Generate.
91         * libc/machine/bfin/Makefile.am: New.
92         * libc/machine/bfin/Makefile.in: Generate.
93         * libc/machine/bfin/setjmp.S: New.
94         * libc/machine/bfin/longjmp.S: New.
95         * libc/machine/configure.in: Add bfin support.
96         * libc/machine/configure: Generate.
97
98 2006-11-07  Corinna Vinschen  <corinna@vinschen.de>
99
100         * libc/include/sys/unistd.h (_SC_STREAM_MAX): Define on Cygwin.
101         (_PC_FILESIZEBITS): Add definition.
102         (_PC_2_SYMLINKS): Ditto.
103         (_PC_SYMLINK_MAX): Ditto.
104
105 2006-10-27  Joel Schopp  <jschopp@austin.ibm.com>
106
107         * libc/machine/spu/memcpy.c: Override generic function with vectorized
108         version optimized for the cell spu.
109         * libc/machine/spu/memmove.c: Ditto.
110         * libc/machine/spu/memset.c: Ditto.
111         * libc/machine/spu/strcat.c: Ditto.
112         * libc/machine/spu/strchr.c: Ditto.
113         * libc/machine/spu/strcmp.c: Ditto.
114         * libc/machine/spu/strcpy.c: Ditto.
115         * libc/machine/spu/strcspn.c: Ditto.
116         * libc/machine/spu/strlen.c: Ditto.
117         * libc/machine/spu/strncat.c: Ditto.
118         * libc/machine/spu/strncmp.c: Ditto.
119         * libc/machine/spu/strncpy.c: Ditto.
120         * libc/machine/spu/strpbrk.c: Ditto.
121         * libc/machine/spu/strrchr.c: Ditto.
122         * libc/machine/spu/strspn.c: Ditto.
123         * libc/machine/spu/strxfrm.c: Ditto.
124         * libc/machine/spu/vec_literal.h: Add abstraction of vector literals, 
125         removing altivec style initializers.
126         * libc/machine/spu/Makefile.am: Add new files to list so they build
127         * libc/machine/spu/Makefile.in: Regenerate from new Makefile.am
128
129 2006-10-27  Jeff Johnston  <jjohnstn@redhat.com>
130
131         * README: Add a brief section on how to regenerate
132         configuration files in newlib.
133
134 2006-10-25  Vladimir Prus  <vladimir@codesourcery.com>
135
136         * libc/include/math.h: (exception): Add a comment
137         telling fixincludes that we handle C vs. C++ issue.
138
139 2006-10-11  Yang Tse  <yangsita@gmail.com>
140
141         * libc/include/machine/setjmp.h: Use __extension__ keyword for gcc's
142         braced-groups.
143
144 2006-10-11  Corinna Vinschen  <corinna@vinschen.de>
145
146         * libc/reent/reeent.c (_reclaim_reent): Free _REENT_MP_RESULT.
147
148 2006-09-26  Jeff Johnston  <jjohnstn@redhat.com>
149
150         * libc/include/stdio.h[_REENT_SMALL]: Do not allow macros
151         for clearerr, feof, or fileno.
152         * libc/include/sys/reent.h[_REENT_SMALL](struct _reent): Change 
153         the dummy std stream scheme to use pointers to const external 
154         fake files, one for each standard stream.
155         * libc/stdio/local.h (CHECK_INIT): Change to take a file pointer
156         argument.  For _REENT_SMALL, reset the file pointer if it
157         matches one of the fake std stream pointers.
158         * libc/stdio/clearerr.c: Fix CHECK_INIT macro to add file pointer
159         argument.
160         * libc/stdio/fclose.c: Ditto.
161         * libc/stdio/feof.c: Ditto.
162         * libc/stdio/ferror.c: Ditto.
163         * libc/stdio/fflush.c: Ditto.
164         * libc/stdio/fgetc.c: Ditto.
165         * libc/stdio/fgets.c: Ditto.
166         * libc/stdio/fileno.c: Ditto.
167         * libc/stdio/findfp.c: Ditto.
168         * libc/stdio/fputc.c: Ditto.
169         * libc/stdio/fputs.c: Ditto.
170         * libc/stdio/fread.c: Ditto.
171         * libc/stdio/freopen.c: Ditto.
172         * libc/stdio/fseek.c: Ditto.
173         * libc/stdio/ftell.c: Ditto.
174         * libc/stdio/fwrite.c: Ditto.
175         * libc/stdio/getc.c: Ditto.
176         * libc/stdio/getdelim.c: Ditto.
177         * libc/stdio/putc.c: Ditto.
178         * libc/stdio/refill.c: Ditto.
179         * libc/stdio/setvbuf.c: Ditto.
180         * libc/stdio/ungetc.c: Ditto.
181         * libc/stdio/vfprintf.c: Ditto.
182         * libc/stdio/vfscanf.c: Ditto.
183         * libc/stdio/wbuf.c: Ditto.: Ditto.
184         * libc/stdio/wsetup.c: Ditto.
185         * libc/stdio64/freopen64.c: Ditto.
186         * libc/stdio64/fseeko64.c: Ditto.
187         * libc/stdio64/ftello64.c: Ditto.
188         * libc/machine/powerpc/vfprintf.c: Ditto.
189         * libc/machine/powerpc/vfscanf.c: Ditto.
190
191 2006-09-22  Paul Brook  <paul@codesourcery.com>
192
193         * libc/include/sys/reent.h: Define and use __reent_assert.
194
195 2006-09-13  Joel Sherrill <joel@oarcorp.com>
196
197         * libc/include/pthread.h: Add pthread barriers,
198         rwlocks, and spinlocks.  Change const to
199         _CONST and prefix parameter names with
200         an underscore.
201         * libc/include/sys/types.h: Add id and attribute
202         types for barriers, wrlocks, and spinlocks.
203         * libc/include/sys/features.h: Enable barriers,
204         wrlocks, and spinlocks for RTEMS.
205
206 2006-09-13  Patrick Mansfield <patmans@us.ibm.com>
207
208         * libc/include/math.h: Remove _CONST from _LIB_VERSION, as it is
209         supposed to be writable.
210         * libm/common/s_lib_ver.c: Ditto.
211
212 2006-09-12  Paul Brook  <paul@codesourcery.com>
213
214         * libc/stdlib/rand.c (srand): Add _REENT_CHECK_RAND48.
215
216 2006-09-07  Masaki Muranaka  <monaka@monami-software.com>
217
218
219         * libc/machine/xstormy16/Makefile.am:
220         Add $(lpfx) prefix to LIBADD objects.
221         lib_a_DEPENDENCIES uses the value of lib_a_LIBADD.
222         * libc/machine/xstormy16/Makefile.in: Regenerated.
223
224 2006-09-06  Eric Blake  <ebb9@byu.net>
225
226         * libc/stdio/vfprintf.c (_vfprintf_r, get_arg): Add 'hh', 'j',
227         't', and 'z' modifiers.
228
229 2006-09-01  Kazu Hirata  <kazu@codesourcery.com>
230
231         Merge from newlib-csl-20060320-branch:
232         2006-05-22  Sandra Loosemore <sandra@codesourcery.com>
233
234         * configure.host: Tell it we have _rename and _system when
235         building m68k-unknown-elf.
236
237 2006-08-29  Paul Brook  <paul@codesourcery.com>
238
239         * libc/include/sys/config.h: Define _REENT_SMALL for Thumb-2.
240
241 2006-08-27  Joel Sherrill <joel.sherrill@OARcorp.com>
242
243         * libc/sys/rtems/machine/sys/param.h: Conditionalize definition of
244         BLKDEV_IOSIZE and MAXPHYS so it will fit into small memory targets.
245         This is needed to build all AVR and H8300 RTEMS multilib variants.
246
247 2006-08-23  Kazunori Asayama  <asayama@sm.sony.co.jp>
248
249         * libc/machine/configure.in: Add configuration for SPU.
250         * libc/machine/configure: Regenerated.
251         * libc/machine/spu/memcpy.c: Include string.h.
252
253 2006-08-22  Eric Blake  <ebb9@byu.net>
254
255         * libc/posix/popen.c (popen): Don't close output end of pipe in
256         child if stdout was closed on entry.
257         [HAVE_FCNTL]: In parent, mark file as close-on-exec, per POSIX.
258
259 2006-08-19  Ramana Radhakrishnan  <ramana.r@gmail.com>
260
261         * sys/types.h: Correct syntax error caused by missing '\' on #ifdef
262         line.
263
264 2006-08-17  Brian Ford  <Brian.Ford@FlightSafety.com>
265
266         * libc/time/gmtime.c: Correct man page; clock is not a
267         local time and no conversion occurs.
268
269 2006-08-16  Joel Schopp  <jschopp@austin.ibm.com>
270
271         * configure.host (newlib_cflags) [spu]: Add special compiler
272         options to reduce size.
273
274 2006-08-16  Joel Schopp  <jschopp@austin.ibm.com>
275
276         * configure.host: Add spu support.
277         * libc/include/stdint.h: Ditto.
278         * libc/include/machine/ieeefp.h: Ditto.
279         * libc/include/machine/setjmp.h: Ditto.
280         * libc/include/sys/config.h: Ditto.
281         * libc/include/sys/types.h: Ditto.
282         * libc/machine/spu/Makefile.am: New file.
283         * libc/machine/spu/Makefile.in: Ditto.
284         * libc/machine/spu/aclocal.m4: Ditto.
285         * libc/machine/spu/configure: Ditto.
286         * libc/machine/spu/configure.in: Ditto.
287         * libc/machine/spu/memcpy.c: Ditto.
288         * libc/machine/spu/setjmp.S: Ditto.
289
290 2006-08-03  J"orn Rennecke  <joern.rennecke@st.com>
291
292         * dtoa.c (dtoa_r): Handle the denormalized _DOUBLE_IS_32BITS case
293         properly.
294
295 2006-08-01  Jeff Johnston  <jjohnstn@redhat.com>
296
297         * libc/Makefile.am: Add libc_TEXINFOS dependency on
298         generated .texi files.
299         * libm/Makefile.am: Add libm_TEXINFOS dependency on
300         generated .texi files.
301         * libc/Makefile.in: Regenerated.
302         * libm/Makefile.in: Ditto.
303
304 2006-08-01  Thiemo Seufer  <ths@mips.com>
305             Nigel Stephens  <nigel@mips.com>
306
307         * libc/include/sys/config.h (__ATTRIBUTE_IMPURE_PTR__): For MIPS
308         define this to force _impure_ptr to live in the .sdata section.
309
310 2006-07-31  Jeff Johnston  <jjohnstn@redhat.com>
311
312         * acinclude.m4: Check for readelf tool.
313         * configure.in: Use ${READELF} instead of hard-coding.
314         * Regenerate all aclocal.m4, Makefile.in, and configure files.
315
316 2006-07-31  Jeff Johnston  <jjohnstn@redhat.com>        
317
318         * libc/sys/linux/mmap.c: Remove include of sys/mman.h
319         to avoid conflict with newer glibc's revision of mremap.
320
321 2006-07-05  Jeff Johnston  <jjohnstn@redhat.com>        
322
323         * libc/stdlib/mprec.h [_DOUBLE_IS_32BITS]: Turn off C99 hex 
324         floating-point format support.  Also redefine
325         dword0 and dword1 macros.
326         * libc/stdlib/strtod.c: Add checks for _DOUBLE_IS_32BITS
327         to prevent setting dword1 which is an rvalue only.
328
329 2006-06-22  Jeff Johnston  <jjohnstn@redhat.com>        
330
331         * libc/stdlib/Makefile.am: Add new gdtoa routines.
332         * libc/stdlib/Makefile.in: Regenerated.
333         * libc/stdlib/gd_qnan.h: New file.
334         * libc/stdlib/gdtoa-gethex.c: Ditto.
335         * libc/stdlib/gdtoa-hexnan.c: Ditto.
336         * libc/stdlib/gdtoa.h: Ditto.
337         * libc/stdlib/mprec.c: Add new helper routines needed by
338         the new gdtoa code.
339         * libc/stdlib/mprec.h: Integrate some defines and prototypes
340         used by gdtoa routines here.
341         * libc/stdlib/strtod.c: Rebased on David M. Gay's gdtoa-strtod.c
342         which adds C99 support such as nan, inf, and hexadecimal input
343         format.
344
345 2006-06-15  Corinna Vinschen  <corinna@vinschen.de>
346
347         * libc/include/stdio.h (__sgetc_r): Fix typo.
348         * libc/stdio/fread.c (_fread_r): Convert crlf calls to crlf_r.
349         * libc/stdio/rget.c (__srbuf): Reinstantiate.
350         * libc/stdio/wbuf.c (__swbuf): Ditto.
351
352 2006-06-14  Jeff Johnston  <jjohnstn@redhat.com>        
353
354         * libc/include/stdio.h: Add new reentrant I/O prototypes for
355         read/write functions.  Change getc/putc macros to have reentrant underlying 
356         macros/functions.  This includes __sgetc_raw_r, __sgetc_r, and __sputc_r.
357         * libc/stdio/fgetc.c: Fix and/or add reentrant version to call
358         new reentrant I/O functions/macros for reading/writing.
359         * libc/stdio/fgets.c: Ditto.
360         * libc/stdio/fputc.c: Ditto.
361         * libc/stdio/fputs.c: Ditto.
362         * libc/stdio/fread.c: Ditto.
363         * libc/stdio/fseek.c: Ditto.
364         * libc/stdio64/fseeko64.c: Ditto.
365         * libc/stdio/fwrite.c: Ditto.
366         * libc/stdio/getc.c: Ditto.
367         * libc/stdio/getc_u.c: Ditto.
368         * libc/stdio/getchar.c: Ditto.
369         * libc/stdio/getchar_u.c: Ditto.
370         * libc/stdio/putc.c: Ditto.
371         * libc/stdio/putc_u.c: Ditto.
372         * libc/stdio/putchar.c: Ditto.
373         * libc/stdio/puts.c: Ditto.
374         * libc/stdio/vfprintf.c: Ditto.
375         * libc/stdio/vfscanf.c: Ditto.
376         * libc/stdio/fvwrite.c: Change __sfvwrite into reentrant __sfvwrite_r.
377         Change all previous callers of __sfvwrite.  Set errno to EBADF and
378         set error flag on if attempt is made to write to file that does not
379         allow writing.
380         * libc/stdio/fvwrite.h: Fix new reentrant prototypes.
381         * libc/stdio/local.h: Ditto.
382         * libc/stdio/refill.c: Turn __srefill into reentrant __srefill_r.
383         Set errno to EBADF and the error flag on if attempt is made to
384         read unreadable file.  Change all previous callers of __srefill.
385         * libc/stdio/rget.c
386         * libc/stdio/wbuf.c: Turn __swbuf into reentrant __swbuf_r.  Change
387         all previous callers of __swbuf.
388         * libc/sys/linux/machine/i386/huge_val.h: Ifdef out file contents since
389         huge value macros are already defined correctly for i386 by <math.h>.
390
391 2006-06-13  Sandra Loosemore <sandra@codesourcery.com>
392
393         * /libc/sys/arm/syscalls.c (_unlink, isatty, _system, _rename):
394         Make them do something useful in the ARM_RDI_MONITOR case.
395
396 2006-06-07  Fred Fish  <fnf@specifix.com>
397
398         * libc/search/hash_bigkey.c (MIN,MAX): Remove
399         defines that are already supplied by <sys/param.h>.
400
401 2006-06-07  Fred Fish  <fnf@specifix.com>
402
403         * configure.host: Remove references to HAVE_GETTIMEOFDAY.
404
405 2006-06-05  Shaun Jackman  <sjackman@gmail.com>
406
407         * libc/posix/Makefile.am (GENERAL_SOURCES): Add sleep.c and
408         usleep.c.
409         * libc/posix/Makefile.in: Regenerate.
410         * libc/posix/sleep.c: New file.
411         * libc/posix/usleep.c: Ditto.
412
413 2006-06-05  Shaun Jackman  <sjackman@gmail.com>
414
415         * configure.host (newlib_cflags) [arm, thumb, xscale]:  Remove
416         -DABORT_PROVIDED flag.
417         * newlib/libc/sys/arm/syscalls.c (kill, exit): Sync with libgloss.
418         * newlib/libc/sys/arm/libcfunc.c (abort): Ditto.
419
420 2006-06-05  Jeff Johnston  <jjohnstn@redhat.com>
421
422         * Makefile.am (AM_MAKEFLAGS): Pass CCASFLAGS.
423         * Makefile.in: Regenerated.
424         * libc/machine/sh/Makefile.am (AM_CCASFLAGS): Remove
425         extraneous CFLAGS reference now that CCASFLAGS are being extended
426         properly via multilib.
427         * libc/machine/sh/Makefile.in: Regenerated.
428
429 2006-06-02  Shaun Jackman  <sjackman@gmail.com>
430
431         * libc/unix/sigset.c: Undefine sigfillset, sigdelset, and
432         sigismember.
433
434 2006-05-23  Jeff Johnston  <jjohnstn@redhat.com>
435
436         * libc/misc/dprintf.c: Removed.
437         * libc/misc/__dprintf.c: Renamed from dprintf.c.
438         * libc/misc/Makefile.am: Changed appropriately for rename.
439         * libc/misc/Makefile.in: Regenerated.
440
441 2006-05-23  Jeff Johnston  <jjohnstn@redhat.com>
442
443         * libc/include/stdio.h: Protect dprintf prototype
444         with #ifndef dprintf so as to not interfere with
445         historical code defining their own dprintf macro.
446
447 2006-05-18  Jeff Johnston  <jjohnstn@redhat.com>
448
449         * libc/include/stdio.h: Add prototypes for fiscanf,
450         iscanf, and siscanf.
451
452 2006-05-11  J"orn Rennecke <joern.rennecke@st.com>
453
454         * acinclude.m4 (_NEWLIB_VERSION): Rename to:
455         (DEF_NEWLIB_VERSION).
456         * configure.in (_NEWLIB_VERSION): Use NEWLIB_VERSION.
457         * configure: Regenerate.
458
459 2006-05-09  Jeff Johnston  <jjohnstn@redhat.com>
460
461         * libc/ctype/Makefile.am: Add $(ELIX_SOURCES) to
462         lib_a_SOURCES.
463         * libc/ctype/Makefile.in: Regenerated.
464
465 2006-05-09  Kazu Hirata  <kazu@codesourcery.com>
466
467         * libc/machine/arm/Makefile.am: Fix a typo.
468         * libc/machine/arm/Makefile.in: Regenerated.
469
470 2006-05-08  J"orn Rennecke <joern.rennecke@st.com>
471
472         * libc/machine/sh/Makefile.am (AM_CCASFLAGS): Add $(CFLAGS).
473         * libc/machine/sh/Makefile.in: Regenerate.
474
475 2006-05-03  J"orn Rennecke <joern.rennecke@st.com>
476
477         * libc/sys/sh/Makefile.am (AM_CCASFLAGS): Add $(CFLAGS).
478         * libc/sys/sh/Makefile.in (AM_CCASFLAGS): Likewise.
479
480 2006-05-02  Jeff Johnston  <jjohnstn@redhat.com>
481
482         * libc/sys/sysnec810/Makefile.am: Specify .S files instead of
483         .s.
484         * libc/sys/sysnec810/Makefile.in: Regenerated.
485         * libc/sys/sysnec810/crt0.S: Renamed from .s file.
486         * libc/sys/sysnec810/io.S: Ditto.
487         * libc/sys/sysnec810/crt0.s: Renamed to .S file.
488         * libc/sys/sysnec810/io.s: Ditto.
489
490 2006-05-01  Jeff Johnston  <jjohnstn@redhat.com>
491
492         * libc/argz/Makefile.am: Prefix any objects specified with $(lpfx).  If source file can
493         be specified instead of object, do so.
494         * libc/ctype/Makefile.am: Ditto.
495         * libc/iconv/ccs/Makefile.am: Ditto.
496         * libc/iconv/ces/Makefile.am: Ditto.
497         * libc/iconv/lib/Makefile.am: Ditto.
498         * libc/locale/Makefile.am: Ditto.
499         * libc/posix/Makefile.am: Ditto.
500         * libc/reent/Makefile.am: Ditto.
501         * libc/search/Makefile.am: Ditto.
502         * libc/stdio/Makefile.am: Ditto.
503         * libc/stdio64/Makefile.am: Ditto.
504         * libc/stdlib/Makefile.am: Ditto.
505         * libc/string/Makefile.am: Ditto.
506         * libc/syscalls/Makefile.am: Ditto.
507         * libc/unix/Makefile.am: Ditto.
508         * libc/machine/a29k/Makefile.am: Specify lib_a_CCASFLAGS so .S files will get
509         prefix added automatically.  Any specified rules must use $(lpfx) for
510         object file names.
511         * libc/machine/arm/Makefile.am: Ditto.
512         * libc/machine/cris/Makefile.am: Ditto.
513         * libc/machine/crx/Makefile.am: Ditto.
514         * libc/machine/d10v/Makefile.am: Ditto.
515         * libc/machine/d30v/Makefile.am: Ditto.
516         * libc/machine/fr30/Makefile.am: Ditto.
517         * libc/machine/frv/Makefile.am: Ditto.
518         * libc/machine/h8300/Makefile.am: Ditto.
519         * libc/machine/h8500/Makefile.am: Ditto.
520         * libc/machine/hppa/Makefile.am: Ditto.
521         * libc/machine/i386/Makefile.am: Ditto.
522         * libc/machine/i960/Makefile.am: Ditto.
523         * libc/machine/iq2000/Makefile.am: Ditto.
524         * libc/machine/m32c/Makefile.am: Ditto.
525         * libc/machine/m32r/Makefile.am: Ditto.
526         * libc/machine/m68hc11/Makefile.am: Ditto.
527         * libc/machine/m68k/Makefile.am: Ditto.
528         * libc/machine/m88k/Makefile.am: Ditto.
529         * libc/machine/mips/Makefile.am: Ditto.
530         * libc/machine/mn10200/Makefile.am: Ditto.
531         * libc/machine/mn10300/Makefile.am: Ditto.
532         * libc/machine/mt/Makefile.am: Ditto.
533         * libc/machine/necv70/Makefile.am: Ditto.
534         * libc/machine/powerpc/Makefile.am: Ditto.
535         * libc/machine/sh/Makefile.am: Ditto.
536         * libc/machine/sh/Makefile.in: Ditto.
537         * libc/machine/sparc/Makefile.am: Ditto.
538         * libc/machine/tic4x/Makefile.am: Ditto.
539         * libc/machine/tic80/Makefile.am: Ditto.
540         * libc/machine/v850/Makefile.am: Ditto.
541         * libc/machine/w65/Makefile.am: Ditto.
542         * libc/machine/xscale/Makefile.am: Ditto.
543         * libc/machine/xstormy16/Makefile.am: Ditto.
544         * libc/machine/z8k/Makefile.am: Ditto.
545         * libc/sys/a29khif/Makefile.am: Ditto.
546         * libc/sys/arm/Makefile.am: Ditto.
547         * libc/sys/d10v/Makefile.am: Ditto.
548         * libc/sys/h8300hms/Makefile.am: Ditto.
549         * libc/sys/h8500hms/Makefile.am: Ditto.
550         * libc/sys/linux/Makefile.am: Ditto.
551         * libc/sys/linux/linuxthreads/Makefile.am: Ditto.
552         * libc/sys/linux/net/Makefile.am: Ditto.
553         * libc/sys/linux/stdlib/Makefile.am: Ditto.
554         * libc/sys/m88kbug/Makefile.am: Ditto.
555         * libc/sys/mmixware/Makefile.am: Ditto.
556         * libc/sys/rdos/Makefile.am: Ditto.
557         * libc/sys/rtems/Makefile.am: Ditto.
558         * libc/sys/sh/Makefile.am: Ditto.
559         * libc/sys/sun4/Makefile.am: Ditto.
560         * libc/sys/sysmec/Makefile.am: Ditto.
561         * libc/sys/sysnec810/Makefile.am: Ditto.
562         * libc/sys/sysnecv850/Makefile.am: Ditto.
563         * libc/sys/sysvi386/Makefile.am: Ditto.
564         * libc/sys/sysvnecv70/Makefile.am: Ditto.
565         * libc/sys/tic80/Makefile.am: Ditto.
566         * libc/sys/w65/Makefile.am: Ditto.
567         * libc/sys/z8ksim/Makefile.am: Ditto.
568         * libc/machine/necv70/fastmath.S: Renamed from .s file.
569         * libc/machine/necv70/setjmp.S: Ditto.
570         * libc/machine/necv70/fastmath.s: Removed.
571         * libc/machine/necv70/setjmp.s: Ditto.
572         * libc/machine/w65/*.S: New files renamed from .s files.
573         * libc/machine/w65/*.s: Renamed and removed.
574         * libc/sys/a29khif/*.S: New files renamed from .s files.
575         * libc/sys/a29khif/*.s: Renamed and removed.
576         * libc/sys/sysvi386/*.S: New files renamed from .s files.
577         * libc/sys/sysvi386/*.s: Renamed and removed.
578         * libc/sys/sysvnecv70/*.S: New files renamed from .s files.
579         * libc/sys/sysvnecv70/*.s: Renamed and removed.
580         * libc/*Makefile.in: Regenerated as appropriate.
581
582 2006-04-24  DJ Delorie  <dj@redhat.com>
583
584         * libc/machine/sh/configure.in: Avoid link tests.
585         * libc/machine/sh/configure: Regenerate.
586
587 2006-04-18  Jeff Johnston  <jjohnstn@redhat.com>
588
589         * libc/include/sys/signal.h (sigdelset, sigfillset, sigismember): New macros.
590         (sigaddset, sigemptyset): Add return code.
591
592 2006-04-13  Ralf Corsepius  <ralf.corsepius@rtems.org>
593
594         * acinclude.m4: New _NEWLIB_VERSION.
595         * acinclude.m4(NEWLIB_CONFIGURE): AC_REQUIRE(_NEWLIB_VERSION).
596         Use AC_CANONICAL_HOST instead of AC_CANONICAL_SYSTEM.
597         Use new form of AC_INIT_AUTOMAKE.
598         * configure.in: AC_PREREQ(2.59).
599         Use autoconf-2.5.x version of AC_INIT.
600         Use AC_CONFIG_FILES and autoconf-2.5x AC_OUTPUT instead of
601         autoconf-2.13's AC_OUTPUT.
602         * libm/configure.in: Ditto.
603         * libm/machine/configure.in: Ditto.
604         * libm/machine/i386/configure.in: Ditto.
605         * libc/configure.in: Ditto.
606         * libc/machine/a29k/configure.in: Ditto.
607         * libc/machine/arm/configure.in: Ditto.
608         * libc/machine/configure.in: Ditto.
609         * libc/machine/mn10300/configure.in: Ditto.
610         * libc/machine/powerpc/configure.in: Ditto.
611         * libc/machine/z8k/configure.in: Ditto.
612         * libc/machine/h8300/configure.in: Ditto.
613         * libc/machine/mips/configure.in: Ditto.
614         * libc/machine/crx/configure.in: Ditto.
615         * libc/machine/m68hc11/configure.in: Ditto.
616         * libc/machine/h8500/configure.in: Ditto.
617         * libc/machine/xscale/configure.in: Ditto.
618         * libc/machine/d10v/configure.in: Ditto.
619         * libc/machine/fr30/configure.in: Ditto.
620         * libc/machine/sh/configure.in: Ditto.
621         * libc/machine/tic80/configure.in: Ditto.
622         * libc/machine/m32r/configure.in: Ditto.
623         * libc/machine/xstormy16/configure.in: Ditto.
624         * libc/machine/i386/configure.in: Ditto.
625         * libc/machine/d30v/configure.in: Ditto.
626         * libc/machine/mn10200/configure.in: Ditto.
627         * libc/machine/frv/configure.in: Ditto.
628         * libc/machine/mt/configure.in: Ditto.
629         * libc/machine/i960/configure.in: Ditto.
630         * libc/machine/v850/configure.in: Ditto.
631         * libc/machine/necv70/configure.in: Ditto.
632         * libc/machine/tic4x/configure.in: Ditto.
633         * libc/machine/cris/configure.in: Ditto.
634         * libc/machine/m68k/configure.in: Ditto.
635         * libc/machine/m32c/configure.in: Ditto.
636         * libc/machine/hppa/configure.in: Ditto.
637         * libc/machine/w65/configure.in: Ditto.
638         * libc/machine/iq2000/configure.in: Ditto.
639         * libc/machine/sparc/configure.in: Ditto.
640         * libc/machine/m88k/configure.in: Ditto.
641         * libc/sys/linux/configure.in: Ditto.
642         * libc/sys/linux/machine/configure.in: Ditto.
643         * libc/sys/linux/machine/i386/configure.in: Ditto.
644         * libc/sys/linux/linuxthreads/configure.in: Ditto.
645         * libc/sys/linux/linuxthreads/machine/configure.in: Ditto.
646         * libc/sys/linux/linuxthreads/machine/i386/configure.in: Ditto.
647         * libc/sys/arm/configure.in: Ditto.
648         * libc/sys/configure.in: Ditto.
649         * libc/sys/decstation/configure.in: Ditto.
650         * libc/sys/a29khif/configure.in: Ditto.
651         * libc/sys/sysnecv850/configure.in: Ditto.
652         * libc/sys/d10v/configure.in: Ditto.
653         * libc/sys/netware/configure.in: Ditto.
654         * libc/sys/mmixware/configure.in: Ditto.
655         * libc/sys/h8500hms/configure.in: Ditto.
656         * libc/sys/sh/configure.in: Ditto.
657         * libc/sys/tic80/configure.in: Ditto.
658         * libc/sys/rdos/configure.in: Ditto.
659         * libc/sys/sysmec/configure.in: Ditto.
660         * libc/sys/sysvi386/configure.in: Ditto.
661         * libc/sys/h8300hms/configure.in: Ditto.
662         * libc/sys/sparc64/configure.in: Ditto.
663         * libc/sys/arc/configure.in: Ditto.
664         * libc/sys/sysnec810/configure.in: Ditto.
665         * libc/sys/m88kbug/configure.in: Ditto.
666         * libc/sys/sysvnecv70/configure.in: Ditto.
667         * libc/sys/z8ksim/configure.in: Ditto.
668         * libc/sys/rtems/configure.in: Ditto.
669         * libc/sys/w65/configure.in: Ditto.
670         * libc/sys/sun4/configure.in: Ditto.
671         * doc/configure.in: Ditto.
672         * iconvdata/configure.in: Ditto.
673         * configure.in: Use AC_CONFIG_HEADER instead of AM_CONFIG_HEADER.
674
675 2006-04-11  Jeff Johnston  <jjohnstn@redhat.com>
676
677         * acinclude.m4: Properly add square brackets for
678         AC_DEFUN macros.  Rewrite LIB_AC_PROG_CC to remove
679         macros no longer available.  Add LIB_AM_PROG_AS to
680         remove prereq of AC_PROG_CC.  Add LIB_AC_PROG_CC_GNU
681         macro.  Substitute lpfx (library object prefix).
682         * configure.host: Set lpfx depending on whether
683         libtool is used or not.
684         * configure.in: Individually specify libc and libm
685         to AC_CONFIG_SUBDIRS.  Add square bracket quoting as
686         necessary.
687         * Makefile.am: Use $(lpfx) to get object names for
688         math-library functions that should also be in libc.
689         * libc/machine/configure.in: Use case statement to determine
690         AC_CONFIG_SUBDIRS statement.
691         * libc/sys/linux/linuxthreads/machine/configure.in: Ditto.
692         * libc/sys/linux/machine/configure.in: Ditto.
693         * libc/sys/configure.in: Ditto.
694         * libm/machine/configure.in: Ditto.
695         * libc/sys/linux/configure.in: Fix up AC_CONFIG_SUBDIRS.
696         * libm/configure.in: Add AM_CONDITIONAL statement
697         for HAVE_LIBM_MACHINE_DIR.
698         * libc/machine/a29k/Makefile.am: Modified to work with
699         latest automake.  Change includes setting AM_CCASFLAGS
700         so building .S files will properly pick up flags used
701         to build C files.
702         * libc/machine/arm/Makefile.am: Ditto.
703         * libc/machine/crx/Makefile.am: Ditto.
704         * libc/machine/d10v/Makefile.am: Ditto.
705         * libc/machine/d30v/Makefile.am: Ditto.
706         * libc/machine/fr30/Makefile.am: Ditto.
707         * libc/machine/frv/Makefile.am: Ditto.
708         * libc/machine/h8300/Makefile.am: Ditto.
709         * libc/machine/h8500/Makefile.am: Ditto.
710         * libc/machine/hppa/Makefile.am: Ditto.
711         * libc/machine/i386/Makefile.am: Ditto.
712         * libc/machine/iq2000/Makefile.am: Ditto.
713         * libc/machine/m32c/Makefile.am: Ditto.
714         * libc/machine/m32r/Makefile.am: Ditto.
715         * libc/machine/m68hc11/Makefile.am: Ditto.
716         * libc/machine/m68k/Makefile.am: Ditto.
717         * libc/machine/m88k/Makefile.am: Ditto.
718         * libc/machine/mips/Makefile.am: Ditto.
719         * libc/machine/mn10200/Makefile.am: Ditto.
720         * libc/machine/mn10300/Makefile.am: Ditto.
721         * libc/machine/mt/Makefile.am: Ditto.
722         * libc/machine/necv70/Makefile.am: Ditto.
723         * libc/machine/powerpc/Makefile.am: Ditto.
724         * libc/machine/sh/Makefile.am: Ditto.
725         * libc/machine/sparc/Makefile.am: Ditto.
726         * libc/machine/tic4x/Makefile.am: Ditto.
727         * libc/machine/tic80/Makefile.am: Ditto.
728         * libc/machine/v850/Makefile.am: Ditto.
729         * libc/machine/w65/Makefile.am: Ditto.
730         * libc/machine/xscale/Makefile.am: Ditto.
731         * libc/machine/xstormy16/Makefile.am: Ditto.
732         * libc/machine/z8k/Makefile.am: Ditto.
733         * libc/sys/a29khif/Makefile.am: Ditto.
734         * libc/sys/arc/Makefile.am: Ditto.
735         * libc/sys/arm/Makefile.am: Ditto.
736         * libc/sys/d10v/Makefile.am: Ditto.
737         * libc/sys/decstation/Makefile.am: Ditto.
738         * libc/sys/h8300hms/Makefile.am: Ditto.
739         * libc/sys/h8500hms/Makefile.am: Ditto.
740         * libc/sys/linux/linuxthreads/machine/i386/Makefile.am: Ditto.
741         * libc/sys/linux/machine/i386/Makefile.am: Ditto.
742         * libc/sys/m88kbug/Makefile.am: Ditto.
743         * libc/sys/mmixware/Makefile.am: Ditto.
744         * libc/sys/netware/Makefile.am: Ditto.
745         * libc/sys/rdos/Makefile.am: Ditto.
746         * libc/sys/rtems/Makefile.am: Ditto.
747         * libc/sys/sh/Makefile.am: Ditto.
748         * libc/sys/sparc64/Makefile.am: Ditto.
749         * libc/sys/sysmec/Makefile.am: Ditto.
750         * libc/sys/sysnec810/Makefile.am: Ditto.
751         * libc/sys/sysnecv850/Makefile.am: Ditto.
752         * libc/sys/sysvi386/Makefile.am: Ditto.
753         * libc/sys/sysvnecv70/Makefile.am: Ditto.
754         * libc/sys/tic80/Makefile.am: Ditto.
755         * libc/sys/w65/Makefile.am: Ditto.
756         * libc/sys/z8ksim/Makefile.am: Ditto.
757         * libm/machine/i386/Makefile.am: Ditto.
758         * libc/sys/arm/Makefile.am: Ditto plus add EXTRA sources including
759         trap.S so that automake will generate a .S.o suffix rule.
760         * libc/argz/Makefile.am: Modified to work with
761         latest automake.  Change includes adding lib_a_CFLAGS
762         so automake doesn't complain about libtool and non-libtool
763         libraries sharing objects.
764         * libc/ctype/Makefile.am: Ditto.
765         * libc/errno/Makefile.am: Ditto.
766         * libc/iconv/ccs/Makefile.am: Ditto.
767         * libc/iconv/ces/Makefile.am: Ditto.
768         * libc/iconv/lib/Makefile.am: Ditto.
769         * libc/locale/Makefile.am: Ditto.
770         * libc/misc/Makefile.am: Ditto.
771         * libc/posix/Makefile.am: Ditto.
772         * libc/reent/Makefile.am: Ditto.
773         * libc/search/Makefile.am: Ditto.
774         * libc/signal/Makefile.am: Ditto.
775         * libc/stdio/Makefile.am: Ditto.
776         * libc/stdio64/Makefile.am: Ditto.
777         * libc/stdlib/Makefile.am: Ditto.
778         * libc/string/Makefile.am: Ditto.
779         * libc/sys/linux/Makefile.am: Ditto.
780         * libc/sys/linux/argp/Makefile.am: Ditto.
781         * libc/sys/linux/cmath/Makefile.am: Ditto.
782         * libc/sys/linux/dl/Makefile.am: Ditto.
783         * libc/sys/linux/iconv/Makefile.am: Ditto.
784         * libc/sys/linux/intl/Makefile.am: Ditto.
785         * libc/sys/linux/linuxthreads/Makefile.am: Ditto.
786         * libc/sys/linux/net/Makefile.am: Ditto.
787         * libc/sys/linux/stdlib/Makefile.am: Ditto.
788         * libc/syscalls/Makefile.am: Ditto.
789         * libc/time/Makefile.am: Ditto.
790         * libc/unix/Makefile.am: Ditto.
791         * libm/Makefile.am: Ditto.
792         * libm/common/Makefile.am: Ditto.
793         * libm/math/Makefile.am: Ditto.
794         * libm/mathfp/Makefile.am: Ditto.
795         * Regenerate all aclocal.m4, Makefile.in, and configure files.
796
797 2006-04-07  Jeff Johnston  <jjohnstn@redhat.com>
798
799         * libc/time/time.c (time): Do not check for HAVE_GETTIMEOFDAY
800         anymore.  Assume there is a gettimeofday syscall.
801
802 2006-03-29  Shaun Jackman  <sjackman@gmail.com>
803
804         * libc/sys/linux/include/netinet/ip.h: Include netinet/in_systm.h
805         for the declaration of n_long.
806
807 2006-03-29  Shaun Jackman  <sjackman@gmail.com>
808
809         * libc/sys/linux/include/net/if.h: Include sys/socket.h for
810         struct sockaddr.
811         (IFF_SMART): Replace this define with IFF_NOTRAILERS.
812         (IFF_CANTCHANGE): Replace IFF_SMART reference with IFF_NOTRAILERS.
813         (IFF_NOTRAILERS): New define.
814         (struct ifreq): Add ifru_netmask.
815         (ifr_netmask): New define.
816
817 2006-03-29  Shaun Jackman  <sjackman@gmail.com>
818
819         * libc/sys/linux/sys/ioccom.h (ioctl): Change declaration to
820         match sys/ioctl.h.
821
822 2006-03-29  Shaun Jackman  <sjackman@gmail.com>
823
824         * libtool.m4: Set lt_cv_deplibs_check_method=pass_all for 
825         linux-newlib libc implementations.
826
827 2006-03-29  Eric Blake  <ebb9@byu.net>
828
829         * libc/stdio/freopen.c (_freopen_r) [__SCLE]: Fix typo.
830         * libc/stdio64/freopen64.c (_freopen64_r) [__SCLE]: Likewise.
831
832 2006-03-29  Jeff Johnston  <jjohnstn@redhat.com>
833
834         * libc/sys/linux/io.c (__mknod): Fix declaration of
835         syscall to pass a dev_t as third argument rather than
836         a pointer to dev_t.
837
838 2006-03-29  Jeff Johnston  <jjohnstn@redhat.com>
839
840         * libc/sys/linux/net/name6.c: Fix struct references.
841
842 2006-03-22  Mark Mitchell  <mark@codesourcery.com>
843
844         * configure.host: Allow hosts to set the default
845         newlib_atexit_dynamic_alloc value.
846         * configure.in: Likewise.
847         * configure: Regenerated.
848
849 2006-03-20  Mark Mitchell  <mark@codesourcery.com>
850
851         * acconfig.h (_ATEXIT_DYNAMIC_ALLOC): Undef.
852         * configure.in (--disable-newlib-atexit-dynamic-alloc): New
853         option. 
854         * configure: Regenerated.
855         * newlib.hin: Regenerated.
856         * libc/stdlib/__atexit.c (__register_exitproc): Don't call malloc
857         if _ATEXIT_DYNAMIC_ALLOC is undefined.
858         * libc/stdlib/__call_atexit.c (__call_exitprocs): Don't call free
859         if _ATEXIT_DYNAMIC_ALLOC is undefined.
860
861 2006-03-17  Jeff Johnston  <jjohnstn@redhat.com>
862
863         * libc/sys/linux/linuxthreads/config.h: Remove definition
864         of UINT32_C.
865
866 2006-03-15  Jeff Johnston  <jjohnstn@redhat.com>
867
868         * libc/stdio/wsetup.c (__swsetup): Don't make a buffer
869         for a string I/O file that isn't using the asprintf family.
870
871 2006-03-07  Eric Blake  <ebb9@byu.net>
872
873         * libc/stdio/freopen.c (_freopen_r) [HAVE_FCNTL]: For NULL
874         filename, allow read-only or write-only FILE atop O_RDWR file
875         descriptor.
876         * libc/stdio64/freopen64.c (_freopen64_r) [HAVE_FCNTL]: Likewise.
877
878 2006-03-07  Jeff Johnston  <jjohnstn@redhat.com>
879
880         * libm/common/sf_isinf.c[_DOUBLE_IS_32BITS]: Undef isinf.
881         * libm/common/sf_isnan.c[_DOUBLE_IS_32BITS]: Undef isnan.
882
883 2006-03-02  Jeff Johnston  <jjohnstn@redhat.com>
884
885         * libm/math/math.tex: Fix reference to sisnan.def which
886         is now in common subdirectory.
887         * libm/mathfp/mathfp.tex: Ditto.
888
889 2006-02-27  Jeff Johnston  <jjohnstn@redhat.com>
890
891         * Makefile.am (MATHOBJS_IN_LIBC): Add s_isinfd, sf_isinff, 
892         s_isnand, and sf_isnanf object files.
893         * Makefile.in: Regenerated.
894         * libc/include/ieeefp.h: Undef isnan and isinf to avoid
895         conflict if <math.h> has previously been included.
896         * libc/include/math.h
897         * libc/include/math.h: Make isnan and isinf macros to
898         conform to C99.
899         (__isinfd, __isinff, __isnand, __isnanf): New functions.
900         * libm/common/Makefile.am: Add new s_isinfd, s_isnand, sf_isinff,
901         and sf_isnanf files.  Also support s_isnan, sf_isnan, s_isinf, and
902         sf_isinf files which have been moved from math/mathfp directories. 
903         * libm/common/Makefile.in: Regenerated.
904         * libm/common/s_isinfd.c: New file.
905         * libm/common/s_isnand.c: Ditto.
906         * libm/common/sf_isinff.c: Ditto.
907         * libm/common/sf_isnanf.c: Ditto.
908         * libm/common/s_isinf.c: Moved from libm/math directory.
909         * libm/common/s_isnan.c: Ditto.
910         * libm/common/sf_isinf.c: Ditto.
911         * libm/common/sf_isnan.c: Ditto.
912         * libm/math/Makefile.am: Remove isinf and isnan family functions
913         which have been moved into common directory.
914         * libm/mathfp/Makefile.am: Ditto.
915         * libm/math/Makefile.in: Regenerated.
916         * libm/mathfp/Makefile.in: Ditto.
917         * libm/math/s_isinf.c: Removed.
918         * libm/math/s_isnan.c: Ditto.
919         * libm/math/sf_isinf.c: Ditto.
920         * libm/math/sf_isnan.c: Ditto.
921         * libm/mathfp/s_isinf.c: Ditto.
922         * libm/mathfp/s_isnan.c: Ditto.
923         * libm/mathfp/sf_isinf.c: Ditto.
924         * libm/mathfp/sf_isnan.c: Ditto.
925
926 2006-02-20  Jeff Johnston  <jjohnstn@redhat.com>
927
928         * libc/stdio/fflush.c (fflush): For an fflush on a read-only
929         stream, turn off fseek/rewind optimization as per POSIX/SUSv3.
930         * libc/stdio/fseek.c (_fseek_r): After a successful unoptimized
931         seek, turn off the __SNPT no-optimization flag.
932
933 2006-02-16  Jeff Johnston  <jjohnstn@redhat.com>
934
935         * libc/sys/linux/aio.c: Define _GNU_SOURCE so struct aioinit
936         will be defined.
937         * libc/sys/linux/sys/types.h: Move <sys/config.h> ahead of
938         <features.h> to preset special flags.
939
940 2006-02-15  Corinna Vinschen  <corinna@vinschen.de>
941
942         * libc/include/sys/time.h (struct timeval): Change member types
943         according to SUSv3.
944         * libc/include/sys/types.h (useconds_t): Change to unsigned
945         according to SUSv3.
946         (suseconds_t): Define type.
947
948 2006-02-13  Jeff Johnston  <jjohnstn@redhat.com>
949             David Carne  <davidcarne@gmail.com>
950
951         * libc/string/strndup_r.c (_strndup_r): Use strnlen logic
952         instead of strlen to determine number of bytes to copy.
953         * libc/string/strnlen.c (strnlen): Fix so check for max limit occurs
954         before looking at storage location.
955
956 2006-02-07  Paul Brook  <paul@codesourcery.com>
957
958         * libc/machine/arm/setjmp.S: Add Thumb-2 support.
959         * libc/sys/arm/crt0.S: Add Thumb-2 startup code.
960         * libc/sys/arm/libcfunc.c (do_AngelSWI): Use AngelSWIInsn.
961         * libc/sys/arm/swi.h (AngelSWIInsn, AngelSWIAsm): Define.
962         * libc/sys/arm/trap.S: Disable for Thumb-2.
963
964 2006-01-31  Leif Ekblad  <leif@rdos.net>
965
966         * configure.host: RDOS support added
967         * libc/include/sys/config.h: Ditto.
968         * libc/sys/rdos/Makefile.am, libc/sys/rdos/Makefile.in: New files.
969         * libc/sys/rdos/aclocal.m4, libc/sys/rdos/chown.c: Ditto.
970         * libc/sys/rdos/close.c, libc/sys/rdos/config.h: Ditto.
971         * libc/sys/rdos/configure, libc/sys/rdos/configure.in: Ditto.
972         * libc/sys/rdos/crt0.S, libc/sys/rdos/execve.c: Ditto.
973         * libc/sys/rdos/fork.c, libc/sys/rdos/fstat.c: Ditto.
974         * libc/sys/rdos/getenv.c, libc/sys/rdos/getpid.c: Ditto.
975         * libc/sys/rdos/gettod.c, libc/sys/rdos/isatty.c: Ditto.
976         * libc/sys/rdos/kill.c, libc/sys/rdos/link.c: Ditto.
977         * libc/sys/rdos/lseek.c, libc/sys/rdos/open.c: Ditto.
978         * libc/sys/rdos/rdos.S, libc/sys/rdos/rdos.h: Ditto.
979         * libc/sys/rdos/rdoshelp.c, libc/sys/rdos/read.c: Ditto.
980         * libc/sys/rdos/readlink.c, libc/sys/rdos/sbrk.c: Ditto.
981         * libc/sys/rdos/stat.c, libc/sys/rdos/symlink.c: Ditto.
982         * libc/sys/rdos/times.c, libc/sys/rdos/unlink.c: Ditto.
983         * libc/sys/rdos/user.def, libc/sys/rdos/wait.c: Ditto.
984         * libc/sys/rdos/write.c: Ditto.
985
986 2006-01-24  Jeff Johnston  <jjohnstn@redhat.com>
987
988         * acinclude.m4: Add nodefine to AM_INIT_AUTOMAKE macro invocation
989         so as not to define PACKAGE and VERSION in newlib.h.
990         * aclocal.m4: Regenerated.
991         * configure: Ditto.
992         * newlib.hin: Ditto.
993
994 2006-01-20  Jeff Johnston  <jjohnstn@redhat.com>
995
996         * acconfig.h: New file to generate newlib.hin from.
997         * newlib.hin: Regenerated.
998         * stamp-h.in: Regenerated.
999         * Makefile.am: Add ACLOCAL_AMFLAGS so aclocal can be
1000         called automatically.
1001         * Makefile.in: Regenerated.
1002         * acinclude.m4: Add proper comment for hack in previous change.
1003         * aclocal.m4 */aclocal.m4: Regenerated.
1004         * configure */configure: Regenerated.
1005
1006 2006-01-11  Jeff Johnston  <jjohnstn@redhat.com>
1007
1008         * acinclude.m4: Add hack to prevent INSTALL in subdirs
1009         from being set to "../".
1010         * Makefile.am: Pass INSTALL in AM_MAKEFLAGS.
1011         * aclocal.m4: Regenerated.
1012         * configure: Ditto.
1013         * Makefile.in: Ditto.
1014         * doc/aclocal.m4: Ditto.
1015         * doc/configure: Ditto.
1016         * iconvdata/aclocal.m4: Ditto.
1017         * iconvdata/configure: Ditto.
1018         * libc/*/aclocal.m4: Ditto.
1019         * libc/*/configure: Ditto.
1020         * libc/libc.texinfo: Ditto.
1021         * libm/*/aclocal.m4: Ditto.
1022         * libm/*/configure: Ditto.
1023
1024 2006-01-10  Eric Blake  <ebb9@byu.net>
1025
1026         * libc/stdio/freopen.c (_freopen_r): Fix use of oflags.
1027         * libc/stdio64/freopen64.c (_freopen64_r): Likewise.
1028
1029 2006-01-10  Jeff Johnston  <jjohnstn@redhat.com>
1030
1031         * libm/mathfp/s_frexp.c: Check for special values on
1032         the original input, not the manipulated output value.
1033         * libm/mathfp/sf_frexp.c: Ditto.
1034         * libm/mathfp/s_atangent.c: Don't use local value branch
1035         when checking for quadrant.
1036         * libm/mathfp/sf_atangent.c: Ditto.
1037
1038 2006-01-09  Jeff Johnston  <jjohnstn@redhat.com>
1039
1040         * libc/stdio/freopen.c: Switch to use isatty instead of _isatty.
1041         * libc/stdio64/freopen64.c: Ditto.
1042
1043 2006-01-09  Eric Blake  <ebb9@byu.net>
1044
1045         * libc/stdio/freopen.c (_freopen_r): Accept NULL filename.
1046         * libc/stdio64/freopen64.c (_freopen64_r): Likewise.
1047
1048 2006-01-06  Jeff Johnston  <jjohnstn@redhat.com>
1049
1050         * libc/sys/linux/include/getopt.h: Add macros needed by
1051         new version of getopt.c in libc/stdlib.
1052
1053 2006-01-04  Gregory Pietsch  <gpietsch@comcast.net>
1054
1055         * libc/stdlib/getopt.c: Replaced with version
1056         that adds getopt_long and getopt_long_only support.
1057         * libc/include/getopt.h: New file.
1058
1059 2005-12-16  Jeff Johnston  <jjohnstn@redhat.com>
1060
1061         * NEWS: Update with 1.14.0 info.
1062         * README: Ditto.
1063         * acinclude.m4: Change version number to 1.14.0.
1064         * aclocal.m4: Regenerated.
1065         * configure: Ditto.
1066         * doc/aclocal.m4: Ditto.
1067         * doc/configure: Ditto.
1068         * libc/*/aclocal.m4: Ditto.
1069         * libc/*/configure: Ditto.
1070         * libc/libc.texinfo: Ditto.
1071         * libm/*/aclocal.m4: Ditto.
1072         * libm/*/configure: Ditto.
1073         * libm/libm.texinfo: Ditto.
1074         * libc/sys/linux/shared.ld: Add VERS_1.14.
1075
1076 2005-12-16  Jeff Johnston  <jjohnstn@redhat.com>
1077
1078         * libc/sys/linux/sys/stat.h: Change *stat64 prototypes to
1079         take a pointer to struct stat64 rather than struct stat.
1080
1081 2005-12-16  Ralf Corsepius <ralf.corsepius@rtems.org>
1082
1083         * libc/include/stdint.h: Prefer long over int for int32_t.
1084         Use __have_long32 to set up int32_t.
1085         * libc/include/inttypes.h: Use "#if xxx" instead of "#ifdef xxx"
1086         (Sync with stdint.h).
1087
1088 2005-12-14  Corinna Vinschen  <corinna@vinschen.de>
1089
1090         * libc/include/sys/fcntl.h: Define O_SYNC unconditionally.  Fix
1091         typo in O_NDELAY comment.
1092
1093 2005-12-13  Nathan Sidwell  <nathan@codesourcery.com>
1094
1095         * libc/include/machine/ieeefp.h (__mt__): Renamed from __ms1__.
1096         * libc/include/machine/setjmp.h (__mt__): Likewise.
1097         * libc/machine/mt/setjmp.S: Rename ms1 reference to mt.
1098         * libc/machine/configure.in: Ditto.
1099
1100 2005-12-12  Nathan Sidwell  <nathan@codesourcery.com>
1101
1102         * configure.host: Replace ms1 arch with mt arch.
1103         * libc/machine/mt: Renamed from ms1 dir.
1104
1105 2005-12-08  Shaun Jackman  <sjackman@gmail.com>
1106
1107         * libc/include/sys/types.h: Remove the ifdef armour around
1108         standard POSIX types.
1109
1110 2005-12-06  Ralf Corsepius <ralf.corsepius@rtems.org>
1111
1112         * libc/sys/rtems/crt0.c: Add rtems_gxx_key_create,
1113         rtems_gxx_key_delete, rtems_gxx_getspecific,
1114         rtems_gxx_setspecific, rtems_gxx_mutex_trylock, 
1115         rtems_gxx_recursive_mutex_init, rtems_gxx_recursive_mutex_lock, 
1116         rtems_gxx_recursive_mutex_trylock, rtems_gxx_recursive_mutex_unlock.
1117
1118 2005-12-05  Christopher Faylor  <cgf@timesys.com>
1119
1120         * libc/include/stdlib.h: Move cygwin declarations to cygwin-specific
1121         file.  Declare unsetenv and _unsetenv_r when not cygwin.
1122
1123 2005-11-18  Jeff Johnston  <jjohnstn@redhat.com>
1124
1125         * libc/time/strptime.c (strptime): Don't abort for %c and %Z.
1126         Treat %c as "%a %b %e %H:%M:%S %Y" and ignore %Z.
1127
1128 2005-11-18  Christopher Faylor  <cgf@timesys.com>
1129
1130         * include/sys/time.h: Move more cygwin stuff to cygwin-specific header.
1131
1132 2005-11-18  Christopher Faylor  <cgf@timesys.com>
1133
1134         * include/time.h: Remove more cygwin-specific stuff.
1135
1136 2005-11-18  Christopher Faylor  <cgf@timesys.com>
1137
1138         * include/time.h: Move cygwin declarations to cygwin-specific header.
1139         * include/sys/time.h: Rename cygwin include to "sys_time.h".
1140
1141 2005-11-17  Jeff Johnston  <jjohnstn@redhat.com>
1142
1143         * libc/sys/linux/dl/dl-local.h: New file based on old dlfcn.h
1144         in libc/sys/linux/include.
1145         * libc/sys/linux/dl/dlfcn.h: Moved to libc/sys/linux/include.
1146         * libc/sys/linux/dl/ldsodefs.h: Include dl-local.h instead of dlfcn.h.
1147         * libc/sys/linux/include/dlfcn.h: Replaced with dlfcn.h formerly
1148         in libc/sys/linux/dl.
1149
1150 2005-11-11  Christopher Faylor  <cgf@timesys.com>
1151
1152         * libc/include/sys/time.h: For cygwin, use general header rather than
1153         specific "sys/select.h".
1154
1155 2005-11-08  Tom Walsh  <tom@openhardware.net>
1156
1157         * libc/time/tzvars.c: New file.
1158         * libc/time/tzset_r.c: Moved globals into tzvars.c
1159         so other time functions needn't link in __tzset_r and its
1160         dependencies.
1161         * libc/time/Makefile.am: Add the new file.
1162         * libc/time/Makefile.in: Regenerated.
1163
1164 2005-11-08  Christopher Faylor  <cgf@timesys.com>
1165
1166         * libc/include/string.h: Add cygwin-specific function declaration.
1167
1168 2005-11-07  Corinna Vinschen  <corinna@vinschen.de>
1169
1170         * libc/include/ieeefp.h: Add C++ guards.
1171
1172 2005-11-03  Jeff Johnston  <jjohnstn@redhat.com>
1173
1174         * libc/unix/getcwd.c: Don't use non-reentrant syscall names.
1175         * libc/unix/getlogin.c: Ditto.
1176         * libc/unix/getpass.c: Ditto.
1177         * libc/unix/getut.c: Ditto.
1178         * libc/unix/ttyname.c: Ditto.
1179
1180 2005-11-03  Shaun Jackman  <sjackman@gmail.com>
1181
1182         * libc/include/sys/unistd.h (readlink, symlink): Provide these
1183         prototypes by default.
1184         * libc/sys/linux/include/unistd.h (readlink): Remove this
1185         prototype.
1186         * libc/sys/linux/sys/unistd.h (readlink, symlink): New
1187         prototypes.
1188
1189 2005-11-01  Ralf Corsepius <ralf.corsepius@rtems.org>
1190
1191         * libc/include/stdint.h: Cleanup #if vs. #ifdef.
1192
1193 2005-10-31  Darin Johnson  <darin@usa.net>
1194
1195         * libm/mathfp/s_mathcnst.c: Fix endian-ness check to be
1196         correct for constants.
1197
1198 2005-10-28  Bob Wilson  <bob.wilson@acm.org>
1199
1200         * libc/stdio/siprintf.c: Wrap long lines in ANSI_SYNOPSIS.
1201         * libc/stdio/siscanf.c: Likewise.
1202         * libc/stdio/sprintf.c: Likewise.
1203         * libc/stdio/sscanf.c: Likewise.
1204         * libc/stdio/vfprintf.c: Likewise.
1205         * libc/stdio/vfscanf.c: Likewise.
1206         * libc/stdio/viprintf.c: Likewise.
1207         * libc/stdio/viscanf.c: Likewise.
1208
1209 2005-10-28  Bob Wilson  <bob.wilson@acm.org>
1210
1211         * libc/sys.tex (Stubs): Format examples consistently.   Change sbrk
1212         example to use "_end" symbol instead of "end".  Change write  example
1213         to use "outbyte" instead of "writechar".
1214
1215 2005-10-28  Bob Wilson  <bob.wilson@acm.org>
1216
1217         * libc/ctype/ctype.tex: Use hyphens as appropriate, but not  otherwise.
1218         * libc/ctype/islower.c: Likewise.
1219         * libc/ctype/isupper.c: Likewise.
1220         * libc/ctype/iswalnum.c: Likewise.
1221         * libc/ctype/iswalpha.c: Likewise.
1222         * libc/ctype/iswblank.c: Likewise.
1223         * libc/ctype/iswcntrl.c: Likewise.
1224         * libc/ctype/iswdigit.c: Likewise.
1225         * libc/ctype/iswgraph.c: Likewise.
1226         * libc/ctype/iswlower.c: Likewise.
1227         * libc/ctype/iswprint.c: Likewise.
1228         * libc/ctype/iswpunct.c: Likewise.
1229         * libc/ctype/iswspace.c: Likewise.
1230         * libc/ctype/iswupper.c: Likewise.
1231         * libc/ctype/iswxdigit.c: Likewise.
1232         * libc/ctype/tolower.c: Likewise.
1233         * libc/ctype/toupper.c: Likewise.
1234         * libc/ctype/towctrans.c: Likewise.
1235         * libc/ctype/towlower.c: Likewise.
1236         * libc/ctype/towupper.c: Likewise.
1237         * libc/string/strcasecmp.c: Likewise.
1238         * libc/string/strcoll.c: Likewise.
1239         * libc/string/strings.tex: Likewise.
1240         * libc/string/strlwr.c: Likewise.
1241         * libc/string/strncasecmp.c: Likewise.
1242         * libc/string/strupr.c: Likewise.
1243         * libc/string/wcscoll.c: Likewise.
1244         * libc/string/wcslcat.c: Likewise.
1245         * libc/string/wcslcpy.c: Likewise.
1246         * libc/string/wcsnlen.c: Likewise.
1247         * libc/string/wcsstr.c: Likewise.
1248         * libc/string/wcstrings.tex: Likewise.
1249         * libc/string/wmemchr.c: Likewise.
1250         * libc/string/wmemcmp.c: Likewise.
1251         * libc/string/wmemcpy.c: Likewise.
1252         * libc/string/wmemmove.c: Likewise.
1253         * libc/string/wmemset.c: Likewise. 
1254
1255 2005-10-28  Bob Wilson  <bob.wilson@acm.org>
1256
1257         * libc/misc/unctrl.c: Replace FUNCTION description.
1258         * libc/signal/signal.c: Remove documentation for raise and  _raise_r.
1259         * libc/stdio/getdelim.c: Fix spelling errors.
1260         * libc/stdio/getw.c: Put RETURNS on a separate line.  Fix  punctuation.
1261         * libc/stdio/putw.c: Likewise.
1262         * libc/stdlib/a64l.c: Fix formatting, spelling and  punctuation in
1263         documentation.
1264         * libc/stdlib/assert.c: Do not capitalize FUNCTION description.
1265         * libc/stdlib/efgcvt.c: Add spaces to FUNCTION description.
1266         * libc/stdlib/envlock.c: Use em-dash in FUNCTION description.
1267         * libc/stdlib/mlock.c: Likewise.
1268         * libc/stdlib/mstats.c: Likewise.
1269         * libc/time/tzlock.c: Likewise.
1270         * libc/stdlib/rand.c: Use "multi-threaded" and "thread-safe"  in NOTES.
1271         * libc/stdlib/rand48.c: Remove extra space in FUNCTION  description
1272         and hyphenate "pseudo-random".
1273         * libc/string/bcmp.c: Remove extra blank lines in  documentation.
1274         * libc/string/strncat.c: Likewise.
1275         * libc/string/memchr.c: Remove extra ">" character in  documentation.
1276         * libc/string/strcspn.c: Use "characters" instead of "chars".
1277         * libc/string/strpbrk.c: Likewise.
1278         * libc/string/strerror_r.c: Capitalize "GNU".
1279         * libc/string/strnlen.c: Likewise.
1280         * libc/string/strtok.c: Fix formatting, spelling and  punctuation in
1281         documentation.  Use "multi-threaded" and "thread-safe" in  NOTES.
1282         * libc/string/wcscat.c: Split PORTABILITY into two paragraphs.
1283         * libc/string/wcschr.c: Likewise.
1284         * libc/string/wcscmp.c: Likewise.
1285         * libc/string/wcscpy.c: Likewise.
1286         * libc/string/wcscspn.c: Likewise.
1287         * libc/string/wcslen.c: Likewise.
1288         * libc/string/wcsncat.c: Likewise.
1289         * libc/string/wcsncmp.c: Likewise.
1290         * libc/string/wcsncpy.c: Likewise.
1291         * libc/string/wcsnlen.c: Likewise.
1292         * libc/string/wcspbrk.c: Likewise.
1293         * libc/string/wcsrchr.c: Likewise.
1294         * libc/string/wcsspn.c: Likewise.
1295         * libc/string/wmemchr.c: Likewise.
1296         * libc/string/wmemcmp.c: Likewise.
1297         * libc/string/wmemcpy.c: Likewise.
1298         * libc/string/wmemset.c: Likewise.
1299         * libc/string/wmemmove.c: Likewise.  Also fix FUNCTION  description.
1300         * libc/string/wcswidth.c: Formatting and punctuation in  documentation.
1301         * libc/string/wcwidth.c: Likewise.
1302         * libm/common/s_modf.c: Remove extra period from documentation.
1303         * libm/math/s_isnan.c: Fix formatting, grammar and  punctuation in
1304         documentation.
1305         * libm/mathfp/s_isnan.c: Likewise.
1306         * libm/math/s_ldexp.c: Fix punctuation.
1307         * libm/mathfp/s_ldexp.c: Likewise.
1308         * libm/math/w_log.c: Likewise.
1309         * libm/mathfp/s_logarithm.c: Likewise.
1310         * libm/math/w_j0.c: Add spaces to FUNCTION description.
1311         * libm/mathfp/w_jn.c: Likewise. 
1312
1313 2005-10-26  Shaun Jackman  <sjackman@gmail.com>
1314
1315         * libc/posix/scandir.c (scandir): Update the function
1316         prototype to match the header.
1317         * libc/sys/linux/linuxthreads/bits/libc-lock.h: Remove an
1318         extraneous #endif.
1319         * libc/sys/linux/sys/lock.h: Do not include
1320         machine/weakalias.h, since it's not used by this file.
1321
1322 2005-10-26  Jeff Johnston  <jjohnstn@redhat.com>
1323
1324         * libc/Makefile.am: Reorder SUBLIBS so machine and sys
1325         directories can override properly.
1326
1327 2005-10-20  Jeff Johnston  <jjohnstn@redhat.com>
1328
1329         * libc/include/math.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): When
1330         gcc is 3.3 or greater, use special gcc builtins.
1331
1332 2005-10-20  Corinna Vinschen <corinna@vinschen.de>
1333
1334         * libc/include/sys/time.h: Declare futimes and lutimes for Cygwin.
1335
1336 2005-10-18  Corinna Vinschen <corinna@vinschen.de>
1337
1338         * libc/include/sys/features.h: Define _POSIX_MEMLOCK_RANGE for Cygwin.
1339
1340 2005-10-14  Jeff Johnston  <jjohnstn@redhat.com>
1341
1342         * libc/include/math.h (HUGE_VALF, HUGE_VALL): New.
1343         * libm/common/Makefile.am: Add s_infconst.c support.
1344         * libm/common/Makefile.in: Regenerated.
1345         * libm/common/s_infconst.c: New file with float and
1346         long double infinity support added.
1347         * libm/math/Makefile.am: Remove s_infconst.c support.
1348         * libm/math/Makefile.in: Regenerated.
1349         * libm/math/s_infconst.c: Moved to common directory.
1350         * libm/mathfp/Makefile.am: Remove s_infconst.c support.
1351         * libm/mathfp/Makefile.in: Regenerated.
1352         * libm/mathfp/s_infconst.c: Moved to common directory.
1353
1354 2005-10-14  Jeff Johnston  <jjohnstn@redhat.com>
1355
1356         * libc/sys/linux/net/gethostbydns.c (dprintf): Rename to
1357         dbgprintf to prevent conflict with new dprintf function.
1358
1359 2005-10-14  Jeff Johnston  <jjohnstn@redhat.com>
1360
1361         * libc/stdio/vfprintf.c (_VFPRINTF_R): Fix up "inf" and
1362         "nan" processing for systems that have long double support.
1363
1364 2005-10-14  Jeff Johnston  <jjohnstn@redhat.com>
1365
1366         * libc/sys/linux/sys/types.h (int8_t): Add type.
1367
1368 2005-10-14  Bob Wilson  <bob.wilson@acm.org>
1369
1370         * libm/common/Makefile.am (doc): Do not append to $(TARGETDOC).
1371         * libm/common/Makefile.in: Regenerate.
1372         * libm/common/common.tex: Delete file.
1373         * libm/math/math.tex: Include .def files from common/.
1374         * libm/mathfp/mathfp.tex: Likewise.
1375
1376 2005-10-14  Bob Wilson  <bob.wilson@acm.org>
1377
1378         * libc/libc.texinfo (Top): Surround this node with @ifnottex
1379         instead of @ifinfo.  Update menu to add Introduction and match
1380         SUBDIRS order.
1381         (Introduction): New section.
1382
1383 2005-10-14  Bob Wilson  <bob.wilson@acm.org>
1384
1385         * libc/reent/reent.tex (Reentrancy): Replace "Cygnus C Library"
1386         with "Red Hat newlib C Library".
1387         * libc/sys.tex (Stubs): Likewise.
1388         * libm/math/math.tex (Math): Likewise.
1389         * libm/mathfp/mathfp.tex (Math): Likewise.
1390
1391 2005-10-11  Shaun Jackman  <sjackman@gmail.com>
1392
1393         * libc/include/stdio.h (dprintf): New declaration.
1394         (vdprintf): Ditto.
1395         * libc/stdio/Makefile.am (GENERAL_SOURCES): Add dprintf.c
1396         and vdprintf.c.
1397         * libc/stdio/Makefile.in: Regenerate.
1398         * libc/stdio/dprintf.c: New file.
1399         * libc/stdio/vdprintf.c: New file.
1400         * libc/stdio/stdio.tex (dprintf): New entry.
1401
1402 2005-10-11  David Weatherford  <weath@tensilica.com>
1403
1404         * libc/stdio/vfprintf.c (_VFPRINTF_R): Recognize 'F' format.
1405         Print "inf" and "nan" in lowercase for e/f/g formats and in 
1406         uppercase for E/F/G formats.
1407
1408 2005-10-07  Bob Wilson  <bob.wilson@acm.org>
1409
1410         * libc/stdlib/mallocr.c (mALLOc, rEALLOCc, mEMALIGn): Set errno
1411         to ENOMEM on failure.
1412
1413 2005-10-06  Ralf Corsepius <ralf.corsepius@rtems.org>
1414
1415         * libc/include/stdint.h: Add [u]int_fast<N>_t types.
1416
1417 2005-10-04  Ralf Corsepius <ralf.corsepius@rtems.org>
1418
1419         * libc/include/stdint.h: Move magic to set __have_long* to the
1420         beginning.  Use #if __have* instead of #if defined(__have*).
1421         Minor typo fixes.
1422
1423 2005-10-04  James E Wilson  <wilson@specifix.com>
1424
1425         * libc/include/sys/dirent.h (_DIRENT_H_): Delete #include_next.  Add
1426         #error.
1427
1428 2005-10-03  Jeff Johnston  <jjohnstn@redhat.com>
1429
1430         * libc/sys/linux/include/stdint.h: Include <sys/types.h> and
1431         incorporate Ralf's change below.
1432
1433 2005-10-03  Ralf Corsepius <ralf.corsepius@rtems.org>
1434
1435         * libc/include/stdint.h: 
1436         Use __INTMAX_TYPE__ to derive intmax_t.
1437         Use __UINTMAX_TYPE__ to derive uintmax_t.
1438         Fix minor typo.
1439
1440 2005-09-27  Ralf Corsepius <ralf.corsepius@rtems.org>
1441
1442         * libc/include/stdint.h: Correct __STDINT_EXP macro incorrectly 
1443         handling GCC >= 4.
1444
1445 2005-09-20  Jeff Johnston  <jjohnstn@redhat.com>
1446
1447         * libc/sys/linux/include/stdint.h: Update to match functionality
1448         of generic newlib stdint.h.
1449
1450 2005-09-20  Jeff Johnston  <jjohnstn@redhat.com>
1451
1452         * libc/include/stdint.h (__EXP): Rename to __STDINT_EXP
1453         and do not #undef the macro after it is used.  Fix typos.
1454         Also change 64-bit constants to use the __have_long64 and
1455         __have_longlong64 flags to determine if long or long long
1456         constants should be used.
1457         * libc/include/inttypes.h: Include stddef.h to get wchar_t
1458         type defined.
1459
1460 2005-09-20  Shaun Jackman  <sjackman@gmail.com>
1461
1462         * libc/include/stdint.h: Fix typo in names of
1463         LEAST macros.
1464
1465 2005-09-20  Jeff Johnston  <jjohnstn@redhat.com>
1466
1467         * libc/sys/rtems/include/inttypes.h: Moved to...
1468         * libc/include/inttypes.h: ...here.
1469
1470 2005-09-19  Jeff Johnston  <jjohnstn@redhat.com>
1471
1472         * libc/sys/rtems/include/stdint.h: Moved to...
1473         * libc/include/stdint.h: ...here.
1474
1475 2005-09-08  Jeff Johnston  <jjohnstn@redhat.com>
1476
1477         * Makefile.am: Add include files under bits sub-directory.
1478         * Makefile.in: Regenerated.
1479         * libc/sys/linux/argp/argp-fs-xinl.c: Set __OPTIMIZE__ to
1480         actual value of 1 to be compatible with newer glibc headers.
1481         * libc/sys/linux/sys/cdefs.h: Fix to be compatible with newer
1482         glibc headers.
1483         * libc/sys/linux/sys/dirent.h: Ditto.
1484         * libc/sys/linux/argp/argp-xinl.c: Ditto.
1485         * libc/sys/linux/dl/dl-runtime.c: Make sure fixup and
1486         profile_fixup routines are marked used so they won't be
1487         optimized away.
1488         * libc/sys/linux/dl/dl-cache.c: Don't use weak_extern macro
1489         to mark functions as weak.
1490         * libc/sys/linux/dl/dl-open.c: Ditto.
1491         * libc/sys/linux/iconv/gconv_open.c: Fix to obey new gcc4
1492         rules about lvalues.
1493         * libc/sys/linux/iconv/gconv_simple.c: Ditto.
1494         * libc/sys/linux/linuxthreads/bits/libc-lock.h: Don't use
1495         weak_extern macro to mark functions as weak.  Instead always
1496         use #pragma weak.
1497         * iconvdata/jis0208.h: Fix to work with gcc4.
1498         * libc/sys/linux/dl/dl-load.c: Ditto.
1499         * libc/sys/linux/dl/dl-reloc.c: Ditto.
1500         * libc/sys/linux/dl/do-rel.h: Ditto.
1501         * libc/sys/linux/dl/dynamic-link.h: Ditto.
1502         * libc/sys/linux/include/ltdl.h: Ditto.
1503         * libc/sys/linux/machine/i386/dl-machine.h: Ditto.
1504         * libc/sys/linux/machine/i386/weakalias.h: Ditto.
1505         * libc/sys/linux/net/ns_ntoa.c: Ditto.
1506         * libc/sys/linux/bits/initspin.h: New file.
1507         * libc/sys/linux/bits/libc-lock.h: Ditto.
1508         * libc/sys/linux/bits/pthreadtypes.h: Ditto.
1509         * libc/sys/linux/bits/typesizes.h: Ditto.
1510
1511 2005-09-08  Eric Blake  <ebb9@byu.net>
1512
1513         * libc/argz/argz_insert.c (argz_insert): Don't die with EINVAL when
1514         before is NULL.
1515
1516 2005-09-08  Brian Dessent  <brian@dessent.net>
1517
1518         * sf_lrint.c (lrintf): Mask 'i0' correctly when extracting
1519         mantissa.
1520         * s_lrint.c: Ditto.
1521
1522 2005-09-02  Jeff Johnston  <jjohnstn@redhat.com>
1523
1524         * libc/include/stdio.h: Add prototype for viprintf.
1525
1526 2005-09-01  Jeff Johnston  <jjohnstn@redhat.com>
1527
1528         * libm/mathfp/s_pow.c: (pow): Change code so 0 raised to
1529         any positive power results in 0.
1530         * libm/mathfp/sf_pow.c (powf): Ditto.
1531
1532 2005-08-31  Paul Brook  <paul@codesourcery.com>
1533
1534         * configure.host: Set have_crt0 to no for Arm targts when not
1535         providing syscalls.  Set sys_dir=arm unconditionally.
1536         Default have_crt0 based on sys_dir.
1537         * configure.in: Use have_crt0.
1538         * libc/configure.in: Ditto.
1539         * libc/sys/configure.in: Ditto.
1540         * configure: Regenerate.
1541         * libc/configure: Regenerate.
1542         * libc/sys/configure: Regenerate.
1543         * libc/sys/arm/Makefile.am (lib_a_SOURCES): Add aeabi_atexit.c.
1544         Only build other files when providing syscalls.
1545         * libc/sys/arm/Makefile.in: Regenerate.
1546         * libc/sys/arm/aeabi_atexit.c: New file.
1547
1548 2005-08-26  Christopher Faylor  <cgf@timesys.com>
1549
1550         * libc/include/string.h: Revert previous change.
1551
1552 2005-08-25  Christopher Faylor  <cgf@timesys.com>
1553
1554         * libc/include/string.h: For Cygwin, Define strerror_r as per ISO C.
1555
1556 2005-08-22  Shaun Jackman  <sjackman@gmail.com>
1557
1558         * libc/include/_syslist.h: If HAVE_OPENDIR is not defined,
1559         define _opendir as opendir, _readdir as readdir, and
1560         _closedir as closedir so that the implementations in
1561         libc/posix will be used.
1562
1563 2005-08-10  DJ Delorie  <dj@redhat.com>
1564
1565         * MAINTAINERS (CPU Ports): Add CPU port maintainer section.
1566
1567 2005-08-10  Stephen Huw Clarke  <stephen.clarke@st.com>
1568
1569         * libm/common/sf_fmax.c: Fix to properly handle NaNs.
1570         * libm/common/s_max.c: Ditto.
1571         * libm/common/sf_fmin.c: Ditto.
1572         * libm/common/s_min.c: Ditto.
1573
1574 2005-08-10  DJ Delorie  <dj@redhat.com>
1575
1576         * configure.host: Add m32c support.
1577         * libc/include/machine/ieeefp.h: Likewise.
1578         * libc/include/machine/setjmp.h: Likewise.
1579         * libc/include/sys/config.h: Likewise.
1580         * libc/machine/m32c: New directory, Renesas R8C/M16C/M32C support.
1581         * libc/machine/m32c/aclocal.m4: New file.
1582         * libc/machine/m32c/configure: Ditto.
1583         * libc/machine/m32c/configure.in: Ditto.
1584         * libc/machine/m32c/Makefile.am: Ditto.
1585         * libc/machine/m32c/Makefile.in: Ditto.
1586         * libc/machine/m32c/setjmp.S: Ditto.
1587
1588 2005-08-02  Bob Wilson  <bob.wilson@acm.org>
1589
1590         * libm/math/ef_hypot.c (__ieee754_hypotf): Add missing exponent bias
1591         to the value for 2^126.
1592
1593 2005-07-26  Hans-Peter Nilsson  <hp@bitrange.com>
1594
1595         * libc/machine/cris/libcdtor.c (defaultors): Mark artificially as
1596         used.
1597
1598 2005-07-20  Bob Wilson  <bob.wilson@acm.org>
1599            Darin Petkov <darin@tensilica.com>
1600
1601        * libm/math/ef_atan2.c (pi, pi_lo): Use round-to-nearest value of pi.
1602
1603 2005-07-19  Paul Brook  <paul@codesourcery.com>
1604
1605         * libc/sys/arm/crt0.S: Ensure doubleword stack alignment.
1606
1607 2005-07-18  Joseph S. Myers  <joseph@codesourcery.com>
1608
1609         * testsuite/lib/checkoutput.exp (newlib_check_output): Use test
1610         names after PASS and FAIL which do not depend on source directory
1611         name or on whether test passed or failed.
1612         * testsuite/lib/passfail.exp (newlib_pass_fail): Likewise.
1613
1614 2005-07-08  Ola Hugosson   <Ola.Hugosson@anoto.com>
1615
1616         * libc/string/wcsspn.c (wcsspn): Add missing increment of q.
1617
1618 2005-07-07  Shaun Jackman  <sjackman@gmail.com>
1619
1620         * libc/unix/ttyname.c (ttyname): Avoid calling _closedir
1621         twice for the same directory. _closedir calls free, and freeing
1622         the same pointer twice may cause a crash.
1623
1624 2005-07-06  Aldy Hernandez  <aldyh@redhat.com>
1625
1626         * configure.host: Added entry for ms1*.
1627         * libc/include/machine/ieeefp.h: Handle ms1.
1628         * libc/include/machine/setjmp.h (_JBLEN): Define for ms1.
1629         * libc/machine/ms1/aclocal.m4: New.
1630         * libc/machine/ms1/configure: New.
1631         * libc/machine/ms1/configure.in: New.
1632         * libc/machine/ms1/Makefile.am: New.
1633         * libc/machine/ms1/Makefile.in: New.
1634         * libc/machine/ms1/setjmp.S: New.
1635
1636 2005-07-04  Mark Mitchell  <mark@codesourcery.com>
1637
1638         * Makefile.am (site.exp): Set tmpdir.
1639         * Makefile.in: Regenerated.
1640         * testsuite/lib/checkoutput.exp (newlib_check_output): Put
1641         executables in $tmpdir.
1642         * testsuite/lib/flags.exp (libgloss_link_flags): Use the original
1643         libgloss version if not running in the build directory.
1644         * testsuite/lib/newlib.exp (newlib_init): Put testglue.o in
1645         $tmpdir.
1646         * testsuite/lib/passfail.exp (newlib_pass_fail): Put executables
1647         in $tmpdir.
1648
1649 2005-06-28  Dave Korn  <dave.korn@artimi.com>
1650
1651         * libm/common/s_lrint.c (lrint):  Fix signed-vs-unsigned comparison
1652         and miscalculation caused by fp representation of zero.
1653         * libm/common/sf_lrint.c (lrintf):  Likewise.
1654
1655 2005-06-16  Christopher Faylor  <cgf@timesys.com>
1656
1657         * libc/stdio/vfprintf.c (cvt): Don't rely on pointer aliasing to
1658         determine characteristics of long double.  Use a union instead.
1659         * ldtoa.c (_ldtoa_r): Ditto.
1660         (_ldcheck): Ditto.
1661         (_strtold): Ditto.
1662         (union uconv): New union.
1663
1664 2005-06-03  Jeff Johnston  <jjohnstn@redhat.com>
1665
1666         * libc/stdlib/mallocr.c (MALLOC_COPY): Switch to use memmove
1667         instead of memcpy.
1668
1669 2005-05-12  Jeff Johnston  <jjohnstn@redhat.com>
1670
1671         * configure.host (mn10300-*): Add long long I/O support by default.
1672
1673 2005-05-12  Jeff Johnston  <jjohnstn@redhat.com>
1674
1675         * libc/sys/linux/getpwuid.c: Removed.
1676         * libc/sys/linux/getpwnam.c: Removed.
1677         * libc/sys/linux/getpwent.c: New file containing logic
1678         from files removed above.  This allows overriding of file
1679         in libc/unix.
1680         * libc/sys/linux/Makefile.am: Support changes above.
1681         * libc/sys/linux/Makefile.in: Regenerated.
1682
1683 2005-04-28  Jeff Johnston  <jjohnstn@redhat.com>
1684
1685         * libc/stdio/vfscanf.c (__svfscanf_r): Fix code thinko
1686         when checking for multiple flags.
1687
1688 2005-04-18  Hans-Peter Nilsson  <hp@axis.com>
1689
1690         * configure.host <cris-*-* | crisv32-*-*>: Set
1691         default_newlib_io_long_long="yes".
1692
1693 2005-04-08  Jeff Johnston  <jjohnstn@redhat.com>
1694
1695         * libc/include/libgen.h: New file.
1696
1697 2005-04-08  Shaun Jackman  <sjackman@gmail.com>
1698
1699         * libc/unix/Makefile.am: Add support for basename and dirname.
1700         * libc/unix/Makefile.in: Regenerated.
1701         * libc/unix/basename.c: New file.
1702         * libc/unix/dirname.c: New file.
1703
1704 2005-04-07  Shaun Jackman  <sjackman@gmail.com>
1705
1706         * libc/sys/linux/inode.c (lchown): New function.
1707
1708 2005-04-07  Shaun Jackman  <sjackman@gmail.com>
1709
1710         * libc/unix/Makefile.am (LIB_OBJS): Include all the ELIX objects if no
1711         ELIX level is defined.
1712         * libc/unix/Makefile.in: Regenerated.
1713
1714 2005-04-05  Dave Korn  <dave.korn@artimi.com>
1715
1716         * libc/stdio/vfscanf.c (__svfscanf_r): If an error occurs processing
1717         something that looks like a "NaN", put back the characters processed.
1718
1719 2005-04-01  Corinna Vinschen  <corinna@vinschen.de>
1720
1721         * libc/stdlib/strtod.c (_strtod_r): Never change s00.
1722
1723 2005-03-23  Christopher Faylor  <cgf@timesys.com>
1724
1725         * configure.host: For cygwin, redefine CC with cygwin include directory
1726         first to mimic the behavior of the top-level configury.  Move include
1727         directory out of newlib_cflags.
1728
1729 2005-03-22  Jeff Johnston  <jjohnstn@redhat.com>
1730
1731         * configure.host: For arc, set -DREENTRANT_SYSCALLS_PROVIDED flag on.
1732         * libc/sys/arc/syscalls.c: Change functions to use __errno_r rather 
1733         than errno.
1734
1735 2005-03-22  Christopher Faylor  <cgf@timesys.com>
1736
1737         * libc/include/machine/_types.h: Make trivial change to comment to
1738         avoid a spurious warning from gcc.
1739
1740 2005-03-21  Nicholas Wourms  <nwourms@netscape.net>
1741
1742         * libc/stdio/vfprintf.c: Move newlib.h before _WANT_IO_POS_ARGS test,
1743         since _WANT_IO_POS_ARGS is now defined in there.  Remove duplicate
1744         reent.h include.
1745
1746 2005-03-18  Hans-Peter Nilsson  <hp@axis.com>
1747             Corinna Vinschen  <corinna@vinschen.de>
1748
1749         * libc/include/ctype.h: Remove invalid +1 offset from
1750         ctype macro references to __ctype_ptr.
1751         (_ctype_): Move declaration outside #ifndef __cplusplus.
1752
1753 2005-03-18  Corinna Vinschen  <corinna@vinschen.de>
1754
1755         * libc/include/machine/setjmp.h (sigsetjmp): Use GCC extension to
1756         evaluate first parameter only once.
1757         (siglongjmp): Ditto.
1758
1759 2005-03-17  Jeff Johnston  <jjohnstn@redhat.com>
1760
1761         * configure.in: Add new check to see if compiler supports
1762         aliasing of arrays and define _HAVE_ARRAY_ALIASING if true.
1763         * configure: Regenerated.
1764         * Makefile.in: Ditto.
1765         * newlib.hin: Add _HAVE_ARRAY_ALIASING.
1766         * libc/ctype/ctype_.c: Check for _HAVE_ARRAY_ALIASING before
1767         aliasing the _ctype_ array to _ctype_b.
1768         * libc/include/ctype.h: Change macros to use __ctype_ptr.  Mark
1769         _ctype_ as deprecated.
1770
1771 2005-03-17  Hans-Peter Nilsson  <hp@axis.com>
1772
1773         * configure.host (newlib_cflags) <cris-*-*, crisv32-*-*>: Add
1774         -DCOMPACT_CTYPE.
1775
1776 2005-03-06  Ralf Corsepious  <ralf.corsepius@rtems.org>
1777
1778         * libc/sys/rtems/include/inttypes.h: New file.
1779         * libc/sys/rtems/include/stdint.h: Ditto.
1780
1781 2005-03-06  Ralf Corsepious  <ralf.corsepius@rtems.org>
1782
1783         * libc/string/memcmp.c: Fix to avoid pointer signedness warning.
1784
1785 2005-03-06  Ralf Corsepious  <ralf.corsepius@rtems.org>
1786
1787         * libc/include/machine/_types.h: New file.
1788         * libc/include/sys/types.h: Do not check for __rtems__
1789         when including <machine/_types.h>.  Remove some redundant
1790         declarations now that <machine/_types.h> is included.
1791         * libc/sys/rtems/machine/_types.h: Removed.  Replaced with
1792         shared header file.
1793
1794 2005-02-25  Ralf Corsepious  <ralf.corsepius@rtems.org>
1795
1796         * libm/common/fdlibm.h (FLT_UWORD_MAX, FLT_UWORD_HALF_MAX): Add
1797         L qualifier for these long constants.
1798
1799 2005-02-25  Eric Blake  <ebb9@byu.net>
1800
1801         * libc/include/time.h (__tzrule_struct): Make offset long, since
1802         a 16-bit int overflows on a 12-hour offset.
1803         * libc/sys/linux/include/time.h: Ditto.
1804         * libc/time/mktime.c (mktime): Use new type of __tzrule.offset.
1805         * libc/time/mktm_r.c: Ditto.
1806         * libc/time/gettzinfo.c: Ditto.
1807         * libc/time/strftime.c (strftime): Fix '%x' to deal with negative
1808         years.  Fix '%z' to use long, not int.
1809
1810 2005-02-24  Ralf Corsepious  <ralf.corsepius@rtems.org>
1811
1812         * libm/common/s_fpclassify.c: Use __uint32_t instead of int to
1813         manipulate float values in integer form.
1814         * libm/common/sf_round.c: Ditto.
1815
1816 2005-02-24  Ralf Corsepious  <ralf.corsepius@rtems.org>
1817
1818         * libc/include/sys/types.h [__rtems__]: Include new
1819         header file machine/_types.h.
1820         * libc/include/machine/types.h: Ditto.
1821         * libc/sys/rtems/machine/_types.h: New file.
1822
1823 2005-02-23  Corinna Vinschen  <corinna@vinschen.de>
1824
1825         * libc/include/time.h (_timezone): Change to long also for Cygwin.
1826         (timezone): Drop cast from definition.
1827
1828 2005-02-23  Jeff Johnston  <jjohnstn@redhat.com>
1829
1830         * libc/include/time.h [!CYGWIN](_timezone): Change to long.
1831         (__tzrule_type, __tzinfo_type): New types.
1832         (__gettzinfo): New function.
1833         * libc/sys/linux/include/time.h: Ditto.
1834         * libc/time/Makefile.am: Add gettzinfo.c.
1835         * libc/time/Makefile.in: Regenerated.
1836         * libc/time/local.h: Moved __tzrule_type to time.h.
1837         * libc/time/mktime.c: Call __gettzinfo to reference
1838         __tznorth, __tzyear, and __tzrule array.
1839         * libc/time/mktm_r.c: Ditto.
1840         * libc/time/strftime.c: Ditto.
1841         * libc/time/tzset_r.c: Ditto.  Also remove definition
1842         of __tzrule which is now in gettzinfo.c.  Change _timezone
1843         references to not cast to time_t.
1844         * libc/time/gettzinfo.c: New file.
1845
1846 2005-02-23  Corinna Vinschen  <corinna@vinschen.de>
1847
1848         * libc/include/sys/unistd.h: Define getpeereid for Cygwin.
1849
1850 2005-02-22  Corinna Vinschen  <corinna@vinschen.de>
1851
1852         * libc/include/sys/unistd.h: Define fdatasync also for Cygwin.
1853
1854 2005-02-16  Eric Blake  <ebb9@byu.net>
1855
1856         * libc/time/time.tex: Improve the documentation.
1857         * libc/time/strftime.c: Improve the documentation.
1858         (iso_year_adjust): New helper function.
1859         (strftime): Simplify '%E' and '%O'. Change '%c' to use
1860         recursion. Fix '%C', '%y', and '%Y' to deal with years with more
1861         than 4 characters.  Combine '%d' and '%e'. Implement '%D', '%F',
1862         '%g', '%G', '%n', '%R', '%t', '%T', '%u', '%V', '%X', and '%z'.
1863         Avoid core dumps on valid inputs (maxsize == 0, or
1864         tim_p->tm_isdst > 1).
1865
1866 2005-02-08  Corinna Vinschen  <corinna@vinschen.de>
1867
1868         * libc/include/pwd.h (struct passwd): Change pw_uid and pw_gid
1869         members to uid_t and gid_t according to SUSv3.
1870         * libc/include/sys/time.h (utimes):  Change second parameter
1871         to const according to SUSv3.
1872
1873 2005-02-07  Antony King  <antony.king@st.com>
1874
1875         * libc/stdio/clearerr.c (clearerr): Ensure CHECK_INIT() is
1876         called before _flockfile to prevent lock object use before
1877         initialisation. _REENT_SMALL_CHECK_INIT() and CHECK_INIT()
1878         take a struct _reent * instead of a FILE *.
1879         * libc/stdio/fclose.c (_fclose_r): Ditto.
1880         * libc/stdio/feof.c (feof): Ditto.
1881         * libc/stdio/ferror.c (ferror): Ditto.
1882         * libc/stdio/fflush.c (fflush): Ditto.
1883         * libc/stdio/fgetc.c (fgetc): Ditto.
1884         * libc/stdio/fgets.c (fgets): Ditto.
1885         * libc/stdio/fileno.c (fileno): Ditto.
1886         * libc/stdio/fputc.c (fputc): Ditto.
1887         * libc/stdio/fputs.c (fputs): Ditto.
1888         * libc/stdio/fread.c (fread): Ditto.
1889         * libc/stdio/freopen.c (_freopen_r): Ditto.
1890         * libc/stdio/fseek.c (_fseek_r): Ditto.
1891         * libc/stdio/ftell.c (_ftell_r): Ditto.
1892         * libc/stdio/fwrite.c (fwrite): Ditto.
1893         * libc/stdio/getc.c (getc): Ditto.
1894         * libc/stdio/getdelim.c (__getdelim): Ditto.
1895         * libc/stdio/putc.c (putc): Ditto.
1896         * libc/stdio/setvbuf.c (setvbuf): Ditto.
1897         * libc/stdio/ungetc.c (_ungetc_r): Ditto.
1898         * libc/stdio/vfprintf.c (_VFPRINTF_R): Ditto.
1899         * libc/stdio64/freopen64.c (_freopen64_r): Ditto.
1900         * libc/stdio64/fseeko64.c (_fseeko64_r): Ditto.
1901         * libc/stdio64/ftello64.c (_ftello64_r): Ditto.
1902         * libc/stdio/local.h (CHECK_INIT): Argument is now a struct
1903         _reent * instead of a FILE * and so replace incorrect use of
1904         _REENT with argument.
1905         * libc/sys/arm/syscalls.c (CHECK_INIT): Ditto.
1906         * libc/stdio/getchar.c (getchar): _REENT_SMALL_CHECK_INIT() and
1907         CHECK_INIT() take a struct _reent * instead of a FILE *.
1908         * libc/stdio/iprintf.c (iprintf, _iprintf_r): Ditto.
1909         * libc/stdio/iscanf.c (iscanf, _iscanf_r): Ditto.
1910         * libc/stdio/perror.c (perror): Ditto.
1911         * libc/stdio/printf.c (printf, _printf_r): Ditto.
1912         * libc/stdio/putchar.c (putchar): Ditto.
1913         * libc/stdio/puts.c (puts): Ditto.
1914         * libc/stdio/refill.c (__srefill): Ditto.
1915         * libc/stdio/scanf.c (scanf, _scanf_r): Ditto.
1916         * libc/stdio/vfscanf.c (VFSCANF, _VFSCANF_R): Ditto.
1917         * libc/stdio/viprintf.c (viprintf, _viprintf_r): Ditto.
1918         * libc/stdio/viscanf.c (viscanf, _viscanf_r): Ditto.
1919         * libc/stdio/vprintf.c (vprintf, _vprintf_r): Ditto.
1920         * libc/stdio/vscanf.c (vscanf, _vscanf_r): Ditto.
1921         * libc/stdio/wbuf.c (__swbuf): Ditto.
1922         * libc/stdio/wsetup.c (__swsetup): Ditto.
1923         * libc/stdlib/mallocr.c (malloc_stats): Ditto.
1924         * libc/stdlib/mstats.c (_mstats_r): Ditto.
1925         * libc/include/sys/reent.h (_REENT_SMALL_CHECK_INIT): Ditto.
1926         * libc/machine/powerpc/vfscanf.c (vfscanf): Ditto.
1927         * libc/stdio/fgetpos.c (_fgetpos_r): Removed unnecessary calls
1928         to _flockfile and _funlockfile; rely on locking in _ftell_r.
1929         * libc/stdio64/fgetpos64.c (_fgetpos64_r): Ditto (_ftello64_r).
1930         * libc/machine/powerpc/vfprintf.c (__sbprintf): Removed unnecessary
1931         initialision of _data field in FILE structure.
1932         * libc/machine/powerpc/vfprintf.c (VFPRINTF): Added CHECK_INIT() call.
1933
1934 2005-02-07  Jeff Johnston  <jjohnstn@redhat.com>
1935
1936         * libc/stdio/findfp.c (__sinit): Protect with new lock.
1937         (__sinit_lock): New lock.
1938         (__sinit_lock_acquire, __sinit_lock_release): New functions.
1939         * libc/stdio/local.h: Add reference to new __sinit locking
1940         functions.
1941
1942 2005-02-07  Jeff Johnston  <jjohnstn@redhat.com>
1943
1944         * libc/include/math.h (isfinite, isnormal, isunordered): Change
1945         input variable names to avoid mixups with nesting macros.
1946
1947 2005-01-27  Hans-Peter Nilsson  <hp@axis.com>
1948
1949         * configure.host: Add support for cris-*-* and crisv32-*-*.
1950         * libc/include/machine/ieeefp.h: Ditto.
1951         * libc/include/machine/setjmp.h: Ditto.
1952         * libc/machine/cris/configure.in, libc/machine/cris/Makefile.am,
1953         libc/machine/cris/libcdtor.c, libc/machine/cris/setjmp.c,
1954         libc/machine/cris/memmove.c, libc/machine/cris/memcpy.c,
1955         libc/machine/cris/memset.c, libc/machine/cris/include/pthread.h,
1956         libc/machine/cris/sys/signal.h, libc/machine/cris/sys/fcntl.h,
1957         libc/machine/cris/sys/errno.h, libc/machine/cris/aclocal.m4,
1958         libc/machine/cris/configure, libc/machine/cris/Makefile.in: New
1959         files.
1960
1961 2005-01-27  Hans-Peter Nilsson  <hp@axis.com>
1962
1963         * testsuite/newlib.string/memmove1.c: New test.
1964
1965 2005-01-27  Hans-Peter Nilsson  <hp@axis.com>
1966
1967         * testsuite/include/check.h: Include stdlib.h.
1968
1969 2005-01-27  Hans-Peter Nilsson  <hp@axis.com>
1970
1971         * Makefile.am (stmp-targ-include): Support include header files
1972         from machine directories.
1973         (install-data-local): Ditto.
1974         * Makefile.in: Regenerate.
1975
1976 2005-01-24  Jeff Johnston  <jjohnstn@redhat.com>
1977
1978         * libc/include/string.h: Remove Linux-specific declaration of
1979         strsignal and add #include <sys/string.h>.
1980         * libc/include/sys/string.h: New file.
1981         * libc/include/sys/linux/sys/string.h: New file with strsignal
1982         declaration deleted above.
1983
1984 2005-01-20  Jeff Johnston  <jjohnstn@redhat.com>
1985
1986         * libc/time/strftime.c (strftime): Change %r and %x to be compliant
1987         to POSIX standard for "C" locale.  Allow %E and %O modifiers
1988         to be ignored as long as they precede valid specifiers according
1989         to POSIX.
1990
1991 2005-01-19  Shaun Jackman  <sjackman@gmail.com>
1992
1993         * libc/stdlib/setenv_r.c (_setenv_r): Call tzset() if the TZ
1994         environment variable is set.
1995
1996 2005-01-19  Shaun Jackman  <sjackman@gmail.com>
1997
1998         * tzset_r.c (_tzname): Add a comma.
1999
2000 2005-01-18  Aldy Hernandez  <aldyh@redhat.com>
2001
2002         * libc/machine/powerpc/vfprintf.c: Use _REENT when calling
2003         _VFPRINTF_R.
2004
2005 2005-01-07  Paul Brook  <paul@codesourcery.com>
2006                                                                                 
2007         * configure.in: Add test for .init_array.
2008         * configure: Regenerate.
2009         * newlib.hin: Add HAVE_INITFINI_ARRAY.
2010         * libc/misc/Makefile.am: Add init.c
2011         * libc/misc/Makefile.in: Regenerate.
2012         * libc/misc/init.c: New file.
2013         * libc/sys/arm/crt0.S: Call __libc_{init,fini}_array instead of
2014         _init/_fini if they exist.
2015                                                                                 
2016 2005-01-06  Jeff Johnston  <jjohnstn@redhat.com>
2017
2018         * libc/stdlib/strtod.c (_strtod_r): Add NaN support.
2019         * (strtof): Ditto.
2020         * libc/stdio/vfscanf.c (__svfscanf_r): Ditto.
2021         * Makefile.am (MATHOBJS_IN_LIBC): Add s_nan and sf_nan
2022         functions for use by strtod and strtof.
2023         * Makefile.in: Regenerated.
2024                                                                                 
2025 2005-01-06  Hans-Peter Nilsson  <hp@axis.com>
2026                                                                                 
2027         * libc/stdio/ftell.c (ftell_r): Add parenthesis for __SWR
2028         bit-test in combination with NULL test.
2029                                                                                 
2030 2005-01-06  Hans-Peter Nilsson  <hp@axis.com>
2031                                                                                 
2032         * README: Fix typo of LGPL.  Change "license" to "copyright".
2033                                                                                 
2034 2004-12-17  Jeff Johnston  <jjohnstn@redhat.com>
2035
2036         * NEWS: Update with 1.13.0 info.
2037         * README: Ditto.
2038         * acinclude.m4: Change version number to 1.13.0.
2039         * aclocal.m4: Regenerated.
2040         * configure: Ditto.
2041         * doc/aclocal.m4: Ditto.
2042         * doc/configure: Ditto.
2043         * libc/*/aclocal.m4: Ditto.
2044         * libc/*/configure: Ditto.
2045         * libc/libc.texinfo: Ditto.
2046         * libm/*/aclocal.m4: Ditto.
2047         * libm/*/configure: Ditto.
2048         * libm/libm.texinfo: Ditto.
2049         * libc/sys/linux/shared.ld: Add VERS_1.13.
2050
2051 2004-12-17  Christian Groessler  <chris@groessler.org>
2052
2053         * libc/machine/z8k/memcmp.S: New file.
2054         * libc/machine/z8k/memcpy.S: Ditto.
2055         * libc/machine/z8k/memmove.S: Ditto.
2056         * libc/machine/z8k/memset.S: Ditto.
2057         * libc/machine/z8k/Makefile.am: Add new files.
2058         * libc/machine/z8k/Makefile.in: Regenerated.
2059         * libc/machine/z8k/setjmp.S: Fix indirect register usage in Z8002
2060         part.  Implement Z8002 stdcall version.
2061
2062 2004-12-13  Jeff Johnston  <jjohnstn@redhat.com>
2063
2064         * libc/stdio/fread.c (fread): For unbuffered I/O, attempt
2065         a low-level read if we don't get the full amount of bytes so
2066         EOF or error flags will be set.
2067
2068 2004-12-09  Alex Mogilnikov  <alx@intellectronika.ru>
2069
2070         * libc/time/tzset_r (_tzset_r): Properly skip over
2071         '/' when it is detected.
2072
2073 2004-12-08  Alex Mogilnikov  <alx@intellectronika.ru>
2074
2075         * libc/time/tzset_r (_tzset_r): Fix loop.
2076
2077 2004-12-08  Alex Mogilnikov  <alx@intellectronika.ru>
2078
2079         * libc/time/mktm_r (_mktm_r): Fix overflow calculation for
2080         m_day.
2081         (__tzcalc_limits): Fix reference to month array to be zero-based.
2082
2083 2004-12-07  Jeff Johnston  <jjohnstn@redhat.com>
2084
2085         * libc/sys/linux/sys/unistd.h: Add prototypes for ftruncate, truncate,
2086         and usleep.
2087
2088 2004-12-03  Jeff Johnston  <jjohnstn@redhat.com>
2089
2090         * Makefile.am (libc_la_LDFLAGS): Add -lgcc to handle any
2091         libgcc dependencies.
2092         (libm_la_LDFLAGS): Ditto.
2093         * Makefile.in: Regenerated.
2094
2095 2004-12-03  Shaun Jackman  <sjackman@gmail.com>
2096
2097         * libc/sys/linux/linuxthreads/Makefile.am (install-data-local): Fix
2098         our link to use readlink so as to preserve any relative link created
2099         by install-toollibLIBRARIES.
2100         * libc/sys/linux/linuxthreads/Makefile.in: Regenerated.
2101
2102 2004-12-02  Shaun Jackman  <sjackman@gmail.com>
2103
2104         * libc/sys/linux/stdlib/glob.c: Include <sys/types.h> which defines
2105         time_t before including sys/stat.h, which uses it.
2106         * libc/sys/linux/sys/stat.h: Include <sys/types.h> and
2107         <linux/time.h> just prior to definition of __KERNEL__ so as to
2108         allow building on Debian Linux where otherwise, mktime would
2109         be redefined.
2110
2111 2004-11-26  Paul Brook  <paul@codesourcery.com>
2112
2113         * libc/sys/arm/crt0.S (_start): Add .cantunwind annotation.
2114                                                                                 
2115 2004-11-24  Jeff Johnston  <jjohnstn@redhat.com>
2116
2117         * libc/include/stdlib.h (putenv, _putenv_r): Change to remove
2118         const for value string parameter to match Single Unix and glibc.
2119         * libc/stdlib/putenv.c: Ditto.
2120         * libc/stdlib/putenv_r.c: Ditto.
2121
2122 2004-11-24  Jeff Johnston  <jjohnstn@redhat.com>
2123
2124         * libc/stdio/Makefile.am: Fix missing vfscanf.
2125         * libc/stdio/Makefile.in: Regenerated.
2126                                                                                 
2127 2004-11-23  Jeff Johnston  <jjohnstn@redhat.com>
2128                                                                                 
2129         * libc/include/stdio.h: Add new iprintf and iscanf variants.  Also
2130         do some reordering.
2131         * libc/machine/powerpc/vfscanf.c: Remove __sccl function.
2132         * libc/stdio/Makefile.am: Add support for new iprintf and iscanf
2133         family functions.
2134         * libc/stdio/Makefile.in: Regenerated.
2135         * libc/stdio/fiprintf.c: Remove doc to siprintf.c.
2136         * libc/stdio/iprintf.c: Ditto.
2137         * libc/stdio/local.h (__svfiscanf_r): New prototype.
2138         * libc/stdio/siprintf.c: Add docs for various iprintf family functions.
2139         * libc/stdio/sniprintf.c: Move docs to siprintf.c.
2140         * libc/stdio/stdio.tex: Add new functions.
2141         * libc/stdio/vfscanf.c: Split out __sccl function to separate
2142         file and add special name defines so this file can be used
2143         to build vfiscanf.o.
2144         * libc/stdio/asiprintf.c: New file.
2145         * libc/stdio/fiscanf.c: Ditto.
2146         * libc/stdio/iscanf.c: Ditto.
2147         * libc/stdio/sccl.c: Ditto.
2148         * libc/stdio/siscanf.c: Ditto.
2149         * libc/stdio/vasiprintf.c: Ditto.
2150         * libc/stdio/viprintf.c: Ditto.
2151         * libc/stdio/viscanf.c: Ditto.
2152         * libc/stdio/vsiprintf.c: Ditto.
2153         * libc/stdio/vsiscanf.c: Ditto.
2154         * libc/stdio/vsniprintf.c: Ditto.
2155
2156 2004-11-19  Shaun Jackman  <sjackman@gmail.com>
2157                                                                                 
2158         * libc/include/stdio.h: Add sniprintf.
2159         * libc/stdio/Makefile.am: Add sniprintf.c.
2160         * libc/stdio/Makefile.in: Regenerated.
2161         * libc/stdio/sniprintf.c: New file.
2162         * libc/stdio/stdio.tex: Add sniprintf.
2163                                                                                 
2164 2004-11-17  Christopher Faylor  <cgf@timesys.com>
2165
2166         * libc/stdio/refill.c (__srefill): Try again after EOF on Cygwin.  Clear
2167         EOF flag if successful.
2168
2169 2004-10-28  Christopher Faylor  <cgf@timesys.com>
2170
2171         * libc/include/sys/signal.h: Move <signal.h> include to bottom of file
2172         so that all relevant definitions have been performed for use in the
2173         include.
2174
2175 2004-10-26  Jason Tishler  <jason@tishler.net>
2176
2177         * libc/stdio/fread.c (fread): Fix return value for unbuffered
2178         fread.
2179
2180 2004-10-25  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
2181
2182         * libc/include/machine/setjmp.h: Add AVR support.
2183         * libc/sys/rtems/crt0.S [__AVR__]: Add __stack.
2184
2185 2004-10-08  Jeff Johnston  <jjohnstn@redhat.com>
2186                                                                                 
2187         * libc/include/sys/signal.h: If <signal.h> didn't include
2188         this header file, include <signal.h> to account for
2189         applications that take advantage that the two header
2190         files are the same in glibc.
2191                                                                                 
2192 2004-10-05  Tomer Levi  <Tomer.Levi@nsc.com>
2193
2194         * configure.host: Add support for crx.
2195         * libc/include/machine/ieeefp.h: Ditto.
2196         * libc/include/machine/setjmp.h: Ditto.
2197         * libc/machine/crx/Makefile.am: New file.
2198         * libc/machine/crx/configure.in: Ditto.
2199         * libc/machine/crx/setjmp.S: Ditto.
2200         * libc/machine/crx/getenv.c: Ditto.
2201         * libc/machine/crx/aclocal.m4: Generate.
2202         * libc/machine/crx/configure: Ditto.
2203         * libc/machine/crx/Makefile.in: Ditto.
2204         * libc/machine/crx/sys/asm.h: New file.
2205         * libc/machine/crx/sys/libh.h: Ditto.
2206         * libc/machine/crx/sys/syscall.h: Ditto.
2207
2208 2004-10-05  Jeff Johnston  <jjohnstn@redhat.com>
2209
2210         * Makefile.am (stmp-targ-include): Support sys header files
2211         from machine directories.
2212         * Makefile.in: Regenerated.
2213
2214 2004-10-04  Jeff Johnston  <jjohnstn@redhat.com>
2215
2216         * libc/stdio/vfscanf.c (__svfscanf_r): For int conversions,
2217         count skipped zero characters as part of the nread count for %n.
2218         * libc/machine/powerpc/vfscanf.c: Ditto.
2219
2220 2004-09-24  Jeff Johnston  <jjohnstn@redhat.com>
2221
2222         * libc/stdio/local.h: Include <stdlib.h>.
2223
2224 2004-09-24  Corinna Vinschen  <corinna@vinschen.de>
2225
2226         * libc/stdio/fread.c (fread): Include <malloc.h>.
2227
2228 2004-09-22  Jeff Johnston  <jjohnstn@redhat.com>
2229
2230         * libc/stdio/fread.c (fread):  For non-space-optimized case,
2231         add special code for unbuffered files to use user buffer and
2232         only require one low-level system read.
2233
2234 2004-09-21  Ian Lance Taylor  <ian@wasabisystems.com>
2235
2236         * libc/machine/xscale/setjmp.S: New file, copied from
2237         libc/machine/arm/setjmp.S.
2238         * libc/machine/xscale/Makefile.am (lib_a_SOURCES): Add setjmp.S.
2239         * libc/machine/xscale/Makefile.in: Regenerate.
2240
2241 2004-09-16  Antony King  <antony.king@st.com>
2242
2243         * libc/include/sys/lock.h: Replaced empty {} with (0) to conform
2244         with locking API.
2245         * libc/include/sys/stdio.h: (_flockfile)[!_SINGLE_THREAD]: Add 
2246         check for__SSTR in _flags and if set, skip lock request.
2247         (_funlockfile)[!SINGLE_THREAD]: Ditto.
2248         * libc/stdio/local.h (CHECK_INIT): Added check that _REENT is
2249         not NULL.
2250         * libc/stdio/siprintf.c (siprintf, _siprintf_r): Added missing
2251         initialisation of _file to -1 in local FILE.
2252         * libc/stdio/snprintf.c (snprintf, _snprintf_r): Ditto.
2253         * libc/stdio/sscanf.c (sscanf, _sscanf_r): Ditto.
2254         * libc/stdio/vsnprintf.c (vsnprintf, _vsnprintf_r): Ditto.
2255         * libc/stdio/vsscanf.c (_vsscanf_r): Ditto.
2256         * libc/stdio/sscanf.c (sscanf, _sscanf_r): Added __SSTR flag to
2257         _flags in local FILE to prevent locking.
2258         * libc/stdio/vsscanf.c (_vsscanf_r): Ditto.
2259
2260 2004-09-16  Antony King  <antony.king@st.com>
2261
2262         * libc/stdio/fwalk.c (_fwalk): Remove check for _GLOBAL_REENT
2263         and only walk the reentrancy parameter.
2264         (_fwalk_reent): Ditto.
2265         * libc/stdlib/exit.c: Remove out of date _REENT_ONLY check.
2266
2267 2004-09-16  Antony King  <antony.king@st.com>
2268
2269         * libc/stdio64/freopen64.c: Remove casting of fp lock to
2270         _LOCK_RECURSIVE_T.
2271
2272 2004-09-16  Antony King  <antony.king@st.com>
2273
2274         * libc/time/tzlock.c: Add default stubs that use generic
2275         locking code.
2276
2277 2004-09-16  Antony King  <antony.king@st.com>
2278
2279         * libc/ctype/ctype.tex: Added missing documentation.
2280         * libc/stdio/stdio.tex Ditto.
2281         * libc/stdlib/stdlib.tex Ditto.
2282         * libc/string/strings.tex Ditto.
2283         * libc/time/time.tex: Ditto.
2284         * libc/stdio/setbuffer.c: Removed setlinebuf documentation.
2285
2286 2004-09-15  Corinna Vinschen  <vinschen@redhat.com>
2287
2288         * libc/reent/impure.c (reent_data): Define as alias to impure_data
2289         when building for Cygwin.
2290         * libc/include/sys/reent.h (_GLOBAL_REENT): Revert definition to
2291         _global_impure_ptr.
2292
2293 2004-09-15  Jeff Johnston  <jjohnstn@redhat.com>
2294
2295         * configure.host: Reverting 2004-09-14 change as fix has occurred on
2296         Cygwin side.
2297         * configure.in: Ditto.
2298         * libc/configure.in: Ditto.
2299         * libc/sys/configure.in: Ditto.
2300         * configure: Ditto.
2301         * libc/configure: Ditto.
2302         * libc/sys/configure: Ditto.
2303         * libc/include/sys/reent.h: Ditto.
2304         * libc/stdlib/__atexit.c: Ditto.
2305         * libc/stdlib/__call_atexit.c: Ditto.
2306         * libc/stdlib/cxa_atexit.c: Ditto.
2307         * libc/stdlib/cxa_finalize.c: Ditto.
2308         * libc/sys/cygwin/Makefile.am: Removed again.
2309         * libc/sys/cygwin/Makefile.in: Ditto.
2310         * libc/sys/cygwin/aclocal.m4: Ditto.
2311         * libc/sys/cygwin/configure: Ditto.
2312         * libc/sys/cygwin/configure.in: Ditto.
2313         * libc/sys/cygwin/dummy.c: Ditto.
2314         * libc/sys/cygwin/sys/reent.h: Ditto.
2315
2316 2004-09-14  Jeff Johnston  <jjohnstn@redhat.com>
2317
2318         * configure.host: Add Cygwin sys directory.
2319         * configure.in: Do not set CRT0 for cygwin.
2320         * libc/configure.in: Ditto.
2321         * libc/sys/configure.in: Ditto.
2322         * configure: Regenerated.
2323         * libc/configure: Ditto.
2324         * libc/sys/configure: Ditto.
2325         * libc/include/sys/reent.h: Add __REENT_HAS_CXA_SUPPORT flag.
2326         * libc/stdlib/__atexit.c: Keep cxa support protected by new
2327         __REENT_HAS_CXA_SUPPORT flag.
2328         * libc/stdlib/__call_atexit.c: Ditto.
2329         * libc/stdlib/cxa_atexit.c: Ditto.
2330         * libc/stdlib/cxa_finalize.c: Ditto.
2331         * libc/sys/cygwin/Makefile.am: New file.
2332         * libc/sys/cygwin/Makefile.in: Ditto.
2333         * libc/sys/cygwin/aclocal.m4: Ditto.
2334         * libc/sys/cygwin/configure: Ditto.
2335         * libc/sys/cygwin/configure.in: Ditto.
2336         * libc/sys/cygwin/dummy.c: Ditto.
2337         * libc/sys/cygwin/sys/reent.h: Ditto.  This file is stabilized
2338         version of reent.h.
2339
2340 2004-09-13 Artem B. Bityuckiy  <dedekind@oktetlabs.ru>
2341
2342         * libc/iconv/iconv.tex: Updated with new content.
2343         * libc/iconv/lib/iconvnls.c: Reference ICONV_DEFAULT_NLSPATH
2344         instead of NLS_DEFAULT_NLSPATH.
2345         * libc/iconv/lib/iconvnls.h: Fix typo.
2346         * libc/include/sys/iconvnls.h: New file.
2347
2348 2004-09-09  Paul Brook  <paul@codesourcery.com>
2349
2350         * libc/include/sys/reent.h (struct _on_exit_args): Add _dso_handle
2351         and _is_cxa.
2352         (struct _atexit): Add _next when _REENT_SMALL.
2353         (struct _reent): Add _atexit0 when _REENT_SMALL.
2354         (_REENT_INIT_PTR): Adjust.
2355         * libc/stdlib/Makefile.am (GENERAL_SOURCES): Add __atexit.c and
2356         __call_exit.c.
2357         (EXTENDED_SOURCES): Add cxa_atexit.c and cxa_finalize.c.
2358         * libc/stdlib/Makefile.in: Regenerate.
2359         * libc/stdlib/__atexit.c: New file.
2360         * libc/stdlib/__call_atexit.c: New file.
2361         * libc/stdlib/atexit.h: Remove old definitions.  Add new.
2362         * libc/stdlib/atexit.c (atexit): Use __register_exitproc.
2363         * libc/stdlib/cxa_atexit.c: New file.
2364         * libc/stdlib/cxa_finalize.c: New file.
2365         * libc/stdlib/exit.c (exit): Use __call_exitprocs.
2366         * libc/stdlib/on_exit.c (on_exit): Use __register_exitproc.
2367         2004-09-09  Jeff Johnston  <jjohnstn@redhat.com>
2368         * libc/reent/reent.c [_REENT_SMALL]: Fix reference to
2369         _on_exit_args_ptr.
2370
2371 2004-08-23  Jeff Johnston  <jjohnstn@redhat.com>
2372
2373         * libc/include/sys/unistd.h (getpass): Change prototype to use
2374         const instead of __const.
2375
2376 2004-08-16  Nathan Sidwell  <nathan@codesourcery.com>
2377
2378         * libc/stdio/vfscanf.c (_NO_LONGLONG): Move out of FLOATING_POINT
2379         #if.
2380
2381 2004-08-12  Jeff Johnston  <jjohnstn@redhat.com>
2382
2383         * libc/sys/linux/sys/types.h (u64): New typedef to allow building
2384         on linux systems with glibc 2.3.3 installed.
2385         * libc/sys/linux/dl/dl-runtime.c: Fix prototypes for fixup and
2386         profile_fixup so newlib can build on fc3 system.
2387  
2388 2004-07-30  Alexandre Oliva  <aoliva@redhat.com>
2389
2390         Introduce SH2a support.
2391         2004-03-16  Corinna Vinschen  <vinschen@redhat.com>
2392         * libc/include/machine/ieeefp.h: Define _DOUBLE_IS_32BITS for
2393         __SH2A_SINGLE_ONLY__, too.
2394         * libc/machine/sh/asm.h: Define DELAYED_BRANCHES for __SH2A__, too.
2395         2004-02-24  Corinna Vinschen  <vinschen@redhat.com>
2396         * libc/sys/sh/crt0.S (start_l): Support sh2a-nofpu.  Fix comments.
2397         2004-02-10  DJ Delorie  <dj@redhat.com>
2398         * libc/sys/sh/crt0.S (start_l): Support sh2a.
2399
2400 2004-07-29  Jeff Johnston  <jjohnstn@redhat.com>
2401
2402         * libc/time/strptime.c: Correct full-name of "March" typo.
2403
2404 2004-07-16  Anil Paranjpe  <anilp1@kpitcummins.com>
2405
2406         * configure.host (h8300*-*-*): Default long long printing support. 
2407
2408 2004-07-16  Jeff Johnston  <jjohnstn@redhat.com>
2409
2410         * libc/stdio/fvwrite.c (_sfvwrite):  For asprintf family
2411         calls, if realloc fails, free up buffer as it is no longer
2412         used.
2413
2414 2004-07-07  Artem B. Bityuckiy  <dedekind@oktetlabs.ru>
2415
2416         * libc/iconv/iconv.tex: Updated to represent recent changes.
2417         * libc/iconv/lib/iconv.c: Documentation updated.
2418
2419 2004-07-07  Nick Clifton  <nickc@redhat.com>
2420
2421         * configure.host (newlib_cflags): Define PREFER_SIZE_OVER_SPEED
2422         for xStormy16.
2423
2424 2004-07-06  Chris Demetriou  <cgd@broadcom.com>
2425
2426         * configure.host (mips*-*-elf*): Default long long printing
2427         support.
2428
2429 2004-07-05  Jeff Johnston  <jjohnstn@redhat.com>
2430
2431         * libc/Makefile.am (libc.dvi): Add target and specify
2432         same dependencies as libc.info.
2433         * libc/Makefile.in: Regenerated.
2434         * libm/Makefile.am (libm.dvi): Add target and specify
2435         same dependencies as libm.info.
2436         * libm/Makefile.in: Regenerated.
2437
2438 2004-06-29  Artem B. Bityuckiy  <dedekind@oktetlabs.ru>
2439
2440         * acinclude.m4: Move --enable-newlib-iconv option back here.
2441         * configure.in: Remove --enable-newlib-iconv option.  Don't
2442         tie iconv support to --enable-newlib-mb.
2443         * aclocal.m4: Regenerated.
2444         * configure: Ditto.
2445         * doc/aclocal.m4, doc/configure: Ditto.
2446         * iconvdata/aclocal.m4, iconvdata/configure: Ditto.
2447         * libm/*/aclocal.m4: Ditto.
2448         * libm/*/configure: Ditto.
2449         * libc/*/aclocal.m4: Ditto.
2450         * libc/*/configure: Ditto.
2451
2452 2004-06-25  Artem B. Bityuckiy  <dedekind@oktetlabs.ru>
2453
2454         * acinclude.m4: Move iconv options into configure.in.
2455         * aclocal.m4: Regenerated.
2456         * configure: Ditto.
2457         * configure.in: Add iconv options.
2458         * newlib.hin: Add new iconv encodings and remove deleted ones.
2459         * doc/aclocal.m4: Regenerated.
2460         * doc/configure: Ditto.
2461         * iconvdata/aclocal.m4: Ditto.
2462         * iconvdata/configure: Ditto.
2463         * libc/iconv: Design change.  New size-optimized ccs format.
2464         * libc/iconv/AUTHORS: Removed.
2465         * libc/iconv/COPYING: Ditto.
2466         * libc/iconv/README.ORIGINAL: Ditto.
2467         * libc/iconv/README.TODO: Ditto.
2468         * libc/iconv/charset.aliases: Ditto.
2469         * libc/iconv/encoding.aliases: New file.
2470         * libc/iconv/Makefile.am: Updated.
2471         * libc/iconv/Makefile.in: Regenerated.
2472         * libc/iconv/iconv.tex: Updated.
2473         * libc/iconv/ccs/Makefile.am: Ditto.
2474         * libc/iconv/ccs/Makefile.in: Regenerated.
2475         * libc/iconv/ccs/big5.c: Updated.
2476         * libc/iconv/ccs/cns11643_plane1.c: Ditto.
2477         * libc/iconv/ccs/cns11643_plane14.c: Ditto.
2478         * libc/iconv/ccs/cns11643_plane2.c: Ditto.
2479         * libc/iconv/ccs/cp775.c: Ditto.
2480         * libc/iconv/ccs/cp850.c: Ditto.
2481         * libc/iconv/ccs/cp852.c: Ditto.
2482         * libc/iconv/ccs/cp855.c: Ditto.
2483         * libc/iconv/ccs/cp866.c: Ditto.
2484         * libc/iconv/ccs/iso_8859_1.c: Ditto.
2485         * libc/iconv/ccs/README.CCS.SOURCES: Removed.
2486         * libc/iconv/ccs/gb_2312_80.c: Ditto.
2487         * libc/iconv/ccs/iconv_mktbl: Ditto.
2488         * libc/iconv/ccs/jis_x0201.c: Ditto.
2489         * libc/iconv/ccs/jis_x0208_1983.c: Ditto.
2490         * libc/iconv/ccs/shift_jis.c: Ditto.
2491         * libc/iconv/ccs/us_ascii.c: Ditto.
2492         * libc/iconv/ccs/ccs.h: New file.
2493         * libc/iconv/ccs/ccsbi.c: Ditto.
2494         * libc/iconv/ccs/ccsbi.h: Ditto.
2495         * libc/iconv/ccs/ccsnames.h: Ditto.
2496         * libc/iconv/ccs/iso_8859_10.c: Ditto.
2497         * libc/iconv/ccs/iso_8859_11.c: Ditto.
2498         * libc/iconv/ccs/iso_8859_13.c: Ditto.
2499         * libc/iconv/ccs/iso_8859_14.c: Ditto.
2500         * libc/iconv/ccs/iso_8859_3.c: Ditto.
2501         * libc/iconv/ccs/iso_8859_6.c: Ditto.
2502         * libc/iconv/ccs/iso_8859_7.c: Ditto.
2503         * libc/iconv/ccs/iso_8859_8.c: Ditto.
2504         * libc/iconv/ccs/iso_8859_9.c: Ditto.
2505         * libc/iconv/ccs/iso_ir_111.c: Ditto.
2506         * libc/iconv/ccs/jis_x0201_1976.c: Ditto.
2507         * libc/iconv/ccs/jis_x0208_1990.c: Ditto.
2508         * libc/iconv/ccs/koi8_ru.c: Ditto.
2509         * libc/iconv/ccs/koi8_uni.c: Ditto.
2510         * libc/iconv/ccs/mktbl.pl: Ditto.
2511         * libc/iconv/ccs/win_1250.c: Ditto.
2512         * libc/iconv/ccs/win_1251.c: Ditto.
2513         * libc/iconv/ccs/win_1252.c: Ditto.
2514         * libc/iconv/ccs/win_1253.c: Ditto.
2515         * libc/iconv/ccs/win_1254.c: Ditto.
2516         * libc/iconv/ccs/win_1255.c: Ditto.
2517         * libc/iconv/ccs/win_1256.c: Ditto.
2518         * libc/iconv/ccs/win_1257.c: Ditto.
2519         * libc/iconv/ccs/win_1258.c: Ditto.
2520         * libc/iconv/ccs/iso_8859_15.c: Updated.
2521         * libc/iconv/ccs/iso_8859_2.c: Ditto.
2522         * libc/iconv/ccs/iso_8859_4.c: Ditto.
2523         * libc/iconv/ccs/iso_8859_5.c: Ditto.
2524         * libc/iconv/ccs/jis_x0212_1990.c: Ditto.
2525         * libc/iconv/ccs/koi8_r.c: Ditto.
2526         * libc/iconv/ccs/koi8_u.c: Ditto.
2527         * libc/iconv/ccs/ksx1001.c: Ditto.
2528         * libc/iconv/ccs/binary/gb_2312_80.cct: Removed.
2529         * libc/iconv/ccs/binary/jis_x0201.cct: Ditto.
2530         * libc/iconv/ccs/binary/shift_jis.cct: Ditto.
2531         * libc/iconv/ccs/binary/us_ascii.cct: Ditto.
2532         * libc/iconv/ccs/binary/jis_x0208_1983.cct: Ditto.
2533         * libc/iconv/ccs/binary/Makefile.am: Updated.
2534         * libc/iconv/ccs/binary/Makefile.in: Regenerated.
2535         * libc/iconv/ccs/binary/big5.cct: Updated.
2536         * libc/iconv/ccs/binary/cns11643_plane1.cct: Ditto.
2537         * libc/iconv/ccs/binary/cns11643_plane14.cct: Ditto.
2538         * libc/iconv/ccs/binary/cns11643_plane2.cct: Ditto.
2539         * libc/iconv/ccs/binary/cp775.cct: Updated.: Ditto.
2540         * libc/iconv/ccs/binary/cp850.cct: Ditto.: Ditto.
2541         * libc/iconv/ccs/binary/cp852.cct: Ditto.: Ditto.
2542         * libc/iconv/ccs/binary/cp855.cct: Ditto.: Ditto.
2543         * libc/iconv/ccs/binary/cp866.cct: Ditto.: Ditto.
2544         * libc/iconv/ccs/binary/iso_8859_1.cct: Ditto.
2545         * libc/iconv/ccs/binary/iso_8859_15.cct: Ditto.
2546         * libc/iconv/ccs/binary/iso_8859_4.cct: Ditto.
2547         * libc/iconv/ccs/binary/iso_8859_5.cct: Ditto.
2548         * libc/iconv/ccs/binary/iso_8859_2.cct: Ditto.
2549         * libc/iconv/ccs/binary/jis_x0212_1990.cct: Ditto.
2550         * libc/iconv/ccs/binary/koi8_r.cct: Ditto.
2551         * libc/iconv/ccs/binary/koi8_u.cct: Ditto.
2552         * libc/iconv/ccs/binary/ksx1001.cct: Ditto.
2553         * libc/iconv/ccs/binary/iso_8859_10.cct: New file.
2554         * libc/iconv/ccs/binary/iso_8859_11.cct: Ditto.
2555         * libc/iconv/ccs/binary/iso_8859_13.cct: Ditto.
2556         * libc/iconv/ccs/binary/iso_8859_14.cct: Ditto.
2557         * libc/iconv/ccs/binary/iso_8859_3.cct: Ditto.
2558         * libc/iconv/ccs/binary/iso_8859_6.cct: Ditto.
2559         * libc/iconv/ccs/binary/iso_8859_7.cct: Ditto.
2560         * libc/iconv/ccs/binary/iso_8859_8.cct: Ditto.
2561         * libc/iconv/ccs/binary/iso_8859_9.cct: Ditto.
2562         * libc/iconv/ccs/binary/iso_ir_111.cct: Ditto.
2563         * libc/iconv/ccs/binary/jis_x0201_1976.cct: Ditto.
2564         * libc/iconv/ccs/binary/jis_x0208_1990.cct: Ditto.
2565         * libc/iconv/ccs/binary/koi8_ru.cct: Ditto.
2566         * libc/iconv/ccs/binary/koi8_uni.cct: Ditto.
2567         * libc/iconv/ccs/binary/win_1250.cct: Ditto.
2568         * libc/iconv/ccs/binary/win_1251.cct: Ditto.
2569         * libc/iconv/ccs/binary/win_1252.cct: Ditto.
2570         * libc/iconv/ccs/binary/win_1253.cct: Ditto.
2571         * libc/iconv/ccs/binary/win_1254.cct: Ditto.
2572         * libc/iconv/ccs/binary/win_1255.cct: Ditto.
2573         * libc/iconv/ccs/binary/win_1256.cct: Ditto.
2574         * libc/iconv/ccs/binary/win_1257.cct: Ditto.
2575         * libc/iconv/ccs/binary/win_1258.cct: Ditto.
2576         * libc/iconv/ces/Makefile.am: Updated.
2577         * libc/iconv/ces/Makefile.in: Regenerated.
2578         * libc/iconv/ces/ucs-2-internal.c: Updated.
2579         * libc/iconv/ces/ucs-4-internal.c: Ditto.
2580         * libc/iconv/ces/utf-16.c: Ditto.
2581         * libc/iconv/ces/utf-8.c: Ditto.
2582         * libc/iconv/ces/cesbi.c: New file.
2583         * libc/iconv/ces/cesbi.h: Ditto.
2584         * libc/iconv/ces/cesdeps.h: Ditto.
2585         * libc/iconv/ces/euc.c: Ditto.
2586         * libc/iconv/ces/mkdeps.pl: Ditto.
2587         * libc/iconv/ces/table-pcs.c: Ditto.
2588         * libc/iconv/ces/table.c: Ditto.
2589         * libc/iconv/ces/ucs-2.c: Ditto.
2590         * libc/iconv/ces/ucs-4.c: Ditto.
2591         * libc/iconv/ces/us-ascii.c: Ditto.
2592         * libc/iconv/ces/euc-jp.c: Removed.
2593         * libc/iconv/ces/euc-kr.c: Ditto.
2594         * libc/iconv/ces/euc-tw.c: Ditto.
2595         * libc/iconv/ces/gb2312.c: Ditto.
2596         * libc/iconv/ces/iso-10646-ucs-2.: Ditto.c
2597         * libc/iconv/ces/iso-10646-ucs-4.c: Ditto.
2598         * libc/iconv/lib/Makefile.am: Updated.
2599         * libc/iconv/lib/Makefile.in: Regenerated.
2600         * libc/iconv/lib/endian.h: Updated.
2601         * libc/iconv/lib/iconv.c: Ditto.
2602         * libc/iconv/lib/local.h: Ditto.
2603         * libc/iconv/lib/aliases.c: Removed.
2604         * libc/iconv/lib/bialiasesi.c: Ditto.
2605         * libc/iconv/lib/biccs.c: Ditto.
2606         * libc/iconv/lib/bices.c: Ditto.
2607         * libc/iconv/lib/ccs.c: Ditto.
2608         * libc/iconv/lib/ces.c: Ditto.
2609         * libc/iconv/lib/ces_euc.c: Ditto.
2610         * libc/iconv/lib/ces_iso2022.c: Ditto.
2611         * libc/iconv/lib/ces_table.c: Ditto.
2612         * libc/iconv/lib/converter.c: Ditto.
2613         * libc/iconv/lib/deps.h: Ditto.
2614         * libc/iconv/lib/loaddata.c: Ditto.
2615         * libc/iconv/lib/aliasesbi.c: New file.
2616         * libc/iconv/lib/aliasesi.c: Ditto.
2617         * libc/iconv/lib/conv.h: Ditto.
2618         * libc/iconv/lib/encnames.h: Ditto.
2619         * libc/iconv/lib/encoding.deps: Ditto.
2620         * libc/iconv/lib/iconvnls.c: Ditto.
2621         * libc/iconv/lib/iconvnls.h: Ditto.
2622         * libc/iconv/lib/nullconv.c: Ditto.
2623         * libc/iconv/lib/ucsconv.c: Ditto.
2624         * libc/iconv/lib/ucsconv.h: Ditto.
2625         * libc/include/iconv.h: Update copyright.
2626         * libc/*/aclocal.m4: Regenerated.
2627         * libc/*/configure: Ditto.
2628         * libm/*/aclocal.m4: Ditto.
2629         * libm/*/configure: Ditto.
2630
2631 2004-06-22  Alexandre Oliva  <aoliva@redhat.com>
2632
2633         * libc/include/machine/setjmp.h [__H8300__] (_JBTYPE): Define,
2634         instead of typedefing jmp_buf.
2635
2636         2003-07-02  Richard Sandiford  <rsandifo@redhat.com>
2637         * libc/machine/h8300/Makefile.am (lib_a_SOURCES): Add h8sx_strcpy.S.
2638         * libc/machine/h8300/defines.h (LEN): New macro.
2639         * libc/machine/h8300/memcpy.S: Add h8sx version.
2640         * libc/machine/h8300/memset.S: Likewise.
2641         * libc/machine/h8300/strcmp.S: Likewise.
2642         * libc/machine/h8300/setjmp.S: Use h8sx move instructions.
2643         * libc/machine/h8300/h8sx_strcpy.S: New file.
2644         2003-06-30  Richard Sandiford  <rsandifo@redhat.com>
2645         * libc/include/machine/ieeefp.h: Extend __H8300S__ handling to
2646         __H8300SX__.
2647         * libc/include/machine/setjmp.h: Likewise.
2648         * libc/include/sys/config.h: Likewise.
2649         * libc/machine/h8300/defines.h: Likewise.
2650         * libc/machine/h8300/setjmp.S: Likewise.
2651         * libc/machine/h8300/strcmp.S: Likewise.
2652         * libc/sys/h8300hms/close.S: Likewise.
2653         * libc/sys/h8300hms/fstat.S: Likewise.
2654         * libc/sys/h8300hms/lseek.S: Likewise.
2655         * libc/sys/h8300hms/read.S: Likewise.
2656         * libc/sys/h8300hms/write.S: Likewise.
2657         * libc/sys/h8300hms/crt0.S: Likewise.
2658         * libc/machine/h8300/setarch.h: Use .h8300sx or .h8300sxn if
2659         __H8300SX__ is defined.
2660         * libc/sys/h8300hms/setarch.h: Likewise.
2661
2662 2004-06-17  Jeff Johnston  <jjohnstn@redhat.com>
2663
2664         * libc/include/sys/reent.h (_GLOBAL_REENT): Back
2665         out change which set _GLOBAL_REENT to _global_impure_ptr until
2666         we understand why Cygwin breaks because of it.
2667
2668 2004-06-14  Jeff Johnston  <jjohnstn@redhat.com>
2669
2670         * libc/sys/linux/machine/i386/syscall.h: For now, set up
2671         __syscall_return macro for systems with vsyscall.
2672
2673 2004-06-11  Antony King  <antony.king@st.com>
2674
2675         * libc/include/sys/_types.h: Include <sys/lock.h> and change
2676         _flock_t to be of type _LOCK_RECURSIVE_T.
2677         * libc/include/sys/reent.h: (_REENT_INIT): Reformat.
2678         (_REENT_INIT_PTR): Ditto.  Use memset where appropriate.
2679         (_global_impure_ptr): New declaration.
2680         (_GLOBAL_REENT): Change to be _global_impure_ptr.
2681         * libc/include/sys/stdio.h: Include <sys/lock.h> and
2682         <sys/reent.h>.
2683         (_flockfile)[!_SINGLE_THREAD]: Add code for lock call.
2684         (_funlockfile)[!SINGLE_THREAD]: Ditto.
2685         * libc/reent/impure.c: Set _global_impure_ptr to _impure_ptr.
2686         * libc/stdio/fclose.c: Remove casting of fp lock to
2687         _LOCK_RECURSIVE_T.
2688         * libc/stdio/findfp.c: Ditto.
2689         * libc/stdio/fopen.c: Ditto.
2690         * libc/stdio/freopen.c: Ditto.
2691         * libc/stdio/vfprintf.c: Ditto.
2692         * libc/stdio64/fopen64.c: Ditto.
2693         * libc/stdlib/envlock.c: Add default stubs that use generic
2694         locking code.
2695         * libc/stdlib/mlock.c: Ditto.
2696
2697         Jeff Johnston  <jjohnstn@redhat.com>
2698         * libc/sys/linux/sys/_types.h (__flock_mutex_t): New subtype.
2699         (_flock_t): Change to be a struct containing a single member
2700         named mutex which is of type __flock_mutex_t.
2701
2702 2004-06-09  Jeff Johnston  <jjohnstn@redhat.com>
2703
2704         * libc/sys/linux/Makefile.am: Change siglist.inc to be generated
2705         from /usr/include/asm/signal.h instead of kernel sources.  Also
2706         default max to 32 if not found in header file.
2707         * libc/sys/linux/Makefile.in: Regenerated.
2708         * libc/sys/linux/machine/i386/socketcall.h: Fix for Fedora Core 2
2709         systems where __syscall_return is not defined.
2710         * libc/sys/linux/machine/i386/syscall.h: Change for Fedora Core 2
2711         systems to use syscall() function instead of assembler interrupt.
2712
2713 2004-06-09  Toralf Lund  <toralf@procaptura.com>
2714
2715         * libc/sys/arm/setjmp.S, libc/sys/arm/access.c: Move
2716         files from libc/sys/arm to libc/machine/arm.
2717         * libc/machine/arm/Makefile.am, libc/machine/arm/Makefile.in: Add
2718         library build support for files moved from libc/sys/arm.
2719         * libc/sys/arm/Makefile.am, libc/sys/arm/Makefile.in:  Remove
2720         references to access and setjmp.
2721         * configure.host: Add checks for newlib_may_supply_syscalls to
2722         determine whether or not to use sys/arm directory and use
2723         special compiler flags: ARM_RDI_MONITOR and ARM_RDP_MONITOR.
2724        
2725 2004-06-02  Jeff Johnston  <jjohnstn@redhat.com>
2726
2727         * libc/stdio/vfscanf.c (__svfscanf_r): For CT_INT conversions,
2728         reset digit flags appropriately after we have discovered "0x".
2729         * libc/machine/powerpc/vfscanf.c (__svfscanf_r): Ditto.
2730
2731 2004-05-27  Jeff Johnston  <jjohnstn@redhat.com>
2732
2733         * libc/stdio/vfprintf.c (_VFPRINTF): Move file locking
2734         from here ...
2735         (_VFPRINTF_R): ... to here so all I/O printf routines
2736         are covered.
2737
2738 2004-05-26  Jeff Johnston  <jjohnstn@redhat.com>
2739
2740         * libc/search/hash_buf.c: Protect MAX and MIN macros from
2741         redefinition.
2742         * libc/search/hash.c: Ditto.
2743
2744 2004-05-25  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
2745
2746         * newlib.hin: (_WANT_IO_POS_ARGS): New define.
2747         (_WANT_IO_LONG_LONG): Ditto.
2748         (_WANT_IO_LONG_DOUBLE): Ditto.
2749         * configure.in: Add new configuration options
2750         --enable-newlib-io-long-long and --enable-newlib-io-long-double
2751         which tie to new defines in newlib.hin.
2752         * configure: Regenerated.
2753         * configure.host: Add checks for new configuration options.  Also
2754         fix up check for --enable-newlib-io-pos-args so configuration
2755         option will override any default for a given platform.
2756         Remove defining compiler flags for the _WANT_IO* options.
2757         * libc/stdio/vfprintf.c: Change to use new newlib.hin defines
2758         instead of looking for old compiler flags.
2759         * libc/stdio/vfscanf.c: Ditto.
2760         * libc/stdio/vfieeefp.h: Ditto.
2761         * libc/machine/powerpc/vfprintf.c: Ditto.
2762         * libc/machine/powerpc/vfscanf.c: Ditto.
2763
2764 2004-05-25  Jeff Johnston  <jjohnstn@redhat.com>
2765
2766         * testsuite/include/check.h: Add include of <stdio.h>.
2767
2768 2004-05-17  Corinna Vinschen  <corinna@vinschen.de>
2769
2770         * libc/include/grp.h: Declare getgrnam_r and getgrgid_r also on Cygwin.
2771
2772 2004-05-11  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
2773
2774         * libc/stdio/vfprintf.c (VFPRINTF_R): Use _free_r instead
2775         of free.
2776
2777 2004-05-07  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
2778
2779         * libc/stdio/iprintf.c (_iprintf_r): Fix old-style argument
2780         list for reentrant pointer.  Call _vfiprintf_r.
2781         * libc/stdio/siprintf.c (_siprintf_r): New function.
2782         * libc/stdio/vfprintf.c (__sbprintf): Add reetrant struct
2783         pointer argument.  Change all callers.  Call _VFPRINTF_R.
2784         * libc/include/stdio.h (_siprintf_r, _vfiprintf_r): New
2785         prototypes.
2786
2787 2004-05-07  Jeff Johnston  <jjohnstn@redhat.com>
2788
2789         * libc/include/sys/param.h: Remove endian info and include
2790         <machine/endian.h> instead.
2791         * libc/include/machine/endian.h: New file.
2792         * libc/include/machine/param.h: Ditto.
2793         * libc/machine/arm/machine/endian.h: Ditto.
2794         * libc/machine/arm/machine/param.h: Ditto.
2795         * libc/sys/arm/sys/param.h: Removed.
2796         * libc/sys/sysvi386/sys/param.h: Ditto.
2797         * libc/sys/rtems/sys/param.h: Modified to include <machine/endian.h>.
2798
2799 2004-05-03  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
2800
2801         * libc/stdio/vfprintf.c (_VFPRINTF_R): Set error flag when
2802         multibyte functions return failure for %C, %S, %lc, and %ls
2803         format specifiers.
2804
2805 2004-05-03  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
2806
2807         * testsuite/include/check.h (CHECK): Add flush of stdout.
2808
2809 2004-05-03  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
2810
2811         * libc/include/stdio.h (_ungetc_r): New prototype.
2812         * libc/stdio/ungetc.c (_ungetc_r): New reentrant function.
2813         (__submore): Add reentrant struct pointer argument.
2814         (ungetc): Change to call _ungetc_r.
2815
2816 2004-04-28  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
2817
2818         * libc/stdio/local.h (_fwalk_reent): Specify prototype of
2819         function pointer argument.
2820         * libc/stdio/fwalk.c (_fwalk, _fwalk_reent): Change prototypes
2821         to specify function pointer arguments.
2822         (__fwalk, __fwalk_reent): Ditto.
2823
2824 2004-04-26  Aldy Hernandez  <aldyh@redhat.com>
2825
2826         * libc/machine/powerpc/vfscanf.c (__svfscanf_r): Fix typo in
2827         CT_INT case.
2828
2829 2004-04-23  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
2830
2831         * configure.in: Define _MB_CAPABLE if mb supported.
2832         * configure: Regenerated.
2833         * configure.host: Remove manual setting of MB_CAPABLE compiler
2834         flag.
2835         * newlib.hin: Add _MB_CAPABLE flag.
2836         * libc/ctype/iswalpha.c, libc/ctype/iswblank.c: Include <newlib.h>
2837         and check for _MB_CAPABLE flag instead of MB_CAPABLE.
2838         * libc/ctype/iswcntrl.c, libc/ctype/iswprint.c: Ditto.
2839         * libc/ctype/iswpunct.c, libc/ctype/iswspace.c: Ditto.
2840         * libc/ctype/jp2uc.c: Ditto.
2841         * libc/ctype/towlower.c, libc/ctype/towupper.c: Ditto.
2842         * libc/locale/locale.c: Ditto
2843         * libc/machine/powerpc/vfscanf.c: Ditto
2844         * libc/stdio/vfprintf.c, libc/stdio/vfscanf.c: Ditto
2845         * libc/stdlib/mblen.c: Ditto
2846         * libc/stdlib/mblen_r.c, libc/stdlib/mbrlen.c: Ditto
2847         * libc/stdlib/mbrtowc.c, libc/stdlib/mbsrtowcs.c: Ditto
2848         * libc/stdlib/mbstowcs.c, libc/stdlib/mbtowc.c: Ditto
2849         * libc/stdlib/mbtowc_r.c, libc/stdlib/wcrtomb.c: Ditto
2850         * libc/stdlib/wcsrtombs.c, libc/stdlib/wcstombs.c: Ditto
2851         * libc/stdlib/wctomb.c, libc/sys/linux/intl/dcigettext.c: Ditto
2852         * libc/sys/linux/intl/explodename.c: Ditto
2853         * libc/sys/linux/intl/finddomain.c: Ditto
2854         * libc/sys/linux/intl/l10nflist.c: Ditto
2855         * libc/sys/linux/intl/loadmsgcat.c: Ditto
2856         * libc/sys/linux/intl/localealias.c: Ditto
2857
2858 2004-04-23  Jeff Johnston  <jjohnstn@redhat.com>
2859
2860         * libc/machine/powerpc/vfscanf.c (NNZDIGITS): New define.
2861         (__svfscanf_r): In integer conversions, leave out leading zeroes
2862         which are not part of a base prefix.
2863         Keep track of width truncation to fit into buf, not counting left-out
2864         zeroes against width till the truncation has been compensated for.
2865         This is based on Joern's patch of 04/21 for libc/stdio/vfscanf.c.
2866
2867 2004-04-23  Jeff Johnston  <jjohnstn@redhat.com>
2868
2869         * libc/include/stdio.h: (_ftell_r, _fseek_r): New prototypes.
2870
2871 2004-04-23  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
2872
2873         * libc/stdio/asprintf.c libc/stdio/clearerr.c,
2874         libc/stdio/fclose.c libc/stdio/fcloseall.c libc/stdio/fdopen.c,
2875         libc/stdio/feof.c libc/stdio/ferror.c libc/stdio/fflush.c,
2876         libc/stdio/fgetc.c libc/stdio/fgetpos.c libc/stdio/fgets.c,
2877         libc/stdio/fileno.c libc/stdio/findfp.c libc/stdio/fiprintf.c,
2878         libc/stdio/flags.c libc/stdio/fopen.c libc/stdio/fprintf.c,
2879         libc/stdio/fputc.c libc/stdio/fputs.c libc/stdio/fread.c,
2880         libc/stdio/freopen.c libc/stdio/fscanf.c libc/stdio/fseek.c,
2881         libc/stdio/fseeko.c libc/stdio/fsetpos.c libc/stdio/ftell.c,
2882         libc/stdio/ftello.c libc/stdio/fvwrite.c libc/stdio/fwalk.c,
2883         libc/stdio/fwrite.c libc/stdio/getc.c libc/stdio/getc_u.c,
2884         libc/stdio/getchar.c libc/stdio/getchar_u.c,
2885         libc/stdio/getdelim.c libc/stdio/getline.c libc/stdio/gets.c,
2886         libc/stdio/getw.c libc/stdio/iprintf.c libc/stdio/local.h,
2887         libc/stdio/makebuf.c libc/stdio/mktemp.c libc/stdio/perror.c,
2888         libc/stdio/printf.c libc/stdio/putc.c libc/stdio/putc_u.c,
2889         libc/stdio/putchar.c libc/stdio/putchar_u.c libc/stdio/puts.c,
2890         libc/stdio/putw.c libc/stdio/refill.c libc/stdio/remove.c,
2891         libc/stdio/rename.c libc/stdio/rewind.c libc/stdio/rget.c,
2892         libc/stdio/scanf.c libc/stdio/setbuf.c libc/stdio/setbuffer.c,
2893         libc/stdio/setlinebuf.c libc/stdio/setvbuf.c,
2894         libc/stdio/siprintf.c libc/stdio/snprintf.c,
2895         libc/stdio/sprintf.c libc/stdio/sscanf.c libc/stdio/stdio.c,
2896         libc/stdio/tmpfile.c libc/stdio/tmpnam.c libc/stdio/ungetc.c,
2897         libc/stdio/vasprintf.c libc/stdio/vfieeefp.h,
2898         libc/stdio/vfprintf.c libc/stdio/vfscanf.c,
2899         libc/stdio/vprintf.c libc/stdio/vscanf.c,
2900         libc/stdio/vsnprintf.c libc/stdio/vsprintf.c,
2901         libc/stdio/vsscanf.c libc/stdio/wbuf.c,
2902         libc/stdio/wsetup.c: Perform minor formatting changes.  Move
2903         copyright notices to top of file, ensure that <_ansi.h> is
2904         included, be consistent with open parentheses, use _DEFUN macro,
2905         include "local.h" where needed, and remove various compiler
2906         warnings.
2907
2908 2004-04-21  J"orn Rennecke <joern.rennecke@superh.com>
2909
2910         * libc/stdio/vfscanf.c (NNZDIGITS): New define.
2911         (__svfscanf_r): In integer conversions, leave out leading zeroes
2912         which are not part of a base prefix.
2913         Keep track of width truncation to fit into buf, not counting left-out
2914         zeroes against width till the truncation has been compensated for.
2915
2916 2004-04-20  Corinna Vinschen  <corinna@vinschen.de>
2917
2918         * libc/include/sys/unistd.h (ttyname_r): Add missing comma.
2919
2920 2004-04-20  Corinna Vinschen  <corinna@vinschen.de>
2921
2922         * libc/include/sys/unistd.h (ttyname_r): Add declaration for Cygwin.
2923
2924 2004-04-10  Corinna Vinschen  <corinna@vinschen.de>
2925
2926         * libc/include/sys/unistd.h (sync): Define void on Cygwin according
2927         to SUSv3.
2928
2929 2004-04-08  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
2930
2931         * libc/stdio/fclose.c (_fclose_r): New function.
2932         * libc/stdio/freopen.c (_freopen_r): Call _fclose_r.
2933         * libc/stdio/fcloseall.c (_fcloseall_r): Call _fwalk_reent.
2934         * libc/stdio64/freopen64.c (_freopen64_r): Use _fclose_r.
2935         * libc/include/stdio.h (_fclose_r): New prototype.
2936         * libc/stdio/fopen.c: Fix typo in comment.
2937
2938 2004-04-08  Jeff Johnston  <jjohnstn@redhat.com>
2939
2940         * libc/stdio/fwalk.c (_fwalk_reent): New version of _fwalk
2941         to handle _r reentrant functions.
2942
2943 2004-04-08  Eric Christopher  <echristo@redhat.com>
2944
2945         * libc/include/machine/setjmp.h: Fix endif locations.
2946
2947 2004-04-01  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
2948
2949         * libc/time/strptime.c: Add standard includes to avoid
2950         warning messages at compilation time.
2951
2952 2004-04-01  Jeff Johnston  <jjohnstn@redhat.com>
2953
2954         * libc/stdio/vfscanf.c (__svfscanf_r): Add locking/unlocking
2955         of file.
2956
2957 2004-03-30  Jeff Johnston  <jjohnstn@redhat.com>
2958
2959         * libc/machine/h8300/Makefile.am: Reformat slightly.
2960         * libc/machine/h8300/Makefile.in: Regenerate.
2961
2962 2004-03-30  Thomas Pfaff  <tpfaff@gmx.net>
2963
2964         * libc/stdio/findfp.c (__fp_lock_all): Add call to
2965         __sfp_lock_acquire.
2966         (__fp_unlock_all): Add call to __sfp_lock_release. 
2967
2968 2004-03-25  Thomas Pfaff  <tpfaff@gmx.net>
2969
2970         * libc/stdio/fclose.c (fclose): Protect file pointer list when
2971         releasing a file.
2972          * libc/stdio/fcloseall.c (_fcloseall_r): Close all files via
2973         fwalk.
2974         * libc/stdio/fdopen.c (_fdopen_r): Add calls to
2975         _flockfile/_funlockfile.
2976         * libc/stdio/findfp.c: Move __sfp_lock. Change __sfp_lock type
2977         to recursive.
2978         Change __lock_acquire/__lock_release calls for __sfp_lock to
2979         __sfp_lock_acquire/__sfp_lock_release throughout.
2980         (std): Make sure that file lock is only initialized once.
2981         (__sfp): Move _file initialization. Initialize file lock.
2982         (__sfp_lock_acquire): New function.
2983         (__sfp_lock_release): Ditto.
2984         (__fp_lock_all): Remove __sfp_lock_acquire call.
2985         (__fp_unlock_all): Remove __sfp_lock_release call.
2986         * libc/stdio/fopen.c (_fopen_r): Protect file pointer list.
2987         Add calls to _flockfile/_funlockfile. Remove
2988         __lock_init_recursive call.
2989         * libc/stdio/freopen.c (_freopen_r): Protect file pointer list.
2990         * libc/stdio/fwalk.c (__fwalk): New static function.
2991         (_fwalk): Protect file pointer list. Use __fwalk to walk through
2992         file pointers.
2993         * libc/stdio/local.h: Add defines for
2994         __sfp_lock_acquire/__sfp_lock_release when
2995         single threaded. Add function prototypes otherwise.
2996         * libc/stdio64/fdopen64.c (_fdopen64_r): Add calls to
2997         _flockfile/_funlockfile.
2998         * libc/stdio/fopen64.c (_fopen64_r): Protect file pointer list.
2999         Add calls to _flockfile/_funlockfile. Remove
3000          __lock_init_recursive call.
3001         * libc/stdio/freopen64.c (_freopen64_r): Protect file pointer
3002         list. 
3003
3004 2004-03-25  Jeff Johnston  <jjohnstn@redhat.com>
3005
3006         * libc/sys/linux/sys/lock.h: Turn on __USE_GNU flag if not already
3007         defined.  Change __LOCK_RECURSIVE_INIT to be __LOCK_INIT_RECURSIVE.
3008         * libc/sys/linux/dl/dl-support.c: Change __LOCK_RECURSIVE_INIT
3009         to be __LOCK_INIT_RECURSIVE.
3010
3011 2004-03-11  Kazu Hirata  <kazu@cs.umass.edu>
3012
3013         * libc/sys/h8300hms/Makefile.am (lib_a_SOURCES): Replace
3014         _exit.c with _exit.S.
3015         * libc/sys/h8300hms/Makefile.in: Regenerate.
3016         * libc/sys/h8300hms/_exit.c: Remove.
3017         * libc/sys/h8300hms/_exit.S: New.
3018
3019 2004-03-09  Thomas Pfaff  <tpfaff@gmx.net>
3020
3021         * libc/stdio/findfp.c (__sfp): Rename lock to __sfp_lock.
3022         Change __sfp_lock to static global.
3023         (__fp_lock): New static function.
3024         (__fp_unlock): Ditto.
3025         (__fp_lock_all): New function.
3026         (__fp_unlock_all): Ditto. 
3027
3028 2004-02-10  Christopher Faylor  <cgf@redhat.com>
3029
3030         * libm/mathfp/er_gamma.c (gamma): Add new non-reentrant function.
3031         * libm/mathfp/er_lgamma.c (lgamma): Ditto.
3032         * libm/mathfp/erf_gamma.c (gammaf): Ditto.
3033         * libm/mathfp/erf_lgamma.c (lgammaf): Ditto.
3034
3035 2004-02-09  Christopher Faylor  <cgf@redhat.com>
3036
3037         * libc/include/time.h (TIMER_RELTIME): New define.
3038
3039 2004-02-09  Jeff Johnston  <jjohnstn@redhat.com>
3040
3041         * libc/stdlib/Makefile.am: Add mallstatsr to LIBADD_OBJS.
3042         * libc/stdlib/Makefile.in: Regenerated.
3043
3044 2004-02-08  Christopher Faylor  <cgf@redhat.com>
3045
3046         * libc/include/sys/features.h: Add _POSIX_TIMERS define for __CYGWIN__.
3047         * libc/include/sys/reent.h (__getreent): Protect against possibly being
3048         defined.
3049         * libc/include/sys/unistd.h (fdatasync): Don't define for __CYGWIN__.
3050
3051 2004-02-05  Paul Brook  <paul@codesourcery.com>
3052
3053         * libc/include/machine/ieeefp.h[__arm__][__VFP_FP__]: Set 
3054         IEEE_{BIG,LITTLE} based on __ARMEL__ flag.
3055
3056 2004-02-02  Jeff Johnston  <jjohnstn@redhat.com>
3057
3058         * NEWS: Update with 1.12.0 info.
3059         * README: Ditto.
3060         * acinclude.m4: Change version number to 1.12.0.
3061         * aclocal.m4: Regenerated.
3062         * configure: Ditto.
3063         * doc/aclocal.m4: Ditto.
3064         * doc/configure: Ditto.
3065         * libc/*/aclocal.m4: Ditto.
3066         * libc/*/configure: Ditto.
3067         * libc/libc.texinfo: Ditto.
3068         * libm/*/aclocal.m4: Ditto.
3069         * libm/*/configure: Ditto.
3070         * libm/libm.texinfo: Ditto.
3071         * libc/sys/linux/shared.ld: Add VERS_1.12.
3072
3073 2004-02-02  Joel Sherrill  <joel@oarcorp.com>
3074
3075         * configure.host: Add support for tic4x.
3076         * libc/include/machine/ieeefp.h: Ditto.
3077         * libc/include/machine/setjmp.h: Ditto.
3078         * libc/machine/tic4x/Makefile.am: New file.
3079         * libc/machine/tic4x/configure.in: Ditto.
3080         * libc/machine/tic4x/setjmp.S: Ditto.
3081         * libc/machine/tic4x/aclocal.m4: Generated.
3082         * libc/machine/tic4x/configure: Ditto.
3083         * libc/machine/tic4x/Makefile.in: Ditto.
3084
3085 2004-01-30  Jeff Johnston  <jjohnstn@redhat.com>
3086
3087         * libc/stdio/fwalk.c (_fwalk.c): Don't traverse the
3088         file chain on the passed in reentrancy struct if it
3089         is _GLOBAL_REENT.
3090
3091 2004-01-30  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
3092             Jeff Johnston  <jjohnstn@redhat.com>
3093
3094         * libc/iconv/iconv.tex: Updated with more information.
3095
3096 2004-01-30  Thomas Pfaff  <tpfaff@gmx.net>
3097             Jeff Johnston  <jjohnstn@redhat.com>
3098
3099         * libc/stdio/fwalk.c (_fwalk): Traverse the given reentrancy
3100         struct for std streams and traverse the global reeentrancy
3101         struct for all other streams.
3102
3103 2004-01-27  Jeff Johnston  <jjohnstn@redhat.com>
3104
3105         * libc/stdlib/atexit.c: Protect global atexit list with a
3106         lock when newlib is multithreaded.
3107
3108 2004-01-27  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
3109
3110         * configure.in: Add support to generate iconv converter flags
3111         for newlib.h
3112         * newlib.hin: Add iconv converter flags.
3113         * configure: Regenerated.
3114         * libc/Makefile.in: Ditto.
3115         * libc/configure.in: Moved iconv converter parsing logic to
3116         top level newlib configure.in.
3117         * libc/configure: Regenerated.
3118         * libc/iconv/Makefile.in: Ditto.
3119         * libc/iconv/README.TODO
3120         * libc/iconv/charset.aliases: Remove wrong BE aliases for
3121         UCS2/UCS4/UTF8.
3122         * libc/iconv/ccs/Makefile.am: Remove C flag setting now that
3123         newlib.h can be used.
3124         * libc/iconv/ces/Makefile.am: Ditto.
3125         * libc/iconv/lib/Makefile.am: Ditto.
3126         * libc/iconv/ccs/Makefile.in: Regenerated.
3127         * libc/iconv/ces/Makefile.in: Ditto.
3128         * libc/iconv/lib/Makefile.in: Ditto.
3129         * libc/iconv/ccs/README.CCS.SOURCES: Updated.
3130         * libc/iconv/ccs/iconv_mktbl: Don't write junk strings to binaries.
3131         * libc/iconv/ccs/big5.c: Switch to use new underscored flags
3132         defined in newlib.h.
3133         * libc/iconv/ccs/cns11643_plane1.c: Ditto.
3134         * libc/iconv/ccs/cns11643_plane14.c: Ditto.
3135         * libc/iconv/ccs/cns11643_plane2.c: Ditto.
3136         * libc/iconv/ccs/cp775.c: Ditto.
3137         * libc/iconv/ccs/cp850.c: Ditto.
3138         * libc/iconv/ccs/cp852.c: Ditto.
3139         * libc/iconv/ccs/cp855.c: Ditto.
3140         * libc/iconv/ccs/cp866.c: Ditto.
3141         * libc/iconv/ccs/gb_2312_80.c: Ditto.
3142         * libc/iconv/ccs/iso_8859_1.c: Ditto.
3143         * libc/iconv/ccs/iso_8859_15.c: Ditto.
3144         * libc/iconv/ccs/iso_8859_2.c: Ditto.
3145         * libc/iconv/ccs/iso_8859_4.c: Ditto.
3146         * libc/iconv/ccs/iso_8859_5.c: Ditto.
3147         * libc/iconv/ccs/jis_x0201.c: Ditto.
3148         * libc/iconv/ccs/jis_x0208_1983.c: Ditto.
3149         * libc/iconv/ccs/jis_x0212_1990.c: Ditto.
3150         * libc/iconv/ccs/koi8_r.c: Ditto.
3151         * libc/iconv/ccs/koi8_u.c: Ditto.
3152         * libc/iconv/ccs/ksx1001.c: Ditto.
3153         * libc/iconv/ccs/shift_jis.c: Ditto.
3154         * libc/iconv/ccs/us_ascii.c: Ditto.
3155         * libc/iconv/ccs/binary/big5.cct: Newly generated.
3156         * libc/iconv/ccs/binary/cns11643_plane1.cct: Ditto.
3157         * libc/iconv/ccs/binary/cns11643_plane14.cct: Ditto.
3158         * libc/iconv/ccs/binary/cns11643_plane2.cct: Ditto.
3159         * libc/iconv/ccs/binary/cp775.cct: Ditto.
3160         * libc/iconv/ccs/binary/cp850.cct: Ditto.
3161         * libc/iconv/ccs/binary/cp852.cct: Ditto.
3162         * libc/iconv/ccs/binary/cp855.cct: Ditto.
3163         * libc/iconv/ccs/binary/cp866.cct: Ditto.
3164         * libc/iconv/ccs/binary/gb_2312_80.cct: Ditto.
3165         * libc/iconv/ccs/binary/iso_8859_1.cct: Ditto.
3166         * libc/iconv/ccs/binary/iso_8859_15.cct: Ditto.
3167         * libc/iconv/ccs/binary/iso_8859_2.cct: Ditto.
3168         * libc/iconv/ccs/binary/iso_8859_4.cct: Ditto.
3169         * libc/iconv/ccs/binary/iso_8859_5.cct: Ditto.
3170         * libc/iconv/ccs/binary/jis_x0201.cct: Ditto.
3171         * libc/iconv/ccs/binary/jis_x0208_1983.cct: Ditto.
3172         * libc/iconv/ccs/binary/jis_x0212_1990.cct: Ditto.
3173         * libc/iconv/ccs/binary/koi8_r.cct: Ditto.
3174         * libc/iconv/ccs/binary/koi8_u.cct: Ditto.
3175         * libc/iconv/ccs/binary/ksx1001.cct: Ditto.
3176         * libc/iconv/ccs/binary/shift_jis.cct: Ditto.
3177         * libc/iconv/ccs/binary/us_ascii.cct: Ditto.
3178         * libc/iconv/lib/bialiasesi.c: Sync with charset.aliases.
3179         * libc/iconv/ces/euc-jp.c: Use newlib.h macros.
3180         * libc/iconv/ces/euc-kr.c: Ditto.
3181         * libc/iconv/ces/euc-tw.c: Ditto.
3182         * libc/iconv/ces/gb2312.c: Ditto.
3183         * libc/iconv/ces/iso-10646-ucs-2.c: Ditto.
3184         * libc/iconv/ces/iso-10646-ucs-4.c: Ditto.
3185         * libc/iconv/ces/ucs-2-internal.c: Ditto.
3186         * libc/iconv/ces/ucs-4-internal.c: Ditto.
3187         * libc/iconv/ces/utf-16.c: Ditto.
3188         * libc/iconv/ces/utf-8.c: Ditto.
3189         * libc/iconv/lib/aliases.c: Ditto.
3190         * libc/iconv/lib/biccs.c: Ditto.
3191         * libc/iconv/lib/bices.c: Ditto.
3192         * libc/iconv/lib/ccs.c: Ditto.
3193         * libc/iconv/lib/ces.c: Ditto.
3194         * libc/iconv/lib/ces_euc.c: Ditto.
3195         * libc/iconv/lib/ces_iso2022.c: Ditto.
3196         * libc/iconv/lib/ces_table.c: Ditto.
3197         * libc/iconv/lib/converter.c: Ditto.
3198         * libc/iconv/lib/deps.h: Ditto.
3199         * libc/iconv/lib/endian.h: Ditto.
3200         * libc/iconv/lib/iconv.c: Ditto.
3201         * libc/iconv/lib/loaddata.c: Ditto.
3202         * libc/iconv/lib/local.h: Include newlib.h.
3203         * libc/argz/Makefile.in: Regenerated.
3204         * libc/ctype/Makefile.in: Ditto.
3205         * libc/errno/Makefile.in: Ditto.
3206         * libc/iconv/ccs/binary/Makefile.in: Ditto.
3207         * libc/locale/Makefile.in: Ditto.
3208         * libc/misc/Makefile.in: Ditto.
3209         * libc/posix/Makefile.in: Ditto.
3210         * libc/reent/Makefile.in: Ditto.
3211         * libc/search/Makefile.in: Ditto.
3212         * libc/signal/Makefile.in: Ditto.
3213         * libc/stdio/Makefile.in: Ditto.
3214         * libc/stdio64/Makefile.in: Ditto.
3215         * libc/stdlib/Makefile.in: Ditto.
3216         * libc/string/Makefile.in: Ditto.
3217         * libc/syscalls/Makefile.in: Ditto.
3218         * libc/time/Makefile.in: Ditto.
3219         * libc/unix/Makefile.in: Ditto.
3220         * testsuite/newlib.iconv/iconv.exp: New file.
3221         * testsuite/newlib.iconv/iconvjp.c: Ditto.
3222         * testsuite/newlib.iconv/iconvnm.c: Ditto.
3223         * testsuite/newlib.iconv/iconvru.c: Ditto.
3224
3225 2004-01-23  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
3226
3227         * acinclude.m4 (--enable-newlib-iconv): New configuration option.
3228         (--enable-newlib-builtin-converters): Ditto.
3229         * configure.in: Add code to set _ICONV_ENABLED flag.
3230         Set _MB_LEN_MAX to 1 if not mb enabled.
3231         * configure: Regenerated.
3232         * aclocal.m4: Ditto.
3233         * Makefile.in: Ditto.
3234         * newlib.hin: Add _ICONV_ENABLED flag.
3235         * libc/Makefile.am: Add support for iconv.
3236         * libc/configure.in: Ditto.
3237         * libc/Makefile.in: Regenerated.
3238         * libc/aclocal.m4: Ditto.
3239         * libc/configure: Ditto.
3240         * libc/libc.texinfo: Add iconv documentation.
3241         * libc/iconv/AUTHORS, libc/iconv/COPYING, libc/iconv/Makefile.am,
3242         libc/iconv/Makefile.in, libc/iconv/README.ORIGINAL,
3243         libc/iconv/README.TODO, libc/iconv/charset.aliases,
3244         libc/iconv/iconv.tex, libc/iconv/ccs/Makefile.am,
3245         libc/iconv/ccs/Makefile.in, libc/iconv/ccs/README.CCS.SOURCES,
3246         libc/iconv/ccs/big5.c, libc/iconv/ccs/cns11643_plane1.c,
3247         libc/iconv/ccs/cns11643_plane14.c, libc/iconv/ccs/cns11643_plane2.c,
3248         libc/iconv/ccs/cp775.c, libc/iconv/ccs/cp850.c,
3249         libc/iconv/ccs/cp852.c, libc/iconv/ccs/cp855.c,
3250         libc/iconv/ccs/cp866.c, libc/iconv/ccs/gb_2312_80.c,
3251         libc/iconv/ccs/iconv_mktbl, libc/iconv/ccs/iso_8859_1.c,
3252         libc/iconv/ccs/iso_8859_15.c, libc/iconv/ccs/iso_8859_2.c,
3253         libc/iconv/ccs/iso_8859_4.c, libc/iconv/ccs/iso_8859_5.c,
3254         libc/iconv/ccs/jis_x0201.c, libc/iconv/ccs/jis_x0208_1983.c,
3255         libc/iconv/ccs/jis_x0212_1990.c, libc/iconv/ccs/koi8_r.c,
3256         libc/iconv/ccs/koi8_u.c, libc/iconv/ccs/ksx1001.c,
3257         libc/iconv/ccs/shift_jis.c, libc/iconv/ccs/us_ascii.c,
3258         libc/iconv/ccs/binary/Makefile.am, libc/iconv/ccs/binary/Makefile.in,
3259         libc/iconv/ccs/binary/big5.cct,
3260         libc/iconv/ccs/binary/cns11643_plane1.cct,
3261         libc/iconv/ccs/binary/cns11643_plane14.cct,
3262         libc/iconv/ccs/binary/cns11643_plane2.cct,
3263         libc/iconv/ccs/binary/cp775.cct, libc/iconv/ccs/binary/cp850.cct,
3264         libc/iconv/ccs/binary/cp852.cct, libc/iconv/ccs/binary/cp855.cct,
3265         libc/iconv/ccs/binary/cp866.cct, libc/iconv/ccs/binary/gb_2312_80.cct,
3266         libc/iconv/ccs/binary/iso_8859_1.cct,
3267         libc/iconv/ccs/binary/iso_8859_15.cct,
3268         libc/iconv/ccs/binary/iso_8859_2.cct,
3269         libc/iconv/ccs/binary/iso_8859_4.cct,
3270         libc/iconv/ccs/binary/iso_8859_5.cct,
3271         libc/iconv/ccs/binary/jis_x0201.cct,
3272         libc/iconv/ccs/binary/jis_x0208_1983.cct,
3273         libc/iconv/ccs/binary/jis_x0212_1990.cct,
3274         libc/iconv/ccs/binary/koi8_r.cct, libc/iconv/ccs/binary/koi8_u.cct,
3275         libc/iconv/ccs/binary/ksx1001.cct,
3276         libc/iconv/ccs/binary/shift_jis.cct,
3277         libc/iconv/ccs/binary/us_ascii.cct,
3278         libc/iconv/ces/Makefile.am, libc/iconv/ces/Makefile.in,
3279         libc/iconv/ces/euc-jp.c, libc/iconv/ces/euc-kr.c,
3280         libc/iconv/ces/euc-tw.c, libc/iconv/ces/gb2312.c,
3281         libc/iconv/ces/iso-10646-ucs-2.c, libc/iconv/ces/iso-10646-ucs-4.c,
3282         libc/iconv/ces/ucs-2-internal.c, libc/iconv/ces/ucs-4-internal.c,
3283         libc/iconv/ces/utf-16.c, libc/iconv/ces/utf-8.c,
3284         libc/iconv/lib/Makefile.am, libc/iconv/lib/Makefile.in,
3285         libc/iconv/lib/aliases.c, libc/iconv/lib/bialiasesi.c,
3286         libc/iconv/lib/biccs.c, libc/iconv/lib/bices.c,
3287         libc/iconv/lib/ccs.c, libc/iconv/lib/ces.c,
3288         libc/iconv/lib/ces_euc.c, libc/iconv/lib/ces_iso2022.c,
3289         libc/iconv/lib/ces_table.c, libc/iconv/lib/converter.c,
3290         libc/iconv/lib/deps.h, libc/iconv/lib/endian.h,
3291         libc/iconv/lib/iconv.c, libc/iconv/lib/loaddata.c,
3292         libc/iconv/lib/local.h, libc/include/iconv.h: New files.
3293         * libc/sys/linux/include/iconv.h: Ditto.
3294         * libc/include/sys/_types.h (_iconv_t): Added.
3295         * doc/aclocal.m4: Regenerated.
3296         * doc/configure: Ditto.
3297         * doc/Makefile.in: Ditto.
3298         * iconvdata/Makefile.in: Ditto.
3299         * iconvdata/aclocal.m4: Ditto.
3300         * iconvdata/configure: Ditto.
3301         * libc/*aclocal.m4: Ditto.
3302         * libc/*Makefile.in: Ditto.
3303         * libc/*configure: Ditto.
3304         * libm/*aclocal.m4: Ditto.
3305         * libm/*Makefile.in: Ditto.
3306         * libm/*configure: Ditto.
3307
3308 2004-01-22  Thomas Pfaff  <tpfaff@gmx.net>
3309
3310         * libc/stdio/findfp.c (__sfp): Protect global FILE pointer list
3311         by a lock when newlib is multithreaded. 
3312
3313 2004-01-21  Jeff Johnston  <jjohnstn@redhat.com>
3314
3315         * libc/stdlib/mbrtowc.c (_mbrtowc_r): Fix case where s is null
3316         pointer to match C99 spec.
3317         * libc/stdlib/mbsrtowcs.c (_mbsrtowc_r): Fix to ignore len when
3318         dst is NULL.  Also fix to not alter src pointer when dst is NULL
3319         and call _mbrtowc_r instead of _mbtowc_r.
3320         * libc/stdlib/wcsrtombs.c (_wcsrtombs_r): Call _wcrtomb_r instead
3321         of _wctomb_r.
3322
3323 2004-01-19  Thomas Pfaff  <tpfaff@gmx.net>
3324
3325         * libc/stdio/fclose.c (fclose): Release FILE as the last step.
3326         * libc/stdio/freopen.c (freopen): Ditto.
3327
3328 2004-01-16  Christopher Faylor  <cgf@redhat.com>
3329
3330         * libc/stdio/vfprintf.c: Add sys/lock.h include.
3331
3332 2004-01-16  Thomas Pfaff  <tpfaff@gmx.net>
3333
3334         * libc/stdio/findfp.c (__sfp): Remove unnecessary memset.
3335         * libc/stdio/vfprintf.c (__sbprintf): Ditto.
3336         Add calls to __lock_init_recursive and __lock_close_recursive
3337         instead.
3338
3339 2004-01-15  Thomas Pfaff  <tpfaff@gmx.net>
3340
3341         * libc/stdio/fclose.c: Include sys/lock.h.
3342         (fclose): Destroy lock when file is closed.
3343         * libc/stdio/findfp.c (__sfp): Initialize file pointers _lock
3344         member.
3345         * libc/stdio/freopen.c: Include sys/lock.h.
3346         (_freopen_r): Destroy lock when file is closed.
3347         * libc/stdio/vfprintf.c (__sbprintf): Initialize file pointers
3348         _lock member.
3349
3350 2004-01-08  Joel Sherrill  <joel@oarcorp.com>
3351
3352         * libc/ctype/iswctype.c, include/sys/reent.h, libc/stdlib/a64l.c:
3353         Remove warnings.
3354
3355 2004-01-08  Joel Sherrill  <joel@oarcorp.com>
3356
3357         * libc/sys/rtems/sys/queue.h: New file.
3358         * libc/include/sys/signal.h: Reflect renumbering of signals to
3359         fit into 32-bit mask.
3360         * libc/include/sys/unistd.h: Add fdatasync() prototype.
3361         * libc/sys/rtems/crt0.c: Add more symbols which may be implicitly
3362         required.  In particular, add the reentrant variants of libc calls.
3363         * libc/sys/rtems/sys/dirent.h: Add scandir() prototype.
3364
3365 2004-01-06  Mark Mitchell  <mark@codesourcery.com>
3366
3367         * libc/sys/arm/syscalls.c (unistd.h): Include it.
3368         (remap_handle): Use STDIN_FILENO instead of __sfileno(stdin).
3369         Similarly for stdout and stderr.
3370
3371 2004-01-06  Jeff Johnston  <jjohnstn@redhat.com>
3372
3373         * libc/libc.texinfo: Correct escape character for @ sign
3374         so file will be processed by make info.  Update copyright years.
3375         * libm/libm.texinfo: Ditto.
3376
3377 2003-12-05  Jeff Johnston  <jjohnstn@redhat.com>
3378
3379         * libc/include/sys/stat.h: No longer include stat-dj.h.
3380         * libc/include/sys/stat-dj.h: Removed.
3381
3382 2003-12-05  Jeff Johnston  <jjohnstn@redhat.com>
3383
3384         * libc/include/wchar.h: Include <sys/reent.h>.
3385
3386 2003-12-05  Christopher Faylor  <cgf@redhat.com>
3387
3388         * libc/stdlib/mbrlen.c: Change include order to prevent compiler errors
3389         when defining _mbrtowc.
3390         * libc/stdlib/mbsinit.c: Ditto.
3391         * libc/stdlib/mbsrtowcs.c: Ditto.
3392         * libc/stdlib/wcrtomb.c: Ditto.
3393         * libc/stdlib/wcsrtombs.c: Ditto.
3394         * libc/stdlib/wctob.c: Ditto.
3395
3396 2003-12-05  Christopher Faylor  <cgf@redhat.com>
3397
3398         * libc/stdlib/mbrlen.c: Change include order to prevent compiler
3399         errors when defining _mbrtowc.
3400         * libc/stdlib/mbsinit.c: Ditto.
3401         * libc/stdlib/mbsrtowcs.c: Ditto.
3402
3403 2003-12-05  Christopher Faylor  <cgf@redhat.com>
3404
3405         * libc/stdlib/mbrtowc.c: Change include order to prevent compiler
3406         errors when defining _mbrtowc.
3407
3408 2003-12-04  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
3409
3410         * libc/stdio/vfprintf.c (_VFPRINTF_R): Use _r versions
3411         of mb routines for %lc and %ls support.
3412         * libc/stdio/vfscanf.c (_svfscanf_r): Add %lc, %C,
3413         %ls, and %S support.  Remove CYGNUS_NEC markers and
3414         code within.
3415
3416 2003-12-04  Jeff Johnston  <jjohnstn@redhat.com>
3417
3418         * libc/include/wchar.h: Add prototypes for _mbrtowc_r,
3419         _wcrtomb_r, and _wcsrtombs_r.
3420
3421 2003-12-01  Corinna Vinschen  <corinna@vinschen.de>
3422
3423         * libc/include/sys/fcntl.h: Don't define struct flock when on
3424         Cygwin.  This is done in winsup/cygwin/include/cygwin/types.h now.
3425
3426 2003-11-28  Christopher Faylor  <cgf@redhat.com>
3427
3428         * libc/include/sys/signal.h: Use system specific signal file when
3429         building on cygwin.
3430
3431 2003-11-27  Jeff Johnston  <jjohnstn@redhat.com>
3432
3433         * libc/include/stdlib.h (_atoi_r): New prototype.
3434         * libc/stdlib/atoi.c (_atoi_r): New reentrant function.
3435
3436 2003-11-27  Jeff Johnston  <jjohnstn@redhat.com>
3437
3438         * libc/include/stdlib.h (_atoll_r, _atol_r): New prototypes.
3439         * libc/stdlib/atol.c (_atol_r): New reentrant function.
3440         * libc/stdlib/atoll.c (_atoll_r): Ditto.
3441
3442 2003-11-27  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
3443             Jeff Johnston  <jjohnstn@redhat.com>
3444
3445         * libc/include/stdlib.h (lldiv_t): New type.
3446         (atoll, llabs, lldiv): New prototypes.
3447         * libc/stdlib/Makefile.am: Add support for atoll, llabs, and lldiv.
3448         * libc/stdlib/stdlib.tex: Ditto.
3449         * libc/stdlib/Makefile.in: Regenerated.
3450         * libc/stdlib/atoll.c: New file.
3451         * libc/stdlib/llabs.c: Ditto.
3452         * libc/stdlib/lldiv.c: Ditto.
3453
3454 2003-11-26  Corinna Vinschen  <corinna@vinschen.de>
3455
3456         * libc/include/fcntl.h: Declare syscalls only when building newlib.
3457         * libc/include/unistd.h: Ditto.
3458         * libc/include/stat.h: Ditto.  Also declare struct stat64.
3459
3460 2003-11-24  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
3461
3462         * libc/stdio/vfprintf.c (_VFPRINTF_R): Fix check for 'C' format
3463         specifier to use ch instead of *fmt.
3464
3465 2003-11-21  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
3466
3467         * libc/stdio/vfprintf.c (_VFPRINTF_R, get_arg): Move mb-specific
3468         code within checks for MB_CAPABLE.  For non-mb-capable platforms,
3469         use simple byte logic.
3470
3471 2003-11-21  Jeff Johnston  <jjohnstn@redhat.com>
3472
3473         * libc/stdio/vfscanf.c (__svfscanf_r)[!_NO_LONGDBL]: Don't use
3474         _strtold routine for processing floats and doubles since it
3475         is not as fast as _strtod_r.
3476
3477 2003-11-20 Dhananjay Deshpande <dhananjayd@kpitcummins.com> 
3478
3479         * libc/machine/h8300/defines.h : Correct pointer register defines 
3480         for normal mode.
3481         * libc/machine/h8300/memcpy.S : Use add/sub instead of adds/subs 
3482         for normal mode.
3483         * libc/machine/h8300/reg_memcpy.S : Likewise.
3484         * libc/machine/h8300/reg_memset.S : Likewise.
3485         * libc/machine/h8300/strcmp.S : Likewise.
3486
3487 2003-11-19  Nicholas Wourms  <nwourms@netscape.net>
3488
3489         * configure.host: Enable positional arguments for printf
3490         family for Cygwin.
3491         * libc/stdio/vfprintf.c (_VFPRINTF_R): Remove extraneous
3492         pointer reference for quad_ptr_t.
3493
3494 2003-11-19  Jeff Johnston  <jjohnstn@redhat.com>
3495
3496         * libc/stdio/scanf.c: Don't include local.h more than once.
3497
3498 2003-11-18  Corinna Vinschen  <corinna@vinschen.de>
3499
3500         * libc/include/sys/fcntl.h: Declare _open64.
3501         * libc/include/sys/stat.h: Declare _fstat64.
3502         * libc/include/sys/unistd.h: Declare _lseek64.
3503
3504 2003-11-17  Corinna Vinschen  <corinna@vinschen.de>
3505
3506         * libc/include/stdlib.h (getprogname): Declare for Cygwin.
3507         (setprogname): Ditto.
3508
3509 2003-11-10  Jeff Johnston  <jjohnstn@redhat.com>
3510
3511         * libc/machine/powerpc/ufix64toa.c (_ufix64to_r): Fix shifts
3512         to use (Ebits + 1) which accounts for the sign-bit.
3513
3514 2003-11-07  Jeff Johnston  <jjohnstn@redhat.com>
3515
3516         * configure.host: Remove -DLOOSE_KERNEL_NAMES flag for linux 
3517         x86 build.
3518         * iconvdata/Makefile.am: Make dependent on newlib's configure.host
3519         and set up default flags to pass to aclocal.
3520         * iconvdata/Makefile.in: Regenerated.
3521         * libc/sys/linux/Makefile.am: Add _ELIX_LEVEL_4 getlogin, getpwnam,
3522         and getpwuid routines.
3523         * libc/sys/linux/Makefile.in: Regenerated.
3524         * libc/sys/linux/getlogin.c: New stub file to allow x86-linux
3525         applications to link with newlib's shared libc library.
3526         * libc/sys/linux/getpwnam.c: Ditto.
3527         * libc/sys/linux/getpwuid.c: Ditto.
3528         * libc/sys/linux/sys/types.h: Include <features.h> and supply types
3529         that were formerly supplied by /usr/include/linux/types.h with
3530         kernel types.
3531         * testsuite/newlib.wctype/twctype.c: Fix testcase to properly
3532         test _ELIX_LEVEL macro.
3533
3534 2003-11-07  Jeff Johnston  <jjohnstn@redhat.com>
3535
3536         * libc/stdio/vfprintf.c (_VFPRINTF_R): Fix typos that should be
3537         referring to _NO_LONGLONG macro.
3538
3539 2003-11-06  Jeff Johnston  <jjohnstn@redhat.com>
3540
3541         * libc/sys/linux/linuxthreads/td_init.c: Replace function name
3542         in LOG() macro so this will compile on gcc 3.4 and up.
3543         * libc/sys/linux/linuxthreads/td_log.c: Ditto.
3544         * libc/sys/linux/linuxthreads/td_ta_clear_event.c: Ditto.
3545         * libc/sys/linux/linuxthreads/td_ta_delete.c: Ditto.
3546         * libc/sys/linux/linuxthreads/td_ta_enable_stats.c: Ditto.
3547         * libc/sys/linux/linuxthreads/td_ta_event_addr.c: Ditto.
3548         * libc/sys/linux/linuxthreads/td_ta_event_getmsg.c: Ditto.
3549         * libc/sys/linux/linuxthreads/td_ta_get_nthreads.c: Ditto.
3550         * libc/sys/linux/linuxthreads/td_ta_get_ph.c: Ditto.
3551         * libc/sys/linux/linuxthreads/td_ta_get_stats.c: Ditto.
3552         * libc/sys/linux/linuxthreads/td_ta_map_id2thr.c: Ditto.
3553         * libc/sys/linux/linuxthreads/td_ta_map_lwp2thr.c: Ditto.
3554         * libc/sys/linux/linuxthreads/td_ta_new.c: Ditto.
3555         * libc/sys/linux/linuxthreads/td_ta_reset_stats.c: Ditto.
3556         * libc/sys/linux/linuxthreads/td_ta_set_event.c: Ditto.
3557         * libc/sys/linux/linuxthreads/td_ta_setconcurrency.c: Ditto.
3558         * libc/sys/linux/linuxthreads/td_ta_thr_iter.c: Ditto.
3559         * libc/sys/linux/linuxthreads/td_ta_tsd_iter.c: Ditto.
3560         * libc/sys/linux/linuxthreads/td_thr_clear_event.c: Ditto.
3561         * libc/sys/linux/linuxthreads/td_thr_dbresume.c: Ditto.
3562         * libc/sys/linux/linuxthreads/td_thr_dbsuspend.c: Ditto.
3563         * libc/sys/linux/linuxthreads/td_thr_event_enable.c: Ditto.
3564         * libc/sys/linux/linuxthreads/td_thr_event_getmsg.c: Ditto.
3565         * libc/sys/linux/linuxthreads/td_thr_get_info.c: Ditto.
3566         * libc/sys/linux/linuxthreads/td_thr_getfpregs.c: Ditto.
3567         * libc/sys/linux/linuxthreads/td_thr_getgregs.c: Ditto.
3568         * libc/sys/linux/linuxthreads/td_thr_getxregs.c: Ditto.
3569         * libc/sys/linux/linuxthreads/td_thr_getxregsize.c: Ditto.
3570         * libc/sys/linux/linuxthreads/td_thr_set_event.c: Ditto.
3571         * libc/sys/linux/linuxthreads/td_thr_setfpregs.c: Ditto.
3572         * libc/sys/linux/linuxthreads/td_thr_setgregs.c: Ditto.
3573         * libc/sys/linux/linuxthreads/td_thr_setprio.c: Ditto.
3574         * libc/sys/linux/linuxthreads/td_thr_setsigpending.c: Ditto.
3575         * libc/sys/linux/linuxthreads/td_thr_setxregs.c: Ditto.
3576         * libc/sys/linux/linuxthreads/td_thr_sigsetmask.c: Ditto.
3577         * libc/sys/linux/linuxthreads/td_thr_tsd.c: Ditto.
3578         * libc/sys/linux/linuxthreads/td_thr_validate.c: Ditto.
3579
3580 2003-11-05  Jeff Johnston  <jjohnstn@redhat.com>
3581             Artem B. Bityuckiy  <abitytsky@softminecorp.com>
3582
3583         * libc/stdio/vfprintf.c (_VFPRINTF_R): Add support for
3584         %ls, %S, %lc, and %C format specifiers.
3585         (get_arg): Ditto.
3586         * libc/stdio/sprintf.c: Add documentation regarding new
3587         format specifiers added in vfprintf.c.
3588
3589 2003-11-05  Jeff Johnston  <jjohnstn@redhat.com>
3590
3591         * libc/stdlib/wcsrtombs.c (_wcsrtombs_r): Numerous fixes
3592         to make code work as specified in standard.
3593
3594 2003-10-23  Jeff Johnston  <jjohnstn@redhat.com>
3595
3596         * configure.in: Use absolute newlib basedir when forming
3597         CC_FOR_NEWLIB include options.
3598         * configure: Regenerated.
3599
3600 2003-10-23  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
3601
3602         * libc/string/wcsnlen.c: New file.
3603         * libc/include/wchar.h: Add wcsnlen prototype.
3604         * libc/string/Makefile.am: Add wcsnlen support.
3605         * libc/string/Makefile.in: Regenerated.
3606         * libc/string/wcstrings.tex: Add wcsnlen documentation.
3607
3608 2003-10-22  Richard Sandiford  <rsandifo@redhat.com>
3609
3610         * libc/stdlib/exit.c (exit): Handle null _GLOBAL_REENT->_atexits.
3611
3612 2003-10-20  Bob Wilson  <bob.wilson@acm.org>
3613
3614         * libc/locale/locale.c: Use double quotes in code.
3615         * libc/locale/locale.tex: Likewise.
3616         * libc/libc.texinfo: Hyphenate "floating-point".
3617         * libc/machine/necv70/necv70.tex: Likewise.
3618         * libc/stdio/sprintf.c: Likewise.
3619         * libc/stdio/sscanf.c: Likewise.
3620         * libc/stdlib/atof.c: Likewise.
3621         * libc/stdlib/ldtoa.c: Fix comment typo.
3622         * libc/stdlib/div.c: Use @ifnottex instead of @ifinfo.
3623         * libc/stdlib/ldiv.c: Likewise.
3624         * libm/common/s_expm1.c: Likewise.
3625         * libm/common/s_ilogb.c: Hyphenate "floating-point".  Use "nonzero".
3626         * libm/common/s_infinity: Hyphenate "double- and single-precision".
3627         * libm/common/s_nan.c: Likewise.  Also correct the FUNCTION summary.
3628         * libm/common/s_nextafter.c: Fix typo.  Hyphenate "double-precision"
3629         and "floating-point".
3630         * libm/common/s_scalbn.c: Correct the FUNCTION summary.
3631         * libm/math/e_pow.c: Fix comment typo.
3632         * libm/math/math.tex: Hyphenate "single-precision" and "floating-point".
3633         * libm/math/s_asinh.c: Use @ifnottex instead of @ifinfo.
3634         * libm/math/s_atan.c: Likewise.
3635         * libm/math/s_frexp.c: Likewise.  Also use "nonzero".
3636         * libm/math/s_isnan.c: Hyphenate "single-precision" and
3637         "floating-point".  Use "nonzero".
3638         * libm/math/s_ldexp.c: Use @ifnottex instead of @ifinfo.
3639         * libm/math/w_acos.c: Likewise.
3640         * libm/math/w_acosh.c: Likewise.
3641         * libm/math/w_asin.c: Likewise.
3642         * libm/math/w_atan2.c: Likewise.
3643         * libm/math/w_atanh.c: Likewise.
3644         * libm/math/w_cosh.c: Likewise.
3645         * libm/math/w_exp.c: Likewise.
3646         * libm/math/w_exp2.c: Likewise.  Add missing @end and missing @tex
3647         version of 2^x in the description.
3648         * libm/math/w_fmod.c: Use @ifnottex instead of @ifinfo.
3649         * libm/math/w_gamma.c: Likewise.
3650         * libm/math/w_hypot.c: Likewise.
3651         * libm/math/w_j0.c: Likewise.
3652         * libm/math/w_sinh.c: Likewise.
3653         * libm/math/w_pow.c: Replace "exp1.0nt" with "exponent".
3654         * libm/mathfp/mathfp.tex: Hyphenate "single-precision" and
3655         "floating-point".
3656         * libm/mathfp/e_acosh.c: Use @ifnottex instead of @ifinfo.
3657         * libm/mathfp/e_atanh.c: Likewise.
3658         * libm/mathfp/e_hypot.c: Likewise.
3659         * libm/mathfp/er_lgamma.c: Likewise.
3660         * libm/mathfp/s_acos.c: Likewise.
3661         * libm/mathfp/s_asine.c: Likewise.
3662         * libm/mathfp/s_asinh.c: Likewise.
3663         * libm/mathfp/s_atan.c: Likewise.
3664         * libm/mathfp/s_atan2.c: Likewise.
3665         * libm/mathfp/s_atangent.c: Likewise.
3666         * libm/mathfp/s_cosh.c: Likewise.
3667         * libm/mathfp/s_exp.c: Likewise.
3668         * libm/mathfp/s_fmod.c: Likewise.
3669         * libm/mathfp/s_frexp.c: Likewise.  Also use "nonzero".
3670         * libm/mathfp/s_isnan.c: Hyphenate "single-precision" and
3671         "floating-point".  Use "nonzero".
3672         * libm/math/s_pow.c: Replace "exp1.0nt" with "exponent".
3673         * libm/mathfp/s_ldexp.c: Use @ifnottex instead of @ifinfo.
3674         * libm/mathfp/s_sineh.c: Likewise.
3675         * libm/mathfp/w_jn.c: Likewise.
3676
3677 2003-10-15  Alexandre Oliva  <aoliva@redhat.com>
3678
3679         * Makefile.am: Add $(MAKE) comments to multido and multiclean
3680         lines, to enable parallel make.
3681         * Makefile.in: Rebuilt.
3682
3683 2003-10-14  Christopher Faylor  <cgf@redhat.com>
3684
3685         * libc/time/clock.c: Clarify documentation of return value when no
3686         measurement is available.
3687
3688 2003-09-29  Ian Lance Taylor  <ian@wasabisystems.com>
3689
3690         * libm/configure.in: Check libm_machine_dir, not machine_dir.
3691         * libm/configure: Regenerate.
3692         * libm/Makefile.in: Ditto.
3693
3694 2003-09-29  J"orn Rennecke <joern.rennecke@superh.com>
3695
3696         * libc/machine/sh/strncpy.S: New file.
3697         * libc/machine/sh/Makefile.am: Add entry & rule for new file.
3698         * libc/machine/sh/Makefile.in: Regenerate.
3699
3700 2003-09-11  James E Wilson  <wilson@specifixinc.com>
3701
3702         * MAINTAINERS: Update my e-mail address.
3703
3704 2003-09-10  Corinna Vinschen  <corinna@vinschen.de>
3705
3706         * libc/include/sys/unistd.h: Declare function daemon for Cygwin.
3707
3708 2003-09-09  Jeff Johnston  <jjohnstn@redhat.com>
3709
3710         * libc/machine/powerpc/fix64.h: Fix typo for _simdldcheck
3711         prototype.
3712         * libc/machine/powerpc/simdldtoa.c: Remove prototype for
3713         _simdldcheck().  Also add unsigned cast for index variable in
3714         for loop using sizeof operators.
3715         * libc/machine/powerpc/strtoufix32.c: Remove unused variable.
3716         * libc/machine/powerpc/strtosfix64.c: Fix call to _simdldcheck.
3717         * libc/machine/powerpc/strtoufix64.c (_strtoufix64_r): Ditto
3718         plus fix shift calculation for determining if there is a
3719         carry from word2.
3720
3721 2003-09-09  Corinna Vinschen  <corinna@vinschen.de>
3722
3723         * libc/include/grp.h: Don't define setgrfile, group_from_gid and
3724         setgroupent for Cygwin.
3725
3726 2003-09-05  Jeff Johnston  <jjohnstn@redhat.com>
3727
3728         * libc/stdlib/exit.c (exit): Setting of struct _atexit ptr p
3729         is different for _REENT_SMALL than when using regular reent
3730         struct.
3731
3732 2003-09-05  Ben Elliston  <bje@wasabisystems.com>
3733
3734         * libc/ctype/wctype.c (_DEFUN): Remove empty default case, as
3735         modern versions of GCC issue a warning.
3736
3737         * libc/machine/xscale/memcmp.c (memcmp): Strip trailing whitespace
3738         after continuation characters that induces a warning from modern
3739         versions of GCC.
3740
3741 2003-09-04  Ben Elliston  <bje@wasabisystems.com>
3742
3743         * libc/stdlib/mstats.c[_ELIX_LEVEL]: Fix guards.  #ifndef FOO ||
3744         FOO >= 2 is invalid; use #if !defined (FOO) || FOO >= 2 instead.
3745
3746 2003-09-02  Thomas Pfaff  <tpfaff@gmx.net>
3747
3748         * libc/stdlib/atexit.c: Rename _REENT to _GLOBAL_REENT throughout.
3749         * libc/stdlib/exit.c : Ditto.
3750         * libc/stdlib/on_exit.c: Ditto.
3751
3752 2003-08-27  Corinna Vinschen  <corinna@vinschen.de>
3753
3754         * libc/include/reent.h: Define stat64 as __stat64 when
3755         compiling newlib for Cygwin.
3756
3757 2003-08-26  Jeff Johnston  <jjohnstn@redhat.com>
3758
3759         * libc/include/sys/stat.h[__CYGWIN__]: Only define stat64 as
3760         __stat64 when compiling newlib.
3761
3762 2003-08-26  Jeff Johnston  <jjohnstn@redhat.com>
3763
3764         * libc/include/stdio.h: Allow the io64 function prototypes for
3765         Cygwin when compiling newlib.
3766         * libc/include/sys/stat.h[__CYGWIN__]: Define stat64 as __stat64
3767         to expose the Cygwin struct __stat64 type.
3768         * libc/stdio64/fseeko64.c: Use _fstat64_r and pass a struct stat64
3769         pointer.
3770         * libc/stdio64/tmpfile64.c(_tmpfile64_r): Call _fopen64_r.
3771
3772 2003-08-23  Christopher Faylor  <cgf@redhat.com>
3773
3774         * libc/stdio64/fseeko64.c (fseeko64_r): Rename second fseeko64_r
3775         definition to fseeko64.
3776
3777 2003-08-22  Jeff Johnston  <jjohnstn@redhat.com>
3778
3779         * libc/include/sys/reent.h: Add _GLOBAL_REENT macro.
3780         * libc/stdio: Globally remove/replace all references to fp->_data.
3781         Replace with _REENT or _GLOBAL_REENT where appropriate.
3782         * libc/stdio/asprintf.c: Ditto.
3783         * libc/stdio/fclose.c: Ditto.
3784         * libc/stdio/fvwrite.c: Ditto.
3785         * libc/stdio/makebuf.c: Ditto.
3786         * libc/stdio/refill.c: Ditto.
3787         * libc/stdio/local.h: Ditto.
3788         * libc/stdio/setvbuf.c: Ditto.
3789         * libc/stdio/sscanf.c: Ditto.
3790         * libc/stdio/stdio.c: Ditto.
3791         * libc/stdio/ungetc.c: Ditto.
3792         * libc/stdio/vfscanf.c: Ditto.
3793         * libc/stdio/vsscanf.c: Ditto.
3794         * libc/stdio/fopen.c: Ditto.  Also use _fseek_r in _fopen_r.
3795         * libc/stdio/vasprintf.c: Ditto.  Also call _vfprintf_r directly.
3796         * libc/stdio/vsnprintf.c: Ditto.
3797         * libc/stdio/vsprintf.c: Ditto.
3798         * libc/stdio/fcloseall.c(fcloseall): Use _GLOBAL_REENT macro
3799         instead of _REENT to walk file list.
3800         * libc/stdio/fflush.c: Ditto.
3801         * libc/stdio/fgetpos.c: Add reentrant version and have regular
3802         version call reentrant version with _REENT argument.
3803         * libc/stdio/fsetpos.c: Ditto.
3804         * libc/stdio/fseek.c: Ditto.
3805         * libc/stdio/fseeko.c: Ditto.
3806         * libc/stdio/ftell.c: Ditto.
3807         * libc/stdio/ftello.c: Ditto.
3808         * libc/stdio/freopen.c: Ditto.
3809         * libc/stdio/findfp.c: Use _GLOBAL_REENT pointer when adding
3810         new files to chain.  Also use _GLOBAL_REENT pointer for
3811         cleaning up.
3812         * libc/stdio/fiprintf.c: Reformatted to minimize duplicate code.
3813         * libc/stdio/siprintf.c: Ditto.
3814         * libc/stdio/iprintf.c: Ditto.
3815         * libc/stdio/fprintf.c: Ditto.
3816         * libc/stdio/printf.c: Ditto.
3817         * libc/stdio/snprintf.c: Call _vfprintf_r directly.
3818         * libc/stdio/sprintf.c: Ditto.
3819         * libc/stdio/vprintf.c: Ditto.  Also add _REENT_ONLY check.
3820         * libc/stdio/rewind.c: Call _fseek_r directly.
3821         * libc/stdio/tmpfile.c: Call _fopen_r and _remove_r directly.
3822         * libc/stdio/vfprintf.c (_VFPRINTF_R): Change _r routines to use
3823         data pointer.
3824         (get_arg): Add extra struct _reent pointer argument.
3825         * libc/stdio64/fgetpos64.c: Add _r versions, remove any reference
3826         to fp->_data.
3827         * libc/stdio64/fopen64.c: Ditto.
3828         * libc/stdio64/freopen64.c: Ditto.
3829         * libc/stdio64/fsetpos64.c: Ditto.
3830         * libc/stdio64/ftello64.c: Ditto.
3831         * libc/stdio64/local64.h: Ditto.
3832         * libc/stdio64/stdio64.c: Ditto.
3833         * libc/stdio64/fseeko64.c: Ditto plus use _fstat_r instead of
3834         _fstat64_r for the meantime.
3835
3836 2003-08-19  Jeff Johnston  <jjohnstn@redhat.com>
3837
3838         * libc/stdlib/mallocr.c (mALLOc, rEALLOc, mEMEALIGn): Enhance
3839         overflow detection.
3840         
3841 2003-08-13  Aldy Hernandez  <aldyh@redhat.com>
3842         
3843         * libc/machine/powerpc/machine/stdlib.h: Wrap SPE functions in
3844         extern "C".
3845
3846 2003-08-13  Jeff Johnston  <jjohnstn@redhat.com>
3847
3848         * libc/include/math.h: Add prototypes for __signbitf and
3849         __signbitd.
3850
3851 2003-07-31  Jeff Johnston  <jjohnstn@redhat.com>
3852
3853         * libc/ctype/iswalpha.c: Fix calls to __jp2uc to pass the
3854         correct type of conversion when dealing with EUCJP or SJIS.
3855         * libc/ctype/iswblank.c: Ditto.
3856         * libc/ctype/iswcntrl.c: Ditto.
3857         * libc/ctype/iswprint.c: Ditto.
3858         * libc/ctype/iswpunct.c: Ditto.
3859         * libc/ctype/iswspace.c: Ditto.
3860         * libc/ctype/towlower.c: Ditto.
3861         * libc/ctype/towupper.c: Ditto.
3862
3863 2003-07-31  Nick Clifton  <nickc@redhat.com>
3864
3865         * libc/sys/sysnecv850/crt0.S (_start): Allocate 4 slots on stack
3866         before calling main, in case it saves its argument registers.
3867         Remove reference to deleted v850ea port.
3868         * configure.host: Remove reference to deleted v850ea port.
3869         Do not use -mv850 when building for v850e target.  This
3870         prevents the ctbp system register from being initialised.
3871
3872 2003-07-29  Honda Hiroki  <hhonda@ipflex.com>
3873
3874         * libc/stdio/vfprintf.c: Set output size to 1 when
3875         we have %f format with precision 0 and # flag not specified.
3876
3877 2003-07-29  Alexandre Oliva  <aoliva@redhat.com>
3878
3879         * libc/machine/mn10300/setjmp.S: Never emit both .am33 and
3880         .am33_2.
3881
3882 2003-07-25  Christopher Faylor  <cgf@redhat.com>
3883
3884         * libc/stdio64/fdopen64.c: Include sys/lock.h.
3885
3886 2003-07-25  Christopher Faylor  <cgf@redhat.com>
3887
3888         * configure.host: Find cygwin include directory, when appropriate.
3889
3890 2003-07-24  Christopher Faylor  <cgf@redhat.com>
3891
3892         * libc/stdio64/fdopen64.c: New file.
3893         * libc/stdio64/Makefile.am (LIB_OBJS): Add fdopen64.o
3894         * libc/stdio64/Makefile.in: Regenerate.
3895         * libc/include/stdio.h (fdopen64): Define.
3896         * libc/include/stdio.h (_fdopen64_r): Ditto.
3897
3898 2003-07-10  Alexandre Oliva  <aoliva@redhat.com>
3899
3900         2000-04-27  Alexandre Oliva  <aoliva@cygnus.com>
3901         * libc/include/machine/setjmp.h (_JBLEN, AM33/2.0): Set to 26.
3902         * libc/machine/mn10300/setjmp.S (setjmp, longjmp): Save and
3903         restore callee-saved FP registers.
3904
3905 2003-07-10  J"orn Rennecke <joern.rennecke@superh.com>
3906
3907         * libc/include/sys/unistd.h (ftruncate, truncate): Also declare
3908         for __sh__.
3909         * libc/sys/sh/Makefile.am (lib_a_SOURCES): Add ftruncate.c and
3910         truncate.c.
3911         * libc/sys/sh/Makefile.in: Regenerate.
3912         * libc/sys/sh/sys/syscall.h: (SYS_truncate, SYS_ftruncate): Define.
3913         * libc/sys/sh/ftruncate.c: New file.
3914         * libc/sys/sh/truncate.c: Likewise.
3915
3916 2003-07-09  Alexandre Oliva  <aoliva@redhat.com>
3917
3918         * libc/include/math.h (nan, nanf): Update prototype to C99.
3919         * libm/common/s_nan.c (nan): Likewise.
3920         * libm/common/s_nanf.c (nanf, nan): Likewise.
3921         * libc/sys/linux/cmath/math_private.h (nan, nanf): Likewise.
3922
3923 2003-07-07  Jeff Johnston  <jjohnstn@redhat.com>
3924
3925         * libc/include/stdbool.h: Removed as this is defined by gcc.
3926
3927 2003-07-03  Shaun Jackman  <sjackman@pathwayconnect.com>
3928
3929         * libc/include/stdbool.h: New header file defined by C99.
3930
3931 2003-07-02  Jeff Johnston  <jjohnstn@redhat.com>
3932
3933         * libc/include/sys/types.h (int8_t): Make signed.
3934
3935 2003-07-02  Jeff Johnston  <jjohnstn@redhat.com>
3936
3937         * libc/sys/linux/include/mqueue.h: Add include of <sys/fcntl.h>.
3938
3939 2003-06-27  Jose Goncalves  <jose.goncalves@inov.pt>
3940
3941         * libc/sys/linux/mq_open.c (mq_open): Only set created flag
3942         on if we actually created the shared memory file exclusively.
3943
3944 2003-06-27  Joe Vornehm  <joev@mitre.org>
3945
3946         * libm/common/s_fpclassify.c (__fpclassifyf): Fix
3947         comparisons to account for unsigned internal value w.
3948
3949 2003-06-26  Jeff Johnston  <jjohnstn@redhat.com>
3950
3951         * libc/sys/linux/mq_open.c (mq_open): Must allocate rdbuf and
3952         wrbuf for a non-creating open.
3953
3954 2003-06-24  Kazu Hirata  <kazu@cs.umass.edu>
3955
3956         * libc/machine/h8300/setarch.h: New.
3957         * libc/machine/h8300/memcpy.S: Use it.
3958         * libc/machine/h8300/memset.S: Likewise.
3959         * libc/machine/h8300/reg_memcpy.S: Likewise.
3960         * libc/machine/h8300/reg_memset.S: Likewise.
3961         * libc/machine/h8300/setjmp.S: Likewise.
3962         * libc/machine/h8300/strcmp.S: Likewise.
3963
3964 2003-06-24  Richard Sandiford  <rsandifo@redhat.com>
3965
3966         * libc/sys/h8300hms/crt0.S (_start): Fix register sizes in call
3967         to atexit().
3968
3969 2003-06-20  Jeff Johnston  <jjohnstn@redhat.com>
3970
3971         * configure.host (iq2000): Add tabs.
3972
3973 2003-06-20  Jeff Johnston  <jjohnstn@redhat.com>
3974
3975         * libc/include/sys/reent.h (_REENT_INIT_PTR): Fix macros
3976         to handle latest on_exit change.
3977         * libc/sys/linux/Makefile.am: Remove special compilation
3978         for malloc.c and mcheck.c.
3979         * libc/sys/linux/Makefile.in: Regenerated.
3980         * libc/sys/linux/mntent.c: Add definition of _LIBC flag
3981         after including <features.h>.
3982         * libc/sys/linux/mcheck.c: Ditto.
3983         * libc/sys/linux/malloc.c: Ditto plus define _GNU_SOURCE
3984         for <features.h>.
3985         * libc/sys/linux/intl/Makefile.am: Remove -D_LIBC and
3986         add -DNOT_IN_libc to C flags.
3987         * libc/sys/linux/intl/Makefile.in: Regenerated.
3988         * libc/sys/linux/intl/config.h: Add definition of _LIBC.
3989         * libc/sys/linux/linuxthreads/semaphore.h: Include
3990         <bits/pthreadtypes.h>.
3991         * libc/sys/linux/sys/dirent.h: Define _LIBC and NOT_IN_libc after
3992         including <features.h>.
3993         * libc/sys/linux/sys/lock.h: Ditto.
3994
3995 2003-06-11  Nick Clifton  <nickc@redhat.com>
3996
3997         * libc/reent/reent.c (reclaim_reent): Fix typo in code to free
3998         _on_exit_args_ptr.
3999
4000 2003-06-10  Stan Cox  <scox@redhat.com>
4001             Anthony Green  <green@redhat.com>
4002         
4003         * configure.host: Add iq2000 support.
4004         * newlib/libc/include/machine/ieeefp.h: Ditto.
4005         * newlib/libc/include/machine/setjmp.h: Ditto.
4006         * libc/machine/iq2000, libc/machine/iq2000/setjmp.S,
4007         libc/machine/iq2000/aclocal.m4, libc/machine/iq2000/configure,
4008         libc/machine/iq2000/configure.in, libc/machine/iq2000/Makefile.am,
4009         libc/machine/iq2000/Makefile.in: New files.
4010
4011 2003-06-10  Richard Sandiford  <rsandifo@redhat.com>
4012
4013         * libc/sys/h8300hms/setarch.h: New file.
4014         * libc/sys/h8300hms/close.S, libc/sys/h8300hms/fstat.S,
4015         libc/sys/h8300hms/lseek.S, libc/sys/h8300hms/open.S,
4016         libc/sys/h8300hms/read.S, libc/sys/h8300hms/stat.S,
4017         libc/sys/h8300hms/write.S, libc/sys/h8300hms/crt0.S: Use it.
4018
4019 2003-06-06  Jeff Johnston  <jjohnstn@redhat.com>
4020
4021         * libc/argz/argz_add.c: Change to use _DEFUN macro for function
4022         definition.
4023         * libc/argz/argz_add_sep.c: Ditto.
4024         * libc/argz/argz_append.c libc/argz/argz_count.c: Ditto.
4025         * libc/argz/argz_create.c libc/argz/argz_create_sep.c: Ditto.
4026         * libc/argz/argz_delete.c libc/argz/argz_extract.c: Ditto.
4027         * libc/argz/argz_insert.c libc/argz/argz_next.c: Ditto.
4028         * libc/argz/argz_replace.c libc/argz/argz_stringify.c: Ditto.
4029         * libc/argz/envz_add.c libc/argz/envz_entry.c: Ditto.
4030         * libc/argz/envz_get.c libc/argz/envz_merge.c: Ditto.
4031         * libc/argz/envz_remove.c libc/argz/envz_strip.c: Ditto.
4032         * libc/locale/nl_langinfo.c libc/misc/ffs.c: Ditto.
4033         * libc/posix/closedir.c libc/posix/creat.c: Ditto.
4034         * libc/posix/execl.c libc/posix/execle.c: Ditto.
4035         * libc/posix/execlp.c libc/posix/execve.c: Ditto.
4036         * libc/posix/isatty.c libc/posix/opendir.c: Ditto.
4037         * libc/posix/popen.c libc/posix/readdir.c: Ditto.
4038         * libc/posix/readdir_r.c libc/posix/rewinddir.c: Ditto.
4039         * libc/posix/scandir.c libc/posix/seekdir.c: Ditto.
4040         * libc/posix/telldir.c libc/search/hcreate.c: Ditto.
4041         * libc/search/tdelete.c libc/search/tdestroy.c: Ditto.
4042         * libc/search/tfind.c libc/search/tsearch.c: Ditto.
4043         * libc/search/twalk.c libc/signal/signal.c: Ditto.
4044
4045 2003-06-05  Nick Clifton  <nickc@redhat.com>
4046         
4047         * libc/include/sys/reent.h (struct _on_exit_args): New
4048         structure containing fields used by the on_exit() function.
4049         (struct _atexit): Include struct _on_exit_args.  For
4050         _REENT_SMALL do his via a pointer that is initialised when
4051         needed.
4052         * libc/reent/reent.c (_reclaim_reent): Free the _on_exit_args
4053         structure, if one has been allocated.
4054         * libc/stdlib/atexit.c (atexit): Update indirection to
4055         _fntypes field.
4056         * libc/stdlib/on_exit.c (on_exit): Indirect via the
4057         _on_exit_args structure.  For _REENT_SMALL, allocate a
4058         structure if one does not exist.
4059         * libc/stdlib/exit.c (exit): Indirect via the _on_exit_args
4060         structure.
4061
4062 2003-06-04  Jeff Johnston  <jjohnstn@redhat.com>
4063
4064         * libc/sys/linux/net/Makefile.am: Remove extraneous markers.
4065         * libc/sys/linux/net/Makefile.in: Regenerated.
4066
4067 2003-06-03  Jeff Johnston  <jjohnstn@redhat.com>
4068
4069         * libc/reent/execr.c: Use _DEFUN macro for function declaration.
4070         * libc/reent/fcntlr.c: Ditto.
4071         * libc/reent/fstat64r.c: Ditto.
4072         * libc/reent/linkr.c: Ditto.
4073         * libc/reent/lseek64r.c: Ditto.
4074         * libc/reent/lseekr.c: Ditto.
4075         * libc/reent/openr.c: Ditto.
4076         * libc/reent/readr.c: Ditto.
4077         * libc/reent/reent.c: Ditto.
4078         * libc/reent/sbrkr.c: Ditto.
4079         * libc/reent/signalr.c: Ditto.
4080         * libc/reent/signgam.c: Ditto.
4081         * libc/reent/statr.c: Ditto.
4082         * libc/reent/timer.c: Ditto.
4083         * libc/reent/unlinkr.c: Ditto.
4084         * libc/reent/writer.c: Ditto.
4085         * libc/syscalls/sysclose.c: Ditto.
4086         * libc/syscalls/sysexecve.c: Ditto.
4087         * libc/syscalls/sysfcntl.c: Ditto.
4088         * libc/syscalls/sysfork.c: Ditto.
4089         * libc/syscalls/sysfstat.c: Ditto.
4090         * libc/syscalls/sysgetpid.c: Ditto.
4091         * libc/syscalls/sysgettod.c: Ditto.
4092         * libc/syscalls/syskill.c: Ditto.
4093         * libc/syscalls/syslink.c: Ditto.
4094         * libc/syscalls/syslseek.c: Ditto.
4095         * libc/syscalls/sysopen.c: Ditto.
4096         * libc/syscalls/sysread.c: Ditto.
4097         * libc/syscalls/syssbrk.c: Ditto.
4098         * libc/syscalls/sysstat.c: Ditto.
4099         * libc/syscalls/systimes.c: Ditto.
4100         * libc/syscalls/sysunlink.c: Ditto.
4101         * libc/syscalls/syswait.c: Ditto.
4102         * libc/syscalls/syswrite.c: Ditto.
4103
4104 2003-06-03  Till Straumann  <strauman@SLAC.Stanford.EDU>
4105
4106         * libc/time/tzset_r.c: Change local variables that are
4107         set via sscanf using the %h format specifier to be unsigned short
4108         instead of int.
4109
4110 2003-05-30  Kelley Cook  <kelleycook@wideopenwest.com>
4111
4112         * configure.host:  Allow i[34567]86 variant.
4113         * configure.in: Likewise.
4114         * README: Likewise to the docs.
4115         * configure: Regenerated.
4116         * Makefile.in: Ditto.
4117
4118 2003-05-28  Jeff Johnston  <jjohnstn@redhat.com>
4119             Tom Fitzsimmons  <fitzsim@redhat.com>
4120
4121         * configure.in: Add iconvdata support for x86 linux.
4122         * configure: Regenerated.
4123         * libc/sys/linux/Makefile.am: Add EL/IX level 3 network, dynamic 
4124         library, iconv, and linuxthreads support.
4125         * libc/sys/linux/configure.in: Ditto.
4126         * libc/sys/linux/Makefile.in: Regenerated.
4127         * libc/sys/linux/configure: Ditto.
4128         * iconvdata/EUC-JP.irreversible: New file.
4129         * iconvdata/Makefile.am: Ditto.
4130         * iconvdata/Makefile.in: Ditto.
4131         * iconvdata/SJIS.irreversible: Ditto.
4132         * iconvdata/aclocal.m4: Ditto.
4133         * iconvdata/configure: Ditto.
4134         * iconvdata/configure.in: Ditto.
4135         * iconvdata/dummy.c: Ditto.
4136         * iconvdata/euc-jp.c: Ditto.
4137         * iconvdata/gconv-modules: Ditto.
4138         * iconvdata/jis0201.c: Ditto.
4139         * iconvdata/jis0201.h: Ditto.
4140         * iconvdata/jis0208.c: Ditto.
4141         * iconvdata/jis0208.h: Ditto.
4142         * iconvdata/jis0212.c: Ditto.
4143         * iconvdata/jis0212.h: Ditto.
4144         * iconvdata/sjis.c: Ditto.
4145         * libc/include/errno.h: Protect definition of error_t.
4146         * libc/sys/linux/gethostid.c: New file.
4147         * libc/sys/linux/sethostid.c: Ditto.
4148         * libc/sys/linux/dl/Makefile.am: Ditto.
4149         * libc/sys/linux/dl/Makefile.in: Ditto.
4150         * libc/sys/linux/dl/abi-tag.h: Ditto.
4151         * libc/sys/linux/dl/atomicity.h: Ditto.
4152         * libc/sys/linux/dl/dl-addr.c: Ditto.
4153         * libc/sys/linux/dl/dl-cache.c: Ditto.
4154         * libc/sys/linux/dl/dl-cache.h: Ditto.
4155         * libc/sys/linux/dl/dl-close.c: Ditto.
4156         * libc/sys/linux/dl/dl-debug.c: Ditto.
4157         * libc/sys/linux/dl/dl-deps.c: Ditto.
4158         * libc/sys/linux/dl/dl-dst.h: Ditto.
4159         * libc/sys/linux/dl/dl-error.c: Ditto.
4160         * libc/sys/linux/dl/dl-fini.c: Ditto.
4161         * libc/sys/linux/dl/dl-init.c: Ditto.
4162         * libc/sys/linux/dl/dl-iteratephdr.c: Ditto.
4163         * libc/sys/linux/dl/dl-libc.c: Ditto.
4164         * libc/sys/linux/dl/dl-librecon.h: Ditto.
4165         * libc/sys/linux/dl/dl-load.c: Ditto.
4166         * libc/sys/linux/dl/dl-lookup.c: Ditto.
4167         * libc/sys/linux/dl/dl-lookupcfg.h: Ditto.
4168         * libc/sys/linux/dl/dl-minimal.c: Ditto.
4169         * libc/sys/linux/dl/dl-misc.c: Ditto.
4170         * libc/sys/linux/dl/dl-object.c: Ditto.
4171         * libc/sys/linux/dl/dl-open.c: Ditto.
4172         * libc/sys/linux/dl/dl-osinfo.h: Ditto.
4173         * libc/sys/linux/dl/dl-profile.c: Ditto.
4174         * libc/sys/linux/dl/dl-profstub.c: Ditto.
4175         * libc/sys/linux/dl/dl-reloc.c: Ditto.
4176         * libc/sys/linux/dl/dl-runtime.c: Ditto.
4177         * libc/sys/linux/dl/dl-support.c: Ditto.
4178         * libc/sys/linux/dl/dl-sym.c: Ditto.
4179         * libc/sys/linux/dl/dl-version.c: Ditto.
4180         * libc/sys/linux/dl/dlfcn.h: Ditto.
4181         * libc/sys/linux/dl/do-lookup.h: Ditto.
4182         * libc/sys/linux/dl/do-rel.h: Ditto.
4183         * libc/sys/linux/dl/dynamic-link.h: Ditto.
4184         * libc/sys/linux/dl/kernel-features.h: Ditto.
4185         * libc/sys/linux/dl/ldsodefs.h: Ditto.
4186         * libc/sys/linux/dl/libintl.h: Ditto.
4187         * libc/sys/linux/dl/trusted-dirs.h: Ditto.
4188         * libc/sys/linux/dl/unsecvars.h: Ditto.
4189         * libc/sys/linux/iconv/Makefile.am: Ditto.
4190         * libc/sys/linux/iconv/Makefile.in: Ditto.
4191         * libc/sys/linux/iconv/categories.def: Ditto.
4192         * libc/sys/linux/iconv/dummy-repertoire.c: Ditto.
4193         * libc/sys/linux/iconv/gconv.c: Ditto.
4194         * libc/sys/linux/iconv/gconv_builtin.c: Ditto.
4195         * libc/sys/linux/iconv/gconv_builtin.h: Ditto.
4196         * libc/sys/linux/iconv/gconv_cache.c: Ditto.
4197         * libc/sys/linux/iconv/gconv_charset.h: Ditto.
4198         * libc/sys/linux/iconv/gconv_close.c: Ditto.
4199         * libc/sys/linux/iconv/gconv_conf.c: Ditto.
4200         * libc/sys/linux/iconv/gconv_db.c: Ditto.
4201         * libc/sys/linux/iconv/gconv_dl.c: Ditto.
4202         * libc/sys/linux/iconv/gconv_int.h: Ditto.
4203         * libc/sys/linux/iconv/gconv_open.c: Ditto.
4204         * libc/sys/linux/iconv/gconv_simple.c: Ditto.
4205         * libc/sys/linux/iconv/gconv_trans.c: Ditto.
4206         * libc/sys/linux/iconv/hash-string.h: Ditto.
4207         * libc/sys/linux/iconv/iconv.c: Ditto.
4208         * libc/sys/linux/iconv/iconv.h: Ditto.
4209         * libc/sys/linux/iconv/iconv_charmap.c: Ditto.
4210         * libc/sys/linux/iconv/iconv_close.c: Ditto.
4211         * libc/sys/linux/iconv/iconv_open.c: Ditto.
4212         * libc/sys/linux/iconv/iconvconfig.c: Ditto.
4213         * libc/sys/linux/iconv/iconvconfig.h: Ditto.
4214         * libc/sys/linux/iconv/loadinfo.h: Ditto.
4215         * libc/sys/linux/iconv/localeinfo.h: Ditto.
4216         * libc/sys/linux/iconv/loop.c: Ditto.
4217         * libc/sys/linux/iconv/skeleton.c: Ditto.
4218         * libc/sys/linux/iconv/strtab.c: Ditto.
4219         * libc/sys/linux/include/dl-hash.h: Ditto.
4220         * libc/sys/linux/include/dlfcn.h: Ditto.
4221         * libc/sys/linux/include/fnmatch.h: Ditto.
4222         * libc/sys/linux/include/gconv.h: Ditto.
4223         * libc/sys/linux/include/glob.h: Ditto.
4224         * libc/sys/linux/include/hesiod.h: Ditto.
4225         * libc/sys/linux/include/ifaddrs.h: Ditto.
4226         * libc/sys/linux/include/libc_private.h: Ditto.
4227         * libc/sys/linux/include/link.h: Ditto.
4228         * libc/sys/linux/include/namespace.h: Ditto.
4229         * libc/sys/linux/include/netconfig.h: Ditto.
4230         * libc/sys/linux/include/netdb.h: Ditto.
4231         * libc/sys/linux/include/nsswitch.h: Ditto.
4232         * libc/sys/linux/include/regex.h: Ditto.
4233         * libc/sys/linux/include/resolv.h: Ditto.
4234         * libc/sys/linux/include/rune.h: Ditto.
4235         * libc/sys/linux/include/runetype.h: Ditto.
4236         * libc/sys/linux/include/semaphore.h: Ditto.
4237         * libc/sys/linux/include/setlocale.h: Ditto.
4238         * libc/sys/linux/include/un-namespace.h: Ditto.
4239         * libc/sys/linux/include/wordexp.h: Ditto.
4240         * libc/sys/linux/include/arpa/ftp.h: Ditto.
4241         * libc/sys/linux/include/arpa/inet.h: Ditto.
4242         * libc/sys/linux/include/arpa/nameser.h: Ditto.
4243         * libc/sys/linux/include/arpa/nameser_compat.h: Ditto.
4244         * libc/sys/linux/include/arpa/telnet.h: Ditto.
4245         * libc/sys/linux/include/arpa/tftp.h: Ditto.
4246         * libc/sys/linux/include/net/bpf.h: Ditto.
4247         * libc/sys/linux/include/net/bpf_compat.h: Ditto.
4248         * libc/sys/linux/include/net/bpfdesc.h: Ditto.
4249         * libc/sys/linux/include/net/bridge.h: Ditto.
4250         * libc/sys/linux/include/net/ethernet.h: Ditto.
4251         * libc/sys/linux/include/net/fddi.h: Ditto.
4252         * libc/sys/linux/include/net/if.h: Ditto.
4253         * libc/sys/linux/include/net/if_arc.h: Ditto.
4254         * libc/sys/linux/include/net/if_arp.h: Ditto.
4255         * libc/sys/linux/include/net/if_atm.h: Ditto.
4256         * libc/sys/linux/include/net/if_dl.h: Ditto.
4257         * libc/sys/linux/include/net/if_gif.h: Ditto.
4258         * libc/sys/linux/include/net/if_ieee80211.h: Ditto.
4259         * libc/sys/linux/include/net/if_llc.h: Ditto.
4260         * libc/sys/linux/include/net/if_media.h: Ditto.
4261         * libc/sys/linux/include/net/if_mib.h: Ditto.
4262         * libc/sys/linux/include/net/if_ppp.h: Ditto.
4263         * libc/sys/linux/include/net/if_pppvar.h: Ditto.
4264         * libc/sys/linux/include/net/if_slvar.h: Ditto.
4265         * libc/sys/linux/include/net/if_sppp.h: Ditto.
4266         * libc/sys/linux/include/net/if_stf.h: Ditto.
4267         * libc/sys/linux/include/net/if_tap.h: Ditto.
4268         * libc/sys/linux/include/net/if_tapvar.h: Ditto.
4269         * libc/sys/linux/include/net/if_tun.h: Ditto.
4270         * libc/sys/linux/include/net/if_tunvar.h: Ditto.
4271         * libc/sys/linux/include/net/if_types.h: Ditto.
4272         * libc/sys/linux/include/net/if_var.h: Ditto.
4273         * libc/sys/linux/include/net/if_vlan_var.h: Ditto.
4274         * libc/sys/linux/include/net/intrq.h: Ditto.
4275         * libc/sys/linux/include/net/iso88025.h: Ditto.
4276         * libc/sys/linux/include/net/net_osdep.h: Ditto.
4277         * libc/sys/linux/include/net/netisr.h: Ditto.
4278         * libc/sys/linux/include/net/pfil.h: Ditto.
4279         * libc/sys/linux/include/net/pfkeyv2.h: Ditto.
4280         * libc/sys/linux/include/net/ppp_comp.h: Ditto.
4281         * libc/sys/linux/include/net/ppp_defs.h: Ditto.
4282         * libc/sys/linux/include/net/radix.h: Ditto.
4283         * libc/sys/linux/include/net/raw_cb.h: Ditto.
4284         * libc/sys/linux/include/net/route.h: Ditto.
4285         * libc/sys/linux/include/net/slcompress.h: Ditto.
4286         * libc/sys/linux/include/net/slip.h: Ditto.
4287         * libc/sys/linux/include/net/zlib.h: Ditto.
4288         * libc/sys/linux/include/netinet/icmp6.h: Ditto.
4289         * libc/sys/linux/include/netinet/icmp_var.h: Ditto.
4290         * libc/sys/linux/include/netinet/if_atm.h: Ditto.
4291         * libc/sys/linux/include/netinet/if_ether.h: Ditto.
4292         * libc/sys/linux/include/netinet/igmp.h: Ditto.
4293         * libc/sys/linux/include/netinet/igmp_var.h: Ditto.
4294         * libc/sys/linux/include/netinet/in.h: Ditto.
4295         * libc/sys/linux/include/netinet/in_gif.h: Ditto.
4296         * libc/sys/linux/include/netinet/in_pcb.h: Ditto.
4297         * libc/sys/linux/include/netinet/in_systm.h: Ditto.
4298         * libc/sys/linux/include/netinet/in_var.h: Ditto.
4299         * libc/sys/linux/include/netinet/ip.h: Ditto.
4300         * libc/sys/linux/include/netinet/ip6.h: Ditto.
4301         * libc/sys/linux/include/netinet/ip_dummynet.h: Ditto.
4302         * libc/sys/linux/include/netinet/ip_ecn.h: Ditto.
4303         * libc/sys/linux/include/netinet/ip_encap.h: Ditto.
4304         * libc/sys/linux/include/netinet/ip_flow.h: Ditto.
4305         * libc/sys/linux/include/netinet/ip_fw.h: Ditto.
4306         * libc/sys/linux/include/netinet/ip_icmp.h: Ditto.
4307         * libc/sys/linux/include/netinet/ip_mroute.h: Ditto.
4308         * libc/sys/linux/include/netinet/ip_var.h: Ditto.
4309         * libc/sys/linux/include/netinet/ipprotosw.h: Ditto.
4310         * libc/sys/linux/include/netinet/tcp.h: Ditto.
4311         * libc/sys/linux/include/netinet/tcp_debug.h: Ditto.
4312         * libc/sys/linux/include/netinet/tcp_fsm.h: Ditto.
4313         * libc/sys/linux/include/netinet/tcp_seq.h: Ditto.
4314         * libc/sys/linux/include/netinet/tcp_timer.h: Ditto.
4315         * libc/sys/linux/include/netinet/tcp_var.h: Ditto.
4316         * libc/sys/linux/include/netinet/tcpip.h: Ditto.
4317         * libc/sys/linux/include/netinet/udp.h: Ditto.
4318         * libc/sys/linux/include/netinet/udp_var.h: Ditto.
4319         * libc/sys/linux/include/netinet6/ah.h: Ditto.
4320         * libc/sys/linux/include/netinet6/ah6.h: Ditto.
4321         * libc/sys/linux/include/netinet6/esp.h: Ditto.
4322         * libc/sys/linux/include/netinet6/esp6.h: Ditto.
4323         * libc/sys/linux/include/netinet6/esp_rijndael.h: Ditto.
4324         * libc/sys/linux/include/netinet6/icmp6.h: Ditto.
4325         * libc/sys/linux/include/netinet6/in6.h: Ditto.
4326         * libc/sys/linux/include/netinet6/in6_gif.h: Ditto.
4327         * libc/sys/linux/include/netinet6/in6_ifattach.h: Ditto.
4328         * libc/sys/linux/include/netinet6/in6_pcb.h: Ditto.
4329         * libc/sys/linux/include/netinet6/in6_prefix.h: Ditto.
4330         * libc/sys/linux/include/netinet6/in6_var.h: Ditto.
4331         * libc/sys/linux/include/netinet6/ip6.h: Ditto.
4332         * libc/sys/linux/include/netinet6/ip6_ecn.h: Ditto.
4333         * libc/sys/linux/include/netinet6/ip6_fw.h: Ditto.
4334         * libc/sys/linux/include/netinet6/ip6_mroute.h: Ditto.
4335         * libc/sys/linux/include/netinet6/ip6_var.h: Ditto.
4336         * libc/sys/linux/include/netinet6/ip6protosw.h: Ditto.
4337         * libc/sys/linux/include/netinet6/ipcomp.h: Ditto.
4338         * libc/sys/linux/include/netinet6/ipcomp6.h: Ditto.
4339         * libc/sys/linux/include/netinet6/ipsec.h: Ditto.
4340         * libc/sys/linux/include/netinet6/ipsec6.h: Ditto.
4341         * libc/sys/linux/include/netinet6/mld6_var.h: Ditto.
4342         * libc/sys/linux/include/netinet6/nd6.h: Ditto.
4343         * libc/sys/linux/include/netinet6/pim6.h: Ditto.
4344         * libc/sys/linux/include/netinet6/pim6_var.h: Ditto.
4345         * libc/sys/linux/include/netinet6/raw_ip6.h: Ditto.
4346         * libc/sys/linux/include/netinet6/scope6_var.h: Ditto.
4347         * libc/sys/linux/include/netinet6/tcp6_var.h: Ditto.
4348         * libc/sys/linux/include/netinet6/udp6_var.h: Ditto.
4349         * libc/sys/linux/include/netns/idp.h: Ditto.
4350         * libc/sys/linux/include/netns/idp_var.h: Ditto.
4351         * libc/sys/linux/include/netns/ns.h: Ditto.
4352         * libc/sys/linux/include/netns/ns_error.h: Ditto.
4353         * libc/sys/linux/include/netns/ns_if.h: Ditto.
4354         * libc/sys/linux/include/netns/ns_pcb.h: Ditto.
4355         * libc/sys/linux/include/netns/sp.h: Ditto.
4356         * libc/sys/linux/include/netns/spidp.h: Ditto.
4357         * libc/sys/linux/include/netns/spp_debug.h: Ditto.
4358         * libc/sys/linux/include/netns/spp_timer.h: Ditto.
4359         * libc/sys/linux/include/netns/spp_var.h: Ditto.
4360         * libc/sys/linux/include/rpc/Makefile: Ditto.
4361         * libc/sys/linux/include/rpc/auth.h: Ditto.
4362         * libc/sys/linux/include/rpc/auth_des.h: Ditto.
4363         * libc/sys/linux/include/rpc/auth_kerb.h: Ditto.
4364         * libc/sys/linux/include/rpc/auth_unix.h: Ditto.
4365         * libc/sys/linux/include/rpc/clnt.h: Ditto.
4366         * libc/sys/linux/include/rpc/clnt_soc.h: Ditto.
4367         * libc/sys/linux/include/rpc/clnt_stat.h: Ditto.
4368         * libc/sys/linux/include/rpc/des.h: Ditto.
4369         * libc/sys/linux/include/rpc/des_crypt.h: Ditto.
4370         * libc/sys/linux/include/rpc/nettype.h: Ditto.
4371         * libc/sys/linux/include/rpc/pmap_clnt.h: Ditto.
4372         * libc/sys/linux/include/rpc/pmap_prot.h: Ditto.
4373         * libc/sys/linux/include/rpc/pmap_rmt.h: Ditto.
4374         * libc/sys/linux/include/rpc/raw.h: Ditto.
4375         * libc/sys/linux/include/rpc/rpc.h: Ditto.
4376         * libc/sys/linux/include/rpc/rpc_com.h: Ditto.
4377         * libc/sys/linux/include/rpc/rpc_msg.h: Ditto.
4378         * libc/sys/linux/include/rpc/rpcb_clnt.h: Ditto.
4379         * libc/sys/linux/include/rpc/rpcb_prot.h: Ditto.
4380         * libc/sys/linux/include/rpc/rpcb_prot.x: Ditto.
4381         * libc/sys/linux/include/rpc/rpcent.h: Ditto.
4382         * libc/sys/linux/include/rpc/svc.h: Ditto.
4383         * libc/sys/linux/include/rpc/svc_auth.h: Ditto.
4384         * libc/sys/linux/include/rpc/svc_dg.h: Ditto.
4385         * libc/sys/linux/include/rpc/svc_soc.h: Ditto.
4386         * libc/sys/linux/include/rpc/types.h: Ditto.
4387         * libc/sys/linux/include/rpc/xdr.h: Ditto.
4388         * libc/sys/linux/intl/Makefile.am: Ditto.
4389         * libc/sys/linux/intl/Makefile.in: Ditto.
4390         * libc/sys/linux/intl/bindtextdom.c: Ditto.
4391         * libc/sys/linux/intl/catgets.c: Ditto.
4392         * libc/sys/linux/intl/catgetsinfo.h: Ditto.
4393         * libc/sys/linux/intl/config.h: Ditto.
4394         * libc/sys/linux/intl/dcgettext.c: Ditto.
4395         * libc/sys/linux/intl/dcigettext.c: Ditto.
4396         * libc/sys/linux/intl/dcngettext.c: Ditto.
4397         * libc/sys/linux/intl/dgettext.c: Ditto.
4398         * libc/sys/linux/intl/dngettext.c: Ditto.
4399         * libc/sys/linux/intl/explodename.c: Ditto.
4400         * libc/sys/linux/intl/finddomain.c: Ditto.
4401         * libc/sys/linux/intl/gettext.c: Ditto.
4402         * libc/sys/linux/intl/gettext.h: Ditto.
4403         * libc/sys/linux/intl/gettextP.h: Ditto.
4404         * libc/sys/linux/intl/hash-string.h: Ditto.
4405         * libc/sys/linux/intl/l10nflist.c: Ditto.
4406         * libc/sys/linux/intl/loadinfo.h: Ditto.
4407         * libc/sys/linux/intl/loadmsgcat.c: Ditto.
4408         * libc/sys/linux/intl/locale.alias: Ditto.
4409         * libc/sys/linux/intl/localealias.c: Ditto.
4410         * libc/sys/linux/intl/ngettext.c: Ditto.
4411         * libc/sys/linux/intl/open_catalog.c: Ditto.
4412         * libc/sys/linux/intl/plural.c: Ditto.
4413         * libc/sys/linux/intl/plural.y: Ditto.
4414         * libc/sys/linux/intl/stpcpy.c: Ditto.
4415         * libc/sys/linux/intl/textdomain.c: Ditto.
4416         * libc/sys/linux/linuxthreads/LICENSE: Ditto.
4417         * libc/sys/linux/linuxthreads/Makefile.am: Ditto.
4418         * libc/sys/linux/linuxthreads/Makefile.in: Ditto.
4419         * libc/sys/linux/linuxthreads/aclocal.m4: Ditto.
4420         * libc/sys/linux/linuxthreads/attr.c: Ditto.
4421         * libc/sys/linux/linuxthreads/barrier.c: Ditto.
4422         * libc/sys/linux/linuxthreads/bp-sym.h: Ditto.
4423         * libc/sys/linux/linuxthreads/cancel.c: Ditto.
4424         * libc/sys/linux/linuxthreads/condvar.c: Ditto.
4425         * libc/sys/linux/linuxthreads/config.h: Ditto.
4426         * libc/sys/linux/linuxthreads/configure: Ditto.
4427         * libc/sys/linux/linuxthreads/configure.in: Ditto.
4428         * libc/sys/linux/linuxthreads/defs.awk: Ditto.
4429         * libc/sys/linux/linuxthreads/ecmutex.c: Ditto.
4430         * libc/sys/linux/linuxthreads/events.c: Ditto.
4431         * libc/sys/linux/linuxthreads/getcpuclockid.c: Ditto.
4432         * libc/sys/linux/linuxthreads/getreent.c: Ditto.
4433         * libc/sys/linux/linuxthreads/internals.h: Ditto.
4434         * libc/sys/linux/linuxthreads/join.c: Ditto.
4435         * libc/sys/linux/linuxthreads/joinrace.c: Ditto.
4436         * libc/sys/linux/linuxthreads/kernel-features.h: Ditto.
4437         * libc/sys/linux/linuxthreads/libc-internal.h: Ditto.
4438         * libc/sys/linux/linuxthreads/libc-symbols.h: Ditto.
4439         * libc/sys/linux/linuxthreads/linuxthreads.texi: Ditto.
4440         * libc/sys/linux/linuxthreads/lockfile.c: Ditto.
4441         * libc/sys/linux/linuxthreads/manager.c: Ditto.
4442         * libc/sys/linux/linuxthreads/mq_notify.c: Ditto.
4443         * libc/sys/linux/linuxthreads/mutex.c: Ditto.
4444         * libc/sys/linux/linuxthreads/no-tsd.c: Ditto.
4445         * libc/sys/linux/linuxthreads/oldsemaphore.c: Ditto.
4446         * libc/sys/linux/linuxthreads/posix-timer.h: Ditto.
4447         * libc/sys/linux/linuxthreads/prio.c: Ditto.
4448         * libc/sys/linux/linuxthreads/proc_service.h: Ditto.
4449         * libc/sys/linux/linuxthreads/pt-machine.c: Ditto.
4450         * libc/sys/linux/linuxthreads/ptclock_gettime.c: Ditto.
4451         * libc/sys/linux/linuxthreads/ptclock_settime.c: Ditto.
4452         * libc/sys/linux/linuxthreads/ptfork.c: Ditto.
4453         * libc/sys/linux/linuxthreads/pthread.c: Ditto.
4454         * libc/sys/linux/linuxthreads/ptlongjmp.c: Ditto.
4455         * libc/sys/linux/linuxthreads/queue.h: Ditto.
4456         * libc/sys/linux/linuxthreads/reent.c: Ditto.
4457         * libc/sys/linux/linuxthreads/reqsyscalls.c: Ditto.
4458         * libc/sys/linux/linuxthreads/restart.h: Ditto.
4459         * libc/sys/linux/linuxthreads/rwlock.c: Ditto.
4460         * libc/sys/linux/linuxthreads/semaphore.c: Ditto.
4461         * libc/sys/linux/linuxthreads/semaphore.h: Ditto.
4462         * libc/sys/linux/linuxthreads/shlib-compat.h: Ditto.
4463         * libc/sys/linux/linuxthreads/signals.c: Ditto.
4464         * libc/sys/linux/linuxthreads/specific.c: Ditto.
4465         * libc/sys/linux/linuxthreads/spinlock.c: Ditto.
4466         * libc/sys/linux/linuxthreads/spinlock.h: Ditto.
4467         * libc/sys/linux/linuxthreads/sysctl.c: Ditto.
4468         * libc/sys/linux/linuxthreads/td_init.c: Ditto.
4469         * libc/sys/linux/linuxthreads/td_log.c: Ditto.
4470         * libc/sys/linux/linuxthreads/td_symbol_list.c: Ditto.
4471         * libc/sys/linux/linuxthreads/td_ta_clear_event.c: Ditto.
4472         * libc/sys/linux/linuxthreads/td_ta_delete.c: Ditto.
4473         * libc/sys/linux/linuxthreads/td_ta_enable_stats.c: Ditto.
4474         * libc/sys/linux/linuxthreads/td_ta_event_addr.c: Ditto.
4475         * libc/sys/linux/linuxthreads/td_ta_event_getmsg.c: Ditto.
4476         * libc/sys/linux/linuxthreads/td_ta_get_nthreads.c: Ditto.
4477         * libc/sys/linux/linuxthreads/td_ta_get_ph.c: Ditto.
4478         * libc/sys/linux/linuxthreads/td_ta_get_stats.c: Ditto.
4479         * libc/sys/linux/linuxthreads/td_ta_map_id2thr.c: Ditto.
4480         * libc/sys/linux/linuxthreads/td_ta_map_lwp2thr.c: Ditto.
4481         * libc/sys/linux/linuxthreads/td_ta_new.c: Ditto.
4482         * libc/sys/linux/linuxthreads/td_ta_reset_stats.c: Ditto.
4483         * libc/sys/linux/linuxthreads/td_ta_set_event.c: Ditto.
4484         * libc/sys/linux/linuxthreads/td_ta_setconcurrency.c: Ditto.
4485         * libc/sys/linux/linuxthreads/td_ta_thr_iter.c: Ditto.
4486         * libc/sys/linux/linuxthreads/td_ta_tsd_iter.c: Ditto.
4487         * libc/sys/linux/linuxthreads/td_thr_clear_event.c: Ditto.
4488         * libc/sys/linux/linuxthreads/td_thr_dbresume.c: Ditto.
4489         * libc/sys/linux/linuxthreads/td_thr_dbsuspend.c: Ditto.
4490         * libc/sys/linux/linuxthreads/td_thr_event_enable.c: Ditto.
4491         * libc/sys/linux/linuxthreads/td_thr_event_getmsg.c: Ditto.
4492         * libc/sys/linux/linuxthreads/td_thr_get_info.c: Ditto.
4493         * libc/sys/linux/linuxthreads/td_thr_getfpregs.c: Ditto.
4494         * libc/sys/linux/linuxthreads/td_thr_getgregs.c: Ditto.
4495         * libc/sys/linux/linuxthreads/td_thr_getxregs.c: Ditto.
4496         * libc/sys/linux/linuxthreads/td_thr_getxregsize.c: Ditto.
4497         * libc/sys/linux/linuxthreads/td_thr_set_event.c: Ditto.
4498         * libc/sys/linux/linuxthreads/td_thr_setfpregs.c: Ditto.
4499         * libc/sys/linux/linuxthreads/td_thr_setgregs.c: Ditto.
4500         * libc/sys/linux/linuxthreads/td_thr_setprio.c: Ditto.
4501         * libc/sys/linux/linuxthreads/td_thr_setsigpending.c: Ditto.
4502         * libc/sys/linux/linuxthreads/td_thr_setxregs.c: Ditto.
4503         * libc/sys/linux/linuxthreads/td_thr_sigsetmask.c: Ditto.
4504         * libc/sys/linux/linuxthreads/td_thr_tsd.c: Ditto.
4505         * libc/sys/linux/linuxthreads/td_thr_validate.c: Ditto.
4506         * libc/sys/linux/linuxthreads/testrtsig.h: Ditto.
4507         * libc/sys/linux/linuxthreads/thread_db.h: Ditto.
4508         * libc/sys/linux/linuxthreads/thread_dbP.h: Ditto.
4509         * libc/sys/linux/linuxthreads/timer_create.c: Ditto.
4510         * libc/sys/linux/linuxthreads/timer_delete.c: Ditto.
4511         * libc/sys/linux/linuxthreads/timer_getoverr.c: Ditto.
4512         * libc/sys/linux/linuxthreads/timer_gettime.c: Ditto.
4513         * libc/sys/linux/linuxthreads/timer_routines.c: Ditto.
4514         * libc/sys/linux/linuxthreads/timer_settime.c: Ditto.
4515         * libc/sys/linux/linuxthreads/tst-cancel.c: Ditto.
4516         * libc/sys/linux/linuxthreads/tst-context.c: Ditto.
4517         * libc/sys/linux/linuxthreads/tststack.c: Ditto.
4518         * libc/sys/linux/linuxthreads/unload.c: Ditto.
4519         * libc/sys/linux/linuxthreads/weaks.c: Ditto.
4520         * libc/sys/linux/linuxthreads/wrapsyscall.c: Ditto.
4521         * libc/sys/linux/linuxthreads/bits/initspin.h: Ditto.
4522         * libc/sys/linux/linuxthreads/bits/libc-lock.h: Ditto.
4523         * libc/sys/linux/linuxthreads/bits/libc-tsd.h: Ditto.
4524         * libc/sys/linux/linuxthreads/bits/local_lim.h: Ditto.
4525         * libc/sys/linux/linuxthreads/bits/posix_opt.h: Ditto.
4526         * libc/sys/linux/linuxthreads/bits/pthreadtypes.h: Ditto.
4527         * libc/sys/linux/linuxthreads/bits/sigthread.h: Ditto.
4528         * libc/sys/linux/linuxthreads/machine/Makefile.am: Ditto.
4529         * libc/sys/linux/linuxthreads/machine/Makefile.in: Ditto.
4530         * libc/sys/linux/linuxthreads/machine/aclocal.m4: Ditto.
4531         * libc/sys/linux/linuxthreads/machine/configure: Ditto.
4532         * libc/sys/linux/linuxthreads/machine/configure.in: Ditto.
4533         * libc/sys/linux/linuxthreads/machine/generic/generic-sysd: Ditto.ep.h
4534         * libc/sys/linux/linuxthreads/machine/i386/Makefile.am: Ditto.
4535         * libc/sys/linux/linuxthreads/machine/i386/Makefile.in: Ditto.
4536         * libc/sys/linux/linuxthreads/machine/i386/aclocal.m4: Ditto.
4537         * libc/sys/linux/linuxthreads/machine/i386/bp-asm.h: Ditto.
4538         * libc/sys/linux/linuxthreads/machine/i386/clone.S: Ditto.
4539         * libc/sys/linux/linuxthreads/machine/i386/configure: Ditto.
4540         * libc/sys/linux/linuxthreads/machine/i386/configure.in: Ditto.
4541         * libc/sys/linux/linuxthreads/machine/i386/i386-sysdep.S: Ditto.
4542         * libc/sys/linux/linuxthreads/machine/i386/i386-sysdep.h: Ditto.
4543         * libc/sys/linux/linuxthreads/machine/i386/pspinlock.c: Ditto.
4544         * libc/sys/linux/linuxthreads/machine/i386/pt-machine.h: Ditto.
4545         * libc/sys/linux/linuxthreads/machine/i386/sigcontextinfo.h: Ditto.
4546         * libc/sys/linux/linuxthreads/machine/i386/stackinfo.h: Ditto.
4547         * libc/sys/linux/linuxthreads/machine/i386/sysdep.S: Ditto.
4548         * libc/sys/linux/linuxthreads/machine/i386/sysdep.h: Ditto.
4549         * libc/sys/linux/linuxthreads/machine/i386/useldt.h: Ditto.
4550         * libc/sys/linux/machine/i386/dl-machine.h: Ditto.
4551         * libc/sys/linux/net/Makefile.am: Ditto.
4552         * libc/sys/linux/net/Makefile.in: Ditto.
4553         * libc/sys/linux/net/addr2ascii.3: Ditto.
4554         * libc/sys/linux/net/addr2ascii.c: Ditto.
4555         * libc/sys/linux/net/ascii2addr.c: Ditto.
4556         * libc/sys/linux/net/base64.c: Ditto.
4557         * libc/sys/linux/net/bindresvport.c: Ditto.
4558         * libc/sys/linux/net/byteorder.3: Ditto.
4559         * libc/sys/linux/net/ether_addr.c: Ditto.
4560         * libc/sys/linux/net/ethers.3: Ditto.
4561         * libc/sys/linux/net/getaddrinfo.3: Ditto.
4562         * libc/sys/linux/net/getaddrinfo.c: Ditto.
4563         * libc/sys/linux/net/gethostbydns.c: Ditto.
4564         * libc/sys/linux/net/gethostbyht.c: Ditto.
4565         * libc/sys/linux/net/gethostbyname.3: Ditto.
4566         * libc/sys/linux/net/gethostbynis.c: Ditto.
4567         * libc/sys/linux/net/gethostnamadr.c: Ditto.
4568         * libc/sys/linux/net/getifaddrs.3: Ditto.
4569         * libc/sys/linux/net/getifaddrs.c: Ditto.
4570         * libc/sys/linux/net/getipnodebyname.3: Ditto.
4571         * libc/sys/linux/net/getnameinfo.3: Ditto.
4572         * libc/sys/linux/net/getnameinfo.c: Ditto.
4573         * libc/sys/linux/net/getnetbydns.c: Ditto.
4574         * libc/sys/linux/net/getnetbyht.c: Ditto.
4575         * libc/sys/linux/net/getnetbynis.c: Ditto.
4576         * libc/sys/linux/net/getnetent.3: Ditto.
4577         * libc/sys/linux/net/getnetnamadr.c: Ditto.
4578         * libc/sys/linux/net/getproto.c: Ditto.
4579         * libc/sys/linux/net/getprotoent.3: Ditto.
4580         * libc/sys/linux/net/getprotoent.c: Ditto.
4581         * libc/sys/linux/net/getprotoname.c: Ditto.
4582         * libc/sys/linux/net/getservbyname.c: Ditto.
4583         * libc/sys/linux/net/getservbyport.c: Ditto.
4584         * libc/sys/linux/net/getservent.3: Ditto.
4585         * libc/sys/linux/net/getservent.c: Ditto.
4586         * libc/sys/linux/net/herror.c: Ditto.
4587         * libc/sys/linux/net/hesiod.3: Ditto.
4588         * libc/sys/linux/net/hesiod.c: Ditto.
4589         * libc/sys/linux/net/if_indextoname.3: Ditto.
4590         * libc/sys/linux/net/ifname.c: Ditto.
4591         * libc/sys/linux/net/inet.3: Ditto.
4592         * libc/sys/linux/net/inet6_option_s: Ditto.pace.3
4593         * libc/sys/linux/net/inet6_rthdr_space.3: Ditto.
4594         * libc/sys/linux/net/inet_addr.c: Ditto.
4595         * libc/sys/linux/net/inet_lnaof.c: Ditto.
4596         * libc/sys/linux/net/inet_makeaddr.c: Ditto.
4597         * libc/sys/linux/net/inet_net.3: Ditto.
4598         * libc/sys/linux/net/inet_net_ntop.c: Ditto.
4599         * libc/sys/linux/net/inet_net_pton.c: Ditto.
4600         * libc/sys/linux/net/inet_neta.c: Ditto.
4601         * libc/sys/linux/net/inet_netof.c: Ditto.
4602         * libc/sys/linux/net/inet_network.c: Ditto.
4603         * libc/sys/linux/net/inet_ntoa.c: Ditto.
4604         * libc/sys/linux/net/inet_ntop.c: Ditto.
4605         * libc/sys/linux/net/inet_pton.c: Ditto.
4606         * libc/sys/linux/net/innetgr-stub.c: Ditto.
4607         * libc/sys/linux/net/ip6opt.c: Ditto.
4608         * libc/sys/linux/net/iso_addr.3: Ditto.
4609         * libc/sys/linux/net/iso_addr.c: Ditto.
4610         * libc/sys/linux/net/issetugid-stub.c: Ditto.
4611         * libc/sys/linux/net/linkaddr.3: Ditto.
4612         * libc/sys/linux/net/linkaddr.c: Ditto.
4613         * libc/sys/linux/net/map_v4v6.c: Ditto.
4614         * libc/sys/linux/net/name6.c: Ditto.
4615         * libc/sys/linux/net/namespace.h: Ditto.
4616         * libc/sys/linux/net/ns.3: Ditto.
4617         * libc/sys/linux/net/ns_addr.c: Ditto.
4618         * libc/sys/linux/net/ns_name.c: Ditto.
4619         * libc/sys/linux/net/ns_netint.c: Ditto.
4620         * libc/sys/linux/net/ns_ntoa.c: Ditto.
4621         * libc/sys/linux/net/ns_parse.c: Ditto.
4622         * libc/sys/linux/net/ns_print.c: Ditto.
4623         * libc/sys/linux/net/ns_ttl.c: Ditto.
4624         * libc/sys/linux/net/nsap_addr.c: Ditto.
4625         * libc/sys/linux/net/nsdispatch.3: Ditto.
4626         * libc/sys/linux/net/nsdispatch.c: Ditto.
4627         * libc/sys/linux/net/nslexer.c: Ditto.
4628         * libc/sys/linux/net/nslexer.l: Ditto.
4629         * libc/sys/linux/net/nsparser.c: Ditto.
4630         * libc/sys/linux/net/nsparser.h: Ditto.
4631         * libc/sys/linux/net/nsparser.y: Ditto.
4632         * libc/sys/linux/net/rcmd.3: Ditto.
4633         * libc/sys/linux/net/rcmd.c: Ditto.
4634         * libc/sys/linux/net/rcmdsh.3: Ditto.
4635         * libc/sys/linux/net/rcmdsh.c: Ditto.
4636         * libc/sys/linux/net/recv.c: Ditto.
4637         * libc/sys/linux/net/res_comp.c: Ditto.
4638         * libc/sys/linux/net/res_config.h: Ditto.
4639         * libc/sys/linux/net/res_data.c: Ditto.
4640         * libc/sys/linux/net/res_debug.c: Ditto.
4641         * libc/sys/linux/net/res_init.c: Ditto.
4642         * libc/sys/linux/net/res_mkquery.c: Ditto.
4643         * libc/sys/linux/net/res_mkupdate.c: Ditto.
4644         * libc/sys/linux/net/res_query.c: Ditto.
4645         * libc/sys/linux/net/res_send.c: Ditto.
4646         * libc/sys/linux/net/res_update.c: Ditto.
4647         * libc/sys/linux/net/resolver.3: Ditto.
4648         * libc/sys/linux/net/rthdr.c: Ditto.
4649         * libc/sys/linux/net/send.c: Ditto.
4650         * libc/sys/linux/net/un-namespace.h: Ditto.
4651         * libc/sys/linux/net/vars.c: Ditto.
4652         * libc/sys/linux/stdlib/COPYRIGHT: Ditto.
4653         * libc/sys/linux/stdlib/Makefile.am: Ditto.
4654         * libc/sys/linux/stdlib/Makefile.in: Ditto.
4655         * libc/sys/linux/stdlib/cclass.h: Ditto.
4656         * libc/sys/linux/stdlib/cname.h: Ditto.
4657         * libc/sys/linux/stdlib/collate.c: Ditto.
4658         * libc/sys/linux/stdlib/collate.h: Ditto.
4659         * libc/sys/linux/stdlib/collcmp.c: Ditto.
4660         * libc/sys/linux/stdlib/engine.c: Ditto.
4661         * libc/sys/linux/stdlib/fnmatch.3: Ditto.
4662         * libc/sys/linux/stdlib/fnmatch.c: Ditto.
4663         * libc/sys/linux/stdlib/glob.3: Ditto.
4664         * libc/sys/linux/stdlib/glob.c: Ditto.
4665         * libc/sys/linux/stdlib/reallocf.c: Ditto.
4666         * libc/sys/linux/stdlib/regcomp.c: Ditto.
4667         * libc/sys/linux/stdlib/regerror.c: Ditto.
4668         * libc/sys/linux/stdlib/regex.3: Ditto.
4669         * libc/sys/linux/stdlib/regex2.h: Ditto.
4670         * libc/sys/linux/stdlib/regexec.c: Ditto.
4671         * libc/sys/linux/stdlib/regfree.c: Ditto.
4672         * libc/sys/linux/stdlib/utils.h: Ditto.
4673         * libc/sys/linux/stdlib/wordexp.c: Ditto.
4674         * libc/sys/linux/stdlib/wordfree.c: Ditto.
4675         * libc/sys/linux/sys/dlfcn.h: Ditto.
4676         * libc/sys/linux/sys/elfclass.h: Ditto.
4677         * libc/sys/linux/sys/event.h: Ditto.
4678         * libc/sys/linux/sys/ioccom.h: Ditto.
4679         * libc/sys/linux/sys/libc-tsd.h: Ditto.
4680         * libc/sys/linux/sys/link.h: Ditto.
4681         * libc/sys/linux/sys/lock.h: Ditto.
4682         * libc/sys/linux/sys/param.h: Ditto.
4683         * libc/sys/linux/sys/socket.h: Ditto.
4684         * libc/sys/linux/sys/sockio.h: Ditto.
4685
4686 2003-05-28  Dhananjay Deshpande  <dhananjayd@kpitcummins.com> 
4687
4688         * newlib/libc/machine/h8300/memcpy.S: Use .h8300hn and .h8300sn for 
4689         normal mode
4690         * newlib/libc/machine/h8300/memset.S: Likewise
4691         * newlib/lib/machine/h8300/reg_memcpy.S: Likewise
4692         * newlib/lib/machine/h8300/reg_memset.S: Likewise
4693         * newlib/lib/machine/h8300/setjmp.S: Likewise
4694         * newlib/lib/machine/h8300/strcmp.S: Likewise
4695         * newlib/lib/sys/h8300hms/crt0.S: Likewise
4696
4697 2003-05-13  Corinna Vinschen  <corinna@vinschen.de>
4698
4699         * libc/ctype/ctype_.c: Remove checks for deprecated __CYGWIN32__.
4700         * libc/include/stdio.h: Ditto.
4701         * libc/include/sys/config.h: Ditto.
4702         * libc/stdio/mktemp.c: Ditto.
4703
4704 2003-05-13  Corinna Vinschen  <corinna@vinschen.de>
4705
4706         * libc/locale/ldpart.c (__part_load_locale): Substitute
4707         __CYGWIN_USE_BIG_TYPES__ by __USE_INTERNAL_STAT64.
4708         * libc/search/hash.c (__hash_open): Ditto.
4709         (init_hash): Ditto.
4710         * libc/stdio/fseek.c (fseek): Ditto.
4711         * libc/stdio/makebuf.c (__smakebuf): Ditto.
4712         * libc/stdio/mktemp.c (_gettemp): Ditto.
4713
4714 2003-05-12  Corinna Vinschen  <corinna@vinschen.de>
4715
4716         * libc/include/stdio.h: Change one __CYGWIN__ to __CYGWIN32__.
4717
4718 2003-05-12  Corinna Vinschen  <corinna@vinschen.de>
4719
4720         * configure.host: Accomodate removing the libc/sys/cygwin dir.
4721         * libc/locale/ldpart.c (__part_load_locale): Use 64 bit stat call
4722         if __CYGWIN_USE_BIG_TYPES__ is set.
4723         * libc/search/hash.c (__hash_open): Ditto.
4724         (init_hash): Ditto.
4725         * libc/stdio/fseek.c (fseek): Ditto.
4726         * libc/stdio/makebuf.c (__smakebuf): Ditto.
4727         * libc/stdio/mktemp.c (_gettemp): Ditto.
4728         * libc/sys/cygwin/Makefile.am: Remove.
4729         * libc/sys/cygwin/Makefile.in: Remove.
4730         * libc/sys/cygwin/aclocal.m4: Remove.
4731         * libc/sys/cygwin/configure: Remove.
4732         * libc/sys/cygwin/configure.in: Remove.
4733         * libc/sys/cygwin/crt0.c: Move to winsup/cygwin directory.
4734         * libc/sys/cygwin/sys/dirent.h: Move to winsup/cygwin/include/sys
4735         directory.
4736         * libc/sys/cygwin/sys/param.h: Ditto.
4737         * libc/sys/cygwin/sys/utime.h: Ditto.
4738         * libc/sys/cygwin/sys/utmp.h: Ditto.
4739
4740 2003-05-11  Corinna Vinschen  <corinna@vinschen.de>
4741
4742         * libc/include/sys/types.h: Don't define key_t for Cygwin.
4743
4744 2003-05-10  Christopher Faylor  <cgf@redhat.com>
4745
4746         * libc/sys/cygwin/sys/dirent.h (struct dirent): Accommodate (slightly)
4747         64 bit inodes.
4748
4749 2003-05-09  Corinna Vinschen  <corinna@vinschen.de>
4750
4751         * libc/include/sys/config.h: Remove all Cygwin specific configuration.
4752         Include cygwin/config.h instead.
4753
4754 2003-04-16  Jeff Johnston  <jjohnstn@redhat.com>
4755
4756         * newlib/libc/machine/powerpc (ato*fix*.c,strto*fix*.c): Shield
4757         all code with #ifdef __SPE__ test.
4758         * newlib/libc/machine/powerpc (simdldtoa.c, ufix64toa.c): Ditto.
4759
4760 2003-04-15  Chris January <chris@atomice.net>
4761
4762         * newlib/libc/include/sys/unistd.h: add declaration for gethostid on
4763         Cygwin.
4764
4765 2003-04-09  J"orn Rennecke <joern.rennecke@superh.com>
4766
4767         * libc/machine/sh/memset.S: Avoid clobbering volatile
4768         objects following a tiny to-be-set array in the same quadword.
4769
4770 2001-04-09  Corinna Vinschen  <corinna@vinschen.de>
4771
4772         * libc/include/wchar.h: Add definitions for wcswidth and wcwidth.  
4773         * libc/string/Makefile.am: Add wcswidth.c and wcwidth.c
4774         * libc/string/Makefile.in: Regenerated.
4775         * libc/string/wcswidth.c: New file.
4776         * libc/string/wcwidth.c: New file.
4777         * libc/string/wcstrings.tex: Add wcswidth and wcwidth.
4778
4779 Thu Apr  3 14:01:16 2003  J"orn Rennecke <joern.rennecke@superh.com>
4780
4781         * libc/machine/sh/memset.S: Fix problem with alloco region
4782         exceeding destination region for length >= 88 bytes, start
4783         & 0x16 == 0, end & 0x1f == 18.
4784
4785 2001-04-03  Corinna Vinschen  <corinna@vinschen.de>
4786
4787         * libc/string/wcscoll.c: Fix comment.
4788
4789 2001-04-02  Corinna Vinschen  <corinna@vinschen.de>
4790
4791         * libc/include/wchar.h: Add definition for wcscoll.
4792         * libc/string/Makefile.am: Add wcscoll.c.
4793         * libc/string/Makefile.in: Regenerated.
4794         * libc/string/wcscoll.c: New file.
4795         * libc/string/wcstrings.tex: Add wcscoll.   
4796
4797 2003-04-01  Corinna Vinschen  <corinna@vinschen.de>
4798
4799         * libc/stdio/sscanf.c: Update flags description.
4800         * libc/stdio/vfscanf.c: Add CHAR flag value to denote 8 bit target
4801         type.
4802         (__svfscanf_r): Add 'hh' and 'll' handling.
4803
4804 2003-04-01  Corinna Vinschen  <corinna@vinschen.de>
4805
4806         * libc/sys/cygwin/sys/dirent.h (struct DIR): Change type of
4807         __d_position member to _off_t.
4808
4809 2003-03-20  Jeff Johnston  <jjohnstn@redhat.com>
4810
4811         * libc/stdio/vfscanf.c (__svfscanf_r): For floating point conversion,
4812         count all characters used to create number against maximum width.
4813         * libc/machine/powerpc/vfscanf.c (__svfscanf_r): Ditto.
4814
4815 2003-03-18  D.Venkatasubramanian  <dvenkat@noida.hcltech.com>
4816
4817         * libc/include/sys/h8300hms/crt0.S[__SIMULATOR__]: Add commandline
4818         support.
4819         * configure.host (h8300*-*-*): Added comment regarding -D__SIMULATOR__
4820         flag to support simulator only extensions.
4821
4822 2003-03-17  Bob Cassels  <bcassels@abinitio.com>
4823
4824         * libc/string/wcschr.c: (wcschr): Look for character first, 
4825         then for end of string, so you can do wcschr(x, '\0').
4826
4827 2003-03-10  Corinna Vinschen  <corinna@vinschen.de>     
4828
4829         * libc/include/stdio.h: Declare fgetpos, fsetpos, fseeko and ftello
4830         with internal (_fpos_t and _off_t) datatypes when compiling newlib.
4831         * libc/include/sys/unistd.h: Declare _lseek using _off_t.
4832         * libc/reent/lseekr.c (_lseek_r): Use _off_t instead of off_t.
4833         * libc/stdio/fseeko.c (fseeko): Ditto.
4834         * libc/stdio/ftello.c (ftello): Ditto.
4835         * libc/stdio/stdio.c (__swrite): Ditto.
4836         (__sseek): Ditto.
4837         * libc/stdio/fgetpos.c (fgetpos): Use _fpos_t instead of fpos_t.
4838         * libc/stdio/fseek.c (fseek): Ditto.
4839         * libc/stdio/fsetpos.c (fsetpos): Ditto.
4840         * libc/stdio/ftell.c (ftell): Ditto.
4841         * libc/stdio/local.h: Declare __sseek using _off_t.
4842
4843 2003-03-09  Corinna Vinschen  <corinna@vinschen.de>
4844
4845         * libc/reent/lseekr.c (lseek_r): Use _off_t instead of off_t.
4846
4847 2003-03-09  Corinna Vinschen  <corinna@vinschen.de>
4848
4849         * libc/include/sys/config.h: Define __CYGWIN_USE_BIG_TYPES__ for
4850         Cygwin.
4851
4852 2003-03-09  Corinna Vinschen  <corinna@vinschen.de>
4853
4854         * libc/include/pwd.h: Add guards to avoid type clashes when compiling
4855         Cygwin.
4856         * libc/include/sys/stat.h: Ditto.
4857         * libc/include/sys/unistd.h: Ditto.
4858         * libc/sys/cygwin/sys/dirent.h: Ditto.
4859
4860 2003-03-07  Christopher Faylor  <cgf@redhat.com>
4861
4862         * libc/include/sys/unistd.h: Guard getopt.h call to force only
4863         declaration of getopt and avoid getopt_long declaration.
4864         * libc/sys/cygwin/include/unistd.h: Remove.
4865
4866 2003-03-07  Corinna Vinschen  <corinna@vinschen.de>
4867
4868         * configure.host: Define stdio64_dir for Cygwin.
4869         * libc/include/stdio.h: Change definition of fpos_t to fulfill
4870         Cygwin 64bit file access requirements.
4871         Drop definition of f*64() functions when compiled for Cygwin.
4872         * libc/include/sys/config.h: Define __LARGE64_FILES for Cygwin.
4873         * libc/reent/lseek64r.c: Use _off64_t instead of off64_t.
4874         * libc/stdio64/local64.h: Use _fpos64_t instead of fpos64_t.
4875
4876 2003-03-07   Jeff Johnston  <jjohnstn@redhat.com>
4877
4878         * libc/include/sys/reent.h: Remove extraneous _sig_func
4879         declaration.
4880
4881 2003-02-25   D.Venkatasubramanian <dvenkat@noida.hcltech.com>
4882
4883         * libc/sys/h8300hms/Makefile.am: Add support for new files.
4884         * libc/sys/h8300hms/Makefile.in: Regenerated.
4885         * libc/sys/h8300hms/close.S: New file.
4886         * libc/sys/h8300hms/fstat.S: Ditto.
4887         * libc/sys/h8300hms/lseek.S: Ditto.
4888         * libc/sys/h8300hms/open.S: Ditto.
4889         * libc/sys/h8300hms/stat.S: Ditto.
4890         * libc/sys/h8300hms/read.S: New file to replace read.c.
4891         * libc/sys/h8300hms/read.c: Removed.
4892         * libc/sys/h8300hms/syscalls.c: Removed functions _open,
4893         _lseek, _close, _stat, _fstat.
4894         * libc/sys/h8300hms/write.S: New file to replace write.c.
4895         * libc/sys/h8300hms/write.c: Removed.
4896
4897 2003-02-20  Nick Clifton  <nickc@redhat.com>
4898
4899         * Add support for Cirrus Maverick ARM co-processor:
4900         
4901         2000-09-13  Aldy Hernandez  <aldyh@redhat.com>
4902
4903                 * libc/include/machine/ieeefp.h: Set IEEE_BIG_ENDIAN or
4904                 IEEE_LITTLE_ENDIAN depending on endian mode (cirrus).
4905
4906         2000-08-11  Aldy Hernandez  <aldyh@redhat.com>
4907
4908                 * configure.host: set sys_dir, syscall_dir, and
4909                 newlib_cflags for ep9312 host.
4910
4911         * configure.host: Restore alpha sorting of entries in case
4912         statements.
4913
4914 2003-02-19  Jeff Johnston  <jjohnstn@redhat.com>
4915
4916         * libc/stdlib/mallocr.c (unlink): Revert 02/18 fix.
4917
4918 2003-02-18  Christian Groessler  <chris@groessler.org>
4919
4920         * libc/machine/z8k/setjmp.S (_setjmp / _longjmp): Fix to
4921         support z8001 segmented mode.
4922
4923 2003-02-18  Earnie Boyd  <earnie@users.sf.net>
4924
4925         * libc/stdlib/mallocr.c (unlink): Don't assign a value to a pointer
4926         with a NULL value.
4927
4928 2003-02-10  Christopher Faylor  <cgf@redhat.com>
4929
4930         * libc/include/sys/types.h: Don't define __MS_types__ for Cygwin.
4931         Don't define some types under cygwin.
4932
4933 2003-02-07  Jeff Johnston  <jjohnstn@redhat.com>
4934
4935         * acinclude.m4 (--disable-newlib-supplied-syscalls): New configuration 
4936         option to allow disabling of syscalls being supplied in newlib.
4937         * aclocal.m4: Regenerated.
4938         * configure: Ditto.
4939         * configure.host: Add support of new configuration option and add
4940         -D__NO_SYSCALLS__ if newlib supplied syscalls are disabled.
4941         * doc/aclocal.m4: Regenerated.
4942         * doc/configure: Ditto.
4943         * libc/*aclocal.m4: Ditto.
4944         * libc/*configure: Ditto.
4945         * libm/*aclocal.m4: Ditto.
4946         * libm/*configure: Ditto.
4947         * libc/sys/arm/Makefile.am: Don't build syscalls.o if new option
4948         is disabled.
4949         * libc/sys/arm/Makefile.in: Regenerated.
4950
4951 2003-02-05  Jonathan Larmour  <jifl@eCosCentric.com>
4952
4953         * libc/stdio/vsprintf.c (vsprintf, _vsprintf_r): Set _file fd to
4954         -1 to be sure it cannot later match a valid file fd causing
4955         isatty() to return 1.
4956         * libc/stdio/asprintf.c (asprintf, _asprintf_r): Ditto.
4957         * libc/stdio/sprintf.c (sprintf, _sprintf_r): Ditto.
4958         * libc/stdio/vasprintf.c (vasprintf, _vasprintf_r): Ditto.
4959
4960 2003-02-03  Jeff Johnston  <jjohnstn@redhat.com>
4961
4962         * libc/stdlib/ldtoa.c (_ldtoa_r): Fix code to allocate the format
4963         buffer based on the precision, after we have processed the input value 
4964         in a local buffer and know its relative magnitude. 
4965
4966 2003-01-31  Michael Snyder  <msnyder@redhat.com>
4967
4968         * libc/sys/h8300hms/_exit.c (_exit, __exit):  Slip a magic cookie
4969         into registers r1 and r2, so that the simulator can distinguish
4970         this trap from a breakpoint trap.  Copied from libgloss.
4971
4972 2003-01-31  Michael Snyder  <msnyder@redhat.com>
4973
4974         * libc/sys/h8300hms/crt0.S (_start): Change local label
4975         from .loop to .Loop, so that ld and gdb will ignore it.
4976
4977 2003-01-29  Jason Tishler  <jason@tishler.net>
4978
4979         * libc/include/time.h: Declare nanosleep() under Cygwin.
4980
4981 2003-01-24  Nick Clifton  <nickc@redhat.com>
4982
4983         * Add sh2e support:
4984
4985         2002-04-02  Alexandre Oliva  <aoliva@redhat.com>
4986
4987                 * libc/machine/sh/asm.h: Added __SH2E__ next to __SH3E__.
4988                 * libc/machine/sh/setjmp.S: Likewise.
4989                 * libc/include/machine/ieeefp.h: Likewise.
4990
4991 2003-01-24  Corinna Vinschen  <corinna@vinschen.de>
4992
4993         * libc/include/sys/unistd.h: Add setregid and setreuid declarations
4994         for Cygwin.
4995
4996 2003-01-21 Anita Kulkarni  <anitak@kpit.com>
4997   
4998         * libc/time/difftime.c : Typecast the result to double.
4999
5000 2003-01-20  Christopher Faylor  <cgf@redhat.com>
5001
5002         * libc/include/sys/unistd.h: Add rresvport declaration for cygwin.
5003
5004 2003-01-18  Nick Clifton  <nickc@redhat.com>
5005
5006         * libc/include/machine/ieeefp.h : Define __IEEE_BIG_ENDIAN,
5007         __SMALL_BITFIELDS and _DOUBLE_IS_32BITS for IP2K.
5008
5009 2003-01-16  Joel Sherrill <joel@OARcorp.com>
5010
5011         * libc/sys/rtems/include/limits.h, libc/sys/rtems/sys/param.h,
5012         libc/sys/rtems/sys/syslimits.h: Update to be in sync with what 
5013         constants are defined in each file in the shared versions in
5014         libc/include.
5015         * libc/sys/rtems/crt0.c: Define extra symbols on SH and HP-PA to
5016         autoconf can link programs.
5017         * libc/include/machine/types.h: Explicitly specify signed on
5018         intXX_t types to ensure they are signed.
5019
5020 2003-01-14  Christopher Faylor  <cgf@redhat.com>
5021
5022         * libc/time/strftime.c (strftime): Add '%h' and '%l, %k' GNU
5023         extensions.
5024
5025 2003-01-08  Richard Sandiford  <rsandifo@redhat.com>
5026
5027         * configure.host (mips64vr-elf, mips64vrel-elf): New config.
5028
5029 2003-01-07  Charles Wilson  <cwilson@ece.gatech.edu>
5030
5031         * libc/stdio/sprintf.c: fix typo
5032         * libc/stdio/vfprintf.c: fix typo
5033
5034 2003-01-07  Jeff Johnston  <jjohnstn@redhat.com>
5035
5036         * configure.host: Support long double I/O for x86-linux.
5037         * libc/stdlib/ldtoa.c (_ldtoa_r): Fix code to allocate a buffer
5038         large enough to hold formatted result.
5039         * libc/machine/powerpc/simdldtoa.c (_simdldtoa_r): Ditto.
5040
5041 2003-01-06  Charles Wilson  <cwilson@ece.gatech.edu>
5042
5043         * Makefile.am: Add vasprintf.
5044         * Makefile.in: Regenerated.
5045
5046 2003-01-06  Charles Wilson  <cwilson@ece.gatech.edu>
5047
5048         * asprintf.c (_asprintf_r): insure both declarations
5049         are the same.
5050
5051 2002-12-28  Christopher Faylor  <cgf@redhat.com>
5052
5053         * libc/include/sys/unistd.h: Under cygwin, just include getopt.h rather
5054         than defining getopt directly.
5055
5056 2002-12-20  Jeff Johnston  <jjohnstn@redhat.com>
5057
5058         * NEWS: Update with 1.11.0 info.
5059         * README: Ditto.
5060         * acinclude.m4: Change version number to 1.11.0.
5061         * aclocal.m4: Regenerated.
5062         * configure: Ditto.
5063         * doc/aclocal.m4: Ditto.
5064         * doc/configure: Ditto.
5065         * libc/*/aclocal.m4: Ditto.
5066         * libc/*/configure: Ditto.
5067         * libc/libc.texinfo: Ditto.
5068         * libm/*/aclocal.m4: Ditto.
5069         * libm/*/configure: Ditto.
5070         * libm/libm.texinfo: Ditto.
5071         * libc/sys/linux/shared.ld: Add VERS_1.11.
5072
5073 2002-12-20  Jeff Johnston  <jjohnstn@redhat.com>
5074
5075         * libc/machine/i386/f_atan2.S: Change copyright from Cygnus
5076         Solutions to Red Hat Inc.
5077         * libc/machine/i386/f_atan2f.S: Ditto.
5078         * libc/machine/i386/f_exp.c: Ditto.
5079         * libc/machine/i386/f_expf.c: Ditto.
5080         * libc/machine/i386/f_frexp.S: Ditto.
5081         * libc/machine/i386/f_frexpf.S: Ditto.
5082         * libc/machine/i386/f_ldexp.S: Ditto.
5083         * libc/machine/i386/f_ldexpf.S: Ditto.
5084         * libc/machine/i386/f_log.S: Ditto.
5085         * libc/machine/i386/f_log10.S: Ditto.
5086         * libc/machine/i386/f_log10f.S: Ditto.
5087         * libc/machine/i386/f_logf.S: Ditto.
5088         * libc/machine/i386/f_pow.c: Ditto.
5089         * libc/machine/i386/f_powf.c: Ditto.
5090         * libc/machine/i386/f_tan.S: Ditto.
5091         * libc/machine/i386/f_tanf.S: Ditto.
5092         * libc/machine/i386/memchr.S: Ditto.
5093         * libc/machine/i386/memcmp.S: Ditto.
5094         * libc/machine/i386/memcpy.S: Ditto.
5095         * libc/machine/i386/memmove.S: Ditto.
5096         * libc/machine/i386/memset.S: Ditto.
5097         * libc/machine/i386/strchr.S: Ditto.
5098         * libc/machine/i386/strlen.S: Ditto.
5099         * libm/machine/i386/f_atan2.S: Ditto.
5100         * libm/machine/i386/f_atan2f.S: Ditto.
5101         * libm/machine/i386/f_exp.c: Ditto.
5102         * libm/machine/i386/f_expf.c: Ditto.
5103         * libm/machine/i386/f_frexp.S: Ditto.
5104         * libm/machine/i386/f_frexpf.S: Ditto.
5105         * libm/machine/i386/f_ldexp.S: Ditto.
5106         * libm/machine/i386/f_ldexpf.S: Ditto.
5107         * libm/machine/i386/f_log.S: Ditto.
5108         * libm/machine/i386/f_log10.S: Ditto.
5109         * libm/machine/i386/f_log10f.S: Ditto.
5110         * libm/machine/i386/f_logf.S: Ditto.
5111         * libm/machine/i386/f_pow.c: Ditto.
5112         * libm/machine/i386/f_powf.c: Ditto.
5113         * libm/machine/i386/f_tan.S: Ditto.
5114         * libm/machine/i386/f_tanf.S: Ditto.
5115
5116 2002-12-20  Jeff Johnston  <jjohnstn@redhat.com>
5117
5118         * libc/stdlib/environ.c: Update license to Red Hat.
5119         * libc/machine/hppa/setjmp.S: Ditto.
5120         * libm/test/Makefile.in: Ditto.
5121
5122 2002-12-19  Jeff Johnston  <jjohnstn@redhat.com>
5123
5124         * configure.host: Remove references to go32.
5125         * libc/sys/go32/*: Removed.
5126
5127 2002-12-16  Kazu Hirata  <kazu@cs.umass.edu>
5128
5129         * libc/include/sys/config.h: Change setting of INT_MAX
5130         and UINT_MAX, to use __INT_MAX__ for __H8300__, __H8300H__,
5131         __H8300S__.  Also consolidate flag settings for these
5132         platforms.
5133
5134 2002-12-10  Joel Sherrill  <joel@OARcorp.com>
5135
5136         * libc/include/machine/setjmp.h: Make sure _JBLEN is defined
5137         for i386-rtems targets.
5138
5139 2002-12-06  Jeff Johnston  <jjohnstn@redhat.com>
5140
5141         * libc/include/stdlib.h (strtof): New prototype (from C99).
5142         (strtodf): Changed from prototype to macro which redefines
5143         to strtof.
5144         * libc/stdlib/atof.c: Change documentation to refer to strtof
5145         instead of strtodf.
5146         * libc/stdlib/atoff.c (atoff): Change to call strtof instead of
5147         strtodf.
5148         * libc/stdlib/strtod.c (strtodf): Renamed to strtof.
5149         (strtof): New function.
5150         * libm/test/convert.c (test_strtodf): Renamed to test_strtof which
5151         calls strtof.
5152
5153 2002-11-27  Christopher Faylor  <cgf@redhat.com>
5154
5155         * libc/string/memset.c (memset): Fix comment.
5156
5157 2002-11-26  Christopher Faylor  <cgf@redhat.com>
5158
5159         * libc/string/memset.c (memset): Move initialization of 'd' earlier in
5160         function.
5161
5162 2002-11-25  Christopher Faylor  <cgf@redhat.com>
5163
5164         * libc/string/memset.c (memset): Minor optimization: Use new 'd'
5165         variable, introduced below, everywhere.
5166
5167 2002-11-25  Kazu Hirata  <kazu@cs.umass.edu>
5168
5169         * libc/string/memset.c (memset): Make it safe even if
5170         sizeof (int) = 2.
5171
5172 2002-11-22  Joe Buehler  <jbuehler@hekimian.com>
5173
5174         * configure.in: Change check for libc/include in ${CC} to
5175         use an intermediate value so as to work with different shells.
5176         * configure: Regenerated.
5177         * Makefile.in: Ditto.
5178
5179 2002-11-22  Vijay L. Khuspe  <vijayk1@kpit.com>
5180
5181         * libc/sys/h8300hms/read.c: Add support for normal mode
5182         architecture.
5183
5184 2002-11-20  Ryo Tsuruta  <ryo@kitanet.ne.jp>
5185
5186         * libc/machine/h8300/setjmp.S (setjmp, longjmp): Combine common
5187         code for __H8300H__ and __H8300S__.  Also return 32-bit return code
5188         when -mint32 is used.
5189
5190 2002-11-18  Nick Clifton  <nickc@redhat.com>
5191
5192         * libc/sys/arm/crt0.S: Add NULL to end of argv array.
5193
5194 2002-11-14  Jeff Johnston  <jjohnstn@redhat.com>
5195
5196         * testsuite/lib/passfail.exp (newlib_pass_fail): Changed to
5197         only issue one pass/fail message for a compile/link/execute.
5198         * testsuite/newlib.elix/elix.exp: New file.
5199         * testsuite/newlib.elix/tmmap.c: Ditto.
5200
5201 2002-11-06  Christopher Faylor  <cgf@redhat.com>
5202
5203         * libc/stdlib/malign.c: Don't compile if MALLOC_PROVIDED.
5204         * libc/stdlib/mlock.c: Ditto.
5205         * libc/stdlib/msize.c: Ditto.
5206         * libc/stdlib/msize.c: Ditto.
5207         * libc/stdlib/mtrim.c: Ditto.
5208         * libc/stdlib/valloc.c: Ditto.
5209
5210 2002-11-12  Jeff Johnston  <jjohnstn@redhat.com>
5211
5212         * libc/stdlib/ldtoa.c (e64toe): When checking the exponent
5213         for inf/nan, make sure that the check ignores the sign bit.
5214
5215 2002-11-07  Joel Sherrill <joel@OARcorp.com>
5216
5217         * libc/sys/rtems/machine: New directory.
5218         * libc/sys/rtems/machine/limits.h, libc/sys/rtems/machine/param.h,
5219         libc/sys/rtems/sys/param.h, libc/sys/rtems/sys/syslimits.h,
5220         libc/sys/rtems/sys/utime.h: New files added to make *-rtems newlib
5221         targets more BSD like when installed without requiring files to
5222         be overwritten at install point when RTEMS itself is installed.
5223         * Makefile.am: Pick up system dependent machine .h files such as
5224         might be found on a BSD-ish system.
5225         * Makefile.in: Regenerate.
5226         * libc/include/machine/types.h: When on an RTEMS target, define a
5227         few BSD flavor types. 
5228
5229 2002-11-06  Sergey Okhapkin  <sos@prospect.com.ru>
5230
5231         * include/utmp.h: Define WTMP_FILE.  Define and use UT_IDLEN.
5232
5233 2002-11-06  Kazuhiro Fujieda  <fujieda@jaist.ac.jp>
5234
5235         * libc/include/wchar.h: Use _{BEGIN,END}_STD_C instead of extern "C".
5236         * libc/include/wctype.h: Ditto.
5237
5238 2002-11-04  Jeff Johnston  <jjohnstn@redhat.com>
5239
5240         * libc/include/wchar.h: Add extern "C" specifier if C++.
5241         * libc/include/wctype.h: Ditto.
5242
5243 2002-10-18  Jeff Johnston  <jjohnstn@redhat.com>
5244
5245         * testsuite/newlib.wctype/tiswctype.c: New test case.
5246         * testsuite/newlib.wctype/twctrans.c: Ditto.
5247
5248 2002-10-18  Jeff Johnston  <jjohnstn@redhat.com>
5249
5250         * libc/sys/linux/machine/i386/include/endian.h: New file.
5251         * libc/sys/linux/machine/i386/include/param.h: Ditto.
5252
5253 2002-10-18  Jeff Johnston  <jjohnstn@redhat.com>
5254
5255         * libm/machine/i386/aclocal.m4: Regenerated.
5256         * libm/machine/i386/configure: Ditto.
5257
5258 2002-10-18  Jeff Johnston  <jjohnstn@redhat.com>
5259
5260         * testsuite/include/check.h: New header file to use with
5261         test cases.
5262         * testsuite/lib/newlib.exp: Add testsuite/include directory
5263         to list of header files to use.
5264         * testsuite/newlib.wctype/twctype.c: New test case for iswctype fns.
5265         * testsuite/newlib.wctype/wctype.exp: New file.
5266
5267 2002-10-11  Graham Stott  <graham.stott@btinternet.com>
5268             Richard Sandiford  <rsandifo@redhat.com>
5269
5270         * libc/include/sys/config.h (SIZE_T_SMALLER_THAN_LONG): Undefine.
5271         * libc/stdlib/mallocr.c (long_sub_size_t): Define in a way that
5272         doesn't require the SIZE_T_SMALLER_THAN_LONG macro.
5273
5274 2002-10-07      Joel Sherrill <joel@OARcorp.com>
5275
5276         * libc/sys/rtems/crt0.c: Add even more symbols so gcc() can link
5277         dummy programs.
5278
5279 2002-10-07      Joel Sherrill <joel@OARcorp.com>
5280
5281         * libc/include/pthread.h: Define PTHREAD_CANCELED.
5282
5283 2002-10-07      Joel Sherrill <joel@OARcorp.com>
5284
5285         * libc/machine/hppa/DEFS.h, libc/machine/hppa/pcc_prefix.s,
5286         libc/machine/hppa/setjmp.S, libc/machine/hppa/DEFS.h: Make this
5287         compile with current GNU tools.
5288
5289 2002-10-07  Jeff Johnston  <jjohnstn@redhat.com>
5290
5291         * Makefile.am: Add EXTRA_DIRS to allow future dependencies on
5292         the build library.
5293         * configure.in: Ditto.
5294         * Makefile.in: Regenerated.
5295         * configure: Ditto.
5296         * libc/sys/linux/Makefile.am: Add EXTRA_SUBDIRS and EXTRA_SUBLIBS
5297         for specifying configured libraries/directories.
5298         * libc/sys/linux/configure.in: Ditto.
5299         * libc/sys/linux/Makefile.in: Regenerated.
5300         * libc/sys/linux/configure: Ditto.
5301
5302 2002-10-03  Jeff Johnston  <jjohnstn@redhat.com>
5303
5304         * libc/include/reent.h: Update documentation at start of file.
5305
5306 2002-09-27  Jim Wilson  <wilson@redhat.com>
5307
5308         * libc/sys/sysnecv850/crt0.S (start): Delete v850 code for initializing
5309         the ctbp register.
5310
5311 2002-09-27  Jeff Johnston  <jjohnstn@redhat.com>
5312
5313         * libc/ctype/jp2uc.c: Change to use multiple arrays in jp2uc.h.
5314         Also convert to EUCJP before using arrays.  For values not in
5315         the conversion arrays, return WEOF.
5316         * libc/ctype/jp2uc.h: Change from one array to a number of
5317         arrays to account for the fact that the originating table
5318         is not contiguous for the input values since some are invalid.
5319
5320 2002-09-24  Jeff Johnston  <jjohnstn@redhat.com>
5321
5322         * libc/time/ctime.c: Fix prototype documentation.
5323
5324 2002-09-24  Corinna Vinschen  <corinna@vinschen.de>
5325
5326         * libc/include/sys/errno.h: Add EOVERFLOW.
5327
5328 2002-09-20  Jeff Johnston  <jjohnstn@redhat.com>
5329
5330         * libc/include/wctype.h: New file.
5331
5332 2002-09-20  Jeff Johnston  <jjohnstn@redhat.com>
5333
5334         * libc/ctype/Makefile.am: Add new files.
5335         * libc/ctype/Makefile.in: Regenerated.
5336         * libc/ctype/ctype.tex: Add new iswxxxx, towxxxx, wctype,
5337         and wctrans functions to documentation index.
5338         * libc/ctype/iswalnum.c: New file.
5339         * libc/ctype/iswalpha.c: Ditto.
5340         * libc/ctype/iswblank.c: Ditto.
5341         * libc/ctype/iswcntrl.c: Ditto.
5342         * libc/ctype/iswctype.c: Ditto.
5343         * libc/ctype/iswdigit.c: Ditto.
5344         * libc/ctype/iswgraph.c: Ditto.
5345         * libc/ctype/iswlower.c: Ditto.
5346         * libc/ctype/iswprint.c: Ditto.
5347         * libc/ctype/iswpunct.c: Ditto.
5348         * libc/ctype/iswspace.c: Ditto.
5349         * libc/ctype/iswupper.c: Ditto.
5350         * libc/ctype/iswxdigit.c: Ditto.
5351         * libc/ctype/jp2uc.c: Ditto.
5352         * libc/ctype/jp2uc.h: Ditto.
5353         * libc/ctype/local.h: Ditto.
5354         * libc/ctype/towctrans.c: Ditto.
5355         * libc/ctype/towlower.c: Ditto.
5356         * libc/ctype/towupper.c: Ditto.
5357         * libc/ctype/utf8alpha.h: Ditto.
5358         * libc/ctype/utf8print.h: Ditto.
5359         * libc/ctype/utf8punct.h: Ditto.
5360         * libc/ctype/wctrans.c: Ditto.
5361         * libc/ctype/wctype.c: Ditto.
5362         * libc/locale/locale.c (__lc_ctype): New external array to
5363         replace static lc_ctype array.
5364         * libc/stdlib/mbtowc_r.c: Use __lc_ctype to check current lc_ctype
5365         rather than reentrancy structure's _current_locale field.
5366         * libc/stdlib/wctomb_r.c: Ditto.
5367
5368 2002-09-20  Jeff Johnston  <jjohnstn@redhat.com>
5369
5370         * configure.host: Minor comment and formatting changes.
5371         * libc/Makefile.am: Add libc_la_DEPENDENCIES.
5372         * libc/Makefile.in: Regenerated.
5373         * libc/include/sys/config.h: Minor format change.
5374
5375 2002-09-19  Jeff Johnston  <jjohnstn@redhat.com>
5376
5377         * libc/syscalls/sysfcntl.c (fcntl): Fix typo in preprocessor
5378         statement comment.
5379
5380 2002-09-19  Jeff Johnston  <jjohnstn@redhat.com>
5381
5382         * libc/posix/opendir.c (opendir): Change code to check
5383         for HAVE_FCNTL before calling fcntl.
5384         * libc/search/hash.c (hash_open): Ditto.
5385         * libc/search/hash_page.c (open_tmp): Ditto.
5386         * libc/reent/Makefile.am: Add fcntlr.c.
5387         * libc/reent/Makefile.in: Regenerated.
5388         * libc/reent/fcntlr.c: New file.
5389         * libc/stdio/fdopen.c (_fdopen_r): Change to call _fcntl_r
5390         instead of _fcntl when HAVE_FCNTL flag is set.
5391         * libc/syscalls/sysfcntl.c (fcntl): Check for HAVE_FCNTL flag
5392         to see if _fcntl or _fcntl_r should be called.  If flag is not
5393         set, default to ENOSYS stub.
5394
5395 2002-09-16  Jeff Johnston  <jjohnstn@redhat.com>
5396
5397         * libc/include/wchar.h (mbstate_t): Change protective flag to
5398         be _MBSTATE_T.
5399         * libc/include/sys/_types.h (_mbstate_t): Remove protective flag.
5400         [__CYGWIN__]: Remove special code that defines mbstate_t and WEOF
5401         for Cygwin.
5402         * libc/sys/linux/sys/_types.h (_mbstate_t): Remove protective flag.
5403
5404 2002-09-11  Jeff Johnston  <jjohnstn@redhat.com>
5405
5406         * acinclude.m4 (enable-newlib-mb): Change check to
5407         default newlib_mb variable to empty string rather than "no".
5408         * configure.host: Remove hard-coding of -DMB_CAPABLE for
5409         x86-linux and Cygwin.  Add code to check for newlib_mb
5410         being unset in which case set to "yes" for x86-linux and
5411         Cygwin.  Change check for newlib_mb being "yes" to allow
5412         for an empty string.
5413         * configure.in (_MB_LEN_MAX): New AC_DEFINE.
5414         * newlib.hin (_MB_LEN_MAX): New define to configure.
5415         * aclocal.m4: Regenerated.
5416         * configure: Ditto.
5417         * libc/include/limits.h: New file.
5418         * libc/sys/linux/include/limits.h: Ditto.
5419         * doc/aclocal.m4 doc/configure libc/aclocal.m4
5420           libc/configure libc/machine/aclocal.m4
5421           libc/machine/configure libc/machine/a29k/aclocal.m4
5422           libc/machine/a29k/configure libc/machine/arm/aclocal.m4
5423           libc/machine/arm/configure libc/machine/d10v/aclocal.m4
5424           libc/machine/d10v/configure libc/machine/d30v/aclocal.m4
5425           libc/machine/d30v/configure libc/machine/fr30/aclocal.m4
5426           libc/machine/fr30/configure libc/machine/frv/aclocal.m4
5427           libc/machine/frv/configure libc/machine/h8300/aclocal.m4
5428           libc/machine/h8300/configure libc/machine/h8500/aclocal.m4
5429           libc/machine/h8500/configure libc/machine/hppa/aclocal.m4
5430           libc/machine/hppa/configure libc/machine/i386/aclocal.m4
5431           libc/machine/i386/configure libc/machine/i960/aclocal.m4
5432           libc/machine/i960/configure libc/machine/m32r/aclocal.m4
5433           libc/machine/m32r/configure libc/machine/m68hc11/aclocal.m4
5434           libc/machine/m68hc11/configure libc/machine/m68k/aclocal.m4
5435           libc/machine/m68k/configure libc/machine/m88k/aclocal.m4
5436           libc/machine/m88k/configure libc/machine/mips/aclocal.m4
5437           libc/machine/mips/configure libc/machine/mn10200/aclocal.m4
5438           libc/machine/mn10200/configure libc/machine/mn10300/aclocal.m4
5439           libc/machine/mn10300/configure libc/machine/necv70/aclocal.m4
5440           libc/machine/necv70/configure libc/machine/powerpc/aclocal.m4
5441           libc/machine/powerpc/configure libc/machine/sh/aclocal.m4
5442           libc/machine/sh/configure libc/machine/sparc/aclocal.m4
5443           libc/machine/sparc/configure libc/machine/tic80/aclocal.m4
5444           libc/machine/tic80/configure libc/machine/v850/aclocal.m4
5445           libc/machine/v850/configure libc/machine/w65/aclocal.m4
5446           libc/machine/w65/configure libc/machine/xscale/aclocal.m4
5447           libc/machine/xscale/configure
5448           libc/machine/xstormy16/aclocal.m4
5449           libc/machine/xstormy16/configure libc/machine/z8k/aclocal.m4
5450           libc/machine/z8k/configure libc/sys/aclocal.m4
5451           libc/sys/configure libc/sys/a29khif/aclocal.m4
5452           libc/sys/a29khif/configure libc/sys/arc/aclocal.m4
5453           libc/sys/arc/configure libc/sys/arm/aclocal.m4
5454           libc/sys/arm/configure libc/sys/cygwin/aclocal.m4
5455           libc/sys/cygwin/configure libc/sys/d10v/aclocal.m4
5456           libc/sys/d10v/configure libc/sys/decstation/aclocal.m4
5457           libc/sys/decstation/configure libc/sys/go32/aclocal.m4
5458           libc/sys/go32/configure libc/sys/h8300hms/aclocal.m4
5459           libc/sys/h8300hms/configure libc/sys/h8500hms/aclocal.m4
5460           libc/sys/h8500hms/configure libc/sys/idt/aclocal.m4
5461           libc/sys/idt/configure libc/sys/linux/aclocal.m4
5462           libc/sys/linux/configure
5463           libc/sys/linux/machine/aclocal.m4
5464           libc/sys/linux/machine/configure
5465           libc/sys/linux/machine/i386/aclocal.m4
5466           libc/sys/linux/machine/i386/configure
5467           libc/sys/m88kbug/aclocal.m4 libc/sys/m88kbug/configure
5468           libc/sys/mmixware/aclocal.m4 libc/sys/mmixware/configure
5469           libc/sys/netware/aclocal.m4 libc/sys/netware/configure
5470           libc/sys/rtems/aclocal.m4 libc/sys/rtems/configure
5471           libc/sys/sh/aclocal.m4 libc/sys/sh/configure
5472           libc/sys/sparc64/aclocal.m4 libc/sys/sparc64/configure
5473           libc/sys/sun4/aclocal.m4 libc/sys/sun4/configure
5474           libc/sys/sysmec/aclocal.m4 libc/sys/sysmec/configure
5475           libc/sys/sysnec810/aclocal.m4 libc/sys/sysnec810/configure
5476           libc/sys/sysnecv850/aclocal.m4 libc/sys/sysnecv850/configure
5477           libc/sys/sysvi386/aclocal.m4 libc/sys/sysvi386/configure
5478           libc/sys/sysvnecv70/aclocal.m4 libc/sys/sysvnecv70/configure
5479           libc/sys/tic80/aclocal.m4 libc/sys/tic80/configure
5480           libc/sys/w65/aclocal.m4 libc/sys/w65/configure
5481           libc/sys/z8ksim/aclocal.m4 libc/sys/z8ksim/configure
5482           libm/aclocal.m4 libm/configure: Regenerated.
5483
5484 2002-09-09  Jeff Johnston  <jjohnstn@redhat.com>
5485
5486         * libc/sys/linux/machine/i386/crt0.c (_start): Remove
5487         code that clears the .bss section.
5488
5489 2002-09-09  Jeff Johnston  <jjohnstn@redhat.com>
5490
5491         * libc/include/sys/_types.h (_mbstate_t): Changed to use
5492         unsigned char internally.
5493         * libc/sys/linux/sys/_types.h: Ditto.
5494         * libc/include/sys/reent.h
5495         * libc/stdlib/mblen.c (mblen): Use function-specific state
5496         value from default reentrancy structure.
5497         * libc/stdlib/mblen_r.c (_mblen_r):  If return code from
5498         _mbtowc_r is less than 0, reset state __count value and
5499         return -1.
5500         * libc/stdlib/mbrlen.c (mbrlen): If the input state pointer
5501         is NULL, use the function-specific pointer provided in the
5502         default reentrancy structure.
5503         * libc/stdlib/mbrtowc.c: Add reentrant form of function.
5504         If input state pointer is NULL, use function-specific area
5505         provided in reentrancy structure.
5506         * libc/stdlib/mbsrtowcs.c: Ditto.
5507         * libc/stdlib/wcrtomb.c: Ditto.
5508         * libc/stdlib/wcsrtombs.c: Ditto.
5509         * libc/stdlib/mbstowcs.c: Reformat.
5510         * libc/stdlib/wcstombs.c: Ditto.
5511         * libc/stdlib/mbstowcs_r.c (_mbstowcs_r): If an error occurs,
5512         reset the state's __count value and return -1.
5513         * libc/stdlib/mbtowc.c: Ditto.
5514         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Add restartable functionality.
5515         If number of bytes is used up before completing a valid multibyte
5516         character, return -2 and save the state.
5517         * libc/stdlib/wctomb_r.c (_wctomb_r): Define __state as __count
5518         and change some __count references to __state for clarity.
5519
5520 2002-09-06  Jeff Johnston  <jjohnstn@redhat.com>
5521
5522         * libc/include/sys/config.h (MB_LEN_MAX): Removed as this
5523         is defined by <limits.h>.
5524
5525 2002-09-05  Kazuhiro Fujieda  <fujieda@jaist.ac.jp>
5526
5527         * libc/include/wchar.h (WCHAR_MAX): Only define if not already
5528         defined.
5529
5530 2002-09-04  Kazuhiro Fujieda  <fujieda@jaist.ac.jp>
5531
5532         * libc/include/sys/config.h: Define accordingly __WCHAR_MAX__.
5533         * libc/include/wchar.h: Define WCHAR_MIN as 0 and WCHAR_MAX as
5534         __WCHAR_MAX__ or 0x7fffffffu.
5535         * libc/string/wcscmp.c: Delete wrong and unnecessary type cast.
5536         * libc/string/wcsncmp.c: Ditto.
5537
5538 2002-09-03  Jeff Johnston  <jjohnstn@redhat.com>
5539
5540         * libc/string/wcschr.c: Add include of <stddef.h>.
5541         * libc/string/wcspbrk.c: Ditto.
5542         * libc/string/wcsrchr.c: Ditto.
5543         * libc/string/wcsstr.c: Ditto.
5544
5545 2002-09-03  Jeff Johnston  <jjohnstn@redhat.com>
5546
5547         * libc/include/sys/_types.h (_flock_t): Added.
5548         * libc/include/sys/lock.h (__lock_try_acquire): New interface.
5549         (__lock_try_acquire_recursive): Ditto.
5550         * libc/include/sys/reent.h (__sFILE, __sFILE64): Add new
5551         _lock field.
5552         * libc/stdio/findfp.c (std)[!__SINGLE_THREAD__]: Initialize _lock
5553         field.
5554         * libc/stdio/fopen.c (_fopen_r)[!__SINGLE_THREAD__]: Ditto.
5555         * libc/stdio64/fopen64.c (_fopen64_r)[!__SINGLE_THREAD__]: Ditto.
5556         * libc/sys/linux/include/time.h (struct timespec): Moved from
5557         <sys/types.h> and added check for __need_timespec flag so type
5558         can be defined by itself.
5559         * libc/sys/linux/sys/_types.h (_flock_t): New type.
5560         * libc/sys/linux/sys/types.h (struct timespec): Moved to
5561         <time.h>.
5562
5563 2002-08-29  Thomas Fitzsimmons  <fitzsim@redhat.com>
5564
5565         * libc/sys/linux/argp: New directory.
5566         * libc/sys/linux/getopt.c: New file.
5567         * libc/sys/linux/getopt1.c: New file.
5568         * libc/sys/linux/getoptlong.c: Remove file.
5569         * libc/sys/linux/include/argp.h: New file.
5570         * libc/sys/linux/Makefile.am: Define argp_dir and ARGP_LIB,
5571         based on ELIX level.
5572         (SUBDIRS): Add argp_dir.
5573         (SUBLIBS): Add ARGP_LIB.
5574         (ELIX_2_OBJS): Add getopt.$(oext), getopt1.$(oext), remove
5575         getopt_long.$(oext).
5576         * libc/sys/linux/configure.in (AC_OUTPUT): Add argp/Makefile.
5577
5578 2002-08-29  Jeff Johnston  <jjohnstn@redhat.com>
5579
5580         * libc/libc.texinfo: Add node reference to wide-character strings.
5581         * libc/string/wcstrings.tex: New file.
5582         * libc/string/strtok_r.c: Remove outdated advertising clause.
5583         * libc/string/Makefile.am (doc): Add wide-character string
5584         chapter to documentation.
5585         * libc/string/Makefile.in: Regenerated.
5586
5587 2002-08-29  Kazuhiro Fujieda  <fujieda@jaist.ac.jp>
5588
5589         * libc/include/wchar.h: Define NULL. Define WEOF more general
5590         way. Declare functions in newlib manner.
5591         * libc/stdlib/Makefile.am: Delete wmem*.c
5592         * libc/stdlib/Makefile.in: Regenerated.
5593         * libc/stdlib/wmemchr.c: Delete.
5594         * libc/stdlib/wmemcmp.c: Ditto.
5595         * libc/stdlib/wmemcpy.c: Ditto.
5596         * libc/stdlib/wmemmove.c: Ditto.
5597         * libc/stdlib/wmemset.c: Ditto.
5598         * libc/string/Makefile.am: Add wmem*.c and wcs*.c.
5599         * libc/string/Makefile.in: Regenerated.
5600         * libc/string/wcscat.c: New file derived from the NetBSD C Library.
5601         * libc/string/wcschr.c: Ditto.
5602         * libc/string/wcscmp.c: Ditto.
5603         * libc/string/wcscpy.c: Ditto.
5604         * libc/string/wcscspn.c: Ditto.
5605         * libc/string/wcslcat.c: Ditto.
5606         * libc/string/wcslcpy.c: Ditto.
5607         * libc/string/wcslen.c: Ditto.
5608         * libc/string/wcsncat.c: Ditto.
5609         * libc/string/wcsncmp.c: Ditto.
5610         * libc/string/wcsncpy.c: Ditto.
5611         * libc/string/wcspbrk.c: Ditto.
5612         * libc/string/wcsrchr.c: Ditto.
5613         * libc/string/wcsspn.c: Ditto.
5614         * libc/string/wcsstr.c: Ditto.
5615         * libc/string/wmemchr.c: Ditto.
5616         * libc/string/wmemcmp.c: Ditto.
5617         * libc/string/wmemcpy.c: Ditto.
5618         * libc/string/wmemmove.c: Ditto.
5619         * libc/string/wmemset.c: Ditto.
5620
5621 2002-08-29  Jeff Johnston  <jjohnstn@redhat.com>
5622
5623         * libc/locale/locale.c (_setlocale_r)[MB_CAPABLE]: Fix so
5624         default locale "" is accepted for LC_CTYPE or LC_MESSAGES
5625         and is treated as if "C" was specified.
5626
5627 2002-08-28  Jeff Johnston  <jjohnstn@redhat.com>
5628
5629         * Makefile.am (install-data-local): Move install of build
5630         newlib.h after installing headers in libc/include so as to
5631         overwrite default newlib.h.
5632         * Makefile.in: Regenerated.
5633
5634 2002-08-28  Jeff Johnston  <jjohnstn@redhat.com>
5635
5636         * libc/include/newlib.h: New file for tools that use newlib
5637         headers but don't build newlib first (e.g. gcc).
5638
5639 2002-08-28  Jeff Johnston  <jjohnstn@redhat.com>
5640
5641         * libc/stdlib/wmemchr.c: Explicitly include <_ansi.h>.
5642         * libc/stdlib/wmemcmp.c: Ditto.
5643         * libc/stdlib/wmemcpy.c: Ditto.
5644         * libc/stdlib/wmemmove.c: Ditto.
5645         * libc/stdlib/wmemset.c: Ditto.
5646
5647 2002-08-27  Egor Duda  <deo@logos-m.ru>
5648
5649         * libc/stdlib/wmemchr.c: New file.
5650         * libc/stdlib/wmemcmp.c: Ditto.
5651         * libc/stdlib/wmemcpy.c: Ditto.
5652         * libc/stdlib/wmemmove.c: Ditto.
5653         * libc/stdlib/wmemset.c: Ditto.
5654         * libc/stdlib/Makefile.am (GENERAL_SOURCES): Add new files.
5655         * configure.host: Default -DMB_CAPABLE for cygwin.
5656         * libc/include/wchar.h: Declare wmemchr(), wmemcmp(), wmemcpy(),
5657         wmemmove() and wmemset().  Add include of <_ansi.h>.
5658         * libc/stdlib/Makefile.in: Regenerate.
5659
5660 2002-08-27  Jeff Johnston  <jjohnstn@redhat.com>
5661
5662         * configure.host: Remove _ELIX_LEVEL flag setting.
5663         * Makefile.am(stmp-targ-include): Copy newlib.h to targ-include.
5664         (install-data-local): Install newlib.h.
5665         * Makefile.in: Regenerated.
5666         * aclocal.m4: Ditto.
5667         * configure: Ditto.
5668         * configure.in: Add AM_CONFIG_HEADER to generate newlib.h based on 
5669         newlib.hin.  Add AC_DEFINE_UNQUOTED entries for _ELIX_LEVEL
5670         and _NEWLIB_VERSION to fill in newlib.h header file entries.
5671         In AC_OUTPUT statement, unset ac_file so multilib support does
5672         not use last ac_file temporary used in newlib.h configuration.
5673         * libc/include/_ansi.h: Include <newlib.h>.
5674         * newlib.hin: New template file for newlib.h.
5675         * stamp-h.in: New file.
5676
5677 2002-08-26  Wu Yongwei <adah@netstd.com>
5678
5679         * time.h (timezonevar): Change "#if" to "#ifdef".
5680
5681 2002-08-26  Jeff Johnston  <jjohnstn@redhat.com>
5682
5683         * Makefile.am(LIBC_OBJECTLISTS): Add STDIO64_OBJECTLIST.
5684         * Makefile.in: Regenerated.
5685         * acinclude.m4: Add support for --enable-newlib-elix-level option.
5686         * aclocal.m4: Regenerated.
5687         * configure: Ditto.
5688         * configure.host: Add code to define _ELIX_LEVEL if
5689         --enable-newlib-elix-level option is used.
5690         * configure.in: 
5691         * libc/aclocal.m4: Regenerated.
5692         * libc/configure: Ditto.
5693         * libc/argz/Makefile.am: Add EL/IX level checking.
5694         * libc/argz/Makefile.in: Regenerated.
5695         * libc/argz/dummy.c: New file.
5696         * libc/ctype/Makefile.am: Add EL/IX level checking.
5697         * libc/ctype/Makefile.in: Regenerated.
5698         * libc/locale/Makefile.am: Add EL/IX level checking.
5699         * libc/locale/Makefile.in: Regenerated.
5700         * libc/posix/Makefile.am: Add EL/IX level checking.
5701         * libc/posix/Makefile.in: Regenerated.
5702         * libc/posix/telldir.c: Add EL/IX level checking.
5703         * libc/reent/Makefile.am: Ditto.
5704         * libc/reent/fstat64r.c: Ditto.
5705         * libc/reent/lseek64r.c: Ditto.
5706         * libc/reent/open64r.c: Ditto.
5707         * libc/reent/Makefile.in: Regenerated.
5708         * libc/search/Makefile.am: Add EL/IX level checking.
5709         * libc/search/Makefile.in: Regenerated.
5710         * libc/stdio/Makefile.am: Add EL/IX level checking.
5711         * libc/stdio/Makefile.in: Regenerated.
5712         * libc/stdio64/Makefile.am: Add EL/IX level checking.
5713         * libc/stdio64/Makefile.in: Regenerated.
5714         * libc/stdio64/dummy.c: New file.
5715         * libc/stdio64/fgetpos64.c: Fix so _LARGE64_FILES macro is checked
5716         after first include.
5717         * libc/stdio64/fopen64.c: Ditto.
5718         * libc/stdio64/freopen64.c: Ditto.
5719         * libc/stdio64/fseeko64.c: Ditto.
5720         * libc/stdio64/fsetpos64.c: Ditto.
5721         * libc/stdio64/ftello64.c: Ditto.
5722         * libc/stdio64/tmpfile64.c: Ditto.
5723         * libc/stdlib/Makefile.am: Add EL/IX level checking.
5724         * libc/stdlib/Makefile.in: Regenerated.
5725         * libc/stdlib/mstats.c: Add EL/IX level checking.
5726         * libc/string/Makefile.am: Ditto.
5727         * libc/string/Makefile.in: Regenerated.
5728         * libc/sys/linux/Makefile.am: Add EL/IX level checking.
5729         * libc/sys/linux/Makefile.in: Regenerated.
5730         * libc/sys/linux/aclocal.m4: Ditto.
5731         * libc/sys/linux/configure: Ditto.
5732         * libc/sys/linux/aio.c: Add EL/IX level checking.
5733         * libc/sys/linux/ftok.c: Ditto.
5734         * libc/sys/linux/getdate.c: Ditto.
5735         * libc/sys/linux/ids.c: Ditto.
5736         * libc/sys/linux/inode.c: Ditto.
5737         * libc/sys/linux/io.c: Ditto.
5738         * libc/sys/linux/process.c: Ditto.
5739         * libc/sys/linux/resource.c: Ditto.
5740         * libc/sys/linux/sched.c: Ditto.
5741         * libc/sys/linux/sig.c: Ditto.
5742         * libc/sys/linux/termios.c: Ditto.
5743         * libc/sys/linux/wait.c: Ditto plus add __waitpid and
5744         __libc___waitpid weak aliases.
5745         * libc/sys/linux/machine/i386/syscall.h: Add new _base macros
5746         that generate the code for a syscall, but do not create a
5747         weak alias.
5748         * libc/syscalls/Makefile.am: Add EL/IX level checking.
5749         * libc/syscalls/Makefile.in: Regenerated.
5750         * libc/time/tzset_r.c: Change to replace strdup with equivalent
5751         functionality.
5752         * libc/unix/Makefile.am: Add EL/IX level checking.
5753         * libc/unix/Makefile.in: Regenerated.
5754
5755 2002-08-26  Christopher Faylor  <cgf@redhat.com>
5756
5757         * libc/include/malloc.h: On cygwin, define malloc _r functions as
5758         wrapper macros to standard malloc functions.
5759         * libc/include/stdlib.h: Ditto.
5760         * configure.host: Always define MALLOC_PROVIDED on cygwin.
5761
5762 2002-08-22  Thomas Fitzsimmons  <fitzsim@redhat.com>
5763
5764         * libc/include/langinfo.h: New file.
5765         * libc/include/wchar.h: Likewise.
5766         * libc/include/sys/syslimits.h: Likewise.
5767         * libc/locale/fix_grouping.c: Likewise.
5768         * libc/locale/ldpart.c: Likewise.
5769         * libc/locale/ldpart.h: Likewise.
5770         * libc/locale/lmessages.c: Likewise.
5771         * libc/locale/lmessages.h: Likewise.
5772         * libc/locale/lmonetary.c: Likewise.
5773         * libc/locale/lmonetary.h: Likewise.
5774         * libc/locale/lnumeric.c: Likewise.
5775         * libc/locale/lnumeric.h: Likewise.
5776         * libc/locale/nl_langinfo.3: Likewise.
5777         * libc/locale/nl_langinfo.c: Likewise.
5778         * libc/locale/timelocal.c: Likewise.
5779         * libc/locale/timelocal.h: Likewise.
5780         * libc/stdlib/btowc.c: Likewise.
5781         * libc/stdlib/mbrlen.c: Likewise.
5782         * libc/stdlib/mbrtowc.c: Likewise.
5783         * libc/stdlib/mbsinit.c: Likewise.
5784         * libc/stdlib/mbsrtowcs.c: Likewise.
5785         * libc/stdlib/wcrtomb.c: Likewise.
5786         * libc/stdlib/wcsrtombs.c: Likewise.
5787         * libc/stdlib/wctob.c: Likewise.
5788         * libc/sys/linux/prof-freq.c: Likewise.
5789         * libc/sys/linux/profile.c: Likewise.
5790         * libc/sys/linux/machine/i386/dl-procinfo.c: Likewise.
5791         * libc/sys/linux/machine/i386/dl-procinfo.h: Likewise.
5792         * libc/include/stdlib.h: Change re-entrant functions to take
5793         mbstate_t pointers.
5794         * libc/include/sys/_types.h: Define _mbstate_t.
5795         * libc/include/sys/config.h (MB_LEN_MAX): New macro.
5796         * libc/include/sys/errno.h (EILSEQ): New error code.
5797         * libc/include/sys/reent.h: Include wchar.h.  Change reentrant
5798         structure to use mbstate_t.
5799         * libc/locale/Makefile.am (LIB_SOURCES): Add new files.
5800         * libc/machine/powerpc/vfprintf.c: Use mbstate_t.
5801         * libc/machine/powerpc/vfscanf.c: Likewise.
5802         * libc/stdio/getdelim.c: Reallocate buffer only when necessary.
5803         * libc/stdio/vfprintf.c: Likewise.
5804         * libc/stdio/vfscanf.c: Likewise.
5805         * libc/stdlib/Makefile.am (LIB_SOURCES): Add new files.
5806         * libc/stdlib/mblen.c: Use mbstate_t.
5807         * libc/stdlib/mblen_r.c: Likewise.
5808         * libc/stdlib/mbstowcs.c: Likewise.
5809         * libc/stdlib/mbstowcs_r.c: Likewise.
5810         * libc/stdlib/mbtowc.c: Likewise.
5811         * libc/stdlib/mbtowc_r.c: Likewise.
5812         * libc/stdlib/wcstombs.c: Likewise.
5813         * libc/stdlib/wcstombs_r.c: Likewise.
5814         * libc/stdlib/wctomb_r.c: Likewise.
5815         * libc/sys/linux/Makefile.am (LIB_SOURCES): Add prof-freq.c and
5816         profile.c.
5817         * libc/sys/linux/machine/i386/Makefile.am (LIB_SOURCES): Add
5818         dl-procinfo.c.
5819         * libc/sys/linux/sys/errno.h (EILSEQ): New error code.
5820         * libc/sys/linux/sys/types.h (off_t): Define type.
5821         * testsuite/newlib.locale/UTF-8.c: Change locale name from UTF-8
5822         to C-UTF-8.
5823         * testsuite/newlib.locale/UTF-8.exp: Likewise.
5824
5825 2002-08-20  Casper S. Hornstrup  <chorns@users.sourceforge.net>
5826
5827         * libc/stdlib/mallocr.c: #include windows.h on Win32.
5828           (AlignPage): Continue macro on next line.
5829
5830 2002-08-19  Jeff Johnston  <jjohnstn@redhat.com>
5831
5832         * libc/sys/linux/include/pthread.h: New file.
5833
5834 2002-08-19  Jeff Johnston  <jjohnstn@redhat.com>
5835
5836         * libc/include/sys/types.h: Support __need_inttypes macro
5837         that only sets the __intxx and __uintxx types.  
5838         * libc/machine/powerpc/Makefile.am: Add stdlib to include directories
5839         to get mprec.h.
5840         * libc/machine/powerpc/Makefile.in: Regenerated.
5841         * libc/machine/powerpc/vfprintf.c: Fix state variable type.
5842         * libc/machine/powerpc/vfscanf.c: Fix state variable type.  Remove
5843         redundant fixed-point conversion prototypes.
5844         * libc/machine/powerpc/machine/stdlib.h[__SPE__]: Include <sys/types.h>
5845         after setting __need_inttypes.
5846
5847 2002-08-18  Christopher Faylor  <cgf@redhat.com>
5848
5849         * libc/include/sys/unistd.h: Add getsid declaration for cygwin.
5850
5851 2002-08-17  Jeff Johnston  <jjohnstn@redhat.com>
5852
5853         * libc/include/sys/config.h[__PPC__][__SPE__]: Set
5854         _LONG_DOUBLE to double.
5855
5856 2002-08-17  Jeff Johnston  <jjohnstn@redhat.com>
5857
5858         * configure.host: Add powerpc*-*-eabispe* configuration.
5859         * libc/machine/powerpc/atosfix16.c: New fixed-point conversion file.
5860         * libc/machine/powerpc/atosfix32.c: Ditto.
5861         * libc/machine/powerpc/atosfix64.c: Ditto.
5862         * libc/machine/powerpc/atoufix16.c: Ditto.
5863         * libc/machine/powerpc/atoufix32.c: Ditto.
5864         * libc/machine/powerpc/atoufix64.c: Ditto.
5865         * libc/machine/powerpc/fix64.h: Ditto.
5866         * libc/machine/powerpc/simdldtoa.c: Ditto.
5867         * libc/machine/powerpc/strtosfix16.c: Ditto.
5868         * libc/machine/powerpc/strtosfix32.c: Ditto.
5869         * libc/machine/powerpc/strtosfix64.c: Ditto.
5870         * libc/machine/powerpc/strtoufix16.c: Ditto.
5871         * libc/machine/powerpc/strtoufix32.c: Ditto.
5872         * libc/machine/powerpc/strtoufix64.c: Ditto.
5873         * libc/machine/powerpc/ufix64toa.c: Ditto.
5874         * libc/machine/powerpc/configure.in: Add check for
5875         powerpc*-eabispe and add fixed-point conversion functions.
5876         * libc/machine/powerpc/configure: Regenerated.
5877         * libc/machine/powerpc/vfprintf.c[__SPE__]: Add support for
5878         %r and %R format specifiers which handle fixed-point data.
5879         * libc/machine/powerpc/vfscanf.c[__SPE__]: Ditto.
5880         * libc/machine/powerpc/machine/stdlib.h[__SPE__]: Add fixed-point
5881         function prototypes.
5882
5883 2002-08-17  Jeff Johnston  <jjohnstn@redhat.com>
5884
5885         *  Makefile.am: Move cmath stuff into libc/sys/linux.
5886         *  Makefile.in: Regenerated.
5887         *  configure.host: Default -DMB_CAPABLE for x86-linux.
5888         *  libc/include/reent.h: Define _sbrk to take signed int argument.
5889         *  libc/include/sys/unistd.h: Ditto for _sbrk_r and sbrk.
5890         *  libc/locale/locale.c[MB_CAPABLE]: Add LC_MESSAGES support and 
5891         make locale name checking more efficient.  Also allow "C-ISO-8859-1" 
5892         locale for LC_CTYPE and LC_MESSAGES.
5893         *  libc/reent/sbrkr.c: Change prototype to take ptrdiff_t.
5894         *  libc/sys/linux/brk.c: Change sbrk prototype.
5895         *  libc/sys/linux/include/time.h: Remove Cygwin stuff and
5896         include <sys/features.h>.
5897         (CLOCK_THREAD_CPUTIME): Renamed to CLOCK_THREAD_CPUTIME_ID.
5898         (CLOCK_PROCESS_CPUTIME): Renamed to CLOCK_PROCESS_CPUTIME_ID.
5899         *  libc/sys/linux/sys/cdefs.h: Replace with glibc sys/cdefs.h
5900         with a few local additions.
5901         *  libc/sys/linux/sys/features.h: New file.
5902         *  libc/sys/linux/sys/unistd.h: Change _sbrk_r and sbrk prototypes
5903         to take signed argument.
5904         *  libc/syscalls/syssbrk.c: Change sbrk, _sbrk_r, and _sbrk
5905         prototypes to take signed size argument.
5906
5907 2002-08-16  Thomas Fitzsimmons  <fitzsim@redhat.com>
5908
5909         * libc/sys/linux/cmath: New directory.
5910         * libc/sys/linux/include/cmathcalls.h: New file.
5911         * libc/sys/linux/include/complex.h: New file.
5912         * libc/sys/linux/machine/i386/huge_val.h: New file
5913         * libm/math/w_sincos.c: New file
5914         * libm/math/wf_sincos.c: New file
5915         * libm/mathfp/s_sincos.c: New file
5916         * libm/mathfp/sf_sincos.c: New file
5917         * Makefile.am (LIBC_OBJECTLISTS): Add cmath/objectlist.awk.in.
5918         * libc/include/math.h: Add sincos and sincosf declarations.
5919         * libc/sys/linux/Makefile.am (SUBDIRS): Add cmath.
5920         (SUBLIBS): Likewise.
5921         * libc/sys/linux/configure.in (AC_OUTPUT): Add cmath.
5922         * libm/math/Makefile.am (src): Add w_sincos.c.
5923         (fsrc): Add wf_sincos.c.
5924         * libm/mathfp/Makefile.am (src): Add s_sincos.c
5925         (fsrc): Add sf_sincos.c.
5926
5927 2002-08-12  Jeff Johnston  <jjohnstn@redhat.com>
5928
5929         * libc/sys/linux/machine/i386/crt0.c (__bss_start,_end):
5930         Declare as extern chars and use the address operator to
5931         properly use values set in linker script.
5932
5933 2002-08-09  Jason Tishler  <jason@tishler.net>
5934
5935         * libc/stdlib/mallocr.c: Include <limits.h>.
5936         (request2size): Change macro to do
5937         unsigned long comparisons and avoid signed overflow.
5938         (mALLOc): Add overflow check for the number of bytes to allocate.
5939         (rEALLOc): Ditto.
5940
5941 2002-08-09  Jeff Johnston  <jjohnstn@redhat.com>
5942
5943         * configure.host: Add check for --enable-newlib-io-pos-args
5944         and define WANT_IO_POS_ARGS flag if enabled.  Define
5945         the flag by default for x86-linux configurations.
5946         * configure.in: Add support for --enable-newlib-io-pos-args.
5947         * libc/configure.in: Ditto.
5948         * configure: Regenerated.
5949         * libc/configure: Ditto.
5950         * libc/stdio/Makefile.am: Specify -fshort-enums for compiling
5951         vfprintf.c and vfiprintf.c.
5952         * libc/stdio/Makefile.in: Regenerated.
5953         * libc/stdio/vfprintf.c: Add positional argument support that
5954         is enabled by compiling with -DWANT_IO_POS_ARGS.
5955
5956 2002-08-07  Richard Sandiford  <rsandifo@redhat.com>
5957
5958         * libc/include/machine/setjmp.h: For mips, define _JBLEN based
5959         based on __mips_soft_float rather than __mips64.
5960         * libc/machine/mips/setjmp.S: Provide hard and soft float versions
5961         of both 32-bit and 64-bit code.
5962
5963 2002-08-04  Christopher Faylor  <cgf@redhat.com>
5964
5965         * libc/stdio/popen.c (popen): Allow "rb", "rt", "wb", and "wt"
5966         arguments for popen to match similar functionality in fopen.
5967
5968 2002-07-29  Pierre Humblet  <pierre.humblet@ieee.org>
5969
5970         * libc/include/sys/unistd.h: Add setgroups prototype for Cygwin.
5971
5972 2002-07-29  Jeff Johnston  <jjohnstn@redhat.com>
5973
5974         * libc/sys/linux/Makefile.am: Add aio64.c. 
5975         * libc/sys/linux/Makefile.in: Regenerated.
5976         * libc/sys/linux/aio.c (aio_init): ENOSYS stub added.
5977         * libc/sys/linux/aio64.c: New file.
5978
5979 2002-07-26  Jeff Johnston  <jjohnstn@redhat.com>
5980
5981         *  libc/include/sys/param.h (MAX, MIN): Added macros.
5982         *  libc/sys/linux/Makefile.am: Add new files.
5983         *  libc/sys/linux/Makefile.in: Regenerated.
5984         *  libc/sys/linux/sys/stat.h: Add *stat64 prototypes.
5985         *  libc/sys/linux/inode.c (fchdir): Added syscall.
5986         *  libc/sys/linux/ftw.c: New file.
5987         *  libc/sys/linux/ftw64.c: Ditto.
5988         *  libc/sys/linux/getwd.c: Ditto.
5989         *  libc/sys/linux/scandir64.c: Ditto.
5990         *  libc/sys/linux/strverscmp.c: Ditto.
5991         *  libc/sys/linux/versionsort.c: Ditto.
5992         *  libc/sys/linux/versionsort64.c: Ditto.
5993
5994 2002-07-26  Jeff Johnston  <jjohnstn@redhat.com>
5995
5996         * libc/string/strings.tex: Fix typo for memccpy.
5997
5998 2002-07-25  Jeff Johnston  <jjohnstn@redhat.com>
5999
6000         * libc/sys/linux/io64.c (truncate64, ftruncate64): Added.
6001         * libc/sys/linux/sys/types.h (off64_t): Definition added.
6002
6003 2002-07-25  Jeff Johnston  <jjohnstn@redhat.com>
6004
6005         * libc/sys/linux/Makefile.am: Add fclean.c.
6006         * libc/sys/linux/Makefile.in: Regenerated.
6007         * libc/sys/linux/fclean.c: New file.
6008
6009 2002-07-25  Jeff Johnston  <jjohnstn@redhat.com>
6010
6011         * libc/sys/linux/Makefile.am: Add confstr.c.
6012         * libc/sys/linux/Makefile.in: Regenerated.
6013         * libc/sys/linux/confstr.c: New file.
6014         * libc/sys/linux/confstr.h: Ditto.
6015         * libc/sys/linux/sys/unistd.h: Include <features.h> and
6016         <bits/environments.h>.
6017
6018 2002-07-25  Jeff Johnston  <jjohnstn@redhat.com>
6019
6020         * libc/sys/linux/config.h (__set_errno): Macro definition removed.
6021         * libc/sys/linux/fpathconf.c (__set_errno): Ditto.
6022         * libc/sys/linux/libc-internal.h (__set_errno): Ditto.
6023         * libc/sys/linux/pathconf.c (__set_errno): Ditto.
6024         * libc/sys/linux/ttyname_r.c (__set_errno): Ditto.
6025         * libc/sys/linux/sys/errno.h (__set_errno): Macro definition added.
6026
6027 2002-07-24  Jeff Johnston  <jjohnstn@redhat.com>
6028
6029         * libc/sys/linux/Makefile.am: Add new files.
6030         * libc/sys/linux/Makefile.in: Regenerated.
6031         * libc/sys/linux/fstab.c: New file.
6032         * libc/sys/linux/fstatvfs.c: Ditto.
6033         * libc/sys/linux/fstatvfs64.c: Ditto.
6034         * libc/sys/linux/internal_statvfs.c: Ditto.
6035         * libc/sys/linux/mntent.c: Ditto.
6036         * libc/sys/linux/mntent_r.c: Ditto.
6037         * libc/sys/linux/statvfs.c: Ditto.
6038         * libc/sys/linux/statvfs64.c: Ditto.
6039         * libc/sys/linux/include/paths.h: Ditto.
6040         * libc/sys/linux/inode.c (statfs, fstatfs): New syscalls
6041         with double-underscore weak-aliases.
6042         * libc/sys/linux/sys/stat.h: Add *stat64 prototypes.
6043
6044 2002-07-24  Jeff Johnston  <jjohnstn@redhat.com>
6045
6046         * libc/include/signal.h (SIG_IGN, SIG_DFL, SIG_ERR): Change
6047         to use _sig_func_ptr type casted constants.
6048         (_sig_func_ptr): Typedef moved to sys/signal.h.
6049         * libc/include/sys/signal.h (_sig_func_ptr): Typedef added.
6050         For __rtems, use POSIX definition, otherwise default to ANSI.
6051         * libc/sys/linux/sys/signal.h (_sig_func_ptr): Typedef added.
6052
6053 2002-07-24  Stephane Carrez  <stcarrez@nerim.fr>
6054
6055         * configure.host: Recognize m6811-elf and m6812-elf targets.
6056         * libc/include/machine/setjmp.h (_JBLEN): Define for 68hc11/68hc12.
6057         * libc/include/machine/ieeefp.h (__IEEE_BIG_ENDIAN): Define for 68HC11.
6058         (_DOUBLE_IS_32BITS): Define when compiling with -fshort-double.
6059         * libc/include/sys/config.h (INT_MAX, UINT_MAX): Define
6060         according to __INT_MAX__.
6061         (_POINTER_INT): Define to short.
6062         * libc/machine/m68hc11/Makefile.am: New file.
6063         * libc/machine/m68hc11/Makefile.in: New file.
6064         * libc/machine/m68hc11/configure.in: New file.
6065         * libc/machine/m68hc11/configure: New file.
6066         * libc/machine/m68hc11/aclocal.m4: New file.
6067         * libc/machine/m68hc11/setjmp.S: New file.
6068
6069 2002-07-23  Jeff Johnston  <jjohnstn@redhat.com>
6070
6071         * libc/include/string.h: Add mempcpy, strndup, and _strndup_r
6072         prototypes.
6073         * libc/stdlib/Makefile.am: Remove strdup.c and strdup_r.c.
6074         * libc/stdlib/Makefile.in: Regenerated.
6075         * libc/stdlib/strdup.c: Removed.
6076         * libc/stdlib/strdup_r.c: Removed.
6077         * libc/string/Makefile.am: Add strdup.c, strdup_r.c, memccpy.c,
6078         mempcpy.c, strndup.c, and strndup_r.c.
6079         * libc/string/Makefile.in: Regenerated.
6080         * libc/string/memccpy.c: New file.
6081         * libc/string/mempcpy.c: Ditto.
6082         * libc/string/strndup.c: Ditto.
6083         * libc/string/strndup_r.c: Ditto.
6084         * libc/string/strdup.c: New file moved from stdlib.
6085         * libc/string/strdup_r.c: Ditto.
6086         * libc/string/strings.tex: Add memccpy and mempcpy documentation.
6087
6088 2002-07-23  Jeff Johnston  <jjohnstn@redhat.com>
6089
6090         * libc/include/stdio.h: Move fcloseall prototype within
6091         #ifndef _REENT_ONLY section.
6092         * libc/sys/linux/Makefile.am: Add new files.
6093         * libc/sys/linux/Makefile.in: Regenerated.
6094         * libc/sys/linux/sys/stdio.h: Add ctermid prototype.
6095         * libc/sys/linux/sys/unistd.h: Add ttyname_r prototype.
6096         * libc/sys/linux/sys/types.h: Add ino64_t type.
6097         * libc/sys/linux/ctermid.c: New file.
6098         * libc/sys/linux/ttyname_r.c: Ditto.
6099         * libc/sys/linux/readdir64.c: Ditto.
6100
6101 2002-07-22  Jeff Johnston  <jjohnstn@redhat.com>
6102
6103         * libc/include/stdio.h (fcloseall, _fcloseall_r): Added prototypes.
6104         * libc/stdio/Makefile.am: Added fcloseall.c support.
6105         * libc/stdio/Makefile.in: Regenerated.
6106         * libc/stdio/fcloseall.c: New file.
6107         * libc/stdio64/Makefile.am: Remove missing .def references.
6108         * libc/stdio64/Makefile.in: Regenerated.
6109
6110 2002-07-22  Jeff Johnston  <jjohnstn@redhat.com>
6111
6112         * libc/machine/powerpc/time.c: Removed..renamed to times.c.
6113         * libc/machine/powerpc/times.c: New file.
6114         * libc/machine/powerpc/Makefile.am: Change time.c to times.c.
6115         * libc/machine/powerpc/Makefile.in: Regenerated.
6116
6117 2002-07-22  Aldy Hernandez  <aldyh@redhat.com>
6118
6119         * libc/machine/powerpc/time.c: New file.
6120         * libc/machine/powerpc/Makefile.am (lib_a_SOURCES): Add
6121         time.c.
6122         * libc/machine/powerpc/Makefile.in: Regenerated.
6123
6124 2002-07-22  Thomas Fitzsimmons  <fitzsim@redhat.com>
6125
6126         * libc/libc.texinfo: Change copyright notices to Red Hat from
6127         Cygnus.
6128         * libm/libm.texinfo: Likewise.
6129         * README: Change docs URL to
6130         http://sources.redhat.com/newlib/docs.html.
6131
6132 2002-07-19  Jeff Johnston  <jjohnstn@redhat.com>
6133
6134         * libc/sys/linux/Makefile.am: Add pathconf.c and fpathconf.c.
6135         * libc/sys/linux/Makefile.in: Regenerated.
6136         * libc/sys/linux/inode.c: Add chmod, fchmod, and chown syscalls.
6137         * libc/sys/linux/io.c: Add ftruncate syscall.
6138         * libc/sys/linux/fpathconf.c: New file.
6139         * libc/sys/linux/pathconf.c: Ditto.
6140         * libc/sys/linux/linux_fsinfo.h: Ditto.
6141         * libc/sys/linux/sys/unistd.h: Ditto.
6142
6143 2002-07-19  Jeff Johnston  <jjohnstn@redhat.com>
6144
6145         * libc/stdio64/Makefile.am: Remove missing files.
6146         * libc/stdio64/Makefile.in: Regenerated.
6147
6148 2002-07-19  Jeff Johnston  <jjohnstn@redhat.com>
6149
6150         * libc/include/sys/config.h[__i386__][__linux__]: Define
6151         _LARGE64FILE_SOURCE to 1.
6152         * libc/sys/linux/Makefile.am: Add getrlimit64.c and setrlimit64.c.
6153         * libc/sys/linux/Makefile.in: Regenerated.
6154         * libc/sys/linux/resource.c: Add __getrlimit and __setrlimit aliases.
6155         * libc/sys/linux/sys/linux_time.h: Protect struct timeval definition.
6156         * libc/sys/linux/sys/resource.h: Include <bits/resource.h> instead
6157         of <linux/resource.h>.
6158         * libc/sys/linux/getrlimit64.c: New file.
6159         * libc/sys/linux/setrlimit64.c: Ditto.
6160
6161 2002-07-19  Thomas Fitzsimmons  <fitzsim@redhat.com>
6162
6163         * libc/argz/argz_replace.c: Include buf_findstr.h.
6164         * libc/argz/buf_findstr.c: Likewise.
6165         * libc/argz/envz_entry.c: Include buf_findstr.h.  Cast return
6166         value to (char *).
6167         * libc/argz/envz_get.c: Likewise.
6168         * libc/include/sys/unistd.h: Add getopt and getsubopt declarations.
6169         * libc/stdlib/Makefile.am (LIB_SOURCES): Add getsubopt.c.
6170         * libc/stdlib/getsubopt.3: New file.
6171         * libc/stdlib/getsubopt.c: New file.
6172         * libc/sys/linux/machine/i386/socketcall.h (__sockcall_base):
6173         Change esp to ebp.
6174
6175 2002-07-17  Jeff Johnston  <jjohnstn@redhat.com>
6176
6177         * configure.host(stdio64_dir): New setting that is used to
6178         enable building of new stdio64 directory.
6179         * libc/Makefile.am[HAVE_STDIO64_DIR]: Add support for
6180         large files.
6181         (stmp-stdio64,stdio64.texi): New targets to optionally add in
6182         stdio64 info to info files.
6183         * libc/Makefile.in: Regenerated.
6184         * libc/configure: Ditto.
6185         * libc/configure.in: Add configuration variables that are set
6186         when stdio64 is selected as subdir in configure.host.
6187         * libc/libc.texinfo: Add optional menu item for Stdio64, based
6188         on whether STDIO64 flag is set or not.
6189         * libc/sys.tex: Add optional stdio64 syscalls based on whether
6190         STDIO64 flag is set or not.
6191         * libc/include/reent.h[__LARGE64_FILES]: Add new stdio64
6192         _r sycall routines.
6193         * libc/include/stdio.h[__LARGE64_FILES]: Add new stdio64 prototypes.
6194         (FILE): Typedef'd to __FILE instead of struct __sFILE directly.
6195         (__SL64): New file flag indicating file is opened via fopen64.
6196         * libc/include/sys/_types.h(_off64_t): Added.
6197         * libc/include/sys/config.h: For x86-linux, define __LARGE64_FILES.
6198         * libc/include/sys/reent.h(struct __sFILE64): New file structure
6199         for 64-bit offset large file support.
6200         (__FILE): New intermediate type either set to struct __sFILE64 or
6201         struct __sFILE, depending on whether __LARGE64_FILES is set or not.
6202         * libc/reent/Makefile.am[HAVE_STDIO64_DIR]: Add new files.
6203         * libc/reent/Makefile.in: Regenerated.
6204         * libc/reent/fstat64r.c: New file.
6205         * libc/reent/lseek64r.c: Ditto.
6206         * libc/reent/open64r.c: Ditto.
6207         * libc/reent/reent.tex: Optionally add stdio64 reentrant syscalls
6208         based on whether STDIO64 flag is set. 
6209         * libc/stdio/stdio.tex: Add blank line.
6210         * libc/stdio64/Makefile.am: New file.
6211         * libc/stdio64/Makefile.in: Ditto.
6212         * libc/stdio64/fgetpos64.c: Ditto.
6213         * libc/stdio64/fopen64.: Ditto.
6214         * libc/stdio64/freopen64.c: Ditto.
6215         * libc/stdio64/fseeko64.c: Ditto.
6216         * libc/stdio64/fsetpos64.c: Ditto.
6217         * libc/stdio64/ftello64.c: Ditto.
6218         * libc/stdio64/local64.h: Ditto.
6219         * libc/stdio64/stdio64.c: Ditto.
6220         * libc/stdio64/stdio64.tex: Ditto.
6221         * libc/stdio64/tmpfile64.c: Ditto.
6222         * libc/sys/linux/io64.c: Add weak aliases for lseek64, fstat64, and
6223         open64.
6224
6225 2002-07-16  Jeff Johnston  <jjohnstn@redhat.com>
6226
6227         * libc/Makefile.am (stmp-extra): New target to set makeinfo flag
6228         if LIBC_EXTRA_LIB is present.
6229         * libc/Makefile.in: Regenerated.
6230         * libc/libc.texinfo: Add blank line.
6231         * libc/argz/Makefile.am: Add doc support.
6232         * libc/search/Makefile.am: Ditto.
6233         * libc/argz/Makefile.in: Regenerated.
6234         * libc/search/Makefile.in: Ditto.
6235         * libc/misc/misc.tex: Add ffs function.
6236         * libc/stdio/ftell.c: Fix missing doc delimeter in description.
6237
6238 2002-07-15  Jeff Johnston  <jjohnstn@redhat.com>
6239
6240         * libc/include/sys/config.h[__H8300__]: Replace __SMALL_BITFIELDS
6241         definition that was removed in error.
6242
6243 2002-07-15  Jeff Johnston  <jjohnstn@redhat.com>
6244
6245         * libc/include/machine/ieeefp.h: Change to only define
6246         floating point defines (e.g one of __IEEE_BIG_ENDIAN or 
6247         __IEEE_LITTLE_ENDIAN must be defined for each platform).
6248         * libc/include/sys/config.h: Include <machine/ieeefp.h> and
6249         remove redundant floating point definitions.
6250
6251 2002-07-15  Jeff Johnston  <jjohnstn@redhat.com>
6252
6253         * libc/sys/linux/callocr.c: Fix so code references
6254         calloc.
6255
6256 2002-07-15  Jeff Johnston  <jjohnstn@redhat.com>
6257
6258         * libc/sys/linux/Makefile.am: Add new files.
6259         * libc/sys/linux/Makefile.in: Regenerated.
6260         * libc/sys/linux/bp-sym.h: Moved to include directory.
6261         * libc/sys/linux/mmap.c: Add weak aliases: __mmap, __munmap, __mremap.
6262         * libc/sys/linux/inode.c: Set _LIBC to 1.
6263         * libc/sys/linux/mq_close.c: Ditto.
6264         * libc/sys/linux/mq_getattr.c: Ditto.
6265         * libc/sys/linux/mq_open.c: Ditto.
6266         * libc/sys/linux/mq_receive.c: Ditto.
6267         * libc/sys/linux/mq_send.c: Ditto.
6268         * libc/sys/linux/mq_setattr.c: Ditto.
6269         * libc/sys/linux/mq_unlink.c: Ditto.
6270         * libc/sys/linux/calloc.c: New file.
6271         * libc/sys/linux/callocr.c: Ditto.
6272         * libc/sys/linux/cfreer.c: Ditto.
6273         * libc/sys/linux/config.h: Ditto.
6274         * libc/sys/linux/free.c: Ditto.
6275         * libc/sys/linux/freer.c: Ditto.
6276         * libc/sys/linux/msize.c: Ditto.
6277         * libc/sys/linux/msizer.c: Ditto.
6278         * libc/sys/linux/mstats.c: Ditto.
6279         * libc/sys/linux/mtrim.c: Ditto.
6280         * libc/sys/linux/mtrimr.c: Ditto.
6281         * libc/sys/linux/pvallocr.c: Ditto.
6282         * libc/sys/linux/realloc.c: Ditto.
6283         * libc/sys/linux/reallocr.c: Ditto.
6284         * libc/sys/linux/thread-m.h: Ditto.
6285         * libc/sys/linux/vallocr.c: Ditto.
6286         * libc/sys/linux/bp-checks.h: Ditto.
6287         * libc/sys/linux/libc-symbols.h: Ditto.
6288         * libc/sys/linux/libc-tsd.h: Ditto.
6289         * libc/sys/linux/libintl.h: Ditto.
6290         * libc/sys/linux/malign.c: Ditto.
6291         * libc/sys/linux/malignr.c: Ditto.
6292         * libc/sys/linux/mallinfor.c: Ditto.
6293         * libc/sys/linux/malloc.c: Ditto.
6294         * libc/sys/linux/mallocr.c: Ditto.
6295         * libc/sys/linux/malloptr.c: Ditto.
6296         * libc/sys/linux/mallstatsr.c: Ditto.
6297         * libc/sys/linux/mcheck.c: Ditto.
6298         * libc/sys/linux/mhooks.h: Ditto.
6299         * libc/sys/linux/include/bp-sym.h: Ditto.
6300         * libc/sys/linux/include/malloc.h: Ditto.
6301         * libc/sys/linux/include/mcheck.h: Ditto.
6302         * libc/sys/linux/linuxthreads/machine/i386/Makefile.am: Remove
6303         getpagesize.c.
6304         * libc/sys/linux/linuxthreads/machine/i386/Makefile.in: Regenerated.
6305         * libc/sys/linux/linuxthreads/machine/i386/getpagesize.c: Moved.
6306         * libc/sys/linux/machine/i386/getpagesize.c: New file.
6307         * libc/sys/linux/machine/i386/Makefile.am: Add getpagesize.c.
6308         * libc/sys/linux/machine/i386/Makefile.in: Regenerated.
6309         * libc/sys/linux/machine/i386/sysdep.h: New file.
6310         * libc/sys/linux/machine/i386/weakalias.h: Add weak_function support.
6311         * libc/sys/linux/sys/dirent.h: Set _LIBC to 1.
6312         * libc/sys/linux/sys/lock.h: Include <machine/weakalias.h>.
6313
6314 2002-07-12  Jeff Johnston  <jjohnstn@redhat.com>
6315
6316         * libc/sys/linux/include/mqueue.h: Change to use <bits/siginfo.h>
6317         instead of <asm/siginfo.h>.
6318         * libc/sys/linux/sys/signal.h: Change to include various linux
6319         <bits/xxx.h> header files, rather than <linux/signal.h> so as
6320         to work with multiple releases of glibc header files.
6321
6322 2002-07-11  Chris Demetriou  <cgd@broadcom.com>
6323
6324         * testsuite/newlib.search/hsearchtest.c: New file to test
6325         newlib/libc/search.
6326         * testsuite/newlib.search/hsearchtest.exp: Likewise.
6327
6328 2002-07-10  Florian Schrack  <florian.schrack@freenet.de>
6329
6330         * libc/sys/mmixware/read.c: Use SYS_Fgets syscall if dealing with
6331         a terminal.
6332         * libc/sys/mmixware/sys/syscall.h (SYS_Fgets): Definition added.
6333
6334 2002-07-08  Jeff Johnston  <jjohnstn@redhat.com>
6335
6336         * libc/include/math.h (MAXFLOAT): Added.
6337
6338 Mon Jul  8 13:55:23 2002  J"orn Rennecke <joern.rennecke@superh.com>
6339
6340         * libc/machine/sh/Makefile.am (lib_a_SOURCES):
6341         Make strcmp.S unconditional.
6342         * libc/machine/sh/Makefile.in: Regenerate.
6343         * libc/machine/sh/asm.h (DELAYED_BRANCHES, SL): Also for __SH5__ .
6344         * strcmp.S (strcmp): Add SHmedia variant.  Use different registers
6345         for SHcompact.
6346
6347 2002-07-04  Jeff Johnston  <jjohnstn@redhat.com>
6348
6349         * libc/sys/linux/inode.c: Fix utime prototype and add _LIBC
6350         define before including <sys/lock.h>.
6351
6352 2002-07-04  Jeff Johnston  <jjohnstn@redhat.com>
6353
6354         * libc/include/utime.h: Add include of <_ansi.h>.
6355         * libc/sys/linux/Makefile.am: Add utimes.c.
6356         * libc/sys/linux/Makefile.in: Regenerated.
6357         * libc/sys/linux/inode.c(__umask): New static routine.
6358         (umask): Written to use __umask and attempt to thread lock.
6359         (getumask): New function written to use __umask and thread lock.
6360         * libc/sys/linux/utimes.c: New file.
6361         * libc/sys/linux/sys/time.h: Fix utimes prototype.
6362         * libc/sys/linux/sys/utime.h: New file.
6363
6364 2002-07-04  Thomas Fitzsimmons  <fitzsim@redhat.com>
6365
6366         * libtool.m4: New file.
6367         * libc/sys/linux/process.c: Implement vfork in terms of fork,
6368         rather than as a syscall.
6369
6370 2002-07-04  Jeff Johnston  <jjohnstn@redhat.com>
6371
6372         * libc/include/stdio.h: Add new prototypes.
6373         * libc/stdio/Makefile.am: Add fseeko.c and ftello.c.
6374         * libc/stdio/Makefile.in: Regenerated.
6375         * libc/stdio/fseek.c: Add fseeko documentation.
6376         * libc/stdio/ftell.c: Add ftello documentation.
6377         * libc/stdio/fseeko.c: New file.
6378         * libc/stdio/ftello.c: New file.
6379
6380 2002-07-04  Jeff Johnston  <jjohnstn@redhat.com>
6381
6382         * libc/stdio/Makefile.am: Add asprintf.c and vasprintf.c.
6383         * libc/stdio/Makefile.in: Regenerated.
6384         * libc/stdio/asprintf.c: New file.
6385         * libc/stdio/vasprintf.c: Ditto.
6386         * libc/stdio/fvwrite.c: Add code to dynamically reallocate
6387         the buffer for asprintf support.
6388         * libc/stdio/sprintf.c: Add asprintf documentation.
6389         * libc/stdio/vfprintf.c: Add vasprintf documentation.
6390         * libc/include/stdio.h: Add new prototypes.
6391
6392 2002-07-02  Thomas Fitzsimmons  <fitzsim@redhat.com>
6393
6394         * libc/search/hcreate.c: Remove advertising clause from license.
6395         * libc/search/hcreate_r.c: Likewise.
6396
6397 2002-07-02  Chris Demetriou  <cgd@broadcom.com>
6398
6399         * libc/include/sys/config.h (__IEEE_LITTLE_ENDIAN)
6400         (__IEEE_BIG_ENDIAN): Define appropriately for MIPS.
6401         Check that one of them is defined and error out if not.
6402         Add any platforms defined in <machine/ieeefp.h> that are missing.
6403         * libc/search/hash.h (DB_BYTE_ORDER, DB_BIG_ENDIAN)
6404         (DB_LITTLE_ENDIAN): New defines.
6405         * libc/search/hash.c: Replace all incorrect checks for
6406         _IEEE_LITTLE_ENDIAN with tests of BYTE_ORDER, and all uses of
6407         BYTE_ORDER, LITTLE_ENDIAN, and BIG_ENDIAN with DB_* versions.
6408         * libc/search/hash_page.c: Likewise.
6409
6410 2002-06-28  Thomas Fitzsimmons  <fitzsim@redhat.com>
6411
6412         * libm/mathfp/sf_pow.c (powf): Change k from int to float.
6413
6414 2002-06-27  Benjamin Kosnik  <bkoz@redhat.com>
6415
6416         * libc/include/stdio.h: Untangle, add _BEGIN_STD_C and _END_STD_C.
6417         * libc/include/time.h: Same.
6418         * libc/include/string.h: Same.
6419         * libc/include/stdlib.h: Same.
6420         * libc/include/signal.h: Same.
6421         * libc/include/setjmp.h: Same.
6422         * libc/include/math.h: Same.
6423         * libc/include/locale.h: Same.
6424         * libc/include/ctype.h: Same.
6425         * libc/include/machine/setjmp.h: Same.
6426         * libc/include/_ansi.h (_BEGIN_STD_C): Add.
6427         (_END_STD_C): Add.
6428
6429 2002-06-27  Jeff Johnston  <jjohnstn@redhat.com>
6430
6431         * libc/include/sys/_types.h: Define _ssize_t as int if int is
6432         32-bits, otherwise define it as long.
6433         * libc/include/sys/types.h: Include <_ansi.h> and <sys/_types.h>
6434         and define ssize_t as _ssize_t.
6435         * libc/reent/readr.c: Change return type to _ssize_t.
6436         * libc/reent/writer.c: Ditto.
6437         * libc/sys/linux/Makefile.am: Add aio.c.
6438         * libc/sys/linux/Makefile.in: Regenerated.
6439         * libc/sys/linux/aio.c: New file.
6440         * libc/sys/linux/sys/cdefs.h: Add __restrict_arr definition.
6441         * libm/common/fdlibm.h: Undef __P before defining it.
6442
6443 2002-06-27  Thomas Fitzsimmons  <fitzsim@redhat.com>
6444
6445         * libm/mathfp/s_pow.c (pow): Fix checks on variable k.  Add
6446         exponent_is_even_int variable.  Handle case where x is
6447         negative, and y is an odd integer.
6448         * libm/mathfp/sf_pow.c (powf): Likewise.
6449
6450         * libm/mathfp/er_lgamma.c: Remove __kernel references.
6451         * libm/mathfp/erf_lgamma.c: Likewise.
6452         * libm/mathfp/s_tgamma.c: Likewise.
6453         * libm/mathfp/sf_tgamma.c: Likewise.
6454
6455 2002-06-27  Jeff Johnston  <jjohnstn@redhat.com>
6456
6457         * libc/sys/linux/Makefile.am: Add new clock routines.
6458         * libc/sys/linux/Makefile.in: Regenerated.
6459         * libc/sys/linux/clock_getres.c: New file.
6460         * libc/sys/linux/clock_gettime.c: Ditto.
6461         * libc/sys/linux/clock_settime.c: Ditto.
6462         * libc/sys/linux/hp-timing.h: Ditto.
6463         * libc/sys/linux/libc-internal.h: Ditto.
6464         * libc/sys/linux/sysconf.c: Fix typo.
6465         * libc/sys/linux/include/time.h: Add include of <sys/linux_time.h>.
6466         * libc/sys/linux/machine/hp-timing.h: New file.
6467         * libc/sys/linux/machine/i386/Makefile.am: Add new files.
6468         * libc/sys/linux/machine/i386/Makefile.in: Regenerated.
6469         * libc/sys/linux/machine/i386/get_clockfreq.c: New file.
6470         * libc/sys/linux/machine/i386/hp-timing.c: Ditto.
6471         * libc/sys/linux/machine/i386/hp-timing.h: Ditto.
6472         * libc/sys/linux/sys/linux_time.h: New file.
6473         * libc/sys/linux/sys/time.h: Remove include of <linux/time.h> and
6474         replace with <sys/linux_time.h>.
6475
6476 Wed Jun 26 16:33:25 2002  J"orn Rennecke <joern.rennecke@superh.com>
6477
6478         * libc/sys/sh/crt0.S: Remove vestigial .section directive.
6479
6480 2002-06-25  Jeff Johnston  <jjohnstn@redhat.com>
6481
6482         * libc/sys/linux/Makefile.am: Consolidate additional items under
6483         ADD_OBJS.
6484         * libc/sys/linux/Makefile.in: Regenerated.
6485
6486 2002-06-25  Jeff Johnston  <jjohnstn@redhat.com>
6487
6488         * libc/sys/linux/sethostname.c: New file.
6489         * libc/sys/linux/Makefile.am: Add sethostname.c support.
6490         * libc/sys/linux/Makefile.in: Regenerated.
6491
6492 2002-06-24  Thomas Fitzsimmons  <fitzsim@redhat.com>
6493
6494         * libc/search/db_local.h: New file.
6495         * libc/include/db.h: Remove.
6496         * libc/search/Makefile.am (LIB_SOURCES): Add db_local.h.
6497         * libc/search/hash.c (MIN,MAX): Add macros.  Change <db.h> to
6498         "db_local.h".
6499         * libc/search/hash_bigkey.c: Likewise.
6500         * libc/search/hash_buf.c: Likewise.
6501         * libc/search/hash_func.c: Likewise.
6502         * libc/search/hash_log2.c: Likewise.
6503         * libc/search/hash_page.c: Likewise.
6504
6505 2002-06-24  J"orn Rennecke <joern.rennecke@superh.com>
6506
6507         * libc/machine/sh/strlen.S: New file.
6508         * libc/machine/sh/Makefile.am (lib_a_SOURCES): Add rule for it.
6509         * libc/machine/sh/Makefile.am: Regenerate.
6510
6511 2002-06-24  Jeff Johnston  <jjohnstn@redhat.com>
6512
6513         * libc/sys/linux/gethostname.c: Change name to __gethostname and
6514         add gethostname alias.
6515
6516 2002-06-24  Jeff Johnston  <jjohnstn@redhat.com>
6517
6518         * libc/include/math.h: Remove <sys/types.h>.
6519         (__dmath): Use __ULong instead of __uint32_t.
6520         * libc/include/sys/reent.h: If long or int is not 32-bits,
6521         include <sys/types.h> to get definitions for __int32_t and __uint32_t.
6522         * libc/stdlib/mprec.h: Include <sys/types.h> to get integer defs.
6523         * libm/common/fdlibm.h: Ditto.
6524
6525 2002-06-24  Thomas Fitzsimmons  <fitzsim@redhat.com>
6526
6527         * libc/include/ndbm.h: Remove.
6528         * libc/search/ndbm.c: Remove.
6529
6530 2002-06-24  WATANABE Hirofumi <eban@os.rim.or.jp>
6531
6532         * libc/stdio/fseek.c (fseek): Fix braces.
6533
6534 2002-06-21  Corinna Vinschen  <corinna@vinschen.de>
6535
6536         * libc/time/strftime.c (strftime): Add %e format specifier.
6537
6538 2002-06-21  Thomas Fitzsimmons  <fitzsim@redhat.com>
6539
6540         * libc/search/hash.h (LITTLE_ENDIAN, BIG_ENDIAN): Define if not
6541         previously defined.
6542
6543 2002-06-21  Richard Earnshaw  (rearnsha@arm.com)
6544
6545         * libc/sys/arm/sys/param.h (BIG_ENDIAN, LITTLE_ENDIAN): Define.
6546         (BYTE_ORDER): Define as appropriate for the target.
6547
6548 2002-06-21  Jeff Johnston  <jjohnstn@redhat.com>
6549
6550         * libc/include/sys/config.h[__linux__]: Set _READ_WRITE_RETURN_TYPE
6551         to _ssize_t.
6552         * libc/sys/linux/io.c (read, write): Change to return ssize_t.
6553
6554 2002-06-21  Jeff Johnston  <jjohnstn@redhat.com>
6555
6556         * libc/include/stdio.h (__getline, __getdelim): New prototypes.
6557         * libc/include/time.h [HAVE_GETDATE](getdate, getdate_r): Ditto.
6558         [HAVE_GETDATE](getdate_err): New error code.
6559         * libc/stdio/Makefile.am: Add support for getline.c and getdelim.c.
6560         * libc/stdio/Makefile.in: Regenerated.
6561         * libc/stdio/getdelim.c: New file.
6562         * libc/stdio/getline.c: Ditto.
6563         * libc/sys/linux/Makefile.am: Add support for getdate.c, getdate_err.c
6564         and ntp_gettime.c.  Also add AM_CFLAGS to point to libc/stdio.
6565         * libc/sys/linux/Makefile.in: Regenerated.
6566         * libc/sys/linux/getdate.c: New file.
6567         * libc/sys/linux/getdate_err.c: Ditto.
6568         * libc/sys/linux/ntp_gettime.c: Ditto.
6569         * libc/sys/linux/time.c (adjtimex, ntp_adjtime): New functions.
6570         * libc/sys/linux/sys/stdio.h (getline, getdelim): New macros.
6571
6572 2002-06-21  Jeff Johnston  <jjohnstn@redhat.com>
6573
6574         * libc/include/math.h: Add <sys/types.h> to get _uint32_t definition.
6575         * libc/include/machine/types.h: Skip __off_t, __pid_t, and
6576         __loff_t definitions if special _HAVE_SYSTYPES macro defined.
6577         * libc/include/sys/config.h: Removed _uint*, _int* definitions.
6578         * libc/include/sys/param.h: Remove i386 case which is handled
6579         by default case.
6580         (BIG_ENDIAN, LITTLE_ENDIAN): Protect
6581         definitions in case they are already defined.
6582         (BYTE_ORDER): Add default case using _IEEE_BIG_ENDIAN and
6583         _IEEE_LITTLE_ENDIAN flags.
6584         * libc/include/sys/reent.h: Change __uint32_t references to
6585         use _ULong instead.
6586         (_REENT_GETDATE_REENT_P): New macro.
6587         * libc/include/sys/types.h (__int16_t, __uint16_t): Added.
6588         (__int32_t, __uint32_t, __int64_t, __uint64_t): Ditto.
6589         * libc/search/hash.h: Add default setting of BYTE_ORDER,
6590         LITTLE_ENDIAN, and BIG_ENDIAN, if not already defined.
6591         * libc/sys/linux/sys/types.h: Include <sys/_types.h>.  Define
6592         ssize_t based on _ssize_t.  Remove __socklen_t, __uintptr_t,
6593         pid_t, off_t, loff_t, caddr_t, and daddr_t type
6594         definitions which are done by subsequent glibc headers.
6595         Add macro definitions to prevent subsequent header files from
6596         defining pid_t, off_t, ssize_t, and key_t.  Move uintptr_t and
6597         intptr_t to after glibc definitions of types they are based on.
6598
6599 2002-06-21  Jeff Johnston  <jjohnstn@redhat.com>
6600
6601         * libc/include/errno.h: Protect from multiple inclusion.
6602
6603 2002-06-21  Nick Clifton  <nickc@cambridge.redhat.com>
6604
6605         * libc/sys/arm/swi.h (ADP_Stopped_RunTimeError): Set correct value.
6606
6607 2002-06-20  Thomas Fitzsimmons  <fitzsim@redhat.com>
6608
6609         * Makefile.am (LIB_OBJECTLISTS): Add
6610         libc/search/objectlist.awk.in.
6611         * libc/Makefile.am (SUBDIRS): Add search.
6612         (SUBLIBS): Add search/libsearch.la.
6613         * libc/configure.in (AC_OUTPUT): Add search/Makefile.
6614         * libc/search: New directory.
6615         * libc/search/Makefile.am: New file.
6616         * libc/search/extern.h: New file.
6617         * libc/search/hash.c: New file.
6618         * libc/search/hash.h: New file.
6619         * libc/search/hash_bigkey.c: New file.
6620         * libc/search/hash_buf.c: New file.
6621         * libc/search/hash_func.c: New file.
6622         * libc/search/hash_log2.c: New file.
6623         * libc/search/hash_page.c: New file.
6624         * libc/search/hcreate.3: New file.
6625         * libc/search/hcreate.c: New file.
6626         * libc/search/hcreate_r.c: New file.
6627         * libc/search/ndbm.c: New file.
6628         * libc/search/page.h: New file.
6629         * libc/search/tdelete.c: New file.
6630         * libc/search/tdestroy.c: New file.
6631         * libc/search/tfind.c: New file.
6632         * libc/search/tsearch.3: New file.
6633         * libc/search/tsearch.c: New file.
6634         * libc/search/twalk.c: New file.
6635         * libc/include/db.h: New file.
6636         * libc/include/ndbm.h: New file.
6637         * libc/include/search.h: New file.
6638         * libc/include/sys/queue.h: New file.
6639         * libc/include/sys/cdefs.h: New file.
6640         * libc/include/sys/param.h
6641         [__IEEE_LITTLE_ENDIAN,__IEEE_BIG_ENDIAN]: Set BYTE_ORDER to
6642         LITTLE_ENDIAN or BIG_ENDIAN.
6643         * libc/include/sys/errno.h (EFTYPE): New macro.
6644         * libc/search/bsearch.c: Move from libc/stdlib.
6645         * libc/search/qsort.c: Likewise.
6646         * libc/stdlib/Makefile.am (LIB_SOURCES): Remove bsearch.c and
6647         qsort.c.
6648         (CHEWOUT_FILES): Remove bsearch.def and qsort.def.
6649         * libc/stdlib/stdlib.tex: Remove references to bsearch and qsort.
6650
6651 2002-06-19  Jeff Johnston  <jjohnstn@redhat.com>
6652
6653         * libc/sys/linux/Makefile.am: Add support for message queue routines,
6654         ipc routines, and ftok.
6655         * libc/sys/linux/Makefile.in: Regenerated.
6656         * libc/sys/linux/ftok.c: New file.
6657         * libc/sys/linux/ipc.c: Ditto.
6658         * libc/sys/linux/mq_close.c: Ditto.
6659         * libc/sys/linux/mq_getattr.c: Ditto.
6660         * libc/sys/linux/mq_notify.c: Ditto.
6661         * libc/sys/linux/mq_open.c: Ditto.
6662         * libc/sys/linux/mq_receive.c: Ditto.
6663         * libc/sys/linux/mq_send.c: Ditto.
6664         * libc/sys/linux/mq_setattr.c: Ditto.
6665         * libc/sys/linux/mq_unlink.c: Ditto.
6666         * libc/sys/linux/mqlocal.h: Ditto.
6667         * libc/sys/linux/include/mqueue.h: Ditto.
6668         * libc/sys/linux/sys/types.h: Define __gid_t_defined and
6669         __uid_t_defined.
6670
6671 2002-06-19  J"orn Rennecke <joern.rennecke@superh.com>
6672
6673         * libm/common/sf_lround.c (round): Change name to: (lround).
6674         * libm/common/sf_remquo.c (remquo): Pass all arguemnts to
6675         remquof.
6676
6677 2002-06-18  Thomas Fitzsimmons  <fitzsim@redhat.com>
6678
6679         * testsuite/lib/passfail.exp (newlib_pass_fail_all): New
6680         procedure.
6681         (newlib_pass_fail): Change to compile and run only one file.
6682         * testsuite/newlib.locale/locale.exp: Use new
6683         newlib_pass_fail_all procedure.
6684         * testsuite/newlib.string/string.exp: Likewise.
6685
6686 2002-06-18  Dave Brolley  <brolley@redhat.com>
6687
6688         From Catherine Moore, Michael Meissner, Richard Sandiford:
6689         * libc/include/machine/setjmp.h (_JBLEN): Define for __frv__.
6690         (_JBTYPE): Ditto.
6691         * libc/include/sys/config.h (__IEEE_BIG_ENDIAN): Ditto.
6692         (__ATTRIBUTE_IMPURE_PTR__): Ditto.
6693         * libc/include/machine/ieeefp.h (__IEEE_BIG_ENDIAN): Ditto.
6694         * configure.host: Support frv-*-*.
6695         * libc/machine/frv/Makefile.am: New file.
6696         * libc/machine/frv/configure.in: New file.
6697         * libc/machine/frv/setjmp.S: New file.
6698
6699 2002-06-18  Thomas Fitzsimmons  <fitzsim@redhat.com>
6700
6701         * libc/include/ctype.h: Remove isblank macro.
6702
6703         * libc/ctype/Makefile.am (LIB_SOURCES): Add isblank.c.
6704         * libc/ctype/isblank.c: New file.
6705         * libc/include/ctype.h [!__STRICT_ANSI__]: Add isblank
6706         declaration.  Add isblank macro.
6707
6708 2002-06-18  Jeff Johnston  <jjohnstn@redhat.com>
6709
6710         * testsuite/newlib.stdlib/atexit.c: New file.
6711         * testsuite/newlib.stdlib/atexit.exp: Ditto.
6712         * testsuite/newlib.string/tstring.c: Change default start size
6713         to something more reasonable for embedded platforms.
6714
6715 2002-06-14  Thomas Fitzsimmons  <fitzsim@redhat.com>
6716
6717         * libc/sys/linux/sys/errno.h (EFTYPE): Add macro.
6718
6719         * libc/argz: New directory.
6720         * libc/argz/*: New files.
6721         * libc/argz/argz_add.c: New file.
6722         * libc/argz/argz_add_sep.c: New file.
6723         * libc/argz/argz_append.c: New file.
6724         * libc/argz/argz_count.c: New file.
6725         * libc/argz/argz_create.c: New file.
6726         * libc/argz/argz_create_sep.c: New file.
6727         * libc/argz/argz_delete.c: New file.
6728         * libc/argz/argz_extract.c: New file.
6729         * libc/argz/argz_insert.c: New file.
6730         * libc/argz/argz_next.c: New file.
6731         * libc/argz/argz_replace.c: New file.
6732         * libc/argz/argz_stringify.c: New file.
6733         * libc/argz/buf_findstr.c: New file.
6734         * libc/argz/envz_add.c: New file.
6735         * libc/argz/envz_entry.c: New file.
6736         * libc/argz/envz_get.c: New file.
6737         * libc/argz/envz_merge.c: New file.
6738         * libc/argz/envz_remove.c: New file.
6739         * libc/argz/envz_strip.c: New file.
6740         * libc/include/argz.h: New file.
6741         * libc/include/envz.h: New file.
6742         * Makefile.am (LIBC_OBJECTLISTS): Add
6743         libc/argz/objectlist.awk.in.
6744         * libc/Makefile.am (SUBDIRS): Add argz.
6745         (SUBLIBS): Add argz/libargz.la.
6746         * libc/configure.in (AC_OUTPUT): Add argz/Makefile.
6747         * libc/include/errno.h: Add error_t typedef.
6748
6749 2002-06-13  Jeff Johnston  <jjohnstn@redhat.com>
6750
6751         * libc/include/stdlib.h: Add _Exit prototype.
6752         * libc/stdlib/Makefile.am: Add _Exit.c support.
6753         * libc/stdlib/Makefile.in: Ditto.
6754         * libc/stdlib/_Exit.c: New file.
6755
6756 2002-06-13  Stephen L. Moshier  <steve@moshier.net>
6757
6758         * libm/math/e_pow.c (__ieee754_pow): Fix case whereby
6759         x is close to -1.0 and y is very large to use ax (absolute value)
6760         instead of x.
6761         * libm/math/ef_pow.c (__ieee754_powf): Ditto.
6762
6763 Thu Jun 13 19:23:40 2002  J"orn Rennecke <joern.rennecke@superh.com>
6764
6765         * libc/machine/sh/strcpy.S (strcpy, __SHMEDIA__ code):
6766         Fix clobbering bytes before destination if src and dst have same
6767         non-zero misalignment.
6768
6769         * libc/machine/sh/memset.S (memset, __SHMEDIA__ code):
6770         Fixed bug in writing end of set region.
6771
6772 2002-06-10  Christopher Faylor  <cgf@redhat.com>
6773
6774         * libc/include/process.h: Remove cygwin-only sexec* declarations.  Fix
6775         spawnve declaration.
6776
6777 2002-06-06  Thomas Fitzsimmons  <fitzsim@redhat.com>
6778
6779         * libm/common/s_fdim.c: New file.
6780         * libm/common/s_fma.c: Likewise.
6781         * libm/common/s_fmax.c: Likewise.
6782         * libm/common/s_fmin.c: Likewise.
6783         * libm/common/s_fpclassify.c: Likewise.
6784         * libm/common/s_lrint.c: Likewise.
6785         * libm/common/s_lround.c: Likewise.
6786         * libm/common/s_nearbyint.c: Likewise.
6787         * libm/common/s_remquo.c: Likewise.
6788         * libm/common/s_round.c: Likewise.
6789         * libm/common/s_scalbln.c: Likewise.
6790         * libm/common/s_signbit.c: Likewise.
6791         * libm/common/s_trunc.c: Likewise.
6792         * libm/common/sf_fdim.c: Likewise.
6793         * libm/common/sf_fma.c: Likewise.
6794         * libm/common/sf_fmax.c: Likewise.
6795         * libm/common/sf_fmin.c: Likewise.
6796         * libm/common/sf_lrint.c: Likewise.
6797         * libm/common/sf_lround.c: Likewise.
6798         * libm/common/sf_nearbyint.c: Likewise.
6799         * libm/common/sf_remquo.c: Likewise.
6800         * libm/common/sf_round.c: Likewise.
6801         * libm/common/sf_scalbln.c: Likewise.
6802         * libm/common/sf_trunc.c: Likewise.
6803         * libm/math/w_exp2.c: Likewise.
6804         * libm/math/w_tgamma.c: Likewise.
6805         * libm/math/wf_exp2.c: Likewise.
6806         * libm/math/wf_tgamma.c: Likewise.
6807         * libm/mathfp/s_exp2.c: Likewise.
6808         * libm/mathfp/s_tgamma.c: Likewise.
6809         * libm/mathfp/sf_exp2.c: Likewise.
6810         * libm/mathfp/sf_tgamma.c: Likewise.
6811         * libm/math/er_gamma.c: Fix return value.
6812         * libm/math/erf_gamma.c: Likewise.
6813         * libm/mathfp/er_gamma.c: Likewise.
6814         * libm/mathfp/erf_gamma.c: Likewise.
6815         * libc/include/math.h (!__STRICT_ANSI__): Include ISOC99-specific
6816         declarations and macros.
6817         Regenerated all Makefile.in, aclocal.m4 and configure files to
6818         use new libtool macros in top-level libtool.m4
6819
6820 2002-06-05  Jeff Johnston  <jjohnstn@redhat.com>
6821
6822         * libc/include/string.h[__linux__]: Add strsignal prototype.
6823         * libc/include/sys/lock.h: New file with default locking support.
6824         * libc/include/sys/reent.h: Add signal buffer support for strsignal
6825         and psignal.
6826         * libc/posix/Makefile.am: Add support for readdir_r.c.
6827         * libc/posix/Makefile.in: Regenerated.
6828         * libc/posix/closedir.c: Add locking support and hash table cleanup.
6829         * libc/posix/opendir.c: Add lock support.
6830         * libc/posix/readdir.c: Ditto.
6831         * libc/posix/rewinddir.c: Ditto.
6832         * libc/posix/scandir.c: Ditto.
6833         * libc/posix/seekdir.c: Ditto.
6834         * libc/posix/telldir.c: Ditto plus add _cleanupdir routine to
6835         clean up leftover hash table entries.
6836         * libc/posix/readdir_r.c: New file.
6837         * libc/sys/linux/Makefile.am: Add psignal.c and strsignal.c support.
6838         * libc/sys/linux/Makefile.in: Regenerated.
6839         * libc/sys/linux/sys/dirent.h: Add dd_lock to DIR structure.
6840         * libc/sys/linux/sys/signal.h: Add psignal prototype.
6841         * libc/sys/linux/psignal.c: New file.
6842         * libc/sys/linux/strsignal.c: Ditto.
6843
6844 2002-06-03  Corinna Vinschen  <corinna@vinschen.de>
6845
6846         * libc/include/sys/types.h: Don't define dev_t when compiling for
6847         Cygwin.
6848
6849 2002-05-31  Jeff Johnston  <jjohnstn@redhat.com>
6850
6851         * libc/sys/linux/Makefile.am: Add sig.c and sigaction.c.  Also
6852         make siglist.inc dependent on sig.c instead of signal.c.
6853         * libc/sys/linux/Makefile.in: Regenerated.
6854         * libc/sys/linux/sig.c: Rename from signal.c and change code to
6855         use NSIG instead of _NSIG. 
6856         * libc/sys/linux/sigaction.c: New file.
6857         * libc/sys/linux/signal.c: Changed to be linux signal() function
6858         so as to override regular newlib default signal.c.
6859         * libc/sys/linux/machine/i386/Makefile.am: Remove sigset.c.
6860         * libc/sys/linux/machine/i386/Makefile.in: Regenerated.
6861         * libc/sys/linux/machine/i386/sigset.c: Moved to linux main directory.
6862         * libc/sys/linux/sigset.c: Moved from machine/i386 directory.
6863         * libc/sys/linux/sys/signal.h: Redefine NSIG to _NSIG and override
6864         default linux sigset_t typedef by defining it equal to __sigset_t.
6865         * libc/unix/sigset.c: Add check so code isn't compiled on systems
6866         with a sigset_t that isn't implemented with a single int.
6867
6868 2002-05-30  Jeff Johnston  <jjohnstn@redhat.com>
6869
6870         * libc/sys/linux/Makefile.am: Add support for new files.
6871         * libc/sys/linux/Makefile.in: Regenerated.
6872         * libc/sys/linux/ids.c: Add __getuid weak alias for getuid.
6873         * libc/sys/linux/signal.c: Change to use real-time syscalls for
6874         sigsuspend, sigprocmask, and sigpending.  Also remove sigaction as
6875         it is in a separate file now.
6876         * libc/sys/linux/machine/i386/Makefile.am
6877         * libc/sys/linux/machine/i386/Makefile.in
6878         * libc/sys/linux/sys/signal.h: Add include of <bits/signum.h>.
6879         * libc/sys/linux/sigaction.c: New file.
6880         * libc/sys/linux/sigqueue.c: Ditto.
6881         * libc/sys/linux/sigwait.c: Ditto.
6882         * libc/sys/linux/machine/i386/sigaction.c: Ditto.
6883         * libc/sys/linux/kernel_sigaction.h: Ditto.
6884
6885 2002-05-28  Jeff Johnston  <jjohnstn@redhat.com>
6886
6887         * libc/sys/linux/Makefile.am: Add support for cfspeed.c and
6888         tcsendbrk.c.
6889         * libc/sys/linux/Makefile.in: Regenerated.
6890         * libc/sys/linux/termios.c: Add tcflow(), tcflush(),
6891         tcgetpgrp(), and tcsetpgrp() functions.
6892         * libc/sys/linux/sys/termios.h: Add include of machine/termios.h
6893         to get __MAX_BAUD rate.
6894         * libc/sys/linux/machine/i386/include/termios.h: New file.
6895         * libc/include/machine/termios.h: Ditto.
6896         * libc/sys/linux/cfspeed.c: Ditto.
6897         * libc/sys/linux/tcsendbrk.c: Ditto.
6898
6899 2002-05-24  Jeff Johnston  <jjohnstn@redhat.com>
6900
6901         * libc/include/string.h: Add strnlen and strerror_r prototypes.
6902         * libc/string/Makefile.am: Add strnlen.c and strerror_r.c support.
6903         * libc/string/Makefile.in: Regenerated.
6904         * libc/string/strerror_r.c: New file.
6905         * libc/string/strnlen.c: New file.
6906         * libc/sys/linux/Makefile.am: Add rename.c.
6907         * libc/sys/linux/Makefile.in: Regenerated.
6908         * libc/sys/linux/rename.c: New file to override default rename.
6909
6910 2002-05-24  Thomas Fitzsimmons  <fitzsim@redhat.com>
6911
6912         * libc/sys/linux/sys/cdefs.h: Add __weak_reference macros.
6913         * libc/sys/linux/sys/time.h: Add conversion macros.
6914         * libc/sys/linux/sys/types.h: Add FD_ macros.  Include <bits/types.h>.
6915         * libc/sys/linux/ids.c: Add setresuid and syslog syscalls.
6916         * libc/sys/linux/gethostname.c: New file.
6917         * libc/sys/linux/seteuid.c: New file.
6918         * libc/sys/linux/sysctl.c: New file.
6919         
6920 2002-05-23  Jeff Johnston  <jjohnstn@redhat.com>
6921
6922         * libc/string/Makefile.am: Add support for strsep.c.
6923         * libc/string/Makefile.in: Regenerated.
6924         * libc/string/strsep.c: New file.
6925         * libc/string/strtok.c: Change to call __strtok_r service routine.
6926         * libc/string/strtok_r.c: Add __strtok_r routine which takes
6927         additional flag parameter regarding whether to skip leading delimeters.
6928         Change strtok_r to call __strtok_r.
6929
6930 2002-05-23  Gareth Pearce  <tilps@hotmail.com>
6931
6932         * libc/stdio/Makefile.am: Modify to add setbuffer.c and setlinebuf.c.
6933         * libc/stdio/Makefile.in: Regenerated.
6934         * libc/stdio/setbuffer.c: New file.
6935         * libc/stdio/setlinebuf.c: New file.
6936
6937 2002-05-23  Jeff Johnston  <jjohnstn@redhat.com>
6938
6939         * libc/sys/linux/Makefile.am: Add resource.c.
6940         * libc/sys/linux/Makefile.in: Regenerated.
6941         * libc/sys/linux/resource.c: New file.
6942         * libc/sys/linux/time.c: Add settimeofday, getitimer, and setitimer.
6943         * libc/sys/linux/machine/i386/Makefile.am: Remove syscalls.c.
6944         * libc/sys/linux/machine/i386/Makefile.in: Regenerated.
6945         * libc/sys/linux/machine/i386/syscalls.c: Removed as functions
6946         are now found in libc/sys/linux/resource.c.
6947
6948 2002-05-23  Jeff Johnston  <jjohnstn@redhat.com>
6949
6950         * libc/include/string.h (bcmp, bcopy, bzero): Change prototypes
6951         to use void * pointers and comply with Single Unix spec.
6952         * libc/string/bcmp.c: Change to use void * instead of char *.
6953         * libc/string/bcopy.c: Ditto.
6954         * libc/string/bzero.c: Ditto.
6955
6956 2002-05-22  Jeff Johnston  <jjohnstn@redhat.com>
6957
6958         * libc/sys/linux/shm_open.c: New file.
6959         * libc/sys/linux/shm_unlink.c: Ditto.
6960         * libc/sys/linux/Makefile.am: Add support for shm_open.c and
6961         shm_unlink.c.
6962         * libc/sys/linux/Makefile.in: Regenerated.
6963         * libc/sys/linux/sys/types.h: Add some additional checks to see
6964         if clock_t or time_t is already defined.
6965
6966 2002-05-22  Jeff Johnston  <jjohnstn@redhat.com>
6967
6968         * Makefile.am: Don't pass $toollibdir down directly in
6969         AM_MAKEFLAGS as it causes all multilibs to use the same toollibdir.
6970         Pass it under the name: top_toollibdir.
6971         * Makefile.in: Regenerated.
6972
6973 2002-05-22  Corinna Vinschen  <vinschen@redhat.com>
6974
6975         * libc/include/sys/types.h: Revert previous patch.
6976
6977 2002-05-22  Corinna Vinschen  <vinschen@redhat.com>
6978
6979         * libc/include/sys/types.h: Include cygwin/types.h always under
6980         Cygwin, not only if _POSIX_THREADS is defined.
6981
6982 2002-05-21 Dhananjay Deshpande <dhananjayd@kpit.com>
6983
6984         * configure.host: Specify sys_dir=h8300hms for h8300-*-coff* target.
6985
6986 2002-05-17  Jeff Johnston  <jjohnstn@redhat.com>
6987
6988         * Makefile.am: Copy and install headers from sys/machine/include
6989         directory.  Also pass $toollibdir to lower-level directories.
6990         * Makefile.in: Regenerated.
6991         * libc/include/stdio.h[!_REENT_ONLY]: Change stdin, stdout, and 
6992         stderr to use _REENT macro instead of _impure_ptr directly.
6993         * libc/include/sys/config.h[__i386__][__linux__]: Define
6994         __DYNAMIC_REENT__.
6995         * libc/include/sys/reent.h[!_REENT_ONLY]: Change _REENT macro to be 
6996         call to __getreent() function if !__SINGLE_THREAD__ and
6997         __DYNAMIC_REENT__ is set.
6998         * libc/reent/Makefile.am: Add support for getreent.c.
6999         * libc/reent/Makefile.in: Regenerated.
7000         * libc/string/strerror.c: Add check if EOPNOTSUPP and ENOTSUP are same.
7001         * libc/sys/linux/Makefile.am: Add support for new files.
7002         * libc/sys/linux/configure.in: Add $EXTRA_DIRS variable.
7003         * libc/sys/linux/Makefile.in: Regenerated.
7004         * libc/sys/linux/configure: Ditto.
7005         * libc/sys/linux/io.c: Add poll syscall.  Also weak-alias
7006         __close, __read, __write, __poll, __open, __lseek, __fcntl from
7007         their __libc_ counterparts.
7008         * libc/sys/linux/io64.c: Add __libc_ prefix to lseek64 and open64
7009         and weak-alias to regular names.
7010         * libc/sys/linux/pread64.c: Rename to __libc_pread64 and weak-alias
7011         to pread64 and __pread64.
7012         * libc/sys/linux/process.c: Weak_alias __libc_getpid to __getpid.
7013         * libc/sys/linux/pwrite64.c: Rename to __libc_pwrite64 and
7014         weak-alias to pwrite64.
7015         * libc/sys/linux/sched.c: Weak-alias __libc_sched_getparam,
7016         __libc_sched_getscheduler, __libc_sched_get_priority_max,
7017         __libc_sched_get_priority_min, and __libc_sched_setschedule to
7018         name with __ instead of __libc_. 
7019         * libc/sys/linux/siglongjmp.c: Include <machine/weakalias.h>.
7020         Rename siglongjmp to __libc_siglongjmp and weak-alias to siglongjmp.
7021         Call __libc_longjmp instead of longjmp, from __libc_siglongjmp.
7022         * libc/sys/linux/signal.c: Rename raise to __libc_raise and weak-alias
7023         to raise.
7024         * libc/sys/linux/socket.c: Weak-alias __libc_connect to __connect and
7025         __libc_send to __send.
7026         * libc/sys/linux/time.c: Weak-alias __libc_gettimeofday to
7027         __gettimeofday.
7028         * libc/sys/linux/wait.c: Rename wait to __libc_wait and weak-alias
7029         it to wait.  Rename wait3 to __libc_wait3 and weak-alias it to wait3.
7030         * libc/sys/linux/include/setjmp.h: Use __jmp_buf in sigjmp_buf
7031         type and typedef __jmp_buf to jmp_buf.
7032         * libc/sys/linux/machine/i386/Makefile.am: Add syscalls.c and
7033         setjmp.S.
7034         * libc/sys/linux/machine/i386/Makefile.in: Regenerated.
7035         * libc/sys/linux/machine/i386/crt0.c: Add support to clear .bss
7036         section.
7037         * libc/sys/linux/machine/i386/socketcall.h: Change to use __libc_
7038         prefix for function macros and then use weak_alias() to regular names.
7039         * libc/sys/linux/machine/i386/syscall.h: Ditto.
7040         * libc/sys/linux/sys/errno.h: Define EOPNOTSUP to be ENOTSUP.
7041         * libc/sys/linux/sys/stdio.h: Define _flockfile and _funlockfile
7042         to be flockfile() and funlockfile() respectively.
7043         * libc/sys/linux/sys/types.h
7044         * libc/reent/getreent.c: New file.
7045         * libc/sys/linux/flockfile.c: Ditto.
7046         * libc/sys/linux/funlockfile.c: Ditto.
7047         * libc/sys/linux/getreent.c: Ditto.
7048         * libc/sys/linux/pread.c: Ditto.
7049         * libc/sys/linux/pwrite.c: Ditto.
7050         * libc/sys/linux/raise.c: Ditto.
7051         * libc/sys/linux/system.c: Ditto.
7052         * libc/sys/linux/tcdrain.c: Ditto.
7053         * libc/sys/linux/machine/i386/i386mach.h: Ditto.
7054         * libc/sys/linux/machine/i386/setjmp.S: Ditto.
7055         * libc/sys/linux/machine/i386/syscalls.c: Ditto.
7056         * libc/sys/linux/machine/i386/weakalias.h: Ditto.
7057         * libc/sys/linux/machine/i386/include/setjmp.h: Ditto.
7058
7059 2002-05-14 Dhananjay Deshpande <dhananjayd@kpit.com>
7060
7061         * newlib/libc/sys/h8300hms/Makeile.am (lib_a_SOURCES): Add read.c.
7062         * newlib/libc/sys/h8300hms/read.c: New file.  Magic trap 0xC8 for sim.
7063         * newlib/libc/sys/h8300hms/syscalls.c: Move _read() to read.c.
7064         * newlib/libs/sys/h8300hms/sys/syscall.h: New file.
7065
7066 Thu May 16 17:24:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
7067
7068         * libc/machine/sh/strcpy.S (strcpy): Replace LITTLE_ENDIAN with
7069         __LITTLE_ENDIAN__.  make sure r0 has right value at first loop
7070         exit point.
7071
7072 2002-05-15  Thomas Fitzsimmons  <fitzsim@redhat.com>
7073
7074         * testsuite/lib/newlib.exp: Add newlib_include_flags to compile
7075         options when testing natively on i[3456]86-*-linux.
7076
7077         * testsuite/lib/checkoutput.exp (newlib_check_output): Output
7078         only one pass or fail per test file.  Trim \r's from output
7079         values received from test programs.  Remove support for named
7080         tests.
7081         * testsuite/newlib.locale/UTF-8.exp: Update to support new
7082         newlib_check_output behaviour.
7083         * testsuite/newlib.locale/UTF-8.c: Likewise.
7084
7085 2002-05-15  Jeff Johnston  <jjohnstn@redhat.com>
7086
7087         * libc/include/stdlib.h: Add on_exit prototype.
7088         * libc/include/sys/reent.h (struct _atexit): Add argument array
7089         and bits to track type of exit routine to support both on_exit
7090         and atexit.
7091         (_REENT_INIT_PTR): Add missing fields that won't be zeroed out
7092         by default and change the setting of the atexit structure.
7093         (_REENT_INIT)[!_REENT_SMALL]: Remove extraneous end brace.
7094         * libc/stdlib/on_exit.c: New file.
7095         * libc/stdlib/Makefile.am: Add support for on_exit.
7096         * libc/stdlib/Makefile.in: Regenerated.
7097         * libc/stdlib/atexit.c: Change to initialize types field.
7098         * libc/stdlib/exit.c: Change to look at types field for each
7099         exit routine and either call an atexit-style or an on_exit-style
7100         routine accordingly.
7101
7102 2002-05-13  Jeff Johnston  <jjohnstn@redhat.com>
7103
7104         * libc/machine/powerpc/vfprintf.c(__VFPRINTF_R)[__ALTIVEC__]: Don't
7105         allow v specifier with n or L specifiers.  For vector c format,
7106         move tmp declaration to the top.
7107
7108 2002-05-13  Jeff Johnston  <jjohnstn@redhat.com>
7109
7110         * libc/machine/powerpc/vfprintf.c(__VFPRINTF_R)[__ALTIVEC__]: Restore
7111         the original format specifier when looping for vectors to compensate
7112         for any changes made in vector %g format processing.
7113         Also add syntax checking for various invalid scenarios
7114         involving vector format extensions.
7115         * libc/machine/powerpc/vfscanf.c(__VFSCANF_R)[__ALTIVEC__]: Fix
7116         return code setting for vector formats.  Also treat vector
7117         separator mismatch as a match error instead of an input error.
7118         Perform some syntax checking for vector formats.
7119
7120 2002-05-10  Mark Bradshaw  <bradshaw@staff.crosswalk.com>
7121
7122         * libc/include/string.h (!__STRICT_ANSI__): Add strlcat and strlcpy.
7123         * libc/string/Makefile.am: Add strlcat.c and strlcpy.c.
7124         * libc/string/strlcat.c: New file.
7125         * libc/string/strlcpy.c: New file.
7126
7127 2002-05-10  Jeff Johnston  <jjohnstn@redhat.com>
7128
7129         * libc/string/strchr.c: Fix comment typo.
7130
7131 2002-05-08  Thomas Fitzsimmons  <fitzsim@redhat.com>
7132
7133         * acinclude.m4: Add support for --enable-newlib-multithread.
7134         * configure.host (newlib_cflags): Add -D__SINGLE_THREAD__ if
7135         --enable-newlib-multithread=no.
7136
7137         * libc/stdio/getc_u.c: New file.
7138         * libc/stdio/getchar_u.c: New file.
7139         * libc/stdio/putc_u.c: New file.
7140         * libc/stdio/putchar_u.c: New file.
7141         * libc/include/stdio.h: Add declarations for getc_unlocked,
7142         getchar_unlocked, putc_unlocked and putchar_unlocked.
7143         * libc/stdio/Makefile.am (LIB_SOURCES): Add new files.
7144         (CHEWOUT_FILES): Add new files' .def's.
7145         * libc/stdio/putchar.c (_putchar_r): Replace __sputc with putc.
7146
7147 Wed May  8 17:47:35 2002  J"orn Rennecke <joern.rennecke@superh.com>
7148
7149         * libc/machine/sh/memset.S (memset, __SHMEDIA__ code):
7150         Also handle as single quad word when destination ends at last
7151         byte of first quad word.  Fix byte selection in single quad code.
7152
7153 2002-05-07  Thomas Fitzsimmons  <fitzsim@redhat.com>
7154
7155         * libc/include/sys/stdio.h: New file.
7156         * libc/sys/linux/sys/stdio.h: New file.
7157         * libc/include/stdio.h: Add declarations for flockfile,
7158         ftrylockfile, and funlockfile.  Include <sys/stdio.h>.
7159         * libc/stdio/clearerr.c: Add file locking.
7160         * libc/stdio/fclose.c: Likewise.
7161         * libc/stdio/feof.c: Likewise.
7162         * libc/stdio/ferror.c: Likewise.
7163         * libc/stdio/fflush.c: Likewise.
7164         * libc/stdio/fgetc.c: Likewise.
7165         * libc/stdio/fgetpos.c: Likewise.
7166         * libc/stdio/fgets.c: Likewise.
7167         * libc/stdio/fileno.c: Likewise.
7168         * libc/stdio/fputc.c: Likewise.
7169         * libc/stdio/fputs.c: Likewise.
7170         * libc/stdio/fread.c: Likewise.
7171         * libc/stdio/freopen.c: Likewise.
7172         * libc/stdio/fseek.c: Likewise.
7173         * libc/stdio/ftell.c: Likewise.
7174         * libc/stdio/fwrite.c: Likewise.
7175         * libc/stdio/getc.c: Likewise.
7176         * libc/stdio/putc.c: Likewise.
7177         * libc/stdio/setvbuf.c: Likewise.
7178         * libc/stdio/ungetc.c: Likewise.
7179         * libc/stdio/vfprintf.c: Likewise.
7180
7181 2002-05-06  Jeff Johnston  <jjohnstn@redhat.com>
7182
7183         * libc/machine/powerpc/vfprintf.c[__ALTIVEC__]: Add vector
7184         support for 'p' format.  Fix code to print bytes for vector
7185         integer formats that do not specify 'h' or 'l'.
7186         * libc/machine/powerpc/vfscanf.c[__ALTIVEC__]: Add vector support
7187         for 'p' specifier.  Fix code to scan 16 bytes for vector integer
7188         formats that do not specify 'h' or 'l'.
7189
7190         * libc/include/stdlib.h (a64l, l64a, _l64a_r): Added prototypes.
7191
7192 2002-05-06  Nick Clifton  <nickc@cambridge.redhat.com>
7193
7194         * libc/sys/arm/syscalls.c (_rename): Add parameter names.
7195         (_sbrk): Add cast of return value.
7196
7197 2002-05-06  Jeff Johnston  <jjohnstn@redhat.com>
7198
7199         *  libc/include/sys/reent.h (_l64a_buf): New reentrant area.
7200         (_REENT_L64A_BUF): New macro for accessing area.
7201         *  libc/stdlib/Makefile.am: Add a64l.c and l64a.c.
7202         *  libc/stdlib/Makefile.in: Regenerated.
7203         *  libc/stdlib/a64l.c: New file.
7204         *  libc/stdlib/l64a.c: New file.
7205
7206 2002-05-06  Jeff Johnston  <jjohnstn@redhat.com>
7207
7208         * libc/unix/pread.c: Fix typo for _pread_r.
7209         * libc/unix/pwrite.c: Fix type for _pwrite_r.
7210         * libc/sys/linux/pread64.c: Fix typo for read syscall.
7211         * libc/sys/linux/pwrite64.c: Fix typo for write syscall.
7212
7213 2002-05-03  Christopher Faylor  <cgf@redhat.com>
7214
7215         * libc/include/sys/unistd.h: Define getdomainname under cygwin.
7216
7217 2002-05-03  Thomas Fitzsimmons  <fitzsim@redhat.com>
7218
7219         * configure.in (CC_FOR_NEWLIB): Change -isystem's to -I's.
7220
7221 2002-05-01  Christopher Faylor  <cgf@redhat.com>
7222
7223         * utmp.h: Define more UNIX constants.
7224
7225 2002-05-01  Thomas Fitzsimmons  <fitzsim@redhat.com>
7226
7227         * Makefile.am: Add support for checking multilibs.
7228
7229         * libc/Makefile.am (SUBLIBS): Add LIBC_EXTRA_LIB.
7230         (SUBDEFS): Add LIBC_EXTRA_DEF.
7231         * libc/configure.in (LIBC_EXTRA_LIB): New variable.
7232         (LIBC_EXTRA_DEF): Likewise.
7233         (extra_dir): Likewise.
7234         * libc/machine/xscale/machine: New directory.
7235         * libc/machine/xscale/machine/profile.h: New file.
7236
7237         * Makefile.am (site.exp): Remove newlib_cflags.  Add
7238         multibuildtop.
7239         * testsuite/newlib.locale/UTF-8.c: Change fprintf's to printf's.
7240         * testsuite/lib/flags.exp: New file.
7241         * testsuite/lib/newlib.exp: Load flags.exp.
7242         (newlib_target_compile): Remove libgloss directory references.
7243         (newlib_init): Remove newlib_cflags references.
7244
7245 2002-04-30  Thomas Fitzsimmons  <fitzsim@redhat.com>
7246
7247         * testsuite/lib/newlib.exp (newlib_target_compile): Change
7248         method of finding libgloss_target_dir.
7249
7250         * Makefile.am (site.exp): Change host_alias, host_triplet,
7251         target_alias, target_triplet to refer to gcc's host and target
7252         variables (newlib's build and host variables).
7253         * testsuite/lib/newlib.exp (newlib_init): Change build
7254         references to host references, host references to target
7255         references to reflect Makefile.am changes.
7256         (newlib_target_compile): Likewise.
7257         (newlib_finish): Likewise.
7258
7259 2002-04-29  Jeff Johnston  <jjohnstn@redhat.com>
7260
7261         * libc/sys/linux/io64.c (fstat64, lstat64): New syscalls added.
7262
7263 2002-04-29  Jonathan Larmour  <jlarmour@redhat.com>
7264
7265         * libc/sys/arm/syscalls.c (_rename): New function. Just a stub.
7266         (_system): New function. Ditto.
7267         * libc/stdlib/system.c (_system_r): Call _system if HAVE_SYSTEM.
7268         * configure.host: define HAVE_SYSTEM and HAVE_RENAME for xscale
7269         targets.
7270
7271 2002-04-29  Jeff Johnston  <jjohnstn@redhat.com>
7272
7273         *  libc/include/sys/unistd.h (pread, pwrite): Added prototypes.
7274         *  libc/unix/Makefile.am: Add pread.c and pwrite.c.
7275         *  libc/sys/linux/Makefile.am: Add pread64.c and pwrite64.c.
7276         *  libc/sys/linux/Makefile.in: Regenerated.
7277         *  libc/unix/Makefile.in: Ditto.
7278         *  libc/sys/linux/pread64.c: New file.
7279         *  libc/sys/linux/pwrite64.c: Ditto.
7280         *  libc/unix/pread.c: Ditto.
7281         *  libc/unix/pwrite.c: Ditto.
7282
7283 2002-04-26  Jeff Johnston  <jjohnstn@redhat.com>
7284
7285         *  libc/sys/linux/Makefile.am: Add io64.c.
7286         *  libc/sys/linux/Makefile.in: Regenerated.
7287         *  libc/sys/linux/io.c(mkfifo, fsync, fdatasync): Added syscalls.
7288         *  libc/sys/linux/signal.c (sigwaitinfo, sigtimedwait): Ditto. 
7289         *  libc/sys/linux/io64.c: New file.
7290
7291 2002-04-26  Jeff Johnston  <jjohnstn@redhat.com>
7292
7293         * configure.in (CC_FOR_NEWLIB): New variable that
7294         bases on $(CC) and adds targ-include and libc/include as
7295         -isystem directives if they are not already part of $(CC).
7296         * Makefile.am (AM_MAKEFLAGS): Change setting of CC to equal
7297         $(CC_FOR_NEWLIB).
7298         * configure: Regenerated.
7299         * Makefile.in: Ditto.
7300
7301 2002-04-25  Jeff Johnston  <jjohnstn@redhat.com>
7302
7303         *  libc/sys/linux/Makefile.am: Add support for sched.c.
7304         *  libc/sys/linux/Makefile.in: Regenerated.
7305         *  libc/sys/linux/sched.c: New file.
7306         *  libc/sys/linux/sys/types.h: Add struct timespec.
7307
7308 2002-04-25  Thomas Fitzsimmons  <fitzsim@redhat.com>
7309
7310         * configure.in (CC_FOR_BUILD): Set to gcc whether
7311         cross-compiling or not.
7312         (CC): Add -isystem's for targ-include and libc/include when they
7313         do not already appear in CC.
7314
7315 2002-04-24  Thomas Fitzsimmons  <fitzsim@redhat.com>
7316
7317         * Makefile.am (check-DEJAGNU): New target.
7318         (site.exp): Likewise.
7319         * acinclude.m4 (NEWLIB_CONFIGURE): Replace AC_CANONICAL_HOST
7320         with AC_CANONICAL_SYSTEM.  Remove AC_CANONICAL_BUILD.
7321         * libc/locale/locale.c (_setlocale_r): Add UTF-8 support.
7322         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Likewise.
7323         * libc/stdlib/wctomb_r.c (_wctomb_r): Likewise.
7324         * testsuite: New directory.
7325         * testsuite/config: Likewise.
7326         * testsuite/lib: Likewise.
7327         * testsuite/newlib.locale: Likewise.
7328         * testsuite/newlib.string: Likewise.
7329         * testsuite/config/default.exp: New file.
7330         * testsuite/lib/checkoutput.exp: New file.
7331         * testsuite/lib/newlib.exp: New file.
7332         * testsuite/lib/passfail.exp: New file.
7333         * testsuite/newlib.locale/UTF-8.c: New file.
7334         * testsuite/newlib.locale/UTF-8.exp: New file.
7335         * testsuite/newlib.locale/locale.exp: New file.
7336         * testsuite/newlib.string/string.exp: New file.
7337         * testsuite/newlib.string/tstring.c: New file.
7338
7339 2002-04-23  Jeff Johnston  <jjohnstn@redhat.com>
7340
7341         *  libc/include/machine/types.h (__pid_t, __off_t, __loff_t): Added.
7342         *  libc/sys/linux/Makefile.am: Add support for mmap.c.
7343         *  libc/sys/linux/Makefile.in: Regenerated.
7344         *  libc/sys/linux/mmap.c: New file.
7345         *  libc/sys/linux/machine/i386/syscall.h: Add _syscall6 macro.
7346         *  libc/sys/linux/sys/types.h (pid_t, off_t, loff_t): Added.
7347
7348 2002-04-22  Thomas Fitzsimmons  <fitzsim@redhat.com>
7349
7350         * acinclude.m4 (newlib_cflags): Remove include directories that
7351         are already specified in the top-level configure.in's FLAGS_FOR_TARGET.
7352
7353 2002-04-19  Bill Siegmund  <ctc-dsl@pacbell.net>
7354
7355         * libc/machine/xscale/memchr.c: Don't use multi-line strings.
7356         * libc/machine/xscale/memcmp.c: Ditto.
7357         * libc/machine/xscale/memcpy.c: Ditto.
7358         * libc/machine/xscale/memmove.c: Ditto.
7359         * libc/machine/xscale/memset.c: Ditto.
7360         * libc/machine/xscale/strchr.c: Ditto.
7361         * libc/machine/xscale/strcmp.c: Ditto.
7362         * libc/machine/xscale/strcpy.c: Ditto.
7363         * libc/machine/xscale/strlen.c: Ditto.
7364
7365 2002-04-19  Alexandre Oliva  <aoliva@redhat.com>
7366
7367         * libc/include/sys/config.h: Remove include of <limits.h>.
7368         (__INT_MAX__, __LONG_MAX__): Define like GCC's limits.h would
7369         define INT_MAX and LONG_MAX.  Use them in tests.
7370
7371 2002-04-19  Jeff Johnston  <jjohnstn@redhat.com>
7372
7373         *  configure.host: Add support for powerpc-eabialtivec*.
7374         *  libc/include/malloc.h: Add include of <machine/malloc.h>.
7375         *  libc/include/stdlib.h: Add include of <machine/stdlib.h>.
7376         *  libc/include/machine/malloc.h: New file.
7377         *  libc/include/machine/stdlib.h: Ditto.
7378         *  libc/include/machine/setjmp.h: Add support for powerpc altivec.
7379         *  libc/machine/powerpc/Makefile.am: Add conditional objects and
7380         sources based on configuration.
7381         *  libc/machine/powerpc/Makefile.in: Regenerated.
7382         *  libc/machine/powerpc/configure: Ditto.
7383         *  libc/machine/powerpc/configure.in: Add check for
7384         powerpc-eabialtivec* in which case add in additional source files.
7385         *  libc/machine/powerpc/setjmp.S: Add altivec support.
7386         *  libc/machine/powerpc/vec_calloc.c: New file.
7387         *  libc/machine/powerpc/vec_free.c: Ditto.
7388         *  libc/machine/powerpc/vec_malloc.c: Ditto.
7389         *  libc/machine/powerpc/vec_mallocr.c: Ditto.
7390         *  libc/machine/powerpc/vec_realloc.c: Ditto.
7391         *  libc/machine/powerpc/machine/malloc.h: Ditto.
7392         *  libc/machine/powerpc/machine/stdlib.h: Ditto.
7393         *  libc/machine/powerpc/vfprintf.c: New file that is vfprintf.c
7394         with added altivec format specifiers.
7395         *  libc/machine/powerpc/vfscanf.c: New file that is vfscanf.c with
7396         added altivec format specifiers.
7397
7398 2002-04-19      Joel Sherrill <joel@OARcorp.com>
7399
7400         * libs/sys/rtems/crt0.c: Satisfy gcc's references to libc functions
7401         while autoconf is trying to link main(){}.
7402
7403 2002-04-17  Jeff Johnston  <jjohnstn@redhat.com>
7404
7405         * libc/sys/linux/signal.c: Remove include of <bits/sigset.h>.
7406         * libc/sys/linux/sys/signal.h: Add include of <bits/sigset.h>.
7407
7408 2002-04-17  Jeff Johnston  <jjohnstn@redhat.com>
7409
7410         * libc/time/time.tex: Add tzset info.
7411
7412 2002-04-17  Jeff Johnston  <jjohnstn@redhat.com>
7413
7414         * libc/include/time.h (tzset, _tzset_r): Added prototypes.
7415         (strptime): Moved prototype to be within !__STRICT_ANSI__.
7416         (_tzname, _daylight, _timezone): No long __CYGWIN__ only.
7417         (tzname): Defined for all platforms.
7418         (daylight, timezone): Defined only for CYGWIN.
7419         * libc/sys/linux/machine/i386/crt0.c: Add call to tzset() after
7420         environment set up.
7421         * libc/stdlib/setenv_r.c (_setenv_r): Call tzset() if the TZ
7422         environment variable is set.
7423         * libc/time/Makefile.am: Add support for tzset.c, tzlock.c, and
7424         tzset_r.c.
7425         * libc/time/Makefile.in: Regenerated.
7426         * libc/time/gmtime.c (gmtime): Changed to call gmtime_r.
7427         * libc/time/gmtime_r.c (gmtime_r): Changed to call _mktm_r.
7428         * libc/time/lcltime_r.c (lcltime_r): Ditto.
7429         * libc/time/local.h: New local header file.
7430         * libc/time/mktime.c (mktime): Add timezone support.
7431         * libc/time/mktm_r.c: New file which is the common engine
7432         for gmtime_r and lcltime_r.  This code has timezone support.
7433         * libc/time/strftime.c (strftime): Add %Z timezone support.
7434         * libc/time/tzlock.c: New file containing timezone lock stubs.
7435         * libc/time/tzset.c: New file containing tzset() routine.
7436         * libc/time/tzset_r.c: New file containing _tzset_r and
7437         internal routine for calculating timezone changes for specified year.
7438
7439 2002-04-17  Thomas Fitzsimmons  <fitzsim@redhat.com>
7440
7441         * configure.in (CRT0_DIR): Set to libc/.
7442         (CRT1_DIR): Set to ${crt1_dir}/ if crt1_dir is non-empty.
7443         * Makefile.am: Change all occurrences of $(CRT0_DIR)/$(CRT0) to
7444         $(CRT0_DIR)$(CRT0) to prevent make warnings.  Likewise for
7445         $(CRT1_DIR)/$(CRT1).
7446         * libc/machine/xstormy16/Makefile.in: Regenerated.
7447         * libc/machine/xstormy16/aclocal.m4: Regenerated.
7448         * libc/machine/xstormy16/configure: Regenerated.
7449
7450 2002-04-13  Alexandre Oliva  <aoliva@redhat.com>
7451
7452         * libc/stdlib/mallocr.c (malloc_extend_top): If correction sbrk
7453         fails, don't bail out, and try to correct next time.
7454
7455         * libc/include/sys/config.h: Include limits.h.
7456
7457 2002-04-12  Eric Norum  <eric.norum@usask.com>
7458
7459         * libc/sys/rtems/crt0.c (rtems_gxx_mutex_init): Dummy
7460         routine to allow autoconf to determine that building executables
7461         for rtems works.
7462         (rtems_gxx_mutex_lock, rtems_gxx_mutex_unlock): Ditto.
7463         (rtems_gxx_mutex_once): Ditto.
7464
7465 2002-04-09  Tom Rix  <trix@redhat.com>
7466
7467         * libc/include/sys/reent.h (_REENT_INIT_PTR): Fix typo.
7468
7469 2002-04-09  Mark Bradshaw  <bradshaw@staff.crosswalk.com>
7470
7471         * libc/include/time.h: Fix strptime declaration.
7472         * libc/time/Makefile.am: Add strptime.c.
7473         * libc/time/Makefile.in: Regenerated.
7474         * libc/time/strptime.c: New file.
7475
7476 2002-04-08  Jeff Johnston  <jjohnstn@redhat.com>
7477
7478         * libc/sys/linux/include/setjmp.h: Add sigjmp_buf type,
7479         siglongjmp prototype, and sigsetjmp macro definition.
7480         * libc/sys/linux/siglongjmp.c: New file.
7481         * libc/sys/linux/Makefile.am: Add support for siglongjmp.
7482         * libc/sys/linux/Makefile.in: Regenerated.
7483
7484 2002-04-04  Jeff Johnston  <jjohnstn@redhat.com>
7485
7486         * Makefile.am: Add support for installing crt1.o if one exists.
7487         * configure.host: Specify crt1.o for linux.
7488         * configure.in: Expose CRT1 and CRT1_DIR for Makefile.am to use.
7489         * Makefile.in: Regenerated.
7490         * configure: Ditto.
7491         * libc/include/sys/unistd.h (_SC_STREAM_MAX, _SC_PRIORITY_SCHEDULING):
7492         Added for non-Cygwin, non-RTEMS configurations.
7493         * libc/sys/linux/Makefile.am: Add support for crt1 and sysconf.
7494         * libc/sys/linux/Makefile.in: Regenerated.
7495         * libc/sys/linux/crt1.c: New empty file to override one defaulted
7496         by gcc.  This fixes problem with reconfiguring linux newlib build.
7497         * libc/sys/linux/sysconf.c: New file.
7498
7499 2002-04-03  Jeff Johnston  <jjohnstn@redhat.com>
7500
7501         * configure.host: Add support for machine subdirectory of
7502         sys subdirectory.
7503         * configure.in: Add check for sys machine subdirectory.
7504         * Makefile.am: Ditto.
7505         * configure: Regenerated.
7506         * Makefile.in: Ditto.
7507         * libc/sys/linux/crt0.c: Moved to machine/i386 directory.
7508         * libc/sys/linux/sys/syscall.h: Ditto.
7509         * libc/sys/linux/sleep.c: New file.
7510         * libc/sys/linux/socket.c: Ditto.
7511         * libc/sys/linux/sockops.h: Ditto.
7512         * libc/sys/linux/stack.c: Ditto.
7513         * libc/sys/linux/usleep.c: Ditto.
7514         * libc/sys/linux/machine/Makefile.am: Ditto.
7515         * libc/sys/linux/machine/Makefile.in: Ditto.
7516         * libc/sys/linux/machine/aclocal.m4: Ditto.
7517         * libc/sys/linux/machine/configure: Ditto.
7518         * libc/sys/linux/machine/configure.in: Ditto.
7519         * libc/sys/linux/machine/i386/Makefile.am: Ditto.
7520         * libc/sys/linux/machine/i386/Makefile.in: Ditto.
7521         * libc/sys/linux/machine/i386/aclocal.m4: Ditto.
7522         * libc/sys/linux/machine/i386/configure: Ditto.
7523         * libc/sys/linux/machine/i386/configure.in: Ditto.
7524         * libc/sys/linux/machine/i386/crt0.c: Ditto.
7525         * libc/sys/linux/machine/i386/sigset.c: Ditto.
7526         * libc/sys/linux/machine/i386/sigstack.h: Ditto.
7527         * libc/sys/linux/machine/i386/socketcall.h: Ditto.
7528         * libc/sys/linux/machine/i386/syscall.h: Ditto.
7529         * libc/sys/linux/sys/select.h: Ditto.
7530         * libc/sys/linux/configure.in: Add support for machine directory.
7531         * libc/sys/linux/Makefile.am: Ditto plus add new files above.
7532         * libc/sys/linux/Makefile.in: Regenerated.
7533         * libc/sys/linux/configure: Ditto.
7534         * libc/sys/linux/brk.c: Use machine/syscall.h instead of sys/syscall.h.
7535         * libc/sys/linux/inode.c: Ditto.
7536         * libc/sys/linux/linux.c: Ditto.
7537         * libc/sys/linux/process.c: Ditto.
7538         * libc/sys/linux/systat.c: Ditto.
7539         * libc/sys/linux/time.c: Ditto.
7540         * libc/sys/linux/wait.c: Ditto.
7541         * libc/sys/linux/ids.c: Change header plus add setfsgid/setfsuid.
7542         * libc/sys/linux/io.c: Change header plus add readv/writev.
7543         * libc/sys/linux/signal.c: Change header plus change sigsuspend to
7544         use __sigsuspend syscall.
7545         * libc/sys/linux/select.c: Change header plus change select to
7546         use _newselect syscall.
7547         * libc/sys/linux/sys/cdefs.h: Add a number of standard definitions
7548         used by glibc header files.
7549         * libc/sys/linux/sys/types.h: Add __socklen_t and __useconds_t
7550         types.
7551
7552 2002-04-01  Jeff Johnston  <jjohnstn@redhat.com>
7553
7554         * libc/include/sys/reent.h (_REENT_INIT_PTR): New macro for
7555         initializing a struct _reent that has been dynamically allocated.
7556         (_REENT_CHECK_MISC): New macro that checks _misc struct for
7557         _REENT_SMALL and does nothing otherwise.
7558         (_REENT_STRTOK_LAST): New macro for reentrant strtok.
7559         (_REENT_MBLEN_STATE): New macro for reentrant mblen.
7560         (_REENT_MBTOWC_STATE): New macro for reentrant mbtowc.
7561         (_REENT_WCTOMB_STATE): New macro for reentrant wctomb.
7562         [_REENT_SMALL](struct _misc_reent): New structure containing
7563         miscellaneous reentrant areas needed by newlib.
7564         [_REENT_SMALL](struct _reent): Add _misc pointer.
7565         [_REENT_SMALL](_REENT_INIT_MISC): New macro.
7566         * libc/string/strtok (strtok): Change to use _REENT_CHECK_MISC
7567         and _REENT_STRTOK_LAST macros.
7568         * libc/stdlib/mblen (mblen): Change to use _REENT_CHECK_MISC
7569         and _REENT_MBLEN_STATE macros.
7570         * libc/stdlib/mbtowc (mbtowc): Change to use _REENT_CHECK_MISC
7571         and _REENT_MBTOWC_STATE macros.
7572         * libc/stdlib/wctomb (wctomb): Change to use _REENT_CHECK_MISC
7573         and _REENT_WCTOMB_STATE macros.
7574
7575 2002-04-01  Till Straumann <strauman@SLAC.Stanford.EDU>
7576
7577         * libc/stdlib/getenv_r.c (_findenv_r): Add missing ENV_UNLOCK.
7578
7579 Wed Mar 27 07:34:44 2002  Jason Tishler <jason@tishler.net>
7580
7581         * libc/include/sys/features.h (_POSIX_SEMAPHORES): New Cygwin define.
7582
7583 Tue Mar 26 17:17:10 2002  J"orn Rennecke <joern.rennecke@superh.com>
7584
7585         * libc/machine/sh/memcpy.S (Large): Fix alignment rounding.
7586         Store high part of leading bytes too.
7587
7588 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
7589
7590         * libm/math/ef_hypot.c: Increase scale factor to 68.
7591
7592 2002-03-13  Alexandre Oliva  <aoliva@redhat.com>
7593
7594         * libc/machine/mips/strlen.c (strlen) [__mips16]: Fix off-by-two
7595         error.
7596
7597 2002-03-12  Jeff Johnston  <jjohnstn@redhat.com>
7598
7599         * libc/sys/go32/access.c: Change license to relaxed license
7600         used in identical file throughout newlib/libgloss.
7601
7602 2002-03-12  Richard Earnshaw  <rearnsha@arm.com>
7603
7604         * libc/sys/arm/access.c: New file.
7605         * libc/sys/arm/Makefile.am (lib_a_SOURCES): Add access.c.
7606         * libc/sys/arm/Makefile.in: Regenerate.
7607         * libc/sys/arm/syscalls.c (_stat): New function.
7608
7609 2002-03-11  Michael Meissner  <meissner@redhat.com>
7610
7611         * libc/machine/mips/Makefile.am (lib_a_SOURCES): Add Mips specific
7612         variants strlen.c, strcmp.c, strncpy.c, memset.c and memcpy.c.
7613         * libc/machine/mips/Makefile.in: Regenerate.
7614         * libc/machine/mips/memcpy.c: New file, optimized for MIPS.
7615         * libc/machine/mips/memset.c: Dito.
7616         * libc/machine/mips/strcmp.c: Dito.
7617         * libc/machine/mips/strlen.c: Dito.
7618         * libc/machine/mips/strncmp.c: Dito.
7619
7620 2002-03-06  Jeff Johnston  <jjohnstn@redhat.com>
7621
7622         * libc/machine/i386/Makefile.am: Add $(oext) for setjmp
7623         object so it works for shared library or statici library.
7624 2002-04-17  Jeff Johnston  <jjohnstn@redhat.com>
7625
7626         *  libc/include/time.h (tzset, _tzset_r): Added prototypes.
7627         (strptime): Moved prototype to be within !__STRICT_ANSI__.
7628         (_tzname, _daylight, _timezone): No long __CYGWIN__ only.
7629         (tzname): Defined for all platforms.
7630         (daylight, timezone): Defined only for CYGWIN.
7631         *  libc/sys/linux/machine/i386/crt0.c: Add call to tzset() after
7632         environment set up.
7633         * libc/stdlib/setenv_r.c (_setenv_r): Call tzset() if the TZ
7634         environment variable is set.
7635         *  libc/time/Makefile.am: Add support for tzset.c, tzlock.c, and
7636         tzset_r.c.
7637         *  libc/time/Makefile.in: Regenerated.
7638         *  libc/time/gmtime.c (gmtime): Changed to call gmtime_r.
7639         *  libc/time/gmtime_r.c (gmtime_r): Changed to call _mktm_r.
7640         *  libc/time/lcltime_r.c (lcltime_r): Ditto.
7641         *  libc/time/local.h: New local header file.
7642         *  libc/time/mktime.c (mktime): Add timezone support.
7643         *  libc/time/mktm_r.c: New file which is the common engine
7644         for gmtime_r and lcltime_r.  This code has timezone support.
7645         *  libc/time/strftime.c (strftime): Add %Z timezone support.
7646         *  libc/time/tzlock.c: New file containing timezone lock stubs.
7647         *  libc/time/tzset.c: New file containing tzset() routine.
7648         *  libc/time/tzset_r.c: New file containing _tzset_r and
7649         internal routine for calculating timezone changes for specified year.
7650
7651 2002-04-17  Thomas Fitzsimmons  <fitzsim@redhat.com>
7652
7653         * configure.in (CRT0_DIR): Set to libc/.
7654         (CRT1_DIR): Set to ${crt1_dir}/ if crt1_dir is non-empty.
7655         * Makefile.am: Change all occurrences of $(CRT0_DIR)/$(CRT0) to
7656         $(CRT0_DIR)$(CRT0) to prevent make warnings.  Likewise for
7657         $(CRT1_DIR)/$(CRT1).
7658         * libc/machine/xstormy16/Makefile.in: Regenerated.
7659         * libc/machine/xstormy16/aclocal.m4: Regenerated.
7660         * libc/machine/xstormy16/configure: Regenerated.
7661
7662 2002-04-13  Alexandre Oliva  <aoliva@redhat.com>
7663
7664         * libc/stdlib/mallocr.c (malloc_extend_top): If correction sbrk
7665         fails, don't bail out, and try to correct next time.
7666
7667         * libc/include/sys/config.h: Include limits.h.
7668
7669 2002-04-12  Eric Norum  <eric.norum@usask.com>
7670
7671         * libc/sys/rtems/crt0.c (rtems_gxx_mutex_init): Dummy
7672         routine to allow autoconf to determine that building executables
7673         for rtems works.
7674         (rtems_gxx_mutex_lock, rtems_gxx_mutex_unlock): Ditto.
7675         (rtems_gxx_mutex_once): Ditto.
7676
7677 2002-04-09  Tom Rix  <trix@redhat.com>
7678
7679         * libc/include/sys/reent.h (_REENT_INIT_PTR): Fix typo.
7680
7681 2002-04-09  Mark Bradshaw  <bradshaw@staff.crosswalk.com>
7682
7683         * libc/include/time.h: Fix strptime declaration.
7684         * libc/time/Makefile.am: Add strptime.c.
7685         * libc/time/Makefile.in: Regenerated.
7686         * libc/time/strptime.c: New file.
7687
7688 2002-04-08  Jeff Johnston  <jjohnstn@redhat.com>
7689
7690         * libc/sys/linux/include/setjmp.h: Add sigjmp_buf type,
7691         siglongjmp prototype, and sigsetjmp macro definition.
7692         * libc/sys/linux/siglongjmp.c: New file.
7693         * libc/sys/linux/Makefile.am: Add support for siglongjmp.
7694         * libc/sys/linux/Makefile.in: Regenerated.
7695
7696 2002-04-04  Jeff Johnston  <jjohnstn@redhat.com>
7697
7698         * Makefile.am: Add support for installing crt1.o if one exists.
7699         * configure.host: Specify crt1.o for linux.
7700         * configure.in: Expose CRT1 and CRT1_DIR for Makefile.am to use.
7701         * Makefile.in: Regenerated.
7702         * configure: Ditto.
7703         * libc/include/sys/unistd.h (_SC_STREAM_MAX, _SC_PRIORITY_SCHEDULING):
7704         Added for non-Cygwin, non-RTEMS configurations.
7705         * libc/sys/linux/Makefile.am: Add support for crt1 and sysconf.
7706         * libc/sys/linux/Makefile.in: Regenerated.
7707         * libc/sys/linux/crt1.c: New empty file to override one defaulted
7708         by gcc.  This fixes problem with reconfiguring linux newlib build.
7709         * libc/sys/linux/sysconf.c: New file.
7710
7711 2002-04-03  Jeff Johnston  <jjohnstn@redhat.com>
7712
7713         * configure.host: Add support for machine subdirectory of
7714         sys subdirectory.
7715         * configure.in: Add check for sys machine subdirectory.
7716         * Makefile.am: Ditto.
7717         * configure: Regenerated.
7718         * Makefile.in: Ditto.
7719         * libc/sys/linux/crt0.c: Moved to machine/i386 directory.
7720         * libc/sys/linux/sys/syscall.h: Ditto.
7721         * libc/sys/linux/sleep.c: New file.
7722         * libc/sys/linux/socket.c: Ditto.
7723         * libc/sys/linux/sockops.h: Ditto.
7724         * libc/sys/linux/stack.c: Ditto.
7725         * libc/sys/linux/usleep.c: Ditto.
7726         * libc/sys/linux/machine/Makefile.am: Ditto.
7727         * libc/sys/linux/machine/Makefile.in: Ditto.
7728         * libc/sys/linux/machine/aclocal.m4: Ditto.
7729         * libc/sys/linux/machine/configure: Ditto.
7730         * libc/sys/linux/machine/configure.in: Ditto.
7731         * libc/sys/linux/machine/i386/Makefile.am: Ditto.
7732         * libc/sys/linux/machine/i386/Makefile.in: Ditto.
7733         * libc/sys/linux/machine/i386/aclocal.m4: Ditto.
7734         * libc/sys/linux/machine/i386/configure: Ditto.
7735         * libc/sys/linux/machine/i386/configure.in: Ditto.
7736         * libc/sys/linux/machine/i386/crt0.c: Ditto.
7737         * libc/sys/linux/machine/i386/sigset.c: Ditto.
7738         * libc/sys/linux/machine/i386/sigstack.h: Ditto.
7739         * libc/sys/linux/machine/i386/socketcall.h: Ditto.
7740         * libc/sys/linux/machine/i386/syscall.h: Ditto.
7741         * libc/sys/linux/sys/select.h: Ditto.
7742         * libc/sys/linux/configure.in: Add support for machine directory.
7743         * libc/sys/linux/Makefile.am: Ditto plus add new files above.
7744         * libc/sys/linux/Makefile.in: Regenerated.
7745         * libc/sys/linux/configure: Ditto.
7746         * libc/sys/linux/brk.c: Use machine/syscall.h instead of sys/syscall.h.
7747         * libc/sys/linux/inode.c: Ditto.
7748         * libc/sys/linux/linux.c: Ditto.
7749         * libc/sys/linux/process.c: Ditto.
7750         * libc/sys/linux/systat.c: Ditto.
7751         * libc/sys/linux/time.c: Ditto.
7752         * libc/sys/linux/wait.c: Ditto.
7753         * libc/sys/linux/ids.c: Change header plus add setfsgid/setfsuid.
7754         * libc/sys/linux/io.c: Change header plus add readv/writev.
7755         * libc/sys/linux/signal.c: Change header plus change sigsuspend to
7756         use __sigsuspend syscall.
7757         * libc/sys/linux/select.c: Change header plus change select to
7758         use _newselect syscall.
7759         * libc/sys/linux/sys/cdefs.h: Add a number of standard definitions
7760         used by glibc header files.
7761         * libc/sys/linux/sys/types.h: Add __socklen_t and __useconds_t
7762         types.
7763
7764 2002-04-01  Jeff Johnston  <jjohnstn@redhat.com>
7765
7766         * libc/include/sys/reent.h (_REENT_INIT_PTR): New macro for
7767         initializing a struct _reent that has been dynamically allocated.
7768         (_REENT_CHECK_MISC): New macro that checks _misc struct for
7769         _REENT_SMALL and does nothing otherwise.
7770         (_REENT_STRTOK_LAST): New macro for reentrant strtok.
7771         (_REENT_MBLEN_STATE): New macro for reentrant mblen.
7772         (_REENT_MBTOWC_STATE): New macro for reentrant mbtowc.
7773         (_REENT_WCTOMB_STATE): New macro for reentrant wctomb.
7774         [_REENT_SMALL](struct _misc_reent): New structure containing
7775         miscellaneous reentrant areas needed by newlib.
7776         [_REENT_SMALL](struct _reent): Add _misc pointer.
7777         [_REENT_SMALL](_REENT_INIT_MISC): New macro.
7778         * libc/string/strtok (strtok): Change to use _REENT_CHECK_MISC
7779         and _REENT_STRTOK_LAST macros.
7780         * libc/stdlib/mblen (mblen): Change to use _REENT_CHECK_MISC
7781         and _REENT_MBLEN_STATE macros.
7782         * libc/stdlib/mbtowc (mbtowc): Change to use _REENT_CHECK_MISC
7783         and _REENT_MBTOWC_STATE macros.
7784         * libc/stdlib/wctomb (wctomb): Change to use _REENT_CHECK_MISC
7785         and _REENT_WCTOMB_STATE macros.
7786
7787 2002-04-01  Till Straumann <strauman@SLAC.Stanford.EDU>
7788
7789         * libc/stdlib/getenv_r.c (_findenv_r): Add missing ENV_UNLOCK.
7790
7791 Wed Mar 27 07:34:44 2002  Jason Tishler <jason@tishler.net>
7792
7793         * libc/include/sys/features.h (_POSIX_SEMAPHORES): New Cygwin define.
7794
7795 Tue Mar 26 17:17:10 2002  J"orn Rennecke <joern.rennecke@superh.com>
7796
7797         * libc/machine/sh/memcpy.S (Large): Fix alignment rounding.
7798         Store high part of leading bytes too.
7799
7800 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
7801
7802         * libm/math/ef_hypot.c: Increase scale factor to 68.
7803
7804 2002-03-13  Alexandre Oliva  <aoliva@redhat.com>
7805
7806         * libc/machine/mips/strlen.c (strlen) [__mips16]: Fix off-by-two
7807         error.
7808
7809 2002-03-12  Jeff Johnston  <jjohnstn@redhat.com>
7810
7811         * libc/sys/go32/access.c: Change license to relaxed license
7812         used in identical file throughout newlib/libgloss.
7813
7814 2002-03-12  Richard Earnshaw  <rearnsha@arm.com>
7815
7816         * libc/sys/arm/access.c: New file.
7817         * libc/sys/arm/Makefile.am (lib_a_SOURCES): Add access.c.
7818         * libc/sys/arm/Makefile.in: Regenerate.
7819         * libc/sys/arm/syscalls.c (_stat): New function.
7820
7821 2002-03-11  Michael Meissner  <meissner@redhat.com>
7822
7823         * libc/machine/mips/Makefile.am (lib_a_SOURCES): Add Mips specific
7824         variants strlen.c, strcmp.c, strncpy.c, memset.c and memcpy.c.
7825         * libc/machine/mips/Makefile.in: Regenerate.
7826         * libc/machine/mips/memcpy.c: New file, optimized for MIPS.
7827         * libc/machine/mips/memset.c: Dito.
7828         * libc/machine/mips/strcmp.c: Dito.
7829         * libc/machine/mips/strlen.c: Dito.
7830         * libc/machine/mips/strncmp.c: Dito.
7831
7832 2002-03-06  Jeff Johnston  <jjohnstn@redhat.com>
7833
7834         * libc/machine/i386/Makefile.am: Add $(oext) for setjmp
7835         object so it works for shared library or statici library.
7836         * libc/machine/i386/Makefile.in: Regenerated.
7837
7838 Wed Mar  6 10:24:26 2002  J"orn Rennecke <joern.rennecke@superh.com>
7839
7840         * libc/machine/sh/Makefile.am (lib_a_SOURCES, SH64 case):
7841         Add memcpy.S, memset.S and strcpy.S.
7842         * libc/machine/sh/Makefile.in: Regenerate.
7843         * libc/machine/sh/asm.h (_ENTRY): Set SH5 alignment to 8 bytes.
7844         (SHHI, SHLO): Define.
7845         * libc/machine/sh/memset.S: Add code for SH5.
7846         * libc/machine/sh/memset.S: Likewise.
7847         * libc/machine/sh/strcpy.S: Likewise.
7848
7849 2002-02-27  Jeff Johnston  <jjohnstn@redhat.com>
7850
7851         * configure.host: Add check for --disable-newlib-io-float
7852         configuration option and add -DNO_FLOATING_POINT to newlib cflags
7853         if appropriate.
7854         * acinclude.m4: Added --disable-newlib-io-float option.
7855         * aclocal.m4: Regenerated.
7856         * configure: Ditto.
7857         * doc/aclocal.m4 doc/configure libc/aclocal.m4 libc/configure
7858         * libc/*/aclocal.m4 libc/*/configure 
7859         * libm/*/aclocal.m4 libm/*/configure: Ditto.
7860         * libc/stdio/vfprintf.c [!INTEGER_ONLY]: Only set FLOATING_POINT
7861         if NO_FLOATING_POINT flag is not defined.
7862
7863 2002-02-25  Jeff Johnston  <jjohnstn@redhat.com>
7864
7865         * libc/include/sys/config.h: Add __extension__ in front of
7866         long long references.
7867
7868 2002-02-23  Corinna Vinschen  <corinna@vinschen.de>
7869
7870         * libc/include/sys/stat.h (_fstat): Don't declare when compiling Cygwin.
7871         (_stat): Ditto.
7872
7873 2002-02-23  Corinna Vinschen  <corinna@vinschen.de>
7874
7875         * libc/sys/cygwin/sys/dirent.h (struct __DIR): Use __off32_t instead
7876         of off_t.
7877
7878 2002-02-20  Nick Clifton  <nickc@cambridge.redhat.com>
7879
7880         * libc/machine/xscale/strchr.c (strchr): Add 'r1' to the list of
7881         clobbered registers.
7882
7883 2002-02-19  Thomas Fitzsimmons  <fitzsim@redhat.com>
7884
7885         * configure.host (newlib_cflags): When host is in m68* add
7886         -DCOMPACT_CTYPE.
7887
7888 2002-02-15  Jeff Johnston  <jjohnstn@redhat.com>
7889
7890         * libc/include/sys/config.h: Add definitions for
7891         __int16_t, __uint16_t, __int64_t, and __uint64_t.
7892
7893 2002-02-12  Hans-Peter Nilsson  <hp@bitrange.com>
7894
7895         * libc/sys/mmixware/link.c: New.
7896         * libc/sys/mmixware/sys/syscall.h (TRAP1i, I3f): Make asm
7897         volatile.
7898         * libc/sys/mmixware/times.c (_times): Renamed from times.
7899         * libc/sys/mmixware/open.c (_open): Attempt to handle O_APPEND
7900         properly by reading previous contents, not through BinaryReadWrite.
7901         * libc/sys/mmixware/Makefile.am (lib_a_SOURCES): Add link.c
7902         * libc/sys/mmixware/Makefile.in: Regenerate.
7903
7904 2002-02-10  Corinna Vinschen  <corinna@vinschen.de>
7905
7906         * libc/include/grp.h: Don't declare group functions when compiling
7907         Cygwin.
7908
7909 2002-02-09  Corinna Vinschen  <corinna@vinschen.de>
7910
7911         * libc/include/grp.h: Include Cygwin specific header.
7912         * libc/include/sys/stat.h: Ditto.  Don't define `struct stat'
7913         when compiling for Cygwin.
7914         * libc/include/sys/types.h: Don't define off_t, uid_t
7915         and gid_t when compiling for Cygwin.
7916
7917 2002-02-08  matthew green  <mrg@redhat.com>
7918
7919         * libc/include/sys/reent.h (_REENT_CHECK_EMERGENCY): Allocate
7920         _REENT_EMERGENCY_SIZE, not sizeof(char *).
7921
7922 2002-02-08  Alexandre Oliva  <aoliva@redhat.com>
7923
7924         Contribute sh64-elf.
7925         2001-03-13  Alexandre Oliva  <aoliva@redhat.com>
7926         * configure.host (newlib_cflags) [sh*-*-*]: Enable long long
7927         support in printf.
7928         2001-01-29  Alexandre Oliva  <aoliva@redhat.com>
7929         * libc/machine/sh/setjmp.S [SH5]: Switch to SHmedia mode before
7930         any labels.
7931         2001-01-24  Alexandre Oliva  <aoliva@redhat.com>
7932         * libc/sys/sh/trap.S (___trap34) [SH5]: Don't trash r2.
7933         2000-12-16  Alexandre Oliva  <aoliva@redhat.com>
7934         * libc/machine/sh/configure.in: Rework conditionals.
7935         * libc/machine/sh/Makefile.am: Likewise.
7936         * libc/machine/sh/configure, libc/machine/sh/Makefile.in: Rebuilt.
7937         2000-12-01  Alexandre Oliva  <aoliva@redhat.com>
7938         * configure.host: Match `sh*'.
7939         * libc/include/machine/setjmp.h: Define for SH5.
7940         * libc/machine/sh/configure.in: Detect SH5.
7941         * libc/machine/sh/configure: Rebuilt.
7942         * libc/machine/sh/Makefile.am: Use only setjmp.S for SH5.
7943         * libc/machine/sh/Makefile.in: Rebuilt.
7944         * libc/machine/sh/asm.h: Adjust for SH5.
7945         * libc/machine/sh/setjmp.S: Implement in SHmedia.
7946         * libc/sys/sh/crt0.S: Likewise.
7947         * libc/sys/sh/trap.S: Likewise.
7948
7949 2002-02-07  Jeff Johnston  <jjohnstn@redhat.com>
7950
7951         * libc/machine/i386/Makefile.am: (mach_add_src): Remove.
7952         (mach_add_obj): Conditionally set to setjmp.o or nothing.
7953         (LIB_SOURCES): Remove $(mach_add_src).
7954         (lib_a_LIBADD, lib_a_DEPENDENCIES): Add and set to $(mach_add_src).
7955         (lib_la_LIBADD, lib_la_DEPENDENCIES): Ditto.
7956         * libc/machine/i386/Makefile.in: Regenerate.
7957
7958 2002-02-05  Manik Raina <manik@cisco.com>
7959
7960         * libc/misc/dprintf.c (parse_number): #if 0 unused function.
7961         * libc/stdlib/ldtoa.c (_ldcheck): Remove unused local variables
7962         s, p, k, and outstr.
7963         * libc/stdlib/dtoa.c (_dtoa_r): Initialize mlo.
7964
7965 2002-02-04  Jeff Johnston  <jjohnstn@redhat.com>
7966
7967         * libc/include/sys/reent.h [(!_REENT_SMALL]: Add
7968         _REENT_CHECK_EMERGENCY macro.
7969
7970 2002-02-03  matthew green  <mrg@redhat.com>
7971
7972         * libc/reent/signgam.c (__signgam): Fix error in previous.
7973
7974 2002-02-02  matthew green  <mrg@redhat.com>
7975
7976         * libc/include/sys/config.h (_REENT_SMALL): Define for Xstormy16.
7977
7978         * libc/reent/reent.c (_reclaim_reent): Clean for _REENT_SMALL case.
7979         * libc/reent/reent.tex: Add blurb about _REENT_SMALL.
7980         * libc/include/sys/reent.h (struct _reent): Completely new version
7981         for _REENT_SMALL.
7982         (_REENT_INIT): New defines, different defintion depending on _REENT_SMALL.
7983         (_REENT_CHECK, _REENT_CHECK_TM): Likewise.
7984         (_REENT_CHECK_ASCTIME_BUF, _REENT_INIT_RAND48): Likewise.
7985         (_REENT_CHECK_RAND48, _REENT_INIT_MP, _REENT_CHECK_MP): Likewise.
7986         (_REENT_CHECK_EMERGENCY, _REENT_SIGNGAM, _REENT_RAND_NEXT): Likewise.
7987         (_REENT_RAND48_SEED, _REENT_RAND48_MULT, _REENT_RAND48_ADD): Likewise.
7988         (_REENT_MP_RESULT, _REENT_MP_RESULT_K, _REENT_MP_P5S): Likewise.
7989         (_REENT_MP_FREELIST, _REENT_ASCTIME_BUF, _REENT_TM): Likewise.
7990         (_REENT_EMERGENCY): Likewise.
7991
7992         * libc/include/sys/reent.h (struct __sFILE_fake): New struct, same as
7993         the start of the real __sFILE, used for stdin, stdout and stderr until
7994         they are setup properly.
7995         (struct __sFILE): Move location of _data in _REENT_SMALL case.
7996         * libc/stdio/findfp.c (__sinit): Rearrange for _REENT_SMALL case by
7997         allocated stdin, stdout and stderr.
7998         * libc/stdio/getchar.c (_getchar_r): Call _REENT_SMALL_CHECK_INIT().
7999         * libc/stdio/iprintf.c (iprintf, _iprintf_r): Likewise.
8000         * libc/stdio/perror.c (_perror_r): Likewise.
8001         * libc/stdio/printf.c (printf, _printf_r): Likewise.
8002         * libc/stdio/putchar.c (_putchar_r): Likewise.
8003         * libc/stdio/puts.c (_puts_r): Likewise.
8004         * libc/stdio/scanf.c (scanf, _scanf_r): Likewise.
8005         * libc/stdio/vprintf.c (vprintf): Likewise.
8006         * libc/stdio/vscanf.c (vscanf, _vscanf_r): Likewise.
8007
8008         * libc/stdio/tmpnam.c (_tmpnam_r): Use _REENT_EMERGENCY().
8009
8010         * libc/reent/reent.c (_wrapup_reent): Adjust for _REENT_SMALL atexit.
8011         * libc/include/sys/reent.h (_atexit): Limit atexit() entries to 32
8012         for _REENT_SMALL.
8013         * libc/stdlib/atexit.c (atexit): Rearrange for _REENT_SMALL case.
8014         * libc/stdlib/exit.c (exit): Rearrange for _REENT_SMALL case.
8015
8016         * libc/include/sys/reent.h (struct _rand48): Keep _rand_next if
8017         _REENT_SMALL.
8018         * libc/stdlib/drand48.c (_drand48_r): Call _REENT_CHECK_RAND48().
8019         * libc/stdlib/lcong48.c (_lcong48_r): Likewise.
8020         * libc/stdlib/lrand48.c (_lrand48_r): Likewise.
8021         * libc/stdlib/mrand48.c (_mrand48_r): Likewise.
8022         * libc/stdlib/rand48.c (__dorand48): Likewise.
8023         * libc/stdlib/seed48.c (_seed48_r): Likewise.
8024         * libc/stdlib/srand48.c (_srand48_r): Likewise.
8025         * libc/stdlib/rand48.h (__rand48_seed, __rand48_mult, __rand48_add): Define
8026         as _REENT_RAND48_SEED(), _REENT_RAND48_MULT() and _REENT_RAND48_ADD().
8027         * libc/stdlib/dtoa.c (_dtoa_r): Call _REENT_CHECK_MP().  Use
8028         _REENT_MP_RESULT() and _REENT_MP_RESULT_K().
8029         * libc/stdlib/ldtoa.c (_ldtoa_r): Likewise.
8030         * libc/stdlib/rand.c (srand): Use _REENT_RAND_NEXT().
8031         * libc/stdlib/rand.c (rand): Likewise.
8032
8033         * libc/stdlib/mallocr.c (malloc_stats): Call _REENT_SMALL_CHECK_INIT().
8034         * libc/stdlib/mstats.c (_mstats_r): Call _REENT_SMALL_CHECK_INIT().
8035
8036         * libc/stdlib/mprec.c (Balloc): Call _REENT_CHECK_MP.  Use
8037         _REENT_MP_FREELIST() and _REENT_MP_P5S.
8038         * libc/include/sys/reent.h (struct _mprec): New structure.
8039
8040         * libc/include/sys/reent.h (struct _reent): Rename _strtok_last to
8041         _unused_strtok_last.
8042         * libc/string/strtok.c (strtok): Use a local static variable.
8043
8044         * libc/include/sys/reent.h (_REENT_ASCTIME_SIZE): New define.
8045         (_REENT_EMERGENCY_SIZE): Likewise.
8046         * libc/time/asctime.c (asctime): Call _REENT_CHECK_ASCTIME_BUF().  Use
8047         _REENT_ASCTIME_BUF().
8048         * libc/time/lcltime.c (localtime): Call _REENT_CHECK_TM().  Use
8049         _REENT_TM().
8050
8051         * libc/include/math.h (__singam_r): Use _REENT_SIGNGAM().
8052         * libc/reent/signgam.c (__signgam): Use _REENT_SIGNGAM().
8053         * libm/math/w_gamma.c (gamma): Use _REENT_SIGNGAM().
8054         * libm/math/w_lgamma.c (lgamma): Use _REENT_SIGNGAM().
8055         * libm/math/wf_gamma.c (gammaf): Use _REENT_SIGNGAM().
8056         * libm/math/wf_lgamma.c (lgammaf): Use _REENT_SIGNGAM().
8057
8058 2002-02-01  Geoffrey Keating  <geoffk@redhat.com>
8059
8060         * configure.host (xstormy16): Don't use the generic malloc.
8061         * libc/machine/xstormy16/Makefile.am: Build tiny-malloc.
8062         * libc/machine/xstormy16/Makefile.in: Regenerate.
8063         * libc/machine/xstormy16/mallocr.c: New file.
8064         * libc/machine/xstormy16/tiny-malloc.c: New file.
8065
8066 2002-01-28  Thomas Fitzsimmons  <fitzsim@redhat.com>
8067
8068         * libc/include/sys/signal.h [__CYGWIN__]: Issue error message
8069         when _CYGWIN_TYPES_H is not defined.
8070
8071 2002-01-24  Thomas Fitzsimmons  <fitzsim@redhat.com>
8072
8073         * libc/include/sys/signal.h: Revert 2002-01-23 change.
8074
8075 2002-01-23  Thomas Fitzsimmons  <fitzsim@redhat.com>
8076
8077         * libc/include/sys/signal.h: Remove pthread_kill declaration
8078         when __CYGWIN__ is defined.
8079
8080 2002-01-18  Mark Bradshaw  <bradshaw@staff.crosswalk.com>
8081
8082         * libc/include/time.h: Add prototype for strptime for Cygwin.
8083
8084 2002-01-17  Nick Clifton  <nickc@cambridge.redhat.com>
8085
8086         * libc/machine/xscale/memset.c (memset): Fix bug when len == 1 and
8087         dst was not word aligned.
8088
8089         * libc/sys/arm/syscalls.c (_sbrk): Return -1 rather than aborting
8090         if too much memory is requested.
8091
8092 2002-01-11 Jeff Johnston  <jjohnstn@redhat.com>
8093
8094         * libc/stdio/vfscanf.c (__svfscanf_r): Change loop that
8095         reads blanks from the input file to break if EOF reached
8096         rather than end processing.
8097
8098 2002-01-07 Jeff Johnston  <jjohnstn@redhat.com>
8099
8100         * MAINTAINERS: Change e-mail addresses to refer to redhat domain.
8101
8102 2002-01-07 Alan Matsuoka <alanm@redhat.com>
8103
8104         * libc/include/machine/ieeefp.h: Configure d10v doubles to
8105         be 32 bits if __DOUBLE__ == 32  otherwise doubles are 64 bits.
8106         libc/include/sys/config.h: Ditto.
8107
8108 2001-12-28  Corinna Vinschen  <corinna@vinschen.de>
8109
8110         * libc/sys/cygwin/sys/utmp.h: Add definition of UTMP_FILE.
8111
8112 2001-12-22  Geoffrey Keating  <geoffk@redhat.com>
8113             Catherine Moore  <clm@redhat.com>
8114             Richard Henderson  <rth@redhat.com>
8115             Corinna Vinschen  <vinschen@redhat.com>
8116
8117         * configure.host: Add support for xstormy16.
8118         * libc/include/machine/ieeefp.h: Add support for xstormy16.
8119         * libc/include/machine/setjmp.h: Add support for xstormy16.
8120         * libc/include/sys/config.h: Add support for xstormy16.
8121         * libc/machine/xstormy16/Makefile.am: New file.
8122         * libc/machine/xstormy16/Makefile.in: New file.
8123         * libc/machine/xstormy16/aclocal.m4: New file.
8124         * libc/machine/xstormy16/configure: New file.
8125         * libc/machine/xstormy16/configure.in: New file.
8126         * libc/machine/xstormy16/setjmp.S: New file.
8127
8128 2001-12-19  Thomas Fitzsimmons  <fitzsim@redhat.com>
8129
8130         * libm/machine/configure.in (HAVE_LIBM_MACHINE_DIR): New conditional.
8131         * libm/machine/Makefile.am [HAVE_LIBM_MACHINE_DIR] (LIBM_MACHLIB): New variable.
8132
8133 2001-12-19  Corinna Vinschen  <corinna@vinschen.de>
8134
8135         * libm/machine/Makefile.am: Change rules to create correct lib.a.
8136         * libm/machine/Makefile.in: Regenerated through automake.
8137
8138 2001-12-18  Thomas Fitzsimmons  <fitzsim@redhat.com>
8139
8140         * Makefile.am (DOCDIR): Force to empty string when doc
8141         directory is not present.
8142
8143 2001-12-18  Thomas Fitzsimmons  <fitzsim@redhat.com>
8144
8145         * libc/machine/i386/f_*: Move to libm/machine/i386.
8146
8147 2001-12-18      Joel Sherrill <joel@OARcorp.com>
8148
8149         * libm/machine/Makefile.am: Add dummy doc stub so
8150         "make info" works.
8151
8152 2001-12-17      Joel Sherrill <joel@OARcorp.com>
8153
8154         * libc/include/sys/types.h (ino_t): RTEMS uses long also.
8155
8156 2001-12-17  Thomas Fitzsimmons  <fitzsim@redhat.com>
8157
8158         * libc/stdlib/Makefile.am (LIB_COMPILE): Change to equal
8159         $(COMPILE) rather than $(CC).
8160         * libc/stdio/Makefile.am (LIB_COMPILE): Likewise.
8161         (vfprintf.$(oext)): Remove $(INCLUDES), made redundant by
8162         $(LIB_COMPILE) change.
8163         (vfiprintf.$(oext)): Likewise.
8164
8165 2001-12-17  Corinna Vinschen  <vinschen@redhat.de>
8166
8167         * libc/sys/cygwin/include/unistd.h: Add __UNISTD_GETOPT_ to allow
8168         conditionalized including of getopt stuff.
8169
8170 2001-12-14  Thomas Fitzsimmons  <fitzsim@redhat.com>
8171
8172         * libc/stdio/Makefile.am (vfprintf.$(oext)): Add $(INCLUDES) to
8173         compile line.
8174         (vfiprintf.$(oext)): Likewise.
8175
8176 2001-12-13  Thomas Fitzsimmons  <fitzsim@redhat.com>
8177
8178         * Makefile.shared: New file.
8179         * libc/sys/linux/shared.ld: New file.
8180         * libm/machine/*: New files.
8181         * libm/machine/i386/*: New files.
8182         * Makefile.am: Add libtool support.  Change math and mathfp
8183         references to variables.
8184         * configure.host: Add variables for libtool support.  Add
8185         libm_machine_dir variable.
8186         * configure.in: Add objectlist variables, for libtool
8187         support.  Add CC_FOR_BUILD tests.
8188         * libc/Makefile.am: Add libtool support.  Change crt0.o
8189         reference to be a variable reference.
8190         * libc/configure.in: Add libtool support.  Change sublib
8191         names to be lib${subdir}.la when using libtool.
8192         * libc/ctype/Makefile.am: Add libtool support.
8193         * libc/errno/Makefile.am: Likewise.
8194         * libc/locale/Makefile.am: Likewise.
8195         * libc/machine/Makefile.am: Likewise.
8196         * libc/machine/configure.in: Likewise.
8197         * libc/machine/i386/Makefile.am: Likewise.
8198         * libc/machine/i386/configure.in: Likewise.
8199         * libc/misc/Makefile.am: Likewise.
8200         * libc/posix/Makefile.am: Likewise.
8201         * libc/reent/Makefile.am: Likewise.
8202         * libc/signal/Makefile.am: Likewise.
8203         * libc/stdio/Makefile.am: Likewise.
8204         * libc/stdlib/Makefile.am: Likewise.
8205         * libc/string/Makefile.am: Likewise.
8206         * libc/sys/Makefile.am: Likewise.
8207         * libc/sys/configure.in: Likewise.
8208         * libc/sys/linux/Makefile.am: Add libtool support.  Change
8209         awk reference to a variable reference.  Change signal.h
8210         reference to a variable reference.
8211         * libc/sys/linux/configure.in: Add libtool support.
8212         * libc/syscalls/Makefile.am: Likewise.
8213         * libc/time/Makefile.am: Likewise.
8214         * libc/unix/Makefile.am: Likewise.
8215         * libm/Makefile.am: Add libtool support.  Change math and
8216         mathfp references to variables.
8217         * libm/configure.in: Add libtool support.  Add
8218         LIBM_MACHINE_LIB variable.
8219         * libm/common/Makefile.am: Add libtool support.
8220         * libm/math/Makefile.am: Likewise.
8221         * libm/mathfp/Makefile.am: Likewise.
8222         Regenerate all Makefile.in, aclocal.m4, and configure.
8223
8224 2001-12-13 Anita Kulkarni <anitak@kpit.com>
8225
8226         * libc/sys/sh/crt0.S: Remove stack symbol definition 0xdeaddead.
8227
8228 2001-12-06  John Peacock <jpeacock@rowman.com>
8229
8230         * libc/include/sys/unistd.h: Correct ualarm declaration.
8231
8232 2001-12-05  Nick Clifton  <nickc@cambridge.redhat.com>
8233
8234         * libc/sys/arm/crt0.S: For __USES_INITFINI__ preserve the argument
8235         vector before calling the initialisation functions.
8236
8237 2001-11-29  Christopher Faylor  <cgf@redhat.com>
8238
8239         * libc/include/dirent.h: Protect against multiple inclusion.
8240
8241 2001-11-27  Christopher Faylor  <cgf@redhat.com>
8242
8243         * libc/include/sys/types.h: Define useconds_t.
8244         * libc/include/sys/ulimit.h: Declare ualarm.
8245
8246 2001-11-21  Christopher Faylor  <cgf@redhat.com>
8247
8248         * libc/sys/cygwin/sys/dirent.h (DIR): Add another internal element.
8249
8250 2001-11-19  Hans-Peter Nilsson  <hp@bitrange.com>
8251
8252         * libc/sys/mmixware/*: Tweak license header in all source files.
8253
8254 2001-11-12  Corinna Vinschen  <vinschen@redhat.com>
8255
8256         * libc/include/alloca.h: Move libc/sys/linux/include/alloca.h
8257         to here.  Rearrange for general inclusion by stdlib.h.
8258         * libc/include/stdlib.h: Include <alloca.h> if __STRICT_ANSI__
8259         isn't defined.
8260         * libc/sys/linux/include/alloca.h: Move to libc/include.
8261
8262 2001-11-12  Anthony Green  <green@redhat.com>
8263
8264         * libc/sys/arm/crt0.S (__stack_base__): New symbol.
8265
8266 2001-11-13  Hans-Peter Nilsson  <hp@bitrange.com>
8267
8268         * libc/sys/mmixware/*: Correct spacing in all source files.
8269         * libc/sys/mmixware/syscall.h: Move misplaced file...
8270         * libc/sys/mmixware/sys/syscall.h: ...here.
8271
8272 2001-11-12  Hans-Peter Nilsson  <hp@bitrange.com>
8273
8274         * libc/include/machine/ieeefp.h: Add support for mmix target.
8275         * libc/include/machine/setjmp.h: Ditto.
8276         * configure.host: Ditto.
8277         * libc/sys/mmixware/Makefile.am, libc/sys/mmixware/_exit.c,
8278         libc/sys/mmixware/access.c, libc/sys/mmixware/aclocal.m4,
8279         libc/sys/mmixware/chmod.c, libc/sys/mmixware/chown.c,
8280         libc/sys/mmixware/close.c, libc/sys/mmixware/configure.in,
8281         libc/sys/mmixware/creat.c, libc/sys/mmixware/crt0.c,
8282         libc/sys/mmixware/execv.c, libc/sys/mmixware/execve.c,
8283         libc/sys/mmixware/fork.c, libc/sys/mmixware/fstat.c,
8284         libc/sys/mmixware/getpid.c, libc/sys/mmixware/gettime.c,
8285         libc/sys/mmixware/isatty.c, libc/sys/mmixware/kill.c,
8286         libc/sys/mmixware/lseek.c, libc/sys/mmixware/open.c,
8287         libc/sys/mmixware/pipe.c, libc/sys/mmixware/read.c,
8288         libc/sys/mmixware/sbrk.c, libc/sys/mmixware/setjmp.S,
8289         libc/sys/mmixware/stat.c, libc/sys/mmixware/sys/syscall.h,
8290         libc/sys/mmixware/time.c, libc/sys/mmixware/times.c,
8291         libc/sys/mmixware/unlink.c, libc/sys/mmixware/utime.c,
8292         libc/sys/mmixware/wait.c, libc/sys/mmixware/write.c: New files.
8293         * libc/sys/mmixware/configure, libc/sys/mmixware/Makefile.in,
8294         libc/sys/mmixware/aclocal.m4: Generate.
8295
8296 2001-11-05  Corinna Vinschen  <corinna@vinschen.de>
8297
8298         * libc/include/sys/unistd.h: Add prototypes for endusershell(),
8299         getusershell(), iruserok(), revoke(), ruserok() and setusershell()
8300         when __CYGWIN__ is defined.
8301         * libc/sys/cygwin/sys/utmp.h: Add prototypes for login_tty() and
8302         logwtmp().
8303
8304 2001-11-01  Arati Dikey  <aratidikey@hotmail.com>
8305
8306         * libm/mathfp/sf_isinf.c (isinff): Change to use _DEFUN macro.
8307         [_DOUBLE_IS_32BITS](isinf): New function that calls isinff.
8308         * libm/mathfp/sf_isnan.c (isnanf): Change to use _DEFUN macro.
8309         [_DOUBLE_IS_32BITS](isnan): New function that calls isnanf.
8310
8311 2001-10-24  Christopher Faylor  <cgf@redhat.com>
8312
8313         * libc/stdio/fseek.c: Reset pointer to buffer base
8314         when forced to seek outside of current buffer contents.
8315         This prevents the code from erroneously thinking there is
8316         anything in the current buffer.
8317
8318 2001-10-22  Geoffrey Keating  <geoffk@redhat.com>
8319
8320         * libc/include/math.h: The C++ standard adds the single-precision
8321         versions of the elementary functions.
8322
8323 2001-10-22  Christopher Faylor  <cgf@redhat.com>
8324
8325         * libc/posix/execvp.c: Remove obsolete CYGWIN32 considerations
8326         throughout.
8327         * signal.h: Change comment to reflect __CYGWIN__ rather than __CYGWIN32__.
8328         * popen.c (popen): Use __CYGWIN_ rather than __CYGWIN32__.
8329         * system.c (_system_r): Ditto.
8330
8331 2001-10-17  Corinna Vinschen  <corinna@vinschen.de>
8332
8333         * libc/include/sys/unistd.h: Add prototype for fchdir() when
8334         __CYGWIN__ or __rtems__ is defined.
8335
8336 2001-10-01  Charles Wilson  <cwilson@ece.gatech.edu>
8337
8338         * libc/include/stdlib.h: add declarations for
8339         _strtoull_r, _strtoll_r, strtoull, and strtoll.
8340         * libc/stdio/local.h: remove declarations of
8341         __strtoull_r and __strtoll_r.
8342         * libc/stdio/vfscanf.c(__svfscanf_r): call
8343         _strtoull_r instead of __strtoull_r. Ditto
8344         _strtoll_r vs. __strtoll_r.
8345         * libc/stdlib/Makefile.am: add new files to
8346         .c list and .def list
8347         * libc/stdlib/Makefile.in: regenerate
8348         * libc/stdlib/strtoll_r.c: rename __strtoll_r
8349         as _strtoll_r
8350         * libc/stdlib/strtoull_r.c: rename __strtoull_r
8351         as _strtoull_r
8352         * libc/stdlib/strtoull.c: new file
8353         * libc/stdlib/strtoll.c: new file
8354
8355 Mon Sep 17 17:29:47 2001  Christopher Faylor <cgf@cygnus.com>
8356
8357         * libc/include/process.h: Add getpid() declaration.
8358
8359 2001-09-14  Nick Clifton  <nickc@cambridge.redhat.com>
8360
8361         * libc/sys/arm/crt0.S: Add calls to _init and _fini (via atexit)
8362         for new style arm/elf ctor/dtor handling.
8363         Minor formatting tidy up.
8364
8365 2001-09-13  Jeff Johnston  <jjohnstn@redhat.com>
8366
8367         * libc/stdlib/Makefile.am: Add support to build strtoll_r.c
8368         and strtoull_r.c.
8369         * libc/stdlib/Makefile.in: Regenerated.
8370         * libc/stdlib/strtoll_r.c: New file.
8371         * libc/stdlib/strtoull_r.c: New file.
8372         * libc/stdio/local.h: Add prototypes for long long string
8373         conversion routines.
8374         * libc/stdio/vfscanf.c (__svfscanf_r): Add optional long long support
8375         tied to %L integer conversion specifier.
8376
8377 Thu Sep 13 08:49:49 2001  Jason Tishler <jason@tishler.net>
8378
8379         * strftime.c (strftime): Fix "%W" implementation to properly handle
8380         Mondays too.
8381
8382 2001-09-07  Jeff Law  <law@redhat.com>
8383
8384         * libc/sys/h8300hms/crt0.S: For H8/300H and H8/S, load address of
8385         __fini with "mov.l" instead of "mov.w".
8386
8387 2001-09-05  Corinna Vinschen  <corinna@vinschen.de>
8388
8389         * libc/sys/cygwin/include/unistd.h: New file, wrapping sys/unistd.h
8390         and getopt.h.
8391
8392 2001-09-04  Jason Merrill  <jason_merrill@redhat.com>
8393
8394         * libc/sys/h8300hms/crt0.S: Support ELF initialization.
8395
8396 2001-09-03  Corinna Vinschen  <corinna@vinschen.de>
8397
8398         * libc/sys/cygwin/sys/dirent.h (struct dirent): Add version number
8399         field.
8400         (__DIRENT_VERSION): New define.
8401
8402 2001-09-03  Corinna Vinschen  <corinna@vinschen.de>
8403
8404         * libc/sys/cygwin/sys/dirent.h (struct dirent): Add `d_fd' member.
8405         Shrink __d_reserved accordingly to keep structure size.
8406         (dirfd): Declare external.
8407
8408 2001-08-29  Joel Sherrill <joel@OARcorp.com>
8409
8410         * libc/include/sys/unistd.h: Prototype chroot() for RTEMS.
8411
8412 2001-08-29  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
8413
8414         * libc/machine/i386/f_atan2.S, libc/machine/i386/f_atan2f.S,
8415           libc/machine/i386/f_exp.c, libc/machine/i386/f_expf.c,
8416           libc/machine/i386/f_frexp.S, libc/machine/i386/f_frexpf.S,
8417           libc/machine/i386/f_ldexp.S, libc/machine/i386/f_ldexpf.S,
8418           libc/machine/i386/f_log.S, libc/machine/i386/f_log10.S,
8419           libc/machine/i386/f_log10f.S, libc/machine/i386/f_logf.S,
8420           libc/machine/i386/f_pow.c, libc/machine/i386/f_powf.c,
8421           libc/machine/i386/f_tan.S, libc/machine/i386/f_tanf.S:
8422         Add conditional compilation to avoid HW FPU instructions
8423         when compiled for soft-float.
8424
8425 2001-08-29  Jeff Johnston  <jjohnstn@redhat.com>
8426
8427         * Makefile.am: Add check for ln failing when creating libg.a
8428         so that cp gets used as a backup.
8429         * Makefile.in: Regenerated.
8430
8431 2001-08-29  Jeff Johnston  <jjohnstn@redhat.com>
8432
8433         * libc/include/sys/reent.h: Add include of <sys/_types.h>.
8434         No longer include time.h.  Add struct __tm to use for
8435         _localtime_buf in the reentrant structure.  Add a
8436         _NULL definition to use in initializing the reentrant struct.
8437         * libc/include/sys/config.h: For CYGWIN32 and RTEMS, change
8438         the _READ_WRITE_RETURN_TYPE to _ssize_t which is found in
8439         <sys/_types.h>.
8440         * libc/include/sys/unistd.h: Include <sys/_types.h>.
8441         * libc/time/lcltime.c (localtime): Cast the reentrant struct
8442         _localtime_buf to be struct tm *.
8443
8444 Wed Aug 29 14:17:38 2001  J"orn Rennecke <amylaar@redhat.com>
8445
8446         * configure.host (h8300-*-elf*, h8500-*-elf*): New cases.
8447         * libc/sys/h8300hms/crt1.c (__main): Don't reference __ctors /
8448         __ctors_end.
8449         * libc/sys/h8300hms/syscalls.c: Include errno.h.
8450         (_unlink): New stub function.
8451
8452 Sat Aug 25 22:22:25 2001  Christopher Faylor <cgf@cygnus.com>
8453
8454         * libc/include/sys/errno.h: Add a cautionary comment.
8455
8456 2001-08-21  Jeff Johnston  <jjohnstn@redhat.com>
8457
8458         * libc/stdlib/mallocr.c [!defined(MALLOC_ALIGNMENT)]: Add conditional
8459         for SIZE_SZ so that alignment ends up a minimum of 8.
8460
8461 Mon Aug 13 22:26:01 2001  Christopher Faylor <cgf@cygnus.com>
8462
8463         * libc/include/machine/setjmp.h: Protect sigsetjmp/siglongjmp macro
8464         arguments.
8465
8466         * libc/include/sys/errno.h: Declare sys_errlist and sys_nerr, under
8467         Cygwin.
8468
8469 2001-08-13  Jeff Johnston  <jjohnstn@redhat.com>
8470
8471         * libc/include/malloc.h (M_MXFAST, M_NLBLKS, M_GRAIN, M_KEEP): New
8472         macro constants for mallopt options.
8473         (M_TRIM_THRESHOLD, M_TOP_PAD, M_MMAP_THRESHOLD, M_MMAP_MAX): Ditto.
8474
8475 2001-08-02  Jeff Johnston  <jjohnstn@redhat.com>
8476
8477         * libc/include/stdio.h (BUFSIZ): Define to __BUFSIZ__ if provided,
8478         otherwise default.
8479
8480 2001-07-12  Aldy Hernandez  <aldyh@redhat.com>
8481
8482         * libc/machine/mips/setjmp.S: Allow mips16 and mips64 to coexist.
8483
8484 2001-06-27  Nick Clifton  <nickc@cambridge.redhat.com>
8485
8486         * libc/include/machine/ieeefp.h (__IEEE_BYTES_LITTLE_ENDIAN):
8487         Define for little endian ARMs.
8488
8489         * libc/stdlib/mprec.h (Storeinc): Use little endian version if
8490         __IEEE_BYTES_LITTLE_ENDIAN is defined.
8491
8492 2001-06-11  Danny Smith  <dannysmith@users.sourceforge.net>
8493
8494         * /libc/include/ctype.h (is* and to* macros): Do not define if C++.
8495
8496 2001-06-11  Egor Duda  <deo@logos-m.ru>
8497
8498         * libc/ctype/ctype_.c: When compiled with gcc on platforms
8499         with signed char, make _ctype_[-128] ... _ctype[-1] refer to
8500         initialized memory region. Platform can define COMPACT_CTYPE
8501         to avoid allocation of the additional 128 bytes of data.
8502         Add pointer to _ctype_ array. Always initialize all _ctype_
8503         array elements.
8504
8505 2001-06-08  Jonathan Larmour  <jlarmour@redhat.com>
8506
8507         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Avoid dereferencing
8508         NULL pointer.
8509
8510 2001-05-28  Nick Clifton  <nickc@cambridge.redhat.com>
8511
8512         * libc/stdio/vfprintf.c (_VFPRINTF_R): Handle printf ("%#.0o",0)
8513
8514 2001-05-25  Nick Clifton  <nickc@cambridge.redhat.com>
8515
8516         * libc/machine/xscale/memcmp.c: Fix bug when both pointers have
8517         matching, non-word alignment, and the length is <= 4 but more than
8518         enough to move them over a word boundary.
8519         Add comments explaining what each instruction does.
8520
8521 Mon May  7 20:39:25 2001  Christopher Faylor <cgf@cygnus.com>
8522
8523         * libc/include/sys/stat.h: Revert March 3, Cygwin change.
8524         * libc/include/sys/unistd.h: Ditto.
8525
8526 2001-05-04  Earnie Boyd  <earnie@users.sourceforge.net>
8527
8528         * libc/string/strrchr.c: Use strchr for the speed improvements.
8529
8530 2001-05-01  Jeff Johnston  <jjohnstn@redhat.com>
8531
8532         * libc/stdio/findfp (__sinit)[HAVE_FCNTL]: For platforms that have
8533         real file systems, let __smakebuf() determine if line buffering
8534         should be used for stdout.
8535
8536 2001-04-27  Jeff Johnston  <jjohnstn@redhat.com>
8537
8538         * libc/stdio/vfscanf.c (__svfscanf_r): Initialize new_exp local var.
8539
8540 2001-04-27  Jeff Johnston  <jjohnstn@redhat.com>
8541
8542         * libc/include/stdlib.h: Add prototype for _strtod_r.
8543
8544 2001-04-24  Charles Wilson  <cwilson@ece.gatech.edu
8545
8546         * libc/stdio/vprintf.c (vprintf): fix signature to use _DEFUN
8547         * libc/stdio/vprintf.c (_vprintf_r): new function
8548         * libc/stdio/vsnprintf.c (vsnprintf): fix signature to use _DEFUN
8549         * libc/stdio/vsnprintf.c (_vsnprintf_r): fix signature to use
8550         _DEFUN, and call _vfprintf_r, not vfprintf.
8551         * libc/stdio/vsprintf.c (vsprintf.c): fix signature to use _DEFUN
8552         * libc/stdio/vsprintf.c (_vsprintf_r): fix signature to use
8553         _DEFUN, and call _vfprintf_r, not vfprintf.
8554
8555 2001-04-22  Earnie Boyd  <earnie@users.sourceforge.net>
8556   
8557         * libc/include/sys/unistd.h [X_OK]: Use better protection against
8558         Cygwin X_OK definitions in sys/file.h.
8559
8560 Fri Apr 20 23:17:51 2001  Christopher Faylor <cgf@cygnus.com>
8561
8562         * libc/include/sys/time.h: Define timercmp and other macros for
8563         __CYGWIN__, too.
8564
8565 2001-04-20  Jeff Johnston  <jjohnstn@redhat.com>
8566         
8567         * acinclude.m4: Added --enable-malloc-debugging configure flag.
8568         * configure.host: For Cygwin specify -DMALLOC_PROVIDED if
8569         --enable-malloc-debugging selected.
8570         * aclocal.m4 configure: Regenerated.
8571           libm/aclocal.m4 libm/configure: Ditto.
8572         * libc/aclocal.m4 libc/configure: Ditto.
8573         * libc/machine/aclocal.m4 libc/machine/configure: Ditto.
8574         * libc/machine/*/aclocal.m4 libc/machine/*/configure: Ditto.
8575         * libc/sys/aclocal.m4 libc/sys/configure: Ditto.
8576         * libc/sys/*/aclocal.m4 libc/sys/*/configure: Ditto.
8577         * doc/aclocal.m4 doc/configure: Ditto.
8578
8579 2001-04-20  Jeff Johnston  <jjohnstn@redhat.com>
8580
8581         * libc/include/stdio.h[!_REENT_ONLY]: Moved various functions together
8582         into one list.
8583         [!__STRICT_ANSI__]: Moved non-ANSI I/O functions in this list.
8584         (vfscanf, vscanf, vsscanf, _vfscanf_r, _vscanf_r, _vsscanf_r): New
8585         function prototypes.
8586         (_fscanf_r, _sscanf_r): Ditto.
8587         * libc/include/stdlib.h: Added _strtod_r prototype.
8588         * libc/stdio/Makefile.am: Add new v*scanf functions.
8589         * libc/stdio/Makefile.in: Regenerate.
8590         * libc/stdio/fscanf.c: Reorganized so HAVE_STDC only affects prototype
8591         and code is shared.  Added reentrant _fscanf_r which calls __svfscanf_r.
8592         * libc/stdio/scanf.c: Changed to call __svfscanf_r.
8593         * libc/stdio/sscanf.c: Changed documentation to add reentrant routines.
8594         (sscanf): Changed to call __svfscanf_r with _REENT argument.
8595         (_sscanf_r): New routine.
8596         * libc/stdio/local.h: Removed __svfscanf prototype and replaced it
8597         with __svfscanf_r prototype.
8598         * libc/stdio/vfscanf.c (vfscanf, _vfscanf_r: New
8599         routines.
8600         (__svfscanf_r): Reentrant version of __svfscanf which takes reetrancy
8601         structure as argument as calls reentrant versions of helper functions
8602         (e.g. _strtol_r, _strtoul_r). Also replaced calls to atol and atof
8603         to _strtol_r and _strtod_r respectively.
8604         * libc/stdio/vfscanf.c: Also changed __svfscanf to call __svfscanf_r.
8605         * libc/stdlib/strtod.c (strtod): Changed to call _strtod_r with
8606         _REENT argument.
8607         * libc/stdio/vscanf.c: New file.
8608         * libc/stdio/vsscanf.c: Ditto.
8609
8610 2001-04-19  Robert Collins  <rbtcollins@hotmail.com>
8611
8612         * include/time.h[__CYGWIN__]:  Define tzname to _tzname if not defined.
8613         Define daylight to _daylight if it is not defined
8614         Prepare a variable export of timezone based on timezonevariable. 
8615         (Cannot be used with the timezone() function.)
8616
8617 2001-04-17  Stephen L. Moshier  <moshier@moshier.ne.mediaone.net>
8618
8619         * newlib/libm/math/ef_asin.c (pio2_hi, pio2_lo, pio4_hi):
8620          Correct the numerical values.
8621
8622 2001-04-13  Robert Collins <rbtcollins@hotmail.com>
8623
8624         * libc/include/sys/unistd.h: Add pthread_atfork (Cygwin only).
8625
8626 Thu Apr 12 23:11:00 2001  Corinna Vinschen <corinna@vinschen.de>
8627
8628         * libc/include/sys/errno.h: Add ECASECLASH to indicate case clash
8629         on case insensitve file systems.
8630
8631 2001-04-12  Robert Collins <rbtcollins@hotmail.com>
8632
8633         * libc/include/sys/features.h: Add appropriate defines for Cygwin
8634         pthread support.
8635         * libc/include/sys/signal.h: Remove unneeded __CYGWIN__ protection.
8636         * libc/include/sys/types.h: Protect __CYGWIN__ from the rtems pthreads
8637         types.  Include <cygwin/types.h> for the cygwin specific typedefs.
8638
8639 2001-04-04  Richard Sandiford  <rsandifo@redhat.com>
8640
8641         * libc/include/machine/ieeefp.h: Comment about new configuration
8642         macros _FLT_LARGEST_EXPONENT_IS_NORMAL and _FLT_NO_DENORMALS.
8643         * libm/common/fdlib.h: Define new macros for testing floats.
8644         * libm/common/sf_*: Use them.
8645         * libm/math/ef_*: Likewise.
8646         * libm/math/sf_*: Likewise.
8647
8648 2001-03-29  Jeff Johnston  <jjohnstn@redhat.com>
8649
8650         * libc/sys/arm/setjmp.S: Added .code 16 specifier for thumb-mode
8651         prolog to by-pass possible assembler error.
8652
8653 2001-03-21  Egor Duda  <deo@logos-m.ru>
8654
8655         Allow building internal stubs for non-reentrant syscalls
8656         if target provides its own malloc
8657         * libc/reent/reent.c (errno): Move definition here.
8658         * libc/reent/sbrkr.c: From here.
8659
8660 2001-03-20  Danny Smith <dannysmith@users.sourceforge.net>
8661
8662         * libc/include/sys/types.h (BSD int typedefs): Guard with
8663         _BSDTYPES_DEFINED rather than _WINSOCK_H.
8664         (fd_set): Add !defined __USE_W32_SOCKETS to guard; define
8665         _SYS_TYPES_FD_SET.
8666         * libc/include/sys/unistd.h (gethostname): Don't declare if defined
8667         (_WINSOCK_H) || defined (__USE_W32_SOCKETS).
8668
8669 Sat Mar 17 18:30:00 2001  Corinna Vinschen <corinna@vinschen.de>
8670
8671         * libc/include/sys/unistd.h: Add _PC_POSIX_PERMISSONS and
8672         _PC_POSIX_SECURITY constants for Cygwin.
8673
8674 Wed Mar 14  9:34:00 2001  Corinna Vinschen <corinna@vinschen.de>
8675
8676         * libc/sys/cygwin/crt0.c: Add copyright hint.
8677         * libc/sys/cygwin/sys/dirent.h: Ditto.
8678         * libc/sys/cygwin/sys/param.h: Ditto.
8679         * libc/sys/cygwin/sys/utime.h: Ditto.
8680         * libc/sys/cygwin/sys/utmp.h: Ditto.
8681
8682 2001-03-13  Alexandre Oliva  <aoliva@redhat.com>
8683
8684         * libc/stdio/vfprintf.c (QUADINT) [_NO_LONGLONG]: Make it
8685         equivalent to LONGINT.
8686
8687 2001-03-08  Richard Sandiford  <rsandifo@redhat.com>
8688
8689         * (libc/include/machine/setjmp.h): Use 23 long long ints for a
8690         jmpbuf on MIPS64 targets.
8691         * (libc/machine/mips/setjmp.S): Add MIPS64 version.
8692
8693 Wed Mar  7 16:02:07 2001  Christopher Faylor <cgf@cygnus.com>
8694
8695         * libc/include/sys/config.h: Use ssize_t for Cygwin read/write 
8696           declarations.
8697
8698 Mon Mar  5 21:48:54 2001  J"orn Rennecke <amylaar@redhat.com>
8699
8700         * libc/include/sys/config.h (_READ_WRITE_RETURN_TYPE): Define.
8701         For RTEMS, define to be ssize_t.  Default to int if not defined.
8702         * libc/stdio/sscanf.c (eofread): Return _READ_WRITE_RETURN_TYPE.
8703         * libc/stdio/stdio.c (__sread, __swrite): Likewise.
8704         * libc/stdio/local.h (__sread, __swrite): Likewise.
8705         * libc/include/sys/reent.h (_read, _write): Likewise.
8706         * libc/include/sys/unistd.h (read, write, _read, _write): Likewise.
8707         * libc/syscalls/sysread.c (read): Likewise.
8708         * libc/syscalls/syswrite.c (write): Likewise.
8709
8710 2001-03-05  Jeff Johnston  <jjohnstn@redhat.com>
8711
8712         * libc/time/mktime.c: Add L suffix to _SEC_IN_xxxx constants.
8713
8714 Sat Mar  3 00:34:14 2001  Christopher Faylor <cgf@cygnus.com>
8715
8716         * libc/include/sys/stat.h: Use special defines for executable stat bits
8717         when compiling for Cygwin.
8718         * libc/include/sys/unistd.h: Use special define for X_OK when compiling
8719         for Cygwin.
8720
8721 2001-03-02  Jeff Johnston  <jjohnstn@redhat.com>
8722
8723         * libc/string/strtok.c: Add #undef of __STRICT_ANSI__ so prototype
8724         of strtok_r is always defined.
8725
8726 2001-03-02  Jeff Johnston  <jjohnstn@redhat.com>
8727
8728         * libc/include/machine/ansi.h: New dummy header file.
8729
8730 2001-02-22  Jeff Johnston  <jjohnstn@redhat.com>
8731
8732         * libc/include/machine/setjmp-dj.h: With DJ Delorie's permission,
8733         changed the copyright information to allow free modification of the
8734         file with no reference to "copying.dj".
8735         * libc/include/sys/stat-dj.h: Ditto.
8736         * libc/machine/i386/setjmp.S: Ditto.
8737         * libc/sys/h8300hms/sys/file.h: Ditto.
8738         * libc/sys/sysmec/access.c: Ditto.
8739         * libc/sys/sysnecv850/access.c: Ditto.
8740         * libc/stdio/mktemp.c: Fixed typo for the word copyright.
8741         * libc/stdlib/getenv_r.c: Ditto.
8742         * libc/stdlib/putenv_r.c: Ditto.
8743         * libc/stdlib/setenv_r.c: Ditto.
8744         * libc/stdlib/getenv.c: Removed DJ reference since any possible
8745         modifications will now be in the _r version of this file.
8746         * libc/stdlib/putenv.c: Ditto.
8747         * libc/stdlib/setenv.c: Ditto.
8748         * libc/sys/go32/copying.dj: Removed DJ's address which is no longer
8749         valid.  Added a reference to DJ's web page that contains his address.
8750         * libc/sys/go32/*.s: Removed references to DJ's old address.
8751         * libc/sys/go32/*.c: Ditto.
8752         * libc/sys/go32/*.h: Ditto.
8753         * libc/sys/go32/*.S: Ditto.
8754         * libc/sys/go32/sys/*.h: Ditto.
8755
8756 2001-02-21  Jeff Johnston  <jjohnstn@redhat.com>
8757
8758         * libc/stdio/fdopen.c (fdopen): Protect calls to _fcntl() with
8759         HAVE_FCNTL flag check.
8760         * configure.host: Define HAVE_FCNTL for Cygwin, go32, RTEMS, sparc64,
8761         powerpcle, x86 netware, x86 sco, x86 Linux and Vxworks.
8762
8763 Thu Feb 15 01:39:51 2001  Christopher Faylor <cgf@cygnus.com>
8764
8765         * libc/include/sys/signal.h: Always include sys/types.h under Cygwin.
8766
8767 2001-02-14  Kazuhiro Fujieda  <fujieda@jaist.ac.jp>
8768
8769         * libc/include/stdlib.h: Add declarations of rand48 functions and
8770         their reentrant versions.
8771         * libc/include/sys/reent.h: Move macros from rand48.h. Add
8772         struct _rand48 for shared parameters of rand48 functions.
8773         (struct _reent): Add a variable _r48 of struct _rand48.
8774         (_REENT_INIT): Add _r48 initialization.
8775         * libc/stdlib/Makefile.am (lib_a_SOURCES): Add rand48 functions.
8776         (CHEWOUT_FILES): Add rand48.def.
8777         * libc/stdlib/Makefile.am: Add dependencies for rand48 functions.
8778         * libc/stdlib/Makefile.in: Regenerated.
8779         * libc/stdlib/drand48.c (drand48, _drand48_r): Derived from the
8780         NetBSD C library.
8781         * libc/stdlib/erand48.c (erand48, _erand48_r): Ditto.
8782         * libc/stdlib/jrand48.c (jrand48, _jrand48_r): Ditto.
8783         * libc/stdlib/lcong48.c (lcong48, _lcong48_r): Ditto.
8784         * libc/stdlib/lrand48.c (lrand48, _lrand48_r): Ditto.
8785         * libc/stdlib/mrand48.c (mrand48, _mrand48_r): Ditto.
8786         * libc/stdlib/nrand48.c (nrand48, _nrand48_r): Ditto.
8787         * libc/stdlib/seed48.c (seed48, _seed48_r): Ditto.
8788         * libc/stdlib/srand48.c (srand48, _srand48_r): Ditto.
8789         * libc/stdlib/rand48.c (__dorand48): Ditto.
8790         * libc/stdlib/rand48.h: Ditto, and modify declarations of global
8791         parameters into macros referring them in the reentrant structure.
8792
8793 2001-02-12  Jeff Johnston  <jjohnstn@redhat.com>
8794
8795         * libc/include/sys/stat.h: Add mknod for Cygwin now that
8796         Cygwin definition has correct prototype.
8797
8798 2001-02-08  Jeff Johnston  <jjohnstn@redhat.com>
8799
8800         * libc/include/sys/stat.h: Must revert change for mknod
8801         for CYGWIN until winsup/cygwin/syscalls.cc changes mknod
8802         prototype.
8803
8804 2001-02-08  Jeff Johnston  <jjohnstn@redhat.com>
8805
8806         * libc/include/stdio.h: Revert putw prototype.
8807
8808 2001-02-08  Edward M. Lee  <tailbert@yahoo.com>
8809
8810         * libc/include/grp.h: add prototype for initgroups.
8811         * libc/include/stdio.h: fix prototype for putw.
8812         * libc/include/sys/signal.h: add prototype for killpg.
8813         * libc/include/sys/stat.h: enable mknod/lstat for CYGWIN.
8814         * libc/include/sys/unistd.h: add prototypes for getpgid, setpgrp,
8815         vhangup and remove duplicate sysconf prototype.
8816
8817 2001-02-07  Jeff Johnston  <jjohnstn@redhat.com>
8818
8819         * libc/sys/rtems/sys/types.h: Removed.
8820
8821 2001-02-05  Charles Wilson  <cwilson@ece.gatech.edu>
8822
8823         * libc/include/locale.h: add LC_MESSAGES definition
8824
8825 2001-02-01  Alexandre Oliva  <aoliva@redhat.com>
8826
8827         * libc/sys/sh/sys/syscall.h (SYS_get_argc, SYS_get_argN_len,
8828         SYS_get_argN):
8829         * libc/sys/sh/syscalls.c (__setup_argv_for_main,
8830         __setup_argv_and_call_main): New.
8831
8832 2001-01-31  Jeff Johnston  <jjohnstn@redhat.com>
8833
8834         * libc/include/stdio.h (FILENAME_MAX): Changed to use __FILENAME_MAX__
8835         if defined.
8836         (FOPEN_MAX): Changed to use __FOPEN_MAX__ if defined.
8837         (L_tmpnam): Changed to use __L_tmpnam__ if defined.
8838         * libc/include/sys/config.h: Changed to set __FILENAME_MAX__
8839         appropriately for Cygwin and RTEMS so not to exceed PATH_MAX.
8840
8841 Mon Jan 29 23:03:06 2001  Christopher Faylor <cgf@cygnus.com>
8842
8843         * libc/stdlib/mallocr.c: Undefine windows preprocessor variables when
8844         compiling under Cygwin.
8845
8846 2001-01-29  Jeff Johnston  <jjohnstn@redhat.com>
8847
8848         * libc/include/math.h (signgam): Change to errno-like solution
8849         using a function to return the address of the real signgam.
8850         * libc/reent/signgam.c: New file containing __signgam().
8851         * libc/reent/Makefile.am: Added signgam.c to list of files.
8852         * libc/reent/Makefile.in: Regenerated.
8853
8854 2001-01-25  Alexandre Oliva  <aoliva@redhat.com>
8855
8856         * libc/sys/sh/syscalls.c (_times): New.
8857
8858         * configure.host (sh*-*-*): Add -DHAVE_GETTIMEOFDAY to newlib_cflags.
8859         * libc/sys/sh/syscalls.c (_gettimeofday): New.
8860
8861 2001-01-23  Jeff Johnston  <jjohnstn@redhat.com>
8862
8863         * libc/include/math.h (signgam): Regress previous fix as
8864         it does not handle programs with extern int signgam in them.
8865
8866 2001-01-23  Jeff Johnston  <jjohnstn@redhat.com>
8867
8868         * libc/include/math.h (signgam): Changed to a macro refering to
8869         its location in the reentrant structure.
8870
8871 2001-01-23  Jeff Johnston  <jjohnstn@redhat.com>
8872
8873         * libc/stdio/vfprintf.c (_VFPRINTF_R): Modification to fix
8874         that suppressed . for %.0f, 0.1.  Check now looks if there
8875         are padding zeroes (expt) in addition to any digits (ndig) to
8876         print.
8877
8878 2001-01-18  Jeff Johnston  <jjohnstn@redhat.com>
8879
8880         * libc/sys/arc/Makefile.am: New file.
8881         * libc/sys/arc/Makefile.in: Ditto.
8882         * libc/sys/arc/aclocal.m4: Ditto.
8883         * libc/sys/arc/configure: Ditto.
8884         * libc/sys/arc/configure.in: Ditto.
8885         * libc/sys/arc/crt0.S: Ditto.
8886         * libc/sys/arc/isatty.c: Ditto.
8887         * libc/sys/arc/mem-layout.c: Ditto.
8888         * libc/sys/arc/sbrk.c: Ditto.
8889         * libc/sys/arc/syscalls.c: Ditto.
8890         * libc/sys/arc/sys/syscall.h: Ditto.
8891
8892 Wed Jan 17 23:20:56 2001  Christopher Faylor <cgf@cygnus.com>
8893
8894         * libc/include/sys/unistd.h: Use correct declaration for setdtablesize.
8895
8896 Fri Jan 12 00:34:31 2001  Christopher Faylor <cgf@cygnus.com>
8897
8898         * libc/include/sys/signal.h: Add some SA_* defines for Cygwin.
8899
8900 Thu Jan 11 20:42:06  2001  Earnie Boyd  <earnie_boyd@yahoo.com>
8901
8902         * libc/include/sys/features.h: __CYGWIN__ preferred over __CYGWIN32__
8903
8904 2001-01-09  Nick Clifton  <nickc@redhat.com>
8905
8906         * configure.host (v859): Remove unsupported compiler options.
8907
8908 Fri Jan  5 19:57:00 EST 2001  Aaron J. Grier  <aaron@frye.com>
8909
8910         * src/newlib/configure.host (*-*-rtems*): add printf long long
8911         support for RTEMS.
8912
8913 2000-12-19  Graham Stott <grahams@redhat.com>
8914
8915         * libc/machine/xscale/memcmp.c (memcmp): Add clobber for "lr".
8916
8917 Wed Dec 14  Jeff Johnston  <jjohnstn@redhat.com>
8918
8919         * configure.host: Turn on long double I/O for Cygwin.
8920
8921 Wed Dec 14  Jeff Johnston  <jjohnstn@redhat.com>
8922
8923         * MAINTAINERS: Removed Ranjith.
8924         * NEWS: Updated for 1.9.0.
8925         * README: Updated.
8926         * acinclude.m4: Updated to release 1.9.0.
8927         * aclocal.m4 configure
8928           doc/aclocal.m4 doc/configure libc/aclocal.m4 libc/configure
8929           libc/machine/aclocal.m4 libc/machine/configure
8930           libc/machine/a29k/aclocal.m4 libc/machine/a29k/configure
8931           libc/machine/arm/aclocal.m4 libc/machine/arm/configure
8932           libc/machine/d10v/aclocal.m4 libc/machine/d10v/configure
8933           libc/machine/d30v/aclocal.m4 libc/machine/d30v/configure
8934           libc/machine/fr30/aclocal.m4 libc/machine/fr30/configure
8935           libc/machine/h8300/aclocal.m4 libc/machine/h8300/configure
8936           libc/machine/h8500/aclocal.m4 libc/machine/h8500/configure
8937           libc/machine/hppa/aclocal.m4 libc/machine/hppa/configure
8938           libc/machine/i386/aclocal.m4 libc/machine/i386/configure
8939           libc/machine/i960/aclocal.m4 libc/machine/i960/configure
8940           libc/machine/m32r/aclocal.m4 libc/machine/m32r/configure
8941           libc/machine/m68k/aclocal.m4 libc/machine/m68k/configure
8942           libc/machine/m88k/aclocal.m4 libc/machine/m88k/configure
8943           libc/machine/mips/aclocal.m4 libc/machine/mips/configure
8944           libc/machine/mn10200/aclocal.m4 libc/machine/mn10200/configure
8945           libc/machine/mn10300/aclocal.m4 libc/machine/mn10300/configure
8946           libc/machine/necv70/aclocal.m4 libc/machine/necv70/configure
8947           libc/machine/powerpc/aclocal.m4 libc/machine/powerpc/configure
8948           libc/machine/sh/aclocal.m4 libc/machine/sh/configure
8949           libc/machine/sparc/aclocal.m4 libc/machine/sparc/configure
8950           libc/machine/tic80/aclocal.m4 libc/machine/tic80/configure
8951           libc/machine/v850/aclocal.m4 libc/machine/v850/configure
8952           libc/machine/w65/aclocal.m4 libc/machine/w65/configure
8953           libc/machine/xscale/aclocal.m4 libc/machine/xscale/configure
8954           libc/machine/z8k/aclocal.m4 libc/machine/z8k/configure
8955           libc/sys/aclocal.m4 libc/sys/configure
8956           libc/sys/a29khif/aclocal.m4 libc/sys/a29khif/configure
8957           libc/sys/arm/aclocal.m4 libc/sys/arm/configure
8958           libc/sys/cygwin/aclocal.m4 libc/sys/cygwin/configure
8959           libc/sys/d10v/aclocal.m4 libc/sys/d10v/configure
8960           libc/sys/decstation/aclocal.m4 libc/sys/decstation/configure
8961           libc/sys/go32/aclocal.m4 libc/sys/go32/configure
8962           libc/sys/h8300hms/aclocal.m4 libc/sys/h8300hms/configure
8963           libc/sys/h8500hms/aclocal.m4 libc/sys/h8500hms/configure
8964           libc/sys/linux/aclocal.m4 libc/sys/linux/configure
8965           libc/sys/m88kbug/aclocal.m4 libc/sys/m88kbug/configure
8966           libc/sys/netware/aclocal.m4 libc/sys/netware/configure
8967           libc/sys/rtems/aclocal.m4 libc/sys/rtems/configure
8968           libc/sys/sh/aclocal.m4 libc/sys/sh/configure
8969           libc/sys/sparc64/aclocal.m4 libc/sys/sparc64/configure
8970           libc/sys/sun4/aclocal.m4 libc/sys/sun4/configure
8971           libc/sys/sysmec/aclocal.m4 libc/sys/sysmec/configure
8972           libc/sys/sysnec810/aclocal.m4 libc/sys/sysnec810/configure
8973           libc/sys/sysnecv850/aclocal.m4 libc/sys/sysnecv850/configure
8974           libc/sys/sysvi386/aclocal.m4 libc/sys/sysvi386/configure
8975           libc/sys/sysvnecv70/aclocal.m4 libc/sys/sysvnecv70/configure
8976           libc/sys/tic80/aclocal.m4 libc/sys/tic80/configure
8977           libc/sys/w65/aclocal.m4 libc/sys/w65/configure
8978           libc/sys/z8ksim/aclocal.m4 libc/sys/z8ksim/configure
8979           libm/aclocal.m4 libm/configure: Regenerated.
8980
8981 Wed Dec 13 11:52:00 2000  Corinna Vinschen <vinschen@cygnus.com>
8982
8983         * libc/include/sys/unistd.h: Add declarations for `chroot' and `getwd'
8984         when __CYGWIN__ is defined.
8985
8986 2000-12-13  Jeff Johnston  <jjohnstn@redhat.com>
8987
8988         * libc/stdlib/ldtoa.c (_ldcheck): New routine
8989         that categorizes a long double as NaN, Infinity, or other.
8990         * libc/stdio/vfprintf.c [WANT_IO_LONG_DBL](_VFPRINTF_R): Removed 
8991         isinfl and isnanl static routines which were i386-specific.  Changed 
8992         calls to the two removed routines to a single _ldcheck call.
8993         * libc/stdio/vfieeefp.h (ldieee): Fixed missing semi-colons.
8994
8995 2000-12-13  Jeff Johnston  <jjohnstn@redhat.com>
8996
8997         * Makefile.am: Fixed install-data-local target to use
8998         $(mkinstalldirs) for the installed header files to ensure
8999         the directories exist before copying.
9000         * Makefile.in: Regenerated.
9001
9002 2000-12-12  Jeff Johnston  <jjohnstn@redhat.com>
9003
9004         * libc/include/sys/unistd.h: Restored Cygwin _SC
9005         constants and moved new constants appropriately
9006         so Cygwin will build.
9007
9008 2000-12-11  Joel Sherrill <joel@OARcorp.com>
9009
9010         * Merge RTEMS specific .h files into main libc/include.
9011         * libc/sys/rtems/include/signal.h: Removed.
9012         * libc/sys/rtems/include/time.h: Removed.
9013         * libc/sys/rtems/sys/features.h: Removed.
9014         * libc/sys/rtems/sys/sched.h: Removed.
9015         * libc/sys/rtems/sys/siginfo.h: Removed.
9016         * libc/sys/rtems/sys/signal.h: Removed.
9017         * libc/sys/rtems/sys/time.h: Removed.
9018         * libc/sys/rtems/sys/times.h: Removed.
9019         definitions for time_t and clock_t since these are
9020         no longer in time.h.
9021         * libc/include/pthread.h: New file.
9022         * libc/include/sys/sched.h: New file.
9023         * libc/include/sys/features.h: New file.
9024         * libc/include/time.h: Removed duplicate definition of clock_t
9025         and time_t, get them from <sys/types.h> instead.  Add prototypes
9026         for POSIX clock and timer functionality.
9027         * libc/sys/linux/sys/types.h: Changed to include
9028         * libc/include/machine/types.h: Add _CLOCKID_T_ and _TIMER_T_.
9029         * libc/include/sys/signal.h: Add more complete set of POSIX
9030         signal functionality including real-time and threaded signals.
9031         * libc/include/sys/types.h: Add clock_t, time_t, struct
9032         timespec, and struct itimerspec.  Centralizing these makes 
9033         things cleaner.  RTEMS uses 64-bit dev_t.
9034         Added numerous primitive definitions
9035         for pthreads including macros, pthread_attr_t,
9036         pthread_mutexattr_t, pthread_condattr_t, pthread_key_t, 
9037         pthread_once_t, and pthread_t.
9038         * libc/include/sys/unistd.h: Added getlogin_r() prototype.
9039         If RTEMS follow POSIX on read(), write() and sbrk() prototype.
9040         Feature flags removed and moved to new file <sys/features.h>.
9041         Full set of POSIX sysconf() constants
9042
9043 2000-12-08  Werner Almesberger  <Werner.Almesberger@epfl.ch>
9044
9045         * configure.host: Added x86 linux target.
9046         * libc/unix/getpass.c (_PATH_PASSWD, _PASSWORD_LEN): Default
9047         definitions provided if not already defined.
9048         * libc/sys/linux/crt0.c: New file.
9049         * libc/sys/linux/Makefile.am: Ditto.
9050         * libc/sys/linux/Makefile.in: Ditto.
9051         * libc/sys/linux/aclocal.m4: Ditto.
9052         * libc/sys/linux/brk.c: Ditto.
9053         * libc/sys/linux/configure: Ditto.
9054         * libc/sys/linux/configure.in: Ditto.
9055         * libc/sys/linux/getoptlong.c: Ditto.
9056         * libc/sys/linux/ids.c: Ditto.
9057         * libc/sys/linux/inode.c: Ditto.
9058         * libc/sys/linux/io.c: Ditto.
9059         * libc/sys/linux/linux.c: Ditto.
9060         * libc/sys/linux/process.c: Ditto.
9061         * libc/sys/linux/realpath.c: Ditto.
9062         * libc/sys/linux/select.c: Ditto.
9063         * libc/sys/linux/signal.c: Ditto.
9064         * libc/sys/linux/systat.c: Ditto.
9065         * libc/sys/linux/termios.c: Ditto.
9066         * libc/sys/linux/time.c: Ditto.
9067         * libc/sys/linux/wait.c: Ditto.
9068         * libc/sys/linux/include/alloca.h: Ditto.
9069         * libc/sys/linux/include/getopt.h: Ditto.
9070         * libc/sys/linux/include/stdint.h: Ditto.
9071         * libc/sys/linux/include/unistd.h: Ditto.
9072         * libc/sys/linux/sys/cdefs.h: Ditto.
9073         * libc/sys/linux/sys/dirent.h: Ditto.
9074         * libc/sys/linux/sys/errno.h: Ditto.
9075         * libc/sys/linux/sys/fcntl.h: Ditto.
9076         * libc/sys/linux/sys/file.h: Ditto.
9077         * libc/sys/linux/sys/ioctl.h: Ditto.
9078         * libc/sys/linux/sys/resource.h: Ditto.
9079         * libc/sys/linux/sys/signal.h: Ditto.
9080         * libc/sys/linux/sys/stat.h: Ditto.
9081         * libc/sys/linux/sys/syscall.h: Ditto.
9082         * libc/sys/linux/sys/termios.h: Ditto.
9083         * libc/sys/linux/sys/time.h: Ditto.
9084         * libc/sys/linux/sys/types.h: Ditto.
9085         * libc/sys/linux/sys/utmp.h: Ditto.
9086         * libc/sys/linux/sys/utsname.h: Ditto.
9087         * libc/sys/linux/sys/wait.h: Ditto.
9088
9089 2000-12-08  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
9090
9091         * Makefile.am: $(INSTALL), $(INSTALL_DATA), and $(INSTALL_PROGRAM)  
9092         can be a relative path to $(top_srcdir)/install.sh so ensure the
9093         autoconf detected settings are properly passed recursively.
9094         Similarly, add AM_MAKEFLAGS to FLAGS_TO_PASS so they also get passed
9095         properly to subdirectories.
9096         * Makefile.in: Regenerated.
9097
9098 2000-12-07  Jay Kulpinski <jskulpin@eng01.gdds.com>
9099
9100         * libc/stdio/vfprintf.c: Minor modification to avoid requiring
9101         a floating point register unless really printing a floating
9102         point number.
9103
9104 2000-12-07  Jeff Johnston  <jjohnstn@redhat.com>
9105
9106         * libc/stdlib/ldtoa.c: Removed include of alloca.h.
9107         Also removed \r's.
9108         (asctoeg): Replaced alloca call with stack array and malloc
9109         when storage exceeds reasonable limit.
9110         (e53toe): Fixed einfin calls missing ldp parameter.
9111         (eiisinf): Hide behind check for LDBL_MANT_DIG == 64.
9112
9113 2000-12-06  Jeff Johnston  <jjohnstn@redhat.com>
9114
9115
9116         * libc/stdio/vfscanf.c: Fix typo for _NO_LONGDBL macro.
9117
9118 2000-12-06  Jeff Johnston  <jjohnstn@redhat.com>
9119
9120         * libc/stdlib/Makefile.am: Added ldtoa.c to list of sources.
9121         * libc/stdlib/Makefile.in: Regenerated.
9122         * libc/stdio/floatio.h: Added suitable MAXEXP for long double.
9123         * libc/stdio/vfieeefp.h: Added long double bit structures.
9124         * libc/stdio/vfprintf.c[WANT_IO_LONG_DBL]: Added long double support.
9125         [WANT_IO_LONG_DBL](isinfl, isnanl): New static long double routines.
9126         (exponent): Changed expbuf to reasonable maximum instead of MAXEXP.
9127         * libc/stdio/vfscanf.c[WANT_IO_LONG_DBL]: Added long double support.
9128         * libc/stdlib/ldtoa.c: New file containing _ldtoa_r and
9129         _strtold routines used for conversions between character
9130         and long double.
9131
9132 Wed Dec  6 12:01:00 2000  Corinna Vinschen <vinschen@cygnus.com>
9133
9134         * libc/include/stdlib.h: Add declarations for `mkstemp' and `mktemp'.
9135
9136 2000-12-04  Joel Sherrill <joel@OARcorp.com>
9137
9138         * libc/include/machine/time.h: RTEMS systems can configure clock
9139         tick rate so use sysconf() to ask.
9140
9141 2000-12-04  Joel Sherrill <joel@OARcorp.com>
9142
9143         * libc/include/sys/times.h: Add reference to POSIX standard.
9144
9145 2000-12-04  Joel Sherrill <joel@OARcorp.com>
9146
9147         * libc/include/sys/time.h: Added BSD timer manipulation macros
9148         used by RTEMS code.
9149
9150 2000-12-04  Joel Sherrill <joel@OARcorp.com>
9151
9152         * libc/sys/rtems/crt0.c: Add stubs for functions implicitly
9153         referenced by code generated by gcc 2.8.1.
9154         (a29k): Add stubs for V_SPILL, V_FILL, V_BSD_OS, V_EPI_OS to 
9155         satisfy gcc.
9156
9157 2000-12-04  Joel Sherrill <joel@OARcorp.com>
9158
9159         * libc/stdlib/system.c: Avoid compiling do_system() for RTEMS.
9160
9161 2000-12-04  Joel Sherrill <joel@OARcorp.com>
9162
9163         * libc/include/ieeefp.h: Added entries for OpenCores CPUs.
9164
9165 2000-12-04  Joel Sherrill <joel@OARcorp.com>
9166
9167         * configure.host (or16, or32): New entries for OpenCores
9168         OpenRisc CPUs.
9169         (*-*-rtems*): Add -DNO_EXEC.
9170
9171 2000-12-04  Keith Outwater <vac4050@cae597.rsc.raytheon.com>
9172
9173         * libc/include/sys/errno.h: Added comments on many error numbers.
9174         * libc/string/strerror.c: Added some more strings.
9175
9176 2000-11-30  Jeff Johnston <jjohnstn@redhat.com>
9177
9178         * libc/sys/sh/syscalls.c (_link): New stub.
9179
9180 2000-11-29  Nick Clifton  <nickc@redhat.com>
9181
9182         * configure.host: Add xscale target.
9183         * libc/machine/xscale: New directory.
9184         * libc/machine/xscale/Makefile.am: New file.
9185         * libc/machine/xscale/Makefile.in: New file.
9186         * libc/machine/xscale/aclocal.m4: New file.
9187         * libc/machine/xscale/configure: New file.
9188         * libc/machine/xscale/configure.in: New file.
9189         * libc/machine/xscale/memchr.S: New file.
9190         * libc/machine/xscale/memcmp.S: New file.
9191         * libc/machine/xscale/memcpy.S: New file.
9192         * libc/machine/xscale/memmove.S: New file.
9193         * libc/machine/xscale/memset.S: New file.
9194         * libc/machine/xscale/strchr.S: New file.
9195         * libc/machine/xscale/strcmp.S: New file.
9196         * libc/machine/xscale/strcpy.S: New file.
9197         * libc/machine/xscale/strlen.S: New file.
9198
9199 Sat Nov 25 11:24:00 2000  Corinna Vinschen <vinschen@cygnus.com>
9200
9201         * libc/include/sys/types.h: Change i to `__i' in FD_ZERO macro to
9202         avoid compiler warnings.
9203
9204 2000-11-22  Michael Meissner  <meissner@redhat.com>
9205
9206         * libc/posix/execl.c (execl): Don't reference environ directly,
9207         reference it only via a static pointer to avoid problems with some
9208         shared library systems and with different uses of small data where
9209         the user specifies his own version of environ.
9210         * libc/posix/execv.c (execv): Ditto.
9211         * libc/stdlib/getenv_r.c (_findenv_r): Ditto.
9212         * libc/stdlib/setenv_r.c (_setenv_r,_unsetenv_r): Ditto.
9213         * libc/stdlib/system.c (system, !cygwin32 case): Ditto.
9214
9215         * libc/stdlib/getenv.c (environ): Delete unused reference to
9216         environ.
9217
9218         * libc/stdlib/getenv_r.c: Make initial comment friendlier to emacs
9219         colorization.
9220         * libc/stdlib/system.c: Ditto.
9221
9222 Tue Nov 21 20:32:21 2000  Christopher Faylor <cgf@cygnus.com>
9223
9224         * libc/sys/cygwin/sys/dirent.h: Change definition to avoid necessity of
9225         including windows headers.
9226
9227 2000-11-20  Jeff Johnston  <jjohnstn@redhat.com>
9228
9229         * libc/include/sys/unistd.h: Removed definition of MAXNAMLEN.
9230         * libc/include/dirent.h: Added definition of MAXNAMLEN if
9231         not defined by sys/dirent.h.
9232         * libc/posix/execvp.c: Added include of dirent.h to get
9233         MAXNAMLEN value which used to be in unistd.h.
9234
9235 Mon Nov  6 12:56:00 2000  Corinna Vinschen <vinschen@cygnus.com>
9236
9237         * libc/include/sys/types.h: Change type of i to `size_t' in
9238         FD_ZERO macro to avoid compiler warnings.
9239
9240 Sun Oct 29 20:06:41 2000  Christopher Faylor <cgf@cygnus.com>
9241
9242         * libc/include/stdlib.h: Avoid declaring cfree under Cygwin.
9243         * libc/include/malloc.h: Ditto.  Also remove obsolete declaration.
9244
9245 Tue Oct 24 20:16:00 2000  Corinna Vinschen <vinschen@cygnus.com>
9246
9247         * libc/include/sys/unistd.h: Add defines for sysconf values
9248         _SC_NPROCESSORS_CONF, _SC_NPROCESSORS_ONLN, _SC_PHYS_PAGES and
9249         _SC_AVPHYS_PAGES.
9250
9251 Mon Oct  9 20:26:33 2000  Christopher Faylor <cgf@cygnus.com>
9252
9253         * libc/include/sys/unistd.h: Add getdtablesize and setdtablesize
9254         declarations for __CYGWIN__.
9255
9256 2000-09-19  Geoffrey Keating  <geoffk@cygnus.com>
9257
9258         * libc/signal/signal.c (__sigtramp_r): ISO C requires
9259         case labels to be integral constant expressions, so
9260         use an if/else tree instead.
9261         (_raise_r): Likewise.
9262
9263 2000-09-13  Jeff Johnston  <jjohnstn@redhat.com>
9264
9265         * libc/machine/v850/setjmp.S: Fixed tab problems caused by
9266         clipping patch from e-mail reader.
9267
9268 2000-09-13  Will Cohen  <wcohen@redhat.com>
9269
9270         * libc/machine/v850/setjmp.S (_setjmp): Save r1 rather than r0.
9271         Added return value 0.
9272         (_longjmp): Allow longjmp to return value of second argument
9273         passed to it.
9274
9275 2000-09-06  Jeff Johnston <jjohnstn@redhat.com>
9276
9277         * libc/include/sys/types.h (FD_ZERO): Remove call to bzero and
9278         inline code to prevent having to include another header file.
9279
9280 Wed Sep  6 15:06:40 2000  Christopher Faylor <cgf@cygnus.com>
9281
9282         * Makefile.am: Fix space vs. tab problem in install-data-local.
9283         * Makefile.in: Regenerate.
9284
9285 Wed Sep  6 13:49:51 2000  Christopher Faylor <cgf@cygnus.com>
9286
9287         * libc/include/_ansi.h (_EXFUN): Define specially for __CYGWIN__.
9288         (_EXPARM): New macro for defining a function parameter.
9289         * libc/include/stdlib.h: Use _EXPARM.
9290         * libc/stdlib/mallocr.c: Don't build cfree for Cygwin.
9291
9292 2000-09-05  Manfred Hollstein  <manfredh@redhat.com>
9293
9294         * Makefile.am (install-data-local): Use optional $(DESTDIR) where
9295         required, as documented in the gnu coding standards.
9296         * Makefile.in: Regenerate.
9297
9298 2000-09-05  Jeff Johnston <jjohnstn@redhat.com>
9299
9300         * libc/include/fcntl.h (_FNDELAY): Changed to be _FNONBLOCK to
9301         make O_NDELAY and O_NONBLOCK have the same value.
9302
9303 2000-08-30  Kazu Hirata  <kazu@hxi.com>
9304
9305         * libc/sys/h8300hms/crt0.S: Optimize for both speed and code size.
9306
9307 2000-08-30  Werner Almesberger  <Werner.Almesberger@epfl.ch>
9308
9309         * libc/posix/execve.c: included unistd.h for "_execve" prototype.
9310         * libc/misc/unctrl.c libc/sys/sysvi386/crt0.c (sccsid): changed
9311         "#ifndef lint" to "#if defined(LIBC_SCCS) && !defined(lint)" like
9312         everywhere else.
9313
9314 2000-08-30  Geoffrey Keating  <geoffk@cygnus.com>
9315
9316         * libc/string/swab.c: Specify that it's defined in <unistd.h>.
9317         * libc/include/string.h: Don't include <sys/types.h>,
9318         as it causes really bad namespace pollution.  Don't declare
9319         swab(), it is properly declared in unistd.h.
9320
9321 2000-08-29  Werner Almesberger  <Werner.Almesberger@epfl.ch>
9322
9323         * libc/unix/getpwent.c (getpwnam, getpwuid, getpwent): removed
9324         (broken) support for non-existent /etc/passwd field "comment".
9325
9326 2000-08-27  Werner Almesberger  <Werner.Almesberger@epfl.ch>
9327
9328         * libc/posix/scandir.c (DIRSIZ, scandir): use struct dirent.d_namlen
9329         only if _DIRENT_HAVE_D_NAMLEN is defined.
9330         (alphasort): aligned prototype with
9331         libc/sys/cygwin/sys/dirent.h and simplified function body.
9332         * libc/posix/telldir.c (telldir): changed "telldir" prototype to
9333         long telldir (DIR *) as mentioned in annex B of POSIX.1
9334
9335 2000-08-27  Werner Almesberger  <Werner.Almesberger@epfl.ch>
9336
9337         * libc/machine/i386/i386mach.h: added SOTYPE_FUNCTION to set type
9338         of global entry points if _I386MACH_NEED_SOTYPE_FUNCTION is defined;
9339         Added __CLI and __STI macros (controlled via
9340         _I386MACH_ALLOW_HW_INTERRUPTS macro).
9341         * libc/machine/i386/f_atan2.S libc/machine/i386/f_atan2f.S
9342         libc/machine/i386/f_frexp.S libc/machine/i386/f_frexpf.S
9343         libc/machine/i386/f_ldexp.S libc/machine/i386/f_ldexpf.S
9344         libc/machine/i386/f_log.S libc/machine/i386/f_log10.S
9345         libc/machine/i386/f_log10f.S libc/machine/i386/f_logf.S
9346         libc/machine/i386/f_tan.S libc/machine/i386/f_tanf.S
9347         libc/machine/i386/memchr.S libc/machine/i386/memcmp.S
9348         libc/machine/i386/memcpy.S libc/machine/i386/memmove.S
9349         libc/machine/i386/memset.S libc/machine/i386/setjmp.S
9350         libc/machine/i386/strchr.S libc/machine/i386/strlen.S:
9351         (that's libc/machine/i386/*.S) added SOTYPE_FUNCTION(symbol)
9352         for all global entry points.
9353         * libc/machine/i386/setjmp.S: removed code replicated in
9354         libc/machine/i386/i386mach.h and included i386mach.h instead;
9355         Use __CLI and __STI instead of cli and sti.
9356
9357 2000-08-25  DJ Delorie  <dj@redhat.com>
9358
9359         * libc/include/sys/unistd.h (environ): this one isn't from the
9360         DLL, no __IMPORT
9361
9362 Fri Aug 25 13:37:11 2000  Christopher Faylor <cgf@cygnus.com>
9363
9364         * libc/stdlib/system.c (do_system): Eliminate explicit declaration of
9365         environ when compiling under cygwin since it is already declared in
9366         unistd.h.
9367
9368 2000-08-23  Werner Almesberger  <Werner.Almesberger@epfl.ch>
9369
9370         * libc/stdlib/mprec.c (ulp, b2d, d2b): changed a few expressions
9371         like  x << y-z  to the equivalent  x << (y-z).
9372         (d2b): changed if statements with assignment to perform the
9373         assignment prior to the if check.
9374         * libc/reent/reent.c: included stdlib.h for "_free_r" prototype.
9375         * libc/unix/getpass.c (getpass): moved "echo" assignment out of if.
9376         * libc/unix/ttyname.c: included string.h for "strcpy" prototype.
9377         * libc/unix/getcwd.c (ISDOT): added parentheses to clarify && and ||
9378         precedence.
9379         * libc/include/sys/unistd.h: added "vfork" prototype (for popen.c).
9380         Added "_execve" prototype (for execl.c, execle.c, execv.c, and 
9381         execve.c).
9382         * libc/posix/popen.c (popen): added parentheses to clarify && and ||
9383         precedence.
9384         * libm/math/e_cosh.c (__ieee754_cosh): changed parentheses to
9385         clarify && and || precendence (and to remove pascalism).
9386         * libm/math/e_sinh.c (__ieee754_sinh): Ditto.
9387         * libm/math/s_infconst.c: added another pair of braces to all
9388         initializers for __infinity (need three: for __infinity[1] array,
9389         for union __dmath, and for i[2]).
9390
9391 2000-08-23  Werner Almesberger  <Werner.Almesberger@epfl.ch>
9392
9393         * libc/stdlib/abort.c: changed description: uses "raise" instead of
9394         "getpid" and "kill"; added: uses "write" and "_exit".
9395         Also included unistd.h for "_exit" prototype.
9396         * libc/stdlib/system.c: included unistd.h for "execve" prototype,
9397         reent.h for "_fork_r" and "_wait_r" prototypes.
9398         (do_system): changed  extern char *environ[] to POSIX-friendly 
9399         extern char **environ.
9400         * libc/stdlib/wctomb_r.c: included string.h for "strlen" and "strcmp"
9401         prototypes.
9402         * libc/stdlib/remove.c: included reent.h for "_unlink_r" prototype.
9403         * libc/reent/execr.c: included sys/wait.h for "wait" prototype.
9404         * libc/reent/fstatr.c: included sys/stat.h for "fstat" prototype.
9405         * libc/reent/openr.c: included fcntl.h for "open" prototype.
9406         * libc/reent/signalr.c: included signal.h for "kill" prototype,
9407         unistd.h for "getpid" prototype.
9408         * libc/reent/statr.c: included sys/stat.h for "stat" prototype.
9409         * libc/reent/timer.c: included sys/time.h for "gettimeofday" prototype.
9410         * libc/unix/getut.c (utmpname): removed local, incorrect "strdup"
9411         prototype.  Also included stdlib.h for "abort", string.h for
9412         "strdup" and "strncmp" prototypes.
9413         * libc/unix/getlogin.c: included string.h for "strncmp", "memset", and
9414         "strncpy", unistd.h for "read" and "close" prototypes.
9415         * libc/posix/execvp.c: included string.h for "strchr", "strlen", and
9416         "strcat" prototypes.
9417
9418 2000-08-23  Werner Almesberger  <Wernen Almesberger@epfl.ch>
9419
9420         * libc/stdio/stdio.c (__swrite): declare "oldmode" only if it's
9421         used later (ifdef __SCLE)
9422         * libc/stdio/vfscanf.c (__svfscanf): declare "state" only if it's
9423         used later (ifdef MB_CAPABLE)
9424         * libc/string/memset.c (memset): removed unused variables "count"
9425         and "unaligned_addr"
9426         * libc/locale/locale.c (_setlocale_r): declare "lc_ctype" and
9427         "last_lc_ctype" only of they're used later (ifdef MB_CAPABLE)
9428         * libc/unix/getpwent.c (getpwnam): removed unused variables "uid"
9429         and "gid"
9430
9431 2000-08-23  Werner Almesberger  <Werner.Almesberger@epfl.ch>
9432
9433         * libc/stdlib/envlock.c: changed documented "__env_lock" and
9434         "__env_unlock" prototype from "void *" or "char *" to
9435         "struct _reent *" to match real function.  Also added include
9436         of envlock.h.
9437         * libc/stdlib/mlock.c: changed documented "__malloc_lock" and
9438         "__malloc_unlock" prototype from "void *" or "char *" to
9439         "struct _reent *" to match real function.
9440         * libc/stdlib/envlock.h: added "__env_lock" and "__env_unlock"
9441         prototypes (for getenv_r.c and setenv_r.c).
9442
9443 2000-08-22  Werner Almesberger  <Werner.Almesberger@epfl.ch>
9444
9445         * libc/unix/getut.c (utmpname): added _CONST to reflect common use
9446         and prototype in cygwin's utmp.h
9447
9448 2000-08-16  Eric Fifer  <efifer@sanwaint.com>
9449
9450         * libc/stdio/vfprintf.c (_vfprintf_r): suppress . with "%.0f", 0.1
9451
9452 2000-08-09  Nick Clifton  <nickc@cygnus.com>
9453
9454         * libc/sys/arm/setjmp.S: Recode to clean up function prologues and
9455         epilogue and to allow the functions to be used in a Thumb based
9456         toolchain.
9457
9458 2000-08-08  Jeff Johnston <jjohnstn@redhat.com>
9459
9460         * libc/stdio/snprintf.c (snprintf, _snprintf_r): Fixed code
9461         so size of 0 results in nothing being written to string.
9462         Also fixed code so that when size is non-zero, there is only
9463         a maximum of size - 1 characters written to the array and
9464         a nul terminator is appended at the end.
9465         * libc/stdio/vsnprintf.c (vsnprintf, _vsnprintf_r): Ditto.
9466
9467 2000-08-01  DJ Delorie  <dj@redhat.com>
9468
9469         * libc/include/sys/config.h: define __IMPORT appropriately
9470         * libc/include/ctype.h (_ctype_): use __IMPORT
9471         * libc/include/math.h (__infinity, signam, _LIB_VERSION): ditto
9472         * libc/include/math.h (__mb_cur_max): ditto
9473         * libc/include/time.h (_timezone, _daylight, _tzname): ditto
9474         * libc/include/unctrl.h (__unctrl, __unctrllen): ditto
9475         * libc/include/errno.h (_sys_errlist, _sys_nerr): ditto
9476         * libc/include/unistd.h (environ): ditto
9477
9478 2000-07-28  Michael Meissner  <meissner@redhat.com>
9479
9480         * libc/include/math.h (__infinity): Declare as an array without
9481         bounds to get around small data support.  Rewrite Cygwin support
9482         to be more general.
9483         * libm/math/s_infconst.c (__infinity): Ditto.
9484         * libm/mathfp/s_infconst.c (__infinity): Ditto.
9485
9486 Thu Jul 27 10:46:01 2000  Christopher Faylor <cgf@cygnus.com>
9487
9488         * libc/include/math.h: Use appropriate dll import linkage for
9489         __infinity under Cygwin.
9490
9491 2000-07-13  DJ Delorie  <dj@cygnus.com>
9492
9493         * libc/stdio/vfprintf.c: pad 0.0 correctly with %e
9494
9495 Wed Jun 28 14:08:00 2000  Keith Walker  <keith.walker@arm.com>
9496
9497         * libc/sys/arm/crt0.S (.LC30): Added missing length parameter
9498         to argument list for AngelSWI_Reason_GetCmdLine.
9499
9500 Tue Jun 27 15:49:00 2000  Marek Michalkiewicz  <marekm@linux.org.pl>
9501
9502         * configure.host: Add support for AVR target.
9503         * libc/include/machine/ieeefp.h: Likewise.
9504         * libc/include/sys/config.h: Likewise.
9505
9506 Thu Jun 22 18:35:00 2000  Ranjith Kumaran  <ranjith@cygnus.com>
9507
9508         * README: Newlib 1.8.2 must be built in a separate directory
9509         than the sources.
9510
9511 Tue Jun 20 14:30:00 2000  Jeff Johnston  <jjohnstn@cygnus.com>
9512
9513         * libc/include/sys/reent.h (_rand_next): Added __extension__
9514         qualifier as long long type is not strict ANSI.
9515         * libc/stdlib/rand.c (rand): Added __extension__ qualifier
9516         to long long constant.
9517
9518 Fri Jun 16 23:02:00 2000  Corinna Vinschen <corinna@vinschen.de>
9519
9520         * libc/include/sys/unistd.h: Add prototypes for `seteuid' and
9521         `setegid' provided by Cygwin.
9522
9523 Thu Jun 15  0:21:00 2000  Corinna Vinschen <corinna@vinschen.de>
9524
9525         * libc/stdio/fdopen.c: Take explicit given bin/textmode into
9526         account for Cygwin.
9527
9528 Fri Jun  9 14:28:00 2000  Jeff Johnston  <jjohnstn@cygnus.com>
9529
9530         * libc/include/sys/reent.h (_rand_next): Changed to
9531         unsigned long long and moved to end of _reent struct in _new union.
9532         (_REENT_INIT): Changed to move _rand_next initialization.
9533         * libc/stdlib/rand.c (rand): Changed to use unsigned long long
9534         linear congruential algorithm that is used by DJGPP.
9535
9536 Thu Jun  8 21:18:00 2000  Ranjith Kumaran  <ranjith@cygnus.com>
9537
9538         * libc/include/stdlib.h: Set RAND_MAX to __RAND_MAX.
9539         * libc/include/sys/config.h: Define __RAND_MAX.
9540
9541 Thu Jun  8 17:54:00 2000  Jeff Johnston  <jjohnstn@cygnus.com>
9542
9543         * libc/stdlib/rand_r.c: New algorithm that meets minimal
9544         standard.
9545
9546 Fri Jun  2 23:02:11 2000  Christopher Faylor <cgf@cygnus.com>
9547
9548         * libc/include/string.h: Work around problem with strsignal and gdb.
9549
9550 Tue May 30 13:13:01 2000  Christopher Faylor <cgf@cygnus.com>
9551
9552         * libc/include/ctype.h: __CYGWIN32__ -> __CYGWIN__
9553         * libc/include/malloc.h: Ditto.
9554         * libc/include/process.h: Ditto.
9555         * libc/include/stdio.h: Ditto.
9556         * libc/include/stdlib.h: Ditto.
9557         * libc/include/time.h: Ditto.
9558         * libc/include/machine/setjmp.h: Ditto.
9559         * libc/include/sys/errno.h: Ditto.
9560         * libc/include/sys/signal.h: Ditto.
9561         * libc/include/sys/stat.h: Ditto.
9562         * libc/include/sys/time.h: Ditto.
9563         * libc/include/sys/unistd.h: Ditto.
9564         * libc/include/string.h: Ditto.  strsignal should return a const char *.
9565
9566 2000-05-26  Marek Michalkiewicz  <marekm@linux.org.pl>
9567
9568         * libm/common/s_expm1.c (expm1): Add curly braces, avoid warnings.
9569         * libm/common/s_log1p.c (log1p): Likewise.
9570         * libm/common/s_scalbn.c (scalbn): Likewise.
9571         * libm/math/e_log.c: Likewise.
9572         * libm/math/e_asin.c: Likewise.
9573         * libm/math/ef_asin.c: Likewise.
9574         * libm/math/e_j0.c (pzero, qzero): Remove redundant test.
9575         * libm/math/e_j1.c (pone, qone): Likewise.
9576         * libm/math/ef_j0.c (pzerof, qzerof): Likewise.
9577         * libm/math/ef_j1.c (ponef, qonef): Likewise.
9578         * libm/mathfp/e_j0.c (pzero, qzero): Likewise.
9579         * libm/mathfp/e_j1.c (pone, qone): Likewise.
9580         * libm/mathfp/ef_j0.c (pzerof, qzerof): Likewise.
9581         * libm/mathfp/ef_j1.c (ponef, qonef): Likewise.
9582
9583 2000-05-19  DJ Delorie  <dj@cygnus.com>
9584
9585         * libc/stdio/stdio.c (__stextmode): new, see if file is text mode
9586         (__sread): always read in binary mode
9587         (__swrite): always write in binary mode
9588         * libc/include/stdio.h: no getc/putc macros for cygwin; causes
9589         compatibility issues with different dll versions
9590         * libc/stdio/fopen.c: use __stextmode
9591         * libc/stdio/fdopen.c: ditto
9592         * libc/stdio/freopen.c: ditto
9593         * libc/stdio/findfp.c: set up __SCLE for std{in,out,err}
9594         * libc/stdio/local.h: declare __stextmode
9595         
9596 2000-05-18  DJ Delorie  <dj@cygnus.com>
9597
9598         * libc/stdio/fgets.c (fgets): perform CRLF conversions if __SCLE
9599         
9600 Mon May 15 18:54:00 2000  Jeff Johnston  <jjohnstn@cygnus.com>
9601
9602         * libc/include/ctype.h: Changed tolower and toupper macros
9603         to use __extension__ to prevent pedantic warnings.
9604
9605 Mon May 15 14:26:00 2000  Joel Sherrill  <joel@oarcorp.com>
9606
9607         * libc/sys/rtems/sys/time.h: Add macros for manipulating timeval
9608         structures.
9609
9610 Wed May 10 19:24:53 2000  Jim Wilson  <wilson@cygnus.com>
9611
9612         * libc/include/machine/ieeefp.h: Add ia64 support.
9613         * configure.host: Likewise.
9614
9615 Wed May 10 13:52:24 2000  Egor Duda <deo@logos-m.ru>
9616
9617         * libc/time/asctime_r.c (asctime_r): Change output format. Day of
9618         month is now padded with space, not zero.  This now conforms to
9619         ANSI standard.
9620
9621 Wed May 03 17:57:00 2000  Corinna Vinschen <corinna@vinschen.de>
9622
9623         * libc/include/sys/errno.h: Add define for ENOSHARE ("No such
9624         host or network path") used by cygwin. Add some comments.
9625
9626 Tue May 02 23:45:48 2000  DJ Delorie  <dj@cygnus.com>
9627
9628         * libc/include/stdio.h (FILE): define __SCLE for "convert line
9629         endings" for Cygwin.
9630         (__sgetc): convert line endings if needed
9631         (__sputc): ditto
9632         * libc/stdio/fdopen.c (_fdopen_r): Remember if we opened in text mode
9633         * libc/stdio/fopen.c (_fopen_r): ditto
9634         * libc/stdio/freopen.c (freopen): ditto
9635         * libc/stdio/fread.c (fread): perform CRLF conversions if __SCLE
9636         * libc/stdio/fvwrite.c (__sfvwrite): ditto
9637
9638 Thu Apr 27 07:45:48 2000  Alexandre Oliva  <aoliva@cygnus.com>
9639
9640         * libc/machine/mn10300/setjmp.S (setjmp, longjmp): Use
9641         post-increment when it is worth it, spacewise.
9642
9643 Mon Apr 17 12:46:00 2000  Marek Michalkiewicz <marekm@linux.org.pl>
9644
9645         * libc/signal/signal.c (_signal_r) : Removed unused local variable temp.
9646         * libc/stdio/findfp.c (std): Added declaration of flags and file.
9647         * libc/stdio/mktemp.c (_gettemp, _mkstemp_r, mkstemp): Added int 
9648         return type.
9649         * libc/stdio/putchar.c (putchar): Added return statement.
9650         * libc/stdio/refill.c (lflush): Added correct parentheses.
9651         * libc/stdio/vfprintf.c (_VFPRINTF_R): Ditto.
9652         * libc/stdio/vfscanf.c (__svfscanf): Changed sprintf call which 
9653         prints long value to use l qualifier.
9654         * libc/stdlib/dtoa.c (_dtoa_r): Added parentheses to remove warning
9655         messages and initialized local values: ilim, ilim1, and spec_case.
9656         * libc/stdlib/ecvtbuf.c (print_e): Removed unused variable dp.
9657         * libc/stdlib/mbctype.h (_issjis1, _issjis2): Added parentheses.
9658         * libc/stdlib/mprec.c: Ditto.
9659         * libc/stdlib/setenv_r.c: Ditto.
9660         * libc/stdlib/strtod.c: Ditto.
9661         * libc/stdlib/strtol.c: Ditto.
9662         * libc/stdlib/strtoul.c: Ditto.
9663         * libm/common/sf_expm1.c: Added curly braces to if else clauses.
9664         * libm/common/sf_log1p.c: Ditto.
9665         * libm/common/sf_scalbn.c: Ditto.
9666         * libm/math/ef_log.c: Ditto.
9667
9668 Sun Apr 16 12:45:00 2000  Corinna Vinschen <corinna@vinschen.de>
9669
9670         * libc/posix/execvp.c (execvp): Check path for
9671         trailing slash.
9672
9673 Fri Mar 31 20:39:00 2000  Corinna Vinschen <corinna@vinschen.de>
9674
9675         * libc/include/sys/unistd.h: Add prototypes for
9676         fchmod, fchown, lchown.
9677
9678 Fri Mar 24 15:34:00 2000  Jeff Johnston  <jjohnstn@cygnus.com>
9679
9680         * acinclude.m4: Changed release to 1.8.2.
9681         * aclocal.m4 configure doc/aclocal.m4 doc/configure
9682           libc/aclocal.m4 libc/configure libc/machine/aclocal.m4
9683           libc/machine/configure libc/machine/a29k/aclocal.m4
9684           libc/machine/a29k/configure libc/machine/arm/aclocal.m4
9685           libc/machine/arm/configure libc/machine/d10v/aclocal.m4
9686           libc/machine/d10v/configure libc/machine/d30v/aclocal.m4
9687           libc/machine/d30v/configure libc/machine/fr30/aclocal.m4
9688           libc/machine/fr30/configure libc/machine/h8300/aclocal.m4
9689           libc/machine/h8300/configure libc/machine/h8500/aclocal.m4
9690           libc/machine/h8500/configure libc/machine/hppa/aclocal.m4
9691           libc/machine/hppa/configure libc/machine/i386/aclocal.m4
9692           libc/machine/i386/configure libc/machine/i960/aclocal.m4
9693           libc/machine/i960/configure libc/machine/m32r/aclocal.m4
9694           libc/machine/m32r/configure libc/machine/m68k/aclocal.m4
9695           libc/machine/m68k/configure libc/machine/m88k/aclocal.m4
9696           libc/machine/m88k/configure libc/machine/mips/aclocal.m4
9697           libc/machine/mips/configure libc/machine/mn10200/aclocal.m4
9698           libc/machine/mn10200/configure libc/machine/mn10300/aclocal.m4
9699           libc/machine/mn10300/configure libc/machine/necv70/aclocal.m4
9700           libc/machine/necv70/configure libc/machine/powerpc/aclocal.m4
9701           libc/machine/powerpc/configure libc/machine/sh/aclocal.m4
9702           libc/machine/sh/configure libc/machine/sparc/aclocal.m4
9703           libc/machine/sparc/configure libc/machine/tic80/aclocal.m4
9704           libc/machine/tic80/configure libc/machine/v850/aclocal.m4
9705           libc/machine/v850/configure libc/machine/w65/aclocal.m4
9706           libc/machine/w65/configure libc/machine/z8k/aclocal.m4
9707           libc/machine/z8k/configure libc/sys/aclocal.m4
9708           libc/sys/aclocal.m4 libc/sys/configure
9709           libc/sys/a29khif/aclocal.m4 libc/sys/a29khif/configure
9710           libc/sys/arm/aclocal.m4 libc/sys/arm/configure
9711           libc/sys/cygwin/aclocal.m4 libc/sys/cygwin/configure
9712           libc/sys/d10v/aclocal.m4 libc/sys/d10v/configure
9713           libc/sys/decstation/aclocal.m4 libc/sys/decstation/configure
9714           libc/sys/go32/aclocal.m4 libc/sys/go32/configure
9715           libc/sys/h8300hms/aclocal.m4 libc/sys/h8300hms/configure
9716           libc/sys/h8500hms/aclocal.m4 libc/sys/h8500hms/configure
9717           libc/sys/m88kbug/aclocal.m4 libc/sys/m88kbug/configure
9718           libc/sys/netware/aclocal.m4 libc/sys/netware/configure
9719           libc/sys/rtems/aclocal.m4 libc/sys/rtems/configure
9720           libc/sys/sh/aclocal.m4 libc/sys/sh/configure
9721           libc/sys/sparc64/aclocal.m4 libc/sys/sparc64/configure
9722           libc/sys/sun4/aclocal.m4 libc/sys/sun4/configure
9723           libc/sys/sysmec/aclocal.m4 libc/sys/sysmec/configure
9724           libc/sys/sysnec810/aclocal.m4 libc/sys/sysnec810/configure
9725           libc/sys/sysnecv850/aclocal.m4 libc/sys/sysnecv850/configure
9726           libc/sys/sysvi386/aclocal.m4 libc/sys/sysvi386/configure
9727           libc/sys/sysvnecv70/aclocal.m4 libc/sys/sysvnecv70/configure
9728           libc/sys/tic80/aclocal.m4 libc/sys/tic80/configure
9729           libc/sys/w65/aclocal.m4 libc/sys/w65/configure
9730           libc/sys/z8ksim/aclocal.m4 libc/sys/z8ksim/configure
9731           libm/aclocal.m4 libm/configure: Regenerated.
9732
9733 2000-03-24  Nick Clifton  <nickc@cygnus.com>
9734
9735         * libc/sys/arm/syscalls.c: Fix compile time warnings.
9736         (do_AngelSWI): Add "cc" to list o registers clobbered.
9737
9738 Thu Mar 22 14:57:00 2000  Fernando Nasser <fnasser@redhat.com>
9739
9740         * libc/sys/arm/syscalls.c (do_AngelSWI): Prevent registers with valid
9741         information to be clobbered by an Angel C library support syscall. 
9742
9743 Tue Mar 21 19:08:00 2000  Jeff Johnston <jjohnstn@cygnus.com>
9744
9745         * libc/stdlib/envlock.c: Fixed comment typo.
9746
9747 Fri Mar 17 15:37:00 2000  Jeff Johnston <jjohnstn@cygnus.com>
9748
9749         * libc/stdio/vfscanf.c (__svfscanf): Fixed floating point
9750         code to update nread as each character is processed instead
9751         of using buffer contents which throw away leading zeroes.
9752
9753 Mon Mar 13 15:22:00 2000  Sergei Organov <osv@javad.ru>
9754
9755         * libm/mathfp/sf_sqrt.c: Change _DOUBLE_IS_32BITS sqrt call to sqrtf.
9756
9757 Fri Mar 10 16:09:20 2000  Jeff Johnston <jjohnstn@cygnus.com>
9758
9759         * libc/include/string.h: Include <sys/types.h>.
9760
9761 Fri Mar 10 14:53:50 2000  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
9762
9763         * libc/stdio/putw.c (putw): Return 0 on success, to be compliant
9764         with XSH5, not SVID.
9765
9766 Thu Mar  9 17:20:41 2000  Jeff Johnston <jjohnstn@cygnus.com>
9767
9768         * libc/include/string.h: Changed last argument back to ssize_t
9769         to make it compatible with XPG4 definition which is 
9770         defined in <unistd.h>.  There is a conflict in the SVID 3
9771         and XPG4 definitions and newlib will settle with XPG4.
9772         * libc/string/swab.c: Ditto.
9773
9774 Wed Mar  8 17:11:41 2000  Jeff Johnston <jjohnstn@cygnus.com>
9775
9776         * libc/include/string.h: Changed last argument to size_t.
9777         * libc/string/swab.c: Changed last argument to size_t.
9778
9779 Wed Mar  8 00:46:41 2000  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
9780
9781         * libc/reent/Makefile.am (lib_a_SOURCES): Added unlinkr.c.
9782         (CHEWOUT_FILES): Added unlinkr.def.
9783         * libc/reent/Makefile.in: Rebuilt.
9784         * libc/sys.tex: Include unlinkr.def.
9785         * libc/reent/linkr.c (_unlink_r): Moved to...
9786         * libc/reent/unlinkr.c: ... new file.
9787
9788 Wed Mar  8 00:43:07 2000  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
9789
9790         * libc/string/Makefile.am (lib_a_SOURCES): Added swab.c.
9791         (CHEWOUT_FILES): Added swab.def.
9792         * libc/string/Makefile.in: Rebuilt.
9793         * libc/string/string.tex: Include swab.def.
9794         * libc/include/string.h (swab): Declare.
9795         * libc/string/swab.c: New file.
9796
9797 Wed Mar  8 00:38:35 2000  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
9798
9799         * libc/stdio/Makefile.am (lib_a_SOURCES): Added getw.c and putw.c.
9800         (CHEWOUT_FILES): Added getw.def and putw.def.
9801         * libc/stdio/Makefile.in: Rebuilt.
9802         * libc/stdio/stdio.tex: Include getw.def and putw.def.
9803         * libc/stdio/getw.c: New file.
9804         * libc/stdio/putw.c: New file.
9805
9806 Fri Feb 25 14:50:50 2000  Jeff Johnston <jjohnstn@cygnus.com>
9807
9808         * libc/stdio/flags.c (__sflags): Added check that mode[1]
9809         is non-null before looking at mode[2].
9810
9811 Thu Feb 24 11:43:00 2000  Ran Cabell <rcabell@norfolk.infi.net>
9812
9813         * libm/mathfp/sf_atan2.c: Fix atan2 typo for _DOUBLE_IS_32_BITS.
9814         * libm/mathfp/sf_atan.c: Ditto.
9815
9816 Thu Feb 24 11:39:00 2000  Joel Sherrill <joel@OARcorp.com>
9817
9818         * libc/include/sys/stat.h: Add RTEMS prototype for lstat.
9819
9820 Tue Feb 22 14:37:00 2000  Ran Cabell <rcabell@norfolk.infi.net>
9821
9822         * libm/mathfp/sf_exp.c: Corrected _DOUBLE_IS_32_BITS to be
9823         _DOUBLE_IS_32BITS.
9824
9825 Mon Feb 21 11:43:50 2000  Jeff Johnston <jjohnstn@cygnus.com>
9826
9827         * libc/stdio/vfprintf.c (VFPRINTF): Added CHECK_INIT
9828         call prior to calling _VFPRINTF_R so reentrant data area is set.
9829         (_VFPRINTF_R): Removed now extraneous CHECK_INIT call.
9830
9831 Thu Feb 17 01:42:50 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
9832
9833         * libc/stdio/vfscanf.c (limits.h): #include.
9834         (MAX_LONG_LEN): #define.
9835         (__svfscanf): Handle floating point numbers with arbitrary amounts
9836         of leading zeroes.
9837
9838 2000-02-15  Nick Clifton  <nickc@cygnus.com>
9839
9840         * libc/sys/arm/syscalls.c (_fstat): Initialise all fields to
9841         zero.  Set the blocksize to 1024/
9842
9843 Thu Jan 20 18:57:00 2000  Fernando Nasser <fnasser@redhat.com>
9844
9845         * setvbuf.c (setvbuf):  Set size to BUFSIZ when passed a zero size
9846         with line buffering.
9847
9848 Mon Jan 10 18:43:00 2000  Jeff Johnston <jjohnstn@cygnus.com>
9849
9850         * acinclude.m4: Changed include directory for winsup headers. 
9851         * aclocal.m4 configure libc/aclocal.m4
9852           libc/configure libc/ctype/Makefile.in libc/errno/Makefile.in
9853           libc/locale/Makefile.in libc/machine/aclocal.m4
9854           libc/machine/configure libc/machine/a29k/aclocal.m4
9855           libc/machine/a29k/configure libc/machine/arm/aclocal.m4
9856           libc/machine/arm/configure libc/machine/d10v/aclocal.m4
9857           libc/machine/d10v/configure libc/machine/d30v/aclocal.m4
9858           libc/machine/d30v/configure libc/machine/fr30/aclocal.m4
9859           libc/machine/fr30/configure
9860           libc/machine/h8300/aclocal.m4
9861           libc/machine/h8300/configure libc/machine/h8500/aclocal.m4
9862           libc/machine/h8500/configure libc/machine/hppa/aclocal.m4
9863           libc/machine/hppa/configure libc/machine/i386/aclocal.m4
9864           libc/machine/i386/configure libc/machine/i960/aclocal.m4
9865           libc/machine/i960/configure libc/machine/m32r/aclocal.m4
9866           libc/machine/m32r/configure libc/machine/m68k/aclocal.m4
9867           libc/machine/m68k/configure libc/machine/m88k/aclocal.m4
9868           libc/machine/m88k/configure libc/machine/mips/aclocal.m4
9869           libc/machine/mips/configure libc/machine/mn10200/aclocal.m4
9870           libc/machine/mn10200/configure libc/machine/mn10300/aclocal.m4
9871           libc/machine/mn10300/configure libc/machine/necv70/aclocal.m4
9872           libc/machine/necv70/configure libc/machine/powerpc/aclocal.m4
9873           libc/machine/powerpc/configure 
9874           libc/machine/sh/aclocal.m4
9875           libc/machine/sh/configure libc/machine/sparc/aclocal.m4
9876           libc/machine/sparc/configure
9877           libc/machine/tic80/aclocal.m4 libc/machine/tic80/configure
9878           libc/machine/v850/aclocal.m4 libc/machine/v850/configure
9879           libc/machine/w65/aclocal.m4 libc/machine/w65/configure
9880           libc/machine/z8k/aclocal.m4 libc/machine/z8k/configure
9881           libc/misc/Makefile.in libc/posix/Makefile.in
9882           libc/reent/Makefile.in 
9883           libc/signal/Makefile.in
9884           libc/string/Makefile.in libc/sys/aclocal.m4 libc/sys/configure
9885           libc/sys/a29khif/aclocal.m4 libc/sys/a29khif/configure
9886           libc/sys/arm/Makefile.in libc/sys/arm/aclocal.m4
9887           libc/sys/arm/configure libc/sys/cygwin/aclocal.m4
9888           libc/sys/cygwin/configure libc/sys/d10v/Makefile.in
9889           libc/sys/d10v/aclocal.m4 libc/sys/d10v/configure
9890           libc/sys/decstation/aclocal.m4 libc/sys/decstation/configure
9891           libc/sys/go32/aclocal.m4 libc/sys/go32/configure
9892           libc/sys/h8300hms/aclocal.m4 libc/sys/h8300hms/configure
9893           libc/sys/h8500hms/aclocal.m4 libc/sys/h8500hms/configure
9894           libc/sys/m88kbug/aclocal.m4 libc/sys/m88kbug/configure
9895           libc/sys/netware/aclocal.m4 libc/sys/netware/configure
9896           libc/sys/rtems/aclocal.m4 libc/sys/rtems/configure
9897           libc/sys/sh/Makefile.in libc/sys/sh/aclocal.m4
9898           libc/sys/sh/configure libc/sys/sparc64/aclocal.m4
9899           libc/sys/sparc64/configure libc/sys/sun4/aclocal.m4
9900           libc/sys/sun4/configure libc/sys/sysmec/aclocal.m4
9901           libc/sys/sysmec/configure libc/sys/sysnec810/aclocal.m4
9902           libc/sys/sysnec810/configure libc/sys/sysnecv850/aclocal.m4
9903           libc/sys/sysnecv850/configure libc/sys/sysvi386/aclocal.m4
9904           libc/sys/sysvi386/configure libc/sys/sysvnecv70/aclocal.m4
9905           libc/sys/sysvnecv70/configure libc/sys/tic80/aclocal.m4
9906           libc/sys/tic80/configure libc/sys/w65/aclocal.m4
9907           libc/sys/w65/configure libc/sys/z8ksim/aclocal.m4
9908           libc/sys/z8ksim/configure libc/syscalls/Makefile.in
9909           libc/time/Makefile.in libc/unix/Makefile.in libm/aclocal.m4
9910           libm/configure: Regenerated.
9911
9912 Mon Jan 10 18:43:46 2000  Jeff Johnston <jjohnstn@cygnus.com>
9913
9914         * libc/stdlib/putenv_r.c (_putenv_r): New file.
9915         * libc/stdlib/strdup_r.c (_strdup_r): New file.
9916         * libc/include/string.h: Added _strdup_r.
9917         * libc/stdlib/putenv.c: Added call to reentrant version. 
9918         * libc/stdlib/strdup.c: Ditto.
9919         * libc/stdlib/Makefile.am: Added _putenv_r and _unsetenv_r.
9920         * libc/include/stdlib.h: Ditto.
9921         * libc/stdlib/Makefile.in: Regenerated. 
9922         * libc/string/Makefile.in: Regenerated.
9923         * libc/stdlib/setenv.c: Added reentrant version of unsetenv.
9924         * libc/stdlib/setenv_r.c: Added unsetenv_r and changed memory
9925         management calls to reentrant versions.
9926         * libc/stdlib/wcstombs.c: Added #ifndef _REENT_ONLY wrapper.
9927         * libc/stdlib/wctomb.c: Ditto.
9928         * libc/stdlib/mblen.c: Ditto.
9929         * libc/stdlib/mbstowcs.c: Ditto.
9930         * libc/stdlib/mbtowc.c: Ditto. 
9931         * libc/stdlib/getenv.c: Ditto.
9932         * libc/reent/reent.tex: Added references to _putenv_r, _setenv_r,
9933         and _strdup_r.
9934
9935 Thu Jan  6 15:33:46 2000  Christopher Faylor <cgf@cygnus.com>
9936
9937         patch from Corinna Vinschen <corinna@vinschen.de>
9938         * libc/sys/cygwin/sys/param.h: Define NGROUP_MAX as 16.
9939
9940 Mon Jan 03 14:36:00 2000  Sergei Organov <osv@javad.ru>
9941
9942         * libm/mathfp/s_atangent.c: Fix exponent calculation.
9943         * libm/mathfp/s_ldexp.c: Ditto.
9944         * libm/mathfp/sf_atangent.c: Ditto.
9945         * libm/mathfp/sf_ldexp.c: Ditto.
9946
9947 Tue Dec 14 5:42:00 1999  Ranjith Kumaran <ranjith@cygnus.com>
9948
9949         * libc/machine/i960/setjmp.S: fix typo leaving .link_pix uncommented
9950         * libc/include/locale.h: define NULL to be 0.
9951
9952 Tue Dec  7 15:41:45 1999  Jim Wilson  <wilson@cygnus.com>
9953
9954         * libc/sys/sh/syscalls.c (stack_ptr): Move definition before first
9955         function.
9956
9957 Wed Dec  1 17:39:29 1999  Jeffrey A Law  (law@cygnus.com)
9958
9959         * libc/machine/mn10300/setjmp.S: Handle am33.
9960
9961 1999-11-26  Nick Clifton  <nickc@cygnus.com>
9962
9963         * libc/sys/arm/syscalls.c: Add function prototypes.
9964         (stack_ptr): Move declaration before function definitions.
9965
9966 Sat Nov 20 17:13:00 1999  Ranjith Kumaran <ranjith@cygnus.com>
9967
9968         * NEWS: Updated version information.
9969         * README: Ditto.
9970
9971 Tue Nov 09 12:19:21 1999  Jeff Johnston <jjohnstn@cygnus.com>
9972
9973         * libc/machine/i386/strchr.S: Fixed alignment test.
9974
9975 Thu Oct 28 05:30:46 1999  Andrew Cagney  <cagney@makita.cygnus.com>
9976
9977         * libc/sys/d10v/crt0.S (_start): Construct a real stack frame.
9978
9979 Thu Oct 28 15:29:11 1999  Andrew Cagney  <cagney@b1.cygnus.com>
9980
9981         * libc/sys/d10v/crt0.S (_start): Initialize both SPI and SPU
9982         ensuring that there is space between the two.
9983
9984 Thu Oct 14 13:39:21 1999  Christopher Faylor <cgf@cygnus.com>
9985
9986         * libc/stdio/flags.c: Conditionalize check for 't' for cygwin case
9987         only.
9988
9989 1999-10-08  Vadim Egorov  <egorovv@1c.ru>
9990
9991         * libc/include/stdlib.h: add ptsname, grantpt, unlockpt to cygwin
9992         section
9993
9994 Sat Oct  2 02:02:00 MEST 1999  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
9995
9996         * libc/machine/sh/asm.h: Added __SH4_SINGLE__ to DELAYED_BRANCHES
9997         * libc/machine/sh/memcpy.S: Fix line wrapping in SL macro
9998
9999 Fri Oct  1 13:17:59 CDT 1999  <joel@OARcorp.com>
10000         * libc/include/grp.h: Added getgrnam_r and getgrgid_r prototypes
10001           per POSIX 1003.1b.
10002         * libc/include/pwd.h: Added getpwnam_r and getpwuid_r prototypes
10003           per POSIX 1003.1b.
10004
10005 1999-09-13  DJ Delorie  <dj@cygnus.com>
10006
10007         * libc/stdio/mktemp.c (_gettemp): on cygwin, check for EACCESS
10008         also.
10009
10010 Thu Sep  9 15:31:00 1999  Jeff Johnston <jjohnstn@cygnus.com>
10011
10012         * setvbuf.c (setvbuf):  When mallocing a buffer of size BUFSIZ,
10013         also note BUFSIZ as its size.
10014
10015 Tue Sep  7 17:15:00 1999  Joel Sherrill <joel@OARcorp.com>
10016
10017         * configure.host: Corrected feature defines for RTEMS.
10018         * libc/include/sys/stat.h: Added protototype for RTEMS mknod.
10019         * libc/include/sys/stat.h: mkfifo() should take const path arg.
10020         * libc/include/sys/unistd.h: pathconf() should take const path arg.
10021           Enabled usleep(), ftruncate(), and truncate() prototypes for RTEMS.
10022           Added defines for _POSIX_JOB_CONTROL, _POSIX_SAVED_IDS, and
10023           _POSIX_VERSION for RTEMS.  Added defines for _PC_ASYNC_IO,
10024           _PC_PRIO_IO, and _PC_SYNC_IO.
10025         * libc/machine/m68k/Makefile.am: Added strcpy.c and strlen.c.
10026         * libc/machine/m68k/Makefile.in: Regenerated.
10027         * libc/machine/m68k/strcpy.c: New file.
10028         * libc/machine/m68k/strlen.c: New file.
10029         * libc/stdio/tmpnam.c: Always make the returned name usable.
10030         * libc/sys/rtems/crt0.c: New version that passes all autoconf tests.
10031         * libc/sys/rtems/sys/dirent.h: New file.
10032         * libc/sys/rtems/sys/types.h: Added dev_t.
10033
10034 Tue Sep  7 17:15:00 1999   Jay Kulpinski <jskulpin@eng01.gdds.com>
10035
10036         * libc/stdlib/mprec.c: Fixed unitialized variable problem.
10037
10038 Fri Sep  3 12:35:20 1999  Jeff Johnston <jjohnstn@cygnus.com>
10039
10040         * libc/stdio/ftell.c (ftell): Backing off Joern's fix and
10041         my patch.
10042
10043 Thu Sep  2 22:05:20 1999  Christopher Faylor <cgf@cygnus.com>
10044
10045         patch from Jeff Johnston <jjohnstn@cygnus.com>
10046         * libc/stdio/ftell.c (ftell): Avoid using buffer position when the
10047         buffer is not in a useful state.
10048
10049 1999-09-01  Nick Clifton  <nickc@cygnus.com>
10050
10051         * libc/sys/arm/syscalls.c (_link): Add stub.
10052
10053 Fri Aug 27 23:09:09 1999  J"orn Rennecke <amylaar@cygnus.co.uk>
10054
10055         * ftell.c (ftell): Use actual position within buffer for text mode.
10056         * findfp.c (std): Initialize ptr->_bf._size.
10057
10058 Wed Aug 18 18:48:02 1999  Christopher Faylor <cgf@cygnus.com>
10059
10060         * libc/include/sys/unistd.h: Add nice() declaration.
10061
10062 1999-08-09  Nick Clifton  <nickc@cygnus.com>
10063
10064         * libc/sys/arm/crt0.S (change_mode): Rename to __change_mode and
10065         declare as a thumb function so that the disassembler will see the
10066         mode change.
10067
10068 Thu Aug  5 17:37:00 1999  Ranjith Kumaran <ranjith@cygnus.com>
10069
10070         * libc/reent/reent.tex: Updated list of reentrant functions.
10071
10072 1999-07-09  Michael Meissner  <meissner@cygnus.com>
10073
10074         * libc/include/stdlib.h (_findenv{,_r}): Add prototypes.
10075         
10076 Tue Jul  6 10:46:24 1999  Jeff Johnston <jjohnstn@cygnus.com>
10077
10078         * libc/stdio/sprintf.c: Moved snprintf and _snprintf_r to
10079         separate file.
10080         * libc/stdio/snprintf.c: New file.
10081         * libc/stdio/vsprintf.c: Moved vsnprintf and _vsnprintf_r to
10082         separate file.
10083         * libc/stdio/vsnprintf.c: New file.
10084         * libc/stdio/Makefile.am: Added snprintf.c and vsnprintf.c.
10085         * libc/stdio/Makefile.in: Regenerated.
10086
10087 Mon Jul  5 14:43:24 1999  Christopher Faylor <cgf@cygnus.com>
10088
10089         Patch submitted by Egor Duda <deo@logos-m.ru>:
10090         * libc/include/stdio.h: Add declarations for *nprintf.
10091         * libc/stdio/sprintf.c (snprintf): New function.
10092         (_snprintf_r): New function.
10093         * libc/stdio/vsprintf.c (vsnprintf): New function.
10094         (_vnsprintf_r): New function.
10095
10096 Wed Jun 30 16:36:27 1999  Jeff Johnston  <jjohnstn@cygnus.com>
10097
10098         * libc/Makefile.am (stmp-targetdep): Remove extraneous blank.
10099         * libm/Makefile.am (stmp-targetdep): Ditto.
10100         * libc/Makefile.in: Regenerated.
10101         * libm/Makefile.in: Ditto.
10102
10103 Fri Jun 25 10:49:27 1999  Jeff Johnston  <jjohnstn@cygnus.com>
10104
10105         * libc/Makefile.am (stmp-targetdep): Ignore "." in SUBDIRS.
10106         * libm/Makefile.am (stmp-targetdep): Ditto.
10107         * libc/Makefile.in: Regenerated.
10108         * libm/Makefile.in: Ditto.
10109
10110 Thu June 03 16:25:00 1999  Jeff Johnston <jjohnstn@cygnus.com>
10111
10112         * Makefile.am: Removed dependencies on all-recursive and added "."
10113         to the SUBDIRS list to prevent infinite recursion from occurring.
10114         Also removed any references to EXTRA_DATA.
10115         * libc/Makefile.am: Ditto.
10116         * libc/machine/Makefile.am: Ditto.
10117         * libc/machine/i386/Makefile.am: Ditto.
10118         * libm/Makefile.am: Ditto.
10119         * libc/sys/Makefile.am: Ditto.
10120         * Makefile.in: Regenerated.
10121         * aclocal.m4: Ditto.
10122         * configure: Ditto.
10123         * doc/Makefile.in: Ditto.
10124         * doc/aclocal.m4: Ditto.
10125         * doc/configure: Ditto.
10126         * libc/Makefile.in: Ditto.
10127         * libc/aclocal.m4: Ditto.
10128         * libc/configure: Ditto.
10129         * libc/machine/Makefile.in: Ditto.
10130         * libc/machine/aclocal.m4: Ditto.
10131         * libc/machine/configure: Ditto.
10132         * libc/machine/mn10300/Makefile.in: Ditto.
10133         * libc/machine/mn10300/aclocal.m4: Ditto.
10134         * libc/machine/mn10300/configure: Ditto.
10135         * libc/sys/Makefile.in: Ditto.
10136         * libc/sys/aclocal.m4: Ditto.
10137         * libc/sys/configure: Ditto.
10138         * libm/Makefile.in: Ditto.
10139         * libm/aclocal.m4: Ditto.
10140         * libm/configure: Ditto.
10141
10142 Thu June 03 16:20:00 1999  Ranjith Kumaran <ranjith@cygnus.com>
10143
10144         * libc/include/stdlib/stdlib.tex: Add link to env_lock.
10145
10146 Fri May 28 17:09:00 1999  Ranjith Kumaran <ranjith@cygnus.com>
10147
10148         * libc/include/stdlib.h: Add reentrant routines.
10149         * libc/stdlib/Makefile.am: Add reentrant routines.
10150         * libc/stdlib/Makefile.in: Ditto.
10151         * libc/stdlib/envlock.c: New file.
10152         * libc/stdlib/envlock.h: New file.
10153         * libc/stdlib/getenv.c: Modify to call reentrant routine.
10154         * libc/stdlib/getenv_r.c: New file.
10155         * libc/stdlib/mblen.c: Modify to call reentrant routine.
10156         * libc/stdlib/mblen_r.c: New file.
10157         * libc/stdlib/setenv.c: Modify to call reentrant routine.
10158         * libc/stdlib/setenv_r.c: New file.
10159         * libc/stdlib/stdlib.tex: Add reentrant routines.
10160
10161 Mon May 17 22:01:38 1999  Christopher Faylor <cgf@cygnus.com>
10162
10163         * libc/include/sys/types.h: Define __MS_types__ whenever
10164         cygwin or win32.
10165
10166 Sun May 16 16:02:41 1999  Christopher Faylor <cgf@cygnus.com>
10167
10168         * libc/include/machine/ieeefp.h: Always default to little
10169         endian if Windows, regardless of architecture.
10170         * libc/include/machine/sethmp.h: Define JBLEN if CYGWIN
10171         regardless of architecture.
10172
10173 Mon May  3 11:49:18 1999  Geoffrey Noer  <noer@cygnus.com>
10174
10175         * libc/include/machine/setjmp.h: Accept CYGWIN define, even if
10176         _WIN32 isn't defined.
10177
10178 Mon May  3 11:41:51 1999  Jeff Johnston  <jjohnstn@cygnus.com>
10179
10180         * libm/common/s_rint.c (rint): Add volatile qualifier for
10181         intermediate value w.
10182         * libm/common/sf_rint.c (rintf): Ditto.
10183
10184 Thu Apr 29 20:34:27 1999  Jeff Johnston  <jjohnstn@cygnus.com>
10185
10186         * libc/sys/arm/syscalls.c (remap_handle): Added check to
10187         ensure that std streams are initialized before being referenced.
10188
10189 1999-04-27  Jason Molenda  (jsm@bugshack.cygnus.com)
10190
10191         * README: Update reference to newlib@cygnus.com new
10192         newlib@sourceware.cygnus.com address.
10193
10194 Mon Apr 26 18:17:33 1999  Geoffrey Noer  <noer@cygnus.com>
10195
10196         * libc/include/sys/types.h: Define MS_types if CYGWIN is defined.
10197         * libc/include/sys/fcntl.h: Define _O_BINARY et al if CYGWIN is
10198         defined, even if _WIN32 isn't defined.
10199
10200 Sat Apr 24 19:59:55 1999  Christopher Faylor <cgf@cygnus.com>
10201
10202         * libc/include/sys/fcntl.h: Correct _O_CREATE to _O_CREAT.
10203
10204 Wed Apr 21 18:01:00 1999  Ranjith Kumaran  <ranjith@cygnus.com>
10205
10206         * libc/include/sys/reent.h: Change Long and ULong to __Long and
10207         __ULong.
10208         * libc/stdlib/dtoa.c: Ditto.
10209         * libc/stdlib/mprec.c: Ditto.
10210         * libc/stdlib/mprec.h: Ditto.
10211         * libc/stdlib/strtod.c: Ditto.
10212
10213 1999-04-21  Nick Clifton  <nickc@cygnus.com>
10214
10215         * configure.host (mcore): Remove mcore machine directory.
10216
10217 1999-04-18  Nick Clifton  <nickc@cygnus.com>
10218
10219         * libc/include/machine/ieeefp.h: Add support for mcore target.
10220         * libc/include/machine/setjmp.h: Add support for mcore target.
10221         * configure.host: Add support for mcore target.
10222
10223 1999-04-13  Mark Salter  <msalter@cygnus.com>
10224
10225         * libc/sys/arm/libcfunc.c: Moved isatty to syscall.c
10226         * libc/sys/arm/syscalls.c: Added isatty.
10227
10228 Wed Apr 07 16:06:04 1999  Jeff Johnston  <jjohnstn@cygnus.com>
10229
10230         * libc/stdlib/ecvtbuf.c (fcvtbuf): Fixed code to properly
10231         insert zeroes after significant digits.
10232
10233 Wed Mar 17 22:06:04 1999  Jeff Johnston  <jjohnstn@cygnus.com>
10234         
10235         * libc/stdio/vfprintf.c (cvt): Changed floating point
10236         cvt routine to use union used by dtoa to properly determine
10237         if the sign bit is on or not.
10238         * libc/stdio/vfieeefp.h: New file
10239         
10240 Wed Mar 17 17:35:04 1999  Jeff Johnston  <jjohnstn@cygnus.com>
10241
10242         * aclocal.m4: Regenerated.
10243         * configure: Regenerated.
10244
10245 Wed Mar 17 16:35:04 1999  Jeff Johnston  <jjohnstn@cygnus.com>
10246
10247         * libc/machine/i386/Makefile.am (lib_a_SOURCES): Added missing
10248         f_tanf reference.
10249         * libc/machine/i386/Makefile.in: Regenerated.
10250
10251 Tue Mar 16 14:56:36 1999  Jeff Johnston  <jjohnstn@cygnus.com>
10252
10253         * acinclude.m4: Changed to work with new automake.
10254         * configure: Regenerated.
10255         * libc/machine/i386/aclocal.m4: Regenerated.
10256         * libc/machine/i386/configure: Regenerated.
10257
10258 Tue Mar 16 13:55:36 1999  Corinna Vinschen  <corinna.vinschen@cityweb.de>
10259
10260         * libc/sys/cygwin/sys/dirent.h: Add additional prototypes
10261         for telldir() and seekdir().  Rename unused structure element
10262         for use with these two routines.
10263
10264 Fri Mar 12 19:11:58 1999  Jeff Johnston  <jjohnstn@cygnus.com>
10265
10266         * libc/time/mktime.c (validate_structure): Multiple fixes to
10267         code to handle cases where input fields are outside valid ranges.
10268         * libc/stdlib/div.c (div): Modified invalid rounding check.
10269         * libc/stdlib/ldiv.c (ldiv): Ditto.
10270
10271 Thu Mar 11 21:32:13 1999  Jeff Johnston  <jjohnstn@cygnus.com>
10272
10273         * libc/machine/i386/memcpy.S: Performance rewrite.
10274         * libc/machine/i386/memmove.S: Ditto.
10275         * libc/machine/i386/i386mach.h: Added more register definitions.
10276         * libc/include/math.h: Include <machine/fastmath.h> if -ffast-math
10277         option used.
10278         * libc/include/machine/fastmath.h: Add definitions for x86
10279         fast-math routines.
10280
10281 Wed Mar 10 17:56:00 1999 Ranjith Kumaran  <ranjith@cygnus.com>
10282
10283         * libc/stdlib/strtod.c: Change from unsigned long to ULong.
10284
10285 Tue Mar  9 14:31:58 1999  Geoffrey Noer  <noer@cygnus.com>
10286
10287         Adjust newlib headers for new Cygwin Win32 API header files:
10288         * libc/include/sys/time.h: Check _WINSOCK_H rather than
10289         _GNU_H_WINDOWS32_SOCKETS.
10290         * libc/include/sys/types.h: Ditto.
10291
10292 Tue Mar 09 15:55:00 1999 Ranjith Kumaran  <ranjith@cygnus.com>
10293
10294         *include/sys/reent.h: Add checks for size of Bigint element Long.
10295         *libc/dtoa.c: Change routines to use generic Long type.
10296         *libc/mprec.c: Change routines to use generic Long type.
10297         *libc/mprec.h: Change routines to use generic Long type.
10298
10299 Tue Mar 02 18:07:49 1999 Ranjith Kumaran  <ranjith@cygnus.com>
10300
10301         * libc/Makefile.am: Add .def files.
10302         * libc/Makefile.in: Regenerate.
10303         * libc/e_acosh.c: Documentation update.
10304         * libc/e_atanh.c: Documentation update.
10305         * libc/e_hypot.c: Documentation update.
10306         * libc/e_remainder.c: Documentation update.
10307         * libc/er_lgamma.c: Documentation update.
10308         * libc/mathfp.tex: Documentation update.
10309         * libc/s_acos.c: Documentation update.
10310         * libc/s_atan.c: Documentation update.
10311         * libc/s_atan2.c: Documentation update.
10312         * libc/s_cosh.c: Documentation update.
10313         * libc/s_fmod.c: Documentation update.
10314         * libc/s_isnan.c: Documentation update.
10315         * libc/s_log10.c: Documentation update.
10316         * libc/s_pow.c: Documentation update.
10317         * libc/w_jn.c: Documentation update.
10318
10319 Sun Feb 28 23:18:49 1999  Geoffrey Noer  <noer@cygnus.com>
10320
10321         * aclocal.m4: Regenerate.
10322         * configure: Regenerate.
10323
10324 Tue Feb 23 13:57:26 1999  Jeff Johnston  <jjohnstn@cygnus.com>
10325
10326         * libc/machine/mn10300/setjmp.S (_longjmp): Fixed longjmp
10327         to return 1 if user specified return code is 0.
10328         * libc/machine/mn10200/setjmp.S (_longjmp): Ditto.
10329
10330 Thu Feb 18 11:13:28 1999  Jeff Johnston  <jjohnstn@cygnus.com>
10331
10332         * libc/machine/mn10200/setjmp.S (_setjmp/_longjmp): Fixed setjmp
10333         to save the return address.  Fixed longjmp to return to the original
10334         calling address of setjmp and to return the user specified return code
10335         rather than default to 1.
10336         * libc/machine/mn10300/setjmp.S (_setjmp/_longjmp): Ditto.
10337
10338 Mon Feb 15 17:48:17 1999  Jeff Johnston  <jjohnstn@cygnus.com>
10339
10340         * libc/stdlib/mprec.h (mult): Define mult to be _multiply instead of _mult.
10341
10342 1999-02-10  Nick Clifton  <nickc@cygnus.com>
10343
10344         * libc/sys/arm/syscalls.c (initialise_monitor_handles): Make block
10345         volatile so that its assignments will not be discarded.
10346
10347 Wed Feb 10 17:19:40 1999  Jeff Johnston  <jjohnstn@cygnus.com>
10348
10349         * libc/include/_ansi.h: Corrected _STRICT_ANSI reference to
10350         be __STRICT_ANSI__ which is generated by compiler.
10351         * libc/include/ctype.h: Ditto.
10352         * libc/include/math.h: Ditto.
10353         * libc/include/stdio.h: Ditto.
10354         * libc/include/stdlib.h: Ditto.
10355         * libc/include/string.h: Ditto.
10356         * libc/include/sys/signal.h: Ditto.
10357
10358 1999-02-08  Nick Clifton  <nickc@cygnus.com>
10359
10360         * configure.host: Add support for StrongARM target.
10361
10362 Fri Feb  5 11:13:14 1999  Jeff Johnston  <jjohnstn@cygnus.com>
10363
10364         * libc/string/strncpy.c (strncpy): Removed redundant code
10365         that was copying bytes if data unaligned.
10366
10367 1999-02-02  Brendan Kehoe  <brendan@cygnus.com>
10368
10369         * libc/stdlib/Makefile.{am,in} (CHEWOUT_FILES): Add mblen.def,
10370         mbstowcs.def, and wcstombs.def.
10371
10372 Sat Jan 30 02:36:33 1999  Christopher Faylor <cgf@cygnus.com>
10373
10374         * libc/include/sys/errno.h: Add Cygwin errno.
10375         * libc/stdio/flags.c: Don't default to O_TEXT if no other flag
10376         is specified.
10377
10378 1999-01-29  Nick Clifton  <nickc@cygnus.com>
10379
10380         * libc/sys/arm/syscalls.c: Move C library functions into seperate
10381         file.
10382         
10383         * libc/sys/arm/libcfunc.c: New file containing C library functions
10384         from syscalls.c
10385
10386         * libc/sys/arm/Makefile.am (lib_a_SOURCES): Add libcfuncs.c
10387         * libc/sys/arm/Makefile.in (lib_a_SOURCES): Regenerate.
10388
10389
10390 1999-01-27  Michael Meissner  <meissner@cygnus.com>
10391
10392         * libc/include/machine/setjmp.h (D30V _JBLEN/_JBTYPE): Use double
10393         type, and cut size in half so that the jmp_buf array is guaranteed
10394         to be aligned on a 64-bit boundary.
10395
10396 Mon Jan 25 12:05:38 1999  Jeff Johnston  <jjohnstn@cygnus.com>
10397
10398         * libc/string/strings.tex: Added information about
10399         strcasecmp and strncasecmp.
10400         * libc/stdlib/stdlib.tex: Added missing information
10401         about mblen, mbstowcs, and wcstombs.
10402         * libc/string/strchr.c: Changed how mask is built to use
10403         shift operators so register will be used instead of storage.
10404
10405 1999-01-22  DJ Delorie  <dj@cygnus.com>
10406
10407         * libc/include/stdlib.h: don't use dllimport if we're building
10408         newlib, since it's inside cygwin.dll
10409
10410 Fri Jan 22 14:57:18 1999  Christopher Faylor <cgf@cygnus.com>
10411
10412         * libc/ctype/ctype_.c: Need to use __declspec(dllexport) for
10413         _ctype_ under cygwin.
10414
10415 Fri Jan 22 09:50:19 1999  Christopher Faylor <cgf@cygnus.com>
10416
10417         * include/stdlib.h: Fix typo from previous checkin.
10418
10419 Thu Jan 21 22:42:21 1999  Christopher Faylor <cgf@cygnus.com>
10420
10421         * include/ctype.h: Use __declspec(dllimport) method for exporting
10422         variable from cygwin DLL.
10423         * include/time.h: Ditto.
10424         * sys/errno.h: Ditto.
10425         * include/stdlib.h: Export __mb_cur_max from cygwin DLL.
10426         * libc/locale/locale.c: Use __declspec(dllexport) method for
10427         exporting variable from cygwin DLL.
10428
10429 Sat Jan 16 13:29:54 1999  Christopher Faylor <cgf@cygnus.com>
10430
10431         * libc/stdio/setvbuf.c: Always clean up when _IONBF or possible
10432         access of bogus pointer will result in SIGSEGV.
10433
10434 1999-01-07  Nick Clifton  <nickc@cygnus.com>
10435
10436         * libc/sys/arm/setjmp.S: Use C macros to cope with the possibility
10437         of an underscore prefix to function names.
10438
10439 Fri Jan  8 19:00:07 1999  Jeff Johnston  <jjohnstn@cygnus.com>
10440
10441         * libc/machine/i386/i386mach.h (__REG_PREFIX__): Create new
10442         define __REG_PREFIX__ instead of using __REGISTER_PREFIX__.
10443
10444 1998-12-31  Michael Meissner  <meissner@cygnus.com>
10445
10446         * libc/machine/i386/i386mach.h (__REGISTER_PREFIX__): Only define
10447         to `%' if not already defined.
10448
10449 1998-12-30  Michael Meissner  <meissner@cygnus.com>
10450
10451         * libc/stdio/tmpnam.c (_tempnam_r): Make directory and prefix
10452         arguments const char *, not char *.
10453         * libc/include/stdio.h (_tempnam_r): Ditto.
10454
10455         * libc/include/sys/reent.h (struct _reent): The _sig_func type
10456         points to a function taking an integer, not void.
10457
10458 Tue Dec 29 14:35:53 1998  Christopher Faylor <cgf@cygnus.com>
10459
10460         * configure.host: Add a define for Cygwin builds.
10461         * libc/include/ctype.h: Don't use dll imported variables in newlib.
10462
10463 Mon Dec 28 09:19:56 1998  Christopher Faylor <cgf@cygnus.com>
10464
10465         * libc/include/ctype.h: Define _ctype_ as dll imported variable
10466         for use with Cygwin.
10467         * libc/include/sys/errno.h: Define _sys_errlist and _sys_nerr as
10468         dll imported variables for use with Cygwin.
10469         * libc/ctype/ctype_.c: Undefine _ctype_ in case it has been defined
10470         as a dll imported variable for Cygwin.
10471
10472 Sat Dec 26 00:13:53 1998  Christopher Faylor <cgf@cygnus.com>
10473
10474         * libc/include/sys/unistd.h: Add proto for getpass.
10475
10476 Fri Dec 18 19:28:19 1998  Geoffrey Noer  <noer@cygnus.com>
10477
10478         * libc/sys/cygwin/sys/dirent.h: add protos for scandir and
10479         alphasort.
10480
10481 Fri Dec 18 16:33:25 1998  Geoffrey Noer  <noer@cygnus.com>
10482
10483         * libc/posix/execvp.c (execvp): call cygwin_posix_path_list_p,
10484         not posix_path_list_p.
10485
10486 1998-12-15  Nick Clifton  <nickc@cygnus.com>
10487
10488         * libc/string/memchr.c: Treat 'c' argument as an unsigned byte not
10489         a signed int.
10490
10491 1998-12-13  Nick Clifton  <nickc@cygnus.com>
10492
10493         * libc/include/machine/setjmp.h (_JBLEN): Set to 10.
10494
10495 1998-12-12  Nick Clifton  <nickc@cygnus.com>
10496
10497         * libc/machine/fr30/setjmp.S: New file, supplied by Mark Slater
10498         <msalter@cygnus.com>
10499         * libc/machine/fr30/Makefile.am: Add build of setjmp.S
10500         * libc/machine/fr30/Makefile.in: Regenerated.
10501
10502 1998-12-11  Nick Clifton  <nickc@cygnus.com>
10503
10504         * configure.host: Remove use of libc/sys for FR30 port.
10505         * libc/sys/fr30: Remove directory (replaced by libgloss).
10506
10507 1998-12-10  Ken Raeburn  <raeburn@cygnus.com>
10508
10509         * libc/string/strcat.c (ALIGNED): Sense of result was reversed.
10510         * libc/string/strncat.c (ALIGNED): Ditto.
10511
10512 Wed Dec  9 14:37:57 1998  Geoffrey Noer  <noer@cygnus.com>
10513
10514         * libc/include/sys/time.h: include sys/types.h
10515
10516 Tue Dec  8 15:53:18 1998  Jeff Johnston  <jjohnstn@cygnus.com>
10517
10518         * libc/machine/i386/memcmp.S (memcmp): Fix for unequal
10519         comparison found when checking word at a time.
10520
10521 1998-12-04  Nick Clifton  <nickc@cygnus.com>
10522
10523         * libc/sys/fr30/crt0.s (_start): Initialise frame pointer.
10524
10525 1998-12-03  Nick Clifton  <nickc@cygnus.com>
10526
10527         * libc/sys/fr30/syscalls.c (_times): New function stub.
10528
10529 Thu Dec  3 15:59:19 1998  Jeff Johnston  <jjohnstn@cygnus.com>
10530
10531         * configure.host (mach_add_setjmp): Replaced mach_add_objs
10532         with mach_add_setjmp flag which indicates if setjmp should
10533         be added to the machine directory objects.
10534         * acinclude.m4: Removed reference to mach_add_objs.
10535         * aclocal.m4: Regenerated.
10536         * Makefile.in: Regenerated.
10537         * configure: Regenerated.
10538         * libc/aclocal.m4: Regenerated.
10539         * libc/Makefile.in: Regenerated.
10540         * libc/configure: Regenerated.
10541         * libc/machine/aclocal.m4: Regenerated.
10542         * libc/machine/Makefile.in: Regenerated.
10543         * libc/machine/configure: Regenerated.
10544         * libc/machine/i386/aclocal.m4: Regenerated.
10545         * libc/machine/i386/Makefile.am: Altered to selectively add
10546         setjmp.S to the src files list.
10547         * libc/machine/i386/Makefile.in: Regenerated.
10548         * libc/machine/i386/configure.in: Altered to test mach_add_setjmp.
10549         * libc/machine/i386/configure: Regenerated.
10550
10551 1998-12-02  Nick Clifton  <nickc@cygnus.com>
10552
10553         * libc/sys/fr30/crt0.s (_start): Fix function names.
10554
10555         * libc/machine/fr30: New directory
10556         * libc/machine/fr30/Makefile.am: New file.
10557         * libc/machine/fr30/Makefile.in: New generated file.
10558         * libc/machine/fr30/configure.in: New file.
10559         * libc/machine/fr30/configure: New generated file.
10560         * libc/machine/fr30/aclocal.m4: New generated file.
10561         * libc/sys/fr30/Makefile.am: New file.
10562         * libc/sys/fr30/Makefile.in: New generated file.
10563         * libc/sys/fr30/configure.in: New file.
10564         * libc/sys/fr30/configure: New generated file.
10565         * libc/sys/fr30/syscalls.c: New file.
10566
10567 Tue Dec  1 16:28:56 1998  Geoffrey Noer  <noer@cygnus.com>
10568
10569         * libc/sys/cygwin/sys/utmp.h: new file, moved from winsup/include.
10570
10571 1998-12-01  Ken Raeburn  <raeburn@cygnus.com>
10572
10573         * libc/time/strftime.c (strftime): Also handle %y for years before
10574         1900.
10575
10576 Tue Dec  1 13:26:07 1998  Christopher Faylor <cgf@cygnus.com>
10577
10578         * libc/string/strcasecmp.c (strcasecmp): Adhere to standard
10579         UNIX convention.  Perform tolower on characters before comparing
10580         them rather than use toupper.
10581         * libc/string/strncasecmp.c (strncasecmp): Ditto.
10582
10583 Mon Nov 30 16:24:19 1998  Jeff Johnston  <jjohnstn@cygnus.com>
10584         
10585         * configure.host: Added using i386 machine directory
10586         for all x86 cross-compiler and configuring
10587         which added object files to use via new "mach_add_objs" variable.
10588         * configure: Regenerated.
10589         * libc/configure: Regenerated.
10590         * libc/Makefile.in: Regenerated.
10591         * libc/aclocal.m4: Regenerated.
10592         * libc/ctype/Makefile.in: Regenerated.
10593         * libc/errno/Makefile.in: Regenerated.
10594         * libc/locale/Makefile.in: Regenerated.
10595         * libc/machine/Makefile.in: Regenerated.
10596         * libc/machine/aclocal.m4: Regenerated.
10597         * libc/machine/configure: Regenerated.
10598         * libc/posix/Makefile.in: Regenerated.
10599         * libc/reent/Makefile.in: Regenerated.
10600         * libc/signal/Makefile.in: Regenerated.
10601         * libc/stdio/Makefile.in: Regenerated.
10602         * libc/stdlib/Makefile.in: Regenerated.
10603         * libc/string/Makefile.in: Regenerated.
10604         * libc/string/memmove.c: Optimized code to use memcpy
10605         logic when performing a non-destructive copy.
10606         * libc/string/strncmp.c: Altered code to allow building
10607         optimized for size or speed.
10608         * libc/syscalls/Makefile.in: Regenerated.
10609         * libc/time/Makefile.in: Regenerated.
10610         * libc/unix/Makefile.in: Regenerated.
10611         * libc/machine/i386/Makefile.am: Added new files and reference
10612         to "mach_add_objs" to indicate optional object files.
10613         * libc/machine/i386/Makefile.in: Regenerated.
10614         * libc/machine/i386/aclocal.m4: Regenerated.
10615         * libc/machine/i386/configure: Regenerated.
10616         * libc/machine/i386/memchr.S: New file that implements
10617         function in Intel assembler.
10618         * libc/machine/i386/memcmp.S: ditto.
10619         * libc/machine/i386/memcpy.S: ditto.
10620         * libc/machine/i386/memmove.S: ditto.
10621         * libc/machine/i386/memset.S: ditto.
10622         * libc/machine/i386/strchr.S: ditto.
10623         * libc/machine/i386/strlen.S: ditto.
10624         * libc/machine/i386/f_atan2.S: New file that implements
10625         fast version of math function to be used by compiler when
10626         --ffast_math compile option is used.
10627         * libc/machine/i386/f_atan2f.S: ditto.
10628         * libc/machine/i386/f_exp.c: ditto.
10629         * libc/machine/i386/f_expf.c: ditto.
10630         * libc/machine/i386/f_frexp.S: ditto.
10631         * libc/machine/i386/f_frexpf.S: ditto.
10632         * libc/machine/i386/f_ldexp.S: ditto.
10633         * libc/machine/i386/f_ldexpf.S: ditto.
10634         * libc/machine/i386/f_log.S: ditto.
10635         * libc/machine/i386/f_logf.S: ditto.
10636         * libc/machine/i386/f_log10.S: ditto.
10637         * libc/machine/i386/f_log10f.S: ditto.
10638         * libc/machine/i386/f_math.h: New file.
10639         * libc/machine/i386/f_pow.c: ditto.
10640         * libc/machine/i386/f_powf.S: ditto.
10641         * libc/machine/i386/f_tan.S: ditto.
10642         * libc/machine/i386/f_tan.S: ditto.
10643         * libc/machine/i386/i386mach.h: New file.
10644
10645 Mon Nov 30 13:02:17 1998  Christopher Faylor <cgf@cygnus.com>
10646
10647         patch from Mumit Khan <khan@xraylith.wisc.edu>
10648         * libc/include/stdio.h (tempnam): Add prototype.
10649         * libc/stdio/tmpnam.c (_tempnam_r): Handle NULL prefix.
10650         (tempnam): Adhere to prototype.
10651
10652 Thu Nov 26 00:21:32 1998  Christopher Faylor <cgf@cygnus.com>
10653
10654         * Makefile.am: Add default for AR_FLAGS.
10655         * Makefile.in: Regenerate.
10656
10657 Tue Nov 24 18:48:56 1998  Geoffrey Noer  <noer@cygnus.com>
10658
10659         * libc/include/time.h: move __cplusplus wrapper after includes
10660         * libc/include/sys/time.h: ditto.  If Cygwin, include
10661         sys/select.h.
10662         * libc/include/sys/types.h: lose "32" in comment about Cygwin.
10663
10664 1998-11-23  Ken Raeburn  <raeburn@cygnus.com>
10665
10666         * libc/time/strftime.c (strftime): Handle %y after year 2000.
10667
10668 Wed Nov 18 12:22:41 1998  Nick Clifton  <nickc@cygnus.com>
10669
10670         * libc/sys/fr30/crt0.s (_start): Switch over to using int #9 as
10671         abnormnal end-of-crt0 marker.
10672
10673 Tue Nov 17 16:27:58 1998  Nick Clifton  <nickc@cygnus.com>
10674
10675         * libc/sys/fr30/crt0.s: New file/directory.
10676         * libc/include/machine/setjmp.h: Add FR30 target.
10677         * libc/include/machine/ieeefp.h: Add FR30 target.
10678         * configure.host: Add FR30 target.
10679
10680 Mon Nov  16 23:15:00 1998  Ranjith Kumaran <ranjith@cygnus.com>
10681
10682         * libm/math: Files that are duplicated in common directory removed.
10683         * libm/math/fdlibm.h: Removed.
10684         * libm/math/s_cbrt.c: Removed.
10685         * libm/math/s_copysign.c: Removed.
10686         * libm/math/s_expm1.c: Removed.
10687         * libm/math/s_finite.c: Removed.
10688         * libm/math/s_ilogb.c: Removed.
10689         * libm/math/s_infinity.c: Removed.
10690         * libm/math/s_lib_ver.c: Removed.
10691         * libm/math/s_log1p.c: Removed.
10692         * libm/math/s_logb.c: Removed.
10693         * libm/math/s_matherr.c: Removed.
10694         * libm/math/s_modf.c: Removed.
10695         * libm/math/s_nan.c: Removed.
10696         * libm/math/s_nextafter.c: Removed.
10697         * libm/math/s_rint.c: Removed.
10698         * libm/math/s_scalbn.c: Removed.
10699         * libm/math/sf_cbrt.c: Removed.
10700         * libm/math/sf_copysign.c: Removed.
10701         * libm/math/sf_expm1.c: Removed.
10702         * libm/math/sf_finite.c: Removed.
10703         * libm/math/sf_ilogb.c: Removed.
10704         * libm/math/sf_infinity.c: Removed.
10705         * libm/math/sf_log1p.c: Removed.
10706         * libm/math/sf_logb.c: Removed.
10707         * libm/math/sf_modf.c: Removed.
10708         * libm/math/sf_nan.c: Removed.
10709         * libm/math/sf_nextafter.c: Removed.
10710         * libm/math/sf_rint.c: Removed.
10711         * libm/math/sf_scalbn.c: Removed.
10712         * libm/math/Makefile.am: Removed references to deleted files (above).
10713         * libm/math/Makefile.in: Regenerated.
10714         * libm/Makefile.am: Added common directory to math.
10715         * libm/Makefile.in: Regenerated.
10716
10717 Mon Nov  2 23:12:00 1998  Ranjith Kumaran <ranjith@cygnus.com>
10718
10719         * libm/mathfp: Add non-ANSI functions.
10720         * libm/mathfp/e_acosh.c acosh(): New file.
10721         * libm/mathfp/e_atanh.c atanh(): New file.
10722         * libm/mathfp/e_hypot.c hypot(): New file.
10723         * libm/mathfp/e_j0.c j0(): New file.
10724         * libm/mathfp/e_j1.c j1(): New file.
10725         * libm/mathfp/e_remainder.c remainder(): New file.
10726         * libm/mathfp/e_scalb.c scalb(): New file.
10727         * libm/mathfp/ef_acosh.c acoshf(): New file.
10728         * libm/mathfp/ef_atanh.c atanhf(): New file.
10729         * libm/mathfp/ef_hypot.c hypotf(): New file.
10730         * libm/mathfp/ef_j0.c j0f(): New file.
10731         * libm/mathfp/ef_j1.c j1f(): New file.
10732         * libm/mathfp/ef_remainder.c remainderf(): New file.
10733         * libm/mathfp/ef_scalb.c scalbf(): New file.
10734         * libm/mathfp/er_gamma.c gamma_r: New file.
10735         * libm/mathfp/er_lgamma.c lgamma_r(): New file.
10736         * libm/mathfp/erf_gamma.c gamma_rf(): New file.
10737         * libm/mathfp/erf_lgamma.c lgamma_rf(): New file.
10738         * libm/mathfp/w_cabs.c cabs(): New file.
10739         * libm/mathfp/w_drem.c drem(): New file.
10740         * libm/mathfp/w_jn.c jn(): New file.
10741         * libm/mathfp/wf_cabs.c cabsf(): New file.
10742         * libm/mathfp/wf_drem.c dremf(): New file.
10743         * libm/mathfp/wf_jn.c jnf(): New file.
10744
10745 Mon Nov  2 16:43:18 1998  Geoffrey Noer  <noer@cygnus.com>
10746
10747         * libc/sys/cygwin32: remove directory and contents
10748         * libc/sys/cygwin: and add back, losing the "32".
10749         * configure.host: check for cygwin* instead of cygwin32.
10750         * acinclude.m4: ditto.
10751         * aclocal.m4: regenerate with aclocal
10752         * configure: regenerate with autoconf
10753
10754 Tue Oct 20 17:28:28 1998  Geoffrey Noer  <noer@cygnus.com>
10755
10756         * libc/stdio/tmpnam.c (_tempnam_r): not enough memory allocated
10757         for length
10758
10759 Tue Oct 20 18:49:05 1998  Jeff Johnston  <jjohnstn@cygnus.com>
10760
10761         * libc/include/sys/reent.h (struct _reent): Added variables _rand_next, _strtok_last,
10762         _asctime_buf, _localtime_buf and _gamma_signgam to struct reent
10763         to make rand/srand, strtok, asctime, localtime, w_gamma,
10764         w_lgamma, wf_gamma, and wf_lgamma reentrant.  Included
10765         time.h to bring in struct tm definition.
10766         * libc/stdlib/rand.c (rand, srand): Don't emit functions 'rand' and 'srand' if
10767         '_REENT_ONLY' is set. Used variable '_rand_next' from struct reent.
10768         * libc/stdlib/strtok.c (strtok): Used variable '_strtok_last' from struct reent
10769         instead of static variable.
10770         * libc/stdlib/asctime.c (asctime): Used variable '_asctime_buf' from
10771         struct reent instead of static variable.
10772         * libc/stdlib/lcltime.c (localtime): Used variable '_localtime_buf' from
10773         struct reent instead of static variable.
10774         * libm/math/Makefile.am: Removed s_signgam.o.
10775         * libm/math/Makefile.in: Regenerated.
10776         * libm/math/w_gamma.c (gamma): Used variable '_gamma_signgam' from
10777         struct reent instead of global variable 'signgam'.
10778         * libm/math/w_lgamma.c (lgamma): Likewise.
10779         * libm/math/wf_gamma.c (gammaf): Likewise.
10780         * libm/math/wf_lgamma.c (lgammaf): Likewise.
10781         * libm/math/s_signgam.c: Removed.
10782         * libc/include/unctrl.h: Defined arrays __unctrl and __unctrllen
10783         to be const.
10784         * libc/misc/unctrl.c: Defined arrays __unctrl and __unctrllen
10785         to be const.
10786         * libc/reent/Makefile.am: Added dependence for impure.o on impure.c and
10787         libc/include/reent.h.
10788         * libc/reent/Makefile.in: Regenerated.
10789         * libc/stdio/vfprintf.c (_vfprintf_r): Defined arrays 'blanks' and 'zeroes'
10790         to be const.
10791         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Defined arrays 'JIS_state_table' and
10792         'JIS_action_table' to be const.
10793         * libm/math/s_lib_ver.c: define variable _LIB_VERSION to be const.
10794
10795 Mon Oct 12 00:26:33 1998  Christopher Faylor <cgf@cygnus.com>
10796
10797         * acinclude.m4:  $with_target_subdir should default to '.'
10798         or confusion results when configuring in same directory as sources.
10799         * Regenerate all aclocal.m4 and configure files.
10800
10801 Fri Oct  9 16:27:36 1998  Jeff Johnston  <jjohnstn@cygnus.com>
10802
10803         * libc/stdlib/mallocr.c: Added 16 byte alignment support which
10804         can be set by defining MALLOC_ALIGNMENT=16.  Also added support
10805         for platforms where sizeof(size_t) < sizeof(long) via
10806         SIZE_T_SMALLER_THAN_LONG macro.
10807         
10808 Wed Oct  7 14:02:40 1998  Jeff Johnston  <jjohnstn@cygnus.com>
10809
10810         * libc/include/time.h (CLOCKS_PER_SEC): Change CLOCKS_PER_SEC
10811         to refer to _CLOCKS_PER_SEC_ and added including <machine/time.h>
10812         which sets _CLOCKS_PER_SEC_ for selected machines.
10813         * libc/include/machine/time.h: New file.
10814
10815 Tue Oct  6 16:08:05 1998  Jeff Johnston  <jjohnstn@cygnus.com>
10816
10817         * libc/syscalls/sysexecve.c: New file.
10818         * libc/syscalls/sysgettod.c: New file.
10819         * libc/syscalls/systimes.c: New file.
10820         * libc/syscalls/Makefile.am: Added new objects.
10821         * libc/syscalls/Makefile.in: Regenerated.
10822         * libc/include/_syslist.h (_execve): Moved define in file.
10823         * libc/include/reent.h:  Added _execve_r declaration.
10824         * libc/Makefile.in: Regenerated.
10825         * libc/ctype/Makefile.in: Regenerated.
10826         * libc/errno/Makefile.in: Regenerated.
10827         * libc/locale/Makefile.in: Regenerated.
10828         * libc/machine/Makefile.in: Regenerated.
10829         * libc/misc/Makefile.in: Regenerated.
10830         * libc/posix/Makefile.in: Regenerated.
10831         * libc/reent/Makefile.in: Regenerated.
10832         * libc/reent/execr.c (_execve_r): Added _execve_r function.
10833         * libc/signal/Makefile.in: Regenerated.
10834         * libc/stdio/Makefile.in: Regenerated.
10835         * libc/time/Makefile.in: Regenerated.
10836         * libc/unix/Makefile.in: Regenerated.
10837         * libm/mathfp/Makefile.in: Regenerated.
10838
10839 Tue Oct  6 14:14:05 1998  Jeff Johnston  <jjohnstn@cygnus.com>
10840
10841         * libc/string/Makefile.in: Regenerated.
10842         * libc/string/memchr.c (memchr): Moved code to reduce object size.
10843         * libc/string/memcpy.c (memcpy): Ditto.
10844         * libc/string/memcmp.c (memcmp): Ditto.
10845         * libc/string/memset.c (memset): Ditto.
10846         * libc/string/strchr.c (strchr): Ditto.
10847         * libc/string/strcmp.c (strcmp): Ditto.
10848         * libc/string/strcpy.c (strcpy): Ditto.
10849         * libc/string/strlen.c (strlen): Ditto.
10850
10851 Tue Oct  6 13:58:05 1998  Jeff Johnston  <jjohnstn@cygnus.com>
10852
10853         * libm/acinclude.m4: Removed since newlib/acinclude.m4 can be used
10854         to generate aclocal.m4.
10855         * libm/Makefile.in: Regenerated.
10856         * libm/aclocal.m4: Regenerated.
10857         * libm/configure: Regenerated.
10858         * libm/math/Makefile.in: Regenerated.
10859         * libm/mathfp/Makefile.in: Regenerated.
10860
10861 1998-09-25  Mark Salter  <msalter@cygnus.com>
10862
10863         * libc/include/machine/setjmp.h: Fixed test for mn10300 and mn10200
10864         by adding leading and trailing underscores to symbol names.
10865
10866 Tue Sep 22 15:33:41 1998  Christopher Faylor <cgf@cygnus.com>
10867
10868         * Makefile.in: Add default for AR_FLAGS.
10869
10870 Tue Sep 22 15:02:49 1998  Christopher Faylor <cgf@cygnus.com>
10871
10872         patch from ian@airs.com (Ian Taylor):
10873         * acinclude.m4: Run AC_CANONICAL_BUILD explicitly before
10874         NEWLIB_CONFIGURE so AC_CANONICAL_HOST will be run before it
10875         is needed for detecting the build machine.  Required for
10876         cygwin native builds.
10877
10878         * Regenerate all aclocal.m4 and configure files.
10879
10880 Mon Sep 21 14:44:16 1998  Nick Clifton  <nickc@cygnus.com>
10881
10882         * libc/sys/arm/crt0.S: Prepend a period to all local labels that
10883         used to start with LC.
10884
10885 Thu Sep 17 18:18:11 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
10886
10887         * libc/machine/sh/setjmp.S (setjmp): Handle __SH4* like __SH3E__ .
10888         (longjmp): Likewise.
10889
10890 Thu Sep 17 16:25:33 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
10891
10892         * libc/machine/sh/memset.S (memset): Move copy from r4 to r4 before
10893         the test for small number of bytes.
10894
10895 Thu Sep 10 11:40:00 1998  Ranjith Kumaran <ranjith@cygnus.com>
10896
10897         * Makefile.am: Add --enable-newlib-hw-fp check.  This builds the new
10898         math library that uses floating point algorithms instead of the old
10899         libm.
10900         * Makefile.in: Regenerate with automake version 1.3b.
10901         * configure: Rebuild.
10902         * libm/Makefile.in: Regenerate with automake version 1.3b.
10903         * libm/aclocal.m4: Regenerate.
10904         * libm/configure: Rebuild.
10905         * libm/configure.in: Add newlib_hw_fp definition and mathfp directory.
10906         * libm/acinclude.m4: Define macros for configure.in.
10907         * libm/config.h.in: Generate.
10908         * libm/mathfp/Makefile.am: New file.
10909         * libm/mathfp/Makefile.in: Generate.
10910         * libm/mathfp/s_acos.c (acos): New file.
10911         * libm/mathfp/s_asin.c (asin): New file.
10912         * libm/mathfp/s_asine.c (asine): New file.
10913         * libm/mathfp/s_atan.c (atan): New file.
10914         * libm/mathfp/s_atan2.c (atan2): New file.
10915         * libm/mathfp/s_atangent.c (atangent): New file.
10916         * libm/mathfp/s_ceil.c (ceil): New file.
10917         * libm/mathfp/s_copysign.c (copysign): New file.
10918         * libm/mathfp/s_cos.c (cos): New file.
10919         * libm/mathfp/s_cosh.c (cosh): New file.
10920         * libm/mathfp/s_exp.c (exp): New file.
10921         * libm/mathfp/s_fabs.c (fabs): New file.
10922         * libm/mathfp/s_finite.c (finite): New file.
10923         * libm/mathfp/s_floor.c (floor): New file.
10924         * libm/mathfp/s_fmod.c (fmod): New file.
10925         * libm/mathfp/s_frexp.c (frexp): New file.
10926         * libm/mathfp/s_infconst.c: New file.
10927         * libm/mathfp/s_isinf (isinf).c: New file.
10928         * libm/mathfp/s_isnan.c (isnan): New file.
10929         * libm/mathfp/s_ispos.c (ispos): New file.
10930         * libm/mathfp/s_ldexp.c (ldexp): New file.
10931         * libm/mathfp/s_log.c (log): New file.
10932         * libm/mathfp/s_log10.c (log10): New file.
10933         * libm/mathfp/s_logarithm.c (logarithm): New file.
10934         * libm/mathfp/s_mathcnst.c: New file.
10935         * libm/mathfp/s_modf (modf).c: New file.
10936         * libm/mathfp/s_numtest.c (numtest): New file.
10937         * libm/mathfp/s_pow.c (pow): New file.
10938         * libm/mathfp/s_scalbn.c (scalbn): New file.
10939         * libm/mathfp/s_sin (sin).c: New file.
10940         * libm/mathfp/s_sine.c (sine): New file.
10941         * libm/mathfp/s_sineh.c (sineh): New file.
10942         * libm/mathfp/s_sinf.c (sinf): New file.
10943         * libm/mathfp/s_sinh.c (sinh): New file.
10944         * libm/mathfp/s_sqrt.c (sqrt): New file.
10945         * libm/mathfp/s_tan.c (tan): New file.
10946         * libm/mathfp/s_tanh.c (tanh): New file.
10947         * libm/mathfp/sf_acos.c (acosf): New file.
10948         * libm/mathfp/sf_asin.c (asinf): New file.
10949         * libm/mathfp/sf_asine.c (asinef): New file.
10950         * libm/mathfp/sf_atan.c (atanf): New file.
10951         * libm/mathfp/sf_atan2.c (atan2f): New file.
10952         * libm/mathfp/sf_atangent.c (atangent): New file.
10953         * libm/mathfp/sf_ceil.c (ceilf): New file.
10954         * libm/mathfp/sf_copysign.c (copysignf): New file.
10955         * libm/mathfp/sf_cos.c (cosf): New file.
10956         * libm/mathfp/sf_cosh.c (coshf): New file.
10957         * libm/mathfp/sf_exp.c (expf): New file.
10958         * libm/mathfp/sf_fabs.c (fabsf): New file.
10959         * libm/mathfp/sf_finite.c (finitef): New file.
10960         * libm/mathfp/sf_floor.c (floorf): New file.
10961         * libm/mathfp/sf_fmod.c (fmodf): New file.
10962         * libm/mathfp/sf_frexp.c (frexpf): New file.
10963         * libm/mathfp/sf_isinf.c (isinff): New file.
10964         * libm/mathfp/sf_isnan.c (isnanf): New file.
10965         * libm/mathfp/sf_ispos.c (isposf): New file.
10966         * libm/mathfp/sf_ldexp.c (ldexpf): New file.
10967         * libm/mathfp/sf_log.c (logf): New file.
10968         * libm/mathfp/sf_log10.c (log10f): New file.
10969         * libm/mathfp/sf_logarithm.c (logarithmf): New file.
10970         * libm/mathfp/sf_modf.c (modff): New file.
10971         * libm/mathfp/sf_numtest.c (numtestf): New file.
10972         * libm/mathfp/sf_pow.c (powf): New file.
10973         * libm/mathfp/sf_scalbn.c (scalbnf): New file.
10974         * libm/mathfp/sf_sin.c (sinf): New file.
10975         * libm/mathfp/sf_sine.c (sinef): New file.
10976         * libm/mathfp/sf_sineh.c (sinehf): New file.
10977         * libm/mathfp/sf_sinh.c (sinhf): New file.
10978         * libm/mathfp/sf_sqrt.c (sqrtf): New file.
10979         * libm/mathfp/sf_tan.c (tanf): New file.
10980         * libm/mathfp/sf_tanh.c (tanhf): New file.
10981         * libm/mathfp/zmath.h: New file.
10982
10983 Wed Sep  2 02:49:03 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
10984
10985         * libc/machine/sh/strcmp.S (L_char_loop): Re-load r0 at loop
10986         exit if it has been overwritten by pre-fetching in delay slot.
10987
10988 1998-09-01  Michael Meissner  <meissner@cygnus.com>
10989
10990         * Makefile.am (tooldir): Add in host_alias, so that multilib
10991         libraries are installed in the directory the compiler looks in.
10992         * Makefile.in: Regenerate.
10993
10994         * libc/stdlib/Makefile.in: Regenerate with automake version 1.3b.
10995
10996 Mon Aug 31 11:39:31 1998  Jeff Johnston  <jjohnstn@cygnus.com>
10997
10998         * libc/machine/mn10300/memcpy.S (_memcpy): Move alignment test
10999         ahead of test for number of bytes being moved.
11000
11001 Thu Aug 27 14:07:53 1998  Christopher Faylor <cgf@cygnus.com>
11002
11003         * libc/include/sys/unistd.h: Nothing special needed for
11004         _exit under cygwin.
11005
11006 Wed Aug 26 15:05:21 1998  Nick Clifton  <nickc@cygnus.com>
11007
11008         * libc/sys/arm/syscalls.c (_sbrk): Rename '_end' to 'end' to
11009         conform to user label naming conventions. 
11010
11011 Mon Aug 24 14:46:19 1998  Geoffrey Noer <noer@cygnus.com>
11012
11013         * libc/sys/cygwin32/sys/utime.h: variable names in
11014         protos should start with two leading underscores
11015         * libc/include/string.h: ditto
11016         * libc/include/sys/signal.h: ditto
11017         * libc/include/sys/stat.h: ditto
11018         * libc/include/sys/time.h: ditto
11019         * libc/include/sys/unistd.h: ditto
11020         * libc/include/ctype.h: ditto
11021         * libc/include/stdlib.h: ditto
11022         * libc/include/sys/reent.h: struct _atexit function ptr takes a
11023         void, same with _sig_func.
11024
11025 Fri Aug 21 14:44:14 1998  Jeff Johnston  <jjohnstn@cygnus.com>
11026
11027         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Added preprocessor checks
11028         for MB_CAPABLE to reduce code size when newlib is not configured
11029         with --enable-newlib-mb.
11030         * libc/stdlib/Makefile.am: Specified -fshort-enums when building
11031         mbtowc_r.o to minimize size.
11032         * libc/stdlib/Makefile.in: Rebuild.
11033         
11034 Wed Aug 19 16:20:13 1998  Jim Wilson  <wilson@cygnus.com>
11035
11036         * libc/sys/sparc64/Makefile.am (.S_r.o, .c_r.o): Change -DREENTRANT
11037         to -DREENT.
11038         * libc/sys/sparc64/Makefile.in: Rebuild.
11039         
11040 Tue Aug 18 22:38:29 1998  Ian Lance Taylor  <ian@cygnus.com>
11041
11042         * Makefile.am (MAKEOVERRIDES): Define.
11043         * Makefile.in: Rebuild.
11044
11045 Tue Aug 18 12:38:47 1998  Jim Wilson  <wilson@cygnus.com>
11046
11047         * libc/sys/sparc64/sys/stat.h (stat): Add const.
11048
11049 Mon Aug 17 22:27:06 1998  Ian Lance Taylor  <ian@cygnus.com>
11050
11051         * acinclude.m4 (NEWLIB_CONFIGURE): Use top_builddir in
11052         newlib_cflags when looking for targ-include.
11053         * */aclocal.m4, */configure: Rebuild.
11054
11055 Fri Jul 31 10:57:42 1998  Catherine Moore  <clm@cygnus.com>
11056
11057         * libc/sys/arm/syscalls.c (_sbrk): Change "__end__"
11058         to "_end".
11059
11060 Wed Jul 29 00:02:01 1998  Mark Alexander  <marka@cygnus.com>
11061
11062         * libc/include/sys/config.h: Define __IEEE_LITTLE_ENDIAN
11063         on SPARCs with little-endian data.
11064         * libc/include/machine/ieeefp.h: Ditto.
11065
11066 Wed Jul 22 18:00:10 1998  Ian Lance Taylor  <ian@cygnus.com>
11067
11068         * acinclude.m4: Handle a relative srcdir correctly when setting
11069         newlib_cflags.
11070         * */aclocal.m4, */configure: Rebuild.
11071
11072 Wed Jul 22 17:11:33 1998  Jeff Johnston  <jjohnstn@cygnus.com>
11073
11074         * libm/math/wrf_lgamma.c (lgammaf_r): Initialize exc.err to 0 and
11075         also set exc.arg1, exc.arg2 appropriately in case matherr is supplied.
11076         * libm/math/wrf_gamma.c (gammaf_r): ditto 
11077         * libm/math/wr_lgamma.c (lgamma_r): ditto 
11078         * libm/math/wr_gamma.c (gamma_r): ditto 
11079         * libm/math/wf_sqrt.c (sqrtf): ditto 
11080         * libm/math/wf_sinh.c (sinhf): ditto 
11081         * libm/math/wf_scalb.c (scalbf): ditto 
11082         * libm/math/wf_remainder.c (remainderf): ditto 
11083         * libm/math/wf_pow.c (powf): ditto 
11084         * libm/math/wf_log10.c (log10f): ditto 
11085         * libm/math/wf_log.c (logf): ditto 
11086         * libm/math/wf_lgamma.c (lgammaf): ditto 
11087         * libm/math/wf_jn.c (jnf, ynf): ditto 
11088         * libm/math/wf_j1.c (j1f, y1f): ditto 
11089         * libm/math/wf_j0.c (j0f, y0f): ditto 
11090         * libm/math/wf_hypot.c (hypotf): ditto 
11091         * libm/math/wf_gamma.c (gammaf): ditto 
11092         * libm/math/wf_fmod.c (fmodf): ditto 
11093         * libm/math/wf_exp.c (expf): ditto 
11094         * libm/math/wf_cosh.c (coshf): ditto 
11095         * libm/math/wf_atanh.c (atanhf): ditto 
11096         * libm/math/wf_atan2f.c (atan2f): ditto 
11097         * libm/math/wf_asin.c (asinf): ditto 
11098         * libm/math/wf_acosh.c (acoshf): ditto 
11099         * libm/math/wf_acos.c (acosf): ditto 
11100         * libm/math/w_sqrt.c (sqrt): ditto 
11101         * libm/math/w_sinh.c (sinh): ditto 
11102         * libm/math/w_scalb.c (scalb): ditto 
11103         * libm/math/w_remainder.c (remainder): ditto 
11104         * libm/math/w_pow.c (pow): ditto 
11105         * libm/math/w_log10.c (log10): ditto 
11106         * libm/math/w_log.c (log): ditto 
11107         * libm/math/w_lgamma.c (lgamma): ditto 
11108         * libm/math/w_jn.c (jn, yn): ditto 
11109         * libm/math/w_j1.c (j1, y1): ditto 
11110         * libm/math/w_j0.c (j0, y0): ditto 
11111         * libm/math/w_hypot.c (hypot): ditto 
11112         * libm/math/w_gamma.c (gamma): ditto 
11113         * libm/math/w_fmod.c (fmod): ditto 
11114         * libm/math/w_exp.c (exp): ditto 
11115         * libm/math/w_cosh.c (cosh): ditto 
11116         * libm/math/w_atanh.c (atanh): ditto 
11117         * libm/math/w_atan2f.c (atan2): ditto 
11118         * libm/math/w_asin.c (asin): ditto 
11119         * libm/math/w_acosh.c (acosh): ditto 
11120         * libm/math/w_acos.c (acos): ditto 
11121
11122 Tue Jul 21 12:34:54 1998  Ian Lance Taylor  <ian@cygnus.com>
11123
11124         * libm/math/Makefile.am (src): Add w_cabs.c and w_drem.c.
11125         (fsrc): Add wf_cabs.c and wf_drem.c.
11126         * libm/math/Makefile.in: Rebuild.
11127
11128         * Makefile.am (AM_MAKEFLAGS): Add CFLAGS_FOR_BUILD.  Remove some
11129         unused directory variables.  Remove duplicate CFLAGS.
11130         * Makefile.in: Rebuild.
11131
11132         * doc/Makefile.am ($(MKDOC)): Don't use $(CFLAGS) when building
11133         with $(CC_FOR_BUILD).
11134         (makedoc.o): Likewise.
11135         * doc/Makefile.in: Rebuild.
11136
11137         * libc/sys/cygwin32/Makefile.am (EXTRA_LIBRARIES): Define, to
11138         force a definition of COMPILE.
11139         (libfoo_a_SOURCES): Define.
11140         * libc/sys/cygwin32/Makefile.in: Rebuild.
11141         * libc/sys/tic80/Makefile.am (EXTRA_LIBRARIES): Define, to
11142         force a definition of COMPILE.
11143         (libfoo_a_SOURCES): Define.
11144         * libc/sys/tic80/Makefile.in: Rebuild.
11145
11146 Mon Jul 20 20:49:24 1998  Christopher Faylor <cgf@cygnus.com>
11147
11148         * libc/include/sys/fcntl.h: Add O_NOINHERIT, Win32-specific
11149         flag.
11150
11151 Fri Jul 17 16:13:16 1998  Ian Lance Taylor  <ian@cygnus.com>
11152
11153         * Build using autoconf and automake.  Added many Makefile.am and
11154         configure.in files, plus generated files.  Old configure.in files
11155         and all old Makefile.in files completely replaced.  Removed
11156         host/any.  Added acinclude.m4 and configure.host.
11157
11158 Sat Jul 11 18:14:49 1998  Felix Lee  <flee@cygnus.com>
11159
11160         * libc/stdio/vfprintf.c: enable long long support, sometimes.
11161         * configure.in (*-*-cygwin32): add -DWANT_PRINTF_LONG_LONG.
11162
11163 Tue Jul  7 01:51:55 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
11164
11165         * libc/machine/sh/strcmp.S, libc/machine/sh/strcpy.S: New files.
11166         * libc/machine/sh/Makefile.in: Add rules for new files.
11167
11168 Tue Jul  7 01:40:55 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
11169
11170         * libc/machine/sh/asm.h (SL, DELAYED_BRANCHES): Define.
11171         * libc/machine/sh/memset.S (memset): Remove uses of dt; shorten code.
11172         * libc/machine/sh/memcpy.S (SL, DELAYED_BRANCHES): Don't define.
11173
11174 Thu Jul  2 10:33:16 1998  Nick Clifton  <nickc@cygnus.com>
11175
11176         * libc/sys/arm/syscalls.c (_exit): Add comment, noting that exit
11177         code is ignored.
11178
11179 Wed Jun 24 13:56:54 1998  Jeff Johnston  <jjohnstn@cygnus.com>
11180
11181         * libc/stdio/tmpnam.c (_tmpnam_r): Changed routine to use
11182         internal static buffer when s is NULL, as prescribed by ANSI.
11183
11184 1998-06-22  Vladimir N. Makarov  <vmakarov@cygnus.com>
11185
11186         * libc/sys/h8300hms/Makefile.in (OFILES): malloc.o has been
11187         removed.
11188         * libc/sys/h8300hms/malloc.c: has been removed.  Now malloc.c from
11189         libc/stdlib will be used for h8300hms.
11190         
11191 Thu Jun 18 16:56:05 1998  Jeff Johnston  <jjohnstn@cygnus.com>
11192
11193         * libc/machine/mn10300/strlen.S (_strlen): New optimized assembler
11194         version that can be built either for speed or size.
11195         * libc/machine/mn10300/memset.S (_memset): ditto
11196         * libc/machine/mn10300/memchr.S (_memchr): ditto
11197         * libc/machine/mn10300/memcpy.S (_memcpy): ditto
11198         * libc/machine/mn10300/memcmp.S (_memcmp): ditto
11199         * libc/machine/mn10300/strchr.S (_strchr): ditto
11200         * libc/machine/mn10300/strcmp.S (_strcmp): ditto
11201         * libc/machine/mn10300/strcpy.S (_strcpy): ditto
11202         * libc/machine/mn10300/Makefile.in: Added entries for
11203         memchr.o, memcmp.o, memcpy.o, memset.o, strchr.o, 
11204         strcmp.o, strcpy.o, and strlen.o.
11205
11206 Wed Jun 17 12:50:26 1998  Mark Alexander  <marka@cygnus.com>
11207
11208         * configure.in: Don't use libc/sys/sysmec for MN10200; it's
11209         been replaced with libgloss/mn10200.
11210
11211 Fri Jun 12 14:34:39 1998  Michael Meissner  <meissner@cygnus.com>
11212
11213         * libc/string/strchr.c (strchr): Make s a constant pointer to
11214         avoid warning.
11215
11216 Tue Jun  9 16:29:30 1998  Jason Molenda  (crash@bugshack.cygnus.com)
11217
11218         * configure.in (target == arm* or thumb*): Define ARM_RDI_MONITOR
11219         instead of ARM_RDP_MONITOR (sys/libc/arm/crt0.S to assume Angel
11220         board SWIs instead of Demon board SWIs).
11221
11222 Thu Jun  4 12:16:46 1998  Michael Meissner  <meissner@cygnus.com>
11223
11224         * libc/string/strncat.c (strncat):  Make -Os act the same as
11225         PREFER_SIZE_OVER_SPEED being defined.
11226
11227 Wed Jun  3 17:52:33 1998  Michael Meissner  <meissner@cygnus.com>
11228
11229         * libc/string/memchr.c (memchr): Make -Os act the same as
11230         PREFER_SIZE_OVER_SPEED being defined.
11231         * libc/string/memcmp.c (memcmp): Ditto.
11232         * libc/string/memcpy.c (memcpy): Ditto.
11233         * libc/string/memset.c (memset): Ditto.
11234         * libc/string/strcat.c (strcat): Ditto.
11235         * libc/string/strchr.c (strchr): Ditto.
11236         * libc/string/strcmp.c (strcmp): Ditto.
11237         * libc/string/strcpy.c (strcpy): Ditto.
11238         * libc/string/strlen.c (strlen): Ditto.
11239         * libc/string/strncat.c (strncat): Ditto.
11240         * libc/string/strncmp.c (strncmp): Ditto.
11241         * libc/string/strncpy.c (strncpy): Ditto.
11242
11243 Mon Jun  1 15:25:07 1998  Geoffrey Noer  <noer@cygnus.com>
11244
11245         * libc/include/sys/itimer.h: remove
11246         * libc/include/sys/time.h: itimer stuff should be here
11247
11248 Mon Jun  1 16:31:29 1998  Jeff Johnston  <jjohnstn@cygnus.com>
11249
11250         * libc/stdio/vfprintf.c (cvt): Changed code to look at sign
11251         bit instead of comparing to 0 so -0.0 can be printed correctly.
11252
11253 Sat May 30 09:33:51 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
11254
11255         * libc/stdlib/mprec.c (b2d): Inilialize d in non-VAX case too.
11256
11257 Fri May 29 22:25:10 1998  Geoffrey Noer  <noer@cygnus.com>
11258
11259         * libc/include/sys/unistd.h: fix sync() proto
11260         * libc/include/sys/fcntl.h: remove _close which is already
11261         defined in unistd.h.
11262         * libc/include/sys/time.h: add getitimer proto
11263
11264 Fri May 29 16:10:28 1998  Geoffrey Noer  <noer@cygnus.com>
11265
11266         * libc/string/strchr.c: convert arg to unsigned char
11267         * libc/include/stdlib.h: add protos for random, srandom
11268         * libc/include/sys/stat.h: add lstat proto
11269         * libc/include/sys/time.h: add setitimer proto
11270         * libc/include/sys/unistd.h: add readlink, symlink protos
11271         * libc/include/process.h: instead of including windows.h and using
11272         HANDLEs in sexec protos, just use void *s.  Need to include
11273         sys/types.h.
11274
11275 Fri May 29 03:04:29 1998  Geoffrey Noer  <noer@cygnus.com>
11276
11277         * libc/include/sys/fcntl.h: add _close proto for Cygwin32
11278
11279 Thu May 28 16:34:21 1998  Geoffrey Noer  <noer@cygnus.com>
11280
11281         * libc/include/process.h: add secure exec protos
11282
11283 Wed May 27 13:54:51 1998  Jeffrey A Law  (law@cygnus.com)
11284
11285         * libc/stdlib/dtoa.c (_dtoa_r): Use "double_union" for variables
11286         which are accessed as both doubles and integers.
11287         * libc/stdlib/mprec.c (ulp, b2d, ratio): Likewise.
11288         * libc/stdlib/strtod.c (_strtod_r): Likewise.
11289         * libc/stdlib/mprec.h: Add "union double_union" and change
11290         word0/word1 macros to use it.
11291
11292 Tue May 26 18:04:21 1998  Geoffrey Noer  <noer@cygnus.com>
11293
11294         * libc/include/sys/signal.h: add __cplusplus wrapper
11295
11296 Tue May 26 15:10:22 1998  Geoffrey Noer  <noer@cygnus.com>
11297
11298         * libc/include/sys/utime.h: new generic file that gets replaced by
11299         libc/sys/SYSDIR/sys/utime.h on systems that support the utime
11300         function.
11301         * sys/cygwin32/sys/utime.h: use _EXFUN in utime proto
11302         * libc/include/time.h: remove duplicate utime proto
11303         * libc/include/utime.h: add comment
11304
11305 Sun May 24 23:56:20 1998  Christopher Faylor <cgf@cygnus.com>
11306
11307         * libc/include/sys/time.h: Add missing include to
11308         allow use of _EXFUN.  Remove times function that is
11309         already defined in times.h.
11310
11311 Sun May 24 01:32:14 1998  Christopher Faylor <cgf@cygnus.com>
11312
11313         * libc/include/time.h: Fix typo in tzset.
11314
11315 Fri May 22 17:00:48 1998  Geoffrey Noer  <noer@cygnus.com>
11316
11317         * libc/include/sys/time.h: add missing Cygwin32 function protos
11318         * libc/include/sys/unistd.h: ditto
11319         * libc/include/time.h: ditto
11320
11321 Wed May 20 20:35:11 1998  Geoffrey Noer  <noer@cygnus.com>
11322
11323         * libc/sys/cygwin32/sys/param.h: add protected NULL def, remove
11324         FIXME.
11325         * libc/include/sys/types.h: add a new __MS_types__ section
11326         to define vm_offset_t, vm_size_t, int32_t et al, register_t,
11327         __BIT_TYPES_DEFINED__.
11328
11329 Wed May 20 18:49:21 1998  Geoffrey Noer  <noer@cygnus.com>
11330
11331         * libc/sys/cygwin32/sys/param.h: move here from winsup/include/sys
11332         since it overrides the one in libc/include/sys.  Also, start
11333         including types.h.
11334
11335 Wed May 20 14:45:40 1998  Geoffrey Noer  <noer@cygnus.com>
11336
11337         * libm/math/Makefile.in: add s_signgam.o to obj list
11338
11339 Tue May 19 11:57:11 1998  Jeff Johnston  <jjohnstn@cygnus.com>
11340
11341         * libc/include/sys/reent.h (_REENT_INIT): Initialize current locale to "C".
11342
11343 Mon May 18 22:36:12 1998  Christopher Faylor <cgf@cygnus.com>
11344
11345         * libc/include/sys/signal.h: cygwin32 exports sig{empty,add}set,
11346         so don't use defines.
11347
11348 Mon May 18 19:01:02 1998  Michael Meissner  <meissner@cygnus.com>
11349
11350         * libc/sys/d10v/crt0.S: Use correct stab for 16-bit ints.
11351
11352 Sun May 17 18:40:32 1998  Frank Ch. Eigler  <fche@cygnus.com>
11353
11354         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Accept a NULL
11355         _current_locale as default locale.
11356
11357 Sat May 16 21:59:59 1998  Bob Manson  <manson@charmed.cygnus.com>
11358
11359         * libc/stdlib/mallocr.c (mALLOc): Add explicit tests for
11360         insufficient space in a chunk.
11361
11362 Tue May 12 14:41:01 1998  Jeff Johnston  <jjohnstn@cygnus.com>
11363
11364         * configure.in (links): Added check for --enable-newlib-mb configure
11365         option which defines the MB_CAPABLE macro.
11366         * libc/locale/locale.c (_setlocale_r): Added support for setting
11367         LC_CTYPE to "C-JIS", "C-SJIS" or "C-EUCJP", when MB_CAPABLE is
11368         defined.
11369         * libc/stdlib/mbtowc_r.c (_mbtowc_r): New function _mbtowc_r that
11370         implements mbtowc() with multibyte support for JIS, SJIS, and EUC-JP.
11371         * libc/stdlib/wctomb_r.c (_wctomb_r): New function _wctomb_r that
11372         implements wctomb() with multibyte support for JIS, SJIS, and EUC-JP.
11373         * libc/stdlib/mbstowcs_r.c (_mbstowcs_r): New function _mbstowcs_r that
11374         implements mbstowcs() with multibyte support for JIS, SJIS, and EUC-JP.
11375         * libc/stdlib/wcstombs_r.c (_wcstombs_r): New function _wcstomb_r that implements
11376         wcstombs() with multibyte support for JIS, SJIS, and EUC-JP.
11377         * libc/stdlib/Makefile.in: Added new multibyte
11378         routines: _mbtowc_r(), _wctomb_r(), _mbstowcs_r(), and _wcstombs_r().
11379         * libc/include/stdlib.h: Added declarations of _mbtowc_r(), _wctomb_r(),
11380         _mbstowcs_r(), and _wcstombs_r().
11381         * libc/stdlib/mbctype.h: New internal header file that contains macros to test
11382         for JIS, SJIS, and EUC-JP characters.
11383         * libc/stdlib/mblen.c (mblen): Added code to call _mbtowc_r() if
11384         MB_CAPABLE defined.
11385         * libc/stdlib/mbtowc.c (mbtowc): Added code to call _mbtowc_r() if
11386         MB_CAPABLE defined.
11387         * libc/stdlib/wctomb.c (wctomb): Added code to call _wctomb_r() if
11388         MB_CAPABLE defined.
11389         * libc/stdlib/mbstowcs.c (mbstowcs): Added code to call _mbstowcs_r()
11390         if MB_CAPABLE defined.
11391         * libc/stdlib/wcstombs.c (wcstombs): Added code to call _wcstombs_r()
11392         if MB_CAPABLE defined.
11393         * libc/stdio/vfscanf.c (__svfscanf): Added multibyte tolerance
11394         to the format string processing when MB_CAPABLE.
11395         * libc/stdio/vfprintf.c (_VFPRINTF_R): Changed mbtowc() call to
11396         call _mbtowc_r().
11397
11398 Tue May  5 16:07:23 1998  Nick Clifton  <nickc@cygnus.com>
11399
11400         The following modifications are courtesy of Anthony Thompson,
11401         athompson@cambridge.arm.com:
11402         * libc/sys/arm/syscalls.c: Initialise and track stdin/out/err for
11403         boith RDI and RDP monitors.
11404         * libc/sys/arm/crt0.S: Call initialise_monitor_handles() for both
11405         RDI and RDP monitors.
11406
11407 Wed Apr 29 15:22:15 1998  Jeff Johnston  <jjohnstn@cygnus.com>
11408
11409         * configure.in (links): Added -DHAVE_GETTIMEOFDAY for arm and thumb.
11410         * libc/sys/arm/syscalls.c (_gettimeofday _times): Added functions.
11411         (_swiopen): Fixed open flags to treat write with append as just append.
11412         (_swilseek): Fixed lseek support to properly handle offsets from SEEK_END.
11413         * libc/sys/arm/sys/param.h: New file to override param.h for ARM.
11414
11415 Fri Apr 24 18:00:09 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
11416
11417         * libc/machine/sh/memcpy.S (L_odddst, big endian version):
11418         When needing to transfer an initial 2-byte-word, store as
11419         two single bytes.
11420
11421 Wed Apr 22 17:56:03 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
11422
11423         * libc/sys/sh/crt0.S (start): Handle __SH4_SINGLE_ONLY__ like
11424         __SH3E__ .
11425         * libc/machine/sh/memcpy.S (DELAYED_BRANCHES, SL): Likewise.
11426         * libc/include/machine/ieeefp.h (_DOUBLE_IS_32BITS): Likewise.
11427
11428 Wed Apr 22 12:28:03 1998  Michael Meissner  <meissner@cygnus.com>
11429
11430         * configure.in (target_cflags): If --enable-target-optspace, use
11431         -Os to compile newlib rather than -O2.  Default to using -Os for
11432         d10v, d30v and m32r if --{enable,disable}-target-optspace is not
11433         used.
11434
11435 Tue Apr 21 23:13:34 1998  Geoffrey Noer  <noer@cygnus.com>
11436
11437         * libc/include/machine/setjmp.h: change sigsetjmp and
11438         siglongjmp definitions to use an array instead of a struct
11439         for __CYGWIN32__
11440
11441 Tue Apr 14 11:47:47 1998  Doug Evans  <devans@canuck.cygnus.com>
11442
11443         * libc/reent/impure.c (__ATTRIBUTE_IMPURE_DATA__): Fix spelling.
11444
11445 Mon Apr  6 15:05:08 1998  Jonathan Larmour  <jlarmour@cygnus.co.uk>
11446
11447         * libc/string/strxfrm.c: fix to get correct return value
11448
11449 Wed Apr  1 16:09:05 1998  Nick Clifton  <nickc@cygnus.com>
11450
11451         * libc/sys/arm/crt0.S: Set top of RAM to be 0x800000 for PE
11452         builds.  Make mode change labels global so that they will be seen
11453         by the debugger.
11454
11455 Wed Mar 18 09:45:10 1998  Nick Clifton  <nickc@cygnus.com>
11456
11457         * configure.in (links): Do not use ARM debiugging protocols for PE
11458         builds.
11459
11460         * libc/sys/arm/syscalls.c (_sbrk): Add "_sbrk: " to error
11461         message. 
11462
11463 Fri Mar 13 11:24:34 1998  Jeff Johnston  <jjohnstn@cygnus.com>
11464
11465         * libc/stdio/findfp.c (__sinit): Made stdout default to
11466         line buffered mode as defined by ANSI.
11467
11468 Tue Mar 10 11:41:26 1997  Bob Manson  <manson@charmed.cygnus.com>
11469
11470         * libc/include/sys/itimer.h: New file.
11471
11472         * libc/signal/signal.c (__sigtramp_r,__sigtramp): New functions.
11473
11474 Mon Mar  9 14:19:26 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
11475
11476         * libc/machine/sh/memcpy.S: (_memcpy): Fix for execute/memcpy-1.c
11477         failure.
11478
11479 Fri Feb 27 13:56:10 1998  Michael Meissner  <meissner@cygnus.com>
11480
11481         * libc/machine/d30v/setjmp.S (longjmp): Fix order of parallel
11482         insns.
11483
11484 Wed Feb 25 09:29:54 1998  Nick Clifton  <nickc@cygnus.com>
11485
11486         * libc/sys/arm/syscalls.c (_open): Add varags to conform to prototype.
11487
11488 Tue Feb 24 18:00:13 1998  Michael Meissner  <meissner@cygnus.com>
11489
11490         * libc/machine/d30v/{setjmp.S,Makefile.in}: New files for D30V
11491         support.
11492
11493         * libc/include/machine/setjmp.h: Add D30V support.
11494
11495         * configure.in (d30v-*): Add d30v machine directory.
11496
11497 Mon Feb 23 09:32:58 1998  Mark Alexander  <marka@cygnus.com>
11498
11499         * configure.in: Don't use libc/sys/sysmec for MN10300; it's
11500         been replaced with libgloss/mn10300.
11501
11502 Sat Feb 21 17:44:43 1998  Geoffrey Noer  <noer@cygnus.com>
11503
11504         * libc/stdlib/mallocr.c: remove __malloc_copy routine now that
11505         it is no longer needed.
11506
11507 Thu Feb 19 16:15:10 1998  Geoffrey Noer  <noer@cygnus.com>
11508
11509         * libc/include/sys/signal.h: add sigpause proto for Cygwin32
11510
11511 Wed Feb 18 23:51:08 1998  Geoffrey Noer  <noer@cygnus.com>
11512
11513         * libc/stdio/fdopen.c (fdopen): Make all writes go to the end of
11514         the file when O_APPEND is set, wherever the EOF happens to be at
11515         that time. 
11516
11517 Wed Feb 18 23:25:02 1998  Geoffrey Noer  <noer@cygnus.com>
11518         
11519         patch from cgf@bbc.com (Christopher Faylor):
11520         * libc/stdio/freopen.c (freopen): Conform to standard UNIX
11521         convention of closing fp prior to attempting to open the file
11522         argument.  This allows correct operation when reopening
11523         stdin/stdout/stderr.  Replaces last freopen.c patch.
11524
11525 Wed Feb 18 16:27:40 1998  Geoffrey Noer  <noer@cygnus.com>
11526
11527         patch from cgf@bbc.com (Christopher Faylor):
11528         * libc/stdio/freopen.c: freopen was not preserving the fd
11529         of the stream being operated on.  This confuses programs that
11530         expect that the handles for stdout and stderr will be 1 and 2.
11531
11532 Mon Feb 16 23:34:07 1998  Andrew Cagney  <cagney@b1.cygnus.com>
11533
11534         * libc/sys/d10v/crt0.S (_start): Set PSW{SW} - select SPU.
11535
11536 Thu Feb 12 15:09:20 1998  Ranjith Kumaran <ranjith@cygnus.com>
11537
11538         * libc/sys/go32/longjmp.S: Fix longjmp to not return 0.
11539
11540 Wed Feb 11 17:50:45 1998  Jeff Johnston  <jjohnstn@cygnus.com>
11541
11542         * libc/machine/powerpc/setjmp.S (setjmp, longjmp): Alignment code
11543         altered to not use a branch.  Also added hint that last
11544         bclr in longjmp will likely result in branch.
11545         
11546
11547 Mon Feb  9 03:44:02 1998  Geoffrey Noer  <noer@cygnus.com>
11548
11549         * libc/sys/cygwin32/crt0.c: add missing args to main() extern
11550
11551 Fri Feb  6 16:32:32 1998  Nick Clifton  <nickc@cygnus.com>
11552
11553         * libc/sys/sysnecv850/crt0.S (_start): Initialise _ctbp even for
11554         v850 builds.
11555
11556         * configure.in: Add -msmall-sld to target_cflags for v850 builds. 
11557
11558 Wed Feb  4 16:56:20 1998  Jeff Johnston  <jjohnstn@cygnus.com>
11559
11560         * libc/machine/powerpc/setjmp.S (longjmp): Fixed code
11561         that loads FR14 to specify offset of 8 rather than 4
11562         so it loads from offset 96 (where setjmp stored it).
11563
11564 Tue Feb  3 18:08:34 1998  Jeff Johnston  <jjohnstn@cygnus.com>
11565
11566         * libc/machine/sh/memcpy.S: (_memcpy): Update to
11567         latest version supplied by customer.
11568         * libc/machine/sh/memset.S (_memset): Ditto.
11569
11570 Mon Feb  2 16:20:39 1998  Nick Clifton  <nickc@cygnus.com>
11571
11572         * libc/sys/sysnecv850/Makefile.in (OFILES): Add link.o (for
11573         PR14730). 
11574
11575 Mon Feb  2 15:13:26 1998  Geoffrey Noer  <noer@cygnus.com>
11576
11577         * libc/include/string.h: remove redefinition of ffs
11578
11579 Wed Jan 28 13:30:14 1998  Geoffrey Noer  <noer@cygnus.com>
11580
11581         * libc/include/sys/signal.h: include _ansi.h so _EXFUN is
11582         defined
11583
11584 Wed Jan 28 10:38:34 1998  Jeff Johnston  <jjohnstn@cygnus.com>
11585
11586         * libc/machine/tic80/setjmp.S: Adding _setjmp to allow
11587         TI Libraries to link to libc.a
11588         
11589 Sat Jan 24 10:15:56 1998  Michael Meissner  <meissner@cygnus.com>
11590
11591         * libc/include/sys/fcntl.h (_open,_fcntl): Add prototypes.
11592         * libc/include/sys/stat.h (_{,f}stat): Ditto.
11593         * libc/include/sys/wait.h (_wait): Ditto.
11594         * libc/include/sys/unistd.h (_close,_fork,_getpid): Ditto.
11595         (_link,_lseek,_read,_sbrk,_unlink,_write): Ditto.
11596
11597 Fri Jan 23 11:32:10 1998  Michael Meissner  <meissner@cygnus.com>
11598
11599         * libc/machine/d10v/setjmp.S: Change to new ABI.  Add simple
11600         minded stabs so function name shows up when running the simulator
11601         with -t.
11602         * libc/sys/d10v/{crt0,trap}.S: Ditto.
11603
11604 Thu Jan 22 15:57:14 1998  Fred Fish  <fnf@cygnus.com>
11605
11606         * libc/sys/d10v/trap.S: Change syscalls to use trap 15. 
11607         * libc/sys/d10v/crt0.S: Use R6 where we used to use R2.
11608         Use R5 where we used to use R3.
11609         
11610 Wed Jan 21 14:22:23 1998  Bill Moyer <billm@cygnus.com>
11611
11612         * libc/stdlib/getopt.c (getopt): replaced __progname
11613         with nargv[0] to improve portability to imbedded systems.
11614
11615 Thu Jan 15 12:32:38 1998  Nick Clifton  <nickc@cygnus.com>
11616
11617         * libc/sys/arm/syscalls.c (initialise_angel_handles): Applied
11618         patch supplied by Tont.Thompson@arm.com to fix the creation of the
11619         stdout file.
11620
11621 Wed Jan 14 13:00:19 1998  Ian Lance Taylor  <ian@cygnus.com>
11622
11623         * libc/stdio/tmpnam.c (worker): Generate a different file name
11624         each time.
11625
11626         * libc/posix/popen.c (popen): If __CYGWIN32__, and execing /bin/sh
11627         fails, try an execlp for sh.
11628
11629         * host/any (INCLUDES): If target_os is cygwin32, then add a -I
11630         option for the winsup include directory.
11631
11632 Wed Jan  7 17:02:58 1998  Nick Clifton  <nickc@cygnus.com>
11633
11634         * libc/sys/arm/syscalls.c: Applied patches for Angel based remote
11635         debugging interface from Tony.Thompson@arm.com.
11636         
11637         * libc/sys/arm/crt0.S (_mainCRTStartup): ditto.
11638         * libc/sys/arm/swi.h: ditto.
11639
11640 Tue Jan  6 14:15:10 1998  Geoffrey Noer  <noer@cygnus.com>
11641
11642         * libc/sys/cygwin32/sys/dirent.h: add __d_dirhash field to
11643         DIR struct used for readdir hashes.
11644
11645 Thu Jan  1 11:22:22 1998  Jeffrey A Law  (law@cygnus.com)
11646
11647         * libc/string/strchr.c: Use "unsigned chars" as necessary.
11648
11649 Wed Dec 31 04:25:30 1997  Jeffrey A Law  (law@cygnus.com)
11650
11651         * libc/stdlib/mallocr.c (idx2binblock): Don't lose on 16bit
11652         integer targets.
11653
11654 Sat Dec 13 15:11:06 1997  Ian Lance Taylor  <ian@cygnus.com>
11655
11656         * libc/stdlib/mallocr.c (__malloc_copy): New function, compiled if
11657         INTERNAL_NEWLIB and __CYGWIN32__ and DEFINE_MALLOC.
11658         * libc/include/malloc.h: Add extern "C" if __cplusplus.
11659         (__malloc_copy): Declare.
11660
11661 Wed Dec 10 12:15:54 1997  Ian Lance Taylor  <ian@cygnus.com>
11662
11663         * libc/stdlib/mallocr.c: If INTERNAL_NEWLIB, include
11664         <sys/config.h>.
11665         (POINTER_UINT): Define.
11666         (DEFAULT_TRIM_THRESHOLD): Mark constants as long.
11667         (MALLOC_ALIGNMENT): Don't define if already defined.
11668         (malloc_extend_top): Cast pointers to POINTER_UINT, not unsigned
11669         long.
11670
11671 Tue Dec  9 19:23:42 1997  Michael Meissner  <meissner@cygnus.com>
11672
11673         * libc/string/memset.c (memset): Fiddle with code so that the long
11674         value being stored is not a stack value.  Unroll storing longs 4
11675         times.
11676
11677 Tue Dec  9 14:13:18 1997  Jeff Johnston  <jjohnstn@cygnus.com>
11678
11679         * Reduce code size for libm modules.
11680         * libm/math/w_sqrt.c (sqrt): Remove call to kernel_standard
11681         and simply move code into sqrt.
11682         * libm/math/wrf_lgamma.c (lgammaf_r): Likewise.
11683         * libm/math/wr_lgamma.c (lgamma_r): Likewise.
11684         * libm/math/wrf_gamma.c (gammaf_r): Likewise.
11685         * libm/math/wr_gamma.c (gamma_r): Likewise.
11686         * libm/math/wf_sinh.c (sinfh): Likewise.
11687         * libm/math/w_sinh.c (sinh): Likewise.
11688         * libm/math/wf_scalb.c (scalbf): Likewise.
11689         * libm/math/w_scalb.c (scalb): Likewise.
11690         * libm/math/wf_remainder.c (remainderf): Likewise.
11691         * libm/math/w_remainder.c (remainder): Likewise.
11692         * libm/math/wf_pow.c (powf): Likewise.
11693         * libm/math/w_pow.c (pow): Likewise.
11694         * libm/math/wf_log10.c (log10f): Likewise.
11695         * libm/math/w_log10.c (log10): Likewise.
11696         * libm/math/wf_log.c (logf): Likewise.
11697         * libm/math/w_log.c (log): Likewise.
11698         * libm/math/w_lgamma.c (lgamma): Likewise.
11699         * libm/math/wf_lgamma.c (lgammaf): Likewise.
11700         * libm/math/wf_jn.c (jnf): Likewise.
11701         * libm/math/w_jn.c (jn): Likewise.
11702         * libm/math/wf_j1.c (j1f): Likewise.
11703         * libm/math/w_j1.c (j1): Likewise.
11704         * libm/math/wf_j0.c (j0f): Likewise.
11705         * libm/math/w_j0.c (j0): Likewise.
11706         * libm/math/wf_hypot.c (hypotf): Likewise.
11707         * libm/math/w_hypot.c (hypot): Likewise.
11708         * libm/math/wf_gamma.c (gammaf): Likewise.
11709         * libm/math/w_gamma.c (gamma): Likewise.
11710         * libm/math/wf_fmod.c (fmodf): Likewise.
11711         * libm/math/w_fmod.c (fmod): Likewise.
11712         * libm/math/wf_exp.c (expf): Likewise.
11713         * libm/math/w_exp.c (exp): Likewise.
11714         * libm/math/wf_cosh.c (coshf): Likewise.
11715         * libm/math/w_cosh.c (cosh): Likewise.
11716         * libm/math/wf_atanh.c (atanhf): Likewise.
11717         * libm/math/w_atanh.c (atanh): Likewise.
11718         * libm/math/wf_atan2.c (atan2f): Likewise.
11719         * libm/math/w_atan2.c (atan2): Likewise.
11720         * libm/math/wf_asin.c (asinf): Likewise.
11721         * libm/math/w_asin.c (asin): Likewise.
11722         * libm/math/wf_acosh.c (acoshf): Likewise.
11723         * libm/math/w_acosh.c (acosh): Likewise.
11724         * libm/math/wf_acos.c (asocf): Likewise.
11725         * libm/math/w_acos.c (acos): Likewise.
11726         * libm/math/wf_sqrt.c (sqrtf): Likewise.
11727         * libm/math/k_standard.c (_k_standard): Don't require SVID behavior
11728         for embedded systems.
11729
11730 Mon Dec  8 12:12:58 1997  Ian Lance Taylor  <ian@cygnus.com>
11731
11732         * libc/stdlib/mallocr.c (malloc_extend_top): Add patch from Doug
11733         Lea in case of a foreign sbrk.
11734
11735 Fri Dec  5 23:27:28 1997  Ian Lance Taylor  <ian@cygnus.com>
11736
11737         Incorporate Doug Lea's malloc:
11738         * libc/stdlib/mallocr.c: Completely replaced.
11739         * libc/stdlib/malloc.c: Document malloc_usable_size and memalign.
11740         (realloc): Remove.
11741         * libc/stdlib/calloc.c (calloc): Just call _calloc_r.
11742         * libc/stdlib/mstats.c: Document mallinfo, malloc_stats, and
11743         mallopt.
11744         (mallinfo, malloc_stats, mallopt): New functions.
11745         (_mstats_r): Just call _malloc_stats_r.
11746         * libc/stdlib/malign.c: New file.
11747         * libc/stdlib/mlock.c: New file.
11748         * libc/stdlib/msize.c: New file.
11749         * libc/stdlib/mtrim.c: New file.
11750         * libc/stdlib/realloc.c: New file.
11751         * libc/stdlib/valloc.c: New file.
11752         * libc/stdlib/malloc.h: Remove.
11753         * libc/stdlib/callocr.c: Remove.
11754         * libc/stdlib/Makefile.in (OFILES): Add cfreer.o, freer.o,
11755         malign.o, malignr.o, mallinfor.o, malloptr.o, mallstatsr.o,
11756         mlock.o, msize.o, msizer.o, mtrim.o, pvallocr.o, realloc.o,
11757         reallocr.o, valloc.o, vallocr.o.
11758         (CHEWOUT_FILES): Add mlock.def, mstats.def.
11759         (MALLOC_CFLAGS): New variable.
11760         (mallocr.o): New target, build from mallocr.c.
11761         (freer.o, reallocr.o, callocr.o, cfreer.o, malignr.o): Likewise.
11762         (vallocr.o, pvallocr.o, mallinfor.o, mallstatsr.o): Likewise.
11763         (msizer.o, malloptr.o): Likewise.
11764         (malign.o, mlock.o, msize.o, mtrim.o, realloc.o): New targets.
11765         (valloc.o): New target.
11766         * libc/stdlib/stdlib.tex: Include mlock.def and mstats.def.
11767         * libc/include/malloc.h: Declare struct mallinfo, and new
11768         routines.
11769         * libc/include/stdlib.h (cfree): Correct declaration.
11770
11771 Tue Dec  2 10:12:16 1997  Nick Clifton  <nickc@cygnus.com>
11772
11773         * libc/include/machine/setjmp.h: Add support for Thumb target.
11774
11775         * libc/include/machine/ieeefp.h: Add support for Thumb target.
11776
11777         * configure.in (links): Add support for Thumb target.
11778
11779 Wed Nov 26 09:56:17 1997  Nick Clifton  <nickc@cygnus.com>
11780
11781         * libc/sys/arm/setjmp.S: Updated with version from branch.
11782
11783 Thu Nov 20 01:21:43 1997  Geoffrey Noer  <noer@cygnus.com>
11784
11785         * libc/include/stdio.h: add POSIX-required define L_ctermid
11786         for ctermid
11787
11788 Wed Nov 19 16:11:40 1997  Michael Meissner  <meissner@cygnus.com>
11789
11790         * configure.in (d30v-*-*): Define ABORT_MESSAGE, SMALL_MEMORY, in
11791         addition to MISSING_SYSCALL_NAMES.
11792
11793 Mon Nov 17 20:05:05 1997  J"orn Rennecke <amylaar@cygnus.co.uk>
11794
11795         * libc/include/sys/config.h: (UINT_MAX, for D10V):  Make unsigned.
11796
11797 Mon Nov 10 22:26:55 1997  Geoffrey Noer  <noer@cygnus.com>
11798
11799         * libc/include/string.h: change strsignal proto to return
11800         a char *.  This eliminates compile problems in gdb resulting
11801         from gdb's definition of strsignal in defs.h.
11802
11803 Mon Nov 10 17:11:08 1997  Geoffrey Noer  <noer@cygnus.com>
11804
11805         * libc/sys/cygwin32/sys/utime.h: new (moved here from
11806         winsup/include) so as not to conflict with the one in
11807         libc/include.
11808         * libc/include/string.h: add protos for strsignal, strtosigno
11809
11810 Mon Nov 10 13:49:54 1997  Michael Meissner  <meissner@cygnus.com>
11811
11812         * libc/include/sys/config.h: Define __IEEE_BIG_ENDIAN if d30v.
11813
11814         * configure.in (d30v-*-*): Add configuration.
11815
11816 Thu Oct 30 14:01:23 1997  Nick Clifton  <nickc@cygnus.com>
11817
11818         * configure.in (links): Add -DARM_RD[P|I]_MONITOR to target_cflags
11819         to select which kind of debug monitor is in use for an ARM target.
11820
11821         * libc/sys/arm/crt0.S: New version: Supports Thumb startups and
11822         Angel and Demon debug monitors.  Part of this code was supplied by
11823         Tony Thompson at ARM: athompso@arm.com.
11824
11825 Fri Oct 24 18:57:05 1997  Jeffrey A Law  (law@cygnus.com)
11826
11827         * strncat.c (strncat): Don't call strncpy; strncay has the wrong
11828         semantics when the count is greater than the length of the second
11829         source string.
11830
11831 Thu Oct 23 01:37:41 1997  Geoffrey Noer  <noer@cygnus.com>
11832
11833         * libc/include/sys/signal.h: reorder CYGWIN32 signal numbers
11834         * libc/include/sys/unistd.h: add protos for usleep, truncate,
11835         truncate and ftruncate take off_t, not size_t
11836
11837 Tue Oct 21 18:42:00 1997  Jim Wilson  <wilson@cygnus.com>
11838
11839         * libc/string/strcat.c (strcat): Add missing comment end.
11840         * libc/string/strncat.c (strncat): Likewise.
11841
11842 Tue Oct 21 17:23:34 1997  Nick Clifton  <nickc@cygnus.com>
11843
11844         * configure.in (links): Define PREFER_SIZE_OVER_SPEED for v850
11845         targets. 
11846         * libc/string/{memchr.c, memcmp.c, memcpy.c}:   Add space
11847         optimised version which is selected if PREFER_SIZE_OVER_SPEED is
11848         defined.  
11849         * libc/string/{memset.c, strcat.c, strchr.c}: Likewise.
11850         * libc/string/{strcmp.c, strcpy.c, strlen.c}: Likewise.
11851         * libc/string/{strncat.c, strncmp.c, strncpy.c}: Likewise.
11852
11853 Mon Oct 13 15:12:35 1997  Ian Lance Taylor  <ian@cygnus.com>
11854
11855         * libc/include/sys/param.h (BIG_ENDIAN): Define if __i386__.
11856         (LITTLE_ENDIAN, BYTE_ORDER): Likewise.
11857
11858 Thu Oct  9 13:54:44 1997  Doug Evans  <dje@canuck.cygnus.com>
11859
11860         * libc/machine/i386/setjmp.S: New file.
11861         * libc/machine/i386/Makefile.in: Delete COPYOFILES.
11862         (OFILES): Add setjmp.o.
11863         (setjmp.o): Add rule for.
11864         * configure.in: Don't set machine_dir for *-*-{go32,sco*,cygwin32}.
11865
11866 Tue Oct  7 14:01:29 1997 Bill Moyer     (billm@cygnus.com)
11867                          Jeffrey A Law  (law@cygnus.com)
11868
11869         * libc/string/{memchr.c, memcmp.c, memcpy.c}: Reimplement to run faster.
11870         * libc/string/{memset.c, strcat.c, strchr.c}: Likewise.
11871         * libc/string/{strcmp.c, strcpy.c, strlen.c}: Likewise.
11872         * libc/string/{strncat.c, strncmp.c, strncpy.c}: Likewise.
11873
11874 Mon Oct  6 14:07:59 1997  Nick Clifton  <nickc@cygnus.com>
11875
11876         * libc/sys/sysnecv850/Makefile.in (crt0.o trap.o): Explicit
11877         rules. 
11878
11879         * libc/include/sys/config.h: Use __v850 to select v850
11880         endianness. 
11881
11882         * libc/include/machine/setjmp.h: Use __v850 to select v850 jump
11883         buffer size.
11884
11885         * libc/include/machine/ieeefp.h: Use __v850 to select v850
11886         endianness. 
11887
11888 Thu Sep 25 14:11:37 1997  Geoffrey Noer  <noer@cygnus.com>
11889
11890         * libc/stdlib/setenv.c: change unsetenv definition to match
11891         style of setenv (with _DEFUN).  The string should be a const.
11892         * libc/include/stdlib.h: unsetenv proto should return void.
11893
11894 Tue Sep 23 18:17:20 1997  Geoffrey Noer  <noer@cygnus.com>
11895
11896         * libc/include/stdlib.h: define unsetenv proto for __CYGWIN32__
11897
11898 Thu Sep 18 12:50:15 1997  Angela Marie Thomas (angela@cygnus.com)
11899
11900         * libc/stdio/glue.h: remove.
11901         * libc/stdio/findfp.c, libc/stdio/fwalk.c: remove #include "glue.h"
11902         * libc/stdio/Makefile.in: remove glue.h dependencies
11903
11904 Wed Sep 17 17:42:27 1997  Nick Clifton  <nickc@cygnus.com>
11905
11906         * libc/sys/sysnecv850/crt0.S: Created V850e version.
11907         
11908 Tue Sep  9 10:40:57 1997  Doug Evans  <dje@canuck.cygnus.com>
11909
11910         * configure.in (target_cpu): Add `arc'.
11911
11912 Tue Sep  9 10:40:42 1997  Joel Sherrill  <joel@OARcorp.com>
11913
11914         * newlib/configure.in (*-*-rtems*): Add -DSIGNAL_PROVIDED and 
11915           -DREENTRANT_SYSCALLS_PROVIDED to the target_cflags.
11916         * newlib/libc/include/sys/errno.h: Add ENOTSUP.
11917         * newlib/libc/reent/reent.c: Add _wrapup_reent.
11918         * newlib/libc/sys/rtems/sys/types.h: Avoid redefinitions for go32.
11919
11920 Sun Sep  7 16:41:41 1997  Gavin Koch  <gavin@cygnus.com>
11921
11922         * libc/machine/mips/setjmp.S: Handle mips16 builds.
11923
11924 Thu Aug 21 20:05:38 1997  Ian Lance Taylor  <ian@cygnus.com>
11925
11926         * libc/include/stdio.h (siprintf): Declare.
11927
11928 Mon Aug 18 11:19:13 1997  Nick Clifton  <nickc@cygnus.com>
11929
11930         * libc/sys/sysnecv850/Makefile.in (.c.o): Add rule that includes
11931         TARGET_CFLAGS and NEWLIB_FLAGS.
11932
11933 Mon Aug 18 11:15:43 1997  Nick Clifton  <nickc@cygnus.com>
11934
11935         * configure.in (links): Add support for v850ea target.
11936
11937 Mon Aug 18 11:15:43 1997  Nick Clifton  <nickc@cygnus.com>
11938
11939         * configure.in (links): Add support for v850e target.
11940
11941 Wed Aug 13 19:16:54 1997  Nick Clifton  <nickc@cygnus.com>
11942
11943         * libc/sys/sysnecv850/crt0.S: Remove initial setting of r0 to 0.
11944
11945 Mon Aug 11 15:49:54 1997  Doug Evans  <dje@canuck.cygnus.com>
11946
11947         * configure.in (arc-*-*): Add support for.
11948         * libc/include/machine/ieeefp.h (__arc__): Add support for the ARC.
11949
11950 Fri Jul 25 17:37:41 1997  J"orn Rennecke <amylaar@cygnus.co.uk>
11951
11952         * libc/sys/sh/crt0.S (start): Add fpscr initialization for SH4.
11953
11954 Thu Jul 24 18:32:17 1997  Geoffrey Noer  <noer@cygnus.com>
11955
11956         * libc/stdlib/bsearch.c (bsearch): remove last unneeded
11957         comparison which accesses invalid memory when the key is
11958         larger than the last member of the array.
11959         * libc/include/machine/setjmp.h: add sigsetjmp, siglongjmp
11960         for CYGWIN32
11961         * libc/include/sys/unistd.h: add _POSIX defines for CYGWIN32
11962
11963 Tue Jul 22 16:03:06 1997  Ian Lance Taylor  <ian@cygnus.com>
11964
11965         * libc/include/stdlib.h (realpath): Declare if __CYGWIN32__ and
11966         not _STRICT_ANSI.
11967
11968 Thu Jul 10 15:11:52 1997  Doug Evans  <dje@canuck.cygnus.com>
11969
11970         * libm/math/k_standard.c (__kernel_standard): Call fflush(stdout)
11971         ifndef _USE_WRITE, instead of ifdef _USE_WRITE.
11972
11973 Thu Jul 10 16:00:09 1997  Mike Meissner  <meissner@cygnus.com>
11974
11975         * libc/machine/tic80/setjmp.S (setjmp,longjmp): Use ld.d and st.d
11976         to load/store memory.
11977
11978 Mon Jul  7 17:38:17 1997  Ian Lance Taylor  <ian@cygnus.com>
11979
11980         * libc/include/sys/fcntl.h: Define _O_* symbols with leading
11981         underscores if _WIN32.
11982
11983 Wed Jul  2 10:07:20 1997  Doug Evans  <dje@canuck.cygnus.com>
11984
11985         * libm/math/k_standard.c (__kernel_standard): Delete reentrancy
11986         support ifdef _USE_WRITE missed in last change.
11987         From Anders Blomdell <anders.blomdell@control.lth.se>.
11988
11989 Wed Jun 25 10:18:49 1997  Doug Evans  <dje@canuck.cygnus.com>
11990
11991         * libc/stdio/tmpnam.c (worker): Handle _open_r being stubbed out.
11992         (_tmpnam_r, _tempnam_r): Update.
11993
11994 Wed Jun 25 00:16:55 1997  Mark Alexander  <marka@cygnus.com>
11995
11996         * libc/machine/sparc/setjmp.S: New file.
11997         * libc/machine/sparc/Makefile.in: Add setjmp.
11998         * libc/include/machine/setjmp.h: Increase jmpbuf size for sparc.
11999
12000 Tue Jun 24 23:27:38 1997  Mark Alexander  <marka@cygnus.com>
12001
12002         * libc/include/machine/setjmp.h: Use __TIC80__ instead of __tic80__.
12003
12004 Tue Jun 24 14:53:40 1997  Doug Evans  <dje@canuck.cygnus.com>
12005
12006         From Joel Sherrill <joel@oarcorp.com>.
12007         * libc/stdlib/getenv.c (_findenv): Avoid dereferencing null `environ'.
12008
12009         Add rtems support.  From Joel Sherrill <joel@oarcorp.com>.
12010         * configure.in: Recognize *-*-rtems*.
12011         * libc/sys/rtems/{Makefile.in,crt0.c,dummysys.c}: New files.
12012         * libc/sys/rtems/sys/{features.h,sched.h,siginfo.h,signal.h,
12013         time.h,times.h,types.h}: New files.
12014         * libc/sys/rtems/include/{limits.h,signal.h,time.h}. New files.
12015
12016 Fri Jun 20 11:13:16 1997  Geoffrey Noer  <noer@cygnus.com>
12017
12018         patch from sos@prospect.com.ru (Sergey Okhapkin):
12019         * include/sys/wait.h: correct operator precidence bug
12020         in WIFSIGNALED
12021
12022 Wed Jun 18 22:08:27 1997  Geoffrey Noer  <noer@cygnus.com>
12023
12024         * libc/include/stdlib.h: remove unsetenv proto since it conflicts
12025         with newlib's unsetenv function
12026         * libc/sys/cygwin32/sys: new directory for includes
12027         * libc/sys/cygwin32/sys/dirent.h: move cygwin32's dirent.h
12028         here from winsup/include/sys
12029
12030 Mon Jun 16 21:02:22 1997  Geoffrey Noer  <noer@cygnus.com>
12031
12032         * libc/include/sys/unistd.h: _exit should only be
12033         labelled noreturn when not __CYGWIN32__
12034         * libc/include/stdlib.h: for __CYGWIN32__, add proto for unsetenv
12035         * libc/include/sys/signal.h: add SIGIO to _WIN32 list and
12036         increment NSIG
12037
12038 Thu Jun 12 18:52:41 1997  Ian Lance Taylor  <ian@cygnus.com>
12039
12040         * libc/include/sys/time.h: Only define timeval and timezone if
12041         _GNU_H_WINDOWS32_SOCKETS is not defined.
12042         * libc/include/sys/stat.h: If _WIN32, define _S_IFMT, etc.
12043
12044 Wed Jun 11 09:46:26 1997  Jeffrey A Law  (law@cygnus.com)
12045
12046         * libc/machine/mn10200/setjmp.S: Implement setjmp/longjmp
12047         * libc/machine/mn10300/setjmp.S: Likewise.
12048
12049         * libc/sys/sysmec/crt0.S: Use "call" instead of "calls" for
12050         the mn10300 (more relaxing opportunities).
12051
12052 Tue Jun 10 17:24:45 1997  Mike Meissner  <meissner@cygnus.com>
12053
12054         * configure.in (powerpc*-*-{eabi,elf,linux,rtems,sysv,solaris}):
12055         Build libraries with -mstrict-align.
12056
12057 Fri Jun  6 14:07:59 1997  Ian Lance Taylor  <ian@cygnus.com>
12058
12059         * libc/string/strlwr.c: New file.
12060         * libc/string/strupr.c: New file.
12061         * libc/include/string.h: Declare strlwr and strupr.
12062         * libc/string/Makefile.in (OFILES): Add strlwr.o and strupr.o.
12063         (CHEWOUT_FILES): Add strlwr.def and strupr.def.
12064         (strlwr.o, strupr.o): New targets.
12065         * libc/string/strings.tex: Include strlwr and strupr docs.
12066
12067         * libc/include/sys/types.h: Don't define u_char, et. al., if
12068         _GNU_H_WINDOWS32_SOCKETS is defined.  Likewise for fd_set,
12069         et. al.  Make FD_SETSIZE default 64 rather than 60.  Define
12070         _types_fd_set rather than fd_set, and define fd_set as a macro.
12071
12072         * libc/include/malloc.h: New file.
12073
12074         * libc/include/string.h: Define strcmpi, stricmp, strncmpi, and
12075         strnicmp if they are not already defined.
12076
12077         * libc/include/time.h: If __CYGWIN32__, declare tzset and define
12078         _timezone, _daylight, and _tzname.
12079
12080 Wed Jun  4 12:51:16 1997  Doug Evans  <dje@canuck.cygnus.com>
12081
12082         * configure.in: Sort all configuration tables.
12083
12084         From Joel Sherrill <joel@oarcorp.com>
12085         * Makefile.in (stmp-targ-include): Copy $(sys_dir)/include/*.h.
12086
12087 Tue Jun  3 14:47:46 1997  Ian Lance Taylor  <ian@cygnus.com>
12088
12089         * libc/include/sys/signal.h: Don't include <sys/types.h>.  Just
12090         use int when declaring kill.
12091
12092         * libc/include/sys/timeb.h: New file.
12093
12094 Mon Jun  2 12:06:58 1997  Geoffrey Noer  <noer@cirdan.cygnus.com>
12095
12096         * libc/include/sys/time.h: add itimer support for Cygwin32
12097
12098 Mon May 19 11:56:46 1997  Mike Meissner  <meissner@cygnus.com>
12099
12100         * libc/stdlib/abort.c (abort): If ABORT_MESSAGE is defined, write
12101         out a message that abort was called to stderr.
12102
12103 Fri May 16 15:02:59 1997  Bob Manson  <manson@charmed.cygnus.com>
12104
12105         * libc/sys/sysmec/fstat.c (_fstat): Set st_blksize to 4096
12106         so that libio doesn't freak.
12107
12108         * libc/sys/sysmec/sbrk.c (_sbrk): The argument is a size_t, not
12109         int.
12110
12111         * libc/stdlib/mallocr.c (_morecore_r): Use size_t for
12112         memory sizes, not int.
12113
12114 Wed May 14 21:16:58 1997  Bob Manson  <manson@charmed.cygnus.com>
12115
12116         * libm/math/ef_hypot.c: Use long constants where
12117         appropriate.
12118         * libm/math/ef_sqrt.c: Ditto.
12119
12120         * libc/sys/sysmec/times.c(_times): Change to times.
12121
12122         * libc/sys/sysmec/read.c(_read): The third argument is
12123         size_t.
12124         * libc/sys/sysmec/write.c (_write): Ditto.
12125
12126         * libc/sys/sysmec/lseek.c: Include unistd.h for off_t.
12127         (_lseek): It's off_t for the second argument.
12128
12129 Wed May 14 15:23:36 1997  Mike Meissner  <meissner@cygnus.com>
12130
12131         * libc/include/sys/config.h (__IEEE_LITTLE_ENDIAN): Define here,
12132         as well as machine/ieeefp.h.
12133
12134 Thu May  8 15:47:25 1997  Geoffrey Noer  <noer@cygnus.com>
12135
12136         * libc/include/sys/signal.h: add signal protos for winsup
12137         functions (when __CYGWIN32__), include types.h
12138         * libc/include/sys/types.h: Change __go32_types__ internal
12139         define to __MS_types__ since it's used for more than just
12140         GO32 configs.  Define this if GO32, __MSDOS__, or _WIN32 are
12141         defined.
12142         * libc/include/sys/unistd.h: add ftruncate proto for
12143         winsup functions (when __CYGWIN32__)
12144
12145 Fri Apr 25 10:10:16 1997  Doug Evans  <dje@canuck.cygnus.com>
12146
12147         * libc/sys/h8300hms/sbrk.c (stack_ptr): Add definition.
12148
12149 Thu Apr 24 15:46:51 1997  Mike Stump  <mrs@cygnus.com>
12150
12151         * libc/include/machine/setjmp.h: Add tic80 support.
12152         * libc/machine/tic80/setjmp.S: Likewise.
12153
12154 Tue Apr 22 16:54:40 1997  Geoffrey Noer  <noer@pizza.cygnus.com>
12155
12156         * libc/sys/cygwin32/crt0.c: Add reference to main() so we can
12157         link programs from libraries only (such as in the X11
12158         distribution)
12159
12160 Mon Apr 21 15:02:12 1997  Fred Fish  <fnf@cygnus.com>
12161
12162         * libc/sys/arm/syscalls.c (signal): Remove stub, signal()
12163         supplied elsewhere in newlib.
12164
12165 Mon Apr 14 16:25:55 1997  Ian Lance Taylor  <ian@cygnus.com>
12166
12167         * Makefile.in (INSTALL): Change install.sh to install-sh.
12168
12169 Fri Apr 11 17:04:02 1997  Jason Molenda  (crash@godzilla.cygnus.co.jp)
12170
12171         * README: update WWW address for on-line documentation.
12172
12173 Wed Apr  9 00:38:13 1997  Geoffrey Noer  <noer@cygnus.com>
12174
12175         * libc/include/sys/signal.h: for _WIN32, define SIGCONT and
12176         increment NSIG
12177
12178 Mon Apr  7 23:54:00 1997  Jeffrey A Law  (law@cygnus.com)
12179
12180         * libc/sys/sysmec/crt0.S: Update for new calling conventions on the
12181         mn10300.
12182         * libc/sys/sysmec/trap.S: Don't compare a register to itself.
12183
12184 Tue Mar 25 08:47:43 1997  Jeffrey A Law  (law@cygnus.com)
12185
12186         * libc/sys/arm/syscalls.c: Fix/add stack/heap collision detection.
12187         * libc/sys/d10v/syscalls.c: Likewise.
12188         * libc/sys/h8300hms/sbrk.c: Likewise.
12189         * libc/sys/h8500hms/syscalls.c: Likewise.
12190         * libc/sys/m88kbug/syscalls.c: Likewise.
12191         * libc/sys/sh/syscalls.c: Likewise.
12192         * libc/sys/sysmec/sbrk.c: Likewise.
12193         * libc/sys/sysnecv850/sbrk.c: Likewise.
12194         * libc/sys/w65/syscalls.c: Likewise.
12195         * libc/sys.tex: Update sbrk sample code to include stack/heap collision.
12196
12197 Tue Mar 18 14:14:34 1997  Jeffrey A Law  (law@cygnus.com)
12198
12199         * libc/sys/sysmec/trap.S: Use "syscall" to trigger an
12200         emulated syscall instead of "trap".
12201
12202 Fri Mar 14 11:26:13 1997  Michael Meissner  <meissner@cygnus.com>
12203
12204         * libc/sys/d10v/trap.S (__trap0): Use trap 15 for system calls,
12205         not trap 0.
12206
12207 Sun Mar  9 23:27:04 1997  Doug Evans  <dje@seba.cygnus.com>
12208
12209         * configure.in (m32r-*-*): Add -msdata=sdata to target_cflags.
12210
12211 Sat Mar  8 09:05:01 1997  Fred Fish  <fnf@cygnus.com>
12212
12213         * libc/machine/arm/Makefile.in: Fix comment, is for "arm"
12214         not "sh".
12215         * libc/machine/m32r/Makefile.in: Fix comment, is for "m32r"
12216         not "d10v".
12217         * libc/sys/tic80/crt0.c: New file for TIc80.
12218         * libc/sys/tic80/Makefile.in: New file for TIc80.
12219         * libc/machine/tic80/Makefile.in: New file for TIc80.
12220
12221 Wed Mar  5 11:32:12 1997  J.T. Conklin  <jtc@cygnus.com>
12222
12223         * libc/machine/sh/memcpy.S: New file.
12224         * libc/machine/sh/memset.S: New file.
12225         * libc/machine/sh/Makefile.in (OFILES): Add memcpy.o and memset.o
12226
12227 Thu Feb 27 16:27:55 1997  Fred Fish  <fnf@cygnus.com>
12228
12229         * libc/include/machine/ieeefp.h (_IEEE_LITTLE_ENDIAN): Define
12230         for TIc80.
12231
12232 Wed Feb 26 13:43:39 1997  Jeffrey A Law  (law@cygnus.com)
12233
12234         * libc/sys/sysmec/crt0.S: Handle new calling conventions for
12235         the mn10200.
12236
12237 Wed Feb 26 07:11:03 1997  Michael Meissner  <meissner@cygnus.com>
12238
12239         * libc/machine/powerpc/setjmp.S (longjmp): Correct return status
12240         (patch from andrew@pogo.WV.TEK.COM).
12241
12242 Fri Feb 14 11:49:28 1997  Doug Evans  <dje@canuck.cygnus.com>
12243
12244         * libc/machine/m32r/setjmp.S (setjmp): Save r12.
12245         (longjmp): Restore r12. Fix code that handles returning 1 if passed 0.
12246
12247 Mon Feb 10 10:02:34 1997  Fred Fish  <fnf@cygnus.com>
12248
12249         * configure.in:  Add cases for "tic80" to set machine_dir,
12250         sys_dir, and syscall_dir.
12251
12252 Sun Feb  2 17:57:15 1997  Geoffrey Noer  <noer@cygnus.com>
12253
12254         * libc/sys/cygwin32/crt0.c: initialize floating pt registers
12255
12256 Wed Jan 29 15:57:38 1997  Geoffrey Noer  <noer@cygnus.com>
12257
12258         * libc/include/math.h: avoid conflicts with ANSI C++ <exception>
12259
12260 Mon Jan 27 12:50:01 1997  Doug Evans  <dje@seba.cygnus.com>
12261
12262         * libc/machine/m32r/setjmp.S: Use proper comment delimiter.
12263         Use proper constant prefix.
12264
12265 Fri Jan 24 10:59:04 1997  Jeffrey A Law  (law@cygnus.com)
12266
12267         * libc/sys/sysmec/*.c: Don't cast args to syscall to integers,
12268         that loses on the mn10200 where ints and pointers are different
12269         sizes.
12270
12271 Tue Jan 14 13:29:55 PST 1997  Jeremy Allison <jra@cygnus.com>
12272
12273         * configure.in: Added -DSIGNAL_PROVIDED to cygwin32
12274         target as signal is provided in winsup.
12275
12276 Tue Jan 14 11:10:13 1997  Jeremy Allison <jra@cygnus.com>
12277
12278         * libc/include/sys/process.h: Corrected const definitions
12279         in spawn functions. Added cwait.
12280
12281 Thu Jan  2 12:22:41 1997  Jeffrey A Law  (law@cygnus.com)
12282
12283         * libc/include/machine/ieeefp.h: mn10200 uses 16bit ints and 32bit
12284         doubles.
12285         * libc/include/sys/config.h: Similarly.
12286
12287 Tue Dec 31 18:36:14 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
12288
12289         * configure.in (sparc-sun-sunos*): Add -DSIGNAL_PROVIDED to the
12290         target_cflags.
12291         (i[3456]86-*-sco*): Ditto.
12292
12293         * libc/signal/Makefile.in (OFILES): Add signal.o.
12294         (CFILES): Add signal.c.
12295
12296         * libc/signal/raise.c (_raise_r): Only compile code if
12297         SIGNAL_PROVIDED is defined.
12298
12299         * libc/signal/signal.c: Redo whole file so that it works with
12300         current newlib.  Use _kill_r if no signal handler provided.
12301
12302         * libc/sys/{go32,sparc64,sysmec}/Makefile.in: Delete raise and
12303         signal stubs.
12304         * libc/sys/sysvnecv70/Makefile.in: Ditto.
12305         * libc/sys/sysnecv850/Makefile.in: Ditto.
12306
12307         * libc/sys/{go32,sparc64}/signal.c: Delete, stub no longer used.
12308         * libc/sys/sysmec/{raise,signal}.c: Ditto.
12309         * libc/sys/sysvnecv70/signal.s: Ditto.
12310         * libc/sys/sysnecv850/raise.c: Ditto.
12311
12312         * libc/sys/sysnecv850/kill.c (_kill): Encode signal # so that
12313         simulator and debugger can tell the difference between a signal
12314         being raised and an exit system call.
12315
12316         * NEWS: Document software signals being provided.
12317
12318 Mon Dec 23 11:54:19 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
12319
12320         * libc/reent/impure.c (_REENT_ATTR): Delete in favor of
12321         __ATTRIBUTE_IMPURE_PTR__.  Move PowerPC definition to
12322         include/sys/config.h.
12323         (impure_data): Use __ATTRIBUTE_IMPURE_DATA__ for attributes.
12324         Change from 'inpure_data'.
12325         (_impure_ptr): Use __ATTRIBUTE_IMPURE_PTR__ for attributes.  Use
12326         &impure_data, not &inpure_data.
12327
12328         * libc/include/sys/config.h (__ATTRIBUTE_IMPURE_PTR__): If PowerPC
12329         and and System V ABI, define so that _impure_ptr lives in the
12330         .sdata section.
12331
12332 Sun Dec 22 23:33:05 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
12333
12334         * libc/include/sys/reent.h (__ATTRIBUTE_IMPURE_PTR__): Define as
12335         nothing if not defined.
12336         (_impure_ptr): Use __ATTRIBUTRE_IMPURE_PTR__, so a machine can set
12337         its attributes.
12338
12339         * libc/include/sys/config.h (__ATTRIBUTE_IMPURE_PTR__): 
12340
12341 Wed Dec 18 10:12:04 1996  Jeffrey A Law  (law@cygnus.com)
12342
12343         * libc/sys/sysmec/crt0.S: Fix mn10200 stuff.
12344         * libc/sys/sysmec/trap.s: Handle mn10200 too.
12345         * libc/machine/mn10200/setjmp.S: Fix mn10200 stuff.
12346
12347 Mon Dec 16 10:05:36 1996  Jeffrey A Law  (law@cygnus.com)
12348
12349         * libc/sys/sysmec/crt0.S: Handle mn10200 too.
12350
12351 Fri Dec 13 11:05:20 1996  Jeremy Allison <jra@cygnus.com>
12352
12353         * libc/include/sys/errno.h: Added net errno's.
12354
12355 Wed Dec 11 16:24:25 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
12356
12357         * libc/misc/ffs.c: New file to support ffs function for GCC test
12358         gcc.c-torture/execute/960909-1.c.
12359
12360         * libc/misc/Makefile.in ({O,CHEWOUT_}FILES): Add ffs.
12361
12362 Sat Dec  7 10:12:37 1996  Jeffrey A Law  (law@cygnus.com)
12363
12364         * libc/sys/sysmec/crt0.S: Handle underscore prefix.
12365         * libc/sys/sysmec/trap.S: Likewise.
12366
12367 Fri Dec  6 15:08:49 1996  Jim Wilson  <wilson@cygnus.com>
12368
12369         * configure.in (mips*vr4300*-*-*): Delete use of sys/vr4300.
12370         * libc/sys/vr4300/{Makefile.in,crt0.S,syscalls.c}: Delete.
12371
12372 Wed Dec  4 16:25:27 1996  Jeffrey A Law  (law@cygnus.com)
12373
12374         * libc/sys/sysmec/signal.c: Dummy file.
12375         * libc/sys/sysmec/Makefile.in: Build it.
12376
12377 Wed Nov 27 13:10:18 1996  Ian Lance Taylor  <ian@cygnus.com>
12378
12379         * libc/machine/mips/machine/regdef.h: Define pc as $pc for
12380         mips16.
12381
12382 Mon Nov 25 09:58:28 1996  Jeffrey A Law  (law@cygnus.com)
12383
12384         * libc/sys/sysmec/{crt0.S,trap0.S}: Actually try to implement
12385         c-startup and simulator traps.
12386
12387
12388         * libc/sys/sysmec/crt0.S: Remove bogus '_' symbol prefixing
12389         * libc/sys/sysmec/trap0.S: Likewise.
12390
12391 Sat Nov 23 09:01:03 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
12392
12393         * libc/stdlib/mallocr.c (ROUND_TO): If SMALL_MEMORY, set to 0x7 to
12394         round to double word alignment.
12395         (_morecore_r): Combine rounding up pointers to both ROUND_TO and 8
12396         byte alignment.
12397
12398         * libc/include/sys/config.h (__IEEE_BIG_ENDIAN): Define if d10v.
12399
12400         * libc/sys/d10v/syscalls.c (_sbrk): Add better checks for running
12401         out of memory.
12402
12403 Mon Nov 18 13:08:26 1996  Jeffrey A Law  (law@cygnus.com)
12404
12405         * configure.in: Handle mn10200 and mn10300.
12406         * libc/include/machine/{ieeefp.h,setjmp.h}: Likewise.
12407         * libc/include/sys/config.h: Likewise.
12408         * libc/sys/sysmec: New directory for mec stuff.
12409         * libc/machine/mn10300: New directory for mn10300 stuff.
12410         * libc/machine/mn10200: Similarly for mn10200 stuff.
12411
12412 Fri Nov 15 16:41:41 1996  Doug Evans  <dje@canuck.cygnus.com>
12413
12414         * libc/sys/arm/crt0.S: Use .text, not .section .text.
12415         * libc/sys/arm/syscalls.c: Rewrite to set errno properly.
12416
12417         * libc/include/sys/types.h (_ST_INT32): New macro, local to file.
12418         (nlink_t): Change type from unsigned int to unsigned short.
12419         (mode_t): Ensure size is 32 bits even if int is 16.
12420         * libc/include/sys/stat.h (st_nlink): Change type to nlink_t.
12421         (st_spare[123]): Change type from int to long.
12422
12423 Fri Nov 15 11:41:50 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
12424
12425         * libc/sys/d10v/syscalls.c (_sbrk): Align initial heap_end to 8
12426         byte boundary.
12427
12428         * configure.in (d10v*): Define SMALL_MEMORY.
12429
12430 Mon Nov 11 10:30:44 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
12431
12432         * configure.in (powerpc*-{eabi,elf,linux,rtem,sysv,solaris}*): Add
12433         -mrelocatable-lib and -mno-eabi flags.
12434
12435 Mon Nov 11 09:01:39 1996  Jeffrey A Law  (law@cygnus.com)
12436
12437         * libc/machine/h8300/memcpy.S: Fix comments to reflect reality.
12438         Fix handling of mis-aligned source operand when both the
12439         destination & length are properly aligned.
12440         
12441 Wed Oct 30 09:41:11 1996  Jeffrey A Law  (law@cygnus.com)
12442
12443         * libc/sys/sysnecv850/Makefile.in (OFILES): Add
12444         times.o, time.o and gettime.o
12445         * libc/sys/sysnecv850/{time.c, times.c, gettime.c}: New files.
12446         * libc/sys/sysnecv850/sys/syscall.h: Add SYS_times and
12447         SYS_gettimeofday.
12448
12449 Tue Oct 29 13:40:09 1996  Jeffrey A Law  (law@cygnus.com)
12450
12451         * libc/sys/sysnecv850/Makefile.in (OFILES): Add access.o
12452         * libc/sys/sysnecv850/access.c: New file.
12453
12454 Mon Oct 21 19:47:02 1996  Ian Lance Taylor  <ian@cygnus.com>
12455
12456         * libc/sys/vr4300/Makefile.in (clean): Remove $(OFILES).
12457
12458         * libc/stdlib/mprec.h (word0, word1): Use __uint32_t, not unsigned
12459         long.
12460
12461 Mon Oct 21 14:43:07 1996  Jeffrey A Law  (law@cygnus.com)
12462
12463         * libc/sys/sysnecv850/crt0.S: Initialize ep and gp registers.
12464
12465 Thu Oct 17 11:47:16 1996  Doug Evans  <dje@seba.cygnus.com>
12466
12467         * libc/include/machine/{ieeefp.h,setjmp.h}: Add m32r support.
12468         * libc/include/sys/config.h: Add m32r support.
12469
12470 Wed Oct 16 23:08:05 1996  Jeffrey A Law  (law@cygnus.com)
12471
12472         * libc/sys/sysnecv850/v850.ld: Remove.  It doesn't belong
12473         here.
12474
12475 Wed Oct 16 21:18:07 1996  Mark Alexander  <marka@cygnus.com>
12476
12477         * libc/include/machine/setjmp.h: Add D10v support.
12478
12479 Tue Oct 15 22:28:26 1996  Jeffrey A Law  (law@cygnus.com)
12480
12481         * configure.in: Configure the "libc/syscalls" directory for
12482         the v850.
12483
12484         * libc/sys/sysnecv850/{close.c, execve.c, fork.c}: Add missing '_'.
12485         * libc/sys/sysnecv850/{fstat.c, getpid.c, kill.c}: Likewise.
12486         * libc/sys/sysnecv850/{lseek.c, open.c, read.c}: Likewise.
12487         * libc/sys/sysnecv850/{sbrk.c, stat.c, unlink.c}: Likewise.
12488         * libc/sys/sysnecv850/{wait.c, write.c}: Likewise.
12489
12490 Tue Oct 15 16:24:39 1996  Stu Grossman  (grossman@critters.cygnus.com)
12491
12492         * libc/sys/sysnecv850/crt0.S (start):  Allocate spill space on
12493         stack for args for main and other routines.  Zero out args for
12494         main.
12495
12496         * libc/sys/sysnecv850/v850.ld:  New.  Linker script to layout memory
12497         correctly.
12498
12499 Tue Oct 15 11:51:42 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
12500
12501         * libc/stdio/findfp.c (std): Remove extraneous ';' after
12502         function.
12503
12504         * libc/sys/d10v/sys/syscall.h (SYS_kill): Add.
12505
12506         * libc/sys/d10v/{syscalls.c,trap.S} (_kill,_getpid): Make these
12507         real system calls now.
12508
12509         * libc/stdio/setvbuf (setvbuf): Cast pointers to _POINTER_INT
12510         before casting them to int.
12511         * libc/stdio/tmpnam.c (_tempnam_r): Ditto.
12512
12513         * libc/stdlib/mallocr.c (_morecore_r): Use _POINTER_INT when
12514         aligning pointer.
12515         * libc/string/memset.c (memset): Ditto.
12516         
12517         * libc/stdio/vfscanf.c (__svfscanf): When converting to pointer,
12518         first convert ints to _POINTER_INT to eliminate GCC warning.
12519
12520         * libc/stdio/vfprintf.c (_vfprintf_r): Use _POINTER_INT when
12521         processing %p.
12522
12523         * libm/math/ef_scalb.c (__ieee754_scalbf): Cut down range to 32000
12524         from 65000 if ints are only 16 bits.
12525
12526         * libm/math/sf_scalbn.c (scalbnf): Cut down overflow test to 30000
12527         from 50000 if ints are only 16 bits.
12528
12529         * libc/include/sys/config.h (_POINTER_INT): New macro, to give an
12530         int type that is the same size as a pointer.
12531
12532         * libc/misc/dprintf.c (__dprintf): Use _POINTER_INT when
12533         processing %p.
12534         (get_number): Explicitly cast number to long before shifting by 16
12535         or 24, in case ints are short.
12536
12537         * libc/include/sys/config.h (_POINTER_INT): Define as short.
12538
12539 Wed Oct  9 16:54:32 1996  Jeremy Allison <jra@cygnus.com>
12540
12541         * libc/string.h: Added ffs, removed swab.
12542         * libc/sys/errno.h: Added EOPNOTSUPP.
12543         * libc/sys/unistd.h: Added swab.
12544
12545 Thu Oct  3 17:08:50 1996  Jeremy Allison <jra@cygnus.com>
12546
12547         * libc/include/sys/stat.h: Added fchmod.
12548         * libc/include/sys/unistd.h: Added fsync.
12549
12550 Tue Oct  1 17:34:08 1996  Jeremy Allison <jra@cygnus.com>
12551
12552         * libc/include/sys/errno.h: Added defines for EPFNOSUPPORT (96)
12553         and ECONNRESET (104) for cygwin32.
12554
12555 Tue Oct  1 16:24:05 1996  Gavin Koch  <gavin@cygnus.com>
12556
12557         * libc/sys/sysnecv850/_exit.c: added _do_dtors to
12558         do the static destructors.
12559         
12560 Mon Sep 30 15:59:05 1996  Stu Grossman  (grossman@critters.cygnus.com)
12561
12562         * libc/sys/sysnecv850/trap.S:  Change I/O to use trap 31.
12563
12564 Mon Sep 30 12:02:50 1996  Doug Evans  <dje@canuck.cygnus.com>
12565
12566         * libc/machine/m32r/{Makefile.in,setjmp.S}: New files.
12567         * configure.in: Recognize m32r-*-*.
12568
12569 Mon Sep 30 00:34:41 1996  James G. Smith  <jsmith@cygnus.co.uk>
12570
12571         * libc/sys/arm/trap.S (__rt_stkovf_split_big,
12572         __rt_stkovf_split_small): Added default software stack overflow
12573         handlers, which just call SWI_Exit.
12574         * libc/sys/arm/crt0.S (_mainCRTStartup): Simple software stack
12575         limit initialisation.
12576
12577 Fri Sep 27 13:08:03 1996  Mark Alexander  <marka@cygnus.com>
12578
12579         * libc/sys/d10v/{trap.S,sys/syscall.h}: Add time() function.
12580
12581 Fri Sep 27 12:32:00 1996  Jeremy Allison <jra@cygnus.com>
12582
12583         * libc/include/sys/types.h: Added ssize_t definition.
12584         
12585 Wed Sep 25 14:52:18 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
12586
12587         * libc/machine/d10v/setjmp.S: Use ';' for comments.
12588         * libc/sys/d10v/{crt0.S,trap.S}: Ditto.
12589
12590         * libc/machine/d10v/setjmp.S (longjmp): Use exef0t || instead of
12591         branch around a single ldi instruction.
12592
12593         * libc/sys/d10v/crt0.S (_start): Use auto-increment to zero bss.
12594         Call exit, instead of just issuing a stop instruction.
12595
12596 Sun Sep 22 17:26:55 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
12597
12598         * libc/sys/d10v/{trap.S,syscalls.c}: Add -mint32 support.
12599
12600 Fri Sep 20 13:23:12 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
12601
12602         * libc/stdlib/mprec.h: Explicitly declare all large constants as
12603         longs, and then cast them to __uint32_t.
12604
12605         * libc/include/sys/config.h: Protect against multiple inclusions.
12606
12607 Tue Sep 17 13:10:33 1996  Mark Alexander  <marka@cygnus.com>
12608
12609         * configure.in (d10v*): Set syscall_dir.
12610
12611 Sun Sep 15 10:41:59 1996  Mark Alexander  <marka@cygnus.com>
12612
12613         * libc/sys/d10v/crt0.S: Set stack pointer.
12614
12615 Thu Sep 12 13:02:38 1996  Mark Alexander  <marka@cygnus.com>
12616
12617         * libc/sys/d10v/{trap.S, syscalls.c}: Rewrite most system calls
12618         in assembly for efficiency.  Change calling convention to allow
12619         long ints to be returned.
12620
12621 Wed Sep 11 10:28:18 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
12622
12623         * libc/machine/v850/Makefile.in (setjmp.o): Fix dependency.
12624
12625 Thu Sep  5 19:23:06 1996  Doug Evans  <dje@canuck.cygnus.com>
12626
12627         * libc/posix/execvp.c (execvp): Don't search PATH if file has '/'.
12628         Handle empty entries in $PATH.
12629
12630 Tue Sep 03 18:15:02 1996  Mark Alexander  <marka@cygnus.com>
12631
12632         * libc/machine/d10v/setjmp.S: Make it really work.
12633
12634 Tue Sep  3 12:16:26 1996  Ian Lance Taylor  <ian@cygnus.com>
12635
12636         * libc/sys/sh/crt0.S: If __ELF__, use ELF section attributes for
12637         the .stack section.
12638
12639 Tue Sep  3 10:08:45 1996  Jeffrey A Law  (law@cygnus.com)
12640
12641         * sys/sysnecv850/sys/file.h: Remove.
12642         * sys/sysnecv850/sys/syscall.h: New file.
12643         * sys/sysnecv850/{misc.c,syscalls.c,malloc.c}: Deleted.
12644         * sys/sysnecv850/{chmod.c, chown.c, close.c, creat.c} New files.
12645         * sys/sysnecv850/{execv.c, execve.c, fork.c, fstat.c} New files.
12646         * sys/sysnecv850/{getpid.c, isatty.c, kill.c, lseek.c} New files.
12647         * sys/sysnecv850/{open.c, pipe.c, raise.c, read.c} New files.
12648         * sys/sysnecv850/{stat.c, unlink.c, utime.c, wait.c} New files.
12649         * sys/sysnec850/trap.S: New file.
12650         * sys/sysnecv850/{_exit.c, write.c}: Use new TRAP0 mechanism for
12651         syscalls.
12652         * sys/sysnecv850/crt0.S: Use cmp/bl, not tst/bz.
12653         * sys/sysnec850/sbrk.c: New version.
12654
12655 Sun Sep  1 20:08:27 1996  Jeffrey A Law  (law@cygnus.com)
12656
12657         * sys/sysnecv850/crt0.S: Fix order of comparison args.  Loop
12658         as long as r6 is less than r7.
12659
12660 Sun Sep  1 13:54:19 1996  Ian Lance Taylor  <ian@cygnus.com>
12661
12662         * Makefile.in (mostlyclean): Separate from clean target.  Don't
12663         remove *.a or targ-include.
12664         * libc/machine/sparc/Makefile.in (mostlyclean): New target.
12665
12666 Sun Sep  1 11:35:26 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
12667
12668         * libc/include/machine/ieeefp.h (_DOUBLE_IS_32BITS): Define for
12669         d10v.
12670         (__SMALL_BITFIELDS): Ditto.
12671
12672         * libc/include/sys/config.h (_DOUBLE_IS_32BITS): Define for d10v.
12673
12674 Sat Aug 31 16:42:36 1996  Jeffrey A Law  (law@cygnus.com)
12675
12676         * libc/sys/sysnecv850/misc.c (raise, getpid, kill): Remove '_'
12677         prefix.
12678
12679         * libc/sys/sysnecv850/sbrk.c (sbrk): Remove '_' prefix.
12680         * libc/sys/sysnecv850/syscalls.c (read, lseek, close): Likewise.
12681         * libc/sys/sysnecv850/syscalls.c (fstat, open, close): Likewise.
12682         * libc/sys/sysnecv850/write.c (write): Likewise.
12683
12684         * libc/sys/sysnecv850/crt0.S: Don't try to zero out an empty
12685         .bss.
12686
12687 Fri Aug 30 11:18:45 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
12688
12689         * libc/include/sys/config.h: Define INT_MAX, UINT_MAX
12690         appropriately for D10V, depending on -mint16/-mint32.
12691
12692 Thu Aug 29 16:09:37 1996  Mark Alexander  <marka@cygnus.com>
12693
12694         * configure.in: Add cases for D10V.
12695
12696 Thu Aug 29 17:03:23 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
12697
12698         * configure.in (i[345]86-*-*): Recognize i686 for pentium pro.
12699
12700 Wed Aug 28 21:05:52 1996  Jeffrey A Law  (law@cygnus.com)
12701
12702         * libc/include/machine/ieeefp.h: Fix typo.
12703
12704 Wed Aug 28 19:47:55 1996  Mark Alexander  <marka@cygnus.com>
12705
12706         * libc/sys/d10v: New directory for D10V stuff.
12707         * libc/include/machine/ieeefp.h: Add D10V defines.
12708
12709 Mon Aug 26 13:34:58 1996  Doug Evans  <dje@canuck.cygnus.com>
12710
12711         * libc/include/sys/errno.h: Add winsup/include/sys/errno.h values:
12712         ELOOP, ENOBUFS, EAFNOSUPPORT, EPROTOTYPE, ENOTSOCK, ENOPROTOOPT,
12713         ESHUTDOWN, ECONNREFUSED, EADDRINUSE, ECONNABORTED, EWOULDBLOCK.
12714         * libc/string/strerror.c (strerror): Add them.
12715
12716 Thu Aug 22 16:38:19 1996  Jeffrey A Law  (law@cygnus.com)
12717
12718         * libc/sys/sysnecv850: New directory for v850 stuff.
12719
12720         * libc/machine/v850: New directory for v850 stuff.
12721         * libc/machine/v850/setjmp.S: setjmp/longjmp support.
12722
12723         * configure.in: Add support for the v850.
12724
12725         * libc/include/machine/ieeefp.h: Add v850 defines.
12726         * libc/include/machine/setjmp.h: Likewise.
12727         * libc/include/sys/config.h: Add v850 defines.
12728
12729 Sat Aug 17 04:06:36 1996  Geoffrey Noer  <noer@cygnus.com>
12730
12731         * libc/include/machine/ieeefp.h
12732         * libc/include/machine/setjmp.h
12733         * libc/include/sys/fcntl.h
12734         * libc/include/sys/signal.h
12735         * libc/include/sys/types.h
12736         * libc/stdlib/system.c:
12737         Fix preprocessor defines to match new scheme (_WIN32 for WIN32
12738         API availability, __CYGWIN32__ for cygwin32 environment specific).
12739
12740 Thu Aug 15 17:09:21 1996  Geoffrey Noer  <noer@cygnus.com>
12741
12742         * libc/include/stdlib.h: add multibyte character functions.  Add
12743         __eprintf for assert.
12744
12745 Thu Aug 15 11:15:40 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
12746
12747         * libc/stdlib/malloc.h (MALLOC_ALIGNMENT): Use either pointer
12748         arithmetic or __alignof__ to properly get the alignment, instead
12749         of hardwiring it to 4.
12750
12751 Wed Aug 14 23:43:28 1996  Geoffrey Noer  <noer@cygnus.com>
12752
12753         * libc/stdio/fseek.c: add fflush call to adjust seek offset
12754         on append stream (fix from NetBSD sources), adjust curoff offset
12755         for ungetc's benefit.
12756         * libc/stdio/ftell.c: adjust curoff offset for ungetc's benefit.
12757         * libc/stdio/rewind.c: replace code with up to date NetBSD
12758         code to undo hacks made to work around above problem of not
12759         having fflush call mentioned above
12760
12761 Fri Aug  2 18:28:07 1996  J.T. Conklin  <jtc@rtl.cygnus.com>
12762
12763         * libc/reent/{closer.c, execr.c, fstatr.c, linkr.c, lseekr.c,
12764         openr.c, readr.c, sbrkr.c, signalr.c, statr.c, timer.c, writer.c}:
12765         Partially revert last changes.  The thread specific errno is set
12766         iff if the underlying syscall fails and the global errno is not
12767         zero.
12768
12769 Fri Jul 19 11:41:52 1996  J.T. Conklin  <jtc@rtl.cygnus.com>
12770
12771         * libc/reent/filer.c: Removed files, all functions have split out
12772         into their own files.
12773         * libc/reent/{closer.c, lseekr.c, openr.c, readr.c, writer.c}: 
12774         New files containing functions formally in filer.c
12775         * libc/reent/Makefile.in: Updated for above change.
12776
12777         * libc/reent/execr.c (_fork_r, _wait_r): Set errno if underlying
12778         syscall fails, not if errno is changed.
12779         * libc/reent/filer.c (_open_r, _close_r, _lseek_r, _read_r, 
12780         _write_r): Likewise.
12781         * libc/reent/fstatr.c (_fstat_r): Likewise.
12782         * libc/reent/linkr.c (_link_r, _unlink_r): Likewise.
12783         * libc/reent/sbrkr.c (_sbrk_r): Likewise.
12784         * libc/reent/signalr.c (_kill_r): Likewise.
12785         * libc/reent/statr.c (_stat_r): Likewise.
12786         * libc/reent/timer.c (_gettimeofday_r): Likewise.
12787
12788         * libc/reent/{execr.c, filer.c, fstatr.c, linkr.c, sbrkr.c,
12789         signalr.c, statr.c, timer.c} (errno): declare extern rather
12790         than as a common.
12791
12792         * libc/stdio/vfprintf.c (__sbprintf): Use the VFPRINTF macro
12793         instead of calling vfprintf so that i*printf will not require
12794         floating point support code.
12795         
12796 Mon Jul 15 16:50:59 1996  Doug Evans  <dje@canuck.cygnus.com>
12797
12798         * libc/posix/execvp.c (execvp): Use posix_path_list_p to determine
12799         path delimiter.
12800         * libc/include/sys/unistd.h (_SC_PATH_RULES): Delete.
12801         (_PATH_RULES_{UNKNOWN,WIN32,POSIX}): Delete.
12802
12803 Thu Jul 11 14:34:14 1996  Geoffrey Noer  <noer@cygnus.com>
12804
12805         * libc/include/signal.h: _sig_func_ptr function takes an int
12806         * libc/include/sys/signal.h: sa_handler function takes an int
12807
12808 Tue Jul  9 21:22:32 1996  Jeffrey A Law  (law@cygnus.com)
12809
12810         * libc/include/machine/ieeefp.h: Simplify H8/S support.
12811         * libc/include/sys/config.h: Add missing H8/S conditional.
12812
12813 Sun Jun 30 12:05:46 1996  Doug Evans  <dje@canuck.cygnus.com>
12814
12815         * libc/include/sys/unistd.h (MAXPATHLEN): Add cygwin32 value.
12816
12817 Wed Jun 26 09:57:54 1996  Jeffrey A Law  (law@cygnus.com)
12818
12819         * libc/include/machine/setjmp.h: Handle H8/S.
12820         * libc/include/machine/ieeefp.h: Likewise.
12821         * libc/include/sys/config.h: Likewise.
12822         * libc/machine/h8300/{defines.h, memcpy.S, memset.S}: Likewise.
12823         * libc/machine/h8300/{reg_memcpy.S, reg_memset.S}: Likewise.
12824         * libc/machine/h8300/{strcmp.S, setjmp.S}: Likewise.
12825         * libc/sys/h8300hms/crt0.S: Likewise.
12826
12827 Tue Jun 25 23:15:45 1996  Jason Molenda  (crash@godzilla.cygnus.co.jp)
12828
12829         * Makefile.in (datadir): Set to $(prefix)/share.
12830         (oldincludedir, docdir): Removed.
12831         * doc/Makefile.in (datadir): Set to $(prefix)/share.
12832         (oldincludedir, docdir): Removed.
12833         * libc/Makefile.in (datadir): Set to $(prefix)/share.
12834         (oldincludedir, docdir): Removed.
12835         * libm/Makefile.in (datadir): Set to $(prefix)/share.
12836         (oldincludedir, docdir): Removed.
12837
12838 Fri Jun 21 19:24:41 1996  Ian Lance Taylor  <ian@cygnus.com>
12839
12840         * libc/include/sys/reent.h (_REENT_INIT): Update for change to
12841         _reent struct.
12842
12843 Wed Jun 19 14:00:09 1996  Doug Evans  <dje@canuck.cygnus.com>
12844
12845         * libc/posix/execvp.c: Delete _WIN32 support.  For __CYGWIN32__
12846         fetch current path rules with sysconf and handler posix/win32
12847         appropriately.
12848
12849         * libc/include/sys/unistd.h (_PATH_RULES{,_POSIX,_WIN32}): Define.
12850
12851         * libc/include/process.h: Prepend '_' to P_{WAIT,NOWAIT,OVERLAY}.
12852         (WAIT_CHILD): Always define.
12853
12854 Sat Jun 15 17:50:42 1996  Ian Lance Taylor  <ian@cygnus.com>
12855
12856         * libc/stdlib/eprintf.c: New file.
12857         * libc/stdlib/Makefile.in (OFILES): Add eprintf.o.
12858         (eprintf.o): New target.
12859
12860 Thu Jun 13 16:44:32 1996  Doug Evans  <dje@canuck.cygnus.com>
12861
12862         * libc/sys/cygwin32/crt0.c (__cygwin_crt0_bp): New global.
12863         (mainCRTStartup): Do int3 if __cygwin_crt0_bp non-zero.
12864
12865 Thu Jun 13 17:45:17 1996  Mike Meissner  <meissner@rtl.cygnus.com>
12866
12867         * libc/include/machine/ieeefp.h: Add support for AIX and Windows
12868         NT in PowerPC endianess cases.
12869
12870 Tue Jun 11 12:26:28 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
12871
12872         * libc/include/machine/ieeefp.h: Clean up PowerPC endianess.
12873
12874 Thu Jun  6 11:34:20 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
12875
12876         * libc/string/strtok.c: Fix doc typo.
12877
12878 Mon Jun  3 11:30:00 1996  J.T. Conklin  <jtc@rtl.cygnus.com>
12879
12880         * libc/include/sys/reent.h (struct _reent): Removed _asctime,
12881         _next, _scanpoint, _signgam fields.
12882
12883         * libc/include/stdlib.h (rand_r): Added new declaration.
12884         (_rand_r, _srand_r): Removed declarations.
12885         * libc/stdlib/rand.c (_rand_r, _srand_r): Removed, these functions
12886         have been made obsolete by rand_r.
12887         * libc/stdlib/rand_r.c: New file, rand_r function as specified
12888         by POSIX.1c.
12889         
12890         * libc/string/strtok.c: Update documentation to describe
12891         strtok_r().
12892
12893 Sat Jun  1 23:50:39 1996  Michael Meissner  <meissner@cygnus.com>
12894
12895         * libc/include/sys/stat.h (stat structure): Use the expanded stat
12896         structure on Solaris, and PowerPC systems even though __svr4__ is
12897         defined.
12898
12899 Tue May 28 13:02:42 1996  Doug Evans  <dje@canuck.cygnus.com>
12900
12901         * libc/sys/go32/sys/errno.h (ENOSYS,ESPIPE): Keep values <= 255.
12902
12903 Fri May 17 10:34:44 1996  Ian Lance Taylor  <ian@cygnus.com>
12904
12905         * host/any: Use ../.. rather than .. to get to the main build
12906         directory.  This matches the current layout of the build
12907         directory.
12908
12909 Wed May 15 15:52:27 1996  Jeffrey A Law  (law@cygnus.com)
12910
12911         * libc/machine/h8300/__main.S: Delete.  No longer needed.
12912         * libc/machine/h8300/Makefile.in: Corresponding changes.
12913         * libc/sys/h8300hms/crt1.c: New file.
12914         * libc/sys/h8300hms/Makefile.in: Corresponding changes.
12915         * libc/sys/h8300hms/crt0.s: Call __main.
12916
12917         * libc/sys/h8300hms/crt0.S: Use temporary label names
12918         for branch targets.
12919
12920 Mon May 13 14:26:30 1996  Doug Evans  <dje@canuck.cygnus.com>
12921
12922         * libc/stdio/fopen.c (_fopen_r): Fix arguments to fseek.
12923
12924 Fri May  3 16:38:23 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
12925
12926         * libc/reent/impure.c (_impure_ptr): Force the impure pointer into
12927         .sdata on the PowerPC so that we can link newlib with code
12928         compiled with -msdata.
12929
12930 Mon Apr 29 21:38:02 1996  Doug Evans  <dje@canuck.cygnus.com>
12931
12932         * libc/sys/arm/syscalls.c (_sbrk): Rename end to __end__.
12933
12934 Thu Apr 25 06:38:59 1996  Michael Meissner  <meissner@cygnus.com>
12935
12936         * libc/sys/cygwin32/crt0.c (mainCRTStartup): On PowerPC, set the
12937         exception handler to __cygwin_exception_handler.
12938
12939 Tue Apr 23 15:14:20 1996  Ian Lance Taylor  <ian@cygnus.com>
12940
12941         * libc/include/machine/setjmp.h: Check _AM29K, not ___AM29K__.
12942
12943 Sun Apr 21 12:11:51 1996  Doug Evans  <dje@blues.cygnus.com>
12944
12945         * libm/math/Makefile.in ({w,wf}_cabs.o,{w,wf}_drem.o): Add rule for
12946         SunOS VPATH.
12947         * libc/stdlib/Makefile.in (atoff.o,atol.o,mblen.o,mbstowcs.o,
12948         wcstombs.o): Likewise.
12949
12950 Thu Apr 18 12:37:01 1996  Doug Evans  <dje@canuck.cygnus.com>
12951
12952         * libc/stdlib/environ.c (initial_env): New static local.
12953         (environ): Point to `initial_env'.
12954
12955         * libc/include/machine/setjmp.h: Clean up.
12956         (__H8300H__,__PPC__): Define _JBTYPE.
12957         (__arm__): Provide entry for.
12958         (sigjmp_buf): Delete.
12959         (jmp_buf): Use _JBTYPE if defined, otherwise int.
12960
12961 Thu Apr 18 12:10:52 1996  Jeffrey A Law  (law@cygnus.com)
12962
12963         * libc/machine/h8300/strcmp.S: Sign extend the result to
12964         32bits so we don't lose with -mint32.
12965
12966 Sun Apr 14 19:59:52 1996  Doug Evans  <dje@canuck.cygnus.com>
12967
12968         * libc/sys/go32/sys/errno.h: New file.
12969         * libc/sys/go32/Makefile.in (stat.o): Depend on stat.c.
12970         * libc/sys/go32/gerrno.s (syscall_error): Call __errno to get
12971         errno's address (make compatible with rest of newlib).
12972         * libc/sys/go32/stat.c (fixinode): Set errno upon failure.
12973         * libc/string/strerror.c (strerror): Surround each case with #ifdef.
12974
12975 Thu Mar 28 13:44:42 1996  Doug Evans  <dje@canuck.cygnus.com>
12976
12977         * libc/machine/sparc/{scan.c,shuffle.c}: New files.
12978         * libc/machine/sparc/Makefile.in: Build them.
12979         * libc/machine/sparc/machine/sparclet.h: New file.
12980
12981 Mon Mar 25 15:29:14 1996  J.T. Conklin  <jtc@rtl.cygnus.com>
12982
12983         * libc/machine/sh/asm.h: New file.
12984         * libc/machine/sh/setjmp.S: Only save clobbered registers.  Added
12985         support for SH3e's FP registers.  Use asm.h.
12986
12987 Mon Mar 25 11:59:23 1996  Jeffrey A Law  (law@cygnus.com)
12988
12989         * libc/stdio/vfprintf.c (cvt): Accept a reent structure
12990         as first argument.  Call _dtoa_r and pass the reent structure
12991         instead of calling __dtoa.
12992
12993 Fri Mar 22 13:59:37 1996  Jeffrey A Law  (law@cygnus.com)
12994
12995         * libc/include/sys/config.h: Define DOUBLE_IS_32BITS for
12996         the h8300, h8500, and others.  Add comments for some rather
12997         dubious code.
12998
12999 Thu Mar 14 18:04:43 1996  Ian Lance Taylor  <ian@cygnus.com>
13000
13001         * Makefile.in (check): Check that testsuite exists before cd.
13002
13003 Tue Mar 12 11:46:47 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
13004
13005         * libc/include/string.h (strsep): Correct prototype.
13006
13007 Mon Mar 11 09:55:19 1996  Doug Evans  <dje@charmed.cygnus.com>
13008
13009         * libc/sys/h8300/_exit.c (_exit,__exit): Set r0 to 0 before `sleep'.
13010         * libc/sys/h8300/misc.c (_kill): Set r0 to indicate abort and `sleep'.
13011         * libc/sys/h8300/crt0.S (_start): Call exit instead of `sleep'.
13012
13013 Wed Mar  6 11:51:55 1996  Doug Evans  <dje@charmed.cygnus.com>
13014
13015         * libc/posix/{creat.c,isatty.c}: New files.
13016         * libc/posix/Makefile.in (OFILES): Add creat.o, isatty.o.
13017
13018         * libc/sys/sparc64/crt0.S (environ): Delete.
13019         (.LHaveBias): Renamed from HaveBias.
13020
13021 Thu Feb 15 10:48:37 1996  Doug Evans  <dje@charmed.cygnus.com>
13022
13023         * libc/stdlib/mallocr.c (etext): Move decl inside ifdef WARN_VLIMIT.
13024         (_morecore_r): Delete SBRK_IS_ALLOC support.
13025
13026 Tue Feb 13 09:44:09 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
13027
13028         * libc/sys/cygwin32/Makefile.in (lib.a): Make lib.a with a dummy
13029         module rather than touch, so we don't get warning messages when
13030         all of the libraries are combined into libc.a.
13031
13032 Tue Feb 13 06:32:07 1996  Doug Evans  <dje@charmed.cygnus.com>
13033
13034         * libc/sys/sparclite/{Makefile.in,crt0.s}: Deleted.
13035         crt0.s replaced by version in libgloss.
13036
13037 Mon Feb  5 15:17:51 1996  J.T. Conklin  <jtc@rtl.cygnus.com>
13038
13039         * libc/reent/Makefile.in (OFILES): Add impure.o.
13040         * libc/reent/impure.o: New file, define initial reentrancy struct.
13041         * libc/reent/reent.c: Remove above definition.
13042
13043         * libm/math/sf_asinh.c: Fix typo.
13044
13045         * Makefile.in (MATHOBJS_IN_LIBC): Removed sr_ldexp.o and
13046         srf_ldexp.o.
13047         
13048         * libm/libm.texinfo: Change documentation to reflect changes
13049         in reentrancy model.
13050         * libm/math/w_gamma.c: Likewise.
13051
13052 Wed Jan 31 18:49:45 1996  Steve Chamberlain  <sac@slash.cygnus.com>
13053
13054         * configure.in (*-*-cygwin32): New.
13055         (*-*-win32): Deleted.
13056         * libc/sys/win32 renamed libc/sys/cygwin32.
13057
13058 Tue Jan 30 22:09:03 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
13059
13060         * libc/include/sys/file.h: New include file.
13061
13062 Fri Jan 26 15:52:54 1996  Steve Chamberlain  <sac@slash.cygnus.com>
13063
13064         * libc/include/machine/setjmp.h: Increase size of PPC jmp_buf.
13065
13066 Tue Jan 23 17:49:16 1996  Steve Chamberlain  <sac@slash.cygnus.com>
13067
13068         * libc/include/sys/wait.h (WIFSIGNALED): Fix.
13069
13070 Tue Jan 16 09:28:10 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
13071
13072         * doc/makedoc.c (realloc): Declare at file scope.
13073         (catchar): Not here.
13074
13075 Wed Dec 27 15:45:23 1995  Doug Evans  <dje@canuck.cygnus.com>
13076
13077         * Makefile.in (VERSION): Update to 1.7.0.
13078         * {libc,libm}/Makefile.in (VERSION): Likewise.
13079         * configure.in: Minor clean up of multilib stuff.
13080
13081         From David Johnson <davidj@ICSI.Berkeley.EDU>
13082         * {libc,libm}/Makefile.in (lib[cm].a): Delete library first.
13083
13084         * libc/stdlib/environ.c: New file.
13085         * libc/stdlib/Makefile.in (OFILES): Build it.
13086         * libc/sys/h8500hms/crt0.c (environ): Deleted.
13087         * libc/sys/m88kbug/crt0.c (environ): Deleted.
13088         * libc/sys/z8ksim/crt0.c (environ): Deleted.
13089         * libc/sys/netware/environ.c: Deleted.
13090
13091 Tue Dec 19 15:24:46 1995  Kim Knuttila  <krk@cygnus.com>
13092
13093         * configure.in (links): set sys_dir, posix_dir, syscall_dir
13094
13095 Wed Dec 13 04:16:25 1995  Michael Meissner  <meissner@wogglebug.tiac.net>
13096
13097         * doc/makedoc.c (init_string_with_size,nextword): Move malloc
13098         declaration out to external scope and declare it PTR, not char *.
13099
13100 Mon Dec 11 17:35:12 1995  steve chamberlain  <sac@slash.cygnus.com>
13101
13102         * libc/include/sys/unistd.h (getpagesize): New declaration.
13103         (_SC_PAGESIZE): New definition.
13104         * libc/include/time.h (CLK_TCK): Defined as CLOCKS_PER_SEC.
13105         * libc/configure.in (i[345]86-*-win32): Remove -DNO_FORK.
13106
13107 Fri Dec  1 16:48:46 1995  James G. Smith  <jsmith@cygnus.co.uk>
13108
13109         * libc/sys/vr4300/syscalls.c (sbrk): Fixed memory
13110         addressing. System call returns size, not (last address + 1).
13111
13112 Thu Nov 30 15:05:26 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
13113
13114         * libm/math/*.c: Removed _foo_r() reentrancy API.
13115         * libc/include/math.h: Removed _foo_r prototypes and macros.
13116
13117         * libm/math/*.c: On systems with IEEE single precision "doubles" 
13118         move foo() -> foof() wrapper code from the files that implement
13119         the standard IEEE double precision functions to the files that 
13120         implement IEEE single precision functions. (ie. On those systems
13121         sin is moved from s_sin.c to sf_sin.c).  There should eventually
13122         be use of a C extension (like gcc's alias attribute) so that the
13123         wrappers are not needed at all.
13124
13125         * libc/sys/sysnec810/sbrk.c: Cast &end to char * to get around
13126         strict NEC V810 compiler.
13127         * libc/misc/dprintf.c (getnumber): Cast char * to unsigned char *
13128         for same reason.
13129
13130 Wed Nov 29 14:25:05 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
13131
13132         * libc/stdlib/strtol.c (_strtol_r): Replaced with implementation
13133         from NetBSD C library.
13134         * libc/stdlib/strtoul.c (_strtoul_r): Likewise.
13135
13136         * libc/stdlib/assert.c (__assert): Renamed from __assertfail 
13137         and adapted from implementation I wrote for NetBSD C library.
13138         The difference is __assert doesn't take a format argument,
13139         so that there won't be multiple copies of the same string
13140         constant in the executable if assertions are enabled in
13141         more than one source module.
13142         * libc/include/assert.h (assert): Changed to call __assert.
13143
13144 Tue Nov 28 16:54:26 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
13145
13146         * libc/stdlib/strtod.c (_strtod_r): Changed to not assign to
13147         word1 on systems with 32 bit doubles.
13148         * libc/stdlib/qsort.c (qsort): Cast some void *'s to char *'s
13149         so that we can do arithmetic on them.
13150         * libc/misc/dprintf.c: Changed to support stdarg.h for ANSI
13151         compilers.
13152         
13153 Tue Nov 28 16:03:32 1995  Doug Evans  <dje@canuck.cygnus.com>
13154
13155         * libc/sys/arm/crt0.S: Zero bss.
13156
13157 Fri Nov 24 16:09:23 1995  Doug Evans  <dje@deneb.cygnus.com>
13158
13159         * libc/include/unctrl.h: New file.
13160         * libc/misc/{Makefile.in,dprintf.c,unctrl.c,misc.tex}: New files.
13161         * configure.in (subdirs): Add libc/misc.
13162         * libc/Makefile.in (SUBDIRS): Add misc.
13163         (SUBLIBS): Add misc/lib.a.
13164
13165         * libc/include/sys/reent.h (struct _reent): Make __sf last member.
13166
13167 Wed Nov 22 19:49:47 1995  Doug Evans  <dje@deneb.cygnus.com>
13168
13169         * libc/stdio/vfprintf.c (__sbprintf): Init fake._data.
13170         (_vfprintf_r): Call CHECK_INIT.
13171
13172 Tue Nov 14 02:52:12 1995  Doug Evans  <dje@canuck.cygnus.com>
13173
13174         * Makefile.in (MULTITOP): Delete.
13175         (MULTISRCTOP, MULTIBUILDTOP): Add.
13176         * configure.in: Delete call to cfg-ml-com.in.  Call config-ml.in
13177         instead of cfg-ml-pos.in.
13178
13179 Wed Nov  8 01:24:08 1995  James G. Smith  <jsmith@pasanda.cygnus.co.uk>
13180
13181         * libc/sys/vr4300/syscalls.c: Added clean version of sbrk().
13182         * libc/sys/vr4300/crt0.S: Cleaned up. Added check for FPU
13183         presence.
13184
13185 Thu Nov  2 22:25:06 1995  Michael Meissner  <meissner@tiktok.cygnus.com>
13186
13187         * libc/string/strtok.c: Include string.h to pick up strtok_r
13188         prototype.
13189
13190 Wed Nov  1 18:54:11 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
13191
13192         * libc/string/strtok.c: include <_ansi.h>.
13193         * libc/time/asctime_r.c: `reresult' -> `result'.
13194
13195 Wed Nov  1 14:35:52 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
13196
13197         * libc/time/{ctime.c, gmtime.c, lcltime.c}: Wrap functions
13198         in #ifndef _REENT_ONLY ... #endif conditional.
13199
13200         * libc/include/string.h (_strtok_r): Remove declaration.
13201         * libc/include/time.h (_asctime_r): Remove declaration.
13202         * libc/string/strtok.c (_strtok_r): Removed.
13203         * libc/time/asctime.c (_asctime_r): Removed.
13204
13205         * libc/string/Makefile.in (OFILES): Add new object.
13206         * libc/string/strtok_r.c: New file.  strtok_r function as
13207         specified by POSIX.1c, adapted from strtok implementation 
13208         from NetBSD C library.
13209         * libc/string/strtok.c (strtok): Reimplemented in terms of 
13210         strtok_r.
13211
13212         * libc/time/Makefile.in (OFILES): Add new objects.
13213         * libc/time/{asctime_r.c, ctime_r.c, gmtime_r.c, lcltime_r.c}:
13214         New files, reentrant time functions specified by POSIX.1c.
13215         * libc/time/{asctime.c, ctime.c, gmtime.c, lcltime.c}: Non-
13216         reentrant time functions re-written in terms of reentrant 
13217         functions.
13218         * libc/time/lcltime.c: Renamed from localtime.c
13219
13220         * libc/include/time.h: Add prototypes for asctime_r, ctime_r,
13221         gmtime_r, and localtime_r.
13222
13223 Sat Oct 28 14:34:31 1995  steve chamberlain  <sac@slash.cygnus.com>
13224
13225         * libc/sys/win32/crt0.c (mainCRTStartup): Call cygwin_crt0.
13226         * libc/include/sys/unistd.h (getlogin): Revert change of
13227         Oct 19.
13228         * libc/include/sys/signal.h (sigprocmask): Change prototype
13229         so it compiles with c++.
13230
13231 Wed Oct 25 15:43:18 1995  Michael Meissner  <meissner@cygnus.com>
13232
13233         * libc/include/machine/setjmp.h (PowerPC _JBLEN): Consider it a
13234         PowerPC if __PPC__ is defined.  Bump jump_buf length to 62 ints,
13235         to give some room in case we need to align the jmp_buf.
13236         
13237         * libc/machine/powerpc/setjmp.S (setjmp, longjmp): Rewrite to use
13238         the new ppc-asm.h include file the compiler provides to specify
13239         function prologue/epilogue.  Eliminate saves of the xer and ctr
13240         registers, which are volatile.  Before starting to save registers,
13241         align to 8 byte boundary.
13242
13243 Mon Oct 23 11:20:51 1995  James G. Smith  <jsmith@pasanda.cygnus.co.uk>
13244
13245         * libc/sys/vr4300/syscalls.c: Added empty kill() function,
13246         referenced by standard libraries.
13247
13248 Thu Oct 19 21:39:47 1995  Fred Fish  <fnf@cygnus.com>
13249         
13250         * libc/unix/Makefile.in, libc/string/Makefile.in,
13251         libc/stdio/Makefile.in, libc/reent/Makefile.in,
13252         libc/posix/Makefile.in:
13253         Remove tabs from otherwise empty line.  Confuses some
13254         older non-GNU versions of "make".
13255
13256 Thu Oct 19 16:32:17 1995  steve chamberlain  <sac@slash.cygnus.com>
13257
13258         * libc/sys/unistd.h (getlogin): Returns const char *.
13259
13260 Wed Oct 18 12:57:50 1995  steve chamberlain  <sac@slash.cygnus.com>
13261
13262         * libc/include/fcntl.h (O_BINARY, O_TEXT): New.
13263         * libc/include/errno.h: Moved into and include...
13264         * libc/include/sys/errno.h: New file.
13265         * libc/include/sys/wait.h: New file.
13266         * libc/stdio/rename.c (_rename_r): Use _rename system call if available.
13267         * libc/sys/win32/*: Moved out.
13268         * libc/sys/win32/crt0.c: Rewritten to cope with shared library.
13269         * configure.in (i[345]86-*-win32): HAVE_RENAME
13270
13271 Wed Oct 18 09:58:27 1995  Brendan Kehoe  <brendan@lisa.cygnus.com>
13272
13273         * libc/unix/sigset.c (sigemptyset, sigaddset): Prefix #undef to
13274         avoid macro expansion for these two names.
13275
13276 Tue Oct 17 08:45:33 1995  Doug Evans  <dje@canuck.cygnus.com>
13277
13278         * libc/machine/h8500/psi.S: r6 renamed to fp.
13279
13280 Sun Oct 15 12:58:10 1995  Michael Meissner  <meissner@wogglebug.tiac.net>
13281
13282         * configure.in (powerpc*): No longer need to define
13283         NO_LONGLONG_POINTERS to supress warnings.
13284
13285 Sat Oct 14 12:55:08 1995  Jim Wilson  <wilson@chestnut.cygnus.com>
13286
13287         * libc/reent/reent.c (_reclaim_reent): Call cleanup indirectly
13288         through PTR instead of directly.
13289
13290         * libc/sys/sh/crt0.S: Clean up formatting.  Delete unused
13291         non-standard constructor support.
13292
13293 Thu Oct 12 11:39:42 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
13294
13295         * libc/stdlib/dtoa.c (_dtoa_r): Set result pointer to the
13296         address of the Bigint instead of the address of its _x field,
13297         as the size the result buffer was calculated accordingly.  
13298         Fix from Jim Wilson <wilson@chestnut@cygnus.com>.
13299
13300         * libc/stdlib/{div.c, ldiv.c}: Replaced with implementation
13301         from NetBSD C library.  No longer special cases division by 
13302         zero (which needs to be done by the application anyway), but
13303         it doesn't need to call abs() (or labs()) four times either.
13304         
13305         * libc/stdlib/qsort.c: Replaced with implementation from 
13306         NetBSD C library.
13307
13308 Tue Oct 10 14:01:10 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
13309
13310         * libc/stdio/vfprintf.c: Replaced with implementation from
13311         NetBSD C library (which is derived from the 4.4BSD C library).
13312         * libc/stdio/cvt.c: Removed.
13313         * libc/stdio/Makefile: Updated.
13314         
13315 Tue Oct 10 12:15:23 1995  steve chamberlain  <sac@slash.cygnus.com>
13316
13317         * libc/sys/win32/syscalls.c (rename): New.
13318         * libc/sys/win32/include/winkernel.h (MoveFileExA): New.
13319
13320 Fri Oct  6 12:18:43 1995  Jim Wilson  <wilson@chestnut.cygnus.com>
13321
13322         * libc/machine/sh/Makefile.in (setjmp.o): Depend on setjmp.S.
13323         * libc/machine/sh/setjmp.S: Rename from setjmp.s.
13324
13325         * libc/sys/sh/Makefile.in (OFILES, all): Delete setjmp.o.
13326         (setjmp.o): Delete rule to build setjmp.o.
13327         * libc/sys/sh/setjmp.S: Delete file.
13328
13329 Fri Oct  6 11:19:05 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
13330
13331         * libc/stdlib/mprec.c (d2b): Added support for _DOUBLE_IS_32BITS.
13332         * libc/stdlib/mprec.h: Fixed constants used for IEEE single float
13333         format.  Added #defines to map d2b, i2b, low0bits, lshift, mult,
13334         pow5mult and s2b to identifiers with leading underscores.
13335         * libc/stdlib/Makefile.in: Add mprec.h as a dependency to dtoa.o,
13336         ecvtbuf.o, mprec.o and strtod.o.  Sort dependencies.
13337
13338 Thu Oct  5 17:27:30 1995  steve chamberlain  <sac@slash.cygnus.com>
13339
13340         * libc/sys/posix/popen.c (sys/types.h): Include.
13341
13342 Thu Oct  5 16:33:01 1995  Doug Evans  <dje@canuck.cygnus.com>
13343
13344         * libc/sys/win32/syscalls.h (fhandler): New struct.
13345         (__lookup_fhandler, __lookup_fhandler_hook): Declare.
13346         (__fhandler_normal): Declare.
13347         (hinfo): New member op_handlers.
13348         * libc/sys/win32/syscalls.c (__read): Don't validate fd.
13349         (__write): Likewise.
13350         (_read, _write, _open, _close, _lseek): Validate fd here.
13351         Move file type specific stuff to foo_normal.
13352         (read_normal, write_normal, open_normal, close_normal, lseek_normal):
13353         New functions.
13354         (__lookup_fhandler): New function.
13355         (__lookup_fhandler_hook, __fhandler_normal): New variables.
13356
13357         From anders.blomdell@control.lth.se (Anders Blomdell)
13358         * libc/sys/win32/crt0.c (vfork_init): Unset __FD_TABLE__.
13359         Don't touch standard handles.
13360         * libc/sys/win32/spawn.c (_spawn): Use STARTF_USESTDHANDLES.
13361         (_execve): Only create __FD_TABLE__ if necessary.
13362         * libc/sys/win32/include/winkernel.h (STARTF_*): Define.
13363
13364 Thu Oct  5 14:25:14 1995  steve chamberlain  <sac@slash.cygnus.com>
13365
13366         * libc/sys/win32/sys/termios.h (FLUSHO): New.
13367         * libc/sys/win32/include/win*.h: Moved a load of prototypes around.
13368         * libc/sys/win32/pipe.c (_fctnl): Ignore F_SETFL without errors.
13369         * libc/sys/win32/exception.c (ehandler3): set strace when a signal
13370         without a handler is received.
13371         * libc/sys/win32/Makefile.in: Remove --nodelete.
13372         * libc/sys/win32/resouce.c (gettimeofday): New.
13373         * libc/sys/win32/syscalls.c (path_to_real_path): New.
13374         * libc/sys/win32/syscalls.h (include/wincon.h): Don't include.
13375
13376 Wed Oct  4 13:10:35 1995  Doug Evans  <dje@canuck.cygnus.com>
13377
13378         * libc/sys/win32/dirsearch.c (opendir): stat real path name.
13379         Don't append "/*" to search pattern if trailing '/' already there,
13380         append "*".
13381         * libc/sys/win32/spawn.c (_spawn): CreateProcess doesn't seem to
13382         like /'s, convert them to \'s.  Handle //<drive>/ path names.
13383         Add space for quoted \'s in arg string.  Print translated prog name
13384         and original prog name.
13385         (_execve): Handle parent doing exec a teensy bit better.
13386         * libc/sys/win32/syscalls.h (__path_to_real_path): Update prototype.
13387         * libc/sys/win32/syscalls.c (__path_to_real_path): Don't assume
13388         path needs conversion, handle both cases.  Delete `const' from result.
13389         (hash_path_name): New function.
13390         (_open): Call it.
13391         (_stat): Likewise.  Fill in more fields for directories.
13392         * libc/sys/win32/wait.c (_wait): Explicitly pass -1 to waitpid.
13393         (wait_for_any): Fix trace message.
13394         (waitpid): Explicitly test for intpid == 0.
13395
13396         From anders.blomdell@control.lth.se (Anders Blomdell)
13397         * libc/sys/win32/spawn.c (__vfork_get_empty_entry): zero fill result
13398         so `next' is valid.
13399
13400 Sat Sep 30 15:00:15 1995  Jason Molenda  (crash@phyeaux.cygnus.com)
13401
13402         * libc/sys/win32/spawn.c (_spawn): Make quoting rules more
13403         complicated.
13404
13405 Sat Sep 30 10:25:57 1995  Jason Molenda    (crash@phydeaux.cygnus.com)
13406
13407         * libc/include/_ansi.h: set _HAVE_STDC if __STDC__ is defined
13408         at all, not just == 1.
13409         * libm/math/wf_acos.c (acosf): check for _HAVE_STDC, not __STDC__.
13410
13411 Sat Sep 30 04:30:09 1995  Jason Molenda   (crash@phydeaux.cygnus.com)
13412
13413         * libc/sys/win32/include/winbase.h: include <wintypes.h> and <winnt.h>
13414         * libc/sys/win32/include/wintypes.h: include <winnt.h>
13415         * libc/sys/win32/include/winnt.h: avoid multiple inclusion of this
13416         file.
13417
13418 Fri Sep 29 01:49:17 1995  steve chamberlain  <sac@slash.cygnus.com>
13419
13420         * libc/sys/syscalls.c (getcwd): Fix off by one error.
13421
13422         * libc/sys/signal.c (sleep): Fill it in.
13423         * libc/sys/termios.c (tcflush): Use PurgeComm
13424         (tcsetattr): Set some more of the bits.
13425         * libc/sys/include/winkernel.h: Add PurgeComm and Sleep.
13426
13427 Fri Sep 29 04:33:53 1995  Doug Evans  <dje@deneb.cygnus.com>
13428
13429         * libc/sys/arm/crt0.S (fp): Initialize to 0.
13430         Conditionally include .idata$3 stuff ifdef __pe__.
13431
13432 Fri Sep 29 01:49:17 1995  steve chamberlain  <sac@slash.cygnus.com>
13433
13434         * libc/sys/win32/crt0.c (hmap_init): Call __init_hinfo.
13435         * libc/sys/win32/pipe.c (pipe): Ditto.
13436         * libc/sys/win32/syscalls.c (__read):  Use new vtime and vmin fields.
13437         * libc/sys/win32/syscalls.h (hinfo): vtime, vmin are new.
13438         * libc/sys/win32/termios.c (tcsetattr): Init new fields.
13439         (tcgetattr): Contents are new.
13440         * libc/sys/win32/include/winkernel.h (DCB): New.
13441         (GetCommState, SetCommState): New.
13442
13443 Thu Sep 28 16:29:09 1995  Doug Evans  <dje@deneb.cygnus.com>
13444
13445         * libc/sys/arm/crt0.S (_start): Define.
13446
13447 Thu Sep 28 12:26:45 1995  steve chamberlain  <sac@slash.cygnus.com>
13448
13449         * libc/sys/arm/crt0.S: Move stack to top of RAM on PIE board.
13450         * libc/sys/arm/syscalls.c (_read, _write): Use the SWI properly.
13451
13452         * libc/sys/win32/sysconf.c: New
13453         * libc/sys/win32/sys/winadvapi.h: New
13454         * libc/sys/win32/syscalls.h (hinfo): Added timeout_len, w_binary, r_binary.
13455         * libc/sys/win32/crt0.c (hmap_init): Initialize new fields.
13456         * libc/sys/win32/pipe.c (pipe): Ditto.
13457         * libc/sys/win32/signal.c (_raise): New.
13458         (_kill): Moved from spawn.c
13459         * libc/sys/win32/spawn.c (kill): Moved to signal.c
13460         * libc/sys/win32/syscalls.c (__read): Use new fields.
13461         (_open): Ditto.
13462         * libc/sys/win32/termios.c (tcflush, tcsetattr, tcgetattr): Fill in.
13463         * libc/sys/win32/exceptions.c (__stack_trace): Keep going for longer.
13464         * libc/include/sys/unistd.h (rmdir): Takes const path.
13465         * libc/include/sys/stat.h (mkdir): Takes const path.
13466         * libc/include/sys/signal.h (SIGTTOU, SIGTTIN): New for win32.
13467
13468 Thu Sep 28 10:11:27 1995  Doug Evans  <dje@canuck.cygnus.com>
13469
13470         * libc/sys/win32/spawn.c (_spawn): Fix quoting.
13471
13472         Add support for specifying paths as //<drive>/foo/bar.
13473         * libc/sys/win32/syscalls.h (__path_needs_conversion_p): Declare.
13474         (__path_to_real_path): Declare.
13475         (PATH_TO_REAL_PATH): New macro.
13476         * libc/sys/win32/syscalls.c (__win32_pid_to_posix_pid): Minor cleanup.
13477         (__path_needs_conversion_p, __path_to_real_path): New functions.
13478         (_open): Fix test for error return from CreateFileA.
13479         Handle new path syntax.
13480         (_link, mkdir, rmdir, getcwd, chdir, stat): Handle new path syntax.
13481         * libc/sys/win32/dirsearch.c (opendir): Likewise.
13482
13483 Wed Sep 27 16:36:46 1995  steve chamberlain  <sac@slash.cygnus.com>
13484
13485         * libc/sys/win32/include/*.h: Reorganized
13486         * libc/sys/win32/include/WINREADME: New.
13487         * libc/sys/win32/Makefile.in (DLLS): Build version.a.
13488         * libc/sys/win32/*.c: Fix for new include scheme.
13489         * libc/sys/win32/crt0.c (__this_uinfo_buf, __this_uinfo): New.
13490         * libc/sys/win32/getlogin.c (getlogin): Use uinfo.
13491         * libc/sys/win32/passwd.c (*): Fix.
13492         * libc/sys/win32/syscalls.c (get[e|][g|u]id): Use passwd info.
13493         (_stat): Get directory owner and permissions right.
13494         * libc/sys/win32/syscalls.h (uinfo): New.
13495         * libc/sys/win32/version.def: Remove leading underscores.
13496
13497 Tue Sep 26 18:18:47 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
13498
13499         * libc/sys/win32/key.c: include "include/wincon.h".
13500
13501 Tue Sep 26 07:21:48 1995  steve chamberlain  <sac@slash.cygnus.com>
13502
13503         * libc/sys/win32/{key, stubs}.c: New.
13504         * libc/sys/win32/Makefile: Adjust to cope.
13505         * libc/sys/win32/crt0.c (vfork_init_first): Cope with -ve pids.
13506         (environ_init): Change env names to upper case.
13507         * libc/sys/win32/dirsearch.c (readdir): Don't fill in inode number.
13508         * libc/sys/win32/passwd.c (*): Fill in the functions.
13509         * libc/sys/win32/pipe.c (_fcntl): F_GETFL returns O_RDWR.
13510         * libc/sys/win32/spawn.c (_spawn): Cope with -ve pids.
13511         * libc/sys/win32/syscalls.c (__win32_pid_to_posix_pid): New function.
13512         (_open): Initialze hmap->execable_p too.
13513         * libc/sys/win32/syscalls.c (getuid, getgid, geteuid, getegid): Return from macros.
13514         (_fstat): Fill in permissions.
13515         * libc/sys/win32/syscalls.h (hinfo): Add execable_p.
13516
13517 Fri Sep 22 13:47:27 1995  Doug Evans  <dje@canuck.cygnus.com>
13518
13519         * configure.in (cfg-ml-com.in invocation): Use ${with_multilib_top}
13520         if defined.
13521         (cfg-ml-pos.in invocation): Likewise.
13522
13523 Fri Sep 22 11:43:44 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
13524
13525         * Makefile.in (MATHOBJS_IN_LIBC): Added s_isinf.o, sf_isinf.o,
13526         s_isnan.o and sf_isnan.o.
13527
13528 Wed Sep 20 14:50:19 1995  Ian Lance Taylor  <ian@cygnus.com>
13529
13530         * All Makefile.in files: added maintainer-clean target as a
13531         synonym for realclean.
13532
13533 Wed Sep 20 11:02:50 1995  Jeff Law  (law@snake.cs.utah.edu)
13534
13535         * libc/include/machine/setjmp.h: Add hppa support.
13536         * libc/machine/hppa/setjmp.S: New file with setjmp/longjmp
13537         support.
13538         * libc/machine/hppa/Makefile.in: Related changes.
13539
13540 Tue Sep 19 12:09:01 1995  J.T. Conklin  <jtc@blues.cygnus.com>
13541
13542         * configure.in (machine_dir): Don't set for v810-*-*.
13543
13544 Fri Sep 15 20:22:08 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
13545
13546         * libc/sys/win32/crt0.c (passover): Change to handle MKS quoting
13547         conventions correctly.
13548
13549 Thu Sep 14 13:37:22 1995  J.T. Conklin  <jtc@blues.cygnus.com>
13550
13551         * libc/stdio/puts.c: Update documentation of return value to match
13552         ANSI standard.
13553
13554 Thu Sep 14 01:52:37 1995  Doug Evans  <dje@canuck.cygnus.com>
13555
13556         Fix file descriptor inheritance.
13557         * libc/sys/win32/syscalls.h (CHILD_P): Define again.
13558         (NOT_OPEN_FD): Fix.
13559         * libc/sys/win32/spawn.c (vfork0): Only create inheritable handle if
13560         close-on-exec flag not set.  Initialize child's entire fd table.
13561         * libc/sys/win32/syscalls.c (_open): Only create inheritable handle if
13562         CHILD_P.
13563         * libc/sys/win32/pipe.c (pipe): Only create new handle as inheritable
13564         if CHILD_P.  Initialize entire hmap entry.
13565         (dup): Only create new handle as inheritable if CHILD_P.
13566         (dup2): Likewise.  Properly initialize hmap entry.
13567
13568         * libc/sys/win32/spawn.c (_execve): Don't pass _P_SEARCH_PATH to
13569         _spawn.
13570         (_exit): Use CHILD_P.
13571         * libc/sys/win32/syscalls.c (_fstat): Fix call to memset.
13572         (_stat): Likewise.
13573
13574 Mon Sep 11 23:09:39 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
13575
13576         * libc/sys/win32/crt0.c (passover): fix up the state table.
13577         * libc/posix/popen.c: Added.
13578         * libc/posix/Makefile.in: compile popen.c.
13579         
13580 Mon Sep 11 11:43:38 1995  J.T. Conklin  <jtc@cygnus.com>
13581
13582         * libc/include/machine/ieeefp.h: On the h8/300, h8/300h and
13583         h8/500 define _DOUBLE_IS_32BITS.
13584
13585 Sat Sep  9 17:55:54 1995  Doug Evans  <dje@canuck.cygnus.com>
13586
13587         Get vfork/exec/spawn/cwait/wait working again.
13588         * libc/sys/win32/syscalls.h (VFORK_NEWBORN_PSEUDO_PID): Define.
13589         (procinfo): New member vfork_level.
13590         * libc/sys/win32/crt0.c (__vfork_next_pid): Delete.
13591         (vfork_init_first): Use GetCurrentProcessId to get pid.
13592         Initialize vfork_level.
13593         (vfork_init): Delete __PID__.
13594         (environ_init): New function.  Undo patch of Aug 19, Posix says
13595         environment variables are case sensitive.
13596         (mainCRTStartup): Call it.
13597         * libc/sys/win32/spawn.c (__vfork_next_pid): Delete.
13598         (my_longjump: Make static.
13599         (_spawn): New argument `h'.  Delete setting of __PID__.
13600         Delete local `idx'.  Look for chars that need quotes, rather than
13601         ones that don't.  Set handle of created process in `h'.
13602         Result is process id if created task.
13603         (allocate_spawn_entry): New function.
13604         (spawnvp, spawnv): Call it.  Store handle and pid in procinfo entry.
13605         (_execve): Set __FD_TABLE__ before spawning child.
13606         Scan our fd table when passing fds, not our parent's.
13607         Store handle and pid in procinfo entry.
13608         (vfork0): Ensure strace message always printed.
13609         Set child pid to VFORK_NEWBORN_PSEUDO_PID.
13610         (vfork): Don't clobber result of vfork0.
13611         * libc/sys/win32/wait.c (cwait): Fix non-error result (is pid).
13612         (wait_for_any): Ignore processes in state FORK_STATE_VFORK_0.
13613
13614         * libc/sys/win32/syscalls.h (procinfo): New members `handle_valid_p'
13615         and `exit_code'.
13616         * libc/sys/win32/spawn.c (allocate_spawn_entry): Initialize them.
13617         (vfork0): Likewise.  Distinguish children, grandchildren, etc. by
13618         adding vfork level to pseudo-pid.  
13619         (vfork1): If not root, set state back to FORK_STATE_VFORK_0.
13620         (spawnvp, spawnv, _execve): Set handle_valid_p if success.
13621         (_exit): If child, set exit code.
13622         (__vfork_record_death): Only close process handle if valid.
13623         * libc/sys/win32/wait.c (wait_for_single): Watch for children that
13624         didn't exec.
13625         (wait_for_any): Likewise.  Start scan after root entry.
13626
13627 Fri Sep  8 18:48:02 1995  Jason Molenda   (crash@phydeaux.cygnus.com)
13628
13629         * libc/include/sys/types.h (off_t): off_t back to 32 bits.
13630         * libc/include/sys/_types.h (_off_t): _off_t back to 32 bits.
13631         * libc/sys/win32/syscalls.c (_fstat): st_size is lower 32-bits
13632         of actual file length.
13633
13634         * libc/sys/win32/sys/wait.h: include <sys/types.h>.
13635         * libc/include/paths.h: _PATH_BSHELL added.
13636         * libc/include/sys/unistd.h: define STDIN_FILENO, STDOUT_FILENO,
13637         and STDERR_FILENO.
13638
13639 Thu Sep  7 21:02:22 1995  Jason Molenda   (crash@phydeaux.cygnus.com)
13640
13641         * libc/include/ar.h: Added.
13642         * libc/include/sys/types.h: ino_t goes back to 32-bits.
13643         * libc/sys/win32/syscalls.h (hinfo): added .namehash field.
13644         * libc/sys/win32/syscalls.c (_open): compute .namehash based
13645         on filename.
13646         (_fstat): use .namehash for inode number of the fd.
13647
13648 Thu Sep  7 12:57:19 1995  steve chamberlain  <sac@slash.cygnus.com>
13649
13650         * libc/sys/win32/{console,ioctl,pipe,spawn,syscalls,wait}.? (*):
13651          Change hinfo to __this_procinfo.
13652         * libc/sys/win32/crt0.c: Remove procinfo_list.
13653
13654 Wed Sep  6 18:38:26 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
13655
13656         * libc/include/sys/types.h (ino_t): Define ino_t correctly for
13657         win32 environment.
13658
13659 Wed Sep  6 18:09:29 1995  Jason Molenda   (crash@phydeaux.cygnus.com)
13660
13661         * libc/sys/win32/include/grp.h: Removed.
13662         * libc/sys/include/grp.h: Added.
13663         * libc/sys/win32/grp.c: Include <grp.h>.
13664
13665 Wed Sep  6 16:52:48 1995  steve chamberlain  <sac@slash.cygnus.com>
13666
13667         * libc/include/sys/signal.h (__need_MAX_SIGNALS): Removed.
13668         (sigset_t, sigaction, SIG_SETMASK, SIG_BLOCK, SIG_UNBLOCK):
13669         Defined for all but strict ANSI.
13670         * libc/include/sys/reent.h (__need_MAX_SIGNALS): Removed.
13671         * libc/include/machine/setjmp.h: Get win32 _JBLEN right.
13672         * libc/signal/signal.c (_signal_r): Changed from using
13673         _MAX_SIGNALS to NSIG.  
13674         * libc/sys/win32/crt0.c (__current_pid, __parent_hmap, __child_hmap,
13675          __hmap): Deleted.
13676         (__strace, __vfork_next_pid): New.
13677         (__exe_suffix): Default to 1.
13678         (passover, table): Understand quoted arguments.
13679         (vfork_init_first): New.
13680         (vfork_init): Initialize new process structure.
13681         (mainCRTStartup): Pass environ to main.
13682         * exceptions.c (__sig_mask): New
13683         (ehandler3): Ignore signals in mask.
13684         (really_exit): Remove CHILD_P test.
13685         * pipe.c (pipe, dup, dup2): Use new process and file structure.
13686         * resource.c (getrusage): Ditto.
13687         * signal.c (sigprocmask): New.
13688         * spawn.c (*): Rewritten.
13689         * syscalls.c (*): Use new process and file structure.
13690         (find_unused_handle): New.
13691         * syscalls.h (MAX_HANDLES): Deleted.
13692         (hinfo): Removed child_created_p.
13693         (MAX_CHILDREN): Deleted.
13694         (vfork_jmp_info, procinfo): New.
13695         * wait.c (*): Mostly new.
13696         * sys/strace.h (_STRACE_PARANOID): New.
13697         * sys/param.h: New file.
13698
13699 Wed Sep  6 17:03:53 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
13700
13701         * libc/include/sys/stat.h: add S_BLKSIZE.
13702         * libc/include/sys/_types.h: _off_t is a 64-bit type under win32.
13703         * libc/include/sys/types.h: define off_t and ino_t to be 64 bit
13704         types under win32.
13705         (mode_t): add a #else to avoid multiple definitons.
13706
13707         * libc/sys/win32/Makefile.in: add grp.c.
13708         * libc/sys/win32/grp.c: include grp.h correctly.
13709         * libc/sys/win32/syscalls.c (_fstat): set almost all of the fields
13710         of the st structure with real information.
13711         * libc/sys/win32 (dirent): d_ino is of type ino_t.
13712
13713 Wed Sep  6 10:41:34 1995  Doug Evans  <dje@canuck.cygnus.com>
13714
13715         * libc/include/sys/types.h (mode_t): Correct for svr4 sparc's
13716         and (maybe) sparc64.
13717         (nlink_t): Provide typedef.
13718
13719 Tue Sep  5 18:46:05 1995  Jason Molenda   (crash@phydeaux.cygnus.com)
13720
13721         * libc/sys/win32/grp.c: New file.
13722         * libc/sys/win32/include/grp.h: New file.
13723
13724 Tue Sep  5 13:47:27 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
13725
13726         * libc/include/machine/ieeefp.h: Added whitespace to make this
13727         file easier to maintain.
13728         On the sh, define either __IEEE_BIG_ENDIAN or __IEEE_LITTLE_ENDIAN
13729         depending on the value of __LITTLE_ENDIAN__.
13730         On the sh3e, define _DOUBLE_IS_32BITS.
13731         
13732 Fri Sep  1 15:35:18 1995  James G. Smith  <jsmith@beauty.cygnus.com>
13733
13734         * libc/sys/vr4300/syscalls.c: Added missing support
13735         routines. _raise() and getpid().
13736
13737 Fri Sep  1 14:12:48 1995  James G. Smith  <jsmith@rtl.cygnus.com>
13738
13739         * configure.in (mips*vr4300*-*-elf): Fixed silly mistake
13740
13741 Fri Sep  1 08:42:11 1995  James G. Smith  <jsmith@beauty.cygnus.com>
13742
13743         * configure.in (mips*vr4300*-idt-*) Add support for RISQ monitor
13744         and VR4300 processor.
13745         * libc/sys/vr4300: Add directory.
13746         * libc/sys/vr4300/{Makefile.in, crt0.S, syscalls.c}: Add SIM
13747         monitor run-time support.
13748
13749 Thu Aug 31 09:16:52 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
13750
13751         * libc/stdlib/Makefile.in (CHEWOUT_FILES): Removed atol.def.
13752         * libc/stdlib/stdlib.tex: Don't include atol.def.
13753
13754 Wed Aug 30 20:38:28 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
13755
13756         * libc/sys/win32/uname.c (uname): hardcode processor as `i386'.
13757
13758 Wed Aug 30 10:48:08 1995  steve chamberlain  <sac@slash.cygnus.com>
13759
13760         * libc/ctype/Makefile.in: Fill in _to* dependencies.
13761
13762 Tue Aug 29 17:14:29 1995  steve chamberlain  <sac@slash.cygnus.com>
13763
13764         * libc/sys/win32/{dirsearch.c,sys/dirent.h}: Fix namespace problems.
13765         * libc/sys/win32/sys/dirent.h (struct dirent): Added d_ino.
13766         * libc/sys/win32/strace.c (__sys_printf): Increase size of buffer.
13767         * libc/sys/win32/smallprint.c (__small_vsprintf): Remove debug.
13768         * libc/sys/win32/dirsearch.c (readdir): Set d_ino.
13769
13770 Tue Aug 29 19:00:09 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
13771
13772         * libc/stdlib/atol.c (atol): DEFUN -> _DEFUN.
13773
13774 Tue Aug 29 16:08:09 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
13775
13776         * libc/stdlib/Makefile.in (OFILES): Added atoff.o and atol.o.
13777         * libc/stdlib/atoff.c: New file.
13778         * libc/stdlib/atof.c (atoff): Moved to atoff.c.
13779         * libc/stdlib/atoi.c (atol): Removed.
13780         * libc/stdlib/atol.c: Removed duplicate documentation.
13781
13782         * libc/include/ctype.h (_tolower, _toupper): Moved inside
13783         #ifndef _STRICT_ANSI conditional.
13784         * libc/ctype/Makefile.in (OFILES): Added _tolower.o and _toupper.o
13785         * libc/ctype/_tolower.c: New file.
13786         * libc/ctype/_toupper.c: New file.
13787         * libc/ctype/tolower.c (_tolower): Moved to _tolower.c.
13788         * libc/ctype/toupper.c (_toupper): Moved to _toupper.c.
13789         * libc/ctype/toascii.c (_toascii): Removed.
13790
13791 Tue Aug 29 12:17:32 1995  Doug Evans  <dje@canuck.cygnus.com>
13792
13793         * libc/sys/sparc64/sys/types.h: Deleted.
13794
13795 Mon Aug 28 22:06:08 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
13796
13797         * libc/sys/win32/uname.c (uname): change `Windows/NT' to `Windows_NT'
13798         and recognize Windows_95 systems.
13799
13800 Mon Aug 28 19:50:54 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
13801
13802         * libc/sys/win32/crt0.c (vfork_init, hmap_init): standard I/O fds
13803         and passed fds should be opened in text mode.
13804
13805 Mon Aug 28 18:51:22 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
13806
13807         * libc/sys/win32/crt0.c (vfork_init): mark passed fds as used
13808         in __hmap, set to binary mode by default.
13809
13810 Tue Aug 22 14:12:37 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
13811
13812         * libc/sys/sh/syscalls.c: Updated all functions to call __trap34.
13813         * libc/sys/sh/trap.S (__trap34): Renamed from __trap3.  Use trap
13814         vector 34.
13815
13816 Sat Aug 19 18:25:37 1995  steve chamberlain  <sac@slash.cygnus.com>
13817
13818         * Makefile.in (install): Install all libraries found in the
13819         top level.  If there's a sys/<type>/include directory,
13820         install those headers into include.
13821
13822         * libc/sys/win32/kernel.def351: Delete
13823         * libc/sys/win32/{comctl32.def, comdlg32.def, ctl3d32.def,
13824         glaux.def, glu32.def, largeint.def, libc.def, libcmt.def,
13825         lz32.def, mgmtapi.def, mpr.def, msacm32.def, msvcrt.def,
13826         nddeapi.def, netapi32.def, odbc32.def, odbccp32.def, oldnames.def,
13827         ole32.def, oleaut32.def, opengl32.def, rasapi32.def, rpcndr.def,
13828         rpcns4.def, rpcrt4.def, scrnsave.def, shell32.def, snmp.def,
13829         uuid.def, vdmdbg.def, version.def, vfw32.def, win32spl.def,
13830         winmm.def, winspool.def, winstrm.def, wsock32.def}: New.
13831
13832         * libc/sys/win32/Makefile.in: Update for new files and new dlltool options.
13833         * libc/sys/win32/crt0.c: Force all env names to upper case.
13834         * libc/sys/win32/sys/win*.h -> libc/sys/win32/include
13835         * libc/sys/win32/*.c: Headers have moved.
13836         * libs/sys/win32/*.[ch]: Test for open_p rather than BAD_HANDLE,
13837         __vfork_child_idx is now __vfork_child_ptr.
13838
13839         * posix/execvp (execvp): Don't crash if no PATH envname.
13840
13841 Fri Aug 18 12:22:59 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
13842
13843         * libc/include/sys/reent.h (_Bigint): Removed _reclaim field.
13844         * libc/reent/reent.c (_reclaim_reent): Free Bigint's by going
13845         through the _freelist instead of through the _reclaim list.
13846         * libc/stdlib/mprec.c (_Balloc): Don't put new node on _reclaim list.
13847         * libc/stdlib/mprec.c (_Bcopy): Make like version in master dtoa.c
13848         sources.
13849
13850 Thu Aug 17 11:03:27 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
13851
13852         * libc/machine/h8500/setjmp.S: New file.
13853         * libc/include/machine/setjmp.h: Updated for H8/500.
13854
13855 Wed Aug 16 16:19:11 1995  steve chamberlain  <sac@slash.cygnus.com>
13856
13857         * libc/sys/win32/syscalls.c (_open): More stracing.
13858         (_stat): Open the file in O_BINARY.
13859
13860 Wed Aug 16 15:49:01 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
13861
13862         * libc/machine/h8300/setjmp.S: New file.
13863         * libc/include/machine/setjmp.h: Updated for H8/300 and H8/300H.
13864
13865 Tue Aug 15 10:31:09 1995  Doug Evans  <dje@canuck.cygnus.com>
13866
13867         * libc/sys/win32/crt0.c (__exe_suffix): New global.
13868         (mainCRTStartup): Set __exe_suffix from LIBC_EXE_SUFFIX.
13869         * libc/sys/win32/spawn.c (_spawn): Add .exe suffix based on
13870         __exe_suffix.  Free fd_tab after setting env variable.
13871         (spawnv,_execve): Update.
13872         * libc/sys/win32/syscalls.h (__exe_suffix): Declare.
13873         * libc/sys/win32/smallprint.c (puts,putn): New (static) functions.
13874         (__small_vfprintf): New function.
13875         * libc/sys/win32/strace.c (__sys_printf): Call __small_vfprintf.
13876         * libc/sys/win32/wait.c (cwait): Validate argument.
13877
13878         * libc/sys/win32/syscalls.c (queue_file_deletion): Add trace message.
13879         (process_deletion_queue): Likewise.
13880
13881         * libc/sys/win32/Makefile.in (lib.a): Don't call $(RANLIB).
13882
13883 Mon Aug 14 10:14:10 1995  steve chamberlain  <sac@slash.cygnus.com>
13884
13885         * libc/sys/win32: Copyrights and gratuitous indenting.
13886
13887 Mon Aug 14 01:32:58 1995  Doug Evans  <dje@canuck.cygnus.com>
13888
13889         * libc/sys/win32/syscalls.c (queue_file_deletion): Finish.
13890         (process_deletion_queue): Likewise.
13891         (__close_all_files): New function.
13892         (_close): Only queue file deletion if really a file.
13893         * libc/sys/win32/spawn.c (_spawn): Only ensure .exe suffix if
13894         _P_APPEND_EXE.
13895         (_exit): Call __close_all_files.
13896
13897         * libc/stdlib/system.c: #include <errno.h>.
13898         (_system_r): Fix results in -DNO_EXEC case.
13899
13900         * libc/sys/win32/sys/dirent.h (DIR): New member __d_dirname.
13901         Reorganize structure.
13902         * libc/sys/win32/dirsearch.c (opendir): Use stat to determine
13903         if argument is valid.  Save directory name in DIR.  malloc space
13904         for dirent struct separately.
13905         * libc/sys/win32/syscalls.c (stat): Fix test for directory.
13906
13907         * libc/include/errno.h (ENAMETOOLONG): Define.
13908         * libc/string/strerror.c (strerror): Reword ENFILE.
13909         Add ENOSYS, ENMFILE, ENOTEMPTY, ENAMETOOLONG.
13910
13911 Sun Aug 13 22:42:25 1995  Doug Evans  <dje@canuck.cygnus.com>
13912
13913         * libc/sys/win32/crt0.c (__progname): New global.
13914         (mainCRTStartup): Support strace=bitmask,filename.
13915         * libc/sys/win32/dirsearch.c (all fns): Add trace messages.
13916         * libc/sys/win32/syscalls.c (_write): Print parent trace message
13917         if error.
13918         (getcwd): Handle len too small.  Convert '\\' to '/'.
13919         * libc/sys/win32/sys/fcntl.h (O_RDWR): = O_RDONLY|O_WRONLY.
13920         Add prototypes for open, creat, fcntl.
13921         (O_APPEND): Change value to conform to Microsoft's value.
13922         * libc/sys/win32/sys/strace.h (_STRACE): Protect in do/while.
13923
13924         * libc/stdlib/getopt.c: New file.
13925         * libc/stdlib/Makefile.in: Build it.
13926
13927 Sat Aug 12 12:17:14 1995  Doug Evans  <dje@canuck.cygnus.com>
13928
13929         * libc/posix/execvp.c (execvp): Watch for DOS drives ifdef _WIN32.
13930         Fix scanning of $PATH.
13931         * libc/posix/exec*.c: Call _execve, not execve.
13932         * libc/posix/execve.c: New file.
13933         * libc/posix/Makefile.in (OFILES): Add execve.o.
13934
13935         * libc/sys/win32/sys/strace.h (_STRACE_ALL, _STRACE_UHOH,
13936         _STRACE_STARTUP, _STRACE_SYSCALL): More bit masks of things to trace.
13937         (_STRACE): If level==0, always print.  Handle new bit mask scheme.
13938         * libc/sys/win32/crt0.c: Update _STRACE calls.
13939         * libc/sys/win32/{pipe.c,resource.c,spawn.c,syscalls.c,wait.c}: Ditto.
13940
13941         * libc/sys/win32/smallprint.c (rn): Fix digit list.
13942
13943         * libc/sys/win32/syscalls.c (__really_exit): Move from here,
13944         * libc/sys/win32/exceptions.c (really_exit): to here. Avoid recursion.
13945         * libc/sys/win32/spawn.c (spawnvp): Pass `prog' as image name.
13946         Print __seterrno trace message first.
13947         (_execve): Renamed from execve.
13948         (vfork): Update __strace usage.
13949         (__vfork_child_pid): Deleted.
13950         (__vfork_children, __vfork_child_idx): New globals.
13951         (_spawnvp): New function.
13952         (spawnvp, spawnv, _execve): Call _spawnvp.
13953         (init_child): Record child in __vfork_children.
13954         (__vfork_get_entry, __vfork_record_death): New functions.
13955         * libc/sys/win32/crt0.c (mainCRTStartup): Initialize __vfork_children.
13956         * libc/sys/win32/kernel32.def (WaitForMultipleObjects): Define.
13957         * libc/sys/win32/syscalls.h (CHILD_P): New macro.  All files updated.
13958         (MAX_CHILDREN, CHILD_INTERIM_PID): Define.
13959         (children): New typedef.
13960         (__vfork_children,__vfork_child_idx): Declare.
13961         (__vfork_get_entry,__vfork_record_death): Declare.
13962         * libc/sys/win32/wait.c (wait_for_single,wait_for_any): New functions.
13963         (waitpid): Handle pid == -1.
13964         * libc/sys/win32/sys/wintypes.h (WaitForMultipleObjects): Declare.
13965         * configure.in (i386-win32): Add -DNO_FORK.
13966         * libc/syscalls/sysfork.c (fork): Don't define for NO_FORK.
13967         * libc/reent/execr.c (_fork_r): Likewise.
13968         * libc/stdlib/system.c (do_system): New function.
13969         If WIN32, try to get shell path from $SH_PATH, use vfork.
13970         (_system_r): Return 1 for (s == NULL) if WIN32 or unix,
13971         otherwise return 0.
13972
13973 Sat Aug 12 11:08:00 1995  steve chamberlain  <sac@slash.cygnus.com>
13974
13975         * libc/stdlib/{mallocr.c, mstats.c}: Move mstats from mallocr to mstats.c.
13976         * libc/sys/win32/fcntl.h: Don't include self.
13977         * libc/sys/win32/sys/strace.h (_STRACE_WM, _strace_wm): New.
13978         * libc/sys/win32/sys/winbase.h: (GetUserName) New.
13979         * libc/sys/win32/sys/wincon.h (HANDLER_ROUTINE): Define correctly.
13980         * libc/sys/win32/sys/wintypes.h (GetFileType, GetCurrentProcess, CloseHandle,
13981         SetFilePointer, CreateFileA, GetFileInformationByHandle, GetStdHandle):
13982         Correct prototypes.
13983         * libc/sys/win32/strace.c: New file.
13984         * libc/sys/win32/smallprint.c: New file.
13985         * libc/sys/win32/crt0.c (func): Delete.
13986         (mainCRTStartup): Fix alloca usage.  Set handles explictly.
13987         * libc/sys/win32/dirsearch.c: Clean up handle usage, fix calls to __seterrno.
13988         * libc/sys/win32/exceptions.c: Lint.
13989         * libc/sys/win32/{ioctl.c, pipe.c, resource.c, spawn.c, cwait.c, syscalls.c}:
13990         Clean up handle usage.
13991         * libc/sys/win32/syscalls.c (__sys_printf): Moved into strace.c
13992         (open.c): Default file type is text.
13993         * libc/sys/win32/uname.c (uname): Use __small_sprintf.
13994         * libc/sys/win32/advapi32.def: New      
13995
13996 Fri Aug 11 17:11:52 1995  Doug Evans  <dje@canuck.cygnus.com>
13997
13998         * configure.in (posix_dir, libc_posix_lib): New variables.
13999         Define LIBC_POSIX_LIB in makefile to be $libc_posix_lib.
14000         (i[345]86-*-win32): Define posix_dir.
14001         Delete -DNO_EXEC.  Define -DHAVE_OPENDIR.
14002         (if unix_dir): Fix typo.
14003         * libc/posix/{Makefile.in,closedir,opendir,readdir,rewinddir,
14004         scandir,seekdir,telldir}: New files.
14005         * libc/posix/{execl.c,execle.c,execlp.c,execv.c,execvp.c}: Move here
14006         from libc/unix.
14007         * libc/Makefile.in (LIBC_POSIX_LIB): Define.
14008         (SUBDIRS): Add posix.
14009         (SUBLIBS): Add $(LIBC_POSIX_LIB).
14010
14011         * libc/include/sys/signal.h (SIGCHLD): Add for _WIN32.
14012         (NSIG): Increase to 21.
14013         * libc/include/sys/unistd.h (pid_t): Move from here,
14014         * libc/include/sys/types.h (pid_t): to here.
14015
14016         * libc/sys/win32/syscalls.h: #include "sys/strace.h".
14017         (__ptrace): Delete.
14018         (hinfo): New members close_exec_p, child_created_p.
14019         (struct exception_list): Define.
14020         (__hmap): Redefine as pointer to table.
14021         (__parent_hmap, __child_hmap): New globals.
14022         (__set_errno, __really_exit): Declare.
14023         (__vfork_child_pid): Declare.
14024         * libc/sys/win32/crt0.c (__strace, __trace_file): New global.
14025         (__orig_stdin, __orig_stdout, __orig_stderr): New globals.
14026         (__parent_hmap, __child_hmap): New globals.
14027         (__hmap): Redefine as pointer to active map.
14028         (__get_console): New function.
14029         (mainCRTStartup): Change leading '=' in environ vars to '!'.
14030         (env __FD_TABLE__): Watch for this and initialize our fd/handle
14031         mapping table from it if defined.
14032         (argv, envp): Dump if __strace >= 4.
14033         (main): Call here.
14034         * libc/sys/win32/exceptions.c (myp): Redefine.
14035         (__syscalls_b): Delete.
14036         (__stack_trace): New function.
14037         (ehandler3): Update to use _STRACE.  Print stack trace.
14038         Call __really_exit instead of exit.
14039         (init_exceptions): Delete args argc,argv.  New arg mine.
14040         * libc/sys/win32/kernel32.def (CreatePipe, DuplicateHandle, FindClose,
14041         FindFirstFileA, FindNextFileA, GetComputerNameA,
14042         GetEnvironmentVariableA, ReadFile, SetEnvironmentVariableA): Define.
14043         * libc/sys/win32/signal.c (signal): Validate arg.
14044         (alarm, sleep): Define as stubs for now.
14045         * libc/sys/win32/syscalls.c (all fns): Update to use _STRACE.
14046         (__syscalls_b, errno): Delete.
14047         (__vfork_child_pid, __vfork_jmp_buf): New globals.
14048         (__seterrno): Handle more errors.
14049         (__sys_printf): Renamed from _ptrace.
14050         (__really_exit): New function.
14051         (queue_file_deletion, process_deletion_queue): New functions.
14052         (__resume_parent): New function.
14053         (_unlink): Handle trying to delete open file.
14054         (__totime_t): Renamed from totime_t.
14055         (setsid, __read, __write): New functions.
14056         (cwait, spawnvp, R, D, getrusage, _execve, _fork, _wait): Delete.
14057         * libc/sys/win32/{dirsearch.c,getlogin.c,misc.c,resource.c,passwd.c,
14058         times.c,spawn.c,pipe.c,wait.c,termios.c,ioctl.c,uname.c}: New files.
14059         * libc/sys/win32/console.c: Update to new definition of __hmap.
14060         * libc/sys/win32/Makefile.in: Build new files.
14061         * libc/sys/win32/sys/{dirent.h,winerror.h,wait.h,termios.h}: New files.
14062         * libc/sys/win32/sys/{ioctl.h,utsname.h}: New files.
14063         * libc/sys/win32/sys/strace.h: Renamed from ptrace.h.
14064         * libc/sys/win32/sys/wintypes.h (GetCurrentDirectoryA): Fix prototype.
14065
14066 Thu Aug 10 16:32:52 1995  Doug Evans  <dje@canuck.cygnus.com>
14067
14068         * libc/sys/h8500hms/misc.c (kill): Handle SIGABRT.
14069
14070 Thu Aug 10 12:07:38 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
14071
14072         * libc/stdlib/{dtoa.c, strtod.c}: Merged assorted changes that
14073         have been made to the master dtoa.c sources (from netlib.att.com)
14074         since they were integrated into newlib in early 1992.  Fixes
14075         problems with storage leaks and handling of numbers with very
14076         negative exponents.
14077         
14078 Wed Aug  9 14:18:39 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
14079
14080         * Makefile.in (all): set rootpre and srcrootpre before calling
14081         sub-makes.
14082
14083 Tue Aug  8 17:20:45 1995  steve chamberlain  <sac@slash.cygnus.com>
14084
14085         * libc/sys/win32/crt0.c: Change __hmap usage.
14086         * libc/sys/win32/exceptions.c: Use _ptrace call.
14087         * libc/sys/win32/syscalls.c: Use _ptrace call.
14088         (read, write): Cope with DOS style CRLF when in TEXT mode.
14089         * libc/sys/win32/syscalls.h: Declare hinfo struct.
14090         * libc/sys/win32/user32.def: Get DefWindowProc arg list right.
14091         * libc/sys/win32/sys/fcntl.h, ptrace.h: New.
14092         * libc/sys/win32/sys/windows.h: Fill in rest of messages.
14093         * libc/sys/win32/sys/wintypes.h: Fix attribute syntax.
14094
14095 Mon Aug  7 13:04:54 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
14096
14097         * libc/include/math.h (cabs, cabsf, drem, dremf): New declarations.
14098
14099         * libm/math/{w_cabs.c, wf_cabs.c, w_drem.c, wf_drem.c}: New files,
14100         wrappers for hypot() and remainder() for BSD libm compatibility.
14101         These are public domain implementations written by me for the
14102         NetBSD libm some time ago.  Note cabs() is required by ucbtest.
14103         * libm/math/Makefile.in (obj): Added w_cabs.o and w_drem.o.
14104         (fobj): Added wf_cabs.o and wf_drem.o.
14105
14106 Thu Aug  3 08:13:05 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
14107
14108         * libc/sys/h8500hms/misc.c: New file.
14109         * libc/sys/h8500hms/Makefile.in (OFILES): Add misc.o.
14110
14111 Wed Aug  2 16:46:27 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
14112
14113         * libc/time/localtime.c (localtime): Fix problem with leap year
14114         handling.  Stole algorithm from Arthur David Olson's tz code.
14115         
14116 Mon Jul 31 10:21:54 1995  steve chamberlain  <sac@slash.cygnus.com>
14117
14118         * configure.in: (z8k-*sim): Renamed z8k-*-coff.
14119
14120         * libc/sys/z8ksim/glue.c (_getpid, _kill): New
14121         (_exit): Use argument.
14122
14123 Fri Jul 28 15:17:04 1995  Doug Evans  <dje@canuck.cygnus.com>
14124
14125         * libc/sys/win32/sys/winbase.h (_WINBASE_H): Define.
14126
14127 Wed Jul 26 16:24:19 1995  steve chamberlain  <sac@slash.cygnus.com>
14128
14129         * libc/sys/sh/trap.S (perrno): Align correctly. (pr 7532)
14130
14131 Mon Jul 24 13:42:52 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
14132
14133         * configure.in (sparc*): Add -DMALLOC_ALIGNMENT=8 to
14134         target_cflags.
14135
14136 Mon Jul 24 11:42:07 1995  steve chamberlain  <sac@slash.cygnus.com>
14137
14138         * libc/sys/win32/crt0.c (mainCRTStartup):  Look for
14139         ptrace with case insensitivity
14140         * libc/sys/win32/{user32.def, gdi32.def, exceptions.c, screen.c,
14141         sys/winbase.h,  sys/windows.h, sys/wintypes.h, sys/winuser.h}:
14142         New files.
14143
14144 Fri Jul 21 11:22:26 1995  Doug Evans  <dje@canuck.cygnus.com>
14145
14146         * Makefile.in: Multilib support moved to ../cfg-ml-{com,pos}.in.
14147         (MULTITOP, MULTIDIRS, MULTISUBDIR, MULTIDO, MULTICLEAN): New variables.
14148         (all, install, *clean): Use new multilib support.
14149         * configure.in: Multilib support moved to ../cfg-ml-{com,pos}.in.
14150
14151 Fri Jul 21 07:11:42 1995  steve chamberlain  <sac@slash.cygnus.com>
14152
14153         * libc/include/sys/signal.h (__WIN32__): New.
14154
14155         * configure.in (i386-*-win32): Remobe SBRK_IS_ALLOC.
14156
14157         * libc/stdlib/mprec.c (Balloc): Fix trampling problem.
14158         (ulp, b2d): Handle 32 bit doubles.
14159         * libc/stdlib/mprec.h:  Handle 32 bit doubles.
14160         * libc/stdlib/strtod.c (_strtod_r): Ditto.
14161
14162 Fri Jul 14 08:24:58 1995  steve chamberlain  <sac@slash.cygnus.com>
14163
14164         from medp@primag.co.uk:
14165         * libc/stdio/setvbuf.c (setvbuf): Fix line buffering on
14166         dynamically allocated buffers.
14167
14168 Thu Jul 20 10:11:03 1995  Fred Fish  <fnf@fishbowl>
14169
14170         * libc/include/sys/unistd.h (_exit):  Add _ATTRIBUTE ((noreturn)).
14171         * libc/stdlib/exit.c (unistd.h):  Include to pick up _exit() declaration.
14172
14173 Thu Jul 20 10:16:25 1995  Michael Meissner  <meissner@tiktok.cygnus.com>
14174
14175         * configure.in (powerpc): Fix previous fix.
14176
14177 Wed Jul 19 14:08:55 1995  Michael Meissner  <meissner@tiktok.cygnus.com>
14178
14179         * configure.in (powerpc-*eabiaix*): Update PowerPC multilib
14180         directories for this target.
14181
14182 Wed Jul 19 00:34:30 1995  Jeffrey A. Law  <law@rtl.cygnus.com>
14183
14184         * configure.in (hppa): Add machine_dir definition.
14185         * libc/machine/hppa: New directory with PA specific implementations
14186         of the basic memory/string functions.
14187
14188 Tue Jul 18 21:16:00 1995  Michael Meissner  <meissner@tiktok.cygnus.com>
14189
14190         * configure.in: Update current PowerPC multilib directories.
14191         Split big and little endian configurations.
14192
14193 Tue Jul 18 11:55:33 1995  Ian Lance Taylor  <ian@cygnus.com>
14194
14195         * configure.in: Add --enable-single-float option to configure to
14196         control use of MIPS single-float directories.  Default to yes.
14197
14198         * Makefile.in (all): Don't recurse into multilib directory if it
14199         does not exist.
14200
14201 Mon Jul 17 15:51:30 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
14202
14203         * libc/sys/sh/syscalls.c: Fix typo.
14204
14205 Mon Jul  3 14:38:52 1995  Steve Chamberlain  <sac@slash.cygnus.com>
14206
14207         * Makefile.in, libc/Makefile.in, libc/sys/Makefile.in:
14208         Pass down DLLTOOL.
14209         * libc/include/process.h: Define WAIT_CHILD.
14210         * libc/include/types.h: Get sizes right for win32.
14211         * configure.in (i386-*-pe): Becomes i386-win32.
14212         * libc/sys/win32/{crt0.c, kernel32.def, longjmp.c, setjmp.c, syscalls.c
14213         wintypes.h,sys/file.h,sys/resource.h}: Second pass.
14214         * libc/stdlib/mallocr.c: Don't round up memory block if SBRK_IS_ALLOC
14215         is defined.
14216
14217 Wed Jun 28 18:34:54 1995  Steve Chamberlain  <sac@slash.cygnus.com>
14218
14219         * configure.in (i[345]86-*-pe):  New target (NT).
14220         * host/any: DLLTOOL new.
14221         * libc/sys/win32/{crt0.c, kernel32.def, longjmp.c, setjmp.c, syscalls.c
14222         wintypes.h,sys/file.h,sys/resource.h}: Preliminary support for
14223         WIN32 (just enough to cross host the comp-tools).
14224
14225 Thu Jun 22 11:45:18 1995  Doug Evans  <dje@canuck.cygnus.com>
14226
14227         * libc/machine/h8300/{cmpsi.S,ucmpsi.S,divhi3.S,mulhi3.S,mulsi3.S}:
14228         Deleted.  These files live in gcc/config/h8300/lib1funcs.asm now.
14229
14230 Mon Jun 19 11:40:40 1995  Doug Evans  <dje@canuck.cygnus.com>
14231
14232         * libc/include/machine/ieeefp.h (arm): Change to always be
14233         __IEEE_BIG_ENDIAN (even on little endian ARM's).
14234
14235 Thu Jun  8 14:22:28 1995  Steve Chamberlain  <sac@slash.cygnus.com>
14236
14237         * libc/sys/crt0.S: Initialze sp, and call exit after main.
14238         * libc/sys/syscalls.c (abort): New.
14239         * configure.in (arm): Define ABORT_PROVIDED.
14240
14241 Wed Jun  7 14:04:35 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
14242
14243         * configure.in (powerpc): Define multidirs.
14244
14245 Mon Jun  5 16:10:13 1995  Doug Evans  <dje@canuck.cygnus.com>
14246
14247         * libc/sys/arm/crt0.S: Add __USER_LABEL_PREFIX__ support.
14248
14249 Thu Jun  1 10:51:47 1995  Sean Eric Fagan <sef@cygnus.com>
14250
14251         * configure.in (sparclite): Delete target_cflags.  Define multidirs.
14252
14253 Wed May 24 14:23:25 1995  Steve Chamberlain  <sac@slash.cygnus.com>
14254
14255         * configure.in, libc/include/machine/ieeefp.h: Modified
14256         for arm:
14257         libc/machine/arm/*, libc/sys/arm/*: New
14258
14259 Tue May 23 13:53:07 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
14260
14261         * libc/include/machine/ieeefp.h: Use __PPC__ instead of
14262           __powerpc__ when determining endianness.
14263
14264 Wed May 10 07:55:56 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
14265
14266         * configure.in (m68*): Add multidir for the m68332.
14267
14268         * host/any (CC): Fix typo in last change.
14269
14270 Fri Apr 14 22:20:31 1995  Ken Raeburn  <raeburn@cujo.cygnus.com>
14271
14272         * libc/include/sys/config.h: Test __m68k__ instead of __m68000__
14273         when determining endianness.
14274         * libc/include/machine/ieeefp.h: Ditto.
14275         * libc/machine/m68k/setjmp.S: Use '&' instead of '#' for immediate
14276         operands.
14277
14278 Fri Apr 14 14:14:29 1995  Doug Evans  <dje@chestnut.cygnus.com>
14279
14280         * libc/include/errno.h (ENOTEMPTY): Define.
14281
14282 Thu Apr  6 12:21:20 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
14283
14284         * configure.in (sparc-sun-sunos*): Add -DMALLOC_ALIGNMENT=8 to
14285           target_cflags.
14286
14287         * libc/sys/sun4/Makefile.in (COPYOFILES): Added rem.o, multiply.o,
14288           and umultiply.o.
14289
14290         * libc/stdio/tmpnam.c (worker): Unconditionally increment count
14291           instead of only when open succeeds.  ANSI requires that multiple
14292           calls to tmpnam() result in different files.
14293
14294         * libc/sys/sun4/Makefile.in (COPYRENAMEOFILES): New macro, list of
14295           objects pulled in from /lib/libc.a that must be renamed before
14296           being pulled into newlib.  /lib/libc.a's div.o conflicted with
14297           newlib's file with the same name.
14298
14299         * libc/stdlib/ldiv.c (ldiv): Call labs() instead of abs().
14300
14301         * host/any (CC, AS, AR, RANLIB): Changed so that executables in
14302           the build tree will only be used if the executables are present
14303           (instead of just the Makefiles).
14304
14305         * libc/include/stdlib.h (mblen, mbtowc, wctomb, mbstowcs,
14306           wcstombs): Define.
14307         * libc/stdlib/{mblen.c, mbstowcs.c, wcstombs.c}: New files, null
14308           versions of these functions that I orignally wrote for the
14309           NetBSD C library.
14310         * libc/stdlib/{mbtowc.c, wctomb.c}: Replaced functions with
14311           versions I wrote for NetBSD.
14312
14313 Wed Mar 29 12:42:42 1995  Kung Hsu  <kung@mexican.cygnus.com>
14314
14315         * libc/sys/sparclite/Makefile.in: add crt0.s and make info.
14316         * libc/sys/sparclite/crt0.s: ditto.
14317
14318 Tue Mar 28 20:28:03 1995  Rob Savoye  <rob@rtl.cygnus.com>
14319
14320         * configure.in: Add soft-float for proelf.
14321
14322 Mon Mar 27 12:07:56 1995  Steve Chamberlain  <sac@bang.hack.com>
14323
14324         * libc/stdlib/mprec.h (Bcopy): Copy the right number
14325         of bytes.
14326
14327 Mon Mar 27 11:24:22 1995  Doug Evans  <dje@chestnut.cygnus.com>
14328
14329         * Makefile.in (all): Depend on `force'.
14330         * configure.in (syscall_dir): Renamed from fake_sys_dir.
14331         (libc_syscall_lib): Renamed from libc_fake_sys_lib.
14332         (LIBC_SYSCALL_LIB): Renamed from LIBC_FAKE_SYS_LIB.
14333         * libc/Makefile.in: Likewise.
14334         * libc/include/reent.h: Update syscall references.
14335         (_fcntl_r): Add prototype.
14336         * libc/syscalls/*.c #include <reent.h>.
14337         (*) Call reentrant version if REENTRANT_SYSCALLS_PROVIDED.
14338
14339 Mon Mar 20 16:57:39 1995  Doug Evans  <dje@deneb.cygnus.com>
14340
14341         * libc/include/sys/stat-dj.h (S_ISBLK): Define.
14342         (S_ISCHR, S_ISDIR, S_ISFIFO, S_ISREG): Define.
14343         * libc/include/sys/stat.h (stat-dj.h): Include ifdef MSDOS.
14344         (time.h, sys/types.h): Always include (even if MSDOS).
14345         (stat): Fix prototype.
14346
14347 Fri Mar 10 11:30:38 1995  Ian Lance Taylor  <ian@cygnus.com>
14348
14349         * configure.in (i[345]86-*-go32): Compile with -DNO_EXEC.
14350
14351 Mon Feb 27 18:00:39 1995  Jim Wilson  <wilson@chestnut.cygnus.com>
14352
14353         * libc/machine/h8500/psi.S (EXTPSIHI_RN_SN): Ifdef out.
14354
14355 Mon Feb 13 16:10:03 1995  Ian Lance Taylor  <ian@cygnus.com>
14356
14357         * libc/include/regdef.h: New file.
14358         * libc/machine/mips/machine/regdef.h: New file.
14359
14360 Mon Feb  6 15:24:29 1995  Doug Evans  <dje@canuck.cygnus.com>
14361
14362         * libc/sys/sparc64/sys/fcntl.h (open): Add ellipsis.
14363
14364 Fri Jan 27 13:52:10 1995  Steve Chamberlain  <sac@splat>
14365
14366         * libc/sys/sh/crt0.S: Pass main's return to exit.
14367         * libc/sys/sh/trap.S: Put errno in the right place.
14368
14369 Tue Jan 24 18:57:56 1995  Ian Lance Taylor  <ian@sanguine.cygnus.com>
14370
14371         * libm/math/e_rem_pio2.c (__ieee754_rem_pio2): Integrate change
14372         from fdlibm 5.2: handle |x| < 3pi/4 more efficiently.
14373         * libm/math/ef_rem_pio2.c: Likewise.
14374         * libm/math/e_log10.c: Remove unused static one.
14375         * libm/math/ef_log10.c: Likewise.
14376         * libm/math/s_frexp.c: Likewise.
14377         * libm/math/sf_frexp.c: Likewise.
14378
14379 Sun Jan 22 21:26:14 1995  Steve Chamberlain  <sac@splat>
14380
14381         * libc/sys/go32/Makefile.in, clock.S, dir.c, setjmp.S, stat.c,
14382         longjmp.S: Upgraded.
14383         * libc/sys/go32/sys/setjmp.h: Upgraded.
14384         * libc/sys/go32/sys/go32.h, dpmi.h: New files.
14385
14386 Fri Jan 20 18:33:18 1995  Ian Lance Taylor  <ian@sanguine.cygnus.com>
14387
14388         * configure.in: Add many entries to multidirs for mips targets.
14389
14390 Wed Jan 18 10:19:25 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
14391
14392         * libm/math/e_jn.c (__ieee754_yn): Integrate change from fdlibm
14393           5.2 which fixes bug where jn(-1,x) is three times larger than
14394           the actual answer.
14395         * libm/math/ef_jn.c (__ieee754_ynf): Likewise.
14396
14397 Sun Jan 15 21:48:58 1995  Steve Chamberlain  <sac@splat>
14398
14399         * libc/sys/w65/sys/syscalls.h: New file
14400         * libc/include/machine/ieeefp.h: W65 support.
14401         * libc/include/sys/config.h: Ditto.
14402         * libc/machine/w65/Makefile.in, cmpsi, divsi3, lshrhi.s, mulsi3.c,
14403         sdivhi3.s, smulhi3.s, udivhi3.s, umodhi3.s: New files.
14404         * libc/sys/w65/Makefile.in, crt0.c, syscalls.c, trap.c: New files.
14405
14406 Wed Jan 11 15:59:01 1995  Ian Lance Taylor  <ian@sanguine.cygnus.com>
14407
14408         * libc/sys/Makefile.in (lib.a, crt0.o): Depend upon subs.
14409
14410 Tue Jan  3 15:57:03 1995  Rob Savoye  <rob@darkstar.cygnus.com>
14411
14412         * Makefile.in, configure.in: Remove any references to the old
14413         "stub" dir.
14414
14415 Thu Dec 22 10:42:08 1994  Ian Lance Taylor  <ian@sanguine.cygnus.com>
14416
14417         * libc/syscalls/sysopen.c: Write _HAVE_STDC version of open, which
14418         uses ... in prototype.
14419
14420
14421 Wed Nov 30 08:39:42 1994  Ian Lance Taylor  <ian@rtl.cygnus.com>
14422
14423         * libc/sys/a29khif/sys/libconfig.h: Remove.
14424         * libc/sys/go32/sys/libconfig.h: Remove.
14425         * libc/sys/sun4/sys/libconfig.h: Remove.
14426         * libc/sys/sysvi386/sys/libconfig.h: Remove.
14427         * libc/sys/sysvnecv70/sys/libconfig.h: Remove.
14428         * libc/sys/sparc64/sys/libconfig.h: Remove.
14429
14430         * libc/include/_ansi.h (_FLOAT_ARG, _FLOAT_RET): Don't define.
14431         * libc/include/sys/config.h (_FLOAT_ARG, _FLOAT_RET): Likewise.
14432         * libc/include/math.h: Change all uses of _FLOAT_RET and
14433         _FLOAT_ARG to float.
14434         * libm/test/math.c: Likewise.
14435         * testsuite/libm.sac/math.c: Likewise.
14436         * testsuite/libm.sac/working/math.c: Likewise.
14437
14438 Wed Nov 23 22:39:28 1994  Steve Chamberlain  (sac@jonny.cygnus.com)
14439
14440         * libc/sys/sh/trap.s,crt0.s,setjmp.s: Renamed with .S so that
14441         gcc calls gas with endian option.
14442         * configure.in (sh): Build little endian version too.
14443
14444 Wed Nov 16 18:21:45 1994  Ian Lance Taylor  <ian@sanguine.cygnus.com>
14445
14446         * configure.in: Configure big and little endian versions for MIPS
14447         targets.
14448
14449 Sat Nov 12 21:12:51 1994  Doug Evans  <dje@canuck.cygnus.com>
14450
14451         * libc/include/limits.h: Deleted.
14452         * libc/include/machine/limits.h: Deleted.
14453
14454 Thu Nov 10 15:32:44 1994  Rob Savoye  <rob@rtl.cygnus.com>
14455
14456         * ChangeLog: Remove stub directory. This has all been rewritten
14457         and moved to devo/libgloss.
14458
14459 Thu Sep 29 18:31:04 1994  Ian Lance Taylor  <ian@sanguine.cygnus.com>
14460
14461         * Makefile.in (dvi): Add to info target, use $@ in sub make.
14462         (docs): Merge into info target.
14463         * libm/Makefile.in (dvi): Add $(srcdir).
14464         * libm/math/Makefile.in (chobjs): Remove underscores from file
14465         names.  Texinfo doesn't like them.
14466         (wacos.def, ...): Add explicit targets for all .def files.
14467         * libm/math/math.tex: Remove underscores from @include file names.
14468         * doc/Makefile.in (dvi): Add dummy target.
14469         * testsuite/Makefile.in (dvi): Add dummy target.
14470
14471 Mon Sep 26 21:17:46 1994  Doug Evans  (dje@canuck.cygnus.com)
14472
14473         * Makefile.in (VERSION): Define.  For net newlib releases.
14474
14475 Thu Sep 22 19:01:26 1994  Doug Evans  (dje@canuck.cygnus.com)
14476
14477         * README: New file.
14478
14479 Mon Sep 19 16:35:23 1994  Jim Wilson  (wilson@sphagnum.cygnus.com)
14480
14481         * libc/stdlib/ecvtbuf.c (_gcvt): Undo last change.
14482
14483 Mon Sep 19 11:44:23 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
14484
14485         * libc/stdlib/setenv.c (_findenv): Declare.
14486
14487         * libc/include/sys/fcntl.h: Fix declarations of open, creat, and
14488         fcntl to not use _EXFUN, and change string parameters to open and
14489         creat to be ``const char *''.
14490         * libc/sys/sparc64/sys/fcntl.h: Likewise.
14491         * libc/sys/sparc64/creat.c (creat): Make PATH const.
14492         * libc/syscalls/sysopen.c: Include <fcntl.h>.
14493         (open) Make _FILE const.
14494         * libc/sys/z8ksim/glue.c (_open): Make BUF const.
14495         (_creat): Make PATH const.
14496         * libc/sys/h8300hms/syscalls.c (_open): Make PATH const.
14497         * libc/sys/h8500hms/syscalls.c (_open): Likewise.
14498         * libc/sys/m88kbug/syscalls.c (open): Likewise.
14499         * libc/sys/sh/syscalls.c (_open): Likewise.
14500         * stub/shared/glue.c (open): Make BUF const.
14501         * stub/ex93x/syscalls.c (open): Make FILENAME const.
14502
14503 Thu Sep  8 16:39:12 1994  Steve Chamberlain  (sac@jonny.cygnus.com)
14504
14505         * libc/include/errno.h: Add ENMFILE
14506         * libc/include/sys/config.h: Support Z8000.
14507         * libc/include/sys/signal.h: New signals for go32.
14508         * libc/machine/h8500/psi.S (__addpsir0r0): New function
14509         * libc/machine/h8500/cmpsi.S (__ucmppsi2): New function
14510         * libc/machine/sh/sdivsi3.s (__sdivsi3): Rewritten.
14511         * libc/stdlib/mallocr.c (_morecore_r): Minimum chunk
14512         size is variable, depending upon CHUNK_POWER.
14513         * libc/sys/go32/*.c: Upgrade to new go32 stuff.
14514
14515 Sun Sep  4 17:42:43 1994  Jim Wilson  (wilson@sphagnum.cygnus.com)
14516
14517         * libc/stdlib/ecvtbuf.c (_gcvt): Output '-' for negative numbers.
14518
14519 Fri Sep  2 10:56:01 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
14520
14521         * libc/include/_ansi.h (_PARAMS): Don't define if already defined.
14522
14523 Wed Aug 24 11:11:03 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
14524
14525         * configure.in: Change i[34]86 to i[345]86.
14526
14527         * libc/include/math.h: Don't define HUGE_VAL if it is already
14528         defined.
14529
14530 Wed Aug 17 15:18:02 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
14531
14532         * testsuite/libm.sac/test_erfc.c: Correct some result values.
14533         * testsuite/libm.sac/test_gammaf.c: Likewise.
14534         * testsuite/libm.sac/test_sin.c: Likewise.
14535         * testsuite/libm.sac/test_tanh.c: Likewise.
14536
14537 Tue Aug 16 16:12:53 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
14538
14539         * libc/include/machine/ieeefp.h: Don't try set endianness if it is
14540         already set.  Define typedefs __int32_t and __uint32_t.
14541         * libc/include/math.h: Include <machine/ieeefp.h>.
14542         (union __dmath): Use __uint32_t.
14543         * libm/math/fdlibm.h, libm/math/*.c: Use __int32_t and __uint32_t
14544         instead of int and unsigned int.
14545
14546 Thu Aug 11 15:16:09 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
14547
14548         Replace the math library with the SunPRO fdlibm package.
14549         * libm/math: Completely changed all files.
14550         * libm/ieeefp: Remove contents and directory.
14551         * libm/Makefile.in (LIBM_FP_LIB): Remove.
14552         (SUBDIRS): Just set to math/lib.a.
14553         * libm/libm.texinfo: Updated for new library.
14554         * libc/include/math.h: Extensive changes for new math library.
14555         * libc/include/ieeefp.h (isnanf, isinff, finitef): Change argument
14556         from _FLOAT_ARG to float.
14557         (maxpowtwo, maxpowtwof): Don't declare.
14558         * configure.in (fp_dir): Removed; was always ieeefp anyhow.
14559         (libm_fp_lib): Removed.
14560         * Makefile.in (MATHOBJS_IN_LIBC): Updated with new file names.
14561         * testsuite/libm.paranoia/Makefile.in (check): Correct --srcdir
14562         argument to ${RUNTEST}.
14563         * testsuite/libm.sac/Makefile.in (LOCAL_CFLAGS): Define.
14564         (.c.o): New rule.
14565         (RUNTESTFLAGS): Set CC and CFLAGS.
14566         (TESTS): Remove test_log2 and test_log2f.
14567         (${TESTS}): Pass ${LOCAL_CFLAGS}, not ${CFLAGS}.
14568         * testsuite/libm.sac/math.c (run_vector_1): Use float, not
14569         _FLOAT_ARG, for single precision argument type.
14570         * testsuite/libm.sac/sac.exp: Treat an error in bit 63 as an
14571         expected failure.  Close the input pipe.
14572         * testsuite/libm.sac/test.c (test_sok, test_iok, test_scok):
14573         Correct misspelling of inaccurate.
14574         (test_mok): Use ``inaccurate'', not ``wrong''.
14575         * testsuite/libm.sac/{test_acos.c, test_acosh.c, test_asin.c,
14576         test_asinh.c, test_atan.c, test_atanh.c, test_ceil.c,
14577         test_ceilf.c, test_cos.c, test_cosh.c, test_erf.c, test_erf.c,
14578         test_fabs.c, test_floor.c, test_floorf.c, test_fmod.c,
14579         test_fmodf.c, test_gamma.c, test_log1p.c, test_log1pf.c,
14580         test_yn.c): Correct many result values.  Many are still wrong.
14581
14582         * libc/stdlib/ecvtbuf.c (print_e): If _dtoa_r sets decpt to 9999,
14583         just copy the string.
14584         (_gcvt): Always return the buffer.
14585
14586 Tue Aug  9 13:43:23 1994  J.T. Conklin  (jtc@phishhead.cygnus.com)
14587
14588         * bcopy.c: fixed documentation, bcopy was not specified by ANSI.
14589
14590 Wed Aug  3 05:39:41 1994  D. V. Henkel-Wallace  (gumby@cygnus.com)
14591
14592         * libc/include/sys/reent.h: (struct _Bigint): add _reclaim
14593         structure.
14594         (struct _reent): add _p5s, _cvtlen, _cvtbuf.
14595         (_reclaim_reent): declare new entry point.
14596         * libc/reent/reent.c (cleanup_glue, _reclaim_reent): new
14597         functions.
14598
14599         * libc/stdlib/mprec.c (Balloc): Keep track of every struct bigint
14600         ever allocated, so that we can later reclaim them all.
14601         (pow5mult): make reentrant.
14602
14603         * libc/stdlib/ecvtbuf.c (fcvtbuf, ecvtbuf): extend these functions
14604         so that when given NULL as a buffer, return a pointer to static
14605         space in the rent structure.  This is not documented behaviour;
14606         it's only to support ecvt and fcvt, which aren't ANSI anyway.
14607         * libc/stdlib/efgcvt.c (fcvt, ecvt) Use new functionality (and
14608         therefore become reentrant).
14609         
14610         * libc/stdlib/dtoastub.c: remove spurious inclusion of mprec.h.
14611
14612 Mon Aug  1 16:52:24 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
14613
14614         * libc/include/machine/ieeefp.h: Check _AM29K, not ___AM29K__.
14615
14616 Thu Jul 28 15:40:21 1994  J.T. Conklin  (jtc@phishhead.cygnus.com)
14617
14618         * Makefile.in: Make link to libg.a after libc.a; this is needed
14619           for the testsuites to build executables when everything comes
14620           from the tree.
14621
14622 Mon Jun 27 17:14:29 1994  Bill Cox  (bill@rtl.cygnus.com)
14623
14624         * libc/Makefile.in: Add a VERSION variable so we can keep track.
14625         * libm/Makefile.in: Add a VERSION variable so we can keep track.
14626
14627 Wed Jun 22 10:26:00 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
14628
14629         * libc/include/stdio.h: Use __VALIST, not va_list.
14630
14631 Tue May 17 15:43:28 1994  Bill Cox  (bill@rtl.cygnus.com)
14632
14633         * testsuite/config/unix-libm.exp, testsuite/lib/libm.exp,
14634         testsuite/libm.sac/execute.exp:
14635           Replace error proc calls with perror calls.
14636
14637 Wed May 11 09:25:28 1994  Doug Evans  (dje@canuck.cygnus.com)
14638
14639         * libc/include/*.h: #include "_ansi.h" instead of <_ansi.h>.
14640         * libc/include/time.h: #define NULL as 0L.
14641
14642 Mon May  9 18:41:20 1994  Doug Evans  (dje@canuck.cygnus.com)
14643
14644         * host/any (INCLUDES): Delete -I of gcc/include, gcc -B takes
14645         care of it.
14646
14647 Mon May  9 18:39:39 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
14648
14649         * libc/include/sys/signal.h: Check for __GO32__, not __i386__ and
14650         not __unix__.
14651
14652 Sat May  7 17:07:36 1994  Steve Chamberlain  (sac@cygnus.com)
14653
14654         * configure.in (TARGET_CFLAGS): Set -O2 as default.
14655         (z8k-*-*): Use syscalls fake sys dir.
14656         * libc/sys/z8k/glue.c: Rename syscalls.
14657         * libc/sys/go32/Makefile.in: Use new routines.
14658         * libc/machine/Makefile.in: Fix typo in ln stuff.
14659
14660 Thu May  5 13:47:48 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
14661
14662         * Makefile.in (libm.a, crt0.o): Use cp if ln fails.
14663         * libc/Makefile.in (crt0.o): Likewise.
14664         * libc/machine/Makefile.in (lib.a): Likewise.
14665         * libc/sys/Makefile.in (lib.a, crt0.o): Likewise.
14666
14667         All Makefile.in files: Added mostlyclean, realclean and distclean
14668         targets.
14669
14670         * Makefile.in: Don't bother to unexport XTRAFLAGS or
14671         XTRAFLAGS_FOR_TARGET, since they are no longer passed down from
14672         the top level Makefile.
14673
14674 Tue Apr 26 15:10:34 1994  Doug Evans  (dje@canuck.cygnus.com)
14675
14676         * libc/sys/sparc64/sys/stat.h: New file.
14677         * libc/sys/sparc64/sys/time.h: New file.
14678         * libc/sys/sparc64/sys/types.h: New file.
14679
14680 Fri Apr 22 12:58:24 1994  Stan Shebs  (shebs@andros.cygnus.com)
14681
14682         * stub/ex93x/crt0.s (start): Add code to clear bss.
14683
14684 Wed Apr 13 10:34:58 1994  Doug Evans  (dje@canuck.cygnus.com)
14685
14686         * libc/include/sys/types.h (time_t): Properly protect inside
14687         #ifndef __time_t_defined.
14688
14689         * libc/stdio/fileno.c: New file.
14690         * libc/stdio/Makefile.in (OFILES, CHEWOUT_FILES): Add fileno.
14691         (fileno.o): Add dependency.
14692         * libc/include/stdio.h (__sgetc): Rename never to _never.
14693         (fileno macro): Disable, needs to do CHECK_INIT first.
14694
14695 Mon Apr 11 17:37:09 1994  Bill Cox  (bill@rtl.cygnus.com)
14696
14697         * testsuite/Makefile.in (EXPECT, RUNTEST): Set these for the check
14698         goal.
14699
14700         * testsuite/Makefile.in (check): Set TCL_LIBRARY for runtest.
14701         * testsuite/libm.paranoia/Makefile.in (check): Set TCL_LIBRARY for
14702         runtest.
14703         * testsuite/libm.sac/Makefile.in (check): Set TCL_LIBRARY for
14704         runtest.
14705
14706 Sat Apr  9 16:18:09 1994  Doug Evans  (dje@cygnus.com)
14707
14708         * libc/sys/sparc64/sys/fcntl.h: New file, define solaris versions
14709         of the various constants.
14710
14711 Thu Apr  7 21:19:07 1994  Mark Eichin  (eichin@cygnus.com)
14712
14713         * libc/include/math.h: #ifndef __math_68881 around things which
14714         conflict with the (gcc-provided) inline functions in
14715         gcc/ginclude/math-68881.h.
14716
14717 Thu Apr  7 02:50:43 1994  Doug Evans  (dje@cygnus.com)
14718
14719         * libc/include/_syslist.h (_gettimeofday): Define.
14720         (_times): Ditto.
14721         * libc/include/reent.h: #include <machine/types.h> to get _CLOCK_T_.
14722         (struct tms, timeval, timezone): Declare.
14723         (_gettimeofday_r, _times_r): Declare.
14724         * libc/include/time.h (_CLOCK_T_): Don't #undef.  Remove
14725         #ifdef _CLOCK_T_ surrounding definition of clock_t.
14726         (time_t): Add multiple definition protection, __time_t_defined.
14727         * libc/include/sys/time.h: Don't #include <time.h>.
14728         Always define struct timezone (remove #ifndef _TIME_H_).
14729         * libc/include/sys/times.h (_CLOCK_T_): Don't #undef.  Remove
14730         #ifdef _CLOCK_T_ surrounding definition of clock_t.
14731         * libc/reent/Makefile.in (OFILES): Add timer.o.
14732         (CHEWOUT_FILES): Add timer.def.  Add timer.o/timer.c dependence.
14733         * libc/reent/timer.c: New file.
14734         * libc/time/clock.c: #include <reent.h>.
14735         (clock): Call _times_r instead of times.
14736         * libc/time/time.c (HAVE_GETTIMEOFDAY): Renamed from
14737         HAVE_GET_TIME_OF_DAY.
14738         Add comment regarding supporting OS routine(s) required (for docs).
14739         #include <reent.h>.
14740         (time): Call _gettimeofday_r instead of gettimeofday.
14741         * libc/time/asctime.c: Fix comment regarding supporting OS routines.
14742         * libc/time/ctime.c: Ditto.
14743         * libc/time/strftime.c: Ditto.
14744         * libc/sys/sparc64/Makefile.in (TEMPLATE_SFILES): Remove gettimeofday.
14745         (TEMPLATE_SFILES_R): Define here.  Also define times.
14746         Add times_r.o/times.S dependence.
14747         (time2.c, junk.c): Deleted.
14748         * libc/sys/sparc64/time2.c: Deleted.
14749         * configure.in (sparc64-*-*): Define HAVE_GETTIMEOFDAY.
14750
14751         * libc/stdio/mktemp.c (_getpid_r): Renamed from _getpid.
14752         * libc/stdio/tmpnam.c (_getpid_r): Ditto.
14753         * libc/sys/sparc64/junk.c: Deleted.
14754
14755 Mon Mar 21 16:51:03 1994  Doug Evans  (dje@canuck.cygnus.com)
14756
14757         * libc/sys/sparc64/Makefile.in: Add times syscall.
14758         * libc/sys/sparc64/crt0.S: Handle stack bias at run time so we can
14759         be used with and without it.  Add comment clarifying Medium/Anywhere
14760         model requirements.
14761         * libc/sys/sparc64/sigsetjmp.S (setjmp, longjmp): Add svr4 support.
14762         * libc/sys/sparc64/sys/syscall.h (SYS_times): Define for sunos4
14763         even if obsolete.
14764
14765 Sun Mar 20 15:51:47 1994  Doug Evans  (dje@cygnus.com)
14766
14767         * configure.in (target_cflags): Move init.
14768         (sparc64-*-*): Define HAVE_BLKSIZE.
14769
14770 Wed Mar  9 10:44:52 1994  Doug Evans  (dje@canuck.cygnus.com)
14771
14772         * libc/include/sys/_types.h: New file.
14773         * libc/include/reent.h: #include it.
14774         Add comment describing REENTRANT_SYSCALLS_PROVIDED and
14775         MISSING_SYSCALL_NAMES.
14776         Sort syscalls.
14777         * libc/include/_syslist.h: Remove _raise.
14778         * libc/reent/signalr.c: New file.
14779         * libc/reent/Makefile.in: Compile it.
14780         * libc/signal/signal.c: Only use ifdef SIMULATED_SIGNALS.
14781         Add doc for raise and _raise_r.
14782         * libc/signal/raise.c: Only use ifndef SIMULATED_SIGNALS.
14783         (raise): Call _raise_r.
14784         (_raise_r): Call _getpid_r and _kill_r.
14785         * libc/stdlib/abort.c: Remove inclusion of stdio.h and _syslist.h.
14786         (abort): Loop forever calling raise and _exit.
14787
14788 Mon Mar  7 14:40:08 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
14789
14790         * configure.in: Remove extraneous echo.
14791
14792 Thu Mar  3 12:14:22 1994  Doug Evans  (dje@canuck.cygnus.com)
14793
14794         * libc/sys/sparc64/sys/dirent.h (MAXNAMLEN): #undef to avoid
14795         collision with unistd.h, and fix for svr4.
14796
14797 Wed Mar  2 13:55:25 1994  Doug Evans  (dje@canuck.cygnus.com)
14798
14799         * libc/stdio/local.h (_llicvt): Declare.
14800         (CVT_BUF_SIZE): Define (and buffer size from 512 to 128).
14801         * libc/stdio/cvt.c: Include "local.h" to get CVT_BUF_SIZE.
14802         (_llicvt): Define.
14803         (_sicvt): Fix function header (`value' is short).
14804         * libc/stdio/vfprintf.c (_vfprintf_r): Use CVT_BUF_SIZE.
14805         Add printing of long long's support.
14806         Add printing of 8 byte pointer support.
14807
14808 Fri Feb 11 21:52:11 1994  Steve Chamberlain  (sac@sphagnum.cygnus.com)
14809
14810         * libc/sys/sh/syscalls.c (pipe, execv, wait, fork, utime, chown,
14811         stat, chmod): New hooks. 
14812         (sbrk): Abort if stack and heap collide.
14813         * libc/machine/sh/udivsi3, libc/machine/sh/sdivsi3 Modified to
14814         shortcut when given small args.
14815         * libc/machine/sh/setjmp.s: Rewritten.
14816         * libc/machine/sh/strcmp.s (strcmp): New function takes advantage
14817         of cmp/str instruction.
14818
14819 Wed Feb  9 15:12:35 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
14820
14821         * configure.in: Accept powerpc* as a CPU type, using fp_dir ieeefp
14822         and machine_dir powerpc.
14823         * libc/include/machine/setjmp.h, libc/include/machine/ieeefp.h:
14824         Add cases for __powerpc__.
14825         * libc/machine/powerpc/Makefile.in, libc/machine/powerpc/setjmp.S:
14826         New files.
14827
14828         * libc/include/stdio.h (_iprintf_r): Declare correctly.
14829
14830 Thu Jan 27 10:36:27 1994  Steve Chamberlain  (sac@cygnus.com)
14831
14832         * libc/stdlib/callocr.c: New file with _calloc_r in it.
14833         * libc/stdlib/calloc.c (calloc_r): Now in callocr.c
14834
14835 Thu Jan 20 15:14:37 1994  Doug Evans  (dje@canuck.cygnus.com)
14836
14837         * libc/stdlib/ecvtbuf.c (print_f): Remove local "done".
14838         (print_e): More comments to describe args, etc.
14839         "type" arg may now be 'g' or 'G' for %g/G format --> remove
14840         trailing blanks.
14841         (_gcvt): Remove locals decpt, sign, end, p, done.
14842         More comments for print_e invocation.
14843         Pass "type" to print_e as is (g/G).
14844
14845 Wed Jan 19 16:34:18 1994  Rob Savoye  (rob@darkstar.cygnus.com)
14846
14847         * stub/shared/m68k-crt0.S: Changed so it compiles (and runs) on a
14848         stock m68000. 
14849
14850 Mon Jan 17 15:41:53 1994  Doug Evans  (dje@canuck.cygnus.com)
14851
14852         * libc/stdlib/mallocr.c (_morecore_r): Fix aligning of pointer so it
14853         works with any sized pointer, including ones bigger than ints and
14854         longs.
14855
14856 Thu Jan  6 14:53:21 1994  Doug Evans  (dje@canuck.cygnus.com)
14857
14858         * libc/sys/sparc64/{time2.c,utime.S,utime2.c}: New files.
14859
14860 Sat Dec 11 16:17:20 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
14861
14862         * libc/include/stdlib.h (_calloc_r): Add prototype.
14863         * libc/machine/h8500/negsi2.c: New file.
14864         * libc/machine/h8500/divsi3.c: Prevent overflow when dividing v
14865         large unsigned numbers.
14866         * libc/machine/h8500/cmpsi.c: Add cmppsi.
14867         * libc/stdlib/mallocr.c (morecore_r): Fix aligning pointers so it
14868         works when sizeof(size_t) != sizeof(char *).
14869         * libc/stdlib/mprec.c (Balloc): Call calloc rather than malloc to
14870         get play area
14871         * libc/stdlib/mprec.h: Define Just_16 if generating for z8000.
14872
14873 Mon Dec  6 15:59:53 1993  Doug Evans  (dje@rtl.cygnus.com)
14874
14875         * libc/include/assert.h (assert): Handle -traditional.
14876
14877 Tue Nov 16 15:49:24 1993  Mark Eichin  (eichin@cygnus.com)
14878
14879         * Makefile.in: added ; after every "fi" and "done" that wasn't at
14880         the end of a line (ie. anything before a backslash continuation)
14881         so that bash handles them.
14882
14883 Tue Nov 16 12:31:57 1993  david d `zoo' zuhn  (zoo@rtl.cygnus.com)
14884
14885         * libc/sys/go32/lstat.s: new file, copied from stat.s and renamed
14886         stat to lstat
14887
14888 Mon Nov 15 15:50:43 1993  Steve Chamberlain  (sac@jonny.cygnus.com)
14889
14890         * libc/sys/sh/crt0.s, libc/sys/sh/trap.s,
14891         libc/machine/sh/sdivsi3.s, libc/machine/sh/setjmp.s,
14892         libc/machine/sh/udivsi3.s: Use new calling convention.
14893
14894 Mon Nov 15 15:25:38 1993  Mark Eichin  (eichin@cygnus.com)
14895
14896         * libc/include/sys/unistd.h, libc/include/sys/stat.h: ANSI-fy
14897         chmod, access, chdir, chown by making _path const. Also fix _amode
14898         param of access.
14899
14900 Fri Nov 12 20:25:28 1993  Mark Eichin  (eichin@cygnus.com)
14901
14902         * libc/sys/a29khif/_tmpnam.s (_tmpnam): renamed function to
14903         _khif_tmpnam, because it doesn't comply with ANSI but may be
14904         useful anyway. Real tmpnam was already in libc/stdio, and was
14905         colliding with this one (pr 2176.) 
14906         * libc/sys/a29khif/stubs.s (tmpnam): removed tmpnam. This file is
14907         the wrong idea anyhow.
14908
14909 Mon Nov  8 07:50:16 1993  Doug Evans  (dje@canuck.cygnus.com)
14910
14911         * configure.in: Remove h8300h, we have multilib now.
14912
14913 Fri Nov  5 12:37:27 1993  Mark Eichin  (eichin@cygnus.com)
14914
14915         * libc/string/strcasecmp.c, libc/string/strncasecmp.c: new
14916         functions, to get preference over the ones in libiberty (since we
14917         provide correct declarations in <string.h>.
14918         * libc/string/Makefile.in: add support for strncasecmp,
14919         strcasecmp.
14920
14921 Fri Nov  5 09:05:45 1993  D. V. Henkel-Wallace  (gumby@blues.cygnus.com)
14922
14923         * Change netware config not to look for cpu explicitly.
14924
14925 Thu Nov  4 14:21:25 1993  Doug Evans  (dje@canuck.cygnus.com)
14926
14927         * libc/sys/sparc64/{creat.c,junk.c}: New files.
14928         * libc/sys/sparc64/Makefile.in: Add dependencies.
14929
14930 Wed Nov  3 10:42:49 1993  Doug Evans  (dje@canuck.cygnus.com)
14931
14932         * configure.in: Clean up v9 a bit, new "os" aoutv8.
14933
14934 Tue Nov  2 10:00:44 1993  D. V. Henkel-Wallace  (gumby@cygnus.com)
14935
14936         * libc/include/sys/reent.h: make structure smaller by allocating
14937         some stuff when needed.
14938         * libc/signal/signal.c: allocate as needed
14939         * libc/stdio/findfp.c,stdio/local.h: ditto
14940         * libc/stdlib/mprec.c: ditto
14941
14942         * libc/time/localtime.c: don't return a dangling stack ptr.
14943
14944 Wed Sep 29 20:42:34 1993  Rob Savoye  (rob@darkstar.cygnus.com)
14945
14946         * stub/mvme135/crt0.S, stub/mvme135/glue.c: Moved to stub/generic.
14947
14948 Wed Sep 29 16:27:49 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
14949
14950         * libc/include/stdio.h (__sputc): comment out static inline which
14951           confuses coff toolchains.
14952
14953 Thu Sep  2 16:31:36 1993  Mark Eichin  (eichin@cygnus.com)
14954
14955         * libc/sys/a29khif/{_close.s, _fstat.s, _lseek.s, _sbrk.s,
14956         _write.s, getpid.c, kill.c, read.s}:
14957         * libc/sys/a29khif/stubs.s: eliminated stubs that already go
14958         through the syscalls directory.
14959
14960 Fri Oct 29 13:59:58 1993  Jeffrey Wheat  (cassidy@cygnus.com)
14961
14962         * configure.in: fixed double quote gotcha.
14963
14964 Wed Oct 27 15:27:09 1993  Rob Savoye  (rob@darkstar.cygnus.com)
14965
14966         * stub/ex931: stub library for sparclite board.
14967         * stub/idp: Renamed from mc68ec. Added contructor table
14968         stuff to linker script.
14969         * stub/mvme135: Renamed from m68kmvme. Added contructor table
14970         stuff to linker script.
14971
14972 Tue Oct 26 17:01:23 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
14973
14974         * configure.in: Configure testsuites only if they exist.
14975
14976 Tue Oct 26 12:37:11 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
14977
14978         * configure.in: Don't set machine_dir for i386 until there is
14979         something in libc/machine/i386 to compile.  For i[34]86-*-netware*
14980         use sys/netware, don't use signal, define NO_EXEC, ABORT_PROVIDED,
14981         CLOCK_PROVIDED and MALLOC_PROVIDED.
14982
14983         * libc/sys/netware: New directory.  Contains simplistic and
14984         probably incorrect stubs for NetWare.  Should be enough to load
14985         the library.
14986         * libc/sys/netware/crt0.c, libc/sys/netware/environ.c,
14987         libc/sys/netware/getpid.c, libc/sys/netware/link.c: New NetWare
14988         stub files.
14989
14990         * libc/reent/execr.c: Don't use if NO_EXEC is defined.
14991         * libc/reent/sbrkr.c: Don't use if MALLOC_PROVIDED is defined.
14992         * libc/stdlib/abort.c: Don't use if ABORT_PROVIDED is defined.
14993         * libc/time/clock.c: Don't use if CLOCK_PROVIDED is defined.
14994
14995 Mon Oct 25 16:48:08 1993  Roland H. Pesch  (pesch@cygnus.com)
14996
14997         * testsuite/Makefile.in: add "docs" dummy target for consistency
14998         with rest of newlib; turn "info" and "install-info" into dummy
14999         targets, since they wouldn't have worked.  (Depended on
15000         nonexistent "doc" subdir.)
15001
15002 Fri Oct 22 20:37:32 1993  david d `zoo' zuhn  (zoo@rtl.cygnus.com)
15003
15004         * configure.in: handle mips* instead of mips
15005
15006 Thu Oct 21 08:57:24 1993  Ian Lance Taylor  (ian@cygnus.com)
15007
15008         * libc/include/sys/dirent.h: New file.  If it is not overridden by
15009         a version of libc/sys/*/sys/dirent.h, it includes the next
15010         <dirent.h> file in case there is one lurking somewhere.
15011
15012 Fri Oct 15 14:17:40 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
15013
15014         * libc/stdlib/strtoul.c (_strtoul_r): Several changes for ANSI
15015         compliance, namely: Accept a minus sign.  Consider a single 0 with
15016         a radix of 0 as being a conversion.  Determine overflow correctly.
15017         If an overflow occurs, set *ptr to the end of the number, not the
15018         middle.
15019         * lib/stdlib/strtol.c (_strtol_r): Determine overflow correctly.
15020
15021 Thu Oct 14 21:49:52 1993  Doug Evans  (dje@canuck.cygnus.com)
15022
15023         * libc/machine/h8300/divsi3.S (divmodsi4): Fix h8300h case.
15024
15025 Fri Oct  1 17:17:34 1993  Doug Evans  (dje@canuck.cygnus.com)
15026
15027         * Makefile.in (INSTALL): Use $srcrootpre.
15028         (crt0.o): Replace $< with $(CRT0_DIR)/$(CRT0), Sun make
15029         can't handle it.
15030         * libc/Makefile.in (crt0.o): Spell out $<, Sun make can't handle
15031         it.
15032         * libc/sys/Makefile.in (crt0.o, lib.a): Ditto.
15033         * stub/Makefile.in (crt0.o, TARGETLIB): Ditto.
15034         * libc/sys/sparc64/Makefile.in (isatty.o): Sun VPATH lossage.
15035         * libm/math/Makefile.in (matherr.o): Ditto.
15036
15037 Thu Sep 30 11:09:17 1993  Steve Chamberlain  (sac@phydeaux.cygnus.com)
15038
15039         * configure.in: Build multidirs for z8k.
15040         * libc/include/stdlib.h (_strtoul_r): add prototype.
15041         * libc/include/machine/limits.h: Get INT_MIN right for all the z8k family.
15042         * libc/include/machine/setjmp.h: Add for z8k.
15043         * libc/machine/z8k/{mulsi.o, udivsi3.o, umodsi3.o, modsi3.o} obsolete.
15044         * libc/sys/z8ksim/glue.c: tidy up.
15045
15046 Mon Sep 20 14:04:46 1993  Doug Evans  (dje@canuck.cygnus.com)
15047
15048         * libc/unix/{execl.c execle.c execlp.c execv.c execvp.c}:
15049         New files.  Requires execve system call.
15050         * libc/unix/Makefile.in: Use them.
15051         * libc/sys/sparc64/{execl.c execle.c execlp.c execv.c execvp.c}:
15052         Deleted, moved to libc/unix.
15053         * libc/sys/sparc64/Makefile.in: Remove them.
15054
15055 Mon Sep 20 10:38:32 1993  Doug Evans  (dje@canuck.cygnus.com)
15056
15057         * libc/sys/sparc64/{template.S template_r.S}: New files.
15058         * libc/sys/sparc64/Makefile.in: Build source for trivial syscalls
15059         from templates.
15060         * libc/sys/sparc64/{chdir.S chmod.S close.S dup.S fcntl.S
15061         fork.S fstat.S lseek.S link.S mkdir.S open.S pipe.S read.S rmdir.S
15062         umask.S unlink.S wait4.S write.S}: Removed, now built from
15063         templates.
15064
15065 Sun Sep 19 14:52:57 1993  Doug Evans  (dje@canuck.cygnus.com)
15066
15067         * libc/time/time.c: #include <_ansi.h>.
15068
15069 Sun Sep 19 13:43:25 1993  Doug Evans  (dje@canuck.cygnus.com)
15070
15071         * configure.in (sparc64-*-*): Remove -D__SIZE_TYPE__.
15072
15073 Mon Sep 13 13:52:16 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
15074
15075         * configure.in: match m8* rather than m88k so that m88110 is
15076           recognized as well.
15077
15078 Tue Sep  7 12:19:32 1993  Doug Evans  (dje@canuck.cygnus.com)
15079
15080         * libc/sys/h8300hms/{Makefile.in, _exit.c, misc.c}:
15081         Renamed exit.c to _exit.c to avoid collision with stdlib/exit.c.
15082         misc.c: New file.
15083
15084         * configure.in: Add multilib support to h8300.
15085
15086 Mon Sep  6 14:07:06 1993  Doug Evans  (dje@canuck.cygnus.com)
15087
15088         * libc/stdlib/abort.c (abort): Remove _VOLATILE from return type.
15089         * libc/include/_ansi.h (_ATTRIBUTE): New macro for __attribute__.
15090         * libc/include/stdlib.h (exit, abort): Add noreturn attribute.
15091
15092 Mon Sep  6 14:24:18 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
15093
15094         * configure.in: Corrected multidirs for sparc target.
15095
15096 Mon Aug 30 15:56:44 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
15097
15098         Support for building newlib multiple times with different
15099         compilation flags.
15100         * configure.in: Only configure doc at top level.  Set multidirs
15101         when appropriate for target, unless not at top level.  If
15102         multidirs is set, independently configure each subdirectory.
15103         Adjust TOP, MULTIDIRS and MULTISUBDIR appropriately in Makefile.
15104         * Makefile.in (MULTIDIRS, MULTISUBDIR): New variables,
15105         automagically set by configure.in.
15106         (all): If MULTIDIRS is set, build multiple copies of libraries.
15107         (install): If MULTIDIRS is set, install multiple copies of
15108         libraries.  Install in $(tooldir)/lib/$(MULTISUBDIR).  If
15109         MULTISUBDIR is set, don't bother to install header files.
15110         * host/any (INCLUDES, CHEW): Use $(SRCTOP) rather than $(TOP) from
15111         ${srcrootpre}.
15112         * stub/configure.in: Set MULTISUBDIR appropriately.
15113         * stub/Makefile.in (install): Install in
15114         $(tooldir)/lib/$(MULTISUBDIR).
15115         * All Makefile.in files: Define SRCTOP as well as TOP.
15116
15117 Mon Aug 30 10:34:24 1993  Doug Evans  (dje@canuck.cygnus.com)
15118
15119         * libc/machine/h8300/{mulhi3.S, divhi3.S}: Comment out if h8300h.
15120         * libc/machine/h8300/{mulsi3.S, divsi3.S}: Add h8300h support.
15121
15122 Thu Aug 26 19:38:12 1993  Doug Evans  (dje@canuck.cygnus.com)
15123
15124         * libc/sys/h8300hms/exit.c (_exit): New function.
15125
15126 Wed Aug 25 16:31:48 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
15127
15128         * configure.in: recognize m88110.
15129
15130 Fri Aug 20 16:46:23 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
15131
15132         * libc/sys/m88kbug/crt0.c: pretty up, remove extraneous comments,
15133           prototype main and call with args.
15134
15135 Fri Jul 30 16:52:47 1993  K. Richard Pixley  (rich@cygnus.com)
15136
15137         First real try at system traps for m88k-bug.
15138         * libc/sys/m88kbug/syscalls.c: many changes.  Convert from stubs
15139           to real trap calls.
15140         * libc/sys/m88kbug/sys/systraps.h: new file.
15141
15142 Tue Jul 27 16:31:16 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
15143
15144         Patches to fix info building when target does not use sys
15145         directory.
15146         * libc/Makefile.in (targetdep.tex): add sys.tex separately.
15147         * libc/sys.tex, libc/sys/sys.tex: moved from libc/sys/sys.tex to
15148           libc/sys.tex.
15149         * libc/sys/Makefile.in (doc): do nothing.
15150
15151 Mon Jul 26 17:08:11 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
15152
15153         * libc/Makefile.in (CRT0): new macro.
15154           (all): depend on $(CRT0) rather than crt0.o.
15155
15156         * configure.in: fix libc_sys_dir -> libc_sys_lib thinko.
15157           do not default crt0, instead, set crt0 and crt0_dir based on
15158           sys_dir and stub_dir.
15159
15160         * Makefile.in (CRT0_DIR): new macro.
15161           (all): depend on $(CRT0) rather than crt0.o which may not exist.
15162           (crt0.o): depend on $(CRT0_DIR)/$(CRT0) rather than simply
15163           $(CRT0).
15164           ($(CRT0)): recur by cd'ing into $(CRT0_DIR).
15165
15166 Sun Jul 25 17:51:51 MDT 1993  Jeffrey Wheat  (cassidy@cygnus.com)
15167
15168         * testsuite/lib/libm.exp: 
15169                 added code to support compiling and linking of tests for 
15170                 libm.sac (paranoia to be added next) and processing the 
15171                 pass or failure of the tests.
15172
15173         * testsuite/config/unix-libm.exp:
15174                 platform specific proc's for dealing with compiler, linker
15175                 and the way we execute and process the test results.
15176
15177         * testsuite/libm.sac/execute.exp:
15178                 generic framework for the sac tests. the config and lib 
15179                 expect code for specific platforms tie it all together.
15180
15181         * testsuite/libm.sac/test_is.c:
15182                 changed the output of the test to be consistant with the
15183                 other tests. parsing of pass nad fail messages is now fixed.
15184
15185 Fri Jul 23 19:20:07 1993  Per Bothner  (bothner@kalessin)
15186
15187         * libc/include/{assert.h, ctype.h, dirent.h, errno.h, fastmath.h,
15188         locale.h, math.h, pwd.h, reent.h, setjmp.h, signal.h, stdio.h,
15189         stdlib.h, string.h, termios.h, time.h, utime.h, utmp.h}: For C++:
15190         #ifdef __cplusplus, surround by extern ""C { ... }.
15191         * libc/include/assert.h:  Do *not* protect assert.h against
15192         multiple inclusion!  Also, #undef it before #define, to allow
15193         redefinition.
15194         * libc/include/stdio.h (getlogin, cuserid):  Removed.  These
15195         should be only in unistd.h.
15196
15197         * libc/include/sys/{fcntl.h, reent.h, stat.h, time.h, times.h,
15198         unistd.h}: For C++: #ifdef __cplusplus, surround by extern ""C {
15199         ... }.
15200
15201 Fri Jul 23 10:15:33 1993  Doug Evans  (dje@canuck.cygnus.com)
15202
15203         * libc/machine/sparc/Makefile.in: Must create a library, even
15204         if empty.
15205
15206 Wed Jul 21 16:00:37 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
15207
15208         * configure.in: set machine_dir for m88k.  edit crt0 definition
15209           into makefiles.
15210
15211         * Makefile.in, libc/Makefile.in (crt0): pull up from lower directories.
15212
15213         * libc/Makefile.in (all): also build crt0.o.
15214
15215         * libc/machine/i386/Makefile.in, libc/machine/sparc/Makefile.in,
15216           libc/machine/z8k/Makefile.in, libm/Makefile.in (clean): no need
15217           to remove CRT0.
15218
15219         * libc/machine/m88k/Makefile.in (TOP, TARGETLIB): removed.
15220           (all): reworked to build in place.
15221           (clean): remove lib.a
15222           (Makefile): remove redundant ./, call $(SHELL) rather than sh.
15223
15224         * libc/sys/m88kbug/crt0.c (start): renamed to _start.
15225           (_start): key off edata rather than _start_bss.
15226
15227 Wed Jul 21 14:29:47 1993  david d `zoo' zuhn  (zoo@cygnus.com)
15228
15229         * libc/include/sys/unistd.h, libc/include/reent.h,
15230         libc/reent/sbrkr.c: change sbrk to return void* instead of char*.
15231
15232 Tue Jul 20 13:19:18 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
15233
15234         * libm/Makefile.in, libc/Makefile.in ($(SUBDIRS)): dollar escape a dollar sign.
15235
15236         * Makefile.in (libc.a): break into two rules, one for libc.a and
15237           one for libc/libc.a.  Force subdirs current before rebuilding
15238           library.
15239           (libm.a): break into two rules, one for libm.a and one for
15240           libm/libm.a.  Force subdirs current before rebuilding library.
15241
15242         * libc/Makefile.in (SUBLIBS): fix typo.
15243
15244         * libc/sys/Makefile.in (all): force descent into subdirs, then
15245           rebuild library iff out of of date.
15246
15247 Fri Jul 16 17:47:57 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
15248
15249         Rework so that library is built and then finished rather than
15250         being built on each invocation of make.
15251
15252         * host/any (machine_dir, sys_dir, signal_dir): these are not
15253           shared and have been moved to their associated Makefile.in's.
15254           (AR_FLAGS): switch to qc which is faster.
15255         * configure.in: no longer assign machine_dir for m88k.  set
15256           stub_dir, stub_lib, & crt0 for m68k*-unknown-{aout,coff}.  If
15257           stub_dir set, then add to configdirs.  add comment about silly
15258           configuration.
15259           (configdirs): drop stub.  It will be added only
15260           when needed.
15261           (libm_fp_lib, libc_unix_lib, libc_signal_lib, libc_machine_lib,
15262           libc_sys_dir, fake_sys_dir, libc_fake_sys_lib, stub_dir,
15263           stub_lib, crt0): new variables for tailoring lower level
15264           makefiles.  Assign accordingly and edit into makefiles.
15265         * libm/Makefile.in: updated copyright.
15266           (TARGETLIB): removed.
15267           (FLAGS_TO_PASS): removed TARGETLIB, machine_dir, sys_dir.
15268           (SUBDIRS): removed TARGETDEP_DIRS.
15269           (LIBM_FP_LIB, SUBLIBS): new macros.
15270           (all): reworked.
15271           (force): new target to force rebuilds.
15272           (Makefile): call $(SHELL) rather than sh.  drop redundant ./
15273         * libc/sys/a29khif/Makefile.in, libc/sys/decstation/Makefile.in,
15274           libc/sys/go32/Makefile.in, libc/sys/h8300hms/Makefile.in,
15275           libc/sys/h8500hms/Makefile.in, libc/sys/m88kbug/Makefile.in,
15276           libc/sys/sh/Makefile.in, libc/sys/sparc64/Makefile.in,
15277           libc/sys/sun4/Makefile.in, libc/sys/sysvi386/Makefile.in,
15278           libc/sys/sysvnecv70/Makefile.in, libc/sys/z8ksim/Makefile.in,
15279           stub/m68kmvme/Makefile.in: updated copyright.
15280           (TARGETLIB, TARGETCRT0, CRT0): macros removed.
15281           (all): reworked.  made this the default rule.
15282           (clean): also remove lib.a.
15283           (Makefile): call $(SHELL) rather than sh.  drop redundant ./
15284         * stub/Makefile.in: updated copyright.
15285           (TARGETLIB, TARGETCRT0, CRT0, TOP): removed.
15286           (stub_lib): new macro.
15287           (FLAGS_TO_PASS): removed TARGETLIB, stub_dir, TARGETCRT0.  Added
15288           RANLIB.
15289           (all): reworked.
15290           (clean, install): assume stub_dir exists.
15291           (Makefile): depend on configure.in.  call $(SHELL) rather than
15292           sh.  drop redundant ./
15293         * stub/configure.in (stublib): new macro, assign it, edit it into
15294           makefiles.
15295         * Makefile, libc/Makefile.in, doc/Makefile.in, libc/sys/Makefile.in:
15296           updated copyright.
15297           (all): reworked.
15298           (Makefile): call $(SHELL) rather than sh.  drop redundant ./
15299         * libc/Makefile.in (TARGETCRT0): removed.
15300           (FLAGS_TO_PASS): dropped TARGETLIB, machine_dir, sys_dir,
15301           TARGETCRT0.
15302           (SUBDIRS): drop TARGETDEP_DIRS.
15303           (LIBC_SIGNAL_LIB, LIBC_SYS_LIB, LIBC_MACHINE_LIB, LIBC_UNIX_LIB,
15304           LIBC_FAKE_SYS_LIB, SUBLIBS): new macros for configuration.
15305           (force): new target to force rebuilds.
15306         * libc/sys/Makefile.in (TARGETCRT0, sys_dir): removed.
15307           (FLAGS_TO_PASS): TARGETLIB, machine_dir, sys_dir, TARGETCRT0
15308           removed.
15309           (clean): assume sys_dir always exists.
15310         * libm/test/Makefile.in (Makefile): call $(SHELL) rather than sh.
15311           drop redundant ./
15312         * libc/ctype/Makefile.in, libc/errno/Makefile.in,
15313           libc/locale/Makefile.in, libc/machine/Makefile.in,
15314           libc/machine/a29k/Makefile.in, libc/machine/h8300/Makefile.in,
15315           libc/machine/h8500/Makefile.in, libc/machine/i386/Makefile.in,
15316           libc/machine/i960/Makefile.in, libc/machine/m68k/Makefile.in,
15317           libc/machine/mips/Makefile.in, libc/machine/necv70/Makefile.in,
15318           libc/machine/sh/Makefile.in, libc/machine/sparc/Makefile.in,
15319           libc/machine/z8k/Makefile.in, libc/reent/Makefile.in,
15320           libc/signal/Makefile.in, libc/stdio/Makefile.in,
15321           libc/stdlib/Makefile.in, libc/string/Makefile.in,
15322           libc/sys/Makefile.in, libc/syscalls/Makefile.in,
15323           libc/time/Makefile.in, libc/unix/Makefile.in,
15324           libm/ieeefp/Makefile.in, libm/math/Makefile.in: updated copyright.
15325           (TARGETLIB): removed.
15326           (all): reworked.
15327           (clean): also remove lib.a.
15328           (Makefile): call $(SHELL) rather than sh.  drop redundant ./
15329         * Makefile.in: (machine_dir, sys_dir, stub_dir, stub_lib, CRT0):
15330           new macros.
15331           (SUBDIRS): moved to follow frag inclusion, change stub to
15332           stub_dir.
15333           (FLAGS_TO_PASS): removed machine_dir, sys_dir, signal_dir which
15334           are now set in the libc Makefile.
15335         * libc/machine/Makefile.in (TARGETCRT0, machine_dir): removed.
15336           (FLAGS_TO_PASS): removed TARGETLIB, machine_dir, sys_dir,
15337           TARGETCRT0.
15338           (force): new target to force rebuilds.
15339         * stub/configure.in: determine and set stub_lib for for Makefile.
15340
15341 Thu Jul 15 12:01:27 1993  Doug Evans  (dje@canuck.cygnus.com)
15342
15343         * libc/sys/h8300hms/Makefile.in: Make `all' the default target.
15344         crt0.s renamed to crt0.S.
15345         * libc/sys/h8300hms/crt0.S: Add h8/300h support.
15346
15347         * libc/machine/h8300/Makefile.in: Make `all' the default target.
15348         * libc/machine/h8300/{cmpsi.S,ucmpsi.S}: #ifdef out entire file if
15349         h8300h.
15350         * libc/machine/h8300/defines.h: Add macros to handle pointers for
15351         h8300 (16 bits) and h8300h (32 bits).
15352         * libc/machine/h8300/{divsi3.S,mulsi3.S,memcpy.S,memset.S,
15353         reg_memcpy.S,reg_memset.S,strcmp.S}: Add h8300h support.
15354
15355 Thu Jul 15 10:13:29 1993  Ian Lance Taylor  (ian@cygnus.com)
15356
15357         * libc/machine/m88k/setjmp.S, Makefile.in: New files; a simple
15358         implementation of setjmp and longjmp for the m88k.
15359         * libc/include/machine/setjmp.h: Added __m88000__ case.
15360
15361 Wed Jul 14 10:10:30 1993  Doug Evans  (dje@canuck.cygnus.com)
15362
15363         * configure.in: Recognize h8300h as variant of h8300.
15364
15365 Tue Jul 13 12:24:11 1993  Steve Chamberlain  (sac@phydeaux.cygnus.com)
15366
15367         * libc/include/sys/unistd.h (read, write): get prototypes right.
15368         (sbrk): New prototype.
15369         * libc/reent/sbrkr.c (sbrkr): Use correct sbrk prototype.
15370         * libc/stdio/local.h: Include unistd.h.
15371         * libc/machine/h8300/syscalls.c: Names have changed.
15372
15373 Mon Jul 12 18:08:42 1993  K. Richard Pixley  (rich@cygnus.com)
15374
15375         * configure.in: add sys_dir assignment for m88k-bug.
15376
15377 Thu Jul  8 09:16:21 1993  Doug Evans  (dje@canuck.cygnus.com)
15378
15379         * libc/sys/sparc64/sys/syscallasm.h: New macros to handle either
15380         a.out or elf.
15381         * libc/sys/sparc64: all *.S files: Use new macros.
15382         * libc/sys/sparc64/isatty.c: New file.
15383         * libc/sys/sparc64/Makefile.in: Stop using /lib/libc.a for
15384         functions beyond what newlib provides.
15385
15386 Thu Jul  8 09:11:28 1993  Doug Evans  (dje@canuck.cygnus.com)
15387
15388         * libc/include/sys/stat.h: Move st_atime so not doubly defined for
15389         svr4.
15390
15391 Thu Jul  8 09:09:16 1993  Doug Evans  (dje@canuck.cygnus.com)
15392
15393         * libc/include/machine/ieeefp.h: Add support for h8/300h.
15394
15395 Fri Jul  2 10:11:20 1993  K. Richard Pixley  (rich@cygnus.com)
15396
15397         * configure.in: add m88k.
15398         * libc/include/machine/ieeefp.h: add case for m88k.  Also add
15399         sanity check so no one else need ever chase what I did to find
15400         this.
15401
15402         * libm/math/Makefile.in (FAKEC): added atanf.c log1pf.c scalbnf.c.
15403
15404 Fri Jul  2 09:15:21 1993  Ian Lance Taylor  (ian@cygnus.com)
15405
15406         * doc/makedoc.c: Include <ctype.h>.
15407
15408 Wed Jun 30 09:35:06 1993  Doug Evans  (dje@canuck.cygnus.com)
15409
15410         * libc/Makefile.in (FLAGS_TO_PASS): Add TARGET_ASFLAGS.
15411         * libc/sys/Makefile.in (FLAGS_TO_PASS): Add TARGET_ASFLAGS.
15412         * libc/machine/Makefile.in (FLAGS_TO_PASS): Add TARGET_ASFLAGS.
15413
15414         * libm/test/Makefile.in (all): Link with ../../lib[cm].a.
15415
15416 Sun Jun 27 17:05:20 1993  Doug Evans  (dje@sphagnum.cygnus.com)
15417
15418         * libc/include/errno.h (ENOSYS): Added.
15419
15420         * libc/unix/getpwd.c (getcwd): Fix typo (_up -> up).
15421
15422 Mon Jun 21 09:03:32 1993  Steve Chamberlain  (sac@phydeaux.cygnus.com)
15423
15424         * libc/stdio/fflush.c (fflush): Check for reent struct
15425         initialization.
15426         * libc/stdio/fdopen.c (fdopen): Avoid namespace conflict.
15427
15428 Fri Jun 18 16:06:05 1993  Mark Eichin  (eichin@rtl.cygnus.com)
15429
15430         * libc/stdlib/dtoastub.c: new file -- move user callable "dtoa"
15431         out of dtoa.c so it doesn't pollute the namespace.
15432         * libc/include/_syslist.h: new file -- mappings from _function to
15433         function, for systems where we can't win (by default, all of them,
15434         until we start updating system calls.)
15435         * libc/syscalls: new directory -- stubs for exporting _function
15436         names as unmodified function names.
15437         * libc/configure.in: add MISSING_SYSCALL_NAMES to enable
15438         _syslist.h on all platforms by default, but put hooks in for
15439         fake_sys_dir so we can include it when we've renamed the system
15440         calls.
15441         * libc/reent/execr.c libc/reent/filer.c libc/reent/fstatr.c
15442         libc/reent/linkr.c libc/reent/sbrkr.c libc/reent/statr.c
15443         libc/signal/raise.c libc/signal/signal.c libc/stdio/fdopen.c
15444         libc/stdio/mktemp.c libc/stdio/tmpnam.c libc/stdlib/abort.c
15445         libc/stdlib/system.c libc/unix/getcwd.c libc/unix/getlogin.c
15446         libc/unix/getpass.c libc/unix/getut.c libc/unix/ttyname.c: change
15447         non ANSI functions to call _function.
15448
15449 Wed Jun  9 09:48:26 1993  Ian Lance Taylor  (ian@cygnus.com)
15450
15451         * libc/stdlib/strtoul.c (_strtoul_r): Handle leading 0 correctly
15452         when base 16 is specified.  Don't accept non-digits if radix > 10.
15453
15454 Thu Jun  3 10:01:15 1993  Doug Evans  (dje@canuck.cygnus.com)
15455
15456         * libc/include/math.h: Rename xxx_r fns to _xxx_r.
15457
15458 Wed Jun  2 16:54:16 1993  Jim Wilson  (wilson@sphagnum.cygnus.com)
15459
15460         * libc/include/sys/stat.h: Surround text after #endif with
15461         comments.
15462
15463 Wed Jun  2 12:47:32 1993  Ian Lance Taylor  (ian@cygnus.com)
15464
15465         * libc/stdlib/mallocr.c: If MALLOC_PROVIDED is defined, just make
15466         _malloc_r, _realloc_r, and free_r call the corresponding
15467         non-reentrant functions.
15468
15469         * libm/math/modf.c (modf): We now take the address of ipart, so
15470         don't make it a register variable.
15471
15472 Tue Jun  1 18:25:54 1993  Doug Evans  (dje@canuck.cygnus.com)
15473
15474         * libm/math/*: Rename all xxx_r fns to _xxx_r.
15475
15476 Wed May 26 22:06:35 1993  Roland H. Pesch  (pesch@cygnus.com)
15477
15478         * libc/libc.texinfo and embedded docn throughout: formatting
15479         improvements, minor rephrasing for clarity, and improved
15480         reentrancy docn.
15481
15482 Sun May 23 17:29:49 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
15483
15484         * libm/ieeefp/infinity.c (maxpowtwof): Fix initialzation bug.
15485
15486         * libc/stdio/cvt.c (_licvt): Print the right value on machines
15487         where sizeof(int) != sizeof(long).
15488
15489 Fri May 21 22:09:32 1993  Roland H. Pesch  (pesch@fowanton.cygnus.com)
15490
15491         * libc/reent/execr.c, libc/reent/filer.c, libc/reent/linkr.c,
15492         libc/reent/sbrkr.c, libc/reent/statr.c, libc/stdio/tmpnam.c,
15493         libc/stdlib/atol.c, libc/stdlib/rand.c, libc/string/strpbrk.c,
15494         libc/string/strspn.c, libm/ieeefp/isnan.c, libm/math/bessel.c,
15495         libm/math/matherr.c: changes for better docn formatting (info).
15496
15497         * libc/libc.texinfo, libc/ctype/ctype.tex, libc/locale/locale/tex,
15498         libc/reent/reent.tex, libc/signal/signal.tex,
15499         libc/stdio/stdio.tex, libc/stdlib/stdlib.tex,
15500         libc/string/strings.tex, libc/sys/sys.tex, libc/time/time.tex,
15501         libm/libm.texinfo, libm/ieeefp/ieeefp.tex, libm/math/math.tex: use
15502         makeinfo node defaulting to get better Info file node structure.
15503         (Requires recent sac change to doc/makedoc.c and doc/doc.str.)
15504         Also include a few formerly missing sections (subroutines).
15505
15506         * doc/doc.str: delete fossil expansion for "func"
15507
15508         * default.menu, no-signal.menu: delete.
15509
15510         * Makefile.in, libc/Makefile.in, configure.in, host/any: simplify
15511         method used to adjust doc for missing "signals" chapter when 
15512         signal_dir is empty.
15513
15514 Thu May 20 21:38:37 MDT 1993  Jeffrey Wheat  (cassidy@cygnus.com)
15515
15516         * configure.in: added testsuite/libm.sac
15517
15518 Wed May 19 14:52:34 1993  Doug Evans  (dje@thepub.cygnus.com)
15519
15520         * libc/sys/sparc64/crt0.S: Set %g4 to 0 (to test Medium/Anywhere
15521         code model).
15522
15523 Tue May 18 13:17:21 1993  Ian Lance Taylor  (ian@cygnus.com)
15524
15525         * libm/Makefile.in: Use $(MAKE) rather than make, and define
15526         MAKEOVERRIDES to be empty.
15527
15528 Mon May 17 08:42:44 1993  Ian Lance Taylor  (ian@cygnus.com)
15529
15530         * configure.in: Don't build mips-*-* with -msoft-float, since that
15531         makes it incompatible with hard floating point.
15532
15533 Mon May 17 00:03:35 MDT 1993  Jeffrey Wheat  (cassidy@cygnus.com)
15534
15535         * Makefile.in: added recursive 'make check'
15536
15537 Thu May 13 16:24:18 MDT 1993  Jeffrey Wheat  (cassidy@cygnus.com)
15538
15539         * configure.in: added ./testsuite ./testsuite/libm.paranoia
15540         * ./testsuite/Makefile.in: created
15541         * ./testsuite/libm.paranoia: paranoia tests added
15542
15543 Thu May 13 10:30:24 1993  Ian Lance Taylor  (ian@cygnus.com)
15544
15545         * configure.in: For mips-*-* set machine_dir to mips.
15546
15547         * libc/machine/mips: New directory.
15548         * libc/machine/mips/Makefile.in: New file.
15549         * libc/machine/mips/setjmp.S: New file; simplistic MIPS version of
15550         setjmp and longjmp.
15551         * libc/include/machine/setjmp.h: Added __mips__ case.
15552
15553         * libc/machine/lmips: Removed unused and useless directory.
15554
15555 Mon May  3 10:22:31 1993  Ian Lance Taylor  (ian@cygnus.com)
15556
15557         * configure.in: Accept i486-*-sco* as well as i386-*-sco*.
15558
15559 Thu Apr 15 15:16:44 1993  Doug Evans  (dje@canuck.cygnus.com)
15560
15561         * libc/sys/sparc64/crt0.S: Add comment (%g1 contains atexit arg at
15562         start up).
15563
15564 Fri Apr  9 13:32:26 1993  Ian Lance Taylor  (ian@cygnus.com)
15565
15566         * libc/include/machine/setjmp-dj.h: Use _SETJMP_DJ_H rather than
15567         SETJMP_H.
15568
15569 Thu Apr  8 10:07:18 1993  Doug Evans  (dje@canuck.cygnus.com)
15570
15571         * libm/test/convert.c: structure member errno -> errno_val.
15572         Must include <errno.h> to use errno, it's a macro now.
15573         * libm/test/math.c: Ditto.
15574         * libm/test/math2.c: Include errno.h.
15575         * libm/test/string.c: Ditto.
15576         * libm/test/test.h: structure member errno -> errno_val.
15577         Remove extern int errno decl.
15578
15579 Thu Apr  8 07:56:33 1993  Ian Lance Taylor  (ian@cygnus.com)
15580
15581         * libc/stdio/Makefile.in: Added dependencies on local header
15582         files.
15583         * libc/stdio/std.h, libc/stdio/vfprintf.h: Removed unused header
15584         files.
15585
15586 Wed Apr  7 16:19:32 1993  Ian Lance Taylor  (ian@cygnus.com)
15587
15588         * libc/include/machine/ieeefp.h: Added __MIPSEB__ case.
15589
15590 Wed Apr  7 10:55:21 1993  Doug Evans  (dje@canuck.cygnus.com)
15591
15592         * libc/stdio/siprintf.c libc/stdio/sscanf.c libc/stdio/vsprintf.c:
15593         Initialize _data.
15594
15595         * libc/stdio/vfprintf.c: No need to declare _icvt, _licvt, _sicvt.
15596         * libc/stdio/local.h: Add prototype for _licvt.
15597
15598         * libc/stdio/ungetc.c (__submore): Use _malloc_r,_realloc_r
15599         instead of malloc,reealloc.
15600
15601         * libc/stdlib/local.h: New file.
15602         * libc/stdlib/efgcvt.c: #include local.h.
15603         (gcvt): Fix call to _gcvt.
15604         * libc/stdlib/ecvtbuf.c: #include local.h.
15605
15606         * libc/stdlib/Makefile.in: new files mallocr.c mstats.c.
15607         * libc/stdlib/mallocr.c mstats.c malloc.h: New files.
15608         * libc/stdlib/malloc.c: main routines moved to mallocr.c.
15609
15610         * libc/stdlib/atexit.c: moved global data to struct _reent.
15611         * libc/stdlib/exit.c: use struct _atexit in struct _reent.
15612
15613         * libc/reent/reent.c (inpure_data): _REENT_INIT macro modified.
15614
15615 Wed Apr  7 09:41:50 1993  Doug Evans  (dje@canuck.cygnus.com)
15616
15617         * libc/include/sys/reent.h: Stuff required by ANSI headers moved
15618         here from ../reent.h.
15619
15620 Tue Apr  6 12:56:01 1993  Ian Lance Taylor  (ian@cygnus.com)
15621
15622         * Makefile.in (MATHOBJS_IN_LIBC): List of object files which
15623         should be provided in both libc.a and libm.a.
15624         (libc.a): Depend on targ-include and libm.a.  Copy
15625         $(MATHOBJS_IN_LIBC) from libm.a to libc.a.
15626         (libm.a): Depend on targ-include.
15627         * configure.in (subdirs): Removed libc/math.
15628
15629 Mon Apr  5 10:18:16 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
15630
15631         * libm/ieeefp/infinity.c (maxpowtwo): Fix initialization bug.
15632
15633 Sat Apr  3 11:06:07 1993  Doug Evans  (dje@canuck.cygnus.com)
15634
15635         * libc/include/{errno.h, math.h, stdio.h, stdlib.h}: Use
15636         sys/reent.h instead of reent.h.
15637         * libc/include/reent.h: Split into two parts: stuff needed by ANSI
15638         headers moved to sys/reent.h.  
15639         * libc/include/signal.h: _MAX_SIGNALS moved to sys/signal.h.
15640         * libc/include/sys/signal.h: Define _MAX_SIGNALS if
15641         __need__MAX_SIGNALS defined.
15642         * libc/include/stdio.h: struct __sFILE moved to sys/reent.h.
15643         std{in,out,err} refer to new _std{in,out,err} members.
15644
15645 Fri Apr  2 11:27:12 1993  Doug Evans  (dje@canuck.cygnus.com)
15646
15647         * libc/include/sys/signal.h: #define _SYS_SIGNAL_H for general
15648         case.
15649
15650 Fri Apr  2 09:41:10 1993  Doug Evans  (dje@canuck.cygnus.com)
15651
15652         * libc/sys/sparc64/execve.S (execve): Insert nop in delay slot,
15653         rather than whatever macro seterrno() has.
15654
15655 Thu Apr  1 16:47:08 1993  Doug Evans  (dje@canuck.cygnus.com)
15656
15657         * libc/locale/locale.c: Reentrant routines _r_xxx renamed to
15658         _xxx_r.  struct reent_struct renamed to struct _reent for ANSI.
15659
15660         * libc/include/machine/fastmath.h: Use _HAVE_STDC instead of
15661         __STDC__.
15662
15663         * libc/reent/{execr.c, filer.c, fstatr.c, linkr.c, reent.c,
15664         reent.tex, sbrkr.c, statr.c}: _r_xxx reentrant routines renamed to
15665         _xxx_r.  struct reent_struct renamed to struct _reent for ANSI.
15666
15667         * libc/signal/signal.c: Reentrant routines _r_xxx renamed to
15668         _xxx_r.  struct reent_struct renamed to struct _reent for ANSI.
15669
15670         * libc/stdio/{fclose.c, fdopen.c, findfp.c, fiprintf.c, flags.c,
15671         fopen.c, fprintf.c, freopen.c, fscanf.c, fseek.c, ftell.c,
15672         fwalk.c, getchar.c, gets.c, iprintf.c, local.h, makebuf.c,
15673         mktemp.c, perror.c, printf.c, putchar.c, puts.c, refill.c,
15674         remove.c, rename.c, scanf.c, setvbuf.c, siprintf.c, sprintf.c,
15675         sscanf.c, stdio.c, tmpfile.c, tmpnam.c, vfprintf.c, vfprintf.h,
15676         vfscanf.c, vprintf.c, vsprintf.c}: Reentrant routines _r_xxx
15677         renamed to _xxx_r.  struct reent_struct renamed to struct _reent
15678         for ANSI.  structure members given leading "_" for ANSI.  Use
15679         _HAVE_STDC instead of __STDC__ and _HAVE_STDARG.
15680
15681         * libc/stdlib/{__adjust.c, calloc.c, dtoa.c, ecvtbuf.c, malloc.c,
15682         mprec.c, mprec.h, rand.c, std.h, strtod.c, strtol.c, strtoul.c,
15683         system.c}: Reentrant routines _r_xxx renamed to _xxx_r.  struct
15684         reent_struct renamed to struct _reent for ANSI.
15685         Structure members given leading "_" for ANSI.
15686         _CONST --> const in prototypes.
15687         Use _HAVE_STDC instead of __STDC__.
15688
15689         * libc/string/strtok.c: Reentrant routines _r_xxx renamed to
15690         _xxx_r.
15691         struct reent_struct renamed to struct _reent for ANSI.
15692         Structure members given leading "_" for ANSI.
15693
15694         * libc/time/asctime.c: Reentrant routines _r_xxx renamed to
15695         _xxx_r.
15696         struct reent_struct renamed to struct _reent for ANSI.
15697
15698         * libm/math/{acos.h, acosh.h, asin.c, asinh.h, atanh.h, bessel.h,
15699         cbrt.h, cosh.h, erf.c, erf.h, error.c, exp.c, fmod.c, frexp.h,
15700         gamma.h, hypot.h, ldexp.c, log.h, log10.c, log1p.c log2.c,
15701         mathimpl.h, pow.c, remainder.c, sincos.c, sinh.h, sqrt.h, tan.c,
15702         tanh.h}: struct reent_struct renamed to struct _reent for ANSI.
15703
15704         * libc/include/{_ansi.h, ctype.h, math.h, reent.h, locale.h,
15705         signal.h, stdio.h, stdlib.h, string.h, time.h}:
15706         Use _HAVE_STDC instead of __STDC__ and _HAVE_STDARG.
15707         #ifndef _STRICT_ANSI non-ANSI routines.
15708         Reentrant routines renamed from _r_xxx to _xxx_r.
15709         No need to use _STRICT_ANSI on _xxx_r reentrant routines.
15710         Use _STRICT_ANSI instead of __STRICT_ANSI, _ANSI_SOURCE, etc.
15711         Clean up namespace (structure members have leading "_").
15712         struct reent_struct renamed to struct _reent for ANSI compliance.
15713         _CONST --> const in function prototypes.
15714
15715         * libc/include/string.h: Add NULL and size_t.
15716
15717         * libc/sys/sparc64/Makefile.in: New syscall routines for link,
15718         unlink, wait, wait4. Reentrant syscall routines close, fork,
15719         fstat, link, lseek, open, read, sbrk, stat, unlink, wait, wait4,
15720         write.
15721         * libc/sys/sparc64/cerror.S (cerror_r): New routine.
15722         * libc/sys/sparc64/{close.S, fork.S, fstat.S, link.S, lseek.S,
15723         open.S, read.S, sbrk.S, stat.S, unlink.S, wait.S, wait4.S,
15724         write.S}: Define reentrant versions.
15725         * libc/sys/sparc64/sys/syscallasm.h (defsyscall_r): New macro for
15726         reentrant syscalls.
15727
15728         * libc/sys/sparc64/crt0.S (start): Fix initialization of environ.
15729
15730         * libc/include/stdlib.h (RAND_MAX): Fix value.
15731
15732 Thu Apr  1 12:28:30 1993  Ian Lance Taylor  (ian@cygnus.com)
15733
15734         * libc/sys/a29khif/_main.c: Removed unnecessary file.
15735         * libc/sys/a29khif/Makefile.in (OFILES): Removed _main.c, moved
15736         VPATH support targets after all: target.
15737
15738         * stub/mvme135/mvme.S: Renamed exceptionhandler to
15739         exceptionHandler, which is what mvme135-stub.c expects.
15740
15741 Wed Mar 31 17:42:03 1993  Doug Evans  (dje@cygnus.com)
15742
15743         * libc/stdio/tmpnam.c (worker): Fix test for _r_open() failure.
15744
15745         * libc/unix/getpass.c (getpass): Use stdin,stderr instead of
15746         def_stdin/def_stderr (latter removed from stdio.h to make it ANSI
15747         compliant).
15748
15749 Tue Mar 30 09:58:21 1993  Doug Evans  (dje@canuck.cygnus.com)
15750
15751         * libc/reent/execr.c (_r_wait): Re-order args to make reent_struct
15752         first.
15753         libc/reent/filer.c (_r_open, _r_close, _r_lseek, _r_read,
15754         _r_write): Ditto.
15755         libc/reent/fstatr.c (_r_fstat): Ditto.
15756         libc/reent/linkr.c (_r_link, _r_unlink): Ditto.
15757         libc/reent/sbrkr.c (_r_sbrk): Ditto.
15758         libc/reent/statr.c (_r_stat): Ditto.
15759
15760         * libc/stdio/fopen.c (_r_fopen): Re-order args to _r_open.
15761         * libc/stdio/freopen.c (freopen): Ditto for _r_open, _r_free.
15762         * libc/stdio/fseek.c (fseek): Ditto for _r_fseek.
15763         * libc/stdio/makebuf.c (__smakebuf): Ditto for _r_fstat.
15764         * libc/stdio/mktemp.c (_gettemp): Ditto for _r_stat, _r_open.
15765         * libc/stdio/remove.c (_r_remove): Ditto for _r_unlink.
15766         * libc/stdio/rename.c (_r_rename): Ditto for _r_link, _r_unlink.
15767         * libc/stdio/stdio.c (__sread): Ditto for _r_read.
15768         (__swrite): Ditto for _r_lseek, _r_write.
15769         (__sseek): Ditto for _r_lseek.
15770         (__close): Ditto for _r_close.
15771         * libc/stdio/tmpnam.c (worker): Ditto for _r_open, _r_close.
15772
15773         * libc/stdlib/malloc.c (_r_morecore): Re-order args to _r_sbrk.
15774         * libc/stdlib/system.c (_r_system): Ditto for _r_wait.
15775
15776         * libc/include/reent.h: Re-order arguments to _r_xxx syscall fns
15777         to make reent_struct the first argument (and thus consistent with
15778         the rest of newlib).
15779
15780         * stub/mvme135/mvme135-stub.c (initializeRemcomErrorFrame): Remove
15781         reference to __STDC__.
15782
15783 Mon Mar 29 12:34:32 1993  Doug Evans  (dje@canuck.cygnus.com)
15784
15785         * libc/stdlib/exit.c (exit): Use _REENT->__cleanup instead of
15786         global __cleanup.
15787
15788 Wed Mar 24 11:54:35 1993  Doug Evans  (dje@canuck.cygnus.com)
15789
15790         * libc/stdio/freopen.c (freopen): Ensure stdio is initialized
15791         first.
15792         libc/stdio/fclose.c (fclose): Ditto.
15793
15794 Tue Mar 23 01:26:52 1993  Doug Evans  (dje@rtl.cygnus.com)
15795
15796         * Run through indent and rename reentrant routines for ANSI.
15797         libc/stdio/{clearerr.c cvt.c fclose.c fdopen.c feof.c ferror.c
15798         fflush.c fgetc.c fgetpos.c fgets.c findfp.c fiprintf.c flags.c
15799         fopen.c fprintf.c fputc.c fputs.c fread.c freopen.c fscanf.c
15800         fseek.c fsetpos.c ftell.c fvwrite.c fwalk.c fwrite.c getc.c
15801         getchar.c gets.c iprintf.c makebuf.c mktemp.c perror.c printf.c
15802         putc.c putchar.c puts.c refill.c remove.c rename.c rewind.c rget.c
15803         scanf.c setbuf.c setvbuf.c siprintf.c sprintf.c sscanf.c stdio.c
15804         tmpfile.c tmpnam.c ungetc.c vfprintf.c vfscanf.c vprintf.c
15805         vsprintf.c wbuf.c wsetup.c local.h}
15806
15807         * libc/locale/locale.c: Reformat and rename for ANSI, GNU style.
15808
15809         * Run through indent and rename xxx_r fns to _r_xxx for ANSI.
15810         libc/stdlib/{__adjust.c __exp10.c __ten_mu.c abort.c abs.c
15811         assert.c atexit.c atof.c atoi.c atol.c bsearch.c calloc.c div.c
15812         dtoa.c ecvtbuf.c efgcvt.c exit.c getenv.c labs.c ldiv.c malloc.c
15813         mbtowc.c mprec.c putenv.c qsort.c rand.c setenv.c strdup.c
15814         strtod.c strtol.c strtoul.c system.c wctomb.c mprec.h}
15815
15816         * Run through indent.
15817         libc/string/{bcmp.c bcopy.c bzero.c index.c memchr.c memcmp.c
15818         memcpy.c memmove.c memset.c rindex.c strcat.c strchr.c strcmp.c
15819         strcoll.c strcpy.c strcspn.c strerror.c strlen.c strncat.c
15820         strncmp.c strncpy.c strpbrk.c strrchr.c strspn.c strstr.c strtok.c
15821         strxfrm.c}
15822
15823         * libc/time/{asctime.c clock.c ctime.c difftime.c gmtime.c
15824         localtime.c mktime.c strftime.c time.c}:
15825         Run through indent and rename xxx_r (reentrant) fns to _r_xxx for ANSI.
15826
15827         * Reformatting + renaming (for ANSI, GNU style, consistency).
15828         libc/include/{_ansi.h, assert.h, ctype.h, errno.h, fastmath.h,
15829         ieeefp.h, locale.h, math.h, paths.h, pwd.h, reent.h, setjmp.h,
15830         signal.h, stdio.h, stdlib.h, string.h, time.h, unistd.h}
15831
15832 Fri Mar 19 11:28:01 1993  Doug Evans  (dje@cygnus.com)
15833
15834         * libc/include/stdio.h (stdin_r): Fix.
15835
15836 Fri Mar 19 09:43:48 1993  Ian Lance Taylor  (ian@cygnus.com)
15837
15838         * Makefile.in: Unexport some variables to keep GNU make from
15839         putting them in the environment and using up needed ARG_MAX space
15840         (a hack is used to let this work with older makes as well).
15841
15842 Tue Mar 16 15:11:08 1993  Ian Lance Taylor  (ian@cygnus.com)
15843
15844         * Makefile.in: Use $(MAKE) rather than make.
15845         (MAKEOVERRIDES): Define to be empty.
15846         (FLAGS_TO_PASS): Don't pass down LD (it's not used).
15847         (libc.a, libm.a): Depend on targ-include.
15848         * host/any (LD): Don't define.
15849         (INCLUDES): Use targ-include.   
15850         * stub/Makefile.in (MAKEOVERRIDES): Define to be empty.
15851         (FLAGS_TO_PASS): Don't pass down LD (it's not used).
15852         * libc/Makefile.in: Use $(MAKE) rather than make.
15853         (MAKEOVERRIDES): Define to be empty.
15854         (FLAGS_TO_PASS): Don't pass LD (it's not used).
15855         (all): Rewrote to be slightly smaller.
15856         * libc/machine/Makefile.in, libc/sys/Makefile.in (MAKEOVERRIDES):
15857         Define to be empty.
15858         (FLAGS_TO_PASS): Don't pass LD (it's not used).
15859         * libm/Makefile.in (FLAGS_TO_PASS): Don't pass LD (it's not used).
15860
15861 Mon Mar 15 08:45:41 1993  Ian Lance Taylor  (ian@cygnus.com)
15862
15863         * libc/sys/go32/gerrno.s: Renamed from errno.s to avoid conflict
15864         with errno/errno.c.
15865
15866 Fri Mar 12 09:46:54 1993  Ian Lance Taylor  (ian@cygnus.com)
15867
15868         * Changes for reentrancy.
15869         libc/stdio/fdopen.c, libc/stdio/freopen.c, libc/stdio/perror.c:
15870         Use ptr->_errno, not errno.
15871         libc/stdio/mktemp.c (mkstemp_r, mktemp_r): New functions.
15872         libc/stdio/remove.c (remove_r): New function.
15873         libc/stdio/rename.c (rename_r): New function.
15874         libc/stdio/fopen.c, libc/stdio/freopen.c, libc/stdio/fseek.c,
15875         libc/stdio/makebuf.c, libc/stdio/mktemp.c, libc/stdio/remove.c,
15876         libc/stdio/rename.c, libc/stdio/stdio.c, libc/stdio/tmpnam.c: Use
15877         reentrant versions of system calls.
15878         libc/stdio/gets.c: Call getchar_f, not nonexistent getchar_r.
15879         libc/stdio/scanf.c: Use stdin_r, not nonexistent stdin_n.
15880         libc/stdio/tmpfile.c: Use tmpnam_f, not nonexistent tmpnam_r.
15881         libc/stdio/findfp.c: Include <string.h>.
15882         libc/stdio/fread.c, libc/stdio/rget.c, libc/stdio/scanf.c: Include
15883         "local.h".
15884         libc/stdio/wbuf.c: Include "fvwrite.h"
15885
15886         * libc/stdlib/{dtoa.c, ecvtbuf.c, mprec.c, strtod.c}: Include
15887         <string.h>.
15888         libc/stdlib/malloc.c: Call sbrk_r rather than sbrk.
15889         (NULL): Don't define if already defined.
15890         libc/stdlib/system.c: Call reentrant versions of system calls.
15891         (system_r): New function.
15892
15893         * Changes for reentrancy.
15894         libc/include/_ansi.h (_PARAMS): New macro.
15895         libc/include/errno.h: Define errno as a macro that calls __errno.
15896         (__errno_r): New macro for reentrant code.
15897         libc/include/math.h: Include reent.h.  Declare many reentrant
15898         functions.
15899         (signgam): Now a macro, not a variable.
15900         (struct exception): Added err field.
15901         libc/include/reent.h: Don't declare __sglue.  Added function
15902         declarations.
15903         (struct reent_struct): Moved errno to beginning.  Added _signgam.
15904         libc/include/stdio.h, libc/include/stdlib.h: Added function
15905         declarations.
15906
15907         * More reentrancy hacking.
15908         libc/errno/errno.c (__errno): New function.
15909         libc/reent/execr.c, libc/reent/filer.c, libc/reent/fstatr.c,
15910         libc/reent/linkr.c, libc/reent/sbrkr.c, libc/reent/statr.c: New
15911         files.
15912         
15913         * Added many new reentrant functions to libm/math/*.
15914         libm/math/error.c (__matherror): Added reent_struct pointer
15915         argument. Changed all callers.
15916         libm/math/gamma.c (signgam): Removed. Set ptr->_signgam, instead.
15917         libm/math/exp.h, libm/math/pow.h, libm/math/sincos.h,
15918         libm/math/tan.h: Removed obsolete unused header files.
15919
15920         * libc/sys/a29khif/stubs.s: Use register lr0, not v0.
15921
15922         * libc/sys/sun/Makefile.in (COPYOFILES): Don't pull in errno.o.
15923
15924 Mon Mar  8 16:43:43 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
15925
15926         * libc/sys/a29khif/stubs.s: clobber safe register, and fill all
15927         delay slots.
15928
15929 Tue Mar  2 14:47:00 1993  Jeffrey Osier      (jeffrey@fowanton.cygnus.com)
15930
15931         * libc/libc.texinfo:  comment out reentrancy chapter (duh)
15932
15933 Tue Mar  2 14:34:16 1993  Jeffrey Osier      (jeffrey@fowanton.cygnus.com)
15934
15935         * libc/reent/reent.tex:  New file.  (text from
15936         newlib/libc/libc.texinfo)
15937         * libc/stdio/tmpnam.c:  fixed doc typo
15938         * libc/stdlib/rand.c:   fixed doc typo
15939
15940 Tue Mar  2 14:34:16 1993  Jeffrey Osier      (jeffrey@fowanton.cygnus.com)
15941
15942         * libc/reent/reent.tex:  New file.  (text from
15943         newlib/libc/libc.texinfo)
15944
15945 Fri Feb 26 12:20:54 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
15946
15947         support for reentrancy
15948         * libc/reent/reent.c, libc/reent/Makefile.in, libc/reent/reent.c:
15949         new files
15950         * libc/errno/errno.c, libc/include/ieeefp.h,
15951         libc/include/locale.h, libc/include/reent.h,
15952         libc/include/signal.h, libc/include/stdio.h,
15953         libc/include/stdlib.h, libc/include/string.h, libc/include/time.h,
15954         libc/signal/signal.c libc/stdio/cvt.c, libc/stdio/fclose.c,
15955         libc/stdio/fdopen.c, libc/stdio/fflush.c, libc/stdio/fgets.c,
15956         libc/stdio/findfp.c, libc/stdio/flags.c, libc/stdio/fopen.c,
15957         libc/stdio/fputc.c, libc/stdio/freopen.c, libc/stdio/fseek.c,
15958         libc/stdio/ftell.c, libc/stdio/fwalk.c, libc/stdio/getchar.c,
15959         libc/stdio/gets.c, libc/stdio/glue.h, libc/stdio/iprintf.c,
15960         libc/stdio/local.h, libc/stdio/makebuf.c, libc/stdio/perror.c,
15961         libc/stdio/printf.c, libc/stdio/putchar.c, libc/stdio/puts.c,
15962         libc/stdio/refill.c, libc/stdio/scanf.c, libc/stdio/setvbuf.c,
15963         libc/stdio/sprintf.c, libc/stdio/tmpfile.c, libc/stdio/tmpnam.c,
15964         libc/stdio/ungetc.c, libc/stdio/vfprintf.c, libc/stdio/vfprintf.h,
15965         libc/stdio/vfscanf.c, libc/stdio/vprintf.c, libc/stdio/wsetup.c,
15966         libc/stdlib/__adjust.c, libc/stdlib/__exp10.c,
15967         libc/stdlib/assert.c, libc/stdlib/atexit.c, libc/stdlib/atol.c,
15968         libc/stdlib/dtoa.c, libc/stdlib/ecvtbuf.c, libc/stdlib/malloc.c,
15969         libc/stdlib/mprec.c, libc/stdlib/mprec.h, libc/stdlib/rand.c,
15970         libc/stdlib/setenv.c, libc/stdlib/std.h, libc/stdlib/strtod.c,
15971         libc/stdlib/strtol.c, libc/stdlib/strtoul.c, libc/string/strtok.c,
15972         libc/time/asctime.c, libc/time/localtime.c, libc/time/mktime.c,
15973         libc/time/strftime.c: modify to provide reentracy.
15974
15975         new routines:
15976         strtok_r, asctime_r, fdopen_r, _cleanup_r, fopen_r, iprintf_r,
15977         perror_r, printf_r, putchar_r, puts_r, scanf_r, sprintf_r,
15978         tmpfile_r, vfiprintf_r, vfprintf_r, strtod_r, dtoa_r, rand_r,
15979         srand_r, strtoul_r,strtol_r, free_r, malloc_r, morecore_r,
15980         mstats_r, realloc_r, localeconv_r, setlocale_r
15981
15982 Wed Feb 17 20:17:15 1993  Mark Eichin  (eichin@cygnus.com)
15983
15984         * libc/include/machine/ieeefp.h, libc/include/machine/setjmp.h,
15985         libc/include/sys/config.h, libc/include/sys/signal.h,
15986         libc/include/sys/stat.h, libc/include/sys/types.h: For compiler
15987         provided macros (such as m68000), use the ansi version
15988         (__m68000__) so that the library can be used with code compiled
15989         -ansi. In particular, m68000, mc68000, _AM29K, i386, MIPSEL, unix,
15990         and sparc.
15991
15992 Wed Feb 17 13:01:34 1993  Jim Wilson  (wilson@sphagnum.cygnus.com)
15993
15994         * configure.in (sparc*): Don't set -fsoft-float for sparc
15995         configurations.  Do set -fsoft-float for sparclite configurations.
15996
15997 Fri Feb 12 16:25:52 1993  Roland H. Pesch  (pesch@fowanton.cygnus.com)
15998
15999         * default.menu, no-signal.menu: alternate forms of libc main menu
16000           (in newlib rather than newlib/libc due to configuration restrictions)
16001
16002         * configure.in: select one of the two menus above, link to
16003         libc.menu
16004
16005         * libc/libc.texinfo: include menu from separate file
16006
16007 Fri Feb 12 12:50:06 1993  Ian Lance Taylor  (ian@cygnus.com)
16008
16009         * Makefile.in (FLAGS_TO_PASS): Put INSTALL back in.
16010         (info): Split long shell command in half.
16011         * libc/Makefile.in (info, targetdep.tex): Don't pass everything to
16012         sub-makes, just CHEW and TARGETDOC. 
16013         (targetdep.tex): Removed now special handling of sys and machine
16014         subdirectories, made obsolete some time ago.
16015         * libc/machine/Makefile.in (doc): Don't pass everything to
16016         sub-make, just CHEW and TARGETDOC.
16017         (Makefile): New target.
16018         * libc/sys/Makefile.in (Makefile): New target.
16019
16020 Thu Feb 11 15:25:15 1993  Ian Lance Taylor  (ian@cygnus.com)
16021
16022         * Makefile.in (here and most subdirectories): Only pass down CHEW
16023         and TARGETDOC when making info, not for other targets.
16024
16025         * Makefile.in (here and most subdirectories), host/any: Use $(AR)
16026         $(AR_FLAGS) rather than $(ARUPDATE).
16027
16028 Wed Feb 10 11:57:52 1993  Ian Lance Taylor  (ian@cygnus.com)
16029
16030         * Try to reduce command line length:
16031         * Makefile.in (FLAGS_TO_PASS): don't pass down exec_prefix,
16032         CC_FOR_BUILD, CFLAGS_FOR_BUILD, INSTALL or CHEW.
16033         (info, docs): pass CC_FOR_BUILD and CFLAGS_FOR_BUILD to doc.
16034         (info): Pass CHEW to other subdirs.
16035
16036 Tue Feb  9 14:01:42 1993  Mark Eichin  (eichin@cygnus.com)
16037
16038         * configure.in: add signal_dir, like unix_dir, but by default it
16039         is set to "signal" so that a29khif can turn it off (since a29khif
16040         has raise() as part of machine-specific signal.s.)
16041
16042 Fri Jan 15 12:09:50 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
16043
16044         * libc/sys/config.h, libc/machine/ieeefp.h: add Z8000 support
16045         * libc/stdio/Makefile.in: pass CFLAGS so vfiprintf.c gets built
16046         correctly.
16047         * libc/stdio/fdopen.c, libc/stdio/fgets.c, libc/stdio/fscanf.c,
16048         libc/stdio/vfprintf: type lint.
16049         * libc/sys/z8ksim/crt0.c (start): Z8001/Z8002 independent
16050         initialzation code.
16051         * libc/sys/z8ksim/glue.c: Z8001/Z8002 clean system calls.
16052
16053 Tue Dec 29 10:15:33 1992  Ian Lance Taylor  (ian@cygnus.com)
16054
16055         * stub/mvme135/mvme135-asm.S: new file.
16056         stub/mvme135mvme135-stub.c: moved all assembler routines into
16057         mvme135-asm.S.
16058         stub/mvme135/Makefile.in: build mvme135-stub.o.
16059
16060 Mon Dec 28 12:40:43 1992  Ian Lance Taylor  (ian@cygnus.com)
16061
16062         * Makefile.in: don't pass down $(CPP); use $(CC) -E in
16063         sub-Makefiles instead, to try to avoid line length limitations.
16064
16065 Mon Dec 21 18:36:13 1992  Per Bothner  (bothner@rtl.cygnus.com)
16066
16067         * libc/include/unistd.h (read, write):  Use void* instead of
16068         char*.
16069
16070 Thu Dec 17 13:49:46 1992  Mark Eichin  (eichin@cygnus.com)
16071
16072         * stub/go32/resetpc: sample script to send a reset packet to the
16073         stub
16074
16075         * stub/go32/I386STUB.C: new file, gdb/i386stub.c modified for the
16076         DOS environment, which compiles with Turbo C.
16077
16078         * stub/go32/DSER32.LNK: new file, linker commands for serial
16079         remote stub.
16080
16081         * stub/go32/CONTROL.C: turn off debug_mode, add CYGNUS tag line to
16082         start up message to identify version; call set_debug_traps.
16083
16084         * stub/go32/DEBUG.C: turn off debug_mode (so stub doesn't need any
16085         keyboard interaction); call handle_exception() in go_til_stop,
16086         rather than return, so that the remote stub gets control.
16087
16088         * stub/go32/MAKEFILE: fixed to actually use DOS commands (del and
16089         rename, rather than mv), set flags that work with current Turbo C,
16090         including using the /3 flag; also, add commands to build dser32.
16091
16092         * stub/go32/DEBUG32.LNK, stub/go32/GO32.LNK: fix paths to match
16093         default Turbo C installation (\tc rather than \usr)
16094
16095         * stub/go32/MONO.C (printf): current Turbo C uses "..." instead of
16096         "&..."
16097
16098 Mon Dec 14 09:37:33 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
16099
16100         * libc/include/math.h: added _DOUBLE_IS_32BITS checks
16101
16102 Thu Nov 12 22:31:04 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
16103
16104         * libc/stdio/cvt.c (licvt): new function to convert ints when
16105         sizeof(int) != sizeof(long).
16106
16107         * libc/include/stdio.h: added prototype for iprintf.
16108         * libc/include/machine/limits.h machine/ieeefp.h: z8k stuff
16109
16110 Tue Nov 10 12:18:12 1992  Ian Lance Taylor  (ian@cygnus.com)
16111
16112         * libc/machine/m68k/setjmp.S: use __USER_LABEL_PREFIX__ and
16113         __REGISTER_PREFIX__.
16114
16115 Mon Nov  2 13:50:14 1992  Ian Lance Taylor  (ian@cygnus.com)
16116
16117         * libc/sys/m68kbare: moved into stub directory.
16118
16119 Mon Nov  2 13:40:42 1992  Ian Lance Taylor  (ian@cygnus.com)
16120
16121         * configure.in, Makefile.in: created new directory stub, to hold
16122         sample code for specific targets.
16123
16124 Wed Oct 28 02:19:55 1992  Mark Eichin  (eichin@cygnus.com)
16125
16126         * restored libc/sys/go32/sys/fcntl.h, to override incorrect values
16127         in the unified libc/include/sys/fcntl.h.
16128
16129 Wed Oct 21 13:55:58 1992  Doug Evans  (dje@rtl.cygnus.com)
16130
16131         * libc/stdlib/ecvtbuf.c: (print_f,_gcvt): printf("%f", 0.01)
16132         printed .01, not 0.01.
16133
16134 Mon Oct 19 11:05:55 1992  Ian Lance Taylor  (ian@cygnus.com)
16135
16136         * configure.in: compile with -m68000 for m68* targets.
16137
16138 Sun Oct 18 05:29:05 1992  Mark Eichin  (eichin@cygnus.com)
16139
16140         * libm/math/remainder.c (remainder): document the svr4 and sunos
16141         references used to construct the function.
16142
16143 Sat Oct 17 21:46:16 1992  Mark Eichin  (eichin@cygnus.com)
16144
16145         * libm/math/remainder.c (rint, remainder): fix old typos.
16146         * libm/math/Makefile.in: actually build remainder.c (functions
16147         rint and remainder, from SysVr4 Programmer's Guide floor(3m) man
16148         page.)
16149
16150 Thu Oct 15 07:48:05 1992  Ian Lance Taylor  (ian@cygnus.com)
16151
16152         * libc/string/bcopy.c: BSD version works on overlapping strings,
16153         so ours should too.
16154
16155         * libc/stdlib/system.c: always invoke /bin/sh, not getenv
16156         ("SHELL").
16157
16158 Wed Oct 14 11:07:11 1992  Ian Lance Taylor  (ian@cygnus.com)
16159
16160         * Makefile.in (docs): new target.
16161
16162 Wed Oct 14 07:44:25 1992  Ian Lance Taylor  (ian@cygnus.com)
16163
16164         * libc/include/sys/times.h: define clock_t as required by POSIX.
16165         libc/include/time.h: protect clock_t from multiple definitions.
16166
16167 Wed Oct  7 11:02:21 1992  Mark Eichin  (eichin at tweedledumber.cygnus.com)
16168
16169         * libm/math/sqrt.h (sqrt): actually, the final version of fp-bit
16170         does not need more than the original three iterations to get
16171         within 1 ulp. (Paranoia tests for rounding to better than that,
16172         but further iterations *don't* help, only more subtle changes
16173         can.)
16174
16175 Tue Oct  6 09:22:12 1992  Ian Lance Taylor  (ian@cygnus.com)
16176
16177         * libc/sys/vxworks68, libc/sys/vxworks960: removed, since they
16178         were doing nothing useful.
16179
16180 Tue Oct  6 08:48:13 1992  Ian Lance Taylor  (ian@cygnus.com)
16181
16182         * configure.in: define MALLOC_PROVIDED for vxworks targets;
16183         removed sys_dir settings of vxworks68 and vxworks960.
16184         host/any: don't pass -nostdinc to gcc, since newlib no longer
16185         provides all required header files.
16186
16187         * libc/stdlib/malloc.c: only compile this file if MALLOC_PROVIDED
16188         is not defined; this provides a hook for VxWorks.
16189
16190 Mon Oct  5 03:44:57 1992  Mark Eichin  (eichin at tweedledumber.cygnus.com)
16191
16192         * libc/stdio/setvbuf.c (setvbuf): while ANSI does say to malloc a
16193         buffer if buf is NULL, don't do it here -- it is already being
16194         done by makebuf elsewhere in stdio.
16195
16196 Fri Oct  2 13:12:07 1992  Ian Lance Taylor  (ian@cygnus.com)
16197
16198         * libc/sys/a29khif/Makefile.in: assemble Steve's list of stubs so
16199         that C programs can call functions without using initial
16200         underscores.
16201
16202 Thu Oct  1 09:37:47 1992  Ian Lance Taylor  (ian@cygnus.com)
16203
16204         * libc/stdlib/abort.c (abort): call exit, in case kill returns.
16205
16206 Wed Sep 30 08:22:18 1992  Ian Lance Taylor  (ian@cygnus.com)
16207
16208         * configure.in: set TARGET_CFLAGS for certain CPU types to
16209         -msoft-float.
16210
16211 Tue Sep 29 21:09:32 1992  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
16212
16213         * libc/sys/m68kbare/glue.c: use <_ansi.h> instead of <ansidecl.h>
16214
16215 Mon Sep 28 14:58:44 1992  Ian Lance Taylor  (ian@cygnus.com)
16216
16217         * configure.in: added sys_dir m68kbare for m68k*-unknown-aout and
16218         m68k*-unknown-coff.
16219
16220 Fri Sep 25 08:33:21 1992  Ian Lance Taylor  (ian@cygnus.com)
16221
16222         * libc/include/stdio.h: define __need___va_list before including
16223         <stdarg.h>, to avoid defining va_arg, et. al.
16224
16225 Tue Sep 22 13:47:00 1992  Ian Lance Taylor  (ian@cygnus.com)
16226
16227         * libc/sys/Makefile.in: handle the case of an empty $(sys_dir)
16228         (don't cd to the user's home directory).
16229
16230         * libc/Makefile.in: replaced all instances of $(MAKE) with make.
16231         In general this is the wrong thing to do, but I can't get around
16232         GNU make's insistence on passing command line arguments any other
16233         way.
16234
16235 Tue Sep 22 10:12:44 1992  Ian Lance Taylor  (ian@cygnus.com)
16236
16237         * configure.in: always configure the libc/sys directory, since it
16238         now provides a required documentation file.
16239
16240         * Makefile.in: replaced all instances of $(MAKE) with make.  In
16241         general this is the wrong thing to do, but I can't get around GNU
16242         make's insistence on passing command line arguments any other way.
16243
16244 Mon Sep 21 22:42:26 1992  Ian Lance Taylor  (ian@tweedledumbest.cygnus.com)
16245
16246         * libc/stdlib/ecvtbuf.c (_gcvt): string for 0 was not null
16247         terminated.
16248
16249         * libc/stdio/local.h: include <stdarg.h> to define va_list.
16250         libc/stdio/vsprintf.c: include <stdarg.h> rather than <varargs.h>.
16251
16252         * libc/include/float.h, libc/include/stdarg.h,
16253         libc/include/stddef.h, libc/include/varargs.h: removed; use gcc
16254         versions instead.
16255         libc/include/stdio.h: get size_t from <stddef.h>, and va_list from
16256         <stdarg.h>, not from <machine/types.h>.  Protect definition of
16257         NULL.
16258         libc/include/time.h: get size_t from stddef.h.  Protect definition
16259         of NULL.
16260         libc/include/machine/limits.h: override gcc <limits.h> by defining
16261         _LIMITS_H___.  Don't define CLK_TCK.  Copied in gcc <limits.h> to
16262         get correct INT_MIN and LONG_LONG values.
16263         libc/include/machine/types.h: don't define ptrdiff_t, wchar_t,
16264         size_t or va_list at all; they're now gotten from stddef.h
16265         instead.
16266         libc/include/machine/varargs.h: removed; use gcc version instead.
16267         libc/include/sys/types.h: explicitly include <machine/types.h>.
16268
16269         * libm/math/sqrt.h: using the fp-bit routines appears to require
16270         more iterations.
16271
16272         * Makefile.in, host/any: let system include files override machine
16273         include files.
16274
16275 Sat Sep 19 21:10:06 1992  Mark Eichin  (eichin at tweedledumber.cygnus.com)
16276
16277         * libc/include/machine/types.h: allow __*_TYPE__ from cpp to
16278         override _*_T_ definitions defaulted here.
16279
16280 Tue Sep 15 11:14:46 1992  Ian Lance Taylor  (ian@cygnus.com)
16281
16282         * Makefile.in (install): install the include files in
16283         $(tooldir)/include, not $(exec_prefix)/include.
16284
16285 Fri Sep 11 15:48:43 1992  Ian Lance Taylor  (ian@cygnus.com)
16286
16287         * Makefile.in (install): fixed typo, and changed install to not
16288         force rebuild of libc.a and libm.a.
16289
16290 Thu Sep 10 10:46:09 1992  Ian Lance Taylor  (ian@cygnus.com)
16291
16292         * libc/sys/a29khif/*: Changed all .include's to include
16293         sys/sysmac.h, not plain sysmac.h.  The header files live in sys so
16294         that they will be installed for the user.
16295
16296         * Makefile.in (all): create targ-include, a directory holding the
16297         machine and system specific header files during the build.
16298         (install): fixed installation of machine and system specific
16299         header files.
16300
16301         * Makefile.in: fixed comment.
16302         host/any: change .s.o rule to use $(AS) rather than $(CC), so that
16303         we can pass $(INCLUDES) to it.
16304
16305 Thu Sep 10 10:13:13 1992  Ian Lance Taylor  (ian@cygnus.com)
16306
16307         * libc/include/sys/param.h: new generic file, which may be
16308         overridden for specific systems.
16309
16310         * libc/include/sys/signal.h: define all ANSI signal names, and
16311         NSIG (which is not ANSI) for a29k.
16312
16313 Tue Sep  8 09:04:30 1992  Ian Lance Taylor  (ian@cygnus.com)
16314
16315         * Makefile.in: don't pass down arguments the lower level makes
16316         will not need.
16317         * libc/Makefile.in: recurse directly, rather than using subdir_do,
16318         in hopes of avoiding argument length limits.
16319         * libm/Makefile.in: recurse directly, rather using subdir_do, in
16320         hopes of avoiding argument length limits.
16321
16322 Tue Sep  8 08:27:22 1992  Ian Lance Taylor  (ian@cygnus.com)
16323
16324         * libc/include/sys/fcntl.h: include <sys/types.h> to ensure that
16325         mode_t is defined.
16326
16327 Mon Sep  7 14:02:07 1992  Ian Lance Taylor  (ian@cygnus.com)
16328
16329         * Fixed make info and make install-info for newlib, changing most
16330         Makefile.in and several *.tex files.  Moved doc directory from
16331         libc to top level.
16332
16333         * libc/time/mktime.c (_DAYS_IN_MONTH): actually, not const.
16334         Should be rewritten.
16335
16336         * libc/string/strings.tex: renamed node index to node index
16337         function, so that it does not conflict with the top level index
16338         node.
16339
16340         * libc/include/sys/config.h: define __IEEE_BIG_ENDIAN for h8300.
16341
16342 Fri Sep  4 02:34:06 1992  Ian Lance Taylor  (ian@cygnus.com)
16343
16344         * Overhauled general configuration for newlib.  Eliminated all
16345         target dependent Makefile fragments.  Create libraries in newlib
16346         rather than newlib/libc and newlib/libm.  Use CC, et. al., rather
16347         than CROSS_CC, et. al.  Broke make docs; will fix later.
16348
16349         * libc/time/localtime.c (_DAYS_IN_MONTH): actually, not const.
16350         Should be rewritten.
16351
16352 Tue Sep  1 15:21:14 1992  Ian Lance Taylor  (ian@cygnus.com)
16353
16354         * libc/configure.in: cleaned up somewhat; switch on ${target}
16355         rather than ${target_alias}.
16356         * libm/configure.in: cleaned up somewhat; switch on ${target}
16357         rather than ${target_alias}.
16358
16359         * libc/ctype/ctype_.c: marked _ctype_ array _CONST.
16360         * libc/include/ctype.h: marked _ctype_ as _CONST.
16361
16362         * libc/locale/locale.c (lconv, localeconv): marked static lconv as
16363         _CONST.
16364
16365         * libc/stdio/cvt.c, libc/stdio/findfp.c (__sfmoreglue),
16366         libc/stdio/vfscanf.c (__svfscanf): made static variables const.
16367         libc/stdio/gets.c (gets): removed non-ANSI warning message.
16368         libc/stdio/tmpnam.c (tmpnam): removed unneeded filename variable.
16369
16370         * libc/stdlib/mprec.h, libc/stdlib/mprec.c (pow5mult, tens,
16371         bigtens, tinytens): marked arrays _CONST.
16372         libc/stdlib/qsort.c (swap): if __GNUC__, use _builtin_alloca
16373         rather than a static variable.
16374
16375         * libc/time/asctime.c (asctime), libc/time/localtime.c
16376         (_DAYS_IN_MONTH), libc/time/mktime.c (_DAYS_IN_MONTH,
16377         _DAYS_BEFORE_MONTH), libc/time/strftime.c (dname_len, dname,
16378         mname_len, mname): Marked static arrays _CONST.
16379
16380         * libm/math/gamma.h: made local variables non-static.
16381
16382         * libm/math/acos.h, libm/math/bessel.c, libm/math/erf.c,
16383         libm/math/exp.c, libm/math/gamma.h: marked static arrays as
16384         _CONST.
16385
16386         * libm/math/constants.c: removed file, because the constants it
16387         defined were never referenced.
16388         libm/math/Makefile.in: removed references to constants.c.
16389         libm/math/mathimpl.h: removed declarations of constants.
16390
16391 Wed Aug 26 21:09:06 1992  Ian Lance Taylor  (ian@cygnus.com)
16392
16393         * libc/include/machine/varargs.h: only call __builtin_saveregs if
16394         it is sensibly defined in libgcc2.  Checks preprocessor defines,
16395         which is not a good solution.
16396
16397         * libm/sqrt.c: sqrt(Infinity) should not be a domain error.
16398
16399         * libm/frexp.c: handle denormalized numbers as arguments.
16400
16401         * libm/math/Makefile.in: added some dependencies for .c files
16402         which include local .h files.
16403
16404 Mon Aug 24 12:57:58 1992  Ian Lance Taylor  (ian@cygnus.com)
16405
16406         * libc/configure.in: set target_alias for OSE*.  Replace
16407         target_makefile_frag if it is blank.
16408
16409         * libc/Makefile.in: make sure everything is passed to subsidiary
16410         makes; create all directories when installing.
16411
16412         * libm/ieeefp/Makefile.in, libm/math/Makefile.in: use
16413         CROSS_ARUPDATE instead of AR.
16414
16415         * libm/configure.in: set target_alias for OSE*.  Replace
16416         target_makefile_frag if it is blank.
16417
16418         * libm/Makefile.in: make sure everything is passed to subsidiary
16419         makes; create all directories when installing.
16420
16421 Thu Aug 20 15:11:51 1992  Mark Eichin  (eichin@cygnus.com)
16422
16423         * add following change from libc copy.
16424
16425 Wed Aug 19 18:54:49 1992  Roland H. Pesch  (pesch@fowanton.cygnus.com)
16426
16427         * libc/libc.texinfo: make copyright disclaimers appear on back of
16428         title page; make format of same slightly less ugly; avoid using
16429         underbars in section headings (avoids nasty texinfo bug in table
16430         of contents).
16431
16432         * libc/ctype/tolower.c, libc/ctype/toupper.c: (doc changes in
16433           comments only) avoid using underbars in section headings
16434
16435         * libc/ieeefp/ieeefp.tex: include doc from fpsticky, infinity,
16436           isnan ieeefp/fpmask.c, ieeefp/fpround.c, ieeefp/fpsticky.c (doc
16437           changes in comments only): shorten headings ieeefp/infinity.c,
16438           ieeefp/isnan.c: (doc, comments only) more informative headings
16439
16440         * libc/math/bessel.c: (doc, comments only) shorten heading
16441
16442         * libc/stdlib/efgcvt.c, libc/stdlib/mbtowc.c, libc/stdlib/wctomb.c
16443         (doc, comments only) shorten headings
16444
16445         * libc/time/localtime.c (doc, comments only): shorten headings
16446
16447         * libm/ieeefp/ieeefp.tex: include doc from fpsticky, infinity,
16448           isnan
16449           libm/ieeefp/fpmask.c, libm/ieeefp/fpround.c,
16450           libm/ieeefp/fpsticky.c (doc changes in comments only): shorten
16451           headings
16452           libm/ieeefp/infinity.c, libm/ieeefp/isnan.c: (doc, comments
16453           only) more informative headings
16454         * libm/math/bessel.c: (doc, comments only) shorten heading
16455
16456 Wed Aug 19 07:06:37 1992  Mark Eichin  (eichin at tweedledumber.cygnus.com)
16457
16458         * .../Makefile.in: use CROSS_ARUPDATE consistently.
16459         * config/*.mt: define CROSS_AR as well as CROSS_ARUPDATE
16460         * config/*.mt: define CROSS_CPP based on CROSS_CC, not /lib/cpp.
16461         * .../Makefile.in: get rid of .c.o rule - if TOP is correctly
16462         defined, the one from the .mt file will be correct.
16463         * libc/include/machine, libc/include/sys: created, and populated
16464         with common files from machine/*/machine. ifdefs were used for
16465         most, typically by handling exceptions first and then filling in
16466         defaults. Files with D.J. Delorie copyright #included rather than
16467         copied. Most files in include/sys really were the same in the
16468         original.
16469         * libc/include/...: cleaned up use of _EXFUN.
16470         * libc/stdlib/mprec.c: mprec.h doesn't get installed, so include
16471         it with double quotes, not angles.
16472
16473 Mon Aug 10 11:43:20 1992  Ian Lance Taylor  (ian@dumbest.cygnus.com)
16474
16475         * libc/Makefile.in: always create installation directories.
16476
16477 Sun Aug  9 22:45:48 1992  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
16478
16479         * libc/configure.in: handle host properly (using canonical
16480         triples), better error message for the case of target not found
16481
16482 Thu May 28 01:56:37 1992  Michael Tiemann  (tiemann@rtl.cygnus.com)
16483
16484         * libc/Makefile.in (insincdir): Ensure this directory exists
16485         before attempting installation.
16486
16487 Fri May  1 18:16:42 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
16488
16489         * libc/stdlib/assert.c: now calls abort like it should
16490         * libc/sys/a29khif: many many patches for 29khif work
16491         * libc/machine/i386: gnulib2 expanded there.
16492
16493 Tue Apr 28 19:08:37 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
16494
16495         Added accurate fp conversion routines to stdlib, moved dcvt from
16496         stdio to stdlib and called it ecvtbuf:
16497         * libc/stdlib/mprec.c, mprec.h: new files for multiprec arithmetic
16498         * libc/stdlib/Makefile.in, efgcvt.c, strtod.c: modified to use new
16499         routines
16500         * libc/libc.texinfo: Modifed to include the copyright info from
16501         the mprec files
16502         * libc/stdlib/efgcvt.c: now xref to ecvtbuf in stdlib.
16503         * libc/test/ : many vector which tested for the implementation
16504         defined returns of strange conversion requests have been updated
16505         to relflect the new implementation
16506
16507 Mon Apr 27 13:41:33 1992  Roland H. Pesch  (pesch@fowanton.cygnus.com)
16508
16509         * libc/libc.texinfo: new chapter on variable arg lists
16510         (stdarg.h/varargs.h)
16511         * libc/libc.texinfo: new title
16512         * libc/time/gmtime.c, libc/time/localtime./c, libc/time/mktime.c:
16513         (doc only) shorter headings for better formatting.
16514
16515 Fri Apr 24 11:26:48 1992  Roland H. Pesch  (pesch@fowanton.cygnus.com)
16516
16517         * libc/libc.texinfo: three more info menu entries
16518         * libc/locale/locale.tex: new chapter
16519         * libc/locale/locale.c: new doc for setlocale, localeconv
16520         * libc/locale/Makefile.in: use new locale doc
16521         * libc/signal/signal.tex: new chapter
16522         * libc/signal/raise.c, libc/signal/signal.c: new doc
16523         * libc/signal/Makefile.in: use new doc
16524         * libc/time/time.tex: new chapter
16525         * libc/time/asctime.c libc/time/clock.c libc/time/ctime.c
16526         libc/time/difftime.c libc/time/gmtime.c libc/time/localtime.c
16527         libc/time/mktime.c libc/time/strftime.c libc/time/time.c: new doc
16528         * libc/time/Makefile.in: use new doc
16529
16530 Tue Apr 21 14:48:50 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
16531
16532         * libm/math/log1p.c: split to use the new function way of float
16533         function definition. math/log1p.h deleted
16534         * libm/math/scalb.c: obsolete and deleted
16535         * libm/math/scalbn.c: created from part log1p.c
16536         * libm/math/Makefile.in: know about log1p and scalbn
16537
16538 Tue Apr 21 12:32:21 1992  Roland H. Pesch  (pesch@fowanton.cygnus.com)
16539
16540         * libc/ctype/isupper.c: revise doc;
16541           libc/ctype/ctype.tex: use doc from isupper.c
16542
16543         * libc/string/bzero.c: new doc
16544
16545 Mon Apr 20 14:19:42 1992  Roland H. Pesch  (pesch@fowanton.cygnus.com)
16546
16547         * libc/stdlib/system.c, libc/stdlib/exit.c, libc/stdlib/abort.c:
16548         new doc
16549         * libc/stdlib/Makefile.in: extract new doc
16550         * libc/stdlib/stdlib.tex: use new doc
16551
16552         * libc/string/strerror.c: expanded doc.
16553
16554         * libc/stdio/Makefile.in: extract doc from more files
16555         * libc/stdio/fopen.c, libc/stdio/perror.c, libc/stdio/remove.c,
16556         libc/stdio/rename.c, libc/stdio/rewind.c, libc/stdio/setbuf.c,
16557         libc/stdio/setvbuf.c, libc/stdio/sprintf.c, libc/stdio/tmpfile.c,
16558         libc/stdio/tmpnam.c, libc/stdio/vfprintf.c, libc/stdio/vprintf.c,
16559         libc/stdio/vsprintf.c: new doc
16560         * libc/stdio/stdio.tex: use new doc
16561
16562 Mon Apr 20 09:38:17 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
16563
16564         * libc/config/ebmon29k: added CROSS_CPP rule and other fixes
16565         * libc/include/ieeefp.h: fixed ansi conflict with isnanf, isinff,
16566         finitef functions.
16567         * libc/sys/a29khif/sys/*.h: ansidecl.h was renamed to _ansi.h some
16568         time ago.
16569
16570         * libc/stdio/stdio.h: added P_tmpdir for /tmp (SVID thing)
16571         * libc/stdio/setbuf.c: added ansi style definition.
16572         * libc/stdio/setvbuf.c: added ansi definition, now mallocs own
16573         buffer if none provided.
16574         * libc/stdio/tmpfile.c: lint
16575         * libc/stdio/tmpnam.c (worker): created. (tmpnam): mallocs buffer
16576         rather than using static, also make sure file isn't already
16577         present.  Uses P_tmpdir. (tempnam): rewritten to use new
16578         subroutine, and uses P_tmpdir.
16579         * libc/stdio/siprintf.c: created
16580
16581 Mon Apr 13 09:12:58 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
16582
16583         Release 1.03 for NEC, major mods. Main differences from release
16584         1.02::
16585
16586         More tests in test/:
16587         * jn_vec.c, jnf_vec.c, yn_vec.c, ynf_vec.c, log2_vec.c,
16588         log2f_vec.c, atan2_vec.c, atan2f_vec.c: new test vectors.
16589         * test_ieee.c: tests for ieee flags & masks - get/set rounding,
16590         get/set mask, get/set sticky and get/set roundtoi.  Tests
16591         that setting the bits changes the way arithmetic is done.
16592         * string.c: added test to make sure memcmp does it with unsigned
16593         chars.
16594         * test.c: cleaned up and removed lint.
16595         * sprint_vec, sprint_ivec.c, convert.c, conv_vec.c, iconf_vec.c,
16596         dvec.c: tests for string to value conversions,  sprintf, scanf,
16597         atof, atoff, strtod, strtodf, atoi, atol, strtol, ecvtbuf, ecvt,
16598         ecvtf,  fcvtbuf, fcvt, fcvtf, gcvt, gcvtf.  Some attention paid to
16599         rounding in sprintf too.
16600         * test_is.c: tests for  isalnum, isalpha, isascii, iscntrl,
16601         isdigit, isgraph, islower, isprint, ispunct, isspace, isupper,
16602         isxdigit, toascii, tolower, toupper, _tolower, _toupper in macro
16603         and function form.
16604         * math2.c: test for frexp, frexpf, ldexp, ldexpf, modf modff, pow,
16605         powf
16606
16607         In the library:
16608         * libc/stdlib/div.c, libc/stdlib/ldiv.c, libc/stdlib/strtod.c,
16609         libc/stdlib/strtol.c, libc/stdlib/stroul.c, libc/stdlib/abs.c,
16610         libc/stdlib/bsearch.c, libc/stdlib/calloc.c, libc/stdlib/getenv.c,
16611         libc/stdlib/labs.c, libc/stdlib/malloc.c: new documentation
16612         * libc/stdlib/efgcvt.c: rewritten to use new _dcvt routines rather
16613         than sprintf.
16614         * libc/stdio/dcvt.c: rewritten to make more useful elsewhere. 
16615         * Method of producting float versions of double functions has
16616         changed, functions will be modified gradually. So far:
16617         libm/math/exp.c, libm/math/pow.c, libm/math/modf.c,
16618         libm/math/sincos.c, libm/math/fmod.c, libm/math/tan.c have been
16619         altered
16620         * libc/string/memcmp.c: now uses unsigned chars
16621         * libc/string/bcmp.c, libc/string/strcpy.c,
16622         libc/stsring/strxfrm.c: fixed doc
16623         * libc/sys/sysvnecv70.tex: fix example of sbrk code
16624 \f
16625 Local Variables:
16626 version-control: never
16627 End: