OSDN Git Service

2006-09-13 Patrick Mansfield <patmans@us.ibm.com>
[pf3gnuchains/pf3gnuchains4x.git] / newlib / ChangeLog
1 2006-09-13  Patrick Mansfield <patmans@us.ibm.com>
2
3         * libc/include/math.h: Remove _CONST from _LIB_VERSION, as it is
4         supposed to be writable.
5         * libm/common/s_lib_ver.c: Ditto.
6
7 2006-09-12  Paul Brook  <paul@codesourcery.com>
8
9         * libc/stdlib/rand.c (srand): Add _REENT_CHECK_RAND48.
10
11 2006-09-07  Masaki Muranaka  <monaka@monami-software.com>
12
13
14         * libc/machine/xstormy16/Makefile.am:
15         Add $(lpfx) prefix to LIBADD objects.
16         lib_a_DEPENDENCIES uses the value of lib_a_LIBADD.
17         * libc/machine/xstormy16/Makefile.in: Regenerated.
18
19 2006-09-06  Eric Blake  <ebb9@byu.net>
20
21         * libc/stdio/vfprintf.c (_vfprintf_r, get_arg): Add 'hh', 'j',
22         't', and 'z' modifiers.
23
24 2006-09-01  Kazu Hirata  <kazu@codesourcery.com>
25
26         Merge from newlib-csl-20060320-branch:
27         2006-05-22  Sandra Loosemore <sandra@codesourcery.com>
28
29         * configure.host: Tell it we have _rename and _system when
30         building m68k-unknown-elf.
31
32 2006-08-29  Paul Brook  <paul@codesourcery.com>
33
34         * libc/include/sys/config.h: Define _REENT_SMALL for Thumb-2.
35
36 2006-08-27  Joel Sherrill <joel.sherrill@OARcorp.com>
37
38         * libc/sys/rtems/machine/sys/param.h: Conditionalize definition of
39         BLKDEV_IOSIZE and MAXPHYS so it will fit into small memory targets.
40         This is needed to build all AVR and H8300 RTEMS multilib variants.
41
42 2006-08-23  Kazunori Asayama  <asayama@sm.sony.co.jp>
43
44         * libc/machine/configure.in: Add configuration for SPU.
45         * libc/machine/configure: Regenerated.
46         * libc/machine/spu/memcpy.c: Include string.h.
47
48 2006-08-22  Eric Blake  <ebb9@byu.net>
49
50         * libc/posix/popen.c (popen): Don't close output end of pipe in
51         child if stdout was closed on entry.
52         [HAVE_FCNTL]: In parent, mark file as close-on-exec, per POSIX.
53
54 2006-08-19  Ramana Radhakrishnan  <ramana.r@gmail.com>
55
56         * sys/types.h: Correct syntax error caused by missing '\' on #ifdef
57         line.
58
59 2006-08-17  Brian Ford  <Brian.Ford@FlightSafety.com>
60
61         * libc/time/gmtime.c: Correct man page; clock is not a
62         local time and no conversion occurs.
63
64 2006-08-16  Joel Schopp  <jschopp@austin.ibm.com>
65
66         * configure.host (newlib_cflags) [spu]: Add special compiler
67         options to reduce size.
68
69 2006-08-16  Joel Schopp  <jschopp@austin.ibm.com>
70
71         * configure.host: Add spu support.
72         * libc/include/stdint.h: Ditto.
73         * libc/include/machine/ieeefp.h: Ditto.
74         * libc/include/machine/setjmp.h: Ditto.
75         * libc/include/sys/config.h: Ditto.
76         * libc/include/sys/types.h: Ditto.
77         * libc/machine/spu/Makefile.am: New file.
78         * libc/machine/spu/Makefile.in: Ditto.
79         * libc/machine/spu/aclocal.m4: Ditto.
80         * libc/machine/spu/configure: Ditto.
81         * libc/machine/spu/configure.in: Ditto.
82         * libc/machine/spu/memcpy.c: Ditto.
83         * libc/machine/spu/setjmp.S: Ditto.
84
85 2006-08-03  J"orn Rennecke  <joern.rennecke@st.com>
86
87         * dtoa.c (dtoa_r): Handle the denormalized _DOUBLE_IS_32BITS case
88         properly.
89
90 2006-08-01  Jeff Johnston  <jjohnstn@redhat.com>
91
92         * libc/Makefile.am: Add libc_TEXINFOS dependency on
93         generated .texi files.
94         * libm/Makefile.am: Add libm_TEXINFOS dependency on
95         generated .texi files.
96         * libc/Makefile.in: Regenerated.
97         * libm/Makefile.in: Ditto.
98
99 2006-08-01  Thiemo Seufer  <ths@mips.com>
100             Nigel Stephens  <nigel@mips.com>
101
102         * libc/include/sys/config.h (__ATTRIBUTE_IMPURE_PTR__): For MIPS
103         define this to force _impure_ptr to live in the .sdata section.
104
105 2006-07-31  Jeff Johnston  <jjohnstn@redhat.com>
106
107         * acinclude.m4: Check for readelf tool.
108         * configure.in: Use ${READELF} instead of hard-coding.
109         * Regenerate all aclocal.m4, Makefile.in, and configure files.
110
111 2006-07-31  Jeff Johnston  <jjohnstn@redhat.com>        
112
113         * libc/sys/linux/mmap.c: Remove include of sys/mman.h
114         to avoid conflict with newer glibc's revision of mremap.
115
116 2006-07-05  Jeff Johnston  <jjohnstn@redhat.com>        
117
118         * libc/stdlib/mprec.h [_DOUBLE_IS_32BITS]: Turn off C99 hex 
119         floating-point format support.  Also redefine
120         dword0 and dword1 macros.
121         * libc/stdlib/strtod.c: Add checks for _DOUBLE_IS_32BITS
122         to prevent setting dword1 which is an rvalue only.
123
124 2006-06-22  Jeff Johnston  <jjohnstn@redhat.com>        
125
126         * libc/stdlib/Makefile.am: Add new gdtoa routines.
127         * libc/stdlib/Makefile.in: Regenerated.
128         * libc/stdlib/gd_qnan.h: New file.
129         * libc/stdlib/gdtoa-gethex.c: Ditto.
130         * libc/stdlib/gdtoa-hexnan.c: Ditto.
131         * libc/stdlib/gdtoa.h: Ditto.
132         * libc/stdlib/mprec.c: Add new helper routines needed by
133         the new gdtoa code.
134         * libc/stdlib/mprec.h: Integrate some defines and prototypes
135         used by gdtoa routines here.
136         * libc/stdlib/strtod.c: Rebased on David M. Gay's gdtoa-strtod.c
137         which adds C99 support such as nan, inf, and hexadecimal input
138         format.
139
140 2006-06-15  Corinna Vinschen  <corinna@vinschen.de>
141
142         * libc/include/stdio.h (__sgetc_r): Fix typo.
143         * libc/stdio/fread.c (_fread_r): Convert crlf calls to crlf_r.
144         * libc/stdio/rget.c (__srbuf): Reinstantiate.
145         * libc/stdio/wbuf.c (__swbuf): Ditto.
146
147 2006-06-14  Jeff Johnston  <jjohnstn@redhat.com>        
148
149         * libc/include/stdio.h: Add new reentrant I/O prototypes for
150         read/write functions.  Change getc/putc macros to have reentrant underlying 
151         macros/functions.  This includes __sgetc_raw_r, __sgetc_r, and __sputc_r.
152         * libc/stdio/fgetc.c: Fix and/or add reentrant version to call
153         new reentrant I/O functions/macros for reading/writing.
154         * libc/stdio/fgets.c: Ditto.
155         * libc/stdio/fputc.c: Ditto.
156         * libc/stdio/fputs.c: Ditto.
157         * libc/stdio/fread.c: Ditto.
158         * libc/stdio/fseek.c: Ditto.
159         * libc/stdio64/fseeko64.c: Ditto.
160         * libc/stdio/fwrite.c: Ditto.
161         * libc/stdio/getc.c: Ditto.
162         * libc/stdio/getc_u.c: Ditto.
163         * libc/stdio/getchar.c: Ditto.
164         * libc/stdio/getchar_u.c: Ditto.
165         * libc/stdio/putc.c: Ditto.
166         * libc/stdio/putc_u.c: Ditto.
167         * libc/stdio/putchar.c: Ditto.
168         * libc/stdio/puts.c: Ditto.
169         * libc/stdio/vfprintf.c: Ditto.
170         * libc/stdio/vfscanf.c: Ditto.
171         * libc/stdio/fvwrite.c: Change __sfvwrite into reentrant __sfvwrite_r.
172         Change all previous callers of __sfvwrite.  Set errno to EBADF and
173         set error flag on if attempt is made to write to file that does not
174         allow writing.
175         * libc/stdio/fvwrite.h: Fix new reentrant prototypes.
176         * libc/stdio/local.h: Ditto.
177         * libc/stdio/refill.c: Turn __srefill into reentrant __srefill_r.
178         Set errno to EBADF and the error flag on if attempt is made to
179         read unreadable file.  Change all previous callers of __srefill.
180         * libc/stdio/rget.c
181         * libc/stdio/wbuf.c: Turn __swbuf into reentrant __swbuf_r.  Change
182         all previous callers of __swbuf.
183         * libc/sys/linux/machine/i386/huge_val.h: Ifdef out file contents since
184         huge value macros are already defined correctly for i386 by <math.h>.
185
186 2006-06-13  Sandra Loosemore <sandra@codesourcery.com>
187
188         * /libc/sys/arm/syscalls.c (_unlink, isatty, _system, _rename):
189         Make them do something useful in the ARM_RDI_MONITOR case.
190
191 2006-06-07  Fred Fish  <fnf@specifix.com>
192
193         * libc/search/hash_bigkey.c (MIN,MAX): Remove
194         defines that are already supplied by <sys/param.h>.
195
196 2006-06-07  Fred Fish  <fnf@specifix.com>
197
198         * configure.host: Remove references to HAVE_GETTIMEOFDAY.
199
200 2006-06-05  Shaun Jackman  <sjackman@gmail.com>
201
202         * libc/posix/Makefile.am (GENERAL_SOURCES): Add sleep.c and
203         usleep.c.
204         * libc/posix/Makefile.in: Regenerate.
205         * libc/posix/sleep.c: New file.
206         * libc/posix/usleep.c: Ditto.
207
208 2006-06-05  Shaun Jackman  <sjackman@gmail.com>
209
210         * configure.host (newlib_cflags) [arm, thumb, xscale]:  Remove
211         -DABORT_PROVIDED flag.
212         * newlib/libc/sys/arm/syscalls.c (kill, exit): Sync with libgloss.
213         * newlib/libc/sys/arm/libcfunc.c (abort): Ditto.
214
215 2006-06-05  Jeff Johnston  <jjohnstn@redhat.com>
216
217         * Makefile.am (AM_MAKEFLAGS): Pass CCASFLAGS.
218         * Makefile.in: Regenerated.
219         * libc/machine/sh/Makefile.am (AM_CCASFLAGS): Remove
220         extraneous CFLAGS reference now that CCASFLAGS are being extended
221         properly via multilib.
222         * libc/machine/sh/Makefile.in: Regenerated.
223
224 2006-06-02  Shaun Jackman  <sjackman@gmail.com>
225
226         * libc/unix/sigset.c: Undefine sigfillset, sigdelset, and
227         sigismember.
228
229 2006-05-23  Jeff Johnston  <jjohnstn@redhat.com>
230
231         * libc/misc/dprintf.c: Removed.
232         * libc/misc/__dprintf.c: Renamed from dprintf.c.
233         * libc/misc/Makefile.am: Changed appropriately for rename.
234         * libc/misc/Makefile.in: Regenerated.
235
236 2006-05-23  Jeff Johnston  <jjohnstn@redhat.com>
237
238         * libc/include/stdio.h: Protect dprintf prototype
239         with #ifndef dprintf so as to not interfere with
240         historical code defining their own dprintf macro.
241
242 2006-05-18  Jeff Johnston  <jjohnstn@redhat.com>
243
244         * libc/include/stdio.h: Add prototypes for fiscanf,
245         iscanf, and siscanf.
246
247 2006-05-11  J"orn Rennecke <joern.rennecke@st.com>
248
249         * acinclude.m4 (_NEWLIB_VERSION): Rename to:
250         (DEF_NEWLIB_VERSION).
251         * configure.in (_NEWLIB_VERSION): Use NEWLIB_VERSION.
252         * configure: Regenerate.
253
254 2006-05-09  Jeff Johnston  <jjohnstn@redhat.com>
255
256         * libc/ctype/Makefile.am: Add $(ELIX_SOURCES) to
257         lib_a_SOURCES.
258         * libc/ctype/Makefile.in: Regenerated.
259
260 2006-05-09  Kazu Hirata  <kazu@codesourcery.com>
261
262         * libc/machine/arm/Makefile.am: Fix a typo.
263         * libc/machine/arm/Makefile.in: Regenerated.
264
265 2006-05-08  J"orn Rennecke <joern.rennecke@st.com>
266
267         * libc/machine/sh/Makefile.am (AM_CCASFLAGS): Add $(CFLAGS).
268         * libc/machine/sh/Makefile.in: Regenerate.
269
270 2006-05-03  J"orn Rennecke <joern.rennecke@st.com>
271
272         * libc/sys/sh/Makefile.am (AM_CCASFLAGS): Add $(CFLAGS).
273         * libc/sys/sh/Makefile.in (AM_CCASFLAGS): Likewise.
274
275 2006-05-02  Jeff Johnston  <jjohnstn@redhat.com>
276
277         * libc/sys/sysnec810/Makefile.am: Specify .S files instead of
278         .s.
279         * libc/sys/sysnec810/Makefile.in: Regenerated.
280         * libc/sys/sysnec810/crt0.S: Renamed from .s file.
281         * libc/sys/sysnec810/io.S: Ditto.
282         * libc/sys/sysnec810/crt0.s: Renamed to .S file.
283         * libc/sys/sysnec810/io.s: Ditto.
284
285 2006-05-01  Jeff Johnston  <jjohnstn@redhat.com>
286
287         * libc/argz/Makefile.am: Prefix any objects specified with $(lpfx).  If source file can
288         be specified instead of object, do so.
289         * libc/ctype/Makefile.am: Ditto.
290         * libc/iconv/ccs/Makefile.am: Ditto.
291         * libc/iconv/ces/Makefile.am: Ditto.
292         * libc/iconv/lib/Makefile.am: Ditto.
293         * libc/locale/Makefile.am: Ditto.
294         * libc/posix/Makefile.am: Ditto.
295         * libc/reent/Makefile.am: Ditto.
296         * libc/search/Makefile.am: Ditto.
297         * libc/stdio/Makefile.am: Ditto.
298         * libc/stdio64/Makefile.am: Ditto.
299         * libc/stdlib/Makefile.am: Ditto.
300         * libc/string/Makefile.am: Ditto.
301         * libc/syscalls/Makefile.am: Ditto.
302         * libc/unix/Makefile.am: Ditto.
303         * libc/machine/a29k/Makefile.am: Specify lib_a_CCASFLAGS so .S files will get
304         prefix added automatically.  Any specified rules must use $(lpfx) for
305         object file names.
306         * libc/machine/arm/Makefile.am: Ditto.
307         * libc/machine/cris/Makefile.am: Ditto.
308         * libc/machine/crx/Makefile.am: Ditto.
309         * libc/machine/d10v/Makefile.am: Ditto.
310         * libc/machine/d30v/Makefile.am: Ditto.
311         * libc/machine/fr30/Makefile.am: Ditto.
312         * libc/machine/frv/Makefile.am: Ditto.
313         * libc/machine/h8300/Makefile.am: Ditto.
314         * libc/machine/h8500/Makefile.am: Ditto.
315         * libc/machine/hppa/Makefile.am: Ditto.
316         * libc/machine/i386/Makefile.am: Ditto.
317         * libc/machine/i960/Makefile.am: Ditto.
318         * libc/machine/iq2000/Makefile.am: Ditto.
319         * libc/machine/m32c/Makefile.am: Ditto.
320         * libc/machine/m32r/Makefile.am: Ditto.
321         * libc/machine/m68hc11/Makefile.am: Ditto.
322         * libc/machine/m68k/Makefile.am: Ditto.
323         * libc/machine/m88k/Makefile.am: Ditto.
324         * libc/machine/mips/Makefile.am: Ditto.
325         * libc/machine/mn10200/Makefile.am: Ditto.
326         * libc/machine/mn10300/Makefile.am: Ditto.
327         * libc/machine/mt/Makefile.am: Ditto.
328         * libc/machine/necv70/Makefile.am: Ditto.
329         * libc/machine/powerpc/Makefile.am: Ditto.
330         * libc/machine/sh/Makefile.am: Ditto.
331         * libc/machine/sh/Makefile.in: Ditto.
332         * libc/machine/sparc/Makefile.am: Ditto.
333         * libc/machine/tic4x/Makefile.am: Ditto.
334         * libc/machine/tic80/Makefile.am: Ditto.
335         * libc/machine/v850/Makefile.am: Ditto.
336         * libc/machine/w65/Makefile.am: Ditto.
337         * libc/machine/xscale/Makefile.am: Ditto.
338         * libc/machine/xstormy16/Makefile.am: Ditto.
339         * libc/machine/z8k/Makefile.am: Ditto.
340         * libc/sys/a29khif/Makefile.am: Ditto.
341         * libc/sys/arm/Makefile.am: Ditto.
342         * libc/sys/d10v/Makefile.am: Ditto.
343         * libc/sys/h8300hms/Makefile.am: Ditto.
344         * libc/sys/h8500hms/Makefile.am: Ditto.
345         * libc/sys/linux/Makefile.am: Ditto.
346         * libc/sys/linux/linuxthreads/Makefile.am: Ditto.
347         * libc/sys/linux/net/Makefile.am: Ditto.
348         * libc/sys/linux/stdlib/Makefile.am: Ditto.
349         * libc/sys/m88kbug/Makefile.am: Ditto.
350         * libc/sys/mmixware/Makefile.am: Ditto.
351         * libc/sys/rdos/Makefile.am: Ditto.
352         * libc/sys/rtems/Makefile.am: Ditto.
353         * libc/sys/sh/Makefile.am: Ditto.
354         * libc/sys/sun4/Makefile.am: Ditto.
355         * libc/sys/sysmec/Makefile.am: Ditto.
356         * libc/sys/sysnec810/Makefile.am: Ditto.
357         * libc/sys/sysnecv850/Makefile.am: Ditto.
358         * libc/sys/sysvi386/Makefile.am: Ditto.
359         * libc/sys/sysvnecv70/Makefile.am: Ditto.
360         * libc/sys/tic80/Makefile.am: Ditto.
361         * libc/sys/w65/Makefile.am: Ditto.
362         * libc/sys/z8ksim/Makefile.am: Ditto.
363         * libc/machine/necv70/fastmath.S: Renamed from .s file.
364         * libc/machine/necv70/setjmp.S: Ditto.
365         * libc/machine/necv70/fastmath.s: Removed.
366         * libc/machine/necv70/setjmp.s: Ditto.
367         * libc/machine/w65/*.S: New files renamed from .s files.
368         * libc/machine/w65/*.s: Renamed and removed.
369         * libc/sys/a29khif/*.S: New files renamed from .s files.
370         * libc/sys/a29khif/*.s: Renamed and removed.
371         * libc/sys/sysvi386/*.S: New files renamed from .s files.
372         * libc/sys/sysvi386/*.s: Renamed and removed.
373         * libc/sys/sysvnecv70/*.S: New files renamed from .s files.
374         * libc/sys/sysvnecv70/*.s: Renamed and removed.
375         * libc/*Makefile.in: Regenerated as appropriate.
376
377 2006-04-24  DJ Delorie  <dj@redhat.com>
378
379         * libc/machine/sh/configure.in: Avoid link tests.
380         * libc/machine/sh/configure: Regenerate.
381
382 2006-04-18  Jeff Johnston  <jjohnstn@redhat.com>
383
384         * libc/include/sys/signal.h (sigdelset, sigfillset, sigismember): New macros.
385         (sigaddset, sigemptyset): Add return code.
386
387 2006-04-13  Ralf Corsepius  <ralf.corsepius@rtems.org>
388
389         * acinclude.m4: New _NEWLIB_VERSION.
390         * acinclude.m4(NEWLIB_CONFIGURE): AC_REQUIRE(_NEWLIB_VERSION).
391         Use AC_CANONICAL_HOST instead of AC_CANONICAL_SYSTEM.
392         Use new form of AC_INIT_AUTOMAKE.
393         * configure.in: AC_PREREQ(2.59).
394         Use autoconf-2.5.x version of AC_INIT.
395         Use AC_CONFIG_FILES and autoconf-2.5x AC_OUTPUT instead of
396         autoconf-2.13's AC_OUTPUT.
397         * libm/configure.in: Ditto.
398         * libm/machine/configure.in: Ditto.
399         * libm/machine/i386/configure.in: Ditto.
400         * libc/configure.in: Ditto.
401         * libc/machine/a29k/configure.in: Ditto.
402         * libc/machine/arm/configure.in: Ditto.
403         * libc/machine/configure.in: Ditto.
404         * libc/machine/mn10300/configure.in: Ditto.
405         * libc/machine/powerpc/configure.in: Ditto.
406         * libc/machine/z8k/configure.in: Ditto.
407         * libc/machine/h8300/configure.in: Ditto.
408         * libc/machine/mips/configure.in: Ditto.
409         * libc/machine/crx/configure.in: Ditto.
410         * libc/machine/m68hc11/configure.in: Ditto.
411         * libc/machine/h8500/configure.in: Ditto.
412         * libc/machine/xscale/configure.in: Ditto.
413         * libc/machine/d10v/configure.in: Ditto.
414         * libc/machine/fr30/configure.in: Ditto.
415         * libc/machine/sh/configure.in: Ditto.
416         * libc/machine/tic80/configure.in: Ditto.
417         * libc/machine/m32r/configure.in: Ditto.
418         * libc/machine/xstormy16/configure.in: Ditto.
419         * libc/machine/i386/configure.in: Ditto.
420         * libc/machine/d30v/configure.in: Ditto.
421         * libc/machine/mn10200/configure.in: Ditto.
422         * libc/machine/frv/configure.in: Ditto.
423         * libc/machine/mt/configure.in: Ditto.
424         * libc/machine/i960/configure.in: Ditto.
425         * libc/machine/v850/configure.in: Ditto.
426         * libc/machine/necv70/configure.in: Ditto.
427         * libc/machine/tic4x/configure.in: Ditto.
428         * libc/machine/cris/configure.in: Ditto.
429         * libc/machine/m68k/configure.in: Ditto.
430         * libc/machine/m32c/configure.in: Ditto.
431         * libc/machine/hppa/configure.in: Ditto.
432         * libc/machine/w65/configure.in: Ditto.
433         * libc/machine/iq2000/configure.in: Ditto.
434         * libc/machine/sparc/configure.in: Ditto.
435         * libc/machine/m88k/configure.in: Ditto.
436         * libc/sys/linux/configure.in: Ditto.
437         * libc/sys/linux/machine/configure.in: Ditto.
438         * libc/sys/linux/machine/i386/configure.in: Ditto.
439         * libc/sys/linux/linuxthreads/configure.in: Ditto.
440         * libc/sys/linux/linuxthreads/machine/configure.in: Ditto.
441         * libc/sys/linux/linuxthreads/machine/i386/configure.in: Ditto.
442         * libc/sys/arm/configure.in: Ditto.
443         * libc/sys/configure.in: Ditto.
444         * libc/sys/decstation/configure.in: Ditto.
445         * libc/sys/a29khif/configure.in: Ditto.
446         * libc/sys/sysnecv850/configure.in: Ditto.
447         * libc/sys/d10v/configure.in: Ditto.
448         * libc/sys/netware/configure.in: Ditto.
449         * libc/sys/mmixware/configure.in: Ditto.
450         * libc/sys/h8500hms/configure.in: Ditto.
451         * libc/sys/sh/configure.in: Ditto.
452         * libc/sys/tic80/configure.in: Ditto.
453         * libc/sys/rdos/configure.in: Ditto.
454         * libc/sys/sysmec/configure.in: Ditto.
455         * libc/sys/sysvi386/configure.in: Ditto.
456         * libc/sys/h8300hms/configure.in: Ditto.
457         * libc/sys/sparc64/configure.in: Ditto.
458         * libc/sys/arc/configure.in: Ditto.
459         * libc/sys/sysnec810/configure.in: Ditto.
460         * libc/sys/m88kbug/configure.in: Ditto.
461         * libc/sys/sysvnecv70/configure.in: Ditto.
462         * libc/sys/z8ksim/configure.in: Ditto.
463         * libc/sys/rtems/configure.in: Ditto.
464         * libc/sys/w65/configure.in: Ditto.
465         * libc/sys/sun4/configure.in: Ditto.
466         * doc/configure.in: Ditto.
467         * iconvdata/configure.in: Ditto.
468         * configure.in: Use AC_CONFIG_HEADER instead of AM_CONFIG_HEADER.
469
470 2006-04-11  Jeff Johnston  <jjohnstn@redhat.com>
471
472         * acinclude.m4: Properly add square brackets for
473         AC_DEFUN macros.  Rewrite LIB_AC_PROG_CC to remove
474         macros no longer available.  Add LIB_AM_PROG_AS to
475         remove prereq of AC_PROG_CC.  Add LIB_AC_PROG_CC_GNU
476         macro.  Substitute lpfx (library object prefix).
477         * configure.host: Set lpfx depending on whether
478         libtool is used or not.
479         * configure.in: Individually specify libc and libm
480         to AC_CONFIG_SUBDIRS.  Add square bracket quoting as
481         necessary.
482         * Makefile.am: Use $(lpfx) to get object names for
483         math-library functions that should also be in libc.
484         * libc/machine/configure.in: Use case statement to determine
485         AC_CONFIG_SUBDIRS statement.
486         * libc/sys/linux/linuxthreads/machine/configure.in: Ditto.
487         * libc/sys/linux/machine/configure.in: Ditto.
488         * libc/sys/configure.in: Ditto.
489         * libm/machine/configure.in: Ditto.
490         * libc/sys/linux/configure.in: Fix up AC_CONFIG_SUBDIRS.
491         * libm/configure.in: Add AM_CONDITIONAL statement
492         for HAVE_LIBM_MACHINE_DIR.
493         * libc/machine/a29k/Makefile.am: Modified to work with
494         latest automake.  Change includes setting AM_CCASFLAGS
495         so building .S files will properly pick up flags used
496         to build C files.
497         * libc/machine/arm/Makefile.am: Ditto.
498         * libc/machine/crx/Makefile.am: Ditto.
499         * libc/machine/d10v/Makefile.am: Ditto.
500         * libc/machine/d30v/Makefile.am: Ditto.
501         * libc/machine/fr30/Makefile.am: Ditto.
502         * libc/machine/frv/Makefile.am: Ditto.
503         * libc/machine/h8300/Makefile.am: Ditto.
504         * libc/machine/h8500/Makefile.am: Ditto.
505         * libc/machine/hppa/Makefile.am: Ditto.
506         * libc/machine/i386/Makefile.am: Ditto.
507         * libc/machine/iq2000/Makefile.am: Ditto.
508         * libc/machine/m32c/Makefile.am: Ditto.
509         * libc/machine/m32r/Makefile.am: Ditto.
510         * libc/machine/m68hc11/Makefile.am: Ditto.
511         * libc/machine/m68k/Makefile.am: Ditto.
512         * libc/machine/m88k/Makefile.am: Ditto.
513         * libc/machine/mips/Makefile.am: Ditto.
514         * libc/machine/mn10200/Makefile.am: Ditto.
515         * libc/machine/mn10300/Makefile.am: Ditto.
516         * libc/machine/mt/Makefile.am: Ditto.
517         * libc/machine/necv70/Makefile.am: Ditto.
518         * libc/machine/powerpc/Makefile.am: Ditto.
519         * libc/machine/sh/Makefile.am: Ditto.
520         * libc/machine/sparc/Makefile.am: Ditto.
521         * libc/machine/tic4x/Makefile.am: Ditto.
522         * libc/machine/tic80/Makefile.am: Ditto.
523         * libc/machine/v850/Makefile.am: Ditto.
524         * libc/machine/w65/Makefile.am: Ditto.
525         * libc/machine/xscale/Makefile.am: Ditto.
526         * libc/machine/xstormy16/Makefile.am: Ditto.
527         * libc/machine/z8k/Makefile.am: Ditto.
528         * libc/sys/a29khif/Makefile.am: Ditto.
529         * libc/sys/arc/Makefile.am: Ditto.
530         * libc/sys/arm/Makefile.am: Ditto.
531         * libc/sys/d10v/Makefile.am: Ditto.
532         * libc/sys/decstation/Makefile.am: Ditto.
533         * libc/sys/h8300hms/Makefile.am: Ditto.
534         * libc/sys/h8500hms/Makefile.am: Ditto.
535         * libc/sys/linux/linuxthreads/machine/i386/Makefile.am: Ditto.
536         * libc/sys/linux/machine/i386/Makefile.am: Ditto.
537         * libc/sys/m88kbug/Makefile.am: Ditto.
538         * libc/sys/mmixware/Makefile.am: Ditto.
539         * libc/sys/netware/Makefile.am: Ditto.
540         * libc/sys/rdos/Makefile.am: Ditto.
541         * libc/sys/rtems/Makefile.am: Ditto.
542         * libc/sys/sh/Makefile.am: Ditto.
543         * libc/sys/sparc64/Makefile.am: Ditto.
544         * libc/sys/sysmec/Makefile.am: Ditto.
545         * libc/sys/sysnec810/Makefile.am: Ditto.
546         * libc/sys/sysnecv850/Makefile.am: Ditto.
547         * libc/sys/sysvi386/Makefile.am: Ditto.
548         * libc/sys/sysvnecv70/Makefile.am: Ditto.
549         * libc/sys/tic80/Makefile.am: Ditto.
550         * libc/sys/w65/Makefile.am: Ditto.
551         * libc/sys/z8ksim/Makefile.am: Ditto.
552         * libm/machine/i386/Makefile.am: Ditto.
553         * libc/sys/arm/Makefile.am: Ditto plus add EXTRA sources including
554         trap.S so that automake will generate a .S.o suffix rule.
555         * libc/argz/Makefile.am: Modified to work with
556         latest automake.  Change includes adding lib_a_CFLAGS
557         so automake doesn't complain about libtool and non-libtool
558         libraries sharing objects.
559         * libc/ctype/Makefile.am: Ditto.
560         * libc/errno/Makefile.am: Ditto.
561         * libc/iconv/ccs/Makefile.am: Ditto.
562         * libc/iconv/ces/Makefile.am: Ditto.
563         * libc/iconv/lib/Makefile.am: Ditto.
564         * libc/locale/Makefile.am: Ditto.
565         * libc/misc/Makefile.am: Ditto.
566         * libc/posix/Makefile.am: Ditto.
567         * libc/reent/Makefile.am: Ditto.
568         * libc/search/Makefile.am: Ditto.
569         * libc/signal/Makefile.am: Ditto.
570         * libc/stdio/Makefile.am: Ditto.
571         * libc/stdio64/Makefile.am: Ditto.
572         * libc/stdlib/Makefile.am: Ditto.
573         * libc/string/Makefile.am: Ditto.
574         * libc/sys/linux/Makefile.am: Ditto.
575         * libc/sys/linux/argp/Makefile.am: Ditto.
576         * libc/sys/linux/cmath/Makefile.am: Ditto.
577         * libc/sys/linux/dl/Makefile.am: Ditto.
578         * libc/sys/linux/iconv/Makefile.am: Ditto.
579         * libc/sys/linux/intl/Makefile.am: Ditto.
580         * libc/sys/linux/linuxthreads/Makefile.am: Ditto.
581         * libc/sys/linux/net/Makefile.am: Ditto.
582         * libc/sys/linux/stdlib/Makefile.am: Ditto.
583         * libc/syscalls/Makefile.am: Ditto.
584         * libc/time/Makefile.am: Ditto.
585         * libc/unix/Makefile.am: Ditto.
586         * libm/Makefile.am: Ditto.
587         * libm/common/Makefile.am: Ditto.
588         * libm/math/Makefile.am: Ditto.
589         * libm/mathfp/Makefile.am: Ditto.
590         * Regenerate all aclocal.m4, Makefile.in, and configure files.
591
592 2006-04-07  Jeff Johnston  <jjohnstn@redhat.com>
593
594         * libc/time/time.c (time): Do not check for HAVE_GETTIMEOFDAY
595         anymore.  Assume there is a gettimeofday syscall.
596
597 2006-03-29  Shaun Jackman  <sjackman@gmail.com>
598
599         * libc/sys/linux/include/netinet/ip.h: Include netinet/in_systm.h
600         for the declaration of n_long.
601
602 2006-03-29  Shaun Jackman  <sjackman@gmail.com>
603
604         * libc/sys/linux/include/net/if.h: Include sys/socket.h for
605         struct sockaddr.
606         (IFF_SMART): Replace this define with IFF_NOTRAILERS.
607         (IFF_CANTCHANGE): Replace IFF_SMART reference with IFF_NOTRAILERS.
608         (IFF_NOTRAILERS): New define.
609         (struct ifreq): Add ifru_netmask.
610         (ifr_netmask): New define.
611
612 2006-03-29  Shaun Jackman  <sjackman@gmail.com>
613
614         * libc/sys/linux/sys/ioccom.h (ioctl): Change declaration to
615         match sys/ioctl.h.
616
617 2006-03-29  Shaun Jackman  <sjackman@gmail.com>
618
619         * libtool.m4: Set lt_cv_deplibs_check_method=pass_all for 
620         linux-newlib libc implementations.
621
622 2006-03-29  Eric Blake  <ebb9@byu.net>
623
624         * libc/stdio/freopen.c (_freopen_r) [__SCLE]: Fix typo.
625         * libc/stdio64/freopen64.c (_freopen64_r) [__SCLE]: Likewise.
626
627 2006-03-29  Jeff Johnston  <jjohnstn@redhat.com>
628
629         * libc/sys/linux/io.c (__mknod): Fix declaration of
630         syscall to pass a dev_t as third argument rather than
631         a pointer to dev_t.
632
633 2006-03-29  Jeff Johnston  <jjohnstn@redhat.com>
634
635         * libc/sys/linux/net/name6.c: Fix struct references.
636
637 2006-03-22  Mark Mitchell  <mark@codesourcery.com>
638
639         * configure.host: Allow hosts to set the default
640         newlib_atexit_dynamic_alloc value.
641         * configure.in: Likewise.
642         * configure: Regenerated.
643
644 2006-03-20  Mark Mitchell  <mark@codesourcery.com>
645
646         * acconfig.h (_ATEXIT_DYNAMIC_ALLOC): Undef.
647         * configure.in (--disable-newlib-atexit-dynamic-alloc): New
648         option. 
649         * configure: Regenerated.
650         * newlib.hin: Regenerated.
651         * libc/stdlib/__atexit.c (__register_exitproc): Don't call malloc
652         if _ATEXIT_DYNAMIC_ALLOC is undefined.
653         * libc/stdlib/__call_atexit.c (__call_exitprocs): Don't call free
654         if _ATEXIT_DYNAMIC_ALLOC is undefined.
655
656 2006-03-17  Jeff Johnston  <jjohnstn@redhat.com>
657
658         * libc/sys/linux/linuxthreads/config.h: Remove definition
659         of UINT32_C.
660
661 2006-03-15  Jeff Johnston  <jjohnstn@redhat.com>
662
663         * libc/stdio/wsetup.c (__swsetup): Don't make a buffer
664         for a string I/O file that isn't using the asprintf family.
665
666 2006-03-07  Eric Blake  <ebb9@byu.net>
667
668         * libc/stdio/freopen.c (_freopen_r) [HAVE_FCNTL]: For NULL
669         filename, allow read-only or write-only FILE atop O_RDWR file
670         descriptor.
671         * libc/stdio64/freopen64.c (_freopen64_r) [HAVE_FCNTL]: Likewise.
672
673 2006-03-07  Jeff Johnston  <jjohnstn@redhat.com>
674
675         * libm/common/sf_isinf.c[_DOUBLE_IS_32BITS]: Undef isinf.
676         * libm/common/sf_isnan.c[_DOUBLE_IS_32BITS]: Undef isnan.
677
678 2006-03-02  Jeff Johnston  <jjohnstn@redhat.com>
679
680         * libm/math/math.tex: Fix reference to sisnan.def which
681         is now in common subdirectory.
682         * libm/mathfp/mathfp.tex: Ditto.
683
684 2006-02-27  Jeff Johnston  <jjohnstn@redhat.com>
685
686         * Makefile.am (MATHOBJS_IN_LIBC): Add s_isinfd, sf_isinff, 
687         s_isnand, and sf_isnanf object files.
688         * Makefile.in: Regenerated.
689         * libc/include/ieeefp.h: Undef isnan and isinf to avoid
690         conflict if <math.h> has previously been included.
691         * libc/include/math.h
692         * libc/include/math.h: Make isnan and isinf macros to
693         conform to C99.
694         (__isinfd, __isinff, __isnand, __isnanf): New functions.
695         * libm/common/Makefile.am: Add new s_isinfd, s_isnand, sf_isinff,
696         and sf_isnanf files.  Also support s_isnan, sf_isnan, s_isinf, and
697         sf_isinf files which have been moved from math/mathfp directories. 
698         * libm/common/Makefile.in: Regenerated.
699         * libm/common/s_isinfd.c: New file.
700         * libm/common/s_isnand.c: Ditto.
701         * libm/common/sf_isinff.c: Ditto.
702         * libm/common/sf_isnanf.c: Ditto.
703         * libm/common/s_isinf.c: Moved from libm/math directory.
704         * libm/common/s_isnan.c: Ditto.
705         * libm/common/sf_isinf.c: Ditto.
706         * libm/common/sf_isnan.c: Ditto.
707         * libm/math/Makefile.am: Remove isinf and isnan family functions
708         which have been moved into common directory.
709         * libm/mathfp/Makefile.am: Ditto.
710         * libm/math/Makefile.in: Regenerated.
711         * libm/mathfp/Makefile.in: Ditto.
712         * libm/math/s_isinf.c: Removed.
713         * libm/math/s_isnan.c: Ditto.
714         * libm/math/sf_isinf.c: Ditto.
715         * libm/math/sf_isnan.c: Ditto.
716         * libm/mathfp/s_isinf.c: Ditto.
717         * libm/mathfp/s_isnan.c: Ditto.
718         * libm/mathfp/sf_isinf.c: Ditto.
719         * libm/mathfp/sf_isnan.c: Ditto.
720
721 2006-02-20  Jeff Johnston  <jjohnstn@redhat.com>
722
723         * libc/stdio/fflush.c (fflush): For an fflush on a read-only
724         stream, turn off fseek/rewind optimization as per POSIX/SUSv3.
725         * libc/stdio/fseek.c (_fseek_r): After a successful unoptimized
726         seek, turn off the __SNPT no-optimization flag.
727
728 2006-02-16  Jeff Johnston  <jjohnstn@redhat.com>
729
730         * libc/sys/linux/aio.c: Define _GNU_SOURCE so struct aioinit
731         will be defined.
732         * libc/sys/linux/sys/types.h: Move <sys/config.h> ahead of
733         <features.h> to preset special flags.
734
735 2006-02-15  Corinna Vinschen  <corinna@vinschen.de>
736
737         * libc/include/sys/time.h (struct timeval): Change member types
738         according to SUSv3.
739         * libc/include/sys/types.h (useconds_t): Change to unsigned
740         according to SUSv3.
741         (suseconds_t): Define type.
742
743 2006-02-13  Jeff Johnston  <jjohnstn@redhat.com>
744             David Carne  <davidcarne@gmail.com>
745
746         * libc/string/strndup_r.c (_strndup_r): Use strnlen logic
747         instead of strlen to determine number of bytes to copy.
748         * libc/string/strnlen.c (strnlen): Fix so check for max limit occurs
749         before looking at storage location.
750
751 2006-02-07  Paul Brook  <paul@codesourcery.com>
752
753         * libc/machine/arm/setjmp.S: Add Thumb-2 support.
754         * libc/sys/arm/crt0.S: Add Thumb-2 startup code.
755         * libc/sys/arm/libcfunc.c (do_AngelSWI): Use AngelSWIInsn.
756         * libc/sys/arm/swi.h (AngelSWIInsn, AngelSWIAsm): Define.
757         * libc/sys/arm/trap.S: Disable for Thumb-2.
758
759 2006-01-31  Leif Ekblad  <leif@rdos.net>
760
761         * configure.host: RDOS support added
762         * libc/include/sys/config.h: Ditto.
763         * libc/sys/rdos/Makefile.am, libc/sys/rdos/Makefile.in: New files.
764         * libc/sys/rdos/aclocal.m4, libc/sys/rdos/chown.c: Ditto.
765         * libc/sys/rdos/close.c, libc/sys/rdos/config.h: Ditto.
766         * libc/sys/rdos/configure, libc/sys/rdos/configure.in: Ditto.
767         * libc/sys/rdos/crt0.S, libc/sys/rdos/execve.c: Ditto.
768         * libc/sys/rdos/fork.c, libc/sys/rdos/fstat.c: Ditto.
769         * libc/sys/rdos/getenv.c, libc/sys/rdos/getpid.c: Ditto.
770         * libc/sys/rdos/gettod.c, libc/sys/rdos/isatty.c: Ditto.
771         * libc/sys/rdos/kill.c, libc/sys/rdos/link.c: Ditto.
772         * libc/sys/rdos/lseek.c, libc/sys/rdos/open.c: Ditto.
773         * libc/sys/rdos/rdos.S, libc/sys/rdos/rdos.h: Ditto.
774         * libc/sys/rdos/rdoshelp.c, libc/sys/rdos/read.c: Ditto.
775         * libc/sys/rdos/readlink.c, libc/sys/rdos/sbrk.c: Ditto.
776         * libc/sys/rdos/stat.c, libc/sys/rdos/symlink.c: Ditto.
777         * libc/sys/rdos/times.c, libc/sys/rdos/unlink.c: Ditto.
778         * libc/sys/rdos/user.def, libc/sys/rdos/wait.c: Ditto.
779         * libc/sys/rdos/write.c: Ditto.
780
781 2006-01-24  Jeff Johnston  <jjohnstn@redhat.com>
782
783         * acinclude.m4: Add nodefine to AM_INIT_AUTOMAKE macro invocation
784         so as not to define PACKAGE and VERSION in newlib.h.
785         * aclocal.m4: Regenerated.
786         * configure: Ditto.
787         * newlib.hin: Ditto.
788
789 2006-01-20  Jeff Johnston  <jjohnstn@redhat.com>
790
791         * acconfig.h: New file to generate newlib.hin from.
792         * newlib.hin: Regenerated.
793         * stamp-h.in: Regenerated.
794         * Makefile.am: Add ACLOCAL_AMFLAGS so aclocal can be
795         called automatically.
796         * Makefile.in: Regenerated.
797         * acinclude.m4: Add proper comment for hack in previous change.
798         * aclocal.m4 */aclocal.m4: Regenerated.
799         * configure */configure: Regenerated.
800
801 2006-01-11  Jeff Johnston  <jjohnstn@redhat.com>
802
803         * acinclude.m4: Add hack to prevent INSTALL in subdirs
804         from being set to "../".
805         * Makefile.am: Pass INSTALL in AM_MAKEFLAGS.
806         * aclocal.m4: Regenerated.
807         * configure: Ditto.
808         * Makefile.in: Ditto.
809         * doc/aclocal.m4: Ditto.
810         * doc/configure: Ditto.
811         * iconvdata/aclocal.m4: Ditto.
812         * iconvdata/configure: Ditto.
813         * libc/*/aclocal.m4: Ditto.
814         * libc/*/configure: Ditto.
815         * libc/libc.texinfo: Ditto.
816         * libm/*/aclocal.m4: Ditto.
817         * libm/*/configure: Ditto.
818
819 2006-01-10  Eric Blake  <ebb9@byu.net>
820
821         * libc/stdio/freopen.c (_freopen_r): Fix use of oflags.
822         * libc/stdio64/freopen64.c (_freopen64_r): Likewise.
823
824 2006-01-10  Jeff Johnston  <jjohnstn@redhat.com>
825
826         * libm/mathfp/s_frexp.c: Check for special values on
827         the original input, not the manipulated output value.
828         * libm/mathfp/sf_frexp.c: Ditto.
829         * libm/mathfp/s_atangent.c: Don't use local value branch
830         when checking for quadrant.
831         * libm/mathfp/sf_atangent.c: Ditto.
832
833 2006-01-09  Jeff Johnston  <jjohnstn@redhat.com>
834
835         * libc/stdio/freopen.c: Switch to use isatty instead of _isatty.
836         * libc/stdio64/freopen64.c: Ditto.
837
838 2006-01-09  Eric Blake  <ebb9@byu.net>
839
840         * libc/stdio/freopen.c (_freopen_r): Accept NULL filename.
841         * libc/stdio64/freopen64.c (_freopen64_r): Likewise.
842
843 2006-01-06  Jeff Johnston  <jjohnstn@redhat.com>
844
845         * libc/sys/linux/include/getopt.h: Add macros needed by
846         new version of getopt.c in libc/stdlib.
847
848 2006-01-04  Gregory Pietsch  <gpietsch@comcast.net>
849
850         * libc/stdlib/getopt.c: Replaced with version
851         that adds getopt_long and getopt_long_only support.
852         * libc/include/getopt.h: New file.
853
854 2005-12-16  Jeff Johnston  <jjohnstn@redhat.com>
855
856         * NEWS: Update with 1.14.0 info.
857         * README: Ditto.
858         * acinclude.m4: Change version number to 1.14.0.
859         * aclocal.m4: Regenerated.
860         * configure: Ditto.
861         * doc/aclocal.m4: Ditto.
862         * doc/configure: Ditto.
863         * libc/*/aclocal.m4: Ditto.
864         * libc/*/configure: Ditto.
865         * libc/libc.texinfo: Ditto.
866         * libm/*/aclocal.m4: Ditto.
867         * libm/*/configure: Ditto.
868         * libm/libm.texinfo: Ditto.
869         * libc/sys/linux/shared.ld: Add VERS_1.14.
870
871 2005-12-16  Jeff Johnston  <jjohnstn@redhat.com>
872
873         * libc/sys/linux/sys/stat.h: Change *stat64 prototypes to
874         take a pointer to struct stat64 rather than struct stat.
875
876 2005-12-16  Ralf Corsepius <ralf.corsepius@rtems.org>
877
878         * libc/include/stdint.h: Prefer long over int for int32_t.
879         Use __have_long32 to set up int32_t.
880         * libc/include/inttypes.h: Use "#if xxx" instead of "#ifdef xxx"
881         (Sync with stdint.h).
882
883 2005-12-14  Corinna Vinschen  <corinna@vinschen.de>
884
885         * libc/include/sys/fcntl.h: Define O_SYNC unconditionally.  Fix
886         typo in O_NDELAY comment.
887
888 2005-12-13  Nathan Sidwell  <nathan@codesourcery.com>
889
890         * libc/include/machine/ieeefp.h (__mt__): Renamed from __ms1__.
891         * libc/include/machine/setjmp.h (__mt__): Likewise.
892         * libc/machine/mt/setjmp.S: Rename ms1 reference to mt.
893         * libc/machine/configure.in: Ditto.
894
895 2005-12-12  Nathan Sidwell  <nathan@codesourcery.com>
896
897         * configure.host: Replace ms1 arch with mt arch.
898         * libc/machine/mt: Renamed from ms1 dir.
899
900 2005-12-08  Shaun Jackman  <sjackman@gmail.com>
901
902         * libc/include/sys/types.h: Remove the ifdef armour around
903         standard POSIX types.
904
905 2005-12-06  Ralf Corsepius <ralf.corsepius@rtems.org>
906
907         * libc/sys/rtems/crt0.c: Add rtems_gxx_key_create,
908         rtems_gxx_key_delete, rtems_gxx_getspecific,
909         rtems_gxx_setspecific, rtems_gxx_mutex_trylock, 
910         rtems_gxx_recursive_mutex_init, rtems_gxx_recursive_mutex_lock, 
911         rtems_gxx_recursive_mutex_trylock, rtems_gxx_recursive_mutex_unlock.
912
913 2005-12-05  Christopher Faylor  <cgf@timesys.com>
914
915         * libc/include/stdlib.h: Move cygwin declarations to cygwin-specific
916         file.  Declare unsetenv and _unsetenv_r when not cygwin.
917
918 2005-11-18  Jeff Johnston  <jjohnstn@redhat.com>
919
920         * libc/time/strptime.c (strptime): Don't abort for %c and %Z.
921         Treat %c as "%a %b %e %H:%M:%S %Y" and ignore %Z.
922
923 2005-11-18  Christopher Faylor  <cgf@timesys.com>
924
925         * include/sys/time.h: Move more cygwin stuff to cygwin-specific header.
926
927 2005-11-18  Christopher Faylor  <cgf@timesys.com>
928
929         * include/time.h: Remove more cygwin-specific stuff.
930
931 2005-11-18  Christopher Faylor  <cgf@timesys.com>
932
933         * include/time.h: Move cygwin declarations to cygwin-specific header.
934         * include/sys/time.h: Rename cygwin include to "sys_time.h".
935
936 2005-11-17  Jeff Johnston  <jjohnstn@redhat.com>
937
938         * libc/sys/linux/dl/dl-local.h: New file based on old dlfcn.h
939         in libc/sys/linux/include.
940         * libc/sys/linux/dl/dlfcn.h: Moved to libc/sys/linux/include.
941         * libc/sys/linux/dl/ldsodefs.h: Include dl-local.h instead of dlfcn.h.
942         * libc/sys/linux/include/dlfcn.h: Replaced with dlfcn.h formerly
943         in libc/sys/linux/dl.
944
945 2005-11-11  Christopher Faylor  <cgf@timesys.com>
946
947         * libc/include/sys/time.h: For cygwin, use general header rather than
948         specific "sys/select.h".
949
950 2005-11-08  Tom Walsh  <tom@openhardware.net>
951
952         * libc/time/tzvars.c: New file.
953         * libc/time/tzset_r.c: Moved globals into tzvars.c
954         so other time functions needn't link in __tzset_r and its
955         dependencies.
956         * libc/time/Makefile.am: Add the new file.
957         * libc/time/Makefile.in: Regenerated.
958
959 2005-11-08  Christopher Faylor  <cgf@timesys.com>
960
961         * libc/include/string.h: Add cygwin-specific function declaration.
962
963 2005-11-07  Corinna Vinschen  <corinna@vinschen.de>
964
965         * libc/include/ieeefp.h: Add C++ guards.
966
967 2005-11-03  Jeff Johnston  <jjohnstn@redhat.com>
968
969         * libc/unix/getcwd.c: Don't use non-reentrant syscall names.
970         * libc/unix/getlogin.c: Ditto.
971         * libc/unix/getpass.c: Ditto.
972         * libc/unix/getut.c: Ditto.
973         * libc/unix/ttyname.c: Ditto.
974
975 2005-11-03  Shaun Jackman  <sjackman@gmail.com>
976
977         * libc/include/sys/unistd.h (readlink, symlink): Provide these
978         prototypes by default.
979         * libc/sys/linux/include/unistd.h (readlink): Remove this
980         prototype.
981         * libc/sys/linux/sys/unistd.h (readlink, symlink): New
982         prototypes.
983
984 2005-11-01  Ralf Corsepius <ralf.corsepius@rtems.org>
985
986         * libc/include/stdint.h: Cleanup #if vs. #ifdef.
987
988 2005-10-31  Darin Johnson  <darin@usa.net>
989
990         * libm/mathfp/s_mathcnst.c: Fix endian-ness check to be
991         correct for constants.
992
993 2005-10-28  Bob Wilson  <bob.wilson@acm.org>
994
995         * libc/stdio/siprintf.c: Wrap long lines in ANSI_SYNOPSIS.
996         * libc/stdio/siscanf.c: Likewise.
997         * libc/stdio/sprintf.c: Likewise.
998         * libc/stdio/sscanf.c: Likewise.
999         * libc/stdio/vfprintf.c: Likewise.
1000         * libc/stdio/vfscanf.c: Likewise.
1001         * libc/stdio/viprintf.c: Likewise.
1002         * libc/stdio/viscanf.c: Likewise.
1003
1004 2005-10-28  Bob Wilson  <bob.wilson@acm.org>
1005
1006         * libc/sys.tex (Stubs): Format examples consistently.   Change sbrk
1007         example to use "_end" symbol instead of "end".  Change write  example
1008         to use "outbyte" instead of "writechar".
1009
1010 2005-10-28  Bob Wilson  <bob.wilson@acm.org>
1011
1012         * libc/ctype/ctype.tex: Use hyphens as appropriate, but not  otherwise.
1013         * libc/ctype/islower.c: Likewise.
1014         * libc/ctype/isupper.c: Likewise.
1015         * libc/ctype/iswalnum.c: Likewise.
1016         * libc/ctype/iswalpha.c: Likewise.
1017         * libc/ctype/iswblank.c: Likewise.
1018         * libc/ctype/iswcntrl.c: Likewise.
1019         * libc/ctype/iswdigit.c: Likewise.
1020         * libc/ctype/iswgraph.c: Likewise.
1021         * libc/ctype/iswlower.c: Likewise.
1022         * libc/ctype/iswprint.c: Likewise.
1023         * libc/ctype/iswpunct.c: Likewise.
1024         * libc/ctype/iswspace.c: Likewise.
1025         * libc/ctype/iswupper.c: Likewise.
1026         * libc/ctype/iswxdigit.c: Likewise.
1027         * libc/ctype/tolower.c: Likewise.
1028         * libc/ctype/toupper.c: Likewise.
1029         * libc/ctype/towctrans.c: Likewise.
1030         * libc/ctype/towlower.c: Likewise.
1031         * libc/ctype/towupper.c: Likewise.
1032         * libc/string/strcasecmp.c: Likewise.
1033         * libc/string/strcoll.c: Likewise.
1034         * libc/string/strings.tex: Likewise.
1035         * libc/string/strlwr.c: Likewise.
1036         * libc/string/strncasecmp.c: Likewise.
1037         * libc/string/strupr.c: Likewise.
1038         * libc/string/wcscoll.c: Likewise.
1039         * libc/string/wcslcat.c: Likewise.
1040         * libc/string/wcslcpy.c: Likewise.
1041         * libc/string/wcsnlen.c: Likewise.
1042         * libc/string/wcsstr.c: Likewise.
1043         * libc/string/wcstrings.tex: Likewise.
1044         * libc/string/wmemchr.c: Likewise.
1045         * libc/string/wmemcmp.c: Likewise.
1046         * libc/string/wmemcpy.c: Likewise.
1047         * libc/string/wmemmove.c: Likewise.
1048         * libc/string/wmemset.c: Likewise. 
1049
1050 2005-10-28  Bob Wilson  <bob.wilson@acm.org>
1051
1052         * libc/misc/unctrl.c: Replace FUNCTION description.
1053         * libc/signal/signal.c: Remove documentation for raise and  _raise_r.
1054         * libc/stdio/getdelim.c: Fix spelling errors.
1055         * libc/stdio/getw.c: Put RETURNS on a separate line.  Fix  punctuation.
1056         * libc/stdio/putw.c: Likewise.
1057         * libc/stdlib/a64l.c: Fix formatting, spelling and  punctuation in
1058         documentation.
1059         * libc/stdlib/assert.c: Do not capitalize FUNCTION description.
1060         * libc/stdlib/efgcvt.c: Add spaces to FUNCTION description.
1061         * libc/stdlib/envlock.c: Use em-dash in FUNCTION description.
1062         * libc/stdlib/mlock.c: Likewise.
1063         * libc/stdlib/mstats.c: Likewise.
1064         * libc/time/tzlock.c: Likewise.
1065         * libc/stdlib/rand.c: Use "multi-threaded" and "thread-safe"  in NOTES.
1066         * libc/stdlib/rand48.c: Remove extra space in FUNCTION  description
1067         and hyphenate "pseudo-random".
1068         * libc/string/bcmp.c: Remove extra blank lines in  documentation.
1069         * libc/string/strncat.c: Likewise.
1070         * libc/string/memchr.c: Remove extra ">" character in  documentation.
1071         * libc/string/strcspn.c: Use "characters" instead of "chars".
1072         * libc/string/strpbrk.c: Likewise.
1073         * libc/string/strerror_r.c: Capitalize "GNU".
1074         * libc/string/strnlen.c: Likewise.
1075         * libc/string/strtok.c: Fix formatting, spelling and  punctuation in
1076         documentation.  Use "multi-threaded" and "thread-safe" in  NOTES.
1077         * libc/string/wcscat.c: Split PORTABILITY into two paragraphs.
1078         * libc/string/wcschr.c: Likewise.
1079         * libc/string/wcscmp.c: Likewise.
1080         * libc/string/wcscpy.c: Likewise.
1081         * libc/string/wcscspn.c: Likewise.
1082         * libc/string/wcslen.c: Likewise.
1083         * libc/string/wcsncat.c: Likewise.
1084         * libc/string/wcsncmp.c: Likewise.
1085         * libc/string/wcsncpy.c: Likewise.
1086         * libc/string/wcsnlen.c: Likewise.
1087         * libc/string/wcspbrk.c: Likewise.
1088         * libc/string/wcsrchr.c: Likewise.
1089         * libc/string/wcsspn.c: Likewise.
1090         * libc/string/wmemchr.c: Likewise.
1091         * libc/string/wmemcmp.c: Likewise.
1092         * libc/string/wmemcpy.c: Likewise.
1093         * libc/string/wmemset.c: Likewise.
1094         * libc/string/wmemmove.c: Likewise.  Also fix FUNCTION  description.
1095         * libc/string/wcswidth.c: Formatting and punctuation in  documentation.
1096         * libc/string/wcwidth.c: Likewise.
1097         * libm/common/s_modf.c: Remove extra period from documentation.
1098         * libm/math/s_isnan.c: Fix formatting, grammar and  punctuation in
1099         documentation.
1100         * libm/mathfp/s_isnan.c: Likewise.
1101         * libm/math/s_ldexp.c: Fix punctuation.
1102         * libm/mathfp/s_ldexp.c: Likewise.
1103         * libm/math/w_log.c: Likewise.
1104         * libm/mathfp/s_logarithm.c: Likewise.
1105         * libm/math/w_j0.c: Add spaces to FUNCTION description.
1106         * libm/mathfp/w_jn.c: Likewise. 
1107
1108 2005-10-26  Shaun Jackman  <sjackman@gmail.com>
1109
1110         * libc/posix/scandir.c (scandir): Update the function
1111         prototype to match the header.
1112         * libc/sys/linux/linuxthreads/bits/libc-lock.h: Remove an
1113         extraneous #endif.
1114         * libc/sys/linux/sys/lock.h: Do not include
1115         machine/weakalias.h, since it's not used by this file.
1116
1117 2005-10-26  Jeff Johnston  <jjohnstn@redhat.com>
1118
1119         * libc/Makefile.am: Reorder SUBLIBS so machine and sys
1120         directories can override properly.
1121
1122 2005-10-20  Jeff Johnston  <jjohnstn@redhat.com>
1123
1124         * libc/include/math.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): When
1125         gcc is 3.3 or greater, use special gcc builtins.
1126
1127 2005-10-20  Corinna Vinschen <corinna@vinschen.de>
1128
1129         * libc/include/sys/time.h: Declare futimes and lutimes for Cygwin.
1130
1131 2005-10-18  Corinna Vinschen <corinna@vinschen.de>
1132
1133         * libc/include/sys/features.h: Define _POSIX_MEMLOCK_RANGE for Cygwin.
1134
1135 2005-10-14  Jeff Johnston  <jjohnstn@redhat.com>
1136
1137         * libc/include/math.h (HUGE_VALF, HUGE_VALL): New.
1138         * libm/common/Makefile.am: Add s_infconst.c support.
1139         * libm/common/Makefile.in: Regenerated.
1140         * libm/common/s_infconst.c: New file with float and
1141         long double infinity support added.
1142         * libm/math/Makefile.am: Remove s_infconst.c support.
1143         * libm/math/Makefile.in: Regenerated.
1144         * libm/math/s_infconst.c: Moved to common directory.
1145         * libm/mathfp/Makefile.am: Remove s_infconst.c support.
1146         * libm/mathfp/Makefile.in: Regenerated.
1147         * libm/mathfp/s_infconst.c: Moved to common directory.
1148
1149 2005-10-14  Jeff Johnston  <jjohnstn@redhat.com>
1150
1151         * libc/sys/linux/net/gethostbydns.c (dprintf): Rename to
1152         dbgprintf to prevent conflict with new dprintf function.
1153
1154 2005-10-14  Jeff Johnston  <jjohnstn@redhat.com>
1155
1156         * libc/stdio/vfprintf.c (_VFPRINTF_R): Fix up "inf" and
1157         "nan" processing for systems that have long double support.
1158
1159 2005-10-14  Jeff Johnston  <jjohnstn@redhat.com>
1160
1161         * libc/sys/linux/sys/types.h (int8_t): Add type.
1162
1163 2005-10-14  Bob Wilson  <bob.wilson@acm.org>
1164
1165         * libm/common/Makefile.am (doc): Do not append to $(TARGETDOC).
1166         * libm/common/Makefile.in: Regenerate.
1167         * libm/common/common.tex: Delete file.
1168         * libm/math/math.tex: Include .def files from common/.
1169         * libm/mathfp/mathfp.tex: Likewise.
1170
1171 2005-10-14  Bob Wilson  <bob.wilson@acm.org>
1172
1173         * libc/libc.texinfo (Top): Surround this node with @ifnottex
1174         instead of @ifinfo.  Update menu to add Introduction and match
1175         SUBDIRS order.
1176         (Introduction): New section.
1177
1178 2005-10-14  Bob Wilson  <bob.wilson@acm.org>
1179
1180         * libc/reent/reent.tex (Reentrancy): Replace "Cygnus C Library"
1181         with "Red Hat newlib C Library".
1182         * libc/sys.tex (Stubs): Likewise.
1183         * libm/math/math.tex (Math): Likewise.
1184         * libm/mathfp/mathfp.tex (Math): Likewise.
1185
1186 2005-10-11  Shaun Jackman  <sjackman@gmail.com>
1187
1188         * libc/include/stdio.h (dprintf): New declaration.
1189         (vdprintf): Ditto.
1190         * libc/stdio/Makefile.am (GENERAL_SOURCES): Add dprintf.c
1191         and vdprintf.c.
1192         * libc/stdio/Makefile.in: Regenerate.
1193         * libc/stdio/dprintf.c: New file.
1194         * libc/stdio/vdprintf.c: New file.
1195         * libc/stdio/stdio.tex (dprintf): New entry.
1196
1197 2005-10-11  David Weatherford  <weath@tensilica.com>
1198
1199         * libc/stdio/vfprintf.c (_VFPRINTF_R): Recognize 'F' format.
1200         Print "inf" and "nan" in lowercase for e/f/g formats and in 
1201         uppercase for E/F/G formats.
1202
1203 2005-10-07  Bob Wilson  <bob.wilson@acm.org>
1204
1205         * libc/stdlib/mallocr.c (mALLOc, rEALLOCc, mEMALIGn): Set errno
1206         to ENOMEM on failure.
1207
1208 2005-10-06  Ralf Corsepius <ralf.corsepius@rtems.org>
1209
1210         * libc/include/stdint.h: Add [u]int_fast<N>_t types.
1211
1212 2005-10-04  Ralf Corsepius <ralf.corsepius@rtems.org>
1213
1214         * libc/include/stdint.h: Move magic to set __have_long* to the
1215         beginning.  Use #if __have* instead of #if defined(__have*).
1216         Minor typo fixes.
1217
1218 2005-10-04  James E Wilson  <wilson@specifix.com>
1219
1220         * libc/include/sys/dirent.h (_DIRENT_H_): Delete #include_next.  Add
1221         #error.
1222
1223 2005-10-03  Jeff Johnston  <jjohnstn@redhat.com>
1224
1225         * libc/sys/linux/include/stdint.h: Include <sys/types.h> and
1226         incorporate Ralf's change below.
1227
1228 2005-10-03  Ralf Corsepius <ralf.corsepius@rtems.org>
1229
1230         * libc/include/stdint.h: 
1231         Use __INTMAX_TYPE__ to derive intmax_t.
1232         Use __UINTMAX_TYPE__ to derive uintmax_t.
1233         Fix minor typo.
1234
1235 2005-09-27  Ralf Corsepius <ralf.corsepius@rtems.org>
1236
1237         * libc/include/stdint.h: Correct __STDINT_EXP macro incorrectly 
1238         handling GCC >= 4.
1239
1240 2005-09-20  Jeff Johnston  <jjohnstn@redhat.com>
1241
1242         * libc/sys/linux/include/stdint.h: Update to match functionality
1243         of generic newlib stdint.h.
1244
1245 2005-09-20  Jeff Johnston  <jjohnstn@redhat.com>
1246
1247         * libc/include/stdint.h (__EXP): Rename to __STDINT_EXP
1248         and do not #undef the macro after it is used.  Fix typos.
1249         Also change 64-bit constants to use the __have_long64 and
1250         __have_longlong64 flags to determine if long or long long
1251         constants should be used.
1252         * libc/include/inttypes.h: Include stddef.h to get wchar_t
1253         type defined.
1254
1255 2005-09-20  Shaun Jackman  <sjackman@gmail.com>
1256
1257         * libc/include/stdint.h: Fix typo in names of
1258         LEAST macros.
1259
1260 2005-09-20  Jeff Johnston  <jjohnstn@redhat.com>
1261
1262         * libc/sys/rtems/include/inttypes.h: Moved to...
1263         * libc/include/inttypes.h: ...here.
1264
1265 2005-09-19  Jeff Johnston  <jjohnstn@redhat.com>
1266
1267         * libc/sys/rtems/include/stdint.h: Moved to...
1268         * libc/include/stdint.h: ...here.
1269
1270 2005-09-08  Jeff Johnston  <jjohnstn@redhat.com>
1271
1272         * Makefile.am: Add include files under bits sub-directory.
1273         * Makefile.in: Regenerated.
1274         * libc/sys/linux/argp/argp-fs-xinl.c: Set __OPTIMIZE__ to
1275         actual value of 1 to be compatible with newer glibc headers.
1276         * libc/sys/linux/sys/cdefs.h: Fix to be compatible with newer
1277         glibc headers.
1278         * libc/sys/linux/sys/dirent.h: Ditto.
1279         * libc/sys/linux/argp/argp-xinl.c: Ditto.
1280         * libc/sys/linux/dl/dl-runtime.c: Make sure fixup and
1281         profile_fixup routines are marked used so they won't be
1282         optimized away.
1283         * libc/sys/linux/dl/dl-cache.c: Don't use weak_extern macro
1284         to mark functions as weak.
1285         * libc/sys/linux/dl/dl-open.c: Ditto.
1286         * libc/sys/linux/iconv/gconv_open.c: Fix to obey new gcc4
1287         rules about lvalues.
1288         * libc/sys/linux/iconv/gconv_simple.c: Ditto.
1289         * libc/sys/linux/linuxthreads/bits/libc-lock.h: Don't use
1290         weak_extern macro to mark functions as weak.  Instead always
1291         use #pragma weak.
1292         * iconvdata/jis0208.h: Fix to work with gcc4.
1293         * libc/sys/linux/dl/dl-load.c: Ditto.
1294         * libc/sys/linux/dl/dl-reloc.c: Ditto.
1295         * libc/sys/linux/dl/do-rel.h: Ditto.
1296         * libc/sys/linux/dl/dynamic-link.h: Ditto.
1297         * libc/sys/linux/include/ltdl.h: Ditto.
1298         * libc/sys/linux/machine/i386/dl-machine.h: Ditto.
1299         * libc/sys/linux/machine/i386/weakalias.h: Ditto.
1300         * libc/sys/linux/net/ns_ntoa.c: Ditto.
1301         * libc/sys/linux/bits/initspin.h: New file.
1302         * libc/sys/linux/bits/libc-lock.h: Ditto.
1303         * libc/sys/linux/bits/pthreadtypes.h: Ditto.
1304         * libc/sys/linux/bits/typesizes.h: Ditto.
1305
1306 2005-09-08  Eric Blake  <ebb9@byu.net>
1307
1308         * libc/argz/argz_insert.c (argz_insert): Don't die with EINVAL when
1309         before is NULL.
1310
1311 2005-09-08  Brian Dessent  <brian@dessent.net>
1312
1313         * sf_lrint.c (lrintf): Mask 'i0' correctly when extracting
1314         mantissa.
1315         * s_lrint.c: Ditto.
1316
1317 2005-09-02  Jeff Johnston  <jjohnstn@redhat.com>
1318
1319         * libc/include/stdio.h: Add prototype for viprintf.
1320
1321 2005-09-01  Jeff Johnston  <jjohnstn@redhat.com>
1322
1323         * libm/mathfp/s_pow.c: (pow): Change code so 0 raised to
1324         any positive power results in 0.
1325         * libm/mathfp/sf_pow.c (powf): Ditto.
1326
1327 2005-08-31  Paul Brook  <paul@codesourcery.com>
1328
1329         * configure.host: Set have_crt0 to no for Arm targts when not
1330         providing syscalls.  Set sys_dir=arm unconditionally.
1331         Default have_crt0 based on sys_dir.
1332         * configure.in: Use have_crt0.
1333         * libc/configure.in: Ditto.
1334         * libc/sys/configure.in: Ditto.
1335         * configure: Regenerate.
1336         * libc/configure: Regenerate.
1337         * libc/sys/configure: Regenerate.
1338         * libc/sys/arm/Makefile.am (lib_a_SOURCES): Add aeabi_atexit.c.
1339         Only build other files when providing syscalls.
1340         * libc/sys/arm/Makefile.in: Regenerate.
1341         * libc/sys/arm/aeabi_atexit.c: New file.
1342
1343 2005-08-26  Christopher Faylor  <cgf@timesys.com>
1344
1345         * libc/include/string.h: Revert previous change.
1346
1347 2005-08-25  Christopher Faylor  <cgf@timesys.com>
1348
1349         * libc/include/string.h: For Cygwin, Define strerror_r as per ISO C.
1350
1351 2005-08-22  Shaun Jackman  <sjackman@gmail.com>
1352
1353         * libc/include/_syslist.h: If HAVE_OPENDIR is not defined,
1354         define _opendir as opendir, _readdir as readdir, and
1355         _closedir as closedir so that the implementations in
1356         libc/posix will be used.
1357
1358 2005-08-10  DJ Delorie  <dj@redhat.com>
1359
1360         * MAINTAINERS (CPU Ports): Add CPU port maintainer section.
1361
1362 2005-08-10  Stephen Huw Clarke  <stephen.clarke@st.com>
1363
1364         * libm/common/sf_fmax.c: Fix to properly handle NaNs.
1365         * libm/common/s_max.c: Ditto.
1366         * libm/common/sf_fmin.c: Ditto.
1367         * libm/common/s_min.c: Ditto.
1368
1369 2005-08-10  DJ Delorie  <dj@redhat.com>
1370
1371         * configure.host: Add m32c support.
1372         * libc/include/machine/ieeefp.h: Likewise.
1373         * libc/include/machine/setjmp.h: Likewise.
1374         * libc/include/sys/config.h: Likewise.
1375         * libc/machine/m32c: New directory, Renesas R8C/M16C/M32C support.
1376         * libc/machine/m32c/aclocal.m4: New file.
1377         * libc/machine/m32c/configure: Ditto.
1378         * libc/machine/m32c/configure.in: Ditto.
1379         * libc/machine/m32c/Makefile.am: Ditto.
1380         * libc/machine/m32c/Makefile.in: Ditto.
1381         * libc/machine/m32c/setjmp.S: Ditto.
1382
1383 2005-08-02  Bob Wilson  <bob.wilson@acm.org>
1384
1385         * libm/math/ef_hypot.c (__ieee754_hypotf): Add missing exponent bias
1386         to the value for 2^126.
1387
1388 2005-07-26  Hans-Peter Nilsson  <hp@bitrange.com>
1389
1390         * libc/machine/cris/libcdtor.c (defaultors): Mark artificially as
1391         used.
1392
1393 2005-07-20  Bob Wilson  <bob.wilson@acm.org>
1394            Darin Petkov <darin@tensilica.com>
1395
1396        * libm/math/ef_atan2.c (pi, pi_lo): Use round-to-nearest value of pi.
1397
1398 2005-07-19  Paul Brook  <paul@codesourcery.com>
1399
1400         * libc/sys/arm/crt0.S: Ensure doubleword stack alignment.
1401
1402 2005-07-18  Joseph S. Myers  <joseph@codesourcery.com>
1403
1404         * testsuite/lib/checkoutput.exp (newlib_check_output): Use test
1405         names after PASS and FAIL which do not depend on source directory
1406         name or on whether test passed or failed.
1407         * testsuite/lib/passfail.exp (newlib_pass_fail): Likewise.
1408
1409 2005-07-08  Ola Hugosson   <Ola.Hugosson@anoto.com>
1410
1411         * libc/string/wcsspn.c (wcsspn): Add missing increment of q.
1412
1413 2005-07-07  Shaun Jackman  <sjackman@gmail.com>
1414
1415         * libc/unix/ttyname.c (ttyname): Avoid calling _closedir
1416         twice for the same directory. _closedir calls free, and freeing
1417         the same pointer twice may cause a crash.
1418
1419 2005-07-06  Aldy Hernandez  <aldyh@redhat.com>
1420
1421         * configure.host: Added entry for ms1*.
1422         * libc/include/machine/ieeefp.h: Handle ms1.
1423         * libc/include/machine/setjmp.h (_JBLEN): Define for ms1.
1424         * libc/machine/ms1/aclocal.m4: New.
1425         * libc/machine/ms1/configure: New.
1426         * libc/machine/ms1/configure.in: New.
1427         * libc/machine/ms1/Makefile.am: New.
1428         * libc/machine/ms1/Makefile.in: New.
1429         * libc/machine/ms1/setjmp.S: New.
1430
1431 2005-07-04  Mark Mitchell  <mark@codesourcery.com>
1432
1433         * Makefile.am (site.exp): Set tmpdir.
1434         * Makefile.in: Regenerated.
1435         * testsuite/lib/checkoutput.exp (newlib_check_output): Put
1436         executables in $tmpdir.
1437         * testsuite/lib/flags.exp (libgloss_link_flags): Use the original
1438         libgloss version if not running in the build directory.
1439         * testsuite/lib/newlib.exp (newlib_init): Put testglue.o in
1440         $tmpdir.
1441         * testsuite/lib/passfail.exp (newlib_pass_fail): Put executables
1442         in $tmpdir.
1443
1444 2005-06-28  Dave Korn  <dave.korn@artimi.com>
1445
1446         * libm/common/s_lrint.c (lrint):  Fix signed-vs-unsigned comparison
1447         and miscalculation caused by fp representation of zero.
1448         * libm/common/sf_lrint.c (lrintf):  Likewise.
1449
1450 2005-06-16  Christopher Faylor  <cgf@timesys.com>
1451
1452         * libc/stdio/vfprintf.c (cvt): Don't rely on pointer aliasing to
1453         determine characteristics of long double.  Use a union instead.
1454         * ldtoa.c (_ldtoa_r): Ditto.
1455         (_ldcheck): Ditto.
1456         (_strtold): Ditto.
1457         (union uconv): New union.
1458
1459 2005-06-03  Jeff Johnston  <jjohnstn@redhat.com>
1460
1461         * libc/stdlib/mallocr.c (MALLOC_COPY): Switch to use memmove
1462         instead of memcpy.
1463
1464 2005-05-12  Jeff Johnston  <jjohnstn@redhat.com>
1465
1466         * configure.host (mn10300-*): Add long long I/O support by default.
1467
1468 2005-05-12  Jeff Johnston  <jjohnstn@redhat.com>
1469
1470         * libc/sys/linux/getpwuid.c: Removed.
1471         * libc/sys/linux/getpwnam.c: Removed.
1472         * libc/sys/linux/getpwent.c: New file containing logic
1473         from files removed above.  This allows overriding of file
1474         in libc/unix.
1475         * libc/sys/linux/Makefile.am: Support changes above.
1476         * libc/sys/linux/Makefile.in: Regenerated.
1477
1478 2005-04-28  Jeff Johnston  <jjohnstn@redhat.com>
1479
1480         * libc/stdio/vfscanf.c (__svfscanf_r): Fix code thinko
1481         when checking for multiple flags.
1482
1483 2005-04-18  Hans-Peter Nilsson  <hp@axis.com>
1484
1485         * configure.host <cris-*-* | crisv32-*-*>: Set
1486         default_newlib_io_long_long="yes".
1487
1488 2005-04-08  Jeff Johnston  <jjohnstn@redhat.com>
1489
1490         * libc/include/libgen.h: New file.
1491
1492 2005-04-08  Shaun Jackman  <sjackman@gmail.com>
1493
1494         * libc/unix/Makefile.am: Add support for basename and dirname.
1495         * libc/unix/Makefile.in: Regenerated.
1496         * libc/unix/basename.c: New file.
1497         * libc/unix/dirname.c: New file.
1498
1499 2005-04-07  Shaun Jackman  <sjackman@gmail.com>
1500
1501         * libc/sys/linux/inode.c (lchown): New function.
1502
1503 2005-04-07  Shaun Jackman  <sjackman@gmail.com>
1504
1505         * libc/unix/Makefile.am (LIB_OBJS): Include all the ELIX objects if no
1506         ELIX level is defined.
1507         * libc/unix/Makefile.in: Regenerated.
1508
1509 2005-04-05  Dave Korn  <dave.korn@artimi.com>
1510
1511         * libc/stdio/vfscanf.c (__svfscanf_r): If an error occurs processing
1512         something that looks like a "NaN", put back the characters processed.
1513
1514 2005-04-01  Corinna Vinschen  <corinna@vinschen.de>
1515
1516         * libc/stdlib/strtod.c (_strtod_r): Never change s00.
1517
1518 2005-03-23  Christopher Faylor  <cgf@timesys.com>
1519
1520         * configure.host: For cygwin, redefine CC with cygwin include directory
1521         first to mimic the behavior of the top-level configury.  Move include
1522         directory out of newlib_cflags.
1523
1524 2005-03-22  Jeff Johnston  <jjohnstn@redhat.com>
1525
1526         * configure.host: For arc, set -DREENTRANT_SYSCALLS_PROVIDED flag on.
1527         * libc/sys/arc/syscalls.c: Change functions to use __errno_r rather 
1528         than errno.
1529
1530 2005-03-22  Christopher Faylor  <cgf@timesys.com>
1531
1532         * libc/include/machine/_types.h: Make trivial change to comment to
1533         avoid a spurious warning from gcc.
1534
1535 2005-03-21  Nicholas Wourms  <nwourms@netscape.net>
1536
1537         * libc/stdio/vfprintf.c: Move newlib.h before _WANT_IO_POS_ARGS test,
1538         since _WANT_IO_POS_ARGS is now defined in there.  Remove duplicate
1539         reent.h include.
1540
1541 2005-03-18  Hans-Peter Nilsson  <hp@axis.com>
1542             Corinna Vinschen  <corinna@vinschen.de>
1543
1544         * libc/include/ctype.h: Remove invalid +1 offset from
1545         ctype macro references to __ctype_ptr.
1546         (_ctype_): Move declaration outside #ifndef __cplusplus.
1547
1548 2005-03-18  Corinna Vinschen  <corinna@vinschen.de>
1549
1550         * libc/include/machine/setjmp.h (sigsetjmp): Use GCC extension to
1551         evaluate first parameter only once.
1552         (siglongjmp): Ditto.
1553
1554 2005-03-17  Jeff Johnston  <jjohnstn@redhat.com>
1555
1556         * configure.in: Add new check to see if compiler supports
1557         aliasing of arrays and define _HAVE_ARRAY_ALIASING if true.
1558         * configure: Regenerated.
1559         * Makefile.in: Ditto.
1560         * newlib.hin: Add _HAVE_ARRAY_ALIASING.
1561         * libc/ctype/ctype_.c: Check for _HAVE_ARRAY_ALIASING before
1562         aliasing the _ctype_ array to _ctype_b.
1563         * libc/include/ctype.h: Change macros to use __ctype_ptr.  Mark
1564         _ctype_ as deprecated.
1565
1566 2005-03-17  Hans-Peter Nilsson  <hp@axis.com>
1567
1568         * configure.host (newlib_cflags) <cris-*-*, crisv32-*-*>: Add
1569         -DCOMPACT_CTYPE.
1570
1571 2005-03-06  Ralf Corsepious  <ralf.corsepius@rtems.org>
1572
1573         * libc/sys/rtems/include/inttypes.h: New file.
1574         * libc/sys/rtems/include/stdint.h: Ditto.
1575
1576 2005-03-06  Ralf Corsepious  <ralf.corsepius@rtems.org>
1577
1578         * libc/string/memcmp.c: Fix to avoid pointer signedness warning.
1579
1580 2005-03-06  Ralf Corsepious  <ralf.corsepius@rtems.org>
1581
1582         * libc/include/machine/_types.h: New file.
1583         * libc/include/sys/types.h: Do not check for __rtems__
1584         when including <machine/_types.h>.  Remove some redundant
1585         declarations now that <machine/_types.h> is included.
1586         * libc/sys/rtems/machine/_types.h: Removed.  Replaced with
1587         shared header file.
1588
1589 2005-02-25  Ralf Corsepious  <ralf.corsepius@rtems.org>
1590
1591         * libm/common/fdlibm.h (FLT_UWORD_MAX, FLT_UWORD_HALF_MAX): Add
1592         L qualifier for these long constants.
1593
1594 2005-02-25  Eric Blake  <ebb9@byu.net>
1595
1596         * libc/include/time.h (__tzrule_struct): Make offset long, since
1597         a 16-bit int overflows on a 12-hour offset.
1598         * libc/sys/linux/include/time.h: Ditto.
1599         * libc/time/mktime.c (mktime): Use new type of __tzrule.offset.
1600         * libc/time/mktm_r.c: Ditto.
1601         * libc/time/gettzinfo.c: Ditto.
1602         * libc/time/strftime.c (strftime): Fix '%x' to deal with negative
1603         years.  Fix '%z' to use long, not int.
1604
1605 2005-02-24  Ralf Corsepious  <ralf.corsepius@rtems.org>
1606
1607         * libm/common/s_fpclassify.c: Use __uint32_t instead of int to
1608         manipulate float values in integer form.
1609         * libm/common/sf_round.c: Ditto.
1610
1611 2005-02-24  Ralf Corsepious  <ralf.corsepius@rtems.org>
1612
1613         * libc/include/sys/types.h [__rtems__]: Include new
1614         header file machine/_types.h.
1615         * libc/include/machine/types.h: Ditto.
1616         * libc/sys/rtems/machine/_types.h: New file.
1617
1618 2005-02-23  Corinna Vinschen  <corinna@vinschen.de>
1619
1620         * libc/include/time.h (_timezone): Change to long also for Cygwin.
1621         (timezone): Drop cast from definition.
1622
1623 2005-02-23  Jeff Johnston  <jjohnstn@redhat.com>
1624
1625         * libc/include/time.h [!CYGWIN](_timezone): Change to long.
1626         (__tzrule_type, __tzinfo_type): New types.
1627         (__gettzinfo): New function.
1628         * libc/sys/linux/include/time.h: Ditto.
1629         * libc/time/Makefile.am: Add gettzinfo.c.
1630         * libc/time/Makefile.in: Regenerated.
1631         * libc/time/local.h: Moved __tzrule_type to time.h.
1632         * libc/time/mktime.c: Call __gettzinfo to reference
1633         __tznorth, __tzyear, and __tzrule array.
1634         * libc/time/mktm_r.c: Ditto.
1635         * libc/time/strftime.c: Ditto.
1636         * libc/time/tzset_r.c: Ditto.  Also remove definition
1637         of __tzrule which is now in gettzinfo.c.  Change _timezone
1638         references to not cast to time_t.
1639         * libc/time/gettzinfo.c: New file.
1640
1641 2005-02-23  Corinna Vinschen  <corinna@vinschen.de>
1642
1643         * libc/include/sys/unistd.h: Define getpeereid for Cygwin.
1644
1645 2005-02-22  Corinna Vinschen  <corinna@vinschen.de>
1646
1647         * libc/include/sys/unistd.h: Define fdatasync also for Cygwin.
1648
1649 2005-02-16  Eric Blake  <ebb9@byu.net>
1650
1651         * libc/time/time.tex: Improve the documentation.
1652         * libc/time/strftime.c: Improve the documentation.
1653         (iso_year_adjust): New helper function.
1654         (strftime): Simplify '%E' and '%O'. Change '%c' to use
1655         recursion. Fix '%C', '%y', and '%Y' to deal with years with more
1656         than 4 characters.  Combine '%d' and '%e'. Implement '%D', '%F',
1657         '%g', '%G', '%n', '%R', '%t', '%T', '%u', '%V', '%X', and '%z'.
1658         Avoid core dumps on valid inputs (maxsize == 0, or
1659         tim_p->tm_isdst > 1).
1660
1661 2005-02-08  Corinna Vinschen  <corinna@vinschen.de>
1662
1663         * libc/include/pwd.h (struct passwd): Change pw_uid and pw_gid
1664         members to uid_t and gid_t according to SUSv3.
1665         * libc/include/sys/time.h (utimes):  Change second parameter
1666         to const according to SUSv3.
1667
1668 2005-02-07  Antony King  <antony.king@st.com>
1669
1670         * libc/stdio/clearerr.c (clearerr): Ensure CHECK_INIT() is
1671         called before _flockfile to prevent lock object use before
1672         initialisation. _REENT_SMALL_CHECK_INIT() and CHECK_INIT()
1673         take a struct _reent * instead of a FILE *.
1674         * libc/stdio/fclose.c (_fclose_r): Ditto.
1675         * libc/stdio/feof.c (feof): Ditto.
1676         * libc/stdio/ferror.c (ferror): Ditto.
1677         * libc/stdio/fflush.c (fflush): Ditto.
1678         * libc/stdio/fgetc.c (fgetc): Ditto.
1679         * libc/stdio/fgets.c (fgets): Ditto.
1680         * libc/stdio/fileno.c (fileno): Ditto.
1681         * libc/stdio/fputc.c (fputc): Ditto.
1682         * libc/stdio/fputs.c (fputs): Ditto.
1683         * libc/stdio/fread.c (fread): Ditto.
1684         * libc/stdio/freopen.c (_freopen_r): Ditto.
1685         * libc/stdio/fseek.c (_fseek_r): Ditto.
1686         * libc/stdio/ftell.c (_ftell_r): Ditto.
1687         * libc/stdio/fwrite.c (fwrite): Ditto.
1688         * libc/stdio/getc.c (getc): Ditto.
1689         * libc/stdio/getdelim.c (__getdelim): Ditto.
1690         * libc/stdio/putc.c (putc): Ditto.
1691         * libc/stdio/setvbuf.c (setvbuf): Ditto.
1692         * libc/stdio/ungetc.c (_ungetc_r): Ditto.
1693         * libc/stdio/vfprintf.c (_VFPRINTF_R): Ditto.
1694         * libc/stdio64/freopen64.c (_freopen64_r): Ditto.
1695         * libc/stdio64/fseeko64.c (_fseeko64_r): Ditto.
1696         * libc/stdio64/ftello64.c (_ftello64_r): Ditto.
1697         * libc/stdio/local.h (CHECK_INIT): Argument is now a struct
1698         _reent * instead of a FILE * and so replace incorrect use of
1699         _REENT with argument.
1700         * libc/sys/arm/syscalls.c (CHECK_INIT): Ditto.
1701         * libc/stdio/getchar.c (getchar): _REENT_SMALL_CHECK_INIT() and
1702         CHECK_INIT() take a struct _reent * instead of a FILE *.
1703         * libc/stdio/iprintf.c (iprintf, _iprintf_r): Ditto.
1704         * libc/stdio/iscanf.c (iscanf, _iscanf_r): Ditto.
1705         * libc/stdio/perror.c (perror): Ditto.
1706         * libc/stdio/printf.c (printf, _printf_r): Ditto.
1707         * libc/stdio/putchar.c (putchar): Ditto.
1708         * libc/stdio/puts.c (puts): Ditto.
1709         * libc/stdio/refill.c (__srefill): Ditto.
1710         * libc/stdio/scanf.c (scanf, _scanf_r): Ditto.
1711         * libc/stdio/vfscanf.c (VFSCANF, _VFSCANF_R): Ditto.
1712         * libc/stdio/viprintf.c (viprintf, _viprintf_r): Ditto.
1713         * libc/stdio/viscanf.c (viscanf, _viscanf_r): Ditto.
1714         * libc/stdio/vprintf.c (vprintf, _vprintf_r): Ditto.
1715         * libc/stdio/vscanf.c (vscanf, _vscanf_r): Ditto.
1716         * libc/stdio/wbuf.c (__swbuf): Ditto.
1717         * libc/stdio/wsetup.c (__swsetup): Ditto.
1718         * libc/stdlib/mallocr.c (malloc_stats): Ditto.
1719         * libc/stdlib/mstats.c (_mstats_r): Ditto.
1720         * libc/include/sys/reent.h (_REENT_SMALL_CHECK_INIT): Ditto.
1721         * libc/machine/powerpc/vfscanf.c (vfscanf): Ditto.
1722         * libc/stdio/fgetpos.c (_fgetpos_r): Removed unnecessary calls
1723         to _flockfile and _funlockfile; rely on locking in _ftell_r.
1724         * libc/stdio64/fgetpos64.c (_fgetpos64_r): Ditto (_ftello64_r).
1725         * libc/machine/powerpc/vfprintf.c (__sbprintf): Removed unnecessary
1726         initialision of _data field in FILE structure.
1727         * libc/machine/powerpc/vfprintf.c (VFPRINTF): Added CHECK_INIT() call.
1728
1729 2005-02-07  Jeff Johnston  <jjohnstn@redhat.com>
1730
1731         * libc/stdio/findfp.c (__sinit): Protect with new lock.
1732         (__sinit_lock): New lock.
1733         (__sinit_lock_acquire, __sinit_lock_release): New functions.
1734         * libc/stdio/local.h: Add reference to new __sinit locking
1735         functions.
1736
1737 2005-02-07  Jeff Johnston  <jjohnstn@redhat.com>
1738
1739         * libc/include/math.h (isfinite, isnormal, isunordered): Change
1740         input variable names to avoid mixups with nesting macros.
1741
1742 2005-01-27  Hans-Peter Nilsson  <hp@axis.com>
1743
1744         * configure.host: Add support for cris-*-* and crisv32-*-*.
1745         * libc/include/machine/ieeefp.h: Ditto.
1746         * libc/include/machine/setjmp.h: Ditto.
1747         * libc/machine/cris/configure.in, libc/machine/cris/Makefile.am,
1748         libc/machine/cris/libcdtor.c, libc/machine/cris/setjmp.c,
1749         libc/machine/cris/memmove.c, libc/machine/cris/memcpy.c,
1750         libc/machine/cris/memset.c, libc/machine/cris/include/pthread.h,
1751         libc/machine/cris/sys/signal.h, libc/machine/cris/sys/fcntl.h,
1752         libc/machine/cris/sys/errno.h, libc/machine/cris/aclocal.m4,
1753         libc/machine/cris/configure, libc/machine/cris/Makefile.in: New
1754         files.
1755
1756 2005-01-27  Hans-Peter Nilsson  <hp@axis.com>
1757
1758         * testsuite/newlib.string/memmove1.c: New test.
1759
1760 2005-01-27  Hans-Peter Nilsson  <hp@axis.com>
1761
1762         * testsuite/include/check.h: Include stdlib.h.
1763
1764 2005-01-27  Hans-Peter Nilsson  <hp@axis.com>
1765
1766         * Makefile.am (stmp-targ-include): Support include header files
1767         from machine directories.
1768         (install-data-local): Ditto.
1769         * Makefile.in: Regenerate.
1770
1771 2005-01-24  Jeff Johnston  <jjohnstn@redhat.com>
1772
1773         * libc/include/string.h: Remove Linux-specific declaration of
1774         strsignal and add #include <sys/string.h>.
1775         * libc/include/sys/string.h: New file.
1776         * libc/include/sys/linux/sys/string.h: New file with strsignal
1777         declaration deleted above.
1778
1779 2005-01-20  Jeff Johnston  <jjohnstn@redhat.com>
1780
1781         * libc/time/strftime.c (strftime): Change %r and %x to be compliant
1782         to POSIX standard for "C" locale.  Allow %E and %O modifiers
1783         to be ignored as long as they precede valid specifiers according
1784         to POSIX.
1785
1786 2005-01-19  Shaun Jackman  <sjackman@gmail.com>
1787
1788         * libc/stdlib/setenv_r.c (_setenv_r): Call tzset() if the TZ
1789         environment variable is set.
1790
1791 2005-01-19  Shaun Jackman  <sjackman@gmail.com>
1792
1793         * tzset_r.c (_tzname): Add a comma.
1794
1795 2005-01-18  Aldy Hernandez  <aldyh@redhat.com>
1796
1797         * libc/machine/powerpc/vfprintf.c: Use _REENT when calling
1798         _VFPRINTF_R.
1799
1800 2005-01-07  Paul Brook  <paul@codesourcery.com>
1801                                                                                 
1802         * configure.in: Add test for .init_array.
1803         * configure: Regenerate.
1804         * newlib.hin: Add HAVE_INITFINI_ARRAY.
1805         * libc/misc/Makefile.am: Add init.c
1806         * libc/misc/Makefile.in: Regenerate.
1807         * libc/misc/init.c: New file.
1808         * libc/sys/arm/crt0.S: Call __libc_{init,fini}_array instead of
1809         _init/_fini if they exist.
1810                                                                                 
1811 2005-01-06  Jeff Johnston  <jjohnstn@redhat.com>
1812
1813         * libc/stdlib/strtod.c (_strtod_r): Add NaN support.
1814         * (strtof): Ditto.
1815         * libc/stdio/vfscanf.c (__svfscanf_r): Ditto.
1816         * Makefile.am (MATHOBJS_IN_LIBC): Add s_nan and sf_nan
1817         functions for use by strtod and strtof.
1818         * Makefile.in: Regenerated.
1819                                                                                 
1820 2005-01-06  Hans-Peter Nilsson  <hp@axis.com>
1821                                                                                 
1822         * libc/stdio/ftell.c (ftell_r): Add parenthesis for __SWR
1823         bit-test in combination with NULL test.
1824                                                                                 
1825 2005-01-06  Hans-Peter Nilsson  <hp@axis.com>
1826                                                                                 
1827         * README: Fix typo of LGPL.  Change "license" to "copyright".
1828                                                                                 
1829 2004-12-17  Jeff Johnston  <jjohnstn@redhat.com>
1830
1831         * NEWS: Update with 1.13.0 info.
1832         * README: Ditto.
1833         * acinclude.m4: Change version number to 1.13.0.
1834         * aclocal.m4: Regenerated.
1835         * configure: Ditto.
1836         * doc/aclocal.m4: Ditto.
1837         * doc/configure: Ditto.
1838         * libc/*/aclocal.m4: Ditto.
1839         * libc/*/configure: Ditto.
1840         * libc/libc.texinfo: Ditto.
1841         * libm/*/aclocal.m4: Ditto.
1842         * libm/*/configure: Ditto.
1843         * libm/libm.texinfo: Ditto.
1844         * libc/sys/linux/shared.ld: Add VERS_1.13.
1845
1846 2004-12-17  Christian Groessler  <chris@groessler.org>
1847
1848         * libc/machine/z8k/memcmp.S: New file.
1849         * libc/machine/z8k/memcpy.S: Ditto.
1850         * libc/machine/z8k/memmove.S: Ditto.
1851         * libc/machine/z8k/memset.S: Ditto.
1852         * libc/machine/z8k/Makefile.am: Add new files.
1853         * libc/machine/z8k/Makefile.in: Regenerated.
1854         * libc/machine/z8k/setjmp.S: Fix indirect register usage in Z8002
1855         part.  Implement Z8002 stdcall version.
1856
1857 2004-12-13  Jeff Johnston  <jjohnstn@redhat.com>
1858
1859         * libc/stdio/fread.c (fread): For unbuffered I/O, attempt
1860         a low-level read if we don't get the full amount of bytes so
1861         EOF or error flags will be set.
1862
1863 2004-12-09  Alex Mogilnikov  <alx@intellectronika.ru>
1864
1865         * libc/time/tzset_r (_tzset_r): Properly skip over
1866         '/' when it is detected.
1867
1868 2004-12-08  Alex Mogilnikov  <alx@intellectronika.ru>
1869
1870         * libc/time/tzset_r (_tzset_r): Fix loop.
1871
1872 2004-12-08  Alex Mogilnikov  <alx@intellectronika.ru>
1873
1874         * libc/time/mktm_r (_mktm_r): Fix overflow calculation for
1875         m_day.
1876         (__tzcalc_limits): Fix reference to month array to be zero-based.
1877
1878 2004-12-07  Jeff Johnston  <jjohnstn@redhat.com>
1879
1880         * libc/sys/linux/sys/unistd.h: Add prototypes for ftruncate, truncate,
1881         and usleep.
1882
1883 2004-12-03  Jeff Johnston  <jjohnstn@redhat.com>
1884
1885         * Makefile.am (libc_la_LDFLAGS): Add -lgcc to handle any
1886         libgcc dependencies.
1887         (libm_la_LDFLAGS): Ditto.
1888         * Makefile.in: Regenerated.
1889
1890 2004-12-03  Shaun Jackman  <sjackman@gmail.com>
1891
1892         * libc/sys/linux/linuxthreads/Makefile.am (install-data-local): Fix
1893         our link to use readlink so as to preserve any relative link created
1894         by install-toollibLIBRARIES.
1895         * libc/sys/linux/linuxthreads/Makefile.in: Regenerated.
1896
1897 2004-12-02  Shaun Jackman  <sjackman@gmail.com>
1898
1899         * libc/sys/linux/stdlib/glob.c: Include <sys/types.h> which defines
1900         time_t before including sys/stat.h, which uses it.
1901         * libc/sys/linux/sys/stat.h: Include <sys/types.h> and
1902         <linux/time.h> just prior to definition of __KERNEL__ so as to
1903         allow building on Debian Linux where otherwise, mktime would
1904         be redefined.
1905
1906 2004-11-26  Paul Brook  <paul@codesourcery.com>
1907
1908         * libc/sys/arm/crt0.S (_start): Add .cantunwind annotation.
1909                                                                                 
1910 2004-11-24  Jeff Johnston  <jjohnstn@redhat.com>
1911
1912         * libc/include/stdlib.h (putenv, _putenv_r): Change to remove
1913         const for value string parameter to match Single Unix and glibc.
1914         * libc/stdlib/putenv.c: Ditto.
1915         * libc/stdlib/putenv_r.c: Ditto.
1916
1917 2004-11-24  Jeff Johnston  <jjohnstn@redhat.com>
1918
1919         * libc/stdio/Makefile.am: Fix missing vfscanf.
1920         * libc/stdio/Makefile.in: Regenerated.
1921                                                                                 
1922 2004-11-23  Jeff Johnston  <jjohnstn@redhat.com>
1923                                                                                 
1924         * libc/include/stdio.h: Add new iprintf and iscanf variants.  Also
1925         do some reordering.
1926         * libc/machine/powerpc/vfscanf.c: Remove __sccl function.
1927         * libc/stdio/Makefile.am: Add support for new iprintf and iscanf
1928         family functions.
1929         * libc/stdio/Makefile.in: Regenerated.
1930         * libc/stdio/fiprintf.c: Remove doc to siprintf.c.
1931         * libc/stdio/iprintf.c: Ditto.
1932         * libc/stdio/local.h (__svfiscanf_r): New prototype.
1933         * libc/stdio/siprintf.c: Add docs for various iprintf family functions.
1934         * libc/stdio/sniprintf.c: Move docs to siprintf.c.
1935         * libc/stdio/stdio.tex: Add new functions.
1936         * libc/stdio/vfscanf.c: Split out __sccl function to separate
1937         file and add special name defines so this file can be used
1938         to build vfiscanf.o.
1939         * libc/stdio/asiprintf.c: New file.
1940         * libc/stdio/fiscanf.c: Ditto.
1941         * libc/stdio/iscanf.c: Ditto.
1942         * libc/stdio/sccl.c: Ditto.
1943         * libc/stdio/siscanf.c: Ditto.
1944         * libc/stdio/vasiprintf.c: Ditto.
1945         * libc/stdio/viprintf.c: Ditto.
1946         * libc/stdio/viscanf.c: Ditto.
1947         * libc/stdio/vsiprintf.c: Ditto.
1948         * libc/stdio/vsiscanf.c: Ditto.
1949         * libc/stdio/vsniprintf.c: Ditto.
1950
1951 2004-11-19  Shaun Jackman  <sjackman@gmail.com>
1952                                                                                 
1953         * libc/include/stdio.h: Add sniprintf.
1954         * libc/stdio/Makefile.am: Add sniprintf.c.
1955         * libc/stdio/Makefile.in: Regenerated.
1956         * libc/stdio/sniprintf.c: New file.
1957         * libc/stdio/stdio.tex: Add sniprintf.
1958                                                                                 
1959 2004-11-17  Christopher Faylor  <cgf@timesys.com>
1960
1961         * libc/stdio/refill.c (__srefill): Try again after EOF on Cygwin.  Clear
1962         EOF flag if successful.
1963
1964 2004-10-28  Christopher Faylor  <cgf@timesys.com>
1965
1966         * libc/include/sys/signal.h: Move <signal.h> include to bottom of file
1967         so that all relevant definitions have been performed for use in the
1968         include.
1969
1970 2004-10-26  Jason Tishler  <jason@tishler.net>
1971
1972         * libc/stdio/fread.c (fread): Fix return value for unbuffered
1973         fread.
1974
1975 2004-10-25  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
1976
1977         * libc/include/machine/setjmp.h: Add AVR support.
1978         * libc/sys/rtems/crt0.S [__AVR__]: Add __stack.
1979
1980 2004-10-08  Jeff Johnston  <jjohnstn@redhat.com>
1981                                                                                 
1982         * libc/include/sys/signal.h: If <signal.h> didn't include
1983         this header file, include <signal.h> to account for
1984         applications that take advantage that the two header
1985         files are the same in glibc.
1986                                                                                 
1987 2004-10-05  Tomer Levi  <Tomer.Levi@nsc.com>
1988
1989         * configure.host: Add support for crx.
1990         * libc/include/machine/ieeefp.h: Ditto.
1991         * libc/include/machine/setjmp.h: Ditto.
1992         * libc/machine/crx/Makefile.am: New file.
1993         * libc/machine/crx/configure.in: Ditto.
1994         * libc/machine/crx/setjmp.S: Ditto.
1995         * libc/machine/crx/getenv.c: Ditto.
1996         * libc/machine/crx/aclocal.m4: Generate.
1997         * libc/machine/crx/configure: Ditto.
1998         * libc/machine/crx/Makefile.in: Ditto.
1999         * libc/machine/crx/sys/asm.h: New file.
2000         * libc/machine/crx/sys/libh.h: Ditto.
2001         * libc/machine/crx/sys/syscall.h: Ditto.
2002
2003 2004-10-05  Jeff Johnston  <jjohnstn@redhat.com>
2004
2005         * Makefile.am (stmp-targ-include): Support sys header files
2006         from machine directories.
2007         * Makefile.in: Regenerated.
2008
2009 2004-10-04  Jeff Johnston  <jjohnstn@redhat.com>
2010
2011         * libc/stdio/vfscanf.c (__svfscanf_r): For int conversions,
2012         count skipped zero characters as part of the nread count for %n.
2013         * libc/machine/powerpc/vfscanf.c: Ditto.
2014
2015 2004-09-24  Jeff Johnston  <jjohnstn@redhat.com>
2016
2017         * libc/stdio/local.h: Include <stdlib.h>.
2018
2019 2004-09-24  Corinna Vinschen  <corinna@vinschen.de>
2020
2021         * libc/stdio/fread.c (fread): Include <malloc.h>.
2022
2023 2004-09-22  Jeff Johnston  <jjohnstn@redhat.com>
2024
2025         * libc/stdio/fread.c (fread):  For non-space-optimized case,
2026         add special code for unbuffered files to use user buffer and
2027         only require one low-level system read.
2028
2029 2004-09-21  Ian Lance Taylor  <ian@wasabisystems.com>
2030
2031         * libc/machine/xscale/setjmp.S: New file, copied from
2032         libc/machine/arm/setjmp.S.
2033         * libc/machine/xscale/Makefile.am (lib_a_SOURCES): Add setjmp.S.
2034         * libc/machine/xscale/Makefile.in: Regenerate.
2035
2036 2004-09-16  Antony King  <antony.king@st.com>
2037
2038         * libc/include/sys/lock.h: Replaced empty {} with (0) to conform
2039         with locking API.
2040         * libc/include/sys/stdio.h: (_flockfile)[!_SINGLE_THREAD]: Add 
2041         check for__SSTR in _flags and if set, skip lock request.
2042         (_funlockfile)[!SINGLE_THREAD]: Ditto.
2043         * libc/stdio/local.h (CHECK_INIT): Added check that _REENT is
2044         not NULL.
2045         * libc/stdio/siprintf.c (siprintf, _siprintf_r): Added missing
2046         initialisation of _file to -1 in local FILE.
2047         * libc/stdio/snprintf.c (snprintf, _snprintf_r): Ditto.
2048         * libc/stdio/sscanf.c (sscanf, _sscanf_r): Ditto.
2049         * libc/stdio/vsnprintf.c (vsnprintf, _vsnprintf_r): Ditto.
2050         * libc/stdio/vsscanf.c (_vsscanf_r): Ditto.
2051         * libc/stdio/sscanf.c (sscanf, _sscanf_r): Added __SSTR flag to
2052         _flags in local FILE to prevent locking.
2053         * libc/stdio/vsscanf.c (_vsscanf_r): Ditto.
2054
2055 2004-09-16  Antony King  <antony.king@st.com>
2056
2057         * libc/stdio/fwalk.c (_fwalk): Remove check for _GLOBAL_REENT
2058         and only walk the reentrancy parameter.
2059         (_fwalk_reent): Ditto.
2060         * libc/stdlib/exit.c: Remove out of date _REENT_ONLY check.
2061
2062 2004-09-16  Antony King  <antony.king@st.com>
2063
2064         * libc/stdio64/freopen64.c: Remove casting of fp lock to
2065         _LOCK_RECURSIVE_T.
2066
2067 2004-09-16  Antony King  <antony.king@st.com>
2068
2069         * libc/time/tzlock.c: Add default stubs that use generic
2070         locking code.
2071
2072 2004-09-16  Antony King  <antony.king@st.com>
2073
2074         * libc/ctype/ctype.tex: Added missing documentation.
2075         * libc/stdio/stdio.tex Ditto.
2076         * libc/stdlib/stdlib.tex Ditto.
2077         * libc/string/strings.tex Ditto.
2078         * libc/time/time.tex: Ditto.
2079         * libc/stdio/setbuffer.c: Removed setlinebuf documentation.
2080
2081 2004-09-15  Corinna Vinschen  <vinschen@redhat.com>
2082
2083         * libc/reent/impure.c (reent_data): Define as alias to impure_data
2084         when building for Cygwin.
2085         * libc/include/sys/reent.h (_GLOBAL_REENT): Revert definition to
2086         _global_impure_ptr.
2087
2088 2004-09-15  Jeff Johnston  <jjohnstn@redhat.com>
2089
2090         * configure.host: Reverting 2004-09-14 change as fix has occurred on
2091         Cygwin side.
2092         * configure.in: Ditto.
2093         * libc/configure.in: Ditto.
2094         * libc/sys/configure.in: Ditto.
2095         * configure: Ditto.
2096         * libc/configure: Ditto.
2097         * libc/sys/configure: Ditto.
2098         * libc/include/sys/reent.h: Ditto.
2099         * libc/stdlib/__atexit.c: Ditto.
2100         * libc/stdlib/__call_atexit.c: Ditto.
2101         * libc/stdlib/cxa_atexit.c: Ditto.
2102         * libc/stdlib/cxa_finalize.c: Ditto.
2103         * libc/sys/cygwin/Makefile.am: Removed again.
2104         * libc/sys/cygwin/Makefile.in: Ditto.
2105         * libc/sys/cygwin/aclocal.m4: Ditto.
2106         * libc/sys/cygwin/configure: Ditto.
2107         * libc/sys/cygwin/configure.in: Ditto.
2108         * libc/sys/cygwin/dummy.c: Ditto.
2109         * libc/sys/cygwin/sys/reent.h: Ditto.
2110
2111 2004-09-14  Jeff Johnston  <jjohnstn@redhat.com>
2112
2113         * configure.host: Add Cygwin sys directory.
2114         * configure.in: Do not set CRT0 for cygwin.
2115         * libc/configure.in: Ditto.
2116         * libc/sys/configure.in: Ditto.
2117         * configure: Regenerated.
2118         * libc/configure: Ditto.
2119         * libc/sys/configure: Ditto.
2120         * libc/include/sys/reent.h: Add __REENT_HAS_CXA_SUPPORT flag.
2121         * libc/stdlib/__atexit.c: Keep cxa support protected by new
2122         __REENT_HAS_CXA_SUPPORT flag.
2123         * libc/stdlib/__call_atexit.c: Ditto.
2124         * libc/stdlib/cxa_atexit.c: Ditto.
2125         * libc/stdlib/cxa_finalize.c: Ditto.
2126         * libc/sys/cygwin/Makefile.am: New file.
2127         * libc/sys/cygwin/Makefile.in: Ditto.
2128         * libc/sys/cygwin/aclocal.m4: Ditto.
2129         * libc/sys/cygwin/configure: Ditto.
2130         * libc/sys/cygwin/configure.in: Ditto.
2131         * libc/sys/cygwin/dummy.c: Ditto.
2132         * libc/sys/cygwin/sys/reent.h: Ditto.  This file is stabilized
2133         version of reent.h.
2134
2135 2004-09-13 Artem B. Bityuckiy  <dedekind@oktetlabs.ru>
2136
2137         * libc/iconv/iconv.tex: Updated with new content.
2138         * libc/iconv/lib/iconvnls.c: Reference ICONV_DEFAULT_NLSPATH
2139         instead of NLS_DEFAULT_NLSPATH.
2140         * libc/iconv/lib/iconvnls.h: Fix typo.
2141         * libc/include/sys/iconvnls.h: New file.
2142
2143 2004-09-09  Paul Brook  <paul@codesourcery.com>
2144
2145         * libc/include/sys/reent.h (struct _on_exit_args): Add _dso_handle
2146         and _is_cxa.
2147         (struct _atexit): Add _next when _REENT_SMALL.
2148         (struct _reent): Add _atexit0 when _REENT_SMALL.
2149         (_REENT_INIT_PTR): Adjust.
2150         * libc/stdlib/Makefile.am (GENERAL_SOURCES): Add __atexit.c and
2151         __call_exit.c.
2152         (EXTENDED_SOURCES): Add cxa_atexit.c and cxa_finalize.c.
2153         * libc/stdlib/Makefile.in: Regenerate.
2154         * libc/stdlib/__atexit.c: New file.
2155         * libc/stdlib/__call_atexit.c: New file.
2156         * libc/stdlib/atexit.h: Remove old definitions.  Add new.
2157         * libc/stdlib/atexit.c (atexit): Use __register_exitproc.
2158         * libc/stdlib/cxa_atexit.c: New file.
2159         * libc/stdlib/cxa_finalize.c: New file.
2160         * libc/stdlib/exit.c (exit): Use __call_exitprocs.
2161         * libc/stdlib/on_exit.c (on_exit): Use __register_exitproc.
2162         2004-09-09  Jeff Johnston  <jjohnstn@redhat.com>
2163         * libc/reent/reent.c [_REENT_SMALL]: Fix reference to
2164         _on_exit_args_ptr.
2165
2166 2004-08-23  Jeff Johnston  <jjohnstn@redhat.com>
2167
2168         * libc/include/sys/unistd.h (getpass): Change prototype to use
2169         const instead of __const.
2170
2171 2004-08-16  Nathan Sidwell  <nathan@codesourcery.com>
2172
2173         * libc/stdio/vfscanf.c (_NO_LONGLONG): Move out of FLOATING_POINT
2174         #if.
2175
2176 2004-08-12  Jeff Johnston  <jjohnstn@redhat.com>
2177
2178         * libc/sys/linux/sys/types.h (u64): New typedef to allow building
2179         on linux systems with glibc 2.3.3 installed.
2180         * libc/sys/linux/dl/dl-runtime.c: Fix prototypes for fixup and
2181         profile_fixup so newlib can build on fc3 system.
2182  
2183 2004-07-30  Alexandre Oliva  <aoliva@redhat.com>
2184
2185         Introduce SH2a support.
2186         2004-03-16  Corinna Vinschen  <vinschen@redhat.com>
2187         * libc/include/machine/ieeefp.h: Define _DOUBLE_IS_32BITS for
2188         __SH2A_SINGLE_ONLY__, too.
2189         * libc/machine/sh/asm.h: Define DELAYED_BRANCHES for __SH2A__, too.
2190         2004-02-24  Corinna Vinschen  <vinschen@redhat.com>
2191         * libc/sys/sh/crt0.S (start_l): Support sh2a-nofpu.  Fix comments.
2192         2004-02-10  DJ Delorie  <dj@redhat.com>
2193         * libc/sys/sh/crt0.S (start_l): Support sh2a.
2194
2195 2004-07-29  Jeff Johnston  <jjohnstn@redhat.com>
2196
2197         * libc/time/strptime.c: Correct full-name of "March" typo.
2198
2199 2004-07-16  Anil Paranjpe  <anilp1@kpitcummins.com>
2200
2201         * configure.host (h8300*-*-*): Default long long printing support. 
2202
2203 2004-07-16  Jeff Johnston  <jjohnstn@redhat.com>
2204
2205         * libc/stdio/fvwrite.c (_sfvwrite):  For asprintf family
2206         calls, if realloc fails, free up buffer as it is no longer
2207         used.
2208
2209 2004-07-07  Artem B. Bityuckiy  <dedekind@oktetlabs.ru>
2210
2211         * libc/iconv/iconv.tex: Updated to represent recent changes.
2212         * libc/iconv/lib/iconv.c: Documentation updated.
2213
2214 2004-07-07  Nick Clifton  <nickc@redhat.com>
2215
2216         * configure.host (newlib_cflags): Define PREFER_SIZE_OVER_SPEED
2217         for xStormy16.
2218
2219 2004-07-06  Chris Demetriou  <cgd@broadcom.com>
2220
2221         * configure.host (mips*-*-elf*): Default long long printing
2222         support.
2223
2224 2004-07-05  Jeff Johnston  <jjohnstn@redhat.com>
2225
2226         * libc/Makefile.am (libc.dvi): Add target and specify
2227         same dependencies as libc.info.
2228         * libc/Makefile.in: Regenerated.
2229         * libm/Makefile.am (libm.dvi): Add target and specify
2230         same dependencies as libm.info.
2231         * libm/Makefile.in: Regenerated.
2232
2233 2004-06-29  Artem B. Bityuckiy  <dedekind@oktetlabs.ru>
2234
2235         * acinclude.m4: Move --enable-newlib-iconv option back here.
2236         * configure.in: Remove --enable-newlib-iconv option.  Don't
2237         tie iconv support to --enable-newlib-mb.
2238         * aclocal.m4: Regenerated.
2239         * configure: Ditto.
2240         * doc/aclocal.m4, doc/configure: Ditto.
2241         * iconvdata/aclocal.m4, iconvdata/configure: Ditto.
2242         * libm/*/aclocal.m4: Ditto.
2243         * libm/*/configure: Ditto.
2244         * libc/*/aclocal.m4: Ditto.
2245         * libc/*/configure: Ditto.
2246
2247 2004-06-25  Artem B. Bityuckiy  <dedekind@oktetlabs.ru>
2248
2249         * acinclude.m4: Move iconv options into configure.in.
2250         * aclocal.m4: Regenerated.
2251         * configure: Ditto.
2252         * configure.in: Add iconv options.
2253         * newlib.hin: Add new iconv encodings and remove deleted ones.
2254         * doc/aclocal.m4: Regenerated.
2255         * doc/configure: Ditto.
2256         * iconvdata/aclocal.m4: Ditto.
2257         * iconvdata/configure: Ditto.
2258         * libc/iconv: Design change.  New size-optimized ccs format.
2259         * libc/iconv/AUTHORS: Removed.
2260         * libc/iconv/COPYING: Ditto.
2261         * libc/iconv/README.ORIGINAL: Ditto.
2262         * libc/iconv/README.TODO: Ditto.
2263         * libc/iconv/charset.aliases: Ditto.
2264         * libc/iconv/encoding.aliases: New file.
2265         * libc/iconv/Makefile.am: Updated.
2266         * libc/iconv/Makefile.in: Regenerated.
2267         * libc/iconv/iconv.tex: Updated.
2268         * libc/iconv/ccs/Makefile.am: Ditto.
2269         * libc/iconv/ccs/Makefile.in: Regenerated.
2270         * libc/iconv/ccs/big5.c: Updated.
2271         * libc/iconv/ccs/cns11643_plane1.c: Ditto.
2272         * libc/iconv/ccs/cns11643_plane14.c: Ditto.
2273         * libc/iconv/ccs/cns11643_plane2.c: Ditto.
2274         * libc/iconv/ccs/cp775.c: Ditto.
2275         * libc/iconv/ccs/cp850.c: Ditto.
2276         * libc/iconv/ccs/cp852.c: Ditto.
2277         * libc/iconv/ccs/cp855.c: Ditto.
2278         * libc/iconv/ccs/cp866.c: Ditto.
2279         * libc/iconv/ccs/iso_8859_1.c: Ditto.
2280         * libc/iconv/ccs/README.CCS.SOURCES: Removed.
2281         * libc/iconv/ccs/gb_2312_80.c: Ditto.
2282         * libc/iconv/ccs/iconv_mktbl: Ditto.
2283         * libc/iconv/ccs/jis_x0201.c: Ditto.
2284         * libc/iconv/ccs/jis_x0208_1983.c: Ditto.
2285         * libc/iconv/ccs/shift_jis.c: Ditto.
2286         * libc/iconv/ccs/us_ascii.c: Ditto.
2287         * libc/iconv/ccs/ccs.h: New file.
2288         * libc/iconv/ccs/ccsbi.c: Ditto.
2289         * libc/iconv/ccs/ccsbi.h: Ditto.
2290         * libc/iconv/ccs/ccsnames.h: Ditto.
2291         * libc/iconv/ccs/iso_8859_10.c: Ditto.
2292         * libc/iconv/ccs/iso_8859_11.c: Ditto.
2293         * libc/iconv/ccs/iso_8859_13.c: Ditto.
2294         * libc/iconv/ccs/iso_8859_14.c: Ditto.
2295         * libc/iconv/ccs/iso_8859_3.c: Ditto.
2296         * libc/iconv/ccs/iso_8859_6.c: Ditto.
2297         * libc/iconv/ccs/iso_8859_7.c: Ditto.
2298         * libc/iconv/ccs/iso_8859_8.c: Ditto.
2299         * libc/iconv/ccs/iso_8859_9.c: Ditto.
2300         * libc/iconv/ccs/iso_ir_111.c: Ditto.
2301         * libc/iconv/ccs/jis_x0201_1976.c: Ditto.
2302         * libc/iconv/ccs/jis_x0208_1990.c: Ditto.
2303         * libc/iconv/ccs/koi8_ru.c: Ditto.
2304         * libc/iconv/ccs/koi8_uni.c: Ditto.
2305         * libc/iconv/ccs/mktbl.pl: Ditto.
2306         * libc/iconv/ccs/win_1250.c: Ditto.
2307         * libc/iconv/ccs/win_1251.c: Ditto.
2308         * libc/iconv/ccs/win_1252.c: Ditto.
2309         * libc/iconv/ccs/win_1253.c: Ditto.
2310         * libc/iconv/ccs/win_1254.c: Ditto.
2311         * libc/iconv/ccs/win_1255.c: Ditto.
2312         * libc/iconv/ccs/win_1256.c: Ditto.
2313         * libc/iconv/ccs/win_1257.c: Ditto.
2314         * libc/iconv/ccs/win_1258.c: Ditto.
2315         * libc/iconv/ccs/iso_8859_15.c: Updated.
2316         * libc/iconv/ccs/iso_8859_2.c: Ditto.
2317         * libc/iconv/ccs/iso_8859_4.c: Ditto.
2318         * libc/iconv/ccs/iso_8859_5.c: Ditto.
2319         * libc/iconv/ccs/jis_x0212_1990.c: Ditto.
2320         * libc/iconv/ccs/koi8_r.c: Ditto.
2321         * libc/iconv/ccs/koi8_u.c: Ditto.
2322         * libc/iconv/ccs/ksx1001.c: Ditto.
2323         * libc/iconv/ccs/binary/gb_2312_80.cct: Removed.
2324         * libc/iconv/ccs/binary/jis_x0201.cct: Ditto.
2325         * libc/iconv/ccs/binary/shift_jis.cct: Ditto.
2326         * libc/iconv/ccs/binary/us_ascii.cct: Ditto.
2327         * libc/iconv/ccs/binary/jis_x0208_1983.cct: Ditto.
2328         * libc/iconv/ccs/binary/Makefile.am: Updated.
2329         * libc/iconv/ccs/binary/Makefile.in: Regenerated.
2330         * libc/iconv/ccs/binary/big5.cct: Updated.
2331         * libc/iconv/ccs/binary/cns11643_plane1.cct: Ditto.
2332         * libc/iconv/ccs/binary/cns11643_plane14.cct: Ditto.
2333         * libc/iconv/ccs/binary/cns11643_plane2.cct: Ditto.
2334         * libc/iconv/ccs/binary/cp775.cct: Updated.: Ditto.
2335         * libc/iconv/ccs/binary/cp850.cct: Ditto.: Ditto.
2336         * libc/iconv/ccs/binary/cp852.cct: Ditto.: Ditto.
2337         * libc/iconv/ccs/binary/cp855.cct: Ditto.: Ditto.
2338         * libc/iconv/ccs/binary/cp866.cct: Ditto.: Ditto.
2339         * libc/iconv/ccs/binary/iso_8859_1.cct: Ditto.
2340         * libc/iconv/ccs/binary/iso_8859_15.cct: Ditto.
2341         * libc/iconv/ccs/binary/iso_8859_4.cct: Ditto.
2342         * libc/iconv/ccs/binary/iso_8859_5.cct: Ditto.
2343         * libc/iconv/ccs/binary/iso_8859_2.cct: Ditto.
2344         * libc/iconv/ccs/binary/jis_x0212_1990.cct: Ditto.
2345         * libc/iconv/ccs/binary/koi8_r.cct: Ditto.
2346         * libc/iconv/ccs/binary/koi8_u.cct: Ditto.
2347         * libc/iconv/ccs/binary/ksx1001.cct: Ditto.
2348         * libc/iconv/ccs/binary/iso_8859_10.cct: New file.
2349         * libc/iconv/ccs/binary/iso_8859_11.cct: Ditto.
2350         * libc/iconv/ccs/binary/iso_8859_13.cct: Ditto.
2351         * libc/iconv/ccs/binary/iso_8859_14.cct: Ditto.
2352         * libc/iconv/ccs/binary/iso_8859_3.cct: Ditto.
2353         * libc/iconv/ccs/binary/iso_8859_6.cct: Ditto.
2354         * libc/iconv/ccs/binary/iso_8859_7.cct: Ditto.
2355         * libc/iconv/ccs/binary/iso_8859_8.cct: Ditto.
2356         * libc/iconv/ccs/binary/iso_8859_9.cct: Ditto.
2357         * libc/iconv/ccs/binary/iso_ir_111.cct: Ditto.
2358         * libc/iconv/ccs/binary/jis_x0201_1976.cct: Ditto.
2359         * libc/iconv/ccs/binary/jis_x0208_1990.cct: Ditto.
2360         * libc/iconv/ccs/binary/koi8_ru.cct: Ditto.
2361         * libc/iconv/ccs/binary/koi8_uni.cct: Ditto.
2362         * libc/iconv/ccs/binary/win_1250.cct: Ditto.
2363         * libc/iconv/ccs/binary/win_1251.cct: Ditto.
2364         * libc/iconv/ccs/binary/win_1252.cct: Ditto.
2365         * libc/iconv/ccs/binary/win_1253.cct: Ditto.
2366         * libc/iconv/ccs/binary/win_1254.cct: Ditto.
2367         * libc/iconv/ccs/binary/win_1255.cct: Ditto.
2368         * libc/iconv/ccs/binary/win_1256.cct: Ditto.
2369         * libc/iconv/ccs/binary/win_1257.cct: Ditto.
2370         * libc/iconv/ccs/binary/win_1258.cct: Ditto.
2371         * libc/iconv/ces/Makefile.am: Updated.
2372         * libc/iconv/ces/Makefile.in: Regenerated.
2373         * libc/iconv/ces/ucs-2-internal.c: Updated.
2374         * libc/iconv/ces/ucs-4-internal.c: Ditto.
2375         * libc/iconv/ces/utf-16.c: Ditto.
2376         * libc/iconv/ces/utf-8.c: Ditto.
2377         * libc/iconv/ces/cesbi.c: New file.
2378         * libc/iconv/ces/cesbi.h: Ditto.
2379         * libc/iconv/ces/cesdeps.h: Ditto.
2380         * libc/iconv/ces/euc.c: Ditto.
2381         * libc/iconv/ces/mkdeps.pl: Ditto.
2382         * libc/iconv/ces/table-pcs.c: Ditto.
2383         * libc/iconv/ces/table.c: Ditto.
2384         * libc/iconv/ces/ucs-2.c: Ditto.
2385         * libc/iconv/ces/ucs-4.c: Ditto.
2386         * libc/iconv/ces/us-ascii.c: Ditto.
2387         * libc/iconv/ces/euc-jp.c: Removed.
2388         * libc/iconv/ces/euc-kr.c: Ditto.
2389         * libc/iconv/ces/euc-tw.c: Ditto.
2390         * libc/iconv/ces/gb2312.c: Ditto.
2391         * libc/iconv/ces/iso-10646-ucs-2.: Ditto.c
2392         * libc/iconv/ces/iso-10646-ucs-4.c: Ditto.
2393         * libc/iconv/lib/Makefile.am: Updated.
2394         * libc/iconv/lib/Makefile.in: Regenerated.
2395         * libc/iconv/lib/endian.h: Updated.
2396         * libc/iconv/lib/iconv.c: Ditto.
2397         * libc/iconv/lib/local.h: Ditto.
2398         * libc/iconv/lib/aliases.c: Removed.
2399         * libc/iconv/lib/bialiasesi.c: Ditto.
2400         * libc/iconv/lib/biccs.c: Ditto.
2401         * libc/iconv/lib/bices.c: Ditto.
2402         * libc/iconv/lib/ccs.c: Ditto.
2403         * libc/iconv/lib/ces.c: Ditto.
2404         * libc/iconv/lib/ces_euc.c: Ditto.
2405         * libc/iconv/lib/ces_iso2022.c: Ditto.
2406         * libc/iconv/lib/ces_table.c: Ditto.
2407         * libc/iconv/lib/converter.c: Ditto.
2408         * libc/iconv/lib/deps.h: Ditto.
2409         * libc/iconv/lib/loaddata.c: Ditto.
2410         * libc/iconv/lib/aliasesbi.c: New file.
2411         * libc/iconv/lib/aliasesi.c: Ditto.
2412         * libc/iconv/lib/conv.h: Ditto.
2413         * libc/iconv/lib/encnames.h: Ditto.
2414         * libc/iconv/lib/encoding.deps: Ditto.
2415         * libc/iconv/lib/iconvnls.c: Ditto.
2416         * libc/iconv/lib/iconvnls.h: Ditto.
2417         * libc/iconv/lib/nullconv.c: Ditto.
2418         * libc/iconv/lib/ucsconv.c: Ditto.
2419         * libc/iconv/lib/ucsconv.h: Ditto.
2420         * libc/include/iconv.h: Update copyright.
2421         * libc/*/aclocal.m4: Regenerated.
2422         * libc/*/configure: Ditto.
2423         * libm/*/aclocal.m4: Ditto.
2424         * libm/*/configure: Ditto.
2425
2426 2004-06-22  Alexandre Oliva  <aoliva@redhat.com>
2427
2428         * libc/include/machine/setjmp.h [__H8300__] (_JBTYPE): Define,
2429         instead of typedefing jmp_buf.
2430
2431         2003-07-02  Richard Sandiford  <rsandifo@redhat.com>
2432         * libc/machine/h8300/Makefile.am (lib_a_SOURCES): Add h8sx_strcpy.S.
2433         * libc/machine/h8300/defines.h (LEN): New macro.
2434         * libc/machine/h8300/memcpy.S: Add h8sx version.
2435         * libc/machine/h8300/memset.S: Likewise.
2436         * libc/machine/h8300/strcmp.S: Likewise.
2437         * libc/machine/h8300/setjmp.S: Use h8sx move instructions.
2438         * libc/machine/h8300/h8sx_strcpy.S: New file.
2439         2003-06-30  Richard Sandiford  <rsandifo@redhat.com>
2440         * libc/include/machine/ieeefp.h: Extend __H8300S__ handling to
2441         __H8300SX__.
2442         * libc/include/machine/setjmp.h: Likewise.
2443         * libc/include/sys/config.h: Likewise.
2444         * libc/machine/h8300/defines.h: Likewise.
2445         * libc/machine/h8300/setjmp.S: Likewise.
2446         * libc/machine/h8300/strcmp.S: Likewise.
2447         * libc/sys/h8300hms/close.S: Likewise.
2448         * libc/sys/h8300hms/fstat.S: Likewise.
2449         * libc/sys/h8300hms/lseek.S: Likewise.
2450         * libc/sys/h8300hms/read.S: Likewise.
2451         * libc/sys/h8300hms/write.S: Likewise.
2452         * libc/sys/h8300hms/crt0.S: Likewise.
2453         * libc/machine/h8300/setarch.h: Use .h8300sx or .h8300sxn if
2454         __H8300SX__ is defined.
2455         * libc/sys/h8300hms/setarch.h: Likewise.
2456
2457 2004-06-17  Jeff Johnston  <jjohnstn@redhat.com>
2458
2459         * libc/include/sys/reent.h (_GLOBAL_REENT): Back
2460         out change which set _GLOBAL_REENT to _global_impure_ptr until
2461         we understand why Cygwin breaks because of it.
2462
2463 2004-06-14  Jeff Johnston  <jjohnstn@redhat.com>
2464
2465         * libc/sys/linux/machine/i386/syscall.h: For now, set up
2466         __syscall_return macro for systems with vsyscall.
2467
2468 2004-06-11  Antony King  <antony.king@st.com>
2469
2470         * libc/include/sys/_types.h: Include <sys/lock.h> and change
2471         _flock_t to be of type _LOCK_RECURSIVE_T.
2472         * libc/include/sys/reent.h: (_REENT_INIT): Reformat.
2473         (_REENT_INIT_PTR): Ditto.  Use memset where appropriate.
2474         (_global_impure_ptr): New declaration.
2475         (_GLOBAL_REENT): Change to be _global_impure_ptr.
2476         * libc/include/sys/stdio.h: Include <sys/lock.h> and
2477         <sys/reent.h>.
2478         (_flockfile)[!_SINGLE_THREAD]: Add code for lock call.
2479         (_funlockfile)[!SINGLE_THREAD]: Ditto.
2480         * libc/reent/impure.c: Set _global_impure_ptr to _impure_ptr.
2481         * libc/stdio/fclose.c: Remove casting of fp lock to
2482         _LOCK_RECURSIVE_T.
2483         * libc/stdio/findfp.c: Ditto.
2484         * libc/stdio/fopen.c: Ditto.
2485         * libc/stdio/freopen.c: Ditto.
2486         * libc/stdio/vfprintf.c: Ditto.
2487         * libc/stdio64/fopen64.c: Ditto.
2488         * libc/stdlib/envlock.c: Add default stubs that use generic
2489         locking code.
2490         * libc/stdlib/mlock.c: Ditto.
2491
2492         Jeff Johnston  <jjohnstn@redhat.com>
2493         * libc/sys/linux/sys/_types.h (__flock_mutex_t): New subtype.
2494         (_flock_t): Change to be a struct containing a single member
2495         named mutex which is of type __flock_mutex_t.
2496
2497 2004-06-09  Jeff Johnston  <jjohnstn@redhat.com>
2498
2499         * libc/sys/linux/Makefile.am: Change siglist.inc to be generated
2500         from /usr/include/asm/signal.h instead of kernel sources.  Also
2501         default max to 32 if not found in header file.
2502         * libc/sys/linux/Makefile.in: Regenerated.
2503         * libc/sys/linux/machine/i386/socketcall.h: Fix for Fedora Core 2
2504         systems where __syscall_return is not defined.
2505         * libc/sys/linux/machine/i386/syscall.h: Change for Fedora Core 2
2506         systems to use syscall() function instead of assembler interrupt.
2507
2508 2004-06-09  Toralf Lund  <toralf@procaptura.com>
2509
2510         * libc/sys/arm/setjmp.S, libc/sys/arm/access.c: Move
2511         files from libc/sys/arm to libc/machine/arm.
2512         * libc/machine/arm/Makefile.am, libc/machine/arm/Makefile.in: Add
2513         library build support for files moved from libc/sys/arm.
2514         * libc/sys/arm/Makefile.am, libc/sys/arm/Makefile.in:  Remove
2515         references to access and setjmp.
2516         * configure.host: Add checks for newlib_may_supply_syscalls to
2517         determine whether or not to use sys/arm directory and use
2518         special compiler flags: ARM_RDI_MONITOR and ARM_RDP_MONITOR.
2519        
2520 2004-06-02  Jeff Johnston  <jjohnstn@redhat.com>
2521
2522         * libc/stdio/vfscanf.c (__svfscanf_r): For CT_INT conversions,
2523         reset digit flags appropriately after we have discovered "0x".
2524         * libc/machine/powerpc/vfscanf.c (__svfscanf_r): Ditto.
2525
2526 2004-05-27  Jeff Johnston  <jjohnstn@redhat.com>
2527
2528         * libc/stdio/vfprintf.c (_VFPRINTF): Move file locking
2529         from here ...
2530         (_VFPRINTF_R): ... to here so all I/O printf routines
2531         are covered.
2532
2533 2004-05-26  Jeff Johnston  <jjohnstn@redhat.com>
2534
2535         * libc/search/hash_buf.c: Protect MAX and MIN macros from
2536         redefinition.
2537         * libc/search/hash.c: Ditto.
2538
2539 2004-05-25  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
2540
2541         * newlib.hin: (_WANT_IO_POS_ARGS): New define.
2542         (_WANT_IO_LONG_LONG): Ditto.
2543         (_WANT_IO_LONG_DOUBLE): Ditto.
2544         * configure.in: Add new configuration options
2545         --enable-newlib-io-long-long and --enable-newlib-io-long-double
2546         which tie to new defines in newlib.hin.
2547         * configure: Regenerated.
2548         * configure.host: Add checks for new configuration options.  Also
2549         fix up check for --enable-newlib-io-pos-args so configuration
2550         option will override any default for a given platform.
2551         Remove defining compiler flags for the _WANT_IO* options.
2552         * libc/stdio/vfprintf.c: Change to use new newlib.hin defines
2553         instead of looking for old compiler flags.
2554         * libc/stdio/vfscanf.c: Ditto.
2555         * libc/stdio/vfieeefp.h: Ditto.
2556         * libc/machine/powerpc/vfprintf.c: Ditto.
2557         * libc/machine/powerpc/vfscanf.c: Ditto.
2558
2559 2004-05-25  Jeff Johnston  <jjohnstn@redhat.com>
2560
2561         * testsuite/include/check.h: Add include of <stdio.h>.
2562
2563 2004-05-17  Corinna Vinschen  <corinna@vinschen.de>
2564
2565         * libc/include/grp.h: Declare getgrnam_r and getgrgid_r also on Cygwin.
2566
2567 2004-05-11  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
2568
2569         * libc/stdio/vfprintf.c (VFPRINTF_R): Use _free_r instead
2570         of free.
2571
2572 2004-05-07  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
2573
2574         * libc/stdio/iprintf.c (_iprintf_r): Fix old-style argument
2575         list for reentrant pointer.  Call _vfiprintf_r.
2576         * libc/stdio/siprintf.c (_siprintf_r): New function.
2577         * libc/stdio/vfprintf.c (__sbprintf): Add reetrant struct
2578         pointer argument.  Change all callers.  Call _VFPRINTF_R.
2579         * libc/include/stdio.h (_siprintf_r, _vfiprintf_r): New
2580         prototypes.
2581
2582 2004-05-07  Jeff Johnston  <jjohnstn@redhat.com>
2583
2584         * libc/include/sys/param.h: Remove endian info and include
2585         <machine/endian.h> instead.
2586         * libc/include/machine/endian.h: New file.
2587         * libc/include/machine/param.h: Ditto.
2588         * libc/machine/arm/machine/endian.h: Ditto.
2589         * libc/machine/arm/machine/param.h: Ditto.
2590         * libc/sys/arm/sys/param.h: Removed.
2591         * libc/sys/sysvi386/sys/param.h: Ditto.
2592         * libc/sys/rtems/sys/param.h: Modified to include <machine/endian.h>.
2593
2594 2004-05-03  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
2595
2596         * libc/stdio/vfprintf.c (_VFPRINTF_R): Set error flag when
2597         multibyte functions return failure for %C, %S, %lc, and %ls
2598         format specifiers.
2599
2600 2004-05-03  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
2601
2602         * testsuite/include/check.h (CHECK): Add flush of stdout.
2603
2604 2004-05-03  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
2605
2606         * libc/include/stdio.h (_ungetc_r): New prototype.
2607         * libc/stdio/ungetc.c (_ungetc_r): New reentrant function.
2608         (__submore): Add reentrant struct pointer argument.
2609         (ungetc): Change to call _ungetc_r.
2610
2611 2004-04-28  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
2612
2613         * libc/stdio/local.h (_fwalk_reent): Specify prototype of
2614         function pointer argument.
2615         * libc/stdio/fwalk.c (_fwalk, _fwalk_reent): Change prototypes
2616         to specify function pointer arguments.
2617         (__fwalk, __fwalk_reent): Ditto.
2618
2619 2004-04-26  Aldy Hernandez  <aldyh@redhat.com>
2620
2621         * libc/machine/powerpc/vfscanf.c (__svfscanf_r): Fix typo in
2622         CT_INT case.
2623
2624 2004-04-23  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
2625
2626         * configure.in: Define _MB_CAPABLE if mb supported.
2627         * configure: Regenerated.
2628         * configure.host: Remove manual setting of MB_CAPABLE compiler
2629         flag.
2630         * newlib.hin: Add _MB_CAPABLE flag.
2631         * libc/ctype/iswalpha.c, libc/ctype/iswblank.c: Include <newlib.h>
2632         and check for _MB_CAPABLE flag instead of MB_CAPABLE.
2633         * libc/ctype/iswcntrl.c, libc/ctype/iswprint.c: Ditto.
2634         * libc/ctype/iswpunct.c, libc/ctype/iswspace.c: Ditto.
2635         * libc/ctype/jp2uc.c: Ditto.
2636         * libc/ctype/towlower.c, libc/ctype/towupper.c: Ditto.
2637         * libc/locale/locale.c: Ditto
2638         * libc/machine/powerpc/vfscanf.c: Ditto
2639         * libc/stdio/vfprintf.c, libc/stdio/vfscanf.c: Ditto
2640         * libc/stdlib/mblen.c: Ditto
2641         * libc/stdlib/mblen_r.c, libc/stdlib/mbrlen.c: Ditto
2642         * libc/stdlib/mbrtowc.c, libc/stdlib/mbsrtowcs.c: Ditto
2643         * libc/stdlib/mbstowcs.c, libc/stdlib/mbtowc.c: Ditto
2644         * libc/stdlib/mbtowc_r.c, libc/stdlib/wcrtomb.c: Ditto
2645         * libc/stdlib/wcsrtombs.c, libc/stdlib/wcstombs.c: Ditto
2646         * libc/stdlib/wctomb.c, libc/sys/linux/intl/dcigettext.c: Ditto
2647         * libc/sys/linux/intl/explodename.c: Ditto
2648         * libc/sys/linux/intl/finddomain.c: Ditto
2649         * libc/sys/linux/intl/l10nflist.c: Ditto
2650         * libc/sys/linux/intl/loadmsgcat.c: Ditto
2651         * libc/sys/linux/intl/localealias.c: Ditto
2652
2653 2004-04-23  Jeff Johnston  <jjohnstn@redhat.com>
2654
2655         * libc/machine/powerpc/vfscanf.c (NNZDIGITS): New define.
2656         (__svfscanf_r): In integer conversions, leave out leading zeroes
2657         which are not part of a base prefix.
2658         Keep track of width truncation to fit into buf, not counting left-out
2659         zeroes against width till the truncation has been compensated for.
2660         This is based on Joern's patch of 04/21 for libc/stdio/vfscanf.c.
2661
2662 2004-04-23  Jeff Johnston  <jjohnstn@redhat.com>
2663
2664         * libc/include/stdio.h: (_ftell_r, _fseek_r): New prototypes.
2665
2666 2004-04-23  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
2667
2668         * libc/stdio/asprintf.c libc/stdio/clearerr.c,
2669         libc/stdio/fclose.c libc/stdio/fcloseall.c libc/stdio/fdopen.c,
2670         libc/stdio/feof.c libc/stdio/ferror.c libc/stdio/fflush.c,
2671         libc/stdio/fgetc.c libc/stdio/fgetpos.c libc/stdio/fgets.c,
2672         libc/stdio/fileno.c libc/stdio/findfp.c libc/stdio/fiprintf.c,
2673         libc/stdio/flags.c libc/stdio/fopen.c libc/stdio/fprintf.c,
2674         libc/stdio/fputc.c libc/stdio/fputs.c libc/stdio/fread.c,
2675         libc/stdio/freopen.c libc/stdio/fscanf.c libc/stdio/fseek.c,
2676         libc/stdio/fseeko.c libc/stdio/fsetpos.c libc/stdio/ftell.c,
2677         libc/stdio/ftello.c libc/stdio/fvwrite.c libc/stdio/fwalk.c,
2678         libc/stdio/fwrite.c libc/stdio/getc.c libc/stdio/getc_u.c,
2679         libc/stdio/getchar.c libc/stdio/getchar_u.c,
2680         libc/stdio/getdelim.c libc/stdio/getline.c libc/stdio/gets.c,
2681         libc/stdio/getw.c libc/stdio/iprintf.c libc/stdio/local.h,
2682         libc/stdio/makebuf.c libc/stdio/mktemp.c libc/stdio/perror.c,
2683         libc/stdio/printf.c libc/stdio/putc.c libc/stdio/putc_u.c,
2684         libc/stdio/putchar.c libc/stdio/putchar_u.c libc/stdio/puts.c,
2685         libc/stdio/putw.c libc/stdio/refill.c libc/stdio/remove.c,
2686         libc/stdio/rename.c libc/stdio/rewind.c libc/stdio/rget.c,
2687         libc/stdio/scanf.c libc/stdio/setbuf.c libc/stdio/setbuffer.c,
2688         libc/stdio/setlinebuf.c libc/stdio/setvbuf.c,
2689         libc/stdio/siprintf.c libc/stdio/snprintf.c,
2690         libc/stdio/sprintf.c libc/stdio/sscanf.c libc/stdio/stdio.c,
2691         libc/stdio/tmpfile.c libc/stdio/tmpnam.c libc/stdio/ungetc.c,
2692         libc/stdio/vasprintf.c libc/stdio/vfieeefp.h,
2693         libc/stdio/vfprintf.c libc/stdio/vfscanf.c,
2694         libc/stdio/vprintf.c libc/stdio/vscanf.c,
2695         libc/stdio/vsnprintf.c libc/stdio/vsprintf.c,
2696         libc/stdio/vsscanf.c libc/stdio/wbuf.c,
2697         libc/stdio/wsetup.c: Perform minor formatting changes.  Move
2698         copyright notices to top of file, ensure that <_ansi.h> is
2699         included, be consistent with open parentheses, use _DEFUN macro,
2700         include "local.h" where needed, and remove various compiler
2701         warnings.
2702
2703 2004-04-21  J"orn Rennecke <joern.rennecke@superh.com>
2704
2705         * libc/stdio/vfscanf.c (NNZDIGITS): New define.
2706         (__svfscanf_r): In integer conversions, leave out leading zeroes
2707         which are not part of a base prefix.
2708         Keep track of width truncation to fit into buf, not counting left-out
2709         zeroes against width till the truncation has been compensated for.
2710
2711 2004-04-20  Corinna Vinschen  <corinna@vinschen.de>
2712
2713         * libc/include/sys/unistd.h (ttyname_r): Add missing comma.
2714
2715 2004-04-20  Corinna Vinschen  <corinna@vinschen.de>
2716
2717         * libc/include/sys/unistd.h (ttyname_r): Add declaration for Cygwin.
2718
2719 2004-04-10  Corinna Vinschen  <corinna@vinschen.de>
2720
2721         * libc/include/sys/unistd.h (sync): Define void on Cygwin according
2722         to SUSv3.
2723
2724 2004-04-08  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
2725
2726         * libc/stdio/fclose.c (_fclose_r): New function.
2727         * libc/stdio/freopen.c (_freopen_r): Call _fclose_r.
2728         * libc/stdio/fcloseall.c (_fcloseall_r): Call _fwalk_reent.
2729         * libc/stdio64/freopen64.c (_freopen64_r): Use _fclose_r.
2730         * libc/include/stdio.h (_fclose_r): New prototype.
2731         * libc/stdio/fopen.c: Fix typo in comment.
2732
2733 2004-04-08  Jeff Johnston  <jjohnstn@redhat.com>
2734
2735         * libc/stdio/fwalk.c (_fwalk_reent): New version of _fwalk
2736         to handle _r reentrant functions.
2737
2738 2004-04-08  Eric Christopher  <echristo@redhat.com>
2739
2740         * libc/include/machine/setjmp.h: Fix endif locations.
2741
2742 2004-04-01  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
2743
2744         * libc/time/strptime.c: Add standard includes to avoid
2745         warning messages at compilation time.
2746
2747 2004-04-01  Jeff Johnston  <jjohnstn@redhat.com>
2748
2749         * libc/stdio/vfscanf.c (__svfscanf_r): Add locking/unlocking
2750         of file.
2751
2752 2004-03-30  Jeff Johnston  <jjohnstn@redhat.com>
2753
2754         * libc/machine/h8300/Makefile.am: Reformat slightly.
2755         * libc/machine/h8300/Makefile.in: Regenerate.
2756
2757 2004-03-30  Thomas Pfaff  <tpfaff@gmx.net>
2758
2759         * libc/stdio/findfp.c (__fp_lock_all): Add call to
2760         __sfp_lock_acquire.
2761         (__fp_unlock_all): Add call to __sfp_lock_release. 
2762
2763 2004-03-25  Thomas Pfaff  <tpfaff@gmx.net>
2764
2765         * libc/stdio/fclose.c (fclose): Protect file pointer list when
2766         releasing a file.
2767          * libc/stdio/fcloseall.c (_fcloseall_r): Close all files via
2768         fwalk.
2769         * libc/stdio/fdopen.c (_fdopen_r): Add calls to
2770         _flockfile/_funlockfile.
2771         * libc/stdio/findfp.c: Move __sfp_lock. Change __sfp_lock type
2772         to recursive.
2773         Change __lock_acquire/__lock_release calls for __sfp_lock to
2774         __sfp_lock_acquire/__sfp_lock_release throughout.
2775         (std): Make sure that file lock is only initialized once.
2776         (__sfp): Move _file initialization. Initialize file lock.
2777         (__sfp_lock_acquire): New function.
2778         (__sfp_lock_release): Ditto.
2779         (__fp_lock_all): Remove __sfp_lock_acquire call.
2780         (__fp_unlock_all): Remove __sfp_lock_release call.
2781         * libc/stdio/fopen.c (_fopen_r): Protect file pointer list.
2782         Add calls to _flockfile/_funlockfile. Remove
2783         __lock_init_recursive call.
2784         * libc/stdio/freopen.c (_freopen_r): Protect file pointer list.
2785         * libc/stdio/fwalk.c (__fwalk): New static function.
2786         (_fwalk): Protect file pointer list. Use __fwalk to walk through
2787         file pointers.
2788         * libc/stdio/local.h: Add defines for
2789         __sfp_lock_acquire/__sfp_lock_release when
2790         single threaded. Add function prototypes otherwise.
2791         * libc/stdio64/fdopen64.c (_fdopen64_r): Add calls to
2792         _flockfile/_funlockfile.
2793         * libc/stdio/fopen64.c (_fopen64_r): Protect file pointer list.
2794         Add calls to _flockfile/_funlockfile. Remove
2795          __lock_init_recursive call.
2796         * libc/stdio/freopen64.c (_freopen64_r): Protect file pointer
2797         list. 
2798
2799 2004-03-25  Jeff Johnston  <jjohnstn@redhat.com>
2800
2801         * libc/sys/linux/sys/lock.h: Turn on __USE_GNU flag if not already
2802         defined.  Change __LOCK_RECURSIVE_INIT to be __LOCK_INIT_RECURSIVE.
2803         * libc/sys/linux/dl/dl-support.c: Change __LOCK_RECURSIVE_INIT
2804         to be __LOCK_INIT_RECURSIVE.
2805
2806 2004-03-11  Kazu Hirata  <kazu@cs.umass.edu>
2807
2808         * libc/sys/h8300hms/Makefile.am (lib_a_SOURCES): Replace
2809         _exit.c with _exit.S.
2810         * libc/sys/h8300hms/Makefile.in: Regenerate.
2811         * libc/sys/h8300hms/_exit.c: Remove.
2812         * libc/sys/h8300hms/_exit.S: New.
2813
2814 2004-03-09  Thomas Pfaff  <tpfaff@gmx.net>
2815
2816         * libc/stdio/findfp.c (__sfp): Rename lock to __sfp_lock.
2817         Change __sfp_lock to static global.
2818         (__fp_lock): New static function.
2819         (__fp_unlock): Ditto.
2820         (__fp_lock_all): New function.
2821         (__fp_unlock_all): Ditto. 
2822
2823 2004-02-10  Christopher Faylor  <cgf@redhat.com>
2824
2825         * libm/mathfp/er_gamma.c (gamma): Add new non-reentrant function.
2826         * libm/mathfp/er_lgamma.c (lgamma): Ditto.
2827         * libm/mathfp/erf_gamma.c (gammaf): Ditto.
2828         * libm/mathfp/erf_lgamma.c (lgammaf): Ditto.
2829
2830 2004-02-09  Christopher Faylor  <cgf@redhat.com>
2831
2832         * libc/include/time.h (TIMER_RELTIME): New define.
2833
2834 2004-02-09  Jeff Johnston  <jjohnstn@redhat.com>
2835
2836         * libc/stdlib/Makefile.am: Add mallstatsr to LIBADD_OBJS.
2837         * libc/stdlib/Makefile.in: Regenerated.
2838
2839 2004-02-08  Christopher Faylor  <cgf@redhat.com>
2840
2841         * libc/include/sys/features.h: Add _POSIX_TIMERS define for __CYGWIN__.
2842         * libc/include/sys/reent.h (__getreent): Protect against possibly being
2843         defined.
2844         * libc/include/sys/unistd.h (fdatasync): Don't define for __CYGWIN__.
2845
2846 2004-02-05  Paul Brook  <paul@codesourcery.com>
2847
2848         * libc/include/machine/ieeefp.h[__arm__][__VFP_FP__]: Set 
2849         IEEE_{BIG,LITTLE} based on __ARMEL__ flag.
2850
2851 2004-02-02  Jeff Johnston  <jjohnstn@redhat.com>
2852
2853         * NEWS: Update with 1.12.0 info.
2854         * README: Ditto.
2855         * acinclude.m4: Change version number to 1.12.0.
2856         * aclocal.m4: Regenerated.
2857         * configure: Ditto.
2858         * doc/aclocal.m4: Ditto.
2859         * doc/configure: Ditto.
2860         * libc/*/aclocal.m4: Ditto.
2861         * libc/*/configure: Ditto.
2862         * libc/libc.texinfo: Ditto.
2863         * libm/*/aclocal.m4: Ditto.
2864         * libm/*/configure: Ditto.
2865         * libm/libm.texinfo: Ditto.
2866         * libc/sys/linux/shared.ld: Add VERS_1.12.
2867
2868 2004-02-02  Joel Sherrill  <joel@oarcorp.com>
2869
2870         * configure.host: Add support for tic4x.
2871         * libc/include/machine/ieeefp.h: Ditto.
2872         * libc/include/machine/setjmp.h: Ditto.
2873         * libc/machine/tic4x/Makefile.am: New file.
2874         * libc/machine/tic4x/configure.in: Ditto.
2875         * libc/machine/tic4x/setjmp.S: Ditto.
2876         * libc/machine/tic4x/aclocal.m4: Generated.
2877         * libc/machine/tic4x/configure: Ditto.
2878         * libc/machine/tic4x/Makefile.in: Ditto.
2879
2880 2004-01-30  Jeff Johnston  <jjohnstn@redhat.com>
2881
2882         * libc/stdio/fwalk.c (_fwalk.c): Don't traverse the
2883         file chain on the passed in reentrancy struct if it
2884         is _GLOBAL_REENT.
2885
2886 2004-01-30  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
2887             Jeff Johnston  <jjohnstn@redhat.com>
2888
2889         * libc/iconv/iconv.tex: Updated with more information.
2890
2891 2004-01-30  Thomas Pfaff  <tpfaff@gmx.net>
2892             Jeff Johnston  <jjohnstn@redhat.com>
2893
2894         * libc/stdio/fwalk.c (_fwalk): Traverse the given reentrancy
2895         struct for std streams and traverse the global reeentrancy
2896         struct for all other streams.
2897
2898 2004-01-27  Jeff Johnston  <jjohnstn@redhat.com>
2899
2900         * libc/stdlib/atexit.c: Protect global atexit list with a
2901         lock when newlib is multithreaded.
2902
2903 2004-01-27  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
2904
2905         * configure.in: Add support to generate iconv converter flags
2906         for newlib.h
2907         * newlib.hin: Add iconv converter flags.
2908         * configure: Regenerated.
2909         * libc/Makefile.in: Ditto.
2910         * libc/configure.in: Moved iconv converter parsing logic to
2911         top level newlib configure.in.
2912         * libc/configure: Regenerated.
2913         * libc/iconv/Makefile.in: Ditto.
2914         * libc/iconv/README.TODO
2915         * libc/iconv/charset.aliases: Remove wrong BE aliases for
2916         UCS2/UCS4/UTF8.
2917         * libc/iconv/ccs/Makefile.am: Remove C flag setting now that
2918         newlib.h can be used.
2919         * libc/iconv/ces/Makefile.am: Ditto.
2920         * libc/iconv/lib/Makefile.am: Ditto.
2921         * libc/iconv/ccs/Makefile.in: Regenerated.
2922         * libc/iconv/ces/Makefile.in: Ditto.
2923         * libc/iconv/lib/Makefile.in: Ditto.
2924         * libc/iconv/ccs/README.CCS.SOURCES: Updated.
2925         * libc/iconv/ccs/iconv_mktbl: Don't write junk strings to binaries.
2926         * libc/iconv/ccs/big5.c: Switch to use new underscored flags
2927         defined in newlib.h.
2928         * libc/iconv/ccs/cns11643_plane1.c: Ditto.
2929         * libc/iconv/ccs/cns11643_plane14.c: Ditto.
2930         * libc/iconv/ccs/cns11643_plane2.c: Ditto.
2931         * libc/iconv/ccs/cp775.c: Ditto.
2932         * libc/iconv/ccs/cp850.c: Ditto.
2933         * libc/iconv/ccs/cp852.c: Ditto.
2934         * libc/iconv/ccs/cp855.c: Ditto.
2935         * libc/iconv/ccs/cp866.c: Ditto.
2936         * libc/iconv/ccs/gb_2312_80.c: Ditto.
2937         * libc/iconv/ccs/iso_8859_1.c: Ditto.
2938         * libc/iconv/ccs/iso_8859_15.c: Ditto.
2939         * libc/iconv/ccs/iso_8859_2.c: Ditto.
2940         * libc/iconv/ccs/iso_8859_4.c: Ditto.
2941         * libc/iconv/ccs/iso_8859_5.c: Ditto.
2942         * libc/iconv/ccs/jis_x0201.c: Ditto.
2943         * libc/iconv/ccs/jis_x0208_1983.c: Ditto.
2944         * libc/iconv/ccs/jis_x0212_1990.c: Ditto.
2945         * libc/iconv/ccs/koi8_r.c: Ditto.
2946         * libc/iconv/ccs/koi8_u.c: Ditto.
2947         * libc/iconv/ccs/ksx1001.c: Ditto.
2948         * libc/iconv/ccs/shift_jis.c: Ditto.
2949         * libc/iconv/ccs/us_ascii.c: Ditto.
2950         * libc/iconv/ccs/binary/big5.cct: Newly generated.
2951         * libc/iconv/ccs/binary/cns11643_plane1.cct: Ditto.
2952         * libc/iconv/ccs/binary/cns11643_plane14.cct: Ditto.
2953         * libc/iconv/ccs/binary/cns11643_plane2.cct: Ditto.
2954         * libc/iconv/ccs/binary/cp775.cct: Ditto.
2955         * libc/iconv/ccs/binary/cp850.cct: Ditto.
2956         * libc/iconv/ccs/binary/cp852.cct: Ditto.
2957         * libc/iconv/ccs/binary/cp855.cct: Ditto.
2958         * libc/iconv/ccs/binary/cp866.cct: Ditto.
2959         * libc/iconv/ccs/binary/gb_2312_80.cct: Ditto.
2960         * libc/iconv/ccs/binary/iso_8859_1.cct: Ditto.
2961         * libc/iconv/ccs/binary/iso_8859_15.cct: Ditto.
2962         * libc/iconv/ccs/binary/iso_8859_2.cct: Ditto.
2963         * libc/iconv/ccs/binary/iso_8859_4.cct: Ditto.
2964         * libc/iconv/ccs/binary/iso_8859_5.cct: Ditto.
2965         * libc/iconv/ccs/binary/jis_x0201.cct: Ditto.
2966         * libc/iconv/ccs/binary/jis_x0208_1983.cct: Ditto.
2967         * libc/iconv/ccs/binary/jis_x0212_1990.cct: Ditto.
2968         * libc/iconv/ccs/binary/koi8_r.cct: Ditto.
2969         * libc/iconv/ccs/binary/koi8_u.cct: Ditto.
2970         * libc/iconv/ccs/binary/ksx1001.cct: Ditto.
2971         * libc/iconv/ccs/binary/shift_jis.cct: Ditto.
2972         * libc/iconv/ccs/binary/us_ascii.cct: Ditto.
2973         * libc/iconv/lib/bialiasesi.c: Sync with charset.aliases.
2974         * libc/iconv/ces/euc-jp.c: Use newlib.h macros.
2975         * libc/iconv/ces/euc-kr.c: Ditto.
2976         * libc/iconv/ces/euc-tw.c: Ditto.
2977         * libc/iconv/ces/gb2312.c: Ditto.
2978         * libc/iconv/ces/iso-10646-ucs-2.c: Ditto.
2979         * libc/iconv/ces/iso-10646-ucs-4.c: Ditto.
2980         * libc/iconv/ces/ucs-2-internal.c: Ditto.
2981         * libc/iconv/ces/ucs-4-internal.c: Ditto.
2982         * libc/iconv/ces/utf-16.c: Ditto.
2983         * libc/iconv/ces/utf-8.c: Ditto.
2984         * libc/iconv/lib/aliases.c: Ditto.
2985         * libc/iconv/lib/biccs.c: Ditto.
2986         * libc/iconv/lib/bices.c: Ditto.
2987         * libc/iconv/lib/ccs.c: Ditto.
2988         * libc/iconv/lib/ces.c: Ditto.
2989         * libc/iconv/lib/ces_euc.c: Ditto.
2990         * libc/iconv/lib/ces_iso2022.c: Ditto.
2991         * libc/iconv/lib/ces_table.c: Ditto.
2992         * libc/iconv/lib/converter.c: Ditto.
2993         * libc/iconv/lib/deps.h: Ditto.
2994         * libc/iconv/lib/endian.h: Ditto.
2995         * libc/iconv/lib/iconv.c: Ditto.
2996         * libc/iconv/lib/loaddata.c: Ditto.
2997         * libc/iconv/lib/local.h: Include newlib.h.
2998         * libc/argz/Makefile.in: Regenerated.
2999         * libc/ctype/Makefile.in: Ditto.
3000         * libc/errno/Makefile.in: Ditto.
3001         * libc/iconv/ccs/binary/Makefile.in: Ditto.
3002         * libc/locale/Makefile.in: Ditto.
3003         * libc/misc/Makefile.in: Ditto.
3004         * libc/posix/Makefile.in: Ditto.
3005         * libc/reent/Makefile.in: Ditto.
3006         * libc/search/Makefile.in: Ditto.
3007         * libc/signal/Makefile.in: Ditto.
3008         * libc/stdio/Makefile.in: Ditto.
3009         * libc/stdio64/Makefile.in: Ditto.
3010         * libc/stdlib/Makefile.in: Ditto.
3011         * libc/string/Makefile.in: Ditto.
3012         * libc/syscalls/Makefile.in: Ditto.
3013         * libc/time/Makefile.in: Ditto.
3014         * libc/unix/Makefile.in: Ditto.
3015         * testsuite/newlib.iconv/iconv.exp: New file.
3016         * testsuite/newlib.iconv/iconvjp.c: Ditto.
3017         * testsuite/newlib.iconv/iconvnm.c: Ditto.
3018         * testsuite/newlib.iconv/iconvru.c: Ditto.
3019
3020 2004-01-23  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
3021
3022         * acinclude.m4 (--enable-newlib-iconv): New configuration option.
3023         (--enable-newlib-builtin-converters): Ditto.
3024         * configure.in: Add code to set _ICONV_ENABLED flag.
3025         Set _MB_LEN_MAX to 1 if not mb enabled.
3026         * configure: Regenerated.
3027         * aclocal.m4: Ditto.
3028         * Makefile.in: Ditto.
3029         * newlib.hin: Add _ICONV_ENABLED flag.
3030         * libc/Makefile.am: Add support for iconv.
3031         * libc/configure.in: Ditto.
3032         * libc/Makefile.in: Regenerated.
3033         * libc/aclocal.m4: Ditto.
3034         * libc/configure: Ditto.
3035         * libc/libc.texinfo: Add iconv documentation.
3036         * libc/iconv/AUTHORS, libc/iconv/COPYING, libc/iconv/Makefile.am,
3037         libc/iconv/Makefile.in, libc/iconv/README.ORIGINAL,
3038         libc/iconv/README.TODO, libc/iconv/charset.aliases,
3039         libc/iconv/iconv.tex, libc/iconv/ccs/Makefile.am,
3040         libc/iconv/ccs/Makefile.in, libc/iconv/ccs/README.CCS.SOURCES,
3041         libc/iconv/ccs/big5.c, libc/iconv/ccs/cns11643_plane1.c,
3042         libc/iconv/ccs/cns11643_plane14.c, libc/iconv/ccs/cns11643_plane2.c,
3043         libc/iconv/ccs/cp775.c, libc/iconv/ccs/cp850.c,
3044         libc/iconv/ccs/cp852.c, libc/iconv/ccs/cp855.c,
3045         libc/iconv/ccs/cp866.c, libc/iconv/ccs/gb_2312_80.c,
3046         libc/iconv/ccs/iconv_mktbl, libc/iconv/ccs/iso_8859_1.c,
3047         libc/iconv/ccs/iso_8859_15.c, libc/iconv/ccs/iso_8859_2.c,
3048         libc/iconv/ccs/iso_8859_4.c, libc/iconv/ccs/iso_8859_5.c,
3049         libc/iconv/ccs/jis_x0201.c, libc/iconv/ccs/jis_x0208_1983.c,
3050         libc/iconv/ccs/jis_x0212_1990.c, libc/iconv/ccs/koi8_r.c,
3051         libc/iconv/ccs/koi8_u.c, libc/iconv/ccs/ksx1001.c,
3052         libc/iconv/ccs/shift_jis.c, libc/iconv/ccs/us_ascii.c,
3053         libc/iconv/ccs/binary/Makefile.am, libc/iconv/ccs/binary/Makefile.in,
3054         libc/iconv/ccs/binary/big5.cct,
3055         libc/iconv/ccs/binary/cns11643_plane1.cct,
3056         libc/iconv/ccs/binary/cns11643_plane14.cct,
3057         libc/iconv/ccs/binary/cns11643_plane2.cct,
3058         libc/iconv/ccs/binary/cp775.cct, libc/iconv/ccs/binary/cp850.cct,
3059         libc/iconv/ccs/binary/cp852.cct, libc/iconv/ccs/binary/cp855.cct,
3060         libc/iconv/ccs/binary/cp866.cct, libc/iconv/ccs/binary/gb_2312_80.cct,
3061         libc/iconv/ccs/binary/iso_8859_1.cct,
3062         libc/iconv/ccs/binary/iso_8859_15.cct,
3063         libc/iconv/ccs/binary/iso_8859_2.cct,
3064         libc/iconv/ccs/binary/iso_8859_4.cct,
3065         libc/iconv/ccs/binary/iso_8859_5.cct,
3066         libc/iconv/ccs/binary/jis_x0201.cct,
3067         libc/iconv/ccs/binary/jis_x0208_1983.cct,
3068         libc/iconv/ccs/binary/jis_x0212_1990.cct,
3069         libc/iconv/ccs/binary/koi8_r.cct, libc/iconv/ccs/binary/koi8_u.cct,
3070         libc/iconv/ccs/binary/ksx1001.cct,
3071         libc/iconv/ccs/binary/shift_jis.cct,
3072         libc/iconv/ccs/binary/us_ascii.cct,
3073         libc/iconv/ces/Makefile.am, libc/iconv/ces/Makefile.in,
3074         libc/iconv/ces/euc-jp.c, libc/iconv/ces/euc-kr.c,
3075         libc/iconv/ces/euc-tw.c, libc/iconv/ces/gb2312.c,
3076         libc/iconv/ces/iso-10646-ucs-2.c, libc/iconv/ces/iso-10646-ucs-4.c,
3077         libc/iconv/ces/ucs-2-internal.c, libc/iconv/ces/ucs-4-internal.c,
3078         libc/iconv/ces/utf-16.c, libc/iconv/ces/utf-8.c,
3079         libc/iconv/lib/Makefile.am, libc/iconv/lib/Makefile.in,
3080         libc/iconv/lib/aliases.c, libc/iconv/lib/bialiasesi.c,
3081         libc/iconv/lib/biccs.c, libc/iconv/lib/bices.c,
3082         libc/iconv/lib/ccs.c, libc/iconv/lib/ces.c,
3083         libc/iconv/lib/ces_euc.c, libc/iconv/lib/ces_iso2022.c,
3084         libc/iconv/lib/ces_table.c, libc/iconv/lib/converter.c,
3085         libc/iconv/lib/deps.h, libc/iconv/lib/endian.h,
3086         libc/iconv/lib/iconv.c, libc/iconv/lib/loaddata.c,
3087         libc/iconv/lib/local.h, libc/include/iconv.h: New files.
3088         * libc/sys/linux/include/iconv.h: Ditto.
3089         * libc/include/sys/_types.h (_iconv_t): Added.
3090         * doc/aclocal.m4: Regenerated.
3091         * doc/configure: Ditto.
3092         * doc/Makefile.in: Ditto.
3093         * iconvdata/Makefile.in: Ditto.
3094         * iconvdata/aclocal.m4: Ditto.
3095         * iconvdata/configure: Ditto.
3096         * libc/*aclocal.m4: Ditto.
3097         * libc/*Makefile.in: Ditto.
3098         * libc/*configure: Ditto.
3099         * libm/*aclocal.m4: Ditto.
3100         * libm/*Makefile.in: Ditto.
3101         * libm/*configure: Ditto.
3102
3103 2004-01-22  Thomas Pfaff  <tpfaff@gmx.net>
3104
3105         * libc/stdio/findfp.c (__sfp): Protect global FILE pointer list
3106         by a lock when newlib is multithreaded. 
3107
3108 2004-01-21  Jeff Johnston  <jjohnstn@redhat.com>
3109
3110         * libc/stdlib/mbrtowc.c (_mbrtowc_r): Fix case where s is null
3111         pointer to match C99 spec.
3112         * libc/stdlib/mbsrtowcs.c (_mbsrtowc_r): Fix to ignore len when
3113         dst is NULL.  Also fix to not alter src pointer when dst is NULL
3114         and call _mbrtowc_r instead of _mbtowc_r.
3115         * libc/stdlib/wcsrtombs.c (_wcsrtombs_r): Call _wcrtomb_r instead
3116         of _wctomb_r.
3117
3118 2004-01-19  Thomas Pfaff  <tpfaff@gmx.net>
3119
3120         * libc/stdio/fclose.c (fclose): Release FILE as the last step.
3121         * libc/stdio/freopen.c (freopen): Ditto.
3122
3123 2004-01-16  Christopher Faylor  <cgf@redhat.com>
3124
3125         * libc/stdio/vfprintf.c: Add sys/lock.h include.
3126
3127 2004-01-16  Thomas Pfaff  <tpfaff@gmx.net>
3128
3129         * libc/stdio/findfp.c (__sfp): Remove unnecessary memset.
3130         * libc/stdio/vfprintf.c (__sbprintf): Ditto.
3131         Add calls to __lock_init_recursive and __lock_close_recursive
3132         instead.
3133
3134 2004-01-15  Thomas Pfaff  <tpfaff@gmx.net>
3135
3136         * libc/stdio/fclose.c: Include sys/lock.h.
3137         (fclose): Destroy lock when file is closed.
3138         * libc/stdio/findfp.c (__sfp): Initialize file pointers _lock
3139         member.
3140         * libc/stdio/freopen.c: Include sys/lock.h.
3141         (_freopen_r): Destroy lock when file is closed.
3142         * libc/stdio/vfprintf.c (__sbprintf): Initialize file pointers
3143         _lock member.
3144
3145 2004-01-08  Joel Sherrill  <joel@oarcorp.com>
3146
3147         * libc/ctype/iswctype.c, include/sys/reent.h, libc/stdlib/a64l.c:
3148         Remove warnings.
3149
3150 2004-01-08  Joel Sherrill  <joel@oarcorp.com>
3151
3152         * libc/sys/rtems/sys/queue.h: New file.
3153         * libc/include/sys/signal.h: Reflect renumbering of signals to
3154         fit into 32-bit mask.
3155         * libc/include/sys/unistd.h: Add fdatasync() prototype.
3156         * libc/sys/rtems/crt0.c: Add more symbols which may be implicitly
3157         required.  In particular, add the reentrant variants of libc calls.
3158         * libc/sys/rtems/sys/dirent.h: Add scandir() prototype.
3159
3160 2004-01-06  Mark Mitchell  <mark@codesourcery.com>
3161
3162         * libc/sys/arm/syscalls.c (unistd.h): Include it.
3163         (remap_handle): Use STDIN_FILENO instead of __sfileno(stdin).
3164         Similarly for stdout and stderr.
3165
3166 2004-01-06  Jeff Johnston  <jjohnstn@redhat.com>
3167
3168         * libc/libc.texinfo: Correct escape character for @ sign
3169         so file will be processed by make info.  Update copyright years.
3170         * libm/libm.texinfo: Ditto.
3171
3172 2003-12-05  Jeff Johnston  <jjohnstn@redhat.com>
3173
3174         * libc/include/sys/stat.h: No longer include stat-dj.h.
3175         * libc/include/sys/stat-dj.h: Removed.
3176
3177 2003-12-05  Jeff Johnston  <jjohnstn@redhat.com>
3178
3179         * libc/include/wchar.h: Include <sys/reent.h>.
3180
3181 2003-12-05  Christopher Faylor  <cgf@redhat.com>
3182
3183         * libc/stdlib/mbrlen.c: Change include order to prevent compiler errors
3184         when defining _mbrtowc.
3185         * libc/stdlib/mbsinit.c: Ditto.
3186         * libc/stdlib/mbsrtowcs.c: Ditto.
3187         * libc/stdlib/wcrtomb.c: Ditto.
3188         * libc/stdlib/wcsrtombs.c: Ditto.
3189         * libc/stdlib/wctob.c: Ditto.
3190
3191 2003-12-05  Christopher Faylor  <cgf@redhat.com>
3192
3193         * libc/stdlib/mbrlen.c: Change include order to prevent compiler
3194         errors when defining _mbrtowc.
3195         * libc/stdlib/mbsinit.c: Ditto.
3196         * libc/stdlib/mbsrtowcs.c: Ditto.
3197
3198 2003-12-05  Christopher Faylor  <cgf@redhat.com>
3199
3200         * libc/stdlib/mbrtowc.c: Change include order to prevent compiler
3201         errors when defining _mbrtowc.
3202
3203 2003-12-04  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
3204
3205         * libc/stdio/vfprintf.c (_VFPRINTF_R): Use _r versions
3206         of mb routines for %lc and %ls support.
3207         * libc/stdio/vfscanf.c (_svfscanf_r): Add %lc, %C,
3208         %ls, and %S support.  Remove CYGNUS_NEC markers and
3209         code within.
3210
3211 2003-12-04  Jeff Johnston  <jjohnstn@redhat.com>
3212
3213         * libc/include/wchar.h: Add prototypes for _mbrtowc_r,
3214         _wcrtomb_r, and _wcsrtombs_r.
3215
3216 2003-12-01  Corinna Vinschen  <corinna@vinschen.de>
3217
3218         * libc/include/sys/fcntl.h: Don't define struct flock when on
3219         Cygwin.  This is done in winsup/cygwin/include/cygwin/types.h now.
3220
3221 2003-11-28  Christopher Faylor  <cgf@redhat.com>
3222
3223         * libc/include/sys/signal.h: Use system specific signal file when
3224         building on cygwin.
3225
3226 2003-11-27  Jeff Johnston  <jjohnstn@redhat.com>
3227
3228         * libc/include/stdlib.h (_atoi_r): New prototype.
3229         * libc/stdlib/atoi.c (_atoi_r): New reentrant function.
3230
3231 2003-11-27  Jeff Johnston  <jjohnstn@redhat.com>
3232
3233         * libc/include/stdlib.h (_atoll_r, _atol_r): New prototypes.
3234         * libc/stdlib/atol.c (_atol_r): New reentrant function.
3235         * libc/stdlib/atoll.c (_atoll_r): Ditto.
3236
3237 2003-11-27  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
3238             Jeff Johnston  <jjohnstn@redhat.com>
3239
3240         * libc/include/stdlib.h (lldiv_t): New type.
3241         (atoll, llabs, lldiv): New prototypes.
3242         * libc/stdlib/Makefile.am: Add support for atoll, llabs, and lldiv.
3243         * libc/stdlib/stdlib.tex: Ditto.
3244         * libc/stdlib/Makefile.in: Regenerated.
3245         * libc/stdlib/atoll.c: New file.
3246         * libc/stdlib/llabs.c: Ditto.
3247         * libc/stdlib/lldiv.c: Ditto.
3248
3249 2003-11-26  Corinna Vinschen  <corinna@vinschen.de>
3250
3251         * libc/include/fcntl.h: Declare syscalls only when building newlib.
3252         * libc/include/unistd.h: Ditto.
3253         * libc/include/stat.h: Ditto.  Also declare struct stat64.
3254
3255 2003-11-24  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
3256
3257         * libc/stdio/vfprintf.c (_VFPRINTF_R): Fix check for 'C' format
3258         specifier to use ch instead of *fmt.
3259
3260 2003-11-21  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
3261
3262         * libc/stdio/vfprintf.c (_VFPRINTF_R, get_arg): Move mb-specific
3263         code within checks for MB_CAPABLE.  For non-mb-capable platforms,
3264         use simple byte logic.
3265
3266 2003-11-21  Jeff Johnston  <jjohnstn@redhat.com>
3267
3268         * libc/stdio/vfscanf.c (__svfscanf_r)[!_NO_LONGDBL]: Don't use
3269         _strtold routine for processing floats and doubles since it
3270         is not as fast as _strtod_r.
3271
3272 2003-11-20 Dhananjay Deshpande <dhananjayd@kpitcummins.com> 
3273
3274         * libc/machine/h8300/defines.h : Correct pointer register defines 
3275         for normal mode.
3276         * libc/machine/h8300/memcpy.S : Use add/sub instead of adds/subs 
3277         for normal mode.
3278         * libc/machine/h8300/reg_memcpy.S : Likewise.
3279         * libc/machine/h8300/reg_memset.S : Likewise.
3280         * libc/machine/h8300/strcmp.S : Likewise.
3281
3282 2003-11-19  Nicholas Wourms  <nwourms@netscape.net>
3283
3284         * configure.host: Enable positional arguments for printf
3285         family for Cygwin.
3286         * libc/stdio/vfprintf.c (_VFPRINTF_R): Remove extraneous
3287         pointer reference for quad_ptr_t.
3288
3289 2003-11-19  Jeff Johnston  <jjohnstn@redhat.com>
3290
3291         * libc/stdio/scanf.c: Don't include local.h more than once.
3292
3293 2003-11-18  Corinna Vinschen  <corinna@vinschen.de>
3294
3295         * libc/include/sys/fcntl.h: Declare _open64.
3296         * libc/include/sys/stat.h: Declare _fstat64.
3297         * libc/include/sys/unistd.h: Declare _lseek64.
3298
3299 2003-11-17  Corinna Vinschen  <corinna@vinschen.de>
3300
3301         * libc/include/stdlib.h (getprogname): Declare for Cygwin.
3302         (setprogname): Ditto.
3303
3304 2003-11-10  Jeff Johnston  <jjohnstn@redhat.com>
3305
3306         * libc/machine/powerpc/ufix64toa.c (_ufix64to_r): Fix shifts
3307         to use (Ebits + 1) which accounts for the sign-bit.
3308
3309 2003-11-07  Jeff Johnston  <jjohnstn@redhat.com>
3310
3311         * configure.host: Remove -DLOOSE_KERNEL_NAMES flag for linux 
3312         x86 build.
3313         * iconvdata/Makefile.am: Make dependent on newlib's configure.host
3314         and set up default flags to pass to aclocal.
3315         * iconvdata/Makefile.in: Regenerated.
3316         * libc/sys/linux/Makefile.am: Add _ELIX_LEVEL_4 getlogin, getpwnam,
3317         and getpwuid routines.
3318         * libc/sys/linux/Makefile.in: Regenerated.
3319         * libc/sys/linux/getlogin.c: New stub file to allow x86-linux
3320         applications to link with newlib's shared libc library.
3321         * libc/sys/linux/getpwnam.c: Ditto.
3322         * libc/sys/linux/getpwuid.c: Ditto.
3323         * libc/sys/linux/sys/types.h: Include <features.h> and supply types
3324         that were formerly supplied by /usr/include/linux/types.h with
3325         kernel types.
3326         * testsuite/newlib.wctype/twctype.c: Fix testcase to properly
3327         test _ELIX_LEVEL macro.
3328
3329 2003-11-07  Jeff Johnston  <jjohnstn@redhat.com>
3330
3331         * libc/stdio/vfprintf.c (_VFPRINTF_R): Fix typos that should be
3332         referring to _NO_LONGLONG macro.
3333
3334 2003-11-06  Jeff Johnston  <jjohnstn@redhat.com>
3335
3336         * libc/sys/linux/linuxthreads/td_init.c: Replace function name
3337         in LOG() macro so this will compile on gcc 3.4 and up.
3338         * libc/sys/linux/linuxthreads/td_log.c: Ditto.
3339         * libc/sys/linux/linuxthreads/td_ta_clear_event.c: Ditto.
3340         * libc/sys/linux/linuxthreads/td_ta_delete.c: Ditto.
3341         * libc/sys/linux/linuxthreads/td_ta_enable_stats.c: Ditto.
3342         * libc/sys/linux/linuxthreads/td_ta_event_addr.c: Ditto.
3343         * libc/sys/linux/linuxthreads/td_ta_event_getmsg.c: Ditto.
3344         * libc/sys/linux/linuxthreads/td_ta_get_nthreads.c: Ditto.
3345         * libc/sys/linux/linuxthreads/td_ta_get_ph.c: Ditto.
3346         * libc/sys/linux/linuxthreads/td_ta_get_stats.c: Ditto.
3347         * libc/sys/linux/linuxthreads/td_ta_map_id2thr.c: Ditto.
3348         * libc/sys/linux/linuxthreads/td_ta_map_lwp2thr.c: Ditto.
3349         * libc/sys/linux/linuxthreads/td_ta_new.c: Ditto.
3350         * libc/sys/linux/linuxthreads/td_ta_reset_stats.c: Ditto.
3351         * libc/sys/linux/linuxthreads/td_ta_set_event.c: Ditto.
3352         * libc/sys/linux/linuxthreads/td_ta_setconcurrency.c: Ditto.
3353         * libc/sys/linux/linuxthreads/td_ta_thr_iter.c: Ditto.
3354         * libc/sys/linux/linuxthreads/td_ta_tsd_iter.c: Ditto.
3355         * libc/sys/linux/linuxthreads/td_thr_clear_event.c: Ditto.
3356         * libc/sys/linux/linuxthreads/td_thr_dbresume.c: Ditto.
3357         * libc/sys/linux/linuxthreads/td_thr_dbsuspend.c: Ditto.
3358         * libc/sys/linux/linuxthreads/td_thr_event_enable.c: Ditto.
3359         * libc/sys/linux/linuxthreads/td_thr_event_getmsg.c: Ditto.
3360         * libc/sys/linux/linuxthreads/td_thr_get_info.c: Ditto.
3361         * libc/sys/linux/linuxthreads/td_thr_getfpregs.c: Ditto.
3362         * libc/sys/linux/linuxthreads/td_thr_getgregs.c: Ditto.
3363         * libc/sys/linux/linuxthreads/td_thr_getxregs.c: Ditto.
3364         * libc/sys/linux/linuxthreads/td_thr_getxregsize.c: Ditto.
3365         * libc/sys/linux/linuxthreads/td_thr_set_event.c: Ditto.
3366         * libc/sys/linux/linuxthreads/td_thr_setfpregs.c: Ditto.
3367         * libc/sys/linux/linuxthreads/td_thr_setgregs.c: Ditto.
3368         * libc/sys/linux/linuxthreads/td_thr_setprio.c: Ditto.
3369         * libc/sys/linux/linuxthreads/td_thr_setsigpending.c: Ditto.
3370         * libc/sys/linux/linuxthreads/td_thr_setxregs.c: Ditto.
3371         * libc/sys/linux/linuxthreads/td_thr_sigsetmask.c: Ditto.
3372         * libc/sys/linux/linuxthreads/td_thr_tsd.c: Ditto.
3373         * libc/sys/linux/linuxthreads/td_thr_validate.c: Ditto.
3374
3375 2003-11-05  Jeff Johnston  <jjohnstn@redhat.com>
3376             Artem B. Bityuckiy  <abitytsky@softminecorp.com>
3377
3378         * libc/stdio/vfprintf.c (_VFPRINTF_R): Add support for
3379         %ls, %S, %lc, and %C format specifiers.
3380         (get_arg): Ditto.
3381         * libc/stdio/sprintf.c: Add documentation regarding new
3382         format specifiers added in vfprintf.c.
3383
3384 2003-11-05  Jeff Johnston  <jjohnstn@redhat.com>
3385
3386         * libc/stdlib/wcsrtombs.c (_wcsrtombs_r): Numerous fixes
3387         to make code work as specified in standard.
3388
3389 2003-10-23  Jeff Johnston  <jjohnstn@redhat.com>
3390
3391         * configure.in: Use absolute newlib basedir when forming
3392         CC_FOR_NEWLIB include options.
3393         * configure: Regenerated.
3394
3395 2003-10-23  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
3396
3397         * libc/string/wcsnlen.c: New file.
3398         * libc/include/wchar.h: Add wcsnlen prototype.
3399         * libc/string/Makefile.am: Add wcsnlen support.
3400         * libc/string/Makefile.in: Regenerated.
3401         * libc/string/wcstrings.tex: Add wcsnlen documentation.
3402
3403 2003-10-22  Richard Sandiford  <rsandifo@redhat.com>
3404
3405         * libc/stdlib/exit.c (exit): Handle null _GLOBAL_REENT->_atexits.
3406
3407 2003-10-20  Bob Wilson  <bob.wilson@acm.org>
3408
3409         * libc/locale/locale.c: Use double quotes in code.
3410         * libc/locale/locale.tex: Likewise.
3411         * libc/libc.texinfo: Hyphenate "floating-point".
3412         * libc/machine/necv70/necv70.tex: Likewise.
3413         * libc/stdio/sprintf.c: Likewise.
3414         * libc/stdio/sscanf.c: Likewise.
3415         * libc/stdlib/atof.c: Likewise.
3416         * libc/stdlib/ldtoa.c: Fix comment typo.
3417         * libc/stdlib/div.c: Use @ifnottex instead of @ifinfo.
3418         * libc/stdlib/ldiv.c: Likewise.
3419         * libm/common/s_expm1.c: Likewise.
3420         * libm/common/s_ilogb.c: Hyphenate "floating-point".  Use "nonzero".
3421         * libm/common/s_infinity: Hyphenate "double- and single-precision".
3422         * libm/common/s_nan.c: Likewise.  Also correct the FUNCTION summary.
3423         * libm/common/s_nextafter.c: Fix typo.  Hyphenate "double-precision"
3424         and "floating-point".
3425         * libm/common/s_scalbn.c: Correct the FUNCTION summary.
3426         * libm/math/e_pow.c: Fix comment typo.
3427         * libm/math/math.tex: Hyphenate "single-precision" and "floating-point".
3428         * libm/math/s_asinh.c: Use @ifnottex instead of @ifinfo.
3429         * libm/math/s_atan.c: Likewise.
3430         * libm/math/s_frexp.c: Likewise.  Also use "nonzero".
3431         * libm/math/s_isnan.c: Hyphenate "single-precision" and
3432         "floating-point".  Use "nonzero".
3433         * libm/math/s_ldexp.c: Use @ifnottex instead of @ifinfo.
3434         * libm/math/w_acos.c: Likewise.
3435         * libm/math/w_acosh.c: Likewise.
3436         * libm/math/w_asin.c: Likewise.
3437         * libm/math/w_atan2.c: Likewise.
3438         * libm/math/w_atanh.c: Likewise.
3439         * libm/math/w_cosh.c: Likewise.
3440         * libm/math/w_exp.c: Likewise.
3441         * libm/math/w_exp2.c: Likewise.  Add missing @end and missing @tex
3442         version of 2^x in the description.
3443         * libm/math/w_fmod.c: Use @ifnottex instead of @ifinfo.
3444         * libm/math/w_gamma.c: Likewise.
3445         * libm/math/w_hypot.c: Likewise.
3446         * libm/math/w_j0.c: Likewise.
3447         * libm/math/w_sinh.c: Likewise.
3448         * libm/math/w_pow.c: Replace "exp1.0nt" with "exponent".
3449         * libm/mathfp/mathfp.tex: Hyphenate "single-precision" and
3450         "floating-point".
3451         * libm/mathfp/e_acosh.c: Use @ifnottex instead of @ifinfo.
3452         * libm/mathfp/e_atanh.c: Likewise.
3453         * libm/mathfp/e_hypot.c: Likewise.
3454         * libm/mathfp/er_lgamma.c: Likewise.
3455         * libm/mathfp/s_acos.c: Likewise.
3456         * libm/mathfp/s_asine.c: Likewise.
3457         * libm/mathfp/s_asinh.c: Likewise.
3458         * libm/mathfp/s_atan.c: Likewise.
3459         * libm/mathfp/s_atan2.c: Likewise.
3460         * libm/mathfp/s_atangent.c: Likewise.
3461         * libm/mathfp/s_cosh.c: Likewise.
3462         * libm/mathfp/s_exp.c: Likewise.
3463         * libm/mathfp/s_fmod.c: Likewise.
3464         * libm/mathfp/s_frexp.c: Likewise.  Also use "nonzero".
3465         * libm/mathfp/s_isnan.c: Hyphenate "single-precision" and
3466         "floating-point".  Use "nonzero".
3467         * libm/math/s_pow.c: Replace "exp1.0nt" with "exponent".
3468         * libm/mathfp/s_ldexp.c: Use @ifnottex instead of @ifinfo.
3469         * libm/mathfp/s_sineh.c: Likewise.
3470         * libm/mathfp/w_jn.c: Likewise.
3471
3472 2003-10-15  Alexandre Oliva  <aoliva@redhat.com>
3473
3474         * Makefile.am: Add $(MAKE) comments to multido and multiclean
3475         lines, to enable parallel make.
3476         * Makefile.in: Rebuilt.
3477
3478 2003-10-14  Christopher Faylor  <cgf@redhat.com>
3479
3480         * libc/time/clock.c: Clarify documentation of return value when no
3481         measurement is available.
3482
3483 2003-09-29  Ian Lance Taylor  <ian@wasabisystems.com>
3484
3485         * libm/configure.in: Check libm_machine_dir, not machine_dir.
3486         * libm/configure: Regenerate.
3487         * libm/Makefile.in: Ditto.
3488
3489 2003-09-29  J"orn Rennecke <joern.rennecke@superh.com>
3490
3491         * libc/machine/sh/strncpy.S: New file.
3492         * libc/machine/sh/Makefile.am: Add entry & rule for new file.
3493         * libc/machine/sh/Makefile.in: Regenerate.
3494
3495 2003-09-11  James E Wilson  <wilson@specifixinc.com>
3496
3497         * MAINTAINERS: Update my e-mail address.
3498
3499 2003-09-10  Corinna Vinschen  <corinna@vinschen.de>
3500
3501         * libc/include/sys/unistd.h: Declare function daemon for Cygwin.
3502
3503 2003-09-09  Jeff Johnston  <jjohnstn@redhat.com>
3504
3505         * libc/machine/powerpc/fix64.h: Fix typo for _simdldcheck
3506         prototype.
3507         * libc/machine/powerpc/simdldtoa.c: Remove prototype for
3508         _simdldcheck().  Also add unsigned cast for index variable in
3509         for loop using sizeof operators.
3510         * libc/machine/powerpc/strtoufix32.c: Remove unused variable.
3511         * libc/machine/powerpc/strtosfix64.c: Fix call to _simdldcheck.
3512         * libc/machine/powerpc/strtoufix64.c (_strtoufix64_r): Ditto
3513         plus fix shift calculation for determining if there is a
3514         carry from word2.
3515
3516 2003-09-09  Corinna Vinschen  <corinna@vinschen.de>
3517
3518         * libc/include/grp.h: Don't define setgrfile, group_from_gid and
3519         setgroupent for Cygwin.
3520
3521 2003-09-05  Jeff Johnston  <jjohnstn@redhat.com>
3522
3523         * libc/stdlib/exit.c (exit): Setting of struct _atexit ptr p
3524         is different for _REENT_SMALL than when using regular reent
3525         struct.
3526
3527 2003-09-05  Ben Elliston  <bje@wasabisystems.com>
3528
3529         * libc/ctype/wctype.c (_DEFUN): Remove empty default case, as
3530         modern versions of GCC issue a warning.
3531
3532         * libc/machine/xscale/memcmp.c (memcmp): Strip trailing whitespace
3533         after continuation characters that induces a warning from modern
3534         versions of GCC.
3535
3536 2003-09-04  Ben Elliston  <bje@wasabisystems.com>
3537
3538         * libc/stdlib/mstats.c[_ELIX_LEVEL]: Fix guards.  #ifndef FOO ||
3539         FOO >= 2 is invalid; use #if !defined (FOO) || FOO >= 2 instead.
3540
3541 2003-09-02  Thomas Pfaff  <tpfaff@gmx.net>
3542
3543         * libc/stdlib/atexit.c: Rename _REENT to _GLOBAL_REENT throughout.
3544         * libc/stdlib/exit.c : Ditto.
3545         * libc/stdlib/on_exit.c: Ditto.
3546
3547 2003-08-27  Corinna Vinschen  <corinna@vinschen.de>
3548
3549         * libc/include/reent.h: Define stat64 as __stat64 when
3550         compiling newlib for Cygwin.
3551
3552 2003-08-26  Jeff Johnston  <jjohnstn@redhat.com>
3553
3554         * libc/include/sys/stat.h[__CYGWIN__]: Only define stat64 as
3555         __stat64 when compiling newlib.
3556
3557 2003-08-26  Jeff Johnston  <jjohnstn@redhat.com>
3558
3559         * libc/include/stdio.h: Allow the io64 function prototypes for
3560         Cygwin when compiling newlib.
3561         * libc/include/sys/stat.h[__CYGWIN__]: Define stat64 as __stat64
3562         to expose the Cygwin struct __stat64 type.
3563         * libc/stdio64/fseeko64.c: Use _fstat64_r and pass a struct stat64
3564         pointer.
3565         * libc/stdio64/tmpfile64.c(_tmpfile64_r): Call _fopen64_r.
3566
3567 2003-08-23  Christopher Faylor  <cgf@redhat.com>
3568
3569         * libc/stdio64/fseeko64.c (fseeko64_r): Rename second fseeko64_r
3570         definition to fseeko64.
3571
3572 2003-08-22  Jeff Johnston  <jjohnstn@redhat.com>
3573
3574         * libc/include/sys/reent.h: Add _GLOBAL_REENT macro.
3575         * libc/stdio: Globally remove/replace all references to fp->_data.
3576         Replace with _REENT or _GLOBAL_REENT where appropriate.
3577         * libc/stdio/asprintf.c: Ditto.
3578         * libc/stdio/fclose.c: Ditto.
3579         * libc/stdio/fvwrite.c: Ditto.
3580         * libc/stdio/makebuf.c: Ditto.
3581         * libc/stdio/refill.c: Ditto.
3582         * libc/stdio/local.h: Ditto.
3583         * libc/stdio/setvbuf.c: Ditto.
3584         * libc/stdio/sscanf.c: Ditto.
3585         * libc/stdio/stdio.c: Ditto.
3586         * libc/stdio/ungetc.c: Ditto.
3587         * libc/stdio/vfscanf.c: Ditto.
3588         * libc/stdio/vsscanf.c: Ditto.
3589         * libc/stdio/fopen.c: Ditto.  Also use _fseek_r in _fopen_r.
3590         * libc/stdio/vasprintf.c: Ditto.  Also call _vfprintf_r directly.
3591         * libc/stdio/vsnprintf.c: Ditto.
3592         * libc/stdio/vsprintf.c: Ditto.
3593         * libc/stdio/fcloseall.c(fcloseall): Use _GLOBAL_REENT macro
3594         instead of _REENT to walk file list.
3595         * libc/stdio/fflush.c: Ditto.
3596         * libc/stdio/fgetpos.c: Add reentrant version and have regular
3597         version call reentrant version with _REENT argument.
3598         * libc/stdio/fsetpos.c: Ditto.
3599         * libc/stdio/fseek.c: Ditto.
3600         * libc/stdio/fseeko.c: Ditto.
3601         * libc/stdio/ftell.c: Ditto.
3602         * libc/stdio/ftello.c: Ditto.
3603         * libc/stdio/freopen.c: Ditto.
3604         * libc/stdio/findfp.c: Use _GLOBAL_REENT pointer when adding
3605         new files to chain.  Also use _GLOBAL_REENT pointer for
3606         cleaning up.
3607         * libc/stdio/fiprintf.c: Reformatted to minimize duplicate code.
3608         * libc/stdio/siprintf.c: Ditto.
3609         * libc/stdio/iprintf.c: Ditto.
3610         * libc/stdio/fprintf.c: Ditto.
3611         * libc/stdio/printf.c: Ditto.
3612         * libc/stdio/snprintf.c: Call _vfprintf_r directly.
3613         * libc/stdio/sprintf.c: Ditto.
3614         * libc/stdio/vprintf.c: Ditto.  Also add _REENT_ONLY check.
3615         * libc/stdio/rewind.c: Call _fseek_r directly.
3616         * libc/stdio/tmpfile.c: Call _fopen_r and _remove_r directly.
3617         * libc/stdio/vfprintf.c (_VFPRINTF_R): Change _r routines to use
3618         data pointer.
3619         (get_arg): Add extra struct _reent pointer argument.
3620         * libc/stdio64/fgetpos64.c: Add _r versions, remove any reference
3621         to fp->_data.
3622         * libc/stdio64/fopen64.c: Ditto.
3623         * libc/stdio64/freopen64.c: Ditto.
3624         * libc/stdio64/fsetpos64.c: Ditto.
3625         * libc/stdio64/ftello64.c: Ditto.
3626         * libc/stdio64/local64.h: Ditto.
3627         * libc/stdio64/stdio64.c: Ditto.
3628         * libc/stdio64/fseeko64.c: Ditto plus use _fstat_r instead of
3629         _fstat64_r for the meantime.
3630
3631 2003-08-19  Jeff Johnston  <jjohnstn@redhat.com>
3632
3633         * libc/stdlib/mallocr.c (mALLOc, rEALLOc, mEMEALIGn): Enhance
3634         overflow detection.
3635         
3636 2003-08-13  Aldy Hernandez  <aldyh@redhat.com>
3637         
3638         * libc/machine/powerpc/machine/stdlib.h: Wrap SPE functions in
3639         extern "C".
3640
3641 2003-08-13  Jeff Johnston  <jjohnstn@redhat.com>
3642
3643         * libc/include/math.h: Add prototypes for __signbitf and
3644         __signbitd.
3645
3646 2003-07-31  Jeff Johnston  <jjohnstn@redhat.com>
3647
3648         * libc/ctype/iswalpha.c: Fix calls to __jp2uc to pass the
3649         correct type of conversion when dealing with EUCJP or SJIS.
3650         * libc/ctype/iswblank.c: Ditto.
3651         * libc/ctype/iswcntrl.c: Ditto.
3652         * libc/ctype/iswprint.c: Ditto.
3653         * libc/ctype/iswpunct.c: Ditto.
3654         * libc/ctype/iswspace.c: Ditto.
3655         * libc/ctype/towlower.c: Ditto.
3656         * libc/ctype/towupper.c: Ditto.
3657
3658 2003-07-31  Nick Clifton  <nickc@redhat.com>
3659
3660         * libc/sys/sysnecv850/crt0.S (_start): Allocate 4 slots on stack
3661         before calling main, in case it saves its argument registers.
3662         Remove reference to deleted v850ea port.
3663         * configure.host: Remove reference to deleted v850ea port.
3664         Do not use -mv850 when building for v850e target.  This
3665         prevents the ctbp system register from being initialised.
3666
3667 2003-07-29  Honda Hiroki  <hhonda@ipflex.com>
3668
3669         * libc/stdio/vfprintf.c: Set output size to 1 when
3670         we have %f format with precision 0 and # flag not specified.
3671
3672 2003-07-29  Alexandre Oliva  <aoliva@redhat.com>
3673
3674         * libc/machine/mn10300/setjmp.S: Never emit both .am33 and
3675         .am33_2.
3676
3677 2003-07-25  Christopher Faylor  <cgf@redhat.com>
3678
3679         * libc/stdio64/fdopen64.c: Include sys/lock.h.
3680
3681 2003-07-25  Christopher Faylor  <cgf@redhat.com>
3682
3683         * configure.host: Find cygwin include directory, when appropriate.
3684
3685 2003-07-24  Christopher Faylor  <cgf@redhat.com>
3686
3687         * libc/stdio64/fdopen64.c: New file.
3688         * libc/stdio64/Makefile.am (LIB_OBJS): Add fdopen64.o
3689         * libc/stdio64/Makefile.in: Regenerate.
3690         * libc/include/stdio.h (fdopen64): Define.
3691         * libc/include/stdio.h (_fdopen64_r): Ditto.
3692
3693 2003-07-10  Alexandre Oliva  <aoliva@redhat.com>
3694
3695         2000-04-27  Alexandre Oliva  <aoliva@cygnus.com>
3696         * libc/include/machine/setjmp.h (_JBLEN, AM33/2.0): Set to 26.
3697         * libc/machine/mn10300/setjmp.S (setjmp, longjmp): Save and
3698         restore callee-saved FP registers.
3699
3700 2003-07-10  J"orn Rennecke <joern.rennecke@superh.com>
3701
3702         * libc/include/sys/unistd.h (ftruncate, truncate): Also declare
3703         for __sh__.
3704         * libc/sys/sh/Makefile.am (lib_a_SOURCES): Add ftruncate.c and
3705         truncate.c.
3706         * libc/sys/sh/Makefile.in: Regenerate.
3707         * libc/sys/sh/sys/syscall.h: (SYS_truncate, SYS_ftruncate): Define.
3708         * libc/sys/sh/ftruncate.c: New file.
3709         * libc/sys/sh/truncate.c: Likewise.
3710
3711 2003-07-09  Alexandre Oliva  <aoliva@redhat.com>
3712
3713         * libc/include/math.h (nan, nanf): Update prototype to C99.
3714         * libm/common/s_nan.c (nan): Likewise.
3715         * libm/common/s_nanf.c (nanf, nan): Likewise.
3716         * libc/sys/linux/cmath/math_private.h (nan, nanf): Likewise.
3717
3718 2003-07-07  Jeff Johnston  <jjohnstn@redhat.com>
3719
3720         * libc/include/stdbool.h: Removed as this is defined by gcc.
3721
3722 2003-07-03  Shaun Jackman  <sjackman@pathwayconnect.com>
3723
3724         * libc/include/stdbool.h: New header file defined by C99.
3725
3726 2003-07-02  Jeff Johnston  <jjohnstn@redhat.com>
3727
3728         * libc/include/sys/types.h (int8_t): Make signed.
3729
3730 2003-07-02  Jeff Johnston  <jjohnstn@redhat.com>
3731
3732         * libc/sys/linux/include/mqueue.h: Add include of <sys/fcntl.h>.
3733
3734 2003-06-27  Jose Goncalves  <jose.goncalves@inov.pt>
3735
3736         * libc/sys/linux/mq_open.c (mq_open): Only set created flag
3737         on if we actually created the shared memory file exclusively.
3738
3739 2003-06-27  Joe Vornehm  <joev@mitre.org>
3740
3741         * libm/common/s_fpclassify.c (__fpclassifyf): Fix
3742         comparisons to account for unsigned internal value w.
3743
3744 2003-06-26  Jeff Johnston  <jjohnstn@redhat.com>
3745
3746         * libc/sys/linux/mq_open.c (mq_open): Must allocate rdbuf and
3747         wrbuf for a non-creating open.
3748
3749 2003-06-24  Kazu Hirata  <kazu@cs.umass.edu>
3750
3751         * libc/machine/h8300/setarch.h: New.
3752         * libc/machine/h8300/memcpy.S: Use it.
3753         * libc/machine/h8300/memset.S: Likewise.
3754         * libc/machine/h8300/reg_memcpy.S: Likewise.
3755         * libc/machine/h8300/reg_memset.S: Likewise.
3756         * libc/machine/h8300/setjmp.S: Likewise.
3757         * libc/machine/h8300/strcmp.S: Likewise.
3758
3759 2003-06-24  Richard Sandiford  <rsandifo@redhat.com>
3760
3761         * libc/sys/h8300hms/crt0.S (_start): Fix register sizes in call
3762         to atexit().
3763
3764 2003-06-20  Jeff Johnston  <jjohnstn@redhat.com>
3765
3766         * configure.host (iq2000): Add tabs.
3767
3768 2003-06-20  Jeff Johnston  <jjohnstn@redhat.com>
3769
3770         * libc/include/sys/reent.h (_REENT_INIT_PTR): Fix macros
3771         to handle latest on_exit change.
3772         * libc/sys/linux/Makefile.am: Remove special compilation
3773         for malloc.c and mcheck.c.
3774         * libc/sys/linux/Makefile.in: Regenerated.
3775         * libc/sys/linux/mntent.c: Add definition of _LIBC flag
3776         after including <features.h>.
3777         * libc/sys/linux/mcheck.c: Ditto.
3778         * libc/sys/linux/malloc.c: Ditto plus define _GNU_SOURCE
3779         for <features.h>.
3780         * libc/sys/linux/intl/Makefile.am: Remove -D_LIBC and
3781         add -DNOT_IN_libc to C flags.
3782         * libc/sys/linux/intl/Makefile.in: Regenerated.
3783         * libc/sys/linux/intl/config.h: Add definition of _LIBC.
3784         * libc/sys/linux/linuxthreads/semaphore.h: Include
3785         <bits/pthreadtypes.h>.
3786         * libc/sys/linux/sys/dirent.h: Define _LIBC and NOT_IN_libc after
3787         including <features.h>.
3788         * libc/sys/linux/sys/lock.h: Ditto.
3789
3790 2003-06-11  Nick Clifton  <nickc@redhat.com>
3791
3792         * libc/reent/reent.c (reclaim_reent): Fix typo in code to free
3793         _on_exit_args_ptr.
3794
3795 2003-06-10  Stan Cox  <scox@redhat.com>
3796             Anthony Green  <green@redhat.com>
3797         
3798         * configure.host: Add iq2000 support.
3799         * newlib/libc/include/machine/ieeefp.h: Ditto.
3800         * newlib/libc/include/machine/setjmp.h: Ditto.
3801         * libc/machine/iq2000, libc/machine/iq2000/setjmp.S,
3802         libc/machine/iq2000/aclocal.m4, libc/machine/iq2000/configure,
3803         libc/machine/iq2000/configure.in, libc/machine/iq2000/Makefile.am,
3804         libc/machine/iq2000/Makefile.in: New files.
3805
3806 2003-06-10  Richard Sandiford  <rsandifo@redhat.com>
3807
3808         * libc/sys/h8300hms/setarch.h: New file.
3809         * libc/sys/h8300hms/close.S, libc/sys/h8300hms/fstat.S,
3810         libc/sys/h8300hms/lseek.S, libc/sys/h8300hms/open.S,
3811         libc/sys/h8300hms/read.S, libc/sys/h8300hms/stat.S,
3812         libc/sys/h8300hms/write.S, libc/sys/h8300hms/crt0.S: Use it.
3813
3814 2003-06-06  Jeff Johnston  <jjohnstn@redhat.com>
3815
3816         * libc/argz/argz_add.c: Change to use _DEFUN macro for function
3817         definition.
3818         * libc/argz/argz_add_sep.c: Ditto.
3819         * libc/argz/argz_append.c libc/argz/argz_count.c: Ditto.
3820         * libc/argz/argz_create.c libc/argz/argz_create_sep.c: Ditto.
3821         * libc/argz/argz_delete.c libc/argz/argz_extract.c: Ditto.
3822         * libc/argz/argz_insert.c libc/argz/argz_next.c: Ditto.
3823         * libc/argz/argz_replace.c libc/argz/argz_stringify.c: Ditto.
3824         * libc/argz/envz_add.c libc/argz/envz_entry.c: Ditto.
3825         * libc/argz/envz_get.c libc/argz/envz_merge.c: Ditto.
3826         * libc/argz/envz_remove.c libc/argz/envz_strip.c: Ditto.
3827         * libc/locale/nl_langinfo.c libc/misc/ffs.c: Ditto.
3828         * libc/posix/closedir.c libc/posix/creat.c: Ditto.
3829         * libc/posix/execl.c libc/posix/execle.c: Ditto.
3830         * libc/posix/execlp.c libc/posix/execve.c: Ditto.
3831         * libc/posix/isatty.c libc/posix/opendir.c: Ditto.
3832         * libc/posix/popen.c libc/posix/readdir.c: Ditto.
3833         * libc/posix/readdir_r.c libc/posix/rewinddir.c: Ditto.
3834         * libc/posix/scandir.c libc/posix/seekdir.c: Ditto.
3835         * libc/posix/telldir.c libc/search/hcreate.c: Ditto.
3836         * libc/search/tdelete.c libc/search/tdestroy.c: Ditto.
3837         * libc/search/tfind.c libc/search/tsearch.c: Ditto.
3838         * libc/search/twalk.c libc/signal/signal.c: Ditto.
3839
3840 2003-06-05  Nick Clifton  <nickc@redhat.com>
3841         
3842         * libc/include/sys/reent.h (struct _on_exit_args): New
3843         structure containing fields used by the on_exit() function.
3844         (struct _atexit): Include struct _on_exit_args.  For
3845         _REENT_SMALL do his via a pointer that is initialised when
3846         needed.
3847         * libc/reent/reent.c (_reclaim_reent): Free the _on_exit_args
3848         structure, if one has been allocated.
3849         * libc/stdlib/atexit.c (atexit): Update indirection to
3850         _fntypes field.
3851         * libc/stdlib/on_exit.c (on_exit): Indirect via the
3852         _on_exit_args structure.  For _REENT_SMALL, allocate a
3853         structure if one does not exist.
3854         * libc/stdlib/exit.c (exit): Indirect via the _on_exit_args
3855         structure.
3856
3857 2003-06-04  Jeff Johnston  <jjohnstn@redhat.com>
3858
3859         * libc/sys/linux/net/Makefile.am: Remove extraneous markers.
3860         * libc/sys/linux/net/Makefile.in: Regenerated.
3861
3862 2003-06-03  Jeff Johnston  <jjohnstn@redhat.com>
3863
3864         * libc/reent/execr.c: Use _DEFUN macro for function declaration.
3865         * libc/reent/fcntlr.c: Ditto.
3866         * libc/reent/fstat64r.c: Ditto.
3867         * libc/reent/linkr.c: Ditto.
3868         * libc/reent/lseek64r.c: Ditto.
3869         * libc/reent/lseekr.c: Ditto.
3870         * libc/reent/openr.c: Ditto.
3871         * libc/reent/readr.c: Ditto.
3872         * libc/reent/reent.c: Ditto.
3873         * libc/reent/sbrkr.c: Ditto.
3874         * libc/reent/signalr.c: Ditto.
3875         * libc/reent/signgam.c: Ditto.
3876         * libc/reent/statr.c: Ditto.
3877         * libc/reent/timer.c: Ditto.
3878         * libc/reent/unlinkr.c: Ditto.
3879         * libc/reent/writer.c: Ditto.
3880         * libc/syscalls/sysclose.c: Ditto.
3881         * libc/syscalls/sysexecve.c: Ditto.
3882         * libc/syscalls/sysfcntl.c: Ditto.
3883         * libc/syscalls/sysfork.c: Ditto.
3884         * libc/syscalls/sysfstat.c: Ditto.
3885         * libc/syscalls/sysgetpid.c: Ditto.
3886         * libc/syscalls/sysgettod.c: Ditto.
3887         * libc/syscalls/syskill.c: Ditto.
3888         * libc/syscalls/syslink.c: Ditto.
3889         * libc/syscalls/syslseek.c: Ditto.
3890         * libc/syscalls/sysopen.c: Ditto.
3891         * libc/syscalls/sysread.c: Ditto.
3892         * libc/syscalls/syssbrk.c: Ditto.
3893         * libc/syscalls/sysstat.c: Ditto.
3894         * libc/syscalls/systimes.c: Ditto.
3895         * libc/syscalls/sysunlink.c: Ditto.
3896         * libc/syscalls/syswait.c: Ditto.
3897         * libc/syscalls/syswrite.c: Ditto.
3898
3899 2003-06-03  Till Straumann  <strauman@SLAC.Stanford.EDU>
3900
3901         * libc/time/tzset_r.c: Change local variables that are
3902         set via sscanf using the %h format specifier to be unsigned short
3903         instead of int.
3904
3905 2003-05-30  Kelley Cook  <kelleycook@wideopenwest.com>
3906
3907         * configure.host:  Allow i[34567]86 variant.
3908         * configure.in: Likewise.
3909         * README: Likewise to the docs.
3910         * configure: Regenerated.
3911         * Makefile.in: Ditto.
3912
3913 2003-05-28  Jeff Johnston  <jjohnstn@redhat.com>
3914             Tom Fitzsimmons  <fitzsim@redhat.com>
3915
3916         * configure.in: Add iconvdata support for x86 linux.
3917         * configure: Regenerated.
3918         * libc/sys/linux/Makefile.am: Add EL/IX level 3 network, dynamic 
3919         library, iconv, and linuxthreads support.
3920         * libc/sys/linux/configure.in: Ditto.
3921         * libc/sys/linux/Makefile.in: Regenerated.
3922         * libc/sys/linux/configure: Ditto.
3923         * iconvdata/EUC-JP.irreversible: New file.
3924         * iconvdata/Makefile.am: Ditto.
3925         * iconvdata/Makefile.in: Ditto.
3926         * iconvdata/SJIS.irreversible: Ditto.
3927         * iconvdata/aclocal.m4: Ditto.
3928         * iconvdata/configure: Ditto.
3929         * iconvdata/configure.in: Ditto.
3930         * iconvdata/dummy.c: Ditto.
3931         * iconvdata/euc-jp.c: Ditto.
3932         * iconvdata/gconv-modules: Ditto.
3933         * iconvdata/jis0201.c: Ditto.
3934         * iconvdata/jis0201.h: Ditto.
3935         * iconvdata/jis0208.c: Ditto.
3936         * iconvdata/jis0208.h: Ditto.
3937         * iconvdata/jis0212.c: Ditto.
3938         * iconvdata/jis0212.h: Ditto.
3939         * iconvdata/sjis.c: Ditto.
3940         * libc/include/errno.h: Protect definition of error_t.
3941         * libc/sys/linux/gethostid.c: New file.
3942         * libc/sys/linux/sethostid.c: Ditto.
3943         * libc/sys/linux/dl/Makefile.am: Ditto.
3944         * libc/sys/linux/dl/Makefile.in: Ditto.
3945         * libc/sys/linux/dl/abi-tag.h: Ditto.
3946         * libc/sys/linux/dl/atomicity.h: Ditto.
3947         * libc/sys/linux/dl/dl-addr.c: Ditto.
3948         * libc/sys/linux/dl/dl-cache.c: Ditto.
3949         * libc/sys/linux/dl/dl-cache.h: Ditto.
3950         * libc/sys/linux/dl/dl-close.c: Ditto.
3951         * libc/sys/linux/dl/dl-debug.c: Ditto.
3952         * libc/sys/linux/dl/dl-deps.c: Ditto.
3953         * libc/sys/linux/dl/dl-dst.h: Ditto.
3954         * libc/sys/linux/dl/dl-error.c: Ditto.
3955         * libc/sys/linux/dl/dl-fini.c: Ditto.
3956         * libc/sys/linux/dl/dl-init.c: Ditto.
3957         * libc/sys/linux/dl/dl-iteratephdr.c: Ditto.
3958         * libc/sys/linux/dl/dl-libc.c: Ditto.
3959         * libc/sys/linux/dl/dl-librecon.h: Ditto.
3960         * libc/sys/linux/dl/dl-load.c: Ditto.
3961         * libc/sys/linux/dl/dl-lookup.c: Ditto.
3962         * libc/sys/linux/dl/dl-lookupcfg.h: Ditto.
3963         * libc/sys/linux/dl/dl-minimal.c: Ditto.
3964         * libc/sys/linux/dl/dl-misc.c: Ditto.
3965         * libc/sys/linux/dl/dl-object.c: Ditto.
3966         * libc/sys/linux/dl/dl-open.c: Ditto.
3967         * libc/sys/linux/dl/dl-osinfo.h: Ditto.
3968         * libc/sys/linux/dl/dl-profile.c: Ditto.
3969         * libc/sys/linux/dl/dl-profstub.c: Ditto.
3970         * libc/sys/linux/dl/dl-reloc.c: Ditto.
3971         * libc/sys/linux/dl/dl-runtime.c: Ditto.
3972         * libc/sys/linux/dl/dl-support.c: Ditto.
3973         * libc/sys/linux/dl/dl-sym.c: Ditto.
3974         * libc/sys/linux/dl/dl-version.c: Ditto.
3975         * libc/sys/linux/dl/dlfcn.h: Ditto.
3976         * libc/sys/linux/dl/do-lookup.h: Ditto.
3977         * libc/sys/linux/dl/do-rel.h: Ditto.
3978         * libc/sys/linux/dl/dynamic-link.h: Ditto.
3979         * libc/sys/linux/dl/kernel-features.h: Ditto.
3980         * libc/sys/linux/dl/ldsodefs.h: Ditto.
3981         * libc/sys/linux/dl/libintl.h: Ditto.
3982         * libc/sys/linux/dl/trusted-dirs.h: Ditto.
3983         * libc/sys/linux/dl/unsecvars.h: Ditto.
3984         * libc/sys/linux/iconv/Makefile.am: Ditto.
3985         * libc/sys/linux/iconv/Makefile.in: Ditto.
3986         * libc/sys/linux/iconv/categories.def: Ditto.
3987         * libc/sys/linux/iconv/dummy-repertoire.c: Ditto.
3988         * libc/sys/linux/iconv/gconv.c: Ditto.
3989         * libc/sys/linux/iconv/gconv_builtin.c: Ditto.
3990         * libc/sys/linux/iconv/gconv_builtin.h: Ditto.
3991         * libc/sys/linux/iconv/gconv_cache.c: Ditto.
3992         * libc/sys/linux/iconv/gconv_charset.h: Ditto.
3993         * libc/sys/linux/iconv/gconv_close.c: Ditto.
3994         * libc/sys/linux/iconv/gconv_conf.c: Ditto.
3995         * libc/sys/linux/iconv/gconv_db.c: Ditto.
3996         * libc/sys/linux/iconv/gconv_dl.c: Ditto.
3997         * libc/sys/linux/iconv/gconv_int.h: Ditto.
3998         * libc/sys/linux/iconv/gconv_open.c: Ditto.
3999         * libc/sys/linux/iconv/gconv_simple.c: Ditto.
4000         * libc/sys/linux/iconv/gconv_trans.c: Ditto.
4001         * libc/sys/linux/iconv/hash-string.h: Ditto.
4002         * libc/sys/linux/iconv/iconv.c: Ditto.
4003         * libc/sys/linux/iconv/iconv.h: Ditto.
4004         * libc/sys/linux/iconv/iconv_charmap.c: Ditto.
4005         * libc/sys/linux/iconv/iconv_close.c: Ditto.
4006         * libc/sys/linux/iconv/iconv_open.c: Ditto.
4007         * libc/sys/linux/iconv/iconvconfig.c: Ditto.
4008         * libc/sys/linux/iconv/iconvconfig.h: Ditto.
4009         * libc/sys/linux/iconv/loadinfo.h: Ditto.
4010         * libc/sys/linux/iconv/localeinfo.h: Ditto.
4011         * libc/sys/linux/iconv/loop.c: Ditto.
4012         * libc/sys/linux/iconv/skeleton.c: Ditto.
4013         * libc/sys/linux/iconv/strtab.c: Ditto.
4014         * libc/sys/linux/include/dl-hash.h: Ditto.
4015         * libc/sys/linux/include/dlfcn.h: Ditto.
4016         * libc/sys/linux/include/fnmatch.h: Ditto.
4017         * libc/sys/linux/include/gconv.h: Ditto.
4018         * libc/sys/linux/include/glob.h: Ditto.
4019         * libc/sys/linux/include/hesiod.h: Ditto.
4020         * libc/sys/linux/include/ifaddrs.h: Ditto.
4021         * libc/sys/linux/include/libc_private.h: Ditto.
4022         * libc/sys/linux/include/link.h: Ditto.
4023         * libc/sys/linux/include/namespace.h: Ditto.
4024         * libc/sys/linux/include/netconfig.h: Ditto.
4025         * libc/sys/linux/include/netdb.h: Ditto.
4026         * libc/sys/linux/include/nsswitch.h: Ditto.
4027         * libc/sys/linux/include/regex.h: Ditto.
4028         * libc/sys/linux/include/resolv.h: Ditto.
4029         * libc/sys/linux/include/rune.h: Ditto.
4030         * libc/sys/linux/include/runetype.h: Ditto.
4031         * libc/sys/linux/include/semaphore.h: Ditto.
4032         * libc/sys/linux/include/setlocale.h: Ditto.
4033         * libc/sys/linux/include/un-namespace.h: Ditto.
4034         * libc/sys/linux/include/wordexp.h: Ditto.
4035         * libc/sys/linux/include/arpa/ftp.h: Ditto.
4036         * libc/sys/linux/include/arpa/inet.h: Ditto.
4037         * libc/sys/linux/include/arpa/nameser.h: Ditto.
4038         * libc/sys/linux/include/arpa/nameser_compat.h: Ditto.
4039         * libc/sys/linux/include/arpa/telnet.h: Ditto.
4040         * libc/sys/linux/include/arpa/tftp.h: Ditto.
4041         * libc/sys/linux/include/net/bpf.h: Ditto.
4042         * libc/sys/linux/include/net/bpf_compat.h: Ditto.
4043         * libc/sys/linux/include/net/bpfdesc.h: Ditto.
4044         * libc/sys/linux/include/net/bridge.h: Ditto.
4045         * libc/sys/linux/include/net/ethernet.h: Ditto.
4046         * libc/sys/linux/include/net/fddi.h: Ditto.
4047         * libc/sys/linux/include/net/if.h: Ditto.
4048         * libc/sys/linux/include/net/if_arc.h: Ditto.
4049         * libc/sys/linux/include/net/if_arp.h: Ditto.
4050         * libc/sys/linux/include/net/if_atm.h: Ditto.
4051         * libc/sys/linux/include/net/if_dl.h: Ditto.
4052         * libc/sys/linux/include/net/if_gif.h: Ditto.
4053         * libc/sys/linux/include/net/if_ieee80211.h: Ditto.
4054         * libc/sys/linux/include/net/if_llc.h: Ditto.
4055         * libc/sys/linux/include/net/if_media.h: Ditto.
4056         * libc/sys/linux/include/net/if_mib.h: Ditto.
4057         * libc/sys/linux/include/net/if_ppp.h: Ditto.
4058         * libc/sys/linux/include/net/if_pppvar.h: Ditto.
4059         * libc/sys/linux/include/net/if_slvar.h: Ditto.
4060         * libc/sys/linux/include/net/if_sppp.h: Ditto.
4061         * libc/sys/linux/include/net/if_stf.h: Ditto.
4062         * libc/sys/linux/include/net/if_tap.h: Ditto.
4063         * libc/sys/linux/include/net/if_tapvar.h: Ditto.
4064         * libc/sys/linux/include/net/if_tun.h: Ditto.
4065         * libc/sys/linux/include/net/if_tunvar.h: Ditto.
4066         * libc/sys/linux/include/net/if_types.h: Ditto.
4067         * libc/sys/linux/include/net/if_var.h: Ditto.
4068         * libc/sys/linux/include/net/if_vlan_var.h: Ditto.
4069         * libc/sys/linux/include/net/intrq.h: Ditto.
4070         * libc/sys/linux/include/net/iso88025.h: Ditto.
4071         * libc/sys/linux/include/net/net_osdep.h: Ditto.
4072         * libc/sys/linux/include/net/netisr.h: Ditto.
4073         * libc/sys/linux/include/net/pfil.h: Ditto.
4074         * libc/sys/linux/include/net/pfkeyv2.h: Ditto.
4075         * libc/sys/linux/include/net/ppp_comp.h: Ditto.
4076         * libc/sys/linux/include/net/ppp_defs.h: Ditto.
4077         * libc/sys/linux/include/net/radix.h: Ditto.
4078         * libc/sys/linux/include/net/raw_cb.h: Ditto.
4079         * libc/sys/linux/include/net/route.h: Ditto.
4080         * libc/sys/linux/include/net/slcompress.h: Ditto.
4081         * libc/sys/linux/include/net/slip.h: Ditto.
4082         * libc/sys/linux/include/net/zlib.h: Ditto.
4083         * libc/sys/linux/include/netinet/icmp6.h: Ditto.
4084         * libc/sys/linux/include/netinet/icmp_var.h: Ditto.
4085         * libc/sys/linux/include/netinet/if_atm.h: Ditto.
4086         * libc/sys/linux/include/netinet/if_ether.h: Ditto.
4087         * libc/sys/linux/include/netinet/igmp.h: Ditto.
4088         * libc/sys/linux/include/netinet/igmp_var.h: Ditto.
4089         * libc/sys/linux/include/netinet/in.h: Ditto.
4090         * libc/sys/linux/include/netinet/in_gif.h: Ditto.
4091         * libc/sys/linux/include/netinet/in_pcb.h: Ditto.
4092         * libc/sys/linux/include/netinet/in_systm.h: Ditto.
4093         * libc/sys/linux/include/netinet/in_var.h: Ditto.
4094         * libc/sys/linux/include/netinet/ip.h: Ditto.
4095         * libc/sys/linux/include/netinet/ip6.h: Ditto.
4096         * libc/sys/linux/include/netinet/ip_dummynet.h: Ditto.
4097         * libc/sys/linux/include/netinet/ip_ecn.h: Ditto.
4098         * libc/sys/linux/include/netinet/ip_encap.h: Ditto.
4099         * libc/sys/linux/include/netinet/ip_flow.h: Ditto.
4100         * libc/sys/linux/include/netinet/ip_fw.h: Ditto.
4101         * libc/sys/linux/include/netinet/ip_icmp.h: Ditto.
4102         * libc/sys/linux/include/netinet/ip_mroute.h: Ditto.
4103         * libc/sys/linux/include/netinet/ip_var.h: Ditto.
4104         * libc/sys/linux/include/netinet/ipprotosw.h: Ditto.
4105         * libc/sys/linux/include/netinet/tcp.h: Ditto.
4106         * libc/sys/linux/include/netinet/tcp_debug.h: Ditto.
4107         * libc/sys/linux/include/netinet/tcp_fsm.h: Ditto.
4108         * libc/sys/linux/include/netinet/tcp_seq.h: Ditto.
4109         * libc/sys/linux/include/netinet/tcp_timer.h: Ditto.
4110         * libc/sys/linux/include/netinet/tcp_var.h: Ditto.
4111         * libc/sys/linux/include/netinet/tcpip.h: Ditto.
4112         * libc/sys/linux/include/netinet/udp.h: Ditto.
4113         * libc/sys/linux/include/netinet/udp_var.h: Ditto.
4114         * libc/sys/linux/include/netinet6/ah.h: Ditto.
4115         * libc/sys/linux/include/netinet6/ah6.h: Ditto.
4116         * libc/sys/linux/include/netinet6/esp.h: Ditto.
4117         * libc/sys/linux/include/netinet6/esp6.h: Ditto.
4118         * libc/sys/linux/include/netinet6/esp_rijndael.h: Ditto.
4119         * libc/sys/linux/include/netinet6/icmp6.h: Ditto.
4120         * libc/sys/linux/include/netinet6/in6.h: Ditto.
4121         * libc/sys/linux/include/netinet6/in6_gif.h: Ditto.
4122         * libc/sys/linux/include/netinet6/in6_ifattach.h: Ditto.
4123         * libc/sys/linux/include/netinet6/in6_pcb.h: Ditto.
4124         * libc/sys/linux/include/netinet6/in6_prefix.h: Ditto.
4125         * libc/sys/linux/include/netinet6/in6_var.h: Ditto.
4126         * libc/sys/linux/include/netinet6/ip6.h: Ditto.
4127         * libc/sys/linux/include/netinet6/ip6_ecn.h: Ditto.
4128         * libc/sys/linux/include/netinet6/ip6_fw.h: Ditto.
4129         * libc/sys/linux/include/netinet6/ip6_mroute.h: Ditto.
4130         * libc/sys/linux/include/netinet6/ip6_var.h: Ditto.
4131         * libc/sys/linux/include/netinet6/ip6protosw.h: Ditto.
4132         * libc/sys/linux/include/netinet6/ipcomp.h: Ditto.
4133         * libc/sys/linux/include/netinet6/ipcomp6.h: Ditto.
4134         * libc/sys/linux/include/netinet6/ipsec.h: Ditto.
4135         * libc/sys/linux/include/netinet6/ipsec6.h: Ditto.
4136         * libc/sys/linux/include/netinet6/mld6_var.h: Ditto.
4137         * libc/sys/linux/include/netinet6/nd6.h: Ditto.
4138         * libc/sys/linux/include/netinet6/pim6.h: Ditto.
4139         * libc/sys/linux/include/netinet6/pim6_var.h: Ditto.
4140         * libc/sys/linux/include/netinet6/raw_ip6.h: Ditto.
4141         * libc/sys/linux/include/netinet6/scope6_var.h: Ditto.
4142         * libc/sys/linux/include/netinet6/tcp6_var.h: Ditto.
4143         * libc/sys/linux/include/netinet6/udp6_var.h: Ditto.
4144         * libc/sys/linux/include/netns/idp.h: Ditto.
4145         * libc/sys/linux/include/netns/idp_var.h: Ditto.
4146         * libc/sys/linux/include/netns/ns.h: Ditto.
4147         * libc/sys/linux/include/netns/ns_error.h: Ditto.
4148         * libc/sys/linux/include/netns/ns_if.h: Ditto.
4149         * libc/sys/linux/include/netns/ns_pcb.h: Ditto.
4150         * libc/sys/linux/include/netns/sp.h: Ditto.
4151         * libc/sys/linux/include/netns/spidp.h: Ditto.
4152         * libc/sys/linux/include/netns/spp_debug.h: Ditto.
4153         * libc/sys/linux/include/netns/spp_timer.h: Ditto.
4154         * libc/sys/linux/include/netns/spp_var.h: Ditto.
4155         * libc/sys/linux/include/rpc/Makefile: Ditto.
4156         * libc/sys/linux/include/rpc/auth.h: Ditto.
4157         * libc/sys/linux/include/rpc/auth_des.h: Ditto.
4158         * libc/sys/linux/include/rpc/auth_kerb.h: Ditto.
4159         * libc/sys/linux/include/rpc/auth_unix.h: Ditto.
4160         * libc/sys/linux/include/rpc/clnt.h: Ditto.
4161         * libc/sys/linux/include/rpc/clnt_soc.h: Ditto.
4162         * libc/sys/linux/include/rpc/clnt_stat.h: Ditto.
4163         * libc/sys/linux/include/rpc/des.h: Ditto.
4164         * libc/sys/linux/include/rpc/des_crypt.h: Ditto.
4165         * libc/sys/linux/include/rpc/nettype.h: Ditto.
4166         * libc/sys/linux/include/rpc/pmap_clnt.h: Ditto.
4167         * libc/sys/linux/include/rpc/pmap_prot.h: Ditto.
4168         * libc/sys/linux/include/rpc/pmap_rmt.h: Ditto.
4169         * libc/sys/linux/include/rpc/raw.h: Ditto.
4170         * libc/sys/linux/include/rpc/rpc.h: Ditto.
4171         * libc/sys/linux/include/rpc/rpc_com.h: Ditto.
4172         * libc/sys/linux/include/rpc/rpc_msg.h: Ditto.
4173         * libc/sys/linux/include/rpc/rpcb_clnt.h: Ditto.
4174         * libc/sys/linux/include/rpc/rpcb_prot.h: Ditto.
4175         * libc/sys/linux/include/rpc/rpcb_prot.x: Ditto.
4176         * libc/sys/linux/include/rpc/rpcent.h: Ditto.
4177         * libc/sys/linux/include/rpc/svc.h: Ditto.
4178         * libc/sys/linux/include/rpc/svc_auth.h: Ditto.
4179         * libc/sys/linux/include/rpc/svc_dg.h: Ditto.
4180         * libc/sys/linux/include/rpc/svc_soc.h: Ditto.
4181         * libc/sys/linux/include/rpc/types.h: Ditto.
4182         * libc/sys/linux/include/rpc/xdr.h: Ditto.
4183         * libc/sys/linux/intl/Makefile.am: Ditto.
4184         * libc/sys/linux/intl/Makefile.in: Ditto.
4185         * libc/sys/linux/intl/bindtextdom.c: Ditto.
4186         * libc/sys/linux/intl/catgets.c: Ditto.
4187         * libc/sys/linux/intl/catgetsinfo.h: Ditto.
4188         * libc/sys/linux/intl/config.h: Ditto.
4189         * libc/sys/linux/intl/dcgettext.c: Ditto.
4190         * libc/sys/linux/intl/dcigettext.c: Ditto.
4191         * libc/sys/linux/intl/dcngettext.c: Ditto.
4192         * libc/sys/linux/intl/dgettext.c: Ditto.
4193         * libc/sys/linux/intl/dngettext.c: Ditto.
4194         * libc/sys/linux/intl/explodename.c: Ditto.
4195         * libc/sys/linux/intl/finddomain.c: Ditto.
4196         * libc/sys/linux/intl/gettext.c: Ditto.
4197         * libc/sys/linux/intl/gettext.h: Ditto.
4198         * libc/sys/linux/intl/gettextP.h: Ditto.
4199         * libc/sys/linux/intl/hash-string.h: Ditto.
4200         * libc/sys/linux/intl/l10nflist.c: Ditto.
4201         * libc/sys/linux/intl/loadinfo.h: Ditto.
4202         * libc/sys/linux/intl/loadmsgcat.c: Ditto.
4203         * libc/sys/linux/intl/locale.alias: Ditto.
4204         * libc/sys/linux/intl/localealias.c: Ditto.
4205         * libc/sys/linux/intl/ngettext.c: Ditto.
4206         * libc/sys/linux/intl/open_catalog.c: Ditto.
4207         * libc/sys/linux/intl/plural.c: Ditto.
4208         * libc/sys/linux/intl/plural.y: Ditto.
4209         * libc/sys/linux/intl/stpcpy.c: Ditto.
4210         * libc/sys/linux/intl/textdomain.c: Ditto.
4211         * libc/sys/linux/linuxthreads/LICENSE: Ditto.
4212         * libc/sys/linux/linuxthreads/Makefile.am: Ditto.
4213         * libc/sys/linux/linuxthreads/Makefile.in: Ditto.
4214         * libc/sys/linux/linuxthreads/aclocal.m4: Ditto.
4215         * libc/sys/linux/linuxthreads/attr.c: Ditto.
4216         * libc/sys/linux/linuxthreads/barrier.c: Ditto.
4217         * libc/sys/linux/linuxthreads/bp-sym.h: Ditto.
4218         * libc/sys/linux/linuxthreads/cancel.c: Ditto.
4219         * libc/sys/linux/linuxthreads/condvar.c: Ditto.
4220         * libc/sys/linux/linuxthreads/config.h: Ditto.
4221         * libc/sys/linux/linuxthreads/configure: Ditto.
4222         * libc/sys/linux/linuxthreads/configure.in: Ditto.
4223         * libc/sys/linux/linuxthreads/defs.awk: Ditto.
4224         * libc/sys/linux/linuxthreads/ecmutex.c: Ditto.
4225         * libc/sys/linux/linuxthreads/events.c: Ditto.
4226         * libc/sys/linux/linuxthreads/getcpuclockid.c: Ditto.
4227         * libc/sys/linux/linuxthreads/getreent.c: Ditto.
4228         * libc/sys/linux/linuxthreads/internals.h: Ditto.
4229         * libc/sys/linux/linuxthreads/join.c: Ditto.
4230         * libc/sys/linux/linuxthreads/joinrace.c: Ditto.
4231         * libc/sys/linux/linuxthreads/kernel-features.h: Ditto.
4232         * libc/sys/linux/linuxthreads/libc-internal.h: Ditto.
4233         * libc/sys/linux/linuxthreads/libc-symbols.h: Ditto.
4234         * libc/sys/linux/linuxthreads/linuxthreads.texi: Ditto.
4235         * libc/sys/linux/linuxthreads/lockfile.c: Ditto.
4236         * libc/sys/linux/linuxthreads/manager.c: Ditto.
4237         * libc/sys/linux/linuxthreads/mq_notify.c: Ditto.
4238         * libc/sys/linux/linuxthreads/mutex.c: Ditto.
4239         * libc/sys/linux/linuxthreads/no-tsd.c: Ditto.
4240         * libc/sys/linux/linuxthreads/oldsemaphore.c: Ditto.
4241         * libc/sys/linux/linuxthreads/posix-timer.h: Ditto.
4242         * libc/sys/linux/linuxthreads/prio.c: Ditto.
4243         * libc/sys/linux/linuxthreads/proc_service.h: Ditto.
4244         * libc/sys/linux/linuxthreads/pt-machine.c: Ditto.
4245         * libc/sys/linux/linuxthreads/ptclock_gettime.c: Ditto.
4246         * libc/sys/linux/linuxthreads/ptclock_settime.c: Ditto.
4247         * libc/sys/linux/linuxthreads/ptfork.c: Ditto.
4248         * libc/sys/linux/linuxthreads/pthread.c: Ditto.
4249         * libc/sys/linux/linuxthreads/ptlongjmp.c: Ditto.
4250         * libc/sys/linux/linuxthreads/queue.h: Ditto.
4251         * libc/sys/linux/linuxthreads/reent.c: Ditto.
4252         * libc/sys/linux/linuxthreads/reqsyscalls.c: Ditto.
4253         * libc/sys/linux/linuxthreads/restart.h: Ditto.
4254         * libc/sys/linux/linuxthreads/rwlock.c: Ditto.
4255         * libc/sys/linux/linuxthreads/semaphore.c: Ditto.
4256         * libc/sys/linux/linuxthreads/semaphore.h: Ditto.
4257         * libc/sys/linux/linuxthreads/shlib-compat.h: Ditto.
4258         * libc/sys/linux/linuxthreads/signals.c: Ditto.
4259         * libc/sys/linux/linuxthreads/specific.c: Ditto.
4260         * libc/sys/linux/linuxthreads/spinlock.c: Ditto.
4261         * libc/sys/linux/linuxthreads/spinlock.h: Ditto.
4262         * libc/sys/linux/linuxthreads/sysctl.c: Ditto.
4263         * libc/sys/linux/linuxthreads/td_init.c: Ditto.
4264         * libc/sys/linux/linuxthreads/td_log.c: Ditto.
4265         * libc/sys/linux/linuxthreads/td_symbol_list.c: Ditto.
4266         * libc/sys/linux/linuxthreads/td_ta_clear_event.c: Ditto.
4267         * libc/sys/linux/linuxthreads/td_ta_delete.c: Ditto.
4268         * libc/sys/linux/linuxthreads/td_ta_enable_stats.c: Ditto.
4269         * libc/sys/linux/linuxthreads/td_ta_event_addr.c: Ditto.
4270         * libc/sys/linux/linuxthreads/td_ta_event_getmsg.c: Ditto.
4271         * libc/sys/linux/linuxthreads/td_ta_get_nthreads.c: Ditto.
4272         * libc/sys/linux/linuxthreads/td_ta_get_ph.c: Ditto.
4273         * libc/sys/linux/linuxthreads/td_ta_get_stats.c: Ditto.
4274         * libc/sys/linux/linuxthreads/td_ta_map_id2thr.c: Ditto.
4275         * libc/sys/linux/linuxthreads/td_ta_map_lwp2thr.c: Ditto.
4276         * libc/sys/linux/linuxthreads/td_ta_new.c: Ditto.
4277         * libc/sys/linux/linuxthreads/td_ta_reset_stats.c: Ditto.
4278         * libc/sys/linux/linuxthreads/td_ta_set_event.c: Ditto.
4279         * libc/sys/linux/linuxthreads/td_ta_setconcurrency.c: Ditto.
4280         * libc/sys/linux/linuxthreads/td_ta_thr_iter.c: Ditto.
4281         * libc/sys/linux/linuxthreads/td_ta_tsd_iter.c: Ditto.
4282         * libc/sys/linux/linuxthreads/td_thr_clear_event.c: Ditto.
4283         * libc/sys/linux/linuxthreads/td_thr_dbresume.c: Ditto.
4284         * libc/sys/linux/linuxthreads/td_thr_dbsuspend.c: Ditto.
4285         * libc/sys/linux/linuxthreads/td_thr_event_enable.c: Ditto.
4286         * libc/sys/linux/linuxthreads/td_thr_event_getmsg.c: Ditto.
4287         * libc/sys/linux/linuxthreads/td_thr_get_info.c: Ditto.
4288         * libc/sys/linux/linuxthreads/td_thr_getfpregs.c: Ditto.
4289         * libc/sys/linux/linuxthreads/td_thr_getgregs.c: Ditto.
4290         * libc/sys/linux/linuxthreads/td_thr_getxregs.c: Ditto.
4291         * libc/sys/linux/linuxthreads/td_thr_getxregsize.c: Ditto.
4292         * libc/sys/linux/linuxthreads/td_thr_set_event.c: Ditto.
4293         * libc/sys/linux/linuxthreads/td_thr_setfpregs.c: Ditto.
4294         * libc/sys/linux/linuxthreads/td_thr_setgregs.c: Ditto.
4295         * libc/sys/linux/linuxthreads/td_thr_setprio.c: Ditto.
4296         * libc/sys/linux/linuxthreads/td_thr_setsigpending.c: Ditto.
4297         * libc/sys/linux/linuxthreads/td_thr_setxregs.c: Ditto.
4298         * libc/sys/linux/linuxthreads/td_thr_sigsetmask.c: Ditto.
4299         * libc/sys/linux/linuxthreads/td_thr_tsd.c: Ditto.
4300         * libc/sys/linux/linuxthreads/td_thr_validate.c: Ditto.
4301         * libc/sys/linux/linuxthreads/testrtsig.h: Ditto.
4302         * libc/sys/linux/linuxthreads/thread_db.h: Ditto.
4303         * libc/sys/linux/linuxthreads/thread_dbP.h: Ditto.
4304         * libc/sys/linux/linuxthreads/timer_create.c: Ditto.
4305         * libc/sys/linux/linuxthreads/timer_delete.c: Ditto.
4306         * libc/sys/linux/linuxthreads/timer_getoverr.c: Ditto.
4307         * libc/sys/linux/linuxthreads/timer_gettime.c: Ditto.
4308         * libc/sys/linux/linuxthreads/timer_routines.c: Ditto.
4309         * libc/sys/linux/linuxthreads/timer_settime.c: Ditto.
4310         * libc/sys/linux/linuxthreads/tst-cancel.c: Ditto.
4311         * libc/sys/linux/linuxthreads/tst-context.c: Ditto.
4312         * libc/sys/linux/linuxthreads/tststack.c: Ditto.
4313         * libc/sys/linux/linuxthreads/unload.c: Ditto.
4314         * libc/sys/linux/linuxthreads/weaks.c: Ditto.
4315         * libc/sys/linux/linuxthreads/wrapsyscall.c: Ditto.
4316         * libc/sys/linux/linuxthreads/bits/initspin.h: Ditto.
4317         * libc/sys/linux/linuxthreads/bits/libc-lock.h: Ditto.
4318         * libc/sys/linux/linuxthreads/bits/libc-tsd.h: Ditto.
4319         * libc/sys/linux/linuxthreads/bits/local_lim.h: Ditto.
4320         * libc/sys/linux/linuxthreads/bits/posix_opt.h: Ditto.
4321         * libc/sys/linux/linuxthreads/bits/pthreadtypes.h: Ditto.
4322         * libc/sys/linux/linuxthreads/bits/sigthread.h: Ditto.
4323         * libc/sys/linux/linuxthreads/machine/Makefile.am: Ditto.
4324         * libc/sys/linux/linuxthreads/machine/Makefile.in: Ditto.
4325         * libc/sys/linux/linuxthreads/machine/aclocal.m4: Ditto.
4326         * libc/sys/linux/linuxthreads/machine/configure: Ditto.
4327         * libc/sys/linux/linuxthreads/machine/configure.in: Ditto.
4328         * libc/sys/linux/linuxthreads/machine/generic/generic-sysd: Ditto.ep.h
4329         * libc/sys/linux/linuxthreads/machine/i386/Makefile.am: Ditto.
4330         * libc/sys/linux/linuxthreads/machine/i386/Makefile.in: Ditto.
4331         * libc/sys/linux/linuxthreads/machine/i386/aclocal.m4: Ditto.
4332         * libc/sys/linux/linuxthreads/machine/i386/bp-asm.h: Ditto.
4333         * libc/sys/linux/linuxthreads/machine/i386/clone.S: Ditto.
4334         * libc/sys/linux/linuxthreads/machine/i386/configure: Ditto.
4335         * libc/sys/linux/linuxthreads/machine/i386/configure.in: Ditto.
4336         * libc/sys/linux/linuxthreads/machine/i386/i386-sysdep.S: Ditto.
4337         * libc/sys/linux/linuxthreads/machine/i386/i386-sysdep.h: Ditto.
4338         * libc/sys/linux/linuxthreads/machine/i386/pspinlock.c: Ditto.
4339         * libc/sys/linux/linuxthreads/machine/i386/pt-machine.h: Ditto.
4340         * libc/sys/linux/linuxthreads/machine/i386/sigcontextinfo.h: Ditto.
4341         * libc/sys/linux/linuxthreads/machine/i386/stackinfo.h: Ditto.
4342         * libc/sys/linux/linuxthreads/machine/i386/sysdep.S: Ditto.
4343         * libc/sys/linux/linuxthreads/machine/i386/sysdep.h: Ditto.
4344         * libc/sys/linux/linuxthreads/machine/i386/useldt.h: Ditto.
4345         * libc/sys/linux/machine/i386/dl-machine.h: Ditto.
4346         * libc/sys/linux/net/Makefile.am: Ditto.
4347         * libc/sys/linux/net/Makefile.in: Ditto.
4348         * libc/sys/linux/net/addr2ascii.3: Ditto.
4349         * libc/sys/linux/net/addr2ascii.c: Ditto.
4350         * libc/sys/linux/net/ascii2addr.c: Ditto.
4351         * libc/sys/linux/net/base64.c: Ditto.
4352         * libc/sys/linux/net/bindresvport.c: Ditto.
4353         * libc/sys/linux/net/byteorder.3: Ditto.
4354         * libc/sys/linux/net/ether_addr.c: Ditto.
4355         * libc/sys/linux/net/ethers.3: Ditto.
4356         * libc/sys/linux/net/getaddrinfo.3: Ditto.
4357         * libc/sys/linux/net/getaddrinfo.c: Ditto.
4358         * libc/sys/linux/net/gethostbydns.c: Ditto.
4359         * libc/sys/linux/net/gethostbyht.c: Ditto.
4360         * libc/sys/linux/net/gethostbyname.3: Ditto.
4361         * libc/sys/linux/net/gethostbynis.c: Ditto.
4362         * libc/sys/linux/net/gethostnamadr.c: Ditto.
4363         * libc/sys/linux/net/getifaddrs.3: Ditto.
4364         * libc/sys/linux/net/getifaddrs.c: Ditto.
4365         * libc/sys/linux/net/getipnodebyname.3: Ditto.
4366         * libc/sys/linux/net/getnameinfo.3: Ditto.
4367         * libc/sys/linux/net/getnameinfo.c: Ditto.
4368         * libc/sys/linux/net/getnetbydns.c: Ditto.
4369         * libc/sys/linux/net/getnetbyht.c: Ditto.
4370         * libc/sys/linux/net/getnetbynis.c: Ditto.
4371         * libc/sys/linux/net/getnetent.3: Ditto.
4372         * libc/sys/linux/net/getnetnamadr.c: Ditto.
4373         * libc/sys/linux/net/getproto.c: Ditto.
4374         * libc/sys/linux/net/getprotoent.3: Ditto.
4375         * libc/sys/linux/net/getprotoent.c: Ditto.
4376         * libc/sys/linux/net/getprotoname.c: Ditto.
4377         * libc/sys/linux/net/getservbyname.c: Ditto.
4378         * libc/sys/linux/net/getservbyport.c: Ditto.
4379         * libc/sys/linux/net/getservent.3: Ditto.
4380         * libc/sys/linux/net/getservent.c: Ditto.
4381         * libc/sys/linux/net/herror.c: Ditto.
4382         * libc/sys/linux/net/hesiod.3: Ditto.
4383         * libc/sys/linux/net/hesiod.c: Ditto.
4384         * libc/sys/linux/net/if_indextoname.3: Ditto.
4385         * libc/sys/linux/net/ifname.c: Ditto.
4386         * libc/sys/linux/net/inet.3: Ditto.
4387         * libc/sys/linux/net/inet6_option_s: Ditto.pace.3
4388         * libc/sys/linux/net/inet6_rthdr_space.3: Ditto.
4389         * libc/sys/linux/net/inet_addr.c: Ditto.
4390         * libc/sys/linux/net/inet_lnaof.c: Ditto.
4391         * libc/sys/linux/net/inet_makeaddr.c: Ditto.
4392         * libc/sys/linux/net/inet_net.3: Ditto.
4393         * libc/sys/linux/net/inet_net_ntop.c: Ditto.
4394         * libc/sys/linux/net/inet_net_pton.c: Ditto.
4395         * libc/sys/linux/net/inet_neta.c: Ditto.
4396         * libc/sys/linux/net/inet_netof.c: Ditto.
4397         * libc/sys/linux/net/inet_network.c: Ditto.
4398         * libc/sys/linux/net/inet_ntoa.c: Ditto.
4399         * libc/sys/linux/net/inet_ntop.c: Ditto.
4400         * libc/sys/linux/net/inet_pton.c: Ditto.
4401         * libc/sys/linux/net/innetgr-stub.c: Ditto.
4402         * libc/sys/linux/net/ip6opt.c: Ditto.
4403         * libc/sys/linux/net/iso_addr.3: Ditto.
4404         * libc/sys/linux/net/iso_addr.c: Ditto.
4405         * libc/sys/linux/net/issetugid-stub.c: Ditto.
4406         * libc/sys/linux/net/linkaddr.3: Ditto.
4407         * libc/sys/linux/net/linkaddr.c: Ditto.
4408         * libc/sys/linux/net/map_v4v6.c: Ditto.
4409         * libc/sys/linux/net/name6.c: Ditto.
4410         * libc/sys/linux/net/namespace.h: Ditto.
4411         * libc/sys/linux/net/ns.3: Ditto.
4412         * libc/sys/linux/net/ns_addr.c: Ditto.
4413         * libc/sys/linux/net/ns_name.c: Ditto.
4414         * libc/sys/linux/net/ns_netint.c: Ditto.
4415         * libc/sys/linux/net/ns_ntoa.c: Ditto.
4416         * libc/sys/linux/net/ns_parse.c: Ditto.
4417         * libc/sys/linux/net/ns_print.c: Ditto.
4418         * libc/sys/linux/net/ns_ttl.c: Ditto.
4419         * libc/sys/linux/net/nsap_addr.c: Ditto.
4420         * libc/sys/linux/net/nsdispatch.3: Ditto.
4421         * libc/sys/linux/net/nsdispatch.c: Ditto.
4422         * libc/sys/linux/net/nslexer.c: Ditto.
4423         * libc/sys/linux/net/nslexer.l: Ditto.
4424         * libc/sys/linux/net/nsparser.c: Ditto.
4425         * libc/sys/linux/net/nsparser.h: Ditto.
4426         * libc/sys/linux/net/nsparser.y: Ditto.
4427         * libc/sys/linux/net/rcmd.3: Ditto.
4428         * libc/sys/linux/net/rcmd.c: Ditto.
4429         * libc/sys/linux/net/rcmdsh.3: Ditto.
4430         * libc/sys/linux/net/rcmdsh.c: Ditto.
4431         * libc/sys/linux/net/recv.c: Ditto.
4432         * libc/sys/linux/net/res_comp.c: Ditto.
4433         * libc/sys/linux/net/res_config.h: Ditto.
4434         * libc/sys/linux/net/res_data.c: Ditto.
4435         * libc/sys/linux/net/res_debug.c: Ditto.
4436         * libc/sys/linux/net/res_init.c: Ditto.
4437         * libc/sys/linux/net/res_mkquery.c: Ditto.
4438         * libc/sys/linux/net/res_mkupdate.c: Ditto.
4439         * libc/sys/linux/net/res_query.c: Ditto.
4440         * libc/sys/linux/net/res_send.c: Ditto.
4441         * libc/sys/linux/net/res_update.c: Ditto.
4442         * libc/sys/linux/net/resolver.3: Ditto.
4443         * libc/sys/linux/net/rthdr.c: Ditto.
4444         * libc/sys/linux/net/send.c: Ditto.
4445         * libc/sys/linux/net/un-namespace.h: Ditto.
4446         * libc/sys/linux/net/vars.c: Ditto.
4447         * libc/sys/linux/stdlib/COPYRIGHT: Ditto.
4448         * libc/sys/linux/stdlib/Makefile.am: Ditto.
4449         * libc/sys/linux/stdlib/Makefile.in: Ditto.
4450         * libc/sys/linux/stdlib/cclass.h: Ditto.
4451         * libc/sys/linux/stdlib/cname.h: Ditto.
4452         * libc/sys/linux/stdlib/collate.c: Ditto.
4453         * libc/sys/linux/stdlib/collate.h: Ditto.
4454         * libc/sys/linux/stdlib/collcmp.c: Ditto.
4455         * libc/sys/linux/stdlib/engine.c: Ditto.
4456         * libc/sys/linux/stdlib/fnmatch.3: Ditto.
4457         * libc/sys/linux/stdlib/fnmatch.c: Ditto.
4458         * libc/sys/linux/stdlib/glob.3: Ditto.
4459         * libc/sys/linux/stdlib/glob.c: Ditto.
4460         * libc/sys/linux/stdlib/reallocf.c: Ditto.
4461         * libc/sys/linux/stdlib/regcomp.c: Ditto.
4462         * libc/sys/linux/stdlib/regerror.c: Ditto.
4463         * libc/sys/linux/stdlib/regex.3: Ditto.
4464         * libc/sys/linux/stdlib/regex2.h: Ditto.
4465         * libc/sys/linux/stdlib/regexec.c: Ditto.
4466         * libc/sys/linux/stdlib/regfree.c: Ditto.
4467         * libc/sys/linux/stdlib/utils.h: Ditto.
4468         * libc/sys/linux/stdlib/wordexp.c: Ditto.
4469         * libc/sys/linux/stdlib/wordfree.c: Ditto.
4470         * libc/sys/linux/sys/dlfcn.h: Ditto.
4471         * libc/sys/linux/sys/elfclass.h: Ditto.
4472         * libc/sys/linux/sys/event.h: Ditto.
4473         * libc/sys/linux/sys/ioccom.h: Ditto.
4474         * libc/sys/linux/sys/libc-tsd.h: Ditto.
4475         * libc/sys/linux/sys/link.h: Ditto.
4476         * libc/sys/linux/sys/lock.h: Ditto.
4477         * libc/sys/linux/sys/param.h: Ditto.
4478         * libc/sys/linux/sys/socket.h: Ditto.
4479         * libc/sys/linux/sys/sockio.h: Ditto.
4480
4481 2003-05-28  Dhananjay Deshpande  <dhananjayd@kpitcummins.com> 
4482
4483         * newlib/libc/machine/h8300/memcpy.S: Use .h8300hn and .h8300sn for 
4484         normal mode
4485         * newlib/libc/machine/h8300/memset.S: Likewise
4486         * newlib/lib/machine/h8300/reg_memcpy.S: Likewise
4487         * newlib/lib/machine/h8300/reg_memset.S: Likewise
4488         * newlib/lib/machine/h8300/setjmp.S: Likewise
4489         * newlib/lib/machine/h8300/strcmp.S: Likewise
4490         * newlib/lib/sys/h8300hms/crt0.S: Likewise
4491
4492 2003-05-13  Corinna Vinschen  <corinna@vinschen.de>
4493
4494         * libc/ctype/ctype_.c: Remove checks for deprecated __CYGWIN32__.
4495         * libc/include/stdio.h: Ditto.
4496         * libc/include/sys/config.h: Ditto.
4497         * libc/stdio/mktemp.c: Ditto.
4498
4499 2003-05-13  Corinna Vinschen  <corinna@vinschen.de>
4500
4501         * libc/locale/ldpart.c (__part_load_locale): Substitute
4502         __CYGWIN_USE_BIG_TYPES__ by __USE_INTERNAL_STAT64.
4503         * libc/search/hash.c (__hash_open): Ditto.
4504         (init_hash): Ditto.
4505         * libc/stdio/fseek.c (fseek): Ditto.
4506         * libc/stdio/makebuf.c (__smakebuf): Ditto.
4507         * libc/stdio/mktemp.c (_gettemp): Ditto.
4508
4509 2003-05-12  Corinna Vinschen  <corinna@vinschen.de>
4510
4511         * libc/include/stdio.h: Change one __CYGWIN__ to __CYGWIN32__.
4512
4513 2003-05-12  Corinna Vinschen  <corinna@vinschen.de>
4514
4515         * configure.host: Accomodate removing the libc/sys/cygwin dir.
4516         * libc/locale/ldpart.c (__part_load_locale): Use 64 bit stat call
4517         if __CYGWIN_USE_BIG_TYPES__ is set.
4518         * libc/search/hash.c (__hash_open): Ditto.
4519         (init_hash): Ditto.
4520         * libc/stdio/fseek.c (fseek): Ditto.
4521         * libc/stdio/makebuf.c (__smakebuf): Ditto.
4522         * libc/stdio/mktemp.c (_gettemp): Ditto.
4523         * libc/sys/cygwin/Makefile.am: Remove.
4524         * libc/sys/cygwin/Makefile.in: Remove.
4525         * libc/sys/cygwin/aclocal.m4: Remove.
4526         * libc/sys/cygwin/configure: Remove.
4527         * libc/sys/cygwin/configure.in: Remove.
4528         * libc/sys/cygwin/crt0.c: Move to winsup/cygwin directory.
4529         * libc/sys/cygwin/sys/dirent.h: Move to winsup/cygwin/include/sys
4530         directory.
4531         * libc/sys/cygwin/sys/param.h: Ditto.
4532         * libc/sys/cygwin/sys/utime.h: Ditto.
4533         * libc/sys/cygwin/sys/utmp.h: Ditto.
4534
4535 2003-05-11  Corinna Vinschen  <corinna@vinschen.de>
4536
4537         * libc/include/sys/types.h: Don't define key_t for Cygwin.
4538
4539 2003-05-10  Christopher Faylor  <cgf@redhat.com>
4540
4541         * libc/sys/cygwin/sys/dirent.h (struct dirent): Accommodate (slightly)
4542         64 bit inodes.
4543
4544 2003-05-09  Corinna Vinschen  <corinna@vinschen.de>
4545
4546         * libc/include/sys/config.h: Remove all Cygwin specific configuration.
4547         Include cygwin/config.h instead.
4548
4549 2003-04-16  Jeff Johnston  <jjohnstn@redhat.com>
4550
4551         * newlib/libc/machine/powerpc (ato*fix*.c,strto*fix*.c): Shield
4552         all code with #ifdef __SPE__ test.
4553         * newlib/libc/machine/powerpc (simdldtoa.c, ufix64toa.c): Ditto.
4554
4555 2003-04-15  Chris January <chris@atomice.net>
4556
4557         * newlib/libc/include/sys/unistd.h: add declaration for gethostid on
4558         Cygwin.
4559
4560 2003-04-09  J"orn Rennecke <joern.rennecke@superh.com>
4561
4562         * libc/machine/sh/memset.S: Avoid clobbering volatile
4563         objects following a tiny to-be-set array in the same quadword.
4564
4565 2001-04-09  Corinna Vinschen  <corinna@vinschen.de>
4566
4567         * libc/include/wchar.h: Add definitions for wcswidth and wcwidth.  
4568         * libc/string/Makefile.am: Add wcswidth.c and wcwidth.c
4569         * libc/string/Makefile.in: Regenerated.
4570         * libc/string/wcswidth.c: New file.
4571         * libc/string/wcwidth.c: New file.
4572         * libc/string/wcstrings.tex: Add wcswidth and wcwidth.
4573
4574 Thu Apr  3 14:01:16 2003  J"orn Rennecke <joern.rennecke@superh.com>
4575
4576         * libc/machine/sh/memset.S: Fix problem with alloco region
4577         exceeding destination region for length >= 88 bytes, start
4578         & 0x16 == 0, end & 0x1f == 18.
4579
4580 2001-04-03  Corinna Vinschen  <corinna@vinschen.de>
4581
4582         * libc/string/wcscoll.c: Fix comment.
4583
4584 2001-04-02  Corinna Vinschen  <corinna@vinschen.de>
4585
4586         * libc/include/wchar.h: Add definition for wcscoll.
4587         * libc/string/Makefile.am: Add wcscoll.c.
4588         * libc/string/Makefile.in: Regenerated.
4589         * libc/string/wcscoll.c: New file.
4590         * libc/string/wcstrings.tex: Add wcscoll.   
4591
4592 2003-04-01  Corinna Vinschen  <corinna@vinschen.de>
4593
4594         * libc/stdio/sscanf.c: Update flags description.
4595         * libc/stdio/vfscanf.c: Add CHAR flag value to denote 8 bit target
4596         type.
4597         (__svfscanf_r): Add 'hh' and 'll' handling.
4598
4599 2003-04-01  Corinna Vinschen  <corinna@vinschen.de>
4600
4601         * libc/sys/cygwin/sys/dirent.h (struct DIR): Change type of
4602         __d_position member to _off_t.
4603
4604 2003-03-20  Jeff Johnston  <jjohnstn@redhat.com>
4605
4606         * libc/stdio/vfscanf.c (__svfscanf_r): For floating point conversion,
4607         count all characters used to create number against maximum width.
4608         * libc/machine/powerpc/vfscanf.c (__svfscanf_r): Ditto.
4609
4610 2003-03-18  D.Venkatasubramanian  <dvenkat@noida.hcltech.com>
4611
4612         * libc/include/sys/h8300hms/crt0.S[__SIMULATOR__]: Add commandline
4613         support.
4614         * configure.host (h8300*-*-*): Added comment regarding -D__SIMULATOR__
4615         flag to support simulator only extensions.
4616
4617 2003-03-17  Bob Cassels  <bcassels@abinitio.com>
4618
4619         * libc/string/wcschr.c: (wcschr): Look for character first, 
4620         then for end of string, so you can do wcschr(x, '\0').
4621
4622 2003-03-10  Corinna Vinschen  <corinna@vinschen.de>     
4623
4624         * libc/include/stdio.h: Declare fgetpos, fsetpos, fseeko and ftello
4625         with internal (_fpos_t and _off_t) datatypes when compiling newlib.
4626         * libc/include/sys/unistd.h: Declare _lseek using _off_t.
4627         * libc/reent/lseekr.c (_lseek_r): Use _off_t instead of off_t.
4628         * libc/stdio/fseeko.c (fseeko): Ditto.
4629         * libc/stdio/ftello.c (ftello): Ditto.
4630         * libc/stdio/stdio.c (__swrite): Ditto.
4631         (__sseek): Ditto.
4632         * libc/stdio/fgetpos.c (fgetpos): Use _fpos_t instead of fpos_t.
4633         * libc/stdio/fseek.c (fseek): Ditto.
4634         * libc/stdio/fsetpos.c (fsetpos): Ditto.
4635         * libc/stdio/ftell.c (ftell): Ditto.
4636         * libc/stdio/local.h: Declare __sseek using _off_t.
4637
4638 2003-03-09  Corinna Vinschen  <corinna@vinschen.de>
4639
4640         * libc/reent/lseekr.c (lseek_r): Use _off_t instead of off_t.
4641
4642 2003-03-09  Corinna Vinschen  <corinna@vinschen.de>
4643
4644         * libc/include/sys/config.h: Define __CYGWIN_USE_BIG_TYPES__ for
4645         Cygwin.
4646
4647 2003-03-09  Corinna Vinschen  <corinna@vinschen.de>
4648
4649         * libc/include/pwd.h: Add guards to avoid type clashes when compiling
4650         Cygwin.
4651         * libc/include/sys/stat.h: Ditto.
4652         * libc/include/sys/unistd.h: Ditto.
4653         * libc/sys/cygwin/sys/dirent.h: Ditto.
4654
4655 2003-03-07  Christopher Faylor  <cgf@redhat.com>
4656
4657         * libc/include/sys/unistd.h: Guard getopt.h call to force only
4658         declaration of getopt and avoid getopt_long declaration.
4659         * libc/sys/cygwin/include/unistd.h: Remove.
4660
4661 2003-03-07  Corinna Vinschen  <corinna@vinschen.de>
4662
4663         * configure.host: Define stdio64_dir for Cygwin.
4664         * libc/include/stdio.h: Change definition of fpos_t to fulfill
4665         Cygwin 64bit file access requirements.
4666         Drop definition of f*64() functions when compiled for Cygwin.
4667         * libc/include/sys/config.h: Define __LARGE64_FILES for Cygwin.
4668         * libc/reent/lseek64r.c: Use _off64_t instead of off64_t.
4669         * libc/stdio64/local64.h: Use _fpos64_t instead of fpos64_t.
4670
4671 2003-03-07   Jeff Johnston  <jjohnstn@redhat.com>
4672
4673         * libc/include/sys/reent.h: Remove extraneous _sig_func
4674         declaration.
4675
4676 2003-02-25   D.Venkatasubramanian <dvenkat@noida.hcltech.com>
4677
4678         * libc/sys/h8300hms/Makefile.am: Add support for new files.
4679         * libc/sys/h8300hms/Makefile.in: Regenerated.
4680         * libc/sys/h8300hms/close.S: New file.
4681         * libc/sys/h8300hms/fstat.S: Ditto.
4682         * libc/sys/h8300hms/lseek.S: Ditto.
4683         * libc/sys/h8300hms/open.S: Ditto.
4684         * libc/sys/h8300hms/stat.S: Ditto.
4685         * libc/sys/h8300hms/read.S: New file to replace read.c.
4686         * libc/sys/h8300hms/read.c: Removed.
4687         * libc/sys/h8300hms/syscalls.c: Removed functions _open,
4688         _lseek, _close, _stat, _fstat.
4689         * libc/sys/h8300hms/write.S: New file to replace write.c.
4690         * libc/sys/h8300hms/write.c: Removed.
4691
4692 2003-02-20  Nick Clifton  <nickc@redhat.com>
4693
4694         * Add support for Cirrus Maverick ARM co-processor:
4695         
4696         2000-09-13  Aldy Hernandez  <aldyh@redhat.com>
4697
4698                 * libc/include/machine/ieeefp.h: Set IEEE_BIG_ENDIAN or
4699                 IEEE_LITTLE_ENDIAN depending on endian mode (cirrus).
4700
4701         2000-08-11  Aldy Hernandez  <aldyh@redhat.com>
4702
4703                 * configure.host: set sys_dir, syscall_dir, and
4704                 newlib_cflags for ep9312 host.
4705
4706         * configure.host: Restore alpha sorting of entries in case
4707         statements.
4708
4709 2003-02-19  Jeff Johnston  <jjohnstn@redhat.com>
4710
4711         * libc/stdlib/mallocr.c (unlink): Revert 02/18 fix.
4712
4713 2003-02-18  Christian Groessler  <chris@groessler.org>
4714
4715         * libc/machine/z8k/setjmp.S (_setjmp / _longjmp): Fix to
4716         support z8001 segmented mode.
4717
4718 2003-02-18  Earnie Boyd  <earnie@users.sf.net>
4719
4720         * libc/stdlib/mallocr.c (unlink): Don't assign a value to a pointer
4721         with a NULL value.
4722
4723 2003-02-10  Christopher Faylor  <cgf@redhat.com>
4724
4725         * libc/include/sys/types.h: Don't define __MS_types__ for Cygwin.
4726         Don't define some types under cygwin.
4727
4728 2003-02-07  Jeff Johnston  <jjohnstn@redhat.com>
4729
4730         * acinclude.m4 (--disable-newlib-supplied-syscalls): New configuration 
4731         option to allow disabling of syscalls being supplied in newlib.
4732         * aclocal.m4: Regenerated.
4733         * configure: Ditto.
4734         * configure.host: Add support of new configuration option and add
4735         -D__NO_SYSCALLS__ if newlib supplied syscalls are disabled.
4736         * doc/aclocal.m4: Regenerated.
4737         * doc/configure: Ditto.
4738         * libc/*aclocal.m4: Ditto.
4739         * libc/*configure: Ditto.
4740         * libm/*aclocal.m4: Ditto.
4741         * libm/*configure: Ditto.
4742         * libc/sys/arm/Makefile.am: Don't build syscalls.o if new option
4743         is disabled.
4744         * libc/sys/arm/Makefile.in: Regenerated.
4745
4746 2003-02-05  Jonathan Larmour  <jifl@eCosCentric.com>
4747
4748         * libc/stdio/vsprintf.c (vsprintf, _vsprintf_r): Set _file fd to
4749         -1 to be sure it cannot later match a valid file fd causing
4750         isatty() to return 1.
4751         * libc/stdio/asprintf.c (asprintf, _asprintf_r): Ditto.
4752         * libc/stdio/sprintf.c (sprintf, _sprintf_r): Ditto.
4753         * libc/stdio/vasprintf.c (vasprintf, _vasprintf_r): Ditto.
4754
4755 2003-02-03  Jeff Johnston  <jjohnstn@redhat.com>
4756
4757         * libc/stdlib/ldtoa.c (_ldtoa_r): Fix code to allocate the format
4758         buffer based on the precision, after we have processed the input value 
4759         in a local buffer and know its relative magnitude. 
4760
4761 2003-01-31  Michael Snyder  <msnyder@redhat.com>
4762
4763         * libc/sys/h8300hms/_exit.c (_exit, __exit):  Slip a magic cookie
4764         into registers r1 and r2, so that the simulator can distinguish
4765         this trap from a breakpoint trap.  Copied from libgloss.
4766
4767 2003-01-31  Michael Snyder  <msnyder@redhat.com>
4768
4769         * libc/sys/h8300hms/crt0.S (_start): Change local label
4770         from .loop to .Loop, so that ld and gdb will ignore it.
4771
4772 2003-01-29  Jason Tishler  <jason@tishler.net>
4773
4774         * libc/include/time.h: Declare nanosleep() under Cygwin.
4775
4776 2003-01-24  Nick Clifton  <nickc@redhat.com>
4777
4778         * Add sh2e support:
4779
4780         2002-04-02  Alexandre Oliva  <aoliva@redhat.com>
4781
4782                 * libc/machine/sh/asm.h: Added __SH2E__ next to __SH3E__.
4783                 * libc/machine/sh/setjmp.S: Likewise.
4784                 * libc/include/machine/ieeefp.h: Likewise.
4785
4786 2003-01-24  Corinna Vinschen  <corinna@vinschen.de>
4787
4788         * libc/include/sys/unistd.h: Add setregid and setreuid declarations
4789         for Cygwin.
4790
4791 2003-01-21 Anita Kulkarni  <anitak@kpit.com>
4792   
4793         * libc/time/difftime.c : Typecast the result to double.
4794
4795 2003-01-20  Christopher Faylor  <cgf@redhat.com>
4796
4797         * libc/include/sys/unistd.h: Add rresvport declaration for cygwin.
4798
4799 2003-01-18  Nick Clifton  <nickc@redhat.com>
4800
4801         * libc/include/machine/ieeefp.h : Define __IEEE_BIG_ENDIAN,
4802         __SMALL_BITFIELDS and _DOUBLE_IS_32BITS for IP2K.
4803
4804 2003-01-16  Joel Sherrill <joel@OARcorp.com>
4805
4806         * libc/sys/rtems/include/limits.h, libc/sys/rtems/sys/param.h,
4807         libc/sys/rtems/sys/syslimits.h: Update to be in sync with what 
4808         constants are defined in each file in the shared versions in
4809         libc/include.
4810         * libc/sys/rtems/crt0.c: Define extra symbols on SH and HP-PA to
4811         autoconf can link programs.
4812         * libc/include/machine/types.h: Explicitly specify signed on
4813         intXX_t types to ensure they are signed.
4814
4815 2003-01-14  Christopher Faylor  <cgf@redhat.com>
4816
4817         * libc/time/strftime.c (strftime): Add '%h' and '%l, %k' GNU
4818         extensions.
4819
4820 2003-01-08  Richard Sandiford  <rsandifo@redhat.com>
4821
4822         * configure.host (mips64vr-elf, mips64vrel-elf): New config.
4823
4824 2003-01-07  Charles Wilson  <cwilson@ece.gatech.edu>
4825
4826         * libc/stdio/sprintf.c: fix typo
4827         * libc/stdio/vfprintf.c: fix typo
4828
4829 2003-01-07  Jeff Johnston  <jjohnstn@redhat.com>
4830
4831         * configure.host: Support long double I/O for x86-linux.
4832         * libc/stdlib/ldtoa.c (_ldtoa_r): Fix code to allocate a buffer
4833         large enough to hold formatted result.
4834         * libc/machine/powerpc/simdldtoa.c (_simdldtoa_r): Ditto.
4835
4836 2003-01-06  Charles Wilson  <cwilson@ece.gatech.edu>
4837
4838         * Makefile.am: Add vasprintf.
4839         * Makefile.in: Regenerated.
4840
4841 2003-01-06  Charles Wilson  <cwilson@ece.gatech.edu>
4842
4843         * asprintf.c (_asprintf_r): insure both declarations
4844         are the same.
4845
4846 2002-12-28  Christopher Faylor  <cgf@redhat.com>
4847
4848         * libc/include/sys/unistd.h: Under cygwin, just include getopt.h rather
4849         than defining getopt directly.
4850
4851 2002-12-20  Jeff Johnston  <jjohnstn@redhat.com>
4852
4853         * NEWS: Update with 1.11.0 info.
4854         * README: Ditto.
4855         * acinclude.m4: Change version number to 1.11.0.
4856         * aclocal.m4: Regenerated.
4857         * configure: Ditto.
4858         * doc/aclocal.m4: Ditto.
4859         * doc/configure: Ditto.
4860         * libc/*/aclocal.m4: Ditto.
4861         * libc/*/configure: Ditto.
4862         * libc/libc.texinfo: Ditto.
4863         * libm/*/aclocal.m4: Ditto.
4864         * libm/*/configure: Ditto.
4865         * libm/libm.texinfo: Ditto.
4866         * libc/sys/linux/shared.ld: Add VERS_1.11.
4867
4868 2002-12-20  Jeff Johnston  <jjohnstn@redhat.com>
4869
4870         * libc/machine/i386/f_atan2.S: Change copyright from Cygnus
4871         Solutions to Red Hat Inc.
4872         * libc/machine/i386/f_atan2f.S: Ditto.
4873         * libc/machine/i386/f_exp.c: Ditto.
4874         * libc/machine/i386/f_expf.c: Ditto.
4875         * libc/machine/i386/f_frexp.S: Ditto.
4876         * libc/machine/i386/f_frexpf.S: Ditto.
4877         * libc/machine/i386/f_ldexp.S: Ditto.
4878         * libc/machine/i386/f_ldexpf.S: Ditto.
4879         * libc/machine/i386/f_log.S: Ditto.
4880         * libc/machine/i386/f_log10.S: Ditto.
4881         * libc/machine/i386/f_log10f.S: Ditto.
4882         * libc/machine/i386/f_logf.S: Ditto.
4883         * libc/machine/i386/f_pow.c: Ditto.
4884         * libc/machine/i386/f_powf.c: Ditto.
4885         * libc/machine/i386/f_tan.S: Ditto.
4886         * libc/machine/i386/f_tanf.S: Ditto.
4887         * libc/machine/i386/memchr.S: Ditto.
4888         * libc/machine/i386/memcmp.S: Ditto.
4889         * libc/machine/i386/memcpy.S: Ditto.
4890         * libc/machine/i386/memmove.S: Ditto.
4891         * libc/machine/i386/memset.S: Ditto.
4892         * libc/machine/i386/strchr.S: Ditto.
4893         * libc/machine/i386/strlen.S: Ditto.
4894         * libm/machine/i386/f_atan2.S: Ditto.
4895         * libm/machine/i386/f_atan2f.S: Ditto.
4896         * libm/machine/i386/f_exp.c: Ditto.
4897         * libm/machine/i386/f_expf.c: Ditto.
4898         * libm/machine/i386/f_frexp.S: Ditto.
4899         * libm/machine/i386/f_frexpf.S: Ditto.
4900         * libm/machine/i386/f_ldexp.S: Ditto.
4901         * libm/machine/i386/f_ldexpf.S: Ditto.
4902         * libm/machine/i386/f_log.S: Ditto.
4903         * libm/machine/i386/f_log10.S: Ditto.
4904         * libm/machine/i386/f_log10f.S: Ditto.
4905         * libm/machine/i386/f_logf.S: Ditto.
4906         * libm/machine/i386/f_pow.c: Ditto.
4907         * libm/machine/i386/f_powf.c: Ditto.
4908         * libm/machine/i386/f_tan.S: Ditto.
4909         * libm/machine/i386/f_tanf.S: Ditto.
4910
4911 2002-12-20  Jeff Johnston  <jjohnstn@redhat.com>
4912
4913         * libc/stdlib/environ.c: Update license to Red Hat.
4914         * libc/machine/hppa/setjmp.S: Ditto.
4915         * libm/test/Makefile.in: Ditto.
4916
4917 2002-12-19  Jeff Johnston  <jjohnstn@redhat.com>
4918
4919         * configure.host: Remove references to go32.
4920         * libc/sys/go32/*: Removed.
4921
4922 2002-12-16  Kazu Hirata  <kazu@cs.umass.edu>
4923
4924         * libc/include/sys/config.h: Change setting of INT_MAX
4925         and UINT_MAX, to use __INT_MAX__ for __H8300__, __H8300H__,
4926         __H8300S__.  Also consolidate flag settings for these
4927         platforms.
4928
4929 2002-12-10  Joel Sherrill  <joel@OARcorp.com>
4930
4931         * libc/include/machine/setjmp.h: Make sure _JBLEN is defined
4932         for i386-rtems targets.
4933
4934 2002-12-06  Jeff Johnston  <jjohnstn@redhat.com>
4935
4936         * libc/include/stdlib.h (strtof): New prototype (from C99).
4937         (strtodf): Changed from prototype to macro which redefines
4938         to strtof.
4939         * libc/stdlib/atof.c: Change documentation to refer to strtof
4940         instead of strtodf.
4941         * libc/stdlib/atoff.c (atoff): Change to call strtof instead of
4942         strtodf.
4943         * libc/stdlib/strtod.c (strtodf): Renamed to strtof.
4944         (strtof): New function.
4945         * libm/test/convert.c (test_strtodf): Renamed to test_strtof which
4946         calls strtof.
4947
4948 2002-11-27  Christopher Faylor  <cgf@redhat.com>
4949
4950         * libc/string/memset.c (memset): Fix comment.
4951
4952 2002-11-26  Christopher Faylor  <cgf@redhat.com>
4953
4954         * libc/string/memset.c (memset): Move initialization of 'd' earlier in
4955         function.
4956
4957 2002-11-25  Christopher Faylor  <cgf@redhat.com>
4958
4959         * libc/string/memset.c (memset): Minor optimization: Use new 'd'
4960         variable, introduced below, everywhere.
4961
4962 2002-11-25  Kazu Hirata  <kazu@cs.umass.edu>
4963
4964         * libc/string/memset.c (memset): Make it safe even if
4965         sizeof (int) = 2.
4966
4967 2002-11-22  Joe Buehler  <jbuehler@hekimian.com>
4968
4969         * configure.in: Change check for libc/include in ${CC} to
4970         use an intermediate value so as to work with different shells.
4971         * configure: Regenerated.
4972         * Makefile.in: Ditto.
4973
4974 2002-11-22  Vijay L. Khuspe  <vijayk1@kpit.com>
4975
4976         * libc/sys/h8300hms/read.c: Add support for normal mode
4977         architecture.
4978
4979 2002-11-20  Ryo Tsuruta  <ryo@kitanet.ne.jp>
4980
4981         * libc/machine/h8300/setjmp.S (setjmp, longjmp): Combine common
4982         code for __H8300H__ and __H8300S__.  Also return 32-bit return code
4983         when -mint32 is used.
4984
4985 2002-11-18  Nick Clifton  <nickc@redhat.com>
4986
4987         * libc/sys/arm/crt0.S: Add NULL to end of argv array.
4988
4989 2002-11-14  Jeff Johnston  <jjohnstn@redhat.com>
4990
4991         * testsuite/lib/passfail.exp (newlib_pass_fail): Changed to
4992         only issue one pass/fail message for a compile/link/execute.
4993         * testsuite/newlib.elix/elix.exp: New file.
4994         * testsuite/newlib.elix/tmmap.c: Ditto.
4995
4996 2002-11-06  Christopher Faylor  <cgf@redhat.com>
4997
4998         * libc/stdlib/malign.c: Don't compile if MALLOC_PROVIDED.
4999         * libc/stdlib/mlock.c: Ditto.
5000         * libc/stdlib/msize.c: Ditto.
5001         * libc/stdlib/msize.c: Ditto.
5002         * libc/stdlib/mtrim.c: Ditto.
5003         * libc/stdlib/valloc.c: Ditto.
5004
5005 2002-11-12  Jeff Johnston  <jjohnstn@redhat.com>
5006
5007         * libc/stdlib/ldtoa.c (e64toe): When checking the exponent
5008         for inf/nan, make sure that the check ignores the sign bit.
5009
5010 2002-11-07  Joel Sherrill <joel@OARcorp.com>
5011
5012         * libc/sys/rtems/machine: New directory.
5013         * libc/sys/rtems/machine/limits.h, libc/sys/rtems/machine/param.h,
5014         libc/sys/rtems/sys/param.h, libc/sys/rtems/sys/syslimits.h,
5015         libc/sys/rtems/sys/utime.h: New files added to make *-rtems newlib
5016         targets more BSD like when installed without requiring files to
5017         be overwritten at install point when RTEMS itself is installed.
5018         * Makefile.am: Pick up system dependent machine .h files such as
5019         might be found on a BSD-ish system.
5020         * Makefile.in: Regenerate.
5021         * libc/include/machine/types.h: When on an RTEMS target, define a
5022         few BSD flavor types. 
5023
5024 2002-11-06  Sergey Okhapkin  <sos@prospect.com.ru>
5025
5026         * include/utmp.h: Define WTMP_FILE.  Define and use UT_IDLEN.
5027
5028 2002-11-06  Kazuhiro Fujieda  <fujieda@jaist.ac.jp>
5029
5030         * libc/include/wchar.h: Use _{BEGIN,END}_STD_C instead of extern "C".
5031         * libc/include/wctype.h: Ditto.
5032
5033 2002-11-04  Jeff Johnston  <jjohnstn@redhat.com>
5034
5035         * libc/include/wchar.h: Add extern "C" specifier if C++.
5036         * libc/include/wctype.h: Ditto.
5037
5038 2002-10-18  Jeff Johnston  <jjohnstn@redhat.com>
5039
5040         * testsuite/newlib.wctype/tiswctype.c: New test case.
5041         * testsuite/newlib.wctype/twctrans.c: Ditto.
5042
5043 2002-10-18  Jeff Johnston  <jjohnstn@redhat.com>
5044
5045         * libc/sys/linux/machine/i386/include/endian.h: New file.
5046         * libc/sys/linux/machine/i386/include/param.h: Ditto.
5047
5048 2002-10-18  Jeff Johnston  <jjohnstn@redhat.com>
5049
5050         * libm/machine/i386/aclocal.m4: Regenerated.
5051         * libm/machine/i386/configure: Ditto.
5052
5053 2002-10-18  Jeff Johnston  <jjohnstn@redhat.com>
5054
5055         * testsuite/include/check.h: New header file to use with
5056         test cases.
5057         * testsuite/lib/newlib.exp: Add testsuite/include directory
5058         to list of header files to use.
5059         * testsuite/newlib.wctype/twctype.c: New test case for iswctype fns.
5060         * testsuite/newlib.wctype/wctype.exp: New file.
5061
5062 2002-10-11  Graham Stott  <graham.stott@btinternet.com>
5063             Richard Sandiford  <rsandifo@redhat.com>
5064
5065         * libc/include/sys/config.h (SIZE_T_SMALLER_THAN_LONG): Undefine.
5066         * libc/stdlib/mallocr.c (long_sub_size_t): Define in a way that
5067         doesn't require the SIZE_T_SMALLER_THAN_LONG macro.
5068
5069 2002-10-07      Joel Sherrill <joel@OARcorp.com>
5070
5071         * libc/sys/rtems/crt0.c: Add even more symbols so gcc() can link
5072         dummy programs.
5073
5074 2002-10-07      Joel Sherrill <joel@OARcorp.com>
5075
5076         * libc/include/pthread.h: Define PTHREAD_CANCELED.
5077
5078 2002-10-07      Joel Sherrill <joel@OARcorp.com>
5079
5080         * libc/machine/hppa/DEFS.h, libc/machine/hppa/pcc_prefix.s,
5081         libc/machine/hppa/setjmp.S, libc/machine/hppa/DEFS.h: Make this
5082         compile with current GNU tools.
5083
5084 2002-10-07  Jeff Johnston  <jjohnstn@redhat.com>
5085
5086         * Makefile.am: Add EXTRA_DIRS to allow future dependencies on
5087         the build library.
5088         * configure.in: Ditto.
5089         * Makefile.in: Regenerated.
5090         * configure: Ditto.
5091         * libc/sys/linux/Makefile.am: Add EXTRA_SUBDIRS and EXTRA_SUBLIBS
5092         for specifying configured libraries/directories.
5093         * libc/sys/linux/configure.in: Ditto.
5094         * libc/sys/linux/Makefile.in: Regenerated.
5095         * libc/sys/linux/configure: Ditto.
5096
5097 2002-10-03  Jeff Johnston  <jjohnstn@redhat.com>
5098
5099         * libc/include/reent.h: Update documentation at start of file.
5100
5101 2002-09-27  Jim Wilson  <wilson@redhat.com>
5102
5103         * libc/sys/sysnecv850/crt0.S (start): Delete v850 code for initializing
5104         the ctbp register.
5105
5106 2002-09-27  Jeff Johnston  <jjohnstn@redhat.com>
5107
5108         * libc/ctype/jp2uc.c: Change to use multiple arrays in jp2uc.h.
5109         Also convert to EUCJP before using arrays.  For values not in
5110         the conversion arrays, return WEOF.
5111         * libc/ctype/jp2uc.h: Change from one array to a number of
5112         arrays to account for the fact that the originating table
5113         is not contiguous for the input values since some are invalid.
5114
5115 2002-09-24  Jeff Johnston  <jjohnstn@redhat.com>
5116
5117         * libc/time/ctime.c: Fix prototype documentation.
5118
5119 2002-09-24  Corinna Vinschen  <corinna@vinschen.de>
5120
5121         * libc/include/sys/errno.h: Add EOVERFLOW.
5122
5123 2002-09-20  Jeff Johnston  <jjohnstn@redhat.com>
5124
5125         * libc/include/wctype.h: New file.
5126
5127 2002-09-20  Jeff Johnston  <jjohnstn@redhat.com>
5128
5129         * libc/ctype/Makefile.am: Add new files.
5130         * libc/ctype/Makefile.in: Regenerated.
5131         * libc/ctype/ctype.tex: Add new iswxxxx, towxxxx, wctype,
5132         and wctrans functions to documentation index.
5133         * libc/ctype/iswalnum.c: New file.
5134         * libc/ctype/iswalpha.c: Ditto.
5135         * libc/ctype/iswblank.c: Ditto.
5136         * libc/ctype/iswcntrl.c: Ditto.
5137         * libc/ctype/iswctype.c: Ditto.
5138         * libc/ctype/iswdigit.c: Ditto.
5139         * libc/ctype/iswgraph.c: Ditto.
5140         * libc/ctype/iswlower.c: Ditto.
5141         * libc/ctype/iswprint.c: Ditto.
5142         * libc/ctype/iswpunct.c: Ditto.
5143         * libc/ctype/iswspace.c: Ditto.
5144         * libc/ctype/iswupper.c: Ditto.
5145         * libc/ctype/iswxdigit.c: Ditto.
5146         * libc/ctype/jp2uc.c: Ditto.
5147         * libc/ctype/jp2uc.h: Ditto.
5148         * libc/ctype/local.h: Ditto.
5149         * libc/ctype/towctrans.c: Ditto.
5150         * libc/ctype/towlower.c: Ditto.
5151         * libc/ctype/towupper.c: Ditto.
5152         * libc/ctype/utf8alpha.h: Ditto.
5153         * libc/ctype/utf8print.h: Ditto.
5154         * libc/ctype/utf8punct.h: Ditto.
5155         * libc/ctype/wctrans.c: Ditto.
5156         * libc/ctype/wctype.c: Ditto.
5157         * libc/locale/locale.c (__lc_ctype): New external array to
5158         replace static lc_ctype array.
5159         * libc/stdlib/mbtowc_r.c: Use __lc_ctype to check current lc_ctype
5160         rather than reentrancy structure's _current_locale field.
5161         * libc/stdlib/wctomb_r.c: Ditto.
5162
5163 2002-09-20  Jeff Johnston  <jjohnstn@redhat.com>
5164
5165         * configure.host: Minor comment and formatting changes.
5166         * libc/Makefile.am: Add libc_la_DEPENDENCIES.
5167         * libc/Makefile.in: Regenerated.
5168         * libc/include/sys/config.h: Minor format change.
5169
5170 2002-09-19  Jeff Johnston  <jjohnstn@redhat.com>
5171
5172         * libc/syscalls/sysfcntl.c (fcntl): Fix typo in preprocessor
5173         statement comment.
5174
5175 2002-09-19  Jeff Johnston  <jjohnstn@redhat.com>
5176
5177         * libc/posix/opendir.c (opendir): Change code to check
5178         for HAVE_FCNTL before calling fcntl.
5179         * libc/search/hash.c (hash_open): Ditto.
5180         * libc/search/hash_page.c (open_tmp): Ditto.
5181         * libc/reent/Makefile.am: Add fcntlr.c.
5182         * libc/reent/Makefile.in: Regenerated.
5183         * libc/reent/fcntlr.c: New file.
5184         * libc/stdio/fdopen.c (_fdopen_r): Change to call _fcntl_r
5185         instead of _fcntl when HAVE_FCNTL flag is set.
5186         * libc/syscalls/sysfcntl.c (fcntl): Check for HAVE_FCNTL flag
5187         to see if _fcntl or _fcntl_r should be called.  If flag is not
5188         set, default to ENOSYS stub.
5189
5190 2002-09-16  Jeff Johnston  <jjohnstn@redhat.com>
5191
5192         * libc/include/wchar.h (mbstate_t): Change protective flag to
5193         be _MBSTATE_T.
5194         * libc/include/sys/_types.h (_mbstate_t): Remove protective flag.
5195         [__CYGWIN__]: Remove special code that defines mbstate_t and WEOF
5196         for Cygwin.
5197         * libc/sys/linux/sys/_types.h (_mbstate_t): Remove protective flag.
5198
5199 2002-09-11  Jeff Johnston  <jjohnstn@redhat.com>
5200
5201         * acinclude.m4 (enable-newlib-mb): Change check to
5202         default newlib_mb variable to empty string rather than "no".
5203         * configure.host: Remove hard-coding of -DMB_CAPABLE for
5204         x86-linux and Cygwin.  Add code to check for newlib_mb
5205         being unset in which case set to "yes" for x86-linux and
5206         Cygwin.  Change check for newlib_mb being "yes" to allow
5207         for an empty string.
5208         * configure.in (_MB_LEN_MAX): New AC_DEFINE.
5209         * newlib.hin (_MB_LEN_MAX): New define to configure.
5210         * aclocal.m4: Regenerated.
5211         * configure: Ditto.
5212         * libc/include/limits.h: New file.
5213         * libc/sys/linux/include/limits.h: Ditto.
5214         * doc/aclocal.m4 doc/configure libc/aclocal.m4
5215           libc/configure libc/machine/aclocal.m4
5216           libc/machine/configure libc/machine/a29k/aclocal.m4
5217           libc/machine/a29k/configure libc/machine/arm/aclocal.m4
5218           libc/machine/arm/configure libc/machine/d10v/aclocal.m4
5219           libc/machine/d10v/configure libc/machine/d30v/aclocal.m4
5220           libc/machine/d30v/configure libc/machine/fr30/aclocal.m4
5221           libc/machine/fr30/configure libc/machine/frv/aclocal.m4
5222           libc/machine/frv/configure libc/machine/h8300/aclocal.m4
5223           libc/machine/h8300/configure libc/machine/h8500/aclocal.m4
5224           libc/machine/h8500/configure libc/machine/hppa/aclocal.m4
5225           libc/machine/hppa/configure libc/machine/i386/aclocal.m4
5226           libc/machine/i386/configure libc/machine/i960/aclocal.m4
5227           libc/machine/i960/configure libc/machine/m32r/aclocal.m4
5228           libc/machine/m32r/configure libc/machine/m68hc11/aclocal.m4
5229           libc/machine/m68hc11/configure libc/machine/m68k/aclocal.m4
5230           libc/machine/m68k/configure libc/machine/m88k/aclocal.m4
5231           libc/machine/m88k/configure libc/machine/mips/aclocal.m4
5232           libc/machine/mips/configure libc/machine/mn10200/aclocal.m4
5233           libc/machine/mn10200/configure libc/machine/mn10300/aclocal.m4
5234           libc/machine/mn10300/configure libc/machine/necv70/aclocal.m4
5235           libc/machine/necv70/configure libc/machine/powerpc/aclocal.m4
5236           libc/machine/powerpc/configure libc/machine/sh/aclocal.m4
5237           libc/machine/sh/configure libc/machine/sparc/aclocal.m4
5238           libc/machine/sparc/configure libc/machine/tic80/aclocal.m4
5239           libc/machine/tic80/configure libc/machine/v850/aclocal.m4
5240           libc/machine/v850/configure libc/machine/w65/aclocal.m4
5241           libc/machine/w65/configure libc/machine/xscale/aclocal.m4
5242           libc/machine/xscale/configure
5243           libc/machine/xstormy16/aclocal.m4
5244           libc/machine/xstormy16/configure libc/machine/z8k/aclocal.m4
5245           libc/machine/z8k/configure libc/sys/aclocal.m4
5246           libc/sys/configure libc/sys/a29khif/aclocal.m4
5247           libc/sys/a29khif/configure libc/sys/arc/aclocal.m4
5248           libc/sys/arc/configure libc/sys/arm/aclocal.m4
5249           libc/sys/arm/configure libc/sys/cygwin/aclocal.m4
5250           libc/sys/cygwin/configure libc/sys/d10v/aclocal.m4
5251           libc/sys/d10v/configure libc/sys/decstation/aclocal.m4
5252           libc/sys/decstation/configure libc/sys/go32/aclocal.m4
5253           libc/sys/go32/configure libc/sys/h8300hms/aclocal.m4
5254           libc/sys/h8300hms/configure libc/sys/h8500hms/aclocal.m4
5255           libc/sys/h8500hms/configure libc/sys/idt/aclocal.m4
5256           libc/sys/idt/configure libc/sys/linux/aclocal.m4
5257           libc/sys/linux/configure
5258           libc/sys/linux/machine/aclocal.m4
5259           libc/sys/linux/machine/configure
5260           libc/sys/linux/machine/i386/aclocal.m4
5261           libc/sys/linux/machine/i386/configure
5262           libc/sys/m88kbug/aclocal.m4 libc/sys/m88kbug/configure
5263           libc/sys/mmixware/aclocal.m4 libc/sys/mmixware/configure
5264           libc/sys/netware/aclocal.m4 libc/sys/netware/configure
5265           libc/sys/rtems/aclocal.m4 libc/sys/rtems/configure
5266           libc/sys/sh/aclocal.m4 libc/sys/sh/configure
5267           libc/sys/sparc64/aclocal.m4 libc/sys/sparc64/configure
5268           libc/sys/sun4/aclocal.m4 libc/sys/sun4/configure
5269           libc/sys/sysmec/aclocal.m4 libc/sys/sysmec/configure
5270           libc/sys/sysnec810/aclocal.m4 libc/sys/sysnec810/configure
5271           libc/sys/sysnecv850/aclocal.m4 libc/sys/sysnecv850/configure
5272           libc/sys/sysvi386/aclocal.m4 libc/sys/sysvi386/configure
5273           libc/sys/sysvnecv70/aclocal.m4 libc/sys/sysvnecv70/configure
5274           libc/sys/tic80/aclocal.m4 libc/sys/tic80/configure
5275           libc/sys/w65/aclocal.m4 libc/sys/w65/configure
5276           libc/sys/z8ksim/aclocal.m4 libc/sys/z8ksim/configure
5277           libm/aclocal.m4 libm/configure: Regenerated.
5278
5279 2002-09-09  Jeff Johnston  <jjohnstn@redhat.com>
5280
5281         * libc/sys/linux/machine/i386/crt0.c (_start): Remove
5282         code that clears the .bss section.
5283
5284 2002-09-09  Jeff Johnston  <jjohnstn@redhat.com>
5285
5286         * libc/include/sys/_types.h (_mbstate_t): Changed to use
5287         unsigned char internally.
5288         * libc/sys/linux/sys/_types.h: Ditto.
5289         * libc/include/sys/reent.h
5290         * libc/stdlib/mblen.c (mblen): Use function-specific state
5291         value from default reentrancy structure.
5292         * libc/stdlib/mblen_r.c (_mblen_r):  If return code from
5293         _mbtowc_r is less than 0, reset state __count value and
5294         return -1.
5295         * libc/stdlib/mbrlen.c (mbrlen): If the input state pointer
5296         is NULL, use the function-specific pointer provided in the
5297         default reentrancy structure.
5298         * libc/stdlib/mbrtowc.c: Add reentrant form of function.
5299         If input state pointer is NULL, use function-specific area
5300         provided in reentrancy structure.
5301         * libc/stdlib/mbsrtowcs.c: Ditto.
5302         * libc/stdlib/wcrtomb.c: Ditto.
5303         * libc/stdlib/wcsrtombs.c: Ditto.
5304         * libc/stdlib/mbstowcs.c: Reformat.
5305         * libc/stdlib/wcstombs.c: Ditto.
5306         * libc/stdlib/mbstowcs_r.c (_mbstowcs_r): If an error occurs,
5307         reset the state's __count value and return -1.
5308         * libc/stdlib/mbtowc.c: Ditto.
5309         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Add restartable functionality.
5310         If number of bytes is used up before completing a valid multibyte
5311         character, return -2 and save the state.
5312         * libc/stdlib/wctomb_r.c (_wctomb_r): Define __state as __count
5313         and change some __count references to __state for clarity.
5314
5315 2002-09-06  Jeff Johnston  <jjohnstn@redhat.com>
5316
5317         * libc/include/sys/config.h (MB_LEN_MAX): Removed as this
5318         is defined by <limits.h>.
5319
5320 2002-09-05  Kazuhiro Fujieda  <fujieda@jaist.ac.jp>
5321
5322         * libc/include/wchar.h (WCHAR_MAX): Only define if not already
5323         defined.
5324
5325 2002-09-04  Kazuhiro Fujieda  <fujieda@jaist.ac.jp>
5326
5327         * libc/include/sys/config.h: Define accordingly __WCHAR_MAX__.
5328         * libc/include/wchar.h: Define WCHAR_MIN as 0 and WCHAR_MAX as
5329         __WCHAR_MAX__ or 0x7fffffffu.
5330         * libc/string/wcscmp.c: Delete wrong and unnecessary type cast.
5331         * libc/string/wcsncmp.c: Ditto.
5332
5333 2002-09-03  Jeff Johnston  <jjohnstn@redhat.com>
5334
5335         * libc/string/wcschr.c: Add include of <stddef.h>.
5336         * libc/string/wcspbrk.c: Ditto.
5337         * libc/string/wcsrchr.c: Ditto.
5338         * libc/string/wcsstr.c: Ditto.
5339
5340 2002-09-03  Jeff Johnston  <jjohnstn@redhat.com>
5341
5342         * libc/include/sys/_types.h (_flock_t): Added.
5343         * libc/include/sys/lock.h (__lock_try_acquire): New interface.
5344         (__lock_try_acquire_recursive): Ditto.
5345         * libc/include/sys/reent.h (__sFILE, __sFILE64): Add new
5346         _lock field.
5347         * libc/stdio/findfp.c (std)[!__SINGLE_THREAD__]: Initialize _lock
5348         field.
5349         * libc/stdio/fopen.c (_fopen_r)[!__SINGLE_THREAD__]: Ditto.
5350         * libc/stdio64/fopen64.c (_fopen64_r)[!__SINGLE_THREAD__]: Ditto.
5351         * libc/sys/linux/include/time.h (struct timespec): Moved from
5352         <sys/types.h> and added check for __need_timespec flag so type
5353         can be defined by itself.
5354         * libc/sys/linux/sys/_types.h (_flock_t): New type.
5355         * libc/sys/linux/sys/types.h (struct timespec): Moved to
5356         <time.h>.
5357
5358 2002-08-29  Thomas Fitzsimmons  <fitzsim@redhat.com>
5359
5360         * libc/sys/linux/argp: New directory.
5361         * libc/sys/linux/getopt.c: New file.
5362         * libc/sys/linux/getopt1.c: New file.
5363         * libc/sys/linux/getoptlong.c: Remove file.
5364         * libc/sys/linux/include/argp.h: New file.
5365         * libc/sys/linux/Makefile.am: Define argp_dir and ARGP_LIB,
5366         based on ELIX level.
5367         (SUBDIRS): Add argp_dir.
5368         (SUBLIBS): Add ARGP_LIB.
5369         (ELIX_2_OBJS): Add getopt.$(oext), getopt1.$(oext), remove
5370         getopt_long.$(oext).
5371         * libc/sys/linux/configure.in (AC_OUTPUT): Add argp/Makefile.
5372
5373 2002-08-29  Jeff Johnston  <jjohnstn@redhat.com>
5374
5375         * libc/libc.texinfo: Add node reference to wide-character strings.
5376         * libc/string/wcstrings.tex: New file.
5377         * libc/string/strtok_r.c: Remove outdated advertising clause.
5378         * libc/string/Makefile.am (doc): Add wide-character string
5379         chapter to documentation.
5380         * libc/string/Makefile.in: Regenerated.
5381
5382 2002-08-29  Kazuhiro Fujieda  <fujieda@jaist.ac.jp>
5383
5384         * libc/include/wchar.h: Define NULL. Define WEOF more general
5385         way. Declare functions in newlib manner.
5386         * libc/stdlib/Makefile.am: Delete wmem*.c
5387         * libc/stdlib/Makefile.in: Regenerated.
5388         * libc/stdlib/wmemchr.c: Delete.
5389         * libc/stdlib/wmemcmp.c: Ditto.
5390         * libc/stdlib/wmemcpy.c: Ditto.
5391         * libc/stdlib/wmemmove.c: Ditto.
5392         * libc/stdlib/wmemset.c: Ditto.
5393         * libc/string/Makefile.am: Add wmem*.c and wcs*.c.
5394         * libc/string/Makefile.in: Regenerated.
5395         * libc/string/wcscat.c: New file derived from the NetBSD C Library.
5396         * libc/string/wcschr.c: Ditto.
5397         * libc/string/wcscmp.c: Ditto.
5398         * libc/string/wcscpy.c: Ditto.
5399         * libc/string/wcscspn.c: Ditto.
5400         * libc/string/wcslcat.c: Ditto.
5401         * libc/string/wcslcpy.c: Ditto.
5402         * libc/string/wcslen.c: Ditto.
5403         * libc/string/wcsncat.c: Ditto.
5404         * libc/string/wcsncmp.c: Ditto.
5405         * libc/string/wcsncpy.c: Ditto.
5406         * libc/string/wcspbrk.c: Ditto.
5407         * libc/string/wcsrchr.c: Ditto.
5408         * libc/string/wcsspn.c: Ditto.
5409         * libc/string/wcsstr.c: Ditto.
5410         * libc/string/wmemchr.c: Ditto.
5411         * libc/string/wmemcmp.c: Ditto.
5412         * libc/string/wmemcpy.c: Ditto.
5413         * libc/string/wmemmove.c: Ditto.
5414         * libc/string/wmemset.c: Ditto.
5415
5416 2002-08-29  Jeff Johnston  <jjohnstn@redhat.com>
5417
5418         * libc/locale/locale.c (_setlocale_r)[MB_CAPABLE]: Fix so
5419         default locale "" is accepted for LC_CTYPE or LC_MESSAGES
5420         and is treated as if "C" was specified.
5421
5422 2002-08-28  Jeff Johnston  <jjohnstn@redhat.com>
5423
5424         * Makefile.am (install-data-local): Move install of build
5425         newlib.h after installing headers in libc/include so as to
5426         overwrite default newlib.h.
5427         * Makefile.in: Regenerated.
5428
5429 2002-08-28  Jeff Johnston  <jjohnstn@redhat.com>
5430
5431         * libc/include/newlib.h: New file for tools that use newlib
5432         headers but don't build newlib first (e.g. gcc).
5433
5434 2002-08-28  Jeff Johnston  <jjohnstn@redhat.com>
5435
5436         * libc/stdlib/wmemchr.c: Explicitly include <_ansi.h>.
5437         * libc/stdlib/wmemcmp.c: Ditto.
5438         * libc/stdlib/wmemcpy.c: Ditto.
5439         * libc/stdlib/wmemmove.c: Ditto.
5440         * libc/stdlib/wmemset.c: Ditto.
5441
5442 2002-08-27  Egor Duda  <deo@logos-m.ru>
5443
5444         * libc/stdlib/wmemchr.c: New file.
5445         * libc/stdlib/wmemcmp.c: Ditto.
5446         * libc/stdlib/wmemcpy.c: Ditto.
5447         * libc/stdlib/wmemmove.c: Ditto.
5448         * libc/stdlib/wmemset.c: Ditto.
5449         * libc/stdlib/Makefile.am (GENERAL_SOURCES): Add new files.
5450         * configure.host: Default -DMB_CAPABLE for cygwin.
5451         * libc/include/wchar.h: Declare wmemchr(), wmemcmp(), wmemcpy(),
5452         wmemmove() and wmemset().  Add include of <_ansi.h>.
5453         * libc/stdlib/Makefile.in: Regenerate.
5454
5455 2002-08-27  Jeff Johnston  <jjohnstn@redhat.com>
5456
5457         * configure.host: Remove _ELIX_LEVEL flag setting.
5458         * Makefile.am(stmp-targ-include): Copy newlib.h to targ-include.
5459         (install-data-local): Install newlib.h.
5460         * Makefile.in: Regenerated.
5461         * aclocal.m4: Ditto.
5462         * configure: Ditto.
5463         * configure.in: Add AM_CONFIG_HEADER to generate newlib.h based on 
5464         newlib.hin.  Add AC_DEFINE_UNQUOTED entries for _ELIX_LEVEL
5465         and _NEWLIB_VERSION to fill in newlib.h header file entries.
5466         In AC_OUTPUT statement, unset ac_file so multilib support does
5467         not use last ac_file temporary used in newlib.h configuration.
5468         * libc/include/_ansi.h: Include <newlib.h>.
5469         * newlib.hin: New template file for newlib.h.
5470         * stamp-h.in: New file.
5471
5472 2002-08-26  Wu Yongwei <adah@netstd.com>
5473
5474         * time.h (timezonevar): Change "#if" to "#ifdef".
5475
5476 2002-08-26  Jeff Johnston  <jjohnstn@redhat.com>
5477
5478         * Makefile.am(LIBC_OBJECTLISTS): Add STDIO64_OBJECTLIST.
5479         * Makefile.in: Regenerated.
5480         * acinclude.m4: Add support for --enable-newlib-elix-level option.
5481         * aclocal.m4: Regenerated.
5482         * configure: Ditto.
5483         * configure.host: Add code to define _ELIX_LEVEL if
5484         --enable-newlib-elix-level option is used.
5485         * configure.in: 
5486         * libc/aclocal.m4: Regenerated.
5487         * libc/configure: Ditto.
5488         * libc/argz/Makefile.am: Add EL/IX level checking.
5489         * libc/argz/Makefile.in: Regenerated.
5490         * libc/argz/dummy.c: New file.
5491         * libc/ctype/Makefile.am: Add EL/IX level checking.
5492         * libc/ctype/Makefile.in: Regenerated.
5493         * libc/locale/Makefile.am: Add EL/IX level checking.
5494         * libc/locale/Makefile.in: Regenerated.
5495         * libc/posix/Makefile.am: Add EL/IX level checking.
5496         * libc/posix/Makefile.in: Regenerated.
5497         * libc/posix/telldir.c: Add EL/IX level checking.
5498         * libc/reent/Makefile.am: Ditto.
5499         * libc/reent/fstat64r.c: Ditto.
5500         * libc/reent/lseek64r.c: Ditto.
5501         * libc/reent/open64r.c: Ditto.
5502         * libc/reent/Makefile.in: Regenerated.
5503         * libc/search/Makefile.am: Add EL/IX level checking.
5504         * libc/search/Makefile.in: Regenerated.
5505         * libc/stdio/Makefile.am: Add EL/IX level checking.
5506         * libc/stdio/Makefile.in: Regenerated.
5507         * libc/stdio64/Makefile.am: Add EL/IX level checking.
5508         * libc/stdio64/Makefile.in: Regenerated.
5509         * libc/stdio64/dummy.c: New file.
5510         * libc/stdio64/fgetpos64.c: Fix so _LARGE64_FILES macro is checked
5511         after first include.
5512         * libc/stdio64/fopen64.c: Ditto.
5513         * libc/stdio64/freopen64.c: Ditto.
5514         * libc/stdio64/fseeko64.c: Ditto.
5515         * libc/stdio64/fsetpos64.c: Ditto.
5516         * libc/stdio64/ftello64.c: Ditto.
5517         * libc/stdio64/tmpfile64.c: Ditto.
5518         * libc/stdlib/Makefile.am: Add EL/IX level checking.
5519         * libc/stdlib/Makefile.in: Regenerated.
5520         * libc/stdlib/mstats.c: Add EL/IX level checking.
5521         * libc/string/Makefile.am: Ditto.
5522         * libc/string/Makefile.in: Regenerated.
5523         * libc/sys/linux/Makefile.am: Add EL/IX level checking.
5524         * libc/sys/linux/Makefile.in: Regenerated.
5525         * libc/sys/linux/aclocal.m4: Ditto.
5526         * libc/sys/linux/configure: Ditto.
5527         * libc/sys/linux/aio.c: Add EL/IX level checking.
5528         * libc/sys/linux/ftok.c: Ditto.
5529         * libc/sys/linux/getdate.c: Ditto.
5530         * libc/sys/linux/ids.c: Ditto.
5531         * libc/sys/linux/inode.c: Ditto.
5532         * libc/sys/linux/io.c: Ditto.
5533         * libc/sys/linux/process.c: Ditto.
5534         * libc/sys/linux/resource.c: Ditto.
5535         * libc/sys/linux/sched.c: Ditto.
5536         * libc/sys/linux/sig.c: Ditto.
5537         * libc/sys/linux/termios.c: Ditto.
5538         * libc/sys/linux/wait.c: Ditto plus add __waitpid and
5539         __libc___waitpid weak aliases.
5540         * libc/sys/linux/machine/i386/syscall.h: Add new _base macros
5541         that generate the code for a syscall, but do not create a
5542         weak alias.
5543         * libc/syscalls/Makefile.am: Add EL/IX level checking.
5544         * libc/syscalls/Makefile.in: Regenerated.
5545         * libc/time/tzset_r.c: Change to replace strdup with equivalent
5546         functionality.
5547         * libc/unix/Makefile.am: Add EL/IX level checking.
5548         * libc/unix/Makefile.in: Regenerated.
5549
5550 2002-08-26  Christopher Faylor  <cgf@redhat.com>
5551
5552         * libc/include/malloc.h: On cygwin, define malloc _r functions as
5553         wrapper macros to standard malloc functions.
5554         * libc/include/stdlib.h: Ditto.
5555         * configure.host: Always define MALLOC_PROVIDED on cygwin.
5556
5557 2002-08-22  Thomas Fitzsimmons  <fitzsim@redhat.com>
5558
5559         * libc/include/langinfo.h: New file.
5560         * libc/include/wchar.h: Likewise.
5561         * libc/include/sys/syslimits.h: Likewise.
5562         * libc/locale/fix_grouping.c: Likewise.
5563         * libc/locale/ldpart.c: Likewise.
5564         * libc/locale/ldpart.h: Likewise.
5565         * libc/locale/lmessages.c: Likewise.
5566         * libc/locale/lmessages.h: Likewise.
5567         * libc/locale/lmonetary.c: Likewise.
5568         * libc/locale/lmonetary.h: Likewise.
5569         * libc/locale/lnumeric.c: Likewise.
5570         * libc/locale/lnumeric.h: Likewise.
5571         * libc/locale/nl_langinfo.3: Likewise.
5572         * libc/locale/nl_langinfo.c: Likewise.
5573         * libc/locale/timelocal.c: Likewise.
5574         * libc/locale/timelocal.h: Likewise.
5575         * libc/stdlib/btowc.c: Likewise.
5576         * libc/stdlib/mbrlen.c: Likewise.
5577         * libc/stdlib/mbrtowc.c: Likewise.
5578         * libc/stdlib/mbsinit.c: Likewise.
5579         * libc/stdlib/mbsrtowcs.c: Likewise.
5580         * libc/stdlib/wcrtomb.c: Likewise.
5581         * libc/stdlib/wcsrtombs.c: Likewise.
5582         * libc/stdlib/wctob.c: Likewise.
5583         * libc/sys/linux/prof-freq.c: Likewise.
5584         * libc/sys/linux/profile.c: Likewise.
5585         * libc/sys/linux/machine/i386/dl-procinfo.c: Likewise.
5586         * libc/sys/linux/machine/i386/dl-procinfo.h: Likewise.
5587         * libc/include/stdlib.h: Change re-entrant functions to take
5588         mbstate_t pointers.
5589         * libc/include/sys/_types.h: Define _mbstate_t.
5590         * libc/include/sys/config.h (MB_LEN_MAX): New macro.
5591         * libc/include/sys/errno.h (EILSEQ): New error code.
5592         * libc/include/sys/reent.h: Include wchar.h.  Change reentrant
5593         structure to use mbstate_t.
5594         * libc/locale/Makefile.am (LIB_SOURCES): Add new files.
5595         * libc/machine/powerpc/vfprintf.c: Use mbstate_t.
5596         * libc/machine/powerpc/vfscanf.c: Likewise.
5597         * libc/stdio/getdelim.c: Reallocate buffer only when necessary.
5598         * libc/stdio/vfprintf.c: Likewise.
5599         * libc/stdio/vfscanf.c: Likewise.
5600         * libc/stdlib/Makefile.am (LIB_SOURCES): Add new files.
5601         * libc/stdlib/mblen.c: Use mbstate_t.
5602         * libc/stdlib/mblen_r.c: Likewise.
5603         * libc/stdlib/mbstowcs.c: Likewise.
5604         * libc/stdlib/mbstowcs_r.c: Likewise.
5605         * libc/stdlib/mbtowc.c: Likewise.
5606         * libc/stdlib/mbtowc_r.c: Likewise.
5607         * libc/stdlib/wcstombs.c: Likewise.
5608         * libc/stdlib/wcstombs_r.c: Likewise.
5609         * libc/stdlib/wctomb_r.c: Likewise.
5610         * libc/sys/linux/Makefile.am (LIB_SOURCES): Add prof-freq.c and
5611         profile.c.
5612         * libc/sys/linux/machine/i386/Makefile.am (LIB_SOURCES): Add
5613         dl-procinfo.c.
5614         * libc/sys/linux/sys/errno.h (EILSEQ): New error code.
5615         * libc/sys/linux/sys/types.h (off_t): Define type.
5616         * testsuite/newlib.locale/UTF-8.c: Change locale name from UTF-8
5617         to C-UTF-8.
5618         * testsuite/newlib.locale/UTF-8.exp: Likewise.
5619
5620 2002-08-20  Casper S. Hornstrup  <chorns@users.sourceforge.net>
5621
5622         * libc/stdlib/mallocr.c: #include windows.h on Win32.
5623           (AlignPage): Continue macro on next line.
5624
5625 2002-08-19  Jeff Johnston  <jjohnstn@redhat.com>
5626
5627         * libc/sys/linux/include/pthread.h: New file.
5628
5629 2002-08-19  Jeff Johnston  <jjohnstn@redhat.com>
5630
5631         * libc/include/sys/types.h: Support __need_inttypes macro
5632         that only sets the __intxx and __uintxx types.  
5633         * libc/machine/powerpc/Makefile.am: Add stdlib to include directories
5634         to get mprec.h.
5635         * libc/machine/powerpc/Makefile.in: Regenerated.
5636         * libc/machine/powerpc/vfprintf.c: Fix state variable type.
5637         * libc/machine/powerpc/vfscanf.c: Fix state variable type.  Remove
5638         redundant fixed-point conversion prototypes.
5639         * libc/machine/powerpc/machine/stdlib.h[__SPE__]: Include <sys/types.h>
5640         after setting __need_inttypes.
5641
5642 2002-08-18  Christopher Faylor  <cgf@redhat.com>
5643
5644         * libc/include/sys/unistd.h: Add getsid declaration for cygwin.
5645
5646 2002-08-17  Jeff Johnston  <jjohnstn@redhat.com>
5647
5648         * libc/include/sys/config.h[__PPC__][__SPE__]: Set
5649         _LONG_DOUBLE to double.
5650
5651 2002-08-17  Jeff Johnston  <jjohnstn@redhat.com>
5652
5653         * configure.host: Add powerpc*-*-eabispe* configuration.
5654         * libc/machine/powerpc/atosfix16.c: New fixed-point conversion file.
5655         * libc/machine/powerpc/atosfix32.c: Ditto.
5656         * libc/machine/powerpc/atosfix64.c: Ditto.
5657         * libc/machine/powerpc/atoufix16.c: Ditto.
5658         * libc/machine/powerpc/atoufix32.c: Ditto.
5659         * libc/machine/powerpc/atoufix64.c: Ditto.
5660         * libc/machine/powerpc/fix64.h: Ditto.
5661         * libc/machine/powerpc/simdldtoa.c: Ditto.
5662         * libc/machine/powerpc/strtosfix16.c: Ditto.
5663         * libc/machine/powerpc/strtosfix32.c: Ditto.
5664         * libc/machine/powerpc/strtosfix64.c: Ditto.
5665         * libc/machine/powerpc/strtoufix16.c: Ditto.
5666         * libc/machine/powerpc/strtoufix32.c: Ditto.
5667         * libc/machine/powerpc/strtoufix64.c: Ditto.
5668         * libc/machine/powerpc/ufix64toa.c: Ditto.
5669         * libc/machine/powerpc/configure.in: Add check for
5670         powerpc*-eabispe and add fixed-point conversion functions.
5671         * libc/machine/powerpc/configure: Regenerated.
5672         * libc/machine/powerpc/vfprintf.c[__SPE__]: Add support for
5673         %r and %R format specifiers which handle fixed-point data.
5674         * libc/machine/powerpc/vfscanf.c[__SPE__]: Ditto.
5675         * libc/machine/powerpc/machine/stdlib.h[__SPE__]: Add fixed-point
5676         function prototypes.
5677
5678 2002-08-17  Jeff Johnston  <jjohnstn@redhat.com>
5679
5680         *  Makefile.am: Move cmath stuff into libc/sys/linux.
5681         *  Makefile.in: Regenerated.
5682         *  configure.host: Default -DMB_CAPABLE for x86-linux.
5683         *  libc/include/reent.h: Define _sbrk to take signed int argument.
5684         *  libc/include/sys/unistd.h: Ditto for _sbrk_r and sbrk.
5685         *  libc/locale/locale.c[MB_CAPABLE]: Add LC_MESSAGES support and 
5686         make locale name checking more efficient.  Also allow "C-ISO-8859-1" 
5687         locale for LC_CTYPE and LC_MESSAGES.
5688         *  libc/reent/sbrkr.c: Change prototype to take ptrdiff_t.
5689         *  libc/sys/linux/brk.c: Change sbrk prototype.
5690         *  libc/sys/linux/include/time.h: Remove Cygwin stuff and
5691         include <sys/features.h>.
5692         (CLOCK_THREAD_CPUTIME): Renamed to CLOCK_THREAD_CPUTIME_ID.
5693         (CLOCK_PROCESS_CPUTIME): Renamed to CLOCK_PROCESS_CPUTIME_ID.
5694         *  libc/sys/linux/sys/cdefs.h: Replace with glibc sys/cdefs.h
5695         with a few local additions.
5696         *  libc/sys/linux/sys/features.h: New file.
5697         *  libc/sys/linux/sys/unistd.h: Change _sbrk_r and sbrk prototypes
5698         to take signed argument.
5699         *  libc/syscalls/syssbrk.c: Change sbrk, _sbrk_r, and _sbrk
5700         prototypes to take signed size argument.
5701
5702 2002-08-16  Thomas Fitzsimmons  <fitzsim@redhat.com>
5703
5704         * libc/sys/linux/cmath: New directory.
5705         * libc/sys/linux/include/cmathcalls.h: New file.
5706         * libc/sys/linux/include/complex.h: New file.
5707         * libc/sys/linux/machine/i386/huge_val.h: New file
5708         * libm/math/w_sincos.c: New file
5709         * libm/math/wf_sincos.c: New file
5710         * libm/mathfp/s_sincos.c: New file
5711         * libm/mathfp/sf_sincos.c: New file
5712         * Makefile.am (LIBC_OBJECTLISTS): Add cmath/objectlist.awk.in.
5713         * libc/include/math.h: Add sincos and sincosf declarations.
5714         * libc/sys/linux/Makefile.am (SUBDIRS): Add cmath.
5715         (SUBLIBS): Likewise.
5716         * libc/sys/linux/configure.in (AC_OUTPUT): Add cmath.
5717         * libm/math/Makefile.am (src): Add w_sincos.c.
5718         (fsrc): Add wf_sincos.c.
5719         * libm/mathfp/Makefile.am (src): Add s_sincos.c
5720         (fsrc): Add sf_sincos.c.
5721
5722 2002-08-12  Jeff Johnston  <jjohnstn@redhat.com>
5723
5724         * libc/sys/linux/machine/i386/crt0.c (__bss_start,_end):
5725         Declare as extern chars and use the address operator to
5726         properly use values set in linker script.
5727
5728 2002-08-09  Jason Tishler  <jason@tishler.net>
5729
5730         * libc/stdlib/mallocr.c: Include <limits.h>.
5731         (request2size): Change macro to do
5732         unsigned long comparisons and avoid signed overflow.
5733         (mALLOc): Add overflow check for the number of bytes to allocate.
5734         (rEALLOc): Ditto.
5735
5736 2002-08-09  Jeff Johnston  <jjohnstn@redhat.com>
5737
5738         * configure.host: Add check for --enable-newlib-io-pos-args
5739         and define WANT_IO_POS_ARGS flag if enabled.  Define
5740         the flag by default for x86-linux configurations.
5741         * configure.in: Add support for --enable-newlib-io-pos-args.
5742         * libc/configure.in: Ditto.
5743         * configure: Regenerated.
5744         * libc/configure: Ditto.
5745         * libc/stdio/Makefile.am: Specify -fshort-enums for compiling
5746         vfprintf.c and vfiprintf.c.
5747         * libc/stdio/Makefile.in: Regenerated.
5748         * libc/stdio/vfprintf.c: Add positional argument support that
5749         is enabled by compiling with -DWANT_IO_POS_ARGS.
5750
5751 2002-08-07  Richard Sandiford  <rsandifo@redhat.com>
5752
5753         * libc/include/machine/setjmp.h: For mips, define _JBLEN based
5754         based on __mips_soft_float rather than __mips64.
5755         * libc/machine/mips/setjmp.S: Provide hard and soft float versions
5756         of both 32-bit and 64-bit code.
5757
5758 2002-08-04  Christopher Faylor  <cgf@redhat.com>
5759
5760         * libc/stdio/popen.c (popen): Allow "rb", "rt", "wb", and "wt"
5761         arguments for popen to match similar functionality in fopen.
5762
5763 2002-07-29  Pierre Humblet  <pierre.humblet@ieee.org>
5764
5765         * libc/include/sys/unistd.h: Add setgroups prototype for Cygwin.
5766
5767 2002-07-29  Jeff Johnston  <jjohnstn@redhat.com>
5768
5769         * libc/sys/linux/Makefile.am: Add aio64.c. 
5770         * libc/sys/linux/Makefile.in: Regenerated.
5771         * libc/sys/linux/aio.c (aio_init): ENOSYS stub added.
5772         * libc/sys/linux/aio64.c: New file.
5773
5774 2002-07-26  Jeff Johnston  <jjohnstn@redhat.com>
5775
5776         *  libc/include/sys/param.h (MAX, MIN): Added macros.
5777         *  libc/sys/linux/Makefile.am: Add new files.
5778         *  libc/sys/linux/Makefile.in: Regenerated.
5779         *  libc/sys/linux/sys/stat.h: Add *stat64 prototypes.
5780         *  libc/sys/linux/inode.c (fchdir): Added syscall.
5781         *  libc/sys/linux/ftw.c: New file.
5782         *  libc/sys/linux/ftw64.c: Ditto.
5783         *  libc/sys/linux/getwd.c: Ditto.
5784         *  libc/sys/linux/scandir64.c: Ditto.
5785         *  libc/sys/linux/strverscmp.c: Ditto.
5786         *  libc/sys/linux/versionsort.c: Ditto.
5787         *  libc/sys/linux/versionsort64.c: Ditto.
5788
5789 2002-07-26  Jeff Johnston  <jjohnstn@redhat.com>
5790
5791         * libc/string/strings.tex: Fix typo for memccpy.
5792
5793 2002-07-25  Jeff Johnston  <jjohnstn@redhat.com>
5794
5795         * libc/sys/linux/io64.c (truncate64, ftruncate64): Added.
5796         * libc/sys/linux/sys/types.h (off64_t): Definition added.
5797
5798 2002-07-25  Jeff Johnston  <jjohnstn@redhat.com>
5799
5800         * libc/sys/linux/Makefile.am: Add fclean.c.
5801         * libc/sys/linux/Makefile.in: Regenerated.
5802         * libc/sys/linux/fclean.c: New file.
5803
5804 2002-07-25  Jeff Johnston  <jjohnstn@redhat.com>
5805
5806         * libc/sys/linux/Makefile.am: Add confstr.c.
5807         * libc/sys/linux/Makefile.in: Regenerated.
5808         * libc/sys/linux/confstr.c: New file.
5809         * libc/sys/linux/confstr.h: Ditto.
5810         * libc/sys/linux/sys/unistd.h: Include <features.h> and
5811         <bits/environments.h>.
5812
5813 2002-07-25  Jeff Johnston  <jjohnstn@redhat.com>
5814
5815         * libc/sys/linux/config.h (__set_errno): Macro definition removed.
5816         * libc/sys/linux/fpathconf.c (__set_errno): Ditto.
5817         * libc/sys/linux/libc-internal.h (__set_errno): Ditto.
5818         * libc/sys/linux/pathconf.c (__set_errno): Ditto.
5819         * libc/sys/linux/ttyname_r.c (__set_errno): Ditto.
5820         * libc/sys/linux/sys/errno.h (__set_errno): Macro definition added.
5821
5822 2002-07-24  Jeff Johnston  <jjohnstn@redhat.com>
5823
5824         * libc/sys/linux/Makefile.am: Add new files.
5825         * libc/sys/linux/Makefile.in: Regenerated.
5826         * libc/sys/linux/fstab.c: New file.
5827         * libc/sys/linux/fstatvfs.c: Ditto.
5828         * libc/sys/linux/fstatvfs64.c: Ditto.
5829         * libc/sys/linux/internal_statvfs.c: Ditto.
5830         * libc/sys/linux/mntent.c: Ditto.
5831         * libc/sys/linux/mntent_r.c: Ditto.
5832         * libc/sys/linux/statvfs.c: Ditto.
5833         * libc/sys/linux/statvfs64.c: Ditto.
5834         * libc/sys/linux/include/paths.h: Ditto.
5835         * libc/sys/linux/inode.c (statfs, fstatfs): New syscalls
5836         with double-underscore weak-aliases.
5837         * libc/sys/linux/sys/stat.h: Add *stat64 prototypes.
5838
5839 2002-07-24  Jeff Johnston  <jjohnstn@redhat.com>
5840
5841         * libc/include/signal.h (SIG_IGN, SIG_DFL, SIG_ERR): Change
5842         to use _sig_func_ptr type casted constants.
5843         (_sig_func_ptr): Typedef moved to sys/signal.h.
5844         * libc/include/sys/signal.h (_sig_func_ptr): Typedef added.
5845         For __rtems, use POSIX definition, otherwise default to ANSI.
5846         * libc/sys/linux/sys/signal.h (_sig_func_ptr): Typedef added.
5847
5848 2002-07-24  Stephane Carrez  <stcarrez@nerim.fr>
5849
5850         * configure.host: Recognize m6811-elf and m6812-elf targets.
5851         * libc/include/machine/setjmp.h (_JBLEN): Define for 68hc11/68hc12.
5852         * libc/include/machine/ieeefp.h (__IEEE_BIG_ENDIAN): Define for 68HC11.
5853         (_DOUBLE_IS_32BITS): Define when compiling with -fshort-double.
5854         * libc/include/sys/config.h (INT_MAX, UINT_MAX): Define
5855         according to __INT_MAX__.
5856         (_POINTER_INT): Define to short.
5857         * libc/machine/m68hc11/Makefile.am: New file.
5858         * libc/machine/m68hc11/Makefile.in: New file.
5859         * libc/machine/m68hc11/configure.in: New file.
5860         * libc/machine/m68hc11/configure: New file.
5861         * libc/machine/m68hc11/aclocal.m4: New file.
5862         * libc/machine/m68hc11/setjmp.S: New file.
5863
5864 2002-07-23  Jeff Johnston  <jjohnstn@redhat.com>
5865
5866         * libc/include/string.h: Add mempcpy, strndup, and _strndup_r
5867         prototypes.
5868         * libc/stdlib/Makefile.am: Remove strdup.c and strdup_r.c.
5869         * libc/stdlib/Makefile.in: Regenerated.
5870         * libc/stdlib/strdup.c: Removed.
5871         * libc/stdlib/strdup_r.c: Removed.
5872         * libc/string/Makefile.am: Add strdup.c, strdup_r.c, memccpy.c,
5873         mempcpy.c, strndup.c, and strndup_r.c.
5874         * libc/string/Makefile.in: Regenerated.
5875         * libc/string/memccpy.c: New file.
5876         * libc/string/mempcpy.c: Ditto.
5877         * libc/string/strndup.c: Ditto.
5878         * libc/string/strndup_r.c: Ditto.
5879         * libc/string/strdup.c: New file moved from stdlib.
5880         * libc/string/strdup_r.c: Ditto.
5881         * libc/string/strings.tex: Add memccpy and mempcpy documentation.
5882
5883 2002-07-23  Jeff Johnston  <jjohnstn@redhat.com>
5884
5885         * libc/include/stdio.h: Move fcloseall prototype within
5886         #ifndef _REENT_ONLY section.
5887         * libc/sys/linux/Makefile.am: Add new files.
5888         * libc/sys/linux/Makefile.in: Regenerated.
5889         * libc/sys/linux/sys/stdio.h: Add ctermid prototype.
5890         * libc/sys/linux/sys/unistd.h: Add ttyname_r prototype.
5891         * libc/sys/linux/sys/types.h: Add ino64_t type.
5892         * libc/sys/linux/ctermid.c: New file.
5893         * libc/sys/linux/ttyname_r.c: Ditto.
5894         * libc/sys/linux/readdir64.c: Ditto.
5895
5896 2002-07-22  Jeff Johnston  <jjohnstn@redhat.com>
5897
5898         * libc/include/stdio.h (fcloseall, _fcloseall_r): Added prototypes.
5899         * libc/stdio/Makefile.am: Added fcloseall.c support.
5900         * libc/stdio/Makefile.in: Regenerated.
5901         * libc/stdio/fcloseall.c: New file.
5902         * libc/stdio64/Makefile.am: Remove missing .def references.
5903         * libc/stdio64/Makefile.in: Regenerated.
5904
5905 2002-07-22  Jeff Johnston  <jjohnstn@redhat.com>
5906
5907         * libc/machine/powerpc/time.c: Removed..renamed to times.c.
5908         * libc/machine/powerpc/times.c: New file.
5909         * libc/machine/powerpc/Makefile.am: Change time.c to times.c.
5910         * libc/machine/powerpc/Makefile.in: Regenerated.
5911
5912 2002-07-22  Aldy Hernandez  <aldyh@redhat.com>
5913
5914         * libc/machine/powerpc/time.c: New file.
5915         * libc/machine/powerpc/Makefile.am (lib_a_SOURCES): Add
5916         time.c.
5917         * libc/machine/powerpc/Makefile.in: Regenerated.
5918
5919 2002-07-22  Thomas Fitzsimmons  <fitzsim@redhat.com>
5920
5921         * libc/libc.texinfo: Change copyright notices to Red Hat from
5922         Cygnus.
5923         * libm/libm.texinfo: Likewise.
5924         * README: Change docs URL to
5925         http://sources.redhat.com/newlib/docs.html.
5926
5927 2002-07-19  Jeff Johnston  <jjohnstn@redhat.com>
5928
5929         * libc/sys/linux/Makefile.am: Add pathconf.c and fpathconf.c.
5930         * libc/sys/linux/Makefile.in: Regenerated.
5931         * libc/sys/linux/inode.c: Add chmod, fchmod, and chown syscalls.
5932         * libc/sys/linux/io.c: Add ftruncate syscall.
5933         * libc/sys/linux/fpathconf.c: New file.
5934         * libc/sys/linux/pathconf.c: Ditto.
5935         * libc/sys/linux/linux_fsinfo.h: Ditto.
5936         * libc/sys/linux/sys/unistd.h: Ditto.
5937
5938 2002-07-19  Jeff Johnston  <jjohnstn@redhat.com>
5939
5940         * libc/stdio64/Makefile.am: Remove missing files.
5941         * libc/stdio64/Makefile.in: Regenerated.
5942
5943 2002-07-19  Jeff Johnston  <jjohnstn@redhat.com>
5944
5945         * libc/include/sys/config.h[__i386__][__linux__]: Define
5946         _LARGE64FILE_SOURCE to 1.
5947         * libc/sys/linux/Makefile.am: Add getrlimit64.c and setrlimit64.c.
5948         * libc/sys/linux/Makefile.in: Regenerated.
5949         * libc/sys/linux/resource.c: Add __getrlimit and __setrlimit aliases.
5950         * libc/sys/linux/sys/linux_time.h: Protect struct timeval definition.
5951         * libc/sys/linux/sys/resource.h: Include <bits/resource.h> instead
5952         of <linux/resource.h>.
5953         * libc/sys/linux/getrlimit64.c: New file.
5954         * libc/sys/linux/setrlimit64.c: Ditto.
5955
5956 2002-07-19  Thomas Fitzsimmons  <fitzsim@redhat.com>
5957
5958         * libc/argz/argz_replace.c: Include buf_findstr.h.
5959         * libc/argz/buf_findstr.c: Likewise.
5960         * libc/argz/envz_entry.c: Include buf_findstr.h.  Cast return
5961         value to (char *).
5962         * libc/argz/envz_get.c: Likewise.
5963         * libc/include/sys/unistd.h: Add getopt and getsubopt declarations.
5964         * libc/stdlib/Makefile.am (LIB_SOURCES): Add getsubopt.c.
5965         * libc/stdlib/getsubopt.3: New file.
5966         * libc/stdlib/getsubopt.c: New file.
5967         * libc/sys/linux/machine/i386/socketcall.h (__sockcall_base):
5968         Change esp to ebp.
5969
5970 2002-07-17  Jeff Johnston  <jjohnstn@redhat.com>
5971
5972         * configure.host(stdio64_dir): New setting that is used to
5973         enable building of new stdio64 directory.
5974         * libc/Makefile.am[HAVE_STDIO64_DIR]: Add support for
5975         large files.
5976         (stmp-stdio64,stdio64.texi): New targets to optionally add in
5977         stdio64 info to info files.
5978         * libc/Makefile.in: Regenerated.
5979         * libc/configure: Ditto.
5980         * libc/configure.in: Add configuration variables that are set
5981         when stdio64 is selected as subdir in configure.host.
5982         * libc/libc.texinfo: Add optional menu item for Stdio64, based
5983         on whether STDIO64 flag is set or not.
5984         * libc/sys.tex: Add optional stdio64 syscalls based on whether
5985         STDIO64 flag is set or not.
5986         * libc/include/reent.h[__LARGE64_FILES]: Add new stdio64
5987         _r sycall routines.
5988         * libc/include/stdio.h[__LARGE64_FILES]: Add new stdio64 prototypes.
5989         (FILE): Typedef'd to __FILE instead of struct __sFILE directly.
5990         (__SL64): New file flag indicating file is opened via fopen64.
5991         * libc/include/sys/_types.h(_off64_t): Added.
5992         * libc/include/sys/config.h: For x86-linux, define __LARGE64_FILES.
5993         * libc/include/sys/reent.h(struct __sFILE64): New file structure
5994         for 64-bit offset large file support.
5995         (__FILE): New intermediate type either set to struct __sFILE64 or
5996         struct __sFILE, depending on whether __LARGE64_FILES is set or not.
5997         * libc/reent/Makefile.am[HAVE_STDIO64_DIR]: Add new files.
5998         * libc/reent/Makefile.in: Regenerated.
5999         * libc/reent/fstat64r.c: New file.
6000         * libc/reent/lseek64r.c: Ditto.
6001         * libc/reent/open64r.c: Ditto.
6002         * libc/reent/reent.tex: Optionally add stdio64 reentrant syscalls
6003         based on whether STDIO64 flag is set. 
6004         * libc/stdio/stdio.tex: Add blank line.
6005         * libc/stdio64/Makefile.am: New file.
6006         * libc/stdio64/Makefile.in: Ditto.
6007         * libc/stdio64/fgetpos64.c: Ditto.
6008         * libc/stdio64/fopen64.: Ditto.
6009         * libc/stdio64/freopen64.c: Ditto.
6010         * libc/stdio64/fseeko64.c: Ditto.
6011         * libc/stdio64/fsetpos64.c: Ditto.
6012         * libc/stdio64/ftello64.c: Ditto.
6013         * libc/stdio64/local64.h: Ditto.
6014         * libc/stdio64/stdio64.c: Ditto.
6015         * libc/stdio64/stdio64.tex: Ditto.
6016         * libc/stdio64/tmpfile64.c: Ditto.
6017         * libc/sys/linux/io64.c: Add weak aliases for lseek64, fstat64, and
6018         open64.
6019
6020 2002-07-16  Jeff Johnston  <jjohnstn@redhat.com>
6021
6022         * libc/Makefile.am (stmp-extra): New target to set makeinfo flag
6023         if LIBC_EXTRA_LIB is present.
6024         * libc/Makefile.in: Regenerated.
6025         * libc/libc.texinfo: Add blank line.
6026         * libc/argz/Makefile.am: Add doc support.
6027         * libc/search/Makefile.am: Ditto.
6028         * libc/argz/Makefile.in: Regenerated.
6029         * libc/search/Makefile.in: Ditto.
6030         * libc/misc/misc.tex: Add ffs function.
6031         * libc/stdio/ftell.c: Fix missing doc delimeter in description.
6032
6033 2002-07-15  Jeff Johnston  <jjohnstn@redhat.com>
6034
6035         * libc/include/sys/config.h[__H8300__]: Replace __SMALL_BITFIELDS
6036         definition that was removed in error.
6037
6038 2002-07-15  Jeff Johnston  <jjohnstn@redhat.com>
6039
6040         * libc/include/machine/ieeefp.h: Change to only define
6041         floating point defines (e.g one of __IEEE_BIG_ENDIAN or 
6042         __IEEE_LITTLE_ENDIAN must be defined for each platform).
6043         * libc/include/sys/config.h: Include <machine/ieeefp.h> and
6044         remove redundant floating point definitions.
6045
6046 2002-07-15  Jeff Johnston  <jjohnstn@redhat.com>
6047
6048         * libc/sys/linux/callocr.c: Fix so code references
6049         calloc.
6050
6051 2002-07-15  Jeff Johnston  <jjohnstn@redhat.com>
6052
6053         * libc/sys/linux/Makefile.am: Add new files.
6054         * libc/sys/linux/Makefile.in: Regenerated.
6055         * libc/sys/linux/bp-sym.h: Moved to include directory.
6056         * libc/sys/linux/mmap.c: Add weak aliases: __mmap, __munmap, __mremap.
6057         * libc/sys/linux/inode.c: Set _LIBC to 1.
6058         * libc/sys/linux/mq_close.c: Ditto.
6059         * libc/sys/linux/mq_getattr.c: Ditto.
6060         * libc/sys/linux/mq_open.c: Ditto.
6061         * libc/sys/linux/mq_receive.c: Ditto.
6062         * libc/sys/linux/mq_send.c: Ditto.
6063         * libc/sys/linux/mq_setattr.c: Ditto.
6064         * libc/sys/linux/mq_unlink.c: Ditto.
6065         * libc/sys/linux/calloc.c: New file.
6066         * libc/sys/linux/callocr.c: Ditto.
6067         * libc/sys/linux/cfreer.c: Ditto.
6068         * libc/sys/linux/config.h: Ditto.
6069         * libc/sys/linux/free.c: Ditto.
6070         * libc/sys/linux/freer.c: Ditto.
6071         * libc/sys/linux/msize.c: Ditto.
6072         * libc/sys/linux/msizer.c: Ditto.
6073         * libc/sys/linux/mstats.c: Ditto.
6074         * libc/sys/linux/mtrim.c: Ditto.
6075         * libc/sys/linux/mtrimr.c: Ditto.
6076         * libc/sys/linux/pvallocr.c: Ditto.
6077         * libc/sys/linux/realloc.c: Ditto.
6078         * libc/sys/linux/reallocr.c: Ditto.
6079         * libc/sys/linux/thread-m.h: Ditto.
6080         * libc/sys/linux/vallocr.c: Ditto.
6081         * libc/sys/linux/bp-checks.h: Ditto.
6082         * libc/sys/linux/libc-symbols.h: Ditto.
6083         * libc/sys/linux/libc-tsd.h: Ditto.
6084         * libc/sys/linux/libintl.h: Ditto.
6085         * libc/sys/linux/malign.c: Ditto.
6086         * libc/sys/linux/malignr.c: Ditto.
6087         * libc/sys/linux/mallinfor.c: Ditto.
6088         * libc/sys/linux/malloc.c: Ditto.
6089         * libc/sys/linux/mallocr.c: Ditto.
6090         * libc/sys/linux/malloptr.c: Ditto.
6091         * libc/sys/linux/mallstatsr.c: Ditto.
6092         * libc/sys/linux/mcheck.c: Ditto.
6093         * libc/sys/linux/mhooks.h: Ditto.
6094         * libc/sys/linux/include/bp-sym.h: Ditto.
6095         * libc/sys/linux/include/malloc.h: Ditto.
6096         * libc/sys/linux/include/mcheck.h: Ditto.
6097         * libc/sys/linux/linuxthreads/machine/i386/Makefile.am: Remove
6098         getpagesize.c.
6099         * libc/sys/linux/linuxthreads/machine/i386/Makefile.in: Regenerated.
6100         * libc/sys/linux/linuxthreads/machine/i386/getpagesize.c: Moved.
6101         * libc/sys/linux/machine/i386/getpagesize.c: New file.
6102         * libc/sys/linux/machine/i386/Makefile.am: Add getpagesize.c.
6103         * libc/sys/linux/machine/i386/Makefile.in: Regenerated.
6104         * libc/sys/linux/machine/i386/sysdep.h: New file.
6105         * libc/sys/linux/machine/i386/weakalias.h: Add weak_function support.
6106         * libc/sys/linux/sys/dirent.h: Set _LIBC to 1.
6107         * libc/sys/linux/sys/lock.h: Include <machine/weakalias.h>.
6108
6109 2002-07-12  Jeff Johnston  <jjohnstn@redhat.com>
6110
6111         * libc/sys/linux/include/mqueue.h: Change to use <bits/siginfo.h>
6112         instead of <asm/siginfo.h>.
6113         * libc/sys/linux/sys/signal.h: Change to include various linux
6114         <bits/xxx.h> header files, rather than <linux/signal.h> so as
6115         to work with multiple releases of glibc header files.
6116
6117 2002-07-11  Chris Demetriou  <cgd@broadcom.com>
6118
6119         * testsuite/newlib.search/hsearchtest.c: New file to test
6120         newlib/libc/search.
6121         * testsuite/newlib.search/hsearchtest.exp: Likewise.
6122
6123 2002-07-10  Florian Schrack  <florian.schrack@freenet.de>
6124
6125         * libc/sys/mmixware/read.c: Use SYS_Fgets syscall if dealing with
6126         a terminal.
6127         * libc/sys/mmixware/sys/syscall.h (SYS_Fgets): Definition added.
6128
6129 2002-07-08  Jeff Johnston  <jjohnstn@redhat.com>
6130
6131         * libc/include/math.h (MAXFLOAT): Added.
6132
6133 Mon Jul  8 13:55:23 2002  J"orn Rennecke <joern.rennecke@superh.com>
6134
6135         * libc/machine/sh/Makefile.am (lib_a_SOURCES):
6136         Make strcmp.S unconditional.
6137         * libc/machine/sh/Makefile.in: Regenerate.
6138         * libc/machine/sh/asm.h (DELAYED_BRANCHES, SL): Also for __SH5__ .
6139         * strcmp.S (strcmp): Add SHmedia variant.  Use different registers
6140         for SHcompact.
6141
6142 2002-07-04  Jeff Johnston  <jjohnstn@redhat.com>
6143
6144         * libc/sys/linux/inode.c: Fix utime prototype and add _LIBC
6145         define before including <sys/lock.h>.
6146
6147 2002-07-04  Jeff Johnston  <jjohnstn@redhat.com>
6148
6149         * libc/include/utime.h: Add include of <_ansi.h>.
6150         * libc/sys/linux/Makefile.am: Add utimes.c.
6151         * libc/sys/linux/Makefile.in: Regenerated.
6152         * libc/sys/linux/inode.c(__umask): New static routine.
6153         (umask): Written to use __umask and attempt to thread lock.
6154         (getumask): New function written to use __umask and thread lock.
6155         * libc/sys/linux/utimes.c: New file.
6156         * libc/sys/linux/sys/time.h: Fix utimes prototype.
6157         * libc/sys/linux/sys/utime.h: New file.
6158
6159 2002-07-04  Thomas Fitzsimmons  <fitzsim@redhat.com>
6160
6161         * libtool.m4: New file.
6162         * libc/sys/linux/process.c: Implement vfork in terms of fork,
6163         rather than as a syscall.
6164
6165 2002-07-04  Jeff Johnston  <jjohnstn@redhat.com>
6166
6167         * libc/include/stdio.h: Add new prototypes.
6168         * libc/stdio/Makefile.am: Add fseeko.c and ftello.c.
6169         * libc/stdio/Makefile.in: Regenerated.
6170         * libc/stdio/fseek.c: Add fseeko documentation.
6171         * libc/stdio/ftell.c: Add ftello documentation.
6172         * libc/stdio/fseeko.c: New file.
6173         * libc/stdio/ftello.c: New file.
6174
6175 2002-07-04  Jeff Johnston  <jjohnstn@redhat.com>
6176
6177         * libc/stdio/Makefile.am: Add asprintf.c and vasprintf.c.
6178         * libc/stdio/Makefile.in: Regenerated.
6179         * libc/stdio/asprintf.c: New file.
6180         * libc/stdio/vasprintf.c: Ditto.
6181         * libc/stdio/fvwrite.c: Add code to dynamically reallocate
6182         the buffer for asprintf support.
6183         * libc/stdio/sprintf.c: Add asprintf documentation.
6184         * libc/stdio/vfprintf.c: Add vasprintf documentation.
6185         * libc/include/stdio.h: Add new prototypes.
6186
6187 2002-07-02  Thomas Fitzsimmons  <fitzsim@redhat.com>
6188
6189         * libc/search/hcreate.c: Remove advertising clause from license.
6190         * libc/search/hcreate_r.c: Likewise.
6191
6192 2002-07-02  Chris Demetriou  <cgd@broadcom.com>
6193
6194         * libc/include/sys/config.h (__IEEE_LITTLE_ENDIAN)
6195         (__IEEE_BIG_ENDIAN): Define appropriately for MIPS.
6196         Check that one of them is defined and error out if not.
6197         Add any platforms defined in <machine/ieeefp.h> that are missing.
6198         * libc/search/hash.h (DB_BYTE_ORDER, DB_BIG_ENDIAN)
6199         (DB_LITTLE_ENDIAN): New defines.
6200         * libc/search/hash.c: Replace all incorrect checks for
6201         _IEEE_LITTLE_ENDIAN with tests of BYTE_ORDER, and all uses of
6202         BYTE_ORDER, LITTLE_ENDIAN, and BIG_ENDIAN with DB_* versions.
6203         * libc/search/hash_page.c: Likewise.
6204
6205 2002-06-28  Thomas Fitzsimmons  <fitzsim@redhat.com>
6206
6207         * libm/mathfp/sf_pow.c (powf): Change k from int to float.
6208
6209 2002-06-27  Benjamin Kosnik  <bkoz@redhat.com>
6210
6211         * libc/include/stdio.h: Untangle, add _BEGIN_STD_C and _END_STD_C.
6212         * libc/include/time.h: Same.
6213         * libc/include/string.h: Same.
6214         * libc/include/stdlib.h: Same.
6215         * libc/include/signal.h: Same.
6216         * libc/include/setjmp.h: Same.
6217         * libc/include/math.h: Same.
6218         * libc/include/locale.h: Same.
6219         * libc/include/ctype.h: Same.
6220         * libc/include/machine/setjmp.h: Same.
6221         * libc/include/_ansi.h (_BEGIN_STD_C): Add.
6222         (_END_STD_C): Add.
6223
6224 2002-06-27  Jeff Johnston  <jjohnstn@redhat.com>
6225
6226         * libc/include/sys/_types.h: Define _ssize_t as int if int is
6227         32-bits, otherwise define it as long.
6228         * libc/include/sys/types.h: Include <_ansi.h> and <sys/_types.h>
6229         and define ssize_t as _ssize_t.
6230         * libc/reent/readr.c: Change return type to _ssize_t.
6231         * libc/reent/writer.c: Ditto.
6232         * libc/sys/linux/Makefile.am: Add aio.c.
6233         * libc/sys/linux/Makefile.in: Regenerated.
6234         * libc/sys/linux/aio.c: New file.
6235         * libc/sys/linux/sys/cdefs.h: Add __restrict_arr definition.
6236         * libm/common/fdlibm.h: Undef __P before defining it.
6237
6238 2002-06-27  Thomas Fitzsimmons  <fitzsim@redhat.com>
6239
6240         * libm/mathfp/s_pow.c (pow): Fix checks on variable k.  Add
6241         exponent_is_even_int variable.  Handle case where x is
6242         negative, and y is an odd integer.
6243         * libm/mathfp/sf_pow.c (powf): Likewise.
6244
6245         * libm/mathfp/er_lgamma.c: Remove __kernel references.
6246         * libm/mathfp/erf_lgamma.c: Likewise.
6247         * libm/mathfp/s_tgamma.c: Likewise.
6248         * libm/mathfp/sf_tgamma.c: Likewise.
6249
6250 2002-06-27  Jeff Johnston  <jjohnstn@redhat.com>
6251
6252         * libc/sys/linux/Makefile.am: Add new clock routines.
6253         * libc/sys/linux/Makefile.in: Regenerated.
6254         * libc/sys/linux/clock_getres.c: New file.
6255         * libc/sys/linux/clock_gettime.c: Ditto.
6256         * libc/sys/linux/clock_settime.c: Ditto.
6257         * libc/sys/linux/hp-timing.h: Ditto.
6258         * libc/sys/linux/libc-internal.h: Ditto.
6259         * libc/sys/linux/sysconf.c: Fix typo.
6260         * libc/sys/linux/include/time.h: Add include of <sys/linux_time.h>.
6261         * libc/sys/linux/machine/hp-timing.h: New file.
6262         * libc/sys/linux/machine/i386/Makefile.am: Add new files.
6263         * libc/sys/linux/machine/i386/Makefile.in: Regenerated.
6264         * libc/sys/linux/machine/i386/get_clockfreq.c: New file.
6265         * libc/sys/linux/machine/i386/hp-timing.c: Ditto.
6266         * libc/sys/linux/machine/i386/hp-timing.h: Ditto.
6267         * libc/sys/linux/sys/linux_time.h: New file.
6268         * libc/sys/linux/sys/time.h: Remove include of <linux/time.h> and
6269         replace with <sys/linux_time.h>.
6270
6271 Wed Jun 26 16:33:25 2002  J"orn Rennecke <joern.rennecke@superh.com>
6272
6273         * libc/sys/sh/crt0.S: Remove vestigial .section directive.
6274
6275 2002-06-25  Jeff Johnston  <jjohnstn@redhat.com>
6276
6277         * libc/sys/linux/Makefile.am: Consolidate additional items under
6278         ADD_OBJS.
6279         * libc/sys/linux/Makefile.in: Regenerated.
6280
6281 2002-06-25  Jeff Johnston  <jjohnstn@redhat.com>
6282
6283         * libc/sys/linux/sethostname.c: New file.
6284         * libc/sys/linux/Makefile.am: Add sethostname.c support.
6285         * libc/sys/linux/Makefile.in: Regenerated.
6286
6287 2002-06-24  Thomas Fitzsimmons  <fitzsim@redhat.com>
6288
6289         * libc/search/db_local.h: New file.
6290         * libc/include/db.h: Remove.
6291         * libc/search/Makefile.am (LIB_SOURCES): Add db_local.h.
6292         * libc/search/hash.c (MIN,MAX): Add macros.  Change <db.h> to
6293         "db_local.h".
6294         * libc/search/hash_bigkey.c: Likewise.
6295         * libc/search/hash_buf.c: Likewise.
6296         * libc/search/hash_func.c: Likewise.
6297         * libc/search/hash_log2.c: Likewise.
6298         * libc/search/hash_page.c: Likewise.
6299
6300 2002-06-24  J"orn Rennecke <joern.rennecke@superh.com>
6301
6302         * libc/machine/sh/strlen.S: New file.
6303         * libc/machine/sh/Makefile.am (lib_a_SOURCES): Add rule for it.
6304         * libc/machine/sh/Makefile.am: Regenerate.
6305
6306 2002-06-24  Jeff Johnston  <jjohnstn@redhat.com>
6307
6308         * libc/sys/linux/gethostname.c: Change name to __gethostname and
6309         add gethostname alias.
6310
6311 2002-06-24  Jeff Johnston  <jjohnstn@redhat.com>
6312
6313         * libc/include/math.h: Remove <sys/types.h>.
6314         (__dmath): Use __ULong instead of __uint32_t.
6315         * libc/include/sys/reent.h: If long or int is not 32-bits,
6316         include <sys/types.h> to get definitions for __int32_t and __uint32_t.
6317         * libc/stdlib/mprec.h: Include <sys/types.h> to get integer defs.
6318         * libm/common/fdlibm.h: Ditto.
6319
6320 2002-06-24  Thomas Fitzsimmons  <fitzsim@redhat.com>
6321
6322         * libc/include/ndbm.h: Remove.
6323         * libc/search/ndbm.c: Remove.
6324
6325 2002-06-24  WATANABE Hirofumi <eban@os.rim.or.jp>
6326
6327         * libc/stdio/fseek.c (fseek): Fix braces.
6328
6329 2002-06-21  Corinna Vinschen  <corinna@vinschen.de>
6330
6331         * libc/time/strftime.c (strftime): Add %e format specifier.
6332
6333 2002-06-21  Thomas Fitzsimmons  <fitzsim@redhat.com>
6334
6335         * libc/search/hash.h (LITTLE_ENDIAN, BIG_ENDIAN): Define if not
6336         previously defined.
6337
6338 2002-06-21  Richard Earnshaw  (rearnsha@arm.com)
6339
6340         * libc/sys/arm/sys/param.h (BIG_ENDIAN, LITTLE_ENDIAN): Define.
6341         (BYTE_ORDER): Define as appropriate for the target.
6342
6343 2002-06-21  Jeff Johnston  <jjohnstn@redhat.com>
6344
6345         * libc/include/sys/config.h[__linux__]: Set _READ_WRITE_RETURN_TYPE
6346         to _ssize_t.
6347         * libc/sys/linux/io.c (read, write): Change to return ssize_t.
6348
6349 2002-06-21  Jeff Johnston  <jjohnstn@redhat.com>
6350
6351         * libc/include/stdio.h (__getline, __getdelim): New prototypes.
6352         * libc/include/time.h [HAVE_GETDATE](getdate, getdate_r): Ditto.
6353         [HAVE_GETDATE](getdate_err): New error code.
6354         * libc/stdio/Makefile.am: Add support for getline.c and getdelim.c.
6355         * libc/stdio/Makefile.in: Regenerated.
6356         * libc/stdio/getdelim.c: New file.
6357         * libc/stdio/getline.c: Ditto.
6358         * libc/sys/linux/Makefile.am: Add support for getdate.c, getdate_err.c
6359         and ntp_gettime.c.  Also add AM_CFLAGS to point to libc/stdio.
6360         * libc/sys/linux/Makefile.in: Regenerated.
6361         * libc/sys/linux/getdate.c: New file.
6362         * libc/sys/linux/getdate_err.c: Ditto.
6363         * libc/sys/linux/ntp_gettime.c: Ditto.
6364         * libc/sys/linux/time.c (adjtimex, ntp_adjtime): New functions.
6365         * libc/sys/linux/sys/stdio.h (getline, getdelim): New macros.
6366
6367 2002-06-21  Jeff Johnston  <jjohnstn@redhat.com>
6368
6369         * libc/include/math.h: Add <sys/types.h> to get _uint32_t definition.
6370         * libc/include/machine/types.h: Skip __off_t, __pid_t, and
6371         __loff_t definitions if special _HAVE_SYSTYPES macro defined.
6372         * libc/include/sys/config.h: Removed _uint*, _int* definitions.
6373         * libc/include/sys/param.h: Remove i386 case which is handled
6374         by default case.
6375         (BIG_ENDIAN, LITTLE_ENDIAN): Protect
6376         definitions in case they are already defined.
6377         (BYTE_ORDER): Add default case using _IEEE_BIG_ENDIAN and
6378         _IEEE_LITTLE_ENDIAN flags.
6379         * libc/include/sys/reent.h: Change __uint32_t references to
6380         use _ULong instead.
6381         (_REENT_GETDATE_REENT_P): New macro.
6382         * libc/include/sys/types.h (__int16_t, __uint16_t): Added.
6383         (__int32_t, __uint32_t, __int64_t, __uint64_t): Ditto.
6384         * libc/search/hash.h: Add default setting of BYTE_ORDER,
6385         LITTLE_ENDIAN, and BIG_ENDIAN, if not already defined.
6386         * libc/sys/linux/sys/types.h: Include <sys/_types.h>.  Define
6387         ssize_t based on _ssize_t.  Remove __socklen_t, __uintptr_t,
6388         pid_t, off_t, loff_t, caddr_t, and daddr_t type
6389         definitions which are done by subsequent glibc headers.
6390         Add macro definitions to prevent subsequent header files from
6391         defining pid_t, off_t, ssize_t, and key_t.  Move uintptr_t and
6392         intptr_t to after glibc definitions of types they are based on.
6393
6394 2002-06-21  Jeff Johnston  <jjohnstn@redhat.com>
6395
6396         * libc/include/errno.h: Protect from multiple inclusion.
6397
6398 2002-06-21  Nick Clifton  <nickc@cambridge.redhat.com>
6399
6400         * libc/sys/arm/swi.h (ADP_Stopped_RunTimeError): Set correct value.
6401
6402 2002-06-20  Thomas Fitzsimmons  <fitzsim@redhat.com>
6403
6404         * Makefile.am (LIB_OBJECTLISTS): Add
6405         libc/search/objectlist.awk.in.
6406         * libc/Makefile.am (SUBDIRS): Add search.
6407         (SUBLIBS): Add search/libsearch.la.
6408         * libc/configure.in (AC_OUTPUT): Add search/Makefile.
6409         * libc/search: New directory.
6410         * libc/search/Makefile.am: New file.
6411         * libc/search/extern.h: New file.
6412         * libc/search/hash.c: New file.
6413         * libc/search/hash.h: New file.
6414         * libc/search/hash_bigkey.c: New file.
6415         * libc/search/hash_buf.c: New file.
6416         * libc/search/hash_func.c: New file.
6417         * libc/search/hash_log2.c: New file.
6418         * libc/search/hash_page.c: New file.
6419         * libc/search/hcreate.3: New file.
6420         * libc/search/hcreate.c: New file.
6421         * libc/search/hcreate_r.c: New file.
6422         * libc/search/ndbm.c: New file.
6423         * libc/search/page.h: New file.
6424         * libc/search/tdelete.c: New file.
6425         * libc/search/tdestroy.c: New file.
6426         * libc/search/tfind.c: New file.
6427         * libc/search/tsearch.3: New file.
6428         * libc/search/tsearch.c: New file.
6429         * libc/search/twalk.c: New file.
6430         * libc/include/db.h: New file.
6431         * libc/include/ndbm.h: New file.
6432         * libc/include/search.h: New file.
6433         * libc/include/sys/queue.h: New file.
6434         * libc/include/sys/cdefs.h: New file.
6435         * libc/include/sys/param.h
6436         [__IEEE_LITTLE_ENDIAN,__IEEE_BIG_ENDIAN]: Set BYTE_ORDER to
6437         LITTLE_ENDIAN or BIG_ENDIAN.
6438         * libc/include/sys/errno.h (EFTYPE): New macro.
6439         * libc/search/bsearch.c: Move from libc/stdlib.
6440         * libc/search/qsort.c: Likewise.
6441         * libc/stdlib/Makefile.am (LIB_SOURCES): Remove bsearch.c and
6442         qsort.c.
6443         (CHEWOUT_FILES): Remove bsearch.def and qsort.def.
6444         * libc/stdlib/stdlib.tex: Remove references to bsearch and qsort.
6445
6446 2002-06-19  Jeff Johnston  <jjohnstn@redhat.com>
6447
6448         * libc/sys/linux/Makefile.am: Add support for message queue routines,
6449         ipc routines, and ftok.
6450         * libc/sys/linux/Makefile.in: Regenerated.
6451         * libc/sys/linux/ftok.c: New file.
6452         * libc/sys/linux/ipc.c: Ditto.
6453         * libc/sys/linux/mq_close.c: Ditto.
6454         * libc/sys/linux/mq_getattr.c: Ditto.
6455         * libc/sys/linux/mq_notify.c: Ditto.
6456         * libc/sys/linux/mq_open.c: Ditto.
6457         * libc/sys/linux/mq_receive.c: Ditto.
6458         * libc/sys/linux/mq_send.c: Ditto.
6459         * libc/sys/linux/mq_setattr.c: Ditto.
6460         * libc/sys/linux/mq_unlink.c: Ditto.
6461         * libc/sys/linux/mqlocal.h: Ditto.
6462         * libc/sys/linux/include/mqueue.h: Ditto.
6463         * libc/sys/linux/sys/types.h: Define __gid_t_defined and
6464         __uid_t_defined.
6465
6466 2002-06-19  J"orn Rennecke <joern.rennecke@superh.com>
6467
6468         * libm/common/sf_lround.c (round): Change name to: (lround).
6469         * libm/common/sf_remquo.c (remquo): Pass all arguemnts to
6470         remquof.
6471
6472 2002-06-18  Thomas Fitzsimmons  <fitzsim@redhat.com>
6473
6474         * testsuite/lib/passfail.exp (newlib_pass_fail_all): New
6475         procedure.
6476         (newlib_pass_fail): Change to compile and run only one file.
6477         * testsuite/newlib.locale/locale.exp: Use new
6478         newlib_pass_fail_all procedure.
6479         * testsuite/newlib.string/string.exp: Likewise.
6480
6481 2002-06-18  Dave Brolley  <brolley@redhat.com>
6482
6483         From Catherine Moore, Michael Meissner, Richard Sandiford:
6484         * libc/include/machine/setjmp.h (_JBLEN): Define for __frv__.
6485         (_JBTYPE): Ditto.
6486         * libc/include/sys/config.h (__IEEE_BIG_ENDIAN): Ditto.
6487         (__ATTRIBUTE_IMPURE_PTR__): Ditto.
6488         * libc/include/machine/ieeefp.h (__IEEE_BIG_ENDIAN): Ditto.
6489         * configure.host: Support frv-*-*.
6490         * libc/machine/frv/Makefile.am: New file.
6491         * libc/machine/frv/configure.in: New file.
6492         * libc/machine/frv/setjmp.S: New file.
6493
6494 2002-06-18  Thomas Fitzsimmons  <fitzsim@redhat.com>
6495
6496         * libc/include/ctype.h: Remove isblank macro.
6497
6498         * libc/ctype/Makefile.am (LIB_SOURCES): Add isblank.c.
6499         * libc/ctype/isblank.c: New file.
6500         * libc/include/ctype.h [!__STRICT_ANSI__]: Add isblank
6501         declaration.  Add isblank macro.
6502
6503 2002-06-18  Jeff Johnston  <jjohnstn@redhat.com>
6504
6505         * testsuite/newlib.stdlib/atexit.c: New file.
6506         * testsuite/newlib.stdlib/atexit.exp: Ditto.
6507         * testsuite/newlib.string/tstring.c: Change default start size
6508         to something more reasonable for embedded platforms.
6509
6510 2002-06-14  Thomas Fitzsimmons  <fitzsim@redhat.com>
6511
6512         * libc/sys/linux/sys/errno.h (EFTYPE): Add macro.
6513
6514         * libc/argz: New directory.
6515         * libc/argz/*: New files.
6516         * libc/argz/argz_add.c: New file.
6517         * libc/argz/argz_add_sep.c: New file.
6518         * libc/argz/argz_append.c: New file.
6519         * libc/argz/argz_count.c: New file.
6520         * libc/argz/argz_create.c: New file.
6521         * libc/argz/argz_create_sep.c: New file.
6522         * libc/argz/argz_delete.c: New file.
6523         * libc/argz/argz_extract.c: New file.
6524         * libc/argz/argz_insert.c: New file.
6525         * libc/argz/argz_next.c: New file.
6526         * libc/argz/argz_replace.c: New file.
6527         * libc/argz/argz_stringify.c: New file.
6528         * libc/argz/buf_findstr.c: New file.
6529         * libc/argz/envz_add.c: New file.
6530         * libc/argz/envz_entry.c: New file.
6531         * libc/argz/envz_get.c: New file.
6532         * libc/argz/envz_merge.c: New file.
6533         * libc/argz/envz_remove.c: New file.
6534         * libc/argz/envz_strip.c: New file.
6535         * libc/include/argz.h: New file.
6536         * libc/include/envz.h: New file.
6537         * Makefile.am (LIBC_OBJECTLISTS): Add
6538         libc/argz/objectlist.awk.in.
6539         * libc/Makefile.am (SUBDIRS): Add argz.
6540         (SUBLIBS): Add argz/libargz.la.
6541         * libc/configure.in (AC_OUTPUT): Add argz/Makefile.
6542         * libc/include/errno.h: Add error_t typedef.
6543
6544 2002-06-13  Jeff Johnston  <jjohnstn@redhat.com>
6545
6546         * libc/include/stdlib.h: Add _Exit prototype.
6547         * libc/stdlib/Makefile.am: Add _Exit.c support.
6548         * libc/stdlib/Makefile.in: Ditto.
6549         * libc/stdlib/_Exit.c: New file.
6550
6551 2002-06-13  Stephen L. Moshier  <steve@moshier.net>
6552
6553         * libm/math/e_pow.c (__ieee754_pow): Fix case whereby
6554         x is close to -1.0 and y is very large to use ax (absolute value)
6555         instead of x.
6556         * libm/math/ef_pow.c (__ieee754_powf): Ditto.
6557
6558 Thu Jun 13 19:23:40 2002  J"orn Rennecke <joern.rennecke@superh.com>
6559
6560         * libc/machine/sh/strcpy.S (strcpy, __SHMEDIA__ code):
6561         Fix clobbering bytes before destination if src and dst have same
6562         non-zero misalignment.
6563
6564         * libc/machine/sh/memset.S (memset, __SHMEDIA__ code):
6565         Fixed bug in writing end of set region.
6566
6567 2002-06-10  Christopher Faylor  <cgf@redhat.com>
6568
6569         * libc/include/process.h: Remove cygwin-only sexec* declarations.  Fix
6570         spawnve declaration.
6571
6572 2002-06-06  Thomas Fitzsimmons  <fitzsim@redhat.com>
6573
6574         * libm/common/s_fdim.c: New file.
6575         * libm/common/s_fma.c: Likewise.
6576         * libm/common/s_fmax.c: Likewise.
6577         * libm/common/s_fmin.c: Likewise.
6578         * libm/common/s_fpclassify.c: Likewise.
6579         * libm/common/s_lrint.c: Likewise.
6580         * libm/common/s_lround.c: Likewise.
6581         * libm/common/s_nearbyint.c: Likewise.
6582         * libm/common/s_remquo.c: Likewise.
6583         * libm/common/s_round.c: Likewise.
6584         * libm/common/s_scalbln.c: Likewise.
6585         * libm/common/s_signbit.c: Likewise.
6586         * libm/common/s_trunc.c: Likewise.
6587         * libm/common/sf_fdim.c: Likewise.
6588         * libm/common/sf_fma.c: Likewise.
6589         * libm/common/sf_fmax.c: Likewise.
6590         * libm/common/sf_fmin.c: Likewise.
6591         * libm/common/sf_lrint.c: Likewise.
6592         * libm/common/sf_lround.c: Likewise.
6593         * libm/common/sf_nearbyint.c: Likewise.
6594         * libm/common/sf_remquo.c: Likewise.
6595         * libm/common/sf_round.c: Likewise.
6596         * libm/common/sf_scalbln.c: Likewise.
6597         * libm/common/sf_trunc.c: Likewise.
6598         * libm/math/w_exp2.c: Likewise.
6599         * libm/math/w_tgamma.c: Likewise.
6600         * libm/math/wf_exp2.c: Likewise.
6601         * libm/math/wf_tgamma.c: Likewise.
6602         * libm/mathfp/s_exp2.c: Likewise.
6603         * libm/mathfp/s_tgamma.c: Likewise.
6604         * libm/mathfp/sf_exp2.c: Likewise.
6605         * libm/mathfp/sf_tgamma.c: Likewise.
6606         * libm/math/er_gamma.c: Fix return value.
6607         * libm/math/erf_gamma.c: Likewise.
6608         * libm/mathfp/er_gamma.c: Likewise.
6609         * libm/mathfp/erf_gamma.c: Likewise.
6610         * libc/include/math.h (!__STRICT_ANSI__): Include ISOC99-specific
6611         declarations and macros.
6612         Regenerated all Makefile.in, aclocal.m4 and configure files to
6613         use new libtool macros in top-level libtool.m4
6614
6615 2002-06-05  Jeff Johnston  <jjohnstn@redhat.com>
6616
6617         * libc/include/string.h[__linux__]: Add strsignal prototype.
6618         * libc/include/sys/lock.h: New file with default locking support.
6619         * libc/include/sys/reent.h: Add signal buffer support for strsignal
6620         and psignal.
6621         * libc/posix/Makefile.am: Add support for readdir_r.c.
6622         * libc/posix/Makefile.in: Regenerated.
6623         * libc/posix/closedir.c: Add locking support and hash table cleanup.
6624         * libc/posix/opendir.c: Add lock support.
6625         * libc/posix/readdir.c: Ditto.
6626         * libc/posix/rewinddir.c: Ditto.
6627         * libc/posix/scandir.c: Ditto.
6628         * libc/posix/seekdir.c: Ditto.
6629         * libc/posix/telldir.c: Ditto plus add _cleanupdir routine to
6630         clean up leftover hash table entries.
6631         * libc/posix/readdir_r.c: New file.
6632         * libc/sys/linux/Makefile.am: Add psignal.c and strsignal.c support.
6633         * libc/sys/linux/Makefile.in: Regenerated.
6634         * libc/sys/linux/sys/dirent.h: Add dd_lock to DIR structure.
6635         * libc/sys/linux/sys/signal.h: Add psignal prototype.
6636         * libc/sys/linux/psignal.c: New file.
6637         * libc/sys/linux/strsignal.c: Ditto.
6638
6639 2002-06-03  Corinna Vinschen  <corinna@vinschen.de>
6640
6641         * libc/include/sys/types.h: Don't define dev_t when compiling for
6642         Cygwin.
6643
6644 2002-05-31  Jeff Johnston  <jjohnstn@redhat.com>
6645
6646         * libc/sys/linux/Makefile.am: Add sig.c and sigaction.c.  Also
6647         make siglist.inc dependent on sig.c instead of signal.c.
6648         * libc/sys/linux/Makefile.in: Regenerated.
6649         * libc/sys/linux/sig.c: Rename from signal.c and change code to
6650         use NSIG instead of _NSIG. 
6651         * libc/sys/linux/sigaction.c: New file.
6652         * libc/sys/linux/signal.c: Changed to be linux signal() function
6653         so as to override regular newlib default signal.c.
6654         * libc/sys/linux/machine/i386/Makefile.am: Remove sigset.c.
6655         * libc/sys/linux/machine/i386/Makefile.in: Regenerated.
6656         * libc/sys/linux/machine/i386/sigset.c: Moved to linux main directory.
6657         * libc/sys/linux/sigset.c: Moved from machine/i386 directory.
6658         * libc/sys/linux/sys/signal.h: Redefine NSIG to _NSIG and override
6659         default linux sigset_t typedef by defining it equal to __sigset_t.
6660         * libc/unix/sigset.c: Add check so code isn't compiled on systems
6661         with a sigset_t that isn't implemented with a single int.
6662
6663 2002-05-30  Jeff Johnston  <jjohnstn@redhat.com>
6664
6665         * libc/sys/linux/Makefile.am: Add support for new files.
6666         * libc/sys/linux/Makefile.in: Regenerated.
6667         * libc/sys/linux/ids.c: Add __getuid weak alias for getuid.
6668         * libc/sys/linux/signal.c: Change to use real-time syscalls for
6669         sigsuspend, sigprocmask, and sigpending.  Also remove sigaction as
6670         it is in a separate file now.
6671         * libc/sys/linux/machine/i386/Makefile.am
6672         * libc/sys/linux/machine/i386/Makefile.in
6673         * libc/sys/linux/sys/signal.h: Add include of <bits/signum.h>.
6674         * libc/sys/linux/sigaction.c: New file.
6675         * libc/sys/linux/sigqueue.c: Ditto.
6676         * libc/sys/linux/sigwait.c: Ditto.
6677         * libc/sys/linux/machine/i386/sigaction.c: Ditto.
6678         * libc/sys/linux/kernel_sigaction.h: Ditto.
6679
6680 2002-05-28  Jeff Johnston  <jjohnstn@redhat.com>
6681
6682         * libc/sys/linux/Makefile.am: Add support for cfspeed.c and
6683         tcsendbrk.c.
6684         * libc/sys/linux/Makefile.in: Regenerated.
6685         * libc/sys/linux/termios.c: Add tcflow(), tcflush(),
6686         tcgetpgrp(), and tcsetpgrp() functions.
6687         * libc/sys/linux/sys/termios.h: Add include of machine/termios.h
6688         to get __MAX_BAUD rate.
6689         * libc/sys/linux/machine/i386/include/termios.h: New file.
6690         * libc/include/machine/termios.h: Ditto.
6691         * libc/sys/linux/cfspeed.c: Ditto.
6692         * libc/sys/linux/tcsendbrk.c: Ditto.
6693
6694 2002-05-24  Jeff Johnston  <jjohnstn@redhat.com>
6695
6696         * libc/include/string.h: Add strnlen and strerror_r prototypes.
6697         * libc/string/Makefile.am: Add strnlen.c and strerror_r.c support.
6698         * libc/string/Makefile.in: Regenerated.
6699         * libc/string/strerror_r.c: New file.
6700         * libc/string/strnlen.c: New file.
6701         * libc/sys/linux/Makefile.am: Add rename.c.
6702         * libc/sys/linux/Makefile.in: Regenerated.
6703         * libc/sys/linux/rename.c: New file to override default rename.
6704
6705 2002-05-24  Thomas Fitzsimmons  <fitzsim@redhat.com>
6706
6707         * libc/sys/linux/sys/cdefs.h: Add __weak_reference macros.
6708         * libc/sys/linux/sys/time.h: Add conversion macros.
6709         * libc/sys/linux/sys/types.h: Add FD_ macros.  Include <bits/types.h>.
6710         * libc/sys/linux/ids.c: Add setresuid and syslog syscalls.
6711         * libc/sys/linux/gethostname.c: New file.
6712         * libc/sys/linux/seteuid.c: New file.
6713         * libc/sys/linux/sysctl.c: New file.
6714         
6715 2002-05-23  Jeff Johnston  <jjohnstn@redhat.com>
6716
6717         * libc/string/Makefile.am: Add support for strsep.c.
6718         * libc/string/Makefile.in: Regenerated.
6719         * libc/string/strsep.c: New file.
6720         * libc/string/strtok.c: Change to call __strtok_r service routine.
6721         * libc/string/strtok_r.c: Add __strtok_r routine which takes
6722         additional flag parameter regarding whether to skip leading delimeters.
6723         Change strtok_r to call __strtok_r.
6724
6725 2002-05-23  Gareth Pearce  <tilps@hotmail.com>
6726
6727         * libc/stdio/Makefile.am: Modify to add setbuffer.c and setlinebuf.c.
6728         * libc/stdio/Makefile.in: Regenerated.
6729         * libc/stdio/setbuffer.c: New file.
6730         * libc/stdio/setlinebuf.c: New file.
6731
6732 2002-05-23  Jeff Johnston  <jjohnstn@redhat.com>
6733
6734         * libc/sys/linux/Makefile.am: Add resource.c.
6735         * libc/sys/linux/Makefile.in: Regenerated.
6736         * libc/sys/linux/resource.c: New file.
6737         * libc/sys/linux/time.c: Add settimeofday, getitimer, and setitimer.
6738         * libc/sys/linux/machine/i386/Makefile.am: Remove syscalls.c.
6739         * libc/sys/linux/machine/i386/Makefile.in: Regenerated.
6740         * libc/sys/linux/machine/i386/syscalls.c: Removed as functions
6741         are now found in libc/sys/linux/resource.c.
6742
6743 2002-05-23  Jeff Johnston  <jjohnstn@redhat.com>
6744
6745         * libc/include/string.h (bcmp, bcopy, bzero): Change prototypes
6746         to use void * pointers and comply with Single Unix spec.
6747         * libc/string/bcmp.c: Change to use void * instead of char *.
6748         * libc/string/bcopy.c: Ditto.
6749         * libc/string/bzero.c: Ditto.
6750
6751 2002-05-22  Jeff Johnston  <jjohnstn@redhat.com>
6752
6753         * libc/sys/linux/shm_open.c: New file.
6754         * libc/sys/linux/shm_unlink.c: Ditto.
6755         * libc/sys/linux/Makefile.am: Add support for shm_open.c and
6756         shm_unlink.c.
6757         * libc/sys/linux/Makefile.in: Regenerated.
6758         * libc/sys/linux/sys/types.h: Add some additional checks to see
6759         if clock_t or time_t is already defined.
6760
6761 2002-05-22  Jeff Johnston  <jjohnstn@redhat.com>
6762
6763         * Makefile.am: Don't pass $toollibdir down directly in
6764         AM_MAKEFLAGS as it causes all multilibs to use the same toollibdir.
6765         Pass it under the name: top_toollibdir.
6766         * Makefile.in: Regenerated.
6767
6768 2002-05-22  Corinna Vinschen  <vinschen@redhat.com>
6769
6770         * libc/include/sys/types.h: Revert previous patch.
6771
6772 2002-05-22  Corinna Vinschen  <vinschen@redhat.com>
6773
6774         * libc/include/sys/types.h: Include cygwin/types.h always under
6775         Cygwin, not only if _POSIX_THREADS is defined.
6776
6777 2002-05-21 Dhananjay Deshpande <dhananjayd@kpit.com>
6778
6779         * configure.host: Specify sys_dir=h8300hms for h8300-*-coff* target.
6780
6781 2002-05-17  Jeff Johnston  <jjohnstn@redhat.com>
6782
6783         * Makefile.am: Copy and install headers from sys/machine/include
6784         directory.  Also pass $toollibdir to lower-level directories.
6785         * Makefile.in: Regenerated.
6786         * libc/include/stdio.h[!_REENT_ONLY]: Change stdin, stdout, and 
6787         stderr to use _REENT macro instead of _impure_ptr directly.
6788         * libc/include/sys/config.h[__i386__][__linux__]: Define
6789         __DYNAMIC_REENT__.
6790         * libc/include/sys/reent.h[!_REENT_ONLY]: Change _REENT macro to be 
6791         call to __getreent() function if !__SINGLE_THREAD__ and
6792         __DYNAMIC_REENT__ is set.
6793         * libc/reent/Makefile.am: Add support for getreent.c.
6794         * libc/reent/Makefile.in: Regenerated.
6795         * libc/string/strerror.c: Add check if EOPNOTSUPP and ENOTSUP are same.
6796         * libc/sys/linux/Makefile.am: Add support for new files.
6797         * libc/sys/linux/configure.in: Add $EXTRA_DIRS variable.
6798         * libc/sys/linux/Makefile.in: Regenerated.
6799         * libc/sys/linux/configure: Ditto.
6800         * libc/sys/linux/io.c: Add poll syscall.  Also weak-alias
6801         __close, __read, __write, __poll, __open, __lseek, __fcntl from
6802         their __libc_ counterparts.
6803         * libc/sys/linux/io64.c: Add __libc_ prefix to lseek64 and open64
6804         and weak-alias to regular names.
6805         * libc/sys/linux/pread64.c: Rename to __libc_pread64 and weak-alias
6806         to pread64 and __pread64.
6807         * libc/sys/linux/process.c: Weak_alias __libc_getpid to __getpid.
6808         * libc/sys/linux/pwrite64.c: Rename to __libc_pwrite64 and
6809         weak-alias to pwrite64.
6810         * libc/sys/linux/sched.c: Weak-alias __libc_sched_getparam,
6811         __libc_sched_getscheduler, __libc_sched_get_priority_max,
6812         __libc_sched_get_priority_min, and __libc_sched_setschedule to
6813         name with __ instead of __libc_. 
6814         * libc/sys/linux/siglongjmp.c: Include <machine/weakalias.h>.
6815         Rename siglongjmp to __libc_siglongjmp and weak-alias to siglongjmp.
6816         Call __libc_longjmp instead of longjmp, from __libc_siglongjmp.
6817         * libc/sys/linux/signal.c: Rename raise to __libc_raise and weak-alias
6818         to raise.
6819         * libc/sys/linux/socket.c: Weak-alias __libc_connect to __connect and
6820         __libc_send to __send.
6821         * libc/sys/linux/time.c: Weak-alias __libc_gettimeofday to
6822         __gettimeofday.
6823         * libc/sys/linux/wait.c: Rename wait to __libc_wait and weak-alias
6824         it to wait.  Rename wait3 to __libc_wait3 and weak-alias it to wait3.
6825         * libc/sys/linux/include/setjmp.h: Use __jmp_buf in sigjmp_buf
6826         type and typedef __jmp_buf to jmp_buf.
6827         * libc/sys/linux/machine/i386/Makefile.am: Add syscalls.c and
6828         setjmp.S.
6829         * libc/sys/linux/machine/i386/Makefile.in: Regenerated.
6830         * libc/sys/linux/machine/i386/crt0.c: Add support to clear .bss
6831         section.
6832         * libc/sys/linux/machine/i386/socketcall.h: Change to use __libc_
6833         prefix for function macros and then use weak_alias() to regular names.
6834         * libc/sys/linux/machine/i386/syscall.h: Ditto.
6835         * libc/sys/linux/sys/errno.h: Define EOPNOTSUP to be ENOTSUP.
6836         * libc/sys/linux/sys/stdio.h: Define _flockfile and _funlockfile
6837         to be flockfile() and funlockfile() respectively.
6838         * libc/sys/linux/sys/types.h
6839         * libc/reent/getreent.c: New file.
6840         * libc/sys/linux/flockfile.c: Ditto.
6841         * libc/sys/linux/funlockfile.c: Ditto.
6842         * libc/sys/linux/getreent.c: Ditto.
6843         * libc/sys/linux/pread.c: Ditto.
6844         * libc/sys/linux/pwrite.c: Ditto.
6845         * libc/sys/linux/raise.c: Ditto.
6846         * libc/sys/linux/system.c: Ditto.
6847         * libc/sys/linux/tcdrain.c: Ditto.
6848         * libc/sys/linux/machine/i386/i386mach.h: Ditto.
6849         * libc/sys/linux/machine/i386/setjmp.S: Ditto.
6850         * libc/sys/linux/machine/i386/syscalls.c: Ditto.
6851         * libc/sys/linux/machine/i386/weakalias.h: Ditto.
6852         * libc/sys/linux/machine/i386/include/setjmp.h: Ditto.
6853
6854 2002-05-14 Dhananjay Deshpande <dhananjayd@kpit.com>
6855
6856         * newlib/libc/sys/h8300hms/Makeile.am (lib_a_SOURCES): Add read.c.
6857         * newlib/libc/sys/h8300hms/read.c: New file.  Magic trap 0xC8 for sim.
6858         * newlib/libc/sys/h8300hms/syscalls.c: Move _read() to read.c.
6859         * newlib/libs/sys/h8300hms/sys/syscall.h: New file.
6860
6861 Thu May 16 17:24:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
6862
6863         * libc/machine/sh/strcpy.S (strcpy): Replace LITTLE_ENDIAN with
6864         __LITTLE_ENDIAN__.  make sure r0 has right value at first loop
6865         exit point.
6866
6867 2002-05-15  Thomas Fitzsimmons  <fitzsim@redhat.com>
6868
6869         * testsuite/lib/newlib.exp: Add newlib_include_flags to compile
6870         options when testing natively on i[3456]86-*-linux.
6871
6872         * testsuite/lib/checkoutput.exp (newlib_check_output): Output
6873         only one pass or fail per test file.  Trim \r's from output
6874         values received from test programs.  Remove support for named
6875         tests.
6876         * testsuite/newlib.locale/UTF-8.exp: Update to support new
6877         newlib_check_output behaviour.
6878         * testsuite/newlib.locale/UTF-8.c: Likewise.
6879
6880 2002-05-15  Jeff Johnston  <jjohnstn@redhat.com>
6881
6882         * libc/include/stdlib.h: Add on_exit prototype.
6883         * libc/include/sys/reent.h (struct _atexit): Add argument array
6884         and bits to track type of exit routine to support both on_exit
6885         and atexit.
6886         (_REENT_INIT_PTR): Add missing fields that won't be zeroed out
6887         by default and change the setting of the atexit structure.
6888         (_REENT_INIT)[!_REENT_SMALL]: Remove extraneous end brace.
6889         * libc/stdlib/on_exit.c: New file.
6890         * libc/stdlib/Makefile.am: Add support for on_exit.
6891         * libc/stdlib/Makefile.in: Regenerated.
6892         * libc/stdlib/atexit.c: Change to initialize types field.
6893         * libc/stdlib/exit.c: Change to look at types field for each
6894         exit routine and either call an atexit-style or an on_exit-style
6895         routine accordingly.
6896
6897 2002-05-13  Jeff Johnston  <jjohnstn@redhat.com>
6898
6899         * libc/machine/powerpc/vfprintf.c(__VFPRINTF_R)[__ALTIVEC__]: Don't
6900         allow v specifier with n or L specifiers.  For vector c format,
6901         move tmp declaration to the top.
6902
6903 2002-05-13  Jeff Johnston  <jjohnstn@redhat.com>
6904
6905         * libc/machine/powerpc/vfprintf.c(__VFPRINTF_R)[__ALTIVEC__]: Restore
6906         the original format specifier when looping for vectors to compensate
6907         for any changes made in vector %g format processing.
6908         Also add syntax checking for various invalid scenarios
6909         involving vector format extensions.
6910         * libc/machine/powerpc/vfscanf.c(__VFSCANF_R)[__ALTIVEC__]: Fix
6911         return code setting for vector formats.  Also treat vector
6912         separator mismatch as a match error instead of an input error.
6913         Perform some syntax checking for vector formats.
6914
6915 2002-05-10  Mark Bradshaw  <bradshaw@staff.crosswalk.com>
6916
6917         * libc/include/string.h (!__STRICT_ANSI__): Add strlcat and strlcpy.
6918         * libc/string/Makefile.am: Add strlcat.c and strlcpy.c.
6919         * libc/string/strlcat.c: New file.
6920         * libc/string/strlcpy.c: New file.
6921
6922 2002-05-10  Jeff Johnston  <jjohnstn@redhat.com>
6923
6924         * libc/string/strchr.c: Fix comment typo.
6925
6926 2002-05-08  Thomas Fitzsimmons  <fitzsim@redhat.com>
6927
6928         * acinclude.m4: Add support for --enable-newlib-multithread.
6929         * configure.host (newlib_cflags): Add -D__SINGLE_THREAD__ if
6930         --enable-newlib-multithread=no.
6931
6932         * libc/stdio/getc_u.c: New file.
6933         * libc/stdio/getchar_u.c: New file.
6934         * libc/stdio/putc_u.c: New file.
6935         * libc/stdio/putchar_u.c: New file.
6936         * libc/include/stdio.h: Add declarations for getc_unlocked,
6937         getchar_unlocked, putc_unlocked and putchar_unlocked.
6938         * libc/stdio/Makefile.am (LIB_SOURCES): Add new files.
6939         (CHEWOUT_FILES): Add new files' .def's.
6940         * libc/stdio/putchar.c (_putchar_r): Replace __sputc with putc.
6941
6942 Wed May  8 17:47:35 2002  J"orn Rennecke <joern.rennecke@superh.com>
6943
6944         * libc/machine/sh/memset.S (memset, __SHMEDIA__ code):
6945         Also handle as single quad word when destination ends at last
6946         byte of first quad word.  Fix byte selection in single quad code.
6947
6948 2002-05-07  Thomas Fitzsimmons  <fitzsim@redhat.com>
6949
6950         * libc/include/sys/stdio.h: New file.
6951         * libc/sys/linux/sys/stdio.h: New file.
6952         * libc/include/stdio.h: Add declarations for flockfile,
6953         ftrylockfile, and funlockfile.  Include <sys/stdio.h>.
6954         * libc/stdio/clearerr.c: Add file locking.
6955         * libc/stdio/fclose.c: Likewise.
6956         * libc/stdio/feof.c: Likewise.
6957         * libc/stdio/ferror.c: Likewise.
6958         * libc/stdio/fflush.c: Likewise.
6959         * libc/stdio/fgetc.c: Likewise.
6960         * libc/stdio/fgetpos.c: Likewise.
6961         * libc/stdio/fgets.c: Likewise.
6962         * libc/stdio/fileno.c: Likewise.
6963         * libc/stdio/fputc.c: Likewise.
6964         * libc/stdio/fputs.c: Likewise.
6965         * libc/stdio/fread.c: Likewise.
6966         * libc/stdio/freopen.c: Likewise.
6967         * libc/stdio/fseek.c: Likewise.
6968         * libc/stdio/ftell.c: Likewise.
6969         * libc/stdio/fwrite.c: Likewise.
6970         * libc/stdio/getc.c: Likewise.
6971         * libc/stdio/putc.c: Likewise.
6972         * libc/stdio/setvbuf.c: Likewise.
6973         * libc/stdio/ungetc.c: Likewise.
6974         * libc/stdio/vfprintf.c: Likewise.
6975
6976 2002-05-06  Jeff Johnston  <jjohnstn@redhat.com>
6977
6978         * libc/machine/powerpc/vfprintf.c[__ALTIVEC__]: Add vector
6979         support for 'p' format.  Fix code to print bytes for vector
6980         integer formats that do not specify 'h' or 'l'.
6981         * libc/machine/powerpc/vfscanf.c[__ALTIVEC__]: Add vector support
6982         for 'p' specifier.  Fix code to scan 16 bytes for vector integer
6983         formats that do not specify 'h' or 'l'.
6984
6985         * libc/include/stdlib.h (a64l, l64a, _l64a_r): Added prototypes.
6986
6987 2002-05-06  Nick Clifton  <nickc@cambridge.redhat.com>
6988
6989         * libc/sys/arm/syscalls.c (_rename): Add parameter names.
6990         (_sbrk): Add cast of return value.
6991
6992 2002-05-06  Jeff Johnston  <jjohnstn@redhat.com>
6993
6994         *  libc/include/sys/reent.h (_l64a_buf): New reentrant area.
6995         (_REENT_L64A_BUF): New macro for accessing area.
6996         *  libc/stdlib/Makefile.am: Add a64l.c and l64a.c.
6997         *  libc/stdlib/Makefile.in: Regenerated.
6998         *  libc/stdlib/a64l.c: New file.
6999         *  libc/stdlib/l64a.c: New file.
7000
7001 2002-05-06  Jeff Johnston  <jjohnstn@redhat.com>
7002
7003         * libc/unix/pread.c: Fix typo for _pread_r.
7004         * libc/unix/pwrite.c: Fix type for _pwrite_r.
7005         * libc/sys/linux/pread64.c: Fix typo for read syscall.
7006         * libc/sys/linux/pwrite64.c: Fix typo for write syscall.
7007
7008 2002-05-03  Christopher Faylor  <cgf@redhat.com>
7009
7010         * libc/include/sys/unistd.h: Define getdomainname under cygwin.
7011
7012 2002-05-03  Thomas Fitzsimmons  <fitzsim@redhat.com>
7013
7014         * configure.in (CC_FOR_NEWLIB): Change -isystem's to -I's.
7015
7016 2002-05-01  Christopher Faylor  <cgf@redhat.com>
7017
7018         * utmp.h: Define more UNIX constants.
7019
7020 2002-05-01  Thomas Fitzsimmons  <fitzsim@redhat.com>
7021
7022         * Makefile.am: Add support for checking multilibs.
7023
7024         * libc/Makefile.am (SUBLIBS): Add LIBC_EXTRA_LIB.
7025         (SUBDEFS): Add LIBC_EXTRA_DEF.
7026         * libc/configure.in (LIBC_EXTRA_LIB): New variable.
7027         (LIBC_EXTRA_DEF): Likewise.
7028         (extra_dir): Likewise.
7029         * libc/machine/xscale/machine: New directory.
7030         * libc/machine/xscale/machine/profile.h: New file.
7031
7032         * Makefile.am (site.exp): Remove newlib_cflags.  Add
7033         multibuildtop.
7034         * testsuite/newlib.locale/UTF-8.c: Change fprintf's to printf's.
7035         * testsuite/lib/flags.exp: New file.
7036         * testsuite/lib/newlib.exp: Load flags.exp.
7037         (newlib_target_compile): Remove libgloss directory references.
7038         (newlib_init): Remove newlib_cflags references.
7039
7040 2002-04-30  Thomas Fitzsimmons  <fitzsim@redhat.com>
7041
7042         * testsuite/lib/newlib.exp (newlib_target_compile): Change
7043         method of finding libgloss_target_dir.
7044
7045         * Makefile.am (site.exp): Change host_alias, host_triplet,
7046         target_alias, target_triplet to refer to gcc's host and target
7047         variables (newlib's build and host variables).
7048         * testsuite/lib/newlib.exp (newlib_init): Change build
7049         references to host references, host references to target
7050         references to reflect Makefile.am changes.
7051         (newlib_target_compile): Likewise.
7052         (newlib_finish): Likewise.
7053
7054 2002-04-29  Jeff Johnston  <jjohnstn@redhat.com>
7055
7056         * libc/sys/linux/io64.c (fstat64, lstat64): New syscalls added.
7057
7058 2002-04-29  Jonathan Larmour  <jlarmour@redhat.com>
7059
7060         * libc/sys/arm/syscalls.c (_rename): New function. Just a stub.
7061         (_system): New function. Ditto.
7062         * libc/stdlib/system.c (_system_r): Call _system if HAVE_SYSTEM.
7063         * configure.host: define HAVE_SYSTEM and HAVE_RENAME for xscale
7064         targets.
7065
7066 2002-04-29  Jeff Johnston  <jjohnstn@redhat.com>
7067
7068         *  libc/include/sys/unistd.h (pread, pwrite): Added prototypes.
7069         *  libc/unix/Makefile.am: Add pread.c and pwrite.c.
7070         *  libc/sys/linux/Makefile.am: Add pread64.c and pwrite64.c.
7071         *  libc/sys/linux/Makefile.in: Regenerated.
7072         *  libc/unix/Makefile.in: Ditto.
7073         *  libc/sys/linux/pread64.c: New file.
7074         *  libc/sys/linux/pwrite64.c: Ditto.
7075         *  libc/unix/pread.c: Ditto.
7076         *  libc/unix/pwrite.c: Ditto.
7077
7078 2002-04-26  Jeff Johnston  <jjohnstn@redhat.com>
7079
7080         *  libc/sys/linux/Makefile.am: Add io64.c.
7081         *  libc/sys/linux/Makefile.in: Regenerated.
7082         *  libc/sys/linux/io.c(mkfifo, fsync, fdatasync): Added syscalls.
7083         *  libc/sys/linux/signal.c (sigwaitinfo, sigtimedwait): Ditto. 
7084         *  libc/sys/linux/io64.c: New file.
7085
7086 2002-04-26  Jeff Johnston  <jjohnstn@redhat.com>
7087
7088         * configure.in (CC_FOR_NEWLIB): New variable that
7089         bases on $(CC) and adds targ-include and libc/include as
7090         -isystem directives if they are not already part of $(CC).
7091         * Makefile.am (AM_MAKEFLAGS): Change setting of CC to equal
7092         $(CC_FOR_NEWLIB).
7093         * configure: Regenerated.
7094         * Makefile.in: Ditto.
7095
7096 2002-04-25  Jeff Johnston  <jjohnstn@redhat.com>
7097
7098         *  libc/sys/linux/Makefile.am: Add support for sched.c.
7099         *  libc/sys/linux/Makefile.in: Regenerated.
7100         *  libc/sys/linux/sched.c: New file.
7101         *  libc/sys/linux/sys/types.h: Add struct timespec.
7102
7103 2002-04-25  Thomas Fitzsimmons  <fitzsim@redhat.com>
7104
7105         * configure.in (CC_FOR_BUILD): Set to gcc whether
7106         cross-compiling or not.
7107         (CC): Add -isystem's for targ-include and libc/include when they
7108         do not already appear in CC.
7109
7110 2002-04-24  Thomas Fitzsimmons  <fitzsim@redhat.com>
7111
7112         * Makefile.am (check-DEJAGNU): New target.
7113         (site.exp): Likewise.
7114         * acinclude.m4 (NEWLIB_CONFIGURE): Replace AC_CANONICAL_HOST
7115         with AC_CANONICAL_SYSTEM.  Remove AC_CANONICAL_BUILD.
7116         * libc/locale/locale.c (_setlocale_r): Add UTF-8 support.
7117         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Likewise.
7118         * libc/stdlib/wctomb_r.c (_wctomb_r): Likewise.
7119         * testsuite: New directory.
7120         * testsuite/config: Likewise.
7121         * testsuite/lib: Likewise.
7122         * testsuite/newlib.locale: Likewise.
7123         * testsuite/newlib.string: Likewise.
7124         * testsuite/config/default.exp: New file.
7125         * testsuite/lib/checkoutput.exp: New file.
7126         * testsuite/lib/newlib.exp: New file.
7127         * testsuite/lib/passfail.exp: New file.
7128         * testsuite/newlib.locale/UTF-8.c: New file.
7129         * testsuite/newlib.locale/UTF-8.exp: New file.
7130         * testsuite/newlib.locale/locale.exp: New file.
7131         * testsuite/newlib.string/string.exp: New file.
7132         * testsuite/newlib.string/tstring.c: New file.
7133
7134 2002-04-23  Jeff Johnston  <jjohnstn@redhat.com>
7135
7136         *  libc/include/machine/types.h (__pid_t, __off_t, __loff_t): Added.
7137         *  libc/sys/linux/Makefile.am: Add support for mmap.c.
7138         *  libc/sys/linux/Makefile.in: Regenerated.
7139         *  libc/sys/linux/mmap.c: New file.
7140         *  libc/sys/linux/machine/i386/syscall.h: Add _syscall6 macro.
7141         *  libc/sys/linux/sys/types.h (pid_t, off_t, loff_t): Added.
7142
7143 2002-04-22  Thomas Fitzsimmons  <fitzsim@redhat.com>
7144
7145         * acinclude.m4 (newlib_cflags): Remove include directories that
7146         are already specified in the top-level configure.in's FLAGS_FOR_TARGET.
7147
7148 2002-04-19  Bill Siegmund  <ctc-dsl@pacbell.net>
7149
7150         * libc/machine/xscale/memchr.c: Don't use multi-line strings.
7151         * libc/machine/xscale/memcmp.c: Ditto.
7152         * libc/machine/xscale/memcpy.c: Ditto.
7153         * libc/machine/xscale/memmove.c: Ditto.
7154         * libc/machine/xscale/memset.c: Ditto.
7155         * libc/machine/xscale/strchr.c: Ditto.
7156         * libc/machine/xscale/strcmp.c: Ditto.
7157         * libc/machine/xscale/strcpy.c: Ditto.
7158         * libc/machine/xscale/strlen.c: Ditto.
7159
7160 2002-04-19  Alexandre Oliva  <aoliva@redhat.com>
7161
7162         * libc/include/sys/config.h: Remove include of <limits.h>.
7163         (__INT_MAX__, __LONG_MAX__): Define like GCC's limits.h would
7164         define INT_MAX and LONG_MAX.  Use them in tests.
7165
7166 2002-04-19  Jeff Johnston  <jjohnstn@redhat.com>
7167
7168         *  configure.host: Add support for powerpc-eabialtivec*.
7169         *  libc/include/malloc.h: Add include of <machine/malloc.h>.
7170         *  libc/include/stdlib.h: Add include of <machine/stdlib.h>.
7171         *  libc/include/machine/malloc.h: New file.
7172         *  libc/include/machine/stdlib.h: Ditto.
7173         *  libc/include/machine/setjmp.h: Add support for powerpc altivec.
7174         *  libc/machine/powerpc/Makefile.am: Add conditional objects and
7175         sources based on configuration.
7176         *  libc/machine/powerpc/Makefile.in: Regenerated.
7177         *  libc/machine/powerpc/configure: Ditto.
7178         *  libc/machine/powerpc/configure.in: Add check for
7179         powerpc-eabialtivec* in which case add in additional source files.
7180         *  libc/machine/powerpc/setjmp.S: Add altivec support.
7181         *  libc/machine/powerpc/vec_calloc.c: New file.
7182         *  libc/machine/powerpc/vec_free.c: Ditto.
7183         *  libc/machine/powerpc/vec_malloc.c: Ditto.
7184         *  libc/machine/powerpc/vec_mallocr.c: Ditto.
7185         *  libc/machine/powerpc/vec_realloc.c: Ditto.
7186         *  libc/machine/powerpc/machine/malloc.h: Ditto.
7187         *  libc/machine/powerpc/machine/stdlib.h: Ditto.
7188         *  libc/machine/powerpc/vfprintf.c: New file that is vfprintf.c
7189         with added altivec format specifiers.
7190         *  libc/machine/powerpc/vfscanf.c: New file that is vfscanf.c with
7191         added altivec format specifiers.
7192
7193 2002-04-19      Joel Sherrill <joel@OARcorp.com>
7194
7195         * libs/sys/rtems/crt0.c: Satisfy gcc's references to libc functions
7196         while autoconf is trying to link main(){}.
7197
7198 2002-04-17  Jeff Johnston  <jjohnstn@redhat.com>
7199
7200         * libc/sys/linux/signal.c: Remove include of <bits/sigset.h>.
7201         * libc/sys/linux/sys/signal.h: Add include of <bits/sigset.h>.
7202
7203 2002-04-17  Jeff Johnston  <jjohnstn@redhat.com>
7204
7205         * libc/time/time.tex: Add tzset info.
7206
7207 2002-04-17  Jeff Johnston  <jjohnstn@redhat.com>
7208
7209         * libc/include/time.h (tzset, _tzset_r): Added prototypes.
7210         (strptime): Moved prototype to be within !__STRICT_ANSI__.
7211         (_tzname, _daylight, _timezone): No long __CYGWIN__ only.
7212         (tzname): Defined for all platforms.
7213         (daylight, timezone): Defined only for CYGWIN.
7214         * libc/sys/linux/machine/i386/crt0.c: Add call to tzset() after
7215         environment set up.
7216         * libc/stdlib/setenv_r.c (_setenv_r): Call tzset() if the TZ
7217         environment variable is set.
7218         * libc/time/Makefile.am: Add support for tzset.c, tzlock.c, and
7219         tzset_r.c.
7220         * libc/time/Makefile.in: Regenerated.
7221         * libc/time/gmtime.c (gmtime): Changed to call gmtime_r.
7222         * libc/time/gmtime_r.c (gmtime_r): Changed to call _mktm_r.
7223         * libc/time/lcltime_r.c (lcltime_r): Ditto.
7224         * libc/time/local.h: New local header file.
7225         * libc/time/mktime.c (mktime): Add timezone support.
7226         * libc/time/mktm_r.c: New file which is the common engine
7227         for gmtime_r and lcltime_r.  This code has timezone support.
7228         * libc/time/strftime.c (strftime): Add %Z timezone support.
7229         * libc/time/tzlock.c: New file containing timezone lock stubs.
7230         * libc/time/tzset.c: New file containing tzset() routine.
7231         * libc/time/tzset_r.c: New file containing _tzset_r and
7232         internal routine for calculating timezone changes for specified year.
7233
7234 2002-04-17  Thomas Fitzsimmons  <fitzsim@redhat.com>
7235
7236         * configure.in (CRT0_DIR): Set to libc/.
7237         (CRT1_DIR): Set to ${crt1_dir}/ if crt1_dir is non-empty.
7238         * Makefile.am: Change all occurrences of $(CRT0_DIR)/$(CRT0) to
7239         $(CRT0_DIR)$(CRT0) to prevent make warnings.  Likewise for
7240         $(CRT1_DIR)/$(CRT1).
7241         * libc/machine/xstormy16/Makefile.in: Regenerated.
7242         * libc/machine/xstormy16/aclocal.m4: Regenerated.
7243         * libc/machine/xstormy16/configure: Regenerated.
7244
7245 2002-04-13  Alexandre Oliva  <aoliva@redhat.com>
7246
7247         * libc/stdlib/mallocr.c (malloc_extend_top): If correction sbrk
7248         fails, don't bail out, and try to correct next time.
7249
7250         * libc/include/sys/config.h: Include limits.h.
7251
7252 2002-04-12  Eric Norum  <eric.norum@usask.com>
7253
7254         * libc/sys/rtems/crt0.c (rtems_gxx_mutex_init): Dummy
7255         routine to allow autoconf to determine that building executables
7256         for rtems works.
7257         (rtems_gxx_mutex_lock, rtems_gxx_mutex_unlock): Ditto.
7258         (rtems_gxx_mutex_once): Ditto.
7259
7260 2002-04-09  Tom Rix  <trix@redhat.com>
7261
7262         * libc/include/sys/reent.h (_REENT_INIT_PTR): Fix typo.
7263
7264 2002-04-09  Mark Bradshaw  <bradshaw@staff.crosswalk.com>
7265
7266         * libc/include/time.h: Fix strptime declaration.
7267         * libc/time/Makefile.am: Add strptime.c.
7268         * libc/time/Makefile.in: Regenerated.
7269         * libc/time/strptime.c: New file.
7270
7271 2002-04-08  Jeff Johnston  <jjohnstn@redhat.com>
7272
7273         * libc/sys/linux/include/setjmp.h: Add sigjmp_buf type,
7274         siglongjmp prototype, and sigsetjmp macro definition.
7275         * libc/sys/linux/siglongjmp.c: New file.
7276         * libc/sys/linux/Makefile.am: Add support for siglongjmp.
7277         * libc/sys/linux/Makefile.in: Regenerated.
7278
7279 2002-04-04  Jeff Johnston  <jjohnstn@redhat.com>
7280
7281         * Makefile.am: Add support for installing crt1.o if one exists.
7282         * configure.host: Specify crt1.o for linux.
7283         * configure.in: Expose CRT1 and CRT1_DIR for Makefile.am to use.
7284         * Makefile.in: Regenerated.
7285         * configure: Ditto.
7286         * libc/include/sys/unistd.h (_SC_STREAM_MAX, _SC_PRIORITY_SCHEDULING):
7287         Added for non-Cygwin, non-RTEMS configurations.
7288         * libc/sys/linux/Makefile.am: Add support for crt1 and sysconf.
7289         * libc/sys/linux/Makefile.in: Regenerated.
7290         * libc/sys/linux/crt1.c: New empty file to override one defaulted
7291         by gcc.  This fixes problem with reconfiguring linux newlib build.
7292         * libc/sys/linux/sysconf.c: New file.
7293
7294 2002-04-03  Jeff Johnston  <jjohnstn@redhat.com>
7295
7296         * configure.host: Add support for machine subdirectory of
7297         sys subdirectory.
7298         * configure.in: Add check for sys machine subdirectory.
7299         * Makefile.am: Ditto.
7300         * configure: Regenerated.
7301         * Makefile.in: Ditto.
7302         * libc/sys/linux/crt0.c: Moved to machine/i386 directory.
7303         * libc/sys/linux/sys/syscall.h: Ditto.
7304         * libc/sys/linux/sleep.c: New file.
7305         * libc/sys/linux/socket.c: Ditto.
7306         * libc/sys/linux/sockops.h: Ditto.
7307         * libc/sys/linux/stack.c: Ditto.
7308         * libc/sys/linux/usleep.c: Ditto.
7309         * libc/sys/linux/machine/Makefile.am: Ditto.
7310         * libc/sys/linux/machine/Makefile.in: Ditto.
7311         * libc/sys/linux/machine/aclocal.m4: Ditto.
7312         * libc/sys/linux/machine/configure: Ditto.
7313         * libc/sys/linux/machine/configure.in: Ditto.
7314         * libc/sys/linux/machine/i386/Makefile.am: Ditto.
7315         * libc/sys/linux/machine/i386/Makefile.in: Ditto.
7316         * libc/sys/linux/machine/i386/aclocal.m4: Ditto.
7317         * libc/sys/linux/machine/i386/configure: Ditto.
7318         * libc/sys/linux/machine/i386/configure.in: Ditto.
7319         * libc/sys/linux/machine/i386/crt0.c: Ditto.
7320         * libc/sys/linux/machine/i386/sigset.c: Ditto.
7321         * libc/sys/linux/machine/i386/sigstack.h: Ditto.
7322         * libc/sys/linux/machine/i386/socketcall.h: Ditto.
7323         * libc/sys/linux/machine/i386/syscall.h: Ditto.
7324         * libc/sys/linux/sys/select.h: Ditto.
7325         * libc/sys/linux/configure.in: Add support for machine directory.
7326         * libc/sys/linux/Makefile.am: Ditto plus add new files above.
7327         * libc/sys/linux/Makefile.in: Regenerated.
7328         * libc/sys/linux/configure: Ditto.
7329         * libc/sys/linux/brk.c: Use machine/syscall.h instead of sys/syscall.h.
7330         * libc/sys/linux/inode.c: Ditto.
7331         * libc/sys/linux/linux.c: Ditto.
7332         * libc/sys/linux/process.c: Ditto.
7333         * libc/sys/linux/systat.c: Ditto.
7334         * libc/sys/linux/time.c: Ditto.
7335         * libc/sys/linux/wait.c: Ditto.
7336         * libc/sys/linux/ids.c: Change header plus add setfsgid/setfsuid.
7337         * libc/sys/linux/io.c: Change header plus add readv/writev.
7338         * libc/sys/linux/signal.c: Change header plus change sigsuspend to
7339         use __sigsuspend syscall.
7340         * libc/sys/linux/select.c: Change header plus change select to
7341         use _newselect syscall.
7342         * libc/sys/linux/sys/cdefs.h: Add a number of standard definitions
7343         used by glibc header files.
7344         * libc/sys/linux/sys/types.h: Add __socklen_t and __useconds_t
7345         types.
7346
7347 2002-04-01  Jeff Johnston  <jjohnstn@redhat.com>
7348
7349         * libc/include/sys/reent.h (_REENT_INIT_PTR): New macro for
7350         initializing a struct _reent that has been dynamically allocated.
7351         (_REENT_CHECK_MISC): New macro that checks _misc struct for
7352         _REENT_SMALL and does nothing otherwise.
7353         (_REENT_STRTOK_LAST): New macro for reentrant strtok.
7354         (_REENT_MBLEN_STATE): New macro for reentrant mblen.
7355         (_REENT_MBTOWC_STATE): New macro for reentrant mbtowc.
7356         (_REENT_WCTOMB_STATE): New macro for reentrant wctomb.
7357         [_REENT_SMALL](struct _misc_reent): New structure containing
7358         miscellaneous reentrant areas needed by newlib.
7359         [_REENT_SMALL](struct _reent): Add _misc pointer.
7360         [_REENT_SMALL](_REENT_INIT_MISC): New macro.
7361         * libc/string/strtok (strtok): Change to use _REENT_CHECK_MISC
7362         and _REENT_STRTOK_LAST macros.
7363         * libc/stdlib/mblen (mblen): Change to use _REENT_CHECK_MISC
7364         and _REENT_MBLEN_STATE macros.
7365         * libc/stdlib/mbtowc (mbtowc): Change to use _REENT_CHECK_MISC
7366         and _REENT_MBTOWC_STATE macros.
7367         * libc/stdlib/wctomb (wctomb): Change to use _REENT_CHECK_MISC
7368         and _REENT_WCTOMB_STATE macros.
7369
7370 2002-04-01  Till Straumann <strauman@SLAC.Stanford.EDU>
7371
7372         * libc/stdlib/getenv_r.c (_findenv_r): Add missing ENV_UNLOCK.
7373
7374 Wed Mar 27 07:34:44 2002  Jason Tishler <jason@tishler.net>
7375
7376         * libc/include/sys/features.h (_POSIX_SEMAPHORES): New Cygwin define.
7377
7378 Tue Mar 26 17:17:10 2002  J"orn Rennecke <joern.rennecke@superh.com>
7379
7380         * libc/machine/sh/memcpy.S (Large): Fix alignment rounding.
7381         Store high part of leading bytes too.
7382
7383 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
7384
7385         * libm/math/ef_hypot.c: Increase scale factor to 68.
7386
7387 2002-03-13  Alexandre Oliva  <aoliva@redhat.com>
7388
7389         * libc/machine/mips/strlen.c (strlen) [__mips16]: Fix off-by-two
7390         error.
7391
7392 2002-03-12  Jeff Johnston  <jjohnstn@redhat.com>
7393
7394         * libc/sys/go32/access.c: Change license to relaxed license
7395         used in identical file throughout newlib/libgloss.
7396
7397 2002-03-12  Richard Earnshaw  <rearnsha@arm.com>
7398
7399         * libc/sys/arm/access.c: New file.
7400         * libc/sys/arm/Makefile.am (lib_a_SOURCES): Add access.c.
7401         * libc/sys/arm/Makefile.in: Regenerate.
7402         * libc/sys/arm/syscalls.c (_stat): New function.
7403
7404 2002-03-11  Michael Meissner  <meissner@redhat.com>
7405
7406         * libc/machine/mips/Makefile.am (lib_a_SOURCES): Add Mips specific
7407         variants strlen.c, strcmp.c, strncpy.c, memset.c and memcpy.c.
7408         * libc/machine/mips/Makefile.in: Regenerate.
7409         * libc/machine/mips/memcpy.c: New file, optimized for MIPS.
7410         * libc/machine/mips/memset.c: Dito.
7411         * libc/machine/mips/strcmp.c: Dito.
7412         * libc/machine/mips/strlen.c: Dito.
7413         * libc/machine/mips/strncmp.c: Dito.
7414
7415 2002-03-06  Jeff Johnston  <jjohnstn@redhat.com>
7416
7417         * libc/machine/i386/Makefile.am: Add $(oext) for setjmp
7418         object so it works for shared library or statici library.
7419 2002-04-17  Jeff Johnston  <jjohnstn@redhat.com>
7420
7421         *  libc/include/time.h (tzset, _tzset_r): Added prototypes.
7422         (strptime): Moved prototype to be within !__STRICT_ANSI__.
7423         (_tzname, _daylight, _timezone): No long __CYGWIN__ only.
7424         (tzname): Defined for all platforms.
7425         (daylight, timezone): Defined only for CYGWIN.
7426         *  libc/sys/linux/machine/i386/crt0.c: Add call to tzset() after
7427         environment set up.
7428         * libc/stdlib/setenv_r.c (_setenv_r): Call tzset() if the TZ
7429         environment variable is set.
7430         *  libc/time/Makefile.am: Add support for tzset.c, tzlock.c, and
7431         tzset_r.c.
7432         *  libc/time/Makefile.in: Regenerated.
7433         *  libc/time/gmtime.c (gmtime): Changed to call gmtime_r.
7434         *  libc/time/gmtime_r.c (gmtime_r): Changed to call _mktm_r.
7435         *  libc/time/lcltime_r.c (lcltime_r): Ditto.
7436         *  libc/time/local.h: New local header file.
7437         *  libc/time/mktime.c (mktime): Add timezone support.
7438         *  libc/time/mktm_r.c: New file which is the common engine
7439         for gmtime_r and lcltime_r.  This code has timezone support.
7440         *  libc/time/strftime.c (strftime): Add %Z timezone support.
7441         *  libc/time/tzlock.c: New file containing timezone lock stubs.
7442         *  libc/time/tzset.c: New file containing tzset() routine.
7443         *  libc/time/tzset_r.c: New file containing _tzset_r and
7444         internal routine for calculating timezone changes for specified year.
7445
7446 2002-04-17  Thomas Fitzsimmons  <fitzsim@redhat.com>
7447
7448         * configure.in (CRT0_DIR): Set to libc/.
7449         (CRT1_DIR): Set to ${crt1_dir}/ if crt1_dir is non-empty.
7450         * Makefile.am: Change all occurrences of $(CRT0_DIR)/$(CRT0) to
7451         $(CRT0_DIR)$(CRT0) to prevent make warnings.  Likewise for
7452         $(CRT1_DIR)/$(CRT1).
7453         * libc/machine/xstormy16/Makefile.in: Regenerated.
7454         * libc/machine/xstormy16/aclocal.m4: Regenerated.
7455         * libc/machine/xstormy16/configure: Regenerated.
7456
7457 2002-04-13  Alexandre Oliva  <aoliva@redhat.com>
7458
7459         * libc/stdlib/mallocr.c (malloc_extend_top): If correction sbrk
7460         fails, don't bail out, and try to correct next time.
7461
7462         * libc/include/sys/config.h: Include limits.h.
7463
7464 2002-04-12  Eric Norum  <eric.norum@usask.com>
7465
7466         * libc/sys/rtems/crt0.c (rtems_gxx_mutex_init): Dummy
7467         routine to allow autoconf to determine that building executables
7468         for rtems works.
7469         (rtems_gxx_mutex_lock, rtems_gxx_mutex_unlock): Ditto.
7470         (rtems_gxx_mutex_once): Ditto.
7471
7472 2002-04-09  Tom Rix  <trix@redhat.com>
7473
7474         * libc/include/sys/reent.h (_REENT_INIT_PTR): Fix typo.
7475
7476 2002-04-09  Mark Bradshaw  <bradshaw@staff.crosswalk.com>
7477
7478         * libc/include/time.h: Fix strptime declaration.
7479         * libc/time/Makefile.am: Add strptime.c.
7480         * libc/time/Makefile.in: Regenerated.
7481         * libc/time/strptime.c: New file.
7482
7483 2002-04-08  Jeff Johnston  <jjohnstn@redhat.com>
7484
7485         * libc/sys/linux/include/setjmp.h: Add sigjmp_buf type,
7486         siglongjmp prototype, and sigsetjmp macro definition.
7487         * libc/sys/linux/siglongjmp.c: New file.
7488         * libc/sys/linux/Makefile.am: Add support for siglongjmp.
7489         * libc/sys/linux/Makefile.in: Regenerated.
7490
7491 2002-04-04  Jeff Johnston  <jjohnstn@redhat.com>
7492
7493         * Makefile.am: Add support for installing crt1.o if one exists.
7494         * configure.host: Specify crt1.o for linux.
7495         * configure.in: Expose CRT1 and CRT1_DIR for Makefile.am to use.
7496         * Makefile.in: Regenerated.
7497         * configure: Ditto.
7498         * libc/include/sys/unistd.h (_SC_STREAM_MAX, _SC_PRIORITY_SCHEDULING):
7499         Added for non-Cygwin, non-RTEMS configurations.
7500         * libc/sys/linux/Makefile.am: Add support for crt1 and sysconf.
7501         * libc/sys/linux/Makefile.in: Regenerated.
7502         * libc/sys/linux/crt1.c: New empty file to override one defaulted
7503         by gcc.  This fixes problem with reconfiguring linux newlib build.
7504         * libc/sys/linux/sysconf.c: New file.
7505
7506 2002-04-03  Jeff Johnston  <jjohnstn@redhat.com>
7507
7508         * configure.host: Add support for machine subdirectory of
7509         sys subdirectory.
7510         * configure.in: Add check for sys machine subdirectory.
7511         * Makefile.am: Ditto.
7512         * configure: Regenerated.
7513         * Makefile.in: Ditto.
7514         * libc/sys/linux/crt0.c: Moved to machine/i386 directory.
7515         * libc/sys/linux/sys/syscall.h: Ditto.
7516         * libc/sys/linux/sleep.c: New file.
7517         * libc/sys/linux/socket.c: Ditto.
7518         * libc/sys/linux/sockops.h: Ditto.
7519         * libc/sys/linux/stack.c: Ditto.
7520         * libc/sys/linux/usleep.c: Ditto.
7521         * libc/sys/linux/machine/Makefile.am: Ditto.
7522         * libc/sys/linux/machine/Makefile.in: Ditto.
7523         * libc/sys/linux/machine/aclocal.m4: Ditto.
7524         * libc/sys/linux/machine/configure: Ditto.
7525         * libc/sys/linux/machine/configure.in: Ditto.
7526         * libc/sys/linux/machine/i386/Makefile.am: Ditto.
7527         * libc/sys/linux/machine/i386/Makefile.in: Ditto.
7528         * libc/sys/linux/machine/i386/aclocal.m4: Ditto.
7529         * libc/sys/linux/machine/i386/configure: Ditto.
7530         * libc/sys/linux/machine/i386/configure.in: Ditto.
7531         * libc/sys/linux/machine/i386/crt0.c: Ditto.
7532         * libc/sys/linux/machine/i386/sigset.c: Ditto.
7533         * libc/sys/linux/machine/i386/sigstack.h: Ditto.
7534         * libc/sys/linux/machine/i386/socketcall.h: Ditto.
7535         * libc/sys/linux/machine/i386/syscall.h: Ditto.
7536         * libc/sys/linux/sys/select.h: Ditto.
7537         * libc/sys/linux/configure.in: Add support for machine directory.
7538         * libc/sys/linux/Makefile.am: Ditto plus add new files above.
7539         * libc/sys/linux/Makefile.in: Regenerated.
7540         * libc/sys/linux/configure: Ditto.
7541         * libc/sys/linux/brk.c: Use machine/syscall.h instead of sys/syscall.h.
7542         * libc/sys/linux/inode.c: Ditto.
7543         * libc/sys/linux/linux.c: Ditto.
7544         * libc/sys/linux/process.c: Ditto.
7545         * libc/sys/linux/systat.c: Ditto.
7546         * libc/sys/linux/time.c: Ditto.
7547         * libc/sys/linux/wait.c: Ditto.
7548         * libc/sys/linux/ids.c: Change header plus add setfsgid/setfsuid.
7549         * libc/sys/linux/io.c: Change header plus add readv/writev.
7550         * libc/sys/linux/signal.c: Change header plus change sigsuspend to
7551         use __sigsuspend syscall.
7552         * libc/sys/linux/select.c: Change header plus change select to
7553         use _newselect syscall.
7554         * libc/sys/linux/sys/cdefs.h: Add a number of standard definitions
7555         used by glibc header files.
7556         * libc/sys/linux/sys/types.h: Add __socklen_t and __useconds_t
7557         types.
7558
7559 2002-04-01  Jeff Johnston  <jjohnstn@redhat.com>
7560
7561         * libc/include/sys/reent.h (_REENT_INIT_PTR): New macro for
7562         initializing a struct _reent that has been dynamically allocated.
7563         (_REENT_CHECK_MISC): New macro that checks _misc struct for
7564         _REENT_SMALL and does nothing otherwise.
7565         (_REENT_STRTOK_LAST): New macro for reentrant strtok.
7566         (_REENT_MBLEN_STATE): New macro for reentrant mblen.
7567         (_REENT_MBTOWC_STATE): New macro for reentrant mbtowc.
7568         (_REENT_WCTOMB_STATE): New macro for reentrant wctomb.
7569         [_REENT_SMALL](struct _misc_reent): New structure containing
7570         miscellaneous reentrant areas needed by newlib.
7571         [_REENT_SMALL](struct _reent): Add _misc pointer.
7572         [_REENT_SMALL](_REENT_INIT_MISC): New macro.
7573         * libc/string/strtok (strtok): Change to use _REENT_CHECK_MISC
7574         and _REENT_STRTOK_LAST macros.
7575         * libc/stdlib/mblen (mblen): Change to use _REENT_CHECK_MISC
7576         and _REENT_MBLEN_STATE macros.
7577         * libc/stdlib/mbtowc (mbtowc): Change to use _REENT_CHECK_MISC
7578         and _REENT_MBTOWC_STATE macros.
7579         * libc/stdlib/wctomb (wctomb): Change to use _REENT_CHECK_MISC
7580         and _REENT_WCTOMB_STATE macros.
7581
7582 2002-04-01  Till Straumann <strauman@SLAC.Stanford.EDU>
7583
7584         * libc/stdlib/getenv_r.c (_findenv_r): Add missing ENV_UNLOCK.
7585
7586 Wed Mar 27 07:34:44 2002  Jason Tishler <jason@tishler.net>
7587
7588         * libc/include/sys/features.h (_POSIX_SEMAPHORES): New Cygwin define.
7589
7590 Tue Mar 26 17:17:10 2002  J"orn Rennecke <joern.rennecke@superh.com>
7591
7592         * libc/machine/sh/memcpy.S (Large): Fix alignment rounding.
7593         Store high part of leading bytes too.
7594
7595 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
7596
7597         * libm/math/ef_hypot.c: Increase scale factor to 68.
7598
7599 2002-03-13  Alexandre Oliva  <aoliva@redhat.com>
7600
7601         * libc/machine/mips/strlen.c (strlen) [__mips16]: Fix off-by-two
7602         error.
7603
7604 2002-03-12  Jeff Johnston  <jjohnstn@redhat.com>
7605
7606         * libc/sys/go32/access.c: Change license to relaxed license
7607         used in identical file throughout newlib/libgloss.
7608
7609 2002-03-12  Richard Earnshaw  <rearnsha@arm.com>
7610
7611         * libc/sys/arm/access.c: New file.
7612         * libc/sys/arm/Makefile.am (lib_a_SOURCES): Add access.c.
7613         * libc/sys/arm/Makefile.in: Regenerate.
7614         * libc/sys/arm/syscalls.c (_stat): New function.
7615
7616 2002-03-11  Michael Meissner  <meissner@redhat.com>
7617
7618         * libc/machine/mips/Makefile.am (lib_a_SOURCES): Add Mips specific
7619         variants strlen.c, strcmp.c, strncpy.c, memset.c and memcpy.c.
7620         * libc/machine/mips/Makefile.in: Regenerate.
7621         * libc/machine/mips/memcpy.c: New file, optimized for MIPS.
7622         * libc/machine/mips/memset.c: Dito.
7623         * libc/machine/mips/strcmp.c: Dito.
7624         * libc/machine/mips/strlen.c: Dito.
7625         * libc/machine/mips/strncmp.c: Dito.
7626
7627 2002-03-06  Jeff Johnston  <jjohnstn@redhat.com>
7628
7629         * libc/machine/i386/Makefile.am: Add $(oext) for setjmp
7630         object so it works for shared library or statici library.
7631         * libc/machine/i386/Makefile.in: Regenerated.
7632
7633 Wed Mar  6 10:24:26 2002  J"orn Rennecke <joern.rennecke@superh.com>
7634
7635         * libc/machine/sh/Makefile.am (lib_a_SOURCES, SH64 case):
7636         Add memcpy.S, memset.S and strcpy.S.
7637         * libc/machine/sh/Makefile.in: Regenerate.
7638         * libc/machine/sh/asm.h (_ENTRY): Set SH5 alignment to 8 bytes.
7639         (SHHI, SHLO): Define.
7640         * libc/machine/sh/memset.S: Add code for SH5.
7641         * libc/machine/sh/memset.S: Likewise.
7642         * libc/machine/sh/strcpy.S: Likewise.
7643
7644 2002-02-27  Jeff Johnston  <jjohnstn@redhat.com>
7645
7646         * configure.host: Add check for --disable-newlib-io-float
7647         configuration option and add -DNO_FLOATING_POINT to newlib cflags
7648         if appropriate.
7649         * acinclude.m4: Added --disable-newlib-io-float option.
7650         * aclocal.m4: Regenerated.
7651         * configure: Ditto.
7652         * doc/aclocal.m4 doc/configure libc/aclocal.m4 libc/configure
7653         * libc/*/aclocal.m4 libc/*/configure 
7654         * libm/*/aclocal.m4 libm/*/configure: Ditto.
7655         * libc/stdio/vfprintf.c [!INTEGER_ONLY]: Only set FLOATING_POINT
7656         if NO_FLOATING_POINT flag is not defined.
7657
7658 2002-02-25  Jeff Johnston  <jjohnstn@redhat.com>
7659
7660         * libc/include/sys/config.h: Add __extension__ in front of
7661         long long references.
7662
7663 2002-02-23  Corinna Vinschen  <corinna@vinschen.de>
7664
7665         * libc/include/sys/stat.h (_fstat): Don't declare when compiling Cygwin.
7666         (_stat): Ditto.
7667
7668 2002-02-23  Corinna Vinschen  <corinna@vinschen.de>
7669
7670         * libc/sys/cygwin/sys/dirent.h (struct __DIR): Use __off32_t instead
7671         of off_t.
7672
7673 2002-02-20  Nick Clifton  <nickc@cambridge.redhat.com>
7674
7675         * libc/machine/xscale/strchr.c (strchr): Add 'r1' to the list of
7676         clobbered registers.
7677
7678 2002-02-19  Thomas Fitzsimmons  <fitzsim@redhat.com>
7679
7680         * configure.host (newlib_cflags): When host is in m68* add
7681         -DCOMPACT_CTYPE.
7682
7683 2002-02-15  Jeff Johnston  <jjohnstn@redhat.com>
7684
7685         * libc/include/sys/config.h: Add definitions for
7686         __int16_t, __uint16_t, __int64_t, and __uint64_t.
7687
7688 2002-02-12  Hans-Peter Nilsson  <hp@bitrange.com>
7689
7690         * libc/sys/mmixware/link.c: New.
7691         * libc/sys/mmixware/sys/syscall.h (TRAP1i, I3f): Make asm
7692         volatile.
7693         * libc/sys/mmixware/times.c (_times): Renamed from times.
7694         * libc/sys/mmixware/open.c (_open): Attempt to handle O_APPEND
7695         properly by reading previous contents, not through BinaryReadWrite.
7696         * libc/sys/mmixware/Makefile.am (lib_a_SOURCES): Add link.c
7697         * libc/sys/mmixware/Makefile.in: Regenerate.
7698
7699 2002-02-10  Corinna Vinschen  <corinna@vinschen.de>
7700
7701         * libc/include/grp.h: Don't declare group functions when compiling
7702         Cygwin.
7703
7704 2002-02-09  Corinna Vinschen  <corinna@vinschen.de>
7705
7706         * libc/include/grp.h: Include Cygwin specific header.
7707         * libc/include/sys/stat.h: Ditto.  Don't define `struct stat'
7708         when compiling for Cygwin.
7709         * libc/include/sys/types.h: Don't define off_t, uid_t
7710         and gid_t when compiling for Cygwin.
7711
7712 2002-02-08  matthew green  <mrg@redhat.com>
7713
7714         * libc/include/sys/reent.h (_REENT_CHECK_EMERGENCY): Allocate
7715         _REENT_EMERGENCY_SIZE, not sizeof(char *).
7716
7717 2002-02-08  Alexandre Oliva  <aoliva@redhat.com>
7718
7719         Contribute sh64-elf.
7720         2001-03-13  Alexandre Oliva  <aoliva@redhat.com>
7721         * configure.host (newlib_cflags) [sh*-*-*]: Enable long long
7722         support in printf.
7723         2001-01-29  Alexandre Oliva  <aoliva@redhat.com>
7724         * libc/machine/sh/setjmp.S [SH5]: Switch to SHmedia mode before
7725         any labels.
7726         2001-01-24  Alexandre Oliva  <aoliva@redhat.com>
7727         * libc/sys/sh/trap.S (___trap34) [SH5]: Don't trash r2.
7728         2000-12-16  Alexandre Oliva  <aoliva@redhat.com>
7729         * libc/machine/sh/configure.in: Rework conditionals.
7730         * libc/machine/sh/Makefile.am: Likewise.
7731         * libc/machine/sh/configure, libc/machine/sh/Makefile.in: Rebuilt.
7732         2000-12-01  Alexandre Oliva  <aoliva@redhat.com>
7733         * configure.host: Match `sh*'.
7734         * libc/include/machine/setjmp.h: Define for SH5.
7735         * libc/machine/sh/configure.in: Detect SH5.
7736         * libc/machine/sh/configure: Rebuilt.
7737         * libc/machine/sh/Makefile.am: Use only setjmp.S for SH5.
7738         * libc/machine/sh/Makefile.in: Rebuilt.
7739         * libc/machine/sh/asm.h: Adjust for SH5.
7740         * libc/machine/sh/setjmp.S: Implement in SHmedia.
7741         * libc/sys/sh/crt0.S: Likewise.
7742         * libc/sys/sh/trap.S: Likewise.
7743
7744 2002-02-07  Jeff Johnston  <jjohnstn@redhat.com>
7745
7746         * libc/machine/i386/Makefile.am: (mach_add_src): Remove.
7747         (mach_add_obj): Conditionally set to setjmp.o or nothing.
7748         (LIB_SOURCES): Remove $(mach_add_src).
7749         (lib_a_LIBADD, lib_a_DEPENDENCIES): Add and set to $(mach_add_src).
7750         (lib_la_LIBADD, lib_la_DEPENDENCIES): Ditto.
7751         * libc/machine/i386/Makefile.in: Regenerate.
7752
7753 2002-02-05  Manik Raina <manik@cisco.com>
7754
7755         * libc/misc/dprintf.c (parse_number): #if 0 unused function.
7756         * libc/stdlib/ldtoa.c (_ldcheck): Remove unused local variables
7757         s, p, k, and outstr.
7758         * libc/stdlib/dtoa.c (_dtoa_r): Initialize mlo.
7759
7760 2002-02-04  Jeff Johnston  <jjohnstn@redhat.com>
7761
7762         * libc/include/sys/reent.h [(!_REENT_SMALL]: Add
7763         _REENT_CHECK_EMERGENCY macro.
7764
7765 2002-02-03  matthew green  <mrg@redhat.com>
7766
7767         * libc/reent/signgam.c (__signgam): Fix error in previous.
7768
7769 2002-02-02  matthew green  <mrg@redhat.com>
7770
7771         * libc/include/sys/config.h (_REENT_SMALL): Define for Xstormy16.
7772
7773         * libc/reent/reent.c (_reclaim_reent): Clean for _REENT_SMALL case.
7774         * libc/reent/reent.tex: Add blurb about _REENT_SMALL.
7775         * libc/include/sys/reent.h (struct _reent): Completely new version
7776         for _REENT_SMALL.
7777         (_REENT_INIT): New defines, different defintion depending on _REENT_SMALL.
7778         (_REENT_CHECK, _REENT_CHECK_TM): Likewise.
7779         (_REENT_CHECK_ASCTIME_BUF, _REENT_INIT_RAND48): Likewise.
7780         (_REENT_CHECK_RAND48, _REENT_INIT_MP, _REENT_CHECK_MP): Likewise.
7781         (_REENT_CHECK_EMERGENCY, _REENT_SIGNGAM, _REENT_RAND_NEXT): Likewise.
7782         (_REENT_RAND48_SEED, _REENT_RAND48_MULT, _REENT_RAND48_ADD): Likewise.
7783         (_REENT_MP_RESULT, _REENT_MP_RESULT_K, _REENT_MP_P5S): Likewise.
7784         (_REENT_MP_FREELIST, _REENT_ASCTIME_BUF, _REENT_TM): Likewise.
7785         (_REENT_EMERGENCY): Likewise.
7786
7787         * libc/include/sys/reent.h (struct __sFILE_fake): New struct, same as
7788         the start of the real __sFILE, used for stdin, stdout and stderr until
7789         they are setup properly.
7790         (struct __sFILE): Move location of _data in _REENT_SMALL case.
7791         * libc/stdio/findfp.c (__sinit): Rearrange for _REENT_SMALL case by
7792         allocated stdin, stdout and stderr.
7793         * libc/stdio/getchar.c (_getchar_r): Call _REENT_SMALL_CHECK_INIT().
7794         * libc/stdio/iprintf.c (iprintf, _iprintf_r): Likewise.
7795         * libc/stdio/perror.c (_perror_r): Likewise.
7796         * libc/stdio/printf.c (printf, _printf_r): Likewise.
7797         * libc/stdio/putchar.c (_putchar_r): Likewise.
7798         * libc/stdio/puts.c (_puts_r): Likewise.
7799         * libc/stdio/scanf.c (scanf, _scanf_r): Likewise.
7800         * libc/stdio/vprintf.c (vprintf): Likewise.
7801         * libc/stdio/vscanf.c (vscanf, _vscanf_r): Likewise.
7802
7803         * libc/stdio/tmpnam.c (_tmpnam_r): Use _REENT_EMERGENCY().
7804
7805         * libc/reent/reent.c (_wrapup_reent): Adjust for _REENT_SMALL atexit.
7806         * libc/include/sys/reent.h (_atexit): Limit atexit() entries to 32
7807         for _REENT_SMALL.
7808         * libc/stdlib/atexit.c (atexit): Rearrange for _REENT_SMALL case.
7809         * libc/stdlib/exit.c (exit): Rearrange for _REENT_SMALL case.
7810
7811         * libc/include/sys/reent.h (struct _rand48): Keep _rand_next if
7812         _REENT_SMALL.
7813         * libc/stdlib/drand48.c (_drand48_r): Call _REENT_CHECK_RAND48().
7814         * libc/stdlib/lcong48.c (_lcong48_r): Likewise.
7815         * libc/stdlib/lrand48.c (_lrand48_r): Likewise.
7816         * libc/stdlib/mrand48.c (_mrand48_r): Likewise.
7817         * libc/stdlib/rand48.c (__dorand48): Likewise.
7818         * libc/stdlib/seed48.c (_seed48_r): Likewise.
7819         * libc/stdlib/srand48.c (_srand48_r): Likewise.
7820         * libc/stdlib/rand48.h (__rand48_seed, __rand48_mult, __rand48_add): Define
7821         as _REENT_RAND48_SEED(), _REENT_RAND48_MULT() and _REENT_RAND48_ADD().
7822         * libc/stdlib/dtoa.c (_dtoa_r): Call _REENT_CHECK_MP().  Use
7823         _REENT_MP_RESULT() and _REENT_MP_RESULT_K().
7824         * libc/stdlib/ldtoa.c (_ldtoa_r): Likewise.
7825         * libc/stdlib/rand.c (srand): Use _REENT_RAND_NEXT().
7826         * libc/stdlib/rand.c (rand): Likewise.
7827
7828         * libc/stdlib/mallocr.c (malloc_stats): Call _REENT_SMALL_CHECK_INIT().
7829         * libc/stdlib/mstats.c (_mstats_r): Call _REENT_SMALL_CHECK_INIT().
7830
7831         * libc/stdlib/mprec.c (Balloc): Call _REENT_CHECK_MP.  Use
7832         _REENT_MP_FREELIST() and _REENT_MP_P5S.
7833         * libc/include/sys/reent.h (struct _mprec): New structure.
7834
7835         * libc/include/sys/reent.h (struct _reent): Rename _strtok_last to
7836         _unused_strtok_last.
7837         * libc/string/strtok.c (strtok): Use a local static variable.
7838
7839         * libc/include/sys/reent.h (_REENT_ASCTIME_SIZE): New define.
7840         (_REENT_EMERGENCY_SIZE): Likewise.
7841         * libc/time/asctime.c (asctime): Call _REENT_CHECK_ASCTIME_BUF().  Use
7842         _REENT_ASCTIME_BUF().
7843         * libc/time/lcltime.c (localtime): Call _REENT_CHECK_TM().  Use
7844         _REENT_TM().
7845
7846         * libc/include/math.h (__singam_r): Use _REENT_SIGNGAM().
7847         * libc/reent/signgam.c (__signgam): Use _REENT_SIGNGAM().
7848         * libm/math/w_gamma.c (gamma): Use _REENT_SIGNGAM().
7849         * libm/math/w_lgamma.c (lgamma): Use _REENT_SIGNGAM().
7850         * libm/math/wf_gamma.c (gammaf): Use _REENT_SIGNGAM().
7851         * libm/math/wf_lgamma.c (lgammaf): Use _REENT_SIGNGAM().
7852
7853 2002-02-01  Geoffrey Keating  <geoffk@redhat.com>
7854
7855         * configure.host (xstormy16): Don't use the generic malloc.
7856         * libc/machine/xstormy16/Makefile.am: Build tiny-malloc.
7857         * libc/machine/xstormy16/Makefile.in: Regenerate.
7858         * libc/machine/xstormy16/mallocr.c: New file.
7859         * libc/machine/xstormy16/tiny-malloc.c: New file.
7860
7861 2002-01-28  Thomas Fitzsimmons  <fitzsim@redhat.com>
7862
7863         * libc/include/sys/signal.h [__CYGWIN__]: Issue error message
7864         when _CYGWIN_TYPES_H is not defined.
7865
7866 2002-01-24  Thomas Fitzsimmons  <fitzsim@redhat.com>
7867
7868         * libc/include/sys/signal.h: Revert 2002-01-23 change.
7869
7870 2002-01-23  Thomas Fitzsimmons  <fitzsim@redhat.com>
7871
7872         * libc/include/sys/signal.h: Remove pthread_kill declaration
7873         when __CYGWIN__ is defined.
7874
7875 2002-01-18  Mark Bradshaw  <bradshaw@staff.crosswalk.com>
7876
7877         * libc/include/time.h: Add prototype for strptime for Cygwin.
7878
7879 2002-01-17  Nick Clifton  <nickc@cambridge.redhat.com>
7880
7881         * libc/machine/xscale/memset.c (memset): Fix bug when len == 1 and
7882         dst was not word aligned.
7883
7884         * libc/sys/arm/syscalls.c (_sbrk): Return -1 rather than aborting
7885         if too much memory is requested.
7886
7887 2002-01-11 Jeff Johnston  <jjohnstn@redhat.com>
7888
7889         * libc/stdio/vfscanf.c (__svfscanf_r): Change loop that
7890         reads blanks from the input file to break if EOF reached
7891         rather than end processing.
7892
7893 2002-01-07 Jeff Johnston  <jjohnstn@redhat.com>
7894
7895         * MAINTAINERS: Change e-mail addresses to refer to redhat domain.
7896
7897 2002-01-07 Alan Matsuoka <alanm@redhat.com>
7898
7899         * libc/include/machine/ieeefp.h: Configure d10v doubles to
7900         be 32 bits if __DOUBLE__ == 32  otherwise doubles are 64 bits.
7901         libc/include/sys/config.h: Ditto.
7902
7903 2001-12-28  Corinna Vinschen  <corinna@vinschen.de>
7904
7905         * libc/sys/cygwin/sys/utmp.h: Add definition of UTMP_FILE.
7906
7907 2001-12-22  Geoffrey Keating  <geoffk@redhat.com>
7908             Catherine Moore  <clm@redhat.com>
7909             Richard Henderson  <rth@redhat.com>
7910             Corinna Vinschen  <vinschen@redhat.com>
7911
7912         * configure.host: Add support for xstormy16.
7913         * libc/include/machine/ieeefp.h: Add support for xstormy16.
7914         * libc/include/machine/setjmp.h: Add support for xstormy16.
7915         * libc/include/sys/config.h: Add support for xstormy16.
7916         * libc/machine/xstormy16/Makefile.am: New file.
7917         * libc/machine/xstormy16/Makefile.in: New file.
7918         * libc/machine/xstormy16/aclocal.m4: New file.
7919         * libc/machine/xstormy16/configure: New file.
7920         * libc/machine/xstormy16/configure.in: New file.
7921         * libc/machine/xstormy16/setjmp.S: New file.
7922
7923 2001-12-19  Thomas Fitzsimmons  <fitzsim@redhat.com>
7924
7925         * libm/machine/configure.in (HAVE_LIBM_MACHINE_DIR): New conditional.
7926         * libm/machine/Makefile.am [HAVE_LIBM_MACHINE_DIR] (LIBM_MACHLIB): New variable.
7927
7928 2001-12-19  Corinna Vinschen  <corinna@vinschen.de>
7929
7930         * libm/machine/Makefile.am: Change rules to create correct lib.a.
7931         * libm/machine/Makefile.in: Regenerated through automake.
7932
7933 2001-12-18  Thomas Fitzsimmons  <fitzsim@redhat.com>
7934
7935         * Makefile.am (DOCDIR): Force to empty string when doc
7936         directory is not present.
7937
7938 2001-12-18  Thomas Fitzsimmons  <fitzsim@redhat.com>
7939
7940         * libc/machine/i386/f_*: Move to libm/machine/i386.
7941
7942 2001-12-18      Joel Sherrill <joel@OARcorp.com>
7943
7944         * libm/machine/Makefile.am: Add dummy doc stub so
7945         "make info" works.
7946
7947 2001-12-17      Joel Sherrill <joel@OARcorp.com>
7948
7949         * libc/include/sys/types.h (ino_t): RTEMS uses long also.
7950
7951 2001-12-17  Thomas Fitzsimmons  <fitzsim@redhat.com>
7952
7953         * libc/stdlib/Makefile.am (LIB_COMPILE): Change to equal
7954         $(COMPILE) rather than $(CC).
7955         * libc/stdio/Makefile.am (LIB_COMPILE): Likewise.
7956         (vfprintf.$(oext)): Remove $(INCLUDES), made redundant by
7957         $(LIB_COMPILE) change.
7958         (vfiprintf.$(oext)): Likewise.
7959
7960 2001-12-17  Corinna Vinschen  <vinschen@redhat.de>
7961
7962         * libc/sys/cygwin/include/unistd.h: Add __UNISTD_GETOPT_ to allow
7963         conditionalized including of getopt stuff.
7964
7965 2001-12-14  Thomas Fitzsimmons  <fitzsim@redhat.com>
7966
7967         * libc/stdio/Makefile.am (vfprintf.$(oext)): Add $(INCLUDES) to
7968         compile line.
7969         (vfiprintf.$(oext)): Likewise.
7970
7971 2001-12-13  Thomas Fitzsimmons  <fitzsim@redhat.com>
7972
7973         * Makefile.shared: New file.
7974         * libc/sys/linux/shared.ld: New file.
7975         * libm/machine/*: New files.
7976         * libm/machine/i386/*: New files.
7977         * Makefile.am: Add libtool support.  Change math and mathfp
7978         references to variables.
7979         * configure.host: Add variables for libtool support.  Add
7980         libm_machine_dir variable.
7981         * configure.in: Add objectlist variables, for libtool
7982         support.  Add CC_FOR_BUILD tests.
7983         * libc/Makefile.am: Add libtool support.  Change crt0.o
7984         reference to be a variable reference.
7985         * libc/configure.in: Add libtool support.  Change sublib
7986         names to be lib${subdir}.la when using libtool.
7987         * libc/ctype/Makefile.am: Add libtool support.
7988         * libc/errno/Makefile.am: Likewise.
7989         * libc/locale/Makefile.am: Likewise.
7990         * libc/machine/Makefile.am: Likewise.
7991         * libc/machine/configure.in: Likewise.
7992         * libc/machine/i386/Makefile.am: Likewise.
7993         * libc/machine/i386/configure.in: Likewise.
7994         * libc/misc/Makefile.am: Likewise.
7995         * libc/posix/Makefile.am: Likewise.
7996         * libc/reent/Makefile.am: Likewise.
7997         * libc/signal/Makefile.am: Likewise.
7998         * libc/stdio/Makefile.am: Likewise.
7999         * libc/stdlib/Makefile.am: Likewise.
8000         * libc/string/Makefile.am: Likewise.
8001         * libc/sys/Makefile.am: Likewise.
8002         * libc/sys/configure.in: Likewise.
8003         * libc/sys/linux/Makefile.am: Add libtool support.  Change
8004         awk reference to a variable reference.  Change signal.h
8005         reference to a variable reference.
8006         * libc/sys/linux/configure.in: Add libtool support.
8007         * libc/syscalls/Makefile.am: Likewise.
8008         * libc/time/Makefile.am: Likewise.
8009         * libc/unix/Makefile.am: Likewise.
8010         * libm/Makefile.am: Add libtool support.  Change math and
8011         mathfp references to variables.
8012         * libm/configure.in: Add libtool support.  Add
8013         LIBM_MACHINE_LIB variable.
8014         * libm/common/Makefile.am: Add libtool support.
8015         * libm/math/Makefile.am: Likewise.
8016         * libm/mathfp/Makefile.am: Likewise.
8017         Regenerate all Makefile.in, aclocal.m4, and configure.
8018
8019 2001-12-13 Anita Kulkarni <anitak@kpit.com>
8020
8021         * libc/sys/sh/crt0.S: Remove stack symbol definition 0xdeaddead.
8022
8023 2001-12-06  John Peacock <jpeacock@rowman.com>
8024
8025         * libc/include/sys/unistd.h: Correct ualarm declaration.
8026
8027 2001-12-05  Nick Clifton  <nickc@cambridge.redhat.com>
8028
8029         * libc/sys/arm/crt0.S: For __USES_INITFINI__ preserve the argument
8030         vector before calling the initialisation functions.
8031
8032 2001-11-29  Christopher Faylor  <cgf@redhat.com>
8033
8034         * libc/include/dirent.h: Protect against multiple inclusion.
8035
8036 2001-11-27  Christopher Faylor  <cgf@redhat.com>
8037
8038         * libc/include/sys/types.h: Define useconds_t.
8039         * libc/include/sys/ulimit.h: Declare ualarm.
8040
8041 2001-11-21  Christopher Faylor  <cgf@redhat.com>
8042
8043         * libc/sys/cygwin/sys/dirent.h (DIR): Add another internal element.
8044
8045 2001-11-19  Hans-Peter Nilsson  <hp@bitrange.com>
8046
8047         * libc/sys/mmixware/*: Tweak license header in all source files.
8048
8049 2001-11-12  Corinna Vinschen  <vinschen@redhat.com>
8050
8051         * libc/include/alloca.h: Move libc/sys/linux/include/alloca.h
8052         to here.  Rearrange for general inclusion by stdlib.h.
8053         * libc/include/stdlib.h: Include <alloca.h> if __STRICT_ANSI__
8054         isn't defined.
8055         * libc/sys/linux/include/alloca.h: Move to libc/include.
8056
8057 2001-11-12  Anthony Green  <green@redhat.com>
8058
8059         * libc/sys/arm/crt0.S (__stack_base__): New symbol.
8060
8061 2001-11-13  Hans-Peter Nilsson  <hp@bitrange.com>
8062
8063         * libc/sys/mmixware/*: Correct spacing in all source files.
8064         * libc/sys/mmixware/syscall.h: Move misplaced file...
8065         * libc/sys/mmixware/sys/syscall.h: ...here.
8066
8067 2001-11-12  Hans-Peter Nilsson  <hp@bitrange.com>
8068
8069         * libc/include/machine/ieeefp.h: Add support for mmix target.
8070         * libc/include/machine/setjmp.h: Ditto.
8071         * configure.host: Ditto.
8072         * libc/sys/mmixware/Makefile.am, libc/sys/mmixware/_exit.c,
8073         libc/sys/mmixware/access.c, libc/sys/mmixware/aclocal.m4,
8074         libc/sys/mmixware/chmod.c, libc/sys/mmixware/chown.c,
8075         libc/sys/mmixware/close.c, libc/sys/mmixware/configure.in,
8076         libc/sys/mmixware/creat.c, libc/sys/mmixware/crt0.c,
8077         libc/sys/mmixware/execv.c, libc/sys/mmixware/execve.c,
8078         libc/sys/mmixware/fork.c, libc/sys/mmixware/fstat.c,
8079         libc/sys/mmixware/getpid.c, libc/sys/mmixware/gettime.c,
8080         libc/sys/mmixware/isatty.c, libc/sys/mmixware/kill.c,
8081         libc/sys/mmixware/lseek.c, libc/sys/mmixware/open.c,
8082         libc/sys/mmixware/pipe.c, libc/sys/mmixware/read.c,
8083         libc/sys/mmixware/sbrk.c, libc/sys/mmixware/setjmp.S,
8084         libc/sys/mmixware/stat.c, libc/sys/mmixware/sys/syscall.h,
8085         libc/sys/mmixware/time.c, libc/sys/mmixware/times.c,
8086         libc/sys/mmixware/unlink.c, libc/sys/mmixware/utime.c,
8087         libc/sys/mmixware/wait.c, libc/sys/mmixware/write.c: New files.
8088         * libc/sys/mmixware/configure, libc/sys/mmixware/Makefile.in,
8089         libc/sys/mmixware/aclocal.m4: Generate.
8090
8091 2001-11-05  Corinna Vinschen  <corinna@vinschen.de>
8092
8093         * libc/include/sys/unistd.h: Add prototypes for endusershell(),
8094         getusershell(), iruserok(), revoke(), ruserok() and setusershell()
8095         when __CYGWIN__ is defined.
8096         * libc/sys/cygwin/sys/utmp.h: Add prototypes for login_tty() and
8097         logwtmp().
8098
8099 2001-11-01  Arati Dikey  <aratidikey@hotmail.com>
8100
8101         * libm/mathfp/sf_isinf.c (isinff): Change to use _DEFUN macro.
8102         [_DOUBLE_IS_32BITS](isinf): New function that calls isinff.
8103         * libm/mathfp/sf_isnan.c (isnanf): Change to use _DEFUN macro.
8104         [_DOUBLE_IS_32BITS](isnan): New function that calls isnanf.
8105
8106 2001-10-24  Christopher Faylor  <cgf@redhat.com>
8107
8108         * libc/stdio/fseek.c: Reset pointer to buffer base
8109         when forced to seek outside of current buffer contents.
8110         This prevents the code from erroneously thinking there is
8111         anything in the current buffer.
8112
8113 2001-10-22  Geoffrey Keating  <geoffk@redhat.com>
8114
8115         * libc/include/math.h: The C++ standard adds the single-precision
8116         versions of the elementary functions.
8117
8118 2001-10-22  Christopher Faylor  <cgf@redhat.com>
8119
8120         * libc/posix/execvp.c: Remove obsolete CYGWIN32 considerations
8121         throughout.
8122         * signal.h: Change comment to reflect __CYGWIN__ rather than __CYGWIN32__.
8123         * popen.c (popen): Use __CYGWIN_ rather than __CYGWIN32__.
8124         * system.c (_system_r): Ditto.
8125
8126 2001-10-17  Corinna Vinschen  <corinna@vinschen.de>
8127
8128         * libc/include/sys/unistd.h: Add prototype for fchdir() when
8129         __CYGWIN__ or __rtems__ is defined.
8130
8131 2001-10-01  Charles Wilson  <cwilson@ece.gatech.edu>
8132
8133         * libc/include/stdlib.h: add declarations for
8134         _strtoull_r, _strtoll_r, strtoull, and strtoll.
8135         * libc/stdio/local.h: remove declarations of
8136         __strtoull_r and __strtoll_r.
8137         * libc/stdio/vfscanf.c(__svfscanf_r): call
8138         _strtoull_r instead of __strtoull_r. Ditto
8139         _strtoll_r vs. __strtoll_r.
8140         * libc/stdlib/Makefile.am: add new files to
8141         .c list and .def list
8142         * libc/stdlib/Makefile.in: regenerate
8143         * libc/stdlib/strtoll_r.c: rename __strtoll_r
8144         as _strtoll_r
8145         * libc/stdlib/strtoull_r.c: rename __strtoull_r
8146         as _strtoull_r
8147         * libc/stdlib/strtoull.c: new file
8148         * libc/stdlib/strtoll.c: new file
8149
8150 Mon Sep 17 17:29:47 2001  Christopher Faylor <cgf@cygnus.com>
8151
8152         * libc/include/process.h: Add getpid() declaration.
8153
8154 2001-09-14  Nick Clifton  <nickc@cambridge.redhat.com>
8155
8156         * libc/sys/arm/crt0.S: Add calls to _init and _fini (via atexit)
8157         for new style arm/elf ctor/dtor handling.
8158         Minor formatting tidy up.
8159
8160 2001-09-13  Jeff Johnston  <jjohnstn@redhat.com>
8161
8162         * libc/stdlib/Makefile.am: Add support to build strtoll_r.c
8163         and strtoull_r.c.
8164         * libc/stdlib/Makefile.in: Regenerated.
8165         * libc/stdlib/strtoll_r.c: New file.
8166         * libc/stdlib/strtoull_r.c: New file.
8167         * libc/stdio/local.h: Add prototypes for long long string
8168         conversion routines.
8169         * libc/stdio/vfscanf.c (__svfscanf_r): Add optional long long support
8170         tied to %L integer conversion specifier.
8171
8172 Thu Sep 13 08:49:49 2001  Jason Tishler <jason@tishler.net>
8173
8174         * strftime.c (strftime): Fix "%W" implementation to properly handle
8175         Mondays too.
8176
8177 2001-09-07  Jeff Law  <law@redhat.com>
8178
8179         * libc/sys/h8300hms/crt0.S: For H8/300H and H8/S, load address of
8180         __fini with "mov.l" instead of "mov.w".
8181
8182 2001-09-05  Corinna Vinschen  <corinna@vinschen.de>
8183
8184         * libc/sys/cygwin/include/unistd.h: New file, wrapping sys/unistd.h
8185         and getopt.h.
8186
8187 2001-09-04  Jason Merrill  <jason_merrill@redhat.com>
8188
8189         * libc/sys/h8300hms/crt0.S: Support ELF initialization.
8190
8191 2001-09-03  Corinna Vinschen  <corinna@vinschen.de>
8192
8193         * libc/sys/cygwin/sys/dirent.h (struct dirent): Add version number
8194         field.
8195         (__DIRENT_VERSION): New define.
8196
8197 2001-09-03  Corinna Vinschen  <corinna@vinschen.de>
8198
8199         * libc/sys/cygwin/sys/dirent.h (struct dirent): Add `d_fd' member.
8200         Shrink __d_reserved accordingly to keep structure size.
8201         (dirfd): Declare external.
8202
8203 2001-08-29  Joel Sherrill <joel@OARcorp.com>
8204
8205         * libc/include/sys/unistd.h: Prototype chroot() for RTEMS.
8206
8207 2001-08-29  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
8208
8209         * libc/machine/i386/f_atan2.S, libc/machine/i386/f_atan2f.S,
8210           libc/machine/i386/f_exp.c, libc/machine/i386/f_expf.c,
8211           libc/machine/i386/f_frexp.S, libc/machine/i386/f_frexpf.S,
8212           libc/machine/i386/f_ldexp.S, libc/machine/i386/f_ldexpf.S,
8213           libc/machine/i386/f_log.S, libc/machine/i386/f_log10.S,
8214           libc/machine/i386/f_log10f.S, libc/machine/i386/f_logf.S,
8215           libc/machine/i386/f_pow.c, libc/machine/i386/f_powf.c,
8216           libc/machine/i386/f_tan.S, libc/machine/i386/f_tanf.S:
8217         Add conditional compilation to avoid HW FPU instructions
8218         when compiled for soft-float.
8219
8220 2001-08-29  Jeff Johnston  <jjohnstn@redhat.com>
8221
8222         * Makefile.am: Add check for ln failing when creating libg.a
8223         so that cp gets used as a backup.
8224         * Makefile.in: Regenerated.
8225
8226 2001-08-29  Jeff Johnston  <jjohnstn@redhat.com>
8227
8228         * libc/include/sys/reent.h: Add include of <sys/_types.h>.
8229         No longer include time.h.  Add struct __tm to use for
8230         _localtime_buf in the reentrant structure.  Add a
8231         _NULL definition to use in initializing the reentrant struct.
8232         * libc/include/sys/config.h: For CYGWIN32 and RTEMS, change
8233         the _READ_WRITE_RETURN_TYPE to _ssize_t which is found in
8234         <sys/_types.h>.
8235         * libc/include/sys/unistd.h: Include <sys/_types.h>.
8236         * libc/time/lcltime.c (localtime): Cast the reentrant struct
8237         _localtime_buf to be struct tm *.
8238
8239 Wed Aug 29 14:17:38 2001  J"orn Rennecke <amylaar@redhat.com>
8240
8241         * configure.host (h8300-*-elf*, h8500-*-elf*): New cases.
8242         * libc/sys/h8300hms/crt1.c (__main): Don't reference __ctors /
8243         __ctors_end.
8244         * libc/sys/h8300hms/syscalls.c: Include errno.h.
8245         (_unlink): New stub function.
8246
8247 Sat Aug 25 22:22:25 2001  Christopher Faylor <cgf@cygnus.com>
8248
8249         * libc/include/sys/errno.h: Add a cautionary comment.
8250
8251 2001-08-21  Jeff Johnston  <jjohnstn@redhat.com>
8252
8253         * libc/stdlib/mallocr.c [!defined(MALLOC_ALIGNMENT)]: Add conditional
8254         for SIZE_SZ so that alignment ends up a minimum of 8.
8255
8256 Mon Aug 13 22:26:01 2001  Christopher Faylor <cgf@cygnus.com>
8257
8258         * libc/include/machine/setjmp.h: Protect sigsetjmp/siglongjmp macro
8259         arguments.
8260
8261         * libc/include/sys/errno.h: Declare sys_errlist and sys_nerr, under
8262         Cygwin.
8263
8264 2001-08-13  Jeff Johnston  <jjohnstn@redhat.com>
8265
8266         * libc/include/malloc.h (M_MXFAST, M_NLBLKS, M_GRAIN, M_KEEP): New
8267         macro constants for mallopt options.
8268         (M_TRIM_THRESHOLD, M_TOP_PAD, M_MMAP_THRESHOLD, M_MMAP_MAX): Ditto.
8269
8270 2001-08-02  Jeff Johnston  <jjohnstn@redhat.com>
8271
8272         * libc/include/stdio.h (BUFSIZ): Define to __BUFSIZ__ if provided,
8273         otherwise default.
8274
8275 2001-07-12  Aldy Hernandez  <aldyh@redhat.com>
8276
8277         * libc/machine/mips/setjmp.S: Allow mips16 and mips64 to coexist.
8278
8279 2001-06-27  Nick Clifton  <nickc@cambridge.redhat.com>
8280
8281         * libc/include/machine/ieeefp.h (__IEEE_BYTES_LITTLE_ENDIAN):
8282         Define for little endian ARMs.
8283
8284         * libc/stdlib/mprec.h (Storeinc): Use little endian version if
8285         __IEEE_BYTES_LITTLE_ENDIAN is defined.
8286
8287 2001-06-11  Danny Smith  <dannysmith@users.sourceforge.net>
8288
8289         * /libc/include/ctype.h (is* and to* macros): Do not define if C++.
8290
8291 2001-06-11  Egor Duda  <deo@logos-m.ru>
8292
8293         * libc/ctype/ctype_.c: When compiled with gcc on platforms
8294         with signed char, make _ctype_[-128] ... _ctype[-1] refer to
8295         initialized memory region. Platform can define COMPACT_CTYPE
8296         to avoid allocation of the additional 128 bytes of data.
8297         Add pointer to _ctype_ array. Always initialize all _ctype_
8298         array elements.
8299
8300 2001-06-08  Jonathan Larmour  <jlarmour@redhat.com>
8301
8302         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Avoid dereferencing
8303         NULL pointer.
8304
8305 2001-05-28  Nick Clifton  <nickc@cambridge.redhat.com>
8306
8307         * libc/stdio/vfprintf.c (_VFPRINTF_R): Handle printf ("%#.0o",0)
8308
8309 2001-05-25  Nick Clifton  <nickc@cambridge.redhat.com>
8310
8311         * libc/machine/xscale/memcmp.c: Fix bug when both pointers have
8312         matching, non-word alignment, and the length is <= 4 but more than
8313         enough to move them over a word boundary.
8314         Add comments explaining what each instruction does.
8315
8316 Mon May  7 20:39:25 2001  Christopher Faylor <cgf@cygnus.com>
8317
8318         * libc/include/sys/stat.h: Revert March 3, Cygwin change.
8319         * libc/include/sys/unistd.h: Ditto.
8320
8321 2001-05-04  Earnie Boyd  <earnie@users.sourceforge.net>
8322
8323         * libc/string/strrchr.c: Use strchr for the speed improvements.
8324
8325 2001-05-01  Jeff Johnston  <jjohnstn@redhat.com>
8326
8327         * libc/stdio/findfp (__sinit)[HAVE_FCNTL]: For platforms that have
8328         real file systems, let __smakebuf() determine if line buffering
8329         should be used for stdout.
8330
8331 2001-04-27  Jeff Johnston  <jjohnstn@redhat.com>
8332
8333         * libc/stdio/vfscanf.c (__svfscanf_r): Initialize new_exp local var.
8334
8335 2001-04-27  Jeff Johnston  <jjohnstn@redhat.com>
8336
8337         * libc/include/stdlib.h: Add prototype for _strtod_r.
8338
8339 2001-04-24  Charles Wilson  <cwilson@ece.gatech.edu
8340
8341         * libc/stdio/vprintf.c (vprintf): fix signature to use _DEFUN
8342         * libc/stdio/vprintf.c (_vprintf_r): new function
8343         * libc/stdio/vsnprintf.c (vsnprintf): fix signature to use _DEFUN
8344         * libc/stdio/vsnprintf.c (_vsnprintf_r): fix signature to use
8345         _DEFUN, and call _vfprintf_r, not vfprintf.
8346         * libc/stdio/vsprintf.c (vsprintf.c): fix signature to use _DEFUN
8347         * libc/stdio/vsprintf.c (_vsprintf_r): fix signature to use
8348         _DEFUN, and call _vfprintf_r, not vfprintf.
8349
8350 2001-04-22  Earnie Boyd  <earnie@users.sourceforge.net>
8351   
8352         * libc/include/sys/unistd.h [X_OK]: Use better protection against
8353         Cygwin X_OK definitions in sys/file.h.
8354
8355 Fri Apr 20 23:17:51 2001  Christopher Faylor <cgf@cygnus.com>
8356
8357         * libc/include/sys/time.h: Define timercmp and other macros for
8358         __CYGWIN__, too.
8359
8360 2001-04-20  Jeff Johnston  <jjohnstn@redhat.com>
8361         
8362         * acinclude.m4: Added --enable-malloc-debugging configure flag.
8363         * configure.host: For Cygwin specify -DMALLOC_PROVIDED if
8364         --enable-malloc-debugging selected.
8365         * aclocal.m4 configure: Regenerated.
8366           libm/aclocal.m4 libm/configure: Ditto.
8367         * libc/aclocal.m4 libc/configure: Ditto.
8368         * libc/machine/aclocal.m4 libc/machine/configure: Ditto.
8369         * libc/machine/*/aclocal.m4 libc/machine/*/configure: Ditto.
8370         * libc/sys/aclocal.m4 libc/sys/configure: Ditto.
8371         * libc/sys/*/aclocal.m4 libc/sys/*/configure: Ditto.
8372         * doc/aclocal.m4 doc/configure: Ditto.
8373
8374 2001-04-20  Jeff Johnston  <jjohnstn@redhat.com>
8375
8376         * libc/include/stdio.h[!_REENT_ONLY]: Moved various functions together
8377         into one list.
8378         [!__STRICT_ANSI__]: Moved non-ANSI I/O functions in this list.
8379         (vfscanf, vscanf, vsscanf, _vfscanf_r, _vscanf_r, _vsscanf_r): New
8380         function prototypes.
8381         (_fscanf_r, _sscanf_r): Ditto.
8382         * libc/include/stdlib.h: Added _strtod_r prototype.
8383         * libc/stdio/Makefile.am: Add new v*scanf functions.
8384         * libc/stdio/Makefile.in: Regenerate.
8385         * libc/stdio/fscanf.c: Reorganized so HAVE_STDC only affects prototype
8386         and code is shared.  Added reentrant _fscanf_r which calls __svfscanf_r.
8387         * libc/stdio/scanf.c: Changed to call __svfscanf_r.
8388         * libc/stdio/sscanf.c: Changed documentation to add reentrant routines.
8389         (sscanf): Changed to call __svfscanf_r with _REENT argument.
8390         (_sscanf_r): New routine.
8391         * libc/stdio/local.h: Removed __svfscanf prototype and replaced it
8392         with __svfscanf_r prototype.
8393         * libc/stdio/vfscanf.c (vfscanf, _vfscanf_r: New
8394         routines.
8395         (__svfscanf_r): Reentrant version of __svfscanf which takes reetrancy
8396         structure as argument as calls reentrant versions of helper functions
8397         (e.g. _strtol_r, _strtoul_r). Also replaced calls to atol and atof
8398         to _strtol_r and _strtod_r respectively.
8399         * libc/stdio/vfscanf.c: Also changed __svfscanf to call __svfscanf_r.
8400         * libc/stdlib/strtod.c (strtod): Changed to call _strtod_r with
8401         _REENT argument.
8402         * libc/stdio/vscanf.c: New file.
8403         * libc/stdio/vsscanf.c: Ditto.
8404
8405 2001-04-19  Robert Collins  <rbtcollins@hotmail.com>
8406
8407         * include/time.h[__CYGWIN__]:  Define tzname to _tzname if not defined.
8408         Define daylight to _daylight if it is not defined
8409         Prepare a variable export of timezone based on timezonevariable. 
8410         (Cannot be used with the timezone() function.)
8411
8412 2001-04-17  Stephen L. Moshier  <moshier@moshier.ne.mediaone.net>
8413
8414         * newlib/libm/math/ef_asin.c (pio2_hi, pio2_lo, pio4_hi):
8415          Correct the numerical values.
8416
8417 2001-04-13  Robert Collins <rbtcollins@hotmail.com>
8418
8419         * libc/include/sys/unistd.h: Add pthread_atfork (Cygwin only).
8420
8421 Thu Apr 12 23:11:00 2001  Corinna Vinschen <corinna@vinschen.de>
8422
8423         * libc/include/sys/errno.h: Add ECASECLASH to indicate case clash
8424         on case insensitve file systems.
8425
8426 2001-04-12  Robert Collins <rbtcollins@hotmail.com>
8427
8428         * libc/include/sys/features.h: Add appropriate defines for Cygwin
8429         pthread support.
8430         * libc/include/sys/signal.h: Remove unneeded __CYGWIN__ protection.
8431         * libc/include/sys/types.h: Protect __CYGWIN__ from the rtems pthreads
8432         types.  Include <cygwin/types.h> for the cygwin specific typedefs.
8433
8434 2001-04-04  Richard Sandiford  <rsandifo@redhat.com>
8435
8436         * libc/include/machine/ieeefp.h: Comment about new configuration
8437         macros _FLT_LARGEST_EXPONENT_IS_NORMAL and _FLT_NO_DENORMALS.
8438         * libm/common/fdlib.h: Define new macros for testing floats.
8439         * libm/common/sf_*: Use them.
8440         * libm/math/ef_*: Likewise.
8441         * libm/math/sf_*: Likewise.
8442
8443 2001-03-29  Jeff Johnston  <jjohnstn@redhat.com>
8444
8445         * libc/sys/arm/setjmp.S: Added .code 16 specifier for thumb-mode
8446         prolog to by-pass possible assembler error.
8447
8448 2001-03-21  Egor Duda  <deo@logos-m.ru>
8449
8450         Allow building internal stubs for non-reentrant syscalls
8451         if target provides its own malloc
8452         * libc/reent/reent.c (errno): Move definition here.
8453         * libc/reent/sbrkr.c: From here.
8454
8455 2001-03-20  Danny Smith <dannysmith@users.sourceforge.net>
8456
8457         * libc/include/sys/types.h (BSD int typedefs): Guard with
8458         _BSDTYPES_DEFINED rather than _WINSOCK_H.
8459         (fd_set): Add !defined __USE_W32_SOCKETS to guard; define
8460         _SYS_TYPES_FD_SET.
8461         * libc/include/sys/unistd.h (gethostname): Don't declare if defined
8462         (_WINSOCK_H) || defined (__USE_W32_SOCKETS).
8463
8464 Sat Mar 17 18:30:00 2001  Corinna Vinschen <corinna@vinschen.de>
8465
8466         * libc/include/sys/unistd.h: Add _PC_POSIX_PERMISSONS and
8467         _PC_POSIX_SECURITY constants for Cygwin.
8468
8469 Wed Mar 14  9:34:00 2001  Corinna Vinschen <corinna@vinschen.de>
8470
8471         * libc/sys/cygwin/crt0.c: Add copyright hint.
8472         * libc/sys/cygwin/sys/dirent.h: Ditto.
8473         * libc/sys/cygwin/sys/param.h: Ditto.
8474         * libc/sys/cygwin/sys/utime.h: Ditto.
8475         * libc/sys/cygwin/sys/utmp.h: Ditto.
8476
8477 2001-03-13  Alexandre Oliva  <aoliva@redhat.com>
8478
8479         * libc/stdio/vfprintf.c (QUADINT) [_NO_LONGLONG]: Make it
8480         equivalent to LONGINT.
8481
8482 2001-03-08  Richard Sandiford  <rsandifo@redhat.com>
8483
8484         * (libc/include/machine/setjmp.h): Use 23 long long ints for a
8485         jmpbuf on MIPS64 targets.
8486         * (libc/machine/mips/setjmp.S): Add MIPS64 version.
8487
8488 Wed Mar  7 16:02:07 2001  Christopher Faylor <cgf@cygnus.com>
8489
8490         * libc/include/sys/config.h: Use ssize_t for Cygwin read/write 
8491           declarations.
8492
8493 Mon Mar  5 21:48:54 2001  J"orn Rennecke <amylaar@redhat.com>
8494
8495         * libc/include/sys/config.h (_READ_WRITE_RETURN_TYPE): Define.
8496         For RTEMS, define to be ssize_t.  Default to int if not defined.
8497         * libc/stdio/sscanf.c (eofread): Return _READ_WRITE_RETURN_TYPE.
8498         * libc/stdio/stdio.c (__sread, __swrite): Likewise.
8499         * libc/stdio/local.h (__sread, __swrite): Likewise.
8500         * libc/include/sys/reent.h (_read, _write): Likewise.
8501         * libc/include/sys/unistd.h (read, write, _read, _write): Likewise.
8502         * libc/syscalls/sysread.c (read): Likewise.
8503         * libc/syscalls/syswrite.c (write): Likewise.
8504
8505 2001-03-05  Jeff Johnston  <jjohnstn@redhat.com>
8506
8507         * libc/time/mktime.c: Add L suffix to _SEC_IN_xxxx constants.
8508
8509 Sat Mar  3 00:34:14 2001  Christopher Faylor <cgf@cygnus.com>
8510
8511         * libc/include/sys/stat.h: Use special defines for executable stat bits
8512         when compiling for Cygwin.
8513         * libc/include/sys/unistd.h: Use special define for X_OK when compiling
8514         for Cygwin.
8515
8516 2001-03-02  Jeff Johnston  <jjohnstn@redhat.com>
8517
8518         * libc/string/strtok.c: Add #undef of __STRICT_ANSI__ so prototype
8519         of strtok_r is always defined.
8520
8521 2001-03-02  Jeff Johnston  <jjohnstn@redhat.com>
8522
8523         * libc/include/machine/ansi.h: New dummy header file.
8524
8525 2001-02-22  Jeff Johnston  <jjohnstn@redhat.com>
8526
8527         * libc/include/machine/setjmp-dj.h: With DJ Delorie's permission,
8528         changed the copyright information to allow free modification of the
8529         file with no reference to "copying.dj".
8530         * libc/include/sys/stat-dj.h: Ditto.
8531         * libc/machine/i386/setjmp.S: Ditto.
8532         * libc/sys/h8300hms/sys/file.h: Ditto.
8533         * libc/sys/sysmec/access.c: Ditto.
8534         * libc/sys/sysnecv850/access.c: Ditto.
8535         * libc/stdio/mktemp.c: Fixed typo for the word copyright.
8536         * libc/stdlib/getenv_r.c: Ditto.
8537         * libc/stdlib/putenv_r.c: Ditto.
8538         * libc/stdlib/setenv_r.c: Ditto.
8539         * libc/stdlib/getenv.c: Removed DJ reference since any possible
8540         modifications will now be in the _r version of this file.
8541         * libc/stdlib/putenv.c: Ditto.
8542         * libc/stdlib/setenv.c: Ditto.
8543         * libc/sys/go32/copying.dj: Removed DJ's address which is no longer
8544         valid.  Added a reference to DJ's web page that contains his address.
8545         * libc/sys/go32/*.s: Removed references to DJ's old address.
8546         * libc/sys/go32/*.c: Ditto.
8547         * libc/sys/go32/*.h: Ditto.
8548         * libc/sys/go32/*.S: Ditto.
8549         * libc/sys/go32/sys/*.h: Ditto.
8550
8551 2001-02-21  Jeff Johnston  <jjohnstn@redhat.com>
8552
8553         * libc/stdio/fdopen.c (fdopen): Protect calls to _fcntl() with
8554         HAVE_FCNTL flag check.
8555         * configure.host: Define HAVE_FCNTL for Cygwin, go32, RTEMS, sparc64,
8556         powerpcle, x86 netware, x86 sco, x86 Linux and Vxworks.
8557
8558 Thu Feb 15 01:39:51 2001  Christopher Faylor <cgf@cygnus.com>
8559
8560         * libc/include/sys/signal.h: Always include sys/types.h under Cygwin.
8561
8562 2001-02-14  Kazuhiro Fujieda  <fujieda@jaist.ac.jp>
8563
8564         * libc/include/stdlib.h: Add declarations of rand48 functions and
8565         their reentrant versions.
8566         * libc/include/sys/reent.h: Move macros from rand48.h. Add
8567         struct _rand48 for shared parameters of rand48 functions.
8568         (struct _reent): Add a variable _r48 of struct _rand48.
8569         (_REENT_INIT): Add _r48 initialization.
8570         * libc/stdlib/Makefile.am (lib_a_SOURCES): Add rand48 functions.
8571         (CHEWOUT_FILES): Add rand48.def.
8572         * libc/stdlib/Makefile.am: Add dependencies for rand48 functions.
8573         * libc/stdlib/Makefile.in: Regenerated.
8574         * libc/stdlib/drand48.c (drand48, _drand48_r): Derived from the
8575         NetBSD C library.
8576         * libc/stdlib/erand48.c (erand48, _erand48_r): Ditto.
8577         * libc/stdlib/jrand48.c (jrand48, _jrand48_r): Ditto.
8578         * libc/stdlib/lcong48.c (lcong48, _lcong48_r): Ditto.
8579         * libc/stdlib/lrand48.c (lrand48, _lrand48_r): Ditto.
8580         * libc/stdlib/mrand48.c (mrand48, _mrand48_r): Ditto.
8581         * libc/stdlib/nrand48.c (nrand48, _nrand48_r): Ditto.
8582         * libc/stdlib/seed48.c (seed48, _seed48_r): Ditto.
8583         * libc/stdlib/srand48.c (srand48, _srand48_r): Ditto.
8584         * libc/stdlib/rand48.c (__dorand48): Ditto.
8585         * libc/stdlib/rand48.h: Ditto, and modify declarations of global
8586         parameters into macros referring them in the reentrant structure.
8587
8588 2001-02-12  Jeff Johnston  <jjohnstn@redhat.com>
8589
8590         * libc/include/sys/stat.h: Add mknod for Cygwin now that
8591         Cygwin definition has correct prototype.
8592
8593 2001-02-08  Jeff Johnston  <jjohnstn@redhat.com>
8594
8595         * libc/include/sys/stat.h: Must revert change for mknod
8596         for CYGWIN until winsup/cygwin/syscalls.cc changes mknod
8597         prototype.
8598
8599 2001-02-08  Jeff Johnston  <jjohnstn@redhat.com>
8600
8601         * libc/include/stdio.h: Revert putw prototype.
8602
8603 2001-02-08  Edward M. Lee  <tailbert@yahoo.com>
8604
8605         * libc/include/grp.h: add prototype for initgroups.
8606         * libc/include/stdio.h: fix prototype for putw.
8607         * libc/include/sys/signal.h: add prototype for killpg.
8608         * libc/include/sys/stat.h: enable mknod/lstat for CYGWIN.
8609         * libc/include/sys/unistd.h: add prototypes for getpgid, setpgrp,
8610         vhangup and remove duplicate sysconf prototype.
8611
8612 2001-02-07  Jeff Johnston  <jjohnstn@redhat.com>
8613
8614         * libc/sys/rtems/sys/types.h: Removed.
8615
8616 2001-02-05  Charles Wilson  <cwilson@ece.gatech.edu>
8617
8618         * libc/include/locale.h: add LC_MESSAGES definition
8619
8620 2001-02-01  Alexandre Oliva  <aoliva@redhat.com>
8621
8622         * libc/sys/sh/sys/syscall.h (SYS_get_argc, SYS_get_argN_len,
8623         SYS_get_argN):
8624         * libc/sys/sh/syscalls.c (__setup_argv_for_main,
8625         __setup_argv_and_call_main): New.
8626
8627 2001-01-31  Jeff Johnston  <jjohnstn@redhat.com>
8628
8629         * libc/include/stdio.h (FILENAME_MAX): Changed to use __FILENAME_MAX__
8630         if defined.
8631         (FOPEN_MAX): Changed to use __FOPEN_MAX__ if defined.
8632         (L_tmpnam): Changed to use __L_tmpnam__ if defined.
8633         * libc/include/sys/config.h: Changed to set __FILENAME_MAX__
8634         appropriately for Cygwin and RTEMS so not to exceed PATH_MAX.
8635
8636 Mon Jan 29 23:03:06 2001  Christopher Faylor <cgf@cygnus.com>
8637
8638         * libc/stdlib/mallocr.c: Undefine windows preprocessor variables when
8639         compiling under Cygwin.
8640
8641 2001-01-29  Jeff Johnston  <jjohnstn@redhat.com>
8642
8643         * libc/include/math.h (signgam): Change to errno-like solution
8644         using a function to return the address of the real signgam.
8645         * libc/reent/signgam.c: New file containing __signgam().
8646         * libc/reent/Makefile.am: Added signgam.c to list of files.
8647         * libc/reent/Makefile.in: Regenerated.
8648
8649 2001-01-25  Alexandre Oliva  <aoliva@redhat.com>
8650
8651         * libc/sys/sh/syscalls.c (_times): New.
8652
8653         * configure.host (sh*-*-*): Add -DHAVE_GETTIMEOFDAY to newlib_cflags.
8654         * libc/sys/sh/syscalls.c (_gettimeofday): New.
8655
8656 2001-01-23  Jeff Johnston  <jjohnstn@redhat.com>
8657
8658         * libc/include/math.h (signgam): Regress previous fix as
8659         it does not handle programs with extern int signgam in them.
8660
8661 2001-01-23  Jeff Johnston  <jjohnstn@redhat.com>
8662
8663         * libc/include/math.h (signgam): Changed to a macro refering to
8664         its location in the reentrant structure.
8665
8666 2001-01-23  Jeff Johnston  <jjohnstn@redhat.com>
8667
8668         * libc/stdio/vfprintf.c (_VFPRINTF_R): Modification to fix
8669         that suppressed . for %.0f, 0.1.  Check now looks if there
8670         are padding zeroes (expt) in addition to any digits (ndig) to
8671         print.
8672
8673 2001-01-18  Jeff Johnston  <jjohnstn@redhat.com>
8674
8675         * libc/sys/arc/Makefile.am: New file.
8676         * libc/sys/arc/Makefile.in: Ditto.
8677         * libc/sys/arc/aclocal.m4: Ditto.
8678         * libc/sys/arc/configure: Ditto.
8679         * libc/sys/arc/configure.in: Ditto.
8680         * libc/sys/arc/crt0.S: Ditto.
8681         * libc/sys/arc/isatty.c: Ditto.
8682         * libc/sys/arc/mem-layout.c: Ditto.
8683         * libc/sys/arc/sbrk.c: Ditto.
8684         * libc/sys/arc/syscalls.c: Ditto.
8685         * libc/sys/arc/sys/syscall.h: Ditto.
8686
8687 Wed Jan 17 23:20:56 2001  Christopher Faylor <cgf@cygnus.com>
8688
8689         * libc/include/sys/unistd.h: Use correct declaration for setdtablesize.
8690
8691 Fri Jan 12 00:34:31 2001  Christopher Faylor <cgf@cygnus.com>
8692
8693         * libc/include/sys/signal.h: Add some SA_* defines for Cygwin.
8694
8695 Thu Jan 11 20:42:06  2001  Earnie Boyd  <earnie_boyd@yahoo.com>
8696
8697         * libc/include/sys/features.h: __CYGWIN__ preferred over __CYGWIN32__
8698
8699 2001-01-09  Nick Clifton  <nickc@redhat.com>
8700
8701         * configure.host (v859): Remove unsupported compiler options.
8702
8703 Fri Jan  5 19:57:00 EST 2001  Aaron J. Grier  <aaron@frye.com>
8704
8705         * src/newlib/configure.host (*-*-rtems*): add printf long long
8706         support for RTEMS.
8707
8708 2000-12-19  Graham Stott <grahams@redhat.com>
8709
8710         * libc/machine/xscale/memcmp.c (memcmp): Add clobber for "lr".
8711
8712 Wed Dec 14  Jeff Johnston  <jjohnstn@redhat.com>
8713
8714         * configure.host: Turn on long double I/O for Cygwin.
8715
8716 Wed Dec 14  Jeff Johnston  <jjohnstn@redhat.com>
8717
8718         * MAINTAINERS: Removed Ranjith.
8719         * NEWS: Updated for 1.9.0.
8720         * README: Updated.
8721         * acinclude.m4: Updated to release 1.9.0.
8722         * aclocal.m4 configure
8723           doc/aclocal.m4 doc/configure libc/aclocal.m4 libc/configure
8724           libc/machine/aclocal.m4 libc/machine/configure
8725           libc/machine/a29k/aclocal.m4 libc/machine/a29k/configure
8726           libc/machine/arm/aclocal.m4 libc/machine/arm/configure
8727           libc/machine/d10v/aclocal.m4 libc/machine/d10v/configure
8728           libc/machine/d30v/aclocal.m4 libc/machine/d30v/configure
8729           libc/machine/fr30/aclocal.m4 libc/machine/fr30/configure
8730           libc/machine/h8300/aclocal.m4 libc/machine/h8300/configure
8731           libc/machine/h8500/aclocal.m4 libc/machine/h8500/configure
8732           libc/machine/hppa/aclocal.m4 libc/machine/hppa/configure
8733           libc/machine/i386/aclocal.m4 libc/machine/i386/configure
8734           libc/machine/i960/aclocal.m4 libc/machine/i960/configure
8735           libc/machine/m32r/aclocal.m4 libc/machine/m32r/configure
8736           libc/machine/m68k/aclocal.m4 libc/machine/m68k/configure
8737           libc/machine/m88k/aclocal.m4 libc/machine/m88k/configure
8738           libc/machine/mips/aclocal.m4 libc/machine/mips/configure
8739           libc/machine/mn10200/aclocal.m4 libc/machine/mn10200/configure
8740           libc/machine/mn10300/aclocal.m4 libc/machine/mn10300/configure
8741           libc/machine/necv70/aclocal.m4 libc/machine/necv70/configure
8742           libc/machine/powerpc/aclocal.m4 libc/machine/powerpc/configure
8743           libc/machine/sh/aclocal.m4 libc/machine/sh/configure
8744           libc/machine/sparc/aclocal.m4 libc/machine/sparc/configure
8745           libc/machine/tic80/aclocal.m4 libc/machine/tic80/configure
8746           libc/machine/v850/aclocal.m4 libc/machine/v850/configure
8747           libc/machine/w65/aclocal.m4 libc/machine/w65/configure
8748           libc/machine/xscale/aclocal.m4 libc/machine/xscale/configure
8749           libc/machine/z8k/aclocal.m4 libc/machine/z8k/configure
8750           libc/sys/aclocal.m4 libc/sys/configure
8751           libc/sys/a29khif/aclocal.m4 libc/sys/a29khif/configure
8752           libc/sys/arm/aclocal.m4 libc/sys/arm/configure
8753           libc/sys/cygwin/aclocal.m4 libc/sys/cygwin/configure
8754           libc/sys/d10v/aclocal.m4 libc/sys/d10v/configure
8755           libc/sys/decstation/aclocal.m4 libc/sys/decstation/configure
8756           libc/sys/go32/aclocal.m4 libc/sys/go32/configure
8757           libc/sys/h8300hms/aclocal.m4 libc/sys/h8300hms/configure
8758           libc/sys/h8500hms/aclocal.m4 libc/sys/h8500hms/configure
8759           libc/sys/linux/aclocal.m4 libc/sys/linux/configure
8760           libc/sys/m88kbug/aclocal.m4 libc/sys/m88kbug/configure
8761           libc/sys/netware/aclocal.m4 libc/sys/netware/configure
8762           libc/sys/rtems/aclocal.m4 libc/sys/rtems/configure
8763           libc/sys/sh/aclocal.m4 libc/sys/sh/configure
8764           libc/sys/sparc64/aclocal.m4 libc/sys/sparc64/configure
8765           libc/sys/sun4/aclocal.m4 libc/sys/sun4/configure
8766           libc/sys/sysmec/aclocal.m4 libc/sys/sysmec/configure
8767           libc/sys/sysnec810/aclocal.m4 libc/sys/sysnec810/configure
8768           libc/sys/sysnecv850/aclocal.m4 libc/sys/sysnecv850/configure
8769           libc/sys/sysvi386/aclocal.m4 libc/sys/sysvi386/configure
8770           libc/sys/sysvnecv70/aclocal.m4 libc/sys/sysvnecv70/configure
8771           libc/sys/tic80/aclocal.m4 libc/sys/tic80/configure
8772           libc/sys/w65/aclocal.m4 libc/sys/w65/configure
8773           libc/sys/z8ksim/aclocal.m4 libc/sys/z8ksim/configure
8774           libm/aclocal.m4 libm/configure: Regenerated.
8775
8776 Wed Dec 13 11:52:00 2000  Corinna Vinschen <vinschen@cygnus.com>
8777
8778         * libc/include/sys/unistd.h: Add declarations for `chroot' and `getwd'
8779         when __CYGWIN__ is defined.
8780
8781 2000-12-13  Jeff Johnston  <jjohnstn@redhat.com>
8782
8783         * libc/stdlib/ldtoa.c (_ldcheck): New routine
8784         that categorizes a long double as NaN, Infinity, or other.
8785         * libc/stdio/vfprintf.c [WANT_IO_LONG_DBL](_VFPRINTF_R): Removed 
8786         isinfl and isnanl static routines which were i386-specific.  Changed 
8787         calls to the two removed routines to a single _ldcheck call.
8788         * libc/stdio/vfieeefp.h (ldieee): Fixed missing semi-colons.
8789
8790 2000-12-13  Jeff Johnston  <jjohnstn@redhat.com>
8791
8792         * Makefile.am: Fixed install-data-local target to use
8793         $(mkinstalldirs) for the installed header files to ensure
8794         the directories exist before copying.
8795         * Makefile.in: Regenerated.
8796
8797 2000-12-12  Jeff Johnston  <jjohnstn@redhat.com>
8798
8799         * libc/include/sys/unistd.h: Restored Cygwin _SC
8800         constants and moved new constants appropriately
8801         so Cygwin will build.
8802
8803 2000-12-11  Joel Sherrill <joel@OARcorp.com>
8804
8805         * Merge RTEMS specific .h files into main libc/include.
8806         * libc/sys/rtems/include/signal.h: Removed.
8807         * libc/sys/rtems/include/time.h: Removed.
8808         * libc/sys/rtems/sys/features.h: Removed.
8809         * libc/sys/rtems/sys/sched.h: Removed.
8810         * libc/sys/rtems/sys/siginfo.h: Removed.
8811         * libc/sys/rtems/sys/signal.h: Removed.
8812         * libc/sys/rtems/sys/time.h: Removed.
8813         * libc/sys/rtems/sys/times.h: Removed.
8814         definitions for time_t and clock_t since these are
8815         no longer in time.h.
8816         * libc/include/pthread.h: New file.
8817         * libc/include/sys/sched.h: New file.
8818         * libc/include/sys/features.h: New file.
8819         * libc/include/time.h: Removed duplicate definition of clock_t
8820         and time_t, get them from <sys/types.h> instead.  Add prototypes
8821         for POSIX clock and timer functionality.
8822         * libc/sys/linux/sys/types.h: Changed to include
8823         * libc/include/machine/types.h: Add _CLOCKID_T_ and _TIMER_T_.
8824         * libc/include/sys/signal.h: Add more complete set of POSIX
8825         signal functionality including real-time and threaded signals.
8826         * libc/include/sys/types.h: Add clock_t, time_t, struct
8827         timespec, and struct itimerspec.  Centralizing these makes 
8828         things cleaner.  RTEMS uses 64-bit dev_t.
8829         Added numerous primitive definitions
8830         for pthreads including macros, pthread_attr_t,
8831         pthread_mutexattr_t, pthread_condattr_t, pthread_key_t, 
8832         pthread_once_t, and pthread_t.
8833         * libc/include/sys/unistd.h: Added getlogin_r() prototype.
8834         If RTEMS follow POSIX on read(), write() and sbrk() prototype.
8835         Feature flags removed and moved to new file <sys/features.h>.
8836         Full set of POSIX sysconf() constants
8837
8838 2000-12-08  Werner Almesberger  <Werner.Almesberger@epfl.ch>
8839
8840         * configure.host: Added x86 linux target.
8841         * libc/unix/getpass.c (_PATH_PASSWD, _PASSWORD_LEN): Default
8842         definitions provided if not already defined.
8843         * libc/sys/linux/crt0.c: New file.
8844         * libc/sys/linux/Makefile.am: Ditto.
8845         * libc/sys/linux/Makefile.in: Ditto.
8846         * libc/sys/linux/aclocal.m4: Ditto.
8847         * libc/sys/linux/brk.c: Ditto.
8848         * libc/sys/linux/configure: Ditto.
8849         * libc/sys/linux/configure.in: Ditto.
8850         * libc/sys/linux/getoptlong.c: Ditto.
8851         * libc/sys/linux/ids.c: Ditto.
8852         * libc/sys/linux/inode.c: Ditto.
8853         * libc/sys/linux/io.c: Ditto.
8854         * libc/sys/linux/linux.c: Ditto.
8855         * libc/sys/linux/process.c: Ditto.
8856         * libc/sys/linux/realpath.c: Ditto.
8857         * libc/sys/linux/select.c: Ditto.
8858         * libc/sys/linux/signal.c: Ditto.
8859         * libc/sys/linux/systat.c: Ditto.
8860         * libc/sys/linux/termios.c: Ditto.
8861         * libc/sys/linux/time.c: Ditto.
8862         * libc/sys/linux/wait.c: Ditto.
8863         * libc/sys/linux/include/alloca.h: Ditto.
8864         * libc/sys/linux/include/getopt.h: Ditto.
8865         * libc/sys/linux/include/stdint.h: Ditto.
8866         * libc/sys/linux/include/unistd.h: Ditto.
8867         * libc/sys/linux/sys/cdefs.h: Ditto.
8868         * libc/sys/linux/sys/dirent.h: Ditto.
8869         * libc/sys/linux/sys/errno.h: Ditto.
8870         * libc/sys/linux/sys/fcntl.h: Ditto.
8871         * libc/sys/linux/sys/file.h: Ditto.
8872         * libc/sys/linux/sys/ioctl.h: Ditto.
8873         * libc/sys/linux/sys/resource.h: Ditto.
8874         * libc/sys/linux/sys/signal.h: Ditto.
8875         * libc/sys/linux/sys/stat.h: Ditto.
8876         * libc/sys/linux/sys/syscall.h: Ditto.
8877         * libc/sys/linux/sys/termios.h: Ditto.
8878         * libc/sys/linux/sys/time.h: Ditto.
8879         * libc/sys/linux/sys/types.h: Ditto.
8880         * libc/sys/linux/sys/utmp.h: Ditto.
8881         * libc/sys/linux/sys/utsname.h: Ditto.
8882         * libc/sys/linux/sys/wait.h: Ditto.
8883
8884 2000-12-08  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
8885
8886         * Makefile.am: $(INSTALL), $(INSTALL_DATA), and $(INSTALL_PROGRAM)  
8887         can be a relative path to $(top_srcdir)/install.sh so ensure the
8888         autoconf detected settings are properly passed recursively.
8889         Similarly, add AM_MAKEFLAGS to FLAGS_TO_PASS so they also get passed
8890         properly to subdirectories.
8891         * Makefile.in: Regenerated.
8892
8893 2000-12-07  Jay Kulpinski <jskulpin@eng01.gdds.com>
8894
8895         * libc/stdio/vfprintf.c: Minor modification to avoid requiring
8896         a floating point register unless really printing a floating
8897         point number.
8898
8899 2000-12-07  Jeff Johnston  <jjohnstn@redhat.com>
8900
8901         * libc/stdlib/ldtoa.c: Removed include of alloca.h.
8902         Also removed \r's.
8903         (asctoeg): Replaced alloca call with stack array and malloc
8904         when storage exceeds reasonable limit.
8905         (e53toe): Fixed einfin calls missing ldp parameter.
8906         (eiisinf): Hide behind check for LDBL_MANT_DIG == 64.
8907
8908 2000-12-06  Jeff Johnston  <jjohnstn@redhat.com>
8909
8910
8911         * libc/stdio/vfscanf.c: Fix typo for _NO_LONGDBL macro.
8912
8913 2000-12-06  Jeff Johnston  <jjohnstn@redhat.com>
8914
8915         * libc/stdlib/Makefile.am: Added ldtoa.c to list of sources.
8916         * libc/stdlib/Makefile.in: Regenerated.
8917         * libc/stdio/floatio.h: Added suitable MAXEXP for long double.
8918         * libc/stdio/vfieeefp.h: Added long double bit structures.
8919         * libc/stdio/vfprintf.c[WANT_IO_LONG_DBL]: Added long double support.
8920         [WANT_IO_LONG_DBL](isinfl, isnanl): New static long double routines.
8921         (exponent): Changed expbuf to reasonable maximum instead of MAXEXP.
8922         * libc/stdio/vfscanf.c[WANT_IO_LONG_DBL]: Added long double support.
8923         * libc/stdlib/ldtoa.c: New file containing _ldtoa_r and
8924         _strtold routines used for conversions between character
8925         and long double.
8926
8927 Wed Dec  6 12:01:00 2000  Corinna Vinschen <vinschen@cygnus.com>
8928
8929         * libc/include/stdlib.h: Add declarations for `mkstemp' and `mktemp'.
8930
8931 2000-12-04  Joel Sherrill <joel@OARcorp.com>
8932
8933         * libc/include/machine/time.h: RTEMS systems can configure clock
8934         tick rate so use sysconf() to ask.
8935
8936 2000-12-04  Joel Sherrill <joel@OARcorp.com>
8937
8938         * libc/include/sys/times.h: Add reference to POSIX standard.
8939
8940 2000-12-04  Joel Sherrill <joel@OARcorp.com>
8941
8942         * libc/include/sys/time.h: Added BSD timer manipulation macros
8943         used by RTEMS code.
8944
8945 2000-12-04  Joel Sherrill <joel@OARcorp.com>
8946
8947         * libc/sys/rtems/crt0.c: Add stubs for functions implicitly
8948         referenced by code generated by gcc 2.8.1.
8949         (a29k): Add stubs for V_SPILL, V_FILL, V_BSD_OS, V_EPI_OS to 
8950         satisfy gcc.
8951
8952 2000-12-04  Joel Sherrill <joel@OARcorp.com>
8953
8954         * libc/stdlib/system.c: Avoid compiling do_system() for RTEMS.
8955
8956 2000-12-04  Joel Sherrill <joel@OARcorp.com>
8957
8958         * libc/include/ieeefp.h: Added entries for OpenCores CPUs.
8959
8960 2000-12-04  Joel Sherrill <joel@OARcorp.com>
8961
8962         * configure.host (or16, or32): New entries for OpenCores
8963         OpenRisc CPUs.
8964         (*-*-rtems*): Add -DNO_EXEC.
8965
8966 2000-12-04  Keith Outwater <vac4050@cae597.rsc.raytheon.com>
8967
8968         * libc/include/sys/errno.h: Added comments on many error numbers.
8969         * libc/string/strerror.c: Added some more strings.
8970
8971 2000-11-30  Jeff Johnston <jjohnstn@redhat.com>
8972
8973         * libc/sys/sh/syscalls.c (_link): New stub.
8974
8975 2000-11-29  Nick Clifton  <nickc@redhat.com>
8976
8977         * configure.host: Add xscale target.
8978         * libc/machine/xscale: New directory.
8979         * libc/machine/xscale/Makefile.am: New file.
8980         * libc/machine/xscale/Makefile.in: New file.
8981         * libc/machine/xscale/aclocal.m4: New file.
8982         * libc/machine/xscale/configure: New file.
8983         * libc/machine/xscale/configure.in: New file.
8984         * libc/machine/xscale/memchr.S: New file.
8985         * libc/machine/xscale/memcmp.S: New file.
8986         * libc/machine/xscale/memcpy.S: New file.
8987         * libc/machine/xscale/memmove.S: New file.
8988         * libc/machine/xscale/memset.S: New file.
8989         * libc/machine/xscale/strchr.S: New file.
8990         * libc/machine/xscale/strcmp.S: New file.
8991         * libc/machine/xscale/strcpy.S: New file.
8992         * libc/machine/xscale/strlen.S: New file.
8993
8994 Sat Nov 25 11:24:00 2000  Corinna Vinschen <vinschen@cygnus.com>
8995
8996         * libc/include/sys/types.h: Change i to `__i' in FD_ZERO macro to
8997         avoid compiler warnings.
8998
8999 2000-11-22  Michael Meissner  <meissner@redhat.com>
9000
9001         * libc/posix/execl.c (execl): Don't reference environ directly,
9002         reference it only via a static pointer to avoid problems with some
9003         shared library systems and with different uses of small data where
9004         the user specifies his own version of environ.
9005         * libc/posix/execv.c (execv): Ditto.
9006         * libc/stdlib/getenv_r.c (_findenv_r): Ditto.
9007         * libc/stdlib/setenv_r.c (_setenv_r,_unsetenv_r): Ditto.
9008         * libc/stdlib/system.c (system, !cygwin32 case): Ditto.
9009
9010         * libc/stdlib/getenv.c (environ): Delete unused reference to
9011         environ.
9012
9013         * libc/stdlib/getenv_r.c: Make initial comment friendlier to emacs
9014         colorization.
9015         * libc/stdlib/system.c: Ditto.
9016
9017 Tue Nov 21 20:32:21 2000  Christopher Faylor <cgf@cygnus.com>
9018
9019         * libc/sys/cygwin/sys/dirent.h: Change definition to avoid necessity of
9020         including windows headers.
9021
9022 2000-11-20  Jeff Johnston  <jjohnstn@redhat.com>
9023
9024         * libc/include/sys/unistd.h: Removed definition of MAXNAMLEN.
9025         * libc/include/dirent.h: Added definition of MAXNAMLEN if
9026         not defined by sys/dirent.h.
9027         * libc/posix/execvp.c: Added include of dirent.h to get
9028         MAXNAMLEN value which used to be in unistd.h.
9029
9030 Mon Nov  6 12:56:00 2000  Corinna Vinschen <vinschen@cygnus.com>
9031
9032         * libc/include/sys/types.h: Change type of i to `size_t' in
9033         FD_ZERO macro to avoid compiler warnings.
9034
9035 Sun Oct 29 20:06:41 2000  Christopher Faylor <cgf@cygnus.com>
9036
9037         * libc/include/stdlib.h: Avoid declaring cfree under Cygwin.
9038         * libc/include/malloc.h: Ditto.  Also remove obsolete declaration.
9039
9040 Tue Oct 24 20:16:00 2000  Corinna Vinschen <vinschen@cygnus.com>
9041
9042         * libc/include/sys/unistd.h: Add defines for sysconf values
9043         _SC_NPROCESSORS_CONF, _SC_NPROCESSORS_ONLN, _SC_PHYS_PAGES and
9044         _SC_AVPHYS_PAGES.
9045
9046 Mon Oct  9 20:26:33 2000  Christopher Faylor <cgf@cygnus.com>
9047
9048         * libc/include/sys/unistd.h: Add getdtablesize and setdtablesize
9049         declarations for __CYGWIN__.
9050
9051 2000-09-19  Geoffrey Keating  <geoffk@cygnus.com>
9052
9053         * libc/signal/signal.c (__sigtramp_r): ISO C requires
9054         case labels to be integral constant expressions, so
9055         use an if/else tree instead.
9056         (_raise_r): Likewise.
9057
9058 2000-09-13  Jeff Johnston  <jjohnstn@redhat.com>
9059
9060         * libc/machine/v850/setjmp.S: Fixed tab problems caused by
9061         clipping patch from e-mail reader.
9062
9063 2000-09-13  Will Cohen  <wcohen@redhat.com>
9064
9065         * libc/machine/v850/setjmp.S (_setjmp): Save r1 rather than r0.
9066         Added return value 0.
9067         (_longjmp): Allow longjmp to return value of second argument
9068         passed to it.
9069
9070 2000-09-06  Jeff Johnston <jjohnstn@redhat.com>
9071
9072         * libc/include/sys/types.h (FD_ZERO): Remove call to bzero and
9073         inline code to prevent having to include another header file.
9074
9075 Wed Sep  6 15:06:40 2000  Christopher Faylor <cgf@cygnus.com>
9076
9077         * Makefile.am: Fix space vs. tab problem in install-data-local.
9078         * Makefile.in: Regenerate.
9079
9080 Wed Sep  6 13:49:51 2000  Christopher Faylor <cgf@cygnus.com>
9081
9082         * libc/include/_ansi.h (_EXFUN): Define specially for __CYGWIN__.
9083         (_EXPARM): New macro for defining a function parameter.
9084         * libc/include/stdlib.h: Use _EXPARM.
9085         * libc/stdlib/mallocr.c: Don't build cfree for Cygwin.
9086
9087 2000-09-05  Manfred Hollstein  <manfredh@redhat.com>
9088
9089         * Makefile.am (install-data-local): Use optional $(DESTDIR) where
9090         required, as documented in the gnu coding standards.
9091         * Makefile.in: Regenerate.
9092
9093 2000-09-05  Jeff Johnston <jjohnstn@redhat.com>
9094
9095         * libc/include/fcntl.h (_FNDELAY): Changed to be _FNONBLOCK to
9096         make O_NDELAY and O_NONBLOCK have the same value.
9097
9098 2000-08-30  Kazu Hirata  <kazu@hxi.com>
9099
9100         * libc/sys/h8300hms/crt0.S: Optimize for both speed and code size.
9101
9102 2000-08-30  Werner Almesberger  <Werner.Almesberger@epfl.ch>
9103
9104         * libc/posix/execve.c: included unistd.h for "_execve" prototype.
9105         * libc/misc/unctrl.c libc/sys/sysvi386/crt0.c (sccsid): changed
9106         "#ifndef lint" to "#if defined(LIBC_SCCS) && !defined(lint)" like
9107         everywhere else.
9108
9109 2000-08-30  Geoffrey Keating  <geoffk@cygnus.com>
9110
9111         * libc/string/swab.c: Specify that it's defined in <unistd.h>.
9112         * libc/include/string.h: Don't include <sys/types.h>,
9113         as it causes really bad namespace pollution.  Don't declare
9114         swab(), it is properly declared in unistd.h.
9115
9116 2000-08-29  Werner Almesberger  <Werner.Almesberger@epfl.ch>
9117
9118         * libc/unix/getpwent.c (getpwnam, getpwuid, getpwent): removed
9119         (broken) support for non-existent /etc/passwd field "comment".
9120
9121 2000-08-27  Werner Almesberger  <Werner.Almesberger@epfl.ch>
9122
9123         * libc/posix/scandir.c (DIRSIZ, scandir): use struct dirent.d_namlen
9124         only if _DIRENT_HAVE_D_NAMLEN is defined.
9125         (alphasort): aligned prototype with
9126         libc/sys/cygwin/sys/dirent.h and simplified function body.
9127         * libc/posix/telldir.c (telldir): changed "telldir" prototype to
9128         long telldir (DIR *) as mentioned in annex B of POSIX.1
9129
9130 2000-08-27  Werner Almesberger  <Werner.Almesberger@epfl.ch>
9131
9132         * libc/machine/i386/i386mach.h: added SOTYPE_FUNCTION to set type
9133         of global entry points if _I386MACH_NEED_SOTYPE_FUNCTION is defined;
9134         Added __CLI and __STI macros (controlled via
9135         _I386MACH_ALLOW_HW_INTERRUPTS macro).
9136         * libc/machine/i386/f_atan2.S libc/machine/i386/f_atan2f.S
9137         libc/machine/i386/f_frexp.S libc/machine/i386/f_frexpf.S
9138         libc/machine/i386/f_ldexp.S libc/machine/i386/f_ldexpf.S
9139         libc/machine/i386/f_log.S libc/machine/i386/f_log10.S
9140         libc/machine/i386/f_log10f.S libc/machine/i386/f_logf.S
9141         libc/machine/i386/f_tan.S libc/machine/i386/f_tanf.S
9142         libc/machine/i386/memchr.S libc/machine/i386/memcmp.S
9143         libc/machine/i386/memcpy.S libc/machine/i386/memmove.S
9144         libc/machine/i386/memset.S libc/machine/i386/setjmp.S
9145         libc/machine/i386/strchr.S libc/machine/i386/strlen.S:
9146         (that's libc/machine/i386/*.S) added SOTYPE_FUNCTION(symbol)
9147         for all global entry points.
9148         * libc/machine/i386/setjmp.S: removed code replicated in
9149         libc/machine/i386/i386mach.h and included i386mach.h instead;
9150         Use __CLI and __STI instead of cli and sti.
9151
9152 2000-08-25  DJ Delorie  <dj@redhat.com>
9153
9154         * libc/include/sys/unistd.h (environ): this one isn't from the
9155         DLL, no __IMPORT
9156
9157 Fri Aug 25 13:37:11 2000  Christopher Faylor <cgf@cygnus.com>
9158
9159         * libc/stdlib/system.c (do_system): Eliminate explicit declaration of
9160         environ when compiling under cygwin since it is already declared in
9161         unistd.h.
9162
9163 2000-08-23  Werner Almesberger  <Werner.Almesberger@epfl.ch>
9164
9165         * libc/stdlib/mprec.c (ulp, b2d, d2b): changed a few expressions
9166         like  x << y-z  to the equivalent  x << (y-z).
9167         (d2b): changed if statements with assignment to perform the
9168         assignment prior to the if check.
9169         * libc/reent/reent.c: included stdlib.h for "_free_r" prototype.
9170         * libc/unix/getpass.c (getpass): moved "echo" assignment out of if.
9171         * libc/unix/ttyname.c: included string.h for "strcpy" prototype.
9172         * libc/unix/getcwd.c (ISDOT): added parentheses to clarify && and ||
9173         precedence.
9174         * libc/include/sys/unistd.h: added "vfork" prototype (for popen.c).
9175         Added "_execve" prototype (for execl.c, execle.c, execv.c, and 
9176         execve.c).
9177         * libc/posix/popen.c (popen): added parentheses to clarify && and ||
9178         precedence.
9179         * libm/math/e_cosh.c (__ieee754_cosh): changed parentheses to
9180         clarify && and || precendence (and to remove pascalism).
9181         * libm/math/e_sinh.c (__ieee754_sinh): Ditto.
9182         * libm/math/s_infconst.c: added another pair of braces to all
9183         initializers for __infinity (need three: for __infinity[1] array,
9184         for union __dmath, and for i[2]).
9185
9186 2000-08-23  Werner Almesberger  <Werner.Almesberger@epfl.ch>
9187
9188         * libc/stdlib/abort.c: changed description: uses "raise" instead of
9189         "getpid" and "kill"; added: uses "write" and "_exit".
9190         Also included unistd.h for "_exit" prototype.
9191         * libc/stdlib/system.c: included unistd.h for "execve" prototype,
9192         reent.h for "_fork_r" and "_wait_r" prototypes.
9193         (do_system): changed  extern char *environ[] to POSIX-friendly 
9194         extern char **environ.
9195         * libc/stdlib/wctomb_r.c: included string.h for "strlen" and "strcmp"
9196         prototypes.
9197         * libc/stdlib/remove.c: included reent.h for "_unlink_r" prototype.
9198         * libc/reent/execr.c: included sys/wait.h for "wait" prototype.
9199         * libc/reent/fstatr.c: included sys/stat.h for "fstat" prototype.
9200         * libc/reent/openr.c: included fcntl.h for "open" prototype.
9201         * libc/reent/signalr.c: included signal.h for "kill" prototype,
9202         unistd.h for "getpid" prototype.
9203         * libc/reent/statr.c: included sys/stat.h for "stat" prototype.
9204         * libc/reent/timer.c: included sys/time.h for "gettimeofday" prototype.
9205         * libc/unix/getut.c (utmpname): removed local, incorrect "strdup"
9206         prototype.  Also included stdlib.h for "abort", string.h for
9207         "strdup" and "strncmp" prototypes.
9208         * libc/unix/getlogin.c: included string.h for "strncmp", "memset", and
9209         "strncpy", unistd.h for "read" and "close" prototypes.
9210         * libc/posix/execvp.c: included string.h for "strchr", "strlen", and
9211         "strcat" prototypes.
9212
9213 2000-08-23  Werner Almesberger  <Wernen Almesberger@epfl.ch>
9214
9215         * libc/stdio/stdio.c (__swrite): declare "oldmode" only if it's
9216         used later (ifdef __SCLE)
9217         * libc/stdio/vfscanf.c (__svfscanf): declare "state" only if it's
9218         used later (ifdef MB_CAPABLE)
9219         * libc/string/memset.c (memset): removed unused variables "count"
9220         and "unaligned_addr"
9221         * libc/locale/locale.c (_setlocale_r): declare "lc_ctype" and
9222         "last_lc_ctype" only of they're used later (ifdef MB_CAPABLE)
9223         * libc/unix/getpwent.c (getpwnam): removed unused variables "uid"
9224         and "gid"
9225
9226 2000-08-23  Werner Almesberger  <Werner.Almesberger@epfl.ch>
9227
9228         * libc/stdlib/envlock.c: changed documented "__env_lock" and
9229         "__env_unlock" prototype from "void *" or "char *" to
9230         "struct _reent *" to match real function.  Also added include
9231         of envlock.h.
9232         * libc/stdlib/mlock.c: changed documented "__malloc_lock" and
9233         "__malloc_unlock" prototype from "void *" or "char *" to
9234         "struct _reent *" to match real function.
9235         * libc/stdlib/envlock.h: added "__env_lock" and "__env_unlock"
9236         prototypes (for getenv_r.c and setenv_r.c).
9237
9238 2000-08-22  Werner Almesberger  <Werner.Almesberger@epfl.ch>
9239
9240         * libc/unix/getut.c (utmpname): added _CONST to reflect common use
9241         and prototype in cygwin's utmp.h
9242
9243 2000-08-16  Eric Fifer  <efifer@sanwaint.com>
9244
9245         * libc/stdio/vfprintf.c (_vfprintf_r): suppress . with "%.0f", 0.1
9246
9247 2000-08-09  Nick Clifton  <nickc@cygnus.com>
9248
9249         * libc/sys/arm/setjmp.S: Recode to clean up function prologues and
9250         epilogue and to allow the functions to be used in a Thumb based
9251         toolchain.
9252
9253 2000-08-08  Jeff Johnston <jjohnstn@redhat.com>
9254
9255         * libc/stdio/snprintf.c (snprintf, _snprintf_r): Fixed code
9256         so size of 0 results in nothing being written to string.
9257         Also fixed code so that when size is non-zero, there is only
9258         a maximum of size - 1 characters written to the array and
9259         a nul terminator is appended at the end.
9260         * libc/stdio/vsnprintf.c (vsnprintf, _vsnprintf_r): Ditto.
9261
9262 2000-08-01  DJ Delorie  <dj@redhat.com>
9263
9264         * libc/include/sys/config.h: define __IMPORT appropriately
9265         * libc/include/ctype.h (_ctype_): use __IMPORT
9266         * libc/include/math.h (__infinity, signam, _LIB_VERSION): ditto
9267         * libc/include/math.h (__mb_cur_max): ditto
9268         * libc/include/time.h (_timezone, _daylight, _tzname): ditto
9269         * libc/include/unctrl.h (__unctrl, __unctrllen): ditto
9270         * libc/include/errno.h (_sys_errlist, _sys_nerr): ditto
9271         * libc/include/unistd.h (environ): ditto
9272
9273 2000-07-28  Michael Meissner  <meissner@redhat.com>
9274
9275         * libc/include/math.h (__infinity): Declare as an array without
9276         bounds to get around small data support.  Rewrite Cygwin support
9277         to be more general.
9278         * libm/math/s_infconst.c (__infinity): Ditto.
9279         * libm/mathfp/s_infconst.c (__infinity): Ditto.
9280
9281 Thu Jul 27 10:46:01 2000  Christopher Faylor <cgf@cygnus.com>
9282
9283         * libc/include/math.h: Use appropriate dll import linkage for
9284         __infinity under Cygwin.
9285
9286 2000-07-13  DJ Delorie  <dj@cygnus.com>
9287
9288         * libc/stdio/vfprintf.c: pad 0.0 correctly with %e
9289
9290 Wed Jun 28 14:08:00 2000  Keith Walker  <keith.walker@arm.com>
9291
9292         * libc/sys/arm/crt0.S (.LC30): Added missing length parameter
9293         to argument list for AngelSWI_Reason_GetCmdLine.
9294
9295 Tue Jun 27 15:49:00 2000  Marek Michalkiewicz  <marekm@linux.org.pl>
9296
9297         * configure.host: Add support for AVR target.
9298         * libc/include/machine/ieeefp.h: Likewise.
9299         * libc/include/sys/config.h: Likewise.
9300
9301 Thu Jun 22 18:35:00 2000  Ranjith Kumaran  <ranjith@cygnus.com>
9302
9303         * README: Newlib 1.8.2 must be built in a separate directory
9304         than the sources.
9305
9306 Tue Jun 20 14:30:00 2000  Jeff Johnston  <jjohnstn@cygnus.com>
9307
9308         * libc/include/sys/reent.h (_rand_next): Added __extension__
9309         qualifier as long long type is not strict ANSI.
9310         * libc/stdlib/rand.c (rand): Added __extension__ qualifier
9311         to long long constant.
9312
9313 Fri Jun 16 23:02:00 2000  Corinna Vinschen <corinna@vinschen.de>
9314
9315         * libc/include/sys/unistd.h: Add prototypes for `seteuid' and
9316         `setegid' provided by Cygwin.
9317
9318 Thu Jun 15  0:21:00 2000  Corinna Vinschen <corinna@vinschen.de>
9319
9320         * libc/stdio/fdopen.c: Take explicit given bin/textmode into
9321         account for Cygwin.
9322
9323 Fri Jun  9 14:28:00 2000  Jeff Johnston  <jjohnstn@cygnus.com>
9324
9325         * libc/include/sys/reent.h (_rand_next): Changed to
9326         unsigned long long and moved to end of _reent struct in _new union.
9327         (_REENT_INIT): Changed to move _rand_next initialization.
9328         * libc/stdlib/rand.c (rand): Changed to use unsigned long long
9329         linear congruential algorithm that is used by DJGPP.
9330
9331 Thu Jun  8 21:18:00 2000  Ranjith Kumaran  <ranjith@cygnus.com>
9332
9333         * libc/include/stdlib.h: Set RAND_MAX to __RAND_MAX.
9334         * libc/include/sys/config.h: Define __RAND_MAX.
9335
9336 Thu Jun  8 17:54:00 2000  Jeff Johnston  <jjohnstn@cygnus.com>
9337
9338         * libc/stdlib/rand_r.c: New algorithm that meets minimal
9339         standard.
9340
9341 Fri Jun  2 23:02:11 2000  Christopher Faylor <cgf@cygnus.com>
9342
9343         * libc/include/string.h: Work around problem with strsignal and gdb.
9344
9345 Tue May 30 13:13:01 2000  Christopher Faylor <cgf@cygnus.com>
9346
9347         * libc/include/ctype.h: __CYGWIN32__ -> __CYGWIN__
9348         * libc/include/malloc.h: Ditto.
9349         * libc/include/process.h: Ditto.
9350         * libc/include/stdio.h: Ditto.
9351         * libc/include/stdlib.h: Ditto.
9352         * libc/include/time.h: Ditto.
9353         * libc/include/machine/setjmp.h: Ditto.
9354         * libc/include/sys/errno.h: Ditto.
9355         * libc/include/sys/signal.h: Ditto.
9356         * libc/include/sys/stat.h: Ditto.
9357         * libc/include/sys/time.h: Ditto.
9358         * libc/include/sys/unistd.h: Ditto.
9359         * libc/include/string.h: Ditto.  strsignal should return a const char *.
9360
9361 2000-05-26  Marek Michalkiewicz  <marekm@linux.org.pl>
9362
9363         * libm/common/s_expm1.c (expm1): Add curly braces, avoid warnings.
9364         * libm/common/s_log1p.c (log1p): Likewise.
9365         * libm/common/s_scalbn.c (scalbn): Likewise.
9366         * libm/math/e_log.c: Likewise.
9367         * libm/math/e_asin.c: Likewise.
9368         * libm/math/ef_asin.c: Likewise.
9369         * libm/math/e_j0.c (pzero, qzero): Remove redundant test.
9370         * libm/math/e_j1.c (pone, qone): Likewise.
9371         * libm/math/ef_j0.c (pzerof, qzerof): Likewise.
9372         * libm/math/ef_j1.c (ponef, qonef): Likewise.
9373         * libm/mathfp/e_j0.c (pzero, qzero): Likewise.
9374         * libm/mathfp/e_j1.c (pone, qone): Likewise.
9375         * libm/mathfp/ef_j0.c (pzerof, qzerof): Likewise.
9376         * libm/mathfp/ef_j1.c (ponef, qonef): Likewise.
9377
9378 2000-05-19  DJ Delorie  <dj@cygnus.com>
9379
9380         * libc/stdio/stdio.c (__stextmode): new, see if file is text mode
9381         (__sread): always read in binary mode
9382         (__swrite): always write in binary mode
9383         * libc/include/stdio.h: no getc/putc macros for cygwin; causes
9384         compatibility issues with different dll versions
9385         * libc/stdio/fopen.c: use __stextmode
9386         * libc/stdio/fdopen.c: ditto
9387         * libc/stdio/freopen.c: ditto
9388         * libc/stdio/findfp.c: set up __SCLE for std{in,out,err}
9389         * libc/stdio/local.h: declare __stextmode
9390         
9391 2000-05-18  DJ Delorie  <dj@cygnus.com>
9392
9393         * libc/stdio/fgets.c (fgets): perform CRLF conversions if __SCLE
9394         
9395 Mon May 15 18:54:00 2000  Jeff Johnston  <jjohnstn@cygnus.com>
9396
9397         * libc/include/ctype.h: Changed tolower and toupper macros
9398         to use __extension__ to prevent pedantic warnings.
9399
9400 Mon May 15 14:26:00 2000  Joel Sherrill  <joel@oarcorp.com>
9401
9402         * libc/sys/rtems/sys/time.h: Add macros for manipulating timeval
9403         structures.
9404
9405 Wed May 10 19:24:53 2000  Jim Wilson  <wilson@cygnus.com>
9406
9407         * libc/include/machine/ieeefp.h: Add ia64 support.
9408         * configure.host: Likewise.
9409
9410 Wed May 10 13:52:24 2000  Egor Duda <deo@logos-m.ru>
9411
9412         * libc/time/asctime_r.c (asctime_r): Change output format. Day of
9413         month is now padded with space, not zero.  This now conforms to
9414         ANSI standard.
9415
9416 Wed May 03 17:57:00 2000  Corinna Vinschen <corinna@vinschen.de>
9417
9418         * libc/include/sys/errno.h: Add define for ENOSHARE ("No such
9419         host or network path") used by cygwin. Add some comments.
9420
9421 Tue May 02 23:45:48 2000  DJ Delorie  <dj@cygnus.com>
9422
9423         * libc/include/stdio.h (FILE): define __SCLE for "convert line
9424         endings" for Cygwin.
9425         (__sgetc): convert line endings if needed
9426         (__sputc): ditto
9427         * libc/stdio/fdopen.c (_fdopen_r): Remember if we opened in text mode
9428         * libc/stdio/fopen.c (_fopen_r): ditto
9429         * libc/stdio/freopen.c (freopen): ditto
9430         * libc/stdio/fread.c (fread): perform CRLF conversions if __SCLE
9431         * libc/stdio/fvwrite.c (__sfvwrite): ditto
9432
9433 Thu Apr 27 07:45:48 2000  Alexandre Oliva  <aoliva@cygnus.com>
9434
9435         * libc/machine/mn10300/setjmp.S (setjmp, longjmp): Use
9436         post-increment when it is worth it, spacewise.
9437
9438 Mon Apr 17 12:46:00 2000  Marek Michalkiewicz <marekm@linux.org.pl>
9439
9440         * libc/signal/signal.c (_signal_r) : Removed unused local variable temp.
9441         * libc/stdio/findfp.c (std): Added declaration of flags and file.
9442         * libc/stdio/mktemp.c (_gettemp, _mkstemp_r, mkstemp): Added int 
9443         return type.
9444         * libc/stdio/putchar.c (putchar): Added return statement.
9445         * libc/stdio/refill.c (lflush): Added correct parentheses.
9446         * libc/stdio/vfprintf.c (_VFPRINTF_R): Ditto.
9447         * libc/stdio/vfscanf.c (__svfscanf): Changed sprintf call which 
9448         prints long value to use l qualifier.
9449         * libc/stdlib/dtoa.c (_dtoa_r): Added parentheses to remove warning
9450         messages and initialized local values: ilim, ilim1, and spec_case.
9451         * libc/stdlib/ecvtbuf.c (print_e): Removed unused variable dp.
9452         * libc/stdlib/mbctype.h (_issjis1, _issjis2): Added parentheses.
9453         * libc/stdlib/mprec.c: Ditto.
9454         * libc/stdlib/setenv_r.c: Ditto.
9455         * libc/stdlib/strtod.c: Ditto.
9456         * libc/stdlib/strtol.c: Ditto.
9457         * libc/stdlib/strtoul.c: Ditto.
9458         * libm/common/sf_expm1.c: Added curly braces to if else clauses.
9459         * libm/common/sf_log1p.c: Ditto.
9460         * libm/common/sf_scalbn.c: Ditto.
9461         * libm/math/ef_log.c: Ditto.
9462
9463 Sun Apr 16 12:45:00 2000  Corinna Vinschen <corinna@vinschen.de>
9464
9465         * libc/posix/execvp.c (execvp): Check path for
9466         trailing slash.
9467
9468 Fri Mar 31 20:39:00 2000  Corinna Vinschen <corinna@vinschen.de>
9469
9470         * libc/include/sys/unistd.h: Add prototypes for
9471         fchmod, fchown, lchown.
9472
9473 Fri Mar 24 15:34:00 2000  Jeff Johnston  <jjohnstn@cygnus.com>
9474
9475         * acinclude.m4: Changed release to 1.8.2.
9476         * aclocal.m4 configure doc/aclocal.m4 doc/configure
9477           libc/aclocal.m4 libc/configure libc/machine/aclocal.m4
9478           libc/machine/configure libc/machine/a29k/aclocal.m4
9479           libc/machine/a29k/configure libc/machine/arm/aclocal.m4
9480           libc/machine/arm/configure libc/machine/d10v/aclocal.m4
9481           libc/machine/d10v/configure libc/machine/d30v/aclocal.m4
9482           libc/machine/d30v/configure libc/machine/fr30/aclocal.m4
9483           libc/machine/fr30/configure libc/machine/h8300/aclocal.m4
9484           libc/machine/h8300/configure libc/machine/h8500/aclocal.m4
9485           libc/machine/h8500/configure libc/machine/hppa/aclocal.m4
9486           libc/machine/hppa/configure libc/machine/i386/aclocal.m4
9487           libc/machine/i386/configure libc/machine/i960/aclocal.m4
9488           libc/machine/i960/configure libc/machine/m32r/aclocal.m4
9489           libc/machine/m32r/configure libc/machine/m68k/aclocal.m4
9490           libc/machine/m68k/configure libc/machine/m88k/aclocal.m4
9491           libc/machine/m88k/configure libc/machine/mips/aclocal.m4
9492           libc/machine/mips/configure libc/machine/mn10200/aclocal.m4
9493           libc/machine/mn10200/configure libc/machine/mn10300/aclocal.m4
9494           libc/machine/mn10300/configure libc/machine/necv70/aclocal.m4
9495           libc/machine/necv70/configure libc/machine/powerpc/aclocal.m4
9496           libc/machine/powerpc/configure libc/machine/sh/aclocal.m4
9497           libc/machine/sh/configure libc/machine/sparc/aclocal.m4
9498           libc/machine/sparc/configure libc/machine/tic80/aclocal.m4
9499           libc/machine/tic80/configure libc/machine/v850/aclocal.m4
9500           libc/machine/v850/configure libc/machine/w65/aclocal.m4
9501           libc/machine/w65/configure libc/machine/z8k/aclocal.m4
9502           libc/machine/z8k/configure libc/sys/aclocal.m4
9503           libc/sys/aclocal.m4 libc/sys/configure
9504           libc/sys/a29khif/aclocal.m4 libc/sys/a29khif/configure
9505           libc/sys/arm/aclocal.m4 libc/sys/arm/configure
9506           libc/sys/cygwin/aclocal.m4 libc/sys/cygwin/configure
9507           libc/sys/d10v/aclocal.m4 libc/sys/d10v/configure
9508           libc/sys/decstation/aclocal.m4 libc/sys/decstation/configure
9509           libc/sys/go32/aclocal.m4 libc/sys/go32/configure
9510           libc/sys/h8300hms/aclocal.m4 libc/sys/h8300hms/configure
9511           libc/sys/h8500hms/aclocal.m4 libc/sys/h8500hms/configure
9512           libc/sys/m88kbug/aclocal.m4 libc/sys/m88kbug/configure
9513           libc/sys/netware/aclocal.m4 libc/sys/netware/configure
9514           libc/sys/rtems/aclocal.m4 libc/sys/rtems/configure
9515           libc/sys/sh/aclocal.m4 libc/sys/sh/configure
9516           libc/sys/sparc64/aclocal.m4 libc/sys/sparc64/configure
9517           libc/sys/sun4/aclocal.m4 libc/sys/sun4/configure
9518           libc/sys/sysmec/aclocal.m4 libc/sys/sysmec/configure
9519           libc/sys/sysnec810/aclocal.m4 libc/sys/sysnec810/configure
9520           libc/sys/sysnecv850/aclocal.m4 libc/sys/sysnecv850/configure
9521           libc/sys/sysvi386/aclocal.m4 libc/sys/sysvi386/configure
9522           libc/sys/sysvnecv70/aclocal.m4 libc/sys/sysvnecv70/configure
9523           libc/sys/tic80/aclocal.m4 libc/sys/tic80/configure
9524           libc/sys/w65/aclocal.m4 libc/sys/w65/configure
9525           libc/sys/z8ksim/aclocal.m4 libc/sys/z8ksim/configure
9526           libm/aclocal.m4 libm/configure: Regenerated.
9527
9528 2000-03-24  Nick Clifton  <nickc@cygnus.com>
9529
9530         * libc/sys/arm/syscalls.c: Fix compile time warnings.
9531         (do_AngelSWI): Add "cc" to list o registers clobbered.
9532
9533 Thu Mar 22 14:57:00 2000  Fernando Nasser <fnasser@redhat.com>
9534
9535         * libc/sys/arm/syscalls.c (do_AngelSWI): Prevent registers with valid
9536         information to be clobbered by an Angel C library support syscall. 
9537
9538 Tue Mar 21 19:08:00 2000  Jeff Johnston <jjohnstn@cygnus.com>
9539
9540         * libc/stdlib/envlock.c: Fixed comment typo.
9541
9542 Fri Mar 17 15:37:00 2000  Jeff Johnston <jjohnstn@cygnus.com>
9543
9544         * libc/stdio/vfscanf.c (__svfscanf): Fixed floating point
9545         code to update nread as each character is processed instead
9546         of using buffer contents which throw away leading zeroes.
9547
9548 Mon Mar 13 15:22:00 2000  Sergei Organov <osv@javad.ru>
9549
9550         * libm/mathfp/sf_sqrt.c: Change _DOUBLE_IS_32BITS sqrt call to sqrtf.
9551
9552 Fri Mar 10 16:09:20 2000  Jeff Johnston <jjohnstn@cygnus.com>
9553
9554         * libc/include/string.h: Include <sys/types.h>.
9555
9556 Fri Mar 10 14:53:50 2000  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
9557
9558         * libc/stdio/putw.c (putw): Return 0 on success, to be compliant
9559         with XSH5, not SVID.
9560
9561 Thu Mar  9 17:20:41 2000  Jeff Johnston <jjohnstn@cygnus.com>
9562
9563         * libc/include/string.h: Changed last argument back to ssize_t
9564         to make it compatible with XPG4 definition which is 
9565         defined in <unistd.h>.  There is a conflict in the SVID 3
9566         and XPG4 definitions and newlib will settle with XPG4.
9567         * libc/string/swab.c: Ditto.
9568
9569 Wed Mar  8 17:11:41 2000  Jeff Johnston <jjohnstn@cygnus.com>
9570
9571         * libc/include/string.h: Changed last argument to size_t.
9572         * libc/string/swab.c: Changed last argument to size_t.
9573
9574 Wed Mar  8 00:46:41 2000  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
9575
9576         * libc/reent/Makefile.am (lib_a_SOURCES): Added unlinkr.c.
9577         (CHEWOUT_FILES): Added unlinkr.def.
9578         * libc/reent/Makefile.in: Rebuilt.
9579         * libc/sys.tex: Include unlinkr.def.
9580         * libc/reent/linkr.c (_unlink_r): Moved to...
9581         * libc/reent/unlinkr.c: ... new file.
9582
9583 Wed Mar  8 00:43:07 2000  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
9584
9585         * libc/string/Makefile.am (lib_a_SOURCES): Added swab.c.
9586         (CHEWOUT_FILES): Added swab.def.
9587         * libc/string/Makefile.in: Rebuilt.
9588         * libc/string/string.tex: Include swab.def.
9589         * libc/include/string.h (swab): Declare.
9590         * libc/string/swab.c: New file.
9591
9592 Wed Mar  8 00:38:35 2000  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
9593
9594         * libc/stdio/Makefile.am (lib_a_SOURCES): Added getw.c and putw.c.
9595         (CHEWOUT_FILES): Added getw.def and putw.def.
9596         * libc/stdio/Makefile.in: Rebuilt.
9597         * libc/stdio/stdio.tex: Include getw.def and putw.def.
9598         * libc/stdio/getw.c: New file.
9599         * libc/stdio/putw.c: New file.
9600
9601 Fri Feb 25 14:50:50 2000  Jeff Johnston <jjohnstn@cygnus.com>
9602
9603         * libc/stdio/flags.c (__sflags): Added check that mode[1]
9604         is non-null before looking at mode[2].
9605
9606 Thu Feb 24 11:43:00 2000  Ran Cabell <rcabell@norfolk.infi.net>
9607
9608         * libm/mathfp/sf_atan2.c: Fix atan2 typo for _DOUBLE_IS_32_BITS.
9609         * libm/mathfp/sf_atan.c: Ditto.
9610
9611 Thu Feb 24 11:39:00 2000  Joel Sherrill <joel@OARcorp.com>
9612
9613         * libc/include/sys/stat.h: Add RTEMS prototype for lstat.
9614
9615 Tue Feb 22 14:37:00 2000  Ran Cabell <rcabell@norfolk.infi.net>
9616
9617         * libm/mathfp/sf_exp.c: Corrected _DOUBLE_IS_32_BITS to be
9618         _DOUBLE_IS_32BITS.
9619
9620 Mon Feb 21 11:43:50 2000  Jeff Johnston <jjohnstn@cygnus.com>
9621
9622         * libc/stdio/vfprintf.c (VFPRINTF): Added CHECK_INIT
9623         call prior to calling _VFPRINTF_R so reentrant data area is set.
9624         (_VFPRINTF_R): Removed now extraneous CHECK_INIT call.
9625
9626 Thu Feb 17 01:42:50 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
9627
9628         * libc/stdio/vfscanf.c (limits.h): #include.
9629         (MAX_LONG_LEN): #define.
9630         (__svfscanf): Handle floating point numbers with arbitrary amounts
9631         of leading zeroes.
9632
9633 2000-02-15  Nick Clifton  <nickc@cygnus.com>
9634
9635         * libc/sys/arm/syscalls.c (_fstat): Initialise all fields to
9636         zero.  Set the blocksize to 1024/
9637
9638 Thu Jan 20 18:57:00 2000  Fernando Nasser <fnasser@redhat.com>
9639
9640         * setvbuf.c (setvbuf):  Set size to BUFSIZ when passed a zero size
9641         with line buffering.
9642
9643 Mon Jan 10 18:43:00 2000  Jeff Johnston <jjohnstn@cygnus.com>
9644
9645         * acinclude.m4: Changed include directory for winsup headers. 
9646         * aclocal.m4 configure libc/aclocal.m4
9647           libc/configure libc/ctype/Makefile.in libc/errno/Makefile.in
9648           libc/locale/Makefile.in libc/machine/aclocal.m4
9649           libc/machine/configure libc/machine/a29k/aclocal.m4
9650           libc/machine/a29k/configure libc/machine/arm/aclocal.m4
9651           libc/machine/arm/configure libc/machine/d10v/aclocal.m4
9652           libc/machine/d10v/configure libc/machine/d30v/aclocal.m4
9653           libc/machine/d30v/configure libc/machine/fr30/aclocal.m4
9654           libc/machine/fr30/configure
9655           libc/machine/h8300/aclocal.m4
9656           libc/machine/h8300/configure libc/machine/h8500/aclocal.m4
9657           libc/machine/h8500/configure libc/machine/hppa/aclocal.m4
9658           libc/machine/hppa/configure libc/machine/i386/aclocal.m4
9659           libc/machine/i386/configure libc/machine/i960/aclocal.m4
9660           libc/machine/i960/configure libc/machine/m32r/aclocal.m4
9661           libc/machine/m32r/configure libc/machine/m68k/aclocal.m4
9662           libc/machine/m68k/configure libc/machine/m88k/aclocal.m4
9663           libc/machine/m88k/configure libc/machine/mips/aclocal.m4
9664           libc/machine/mips/configure libc/machine/mn10200/aclocal.m4
9665           libc/machine/mn10200/configure libc/machine/mn10300/aclocal.m4
9666           libc/machine/mn10300/configure libc/machine/necv70/aclocal.m4
9667           libc/machine/necv70/configure libc/machine/powerpc/aclocal.m4
9668           libc/machine/powerpc/configure 
9669           libc/machine/sh/aclocal.m4
9670           libc/machine/sh/configure libc/machine/sparc/aclocal.m4
9671           libc/machine/sparc/configure
9672           libc/machine/tic80/aclocal.m4 libc/machine/tic80/configure
9673           libc/machine/v850/aclocal.m4 libc/machine/v850/configure
9674           libc/machine/w65/aclocal.m4 libc/machine/w65/configure
9675           libc/machine/z8k/aclocal.m4 libc/machine/z8k/configure
9676           libc/misc/Makefile.in libc/posix/Makefile.in
9677           libc/reent/Makefile.in 
9678           libc/signal/Makefile.in
9679           libc/string/Makefile.in libc/sys/aclocal.m4 libc/sys/configure
9680           libc/sys/a29khif/aclocal.m4 libc/sys/a29khif/configure
9681           libc/sys/arm/Makefile.in libc/sys/arm/aclocal.m4
9682           libc/sys/arm/configure libc/sys/cygwin/aclocal.m4
9683           libc/sys/cygwin/configure libc/sys/d10v/Makefile.in
9684           libc/sys/d10v/aclocal.m4 libc/sys/d10v/configure
9685           libc/sys/decstation/aclocal.m4 libc/sys/decstation/configure
9686           libc/sys/go32/aclocal.m4 libc/sys/go32/configure
9687           libc/sys/h8300hms/aclocal.m4 libc/sys/h8300hms/configure
9688           libc/sys/h8500hms/aclocal.m4 libc/sys/h8500hms/configure
9689           libc/sys/m88kbug/aclocal.m4 libc/sys/m88kbug/configure
9690           libc/sys/netware/aclocal.m4 libc/sys/netware/configure
9691           libc/sys/rtems/aclocal.m4 libc/sys/rtems/configure
9692           libc/sys/sh/Makefile.in libc/sys/sh/aclocal.m4
9693           libc/sys/sh/configure libc/sys/sparc64/aclocal.m4
9694           libc/sys/sparc64/configure libc/sys/sun4/aclocal.m4
9695           libc/sys/sun4/configure libc/sys/sysmec/aclocal.m4
9696           libc/sys/sysmec/configure libc/sys/sysnec810/aclocal.m4
9697           libc/sys/sysnec810/configure libc/sys/sysnecv850/aclocal.m4
9698           libc/sys/sysnecv850/configure libc/sys/sysvi386/aclocal.m4
9699           libc/sys/sysvi386/configure libc/sys/sysvnecv70/aclocal.m4
9700           libc/sys/sysvnecv70/configure libc/sys/tic80/aclocal.m4
9701           libc/sys/tic80/configure libc/sys/w65/aclocal.m4
9702           libc/sys/w65/configure libc/sys/z8ksim/aclocal.m4
9703           libc/sys/z8ksim/configure libc/syscalls/Makefile.in
9704           libc/time/Makefile.in libc/unix/Makefile.in libm/aclocal.m4
9705           libm/configure: Regenerated.
9706
9707 Mon Jan 10 18:43:46 2000  Jeff Johnston <jjohnstn@cygnus.com>
9708
9709         * libc/stdlib/putenv_r.c (_putenv_r): New file.
9710         * libc/stdlib/strdup_r.c (_strdup_r): New file.
9711         * libc/include/string.h: Added _strdup_r.
9712         * libc/stdlib/putenv.c: Added call to reentrant version. 
9713         * libc/stdlib/strdup.c: Ditto.
9714         * libc/stdlib/Makefile.am: Added _putenv_r and _unsetenv_r.
9715         * libc/include/stdlib.h: Ditto.
9716         * libc/stdlib/Makefile.in: Regenerated. 
9717         * libc/string/Makefile.in: Regenerated.
9718         * libc/stdlib/setenv.c: Added reentrant version of unsetenv.
9719         * libc/stdlib/setenv_r.c: Added unsetenv_r and changed memory
9720         management calls to reentrant versions.
9721         * libc/stdlib/wcstombs.c: Added #ifndef _REENT_ONLY wrapper.
9722         * libc/stdlib/wctomb.c: Ditto.
9723         * libc/stdlib/mblen.c: Ditto.
9724         * libc/stdlib/mbstowcs.c: Ditto.
9725         * libc/stdlib/mbtowc.c: Ditto. 
9726         * libc/stdlib/getenv.c: Ditto.
9727         * libc/reent/reent.tex: Added references to _putenv_r, _setenv_r,
9728         and _strdup_r.
9729
9730 Thu Jan  6 15:33:46 2000  Christopher Faylor <cgf@cygnus.com>
9731
9732         patch from Corinna Vinschen <corinna@vinschen.de>
9733         * libc/sys/cygwin/sys/param.h: Define NGROUP_MAX as 16.
9734
9735 Mon Jan 03 14:36:00 2000  Sergei Organov <osv@javad.ru>
9736
9737         * libm/mathfp/s_atangent.c: Fix exponent calculation.
9738         * libm/mathfp/s_ldexp.c: Ditto.
9739         * libm/mathfp/sf_atangent.c: Ditto.
9740         * libm/mathfp/sf_ldexp.c: Ditto.
9741
9742 Tue Dec 14 5:42:00 1999  Ranjith Kumaran <ranjith@cygnus.com>
9743
9744         * libc/machine/i960/setjmp.S: fix typo leaving .link_pix uncommented
9745         * libc/include/locale.h: define NULL to be 0.
9746
9747 Tue Dec  7 15:41:45 1999  Jim Wilson  <wilson@cygnus.com>
9748
9749         * libc/sys/sh/syscalls.c (stack_ptr): Move definition before first
9750         function.
9751
9752 Wed Dec  1 17:39:29 1999  Jeffrey A Law  (law@cygnus.com)
9753
9754         * libc/machine/mn10300/setjmp.S: Handle am33.
9755
9756 1999-11-26  Nick Clifton  <nickc@cygnus.com>
9757
9758         * libc/sys/arm/syscalls.c: Add function prototypes.
9759         (stack_ptr): Move declaration before function definitions.
9760
9761 Sat Nov 20 17:13:00 1999  Ranjith Kumaran <ranjith@cygnus.com>
9762
9763         * NEWS: Updated version information.
9764         * README: Ditto.
9765
9766 Tue Nov 09 12:19:21 1999  Jeff Johnston <jjohnstn@cygnus.com>
9767
9768         * libc/machine/i386/strchr.S: Fixed alignment test.
9769
9770 Thu Oct 28 05:30:46 1999  Andrew Cagney  <cagney@makita.cygnus.com>
9771
9772         * libc/sys/d10v/crt0.S (_start): Construct a real stack frame.
9773
9774 Thu Oct 28 15:29:11 1999  Andrew Cagney  <cagney@b1.cygnus.com>
9775
9776         * libc/sys/d10v/crt0.S (_start): Initialize both SPI and SPU
9777         ensuring that there is space between the two.
9778
9779 Thu Oct 14 13:39:21 1999  Christopher Faylor <cgf@cygnus.com>
9780
9781         * libc/stdio/flags.c: Conditionalize check for 't' for cygwin case
9782         only.
9783
9784 1999-10-08  Vadim Egorov  <egorovv@1c.ru>
9785
9786         * libc/include/stdlib.h: add ptsname, grantpt, unlockpt to cygwin
9787         section
9788
9789 Sat Oct  2 02:02:00 MEST 1999  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
9790
9791         * libc/machine/sh/asm.h: Added __SH4_SINGLE__ to DELAYED_BRANCHES
9792         * libc/machine/sh/memcpy.S: Fix line wrapping in SL macro
9793
9794 Fri Oct  1 13:17:59 CDT 1999  <joel@OARcorp.com>
9795         * libc/include/grp.h: Added getgrnam_r and getgrgid_r prototypes
9796           per POSIX 1003.1b.
9797         * libc/include/pwd.h: Added getpwnam_r and getpwuid_r prototypes
9798           per POSIX 1003.1b.
9799
9800 1999-09-13  DJ Delorie  <dj@cygnus.com>
9801
9802         * libc/stdio/mktemp.c (_gettemp): on cygwin, check for EACCESS
9803         also.
9804
9805 Thu Sep  9 15:31:00 1999  Jeff Johnston <jjohnstn@cygnus.com>
9806
9807         * setvbuf.c (setvbuf):  When mallocing a buffer of size BUFSIZ,
9808         also note BUFSIZ as its size.
9809
9810 Tue Sep  7 17:15:00 1999  Joel Sherrill <joel@OARcorp.com>
9811
9812         * configure.host: Corrected feature defines for RTEMS.
9813         * libc/include/sys/stat.h: Added protototype for RTEMS mknod.
9814         * libc/include/sys/stat.h: mkfifo() should take const path arg.
9815         * libc/include/sys/unistd.h: pathconf() should take const path arg.
9816           Enabled usleep(), ftruncate(), and truncate() prototypes for RTEMS.
9817           Added defines for _POSIX_JOB_CONTROL, _POSIX_SAVED_IDS, and
9818           _POSIX_VERSION for RTEMS.  Added defines for _PC_ASYNC_IO,
9819           _PC_PRIO_IO, and _PC_SYNC_IO.
9820         * libc/machine/m68k/Makefile.am: Added strcpy.c and strlen.c.
9821         * libc/machine/m68k/Makefile.in: Regenerated.
9822         * libc/machine/m68k/strcpy.c: New file.
9823         * libc/machine/m68k/strlen.c: New file.
9824         * libc/stdio/tmpnam.c: Always make the returned name usable.
9825         * libc/sys/rtems/crt0.c: New version that passes all autoconf tests.
9826         * libc/sys/rtems/sys/dirent.h: New file.
9827         * libc/sys/rtems/sys/types.h: Added dev_t.
9828
9829 Tue Sep  7 17:15:00 1999   Jay Kulpinski <jskulpin@eng01.gdds.com>
9830
9831         * libc/stdlib/mprec.c: Fixed unitialized variable problem.
9832
9833 Fri Sep  3 12:35:20 1999  Jeff Johnston <jjohnstn@cygnus.com>
9834
9835         * libc/stdio/ftell.c (ftell): Backing off Joern's fix and
9836         my patch.
9837
9838 Thu Sep  2 22:05:20 1999  Christopher Faylor <cgf@cygnus.com>
9839
9840         patch from Jeff Johnston <jjohnstn@cygnus.com>
9841         * libc/stdio/ftell.c (ftell): Avoid using buffer position when the
9842         buffer is not in a useful state.
9843
9844 1999-09-01  Nick Clifton  <nickc@cygnus.com>
9845
9846         * libc/sys/arm/syscalls.c (_link): Add stub.
9847
9848 Fri Aug 27 23:09:09 1999  J"orn Rennecke <amylaar@cygnus.co.uk>
9849
9850         * ftell.c (ftell): Use actual position within buffer for text mode.
9851         * findfp.c (std): Initialize ptr->_bf._size.
9852
9853 Wed Aug 18 18:48:02 1999  Christopher Faylor <cgf@cygnus.com>
9854
9855         * libc/include/sys/unistd.h: Add nice() declaration.
9856
9857 1999-08-09  Nick Clifton  <nickc@cygnus.com>
9858
9859         * libc/sys/arm/crt0.S (change_mode): Rename to __change_mode and
9860         declare as a thumb function so that the disassembler will see the
9861         mode change.
9862
9863 Thu Aug  5 17:37:00 1999  Ranjith Kumaran <ranjith@cygnus.com>
9864
9865         * libc/reent/reent.tex: Updated list of reentrant functions.
9866
9867 1999-07-09  Michael Meissner  <meissner@cygnus.com>
9868
9869         * libc/include/stdlib.h (_findenv{,_r}): Add prototypes.
9870         
9871 Tue Jul  6 10:46:24 1999  Jeff Johnston <jjohnstn@cygnus.com>
9872
9873         * libc/stdio/sprintf.c: Moved snprintf and _snprintf_r to
9874         separate file.
9875         * libc/stdio/snprintf.c: New file.
9876         * libc/stdio/vsprintf.c: Moved vsnprintf and _vsnprintf_r to
9877         separate file.
9878         * libc/stdio/vsnprintf.c: New file.
9879         * libc/stdio/Makefile.am: Added snprintf.c and vsnprintf.c.
9880         * libc/stdio/Makefile.in: Regenerated.
9881
9882 Mon Jul  5 14:43:24 1999  Christopher Faylor <cgf@cygnus.com>
9883
9884         Patch submitted by Egor Duda <deo@logos-m.ru>:
9885         * libc/include/stdio.h: Add declarations for *nprintf.
9886         * libc/stdio/sprintf.c (snprintf): New function.
9887         (_snprintf_r): New function.
9888         * libc/stdio/vsprintf.c (vsnprintf): New function.
9889         (_vnsprintf_r): New function.
9890
9891 Wed Jun 30 16:36:27 1999  Jeff Johnston  <jjohnstn@cygnus.com>
9892
9893         * libc/Makefile.am (stmp-targetdep): Remove extraneous blank.
9894         * libm/Makefile.am (stmp-targetdep): Ditto.
9895         * libc/Makefile.in: Regenerated.
9896         * libm/Makefile.in: Ditto.
9897
9898 Fri Jun 25 10:49:27 1999  Jeff Johnston  <jjohnstn@cygnus.com>
9899
9900         * libc/Makefile.am (stmp-targetdep): Ignore "." in SUBDIRS.
9901         * libm/Makefile.am (stmp-targetdep): Ditto.
9902         * libc/Makefile.in: Regenerated.
9903         * libm/Makefile.in: Ditto.
9904
9905 Thu June 03 16:25:00 1999  Jeff Johnston <jjohnstn@cygnus.com>
9906
9907         * Makefile.am: Removed dependencies on all-recursive and added "."
9908         to the SUBDIRS list to prevent infinite recursion from occurring.
9909         Also removed any references to EXTRA_DATA.
9910         * libc/Makefile.am: Ditto.
9911         * libc/machine/Makefile.am: Ditto.
9912         * libc/machine/i386/Makefile.am: Ditto.
9913         * libm/Makefile.am: Ditto.
9914         * libc/sys/Makefile.am: Ditto.
9915         * Makefile.in: Regenerated.
9916         * aclocal.m4: Ditto.
9917         * configure: Ditto.
9918         * doc/Makefile.in: Ditto.
9919         * doc/aclocal.m4: Ditto.
9920         * doc/configure: Ditto.
9921         * libc/Makefile.in: Ditto.
9922         * libc/aclocal.m4: Ditto.
9923         * libc/configure: Ditto.
9924         * libc/machine/Makefile.in: Ditto.
9925         * libc/machine/aclocal.m4: Ditto.
9926         * libc/machine/configure: Ditto.
9927         * libc/machine/mn10300/Makefile.in: Ditto.
9928         * libc/machine/mn10300/aclocal.m4: Ditto.
9929         * libc/machine/mn10300/configure: Ditto.
9930         * libc/sys/Makefile.in: Ditto.
9931         * libc/sys/aclocal.m4: Ditto.
9932         * libc/sys/configure: Ditto.
9933         * libm/Makefile.in: Ditto.
9934         * libm/aclocal.m4: Ditto.
9935         * libm/configure: Ditto.
9936
9937 Thu June 03 16:20:00 1999  Ranjith Kumaran <ranjith@cygnus.com>
9938
9939         * libc/include/stdlib/stdlib.tex: Add link to env_lock.
9940
9941 Fri May 28 17:09:00 1999  Ranjith Kumaran <ranjith@cygnus.com>
9942
9943         * libc/include/stdlib.h: Add reentrant routines.
9944         * libc/stdlib/Makefile.am: Add reentrant routines.
9945         * libc/stdlib/Makefile.in: Ditto.
9946         * libc/stdlib/envlock.c: New file.
9947         * libc/stdlib/envlock.h: New file.
9948         * libc/stdlib/getenv.c: Modify to call reentrant routine.
9949         * libc/stdlib/getenv_r.c: New file.
9950         * libc/stdlib/mblen.c: Modify to call reentrant routine.
9951         * libc/stdlib/mblen_r.c: New file.
9952         * libc/stdlib/setenv.c: Modify to call reentrant routine.
9953         * libc/stdlib/setenv_r.c: New file.
9954         * libc/stdlib/stdlib.tex: Add reentrant routines.
9955
9956 Mon May 17 22:01:38 1999  Christopher Faylor <cgf@cygnus.com>
9957
9958         * libc/include/sys/types.h: Define __MS_types__ whenever
9959         cygwin or win32.
9960
9961 Sun May 16 16:02:41 1999  Christopher Faylor <cgf@cygnus.com>
9962
9963         * libc/include/machine/ieeefp.h: Always default to little
9964         endian if Windows, regardless of architecture.
9965         * libc/include/machine/sethmp.h: Define JBLEN if CYGWIN
9966         regardless of architecture.
9967
9968 Mon May  3 11:49:18 1999  Geoffrey Noer  <noer@cygnus.com>
9969
9970         * libc/include/machine/setjmp.h: Accept CYGWIN define, even if
9971         _WIN32 isn't defined.
9972
9973 Mon May  3 11:41:51 1999  Jeff Johnston  <jjohnstn@cygnus.com>
9974
9975         * libm/common/s_rint.c (rint): Add volatile qualifier for
9976         intermediate value w.
9977         * libm/common/sf_rint.c (rintf): Ditto.
9978
9979 Thu Apr 29 20:34:27 1999  Jeff Johnston  <jjohnstn@cygnus.com>
9980
9981         * libc/sys/arm/syscalls.c (remap_handle): Added check to
9982         ensure that std streams are initialized before being referenced.
9983
9984 1999-04-27  Jason Molenda  (jsm@bugshack.cygnus.com)
9985
9986         * README: Update reference to newlib@cygnus.com new
9987         newlib@sourceware.cygnus.com address.
9988
9989 Mon Apr 26 18:17:33 1999  Geoffrey Noer  <noer@cygnus.com>
9990
9991         * libc/include/sys/types.h: Define MS_types if CYGWIN is defined.
9992         * libc/include/sys/fcntl.h: Define _O_BINARY et al if CYGWIN is
9993         defined, even if _WIN32 isn't defined.
9994
9995 Sat Apr 24 19:59:55 1999  Christopher Faylor <cgf@cygnus.com>
9996
9997         * libc/include/sys/fcntl.h: Correct _O_CREATE to _O_CREAT.
9998
9999 Wed Apr 21 18:01:00 1999  Ranjith Kumaran  <ranjith@cygnus.com>
10000
10001         * libc/include/sys/reent.h: Change Long and ULong to __Long and
10002         __ULong.
10003         * libc/stdlib/dtoa.c: Ditto.
10004         * libc/stdlib/mprec.c: Ditto.
10005         * libc/stdlib/mprec.h: Ditto.
10006         * libc/stdlib/strtod.c: Ditto.
10007
10008 1999-04-21  Nick Clifton  <nickc@cygnus.com>
10009
10010         * configure.host (mcore): Remove mcore machine directory.
10011
10012 1999-04-18  Nick Clifton  <nickc@cygnus.com>
10013
10014         * libc/include/machine/ieeefp.h: Add support for mcore target.
10015         * libc/include/machine/setjmp.h: Add support for mcore target.
10016         * configure.host: Add support for mcore target.
10017
10018 1999-04-13  Mark Salter  <msalter@cygnus.com>
10019
10020         * libc/sys/arm/libcfunc.c: Moved isatty to syscall.c
10021         * libc/sys/arm/syscalls.c: Added isatty.
10022
10023 Wed Apr 07 16:06:04 1999  Jeff Johnston  <jjohnstn@cygnus.com>
10024
10025         * libc/stdlib/ecvtbuf.c (fcvtbuf): Fixed code to properly
10026         insert zeroes after significant digits.
10027
10028 Wed Mar 17 22:06:04 1999  Jeff Johnston  <jjohnstn@cygnus.com>
10029         
10030         * libc/stdio/vfprintf.c (cvt): Changed floating point
10031         cvt routine to use union used by dtoa to properly determine
10032         if the sign bit is on or not.
10033         * libc/stdio/vfieeefp.h: New file
10034         
10035 Wed Mar 17 17:35:04 1999  Jeff Johnston  <jjohnstn@cygnus.com>
10036
10037         * aclocal.m4: Regenerated.
10038         * configure: Regenerated.
10039
10040 Wed Mar 17 16:35:04 1999  Jeff Johnston  <jjohnstn@cygnus.com>
10041
10042         * libc/machine/i386/Makefile.am (lib_a_SOURCES): Added missing
10043         f_tanf reference.
10044         * libc/machine/i386/Makefile.in: Regenerated.
10045
10046 Tue Mar 16 14:56:36 1999  Jeff Johnston  <jjohnstn@cygnus.com>
10047
10048         * acinclude.m4: Changed to work with new automake.
10049         * configure: Regenerated.
10050         * libc/machine/i386/aclocal.m4: Regenerated.
10051         * libc/machine/i386/configure: Regenerated.
10052
10053 Tue Mar 16 13:55:36 1999  Corinna Vinschen  <corinna.vinschen@cityweb.de>
10054
10055         * libc/sys/cygwin/sys/dirent.h: Add additional prototypes
10056         for telldir() and seekdir().  Rename unused structure element
10057         for use with these two routines.
10058
10059 Fri Mar 12 19:11:58 1999  Jeff Johnston  <jjohnstn@cygnus.com>
10060
10061         * libc/time/mktime.c (validate_structure): Multiple fixes to
10062         code to handle cases where input fields are outside valid ranges.
10063         * libc/stdlib/div.c (div): Modified invalid rounding check.
10064         * libc/stdlib/ldiv.c (ldiv): Ditto.
10065
10066 Thu Mar 11 21:32:13 1999  Jeff Johnston  <jjohnstn@cygnus.com>
10067
10068         * libc/machine/i386/memcpy.S: Performance rewrite.
10069         * libc/machine/i386/memmove.S: Ditto.
10070         * libc/machine/i386/i386mach.h: Added more register definitions.
10071         * libc/include/math.h: Include <machine/fastmath.h> if -ffast-math
10072         option used.
10073         * libc/include/machine/fastmath.h: Add definitions for x86
10074         fast-math routines.
10075
10076 Wed Mar 10 17:56:00 1999 Ranjith Kumaran  <ranjith@cygnus.com>
10077
10078         * libc/stdlib/strtod.c: Change from unsigned long to ULong.
10079
10080 Tue Mar  9 14:31:58 1999  Geoffrey Noer  <noer@cygnus.com>
10081
10082         Adjust newlib headers for new Cygwin Win32 API header files:
10083         * libc/include/sys/time.h: Check _WINSOCK_H rather than
10084         _GNU_H_WINDOWS32_SOCKETS.
10085         * libc/include/sys/types.h: Ditto.
10086
10087 Tue Mar 09 15:55:00 1999 Ranjith Kumaran  <ranjith@cygnus.com>
10088
10089         *include/sys/reent.h: Add checks for size of Bigint element Long.
10090         *libc/dtoa.c: Change routines to use generic Long type.
10091         *libc/mprec.c: Change routines to use generic Long type.
10092         *libc/mprec.h: Change routines to use generic Long type.
10093
10094 Tue Mar 02 18:07:49 1999 Ranjith Kumaran  <ranjith@cygnus.com>
10095
10096         * libc/Makefile.am: Add .def files.
10097         * libc/Makefile.in: Regenerate.
10098         * libc/e_acosh.c: Documentation update.
10099         * libc/e_atanh.c: Documentation update.
10100         * libc/e_hypot.c: Documentation update.
10101         * libc/e_remainder.c: Documentation update.
10102         * libc/er_lgamma.c: Documentation update.
10103         * libc/mathfp.tex: Documentation update.
10104         * libc/s_acos.c: Documentation update.
10105         * libc/s_atan.c: Documentation update.
10106         * libc/s_atan2.c: Documentation update.
10107         * libc/s_cosh.c: Documentation update.
10108         * libc/s_fmod.c: Documentation update.
10109         * libc/s_isnan.c: Documentation update.
10110         * libc/s_log10.c: Documentation update.
10111         * libc/s_pow.c: Documentation update.
10112         * libc/w_jn.c: Documentation update.
10113
10114 Sun Feb 28 23:18:49 1999  Geoffrey Noer  <noer@cygnus.com>
10115
10116         * aclocal.m4: Regenerate.
10117         * configure: Regenerate.
10118
10119 Tue Feb 23 13:57:26 1999  Jeff Johnston  <jjohnstn@cygnus.com>
10120
10121         * libc/machine/mn10300/setjmp.S (_longjmp): Fixed longjmp
10122         to return 1 if user specified return code is 0.
10123         * libc/machine/mn10200/setjmp.S (_longjmp): Ditto.
10124
10125 Thu Feb 18 11:13:28 1999  Jeff Johnston  <jjohnstn@cygnus.com>
10126
10127         * libc/machine/mn10200/setjmp.S (_setjmp/_longjmp): Fixed setjmp
10128         to save the return address.  Fixed longjmp to return to the original
10129         calling address of setjmp and to return the user specified return code
10130         rather than default to 1.
10131         * libc/machine/mn10300/setjmp.S (_setjmp/_longjmp): Ditto.
10132
10133 Mon Feb 15 17:48:17 1999  Jeff Johnston  <jjohnstn@cygnus.com>
10134
10135         * libc/stdlib/mprec.h (mult): Define mult to be _multiply instead of _mult.
10136
10137 1999-02-10  Nick Clifton  <nickc@cygnus.com>
10138
10139         * libc/sys/arm/syscalls.c (initialise_monitor_handles): Make block
10140         volatile so that its assignments will not be discarded.
10141
10142 Wed Feb 10 17:19:40 1999  Jeff Johnston  <jjohnstn@cygnus.com>
10143
10144         * libc/include/_ansi.h: Corrected _STRICT_ANSI reference to
10145         be __STRICT_ANSI__ which is generated by compiler.
10146         * libc/include/ctype.h: Ditto.
10147         * libc/include/math.h: Ditto.
10148         * libc/include/stdio.h: Ditto.
10149         * libc/include/stdlib.h: Ditto.
10150         * libc/include/string.h: Ditto.
10151         * libc/include/sys/signal.h: Ditto.
10152
10153 1999-02-08  Nick Clifton  <nickc@cygnus.com>
10154
10155         * configure.host: Add support for StrongARM target.
10156
10157 Fri Feb  5 11:13:14 1999  Jeff Johnston  <jjohnstn@cygnus.com>
10158
10159         * libc/string/strncpy.c (strncpy): Removed redundant code
10160         that was copying bytes if data unaligned.
10161
10162 1999-02-02  Brendan Kehoe  <brendan@cygnus.com>
10163
10164         * libc/stdlib/Makefile.{am,in} (CHEWOUT_FILES): Add mblen.def,
10165         mbstowcs.def, and wcstombs.def.
10166
10167 Sat Jan 30 02:36:33 1999  Christopher Faylor <cgf@cygnus.com>
10168
10169         * libc/include/sys/errno.h: Add Cygwin errno.
10170         * libc/stdio/flags.c: Don't default to O_TEXT if no other flag
10171         is specified.
10172
10173 1999-01-29  Nick Clifton  <nickc@cygnus.com>
10174
10175         * libc/sys/arm/syscalls.c: Move C library functions into seperate
10176         file.
10177         
10178         * libc/sys/arm/libcfunc.c: New file containing C library functions
10179         from syscalls.c
10180
10181         * libc/sys/arm/Makefile.am (lib_a_SOURCES): Add libcfuncs.c
10182         * libc/sys/arm/Makefile.in (lib_a_SOURCES): Regenerate.
10183
10184
10185 1999-01-27  Michael Meissner  <meissner@cygnus.com>
10186
10187         * libc/include/machine/setjmp.h (D30V _JBLEN/_JBTYPE): Use double
10188         type, and cut size in half so that the jmp_buf array is guaranteed
10189         to be aligned on a 64-bit boundary.
10190
10191 Mon Jan 25 12:05:38 1999  Jeff Johnston  <jjohnstn@cygnus.com>
10192
10193         * libc/string/strings.tex: Added information about
10194         strcasecmp and strncasecmp.
10195         * libc/stdlib/stdlib.tex: Added missing information
10196         about mblen, mbstowcs, and wcstombs.
10197         * libc/string/strchr.c: Changed how mask is built to use
10198         shift operators so register will be used instead of storage.
10199
10200 1999-01-22  DJ Delorie  <dj@cygnus.com>
10201
10202         * libc/include/stdlib.h: don't use dllimport if we're building
10203         newlib, since it's inside cygwin.dll
10204
10205 Fri Jan 22 14:57:18 1999  Christopher Faylor <cgf@cygnus.com>
10206
10207         * libc/ctype/ctype_.c: Need to use __declspec(dllexport) for
10208         _ctype_ under cygwin.
10209
10210 Fri Jan 22 09:50:19 1999  Christopher Faylor <cgf@cygnus.com>
10211
10212         * include/stdlib.h: Fix typo from previous checkin.
10213
10214 Thu Jan 21 22:42:21 1999  Christopher Faylor <cgf@cygnus.com>
10215
10216         * include/ctype.h: Use __declspec(dllimport) method for exporting
10217         variable from cygwin DLL.
10218         * include/time.h: Ditto.
10219         * sys/errno.h: Ditto.
10220         * include/stdlib.h: Export __mb_cur_max from cygwin DLL.
10221         * libc/locale/locale.c: Use __declspec(dllexport) method for
10222         exporting variable from cygwin DLL.
10223
10224 Sat Jan 16 13:29:54 1999  Christopher Faylor <cgf@cygnus.com>
10225
10226         * libc/stdio/setvbuf.c: Always clean up when _IONBF or possible
10227         access of bogus pointer will result in SIGSEGV.
10228
10229 1999-01-07  Nick Clifton  <nickc@cygnus.com>
10230
10231         * libc/sys/arm/setjmp.S: Use C macros to cope with the possibility
10232         of an underscore prefix to function names.
10233
10234 Fri Jan  8 19:00:07 1999  Jeff Johnston  <jjohnstn@cygnus.com>
10235
10236         * libc/machine/i386/i386mach.h (__REG_PREFIX__): Create new
10237         define __REG_PREFIX__ instead of using __REGISTER_PREFIX__.
10238
10239 1998-12-31  Michael Meissner  <meissner@cygnus.com>
10240
10241         * libc/machine/i386/i386mach.h (__REGISTER_PREFIX__): Only define
10242         to `%' if not already defined.
10243
10244 1998-12-30  Michael Meissner  <meissner@cygnus.com>
10245
10246         * libc/stdio/tmpnam.c (_tempnam_r): Make directory and prefix
10247         arguments const char *, not char *.
10248         * libc/include/stdio.h (_tempnam_r): Ditto.
10249
10250         * libc/include/sys/reent.h (struct _reent): The _sig_func type
10251         points to a function taking an integer, not void.
10252
10253 Tue Dec 29 14:35:53 1998  Christopher Faylor <cgf@cygnus.com>
10254
10255         * configure.host: Add a define for Cygwin builds.
10256         * libc/include/ctype.h: Don't use dll imported variables in newlib.
10257
10258 Mon Dec 28 09:19:56 1998  Christopher Faylor <cgf@cygnus.com>
10259
10260         * libc/include/ctype.h: Define _ctype_ as dll imported variable
10261         for use with Cygwin.
10262         * libc/include/sys/errno.h: Define _sys_errlist and _sys_nerr as
10263         dll imported variables for use with Cygwin.
10264         * libc/ctype/ctype_.c: Undefine _ctype_ in case it has been defined
10265         as a dll imported variable for Cygwin.
10266
10267 Sat Dec 26 00:13:53 1998  Christopher Faylor <cgf@cygnus.com>
10268
10269         * libc/include/sys/unistd.h: Add proto for getpass.
10270
10271 Fri Dec 18 19:28:19 1998  Geoffrey Noer  <noer@cygnus.com>
10272
10273         * libc/sys/cygwin/sys/dirent.h: add protos for scandir and
10274         alphasort.
10275
10276 Fri Dec 18 16:33:25 1998  Geoffrey Noer  <noer@cygnus.com>
10277
10278         * libc/posix/execvp.c (execvp): call cygwin_posix_path_list_p,
10279         not posix_path_list_p.
10280
10281 1998-12-15  Nick Clifton  <nickc@cygnus.com>
10282
10283         * libc/string/memchr.c: Treat 'c' argument as an unsigned byte not
10284         a signed int.
10285
10286 1998-12-13  Nick Clifton  <nickc@cygnus.com>
10287
10288         * libc/include/machine/setjmp.h (_JBLEN): Set to 10.
10289
10290 1998-12-12  Nick Clifton  <nickc@cygnus.com>
10291
10292         * libc/machine/fr30/setjmp.S: New file, supplied by Mark Slater
10293         <msalter@cygnus.com>
10294         * libc/machine/fr30/Makefile.am: Add build of setjmp.S
10295         * libc/machine/fr30/Makefile.in: Regenerated.
10296
10297 1998-12-11  Nick Clifton  <nickc@cygnus.com>
10298
10299         * configure.host: Remove use of libc/sys for FR30 port.
10300         * libc/sys/fr30: Remove directory (replaced by libgloss).
10301
10302 1998-12-10  Ken Raeburn  <raeburn@cygnus.com>
10303
10304         * libc/string/strcat.c (ALIGNED): Sense of result was reversed.
10305         * libc/string/strncat.c (ALIGNED): Ditto.
10306
10307 Wed Dec  9 14:37:57 1998  Geoffrey Noer  <noer@cygnus.com>
10308
10309         * libc/include/sys/time.h: include sys/types.h
10310
10311 Tue Dec  8 15:53:18 1998  Jeff Johnston  <jjohnstn@cygnus.com>
10312
10313         * libc/machine/i386/memcmp.S (memcmp): Fix for unequal
10314         comparison found when checking word at a time.
10315
10316 1998-12-04  Nick Clifton  <nickc@cygnus.com>
10317
10318         * libc/sys/fr30/crt0.s (_start): Initialise frame pointer.
10319
10320 1998-12-03  Nick Clifton  <nickc@cygnus.com>
10321
10322         * libc/sys/fr30/syscalls.c (_times): New function stub.
10323
10324 Thu Dec  3 15:59:19 1998  Jeff Johnston  <jjohnstn@cygnus.com>
10325
10326         * configure.host (mach_add_setjmp): Replaced mach_add_objs
10327         with mach_add_setjmp flag which indicates if setjmp should
10328         be added to the machine directory objects.
10329         * acinclude.m4: Removed reference to mach_add_objs.
10330         * aclocal.m4: Regenerated.
10331         * Makefile.in: Regenerated.
10332         * configure: Regenerated.
10333         * libc/aclocal.m4: Regenerated.
10334         * libc/Makefile.in: Regenerated.
10335         * libc/configure: Regenerated.
10336         * libc/machine/aclocal.m4: Regenerated.
10337         * libc/machine/Makefile.in: Regenerated.
10338         * libc/machine/configure: Regenerated.
10339         * libc/machine/i386/aclocal.m4: Regenerated.
10340         * libc/machine/i386/Makefile.am: Altered to selectively add
10341         setjmp.S to the src files list.
10342         * libc/machine/i386/Makefile.in: Regenerated.
10343         * libc/machine/i386/configure.in: Altered to test mach_add_setjmp.
10344         * libc/machine/i386/configure: Regenerated.
10345
10346 1998-12-02  Nick Clifton  <nickc@cygnus.com>
10347
10348         * libc/sys/fr30/crt0.s (_start): Fix function names.
10349
10350         * libc/machine/fr30: New directory
10351         * libc/machine/fr30/Makefile.am: New file.
10352         * libc/machine/fr30/Makefile.in: New generated file.
10353         * libc/machine/fr30/configure.in: New file.
10354         * libc/machine/fr30/configure: New generated file.
10355         * libc/machine/fr30/aclocal.m4: New generated file.
10356         * libc/sys/fr30/Makefile.am: New file.
10357         * libc/sys/fr30/Makefile.in: New generated file.
10358         * libc/sys/fr30/configure.in: New file.
10359         * libc/sys/fr30/configure: New generated file.
10360         * libc/sys/fr30/syscalls.c: New file.
10361
10362 Tue Dec  1 16:28:56 1998  Geoffrey Noer  <noer@cygnus.com>
10363
10364         * libc/sys/cygwin/sys/utmp.h: new file, moved from winsup/include.
10365
10366 1998-12-01  Ken Raeburn  <raeburn@cygnus.com>
10367
10368         * libc/time/strftime.c (strftime): Also handle %y for years before
10369         1900.
10370
10371 Tue Dec  1 13:26:07 1998  Christopher Faylor <cgf@cygnus.com>
10372
10373         * libc/string/strcasecmp.c (strcasecmp): Adhere to standard
10374         UNIX convention.  Perform tolower on characters before comparing
10375         them rather than use toupper.
10376         * libc/string/strncasecmp.c (strncasecmp): Ditto.
10377
10378 Mon Nov 30 16:24:19 1998  Jeff Johnston  <jjohnstn@cygnus.com>
10379         
10380         * configure.host: Added using i386 machine directory
10381         for all x86 cross-compiler and configuring
10382         which added object files to use via new "mach_add_objs" variable.
10383         * configure: Regenerated.
10384         * libc/configure: Regenerated.
10385         * libc/Makefile.in: Regenerated.
10386         * libc/aclocal.m4: Regenerated.
10387         * libc/ctype/Makefile.in: Regenerated.
10388         * libc/errno/Makefile.in: Regenerated.
10389         * libc/locale/Makefile.in: Regenerated.
10390         * libc/machine/Makefile.in: Regenerated.
10391         * libc/machine/aclocal.m4: Regenerated.
10392         * libc/machine/configure: Regenerated.
10393         * libc/posix/Makefile.in: Regenerated.
10394         * libc/reent/Makefile.in: Regenerated.
10395         * libc/signal/Makefile.in: Regenerated.
10396         * libc/stdio/Makefile.in: Regenerated.
10397         * libc/stdlib/Makefile.in: Regenerated.
10398         * libc/string/Makefile.in: Regenerated.
10399         * libc/string/memmove.c: Optimized code to use memcpy
10400         logic when performing a non-destructive copy.
10401         * libc/string/strncmp.c: Altered code to allow building
10402         optimized for size or speed.
10403         * libc/syscalls/Makefile.in: Regenerated.
10404         * libc/time/Makefile.in: Regenerated.
10405         * libc/unix/Makefile.in: Regenerated.
10406         * libc/machine/i386/Makefile.am: Added new files and reference
10407         to "mach_add_objs" to indicate optional object files.
10408         * libc/machine/i386/Makefile.in: Regenerated.
10409         * libc/machine/i386/aclocal.m4: Regenerated.
10410         * libc/machine/i386/configure: Regenerated.
10411         * libc/machine/i386/memchr.S: New file that implements
10412         function in Intel assembler.
10413         * libc/machine/i386/memcmp.S: ditto.
10414         * libc/machine/i386/memcpy.S: ditto.
10415         * libc/machine/i386/memmove.S: ditto.
10416         * libc/machine/i386/memset.S: ditto.
10417         * libc/machine/i386/strchr.S: ditto.
10418         * libc/machine/i386/strlen.S: ditto.
10419         * libc/machine/i386/f_atan2.S: New file that implements
10420         fast version of math function to be used by compiler when
10421         --ffast_math compile option is used.
10422         * libc/machine/i386/f_atan2f.S: ditto.
10423         * libc/machine/i386/f_exp.c: ditto.
10424         * libc/machine/i386/f_expf.c: ditto.
10425         * libc/machine/i386/f_frexp.S: ditto.
10426         * libc/machine/i386/f_frexpf.S: ditto.
10427         * libc/machine/i386/f_ldexp.S: ditto.
10428         * libc/machine/i386/f_ldexpf.S: ditto.
10429         * libc/machine/i386/f_log.S: ditto.
10430         * libc/machine/i386/f_logf.S: ditto.
10431         * libc/machine/i386/f_log10.S: ditto.
10432         * libc/machine/i386/f_log10f.S: ditto.
10433         * libc/machine/i386/f_math.h: New file.
10434         * libc/machine/i386/f_pow.c: ditto.
10435         * libc/machine/i386/f_powf.S: ditto.
10436         * libc/machine/i386/f_tan.S: ditto.
10437         * libc/machine/i386/f_tan.S: ditto.
10438         * libc/machine/i386/i386mach.h: New file.
10439
10440 Mon Nov 30 13:02:17 1998  Christopher Faylor <cgf@cygnus.com>
10441
10442         patch from Mumit Khan <khan@xraylith.wisc.edu>
10443         * libc/include/stdio.h (tempnam): Add prototype.
10444         * libc/stdio/tmpnam.c (_tempnam_r): Handle NULL prefix.
10445         (tempnam): Adhere to prototype.
10446
10447 Thu Nov 26 00:21:32 1998  Christopher Faylor <cgf@cygnus.com>
10448
10449         * Makefile.am: Add default for AR_FLAGS.
10450         * Makefile.in: Regenerate.
10451
10452 Tue Nov 24 18:48:56 1998  Geoffrey Noer  <noer@cygnus.com>
10453
10454         * libc/include/time.h: move __cplusplus wrapper after includes
10455         * libc/include/sys/time.h: ditto.  If Cygwin, include
10456         sys/select.h.
10457         * libc/include/sys/types.h: lose "32" in comment about Cygwin.
10458
10459 1998-11-23  Ken Raeburn  <raeburn@cygnus.com>
10460
10461         * libc/time/strftime.c (strftime): Handle %y after year 2000.
10462
10463 Wed Nov 18 12:22:41 1998  Nick Clifton  <nickc@cygnus.com>
10464
10465         * libc/sys/fr30/crt0.s (_start): Switch over to using int #9 as
10466         abnormnal end-of-crt0 marker.
10467
10468 Tue Nov 17 16:27:58 1998  Nick Clifton  <nickc@cygnus.com>
10469
10470         * libc/sys/fr30/crt0.s: New file/directory.
10471         * libc/include/machine/setjmp.h: Add FR30 target.
10472         * libc/include/machine/ieeefp.h: Add FR30 target.
10473         * configure.host: Add FR30 target.
10474
10475 Mon Nov  16 23:15:00 1998  Ranjith Kumaran <ranjith@cygnus.com>
10476
10477         * libm/math: Files that are duplicated in common directory removed.
10478         * libm/math/fdlibm.h: Removed.
10479         * libm/math/s_cbrt.c: Removed.
10480         * libm/math/s_copysign.c: Removed.
10481         * libm/math/s_expm1.c: Removed.
10482         * libm/math/s_finite.c: Removed.
10483         * libm/math/s_ilogb.c: Removed.
10484         * libm/math/s_infinity.c: Removed.
10485         * libm/math/s_lib_ver.c: Removed.
10486         * libm/math/s_log1p.c: Removed.
10487         * libm/math/s_logb.c: Removed.
10488         * libm/math/s_matherr.c: Removed.
10489         * libm/math/s_modf.c: Removed.
10490         * libm/math/s_nan.c: Removed.
10491         * libm/math/s_nextafter.c: Removed.
10492         * libm/math/s_rint.c: Removed.
10493         * libm/math/s_scalbn.c: Removed.
10494         * libm/math/sf_cbrt.c: Removed.
10495         * libm/math/sf_copysign.c: Removed.
10496         * libm/math/sf_expm1.c: Removed.
10497         * libm/math/sf_finite.c: Removed.
10498         * libm/math/sf_ilogb.c: Removed.
10499         * libm/math/sf_infinity.c: Removed.
10500         * libm/math/sf_log1p.c: Removed.
10501         * libm/math/sf_logb.c: Removed.
10502         * libm/math/sf_modf.c: Removed.
10503         * libm/math/sf_nan.c: Removed.
10504         * libm/math/sf_nextafter.c: Removed.
10505         * libm/math/sf_rint.c: Removed.
10506         * libm/math/sf_scalbn.c: Removed.
10507         * libm/math/Makefile.am: Removed references to deleted files (above).
10508         * libm/math/Makefile.in: Regenerated.
10509         * libm/Makefile.am: Added common directory to math.
10510         * libm/Makefile.in: Regenerated.
10511
10512 Mon Nov  2 23:12:00 1998  Ranjith Kumaran <ranjith@cygnus.com>
10513
10514         * libm/mathfp: Add non-ANSI functions.
10515         * libm/mathfp/e_acosh.c acosh(): New file.
10516         * libm/mathfp/e_atanh.c atanh(): New file.
10517         * libm/mathfp/e_hypot.c hypot(): New file.
10518         * libm/mathfp/e_j0.c j0(): New file.
10519         * libm/mathfp/e_j1.c j1(): New file.
10520         * libm/mathfp/e_remainder.c remainder(): New file.
10521         * libm/mathfp/e_scalb.c scalb(): New file.
10522         * libm/mathfp/ef_acosh.c acoshf(): New file.
10523         * libm/mathfp/ef_atanh.c atanhf(): New file.
10524         * libm/mathfp/ef_hypot.c hypotf(): New file.
10525         * libm/mathfp/ef_j0.c j0f(): New file.
10526         * libm/mathfp/ef_j1.c j1f(): New file.
10527         * libm/mathfp/ef_remainder.c remainderf(): New file.
10528         * libm/mathfp/ef_scalb.c scalbf(): New file.
10529         * libm/mathfp/er_gamma.c gamma_r: New file.
10530         * libm/mathfp/er_lgamma.c lgamma_r(): New file.
10531         * libm/mathfp/erf_gamma.c gamma_rf(): New file.
10532         * libm/mathfp/erf_lgamma.c lgamma_rf(): New file.
10533         * libm/mathfp/w_cabs.c cabs(): New file.
10534         * libm/mathfp/w_drem.c drem(): New file.
10535         * libm/mathfp/w_jn.c jn(): New file.
10536         * libm/mathfp/wf_cabs.c cabsf(): New file.
10537         * libm/mathfp/wf_drem.c dremf(): New file.
10538         * libm/mathfp/wf_jn.c jnf(): New file.
10539
10540 Mon Nov  2 16:43:18 1998  Geoffrey Noer  <noer@cygnus.com>
10541
10542         * libc/sys/cygwin32: remove directory and contents
10543         * libc/sys/cygwin: and add back, losing the "32".
10544         * configure.host: check for cygwin* instead of cygwin32.
10545         * acinclude.m4: ditto.
10546         * aclocal.m4: regenerate with aclocal
10547         * configure: regenerate with autoconf
10548
10549 Tue Oct 20 17:28:28 1998  Geoffrey Noer  <noer@cygnus.com>
10550
10551         * libc/stdio/tmpnam.c (_tempnam_r): not enough memory allocated
10552         for length
10553
10554 Tue Oct 20 18:49:05 1998  Jeff Johnston  <jjohnstn@cygnus.com>
10555
10556         * libc/include/sys/reent.h (struct _reent): Added variables _rand_next, _strtok_last,
10557         _asctime_buf, _localtime_buf and _gamma_signgam to struct reent
10558         to make rand/srand, strtok, asctime, localtime, w_gamma,
10559         w_lgamma, wf_gamma, and wf_lgamma reentrant.  Included
10560         time.h to bring in struct tm definition.
10561         * libc/stdlib/rand.c (rand, srand): Don't emit functions 'rand' and 'srand' if
10562         '_REENT_ONLY' is set. Used variable '_rand_next' from struct reent.
10563         * libc/stdlib/strtok.c (strtok): Used variable '_strtok_last' from struct reent
10564         instead of static variable.
10565         * libc/stdlib/asctime.c (asctime): Used variable '_asctime_buf' from
10566         struct reent instead of static variable.
10567         * libc/stdlib/lcltime.c (localtime): Used variable '_localtime_buf' from
10568         struct reent instead of static variable.
10569         * libm/math/Makefile.am: Removed s_signgam.o.
10570         * libm/math/Makefile.in: Regenerated.
10571         * libm/math/w_gamma.c (gamma): Used variable '_gamma_signgam' from
10572         struct reent instead of global variable 'signgam'.
10573         * libm/math/w_lgamma.c (lgamma): Likewise.
10574         * libm/math/wf_gamma.c (gammaf): Likewise.
10575         * libm/math/wf_lgamma.c (lgammaf): Likewise.
10576         * libm/math/s_signgam.c: Removed.
10577         * libc/include/unctrl.h: Defined arrays __unctrl and __unctrllen
10578         to be const.
10579         * libc/misc/unctrl.c: Defined arrays __unctrl and __unctrllen
10580         to be const.
10581         * libc/reent/Makefile.am: Added dependence for impure.o on impure.c and
10582         libc/include/reent.h.
10583         * libc/reent/Makefile.in: Regenerated.
10584         * libc/stdio/vfprintf.c (_vfprintf_r): Defined arrays 'blanks' and 'zeroes'
10585         to be const.
10586         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Defined arrays 'JIS_state_table' and
10587         'JIS_action_table' to be const.
10588         * libm/math/s_lib_ver.c: define variable _LIB_VERSION to be const.
10589
10590 Mon Oct 12 00:26:33 1998  Christopher Faylor <cgf@cygnus.com>
10591
10592         * acinclude.m4:  $with_target_subdir should default to '.'
10593         or confusion results when configuring in same directory as sources.
10594         * Regenerate all aclocal.m4 and configure files.
10595
10596 Fri Oct  9 16:27:36 1998  Jeff Johnston  <jjohnstn@cygnus.com>
10597
10598         * libc/stdlib/mallocr.c: Added 16 byte alignment support which
10599         can be set by defining MALLOC_ALIGNMENT=16.  Also added support
10600         for platforms where sizeof(size_t) < sizeof(long) via
10601         SIZE_T_SMALLER_THAN_LONG macro.
10602         
10603 Wed Oct  7 14:02:40 1998  Jeff Johnston  <jjohnstn@cygnus.com>
10604
10605         * libc/include/time.h (CLOCKS_PER_SEC): Change CLOCKS_PER_SEC
10606         to refer to _CLOCKS_PER_SEC_ and added including <machine/time.h>
10607         which sets _CLOCKS_PER_SEC_ for selected machines.
10608         * libc/include/machine/time.h: New file.
10609
10610 Tue Oct  6 16:08:05 1998  Jeff Johnston  <jjohnstn@cygnus.com>
10611
10612         * libc/syscalls/sysexecve.c: New file.
10613         * libc/syscalls/sysgettod.c: New file.
10614         * libc/syscalls/systimes.c: New file.
10615         * libc/syscalls/Makefile.am: Added new objects.
10616         * libc/syscalls/Makefile.in: Regenerated.
10617         * libc/include/_syslist.h (_execve): Moved define in file.
10618         * libc/include/reent.h:  Added _execve_r declaration.
10619         * libc/Makefile.in: Regenerated.
10620         * libc/ctype/Makefile.in: Regenerated.
10621         * libc/errno/Makefile.in: Regenerated.
10622         * libc/locale/Makefile.in: Regenerated.
10623         * libc/machine/Makefile.in: Regenerated.
10624         * libc/misc/Makefile.in: Regenerated.
10625         * libc/posix/Makefile.in: Regenerated.
10626         * libc/reent/Makefile.in: Regenerated.
10627         * libc/reent/execr.c (_execve_r): Added _execve_r function.
10628         * libc/signal/Makefile.in: Regenerated.
10629         * libc/stdio/Makefile.in: Regenerated.
10630         * libc/time/Makefile.in: Regenerated.
10631         * libc/unix/Makefile.in: Regenerated.
10632         * libm/mathfp/Makefile.in: Regenerated.
10633
10634 Tue Oct  6 14:14:05 1998  Jeff Johnston  <jjohnstn@cygnus.com>
10635
10636         * libc/string/Makefile.in: Regenerated.
10637         * libc/string/memchr.c (memchr): Moved code to reduce object size.
10638         * libc/string/memcpy.c (memcpy): Ditto.
10639         * libc/string/memcmp.c (memcmp): Ditto.
10640         * libc/string/memset.c (memset): Ditto.
10641         * libc/string/strchr.c (strchr): Ditto.
10642         * libc/string/strcmp.c (strcmp): Ditto.
10643         * libc/string/strcpy.c (strcpy): Ditto.
10644         * libc/string/strlen.c (strlen): Ditto.
10645
10646 Tue Oct  6 13:58:05 1998  Jeff Johnston  <jjohnstn@cygnus.com>
10647
10648         * libm/acinclude.m4: Removed since newlib/acinclude.m4 can be used
10649         to generate aclocal.m4.
10650         * libm/Makefile.in: Regenerated.
10651         * libm/aclocal.m4: Regenerated.
10652         * libm/configure: Regenerated.
10653         * libm/math/Makefile.in: Regenerated.
10654         * libm/mathfp/Makefile.in: Regenerated.
10655
10656 1998-09-25  Mark Salter  <msalter@cygnus.com>
10657
10658         * libc/include/machine/setjmp.h: Fixed test for mn10300 and mn10200
10659         by adding leading and trailing underscores to symbol names.
10660
10661 Tue Sep 22 15:33:41 1998  Christopher Faylor <cgf@cygnus.com>
10662
10663         * Makefile.in: Add default for AR_FLAGS.
10664
10665 Tue Sep 22 15:02:49 1998  Christopher Faylor <cgf@cygnus.com>
10666
10667         patch from ian@airs.com (Ian Taylor):
10668         * acinclude.m4: Run AC_CANONICAL_BUILD explicitly before
10669         NEWLIB_CONFIGURE so AC_CANONICAL_HOST will be run before it
10670         is needed for detecting the build machine.  Required for
10671         cygwin native builds.
10672
10673         * Regenerate all aclocal.m4 and configure files.
10674
10675 Mon Sep 21 14:44:16 1998  Nick Clifton  <nickc@cygnus.com>
10676
10677         * libc/sys/arm/crt0.S: Prepend a period to all local labels that
10678         used to start with LC.
10679
10680 Thu Sep 17 18:18:11 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
10681
10682         * libc/machine/sh/setjmp.S (setjmp): Handle __SH4* like __SH3E__ .
10683         (longjmp): Likewise.
10684
10685 Thu Sep 17 16:25:33 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
10686
10687         * libc/machine/sh/memset.S (memset): Move copy from r4 to r4 before
10688         the test for small number of bytes.
10689
10690 Thu Sep 10 11:40:00 1998  Ranjith Kumaran <ranjith@cygnus.com>
10691
10692         * Makefile.am: Add --enable-newlib-hw-fp check.  This builds the new
10693         math library that uses floating point algorithms instead of the old
10694         libm.
10695         * Makefile.in: Regenerate with automake version 1.3b.
10696         * configure: Rebuild.
10697         * libm/Makefile.in: Regenerate with automake version 1.3b.
10698         * libm/aclocal.m4: Regenerate.
10699         * libm/configure: Rebuild.
10700         * libm/configure.in: Add newlib_hw_fp definition and mathfp directory.
10701         * libm/acinclude.m4: Define macros for configure.in.
10702         * libm/config.h.in: Generate.
10703         * libm/mathfp/Makefile.am: New file.
10704         * libm/mathfp/Makefile.in: Generate.
10705         * libm/mathfp/s_acos.c (acos): New file.
10706         * libm/mathfp/s_asin.c (asin): New file.
10707         * libm/mathfp/s_asine.c (asine): New file.
10708         * libm/mathfp/s_atan.c (atan): New file.
10709         * libm/mathfp/s_atan2.c (atan2): New file.
10710         * libm/mathfp/s_atangent.c (atangent): New file.
10711         * libm/mathfp/s_ceil.c (ceil): New file.
10712         * libm/mathfp/s_copysign.c (copysign): New file.
10713         * libm/mathfp/s_cos.c (cos): New file.
10714         * libm/mathfp/s_cosh.c (cosh): New file.
10715         * libm/mathfp/s_exp.c (exp): New file.
10716         * libm/mathfp/s_fabs.c (fabs): New file.
10717         * libm/mathfp/s_finite.c (finite): New file.
10718         * libm/mathfp/s_floor.c (floor): New file.
10719         * libm/mathfp/s_fmod.c (fmod): New file.
10720         * libm/mathfp/s_frexp.c (frexp): New file.
10721         * libm/mathfp/s_infconst.c: New file.
10722         * libm/mathfp/s_isinf (isinf).c: New file.
10723         * libm/mathfp/s_isnan.c (isnan): New file.
10724         * libm/mathfp/s_ispos.c (ispos): New file.
10725         * libm/mathfp/s_ldexp.c (ldexp): New file.
10726         * libm/mathfp/s_log.c (log): New file.
10727         * libm/mathfp/s_log10.c (log10): New file.
10728         * libm/mathfp/s_logarithm.c (logarithm): New file.
10729         * libm/mathfp/s_mathcnst.c: New file.
10730         * libm/mathfp/s_modf (modf).c: New file.
10731         * libm/mathfp/s_numtest.c (numtest): New file.
10732         * libm/mathfp/s_pow.c (pow): New file.
10733         * libm/mathfp/s_scalbn.c (scalbn): New file.
10734         * libm/mathfp/s_sin (sin).c: New file.
10735         * libm/mathfp/s_sine.c (sine): New file.
10736         * libm/mathfp/s_sineh.c (sineh): New file.
10737         * libm/mathfp/s_sinf.c (sinf): New file.
10738         * libm/mathfp/s_sinh.c (sinh): New file.
10739         * libm/mathfp/s_sqrt.c (sqrt): New file.
10740         * libm/mathfp/s_tan.c (tan): New file.
10741         * libm/mathfp/s_tanh.c (tanh): New file.
10742         * libm/mathfp/sf_acos.c (acosf): New file.
10743         * libm/mathfp/sf_asin.c (asinf): New file.
10744         * libm/mathfp/sf_asine.c (asinef): New file.
10745         * libm/mathfp/sf_atan.c (atanf): New file.
10746         * libm/mathfp/sf_atan2.c (atan2f): New file.
10747         * libm/mathfp/sf_atangent.c (atangent): New file.
10748         * libm/mathfp/sf_ceil.c (ceilf): New file.
10749         * libm/mathfp/sf_copysign.c (copysignf): New file.
10750         * libm/mathfp/sf_cos.c (cosf): New file.
10751         * libm/mathfp/sf_cosh.c (coshf): New file.
10752         * libm/mathfp/sf_exp.c (expf): New file.
10753         * libm/mathfp/sf_fabs.c (fabsf): New file.
10754         * libm/mathfp/sf_finite.c (finitef): New file.
10755         * libm/mathfp/sf_floor.c (floorf): New file.
10756         * libm/mathfp/sf_fmod.c (fmodf): New file.
10757         * libm/mathfp/sf_frexp.c (frexpf): New file.
10758         * libm/mathfp/sf_isinf.c (isinff): New file.
10759         * libm/mathfp/sf_isnan.c (isnanf): New file.
10760         * libm/mathfp/sf_ispos.c (isposf): New file.
10761         * libm/mathfp/sf_ldexp.c (ldexpf): New file.
10762         * libm/mathfp/sf_log.c (logf): New file.
10763         * libm/mathfp/sf_log10.c (log10f): New file.
10764         * libm/mathfp/sf_logarithm.c (logarithmf): New file.
10765         * libm/mathfp/sf_modf.c (modff): New file.
10766         * libm/mathfp/sf_numtest.c (numtestf): New file.
10767         * libm/mathfp/sf_pow.c (powf): New file.
10768         * libm/mathfp/sf_scalbn.c (scalbnf): New file.
10769         * libm/mathfp/sf_sin.c (sinf): New file.
10770         * libm/mathfp/sf_sine.c (sinef): New file.
10771         * libm/mathfp/sf_sineh.c (sinehf): New file.
10772         * libm/mathfp/sf_sinh.c (sinhf): New file.
10773         * libm/mathfp/sf_sqrt.c (sqrtf): New file.
10774         * libm/mathfp/sf_tan.c (tanf): New file.
10775         * libm/mathfp/sf_tanh.c (tanhf): New file.
10776         * libm/mathfp/zmath.h: New file.
10777
10778 Wed Sep  2 02:49:03 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
10779
10780         * libc/machine/sh/strcmp.S (L_char_loop): Re-load r0 at loop
10781         exit if it has been overwritten by pre-fetching in delay slot.
10782
10783 1998-09-01  Michael Meissner  <meissner@cygnus.com>
10784
10785         * Makefile.am (tooldir): Add in host_alias, so that multilib
10786         libraries are installed in the directory the compiler looks in.
10787         * Makefile.in: Regenerate.
10788
10789         * libc/stdlib/Makefile.in: Regenerate with automake version 1.3b.
10790
10791 Mon Aug 31 11:39:31 1998  Jeff Johnston  <jjohnstn@cygnus.com>
10792
10793         * libc/machine/mn10300/memcpy.S (_memcpy): Move alignment test
10794         ahead of test for number of bytes being moved.
10795
10796 Thu Aug 27 14:07:53 1998  Christopher Faylor <cgf@cygnus.com>
10797
10798         * libc/include/sys/unistd.h: Nothing special needed for
10799         _exit under cygwin.
10800
10801 Wed Aug 26 15:05:21 1998  Nick Clifton  <nickc@cygnus.com>
10802
10803         * libc/sys/arm/syscalls.c (_sbrk): Rename '_end' to 'end' to
10804         conform to user label naming conventions. 
10805
10806 Mon Aug 24 14:46:19 1998  Geoffrey Noer <noer@cygnus.com>
10807
10808         * libc/sys/cygwin32/sys/utime.h: variable names in
10809         protos should start with two leading underscores
10810         * libc/include/string.h: ditto
10811         * libc/include/sys/signal.h: ditto
10812         * libc/include/sys/stat.h: ditto
10813         * libc/include/sys/time.h: ditto
10814         * libc/include/sys/unistd.h: ditto
10815         * libc/include/ctype.h: ditto
10816         * libc/include/stdlib.h: ditto
10817         * libc/include/sys/reent.h: struct _atexit function ptr takes a
10818         void, same with _sig_func.
10819
10820 Fri Aug 21 14:44:14 1998  Jeff Johnston  <jjohnstn@cygnus.com>
10821
10822         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Added preprocessor checks
10823         for MB_CAPABLE to reduce code size when newlib is not configured
10824         with --enable-newlib-mb.
10825         * libc/stdlib/Makefile.am: Specified -fshort-enums when building
10826         mbtowc_r.o to minimize size.
10827         * libc/stdlib/Makefile.in: Rebuild.
10828         
10829 Wed Aug 19 16:20:13 1998  Jim Wilson  <wilson@cygnus.com>
10830
10831         * libc/sys/sparc64/Makefile.am (.S_r.o, .c_r.o): Change -DREENTRANT
10832         to -DREENT.
10833         * libc/sys/sparc64/Makefile.in: Rebuild.
10834         
10835 Tue Aug 18 22:38:29 1998  Ian Lance Taylor  <ian@cygnus.com>
10836
10837         * Makefile.am (MAKEOVERRIDES): Define.
10838         * Makefile.in: Rebuild.
10839
10840 Tue Aug 18 12:38:47 1998  Jim Wilson  <wilson@cygnus.com>
10841
10842         * libc/sys/sparc64/sys/stat.h (stat): Add const.
10843
10844 Mon Aug 17 22:27:06 1998  Ian Lance Taylor  <ian@cygnus.com>
10845
10846         * acinclude.m4 (NEWLIB_CONFIGURE): Use top_builddir in
10847         newlib_cflags when looking for targ-include.
10848         * */aclocal.m4, */configure: Rebuild.
10849
10850 Fri Jul 31 10:57:42 1998  Catherine Moore  <clm@cygnus.com>
10851
10852         * libc/sys/arm/syscalls.c (_sbrk): Change "__end__"
10853         to "_end".
10854
10855 Wed Jul 29 00:02:01 1998  Mark Alexander  <marka@cygnus.com>
10856
10857         * libc/include/sys/config.h: Define __IEEE_LITTLE_ENDIAN
10858         on SPARCs with little-endian data.
10859         * libc/include/machine/ieeefp.h: Ditto.
10860
10861 Wed Jul 22 18:00:10 1998  Ian Lance Taylor  <ian@cygnus.com>
10862
10863         * acinclude.m4: Handle a relative srcdir correctly when setting
10864         newlib_cflags.
10865         * */aclocal.m4, */configure: Rebuild.
10866
10867 Wed Jul 22 17:11:33 1998  Jeff Johnston  <jjohnstn@cygnus.com>
10868
10869         * libm/math/wrf_lgamma.c (lgammaf_r): Initialize exc.err to 0 and
10870         also set exc.arg1, exc.arg2 appropriately in case matherr is supplied.
10871         * libm/math/wrf_gamma.c (gammaf_r): ditto 
10872         * libm/math/wr_lgamma.c (lgamma_r): ditto 
10873         * libm/math/wr_gamma.c (gamma_r): ditto 
10874         * libm/math/wf_sqrt.c (sqrtf): ditto 
10875         * libm/math/wf_sinh.c (sinhf): ditto 
10876         * libm/math/wf_scalb.c (scalbf): ditto 
10877         * libm/math/wf_remainder.c (remainderf): ditto 
10878         * libm/math/wf_pow.c (powf): ditto 
10879         * libm/math/wf_log10.c (log10f): ditto 
10880         * libm/math/wf_log.c (logf): ditto 
10881         * libm/math/wf_lgamma.c (lgammaf): ditto 
10882         * libm/math/wf_jn.c (jnf, ynf): ditto 
10883         * libm/math/wf_j1.c (j1f, y1f): ditto 
10884         * libm/math/wf_j0.c (j0f, y0f): ditto 
10885         * libm/math/wf_hypot.c (hypotf): ditto 
10886         * libm/math/wf_gamma.c (gammaf): ditto 
10887         * libm/math/wf_fmod.c (fmodf): ditto 
10888         * libm/math/wf_exp.c (expf): ditto 
10889         * libm/math/wf_cosh.c (coshf): ditto 
10890         * libm/math/wf_atanh.c (atanhf): ditto 
10891         * libm/math/wf_atan2f.c (atan2f): ditto 
10892         * libm/math/wf_asin.c (asinf): ditto 
10893         * libm/math/wf_acosh.c (acoshf): ditto 
10894         * libm/math/wf_acos.c (acosf): ditto 
10895         * libm/math/w_sqrt.c (sqrt): ditto 
10896         * libm/math/w_sinh.c (sinh): ditto 
10897         * libm/math/w_scalb.c (scalb): ditto 
10898         * libm/math/w_remainder.c (remainder): ditto 
10899         * libm/math/w_pow.c (pow): ditto 
10900         * libm/math/w_log10.c (log10): ditto 
10901         * libm/math/w_log.c (log): ditto 
10902         * libm/math/w_lgamma.c (lgamma): ditto 
10903         * libm/math/w_jn.c (jn, yn): ditto 
10904         * libm/math/w_j1.c (j1, y1): ditto 
10905         * libm/math/w_j0.c (j0, y0): ditto 
10906         * libm/math/w_hypot.c (hypot): ditto 
10907         * libm/math/w_gamma.c (gamma): ditto 
10908         * libm/math/w_fmod.c (fmod): ditto 
10909         * libm/math/w_exp.c (exp): ditto 
10910         * libm/math/w_cosh.c (cosh): ditto 
10911         * libm/math/w_atanh.c (atanh): ditto 
10912         * libm/math/w_atan2f.c (atan2): ditto 
10913         * libm/math/w_asin.c (asin): ditto 
10914         * libm/math/w_acosh.c (acosh): ditto 
10915         * libm/math/w_acos.c (acos): ditto 
10916
10917 Tue Jul 21 12:34:54 1998  Ian Lance Taylor  <ian@cygnus.com>
10918
10919         * libm/math/Makefile.am (src): Add w_cabs.c and w_drem.c.
10920         (fsrc): Add wf_cabs.c and wf_drem.c.
10921         * libm/math/Makefile.in: Rebuild.
10922
10923         * Makefile.am (AM_MAKEFLAGS): Add CFLAGS_FOR_BUILD.  Remove some
10924         unused directory variables.  Remove duplicate CFLAGS.
10925         * Makefile.in: Rebuild.
10926
10927         * doc/Makefile.am ($(MKDOC)): Don't use $(CFLAGS) when building
10928         with $(CC_FOR_BUILD).
10929         (makedoc.o): Likewise.
10930         * doc/Makefile.in: Rebuild.
10931
10932         * libc/sys/cygwin32/Makefile.am (EXTRA_LIBRARIES): Define, to
10933         force a definition of COMPILE.
10934         (libfoo_a_SOURCES): Define.
10935         * libc/sys/cygwin32/Makefile.in: Rebuild.
10936         * libc/sys/tic80/Makefile.am (EXTRA_LIBRARIES): Define, to
10937         force a definition of COMPILE.
10938         (libfoo_a_SOURCES): Define.
10939         * libc/sys/tic80/Makefile.in: Rebuild.
10940
10941 Mon Jul 20 20:49:24 1998  Christopher Faylor <cgf@cygnus.com>
10942
10943         * libc/include/sys/fcntl.h: Add O_NOINHERIT, Win32-specific
10944         flag.
10945
10946 Fri Jul 17 16:13:16 1998  Ian Lance Taylor  <ian@cygnus.com>
10947
10948         * Build using autoconf and automake.  Added many Makefile.am and
10949         configure.in files, plus generated files.  Old configure.in files
10950         and all old Makefile.in files completely replaced.  Removed
10951         host/any.  Added acinclude.m4 and configure.host.
10952
10953 Sat Jul 11 18:14:49 1998  Felix Lee  <flee@cygnus.com>
10954
10955         * libc/stdio/vfprintf.c: enable long long support, sometimes.
10956         * configure.in (*-*-cygwin32): add -DWANT_PRINTF_LONG_LONG.
10957
10958 Tue Jul  7 01:51:55 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
10959
10960         * libc/machine/sh/strcmp.S, libc/machine/sh/strcpy.S: New files.
10961         * libc/machine/sh/Makefile.in: Add rules for new files.
10962
10963 Tue Jul  7 01:40:55 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
10964
10965         * libc/machine/sh/asm.h (SL, DELAYED_BRANCHES): Define.
10966         * libc/machine/sh/memset.S (memset): Remove uses of dt; shorten code.
10967         * libc/machine/sh/memcpy.S (SL, DELAYED_BRANCHES): Don't define.
10968
10969 Thu Jul  2 10:33:16 1998  Nick Clifton  <nickc@cygnus.com>
10970
10971         * libc/sys/arm/syscalls.c (_exit): Add comment, noting that exit
10972         code is ignored.
10973
10974 Wed Jun 24 13:56:54 1998  Jeff Johnston  <jjohnstn@cygnus.com>
10975
10976         * libc/stdio/tmpnam.c (_tmpnam_r): Changed routine to use
10977         internal static buffer when s is NULL, as prescribed by ANSI.
10978
10979 1998-06-22  Vladimir N. Makarov  <vmakarov@cygnus.com>
10980
10981         * libc/sys/h8300hms/Makefile.in (OFILES): malloc.o has been
10982         removed.
10983         * libc/sys/h8300hms/malloc.c: has been removed.  Now malloc.c from
10984         libc/stdlib will be used for h8300hms.
10985         
10986 Thu Jun 18 16:56:05 1998  Jeff Johnston  <jjohnstn@cygnus.com>
10987
10988         * libc/machine/mn10300/strlen.S (_strlen): New optimized assembler
10989         version that can be built either for speed or size.
10990         * libc/machine/mn10300/memset.S (_memset): ditto
10991         * libc/machine/mn10300/memchr.S (_memchr): ditto
10992         * libc/machine/mn10300/memcpy.S (_memcpy): ditto
10993         * libc/machine/mn10300/memcmp.S (_memcmp): ditto
10994         * libc/machine/mn10300/strchr.S (_strchr): ditto
10995         * libc/machine/mn10300/strcmp.S (_strcmp): ditto
10996         * libc/machine/mn10300/strcpy.S (_strcpy): ditto
10997         * libc/machine/mn10300/Makefile.in: Added entries for
10998         memchr.o, memcmp.o, memcpy.o, memset.o, strchr.o, 
10999         strcmp.o, strcpy.o, and strlen.o.
11000
11001 Wed Jun 17 12:50:26 1998  Mark Alexander  <marka@cygnus.com>
11002
11003         * configure.in: Don't use libc/sys/sysmec for MN10200; it's
11004         been replaced with libgloss/mn10200.
11005
11006 Fri Jun 12 14:34:39 1998  Michael Meissner  <meissner@cygnus.com>
11007
11008         * libc/string/strchr.c (strchr): Make s a constant pointer to
11009         avoid warning.
11010
11011 Tue Jun  9 16:29:30 1998  Jason Molenda  (crash@bugshack.cygnus.com)
11012
11013         * configure.in (target == arm* or thumb*): Define ARM_RDI_MONITOR
11014         instead of ARM_RDP_MONITOR (sys/libc/arm/crt0.S to assume Angel
11015         board SWIs instead of Demon board SWIs).
11016
11017 Thu Jun  4 12:16:46 1998  Michael Meissner  <meissner@cygnus.com>
11018
11019         * libc/string/strncat.c (strncat):  Make -Os act the same as
11020         PREFER_SIZE_OVER_SPEED being defined.
11021
11022 Wed Jun  3 17:52:33 1998  Michael Meissner  <meissner@cygnus.com>
11023
11024         * libc/string/memchr.c (memchr): Make -Os act the same as
11025         PREFER_SIZE_OVER_SPEED being defined.
11026         * libc/string/memcmp.c (memcmp): Ditto.
11027         * libc/string/memcpy.c (memcpy): Ditto.
11028         * libc/string/memset.c (memset): Ditto.
11029         * libc/string/strcat.c (strcat): Ditto.
11030         * libc/string/strchr.c (strchr): Ditto.
11031         * libc/string/strcmp.c (strcmp): Ditto.
11032         * libc/string/strcpy.c (strcpy): Ditto.
11033         * libc/string/strlen.c (strlen): Ditto.
11034         * libc/string/strncat.c (strncat): Ditto.
11035         * libc/string/strncmp.c (strncmp): Ditto.
11036         * libc/string/strncpy.c (strncpy): Ditto.
11037
11038 Mon Jun  1 15:25:07 1998  Geoffrey Noer  <noer@cygnus.com>
11039
11040         * libc/include/sys/itimer.h: remove
11041         * libc/include/sys/time.h: itimer stuff should be here
11042
11043 Mon Jun  1 16:31:29 1998  Jeff Johnston  <jjohnstn@cygnus.com>
11044
11045         * libc/stdio/vfprintf.c (cvt): Changed code to look at sign
11046         bit instead of comparing to 0 so -0.0 can be printed correctly.
11047
11048 Sat May 30 09:33:51 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
11049
11050         * libc/stdlib/mprec.c (b2d): Inilialize d in non-VAX case too.
11051
11052 Fri May 29 22:25:10 1998  Geoffrey Noer  <noer@cygnus.com>
11053
11054         * libc/include/sys/unistd.h: fix sync() proto
11055         * libc/include/sys/fcntl.h: remove _close which is already
11056         defined in unistd.h.
11057         * libc/include/sys/time.h: add getitimer proto
11058
11059 Fri May 29 16:10:28 1998  Geoffrey Noer  <noer@cygnus.com>
11060
11061         * libc/string/strchr.c: convert arg to unsigned char
11062         * libc/include/stdlib.h: add protos for random, srandom
11063         * libc/include/sys/stat.h: add lstat proto
11064         * libc/include/sys/time.h: add setitimer proto
11065         * libc/include/sys/unistd.h: add readlink, symlink protos
11066         * libc/include/process.h: instead of including windows.h and using
11067         HANDLEs in sexec protos, just use void *s.  Need to include
11068         sys/types.h.
11069
11070 Fri May 29 03:04:29 1998  Geoffrey Noer  <noer@cygnus.com>
11071
11072         * libc/include/sys/fcntl.h: add _close proto for Cygwin32
11073
11074 Thu May 28 16:34:21 1998  Geoffrey Noer  <noer@cygnus.com>
11075
11076         * libc/include/process.h: add secure exec protos
11077
11078 Wed May 27 13:54:51 1998  Jeffrey A Law  (law@cygnus.com)
11079
11080         * libc/stdlib/dtoa.c (_dtoa_r): Use "double_union" for variables
11081         which are accessed as both doubles and integers.
11082         * libc/stdlib/mprec.c (ulp, b2d, ratio): Likewise.
11083         * libc/stdlib/strtod.c (_strtod_r): Likewise.
11084         * libc/stdlib/mprec.h: Add "union double_union" and change
11085         word0/word1 macros to use it.
11086
11087 Tue May 26 18:04:21 1998  Geoffrey Noer  <noer@cygnus.com>
11088
11089         * libc/include/sys/signal.h: add __cplusplus wrapper
11090
11091 Tue May 26 15:10:22 1998  Geoffrey Noer  <noer@cygnus.com>
11092
11093         * libc/include/sys/utime.h: new generic file that gets replaced by
11094         libc/sys/SYSDIR/sys/utime.h on systems that support the utime
11095         function.
11096         * sys/cygwin32/sys/utime.h: use _EXFUN in utime proto
11097         * libc/include/time.h: remove duplicate utime proto
11098         * libc/include/utime.h: add comment
11099
11100 Sun May 24 23:56:20 1998  Christopher Faylor <cgf@cygnus.com>
11101
11102         * libc/include/sys/time.h: Add missing include to
11103         allow use of _EXFUN.  Remove times function that is
11104         already defined in times.h.
11105
11106 Sun May 24 01:32:14 1998  Christopher Faylor <cgf@cygnus.com>
11107
11108         * libc/include/time.h: Fix typo in tzset.
11109
11110 Fri May 22 17:00:48 1998  Geoffrey Noer  <noer@cygnus.com>
11111
11112         * libc/include/sys/time.h: add missing Cygwin32 function protos
11113         * libc/include/sys/unistd.h: ditto
11114         * libc/include/time.h: ditto
11115
11116 Wed May 20 20:35:11 1998  Geoffrey Noer  <noer@cygnus.com>
11117
11118         * libc/sys/cygwin32/sys/param.h: add protected NULL def, remove
11119         FIXME.
11120         * libc/include/sys/types.h: add a new __MS_types__ section
11121         to define vm_offset_t, vm_size_t, int32_t et al, register_t,
11122         __BIT_TYPES_DEFINED__.
11123
11124 Wed May 20 18:49:21 1998  Geoffrey Noer  <noer@cygnus.com>
11125
11126         * libc/sys/cygwin32/sys/param.h: move here from winsup/include/sys
11127         since it overrides the one in libc/include/sys.  Also, start
11128         including types.h.
11129
11130 Wed May 20 14:45:40 1998  Geoffrey Noer  <noer@cygnus.com>
11131
11132         * libm/math/Makefile.in: add s_signgam.o to obj list
11133
11134 Tue May 19 11:57:11 1998  Jeff Johnston  <jjohnstn@cygnus.com>
11135
11136         * libc/include/sys/reent.h (_REENT_INIT): Initialize current locale to "C".
11137
11138 Mon May 18 22:36:12 1998  Christopher Faylor <cgf@cygnus.com>
11139
11140         * libc/include/sys/signal.h: cygwin32 exports sig{empty,add}set,
11141         so don't use defines.
11142
11143 Mon May 18 19:01:02 1998  Michael Meissner  <meissner@cygnus.com>
11144
11145         * libc/sys/d10v/crt0.S: Use correct stab for 16-bit ints.
11146
11147 Sun May 17 18:40:32 1998  Frank Ch. Eigler  <fche@cygnus.com>
11148
11149         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Accept a NULL
11150         _current_locale as default locale.
11151
11152 Sat May 16 21:59:59 1998  Bob Manson  <manson@charmed.cygnus.com>
11153
11154         * libc/stdlib/mallocr.c (mALLOc): Add explicit tests for
11155         insufficient space in a chunk.
11156
11157 Tue May 12 14:41:01 1998  Jeff Johnston  <jjohnstn@cygnus.com>
11158
11159         * configure.in (links): Added check for --enable-newlib-mb configure
11160         option which defines the MB_CAPABLE macro.
11161         * libc/locale/locale.c (_setlocale_r): Added support for setting
11162         LC_CTYPE to "C-JIS", "C-SJIS" or "C-EUCJP", when MB_CAPABLE is
11163         defined.
11164         * libc/stdlib/mbtowc_r.c (_mbtowc_r): New function _mbtowc_r that
11165         implements mbtowc() with multibyte support for JIS, SJIS, and EUC-JP.
11166         * libc/stdlib/wctomb_r.c (_wctomb_r): New function _wctomb_r that
11167         implements wctomb() with multibyte support for JIS, SJIS, and EUC-JP.
11168         * libc/stdlib/mbstowcs_r.c (_mbstowcs_r): New function _mbstowcs_r that
11169         implements mbstowcs() with multibyte support for JIS, SJIS, and EUC-JP.
11170         * libc/stdlib/wcstombs_r.c (_wcstombs_r): New function _wcstomb_r that implements
11171         wcstombs() with multibyte support for JIS, SJIS, and EUC-JP.
11172         * libc/stdlib/Makefile.in: Added new multibyte
11173         routines: _mbtowc_r(), _wctomb_r(), _mbstowcs_r(), and _wcstombs_r().
11174         * libc/include/stdlib.h: Added declarations of _mbtowc_r(), _wctomb_r(),
11175         _mbstowcs_r(), and _wcstombs_r().
11176         * libc/stdlib/mbctype.h: New internal header file that contains macros to test
11177         for JIS, SJIS, and EUC-JP characters.
11178         * libc/stdlib/mblen.c (mblen): Added code to call _mbtowc_r() if
11179         MB_CAPABLE defined.
11180         * libc/stdlib/mbtowc.c (mbtowc): Added code to call _mbtowc_r() if
11181         MB_CAPABLE defined.
11182         * libc/stdlib/wctomb.c (wctomb): Added code to call _wctomb_r() if
11183         MB_CAPABLE defined.
11184         * libc/stdlib/mbstowcs.c (mbstowcs): Added code to call _mbstowcs_r()
11185         if MB_CAPABLE defined.
11186         * libc/stdlib/wcstombs.c (wcstombs): Added code to call _wcstombs_r()
11187         if MB_CAPABLE defined.
11188         * libc/stdio/vfscanf.c (__svfscanf): Added multibyte tolerance
11189         to the format string processing when MB_CAPABLE.
11190         * libc/stdio/vfprintf.c (_VFPRINTF_R): Changed mbtowc() call to
11191         call _mbtowc_r().
11192
11193 Tue May  5 16:07:23 1998  Nick Clifton  <nickc@cygnus.com>
11194
11195         The following modifications are courtesy of Anthony Thompson,
11196         athompson@cambridge.arm.com:
11197         * libc/sys/arm/syscalls.c: Initialise and track stdin/out/err for
11198         boith RDI and RDP monitors.
11199         * libc/sys/arm/crt0.S: Call initialise_monitor_handles() for both
11200         RDI and RDP monitors.
11201
11202 Wed Apr 29 15:22:15 1998  Jeff Johnston  <jjohnstn@cygnus.com>
11203
11204         * configure.in (links): Added -DHAVE_GETTIMEOFDAY for arm and thumb.
11205         * libc/sys/arm/syscalls.c (_gettimeofday _times): Added functions.
11206         (_swiopen): Fixed open flags to treat write with append as just append.
11207         (_swilseek): Fixed lseek support to properly handle offsets from SEEK_END.
11208         * libc/sys/arm/sys/param.h: New file to override param.h for ARM.
11209
11210 Fri Apr 24 18:00:09 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
11211
11212         * libc/machine/sh/memcpy.S (L_odddst, big endian version):
11213         When needing to transfer an initial 2-byte-word, store as
11214         two single bytes.
11215
11216 Wed Apr 22 17:56:03 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
11217
11218         * libc/sys/sh/crt0.S (start): Handle __SH4_SINGLE_ONLY__ like
11219         __SH3E__ .
11220         * libc/machine/sh/memcpy.S (DELAYED_BRANCHES, SL): Likewise.
11221         * libc/include/machine/ieeefp.h (_DOUBLE_IS_32BITS): Likewise.
11222
11223 Wed Apr 22 12:28:03 1998  Michael Meissner  <meissner@cygnus.com>
11224
11225         * configure.in (target_cflags): If --enable-target-optspace, use
11226         -Os to compile newlib rather than -O2.  Default to using -Os for
11227         d10v, d30v and m32r if --{enable,disable}-target-optspace is not
11228         used.
11229
11230 Tue Apr 21 23:13:34 1998  Geoffrey Noer  <noer@cygnus.com>
11231
11232         * libc/include/machine/setjmp.h: change sigsetjmp and
11233         siglongjmp definitions to use an array instead of a struct
11234         for __CYGWIN32__
11235
11236 Tue Apr 14 11:47:47 1998  Doug Evans  <devans@canuck.cygnus.com>
11237
11238         * libc/reent/impure.c (__ATTRIBUTE_IMPURE_DATA__): Fix spelling.
11239
11240 Mon Apr  6 15:05:08 1998  Jonathan Larmour  <jlarmour@cygnus.co.uk>
11241
11242         * libc/string/strxfrm.c: fix to get correct return value
11243
11244 Wed Apr  1 16:09:05 1998  Nick Clifton  <nickc@cygnus.com>
11245
11246         * libc/sys/arm/crt0.S: Set top of RAM to be 0x800000 for PE
11247         builds.  Make mode change labels global so that they will be seen
11248         by the debugger.
11249
11250 Wed Mar 18 09:45:10 1998  Nick Clifton  <nickc@cygnus.com>
11251
11252         * configure.in (links): Do not use ARM debiugging protocols for PE
11253         builds.
11254
11255         * libc/sys/arm/syscalls.c (_sbrk): Add "_sbrk: " to error
11256         message. 
11257
11258 Fri Mar 13 11:24:34 1998  Jeff Johnston  <jjohnstn@cygnus.com>
11259
11260         * libc/stdio/findfp.c (__sinit): Made stdout default to
11261         line buffered mode as defined by ANSI.
11262
11263 Tue Mar 10 11:41:26 1997  Bob Manson  <manson@charmed.cygnus.com>
11264
11265         * libc/include/sys/itimer.h: New file.
11266
11267         * libc/signal/signal.c (__sigtramp_r,__sigtramp): New functions.
11268
11269 Mon Mar  9 14:19:26 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
11270
11271         * libc/machine/sh/memcpy.S: (_memcpy): Fix for execute/memcpy-1.c
11272         failure.
11273
11274 Fri Feb 27 13:56:10 1998  Michael Meissner  <meissner@cygnus.com>
11275
11276         * libc/machine/d30v/setjmp.S (longjmp): Fix order of parallel
11277         insns.
11278
11279 Wed Feb 25 09:29:54 1998  Nick Clifton  <nickc@cygnus.com>
11280
11281         * libc/sys/arm/syscalls.c (_open): Add varags to conform to prototype.
11282
11283 Tue Feb 24 18:00:13 1998  Michael Meissner  <meissner@cygnus.com>
11284
11285         * libc/machine/d30v/{setjmp.S,Makefile.in}: New files for D30V
11286         support.
11287
11288         * libc/include/machine/setjmp.h: Add D30V support.
11289
11290         * configure.in (d30v-*): Add d30v machine directory.
11291
11292 Mon Feb 23 09:32:58 1998  Mark Alexander  <marka@cygnus.com>
11293
11294         * configure.in: Don't use libc/sys/sysmec for MN10300; it's
11295         been replaced with libgloss/mn10300.
11296
11297 Sat Feb 21 17:44:43 1998  Geoffrey Noer  <noer@cygnus.com>
11298
11299         * libc/stdlib/mallocr.c: remove __malloc_copy routine now that
11300         it is no longer needed.
11301
11302 Thu Feb 19 16:15:10 1998  Geoffrey Noer  <noer@cygnus.com>
11303
11304         * libc/include/sys/signal.h: add sigpause proto for Cygwin32
11305
11306 Wed Feb 18 23:51:08 1998  Geoffrey Noer  <noer@cygnus.com>
11307
11308         * libc/stdio/fdopen.c (fdopen): Make all writes go to the end of
11309         the file when O_APPEND is set, wherever the EOF happens to be at
11310         that time. 
11311
11312 Wed Feb 18 23:25:02 1998  Geoffrey Noer  <noer@cygnus.com>
11313         
11314         patch from cgf@bbc.com (Christopher Faylor):
11315         * libc/stdio/freopen.c (freopen): Conform to standard UNIX
11316         convention of closing fp prior to attempting to open the file
11317         argument.  This allows correct operation when reopening
11318         stdin/stdout/stderr.  Replaces last freopen.c patch.
11319
11320 Wed Feb 18 16:27:40 1998  Geoffrey Noer  <noer@cygnus.com>
11321
11322         patch from cgf@bbc.com (Christopher Faylor):
11323         * libc/stdio/freopen.c: freopen was not preserving the fd
11324         of the stream being operated on.  This confuses programs that
11325         expect that the handles for stdout and stderr will be 1 and 2.
11326
11327 Mon Feb 16 23:34:07 1998  Andrew Cagney  <cagney@b1.cygnus.com>
11328
11329         * libc/sys/d10v/crt0.S (_start): Set PSW{SW} - select SPU.
11330
11331 Thu Feb 12 15:09:20 1998  Ranjith Kumaran <ranjith@cygnus.com>
11332
11333         * libc/sys/go32/longjmp.S: Fix longjmp to not return 0.
11334
11335 Wed Feb 11 17:50:45 1998  Jeff Johnston  <jjohnstn@cygnus.com>
11336
11337         * libc/machine/powerpc/setjmp.S (setjmp, longjmp): Alignment code
11338         altered to not use a branch.  Also added hint that last
11339         bclr in longjmp will likely result in branch.
11340         
11341
11342 Mon Feb  9 03:44:02 1998  Geoffrey Noer  <noer@cygnus.com>
11343
11344         * libc/sys/cygwin32/crt0.c: add missing args to main() extern
11345
11346 Fri Feb  6 16:32:32 1998  Nick Clifton  <nickc@cygnus.com>
11347
11348         * libc/sys/sysnecv850/crt0.S (_start): Initialise _ctbp even for
11349         v850 builds.
11350
11351         * configure.in: Add -msmall-sld to target_cflags for v850 builds. 
11352
11353 Wed Feb  4 16:56:20 1998  Jeff Johnston  <jjohnstn@cygnus.com>
11354
11355         * libc/machine/powerpc/setjmp.S (longjmp): Fixed code
11356         that loads FR14 to specify offset of 8 rather than 4
11357         so it loads from offset 96 (where setjmp stored it).
11358
11359 Tue Feb  3 18:08:34 1998  Jeff Johnston  <jjohnstn@cygnus.com>
11360
11361         * libc/machine/sh/memcpy.S: (_memcpy): Update to
11362         latest version supplied by customer.
11363         * libc/machine/sh/memset.S (_memset): Ditto.
11364
11365 Mon Feb  2 16:20:39 1998  Nick Clifton  <nickc@cygnus.com>
11366
11367         * libc/sys/sysnecv850/Makefile.in (OFILES): Add link.o (for
11368         PR14730). 
11369
11370 Mon Feb  2 15:13:26 1998  Geoffrey Noer  <noer@cygnus.com>
11371
11372         * libc/include/string.h: remove redefinition of ffs
11373
11374 Wed Jan 28 13:30:14 1998  Geoffrey Noer  <noer@cygnus.com>
11375
11376         * libc/include/sys/signal.h: include _ansi.h so _EXFUN is
11377         defined
11378
11379 Wed Jan 28 10:38:34 1998  Jeff Johnston  <jjohnstn@cygnus.com>
11380
11381         * libc/machine/tic80/setjmp.S: Adding _setjmp to allow
11382         TI Libraries to link to libc.a
11383         
11384 Sat Jan 24 10:15:56 1998  Michael Meissner  <meissner@cygnus.com>
11385
11386         * libc/include/sys/fcntl.h (_open,_fcntl): Add prototypes.
11387         * libc/include/sys/stat.h (_{,f}stat): Ditto.
11388         * libc/include/sys/wait.h (_wait): Ditto.
11389         * libc/include/sys/unistd.h (_close,_fork,_getpid): Ditto.
11390         (_link,_lseek,_read,_sbrk,_unlink,_write): Ditto.
11391
11392 Fri Jan 23 11:32:10 1998  Michael Meissner  <meissner@cygnus.com>
11393
11394         * libc/machine/d10v/setjmp.S: Change to new ABI.  Add simple
11395         minded stabs so function name shows up when running the simulator
11396         with -t.
11397         * libc/sys/d10v/{crt0,trap}.S: Ditto.
11398
11399 Thu Jan 22 15:57:14 1998  Fred Fish  <fnf@cygnus.com>
11400
11401         * libc/sys/d10v/trap.S: Change syscalls to use trap 15. 
11402         * libc/sys/d10v/crt0.S: Use R6 where we used to use R2.
11403         Use R5 where we used to use R3.
11404         
11405 Wed Jan 21 14:22:23 1998  Bill Moyer <billm@cygnus.com>
11406
11407         * libc/stdlib/getopt.c (getopt): replaced __progname
11408         with nargv[0] to improve portability to imbedded systems.
11409
11410 Thu Jan 15 12:32:38 1998  Nick Clifton  <nickc@cygnus.com>
11411
11412         * libc/sys/arm/syscalls.c (initialise_angel_handles): Applied
11413         patch supplied by Tont.Thompson@arm.com to fix the creation of the
11414         stdout file.
11415
11416 Wed Jan 14 13:00:19 1998  Ian Lance Taylor  <ian@cygnus.com>
11417
11418         * libc/stdio/tmpnam.c (worker): Generate a different file name
11419         each time.
11420
11421         * libc/posix/popen.c (popen): If __CYGWIN32__, and execing /bin/sh
11422         fails, try an execlp for sh.
11423
11424         * host/any (INCLUDES): If target_os is cygwin32, then add a -I
11425         option for the winsup include directory.
11426
11427 Wed Jan  7 17:02:58 1998  Nick Clifton  <nickc@cygnus.com>
11428
11429         * libc/sys/arm/syscalls.c: Applied patches for Angel based remote
11430         debugging interface from Tony.Thompson@arm.com.
11431         
11432         * libc/sys/arm/crt0.S (_mainCRTStartup): ditto.
11433         * libc/sys/arm/swi.h: ditto.
11434
11435 Tue Jan  6 14:15:10 1998  Geoffrey Noer  <noer@cygnus.com>
11436
11437         * libc/sys/cygwin32/sys/dirent.h: add __d_dirhash field to
11438         DIR struct used for readdir hashes.
11439
11440 Thu Jan  1 11:22:22 1998  Jeffrey A Law  (law@cygnus.com)
11441
11442         * libc/string/strchr.c: Use "unsigned chars" as necessary.
11443
11444 Wed Dec 31 04:25:30 1997  Jeffrey A Law  (law@cygnus.com)
11445
11446         * libc/stdlib/mallocr.c (idx2binblock): Don't lose on 16bit
11447         integer targets.
11448
11449 Sat Dec 13 15:11:06 1997  Ian Lance Taylor  <ian@cygnus.com>
11450
11451         * libc/stdlib/mallocr.c (__malloc_copy): New function, compiled if
11452         INTERNAL_NEWLIB and __CYGWIN32__ and DEFINE_MALLOC.
11453         * libc/include/malloc.h: Add extern "C" if __cplusplus.
11454         (__malloc_copy): Declare.
11455
11456 Wed Dec 10 12:15:54 1997  Ian Lance Taylor  <ian@cygnus.com>
11457
11458         * libc/stdlib/mallocr.c: If INTERNAL_NEWLIB, include
11459         <sys/config.h>.
11460         (POINTER_UINT): Define.
11461         (DEFAULT_TRIM_THRESHOLD): Mark constants as long.
11462         (MALLOC_ALIGNMENT): Don't define if already defined.
11463         (malloc_extend_top): Cast pointers to POINTER_UINT, not unsigned
11464         long.
11465
11466 Tue Dec  9 19:23:42 1997  Michael Meissner  <meissner@cygnus.com>
11467
11468         * libc/string/memset.c (memset): Fiddle with code so that the long
11469         value being stored is not a stack value.  Unroll storing longs 4
11470         times.
11471
11472 Tue Dec  9 14:13:18 1997  Jeff Johnston  <jjohnstn@cygnus.com>
11473
11474         * Reduce code size for libm modules.
11475         * libm/math/w_sqrt.c (sqrt): Remove call to kernel_standard
11476         and simply move code into sqrt.
11477         * libm/math/wrf_lgamma.c (lgammaf_r): Likewise.
11478         * libm/math/wr_lgamma.c (lgamma_r): Likewise.
11479         * libm/math/wrf_gamma.c (gammaf_r): Likewise.
11480         * libm/math/wr_gamma.c (gamma_r): Likewise.
11481         * libm/math/wf_sinh.c (sinfh): Likewise.
11482         * libm/math/w_sinh.c (sinh): Likewise.
11483         * libm/math/wf_scalb.c (scalbf): Likewise.
11484         * libm/math/w_scalb.c (scalb): Likewise.
11485         * libm/math/wf_remainder.c (remainderf): Likewise.
11486         * libm/math/w_remainder.c (remainder): Likewise.
11487         * libm/math/wf_pow.c (powf): Likewise.
11488         * libm/math/w_pow.c (pow): Likewise.
11489         * libm/math/wf_log10.c (log10f): Likewise.
11490         * libm/math/w_log10.c (log10): Likewise.
11491         * libm/math/wf_log.c (logf): Likewise.
11492         * libm/math/w_log.c (log): Likewise.
11493         * libm/math/w_lgamma.c (lgamma): Likewise.
11494         * libm/math/wf_lgamma.c (lgammaf): Likewise.
11495         * libm/math/wf_jn.c (jnf): Likewise.
11496         * libm/math/w_jn.c (jn): Likewise.
11497         * libm/math/wf_j1.c (j1f): Likewise.
11498         * libm/math/w_j1.c (j1): Likewise.
11499         * libm/math/wf_j0.c (j0f): Likewise.
11500         * libm/math/w_j0.c (j0): Likewise.
11501         * libm/math/wf_hypot.c (hypotf): Likewise.
11502         * libm/math/w_hypot.c (hypot): Likewise.
11503         * libm/math/wf_gamma.c (gammaf): Likewise.
11504         * libm/math/w_gamma.c (gamma): Likewise.
11505         * libm/math/wf_fmod.c (fmodf): Likewise.
11506         * libm/math/w_fmod.c (fmod): Likewise.
11507         * libm/math/wf_exp.c (expf): Likewise.
11508         * libm/math/w_exp.c (exp): Likewise.
11509         * libm/math/wf_cosh.c (coshf): Likewise.
11510         * libm/math/w_cosh.c (cosh): Likewise.
11511         * libm/math/wf_atanh.c (atanhf): Likewise.
11512         * libm/math/w_atanh.c (atanh): Likewise.
11513         * libm/math/wf_atan2.c (atan2f): Likewise.
11514         * libm/math/w_atan2.c (atan2): Likewise.
11515         * libm/math/wf_asin.c (asinf): Likewise.
11516         * libm/math/w_asin.c (asin): Likewise.
11517         * libm/math/wf_acosh.c (acoshf): Likewise.
11518         * libm/math/w_acosh.c (acosh): Likewise.
11519         * libm/math/wf_acos.c (asocf): Likewise.
11520         * libm/math/w_acos.c (acos): Likewise.
11521         * libm/math/wf_sqrt.c (sqrtf): Likewise.
11522         * libm/math/k_standard.c (_k_standard): Don't require SVID behavior
11523         for embedded systems.
11524
11525 Mon Dec  8 12:12:58 1997  Ian Lance Taylor  <ian@cygnus.com>
11526
11527         * libc/stdlib/mallocr.c (malloc_extend_top): Add patch from Doug
11528         Lea in case of a foreign sbrk.
11529
11530 Fri Dec  5 23:27:28 1997  Ian Lance Taylor  <ian@cygnus.com>
11531
11532         Incorporate Doug Lea's malloc:
11533         * libc/stdlib/mallocr.c: Completely replaced.
11534         * libc/stdlib/malloc.c: Document malloc_usable_size and memalign.
11535         (realloc): Remove.
11536         * libc/stdlib/calloc.c (calloc): Just call _calloc_r.
11537         * libc/stdlib/mstats.c: Document mallinfo, malloc_stats, and
11538         mallopt.
11539         (mallinfo, malloc_stats, mallopt): New functions.
11540         (_mstats_r): Just call _malloc_stats_r.
11541         * libc/stdlib/malign.c: New file.
11542         * libc/stdlib/mlock.c: New file.
11543         * libc/stdlib/msize.c: New file.
11544         * libc/stdlib/mtrim.c: New file.
11545         * libc/stdlib/realloc.c: New file.
11546         * libc/stdlib/valloc.c: New file.
11547         * libc/stdlib/malloc.h: Remove.
11548         * libc/stdlib/callocr.c: Remove.
11549         * libc/stdlib/Makefile.in (OFILES): Add cfreer.o, freer.o,
11550         malign.o, malignr.o, mallinfor.o, malloptr.o, mallstatsr.o,
11551         mlock.o, msize.o, msizer.o, mtrim.o, pvallocr.o, realloc.o,
11552         reallocr.o, valloc.o, vallocr.o.
11553         (CHEWOUT_FILES): Add mlock.def, mstats.def.
11554         (MALLOC_CFLAGS): New variable.
11555         (mallocr.o): New target, build from mallocr.c.
11556         (freer.o, reallocr.o, callocr.o, cfreer.o, malignr.o): Likewise.
11557         (vallocr.o, pvallocr.o, mallinfor.o, mallstatsr.o): Likewise.
11558         (msizer.o, malloptr.o): Likewise.
11559         (malign.o, mlock.o, msize.o, mtrim.o, realloc.o): New targets.
11560         (valloc.o): New target.
11561         * libc/stdlib/stdlib.tex: Include mlock.def and mstats.def.
11562         * libc/include/malloc.h: Declare struct mallinfo, and new
11563         routines.
11564         * libc/include/stdlib.h (cfree): Correct declaration.
11565
11566 Tue Dec  2 10:12:16 1997  Nick Clifton  <nickc@cygnus.com>
11567
11568         * libc/include/machine/setjmp.h: Add support for Thumb target.
11569
11570         * libc/include/machine/ieeefp.h: Add support for Thumb target.
11571
11572         * configure.in (links): Add support for Thumb target.
11573
11574 Wed Nov 26 09:56:17 1997  Nick Clifton  <nickc@cygnus.com>
11575
11576         * libc/sys/arm/setjmp.S: Updated with version from branch.
11577
11578 Thu Nov 20 01:21:43 1997  Geoffrey Noer  <noer@cygnus.com>
11579
11580         * libc/include/stdio.h: add POSIX-required define L_ctermid
11581         for ctermid
11582
11583 Wed Nov 19 16:11:40 1997  Michael Meissner  <meissner@cygnus.com>
11584
11585         * configure.in (d30v-*-*): Define ABORT_MESSAGE, SMALL_MEMORY, in
11586         addition to MISSING_SYSCALL_NAMES.
11587
11588 Mon Nov 17 20:05:05 1997  J"orn Rennecke <amylaar@cygnus.co.uk>
11589
11590         * libc/include/sys/config.h: (UINT_MAX, for D10V):  Make unsigned.
11591
11592 Mon Nov 10 22:26:55 1997  Geoffrey Noer  <noer@cygnus.com>
11593
11594         * libc/include/string.h: change strsignal proto to return
11595         a char *.  This eliminates compile problems in gdb resulting
11596         from gdb's definition of strsignal in defs.h.
11597
11598 Mon Nov 10 17:11:08 1997  Geoffrey Noer  <noer@cygnus.com>
11599
11600         * libc/sys/cygwin32/sys/utime.h: new (moved here from
11601         winsup/include) so as not to conflict with the one in
11602         libc/include.
11603         * libc/include/string.h: add protos for strsignal, strtosigno
11604
11605 Mon Nov 10 13:49:54 1997  Michael Meissner  <meissner@cygnus.com>
11606
11607         * libc/include/sys/config.h: Define __IEEE_BIG_ENDIAN if d30v.
11608
11609         * configure.in (d30v-*-*): Add configuration.
11610
11611 Thu Oct 30 14:01:23 1997  Nick Clifton  <nickc@cygnus.com>
11612
11613         * configure.in (links): Add -DARM_RD[P|I]_MONITOR to target_cflags
11614         to select which kind of debug monitor is in use for an ARM target.
11615
11616         * libc/sys/arm/crt0.S: New version: Supports Thumb startups and
11617         Angel and Demon debug monitors.  Part of this code was supplied by
11618         Tony Thompson at ARM: athompso@arm.com.
11619
11620 Fri Oct 24 18:57:05 1997  Jeffrey A Law  (law@cygnus.com)
11621
11622         * strncat.c (strncat): Don't call strncpy; strncay has the wrong
11623         semantics when the count is greater than the length of the second
11624         source string.
11625
11626 Thu Oct 23 01:37:41 1997  Geoffrey Noer  <noer@cygnus.com>
11627
11628         * libc/include/sys/signal.h: reorder CYGWIN32 signal numbers
11629         * libc/include/sys/unistd.h: add protos for usleep, truncate,
11630         truncate and ftruncate take off_t, not size_t
11631
11632 Tue Oct 21 18:42:00 1997  Jim Wilson  <wilson@cygnus.com>
11633
11634         * libc/string/strcat.c (strcat): Add missing comment end.
11635         * libc/string/strncat.c (strncat): Likewise.
11636
11637 Tue Oct 21 17:23:34 1997  Nick Clifton  <nickc@cygnus.com>
11638
11639         * configure.in (links): Define PREFER_SIZE_OVER_SPEED for v850
11640         targets. 
11641         * libc/string/{memchr.c, memcmp.c, memcpy.c}:   Add space
11642         optimised version which is selected if PREFER_SIZE_OVER_SPEED is
11643         defined.  
11644         * libc/string/{memset.c, strcat.c, strchr.c}: Likewise.
11645         * libc/string/{strcmp.c, strcpy.c, strlen.c}: Likewise.
11646         * libc/string/{strncat.c, strncmp.c, strncpy.c}: Likewise.
11647
11648 Mon Oct 13 15:12:35 1997  Ian Lance Taylor  <ian@cygnus.com>
11649
11650         * libc/include/sys/param.h (BIG_ENDIAN): Define if __i386__.
11651         (LITTLE_ENDIAN, BYTE_ORDER): Likewise.
11652
11653 Thu Oct  9 13:54:44 1997  Doug Evans  <dje@canuck.cygnus.com>
11654
11655         * libc/machine/i386/setjmp.S: New file.
11656         * libc/machine/i386/Makefile.in: Delete COPYOFILES.
11657         (OFILES): Add setjmp.o.
11658         (setjmp.o): Add rule for.
11659         * configure.in: Don't set machine_dir for *-*-{go32,sco*,cygwin32}.
11660
11661 Tue Oct  7 14:01:29 1997 Bill Moyer     (billm@cygnus.com)
11662                          Jeffrey A Law  (law@cygnus.com)
11663
11664         * libc/string/{memchr.c, memcmp.c, memcpy.c}: Reimplement to run faster.
11665         * libc/string/{memset.c, strcat.c, strchr.c}: Likewise.
11666         * libc/string/{strcmp.c, strcpy.c, strlen.c}: Likewise.
11667         * libc/string/{strncat.c, strncmp.c, strncpy.c}: Likewise.
11668
11669 Mon Oct  6 14:07:59 1997  Nick Clifton  <nickc@cygnus.com>
11670
11671         * libc/sys/sysnecv850/Makefile.in (crt0.o trap.o): Explicit
11672         rules. 
11673
11674         * libc/include/sys/config.h: Use __v850 to select v850
11675         endianness. 
11676
11677         * libc/include/machine/setjmp.h: Use __v850 to select v850 jump
11678         buffer size.
11679
11680         * libc/include/machine/ieeefp.h: Use __v850 to select v850
11681         endianness. 
11682
11683 Thu Sep 25 14:11:37 1997  Geoffrey Noer  <noer@cygnus.com>
11684
11685         * libc/stdlib/setenv.c: change unsetenv definition to match
11686         style of setenv (with _DEFUN).  The string should be a const.
11687         * libc/include/stdlib.h: unsetenv proto should return void.
11688
11689 Tue Sep 23 18:17:20 1997  Geoffrey Noer  <noer@cygnus.com>
11690
11691         * libc/include/stdlib.h: define unsetenv proto for __CYGWIN32__
11692
11693 Thu Sep 18 12:50:15 1997  Angela Marie Thomas (angela@cygnus.com)
11694
11695         * libc/stdio/glue.h: remove.
11696         * libc/stdio/findfp.c, libc/stdio/fwalk.c: remove #include "glue.h"
11697         * libc/stdio/Makefile.in: remove glue.h dependencies
11698
11699 Wed Sep 17 17:42:27 1997  Nick Clifton  <nickc@cygnus.com>
11700
11701         * libc/sys/sysnecv850/crt0.S: Created V850e version.
11702         
11703 Tue Sep  9 10:40:57 1997  Doug Evans  <dje@canuck.cygnus.com>
11704
11705         * configure.in (target_cpu): Add `arc'.
11706
11707 Tue Sep  9 10:40:42 1997  Joel Sherrill  <joel@OARcorp.com>
11708
11709         * newlib/configure.in (*-*-rtems*): Add -DSIGNAL_PROVIDED and 
11710           -DREENTRANT_SYSCALLS_PROVIDED to the target_cflags.
11711         * newlib/libc/include/sys/errno.h: Add ENOTSUP.
11712         * newlib/libc/reent/reent.c: Add _wrapup_reent.
11713         * newlib/libc/sys/rtems/sys/types.h: Avoid redefinitions for go32.
11714
11715 Sun Sep  7 16:41:41 1997  Gavin Koch  <gavin@cygnus.com>
11716
11717         * libc/machine/mips/setjmp.S: Handle mips16 builds.
11718
11719 Thu Aug 21 20:05:38 1997  Ian Lance Taylor  <ian@cygnus.com>
11720
11721         * libc/include/stdio.h (siprintf): Declare.
11722
11723 Mon Aug 18 11:19:13 1997  Nick Clifton  <nickc@cygnus.com>
11724
11725         * libc/sys/sysnecv850/Makefile.in (.c.o): Add rule that includes
11726         TARGET_CFLAGS and NEWLIB_FLAGS.
11727
11728 Mon Aug 18 11:15:43 1997  Nick Clifton  <nickc@cygnus.com>
11729
11730         * configure.in (links): Add support for v850ea target.
11731
11732 Mon Aug 18 11:15:43 1997  Nick Clifton  <nickc@cygnus.com>
11733
11734         * configure.in (links): Add support for v850e target.
11735
11736 Wed Aug 13 19:16:54 1997  Nick Clifton  <nickc@cygnus.com>
11737
11738         * libc/sys/sysnecv850/crt0.S: Remove initial setting of r0 to 0.
11739
11740 Mon Aug 11 15:49:54 1997  Doug Evans  <dje@canuck.cygnus.com>
11741
11742         * configure.in (arc-*-*): Add support for.
11743         * libc/include/machine/ieeefp.h (__arc__): Add support for the ARC.
11744
11745 Fri Jul 25 17:37:41 1997  J"orn Rennecke <amylaar@cygnus.co.uk>
11746
11747         * libc/sys/sh/crt0.S (start): Add fpscr initialization for SH4.
11748
11749 Thu Jul 24 18:32:17 1997  Geoffrey Noer  <noer@cygnus.com>
11750
11751         * libc/stdlib/bsearch.c (bsearch): remove last unneeded
11752         comparison which accesses invalid memory when the key is
11753         larger than the last member of the array.
11754         * libc/include/machine/setjmp.h: add sigsetjmp, siglongjmp
11755         for CYGWIN32
11756         * libc/include/sys/unistd.h: add _POSIX defines for CYGWIN32
11757
11758 Tue Jul 22 16:03:06 1997  Ian Lance Taylor  <ian@cygnus.com>
11759
11760         * libc/include/stdlib.h (realpath): Declare if __CYGWIN32__ and
11761         not _STRICT_ANSI.
11762
11763 Thu Jul 10 15:11:52 1997  Doug Evans  <dje@canuck.cygnus.com>
11764
11765         * libm/math/k_standard.c (__kernel_standard): Call fflush(stdout)
11766         ifndef _USE_WRITE, instead of ifdef _USE_WRITE.
11767
11768 Thu Jul 10 16:00:09 1997  Mike Meissner  <meissner@cygnus.com>
11769
11770         * libc/machine/tic80/setjmp.S (setjmp,longjmp): Use ld.d and st.d
11771         to load/store memory.
11772
11773 Mon Jul  7 17:38:17 1997  Ian Lance Taylor  <ian@cygnus.com>
11774
11775         * libc/include/sys/fcntl.h: Define _O_* symbols with leading
11776         underscores if _WIN32.
11777
11778 Wed Jul  2 10:07:20 1997  Doug Evans  <dje@canuck.cygnus.com>
11779
11780         * libm/math/k_standard.c (__kernel_standard): Delete reentrancy
11781         support ifdef _USE_WRITE missed in last change.
11782         From Anders Blomdell <anders.blomdell@control.lth.se>.
11783
11784 Wed Jun 25 10:18:49 1997  Doug Evans  <dje@canuck.cygnus.com>
11785
11786         * libc/stdio/tmpnam.c (worker): Handle _open_r being stubbed out.
11787         (_tmpnam_r, _tempnam_r): Update.
11788
11789 Wed Jun 25 00:16:55 1997  Mark Alexander  <marka@cygnus.com>
11790
11791         * libc/machine/sparc/setjmp.S: New file.
11792         * libc/machine/sparc/Makefile.in: Add setjmp.
11793         * libc/include/machine/setjmp.h: Increase jmpbuf size for sparc.
11794
11795 Tue Jun 24 23:27:38 1997  Mark Alexander  <marka@cygnus.com>
11796
11797         * libc/include/machine/setjmp.h: Use __TIC80__ instead of __tic80__.
11798
11799 Tue Jun 24 14:53:40 1997  Doug Evans  <dje@canuck.cygnus.com>
11800
11801         From Joel Sherrill <joel@oarcorp.com>.
11802         * libc/stdlib/getenv.c (_findenv): Avoid dereferencing null `environ'.
11803
11804         Add rtems support.  From Joel Sherrill <joel@oarcorp.com>.
11805         * configure.in: Recognize *-*-rtems*.
11806         * libc/sys/rtems/{Makefile.in,crt0.c,dummysys.c}: New files.
11807         * libc/sys/rtems/sys/{features.h,sched.h,siginfo.h,signal.h,
11808         time.h,times.h,types.h}: New files.
11809         * libc/sys/rtems/include/{limits.h,signal.h,time.h}. New files.
11810
11811 Fri Jun 20 11:13:16 1997  Geoffrey Noer  <noer@cygnus.com>
11812
11813         patch from sos@prospect.com.ru (Sergey Okhapkin):
11814         * include/sys/wait.h: correct operator precidence bug
11815         in WIFSIGNALED
11816
11817 Wed Jun 18 22:08:27 1997  Geoffrey Noer  <noer@cygnus.com>
11818
11819         * libc/include/stdlib.h: remove unsetenv proto since it conflicts
11820         with newlib's unsetenv function
11821         * libc/sys/cygwin32/sys: new directory for includes
11822         * libc/sys/cygwin32/sys/dirent.h: move cygwin32's dirent.h
11823         here from winsup/include/sys
11824
11825 Mon Jun 16 21:02:22 1997  Geoffrey Noer  <noer@cygnus.com>
11826
11827         * libc/include/sys/unistd.h: _exit should only be
11828         labelled noreturn when not __CYGWIN32__
11829         * libc/include/stdlib.h: for __CYGWIN32__, add proto for unsetenv
11830         * libc/include/sys/signal.h: add SIGIO to _WIN32 list and
11831         increment NSIG
11832
11833 Thu Jun 12 18:52:41 1997  Ian Lance Taylor  <ian@cygnus.com>
11834
11835         * libc/include/sys/time.h: Only define timeval and timezone if
11836         _GNU_H_WINDOWS32_SOCKETS is not defined.
11837         * libc/include/sys/stat.h: If _WIN32, define _S_IFMT, etc.
11838
11839 Wed Jun 11 09:46:26 1997  Jeffrey A Law  (law@cygnus.com)
11840
11841         * libc/machine/mn10200/setjmp.S: Implement setjmp/longjmp
11842         * libc/machine/mn10300/setjmp.S: Likewise.
11843
11844         * libc/sys/sysmec/crt0.S: Use "call" instead of "calls" for
11845         the mn10300 (more relaxing opportunities).
11846
11847 Tue Jun 10 17:24:45 1997  Mike Meissner  <meissner@cygnus.com>
11848
11849         * configure.in (powerpc*-*-{eabi,elf,linux,rtems,sysv,solaris}):
11850         Build libraries with -mstrict-align.
11851
11852 Fri Jun  6 14:07:59 1997  Ian Lance Taylor  <ian@cygnus.com>
11853
11854         * libc/string/strlwr.c: New file.
11855         * libc/string/strupr.c: New file.
11856         * libc/include/string.h: Declare strlwr and strupr.
11857         * libc/string/Makefile.in (OFILES): Add strlwr.o and strupr.o.
11858         (CHEWOUT_FILES): Add strlwr.def and strupr.def.
11859         (strlwr.o, strupr.o): New targets.
11860         * libc/string/strings.tex: Include strlwr and strupr docs.
11861
11862         * libc/include/sys/types.h: Don't define u_char, et. al., if
11863         _GNU_H_WINDOWS32_SOCKETS is defined.  Likewise for fd_set,
11864         et. al.  Make FD_SETSIZE default 64 rather than 60.  Define
11865         _types_fd_set rather than fd_set, and define fd_set as a macro.
11866
11867         * libc/include/malloc.h: New file.
11868
11869         * libc/include/string.h: Define strcmpi, stricmp, strncmpi, and
11870         strnicmp if they are not already defined.
11871
11872         * libc/include/time.h: If __CYGWIN32__, declare tzset and define
11873         _timezone, _daylight, and _tzname.
11874
11875 Wed Jun  4 12:51:16 1997  Doug Evans  <dje@canuck.cygnus.com>
11876
11877         * configure.in: Sort all configuration tables.
11878
11879         From Joel Sherrill <joel@oarcorp.com>
11880         * Makefile.in (stmp-targ-include): Copy $(sys_dir)/include/*.h.
11881
11882 Tue Jun  3 14:47:46 1997  Ian Lance Taylor  <ian@cygnus.com>
11883
11884         * libc/include/sys/signal.h: Don't include <sys/types.h>.  Just
11885         use int when declaring kill.
11886
11887         * libc/include/sys/timeb.h: New file.
11888
11889 Mon Jun  2 12:06:58 1997  Geoffrey Noer  <noer@cirdan.cygnus.com>
11890
11891         * libc/include/sys/time.h: add itimer support for Cygwin32
11892
11893 Mon May 19 11:56:46 1997  Mike Meissner  <meissner@cygnus.com>
11894
11895         * libc/stdlib/abort.c (abort): If ABORT_MESSAGE is defined, write
11896         out a message that abort was called to stderr.
11897
11898 Fri May 16 15:02:59 1997  Bob Manson  <manson@charmed.cygnus.com>
11899
11900         * libc/sys/sysmec/fstat.c (_fstat): Set st_blksize to 4096
11901         so that libio doesn't freak.
11902
11903         * libc/sys/sysmec/sbrk.c (_sbrk): The argument is a size_t, not
11904         int.
11905
11906         * libc/stdlib/mallocr.c (_morecore_r): Use size_t for
11907         memory sizes, not int.
11908
11909 Wed May 14 21:16:58 1997  Bob Manson  <manson@charmed.cygnus.com>
11910
11911         * libm/math/ef_hypot.c: Use long constants where
11912         appropriate.
11913         * libm/math/ef_sqrt.c: Ditto.
11914
11915         * libc/sys/sysmec/times.c(_times): Change to times.
11916
11917         * libc/sys/sysmec/read.c(_read): The third argument is
11918         size_t.
11919         * libc/sys/sysmec/write.c (_write): Ditto.
11920
11921         * libc/sys/sysmec/lseek.c: Include unistd.h for off_t.
11922         (_lseek): It's off_t for the second argument.
11923
11924 Wed May 14 15:23:36 1997  Mike Meissner  <meissner@cygnus.com>
11925
11926         * libc/include/sys/config.h (__IEEE_LITTLE_ENDIAN): Define here,
11927         as well as machine/ieeefp.h.
11928
11929 Thu May  8 15:47:25 1997  Geoffrey Noer  <noer@cygnus.com>
11930
11931         * libc/include/sys/signal.h: add signal protos for winsup
11932         functions (when __CYGWIN32__), include types.h
11933         * libc/include/sys/types.h: Change __go32_types__ internal
11934         define to __MS_types__ since it's used for more than just
11935         GO32 configs.  Define this if GO32, __MSDOS__, or _WIN32 are
11936         defined.
11937         * libc/include/sys/unistd.h: add ftruncate proto for
11938         winsup functions (when __CYGWIN32__)
11939
11940 Fri Apr 25 10:10:16 1997  Doug Evans  <dje@canuck.cygnus.com>
11941
11942         * libc/sys/h8300hms/sbrk.c (stack_ptr): Add definition.
11943
11944 Thu Apr 24 15:46:51 1997  Mike Stump  <mrs@cygnus.com>
11945
11946         * libc/include/machine/setjmp.h: Add tic80 support.
11947         * libc/machine/tic80/setjmp.S: Likewise.
11948
11949 Tue Apr 22 16:54:40 1997  Geoffrey Noer  <noer@pizza.cygnus.com>
11950
11951         * libc/sys/cygwin32/crt0.c: Add reference to main() so we can
11952         link programs from libraries only (such as in the X11
11953         distribution)
11954
11955 Mon Apr 21 15:02:12 1997  Fred Fish  <fnf@cygnus.com>
11956
11957         * libc/sys/arm/syscalls.c (signal): Remove stub, signal()
11958         supplied elsewhere in newlib.
11959
11960 Mon Apr 14 16:25:55 1997  Ian Lance Taylor  <ian@cygnus.com>
11961
11962         * Makefile.in (INSTALL): Change install.sh to install-sh.
11963
11964 Fri Apr 11 17:04:02 1997  Jason Molenda  (crash@godzilla.cygnus.co.jp)
11965
11966         * README: update WWW address for on-line documentation.
11967
11968 Wed Apr  9 00:38:13 1997  Geoffrey Noer  <noer@cygnus.com>
11969
11970         * libc/include/sys/signal.h: for _WIN32, define SIGCONT and
11971         increment NSIG
11972
11973 Mon Apr  7 23:54:00 1997  Jeffrey A Law  (law@cygnus.com)
11974
11975         * libc/sys/sysmec/crt0.S: Update for new calling conventions on the
11976         mn10300.
11977         * libc/sys/sysmec/trap.S: Don't compare a register to itself.
11978
11979 Tue Mar 25 08:47:43 1997  Jeffrey A Law  (law@cygnus.com)
11980
11981         * libc/sys/arm/syscalls.c: Fix/add stack/heap collision detection.
11982         * libc/sys/d10v/syscalls.c: Likewise.
11983         * libc/sys/h8300hms/sbrk.c: Likewise.
11984         * libc/sys/h8500hms/syscalls.c: Likewise.
11985         * libc/sys/m88kbug/syscalls.c: Likewise.
11986         * libc/sys/sh/syscalls.c: Likewise.
11987         * libc/sys/sysmec/sbrk.c: Likewise.
11988         * libc/sys/sysnecv850/sbrk.c: Likewise.
11989         * libc/sys/w65/syscalls.c: Likewise.
11990         * libc/sys.tex: Update sbrk sample code to include stack/heap collision.
11991
11992 Tue Mar 18 14:14:34 1997  Jeffrey A Law  (law@cygnus.com)
11993
11994         * libc/sys/sysmec/trap.S: Use "syscall" to trigger an
11995         emulated syscall instead of "trap".
11996
11997 Fri Mar 14 11:26:13 1997  Michael Meissner  <meissner@cygnus.com>
11998
11999         * libc/sys/d10v/trap.S (__trap0): Use trap 15 for system calls,
12000         not trap 0.
12001
12002 Sun Mar  9 23:27:04 1997  Doug Evans  <dje@seba.cygnus.com>
12003
12004         * configure.in (m32r-*-*): Add -msdata=sdata to target_cflags.
12005
12006 Sat Mar  8 09:05:01 1997  Fred Fish  <fnf@cygnus.com>
12007
12008         * libc/machine/arm/Makefile.in: Fix comment, is for "arm"
12009         not "sh".
12010         * libc/machine/m32r/Makefile.in: Fix comment, is for "m32r"
12011         not "d10v".
12012         * libc/sys/tic80/crt0.c: New file for TIc80.
12013         * libc/sys/tic80/Makefile.in: New file for TIc80.
12014         * libc/machine/tic80/Makefile.in: New file for TIc80.
12015
12016 Wed Mar  5 11:32:12 1997  J.T. Conklin  <jtc@cygnus.com>
12017
12018         * libc/machine/sh/memcpy.S: New file.
12019         * libc/machine/sh/memset.S: New file.
12020         * libc/machine/sh/Makefile.in (OFILES): Add memcpy.o and memset.o
12021
12022 Thu Feb 27 16:27:55 1997  Fred Fish  <fnf@cygnus.com>
12023
12024         * libc/include/machine/ieeefp.h (_IEEE_LITTLE_ENDIAN): Define
12025         for TIc80.
12026
12027 Wed Feb 26 13:43:39 1997  Jeffrey A Law  (law@cygnus.com)
12028
12029         * libc/sys/sysmec/crt0.S: Handle new calling conventions for
12030         the mn10200.
12031
12032 Wed Feb 26 07:11:03 1997  Michael Meissner  <meissner@cygnus.com>
12033
12034         * libc/machine/powerpc/setjmp.S (longjmp): Correct return status
12035         (patch from andrew@pogo.WV.TEK.COM).
12036
12037 Fri Feb 14 11:49:28 1997  Doug Evans  <dje@canuck.cygnus.com>
12038
12039         * libc/machine/m32r/setjmp.S (setjmp): Save r12.
12040         (longjmp): Restore r12. Fix code that handles returning 1 if passed 0.
12041
12042 Mon Feb 10 10:02:34 1997  Fred Fish  <fnf@cygnus.com>
12043
12044         * configure.in:  Add cases for "tic80" to set machine_dir,
12045         sys_dir, and syscall_dir.
12046
12047 Sun Feb  2 17:57:15 1997  Geoffrey Noer  <noer@cygnus.com>
12048
12049         * libc/sys/cygwin32/crt0.c: initialize floating pt registers
12050
12051 Wed Jan 29 15:57:38 1997  Geoffrey Noer  <noer@cygnus.com>
12052
12053         * libc/include/math.h: avoid conflicts with ANSI C++ <exception>
12054
12055 Mon Jan 27 12:50:01 1997  Doug Evans  <dje@seba.cygnus.com>
12056
12057         * libc/machine/m32r/setjmp.S: Use proper comment delimiter.
12058         Use proper constant prefix.
12059
12060 Fri Jan 24 10:59:04 1997  Jeffrey A Law  (law@cygnus.com)
12061
12062         * libc/sys/sysmec/*.c: Don't cast args to syscall to integers,
12063         that loses on the mn10200 where ints and pointers are different
12064         sizes.
12065
12066 Tue Jan 14 13:29:55 PST 1997  Jeremy Allison <jra@cygnus.com>
12067
12068         * configure.in: Added -DSIGNAL_PROVIDED to cygwin32
12069         target as signal is provided in winsup.
12070
12071 Tue Jan 14 11:10:13 1997  Jeremy Allison <jra@cygnus.com>
12072
12073         * libc/include/sys/process.h: Corrected const definitions
12074         in spawn functions. Added cwait.
12075
12076 Thu Jan  2 12:22:41 1997  Jeffrey A Law  (law@cygnus.com)
12077
12078         * libc/include/machine/ieeefp.h: mn10200 uses 16bit ints and 32bit
12079         doubles.
12080         * libc/include/sys/config.h: Similarly.
12081
12082 Tue Dec 31 18:36:14 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
12083
12084         * configure.in (sparc-sun-sunos*): Add -DSIGNAL_PROVIDED to the
12085         target_cflags.
12086         (i[3456]86-*-sco*): Ditto.
12087
12088         * libc/signal/Makefile.in (OFILES): Add signal.o.
12089         (CFILES): Add signal.c.
12090
12091         * libc/signal/raise.c (_raise_r): Only compile code if
12092         SIGNAL_PROVIDED is defined.
12093
12094         * libc/signal/signal.c: Redo whole file so that it works with
12095         current newlib.  Use _kill_r if no signal handler provided.
12096
12097         * libc/sys/{go32,sparc64,sysmec}/Makefile.in: Delete raise and
12098         signal stubs.
12099         * libc/sys/sysvnecv70/Makefile.in: Ditto.
12100         * libc/sys/sysnecv850/Makefile.in: Ditto.
12101
12102         * libc/sys/{go32,sparc64}/signal.c: Delete, stub no longer used.
12103         * libc/sys/sysmec/{raise,signal}.c: Ditto.
12104         * libc/sys/sysvnecv70/signal.s: Ditto.
12105         * libc/sys/sysnecv850/raise.c: Ditto.
12106
12107         * libc/sys/sysnecv850/kill.c (_kill): Encode signal # so that
12108         simulator and debugger can tell the difference between a signal
12109         being raised and an exit system call.
12110
12111         * NEWS: Document software signals being provided.
12112
12113 Mon Dec 23 11:54:19 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
12114
12115         * libc/reent/impure.c (_REENT_ATTR): Delete in favor of
12116         __ATTRIBUTE_IMPURE_PTR__.  Move PowerPC definition to
12117         include/sys/config.h.
12118         (impure_data): Use __ATTRIBUTE_IMPURE_DATA__ for attributes.
12119         Change from 'inpure_data'.
12120         (_impure_ptr): Use __ATTRIBUTE_IMPURE_PTR__ for attributes.  Use
12121         &impure_data, not &inpure_data.
12122
12123         * libc/include/sys/config.h (__ATTRIBUTE_IMPURE_PTR__): If PowerPC
12124         and and System V ABI, define so that _impure_ptr lives in the
12125         .sdata section.
12126
12127 Sun Dec 22 23:33:05 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
12128
12129         * libc/include/sys/reent.h (__ATTRIBUTE_IMPURE_PTR__): Define as
12130         nothing if not defined.
12131         (_impure_ptr): Use __ATTRIBUTRE_IMPURE_PTR__, so a machine can set
12132         its attributes.
12133
12134         * libc/include/sys/config.h (__ATTRIBUTE_IMPURE_PTR__): 
12135
12136 Wed Dec 18 10:12:04 1996  Jeffrey A Law  (law@cygnus.com)
12137
12138         * libc/sys/sysmec/crt0.S: Fix mn10200 stuff.
12139         * libc/sys/sysmec/trap.s: Handle mn10200 too.
12140         * libc/machine/mn10200/setjmp.S: Fix mn10200 stuff.
12141
12142 Mon Dec 16 10:05:36 1996  Jeffrey A Law  (law@cygnus.com)
12143
12144         * libc/sys/sysmec/crt0.S: Handle mn10200 too.
12145
12146 Fri Dec 13 11:05:20 1996  Jeremy Allison <jra@cygnus.com>
12147
12148         * libc/include/sys/errno.h: Added net errno's.
12149
12150 Wed Dec 11 16:24:25 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
12151
12152         * libc/misc/ffs.c: New file to support ffs function for GCC test
12153         gcc.c-torture/execute/960909-1.c.
12154
12155         * libc/misc/Makefile.in ({O,CHEWOUT_}FILES): Add ffs.
12156
12157 Sat Dec  7 10:12:37 1996  Jeffrey A Law  (law@cygnus.com)
12158
12159         * libc/sys/sysmec/crt0.S: Handle underscore prefix.
12160         * libc/sys/sysmec/trap.S: Likewise.
12161
12162 Fri Dec  6 15:08:49 1996  Jim Wilson  <wilson@cygnus.com>
12163
12164         * configure.in (mips*vr4300*-*-*): Delete use of sys/vr4300.
12165         * libc/sys/vr4300/{Makefile.in,crt0.S,syscalls.c}: Delete.
12166
12167 Wed Dec  4 16:25:27 1996  Jeffrey A Law  (law@cygnus.com)
12168
12169         * libc/sys/sysmec/signal.c: Dummy file.
12170         * libc/sys/sysmec/Makefile.in: Build it.
12171
12172 Wed Nov 27 13:10:18 1996  Ian Lance Taylor  <ian@cygnus.com>
12173
12174         * libc/machine/mips/machine/regdef.h: Define pc as $pc for
12175         mips16.
12176
12177 Mon Nov 25 09:58:28 1996  Jeffrey A Law  (law@cygnus.com)
12178
12179         * libc/sys/sysmec/{crt0.S,trap0.S}: Actually try to implement
12180         c-startup and simulator traps.
12181
12182
12183         * libc/sys/sysmec/crt0.S: Remove bogus '_' symbol prefixing
12184         * libc/sys/sysmec/trap0.S: Likewise.
12185
12186 Sat Nov 23 09:01:03 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
12187
12188         * libc/stdlib/mallocr.c (ROUND_TO): If SMALL_MEMORY, set to 0x7 to
12189         round to double word alignment.
12190         (_morecore_r): Combine rounding up pointers to both ROUND_TO and 8
12191         byte alignment.
12192
12193         * libc/include/sys/config.h (__IEEE_BIG_ENDIAN): Define if d10v.
12194
12195         * libc/sys/d10v/syscalls.c (_sbrk): Add better checks for running
12196         out of memory.
12197
12198 Mon Nov 18 13:08:26 1996  Jeffrey A Law  (law@cygnus.com)
12199
12200         * configure.in: Handle mn10200 and mn10300.
12201         * libc/include/machine/{ieeefp.h,setjmp.h}: Likewise.
12202         * libc/include/sys/config.h: Likewise.
12203         * libc/sys/sysmec: New directory for mec stuff.
12204         * libc/machine/mn10300: New directory for mn10300 stuff.
12205         * libc/machine/mn10200: Similarly for mn10200 stuff.
12206
12207 Fri Nov 15 16:41:41 1996  Doug Evans  <dje@canuck.cygnus.com>
12208
12209         * libc/sys/arm/crt0.S: Use .text, not .section .text.
12210         * libc/sys/arm/syscalls.c: Rewrite to set errno properly.
12211
12212         * libc/include/sys/types.h (_ST_INT32): New macro, local to file.
12213         (nlink_t): Change type from unsigned int to unsigned short.
12214         (mode_t): Ensure size is 32 bits even if int is 16.
12215         * libc/include/sys/stat.h (st_nlink): Change type to nlink_t.
12216         (st_spare[123]): Change type from int to long.
12217
12218 Fri Nov 15 11:41:50 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
12219
12220         * libc/sys/d10v/syscalls.c (_sbrk): Align initial heap_end to 8
12221         byte boundary.
12222
12223         * configure.in (d10v*): Define SMALL_MEMORY.
12224
12225 Mon Nov 11 10:30:44 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
12226
12227         * configure.in (powerpc*-{eabi,elf,linux,rtem,sysv,solaris}*): Add
12228         -mrelocatable-lib and -mno-eabi flags.
12229
12230 Mon Nov 11 09:01:39 1996  Jeffrey A Law  (law@cygnus.com)
12231
12232         * libc/machine/h8300/memcpy.S: Fix comments to reflect reality.
12233         Fix handling of mis-aligned source operand when both the
12234         destination & length are properly aligned.
12235         
12236 Wed Oct 30 09:41:11 1996  Jeffrey A Law  (law@cygnus.com)
12237
12238         * libc/sys/sysnecv850/Makefile.in (OFILES): Add
12239         times.o, time.o and gettime.o
12240         * libc/sys/sysnecv850/{time.c, times.c, gettime.c}: New files.
12241         * libc/sys/sysnecv850/sys/syscall.h: Add SYS_times and
12242         SYS_gettimeofday.
12243
12244 Tue Oct 29 13:40:09 1996  Jeffrey A Law  (law@cygnus.com)
12245
12246         * libc/sys/sysnecv850/Makefile.in (OFILES): Add access.o
12247         * libc/sys/sysnecv850/access.c: New file.
12248
12249 Mon Oct 21 19:47:02 1996  Ian Lance Taylor  <ian@cygnus.com>
12250
12251         * libc/sys/vr4300/Makefile.in (clean): Remove $(OFILES).
12252
12253         * libc/stdlib/mprec.h (word0, word1): Use __uint32_t, not unsigned
12254         long.
12255
12256 Mon Oct 21 14:43:07 1996  Jeffrey A Law  (law@cygnus.com)
12257
12258         * libc/sys/sysnecv850/crt0.S: Initialize ep and gp registers.
12259
12260 Thu Oct 17 11:47:16 1996  Doug Evans  <dje@seba.cygnus.com>
12261
12262         * libc/include/machine/{ieeefp.h,setjmp.h}: Add m32r support.
12263         * libc/include/sys/config.h: Add m32r support.
12264
12265 Wed Oct 16 23:08:05 1996  Jeffrey A Law  (law@cygnus.com)
12266
12267         * libc/sys/sysnecv850/v850.ld: Remove.  It doesn't belong
12268         here.
12269
12270 Wed Oct 16 21:18:07 1996  Mark Alexander  <marka@cygnus.com>
12271
12272         * libc/include/machine/setjmp.h: Add D10v support.
12273
12274 Tue Oct 15 22:28:26 1996  Jeffrey A Law  (law@cygnus.com)
12275
12276         * configure.in: Configure the "libc/syscalls" directory for
12277         the v850.
12278
12279         * libc/sys/sysnecv850/{close.c, execve.c, fork.c}: Add missing '_'.
12280         * libc/sys/sysnecv850/{fstat.c, getpid.c, kill.c}: Likewise.
12281         * libc/sys/sysnecv850/{lseek.c, open.c, read.c}: Likewise.
12282         * libc/sys/sysnecv850/{sbrk.c, stat.c, unlink.c}: Likewise.
12283         * libc/sys/sysnecv850/{wait.c, write.c}: Likewise.
12284
12285 Tue Oct 15 16:24:39 1996  Stu Grossman  (grossman@critters.cygnus.com)
12286
12287         * libc/sys/sysnecv850/crt0.S (start):  Allocate spill space on
12288         stack for args for main and other routines.  Zero out args for
12289         main.
12290
12291         * libc/sys/sysnecv850/v850.ld:  New.  Linker script to layout memory
12292         correctly.
12293
12294 Tue Oct 15 11:51:42 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
12295
12296         * libc/stdio/findfp.c (std): Remove extraneous ';' after
12297         function.
12298
12299         * libc/sys/d10v/sys/syscall.h (SYS_kill): Add.
12300
12301         * libc/sys/d10v/{syscalls.c,trap.S} (_kill,_getpid): Make these
12302         real system calls now.
12303
12304         * libc/stdio/setvbuf (setvbuf): Cast pointers to _POINTER_INT
12305         before casting them to int.
12306         * libc/stdio/tmpnam.c (_tempnam_r): Ditto.
12307
12308         * libc/stdlib/mallocr.c (_morecore_r): Use _POINTER_INT when
12309         aligning pointer.
12310         * libc/string/memset.c (memset): Ditto.
12311         
12312         * libc/stdio/vfscanf.c (__svfscanf): When converting to pointer,
12313         first convert ints to _POINTER_INT to eliminate GCC warning.
12314
12315         * libc/stdio/vfprintf.c (_vfprintf_r): Use _POINTER_INT when
12316         processing %p.
12317
12318         * libm/math/ef_scalb.c (__ieee754_scalbf): Cut down range to 32000
12319         from 65000 if ints are only 16 bits.
12320
12321         * libm/math/sf_scalbn.c (scalbnf): Cut down overflow test to 30000
12322         from 50000 if ints are only 16 bits.
12323
12324         * libc/include/sys/config.h (_POINTER_INT): New macro, to give an
12325         int type that is the same size as a pointer.
12326
12327         * libc/misc/dprintf.c (__dprintf): Use _POINTER_INT when
12328         processing %p.
12329         (get_number): Explicitly cast number to long before shifting by 16
12330         or 24, in case ints are short.
12331
12332         * libc/include/sys/config.h (_POINTER_INT): Define as short.
12333
12334 Wed Oct  9 16:54:32 1996  Jeremy Allison <jra@cygnus.com>
12335
12336         * libc/string.h: Added ffs, removed swab.
12337         * libc/sys/errno.h: Added EOPNOTSUPP.
12338         * libc/sys/unistd.h: Added swab.
12339
12340 Thu Oct  3 17:08:50 1996  Jeremy Allison <jra@cygnus.com>
12341
12342         * libc/include/sys/stat.h: Added fchmod.
12343         * libc/include/sys/unistd.h: Added fsync.
12344
12345 Tue Oct  1 17:34:08 1996  Jeremy Allison <jra@cygnus.com>
12346
12347         * libc/include/sys/errno.h: Added defines for EPFNOSUPPORT (96)
12348         and ECONNRESET (104) for cygwin32.
12349
12350 Tue Oct  1 16:24:05 1996  Gavin Koch  <gavin@cygnus.com>
12351
12352         * libc/sys/sysnecv850/_exit.c: added _do_dtors to
12353         do the static destructors.
12354         
12355 Mon Sep 30 15:59:05 1996  Stu Grossman  (grossman@critters.cygnus.com)
12356
12357         * libc/sys/sysnecv850/trap.S:  Change I/O to use trap 31.
12358
12359 Mon Sep 30 12:02:50 1996  Doug Evans  <dje@canuck.cygnus.com>
12360
12361         * libc/machine/m32r/{Makefile.in,setjmp.S}: New files.
12362         * configure.in: Recognize m32r-*-*.
12363
12364 Mon Sep 30 00:34:41 1996  James G. Smith  <jsmith@cygnus.co.uk>
12365
12366         * libc/sys/arm/trap.S (__rt_stkovf_split_big,
12367         __rt_stkovf_split_small): Added default software stack overflow
12368         handlers, which just call SWI_Exit.
12369         * libc/sys/arm/crt0.S (_mainCRTStartup): Simple software stack
12370         limit initialisation.
12371
12372 Fri Sep 27 13:08:03 1996  Mark Alexander  <marka@cygnus.com>
12373
12374         * libc/sys/d10v/{trap.S,sys/syscall.h}: Add time() function.
12375
12376 Fri Sep 27 12:32:00 1996  Jeremy Allison <jra@cygnus.com>
12377
12378         * libc/include/sys/types.h: Added ssize_t definition.
12379         
12380 Wed Sep 25 14:52:18 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
12381
12382         * libc/machine/d10v/setjmp.S: Use ';' for comments.
12383         * libc/sys/d10v/{crt0.S,trap.S}: Ditto.
12384
12385         * libc/machine/d10v/setjmp.S (longjmp): Use exef0t || instead of
12386         branch around a single ldi instruction.
12387
12388         * libc/sys/d10v/crt0.S (_start): Use auto-increment to zero bss.
12389         Call exit, instead of just issuing a stop instruction.
12390
12391 Sun Sep 22 17:26:55 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
12392
12393         * libc/sys/d10v/{trap.S,syscalls.c}: Add -mint32 support.
12394
12395 Fri Sep 20 13:23:12 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
12396
12397         * libc/stdlib/mprec.h: Explicitly declare all large constants as
12398         longs, and then cast them to __uint32_t.
12399
12400         * libc/include/sys/config.h: Protect against multiple inclusions.
12401
12402 Tue Sep 17 13:10:33 1996  Mark Alexander  <marka@cygnus.com>
12403
12404         * configure.in (d10v*): Set syscall_dir.
12405
12406 Sun Sep 15 10:41:59 1996  Mark Alexander  <marka@cygnus.com>
12407
12408         * libc/sys/d10v/crt0.S: Set stack pointer.
12409
12410 Thu Sep 12 13:02:38 1996  Mark Alexander  <marka@cygnus.com>
12411
12412         * libc/sys/d10v/{trap.S, syscalls.c}: Rewrite most system calls
12413         in assembly for efficiency.  Change calling convention to allow
12414         long ints to be returned.
12415
12416 Wed Sep 11 10:28:18 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
12417
12418         * libc/machine/v850/Makefile.in (setjmp.o): Fix dependency.
12419
12420 Thu Sep  5 19:23:06 1996  Doug Evans  <dje@canuck.cygnus.com>
12421
12422         * libc/posix/execvp.c (execvp): Don't search PATH if file has '/'.
12423         Handle empty entries in $PATH.
12424
12425 Tue Sep 03 18:15:02 1996  Mark Alexander  <marka@cygnus.com>
12426
12427         * libc/machine/d10v/setjmp.S: Make it really work.
12428
12429 Tue Sep  3 12:16:26 1996  Ian Lance Taylor  <ian@cygnus.com>
12430
12431         * libc/sys/sh/crt0.S: If __ELF__, use ELF section attributes for
12432         the .stack section.
12433
12434 Tue Sep  3 10:08:45 1996  Jeffrey A Law  (law@cygnus.com)
12435
12436         * sys/sysnecv850/sys/file.h: Remove.
12437         * sys/sysnecv850/sys/syscall.h: New file.
12438         * sys/sysnecv850/{misc.c,syscalls.c,malloc.c}: Deleted.
12439         * sys/sysnecv850/{chmod.c, chown.c, close.c, creat.c} New files.
12440         * sys/sysnecv850/{execv.c, execve.c, fork.c, fstat.c} New files.
12441         * sys/sysnecv850/{getpid.c, isatty.c, kill.c, lseek.c} New files.
12442         * sys/sysnecv850/{open.c, pipe.c, raise.c, read.c} New files.
12443         * sys/sysnecv850/{stat.c, unlink.c, utime.c, wait.c} New files.
12444         * sys/sysnec850/trap.S: New file.
12445         * sys/sysnecv850/{_exit.c, write.c}: Use new TRAP0 mechanism for
12446         syscalls.
12447         * sys/sysnecv850/crt0.S: Use cmp/bl, not tst/bz.
12448         * sys/sysnec850/sbrk.c: New version.
12449
12450 Sun Sep  1 20:08:27 1996  Jeffrey A Law  (law@cygnus.com)
12451
12452         * sys/sysnecv850/crt0.S: Fix order of comparison args.  Loop
12453         as long as r6 is less than r7.
12454
12455 Sun Sep  1 13:54:19 1996  Ian Lance Taylor  <ian@cygnus.com>
12456
12457         * Makefile.in (mostlyclean): Separate from clean target.  Don't
12458         remove *.a or targ-include.
12459         * libc/machine/sparc/Makefile.in (mostlyclean): New target.
12460
12461 Sun Sep  1 11:35:26 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
12462
12463         * libc/include/machine/ieeefp.h (_DOUBLE_IS_32BITS): Define for
12464         d10v.
12465         (__SMALL_BITFIELDS): Ditto.
12466
12467         * libc/include/sys/config.h (_DOUBLE_IS_32BITS): Define for d10v.
12468
12469 Sat Aug 31 16:42:36 1996  Jeffrey A Law  (law@cygnus.com)
12470
12471         * libc/sys/sysnecv850/misc.c (raise, getpid, kill): Remove '_'
12472         prefix.
12473
12474         * libc/sys/sysnecv850/sbrk.c (sbrk): Remove '_' prefix.
12475         * libc/sys/sysnecv850/syscalls.c (read, lseek, close): Likewise.
12476         * libc/sys/sysnecv850/syscalls.c (fstat, open, close): Likewise.
12477         * libc/sys/sysnecv850/write.c (write): Likewise.
12478
12479         * libc/sys/sysnecv850/crt0.S: Don't try to zero out an empty
12480         .bss.
12481
12482 Fri Aug 30 11:18:45 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
12483
12484         * libc/include/sys/config.h: Define INT_MAX, UINT_MAX
12485         appropriately for D10V, depending on -mint16/-mint32.
12486
12487 Thu Aug 29 16:09:37 1996  Mark Alexander  <marka@cygnus.com>
12488
12489         * configure.in: Add cases for D10V.
12490
12491 Thu Aug 29 17:03:23 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
12492
12493         * configure.in (i[345]86-*-*): Recognize i686 for pentium pro.
12494
12495 Wed Aug 28 21:05:52 1996  Jeffrey A Law  (law@cygnus.com)
12496
12497         * libc/include/machine/ieeefp.h: Fix typo.
12498
12499 Wed Aug 28 19:47:55 1996  Mark Alexander  <marka@cygnus.com>
12500
12501         * libc/sys/d10v: New directory for D10V stuff.
12502         * libc/include/machine/ieeefp.h: Add D10V defines.
12503
12504 Mon Aug 26 13:34:58 1996  Doug Evans  <dje@canuck.cygnus.com>
12505
12506         * libc/include/sys/errno.h: Add winsup/include/sys/errno.h values:
12507         ELOOP, ENOBUFS, EAFNOSUPPORT, EPROTOTYPE, ENOTSOCK, ENOPROTOOPT,
12508         ESHUTDOWN, ECONNREFUSED, EADDRINUSE, ECONNABORTED, EWOULDBLOCK.
12509         * libc/string/strerror.c (strerror): Add them.
12510
12511 Thu Aug 22 16:38:19 1996  Jeffrey A Law  (law@cygnus.com)
12512
12513         * libc/sys/sysnecv850: New directory for v850 stuff.
12514
12515         * libc/machine/v850: New directory for v850 stuff.
12516         * libc/machine/v850/setjmp.S: setjmp/longjmp support.
12517
12518         * configure.in: Add support for the v850.
12519
12520         * libc/include/machine/ieeefp.h: Add v850 defines.
12521         * libc/include/machine/setjmp.h: Likewise.
12522         * libc/include/sys/config.h: Add v850 defines.
12523
12524 Sat Aug 17 04:06:36 1996  Geoffrey Noer  <noer@cygnus.com>
12525
12526         * libc/include/machine/ieeefp.h
12527         * libc/include/machine/setjmp.h
12528         * libc/include/sys/fcntl.h
12529         * libc/include/sys/signal.h
12530         * libc/include/sys/types.h
12531         * libc/stdlib/system.c:
12532         Fix preprocessor defines to match new scheme (_WIN32 for WIN32
12533         API availability, __CYGWIN32__ for cygwin32 environment specific).
12534
12535 Thu Aug 15 17:09:21 1996  Geoffrey Noer  <noer@cygnus.com>
12536
12537         * libc/include/stdlib.h: add multibyte character functions.  Add
12538         __eprintf for assert.
12539
12540 Thu Aug 15 11:15:40 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
12541
12542         * libc/stdlib/malloc.h (MALLOC_ALIGNMENT): Use either pointer
12543         arithmetic or __alignof__ to properly get the alignment, instead
12544         of hardwiring it to 4.
12545
12546 Wed Aug 14 23:43:28 1996  Geoffrey Noer  <noer@cygnus.com>
12547
12548         * libc/stdio/fseek.c: add fflush call to adjust seek offset
12549         on append stream (fix from NetBSD sources), adjust curoff offset
12550         for ungetc's benefit.
12551         * libc/stdio/ftell.c: adjust curoff offset for ungetc's benefit.
12552         * libc/stdio/rewind.c: replace code with up to date NetBSD
12553         code to undo hacks made to work around above problem of not
12554         having fflush call mentioned above
12555
12556 Fri Aug  2 18:28:07 1996  J.T. Conklin  <jtc@rtl.cygnus.com>
12557
12558         * libc/reent/{closer.c, execr.c, fstatr.c, linkr.c, lseekr.c,
12559         openr.c, readr.c, sbrkr.c, signalr.c, statr.c, timer.c, writer.c}:
12560         Partially revert last changes.  The thread specific errno is set
12561         iff if the underlying syscall fails and the global errno is not
12562         zero.
12563
12564 Fri Jul 19 11:41:52 1996  J.T. Conklin  <jtc@rtl.cygnus.com>
12565
12566         * libc/reent/filer.c: Removed files, all functions have split out
12567         into their own files.
12568         * libc/reent/{closer.c, lseekr.c, openr.c, readr.c, writer.c}: 
12569         New files containing functions formally in filer.c
12570         * libc/reent/Makefile.in: Updated for above change.
12571
12572         * libc/reent/execr.c (_fork_r, _wait_r): Set errno if underlying
12573         syscall fails, not if errno is changed.
12574         * libc/reent/filer.c (_open_r, _close_r, _lseek_r, _read_r, 
12575         _write_r): Likewise.
12576         * libc/reent/fstatr.c (_fstat_r): Likewise.
12577         * libc/reent/linkr.c (_link_r, _unlink_r): Likewise.
12578         * libc/reent/sbrkr.c (_sbrk_r): Likewise.
12579         * libc/reent/signalr.c (_kill_r): Likewise.
12580         * libc/reent/statr.c (_stat_r): Likewise.
12581         * libc/reent/timer.c (_gettimeofday_r): Likewise.
12582
12583         * libc/reent/{execr.c, filer.c, fstatr.c, linkr.c, sbrkr.c,
12584         signalr.c, statr.c, timer.c} (errno): declare extern rather
12585         than as a common.
12586
12587         * libc/stdio/vfprintf.c (__sbprintf): Use the VFPRINTF macro
12588         instead of calling vfprintf so that i*printf will not require
12589         floating point support code.
12590         
12591 Mon Jul 15 16:50:59 1996  Doug Evans  <dje@canuck.cygnus.com>
12592
12593         * libc/posix/execvp.c (execvp): Use posix_path_list_p to determine
12594         path delimiter.
12595         * libc/include/sys/unistd.h (_SC_PATH_RULES): Delete.
12596         (_PATH_RULES_{UNKNOWN,WIN32,POSIX}): Delete.
12597
12598 Thu Jul 11 14:34:14 1996  Geoffrey Noer  <noer@cygnus.com>
12599
12600         * libc/include/signal.h: _sig_func_ptr function takes an int
12601         * libc/include/sys/signal.h: sa_handler function takes an int
12602
12603 Tue Jul  9 21:22:32 1996  Jeffrey A Law  (law@cygnus.com)
12604
12605         * libc/include/machine/ieeefp.h: Simplify H8/S support.
12606         * libc/include/sys/config.h: Add missing H8/S conditional.
12607
12608 Sun Jun 30 12:05:46 1996  Doug Evans  <dje@canuck.cygnus.com>
12609
12610         * libc/include/sys/unistd.h (MAXPATHLEN): Add cygwin32 value.
12611
12612 Wed Jun 26 09:57:54 1996  Jeffrey A Law  (law@cygnus.com)
12613
12614         * libc/include/machine/setjmp.h: Handle H8/S.
12615         * libc/include/machine/ieeefp.h: Likewise.
12616         * libc/include/sys/config.h: Likewise.
12617         * libc/machine/h8300/{defines.h, memcpy.S, memset.S}: Likewise.
12618         * libc/machine/h8300/{reg_memcpy.S, reg_memset.S}: Likewise.
12619         * libc/machine/h8300/{strcmp.S, setjmp.S}: Likewise.
12620         * libc/sys/h8300hms/crt0.S: Likewise.
12621
12622 Tue Jun 25 23:15:45 1996  Jason Molenda  (crash@godzilla.cygnus.co.jp)
12623
12624         * Makefile.in (datadir): Set to $(prefix)/share.
12625         (oldincludedir, docdir): Removed.
12626         * doc/Makefile.in (datadir): Set to $(prefix)/share.
12627         (oldincludedir, docdir): Removed.
12628         * libc/Makefile.in (datadir): Set to $(prefix)/share.
12629         (oldincludedir, docdir): Removed.
12630         * libm/Makefile.in (datadir): Set to $(prefix)/share.
12631         (oldincludedir, docdir): Removed.
12632
12633 Fri Jun 21 19:24:41 1996  Ian Lance Taylor  <ian@cygnus.com>
12634
12635         * libc/include/sys/reent.h (_REENT_INIT): Update for change to
12636         _reent struct.
12637
12638 Wed Jun 19 14:00:09 1996  Doug Evans  <dje@canuck.cygnus.com>
12639
12640         * libc/posix/execvp.c: Delete _WIN32 support.  For __CYGWIN32__
12641         fetch current path rules with sysconf and handler posix/win32
12642         appropriately.
12643
12644         * libc/include/sys/unistd.h (_PATH_RULES{,_POSIX,_WIN32}): Define.
12645
12646         * libc/include/process.h: Prepend '_' to P_{WAIT,NOWAIT,OVERLAY}.
12647         (WAIT_CHILD): Always define.
12648
12649 Sat Jun 15 17:50:42 1996  Ian Lance Taylor  <ian@cygnus.com>
12650
12651         * libc/stdlib/eprintf.c: New file.
12652         * libc/stdlib/Makefile.in (OFILES): Add eprintf.o.
12653         (eprintf.o): New target.
12654
12655 Thu Jun 13 16:44:32 1996  Doug Evans  <dje@canuck.cygnus.com>
12656
12657         * libc/sys/cygwin32/crt0.c (__cygwin_crt0_bp): New global.
12658         (mainCRTStartup): Do int3 if __cygwin_crt0_bp non-zero.
12659
12660 Thu Jun 13 17:45:17 1996  Mike Meissner  <meissner@rtl.cygnus.com>
12661
12662         * libc/include/machine/ieeefp.h: Add support for AIX and Windows
12663         NT in PowerPC endianess cases.
12664
12665 Tue Jun 11 12:26:28 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
12666
12667         * libc/include/machine/ieeefp.h: Clean up PowerPC endianess.
12668
12669 Thu Jun  6 11:34:20 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
12670
12671         * libc/string/strtok.c: Fix doc typo.
12672
12673 Mon Jun  3 11:30:00 1996  J.T. Conklin  <jtc@rtl.cygnus.com>
12674
12675         * libc/include/sys/reent.h (struct _reent): Removed _asctime,
12676         _next, _scanpoint, _signgam fields.
12677
12678         * libc/include/stdlib.h (rand_r): Added new declaration.
12679         (_rand_r, _srand_r): Removed declarations.
12680         * libc/stdlib/rand.c (_rand_r, _srand_r): Removed, these functions
12681         have been made obsolete by rand_r.
12682         * libc/stdlib/rand_r.c: New file, rand_r function as specified
12683         by POSIX.1c.
12684         
12685         * libc/string/strtok.c: Update documentation to describe
12686         strtok_r().
12687
12688 Sat Jun  1 23:50:39 1996  Michael Meissner  <meissner@cygnus.com>
12689
12690         * libc/include/sys/stat.h (stat structure): Use the expanded stat
12691         structure on Solaris, and PowerPC systems even though __svr4__ is
12692         defined.
12693
12694 Tue May 28 13:02:42 1996  Doug Evans  <dje@canuck.cygnus.com>
12695
12696         * libc/sys/go32/sys/errno.h (ENOSYS,ESPIPE): Keep values <= 255.
12697
12698 Fri May 17 10:34:44 1996  Ian Lance Taylor  <ian@cygnus.com>
12699
12700         * host/any: Use ../.. rather than .. to get to the main build
12701         directory.  This matches the current layout of the build
12702         directory.
12703
12704 Wed May 15 15:52:27 1996  Jeffrey A Law  (law@cygnus.com)
12705
12706         * libc/machine/h8300/__main.S: Delete.  No longer needed.
12707         * libc/machine/h8300/Makefile.in: Corresponding changes.
12708         * libc/sys/h8300hms/crt1.c: New file.
12709         * libc/sys/h8300hms/Makefile.in: Corresponding changes.
12710         * libc/sys/h8300hms/crt0.s: Call __main.
12711
12712         * libc/sys/h8300hms/crt0.S: Use temporary label names
12713         for branch targets.
12714
12715 Mon May 13 14:26:30 1996  Doug Evans  <dje@canuck.cygnus.com>
12716
12717         * libc/stdio/fopen.c (_fopen_r): Fix arguments to fseek.
12718
12719 Fri May  3 16:38:23 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
12720
12721         * libc/reent/impure.c (_impure_ptr): Force the impure pointer into
12722         .sdata on the PowerPC so that we can link newlib with code
12723         compiled with -msdata.
12724
12725 Mon Apr 29 21:38:02 1996  Doug Evans  <dje@canuck.cygnus.com>
12726
12727         * libc/sys/arm/syscalls.c (_sbrk): Rename end to __end__.
12728
12729 Thu Apr 25 06:38:59 1996  Michael Meissner  <meissner@cygnus.com>
12730
12731         * libc/sys/cygwin32/crt0.c (mainCRTStartup): On PowerPC, set the
12732         exception handler to __cygwin_exception_handler.
12733
12734 Tue Apr 23 15:14:20 1996  Ian Lance Taylor  <ian@cygnus.com>
12735
12736         * libc/include/machine/setjmp.h: Check _AM29K, not ___AM29K__.
12737
12738 Sun Apr 21 12:11:51 1996  Doug Evans  <dje@blues.cygnus.com>
12739
12740         * libm/math/Makefile.in ({w,wf}_cabs.o,{w,wf}_drem.o): Add rule for
12741         SunOS VPATH.
12742         * libc/stdlib/Makefile.in (atoff.o,atol.o,mblen.o,mbstowcs.o,
12743         wcstombs.o): Likewise.
12744
12745 Thu Apr 18 12:37:01 1996  Doug Evans  <dje@canuck.cygnus.com>
12746
12747         * libc/stdlib/environ.c (initial_env): New static local.
12748         (environ): Point to `initial_env'.
12749
12750         * libc/include/machine/setjmp.h: Clean up.
12751         (__H8300H__,__PPC__): Define _JBTYPE.
12752         (__arm__): Provide entry for.
12753         (sigjmp_buf): Delete.
12754         (jmp_buf): Use _JBTYPE if defined, otherwise int.
12755
12756 Thu Apr 18 12:10:52 1996  Jeffrey A Law  (law@cygnus.com)
12757
12758         * libc/machine/h8300/strcmp.S: Sign extend the result to
12759         32bits so we don't lose with -mint32.
12760
12761 Sun Apr 14 19:59:52 1996  Doug Evans  <dje@canuck.cygnus.com>
12762
12763         * libc/sys/go32/sys/errno.h: New file.
12764         * libc/sys/go32/Makefile.in (stat.o): Depend on stat.c.
12765         * libc/sys/go32/gerrno.s (syscall_error): Call __errno to get
12766         errno's address (make compatible with rest of newlib).
12767         * libc/sys/go32/stat.c (fixinode): Set errno upon failure.
12768         * libc/string/strerror.c (strerror): Surround each case with #ifdef.
12769
12770 Thu Mar 28 13:44:42 1996  Doug Evans  <dje@canuck.cygnus.com>
12771
12772         * libc/machine/sparc/{scan.c,shuffle.c}: New files.
12773         * libc/machine/sparc/Makefile.in: Build them.
12774         * libc/machine/sparc/machine/sparclet.h: New file.
12775
12776 Mon Mar 25 15:29:14 1996  J.T. Conklin  <jtc@rtl.cygnus.com>
12777
12778         * libc/machine/sh/asm.h: New file.
12779         * libc/machine/sh/setjmp.S: Only save clobbered registers.  Added
12780         support for SH3e's FP registers.  Use asm.h.
12781
12782 Mon Mar 25 11:59:23 1996  Jeffrey A Law  (law@cygnus.com)
12783
12784         * libc/stdio/vfprintf.c (cvt): Accept a reent structure
12785         as first argument.  Call _dtoa_r and pass the reent structure
12786         instead of calling __dtoa.
12787
12788 Fri Mar 22 13:59:37 1996  Jeffrey A Law  (law@cygnus.com)
12789
12790         * libc/include/sys/config.h: Define DOUBLE_IS_32BITS for
12791         the h8300, h8500, and others.  Add comments for some rather
12792         dubious code.
12793
12794 Thu Mar 14 18:04:43 1996  Ian Lance Taylor  <ian@cygnus.com>
12795
12796         * Makefile.in (check): Check that testsuite exists before cd.
12797
12798 Tue Mar 12 11:46:47 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
12799
12800         * libc/include/string.h (strsep): Correct prototype.
12801
12802 Mon Mar 11 09:55:19 1996  Doug Evans  <dje@charmed.cygnus.com>
12803
12804         * libc/sys/h8300/_exit.c (_exit,__exit): Set r0 to 0 before `sleep'.
12805         * libc/sys/h8300/misc.c (_kill): Set r0 to indicate abort and `sleep'.
12806         * libc/sys/h8300/crt0.S (_start): Call exit instead of `sleep'.
12807
12808 Wed Mar  6 11:51:55 1996  Doug Evans  <dje@charmed.cygnus.com>
12809
12810         * libc/posix/{creat.c,isatty.c}: New files.
12811         * libc/posix/Makefile.in (OFILES): Add creat.o, isatty.o.
12812
12813         * libc/sys/sparc64/crt0.S (environ): Delete.
12814         (.LHaveBias): Renamed from HaveBias.
12815
12816 Thu Feb 15 10:48:37 1996  Doug Evans  <dje@charmed.cygnus.com>
12817
12818         * libc/stdlib/mallocr.c (etext): Move decl inside ifdef WARN_VLIMIT.
12819         (_morecore_r): Delete SBRK_IS_ALLOC support.
12820
12821 Tue Feb 13 09:44:09 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
12822
12823         * libc/sys/cygwin32/Makefile.in (lib.a): Make lib.a with a dummy
12824         module rather than touch, so we don't get warning messages when
12825         all of the libraries are combined into libc.a.
12826
12827 Tue Feb 13 06:32:07 1996  Doug Evans  <dje@charmed.cygnus.com>
12828
12829         * libc/sys/sparclite/{Makefile.in,crt0.s}: Deleted.
12830         crt0.s replaced by version in libgloss.
12831
12832 Mon Feb  5 15:17:51 1996  J.T. Conklin  <jtc@rtl.cygnus.com>
12833
12834         * libc/reent/Makefile.in (OFILES): Add impure.o.
12835         * libc/reent/impure.o: New file, define initial reentrancy struct.
12836         * libc/reent/reent.c: Remove above definition.
12837
12838         * libm/math/sf_asinh.c: Fix typo.
12839
12840         * Makefile.in (MATHOBJS_IN_LIBC): Removed sr_ldexp.o and
12841         srf_ldexp.o.
12842         
12843         * libm/libm.texinfo: Change documentation to reflect changes
12844         in reentrancy model.
12845         * libm/math/w_gamma.c: Likewise.
12846
12847 Wed Jan 31 18:49:45 1996  Steve Chamberlain  <sac@slash.cygnus.com>
12848
12849         * configure.in (*-*-cygwin32): New.
12850         (*-*-win32): Deleted.
12851         * libc/sys/win32 renamed libc/sys/cygwin32.
12852
12853 Tue Jan 30 22:09:03 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
12854
12855         * libc/include/sys/file.h: New include file.
12856
12857 Fri Jan 26 15:52:54 1996  Steve Chamberlain  <sac@slash.cygnus.com>
12858
12859         * libc/include/machine/setjmp.h: Increase size of PPC jmp_buf.
12860
12861 Tue Jan 23 17:49:16 1996  Steve Chamberlain  <sac@slash.cygnus.com>
12862
12863         * libc/include/sys/wait.h (WIFSIGNALED): Fix.
12864
12865 Tue Jan 16 09:28:10 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
12866
12867         * doc/makedoc.c (realloc): Declare at file scope.
12868         (catchar): Not here.
12869
12870 Wed Dec 27 15:45:23 1995  Doug Evans  <dje@canuck.cygnus.com>
12871
12872         * Makefile.in (VERSION): Update to 1.7.0.
12873         * {libc,libm}/Makefile.in (VERSION): Likewise.
12874         * configure.in: Minor clean up of multilib stuff.
12875
12876         From David Johnson <davidj@ICSI.Berkeley.EDU>
12877         * {libc,libm}/Makefile.in (lib[cm].a): Delete library first.
12878
12879         * libc/stdlib/environ.c: New file.
12880         * libc/stdlib/Makefile.in (OFILES): Build it.
12881         * libc/sys/h8500hms/crt0.c (environ): Deleted.
12882         * libc/sys/m88kbug/crt0.c (environ): Deleted.
12883         * libc/sys/z8ksim/crt0.c (environ): Deleted.
12884         * libc/sys/netware/environ.c: Deleted.
12885
12886 Tue Dec 19 15:24:46 1995  Kim Knuttila  <krk@cygnus.com>
12887
12888         * configure.in (links): set sys_dir, posix_dir, syscall_dir
12889
12890 Wed Dec 13 04:16:25 1995  Michael Meissner  <meissner@wogglebug.tiac.net>
12891
12892         * doc/makedoc.c (init_string_with_size,nextword): Move malloc
12893         declaration out to external scope and declare it PTR, not char *.
12894
12895 Mon Dec 11 17:35:12 1995  steve chamberlain  <sac@slash.cygnus.com>
12896
12897         * libc/include/sys/unistd.h (getpagesize): New declaration.
12898         (_SC_PAGESIZE): New definition.
12899         * libc/include/time.h (CLK_TCK): Defined as CLOCKS_PER_SEC.
12900         * libc/configure.in (i[345]86-*-win32): Remove -DNO_FORK.
12901
12902 Fri Dec  1 16:48:46 1995  James G. Smith  <jsmith@cygnus.co.uk>
12903
12904         * libc/sys/vr4300/syscalls.c (sbrk): Fixed memory
12905         addressing. System call returns size, not (last address + 1).
12906
12907 Thu Nov 30 15:05:26 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
12908
12909         * libm/math/*.c: Removed _foo_r() reentrancy API.
12910         * libc/include/math.h: Removed _foo_r prototypes and macros.
12911
12912         * libm/math/*.c: On systems with IEEE single precision "doubles" 
12913         move foo() -> foof() wrapper code from the files that implement
12914         the standard IEEE double precision functions to the files that 
12915         implement IEEE single precision functions. (ie. On those systems
12916         sin is moved from s_sin.c to sf_sin.c).  There should eventually
12917         be use of a C extension (like gcc's alias attribute) so that the
12918         wrappers are not needed at all.
12919
12920         * libc/sys/sysnec810/sbrk.c: Cast &end to char * to get around
12921         strict NEC V810 compiler.
12922         * libc/misc/dprintf.c (getnumber): Cast char * to unsigned char *
12923         for same reason.
12924
12925 Wed Nov 29 14:25:05 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
12926
12927         * libc/stdlib/strtol.c (_strtol_r): Replaced with implementation
12928         from NetBSD C library.
12929         * libc/stdlib/strtoul.c (_strtoul_r): Likewise.
12930
12931         * libc/stdlib/assert.c (__assert): Renamed from __assertfail 
12932         and adapted from implementation I wrote for NetBSD C library.
12933         The difference is __assert doesn't take a format argument,
12934         so that there won't be multiple copies of the same string
12935         constant in the executable if assertions are enabled in
12936         more than one source module.
12937         * libc/include/assert.h (assert): Changed to call __assert.
12938
12939 Tue Nov 28 16:54:26 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
12940
12941         * libc/stdlib/strtod.c (_strtod_r): Changed to not assign to
12942         word1 on systems with 32 bit doubles.
12943         * libc/stdlib/qsort.c (qsort): Cast some void *'s to char *'s
12944         so that we can do arithmetic on them.
12945         * libc/misc/dprintf.c: Changed to support stdarg.h for ANSI
12946         compilers.
12947         
12948 Tue Nov 28 16:03:32 1995  Doug Evans  <dje@canuck.cygnus.com>
12949
12950         * libc/sys/arm/crt0.S: Zero bss.
12951
12952 Fri Nov 24 16:09:23 1995  Doug Evans  <dje@deneb.cygnus.com>
12953
12954         * libc/include/unctrl.h: New file.
12955         * libc/misc/{Makefile.in,dprintf.c,unctrl.c,misc.tex}: New files.
12956         * configure.in (subdirs): Add libc/misc.
12957         * libc/Makefile.in (SUBDIRS): Add misc.
12958         (SUBLIBS): Add misc/lib.a.
12959
12960         * libc/include/sys/reent.h (struct _reent): Make __sf last member.
12961
12962 Wed Nov 22 19:49:47 1995  Doug Evans  <dje@deneb.cygnus.com>
12963
12964         * libc/stdio/vfprintf.c (__sbprintf): Init fake._data.
12965         (_vfprintf_r): Call CHECK_INIT.
12966
12967 Tue Nov 14 02:52:12 1995  Doug Evans  <dje@canuck.cygnus.com>
12968
12969         * Makefile.in (MULTITOP): Delete.
12970         (MULTISRCTOP, MULTIBUILDTOP): Add.
12971         * configure.in: Delete call to cfg-ml-com.in.  Call config-ml.in
12972         instead of cfg-ml-pos.in.
12973
12974 Wed Nov  8 01:24:08 1995  James G. Smith  <jsmith@pasanda.cygnus.co.uk>
12975
12976         * libc/sys/vr4300/syscalls.c: Added clean version of sbrk().
12977         * libc/sys/vr4300/crt0.S: Cleaned up. Added check for FPU
12978         presence.
12979
12980 Thu Nov  2 22:25:06 1995  Michael Meissner  <meissner@tiktok.cygnus.com>
12981
12982         * libc/string/strtok.c: Include string.h to pick up strtok_r
12983         prototype.
12984
12985 Wed Nov  1 18:54:11 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
12986
12987         * libc/string/strtok.c: include <_ansi.h>.
12988         * libc/time/asctime_r.c: `reresult' -> `result'.
12989
12990 Wed Nov  1 14:35:52 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
12991
12992         * libc/time/{ctime.c, gmtime.c, lcltime.c}: Wrap functions
12993         in #ifndef _REENT_ONLY ... #endif conditional.
12994
12995         * libc/include/string.h (_strtok_r): Remove declaration.
12996         * libc/include/time.h (_asctime_r): Remove declaration.
12997         * libc/string/strtok.c (_strtok_r): Removed.
12998         * libc/time/asctime.c (_asctime_r): Removed.
12999
13000         * libc/string/Makefile.in (OFILES): Add new object.
13001         * libc/string/strtok_r.c: New file.  strtok_r function as
13002         specified by POSIX.1c, adapted from strtok implementation 
13003         from NetBSD C library.
13004         * libc/string/strtok.c (strtok): Reimplemented in terms of 
13005         strtok_r.
13006
13007         * libc/time/Makefile.in (OFILES): Add new objects.
13008         * libc/time/{asctime_r.c, ctime_r.c, gmtime_r.c, lcltime_r.c}:
13009         New files, reentrant time functions specified by POSIX.1c.
13010         * libc/time/{asctime.c, ctime.c, gmtime.c, lcltime.c}: Non-
13011         reentrant time functions re-written in terms of reentrant 
13012         functions.
13013         * libc/time/lcltime.c: Renamed from localtime.c
13014
13015         * libc/include/time.h: Add prototypes for asctime_r, ctime_r,
13016         gmtime_r, and localtime_r.
13017
13018 Sat Oct 28 14:34:31 1995  steve chamberlain  <sac@slash.cygnus.com>
13019
13020         * libc/sys/win32/crt0.c (mainCRTStartup): Call cygwin_crt0.
13021         * libc/include/sys/unistd.h (getlogin): Revert change of
13022         Oct 19.
13023         * libc/include/sys/signal.h (sigprocmask): Change prototype
13024         so it compiles with c++.
13025
13026 Wed Oct 25 15:43:18 1995  Michael Meissner  <meissner@cygnus.com>
13027
13028         * libc/include/machine/setjmp.h (PowerPC _JBLEN): Consider it a
13029         PowerPC if __PPC__ is defined.  Bump jump_buf length to 62 ints,
13030         to give some room in case we need to align the jmp_buf.
13031         
13032         * libc/machine/powerpc/setjmp.S (setjmp, longjmp): Rewrite to use
13033         the new ppc-asm.h include file the compiler provides to specify
13034         function prologue/epilogue.  Eliminate saves of the xer and ctr
13035         registers, which are volatile.  Before starting to save registers,
13036         align to 8 byte boundary.
13037
13038 Mon Oct 23 11:20:51 1995  James G. Smith  <jsmith@pasanda.cygnus.co.uk>
13039
13040         * libc/sys/vr4300/syscalls.c: Added empty kill() function,
13041         referenced by standard libraries.
13042
13043 Thu Oct 19 21:39:47 1995  Fred Fish  <fnf@cygnus.com>
13044         
13045         * libc/unix/Makefile.in, libc/string/Makefile.in,
13046         libc/stdio/Makefile.in, libc/reent/Makefile.in,
13047         libc/posix/Makefile.in:
13048         Remove tabs from otherwise empty line.  Confuses some
13049         older non-GNU versions of "make".
13050
13051 Thu Oct 19 16:32:17 1995  steve chamberlain  <sac@slash.cygnus.com>
13052
13053         * libc/sys/unistd.h (getlogin): Returns const char *.
13054
13055 Wed Oct 18 12:57:50 1995  steve chamberlain  <sac@slash.cygnus.com>
13056
13057         * libc/include/fcntl.h (O_BINARY, O_TEXT): New.
13058         * libc/include/errno.h: Moved into and include...
13059         * libc/include/sys/errno.h: New file.
13060         * libc/include/sys/wait.h: New file.
13061         * libc/stdio/rename.c (_rename_r): Use _rename system call if available.
13062         * libc/sys/win32/*: Moved out.
13063         * libc/sys/win32/crt0.c: Rewritten to cope with shared library.
13064         * configure.in (i[345]86-*-win32): HAVE_RENAME
13065
13066 Wed Oct 18 09:58:27 1995  Brendan Kehoe  <brendan@lisa.cygnus.com>
13067
13068         * libc/unix/sigset.c (sigemptyset, sigaddset): Prefix #undef to
13069         avoid macro expansion for these two names.
13070
13071 Tue Oct 17 08:45:33 1995  Doug Evans  <dje@canuck.cygnus.com>
13072
13073         * libc/machine/h8500/psi.S: r6 renamed to fp.
13074
13075 Sun Oct 15 12:58:10 1995  Michael Meissner  <meissner@wogglebug.tiac.net>
13076
13077         * configure.in (powerpc*): No longer need to define
13078         NO_LONGLONG_POINTERS to supress warnings.
13079
13080 Sat Oct 14 12:55:08 1995  Jim Wilson  <wilson@chestnut.cygnus.com>
13081
13082         * libc/reent/reent.c (_reclaim_reent): Call cleanup indirectly
13083         through PTR instead of directly.
13084
13085         * libc/sys/sh/crt0.S: Clean up formatting.  Delete unused
13086         non-standard constructor support.
13087
13088 Thu Oct 12 11:39:42 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
13089
13090         * libc/stdlib/dtoa.c (_dtoa_r): Set result pointer to the
13091         address of the Bigint instead of the address of its _x field,
13092         as the size the result buffer was calculated accordingly.  
13093         Fix from Jim Wilson <wilson@chestnut@cygnus.com>.
13094
13095         * libc/stdlib/{div.c, ldiv.c}: Replaced with implementation
13096         from NetBSD C library.  No longer special cases division by 
13097         zero (which needs to be done by the application anyway), but
13098         it doesn't need to call abs() (or labs()) four times either.
13099         
13100         * libc/stdlib/qsort.c: Replaced with implementation from 
13101         NetBSD C library.
13102
13103 Tue Oct 10 14:01:10 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
13104
13105         * libc/stdio/vfprintf.c: Replaced with implementation from
13106         NetBSD C library (which is derived from the 4.4BSD C library).
13107         * libc/stdio/cvt.c: Removed.
13108         * libc/stdio/Makefile: Updated.
13109         
13110 Tue Oct 10 12:15:23 1995  steve chamberlain  <sac@slash.cygnus.com>
13111
13112         * libc/sys/win32/syscalls.c (rename): New.
13113         * libc/sys/win32/include/winkernel.h (MoveFileExA): New.
13114
13115 Fri Oct  6 12:18:43 1995  Jim Wilson  <wilson@chestnut.cygnus.com>
13116
13117         * libc/machine/sh/Makefile.in (setjmp.o): Depend on setjmp.S.
13118         * libc/machine/sh/setjmp.S: Rename from setjmp.s.
13119
13120         * libc/sys/sh/Makefile.in (OFILES, all): Delete setjmp.o.
13121         (setjmp.o): Delete rule to build setjmp.o.
13122         * libc/sys/sh/setjmp.S: Delete file.
13123
13124 Fri Oct  6 11:19:05 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
13125
13126         * libc/stdlib/mprec.c (d2b): Added support for _DOUBLE_IS_32BITS.
13127         * libc/stdlib/mprec.h: Fixed constants used for IEEE single float
13128         format.  Added #defines to map d2b, i2b, low0bits, lshift, mult,
13129         pow5mult and s2b to identifiers with leading underscores.
13130         * libc/stdlib/Makefile.in: Add mprec.h as a dependency to dtoa.o,
13131         ecvtbuf.o, mprec.o and strtod.o.  Sort dependencies.
13132
13133 Thu Oct  5 17:27:30 1995  steve chamberlain  <sac@slash.cygnus.com>
13134
13135         * libc/sys/posix/popen.c (sys/types.h): Include.
13136
13137 Thu Oct  5 16:33:01 1995  Doug Evans  <dje@canuck.cygnus.com>
13138
13139         * libc/sys/win32/syscalls.h (fhandler): New struct.
13140         (__lookup_fhandler, __lookup_fhandler_hook): Declare.
13141         (__fhandler_normal): Declare.
13142         (hinfo): New member op_handlers.
13143         * libc/sys/win32/syscalls.c (__read): Don't validate fd.
13144         (__write): Likewise.
13145         (_read, _write, _open, _close, _lseek): Validate fd here.
13146         Move file type specific stuff to foo_normal.
13147         (read_normal, write_normal, open_normal, close_normal, lseek_normal):
13148         New functions.
13149         (__lookup_fhandler): New function.
13150         (__lookup_fhandler_hook, __fhandler_normal): New variables.
13151
13152         From anders.blomdell@control.lth.se (Anders Blomdell)
13153         * libc/sys/win32/crt0.c (vfork_init): Unset __FD_TABLE__.
13154         Don't touch standard handles.
13155         * libc/sys/win32/spawn.c (_spawn): Use STARTF_USESTDHANDLES.
13156         (_execve): Only create __FD_TABLE__ if necessary.
13157         * libc/sys/win32/include/winkernel.h (STARTF_*): Define.
13158
13159 Thu Oct  5 14:25:14 1995  steve chamberlain  <sac@slash.cygnus.com>
13160
13161         * libc/sys/win32/sys/termios.h (FLUSHO): New.
13162         * libc/sys/win32/include/win*.h: Moved a load of prototypes around.
13163         * libc/sys/win32/pipe.c (_fctnl): Ignore F_SETFL without errors.
13164         * libc/sys/win32/exception.c (ehandler3): set strace when a signal
13165         without a handler is received.
13166         * libc/sys/win32/Makefile.in: Remove --nodelete.
13167         * libc/sys/win32/resouce.c (gettimeofday): New.
13168         * libc/sys/win32/syscalls.c (path_to_real_path): New.
13169         * libc/sys/win32/syscalls.h (include/wincon.h): Don't include.
13170
13171 Wed Oct  4 13:10:35 1995  Doug Evans  <dje@canuck.cygnus.com>
13172
13173         * libc/sys/win32/dirsearch.c (opendir): stat real path name.
13174         Don't append "/*" to search pattern if trailing '/' already there,
13175         append "*".
13176         * libc/sys/win32/spawn.c (_spawn): CreateProcess doesn't seem to
13177         like /'s, convert them to \'s.  Handle //<drive>/ path names.
13178         Add space for quoted \'s in arg string.  Print translated prog name
13179         and original prog name.
13180         (_execve): Handle parent doing exec a teensy bit better.
13181         * libc/sys/win32/syscalls.h (__path_to_real_path): Update prototype.
13182         * libc/sys/win32/syscalls.c (__path_to_real_path): Don't assume
13183         path needs conversion, handle both cases.  Delete `const' from result.
13184         (hash_path_name): New function.
13185         (_open): Call it.
13186         (_stat): Likewise.  Fill in more fields for directories.
13187         * libc/sys/win32/wait.c (_wait): Explicitly pass -1 to waitpid.
13188         (wait_for_any): Fix trace message.
13189         (waitpid): Explicitly test for intpid == 0.
13190
13191         From anders.blomdell@control.lth.se (Anders Blomdell)
13192         * libc/sys/win32/spawn.c (__vfork_get_empty_entry): zero fill result
13193         so `next' is valid.
13194
13195 Sat Sep 30 15:00:15 1995  Jason Molenda  (crash@phyeaux.cygnus.com)
13196
13197         * libc/sys/win32/spawn.c (_spawn): Make quoting rules more
13198         complicated.
13199
13200 Sat Sep 30 10:25:57 1995  Jason Molenda    (crash@phydeaux.cygnus.com)
13201
13202         * libc/include/_ansi.h: set _HAVE_STDC if __STDC__ is defined
13203         at all, not just == 1.
13204         * libm/math/wf_acos.c (acosf): check for _HAVE_STDC, not __STDC__.
13205
13206 Sat Sep 30 04:30:09 1995  Jason Molenda   (crash@phydeaux.cygnus.com)
13207
13208         * libc/sys/win32/include/winbase.h: include <wintypes.h> and <winnt.h>
13209         * libc/sys/win32/include/wintypes.h: include <winnt.h>
13210         * libc/sys/win32/include/winnt.h: avoid multiple inclusion of this
13211         file.
13212
13213 Fri Sep 29 01:49:17 1995  steve chamberlain  <sac@slash.cygnus.com>
13214
13215         * libc/sys/syscalls.c (getcwd): Fix off by one error.
13216
13217         * libc/sys/signal.c (sleep): Fill it in.
13218         * libc/sys/termios.c (tcflush): Use PurgeComm
13219         (tcsetattr): Set some more of the bits.
13220         * libc/sys/include/winkernel.h: Add PurgeComm and Sleep.
13221
13222 Fri Sep 29 04:33:53 1995  Doug Evans  <dje@deneb.cygnus.com>
13223
13224         * libc/sys/arm/crt0.S (fp): Initialize to 0.
13225         Conditionally include .idata$3 stuff ifdef __pe__.
13226
13227 Fri Sep 29 01:49:17 1995  steve chamberlain  <sac@slash.cygnus.com>
13228
13229         * libc/sys/win32/crt0.c (hmap_init): Call __init_hinfo.
13230         * libc/sys/win32/pipe.c (pipe): Ditto.
13231         * libc/sys/win32/syscalls.c (__read):  Use new vtime and vmin fields.
13232         * libc/sys/win32/syscalls.h (hinfo): vtime, vmin are new.
13233         * libc/sys/win32/termios.c (tcsetattr): Init new fields.
13234         (tcgetattr): Contents are new.
13235         * libc/sys/win32/include/winkernel.h (DCB): New.
13236         (GetCommState, SetCommState): New.
13237
13238 Thu Sep 28 16:29:09 1995  Doug Evans  <dje@deneb.cygnus.com>
13239
13240         * libc/sys/arm/crt0.S (_start): Define.
13241
13242 Thu Sep 28 12:26:45 1995  steve chamberlain  <sac@slash.cygnus.com>
13243
13244         * libc/sys/arm/crt0.S: Move stack to top of RAM on PIE board.
13245         * libc/sys/arm/syscalls.c (_read, _write): Use the SWI properly.
13246
13247         * libc/sys/win32/sysconf.c: New
13248         * libc/sys/win32/sys/winadvapi.h: New
13249         * libc/sys/win32/syscalls.h (hinfo): Added timeout_len, w_binary, r_binary.
13250         * libc/sys/win32/crt0.c (hmap_init): Initialize new fields.
13251         * libc/sys/win32/pipe.c (pipe): Ditto.
13252         * libc/sys/win32/signal.c (_raise): New.
13253         (_kill): Moved from spawn.c
13254         * libc/sys/win32/spawn.c (kill): Moved to signal.c
13255         * libc/sys/win32/syscalls.c (__read): Use new fields.
13256         (_open): Ditto.
13257         * libc/sys/win32/termios.c (tcflush, tcsetattr, tcgetattr): Fill in.
13258         * libc/sys/win32/exceptions.c (__stack_trace): Keep going for longer.
13259         * libc/include/sys/unistd.h (rmdir): Takes const path.
13260         * libc/include/sys/stat.h (mkdir): Takes const path.
13261         * libc/include/sys/signal.h (SIGTTOU, SIGTTIN): New for win32.
13262
13263 Thu Sep 28 10:11:27 1995  Doug Evans  <dje@canuck.cygnus.com>
13264
13265         * libc/sys/win32/spawn.c (_spawn): Fix quoting.
13266
13267         Add support for specifying paths as //<drive>/foo/bar.
13268         * libc/sys/win32/syscalls.h (__path_needs_conversion_p): Declare.
13269         (__path_to_real_path): Declare.
13270         (PATH_TO_REAL_PATH): New macro.
13271         * libc/sys/win32/syscalls.c (__win32_pid_to_posix_pid): Minor cleanup.
13272         (__path_needs_conversion_p, __path_to_real_path): New functions.
13273         (_open): Fix test for error return from CreateFileA.
13274         Handle new path syntax.
13275         (_link, mkdir, rmdir, getcwd, chdir, stat): Handle new path syntax.
13276         * libc/sys/win32/dirsearch.c (opendir): Likewise.
13277
13278 Wed Sep 27 16:36:46 1995  steve chamberlain  <sac@slash.cygnus.com>
13279
13280         * libc/sys/win32/include/*.h: Reorganized
13281         * libc/sys/win32/include/WINREADME: New.
13282         * libc/sys/win32/Makefile.in (DLLS): Build version.a.
13283         * libc/sys/win32/*.c: Fix for new include scheme.
13284         * libc/sys/win32/crt0.c (__this_uinfo_buf, __this_uinfo): New.
13285         * libc/sys/win32/getlogin.c (getlogin): Use uinfo.
13286         * libc/sys/win32/passwd.c (*): Fix.
13287         * libc/sys/win32/syscalls.c (get[e|][g|u]id): Use passwd info.
13288         (_stat): Get directory owner and permissions right.
13289         * libc/sys/win32/syscalls.h (uinfo): New.
13290         * libc/sys/win32/version.def: Remove leading underscores.
13291
13292 Tue Sep 26 18:18:47 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
13293
13294         * libc/sys/win32/key.c: include "include/wincon.h".
13295
13296 Tue Sep 26 07:21:48 1995  steve chamberlain  <sac@slash.cygnus.com>
13297
13298         * libc/sys/win32/{key, stubs}.c: New.
13299         * libc/sys/win32/Makefile: Adjust to cope.
13300         * libc/sys/win32/crt0.c (vfork_init_first): Cope with -ve pids.
13301         (environ_init): Change env names to upper case.
13302         * libc/sys/win32/dirsearch.c (readdir): Don't fill in inode number.
13303         * libc/sys/win32/passwd.c (*): Fill in the functions.
13304         * libc/sys/win32/pipe.c (_fcntl): F_GETFL returns O_RDWR.
13305         * libc/sys/win32/spawn.c (_spawn): Cope with -ve pids.
13306         * libc/sys/win32/syscalls.c (__win32_pid_to_posix_pid): New function.
13307         (_open): Initialze hmap->execable_p too.
13308         * libc/sys/win32/syscalls.c (getuid, getgid, geteuid, getegid): Return from macros.
13309         (_fstat): Fill in permissions.
13310         * libc/sys/win32/syscalls.h (hinfo): Add execable_p.
13311
13312 Fri Sep 22 13:47:27 1995  Doug Evans  <dje@canuck.cygnus.com>
13313
13314         * configure.in (cfg-ml-com.in invocation): Use ${with_multilib_top}
13315         if defined.
13316         (cfg-ml-pos.in invocation): Likewise.
13317
13318 Fri Sep 22 11:43:44 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
13319
13320         * Makefile.in (MATHOBJS_IN_LIBC): Added s_isinf.o, sf_isinf.o,
13321         s_isnan.o and sf_isnan.o.
13322
13323 Wed Sep 20 14:50:19 1995  Ian Lance Taylor  <ian@cygnus.com>
13324
13325         * All Makefile.in files: added maintainer-clean target as a
13326         synonym for realclean.
13327
13328 Wed Sep 20 11:02:50 1995  Jeff Law  (law@snake.cs.utah.edu)
13329
13330         * libc/include/machine/setjmp.h: Add hppa support.
13331         * libc/machine/hppa/setjmp.S: New file with setjmp/longjmp
13332         support.
13333         * libc/machine/hppa/Makefile.in: Related changes.
13334
13335 Tue Sep 19 12:09:01 1995  J.T. Conklin  <jtc@blues.cygnus.com>
13336
13337         * configure.in (machine_dir): Don't set for v810-*-*.
13338
13339 Fri Sep 15 20:22:08 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
13340
13341         * libc/sys/win32/crt0.c (passover): Change to handle MKS quoting
13342         conventions correctly.
13343
13344 Thu Sep 14 13:37:22 1995  J.T. Conklin  <jtc@blues.cygnus.com>
13345
13346         * libc/stdio/puts.c: Update documentation of return value to match
13347         ANSI standard.
13348
13349 Thu Sep 14 01:52:37 1995  Doug Evans  <dje@canuck.cygnus.com>
13350
13351         Fix file descriptor inheritance.
13352         * libc/sys/win32/syscalls.h (CHILD_P): Define again.
13353         (NOT_OPEN_FD): Fix.
13354         * libc/sys/win32/spawn.c (vfork0): Only create inheritable handle if
13355         close-on-exec flag not set.  Initialize child's entire fd table.
13356         * libc/sys/win32/syscalls.c (_open): Only create inheritable handle if
13357         CHILD_P.
13358         * libc/sys/win32/pipe.c (pipe): Only create new handle as inheritable
13359         if CHILD_P.  Initialize entire hmap entry.
13360         (dup): Only create new handle as inheritable if CHILD_P.
13361         (dup2): Likewise.  Properly initialize hmap entry.
13362
13363         * libc/sys/win32/spawn.c (_execve): Don't pass _P_SEARCH_PATH to
13364         _spawn.
13365         (_exit): Use CHILD_P.
13366         * libc/sys/win32/syscalls.c (_fstat): Fix call to memset.
13367         (_stat): Likewise.
13368
13369 Mon Sep 11 23:09:39 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
13370
13371         * libc/sys/win32/crt0.c (passover): fix up the state table.
13372         * libc/posix/popen.c: Added.
13373         * libc/posix/Makefile.in: compile popen.c.
13374         
13375 Mon Sep 11 11:43:38 1995  J.T. Conklin  <jtc@cygnus.com>
13376
13377         * libc/include/machine/ieeefp.h: On the h8/300, h8/300h and
13378         h8/500 define _DOUBLE_IS_32BITS.
13379
13380 Sat Sep  9 17:55:54 1995  Doug Evans  <dje@canuck.cygnus.com>
13381
13382         Get vfork/exec/spawn/cwait/wait working again.
13383         * libc/sys/win32/syscalls.h (VFORK_NEWBORN_PSEUDO_PID): Define.
13384         (procinfo): New member vfork_level.
13385         * libc/sys/win32/crt0.c (__vfork_next_pid): Delete.
13386         (vfork_init_first): Use GetCurrentProcessId to get pid.
13387         Initialize vfork_level.
13388         (vfork_init): Delete __PID__.
13389         (environ_init): New function.  Undo patch of Aug 19, Posix says
13390         environment variables are case sensitive.
13391         (mainCRTStartup): Call it.
13392         * libc/sys/win32/spawn.c (__vfork_next_pid): Delete.
13393         (my_longjump: Make static.
13394         (_spawn): New argument `h'.  Delete setting of __PID__.
13395         Delete local `idx'.  Look for chars that need quotes, rather than
13396         ones that don't.  Set handle of created process in `h'.
13397         Result is process id if created task.
13398         (allocate_spawn_entry): New function.
13399         (spawnvp, spawnv): Call it.  Store handle and pid in procinfo entry.
13400         (_execve): Set __FD_TABLE__ before spawning child.
13401         Scan our fd table when passing fds, not our parent's.
13402         Store handle and pid in procinfo entry.
13403         (vfork0): Ensure strace message always printed.
13404         Set child pid to VFORK_NEWBORN_PSEUDO_PID.
13405         (vfork): Don't clobber result of vfork0.
13406         * libc/sys/win32/wait.c (cwait): Fix non-error result (is pid).
13407         (wait_for_any): Ignore processes in state FORK_STATE_VFORK_0.
13408
13409         * libc/sys/win32/syscalls.h (procinfo): New members `handle_valid_p'
13410         and `exit_code'.
13411         * libc/sys/win32/spawn.c (allocate_spawn_entry): Initialize them.
13412         (vfork0): Likewise.  Distinguish children, grandchildren, etc. by
13413         adding vfork level to pseudo-pid.  
13414         (vfork1): If not root, set state back to FORK_STATE_VFORK_0.
13415         (spawnvp, spawnv, _execve): Set handle_valid_p if success.
13416         (_exit): If child, set exit code.
13417         (__vfork_record_death): Only close process handle if valid.
13418         * libc/sys/win32/wait.c (wait_for_single): Watch for children that
13419         didn't exec.
13420         (wait_for_any): Likewise.  Start scan after root entry.
13421
13422 Fri Sep  8 18:48:02 1995  Jason Molenda   (crash@phydeaux.cygnus.com)
13423
13424         * libc/include/sys/types.h (off_t): off_t back to 32 bits.
13425         * libc/include/sys/_types.h (_off_t): _off_t back to 32 bits.
13426         * libc/sys/win32/syscalls.c (_fstat): st_size is lower 32-bits
13427         of actual file length.
13428
13429         * libc/sys/win32/sys/wait.h: include <sys/types.h>.
13430         * libc/include/paths.h: _PATH_BSHELL added.
13431         * libc/include/sys/unistd.h: define STDIN_FILENO, STDOUT_FILENO,
13432         and STDERR_FILENO.
13433
13434 Thu Sep  7 21:02:22 1995  Jason Molenda   (crash@phydeaux.cygnus.com)
13435
13436         * libc/include/ar.h: Added.
13437         * libc/include/sys/types.h: ino_t goes back to 32-bits.
13438         * libc/sys/win32/syscalls.h (hinfo): added .namehash field.
13439         * libc/sys/win32/syscalls.c (_open): compute .namehash based
13440         on filename.
13441         (_fstat): use .namehash for inode number of the fd.
13442
13443 Thu Sep  7 12:57:19 1995  steve chamberlain  <sac@slash.cygnus.com>
13444
13445         * libc/sys/win32/{console,ioctl,pipe,spawn,syscalls,wait}.? (*):
13446          Change hinfo to __this_procinfo.
13447         * libc/sys/win32/crt0.c: Remove procinfo_list.
13448
13449 Wed Sep  6 18:38:26 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
13450
13451         * libc/include/sys/types.h (ino_t): Define ino_t correctly for
13452         win32 environment.
13453
13454 Wed Sep  6 18:09:29 1995  Jason Molenda   (crash@phydeaux.cygnus.com)
13455
13456         * libc/sys/win32/include/grp.h: Removed.
13457         * libc/sys/include/grp.h: Added.
13458         * libc/sys/win32/grp.c: Include <grp.h>.
13459
13460 Wed Sep  6 16:52:48 1995  steve chamberlain  <sac@slash.cygnus.com>
13461
13462         * libc/include/sys/signal.h (__need_MAX_SIGNALS): Removed.
13463         (sigset_t, sigaction, SIG_SETMASK, SIG_BLOCK, SIG_UNBLOCK):
13464         Defined for all but strict ANSI.
13465         * libc/include/sys/reent.h (__need_MAX_SIGNALS): Removed.
13466         * libc/include/machine/setjmp.h: Get win32 _JBLEN right.
13467         * libc/signal/signal.c (_signal_r): Changed from using
13468         _MAX_SIGNALS to NSIG.  
13469         * libc/sys/win32/crt0.c (__current_pid, __parent_hmap, __child_hmap,
13470          __hmap): Deleted.
13471         (__strace, __vfork_next_pid): New.
13472         (__exe_suffix): Default to 1.
13473         (passover, table): Understand quoted arguments.
13474         (vfork_init_first): New.
13475         (vfork_init): Initialize new process structure.
13476         (mainCRTStartup): Pass environ to main.
13477         * exceptions.c (__sig_mask): New
13478         (ehandler3): Ignore signals in mask.
13479         (really_exit): Remove CHILD_P test.
13480         * pipe.c (pipe, dup, dup2): Use new process and file structure.
13481         * resource.c (getrusage): Ditto.
13482         * signal.c (sigprocmask): New.
13483         * spawn.c (*): Rewritten.
13484         * syscalls.c (*): Use new process and file structure.
13485         (find_unused_handle): New.
13486         * syscalls.h (MAX_HANDLES): Deleted.
13487         (hinfo): Removed child_created_p.
13488         (MAX_CHILDREN): Deleted.
13489         (vfork_jmp_info, procinfo): New.
13490         * wait.c (*): Mostly new.
13491         * sys/strace.h (_STRACE_PARANOID): New.
13492         * sys/param.h: New file.
13493
13494 Wed Sep  6 17:03:53 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
13495
13496         * libc/include/sys/stat.h: add S_BLKSIZE.
13497         * libc/include/sys/_types.h: _off_t is a 64-bit type under win32.
13498         * libc/include/sys/types.h: define off_t and ino_t to be 64 bit
13499         types under win32.
13500         (mode_t): add a #else to avoid multiple definitons.
13501
13502         * libc/sys/win32/Makefile.in: add grp.c.
13503         * libc/sys/win32/grp.c: include grp.h correctly.
13504         * libc/sys/win32/syscalls.c (_fstat): set almost all of the fields
13505         of the st structure with real information.
13506         * libc/sys/win32 (dirent): d_ino is of type ino_t.
13507
13508 Wed Sep  6 10:41:34 1995  Doug Evans  <dje@canuck.cygnus.com>
13509
13510         * libc/include/sys/types.h (mode_t): Correct for svr4 sparc's
13511         and (maybe) sparc64.
13512         (nlink_t): Provide typedef.
13513
13514 Tue Sep  5 18:46:05 1995  Jason Molenda   (crash@phydeaux.cygnus.com)
13515
13516         * libc/sys/win32/grp.c: New file.
13517         * libc/sys/win32/include/grp.h: New file.
13518
13519 Tue Sep  5 13:47:27 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
13520
13521         * libc/include/machine/ieeefp.h: Added whitespace to make this
13522         file easier to maintain.
13523         On the sh, define either __IEEE_BIG_ENDIAN or __IEEE_LITTLE_ENDIAN
13524         depending on the value of __LITTLE_ENDIAN__.
13525         On the sh3e, define _DOUBLE_IS_32BITS.
13526         
13527 Fri Sep  1 15:35:18 1995  James G. Smith  <jsmith@beauty.cygnus.com>
13528
13529         * libc/sys/vr4300/syscalls.c: Added missing support
13530         routines. _raise() and getpid().
13531
13532 Fri Sep  1 14:12:48 1995  James G. Smith  <jsmith@rtl.cygnus.com>
13533
13534         * configure.in (mips*vr4300*-*-elf): Fixed silly mistake
13535
13536 Fri Sep  1 08:42:11 1995  James G. Smith  <jsmith@beauty.cygnus.com>
13537
13538         * configure.in (mips*vr4300*-idt-*) Add support for RISQ monitor
13539         and VR4300 processor.
13540         * libc/sys/vr4300: Add directory.
13541         * libc/sys/vr4300/{Makefile.in, crt0.S, syscalls.c}: Add SIM
13542         monitor run-time support.
13543
13544 Thu Aug 31 09:16:52 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
13545
13546         * libc/stdlib/Makefile.in (CHEWOUT_FILES): Removed atol.def.
13547         * libc/stdlib/stdlib.tex: Don't include atol.def.
13548
13549 Wed Aug 30 20:38:28 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
13550
13551         * libc/sys/win32/uname.c (uname): hardcode processor as `i386'.
13552
13553 Wed Aug 30 10:48:08 1995  steve chamberlain  <sac@slash.cygnus.com>
13554
13555         * libc/ctype/Makefile.in: Fill in _to* dependencies.
13556
13557 Tue Aug 29 17:14:29 1995  steve chamberlain  <sac@slash.cygnus.com>
13558
13559         * libc/sys/win32/{dirsearch.c,sys/dirent.h}: Fix namespace problems.
13560         * libc/sys/win32/sys/dirent.h (struct dirent): Added d_ino.
13561         * libc/sys/win32/strace.c (__sys_printf): Increase size of buffer.
13562         * libc/sys/win32/smallprint.c (__small_vsprintf): Remove debug.
13563         * libc/sys/win32/dirsearch.c (readdir): Set d_ino.
13564
13565 Tue Aug 29 19:00:09 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
13566
13567         * libc/stdlib/atol.c (atol): DEFUN -> _DEFUN.
13568
13569 Tue Aug 29 16:08:09 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
13570
13571         * libc/stdlib/Makefile.in (OFILES): Added atoff.o and atol.o.
13572         * libc/stdlib/atoff.c: New file.
13573         * libc/stdlib/atof.c (atoff): Moved to atoff.c.
13574         * libc/stdlib/atoi.c (atol): Removed.
13575         * libc/stdlib/atol.c: Removed duplicate documentation.
13576
13577         * libc/include/ctype.h (_tolower, _toupper): Moved inside
13578         #ifndef _STRICT_ANSI conditional.
13579         * libc/ctype/Makefile.in (OFILES): Added _tolower.o and _toupper.o
13580         * libc/ctype/_tolower.c: New file.
13581         * libc/ctype/_toupper.c: New file.
13582         * libc/ctype/tolower.c (_tolower): Moved to _tolower.c.
13583         * libc/ctype/toupper.c (_toupper): Moved to _toupper.c.
13584         * libc/ctype/toascii.c (_toascii): Removed.
13585
13586 Tue Aug 29 12:17:32 1995  Doug Evans  <dje@canuck.cygnus.com>
13587
13588         * libc/sys/sparc64/sys/types.h: Deleted.
13589
13590 Mon Aug 28 22:06:08 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
13591
13592         * libc/sys/win32/uname.c (uname): change `Windows/NT' to `Windows_NT'
13593         and recognize Windows_95 systems.
13594
13595 Mon Aug 28 19:50:54 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
13596
13597         * libc/sys/win32/crt0.c (vfork_init, hmap_init): standard I/O fds
13598         and passed fds should be opened in text mode.
13599
13600 Mon Aug 28 18:51:22 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
13601
13602         * libc/sys/win32/crt0.c (vfork_init): mark passed fds as used
13603         in __hmap, set to binary mode by default.
13604
13605 Tue Aug 22 14:12:37 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
13606
13607         * libc/sys/sh/syscalls.c: Updated all functions to call __trap34.
13608         * libc/sys/sh/trap.S (__trap34): Renamed from __trap3.  Use trap
13609         vector 34.
13610
13611 Sat Aug 19 18:25:37 1995  steve chamberlain  <sac@slash.cygnus.com>
13612
13613         * Makefile.in (install): Install all libraries found in the
13614         top level.  If there's a sys/<type>/include directory,
13615         install those headers into include.
13616
13617         * libc/sys/win32/kernel.def351: Delete
13618         * libc/sys/win32/{comctl32.def, comdlg32.def, ctl3d32.def,
13619         glaux.def, glu32.def, largeint.def, libc.def, libcmt.def,
13620         lz32.def, mgmtapi.def, mpr.def, msacm32.def, msvcrt.def,
13621         nddeapi.def, netapi32.def, odbc32.def, odbccp32.def, oldnames.def,
13622         ole32.def, oleaut32.def, opengl32.def, rasapi32.def, rpcndr.def,
13623         rpcns4.def, rpcrt4.def, scrnsave.def, shell32.def, snmp.def,
13624         uuid.def, vdmdbg.def, version.def, vfw32.def, win32spl.def,
13625         winmm.def, winspool.def, winstrm.def, wsock32.def}: New.
13626
13627         * libc/sys/win32/Makefile.in: Update for new files and new dlltool options.
13628         * libc/sys/win32/crt0.c: Force all env names to upper case.
13629         * libc/sys/win32/sys/win*.h -> libc/sys/win32/include
13630         * libc/sys/win32/*.c: Headers have moved.
13631         * libs/sys/win32/*.[ch]: Test for open_p rather than BAD_HANDLE,
13632         __vfork_child_idx is now __vfork_child_ptr.
13633
13634         * posix/execvp (execvp): Don't crash if no PATH envname.
13635
13636 Fri Aug 18 12:22:59 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
13637
13638         * libc/include/sys/reent.h (_Bigint): Removed _reclaim field.
13639         * libc/reent/reent.c (_reclaim_reent): Free Bigint's by going
13640         through the _freelist instead of through the _reclaim list.
13641         * libc/stdlib/mprec.c (_Balloc): Don't put new node on _reclaim list.
13642         * libc/stdlib/mprec.c (_Bcopy): Make like version in master dtoa.c
13643         sources.
13644
13645 Thu Aug 17 11:03:27 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
13646
13647         * libc/machine/h8500/setjmp.S: New file.
13648         * libc/include/machine/setjmp.h: Updated for H8/500.
13649
13650 Wed Aug 16 16:19:11 1995  steve chamberlain  <sac@slash.cygnus.com>
13651
13652         * libc/sys/win32/syscalls.c (_open): More stracing.
13653         (_stat): Open the file in O_BINARY.
13654
13655 Wed Aug 16 15:49:01 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
13656
13657         * libc/machine/h8300/setjmp.S: New file.
13658         * libc/include/machine/setjmp.h: Updated for H8/300 and H8/300H.
13659
13660 Tue Aug 15 10:31:09 1995  Doug Evans  <dje@canuck.cygnus.com>
13661
13662         * libc/sys/win32/crt0.c (__exe_suffix): New global.
13663         (mainCRTStartup): Set __exe_suffix from LIBC_EXE_SUFFIX.
13664         * libc/sys/win32/spawn.c (_spawn): Add .exe suffix based on
13665         __exe_suffix.  Free fd_tab after setting env variable.
13666         (spawnv,_execve): Update.
13667         * libc/sys/win32/syscalls.h (__exe_suffix): Declare.
13668         * libc/sys/win32/smallprint.c (puts,putn): New (static) functions.
13669         (__small_vfprintf): New function.
13670         * libc/sys/win32/strace.c (__sys_printf): Call __small_vfprintf.
13671         * libc/sys/win32/wait.c (cwait): Validate argument.
13672
13673         * libc/sys/win32/syscalls.c (queue_file_deletion): Add trace message.
13674         (process_deletion_queue): Likewise.
13675
13676         * libc/sys/win32/Makefile.in (lib.a): Don't call $(RANLIB).
13677
13678 Mon Aug 14 10:14:10 1995  steve chamberlain  <sac@slash.cygnus.com>
13679
13680         * libc/sys/win32: Copyrights and gratuitous indenting.
13681
13682 Mon Aug 14 01:32:58 1995  Doug Evans  <dje@canuck.cygnus.com>
13683
13684         * libc/sys/win32/syscalls.c (queue_file_deletion): Finish.
13685         (process_deletion_queue): Likewise.
13686         (__close_all_files): New function.
13687         (_close): Only queue file deletion if really a file.
13688         * libc/sys/win32/spawn.c (_spawn): Only ensure .exe suffix if
13689         _P_APPEND_EXE.
13690         (_exit): Call __close_all_files.
13691
13692         * libc/stdlib/system.c: #include <errno.h>.
13693         (_system_r): Fix results in -DNO_EXEC case.
13694
13695         * libc/sys/win32/sys/dirent.h (DIR): New member __d_dirname.
13696         Reorganize structure.
13697         * libc/sys/win32/dirsearch.c (opendir): Use stat to determine
13698         if argument is valid.  Save directory name in DIR.  malloc space
13699         for dirent struct separately.
13700         * libc/sys/win32/syscalls.c (stat): Fix test for directory.
13701
13702         * libc/include/errno.h (ENAMETOOLONG): Define.
13703         * libc/string/strerror.c (strerror): Reword ENFILE.
13704         Add ENOSYS, ENMFILE, ENOTEMPTY, ENAMETOOLONG.
13705
13706 Sun Aug 13 22:42:25 1995  Doug Evans  <dje@canuck.cygnus.com>
13707
13708         * libc/sys/win32/crt0.c (__progname): New global.
13709         (mainCRTStartup): Support strace=bitmask,filename.
13710         * libc/sys/win32/dirsearch.c (all fns): Add trace messages.
13711         * libc/sys/win32/syscalls.c (_write): Print parent trace message
13712         if error.
13713         (getcwd): Handle len too small.  Convert '\\' to '/'.
13714         * libc/sys/win32/sys/fcntl.h (O_RDWR): = O_RDONLY|O_WRONLY.
13715         Add prototypes for open, creat, fcntl.
13716         (O_APPEND): Change value to conform to Microsoft's value.
13717         * libc/sys/win32/sys/strace.h (_STRACE): Protect in do/while.
13718
13719         * libc/stdlib/getopt.c: New file.
13720         * libc/stdlib/Makefile.in: Build it.
13721
13722 Sat Aug 12 12:17:14 1995  Doug Evans  <dje@canuck.cygnus.com>
13723
13724         * libc/posix/execvp.c (execvp): Watch for DOS drives ifdef _WIN32.
13725         Fix scanning of $PATH.
13726         * libc/posix/exec*.c: Call _execve, not execve.
13727         * libc/posix/execve.c: New file.
13728         * libc/posix/Makefile.in (OFILES): Add execve.o.
13729
13730         * libc/sys/win32/sys/strace.h (_STRACE_ALL, _STRACE_UHOH,
13731         _STRACE_STARTUP, _STRACE_SYSCALL): More bit masks of things to trace.
13732         (_STRACE): If level==0, always print.  Handle new bit mask scheme.
13733         * libc/sys/win32/crt0.c: Update _STRACE calls.
13734         * libc/sys/win32/{pipe.c,resource.c,spawn.c,syscalls.c,wait.c}: Ditto.
13735
13736         * libc/sys/win32/smallprint.c (rn): Fix digit list.
13737
13738         * libc/sys/win32/syscalls.c (__really_exit): Move from here,
13739         * libc/sys/win32/exceptions.c (really_exit): to here. Avoid recursion.
13740         * libc/sys/win32/spawn.c (spawnvp): Pass `prog' as image name.
13741         Print __seterrno trace message first.
13742         (_execve): Renamed from execve.
13743         (vfork): Update __strace usage.
13744         (__vfork_child_pid): Deleted.
13745         (__vfork_children, __vfork_child_idx): New globals.
13746         (_spawnvp): New function.
13747         (spawnvp, spawnv, _execve): Call _spawnvp.
13748         (init_child): Record child in __vfork_children.
13749         (__vfork_get_entry, __vfork_record_death): New functions.
13750         * libc/sys/win32/crt0.c (mainCRTStartup): Initialize __vfork_children.
13751         * libc/sys/win32/kernel32.def (WaitForMultipleObjects): Define.
13752         * libc/sys/win32/syscalls.h (CHILD_P): New macro.  All files updated.
13753         (MAX_CHILDREN, CHILD_INTERIM_PID): Define.
13754         (children): New typedef.
13755         (__vfork_children,__vfork_child_idx): Declare.
13756         (__vfork_get_entry,__vfork_record_death): Declare.
13757         * libc/sys/win32/wait.c (wait_for_single,wait_for_any): New functions.
13758         (waitpid): Handle pid == -1.
13759         * libc/sys/win32/sys/wintypes.h (WaitForMultipleObjects): Declare.
13760         * configure.in (i386-win32): Add -DNO_FORK.
13761         * libc/syscalls/sysfork.c (fork): Don't define for NO_FORK.
13762         * libc/reent/execr.c (_fork_r): Likewise.
13763         * libc/stdlib/system.c (do_system): New function.
13764         If WIN32, try to get shell path from $SH_PATH, use vfork.
13765         (_system_r): Return 1 for (s == NULL) if WIN32 or unix,
13766         otherwise return 0.
13767
13768 Sat Aug 12 11:08:00 1995  steve chamberlain  <sac@slash.cygnus.com>
13769
13770         * libc/stdlib/{mallocr.c, mstats.c}: Move mstats from mallocr to mstats.c.
13771         * libc/sys/win32/fcntl.h: Don't include self.
13772         * libc/sys/win32/sys/strace.h (_STRACE_WM, _strace_wm): New.
13773         * libc/sys/win32/sys/winbase.h: (GetUserName) New.
13774         * libc/sys/win32/sys/wincon.h (HANDLER_ROUTINE): Define correctly.
13775         * libc/sys/win32/sys/wintypes.h (GetFileType, GetCurrentProcess, CloseHandle,
13776         SetFilePointer, CreateFileA, GetFileInformationByHandle, GetStdHandle):
13777         Correct prototypes.
13778         * libc/sys/win32/strace.c: New file.
13779         * libc/sys/win32/smallprint.c: New file.
13780         * libc/sys/win32/crt0.c (func): Delete.
13781         (mainCRTStartup): Fix alloca usage.  Set handles explictly.
13782         * libc/sys/win32/dirsearch.c: Clean up handle usage, fix calls to __seterrno.
13783         * libc/sys/win32/exceptions.c: Lint.
13784         * libc/sys/win32/{ioctl.c, pipe.c, resource.c, spawn.c, cwait.c, syscalls.c}:
13785         Clean up handle usage.
13786         * libc/sys/win32/syscalls.c (__sys_printf): Moved into strace.c
13787         (open.c): Default file type is text.
13788         * libc/sys/win32/uname.c (uname): Use __small_sprintf.
13789         * libc/sys/win32/advapi32.def: New      
13790
13791 Fri Aug 11 17:11:52 1995  Doug Evans  <dje@canuck.cygnus.com>
13792
13793         * configure.in (posix_dir, libc_posix_lib): New variables.
13794         Define LIBC_POSIX_LIB in makefile to be $libc_posix_lib.
13795         (i[345]86-*-win32): Define posix_dir.
13796         Delete -DNO_EXEC.  Define -DHAVE_OPENDIR.
13797         (if unix_dir): Fix typo.
13798         * libc/posix/{Makefile.in,closedir,opendir,readdir,rewinddir,
13799         scandir,seekdir,telldir}: New files.
13800         * libc/posix/{execl.c,execle.c,execlp.c,execv.c,execvp.c}: Move here
13801         from libc/unix.
13802         * libc/Makefile.in (LIBC_POSIX_LIB): Define.
13803         (SUBDIRS): Add posix.
13804         (SUBLIBS): Add $(LIBC_POSIX_LIB).
13805
13806         * libc/include/sys/signal.h (SIGCHLD): Add for _WIN32.
13807         (NSIG): Increase to 21.
13808         * libc/include/sys/unistd.h (pid_t): Move from here,
13809         * libc/include/sys/types.h (pid_t): to here.
13810
13811         * libc/sys/win32/syscalls.h: #include "sys/strace.h".
13812         (__ptrace): Delete.
13813         (hinfo): New members close_exec_p, child_created_p.
13814         (struct exception_list): Define.
13815         (__hmap): Redefine as pointer to table.
13816         (__parent_hmap, __child_hmap): New globals.
13817         (__set_errno, __really_exit): Declare.
13818         (__vfork_child_pid): Declare.
13819         * libc/sys/win32/crt0.c (__strace, __trace_file): New global.
13820         (__orig_stdin, __orig_stdout, __orig_stderr): New globals.
13821         (__parent_hmap, __child_hmap): New globals.
13822         (__hmap): Redefine as pointer to active map.
13823         (__get_console): New function.
13824         (mainCRTStartup): Change leading '=' in environ vars to '!'.
13825         (env __FD_TABLE__): Watch for this and initialize our fd/handle
13826         mapping table from it if defined.
13827         (argv, envp): Dump if __strace >= 4.
13828         (main): Call here.
13829         * libc/sys/win32/exceptions.c (myp): Redefine.
13830         (__syscalls_b): Delete.
13831         (__stack_trace): New function.
13832         (ehandler3): Update to use _STRACE.  Print stack trace.
13833         Call __really_exit instead of exit.
13834         (init_exceptions): Delete args argc,argv.  New arg mine.
13835         * libc/sys/win32/kernel32.def (CreatePipe, DuplicateHandle, FindClose,
13836         FindFirstFileA, FindNextFileA, GetComputerNameA,
13837         GetEnvironmentVariableA, ReadFile, SetEnvironmentVariableA): Define.
13838         * libc/sys/win32/signal.c (signal): Validate arg.
13839         (alarm, sleep): Define as stubs for now.
13840         * libc/sys/win32/syscalls.c (all fns): Update to use _STRACE.
13841         (__syscalls_b, errno): Delete.
13842         (__vfork_child_pid, __vfork_jmp_buf): New globals.
13843         (__seterrno): Handle more errors.
13844         (__sys_printf): Renamed from _ptrace.
13845         (__really_exit): New function.
13846         (queue_file_deletion, process_deletion_queue): New functions.
13847         (__resume_parent): New function.
13848         (_unlink): Handle trying to delete open file.
13849         (__totime_t): Renamed from totime_t.
13850         (setsid, __read, __write): New functions.
13851         (cwait, spawnvp, R, D, getrusage, _execve, _fork, _wait): Delete.
13852         * libc/sys/win32/{dirsearch.c,getlogin.c,misc.c,resource.c,passwd.c,
13853         times.c,spawn.c,pipe.c,wait.c,termios.c,ioctl.c,uname.c}: New files.
13854         * libc/sys/win32/console.c: Update to new definition of __hmap.
13855         * libc/sys/win32/Makefile.in: Build new files.
13856         * libc/sys/win32/sys/{dirent.h,winerror.h,wait.h,termios.h}: New files.
13857         * libc/sys/win32/sys/{ioctl.h,utsname.h}: New files.
13858         * libc/sys/win32/sys/strace.h: Renamed from ptrace.h.
13859         * libc/sys/win32/sys/wintypes.h (GetCurrentDirectoryA): Fix prototype.
13860
13861 Thu Aug 10 16:32:52 1995  Doug Evans  <dje@canuck.cygnus.com>
13862
13863         * libc/sys/h8500hms/misc.c (kill): Handle SIGABRT.
13864
13865 Thu Aug 10 12:07:38 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
13866
13867         * libc/stdlib/{dtoa.c, strtod.c}: Merged assorted changes that
13868         have been made to the master dtoa.c sources (from netlib.att.com)
13869         since they were integrated into newlib in early 1992.  Fixes
13870         problems with storage leaks and handling of numbers with very
13871         negative exponents.
13872         
13873 Wed Aug  9 14:18:39 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
13874
13875         * Makefile.in (all): set rootpre and srcrootpre before calling
13876         sub-makes.
13877
13878 Tue Aug  8 17:20:45 1995  steve chamberlain  <sac@slash.cygnus.com>
13879
13880         * libc/sys/win32/crt0.c: Change __hmap usage.
13881         * libc/sys/win32/exceptions.c: Use _ptrace call.
13882         * libc/sys/win32/syscalls.c: Use _ptrace call.
13883         (read, write): Cope with DOS style CRLF when in TEXT mode.
13884         * libc/sys/win32/syscalls.h: Declare hinfo struct.
13885         * libc/sys/win32/user32.def: Get DefWindowProc arg list right.
13886         * libc/sys/win32/sys/fcntl.h, ptrace.h: New.
13887         * libc/sys/win32/sys/windows.h: Fill in rest of messages.
13888         * libc/sys/win32/sys/wintypes.h: Fix attribute syntax.
13889
13890 Mon Aug  7 13:04:54 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
13891
13892         * libc/include/math.h (cabs, cabsf, drem, dremf): New declarations.
13893
13894         * libm/math/{w_cabs.c, wf_cabs.c, w_drem.c, wf_drem.c}: New files,
13895         wrappers for hypot() and remainder() for BSD libm compatibility.
13896         These are public domain implementations written by me for the
13897         NetBSD libm some time ago.  Note cabs() is required by ucbtest.
13898         * libm/math/Makefile.in (obj): Added w_cabs.o and w_drem.o.
13899         (fobj): Added wf_cabs.o and wf_drem.o.
13900
13901 Thu Aug  3 08:13:05 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
13902
13903         * libc/sys/h8500hms/misc.c: New file.
13904         * libc/sys/h8500hms/Makefile.in (OFILES): Add misc.o.
13905
13906 Wed Aug  2 16:46:27 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
13907
13908         * libc/time/localtime.c (localtime): Fix problem with leap year
13909         handling.  Stole algorithm from Arthur David Olson's tz code.
13910         
13911 Mon Jul 31 10:21:54 1995  steve chamberlain  <sac@slash.cygnus.com>
13912
13913         * configure.in: (z8k-*sim): Renamed z8k-*-coff.
13914
13915         * libc/sys/z8ksim/glue.c (_getpid, _kill): New
13916         (_exit): Use argument.
13917
13918 Fri Jul 28 15:17:04 1995  Doug Evans  <dje@canuck.cygnus.com>
13919
13920         * libc/sys/win32/sys/winbase.h (_WINBASE_H): Define.
13921
13922 Wed Jul 26 16:24:19 1995  steve chamberlain  <sac@slash.cygnus.com>
13923
13924         * libc/sys/sh/trap.S (perrno): Align correctly. (pr 7532)
13925
13926 Mon Jul 24 13:42:52 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
13927
13928         * configure.in (sparc*): Add -DMALLOC_ALIGNMENT=8 to
13929         target_cflags.
13930
13931 Mon Jul 24 11:42:07 1995  steve chamberlain  <sac@slash.cygnus.com>
13932
13933         * libc/sys/win32/crt0.c (mainCRTStartup):  Look for
13934         ptrace with case insensitivity
13935         * libc/sys/win32/{user32.def, gdi32.def, exceptions.c, screen.c,
13936         sys/winbase.h,  sys/windows.h, sys/wintypes.h, sys/winuser.h}:
13937         New files.
13938
13939 Fri Jul 21 11:22:26 1995  Doug Evans  <dje@canuck.cygnus.com>
13940
13941         * Makefile.in: Multilib support moved to ../cfg-ml-{com,pos}.in.
13942         (MULTITOP, MULTIDIRS, MULTISUBDIR, MULTIDO, MULTICLEAN): New variables.
13943         (all, install, *clean): Use new multilib support.
13944         * configure.in: Multilib support moved to ../cfg-ml-{com,pos}.in.
13945
13946 Fri Jul 21 07:11:42 1995  steve chamberlain  <sac@slash.cygnus.com>
13947
13948         * libc/include/sys/signal.h (__WIN32__): New.
13949
13950         * configure.in (i386-*-win32): Remobe SBRK_IS_ALLOC.
13951
13952         * libc/stdlib/mprec.c (Balloc): Fix trampling problem.
13953         (ulp, b2d): Handle 32 bit doubles.
13954         * libc/stdlib/mprec.h:  Handle 32 bit doubles.
13955         * libc/stdlib/strtod.c (_strtod_r): Ditto.
13956
13957 Fri Jul 14 08:24:58 1995  steve chamberlain  <sac@slash.cygnus.com>
13958
13959         from medp@primag.co.uk:
13960         * libc/stdio/setvbuf.c (setvbuf): Fix line buffering on
13961         dynamically allocated buffers.
13962
13963 Thu Jul 20 10:11:03 1995  Fred Fish  <fnf@fishbowl>
13964
13965         * libc/include/sys/unistd.h (_exit):  Add _ATTRIBUTE ((noreturn)).
13966         * libc/stdlib/exit.c (unistd.h):  Include to pick up _exit() declaration.
13967
13968 Thu Jul 20 10:16:25 1995  Michael Meissner  <meissner@tiktok.cygnus.com>
13969
13970         * configure.in (powerpc): Fix previous fix.
13971
13972 Wed Jul 19 14:08:55 1995  Michael Meissner  <meissner@tiktok.cygnus.com>
13973
13974         * configure.in (powerpc-*eabiaix*): Update PowerPC multilib
13975         directories for this target.
13976
13977 Wed Jul 19 00:34:30 1995  Jeffrey A. Law  <law@rtl.cygnus.com>
13978
13979         * configure.in (hppa): Add machine_dir definition.
13980         * libc/machine/hppa: New directory with PA specific implementations
13981         of the basic memory/string functions.
13982
13983 Tue Jul 18 21:16:00 1995  Michael Meissner  <meissner@tiktok.cygnus.com>
13984
13985         * configure.in: Update current PowerPC multilib directories.
13986         Split big and little endian configurations.
13987
13988 Tue Jul 18 11:55:33 1995  Ian Lance Taylor  <ian@cygnus.com>
13989
13990         * configure.in: Add --enable-single-float option to configure to
13991         control use of MIPS single-float directories.  Default to yes.
13992
13993         * Makefile.in (all): Don't recurse into multilib directory if it
13994         does not exist.
13995
13996 Mon Jul 17 15:51:30 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
13997
13998         * libc/sys/sh/syscalls.c: Fix typo.
13999
14000 Mon Jul  3 14:38:52 1995  Steve Chamberlain  <sac@slash.cygnus.com>
14001
14002         * Makefile.in, libc/Makefile.in, libc/sys/Makefile.in:
14003         Pass down DLLTOOL.
14004         * libc/include/process.h: Define WAIT_CHILD.
14005         * libc/include/types.h: Get sizes right for win32.
14006         * configure.in (i386-*-pe): Becomes i386-win32.
14007         * libc/sys/win32/{crt0.c, kernel32.def, longjmp.c, setjmp.c, syscalls.c
14008         wintypes.h,sys/file.h,sys/resource.h}: Second pass.
14009         * libc/stdlib/mallocr.c: Don't round up memory block if SBRK_IS_ALLOC
14010         is defined.
14011
14012 Wed Jun 28 18:34:54 1995  Steve Chamberlain  <sac@slash.cygnus.com>
14013
14014         * configure.in (i[345]86-*-pe):  New target (NT).
14015         * host/any: DLLTOOL new.
14016         * libc/sys/win32/{crt0.c, kernel32.def, longjmp.c, setjmp.c, syscalls.c
14017         wintypes.h,sys/file.h,sys/resource.h}: Preliminary support for
14018         WIN32 (just enough to cross host the comp-tools).
14019
14020 Thu Jun 22 11:45:18 1995  Doug Evans  <dje@canuck.cygnus.com>
14021
14022         * libc/machine/h8300/{cmpsi.S,ucmpsi.S,divhi3.S,mulhi3.S,mulsi3.S}:
14023         Deleted.  These files live in gcc/config/h8300/lib1funcs.asm now.
14024
14025 Mon Jun 19 11:40:40 1995  Doug Evans  <dje@canuck.cygnus.com>
14026
14027         * libc/include/machine/ieeefp.h (arm): Change to always be
14028         __IEEE_BIG_ENDIAN (even on little endian ARM's).
14029
14030 Thu Jun  8 14:22:28 1995  Steve Chamberlain  <sac@slash.cygnus.com>
14031
14032         * libc/sys/crt0.S: Initialze sp, and call exit after main.
14033         * libc/sys/syscalls.c (abort): New.
14034         * configure.in (arm): Define ABORT_PROVIDED.
14035
14036 Wed Jun  7 14:04:35 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
14037
14038         * configure.in (powerpc): Define multidirs.
14039
14040 Mon Jun  5 16:10:13 1995  Doug Evans  <dje@canuck.cygnus.com>
14041
14042         * libc/sys/arm/crt0.S: Add __USER_LABEL_PREFIX__ support.
14043
14044 Thu Jun  1 10:51:47 1995  Sean Eric Fagan <sef@cygnus.com>
14045
14046         * configure.in (sparclite): Delete target_cflags.  Define multidirs.
14047
14048 Wed May 24 14:23:25 1995  Steve Chamberlain  <sac@slash.cygnus.com>
14049
14050         * configure.in, libc/include/machine/ieeefp.h: Modified
14051         for arm:
14052         libc/machine/arm/*, libc/sys/arm/*: New
14053
14054 Tue May 23 13:53:07 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
14055
14056         * libc/include/machine/ieeefp.h: Use __PPC__ instead of
14057           __powerpc__ when determining endianness.
14058
14059 Wed May 10 07:55:56 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
14060
14061         * configure.in (m68*): Add multidir for the m68332.
14062
14063         * host/any (CC): Fix typo in last change.
14064
14065 Fri Apr 14 22:20:31 1995  Ken Raeburn  <raeburn@cujo.cygnus.com>
14066
14067         * libc/include/sys/config.h: Test __m68k__ instead of __m68000__
14068         when determining endianness.
14069         * libc/include/machine/ieeefp.h: Ditto.
14070         * libc/machine/m68k/setjmp.S: Use '&' instead of '#' for immediate
14071         operands.
14072
14073 Fri Apr 14 14:14:29 1995  Doug Evans  <dje@chestnut.cygnus.com>
14074
14075         * libc/include/errno.h (ENOTEMPTY): Define.
14076
14077 Thu Apr  6 12:21:20 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
14078
14079         * configure.in (sparc-sun-sunos*): Add -DMALLOC_ALIGNMENT=8 to
14080           target_cflags.
14081
14082         * libc/sys/sun4/Makefile.in (COPYOFILES): Added rem.o, multiply.o,
14083           and umultiply.o.
14084
14085         * libc/stdio/tmpnam.c (worker): Unconditionally increment count
14086           instead of only when open succeeds.  ANSI requires that multiple
14087           calls to tmpnam() result in different files.
14088
14089         * libc/sys/sun4/Makefile.in (COPYRENAMEOFILES): New macro, list of
14090           objects pulled in from /lib/libc.a that must be renamed before
14091           being pulled into newlib.  /lib/libc.a's div.o conflicted with
14092           newlib's file with the same name.
14093
14094         * libc/stdlib/ldiv.c (ldiv): Call labs() instead of abs().
14095
14096         * host/any (CC, AS, AR, RANLIB): Changed so that executables in
14097           the build tree will only be used if the executables are present
14098           (instead of just the Makefiles).
14099
14100         * libc/include/stdlib.h (mblen, mbtowc, wctomb, mbstowcs,
14101           wcstombs): Define.
14102         * libc/stdlib/{mblen.c, mbstowcs.c, wcstombs.c}: New files, null
14103           versions of these functions that I orignally wrote for the
14104           NetBSD C library.
14105         * libc/stdlib/{mbtowc.c, wctomb.c}: Replaced functions with
14106           versions I wrote for NetBSD.
14107
14108 Wed Mar 29 12:42:42 1995  Kung Hsu  <kung@mexican.cygnus.com>
14109
14110         * libc/sys/sparclite/Makefile.in: add crt0.s and make info.
14111         * libc/sys/sparclite/crt0.s: ditto.
14112
14113 Tue Mar 28 20:28:03 1995  Rob Savoye  <rob@rtl.cygnus.com>
14114
14115         * configure.in: Add soft-float for proelf.
14116
14117 Mon Mar 27 12:07:56 1995  Steve Chamberlain  <sac@bang.hack.com>
14118
14119         * libc/stdlib/mprec.h (Bcopy): Copy the right number
14120         of bytes.
14121
14122 Mon Mar 27 11:24:22 1995  Doug Evans  <dje@chestnut.cygnus.com>
14123
14124         * Makefile.in (all): Depend on `force'.
14125         * configure.in (syscall_dir): Renamed from fake_sys_dir.
14126         (libc_syscall_lib): Renamed from libc_fake_sys_lib.
14127         (LIBC_SYSCALL_LIB): Renamed from LIBC_FAKE_SYS_LIB.
14128         * libc/Makefile.in: Likewise.
14129         * libc/include/reent.h: Update syscall references.
14130         (_fcntl_r): Add prototype.
14131         * libc/syscalls/*.c #include <reent.h>.
14132         (*) Call reentrant version if REENTRANT_SYSCALLS_PROVIDED.
14133
14134 Mon Mar 20 16:57:39 1995  Doug Evans  <dje@deneb.cygnus.com>
14135
14136         * libc/include/sys/stat-dj.h (S_ISBLK): Define.
14137         (S_ISCHR, S_ISDIR, S_ISFIFO, S_ISREG): Define.
14138         * libc/include/sys/stat.h (stat-dj.h): Include ifdef MSDOS.
14139         (time.h, sys/types.h): Always include (even if MSDOS).
14140         (stat): Fix prototype.
14141
14142 Fri Mar 10 11:30:38 1995  Ian Lance Taylor  <ian@cygnus.com>
14143
14144         * configure.in (i[345]86-*-go32): Compile with -DNO_EXEC.
14145
14146 Mon Feb 27 18:00:39 1995  Jim Wilson  <wilson@chestnut.cygnus.com>
14147
14148         * libc/machine/h8500/psi.S (EXTPSIHI_RN_SN): Ifdef out.
14149
14150 Mon Feb 13 16:10:03 1995  Ian Lance Taylor  <ian@cygnus.com>
14151
14152         * libc/include/regdef.h: New file.
14153         * libc/machine/mips/machine/regdef.h: New file.
14154
14155 Mon Feb  6 15:24:29 1995  Doug Evans  <dje@canuck.cygnus.com>
14156
14157         * libc/sys/sparc64/sys/fcntl.h (open): Add ellipsis.
14158
14159 Fri Jan 27 13:52:10 1995  Steve Chamberlain  <sac@splat>
14160
14161         * libc/sys/sh/crt0.S: Pass main's return to exit.
14162         * libc/sys/sh/trap.S: Put errno in the right place.
14163
14164 Tue Jan 24 18:57:56 1995  Ian Lance Taylor  <ian@sanguine.cygnus.com>
14165
14166         * libm/math/e_rem_pio2.c (__ieee754_rem_pio2): Integrate change
14167         from fdlibm 5.2: handle |x| < 3pi/4 more efficiently.
14168         * libm/math/ef_rem_pio2.c: Likewise.
14169         * libm/math/e_log10.c: Remove unused static one.
14170         * libm/math/ef_log10.c: Likewise.
14171         * libm/math/s_frexp.c: Likewise.
14172         * libm/math/sf_frexp.c: Likewise.
14173
14174 Sun Jan 22 21:26:14 1995  Steve Chamberlain  <sac@splat>
14175
14176         * libc/sys/go32/Makefile.in, clock.S, dir.c, setjmp.S, stat.c,
14177         longjmp.S: Upgraded.
14178         * libc/sys/go32/sys/setjmp.h: Upgraded.
14179         * libc/sys/go32/sys/go32.h, dpmi.h: New files.
14180
14181 Fri Jan 20 18:33:18 1995  Ian Lance Taylor  <ian@sanguine.cygnus.com>
14182
14183         * configure.in: Add many entries to multidirs for mips targets.
14184
14185 Wed Jan 18 10:19:25 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
14186
14187         * libm/math/e_jn.c (__ieee754_yn): Integrate change from fdlibm
14188           5.2 which fixes bug where jn(-1,x) is three times larger than
14189           the actual answer.
14190         * libm/math/ef_jn.c (__ieee754_ynf): Likewise.
14191
14192 Sun Jan 15 21:48:58 1995  Steve Chamberlain  <sac@splat>
14193
14194         * libc/sys/w65/sys/syscalls.h: New file
14195         * libc/include/machine/ieeefp.h: W65 support.
14196         * libc/include/sys/config.h: Ditto.
14197         * libc/machine/w65/Makefile.in, cmpsi, divsi3, lshrhi.s, mulsi3.c,
14198         sdivhi3.s, smulhi3.s, udivhi3.s, umodhi3.s: New files.
14199         * libc/sys/w65/Makefile.in, crt0.c, syscalls.c, trap.c: New files.
14200
14201 Wed Jan 11 15:59:01 1995  Ian Lance Taylor  <ian@sanguine.cygnus.com>
14202
14203         * libc/sys/Makefile.in (lib.a, crt0.o): Depend upon subs.
14204
14205 Tue Jan  3 15:57:03 1995  Rob Savoye  <rob@darkstar.cygnus.com>
14206
14207         * Makefile.in, configure.in: Remove any references to the old
14208         "stub" dir.
14209
14210 Thu Dec 22 10:42:08 1994  Ian Lance Taylor  <ian@sanguine.cygnus.com>
14211
14212         * libc/syscalls/sysopen.c: Write _HAVE_STDC version of open, which
14213         uses ... in prototype.
14214
14215
14216 Wed Nov 30 08:39:42 1994  Ian Lance Taylor  <ian@rtl.cygnus.com>
14217
14218         * libc/sys/a29khif/sys/libconfig.h: Remove.
14219         * libc/sys/go32/sys/libconfig.h: Remove.
14220         * libc/sys/sun4/sys/libconfig.h: Remove.
14221         * libc/sys/sysvi386/sys/libconfig.h: Remove.
14222         * libc/sys/sysvnecv70/sys/libconfig.h: Remove.
14223         * libc/sys/sparc64/sys/libconfig.h: Remove.
14224
14225         * libc/include/_ansi.h (_FLOAT_ARG, _FLOAT_RET): Don't define.
14226         * libc/include/sys/config.h (_FLOAT_ARG, _FLOAT_RET): Likewise.
14227         * libc/include/math.h: Change all uses of _FLOAT_RET and
14228         _FLOAT_ARG to float.
14229         * libm/test/math.c: Likewise.
14230         * testsuite/libm.sac/math.c: Likewise.
14231         * testsuite/libm.sac/working/math.c: Likewise.
14232
14233 Wed Nov 23 22:39:28 1994  Steve Chamberlain  (sac@jonny.cygnus.com)
14234
14235         * libc/sys/sh/trap.s,crt0.s,setjmp.s: Renamed with .S so that
14236         gcc calls gas with endian option.
14237         * configure.in (sh): Build little endian version too.
14238
14239 Wed Nov 16 18:21:45 1994  Ian Lance Taylor  <ian@sanguine.cygnus.com>
14240
14241         * configure.in: Configure big and little endian versions for MIPS
14242         targets.
14243
14244 Sat Nov 12 21:12:51 1994  Doug Evans  <dje@canuck.cygnus.com>
14245
14246         * libc/include/limits.h: Deleted.
14247         * libc/include/machine/limits.h: Deleted.
14248
14249 Thu Nov 10 15:32:44 1994  Rob Savoye  <rob@rtl.cygnus.com>
14250
14251         * ChangeLog: Remove stub directory. This has all been rewritten
14252         and moved to devo/libgloss.
14253
14254 Thu Sep 29 18:31:04 1994  Ian Lance Taylor  <ian@sanguine.cygnus.com>
14255
14256         * Makefile.in (dvi): Add to info target, use $@ in sub make.
14257         (docs): Merge into info target.
14258         * libm/Makefile.in (dvi): Add $(srcdir).
14259         * libm/math/Makefile.in (chobjs): Remove underscores from file
14260         names.  Texinfo doesn't like them.
14261         (wacos.def, ...): Add explicit targets for all .def files.
14262         * libm/math/math.tex: Remove underscores from @include file names.
14263         * doc/Makefile.in (dvi): Add dummy target.
14264         * testsuite/Makefile.in (dvi): Add dummy target.
14265
14266 Mon Sep 26 21:17:46 1994  Doug Evans  (dje@canuck.cygnus.com)
14267
14268         * Makefile.in (VERSION): Define.  For net newlib releases.
14269
14270 Thu Sep 22 19:01:26 1994  Doug Evans  (dje@canuck.cygnus.com)
14271
14272         * README: New file.
14273
14274 Mon Sep 19 16:35:23 1994  Jim Wilson  (wilson@sphagnum.cygnus.com)
14275
14276         * libc/stdlib/ecvtbuf.c (_gcvt): Undo last change.
14277
14278 Mon Sep 19 11:44:23 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
14279
14280         * libc/stdlib/setenv.c (_findenv): Declare.
14281
14282         * libc/include/sys/fcntl.h: Fix declarations of open, creat, and
14283         fcntl to not use _EXFUN, and change string parameters to open and
14284         creat to be ``const char *''.
14285         * libc/sys/sparc64/sys/fcntl.h: Likewise.
14286         * libc/sys/sparc64/creat.c (creat): Make PATH const.
14287         * libc/syscalls/sysopen.c: Include <fcntl.h>.
14288         (open) Make _FILE const.
14289         * libc/sys/z8ksim/glue.c (_open): Make BUF const.
14290         (_creat): Make PATH const.
14291         * libc/sys/h8300hms/syscalls.c (_open): Make PATH const.
14292         * libc/sys/h8500hms/syscalls.c (_open): Likewise.
14293         * libc/sys/m88kbug/syscalls.c (open): Likewise.
14294         * libc/sys/sh/syscalls.c (_open): Likewise.
14295         * stub/shared/glue.c (open): Make BUF const.
14296         * stub/ex93x/syscalls.c (open): Make FILENAME const.
14297
14298 Thu Sep  8 16:39:12 1994  Steve Chamberlain  (sac@jonny.cygnus.com)
14299
14300         * libc/include/errno.h: Add ENMFILE
14301         * libc/include/sys/config.h: Support Z8000.
14302         * libc/include/sys/signal.h: New signals for go32.
14303         * libc/machine/h8500/psi.S (__addpsir0r0): New function
14304         * libc/machine/h8500/cmpsi.S (__ucmppsi2): New function
14305         * libc/machine/sh/sdivsi3.s (__sdivsi3): Rewritten.
14306         * libc/stdlib/mallocr.c (_morecore_r): Minimum chunk
14307         size is variable, depending upon CHUNK_POWER.
14308         * libc/sys/go32/*.c: Upgrade to new go32 stuff.
14309
14310 Sun Sep  4 17:42:43 1994  Jim Wilson  (wilson@sphagnum.cygnus.com)
14311
14312         * libc/stdlib/ecvtbuf.c (_gcvt): Output '-' for negative numbers.
14313
14314 Fri Sep  2 10:56:01 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
14315
14316         * libc/include/_ansi.h (_PARAMS): Don't define if already defined.
14317
14318 Wed Aug 24 11:11:03 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
14319
14320         * configure.in: Change i[34]86 to i[345]86.
14321
14322         * libc/include/math.h: Don't define HUGE_VAL if it is already
14323         defined.
14324
14325 Wed Aug 17 15:18:02 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
14326
14327         * testsuite/libm.sac/test_erfc.c: Correct some result values.
14328         * testsuite/libm.sac/test_gammaf.c: Likewise.
14329         * testsuite/libm.sac/test_sin.c: Likewise.
14330         * testsuite/libm.sac/test_tanh.c: Likewise.
14331
14332 Tue Aug 16 16:12:53 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
14333
14334         * libc/include/machine/ieeefp.h: Don't try set endianness if it is
14335         already set.  Define typedefs __int32_t and __uint32_t.
14336         * libc/include/math.h: Include <machine/ieeefp.h>.
14337         (union __dmath): Use __uint32_t.
14338         * libm/math/fdlibm.h, libm/math/*.c: Use __int32_t and __uint32_t
14339         instead of int and unsigned int.
14340
14341 Thu Aug 11 15:16:09 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
14342
14343         Replace the math library with the SunPRO fdlibm package.
14344         * libm/math: Completely changed all files.
14345         * libm/ieeefp: Remove contents and directory.
14346         * libm/Makefile.in (LIBM_FP_LIB): Remove.
14347         (SUBDIRS): Just set to math/lib.a.
14348         * libm/libm.texinfo: Updated for new library.
14349         * libc/include/math.h: Extensive changes for new math library.
14350         * libc/include/ieeefp.h (isnanf, isinff, finitef): Change argument
14351         from _FLOAT_ARG to float.
14352         (maxpowtwo, maxpowtwof): Don't declare.
14353         * configure.in (fp_dir): Removed; was always ieeefp anyhow.
14354         (libm_fp_lib): Removed.
14355         * Makefile.in (MATHOBJS_IN_LIBC): Updated with new file names.
14356         * testsuite/libm.paranoia/Makefile.in (check): Correct --srcdir
14357         argument to ${RUNTEST}.
14358         * testsuite/libm.sac/Makefile.in (LOCAL_CFLAGS): Define.
14359         (.c.o): New rule.
14360         (RUNTESTFLAGS): Set CC and CFLAGS.
14361         (TESTS): Remove test_log2 and test_log2f.
14362         (${TESTS}): Pass ${LOCAL_CFLAGS}, not ${CFLAGS}.
14363         * testsuite/libm.sac/math.c (run_vector_1): Use float, not
14364         _FLOAT_ARG, for single precision argument type.
14365         * testsuite/libm.sac/sac.exp: Treat an error in bit 63 as an
14366         expected failure.  Close the input pipe.
14367         * testsuite/libm.sac/test.c (test_sok, test_iok, test_scok):
14368         Correct misspelling of inaccurate.
14369         (test_mok): Use ``inaccurate'', not ``wrong''.
14370         * testsuite/libm.sac/{test_acos.c, test_acosh.c, test_asin.c,
14371         test_asinh.c, test_atan.c, test_atanh.c, test_ceil.c,
14372         test_ceilf.c, test_cos.c, test_cosh.c, test_erf.c, test_erf.c,
14373         test_fabs.c, test_floor.c, test_floorf.c, test_fmod.c,
14374         test_fmodf.c, test_gamma.c, test_log1p.c, test_log1pf.c,
14375         test_yn.c): Correct many result values.  Many are still wrong.
14376
14377         * libc/stdlib/ecvtbuf.c (print_e): If _dtoa_r sets decpt to 9999,
14378         just copy the string.
14379         (_gcvt): Always return the buffer.
14380
14381 Tue Aug  9 13:43:23 1994  J.T. Conklin  (jtc@phishhead.cygnus.com)
14382
14383         * bcopy.c: fixed documentation, bcopy was not specified by ANSI.
14384
14385 Wed Aug  3 05:39:41 1994  D. V. Henkel-Wallace  (gumby@cygnus.com)
14386
14387         * libc/include/sys/reent.h: (struct _Bigint): add _reclaim
14388         structure.
14389         (struct _reent): add _p5s, _cvtlen, _cvtbuf.
14390         (_reclaim_reent): declare new entry point.
14391         * libc/reent/reent.c (cleanup_glue, _reclaim_reent): new
14392         functions.
14393
14394         * libc/stdlib/mprec.c (Balloc): Keep track of every struct bigint
14395         ever allocated, so that we can later reclaim them all.
14396         (pow5mult): make reentrant.
14397
14398         * libc/stdlib/ecvtbuf.c (fcvtbuf, ecvtbuf): extend these functions
14399         so that when given NULL as a buffer, return a pointer to static
14400         space in the rent structure.  This is not documented behaviour;
14401         it's only to support ecvt and fcvt, which aren't ANSI anyway.
14402         * libc/stdlib/efgcvt.c (fcvt, ecvt) Use new functionality (and
14403         therefore become reentrant).
14404         
14405         * libc/stdlib/dtoastub.c: remove spurious inclusion of mprec.h.
14406
14407 Mon Aug  1 16:52:24 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
14408
14409         * libc/include/machine/ieeefp.h: Check _AM29K, not ___AM29K__.
14410
14411 Thu Jul 28 15:40:21 1994  J.T. Conklin  (jtc@phishhead.cygnus.com)
14412
14413         * Makefile.in: Make link to libg.a after libc.a; this is needed
14414           for the testsuites to build executables when everything comes
14415           from the tree.
14416
14417 Mon Jun 27 17:14:29 1994  Bill Cox  (bill@rtl.cygnus.com)
14418
14419         * libc/Makefile.in: Add a VERSION variable so we can keep track.
14420         * libm/Makefile.in: Add a VERSION variable so we can keep track.
14421
14422 Wed Jun 22 10:26:00 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
14423
14424         * libc/include/stdio.h: Use __VALIST, not va_list.
14425
14426 Tue May 17 15:43:28 1994  Bill Cox  (bill@rtl.cygnus.com)
14427
14428         * testsuite/config/unix-libm.exp, testsuite/lib/libm.exp,
14429         testsuite/libm.sac/execute.exp:
14430           Replace error proc calls with perror calls.
14431
14432 Wed May 11 09:25:28 1994  Doug Evans  (dje@canuck.cygnus.com)
14433
14434         * libc/include/*.h: #include "_ansi.h" instead of <_ansi.h>.
14435         * libc/include/time.h: #define NULL as 0L.
14436
14437 Mon May  9 18:41:20 1994  Doug Evans  (dje@canuck.cygnus.com)
14438
14439         * host/any (INCLUDES): Delete -I of gcc/include, gcc -B takes
14440         care of it.
14441
14442 Mon May  9 18:39:39 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
14443
14444         * libc/include/sys/signal.h: Check for __GO32__, not __i386__ and
14445         not __unix__.
14446
14447 Sat May  7 17:07:36 1994  Steve Chamberlain  (sac@cygnus.com)
14448
14449         * configure.in (TARGET_CFLAGS): Set -O2 as default.
14450         (z8k-*-*): Use syscalls fake sys dir.
14451         * libc/sys/z8k/glue.c: Rename syscalls.
14452         * libc/sys/go32/Makefile.in: Use new routines.
14453         * libc/machine/Makefile.in: Fix typo in ln stuff.
14454
14455 Thu May  5 13:47:48 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
14456
14457         * Makefile.in (libm.a, crt0.o): Use cp if ln fails.
14458         * libc/Makefile.in (crt0.o): Likewise.
14459         * libc/machine/Makefile.in (lib.a): Likewise.
14460         * libc/sys/Makefile.in (lib.a, crt0.o): Likewise.
14461
14462         All Makefile.in files: Added mostlyclean, realclean and distclean
14463         targets.
14464
14465         * Makefile.in: Don't bother to unexport XTRAFLAGS or
14466         XTRAFLAGS_FOR_TARGET, since they are no longer passed down from
14467         the top level Makefile.
14468
14469 Tue Apr 26 15:10:34 1994  Doug Evans  (dje@canuck.cygnus.com)
14470
14471         * libc/sys/sparc64/sys/stat.h: New file.
14472         * libc/sys/sparc64/sys/time.h: New file.
14473         * libc/sys/sparc64/sys/types.h: New file.
14474
14475 Fri Apr 22 12:58:24 1994  Stan Shebs  (shebs@andros.cygnus.com)
14476
14477         * stub/ex93x/crt0.s (start): Add code to clear bss.
14478
14479 Wed Apr 13 10:34:58 1994  Doug Evans  (dje@canuck.cygnus.com)
14480
14481         * libc/include/sys/types.h (time_t): Properly protect inside
14482         #ifndef __time_t_defined.
14483
14484         * libc/stdio/fileno.c: New file.
14485         * libc/stdio/Makefile.in (OFILES, CHEWOUT_FILES): Add fileno.
14486         (fileno.o): Add dependency.
14487         * libc/include/stdio.h (__sgetc): Rename never to _never.
14488         (fileno macro): Disable, needs to do CHECK_INIT first.
14489
14490 Mon Apr 11 17:37:09 1994  Bill Cox  (bill@rtl.cygnus.com)
14491
14492         * testsuite/Makefile.in (EXPECT, RUNTEST): Set these for the check
14493         goal.
14494
14495         * testsuite/Makefile.in (check): Set TCL_LIBRARY for runtest.
14496         * testsuite/libm.paranoia/Makefile.in (check): Set TCL_LIBRARY for
14497         runtest.
14498         * testsuite/libm.sac/Makefile.in (check): Set TCL_LIBRARY for
14499         runtest.
14500
14501 Sat Apr  9 16:18:09 1994  Doug Evans  (dje@cygnus.com)
14502
14503         * libc/sys/sparc64/sys/fcntl.h: New file, define solaris versions
14504         of the various constants.
14505
14506 Thu Apr  7 21:19:07 1994  Mark Eichin  (eichin@cygnus.com)
14507
14508         * libc/include/math.h: #ifndef __math_68881 around things which
14509         conflict with the (gcc-provided) inline functions in
14510         gcc/ginclude/math-68881.h.
14511
14512 Thu Apr  7 02:50:43 1994  Doug Evans  (dje@cygnus.com)
14513
14514         * libc/include/_syslist.h (_gettimeofday): Define.
14515         (_times): Ditto.
14516         * libc/include/reent.h: #include <machine/types.h> to get _CLOCK_T_.
14517         (struct tms, timeval, timezone): Declare.
14518         (_gettimeofday_r, _times_r): Declare.
14519         * libc/include/time.h (_CLOCK_T_): Don't #undef.  Remove
14520         #ifdef _CLOCK_T_ surrounding definition of clock_t.
14521         (time_t): Add multiple definition protection, __time_t_defined.
14522         * libc/include/sys/time.h: Don't #include <time.h>.
14523         Always define struct timezone (remove #ifndef _TIME_H_).
14524         * libc/include/sys/times.h (_CLOCK_T_): Don't #undef.  Remove
14525         #ifdef _CLOCK_T_ surrounding definition of clock_t.
14526         * libc/reent/Makefile.in (OFILES): Add timer.o.
14527         (CHEWOUT_FILES): Add timer.def.  Add timer.o/timer.c dependence.
14528         * libc/reent/timer.c: New file.
14529         * libc/time/clock.c: #include <reent.h>.
14530         (clock): Call _times_r instead of times.
14531         * libc/time/time.c (HAVE_GETTIMEOFDAY): Renamed from
14532         HAVE_GET_TIME_OF_DAY.
14533         Add comment regarding supporting OS routine(s) required (for docs).
14534         #include <reent.h>.
14535         (time): Call _gettimeofday_r instead of gettimeofday.
14536         * libc/time/asctime.c: Fix comment regarding supporting OS routines.
14537         * libc/time/ctime.c: Ditto.
14538         * libc/time/strftime.c: Ditto.
14539         * libc/sys/sparc64/Makefile.in (TEMPLATE_SFILES): Remove gettimeofday.
14540         (TEMPLATE_SFILES_R): Define here.  Also define times.
14541         Add times_r.o/times.S dependence.
14542         (time2.c, junk.c): Deleted.
14543         * libc/sys/sparc64/time2.c: Deleted.
14544         * configure.in (sparc64-*-*): Define HAVE_GETTIMEOFDAY.
14545
14546         * libc/stdio/mktemp.c (_getpid_r): Renamed from _getpid.
14547         * libc/stdio/tmpnam.c (_getpid_r): Ditto.
14548         * libc/sys/sparc64/junk.c: Deleted.
14549
14550 Mon Mar 21 16:51:03 1994  Doug Evans  (dje@canuck.cygnus.com)
14551
14552         * libc/sys/sparc64/Makefile.in: Add times syscall.
14553         * libc/sys/sparc64/crt0.S: Handle stack bias at run time so we can
14554         be used with and without it.  Add comment clarifying Medium/Anywhere
14555         model requirements.
14556         * libc/sys/sparc64/sigsetjmp.S (setjmp, longjmp): Add svr4 support.
14557         * libc/sys/sparc64/sys/syscall.h (SYS_times): Define for sunos4
14558         even if obsolete.
14559
14560 Sun Mar 20 15:51:47 1994  Doug Evans  (dje@cygnus.com)
14561
14562         * configure.in (target_cflags): Move init.
14563         (sparc64-*-*): Define HAVE_BLKSIZE.
14564
14565 Wed Mar  9 10:44:52 1994  Doug Evans  (dje@canuck.cygnus.com)
14566
14567         * libc/include/sys/_types.h: New file.
14568         * libc/include/reent.h: #include it.
14569         Add comment describing REENTRANT_SYSCALLS_PROVIDED and
14570         MISSING_SYSCALL_NAMES.
14571         Sort syscalls.
14572         * libc/include/_syslist.h: Remove _raise.
14573         * libc/reent/signalr.c: New file.
14574         * libc/reent/Makefile.in: Compile it.
14575         * libc/signal/signal.c: Only use ifdef SIMULATED_SIGNALS.
14576         Add doc for raise and _raise_r.
14577         * libc/signal/raise.c: Only use ifndef SIMULATED_SIGNALS.
14578         (raise): Call _raise_r.
14579         (_raise_r): Call _getpid_r and _kill_r.
14580         * libc/stdlib/abort.c: Remove inclusion of stdio.h and _syslist.h.
14581         (abort): Loop forever calling raise and _exit.
14582
14583 Mon Mar  7 14:40:08 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
14584
14585         * configure.in: Remove extraneous echo.
14586
14587 Thu Mar  3 12:14:22 1994  Doug Evans  (dje@canuck.cygnus.com)
14588
14589         * libc/sys/sparc64/sys/dirent.h (MAXNAMLEN): #undef to avoid
14590         collision with unistd.h, and fix for svr4.
14591
14592 Wed Mar  2 13:55:25 1994  Doug Evans  (dje@canuck.cygnus.com)
14593
14594         * libc/stdio/local.h (_llicvt): Declare.
14595         (CVT_BUF_SIZE): Define (and buffer size from 512 to 128).
14596         * libc/stdio/cvt.c: Include "local.h" to get CVT_BUF_SIZE.
14597         (_llicvt): Define.
14598         (_sicvt): Fix function header (`value' is short).
14599         * libc/stdio/vfprintf.c (_vfprintf_r): Use CVT_BUF_SIZE.
14600         Add printing of long long's support.
14601         Add printing of 8 byte pointer support.
14602
14603 Fri Feb 11 21:52:11 1994  Steve Chamberlain  (sac@sphagnum.cygnus.com)
14604
14605         * libc/sys/sh/syscalls.c (pipe, execv, wait, fork, utime, chown,
14606         stat, chmod): New hooks. 
14607         (sbrk): Abort if stack and heap collide.
14608         * libc/machine/sh/udivsi3, libc/machine/sh/sdivsi3 Modified to
14609         shortcut when given small args.
14610         * libc/machine/sh/setjmp.s: Rewritten.
14611         * libc/machine/sh/strcmp.s (strcmp): New function takes advantage
14612         of cmp/str instruction.
14613
14614 Wed Feb  9 15:12:35 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
14615
14616         * configure.in: Accept powerpc* as a CPU type, using fp_dir ieeefp
14617         and machine_dir powerpc.
14618         * libc/include/machine/setjmp.h, libc/include/machine/ieeefp.h:
14619         Add cases for __powerpc__.
14620         * libc/machine/powerpc/Makefile.in, libc/machine/powerpc/setjmp.S:
14621         New files.
14622
14623         * libc/include/stdio.h (_iprintf_r): Declare correctly.
14624
14625 Thu Jan 27 10:36:27 1994  Steve Chamberlain  (sac@cygnus.com)
14626
14627         * libc/stdlib/callocr.c: New file with _calloc_r in it.
14628         * libc/stdlib/calloc.c (calloc_r): Now in callocr.c
14629
14630 Thu Jan 20 15:14:37 1994  Doug Evans  (dje@canuck.cygnus.com)
14631
14632         * libc/stdlib/ecvtbuf.c (print_f): Remove local "done".
14633         (print_e): More comments to describe args, etc.
14634         "type" arg may now be 'g' or 'G' for %g/G format --> remove
14635         trailing blanks.
14636         (_gcvt): Remove locals decpt, sign, end, p, done.
14637         More comments for print_e invocation.
14638         Pass "type" to print_e as is (g/G).
14639
14640 Wed Jan 19 16:34:18 1994  Rob Savoye  (rob@darkstar.cygnus.com)
14641
14642         * stub/shared/m68k-crt0.S: Changed so it compiles (and runs) on a
14643         stock m68000. 
14644
14645 Mon Jan 17 15:41:53 1994  Doug Evans  (dje@canuck.cygnus.com)
14646
14647         * libc/stdlib/mallocr.c (_morecore_r): Fix aligning of pointer so it
14648         works with any sized pointer, including ones bigger than ints and
14649         longs.
14650
14651 Thu Jan  6 14:53:21 1994  Doug Evans  (dje@canuck.cygnus.com)
14652
14653         * libc/sys/sparc64/{time2.c,utime.S,utime2.c}: New files.
14654
14655 Sat Dec 11 16:17:20 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
14656
14657         * libc/include/stdlib.h (_calloc_r): Add prototype.
14658         * libc/machine/h8500/negsi2.c: New file.
14659         * libc/machine/h8500/divsi3.c: Prevent overflow when dividing v
14660         large unsigned numbers.
14661         * libc/machine/h8500/cmpsi.c: Add cmppsi.
14662         * libc/stdlib/mallocr.c (morecore_r): Fix aligning pointers so it
14663         works when sizeof(size_t) != sizeof(char *).
14664         * libc/stdlib/mprec.c (Balloc): Call calloc rather than malloc to
14665         get play area
14666         * libc/stdlib/mprec.h: Define Just_16 if generating for z8000.
14667
14668 Mon Dec  6 15:59:53 1993  Doug Evans  (dje@rtl.cygnus.com)
14669
14670         * libc/include/assert.h (assert): Handle -traditional.
14671
14672 Tue Nov 16 15:49:24 1993  Mark Eichin  (eichin@cygnus.com)
14673
14674         * Makefile.in: added ; after every "fi" and "done" that wasn't at
14675         the end of a line (ie. anything before a backslash continuation)
14676         so that bash handles them.
14677
14678 Tue Nov 16 12:31:57 1993  david d `zoo' zuhn  (zoo@rtl.cygnus.com)
14679
14680         * libc/sys/go32/lstat.s: new file, copied from stat.s and renamed
14681         stat to lstat
14682
14683 Mon Nov 15 15:50:43 1993  Steve Chamberlain  (sac@jonny.cygnus.com)
14684
14685         * libc/sys/sh/crt0.s, libc/sys/sh/trap.s,
14686         libc/machine/sh/sdivsi3.s, libc/machine/sh/setjmp.s,
14687         libc/machine/sh/udivsi3.s: Use new calling convention.
14688
14689 Mon Nov 15 15:25:38 1993  Mark Eichin  (eichin@cygnus.com)
14690
14691         * libc/include/sys/unistd.h, libc/include/sys/stat.h: ANSI-fy
14692         chmod, access, chdir, chown by making _path const. Also fix _amode
14693         param of access.
14694
14695 Fri Nov 12 20:25:28 1993  Mark Eichin  (eichin@cygnus.com)
14696
14697         * libc/sys/a29khif/_tmpnam.s (_tmpnam): renamed function to
14698         _khif_tmpnam, because it doesn't comply with ANSI but may be
14699         useful anyway. Real tmpnam was already in libc/stdio, and was
14700         colliding with this one (pr 2176.) 
14701         * libc/sys/a29khif/stubs.s (tmpnam): removed tmpnam. This file is
14702         the wrong idea anyhow.
14703
14704 Mon Nov  8 07:50:16 1993  Doug Evans  (dje@canuck.cygnus.com)
14705
14706         * configure.in: Remove h8300h, we have multilib now.
14707
14708 Fri Nov  5 12:37:27 1993  Mark Eichin  (eichin@cygnus.com)
14709
14710         * libc/string/strcasecmp.c, libc/string/strncasecmp.c: new
14711         functions, to get preference over the ones in libiberty (since we
14712         provide correct declarations in <string.h>.
14713         * libc/string/Makefile.in: add support for strncasecmp,
14714         strcasecmp.
14715
14716 Fri Nov  5 09:05:45 1993  D. V. Henkel-Wallace  (gumby@blues.cygnus.com)
14717
14718         * Change netware config not to look for cpu explicitly.
14719
14720 Thu Nov  4 14:21:25 1993  Doug Evans  (dje@canuck.cygnus.com)
14721
14722         * libc/sys/sparc64/{creat.c,junk.c}: New files.
14723         * libc/sys/sparc64/Makefile.in: Add dependencies.
14724
14725 Wed Nov  3 10:42:49 1993  Doug Evans  (dje@canuck.cygnus.com)
14726
14727         * configure.in: Clean up v9 a bit, new "os" aoutv8.
14728
14729 Tue Nov  2 10:00:44 1993  D. V. Henkel-Wallace  (gumby@cygnus.com)
14730
14731         * libc/include/sys/reent.h: make structure smaller by allocating
14732         some stuff when needed.
14733         * libc/signal/signal.c: allocate as needed
14734         * libc/stdio/findfp.c,stdio/local.h: ditto
14735         * libc/stdlib/mprec.c: ditto
14736
14737         * libc/time/localtime.c: don't return a dangling stack ptr.
14738
14739 Wed Sep 29 20:42:34 1993  Rob Savoye  (rob@darkstar.cygnus.com)
14740
14741         * stub/mvme135/crt0.S, stub/mvme135/glue.c: Moved to stub/generic.
14742
14743 Wed Sep 29 16:27:49 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
14744
14745         * libc/include/stdio.h (__sputc): comment out static inline which
14746           confuses coff toolchains.
14747
14748 Thu Sep  2 16:31:36 1993  Mark Eichin  (eichin@cygnus.com)
14749
14750         * libc/sys/a29khif/{_close.s, _fstat.s, _lseek.s, _sbrk.s,
14751         _write.s, getpid.c, kill.c, read.s}:
14752         * libc/sys/a29khif/stubs.s: eliminated stubs that already go
14753         through the syscalls directory.
14754
14755 Fri Oct 29 13:59:58 1993  Jeffrey Wheat  (cassidy@cygnus.com)
14756
14757         * configure.in: fixed double quote gotcha.
14758
14759 Wed Oct 27 15:27:09 1993  Rob Savoye  (rob@darkstar.cygnus.com)
14760
14761         * stub/ex931: stub library for sparclite board.
14762         * stub/idp: Renamed from mc68ec. Added contructor table
14763         stuff to linker script.
14764         * stub/mvme135: Renamed from m68kmvme. Added contructor table
14765         stuff to linker script.
14766
14767 Tue Oct 26 17:01:23 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
14768
14769         * configure.in: Configure testsuites only if they exist.
14770
14771 Tue Oct 26 12:37:11 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
14772
14773         * configure.in: Don't set machine_dir for i386 until there is
14774         something in libc/machine/i386 to compile.  For i[34]86-*-netware*
14775         use sys/netware, don't use signal, define NO_EXEC, ABORT_PROVIDED,
14776         CLOCK_PROVIDED and MALLOC_PROVIDED.
14777
14778         * libc/sys/netware: New directory.  Contains simplistic and
14779         probably incorrect stubs for NetWare.  Should be enough to load
14780         the library.
14781         * libc/sys/netware/crt0.c, libc/sys/netware/environ.c,
14782         libc/sys/netware/getpid.c, libc/sys/netware/link.c: New NetWare
14783         stub files.
14784
14785         * libc/reent/execr.c: Don't use if NO_EXEC is defined.
14786         * libc/reent/sbrkr.c: Don't use if MALLOC_PROVIDED is defined.
14787         * libc/stdlib/abort.c: Don't use if ABORT_PROVIDED is defined.
14788         * libc/time/clock.c: Don't use if CLOCK_PROVIDED is defined.
14789
14790 Mon Oct 25 16:48:08 1993  Roland H. Pesch  (pesch@cygnus.com)
14791
14792         * testsuite/Makefile.in: add "docs" dummy target for consistency
14793         with rest of newlib; turn "info" and "install-info" into dummy
14794         targets, since they wouldn't have worked.  (Depended on
14795         nonexistent "doc" subdir.)
14796
14797 Fri Oct 22 20:37:32 1993  david d `zoo' zuhn  (zoo@rtl.cygnus.com)
14798
14799         * configure.in: handle mips* instead of mips
14800
14801 Thu Oct 21 08:57:24 1993  Ian Lance Taylor  (ian@cygnus.com)
14802
14803         * libc/include/sys/dirent.h: New file.  If it is not overridden by
14804         a version of libc/sys/*/sys/dirent.h, it includes the next
14805         <dirent.h> file in case there is one lurking somewhere.
14806
14807 Fri Oct 15 14:17:40 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
14808
14809         * libc/stdlib/strtoul.c (_strtoul_r): Several changes for ANSI
14810         compliance, namely: Accept a minus sign.  Consider a single 0 with
14811         a radix of 0 as being a conversion.  Determine overflow correctly.
14812         If an overflow occurs, set *ptr to the end of the number, not the
14813         middle.
14814         * lib/stdlib/strtol.c (_strtol_r): Determine overflow correctly.
14815
14816 Thu Oct 14 21:49:52 1993  Doug Evans  (dje@canuck.cygnus.com)
14817
14818         * libc/machine/h8300/divsi3.S (divmodsi4): Fix h8300h case.
14819
14820 Fri Oct  1 17:17:34 1993  Doug Evans  (dje@canuck.cygnus.com)
14821
14822         * Makefile.in (INSTALL): Use $srcrootpre.
14823         (crt0.o): Replace $< with $(CRT0_DIR)/$(CRT0), Sun make
14824         can't handle it.
14825         * libc/Makefile.in (crt0.o): Spell out $<, Sun make can't handle
14826         it.
14827         * libc/sys/Makefile.in (crt0.o, lib.a): Ditto.
14828         * stub/Makefile.in (crt0.o, TARGETLIB): Ditto.
14829         * libc/sys/sparc64/Makefile.in (isatty.o): Sun VPATH lossage.
14830         * libm/math/Makefile.in (matherr.o): Ditto.
14831
14832 Thu Sep 30 11:09:17 1993  Steve Chamberlain  (sac@phydeaux.cygnus.com)
14833
14834         * configure.in: Build multidirs for z8k.
14835         * libc/include/stdlib.h (_strtoul_r): add prototype.
14836         * libc/include/machine/limits.h: Get INT_MIN right for all the z8k family.
14837         * libc/include/machine/setjmp.h: Add for z8k.
14838         * libc/machine/z8k/{mulsi.o, udivsi3.o, umodsi3.o, modsi3.o} obsolete.
14839         * libc/sys/z8ksim/glue.c: tidy up.
14840
14841 Mon Sep 20 14:04:46 1993  Doug Evans  (dje@canuck.cygnus.com)
14842
14843         * libc/unix/{execl.c execle.c execlp.c execv.c execvp.c}:
14844         New files.  Requires execve system call.
14845         * libc/unix/Makefile.in: Use them.
14846         * libc/sys/sparc64/{execl.c execle.c execlp.c execv.c execvp.c}:
14847         Deleted, moved to libc/unix.
14848         * libc/sys/sparc64/Makefile.in: Remove them.
14849
14850 Mon Sep 20 10:38:32 1993  Doug Evans  (dje@canuck.cygnus.com)
14851
14852         * libc/sys/sparc64/{template.S template_r.S}: New files.
14853         * libc/sys/sparc64/Makefile.in: Build source for trivial syscalls
14854         from templates.
14855         * libc/sys/sparc64/{chdir.S chmod.S close.S dup.S fcntl.S
14856         fork.S fstat.S lseek.S link.S mkdir.S open.S pipe.S read.S rmdir.S
14857         umask.S unlink.S wait4.S write.S}: Removed, now built from
14858         templates.
14859
14860 Sun Sep 19 14:52:57 1993  Doug Evans  (dje@canuck.cygnus.com)
14861
14862         * libc/time/time.c: #include <_ansi.h>.
14863
14864 Sun Sep 19 13:43:25 1993  Doug Evans  (dje@canuck.cygnus.com)
14865
14866         * configure.in (sparc64-*-*): Remove -D__SIZE_TYPE__.
14867
14868 Mon Sep 13 13:52:16 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
14869
14870         * configure.in: match m8* rather than m88k so that m88110 is
14871           recognized as well.
14872
14873 Tue Sep  7 12:19:32 1993  Doug Evans  (dje@canuck.cygnus.com)
14874
14875         * libc/sys/h8300hms/{Makefile.in, _exit.c, misc.c}:
14876         Renamed exit.c to _exit.c to avoid collision with stdlib/exit.c.
14877         misc.c: New file.
14878
14879         * configure.in: Add multilib support to h8300.
14880
14881 Mon Sep  6 14:07:06 1993  Doug Evans  (dje@canuck.cygnus.com)
14882
14883         * libc/stdlib/abort.c (abort): Remove _VOLATILE from return type.
14884         * libc/include/_ansi.h (_ATTRIBUTE): New macro for __attribute__.
14885         * libc/include/stdlib.h (exit, abort): Add noreturn attribute.
14886
14887 Mon Sep  6 14:24:18 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
14888
14889         * configure.in: Corrected multidirs for sparc target.
14890
14891 Mon Aug 30 15:56:44 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
14892
14893         Support for building newlib multiple times with different
14894         compilation flags.
14895         * configure.in: Only configure doc at top level.  Set multidirs
14896         when appropriate for target, unless not at top level.  If
14897         multidirs is set, independently configure each subdirectory.
14898         Adjust TOP, MULTIDIRS and MULTISUBDIR appropriately in Makefile.
14899         * Makefile.in (MULTIDIRS, MULTISUBDIR): New variables,
14900         automagically set by configure.in.
14901         (all): If MULTIDIRS is set, build multiple copies of libraries.
14902         (install): If MULTIDIRS is set, install multiple copies of
14903         libraries.  Install in $(tooldir)/lib/$(MULTISUBDIR).  If
14904         MULTISUBDIR is set, don't bother to install header files.
14905         * host/any (INCLUDES, CHEW): Use $(SRCTOP) rather than $(TOP) from
14906         ${srcrootpre}.
14907         * stub/configure.in: Set MULTISUBDIR appropriately.
14908         * stub/Makefile.in (install): Install in
14909         $(tooldir)/lib/$(MULTISUBDIR).
14910         * All Makefile.in files: Define SRCTOP as well as TOP.
14911
14912 Mon Aug 30 10:34:24 1993  Doug Evans  (dje@canuck.cygnus.com)
14913
14914         * libc/machine/h8300/{mulhi3.S, divhi3.S}: Comment out if h8300h.
14915         * libc/machine/h8300/{mulsi3.S, divsi3.S}: Add h8300h support.
14916
14917 Thu Aug 26 19:38:12 1993  Doug Evans  (dje@canuck.cygnus.com)
14918
14919         * libc/sys/h8300hms/exit.c (_exit): New function.
14920
14921 Wed Aug 25 16:31:48 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
14922
14923         * configure.in: recognize m88110.
14924
14925 Fri Aug 20 16:46:23 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
14926
14927         * libc/sys/m88kbug/crt0.c: pretty up, remove extraneous comments,
14928           prototype main and call with args.
14929
14930 Fri Jul 30 16:52:47 1993  K. Richard Pixley  (rich@cygnus.com)
14931
14932         First real try at system traps for m88k-bug.
14933         * libc/sys/m88kbug/syscalls.c: many changes.  Convert from stubs
14934           to real trap calls.
14935         * libc/sys/m88kbug/sys/systraps.h: new file.
14936
14937 Tue Jul 27 16:31:16 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
14938
14939         Patches to fix info building when target does not use sys
14940         directory.
14941         * libc/Makefile.in (targetdep.tex): add sys.tex separately.
14942         * libc/sys.tex, libc/sys/sys.tex: moved from libc/sys/sys.tex to
14943           libc/sys.tex.
14944         * libc/sys/Makefile.in (doc): do nothing.
14945
14946 Mon Jul 26 17:08:11 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
14947
14948         * libc/Makefile.in (CRT0): new macro.
14949           (all): depend on $(CRT0) rather than crt0.o.
14950
14951         * configure.in: fix libc_sys_dir -> libc_sys_lib thinko.
14952           do not default crt0, instead, set crt0 and crt0_dir based on
14953           sys_dir and stub_dir.
14954
14955         * Makefile.in (CRT0_DIR): new macro.
14956           (all): depend on $(CRT0) rather than crt0.o which may not exist.
14957           (crt0.o): depend on $(CRT0_DIR)/$(CRT0) rather than simply
14958           $(CRT0).
14959           ($(CRT0)): recur by cd'ing into $(CRT0_DIR).
14960
14961 Sun Jul 25 17:51:51 MDT 1993  Jeffrey Wheat  (cassidy@cygnus.com)
14962
14963         * testsuite/lib/libm.exp: 
14964                 added code to support compiling and linking of tests for 
14965                 libm.sac (paranoia to be added next) and processing the 
14966                 pass or failure of the tests.
14967
14968         * testsuite/config/unix-libm.exp:
14969                 platform specific proc's for dealing with compiler, linker
14970                 and the way we execute and process the test results.
14971
14972         * testsuite/libm.sac/execute.exp:
14973                 generic framework for the sac tests. the config and lib 
14974                 expect code for specific platforms tie it all together.
14975
14976         * testsuite/libm.sac/test_is.c:
14977                 changed the output of the test to be consistant with the
14978                 other tests. parsing of pass nad fail messages is now fixed.
14979
14980 Fri Jul 23 19:20:07 1993  Per Bothner  (bothner@kalessin)
14981
14982         * libc/include/{assert.h, ctype.h, dirent.h, errno.h, fastmath.h,
14983         locale.h, math.h, pwd.h, reent.h, setjmp.h, signal.h, stdio.h,
14984         stdlib.h, string.h, termios.h, time.h, utime.h, utmp.h}: For C++:
14985         #ifdef __cplusplus, surround by extern ""C { ... }.
14986         * libc/include/assert.h:  Do *not* protect assert.h against
14987         multiple inclusion!  Also, #undef it before #define, to allow
14988         redefinition.
14989         * libc/include/stdio.h (getlogin, cuserid):  Removed.  These
14990         should be only in unistd.h.
14991
14992         * libc/include/sys/{fcntl.h, reent.h, stat.h, time.h, times.h,
14993         unistd.h}: For C++: #ifdef __cplusplus, surround by extern ""C {
14994         ... }.
14995
14996 Fri Jul 23 10:15:33 1993  Doug Evans  (dje@canuck.cygnus.com)
14997
14998         * libc/machine/sparc/Makefile.in: Must create a library, even
14999         if empty.
15000
15001 Wed Jul 21 16:00:37 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
15002
15003         * configure.in: set machine_dir for m88k.  edit crt0 definition
15004           into makefiles.
15005
15006         * Makefile.in, libc/Makefile.in (crt0): pull up from lower directories.
15007
15008         * libc/Makefile.in (all): also build crt0.o.
15009
15010         * libc/machine/i386/Makefile.in, libc/machine/sparc/Makefile.in,
15011           libc/machine/z8k/Makefile.in, libm/Makefile.in (clean): no need
15012           to remove CRT0.
15013
15014         * libc/machine/m88k/Makefile.in (TOP, TARGETLIB): removed.
15015           (all): reworked to build in place.
15016           (clean): remove lib.a
15017           (Makefile): remove redundant ./, call $(SHELL) rather than sh.
15018
15019         * libc/sys/m88kbug/crt0.c (start): renamed to _start.
15020           (_start): key off edata rather than _start_bss.
15021
15022 Wed Jul 21 14:29:47 1993  david d `zoo' zuhn  (zoo@cygnus.com)
15023
15024         * libc/include/sys/unistd.h, libc/include/reent.h,
15025         libc/reent/sbrkr.c: change sbrk to return void* instead of char*.
15026
15027 Tue Jul 20 13:19:18 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
15028
15029         * libm/Makefile.in, libc/Makefile.in ($(SUBDIRS)): dollar escape a dollar sign.
15030
15031         * Makefile.in (libc.a): break into two rules, one for libc.a and
15032           one for libc/libc.a.  Force subdirs current before rebuilding
15033           library.
15034           (libm.a): break into two rules, one for libm.a and one for
15035           libm/libm.a.  Force subdirs current before rebuilding library.
15036
15037         * libc/Makefile.in (SUBLIBS): fix typo.
15038
15039         * libc/sys/Makefile.in (all): force descent into subdirs, then
15040           rebuild library iff out of of date.
15041
15042 Fri Jul 16 17:47:57 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
15043
15044         Rework so that library is built and then finished rather than
15045         being built on each invocation of make.
15046
15047         * host/any (machine_dir, sys_dir, signal_dir): these are not
15048           shared and have been moved to their associated Makefile.in's.
15049           (AR_FLAGS): switch to qc which is faster.
15050         * configure.in: no longer assign machine_dir for m88k.  set
15051           stub_dir, stub_lib, & crt0 for m68k*-unknown-{aout,coff}.  If
15052           stub_dir set, then add to configdirs.  add comment about silly
15053           configuration.
15054           (configdirs): drop stub.  It will be added only
15055           when needed.
15056           (libm_fp_lib, libc_unix_lib, libc_signal_lib, libc_machine_lib,
15057           libc_sys_dir, fake_sys_dir, libc_fake_sys_lib, stub_dir,
15058           stub_lib, crt0): new variables for tailoring lower level
15059           makefiles.  Assign accordingly and edit into makefiles.
15060         * libm/Makefile.in: updated copyright.
15061           (TARGETLIB): removed.
15062           (FLAGS_TO_PASS): removed TARGETLIB, machine_dir, sys_dir.
15063           (SUBDIRS): removed TARGETDEP_DIRS.
15064           (LIBM_FP_LIB, SUBLIBS): new macros.
15065           (all): reworked.
15066           (force): new target to force rebuilds.
15067           (Makefile): call $(SHELL) rather than sh.  drop redundant ./
15068         * libc/sys/a29khif/Makefile.in, libc/sys/decstation/Makefile.in,
15069           libc/sys/go32/Makefile.in, libc/sys/h8300hms/Makefile.in,
15070           libc/sys/h8500hms/Makefile.in, libc/sys/m88kbug/Makefile.in,
15071           libc/sys/sh/Makefile.in, libc/sys/sparc64/Makefile.in,
15072           libc/sys/sun4/Makefile.in, libc/sys/sysvi386/Makefile.in,
15073           libc/sys/sysvnecv70/Makefile.in, libc/sys/z8ksim/Makefile.in,
15074           stub/m68kmvme/Makefile.in: updated copyright.
15075           (TARGETLIB, TARGETCRT0, CRT0): macros removed.
15076           (all): reworked.  made this the default rule.
15077           (clean): also remove lib.a.
15078           (Makefile): call $(SHELL) rather than sh.  drop redundant ./
15079         * stub/Makefile.in: updated copyright.
15080           (TARGETLIB, TARGETCRT0, CRT0, TOP): removed.
15081           (stub_lib): new macro.
15082           (FLAGS_TO_PASS): removed TARGETLIB, stub_dir, TARGETCRT0.  Added
15083           RANLIB.
15084           (all): reworked.
15085           (clean, install): assume stub_dir exists.
15086           (Makefile): depend on configure.in.  call $(SHELL) rather than
15087           sh.  drop redundant ./
15088         * stub/configure.in (stublib): new macro, assign it, edit it into
15089           makefiles.
15090         * Makefile, libc/Makefile.in, doc/Makefile.in, libc/sys/Makefile.in:
15091           updated copyright.
15092           (all): reworked.
15093           (Makefile): call $(SHELL) rather than sh.  drop redundant ./
15094         * libc/Makefile.in (TARGETCRT0): removed.
15095           (FLAGS_TO_PASS): dropped TARGETLIB, machine_dir, sys_dir,
15096           TARGETCRT0.
15097           (SUBDIRS): drop TARGETDEP_DIRS.
15098           (LIBC_SIGNAL_LIB, LIBC_SYS_LIB, LIBC_MACHINE_LIB, LIBC_UNIX_LIB,
15099           LIBC_FAKE_SYS_LIB, SUBLIBS): new macros for configuration.
15100           (force): new target to force rebuilds.
15101         * libc/sys/Makefile.in (TARGETCRT0, sys_dir): removed.
15102           (FLAGS_TO_PASS): TARGETLIB, machine_dir, sys_dir, TARGETCRT0
15103           removed.
15104           (clean): assume sys_dir always exists.
15105         * libm/test/Makefile.in (Makefile): call $(SHELL) rather than sh.
15106           drop redundant ./
15107         * libc/ctype/Makefile.in, libc/errno/Makefile.in,
15108           libc/locale/Makefile.in, libc/machine/Makefile.in,
15109           libc/machine/a29k/Makefile.in, libc/machine/h8300/Makefile.in,
15110           libc/machine/h8500/Makefile.in, libc/machine/i386/Makefile.in,
15111           libc/machine/i960/Makefile.in, libc/machine/m68k/Makefile.in,
15112           libc/machine/mips/Makefile.in, libc/machine/necv70/Makefile.in,
15113           libc/machine/sh/Makefile.in, libc/machine/sparc/Makefile.in,
15114           libc/machine/z8k/Makefile.in, libc/reent/Makefile.in,
15115           libc/signal/Makefile.in, libc/stdio/Makefile.in,
15116           libc/stdlib/Makefile.in, libc/string/Makefile.in,
15117           libc/sys/Makefile.in, libc/syscalls/Makefile.in,
15118           libc/time/Makefile.in, libc/unix/Makefile.in,
15119           libm/ieeefp/Makefile.in, libm/math/Makefile.in: updated copyright.
15120           (TARGETLIB): removed.
15121           (all): reworked.
15122           (clean): also remove lib.a.
15123           (Makefile): call $(SHELL) rather than sh.  drop redundant ./
15124         * Makefile.in: (machine_dir, sys_dir, stub_dir, stub_lib, CRT0):
15125           new macros.
15126           (SUBDIRS): moved to follow frag inclusion, change stub to
15127           stub_dir.
15128           (FLAGS_TO_PASS): removed machine_dir, sys_dir, signal_dir which
15129           are now set in the libc Makefile.
15130         * libc/machine/Makefile.in (TARGETCRT0, machine_dir): removed.
15131           (FLAGS_TO_PASS): removed TARGETLIB, machine_dir, sys_dir,
15132           TARGETCRT0.
15133           (force): new target to force rebuilds.
15134         * stub/configure.in: determine and set stub_lib for for Makefile.
15135
15136 Thu Jul 15 12:01:27 1993  Doug Evans  (dje@canuck.cygnus.com)
15137
15138         * libc/sys/h8300hms/Makefile.in: Make `all' the default target.
15139         crt0.s renamed to crt0.S.
15140         * libc/sys/h8300hms/crt0.S: Add h8/300h support.
15141
15142         * libc/machine/h8300/Makefile.in: Make `all' the default target.
15143         * libc/machine/h8300/{cmpsi.S,ucmpsi.S}: #ifdef out entire file if
15144         h8300h.
15145         * libc/machine/h8300/defines.h: Add macros to handle pointers for
15146         h8300 (16 bits) and h8300h (32 bits).
15147         * libc/machine/h8300/{divsi3.S,mulsi3.S,memcpy.S,memset.S,
15148         reg_memcpy.S,reg_memset.S,strcmp.S}: Add h8300h support.
15149
15150 Thu Jul 15 10:13:29 1993  Ian Lance Taylor  (ian@cygnus.com)
15151
15152         * libc/machine/m88k/setjmp.S, Makefile.in: New files; a simple
15153         implementation of setjmp and longjmp for the m88k.
15154         * libc/include/machine/setjmp.h: Added __m88000__ case.
15155
15156 Wed Jul 14 10:10:30 1993  Doug Evans  (dje@canuck.cygnus.com)
15157
15158         * configure.in: Recognize h8300h as variant of h8300.
15159
15160 Tue Jul 13 12:24:11 1993  Steve Chamberlain  (sac@phydeaux.cygnus.com)
15161
15162         * libc/include/sys/unistd.h (read, write): get prototypes right.
15163         (sbrk): New prototype.
15164         * libc/reent/sbrkr.c (sbrkr): Use correct sbrk prototype.
15165         * libc/stdio/local.h: Include unistd.h.
15166         * libc/machine/h8300/syscalls.c: Names have changed.
15167
15168 Mon Jul 12 18:08:42 1993  K. Richard Pixley  (rich@cygnus.com)
15169
15170         * configure.in: add sys_dir assignment for m88k-bug.
15171
15172 Thu Jul  8 09:16:21 1993  Doug Evans  (dje@canuck.cygnus.com)
15173
15174         * libc/sys/sparc64/sys/syscallasm.h: New macros to handle either
15175         a.out or elf.
15176         * libc/sys/sparc64: all *.S files: Use new macros.
15177         * libc/sys/sparc64/isatty.c: New file.
15178         * libc/sys/sparc64/Makefile.in: Stop using /lib/libc.a for
15179         functions beyond what newlib provides.
15180
15181 Thu Jul  8 09:11:28 1993  Doug Evans  (dje@canuck.cygnus.com)
15182
15183         * libc/include/sys/stat.h: Move st_atime so not doubly defined for
15184         svr4.
15185
15186 Thu Jul  8 09:09:16 1993  Doug Evans  (dje@canuck.cygnus.com)
15187
15188         * libc/include/machine/ieeefp.h: Add support for h8/300h.
15189
15190 Fri Jul  2 10:11:20 1993  K. Richard Pixley  (rich@cygnus.com)
15191
15192         * configure.in: add m88k.
15193         * libc/include/machine/ieeefp.h: add case for m88k.  Also add
15194         sanity check so no one else need ever chase what I did to find
15195         this.
15196
15197         * libm/math/Makefile.in (FAKEC): added atanf.c log1pf.c scalbnf.c.
15198
15199 Fri Jul  2 09:15:21 1993  Ian Lance Taylor  (ian@cygnus.com)
15200
15201         * doc/makedoc.c: Include <ctype.h>.
15202
15203 Wed Jun 30 09:35:06 1993  Doug Evans  (dje@canuck.cygnus.com)
15204
15205         * libc/Makefile.in (FLAGS_TO_PASS): Add TARGET_ASFLAGS.
15206         * libc/sys/Makefile.in (FLAGS_TO_PASS): Add TARGET_ASFLAGS.
15207         * libc/machine/Makefile.in (FLAGS_TO_PASS): Add TARGET_ASFLAGS.
15208
15209         * libm/test/Makefile.in (all): Link with ../../lib[cm].a.
15210
15211 Sun Jun 27 17:05:20 1993  Doug Evans  (dje@sphagnum.cygnus.com)
15212
15213         * libc/include/errno.h (ENOSYS): Added.
15214
15215         * libc/unix/getpwd.c (getcwd): Fix typo (_up -> up).
15216
15217 Mon Jun 21 09:03:32 1993  Steve Chamberlain  (sac@phydeaux.cygnus.com)
15218
15219         * libc/stdio/fflush.c (fflush): Check for reent struct
15220         initialization.
15221         * libc/stdio/fdopen.c (fdopen): Avoid namespace conflict.
15222
15223 Fri Jun 18 16:06:05 1993  Mark Eichin  (eichin@rtl.cygnus.com)
15224
15225         * libc/stdlib/dtoastub.c: new file -- move user callable "dtoa"
15226         out of dtoa.c so it doesn't pollute the namespace.
15227         * libc/include/_syslist.h: new file -- mappings from _function to
15228         function, for systems where we can't win (by default, all of them,
15229         until we start updating system calls.)
15230         * libc/syscalls: new directory -- stubs for exporting _function
15231         names as unmodified function names.
15232         * libc/configure.in: add MISSING_SYSCALL_NAMES to enable
15233         _syslist.h on all platforms by default, but put hooks in for
15234         fake_sys_dir so we can include it when we've renamed the system
15235         calls.
15236         * libc/reent/execr.c libc/reent/filer.c libc/reent/fstatr.c
15237         libc/reent/linkr.c libc/reent/sbrkr.c libc/reent/statr.c
15238         libc/signal/raise.c libc/signal/signal.c libc/stdio/fdopen.c
15239         libc/stdio/mktemp.c libc/stdio/tmpnam.c libc/stdlib/abort.c
15240         libc/stdlib/system.c libc/unix/getcwd.c libc/unix/getlogin.c
15241         libc/unix/getpass.c libc/unix/getut.c libc/unix/ttyname.c: change
15242         non ANSI functions to call _function.
15243
15244 Wed Jun  9 09:48:26 1993  Ian Lance Taylor  (ian@cygnus.com)
15245
15246         * libc/stdlib/strtoul.c (_strtoul_r): Handle leading 0 correctly
15247         when base 16 is specified.  Don't accept non-digits if radix > 10.
15248
15249 Thu Jun  3 10:01:15 1993  Doug Evans  (dje@canuck.cygnus.com)
15250
15251         * libc/include/math.h: Rename xxx_r fns to _xxx_r.
15252
15253 Wed Jun  2 16:54:16 1993  Jim Wilson  (wilson@sphagnum.cygnus.com)
15254
15255         * libc/include/sys/stat.h: Surround text after #endif with
15256         comments.
15257
15258 Wed Jun  2 12:47:32 1993  Ian Lance Taylor  (ian@cygnus.com)
15259
15260         * libc/stdlib/mallocr.c: If MALLOC_PROVIDED is defined, just make
15261         _malloc_r, _realloc_r, and free_r call the corresponding
15262         non-reentrant functions.
15263
15264         * libm/math/modf.c (modf): We now take the address of ipart, so
15265         don't make it a register variable.
15266
15267 Tue Jun  1 18:25:54 1993  Doug Evans  (dje@canuck.cygnus.com)
15268
15269         * libm/math/*: Rename all xxx_r fns to _xxx_r.
15270
15271 Wed May 26 22:06:35 1993  Roland H. Pesch  (pesch@cygnus.com)
15272
15273         * libc/libc.texinfo and embedded docn throughout: formatting
15274         improvements, minor rephrasing for clarity, and improved
15275         reentrancy docn.
15276
15277 Sun May 23 17:29:49 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
15278
15279         * libm/ieeefp/infinity.c (maxpowtwof): Fix initialzation bug.
15280
15281         * libc/stdio/cvt.c (_licvt): Print the right value on machines
15282         where sizeof(int) != sizeof(long).
15283
15284 Fri May 21 22:09:32 1993  Roland H. Pesch  (pesch@fowanton.cygnus.com)
15285
15286         * libc/reent/execr.c, libc/reent/filer.c, libc/reent/linkr.c,
15287         libc/reent/sbrkr.c, libc/reent/statr.c, libc/stdio/tmpnam.c,
15288         libc/stdlib/atol.c, libc/stdlib/rand.c, libc/string/strpbrk.c,
15289         libc/string/strspn.c, libm/ieeefp/isnan.c, libm/math/bessel.c,
15290         libm/math/matherr.c: changes for better docn formatting (info).
15291
15292         * libc/libc.texinfo, libc/ctype/ctype.tex, libc/locale/locale/tex,
15293         libc/reent/reent.tex, libc/signal/signal.tex,
15294         libc/stdio/stdio.tex, libc/stdlib/stdlib.tex,
15295         libc/string/strings.tex, libc/sys/sys.tex, libc/time/time.tex,
15296         libm/libm.texinfo, libm/ieeefp/ieeefp.tex, libm/math/math.tex: use
15297         makeinfo node defaulting to get better Info file node structure.
15298         (Requires recent sac change to doc/makedoc.c and doc/doc.str.)
15299         Also include a few formerly missing sections (subroutines).
15300
15301         * doc/doc.str: delete fossil expansion for "func"
15302
15303         * default.menu, no-signal.menu: delete.
15304
15305         * Makefile.in, libc/Makefile.in, configure.in, host/any: simplify
15306         method used to adjust doc for missing "signals" chapter when 
15307         signal_dir is empty.
15308
15309 Thu May 20 21:38:37 MDT 1993  Jeffrey Wheat  (cassidy@cygnus.com)
15310
15311         * configure.in: added testsuite/libm.sac
15312
15313 Wed May 19 14:52:34 1993  Doug Evans  (dje@thepub.cygnus.com)
15314
15315         * libc/sys/sparc64/crt0.S: Set %g4 to 0 (to test Medium/Anywhere
15316         code model).
15317
15318 Tue May 18 13:17:21 1993  Ian Lance Taylor  (ian@cygnus.com)
15319
15320         * libm/Makefile.in: Use $(MAKE) rather than make, and define
15321         MAKEOVERRIDES to be empty.
15322
15323 Mon May 17 08:42:44 1993  Ian Lance Taylor  (ian@cygnus.com)
15324
15325         * configure.in: Don't build mips-*-* with -msoft-float, since that
15326         makes it incompatible with hard floating point.
15327
15328 Mon May 17 00:03:35 MDT 1993  Jeffrey Wheat  (cassidy@cygnus.com)
15329
15330         * Makefile.in: added recursive 'make check'
15331
15332 Thu May 13 16:24:18 MDT 1993  Jeffrey Wheat  (cassidy@cygnus.com)
15333
15334         * configure.in: added ./testsuite ./testsuite/libm.paranoia
15335         * ./testsuite/Makefile.in: created
15336         * ./testsuite/libm.paranoia: paranoia tests added
15337
15338 Thu May 13 10:30:24 1993  Ian Lance Taylor  (ian@cygnus.com)
15339
15340         * configure.in: For mips-*-* set machine_dir to mips.
15341
15342         * libc/machine/mips: New directory.
15343         * libc/machine/mips/Makefile.in: New file.
15344         * libc/machine/mips/setjmp.S: New file; simplistic MIPS version of
15345         setjmp and longjmp.
15346         * libc/include/machine/setjmp.h: Added __mips__ case.
15347
15348         * libc/machine/lmips: Removed unused and useless directory.
15349
15350 Mon May  3 10:22:31 1993  Ian Lance Taylor  (ian@cygnus.com)
15351
15352         * configure.in: Accept i486-*-sco* as well as i386-*-sco*.
15353
15354 Thu Apr 15 15:16:44 1993  Doug Evans  (dje@canuck.cygnus.com)
15355
15356         * libc/sys/sparc64/crt0.S: Add comment (%g1 contains atexit arg at
15357         start up).
15358
15359 Fri Apr  9 13:32:26 1993  Ian Lance Taylor  (ian@cygnus.com)
15360
15361         * libc/include/machine/setjmp-dj.h: Use _SETJMP_DJ_H rather than
15362         SETJMP_H.
15363
15364 Thu Apr  8 10:07:18 1993  Doug Evans  (dje@canuck.cygnus.com)
15365
15366         * libm/test/convert.c: structure member errno -> errno_val.
15367         Must include <errno.h> to use errno, it's a macro now.
15368         * libm/test/math.c: Ditto.
15369         * libm/test/math2.c: Include errno.h.
15370         * libm/test/string.c: Ditto.
15371         * libm/test/test.h: structure member errno -> errno_val.
15372         Remove extern int errno decl.
15373
15374 Thu Apr  8 07:56:33 1993  Ian Lance Taylor  (ian@cygnus.com)
15375
15376         * libc/stdio/Makefile.in: Added dependencies on local header
15377         files.
15378         * libc/stdio/std.h, libc/stdio/vfprintf.h: Removed unused header
15379         files.
15380
15381 Wed Apr  7 16:19:32 1993  Ian Lance Taylor  (ian@cygnus.com)
15382
15383         * libc/include/machine/ieeefp.h: Added __MIPSEB__ case.
15384
15385 Wed Apr  7 10:55:21 1993  Doug Evans  (dje@canuck.cygnus.com)
15386
15387         * libc/stdio/siprintf.c libc/stdio/sscanf.c libc/stdio/vsprintf.c:
15388         Initialize _data.
15389
15390         * libc/stdio/vfprintf.c: No need to declare _icvt, _licvt, _sicvt.
15391         * libc/stdio/local.h: Add prototype for _licvt.
15392
15393         * libc/stdio/ungetc.c (__submore): Use _malloc_r,_realloc_r
15394         instead of malloc,reealloc.
15395
15396         * libc/stdlib/local.h: New file.
15397         * libc/stdlib/efgcvt.c: #include local.h.
15398         (gcvt): Fix call to _gcvt.
15399         * libc/stdlib/ecvtbuf.c: #include local.h.
15400
15401         * libc/stdlib/Makefile.in: new files mallocr.c mstats.c.
15402         * libc/stdlib/mallocr.c mstats.c malloc.h: New files.
15403         * libc/stdlib/malloc.c: main routines moved to mallocr.c.
15404
15405         * libc/stdlib/atexit.c: moved global data to struct _reent.
15406         * libc/stdlib/exit.c: use struct _atexit in struct _reent.
15407
15408         * libc/reent/reent.c (inpure_data): _REENT_INIT macro modified.
15409
15410 Wed Apr  7 09:41:50 1993  Doug Evans  (dje@canuck.cygnus.com)
15411
15412         * libc/include/sys/reent.h: Stuff required by ANSI headers moved
15413         here from ../reent.h.
15414
15415 Tue Apr  6 12:56:01 1993  Ian Lance Taylor  (ian@cygnus.com)
15416
15417         * Makefile.in (MATHOBJS_IN_LIBC): List of object files which
15418         should be provided in both libc.a and libm.a.
15419         (libc.a): Depend on targ-include and libm.a.  Copy
15420         $(MATHOBJS_IN_LIBC) from libm.a to libc.a.
15421         (libm.a): Depend on targ-include.
15422         * configure.in (subdirs): Removed libc/math.
15423
15424 Mon Apr  5 10:18:16 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
15425
15426         * libm/ieeefp/infinity.c (maxpowtwo): Fix initialization bug.
15427
15428 Sat Apr  3 11:06:07 1993  Doug Evans  (dje@canuck.cygnus.com)
15429
15430         * libc/include/{errno.h, math.h, stdio.h, stdlib.h}: Use
15431         sys/reent.h instead of reent.h.
15432         * libc/include/reent.h: Split into two parts: stuff needed by ANSI
15433         headers moved to sys/reent.h.  
15434         * libc/include/signal.h: _MAX_SIGNALS moved to sys/signal.h.
15435         * libc/include/sys/signal.h: Define _MAX_SIGNALS if
15436         __need__MAX_SIGNALS defined.
15437         * libc/include/stdio.h: struct __sFILE moved to sys/reent.h.
15438         std{in,out,err} refer to new _std{in,out,err} members.
15439
15440 Fri Apr  2 11:27:12 1993  Doug Evans  (dje@canuck.cygnus.com)
15441
15442         * libc/include/sys/signal.h: #define _SYS_SIGNAL_H for general
15443         case.
15444
15445 Fri Apr  2 09:41:10 1993  Doug Evans  (dje@canuck.cygnus.com)
15446
15447         * libc/sys/sparc64/execve.S (execve): Insert nop in delay slot,
15448         rather than whatever macro seterrno() has.
15449
15450 Thu Apr  1 16:47:08 1993  Doug Evans  (dje@canuck.cygnus.com)
15451
15452         * libc/locale/locale.c: Reentrant routines _r_xxx renamed to
15453         _xxx_r.  struct reent_struct renamed to struct _reent for ANSI.
15454
15455         * libc/include/machine/fastmath.h: Use _HAVE_STDC instead of
15456         __STDC__.
15457
15458         * libc/reent/{execr.c, filer.c, fstatr.c, linkr.c, reent.c,
15459         reent.tex, sbrkr.c, statr.c}: _r_xxx reentrant routines renamed to
15460         _xxx_r.  struct reent_struct renamed to struct _reent for ANSI.
15461
15462         * libc/signal/signal.c: Reentrant routines _r_xxx renamed to
15463         _xxx_r.  struct reent_struct renamed to struct _reent for ANSI.
15464
15465         * libc/stdio/{fclose.c, fdopen.c, findfp.c, fiprintf.c, flags.c,
15466         fopen.c, fprintf.c, freopen.c, fscanf.c, fseek.c, ftell.c,
15467         fwalk.c, getchar.c, gets.c, iprintf.c, local.h, makebuf.c,
15468         mktemp.c, perror.c, printf.c, putchar.c, puts.c, refill.c,
15469         remove.c, rename.c, scanf.c, setvbuf.c, siprintf.c, sprintf.c,
15470         sscanf.c, stdio.c, tmpfile.c, tmpnam.c, vfprintf.c, vfprintf.h,
15471         vfscanf.c, vprintf.c, vsprintf.c}: Reentrant routines _r_xxx
15472         renamed to _xxx_r.  struct reent_struct renamed to struct _reent
15473         for ANSI.  structure members given leading "_" for ANSI.  Use
15474         _HAVE_STDC instead of __STDC__ and _HAVE_STDARG.
15475
15476         * libc/stdlib/{__adjust.c, calloc.c, dtoa.c, ecvtbuf.c, malloc.c,
15477         mprec.c, mprec.h, rand.c, std.h, strtod.c, strtol.c, strtoul.c,
15478         system.c}: Reentrant routines _r_xxx renamed to _xxx_r.  struct
15479         reent_struct renamed to struct _reent for ANSI.
15480         Structure members given leading "_" for ANSI.
15481         _CONST --> const in prototypes.
15482         Use _HAVE_STDC instead of __STDC__.
15483
15484         * libc/string/strtok.c: Reentrant routines _r_xxx renamed to
15485         _xxx_r.
15486         struct reent_struct renamed to struct _reent for ANSI.
15487         Structure members given leading "_" for ANSI.
15488
15489         * libc/time/asctime.c: Reentrant routines _r_xxx renamed to
15490         _xxx_r.
15491         struct reent_struct renamed to struct _reent for ANSI.
15492
15493         * libm/math/{acos.h, acosh.h, asin.c, asinh.h, atanh.h, bessel.h,
15494         cbrt.h, cosh.h, erf.c, erf.h, error.c, exp.c, fmod.c, frexp.h,
15495         gamma.h, hypot.h, ldexp.c, log.h, log10.c, log1p.c log2.c,
15496         mathimpl.h, pow.c, remainder.c, sincos.c, sinh.h, sqrt.h, tan.c,
15497         tanh.h}: struct reent_struct renamed to struct _reent for ANSI.
15498
15499         * libc/include/{_ansi.h, ctype.h, math.h, reent.h, locale.h,
15500         signal.h, stdio.h, stdlib.h, string.h, time.h}:
15501         Use _HAVE_STDC instead of __STDC__ and _HAVE_STDARG.
15502         #ifndef _STRICT_ANSI non-ANSI routines.
15503         Reentrant routines renamed from _r_xxx to _xxx_r.
15504         No need to use _STRICT_ANSI on _xxx_r reentrant routines.
15505         Use _STRICT_ANSI instead of __STRICT_ANSI, _ANSI_SOURCE, etc.
15506         Clean up namespace (structure members have leading "_").
15507         struct reent_struct renamed to struct _reent for ANSI compliance.
15508         _CONST --> const in function prototypes.
15509
15510         * libc/include/string.h: Add NULL and size_t.
15511
15512         * libc/sys/sparc64/Makefile.in: New syscall routines for link,
15513         unlink, wait, wait4. Reentrant syscall routines close, fork,
15514         fstat, link, lseek, open, read, sbrk, stat, unlink, wait, wait4,
15515         write.
15516         * libc/sys/sparc64/cerror.S (cerror_r): New routine.
15517         * libc/sys/sparc64/{close.S, fork.S, fstat.S, link.S, lseek.S,
15518         open.S, read.S, sbrk.S, stat.S, unlink.S, wait.S, wait4.S,
15519         write.S}: Define reentrant versions.
15520         * libc/sys/sparc64/sys/syscallasm.h (defsyscall_r): New macro for
15521         reentrant syscalls.
15522
15523         * libc/sys/sparc64/crt0.S (start): Fix initialization of environ.
15524
15525         * libc/include/stdlib.h (RAND_MAX): Fix value.
15526
15527 Thu Apr  1 12:28:30 1993  Ian Lance Taylor  (ian@cygnus.com)
15528
15529         * libc/sys/a29khif/_main.c: Removed unnecessary file.
15530         * libc/sys/a29khif/Makefile.in (OFILES): Removed _main.c, moved
15531         VPATH support targets after all: target.
15532
15533         * stub/mvme135/mvme.S: Renamed exceptionhandler to
15534         exceptionHandler, which is what mvme135-stub.c expects.
15535
15536 Wed Mar 31 17:42:03 1993  Doug Evans  (dje@cygnus.com)
15537
15538         * libc/stdio/tmpnam.c (worker): Fix test for _r_open() failure.
15539
15540         * libc/unix/getpass.c (getpass): Use stdin,stderr instead of
15541         def_stdin/def_stderr (latter removed from stdio.h to make it ANSI
15542         compliant).
15543
15544 Tue Mar 30 09:58:21 1993  Doug Evans  (dje@canuck.cygnus.com)
15545
15546         * libc/reent/execr.c (_r_wait): Re-order args to make reent_struct
15547         first.
15548         libc/reent/filer.c (_r_open, _r_close, _r_lseek, _r_read,
15549         _r_write): Ditto.
15550         libc/reent/fstatr.c (_r_fstat): Ditto.
15551         libc/reent/linkr.c (_r_link, _r_unlink): Ditto.
15552         libc/reent/sbrkr.c (_r_sbrk): Ditto.
15553         libc/reent/statr.c (_r_stat): Ditto.
15554
15555         * libc/stdio/fopen.c (_r_fopen): Re-order args to _r_open.
15556         * libc/stdio/freopen.c (freopen): Ditto for _r_open, _r_free.
15557         * libc/stdio/fseek.c (fseek): Ditto for _r_fseek.
15558         * libc/stdio/makebuf.c (__smakebuf): Ditto for _r_fstat.
15559         * libc/stdio/mktemp.c (_gettemp): Ditto for _r_stat, _r_open.
15560         * libc/stdio/remove.c (_r_remove): Ditto for _r_unlink.
15561         * libc/stdio/rename.c (_r_rename): Ditto for _r_link, _r_unlink.
15562         * libc/stdio/stdio.c (__sread): Ditto for _r_read.
15563         (__swrite): Ditto for _r_lseek, _r_write.
15564         (__sseek): Ditto for _r_lseek.
15565         (__close): Ditto for _r_close.
15566         * libc/stdio/tmpnam.c (worker): Ditto for _r_open, _r_close.
15567
15568         * libc/stdlib/malloc.c (_r_morecore): Re-order args to _r_sbrk.
15569         * libc/stdlib/system.c (_r_system): Ditto for _r_wait.
15570
15571         * libc/include/reent.h: Re-order arguments to _r_xxx syscall fns
15572         to make reent_struct the first argument (and thus consistent with
15573         the rest of newlib).
15574
15575         * stub/mvme135/mvme135-stub.c (initializeRemcomErrorFrame): Remove
15576         reference to __STDC__.
15577
15578 Mon Mar 29 12:34:32 1993  Doug Evans  (dje@canuck.cygnus.com)
15579
15580         * libc/stdlib/exit.c (exit): Use _REENT->__cleanup instead of
15581         global __cleanup.
15582
15583 Wed Mar 24 11:54:35 1993  Doug Evans  (dje@canuck.cygnus.com)
15584
15585         * libc/stdio/freopen.c (freopen): Ensure stdio is initialized
15586         first.
15587         libc/stdio/fclose.c (fclose): Ditto.
15588
15589 Tue Mar 23 01:26:52 1993  Doug Evans  (dje@rtl.cygnus.com)
15590
15591         * Run through indent and rename reentrant routines for ANSI.
15592         libc/stdio/{clearerr.c cvt.c fclose.c fdopen.c feof.c ferror.c
15593         fflush.c fgetc.c fgetpos.c fgets.c findfp.c fiprintf.c flags.c
15594         fopen.c fprintf.c fputc.c fputs.c fread.c freopen.c fscanf.c
15595         fseek.c fsetpos.c ftell.c fvwrite.c fwalk.c fwrite.c getc.c
15596         getchar.c gets.c iprintf.c makebuf.c mktemp.c perror.c printf.c
15597         putc.c putchar.c puts.c refill.c remove.c rename.c rewind.c rget.c
15598         scanf.c setbuf.c setvbuf.c siprintf.c sprintf.c sscanf.c stdio.c
15599         tmpfile.c tmpnam.c ungetc.c vfprintf.c vfscanf.c vprintf.c
15600         vsprintf.c wbuf.c wsetup.c local.h}
15601
15602         * libc/locale/locale.c: Reformat and rename for ANSI, GNU style.
15603
15604         * Run through indent and rename xxx_r fns to _r_xxx for ANSI.
15605         libc/stdlib/{__adjust.c __exp10.c __ten_mu.c abort.c abs.c
15606         assert.c atexit.c atof.c atoi.c atol.c bsearch.c calloc.c div.c
15607         dtoa.c ecvtbuf.c efgcvt.c exit.c getenv.c labs.c ldiv.c malloc.c
15608         mbtowc.c mprec.c putenv.c qsort.c rand.c setenv.c strdup.c
15609         strtod.c strtol.c strtoul.c system.c wctomb.c mprec.h}
15610
15611         * Run through indent.
15612         libc/string/{bcmp.c bcopy.c bzero.c index.c memchr.c memcmp.c
15613         memcpy.c memmove.c memset.c rindex.c strcat.c strchr.c strcmp.c
15614         strcoll.c strcpy.c strcspn.c strerror.c strlen.c strncat.c
15615         strncmp.c strncpy.c strpbrk.c strrchr.c strspn.c strstr.c strtok.c
15616         strxfrm.c}
15617
15618         * libc/time/{asctime.c clock.c ctime.c difftime.c gmtime.c
15619         localtime.c mktime.c strftime.c time.c}:
15620         Run through indent and rename xxx_r (reentrant) fns to _r_xxx for ANSI.
15621
15622         * Reformatting + renaming (for ANSI, GNU style, consistency).
15623         libc/include/{_ansi.h, assert.h, ctype.h, errno.h, fastmath.h,
15624         ieeefp.h, locale.h, math.h, paths.h, pwd.h, reent.h, setjmp.h,
15625         signal.h, stdio.h, stdlib.h, string.h, time.h, unistd.h}
15626
15627 Fri Mar 19 11:28:01 1993  Doug Evans  (dje@cygnus.com)
15628
15629         * libc/include/stdio.h (stdin_r): Fix.
15630
15631 Fri Mar 19 09:43:48 1993  Ian Lance Taylor  (ian@cygnus.com)
15632
15633         * Makefile.in: Unexport some variables to keep GNU make from
15634         putting them in the environment and using up needed ARG_MAX space
15635         (a hack is used to let this work with older makes as well).
15636
15637 Tue Mar 16 15:11:08 1993  Ian Lance Taylor  (ian@cygnus.com)
15638
15639         * Makefile.in: Use $(MAKE) rather than make.
15640         (MAKEOVERRIDES): Define to be empty.
15641         (FLAGS_TO_PASS): Don't pass down LD (it's not used).
15642         (libc.a, libm.a): Depend on targ-include.
15643         * host/any (LD): Don't define.
15644         (INCLUDES): Use targ-include.   
15645         * stub/Makefile.in (MAKEOVERRIDES): Define to be empty.
15646         (FLAGS_TO_PASS): Don't pass down LD (it's not used).
15647         * libc/Makefile.in: Use $(MAKE) rather than make.
15648         (MAKEOVERRIDES): Define to be empty.
15649         (FLAGS_TO_PASS): Don't pass LD (it's not used).
15650         (all): Rewrote to be slightly smaller.
15651         * libc/machine/Makefile.in, libc/sys/Makefile.in (MAKEOVERRIDES):
15652         Define to be empty.
15653         (FLAGS_TO_PASS): Don't pass LD (it's not used).
15654         * libm/Makefile.in (FLAGS_TO_PASS): Don't pass LD (it's not used).
15655
15656 Mon Mar 15 08:45:41 1993  Ian Lance Taylor  (ian@cygnus.com)
15657
15658         * libc/sys/go32/gerrno.s: Renamed from errno.s to avoid conflict
15659         with errno/errno.c.
15660
15661 Fri Mar 12 09:46:54 1993  Ian Lance Taylor  (ian@cygnus.com)
15662
15663         * Changes for reentrancy.
15664         libc/stdio/fdopen.c, libc/stdio/freopen.c, libc/stdio/perror.c:
15665         Use ptr->_errno, not errno.
15666         libc/stdio/mktemp.c (mkstemp_r, mktemp_r): New functions.
15667         libc/stdio/remove.c (remove_r): New function.
15668         libc/stdio/rename.c (rename_r): New function.
15669         libc/stdio/fopen.c, libc/stdio/freopen.c, libc/stdio/fseek.c,
15670         libc/stdio/makebuf.c, libc/stdio/mktemp.c, libc/stdio/remove.c,
15671         libc/stdio/rename.c, libc/stdio/stdio.c, libc/stdio/tmpnam.c: Use
15672         reentrant versions of system calls.
15673         libc/stdio/gets.c: Call getchar_f, not nonexistent getchar_r.
15674         libc/stdio/scanf.c: Use stdin_r, not nonexistent stdin_n.
15675         libc/stdio/tmpfile.c: Use tmpnam_f, not nonexistent tmpnam_r.
15676         libc/stdio/findfp.c: Include <string.h>.
15677         libc/stdio/fread.c, libc/stdio/rget.c, libc/stdio/scanf.c: Include
15678         "local.h".
15679         libc/stdio/wbuf.c: Include "fvwrite.h"
15680
15681         * libc/stdlib/{dtoa.c, ecvtbuf.c, mprec.c, strtod.c}: Include
15682         <string.h>.
15683         libc/stdlib/malloc.c: Call sbrk_r rather than sbrk.
15684         (NULL): Don't define if already defined.
15685         libc/stdlib/system.c: Call reentrant versions of system calls.
15686         (system_r): New function.
15687
15688         * Changes for reentrancy.
15689         libc/include/_ansi.h (_PARAMS): New macro.
15690         libc/include/errno.h: Define errno as a macro that calls __errno.
15691         (__errno_r): New macro for reentrant code.
15692         libc/include/math.h: Include reent.h.  Declare many reentrant
15693         functions.
15694         (signgam): Now a macro, not a variable.
15695         (struct exception): Added err field.
15696         libc/include/reent.h: Don't declare __sglue.  Added function
15697         declarations.
15698         (struct reent_struct): Moved errno to beginning.  Added _signgam.
15699         libc/include/stdio.h, libc/include/stdlib.h: Added function
15700         declarations.
15701
15702         * More reentrancy hacking.
15703         libc/errno/errno.c (__errno): New function.
15704         libc/reent/execr.c, libc/reent/filer.c, libc/reent/fstatr.c,
15705         libc/reent/linkr.c, libc/reent/sbrkr.c, libc/reent/statr.c: New
15706         files.
15707         
15708         * Added many new reentrant functions to libm/math/*.
15709         libm/math/error.c (__matherror): Added reent_struct pointer
15710         argument. Changed all callers.
15711         libm/math/gamma.c (signgam): Removed. Set ptr->_signgam, instead.
15712         libm/math/exp.h, libm/math/pow.h, libm/math/sincos.h,
15713         libm/math/tan.h: Removed obsolete unused header files.
15714
15715         * libc/sys/a29khif/stubs.s: Use register lr0, not v0.
15716
15717         * libc/sys/sun/Makefile.in (COPYOFILES): Don't pull in errno.o.
15718
15719 Mon Mar  8 16:43:43 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
15720
15721         * libc/sys/a29khif/stubs.s: clobber safe register, and fill all
15722         delay slots.
15723
15724 Tue Mar  2 14:47:00 1993  Jeffrey Osier      (jeffrey@fowanton.cygnus.com)
15725
15726         * libc/libc.texinfo:  comment out reentrancy chapter (duh)
15727
15728 Tue Mar  2 14:34:16 1993  Jeffrey Osier      (jeffrey@fowanton.cygnus.com)
15729
15730         * libc/reent/reent.tex:  New file.  (text from
15731         newlib/libc/libc.texinfo)
15732         * libc/stdio/tmpnam.c:  fixed doc typo
15733         * libc/stdlib/rand.c:   fixed doc typo
15734
15735 Tue Mar  2 14:34:16 1993  Jeffrey Osier      (jeffrey@fowanton.cygnus.com)
15736
15737         * libc/reent/reent.tex:  New file.  (text from
15738         newlib/libc/libc.texinfo)
15739
15740 Fri Feb 26 12:20:54 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
15741
15742         support for reentrancy
15743         * libc/reent/reent.c, libc/reent/Makefile.in, libc/reent/reent.c:
15744         new files
15745         * libc/errno/errno.c, libc/include/ieeefp.h,
15746         libc/include/locale.h, libc/include/reent.h,
15747         libc/include/signal.h, libc/include/stdio.h,
15748         libc/include/stdlib.h, libc/include/string.h, libc/include/time.h,
15749         libc/signal/signal.c libc/stdio/cvt.c, libc/stdio/fclose.c,
15750         libc/stdio/fdopen.c, libc/stdio/fflush.c, libc/stdio/fgets.c,
15751         libc/stdio/findfp.c, libc/stdio/flags.c, libc/stdio/fopen.c,
15752         libc/stdio/fputc.c, libc/stdio/freopen.c, libc/stdio/fseek.c,
15753         libc/stdio/ftell.c, libc/stdio/fwalk.c, libc/stdio/getchar.c,
15754         libc/stdio/gets.c, libc/stdio/glue.h, libc/stdio/iprintf.c,
15755         libc/stdio/local.h, libc/stdio/makebuf.c, libc/stdio/perror.c,
15756         libc/stdio/printf.c, libc/stdio/putchar.c, libc/stdio/puts.c,
15757         libc/stdio/refill.c, libc/stdio/scanf.c, libc/stdio/setvbuf.c,
15758         libc/stdio/sprintf.c, libc/stdio/tmpfile.c, libc/stdio/tmpnam.c,
15759         libc/stdio/ungetc.c, libc/stdio/vfprintf.c, libc/stdio/vfprintf.h,
15760         libc/stdio/vfscanf.c, libc/stdio/vprintf.c, libc/stdio/wsetup.c,
15761         libc/stdlib/__adjust.c, libc/stdlib/__exp10.c,
15762         libc/stdlib/assert.c, libc/stdlib/atexit.c, libc/stdlib/atol.c,
15763         libc/stdlib/dtoa.c, libc/stdlib/ecvtbuf.c, libc/stdlib/malloc.c,
15764         libc/stdlib/mprec.c, libc/stdlib/mprec.h, libc/stdlib/rand.c,
15765         libc/stdlib/setenv.c, libc/stdlib/std.h, libc/stdlib/strtod.c,
15766         libc/stdlib/strtol.c, libc/stdlib/strtoul.c, libc/string/strtok.c,
15767         libc/time/asctime.c, libc/time/localtime.c, libc/time/mktime.c,
15768         libc/time/strftime.c: modify to provide reentracy.
15769
15770         new routines:
15771         strtok_r, asctime_r, fdopen_r, _cleanup_r, fopen_r, iprintf_r,
15772         perror_r, printf_r, putchar_r, puts_r, scanf_r, sprintf_r,
15773         tmpfile_r, vfiprintf_r, vfprintf_r, strtod_r, dtoa_r, rand_r,
15774         srand_r, strtoul_r,strtol_r, free_r, malloc_r, morecore_r,
15775         mstats_r, realloc_r, localeconv_r, setlocale_r
15776
15777 Wed Feb 17 20:17:15 1993  Mark Eichin  (eichin@cygnus.com)
15778
15779         * libc/include/machine/ieeefp.h, libc/include/machine/setjmp.h,
15780         libc/include/sys/config.h, libc/include/sys/signal.h,
15781         libc/include/sys/stat.h, libc/include/sys/types.h: For compiler
15782         provided macros (such as m68000), use the ansi version
15783         (__m68000__) so that the library can be used with code compiled
15784         -ansi. In particular, m68000, mc68000, _AM29K, i386, MIPSEL, unix,
15785         and sparc.
15786
15787 Wed Feb 17 13:01:34 1993  Jim Wilson  (wilson@sphagnum.cygnus.com)
15788
15789         * configure.in (sparc*): Don't set -fsoft-float for sparc
15790         configurations.  Do set -fsoft-float for sparclite configurations.
15791
15792 Fri Feb 12 16:25:52 1993  Roland H. Pesch  (pesch@fowanton.cygnus.com)
15793
15794         * default.menu, no-signal.menu: alternate forms of libc main menu
15795           (in newlib rather than newlib/libc due to configuration restrictions)
15796
15797         * configure.in: select one of the two menus above, link to
15798         libc.menu
15799
15800         * libc/libc.texinfo: include menu from separate file
15801
15802 Fri Feb 12 12:50:06 1993  Ian Lance Taylor  (ian@cygnus.com)
15803
15804         * Makefile.in (FLAGS_TO_PASS): Put INSTALL back in.
15805         (info): Split long shell command in half.
15806         * libc/Makefile.in (info, targetdep.tex): Don't pass everything to
15807         sub-makes, just CHEW and TARGETDOC. 
15808         (targetdep.tex): Removed now special handling of sys and machine
15809         subdirectories, made obsolete some time ago.
15810         * libc/machine/Makefile.in (doc): Don't pass everything to
15811         sub-make, just CHEW and TARGETDOC.
15812         (Makefile): New target.
15813         * libc/sys/Makefile.in (Makefile): New target.
15814
15815 Thu Feb 11 15:25:15 1993  Ian Lance Taylor  (ian@cygnus.com)
15816
15817         * Makefile.in (here and most subdirectories): Only pass down CHEW
15818         and TARGETDOC when making info, not for other targets.
15819
15820         * Makefile.in (here and most subdirectories), host/any: Use $(AR)
15821         $(AR_FLAGS) rather than $(ARUPDATE).
15822
15823 Wed Feb 10 11:57:52 1993  Ian Lance Taylor  (ian@cygnus.com)
15824
15825         * Try to reduce command line length:
15826         * Makefile.in (FLAGS_TO_PASS): don't pass down exec_prefix,
15827         CC_FOR_BUILD, CFLAGS_FOR_BUILD, INSTALL or CHEW.
15828         (info, docs): pass CC_FOR_BUILD and CFLAGS_FOR_BUILD to doc.
15829         (info): Pass CHEW to other subdirs.
15830
15831 Tue Feb  9 14:01:42 1993  Mark Eichin  (eichin@cygnus.com)
15832
15833         * configure.in: add signal_dir, like unix_dir, but by default it
15834         is set to "signal" so that a29khif can turn it off (since a29khif
15835         has raise() as part of machine-specific signal.s.)
15836
15837 Fri Jan 15 12:09:50 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
15838
15839         * libc/sys/config.h, libc/machine/ieeefp.h: add Z8000 support
15840         * libc/stdio/Makefile.in: pass CFLAGS so vfiprintf.c gets built
15841         correctly.
15842         * libc/stdio/fdopen.c, libc/stdio/fgets.c, libc/stdio/fscanf.c,
15843         libc/stdio/vfprintf: type lint.
15844         * libc/sys/z8ksim/crt0.c (start): Z8001/Z8002 independent
15845         initialzation code.
15846         * libc/sys/z8ksim/glue.c: Z8001/Z8002 clean system calls.
15847
15848 Tue Dec 29 10:15:33 1992  Ian Lance Taylor  (ian@cygnus.com)
15849
15850         * stub/mvme135/mvme135-asm.S: new file.
15851         stub/mvme135mvme135-stub.c: moved all assembler routines into
15852         mvme135-asm.S.
15853         stub/mvme135/Makefile.in: build mvme135-stub.o.
15854
15855 Mon Dec 28 12:40:43 1992  Ian Lance Taylor  (ian@cygnus.com)
15856
15857         * Makefile.in: don't pass down $(CPP); use $(CC) -E in
15858         sub-Makefiles instead, to try to avoid line length limitations.
15859
15860 Mon Dec 21 18:36:13 1992  Per Bothner  (bothner@rtl.cygnus.com)
15861
15862         * libc/include/unistd.h (read, write):  Use void* instead of
15863         char*.
15864
15865 Thu Dec 17 13:49:46 1992  Mark Eichin  (eichin@cygnus.com)
15866
15867         * stub/go32/resetpc: sample script to send a reset packet to the
15868         stub
15869
15870         * stub/go32/I386STUB.C: new file, gdb/i386stub.c modified for the
15871         DOS environment, which compiles with Turbo C.
15872
15873         * stub/go32/DSER32.LNK: new file, linker commands for serial
15874         remote stub.
15875
15876         * stub/go32/CONTROL.C: turn off debug_mode, add CYGNUS tag line to
15877         start up message to identify version; call set_debug_traps.
15878
15879         * stub/go32/DEBUG.C: turn off debug_mode (so stub doesn't need any
15880         keyboard interaction); call handle_exception() in go_til_stop,
15881         rather than return, so that the remote stub gets control.
15882
15883         * stub/go32/MAKEFILE: fixed to actually use DOS commands (del and
15884         rename, rather than mv), set flags that work with current Turbo C,
15885         including using the /3 flag; also, add commands to build dser32.
15886
15887         * stub/go32/DEBUG32.LNK, stub/go32/GO32.LNK: fix paths to match
15888         default Turbo C installation (\tc rather than \usr)
15889
15890         * stub/go32/MONO.C (printf): current Turbo C uses "..." instead of
15891         "&..."
15892
15893 Mon Dec 14 09:37:33 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
15894
15895         * libc/include/math.h: added _DOUBLE_IS_32BITS checks
15896
15897 Thu Nov 12 22:31:04 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
15898
15899         * libc/stdio/cvt.c (licvt): new function to convert ints when
15900         sizeof(int) != sizeof(long).
15901
15902         * libc/include/stdio.h: added prototype for iprintf.
15903         * libc/include/machine/limits.h machine/ieeefp.h: z8k stuff
15904
15905 Tue Nov 10 12:18:12 1992  Ian Lance Taylor  (ian@cygnus.com)
15906
15907         * libc/machine/m68k/setjmp.S: use __USER_LABEL_PREFIX__ and
15908         __REGISTER_PREFIX__.
15909
15910 Mon Nov  2 13:50:14 1992  Ian Lance Taylor  (ian@cygnus.com)
15911
15912         * libc/sys/m68kbare: moved into stub directory.
15913
15914 Mon Nov  2 13:40:42 1992  Ian Lance Taylor  (ian@cygnus.com)
15915
15916         * configure.in, Makefile.in: created new directory stub, to hold
15917         sample code for specific targets.
15918
15919 Wed Oct 28 02:19:55 1992  Mark Eichin  (eichin@cygnus.com)
15920
15921         * restored libc/sys/go32/sys/fcntl.h, to override incorrect values
15922         in the unified libc/include/sys/fcntl.h.
15923
15924 Wed Oct 21 13:55:58 1992  Doug Evans  (dje@rtl.cygnus.com)
15925
15926         * libc/stdlib/ecvtbuf.c: (print_f,_gcvt): printf("%f", 0.01)
15927         printed .01, not 0.01.
15928
15929 Mon Oct 19 11:05:55 1992  Ian Lance Taylor  (ian@cygnus.com)
15930
15931         * configure.in: compile with -m68000 for m68* targets.
15932
15933 Sun Oct 18 05:29:05 1992  Mark Eichin  (eichin@cygnus.com)
15934
15935         * libm/math/remainder.c (remainder): document the svr4 and sunos
15936         references used to construct the function.
15937
15938 Sat Oct 17 21:46:16 1992  Mark Eichin  (eichin@cygnus.com)
15939
15940         * libm/math/remainder.c (rint, remainder): fix old typos.
15941         * libm/math/Makefile.in: actually build remainder.c (functions
15942         rint and remainder, from SysVr4 Programmer's Guide floor(3m) man
15943         page.)
15944
15945 Thu Oct 15 07:48:05 1992  Ian Lance Taylor  (ian@cygnus.com)
15946
15947         * libc/string/bcopy.c: BSD version works on overlapping strings,
15948         so ours should too.
15949
15950         * libc/stdlib/system.c: always invoke /bin/sh, not getenv
15951         ("SHELL").
15952
15953 Wed Oct 14 11:07:11 1992  Ian Lance Taylor  (ian@cygnus.com)
15954
15955         * Makefile.in (docs): new target.
15956
15957 Wed Oct 14 07:44:25 1992  Ian Lance Taylor  (ian@cygnus.com)
15958
15959         * libc/include/sys/times.h: define clock_t as required by POSIX.
15960         libc/include/time.h: protect clock_t from multiple definitions.
15961
15962 Wed Oct  7 11:02:21 1992  Mark Eichin  (eichin at tweedledumber.cygnus.com)
15963
15964         * libm/math/sqrt.h (sqrt): actually, the final version of fp-bit
15965         does not need more than the original three iterations to get
15966         within 1 ulp. (Paranoia tests for rounding to better than that,
15967         but further iterations *don't* help, only more subtle changes
15968         can.)
15969
15970 Tue Oct  6 09:22:12 1992  Ian Lance Taylor  (ian@cygnus.com)
15971
15972         * libc/sys/vxworks68, libc/sys/vxworks960: removed, since they
15973         were doing nothing useful.
15974
15975 Tue Oct  6 08:48:13 1992  Ian Lance Taylor  (ian@cygnus.com)
15976
15977         * configure.in: define MALLOC_PROVIDED for vxworks targets;
15978         removed sys_dir settings of vxworks68 and vxworks960.
15979         host/any: don't pass -nostdinc to gcc, since newlib no longer
15980         provides all required header files.
15981
15982         * libc/stdlib/malloc.c: only compile this file if MALLOC_PROVIDED
15983         is not defined; this provides a hook for VxWorks.
15984
15985 Mon Oct  5 03:44:57 1992  Mark Eichin  (eichin at tweedledumber.cygnus.com)
15986
15987         * libc/stdio/setvbuf.c (setvbuf): while ANSI does say to malloc a
15988         buffer if buf is NULL, don't do it here -- it is already being
15989         done by makebuf elsewhere in stdio.
15990
15991 Fri Oct  2 13:12:07 1992  Ian Lance Taylor  (ian@cygnus.com)
15992
15993         * libc/sys/a29khif/Makefile.in: assemble Steve's list of stubs so
15994         that C programs can call functions without using initial
15995         underscores.
15996
15997 Thu Oct  1 09:37:47 1992  Ian Lance Taylor  (ian@cygnus.com)
15998
15999         * libc/stdlib/abort.c (abort): call exit, in case kill returns.
16000
16001 Wed Sep 30 08:22:18 1992  Ian Lance Taylor  (ian@cygnus.com)
16002
16003         * configure.in: set TARGET_CFLAGS for certain CPU types to
16004         -msoft-float.
16005
16006 Tue Sep 29 21:09:32 1992  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
16007
16008         * libc/sys/m68kbare/glue.c: use <_ansi.h> instead of <ansidecl.h>
16009
16010 Mon Sep 28 14:58:44 1992  Ian Lance Taylor  (ian@cygnus.com)
16011
16012         * configure.in: added sys_dir m68kbare for m68k*-unknown-aout and
16013         m68k*-unknown-coff.
16014
16015 Fri Sep 25 08:33:21 1992  Ian Lance Taylor  (ian@cygnus.com)
16016
16017         * libc/include/stdio.h: define __need___va_list before including
16018         <stdarg.h>, to avoid defining va_arg, et. al.
16019
16020 Tue Sep 22 13:47:00 1992  Ian Lance Taylor  (ian@cygnus.com)
16021
16022         * libc/sys/Makefile.in: handle the case of an empty $(sys_dir)
16023         (don't cd to the user's home directory).
16024
16025         * libc/Makefile.in: replaced all instances of $(MAKE) with make.
16026         In general this is the wrong thing to do, but I can't get around
16027         GNU make's insistence on passing command line arguments any other
16028         way.
16029
16030 Tue Sep 22 10:12:44 1992  Ian Lance Taylor  (ian@cygnus.com)
16031
16032         * configure.in: always configure the libc/sys directory, since it
16033         now provides a required documentation file.
16034
16035         * Makefile.in: replaced all instances of $(MAKE) with make.  In
16036         general this is the wrong thing to do, but I can't get around GNU
16037         make's insistence on passing command line arguments any other way.
16038
16039 Mon Sep 21 22:42:26 1992  Ian Lance Taylor  (ian@tweedledumbest.cygnus.com)
16040
16041         * libc/stdlib/ecvtbuf.c (_gcvt): string for 0 was not null
16042         terminated.
16043
16044         * libc/stdio/local.h: include <stdarg.h> to define va_list.
16045         libc/stdio/vsprintf.c: include <stdarg.h> rather than <varargs.h>.
16046
16047         * libc/include/float.h, libc/include/stdarg.h,
16048         libc/include/stddef.h, libc/include/varargs.h: removed; use gcc
16049         versions instead.
16050         libc/include/stdio.h: get size_t from <stddef.h>, and va_list from
16051         <stdarg.h>, not from <machine/types.h>.  Protect definition of
16052         NULL.
16053         libc/include/time.h: get size_t from stddef.h.  Protect definition
16054         of NULL.
16055         libc/include/machine/limits.h: override gcc <limits.h> by defining
16056         _LIMITS_H___.  Don't define CLK_TCK.  Copied in gcc <limits.h> to
16057         get correct INT_MIN and LONG_LONG values.
16058         libc/include/machine/types.h: don't define ptrdiff_t, wchar_t,
16059         size_t or va_list at all; they're now gotten from stddef.h
16060         instead.
16061         libc/include/machine/varargs.h: removed; use gcc version instead.
16062         libc/include/sys/types.h: explicitly include <machine/types.h>.
16063
16064         * libm/math/sqrt.h: using the fp-bit routines appears to require
16065         more iterations.
16066
16067         * Makefile.in, host/any: let system include files override machine
16068         include files.
16069
16070 Sat Sep 19 21:10:06 1992  Mark Eichin  (eichin at tweedledumber.cygnus.com)
16071
16072         * libc/include/machine/types.h: allow __*_TYPE__ from cpp to
16073         override _*_T_ definitions defaulted here.
16074
16075 Tue Sep 15 11:14:46 1992  Ian Lance Taylor  (ian@cygnus.com)
16076
16077         * Makefile.in (install): install the include files in
16078         $(tooldir)/include, not $(exec_prefix)/include.
16079
16080 Fri Sep 11 15:48:43 1992  Ian Lance Taylor  (ian@cygnus.com)
16081
16082         * Makefile.in (install): fixed typo, and changed install to not
16083         force rebuild of libc.a and libm.a.
16084
16085 Thu Sep 10 10:46:09 1992  Ian Lance Taylor  (ian@cygnus.com)
16086
16087         * libc/sys/a29khif/*: Changed all .include's to include
16088         sys/sysmac.h, not plain sysmac.h.  The header files live in sys so
16089         that they will be installed for the user.
16090
16091         * Makefile.in (all): create targ-include, a directory holding the
16092         machine and system specific header files during the build.
16093         (install): fixed installation of machine and system specific
16094         header files.
16095
16096         * Makefile.in: fixed comment.
16097         host/any: change .s.o rule to use $(AS) rather than $(CC), so that
16098         we can pass $(INCLUDES) to it.
16099
16100 Thu Sep 10 10:13:13 1992  Ian Lance Taylor  (ian@cygnus.com)
16101
16102         * libc/include/sys/param.h: new generic file, which may be
16103         overridden for specific systems.
16104
16105         * libc/include/sys/signal.h: define all ANSI signal names, and
16106         NSIG (which is not ANSI) for a29k.
16107
16108 Tue Sep  8 09:04:30 1992  Ian Lance Taylor  (ian@cygnus.com)
16109
16110         * Makefile.in: don't pass down arguments the lower level makes
16111         will not need.
16112         * libc/Makefile.in: recurse directly, rather than using subdir_do,
16113         in hopes of avoiding argument length limits.
16114         * libm/Makefile.in: recurse directly, rather using subdir_do, in
16115         hopes of avoiding argument length limits.
16116
16117 Tue Sep  8 08:27:22 1992  Ian Lance Taylor  (ian@cygnus.com)
16118
16119         * libc/include/sys/fcntl.h: include <sys/types.h> to ensure that
16120         mode_t is defined.
16121
16122 Mon Sep  7 14:02:07 1992  Ian Lance Taylor  (ian@cygnus.com)
16123
16124         * Fixed make info and make install-info for newlib, changing most
16125         Makefile.in and several *.tex files.  Moved doc directory from
16126         libc to top level.
16127
16128         * libc/time/mktime.c (_DAYS_IN_MONTH): actually, not const.
16129         Should be rewritten.
16130
16131         * libc/string/strings.tex: renamed node index to node index
16132         function, so that it does not conflict with the top level index
16133         node.
16134
16135         * libc/include/sys/config.h: define __IEEE_BIG_ENDIAN for h8300.
16136
16137 Fri Sep  4 02:34:06 1992  Ian Lance Taylor  (ian@cygnus.com)
16138
16139         * Overhauled general configuration for newlib.  Eliminated all
16140         target dependent Makefile fragments.  Create libraries in newlib
16141         rather than newlib/libc and newlib/libm.  Use CC, et. al., rather
16142         than CROSS_CC, et. al.  Broke make docs; will fix later.
16143
16144         * libc/time/localtime.c (_DAYS_IN_MONTH): actually, not const.
16145         Should be rewritten.
16146
16147 Tue Sep  1 15:21:14 1992  Ian Lance Taylor  (ian@cygnus.com)
16148
16149         * libc/configure.in: cleaned up somewhat; switch on ${target}
16150         rather than ${target_alias}.
16151         * libm/configure.in: cleaned up somewhat; switch on ${target}
16152         rather than ${target_alias}.
16153
16154         * libc/ctype/ctype_.c: marked _ctype_ array _CONST.
16155         * libc/include/ctype.h: marked _ctype_ as _CONST.
16156
16157         * libc/locale/locale.c (lconv, localeconv): marked static lconv as
16158         _CONST.
16159
16160         * libc/stdio/cvt.c, libc/stdio/findfp.c (__sfmoreglue),
16161         libc/stdio/vfscanf.c (__svfscanf): made static variables const.
16162         libc/stdio/gets.c (gets): removed non-ANSI warning message.
16163         libc/stdio/tmpnam.c (tmpnam): removed unneeded filename variable.
16164
16165         * libc/stdlib/mprec.h, libc/stdlib/mprec.c (pow5mult, tens,
16166         bigtens, tinytens): marked arrays _CONST.
16167         libc/stdlib/qsort.c (swap): if __GNUC__, use _builtin_alloca
16168         rather than a static variable.
16169
16170         * libc/time/asctime.c (asctime), libc/time/localtime.c
16171         (_DAYS_IN_MONTH), libc/time/mktime.c (_DAYS_IN_MONTH,
16172         _DAYS_BEFORE_MONTH), libc/time/strftime.c (dname_len, dname,
16173         mname_len, mname): Marked static arrays _CONST.
16174
16175         * libm/math/gamma.h: made local variables non-static.
16176
16177         * libm/math/acos.h, libm/math/bessel.c, libm/math/erf.c,
16178         libm/math/exp.c, libm/math/gamma.h: marked static arrays as
16179         _CONST.
16180
16181         * libm/math/constants.c: removed file, because the constants it
16182         defined were never referenced.
16183         libm/math/Makefile.in: removed references to constants.c.
16184         libm/math/mathimpl.h: removed declarations of constants.
16185
16186 Wed Aug 26 21:09:06 1992  Ian Lance Taylor  (ian@cygnus.com)
16187
16188         * libc/include/machine/varargs.h: only call __builtin_saveregs if
16189         it is sensibly defined in libgcc2.  Checks preprocessor defines,
16190         which is not a good solution.
16191
16192         * libm/sqrt.c: sqrt(Infinity) should not be a domain error.
16193
16194         * libm/frexp.c: handle denormalized numbers as arguments.
16195
16196         * libm/math/Makefile.in: added some dependencies for .c files
16197         which include local .h files.
16198
16199 Mon Aug 24 12:57:58 1992  Ian Lance Taylor  (ian@cygnus.com)
16200
16201         * libc/configure.in: set target_alias for OSE*.  Replace
16202         target_makefile_frag if it is blank.
16203
16204         * libc/Makefile.in: make sure everything is passed to subsidiary
16205         makes; create all directories when installing.
16206
16207         * libm/ieeefp/Makefile.in, libm/math/Makefile.in: use
16208         CROSS_ARUPDATE instead of AR.
16209
16210         * libm/configure.in: set target_alias for OSE*.  Replace
16211         target_makefile_frag if it is blank.
16212
16213         * libm/Makefile.in: make sure everything is passed to subsidiary
16214         makes; create all directories when installing.
16215
16216 Thu Aug 20 15:11:51 1992  Mark Eichin  (eichin@cygnus.com)
16217
16218         * add following change from libc copy.
16219
16220 Wed Aug 19 18:54:49 1992  Roland H. Pesch  (pesch@fowanton.cygnus.com)
16221
16222         * libc/libc.texinfo: make copyright disclaimers appear on back of
16223         title page; make format of same slightly less ugly; avoid using
16224         underbars in section headings (avoids nasty texinfo bug in table
16225         of contents).
16226
16227         * libc/ctype/tolower.c, libc/ctype/toupper.c: (doc changes in
16228           comments only) avoid using underbars in section headings
16229
16230         * libc/ieeefp/ieeefp.tex: include doc from fpsticky, infinity,
16231           isnan ieeefp/fpmask.c, ieeefp/fpround.c, ieeefp/fpsticky.c (doc
16232           changes in comments only): shorten headings ieeefp/infinity.c,
16233           ieeefp/isnan.c: (doc, comments only) more informative headings
16234
16235         * libc/math/bessel.c: (doc, comments only) shorten heading
16236
16237         * libc/stdlib/efgcvt.c, libc/stdlib/mbtowc.c, libc/stdlib/wctomb.c
16238         (doc, comments only) shorten headings
16239
16240         * libc/time/localtime.c (doc, comments only): shorten headings
16241
16242         * libm/ieeefp/ieeefp.tex: include doc from fpsticky, infinity,
16243           isnan
16244           libm/ieeefp/fpmask.c, libm/ieeefp/fpround.c,
16245           libm/ieeefp/fpsticky.c (doc changes in comments only): shorten
16246           headings
16247           libm/ieeefp/infinity.c, libm/ieeefp/isnan.c: (doc, comments
16248           only) more informative headings
16249         * libm/math/bessel.c: (doc, comments only) shorten heading
16250
16251 Wed Aug 19 07:06:37 1992  Mark Eichin  (eichin at tweedledumber.cygnus.com)
16252
16253         * .../Makefile.in: use CROSS_ARUPDATE consistently.
16254         * config/*.mt: define CROSS_AR as well as CROSS_ARUPDATE
16255         * config/*.mt: define CROSS_CPP based on CROSS_CC, not /lib/cpp.
16256         * .../Makefile.in: get rid of .c.o rule - if TOP is correctly
16257         defined, the one from the .mt file will be correct.
16258         * libc/include/machine, libc/include/sys: created, and populated
16259         with common files from machine/*/machine. ifdefs were used for
16260         most, typically by handling exceptions first and then filling in
16261         defaults. Files with D.J. Delorie copyright #included rather than
16262         copied. Most files in include/sys really were the same in the
16263         original.
16264         * libc/include/...: cleaned up use of _EXFUN.
16265         * libc/stdlib/mprec.c: mprec.h doesn't get installed, so include
16266         it with double quotes, not angles.
16267
16268 Mon Aug 10 11:43:20 1992  Ian Lance Taylor  (ian@dumbest.cygnus.com)
16269
16270         * libc/Makefile.in: always create installation directories.
16271
16272 Sun Aug  9 22:45:48 1992  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
16273
16274         * libc/configure.in: handle host properly (using canonical
16275         triples), better error message for the case of target not found
16276
16277 Thu May 28 01:56:37 1992  Michael Tiemann  (tiemann@rtl.cygnus.com)
16278
16279         * libc/Makefile.in (insincdir): Ensure this directory exists
16280         before attempting installation.
16281
16282 Fri May  1 18:16:42 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
16283
16284         * libc/stdlib/assert.c: now calls abort like it should
16285         * libc/sys/a29khif: many many patches for 29khif work
16286         * libc/machine/i386: gnulib2 expanded there.
16287
16288 Tue Apr 28 19:08:37 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
16289
16290         Added accurate fp conversion routines to stdlib, moved dcvt from
16291         stdio to stdlib and called it ecvtbuf:
16292         * libc/stdlib/mprec.c, mprec.h: new files for multiprec arithmetic
16293         * libc/stdlib/Makefile.in, efgcvt.c, strtod.c: modified to use new
16294         routines
16295         * libc/libc.texinfo: Modifed to include the copyright info from
16296         the mprec files
16297         * libc/stdlib/efgcvt.c: now xref to ecvtbuf in stdlib.
16298         * libc/test/ : many vector which tested for the implementation
16299         defined returns of strange conversion requests have been updated
16300         to relflect the new implementation
16301
16302 Mon Apr 27 13:41:33 1992  Roland H. Pesch  (pesch@fowanton.cygnus.com)
16303
16304         * libc/libc.texinfo: new chapter on variable arg lists
16305         (stdarg.h/varargs.h)
16306         * libc/libc.texinfo: new title
16307         * libc/time/gmtime.c, libc/time/localtime./c, libc/time/mktime.c:
16308         (doc only) shorter headings for better formatting.
16309
16310 Fri Apr 24 11:26:48 1992  Roland H. Pesch  (pesch@fowanton.cygnus.com)
16311
16312         * libc/libc.texinfo: three more info menu entries
16313         * libc/locale/locale.tex: new chapter
16314         * libc/locale/locale.c: new doc for setlocale, localeconv
16315         * libc/locale/Makefile.in: use new locale doc
16316         * libc/signal/signal.tex: new chapter
16317         * libc/signal/raise.c, libc/signal/signal.c: new doc
16318         * libc/signal/Makefile.in: use new doc
16319         * libc/time/time.tex: new chapter
16320         * libc/time/asctime.c libc/time/clock.c libc/time/ctime.c
16321         libc/time/difftime.c libc/time/gmtime.c libc/time/localtime.c
16322         libc/time/mktime.c libc/time/strftime.c libc/time/time.c: new doc
16323         * libc/time/Makefile.in: use new doc
16324
16325 Tue Apr 21 14:48:50 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
16326
16327         * libm/math/log1p.c: split to use the new function way of float
16328         function definition. math/log1p.h deleted
16329         * libm/math/scalb.c: obsolete and deleted
16330         * libm/math/scalbn.c: created from part log1p.c
16331         * libm/math/Makefile.in: know about log1p and scalbn
16332
16333 Tue Apr 21 12:32:21 1992  Roland H. Pesch  (pesch@fowanton.cygnus.com)
16334
16335         * libc/ctype/isupper.c: revise doc;
16336           libc/ctype/ctype.tex: use doc from isupper.c
16337
16338         * libc/string/bzero.c: new doc
16339
16340 Mon Apr 20 14:19:42 1992  Roland H. Pesch  (pesch@fowanton.cygnus.com)
16341
16342         * libc/stdlib/system.c, libc/stdlib/exit.c, libc/stdlib/abort.c:
16343         new doc
16344         * libc/stdlib/Makefile.in: extract new doc
16345         * libc/stdlib/stdlib.tex: use new doc
16346
16347         * libc/string/strerror.c: expanded doc.
16348
16349         * libc/stdio/Makefile.in: extract doc from more files
16350         * libc/stdio/fopen.c, libc/stdio/perror.c, libc/stdio/remove.c,
16351         libc/stdio/rename.c, libc/stdio/rewind.c, libc/stdio/setbuf.c,
16352         libc/stdio/setvbuf.c, libc/stdio/sprintf.c, libc/stdio/tmpfile.c,
16353         libc/stdio/tmpnam.c, libc/stdio/vfprintf.c, libc/stdio/vprintf.c,
16354         libc/stdio/vsprintf.c: new doc
16355         * libc/stdio/stdio.tex: use new doc
16356
16357 Mon Apr 20 09:38:17 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
16358
16359         * libc/config/ebmon29k: added CROSS_CPP rule and other fixes
16360         * libc/include/ieeefp.h: fixed ansi conflict with isnanf, isinff,
16361         finitef functions.
16362         * libc/sys/a29khif/sys/*.h: ansidecl.h was renamed to _ansi.h some
16363         time ago.
16364
16365         * libc/stdio/stdio.h: added P_tmpdir for /tmp (SVID thing)
16366         * libc/stdio/setbuf.c: added ansi style definition.
16367         * libc/stdio/setvbuf.c: added ansi definition, now mallocs own
16368         buffer if none provided.
16369         * libc/stdio/tmpfile.c: lint
16370         * libc/stdio/tmpnam.c (worker): created. (tmpnam): mallocs buffer
16371         rather than using static, also make sure file isn't already
16372         present.  Uses P_tmpdir. (tempnam): rewritten to use new
16373         subroutine, and uses P_tmpdir.
16374         * libc/stdio/siprintf.c: created
16375
16376 Mon Apr 13 09:12:58 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
16377
16378         Release 1.03 for NEC, major mods. Main differences from release
16379         1.02::
16380
16381         More tests in test/:
16382         * jn_vec.c, jnf_vec.c, yn_vec.c, ynf_vec.c, log2_vec.c,
16383         log2f_vec.c, atan2_vec.c, atan2f_vec.c: new test vectors.
16384         * test_ieee.c: tests for ieee flags & masks - get/set rounding,
16385         get/set mask, get/set sticky and get/set roundtoi.  Tests
16386         that setting the bits changes the way arithmetic is done.
16387         * string.c: added test to make sure memcmp does it with unsigned
16388         chars.
16389         * test.c: cleaned up and removed lint.
16390         * sprint_vec, sprint_ivec.c, convert.c, conv_vec.c, iconf_vec.c,
16391         dvec.c: tests for string to value conversions,  sprintf, scanf,
16392         atof, atoff, strtod, strtodf, atoi, atol, strtol, ecvtbuf, ecvt,
16393         ecvtf,  fcvtbuf, fcvt, fcvtf, gcvt, gcvtf.  Some attention paid to
16394         rounding in sprintf too.
16395         * test_is.c: tests for  isalnum, isalpha, isascii, iscntrl,
16396         isdigit, isgraph, islower, isprint, ispunct, isspace, isupper,
16397         isxdigit, toascii, tolower, toupper, _tolower, _toupper in macro
16398         and function form.
16399         * math2.c: test for frexp, frexpf, ldexp, ldexpf, modf modff, pow,
16400         powf
16401
16402         In the library:
16403         * libc/stdlib/div.c, libc/stdlib/ldiv.c, libc/stdlib/strtod.c,
16404         libc/stdlib/strtol.c, libc/stdlib/stroul.c, libc/stdlib/abs.c,
16405         libc/stdlib/bsearch.c, libc/stdlib/calloc.c, libc/stdlib/getenv.c,
16406         libc/stdlib/labs.c, libc/stdlib/malloc.c: new documentation
16407         * libc/stdlib/efgcvt.c: rewritten to use new _dcvt routines rather
16408         than sprintf.
16409         * libc/stdio/dcvt.c: rewritten to make more useful elsewhere. 
16410         * Method of producting float versions of double functions has
16411         changed, functions will be modified gradually. So far:
16412         libm/math/exp.c, libm/math/pow.c, libm/math/modf.c,
16413         libm/math/sincos.c, libm/math/fmod.c, libm/math/tan.c have been
16414         altered
16415         * libc/string/memcmp.c: now uses unsigned chars
16416         * libc/string/bcmp.c, libc/string/strcpy.c,
16417         libc/stsring/strxfrm.c: fixed doc
16418         * libc/sys/sysvnecv70.tex: fix example of sbrk code
16419 \f
16420 Local Variables:
16421 version-control: never
16422 End: