OSDN Git Service

2006-08-29 Paul Brook <paul@codesourcery.com>
[pf3gnuchains/pf3gnuchains4x.git] / newlib / ChangeLog
1 2006-08-29  Paul Brook  <paul@codesourcery.com>
2
3         * libc/include/sys/config.h: Define _REENT_SMALL for Thumb-2.
4
5 2006-08-27  Joel Sherrill <joel.sherrill@OARcorp.com>
6
7         * libc/sys/rtems/machine/sys/param.h: Conditionalize definition of
8         BLKDEV_IOSIZE and MAXPHYS so it will fit into small memory targets.
9         This is needed to build all AVR and H8300 RTEMS multilib variants.
10
11 2006-08-23  Kazunori Asayama  <asayama@sm.sony.co.jp>
12
13         * libc/machine/configure.in: Add configuration for SPU.
14         * libc/machine/configure: Regenerated.
15         * libc/machine/spu/memcpy.c: Include string.h.
16
17 2006-08-22  Eric Blake  <ebb9@byu.net>
18
19         * libc/posix/popen.c (popen): Don't close output end of pipe in
20         child if stdout was closed on entry.
21         [HAVE_FCNTL]: In parent, mark file as close-on-exec, per POSIX.
22
23 2006-08-19  Ramana Radhakrishnan  <ramana.r@gmail.com>
24
25         * sys/types.h: Correct syntax error caused by missing '\' on #ifdef
26         line.
27
28 2006-08-17  Brian Ford  <Brian.Ford@FlightSafety.com>
29
30         * libc/time/gmtime.c: Correct man page; clock is not a
31         local time and no conversion occurs.
32
33 2006-08-16  Joel Schopp  <jschopp@austin.ibm.com>
34
35         * configure.host (newlib_cflags) [spu]: Add special compiler
36         options to reduce size.
37
38 2006-08-16  Joel Schopp  <jschopp@austin.ibm.com>
39
40         * configure.host: Add spu support.
41         * libc/include/stdint.h: Ditto.
42         * libc/include/machine/ieeefp.h: Ditto.
43         * libc/include/machine/setjmp.h: Ditto.
44         * libc/include/sys/config.h: Ditto.
45         * libc/include/sys/types.h: Ditto.
46         * libc/machine/spu/Makefile.am: New file.
47         * libc/machine/spu/Makefile.in: Ditto.
48         * libc/machine/spu/aclocal.m4: Ditto.
49         * libc/machine/spu/configure: Ditto.
50         * libc/machine/spu/configure.in: Ditto.
51         * libc/machine/spu/memcpy.c: Ditto.
52         * libc/machine/spu/setjmp.S: Ditto.
53
54 2006-08-03  J"orn Rennecke  <joern.rennecke@st.com>
55
56         * dtoa.c (dtoa_r): Handle the denormalized _DOUBLE_IS_32BITS case
57         properly.
58
59 2006-08-01  Jeff Johnston  <jjohnstn@redhat.com>
60
61         * libc/Makefile.am: Add libc_TEXINFOS dependency on
62         generated .texi files.
63         * libm/Makefile.am: Add libm_TEXINFOS dependency on
64         generated .texi files.
65         * libc/Makefile.in: Regenerated.
66         * libm/Makefile.in: Ditto.
67
68 2006-08-01  Thiemo Seufer  <ths@mips.com>
69             Nigel Stephens  <nigel@mips.com>
70
71         * libc/include/sys/config.h (__ATTRIBUTE_IMPURE_PTR__): For MIPS
72         define this to force _impure_ptr to live in the .sdata section.
73
74 2006-07-31  Jeff Johnston  <jjohnstn@redhat.com>
75
76         * acinclude.m4: Check for readelf tool.
77         * configure.in: Use ${READELF} instead of hard-coding.
78         * Regenerate all aclocal.m4, Makefile.in, and configure files.
79
80 2006-07-31  Jeff Johnston  <jjohnstn@redhat.com>        
81
82         * libc/sys/linux/mmap.c: Remove include of sys/mman.h
83         to avoid conflict with newer glibc's revision of mremap.
84
85 2006-07-05  Jeff Johnston  <jjohnstn@redhat.com>        
86
87         * libc/stdlib/mprec.h [_DOUBLE_IS_32BITS]: Turn off C99 hex 
88         floating-point format support.  Also redefine
89         dword0 and dword1 macros.
90         * libc/stdlib/strtod.c: Add checks for _DOUBLE_IS_32BITS
91         to prevent setting dword1 which is an rvalue only.
92
93 2006-06-22  Jeff Johnston  <jjohnstn@redhat.com>        
94
95         * libc/stdlib/Makefile.am: Add new gdtoa routines.
96         * libc/stdlib/Makefile.in: Regenerated.
97         * libc/stdlib/gd_qnan.h: New file.
98         * libc/stdlib/gdtoa-gethex.c: Ditto.
99         * libc/stdlib/gdtoa-hexnan.c: Ditto.
100         * libc/stdlib/gdtoa.h: Ditto.
101         * libc/stdlib/mprec.c: Add new helper routines needed by
102         the new gdtoa code.
103         * libc/stdlib/mprec.h: Integrate some defines and prototypes
104         used by gdtoa routines here.
105         * libc/stdlib/strtod.c: Rebased on David M. Gay's gdtoa-strtod.c
106         which adds C99 support such as nan, inf, and hexadecimal input
107         format.
108
109 2006-06-15  Corinna Vinschen  <corinna@vinschen.de>
110
111         * libc/include/stdio.h (__sgetc_r): Fix typo.
112         * libc/stdio/fread.c (_fread_r): Convert crlf calls to crlf_r.
113         * libc/stdio/rget.c (__srbuf): Reinstantiate.
114         * libc/stdio/wbuf.c (__swbuf): Ditto.
115
116 2006-06-14  Jeff Johnston  <jjohnstn@redhat.com>        
117
118         * libc/include/stdio.h: Add new reentrant I/O prototypes for
119         read/write functions.  Change getc/putc macros to have reentrant underlying 
120         macros/functions.  This includes __sgetc_raw_r, __sgetc_r, and __sputc_r.
121         * libc/stdio/fgetc.c: Fix and/or add reentrant version to call
122         new reentrant I/O functions/macros for reading/writing.
123         * libc/stdio/fgets.c: Ditto.
124         * libc/stdio/fputc.c: Ditto.
125         * libc/stdio/fputs.c: Ditto.
126         * libc/stdio/fread.c: Ditto.
127         * libc/stdio/fseek.c: Ditto.
128         * libc/stdio64/fseeko64.c: Ditto.
129         * libc/stdio/fwrite.c: Ditto.
130         * libc/stdio/getc.c: Ditto.
131         * libc/stdio/getc_u.c: Ditto.
132         * libc/stdio/getchar.c: Ditto.
133         * libc/stdio/getchar_u.c: Ditto.
134         * libc/stdio/putc.c: Ditto.
135         * libc/stdio/putc_u.c: Ditto.
136         * libc/stdio/putchar.c: Ditto.
137         * libc/stdio/puts.c: Ditto.
138         * libc/stdio/vfprintf.c: Ditto.
139         * libc/stdio/vfscanf.c: Ditto.
140         * libc/stdio/fvwrite.c: Change __sfvwrite into reentrant __sfvwrite_r.
141         Change all previous callers of __sfvwrite.  Set errno to EBADF and
142         set error flag on if attempt is made to write to file that does not
143         allow writing.
144         * libc/stdio/fvwrite.h: Fix new reentrant prototypes.
145         * libc/stdio/local.h: Ditto.
146         * libc/stdio/refill.c: Turn __srefill into reentrant __srefill_r.
147         Set errno to EBADF and the error flag on if attempt is made to
148         read unreadable file.  Change all previous callers of __srefill.
149         * libc/stdio/rget.c
150         * libc/stdio/wbuf.c: Turn __swbuf into reentrant __swbuf_r.  Change
151         all previous callers of __swbuf.
152         * libc/sys/linux/machine/i386/huge_val.h: Ifdef out file contents since
153         huge value macros are already defined correctly for i386 by <math.h>.
154
155 2006-06-13  Sandra Loosemore <sandra@codesourcery.com>
156
157         * /libc/sys/arm/syscalls.c (_unlink, isatty, _system, _rename):
158         Make them do something useful in the ARM_RDI_MONITOR case.
159
160 2006-06-07  Fred Fish  <fnf@specifix.com>
161
162         * libc/search/hash_bigkey.c (MIN,MAX): Remove
163         defines that are already supplied by <sys/param.h>.
164
165 2006-06-07  Fred Fish  <fnf@specifix.com>
166
167         * configure.host: Remove references to HAVE_GETTIMEOFDAY.
168
169 2006-06-05  Shaun Jackman  <sjackman@gmail.com>
170
171         * libc/posix/Makefile.am (GENERAL_SOURCES): Add sleep.c and
172         usleep.c.
173         * libc/posix/Makefile.in: Regenerate.
174         * libc/posix/sleep.c: New file.
175         * libc/posix/usleep.c: Ditto.
176
177 2006-06-05  Shaun Jackman  <sjackman@gmail.com>
178
179         * configure.host (newlib_cflags) [arm, thumb, xscale]:  Remove
180         -DABORT_PROVIDED flag.
181         * newlib/libc/sys/arm/syscalls.c (kill, exit): Sync with libgloss.
182         * newlib/libc/sys/arm/libcfunc.c (abort): Ditto.
183
184 2006-06-05  Jeff Johnston  <jjohnstn@redhat.com>
185
186         * Makefile.am (AM_MAKEFLAGS): Pass CCASFLAGS.
187         * Makefile.in: Regenerated.
188         * libc/machine/sh/Makefile.am (AM_CCASFLAGS): Remove
189         extraneous CFLAGS reference now that CCASFLAGS are being extended
190         properly via multilib.
191         * libc/machine/sh/Makefile.in: Regenerated.
192
193 2006-06-02  Shaun Jackman  <sjackman@gmail.com>
194
195         * libc/unix/sigset.c: Undefine sigfillset, sigdelset, and
196         sigismember.
197
198 2006-05-23  Jeff Johnston  <jjohnstn@redhat.com>
199
200         * libc/misc/dprintf.c: Removed.
201         * libc/misc/__dprintf.c: Renamed from dprintf.c.
202         * libc/misc/Makefile.am: Changed appropriately for rename.
203         * libc/misc/Makefile.in: Regenerated.
204
205 2006-05-23  Jeff Johnston  <jjohnstn@redhat.com>
206
207         * libc/include/stdio.h: Protect dprintf prototype
208         with #ifndef dprintf so as to not interfere with
209         historical code defining their own dprintf macro.
210
211 2006-05-18  Jeff Johnston  <jjohnstn@redhat.com>
212
213         * libc/include/stdio.h: Add prototypes for fiscanf,
214         iscanf, and siscanf.
215
216 2006-05-11  J"orn Rennecke <joern.rennecke@st.com>
217
218         * acinclude.m4 (_NEWLIB_VERSION): Rename to:
219         (DEF_NEWLIB_VERSION).
220         * configure.in (_NEWLIB_VERSION): Use NEWLIB_VERSION.
221         * configure: Regenerate.
222
223 2006-05-09  Jeff Johnston  <jjohnstn@redhat.com>
224
225         * libc/ctype/Makefile.am: Add $(ELIX_SOURCES) to
226         lib_a_SOURCES.
227         * libc/ctype/Makefile.in: Regenerated.
228
229 2006-05-09  Kazu Hirata  <kazu@codesourcery.com>
230
231         * libc/machine/arm/Makefile.am: Fix a typo.
232         * libc/machine/arm/Makefile.in: Regenerated.
233
234 2006-05-08  J"orn Rennecke <joern.rennecke@st.com>
235
236         * libc/machine/sh/Makefile.am (AM_CCASFLAGS): Add $(CFLAGS).
237         * libc/machine/sh/Makefile.in: Regenerate.
238
239 2006-05-03  J"orn Rennecke <joern.rennecke@st.com>
240
241         * libc/sys/sh/Makefile.am (AM_CCASFLAGS): Add $(CFLAGS).
242         * libc/sys/sh/Makefile.in (AM_CCASFLAGS): Likewise.
243
244 2006-05-02  Jeff Johnston  <jjohnstn@redhat.com>
245
246         * libc/sys/sysnec810/Makefile.am: Specify .S files instead of
247         .s.
248         * libc/sys/sysnec810/Makefile.in: Regenerated.
249         * libc/sys/sysnec810/crt0.S: Renamed from .s file.
250         * libc/sys/sysnec810/io.S: Ditto.
251         * libc/sys/sysnec810/crt0.s: Renamed to .S file.
252         * libc/sys/sysnec810/io.s: Ditto.
253
254 2006-05-01  Jeff Johnston  <jjohnstn@redhat.com>
255
256         * libc/argz/Makefile.am: Prefix any objects specified with $(lpfx).  If source file can
257         be specified instead of object, do so.
258         * libc/ctype/Makefile.am: Ditto.
259         * libc/iconv/ccs/Makefile.am: Ditto.
260         * libc/iconv/ces/Makefile.am: Ditto.
261         * libc/iconv/lib/Makefile.am: Ditto.
262         * libc/locale/Makefile.am: Ditto.
263         * libc/posix/Makefile.am: Ditto.
264         * libc/reent/Makefile.am: Ditto.
265         * libc/search/Makefile.am: Ditto.
266         * libc/stdio/Makefile.am: Ditto.
267         * libc/stdio64/Makefile.am: Ditto.
268         * libc/stdlib/Makefile.am: Ditto.
269         * libc/string/Makefile.am: Ditto.
270         * libc/syscalls/Makefile.am: Ditto.
271         * libc/unix/Makefile.am: Ditto.
272         * libc/machine/a29k/Makefile.am: Specify lib_a_CCASFLAGS so .S files will get
273         prefix added automatically.  Any specified rules must use $(lpfx) for
274         object file names.
275         * libc/machine/arm/Makefile.am: Ditto.
276         * libc/machine/cris/Makefile.am: Ditto.
277         * libc/machine/crx/Makefile.am: Ditto.
278         * libc/machine/d10v/Makefile.am: Ditto.
279         * libc/machine/d30v/Makefile.am: Ditto.
280         * libc/machine/fr30/Makefile.am: Ditto.
281         * libc/machine/frv/Makefile.am: Ditto.
282         * libc/machine/h8300/Makefile.am: Ditto.
283         * libc/machine/h8500/Makefile.am: Ditto.
284         * libc/machine/hppa/Makefile.am: Ditto.
285         * libc/machine/i386/Makefile.am: Ditto.
286         * libc/machine/i960/Makefile.am: Ditto.
287         * libc/machine/iq2000/Makefile.am: Ditto.
288         * libc/machine/m32c/Makefile.am: Ditto.
289         * libc/machine/m32r/Makefile.am: Ditto.
290         * libc/machine/m68hc11/Makefile.am: Ditto.
291         * libc/machine/m68k/Makefile.am: Ditto.
292         * libc/machine/m88k/Makefile.am: Ditto.
293         * libc/machine/mips/Makefile.am: Ditto.
294         * libc/machine/mn10200/Makefile.am: Ditto.
295         * libc/machine/mn10300/Makefile.am: Ditto.
296         * libc/machine/mt/Makefile.am: Ditto.
297         * libc/machine/necv70/Makefile.am: Ditto.
298         * libc/machine/powerpc/Makefile.am: Ditto.
299         * libc/machine/sh/Makefile.am: Ditto.
300         * libc/machine/sh/Makefile.in: Ditto.
301         * libc/machine/sparc/Makefile.am: Ditto.
302         * libc/machine/tic4x/Makefile.am: Ditto.
303         * libc/machine/tic80/Makefile.am: Ditto.
304         * libc/machine/v850/Makefile.am: Ditto.
305         * libc/machine/w65/Makefile.am: Ditto.
306         * libc/machine/xscale/Makefile.am: Ditto.
307         * libc/machine/xstormy16/Makefile.am: Ditto.
308         * libc/machine/z8k/Makefile.am: Ditto.
309         * libc/sys/a29khif/Makefile.am: Ditto.
310         * libc/sys/arm/Makefile.am: Ditto.
311         * libc/sys/d10v/Makefile.am: Ditto.
312         * libc/sys/h8300hms/Makefile.am: Ditto.
313         * libc/sys/h8500hms/Makefile.am: Ditto.
314         * libc/sys/linux/Makefile.am: Ditto.
315         * libc/sys/linux/linuxthreads/Makefile.am: Ditto.
316         * libc/sys/linux/net/Makefile.am: Ditto.
317         * libc/sys/linux/stdlib/Makefile.am: Ditto.
318         * libc/sys/m88kbug/Makefile.am: Ditto.
319         * libc/sys/mmixware/Makefile.am: Ditto.
320         * libc/sys/rdos/Makefile.am: Ditto.
321         * libc/sys/rtems/Makefile.am: Ditto.
322         * libc/sys/sh/Makefile.am: Ditto.
323         * libc/sys/sun4/Makefile.am: Ditto.
324         * libc/sys/sysmec/Makefile.am: Ditto.
325         * libc/sys/sysnec810/Makefile.am: Ditto.
326         * libc/sys/sysnecv850/Makefile.am: Ditto.
327         * libc/sys/sysvi386/Makefile.am: Ditto.
328         * libc/sys/sysvnecv70/Makefile.am: Ditto.
329         * libc/sys/tic80/Makefile.am: Ditto.
330         * libc/sys/w65/Makefile.am: Ditto.
331         * libc/sys/z8ksim/Makefile.am: Ditto.
332         * libc/machine/necv70/fastmath.S: Renamed from .s file.
333         * libc/machine/necv70/setjmp.S: Ditto.
334         * libc/machine/necv70/fastmath.s: Removed.
335         * libc/machine/necv70/setjmp.s: Ditto.
336         * libc/machine/w65/*.S: New files renamed from .s files.
337         * libc/machine/w65/*.s: Renamed and removed.
338         * libc/sys/a29khif/*.S: New files renamed from .s files.
339         * libc/sys/a29khif/*.s: Renamed and removed.
340         * libc/sys/sysvi386/*.S: New files renamed from .s files.
341         * libc/sys/sysvi386/*.s: Renamed and removed.
342         * libc/sys/sysvnecv70/*.S: New files renamed from .s files.
343         * libc/sys/sysvnecv70/*.s: Renamed and removed.
344         * libc/*Makefile.in: Regenerated as appropriate.
345
346 2006-04-24  DJ Delorie  <dj@redhat.com>
347
348         * libc/machine/sh/configure.in: Avoid link tests.
349         * libc/machine/sh/configure: Regenerate.
350
351 2006-04-18  Jeff Johnston  <jjohnstn@redhat.com>
352
353         * libc/include/sys/signal.h (sigdelset, sigfillset, sigismember): New macros.
354         (sigaddset, sigemptyset): Add return code.
355
356 2006-04-13  Ralf Corsepius  <ralf.corsepius@rtems.org>
357
358         * acinclude.m4: New _NEWLIB_VERSION.
359         * acinclude.m4(NEWLIB_CONFIGURE): AC_REQUIRE(_NEWLIB_VERSION).
360         Use AC_CANONICAL_HOST instead of AC_CANONICAL_SYSTEM.
361         Use new form of AC_INIT_AUTOMAKE.
362         * configure.in: AC_PREREQ(2.59).
363         Use autoconf-2.5.x version of AC_INIT.
364         Use AC_CONFIG_FILES and autoconf-2.5x AC_OUTPUT instead of
365         autoconf-2.13's AC_OUTPUT.
366         * libm/configure.in: Ditto.
367         * libm/machine/configure.in: Ditto.
368         * libm/machine/i386/configure.in: Ditto.
369         * libc/configure.in: Ditto.
370         * libc/machine/a29k/configure.in: Ditto.
371         * libc/machine/arm/configure.in: Ditto.
372         * libc/machine/configure.in: Ditto.
373         * libc/machine/mn10300/configure.in: Ditto.
374         * libc/machine/powerpc/configure.in: Ditto.
375         * libc/machine/z8k/configure.in: Ditto.
376         * libc/machine/h8300/configure.in: Ditto.
377         * libc/machine/mips/configure.in: Ditto.
378         * libc/machine/crx/configure.in: Ditto.
379         * libc/machine/m68hc11/configure.in: Ditto.
380         * libc/machine/h8500/configure.in: Ditto.
381         * libc/machine/xscale/configure.in: Ditto.
382         * libc/machine/d10v/configure.in: Ditto.
383         * libc/machine/fr30/configure.in: Ditto.
384         * libc/machine/sh/configure.in: Ditto.
385         * libc/machine/tic80/configure.in: Ditto.
386         * libc/machine/m32r/configure.in: Ditto.
387         * libc/machine/xstormy16/configure.in: Ditto.
388         * libc/machine/i386/configure.in: Ditto.
389         * libc/machine/d30v/configure.in: Ditto.
390         * libc/machine/mn10200/configure.in: Ditto.
391         * libc/machine/frv/configure.in: Ditto.
392         * libc/machine/mt/configure.in: Ditto.
393         * libc/machine/i960/configure.in: Ditto.
394         * libc/machine/v850/configure.in: Ditto.
395         * libc/machine/necv70/configure.in: Ditto.
396         * libc/machine/tic4x/configure.in: Ditto.
397         * libc/machine/cris/configure.in: Ditto.
398         * libc/machine/m68k/configure.in: Ditto.
399         * libc/machine/m32c/configure.in: Ditto.
400         * libc/machine/hppa/configure.in: Ditto.
401         * libc/machine/w65/configure.in: Ditto.
402         * libc/machine/iq2000/configure.in: Ditto.
403         * libc/machine/sparc/configure.in: Ditto.
404         * libc/machine/m88k/configure.in: Ditto.
405         * libc/sys/linux/configure.in: Ditto.
406         * libc/sys/linux/machine/configure.in: Ditto.
407         * libc/sys/linux/machine/i386/configure.in: Ditto.
408         * libc/sys/linux/linuxthreads/configure.in: Ditto.
409         * libc/sys/linux/linuxthreads/machine/configure.in: Ditto.
410         * libc/sys/linux/linuxthreads/machine/i386/configure.in: Ditto.
411         * libc/sys/arm/configure.in: Ditto.
412         * libc/sys/configure.in: Ditto.
413         * libc/sys/decstation/configure.in: Ditto.
414         * libc/sys/a29khif/configure.in: Ditto.
415         * libc/sys/sysnecv850/configure.in: Ditto.
416         * libc/sys/d10v/configure.in: Ditto.
417         * libc/sys/netware/configure.in: Ditto.
418         * libc/sys/mmixware/configure.in: Ditto.
419         * libc/sys/h8500hms/configure.in: Ditto.
420         * libc/sys/sh/configure.in: Ditto.
421         * libc/sys/tic80/configure.in: Ditto.
422         * libc/sys/rdos/configure.in: Ditto.
423         * libc/sys/sysmec/configure.in: Ditto.
424         * libc/sys/sysvi386/configure.in: Ditto.
425         * libc/sys/h8300hms/configure.in: Ditto.
426         * libc/sys/sparc64/configure.in: Ditto.
427         * libc/sys/arc/configure.in: Ditto.
428         * libc/sys/sysnec810/configure.in: Ditto.
429         * libc/sys/m88kbug/configure.in: Ditto.
430         * libc/sys/sysvnecv70/configure.in: Ditto.
431         * libc/sys/z8ksim/configure.in: Ditto.
432         * libc/sys/rtems/configure.in: Ditto.
433         * libc/sys/w65/configure.in: Ditto.
434         * libc/sys/sun4/configure.in: Ditto.
435         * doc/configure.in: Ditto.
436         * iconvdata/configure.in: Ditto.
437         * configure.in: Use AC_CONFIG_HEADER instead of AM_CONFIG_HEADER.
438
439 2006-04-11  Jeff Johnston  <jjohnstn@redhat.com>
440
441         * acinclude.m4: Properly add square brackets for
442         AC_DEFUN macros.  Rewrite LIB_AC_PROG_CC to remove
443         macros no longer available.  Add LIB_AM_PROG_AS to
444         remove prereq of AC_PROG_CC.  Add LIB_AC_PROG_CC_GNU
445         macro.  Substitute lpfx (library object prefix).
446         * configure.host: Set lpfx depending on whether
447         libtool is used or not.
448         * configure.in: Individually specify libc and libm
449         to AC_CONFIG_SUBDIRS.  Add square bracket quoting as
450         necessary.
451         * Makefile.am: Use $(lpfx) to get object names for
452         math-library functions that should also be in libc.
453         * libc/machine/configure.in: Use case statement to determine
454         AC_CONFIG_SUBDIRS statement.
455         * libc/sys/linux/linuxthreads/machine/configure.in: Ditto.
456         * libc/sys/linux/machine/configure.in: Ditto.
457         * libc/sys/configure.in: Ditto.
458         * libm/machine/configure.in: Ditto.
459         * libc/sys/linux/configure.in: Fix up AC_CONFIG_SUBDIRS.
460         * libm/configure.in: Add AM_CONDITIONAL statement
461         for HAVE_LIBM_MACHINE_DIR.
462         * libc/machine/a29k/Makefile.am: Modified to work with
463         latest automake.  Change includes setting AM_CCASFLAGS
464         so building .S files will properly pick up flags used
465         to build C files.
466         * libc/machine/arm/Makefile.am: Ditto.
467         * libc/machine/crx/Makefile.am: Ditto.
468         * libc/machine/d10v/Makefile.am: Ditto.
469         * libc/machine/d30v/Makefile.am: Ditto.
470         * libc/machine/fr30/Makefile.am: Ditto.
471         * libc/machine/frv/Makefile.am: Ditto.
472         * libc/machine/h8300/Makefile.am: Ditto.
473         * libc/machine/h8500/Makefile.am: Ditto.
474         * libc/machine/hppa/Makefile.am: Ditto.
475         * libc/machine/i386/Makefile.am: Ditto.
476         * libc/machine/iq2000/Makefile.am: Ditto.
477         * libc/machine/m32c/Makefile.am: Ditto.
478         * libc/machine/m32r/Makefile.am: Ditto.
479         * libc/machine/m68hc11/Makefile.am: Ditto.
480         * libc/machine/m68k/Makefile.am: Ditto.
481         * libc/machine/m88k/Makefile.am: Ditto.
482         * libc/machine/mips/Makefile.am: Ditto.
483         * libc/machine/mn10200/Makefile.am: Ditto.
484         * libc/machine/mn10300/Makefile.am: Ditto.
485         * libc/machine/mt/Makefile.am: Ditto.
486         * libc/machine/necv70/Makefile.am: Ditto.
487         * libc/machine/powerpc/Makefile.am: Ditto.
488         * libc/machine/sh/Makefile.am: Ditto.
489         * libc/machine/sparc/Makefile.am: Ditto.
490         * libc/machine/tic4x/Makefile.am: Ditto.
491         * libc/machine/tic80/Makefile.am: Ditto.
492         * libc/machine/v850/Makefile.am: Ditto.
493         * libc/machine/w65/Makefile.am: Ditto.
494         * libc/machine/xscale/Makefile.am: Ditto.
495         * libc/machine/xstormy16/Makefile.am: Ditto.
496         * libc/machine/z8k/Makefile.am: Ditto.
497         * libc/sys/a29khif/Makefile.am: Ditto.
498         * libc/sys/arc/Makefile.am: Ditto.
499         * libc/sys/arm/Makefile.am: Ditto.
500         * libc/sys/d10v/Makefile.am: Ditto.
501         * libc/sys/decstation/Makefile.am: Ditto.
502         * libc/sys/h8300hms/Makefile.am: Ditto.
503         * libc/sys/h8500hms/Makefile.am: Ditto.
504         * libc/sys/linux/linuxthreads/machine/i386/Makefile.am: Ditto.
505         * libc/sys/linux/machine/i386/Makefile.am: Ditto.
506         * libc/sys/m88kbug/Makefile.am: Ditto.
507         * libc/sys/mmixware/Makefile.am: Ditto.
508         * libc/sys/netware/Makefile.am: Ditto.
509         * libc/sys/rdos/Makefile.am: Ditto.
510         * libc/sys/rtems/Makefile.am: Ditto.
511         * libc/sys/sh/Makefile.am: Ditto.
512         * libc/sys/sparc64/Makefile.am: Ditto.
513         * libc/sys/sysmec/Makefile.am: Ditto.
514         * libc/sys/sysnec810/Makefile.am: Ditto.
515         * libc/sys/sysnecv850/Makefile.am: Ditto.
516         * libc/sys/sysvi386/Makefile.am: Ditto.
517         * libc/sys/sysvnecv70/Makefile.am: Ditto.
518         * libc/sys/tic80/Makefile.am: Ditto.
519         * libc/sys/w65/Makefile.am: Ditto.
520         * libc/sys/z8ksim/Makefile.am: Ditto.
521         * libm/machine/i386/Makefile.am: Ditto.
522         * libc/sys/arm/Makefile.am: Ditto plus add EXTRA sources including
523         trap.S so that automake will generate a .S.o suffix rule.
524         * libc/argz/Makefile.am: Modified to work with
525         latest automake.  Change includes adding lib_a_CFLAGS
526         so automake doesn't complain about libtool and non-libtool
527         libraries sharing objects.
528         * libc/ctype/Makefile.am: Ditto.
529         * libc/errno/Makefile.am: Ditto.
530         * libc/iconv/ccs/Makefile.am: Ditto.
531         * libc/iconv/ces/Makefile.am: Ditto.
532         * libc/iconv/lib/Makefile.am: Ditto.
533         * libc/locale/Makefile.am: Ditto.
534         * libc/misc/Makefile.am: Ditto.
535         * libc/posix/Makefile.am: Ditto.
536         * libc/reent/Makefile.am: Ditto.
537         * libc/search/Makefile.am: Ditto.
538         * libc/signal/Makefile.am: Ditto.
539         * libc/stdio/Makefile.am: Ditto.
540         * libc/stdio64/Makefile.am: Ditto.
541         * libc/stdlib/Makefile.am: Ditto.
542         * libc/string/Makefile.am: Ditto.
543         * libc/sys/linux/Makefile.am: Ditto.
544         * libc/sys/linux/argp/Makefile.am: Ditto.
545         * libc/sys/linux/cmath/Makefile.am: Ditto.
546         * libc/sys/linux/dl/Makefile.am: Ditto.
547         * libc/sys/linux/iconv/Makefile.am: Ditto.
548         * libc/sys/linux/intl/Makefile.am: Ditto.
549         * libc/sys/linux/linuxthreads/Makefile.am: Ditto.
550         * libc/sys/linux/net/Makefile.am: Ditto.
551         * libc/sys/linux/stdlib/Makefile.am: Ditto.
552         * libc/syscalls/Makefile.am: Ditto.
553         * libc/time/Makefile.am: Ditto.
554         * libc/unix/Makefile.am: Ditto.
555         * libm/Makefile.am: Ditto.
556         * libm/common/Makefile.am: Ditto.
557         * libm/math/Makefile.am: Ditto.
558         * libm/mathfp/Makefile.am: Ditto.
559         * Regenerate all aclocal.m4, Makefile.in, and configure files.
560
561 2006-04-07  Jeff Johnston  <jjohnstn@redhat.com>
562
563         * libc/time/time.c (time): Do not check for HAVE_GETTIMEOFDAY
564         anymore.  Assume there is a gettimeofday syscall.
565
566 2006-03-29  Shaun Jackman  <sjackman@gmail.com>
567
568         * libc/sys/linux/include/netinet/ip.h: Include netinet/in_systm.h
569         for the declaration of n_long.
570
571 2006-03-29  Shaun Jackman  <sjackman@gmail.com>
572
573         * libc/sys/linux/include/net/if.h: Include sys/socket.h for
574         struct sockaddr.
575         (IFF_SMART): Replace this define with IFF_NOTRAILERS.
576         (IFF_CANTCHANGE): Replace IFF_SMART reference with IFF_NOTRAILERS.
577         (IFF_NOTRAILERS): New define.
578         (struct ifreq): Add ifru_netmask.
579         (ifr_netmask): New define.
580
581 2006-03-29  Shaun Jackman  <sjackman@gmail.com>
582
583         * libc/sys/linux/sys/ioccom.h (ioctl): Change declaration to
584         match sys/ioctl.h.
585
586 2006-03-29  Shaun Jackman  <sjackman@gmail.com>
587
588         * libtool.m4: Set lt_cv_deplibs_check_method=pass_all for 
589         linux-newlib libc implementations.
590
591 2006-03-29  Eric Blake  <ebb9@byu.net>
592
593         * libc/stdio/freopen.c (_freopen_r) [__SCLE]: Fix typo.
594         * libc/stdio64/freopen64.c (_freopen64_r) [__SCLE]: Likewise.
595
596 2006-03-29  Jeff Johnston  <jjohnstn@redhat.com>
597
598         * libc/sys/linux/io.c (__mknod): Fix declaration of
599         syscall to pass a dev_t as third argument rather than
600         a pointer to dev_t.
601
602 2006-03-29  Jeff Johnston  <jjohnstn@redhat.com>
603
604         * libc/sys/linux/net/name6.c: Fix struct references.
605
606 2006-03-22  Mark Mitchell  <mark@codesourcery.com>
607
608         * configure.host: Allow hosts to set the default
609         newlib_atexit_dynamic_alloc value.
610         * configure.in: Likewise.
611         * configure: Regenerated.
612
613 2006-03-20  Mark Mitchell  <mark@codesourcery.com>
614
615         * acconfig.h (_ATEXIT_DYNAMIC_ALLOC): Undef.
616         * configure.in (--disable-newlib-atexit-dynamic-alloc): New
617         option. 
618         * configure: Regenerated.
619         * newlib.hin: Regenerated.
620         * libc/stdlib/__atexit.c (__register_exitproc): Don't call malloc
621         if _ATEXIT_DYNAMIC_ALLOC is undefined.
622         * libc/stdlib/__call_atexit.c (__call_exitprocs): Don't call free
623         if _ATEXIT_DYNAMIC_ALLOC is undefined.
624
625 2006-03-17  Jeff Johnston  <jjohnstn@redhat.com>
626
627         * libc/sys/linux/linuxthreads/config.h: Remove definition
628         of UINT32_C.
629
630 2006-03-15  Jeff Johnston  <jjohnstn@redhat.com>
631
632         * libc/stdio/wsetup.c (__swsetup): Don't make a buffer
633         for a string I/O file that isn't using the asprintf family.
634
635 2006-03-07  Eric Blake  <ebb9@byu.net>
636
637         * libc/stdio/freopen.c (_freopen_r) [HAVE_FCNTL]: For NULL
638         filename, allow read-only or write-only FILE atop O_RDWR file
639         descriptor.
640         * libc/stdio64/freopen64.c (_freopen64_r) [HAVE_FCNTL]: Likewise.
641
642 2006-03-07  Jeff Johnston  <jjohnstn@redhat.com>
643
644         * libm/common/sf_isinf.c[_DOUBLE_IS_32BITS]: Undef isinf.
645         * libm/common/sf_isnan.c[_DOUBLE_IS_32BITS]: Undef isnan.
646
647 2006-03-02  Jeff Johnston  <jjohnstn@redhat.com>
648
649         * libm/math/math.tex: Fix reference to sisnan.def which
650         is now in common subdirectory.
651         * libm/mathfp/mathfp.tex: Ditto.
652
653 2006-02-27  Jeff Johnston  <jjohnstn@redhat.com>
654
655         * Makefile.am (MATHOBJS_IN_LIBC): Add s_isinfd, sf_isinff, 
656         s_isnand, and sf_isnanf object files.
657         * Makefile.in: Regenerated.
658         * libc/include/ieeefp.h: Undef isnan and isinf to avoid
659         conflict if <math.h> has previously been included.
660         * libc/include/math.h
661         * libc/include/math.h: Make isnan and isinf macros to
662         conform to C99.
663         (__isinfd, __isinff, __isnand, __isnanf): New functions.
664         * libm/common/Makefile.am: Add new s_isinfd, s_isnand, sf_isinff,
665         and sf_isnanf files.  Also support s_isnan, sf_isnan, s_isinf, and
666         sf_isinf files which have been moved from math/mathfp directories. 
667         * libm/common/Makefile.in: Regenerated.
668         * libm/common/s_isinfd.c: New file.
669         * libm/common/s_isnand.c: Ditto.
670         * libm/common/sf_isinff.c: Ditto.
671         * libm/common/sf_isnanf.c: Ditto.
672         * libm/common/s_isinf.c: Moved from libm/math directory.
673         * libm/common/s_isnan.c: Ditto.
674         * libm/common/sf_isinf.c: Ditto.
675         * libm/common/sf_isnan.c: Ditto.
676         * libm/math/Makefile.am: Remove isinf and isnan family functions
677         which have been moved into common directory.
678         * libm/mathfp/Makefile.am: Ditto.
679         * libm/math/Makefile.in: Regenerated.
680         * libm/mathfp/Makefile.in: Ditto.
681         * libm/math/s_isinf.c: Removed.
682         * libm/math/s_isnan.c: Ditto.
683         * libm/math/sf_isinf.c: Ditto.
684         * libm/math/sf_isnan.c: Ditto.
685         * libm/mathfp/s_isinf.c: Ditto.
686         * libm/mathfp/s_isnan.c: Ditto.
687         * libm/mathfp/sf_isinf.c: Ditto.
688         * libm/mathfp/sf_isnan.c: Ditto.
689
690 2006-02-20  Jeff Johnston  <jjohnstn@redhat.com>
691
692         * libc/stdio/fflush.c (fflush): For an fflush on a read-only
693         stream, turn off fseek/rewind optimization as per POSIX/SUSv3.
694         * libc/stdio/fseek.c (_fseek_r): After a successful unoptimized
695         seek, turn off the __SNPT no-optimization flag.
696
697 2006-02-16  Jeff Johnston  <jjohnstn@redhat.com>
698
699         * libc/sys/linux/aio.c: Define _GNU_SOURCE so struct aioinit
700         will be defined.
701         * libc/sys/linux/sys/types.h: Move <sys/config.h> ahead of
702         <features.h> to preset special flags.
703
704 2006-02-15  Corinna Vinschen  <corinna@vinschen.de>
705
706         * libc/include/sys/time.h (struct timeval): Change member types
707         according to SUSv3.
708         * libc/include/sys/types.h (useconds_t): Change to unsigned
709         according to SUSv3.
710         (suseconds_t): Define type.
711
712 2006-02-13  Jeff Johnston  <jjohnstn@redhat.com>
713             David Carne  <davidcarne@gmail.com>
714
715         * libc/string/strndup_r.c (_strndup_r): Use strnlen logic
716         instead of strlen to determine number of bytes to copy.
717         * libc/string/strnlen.c (strnlen): Fix so check for max limit occurs
718         before looking at storage location.
719
720 2006-02-07  Paul Brook  <paul@codesourcery.com>
721
722         * libc/machine/arm/setjmp.S: Add Thumb-2 support.
723         * libc/sys/arm/crt0.S: Add Thumb-2 startup code.
724         * libc/sys/arm/libcfunc.c (do_AngelSWI): Use AngelSWIInsn.
725         * libc/sys/arm/swi.h (AngelSWIInsn, AngelSWIAsm): Define.
726         * libc/sys/arm/trap.S: Disable for Thumb-2.
727
728 2006-01-31  Leif Ekblad  <leif@rdos.net>
729
730         * configure.host: RDOS support added
731         * libc/include/sys/config.h: Ditto.
732         * libc/sys/rdos/Makefile.am, libc/sys/rdos/Makefile.in: New files.
733         * libc/sys/rdos/aclocal.m4, libc/sys/rdos/chown.c: Ditto.
734         * libc/sys/rdos/close.c, libc/sys/rdos/config.h: Ditto.
735         * libc/sys/rdos/configure, libc/sys/rdos/configure.in: Ditto.
736         * libc/sys/rdos/crt0.S, libc/sys/rdos/execve.c: Ditto.
737         * libc/sys/rdos/fork.c, libc/sys/rdos/fstat.c: Ditto.
738         * libc/sys/rdos/getenv.c, libc/sys/rdos/getpid.c: Ditto.
739         * libc/sys/rdos/gettod.c, libc/sys/rdos/isatty.c: Ditto.
740         * libc/sys/rdos/kill.c, libc/sys/rdos/link.c: Ditto.
741         * libc/sys/rdos/lseek.c, libc/sys/rdos/open.c: Ditto.
742         * libc/sys/rdos/rdos.S, libc/sys/rdos/rdos.h: Ditto.
743         * libc/sys/rdos/rdoshelp.c, libc/sys/rdos/read.c: Ditto.
744         * libc/sys/rdos/readlink.c, libc/sys/rdos/sbrk.c: Ditto.
745         * libc/sys/rdos/stat.c, libc/sys/rdos/symlink.c: Ditto.
746         * libc/sys/rdos/times.c, libc/sys/rdos/unlink.c: Ditto.
747         * libc/sys/rdos/user.def, libc/sys/rdos/wait.c: Ditto.
748         * libc/sys/rdos/write.c: Ditto.
749
750 2006-01-24  Jeff Johnston  <jjohnstn@redhat.com>
751
752         * acinclude.m4: Add nodefine to AM_INIT_AUTOMAKE macro invocation
753         so as not to define PACKAGE and VERSION in newlib.h.
754         * aclocal.m4: Regenerated.
755         * configure: Ditto.
756         * newlib.hin: Ditto.
757
758 2006-01-20  Jeff Johnston  <jjohnstn@redhat.com>
759
760         * acconfig.h: New file to generate newlib.hin from.
761         * newlib.hin: Regenerated.
762         * stamp-h.in: Regenerated.
763         * Makefile.am: Add ACLOCAL_AMFLAGS so aclocal can be
764         called automatically.
765         * Makefile.in: Regenerated.
766         * acinclude.m4: Add proper comment for hack in previous change.
767         * aclocal.m4 */aclocal.m4: Regenerated.
768         * configure */configure: Regenerated.
769
770 2006-01-11  Jeff Johnston  <jjohnstn@redhat.com>
771
772         * acinclude.m4: Add hack to prevent INSTALL in subdirs
773         from being set to "../".
774         * Makefile.am: Pass INSTALL in AM_MAKEFLAGS.
775         * aclocal.m4: Regenerated.
776         * configure: Ditto.
777         * Makefile.in: Ditto.
778         * doc/aclocal.m4: Ditto.
779         * doc/configure: Ditto.
780         * iconvdata/aclocal.m4: Ditto.
781         * iconvdata/configure: Ditto.
782         * libc/*/aclocal.m4: Ditto.
783         * libc/*/configure: Ditto.
784         * libc/libc.texinfo: Ditto.
785         * libm/*/aclocal.m4: Ditto.
786         * libm/*/configure: Ditto.
787
788 2006-01-10  Eric Blake  <ebb9@byu.net>
789
790         * libc/stdio/freopen.c (_freopen_r): Fix use of oflags.
791         * libc/stdio64/freopen64.c (_freopen64_r): Likewise.
792
793 2006-01-10  Jeff Johnston  <jjohnstn@redhat.com>
794
795         * libm/mathfp/s_frexp.c: Check for special values on
796         the original input, not the manipulated output value.
797         * libm/mathfp/sf_frexp.c: Ditto.
798         * libm/mathfp/s_atangent.c: Don't use local value branch
799         when checking for quadrant.
800         * libm/mathfp/sf_atangent.c: Ditto.
801
802 2006-01-09  Jeff Johnston  <jjohnstn@redhat.com>
803
804         * libc/stdio/freopen.c: Switch to use isatty instead of _isatty.
805         * libc/stdio64/freopen64.c: Ditto.
806
807 2006-01-09  Eric Blake  <ebb9@byu.net>
808
809         * libc/stdio/freopen.c (_freopen_r): Accept NULL filename.
810         * libc/stdio64/freopen64.c (_freopen64_r): Likewise.
811
812 2006-01-06  Jeff Johnston  <jjohnstn@redhat.com>
813
814         * libc/sys/linux/include/getopt.h: Add macros needed by
815         new version of getopt.c in libc/stdlib.
816
817 2006-01-04  Gregory Pietsch  <gpietsch@comcast.net>
818
819         * libc/stdlib/getopt.c: Replaced with version
820         that adds getopt_long and getopt_long_only support.
821         * libc/include/getopt.h: New file.
822
823 2005-12-16  Jeff Johnston  <jjohnstn@redhat.com>
824
825         * NEWS: Update with 1.14.0 info.
826         * README: Ditto.
827         * acinclude.m4: Change version number to 1.14.0.
828         * aclocal.m4: Regenerated.
829         * configure: Ditto.
830         * doc/aclocal.m4: Ditto.
831         * doc/configure: Ditto.
832         * libc/*/aclocal.m4: Ditto.
833         * libc/*/configure: Ditto.
834         * libc/libc.texinfo: Ditto.
835         * libm/*/aclocal.m4: Ditto.
836         * libm/*/configure: Ditto.
837         * libm/libm.texinfo: Ditto.
838         * libc/sys/linux/shared.ld: Add VERS_1.14.
839
840 2005-12-16  Jeff Johnston  <jjohnstn@redhat.com>
841
842         * libc/sys/linux/sys/stat.h: Change *stat64 prototypes to
843         take a pointer to struct stat64 rather than struct stat.
844
845 2005-12-16  Ralf Corsepius <ralf.corsepius@rtems.org>
846
847         * libc/include/stdint.h: Prefer long over int for int32_t.
848         Use __have_long32 to set up int32_t.
849         * libc/include/inttypes.h: Use "#if xxx" instead of "#ifdef xxx"
850         (Sync with stdint.h).
851
852 2005-12-14  Corinna Vinschen  <corinna@vinschen.de>
853
854         * libc/include/sys/fcntl.h: Define O_SYNC unconditionally.  Fix
855         typo in O_NDELAY comment.
856
857 2005-12-13  Nathan Sidwell  <nathan@codesourcery.com>
858
859         * libc/include/machine/ieeefp.h (__mt__): Renamed from __ms1__.
860         * libc/include/machine/setjmp.h (__mt__): Likewise.
861         * libc/machine/mt/setjmp.S: Rename ms1 reference to mt.
862         * libc/machine/configure.in: Ditto.
863
864 2005-12-12  Nathan Sidwell  <nathan@codesourcery.com>
865
866         * configure.host: Replace ms1 arch with mt arch.
867         * libc/machine/mt: Renamed from ms1 dir.
868
869 2005-12-08  Shaun Jackman  <sjackman@gmail.com>
870
871         * libc/include/sys/types.h: Remove the ifdef armour around
872         standard POSIX types.
873
874 2005-12-06  Ralf Corsepius <ralf.corsepius@rtems.org>
875
876         * libc/sys/rtems/crt0.c: Add rtems_gxx_key_create,
877         rtems_gxx_key_delete, rtems_gxx_getspecific,
878         rtems_gxx_setspecific, rtems_gxx_mutex_trylock, 
879         rtems_gxx_recursive_mutex_init, rtems_gxx_recursive_mutex_lock, 
880         rtems_gxx_recursive_mutex_trylock, rtems_gxx_recursive_mutex_unlock.
881
882 2005-12-05  Christopher Faylor  <cgf@timesys.com>
883
884         * libc/include/stdlib.h: Move cygwin declarations to cygwin-specific
885         file.  Declare unsetenv and _unsetenv_r when not cygwin.
886
887 2005-11-18  Jeff Johnston  <jjohnstn@redhat.com>
888
889         * libc/time/strptime.c (strptime): Don't abort for %c and %Z.
890         Treat %c as "%a %b %e %H:%M:%S %Y" and ignore %Z.
891
892 2005-11-18  Christopher Faylor  <cgf@timesys.com>
893
894         * include/sys/time.h: Move more cygwin stuff to cygwin-specific header.
895
896 2005-11-18  Christopher Faylor  <cgf@timesys.com>
897
898         * include/time.h: Remove more cygwin-specific stuff.
899
900 2005-11-18  Christopher Faylor  <cgf@timesys.com>
901
902         * include/time.h: Move cygwin declarations to cygwin-specific header.
903         * include/sys/time.h: Rename cygwin include to "sys_time.h".
904
905 2005-11-17  Jeff Johnston  <jjohnstn@redhat.com>
906
907         * libc/sys/linux/dl/dl-local.h: New file based on old dlfcn.h
908         in libc/sys/linux/include.
909         * libc/sys/linux/dl/dlfcn.h: Moved to libc/sys/linux/include.
910         * libc/sys/linux/dl/ldsodefs.h: Include dl-local.h instead of dlfcn.h.
911         * libc/sys/linux/include/dlfcn.h: Replaced with dlfcn.h formerly
912         in libc/sys/linux/dl.
913
914 2005-11-11  Christopher Faylor  <cgf@timesys.com>
915
916         * libc/include/sys/time.h: For cygwin, use general header rather than
917         specific "sys/select.h".
918
919 2005-11-08  Tom Walsh  <tom@openhardware.net>
920
921         * libc/time/tzvars.c: New file.
922         * libc/time/tzset_r.c: Moved globals into tzvars.c
923         so other time functions needn't link in __tzset_r and its
924         dependencies.
925         * libc/time/Makefile.am: Add the new file.
926         * libc/time/Makefile.in: Regenerated.
927
928 2005-11-08  Christopher Faylor  <cgf@timesys.com>
929
930         * libc/include/string.h: Add cygwin-specific function declaration.
931
932 2005-11-07  Corinna Vinschen  <corinna@vinschen.de>
933
934         * libc/include/ieeefp.h: Add C++ guards.
935
936 2005-11-03  Jeff Johnston  <jjohnstn@redhat.com>
937
938         * libc/unix/getcwd.c: Don't use non-reentrant syscall names.
939         * libc/unix/getlogin.c: Ditto.
940         * libc/unix/getpass.c: Ditto.
941         * libc/unix/getut.c: Ditto.
942         * libc/unix/ttyname.c: Ditto.
943
944 2005-11-03  Shaun Jackman  <sjackman@gmail.com>
945
946         * libc/include/sys/unistd.h (readlink, symlink): Provide these
947         prototypes by default.
948         * libc/sys/linux/include/unistd.h (readlink): Remove this
949         prototype.
950         * libc/sys/linux/sys/unistd.h (readlink, symlink): New
951         prototypes.
952
953 2005-11-01  Ralf Corsepius <ralf.corsepius@rtems.org>
954
955         * libc/include/stdint.h: Cleanup #if vs. #ifdef.
956
957 2005-10-31  Darin Johnson  <darin@usa.net>
958
959         * libm/mathfp/s_mathcnst.c: Fix endian-ness check to be
960         correct for constants.
961
962 2005-10-28  Bob Wilson  <bob.wilson@acm.org>
963
964         * libc/stdio/siprintf.c: Wrap long lines in ANSI_SYNOPSIS.
965         * libc/stdio/siscanf.c: Likewise.
966         * libc/stdio/sprintf.c: Likewise.
967         * libc/stdio/sscanf.c: Likewise.
968         * libc/stdio/vfprintf.c: Likewise.
969         * libc/stdio/vfscanf.c: Likewise.
970         * libc/stdio/viprintf.c: Likewise.
971         * libc/stdio/viscanf.c: Likewise.
972
973 2005-10-28  Bob Wilson  <bob.wilson@acm.org>
974
975         * libc/sys.tex (Stubs): Format examples consistently.   Change sbrk
976         example to use "_end" symbol instead of "end".  Change write  example
977         to use "outbyte" instead of "writechar".
978
979 2005-10-28  Bob Wilson  <bob.wilson@acm.org>
980
981         * libc/ctype/ctype.tex: Use hyphens as appropriate, but not  otherwise.
982         * libc/ctype/islower.c: Likewise.
983         * libc/ctype/isupper.c: Likewise.
984         * libc/ctype/iswalnum.c: Likewise.
985         * libc/ctype/iswalpha.c: Likewise.
986         * libc/ctype/iswblank.c: Likewise.
987         * libc/ctype/iswcntrl.c: Likewise.
988         * libc/ctype/iswdigit.c: Likewise.
989         * libc/ctype/iswgraph.c: Likewise.
990         * libc/ctype/iswlower.c: Likewise.
991         * libc/ctype/iswprint.c: Likewise.
992         * libc/ctype/iswpunct.c: Likewise.
993         * libc/ctype/iswspace.c: Likewise.
994         * libc/ctype/iswupper.c: Likewise.
995         * libc/ctype/iswxdigit.c: Likewise.
996         * libc/ctype/tolower.c: Likewise.
997         * libc/ctype/toupper.c: Likewise.
998         * libc/ctype/towctrans.c: Likewise.
999         * libc/ctype/towlower.c: Likewise.
1000         * libc/ctype/towupper.c: Likewise.
1001         * libc/string/strcasecmp.c: Likewise.
1002         * libc/string/strcoll.c: Likewise.
1003         * libc/string/strings.tex: Likewise.
1004         * libc/string/strlwr.c: Likewise.
1005         * libc/string/strncasecmp.c: Likewise.
1006         * libc/string/strupr.c: Likewise.
1007         * libc/string/wcscoll.c: Likewise.
1008         * libc/string/wcslcat.c: Likewise.
1009         * libc/string/wcslcpy.c: Likewise.
1010         * libc/string/wcsnlen.c: Likewise.
1011         * libc/string/wcsstr.c: Likewise.
1012         * libc/string/wcstrings.tex: Likewise.
1013         * libc/string/wmemchr.c: Likewise.
1014         * libc/string/wmemcmp.c: Likewise.
1015         * libc/string/wmemcpy.c: Likewise.
1016         * libc/string/wmemmove.c: Likewise.
1017         * libc/string/wmemset.c: Likewise. 
1018
1019 2005-10-28  Bob Wilson  <bob.wilson@acm.org>
1020
1021         * libc/misc/unctrl.c: Replace FUNCTION description.
1022         * libc/signal/signal.c: Remove documentation for raise and  _raise_r.
1023         * libc/stdio/getdelim.c: Fix spelling errors.
1024         * libc/stdio/getw.c: Put RETURNS on a separate line.  Fix  punctuation.
1025         * libc/stdio/putw.c: Likewise.
1026         * libc/stdlib/a64l.c: Fix formatting, spelling and  punctuation in
1027         documentation.
1028         * libc/stdlib/assert.c: Do not capitalize FUNCTION description.
1029         * libc/stdlib/efgcvt.c: Add spaces to FUNCTION description.
1030         * libc/stdlib/envlock.c: Use em-dash in FUNCTION description.
1031         * libc/stdlib/mlock.c: Likewise.
1032         * libc/stdlib/mstats.c: Likewise.
1033         * libc/time/tzlock.c: Likewise.
1034         * libc/stdlib/rand.c: Use "multi-threaded" and "thread-safe"  in NOTES.
1035         * libc/stdlib/rand48.c: Remove extra space in FUNCTION  description
1036         and hyphenate "pseudo-random".
1037         * libc/string/bcmp.c: Remove extra blank lines in  documentation.
1038         * libc/string/strncat.c: Likewise.
1039         * libc/string/memchr.c: Remove extra ">" character in  documentation.
1040         * libc/string/strcspn.c: Use "characters" instead of "chars".
1041         * libc/string/strpbrk.c: Likewise.
1042         * libc/string/strerror_r.c: Capitalize "GNU".
1043         * libc/string/strnlen.c: Likewise.
1044         * libc/string/strtok.c: Fix formatting, spelling and  punctuation in
1045         documentation.  Use "multi-threaded" and "thread-safe" in  NOTES.
1046         * libc/string/wcscat.c: Split PORTABILITY into two paragraphs.
1047         * libc/string/wcschr.c: Likewise.
1048         * libc/string/wcscmp.c: Likewise.
1049         * libc/string/wcscpy.c: Likewise.
1050         * libc/string/wcscspn.c: Likewise.
1051         * libc/string/wcslen.c: Likewise.
1052         * libc/string/wcsncat.c: Likewise.
1053         * libc/string/wcsncmp.c: Likewise.
1054         * libc/string/wcsncpy.c: Likewise.
1055         * libc/string/wcsnlen.c: Likewise.
1056         * libc/string/wcspbrk.c: Likewise.
1057         * libc/string/wcsrchr.c: Likewise.
1058         * libc/string/wcsspn.c: Likewise.
1059         * libc/string/wmemchr.c: Likewise.
1060         * libc/string/wmemcmp.c: Likewise.
1061         * libc/string/wmemcpy.c: Likewise.
1062         * libc/string/wmemset.c: Likewise.
1063         * libc/string/wmemmove.c: Likewise.  Also fix FUNCTION  description.
1064         * libc/string/wcswidth.c: Formatting and punctuation in  documentation.
1065         * libc/string/wcwidth.c: Likewise.
1066         * libm/common/s_modf.c: Remove extra period from documentation.
1067         * libm/math/s_isnan.c: Fix formatting, grammar and  punctuation in
1068         documentation.
1069         * libm/mathfp/s_isnan.c: Likewise.
1070         * libm/math/s_ldexp.c: Fix punctuation.
1071         * libm/mathfp/s_ldexp.c: Likewise.
1072         * libm/math/w_log.c: Likewise.
1073         * libm/mathfp/s_logarithm.c: Likewise.
1074         * libm/math/w_j0.c: Add spaces to FUNCTION description.
1075         * libm/mathfp/w_jn.c: Likewise. 
1076
1077 2005-10-26  Shaun Jackman  <sjackman@gmail.com>
1078
1079         * libc/posix/scandir.c (scandir): Update the function
1080         prototype to match the header.
1081         * libc/sys/linux/linuxthreads/bits/libc-lock.h: Remove an
1082         extraneous #endif.
1083         * libc/sys/linux/sys/lock.h: Do not include
1084         machine/weakalias.h, since it's not used by this file.
1085
1086 2005-10-26  Jeff Johnston  <jjohnstn@redhat.com>
1087
1088         * libc/Makefile.am: Reorder SUBLIBS so machine and sys
1089         directories can override properly.
1090
1091 2005-10-20  Jeff Johnston  <jjohnstn@redhat.com>
1092
1093         * libc/include/math.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): When
1094         gcc is 3.3 or greater, use special gcc builtins.
1095
1096 2005-10-20  Corinna Vinschen <corinna@vinschen.de>
1097
1098         * libc/include/sys/time.h: Declare futimes and lutimes for Cygwin.
1099
1100 2005-10-18  Corinna Vinschen <corinna@vinschen.de>
1101
1102         * libc/include/sys/features.h: Define _POSIX_MEMLOCK_RANGE for Cygwin.
1103
1104 2005-10-14  Jeff Johnston  <jjohnstn@redhat.com>
1105
1106         * libc/include/math.h (HUGE_VALF, HUGE_VALL): New.
1107         * libm/common/Makefile.am: Add s_infconst.c support.
1108         * libm/common/Makefile.in: Regenerated.
1109         * libm/common/s_infconst.c: New file with float and
1110         long double infinity support added.
1111         * libm/math/Makefile.am: Remove s_infconst.c support.
1112         * libm/math/Makefile.in: Regenerated.
1113         * libm/math/s_infconst.c: Moved to common directory.
1114         * libm/mathfp/Makefile.am: Remove s_infconst.c support.
1115         * libm/mathfp/Makefile.in: Regenerated.
1116         * libm/mathfp/s_infconst.c: Moved to common directory.
1117
1118 2005-10-14  Jeff Johnston  <jjohnstn@redhat.com>
1119
1120         * libc/sys/linux/net/gethostbydns.c (dprintf): Rename to
1121         dbgprintf to prevent conflict with new dprintf function.
1122
1123 2005-10-14  Jeff Johnston  <jjohnstn@redhat.com>
1124
1125         * libc/stdio/vfprintf.c (_VFPRINTF_R): Fix up "inf" and
1126         "nan" processing for systems that have long double support.
1127
1128 2005-10-14  Jeff Johnston  <jjohnstn@redhat.com>
1129
1130         * libc/sys/linux/sys/types.h (int8_t): Add type.
1131
1132 2005-10-14  Bob Wilson  <bob.wilson@acm.org>
1133
1134         * libm/common/Makefile.am (doc): Do not append to $(TARGETDOC).
1135         * libm/common/Makefile.in: Regenerate.
1136         * libm/common/common.tex: Delete file.
1137         * libm/math/math.tex: Include .def files from common/.
1138         * libm/mathfp/mathfp.tex: Likewise.
1139
1140 2005-10-14  Bob Wilson  <bob.wilson@acm.org>
1141
1142         * libc/libc.texinfo (Top): Surround this node with @ifnottex
1143         instead of @ifinfo.  Update menu to add Introduction and match
1144         SUBDIRS order.
1145         (Introduction): New section.
1146
1147 2005-10-14  Bob Wilson  <bob.wilson@acm.org>
1148
1149         * libc/reent/reent.tex (Reentrancy): Replace "Cygnus C Library"
1150         with "Red Hat newlib C Library".
1151         * libc/sys.tex (Stubs): Likewise.
1152         * libm/math/math.tex (Math): Likewise.
1153         * libm/mathfp/mathfp.tex (Math): Likewise.
1154
1155 2005-10-11  Shaun Jackman  <sjackman@gmail.com>
1156
1157         * libc/include/stdio.h (dprintf): New declaration.
1158         (vdprintf): Ditto.
1159         * libc/stdio/Makefile.am (GENERAL_SOURCES): Add dprintf.c
1160         and vdprintf.c.
1161         * libc/stdio/Makefile.in: Regenerate.
1162         * libc/stdio/dprintf.c: New file.
1163         * libc/stdio/vdprintf.c: New file.
1164         * libc/stdio/stdio.tex (dprintf): New entry.
1165
1166 2005-10-11  David Weatherford  <weath@tensilica.com>
1167
1168         * libc/stdio/vfprintf.c (_VFPRINTF_R): Recognize 'F' format.
1169         Print "inf" and "nan" in lowercase for e/f/g formats and in 
1170         uppercase for E/F/G formats.
1171
1172 2005-10-07  Bob Wilson  <bob.wilson@acm.org>
1173
1174         * libc/stdlib/mallocr.c (mALLOc, rEALLOCc, mEMALIGn): Set errno
1175         to ENOMEM on failure.
1176
1177 2005-10-06  Ralf Corsepius <ralf.corsepius@rtems.org>
1178
1179         * libc/include/stdint.h: Add [u]int_fast<N>_t types.
1180
1181 2005-10-04  Ralf Corsepius <ralf.corsepius@rtems.org>
1182
1183         * libc/include/stdint.h: Move magic to set __have_long* to the
1184         beginning.  Use #if __have* instead of #if defined(__have*).
1185         Minor typo fixes.
1186
1187 2005-10-04  James E Wilson  <wilson@specifix.com>
1188
1189         * libc/include/sys/dirent.h (_DIRENT_H_): Delete #include_next.  Add
1190         #error.
1191
1192 2005-10-03  Jeff Johnston  <jjohnstn@redhat.com>
1193
1194         * libc/sys/linux/include/stdint.h: Include <sys/types.h> and
1195         incorporate Ralf's change below.
1196
1197 2005-10-03  Ralf Corsepius <ralf.corsepius@rtems.org>
1198
1199         * libc/include/stdint.h: 
1200         Use __INTMAX_TYPE__ to derive intmax_t.
1201         Use __UINTMAX_TYPE__ to derive uintmax_t.
1202         Fix minor typo.
1203
1204 2005-09-27  Ralf Corsepius <ralf.corsepius@rtems.org>
1205
1206         * libc/include/stdint.h: Correct __STDINT_EXP macro incorrectly 
1207         handling GCC >= 4.
1208
1209 2005-09-20  Jeff Johnston  <jjohnstn@redhat.com>
1210
1211         * libc/sys/linux/include/stdint.h: Update to match functionality
1212         of generic newlib stdint.h.
1213
1214 2005-09-20  Jeff Johnston  <jjohnstn@redhat.com>
1215
1216         * libc/include/stdint.h (__EXP): Rename to __STDINT_EXP
1217         and do not #undef the macro after it is used.  Fix typos.
1218         Also change 64-bit constants to use the __have_long64 and
1219         __have_longlong64 flags to determine if long or long long
1220         constants should be used.
1221         * libc/include/inttypes.h: Include stddef.h to get wchar_t
1222         type defined.
1223
1224 2005-09-20  Shaun Jackman  <sjackman@gmail.com>
1225
1226         * libc/include/stdint.h: Fix typo in names of
1227         LEAST macros.
1228
1229 2005-09-20  Jeff Johnston  <jjohnstn@redhat.com>
1230
1231         * libc/sys/rtems/include/inttypes.h: Moved to...
1232         * libc/include/inttypes.h: ...here.
1233
1234 2005-09-19  Jeff Johnston  <jjohnstn@redhat.com>
1235
1236         * libc/sys/rtems/include/stdint.h: Moved to...
1237         * libc/include/stdint.h: ...here.
1238
1239 2005-09-08  Jeff Johnston  <jjohnstn@redhat.com>
1240
1241         * Makefile.am: Add include files under bits sub-directory.
1242         * Makefile.in: Regenerated.
1243         * libc/sys/linux/argp/argp-fs-xinl.c: Set __OPTIMIZE__ to
1244         actual value of 1 to be compatible with newer glibc headers.
1245         * libc/sys/linux/sys/cdefs.h: Fix to be compatible with newer
1246         glibc headers.
1247         * libc/sys/linux/sys/dirent.h: Ditto.
1248         * libc/sys/linux/argp/argp-xinl.c: Ditto.
1249         * libc/sys/linux/dl/dl-runtime.c: Make sure fixup and
1250         profile_fixup routines are marked used so they won't be
1251         optimized away.
1252         * libc/sys/linux/dl/dl-cache.c: Don't use weak_extern macro
1253         to mark functions as weak.
1254         * libc/sys/linux/dl/dl-open.c: Ditto.
1255         * libc/sys/linux/iconv/gconv_open.c: Fix to obey new gcc4
1256         rules about lvalues.
1257         * libc/sys/linux/iconv/gconv_simple.c: Ditto.
1258         * libc/sys/linux/linuxthreads/bits/libc-lock.h: Don't use
1259         weak_extern macro to mark functions as weak.  Instead always
1260         use #pragma weak.
1261         * iconvdata/jis0208.h: Fix to work with gcc4.
1262         * libc/sys/linux/dl/dl-load.c: Ditto.
1263         * libc/sys/linux/dl/dl-reloc.c: Ditto.
1264         * libc/sys/linux/dl/do-rel.h: Ditto.
1265         * libc/sys/linux/dl/dynamic-link.h: Ditto.
1266         * libc/sys/linux/include/ltdl.h: Ditto.
1267         * libc/sys/linux/machine/i386/dl-machine.h: Ditto.
1268         * libc/sys/linux/machine/i386/weakalias.h: Ditto.
1269         * libc/sys/linux/net/ns_ntoa.c: Ditto.
1270         * libc/sys/linux/bits/initspin.h: New file.
1271         * libc/sys/linux/bits/libc-lock.h: Ditto.
1272         * libc/sys/linux/bits/pthreadtypes.h: Ditto.
1273         * libc/sys/linux/bits/typesizes.h: Ditto.
1274
1275 2005-09-08  Eric Blake  <ebb9@byu.net>
1276
1277         * libc/argz/argz_insert.c (argz_insert): Don't die with EINVAL when
1278         before is NULL.
1279
1280 2005-09-08  Brian Dessent  <brian@dessent.net>
1281
1282         * sf_lrint.c (lrintf): Mask 'i0' correctly when extracting
1283         mantissa.
1284         * s_lrint.c: Ditto.
1285
1286 2005-09-02  Jeff Johnston  <jjohnstn@redhat.com>
1287
1288         * libc/include/stdio.h: Add prototype for viprintf.
1289
1290 2005-09-01  Jeff Johnston  <jjohnstn@redhat.com>
1291
1292         * libm/mathfp/s_pow.c: (pow): Change code so 0 raised to
1293         any positive power results in 0.
1294         * libm/mathfp/sf_pow.c (powf): Ditto.
1295
1296 2005-08-31  Paul Brook  <paul@codesourcery.com>
1297
1298         * configure.host: Set have_crt0 to no for Arm targts when not
1299         providing syscalls.  Set sys_dir=arm unconditionally.
1300         Default have_crt0 based on sys_dir.
1301         * configure.in: Use have_crt0.
1302         * libc/configure.in: Ditto.
1303         * libc/sys/configure.in: Ditto.
1304         * configure: Regenerate.
1305         * libc/configure: Regenerate.
1306         * libc/sys/configure: Regenerate.
1307         * libc/sys/arm/Makefile.am (lib_a_SOURCES): Add aeabi_atexit.c.
1308         Only build other files when providing syscalls.
1309         * libc/sys/arm/Makefile.in: Regenerate.
1310         * libc/sys/arm/aeabi_atexit.c: New file.
1311
1312 2005-08-26  Christopher Faylor  <cgf@timesys.com>
1313
1314         * libc/include/string.h: Revert previous change.
1315
1316 2005-08-25  Christopher Faylor  <cgf@timesys.com>
1317
1318         * libc/include/string.h: For Cygwin, Define strerror_r as per ISO C.
1319
1320 2005-08-22  Shaun Jackman  <sjackman@gmail.com>
1321
1322         * libc/include/_syslist.h: If HAVE_OPENDIR is not defined,
1323         define _opendir as opendir, _readdir as readdir, and
1324         _closedir as closedir so that the implementations in
1325         libc/posix will be used.
1326
1327 2005-08-10  DJ Delorie  <dj@redhat.com>
1328
1329         * MAINTAINERS (CPU Ports): Add CPU port maintainer section.
1330
1331 2005-08-10  Stephen Huw Clarke  <stephen.clarke@st.com>
1332
1333         * libm/common/sf_fmax.c: Fix to properly handle NaNs.
1334         * libm/common/s_max.c: Ditto.
1335         * libm/common/sf_fmin.c: Ditto.
1336         * libm/common/s_min.c: Ditto.
1337
1338 2005-08-10  DJ Delorie  <dj@redhat.com>
1339
1340         * configure.host: Add m32c support.
1341         * libc/include/machine/ieeefp.h: Likewise.
1342         * libc/include/machine/setjmp.h: Likewise.
1343         * libc/include/sys/config.h: Likewise.
1344         * libc/machine/m32c: New directory, Renesas R8C/M16C/M32C support.
1345         * libc/machine/m32c/aclocal.m4: New file.
1346         * libc/machine/m32c/configure: Ditto.
1347         * libc/machine/m32c/configure.in: Ditto.
1348         * libc/machine/m32c/Makefile.am: Ditto.
1349         * libc/machine/m32c/Makefile.in: Ditto.
1350         * libc/machine/m32c/setjmp.S: Ditto.
1351
1352 2005-08-02  Bob Wilson  <bob.wilson@acm.org>
1353
1354         * libm/math/ef_hypot.c (__ieee754_hypotf): Add missing exponent bias
1355         to the value for 2^126.
1356
1357 2005-07-26  Hans-Peter Nilsson  <hp@bitrange.com>
1358
1359         * libc/machine/cris/libcdtor.c (defaultors): Mark artificially as
1360         used.
1361
1362 2005-07-20  Bob Wilson  <bob.wilson@acm.org>
1363            Darin Petkov <darin@tensilica.com>
1364
1365        * libm/math/ef_atan2.c (pi, pi_lo): Use round-to-nearest value of pi.
1366
1367 2005-07-19  Paul Brook  <paul@codesourcery.com>
1368
1369         * libc/sys/arm/crt0.S: Ensure doubleword stack alignment.
1370
1371 2005-07-18  Joseph S. Myers  <joseph@codesourcery.com>
1372
1373         * testsuite/lib/checkoutput.exp (newlib_check_output): Use test
1374         names after PASS and FAIL which do not depend on source directory
1375         name or on whether test passed or failed.
1376         * testsuite/lib/passfail.exp (newlib_pass_fail): Likewise.
1377
1378 2005-07-08  Ola Hugosson   <Ola.Hugosson@anoto.com>
1379
1380         * libc/string/wcsspn.c (wcsspn): Add missing increment of q.
1381
1382 2005-07-07  Shaun Jackman  <sjackman@gmail.com>
1383
1384         * libc/unix/ttyname.c (ttyname): Avoid calling _closedir
1385         twice for the same directory. _closedir calls free, and freeing
1386         the same pointer twice may cause a crash.
1387
1388 2005-07-06  Aldy Hernandez  <aldyh@redhat.com>
1389
1390         * configure.host: Added entry for ms1*.
1391         * libc/include/machine/ieeefp.h: Handle ms1.
1392         * libc/include/machine/setjmp.h (_JBLEN): Define for ms1.
1393         * libc/machine/ms1/aclocal.m4: New.
1394         * libc/machine/ms1/configure: New.
1395         * libc/machine/ms1/configure.in: New.
1396         * libc/machine/ms1/Makefile.am: New.
1397         * libc/machine/ms1/Makefile.in: New.
1398         * libc/machine/ms1/setjmp.S: New.
1399
1400 2005-07-04  Mark Mitchell  <mark@codesourcery.com>
1401
1402         * Makefile.am (site.exp): Set tmpdir.
1403         * Makefile.in: Regenerated.
1404         * testsuite/lib/checkoutput.exp (newlib_check_output): Put
1405         executables in $tmpdir.
1406         * testsuite/lib/flags.exp (libgloss_link_flags): Use the original
1407         libgloss version if not running in the build directory.
1408         * testsuite/lib/newlib.exp (newlib_init): Put testglue.o in
1409         $tmpdir.
1410         * testsuite/lib/passfail.exp (newlib_pass_fail): Put executables
1411         in $tmpdir.
1412
1413 2005-06-28  Dave Korn  <dave.korn@artimi.com>
1414
1415         * libm/common/s_lrint.c (lrint):  Fix signed-vs-unsigned comparison
1416         and miscalculation caused by fp representation of zero.
1417         * libm/common/sf_lrint.c (lrintf):  Likewise.
1418
1419 2005-06-16  Christopher Faylor  <cgf@timesys.com>
1420
1421         * libc/stdio/vfprintf.c (cvt): Don't rely on pointer aliasing to
1422         determine characteristics of long double.  Use a union instead.
1423         * ldtoa.c (_ldtoa_r): Ditto.
1424         (_ldcheck): Ditto.
1425         (_strtold): Ditto.
1426         (union uconv): New union.
1427
1428 2005-06-03  Jeff Johnston  <jjohnstn@redhat.com>
1429
1430         * libc/stdlib/mallocr.c (MALLOC_COPY): Switch to use memmove
1431         instead of memcpy.
1432
1433 2005-05-12  Jeff Johnston  <jjohnstn@redhat.com>
1434
1435         * configure.host (mn10300-*): Add long long I/O support by default.
1436
1437 2005-05-12  Jeff Johnston  <jjohnstn@redhat.com>
1438
1439         * libc/sys/linux/getpwuid.c: Removed.
1440         * libc/sys/linux/getpwnam.c: Removed.
1441         * libc/sys/linux/getpwent.c: New file containing logic
1442         from files removed above.  This allows overriding of file
1443         in libc/unix.
1444         * libc/sys/linux/Makefile.am: Support changes above.
1445         * libc/sys/linux/Makefile.in: Regenerated.
1446
1447 2005-04-28  Jeff Johnston  <jjohnstn@redhat.com>
1448
1449         * libc/stdio/vfscanf.c (__svfscanf_r): Fix code thinko
1450         when checking for multiple flags.
1451
1452 2005-04-18  Hans-Peter Nilsson  <hp@axis.com>
1453
1454         * configure.host <cris-*-* | crisv32-*-*>: Set
1455         default_newlib_io_long_long="yes".
1456
1457 2005-04-08  Jeff Johnston  <jjohnstn@redhat.com>
1458
1459         * libc/include/libgen.h: New file.
1460
1461 2005-04-08  Shaun Jackman  <sjackman@gmail.com>
1462
1463         * libc/unix/Makefile.am: Add support for basename and dirname.
1464         * libc/unix/Makefile.in: Regenerated.
1465         * libc/unix/basename.c: New file.
1466         * libc/unix/dirname.c: New file.
1467
1468 2005-04-07  Shaun Jackman  <sjackman@gmail.com>
1469
1470         * libc/sys/linux/inode.c (lchown): New function.
1471
1472 2005-04-07  Shaun Jackman  <sjackman@gmail.com>
1473
1474         * libc/unix/Makefile.am (LIB_OBJS): Include all the ELIX objects if no
1475         ELIX level is defined.
1476         * libc/unix/Makefile.in: Regenerated.
1477
1478 2005-04-05  Dave Korn  <dave.korn@artimi.com>
1479
1480         * libc/stdio/vfscanf.c (__svfscanf_r): If an error occurs processing
1481         something that looks like a "NaN", put back the characters processed.
1482
1483 2005-04-01  Corinna Vinschen  <corinna@vinschen.de>
1484
1485         * libc/stdlib/strtod.c (_strtod_r): Never change s00.
1486
1487 2005-03-23  Christopher Faylor  <cgf@timesys.com>
1488
1489         * configure.host: For cygwin, redefine CC with cygwin include directory
1490         first to mimic the behavior of the top-level configury.  Move include
1491         directory out of newlib_cflags.
1492
1493 2005-03-22  Jeff Johnston  <jjohnstn@redhat.com>
1494
1495         * configure.host: For arc, set -DREENTRANT_SYSCALLS_PROVIDED flag on.
1496         * libc/sys/arc/syscalls.c: Change functions to use __errno_r rather 
1497         than errno.
1498
1499 2005-03-22  Christopher Faylor  <cgf@timesys.com>
1500
1501         * libc/include/machine/_types.h: Make trivial change to comment to
1502         avoid a spurious warning from gcc.
1503
1504 2005-03-21  Nicholas Wourms  <nwourms@netscape.net>
1505
1506         * libc/stdio/vfprintf.c: Move newlib.h before _WANT_IO_POS_ARGS test,
1507         since _WANT_IO_POS_ARGS is now defined in there.  Remove duplicate
1508         reent.h include.
1509
1510 2005-03-18  Hans-Peter Nilsson  <hp@axis.com>
1511             Corinna Vinschen  <corinna@vinschen.de>
1512
1513         * libc/include/ctype.h: Remove invalid +1 offset from
1514         ctype macro references to __ctype_ptr.
1515         (_ctype_): Move declaration outside #ifndef __cplusplus.
1516
1517 2005-03-18  Corinna Vinschen  <corinna@vinschen.de>
1518
1519         * libc/include/machine/setjmp.h (sigsetjmp): Use GCC extension to
1520         evaluate first parameter only once.
1521         (siglongjmp): Ditto.
1522
1523 2005-03-17  Jeff Johnston  <jjohnstn@redhat.com>
1524
1525         * configure.in: Add new check to see if compiler supports
1526         aliasing of arrays and define _HAVE_ARRAY_ALIASING if true.
1527         * configure: Regenerated.
1528         * Makefile.in: Ditto.
1529         * newlib.hin: Add _HAVE_ARRAY_ALIASING.
1530         * libc/ctype/ctype_.c: Check for _HAVE_ARRAY_ALIASING before
1531         aliasing the _ctype_ array to _ctype_b.
1532         * libc/include/ctype.h: Change macros to use __ctype_ptr.  Mark
1533         _ctype_ as deprecated.
1534
1535 2005-03-17  Hans-Peter Nilsson  <hp@axis.com>
1536
1537         * configure.host (newlib_cflags) <cris-*-*, crisv32-*-*>: Add
1538         -DCOMPACT_CTYPE.
1539
1540 2005-03-06  Ralf Corsepious  <ralf.corsepius@rtems.org>
1541
1542         * libc/sys/rtems/include/inttypes.h: New file.
1543         * libc/sys/rtems/include/stdint.h: Ditto.
1544
1545 2005-03-06  Ralf Corsepious  <ralf.corsepius@rtems.org>
1546
1547         * libc/string/memcmp.c: Fix to avoid pointer signedness warning.
1548
1549 2005-03-06  Ralf Corsepious  <ralf.corsepius@rtems.org>
1550
1551         * libc/include/machine/_types.h: New file.
1552         * libc/include/sys/types.h: Do not check for __rtems__
1553         when including <machine/_types.h>.  Remove some redundant
1554         declarations now that <machine/_types.h> is included.
1555         * libc/sys/rtems/machine/_types.h: Removed.  Replaced with
1556         shared header file.
1557
1558 2005-02-25  Ralf Corsepious  <ralf.corsepius@rtems.org>
1559
1560         * libm/common/fdlibm.h (FLT_UWORD_MAX, FLT_UWORD_HALF_MAX): Add
1561         L qualifier for these long constants.
1562
1563 2005-02-25  Eric Blake  <ebb9@byu.net>
1564
1565         * libc/include/time.h (__tzrule_struct): Make offset long, since
1566         a 16-bit int overflows on a 12-hour offset.
1567         * libc/sys/linux/include/time.h: Ditto.
1568         * libc/time/mktime.c (mktime): Use new type of __tzrule.offset.
1569         * libc/time/mktm_r.c: Ditto.
1570         * libc/time/gettzinfo.c: Ditto.
1571         * libc/time/strftime.c (strftime): Fix '%x' to deal with negative
1572         years.  Fix '%z' to use long, not int.
1573
1574 2005-02-24  Ralf Corsepious  <ralf.corsepius@rtems.org>
1575
1576         * libm/common/s_fpclassify.c: Use __uint32_t instead of int to
1577         manipulate float values in integer form.
1578         * libm/common/sf_round.c: Ditto.
1579
1580 2005-02-24  Ralf Corsepious  <ralf.corsepius@rtems.org>
1581
1582         * libc/include/sys/types.h [__rtems__]: Include new
1583         header file machine/_types.h.
1584         * libc/include/machine/types.h: Ditto.
1585         * libc/sys/rtems/machine/_types.h: New file.
1586
1587 2005-02-23  Corinna Vinschen  <corinna@vinschen.de>
1588
1589         * libc/include/time.h (_timezone): Change to long also for Cygwin.
1590         (timezone): Drop cast from definition.
1591
1592 2005-02-23  Jeff Johnston  <jjohnstn@redhat.com>
1593
1594         * libc/include/time.h [!CYGWIN](_timezone): Change to long.
1595         (__tzrule_type, __tzinfo_type): New types.
1596         (__gettzinfo): New function.
1597         * libc/sys/linux/include/time.h: Ditto.
1598         * libc/time/Makefile.am: Add gettzinfo.c.
1599         * libc/time/Makefile.in: Regenerated.
1600         * libc/time/local.h: Moved __tzrule_type to time.h.
1601         * libc/time/mktime.c: Call __gettzinfo to reference
1602         __tznorth, __tzyear, and __tzrule array.
1603         * libc/time/mktm_r.c: Ditto.
1604         * libc/time/strftime.c: Ditto.
1605         * libc/time/tzset_r.c: Ditto.  Also remove definition
1606         of __tzrule which is now in gettzinfo.c.  Change _timezone
1607         references to not cast to time_t.
1608         * libc/time/gettzinfo.c: New file.
1609
1610 2005-02-23  Corinna Vinschen  <corinna@vinschen.de>
1611
1612         * libc/include/sys/unistd.h: Define getpeereid for Cygwin.
1613
1614 2005-02-22  Corinna Vinschen  <corinna@vinschen.de>
1615
1616         * libc/include/sys/unistd.h: Define fdatasync also for Cygwin.
1617
1618 2005-02-16  Eric Blake  <ebb9@byu.net>
1619
1620         * libc/time/time.tex: Improve the documentation.
1621         * libc/time/strftime.c: Improve the documentation.
1622         (iso_year_adjust): New helper function.
1623         (strftime): Simplify '%E' and '%O'. Change '%c' to use
1624         recursion. Fix '%C', '%y', and '%Y' to deal with years with more
1625         than 4 characters.  Combine '%d' and '%e'. Implement '%D', '%F',
1626         '%g', '%G', '%n', '%R', '%t', '%T', '%u', '%V', '%X', and '%z'.
1627         Avoid core dumps on valid inputs (maxsize == 0, or
1628         tim_p->tm_isdst > 1).
1629
1630 2005-02-08  Corinna Vinschen  <corinna@vinschen.de>
1631
1632         * libc/include/pwd.h (struct passwd): Change pw_uid and pw_gid
1633         members to uid_t and gid_t according to SUSv3.
1634         * libc/include/sys/time.h (utimes):  Change second parameter
1635         to const according to SUSv3.
1636
1637 2005-02-07  Antony King  <antony.king@st.com>
1638
1639         * libc/stdio/clearerr.c (clearerr): Ensure CHECK_INIT() is
1640         called before _flockfile to prevent lock object use before
1641         initialisation. _REENT_SMALL_CHECK_INIT() and CHECK_INIT()
1642         take a struct _reent * instead of a FILE *.
1643         * libc/stdio/fclose.c (_fclose_r): Ditto.
1644         * libc/stdio/feof.c (feof): Ditto.
1645         * libc/stdio/ferror.c (ferror): Ditto.
1646         * libc/stdio/fflush.c (fflush): Ditto.
1647         * libc/stdio/fgetc.c (fgetc): Ditto.
1648         * libc/stdio/fgets.c (fgets): Ditto.
1649         * libc/stdio/fileno.c (fileno): Ditto.
1650         * libc/stdio/fputc.c (fputc): Ditto.
1651         * libc/stdio/fputs.c (fputs): Ditto.
1652         * libc/stdio/fread.c (fread): Ditto.
1653         * libc/stdio/freopen.c (_freopen_r): Ditto.
1654         * libc/stdio/fseek.c (_fseek_r): Ditto.
1655         * libc/stdio/ftell.c (_ftell_r): Ditto.
1656         * libc/stdio/fwrite.c (fwrite): Ditto.
1657         * libc/stdio/getc.c (getc): Ditto.
1658         * libc/stdio/getdelim.c (__getdelim): Ditto.
1659         * libc/stdio/putc.c (putc): Ditto.
1660         * libc/stdio/setvbuf.c (setvbuf): Ditto.
1661         * libc/stdio/ungetc.c (_ungetc_r): Ditto.
1662         * libc/stdio/vfprintf.c (_VFPRINTF_R): Ditto.
1663         * libc/stdio64/freopen64.c (_freopen64_r): Ditto.
1664         * libc/stdio64/fseeko64.c (_fseeko64_r): Ditto.
1665         * libc/stdio64/ftello64.c (_ftello64_r): Ditto.
1666         * libc/stdio/local.h (CHECK_INIT): Argument is now a struct
1667         _reent * instead of a FILE * and so replace incorrect use of
1668         _REENT with argument.
1669         * libc/sys/arm/syscalls.c (CHECK_INIT): Ditto.
1670         * libc/stdio/getchar.c (getchar): _REENT_SMALL_CHECK_INIT() and
1671         CHECK_INIT() take a struct _reent * instead of a FILE *.
1672         * libc/stdio/iprintf.c (iprintf, _iprintf_r): Ditto.
1673         * libc/stdio/iscanf.c (iscanf, _iscanf_r): Ditto.
1674         * libc/stdio/perror.c (perror): Ditto.
1675         * libc/stdio/printf.c (printf, _printf_r): Ditto.
1676         * libc/stdio/putchar.c (putchar): Ditto.
1677         * libc/stdio/puts.c (puts): Ditto.
1678         * libc/stdio/refill.c (__srefill): Ditto.
1679         * libc/stdio/scanf.c (scanf, _scanf_r): Ditto.
1680         * libc/stdio/vfscanf.c (VFSCANF, _VFSCANF_R): Ditto.
1681         * libc/stdio/viprintf.c (viprintf, _viprintf_r): Ditto.
1682         * libc/stdio/viscanf.c (viscanf, _viscanf_r): Ditto.
1683         * libc/stdio/vprintf.c (vprintf, _vprintf_r): Ditto.
1684         * libc/stdio/vscanf.c (vscanf, _vscanf_r): Ditto.
1685         * libc/stdio/wbuf.c (__swbuf): Ditto.
1686         * libc/stdio/wsetup.c (__swsetup): Ditto.
1687         * libc/stdlib/mallocr.c (malloc_stats): Ditto.
1688         * libc/stdlib/mstats.c (_mstats_r): Ditto.
1689         * libc/include/sys/reent.h (_REENT_SMALL_CHECK_INIT): Ditto.
1690         * libc/machine/powerpc/vfscanf.c (vfscanf): Ditto.
1691         * libc/stdio/fgetpos.c (_fgetpos_r): Removed unnecessary calls
1692         to _flockfile and _funlockfile; rely on locking in _ftell_r.
1693         * libc/stdio64/fgetpos64.c (_fgetpos64_r): Ditto (_ftello64_r).
1694         * libc/machine/powerpc/vfprintf.c (__sbprintf): Removed unnecessary
1695         initialision of _data field in FILE structure.
1696         * libc/machine/powerpc/vfprintf.c (VFPRINTF): Added CHECK_INIT() call.
1697
1698 2005-02-07  Jeff Johnston  <jjohnstn@redhat.com>
1699
1700         * libc/stdio/findfp.c (__sinit): Protect with new lock.
1701         (__sinit_lock): New lock.
1702         (__sinit_lock_acquire, __sinit_lock_release): New functions.
1703         * libc/stdio/local.h: Add reference to new __sinit locking
1704         functions.
1705
1706 2005-02-07  Jeff Johnston  <jjohnstn@redhat.com>
1707
1708         * libc/include/math.h (isfinite, isnormal, isunordered): Change
1709         input variable names to avoid mixups with nesting macros.
1710
1711 2005-01-27  Hans-Peter Nilsson  <hp@axis.com>
1712
1713         * configure.host: Add support for cris-*-* and crisv32-*-*.
1714         * libc/include/machine/ieeefp.h: Ditto.
1715         * libc/include/machine/setjmp.h: Ditto.
1716         * libc/machine/cris/configure.in, libc/machine/cris/Makefile.am,
1717         libc/machine/cris/libcdtor.c, libc/machine/cris/setjmp.c,
1718         libc/machine/cris/memmove.c, libc/machine/cris/memcpy.c,
1719         libc/machine/cris/memset.c, libc/machine/cris/include/pthread.h,
1720         libc/machine/cris/sys/signal.h, libc/machine/cris/sys/fcntl.h,
1721         libc/machine/cris/sys/errno.h, libc/machine/cris/aclocal.m4,
1722         libc/machine/cris/configure, libc/machine/cris/Makefile.in: New
1723         files.
1724
1725 2005-01-27  Hans-Peter Nilsson  <hp@axis.com>
1726
1727         * testsuite/newlib.string/memmove1.c: New test.
1728
1729 2005-01-27  Hans-Peter Nilsson  <hp@axis.com>
1730
1731         * testsuite/include/check.h: Include stdlib.h.
1732
1733 2005-01-27  Hans-Peter Nilsson  <hp@axis.com>
1734
1735         * Makefile.am (stmp-targ-include): Support include header files
1736         from machine directories.
1737         (install-data-local): Ditto.
1738         * Makefile.in: Regenerate.
1739
1740 2005-01-24  Jeff Johnston  <jjohnstn@redhat.com>
1741
1742         * libc/include/string.h: Remove Linux-specific declaration of
1743         strsignal and add #include <sys/string.h>.
1744         * libc/include/sys/string.h: New file.
1745         * libc/include/sys/linux/sys/string.h: New file with strsignal
1746         declaration deleted above.
1747
1748 2005-01-20  Jeff Johnston  <jjohnstn@redhat.com>
1749
1750         * libc/time/strftime.c (strftime): Change %r and %x to be compliant
1751         to POSIX standard for "C" locale.  Allow %E and %O modifiers
1752         to be ignored as long as they precede valid specifiers according
1753         to POSIX.
1754
1755 2005-01-19  Shaun Jackman  <sjackman@gmail.com>
1756
1757         * libc/stdlib/setenv_r.c (_setenv_r): Call tzset() if the TZ
1758         environment variable is set.
1759
1760 2005-01-19  Shaun Jackman  <sjackman@gmail.com>
1761
1762         * tzset_r.c (_tzname): Add a comma.
1763
1764 2005-01-18  Aldy Hernandez  <aldyh@redhat.com>
1765
1766         * libc/machine/powerpc/vfprintf.c: Use _REENT when calling
1767         _VFPRINTF_R.
1768
1769 2005-01-07  Paul Brook  <paul@codesourcery.com>
1770                                                                                 
1771         * configure.in: Add test for .init_array.
1772         * configure: Regenerate.
1773         * newlib.hin: Add HAVE_INITFINI_ARRAY.
1774         * libc/misc/Makefile.am: Add init.c
1775         * libc/misc/Makefile.in: Regenerate.
1776         * libc/misc/init.c: New file.
1777         * libc/sys/arm/crt0.S: Call __libc_{init,fini}_array instead of
1778         _init/_fini if they exist.
1779                                                                                 
1780 2005-01-06  Jeff Johnston  <jjohnstn@redhat.com>
1781
1782         * libc/stdlib/strtod.c (_strtod_r): Add NaN support.
1783         * (strtof): Ditto.
1784         * libc/stdio/vfscanf.c (__svfscanf_r): Ditto.
1785         * Makefile.am (MATHOBJS_IN_LIBC): Add s_nan and sf_nan
1786         functions for use by strtod and strtof.
1787         * Makefile.in: Regenerated.
1788                                                                                 
1789 2005-01-06  Hans-Peter Nilsson  <hp@axis.com>
1790                                                                                 
1791         * libc/stdio/ftell.c (ftell_r): Add parenthesis for __SWR
1792         bit-test in combination with NULL test.
1793                                                                                 
1794 2005-01-06  Hans-Peter Nilsson  <hp@axis.com>
1795                                                                                 
1796         * README: Fix typo of LGPL.  Change "license" to "copyright".
1797                                                                                 
1798 2004-12-17  Jeff Johnston  <jjohnstn@redhat.com>
1799
1800         * NEWS: Update with 1.13.0 info.
1801         * README: Ditto.
1802         * acinclude.m4: Change version number to 1.13.0.
1803         * aclocal.m4: Regenerated.
1804         * configure: Ditto.
1805         * doc/aclocal.m4: Ditto.
1806         * doc/configure: Ditto.
1807         * libc/*/aclocal.m4: Ditto.
1808         * libc/*/configure: Ditto.
1809         * libc/libc.texinfo: Ditto.
1810         * libm/*/aclocal.m4: Ditto.
1811         * libm/*/configure: Ditto.
1812         * libm/libm.texinfo: Ditto.
1813         * libc/sys/linux/shared.ld: Add VERS_1.13.
1814
1815 2004-12-17  Christian Groessler  <chris@groessler.org>
1816
1817         * libc/machine/z8k/memcmp.S: New file.
1818         * libc/machine/z8k/memcpy.S: Ditto.
1819         * libc/machine/z8k/memmove.S: Ditto.
1820         * libc/machine/z8k/memset.S: Ditto.
1821         * libc/machine/z8k/Makefile.am: Add new files.
1822         * libc/machine/z8k/Makefile.in: Regenerated.
1823         * libc/machine/z8k/setjmp.S: Fix indirect register usage in Z8002
1824         part.  Implement Z8002 stdcall version.
1825
1826 2004-12-13  Jeff Johnston  <jjohnstn@redhat.com>
1827
1828         * libc/stdio/fread.c (fread): For unbuffered I/O, attempt
1829         a low-level read if we don't get the full amount of bytes so
1830         EOF or error flags will be set.
1831
1832 2004-12-09  Alex Mogilnikov  <alx@intellectronika.ru>
1833
1834         * libc/time/tzset_r (_tzset_r): Properly skip over
1835         '/' when it is detected.
1836
1837 2004-12-08  Alex Mogilnikov  <alx@intellectronika.ru>
1838
1839         * libc/time/tzset_r (_tzset_r): Fix loop.
1840
1841 2004-12-08  Alex Mogilnikov  <alx@intellectronika.ru>
1842
1843         * libc/time/mktm_r (_mktm_r): Fix overflow calculation for
1844         m_day.
1845         (__tzcalc_limits): Fix reference to month array to be zero-based.
1846
1847 2004-12-07  Jeff Johnston  <jjohnstn@redhat.com>
1848
1849         * libc/sys/linux/sys/unistd.h: Add prototypes for ftruncate, truncate,
1850         and usleep.
1851
1852 2004-12-03  Jeff Johnston  <jjohnstn@redhat.com>
1853
1854         * Makefile.am (libc_la_LDFLAGS): Add -lgcc to handle any
1855         libgcc dependencies.
1856         (libm_la_LDFLAGS): Ditto.
1857         * Makefile.in: Regenerated.
1858
1859 2004-12-03  Shaun Jackman  <sjackman@gmail.com>
1860
1861         * libc/sys/linux/linuxthreads/Makefile.am (install-data-local): Fix
1862         our link to use readlink so as to preserve any relative link created
1863         by install-toollibLIBRARIES.
1864         * libc/sys/linux/linuxthreads/Makefile.in: Regenerated.
1865
1866 2004-12-02  Shaun Jackman  <sjackman@gmail.com>
1867
1868         * libc/sys/linux/stdlib/glob.c: Include <sys/types.h> which defines
1869         time_t before including sys/stat.h, which uses it.
1870         * libc/sys/linux/sys/stat.h: Include <sys/types.h> and
1871         <linux/time.h> just prior to definition of __KERNEL__ so as to
1872         allow building on Debian Linux where otherwise, mktime would
1873         be redefined.
1874
1875 2004-11-26  Paul Brook  <paul@codesourcery.com>
1876
1877         * libc/sys/arm/crt0.S (_start): Add .cantunwind annotation.
1878                                                                                 
1879 2004-11-24  Jeff Johnston  <jjohnstn@redhat.com>
1880
1881         * libc/include/stdlib.h (putenv, _putenv_r): Change to remove
1882         const for value string parameter to match Single Unix and glibc.
1883         * libc/stdlib/putenv.c: Ditto.
1884         * libc/stdlib/putenv_r.c: Ditto.
1885
1886 2004-11-24  Jeff Johnston  <jjohnstn@redhat.com>
1887
1888         * libc/stdio/Makefile.am: Fix missing vfscanf.
1889         * libc/stdio/Makefile.in: Regenerated.
1890                                                                                 
1891 2004-11-23  Jeff Johnston  <jjohnstn@redhat.com>
1892                                                                                 
1893         * libc/include/stdio.h: Add new iprintf and iscanf variants.  Also
1894         do some reordering.
1895         * libc/machine/powerpc/vfscanf.c: Remove __sccl function.
1896         * libc/stdio/Makefile.am: Add support for new iprintf and iscanf
1897         family functions.
1898         * libc/stdio/Makefile.in: Regenerated.
1899         * libc/stdio/fiprintf.c: Remove doc to siprintf.c.
1900         * libc/stdio/iprintf.c: Ditto.
1901         * libc/stdio/local.h (__svfiscanf_r): New prototype.
1902         * libc/stdio/siprintf.c: Add docs for various iprintf family functions.
1903         * libc/stdio/sniprintf.c: Move docs to siprintf.c.
1904         * libc/stdio/stdio.tex: Add new functions.
1905         * libc/stdio/vfscanf.c: Split out __sccl function to separate
1906         file and add special name defines so this file can be used
1907         to build vfiscanf.o.
1908         * libc/stdio/asiprintf.c: New file.
1909         * libc/stdio/fiscanf.c: Ditto.
1910         * libc/stdio/iscanf.c: Ditto.
1911         * libc/stdio/sccl.c: Ditto.
1912         * libc/stdio/siscanf.c: Ditto.
1913         * libc/stdio/vasiprintf.c: Ditto.
1914         * libc/stdio/viprintf.c: Ditto.
1915         * libc/stdio/viscanf.c: Ditto.
1916         * libc/stdio/vsiprintf.c: Ditto.
1917         * libc/stdio/vsiscanf.c: Ditto.
1918         * libc/stdio/vsniprintf.c: Ditto.
1919
1920 2004-11-19  Shaun Jackman  <sjackman@gmail.com>
1921                                                                                 
1922         * libc/include/stdio.h: Add sniprintf.
1923         * libc/stdio/Makefile.am: Add sniprintf.c.
1924         * libc/stdio/Makefile.in: Regenerated.
1925         * libc/stdio/sniprintf.c: New file.
1926         * libc/stdio/stdio.tex: Add sniprintf.
1927                                                                                 
1928 2004-11-17  Christopher Faylor  <cgf@timesys.com>
1929
1930         * libc/stdio/refill.c (__srefill): Try again after EOF on Cygwin.  Clear
1931         EOF flag if successful.
1932
1933 2004-10-28  Christopher Faylor  <cgf@timesys.com>
1934
1935         * libc/include/sys/signal.h: Move <signal.h> include to bottom of file
1936         so that all relevant definitions have been performed for use in the
1937         include.
1938
1939 2004-10-26  Jason Tishler  <jason@tishler.net>
1940
1941         * libc/stdio/fread.c (fread): Fix return value for unbuffered
1942         fread.
1943
1944 2004-10-25  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
1945
1946         * libc/include/machine/setjmp.h: Add AVR support.
1947         * libc/sys/rtems/crt0.S [__AVR__]: Add __stack.
1948
1949 2004-10-08  Jeff Johnston  <jjohnstn@redhat.com>
1950                                                                                 
1951         * libc/include/sys/signal.h: If <signal.h> didn't include
1952         this header file, include <signal.h> to account for
1953         applications that take advantage that the two header
1954         files are the same in glibc.
1955                                                                                 
1956 2004-10-05  Tomer Levi  <Tomer.Levi@nsc.com>
1957
1958         * configure.host: Add support for crx.
1959         * libc/include/machine/ieeefp.h: Ditto.
1960         * libc/include/machine/setjmp.h: Ditto.
1961         * libc/machine/crx/Makefile.am: New file.
1962         * libc/machine/crx/configure.in: Ditto.
1963         * libc/machine/crx/setjmp.S: Ditto.
1964         * libc/machine/crx/getenv.c: Ditto.
1965         * libc/machine/crx/aclocal.m4: Generate.
1966         * libc/machine/crx/configure: Ditto.
1967         * libc/machine/crx/Makefile.in: Ditto.
1968         * libc/machine/crx/sys/asm.h: New file.
1969         * libc/machine/crx/sys/libh.h: Ditto.
1970         * libc/machine/crx/sys/syscall.h: Ditto.
1971
1972 2004-10-05  Jeff Johnston  <jjohnstn@redhat.com>
1973
1974         * Makefile.am (stmp-targ-include): Support sys header files
1975         from machine directories.
1976         * Makefile.in: Regenerated.
1977
1978 2004-10-04  Jeff Johnston  <jjohnstn@redhat.com>
1979
1980         * libc/stdio/vfscanf.c (__svfscanf_r): For int conversions,
1981         count skipped zero characters as part of the nread count for %n.
1982         * libc/machine/powerpc/vfscanf.c: Ditto.
1983
1984 2004-09-24  Jeff Johnston  <jjohnstn@redhat.com>
1985
1986         * libc/stdio/local.h: Include <stdlib.h>.
1987
1988 2004-09-24  Corinna Vinschen  <corinna@vinschen.de>
1989
1990         * libc/stdio/fread.c (fread): Include <malloc.h>.
1991
1992 2004-09-22  Jeff Johnston  <jjohnstn@redhat.com>
1993
1994         * libc/stdio/fread.c (fread):  For non-space-optimized case,
1995         add special code for unbuffered files to use user buffer and
1996         only require one low-level system read.
1997
1998 2004-09-21  Ian Lance Taylor  <ian@wasabisystems.com>
1999
2000         * libc/machine/xscale/setjmp.S: New file, copied from
2001         libc/machine/arm/setjmp.S.
2002         * libc/machine/xscale/Makefile.am (lib_a_SOURCES): Add setjmp.S.
2003         * libc/machine/xscale/Makefile.in: Regenerate.
2004
2005 2004-09-16  Antony King  <antony.king@st.com>
2006
2007         * libc/include/sys/lock.h: Replaced empty {} with (0) to conform
2008         with locking API.
2009         * libc/include/sys/stdio.h: (_flockfile)[!_SINGLE_THREAD]: Add 
2010         check for__SSTR in _flags and if set, skip lock request.
2011         (_funlockfile)[!SINGLE_THREAD]: Ditto.
2012         * libc/stdio/local.h (CHECK_INIT): Added check that _REENT is
2013         not NULL.
2014         * libc/stdio/siprintf.c (siprintf, _siprintf_r): Added missing
2015         initialisation of _file to -1 in local FILE.
2016         * libc/stdio/snprintf.c (snprintf, _snprintf_r): Ditto.
2017         * libc/stdio/sscanf.c (sscanf, _sscanf_r): Ditto.
2018         * libc/stdio/vsnprintf.c (vsnprintf, _vsnprintf_r): Ditto.
2019         * libc/stdio/vsscanf.c (_vsscanf_r): Ditto.
2020         * libc/stdio/sscanf.c (sscanf, _sscanf_r): Added __SSTR flag to
2021         _flags in local FILE to prevent locking.
2022         * libc/stdio/vsscanf.c (_vsscanf_r): Ditto.
2023
2024 2004-09-16  Antony King  <antony.king@st.com>
2025
2026         * libc/stdio/fwalk.c (_fwalk): Remove check for _GLOBAL_REENT
2027         and only walk the reentrancy parameter.
2028         (_fwalk_reent): Ditto.
2029         * libc/stdlib/exit.c: Remove out of date _REENT_ONLY check.
2030
2031 2004-09-16  Antony King  <antony.king@st.com>
2032
2033         * libc/stdio64/freopen64.c: Remove casting of fp lock to
2034         _LOCK_RECURSIVE_T.
2035
2036 2004-09-16  Antony King  <antony.king@st.com>
2037
2038         * libc/time/tzlock.c: Add default stubs that use generic
2039         locking code.
2040
2041 2004-09-16  Antony King  <antony.king@st.com>
2042
2043         * libc/ctype/ctype.tex: Added missing documentation.
2044         * libc/stdio/stdio.tex Ditto.
2045         * libc/stdlib/stdlib.tex Ditto.
2046         * libc/string/strings.tex Ditto.
2047         * libc/time/time.tex: Ditto.
2048         * libc/stdio/setbuffer.c: Removed setlinebuf documentation.
2049
2050 2004-09-15  Corinna Vinschen  <vinschen@redhat.com>
2051
2052         * libc/reent/impure.c (reent_data): Define as alias to impure_data
2053         when building for Cygwin.
2054         * libc/include/sys/reent.h (_GLOBAL_REENT): Revert definition to
2055         _global_impure_ptr.
2056
2057 2004-09-15  Jeff Johnston  <jjohnstn@redhat.com>
2058
2059         * configure.host: Reverting 2004-09-14 change as fix has occurred on
2060         Cygwin side.
2061         * configure.in: Ditto.
2062         * libc/configure.in: Ditto.
2063         * libc/sys/configure.in: Ditto.
2064         * configure: Ditto.
2065         * libc/configure: Ditto.
2066         * libc/sys/configure: Ditto.
2067         * libc/include/sys/reent.h: Ditto.
2068         * libc/stdlib/__atexit.c: Ditto.
2069         * libc/stdlib/__call_atexit.c: Ditto.
2070         * libc/stdlib/cxa_atexit.c: Ditto.
2071         * libc/stdlib/cxa_finalize.c: Ditto.
2072         * libc/sys/cygwin/Makefile.am: Removed again.
2073         * libc/sys/cygwin/Makefile.in: Ditto.
2074         * libc/sys/cygwin/aclocal.m4: Ditto.
2075         * libc/sys/cygwin/configure: Ditto.
2076         * libc/sys/cygwin/configure.in: Ditto.
2077         * libc/sys/cygwin/dummy.c: Ditto.
2078         * libc/sys/cygwin/sys/reent.h: Ditto.
2079
2080 2004-09-14  Jeff Johnston  <jjohnstn@redhat.com>
2081
2082         * configure.host: Add Cygwin sys directory.
2083         * configure.in: Do not set CRT0 for cygwin.
2084         * libc/configure.in: Ditto.
2085         * libc/sys/configure.in: Ditto.
2086         * configure: Regenerated.
2087         * libc/configure: Ditto.
2088         * libc/sys/configure: Ditto.
2089         * libc/include/sys/reent.h: Add __REENT_HAS_CXA_SUPPORT flag.
2090         * libc/stdlib/__atexit.c: Keep cxa support protected by new
2091         __REENT_HAS_CXA_SUPPORT flag.
2092         * libc/stdlib/__call_atexit.c: Ditto.
2093         * libc/stdlib/cxa_atexit.c: Ditto.
2094         * libc/stdlib/cxa_finalize.c: Ditto.
2095         * libc/sys/cygwin/Makefile.am: New file.
2096         * libc/sys/cygwin/Makefile.in: Ditto.
2097         * libc/sys/cygwin/aclocal.m4: Ditto.
2098         * libc/sys/cygwin/configure: Ditto.
2099         * libc/sys/cygwin/configure.in: Ditto.
2100         * libc/sys/cygwin/dummy.c: Ditto.
2101         * libc/sys/cygwin/sys/reent.h: Ditto.  This file is stabilized
2102         version of reent.h.
2103
2104 2004-09-13 Artem B. Bityuckiy  <dedekind@oktetlabs.ru>
2105
2106         * libc/iconv/iconv.tex: Updated with new content.
2107         * libc/iconv/lib/iconvnls.c: Reference ICONV_DEFAULT_NLSPATH
2108         instead of NLS_DEFAULT_NLSPATH.
2109         * libc/iconv/lib/iconvnls.h: Fix typo.
2110         * libc/include/sys/iconvnls.h: New file.
2111
2112 2004-09-09  Paul Brook  <paul@codesourcery.com>
2113
2114         * libc/include/sys/reent.h (struct _on_exit_args): Add _dso_handle
2115         and _is_cxa.
2116         (struct _atexit): Add _next when _REENT_SMALL.
2117         (struct _reent): Add _atexit0 when _REENT_SMALL.
2118         (_REENT_INIT_PTR): Adjust.
2119         * libc/stdlib/Makefile.am (GENERAL_SOURCES): Add __atexit.c and
2120         __call_exit.c.
2121         (EXTENDED_SOURCES): Add cxa_atexit.c and cxa_finalize.c.
2122         * libc/stdlib/Makefile.in: Regenerate.
2123         * libc/stdlib/__atexit.c: New file.
2124         * libc/stdlib/__call_atexit.c: New file.
2125         * libc/stdlib/atexit.h: Remove old definitions.  Add new.
2126         * libc/stdlib/atexit.c (atexit): Use __register_exitproc.
2127         * libc/stdlib/cxa_atexit.c: New file.
2128         * libc/stdlib/cxa_finalize.c: New file.
2129         * libc/stdlib/exit.c (exit): Use __call_exitprocs.
2130         * libc/stdlib/on_exit.c (on_exit): Use __register_exitproc.
2131         2004-09-09  Jeff Johnston  <jjohnstn@redhat.com>
2132         * libc/reent/reent.c [_REENT_SMALL]: Fix reference to
2133         _on_exit_args_ptr.
2134
2135 2004-08-23  Jeff Johnston  <jjohnstn@redhat.com>
2136
2137         * libc/include/sys/unistd.h (getpass): Change prototype to use
2138         const instead of __const.
2139
2140 2004-08-16  Nathan Sidwell  <nathan@codesourcery.com>
2141
2142         * libc/stdio/vfscanf.c (_NO_LONGLONG): Move out of FLOATING_POINT
2143         #if.
2144
2145 2004-08-12  Jeff Johnston  <jjohnstn@redhat.com>
2146
2147         * libc/sys/linux/sys/types.h (u64): New typedef to allow building
2148         on linux systems with glibc 2.3.3 installed.
2149         * libc/sys/linux/dl/dl-runtime.c: Fix prototypes for fixup and
2150         profile_fixup so newlib can build on fc3 system.
2151  
2152 2004-07-30  Alexandre Oliva  <aoliva@redhat.com>
2153
2154         Introduce SH2a support.
2155         2004-03-16  Corinna Vinschen  <vinschen@redhat.com>
2156         * libc/include/machine/ieeefp.h: Define _DOUBLE_IS_32BITS for
2157         __SH2A_SINGLE_ONLY__, too.
2158         * libc/machine/sh/asm.h: Define DELAYED_BRANCHES for __SH2A__, too.
2159         2004-02-24  Corinna Vinschen  <vinschen@redhat.com>
2160         * libc/sys/sh/crt0.S (start_l): Support sh2a-nofpu.  Fix comments.
2161         2004-02-10  DJ Delorie  <dj@redhat.com>
2162         * libc/sys/sh/crt0.S (start_l): Support sh2a.
2163
2164 2004-07-29  Jeff Johnston  <jjohnstn@redhat.com>
2165
2166         * libc/time/strptime.c: Correct full-name of "March" typo.
2167
2168 2004-07-16  Anil Paranjpe  <anilp1@kpitcummins.com>
2169
2170         * configure.host (h8300*-*-*): Default long long printing support. 
2171
2172 2004-07-16  Jeff Johnston  <jjohnstn@redhat.com>
2173
2174         * libc/stdio/fvwrite.c (_sfvwrite):  For asprintf family
2175         calls, if realloc fails, free up buffer as it is no longer
2176         used.
2177
2178 2004-07-07  Artem B. Bityuckiy  <dedekind@oktetlabs.ru>
2179
2180         * libc/iconv/iconv.tex: Updated to represent recent changes.
2181         * libc/iconv/lib/iconv.c: Documentation updated.
2182
2183 2004-07-07  Nick Clifton  <nickc@redhat.com>
2184
2185         * configure.host (newlib_cflags): Define PREFER_SIZE_OVER_SPEED
2186         for xStormy16.
2187
2188 2004-07-06  Chris Demetriou  <cgd@broadcom.com>
2189
2190         * configure.host (mips*-*-elf*): Default long long printing
2191         support.
2192
2193 2004-07-05  Jeff Johnston  <jjohnstn@redhat.com>
2194
2195         * libc/Makefile.am (libc.dvi): Add target and specify
2196         same dependencies as libc.info.
2197         * libc/Makefile.in: Regenerated.
2198         * libm/Makefile.am (libm.dvi): Add target and specify
2199         same dependencies as libm.info.
2200         * libm/Makefile.in: Regenerated.
2201
2202 2004-06-29  Artem B. Bityuckiy  <dedekind@oktetlabs.ru>
2203
2204         * acinclude.m4: Move --enable-newlib-iconv option back here.
2205         * configure.in: Remove --enable-newlib-iconv option.  Don't
2206         tie iconv support to --enable-newlib-mb.
2207         * aclocal.m4: Regenerated.
2208         * configure: Ditto.
2209         * doc/aclocal.m4, doc/configure: Ditto.
2210         * iconvdata/aclocal.m4, iconvdata/configure: Ditto.
2211         * libm/*/aclocal.m4: Ditto.
2212         * libm/*/configure: Ditto.
2213         * libc/*/aclocal.m4: Ditto.
2214         * libc/*/configure: Ditto.
2215
2216 2004-06-25  Artem B. Bityuckiy  <dedekind@oktetlabs.ru>
2217
2218         * acinclude.m4: Move iconv options into configure.in.
2219         * aclocal.m4: Regenerated.
2220         * configure: Ditto.
2221         * configure.in: Add iconv options.
2222         * newlib.hin: Add new iconv encodings and remove deleted ones.
2223         * doc/aclocal.m4: Regenerated.
2224         * doc/configure: Ditto.
2225         * iconvdata/aclocal.m4: Ditto.
2226         * iconvdata/configure: Ditto.
2227         * libc/iconv: Design change.  New size-optimized ccs format.
2228         * libc/iconv/AUTHORS: Removed.
2229         * libc/iconv/COPYING: Ditto.
2230         * libc/iconv/README.ORIGINAL: Ditto.
2231         * libc/iconv/README.TODO: Ditto.
2232         * libc/iconv/charset.aliases: Ditto.
2233         * libc/iconv/encoding.aliases: New file.
2234         * libc/iconv/Makefile.am: Updated.
2235         * libc/iconv/Makefile.in: Regenerated.
2236         * libc/iconv/iconv.tex: Updated.
2237         * libc/iconv/ccs/Makefile.am: Ditto.
2238         * libc/iconv/ccs/Makefile.in: Regenerated.
2239         * libc/iconv/ccs/big5.c: Updated.
2240         * libc/iconv/ccs/cns11643_plane1.c: Ditto.
2241         * libc/iconv/ccs/cns11643_plane14.c: Ditto.
2242         * libc/iconv/ccs/cns11643_plane2.c: Ditto.
2243         * libc/iconv/ccs/cp775.c: Ditto.
2244         * libc/iconv/ccs/cp850.c: Ditto.
2245         * libc/iconv/ccs/cp852.c: Ditto.
2246         * libc/iconv/ccs/cp855.c: Ditto.
2247         * libc/iconv/ccs/cp866.c: Ditto.
2248         * libc/iconv/ccs/iso_8859_1.c: Ditto.
2249         * libc/iconv/ccs/README.CCS.SOURCES: Removed.
2250         * libc/iconv/ccs/gb_2312_80.c: Ditto.
2251         * libc/iconv/ccs/iconv_mktbl: Ditto.
2252         * libc/iconv/ccs/jis_x0201.c: Ditto.
2253         * libc/iconv/ccs/jis_x0208_1983.c: Ditto.
2254         * libc/iconv/ccs/shift_jis.c: Ditto.
2255         * libc/iconv/ccs/us_ascii.c: Ditto.
2256         * libc/iconv/ccs/ccs.h: New file.
2257         * libc/iconv/ccs/ccsbi.c: Ditto.
2258         * libc/iconv/ccs/ccsbi.h: Ditto.
2259         * libc/iconv/ccs/ccsnames.h: Ditto.
2260         * libc/iconv/ccs/iso_8859_10.c: Ditto.
2261         * libc/iconv/ccs/iso_8859_11.c: Ditto.
2262         * libc/iconv/ccs/iso_8859_13.c: Ditto.
2263         * libc/iconv/ccs/iso_8859_14.c: Ditto.
2264         * libc/iconv/ccs/iso_8859_3.c: Ditto.
2265         * libc/iconv/ccs/iso_8859_6.c: Ditto.
2266         * libc/iconv/ccs/iso_8859_7.c: Ditto.
2267         * libc/iconv/ccs/iso_8859_8.c: Ditto.
2268         * libc/iconv/ccs/iso_8859_9.c: Ditto.
2269         * libc/iconv/ccs/iso_ir_111.c: Ditto.
2270         * libc/iconv/ccs/jis_x0201_1976.c: Ditto.
2271         * libc/iconv/ccs/jis_x0208_1990.c: Ditto.
2272         * libc/iconv/ccs/koi8_ru.c: Ditto.
2273         * libc/iconv/ccs/koi8_uni.c: Ditto.
2274         * libc/iconv/ccs/mktbl.pl: Ditto.
2275         * libc/iconv/ccs/win_1250.c: Ditto.
2276         * libc/iconv/ccs/win_1251.c: Ditto.
2277         * libc/iconv/ccs/win_1252.c: Ditto.
2278         * libc/iconv/ccs/win_1253.c: Ditto.
2279         * libc/iconv/ccs/win_1254.c: Ditto.
2280         * libc/iconv/ccs/win_1255.c: Ditto.
2281         * libc/iconv/ccs/win_1256.c: Ditto.
2282         * libc/iconv/ccs/win_1257.c: Ditto.
2283         * libc/iconv/ccs/win_1258.c: Ditto.
2284         * libc/iconv/ccs/iso_8859_15.c: Updated.
2285         * libc/iconv/ccs/iso_8859_2.c: Ditto.
2286         * libc/iconv/ccs/iso_8859_4.c: Ditto.
2287         * libc/iconv/ccs/iso_8859_5.c: Ditto.
2288         * libc/iconv/ccs/jis_x0212_1990.c: Ditto.
2289         * libc/iconv/ccs/koi8_r.c: Ditto.
2290         * libc/iconv/ccs/koi8_u.c: Ditto.
2291         * libc/iconv/ccs/ksx1001.c: Ditto.
2292         * libc/iconv/ccs/binary/gb_2312_80.cct: Removed.
2293         * libc/iconv/ccs/binary/jis_x0201.cct: Ditto.
2294         * libc/iconv/ccs/binary/shift_jis.cct: Ditto.
2295         * libc/iconv/ccs/binary/us_ascii.cct: Ditto.
2296         * libc/iconv/ccs/binary/jis_x0208_1983.cct: Ditto.
2297         * libc/iconv/ccs/binary/Makefile.am: Updated.
2298         * libc/iconv/ccs/binary/Makefile.in: Regenerated.
2299         * libc/iconv/ccs/binary/big5.cct: Updated.
2300         * libc/iconv/ccs/binary/cns11643_plane1.cct: Ditto.
2301         * libc/iconv/ccs/binary/cns11643_plane14.cct: Ditto.
2302         * libc/iconv/ccs/binary/cns11643_plane2.cct: Ditto.
2303         * libc/iconv/ccs/binary/cp775.cct: Updated.: Ditto.
2304         * libc/iconv/ccs/binary/cp850.cct: Ditto.: Ditto.
2305         * libc/iconv/ccs/binary/cp852.cct: Ditto.: Ditto.
2306         * libc/iconv/ccs/binary/cp855.cct: Ditto.: Ditto.
2307         * libc/iconv/ccs/binary/cp866.cct: Ditto.: Ditto.
2308         * libc/iconv/ccs/binary/iso_8859_1.cct: Ditto.
2309         * libc/iconv/ccs/binary/iso_8859_15.cct: Ditto.
2310         * libc/iconv/ccs/binary/iso_8859_4.cct: Ditto.
2311         * libc/iconv/ccs/binary/iso_8859_5.cct: Ditto.
2312         * libc/iconv/ccs/binary/iso_8859_2.cct: Ditto.
2313         * libc/iconv/ccs/binary/jis_x0212_1990.cct: Ditto.
2314         * libc/iconv/ccs/binary/koi8_r.cct: Ditto.
2315         * libc/iconv/ccs/binary/koi8_u.cct: Ditto.
2316         * libc/iconv/ccs/binary/ksx1001.cct: Ditto.
2317         * libc/iconv/ccs/binary/iso_8859_10.cct: New file.
2318         * libc/iconv/ccs/binary/iso_8859_11.cct: Ditto.
2319         * libc/iconv/ccs/binary/iso_8859_13.cct: Ditto.
2320         * libc/iconv/ccs/binary/iso_8859_14.cct: Ditto.
2321         * libc/iconv/ccs/binary/iso_8859_3.cct: Ditto.
2322         * libc/iconv/ccs/binary/iso_8859_6.cct: Ditto.
2323         * libc/iconv/ccs/binary/iso_8859_7.cct: Ditto.
2324         * libc/iconv/ccs/binary/iso_8859_8.cct: Ditto.
2325         * libc/iconv/ccs/binary/iso_8859_9.cct: Ditto.
2326         * libc/iconv/ccs/binary/iso_ir_111.cct: Ditto.
2327         * libc/iconv/ccs/binary/jis_x0201_1976.cct: Ditto.
2328         * libc/iconv/ccs/binary/jis_x0208_1990.cct: Ditto.
2329         * libc/iconv/ccs/binary/koi8_ru.cct: Ditto.
2330         * libc/iconv/ccs/binary/koi8_uni.cct: Ditto.
2331         * libc/iconv/ccs/binary/win_1250.cct: Ditto.
2332         * libc/iconv/ccs/binary/win_1251.cct: Ditto.
2333         * libc/iconv/ccs/binary/win_1252.cct: Ditto.
2334         * libc/iconv/ccs/binary/win_1253.cct: Ditto.
2335         * libc/iconv/ccs/binary/win_1254.cct: Ditto.
2336         * libc/iconv/ccs/binary/win_1255.cct: Ditto.
2337         * libc/iconv/ccs/binary/win_1256.cct: Ditto.
2338         * libc/iconv/ccs/binary/win_1257.cct: Ditto.
2339         * libc/iconv/ccs/binary/win_1258.cct: Ditto.
2340         * libc/iconv/ces/Makefile.am: Updated.
2341         * libc/iconv/ces/Makefile.in: Regenerated.
2342         * libc/iconv/ces/ucs-2-internal.c: Updated.
2343         * libc/iconv/ces/ucs-4-internal.c: Ditto.
2344         * libc/iconv/ces/utf-16.c: Ditto.
2345         * libc/iconv/ces/utf-8.c: Ditto.
2346         * libc/iconv/ces/cesbi.c: New file.
2347         * libc/iconv/ces/cesbi.h: Ditto.
2348         * libc/iconv/ces/cesdeps.h: Ditto.
2349         * libc/iconv/ces/euc.c: Ditto.
2350         * libc/iconv/ces/mkdeps.pl: Ditto.
2351         * libc/iconv/ces/table-pcs.c: Ditto.
2352         * libc/iconv/ces/table.c: Ditto.
2353         * libc/iconv/ces/ucs-2.c: Ditto.
2354         * libc/iconv/ces/ucs-4.c: Ditto.
2355         * libc/iconv/ces/us-ascii.c: Ditto.
2356         * libc/iconv/ces/euc-jp.c: Removed.
2357         * libc/iconv/ces/euc-kr.c: Ditto.
2358         * libc/iconv/ces/euc-tw.c: Ditto.
2359         * libc/iconv/ces/gb2312.c: Ditto.
2360         * libc/iconv/ces/iso-10646-ucs-2.: Ditto.c
2361         * libc/iconv/ces/iso-10646-ucs-4.c: Ditto.
2362         * libc/iconv/lib/Makefile.am: Updated.
2363         * libc/iconv/lib/Makefile.in: Regenerated.
2364         * libc/iconv/lib/endian.h: Updated.
2365         * libc/iconv/lib/iconv.c: Ditto.
2366         * libc/iconv/lib/local.h: Ditto.
2367         * libc/iconv/lib/aliases.c: Removed.
2368         * libc/iconv/lib/bialiasesi.c: Ditto.
2369         * libc/iconv/lib/biccs.c: Ditto.
2370         * libc/iconv/lib/bices.c: Ditto.
2371         * libc/iconv/lib/ccs.c: Ditto.
2372         * libc/iconv/lib/ces.c: Ditto.
2373         * libc/iconv/lib/ces_euc.c: Ditto.
2374         * libc/iconv/lib/ces_iso2022.c: Ditto.
2375         * libc/iconv/lib/ces_table.c: Ditto.
2376         * libc/iconv/lib/converter.c: Ditto.
2377         * libc/iconv/lib/deps.h: Ditto.
2378         * libc/iconv/lib/loaddata.c: Ditto.
2379         * libc/iconv/lib/aliasesbi.c: New file.
2380         * libc/iconv/lib/aliasesi.c: Ditto.
2381         * libc/iconv/lib/conv.h: Ditto.
2382         * libc/iconv/lib/encnames.h: Ditto.
2383         * libc/iconv/lib/encoding.deps: Ditto.
2384         * libc/iconv/lib/iconvnls.c: Ditto.
2385         * libc/iconv/lib/iconvnls.h: Ditto.
2386         * libc/iconv/lib/nullconv.c: Ditto.
2387         * libc/iconv/lib/ucsconv.c: Ditto.
2388         * libc/iconv/lib/ucsconv.h: Ditto.
2389         * libc/include/iconv.h: Update copyright.
2390         * libc/*/aclocal.m4: Regenerated.
2391         * libc/*/configure: Ditto.
2392         * libm/*/aclocal.m4: Ditto.
2393         * libm/*/configure: Ditto.
2394
2395 2004-06-22  Alexandre Oliva  <aoliva@redhat.com>
2396
2397         * libc/include/machine/setjmp.h [__H8300__] (_JBTYPE): Define,
2398         instead of typedefing jmp_buf.
2399
2400         2003-07-02  Richard Sandiford  <rsandifo@redhat.com>
2401         * libc/machine/h8300/Makefile.am (lib_a_SOURCES): Add h8sx_strcpy.S.
2402         * libc/machine/h8300/defines.h (LEN): New macro.
2403         * libc/machine/h8300/memcpy.S: Add h8sx version.
2404         * libc/machine/h8300/memset.S: Likewise.
2405         * libc/machine/h8300/strcmp.S: Likewise.
2406         * libc/machine/h8300/setjmp.S: Use h8sx move instructions.
2407         * libc/machine/h8300/h8sx_strcpy.S: New file.
2408         2003-06-30  Richard Sandiford  <rsandifo@redhat.com>
2409         * libc/include/machine/ieeefp.h: Extend __H8300S__ handling to
2410         __H8300SX__.
2411         * libc/include/machine/setjmp.h: Likewise.
2412         * libc/include/sys/config.h: Likewise.
2413         * libc/machine/h8300/defines.h: Likewise.
2414         * libc/machine/h8300/setjmp.S: Likewise.
2415         * libc/machine/h8300/strcmp.S: Likewise.
2416         * libc/sys/h8300hms/close.S: Likewise.
2417         * libc/sys/h8300hms/fstat.S: Likewise.
2418         * libc/sys/h8300hms/lseek.S: Likewise.
2419         * libc/sys/h8300hms/read.S: Likewise.
2420         * libc/sys/h8300hms/write.S: Likewise.
2421         * libc/sys/h8300hms/crt0.S: Likewise.
2422         * libc/machine/h8300/setarch.h: Use .h8300sx or .h8300sxn if
2423         __H8300SX__ is defined.
2424         * libc/sys/h8300hms/setarch.h: Likewise.
2425
2426 2004-06-17  Jeff Johnston  <jjohnstn@redhat.com>
2427
2428         * libc/include/sys/reent.h (_GLOBAL_REENT): Back
2429         out change which set _GLOBAL_REENT to _global_impure_ptr until
2430         we understand why Cygwin breaks because of it.
2431
2432 2004-06-14  Jeff Johnston  <jjohnstn@redhat.com>
2433
2434         * libc/sys/linux/machine/i386/syscall.h: For now, set up
2435         __syscall_return macro for systems with vsyscall.
2436
2437 2004-06-11  Antony King  <antony.king@st.com>
2438
2439         * libc/include/sys/_types.h: Include <sys/lock.h> and change
2440         _flock_t to be of type _LOCK_RECURSIVE_T.
2441         * libc/include/sys/reent.h: (_REENT_INIT): Reformat.
2442         (_REENT_INIT_PTR): Ditto.  Use memset where appropriate.
2443         (_global_impure_ptr): New declaration.
2444         (_GLOBAL_REENT): Change to be _global_impure_ptr.
2445         * libc/include/sys/stdio.h: Include <sys/lock.h> and
2446         <sys/reent.h>.
2447         (_flockfile)[!_SINGLE_THREAD]: Add code for lock call.
2448         (_funlockfile)[!SINGLE_THREAD]: Ditto.
2449         * libc/reent/impure.c: Set _global_impure_ptr to _impure_ptr.
2450         * libc/stdio/fclose.c: Remove casting of fp lock to
2451         _LOCK_RECURSIVE_T.
2452         * libc/stdio/findfp.c: Ditto.
2453         * libc/stdio/fopen.c: Ditto.
2454         * libc/stdio/freopen.c: Ditto.
2455         * libc/stdio/vfprintf.c: Ditto.
2456         * libc/stdio64/fopen64.c: Ditto.
2457         * libc/stdlib/envlock.c: Add default stubs that use generic
2458         locking code.
2459         * libc/stdlib/mlock.c: Ditto.
2460
2461         Jeff Johnston  <jjohnstn@redhat.com>
2462         * libc/sys/linux/sys/_types.h (__flock_mutex_t): New subtype.
2463         (_flock_t): Change to be a struct containing a single member
2464         named mutex which is of type __flock_mutex_t.
2465
2466 2004-06-09  Jeff Johnston  <jjohnstn@redhat.com>
2467
2468         * libc/sys/linux/Makefile.am: Change siglist.inc to be generated
2469         from /usr/include/asm/signal.h instead of kernel sources.  Also
2470         default max to 32 if not found in header file.
2471         * libc/sys/linux/Makefile.in: Regenerated.
2472         * libc/sys/linux/machine/i386/socketcall.h: Fix for Fedora Core 2
2473         systems where __syscall_return is not defined.
2474         * libc/sys/linux/machine/i386/syscall.h: Change for Fedora Core 2
2475         systems to use syscall() function instead of assembler interrupt.
2476
2477 2004-06-09  Toralf Lund  <toralf@procaptura.com>
2478
2479         * libc/sys/arm/setjmp.S, libc/sys/arm/access.c: Move
2480         files from libc/sys/arm to libc/machine/arm.
2481         * libc/machine/arm/Makefile.am, libc/machine/arm/Makefile.in: Add
2482         library build support for files moved from libc/sys/arm.
2483         * libc/sys/arm/Makefile.am, libc/sys/arm/Makefile.in:  Remove
2484         references to access and setjmp.
2485         * configure.host: Add checks for newlib_may_supply_syscalls to
2486         determine whether or not to use sys/arm directory and use
2487         special compiler flags: ARM_RDI_MONITOR and ARM_RDP_MONITOR.
2488        
2489 2004-06-02  Jeff Johnston  <jjohnstn@redhat.com>
2490
2491         * libc/stdio/vfscanf.c (__svfscanf_r): For CT_INT conversions,
2492         reset digit flags appropriately after we have discovered "0x".
2493         * libc/machine/powerpc/vfscanf.c (__svfscanf_r): Ditto.
2494
2495 2004-05-27  Jeff Johnston  <jjohnstn@redhat.com>
2496
2497         * libc/stdio/vfprintf.c (_VFPRINTF): Move file locking
2498         from here ...
2499         (_VFPRINTF_R): ... to here so all I/O printf routines
2500         are covered.
2501
2502 2004-05-26  Jeff Johnston  <jjohnstn@redhat.com>
2503
2504         * libc/search/hash_buf.c: Protect MAX and MIN macros from
2505         redefinition.
2506         * libc/search/hash.c: Ditto.
2507
2508 2004-05-25  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
2509
2510         * newlib.hin: (_WANT_IO_POS_ARGS): New define.
2511         (_WANT_IO_LONG_LONG): Ditto.
2512         (_WANT_IO_LONG_DOUBLE): Ditto.
2513         * configure.in: Add new configuration options
2514         --enable-newlib-io-long-long and --enable-newlib-io-long-double
2515         which tie to new defines in newlib.hin.
2516         * configure: Regenerated.
2517         * configure.host: Add checks for new configuration options.  Also
2518         fix up check for --enable-newlib-io-pos-args so configuration
2519         option will override any default for a given platform.
2520         Remove defining compiler flags for the _WANT_IO* options.
2521         * libc/stdio/vfprintf.c: Change to use new newlib.hin defines
2522         instead of looking for old compiler flags.
2523         * libc/stdio/vfscanf.c: Ditto.
2524         * libc/stdio/vfieeefp.h: Ditto.
2525         * libc/machine/powerpc/vfprintf.c: Ditto.
2526         * libc/machine/powerpc/vfscanf.c: Ditto.
2527
2528 2004-05-25  Jeff Johnston  <jjohnstn@redhat.com>
2529
2530         * testsuite/include/check.h: Add include of <stdio.h>.
2531
2532 2004-05-17  Corinna Vinschen  <corinna@vinschen.de>
2533
2534         * libc/include/grp.h: Declare getgrnam_r and getgrgid_r also on Cygwin.
2535
2536 2004-05-11  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
2537
2538         * libc/stdio/vfprintf.c (VFPRINTF_R): Use _free_r instead
2539         of free.
2540
2541 2004-05-07  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
2542
2543         * libc/stdio/iprintf.c (_iprintf_r): Fix old-style argument
2544         list for reentrant pointer.  Call _vfiprintf_r.
2545         * libc/stdio/siprintf.c (_siprintf_r): New function.
2546         * libc/stdio/vfprintf.c (__sbprintf): Add reetrant struct
2547         pointer argument.  Change all callers.  Call _VFPRINTF_R.
2548         * libc/include/stdio.h (_siprintf_r, _vfiprintf_r): New
2549         prototypes.
2550
2551 2004-05-07  Jeff Johnston  <jjohnstn@redhat.com>
2552
2553         * libc/include/sys/param.h: Remove endian info and include
2554         <machine/endian.h> instead.
2555         * libc/include/machine/endian.h: New file.
2556         * libc/include/machine/param.h: Ditto.
2557         * libc/machine/arm/machine/endian.h: Ditto.
2558         * libc/machine/arm/machine/param.h: Ditto.
2559         * libc/sys/arm/sys/param.h: Removed.
2560         * libc/sys/sysvi386/sys/param.h: Ditto.
2561         * libc/sys/rtems/sys/param.h: Modified to include <machine/endian.h>.
2562
2563 2004-05-03  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
2564
2565         * libc/stdio/vfprintf.c (_VFPRINTF_R): Set error flag when
2566         multibyte functions return failure for %C, %S, %lc, and %ls
2567         format specifiers.
2568
2569 2004-05-03  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
2570
2571         * testsuite/include/check.h (CHECK): Add flush of stdout.
2572
2573 2004-05-03  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
2574
2575         * libc/include/stdio.h (_ungetc_r): New prototype.
2576         * libc/stdio/ungetc.c (_ungetc_r): New reentrant function.
2577         (__submore): Add reentrant struct pointer argument.
2578         (ungetc): Change to call _ungetc_r.
2579
2580 2004-04-28  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
2581
2582         * libc/stdio/local.h (_fwalk_reent): Specify prototype of
2583         function pointer argument.
2584         * libc/stdio/fwalk.c (_fwalk, _fwalk_reent): Change prototypes
2585         to specify function pointer arguments.
2586         (__fwalk, __fwalk_reent): Ditto.
2587
2588 2004-04-26  Aldy Hernandez  <aldyh@redhat.com>
2589
2590         * libc/machine/powerpc/vfscanf.c (__svfscanf_r): Fix typo in
2591         CT_INT case.
2592
2593 2004-04-23  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
2594
2595         * configure.in: Define _MB_CAPABLE if mb supported.
2596         * configure: Regenerated.
2597         * configure.host: Remove manual setting of MB_CAPABLE compiler
2598         flag.
2599         * newlib.hin: Add _MB_CAPABLE flag.
2600         * libc/ctype/iswalpha.c, libc/ctype/iswblank.c: Include <newlib.h>
2601         and check for _MB_CAPABLE flag instead of MB_CAPABLE.
2602         * libc/ctype/iswcntrl.c, libc/ctype/iswprint.c: Ditto.
2603         * libc/ctype/iswpunct.c, libc/ctype/iswspace.c: Ditto.
2604         * libc/ctype/jp2uc.c: Ditto.
2605         * libc/ctype/towlower.c, libc/ctype/towupper.c: Ditto.
2606         * libc/locale/locale.c: Ditto
2607         * libc/machine/powerpc/vfscanf.c: Ditto
2608         * libc/stdio/vfprintf.c, libc/stdio/vfscanf.c: Ditto
2609         * libc/stdlib/mblen.c: Ditto
2610         * libc/stdlib/mblen_r.c, libc/stdlib/mbrlen.c: Ditto
2611         * libc/stdlib/mbrtowc.c, libc/stdlib/mbsrtowcs.c: Ditto
2612         * libc/stdlib/mbstowcs.c, libc/stdlib/mbtowc.c: Ditto
2613         * libc/stdlib/mbtowc_r.c, libc/stdlib/wcrtomb.c: Ditto
2614         * libc/stdlib/wcsrtombs.c, libc/stdlib/wcstombs.c: Ditto
2615         * libc/stdlib/wctomb.c, libc/sys/linux/intl/dcigettext.c: Ditto
2616         * libc/sys/linux/intl/explodename.c: Ditto
2617         * libc/sys/linux/intl/finddomain.c: Ditto
2618         * libc/sys/linux/intl/l10nflist.c: Ditto
2619         * libc/sys/linux/intl/loadmsgcat.c: Ditto
2620         * libc/sys/linux/intl/localealias.c: Ditto
2621
2622 2004-04-23  Jeff Johnston  <jjohnstn@redhat.com>
2623
2624         * libc/machine/powerpc/vfscanf.c (NNZDIGITS): New define.
2625         (__svfscanf_r): In integer conversions, leave out leading zeroes
2626         which are not part of a base prefix.
2627         Keep track of width truncation to fit into buf, not counting left-out
2628         zeroes against width till the truncation has been compensated for.
2629         This is based on Joern's patch of 04/21 for libc/stdio/vfscanf.c.
2630
2631 2004-04-23  Jeff Johnston  <jjohnstn@redhat.com>
2632
2633         * libc/include/stdio.h: (_ftell_r, _fseek_r): New prototypes.
2634
2635 2004-04-23  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
2636
2637         * libc/stdio/asprintf.c libc/stdio/clearerr.c,
2638         libc/stdio/fclose.c libc/stdio/fcloseall.c libc/stdio/fdopen.c,
2639         libc/stdio/feof.c libc/stdio/ferror.c libc/stdio/fflush.c,
2640         libc/stdio/fgetc.c libc/stdio/fgetpos.c libc/stdio/fgets.c,
2641         libc/stdio/fileno.c libc/stdio/findfp.c libc/stdio/fiprintf.c,
2642         libc/stdio/flags.c libc/stdio/fopen.c libc/stdio/fprintf.c,
2643         libc/stdio/fputc.c libc/stdio/fputs.c libc/stdio/fread.c,
2644         libc/stdio/freopen.c libc/stdio/fscanf.c libc/stdio/fseek.c,
2645         libc/stdio/fseeko.c libc/stdio/fsetpos.c libc/stdio/ftell.c,
2646         libc/stdio/ftello.c libc/stdio/fvwrite.c libc/stdio/fwalk.c,
2647         libc/stdio/fwrite.c libc/stdio/getc.c libc/stdio/getc_u.c,
2648         libc/stdio/getchar.c libc/stdio/getchar_u.c,
2649         libc/stdio/getdelim.c libc/stdio/getline.c libc/stdio/gets.c,
2650         libc/stdio/getw.c libc/stdio/iprintf.c libc/stdio/local.h,
2651         libc/stdio/makebuf.c libc/stdio/mktemp.c libc/stdio/perror.c,
2652         libc/stdio/printf.c libc/stdio/putc.c libc/stdio/putc_u.c,
2653         libc/stdio/putchar.c libc/stdio/putchar_u.c libc/stdio/puts.c,
2654         libc/stdio/putw.c libc/stdio/refill.c libc/stdio/remove.c,
2655         libc/stdio/rename.c libc/stdio/rewind.c libc/stdio/rget.c,
2656         libc/stdio/scanf.c libc/stdio/setbuf.c libc/stdio/setbuffer.c,
2657         libc/stdio/setlinebuf.c libc/stdio/setvbuf.c,
2658         libc/stdio/siprintf.c libc/stdio/snprintf.c,
2659         libc/stdio/sprintf.c libc/stdio/sscanf.c libc/stdio/stdio.c,
2660         libc/stdio/tmpfile.c libc/stdio/tmpnam.c libc/stdio/ungetc.c,
2661         libc/stdio/vasprintf.c libc/stdio/vfieeefp.h,
2662         libc/stdio/vfprintf.c libc/stdio/vfscanf.c,
2663         libc/stdio/vprintf.c libc/stdio/vscanf.c,
2664         libc/stdio/vsnprintf.c libc/stdio/vsprintf.c,
2665         libc/stdio/vsscanf.c libc/stdio/wbuf.c,
2666         libc/stdio/wsetup.c: Perform minor formatting changes.  Move
2667         copyright notices to top of file, ensure that <_ansi.h> is
2668         included, be consistent with open parentheses, use _DEFUN macro,
2669         include "local.h" where needed, and remove various compiler
2670         warnings.
2671
2672 2004-04-21  J"orn Rennecke <joern.rennecke@superh.com>
2673
2674         * libc/stdio/vfscanf.c (NNZDIGITS): New define.
2675         (__svfscanf_r): In integer conversions, leave out leading zeroes
2676         which are not part of a base prefix.
2677         Keep track of width truncation to fit into buf, not counting left-out
2678         zeroes against width till the truncation has been compensated for.
2679
2680 2004-04-20  Corinna Vinschen  <corinna@vinschen.de>
2681
2682         * libc/include/sys/unistd.h (ttyname_r): Add missing comma.
2683
2684 2004-04-20  Corinna Vinschen  <corinna@vinschen.de>
2685
2686         * libc/include/sys/unistd.h (ttyname_r): Add declaration for Cygwin.
2687
2688 2004-04-10  Corinna Vinschen  <corinna@vinschen.de>
2689
2690         * libc/include/sys/unistd.h (sync): Define void on Cygwin according
2691         to SUSv3.
2692
2693 2004-04-08  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
2694
2695         * libc/stdio/fclose.c (_fclose_r): New function.
2696         * libc/stdio/freopen.c (_freopen_r): Call _fclose_r.
2697         * libc/stdio/fcloseall.c (_fcloseall_r): Call _fwalk_reent.
2698         * libc/stdio64/freopen64.c (_freopen64_r): Use _fclose_r.
2699         * libc/include/stdio.h (_fclose_r): New prototype.
2700         * libc/stdio/fopen.c: Fix typo in comment.
2701
2702 2004-04-08  Jeff Johnston  <jjohnstn@redhat.com>
2703
2704         * libc/stdio/fwalk.c (_fwalk_reent): New version of _fwalk
2705         to handle _r reentrant functions.
2706
2707 2004-04-08  Eric Christopher  <echristo@redhat.com>
2708
2709         * libc/include/machine/setjmp.h: Fix endif locations.
2710
2711 2004-04-01  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
2712
2713         * libc/time/strptime.c: Add standard includes to avoid
2714         warning messages at compilation time.
2715
2716 2004-04-01  Jeff Johnston  <jjohnstn@redhat.com>
2717
2718         * libc/stdio/vfscanf.c (__svfscanf_r): Add locking/unlocking
2719         of file.
2720
2721 2004-03-30  Jeff Johnston  <jjohnstn@redhat.com>
2722
2723         * libc/machine/h8300/Makefile.am: Reformat slightly.
2724         * libc/machine/h8300/Makefile.in: Regenerate.
2725
2726 2004-03-30  Thomas Pfaff  <tpfaff@gmx.net>
2727
2728         * libc/stdio/findfp.c (__fp_lock_all): Add call to
2729         __sfp_lock_acquire.
2730         (__fp_unlock_all): Add call to __sfp_lock_release. 
2731
2732 2004-03-25  Thomas Pfaff  <tpfaff@gmx.net>
2733
2734         * libc/stdio/fclose.c (fclose): Protect file pointer list when
2735         releasing a file.
2736          * libc/stdio/fcloseall.c (_fcloseall_r): Close all files via
2737         fwalk.
2738         * libc/stdio/fdopen.c (_fdopen_r): Add calls to
2739         _flockfile/_funlockfile.
2740         * libc/stdio/findfp.c: Move __sfp_lock. Change __sfp_lock type
2741         to recursive.
2742         Change __lock_acquire/__lock_release calls for __sfp_lock to
2743         __sfp_lock_acquire/__sfp_lock_release throughout.
2744         (std): Make sure that file lock is only initialized once.
2745         (__sfp): Move _file initialization. Initialize file lock.
2746         (__sfp_lock_acquire): New function.
2747         (__sfp_lock_release): Ditto.
2748         (__fp_lock_all): Remove __sfp_lock_acquire call.
2749         (__fp_unlock_all): Remove __sfp_lock_release call.
2750         * libc/stdio/fopen.c (_fopen_r): Protect file pointer list.
2751         Add calls to _flockfile/_funlockfile. Remove
2752         __lock_init_recursive call.
2753         * libc/stdio/freopen.c (_freopen_r): Protect file pointer list.
2754         * libc/stdio/fwalk.c (__fwalk): New static function.
2755         (_fwalk): Protect file pointer list. Use __fwalk to walk through
2756         file pointers.
2757         * libc/stdio/local.h: Add defines for
2758         __sfp_lock_acquire/__sfp_lock_release when
2759         single threaded. Add function prototypes otherwise.
2760         * libc/stdio64/fdopen64.c (_fdopen64_r): Add calls to
2761         _flockfile/_funlockfile.
2762         * libc/stdio/fopen64.c (_fopen64_r): Protect file pointer list.
2763         Add calls to _flockfile/_funlockfile. Remove
2764          __lock_init_recursive call.
2765         * libc/stdio/freopen64.c (_freopen64_r): Protect file pointer
2766         list. 
2767
2768 2004-03-25  Jeff Johnston  <jjohnstn@redhat.com>
2769
2770         * libc/sys/linux/sys/lock.h: Turn on __USE_GNU flag if not already
2771         defined.  Change __LOCK_RECURSIVE_INIT to be __LOCK_INIT_RECURSIVE.
2772         * libc/sys/linux/dl/dl-support.c: Change __LOCK_RECURSIVE_INIT
2773         to be __LOCK_INIT_RECURSIVE.
2774
2775 2004-03-11  Kazu Hirata  <kazu@cs.umass.edu>
2776
2777         * libc/sys/h8300hms/Makefile.am (lib_a_SOURCES): Replace
2778         _exit.c with _exit.S.
2779         * libc/sys/h8300hms/Makefile.in: Regenerate.
2780         * libc/sys/h8300hms/_exit.c: Remove.
2781         * libc/sys/h8300hms/_exit.S: New.
2782
2783 2004-03-09  Thomas Pfaff  <tpfaff@gmx.net>
2784
2785         * libc/stdio/findfp.c (__sfp): Rename lock to __sfp_lock.
2786         Change __sfp_lock to static global.
2787         (__fp_lock): New static function.
2788         (__fp_unlock): Ditto.
2789         (__fp_lock_all): New function.
2790         (__fp_unlock_all): Ditto. 
2791
2792 2004-02-10  Christopher Faylor  <cgf@redhat.com>
2793
2794         * libm/mathfp/er_gamma.c (gamma): Add new non-reentrant function.
2795         * libm/mathfp/er_lgamma.c (lgamma): Ditto.
2796         * libm/mathfp/erf_gamma.c (gammaf): Ditto.
2797         * libm/mathfp/erf_lgamma.c (lgammaf): Ditto.
2798
2799 2004-02-09  Christopher Faylor  <cgf@redhat.com>
2800
2801         * libc/include/time.h (TIMER_RELTIME): New define.
2802
2803 2004-02-09  Jeff Johnston  <jjohnstn@redhat.com>
2804
2805         * libc/stdlib/Makefile.am: Add mallstatsr to LIBADD_OBJS.
2806         * libc/stdlib/Makefile.in: Regenerated.
2807
2808 2004-02-08  Christopher Faylor  <cgf@redhat.com>
2809
2810         * libc/include/sys/features.h: Add _POSIX_TIMERS define for __CYGWIN__.
2811         * libc/include/sys/reent.h (__getreent): Protect against possibly being
2812         defined.
2813         * libc/include/sys/unistd.h (fdatasync): Don't define for __CYGWIN__.
2814
2815 2004-02-05  Paul Brook  <paul@codesourcery.com>
2816
2817         * libc/include/machine/ieeefp.h[__arm__][__VFP_FP__]: Set 
2818         IEEE_{BIG,LITTLE} based on __ARMEL__ flag.
2819
2820 2004-02-02  Jeff Johnston  <jjohnstn@redhat.com>
2821
2822         * NEWS: Update with 1.12.0 info.
2823         * README: Ditto.
2824         * acinclude.m4: Change version number to 1.12.0.
2825         * aclocal.m4: Regenerated.
2826         * configure: Ditto.
2827         * doc/aclocal.m4: Ditto.
2828         * doc/configure: Ditto.
2829         * libc/*/aclocal.m4: Ditto.
2830         * libc/*/configure: Ditto.
2831         * libc/libc.texinfo: Ditto.
2832         * libm/*/aclocal.m4: Ditto.
2833         * libm/*/configure: Ditto.
2834         * libm/libm.texinfo: Ditto.
2835         * libc/sys/linux/shared.ld: Add VERS_1.12.
2836
2837 2004-02-02  Joel Sherrill  <joel@oarcorp.com>
2838
2839         * configure.host: Add support for tic4x.
2840         * libc/include/machine/ieeefp.h: Ditto.
2841         * libc/include/machine/setjmp.h: Ditto.
2842         * libc/machine/tic4x/Makefile.am: New file.
2843         * libc/machine/tic4x/configure.in: Ditto.
2844         * libc/machine/tic4x/setjmp.S: Ditto.
2845         * libc/machine/tic4x/aclocal.m4: Generated.
2846         * libc/machine/tic4x/configure: Ditto.
2847         * libc/machine/tic4x/Makefile.in: Ditto.
2848
2849 2004-01-30  Jeff Johnston  <jjohnstn@redhat.com>
2850
2851         * libc/stdio/fwalk.c (_fwalk.c): Don't traverse the
2852         file chain on the passed in reentrancy struct if it
2853         is _GLOBAL_REENT.
2854
2855 2004-01-30  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
2856             Jeff Johnston  <jjohnstn@redhat.com>
2857
2858         * libc/iconv/iconv.tex: Updated with more information.
2859
2860 2004-01-30  Thomas Pfaff  <tpfaff@gmx.net>
2861             Jeff Johnston  <jjohnstn@redhat.com>
2862
2863         * libc/stdio/fwalk.c (_fwalk): Traverse the given reentrancy
2864         struct for std streams and traverse the global reeentrancy
2865         struct for all other streams.
2866
2867 2004-01-27  Jeff Johnston  <jjohnstn@redhat.com>
2868
2869         * libc/stdlib/atexit.c: Protect global atexit list with a
2870         lock when newlib is multithreaded.
2871
2872 2004-01-27  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
2873
2874         * configure.in: Add support to generate iconv converter flags
2875         for newlib.h
2876         * newlib.hin: Add iconv converter flags.
2877         * configure: Regenerated.
2878         * libc/Makefile.in: Ditto.
2879         * libc/configure.in: Moved iconv converter parsing logic to
2880         top level newlib configure.in.
2881         * libc/configure: Regenerated.
2882         * libc/iconv/Makefile.in: Ditto.
2883         * libc/iconv/README.TODO
2884         * libc/iconv/charset.aliases: Remove wrong BE aliases for
2885         UCS2/UCS4/UTF8.
2886         * libc/iconv/ccs/Makefile.am: Remove C flag setting now that
2887         newlib.h can be used.
2888         * libc/iconv/ces/Makefile.am: Ditto.
2889         * libc/iconv/lib/Makefile.am: Ditto.
2890         * libc/iconv/ccs/Makefile.in: Regenerated.
2891         * libc/iconv/ces/Makefile.in: Ditto.
2892         * libc/iconv/lib/Makefile.in: Ditto.
2893         * libc/iconv/ccs/README.CCS.SOURCES: Updated.
2894         * libc/iconv/ccs/iconv_mktbl: Don't write junk strings to binaries.
2895         * libc/iconv/ccs/big5.c: Switch to use new underscored flags
2896         defined in newlib.h.
2897         * libc/iconv/ccs/cns11643_plane1.c: Ditto.
2898         * libc/iconv/ccs/cns11643_plane14.c: Ditto.
2899         * libc/iconv/ccs/cns11643_plane2.c: Ditto.
2900         * libc/iconv/ccs/cp775.c: Ditto.
2901         * libc/iconv/ccs/cp850.c: Ditto.
2902         * libc/iconv/ccs/cp852.c: Ditto.
2903         * libc/iconv/ccs/cp855.c: Ditto.
2904         * libc/iconv/ccs/cp866.c: Ditto.
2905         * libc/iconv/ccs/gb_2312_80.c: Ditto.
2906         * libc/iconv/ccs/iso_8859_1.c: Ditto.
2907         * libc/iconv/ccs/iso_8859_15.c: Ditto.
2908         * libc/iconv/ccs/iso_8859_2.c: Ditto.
2909         * libc/iconv/ccs/iso_8859_4.c: Ditto.
2910         * libc/iconv/ccs/iso_8859_5.c: Ditto.
2911         * libc/iconv/ccs/jis_x0201.c: Ditto.
2912         * libc/iconv/ccs/jis_x0208_1983.c: Ditto.
2913         * libc/iconv/ccs/jis_x0212_1990.c: Ditto.
2914         * libc/iconv/ccs/koi8_r.c: Ditto.
2915         * libc/iconv/ccs/koi8_u.c: Ditto.
2916         * libc/iconv/ccs/ksx1001.c: Ditto.
2917         * libc/iconv/ccs/shift_jis.c: Ditto.
2918         * libc/iconv/ccs/us_ascii.c: Ditto.
2919         * libc/iconv/ccs/binary/big5.cct: Newly generated.
2920         * libc/iconv/ccs/binary/cns11643_plane1.cct: Ditto.
2921         * libc/iconv/ccs/binary/cns11643_plane14.cct: Ditto.
2922         * libc/iconv/ccs/binary/cns11643_plane2.cct: Ditto.
2923         * libc/iconv/ccs/binary/cp775.cct: Ditto.
2924         * libc/iconv/ccs/binary/cp850.cct: Ditto.
2925         * libc/iconv/ccs/binary/cp852.cct: Ditto.
2926         * libc/iconv/ccs/binary/cp855.cct: Ditto.
2927         * libc/iconv/ccs/binary/cp866.cct: Ditto.
2928         * libc/iconv/ccs/binary/gb_2312_80.cct: Ditto.
2929         * libc/iconv/ccs/binary/iso_8859_1.cct: Ditto.
2930         * libc/iconv/ccs/binary/iso_8859_15.cct: Ditto.
2931         * libc/iconv/ccs/binary/iso_8859_2.cct: Ditto.
2932         * libc/iconv/ccs/binary/iso_8859_4.cct: Ditto.
2933         * libc/iconv/ccs/binary/iso_8859_5.cct: Ditto.
2934         * libc/iconv/ccs/binary/jis_x0201.cct: Ditto.
2935         * libc/iconv/ccs/binary/jis_x0208_1983.cct: Ditto.
2936         * libc/iconv/ccs/binary/jis_x0212_1990.cct: Ditto.
2937         * libc/iconv/ccs/binary/koi8_r.cct: Ditto.
2938         * libc/iconv/ccs/binary/koi8_u.cct: Ditto.
2939         * libc/iconv/ccs/binary/ksx1001.cct: Ditto.
2940         * libc/iconv/ccs/binary/shift_jis.cct: Ditto.
2941         * libc/iconv/ccs/binary/us_ascii.cct: Ditto.
2942         * libc/iconv/lib/bialiasesi.c: Sync with charset.aliases.
2943         * libc/iconv/ces/euc-jp.c: Use newlib.h macros.
2944         * libc/iconv/ces/euc-kr.c: Ditto.
2945         * libc/iconv/ces/euc-tw.c: Ditto.
2946         * libc/iconv/ces/gb2312.c: Ditto.
2947         * libc/iconv/ces/iso-10646-ucs-2.c: Ditto.
2948         * libc/iconv/ces/iso-10646-ucs-4.c: Ditto.
2949         * libc/iconv/ces/ucs-2-internal.c: Ditto.
2950         * libc/iconv/ces/ucs-4-internal.c: Ditto.
2951         * libc/iconv/ces/utf-16.c: Ditto.
2952         * libc/iconv/ces/utf-8.c: Ditto.
2953         * libc/iconv/lib/aliases.c: Ditto.
2954         * libc/iconv/lib/biccs.c: Ditto.
2955         * libc/iconv/lib/bices.c: Ditto.
2956         * libc/iconv/lib/ccs.c: Ditto.
2957         * libc/iconv/lib/ces.c: Ditto.
2958         * libc/iconv/lib/ces_euc.c: Ditto.
2959         * libc/iconv/lib/ces_iso2022.c: Ditto.
2960         * libc/iconv/lib/ces_table.c: Ditto.
2961         * libc/iconv/lib/converter.c: Ditto.
2962         * libc/iconv/lib/deps.h: Ditto.
2963         * libc/iconv/lib/endian.h: Ditto.
2964         * libc/iconv/lib/iconv.c: Ditto.
2965         * libc/iconv/lib/loaddata.c: Ditto.
2966         * libc/iconv/lib/local.h: Include newlib.h.
2967         * libc/argz/Makefile.in: Regenerated.
2968         * libc/ctype/Makefile.in: Ditto.
2969         * libc/errno/Makefile.in: Ditto.
2970         * libc/iconv/ccs/binary/Makefile.in: Ditto.
2971         * libc/locale/Makefile.in: Ditto.
2972         * libc/misc/Makefile.in: Ditto.
2973         * libc/posix/Makefile.in: Ditto.
2974         * libc/reent/Makefile.in: Ditto.
2975         * libc/search/Makefile.in: Ditto.
2976         * libc/signal/Makefile.in: Ditto.
2977         * libc/stdio/Makefile.in: Ditto.
2978         * libc/stdio64/Makefile.in: Ditto.
2979         * libc/stdlib/Makefile.in: Ditto.
2980         * libc/string/Makefile.in: Ditto.
2981         * libc/syscalls/Makefile.in: Ditto.
2982         * libc/time/Makefile.in: Ditto.
2983         * libc/unix/Makefile.in: Ditto.
2984         * testsuite/newlib.iconv/iconv.exp: New file.
2985         * testsuite/newlib.iconv/iconvjp.c: Ditto.
2986         * testsuite/newlib.iconv/iconvnm.c: Ditto.
2987         * testsuite/newlib.iconv/iconvru.c: Ditto.
2988
2989 2004-01-23  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
2990
2991         * acinclude.m4 (--enable-newlib-iconv): New configuration option.
2992         (--enable-newlib-builtin-converters): Ditto.
2993         * configure.in: Add code to set _ICONV_ENABLED flag.
2994         Set _MB_LEN_MAX to 1 if not mb enabled.
2995         * configure: Regenerated.
2996         * aclocal.m4: Ditto.
2997         * Makefile.in: Ditto.
2998         * newlib.hin: Add _ICONV_ENABLED flag.
2999         * libc/Makefile.am: Add support for iconv.
3000         * libc/configure.in: Ditto.
3001         * libc/Makefile.in: Regenerated.
3002         * libc/aclocal.m4: Ditto.
3003         * libc/configure: Ditto.
3004         * libc/libc.texinfo: Add iconv documentation.
3005         * libc/iconv/AUTHORS, libc/iconv/COPYING, libc/iconv/Makefile.am,
3006         libc/iconv/Makefile.in, libc/iconv/README.ORIGINAL,
3007         libc/iconv/README.TODO, libc/iconv/charset.aliases,
3008         libc/iconv/iconv.tex, libc/iconv/ccs/Makefile.am,
3009         libc/iconv/ccs/Makefile.in, libc/iconv/ccs/README.CCS.SOURCES,
3010         libc/iconv/ccs/big5.c, libc/iconv/ccs/cns11643_plane1.c,
3011         libc/iconv/ccs/cns11643_plane14.c, libc/iconv/ccs/cns11643_plane2.c,
3012         libc/iconv/ccs/cp775.c, libc/iconv/ccs/cp850.c,
3013         libc/iconv/ccs/cp852.c, libc/iconv/ccs/cp855.c,
3014         libc/iconv/ccs/cp866.c, libc/iconv/ccs/gb_2312_80.c,
3015         libc/iconv/ccs/iconv_mktbl, libc/iconv/ccs/iso_8859_1.c,
3016         libc/iconv/ccs/iso_8859_15.c, libc/iconv/ccs/iso_8859_2.c,
3017         libc/iconv/ccs/iso_8859_4.c, libc/iconv/ccs/iso_8859_5.c,
3018         libc/iconv/ccs/jis_x0201.c, libc/iconv/ccs/jis_x0208_1983.c,
3019         libc/iconv/ccs/jis_x0212_1990.c, libc/iconv/ccs/koi8_r.c,
3020         libc/iconv/ccs/koi8_u.c, libc/iconv/ccs/ksx1001.c,
3021         libc/iconv/ccs/shift_jis.c, libc/iconv/ccs/us_ascii.c,
3022         libc/iconv/ccs/binary/Makefile.am, libc/iconv/ccs/binary/Makefile.in,
3023         libc/iconv/ccs/binary/big5.cct,
3024         libc/iconv/ccs/binary/cns11643_plane1.cct,
3025         libc/iconv/ccs/binary/cns11643_plane14.cct,
3026         libc/iconv/ccs/binary/cns11643_plane2.cct,
3027         libc/iconv/ccs/binary/cp775.cct, libc/iconv/ccs/binary/cp850.cct,
3028         libc/iconv/ccs/binary/cp852.cct, libc/iconv/ccs/binary/cp855.cct,
3029         libc/iconv/ccs/binary/cp866.cct, libc/iconv/ccs/binary/gb_2312_80.cct,
3030         libc/iconv/ccs/binary/iso_8859_1.cct,
3031         libc/iconv/ccs/binary/iso_8859_15.cct,
3032         libc/iconv/ccs/binary/iso_8859_2.cct,
3033         libc/iconv/ccs/binary/iso_8859_4.cct,
3034         libc/iconv/ccs/binary/iso_8859_5.cct,
3035         libc/iconv/ccs/binary/jis_x0201.cct,
3036         libc/iconv/ccs/binary/jis_x0208_1983.cct,
3037         libc/iconv/ccs/binary/jis_x0212_1990.cct,
3038         libc/iconv/ccs/binary/koi8_r.cct, libc/iconv/ccs/binary/koi8_u.cct,
3039         libc/iconv/ccs/binary/ksx1001.cct,
3040         libc/iconv/ccs/binary/shift_jis.cct,
3041         libc/iconv/ccs/binary/us_ascii.cct,
3042         libc/iconv/ces/Makefile.am, libc/iconv/ces/Makefile.in,
3043         libc/iconv/ces/euc-jp.c, libc/iconv/ces/euc-kr.c,
3044         libc/iconv/ces/euc-tw.c, libc/iconv/ces/gb2312.c,
3045         libc/iconv/ces/iso-10646-ucs-2.c, libc/iconv/ces/iso-10646-ucs-4.c,
3046         libc/iconv/ces/ucs-2-internal.c, libc/iconv/ces/ucs-4-internal.c,
3047         libc/iconv/ces/utf-16.c, libc/iconv/ces/utf-8.c,
3048         libc/iconv/lib/Makefile.am, libc/iconv/lib/Makefile.in,
3049         libc/iconv/lib/aliases.c, libc/iconv/lib/bialiasesi.c,
3050         libc/iconv/lib/biccs.c, libc/iconv/lib/bices.c,
3051         libc/iconv/lib/ccs.c, libc/iconv/lib/ces.c,
3052         libc/iconv/lib/ces_euc.c, libc/iconv/lib/ces_iso2022.c,
3053         libc/iconv/lib/ces_table.c, libc/iconv/lib/converter.c,
3054         libc/iconv/lib/deps.h, libc/iconv/lib/endian.h,
3055         libc/iconv/lib/iconv.c, libc/iconv/lib/loaddata.c,
3056         libc/iconv/lib/local.h, libc/include/iconv.h: New files.
3057         * libc/sys/linux/include/iconv.h: Ditto.
3058         * libc/include/sys/_types.h (_iconv_t): Added.
3059         * doc/aclocal.m4: Regenerated.
3060         * doc/configure: Ditto.
3061         * doc/Makefile.in: Ditto.
3062         * iconvdata/Makefile.in: Ditto.
3063         * iconvdata/aclocal.m4: Ditto.
3064         * iconvdata/configure: Ditto.
3065         * libc/*aclocal.m4: Ditto.
3066         * libc/*Makefile.in: Ditto.
3067         * libc/*configure: Ditto.
3068         * libm/*aclocal.m4: Ditto.
3069         * libm/*Makefile.in: Ditto.
3070         * libm/*configure: Ditto.
3071
3072 2004-01-22  Thomas Pfaff  <tpfaff@gmx.net>
3073
3074         * libc/stdio/findfp.c (__sfp): Protect global FILE pointer list
3075         by a lock when newlib is multithreaded. 
3076
3077 2004-01-21  Jeff Johnston  <jjohnstn@redhat.com>
3078
3079         * libc/stdlib/mbrtowc.c (_mbrtowc_r): Fix case where s is null
3080         pointer to match C99 spec.
3081         * libc/stdlib/mbsrtowcs.c (_mbsrtowc_r): Fix to ignore len when
3082         dst is NULL.  Also fix to not alter src pointer when dst is NULL
3083         and call _mbrtowc_r instead of _mbtowc_r.
3084         * libc/stdlib/wcsrtombs.c (_wcsrtombs_r): Call _wcrtomb_r instead
3085         of _wctomb_r.
3086
3087 2004-01-19  Thomas Pfaff  <tpfaff@gmx.net>
3088
3089         * libc/stdio/fclose.c (fclose): Release FILE as the last step.
3090         * libc/stdio/freopen.c (freopen): Ditto.
3091
3092 2004-01-16  Christopher Faylor  <cgf@redhat.com>
3093
3094         * libc/stdio/vfprintf.c: Add sys/lock.h include.
3095
3096 2004-01-16  Thomas Pfaff  <tpfaff@gmx.net>
3097
3098         * libc/stdio/findfp.c (__sfp): Remove unnecessary memset.
3099         * libc/stdio/vfprintf.c (__sbprintf): Ditto.
3100         Add calls to __lock_init_recursive and __lock_close_recursive
3101         instead.
3102
3103 2004-01-15  Thomas Pfaff  <tpfaff@gmx.net>
3104
3105         * libc/stdio/fclose.c: Include sys/lock.h.
3106         (fclose): Destroy lock when file is closed.
3107         * libc/stdio/findfp.c (__sfp): Initialize file pointers _lock
3108         member.
3109         * libc/stdio/freopen.c: Include sys/lock.h.
3110         (_freopen_r): Destroy lock when file is closed.
3111         * libc/stdio/vfprintf.c (__sbprintf): Initialize file pointers
3112         _lock member.
3113
3114 2004-01-08  Joel Sherrill  <joel@oarcorp.com>
3115
3116         * libc/ctype/iswctype.c, include/sys/reent.h, libc/stdlib/a64l.c:
3117         Remove warnings.
3118
3119 2004-01-08  Joel Sherrill  <joel@oarcorp.com>
3120
3121         * libc/sys/rtems/sys/queue.h: New file.
3122         * libc/include/sys/signal.h: Reflect renumbering of signals to
3123         fit into 32-bit mask.
3124         * libc/include/sys/unistd.h: Add fdatasync() prototype.
3125         * libc/sys/rtems/crt0.c: Add more symbols which may be implicitly
3126         required.  In particular, add the reentrant variants of libc calls.
3127         * libc/sys/rtems/sys/dirent.h: Add scandir() prototype.
3128
3129 2004-01-06  Mark Mitchell  <mark@codesourcery.com>
3130
3131         * libc/sys/arm/syscalls.c (unistd.h): Include it.
3132         (remap_handle): Use STDIN_FILENO instead of __sfileno(stdin).
3133         Similarly for stdout and stderr.
3134
3135 2004-01-06  Jeff Johnston  <jjohnstn@redhat.com>
3136
3137         * libc/libc.texinfo: Correct escape character for @ sign
3138         so file will be processed by make info.  Update copyright years.
3139         * libm/libm.texinfo: Ditto.
3140
3141 2003-12-05  Jeff Johnston  <jjohnstn@redhat.com>
3142
3143         * libc/include/sys/stat.h: No longer include stat-dj.h.
3144         * libc/include/sys/stat-dj.h: Removed.
3145
3146 2003-12-05  Jeff Johnston  <jjohnstn@redhat.com>
3147
3148         * libc/include/wchar.h: Include <sys/reent.h>.
3149
3150 2003-12-05  Christopher Faylor  <cgf@redhat.com>
3151
3152         * libc/stdlib/mbrlen.c: Change include order to prevent compiler errors
3153         when defining _mbrtowc.
3154         * libc/stdlib/mbsinit.c: Ditto.
3155         * libc/stdlib/mbsrtowcs.c: Ditto.
3156         * libc/stdlib/wcrtomb.c: Ditto.
3157         * libc/stdlib/wcsrtombs.c: Ditto.
3158         * libc/stdlib/wctob.c: Ditto.
3159
3160 2003-12-05  Christopher Faylor  <cgf@redhat.com>
3161
3162         * libc/stdlib/mbrlen.c: Change include order to prevent compiler
3163         errors when defining _mbrtowc.
3164         * libc/stdlib/mbsinit.c: Ditto.
3165         * libc/stdlib/mbsrtowcs.c: Ditto.
3166
3167 2003-12-05  Christopher Faylor  <cgf@redhat.com>
3168
3169         * libc/stdlib/mbrtowc.c: Change include order to prevent compiler
3170         errors when defining _mbrtowc.
3171
3172 2003-12-04  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
3173
3174         * libc/stdio/vfprintf.c (_VFPRINTF_R): Use _r versions
3175         of mb routines for %lc and %ls support.
3176         * libc/stdio/vfscanf.c (_svfscanf_r): Add %lc, %C,
3177         %ls, and %S support.  Remove CYGNUS_NEC markers and
3178         code within.
3179
3180 2003-12-04  Jeff Johnston  <jjohnstn@redhat.com>
3181
3182         * libc/include/wchar.h: Add prototypes for _mbrtowc_r,
3183         _wcrtomb_r, and _wcsrtombs_r.
3184
3185 2003-12-01  Corinna Vinschen  <corinna@vinschen.de>
3186
3187         * libc/include/sys/fcntl.h: Don't define struct flock when on
3188         Cygwin.  This is done in winsup/cygwin/include/cygwin/types.h now.
3189
3190 2003-11-28  Christopher Faylor  <cgf@redhat.com>
3191
3192         * libc/include/sys/signal.h: Use system specific signal file when
3193         building on cygwin.
3194
3195 2003-11-27  Jeff Johnston  <jjohnstn@redhat.com>
3196
3197         * libc/include/stdlib.h (_atoi_r): New prototype.
3198         * libc/stdlib/atoi.c (_atoi_r): New reentrant function.
3199
3200 2003-11-27  Jeff Johnston  <jjohnstn@redhat.com>
3201
3202         * libc/include/stdlib.h (_atoll_r, _atol_r): New prototypes.
3203         * libc/stdlib/atol.c (_atol_r): New reentrant function.
3204         * libc/stdlib/atoll.c (_atoll_r): Ditto.
3205
3206 2003-11-27  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
3207             Jeff Johnston  <jjohnstn@redhat.com>
3208
3209         * libc/include/stdlib.h (lldiv_t): New type.
3210         (atoll, llabs, lldiv): New prototypes.
3211         * libc/stdlib/Makefile.am: Add support for atoll, llabs, and lldiv.
3212         * libc/stdlib/stdlib.tex: Ditto.
3213         * libc/stdlib/Makefile.in: Regenerated.
3214         * libc/stdlib/atoll.c: New file.
3215         * libc/stdlib/llabs.c: Ditto.
3216         * libc/stdlib/lldiv.c: Ditto.
3217
3218 2003-11-26  Corinna Vinschen  <corinna@vinschen.de>
3219
3220         * libc/include/fcntl.h: Declare syscalls only when building newlib.
3221         * libc/include/unistd.h: Ditto.
3222         * libc/include/stat.h: Ditto.  Also declare struct stat64.
3223
3224 2003-11-24  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
3225
3226         * libc/stdio/vfprintf.c (_VFPRINTF_R): Fix check for 'C' format
3227         specifier to use ch instead of *fmt.
3228
3229 2003-11-21  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
3230
3231         * libc/stdio/vfprintf.c (_VFPRINTF_R, get_arg): Move mb-specific
3232         code within checks for MB_CAPABLE.  For non-mb-capable platforms,
3233         use simple byte logic.
3234
3235 2003-11-21  Jeff Johnston  <jjohnstn@redhat.com>
3236
3237         * libc/stdio/vfscanf.c (__svfscanf_r)[!_NO_LONGDBL]: Don't use
3238         _strtold routine for processing floats and doubles since it
3239         is not as fast as _strtod_r.
3240
3241 2003-11-20 Dhananjay Deshpande <dhananjayd@kpitcummins.com> 
3242
3243         * libc/machine/h8300/defines.h : Correct pointer register defines 
3244         for normal mode.
3245         * libc/machine/h8300/memcpy.S : Use add/sub instead of adds/subs 
3246         for normal mode.
3247         * libc/machine/h8300/reg_memcpy.S : Likewise.
3248         * libc/machine/h8300/reg_memset.S : Likewise.
3249         * libc/machine/h8300/strcmp.S : Likewise.
3250
3251 2003-11-19  Nicholas Wourms  <nwourms@netscape.net>
3252
3253         * configure.host: Enable positional arguments for printf
3254         family for Cygwin.
3255         * libc/stdio/vfprintf.c (_VFPRINTF_R): Remove extraneous
3256         pointer reference for quad_ptr_t.
3257
3258 2003-11-19  Jeff Johnston  <jjohnstn@redhat.com>
3259
3260         * libc/stdio/scanf.c: Don't include local.h more than once.
3261
3262 2003-11-18  Corinna Vinschen  <corinna@vinschen.de>
3263
3264         * libc/include/sys/fcntl.h: Declare _open64.
3265         * libc/include/sys/stat.h: Declare _fstat64.
3266         * libc/include/sys/unistd.h: Declare _lseek64.
3267
3268 2003-11-17  Corinna Vinschen  <corinna@vinschen.de>
3269
3270         * libc/include/stdlib.h (getprogname): Declare for Cygwin.
3271         (setprogname): Ditto.
3272
3273 2003-11-10  Jeff Johnston  <jjohnstn@redhat.com>
3274
3275         * libc/machine/powerpc/ufix64toa.c (_ufix64to_r): Fix shifts
3276         to use (Ebits + 1) which accounts for the sign-bit.
3277
3278 2003-11-07  Jeff Johnston  <jjohnstn@redhat.com>
3279
3280         * configure.host: Remove -DLOOSE_KERNEL_NAMES flag for linux 
3281         x86 build.
3282         * iconvdata/Makefile.am: Make dependent on newlib's configure.host
3283         and set up default flags to pass to aclocal.
3284         * iconvdata/Makefile.in: Regenerated.
3285         * libc/sys/linux/Makefile.am: Add _ELIX_LEVEL_4 getlogin, getpwnam,
3286         and getpwuid routines.
3287         * libc/sys/linux/Makefile.in: Regenerated.
3288         * libc/sys/linux/getlogin.c: New stub file to allow x86-linux
3289         applications to link with newlib's shared libc library.
3290         * libc/sys/linux/getpwnam.c: Ditto.
3291         * libc/sys/linux/getpwuid.c: Ditto.
3292         * libc/sys/linux/sys/types.h: Include <features.h> and supply types
3293         that were formerly supplied by /usr/include/linux/types.h with
3294         kernel types.
3295         * testsuite/newlib.wctype/twctype.c: Fix testcase to properly
3296         test _ELIX_LEVEL macro.
3297
3298 2003-11-07  Jeff Johnston  <jjohnstn@redhat.com>
3299
3300         * libc/stdio/vfprintf.c (_VFPRINTF_R): Fix typos that should be
3301         referring to _NO_LONGLONG macro.
3302
3303 2003-11-06  Jeff Johnston  <jjohnstn@redhat.com>
3304
3305         * libc/sys/linux/linuxthreads/td_init.c: Replace function name
3306         in LOG() macro so this will compile on gcc 3.4 and up.
3307         * libc/sys/linux/linuxthreads/td_log.c: Ditto.
3308         * libc/sys/linux/linuxthreads/td_ta_clear_event.c: Ditto.
3309         * libc/sys/linux/linuxthreads/td_ta_delete.c: Ditto.
3310         * libc/sys/linux/linuxthreads/td_ta_enable_stats.c: Ditto.
3311         * libc/sys/linux/linuxthreads/td_ta_event_addr.c: Ditto.
3312         * libc/sys/linux/linuxthreads/td_ta_event_getmsg.c: Ditto.
3313         * libc/sys/linux/linuxthreads/td_ta_get_nthreads.c: Ditto.
3314         * libc/sys/linux/linuxthreads/td_ta_get_ph.c: Ditto.
3315         * libc/sys/linux/linuxthreads/td_ta_get_stats.c: Ditto.
3316         * libc/sys/linux/linuxthreads/td_ta_map_id2thr.c: Ditto.
3317         * libc/sys/linux/linuxthreads/td_ta_map_lwp2thr.c: Ditto.
3318         * libc/sys/linux/linuxthreads/td_ta_new.c: Ditto.
3319         * libc/sys/linux/linuxthreads/td_ta_reset_stats.c: Ditto.
3320         * libc/sys/linux/linuxthreads/td_ta_set_event.c: Ditto.
3321         * libc/sys/linux/linuxthreads/td_ta_setconcurrency.c: Ditto.
3322         * libc/sys/linux/linuxthreads/td_ta_thr_iter.c: Ditto.
3323         * libc/sys/linux/linuxthreads/td_ta_tsd_iter.c: Ditto.
3324         * libc/sys/linux/linuxthreads/td_thr_clear_event.c: Ditto.
3325         * libc/sys/linux/linuxthreads/td_thr_dbresume.c: Ditto.
3326         * libc/sys/linux/linuxthreads/td_thr_dbsuspend.c: Ditto.
3327         * libc/sys/linux/linuxthreads/td_thr_event_enable.c: Ditto.
3328         * libc/sys/linux/linuxthreads/td_thr_event_getmsg.c: Ditto.
3329         * libc/sys/linux/linuxthreads/td_thr_get_info.c: Ditto.
3330         * libc/sys/linux/linuxthreads/td_thr_getfpregs.c: Ditto.
3331         * libc/sys/linux/linuxthreads/td_thr_getgregs.c: Ditto.
3332         * libc/sys/linux/linuxthreads/td_thr_getxregs.c: Ditto.
3333         * libc/sys/linux/linuxthreads/td_thr_getxregsize.c: Ditto.
3334         * libc/sys/linux/linuxthreads/td_thr_set_event.c: Ditto.
3335         * libc/sys/linux/linuxthreads/td_thr_setfpregs.c: Ditto.
3336         * libc/sys/linux/linuxthreads/td_thr_setgregs.c: Ditto.
3337         * libc/sys/linux/linuxthreads/td_thr_setprio.c: Ditto.
3338         * libc/sys/linux/linuxthreads/td_thr_setsigpending.c: Ditto.
3339         * libc/sys/linux/linuxthreads/td_thr_setxregs.c: Ditto.
3340         * libc/sys/linux/linuxthreads/td_thr_sigsetmask.c: Ditto.
3341         * libc/sys/linux/linuxthreads/td_thr_tsd.c: Ditto.
3342         * libc/sys/linux/linuxthreads/td_thr_validate.c: Ditto.
3343
3344 2003-11-05  Jeff Johnston  <jjohnstn@redhat.com>
3345             Artem B. Bityuckiy  <abitytsky@softminecorp.com>
3346
3347         * libc/stdio/vfprintf.c (_VFPRINTF_R): Add support for
3348         %ls, %S, %lc, and %C format specifiers.
3349         (get_arg): Ditto.
3350         * libc/stdio/sprintf.c: Add documentation regarding new
3351         format specifiers added in vfprintf.c.
3352
3353 2003-11-05  Jeff Johnston  <jjohnstn@redhat.com>
3354
3355         * libc/stdlib/wcsrtombs.c (_wcsrtombs_r): Numerous fixes
3356         to make code work as specified in standard.
3357
3358 2003-10-23  Jeff Johnston  <jjohnstn@redhat.com>
3359
3360         * configure.in: Use absolute newlib basedir when forming
3361         CC_FOR_NEWLIB include options.
3362         * configure: Regenerated.
3363
3364 2003-10-23  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
3365
3366         * libc/string/wcsnlen.c: New file.
3367         * libc/include/wchar.h: Add wcsnlen prototype.
3368         * libc/string/Makefile.am: Add wcsnlen support.
3369         * libc/string/Makefile.in: Regenerated.
3370         * libc/string/wcstrings.tex: Add wcsnlen documentation.
3371
3372 2003-10-22  Richard Sandiford  <rsandifo@redhat.com>
3373
3374         * libc/stdlib/exit.c (exit): Handle null _GLOBAL_REENT->_atexits.
3375
3376 2003-10-20  Bob Wilson  <bob.wilson@acm.org>
3377
3378         * libc/locale/locale.c: Use double quotes in code.
3379         * libc/locale/locale.tex: Likewise.
3380         * libc/libc.texinfo: Hyphenate "floating-point".
3381         * libc/machine/necv70/necv70.tex: Likewise.
3382         * libc/stdio/sprintf.c: Likewise.
3383         * libc/stdio/sscanf.c: Likewise.
3384         * libc/stdlib/atof.c: Likewise.
3385         * libc/stdlib/ldtoa.c: Fix comment typo.
3386         * libc/stdlib/div.c: Use @ifnottex instead of @ifinfo.
3387         * libc/stdlib/ldiv.c: Likewise.
3388         * libm/common/s_expm1.c: Likewise.
3389         * libm/common/s_ilogb.c: Hyphenate "floating-point".  Use "nonzero".
3390         * libm/common/s_infinity: Hyphenate "double- and single-precision".
3391         * libm/common/s_nan.c: Likewise.  Also correct the FUNCTION summary.
3392         * libm/common/s_nextafter.c: Fix typo.  Hyphenate "double-precision"
3393         and "floating-point".
3394         * libm/common/s_scalbn.c: Correct the FUNCTION summary.
3395         * libm/math/e_pow.c: Fix comment typo.
3396         * libm/math/math.tex: Hyphenate "single-precision" and "floating-point".
3397         * libm/math/s_asinh.c: Use @ifnottex instead of @ifinfo.
3398         * libm/math/s_atan.c: Likewise.
3399         * libm/math/s_frexp.c: Likewise.  Also use "nonzero".
3400         * libm/math/s_isnan.c: Hyphenate "single-precision" and
3401         "floating-point".  Use "nonzero".
3402         * libm/math/s_ldexp.c: Use @ifnottex instead of @ifinfo.
3403         * libm/math/w_acos.c: Likewise.
3404         * libm/math/w_acosh.c: Likewise.
3405         * libm/math/w_asin.c: Likewise.
3406         * libm/math/w_atan2.c: Likewise.
3407         * libm/math/w_atanh.c: Likewise.
3408         * libm/math/w_cosh.c: Likewise.
3409         * libm/math/w_exp.c: Likewise.
3410         * libm/math/w_exp2.c: Likewise.  Add missing @end and missing @tex
3411         version of 2^x in the description.
3412         * libm/math/w_fmod.c: Use @ifnottex instead of @ifinfo.
3413         * libm/math/w_gamma.c: Likewise.
3414         * libm/math/w_hypot.c: Likewise.
3415         * libm/math/w_j0.c: Likewise.
3416         * libm/math/w_sinh.c: Likewise.
3417         * libm/math/w_pow.c: Replace "exp1.0nt" with "exponent".
3418         * libm/mathfp/mathfp.tex: Hyphenate "single-precision" and
3419         "floating-point".
3420         * libm/mathfp/e_acosh.c: Use @ifnottex instead of @ifinfo.
3421         * libm/mathfp/e_atanh.c: Likewise.
3422         * libm/mathfp/e_hypot.c: Likewise.
3423         * libm/mathfp/er_lgamma.c: Likewise.
3424         * libm/mathfp/s_acos.c: Likewise.
3425         * libm/mathfp/s_asine.c: Likewise.
3426         * libm/mathfp/s_asinh.c: Likewise.
3427         * libm/mathfp/s_atan.c: Likewise.
3428         * libm/mathfp/s_atan2.c: Likewise.
3429         * libm/mathfp/s_atangent.c: Likewise.
3430         * libm/mathfp/s_cosh.c: Likewise.
3431         * libm/mathfp/s_exp.c: Likewise.
3432         * libm/mathfp/s_fmod.c: Likewise.
3433         * libm/mathfp/s_frexp.c: Likewise.  Also use "nonzero".
3434         * libm/mathfp/s_isnan.c: Hyphenate "single-precision" and
3435         "floating-point".  Use "nonzero".
3436         * libm/math/s_pow.c: Replace "exp1.0nt" with "exponent".
3437         * libm/mathfp/s_ldexp.c: Use @ifnottex instead of @ifinfo.
3438         * libm/mathfp/s_sineh.c: Likewise.
3439         * libm/mathfp/w_jn.c: Likewise.
3440
3441 2003-10-15  Alexandre Oliva  <aoliva@redhat.com>
3442
3443         * Makefile.am: Add $(MAKE) comments to multido and multiclean
3444         lines, to enable parallel make.
3445         * Makefile.in: Rebuilt.
3446
3447 2003-10-14  Christopher Faylor  <cgf@redhat.com>
3448
3449         * libc/time/clock.c: Clarify documentation of return value when no
3450         measurement is available.
3451
3452 2003-09-29  Ian Lance Taylor  <ian@wasabisystems.com>
3453
3454         * libm/configure.in: Check libm_machine_dir, not machine_dir.
3455         * libm/configure: Regenerate.
3456         * libm/Makefile.in: Ditto.
3457
3458 2003-09-29  J"orn Rennecke <joern.rennecke@superh.com>
3459
3460         * libc/machine/sh/strncpy.S: New file.
3461         * libc/machine/sh/Makefile.am: Add entry & rule for new file.
3462         * libc/machine/sh/Makefile.in: Regenerate.
3463
3464 2003-09-11  James E Wilson  <wilson@specifixinc.com>
3465
3466         * MAINTAINERS: Update my e-mail address.
3467
3468 2003-09-10  Corinna Vinschen  <corinna@vinschen.de>
3469
3470         * libc/include/sys/unistd.h: Declare function daemon for Cygwin.
3471
3472 2003-09-09  Jeff Johnston  <jjohnstn@redhat.com>
3473
3474         * libc/machine/powerpc/fix64.h: Fix typo for _simdldcheck
3475         prototype.
3476         * libc/machine/powerpc/simdldtoa.c: Remove prototype for
3477         _simdldcheck().  Also add unsigned cast for index variable in
3478         for loop using sizeof operators.
3479         * libc/machine/powerpc/strtoufix32.c: Remove unused variable.
3480         * libc/machine/powerpc/strtosfix64.c: Fix call to _simdldcheck.
3481         * libc/machine/powerpc/strtoufix64.c (_strtoufix64_r): Ditto
3482         plus fix shift calculation for determining if there is a
3483         carry from word2.
3484
3485 2003-09-09  Corinna Vinschen  <corinna@vinschen.de>
3486
3487         * libc/include/grp.h: Don't define setgrfile, group_from_gid and
3488         setgroupent for Cygwin.
3489
3490 2003-09-05  Jeff Johnston  <jjohnstn@redhat.com>
3491
3492         * libc/stdlib/exit.c (exit): Setting of struct _atexit ptr p
3493         is different for _REENT_SMALL than when using regular reent
3494         struct.
3495
3496 2003-09-05  Ben Elliston  <bje@wasabisystems.com>
3497
3498         * libc/ctype/wctype.c (_DEFUN): Remove empty default case, as
3499         modern versions of GCC issue a warning.
3500
3501         * libc/machine/xscale/memcmp.c (memcmp): Strip trailing whitespace
3502         after continuation characters that induces a warning from modern
3503         versions of GCC.
3504
3505 2003-09-04  Ben Elliston  <bje@wasabisystems.com>
3506
3507         * libc/stdlib/mstats.c[_ELIX_LEVEL]: Fix guards.  #ifndef FOO ||
3508         FOO >= 2 is invalid; use #if !defined (FOO) || FOO >= 2 instead.
3509
3510 2003-09-02  Thomas Pfaff  <tpfaff@gmx.net>
3511
3512         * libc/stdlib/atexit.c: Rename _REENT to _GLOBAL_REENT throughout.
3513         * libc/stdlib/exit.c : Ditto.
3514         * libc/stdlib/on_exit.c: Ditto.
3515
3516 2003-08-27  Corinna Vinschen  <corinna@vinschen.de>
3517
3518         * libc/include/reent.h: Define stat64 as __stat64 when
3519         compiling newlib for Cygwin.
3520
3521 2003-08-26  Jeff Johnston  <jjohnstn@redhat.com>
3522
3523         * libc/include/sys/stat.h[__CYGWIN__]: Only define stat64 as
3524         __stat64 when compiling newlib.
3525
3526 2003-08-26  Jeff Johnston  <jjohnstn@redhat.com>
3527
3528         * libc/include/stdio.h: Allow the io64 function prototypes for
3529         Cygwin when compiling newlib.
3530         * libc/include/sys/stat.h[__CYGWIN__]: Define stat64 as __stat64
3531         to expose the Cygwin struct __stat64 type.
3532         * libc/stdio64/fseeko64.c: Use _fstat64_r and pass a struct stat64
3533         pointer.
3534         * libc/stdio64/tmpfile64.c(_tmpfile64_r): Call _fopen64_r.
3535
3536 2003-08-23  Christopher Faylor  <cgf@redhat.com>
3537
3538         * libc/stdio64/fseeko64.c (fseeko64_r): Rename second fseeko64_r
3539         definition to fseeko64.
3540
3541 2003-08-22  Jeff Johnston  <jjohnstn@redhat.com>
3542
3543         * libc/include/sys/reent.h: Add _GLOBAL_REENT macro.
3544         * libc/stdio: Globally remove/replace all references to fp->_data.
3545         Replace with _REENT or _GLOBAL_REENT where appropriate.
3546         * libc/stdio/asprintf.c: Ditto.
3547         * libc/stdio/fclose.c: Ditto.
3548         * libc/stdio/fvwrite.c: Ditto.
3549         * libc/stdio/makebuf.c: Ditto.
3550         * libc/stdio/refill.c: Ditto.
3551         * libc/stdio/local.h: Ditto.
3552         * libc/stdio/setvbuf.c: Ditto.
3553         * libc/stdio/sscanf.c: Ditto.
3554         * libc/stdio/stdio.c: Ditto.
3555         * libc/stdio/ungetc.c: Ditto.
3556         * libc/stdio/vfscanf.c: Ditto.
3557         * libc/stdio/vsscanf.c: Ditto.
3558         * libc/stdio/fopen.c: Ditto.  Also use _fseek_r in _fopen_r.
3559         * libc/stdio/vasprintf.c: Ditto.  Also call _vfprintf_r directly.
3560         * libc/stdio/vsnprintf.c: Ditto.
3561         * libc/stdio/vsprintf.c: Ditto.
3562         * libc/stdio/fcloseall.c(fcloseall): Use _GLOBAL_REENT macro
3563         instead of _REENT to walk file list.
3564         * libc/stdio/fflush.c: Ditto.
3565         * libc/stdio/fgetpos.c: Add reentrant version and have regular
3566         version call reentrant version with _REENT argument.
3567         * libc/stdio/fsetpos.c: Ditto.
3568         * libc/stdio/fseek.c: Ditto.
3569         * libc/stdio/fseeko.c: Ditto.
3570         * libc/stdio/ftell.c: Ditto.
3571         * libc/stdio/ftello.c: Ditto.
3572         * libc/stdio/freopen.c: Ditto.
3573         * libc/stdio/findfp.c: Use _GLOBAL_REENT pointer when adding
3574         new files to chain.  Also use _GLOBAL_REENT pointer for
3575         cleaning up.
3576         * libc/stdio/fiprintf.c: Reformatted to minimize duplicate code.
3577         * libc/stdio/siprintf.c: Ditto.
3578         * libc/stdio/iprintf.c: Ditto.
3579         * libc/stdio/fprintf.c: Ditto.
3580         * libc/stdio/printf.c: Ditto.
3581         * libc/stdio/snprintf.c: Call _vfprintf_r directly.
3582         * libc/stdio/sprintf.c: Ditto.
3583         * libc/stdio/vprintf.c: Ditto.  Also add _REENT_ONLY check.
3584         * libc/stdio/rewind.c: Call _fseek_r directly.
3585         * libc/stdio/tmpfile.c: Call _fopen_r and _remove_r directly.
3586         * libc/stdio/vfprintf.c (_VFPRINTF_R): Change _r routines to use
3587         data pointer.
3588         (get_arg): Add extra struct _reent pointer argument.
3589         * libc/stdio64/fgetpos64.c: Add _r versions, remove any reference
3590         to fp->_data.
3591         * libc/stdio64/fopen64.c: Ditto.
3592         * libc/stdio64/freopen64.c: Ditto.
3593         * libc/stdio64/fsetpos64.c: Ditto.
3594         * libc/stdio64/ftello64.c: Ditto.
3595         * libc/stdio64/local64.h: Ditto.
3596         * libc/stdio64/stdio64.c: Ditto.
3597         * libc/stdio64/fseeko64.c: Ditto plus use _fstat_r instead of
3598         _fstat64_r for the meantime.
3599
3600 2003-08-19  Jeff Johnston  <jjohnstn@redhat.com>
3601
3602         * libc/stdlib/mallocr.c (mALLOc, rEALLOc, mEMEALIGn): Enhance
3603         overflow detection.
3604         
3605 2003-08-13  Aldy Hernandez  <aldyh@redhat.com>
3606         
3607         * libc/machine/powerpc/machine/stdlib.h: Wrap SPE functions in
3608         extern "C".
3609
3610 2003-08-13  Jeff Johnston  <jjohnstn@redhat.com>
3611
3612         * libc/include/math.h: Add prototypes for __signbitf and
3613         __signbitd.
3614
3615 2003-07-31  Jeff Johnston  <jjohnstn@redhat.com>
3616
3617         * libc/ctype/iswalpha.c: Fix calls to __jp2uc to pass the
3618         correct type of conversion when dealing with EUCJP or SJIS.
3619         * libc/ctype/iswblank.c: Ditto.
3620         * libc/ctype/iswcntrl.c: Ditto.
3621         * libc/ctype/iswprint.c: Ditto.
3622         * libc/ctype/iswpunct.c: Ditto.
3623         * libc/ctype/iswspace.c: Ditto.
3624         * libc/ctype/towlower.c: Ditto.
3625         * libc/ctype/towupper.c: Ditto.
3626
3627 2003-07-31  Nick Clifton  <nickc@redhat.com>
3628
3629         * libc/sys/sysnecv850/crt0.S (_start): Allocate 4 slots on stack
3630         before calling main, in case it saves its argument registers.
3631         Remove reference to deleted v850ea port.
3632         * configure.host: Remove reference to deleted v850ea port.
3633         Do not use -mv850 when building for v850e target.  This
3634         prevents the ctbp system register from being initialised.
3635
3636 2003-07-29  Honda Hiroki  <hhonda@ipflex.com>
3637
3638         * libc/stdio/vfprintf.c: Set output size to 1 when
3639         we have %f format with precision 0 and # flag not specified.
3640
3641 2003-07-29  Alexandre Oliva  <aoliva@redhat.com>
3642
3643         * libc/machine/mn10300/setjmp.S: Never emit both .am33 and
3644         .am33_2.
3645
3646 2003-07-25  Christopher Faylor  <cgf@redhat.com>
3647
3648         * libc/stdio64/fdopen64.c: Include sys/lock.h.
3649
3650 2003-07-25  Christopher Faylor  <cgf@redhat.com>
3651
3652         * configure.host: Find cygwin include directory, when appropriate.
3653
3654 2003-07-24  Christopher Faylor  <cgf@redhat.com>
3655
3656         * libc/stdio64/fdopen64.c: New file.
3657         * libc/stdio64/Makefile.am (LIB_OBJS): Add fdopen64.o
3658         * libc/stdio64/Makefile.in: Regenerate.
3659         * libc/include/stdio.h (fdopen64): Define.
3660         * libc/include/stdio.h (_fdopen64_r): Ditto.
3661
3662 2003-07-10  Alexandre Oliva  <aoliva@redhat.com>
3663
3664         2000-04-27  Alexandre Oliva  <aoliva@cygnus.com>
3665         * libc/include/machine/setjmp.h (_JBLEN, AM33/2.0): Set to 26.
3666         * libc/machine/mn10300/setjmp.S (setjmp, longjmp): Save and
3667         restore callee-saved FP registers.
3668
3669 2003-07-10  J"orn Rennecke <joern.rennecke@superh.com>
3670
3671         * libc/include/sys/unistd.h (ftruncate, truncate): Also declare
3672         for __sh__.
3673         * libc/sys/sh/Makefile.am (lib_a_SOURCES): Add ftruncate.c and
3674         truncate.c.
3675         * libc/sys/sh/Makefile.in: Regenerate.
3676         * libc/sys/sh/sys/syscall.h: (SYS_truncate, SYS_ftruncate): Define.
3677         * libc/sys/sh/ftruncate.c: New file.
3678         * libc/sys/sh/truncate.c: Likewise.
3679
3680 2003-07-09  Alexandre Oliva  <aoliva@redhat.com>
3681
3682         * libc/include/math.h (nan, nanf): Update prototype to C99.
3683         * libm/common/s_nan.c (nan): Likewise.
3684         * libm/common/s_nanf.c (nanf, nan): Likewise.
3685         * libc/sys/linux/cmath/math_private.h (nan, nanf): Likewise.
3686
3687 2003-07-07  Jeff Johnston  <jjohnstn@redhat.com>
3688
3689         * libc/include/stdbool.h: Removed as this is defined by gcc.
3690
3691 2003-07-03  Shaun Jackman  <sjackman@pathwayconnect.com>
3692
3693         * libc/include/stdbool.h: New header file defined by C99.
3694
3695 2003-07-02  Jeff Johnston  <jjohnstn@redhat.com>
3696
3697         * libc/include/sys/types.h (int8_t): Make signed.
3698
3699 2003-07-02  Jeff Johnston  <jjohnstn@redhat.com>
3700
3701         * libc/sys/linux/include/mqueue.h: Add include of <sys/fcntl.h>.
3702
3703 2003-06-27  Jose Goncalves  <jose.goncalves@inov.pt>
3704
3705         * libc/sys/linux/mq_open.c (mq_open): Only set created flag
3706         on if we actually created the shared memory file exclusively.
3707
3708 2003-06-27  Joe Vornehm  <joev@mitre.org>
3709
3710         * libm/common/s_fpclassify.c (__fpclassifyf): Fix
3711         comparisons to account for unsigned internal value w.
3712
3713 2003-06-26  Jeff Johnston  <jjohnstn@redhat.com>
3714
3715         * libc/sys/linux/mq_open.c (mq_open): Must allocate rdbuf and
3716         wrbuf for a non-creating open.
3717
3718 2003-06-24  Kazu Hirata  <kazu@cs.umass.edu>
3719
3720         * libc/machine/h8300/setarch.h: New.
3721         * libc/machine/h8300/memcpy.S: Use it.
3722         * libc/machine/h8300/memset.S: Likewise.
3723         * libc/machine/h8300/reg_memcpy.S: Likewise.
3724         * libc/machine/h8300/reg_memset.S: Likewise.
3725         * libc/machine/h8300/setjmp.S: Likewise.
3726         * libc/machine/h8300/strcmp.S: Likewise.
3727
3728 2003-06-24  Richard Sandiford  <rsandifo@redhat.com>
3729
3730         * libc/sys/h8300hms/crt0.S (_start): Fix register sizes in call
3731         to atexit().
3732
3733 2003-06-20  Jeff Johnston  <jjohnstn@redhat.com>
3734
3735         * configure.host (iq2000): Add tabs.
3736
3737 2003-06-20  Jeff Johnston  <jjohnstn@redhat.com>
3738
3739         * libc/include/sys/reent.h (_REENT_INIT_PTR): Fix macros
3740         to handle latest on_exit change.
3741         * libc/sys/linux/Makefile.am: Remove special compilation
3742         for malloc.c and mcheck.c.
3743         * libc/sys/linux/Makefile.in: Regenerated.
3744         * libc/sys/linux/mntent.c: Add definition of _LIBC flag
3745         after including <features.h>.
3746         * libc/sys/linux/mcheck.c: Ditto.
3747         * libc/sys/linux/malloc.c: Ditto plus define _GNU_SOURCE
3748         for <features.h>.
3749         * libc/sys/linux/intl/Makefile.am: Remove -D_LIBC and
3750         add -DNOT_IN_libc to C flags.
3751         * libc/sys/linux/intl/Makefile.in: Regenerated.
3752         * libc/sys/linux/intl/config.h: Add definition of _LIBC.
3753         * libc/sys/linux/linuxthreads/semaphore.h: Include
3754         <bits/pthreadtypes.h>.
3755         * libc/sys/linux/sys/dirent.h: Define _LIBC and NOT_IN_libc after
3756         including <features.h>.
3757         * libc/sys/linux/sys/lock.h: Ditto.
3758
3759 2003-06-11  Nick Clifton  <nickc@redhat.com>
3760
3761         * libc/reent/reent.c (reclaim_reent): Fix typo in code to free
3762         _on_exit_args_ptr.
3763
3764 2003-06-10  Stan Cox  <scox@redhat.com>
3765             Anthony Green  <green@redhat.com>
3766         
3767         * configure.host: Add iq2000 support.
3768         * newlib/libc/include/machine/ieeefp.h: Ditto.
3769         * newlib/libc/include/machine/setjmp.h: Ditto.
3770         * libc/machine/iq2000, libc/machine/iq2000/setjmp.S,
3771         libc/machine/iq2000/aclocal.m4, libc/machine/iq2000/configure,
3772         libc/machine/iq2000/configure.in, libc/machine/iq2000/Makefile.am,
3773         libc/machine/iq2000/Makefile.in: New files.
3774
3775 2003-06-10  Richard Sandiford  <rsandifo@redhat.com>
3776
3777         * libc/sys/h8300hms/setarch.h: New file.
3778         * libc/sys/h8300hms/close.S, libc/sys/h8300hms/fstat.S,
3779         libc/sys/h8300hms/lseek.S, libc/sys/h8300hms/open.S,
3780         libc/sys/h8300hms/read.S, libc/sys/h8300hms/stat.S,
3781         libc/sys/h8300hms/write.S, libc/sys/h8300hms/crt0.S: Use it.
3782
3783 2003-06-06  Jeff Johnston  <jjohnstn@redhat.com>
3784
3785         * libc/argz/argz_add.c: Change to use _DEFUN macro for function
3786         definition.
3787         * libc/argz/argz_add_sep.c: Ditto.
3788         * libc/argz/argz_append.c libc/argz/argz_count.c: Ditto.
3789         * libc/argz/argz_create.c libc/argz/argz_create_sep.c: Ditto.
3790         * libc/argz/argz_delete.c libc/argz/argz_extract.c: Ditto.
3791         * libc/argz/argz_insert.c libc/argz/argz_next.c: Ditto.
3792         * libc/argz/argz_replace.c libc/argz/argz_stringify.c: Ditto.
3793         * libc/argz/envz_add.c libc/argz/envz_entry.c: Ditto.
3794         * libc/argz/envz_get.c libc/argz/envz_merge.c: Ditto.
3795         * libc/argz/envz_remove.c libc/argz/envz_strip.c: Ditto.
3796         * libc/locale/nl_langinfo.c libc/misc/ffs.c: Ditto.
3797         * libc/posix/closedir.c libc/posix/creat.c: Ditto.
3798         * libc/posix/execl.c libc/posix/execle.c: Ditto.
3799         * libc/posix/execlp.c libc/posix/execve.c: Ditto.
3800         * libc/posix/isatty.c libc/posix/opendir.c: Ditto.
3801         * libc/posix/popen.c libc/posix/readdir.c: Ditto.
3802         * libc/posix/readdir_r.c libc/posix/rewinddir.c: Ditto.
3803         * libc/posix/scandir.c libc/posix/seekdir.c: Ditto.
3804         * libc/posix/telldir.c libc/search/hcreate.c: Ditto.
3805         * libc/search/tdelete.c libc/search/tdestroy.c: Ditto.
3806         * libc/search/tfind.c libc/search/tsearch.c: Ditto.
3807         * libc/search/twalk.c libc/signal/signal.c: Ditto.
3808
3809 2003-06-05  Nick Clifton  <nickc@redhat.com>
3810         
3811         * libc/include/sys/reent.h (struct _on_exit_args): New
3812         structure containing fields used by the on_exit() function.
3813         (struct _atexit): Include struct _on_exit_args.  For
3814         _REENT_SMALL do his via a pointer that is initialised when
3815         needed.
3816         * libc/reent/reent.c (_reclaim_reent): Free the _on_exit_args
3817         structure, if one has been allocated.
3818         * libc/stdlib/atexit.c (atexit): Update indirection to
3819         _fntypes field.
3820         * libc/stdlib/on_exit.c (on_exit): Indirect via the
3821         _on_exit_args structure.  For _REENT_SMALL, allocate a
3822         structure if one does not exist.
3823         * libc/stdlib/exit.c (exit): Indirect via the _on_exit_args
3824         structure.
3825
3826 2003-06-04  Jeff Johnston  <jjohnstn@redhat.com>
3827
3828         * libc/sys/linux/net/Makefile.am: Remove extraneous markers.
3829         * libc/sys/linux/net/Makefile.in: Regenerated.
3830
3831 2003-06-03  Jeff Johnston  <jjohnstn@redhat.com>
3832
3833         * libc/reent/execr.c: Use _DEFUN macro for function declaration.
3834         * libc/reent/fcntlr.c: Ditto.
3835         * libc/reent/fstat64r.c: Ditto.
3836         * libc/reent/linkr.c: Ditto.
3837         * libc/reent/lseek64r.c: Ditto.
3838         * libc/reent/lseekr.c: Ditto.
3839         * libc/reent/openr.c: Ditto.
3840         * libc/reent/readr.c: Ditto.
3841         * libc/reent/reent.c: Ditto.
3842         * libc/reent/sbrkr.c: Ditto.
3843         * libc/reent/signalr.c: Ditto.
3844         * libc/reent/signgam.c: Ditto.
3845         * libc/reent/statr.c: Ditto.
3846         * libc/reent/timer.c: Ditto.
3847         * libc/reent/unlinkr.c: Ditto.
3848         * libc/reent/writer.c: Ditto.
3849         * libc/syscalls/sysclose.c: Ditto.
3850         * libc/syscalls/sysexecve.c: Ditto.
3851         * libc/syscalls/sysfcntl.c: Ditto.
3852         * libc/syscalls/sysfork.c: Ditto.
3853         * libc/syscalls/sysfstat.c: Ditto.
3854         * libc/syscalls/sysgetpid.c: Ditto.
3855         * libc/syscalls/sysgettod.c: Ditto.
3856         * libc/syscalls/syskill.c: Ditto.
3857         * libc/syscalls/syslink.c: Ditto.
3858         * libc/syscalls/syslseek.c: Ditto.
3859         * libc/syscalls/sysopen.c: Ditto.
3860         * libc/syscalls/sysread.c: Ditto.
3861         * libc/syscalls/syssbrk.c: Ditto.
3862         * libc/syscalls/sysstat.c: Ditto.
3863         * libc/syscalls/systimes.c: Ditto.
3864         * libc/syscalls/sysunlink.c: Ditto.
3865         * libc/syscalls/syswait.c: Ditto.
3866         * libc/syscalls/syswrite.c: Ditto.
3867
3868 2003-06-03  Till Straumann  <strauman@SLAC.Stanford.EDU>
3869
3870         * libc/time/tzset_r.c: Change local variables that are
3871         set via sscanf using the %h format specifier to be unsigned short
3872         instead of int.
3873
3874 2003-05-30  Kelley Cook  <kelleycook@wideopenwest.com>
3875
3876         * configure.host:  Allow i[34567]86 variant.
3877         * configure.in: Likewise.
3878         * README: Likewise to the docs.
3879         * configure: Regenerated.
3880         * Makefile.in: Ditto.
3881
3882 2003-05-28  Jeff Johnston  <jjohnstn@redhat.com>
3883             Tom Fitzsimmons  <fitzsim@redhat.com>
3884
3885         * configure.in: Add iconvdata support for x86 linux.
3886         * configure: Regenerated.
3887         * libc/sys/linux/Makefile.am: Add EL/IX level 3 network, dynamic 
3888         library, iconv, and linuxthreads support.
3889         * libc/sys/linux/configure.in: Ditto.
3890         * libc/sys/linux/Makefile.in: Regenerated.
3891         * libc/sys/linux/configure: Ditto.
3892         * iconvdata/EUC-JP.irreversible: New file.
3893         * iconvdata/Makefile.am: Ditto.
3894         * iconvdata/Makefile.in: Ditto.
3895         * iconvdata/SJIS.irreversible: Ditto.
3896         * iconvdata/aclocal.m4: Ditto.
3897         * iconvdata/configure: Ditto.
3898         * iconvdata/configure.in: Ditto.
3899         * iconvdata/dummy.c: Ditto.
3900         * iconvdata/euc-jp.c: Ditto.
3901         * iconvdata/gconv-modules: Ditto.
3902         * iconvdata/jis0201.c: Ditto.
3903         * iconvdata/jis0201.h: Ditto.
3904         * iconvdata/jis0208.c: Ditto.
3905         * iconvdata/jis0208.h: Ditto.
3906         * iconvdata/jis0212.c: Ditto.
3907         * iconvdata/jis0212.h: Ditto.
3908         * iconvdata/sjis.c: Ditto.
3909         * libc/include/errno.h: Protect definition of error_t.
3910         * libc/sys/linux/gethostid.c: New file.
3911         * libc/sys/linux/sethostid.c: Ditto.
3912         * libc/sys/linux/dl/Makefile.am: Ditto.
3913         * libc/sys/linux/dl/Makefile.in: Ditto.
3914         * libc/sys/linux/dl/abi-tag.h: Ditto.
3915         * libc/sys/linux/dl/atomicity.h: Ditto.
3916         * libc/sys/linux/dl/dl-addr.c: Ditto.
3917         * libc/sys/linux/dl/dl-cache.c: Ditto.
3918         * libc/sys/linux/dl/dl-cache.h: Ditto.
3919         * libc/sys/linux/dl/dl-close.c: Ditto.
3920         * libc/sys/linux/dl/dl-debug.c: Ditto.
3921         * libc/sys/linux/dl/dl-deps.c: Ditto.
3922         * libc/sys/linux/dl/dl-dst.h: Ditto.
3923         * libc/sys/linux/dl/dl-error.c: Ditto.
3924         * libc/sys/linux/dl/dl-fini.c: Ditto.
3925         * libc/sys/linux/dl/dl-init.c: Ditto.
3926         * libc/sys/linux/dl/dl-iteratephdr.c: Ditto.
3927         * libc/sys/linux/dl/dl-libc.c: Ditto.
3928         * libc/sys/linux/dl/dl-librecon.h: Ditto.
3929         * libc/sys/linux/dl/dl-load.c: Ditto.
3930         * libc/sys/linux/dl/dl-lookup.c: Ditto.
3931         * libc/sys/linux/dl/dl-lookupcfg.h: Ditto.
3932         * libc/sys/linux/dl/dl-minimal.c: Ditto.
3933         * libc/sys/linux/dl/dl-misc.c: Ditto.
3934         * libc/sys/linux/dl/dl-object.c: Ditto.
3935         * libc/sys/linux/dl/dl-open.c: Ditto.
3936         * libc/sys/linux/dl/dl-osinfo.h: Ditto.
3937         * libc/sys/linux/dl/dl-profile.c: Ditto.
3938         * libc/sys/linux/dl/dl-profstub.c: Ditto.
3939         * libc/sys/linux/dl/dl-reloc.c: Ditto.
3940         * libc/sys/linux/dl/dl-runtime.c: Ditto.
3941         * libc/sys/linux/dl/dl-support.c: Ditto.
3942         * libc/sys/linux/dl/dl-sym.c: Ditto.
3943         * libc/sys/linux/dl/dl-version.c: Ditto.
3944         * libc/sys/linux/dl/dlfcn.h: Ditto.
3945         * libc/sys/linux/dl/do-lookup.h: Ditto.
3946         * libc/sys/linux/dl/do-rel.h: Ditto.
3947         * libc/sys/linux/dl/dynamic-link.h: Ditto.
3948         * libc/sys/linux/dl/kernel-features.h: Ditto.
3949         * libc/sys/linux/dl/ldsodefs.h: Ditto.
3950         * libc/sys/linux/dl/libintl.h: Ditto.
3951         * libc/sys/linux/dl/trusted-dirs.h: Ditto.
3952         * libc/sys/linux/dl/unsecvars.h: Ditto.
3953         * libc/sys/linux/iconv/Makefile.am: Ditto.
3954         * libc/sys/linux/iconv/Makefile.in: Ditto.
3955         * libc/sys/linux/iconv/categories.def: Ditto.
3956         * libc/sys/linux/iconv/dummy-repertoire.c: Ditto.
3957         * libc/sys/linux/iconv/gconv.c: Ditto.
3958         * libc/sys/linux/iconv/gconv_builtin.c: Ditto.
3959         * libc/sys/linux/iconv/gconv_builtin.h: Ditto.
3960         * libc/sys/linux/iconv/gconv_cache.c: Ditto.
3961         * libc/sys/linux/iconv/gconv_charset.h: Ditto.
3962         * libc/sys/linux/iconv/gconv_close.c: Ditto.
3963         * libc/sys/linux/iconv/gconv_conf.c: Ditto.
3964         * libc/sys/linux/iconv/gconv_db.c: Ditto.
3965         * libc/sys/linux/iconv/gconv_dl.c: Ditto.
3966         * libc/sys/linux/iconv/gconv_int.h: Ditto.
3967         * libc/sys/linux/iconv/gconv_open.c: Ditto.
3968         * libc/sys/linux/iconv/gconv_simple.c: Ditto.
3969         * libc/sys/linux/iconv/gconv_trans.c: Ditto.
3970         * libc/sys/linux/iconv/hash-string.h: Ditto.
3971         * libc/sys/linux/iconv/iconv.c: Ditto.
3972         * libc/sys/linux/iconv/iconv.h: Ditto.
3973         * libc/sys/linux/iconv/iconv_charmap.c: Ditto.
3974         * libc/sys/linux/iconv/iconv_close.c: Ditto.
3975         * libc/sys/linux/iconv/iconv_open.c: Ditto.
3976         * libc/sys/linux/iconv/iconvconfig.c: Ditto.
3977         * libc/sys/linux/iconv/iconvconfig.h: Ditto.
3978         * libc/sys/linux/iconv/loadinfo.h: Ditto.
3979         * libc/sys/linux/iconv/localeinfo.h: Ditto.
3980         * libc/sys/linux/iconv/loop.c: Ditto.
3981         * libc/sys/linux/iconv/skeleton.c: Ditto.
3982         * libc/sys/linux/iconv/strtab.c: Ditto.
3983         * libc/sys/linux/include/dl-hash.h: Ditto.
3984         * libc/sys/linux/include/dlfcn.h: Ditto.
3985         * libc/sys/linux/include/fnmatch.h: Ditto.
3986         * libc/sys/linux/include/gconv.h: Ditto.
3987         * libc/sys/linux/include/glob.h: Ditto.
3988         * libc/sys/linux/include/hesiod.h: Ditto.
3989         * libc/sys/linux/include/ifaddrs.h: Ditto.
3990         * libc/sys/linux/include/libc_private.h: Ditto.
3991         * libc/sys/linux/include/link.h: Ditto.
3992         * libc/sys/linux/include/namespace.h: Ditto.
3993         * libc/sys/linux/include/netconfig.h: Ditto.
3994         * libc/sys/linux/include/netdb.h: Ditto.
3995         * libc/sys/linux/include/nsswitch.h: Ditto.
3996         * libc/sys/linux/include/regex.h: Ditto.
3997         * libc/sys/linux/include/resolv.h: Ditto.
3998         * libc/sys/linux/include/rune.h: Ditto.
3999         * libc/sys/linux/include/runetype.h: Ditto.
4000         * libc/sys/linux/include/semaphore.h: Ditto.
4001         * libc/sys/linux/include/setlocale.h: Ditto.
4002         * libc/sys/linux/include/un-namespace.h: Ditto.
4003         * libc/sys/linux/include/wordexp.h: Ditto.
4004         * libc/sys/linux/include/arpa/ftp.h: Ditto.
4005         * libc/sys/linux/include/arpa/inet.h: Ditto.
4006         * libc/sys/linux/include/arpa/nameser.h: Ditto.
4007         * libc/sys/linux/include/arpa/nameser_compat.h: Ditto.
4008         * libc/sys/linux/include/arpa/telnet.h: Ditto.
4009         * libc/sys/linux/include/arpa/tftp.h: Ditto.
4010         * libc/sys/linux/include/net/bpf.h: Ditto.
4011         * libc/sys/linux/include/net/bpf_compat.h: Ditto.
4012         * libc/sys/linux/include/net/bpfdesc.h: Ditto.
4013         * libc/sys/linux/include/net/bridge.h: Ditto.
4014         * libc/sys/linux/include/net/ethernet.h: Ditto.
4015         * libc/sys/linux/include/net/fddi.h: Ditto.
4016         * libc/sys/linux/include/net/if.h: Ditto.
4017         * libc/sys/linux/include/net/if_arc.h: Ditto.
4018         * libc/sys/linux/include/net/if_arp.h: Ditto.
4019         * libc/sys/linux/include/net/if_atm.h: Ditto.
4020         * libc/sys/linux/include/net/if_dl.h: Ditto.
4021         * libc/sys/linux/include/net/if_gif.h: Ditto.
4022         * libc/sys/linux/include/net/if_ieee80211.h: Ditto.
4023         * libc/sys/linux/include/net/if_llc.h: Ditto.
4024         * libc/sys/linux/include/net/if_media.h: Ditto.
4025         * libc/sys/linux/include/net/if_mib.h: Ditto.
4026         * libc/sys/linux/include/net/if_ppp.h: Ditto.
4027         * libc/sys/linux/include/net/if_pppvar.h: Ditto.
4028         * libc/sys/linux/include/net/if_slvar.h: Ditto.
4029         * libc/sys/linux/include/net/if_sppp.h: Ditto.
4030         * libc/sys/linux/include/net/if_stf.h: Ditto.
4031         * libc/sys/linux/include/net/if_tap.h: Ditto.
4032         * libc/sys/linux/include/net/if_tapvar.h: Ditto.
4033         * libc/sys/linux/include/net/if_tun.h: Ditto.
4034         * libc/sys/linux/include/net/if_tunvar.h: Ditto.
4035         * libc/sys/linux/include/net/if_types.h: Ditto.
4036         * libc/sys/linux/include/net/if_var.h: Ditto.
4037         * libc/sys/linux/include/net/if_vlan_var.h: Ditto.
4038         * libc/sys/linux/include/net/intrq.h: Ditto.
4039         * libc/sys/linux/include/net/iso88025.h: Ditto.
4040         * libc/sys/linux/include/net/net_osdep.h: Ditto.
4041         * libc/sys/linux/include/net/netisr.h: Ditto.
4042         * libc/sys/linux/include/net/pfil.h: Ditto.
4043         * libc/sys/linux/include/net/pfkeyv2.h: Ditto.
4044         * libc/sys/linux/include/net/ppp_comp.h: Ditto.
4045         * libc/sys/linux/include/net/ppp_defs.h: Ditto.
4046         * libc/sys/linux/include/net/radix.h: Ditto.
4047         * libc/sys/linux/include/net/raw_cb.h: Ditto.
4048         * libc/sys/linux/include/net/route.h: Ditto.
4049         * libc/sys/linux/include/net/slcompress.h: Ditto.
4050         * libc/sys/linux/include/net/slip.h: Ditto.
4051         * libc/sys/linux/include/net/zlib.h: Ditto.
4052         * libc/sys/linux/include/netinet/icmp6.h: Ditto.
4053         * libc/sys/linux/include/netinet/icmp_var.h: Ditto.
4054         * libc/sys/linux/include/netinet/if_atm.h: Ditto.
4055         * libc/sys/linux/include/netinet/if_ether.h: Ditto.
4056         * libc/sys/linux/include/netinet/igmp.h: Ditto.
4057         * libc/sys/linux/include/netinet/igmp_var.h: Ditto.
4058         * libc/sys/linux/include/netinet/in.h: Ditto.
4059         * libc/sys/linux/include/netinet/in_gif.h: Ditto.
4060         * libc/sys/linux/include/netinet/in_pcb.h: Ditto.
4061         * libc/sys/linux/include/netinet/in_systm.h: Ditto.
4062         * libc/sys/linux/include/netinet/in_var.h: Ditto.
4063         * libc/sys/linux/include/netinet/ip.h: Ditto.
4064         * libc/sys/linux/include/netinet/ip6.h: Ditto.
4065         * libc/sys/linux/include/netinet/ip_dummynet.h: Ditto.
4066         * libc/sys/linux/include/netinet/ip_ecn.h: Ditto.
4067         * libc/sys/linux/include/netinet/ip_encap.h: Ditto.
4068         * libc/sys/linux/include/netinet/ip_flow.h: Ditto.
4069         * libc/sys/linux/include/netinet/ip_fw.h: Ditto.
4070         * libc/sys/linux/include/netinet/ip_icmp.h: Ditto.
4071         * libc/sys/linux/include/netinet/ip_mroute.h: Ditto.
4072         * libc/sys/linux/include/netinet/ip_var.h: Ditto.
4073         * libc/sys/linux/include/netinet/ipprotosw.h: Ditto.
4074         * libc/sys/linux/include/netinet/tcp.h: Ditto.
4075         * libc/sys/linux/include/netinet/tcp_debug.h: Ditto.
4076         * libc/sys/linux/include/netinet/tcp_fsm.h: Ditto.
4077         * libc/sys/linux/include/netinet/tcp_seq.h: Ditto.
4078         * libc/sys/linux/include/netinet/tcp_timer.h: Ditto.
4079         * libc/sys/linux/include/netinet/tcp_var.h: Ditto.
4080         * libc/sys/linux/include/netinet/tcpip.h: Ditto.
4081         * libc/sys/linux/include/netinet/udp.h: Ditto.
4082         * libc/sys/linux/include/netinet/udp_var.h: Ditto.
4083         * libc/sys/linux/include/netinet6/ah.h: Ditto.
4084         * libc/sys/linux/include/netinet6/ah6.h: Ditto.
4085         * libc/sys/linux/include/netinet6/esp.h: Ditto.
4086         * libc/sys/linux/include/netinet6/esp6.h: Ditto.
4087         * libc/sys/linux/include/netinet6/esp_rijndael.h: Ditto.
4088         * libc/sys/linux/include/netinet6/icmp6.h: Ditto.
4089         * libc/sys/linux/include/netinet6/in6.h: Ditto.
4090         * libc/sys/linux/include/netinet6/in6_gif.h: Ditto.
4091         * libc/sys/linux/include/netinet6/in6_ifattach.h: Ditto.
4092         * libc/sys/linux/include/netinet6/in6_pcb.h: Ditto.
4093         * libc/sys/linux/include/netinet6/in6_prefix.h: Ditto.
4094         * libc/sys/linux/include/netinet6/in6_var.h: Ditto.
4095         * libc/sys/linux/include/netinet6/ip6.h: Ditto.
4096         * libc/sys/linux/include/netinet6/ip6_ecn.h: Ditto.
4097         * libc/sys/linux/include/netinet6/ip6_fw.h: Ditto.
4098         * libc/sys/linux/include/netinet6/ip6_mroute.h: Ditto.
4099         * libc/sys/linux/include/netinet6/ip6_var.h: Ditto.
4100         * libc/sys/linux/include/netinet6/ip6protosw.h: Ditto.
4101         * libc/sys/linux/include/netinet6/ipcomp.h: Ditto.
4102         * libc/sys/linux/include/netinet6/ipcomp6.h: Ditto.
4103         * libc/sys/linux/include/netinet6/ipsec.h: Ditto.
4104         * libc/sys/linux/include/netinet6/ipsec6.h: Ditto.
4105         * libc/sys/linux/include/netinet6/mld6_var.h: Ditto.
4106         * libc/sys/linux/include/netinet6/nd6.h: Ditto.
4107         * libc/sys/linux/include/netinet6/pim6.h: Ditto.
4108         * libc/sys/linux/include/netinet6/pim6_var.h: Ditto.
4109         * libc/sys/linux/include/netinet6/raw_ip6.h: Ditto.
4110         * libc/sys/linux/include/netinet6/scope6_var.h: Ditto.
4111         * libc/sys/linux/include/netinet6/tcp6_var.h: Ditto.
4112         * libc/sys/linux/include/netinet6/udp6_var.h: Ditto.
4113         * libc/sys/linux/include/netns/idp.h: Ditto.
4114         * libc/sys/linux/include/netns/idp_var.h: Ditto.
4115         * libc/sys/linux/include/netns/ns.h: Ditto.
4116         * libc/sys/linux/include/netns/ns_error.h: Ditto.
4117         * libc/sys/linux/include/netns/ns_if.h: Ditto.
4118         * libc/sys/linux/include/netns/ns_pcb.h: Ditto.
4119         * libc/sys/linux/include/netns/sp.h: Ditto.
4120         * libc/sys/linux/include/netns/spidp.h: Ditto.
4121         * libc/sys/linux/include/netns/spp_debug.h: Ditto.
4122         * libc/sys/linux/include/netns/spp_timer.h: Ditto.
4123         * libc/sys/linux/include/netns/spp_var.h: Ditto.
4124         * libc/sys/linux/include/rpc/Makefile: Ditto.
4125         * libc/sys/linux/include/rpc/auth.h: Ditto.
4126         * libc/sys/linux/include/rpc/auth_des.h: Ditto.
4127         * libc/sys/linux/include/rpc/auth_kerb.h: Ditto.
4128         * libc/sys/linux/include/rpc/auth_unix.h: Ditto.
4129         * libc/sys/linux/include/rpc/clnt.h: Ditto.
4130         * libc/sys/linux/include/rpc/clnt_soc.h: Ditto.
4131         * libc/sys/linux/include/rpc/clnt_stat.h: Ditto.
4132         * libc/sys/linux/include/rpc/des.h: Ditto.
4133         * libc/sys/linux/include/rpc/des_crypt.h: Ditto.
4134         * libc/sys/linux/include/rpc/nettype.h: Ditto.
4135         * libc/sys/linux/include/rpc/pmap_clnt.h: Ditto.
4136         * libc/sys/linux/include/rpc/pmap_prot.h: Ditto.
4137         * libc/sys/linux/include/rpc/pmap_rmt.h: Ditto.
4138         * libc/sys/linux/include/rpc/raw.h: Ditto.
4139         * libc/sys/linux/include/rpc/rpc.h: Ditto.
4140         * libc/sys/linux/include/rpc/rpc_com.h: Ditto.
4141         * libc/sys/linux/include/rpc/rpc_msg.h: Ditto.
4142         * libc/sys/linux/include/rpc/rpcb_clnt.h: Ditto.
4143         * libc/sys/linux/include/rpc/rpcb_prot.h: Ditto.
4144         * libc/sys/linux/include/rpc/rpcb_prot.x: Ditto.
4145         * libc/sys/linux/include/rpc/rpcent.h: Ditto.
4146         * libc/sys/linux/include/rpc/svc.h: Ditto.
4147         * libc/sys/linux/include/rpc/svc_auth.h: Ditto.
4148         * libc/sys/linux/include/rpc/svc_dg.h: Ditto.
4149         * libc/sys/linux/include/rpc/svc_soc.h: Ditto.
4150         * libc/sys/linux/include/rpc/types.h: Ditto.
4151         * libc/sys/linux/include/rpc/xdr.h: Ditto.
4152         * libc/sys/linux/intl/Makefile.am: Ditto.
4153         * libc/sys/linux/intl/Makefile.in: Ditto.
4154         * libc/sys/linux/intl/bindtextdom.c: Ditto.
4155         * libc/sys/linux/intl/catgets.c: Ditto.
4156         * libc/sys/linux/intl/catgetsinfo.h: Ditto.
4157         * libc/sys/linux/intl/config.h: Ditto.
4158         * libc/sys/linux/intl/dcgettext.c: Ditto.
4159         * libc/sys/linux/intl/dcigettext.c: Ditto.
4160         * libc/sys/linux/intl/dcngettext.c: Ditto.
4161         * libc/sys/linux/intl/dgettext.c: Ditto.
4162         * libc/sys/linux/intl/dngettext.c: Ditto.
4163         * libc/sys/linux/intl/explodename.c: Ditto.
4164         * libc/sys/linux/intl/finddomain.c: Ditto.
4165         * libc/sys/linux/intl/gettext.c: Ditto.
4166         * libc/sys/linux/intl/gettext.h: Ditto.
4167         * libc/sys/linux/intl/gettextP.h: Ditto.
4168         * libc/sys/linux/intl/hash-string.h: Ditto.
4169         * libc/sys/linux/intl/l10nflist.c: Ditto.
4170         * libc/sys/linux/intl/loadinfo.h: Ditto.
4171         * libc/sys/linux/intl/loadmsgcat.c: Ditto.
4172         * libc/sys/linux/intl/locale.alias: Ditto.
4173         * libc/sys/linux/intl/localealias.c: Ditto.
4174         * libc/sys/linux/intl/ngettext.c: Ditto.
4175         * libc/sys/linux/intl/open_catalog.c: Ditto.
4176         * libc/sys/linux/intl/plural.c: Ditto.
4177         * libc/sys/linux/intl/plural.y: Ditto.
4178         * libc/sys/linux/intl/stpcpy.c: Ditto.
4179         * libc/sys/linux/intl/textdomain.c: Ditto.
4180         * libc/sys/linux/linuxthreads/LICENSE: Ditto.
4181         * libc/sys/linux/linuxthreads/Makefile.am: Ditto.
4182         * libc/sys/linux/linuxthreads/Makefile.in: Ditto.
4183         * libc/sys/linux/linuxthreads/aclocal.m4: Ditto.
4184         * libc/sys/linux/linuxthreads/attr.c: Ditto.
4185         * libc/sys/linux/linuxthreads/barrier.c: Ditto.
4186         * libc/sys/linux/linuxthreads/bp-sym.h: Ditto.
4187         * libc/sys/linux/linuxthreads/cancel.c: Ditto.
4188         * libc/sys/linux/linuxthreads/condvar.c: Ditto.
4189         * libc/sys/linux/linuxthreads/config.h: Ditto.
4190         * libc/sys/linux/linuxthreads/configure: Ditto.
4191         * libc/sys/linux/linuxthreads/configure.in: Ditto.
4192         * libc/sys/linux/linuxthreads/defs.awk: Ditto.
4193         * libc/sys/linux/linuxthreads/ecmutex.c: Ditto.
4194         * libc/sys/linux/linuxthreads/events.c: Ditto.
4195         * libc/sys/linux/linuxthreads/getcpuclockid.c: Ditto.
4196         * libc/sys/linux/linuxthreads/getreent.c: Ditto.
4197         * libc/sys/linux/linuxthreads/internals.h: Ditto.
4198         * libc/sys/linux/linuxthreads/join.c: Ditto.
4199         * libc/sys/linux/linuxthreads/joinrace.c: Ditto.
4200         * libc/sys/linux/linuxthreads/kernel-features.h: Ditto.
4201         * libc/sys/linux/linuxthreads/libc-internal.h: Ditto.
4202         * libc/sys/linux/linuxthreads/libc-symbols.h: Ditto.
4203         * libc/sys/linux/linuxthreads/linuxthreads.texi: Ditto.
4204         * libc/sys/linux/linuxthreads/lockfile.c: Ditto.
4205         * libc/sys/linux/linuxthreads/manager.c: Ditto.
4206         * libc/sys/linux/linuxthreads/mq_notify.c: Ditto.
4207         * libc/sys/linux/linuxthreads/mutex.c: Ditto.
4208         * libc/sys/linux/linuxthreads/no-tsd.c: Ditto.
4209         * libc/sys/linux/linuxthreads/oldsemaphore.c: Ditto.
4210         * libc/sys/linux/linuxthreads/posix-timer.h: Ditto.
4211         * libc/sys/linux/linuxthreads/prio.c: Ditto.
4212         * libc/sys/linux/linuxthreads/proc_service.h: Ditto.
4213         * libc/sys/linux/linuxthreads/pt-machine.c: Ditto.
4214         * libc/sys/linux/linuxthreads/ptclock_gettime.c: Ditto.
4215         * libc/sys/linux/linuxthreads/ptclock_settime.c: Ditto.
4216         * libc/sys/linux/linuxthreads/ptfork.c: Ditto.
4217         * libc/sys/linux/linuxthreads/pthread.c: Ditto.
4218         * libc/sys/linux/linuxthreads/ptlongjmp.c: Ditto.
4219         * libc/sys/linux/linuxthreads/queue.h: Ditto.
4220         * libc/sys/linux/linuxthreads/reent.c: Ditto.
4221         * libc/sys/linux/linuxthreads/reqsyscalls.c: Ditto.
4222         * libc/sys/linux/linuxthreads/restart.h: Ditto.
4223         * libc/sys/linux/linuxthreads/rwlock.c: Ditto.
4224         * libc/sys/linux/linuxthreads/semaphore.c: Ditto.
4225         * libc/sys/linux/linuxthreads/semaphore.h: Ditto.
4226         * libc/sys/linux/linuxthreads/shlib-compat.h: Ditto.
4227         * libc/sys/linux/linuxthreads/signals.c: Ditto.
4228         * libc/sys/linux/linuxthreads/specific.c: Ditto.
4229         * libc/sys/linux/linuxthreads/spinlock.c: Ditto.
4230         * libc/sys/linux/linuxthreads/spinlock.h: Ditto.
4231         * libc/sys/linux/linuxthreads/sysctl.c: Ditto.
4232         * libc/sys/linux/linuxthreads/td_init.c: Ditto.
4233         * libc/sys/linux/linuxthreads/td_log.c: Ditto.
4234         * libc/sys/linux/linuxthreads/td_symbol_list.c: Ditto.
4235         * libc/sys/linux/linuxthreads/td_ta_clear_event.c: Ditto.
4236         * libc/sys/linux/linuxthreads/td_ta_delete.c: Ditto.
4237         * libc/sys/linux/linuxthreads/td_ta_enable_stats.c: Ditto.
4238         * libc/sys/linux/linuxthreads/td_ta_event_addr.c: Ditto.
4239         * libc/sys/linux/linuxthreads/td_ta_event_getmsg.c: Ditto.
4240         * libc/sys/linux/linuxthreads/td_ta_get_nthreads.c: Ditto.
4241         * libc/sys/linux/linuxthreads/td_ta_get_ph.c: Ditto.
4242         * libc/sys/linux/linuxthreads/td_ta_get_stats.c: Ditto.
4243         * libc/sys/linux/linuxthreads/td_ta_map_id2thr.c: Ditto.
4244         * libc/sys/linux/linuxthreads/td_ta_map_lwp2thr.c: Ditto.
4245         * libc/sys/linux/linuxthreads/td_ta_new.c: Ditto.
4246         * libc/sys/linux/linuxthreads/td_ta_reset_stats.c: Ditto.
4247         * libc/sys/linux/linuxthreads/td_ta_set_event.c: Ditto.
4248         * libc/sys/linux/linuxthreads/td_ta_setconcurrency.c: Ditto.
4249         * libc/sys/linux/linuxthreads/td_ta_thr_iter.c: Ditto.
4250         * libc/sys/linux/linuxthreads/td_ta_tsd_iter.c: Ditto.
4251         * libc/sys/linux/linuxthreads/td_thr_clear_event.c: Ditto.
4252         * libc/sys/linux/linuxthreads/td_thr_dbresume.c: Ditto.
4253         * libc/sys/linux/linuxthreads/td_thr_dbsuspend.c: Ditto.
4254         * libc/sys/linux/linuxthreads/td_thr_event_enable.c: Ditto.
4255         * libc/sys/linux/linuxthreads/td_thr_event_getmsg.c: Ditto.
4256         * libc/sys/linux/linuxthreads/td_thr_get_info.c: Ditto.
4257         * libc/sys/linux/linuxthreads/td_thr_getfpregs.c: Ditto.
4258         * libc/sys/linux/linuxthreads/td_thr_getgregs.c: Ditto.
4259         * libc/sys/linux/linuxthreads/td_thr_getxregs.c: Ditto.
4260         * libc/sys/linux/linuxthreads/td_thr_getxregsize.c: Ditto.
4261         * libc/sys/linux/linuxthreads/td_thr_set_event.c: Ditto.
4262         * libc/sys/linux/linuxthreads/td_thr_setfpregs.c: Ditto.
4263         * libc/sys/linux/linuxthreads/td_thr_setgregs.c: Ditto.
4264         * libc/sys/linux/linuxthreads/td_thr_setprio.c: Ditto.
4265         * libc/sys/linux/linuxthreads/td_thr_setsigpending.c: Ditto.
4266         * libc/sys/linux/linuxthreads/td_thr_setxregs.c: Ditto.
4267         * libc/sys/linux/linuxthreads/td_thr_sigsetmask.c: Ditto.
4268         * libc/sys/linux/linuxthreads/td_thr_tsd.c: Ditto.
4269         * libc/sys/linux/linuxthreads/td_thr_validate.c: Ditto.
4270         * libc/sys/linux/linuxthreads/testrtsig.h: Ditto.
4271         * libc/sys/linux/linuxthreads/thread_db.h: Ditto.
4272         * libc/sys/linux/linuxthreads/thread_dbP.h: Ditto.
4273         * libc/sys/linux/linuxthreads/timer_create.c: Ditto.
4274         * libc/sys/linux/linuxthreads/timer_delete.c: Ditto.
4275         * libc/sys/linux/linuxthreads/timer_getoverr.c: Ditto.
4276         * libc/sys/linux/linuxthreads/timer_gettime.c: Ditto.
4277         * libc/sys/linux/linuxthreads/timer_routines.c: Ditto.
4278         * libc/sys/linux/linuxthreads/timer_settime.c: Ditto.
4279         * libc/sys/linux/linuxthreads/tst-cancel.c: Ditto.
4280         * libc/sys/linux/linuxthreads/tst-context.c: Ditto.
4281         * libc/sys/linux/linuxthreads/tststack.c: Ditto.
4282         * libc/sys/linux/linuxthreads/unload.c: Ditto.
4283         * libc/sys/linux/linuxthreads/weaks.c: Ditto.
4284         * libc/sys/linux/linuxthreads/wrapsyscall.c: Ditto.
4285         * libc/sys/linux/linuxthreads/bits/initspin.h: Ditto.
4286         * libc/sys/linux/linuxthreads/bits/libc-lock.h: Ditto.
4287         * libc/sys/linux/linuxthreads/bits/libc-tsd.h: Ditto.
4288         * libc/sys/linux/linuxthreads/bits/local_lim.h: Ditto.
4289         * libc/sys/linux/linuxthreads/bits/posix_opt.h: Ditto.
4290         * libc/sys/linux/linuxthreads/bits/pthreadtypes.h: Ditto.
4291         * libc/sys/linux/linuxthreads/bits/sigthread.h: Ditto.
4292         * libc/sys/linux/linuxthreads/machine/Makefile.am: Ditto.
4293         * libc/sys/linux/linuxthreads/machine/Makefile.in: Ditto.
4294         * libc/sys/linux/linuxthreads/machine/aclocal.m4: Ditto.
4295         * libc/sys/linux/linuxthreads/machine/configure: Ditto.
4296         * libc/sys/linux/linuxthreads/machine/configure.in: Ditto.
4297         * libc/sys/linux/linuxthreads/machine/generic/generic-sysd: Ditto.ep.h
4298         * libc/sys/linux/linuxthreads/machine/i386/Makefile.am: Ditto.
4299         * libc/sys/linux/linuxthreads/machine/i386/Makefile.in: Ditto.
4300         * libc/sys/linux/linuxthreads/machine/i386/aclocal.m4: Ditto.
4301         * libc/sys/linux/linuxthreads/machine/i386/bp-asm.h: Ditto.
4302         * libc/sys/linux/linuxthreads/machine/i386/clone.S: Ditto.
4303         * libc/sys/linux/linuxthreads/machine/i386/configure: Ditto.
4304         * libc/sys/linux/linuxthreads/machine/i386/configure.in: Ditto.
4305         * libc/sys/linux/linuxthreads/machine/i386/i386-sysdep.S: Ditto.
4306         * libc/sys/linux/linuxthreads/machine/i386/i386-sysdep.h: Ditto.
4307         * libc/sys/linux/linuxthreads/machine/i386/pspinlock.c: Ditto.
4308         * libc/sys/linux/linuxthreads/machine/i386/pt-machine.h: Ditto.
4309         * libc/sys/linux/linuxthreads/machine/i386/sigcontextinfo.h: Ditto.
4310         * libc/sys/linux/linuxthreads/machine/i386/stackinfo.h: Ditto.
4311         * libc/sys/linux/linuxthreads/machine/i386/sysdep.S: Ditto.
4312         * libc/sys/linux/linuxthreads/machine/i386/sysdep.h: Ditto.
4313         * libc/sys/linux/linuxthreads/machine/i386/useldt.h: Ditto.
4314         * libc/sys/linux/machine/i386/dl-machine.h: Ditto.
4315         * libc/sys/linux/net/Makefile.am: Ditto.
4316         * libc/sys/linux/net/Makefile.in: Ditto.
4317         * libc/sys/linux/net/addr2ascii.3: Ditto.
4318         * libc/sys/linux/net/addr2ascii.c: Ditto.
4319         * libc/sys/linux/net/ascii2addr.c: Ditto.
4320         * libc/sys/linux/net/base64.c: Ditto.
4321         * libc/sys/linux/net/bindresvport.c: Ditto.
4322         * libc/sys/linux/net/byteorder.3: Ditto.
4323         * libc/sys/linux/net/ether_addr.c: Ditto.
4324         * libc/sys/linux/net/ethers.3: Ditto.
4325         * libc/sys/linux/net/getaddrinfo.3: Ditto.
4326         * libc/sys/linux/net/getaddrinfo.c: Ditto.
4327         * libc/sys/linux/net/gethostbydns.c: Ditto.
4328         * libc/sys/linux/net/gethostbyht.c: Ditto.
4329         * libc/sys/linux/net/gethostbyname.3: Ditto.
4330         * libc/sys/linux/net/gethostbynis.c: Ditto.
4331         * libc/sys/linux/net/gethostnamadr.c: Ditto.
4332         * libc/sys/linux/net/getifaddrs.3: Ditto.
4333         * libc/sys/linux/net/getifaddrs.c: Ditto.
4334         * libc/sys/linux/net/getipnodebyname.3: Ditto.
4335         * libc/sys/linux/net/getnameinfo.3: Ditto.
4336         * libc/sys/linux/net/getnameinfo.c: Ditto.
4337         * libc/sys/linux/net/getnetbydns.c: Ditto.
4338         * libc/sys/linux/net/getnetbyht.c: Ditto.
4339         * libc/sys/linux/net/getnetbynis.c: Ditto.
4340         * libc/sys/linux/net/getnetent.3: Ditto.
4341         * libc/sys/linux/net/getnetnamadr.c: Ditto.
4342         * libc/sys/linux/net/getproto.c: Ditto.
4343         * libc/sys/linux/net/getprotoent.3: Ditto.
4344         * libc/sys/linux/net/getprotoent.c: Ditto.
4345         * libc/sys/linux/net/getprotoname.c: Ditto.
4346         * libc/sys/linux/net/getservbyname.c: Ditto.
4347         * libc/sys/linux/net/getservbyport.c: Ditto.
4348         * libc/sys/linux/net/getservent.3: Ditto.
4349         * libc/sys/linux/net/getservent.c: Ditto.
4350         * libc/sys/linux/net/herror.c: Ditto.
4351         * libc/sys/linux/net/hesiod.3: Ditto.
4352         * libc/sys/linux/net/hesiod.c: Ditto.
4353         * libc/sys/linux/net/if_indextoname.3: Ditto.
4354         * libc/sys/linux/net/ifname.c: Ditto.
4355         * libc/sys/linux/net/inet.3: Ditto.
4356         * libc/sys/linux/net/inet6_option_s: Ditto.pace.3
4357         * libc/sys/linux/net/inet6_rthdr_space.3: Ditto.
4358         * libc/sys/linux/net/inet_addr.c: Ditto.
4359         * libc/sys/linux/net/inet_lnaof.c: Ditto.
4360         * libc/sys/linux/net/inet_makeaddr.c: Ditto.
4361         * libc/sys/linux/net/inet_net.3: Ditto.
4362         * libc/sys/linux/net/inet_net_ntop.c: Ditto.
4363         * libc/sys/linux/net/inet_net_pton.c: Ditto.
4364         * libc/sys/linux/net/inet_neta.c: Ditto.
4365         * libc/sys/linux/net/inet_netof.c: Ditto.
4366         * libc/sys/linux/net/inet_network.c: Ditto.
4367         * libc/sys/linux/net/inet_ntoa.c: Ditto.
4368         * libc/sys/linux/net/inet_ntop.c: Ditto.
4369         * libc/sys/linux/net/inet_pton.c: Ditto.
4370         * libc/sys/linux/net/innetgr-stub.c: Ditto.
4371         * libc/sys/linux/net/ip6opt.c: Ditto.
4372         * libc/sys/linux/net/iso_addr.3: Ditto.
4373         * libc/sys/linux/net/iso_addr.c: Ditto.
4374         * libc/sys/linux/net/issetugid-stub.c: Ditto.
4375         * libc/sys/linux/net/linkaddr.3: Ditto.
4376         * libc/sys/linux/net/linkaddr.c: Ditto.
4377         * libc/sys/linux/net/map_v4v6.c: Ditto.
4378         * libc/sys/linux/net/name6.c: Ditto.
4379         * libc/sys/linux/net/namespace.h: Ditto.
4380         * libc/sys/linux/net/ns.3: Ditto.
4381         * libc/sys/linux/net/ns_addr.c: Ditto.
4382         * libc/sys/linux/net/ns_name.c: Ditto.
4383         * libc/sys/linux/net/ns_netint.c: Ditto.
4384         * libc/sys/linux/net/ns_ntoa.c: Ditto.
4385         * libc/sys/linux/net/ns_parse.c: Ditto.
4386         * libc/sys/linux/net/ns_print.c: Ditto.
4387         * libc/sys/linux/net/ns_ttl.c: Ditto.
4388         * libc/sys/linux/net/nsap_addr.c: Ditto.
4389         * libc/sys/linux/net/nsdispatch.3: Ditto.
4390         * libc/sys/linux/net/nsdispatch.c: Ditto.
4391         * libc/sys/linux/net/nslexer.c: Ditto.
4392         * libc/sys/linux/net/nslexer.l: Ditto.
4393         * libc/sys/linux/net/nsparser.c: Ditto.
4394         * libc/sys/linux/net/nsparser.h: Ditto.
4395         * libc/sys/linux/net/nsparser.y: Ditto.
4396         * libc/sys/linux/net/rcmd.3: Ditto.
4397         * libc/sys/linux/net/rcmd.c: Ditto.
4398         * libc/sys/linux/net/rcmdsh.3: Ditto.
4399         * libc/sys/linux/net/rcmdsh.c: Ditto.
4400         * libc/sys/linux/net/recv.c: Ditto.
4401         * libc/sys/linux/net/res_comp.c: Ditto.
4402         * libc/sys/linux/net/res_config.h: Ditto.
4403         * libc/sys/linux/net/res_data.c: Ditto.
4404         * libc/sys/linux/net/res_debug.c: Ditto.
4405         * libc/sys/linux/net/res_init.c: Ditto.
4406         * libc/sys/linux/net/res_mkquery.c: Ditto.
4407         * libc/sys/linux/net/res_mkupdate.c: Ditto.
4408         * libc/sys/linux/net/res_query.c: Ditto.
4409         * libc/sys/linux/net/res_send.c: Ditto.
4410         * libc/sys/linux/net/res_update.c: Ditto.
4411         * libc/sys/linux/net/resolver.3: Ditto.
4412         * libc/sys/linux/net/rthdr.c: Ditto.
4413         * libc/sys/linux/net/send.c: Ditto.
4414         * libc/sys/linux/net/un-namespace.h: Ditto.
4415         * libc/sys/linux/net/vars.c: Ditto.
4416         * libc/sys/linux/stdlib/COPYRIGHT: Ditto.
4417         * libc/sys/linux/stdlib/Makefile.am: Ditto.
4418         * libc/sys/linux/stdlib/Makefile.in: Ditto.
4419         * libc/sys/linux/stdlib/cclass.h: Ditto.
4420         * libc/sys/linux/stdlib/cname.h: Ditto.
4421         * libc/sys/linux/stdlib/collate.c: Ditto.
4422         * libc/sys/linux/stdlib/collate.h: Ditto.
4423         * libc/sys/linux/stdlib/collcmp.c: Ditto.
4424         * libc/sys/linux/stdlib/engine.c: Ditto.
4425         * libc/sys/linux/stdlib/fnmatch.3: Ditto.
4426         * libc/sys/linux/stdlib/fnmatch.c: Ditto.
4427         * libc/sys/linux/stdlib/glob.3: Ditto.
4428         * libc/sys/linux/stdlib/glob.c: Ditto.
4429         * libc/sys/linux/stdlib/reallocf.c: Ditto.
4430         * libc/sys/linux/stdlib/regcomp.c: Ditto.
4431         * libc/sys/linux/stdlib/regerror.c: Ditto.
4432         * libc/sys/linux/stdlib/regex.3: Ditto.
4433         * libc/sys/linux/stdlib/regex2.h: Ditto.
4434         * libc/sys/linux/stdlib/regexec.c: Ditto.
4435         * libc/sys/linux/stdlib/regfree.c: Ditto.
4436         * libc/sys/linux/stdlib/utils.h: Ditto.
4437         * libc/sys/linux/stdlib/wordexp.c: Ditto.
4438         * libc/sys/linux/stdlib/wordfree.c: Ditto.
4439         * libc/sys/linux/sys/dlfcn.h: Ditto.
4440         * libc/sys/linux/sys/elfclass.h: Ditto.
4441         * libc/sys/linux/sys/event.h: Ditto.
4442         * libc/sys/linux/sys/ioccom.h: Ditto.
4443         * libc/sys/linux/sys/libc-tsd.h: Ditto.
4444         * libc/sys/linux/sys/link.h: Ditto.
4445         * libc/sys/linux/sys/lock.h: Ditto.
4446         * libc/sys/linux/sys/param.h: Ditto.
4447         * libc/sys/linux/sys/socket.h: Ditto.
4448         * libc/sys/linux/sys/sockio.h: Ditto.
4449
4450 2003-05-28  Dhananjay Deshpande  <dhananjayd@kpitcummins.com> 
4451
4452         * newlib/libc/machine/h8300/memcpy.S: Use .h8300hn and .h8300sn for 
4453         normal mode
4454         * newlib/libc/machine/h8300/memset.S: Likewise
4455         * newlib/lib/machine/h8300/reg_memcpy.S: Likewise
4456         * newlib/lib/machine/h8300/reg_memset.S: Likewise
4457         * newlib/lib/machine/h8300/setjmp.S: Likewise
4458         * newlib/lib/machine/h8300/strcmp.S: Likewise
4459         * newlib/lib/sys/h8300hms/crt0.S: Likewise
4460
4461 2003-05-13  Corinna Vinschen  <corinna@vinschen.de>
4462
4463         * libc/ctype/ctype_.c: Remove checks for deprecated __CYGWIN32__.
4464         * libc/include/stdio.h: Ditto.
4465         * libc/include/sys/config.h: Ditto.
4466         * libc/stdio/mktemp.c: Ditto.
4467
4468 2003-05-13  Corinna Vinschen  <corinna@vinschen.de>
4469
4470         * libc/locale/ldpart.c (__part_load_locale): Substitute
4471         __CYGWIN_USE_BIG_TYPES__ by __USE_INTERNAL_STAT64.
4472         * libc/search/hash.c (__hash_open): Ditto.
4473         (init_hash): Ditto.
4474         * libc/stdio/fseek.c (fseek): Ditto.
4475         * libc/stdio/makebuf.c (__smakebuf): Ditto.
4476         * libc/stdio/mktemp.c (_gettemp): Ditto.
4477
4478 2003-05-12  Corinna Vinschen  <corinna@vinschen.de>
4479
4480         * libc/include/stdio.h: Change one __CYGWIN__ to __CYGWIN32__.
4481
4482 2003-05-12  Corinna Vinschen  <corinna@vinschen.de>
4483
4484         * configure.host: Accomodate removing the libc/sys/cygwin dir.
4485         * libc/locale/ldpart.c (__part_load_locale): Use 64 bit stat call
4486         if __CYGWIN_USE_BIG_TYPES__ is set.
4487         * libc/search/hash.c (__hash_open): Ditto.
4488         (init_hash): Ditto.
4489         * libc/stdio/fseek.c (fseek): Ditto.
4490         * libc/stdio/makebuf.c (__smakebuf): Ditto.
4491         * libc/stdio/mktemp.c (_gettemp): Ditto.
4492         * libc/sys/cygwin/Makefile.am: Remove.
4493         * libc/sys/cygwin/Makefile.in: Remove.
4494         * libc/sys/cygwin/aclocal.m4: Remove.
4495         * libc/sys/cygwin/configure: Remove.
4496         * libc/sys/cygwin/configure.in: Remove.
4497         * libc/sys/cygwin/crt0.c: Move to winsup/cygwin directory.
4498         * libc/sys/cygwin/sys/dirent.h: Move to winsup/cygwin/include/sys
4499         directory.
4500         * libc/sys/cygwin/sys/param.h: Ditto.
4501         * libc/sys/cygwin/sys/utime.h: Ditto.
4502         * libc/sys/cygwin/sys/utmp.h: Ditto.
4503
4504 2003-05-11  Corinna Vinschen  <corinna@vinschen.de>
4505
4506         * libc/include/sys/types.h: Don't define key_t for Cygwin.
4507
4508 2003-05-10  Christopher Faylor  <cgf@redhat.com>
4509
4510         * libc/sys/cygwin/sys/dirent.h (struct dirent): Accommodate (slightly)
4511         64 bit inodes.
4512
4513 2003-05-09  Corinna Vinschen  <corinna@vinschen.de>
4514
4515         * libc/include/sys/config.h: Remove all Cygwin specific configuration.
4516         Include cygwin/config.h instead.
4517
4518 2003-04-16  Jeff Johnston  <jjohnstn@redhat.com>
4519
4520         * newlib/libc/machine/powerpc (ato*fix*.c,strto*fix*.c): Shield
4521         all code with #ifdef __SPE__ test.
4522         * newlib/libc/machine/powerpc (simdldtoa.c, ufix64toa.c): Ditto.
4523
4524 2003-04-15  Chris January <chris@atomice.net>
4525
4526         * newlib/libc/include/sys/unistd.h: add declaration for gethostid on
4527         Cygwin.
4528
4529 2003-04-09  J"orn Rennecke <joern.rennecke@superh.com>
4530
4531         * libc/machine/sh/memset.S: Avoid clobbering volatile
4532         objects following a tiny to-be-set array in the same quadword.
4533
4534 2001-04-09  Corinna Vinschen  <corinna@vinschen.de>
4535
4536         * libc/include/wchar.h: Add definitions for wcswidth and wcwidth.  
4537         * libc/string/Makefile.am: Add wcswidth.c and wcwidth.c
4538         * libc/string/Makefile.in: Regenerated.
4539         * libc/string/wcswidth.c: New file.
4540         * libc/string/wcwidth.c: New file.
4541         * libc/string/wcstrings.tex: Add wcswidth and wcwidth.
4542
4543 Thu Apr  3 14:01:16 2003  J"orn Rennecke <joern.rennecke@superh.com>
4544
4545         * libc/machine/sh/memset.S: Fix problem with alloco region
4546         exceeding destination region for length >= 88 bytes, start
4547         & 0x16 == 0, end & 0x1f == 18.
4548
4549 2001-04-03  Corinna Vinschen  <corinna@vinschen.de>
4550
4551         * libc/string/wcscoll.c: Fix comment.
4552
4553 2001-04-02  Corinna Vinschen  <corinna@vinschen.de>
4554
4555         * libc/include/wchar.h: Add definition for wcscoll.
4556         * libc/string/Makefile.am: Add wcscoll.c.
4557         * libc/string/Makefile.in: Regenerated.
4558         * libc/string/wcscoll.c: New file.
4559         * libc/string/wcstrings.tex: Add wcscoll.   
4560
4561 2003-04-01  Corinna Vinschen  <corinna@vinschen.de>
4562
4563         * libc/stdio/sscanf.c: Update flags description.
4564         * libc/stdio/vfscanf.c: Add CHAR flag value to denote 8 bit target
4565         type.
4566         (__svfscanf_r): Add 'hh' and 'll' handling.
4567
4568 2003-04-01  Corinna Vinschen  <corinna@vinschen.de>
4569
4570         * libc/sys/cygwin/sys/dirent.h (struct DIR): Change type of
4571         __d_position member to _off_t.
4572
4573 2003-03-20  Jeff Johnston  <jjohnstn@redhat.com>
4574
4575         * libc/stdio/vfscanf.c (__svfscanf_r): For floating point conversion,
4576         count all characters used to create number against maximum width.
4577         * libc/machine/powerpc/vfscanf.c (__svfscanf_r): Ditto.
4578
4579 2003-03-18  D.Venkatasubramanian  <dvenkat@noida.hcltech.com>
4580
4581         * libc/include/sys/h8300hms/crt0.S[__SIMULATOR__]: Add commandline
4582         support.
4583         * configure.host (h8300*-*-*): Added comment regarding -D__SIMULATOR__
4584         flag to support simulator only extensions.
4585
4586 2003-03-17  Bob Cassels  <bcassels@abinitio.com>
4587
4588         * libc/string/wcschr.c: (wcschr): Look for character first, 
4589         then for end of string, so you can do wcschr(x, '\0').
4590
4591 2003-03-10  Corinna Vinschen  <corinna@vinschen.de>     
4592
4593         * libc/include/stdio.h: Declare fgetpos, fsetpos, fseeko and ftello
4594         with internal (_fpos_t and _off_t) datatypes when compiling newlib.
4595         * libc/include/sys/unistd.h: Declare _lseek using _off_t.
4596         * libc/reent/lseekr.c (_lseek_r): Use _off_t instead of off_t.
4597         * libc/stdio/fseeko.c (fseeko): Ditto.
4598         * libc/stdio/ftello.c (ftello): Ditto.
4599         * libc/stdio/stdio.c (__swrite): Ditto.
4600         (__sseek): Ditto.
4601         * libc/stdio/fgetpos.c (fgetpos): Use _fpos_t instead of fpos_t.
4602         * libc/stdio/fseek.c (fseek): Ditto.
4603         * libc/stdio/fsetpos.c (fsetpos): Ditto.
4604         * libc/stdio/ftell.c (ftell): Ditto.
4605         * libc/stdio/local.h: Declare __sseek using _off_t.
4606
4607 2003-03-09  Corinna Vinschen  <corinna@vinschen.de>
4608
4609         * libc/reent/lseekr.c (lseek_r): Use _off_t instead of off_t.
4610
4611 2003-03-09  Corinna Vinschen  <corinna@vinschen.de>
4612
4613         * libc/include/sys/config.h: Define __CYGWIN_USE_BIG_TYPES__ for
4614         Cygwin.
4615
4616 2003-03-09  Corinna Vinschen  <corinna@vinschen.de>
4617
4618         * libc/include/pwd.h: Add guards to avoid type clashes when compiling
4619         Cygwin.
4620         * libc/include/sys/stat.h: Ditto.
4621         * libc/include/sys/unistd.h: Ditto.
4622         * libc/sys/cygwin/sys/dirent.h: Ditto.
4623
4624 2003-03-07  Christopher Faylor  <cgf@redhat.com>
4625
4626         * libc/include/sys/unistd.h: Guard getopt.h call to force only
4627         declaration of getopt and avoid getopt_long declaration.
4628         * libc/sys/cygwin/include/unistd.h: Remove.
4629
4630 2003-03-07  Corinna Vinschen  <corinna@vinschen.de>
4631
4632         * configure.host: Define stdio64_dir for Cygwin.
4633         * libc/include/stdio.h: Change definition of fpos_t to fulfill
4634         Cygwin 64bit file access requirements.
4635         Drop definition of f*64() functions when compiled for Cygwin.
4636         * libc/include/sys/config.h: Define __LARGE64_FILES for Cygwin.
4637         * libc/reent/lseek64r.c: Use _off64_t instead of off64_t.
4638         * libc/stdio64/local64.h: Use _fpos64_t instead of fpos64_t.
4639
4640 2003-03-07   Jeff Johnston  <jjohnstn@redhat.com>
4641
4642         * libc/include/sys/reent.h: Remove extraneous _sig_func
4643         declaration.
4644
4645 2003-02-25   D.Venkatasubramanian <dvenkat@noida.hcltech.com>
4646
4647         * libc/sys/h8300hms/Makefile.am: Add support for new files.
4648         * libc/sys/h8300hms/Makefile.in: Regenerated.
4649         * libc/sys/h8300hms/close.S: New file.
4650         * libc/sys/h8300hms/fstat.S: Ditto.
4651         * libc/sys/h8300hms/lseek.S: Ditto.
4652         * libc/sys/h8300hms/open.S: Ditto.
4653         * libc/sys/h8300hms/stat.S: Ditto.
4654         * libc/sys/h8300hms/read.S: New file to replace read.c.
4655         * libc/sys/h8300hms/read.c: Removed.
4656         * libc/sys/h8300hms/syscalls.c: Removed functions _open,
4657         _lseek, _close, _stat, _fstat.
4658         * libc/sys/h8300hms/write.S: New file to replace write.c.
4659         * libc/sys/h8300hms/write.c: Removed.
4660
4661 2003-02-20  Nick Clifton  <nickc@redhat.com>
4662
4663         * Add support for Cirrus Maverick ARM co-processor:
4664         
4665         2000-09-13  Aldy Hernandez  <aldyh@redhat.com>
4666
4667                 * libc/include/machine/ieeefp.h: Set IEEE_BIG_ENDIAN or
4668                 IEEE_LITTLE_ENDIAN depending on endian mode (cirrus).
4669
4670         2000-08-11  Aldy Hernandez  <aldyh@redhat.com>
4671
4672                 * configure.host: set sys_dir, syscall_dir, and
4673                 newlib_cflags for ep9312 host.
4674
4675         * configure.host: Restore alpha sorting of entries in case
4676         statements.
4677
4678 2003-02-19  Jeff Johnston  <jjohnstn@redhat.com>
4679
4680         * libc/stdlib/mallocr.c (unlink): Revert 02/18 fix.
4681
4682 2003-02-18  Christian Groessler  <chris@groessler.org>
4683
4684         * libc/machine/z8k/setjmp.S (_setjmp / _longjmp): Fix to
4685         support z8001 segmented mode.
4686
4687 2003-02-18  Earnie Boyd  <earnie@users.sf.net>
4688
4689         * libc/stdlib/mallocr.c (unlink): Don't assign a value to a pointer
4690         with a NULL value.
4691
4692 2003-02-10  Christopher Faylor  <cgf@redhat.com>
4693
4694         * libc/include/sys/types.h: Don't define __MS_types__ for Cygwin.
4695         Don't define some types under cygwin.
4696
4697 2003-02-07  Jeff Johnston  <jjohnstn@redhat.com>
4698
4699         * acinclude.m4 (--disable-newlib-supplied-syscalls): New configuration 
4700         option to allow disabling of syscalls being supplied in newlib.
4701         * aclocal.m4: Regenerated.
4702         * configure: Ditto.
4703         * configure.host: Add support of new configuration option and add
4704         -D__NO_SYSCALLS__ if newlib supplied syscalls are disabled.
4705         * doc/aclocal.m4: Regenerated.
4706         * doc/configure: Ditto.
4707         * libc/*aclocal.m4: Ditto.
4708         * libc/*configure: Ditto.
4709         * libm/*aclocal.m4: Ditto.
4710         * libm/*configure: Ditto.
4711         * libc/sys/arm/Makefile.am: Don't build syscalls.o if new option
4712         is disabled.
4713         * libc/sys/arm/Makefile.in: Regenerated.
4714
4715 2003-02-05  Jonathan Larmour  <jifl@eCosCentric.com>
4716
4717         * libc/stdio/vsprintf.c (vsprintf, _vsprintf_r): Set _file fd to
4718         -1 to be sure it cannot later match a valid file fd causing
4719         isatty() to return 1.
4720         * libc/stdio/asprintf.c (asprintf, _asprintf_r): Ditto.
4721         * libc/stdio/sprintf.c (sprintf, _sprintf_r): Ditto.
4722         * libc/stdio/vasprintf.c (vasprintf, _vasprintf_r): Ditto.
4723
4724 2003-02-03  Jeff Johnston  <jjohnstn@redhat.com>
4725
4726         * libc/stdlib/ldtoa.c (_ldtoa_r): Fix code to allocate the format
4727         buffer based on the precision, after we have processed the input value 
4728         in a local buffer and know its relative magnitude. 
4729
4730 2003-01-31  Michael Snyder  <msnyder@redhat.com>
4731
4732         * libc/sys/h8300hms/_exit.c (_exit, __exit):  Slip a magic cookie
4733         into registers r1 and r2, so that the simulator can distinguish
4734         this trap from a breakpoint trap.  Copied from libgloss.
4735
4736 2003-01-31  Michael Snyder  <msnyder@redhat.com>
4737
4738         * libc/sys/h8300hms/crt0.S (_start): Change local label
4739         from .loop to .Loop, so that ld and gdb will ignore it.
4740
4741 2003-01-29  Jason Tishler  <jason@tishler.net>
4742
4743         * libc/include/time.h: Declare nanosleep() under Cygwin.
4744
4745 2003-01-24  Nick Clifton  <nickc@redhat.com>
4746
4747         * Add sh2e support:
4748
4749         2002-04-02  Alexandre Oliva  <aoliva@redhat.com>
4750
4751                 * libc/machine/sh/asm.h: Added __SH2E__ next to __SH3E__.
4752                 * libc/machine/sh/setjmp.S: Likewise.
4753                 * libc/include/machine/ieeefp.h: Likewise.
4754
4755 2003-01-24  Corinna Vinschen  <corinna@vinschen.de>
4756
4757         * libc/include/sys/unistd.h: Add setregid and setreuid declarations
4758         for Cygwin.
4759
4760 2003-01-21 Anita Kulkarni  <anitak@kpit.com>
4761   
4762         * libc/time/difftime.c : Typecast the result to double.
4763
4764 2003-01-20  Christopher Faylor  <cgf@redhat.com>
4765
4766         * libc/include/sys/unistd.h: Add rresvport declaration for cygwin.
4767
4768 2003-01-18  Nick Clifton  <nickc@redhat.com>
4769
4770         * libc/include/machine/ieeefp.h : Define __IEEE_BIG_ENDIAN,
4771         __SMALL_BITFIELDS and _DOUBLE_IS_32BITS for IP2K.
4772
4773 2003-01-16  Joel Sherrill <joel@OARcorp.com>
4774
4775         * libc/sys/rtems/include/limits.h, libc/sys/rtems/sys/param.h,
4776         libc/sys/rtems/sys/syslimits.h: Update to be in sync with what 
4777         constants are defined in each file in the shared versions in
4778         libc/include.
4779         * libc/sys/rtems/crt0.c: Define extra symbols on SH and HP-PA to
4780         autoconf can link programs.
4781         * libc/include/machine/types.h: Explicitly specify signed on
4782         intXX_t types to ensure they are signed.
4783
4784 2003-01-14  Christopher Faylor  <cgf@redhat.com>
4785
4786         * libc/time/strftime.c (strftime): Add '%h' and '%l, %k' GNU
4787         extensions.
4788
4789 2003-01-08  Richard Sandiford  <rsandifo@redhat.com>
4790
4791         * configure.host (mips64vr-elf, mips64vrel-elf): New config.
4792
4793 2003-01-07  Charles Wilson  <cwilson@ece.gatech.edu>
4794
4795         * libc/stdio/sprintf.c: fix typo
4796         * libc/stdio/vfprintf.c: fix typo
4797
4798 2003-01-07  Jeff Johnston  <jjohnstn@redhat.com>
4799
4800         * configure.host: Support long double I/O for x86-linux.
4801         * libc/stdlib/ldtoa.c (_ldtoa_r): Fix code to allocate a buffer
4802         large enough to hold formatted result.
4803         * libc/machine/powerpc/simdldtoa.c (_simdldtoa_r): Ditto.
4804
4805 2003-01-06  Charles Wilson  <cwilson@ece.gatech.edu>
4806
4807         * Makefile.am: Add vasprintf.
4808         * Makefile.in: Regenerated.
4809
4810 2003-01-06  Charles Wilson  <cwilson@ece.gatech.edu>
4811
4812         * asprintf.c (_asprintf_r): insure both declarations
4813         are the same.
4814
4815 2002-12-28  Christopher Faylor  <cgf@redhat.com>
4816
4817         * libc/include/sys/unistd.h: Under cygwin, just include getopt.h rather
4818         than defining getopt directly.
4819
4820 2002-12-20  Jeff Johnston  <jjohnstn@redhat.com>
4821
4822         * NEWS: Update with 1.11.0 info.
4823         * README: Ditto.
4824         * acinclude.m4: Change version number to 1.11.0.
4825         * aclocal.m4: Regenerated.
4826         * configure: Ditto.
4827         * doc/aclocal.m4: Ditto.
4828         * doc/configure: Ditto.
4829         * libc/*/aclocal.m4: Ditto.
4830         * libc/*/configure: Ditto.
4831         * libc/libc.texinfo: Ditto.
4832         * libm/*/aclocal.m4: Ditto.
4833         * libm/*/configure: Ditto.
4834         * libm/libm.texinfo: Ditto.
4835         * libc/sys/linux/shared.ld: Add VERS_1.11.
4836
4837 2002-12-20  Jeff Johnston  <jjohnstn@redhat.com>
4838
4839         * libc/machine/i386/f_atan2.S: Change copyright from Cygnus
4840         Solutions to Red Hat Inc.
4841         * libc/machine/i386/f_atan2f.S: Ditto.
4842         * libc/machine/i386/f_exp.c: Ditto.
4843         * libc/machine/i386/f_expf.c: Ditto.
4844         * libc/machine/i386/f_frexp.S: Ditto.
4845         * libc/machine/i386/f_frexpf.S: Ditto.
4846         * libc/machine/i386/f_ldexp.S: Ditto.
4847         * libc/machine/i386/f_ldexpf.S: Ditto.
4848         * libc/machine/i386/f_log.S: Ditto.
4849         * libc/machine/i386/f_log10.S: Ditto.
4850         * libc/machine/i386/f_log10f.S: Ditto.
4851         * libc/machine/i386/f_logf.S: Ditto.
4852         * libc/machine/i386/f_pow.c: Ditto.
4853         * libc/machine/i386/f_powf.c: Ditto.
4854         * libc/machine/i386/f_tan.S: Ditto.
4855         * libc/machine/i386/f_tanf.S: Ditto.
4856         * libc/machine/i386/memchr.S: Ditto.
4857         * libc/machine/i386/memcmp.S: Ditto.
4858         * libc/machine/i386/memcpy.S: Ditto.
4859         * libc/machine/i386/memmove.S: Ditto.
4860         * libc/machine/i386/memset.S: Ditto.
4861         * libc/machine/i386/strchr.S: Ditto.
4862         * libc/machine/i386/strlen.S: Ditto.
4863         * libm/machine/i386/f_atan2.S: Ditto.
4864         * libm/machine/i386/f_atan2f.S: Ditto.
4865         * libm/machine/i386/f_exp.c: Ditto.
4866         * libm/machine/i386/f_expf.c: Ditto.
4867         * libm/machine/i386/f_frexp.S: Ditto.
4868         * libm/machine/i386/f_frexpf.S: Ditto.
4869         * libm/machine/i386/f_ldexp.S: Ditto.
4870         * libm/machine/i386/f_ldexpf.S: Ditto.
4871         * libm/machine/i386/f_log.S: Ditto.
4872         * libm/machine/i386/f_log10.S: Ditto.
4873         * libm/machine/i386/f_log10f.S: Ditto.
4874         * libm/machine/i386/f_logf.S: Ditto.
4875         * libm/machine/i386/f_pow.c: Ditto.
4876         * libm/machine/i386/f_powf.c: Ditto.
4877         * libm/machine/i386/f_tan.S: Ditto.
4878         * libm/machine/i386/f_tanf.S: Ditto.
4879
4880 2002-12-20  Jeff Johnston  <jjohnstn@redhat.com>
4881
4882         * libc/stdlib/environ.c: Update license to Red Hat.
4883         * libc/machine/hppa/setjmp.S: Ditto.
4884         * libm/test/Makefile.in: Ditto.
4885
4886 2002-12-19  Jeff Johnston  <jjohnstn@redhat.com>
4887
4888         * configure.host: Remove references to go32.
4889         * libc/sys/go32/*: Removed.
4890
4891 2002-12-16  Kazu Hirata  <kazu@cs.umass.edu>
4892
4893         * libc/include/sys/config.h: Change setting of INT_MAX
4894         and UINT_MAX, to use __INT_MAX__ for __H8300__, __H8300H__,
4895         __H8300S__.  Also consolidate flag settings for these
4896         platforms.
4897
4898 2002-12-10  Joel Sherrill  <joel@OARcorp.com>
4899
4900         * libc/include/machine/setjmp.h: Make sure _JBLEN is defined
4901         for i386-rtems targets.
4902
4903 2002-12-06  Jeff Johnston  <jjohnstn@redhat.com>
4904
4905         * libc/include/stdlib.h (strtof): New prototype (from C99).
4906         (strtodf): Changed from prototype to macro which redefines
4907         to strtof.
4908         * libc/stdlib/atof.c: Change documentation to refer to strtof
4909         instead of strtodf.
4910         * libc/stdlib/atoff.c (atoff): Change to call strtof instead of
4911         strtodf.
4912         * libc/stdlib/strtod.c (strtodf): Renamed to strtof.
4913         (strtof): New function.
4914         * libm/test/convert.c (test_strtodf): Renamed to test_strtof which
4915         calls strtof.
4916
4917 2002-11-27  Christopher Faylor  <cgf@redhat.com>
4918
4919         * libc/string/memset.c (memset): Fix comment.
4920
4921 2002-11-26  Christopher Faylor  <cgf@redhat.com>
4922
4923         * libc/string/memset.c (memset): Move initialization of 'd' earlier in
4924         function.
4925
4926 2002-11-25  Christopher Faylor  <cgf@redhat.com>
4927
4928         * libc/string/memset.c (memset): Minor optimization: Use new 'd'
4929         variable, introduced below, everywhere.
4930
4931 2002-11-25  Kazu Hirata  <kazu@cs.umass.edu>
4932
4933         * libc/string/memset.c (memset): Make it safe even if
4934         sizeof (int) = 2.
4935
4936 2002-11-22  Joe Buehler  <jbuehler@hekimian.com>
4937
4938         * configure.in: Change check for libc/include in ${CC} to
4939         use an intermediate value so as to work with different shells.
4940         * configure: Regenerated.
4941         * Makefile.in: Ditto.
4942
4943 2002-11-22  Vijay L. Khuspe  <vijayk1@kpit.com>
4944
4945         * libc/sys/h8300hms/read.c: Add support for normal mode
4946         architecture.
4947
4948 2002-11-20  Ryo Tsuruta  <ryo@kitanet.ne.jp>
4949
4950         * libc/machine/h8300/setjmp.S (setjmp, longjmp): Combine common
4951         code for __H8300H__ and __H8300S__.  Also return 32-bit return code
4952         when -mint32 is used.
4953
4954 2002-11-18  Nick Clifton  <nickc@redhat.com>
4955
4956         * libc/sys/arm/crt0.S: Add NULL to end of argv array.
4957
4958 2002-11-14  Jeff Johnston  <jjohnstn@redhat.com>
4959
4960         * testsuite/lib/passfail.exp (newlib_pass_fail): Changed to
4961         only issue one pass/fail message for a compile/link/execute.
4962         * testsuite/newlib.elix/elix.exp: New file.
4963         * testsuite/newlib.elix/tmmap.c: Ditto.
4964
4965 2002-11-06  Christopher Faylor  <cgf@redhat.com>
4966
4967         * libc/stdlib/malign.c: Don't compile if MALLOC_PROVIDED.
4968         * libc/stdlib/mlock.c: Ditto.
4969         * libc/stdlib/msize.c: Ditto.
4970         * libc/stdlib/msize.c: Ditto.
4971         * libc/stdlib/mtrim.c: Ditto.
4972         * libc/stdlib/valloc.c: Ditto.
4973
4974 2002-11-12  Jeff Johnston  <jjohnstn@redhat.com>
4975
4976         * libc/stdlib/ldtoa.c (e64toe): When checking the exponent
4977         for inf/nan, make sure that the check ignores the sign bit.
4978
4979 2002-11-07  Joel Sherrill <joel@OARcorp.com>
4980
4981         * libc/sys/rtems/machine: New directory.
4982         * libc/sys/rtems/machine/limits.h, libc/sys/rtems/machine/param.h,
4983         libc/sys/rtems/sys/param.h, libc/sys/rtems/sys/syslimits.h,
4984         libc/sys/rtems/sys/utime.h: New files added to make *-rtems newlib
4985         targets more BSD like when installed without requiring files to
4986         be overwritten at install point when RTEMS itself is installed.
4987         * Makefile.am: Pick up system dependent machine .h files such as
4988         might be found on a BSD-ish system.
4989         * Makefile.in: Regenerate.
4990         * libc/include/machine/types.h: When on an RTEMS target, define a
4991         few BSD flavor types. 
4992
4993 2002-11-06  Sergey Okhapkin  <sos@prospect.com.ru>
4994
4995         * include/utmp.h: Define WTMP_FILE.  Define and use UT_IDLEN.
4996
4997 2002-11-06  Kazuhiro Fujieda  <fujieda@jaist.ac.jp>
4998
4999         * libc/include/wchar.h: Use _{BEGIN,END}_STD_C instead of extern "C".
5000         * libc/include/wctype.h: Ditto.
5001
5002 2002-11-04  Jeff Johnston  <jjohnstn@redhat.com>
5003
5004         * libc/include/wchar.h: Add extern "C" specifier if C++.
5005         * libc/include/wctype.h: Ditto.
5006
5007 2002-10-18  Jeff Johnston  <jjohnstn@redhat.com>
5008
5009         * testsuite/newlib.wctype/tiswctype.c: New test case.
5010         * testsuite/newlib.wctype/twctrans.c: Ditto.
5011
5012 2002-10-18  Jeff Johnston  <jjohnstn@redhat.com>
5013
5014         * libc/sys/linux/machine/i386/include/endian.h: New file.
5015         * libc/sys/linux/machine/i386/include/param.h: Ditto.
5016
5017 2002-10-18  Jeff Johnston  <jjohnstn@redhat.com>
5018
5019         * libm/machine/i386/aclocal.m4: Regenerated.
5020         * libm/machine/i386/configure: Ditto.
5021
5022 2002-10-18  Jeff Johnston  <jjohnstn@redhat.com>
5023
5024         * testsuite/include/check.h: New header file to use with
5025         test cases.
5026         * testsuite/lib/newlib.exp: Add testsuite/include directory
5027         to list of header files to use.
5028         * testsuite/newlib.wctype/twctype.c: New test case for iswctype fns.
5029         * testsuite/newlib.wctype/wctype.exp: New file.
5030
5031 2002-10-11  Graham Stott  <graham.stott@btinternet.com>
5032             Richard Sandiford  <rsandifo@redhat.com>
5033
5034         * libc/include/sys/config.h (SIZE_T_SMALLER_THAN_LONG): Undefine.
5035         * libc/stdlib/mallocr.c (long_sub_size_t): Define in a way that
5036         doesn't require the SIZE_T_SMALLER_THAN_LONG macro.
5037
5038 2002-10-07      Joel Sherrill <joel@OARcorp.com>
5039
5040         * libc/sys/rtems/crt0.c: Add even more symbols so gcc() can link
5041         dummy programs.
5042
5043 2002-10-07      Joel Sherrill <joel@OARcorp.com>
5044
5045         * libc/include/pthread.h: Define PTHREAD_CANCELED.
5046
5047 2002-10-07      Joel Sherrill <joel@OARcorp.com>
5048
5049         * libc/machine/hppa/DEFS.h, libc/machine/hppa/pcc_prefix.s,
5050         libc/machine/hppa/setjmp.S, libc/machine/hppa/DEFS.h: Make this
5051         compile with current GNU tools.
5052
5053 2002-10-07  Jeff Johnston  <jjohnstn@redhat.com>
5054
5055         * Makefile.am: Add EXTRA_DIRS to allow future dependencies on
5056         the build library.
5057         * configure.in: Ditto.
5058         * Makefile.in: Regenerated.
5059         * configure: Ditto.
5060         * libc/sys/linux/Makefile.am: Add EXTRA_SUBDIRS and EXTRA_SUBLIBS
5061         for specifying configured libraries/directories.
5062         * libc/sys/linux/configure.in: Ditto.
5063         * libc/sys/linux/Makefile.in: Regenerated.
5064         * libc/sys/linux/configure: Ditto.
5065
5066 2002-10-03  Jeff Johnston  <jjohnstn@redhat.com>
5067
5068         * libc/include/reent.h: Update documentation at start of file.
5069
5070 2002-09-27  Jim Wilson  <wilson@redhat.com>
5071
5072         * libc/sys/sysnecv850/crt0.S (start): Delete v850 code for initializing
5073         the ctbp register.
5074
5075 2002-09-27  Jeff Johnston  <jjohnstn@redhat.com>
5076
5077         * libc/ctype/jp2uc.c: Change to use multiple arrays in jp2uc.h.
5078         Also convert to EUCJP before using arrays.  For values not in
5079         the conversion arrays, return WEOF.
5080         * libc/ctype/jp2uc.h: Change from one array to a number of
5081         arrays to account for the fact that the originating table
5082         is not contiguous for the input values since some are invalid.
5083
5084 2002-09-24  Jeff Johnston  <jjohnstn@redhat.com>
5085
5086         * libc/time/ctime.c: Fix prototype documentation.
5087
5088 2002-09-24  Corinna Vinschen  <corinna@vinschen.de>
5089
5090         * libc/include/sys/errno.h: Add EOVERFLOW.
5091
5092 2002-09-20  Jeff Johnston  <jjohnstn@redhat.com>
5093
5094         * libc/include/wctype.h: New file.
5095
5096 2002-09-20  Jeff Johnston  <jjohnstn@redhat.com>
5097
5098         * libc/ctype/Makefile.am: Add new files.
5099         * libc/ctype/Makefile.in: Regenerated.
5100         * libc/ctype/ctype.tex: Add new iswxxxx, towxxxx, wctype,
5101         and wctrans functions to documentation index.
5102         * libc/ctype/iswalnum.c: New file.
5103         * libc/ctype/iswalpha.c: Ditto.
5104         * libc/ctype/iswblank.c: Ditto.
5105         * libc/ctype/iswcntrl.c: Ditto.
5106         * libc/ctype/iswctype.c: Ditto.
5107         * libc/ctype/iswdigit.c: Ditto.
5108         * libc/ctype/iswgraph.c: Ditto.
5109         * libc/ctype/iswlower.c: Ditto.
5110         * libc/ctype/iswprint.c: Ditto.
5111         * libc/ctype/iswpunct.c: Ditto.
5112         * libc/ctype/iswspace.c: Ditto.
5113         * libc/ctype/iswupper.c: Ditto.
5114         * libc/ctype/iswxdigit.c: Ditto.
5115         * libc/ctype/jp2uc.c: Ditto.
5116         * libc/ctype/jp2uc.h: Ditto.
5117         * libc/ctype/local.h: Ditto.
5118         * libc/ctype/towctrans.c: Ditto.
5119         * libc/ctype/towlower.c: Ditto.
5120         * libc/ctype/towupper.c: Ditto.
5121         * libc/ctype/utf8alpha.h: Ditto.
5122         * libc/ctype/utf8print.h: Ditto.
5123         * libc/ctype/utf8punct.h: Ditto.
5124         * libc/ctype/wctrans.c: Ditto.
5125         * libc/ctype/wctype.c: Ditto.
5126         * libc/locale/locale.c (__lc_ctype): New external array to
5127         replace static lc_ctype array.
5128         * libc/stdlib/mbtowc_r.c: Use __lc_ctype to check current lc_ctype
5129         rather than reentrancy structure's _current_locale field.
5130         * libc/stdlib/wctomb_r.c: Ditto.
5131
5132 2002-09-20  Jeff Johnston  <jjohnstn@redhat.com>
5133
5134         * configure.host: Minor comment and formatting changes.
5135         * libc/Makefile.am: Add libc_la_DEPENDENCIES.
5136         * libc/Makefile.in: Regenerated.
5137         * libc/include/sys/config.h: Minor format change.
5138
5139 2002-09-19  Jeff Johnston  <jjohnstn@redhat.com>
5140
5141         * libc/syscalls/sysfcntl.c (fcntl): Fix typo in preprocessor
5142         statement comment.
5143
5144 2002-09-19  Jeff Johnston  <jjohnstn@redhat.com>
5145
5146         * libc/posix/opendir.c (opendir): Change code to check
5147         for HAVE_FCNTL before calling fcntl.
5148         * libc/search/hash.c (hash_open): Ditto.
5149         * libc/search/hash_page.c (open_tmp): Ditto.
5150         * libc/reent/Makefile.am: Add fcntlr.c.
5151         * libc/reent/Makefile.in: Regenerated.
5152         * libc/reent/fcntlr.c: New file.
5153         * libc/stdio/fdopen.c (_fdopen_r): Change to call _fcntl_r
5154         instead of _fcntl when HAVE_FCNTL flag is set.
5155         * libc/syscalls/sysfcntl.c (fcntl): Check for HAVE_FCNTL flag
5156         to see if _fcntl or _fcntl_r should be called.  If flag is not
5157         set, default to ENOSYS stub.
5158
5159 2002-09-16  Jeff Johnston  <jjohnstn@redhat.com>
5160
5161         * libc/include/wchar.h (mbstate_t): Change protective flag to
5162         be _MBSTATE_T.
5163         * libc/include/sys/_types.h (_mbstate_t): Remove protective flag.
5164         [__CYGWIN__]: Remove special code that defines mbstate_t and WEOF
5165         for Cygwin.
5166         * libc/sys/linux/sys/_types.h (_mbstate_t): Remove protective flag.
5167
5168 2002-09-11  Jeff Johnston  <jjohnstn@redhat.com>
5169
5170         * acinclude.m4 (enable-newlib-mb): Change check to
5171         default newlib_mb variable to empty string rather than "no".
5172         * configure.host: Remove hard-coding of -DMB_CAPABLE for
5173         x86-linux and Cygwin.  Add code to check for newlib_mb
5174         being unset in which case set to "yes" for x86-linux and
5175         Cygwin.  Change check for newlib_mb being "yes" to allow
5176         for an empty string.
5177         * configure.in (_MB_LEN_MAX): New AC_DEFINE.
5178         * newlib.hin (_MB_LEN_MAX): New define to configure.
5179         * aclocal.m4: Regenerated.
5180         * configure: Ditto.
5181         * libc/include/limits.h: New file.
5182         * libc/sys/linux/include/limits.h: Ditto.
5183         * doc/aclocal.m4 doc/configure libc/aclocal.m4
5184           libc/configure libc/include/%redact libc/machine/aclocal.m4
5185           libc/machine/configure libc/machine/a29k/aclocal.m4
5186           libc/machine/a29k/configure libc/machine/arm/aclocal.m4
5187           libc/machine/arm/configure libc/machine/d10v/aclocal.m4
5188           libc/machine/d10v/configure libc/machine/d30v/aclocal.m4
5189           libc/machine/d30v/configure libc/machine/fr30/aclocal.m4
5190           libc/machine/fr30/configure libc/machine/frv/aclocal.m4
5191           libc/machine/frv/configure libc/machine/h8300/aclocal.m4
5192           libc/machine/h8300/configure libc/machine/h8500/aclocal.m4
5193           libc/machine/h8500/configure libc/machine/hppa/aclocal.m4
5194           libc/machine/hppa/configure libc/machine/i386/aclocal.m4
5195           libc/machine/i386/configure libc/machine/i960/aclocal.m4
5196           libc/machine/i960/configure libc/machine/m32r/aclocal.m4
5197           libc/machine/m32r/configure libc/machine/m68hc11/aclocal.m4
5198           libc/machine/m68hc11/configure libc/machine/m68k/aclocal.m4
5199           libc/machine/m68k/configure libc/machine/m88k/aclocal.m4
5200           libc/machine/m88k/configure libc/machine/mips/aclocal.m4
5201           libc/machine/mips/configure libc/machine/mn10200/aclocal.m4
5202           libc/machine/mn10200/configure libc/machine/mn10300/aclocal.m4
5203           libc/machine/mn10300/configure libc/machine/necv70/aclocal.m4
5204           libc/machine/necv70/configure libc/machine/powerpc/aclocal.m4
5205           libc/machine/powerpc/configure libc/machine/sh/aclocal.m4
5206           libc/machine/sh/configure libc/machine/sparc/aclocal.m4
5207           libc/machine/sparc/configure libc/machine/tic80/aclocal.m4
5208           libc/machine/tic80/configure libc/machine/v850/aclocal.m4
5209           libc/machine/v850/configure libc/machine/w65/aclocal.m4
5210           libc/machine/w65/configure libc/machine/xscale/aclocal.m4
5211           libc/machine/xscale/configure
5212           libc/machine/xstormy16/aclocal.m4
5213           libc/machine/xstormy16/configure libc/machine/z8k/aclocal.m4
5214           libc/machine/z8k/configure libc/sys/aclocal.m4
5215           libc/sys/configure libc/sys/a29khif/aclocal.m4
5216           libc/sys/a29khif/configure libc/sys/arc/aclocal.m4
5217           libc/sys/arc/configure libc/sys/arm/aclocal.m4
5218           libc/sys/arm/configure libc/sys/cygwin/aclocal.m4
5219           libc/sys/cygwin/configure libc/sys/d10v/aclocal.m4
5220           libc/sys/d10v/configure libc/sys/decstation/aclocal.m4
5221           libc/sys/decstation/configure libc/sys/go32/aclocal.m4
5222           libc/sys/go32/configure libc/sys/h8300hms/aclocal.m4
5223           libc/sys/h8300hms/configure libc/sys/h8500hms/aclocal.m4
5224           libc/sys/h8500hms/configure libc/sys/idt/aclocal.m4
5225           libc/sys/idt/configure libc/sys/linux/aclocal.m4
5226           libc/sys/linux/configure libc/sys/linux/include/%redact
5227           libc/sys/linux/machine/aclocal.m4
5228           libc/sys/linux/machine/configure
5229           libc/sys/linux/machine/i386/aclocal.m4
5230           libc/sys/linux/machine/i386/configure
5231           libc/sys/m88kbug/aclocal.m4 libc/sys/m88kbug/configure
5232           libc/sys/mmixware/aclocal.m4 libc/sys/mmixware/configure
5233           libc/sys/netware/aclocal.m4 libc/sys/netware/configure
5234           libc/sys/rtems/aclocal.m4 libc/sys/rtems/configure
5235           libc/sys/sh/aclocal.m4 libc/sys/sh/configure
5236           libc/sys/sparc64/aclocal.m4 libc/sys/sparc64/configure
5237           libc/sys/sun4/aclocal.m4 libc/sys/sun4/configure
5238           libc/sys/sysmec/aclocal.m4 libc/sys/sysmec/configure
5239           libc/sys/sysnec810/aclocal.m4 libc/sys/sysnec810/configure
5240           libc/sys/sysnecv850/aclocal.m4 libc/sys/sysnecv850/configure
5241           libc/sys/sysvi386/aclocal.m4 libc/sys/sysvi386/configure
5242           libc/sys/sysvnecv70/aclocal.m4 libc/sys/sysvnecv70/configure
5243           libc/sys/tic80/aclocal.m4 libc/sys/tic80/configure
5244           libc/sys/w65/aclocal.m4 libc/sys/w65/configure
5245           libc/sys/z8ksim/aclocal.m4 libc/sys/z8ksim/configure
5246           libm/aclocal.m4 libm/configure: Regenerated.
5247
5248 2002-09-09  Jeff Johnston  <jjohnstn@redhat.com>
5249
5250         * libc/sys/linux/machine/i386/crt0.c (_start): Remove
5251         code that clears the .bss section.
5252
5253 2002-09-09  Jeff Johnston  <jjohnstn@redhat.com>
5254
5255         * libc/include/sys/_types.h (_mbstate_t): Changed to use
5256         unsigned char internally.
5257         * libc/sys/linux/sys/_types.h: Ditto.
5258         * libc/include/sys/reent.h
5259         * libc/stdlib/mblen.c (mblen): Use function-specific state
5260         value from default reentrancy structure.
5261         * libc/stdlib/mblen_r.c (_mblen_r):  If return code from
5262         _mbtowc_r is less than 0, reset state __count value and
5263         return -1.
5264         * libc/stdlib/mbrlen.c (mbrlen): If the input state pointer
5265         is NULL, use the function-specific pointer provided in the
5266         default reentrancy structure.
5267         * libc/stdlib/mbrtowc.c: Add reentrant form of function.
5268         If input state pointer is NULL, use function-specific area
5269         provided in reentrancy structure.
5270         * libc/stdlib/mbsrtowcs.c: Ditto.
5271         * libc/stdlib/wcrtomb.c: Ditto.
5272         * libc/stdlib/wcsrtombs.c: Ditto.
5273         * libc/stdlib/mbstowcs.c: Reformat.
5274         * libc/stdlib/wcstombs.c: Ditto.
5275         * libc/stdlib/mbstowcs_r.c (_mbstowcs_r): If an error occurs,
5276         reset the state's __count value and return -1.
5277         * libc/stdlib/mbtowc.c: Ditto.
5278         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Add restartable functionality.
5279         If number of bytes is used up before completing a valid multibyte
5280         character, return -2 and save the state.
5281         * libc/stdlib/wctomb_r.c (_wctomb_r): Define __state as __count
5282         and change some __count references to __state for clarity.
5283
5284 2002-09-06  Jeff Johnston  <jjohnstn@redhat.com>
5285
5286         * libc/include/sys/config.h (MB_LEN_MAX): Removed as this
5287         is defined by <limits.h>.
5288
5289 2002-09-05  Kazuhiro Fujieda  <fujieda@jaist.ac.jp>
5290
5291         * libc/include/wchar.h (WCHAR_MAX): Only define if not already
5292         defined.
5293
5294 2002-09-04  Kazuhiro Fujieda  <fujieda@jaist.ac.jp>
5295
5296         * libc/include/sys/config.h: Define accordingly __WCHAR_MAX__.
5297         * libc/include/wchar.h: Define WCHAR_MIN as 0 and WCHAR_MAX as
5298         __WCHAR_MAX__ or 0x7fffffffu.
5299         * libc/string/wcscmp.c: Delete wrong and unnecessary type cast.
5300         * libc/string/wcsncmp.c: Ditto.
5301
5302 2002-09-03  Jeff Johnston  <jjohnstn@redhat.com>
5303
5304         * libc/string/wcschr.c: Add include of <stddef.h>.
5305         * libc/string/wcspbrk.c: Ditto.
5306         * libc/string/wcsrchr.c: Ditto.
5307         * libc/string/wcsstr.c: Ditto.
5308
5309 2002-09-03  Jeff Johnston  <jjohnstn@redhat.com>
5310
5311         * libc/include/sys/_types.h (_flock_t): Added.
5312         * libc/include/sys/lock.h (__lock_try_acquire): New interface.
5313         (__lock_try_acquire_recursive): Ditto.
5314         * libc/include/sys/reent.h (__sFILE, __sFILE64): Add new
5315         _lock field.
5316         * libc/stdio/findfp.c (std)[!__SINGLE_THREAD__]: Initialize _lock
5317         field.
5318         * libc/stdio/fopen.c (_fopen_r)[!__SINGLE_THREAD__]: Ditto.
5319         * libc/stdio64/fopen64.c (_fopen64_r)[!__SINGLE_THREAD__]: Ditto.
5320         * libc/sys/linux/include/time.h (struct timespec): Moved from
5321         <sys/types.h> and added check for __need_timespec flag so type
5322         can be defined by itself.
5323         * libc/sys/linux/sys/_types.h (_flock_t): New type.
5324         * libc/sys/linux/sys/types.h (struct timespec): Moved to
5325         <time.h>.
5326
5327 2002-08-29  Thomas Fitzsimmons  <fitzsim@redhat.com>
5328
5329         * libc/sys/linux/argp: New directory.
5330         * libc/sys/linux/getopt.c: New file.
5331         * libc/sys/linux/getopt1.c: New file.
5332         * libc/sys/linux/getoptlong.c: Remove file.
5333         * libc/sys/linux/include/argp.h: New file.
5334         * libc/sys/linux/Makefile.am: Define argp_dir and ARGP_LIB,
5335         based on ELIX level.
5336         (SUBDIRS): Add argp_dir.
5337         (SUBLIBS): Add ARGP_LIB.
5338         (ELIX_2_OBJS): Add getopt.$(oext), getopt1.$(oext), remove
5339         getopt_long.$(oext).
5340         * libc/sys/linux/configure.in (AC_OUTPUT): Add argp/Makefile.
5341
5342 2002-08-29  Jeff Johnston  <jjohnstn@redhat.com>
5343
5344         * libc/libc.texinfo: Add node reference to wide-character strings.
5345         * libc/string/wcstrings.tex: New file.
5346         * libc/string/strtok_r.c: Remove outdated advertising clause.
5347         * libc/string/Makefile.am (doc): Add wide-character string
5348         chapter to documentation.
5349         * libc/string/Makefile.in: Regenerated.
5350
5351 2002-08-29  Kazuhiro Fujieda  <fujieda@jaist.ac.jp>
5352
5353         * libc/include/wchar.h: Define NULL. Define WEOF more general
5354         way. Declare functions in newlib manner.
5355         * libc/stdlib/Makefile.am: Delete wmem*.c
5356         * libc/stdlib/Makefile.in: Regenerated.
5357         * libc/stdlib/wmemchr.c: Delete.
5358         * libc/stdlib/wmemcmp.c: Ditto.
5359         * libc/stdlib/wmemcpy.c: Ditto.
5360         * libc/stdlib/wmemmove.c: Ditto.
5361         * libc/stdlib/wmemset.c: Ditto.
5362         * libc/string/Makefile.am: Add wmem*.c and wcs*.c.
5363         * libc/string/Makefile.in: Regenerated.
5364         * libc/string/wcscat.c: New file derived from the NetBSD C Library.
5365         * libc/string/wcschr.c: Ditto.
5366         * libc/string/wcscmp.c: Ditto.
5367         * libc/string/wcscpy.c: Ditto.
5368         * libc/string/wcscspn.c: Ditto.
5369         * libc/string/wcslcat.c: Ditto.
5370         * libc/string/wcslcpy.c: Ditto.
5371         * libc/string/wcslen.c: Ditto.
5372         * libc/string/wcsncat.c: Ditto.
5373         * libc/string/wcsncmp.c: Ditto.
5374         * libc/string/wcsncpy.c: Ditto.
5375         * libc/string/wcspbrk.c: Ditto.
5376         * libc/string/wcsrchr.c: Ditto.
5377         * libc/string/wcsspn.c: Ditto.
5378         * libc/string/wcsstr.c: Ditto.
5379         * libc/string/wmemchr.c: Ditto.
5380         * libc/string/wmemcmp.c: Ditto.
5381         * libc/string/wmemcpy.c: Ditto.
5382         * libc/string/wmemmove.c: Ditto.
5383         * libc/string/wmemset.c: Ditto.
5384
5385 2002-08-29  Jeff Johnston  <jjohnstn@redhat.com>
5386
5387         * libc/locale/locale.c (_setlocale_r)[MB_CAPABLE]: Fix so
5388         default locale "" is accepted for LC_CTYPE or LC_MESSAGES
5389         and is treated as if "C" was specified.
5390
5391 2002-08-28  Jeff Johnston  <jjohnstn@redhat.com>
5392
5393         * Makefile.am (install-data-local): Move install of build
5394         newlib.h after installing headers in libc/include so as to
5395         overwrite default newlib.h.
5396         * Makefile.in: Regenerated.
5397
5398 2002-08-28  Jeff Johnston  <jjohnstn@redhat.com>
5399
5400         * libc/include/newlib.h: New file for tools that use newlib
5401         headers but don't build newlib first (e.g. gcc).
5402
5403 2002-08-28  Jeff Johnston  <jjohnstn@redhat.com>
5404
5405         * libc/stdlib/wmemchr.c: Explicitly include <_ansi.h>.
5406         * libc/stdlib/wmemcmp.c: Ditto.
5407         * libc/stdlib/wmemcpy.c: Ditto.
5408         * libc/stdlib/wmemmove.c: Ditto.
5409         * libc/stdlib/wmemset.c: Ditto.
5410
5411 2002-08-27  Egor Duda  <deo@logos-m.ru>
5412
5413         * libc/stdlib/wmemchr.c: New file.
5414         * libc/stdlib/wmemcmp.c: Ditto.
5415         * libc/stdlib/wmemcpy.c: Ditto.
5416         * libc/stdlib/wmemmove.c: Ditto.
5417         * libc/stdlib/wmemset.c: Ditto.
5418         * libc/stdlib/Makefile.am (GENERAL_SOURCES): Add new files.
5419         * configure.host: Default -DMB_CAPABLE for cygwin.
5420         * libc/include/wchar.h: Declare wmemchr(), wmemcmp(), wmemcpy(),
5421         wmemmove() and wmemset().  Add include of <_ansi.h>.
5422         * libc/stdlib/Makefile.in: Regenerate.
5423
5424 2002-08-27  Jeff Johnston  <jjohnstn@redhat.com>
5425
5426         * configure.host: Remove _ELIX_LEVEL flag setting.
5427         * Makefile.am(stmp-targ-include): Copy newlib.h to targ-include.
5428         (install-data-local): Install newlib.h.
5429         * Makefile.in: Regenerated.
5430         * aclocal.m4: Ditto.
5431         * configure: Ditto.
5432         * configure.in: Add AM_CONFIG_HEADER to generate newlib.h based on 
5433         newlib.hin.  Add AC_DEFINE_UNQUOTED entries for _ELIX_LEVEL
5434         and _NEWLIB_VERSION to fill in newlib.h header file entries.
5435         In AC_OUTPUT statement, unset ac_file so multilib support does
5436         not use last ac_file temporary used in newlib.h configuration.
5437         * libc/include/_ansi.h: Include <newlib.h>.
5438         * newlib.hin: New template file for newlib.h.
5439         * stamp-h.in: New file.
5440
5441 2002-08-26  Wu Yongwei <adah@netstd.com>
5442
5443         * time.h (timezonevar): Change "#if" to "#ifdef".
5444
5445 2002-08-26  Jeff Johnston  <jjohnstn@redhat.com>
5446
5447         * Makefile.am(LIBC_OBJECTLISTS): Add STDIO64_OBJECTLIST.
5448         * Makefile.in: Regenerated.
5449         * acinclude.m4: Add support for --enable-newlib-elix-level option.
5450         * aclocal.m4: Regenerated.
5451         * configure: Ditto.
5452         * configure.host: Add code to define _ELIX_LEVEL if
5453         --enable-newlib-elix-level option is used.
5454         * configure.in: 
5455         * libc/aclocal.m4: Regenerated.
5456         * libc/configure: Ditto.
5457         * libc/argz/Makefile.am: Add EL/IX level checking.
5458         * libc/argz/Makefile.in: Regenerated.
5459         * libc/argz/dummy.c: New file.
5460         * libc/ctype/Makefile.am: Add EL/IX level checking.
5461         * libc/ctype/Makefile.in: Regenerated.
5462         * libc/locale/Makefile.am: Add EL/IX level checking.
5463         * libc/locale/Makefile.in: Regenerated.
5464         * libc/posix/Makefile.am: Add EL/IX level checking.
5465         * libc/posix/Makefile.in: Regenerated.
5466         * libc/posix/telldir.c: Add EL/IX level checking.
5467         * libc/reent/Makefile.am: Ditto.
5468         * libc/reent/fstat64r.c: Ditto.
5469         * libc/reent/lseek64r.c: Ditto.
5470         * libc/reent/open64r.c: Ditto.
5471         * libc/reent/Makefile.in: Regenerated.
5472         * libc/search/Makefile.am: Add EL/IX level checking.
5473         * libc/search/Makefile.in: Regenerated.
5474         * libc/stdio/Makefile.am: Add EL/IX level checking.
5475         * libc/stdio/Makefile.in: Regenerated.
5476         * libc/stdio64/Makefile.am: Add EL/IX level checking.
5477         * libc/stdio64/Makefile.in: Regenerated.
5478         * libc/stdio64/dummy.c: New file.
5479         * libc/stdio64/fgetpos64.c: Fix so _LARGE64_FILES macro is checked
5480         after first include.
5481         * libc/stdio64/fopen64.c: Ditto.
5482         * libc/stdio64/freopen64.c: Ditto.
5483         * libc/stdio64/fseeko64.c: Ditto.
5484         * libc/stdio64/fsetpos64.c: Ditto.
5485         * libc/stdio64/ftello64.c: Ditto.
5486         * libc/stdio64/tmpfile64.c: Ditto.
5487         * libc/stdlib/Makefile.am: Add EL/IX level checking.
5488         * libc/stdlib/Makefile.in: Regenerated.
5489         * libc/stdlib/mstats.c: Add EL/IX level checking.
5490         * libc/string/Makefile.am: Ditto.
5491         * libc/string/Makefile.in: Regenerated.
5492         * libc/sys/linux/Makefile.am: Add EL/IX level checking.
5493         * libc/sys/linux/Makefile.in: Regenerated.
5494         * libc/sys/linux/aclocal.m4: Ditto.
5495         * libc/sys/linux/configure: Ditto.
5496         * libc/sys/linux/aio.c: Add EL/IX level checking.
5497         * libc/sys/linux/ftok.c: Ditto.
5498         * libc/sys/linux/getdate.c: Ditto.
5499         * libc/sys/linux/ids.c: Ditto.
5500         * libc/sys/linux/inode.c: Ditto.
5501         * libc/sys/linux/io.c: Ditto.
5502         * libc/sys/linux/process.c: Ditto.
5503         * libc/sys/linux/resource.c: Ditto.
5504         * libc/sys/linux/sched.c: Ditto.
5505         * libc/sys/linux/sig.c: Ditto.
5506         * libc/sys/linux/termios.c: Ditto.
5507         * libc/sys/linux/wait.c: Ditto plus add __waitpid and
5508         __libc___waitpid weak aliases.
5509         * libc/sys/linux/machine/i386/syscall.h: Add new _base macros
5510         that generate the code for a syscall, but do not create a
5511         weak alias.
5512         * libc/syscalls/Makefile.am: Add EL/IX level checking.
5513         * libc/syscalls/Makefile.in: Regenerated.
5514         * libc/time/tzset_r.c: Change to replace strdup with equivalent
5515         functionality.
5516         * libc/unix/Makefile.am: Add EL/IX level checking.
5517         * libc/unix/Makefile.in: Regenerated.
5518
5519 2002-08-26  Christopher Faylor  <cgf@redhat.com>
5520
5521         * libc/include/malloc.h: On cygwin, define malloc _r functions as
5522         wrapper macros to standard malloc functions.
5523         * libc/include/stdlib.h: Ditto.
5524         * configure.host: Always define MALLOC_PROVIDED on cygwin.
5525
5526 2002-08-22  Thomas Fitzsimmons  <fitzsim@redhat.com>
5527
5528         * libc/include/langinfo.h: New file.
5529         * libc/include/wchar.h: Likewise.
5530         * libc/include/sys/syslimits.h: Likewise.
5531         * libc/locale/fix_grouping.c: Likewise.
5532         * libc/locale/ldpart.c: Likewise.
5533         * libc/locale/ldpart.h: Likewise.
5534         * libc/locale/lmessages.c: Likewise.
5535         * libc/locale/lmessages.h: Likewise.
5536         * libc/locale/lmonetary.c: Likewise.
5537         * libc/locale/lmonetary.h: Likewise.
5538         * libc/locale/lnumeric.c: Likewise.
5539         * libc/locale/lnumeric.h: Likewise.
5540         * libc/locale/nl_langinfo.3: Likewise.
5541         * libc/locale/nl_langinfo.c: Likewise.
5542         * libc/locale/timelocal.c: Likewise.
5543         * libc/locale/timelocal.h: Likewise.
5544         * libc/stdlib/btowc.c: Likewise.
5545         * libc/stdlib/mbrlen.c: Likewise.
5546         * libc/stdlib/mbrtowc.c: Likewise.
5547         * libc/stdlib/mbsinit.c: Likewise.
5548         * libc/stdlib/mbsrtowcs.c: Likewise.
5549         * libc/stdlib/wcrtomb.c: Likewise.
5550         * libc/stdlib/wcsrtombs.c: Likewise.
5551         * libc/stdlib/wctob.c: Likewise.
5552         * libc/sys/linux/prof-freq.c: Likewise.
5553         * libc/sys/linux/profile.c: Likewise.
5554         * libc/sys/linux/machine/i386/dl-procinfo.c: Likewise.
5555         * libc/sys/linux/machine/i386/dl-procinfo.h: Likewise.
5556         * libc/include/stdlib.h: Change re-entrant functions to take
5557         mbstate_t pointers.
5558         * libc/include/sys/_types.h: Define _mbstate_t.
5559         * libc/include/sys/config.h (MB_LEN_MAX): New macro.
5560         * libc/include/sys/errno.h (EILSEQ): New error code.
5561         * libc/include/sys/reent.h: Include wchar.h.  Change reentrant
5562         structure to use mbstate_t.
5563         * libc/locale/Makefile.am (LIB_SOURCES): Add new files.
5564         * libc/machine/powerpc/vfprintf.c: Use mbstate_t.
5565         * libc/machine/powerpc/vfscanf.c: Likewise.
5566         * libc/stdio/getdelim.c: Reallocate buffer only when necessary.
5567         * libc/stdio/vfprintf.c: Likewise.
5568         * libc/stdio/vfscanf.c: Likewise.
5569         * libc/stdlib/Makefile.am (LIB_SOURCES): Add new files.
5570         * libc/stdlib/mblen.c: Use mbstate_t.
5571         * libc/stdlib/mblen_r.c: Likewise.
5572         * libc/stdlib/mbstowcs.c: Likewise.
5573         * libc/stdlib/mbstowcs_r.c: Likewise.
5574         * libc/stdlib/mbtowc.c: Likewise.
5575         * libc/stdlib/mbtowc_r.c: Likewise.
5576         * libc/stdlib/wcstombs.c: Likewise.
5577         * libc/stdlib/wcstombs_r.c: Likewise.
5578         * libc/stdlib/wctomb_r.c: Likewise.
5579         * libc/sys/linux/Makefile.am (LIB_SOURCES): Add prof-freq.c and
5580         profile.c.
5581         * libc/sys/linux/machine/i386/Makefile.am (LIB_SOURCES): Add
5582         dl-procinfo.c.
5583         * libc/sys/linux/sys/errno.h (EILSEQ): New error code.
5584         * libc/sys/linux/sys/types.h (off_t): Define type.
5585         * testsuite/newlib.locale/UTF-8.c: Change locale name from UTF-8
5586         to C-UTF-8.
5587         * testsuite/newlib.locale/UTF-8.exp: Likewise.
5588
5589 2002-08-20  Casper S. Hornstrup  <chorns@users.sourceforge.net>
5590
5591         * libc/stdlib/mallocr.c: #include windows.h on Win32.
5592           (AlignPage): Continue macro on next line.
5593
5594 2002-08-19  Jeff Johnston  <jjohnstn@redhat.com>
5595
5596         * libc/sys/linux/include/pthread.h: New file.
5597
5598 2002-08-19  Jeff Johnston  <jjohnstn@redhat.com>
5599
5600         * libc/include/sys/types.h: Support __need_inttypes macro
5601         that only sets the __intxx and __uintxx types.  
5602         * libc/machine/powerpc/Makefile.am: Add stdlib to include directories
5603         to get mprec.h.
5604         * libc/machine/powerpc/Makefile.in: Regenerated.
5605         * libc/machine/powerpc/vfprintf.c: Fix state variable type.
5606         * libc/machine/powerpc/vfscanf.c: Fix state variable type.  Remove
5607         redundant fixed-point conversion prototypes.
5608         * libc/machine/powerpc/machine/stdlib.h[__SPE__]: Include <sys/types.h>
5609         after setting __need_inttypes.
5610
5611 2002-08-18  Christopher Faylor  <cgf@redhat.com>
5612
5613         * libc/include/sys/unistd.h: Add getsid declaration for cygwin.
5614
5615 2002-08-17  Jeff Johnston  <jjohnstn@redhat.com>
5616
5617         * libc/include/sys/config.h[__PPC__][__SPE__]: Set
5618         _LONG_DOUBLE to double.
5619
5620 2002-08-17  Jeff Johnston  <jjohnstn@redhat.com>
5621
5622         * configure.host: Add powerpc*-*-eabispe* configuration.
5623         * libc/machine/powerpc/atosfix16.c: New fixed-point conversion file.
5624         * libc/machine/powerpc/atosfix32.c: Ditto.
5625         * libc/machine/powerpc/atosfix64.c: Ditto.
5626         * libc/machine/powerpc/atoufix16.c: Ditto.
5627         * libc/machine/powerpc/atoufix32.c: Ditto.
5628         * libc/machine/powerpc/atoufix64.c: Ditto.
5629         * libc/machine/powerpc/fix64.h: Ditto.
5630         * libc/machine/powerpc/simdldtoa.c: Ditto.
5631         * libc/machine/powerpc/strtosfix16.c: Ditto.
5632         * libc/machine/powerpc/strtosfix32.c: Ditto.
5633         * libc/machine/powerpc/strtosfix64.c: Ditto.
5634         * libc/machine/powerpc/strtoufix16.c: Ditto.
5635         * libc/machine/powerpc/strtoufix32.c: Ditto.
5636         * libc/machine/powerpc/strtoufix64.c: Ditto.
5637         * libc/machine/powerpc/ufix64toa.c: Ditto.
5638         * libc/machine/powerpc/configure.in: Add check for
5639         powerpc*-eabispe and add fixed-point conversion functions.
5640         * libc/machine/powerpc/configure: Regenerated.
5641         * libc/machine/powerpc/vfprintf.c[__SPE__]: Add support for
5642         %r and %R format specifiers which handle fixed-point data.
5643         * libc/machine/powerpc/vfscanf.c[__SPE__]: Ditto.
5644         * libc/machine/powerpc/machine/stdlib.h[__SPE__]: Add fixed-point
5645         function prototypes.
5646
5647 2002-08-17  Jeff Johnston  <jjohnstn@redhat.com>
5648
5649         *  Makefile.am: Move cmath stuff into libc/sys/linux.
5650         *  Makefile.in: Regenerated.
5651         *  configure.host: Default -DMB_CAPABLE for x86-linux.
5652         *  libc/include/reent.h: Define _sbrk to take signed int argument.
5653         *  libc/include/sys/unistd.h: Ditto for _sbrk_r and sbrk.
5654         *  libc/locale/locale.c[MB_CAPABLE]: Add LC_MESSAGES support and 
5655         make locale name checking more efficient.  Also allow "C-ISO-8859-1" 
5656         locale for LC_CTYPE and LC_MESSAGES.
5657         *  libc/reent/sbrkr.c: Change prototype to take ptrdiff_t.
5658         *  libc/sys/linux/brk.c: Change sbrk prototype.
5659         *  libc/sys/linux/include/time.h: Remove Cygwin stuff and
5660         include <sys/features.h>.
5661         (CLOCK_THREAD_CPUTIME): Renamed to CLOCK_THREAD_CPUTIME_ID.
5662         (CLOCK_PROCESS_CPUTIME): Renamed to CLOCK_PROCESS_CPUTIME_ID.
5663         *  libc/sys/linux/sys/cdefs.h: Replace with glibc sys/cdefs.h
5664         with a few local additions.
5665         *  libc/sys/linux/sys/features.h: New file.
5666         *  libc/sys/linux/sys/unistd.h: Change _sbrk_r and sbrk prototypes
5667         to take signed argument.
5668         *  libc/syscalls/syssbrk.c: Change sbrk, _sbrk_r, and _sbrk
5669         prototypes to take signed size argument.
5670
5671 2002-08-16  Thomas Fitzsimmons  <fitzsim@redhat.com>
5672
5673         * libc/sys/linux/cmath: New directory.
5674         * libc/sys/linux/include/cmathcalls.h: New file.
5675         * libc/sys/linux/include/complex.h: New file.
5676         * libc/sys/linux/machine/i386/huge_val.h: New file
5677         * libm/math/w_sincos.c: New file
5678         * libm/math/wf_sincos.c: New file
5679         * libm/mathfp/s_sincos.c: New file
5680         * libm/mathfp/sf_sincos.c: New file
5681         * Makefile.am (LIBC_OBJECTLISTS): Add cmath/objectlist.awk.in.
5682         * libc/include/math.h: Add sincos and sincosf declarations.
5683         * libc/sys/linux/Makefile.am (SUBDIRS): Add cmath.
5684         (SUBLIBS): Likewise.
5685         * libc/sys/linux/configure.in (AC_OUTPUT): Add cmath.
5686         * libm/math/Makefile.am (src): Add w_sincos.c.
5687         (fsrc): Add wf_sincos.c.
5688         * libm/mathfp/Makefile.am (src): Add s_sincos.c
5689         (fsrc): Add sf_sincos.c.
5690
5691 2002-08-12  Jeff Johnston  <jjohnstn@redhat.com>
5692
5693         * libc/sys/linux/machine/i386/crt0.c (__bss_start,_end):
5694         Declare as extern chars and use the address operator to
5695         properly use values set in linker script.
5696
5697 2002-08-09  Jason Tishler  <jason@tishler.net>
5698
5699         * libc/stdlib/mallocr.c: Include <limits.h>.
5700         (request2size): Change macro to do
5701         unsigned long comparisons and avoid signed overflow.
5702         (mALLOc): Add overflow check for the number of bytes to allocate.
5703         (rEALLOc): Ditto.
5704
5705 2002-08-09  Jeff Johnston  <jjohnstn@redhat.com>
5706
5707         * configure.host: Add check for --enable-newlib-io-pos-args
5708         and define WANT_IO_POS_ARGS flag if enabled.  Define
5709         the flag by default for x86-linux configurations.
5710         * configure.in: Add support for --enable-newlib-io-pos-args.
5711         * libc/configure.in: Ditto.
5712         * configure: Regenerated.
5713         * libc/configure: Ditto.
5714         * libc/stdio/Makefile.am: Specify -fshort-enums for compiling
5715         vfprintf.c and vfiprintf.c.
5716         * libc/stdio/Makefile.in: Regenerated.
5717         * libc/stdio/vfprintf.c: Add positional argument support that
5718         is enabled by compiling with -DWANT_IO_POS_ARGS.
5719
5720 2002-08-07  Richard Sandiford  <rsandifo@redhat.com>
5721
5722         * libc/include/machine/setjmp.h: For mips, define _JBLEN based
5723         based on __mips_soft_float rather than __mips64.
5724         * libc/machine/mips/setjmp.S: Provide hard and soft float versions
5725         of both 32-bit and 64-bit code.
5726
5727 2002-08-04  Christopher Faylor  <cgf@redhat.com>
5728
5729         * libc/stdio/popen.c (popen): Allow "rb", "rt", "wb", and "wt"
5730         arguments for popen to match similar functionality in fopen.
5731
5732 2002-07-29  Pierre Humblet  <pierre.humblet@ieee.org>
5733
5734         * libc/include/sys/unistd.h: Add setgroups prototype for Cygwin.
5735
5736 2002-07-29  Jeff Johnston  <jjohnstn@redhat.com>
5737
5738         * libc/sys/linux/Makefile.am: Add aio64.c. 
5739         * libc/sys/linux/Makefile.in: Regenerated.
5740         * libc/sys/linux/aio.c (aio_init): ENOSYS stub added.
5741         * libc/sys/linux/aio64.c: New file.
5742
5743 2002-07-26  Jeff Johnston  <jjohnstn@redhat.com>
5744
5745         *  libc/include/sys/param.h (MAX, MIN): Added macros.
5746         *  libc/sys/linux/Makefile.am: Add new files.
5747         *  libc/sys/linux/Makefile.in: Regenerated.
5748         *  libc/sys/linux/sys/stat.h: Add *stat64 prototypes.
5749         *  libc/sys/linux/inode.c (fchdir): Added syscall.
5750         *  libc/sys/linux/ftw.c: New file.
5751         *  libc/sys/linux/ftw64.c: Ditto.
5752         *  libc/sys/linux/getwd.c: Ditto.
5753         *  libc/sys/linux/scandir64.c: Ditto.
5754         *  libc/sys/linux/strverscmp.c: Ditto.
5755         *  libc/sys/linux/versionsort.c: Ditto.
5756         *  libc/sys/linux/versionsort64.c: Ditto.
5757
5758 2002-07-26  Jeff Johnston  <jjohnstn@redhat.com>
5759
5760         * libc/string/strings.tex: Fix typo for memccpy.
5761
5762 2002-07-25  Jeff Johnston  <jjohnstn@redhat.com>
5763
5764         * libc/sys/linux/io64.c (truncate64, ftruncate64): Added.
5765         * libc/sys/linux/sys/types.h (off64_t): Definition added.
5766
5767 2002-07-25  Jeff Johnston  <jjohnstn@redhat.com>
5768
5769         * libc/sys/linux/Makefile.am: Add fclean.c.
5770         * libc/sys/linux/Makefile.in: Regenerated.
5771         * libc/sys/linux/fclean.c: New file.
5772
5773 2002-07-25  Jeff Johnston  <jjohnstn@redhat.com>
5774
5775         * libc/sys/linux/Makefile.am: Add confstr.c.
5776         * libc/sys/linux/Makefile.in: Regenerated.
5777         * libc/sys/linux/confstr.c: New file.
5778         * libc/sys/linux/confstr.h: Ditto.
5779         * libc/sys/linux/sys/unistd.h: Include <features.h> and
5780         <bits/environments.h>.
5781
5782 2002-07-25  Jeff Johnston  <jjohnstn@redhat.com>
5783
5784         * libc/sys/linux/config.h (__set_errno): Macro definition removed.
5785         * libc/sys/linux/fpathconf.c (__set_errno): Ditto.
5786         * libc/sys/linux/libc-internal.h (__set_errno): Ditto.
5787         * libc/sys/linux/pathconf.c (__set_errno): Ditto.
5788         * libc/sys/linux/ttyname_r.c (__set_errno): Ditto.
5789         * libc/sys/linux/sys/errno.h (__set_errno): Macro definition added.
5790
5791 2002-07-24  Jeff Johnston  <jjohnstn@redhat.com>
5792
5793         * libc/sys/linux/Makefile.am: Add new files.
5794         * libc/sys/linux/Makefile.in: Regenerated.
5795         * libc/sys/linux/fstab.c: New file.
5796         * libc/sys/linux/fstatvfs.c: Ditto.
5797         * libc/sys/linux/fstatvfs64.c: Ditto.
5798         * libc/sys/linux/internal_statvfs.c: Ditto.
5799         * libc/sys/linux/mntent.c: Ditto.
5800         * libc/sys/linux/mntent_r.c: Ditto.
5801         * libc/sys/linux/statvfs.c: Ditto.
5802         * libc/sys/linux/statvfs64.c: Ditto.
5803         * libc/sys/linux/include/paths.h: Ditto.
5804         * libc/sys/linux/inode.c (statfs, fstatfs): New syscalls
5805         with double-underscore weak-aliases.
5806         * libc/sys/linux/sys/stat.h: Add *stat64 prototypes.
5807
5808 2002-07-24  Jeff Johnston  <jjohnstn@redhat.com>
5809
5810         * libc/include/signal.h (SIG_IGN, SIG_DFL, SIG_ERR): Change
5811         to use _sig_func_ptr type casted constants.
5812         (_sig_func_ptr): Typedef moved to sys/signal.h.
5813         * libc/include/sys/signal.h (_sig_func_ptr): Typedef added.
5814         For __rtems, use POSIX definition, otherwise default to ANSI.
5815         * libc/sys/linux/sys/signal.h (_sig_func_ptr): Typedef added.
5816
5817 2002-07-24  Stephane Carrez  <stcarrez@nerim.fr>
5818
5819         * configure.host: Recognize m6811-elf and m6812-elf targets.
5820         * libc/include/machine/setjmp.h (_JBLEN): Define for 68hc11/68hc12.
5821         * libc/include/machine/ieeefp.h (__IEEE_BIG_ENDIAN): Define for 68HC11.
5822         (_DOUBLE_IS_32BITS): Define when compiling with -fshort-double.
5823         * libc/include/sys/config.h (INT_MAX, UINT_MAX): Define
5824         according to __INT_MAX__.
5825         (_POINTER_INT): Define to short.
5826         * libc/machine/m68hc11/Makefile.am: New file.
5827         * libc/machine/m68hc11/Makefile.in: New file.
5828         * libc/machine/m68hc11/configure.in: New file.
5829         * libc/machine/m68hc11/configure: New file.
5830         * libc/machine/m68hc11/aclocal.m4: New file.
5831         * libc/machine/m68hc11/setjmp.S: New file.
5832
5833 2002-07-23  Jeff Johnston  <jjohnstn@redhat.com>
5834
5835         * libc/include/string.h: Add mempcpy, strndup, and _strndup_r
5836         prototypes.
5837         * libc/stdlib/Makefile.am: Remove strdup.c and strdup_r.c.
5838         * libc/stdlib/Makefile.in: Regenerated.
5839         * libc/stdlib/strdup.c: Removed.
5840         * libc/stdlib/strdup_r.c: Removed.
5841         * libc/string/Makefile.am: Add strdup.c, strdup_r.c, memccpy.c,
5842         mempcpy.c, strndup.c, and strndup_r.c.
5843         * libc/string/Makefile.in: Regenerated.
5844         * libc/string/memccpy.c: New file.
5845         * libc/string/mempcpy.c: Ditto.
5846         * libc/string/strndup.c: Ditto.
5847         * libc/string/strndup_r.c: Ditto.
5848         * libc/string/strdup.c: New file moved from stdlib.
5849         * libc/string/strdup_r.c: Ditto.
5850         * libc/string/strings.tex: Add memccpy and mempcpy documentation.
5851
5852 2002-07-23  Jeff Johnston  <jjohnstn@redhat.com>
5853
5854         * libc/include/stdio.h: Move fcloseall prototype within
5855         #ifndef _REENT_ONLY section.
5856         * libc/sys/linux/Makefile.am: Add new files.
5857         * libc/sys/linux/Makefile.in: Regenerated.
5858         * libc/sys/linux/sys/stdio.h: Add ctermid prototype.
5859         * libc/sys/linux/sys/unistd.h: Add ttyname_r prototype.
5860         * libc/sys/linux/sys/types.h: Add ino64_t type.
5861         * libc/sys/linux/ctermid.c: New file.
5862         * libc/sys/linux/ttyname_r.c: Ditto.
5863         * libc/sys/linux/readdir64.c: Ditto.
5864
5865 2002-07-22  Jeff Johnston  <jjohnstn@redhat.com>
5866
5867         * libc/include/stdio.h (fcloseall, _fcloseall_r): Added prototypes.
5868         * libc/stdio/Makefile.am: Added fcloseall.c support.
5869         * libc/stdio/Makefile.in: Regenerated.
5870         * libc/stdio/fcloseall.c: New file.
5871         * libc/stdio64/Makefile.am: Remove missing .def references.
5872         * libc/stdio64/Makefile.in: Regenerated.
5873
5874 2002-07-22  Jeff Johnston  <jjohnstn@redhat.com>
5875
5876         * libc/machine/powerpc/time.c: Removed..renamed to times.c.
5877         * libc/machine/powerpc/times.c: New file.
5878         * libc/machine/powerpc/Makefile.am: Change time.c to times.c.
5879         * libc/machine/powerpc/Makefile.in: Regenerated.
5880
5881 2002-07-22  Aldy Hernandez  <aldyh@redhat.com>
5882
5883         * libc/machine/powerpc/time.c: New file.
5884         * libc/machine/powerpc/Makefile.am (lib_a_SOURCES): Add
5885         time.c.
5886         * libc/machine/powerpc/Makefile.in: Regenerated.
5887
5888 2002-07-22  Thomas Fitzsimmons  <fitzsim@redhat.com>
5889
5890         * libc/libc.texinfo: Change copyright notices to Red Hat from
5891         Cygnus.
5892         * libm/libm.texinfo: Likewise.
5893         * README: Change docs URL to
5894         http://sources.redhat.com/newlib/docs.html.
5895
5896 2002-07-19  Jeff Johnston  <jjohnstn@redhat.com>
5897
5898         * libc/sys/linux/Makefile.am: Add pathconf.c and fpathconf.c.
5899         * libc/sys/linux/Makefile.in: Regenerated.
5900         * libc/sys/linux/inode.c: Add chmod, fchmod, and chown syscalls.
5901         * libc/sys/linux/io.c: Add ftruncate syscall.
5902         * libc/sys/linux/fpathconf.c: New file.
5903         * libc/sys/linux/pathconf.c: Ditto.
5904         * libc/sys/linux/linux_fsinfo.h: Ditto.
5905         * libc/sys/linux/sys/unistd.h: Ditto.
5906
5907 2002-07-19  Jeff Johnston  <jjohnstn@redhat.com>
5908
5909         * libc/stdio64/Makefile.am: Remove missing files.
5910         * libc/stdio64/Makefile.in: Regenerated.
5911
5912 2002-07-19  Jeff Johnston  <jjohnstn@redhat.com>
5913
5914         * libc/include/sys/config.h[__i386__][__linux__]: Define
5915         _LARGE64FILE_SOURCE to 1.
5916         * libc/sys/linux/Makefile.am: Add getrlimit64.c and setrlimit64.c.
5917         * libc/sys/linux/Makefile.in: Regenerated.
5918         * libc/sys/linux/resource.c: Add __getrlimit and __setrlimit aliases.
5919         * libc/sys/linux/sys/linux_time.h: Protect struct timeval definition.
5920         * libc/sys/linux/sys/resource.h: Include <bits/resource.h> instead
5921         of <linux/resource.h>.
5922         * libc/sys/linux/getrlimit64.c: New file.
5923         * libc/sys/linux/setrlimit64.c: Ditto.
5924
5925 2002-07-19  Thomas Fitzsimmons  <fitzsim@redhat.com>
5926
5927         * libc/argz/argz_replace.c: Include buf_findstr.h.
5928         * libc/argz/buf_findstr.c: Likewise.
5929         * libc/argz/envz_entry.c: Include buf_findstr.h.  Cast return
5930         value to (char *).
5931         * libc/argz/envz_get.c: Likewise.
5932         * libc/include/sys/unistd.h: Add getopt and getsubopt declarations.
5933         * libc/stdlib/Makefile.am (LIB_SOURCES): Add getsubopt.c.
5934         * libc/stdlib/getsubopt.3: New file.
5935         * libc/stdlib/getsubopt.c: New file.
5936         * libc/sys/linux/machine/i386/socketcall.h (__sockcall_base):
5937         Change esp to ebp.
5938
5939 2002-07-17  Jeff Johnston  <jjohnstn@redhat.com>
5940
5941         * configure.host(stdio64_dir): New setting that is used to
5942         enable building of new stdio64 directory.
5943         * libc/Makefile.am[HAVE_STDIO64_DIR]: Add support for
5944         large files.
5945         (stmp-stdio64,stdio64.texi): New targets to optionally add in
5946         stdio64 info to info files.
5947         * libc/Makefile.in: Regenerated.
5948         * libc/configure: Ditto.
5949         * libc/configure.in: Add configuration variables that are set
5950         when stdio64 is selected as subdir in configure.host.
5951         * libc/libc.texinfo: Add optional menu item for Stdio64, based
5952         on whether STDIO64 flag is set or not.
5953         * libc/sys.tex: Add optional stdio64 syscalls based on whether
5954         STDIO64 flag is set or not.
5955         * libc/include/reent.h[__LARGE64_FILES]: Add new stdio64
5956         _r sycall routines.
5957         * libc/include/stdio.h[__LARGE64_FILES]: Add new stdio64 prototypes.
5958         (FILE): Typedef'd to __FILE instead of struct __sFILE directly.
5959         (__SL64): New file flag indicating file is opened via fopen64.
5960         * libc/include/sys/_types.h(_off64_t): Added.
5961         * libc/include/sys/config.h: For x86-linux, define __LARGE64_FILES.
5962         * libc/include/sys/reent.h(struct __sFILE64): New file structure
5963         for 64-bit offset large file support.
5964         (__FILE): New intermediate type either set to struct __sFILE64 or
5965         struct __sFILE, depending on whether __LARGE64_FILES is set or not.
5966         * libc/reent/Makefile.am[HAVE_STDIO64_DIR]: Add new files.
5967         * libc/reent/Makefile.in: Regenerated.
5968         * libc/reent/fstat64r.c: New file.
5969         * libc/reent/lseek64r.c: Ditto.
5970         * libc/reent/open64r.c: Ditto.
5971         * libc/reent/reent.tex: Optionally add stdio64 reentrant syscalls
5972         based on whether STDIO64 flag is set. 
5973         * libc/stdio/stdio.tex: Add blank line.
5974         * libc/stdio64/Makefile.am: New file.
5975         * libc/stdio64/Makefile.in: Ditto.
5976         * libc/stdio64/fgetpos64.c: Ditto.
5977         * libc/stdio64/fopen64.: Ditto.
5978         * libc/stdio64/freopen64.c: Ditto.
5979         * libc/stdio64/fseeko64.c: Ditto.
5980         * libc/stdio64/fsetpos64.c: Ditto.
5981         * libc/stdio64/ftello64.c: Ditto.
5982         * libc/stdio64/local64.h: Ditto.
5983         * libc/stdio64/stdio64.c: Ditto.
5984         * libc/stdio64/stdio64.tex: Ditto.
5985         * libc/stdio64/tmpfile64.c: Ditto.
5986         * libc/sys/linux/io64.c: Add weak aliases for lseek64, fstat64, and
5987         open64.
5988
5989 2002-07-16  Jeff Johnston  <jjohnstn@redhat.com>
5990
5991         * libc/Makefile.am (stmp-extra): New target to set makeinfo flag
5992         if LIBC_EXTRA_LIB is present.
5993         * libc/Makefile.in: Regenerated.
5994         * libc/libc.texinfo: Add blank line.
5995         * libc/argz/Makefile.am: Add doc support.
5996         * libc/search/Makefile.am: Ditto.
5997         * libc/argz/Makefile.in: Regenerated.
5998         * libc/search/Makefile.in: Ditto.
5999         * libc/misc/misc.tex: Add ffs function.
6000         * libc/stdio/ftell.c: Fix missing doc delimeter in description.
6001
6002 2002-07-15  Jeff Johnston  <jjohnstn@redhat.com>
6003
6004         * libc/include/sys/config.h[__H8300__]: Replace __SMALL_BITFIELDS
6005         definition that was removed in error.
6006
6007 2002-07-15  Jeff Johnston  <jjohnstn@redhat.com>
6008
6009         * libc/include/machine/ieeefp.h: Change to only define
6010         floating point defines (e.g one of __IEEE_BIG_ENDIAN or 
6011         __IEEE_LITTLE_ENDIAN must be defined for each platform).
6012         * libc/include/sys/config.h: Include <machine/ieeefp.h> and
6013         remove redundant floating point definitions.
6014
6015 2002-07-15  Jeff Johnston  <jjohnstn@redhat.com>
6016
6017         * libc/sys/linux/callocr.c: Fix so code references
6018         calloc.
6019
6020 2002-07-15  Jeff Johnston  <jjohnstn@redhat.com>
6021
6022         * libc/sys/linux/Makefile.am: Add new files.
6023         * libc/sys/linux/Makefile.in: Regenerated.
6024         * libc/sys/linux/bp-sym.h: Moved to include directory.
6025         * libc/sys/linux/mmap.c: Add weak aliases: __mmap, __munmap, __mremap.
6026         * libc/sys/linux/inode.c: Set _LIBC to 1.
6027         * libc/sys/linux/mq_close.c: Ditto.
6028         * libc/sys/linux/mq_getattr.c: Ditto.
6029         * libc/sys/linux/mq_open.c: Ditto.
6030         * libc/sys/linux/mq_receive.c: Ditto.
6031         * libc/sys/linux/mq_send.c: Ditto.
6032         * libc/sys/linux/mq_setattr.c: Ditto.
6033         * libc/sys/linux/mq_unlink.c: Ditto.
6034         * libc/sys/linux/calloc.c: New file.
6035         * libc/sys/linux/callocr.c: Ditto.
6036         * libc/sys/linux/cfreer.c: Ditto.
6037         * libc/sys/linux/config.h: Ditto.
6038         * libc/sys/linux/free.c: Ditto.
6039         * libc/sys/linux/freer.c: Ditto.
6040         * libc/sys/linux/msize.c: Ditto.
6041         * libc/sys/linux/msizer.c: Ditto.
6042         * libc/sys/linux/mstats.c: Ditto.
6043         * libc/sys/linux/mtrim.c: Ditto.
6044         * libc/sys/linux/mtrimr.c: Ditto.
6045         * libc/sys/linux/pvallocr.c: Ditto.
6046         * libc/sys/linux/realloc.c: Ditto.
6047         * libc/sys/linux/reallocr.c: Ditto.
6048         * libc/sys/linux/thread-m.h: Ditto.
6049         * libc/sys/linux/vallocr.c: Ditto.
6050         * libc/sys/linux/bp-checks.h: Ditto.
6051         * libc/sys/linux/libc-symbols.h: Ditto.
6052         * libc/sys/linux/libc-tsd.h: Ditto.
6053         * libc/sys/linux/libintl.h: Ditto.
6054         * libc/sys/linux/malign.c: Ditto.
6055         * libc/sys/linux/malignr.c: Ditto.
6056         * libc/sys/linux/mallinfor.c: Ditto.
6057         * libc/sys/linux/malloc.c: Ditto.
6058         * libc/sys/linux/mallocr.c: Ditto.
6059         * libc/sys/linux/malloptr.c: Ditto.
6060         * libc/sys/linux/mallstatsr.c: Ditto.
6061         * libc/sys/linux/mcheck.c: Ditto.
6062         * libc/sys/linux/mhooks.h: Ditto.
6063         * libc/sys/linux/include/bp-sym.h: Ditto.
6064         * libc/sys/linux/include/malloc.h: Ditto.
6065         * libc/sys/linux/include/mcheck.h: Ditto.
6066         * libc/sys/linux/linuxthreads/machine/i386/Makefile.am: Remove
6067         getpagesize.c.
6068         * libc/sys/linux/linuxthreads/machine/i386/Makefile.in: Regenerated.
6069         * libc/sys/linux/linuxthreads/machine/i386/getpagesize.c: Moved.
6070         * libc/sys/linux/machine/i386/getpagesize.c: New file.
6071         * libc/sys/linux/machine/i386/Makefile.am: Add getpagesize.c.
6072         * libc/sys/linux/machine/i386/Makefile.in: Regenerated.
6073         * libc/sys/linux/machine/i386/sysdep.h: New file.
6074         * libc/sys/linux/machine/i386/weakalias.h: Add weak_function support.
6075         * libc/sys/linux/sys/dirent.h: Set _LIBC to 1.
6076         * libc/sys/linux/sys/lock.h: Include <machine/weakalias.h>.
6077
6078 2002-07-12  Jeff Johnston  <jjohnstn@redhat.com>
6079
6080         * libc/sys/linux/include/mqueue.h: Change to use <bits/siginfo.h>
6081         instead of <asm/siginfo.h>.
6082         * libc/sys/linux/sys/signal.h: Change to include various linux
6083         <bits/xxx.h> header files, rather than <linux/signal.h> so as
6084         to work with multiple releases of glibc header files.
6085
6086 2002-07-11  Chris Demetriou  <cgd@broadcom.com>
6087
6088         * testsuite/newlib.search/hsearchtest.c: New file to test
6089         newlib/libc/search.
6090         * testsuite/newlib.search/hsearchtest.exp: Likewise.
6091
6092 2002-07-10  Florian Schrack  <florian.schrack@freenet.de>
6093
6094         * libc/sys/mmixware/read.c: Use SYS_Fgets syscall if dealing with
6095         a terminal.
6096         * libc/sys/mmixware/sys/syscall.h (SYS_Fgets): Definition added.
6097
6098 2002-07-08  Jeff Johnston  <jjohnstn@redhat.com>
6099
6100         * libc/include/math.h (MAXFLOAT): Added.
6101
6102 Mon Jul  8 13:55:23 2002  J"orn Rennecke <joern.rennecke@superh.com>
6103
6104         * libc/machine/sh/Makefile.am (lib_a_SOURCES):
6105         Make strcmp.S unconditional.
6106         * libc/machine/sh/Makefile.in: Regenerate.
6107         * libc/machine/sh/asm.h (DELAYED_BRANCHES, SL): Also for __SH5__ .
6108         * strcmp.S (strcmp): Add SHmedia variant.  Use different registers
6109         for SHcompact.
6110
6111 2002-07-04  Jeff Johnston  <jjohnstn@redhat.com>
6112
6113         * libc/sys/linux/inode.c: Fix utime prototype and add _LIBC
6114         define before including <sys/lock.h>.
6115
6116 2002-07-04  Jeff Johnston  <jjohnstn@redhat.com>
6117
6118         * libc/include/utime.h: Add include of <_ansi.h>.
6119         * libc/sys/linux/Makefile.am: Add utimes.c.
6120         * libc/sys/linux/Makefile.in: Regenerated.
6121         * libc/sys/linux/inode.c(__umask): New static routine.
6122         (umask): Written to use __umask and attempt to thread lock.
6123         (getumask): New function written to use __umask and thread lock.
6124         * libc/sys/linux/utimes.c: New file.
6125         * libc/sys/linux/sys/time.h: Fix utimes prototype.
6126         * libc/sys/linux/sys/utime.h: New file.
6127
6128 2002-07-04  Thomas Fitzsimmons  <fitzsim@redhat.com>
6129
6130         * libtool.m4: New file.
6131         * libc/sys/linux/process.c: Implement vfork in terms of fork,
6132         rather than as a syscall.
6133
6134 2002-07-04  Jeff Johnston  <jjohnstn@redhat.com>
6135
6136         * libc/include/stdio.h: Add new prototypes.
6137         * libc/stdio/Makefile.am: Add fseeko.c and ftello.c.
6138         * libc/stdio/Makefile.in: Regenerated.
6139         * libc/stdio/fseek.c: Add fseeko documentation.
6140         * libc/stdio/ftell.c: Add ftello documentation.
6141         * libc/stdio/fseeko.c: New file.
6142         * libc/stdio/ftello.c: New file.
6143
6144 2002-07-04  Jeff Johnston  <jjohnstn@redhat.com>
6145
6146         * libc/stdio/Makefile.am: Add asprintf.c and vasprintf.c.
6147         * libc/stdio/Makefile.in: Regenerated.
6148         * libc/stdio/asprintf.c: New file.
6149         * libc/stdio/vasprintf.c: Ditto.
6150         * libc/stdio/fvwrite.c: Add code to dynamically reallocate
6151         the buffer for asprintf support.
6152         * libc/stdio/sprintf.c: Add asprintf documentation.
6153         * libc/stdio/vfprintf.c: Add vasprintf documentation.
6154         * libc/include/stdio.h: Add new prototypes.
6155
6156 2002-07-02  Thomas Fitzsimmons  <fitzsim@redhat.com>
6157
6158         * libc/search/hcreate.c: Remove advertising clause from license.
6159         * libc/search/hcreate_r.c: Likewise.
6160
6161 2002-07-02  Chris Demetriou  <cgd@broadcom.com>
6162
6163         * libc/include/sys/config.h (__IEEE_LITTLE_ENDIAN)
6164         (__IEEE_BIG_ENDIAN): Define appropriately for MIPS.
6165         Check that one of them is defined and error out if not.
6166         Add any platforms defined in <machine/ieeefp.h> that are missing.
6167         * libc/search/hash.h (DB_BYTE_ORDER, DB_BIG_ENDIAN)
6168         (DB_LITTLE_ENDIAN): New defines.
6169         * libc/search/hash.c: Replace all incorrect checks for
6170         _IEEE_LITTLE_ENDIAN with tests of BYTE_ORDER, and all uses of
6171         BYTE_ORDER, LITTLE_ENDIAN, and BIG_ENDIAN with DB_* versions.
6172         * libc/search/hash_page.c: Likewise.
6173
6174 2002-06-28  Thomas Fitzsimmons  <fitzsim@redhat.com>
6175
6176         * libm/mathfp/sf_pow.c (powf): Change k from int to float.
6177
6178 2002-06-27  Benjamin Kosnik  <bkoz@redhat.com>
6179
6180         * libc/include/stdio.h: Untangle, add _BEGIN_STD_C and _END_STD_C.
6181         * libc/include/time.h: Same.
6182         * libc/include/string.h: Same.
6183         * libc/include/stdlib.h: Same.
6184         * libc/include/signal.h: Same.
6185         * libc/include/setjmp.h: Same.
6186         * libc/include/math.h: Same.
6187         * libc/include/locale.h: Same.
6188         * libc/include/ctype.h: Same.
6189         * libc/include/machine/setjmp.h: Same.
6190         * libc/include/_ansi.h (_BEGIN_STD_C): Add.
6191         (_END_STD_C): Add.
6192
6193 2002-06-27  Jeff Johnston  <jjohnstn@redhat.com>
6194
6195         * libc/include/sys/_types.h: Define _ssize_t as int if int is
6196         32-bits, otherwise define it as long.
6197         * libc/include/sys/types.h: Include <_ansi.h> and <sys/_types.h>
6198         and define ssize_t as _ssize_t.
6199         * libc/reent/readr.c: Change return type to _ssize_t.
6200         * libc/reent/writer.c: Ditto.
6201         * libc/sys/linux/Makefile.am: Add aio.c.
6202         * libc/sys/linux/Makefile.in: Regenerated.
6203         * libc/sys/linux/aio.c: New file.
6204         * libc/sys/linux/sys/cdefs.h: Add __restrict_arr definition.
6205         * libm/common/fdlibm.h: Undef __P before defining it.
6206
6207 2002-06-27  Thomas Fitzsimmons  <fitzsim@redhat.com>
6208
6209         * libm/mathfp/s_pow.c (pow): Fix checks on variable k.  Add
6210         exponent_is_even_int variable.  Handle case where x is
6211         negative, and y is an odd integer.
6212         * libm/mathfp/sf_pow.c (powf): Likewise.
6213
6214         * libm/mathfp/er_lgamma.c: Remove __kernel references.
6215         * libm/mathfp/erf_lgamma.c: Likewise.
6216         * libm/mathfp/s_tgamma.c: Likewise.
6217         * libm/mathfp/sf_tgamma.c: Likewise.
6218
6219 2002-06-27  Jeff Johnston  <jjohnstn@redhat.com>
6220
6221         * libc/sys/linux/Makefile.am: Add new clock routines.
6222         * libc/sys/linux/Makefile.in: Regenerated.
6223         * libc/sys/linux/clock_getres.c: New file.
6224         * libc/sys/linux/clock_gettime.c: Ditto.
6225         * libc/sys/linux/clock_settime.c: Ditto.
6226         * libc/sys/linux/hp-timing.h: Ditto.
6227         * libc/sys/linux/libc-internal.h: Ditto.
6228         * libc/sys/linux/sysconf.c: Fix typo.
6229         * libc/sys/linux/include/time.h: Add include of <sys/linux_time.h>.
6230         * libc/sys/linux/machine/hp-timing.h: New file.
6231         * libc/sys/linux/machine/i386/Makefile.am: Add new files.
6232         * libc/sys/linux/machine/i386/Makefile.in: Regenerated.
6233         * libc/sys/linux/machine/i386/get_clockfreq.c: New file.
6234         * libc/sys/linux/machine/i386/hp-timing.c: Ditto.
6235         * libc/sys/linux/machine/i386/hp-timing.h: Ditto.
6236         * libc/sys/linux/sys/linux_time.h: New file.
6237         * libc/sys/linux/sys/time.h: Remove include of <linux/time.h> and
6238         replace with <sys/linux_time.h>.
6239
6240 Wed Jun 26 16:33:25 2002  J"orn Rennecke <joern.rennecke@superh.com>
6241
6242         * libc/sys/sh/crt0.S: Remove vestigial .section directive.
6243
6244 2002-06-25  Jeff Johnston  <jjohnstn@redhat.com>
6245
6246         * libc/sys/linux/Makefile.am: Consolidate additional items under
6247         ADD_OBJS.
6248         * libc/sys/linux/Makefile.in: Regenerated.
6249
6250 2002-06-25  Jeff Johnston  <jjohnstn@redhat.com>
6251
6252         * libc/sys/linux/sethostname.c: New file.
6253         * libc/sys/linux/Makefile.am: Add sethostname.c support.
6254         * libc/sys/linux/Makefile.in: Regenerated.
6255
6256 2002-06-24  Thomas Fitzsimmons  <fitzsim@redhat.com>
6257
6258         * libc/search/db_local.h: New file.
6259         * libc/include/db.h: Remove.
6260         * libc/search/Makefile.am (LIB_SOURCES): Add db_local.h.
6261         * libc/search/hash.c (MIN,MAX): Add macros.  Change <db.h> to
6262         "db_local.h".
6263         * libc/search/hash_bigkey.c: Likewise.
6264         * libc/search/hash_buf.c: Likewise.
6265         * libc/search/hash_func.c: Likewise.
6266         * libc/search/hash_log2.c: Likewise.
6267         * libc/search/hash_page.c: Likewise.
6268
6269 2002-06-24  J"orn Rennecke <joern.rennecke@superh.com>
6270
6271         * libc/machine/sh/strlen.S: New file.
6272         * libc/machine/sh/Makefile.am (lib_a_SOURCES): Add rule for it.
6273         * libc/machine/sh/Makefile.am: Regenerate.
6274
6275 2002-06-24  Jeff Johnston  <jjohnstn@redhat.com>
6276
6277         * libc/sys/linux/gethostname.c: Change name to __gethostname and
6278         add gethostname alias.
6279
6280 2002-06-24  Jeff Johnston  <jjohnstn@redhat.com>
6281
6282         * libc/include/math.h: Remove <sys/types.h>.
6283         (__dmath): Use __ULong instead of __uint32_t.
6284         * libc/include/sys/reent.h: If long or int is not 32-bits,
6285         include <sys/types.h> to get definitions for __int32_t and __uint32_t.
6286         * libc/stdlib/mprec.h: Include <sys/types.h> to get integer defs.
6287         * libm/common/fdlibm.h: Ditto.
6288
6289 2002-06-24  Thomas Fitzsimmons  <fitzsim@redhat.com>
6290
6291         * libc/include/ndbm.h: Remove.
6292         * libc/search/ndbm.c: Remove.
6293
6294 2002-06-24  WATANABE Hirofumi <eban@os.rim.or.jp>
6295
6296         * libc/stdio/fseek.c (fseek): Fix braces.
6297
6298 2002-06-21  Corinna Vinschen  <corinna@vinschen.de>
6299
6300         * libc/time/strftime.c (strftime): Add %e format specifier.
6301
6302 2002-06-21  Thomas Fitzsimmons  <fitzsim@redhat.com>
6303
6304         * libc/search/hash.h (LITTLE_ENDIAN, BIG_ENDIAN): Define if not
6305         previously defined.
6306
6307 2002-06-21  Richard Earnshaw  (rearnsha@arm.com)
6308
6309         * libc/sys/arm/sys/param.h (BIG_ENDIAN, LITTLE_ENDIAN): Define.
6310         (BYTE_ORDER): Define as appropriate for the target.
6311
6312 2002-06-21  Jeff Johnston  <jjohnstn@redhat.com>
6313
6314         * libc/include/sys/config.h[__linux__]: Set _READ_WRITE_RETURN_TYPE
6315         to _ssize_t.
6316         * libc/sys/linux/io.c (read, write): Change to return ssize_t.
6317
6318 2002-06-21  Jeff Johnston  <jjohnstn@redhat.com>
6319
6320         * libc/include/stdio.h (__getline, __getdelim): New prototypes.
6321         * libc/include/time.h [HAVE_GETDATE](getdate, getdate_r): Ditto.
6322         [HAVE_GETDATE](getdate_err): New error code.
6323         * libc/stdio/Makefile.am: Add support for getline.c and getdelim.c.
6324         * libc/stdio/Makefile.in: Regenerated.
6325         * libc/stdio/getdelim.c: New file.
6326         * libc/stdio/getline.c: Ditto.
6327         * libc/sys/linux/Makefile.am: Add support for getdate.c, getdate_err.c
6328         and ntp_gettime.c.  Also add AM_CFLAGS to point to libc/stdio.
6329         * libc/sys/linux/Makefile.in: Regenerated.
6330         * libc/sys/linux/getdate.c: New file.
6331         * libc/sys/linux/getdate_err.c: Ditto.
6332         * libc/sys/linux/ntp_gettime.c: Ditto.
6333         * libc/sys/linux/time.c (adjtimex, ntp_adjtime): New functions.
6334         * libc/sys/linux/sys/stdio.h (getline, getdelim): New macros.
6335
6336 2002-06-21  Jeff Johnston  <jjohnstn@redhat.com>
6337
6338         * libc/include/math.h: Add <sys/types.h> to get _uint32_t definition.
6339         * libc/include/machine/types.h: Skip __off_t, __pid_t, and
6340         __loff_t definitions if special _HAVE_SYSTYPES macro defined.
6341         * libc/include/sys/config.h: Removed _uint*, _int* definitions.
6342         * libc/include/sys/param.h: Remove i386 case which is handled
6343         by default case.
6344         (BIG_ENDIAN, LITTLE_ENDIAN): Protect
6345         definitions in case they are already defined.
6346         (BYTE_ORDER): Add default case using _IEEE_BIG_ENDIAN and
6347         _IEEE_LITTLE_ENDIAN flags.
6348         * libc/include/sys/reent.h: Change __uint32_t references to
6349         use _ULong instead.
6350         (_REENT_GETDATE_REENT_P): New macro.
6351         * libc/include/sys/types.h (__int16_t, __uint16_t): Added.
6352         (__int32_t, __uint32_t, __int64_t, __uint64_t): Ditto.
6353         * libc/search/hash.h: Add default setting of BYTE_ORDER,
6354         LITTLE_ENDIAN, and BIG_ENDIAN, if not already defined.
6355         * libc/sys/linux/sys/types.h: Include <sys/_types.h>.  Define
6356         ssize_t based on _ssize_t.  Remove __socklen_t, __uintptr_t,
6357         pid_t, off_t, loff_t, caddr_t, and daddr_t type
6358         definitions which are done by subsequent glibc headers.
6359         Add macro definitions to prevent subsequent header files from
6360         defining pid_t, off_t, ssize_t, and key_t.  Move uintptr_t and
6361         intptr_t to after glibc definitions of types they are based on.
6362
6363 2002-06-21  Jeff Johnston  <jjohnstn@redhat.com>
6364
6365         * libc/include/errno.h: Protect from multiple inclusion.
6366
6367 2002-06-21  Nick Clifton  <nickc@cambridge.redhat.com>
6368
6369         * libc/sys/arm/swi.h (ADP_Stopped_RunTimeError): Set correct value.
6370
6371 2002-06-20  Thomas Fitzsimmons  <fitzsim@redhat.com>
6372
6373         * Makefile.am (LIB_OBJECTLISTS): Add
6374         libc/search/objectlist.awk.in.
6375         * libc/Makefile.am (SUBDIRS): Add search.
6376         (SUBLIBS): Add search/libsearch.la.
6377         * libc/configure.in (AC_OUTPUT): Add search/Makefile.
6378         * libc/search: New directory.
6379         * libc/search/Makefile.am: New file.
6380         * libc/search/extern.h: New file.
6381         * libc/search/hash.c: New file.
6382         * libc/search/hash.h: New file.
6383         * libc/search/hash_bigkey.c: New file.
6384         * libc/search/hash_buf.c: New file.
6385         * libc/search/hash_func.c: New file.
6386         * libc/search/hash_log2.c: New file.
6387         * libc/search/hash_page.c: New file.
6388         * libc/search/hcreate.3: New file.
6389         * libc/search/hcreate.c: New file.
6390         * libc/search/hcreate_r.c: New file.
6391         * libc/search/ndbm.c: New file.
6392         * libc/search/page.h: New file.
6393         * libc/search/tdelete.c: New file.
6394         * libc/search/tdestroy.c: New file.
6395         * libc/search/tfind.c: New file.
6396         * libc/search/tsearch.3: New file.
6397         * libc/search/tsearch.c: New file.
6398         * libc/search/twalk.c: New file.
6399         * libc/include/db.h: New file.
6400         * libc/include/ndbm.h: New file.
6401         * libc/include/search.h: New file.
6402         * libc/include/sys/queue.h: New file.
6403         * libc/include/sys/cdefs.h: New file.
6404         * libc/include/sys/param.h
6405         [__IEEE_LITTLE_ENDIAN,__IEEE_BIG_ENDIAN]: Set BYTE_ORDER to
6406         LITTLE_ENDIAN or BIG_ENDIAN.
6407         * libc/include/sys/errno.h (EFTYPE): New macro.
6408         * libc/search/bsearch.c: Move from libc/stdlib.
6409         * libc/search/qsort.c: Likewise.
6410         * libc/stdlib/Makefile.am (LIB_SOURCES): Remove bsearch.c and
6411         qsort.c.
6412         (CHEWOUT_FILES): Remove bsearch.def and qsort.def.
6413         * libc/stdlib/stdlib.tex: Remove references to bsearch and qsort.
6414
6415 2002-06-19  Jeff Johnston  <jjohnstn@redhat.com>
6416
6417         * libc/sys/linux/Makefile.am: Add support for message queue routines,
6418         ipc routines, and ftok.
6419         * libc/sys/linux/Makefile.in: Regenerated.
6420         * libc/sys/linux/ftok.c: New file.
6421         * libc/sys/linux/ipc.c: Ditto.
6422         * libc/sys/linux/mq_close.c: Ditto.
6423         * libc/sys/linux/mq_getattr.c: Ditto.
6424         * libc/sys/linux/mq_notify.c: Ditto.
6425         * libc/sys/linux/mq_open.c: Ditto.
6426         * libc/sys/linux/mq_receive.c: Ditto.
6427         * libc/sys/linux/mq_send.c: Ditto.
6428         * libc/sys/linux/mq_setattr.c: Ditto.
6429         * libc/sys/linux/mq_unlink.c: Ditto.
6430         * libc/sys/linux/mqlocal.h: Ditto.
6431         * libc/sys/linux/include/mqueue.h: Ditto.
6432         * libc/sys/linux/sys/types.h: Define __gid_t_defined and
6433         __uid_t_defined.
6434
6435 2002-06-19  J"orn Rennecke <joern.rennecke@superh.com>
6436
6437         * libm/common/sf_lround.c (round): Change name to: (lround).
6438         * libm/common/sf_remquo.c (remquo): Pass all arguemnts to
6439         remquof.
6440
6441 2002-06-18  Thomas Fitzsimmons  <fitzsim@redhat.com>
6442
6443         * testsuite/lib/passfail.exp (newlib_pass_fail_all): New
6444         procedure.
6445         (newlib_pass_fail): Change to compile and run only one file.
6446         * testsuite/newlib.locale/locale.exp: Use new
6447         newlib_pass_fail_all procedure.
6448         * testsuite/newlib.string/string.exp: Likewise.
6449
6450 2002-06-18  Dave Brolley  <brolley@redhat.com>
6451
6452         From Catherine Moore, Michael Meissner, Richard Sandiford:
6453         * libc/include/machine/setjmp.h (_JBLEN): Define for __frv__.
6454         (_JBTYPE): Ditto.
6455         * libc/include/sys/config.h (__IEEE_BIG_ENDIAN): Ditto.
6456         (__ATTRIBUTE_IMPURE_PTR__): Ditto.
6457         * libc/include/machine/ieeefp.h (__IEEE_BIG_ENDIAN): Ditto.
6458         * configure.host: Support frv-*-*.
6459         * libc/machine/frv/Makefile.am: New file.
6460         * libc/machine/frv/configure.in: New file.
6461         * libc/machine/frv/setjmp.S: New file.
6462
6463 2002-06-18  Thomas Fitzsimmons  <fitzsim@redhat.com>
6464
6465         * libc/include/ctype.h: Remove isblank macro.
6466
6467         * libc/ctype/Makefile.am (LIB_SOURCES): Add isblank.c.
6468         * libc/ctype/isblank.c: New file.
6469         * libc/include/ctype.h [!__STRICT_ANSI__]: Add isblank
6470         declaration.  Add isblank macro.
6471
6472 2002-06-18  Jeff Johnston  <jjohnstn@redhat.com>
6473
6474         * testsuite/newlib.stdlib/atexit.c: New file.
6475         * testsuite/newlib.stdlib/atexit.exp: Ditto.
6476         * testsuite/newlib.string/tstring.c: Change default start size
6477         to something more reasonable for embedded platforms.
6478
6479 2002-06-14  Thomas Fitzsimmons  <fitzsim@redhat.com>
6480
6481         * libc/sys/linux/sys/errno.h (EFTYPE): Add macro.
6482
6483         * libc/argz: New directory.
6484         * libc/argz/*: New files.
6485         * libc/argz/argz_add.c: New file.
6486         * libc/argz/argz_add_sep.c: New file.
6487         * libc/argz/argz_append.c: New file.
6488         * libc/argz/argz_count.c: New file.
6489         * libc/argz/argz_create.c: New file.
6490         * libc/argz/argz_create_sep.c: New file.
6491         * libc/argz/argz_delete.c: New file.
6492         * libc/argz/argz_extract.c: New file.
6493         * libc/argz/argz_insert.c: New file.
6494         * libc/argz/argz_next.c: New file.
6495         * libc/argz/argz_replace.c: New file.
6496         * libc/argz/argz_stringify.c: New file.
6497         * libc/argz/buf_findstr.c: New file.
6498         * libc/argz/envz_add.c: New file.
6499         * libc/argz/envz_entry.c: New file.
6500         * libc/argz/envz_get.c: New file.
6501         * libc/argz/envz_merge.c: New file.
6502         * libc/argz/envz_remove.c: New file.
6503         * libc/argz/envz_strip.c: New file.
6504         * libc/include/argz.h: New file.
6505         * libc/include/envz.h: New file.
6506         * Makefile.am (LIBC_OBJECTLISTS): Add
6507         libc/argz/objectlist.awk.in.
6508         * libc/Makefile.am (SUBDIRS): Add argz.
6509         (SUBLIBS): Add argz/libargz.la.
6510         * libc/configure.in (AC_OUTPUT): Add argz/Makefile.
6511         * libc/include/errno.h: Add error_t typedef.
6512
6513 2002-06-13  Jeff Johnston  <jjohnstn@redhat.com>
6514
6515         * libc/include/stdlib.h: Add _Exit prototype.
6516         * libc/stdlib/Makefile.am: Add _Exit.c support.
6517         * libc/stdlib/Makefile.in: Ditto.
6518         * libc/stdlib/_Exit.c: New file.
6519
6520 2002-06-13  Stephen L. Moshier  <steve@moshier.net>
6521
6522         * libm/math/e_pow.c (__ieee754_pow): Fix case whereby
6523         x is close to -1.0 and y is very large to use ax (absolute value)
6524         instead of x.
6525         * libm/math/ef_pow.c (__ieee754_powf): Ditto.
6526
6527 Thu Jun 13 19:23:40 2002  J"orn Rennecke <joern.rennecke@superh.com>
6528
6529         * libc/machine/sh/strcpy.S (strcpy, __SHMEDIA__ code):
6530         Fix clobbering bytes before destination if src and dst have same
6531         non-zero misalignment.
6532
6533         * libc/machine/sh/memset.S (memset, __SHMEDIA__ code):
6534         Fixed bug in writing end of set region.
6535
6536 2002-06-10  Christopher Faylor  <cgf@redhat.com>
6537
6538         * libc/include/process.h: Remove cygwin-only sexec* declarations.  Fix
6539         spawnve declaration.
6540
6541 2002-06-06  Thomas Fitzsimmons  <fitzsim@redhat.com>
6542
6543         * libm/common/s_fdim.c: New file.
6544         * libm/common/s_fma.c: Likewise.
6545         * libm/common/s_fmax.c: Likewise.
6546         * libm/common/s_fmin.c: Likewise.
6547         * libm/common/s_fpclassify.c: Likewise.
6548         * libm/common/s_lrint.c: Likewise.
6549         * libm/common/s_lround.c: Likewise.
6550         * libm/common/s_nearbyint.c: Likewise.
6551         * libm/common/s_remquo.c: Likewise.
6552         * libm/common/s_round.c: Likewise.
6553         * libm/common/s_scalbln.c: Likewise.
6554         * libm/common/s_signbit.c: Likewise.
6555         * libm/common/s_trunc.c: Likewise.
6556         * libm/common/sf_fdim.c: Likewise.
6557         * libm/common/sf_fma.c: Likewise.
6558         * libm/common/sf_fmax.c: Likewise.
6559         * libm/common/sf_fmin.c: Likewise.
6560         * libm/common/sf_lrint.c: Likewise.
6561         * libm/common/sf_lround.c: Likewise.
6562         * libm/common/sf_nearbyint.c: Likewise.
6563         * libm/common/sf_remquo.c: Likewise.
6564         * libm/common/sf_round.c: Likewise.
6565         * libm/common/sf_scalbln.c: Likewise.
6566         * libm/common/sf_trunc.c: Likewise.
6567         * libm/math/w_exp2.c: Likewise.
6568         * libm/math/w_tgamma.c: Likewise.
6569         * libm/math/wf_exp2.c: Likewise.
6570         * libm/math/wf_tgamma.c: Likewise.
6571         * libm/mathfp/s_exp2.c: Likewise.
6572         * libm/mathfp/s_tgamma.c: Likewise.
6573         * libm/mathfp/sf_exp2.c: Likewise.
6574         * libm/mathfp/sf_tgamma.c: Likewise.
6575         * libm/math/er_gamma.c: Fix return value.
6576         * libm/math/erf_gamma.c: Likewise.
6577         * libm/mathfp/er_gamma.c: Likewise.
6578         * libm/mathfp/erf_gamma.c: Likewise.
6579         * libc/include/math.h (!__STRICT_ANSI__): Include ISOC99-specific
6580         declarations and macros.
6581         Regenerated all Makefile.in, aclocal.m4 and configure files to
6582         use new libtool macros in top-level libtool.m4
6583
6584 2002-06-05  Jeff Johnston  <jjohnstn@redhat.com>
6585
6586         * libc/include/string.h[__linux__]: Add strsignal prototype.
6587         * libc/include/sys/lock.h: New file with default locking support.
6588         * libc/include/sys/reent.h: Add signal buffer support for strsignal
6589         and psignal.
6590         * libc/posix/Makefile.am: Add support for readdir_r.c.
6591         * libc/posix/Makefile.in: Regenerated.
6592         * libc/posix/closedir.c: Add locking support and hash table cleanup.
6593         * libc/posix/opendir.c: Add lock support.
6594         * libc/posix/readdir.c: Ditto.
6595         * libc/posix/rewinddir.c: Ditto.
6596         * libc/posix/scandir.c: Ditto.
6597         * libc/posix/seekdir.c: Ditto.
6598         * libc/posix/telldir.c: Ditto plus add _cleanupdir routine to
6599         clean up leftover hash table entries.
6600         * libc/posix/readdir_r.c: New file.
6601         * libc/sys/linux/Makefile.am: Add psignal.c and strsignal.c support.
6602         * libc/sys/linux/Makefile.in: Regenerated.
6603         * libc/sys/linux/sys/dirent.h: Add dd_lock to DIR structure.
6604         * libc/sys/linux/sys/signal.h: Add psignal prototype.
6605         * libc/sys/linux/psignal.c: New file.
6606         * libc/sys/linux/strsignal.c: Ditto.
6607
6608 2002-06-03  Corinna Vinschen  <corinna@vinschen.de>
6609
6610         * libc/include/sys/types.h: Don't define dev_t when compiling for
6611         Cygwin.
6612
6613 2002-05-31  Jeff Johnston  <jjohnstn@redhat.com>
6614
6615         * libc/sys/linux/Makefile.am: Add sig.c and sigaction.c.  Also
6616         make siglist.inc dependent on sig.c instead of signal.c.
6617         * libc/sys/linux/Makefile.in: Regenerated.
6618         * libc/sys/linux/sig.c: Rename from signal.c and change code to
6619         use NSIG instead of _NSIG. 
6620         * libc/sys/linux/sigaction.c: New file.
6621         * libc/sys/linux/signal.c: Changed to be linux signal() function
6622         so as to override regular newlib default signal.c.
6623         * libc/sys/linux/machine/i386/Makefile.am: Remove sigset.c.
6624         * libc/sys/linux/machine/i386/Makefile.in: Regenerated.
6625         * libc/sys/linux/machine/i386/sigset.c: Moved to linux main directory.
6626         * libc/sys/linux/sigset.c: Moved from machine/i386 directory.
6627         * libc/sys/linux/sys/signal.h: Redefine NSIG to _NSIG and override
6628         default linux sigset_t typedef by defining it equal to __sigset_t.
6629         * libc/unix/sigset.c: Add check so code isn't compiled on systems
6630         with a sigset_t that isn't implemented with a single int.
6631
6632 2002-05-30  Jeff Johnston  <jjohnstn@redhat.com>
6633
6634         * libc/sys/linux/Makefile.am: Add support for new files.
6635         * libc/sys/linux/Makefile.in: Regenerated.
6636         * libc/sys/linux/ids.c: Add __getuid weak alias for getuid.
6637         * libc/sys/linux/signal.c: Change to use real-time syscalls for
6638         sigsuspend, sigprocmask, and sigpending.  Also remove sigaction as
6639         it is in a separate file now.
6640         * libc/sys/linux/machine/i386/Makefile.am
6641         * libc/sys/linux/machine/i386/Makefile.in
6642         * libc/sys/linux/sys/signal.h: Add include of <bits/signum.h>.
6643         * libc/sys/linux/sigaction.c: New file.
6644         * libc/sys/linux/sigqueue.c: Ditto.
6645         * libc/sys/linux/sigwait.c: Ditto.
6646         * libc/sys/linux/machine/i386/sigaction.c: Ditto.
6647         * libc/sys/linux/kernel_sigaction.h: Ditto.
6648
6649 2002-05-28  Jeff Johnston  <jjohnstn@redhat.com>
6650
6651         * libc/sys/linux/Makefile.am: Add support for cfspeed.c and
6652         tcsendbrk.c.
6653         * libc/sys/linux/Makefile.in: Regenerated.
6654         * libc/sys/linux/termios.c: Add tcflow(), tcflush(),
6655         tcgetpgrp(), and tcsetpgrp() functions.
6656         * libc/sys/linux/sys/termios.h: Add include of machine/termios.h
6657         to get __MAX_BAUD rate.
6658         * libc/sys/linux/machine/i386/include/termios.h: New file.
6659         * libc/include/machine/termios.h: Ditto.
6660         * libc/sys/linux/cfspeed.c: Ditto.
6661         * libc/sys/linux/tcsendbrk.c: Ditto.
6662
6663 2002-05-24  Jeff Johnston  <jjohnstn@redhat.com>
6664
6665         * libc/include/string.h: Add strnlen and strerror_r prototypes.
6666         * libc/string/Makefile.am: Add strnlen.c and strerror_r.c support.
6667         * libc/string/Makefile.in: Regenerated.
6668         * libc/string/strerror_r.c: New file.
6669         * libc/string/strnlen.c: New file.
6670         * libc/sys/linux/Makefile.am: Add rename.c.
6671         * libc/sys/linux/Makefile.in: Regenerated.
6672         * libc/sys/linux/rename.c: New file to override default rename.
6673
6674 2002-05-24  Thomas Fitzsimmons  <fitzsim@redhat.com>
6675
6676         * libc/sys/linux/sys/cdefs.h: Add __weak_reference macros.
6677         * libc/sys/linux/sys/time.h: Add conversion macros.
6678         * libc/sys/linux/sys/types.h: Add FD_ macros.  Include <bits/types.h>.
6679         * libc/sys/linux/ids.c: Add setresuid and syslog syscalls.
6680         * libc/sys/linux/gethostname.c: New file.
6681         * libc/sys/linux/seteuid.c: New file.
6682         * libc/sys/linux/sysctl.c: New file.
6683         
6684 2002-05-23  Jeff Johnston  <jjohnstn@redhat.com>
6685
6686         * libc/string/Makefile.am: Add support for strsep.c.
6687         * libc/string/Makefile.in: Regenerated.
6688         * libc/string/strsep.c: New file.
6689         * libc/string/strtok.c: Change to call __strtok_r service routine.
6690         * libc/string/strtok_r.c: Add __strtok_r routine which takes
6691         additional flag parameter regarding whether to skip leading delimeters.
6692         Change strtok_r to call __strtok_r.
6693
6694 2002-05-23  Gareth Pearce  <tilps@hotmail.com>
6695
6696         * libc/stdio/Makefile.am: Modify to add setbuffer.c and setlinebuf.c.
6697         * libc/stdio/Makefile.in: Regenerated.
6698         * libc/stdio/setbuffer.c: New file.
6699         * libc/stdio/setlinebuf.c: New file.
6700
6701 2002-05-23  Jeff Johnston  <jjohnstn@redhat.com>
6702
6703         * libc/sys/linux/Makefile.am: Add resource.c.
6704         * libc/sys/linux/Makefile.in: Regenerated.
6705         * libc/sys/linux/resource.c: New file.
6706         * libc/sys/linux/time.c: Add settimeofday, getitimer, and setitimer.
6707         * libc/sys/linux/machine/i386/Makefile.am: Remove syscalls.c.
6708         * libc/sys/linux/machine/i386/Makefile.in: Regenerated.
6709         * libc/sys/linux/machine/i386/syscalls.c: Removed as functions
6710         are now found in libc/sys/linux/resource.c.
6711
6712 2002-05-23  Jeff Johnston  <jjohnstn@redhat.com>
6713
6714         * libc/include/string.h (bcmp, bcopy, bzero): Change prototypes
6715         to use void * pointers and comply with Single Unix spec.
6716         * libc/string/bcmp.c: Change to use void * instead of char *.
6717         * libc/string/bcopy.c: Ditto.
6718         * libc/string/bzero.c: Ditto.
6719
6720 2002-05-22  Jeff Johnston  <jjohnstn@redhat.com>
6721
6722         * libc/sys/linux/shm_open.c: New file.
6723         * libc/sys/linux/shm_unlink.c: Ditto.
6724         * libc/sys/linux/Makefile.am: Add support for shm_open.c and
6725         shm_unlink.c.
6726         * libc/sys/linux/Makefile.in: Regenerated.
6727         * libc/sys/linux/sys/types.h: Add some additional checks to see
6728         if clock_t or time_t is already defined.
6729
6730 2002-05-22  Jeff Johnston  <jjohnstn@redhat.com>
6731
6732         * Makefile.am: Don't pass $toollibdir down directly in
6733         AM_MAKEFLAGS as it causes all multilibs to use the same toollibdir.
6734         Pass it under the name: top_toollibdir.
6735         * Makefile.in: Regenerated.
6736
6737 2002-05-22  Corinna Vinschen  <vinschen@redhat.com>
6738
6739         * libc/include/sys/types.h: Revert previous patch.
6740
6741 2002-05-22  Corinna Vinschen  <vinschen@redhat.com>
6742
6743         * libc/include/sys/types.h: Include cygwin/types.h always under
6744         Cygwin, not only if _POSIX_THREADS is defined.
6745
6746 2002-05-21 Dhananjay Deshpande <dhananjayd@kpit.com>
6747
6748         * configure.host: Specify sys_dir=h8300hms for h8300-*-coff* target.
6749
6750 2002-05-17  Jeff Johnston  <jjohnstn@redhat.com>
6751
6752         * Makefile.am: Copy and install headers from sys/machine/include
6753         directory.  Also pass $toollibdir to lower-level directories.
6754         * Makefile.in: Regenerated.
6755         * libc/include/stdio.h[!_REENT_ONLY]: Change stdin, stdout, and 
6756         stderr to use _REENT macro instead of _impure_ptr directly.
6757         * libc/include/sys/config.h[__i386__][__linux__]: Define
6758         __DYNAMIC_REENT__.
6759         * libc/include/sys/reent.h[!_REENT_ONLY]: Change _REENT macro to be 
6760         call to __getreent() function if !__SINGLE_THREAD__ and
6761         __DYNAMIC_REENT__ is set.
6762         * libc/reent/Makefile.am: Add support for getreent.c.
6763         * libc/reent/Makefile.in: Regenerated.
6764         * libc/string/strerror.c: Add check if EOPNOTSUPP and ENOTSUP are same.
6765         * libc/sys/linux/Makefile.am: Add support for new files.
6766         * libc/sys/linux/configure.in: Add $EXTRA_DIRS variable.
6767         * libc/sys/linux/Makefile.in: Regenerated.
6768         * libc/sys/linux/configure: Ditto.
6769         * libc/sys/linux/io.c: Add poll syscall.  Also weak-alias
6770         __close, __read, __write, __poll, __open, __lseek, __fcntl from
6771         their __libc_ counterparts.
6772         * libc/sys/linux/io64.c: Add __libc_ prefix to lseek64 and open64
6773         and weak-alias to regular names.
6774         * libc/sys/linux/pread64.c: Rename to __libc_pread64 and weak-alias
6775         to pread64 and __pread64.
6776         * libc/sys/linux/process.c: Weak_alias __libc_getpid to __getpid.
6777         * libc/sys/linux/pwrite64.c: Rename to __libc_pwrite64 and
6778         weak-alias to pwrite64.
6779         * libc/sys/linux/sched.c: Weak-alias __libc_sched_getparam,
6780         __libc_sched_getscheduler, __libc_sched_get_priority_max,
6781         __libc_sched_get_priority_min, and __libc_sched_setschedule to
6782         name with __ instead of __libc_. 
6783         * libc/sys/linux/siglongjmp.c: Include <machine/weakalias.h>.
6784         Rename siglongjmp to __libc_siglongjmp and weak-alias to siglongjmp.
6785         Call __libc_longjmp instead of longjmp, from __libc_siglongjmp.
6786         * libc/sys/linux/signal.c: Rename raise to __libc_raise and weak-alias
6787         to raise.
6788         * libc/sys/linux/socket.c: Weak-alias __libc_connect to __connect and
6789         __libc_send to __send.
6790         * libc/sys/linux/time.c: Weak-alias __libc_gettimeofday to
6791         __gettimeofday.
6792         * libc/sys/linux/wait.c: Rename wait to __libc_wait and weak-alias
6793         it to wait.  Rename wait3 to __libc_wait3 and weak-alias it to wait3.
6794         * libc/sys/linux/include/setjmp.h: Use __jmp_buf in sigjmp_buf
6795         type and typedef __jmp_buf to jmp_buf.
6796         * libc/sys/linux/machine/i386/Makefile.am: Add syscalls.c and
6797         setjmp.S.
6798         * libc/sys/linux/machine/i386/Makefile.in: Regenerated.
6799         * libc/sys/linux/machine/i386/crt0.c: Add support to clear .bss
6800         section.
6801         * libc/sys/linux/machine/i386/socketcall.h: Change to use __libc_
6802         prefix for function macros and then use weak_alias() to regular names.
6803         * libc/sys/linux/machine/i386/syscall.h: Ditto.
6804         * libc/sys/linux/sys/errno.h: Define EOPNOTSUP to be ENOTSUP.
6805         * libc/sys/linux/sys/stdio.h: Define _flockfile and _funlockfile
6806         to be flockfile() and funlockfile() respectively.
6807         * libc/sys/linux/sys/types.h
6808         * libc/reent/getreent.c: New file.
6809         * libc/sys/linux/flockfile.c: Ditto.
6810         * libc/sys/linux/funlockfile.c: Ditto.
6811         * libc/sys/linux/getreent.c: Ditto.
6812         * libc/sys/linux/pread.c: Ditto.
6813         * libc/sys/linux/pwrite.c: Ditto.
6814         * libc/sys/linux/raise.c: Ditto.
6815         * libc/sys/linux/system.c: Ditto.
6816         * libc/sys/linux/tcdrain.c: Ditto.
6817         * libc/sys/linux/machine/i386/i386mach.h: Ditto.
6818         * libc/sys/linux/machine/i386/setjmp.S: Ditto.
6819         * libc/sys/linux/machine/i386/syscalls.c: Ditto.
6820         * libc/sys/linux/machine/i386/weakalias.h: Ditto.
6821         * libc/sys/linux/machine/i386/include/setjmp.h: Ditto.
6822
6823 2002-05-14 Dhananjay Deshpande <dhananjayd@kpit.com>
6824
6825         * newlib/libc/sys/h8300hms/Makeile.am (lib_a_SOURCES): Add read.c.
6826         * newlib/libc/sys/h8300hms/read.c: New file.  Magic trap 0xC8 for sim.
6827         * newlib/libc/sys/h8300hms/syscalls.c: Move _read() to read.c.
6828         * newlib/libs/sys/h8300hms/sys/syscall.h: New file.
6829
6830 Thu May 16 17:24:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
6831
6832         * libc/machine/sh/strcpy.S (strcpy): Replace LITTLE_ENDIAN with
6833         __LITTLE_ENDIAN__.  make sure r0 has right value at first loop
6834         exit point.
6835
6836 2002-05-15  Thomas Fitzsimmons  <fitzsim@redhat.com>
6837
6838         * testsuite/lib/newlib.exp: Add newlib_include_flags to compile
6839         options when testing natively on i[3456]86-*-linux.
6840
6841         * testsuite/lib/checkoutput.exp (newlib_check_output): Output
6842         only one pass or fail per test file.  Trim \r's from output
6843         values received from test programs.  Remove support for named
6844         tests.
6845         * testsuite/newlib.locale/UTF-8.exp: Update to support new
6846         newlib_check_output behaviour.
6847         * testsuite/newlib.locale/UTF-8.c: Likewise.
6848
6849 2002-05-15  Jeff Johnston  <jjohnstn@redhat.com>
6850
6851         * libc/include/stdlib.h: Add on_exit prototype.
6852         * libc/include/sys/reent.h (struct _atexit): Add argument array
6853         and bits to track type of exit routine to support both on_exit
6854         and atexit.
6855         (_REENT_INIT_PTR): Add missing fields that won't be zeroed out
6856         by default and change the setting of the atexit structure.
6857         (_REENT_INIT)[!_REENT_SMALL]: Remove extraneous end brace.
6858         * libc/stdlib/on_exit.c: New file.
6859         * libc/stdlib/Makefile.am: Add support for on_exit.
6860         * libc/stdlib/Makefile.in: Regenerated.
6861         * libc/stdlib/atexit.c: Change to initialize types field.
6862         * libc/stdlib/exit.c: Change to look at types field for each
6863         exit routine and either call an atexit-style or an on_exit-style
6864         routine accordingly.
6865
6866 2002-05-13  Jeff Johnston  <jjohnstn@redhat.com>
6867
6868         * libc/machine/powerpc/vfprintf.c(__VFPRINTF_R)[__ALTIVEC__]: Don't
6869         allow v specifier with n or L specifiers.  For vector c format,
6870         move tmp declaration to the top.
6871
6872 2002-05-13  Jeff Johnston  <jjohnstn@redhat.com>
6873
6874         * libc/machine/powerpc/vfprintf.c(__VFPRINTF_R)[__ALTIVEC__]: Restore
6875         the original format specifier when looping for vectors to compensate
6876         for any changes made in vector %g format processing.
6877         Also add syntax checking for various invalid scenarios
6878         involving vector format extensions.
6879         * libc/machine/powerpc/vfscanf.c(__VFSCANF_R)[__ALTIVEC__]: Fix
6880         return code setting for vector formats.  Also treat vector
6881         separator mismatch as a match error instead of an input error.
6882         Perform some syntax checking for vector formats.
6883
6884 2002-05-10  Mark Bradshaw  <bradshaw@staff.crosswalk.com>
6885
6886         * libc/include/string.h (!__STRICT_ANSI__): Add strlcat and strlcpy.
6887         * libc/string/Makefile.am: Add strlcat.c and strlcpy.c.
6888         * libc/string/strlcat.c: New file.
6889         * libc/string/strlcpy.c: New file.
6890
6891 2002-05-10  Jeff Johnston  <jjohnstn@redhat.com>
6892
6893         * libc/string/strchr.c: Fix comment typo.
6894
6895 2002-05-08  Thomas Fitzsimmons  <fitzsim@redhat.com>
6896
6897         * acinclude.m4: Add support for --enable-newlib-multithread.
6898         * configure.host (newlib_cflags): Add -D__SINGLE_THREAD__ if
6899         --enable-newlib-multithread=no.
6900
6901         * libc/stdio/getc_u.c: New file.
6902         * libc/stdio/getchar_u.c: New file.
6903         * libc/stdio/putc_u.c: New file.
6904         * libc/stdio/putchar_u.c: New file.
6905         * libc/include/stdio.h: Add declarations for getc_unlocked,
6906         getchar_unlocked, putc_unlocked and putchar_unlocked.
6907         * libc/stdio/Makefile.am (LIB_SOURCES): Add new files.
6908         (CHEWOUT_FILES): Add new files' .def's.
6909         * libc/stdio/putchar.c (_putchar_r): Replace __sputc with putc.
6910
6911 Wed May  8 17:47:35 2002  J"orn Rennecke <joern.rennecke@superh.com>
6912
6913         * libc/machine/sh/memset.S (memset, __SHMEDIA__ code):
6914         Also handle as single quad word when destination ends at last
6915         byte of first quad word.  Fix byte selection in single quad code.
6916
6917 2002-05-07  Thomas Fitzsimmons  <fitzsim@redhat.com>
6918
6919         * libc/include/sys/stdio.h: New file.
6920         * libc/sys/linux/sys/stdio.h: New file.
6921         * libc/include/stdio.h: Add declarations for flockfile,
6922         ftrylockfile, and funlockfile.  Include <sys/stdio.h>.
6923         * libc/stdio/clearerr.c: Add file locking.
6924         * libc/stdio/fclose.c: Likewise.
6925         * libc/stdio/feof.c: Likewise.
6926         * libc/stdio/ferror.c: Likewise.
6927         * libc/stdio/fflush.c: Likewise.
6928         * libc/stdio/fgetc.c: Likewise.
6929         * libc/stdio/fgetpos.c: Likewise.
6930         * libc/stdio/fgets.c: Likewise.
6931         * libc/stdio/fileno.c: Likewise.
6932         * libc/stdio/fputc.c: Likewise.
6933         * libc/stdio/fputs.c: Likewise.
6934         * libc/stdio/fread.c: Likewise.
6935         * libc/stdio/freopen.c: Likewise.
6936         * libc/stdio/fseek.c: Likewise.
6937         * libc/stdio/ftell.c: Likewise.
6938         * libc/stdio/fwrite.c: Likewise.
6939         * libc/stdio/getc.c: Likewise.
6940         * libc/stdio/putc.c: Likewise.
6941         * libc/stdio/setvbuf.c: Likewise.
6942         * libc/stdio/ungetc.c: Likewise.
6943         * libc/stdio/vfprintf.c: Likewise.
6944
6945 2002-05-06  Jeff Johnston  <jjohnstn@redhat.com>
6946
6947         * libc/machine/powerpc/vfprintf.c[__ALTIVEC__]: Add vector
6948         support for 'p' format.  Fix code to print bytes for vector
6949         integer formats that do not specify 'h' or 'l'.
6950         * libc/machine/powerpc/vfscanf.c[__ALTIVEC__]: Add vector support
6951         for 'p' specifier.  Fix code to scan 16 bytes for vector integer
6952         formats that do not specify 'h' or 'l'.
6953
6954         * libc/include/stdlib.h (a64l, l64a, _l64a_r): Added prototypes.
6955
6956 2002-05-06  Nick Clifton  <nickc@cambridge.redhat.com>
6957
6958         * libc/sys/arm/syscalls.c (_rename): Add parameter names.
6959         (_sbrk): Add cast of return value.
6960
6961 2002-05-06  Jeff Johnston  <jjohnstn@redhat.com>
6962
6963         *  libc/include/sys/reent.h (_l64a_buf): New reentrant area.
6964         (_REENT_L64A_BUF): New macro for accessing area.
6965         *  libc/stdlib/Makefile.am: Add a64l.c and l64a.c.
6966         *  libc/stdlib/Makefile.in: Regenerated.
6967         *  libc/stdlib/a64l.c: New file.
6968         *  libc/stdlib/l64a.c: New file.
6969
6970 2002-05-06  Jeff Johnston  <jjohnstn@redhat.com>
6971
6972         * libc/unix/pread.c: Fix typo for _pread_r.
6973         * libc/unix/pwrite.c: Fix type for _pwrite_r.
6974         * libc/sys/linux/pread64.c: Fix typo for read syscall.
6975         * libc/sys/linux/pwrite64.c: Fix typo for write syscall.
6976
6977 2002-05-03  Christopher Faylor  <cgf@redhat.com>
6978
6979         * libc/include/sys/unistd.h: Define getdomainname under cygwin.
6980
6981 2002-05-03  Thomas Fitzsimmons  <fitzsim@redhat.com>
6982
6983         * configure.in (CC_FOR_NEWLIB): Change -isystem's to -I's.
6984
6985 2002-05-01  Christopher Faylor  <cgf@redhat.com>
6986
6987         * utmp.h: Define more UNIX constants.
6988
6989 2002-05-01  Thomas Fitzsimmons  <fitzsim@redhat.com>
6990
6991         * Makefile.am: Add support for checking multilibs.
6992
6993         * libc/Makefile.am (SUBLIBS): Add LIBC_EXTRA_LIB.
6994         (SUBDEFS): Add LIBC_EXTRA_DEF.
6995         * libc/configure.in (LIBC_EXTRA_LIB): New variable.
6996         (LIBC_EXTRA_DEF): Likewise.
6997         (extra_dir): Likewise.
6998         * libc/machine/xscale/machine: New directory.
6999         * libc/machine/xscale/machine/profile.h: New file.
7000
7001         * Makefile.am (site.exp): Remove newlib_cflags.  Add
7002         multibuildtop.
7003         * testsuite/newlib.locale/UTF-8.c: Change fprintf's to printf's.
7004         * testsuite/lib/flags.exp: New file.
7005         * testsuite/lib/newlib.exp: Load flags.exp.
7006         (newlib_target_compile): Remove libgloss directory references.
7007         (newlib_init): Remove newlib_cflags references.
7008
7009 2002-04-30  Thomas Fitzsimmons  <fitzsim@redhat.com>
7010
7011         * testsuite/lib/newlib.exp (newlib_target_compile): Change
7012         method of finding libgloss_target_dir.
7013
7014         * Makefile.am (site.exp): Change host_alias, host_triplet,
7015         target_alias, target_triplet to refer to gcc's host and target
7016         variables (newlib's build and host variables).
7017         * testsuite/lib/newlib.exp (newlib_init): Change build
7018         references to host references, host references to target
7019         references to reflect Makefile.am changes.
7020         (newlib_target_compile): Likewise.
7021         (newlib_finish): Likewise.
7022
7023 2002-04-29  Jeff Johnston  <jjohnstn@redhat.com>
7024
7025         * libc/sys/linux/io64.c (fstat64, lstat64): New syscalls added.
7026
7027 2002-04-29  Jonathan Larmour  <jlarmour@redhat.com>
7028
7029         * libc/sys/arm/syscalls.c (_rename): New function. Just a stub.
7030         (_system): New function. Ditto.
7031         * libc/stdlib/system.c (_system_r): Call _system if HAVE_SYSTEM.
7032         * configure.host: define HAVE_SYSTEM and HAVE_RENAME for xscale
7033         targets.
7034
7035 2002-04-29  Jeff Johnston  <jjohnstn@redhat.com>
7036
7037         *  libc/include/sys/unistd.h (pread, pwrite): Added prototypes.
7038         *  libc/unix/Makefile.am: Add pread.c and pwrite.c.
7039         *  libc/sys/linux/Makefile.am: Add pread64.c and pwrite64.c.
7040         *  libc/sys/linux/Makefile.in: Regenerated.
7041         *  libc/unix/Makefile.in: Ditto.
7042         *  libc/sys/linux/pread64.c: New file.
7043         *  libc/sys/linux/pwrite64.c: Ditto.
7044         *  libc/unix/pread.c: Ditto.
7045         *  libc/unix/pwrite.c: Ditto.
7046
7047 2002-04-26  Jeff Johnston  <jjohnstn@redhat.com>
7048
7049         *  libc/sys/linux/Makefile.am: Add io64.c.
7050         *  libc/sys/linux/Makefile.in: Regenerated.
7051         *  libc/sys/linux/io.c(mkfifo, fsync, fdatasync): Added syscalls.
7052         *  libc/sys/linux/signal.c (sigwaitinfo, sigtimedwait): Ditto. 
7053         *  libc/sys/linux/io64.c: New file.
7054
7055 2002-04-26  Jeff Johnston  <jjohnstn@redhat.com>
7056
7057         * configure.in (CC_FOR_NEWLIB): New variable that
7058         bases on $(CC) and adds targ-include and libc/include as
7059         -isystem directives if they are not already part of $(CC).
7060         * Makefile.am (AM_MAKEFLAGS): Change setting of CC to equal
7061         $(CC_FOR_NEWLIB).
7062         * configure: Regenerated.
7063         * Makefile.in: Ditto.
7064
7065 2002-04-25  Jeff Johnston  <jjohnstn@redhat.com>
7066
7067         *  libc/sys/linux/Makefile.am: Add support for sched.c.
7068         *  libc/sys/linux/Makefile.in: Regenerated.
7069         *  libc/sys/linux/sched.c: New file.
7070         *  libc/sys/linux/sys/types.h: Add struct timespec.
7071
7072 2002-04-25  Thomas Fitzsimmons  <fitzsim@redhat.com>
7073
7074         * configure.in (CC_FOR_BUILD): Set to gcc whether
7075         cross-compiling or not.
7076         (CC): Add -isystem's for targ-include and libc/include when they
7077         do not already appear in CC.
7078
7079 2002-04-24  Thomas Fitzsimmons  <fitzsim@redhat.com>
7080
7081         * Makefile.am (check-DEJAGNU): New target.
7082         (site.exp): Likewise.
7083         * acinclude.m4 (NEWLIB_CONFIGURE): Replace AC_CANONICAL_HOST
7084         with AC_CANONICAL_SYSTEM.  Remove AC_CANONICAL_BUILD.
7085         * libc/locale/locale.c (_setlocale_r): Add UTF-8 support.
7086         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Likewise.
7087         * libc/stdlib/wctomb_r.c (_wctomb_r): Likewise.
7088         * testsuite: New directory.
7089         * testsuite/config: Likewise.
7090         * testsuite/lib: Likewise.
7091         * testsuite/newlib.locale: Likewise.
7092         * testsuite/newlib.string: Likewise.
7093         * testsuite/config/default.exp: New file.
7094         * testsuite/lib/checkoutput.exp: New file.
7095         * testsuite/lib/newlib.exp: New file.
7096         * testsuite/lib/passfail.exp: New file.
7097         * testsuite/newlib.locale/UTF-8.c: New file.
7098         * testsuite/newlib.locale/UTF-8.exp: New file.
7099         * testsuite/newlib.locale/locale.exp: New file.
7100         * testsuite/newlib.string/string.exp: New file.
7101         * testsuite/newlib.string/tstring.c: New file.
7102
7103 2002-04-23  Jeff Johnston  <jjohnstn@redhat.com>
7104
7105         *  libc/include/machine/types.h (__pid_t, __off_t, __loff_t): Added.
7106         *  libc/sys/linux/Makefile.am: Add support for mmap.c.
7107         *  libc/sys/linux/Makefile.in: Regenerated.
7108         *  libc/sys/linux/mmap.c: New file.
7109         *  libc/sys/linux/machine/i386/syscall.h: Add _syscall6 macro.
7110         *  libc/sys/linux/sys/types.h (pid_t, off_t, loff_t): Added.
7111
7112 2002-04-22  Thomas Fitzsimmons  <fitzsim@redhat.com>
7113
7114         * acinclude.m4 (newlib_cflags): Remove include directories that
7115         are already specified in the top-level configure.in's FLAGS_FOR_TARGET.
7116
7117 2002-04-19  Bill Siegmund  <ctc-dsl@pacbell.net>
7118
7119         * libc/machine/xscale/memchr.c: Don't use multi-line strings.
7120         * libc/machine/xscale/memcmp.c: Ditto.
7121         * libc/machine/xscale/memcpy.c: Ditto.
7122         * libc/machine/xscale/memmove.c: Ditto.
7123         * libc/machine/xscale/memset.c: Ditto.
7124         * libc/machine/xscale/strchr.c: Ditto.
7125         * libc/machine/xscale/strcmp.c: Ditto.
7126         * libc/machine/xscale/strcpy.c: Ditto.
7127         * libc/machine/xscale/strlen.c: Ditto.
7128
7129 2002-04-19  Alexandre Oliva  <aoliva@redhat.com>
7130
7131         * libc/include/sys/config.h: Remove include of <limits.h>.
7132         (__INT_MAX__, __LONG_MAX__): Define like GCC's limits.h would
7133         define INT_MAX and LONG_MAX.  Use them in tests.
7134
7135 2002-04-19  Jeff Johnston  <jjohnstn@redhat.com>
7136
7137         *  configure.host: Add support for powerpc-eabialtivec*.
7138         *  libc/include/malloc.h: Add include of <machine/malloc.h>.
7139         *  libc/include/stdlib.h: Add include of <machine/stdlib.h>.
7140         *  libc/include/machine/malloc.h: New file.
7141         *  libc/include/machine/stdlib.h: Ditto.
7142         *  libc/include/machine/setjmp.h: Add support for powerpc altivec.
7143         *  libc/machine/powerpc/Makefile.am: Add conditional objects and
7144         sources based on configuration.
7145         *  libc/machine/powerpc/Makefile.in: Regenerated.
7146         *  libc/machine/powerpc/configure: Ditto.
7147         *  libc/machine/powerpc/configure.in: Add check for
7148         powerpc-eabialtivec* in which case add in additional source files.
7149         *  libc/machine/powerpc/setjmp.S: Add altivec support.
7150         *  libc/machine/powerpc/vec_calloc.c: New file.
7151         *  libc/machine/powerpc/vec_free.c: Ditto.
7152         *  libc/machine/powerpc/vec_malloc.c: Ditto.
7153         *  libc/machine/powerpc/vec_mallocr.c: Ditto.
7154         *  libc/machine/powerpc/vec_realloc.c: Ditto.
7155         *  libc/machine/powerpc/machine/malloc.h: Ditto.
7156         *  libc/machine/powerpc/machine/stdlib.h: Ditto.
7157         *  libc/machine/powerpc/vfprintf.c: New file that is vfprintf.c
7158         with added altivec format specifiers.
7159         *  libc/machine/powerpc/vfscanf.c: New file that is vfscanf.c with
7160         added altivec format specifiers.
7161
7162 2002-04-19      Joel Sherrill <joel@OARcorp.com>
7163
7164         * libs/sys/rtems/crt0.c: Satisfy gcc's references to libc functions
7165         while autoconf is trying to link main(){}.
7166
7167 2002-04-17  Jeff Johnston  <jjohnstn@redhat.com>
7168
7169         * libc/sys/linux/signal.c: Remove include of <bits/sigset.h>.
7170         * libc/sys/linux/sys/signal.h: Add include of <bits/sigset.h>.
7171
7172 2002-04-17  Jeff Johnston  <jjohnstn@redhat.com>
7173
7174         * libc/time/time.tex: Add tzset info.
7175
7176 2002-04-17  Jeff Johnston  <jjohnstn@redhat.com>
7177
7178         * libc/include/time.h (tzset, _tzset_r): Added prototypes.
7179         (strptime): Moved prototype to be within !__STRICT_ANSI__.
7180         (_tzname, _daylight, _timezone): No long __CYGWIN__ only.
7181         (tzname): Defined for all platforms.
7182         (daylight, timezone): Defined only for CYGWIN.
7183         * libc/sys/linux/machine/i386/crt0.c: Add call to tzset() after
7184         environment set up.
7185         * libc/stdlib/setenv_r.c (_setenv_r): Call tzset() if the TZ
7186         environment variable is set.
7187         * libc/time/Makefile.am: Add support for tzset.c, tzlock.c, and
7188         tzset_r.c.
7189         * libc/time/Makefile.in: Regenerated.
7190         * libc/time/gmtime.c (gmtime): Changed to call gmtime_r.
7191         * libc/time/gmtime_r.c (gmtime_r): Changed to call _mktm_r.
7192         * libc/time/lcltime_r.c (lcltime_r): Ditto.
7193         * libc/time/local.h: New local header file.
7194         * libc/time/mktime.c (mktime): Add timezone support.
7195         * libc/time/mktm_r.c: New file which is the common engine
7196         for gmtime_r and lcltime_r.  This code has timezone support.
7197         * libc/time/strftime.c (strftime): Add %Z timezone support.
7198         * libc/time/tzlock.c: New file containing timezone lock stubs.
7199         * libc/time/tzset.c: New file containing tzset() routine.
7200         * libc/time/tzset_r.c: New file containing _tzset_r and
7201         internal routine for calculating timezone changes for specified year.
7202
7203 2002-04-17  Thomas Fitzsimmons  <fitzsim@redhat.com>
7204
7205         * configure.in (CRT0_DIR): Set to libc/.
7206         (CRT1_DIR): Set to ${crt1_dir}/ if crt1_dir is non-empty.
7207         * Makefile.am: Change all occurrences of $(CRT0_DIR)/$(CRT0) to
7208         $(CRT0_DIR)$(CRT0) to prevent make warnings.  Likewise for
7209         $(CRT1_DIR)/$(CRT1).
7210         * libc/machine/xstormy16/Makefile.in: Regenerated.
7211         * libc/machine/xstormy16/aclocal.m4: Regenerated.
7212         * libc/machine/xstormy16/configure: Regenerated.
7213
7214 2002-04-13  Alexandre Oliva  <aoliva@redhat.com>
7215
7216         * libc/stdlib/mallocr.c (malloc_extend_top): If correction sbrk
7217         fails, don't bail out, and try to correct next time.
7218
7219         * libc/include/sys/config.h: Include limits.h.
7220
7221 2002-04-12  Eric Norum  <eric.norum@usask.com>
7222
7223         * libc/sys/rtems/crt0.c (rtems_gxx_mutex_init): Dummy
7224         routine to allow autoconf to determine that building executables
7225         for rtems works.
7226         (rtems_gxx_mutex_lock, rtems_gxx_mutex_unlock): Ditto.
7227         (rtems_gxx_mutex_once): Ditto.
7228
7229 2002-04-09  Tom Rix  <trix@redhat.com>
7230
7231         * libc/include/sys/reent.h (_REENT_INIT_PTR): Fix typo.
7232
7233 2002-04-09  Mark Bradshaw  <bradshaw@staff.crosswalk.com>
7234
7235         * libc/include/time.h: Fix strptime declaration.
7236         * libc/time/Makefile.am: Add strptime.c.
7237         * libc/time/Makefile.in: Regenerated.
7238         * libc/time/strptime.c: New file.
7239
7240 2002-04-08  Jeff Johnston  <jjohnstn@redhat.com>
7241
7242         * libc/sys/linux/include/setjmp.h: Add sigjmp_buf type,
7243         siglongjmp prototype, and sigsetjmp macro definition.
7244         * libc/sys/linux/siglongjmp.c: New file.
7245         * libc/sys/linux/Makefile.am: Add support for siglongjmp.
7246         * libc/sys/linux/Makefile.in: Regenerated.
7247
7248 2002-04-04  Jeff Johnston  <jjohnstn@redhat.com>
7249
7250         * Makefile.am: Add support for installing crt1.o if one exists.
7251         * configure.host: Specify crt1.o for linux.
7252         * configure.in: Expose CRT1 and CRT1_DIR for Makefile.am to use.
7253         * Makefile.in: Regenerated.
7254         * configure: Ditto.
7255         * libc/include/sys/unistd.h (_SC_STREAM_MAX, _SC_PRIORITY_SCHEDULING):
7256         Added for non-Cygwin, non-RTEMS configurations.
7257         * libc/sys/linux/Makefile.am: Add support for crt1 and sysconf.
7258         * libc/sys/linux/Makefile.in: Regenerated.
7259         * libc/sys/linux/crt1.c: New empty file to override one defaulted
7260         by gcc.  This fixes problem with reconfiguring linux newlib build.
7261         * libc/sys/linux/sysconf.c: New file.
7262
7263 2002-04-03  Jeff Johnston  <jjohnstn@redhat.com>
7264
7265         * configure.host: Add support for machine subdirectory of
7266         sys subdirectory.
7267         * configure.in: Add check for sys machine subdirectory.
7268         * Makefile.am: Ditto.
7269         * configure: Regenerated.
7270         * Makefile.in: Ditto.
7271         * libc/sys/linux/crt0.c: Moved to machine/i386 directory.
7272         * libc/sys/linux/sys/syscall.h: Ditto.
7273         * libc/sys/linux/sleep.c: New file.
7274         * libc/sys/linux/socket.c: Ditto.
7275         * libc/sys/linux/sockops.h: Ditto.
7276         * libc/sys/linux/stack.c: Ditto.
7277         * libc/sys/linux/usleep.c: Ditto.
7278         * libc/sys/linux/machine/Makefile.am: Ditto.
7279         * libc/sys/linux/machine/Makefile.in: Ditto.
7280         * libc/sys/linux/machine/aclocal.m4: Ditto.
7281         * libc/sys/linux/machine/configure: Ditto.
7282         * libc/sys/linux/machine/configure.in: Ditto.
7283         * libc/sys/linux/machine/i386/Makefile.am: Ditto.
7284         * libc/sys/linux/machine/i386/Makefile.in: Ditto.
7285         * libc/sys/linux/machine/i386/aclocal.m4: Ditto.
7286         * libc/sys/linux/machine/i386/configure: Ditto.
7287         * libc/sys/linux/machine/i386/configure.in: Ditto.
7288         * libc/sys/linux/machine/i386/crt0.c: Ditto.
7289         * libc/sys/linux/machine/i386/sigset.c: Ditto.
7290         * libc/sys/linux/machine/i386/sigstack.h: Ditto.
7291         * libc/sys/linux/machine/i386/socketcall.h: Ditto.
7292         * libc/sys/linux/machine/i386/syscall.h: Ditto.
7293         * libc/sys/linux/sys/select.h: Ditto.
7294         * libc/sys/linux/configure.in: Add support for machine directory.
7295         * libc/sys/linux/Makefile.am: Ditto plus add new files above.
7296         * libc/sys/linux/Makefile.in: Regenerated.
7297         * libc/sys/linux/configure: Ditto.
7298         * libc/sys/linux/brk.c: Use machine/syscall.h instead of sys/syscall.h.
7299         * libc/sys/linux/inode.c: Ditto.
7300         * libc/sys/linux/linux.c: Ditto.
7301         * libc/sys/linux/process.c: Ditto.
7302         * libc/sys/linux/systat.c: Ditto.
7303         * libc/sys/linux/time.c: Ditto.
7304         * libc/sys/linux/wait.c: Ditto.
7305         * libc/sys/linux/ids.c: Change header plus add setfsgid/setfsuid.
7306         * libc/sys/linux/io.c: Change header plus add readv/writev.
7307         * libc/sys/linux/signal.c: Change header plus change sigsuspend to
7308         use __sigsuspend syscall.
7309         * libc/sys/linux/select.c: Change header plus change select to
7310         use _newselect syscall.
7311         * libc/sys/linux/sys/cdefs.h: Add a number of standard definitions
7312         used by glibc header files.
7313         * libc/sys/linux/sys/types.h: Add __socklen_t and __useconds_t
7314         types.
7315
7316 2002-04-01  Jeff Johnston  <jjohnstn@redhat.com>
7317
7318         * libc/include/sys/reent.h (_REENT_INIT_PTR): New macro for
7319         initializing a struct _reent that has been dynamically allocated.
7320         (_REENT_CHECK_MISC): New macro that checks _misc struct for
7321         _REENT_SMALL and does nothing otherwise.
7322         (_REENT_STRTOK_LAST): New macro for reentrant strtok.
7323         (_REENT_MBLEN_STATE): New macro for reentrant mblen.
7324         (_REENT_MBTOWC_STATE): New macro for reentrant mbtowc.
7325         (_REENT_WCTOMB_STATE): New macro for reentrant wctomb.
7326         [_REENT_SMALL](struct _misc_reent): New structure containing
7327         miscellaneous reentrant areas needed by newlib.
7328         [_REENT_SMALL](struct _reent): Add _misc pointer.
7329         [_REENT_SMALL](_REENT_INIT_MISC): New macro.
7330         * libc/string/strtok (strtok): Change to use _REENT_CHECK_MISC
7331         and _REENT_STRTOK_LAST macros.
7332         * libc/stdlib/mblen (mblen): Change to use _REENT_CHECK_MISC
7333         and _REENT_MBLEN_STATE macros.
7334         * libc/stdlib/mbtowc (mbtowc): Change to use _REENT_CHECK_MISC
7335         and _REENT_MBTOWC_STATE macros.
7336         * libc/stdlib/wctomb (wctomb): Change to use _REENT_CHECK_MISC
7337         and _REENT_WCTOMB_STATE macros.
7338
7339 2002-04-01  Till Straumann <strauman@SLAC.Stanford.EDU>
7340
7341         * libc/stdlib/getenv_r.c (_findenv_r): Add missing ENV_UNLOCK.
7342
7343 Wed Mar 27 07:34:44 2002  Jason Tishler <jason@tishler.net>
7344
7345         * libc/include/sys/features.h (_POSIX_SEMAPHORES): New Cygwin define.
7346
7347 Tue Mar 26 17:17:10 2002  J"orn Rennecke <joern.rennecke@superh.com>
7348
7349         * libc/machine/sh/memcpy.S (Large): Fix alignment rounding.
7350         Store high part of leading bytes too.
7351
7352 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
7353
7354         * libm/math/ef_hypot.c: Increase scale factor to 68.
7355
7356 2002-03-13  Alexandre Oliva  <aoliva@redhat.com>
7357
7358         * libc/machine/mips/strlen.c (strlen) [__mips16]: Fix off-by-two
7359         error.
7360
7361 2002-03-12  Jeff Johnston  <jjohnstn@redhat.com>
7362
7363         * libc/sys/go32/access.c: Change license to relaxed license
7364         used in identical file throughout newlib/libgloss.
7365
7366 2002-03-12  Richard Earnshaw  <rearnsha@arm.com>
7367
7368         * libc/sys/arm/access.c: New file.
7369         * libc/sys/arm/Makefile.am (lib_a_SOURCES): Add access.c.
7370         * libc/sys/arm/Makefile.in: Regenerate.
7371         * libc/sys/arm/syscalls.c (_stat): New function.
7372
7373 2002-03-11  Michael Meissner  <meissner@redhat.com>
7374
7375         * libc/machine/mips/Makefile.am (lib_a_SOURCES): Add Mips specific
7376         variants strlen.c, strcmp.c, strncpy.c, memset.c and memcpy.c.
7377         * libc/machine/mips/Makefile.in: Regenerate.
7378         * libc/machine/mips/memcpy.c: New file, optimized for MIPS.
7379         * libc/machine/mips/memset.c: Dito.
7380         * libc/machine/mips/strcmp.c: Dito.
7381         * libc/machine/mips/strlen.c: Dito.
7382         * libc/machine/mips/strncmp.c: Dito.
7383
7384 2002-03-06  Jeff Johnston  <jjohnstn@redhat.com>
7385
7386         * libc/machine/i386/Makefile.am: Add $(oext) for setjmp
7387         object so it works for shared library or statici library.
7388 2002-04-17  Jeff Johnston  <jjohnstn@redhat.com>
7389
7390         *  libc/include/time.h (tzset, _tzset_r): Added prototypes.
7391         (strptime): Moved prototype to be within !__STRICT_ANSI__.
7392         (_tzname, _daylight, _timezone): No long __CYGWIN__ only.
7393         (tzname): Defined for all platforms.
7394         (daylight, timezone): Defined only for CYGWIN.
7395         *  libc/sys/linux/machine/i386/crt0.c: Add call to tzset() after
7396         environment set up.
7397         * libc/stdlib/setenv_r.c (_setenv_r): Call tzset() if the TZ
7398         environment variable is set.
7399         *  libc/time/Makefile.am: Add support for tzset.c, tzlock.c, and
7400         tzset_r.c.
7401         *  libc/time/Makefile.in: Regenerated.
7402         *  libc/time/gmtime.c (gmtime): Changed to call gmtime_r.
7403         *  libc/time/gmtime_r.c (gmtime_r): Changed to call _mktm_r.
7404         *  libc/time/lcltime_r.c (lcltime_r): Ditto.
7405         *  libc/time/local.h: New local header file.
7406         *  libc/time/mktime.c (mktime): Add timezone support.
7407         *  libc/time/mktm_r.c: New file which is the common engine
7408         for gmtime_r and lcltime_r.  This code has timezone support.
7409         *  libc/time/strftime.c (strftime): Add %Z timezone support.
7410         *  libc/time/tzlock.c: New file containing timezone lock stubs.
7411         *  libc/time/tzset.c: New file containing tzset() routine.
7412         *  libc/time/tzset_r.c: New file containing _tzset_r and
7413         internal routine for calculating timezone changes for specified year.
7414
7415 2002-04-17  Thomas Fitzsimmons  <fitzsim@redhat.com>
7416
7417         * configure.in (CRT0_DIR): Set to libc/.
7418         (CRT1_DIR): Set to ${crt1_dir}/ if crt1_dir is non-empty.
7419         * Makefile.am: Change all occurrences of $(CRT0_DIR)/$(CRT0) to
7420         $(CRT0_DIR)$(CRT0) to prevent make warnings.  Likewise for
7421         $(CRT1_DIR)/$(CRT1).
7422         * libc/machine/xstormy16/Makefile.in: Regenerated.
7423         * libc/machine/xstormy16/aclocal.m4: Regenerated.
7424         * libc/machine/xstormy16/configure: Regenerated.
7425
7426 2002-04-13  Alexandre Oliva  <aoliva@redhat.com>
7427
7428         * libc/stdlib/mallocr.c (malloc_extend_top): If correction sbrk
7429         fails, don't bail out, and try to correct next time.
7430
7431         * libc/include/sys/config.h: Include limits.h.
7432
7433 2002-04-12  Eric Norum  <eric.norum@usask.com>
7434
7435         * libc/sys/rtems/crt0.c (rtems_gxx_mutex_init): Dummy
7436         routine to allow autoconf to determine that building executables
7437         for rtems works.
7438         (rtems_gxx_mutex_lock, rtems_gxx_mutex_unlock): Ditto.
7439         (rtems_gxx_mutex_once): Ditto.
7440
7441 2002-04-09  Tom Rix  <trix@redhat.com>
7442
7443         * libc/include/sys/reent.h (_REENT_INIT_PTR): Fix typo.
7444
7445 2002-04-09  Mark Bradshaw  <bradshaw@staff.crosswalk.com>
7446
7447         * libc/include/time.h: Fix strptime declaration.
7448         * libc/time/Makefile.am: Add strptime.c.
7449         * libc/time/Makefile.in: Regenerated.
7450         * libc/time/strptime.c: New file.
7451
7452 2002-04-08  Jeff Johnston  <jjohnstn@redhat.com>
7453
7454         * libc/sys/linux/include/setjmp.h: Add sigjmp_buf type,
7455         siglongjmp prototype, and sigsetjmp macro definition.
7456         * libc/sys/linux/siglongjmp.c: New file.
7457         * libc/sys/linux/Makefile.am: Add support for siglongjmp.
7458         * libc/sys/linux/Makefile.in: Regenerated.
7459
7460 2002-04-04  Jeff Johnston  <jjohnstn@redhat.com>
7461
7462         * Makefile.am: Add support for installing crt1.o if one exists.
7463         * configure.host: Specify crt1.o for linux.
7464         * configure.in: Expose CRT1 and CRT1_DIR for Makefile.am to use.
7465         * Makefile.in: Regenerated.
7466         * configure: Ditto.
7467         * libc/include/sys/unistd.h (_SC_STREAM_MAX, _SC_PRIORITY_SCHEDULING):
7468         Added for non-Cygwin, non-RTEMS configurations.
7469         * libc/sys/linux/Makefile.am: Add support for crt1 and sysconf.
7470         * libc/sys/linux/Makefile.in: Regenerated.
7471         * libc/sys/linux/crt1.c: New empty file to override one defaulted
7472         by gcc.  This fixes problem with reconfiguring linux newlib build.
7473         * libc/sys/linux/sysconf.c: New file.
7474
7475 2002-04-03  Jeff Johnston  <jjohnstn@redhat.com>
7476
7477         * configure.host: Add support for machine subdirectory of
7478         sys subdirectory.
7479         * configure.in: Add check for sys machine subdirectory.
7480         * Makefile.am: Ditto.
7481         * configure: Regenerated.
7482         * Makefile.in: Ditto.
7483         * libc/sys/linux/crt0.c: Moved to machine/i386 directory.
7484         * libc/sys/linux/sys/syscall.h: Ditto.
7485         * libc/sys/linux/sleep.c: New file.
7486         * libc/sys/linux/socket.c: Ditto.
7487         * libc/sys/linux/sockops.h: Ditto.
7488         * libc/sys/linux/stack.c: Ditto.
7489         * libc/sys/linux/usleep.c: Ditto.
7490         * libc/sys/linux/machine/Makefile.am: Ditto.
7491         * libc/sys/linux/machine/Makefile.in: Ditto.
7492         * libc/sys/linux/machine/aclocal.m4: Ditto.
7493         * libc/sys/linux/machine/configure: Ditto.
7494         * libc/sys/linux/machine/configure.in: Ditto.
7495         * libc/sys/linux/machine/i386/Makefile.am: Ditto.
7496         * libc/sys/linux/machine/i386/Makefile.in: Ditto.
7497         * libc/sys/linux/machine/i386/aclocal.m4: Ditto.
7498         * libc/sys/linux/machine/i386/configure: Ditto.
7499         * libc/sys/linux/machine/i386/configure.in: Ditto.
7500         * libc/sys/linux/machine/i386/crt0.c: Ditto.
7501         * libc/sys/linux/machine/i386/sigset.c: Ditto.
7502         * libc/sys/linux/machine/i386/sigstack.h: Ditto.
7503         * libc/sys/linux/machine/i386/socketcall.h: Ditto.
7504         * libc/sys/linux/machine/i386/syscall.h: Ditto.
7505         * libc/sys/linux/sys/select.h: Ditto.
7506         * libc/sys/linux/configure.in: Add support for machine directory.
7507         * libc/sys/linux/Makefile.am: Ditto plus add new files above.
7508         * libc/sys/linux/Makefile.in: Regenerated.
7509         * libc/sys/linux/configure: Ditto.
7510         * libc/sys/linux/brk.c: Use machine/syscall.h instead of sys/syscall.h.
7511         * libc/sys/linux/inode.c: Ditto.
7512         * libc/sys/linux/linux.c: Ditto.
7513         * libc/sys/linux/process.c: Ditto.
7514         * libc/sys/linux/systat.c: Ditto.
7515         * libc/sys/linux/time.c: Ditto.
7516         * libc/sys/linux/wait.c: Ditto.
7517         * libc/sys/linux/ids.c: Change header plus add setfsgid/setfsuid.
7518         * libc/sys/linux/io.c: Change header plus add readv/writev.
7519         * libc/sys/linux/signal.c: Change header plus change sigsuspend to
7520         use __sigsuspend syscall.
7521         * libc/sys/linux/select.c: Change header plus change select to
7522         use _newselect syscall.
7523         * libc/sys/linux/sys/cdefs.h: Add a number of standard definitions
7524         used by glibc header files.
7525         * libc/sys/linux/sys/types.h: Add __socklen_t and __useconds_t
7526         types.
7527
7528 2002-04-01  Jeff Johnston  <jjohnstn@redhat.com>
7529
7530         * libc/include/sys/reent.h (_REENT_INIT_PTR): New macro for
7531         initializing a struct _reent that has been dynamically allocated.
7532         (_REENT_CHECK_MISC): New macro that checks _misc struct for
7533         _REENT_SMALL and does nothing otherwise.
7534         (_REENT_STRTOK_LAST): New macro for reentrant strtok.
7535         (_REENT_MBLEN_STATE): New macro for reentrant mblen.
7536         (_REENT_MBTOWC_STATE): New macro for reentrant mbtowc.
7537         (_REENT_WCTOMB_STATE): New macro for reentrant wctomb.
7538         [_REENT_SMALL](struct _misc_reent): New structure containing
7539         miscellaneous reentrant areas needed by newlib.
7540         [_REENT_SMALL](struct _reent): Add _misc pointer.
7541         [_REENT_SMALL](_REENT_INIT_MISC): New macro.
7542         * libc/string/strtok (strtok): Change to use _REENT_CHECK_MISC
7543         and _REENT_STRTOK_LAST macros.
7544         * libc/stdlib/mblen (mblen): Change to use _REENT_CHECK_MISC
7545         and _REENT_MBLEN_STATE macros.
7546         * libc/stdlib/mbtowc (mbtowc): Change to use _REENT_CHECK_MISC
7547         and _REENT_MBTOWC_STATE macros.
7548         * libc/stdlib/wctomb (wctomb): Change to use _REENT_CHECK_MISC
7549         and _REENT_WCTOMB_STATE macros.
7550
7551 2002-04-01  Till Straumann <strauman@SLAC.Stanford.EDU>
7552
7553         * libc/stdlib/getenv_r.c (_findenv_r): Add missing ENV_UNLOCK.
7554
7555 Wed Mar 27 07:34:44 2002  Jason Tishler <jason@tishler.net>
7556
7557         * libc/include/sys/features.h (_POSIX_SEMAPHORES): New Cygwin define.
7558
7559 Tue Mar 26 17:17:10 2002  J"orn Rennecke <joern.rennecke@superh.com>
7560
7561         * libc/machine/sh/memcpy.S (Large): Fix alignment rounding.
7562         Store high part of leading bytes too.
7563
7564 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
7565
7566         * libm/math/ef_hypot.c: Increase scale factor to 68.
7567
7568 2002-03-13  Alexandre Oliva  <aoliva@redhat.com>
7569
7570         * libc/machine/mips/strlen.c (strlen) [__mips16]: Fix off-by-two
7571         error.
7572
7573 2002-03-12  Jeff Johnston  <jjohnstn@redhat.com>
7574
7575         * libc/sys/go32/access.c: Change license to relaxed license
7576         used in identical file throughout newlib/libgloss.
7577
7578 2002-03-12  Richard Earnshaw  <rearnsha@arm.com>
7579
7580         * libc/sys/arm/access.c: New file.
7581         * libc/sys/arm/Makefile.am (lib_a_SOURCES): Add access.c.
7582         * libc/sys/arm/Makefile.in: Regenerate.
7583         * libc/sys/arm/syscalls.c (_stat): New function.
7584
7585 2002-03-11  Michael Meissner  <meissner@redhat.com>
7586
7587         * libc/machine/mips/Makefile.am (lib_a_SOURCES): Add Mips specific
7588         variants strlen.c, strcmp.c, strncpy.c, memset.c and memcpy.c.
7589         * libc/machine/mips/Makefile.in: Regenerate.
7590         * libc/machine/mips/memcpy.c: New file, optimized for MIPS.
7591         * libc/machine/mips/memset.c: Dito.
7592         * libc/machine/mips/strcmp.c: Dito.
7593         * libc/machine/mips/strlen.c: Dito.
7594         * libc/machine/mips/strncmp.c: Dito.
7595
7596 2002-03-06  Jeff Johnston  <jjohnstn@redhat.com>
7597
7598         * libc/machine/i386/Makefile.am: Add $(oext) for setjmp
7599         object so it works for shared library or statici library.
7600         * libc/machine/i386/Makefile.in: Regenerated.
7601
7602 Wed Mar  6 10:24:26 2002  J"orn Rennecke <joern.rennecke@superh.com>
7603
7604         * libc/machine/sh/Makefile.am (lib_a_SOURCES, SH64 case):
7605         Add memcpy.S, memset.S and strcpy.S.
7606         * libc/machine/sh/Makefile.in: Regenerate.
7607         * libc/machine/sh/asm.h (_ENTRY): Set SH5 alignment to 8 bytes.
7608         (SHHI, SHLO): Define.
7609         * libc/machine/sh/memset.S: Add code for SH5.
7610         * libc/machine/sh/memset.S: Likewise.
7611         * libc/machine/sh/strcpy.S: Likewise.
7612
7613 2002-02-27  Jeff Johnston  <jjohnstn@redhat.com>
7614
7615         * configure.host: Add check for --disable-newlib-io-float
7616         configuration option and add -DNO_FLOATING_POINT to newlib cflags
7617         if appropriate.
7618         * acinclude.m4: Added --disable-newlib-io-float option.
7619         * aclocal.m4: Regenerated.
7620         * configure: Ditto.
7621         * doc/aclocal.m4 doc/configure libc/aclocal.m4 libc/configure
7622         * libc/*/aclocal.m4 libc/*/configure 
7623         * libm/*/aclocal.m4 libm/*/configure: Ditto.
7624         * libc/stdio/vfprintf.c [!INTEGER_ONLY]: Only set FLOATING_POINT
7625         if NO_FLOATING_POINT flag is not defined.
7626
7627 2002-02-25  Jeff Johnston  <jjohnstn@redhat.com>
7628
7629         * libc/include/sys/config.h: Add __extension__ in front of
7630         long long references.
7631
7632 2002-02-23  Corinna Vinschen  <corinna@vinschen.de>
7633
7634         * libc/include/sys/stat.h (_fstat): Don't declare when compiling Cygwin.
7635         (_stat): Ditto.
7636
7637 2002-02-23  Corinna Vinschen  <corinna@vinschen.de>
7638
7639         * libc/sys/cygwin/sys/dirent.h (struct __DIR): Use __off32_t instead
7640         of off_t.
7641
7642 2002-02-20  Nick Clifton  <nickc@cambridge.redhat.com>
7643
7644         * libc/machine/xscale/strchr.c (strchr): Add 'r1' to the list of
7645         clobbered registers.
7646
7647 2002-02-19  Thomas Fitzsimmons  <fitzsim@redhat.com>
7648
7649         * configure.host (newlib_cflags): When host is in m68* add
7650         -DCOMPACT_CTYPE.
7651
7652 2002-02-15  Jeff Johnston  <jjohnstn@redhat.com>
7653
7654         * libc/include/sys/config.h: Add definitions for
7655         __int16_t, __uint16_t, __int64_t, and __uint64_t.
7656
7657 2002-02-12  Hans-Peter Nilsson  <hp@bitrange.com>
7658
7659         * libc/sys/mmixware/link.c: New.
7660         * libc/sys/mmixware/sys/syscall.h (TRAP1i, I3f): Make asm
7661         volatile.
7662         * libc/sys/mmixware/times.c (_times): Renamed from times.
7663         * libc/sys/mmixware/open.c (_open): Attempt to handle O_APPEND
7664         properly by reading previous contents, not through BinaryReadWrite.
7665         * libc/sys/mmixware/Makefile.am (lib_a_SOURCES): Add link.c
7666         * libc/sys/mmixware/Makefile.in: Regenerate.
7667
7668 2002-02-10  Corinna Vinschen  <corinna@vinschen.de>
7669
7670         * libc/include/grp.h: Don't declare group functions when compiling
7671         Cygwin.
7672
7673 2002-02-09  Corinna Vinschen  <corinna@vinschen.de>
7674
7675         * libc/include/grp.h: Include Cygwin specific header.
7676         * libc/include/sys/stat.h: Ditto.  Don't define `struct stat'
7677         when compiling for Cygwin.
7678         * libc/include/sys/types.h: Don't define off_t, uid_t
7679         and gid_t when compiling for Cygwin.
7680
7681 2002-02-08  matthew green  <mrg@redhat.com>
7682
7683         * libc/include/sys/reent.h (_REENT_CHECK_EMERGENCY): Allocate
7684         _REENT_EMERGENCY_SIZE, not sizeof(char *).
7685
7686 2002-02-08  Alexandre Oliva  <aoliva@redhat.com>
7687
7688         Contribute sh64-elf.
7689         2001-03-13  Alexandre Oliva  <aoliva@redhat.com>
7690         * configure.host (newlib_cflags) [sh*-*-*]: Enable long long
7691         support in printf.
7692         2001-01-29  Alexandre Oliva  <aoliva@redhat.com>
7693         * libc/machine/sh/setjmp.S [SH5]: Switch to SHmedia mode before
7694         any labels.
7695         2001-01-24  Alexandre Oliva  <aoliva@redhat.com>
7696         * libc/sys/sh/trap.S (___trap34) [SH5]: Don't trash r2.
7697         2000-12-16  Alexandre Oliva  <aoliva@redhat.com>
7698         * libc/machine/sh/configure.in: Rework conditionals.
7699         * libc/machine/sh/Makefile.am: Likewise.
7700         * libc/machine/sh/configure, libc/machine/sh/Makefile.in: Rebuilt.
7701         2000-12-01  Alexandre Oliva  <aoliva@redhat.com>
7702         * configure.host: Match `sh*'.
7703         * libc/include/machine/setjmp.h: Define for SH5.
7704         * libc/machine/sh/configure.in: Detect SH5.
7705         * libc/machine/sh/configure: Rebuilt.
7706         * libc/machine/sh/Makefile.am: Use only setjmp.S for SH5.
7707         * libc/machine/sh/Makefile.in: Rebuilt.
7708         * libc/machine/sh/asm.h: Adjust for SH5.
7709         * libc/machine/sh/setjmp.S: Implement in SHmedia.
7710         * libc/sys/sh/crt0.S: Likewise.
7711         * libc/sys/sh/trap.S: Likewise.
7712
7713 2002-02-07  Jeff Johnston  <jjohnstn@redhat.com>
7714
7715         * libc/machine/i386/Makefile.am: (mach_add_src): Remove.
7716         (mach_add_obj): Conditionally set to setjmp.o or nothing.
7717         (LIB_SOURCES): Remove $(mach_add_src).
7718         (lib_a_LIBADD, lib_a_DEPENDENCIES): Add and set to $(mach_add_src).
7719         (lib_la_LIBADD, lib_la_DEPENDENCIES): Ditto.
7720         * libc/machine/i386/Makefile.in: Regenerate.
7721
7722 2002-02-05  Manik Raina <manik@cisco.com>
7723
7724         * libc/misc/dprintf.c (parse_number): #if 0 unused function.
7725         * libc/stdlib/ldtoa.c (_ldcheck): Remove unused local variables
7726         s, p, k, and outstr.
7727         * libc/stdlib/dtoa.c (_dtoa_r): Initialize mlo.
7728
7729 2002-02-04  Jeff Johnston  <jjohnstn@redhat.com>
7730
7731         * libc/include/sys/reent.h [(!_REENT_SMALL]: Add
7732         _REENT_CHECK_EMERGENCY macro.
7733
7734 2002-02-03  matthew green  <mrg@redhat.com>
7735
7736         * libc/reent/signgam.c (__signgam): Fix error in previous.
7737
7738 2002-02-02  matthew green  <mrg@redhat.com>
7739
7740         * libc/include/sys/config.h (_REENT_SMALL): Define for Xstormy16.
7741
7742         * libc/reent/reent.c (_reclaim_reent): Clean for _REENT_SMALL case.
7743         * libc/reent/reent.tex: Add blurb about _REENT_SMALL.
7744         * libc/include/sys/reent.h (struct _reent): Completely new version
7745         for _REENT_SMALL.
7746         (_REENT_INIT): New defines, different defintion depending on _REENT_SMALL.
7747         (_REENT_CHECK, _REENT_CHECK_TM): Likewise.
7748         (_REENT_CHECK_ASCTIME_BUF, _REENT_INIT_RAND48): Likewise.
7749         (_REENT_CHECK_RAND48, _REENT_INIT_MP, _REENT_CHECK_MP): Likewise.
7750         (_REENT_CHECK_EMERGENCY, _REENT_SIGNGAM, _REENT_RAND_NEXT): Likewise.
7751         (_REENT_RAND48_SEED, _REENT_RAND48_MULT, _REENT_RAND48_ADD): Likewise.
7752         (_REENT_MP_RESULT, _REENT_MP_RESULT_K, _REENT_MP_P5S): Likewise.
7753         (_REENT_MP_FREELIST, _REENT_ASCTIME_BUF, _REENT_TM): Likewise.
7754         (_REENT_EMERGENCY): Likewise.
7755
7756         * libc/include/sys/reent.h (struct __sFILE_fake): New struct, same as
7757         the start of the real __sFILE, used for stdin, stdout and stderr until
7758         they are setup properly.
7759         (struct __sFILE): Move location of _data in _REENT_SMALL case.
7760         * libc/stdio/findfp.c (__sinit): Rearrange for _REENT_SMALL case by
7761         allocated stdin, stdout and stderr.
7762         * libc/stdio/getchar.c (_getchar_r): Call _REENT_SMALL_CHECK_INIT().
7763         * libc/stdio/iprintf.c (iprintf, _iprintf_r): Likewise.
7764         * libc/stdio/perror.c (_perror_r): Likewise.
7765         * libc/stdio/printf.c (printf, _printf_r): Likewise.
7766         * libc/stdio/putchar.c (_putchar_r): Likewise.
7767         * libc/stdio/puts.c (_puts_r): Likewise.
7768         * libc/stdio/scanf.c (scanf, _scanf_r): Likewise.
7769         * libc/stdio/vprintf.c (vprintf): Likewise.
7770         * libc/stdio/vscanf.c (vscanf, _vscanf_r): Likewise.
7771
7772         * libc/stdio/tmpnam.c (_tmpnam_r): Use _REENT_EMERGENCY().
7773
7774         * libc/reent/reent.c (_wrapup_reent): Adjust for _REENT_SMALL atexit.
7775         * libc/include/sys/reent.h (_atexit): Limit atexit() entries to 32
7776         for _REENT_SMALL.
7777         * libc/stdlib/atexit.c (atexit): Rearrange for _REENT_SMALL case.
7778         * libc/stdlib/exit.c (exit): Rearrange for _REENT_SMALL case.
7779
7780         * libc/include/sys/reent.h (struct _rand48): Keep _rand_next if
7781         _REENT_SMALL.
7782         * libc/stdlib/drand48.c (_drand48_r): Call _REENT_CHECK_RAND48().
7783         * libc/stdlib/lcong48.c (_lcong48_r): Likewise.
7784         * libc/stdlib/lrand48.c (_lrand48_r): Likewise.
7785         * libc/stdlib/mrand48.c (_mrand48_r): Likewise.
7786         * libc/stdlib/rand48.c (__dorand48): Likewise.
7787         * libc/stdlib/seed48.c (_seed48_r): Likewise.
7788         * libc/stdlib/srand48.c (_srand48_r): Likewise.
7789         * libc/stdlib/rand48.h (__rand48_seed, __rand48_mult, __rand48_add): Define
7790         as _REENT_RAND48_SEED(), _REENT_RAND48_MULT() and _REENT_RAND48_ADD().
7791         * libc/stdlib/dtoa.c (_dtoa_r): Call _REENT_CHECK_MP().  Use
7792         _REENT_MP_RESULT() and _REENT_MP_RESULT_K().
7793         * libc/stdlib/ldtoa.c (_ldtoa_r): Likewise.
7794         * libc/stdlib/rand.c (srand): Use _REENT_RAND_NEXT().
7795         * libc/stdlib/rand.c (rand): Likewise.
7796
7797         * libc/stdlib/mallocr.c (malloc_stats): Call _REENT_SMALL_CHECK_INIT().
7798         * libc/stdlib/mstats.c (_mstats_r): Call _REENT_SMALL_CHECK_INIT().
7799
7800         * libc/stdlib/mprec.c (Balloc): Call _REENT_CHECK_MP.  Use
7801         _REENT_MP_FREELIST() and _REENT_MP_P5S.
7802         * libc/include/sys/reent.h (struct _mprec): New structure.
7803
7804         * libc/include/sys/reent.h (struct _reent): Rename _strtok_last to
7805         _unused_strtok_last.
7806         * libc/string/strtok.c (strtok): Use a local static variable.
7807
7808         * libc/include/sys/reent.h (_REENT_ASCTIME_SIZE): New define.
7809         (_REENT_EMERGENCY_SIZE): Likewise.
7810         * libc/time/asctime.c (asctime): Call _REENT_CHECK_ASCTIME_BUF().  Use
7811         _REENT_ASCTIME_BUF().
7812         * libc/time/lcltime.c (localtime): Call _REENT_CHECK_TM().  Use
7813         _REENT_TM().
7814
7815         * libc/include/math.h (__singam_r): Use _REENT_SIGNGAM().
7816         * libc/reent/signgam.c (__signgam): Use _REENT_SIGNGAM().
7817         * libm/math/w_gamma.c (gamma): Use _REENT_SIGNGAM().
7818         * libm/math/w_lgamma.c (lgamma): Use _REENT_SIGNGAM().
7819         * libm/math/wf_gamma.c (gammaf): Use _REENT_SIGNGAM().
7820         * libm/math/wf_lgamma.c (lgammaf): Use _REENT_SIGNGAM().
7821
7822 2002-02-01  Geoffrey Keating  <geoffk@redhat.com>
7823
7824         * configure.host (xstormy16): Don't use the generic malloc.
7825         * libc/machine/xstormy16/Makefile.am: Build tiny-malloc.
7826         * libc/machine/xstormy16/Makefile.in: Regenerate.
7827         * libc/machine/xstormy16/mallocr.c: New file.
7828         * libc/machine/xstormy16/tiny-malloc.c: New file.
7829
7830 2002-01-28  Thomas Fitzsimmons  <fitzsim@redhat.com>
7831
7832         * libc/include/sys/signal.h [__CYGWIN__]: Issue error message
7833         when _CYGWIN_TYPES_H is not defined.
7834
7835 2002-01-24  Thomas Fitzsimmons  <fitzsim@redhat.com>
7836
7837         * libc/include/sys/signal.h: Revert 2002-01-23 change.
7838
7839 2002-01-23  Thomas Fitzsimmons  <fitzsim@redhat.com>
7840
7841         * libc/include/sys/signal.h: Remove pthread_kill declaration
7842         when __CYGWIN__ is defined.
7843
7844 2002-01-18  Mark Bradshaw  <bradshaw@staff.crosswalk.com>
7845
7846         * libc/include/time.h: Add prototype for strptime for Cygwin.
7847
7848 2002-01-17  Nick Clifton  <nickc@cambridge.redhat.com>
7849
7850         * libc/machine/xscale/memset.c (memset): Fix bug when len == 1 and
7851         dst was not word aligned.
7852
7853         * libc/sys/arm/syscalls.c (_sbrk): Return -1 rather than aborting
7854         if too much memory is requested.
7855
7856 2002-01-11 Jeff Johnston  <jjohnstn@redhat.com>
7857
7858         * libc/stdio/vfscanf.c (__svfscanf_r): Change loop that
7859         reads blanks from the input file to break if EOF reached
7860         rather than end processing.
7861
7862 2002-01-07 Jeff Johnston  <jjohnstn@redhat.com>
7863
7864         * MAINTAINERS: Change e-mail addresses to refer to redhat domain.
7865
7866 2002-01-07 Alan Matsuoka <alanm@redhat.com>
7867
7868         * libc/include/machine/ieeefp.h: Configure d10v doubles to
7869         be 32 bits if __DOUBLE__ == 32  otherwise doubles are 64 bits.
7870         libc/include/sys/config.h: Ditto.
7871
7872 2001-12-28  Corinna Vinschen  <corinna@vinschen.de>
7873
7874         * libc/sys/cygwin/sys/utmp.h: Add definition of UTMP_FILE.
7875
7876 2001-12-22  Geoffrey Keating  <geoffk@redhat.com>
7877             Catherine Moore  <clm@redhat.com>
7878             Richard Henderson  <rth@redhat.com>
7879             Corinna Vinschen  <vinschen@redhat.com>
7880
7881         * configure.host: Add support for xstormy16.
7882         * libc/include/machine/ieeefp.h: Add support for xstormy16.
7883         * libc/include/machine/setjmp.h: Add support for xstormy16.
7884         * libc/include/sys/config.h: Add support for xstormy16.
7885         * libc/machine/xstormy16/Makefile.am: New file.
7886         * libc/machine/xstormy16/Makefile.in: New file.
7887         * libc/machine/xstormy16/aclocal.m4: New file.
7888         * libc/machine/xstormy16/configure: New file.
7889         * libc/machine/xstormy16/configure.in: New file.
7890         * libc/machine/xstormy16/setjmp.S: New file.
7891
7892 2001-12-19  Thomas Fitzsimmons  <fitzsim@redhat.com>
7893
7894         * libm/machine/configure.in (HAVE_LIBM_MACHINE_DIR): New conditional.
7895         * libm/machine/Makefile.am [HAVE_LIBM_MACHINE_DIR] (LIBM_MACHLIB): New variable.
7896
7897 2001-12-19  Corinna Vinschen  <corinna@vinschen.de>
7898
7899         * libm/machine/Makefile.am: Change rules to create correct lib.a.
7900         * libm/machine/Makefile.in: Regenerated through automake.
7901
7902 2001-12-18  Thomas Fitzsimmons  <fitzsim@redhat.com>
7903
7904         * Makefile.am (DOCDIR): Force to empty string when doc
7905         directory is not present.
7906
7907 2001-12-18  Thomas Fitzsimmons  <fitzsim@redhat.com>
7908
7909         * libc/machine/i386/f_*: Move to libm/machine/i386.
7910
7911 2001-12-18      Joel Sherrill <joel@OARcorp.com>
7912
7913         * libm/machine/Makefile.am: Add dummy doc stub so
7914         "make info" works.
7915
7916 2001-12-17      Joel Sherrill <joel@OARcorp.com>
7917
7918         * libc/include/sys/types.h (ino_t): RTEMS uses long also.
7919
7920 2001-12-17  Thomas Fitzsimmons  <fitzsim@redhat.com>
7921
7922         * libc/stdlib/Makefile.am (LIB_COMPILE): Change to equal
7923         $(COMPILE) rather than $(CC).
7924         * libc/stdio/Makefile.am (LIB_COMPILE): Likewise.
7925         (vfprintf.$(oext)): Remove $(INCLUDES), made redundant by
7926         $(LIB_COMPILE) change.
7927         (vfiprintf.$(oext)): Likewise.
7928
7929 2001-12-17  Corinna Vinschen  <vinschen@redhat.de>
7930
7931         * libc/sys/cygwin/include/unistd.h: Add __UNISTD_GETOPT_ to allow
7932         conditionalized including of getopt stuff.
7933
7934 2001-12-14  Thomas Fitzsimmons  <fitzsim@redhat.com>
7935
7936         * libc/stdio/Makefile.am (vfprintf.$(oext)): Add $(INCLUDES) to
7937         compile line.
7938         (vfiprintf.$(oext)): Likewise.
7939
7940 2001-12-13  Thomas Fitzsimmons  <fitzsim@redhat.com>
7941
7942         * Makefile.shared: New file.
7943         * libc/sys/linux/shared.ld: New file.
7944         * libm/machine/*: New files.
7945         * libm/machine/i386/*: New files.
7946         * Makefile.am: Add libtool support.  Change math and mathfp
7947         references to variables.
7948         * configure.host: Add variables for libtool support.  Add
7949         libm_machine_dir variable.
7950         * configure.in: Add objectlist variables, for libtool
7951         support.  Add CC_FOR_BUILD tests.
7952         * libc/Makefile.am: Add libtool support.  Change crt0.o
7953         reference to be a variable reference.
7954         * libc/configure.in: Add libtool support.  Change sublib
7955         names to be lib${subdir}.la when using libtool.
7956         * libc/ctype/Makefile.am: Add libtool support.
7957         * libc/errno/Makefile.am: Likewise.
7958         * libc/locale/Makefile.am: Likewise.
7959         * libc/machine/Makefile.am: Likewise.
7960         * libc/machine/configure.in: Likewise.
7961         * libc/machine/i386/Makefile.am: Likewise.
7962         * libc/machine/i386/configure.in: Likewise.
7963         * libc/misc/Makefile.am: Likewise.
7964         * libc/posix/Makefile.am: Likewise.
7965         * libc/reent/Makefile.am: Likewise.
7966         * libc/signal/Makefile.am: Likewise.
7967         * libc/stdio/Makefile.am: Likewise.
7968         * libc/stdlib/Makefile.am: Likewise.
7969         * libc/string/Makefile.am: Likewise.
7970         * libc/sys/Makefile.am: Likewise.
7971         * libc/sys/configure.in: Likewise.
7972         * libc/sys/linux/Makefile.am: Add libtool support.  Change
7973         awk reference to a variable reference.  Change signal.h
7974         reference to a variable reference.
7975         * libc/sys/linux/configure.in: Add libtool support.
7976         * libc/syscalls/Makefile.am: Likewise.
7977         * libc/time/Makefile.am: Likewise.
7978         * libc/unix/Makefile.am: Likewise.
7979         * libm/Makefile.am: Add libtool support.  Change math and
7980         mathfp references to variables.
7981         * libm/configure.in: Add libtool support.  Add
7982         LIBM_MACHINE_LIB variable.
7983         * libm/common/Makefile.am: Add libtool support.
7984         * libm/math/Makefile.am: Likewise.
7985         * libm/mathfp/Makefile.am: Likewise.
7986         Regenerate all Makefile.in, aclocal.m4, and configure.
7987
7988 2001-12-13 Anita Kulkarni <anitak@kpit.com>
7989
7990         * libc/sys/sh/crt0.S: Remove stack symbol definition 0xdeaddead.
7991
7992 2001-12-06  John Peacock <jpeacock@rowman.com>
7993
7994         * libc/include/sys/unistd.h: Correct ualarm declaration.
7995
7996 2001-12-05  Nick Clifton  <nickc@cambridge.redhat.com>
7997
7998         * libc/sys/arm/crt0.S: For __USES_INITFINI__ preserve the argument
7999         vector before calling the initialisation functions.
8000
8001 2001-11-29  Christopher Faylor  <cgf@redhat.com>
8002
8003         * libc/include/dirent.h: Protect against multiple inclusion.
8004
8005 2001-11-27  Christopher Faylor  <cgf@redhat.com>
8006
8007         * libc/include/sys/types.h: Define useconds_t.
8008         * libc/include/sys/ulimit.h: Declare ualarm.
8009
8010 2001-11-21  Christopher Faylor  <cgf@redhat.com>
8011
8012         * libc/sys/cygwin/sys/dirent.h (DIR): Add another internal element.
8013
8014 2001-11-19  Hans-Peter Nilsson  <hp@bitrange.com>
8015
8016         * libc/sys/mmixware/*: Tweak license header in all source files.
8017
8018 2001-11-12  Corinna Vinschen  <vinschen@redhat.com>
8019
8020         * libc/include/alloca.h: Move libc/sys/linux/include/alloca.h
8021         to here.  Rearrange for general inclusion by stdlib.h.
8022         * libc/include/stdlib.h: Include <alloca.h> if __STRICT_ANSI__
8023         isn't defined.
8024         * libc/sys/linux/include/alloca.h: Move to libc/include.
8025
8026 2001-11-12  Anthony Green  <green@redhat.com>
8027
8028         * libc/sys/arm/crt0.S (__stack_base__): New symbol.
8029
8030 2001-11-13  Hans-Peter Nilsson  <hp@bitrange.com>
8031
8032         * libc/sys/mmixware/*: Correct spacing in all source files.
8033         * libc/sys/mmixware/syscall.h: Move misplaced file...
8034         * libc/sys/mmixware/sys/syscall.h: ...here.
8035
8036 2001-11-12  Hans-Peter Nilsson  <hp@bitrange.com>
8037
8038         * libc/include/machine/ieeefp.h: Add support for mmix target.
8039         * libc/include/machine/setjmp.h: Ditto.
8040         * configure.host: Ditto.
8041         * libc/sys/mmixware/Makefile.am, libc/sys/mmixware/_exit.c,
8042         libc/sys/mmixware/access.c, libc/sys/mmixware/aclocal.m4,
8043         libc/sys/mmixware/chmod.c, libc/sys/mmixware/chown.c,
8044         libc/sys/mmixware/close.c, libc/sys/mmixware/configure.in,
8045         libc/sys/mmixware/creat.c, libc/sys/mmixware/crt0.c,
8046         libc/sys/mmixware/execv.c, libc/sys/mmixware/execve.c,
8047         libc/sys/mmixware/fork.c, libc/sys/mmixware/fstat.c,
8048         libc/sys/mmixware/getpid.c, libc/sys/mmixware/gettime.c,
8049         libc/sys/mmixware/isatty.c, libc/sys/mmixware/kill.c,
8050         libc/sys/mmixware/lseek.c, libc/sys/mmixware/open.c,
8051         libc/sys/mmixware/pipe.c, libc/sys/mmixware/read.c,
8052         libc/sys/mmixware/sbrk.c, libc/sys/mmixware/setjmp.S,
8053         libc/sys/mmixware/stat.c, libc/sys/mmixware/sys/syscall.h,
8054         libc/sys/mmixware/time.c, libc/sys/mmixware/times.c,
8055         libc/sys/mmixware/unlink.c, libc/sys/mmixware/utime.c,
8056         libc/sys/mmixware/wait.c, libc/sys/mmixware/write.c: New files.
8057         * libc/sys/mmixware/configure, libc/sys/mmixware/Makefile.in,
8058         libc/sys/mmixware/aclocal.m4: Generate.
8059
8060 2001-11-05  Corinna Vinschen  <corinna@vinschen.de>
8061
8062         * libc/include/sys/unistd.h: Add prototypes for endusershell(),
8063         getusershell(), iruserok(), revoke(), ruserok() and setusershell()
8064         when __CYGWIN__ is defined.
8065         * libc/sys/cygwin/sys/utmp.h: Add prototypes for login_tty() and
8066         logwtmp().
8067
8068 2001-11-01  Arati Dikey  <aratidikey@hotmail.com>
8069
8070         * libm/mathfp/sf_isinf.c (isinff): Change to use _DEFUN macro.
8071         [_DOUBLE_IS_32BITS](isinf): New function that calls isinff.
8072         * libm/mathfp/sf_isnan.c (isnanf): Change to use _DEFUN macro.
8073         [_DOUBLE_IS_32BITS](isnan): New function that calls isnanf.
8074
8075 2001-10-24  Christopher Faylor  <cgf@redhat.com>
8076
8077         * libc/stdio/fseek.c: Reset pointer to buffer base
8078         when forced to seek outside of current buffer contents.
8079         This prevents the code from erroneously thinking there is
8080         anything in the current buffer.
8081
8082 2001-10-22  Geoffrey Keating  <geoffk@redhat.com>
8083
8084         * libc/include/math.h: The C++ standard adds the single-precision
8085         versions of the elementary functions.
8086
8087 2001-10-22  Christopher Faylor  <cgf@redhat.com>
8088
8089         * libc/posix/execvp.c: Remove obsolete CYGWIN32 considerations
8090         throughout.
8091         * signal.h: Change comment to reflect __CYGWIN__ rather than __CYGWIN32__.
8092         * popen.c (popen): Use __CYGWIN_ rather than __CYGWIN32__.
8093         * system.c (_system_r): Ditto.
8094
8095 2001-10-17  Corinna Vinschen  <corinna@vinschen.de>
8096
8097         * libc/include/sys/unistd.h: Add prototype for fchdir() when
8098         __CYGWIN__ or __rtems__ is defined.
8099
8100 2001-10-01  Charles Wilson  <cwilson@ece.gatech.edu>
8101
8102         * libc/include/stdlib.h: add declarations for
8103         _strtoull_r, _strtoll_r, strtoull, and strtoll.
8104         * libc/stdio/local.h: remove declarations of
8105         __strtoull_r and __strtoll_r.
8106         * libc/stdio/vfscanf.c(__svfscanf_r): call
8107         _strtoull_r instead of __strtoull_r. Ditto
8108         _strtoll_r vs. __strtoll_r.
8109         * libc/stdlib/Makefile.am: add new files to
8110         .c list and .def list
8111         * libc/stdlib/Makefile.in: regenerate
8112         * libc/stdlib/strtoll_r.c: rename __strtoll_r
8113         as _strtoll_r
8114         * libc/stdlib/strtoull_r.c: rename __strtoull_r
8115         as _strtoull_r
8116         * libc/stdlib/strtoull.c: new file
8117         * libc/stdlib/strtoll.c: new file
8118
8119 Mon Sep 17 17:29:47 2001  Christopher Faylor <cgf@cygnus.com>
8120
8121         * libc/include/process.h: Add getpid() declaration.
8122
8123 2001-09-14  Nick Clifton  <nickc@cambridge.redhat.com>
8124
8125         * libc/sys/arm/crt0.S: Add calls to _init and _fini (via atexit)
8126         for new style arm/elf ctor/dtor handling.
8127         Minor formatting tidy up.
8128
8129 2001-09-13  Jeff Johnston  <jjohnstn@redhat.com>
8130
8131         * libc/stdlib/Makefile.am: Add support to build strtoll_r.c
8132         and strtoull_r.c.
8133         * libc/stdlib/Makefile.in: Regenerated.
8134         * libc/stdlib/strtoll_r.c: New file.
8135         * libc/stdlib/strtoull_r.c: New file.
8136         * libc/stdio/local.h: Add prototypes for long long string
8137         conversion routines.
8138         * libc/stdio/vfscanf.c (__svfscanf_r): Add optional long long support
8139         tied to %L integer conversion specifier.
8140
8141 Thu Sep 13 08:49:49 2001  Jason Tishler <jason@tishler.net>
8142
8143         * strftime.c (strftime): Fix "%W" implementation to properly handle
8144         Mondays too.
8145
8146 2001-09-07  Jeff Law  <law@redhat.com>
8147
8148         * libc/sys/h8300hms/crt0.S: For H8/300H and H8/S, load address of
8149         __fini with "mov.l" instead of "mov.w".
8150
8151 2001-09-05  Corinna Vinschen  <corinna@vinschen.de>
8152
8153         * libc/sys/cygwin/include/unistd.h: New file, wrapping sys/unistd.h
8154         and getopt.h.
8155
8156 2001-09-04  Jason Merrill  <jason_merrill@redhat.com>
8157
8158         * libc/sys/h8300hms/crt0.S: Support ELF initialization.
8159
8160 2001-09-03  Corinna Vinschen  <corinna@vinschen.de>
8161
8162         * libc/sys/cygwin/sys/dirent.h (struct dirent): Add version number
8163         field.
8164         (__DIRENT_VERSION): New define.
8165
8166 2001-09-03  Corinna Vinschen  <corinna@vinschen.de>
8167
8168         * libc/sys/cygwin/sys/dirent.h (struct dirent): Add `d_fd' member.
8169         Shrink __d_reserved accordingly to keep structure size.
8170         (dirfd): Declare external.
8171
8172 2001-08-29  Joel Sherrill <joel@OARcorp.com>
8173
8174         * libc/include/sys/unistd.h: Prototype chroot() for RTEMS.
8175
8176 2001-08-29  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
8177
8178         * libc/machine/i386/f_atan2.S, libc/machine/i386/f_atan2f.S,
8179           libc/machine/i386/f_exp.c, libc/machine/i386/f_expf.c,
8180           libc/machine/i386/f_frexp.S, libc/machine/i386/f_frexpf.S,
8181           libc/machine/i386/f_ldexp.S, libc/machine/i386/f_ldexpf.S,
8182           libc/machine/i386/f_log.S, libc/machine/i386/f_log10.S,
8183           libc/machine/i386/f_log10f.S, libc/machine/i386/f_logf.S,
8184           libc/machine/i386/f_pow.c, libc/machine/i386/f_powf.c,
8185           libc/machine/i386/f_tan.S, libc/machine/i386/f_tanf.S:
8186         Add conditional compilation to avoid HW FPU instructions
8187         when compiled for soft-float.
8188
8189 2001-08-29  Jeff Johnston  <jjohnstn@redhat.com>
8190
8191         * Makefile.am: Add check for ln failing when creating libg.a
8192         so that cp gets used as a backup.
8193         * Makefile.in: Regenerated.
8194
8195 2001-08-29  Jeff Johnston  <jjohnstn@redhat.com>
8196
8197         * libc/include/sys/reent.h: Add include of <sys/_types.h>.
8198         No longer include time.h.  Add struct __tm to use for
8199         _localtime_buf in the reentrant structure.  Add a
8200         _NULL definition to use in initializing the reentrant struct.
8201         * libc/include/sys/config.h: For CYGWIN32 and RTEMS, change
8202         the _READ_WRITE_RETURN_TYPE to _ssize_t which is found in
8203         <sys/_types.h>.
8204         * libc/include/sys/unistd.h: Include <sys/_types.h>.
8205         * libc/time/lcltime.c (localtime): Cast the reentrant struct
8206         _localtime_buf to be struct tm *.
8207
8208 Wed Aug 29 14:17:38 2001  J"orn Rennecke <amylaar@redhat.com>
8209
8210         * configure.host (h8300-*-elf*, h8500-*-elf*): New cases.
8211         * libc/sys/h8300hms/crt1.c (__main): Don't reference __ctors /
8212         __ctors_end.
8213         * libc/sys/h8300hms/syscalls.c: Include errno.h.
8214         (_unlink): New stub function.
8215
8216 Sat Aug 25 22:22:25 2001  Christopher Faylor <cgf@cygnus.com>
8217
8218         * libc/include/sys/errno.h: Add a cautionary comment.
8219
8220 2001-08-21  Jeff Johnston  <jjohnstn@redhat.com>
8221
8222         * libc/stdlib/mallocr.c [!defined(MALLOC_ALIGNMENT)]: Add conditional
8223         for SIZE_SZ so that alignment ends up a minimum of 8.
8224
8225 Mon Aug 13 22:26:01 2001  Christopher Faylor <cgf@cygnus.com>
8226
8227         * libc/include/machine/setjmp.h: Protect sigsetjmp/siglongjmp macro
8228         arguments.
8229
8230         * libc/include/sys/errno.h: Declare sys_errlist and sys_nerr, under
8231         Cygwin.
8232
8233 2001-08-13  Jeff Johnston  <jjohnstn@redhat.com>
8234
8235         * libc/include/malloc.h (M_MXFAST, M_NLBLKS, M_GRAIN, M_KEEP): New
8236         macro constants for mallopt options.
8237         (M_TRIM_THRESHOLD, M_TOP_PAD, M_MMAP_THRESHOLD, M_MMAP_MAX): Ditto.
8238
8239 2001-08-02  Jeff Johnston  <jjohnstn@redhat.com>
8240
8241         * libc/include/stdio.h (BUFSIZ): Define to __BUFSIZ__ if provided,
8242         otherwise default.
8243
8244 2001-07-12  Aldy Hernandez  <aldyh@redhat.com>
8245
8246         * libc/machine/mips/setjmp.S: Allow mips16 and mips64 to coexist.
8247
8248 2001-06-27  Nick Clifton  <nickc@cambridge.redhat.com>
8249
8250         * libc/include/machine/ieeefp.h (__IEEE_BYTES_LITTLE_ENDIAN):
8251         Define for little endian ARMs.
8252
8253         * libc/stdlib/mprec.h (Storeinc): Use little endian version if
8254         __IEEE_BYTES_LITTLE_ENDIAN is defined.
8255
8256 2001-06-11  Danny Smith  <dannysmith@users.sourceforge.net>
8257
8258         * /libc/include/ctype.h (is* and to* macros): Do not define if C++.
8259
8260 2001-06-11  Egor Duda  <deo@logos-m.ru>
8261
8262         * libc/ctype/ctype_.c: When compiled with gcc on platforms
8263         with signed char, make _ctype_[-128] ... _ctype[-1] refer to
8264         initialized memory region. Platform can define COMPACT_CTYPE
8265         to avoid allocation of the additional 128 bytes of data.
8266         Add pointer to _ctype_ array. Always initialize all _ctype_
8267         array elements.
8268
8269 2001-06-08  Jonathan Larmour  <jlarmour@redhat.com>
8270
8271         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Avoid dereferencing
8272         NULL pointer.
8273
8274 2001-05-28  Nick Clifton  <nickc@cambridge.redhat.com>
8275
8276         * libc/stdio/vfprintf.c (_VFPRINTF_R): Handle printf ("%#.0o",0)
8277
8278 2001-05-25  Nick Clifton  <nickc@cambridge.redhat.com>
8279
8280         * libc/machine/xscale/memcmp.c: Fix bug when both pointers have
8281         matching, non-word alignment, and the length is <= 4 but more than
8282         enough to move them over a word boundary.
8283         Add comments explaining what each instruction does.
8284
8285 Mon May  7 20:39:25 2001  Christopher Faylor <cgf@cygnus.com>
8286
8287         * libc/include/sys/stat.h: Revert March 3, Cygwin change.
8288         * libc/include/sys/unistd.h: Ditto.
8289
8290 2001-05-04  Earnie Boyd  <earnie@users.sourceforge.net>
8291
8292         * libc/string/strrchr.c: Use strchr for the speed improvements.
8293
8294 2001-05-01  Jeff Johnston  <jjohnstn@redhat.com>
8295
8296         * libc/stdio/findfp (__sinit)[HAVE_FCNTL]: For platforms that have
8297         real file systems, let __smakebuf() determine if line buffering
8298         should be used for stdout.
8299
8300 2001-04-27  Jeff Johnston  <jjohnstn@redhat.com>
8301
8302         * libc/stdio/vfscanf.c (__svfscanf_r): Initialize new_exp local var.
8303
8304 2001-04-27  Jeff Johnston  <jjohnstn@redhat.com>
8305
8306         * libc/include/stdlib.h: Add prototype for _strtod_r.
8307
8308 2001-04-24  Charles Wilson  <cwilson@ece.gatech.edu
8309
8310         * libc/stdio/vprintf.c (vprintf): fix signature to use _DEFUN
8311         * libc/stdio/vprintf.c (_vprintf_r): new function
8312         * libc/stdio/vsnprintf.c (vsnprintf): fix signature to use _DEFUN
8313         * libc/stdio/vsnprintf.c (_vsnprintf_r): fix signature to use
8314         _DEFUN, and call _vfprintf_r, not vfprintf.
8315         * libc/stdio/vsprintf.c (vsprintf.c): fix signature to use _DEFUN
8316         * libc/stdio/vsprintf.c (_vsprintf_r): fix signature to use
8317         _DEFUN, and call _vfprintf_r, not vfprintf.
8318
8319 2001-04-22  Earnie Boyd  <earnie@users.sourceforge.net>
8320   
8321         * libc/include/sys/unistd.h [X_OK]: Use better protection against
8322         Cygwin X_OK definitions in sys/file.h.
8323
8324 Fri Apr 20 23:17:51 2001  Christopher Faylor <cgf@cygnus.com>
8325
8326         * libc/include/sys/time.h: Define timercmp and other macros for
8327         __CYGWIN__, too.
8328
8329 2001-04-20  Jeff Johnston  <jjohnstn@redhat.com>
8330         
8331         * acinclude.m4: Added --enable-malloc-debugging configure flag.
8332         * configure.host: For Cygwin specify -DMALLOC_PROVIDED if
8333         --enable-malloc-debugging selected.
8334         * aclocal.m4 configure: Regenerated.
8335           libm/aclocal.m4 libm/configure: Ditto.
8336         * libc/aclocal.m4 libc/configure: Ditto.
8337         * libc/machine/aclocal.m4 libc/machine/configure: Ditto.
8338         * libc/machine/*/aclocal.m4 libc/machine/*/configure: Ditto.
8339         * libc/sys/aclocal.m4 libc/sys/configure: Ditto.
8340         * libc/sys/*/aclocal.m4 libc/sys/*/configure: Ditto.
8341         * doc/aclocal.m4 doc/configure: Ditto.
8342
8343 2001-04-20  Jeff Johnston  <jjohnstn@redhat.com>
8344
8345         * libc/include/stdio.h[!_REENT_ONLY]: Moved various functions together
8346         into one list.
8347         [!__STRICT_ANSI__]: Moved non-ANSI I/O functions in this list.
8348         (vfscanf, vscanf, vsscanf, _vfscanf_r, _vscanf_r, _vsscanf_r): New
8349         function prototypes.
8350         (_fscanf_r, _sscanf_r): Ditto.
8351         * libc/include/stdlib.h: Added _strtod_r prototype.
8352         * libc/stdio/Makefile.am: Add new v*scanf functions.
8353         * libc/stdio/Makefile.in: Regenerate.
8354         * libc/stdio/fscanf.c: Reorganized so HAVE_STDC only affects prototype
8355         and code is shared.  Added reentrant _fscanf_r which calls __svfscanf_r.
8356         * libc/stdio/scanf.c: Changed to call __svfscanf_r.
8357         * libc/stdio/sscanf.c: Changed documentation to add reentrant routines.
8358         (sscanf): Changed to call __svfscanf_r with _REENT argument.
8359         (_sscanf_r): New routine.
8360         * libc/stdio/local.h: Removed __svfscanf prototype and replaced it
8361         with __svfscanf_r prototype.
8362         * libc/stdio/vfscanf.c (vfscanf, _vfscanf_r: New
8363         routines.
8364         (__svfscanf_r): Reentrant version of __svfscanf which takes reetrancy
8365         structure as argument as calls reentrant versions of helper functions
8366         (e.g. _strtol_r, _strtoul_r). Also replaced calls to atol and atof
8367         to _strtol_r and _strtod_r respectively.
8368         * libc/stdio/vfscanf.c: Also changed __svfscanf to call __svfscanf_r.
8369         * libc/stdlib/strtod.c (strtod): Changed to call _strtod_r with
8370         _REENT argument.
8371         * libc/stdio/vscanf.c: New file.
8372         * libc/stdio/vsscanf.c: Ditto.
8373
8374 2001-04-19  Robert Collins  <rbtcollins@hotmail.com>
8375
8376         * include/time.h[__CYGWIN__]:  Define tzname to _tzname if not defined.
8377         Define daylight to _daylight if it is not defined
8378         Prepare a variable export of timezone based on timezonevariable. 
8379         (Cannot be used with the timezone() function.)
8380
8381 2001-04-17  Stephen L. Moshier  <moshier@moshier.ne.mediaone.net>
8382
8383         * newlib/libm/math/ef_asin.c (pio2_hi, pio2_lo, pio4_hi):
8384          Correct the numerical values.
8385
8386 2001-04-13  Robert Collins <rbtcollins@hotmail.com>
8387
8388         * libc/include/sys/unistd.h: Add pthread_atfork (Cygwin only).
8389
8390 Thu Apr 12 23:11:00 2001  Corinna Vinschen <corinna@vinschen.de>
8391
8392         * libc/include/sys/errno.h: Add ECASECLASH to indicate case clash
8393         on case insensitve file systems.
8394
8395 2001-04-12  Robert Collins <rbtcollins@hotmail.com>
8396
8397         * libc/include/sys/features.h: Add appropriate defines for Cygwin
8398         pthread support.
8399         * libc/include/sys/signal.h: Remove unneeded __CYGWIN__ protection.
8400         * libc/include/sys/types.h: Protect __CYGWIN__ from the rtems pthreads
8401         types.  Include <cygwin/types.h> for the cygwin specific typedefs.
8402
8403 2001-04-04  Richard Sandiford  <rsandifo@redhat.com>
8404
8405         * libc/include/machine/ieeefp.h: Comment about new configuration
8406         macros _FLT_LARGEST_EXPONENT_IS_NORMAL and _FLT_NO_DENORMALS.
8407         * libm/common/fdlib.h: Define new macros for testing floats.
8408         * libm/common/sf_*: Use them.
8409         * libm/math/ef_*: Likewise.
8410         * libm/math/sf_*: Likewise.
8411
8412 2001-03-29  Jeff Johnston  <jjohnstn@redhat.com>
8413
8414         * libc/sys/arm/setjmp.S: Added .code 16 specifier for thumb-mode
8415         prolog to by-pass possible assembler error.
8416
8417 2001-03-21  Egor Duda  <deo@logos-m.ru>
8418
8419         Allow building internal stubs for non-reentrant syscalls
8420         if target provides its own malloc
8421         * libc/reent/reent.c (errno): Move definition here.
8422         * libc/reent/sbrkr.c: From here.
8423
8424 2001-03-20  Danny Smith <dannysmith@users.sourceforge.net>
8425
8426         * libc/include/sys/types.h (BSD int typedefs): Guard with
8427         _BSDTYPES_DEFINED rather than _WINSOCK_H.
8428         (fd_set): Add !defined __USE_W32_SOCKETS to guard; define
8429         _SYS_TYPES_FD_SET.
8430         * libc/include/sys/unistd.h (gethostname): Don't declare if defined
8431         (_WINSOCK_H) || defined (__USE_W32_SOCKETS).
8432
8433 Sat Mar 17 18:30:00 2001  Corinna Vinschen <corinna@vinschen.de>
8434
8435         * libc/include/sys/unistd.h: Add _PC_POSIX_PERMISSONS and
8436         _PC_POSIX_SECURITY constants for Cygwin.
8437
8438 Wed Mar 14  9:34:00 2001  Corinna Vinschen <corinna@vinschen.de>
8439
8440         * libc/sys/cygwin/crt0.c: Add copyright hint.
8441         * libc/sys/cygwin/sys/dirent.h: Ditto.
8442         * libc/sys/cygwin/sys/param.h: Ditto.
8443         * libc/sys/cygwin/sys/utime.h: Ditto.
8444         * libc/sys/cygwin/sys/utmp.h: Ditto.
8445
8446 2001-03-13  Alexandre Oliva  <aoliva@redhat.com>
8447
8448         * libc/stdio/vfprintf.c (QUADINT) [_NO_LONGLONG]: Make it
8449         equivalent to LONGINT.
8450
8451 2001-03-08  Richard Sandiford  <rsandifo@redhat.com>
8452
8453         * (libc/include/machine/setjmp.h): Use 23 long long ints for a
8454         jmpbuf on MIPS64 targets.
8455         * (libc/machine/mips/setjmp.S): Add MIPS64 version.
8456
8457 Wed Mar  7 16:02:07 2001  Christopher Faylor <cgf@cygnus.com>
8458
8459         * libc/include/sys/config.h: Use ssize_t for Cygwin read/write 
8460           declarations.
8461
8462 Mon Mar  5 21:48:54 2001  J"orn Rennecke <amylaar@redhat.com>
8463
8464         * libc/include/sys/config.h (_READ_WRITE_RETURN_TYPE): Define.
8465         For RTEMS, define to be ssize_t.  Default to int if not defined.
8466         * libc/stdio/sscanf.c (eofread): Return _READ_WRITE_RETURN_TYPE.
8467         * libc/stdio/stdio.c (__sread, __swrite): Likewise.
8468         * libc/stdio/local.h (__sread, __swrite): Likewise.
8469         * libc/include/sys/reent.h (_read, _write): Likewise.
8470         * libc/include/sys/unistd.h (read, write, _read, _write): Likewise.
8471         * libc/syscalls/sysread.c (read): Likewise.
8472         * libc/syscalls/syswrite.c (write): Likewise.
8473
8474 2001-03-05  Jeff Johnston  <jjohnstn@redhat.com>
8475
8476         * libc/time/mktime.c: Add L suffix to _SEC_IN_xxxx constants.
8477
8478 Sat Mar  3 00:34:14 2001  Christopher Faylor <cgf@cygnus.com>
8479
8480         * libc/include/sys/stat.h: Use special defines for executable stat bits
8481         when compiling for Cygwin.
8482         * libc/include/sys/unistd.h: Use special define for X_OK when compiling
8483         for Cygwin.
8484
8485 2001-03-02  Jeff Johnston  <jjohnstn@redhat.com>
8486
8487         * libc/string/strtok.c: Add #undef of __STRICT_ANSI__ so prototype
8488         of strtok_r is always defined.
8489
8490 2001-03-02  Jeff Johnston  <jjohnstn@redhat.com>
8491
8492         * libc/include/machine/ansi.h: New dummy header file.
8493
8494 2001-02-22  Jeff Johnston  <jjohnstn@redhat.com>
8495
8496         * libc/include/machine/setjmp-dj.h: With DJ Delorie's permission,
8497         changed the copyright information to allow free modification of the
8498         file with no reference to "copying.dj".
8499         * libc/include/sys/stat-dj.h: Ditto.
8500         * libc/machine/i386/setjmp.S: Ditto.
8501         * libc/sys/h8300hms/sys/file.h: Ditto.
8502         * libc/sys/sysmec/access.c: Ditto.
8503         * libc/sys/sysnecv850/access.c: Ditto.
8504         * libc/stdio/mktemp.c: Fixed typo for the word copyright.
8505         * libc/stdlib/getenv_r.c: Ditto.
8506         * libc/stdlib/putenv_r.c: Ditto.
8507         * libc/stdlib/setenv_r.c: Ditto.
8508         * libc/stdlib/getenv.c: Removed DJ reference since any possible
8509         modifications will now be in the _r version of this file.
8510         * libc/stdlib/putenv.c: Ditto.
8511         * libc/stdlib/setenv.c: Ditto.
8512         * libc/sys/go32/copying.dj: Removed DJ's address which is no longer
8513         valid.  Added a reference to DJ's web page that contains his address.
8514         * libc/sys/go32/*.s: Removed references to DJ's old address.
8515         * libc/sys/go32/*.c: Ditto.
8516         * libc/sys/go32/*.h: Ditto.
8517         * libc/sys/go32/*.S: Ditto.
8518         * libc/sys/go32/sys/*.h: Ditto.
8519
8520 2001-02-21  Jeff Johnston  <jjohnstn@redhat.com>
8521
8522         * libc/stdio/fdopen.c (fdopen): Protect calls to _fcntl() with
8523         HAVE_FCNTL flag check.
8524         * configure.host: Define HAVE_FCNTL for Cygwin, go32, RTEMS, sparc64,
8525         powerpcle, x86 netware, x86 sco, x86 Linux and Vxworks.
8526
8527 Thu Feb 15 01:39:51 2001  Christopher Faylor <cgf@cygnus.com>
8528
8529         * libc/include/sys/signal.h: Always include sys/types.h under Cygwin.
8530
8531 2001-02-14  Kazuhiro Fujieda  <fujieda@jaist.ac.jp>
8532
8533         * libc/include/stdlib.h: Add declarations of rand48 functions and
8534         their reentrant versions.
8535         * libc/include/sys/reent.h: Move macros from rand48.h. Add
8536         struct _rand48 for shared parameters of rand48 functions.
8537         (struct _reent): Add a variable _r48 of struct _rand48.
8538         (_REENT_INIT): Add _r48 initialization.
8539         * libc/stdlib/Makefile.am (lib_a_SOURCES): Add rand48 functions.
8540         (CHEWOUT_FILES): Add rand48.def.
8541         * libc/stdlib/Makefile.am: Add dependencies for rand48 functions.
8542         * libc/stdlib/Makefile.in: Regenerated.
8543         * libc/stdlib/drand48.c (drand48, _drand48_r): Derived from the
8544         NetBSD C library.
8545         * libc/stdlib/erand48.c (erand48, _erand48_r): Ditto.
8546         * libc/stdlib/jrand48.c (jrand48, _jrand48_r): Ditto.
8547         * libc/stdlib/lcong48.c (lcong48, _lcong48_r): Ditto.
8548         * libc/stdlib/lrand48.c (lrand48, _lrand48_r): Ditto.
8549         * libc/stdlib/mrand48.c (mrand48, _mrand48_r): Ditto.
8550         * libc/stdlib/nrand48.c (nrand48, _nrand48_r): Ditto.
8551         * libc/stdlib/seed48.c (seed48, _seed48_r): Ditto.
8552         * libc/stdlib/srand48.c (srand48, _srand48_r): Ditto.
8553         * libc/stdlib/rand48.c (__dorand48): Ditto.
8554         * libc/stdlib/rand48.h: Ditto, and modify declarations of global
8555         parameters into macros referring them in the reentrant structure.
8556
8557 2001-02-12  Jeff Johnston  <jjohnstn@redhat.com>
8558
8559         * libc/include/sys/stat.h: Add mknod for Cygwin now that
8560         Cygwin definition has correct prototype.
8561
8562 2001-02-08  Jeff Johnston  <jjohnstn@redhat.com>
8563
8564         * libc/include/sys/stat.h: Must revert change for mknod
8565         for CYGWIN until winsup/cygwin/syscalls.cc changes mknod
8566         prototype.
8567
8568 2001-02-08  Jeff Johnston  <jjohnstn@redhat.com>
8569
8570         * libc/include/stdio.h: Revert putw prototype.
8571
8572 2001-02-08  Edward M. Lee  <tailbert@yahoo.com>
8573
8574         * libc/include/grp.h: add prototype for initgroups.
8575         * libc/include/stdio.h: fix prototype for putw.
8576         * libc/include/sys/signal.h: add prototype for killpg.
8577         * libc/include/sys/stat.h: enable mknod/lstat for CYGWIN.
8578         * libc/include/sys/unistd.h: add prototypes for getpgid, setpgrp,
8579         vhangup and remove duplicate sysconf prototype.
8580
8581 2001-02-07  Jeff Johnston  <jjohnstn@redhat.com>
8582
8583         * libc/sys/rtems/sys/types.h: Removed.
8584
8585 2001-02-05  Charles Wilson  <cwilson@ece.gatech.edu>
8586
8587         * libc/include/locale.h: add LC_MESSAGES definition
8588
8589 2001-02-01  Alexandre Oliva  <aoliva@redhat.com>
8590
8591         * libc/sys/sh/sys/syscall.h (SYS_get_argc, SYS_get_argN_len,
8592         SYS_get_argN):
8593         * libc/sys/sh/syscalls.c (__setup_argv_for_main,
8594         __setup_argv_and_call_main): New.
8595
8596 2001-01-31  Jeff Johnston  <jjohnstn@redhat.com>
8597
8598         * libc/include/stdio.h (FILENAME_MAX): Changed to use __FILENAME_MAX__
8599         if defined.
8600         (FOPEN_MAX): Changed to use __FOPEN_MAX__ if defined.
8601         (L_tmpnam): Changed to use __L_tmpnam__ if defined.
8602         * libc/include/sys/config.h: Changed to set __FILENAME_MAX__
8603         appropriately for Cygwin and RTEMS so not to exceed PATH_MAX.
8604
8605 Mon Jan 29 23:03:06 2001  Christopher Faylor <cgf@cygnus.com>
8606
8607         * libc/stdlib/mallocr.c: Undefine windows preprocessor variables when
8608         compiling under Cygwin.
8609
8610 2001-01-29  Jeff Johnston  <jjohnstn@redhat.com>
8611
8612         * libc/include/math.h (signgam): Change to errno-like solution
8613         using a function to return the address of the real signgam.
8614         * libc/reent/signgam.c: New file containing __signgam().
8615         * libc/reent/Makefile.am: Added signgam.c to list of files.
8616         * libc/reent/Makefile.in: Regenerated.
8617
8618 2001-01-25  Alexandre Oliva  <aoliva@redhat.com>
8619
8620         * libc/sys/sh/syscalls.c (_times): New.
8621
8622         * configure.host (sh*-*-*): Add -DHAVE_GETTIMEOFDAY to newlib_cflags.
8623         * libc/sys/sh/syscalls.c (_gettimeofday): New.
8624
8625 2001-01-23  Jeff Johnston  <jjohnstn@redhat.com>
8626
8627         * libc/include/math.h (signgam): Regress previous fix as
8628         it does not handle programs with extern int signgam in them.
8629
8630 2001-01-23  Jeff Johnston  <jjohnstn@redhat.com>
8631
8632         * libc/include/math.h (signgam): Changed to a macro refering to
8633         its location in the reentrant structure.
8634
8635 2001-01-23  Jeff Johnston  <jjohnstn@redhat.com>
8636
8637         * libc/stdio/vfprintf.c (_VFPRINTF_R): Modification to fix
8638         that suppressed . for %.0f, 0.1.  Check now looks if there
8639         are padding zeroes (expt) in addition to any digits (ndig) to
8640         print.
8641
8642 2001-01-18  Jeff Johnston  <jjohnstn@redhat.com>
8643
8644         * libc/sys/arc/Makefile.am: New file.
8645         * libc/sys/arc/Makefile.in: Ditto.
8646         * libc/sys/arc/aclocal.m4: Ditto.
8647         * libc/sys/arc/configure: Ditto.
8648         * libc/sys/arc/configure.in: Ditto.
8649         * libc/sys/arc/crt0.S: Ditto.
8650         * libc/sys/arc/isatty.c: Ditto.
8651         * libc/sys/arc/mem-layout.c: Ditto.
8652         * libc/sys/arc/sbrk.c: Ditto.
8653         * libc/sys/arc/syscalls.c: Ditto.
8654         * libc/sys/arc/sys/syscall.h: Ditto.
8655
8656 Wed Jan 17 23:20:56 2001  Christopher Faylor <cgf@cygnus.com>
8657
8658         * libc/include/sys/unistd.h: Use correct declaration for setdtablesize.
8659
8660 Fri Jan 12 00:34:31 2001  Christopher Faylor <cgf@cygnus.com>
8661
8662         * libc/include/sys/signal.h: Add some SA_* defines for Cygwin.
8663
8664 Thu Jan 11 20:42:06  2001  Earnie Boyd  <earnie_boyd@yahoo.com>
8665
8666         * libc/include/sys/features.h: __CYGWIN__ preferred over __CYGWIN32__
8667
8668 2001-01-09  Nick Clifton  <nickc@redhat.com>
8669
8670         * configure.host (v859): Remove unsupported compiler options.
8671
8672 Fri Jan  5 19:57:00 EST 2001  Aaron J. Grier  <aaron@frye.com>
8673
8674         * src/newlib/configure.host (*-*-rtems*): add printf long long
8675         support for RTEMS.
8676
8677 2000-12-19  Graham Stott <grahams@redhat.com>
8678
8679         * libc/machine/xscale/memcmp.c (memcmp): Add clobber for "lr".
8680
8681 Wed Dec 14  Jeff Johnston  <jjohnstn@redhat.com>
8682
8683         * configure.host: Turn on long double I/O for Cygwin.
8684
8685 Wed Dec 14  Jeff Johnston  <jjohnstn@redhat.com>
8686
8687         * MAINTAINERS: Removed Ranjith.
8688         * NEWS: Updated for 1.9.0.
8689         * README: Updated.
8690         * acinclude.m4: Updated to release 1.9.0.
8691         * aclocal.m4 configure
8692           doc/aclocal.m4 doc/configure libc/aclocal.m4 libc/configure
8693           libc/machine/aclocal.m4 libc/machine/configure
8694           libc/machine/a29k/aclocal.m4 libc/machine/a29k/configure
8695           libc/machine/arm/aclocal.m4 libc/machine/arm/configure
8696           libc/machine/d10v/aclocal.m4 libc/machine/d10v/configure
8697           libc/machine/d30v/aclocal.m4 libc/machine/d30v/configure
8698           libc/machine/fr30/aclocal.m4 libc/machine/fr30/configure
8699           libc/machine/h8300/aclocal.m4 libc/machine/h8300/configure
8700           libc/machine/h8500/aclocal.m4 libc/machine/h8500/configure
8701           libc/machine/hppa/aclocal.m4 libc/machine/hppa/configure
8702           libc/machine/i386/aclocal.m4 libc/machine/i386/configure
8703           libc/machine/i960/aclocal.m4 libc/machine/i960/configure
8704           libc/machine/m32r/aclocal.m4 libc/machine/m32r/configure
8705           libc/machine/m68k/aclocal.m4 libc/machine/m68k/configure
8706           libc/machine/m88k/aclocal.m4 libc/machine/m88k/configure
8707           libc/machine/mips/aclocal.m4 libc/machine/mips/configure
8708           libc/machine/mn10200/aclocal.m4 libc/machine/mn10200/configure
8709           libc/machine/mn10300/aclocal.m4 libc/machine/mn10300/configure
8710           libc/machine/necv70/aclocal.m4 libc/machine/necv70/configure
8711           libc/machine/powerpc/aclocal.m4 libc/machine/powerpc/configure
8712           libc/machine/sh/aclocal.m4 libc/machine/sh/configure
8713           libc/machine/sparc/aclocal.m4 libc/machine/sparc/configure
8714           libc/machine/tic80/aclocal.m4 libc/machine/tic80/configure
8715           libc/machine/v850/aclocal.m4 libc/machine/v850/configure
8716           libc/machine/w65/aclocal.m4 libc/machine/w65/configure
8717           libc/machine/xscale/aclocal.m4 libc/machine/xscale/configure
8718           libc/machine/z8k/aclocal.m4 libc/machine/z8k/configure
8719           libc/sys/aclocal.m4 libc/sys/configure
8720           libc/sys/a29khif/aclocal.m4 libc/sys/a29khif/configure
8721           libc/sys/arm/aclocal.m4 libc/sys/arm/configure
8722           libc/sys/cygwin/aclocal.m4 libc/sys/cygwin/configure
8723           libc/sys/d10v/aclocal.m4 libc/sys/d10v/configure
8724           libc/sys/decstation/aclocal.m4 libc/sys/decstation/configure
8725           libc/sys/go32/aclocal.m4 libc/sys/go32/configure
8726           libc/sys/h8300hms/aclocal.m4 libc/sys/h8300hms/configure
8727           libc/sys/h8500hms/aclocal.m4 libc/sys/h8500hms/configure
8728           libc/sys/linux/aclocal.m4 libc/sys/linux/configure
8729           libc/sys/m88kbug/aclocal.m4 libc/sys/m88kbug/configure
8730           libc/sys/netware/aclocal.m4 libc/sys/netware/configure
8731           libc/sys/rtems/aclocal.m4 libc/sys/rtems/configure
8732           libc/sys/sh/aclocal.m4 libc/sys/sh/configure
8733           libc/sys/sparc64/aclocal.m4 libc/sys/sparc64/configure
8734           libc/sys/sun4/aclocal.m4 libc/sys/sun4/configure
8735           libc/sys/sysmec/aclocal.m4 libc/sys/sysmec/configure
8736           libc/sys/sysnec810/aclocal.m4 libc/sys/sysnec810/configure
8737           libc/sys/sysnecv850/aclocal.m4 libc/sys/sysnecv850/configure
8738           libc/sys/sysvi386/aclocal.m4 libc/sys/sysvi386/configure
8739           libc/sys/sysvnecv70/aclocal.m4 libc/sys/sysvnecv70/configure
8740           libc/sys/tic80/aclocal.m4 libc/sys/tic80/configure
8741           libc/sys/w65/aclocal.m4 libc/sys/w65/configure
8742           libc/sys/z8ksim/aclocal.m4 libc/sys/z8ksim/configure
8743           libm/aclocal.m4 libm/configure: Regenerated.
8744
8745 Wed Dec 13 11:52:00 2000  Corinna Vinschen <vinschen@cygnus.com>
8746
8747         * libc/include/sys/unistd.h: Add declarations for `chroot' and `getwd'
8748         when __CYGWIN__ is defined.
8749
8750 2000-12-13  Jeff Johnston  <jjohnstn@redhat.com>
8751
8752         * libc/stdlib/ldtoa.c (_ldcheck): New routine
8753         that categorizes a long double as NaN, Infinity, or other.
8754         * libc/stdio/vfprintf.c [WANT_IO_LONG_DBL](_VFPRINTF_R): Removed 
8755         isinfl and isnanl static routines which were i386-specific.  Changed 
8756         calls to the two removed routines to a single _ldcheck call.
8757         * libc/stdio/vfieeefp.h (ldieee): Fixed missing semi-colons.
8758
8759 2000-12-13  Jeff Johnston  <jjohnstn@redhat.com>
8760
8761         * Makefile.am: Fixed install-data-local target to use
8762         $(mkinstalldirs) for the installed header files to ensure
8763         the directories exist before copying.
8764         * Makefile.in: Regenerated.
8765
8766 2000-12-12  Jeff Johnston  <jjohnstn@redhat.com>
8767
8768         * libc/include/sys/unistd.h: Restored Cygwin _SC
8769         constants and moved new constants appropriately
8770         so Cygwin will build.
8771
8772 2000-12-11  Joel Sherrill <joel@OARcorp.com>
8773
8774         * Merge RTEMS specific .h files into main libc/include.
8775         * libc/sys/rtems/include/signal.h: Removed.
8776         * libc/sys/rtems/include/time.h: Removed.
8777         * libc/sys/rtems/sys/features.h: Removed.
8778         * libc/sys/rtems/sys/sched.h: Removed.
8779         * libc/sys/rtems/sys/siginfo.h: Removed.
8780         * libc/sys/rtems/sys/signal.h: Removed.
8781         * libc/sys/rtems/sys/time.h: Removed.
8782         * libc/sys/rtems/sys/times.h: Removed.
8783         definitions for time_t and clock_t since these are
8784         no longer in time.h.
8785         * libc/include/pthread.h: New file.
8786         * libc/include/sys/sched.h: New file.
8787         * libc/include/sys/features.h: New file.
8788         * libc/include/time.h: Removed duplicate definition of clock_t
8789         and time_t, get them from <sys/types.h> instead.  Add prototypes
8790         for POSIX clock and timer functionality.
8791         * libc/sys/linux/sys/types.h: Changed to include
8792         * libc/include/machine/types.h: Add _CLOCKID_T_ and _TIMER_T_.
8793         * libc/include/sys/signal.h: Add more complete set of POSIX
8794         signal functionality including real-time and threaded signals.
8795         * libc/include/sys/types.h: Add clock_t, time_t, struct
8796         timespec, and struct itimerspec.  Centralizing these makes 
8797         things cleaner.  RTEMS uses 64-bit dev_t.
8798         Added numerous primitive definitions
8799         for pthreads including macros, pthread_attr_t,
8800         pthread_mutexattr_t, pthread_condattr_t, pthread_key_t, 
8801         pthread_once_t, and pthread_t.
8802         * libc/include/sys/unistd.h: Added getlogin_r() prototype.
8803         If RTEMS follow POSIX on read(), write() and sbrk() prototype.
8804         Feature flags removed and moved to new file <sys/features.h>.
8805         Full set of POSIX sysconf() constants
8806
8807 2000-12-08  Werner Almesberger  <Werner.Almesberger@epfl.ch>
8808
8809         * configure.host: Added x86 linux target.
8810         * libc/unix/getpass.c (_PATH_PASSWD, _PASSWORD_LEN): Default
8811         definitions provided if not already defined.
8812         * libc/sys/linux/crt0.c: New file.
8813         * libc/sys/linux/Makefile.am: Ditto.
8814         * libc/sys/linux/Makefile.in: Ditto.
8815         * libc/sys/linux/aclocal.m4: Ditto.
8816         * libc/sys/linux/brk.c: Ditto.
8817         * libc/sys/linux/configure: Ditto.
8818         * libc/sys/linux/configure.in: Ditto.
8819         * libc/sys/linux/getoptlong.c: Ditto.
8820         * libc/sys/linux/ids.c: Ditto.
8821         * libc/sys/linux/inode.c: Ditto.
8822         * libc/sys/linux/io.c: Ditto.
8823         * libc/sys/linux/linux.c: Ditto.
8824         * libc/sys/linux/process.c: Ditto.
8825         * libc/sys/linux/realpath.c: Ditto.
8826         * libc/sys/linux/select.c: Ditto.
8827         * libc/sys/linux/signal.c: Ditto.
8828         * libc/sys/linux/systat.c: Ditto.
8829         * libc/sys/linux/termios.c: Ditto.
8830         * libc/sys/linux/time.c: Ditto.
8831         * libc/sys/linux/wait.c: Ditto.
8832         * libc/sys/linux/include/alloca.h: Ditto.
8833         * libc/sys/linux/include/getopt.h: Ditto.
8834         * libc/sys/linux/include/stdint.h: Ditto.
8835         * libc/sys/linux/include/unistd.h: Ditto.
8836         * libc/sys/linux/sys/cdefs.h: Ditto.
8837         * libc/sys/linux/sys/dirent.h: Ditto.
8838         * libc/sys/linux/sys/errno.h: Ditto.
8839         * libc/sys/linux/sys/fcntl.h: Ditto.
8840         * libc/sys/linux/sys/file.h: Ditto.
8841         * libc/sys/linux/sys/ioctl.h: Ditto.
8842         * libc/sys/linux/sys/resource.h: Ditto.
8843         * libc/sys/linux/sys/signal.h: Ditto.
8844         * libc/sys/linux/sys/stat.h: Ditto.
8845         * libc/sys/linux/sys/syscall.h: Ditto.
8846         * libc/sys/linux/sys/termios.h: Ditto.
8847         * libc/sys/linux/sys/time.h: Ditto.
8848         * libc/sys/linux/sys/types.h: Ditto.
8849         * libc/sys/linux/sys/utmp.h: Ditto.
8850         * libc/sys/linux/sys/utsname.h: Ditto.
8851         * libc/sys/linux/sys/wait.h: Ditto.
8852
8853 2000-12-08  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
8854
8855         * Makefile.am: $(INSTALL), $(INSTALL_DATA), and $(INSTALL_PROGRAM)  
8856         can be a relative path to $(top_srcdir)/install.sh so ensure the
8857         autoconf detected settings are properly passed recursively.
8858         Similarly, add AM_MAKEFLAGS to FLAGS_TO_PASS so they also get passed
8859         properly to subdirectories.
8860         * Makefile.in: Regenerated.
8861
8862 2000-12-07  Jay Kulpinski <jskulpin@eng01.gdds.com>
8863
8864         * libc/stdio/vfprintf.c: Minor modification to avoid requiring
8865         a floating point register unless really printing a floating
8866         point number.
8867
8868 2000-12-07  Jeff Johnston  <jjohnstn@redhat.com>
8869
8870         * libc/stdlib/ldtoa.c: Removed include of alloca.h.
8871         Also removed \r's.
8872         (asctoeg): Replaced alloca call with stack array and malloc
8873         when storage exceeds reasonable limit.
8874         (e53toe): Fixed einfin calls missing ldp parameter.
8875         (eiisinf): Hide behind check for LDBL_MANT_DIG == 64.
8876
8877 2000-12-06  Jeff Johnston  <jjohnstn@redhat.com>
8878
8879
8880         * libc/stdio/vfscanf.c: Fix typo for _NO_LONGDBL macro.
8881
8882 2000-12-06  Jeff Johnston  <jjohnstn@redhat.com>
8883
8884         * libc/stdlib/Makefile.am: Added ldtoa.c to list of sources.
8885         * libc/stdlib/Makefile.in: Regenerated.
8886         * libc/stdio/floatio.h: Added suitable MAXEXP for long double.
8887         * libc/stdio/vfieeefp.h: Added long double bit structures.
8888         * libc/stdio/vfprintf.c[WANT_IO_LONG_DBL]: Added long double support.
8889         [WANT_IO_LONG_DBL](isinfl, isnanl): New static long double routines.
8890         (exponent): Changed expbuf to reasonable maximum instead of MAXEXP.
8891         * libc/stdio/vfscanf.c[WANT_IO_LONG_DBL]: Added long double support.
8892         * libc/stdlib/ldtoa.c: New file containing _ldtoa_r and
8893         _strtold routines used for conversions between character
8894         and long double.
8895
8896 Wed Dec  6 12:01:00 2000  Corinna Vinschen <vinschen@cygnus.com>
8897
8898         * libc/include/stdlib.h: Add declarations for `mkstemp' and `mktemp'.
8899
8900 2000-12-04  Joel Sherrill <joel@OARcorp.com>
8901
8902         * libc/include/machine/time.h: RTEMS systems can configure clock
8903         tick rate so use sysconf() to ask.
8904
8905 2000-12-04  Joel Sherrill <joel@OARcorp.com>
8906
8907         * libc/include/sys/times.h: Add reference to POSIX standard.
8908
8909 2000-12-04  Joel Sherrill <joel@OARcorp.com>
8910
8911         * libc/include/sys/time.h: Added BSD timer manipulation macros
8912         used by RTEMS code.
8913
8914 2000-12-04  Joel Sherrill <joel@OARcorp.com>
8915
8916         * libc/sys/rtems/crt0.c: Add stubs for functions implicitly
8917         referenced by code generated by gcc 2.8.1.
8918         (a29k): Add stubs for V_SPILL, V_FILL, V_BSD_OS, V_EPI_OS to 
8919         satisfy gcc.
8920
8921 2000-12-04  Joel Sherrill <joel@OARcorp.com>
8922
8923         * libc/stdlib/system.c: Avoid compiling do_system() for RTEMS.
8924
8925 2000-12-04  Joel Sherrill <joel@OARcorp.com>
8926
8927         * libc/include/ieeefp.h: Added entries for OpenCores CPUs.
8928
8929 2000-12-04  Joel Sherrill <joel@OARcorp.com>
8930
8931         * configure.host (or16, or32): New entries for OpenCores
8932         OpenRisc CPUs.
8933         (*-*-rtems*): Add -DNO_EXEC.
8934
8935 2000-12-04  Keith Outwater <vac4050@cae597.rsc.raytheon.com>
8936
8937         * libc/include/sys/errno.h: Added comments on many error numbers.
8938         * libc/string/strerror.c: Added some more strings.
8939
8940 2000-11-30  Jeff Johnston <jjohnstn@redhat.com>
8941
8942         * libc/sys/sh/syscalls.c (_link): New stub.
8943
8944 2000-11-29  Nick Clifton  <nickc@redhat.com>
8945
8946         * configure.host: Add xscale target.
8947         * libc/machine/xscale: New directory.
8948         * libc/machine/xscale/Makefile.am: New file.
8949         * libc/machine/xscale/Makefile.in: New file.
8950         * libc/machine/xscale/aclocal.m4: New file.
8951         * libc/machine/xscale/configure: New file.
8952         * libc/machine/xscale/configure.in: New file.
8953         * libc/machine/xscale/memchr.S: New file.
8954         * libc/machine/xscale/memcmp.S: New file.
8955         * libc/machine/xscale/memcpy.S: New file.
8956         * libc/machine/xscale/memmove.S: New file.
8957         * libc/machine/xscale/memset.S: New file.
8958         * libc/machine/xscale/strchr.S: New file.
8959         * libc/machine/xscale/strcmp.S: New file.
8960         * libc/machine/xscale/strcpy.S: New file.
8961         * libc/machine/xscale/strlen.S: New file.
8962
8963 Sat Nov 25 11:24:00 2000  Corinna Vinschen <vinschen@cygnus.com>
8964
8965         * libc/include/sys/types.h: Change i to `__i' in FD_ZERO macro to
8966         avoid compiler warnings.
8967
8968 2000-11-22  Michael Meissner  <meissner@redhat.com>
8969
8970         * libc/posix/execl.c (execl): Don't reference environ directly,
8971         reference it only via a static pointer to avoid problems with some
8972         shared library systems and with different uses of small data where
8973         the user specifies his own version of environ.
8974         * libc/posix/execv.c (execv): Ditto.
8975         * libc/stdlib/getenv_r.c (_findenv_r): Ditto.
8976         * libc/stdlib/setenv_r.c (_setenv_r,_unsetenv_r): Ditto.
8977         * libc/stdlib/system.c (system, !cygwin32 case): Ditto.
8978
8979         * libc/stdlib/getenv.c (environ): Delete unused reference to
8980         environ.
8981
8982         * libc/stdlib/getenv_r.c: Make initial comment friendlier to emacs
8983         colorization.
8984         * libc/stdlib/system.c: Ditto.
8985
8986 Tue Nov 21 20:32:21 2000  Christopher Faylor <cgf@cygnus.com>
8987
8988         * libc/sys/cygwin/sys/dirent.h: Change definition to avoid necessity of
8989         including windows headers.
8990
8991 2000-11-20  Jeff Johnston  <jjohnstn@redhat.com>
8992
8993         * libc/include/sys/unistd.h: Removed definition of MAXNAMLEN.
8994         * libc/include/dirent.h: Added definition of MAXNAMLEN if
8995         not defined by sys/dirent.h.
8996         * libc/posix/execvp.c: Added include of dirent.h to get
8997         MAXNAMLEN value which used to be in unistd.h.
8998
8999 Mon Nov  6 12:56:00 2000  Corinna Vinschen <vinschen@cygnus.com>
9000
9001         * libc/include/sys/types.h: Change type of i to `size_t' in
9002         FD_ZERO macro to avoid compiler warnings.
9003
9004 Sun Oct 29 20:06:41 2000  Christopher Faylor <cgf@cygnus.com>
9005
9006         * libc/include/stdlib.h: Avoid declaring cfree under Cygwin.
9007         * libc/include/malloc.h: Ditto.  Also remove obsolete declaration.
9008
9009 Tue Oct 24 20:16:00 2000  Corinna Vinschen <vinschen@cygnus.com>
9010
9011         * libc/include/sys/unistd.h: Add defines for sysconf values
9012         _SC_NPROCESSORS_CONF, _SC_NPROCESSORS_ONLN, _SC_PHYS_PAGES and
9013         _SC_AVPHYS_PAGES.
9014
9015 Mon Oct  9 20:26:33 2000  Christopher Faylor <cgf@cygnus.com>
9016
9017         * libc/include/sys/unistd.h: Add getdtablesize and setdtablesize
9018         declarations for __CYGWIN__.
9019
9020 2000-09-19  Geoffrey Keating  <geoffk@cygnus.com>
9021
9022         * libc/signal/signal.c (__sigtramp_r): ISO C requires
9023         case labels to be integral constant expressions, so
9024         use an if/else tree instead.
9025         (_raise_r): Likewise.
9026
9027 2000-09-13  Jeff Johnston  <jjohnstn@redhat.com>
9028
9029         * libc/machine/v850/setjmp.S: Fixed tab problems caused by
9030         clipping patch from e-mail reader.
9031
9032 2000-09-13  Will Cohen  <wcohen@redhat.com>
9033
9034         * libc/machine/v850/setjmp.S (_setjmp): Save r1 rather than r0.
9035         Added return value 0.
9036         (_longjmp): Allow longjmp to return value of second argument
9037         passed to it.
9038
9039 2000-09-06  Jeff Johnston <jjohnstn@redhat.com>
9040
9041         * libc/include/sys/types.h (FD_ZERO): Remove call to bzero and
9042         inline code to prevent having to include another header file.
9043
9044 Wed Sep  6 15:06:40 2000  Christopher Faylor <cgf@cygnus.com>
9045
9046         * Makefile.am: Fix space vs. tab problem in install-data-local.
9047         * Makefile.in: Regenerate.
9048
9049 Wed Sep  6 13:49:51 2000  Christopher Faylor <cgf@cygnus.com>
9050
9051         * libc/include/_ansi.h (_EXFUN): Define specially for __CYGWIN__.
9052         (_EXPARM): New macro for defining a function parameter.
9053         * libc/include/stdlib.h: Use _EXPARM.
9054         * libc/stdlib/mallocr.c: Don't build cfree for Cygwin.
9055
9056 2000-09-05  Manfred Hollstein  <manfredh@redhat.com>
9057
9058         * Makefile.am (install-data-local): Use optional $(DESTDIR) where
9059         required, as documented in the gnu coding standards.
9060         * Makefile.in: Regenerate.
9061
9062 2000-09-05  Jeff Johnston <jjohnstn@redhat.com>
9063
9064         * libc/include/fcntl.h (_FNDELAY): Changed to be _FNONBLOCK to
9065         make O_NDELAY and O_NONBLOCK have the same value.
9066
9067 2000-08-30  Kazu Hirata  <kazu@hxi.com>
9068
9069         * libc/sys/h8300hms/crt0.S: Optimize for both speed and code size.
9070
9071 2000-08-30  Werner Almesberger  <Werner.Almesberger@epfl.ch>
9072
9073         * libc/posix/execve.c: included unistd.h for "_execve" prototype.
9074         * libc/misc/unctrl.c libc/sys/sysvi386/crt0.c (sccsid): changed
9075         "#ifndef lint" to "#if defined(LIBC_SCCS) && !defined(lint)" like
9076         everywhere else.
9077
9078 2000-08-30  Geoffrey Keating  <geoffk@cygnus.com>
9079
9080         * libc/string/swab.c: Specify that it's defined in <unistd.h>.
9081         * libc/include/string.h: Don't include <sys/types.h>,
9082         as it causes really bad namespace pollution.  Don't declare
9083         swab(), it is properly declared in unistd.h.
9084
9085 2000-08-29  Werner Almesberger  <Werner.Almesberger@epfl.ch>
9086
9087         * libc/unix/getpwent.c (getpwnam, getpwuid, getpwent): removed
9088         (broken) support for non-existent /etc/passwd field "comment".
9089
9090 2000-08-27  Werner Almesberger  <Werner.Almesberger@epfl.ch>
9091
9092         * libc/posix/scandir.c (DIRSIZ, scandir): use struct dirent.d_namlen
9093         only if _DIRENT_HAVE_D_NAMLEN is defined.
9094         (alphasort): aligned prototype with
9095         libc/sys/cygwin/sys/dirent.h and simplified function body.
9096         * libc/posix/telldir.c (telldir): changed "telldir" prototype to
9097         long telldir (DIR *) as mentioned in annex B of POSIX.1
9098
9099 2000-08-27  Werner Almesberger  <Werner.Almesberger@epfl.ch>
9100
9101         * libc/machine/i386/i386mach.h: added SOTYPE_FUNCTION to set type
9102         of global entry points if _I386MACH_NEED_SOTYPE_FUNCTION is defined;
9103         Added __CLI and __STI macros (controlled via
9104         _I386MACH_ALLOW_HW_INTERRUPTS macro).
9105         * libc/machine/i386/f_atan2.S libc/machine/i386/f_atan2f.S
9106         libc/machine/i386/f_frexp.S libc/machine/i386/f_frexpf.S
9107         libc/machine/i386/f_ldexp.S libc/machine/i386/f_ldexpf.S
9108         libc/machine/i386/f_log.S libc/machine/i386/f_log10.S
9109         libc/machine/i386/f_log10f.S libc/machine/i386/f_logf.S
9110         libc/machine/i386/f_tan.S libc/machine/i386/f_tanf.S
9111         libc/machine/i386/memchr.S libc/machine/i386/memcmp.S
9112         libc/machine/i386/memcpy.S libc/machine/i386/memmove.S
9113         libc/machine/i386/memset.S libc/machine/i386/setjmp.S
9114         libc/machine/i386/strchr.S libc/machine/i386/strlen.S:
9115         (that's libc/machine/i386/*.S) added SOTYPE_FUNCTION(symbol)
9116         for all global entry points.
9117         * libc/machine/i386/setjmp.S: removed code replicated in
9118         libc/machine/i386/i386mach.h and included i386mach.h instead;
9119         Use __CLI and __STI instead of cli and sti.
9120
9121 2000-08-25  DJ Delorie  <dj@redhat.com>
9122
9123         * libc/include/sys/unistd.h (environ): this one isn't from the
9124         DLL, no __IMPORT
9125
9126 Fri Aug 25 13:37:11 2000  Christopher Faylor <cgf@cygnus.com>
9127
9128         * libc/stdlib/system.c (do_system): Eliminate explicit declaration of
9129         environ when compiling under cygwin since it is already declared in
9130         unistd.h.
9131
9132 2000-08-23  Werner Almesberger  <Werner.Almesberger@epfl.ch>
9133
9134         * libc/stdlib/mprec.c (ulp, b2d, d2b): changed a few expressions
9135         like  x << y-z  to the equivalent  x << (y-z).
9136         (d2b): changed if statements with assignment to perform the
9137         assignment prior to the if check.
9138         * libc/reent/reent.c: included stdlib.h for "_free_r" prototype.
9139         * libc/unix/getpass.c (getpass): moved "echo" assignment out of if.
9140         * libc/unix/ttyname.c: included string.h for "strcpy" prototype.
9141         * libc/unix/getcwd.c (ISDOT): added parentheses to clarify && and ||
9142         precedence.
9143         * libc/include/sys/unistd.h: added "vfork" prototype (for popen.c).
9144         Added "_execve" prototype (for execl.c, execle.c, execv.c, and 
9145         execve.c).
9146         * libc/posix/popen.c (popen): added parentheses to clarify && and ||
9147         precedence.
9148         * libm/math/e_cosh.c (__ieee754_cosh): changed parentheses to
9149         clarify && and || precendence (and to remove pascalism).
9150         * libm/math/e_sinh.c (__ieee754_sinh): Ditto.
9151         * libm/math/s_infconst.c: added another pair of braces to all
9152         initializers for __infinity (need three: for __infinity[1] array,
9153         for union __dmath, and for i[2]).
9154
9155 2000-08-23  Werner Almesberger  <Werner.Almesberger@epfl.ch>
9156
9157         * libc/stdlib/abort.c: changed description: uses "raise" instead of
9158         "getpid" and "kill"; added: uses "write" and "_exit".
9159         Also included unistd.h for "_exit" prototype.
9160         * libc/stdlib/system.c: included unistd.h for "execve" prototype,
9161         reent.h for "_fork_r" and "_wait_r" prototypes.
9162         (do_system): changed  extern char *environ[] to POSIX-friendly 
9163         extern char **environ.
9164         * libc/stdlib/wctomb_r.c: included string.h for "strlen" and "strcmp"
9165         prototypes.
9166         * libc/stdlib/remove.c: included reent.h for "_unlink_r" prototype.
9167         * libc/reent/execr.c: included sys/wait.h for "wait" prototype.
9168         * libc/reent/fstatr.c: included sys/stat.h for "fstat" prototype.
9169         * libc/reent/openr.c: included fcntl.h for "open" prototype.
9170         * libc/reent/signalr.c: included signal.h for "kill" prototype,
9171         unistd.h for "getpid" prototype.
9172         * libc/reent/statr.c: included sys/stat.h for "stat" prototype.
9173         * libc/reent/timer.c: included sys/time.h for "gettimeofday" prototype.
9174         * libc/unix/getut.c (utmpname): removed local, incorrect "strdup"
9175         prototype.  Also included stdlib.h for "abort", string.h for
9176         "strdup" and "strncmp" prototypes.
9177         * libc/unix/getlogin.c: included string.h for "strncmp", "memset", and
9178         "strncpy", unistd.h for "read" and "close" prototypes.
9179         * libc/posix/execvp.c: included string.h for "strchr", "strlen", and
9180         "strcat" prototypes.
9181
9182 2000-08-23  Werner Almesberger  <Wernen Almesberger@epfl.ch>
9183
9184         * libc/stdio/stdio.c (__swrite): declare "oldmode" only if it's
9185         used later (ifdef __SCLE)
9186         * libc/stdio/vfscanf.c (__svfscanf): declare "state" only if it's
9187         used later (ifdef MB_CAPABLE)
9188         * libc/string/memset.c (memset): removed unused variables "count"
9189         and "unaligned_addr"
9190         * libc/locale/locale.c (_setlocale_r): declare "lc_ctype" and
9191         "last_lc_ctype" only of they're used later (ifdef MB_CAPABLE)
9192         * libc/unix/getpwent.c (getpwnam): removed unused variables "uid"
9193         and "gid"
9194
9195 2000-08-23  Werner Almesberger  <Werner.Almesberger@epfl.ch>
9196
9197         * libc/stdlib/envlock.c: changed documented "__env_lock" and
9198         "__env_unlock" prototype from "void *" or "char *" to
9199         "struct _reent *" to match real function.  Also added include
9200         of envlock.h.
9201         * libc/stdlib/mlock.c: changed documented "__malloc_lock" and
9202         "__malloc_unlock" prototype from "void *" or "char *" to
9203         "struct _reent *" to match real function.
9204         * libc/stdlib/envlock.h: added "__env_lock" and "__env_unlock"
9205         prototypes (for getenv_r.c and setenv_r.c).
9206
9207 2000-08-22  Werner Almesberger  <Werner.Almesberger@epfl.ch>
9208
9209         * libc/unix/getut.c (utmpname): added _CONST to reflect common use
9210         and prototype in cygwin's utmp.h
9211
9212 2000-08-16  Eric Fifer  <efifer@sanwaint.com>
9213
9214         * libc/stdio/vfprintf.c (_vfprintf_r): suppress . with "%.0f", 0.1
9215
9216 2000-08-09  Nick Clifton  <nickc@cygnus.com>
9217
9218         * libc/sys/arm/setjmp.S: Recode to clean up function prologues and
9219         epilogue and to allow the functions to be used in a Thumb based
9220         toolchain.
9221
9222 2000-08-08  Jeff Johnston <jjohnstn@redhat.com>
9223
9224         * libc/stdio/snprintf.c (snprintf, _snprintf_r): Fixed code
9225         so size of 0 results in nothing being written to string.
9226         Also fixed code so that when size is non-zero, there is only
9227         a maximum of size - 1 characters written to the array and
9228         a nul terminator is appended at the end.
9229         * libc/stdio/vsnprintf.c (vsnprintf, _vsnprintf_r): Ditto.
9230
9231 2000-08-01  DJ Delorie  <dj@redhat.com>
9232
9233         * libc/include/sys/config.h: define __IMPORT appropriately
9234         * libc/include/ctype.h (_ctype_): use __IMPORT
9235         * libc/include/math.h (__infinity, signam, _LIB_VERSION): ditto
9236         * libc/include/math.h (__mb_cur_max): ditto
9237         * libc/include/time.h (_timezone, _daylight, _tzname): ditto
9238         * libc/include/unctrl.h (__unctrl, __unctrllen): ditto
9239         * libc/include/errno.h (_sys_errlist, _sys_nerr): ditto
9240         * libc/include/unistd.h (environ): ditto
9241
9242 2000-07-28  Michael Meissner  <meissner@redhat.com>
9243
9244         * libc/include/math.h (__infinity): Declare as an array without
9245         bounds to get around small data support.  Rewrite Cygwin support
9246         to be more general.
9247         * libm/math/s_infconst.c (__infinity): Ditto.
9248         * libm/mathfp/s_infconst.c (__infinity): Ditto.
9249
9250 Thu Jul 27 10:46:01 2000  Christopher Faylor <cgf@cygnus.com>
9251
9252         * libc/include/math.h: Use appropriate dll import linkage for
9253         __infinity under Cygwin.
9254
9255 2000-07-13  DJ Delorie  <dj@cygnus.com>
9256
9257         * libc/stdio/vfprintf.c: pad 0.0 correctly with %e
9258
9259 Wed Jun 28 14:08:00 2000  Keith Walker  <keith.walker@arm.com>
9260
9261         * libc/sys/arm/crt0.S (.LC30): Added missing length parameter
9262         to argument list for AngelSWI_Reason_GetCmdLine.
9263
9264 Tue Jun 27 15:49:00 2000  Marek Michalkiewicz  <marekm@linux.org.pl>
9265
9266         * configure.host: Add support for AVR target.
9267         * libc/include/machine/ieeefp.h: Likewise.
9268         * libc/include/sys/config.h: Likewise.
9269
9270 Thu Jun 22 18:35:00 2000  Ranjith Kumaran  <ranjith@cygnus.com>
9271
9272         * README: Newlib 1.8.2 must be built in a separate directory
9273         than the sources.
9274
9275 Tue Jun 20 14:30:00 2000  Jeff Johnston  <jjohnstn@cygnus.com>
9276
9277         * libc/include/sys/reent.h (_rand_next): Added __extension__
9278         qualifier as long long type is not strict ANSI.
9279         * libc/stdlib/rand.c (rand): Added __extension__ qualifier
9280         to long long constant.
9281
9282 Fri Jun 16 23:02:00 2000  Corinna Vinschen <corinna@vinschen.de>
9283
9284         * libc/include/sys/unistd.h: Add prototypes for `seteuid' and
9285         `setegid' provided by Cygwin.
9286
9287 Thu Jun 15  0:21:00 2000  Corinna Vinschen <corinna@vinschen.de>
9288
9289         * libc/stdio/fdopen.c: Take explicit given bin/textmode into
9290         account for Cygwin.
9291
9292 Fri Jun  9 14:28:00 2000  Jeff Johnston  <jjohnstn@cygnus.com>
9293
9294         * libc/include/sys/reent.h (_rand_next): Changed to
9295         unsigned long long and moved to end of _reent struct in _new union.
9296         (_REENT_INIT): Changed to move _rand_next initialization.
9297         * libc/stdlib/rand.c (rand): Changed to use unsigned long long
9298         linear congruential algorithm that is used by DJGPP.
9299
9300 Thu Jun  8 21:18:00 2000  Ranjith Kumaran  <ranjith@cygnus.com>
9301
9302         * libc/include/stdlib.h: Set RAND_MAX to __RAND_MAX.
9303         * libc/include/sys/config.h: Define __RAND_MAX.
9304
9305 Thu Jun  8 17:54:00 2000  Jeff Johnston  <jjohnstn@cygnus.com>
9306
9307         * libc/stdlib/rand_r.c: New algorithm that meets minimal
9308         standard.
9309
9310 Fri Jun  2 23:02:11 2000  Christopher Faylor <cgf@cygnus.com>
9311
9312         * libc/include/string.h: Work around problem with strsignal and gdb.
9313
9314 Tue May 30 13:13:01 2000  Christopher Faylor <cgf@cygnus.com>
9315
9316         * libc/include/ctype.h: __CYGWIN32__ -> __CYGWIN__
9317         * libc/include/malloc.h: Ditto.
9318         * libc/include/process.h: Ditto.
9319         * libc/include/stdio.h: Ditto.
9320         * libc/include/stdlib.h: Ditto.
9321         * libc/include/time.h: Ditto.
9322         * libc/include/machine/setjmp.h: Ditto.
9323         * libc/include/sys/errno.h: Ditto.
9324         * libc/include/sys/signal.h: Ditto.
9325         * libc/include/sys/stat.h: Ditto.
9326         * libc/include/sys/time.h: Ditto.
9327         * libc/include/sys/unistd.h: Ditto.
9328         * libc/include/string.h: Ditto.  strsignal should return a const char *.
9329
9330 2000-05-26  Marek Michalkiewicz  <marekm@linux.org.pl>
9331
9332         * libm/common/s_expm1.c (expm1): Add curly braces, avoid warnings.
9333         * libm/common/s_log1p.c (log1p): Likewise.
9334         * libm/common/s_scalbn.c (scalbn): Likewise.
9335         * libm/math/e_log.c: Likewise.
9336         * libm/math/e_asin.c: Likewise.
9337         * libm/math/ef_asin.c: Likewise.
9338         * libm/math/e_j0.c (pzero, qzero): Remove redundant test.
9339         * libm/math/e_j1.c (pone, qone): Likewise.
9340         * libm/math/ef_j0.c (pzerof, qzerof): Likewise.
9341         * libm/math/ef_j1.c (ponef, qonef): Likewise.
9342         * libm/mathfp/e_j0.c (pzero, qzero): Likewise.
9343         * libm/mathfp/e_j1.c (pone, qone): Likewise.
9344         * libm/mathfp/ef_j0.c (pzerof, qzerof): Likewise.
9345         * libm/mathfp/ef_j1.c (ponef, qonef): Likewise.
9346
9347 2000-05-19  DJ Delorie  <dj@cygnus.com>
9348
9349         * libc/stdio/stdio.c (__stextmode): new, see if file is text mode
9350         (__sread): always read in binary mode
9351         (__swrite): always write in binary mode
9352         * libc/include/stdio.h: no getc/putc macros for cygwin; causes
9353         compatibility issues with different dll versions
9354         * libc/stdio/fopen.c: use __stextmode
9355         * libc/stdio/fdopen.c: ditto
9356         * libc/stdio/freopen.c: ditto
9357         * libc/stdio/findfp.c: set up __SCLE for std{in,out,err}
9358         * libc/stdio/local.h: declare __stextmode
9359         
9360 2000-05-18  DJ Delorie  <dj@cygnus.com>
9361
9362         * libc/stdio/fgets.c (fgets): perform CRLF conversions if __SCLE
9363         
9364 Mon May 15 18:54:00 2000  Jeff Johnston  <jjohnstn@cygnus.com>
9365
9366         * libc/include/ctype.h: Changed tolower and toupper macros
9367         to use __extension__ to prevent pedantic warnings.
9368
9369 Mon May 15 14:26:00 2000  Joel Sherrill  <joel@oarcorp.com>
9370
9371         * libc/sys/rtems/sys/time.h: Add macros for manipulating timeval
9372         structures.
9373
9374 Wed May 10 19:24:53 2000  Jim Wilson  <wilson@cygnus.com>
9375
9376         * libc/include/machine/ieeefp.h: Add ia64 support.
9377         * configure.host: Likewise.
9378
9379 Wed May 10 13:52:24 2000  Egor Duda <deo@logos-m.ru>
9380
9381         * libc/time/asctime_r.c (asctime_r): Change output format. Day of
9382         month is now padded with space, not zero.  This now conforms to
9383         ANSI standard.
9384
9385 Wed May 03 17:57:00 2000  Corinna Vinschen <corinna@vinschen.de>
9386
9387         * libc/include/sys/errno.h: Add define for ENOSHARE ("No such
9388         host or network path") used by cygwin. Add some comments.
9389
9390 Tue May 02 23:45:48 2000  DJ Delorie  <dj@cygnus.com>
9391
9392         * libc/include/stdio.h (FILE): define __SCLE for "convert line
9393         endings" for Cygwin.
9394         (__sgetc): convert line endings if needed
9395         (__sputc): ditto
9396         * libc/stdio/fdopen.c (_fdopen_r): Remember if we opened in text mode
9397         * libc/stdio/fopen.c (_fopen_r): ditto
9398         * libc/stdio/freopen.c (freopen): ditto
9399         * libc/stdio/fread.c (fread): perform CRLF conversions if __SCLE
9400         * libc/stdio/fvwrite.c (__sfvwrite): ditto
9401
9402 Thu Apr 27 07:45:48 2000  Alexandre Oliva  <aoliva@cygnus.com>
9403
9404         * libc/machine/mn10300/setjmp.S (setjmp, longjmp): Use
9405         post-increment when it is worth it, spacewise.
9406
9407 Mon Apr 17 12:46:00 2000  Marek Michalkiewicz <marekm@linux.org.pl>
9408
9409         * libc/signal/signal.c (_signal_r) : Removed unused local variable temp.
9410         * libc/stdio/findfp.c (std): Added declaration of flags and file.
9411         * libc/stdio/mktemp.c (_gettemp, _mkstemp_r, mkstemp): Added int 
9412         return type.
9413         * libc/stdio/putchar.c (putchar): Added return statement.
9414         * libc/stdio/refill.c (lflush): Added correct parentheses.
9415         * libc/stdio/vfprintf.c (_VFPRINTF_R): Ditto.
9416         * libc/stdio/vfscanf.c (__svfscanf): Changed sprintf call which 
9417         prints long value to use l qualifier.
9418         * libc/stdlib/dtoa.c (_dtoa_r): Added parentheses to remove warning
9419         messages and initialized local values: ilim, ilim1, and spec_case.
9420         * libc/stdlib/ecvtbuf.c (print_e): Removed unused variable dp.
9421         * libc/stdlib/mbctype.h (_issjis1, _issjis2): Added parentheses.
9422         * libc/stdlib/mprec.c: Ditto.
9423         * libc/stdlib/setenv_r.c: Ditto.
9424         * libc/stdlib/strtod.c: Ditto.
9425         * libc/stdlib/strtol.c: Ditto.
9426         * libc/stdlib/strtoul.c: Ditto.
9427         * libm/common/sf_expm1.c: Added curly braces to if else clauses.
9428         * libm/common/sf_log1p.c: Ditto.
9429         * libm/common/sf_scalbn.c: Ditto.
9430         * libm/math/ef_log.c: Ditto.
9431
9432 Sun Apr 16 12:45:00 2000  Corinna Vinschen <corinna@vinschen.de>
9433
9434         * libc/posix/execvp.c (execvp): Check path for
9435         trailing slash.
9436
9437 Fri Mar 31 20:39:00 2000  Corinna Vinschen <corinna@vinschen.de>
9438
9439         * libc/include/sys/unistd.h: Add prototypes for
9440         fchmod, fchown, lchown.
9441
9442 Fri Mar 24 15:34:00 2000  Jeff Johnston  <jjohnstn@cygnus.com>
9443
9444         * acinclude.m4: Changed release to 1.8.2.
9445         * aclocal.m4 configure doc/aclocal.m4 doc/configure
9446           libc/aclocal.m4 libc/configure libc/machine/aclocal.m4
9447           libc/machine/configure libc/machine/a29k/aclocal.m4
9448           libc/machine/a29k/configure libc/machine/arm/aclocal.m4
9449           libc/machine/arm/configure libc/machine/d10v/aclocal.m4
9450           libc/machine/d10v/configure libc/machine/d30v/aclocal.m4
9451           libc/machine/d30v/configure libc/machine/fr30/aclocal.m4
9452           libc/machine/fr30/configure libc/machine/h8300/aclocal.m4
9453           libc/machine/h8300/configure libc/machine/h8500/aclocal.m4
9454           libc/machine/h8500/configure libc/machine/hppa/aclocal.m4
9455           libc/machine/hppa/configure libc/machine/i386/aclocal.m4
9456           libc/machine/i386/configure libc/machine/i960/aclocal.m4
9457           libc/machine/i960/configure libc/machine/m32r/aclocal.m4
9458           libc/machine/m32r/configure libc/machine/m68k/aclocal.m4
9459           libc/machine/m68k/configure libc/machine/m88k/aclocal.m4
9460           libc/machine/m88k/configure libc/machine/mips/aclocal.m4
9461           libc/machine/mips/configure libc/machine/mn10200/aclocal.m4
9462           libc/machine/mn10200/configure libc/machine/mn10300/aclocal.m4
9463           libc/machine/mn10300/configure libc/machine/necv70/aclocal.m4
9464           libc/machine/necv70/configure libc/machine/powerpc/aclocal.m4
9465           libc/machine/powerpc/configure libc/machine/sh/aclocal.m4
9466           libc/machine/sh/configure libc/machine/sparc/aclocal.m4
9467           libc/machine/sparc/configure libc/machine/tic80/aclocal.m4
9468           libc/machine/tic80/configure libc/machine/v850/aclocal.m4
9469           libc/machine/v850/configure libc/machine/w65/aclocal.m4
9470           libc/machine/w65/configure libc/machine/z8k/aclocal.m4
9471           libc/machine/z8k/configure libc/sys/aclocal.m4
9472           libc/sys/aclocal.m4 libc/sys/configure
9473           libc/sys/a29khif/aclocal.m4 libc/sys/a29khif/configure
9474           libc/sys/arm/aclocal.m4 libc/sys/arm/configure
9475           libc/sys/cygwin/aclocal.m4 libc/sys/cygwin/configure
9476           libc/sys/d10v/aclocal.m4 libc/sys/d10v/configure
9477           libc/sys/decstation/aclocal.m4 libc/sys/decstation/configure
9478           libc/sys/go32/aclocal.m4 libc/sys/go32/configure
9479           libc/sys/h8300hms/aclocal.m4 libc/sys/h8300hms/configure
9480           libc/sys/h8500hms/aclocal.m4 libc/sys/h8500hms/configure
9481           libc/sys/m88kbug/aclocal.m4 libc/sys/m88kbug/configure
9482           libc/sys/netware/aclocal.m4 libc/sys/netware/configure
9483           libc/sys/rtems/aclocal.m4 libc/sys/rtems/configure
9484           libc/sys/sh/aclocal.m4 libc/sys/sh/configure
9485           libc/sys/sparc64/aclocal.m4 libc/sys/sparc64/configure
9486           libc/sys/sun4/aclocal.m4 libc/sys/sun4/configure
9487           libc/sys/sysmec/aclocal.m4 libc/sys/sysmec/configure
9488           libc/sys/sysnec810/aclocal.m4 libc/sys/sysnec810/configure
9489           libc/sys/sysnecv850/aclocal.m4 libc/sys/sysnecv850/configure
9490           libc/sys/sysvi386/aclocal.m4 libc/sys/sysvi386/configure
9491           libc/sys/sysvnecv70/aclocal.m4 libc/sys/sysvnecv70/configure
9492           libc/sys/tic80/aclocal.m4 libc/sys/tic80/configure
9493           libc/sys/w65/aclocal.m4 libc/sys/w65/configure
9494           libc/sys/z8ksim/aclocal.m4 libc/sys/z8ksim/configure
9495           libm/aclocal.m4 libm/configure: Regenerated.
9496
9497 2000-03-24  Nick Clifton  <nickc@cygnus.com>
9498
9499         * libc/sys/arm/syscalls.c: Fix compile time warnings.
9500         (do_AngelSWI): Add "cc" to list o registers clobbered.
9501
9502 Thu Mar 22 14:57:00 2000  Fernando Nasser <fnasser@redhat.com>
9503
9504         * libc/sys/arm/syscalls.c (do_AngelSWI): Prevent registers with valid
9505         information to be clobbered by an Angel C library support syscall. 
9506
9507 Tue Mar 21 19:08:00 2000  Jeff Johnston <jjohnstn@cygnus.com>
9508
9509         * libc/stdlib/envlock.c: Fixed comment typo.
9510
9511 Fri Mar 17 15:37:00 2000  Jeff Johnston <jjohnstn@cygnus.com>
9512
9513         * libc/stdio/vfscanf.c (__svfscanf): Fixed floating point
9514         code to update nread as each character is processed instead
9515         of using buffer contents which throw away leading zeroes.
9516
9517 Mon Mar 13 15:22:00 2000  Sergei Organov <osv@javad.ru>
9518
9519         * libm/mathfp/sf_sqrt.c: Change _DOUBLE_IS_32BITS sqrt call to sqrtf.
9520
9521 Fri Mar 10 16:09:20 2000  Jeff Johnston <jjohnstn@cygnus.com>
9522
9523         * libc/include/string.h: Include <sys/types.h>.
9524
9525 Fri Mar 10 14:53:50 2000  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
9526
9527         * libc/stdio/putw.c (putw): Return 0 on success, to be compliant
9528         with XSH5, not SVID.
9529
9530 Thu Mar  9 17:20:41 2000  Jeff Johnston <jjohnstn@cygnus.com>
9531
9532         * libc/include/string.h: Changed last argument back to ssize_t
9533         to make it compatible with XPG4 definition which is 
9534         defined in <unistd.h>.  There is a conflict in the SVID 3
9535         and XPG4 definitions and newlib will settle with XPG4.
9536         * libc/string/swab.c: Ditto.
9537
9538 Wed Mar  8 17:11:41 2000  Jeff Johnston <jjohnstn@cygnus.com>
9539
9540         * libc/include/string.h: Changed last argument to size_t.
9541         * libc/string/swab.c: Changed last argument to size_t.
9542
9543 Wed Mar  8 00:46:41 2000  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
9544
9545         * libc/reent/Makefile.am (lib_a_SOURCES): Added unlinkr.c.
9546         (CHEWOUT_FILES): Added unlinkr.def.
9547         * libc/reent/Makefile.in: Rebuilt.
9548         * libc/sys.tex: Include unlinkr.def.
9549         * libc/reent/linkr.c (_unlink_r): Moved to...
9550         * libc/reent/unlinkr.c: ... new file.
9551
9552 Wed Mar  8 00:43:07 2000  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
9553
9554         * libc/string/Makefile.am (lib_a_SOURCES): Added swab.c.
9555         (CHEWOUT_FILES): Added swab.def.
9556         * libc/string/Makefile.in: Rebuilt.
9557         * libc/string/string.tex: Include swab.def.
9558         * libc/include/string.h (swab): Declare.
9559         * libc/string/swab.c: New file.
9560
9561 Wed Mar  8 00:38:35 2000  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
9562
9563         * libc/stdio/Makefile.am (lib_a_SOURCES): Added getw.c and putw.c.
9564         (CHEWOUT_FILES): Added getw.def and putw.def.
9565         * libc/stdio/Makefile.in: Rebuilt.
9566         * libc/stdio/stdio.tex: Include getw.def and putw.def.
9567         * libc/stdio/getw.c: New file.
9568         * libc/stdio/putw.c: New file.
9569
9570 Fri Feb 25 14:50:50 2000  Jeff Johnston <jjohnstn@cygnus.com>
9571
9572         * libc/stdio/flags.c (__sflags): Added check that mode[1]
9573         is non-null before looking at mode[2].
9574
9575 Thu Feb 24 11:43:00 2000  Ran Cabell <rcabell@norfolk.infi.net>
9576
9577         * libm/mathfp/sf_atan2.c: Fix atan2 typo for _DOUBLE_IS_32_BITS.
9578         * libm/mathfp/sf_atan.c: Ditto.
9579
9580 Thu Feb 24 11:39:00 2000  Joel Sherrill <joel@OARcorp.com>
9581
9582         * libc/include/sys/stat.h: Add RTEMS prototype for lstat.
9583
9584 Tue Feb 22 14:37:00 2000  Ran Cabell <rcabell@norfolk.infi.net>
9585
9586         * libm/mathfp/sf_exp.c: Corrected _DOUBLE_IS_32_BITS to be
9587         _DOUBLE_IS_32BITS.
9588
9589 Mon Feb 21 11:43:50 2000  Jeff Johnston <jjohnstn@cygnus.com>
9590
9591         * libc/stdio/vfprintf.c (VFPRINTF): Added CHECK_INIT
9592         call prior to calling _VFPRINTF_R so reentrant data area is set.
9593         (_VFPRINTF_R): Removed now extraneous CHECK_INIT call.
9594
9595 Thu Feb 17 01:42:50 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
9596
9597         * libc/stdio/vfscanf.c (limits.h): #include.
9598         (MAX_LONG_LEN): #define.
9599         (__svfscanf): Handle floating point numbers with arbitrary amounts
9600         of leading zeroes.
9601
9602 2000-02-15  Nick Clifton  <nickc@cygnus.com>
9603
9604         * libc/sys/arm/syscalls.c (_fstat): Initialise all fields to
9605         zero.  Set the blocksize to 1024/
9606
9607 Thu Jan 20 18:57:00 2000  Fernando Nasser <fnasser@redhat.com>
9608
9609         * setvbuf.c (setvbuf):  Set size to BUFSIZ when passed a zero size
9610         with line buffering.
9611
9612 Mon Jan 10 18:43:00 2000  Jeff Johnston <jjohnstn@cygnus.com>
9613
9614         * acinclude.m4: Changed include directory for winsup headers. 
9615         * aclocal.m4 configure libc/aclocal.m4
9616           libc/configure libc/ctype/Makefile.in libc/errno/Makefile.in
9617           libc/locale/Makefile.in libc/machine/aclocal.m4
9618           libc/machine/configure libc/machine/a29k/aclocal.m4
9619           libc/machine/a29k/configure libc/machine/arm/aclocal.m4
9620           libc/machine/arm/configure libc/machine/d10v/aclocal.m4
9621           libc/machine/d10v/configure libc/machine/d30v/aclocal.m4
9622           libc/machine/d30v/configure libc/machine/fr30/aclocal.m4
9623           libc/machine/fr30/configure
9624           libc/machine/h8300/aclocal.m4
9625           libc/machine/h8300/configure libc/machine/h8500/aclocal.m4
9626           libc/machine/h8500/configure libc/machine/hppa/aclocal.m4
9627           libc/machine/hppa/configure libc/machine/i386/aclocal.m4
9628           libc/machine/i386/configure libc/machine/i960/aclocal.m4
9629           libc/machine/i960/configure libc/machine/m32r/aclocal.m4
9630           libc/machine/m32r/configure libc/machine/m68k/aclocal.m4
9631           libc/machine/m68k/configure libc/machine/m88k/aclocal.m4
9632           libc/machine/m88k/configure libc/machine/mips/aclocal.m4
9633           libc/machine/mips/configure libc/machine/mn10200/aclocal.m4
9634           libc/machine/mn10200/configure libc/machine/mn10300/aclocal.m4
9635           libc/machine/mn10300/configure libc/machine/necv70/aclocal.m4
9636           libc/machine/necv70/configure libc/machine/powerpc/aclocal.m4
9637           libc/machine/powerpc/configure 
9638           libc/machine/sh/aclocal.m4
9639           libc/machine/sh/configure libc/machine/sparc/aclocal.m4
9640           libc/machine/sparc/configure
9641           libc/machine/tic80/aclocal.m4 libc/machine/tic80/configure
9642           libc/machine/v850/aclocal.m4 libc/machine/v850/configure
9643           libc/machine/w65/aclocal.m4 libc/machine/w65/configure
9644           libc/machine/z8k/aclocal.m4 libc/machine/z8k/configure
9645           libc/misc/Makefile.in libc/posix/Makefile.in
9646           libc/reent/Makefile.in 
9647           libc/signal/Makefile.in
9648           libc/string/Makefile.in libc/sys/aclocal.m4 libc/sys/configure
9649           libc/sys/a29khif/aclocal.m4 libc/sys/a29khif/configure
9650           libc/sys/arm/Makefile.in libc/sys/arm/aclocal.m4
9651           libc/sys/arm/configure libc/sys/cygwin/aclocal.m4
9652           libc/sys/cygwin/configure libc/sys/d10v/Makefile.in
9653           libc/sys/d10v/aclocal.m4 libc/sys/d10v/configure
9654           libc/sys/decstation/aclocal.m4 libc/sys/decstation/configure
9655           libc/sys/go32/aclocal.m4 libc/sys/go32/configure
9656           libc/sys/h8300hms/aclocal.m4 libc/sys/h8300hms/configure
9657           libc/sys/h8500hms/aclocal.m4 libc/sys/h8500hms/configure
9658           libc/sys/m88kbug/aclocal.m4 libc/sys/m88kbug/configure
9659           libc/sys/netware/aclocal.m4 libc/sys/netware/configure
9660           libc/sys/rtems/aclocal.m4 libc/sys/rtems/configure
9661           libc/sys/sh/Makefile.in libc/sys/sh/aclocal.m4
9662           libc/sys/sh/configure libc/sys/sparc64/aclocal.m4
9663           libc/sys/sparc64/configure libc/sys/sun4/aclocal.m4
9664           libc/sys/sun4/configure libc/sys/sysmec/aclocal.m4
9665           libc/sys/sysmec/configure libc/sys/sysnec810/aclocal.m4
9666           libc/sys/sysnec810/configure libc/sys/sysnecv850/aclocal.m4
9667           libc/sys/sysnecv850/configure libc/sys/sysvi386/aclocal.m4
9668           libc/sys/sysvi386/configure libc/sys/sysvnecv70/aclocal.m4
9669           libc/sys/sysvnecv70/configure libc/sys/tic80/aclocal.m4
9670           libc/sys/tic80/configure libc/sys/w65/aclocal.m4
9671           libc/sys/w65/configure libc/sys/z8ksim/aclocal.m4
9672           libc/sys/z8ksim/configure libc/syscalls/Makefile.in
9673           libc/time/Makefile.in libc/unix/Makefile.in libm/aclocal.m4
9674           libm/configure: Regenerated.
9675
9676 Mon Jan 10 18:43:46 2000  Jeff Johnston <jjohnstn@cygnus.com>
9677
9678         * libc/stdlib/putenv_r.c (_putenv_r): New file.
9679         * libc/stdlib/strdup_r.c (_strdup_r): New file.
9680         * libc/include/string.h: Added _strdup_r.
9681         * libc/stdlib/putenv.c: Added call to reentrant version. 
9682         * libc/stdlib/strdup.c: Ditto.
9683         * libc/stdlib/Makefile.am: Added _putenv_r and _unsetenv_r.
9684         * libc/include/stdlib.h: Ditto.
9685         * libc/stdlib/Makefile.in: Regenerated. 
9686         * libc/string/Makefile.in: Regenerated.
9687         * libc/stdlib/setenv.c: Added reentrant version of unsetenv.
9688         * libc/stdlib/setenv_r.c: Added unsetenv_r and changed memory
9689         management calls to reentrant versions.
9690         * libc/stdlib/wcstombs.c: Added #ifndef _REENT_ONLY wrapper.
9691         * libc/stdlib/wctomb.c: Ditto.
9692         * libc/stdlib/mblen.c: Ditto.
9693         * libc/stdlib/mbstowcs.c: Ditto.
9694         * libc/stdlib/mbtowc.c: Ditto. 
9695         * libc/stdlib/getenv.c: Ditto.
9696         * libc/reent/reent.tex: Added references to _putenv_r, _setenv_r,
9697         and _strdup_r.
9698
9699 Thu Jan  6 15:33:46 2000  Christopher Faylor <cgf@cygnus.com>
9700
9701         patch from Corinna Vinschen <corinna@vinschen.de>
9702         * libc/sys/cygwin/sys/param.h: Define NGROUP_MAX as 16.
9703
9704 Mon Jan 03 14:36:00 2000  Sergei Organov <osv@javad.ru>
9705
9706         * libm/mathfp/s_atangent.c: Fix exponent calculation.
9707         * libm/mathfp/s_ldexp.c: Ditto.
9708         * libm/mathfp/sf_atangent.c: Ditto.
9709         * libm/mathfp/sf_ldexp.c: Ditto.
9710
9711 Tue Dec 14 5:42:00 1999  Ranjith Kumaran <ranjith@cygnus.com>
9712
9713         * libc/machine/i960/setjmp.S: fix typo leaving .link_pix uncommented
9714         * libc/include/locale.h: define NULL to be 0.
9715
9716 Tue Dec  7 15:41:45 1999  Jim Wilson  <wilson@cygnus.com>
9717
9718         * libc/sys/sh/syscalls.c (stack_ptr): Move definition before first
9719         function.
9720
9721 Wed Dec  1 17:39:29 1999  Jeffrey A Law  (law@cygnus.com)
9722
9723         * libc/machine/mn10300/setjmp.S: Handle am33.
9724
9725 1999-11-26  Nick Clifton  <nickc@cygnus.com>
9726
9727         * libc/sys/arm/syscalls.c: Add function prototypes.
9728         (stack_ptr): Move declaration before function definitions.
9729
9730 Sat Nov 20 17:13:00 1999  Ranjith Kumaran <ranjith@cygnus.com>
9731
9732         * NEWS: Updated version information.
9733         * README: Ditto.
9734
9735 Tue Nov 09 12:19:21 1999  Jeff Johnston <jjohnstn@cygnus.com>
9736
9737         * libc/machine/i386/strchr.S: Fixed alignment test.
9738
9739 Thu Oct 28 05:30:46 1999  Andrew Cagney  <cagney@makita.cygnus.com>
9740
9741         * libc/sys/d10v/crt0.S (_start): Construct a real stack frame.
9742
9743 Thu Oct 28 15:29:11 1999  Andrew Cagney  <cagney@b1.cygnus.com>
9744
9745         * libc/sys/d10v/crt0.S (_start): Initialize both SPI and SPU
9746         ensuring that there is space between the two.
9747
9748 Thu Oct 14 13:39:21 1999  Christopher Faylor <cgf@cygnus.com>
9749
9750         * libc/stdio/flags.c: Conditionalize check for 't' for cygwin case
9751         only.
9752
9753 1999-10-08  Vadim Egorov  <egorovv@1c.ru>
9754
9755         * libc/include/stdlib.h: add ptsname, grantpt, unlockpt to cygwin
9756         section
9757
9758 Sat Oct  2 02:02:00 MEST 1999  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
9759
9760         * libc/machine/sh/asm.h: Added __SH4_SINGLE__ to DELAYED_BRANCHES
9761         * libc/machine/sh/memcpy.S: Fix line wrapping in SL macro
9762
9763 Fri Oct  1 13:17:59 CDT 1999  <joel@OARcorp.com>
9764         * libc/include/grp.h: Added getgrnam_r and getgrgid_r prototypes
9765           per POSIX 1003.1b.
9766         * libc/include/pwd.h: Added getpwnam_r and getpwuid_r prototypes
9767           per POSIX 1003.1b.
9768
9769 1999-09-13  DJ Delorie  <dj@cygnus.com>
9770
9771         * libc/stdio/mktemp.c (_gettemp): on cygwin, check for EACCESS
9772         also.
9773
9774 Thu Sep  9 15:31:00 1999  Jeff Johnston <jjohnstn@cygnus.com>
9775
9776         * setvbuf.c (setvbuf):  When mallocing a buffer of size BUFSIZ,
9777         also note BUFSIZ as its size.
9778
9779 Tue Sep  7 17:15:00 1999  Joel Sherrill <joel@OARcorp.com>
9780
9781         * configure.host: Corrected feature defines for RTEMS.
9782         * libc/include/sys/stat.h: Added protototype for RTEMS mknod.
9783         * libc/include/sys/stat.h: mkfifo() should take const path arg.
9784         * libc/include/sys/unistd.h: pathconf() should take const path arg.
9785           Enabled usleep(), ftruncate(), and truncate() prototypes for RTEMS.
9786           Added defines for _POSIX_JOB_CONTROL, _POSIX_SAVED_IDS, and
9787           _POSIX_VERSION for RTEMS.  Added defines for _PC_ASYNC_IO,
9788           _PC_PRIO_IO, and _PC_SYNC_IO.
9789         * libc/machine/m68k/Makefile.am: Added strcpy.c and strlen.c.
9790         * libc/machine/m68k/Makefile.in: Regenerated.
9791         * libc/machine/m68k/strcpy.c: New file.
9792         * libc/machine/m68k/strlen.c: New file.
9793         * libc/stdio/tmpnam.c: Always make the returned name usable.
9794         * libc/sys/rtems/crt0.c: New version that passes all autoconf tests.
9795         * libc/sys/rtems/sys/dirent.h: New file.
9796         * libc/sys/rtems/sys/types.h: Added dev_t.
9797
9798 Tue Sep  7 17:15:00 1999   Jay Kulpinski <jskulpin@eng01.gdds.com>
9799
9800         * libc/stdlib/mprec.c: Fixed unitialized variable problem.
9801
9802 Fri Sep  3 12:35:20 1999  Jeff Johnston <jjohnstn@cygnus.com>
9803
9804         * libc/stdio/ftell.c (ftell): Backing off Joern's fix and
9805         my patch.
9806
9807 Thu Sep  2 22:05:20 1999  Christopher Faylor <cgf@cygnus.com>
9808
9809         patch from Jeff Johnston <jjohnstn@cygnus.com>
9810         * libc/stdio/ftell.c (ftell): Avoid using buffer position when the
9811         buffer is not in a useful state.
9812
9813 1999-09-01  Nick Clifton  <nickc@cygnus.com>
9814
9815         * libc/sys/arm/syscalls.c (_link): Add stub.
9816
9817 Fri Aug 27 23:09:09 1999  J"orn Rennecke <amylaar@cygnus.co.uk>
9818
9819         * ftell.c (ftell): Use actual position within buffer for text mode.
9820         * findfp.c (std): Initialize ptr->_bf._size.
9821
9822 Wed Aug 18 18:48:02 1999  Christopher Faylor <cgf@cygnus.com>
9823
9824         * libc/include/sys/unistd.h: Add nice() declaration.
9825
9826 1999-08-09  Nick Clifton  <nickc@cygnus.com>
9827
9828         * libc/sys/arm/crt0.S (change_mode): Rename to __change_mode and
9829         declare as a thumb function so that the disassembler will see the
9830         mode change.
9831
9832 Thu Aug  5 17:37:00 1999  Ranjith Kumaran <ranjith@cygnus.com>
9833
9834         * libc/reent/reent.tex: Updated list of reentrant functions.
9835
9836 1999-07-09  Michael Meissner  <meissner@cygnus.com>
9837
9838         * libc/include/stdlib.h (_findenv{,_r}): Add prototypes.
9839         
9840 Tue Jul  6 10:46:24 1999  Jeff Johnston <jjohnstn@cygnus.com>
9841
9842         * libc/stdio/sprintf.c: Moved snprintf and _snprintf_r to
9843         separate file.
9844         * libc/stdio/snprintf.c: New file.
9845         * libc/stdio/vsprintf.c: Moved vsnprintf and _vsnprintf_r to
9846         separate file.
9847         * libc/stdio/vsnprintf.c: New file.
9848         * libc/stdio/Makefile.am: Added snprintf.c and vsnprintf.c.
9849         * libc/stdio/Makefile.in: Regenerated.
9850
9851 Mon Jul  5 14:43:24 1999  Christopher Faylor <cgf@cygnus.com>
9852
9853         Patch submitted by Egor Duda <deo@logos-m.ru>:
9854         * libc/include/stdio.h: Add declarations for *nprintf.
9855         * libc/stdio/sprintf.c (snprintf): New function.
9856         (_snprintf_r): New function.
9857         * libc/stdio/vsprintf.c (vsnprintf): New function.
9858         (_vnsprintf_r): New function.
9859
9860 Wed Jun 30 16:36:27 1999  Jeff Johnston  <jjohnstn@cygnus.com>
9861
9862         * libc/Makefile.am (stmp-targetdep): Remove extraneous blank.
9863         * libm/Makefile.am (stmp-targetdep): Ditto.
9864         * libc/Makefile.in: Regenerated.
9865         * libm/Makefile.in: Ditto.
9866
9867 Fri Jun 25 10:49:27 1999  Jeff Johnston  <jjohnstn@cygnus.com>
9868
9869         * libc/Makefile.am (stmp-targetdep): Ignore "." in SUBDIRS.
9870         * libm/Makefile.am (stmp-targetdep): Ditto.
9871         * libc/Makefile.in: Regenerated.
9872         * libm/Makefile.in: Ditto.
9873
9874 Thu June 03 16:25:00 1999  Jeff Johnston <jjohnstn@cygnus.com>
9875
9876         * Makefile.am: Removed dependencies on all-recursive and added "."
9877         to the SUBDIRS list to prevent infinite recursion from occurring.
9878         Also removed any references to EXTRA_DATA.
9879         * libc/Makefile.am: Ditto.
9880         * libc/machine/Makefile.am: Ditto.
9881         * libc/machine/i386/Makefile.am: Ditto.
9882         * libm/Makefile.am: Ditto.
9883         * libc/sys/Makefile.am: Ditto.
9884         * Makefile.in: Regenerated.
9885         * aclocal.m4: Ditto.
9886         * configure: Ditto.
9887         * doc/Makefile.in: Ditto.
9888         * doc/aclocal.m4: Ditto.
9889         * doc/configure: Ditto.
9890         * libc/Makefile.in: Ditto.
9891         * libc/aclocal.m4: Ditto.
9892         * libc/configure: Ditto.
9893         * libc/machine/Makefile.in: Ditto.
9894         * libc/machine/aclocal.m4: Ditto.
9895         * libc/machine/configure: Ditto.
9896         * libc/machine/mn10300/Makefile.in: Ditto.
9897         * libc/machine/mn10300/aclocal.m4: Ditto.
9898         * libc/machine/mn10300/configure: Ditto.
9899         * libc/sys/Makefile.in: Ditto.
9900         * libc/sys/aclocal.m4: Ditto.
9901         * libc/sys/configure: Ditto.
9902         * libm/Makefile.in: Ditto.
9903         * libm/aclocal.m4: Ditto.
9904         * libm/configure: Ditto.
9905
9906 Thu June 03 16:20:00 1999  Ranjith Kumaran <ranjith@cygnus.com>
9907
9908         * libc/include/stdlib/stdlib.tex: Add link to env_lock.
9909
9910 Fri May 28 17:09:00 1999  Ranjith Kumaran <ranjith@cygnus.com>
9911
9912         * libc/include/stdlib.h: Add reentrant routines.
9913         * libc/stdlib/Makefile.am: Add reentrant routines.
9914         * libc/stdlib/Makefile.in: Ditto.
9915         * libc/stdlib/envlock.c: New file.
9916         * libc/stdlib/envlock.h: New file.
9917         * libc/stdlib/getenv.c: Modify to call reentrant routine.
9918         * libc/stdlib/getenv_r.c: New file.
9919         * libc/stdlib/mblen.c: Modify to call reentrant routine.
9920         * libc/stdlib/mblen_r.c: New file.
9921         * libc/stdlib/setenv.c: Modify to call reentrant routine.
9922         * libc/stdlib/setenv_r.c: New file.
9923         * libc/stdlib/stdlib.tex: Add reentrant routines.
9924
9925 Mon May 17 22:01:38 1999  Christopher Faylor <cgf@cygnus.com>
9926
9927         * libc/include/sys/types.h: Define __MS_types__ whenever
9928         cygwin or win32.
9929
9930 Sun May 16 16:02:41 1999  Christopher Faylor <cgf@cygnus.com>
9931
9932         * libc/include/machine/ieeefp.h: Always default to little
9933         endian if Windows, regardless of architecture.
9934         * libc/include/machine/sethmp.h: Define JBLEN if CYGWIN
9935         regardless of architecture.
9936
9937 Mon May  3 11:49:18 1999  Geoffrey Noer  <noer@cygnus.com>
9938
9939         * libc/include/machine/setjmp.h: Accept CYGWIN define, even if
9940         _WIN32 isn't defined.
9941
9942 Mon May  3 11:41:51 1999  Jeff Johnston  <jjohnstn@cygnus.com>
9943
9944         * libm/common/s_rint.c (rint): Add volatile qualifier for
9945         intermediate value w.
9946         * libm/common/sf_rint.c (rintf): Ditto.
9947
9948 Thu Apr 29 20:34:27 1999  Jeff Johnston  <jjohnstn@cygnus.com>
9949
9950         * libc/sys/arm/syscalls.c (remap_handle): Added check to
9951         ensure that std streams are initialized before being referenced.
9952
9953 1999-04-27  Jason Molenda  (jsm@bugshack.cygnus.com)
9954
9955         * README: Update reference to newlib@cygnus.com new
9956         newlib@sourceware.cygnus.com address.
9957
9958 Mon Apr 26 18:17:33 1999  Geoffrey Noer  <noer@cygnus.com>
9959
9960         * libc/include/sys/types.h: Define MS_types if CYGWIN is defined.
9961         * libc/include/sys/fcntl.h: Define _O_BINARY et al if CYGWIN is
9962         defined, even if _WIN32 isn't defined.
9963
9964 Sat Apr 24 19:59:55 1999  Christopher Faylor <cgf@cygnus.com>
9965
9966         * libc/include/sys/fcntl.h: Correct _O_CREATE to _O_CREAT.
9967
9968 Wed Apr 21 18:01:00 1999  Ranjith Kumaran  <ranjith@cygnus.com>
9969
9970         * libc/include/sys/reent.h: Change Long and ULong to __Long and
9971         __ULong.
9972         * libc/stdlib/dtoa.c: Ditto.
9973         * libc/stdlib/mprec.c: Ditto.
9974         * libc/stdlib/mprec.h: Ditto.
9975         * libc/stdlib/strtod.c: Ditto.
9976
9977 1999-04-21  Nick Clifton  <nickc@cygnus.com>
9978
9979         * configure.host (mcore): Remove mcore machine directory.
9980
9981 1999-04-18  Nick Clifton  <nickc@cygnus.com>
9982
9983         * libc/include/machine/ieeefp.h: Add support for mcore target.
9984         * libc/include/machine/setjmp.h: Add support for mcore target.
9985         * configure.host: Add support for mcore target.
9986
9987 1999-04-13  Mark Salter  <msalter@cygnus.com>
9988
9989         * libc/sys/arm/libcfunc.c: Moved isatty to syscall.c
9990         * libc/sys/arm/syscalls.c: Added isatty.
9991
9992 Wed Apr 07 16:06:04 1999  Jeff Johnston  <jjohnstn@cygnus.com>
9993
9994         * libc/stdlib/ecvtbuf.c (fcvtbuf): Fixed code to properly
9995         insert zeroes after significant digits.
9996
9997 Wed Mar 17 22:06:04 1999  Jeff Johnston  <jjohnstn@cygnus.com>
9998         
9999         * libc/stdio/vfprintf.c (cvt): Changed floating point
10000         cvt routine to use union used by dtoa to properly determine
10001         if the sign bit is on or not.
10002         * libc/stdio/vfieeefp.h: New file
10003         
10004 Wed Mar 17 17:35:04 1999  Jeff Johnston  <jjohnstn@cygnus.com>
10005
10006         * aclocal.m4: Regenerated.
10007         * configure: Regenerated.
10008
10009 Wed Mar 17 16:35:04 1999  Jeff Johnston  <jjohnstn@cygnus.com>
10010
10011         * libc/machine/i386/Makefile.am (lib_a_SOURCES): Added missing
10012         f_tanf reference.
10013         * libc/machine/i386/Makefile.in: Regenerated.
10014
10015 Tue Mar 16 14:56:36 1999  Jeff Johnston  <jjohnstn@cygnus.com>
10016
10017         * acinclude.m4: Changed to work with new automake.
10018         * configure: Regenerated.
10019         * libc/machine/i386/aclocal.m4: Regenerated.
10020         * libc/machine/i386/configure: Regenerated.
10021
10022 Tue Mar 16 13:55:36 1999  Corinna Vinschen  <corinna.vinschen@cityweb.de>
10023
10024         * libc/sys/cygwin/sys/dirent.h: Add additional prototypes
10025         for telldir() and seekdir().  Rename unused structure element
10026         for use with these two routines.
10027
10028 Fri Mar 12 19:11:58 1999  Jeff Johnston  <jjohnstn@cygnus.com>
10029
10030         * libc/time/mktime.c (validate_structure): Multiple fixes to
10031         code to handle cases where input fields are outside valid ranges.
10032         * libc/stdlib/div.c (div): Modified invalid rounding check.
10033         * libc/stdlib/ldiv.c (ldiv): Ditto.
10034
10035 Thu Mar 11 21:32:13 1999  Jeff Johnston  <jjohnstn@cygnus.com>
10036
10037         * libc/machine/i386/memcpy.S: Performance rewrite.
10038         * libc/machine/i386/memmove.S: Ditto.
10039         * libc/machine/i386/i386mach.h: Added more register definitions.
10040         * libc/include/math.h: Include <machine/fastmath.h> if -ffast-math
10041         option used.
10042         * libc/include/machine/fastmath.h: Add definitions for x86
10043         fast-math routines.
10044
10045 Wed Mar 10 17:56:00 1999 Ranjith Kumaran  <ranjith@cygnus.com>
10046
10047         * libc/stdlib/strtod.c: Change from unsigned long to ULong.
10048
10049 Tue Mar  9 14:31:58 1999  Geoffrey Noer  <noer@cygnus.com>
10050
10051         Adjust newlib headers for new Cygwin Win32 API header files:
10052         * libc/include/sys/time.h: Check _WINSOCK_H rather than
10053         _GNU_H_WINDOWS32_SOCKETS.
10054         * libc/include/sys/types.h: Ditto.
10055
10056 Tue Mar 09 15:55:00 1999 Ranjith Kumaran  <ranjith@cygnus.com>
10057
10058         *include/sys/reent.h: Add checks for size of Bigint element Long.
10059         *libc/dtoa.c: Change routines to use generic Long type.
10060         *libc/mprec.c: Change routines to use generic Long type.
10061         *libc/mprec.h: Change routines to use generic Long type.
10062
10063 Tue Mar 02 18:07:49 1999 Ranjith Kumaran  <ranjith@cygnus.com>
10064
10065         * libc/Makefile.am: Add .def files.
10066         * libc/Makefile.in: Regenerate.
10067         * libc/e_acosh.c: Documentation update.
10068         * libc/e_atanh.c: Documentation update.
10069         * libc/e_hypot.c: Documentation update.
10070         * libc/e_remainder.c: Documentation update.
10071         * libc/er_lgamma.c: Documentation update.
10072         * libc/mathfp.tex: Documentation update.
10073         * libc/s_acos.c: Documentation update.
10074         * libc/s_atan.c: Documentation update.
10075         * libc/s_atan2.c: Documentation update.
10076         * libc/s_cosh.c: Documentation update.
10077         * libc/s_fmod.c: Documentation update.
10078         * libc/s_isnan.c: Documentation update.
10079         * libc/s_log10.c: Documentation update.
10080         * libc/s_pow.c: Documentation update.
10081         * libc/w_jn.c: Documentation update.
10082
10083 Sun Feb 28 23:18:49 1999  Geoffrey Noer  <noer@cygnus.com>
10084
10085         * aclocal.m4: Regenerate.
10086         * configure: Regenerate.
10087
10088 Tue Feb 23 13:57:26 1999  Jeff Johnston  <jjohnstn@cygnus.com>
10089
10090         * libc/machine/mn10300/setjmp.S (_longjmp): Fixed longjmp
10091         to return 1 if user specified return code is 0.
10092         * libc/machine/mn10200/setjmp.S (_longjmp): Ditto.
10093
10094 Thu Feb 18 11:13:28 1999  Jeff Johnston  <jjohnstn@cygnus.com>
10095
10096         * libc/machine/mn10200/setjmp.S (_setjmp/_longjmp): Fixed setjmp
10097         to save the return address.  Fixed longjmp to return to the original
10098         calling address of setjmp and to return the user specified return code
10099         rather than default to 1.
10100         * libc/machine/mn10300/setjmp.S (_setjmp/_longjmp): Ditto.
10101
10102 Mon Feb 15 17:48:17 1999  Jeff Johnston  <jjohnstn@cygnus.com>
10103
10104         * libc/stdlib/mprec.h (mult): Define mult to be _multiply instead of _mult.
10105
10106 1999-02-10  Nick Clifton  <nickc@cygnus.com>
10107
10108         * libc/sys/arm/syscalls.c (initialise_monitor_handles): Make block
10109         volatile so that its assignments will not be discarded.
10110
10111 Wed Feb 10 17:19:40 1999  Jeff Johnston  <jjohnstn@cygnus.com>
10112
10113         * libc/include/_ansi.h: Corrected _STRICT_ANSI reference to
10114         be __STRICT_ANSI__ which is generated by compiler.
10115         * libc/include/ctype.h: Ditto.
10116         * libc/include/math.h: Ditto.
10117         * libc/include/stdio.h: Ditto.
10118         * libc/include/stdlib.h: Ditto.
10119         * libc/include/string.h: Ditto.
10120         * libc/include/sys/signal.h: Ditto.
10121
10122 1999-02-08  Nick Clifton  <nickc@cygnus.com>
10123
10124         * configure.host: Add support for StrongARM target.
10125
10126 Fri Feb  5 11:13:14 1999  Jeff Johnston  <jjohnstn@cygnus.com>
10127
10128         * libc/string/strncpy.c (strncpy): Removed redundant code
10129         that was copying bytes if data unaligned.
10130
10131 1999-02-02  Brendan Kehoe  <brendan@cygnus.com>
10132
10133         * libc/stdlib/Makefile.{am,in} (CHEWOUT_FILES): Add mblen.def,
10134         mbstowcs.def, and wcstombs.def.
10135
10136 Sat Jan 30 02:36:33 1999  Christopher Faylor <cgf@cygnus.com>
10137
10138         * libc/include/sys/errno.h: Add Cygwin errno.
10139         * libc/stdio/flags.c: Don't default to O_TEXT if no other flag
10140         is specified.
10141
10142 1999-01-29  Nick Clifton  <nickc@cygnus.com>
10143
10144         * libc/sys/arm/syscalls.c: Move C library functions into seperate
10145         file.
10146         
10147         * libc/sys/arm/libcfunc.c: New file containing C library functions
10148         from syscalls.c
10149
10150         * libc/sys/arm/Makefile.am (lib_a_SOURCES): Add libcfuncs.c
10151         * libc/sys/arm/Makefile.in (lib_a_SOURCES): Regenerate.
10152
10153
10154 1999-01-27  Michael Meissner  <meissner@cygnus.com>
10155
10156         * libc/include/machine/setjmp.h (D30V _JBLEN/_JBTYPE): Use double
10157         type, and cut size in half so that the jmp_buf array is guaranteed
10158         to be aligned on a 64-bit boundary.
10159
10160 Mon Jan 25 12:05:38 1999  Jeff Johnston  <jjohnstn@cygnus.com>
10161
10162         * libc/string/strings.tex: Added information about
10163         strcasecmp and strncasecmp.
10164         * libc/stdlib/stdlib.tex: Added missing information
10165         about mblen, mbstowcs, and wcstombs.
10166         * libc/string/strchr.c: Changed how mask is built to use
10167         shift operators so register will be used instead of storage.
10168
10169 1999-01-22  DJ Delorie  <dj@cygnus.com>
10170
10171         * libc/include/stdlib.h: don't use dllimport if we're building
10172         newlib, since it's inside cygwin.dll
10173
10174 Fri Jan 22 14:57:18 1999  Christopher Faylor <cgf@cygnus.com>
10175
10176         * libc/ctype/ctype_.c: Need to use __declspec(dllexport) for
10177         _ctype_ under cygwin.
10178
10179 Fri Jan 22 09:50:19 1999  Christopher Faylor <cgf@cygnus.com>
10180
10181         * include/stdlib.h: Fix typo from previous checkin.
10182
10183 Thu Jan 21 22:42:21 1999  Christopher Faylor <cgf@cygnus.com>
10184
10185         * include/ctype.h: Use __declspec(dllimport) method for exporting
10186         variable from cygwin DLL.
10187         * include/time.h: Ditto.
10188         * sys/errno.h: Ditto.
10189         * include/stdlib.h: Export __mb_cur_max from cygwin DLL.
10190         * libc/locale/locale.c: Use __declspec(dllexport) method for
10191         exporting variable from cygwin DLL.
10192
10193 Sat Jan 16 13:29:54 1999  Christopher Faylor <cgf@cygnus.com>
10194
10195         * libc/stdio/setvbuf.c: Always clean up when _IONBF or possible
10196         access of bogus pointer will result in SIGSEGV.
10197
10198 1999-01-07  Nick Clifton  <nickc@cygnus.com>
10199
10200         * libc/sys/arm/setjmp.S: Use C macros to cope with the possibility
10201         of an underscore prefix to function names.
10202
10203 Fri Jan  8 19:00:07 1999  Jeff Johnston  <jjohnstn@cygnus.com>
10204
10205         * libc/machine/i386/i386mach.h (__REG_PREFIX__): Create new
10206         define __REG_PREFIX__ instead of using __REGISTER_PREFIX__.
10207
10208 1998-12-31  Michael Meissner  <meissner@cygnus.com>
10209
10210         * libc/machine/i386/i386mach.h (__REGISTER_PREFIX__): Only define
10211         to `%' if not already defined.
10212
10213 1998-12-30  Michael Meissner  <meissner@cygnus.com>
10214
10215         * libc/stdio/tmpnam.c (_tempnam_r): Make directory and prefix
10216         arguments const char *, not char *.
10217         * libc/include/stdio.h (_tempnam_r): Ditto.
10218
10219         * libc/include/sys/reent.h (struct _reent): The _sig_func type
10220         points to a function taking an integer, not void.
10221
10222 Tue Dec 29 14:35:53 1998  Christopher Faylor <cgf@cygnus.com>
10223
10224         * configure.host: Add a define for Cygwin builds.
10225         * libc/include/ctype.h: Don't use dll imported variables in newlib.
10226
10227 Mon Dec 28 09:19:56 1998  Christopher Faylor <cgf@cygnus.com>
10228
10229         * libc/include/ctype.h: Define _ctype_ as dll imported variable
10230         for use with Cygwin.
10231         * libc/include/sys/errno.h: Define _sys_errlist and _sys_nerr as
10232         dll imported variables for use with Cygwin.
10233         * libc/ctype/ctype_.c: Undefine _ctype_ in case it has been defined
10234         as a dll imported variable for Cygwin.
10235
10236 Sat Dec 26 00:13:53 1998  Christopher Faylor <cgf@cygnus.com>
10237
10238         * libc/include/sys/unistd.h: Add proto for getpass.
10239
10240 Fri Dec 18 19:28:19 1998  Geoffrey Noer  <noer@cygnus.com>
10241
10242         * libc/sys/cygwin/sys/dirent.h: add protos for scandir and
10243         alphasort.
10244
10245 Fri Dec 18 16:33:25 1998  Geoffrey Noer  <noer@cygnus.com>
10246
10247         * libc/posix/execvp.c (execvp): call cygwin_posix_path_list_p,
10248         not posix_path_list_p.
10249
10250 1998-12-15  Nick Clifton  <nickc@cygnus.com>
10251
10252         * libc/string/memchr.c: Treat 'c' argument as an unsigned byte not
10253         a signed int.
10254
10255 1998-12-13  Nick Clifton  <nickc@cygnus.com>
10256
10257         * libc/include/machine/setjmp.h (_JBLEN): Set to 10.
10258
10259 1998-12-12  Nick Clifton  <nickc@cygnus.com>
10260
10261         * libc/machine/fr30/setjmp.S: New file, supplied by Mark Slater
10262         <msalter@cygnus.com>
10263         * libc/machine/fr30/Makefile.am: Add build of setjmp.S
10264         * libc/machine/fr30/Makefile.in: Regenerated.
10265
10266 1998-12-11  Nick Clifton  <nickc@cygnus.com>
10267
10268         * configure.host: Remove use of libc/sys for FR30 port.
10269         * libc/sys/fr30: Remove directory (replaced by libgloss).
10270
10271 1998-12-10  Ken Raeburn  <raeburn@cygnus.com>
10272
10273         * libc/string/strcat.c (ALIGNED): Sense of result was reversed.
10274         * libc/string/strncat.c (ALIGNED): Ditto.
10275
10276 Wed Dec  9 14:37:57 1998  Geoffrey Noer  <noer@cygnus.com>
10277
10278         * libc/include/sys/time.h: include sys/types.h
10279
10280 Tue Dec  8 15:53:18 1998  Jeff Johnston  <jjohnstn@cygnus.com>
10281
10282         * libc/machine/i386/memcmp.S (memcmp): Fix for unequal
10283         comparison found when checking word at a time.
10284
10285 1998-12-04  Nick Clifton  <nickc@cygnus.com>
10286
10287         * libc/sys/fr30/crt0.s (_start): Initialise frame pointer.
10288
10289 1998-12-03  Nick Clifton  <nickc@cygnus.com>
10290
10291         * libc/sys/fr30/syscalls.c (_times): New function stub.
10292
10293 Thu Dec  3 15:59:19 1998  Jeff Johnston  <jjohnstn@cygnus.com>
10294
10295         * configure.host (mach_add_setjmp): Replaced mach_add_objs
10296         with mach_add_setjmp flag which indicates if setjmp should
10297         be added to the machine directory objects.
10298         * acinclude.m4: Removed reference to mach_add_objs.
10299         * aclocal.m4: Regenerated.
10300         * Makefile.in: Regenerated.
10301         * configure: Regenerated.
10302         * libc/aclocal.m4: Regenerated.
10303         * libc/Makefile.in: Regenerated.
10304         * libc/configure: Regenerated.
10305         * libc/machine/aclocal.m4: Regenerated.
10306         * libc/machine/Makefile.in: Regenerated.
10307         * libc/machine/configure: Regenerated.
10308         * libc/machine/i386/aclocal.m4: Regenerated.
10309         * libc/machine/i386/Makefile.am: Altered to selectively add
10310         setjmp.S to the src files list.
10311         * libc/machine/i386/Makefile.in: Regenerated.
10312         * libc/machine/i386/configure.in: Altered to test mach_add_setjmp.
10313         * libc/machine/i386/configure: Regenerated.
10314
10315 1998-12-02  Nick Clifton  <nickc@cygnus.com>
10316
10317         * libc/sys/fr30/crt0.s (_start): Fix function names.
10318
10319         * libc/machine/fr30: New directory
10320         * libc/machine/fr30/Makefile.am: New file.
10321         * libc/machine/fr30/Makefile.in: New generated file.
10322         * libc/machine/fr30/configure.in: New file.
10323         * libc/machine/fr30/configure: New generated file.
10324         * libc/machine/fr30/aclocal.m4: New generated file.
10325         * libc/sys/fr30/Makefile.am: New file.
10326         * libc/sys/fr30/Makefile.in: New generated file.
10327         * libc/sys/fr30/configure.in: New file.
10328         * libc/sys/fr30/configure: New generated file.
10329         * libc/sys/fr30/syscalls.c: New file.
10330
10331 Tue Dec  1 16:28:56 1998  Geoffrey Noer  <noer@cygnus.com>
10332
10333         * libc/sys/cygwin/sys/utmp.h: new file, moved from winsup/include.
10334
10335 1998-12-01  Ken Raeburn  <raeburn@cygnus.com>
10336
10337         * libc/time/strftime.c (strftime): Also handle %y for years before
10338         1900.
10339
10340 Tue Dec  1 13:26:07 1998  Christopher Faylor <cgf@cygnus.com>
10341
10342         * libc/string/strcasecmp.c (strcasecmp): Adhere to standard
10343         UNIX convention.  Perform tolower on characters before comparing
10344         them rather than use toupper.
10345         * libc/string/strncasecmp.c (strncasecmp): Ditto.
10346
10347 Mon Nov 30 16:24:19 1998  Jeff Johnston  <jjohnstn@cygnus.com>
10348         
10349         * configure.host: Added using i386 machine directory
10350         for all x86 cross-compiler and configuring
10351         which added object files to use via new "mach_add_objs" variable.
10352         * configure: Regenerated.
10353         * libc/configure: Regenerated.
10354         * libc/Makefile.in: Regenerated.
10355         * libc/aclocal.m4: Regenerated.
10356         * libc/ctype/Makefile.in: Regenerated.
10357         * libc/errno/Makefile.in: Regenerated.
10358         * libc/locale/Makefile.in: Regenerated.
10359         * libc/machine/Makefile.in: Regenerated.
10360         * libc/machine/aclocal.m4: Regenerated.
10361         * libc/machine/configure: Regenerated.
10362         * libc/posix/Makefile.in: Regenerated.
10363         * libc/reent/Makefile.in: Regenerated.
10364         * libc/signal/Makefile.in: Regenerated.
10365         * libc/stdio/Makefile.in: Regenerated.
10366         * libc/stdlib/Makefile.in: Regenerated.
10367         * libc/string/Makefile.in: Regenerated.
10368         * libc/string/memmove.c: Optimized code to use memcpy
10369         logic when performing a non-destructive copy.
10370         * libc/string/strncmp.c: Altered code to allow building
10371         optimized for size or speed.
10372         * libc/syscalls/Makefile.in: Regenerated.
10373         * libc/time/Makefile.in: Regenerated.
10374         * libc/unix/Makefile.in: Regenerated.
10375         * libc/machine/i386/Makefile.am: Added new files and reference
10376         to "mach_add_objs" to indicate optional object files.
10377         * libc/machine/i386/Makefile.in: Regenerated.
10378         * libc/machine/i386/aclocal.m4: Regenerated.
10379         * libc/machine/i386/configure: Regenerated.
10380         * libc/machine/i386/memchr.S: New file that implements
10381         function in Intel assembler.
10382         * libc/machine/i386/memcmp.S: ditto.
10383         * libc/machine/i386/memcpy.S: ditto.
10384         * libc/machine/i386/memmove.S: ditto.
10385         * libc/machine/i386/memset.S: ditto.
10386         * libc/machine/i386/strchr.S: ditto.
10387         * libc/machine/i386/strlen.S: ditto.
10388         * libc/machine/i386/f_atan2.S: New file that implements
10389         fast version of math function to be used by compiler when
10390         --ffast_math compile option is used.
10391         * libc/machine/i386/f_atan2f.S: ditto.
10392         * libc/machine/i386/f_exp.c: ditto.
10393         * libc/machine/i386/f_expf.c: ditto.
10394         * libc/machine/i386/f_frexp.S: ditto.
10395         * libc/machine/i386/f_frexpf.S: ditto.
10396         * libc/machine/i386/f_ldexp.S: ditto.
10397         * libc/machine/i386/f_ldexpf.S: ditto.
10398         * libc/machine/i386/f_log.S: ditto.
10399         * libc/machine/i386/f_logf.S: ditto.
10400         * libc/machine/i386/f_log10.S: ditto.
10401         * libc/machine/i386/f_log10f.S: ditto.
10402         * libc/machine/i386/f_math.h: New file.
10403         * libc/machine/i386/f_pow.c: ditto.
10404         * libc/machine/i386/f_powf.S: ditto.
10405         * libc/machine/i386/f_tan.S: ditto.
10406         * libc/machine/i386/f_tan.S: ditto.
10407         * libc/machine/i386/i386mach.h: New file.
10408
10409 Mon Nov 30 13:02:17 1998  Christopher Faylor <cgf@cygnus.com>
10410
10411         patch from Mumit Khan <khan@xraylith.wisc.edu>
10412         * libc/include/stdio.h (tempnam): Add prototype.
10413         * libc/stdio/tmpnam.c (_tempnam_r): Handle NULL prefix.
10414         (tempnam): Adhere to prototype.
10415
10416 Thu Nov 26 00:21:32 1998  Christopher Faylor <cgf@cygnus.com>
10417
10418         * Makefile.am: Add default for AR_FLAGS.
10419         * Makefile.in: Regenerate.
10420
10421 Tue Nov 24 18:48:56 1998  Geoffrey Noer  <noer@cygnus.com>
10422
10423         * libc/include/time.h: move __cplusplus wrapper after includes
10424         * libc/include/sys/time.h: ditto.  If Cygwin, include
10425         sys/select.h.
10426         * libc/include/sys/types.h: lose "32" in comment about Cygwin.
10427
10428 1998-11-23  Ken Raeburn  <raeburn@cygnus.com>
10429
10430         * libc/time/strftime.c (strftime): Handle %y after year 2000.
10431
10432 Wed Nov 18 12:22:41 1998  Nick Clifton  <nickc@cygnus.com>
10433
10434         * libc/sys/fr30/crt0.s (_start): Switch over to using int #9 as
10435         abnormnal end-of-crt0 marker.
10436
10437 Tue Nov 17 16:27:58 1998  Nick Clifton  <nickc@cygnus.com>
10438
10439         * libc/sys/fr30/crt0.s: New file/directory.
10440         * libc/include/machine/setjmp.h: Add FR30 target.
10441         * libc/include/machine/ieeefp.h: Add FR30 target.
10442         * configure.host: Add FR30 target.
10443
10444 Mon Nov  16 23:15:00 1998  Ranjith Kumaran <ranjith@cygnus.com>
10445
10446         * libm/math: Files that are duplicated in common directory removed.
10447         * libm/math/fdlibm.h: Removed.
10448         * libm/math/s_cbrt.c: Removed.
10449         * libm/math/s_copysign.c: Removed.
10450         * libm/math/s_expm1.c: Removed.
10451         * libm/math/s_finite.c: Removed.
10452         * libm/math/s_ilogb.c: Removed.
10453         * libm/math/s_infinity.c: Removed.
10454         * libm/math/s_lib_ver.c: Removed.
10455         * libm/math/s_log1p.c: Removed.
10456         * libm/math/s_logb.c: Removed.
10457         * libm/math/s_matherr.c: Removed.
10458         * libm/math/s_modf.c: Removed.
10459         * libm/math/s_nan.c: Removed.
10460         * libm/math/s_nextafter.c: Removed.
10461         * libm/math/s_rint.c: Removed.
10462         * libm/math/s_scalbn.c: Removed.
10463         * libm/math/sf_cbrt.c: Removed.
10464         * libm/math/sf_copysign.c: Removed.
10465         * libm/math/sf_expm1.c: Removed.
10466         * libm/math/sf_finite.c: Removed.
10467         * libm/math/sf_ilogb.c: Removed.
10468         * libm/math/sf_infinity.c: Removed.
10469         * libm/math/sf_log1p.c: Removed.
10470         * libm/math/sf_logb.c: Removed.
10471         * libm/math/sf_modf.c: Removed.
10472         * libm/math/sf_nan.c: Removed.
10473         * libm/math/sf_nextafter.c: Removed.
10474         * libm/math/sf_rint.c: Removed.
10475         * libm/math/sf_scalbn.c: Removed.
10476         * libm/math/Makefile.am: Removed references to deleted files (above).
10477         * libm/math/Makefile.in: Regenerated.
10478         * libm/Makefile.am: Added common directory to math.
10479         * libm/Makefile.in: Regenerated.
10480
10481 Mon Nov  2 23:12:00 1998  Ranjith Kumaran <ranjith@cygnus.com>
10482
10483         * libm/mathfp: Add non-ANSI functions.
10484         * libm/mathfp/e_acosh.c acosh(): New file.
10485         * libm/mathfp/e_atanh.c atanh(): New file.
10486         * libm/mathfp/e_hypot.c hypot(): New file.
10487         * libm/mathfp/e_j0.c j0(): New file.
10488         * libm/mathfp/e_j1.c j1(): New file.
10489         * libm/mathfp/e_remainder.c remainder(): New file.
10490         * libm/mathfp/e_scalb.c scalb(): New file.
10491         * libm/mathfp/ef_acosh.c acoshf(): New file.
10492         * libm/mathfp/ef_atanh.c atanhf(): New file.
10493         * libm/mathfp/ef_hypot.c hypotf(): New file.
10494         * libm/mathfp/ef_j0.c j0f(): New file.
10495         * libm/mathfp/ef_j1.c j1f(): New file.
10496         * libm/mathfp/ef_remainder.c remainderf(): New file.
10497         * libm/mathfp/ef_scalb.c scalbf(): New file.
10498         * libm/mathfp/er_gamma.c gamma_r: New file.
10499         * libm/mathfp/er_lgamma.c lgamma_r(): New file.
10500         * libm/mathfp/erf_gamma.c gamma_rf(): New file.
10501         * libm/mathfp/erf_lgamma.c lgamma_rf(): New file.
10502         * libm/mathfp/w_cabs.c cabs(): New file.
10503         * libm/mathfp/w_drem.c drem(): New file.
10504         * libm/mathfp/w_jn.c jn(): New file.
10505         * libm/mathfp/wf_cabs.c cabsf(): New file.
10506         * libm/mathfp/wf_drem.c dremf(): New file.
10507         * libm/mathfp/wf_jn.c jnf(): New file.
10508
10509 Mon Nov  2 16:43:18 1998  Geoffrey Noer  <noer@cygnus.com>
10510
10511         * libc/sys/cygwin32: remove directory and contents
10512         * libc/sys/cygwin: and add back, losing the "32".
10513         * configure.host: check for cygwin* instead of cygwin32.
10514         * acinclude.m4: ditto.
10515         * aclocal.m4: regenerate with aclocal
10516         * configure: regenerate with autoconf
10517
10518 Tue Oct 20 17:28:28 1998  Geoffrey Noer  <noer@cygnus.com>
10519
10520         * libc/stdio/tmpnam.c (_tempnam_r): not enough memory allocated
10521         for length
10522
10523 Tue Oct 20 18:49:05 1998  Jeff Johnston  <jjohnstn@cygnus.com>
10524
10525         * libc/include/sys/reent.h (struct _reent): Added variables _rand_next, _strtok_last,
10526         _asctime_buf, _localtime_buf and _gamma_signgam to struct reent
10527         to make rand/srand, strtok, asctime, localtime, w_gamma,
10528         w_lgamma, wf_gamma, and wf_lgamma reentrant.  Included
10529         time.h to bring in struct tm definition.
10530         * libc/stdlib/rand.c (rand, srand): Don't emit functions 'rand' and 'srand' if
10531         '_REENT_ONLY' is set. Used variable '_rand_next' from struct reent.
10532         * libc/stdlib/strtok.c (strtok): Used variable '_strtok_last' from struct reent
10533         instead of static variable.
10534         * libc/stdlib/asctime.c (asctime): Used variable '_asctime_buf' from
10535         struct reent instead of static variable.
10536         * libc/stdlib/lcltime.c (localtime): Used variable '_localtime_buf' from
10537         struct reent instead of static variable.
10538         * libm/math/Makefile.am: Removed s_signgam.o.
10539         * libm/math/Makefile.in: Regenerated.
10540         * libm/math/w_gamma.c (gamma): Used variable '_gamma_signgam' from
10541         struct reent instead of global variable 'signgam'.
10542         * libm/math/w_lgamma.c (lgamma): Likewise.
10543         * libm/math/wf_gamma.c (gammaf): Likewise.
10544         * libm/math/wf_lgamma.c (lgammaf): Likewise.
10545         * libm/math/s_signgam.c: Removed.
10546         * libc/include/unctrl.h: Defined arrays __unctrl and __unctrllen
10547         to be const.
10548         * libc/misc/unctrl.c: Defined arrays __unctrl and __unctrllen
10549         to be const.
10550         * libc/reent/Makefile.am: Added dependence for impure.o on impure.c and
10551         libc/include/reent.h.
10552         * libc/reent/Makefile.in: Regenerated.
10553         * libc/stdio/vfprintf.c (_vfprintf_r): Defined arrays 'blanks' and 'zeroes'
10554         to be const.
10555         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Defined arrays 'JIS_state_table' and
10556         'JIS_action_table' to be const.
10557         * libm/math/s_lib_ver.c: define variable _LIB_VERSION to be const.
10558
10559 Mon Oct 12 00:26:33 1998  Christopher Faylor <cgf@cygnus.com>
10560
10561         * acinclude.m4:  $with_target_subdir should default to '.'
10562         or confusion results when configuring in same directory as sources.
10563         * Regenerate all aclocal.m4 and configure files.
10564
10565 Fri Oct  9 16:27:36 1998  Jeff Johnston  <jjohnstn@cygnus.com>
10566
10567         * libc/stdlib/mallocr.c: Added 16 byte alignment support which
10568         can be set by defining MALLOC_ALIGNMENT=16.  Also added support
10569         for platforms where sizeof(size_t) < sizeof(long) via
10570         SIZE_T_SMALLER_THAN_LONG macro.
10571         
10572 Wed Oct  7 14:02:40 1998  Jeff Johnston  <jjohnstn@cygnus.com>
10573
10574         * libc/include/time.h (CLOCKS_PER_SEC): Change CLOCKS_PER_SEC
10575         to refer to _CLOCKS_PER_SEC_ and added including <machine/time.h>
10576         which sets _CLOCKS_PER_SEC_ for selected machines.
10577         * libc/include/machine/time.h: New file.
10578
10579 Tue Oct  6 16:08:05 1998  Jeff Johnston  <jjohnstn@cygnus.com>
10580
10581         * libc/syscalls/sysexecve.c: New file.
10582         * libc/syscalls/sysgettod.c: New file.
10583         * libc/syscalls/systimes.c: New file.
10584         * libc/syscalls/Makefile.am: Added new objects.
10585         * libc/syscalls/Makefile.in: Regenerated.
10586         * libc/include/_syslist.h (_execve): Moved define in file.
10587         * libc/include/reent.h:  Added _execve_r declaration.
10588         * libc/Makefile.in: Regenerated.
10589         * libc/ctype/Makefile.in: Regenerated.
10590         * libc/errno/Makefile.in: Regenerated.
10591         * libc/locale/Makefile.in: Regenerated.
10592         * libc/machine/Makefile.in: Regenerated.
10593         * libc/misc/Makefile.in: Regenerated.
10594         * libc/posix/Makefile.in: Regenerated.
10595         * libc/reent/Makefile.in: Regenerated.
10596         * libc/reent/execr.c (_execve_r): Added _execve_r function.
10597         * libc/signal/Makefile.in: Regenerated.
10598         * libc/stdio/Makefile.in: Regenerated.
10599         * libc/time/Makefile.in: Regenerated.
10600         * libc/unix/Makefile.in: Regenerated.
10601         * libm/mathfp/Makefile.in: Regenerated.
10602
10603 Tue Oct  6 14:14:05 1998  Jeff Johnston  <jjohnstn@cygnus.com>
10604
10605         * libc/string/Makefile.in: Regenerated.
10606         * libc/string/memchr.c (memchr): Moved code to reduce object size.
10607         * libc/string/memcpy.c (memcpy): Ditto.
10608         * libc/string/memcmp.c (memcmp): Ditto.
10609         * libc/string/memset.c (memset): Ditto.
10610         * libc/string/strchr.c (strchr): Ditto.
10611         * libc/string/strcmp.c (strcmp): Ditto.
10612         * libc/string/strcpy.c (strcpy): Ditto.
10613         * libc/string/strlen.c (strlen): Ditto.
10614
10615 Tue Oct  6 13:58:05 1998  Jeff Johnston  <jjohnstn@cygnus.com>
10616
10617         * libm/acinclude.m4: Removed since newlib/acinclude.m4 can be used
10618         to generate aclocal.m4.
10619         * libm/Makefile.in: Regenerated.
10620         * libm/aclocal.m4: Regenerated.
10621         * libm/configure: Regenerated.
10622         * libm/math/Makefile.in: Regenerated.
10623         * libm/mathfp/Makefile.in: Regenerated.
10624
10625 1998-09-25  Mark Salter  <msalter@cygnus.com>
10626
10627         * libc/include/machine/setjmp.h: Fixed test for mn10300 and mn10200
10628         by adding leading and trailing underscores to symbol names.
10629
10630 Tue Sep 22 15:33:41 1998  Christopher Faylor <cgf@cygnus.com>
10631
10632         * Makefile.in: Add default for AR_FLAGS.
10633
10634 Tue Sep 22 15:02:49 1998  Christopher Faylor <cgf@cygnus.com>
10635
10636         patch from ian@airs.com (Ian Taylor):
10637         * acinclude.m4: Run AC_CANONICAL_BUILD explicitly before
10638         NEWLIB_CONFIGURE so AC_CANONICAL_HOST will be run before it
10639         is needed for detecting the build machine.  Required for
10640         cygwin native builds.
10641
10642         * Regenerate all aclocal.m4 and configure files.
10643
10644 Mon Sep 21 14:44:16 1998  Nick Clifton  <nickc@cygnus.com>
10645
10646         * libc/sys/arm/crt0.S: Prepend a period to all local labels that
10647         used to start with LC.
10648
10649 Thu Sep 17 18:18:11 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
10650
10651         * libc/machine/sh/setjmp.S (setjmp): Handle __SH4* like __SH3E__ .
10652         (longjmp): Likewise.
10653
10654 Thu Sep 17 16:25:33 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
10655
10656         * libc/machine/sh/memset.S (memset): Move copy from r4 to r4 before
10657         the test for small number of bytes.
10658
10659 Thu Sep 10 11:40:00 1998  Ranjith Kumaran <ranjith@cygnus.com>
10660
10661         * Makefile.am: Add --enable-newlib-hw-fp check.  This builds the new
10662         math library that uses floating point algorithms instead of the old
10663         libm.
10664         * Makefile.in: Regenerate with automake version 1.3b.
10665         * configure: Rebuild.
10666         * libm/Makefile.in: Regenerate with automake version 1.3b.
10667         * libm/aclocal.m4: Regenerate.
10668         * libm/configure: Rebuild.
10669         * libm/configure.in: Add newlib_hw_fp definition and mathfp directory.
10670         * libm/acinclude.m4: Define macros for configure.in.
10671         * libm/config.h.in: Generate.
10672         * libm/mathfp/Makefile.am: New file.
10673         * libm/mathfp/Makefile.in: Generate.
10674         * libm/mathfp/s_acos.c (acos): New file.
10675         * libm/mathfp/s_asin.c (asin): New file.
10676         * libm/mathfp/s_asine.c (asine): New file.
10677         * libm/mathfp/s_atan.c (atan): New file.
10678         * libm/mathfp/s_atan2.c (atan2): New file.
10679         * libm/mathfp/s_atangent.c (atangent): New file.
10680         * libm/mathfp/s_ceil.c (ceil): New file.
10681         * libm/mathfp/s_copysign.c (copysign): New file.
10682         * libm/mathfp/s_cos.c (cos): New file.
10683         * libm/mathfp/s_cosh.c (cosh): New file.
10684         * libm/mathfp/s_exp.c (exp): New file.
10685         * libm/mathfp/s_fabs.c (fabs): New file.
10686         * libm/mathfp/s_finite.c (finite): New file.
10687         * libm/mathfp/s_floor.c (floor): New file.
10688         * libm/mathfp/s_fmod.c (fmod): New file.
10689         * libm/mathfp/s_frexp.c (frexp): New file.
10690         * libm/mathfp/s_infconst.c: New file.
10691         * libm/mathfp/s_isinf (isinf).c: New file.
10692         * libm/mathfp/s_isnan.c (isnan): New file.
10693         * libm/mathfp/s_ispos.c (ispos): New file.
10694         * libm/mathfp/s_ldexp.c (ldexp): New file.
10695         * libm/mathfp/s_log.c (log): New file.
10696         * libm/mathfp/s_log10.c (log10): New file.
10697         * libm/mathfp/s_logarithm.c (logarithm): New file.
10698         * libm/mathfp/s_mathcnst.c: New file.
10699         * libm/mathfp/s_modf (modf).c: New file.
10700         * libm/mathfp/s_numtest.c (numtest): New file.
10701         * libm/mathfp/s_pow.c (pow): New file.
10702         * libm/mathfp/s_scalbn.c (scalbn): New file.
10703         * libm/mathfp/s_sin (sin).c: New file.
10704         * libm/mathfp/s_sine.c (sine): New file.
10705         * libm/mathfp/s_sineh.c (sineh): New file.
10706         * libm/mathfp/s_sinf.c (sinf): New file.
10707         * libm/mathfp/s_sinh.c (sinh): New file.
10708         * libm/mathfp/s_sqrt.c (sqrt): New file.
10709         * libm/mathfp/s_tan.c (tan): New file.
10710         * libm/mathfp/s_tanh.c (tanh): New file.
10711         * libm/mathfp/sf_acos.c (acosf): New file.
10712         * libm/mathfp/sf_asin.c (asinf): New file.
10713         * libm/mathfp/sf_asine.c (asinef): New file.
10714         * libm/mathfp/sf_atan.c (atanf): New file.
10715         * libm/mathfp/sf_atan2.c (atan2f): New file.
10716         * libm/mathfp/sf_atangent.c (atangent): New file.
10717         * libm/mathfp/sf_ceil.c (ceilf): New file.
10718         * libm/mathfp/sf_copysign.c (copysignf): New file.
10719         * libm/mathfp/sf_cos.c (cosf): New file.
10720         * libm/mathfp/sf_cosh.c (coshf): New file.
10721         * libm/mathfp/sf_exp.c (expf): New file.
10722         * libm/mathfp/sf_fabs.c (fabsf): New file.
10723         * libm/mathfp/sf_finite.c (finitef): New file.
10724         * libm/mathfp/sf_floor.c (floorf): New file.
10725         * libm/mathfp/sf_fmod.c (fmodf): New file.
10726         * libm/mathfp/sf_frexp.c (frexpf): New file.
10727         * libm/mathfp/sf_isinf.c (isinff): New file.
10728         * libm/mathfp/sf_isnan.c (isnanf): New file.
10729         * libm/mathfp/sf_ispos.c (isposf): New file.
10730         * libm/mathfp/sf_ldexp.c (ldexpf): New file.
10731         * libm/mathfp/sf_log.c (logf): New file.
10732         * libm/mathfp/sf_log10.c (log10f): New file.
10733         * libm/mathfp/sf_logarithm.c (logarithmf): New file.
10734         * libm/mathfp/sf_modf.c (modff): New file.
10735         * libm/mathfp/sf_numtest.c (numtestf): New file.
10736         * libm/mathfp/sf_pow.c (powf): New file.
10737         * libm/mathfp/sf_scalbn.c (scalbnf): New file.
10738         * libm/mathfp/sf_sin.c (sinf): New file.
10739         * libm/mathfp/sf_sine.c (sinef): New file.
10740         * libm/mathfp/sf_sineh.c (sinehf): New file.
10741         * libm/mathfp/sf_sinh.c (sinhf): New file.
10742         * libm/mathfp/sf_sqrt.c (sqrtf): New file.
10743         * libm/mathfp/sf_tan.c (tanf): New file.
10744         * libm/mathfp/sf_tanh.c (tanhf): New file.
10745         * libm/mathfp/zmath.h: New file.
10746
10747 Wed Sep  2 02:49:03 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
10748
10749         * libc/machine/sh/strcmp.S (L_char_loop): Re-load r0 at loop
10750         exit if it has been overwritten by pre-fetching in delay slot.
10751
10752 1998-09-01  Michael Meissner  <meissner@cygnus.com>
10753
10754         * Makefile.am (tooldir): Add in host_alias, so that multilib
10755         libraries are installed in the directory the compiler looks in.
10756         * Makefile.in: Regenerate.
10757
10758         * libc/stdlib/Makefile.in: Regenerate with automake version 1.3b.
10759
10760 Mon Aug 31 11:39:31 1998  Jeff Johnston  <jjohnstn@cygnus.com>
10761
10762         * libc/machine/mn10300/memcpy.S (_memcpy): Move alignment test
10763         ahead of test for number of bytes being moved.
10764
10765 Thu Aug 27 14:07:53 1998  Christopher Faylor <cgf@cygnus.com>
10766
10767         * libc/include/sys/unistd.h: Nothing special needed for
10768         _exit under cygwin.
10769
10770 Wed Aug 26 15:05:21 1998  Nick Clifton  <nickc@cygnus.com>
10771
10772         * libc/sys/arm/syscalls.c (_sbrk): Rename '_end' to 'end' to
10773         conform to user label naming conventions. 
10774
10775 Mon Aug 24 14:46:19 1998  Geoffrey Noer <noer@cygnus.com>
10776
10777         * libc/sys/cygwin32/sys/utime.h: variable names in
10778         protos should start with two leading underscores
10779         * libc/include/string.h: ditto
10780         * libc/include/sys/signal.h: ditto
10781         * libc/include/sys/stat.h: ditto
10782         * libc/include/sys/time.h: ditto
10783         * libc/include/sys/unistd.h: ditto
10784         * libc/include/ctype.h: ditto
10785         * libc/include/stdlib.h: ditto
10786         * libc/include/sys/reent.h: struct _atexit function ptr takes a
10787         void, same with _sig_func.
10788
10789 Fri Aug 21 14:44:14 1998  Jeff Johnston  <jjohnstn@cygnus.com>
10790
10791         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Added preprocessor checks
10792         for MB_CAPABLE to reduce code size when newlib is not configured
10793         with --enable-newlib-mb.
10794         * libc/stdlib/Makefile.am: Specified -fshort-enums when building
10795         mbtowc_r.o to minimize size.
10796         * libc/stdlib/Makefile.in: Rebuild.
10797         
10798 Wed Aug 19 16:20:13 1998  Jim Wilson  <wilson@cygnus.com>
10799
10800         * libc/sys/sparc64/Makefile.am (.S_r.o, .c_r.o): Change -DREENTRANT
10801         to -DREENT.
10802         * libc/sys/sparc64/Makefile.in: Rebuild.
10803         
10804 Tue Aug 18 22:38:29 1998  Ian Lance Taylor  <ian@cygnus.com>
10805
10806         * Makefile.am (MAKEOVERRIDES): Define.
10807         * Makefile.in: Rebuild.
10808
10809 Tue Aug 18 12:38:47 1998  Jim Wilson  <wilson@cygnus.com>
10810
10811         * libc/sys/sparc64/sys/stat.h (stat): Add const.
10812
10813 Mon Aug 17 22:27:06 1998  Ian Lance Taylor  <ian@cygnus.com>
10814
10815         * acinclude.m4 (NEWLIB_CONFIGURE): Use top_builddir in
10816         newlib_cflags when looking for targ-include.
10817         * */aclocal.m4, */configure: Rebuild.
10818
10819 Fri Jul 31 10:57:42 1998  Catherine Moore  <clm@cygnus.com>
10820
10821         * libc/sys/arm/syscalls.c (_sbrk): Change "__end__"
10822         to "_end".
10823
10824 Wed Jul 29 00:02:01 1998  Mark Alexander  <marka@cygnus.com>
10825
10826         * libc/include/sys/config.h: Define __IEEE_LITTLE_ENDIAN
10827         on SPARCs with little-endian data.
10828         * libc/include/machine/ieeefp.h: Ditto.
10829
10830 Wed Jul 22 18:00:10 1998  Ian Lance Taylor  <ian@cygnus.com>
10831
10832         * acinclude.m4: Handle a relative srcdir correctly when setting
10833         newlib_cflags.
10834         * */aclocal.m4, */configure: Rebuild.
10835
10836 Wed Jul 22 17:11:33 1998  Jeff Johnston  <jjohnstn@cygnus.com>
10837
10838         * libm/math/wrf_lgamma.c (lgammaf_r): Initialize exc.err to 0 and
10839         also set exc.arg1, exc.arg2 appropriately in case matherr is supplied.
10840         * libm/math/wrf_gamma.c (gammaf_r): ditto 
10841         * libm/math/wr_lgamma.c (lgamma_r): ditto 
10842         * libm/math/wr_gamma.c (gamma_r): ditto 
10843         * libm/math/wf_sqrt.c (sqrtf): ditto 
10844         * libm/math/wf_sinh.c (sinhf): ditto 
10845         * libm/math/wf_scalb.c (scalbf): ditto 
10846         * libm/math/wf_remainder.c (remainderf): ditto 
10847         * libm/math/wf_pow.c (powf): ditto 
10848         * libm/math/wf_log10.c (log10f): ditto 
10849         * libm/math/wf_log.c (logf): ditto 
10850         * libm/math/wf_lgamma.c (lgammaf): ditto 
10851         * libm/math/wf_jn.c (jnf, ynf): ditto 
10852         * libm/math/wf_j1.c (j1f, y1f): ditto 
10853         * libm/math/wf_j0.c (j0f, y0f): ditto 
10854         * libm/math/wf_hypot.c (hypotf): ditto 
10855         * libm/math/wf_gamma.c (gammaf): ditto 
10856         * libm/math/wf_fmod.c (fmodf): ditto 
10857         * libm/math/wf_exp.c (expf): ditto 
10858         * libm/math/wf_cosh.c (coshf): ditto 
10859         * libm/math/wf_atanh.c (atanhf): ditto 
10860         * libm/math/wf_atan2f.c (atan2f): ditto 
10861         * libm/math/wf_asin.c (asinf): ditto 
10862         * libm/math/wf_acosh.c (acoshf): ditto 
10863         * libm/math/wf_acos.c (acosf): ditto 
10864         * libm/math/w_sqrt.c (sqrt): ditto 
10865         * libm/math/w_sinh.c (sinh): ditto 
10866         * libm/math/w_scalb.c (scalb): ditto 
10867         * libm/math/w_remainder.c (remainder): ditto 
10868         * libm/math/w_pow.c (pow): ditto 
10869         * libm/math/w_log10.c (log10): ditto 
10870         * libm/math/w_log.c (log): ditto 
10871         * libm/math/w_lgamma.c (lgamma): ditto 
10872         * libm/math/w_jn.c (jn, yn): ditto 
10873         * libm/math/w_j1.c (j1, y1): ditto 
10874         * libm/math/w_j0.c (j0, y0): ditto 
10875         * libm/math/w_hypot.c (hypot): ditto 
10876         * libm/math/w_gamma.c (gamma): ditto 
10877         * libm/math/w_fmod.c (fmod): ditto 
10878         * libm/math/w_exp.c (exp): ditto 
10879         * libm/math/w_cosh.c (cosh): ditto 
10880         * libm/math/w_atanh.c (atanh): ditto 
10881         * libm/math/w_atan2f.c (atan2): ditto 
10882         * libm/math/w_asin.c (asin): ditto 
10883         * libm/math/w_acosh.c (acosh): ditto 
10884         * libm/math/w_acos.c (acos): ditto 
10885
10886 Tue Jul 21 12:34:54 1998  Ian Lance Taylor  <ian@cygnus.com>
10887
10888         * libm/math/Makefile.am (src): Add w_cabs.c and w_drem.c.
10889         (fsrc): Add wf_cabs.c and wf_drem.c.
10890         * libm/math/Makefile.in: Rebuild.
10891
10892         * Makefile.am (AM_MAKEFLAGS): Add CFLAGS_FOR_BUILD.  Remove some
10893         unused directory variables.  Remove duplicate CFLAGS.
10894         * Makefile.in: Rebuild.
10895
10896         * doc/Makefile.am ($(MKDOC)): Don't use $(CFLAGS) when building
10897         with $(CC_FOR_BUILD).
10898         (makedoc.o): Likewise.
10899         * doc/Makefile.in: Rebuild.
10900
10901         * libc/sys/cygwin32/Makefile.am (EXTRA_LIBRARIES): Define, to
10902         force a definition of COMPILE.
10903         (libfoo_a_SOURCES): Define.
10904         * libc/sys/cygwin32/Makefile.in: Rebuild.
10905         * libc/sys/tic80/Makefile.am (EXTRA_LIBRARIES): Define, to
10906         force a definition of COMPILE.
10907         (libfoo_a_SOURCES): Define.
10908         * libc/sys/tic80/Makefile.in: Rebuild.
10909
10910 Mon Jul 20 20:49:24 1998  Christopher Faylor <cgf@cygnus.com>
10911
10912         * libc/include/sys/fcntl.h: Add O_NOINHERIT, Win32-specific
10913         flag.
10914
10915 Fri Jul 17 16:13:16 1998  Ian Lance Taylor  <ian@cygnus.com>
10916
10917         * Build using autoconf and automake.  Added many Makefile.am and
10918         configure.in files, plus generated files.  Old configure.in files
10919         and all old Makefile.in files completely replaced.  Removed
10920         host/any.  Added acinclude.m4 and configure.host.
10921
10922 Sat Jul 11 18:14:49 1998  Felix Lee  <flee@cygnus.com>
10923
10924         * libc/stdio/vfprintf.c: enable long long support, sometimes.
10925         * configure.in (*-*-cygwin32): add -DWANT_PRINTF_LONG_LONG.
10926
10927 Tue Jul  7 01:51:55 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
10928
10929         * libc/machine/sh/strcmp.S, libc/machine/sh/strcpy.S: New files.
10930         * libc/machine/sh/Makefile.in: Add rules for new files.
10931
10932 Tue Jul  7 01:40:55 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
10933
10934         * libc/machine/sh/asm.h (SL, DELAYED_BRANCHES): Define.
10935         * libc/machine/sh/memset.S (memset): Remove uses of dt; shorten code.
10936         * libc/machine/sh/memcpy.S (SL, DELAYED_BRANCHES): Don't define.
10937
10938 Thu Jul  2 10:33:16 1998  Nick Clifton  <nickc@cygnus.com>
10939
10940         * libc/sys/arm/syscalls.c (_exit): Add comment, noting that exit
10941         code is ignored.
10942
10943 Wed Jun 24 13:56:54 1998  Jeff Johnston  <jjohnstn@cygnus.com>
10944
10945         * libc/stdio/tmpnam.c (_tmpnam_r): Changed routine to use
10946         internal static buffer when s is NULL, as prescribed by ANSI.
10947
10948 1998-06-22  Vladimir N. Makarov  <vmakarov@cygnus.com>
10949
10950         * libc/sys/h8300hms/Makefile.in (OFILES): malloc.o has been
10951         removed.
10952         * libc/sys/h8300hms/malloc.c: has been removed.  Now malloc.c from
10953         libc/stdlib will be used for h8300hms.
10954         
10955 Thu Jun 18 16:56:05 1998  Jeff Johnston  <jjohnstn@cygnus.com>
10956
10957         * libc/machine/mn10300/strlen.S (_strlen): New optimized assembler
10958         version that can be built either for speed or size.
10959         * libc/machine/mn10300/memset.S (_memset): ditto
10960         * libc/machine/mn10300/memchr.S (_memchr): ditto
10961         * libc/machine/mn10300/memcpy.S (_memcpy): ditto
10962         * libc/machine/mn10300/memcmp.S (_memcmp): ditto
10963         * libc/machine/mn10300/strchr.S (_strchr): ditto
10964         * libc/machine/mn10300/strcmp.S (_strcmp): ditto
10965         * libc/machine/mn10300/strcpy.S (_strcpy): ditto
10966         * libc/machine/mn10300/Makefile.in: Added entries for
10967         memchr.o, memcmp.o, memcpy.o, memset.o, strchr.o, 
10968         strcmp.o, strcpy.o, and strlen.o.
10969
10970 Wed Jun 17 12:50:26 1998  Mark Alexander  <marka@cygnus.com>
10971
10972         * configure.in: Don't use libc/sys/sysmec for MN10200; it's
10973         been replaced with libgloss/mn10200.
10974
10975 Fri Jun 12 14:34:39 1998  Michael Meissner  <meissner@cygnus.com>
10976
10977         * libc/string/strchr.c (strchr): Make s a constant pointer to
10978         avoid warning.
10979
10980 Tue Jun  9 16:29:30 1998  Jason Molenda  (crash@bugshack.cygnus.com)
10981
10982         * configure.in (target == arm* or thumb*): Define ARM_RDI_MONITOR
10983         instead of ARM_RDP_MONITOR (sys/libc/arm/crt0.S to assume Angel
10984         board SWIs instead of Demon board SWIs).
10985
10986 Thu Jun  4 12:16:46 1998  Michael Meissner  <meissner@cygnus.com>
10987
10988         * libc/string/strncat.c (strncat):  Make -Os act the same as
10989         PREFER_SIZE_OVER_SPEED being defined.
10990
10991 Wed Jun  3 17:52:33 1998  Michael Meissner  <meissner@cygnus.com>
10992
10993         * libc/string/memchr.c (memchr): Make -Os act the same as
10994         PREFER_SIZE_OVER_SPEED being defined.
10995         * libc/string/memcmp.c (memcmp): Ditto.
10996         * libc/string/memcpy.c (memcpy): Ditto.
10997         * libc/string/memset.c (memset): Ditto.
10998         * libc/string/strcat.c (strcat): Ditto.
10999         * libc/string/strchr.c (strchr): Ditto.
11000         * libc/string/strcmp.c (strcmp): Ditto.
11001         * libc/string/strcpy.c (strcpy): Ditto.
11002         * libc/string/strlen.c (strlen): Ditto.
11003         * libc/string/strncat.c (strncat): Ditto.
11004         * libc/string/strncmp.c (strncmp): Ditto.
11005         * libc/string/strncpy.c (strncpy): Ditto.
11006
11007 Mon Jun  1 15:25:07 1998  Geoffrey Noer  <noer@cygnus.com>
11008
11009         * libc/include/sys/itimer.h: remove
11010         * libc/include/sys/time.h: itimer stuff should be here
11011
11012 Mon Jun  1 16:31:29 1998  Jeff Johnston  <jjohnstn@cygnus.com>
11013
11014         * libc/stdio/vfprintf.c (cvt): Changed code to look at sign
11015         bit instead of comparing to 0 so -0.0 can be printed correctly.
11016
11017 Sat May 30 09:33:51 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
11018
11019         * libc/stdlib/mprec.c (b2d): Inilialize d in non-VAX case too.
11020
11021 Fri May 29 22:25:10 1998  Geoffrey Noer  <noer@cygnus.com>
11022
11023         * libc/include/sys/unistd.h: fix sync() proto
11024         * libc/include/sys/fcntl.h: remove _close which is already
11025         defined in unistd.h.
11026         * libc/include/sys/time.h: add getitimer proto
11027
11028 Fri May 29 16:10:28 1998  Geoffrey Noer  <noer@cygnus.com>
11029
11030         * libc/string/strchr.c: convert arg to unsigned char
11031         * libc/include/stdlib.h: add protos for random, srandom
11032         * libc/include/sys/stat.h: add lstat proto
11033         * libc/include/sys/time.h: add setitimer proto
11034         * libc/include/sys/unistd.h: add readlink, symlink protos
11035         * libc/include/process.h: instead of including windows.h and using
11036         HANDLEs in sexec protos, just use void *s.  Need to include
11037         sys/types.h.
11038
11039 Fri May 29 03:04:29 1998  Geoffrey Noer  <noer@cygnus.com>
11040
11041         * libc/include/sys/fcntl.h: add _close proto for Cygwin32
11042
11043 Thu May 28 16:34:21 1998  Geoffrey Noer  <noer@cygnus.com>
11044
11045         * libc/include/process.h: add secure exec protos
11046
11047 Wed May 27 13:54:51 1998  Jeffrey A Law  (law@cygnus.com)
11048
11049         * libc/stdlib/dtoa.c (_dtoa_r): Use "double_union" for variables
11050         which are accessed as both doubles and integers.
11051         * libc/stdlib/mprec.c (ulp, b2d, ratio): Likewise.
11052         * libc/stdlib/strtod.c (_strtod_r): Likewise.
11053         * libc/stdlib/mprec.h: Add "union double_union" and change
11054         word0/word1 macros to use it.
11055
11056 Tue May 26 18:04:21 1998  Geoffrey Noer  <noer@cygnus.com>
11057
11058         * libc/include/sys/signal.h: add __cplusplus wrapper
11059
11060 Tue May 26 15:10:22 1998  Geoffrey Noer  <noer@cygnus.com>
11061
11062         * libc/include/sys/utime.h: new generic file that gets replaced by
11063         libc/sys/SYSDIR/sys/utime.h on systems that support the utime
11064         function.
11065         * sys/cygwin32/sys/utime.h: use _EXFUN in utime proto
11066         * libc/include/time.h: remove duplicate utime proto
11067         * libc/include/utime.h: add comment
11068
11069 Sun May 24 23:56:20 1998  Christopher Faylor <cgf@cygnus.com>
11070
11071         * libc/include/sys/time.h: Add missing include to
11072         allow use of _EXFUN.  Remove times function that is
11073         already defined in times.h.
11074
11075 Sun May 24 01:32:14 1998  Christopher Faylor <cgf@cygnus.com>
11076
11077         * libc/include/time.h: Fix typo in tzset.
11078
11079 Fri May 22 17:00:48 1998  Geoffrey Noer  <noer@cygnus.com>
11080
11081         * libc/include/sys/time.h: add missing Cygwin32 function protos
11082         * libc/include/sys/unistd.h: ditto
11083         * libc/include/time.h: ditto
11084
11085 Wed May 20 20:35:11 1998  Geoffrey Noer  <noer@cygnus.com>
11086
11087         * libc/sys/cygwin32/sys/param.h: add protected NULL def, remove
11088         FIXME.
11089         * libc/include/sys/types.h: add a new __MS_types__ section
11090         to define vm_offset_t, vm_size_t, int32_t et al, register_t,
11091         __BIT_TYPES_DEFINED__.
11092
11093 Wed May 20 18:49:21 1998  Geoffrey Noer  <noer@cygnus.com>
11094
11095         * libc/sys/cygwin32/sys/param.h: move here from winsup/include/sys
11096         since it overrides the one in libc/include/sys.  Also, start
11097         including types.h.
11098
11099 Wed May 20 14:45:40 1998  Geoffrey Noer  <noer@cygnus.com>
11100
11101         * libm/math/Makefile.in: add s_signgam.o to obj list
11102
11103 Tue May 19 11:57:11 1998  Jeff Johnston  <jjohnstn@cygnus.com>
11104
11105         * libc/include/sys/reent.h (_REENT_INIT): Initialize current locale to "C".
11106
11107 Mon May 18 22:36:12 1998  Christopher Faylor <cgf@cygnus.com>
11108
11109         * libc/include/sys/signal.h: cygwin32 exports sig{empty,add}set,
11110         so don't use defines.
11111
11112 Mon May 18 19:01:02 1998  Michael Meissner  <meissner@cygnus.com>
11113
11114         * libc/sys/d10v/crt0.S: Use correct stab for 16-bit ints.
11115
11116 Sun May 17 18:40:32 1998  Frank Ch. Eigler  <fche@cygnus.com>
11117
11118         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Accept a NULL
11119         _current_locale as default locale.
11120
11121 Sat May 16 21:59:59 1998  Bob Manson  <manson@charmed.cygnus.com>
11122
11123         * libc/stdlib/mallocr.c (mALLOc): Add explicit tests for
11124         insufficient space in a chunk.
11125
11126 Tue May 12 14:41:01 1998  Jeff Johnston  <jjohnstn@cygnus.com>
11127
11128         * configure.in (links): Added check for --enable-newlib-mb configure
11129         option which defines the MB_CAPABLE macro.
11130         * libc/locale/locale.c (_setlocale_r): Added support for setting
11131         LC_CTYPE to "C-JIS", "C-SJIS" or "C-EUCJP", when MB_CAPABLE is
11132         defined.
11133         * libc/stdlib/mbtowc_r.c (_mbtowc_r): New function _mbtowc_r that
11134         implements mbtowc() with multibyte support for JIS, SJIS, and EUC-JP.
11135         * libc/stdlib/wctomb_r.c (_wctomb_r): New function _wctomb_r that
11136         implements wctomb() with multibyte support for JIS, SJIS, and EUC-JP.
11137         * libc/stdlib/mbstowcs_r.c (_mbstowcs_r): New function _mbstowcs_r that
11138         implements mbstowcs() with multibyte support for JIS, SJIS, and EUC-JP.
11139         * libc/stdlib/wcstombs_r.c (_wcstombs_r): New function _wcstomb_r that implements
11140         wcstombs() with multibyte support for JIS, SJIS, and EUC-JP.
11141         * libc/stdlib/Makefile.in: Added new multibyte
11142         routines: _mbtowc_r(), _wctomb_r(), _mbstowcs_r(), and _wcstombs_r().
11143         * libc/include/stdlib.h: Added declarations of _mbtowc_r(), _wctomb_r(),
11144         _mbstowcs_r(), and _wcstombs_r().
11145         * libc/stdlib/mbctype.h: New internal header file that contains macros to test
11146         for JIS, SJIS, and EUC-JP characters.
11147         * libc/stdlib/mblen.c (mblen): Added code to call _mbtowc_r() if
11148         MB_CAPABLE defined.
11149         * libc/stdlib/mbtowc.c (mbtowc): Added code to call _mbtowc_r() if
11150         MB_CAPABLE defined.
11151         * libc/stdlib/wctomb.c (wctomb): Added code to call _wctomb_r() if
11152         MB_CAPABLE defined.
11153         * libc/stdlib/mbstowcs.c (mbstowcs): Added code to call _mbstowcs_r()
11154         if MB_CAPABLE defined.
11155         * libc/stdlib/wcstombs.c (wcstombs): Added code to call _wcstombs_r()
11156         if MB_CAPABLE defined.
11157         * libc/stdio/vfscanf.c (__svfscanf): Added multibyte tolerance
11158         to the format string processing when MB_CAPABLE.
11159         * libc/stdio/vfprintf.c (_VFPRINTF_R): Changed mbtowc() call to
11160         call _mbtowc_r().
11161
11162 Tue May  5 16:07:23 1998  Nick Clifton  <nickc@cygnus.com>
11163
11164         The following modifications are courtesy of Anthony Thompson,
11165         athompson@cambridge.arm.com:
11166         * libc/sys/arm/syscalls.c: Initialise and track stdin/out/err for
11167         boith RDI and RDP monitors.
11168         * libc/sys/arm/crt0.S: Call initialise_monitor_handles() for both
11169         RDI and RDP monitors.
11170
11171 Wed Apr 29 15:22:15 1998  Jeff Johnston  <jjohnstn@cygnus.com>
11172
11173         * configure.in (links): Added -DHAVE_GETTIMEOFDAY for arm and thumb.
11174         * libc/sys/arm/syscalls.c (_gettimeofday _times): Added functions.
11175         (_swiopen): Fixed open flags to treat write with append as just append.
11176         (_swilseek): Fixed lseek support to properly handle offsets from SEEK_END.
11177         * libc/sys/arm/sys/param.h: New file to override param.h for ARM.
11178
11179 Fri Apr 24 18:00:09 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
11180
11181         * libc/machine/sh/memcpy.S (L_odddst, big endian version):
11182         When needing to transfer an initial 2-byte-word, store as
11183         two single bytes.
11184
11185 Wed Apr 22 17:56:03 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
11186
11187         * libc/sys/sh/crt0.S (start): Handle __SH4_SINGLE_ONLY__ like
11188         __SH3E__ .
11189         * libc/machine/sh/memcpy.S (DELAYED_BRANCHES, SL): Likewise.
11190         * libc/include/machine/ieeefp.h (_DOUBLE_IS_32BITS): Likewise.
11191
11192 Wed Apr 22 12:28:03 1998  Michael Meissner  <meissner@cygnus.com>
11193
11194         * configure.in (target_cflags): If --enable-target-optspace, use
11195         -Os to compile newlib rather than -O2.  Default to using -Os for
11196         d10v, d30v and m32r if --{enable,disable}-target-optspace is not
11197         used.
11198
11199 Tue Apr 21 23:13:34 1998  Geoffrey Noer  <noer@cygnus.com>
11200
11201         * libc/include/machine/setjmp.h: change sigsetjmp and
11202         siglongjmp definitions to use an array instead of a struct
11203         for __CYGWIN32__
11204
11205 Tue Apr 14 11:47:47 1998  Doug Evans  <devans@canuck.cygnus.com>
11206
11207         * libc/reent/impure.c (__ATTRIBUTE_IMPURE_DATA__): Fix spelling.
11208
11209 Mon Apr  6 15:05:08 1998  Jonathan Larmour  <jlarmour@cygnus.co.uk>
11210
11211         * libc/string/strxfrm.c: fix to get correct return value
11212
11213 Wed Apr  1 16:09:05 1998  Nick Clifton  <nickc@cygnus.com>
11214
11215         * libc/sys/arm/crt0.S: Set top of RAM to be 0x800000 for PE
11216         builds.  Make mode change labels global so that they will be seen
11217         by the debugger.
11218
11219 Wed Mar 18 09:45:10 1998  Nick Clifton  <nickc@cygnus.com>
11220
11221         * configure.in (links): Do not use ARM debiugging protocols for PE
11222         builds.
11223
11224         * libc/sys/arm/syscalls.c (_sbrk): Add "_sbrk: " to error
11225         message. 
11226
11227 Fri Mar 13 11:24:34 1998  Jeff Johnston  <jjohnstn@cygnus.com>
11228
11229         * libc/stdio/findfp.c (__sinit): Made stdout default to
11230         line buffered mode as defined by ANSI.
11231
11232 Tue Mar 10 11:41:26 1997  Bob Manson  <manson@charmed.cygnus.com>
11233
11234         * libc/include/sys/itimer.h: New file.
11235
11236         * libc/signal/signal.c (__sigtramp_r,__sigtramp): New functions.
11237
11238 Mon Mar  9 14:19:26 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
11239
11240         * libc/machine/sh/memcpy.S: (_memcpy): Fix for execute/memcpy-1.c
11241         failure.
11242
11243 Fri Feb 27 13:56:10 1998  Michael Meissner  <meissner@cygnus.com>
11244
11245         * libc/machine/d30v/setjmp.S (longjmp): Fix order of parallel
11246         insns.
11247
11248 Wed Feb 25 09:29:54 1998  Nick Clifton  <nickc@cygnus.com>
11249
11250         * libc/sys/arm/syscalls.c (_open): Add varags to conform to prototype.
11251
11252 Tue Feb 24 18:00:13 1998  Michael Meissner  <meissner@cygnus.com>
11253
11254         * libc/machine/d30v/{setjmp.S,Makefile.in}: New files for D30V
11255         support.
11256
11257         * libc/include/machine/setjmp.h: Add D30V support.
11258
11259         * configure.in (d30v-*): Add d30v machine directory.
11260
11261 Mon Feb 23 09:32:58 1998  Mark Alexander  <marka@cygnus.com>
11262
11263         * configure.in: Don't use libc/sys/sysmec for MN10300; it's
11264         been replaced with libgloss/mn10300.
11265
11266 Sat Feb 21 17:44:43 1998  Geoffrey Noer  <noer@cygnus.com>
11267
11268         * libc/stdlib/mallocr.c: remove __malloc_copy routine now that
11269         it is no longer needed.
11270
11271 Thu Feb 19 16:15:10 1998  Geoffrey Noer  <noer@cygnus.com>
11272
11273         * libc/include/sys/signal.h: add sigpause proto for Cygwin32
11274
11275 Wed Feb 18 23:51:08 1998  Geoffrey Noer  <noer@cygnus.com>
11276
11277         * libc/stdio/fdopen.c (fdopen): Make all writes go to the end of
11278         the file when O_APPEND is set, wherever the EOF happens to be at
11279         that time. 
11280
11281 Wed Feb 18 23:25:02 1998  Geoffrey Noer  <noer@cygnus.com>
11282         
11283         patch from cgf@bbc.com (Christopher Faylor):
11284         * libc/stdio/freopen.c (freopen): Conform to standard UNIX
11285         convention of closing fp prior to attempting to open the file
11286         argument.  This allows correct operation when reopening
11287         stdin/stdout/stderr.  Replaces last freopen.c patch.
11288
11289 Wed Feb 18 16:27:40 1998  Geoffrey Noer  <noer@cygnus.com>
11290
11291         patch from cgf@bbc.com (Christopher Faylor):
11292         * libc/stdio/freopen.c: freopen was not preserving the fd
11293         of the stream being operated on.  This confuses programs that
11294         expect that the handles for stdout and stderr will be 1 and 2.
11295
11296 Mon Feb 16 23:34:07 1998  Andrew Cagney  <cagney@b1.cygnus.com>
11297
11298         * libc/sys/d10v/crt0.S (_start): Set PSW{SW} - select SPU.
11299
11300 Thu Feb 12 15:09:20 1998  Ranjith Kumaran <ranjith@cygnus.com>
11301
11302         * libc/sys/go32/longjmp.S: Fix longjmp to not return 0.
11303
11304 Wed Feb 11 17:50:45 1998  Jeff Johnston  <jjohnstn@cygnus.com>
11305
11306         * libc/machine/powerpc/setjmp.S (setjmp, longjmp): Alignment code
11307         altered to not use a branch.  Also added hint that last
11308         bclr in longjmp will likely result in branch.
11309         
11310
11311 Mon Feb  9 03:44:02 1998  Geoffrey Noer  <noer@cygnus.com>
11312
11313         * libc/sys/cygwin32/crt0.c: add missing args to main() extern
11314
11315 Fri Feb  6 16:32:32 1998  Nick Clifton  <nickc@cygnus.com>
11316
11317         * libc/sys/sysnecv850/crt0.S (_start): Initialise _ctbp even for
11318         v850 builds.
11319
11320         * configure.in: Add -msmall-sld to target_cflags for v850 builds. 
11321
11322 Wed Feb  4 16:56:20 1998  Jeff Johnston  <jjohnstn@cygnus.com>
11323
11324         * libc/machine/powerpc/setjmp.S (longjmp): Fixed code
11325         that loads FR14 to specify offset of 8 rather than 4
11326         so it loads from offset 96 (where setjmp stored it).
11327
11328 Tue Feb  3 18:08:34 1998  Jeff Johnston  <jjohnstn@cygnus.com>
11329
11330         * libc/machine/sh/memcpy.S: (_memcpy): Update to
11331         latest version supplied by customer.
11332         * libc/machine/sh/memset.S (_memset): Ditto.
11333
11334 Mon Feb  2 16:20:39 1998  Nick Clifton  <nickc@cygnus.com>
11335
11336         * libc/sys/sysnecv850/Makefile.in (OFILES): Add link.o (for
11337         PR14730). 
11338
11339 Mon Feb  2 15:13:26 1998  Geoffrey Noer  <noer@cygnus.com>
11340
11341         * libc/include/string.h: remove redefinition of ffs
11342
11343 Wed Jan 28 13:30:14 1998  Geoffrey Noer  <noer@cygnus.com>
11344
11345         * libc/include/sys/signal.h: include _ansi.h so _EXFUN is
11346         defined
11347
11348 Wed Jan 28 10:38:34 1998  Jeff Johnston  <jjohnstn@cygnus.com>
11349
11350         * libc/machine/tic80/setjmp.S: Adding _setjmp to allow
11351         TI Libraries to link to libc.a
11352         
11353 Sat Jan 24 10:15:56 1998  Michael Meissner  <meissner@cygnus.com>
11354
11355         * libc/include/sys/fcntl.h (_open,_fcntl): Add prototypes.
11356         * libc/include/sys/stat.h (_{,f}stat): Ditto.
11357         * libc/include/sys/wait.h (_wait): Ditto.
11358         * libc/include/sys/unistd.h (_close,_fork,_getpid): Ditto.
11359         (_link,_lseek,_read,_sbrk,_unlink,_write): Ditto.
11360
11361 Fri Jan 23 11:32:10 1998  Michael Meissner  <meissner@cygnus.com>
11362
11363         * libc/machine/d10v/setjmp.S: Change to new ABI.  Add simple
11364         minded stabs so function name shows up when running the simulator
11365         with -t.
11366         * libc/sys/d10v/{crt0,trap}.S: Ditto.
11367
11368 Thu Jan 22 15:57:14 1998  Fred Fish  <fnf@cygnus.com>
11369
11370         * libc/sys/d10v/trap.S: Change syscalls to use trap 15. 
11371         * libc/sys/d10v/crt0.S: Use R6 where we used to use R2.
11372         Use R5 where we used to use R3.
11373         
11374 Wed Jan 21 14:22:23 1998  Bill Moyer <billm@cygnus.com>
11375
11376         * libc/stdlib/getopt.c (getopt): replaced __progname
11377         with nargv[0] to improve portability to imbedded systems.
11378
11379 Thu Jan 15 12:32:38 1998  Nick Clifton  <nickc@cygnus.com>
11380
11381         * libc/sys/arm/syscalls.c (initialise_angel_handles): Applied
11382         patch supplied by Tont.Thompson@arm.com to fix the creation of the
11383         stdout file.
11384
11385 Wed Jan 14 13:00:19 1998  Ian Lance Taylor  <ian@cygnus.com>
11386
11387         * libc/stdio/tmpnam.c (worker): Generate a different file name
11388         each time.
11389
11390         * libc/posix/popen.c (popen): If __CYGWIN32__, and execing /bin/sh
11391         fails, try an execlp for sh.
11392
11393         * host/any (INCLUDES): If target_os is cygwin32, then add a -I
11394         option for the winsup include directory.
11395
11396 Wed Jan  7 17:02:58 1998  Nick Clifton  <nickc@cygnus.com>
11397
11398         * libc/sys/arm/syscalls.c: Applied patches for Angel based remote
11399         debugging interface from Tony.Thompson@arm.com.
11400         
11401         * libc/sys/arm/crt0.S (_mainCRTStartup): ditto.
11402         * libc/sys/arm/swi.h: ditto.
11403
11404 Tue Jan  6 14:15:10 1998  Geoffrey Noer  <noer@cygnus.com>
11405
11406         * libc/sys/cygwin32/sys/dirent.h: add __d_dirhash field to
11407         DIR struct used for readdir hashes.
11408
11409 Thu Jan  1 11:22:22 1998  Jeffrey A Law  (law@cygnus.com)
11410
11411         * libc/string/strchr.c: Use "unsigned chars" as necessary.
11412
11413 Wed Dec 31 04:25:30 1997  Jeffrey A Law  (law@cygnus.com)
11414
11415         * libc/stdlib/mallocr.c (idx2binblock): Don't lose on 16bit
11416         integer targets.
11417
11418 Sat Dec 13 15:11:06 1997  Ian Lance Taylor  <ian@cygnus.com>
11419
11420         * libc/stdlib/mallocr.c (__malloc_copy): New function, compiled if
11421         INTERNAL_NEWLIB and __CYGWIN32__ and DEFINE_MALLOC.
11422         * libc/include/malloc.h: Add extern "C" if __cplusplus.
11423         (__malloc_copy): Declare.
11424
11425 Wed Dec 10 12:15:54 1997  Ian Lance Taylor  <ian@cygnus.com>
11426
11427         * libc/stdlib/mallocr.c: If INTERNAL_NEWLIB, include
11428         <sys/config.h>.
11429         (POINTER_UINT): Define.
11430         (DEFAULT_TRIM_THRESHOLD): Mark constants as long.
11431         (MALLOC_ALIGNMENT): Don't define if already defined.
11432         (malloc_extend_top): Cast pointers to POINTER_UINT, not unsigned
11433         long.
11434
11435 Tue Dec  9 19:23:42 1997  Michael Meissner  <meissner@cygnus.com>
11436
11437         * libc/string/memset.c (memset): Fiddle with code so that the long
11438         value being stored is not a stack value.  Unroll storing longs 4
11439         times.
11440
11441 Tue Dec  9 14:13:18 1997  Jeff Johnston  <jjohnstn@cygnus.com>
11442
11443         * Reduce code size for libm modules.
11444         * libm/math/w_sqrt.c (sqrt): Remove call to kernel_standard
11445         and simply move code into sqrt.
11446         * libm/math/wrf_lgamma.c (lgammaf_r): Likewise.
11447         * libm/math/wr_lgamma.c (lgamma_r): Likewise.
11448         * libm/math/wrf_gamma.c (gammaf_r): Likewise.
11449         * libm/math/wr_gamma.c (gamma_r): Likewise.
11450         * libm/math/wf_sinh.c (sinfh): Likewise.
11451         * libm/math/w_sinh.c (sinh): Likewise.
11452         * libm/math/wf_scalb.c (scalbf): Likewise.
11453         * libm/math/w_scalb.c (scalb): Likewise.
11454         * libm/math/wf_remainder.c (remainderf): Likewise.
11455         * libm/math/w_remainder.c (remainder): Likewise.
11456         * libm/math/wf_pow.c (powf): Likewise.
11457         * libm/math/w_pow.c (pow): Likewise.
11458         * libm/math/wf_log10.c (log10f): Likewise.
11459         * libm/math/w_log10.c (log10): Likewise.
11460         * libm/math/wf_log.c (logf): Likewise.
11461         * libm/math/w_log.c (log): Likewise.
11462         * libm/math/w_lgamma.c (lgamma): Likewise.
11463         * libm/math/wf_lgamma.c (lgammaf): Likewise.
11464         * libm/math/wf_jn.c (jnf): Likewise.
11465         * libm/math/w_jn.c (jn): Likewise.
11466         * libm/math/wf_j1.c (j1f): Likewise.
11467         * libm/math/w_j1.c (j1): Likewise.
11468         * libm/math/wf_j0.c (j0f): Likewise.
11469         * libm/math/w_j0.c (j0): Likewise.
11470         * libm/math/wf_hypot.c (hypotf): Likewise.
11471         * libm/math/w_hypot.c (hypot): Likewise.
11472         * libm/math/wf_gamma.c (gammaf): Likewise.
11473         * libm/math/w_gamma.c (gamma): Likewise.
11474         * libm/math/wf_fmod.c (fmodf): Likewise.
11475         * libm/math/w_fmod.c (fmod): Likewise.
11476         * libm/math/wf_exp.c (expf): Likewise.
11477         * libm/math/w_exp.c (exp): Likewise.
11478         * libm/math/wf_cosh.c (coshf): Likewise.
11479         * libm/math/w_cosh.c (cosh): Likewise.
11480         * libm/math/wf_atanh.c (atanhf): Likewise.
11481         * libm/math/w_atanh.c (atanh): Likewise.
11482         * libm/math/wf_atan2.c (atan2f): Likewise.
11483         * libm/math/w_atan2.c (atan2): Likewise.
11484         * libm/math/wf_asin.c (asinf): Likewise.
11485         * libm/math/w_asin.c (asin): Likewise.
11486         * libm/math/wf_acosh.c (acoshf): Likewise.
11487         * libm/math/w_acosh.c (acosh): Likewise.
11488         * libm/math/wf_acos.c (asocf): Likewise.
11489         * libm/math/w_acos.c (acos): Likewise.
11490         * libm/math/wf_sqrt.c (sqrtf): Likewise.
11491         * libm/math/k_standard.c (_k_standard): Don't require SVID behavior
11492         for embedded systems.
11493
11494 Mon Dec  8 12:12:58 1997  Ian Lance Taylor  <ian@cygnus.com>
11495
11496         * libc/stdlib/mallocr.c (malloc_extend_top): Add patch from Doug
11497         Lea in case of a foreign sbrk.
11498
11499 Fri Dec  5 23:27:28 1997  Ian Lance Taylor  <ian@cygnus.com>
11500
11501         Incorporate Doug Lea's malloc:
11502         * libc/stdlib/mallocr.c: Completely replaced.
11503         * libc/stdlib/malloc.c: Document malloc_usable_size and memalign.
11504         (realloc): Remove.
11505         * libc/stdlib/calloc.c (calloc): Just call _calloc_r.
11506         * libc/stdlib/mstats.c: Document mallinfo, malloc_stats, and
11507         mallopt.
11508         (mallinfo, malloc_stats, mallopt): New functions.
11509         (_mstats_r): Just call _malloc_stats_r.
11510         * libc/stdlib/malign.c: New file.
11511         * libc/stdlib/mlock.c: New file.
11512         * libc/stdlib/msize.c: New file.
11513         * libc/stdlib/mtrim.c: New file.
11514         * libc/stdlib/realloc.c: New file.
11515         * libc/stdlib/valloc.c: New file.
11516         * libc/stdlib/malloc.h: Remove.
11517         * libc/stdlib/callocr.c: Remove.
11518         * libc/stdlib/Makefile.in (OFILES): Add cfreer.o, freer.o,
11519         malign.o, malignr.o, mallinfor.o, malloptr.o, mallstatsr.o,
11520         mlock.o, msize.o, msizer.o, mtrim.o, pvallocr.o, realloc.o,
11521         reallocr.o, valloc.o, vallocr.o.
11522         (CHEWOUT_FILES): Add mlock.def, mstats.def.
11523         (MALLOC_CFLAGS): New variable.
11524         (mallocr.o): New target, build from mallocr.c.
11525         (freer.o, reallocr.o, callocr.o, cfreer.o, malignr.o): Likewise.
11526         (vallocr.o, pvallocr.o, mallinfor.o, mallstatsr.o): Likewise.
11527         (msizer.o, malloptr.o): Likewise.
11528         (malign.o, mlock.o, msize.o, mtrim.o, realloc.o): New targets.
11529         (valloc.o): New target.
11530         * libc/stdlib/stdlib.tex: Include mlock.def and mstats.def.
11531         * libc/include/malloc.h: Declare struct mallinfo, and new
11532         routines.
11533         * libc/include/stdlib.h (cfree): Correct declaration.
11534
11535 Tue Dec  2 10:12:16 1997  Nick Clifton  <nickc@cygnus.com>
11536
11537         * libc/include/machine/setjmp.h: Add support for Thumb target.
11538
11539         * libc/include/machine/ieeefp.h: Add support for Thumb target.
11540
11541         * configure.in (links): Add support for Thumb target.
11542
11543 Wed Nov 26 09:56:17 1997  Nick Clifton  <nickc@cygnus.com>
11544
11545         * libc/sys/arm/setjmp.S: Updated with version from branch.
11546
11547 Thu Nov 20 01:21:43 1997  Geoffrey Noer  <noer@cygnus.com>
11548
11549         * libc/include/stdio.h: add POSIX-required define L_ctermid
11550         for ctermid
11551
11552 Wed Nov 19 16:11:40 1997  Michael Meissner  <meissner@cygnus.com>
11553
11554         * configure.in (d30v-*-*): Define ABORT_MESSAGE, SMALL_MEMORY, in
11555         addition to MISSING_SYSCALL_NAMES.
11556
11557 Mon Nov 17 20:05:05 1997  J"orn Rennecke <amylaar@cygnus.co.uk>
11558
11559         * libc/include/sys/config.h: (UINT_MAX, for D10V):  Make unsigned.
11560
11561 Mon Nov 10 22:26:55 1997  Geoffrey Noer  <noer@cygnus.com>
11562
11563         * libc/include/string.h: change strsignal proto to return
11564         a char *.  This eliminates compile problems in gdb resulting
11565         from gdb's definition of strsignal in defs.h.
11566
11567 Mon Nov 10 17:11:08 1997  Geoffrey Noer  <noer@cygnus.com>
11568
11569         * libc/sys/cygwin32/sys/utime.h: new (moved here from
11570         winsup/include) so as not to conflict with the one in
11571         libc/include.
11572         * libc/include/string.h: add protos for strsignal, strtosigno
11573
11574 Mon Nov 10 13:49:54 1997  Michael Meissner  <meissner@cygnus.com>
11575
11576         * libc/include/sys/config.h: Define __IEEE_BIG_ENDIAN if d30v.
11577
11578         * configure.in (d30v-*-*): Add configuration.
11579
11580 Thu Oct 30 14:01:23 1997  Nick Clifton  <nickc@cygnus.com>
11581
11582         * configure.in (links): Add -DARM_RD[P|I]_MONITOR to target_cflags
11583         to select which kind of debug monitor is in use for an ARM target.
11584
11585         * libc/sys/arm/crt0.S: New version: Supports Thumb startups and
11586         Angel and Demon debug monitors.  Part of this code was supplied by
11587         Tony Thompson at ARM: athompso@arm.com.
11588
11589 Fri Oct 24 18:57:05 1997  Jeffrey A Law  (law@cygnus.com)
11590
11591         * strncat.c (strncat): Don't call strncpy; strncay has the wrong
11592         semantics when the count is greater than the length of the second
11593         source string.
11594
11595 Thu Oct 23 01:37:41 1997  Geoffrey Noer  <noer@cygnus.com>
11596
11597         * libc/include/sys/signal.h: reorder CYGWIN32 signal numbers
11598         * libc/include/sys/unistd.h: add protos for usleep, truncate,
11599         truncate and ftruncate take off_t, not size_t
11600
11601 Tue Oct 21 18:42:00 1997  Jim Wilson  <wilson@cygnus.com>
11602
11603         * libc/string/strcat.c (strcat): Add missing comment end.
11604         * libc/string/strncat.c (strncat): Likewise.
11605
11606 Tue Oct 21 17:23:34 1997  Nick Clifton  <nickc@cygnus.com>
11607
11608         * configure.in (links): Define PREFER_SIZE_OVER_SPEED for v850
11609         targets. 
11610         * libc/string/{memchr.c, memcmp.c, memcpy.c}:   Add space
11611         optimised version which is selected if PREFER_SIZE_OVER_SPEED is
11612         defined.  
11613         * libc/string/{memset.c, strcat.c, strchr.c}: Likewise.
11614         * libc/string/{strcmp.c, strcpy.c, strlen.c}: Likewise.
11615         * libc/string/{strncat.c, strncmp.c, strncpy.c}: Likewise.
11616
11617 Mon Oct 13 15:12:35 1997  Ian Lance Taylor  <ian@cygnus.com>
11618
11619         * libc/include/sys/param.h (BIG_ENDIAN): Define if __i386__.
11620         (LITTLE_ENDIAN, BYTE_ORDER): Likewise.
11621
11622 Thu Oct  9 13:54:44 1997  Doug Evans  <dje@canuck.cygnus.com>
11623
11624         * libc/machine/i386/setjmp.S: New file.
11625         * libc/machine/i386/Makefile.in: Delete COPYOFILES.
11626         (OFILES): Add setjmp.o.
11627         (setjmp.o): Add rule for.
11628         * configure.in: Don't set machine_dir for *-*-{go32,sco*,cygwin32}.
11629
11630 Tue Oct  7 14:01:29 1997 Bill Moyer     (billm@cygnus.com)
11631                          Jeffrey A Law  (law@cygnus.com)
11632
11633         * libc/string/{memchr.c, memcmp.c, memcpy.c}: Reimplement to run faster.
11634         * libc/string/{memset.c, strcat.c, strchr.c}: Likewise.
11635         * libc/string/{strcmp.c, strcpy.c, strlen.c}: Likewise.
11636         * libc/string/{strncat.c, strncmp.c, strncpy.c}: Likewise.
11637
11638 Mon Oct  6 14:07:59 1997  Nick Clifton  <nickc@cygnus.com>
11639
11640         * libc/sys/sysnecv850/Makefile.in (crt0.o trap.o): Explicit
11641         rules. 
11642
11643         * libc/include/sys/config.h: Use __v850 to select v850
11644         endianness. 
11645
11646         * libc/include/machine/setjmp.h: Use __v850 to select v850 jump
11647         buffer size.
11648
11649         * libc/include/machine/ieeefp.h: Use __v850 to select v850
11650         endianness. 
11651
11652 Thu Sep 25 14:11:37 1997  Geoffrey Noer  <noer@cygnus.com>
11653
11654         * libc/stdlib/setenv.c: change unsetenv definition to match
11655         style of setenv (with _DEFUN).  The string should be a const.
11656         * libc/include/stdlib.h: unsetenv proto should return void.
11657
11658 Tue Sep 23 18:17:20 1997  Geoffrey Noer  <noer@cygnus.com>
11659
11660         * libc/include/stdlib.h: define unsetenv proto for __CYGWIN32__
11661
11662 Thu Sep 18 12:50:15 1997  Angela Marie Thomas (angela@cygnus.com)
11663
11664         * libc/stdio/glue.h: remove.
11665         * libc/stdio/findfp.c, libc/stdio/fwalk.c: remove #include "glue.h"
11666         * libc/stdio/Makefile.in: remove glue.h dependencies
11667
11668 Wed Sep 17 17:42:27 1997  Nick Clifton  <nickc@cygnus.com>
11669
11670         * libc/sys/sysnecv850/crt0.S: Created V850e version.
11671         
11672 Tue Sep  9 10:40:57 1997  Doug Evans  <dje@canuck.cygnus.com>
11673
11674         * configure.in (target_cpu): Add `arc'.
11675
11676 Tue Sep  9 10:40:42 1997  Joel Sherrill  <joel@OARcorp.com>
11677
11678         * newlib/configure.in (*-*-rtems*): Add -DSIGNAL_PROVIDED and 
11679           -DREENTRANT_SYSCALLS_PROVIDED to the target_cflags.
11680         * newlib/libc/include/sys/errno.h: Add ENOTSUP.
11681         * newlib/libc/reent/reent.c: Add _wrapup_reent.
11682         * newlib/libc/sys/rtems/sys/types.h: Avoid redefinitions for go32.
11683
11684 Sun Sep  7 16:41:41 1997  Gavin Koch  <gavin@cygnus.com>
11685
11686         * libc/machine/mips/setjmp.S: Handle mips16 builds.
11687
11688 Thu Aug 21 20:05:38 1997  Ian Lance Taylor  <ian@cygnus.com>
11689
11690         * libc/include/stdio.h (siprintf): Declare.
11691
11692 Mon Aug 18 11:19:13 1997  Nick Clifton  <nickc@cygnus.com>
11693
11694         * libc/sys/sysnecv850/Makefile.in (.c.o): Add rule that includes
11695         TARGET_CFLAGS and NEWLIB_FLAGS.
11696
11697 Mon Aug 18 11:15:43 1997  Nick Clifton  <nickc@cygnus.com>
11698
11699         * configure.in (links): Add support for v850ea target.
11700
11701 Mon Aug 18 11:15:43 1997  Nick Clifton  <nickc@cygnus.com>
11702
11703         * configure.in (links): Add support for v850e target.
11704
11705 Wed Aug 13 19:16:54 1997  Nick Clifton  <nickc@cygnus.com>
11706
11707         * libc/sys/sysnecv850/crt0.S: Remove initial setting of r0 to 0.
11708
11709 Mon Aug 11 15:49:54 1997  Doug Evans  <dje@canuck.cygnus.com>
11710
11711         * configure.in (arc-*-*): Add support for.
11712         * libc/include/machine/ieeefp.h (__arc__): Add support for the ARC.
11713
11714 Fri Jul 25 17:37:41 1997  J"orn Rennecke <amylaar@cygnus.co.uk>
11715
11716         * libc/sys/sh/crt0.S (start): Add fpscr initialization for SH4.
11717
11718 Thu Jul 24 18:32:17 1997  Geoffrey Noer  <noer@cygnus.com>
11719
11720         * libc/stdlib/bsearch.c (bsearch): remove last unneeded
11721         comparison which accesses invalid memory when the key is
11722         larger than the last member of the array.
11723         * libc/include/machine/setjmp.h: add sigsetjmp, siglongjmp
11724         for CYGWIN32
11725         * libc/include/sys/unistd.h: add _POSIX defines for CYGWIN32
11726
11727 Tue Jul 22 16:03:06 1997  Ian Lance Taylor  <ian@cygnus.com>
11728
11729         * libc/include/stdlib.h (realpath): Declare if __CYGWIN32__ and
11730         not _STRICT_ANSI.
11731
11732 Thu Jul 10 15:11:52 1997  Doug Evans  <dje@canuck.cygnus.com>
11733
11734         * libm/math/k_standard.c (__kernel_standard): Call fflush(stdout)
11735         ifndef _USE_WRITE, instead of ifdef _USE_WRITE.
11736
11737 Thu Jul 10 16:00:09 1997  Mike Meissner  <meissner@cygnus.com>
11738
11739         * libc/machine/tic80/setjmp.S (setjmp,longjmp): Use ld.d and st.d
11740         to load/store memory.
11741
11742 Mon Jul  7 17:38:17 1997  Ian Lance Taylor  <ian@cygnus.com>
11743
11744         * libc/include/sys/fcntl.h: Define _O_* symbols with leading
11745         underscores if _WIN32.
11746
11747 Wed Jul  2 10:07:20 1997  Doug Evans  <dje@canuck.cygnus.com>
11748
11749         * libm/math/k_standard.c (__kernel_standard): Delete reentrancy
11750         support ifdef _USE_WRITE missed in last change.
11751         From Anders Blomdell <anders.blomdell@control.lth.se>.
11752
11753 Wed Jun 25 10:18:49 1997  Doug Evans  <dje@canuck.cygnus.com>
11754
11755         * libc/stdio/tmpnam.c (worker): Handle _open_r being stubbed out.
11756         (_tmpnam_r, _tempnam_r): Update.
11757
11758 Wed Jun 25 00:16:55 1997  Mark Alexander  <marka@cygnus.com>
11759
11760         * libc/machine/sparc/setjmp.S: New file.
11761         * libc/machine/sparc/Makefile.in: Add setjmp.
11762         * libc/include/machine/setjmp.h: Increase jmpbuf size for sparc.
11763
11764 Tue Jun 24 23:27:38 1997  Mark Alexander  <marka@cygnus.com>
11765
11766         * libc/include/machine/setjmp.h: Use __TIC80__ instead of __tic80__.
11767
11768 Tue Jun 24 14:53:40 1997  Doug Evans  <dje@canuck.cygnus.com>
11769
11770         From Joel Sherrill <joel@oarcorp.com>.
11771         * libc/stdlib/getenv.c (_findenv): Avoid dereferencing null `environ'.
11772
11773         Add rtems support.  From Joel Sherrill <joel@oarcorp.com>.
11774         * configure.in: Recognize *-*-rtems*.
11775         * libc/sys/rtems/{Makefile.in,crt0.c,dummysys.c}: New files.
11776         * libc/sys/rtems/sys/{features.h,sched.h,siginfo.h,signal.h,
11777         time.h,times.h,types.h}: New files.
11778         * libc/sys/rtems/include/{limits.h,signal.h,time.h}. New files.
11779
11780 Fri Jun 20 11:13:16 1997  Geoffrey Noer  <noer@cygnus.com>
11781
11782         patch from sos@prospect.com.ru (Sergey Okhapkin):
11783         * include/sys/wait.h: correct operator precidence bug
11784         in WIFSIGNALED
11785
11786 Wed Jun 18 22:08:27 1997  Geoffrey Noer  <noer@cygnus.com>
11787
11788         * libc/include/stdlib.h: remove unsetenv proto since it conflicts
11789         with newlib's unsetenv function
11790         * libc/sys/cygwin32/sys: new directory for includes
11791         * libc/sys/cygwin32/sys/dirent.h: move cygwin32's dirent.h
11792         here from winsup/include/sys
11793
11794 Mon Jun 16 21:02:22 1997  Geoffrey Noer  <noer@cygnus.com>
11795
11796         * libc/include/sys/unistd.h: _exit should only be
11797         labelled noreturn when not __CYGWIN32__
11798         * libc/include/stdlib.h: for __CYGWIN32__, add proto for unsetenv
11799         * libc/include/sys/signal.h: add SIGIO to _WIN32 list and
11800         increment NSIG
11801
11802 Thu Jun 12 18:52:41 1997  Ian Lance Taylor  <ian@cygnus.com>
11803
11804         * libc/include/sys/time.h: Only define timeval and timezone if
11805         _GNU_H_WINDOWS32_SOCKETS is not defined.
11806         * libc/include/sys/stat.h: If _WIN32, define _S_IFMT, etc.
11807
11808 Wed Jun 11 09:46:26 1997  Jeffrey A Law  (law@cygnus.com)
11809
11810         * libc/machine/mn10200/setjmp.S: Implement setjmp/longjmp
11811         * libc/machine/mn10300/setjmp.S: Likewise.
11812
11813         * libc/sys/sysmec/crt0.S: Use "call" instead of "calls" for
11814         the mn10300 (more relaxing opportunities).
11815
11816 Tue Jun 10 17:24:45 1997  Mike Meissner  <meissner@cygnus.com>
11817
11818         * configure.in (powerpc*-*-{eabi,elf,linux,rtems,sysv,solaris}):
11819         Build libraries with -mstrict-align.
11820
11821 Fri Jun  6 14:07:59 1997  Ian Lance Taylor  <ian@cygnus.com>
11822
11823         * libc/string/strlwr.c: New file.
11824         * libc/string/strupr.c: New file.
11825         * libc/include/string.h: Declare strlwr and strupr.
11826         * libc/string/Makefile.in (OFILES): Add strlwr.o and strupr.o.
11827         (CHEWOUT_FILES): Add strlwr.def and strupr.def.
11828         (strlwr.o, strupr.o): New targets.
11829         * libc/string/strings.tex: Include strlwr and strupr docs.
11830
11831         * libc/include/sys/types.h: Don't define u_char, et. al., if
11832         _GNU_H_WINDOWS32_SOCKETS is defined.  Likewise for fd_set,
11833         et. al.  Make FD_SETSIZE default 64 rather than 60.  Define
11834         _types_fd_set rather than fd_set, and define fd_set as a macro.
11835
11836         * libc/include/malloc.h: New file.
11837
11838         * libc/include/string.h: Define strcmpi, stricmp, strncmpi, and
11839         strnicmp if they are not already defined.
11840
11841         * libc/include/time.h: If __CYGWIN32__, declare tzset and define
11842         _timezone, _daylight, and _tzname.
11843
11844 Wed Jun  4 12:51:16 1997  Doug Evans  <dje@canuck.cygnus.com>
11845
11846         * configure.in: Sort all configuration tables.
11847
11848         From Joel Sherrill <joel@oarcorp.com>
11849         * Makefile.in (stmp-targ-include): Copy $(sys_dir)/include/*.h.
11850
11851 Tue Jun  3 14:47:46 1997  Ian Lance Taylor  <ian@cygnus.com>
11852
11853         * libc/include/sys/signal.h: Don't include <sys/types.h>.  Just
11854         use int when declaring kill.
11855
11856         * libc/include/sys/timeb.h: New file.
11857
11858 Mon Jun  2 12:06:58 1997  Geoffrey Noer  <noer@cirdan.cygnus.com>
11859
11860         * libc/include/sys/time.h: add itimer support for Cygwin32
11861
11862 Mon May 19 11:56:46 1997  Mike Meissner  <meissner@cygnus.com>
11863
11864         * libc/stdlib/abort.c (abort): If ABORT_MESSAGE is defined, write
11865         out a message that abort was called to stderr.
11866
11867 Fri May 16 15:02:59 1997  Bob Manson  <manson@charmed.cygnus.com>
11868
11869         * libc/sys/sysmec/fstat.c (_fstat): Set st_blksize to 4096
11870         so that libio doesn't freak.
11871
11872         * libc/sys/sysmec/sbrk.c (_sbrk): The argument is a size_t, not
11873         int.
11874
11875         * libc/stdlib/mallocr.c (_morecore_r): Use size_t for
11876         memory sizes, not int.
11877
11878 Wed May 14 21:16:58 1997  Bob Manson  <manson@charmed.cygnus.com>
11879
11880         * libm/math/ef_hypot.c: Use long constants where
11881         appropriate.
11882         * libm/math/ef_sqrt.c: Ditto.
11883
11884         * libc/sys/sysmec/times.c(_times): Change to times.
11885
11886         * libc/sys/sysmec/read.c(_read): The third argument is
11887         size_t.
11888         * libc/sys/sysmec/write.c (_write): Ditto.
11889
11890         * libc/sys/sysmec/lseek.c: Include unistd.h for off_t.
11891         (_lseek): It's off_t for the second argument.
11892
11893 Wed May 14 15:23:36 1997  Mike Meissner  <meissner@cygnus.com>
11894
11895         * libc/include/sys/config.h (__IEEE_LITTLE_ENDIAN): Define here,
11896         as well as machine/ieeefp.h.
11897
11898 Thu May  8 15:47:25 1997  Geoffrey Noer  <noer@cygnus.com>
11899
11900         * libc/include/sys/signal.h: add signal protos for winsup
11901         functions (when __CYGWIN32__), include types.h
11902         * libc/include/sys/types.h: Change __go32_types__ internal
11903         define to __MS_types__ since it's used for more than just
11904         GO32 configs.  Define this if GO32, __MSDOS__, or _WIN32 are
11905         defined.
11906         * libc/include/sys/unistd.h: add ftruncate proto for
11907         winsup functions (when __CYGWIN32__)
11908
11909 Fri Apr 25 10:10:16 1997  Doug Evans  <dje@canuck.cygnus.com>
11910
11911         * libc/sys/h8300hms/sbrk.c (stack_ptr): Add definition.
11912
11913 Thu Apr 24 15:46:51 1997  Mike Stump  <mrs@cygnus.com>
11914
11915         * libc/include/machine/setjmp.h: Add tic80 support.
11916         * libc/machine/tic80/setjmp.S: Likewise.
11917
11918 Tue Apr 22 16:54:40 1997  Geoffrey Noer  <noer@pizza.cygnus.com>
11919
11920         * libc/sys/cygwin32/crt0.c: Add reference to main() so we can
11921         link programs from libraries only (such as in the X11
11922         distribution)
11923
11924 Mon Apr 21 15:02:12 1997  Fred Fish  <fnf@cygnus.com>
11925
11926         * libc/sys/arm/syscalls.c (signal): Remove stub, signal()
11927         supplied elsewhere in newlib.
11928
11929 Mon Apr 14 16:25:55 1997  Ian Lance Taylor  <ian@cygnus.com>
11930
11931         * Makefile.in (INSTALL): Change install.sh to install-sh.
11932
11933 Fri Apr 11 17:04:02 1997  Jason Molenda  (crash@godzilla.cygnus.co.jp)
11934
11935         * README: update WWW address for on-line documentation.
11936
11937 Wed Apr  9 00:38:13 1997  Geoffrey Noer  <noer@cygnus.com>
11938
11939         * libc/include/sys/signal.h: for _WIN32, define SIGCONT and
11940         increment NSIG
11941
11942 Mon Apr  7 23:54:00 1997  Jeffrey A Law  (law@cygnus.com)
11943
11944         * libc/sys/sysmec/crt0.S: Update for new calling conventions on the
11945         mn10300.
11946         * libc/sys/sysmec/trap.S: Don't compare a register to itself.
11947
11948 Tue Mar 25 08:47:43 1997  Jeffrey A Law  (law@cygnus.com)
11949
11950         * libc/sys/arm/syscalls.c: Fix/add stack/heap collision detection.
11951         * libc/sys/d10v/syscalls.c: Likewise.
11952         * libc/sys/h8300hms/sbrk.c: Likewise.
11953         * libc/sys/h8500hms/syscalls.c: Likewise.
11954         * libc/sys/m88kbug/syscalls.c: Likewise.
11955         * libc/sys/sh/syscalls.c: Likewise.
11956         * libc/sys/sysmec/sbrk.c: Likewise.
11957         * libc/sys/sysnecv850/sbrk.c: Likewise.
11958         * libc/sys/w65/syscalls.c: Likewise.
11959         * libc/sys.tex: Update sbrk sample code to include stack/heap collision.
11960
11961 Tue Mar 18 14:14:34 1997  Jeffrey A Law  (law@cygnus.com)
11962
11963         * libc/sys/sysmec/trap.S: Use "syscall" to trigger an
11964         emulated syscall instead of "trap".
11965
11966 Fri Mar 14 11:26:13 1997  Michael Meissner  <meissner@cygnus.com>
11967
11968         * libc/sys/d10v/trap.S (__trap0): Use trap 15 for system calls,
11969         not trap 0.
11970
11971 Sun Mar  9 23:27:04 1997  Doug Evans  <dje@seba.cygnus.com>
11972
11973         * configure.in (m32r-*-*): Add -msdata=sdata to target_cflags.
11974
11975 Sat Mar  8 09:05:01 1997  Fred Fish  <fnf@cygnus.com>
11976
11977         * libc/machine/arm/Makefile.in: Fix comment, is for "arm"
11978         not "sh".
11979         * libc/machine/m32r/Makefile.in: Fix comment, is for "m32r"
11980         not "d10v".
11981         * libc/sys/tic80/crt0.c: New file for TIc80.
11982         * libc/sys/tic80/Makefile.in: New file for TIc80.
11983         * libc/machine/tic80/Makefile.in: New file for TIc80.
11984
11985 Wed Mar  5 11:32:12 1997  J.T. Conklin  <jtc@cygnus.com>
11986
11987         * libc/machine/sh/memcpy.S: New file.
11988         * libc/machine/sh/memset.S: New file.
11989         * libc/machine/sh/Makefile.in (OFILES): Add memcpy.o and memset.o
11990
11991 Thu Feb 27 16:27:55 1997  Fred Fish  <fnf@cygnus.com>
11992
11993         * libc/include/machine/ieeefp.h (_IEEE_LITTLE_ENDIAN): Define
11994         for TIc80.
11995
11996 Wed Feb 26 13:43:39 1997  Jeffrey A Law  (law@cygnus.com)
11997
11998         * libc/sys/sysmec/crt0.S: Handle new calling conventions for
11999         the mn10200.
12000
12001 Wed Feb 26 07:11:03 1997  Michael Meissner  <meissner@cygnus.com>
12002
12003         * libc/machine/powerpc/setjmp.S (longjmp): Correct return status
12004         (patch from andrew@pogo.WV.TEK.COM).
12005
12006 Fri Feb 14 11:49:28 1997  Doug Evans  <dje@canuck.cygnus.com>
12007
12008         * libc/machine/m32r/setjmp.S (setjmp): Save r12.
12009         (longjmp): Restore r12. Fix code that handles returning 1 if passed 0.
12010
12011 Mon Feb 10 10:02:34 1997  Fred Fish  <fnf@cygnus.com>
12012
12013         * configure.in:  Add cases for "tic80" to set machine_dir,
12014         sys_dir, and syscall_dir.
12015
12016 Sun Feb  2 17:57:15 1997  Geoffrey Noer  <noer@cygnus.com>
12017
12018         * libc/sys/cygwin32/crt0.c: initialize floating pt registers
12019
12020 Wed Jan 29 15:57:38 1997  Geoffrey Noer  <noer@cygnus.com>
12021
12022         * libc/include/math.h: avoid conflicts with ANSI C++ <exception>
12023
12024 Mon Jan 27 12:50:01 1997  Doug Evans  <dje@seba.cygnus.com>
12025
12026         * libc/machine/m32r/setjmp.S: Use proper comment delimiter.
12027         Use proper constant prefix.
12028
12029 Fri Jan 24 10:59:04 1997  Jeffrey A Law  (law@cygnus.com)
12030
12031         * libc/sys/sysmec/*.c: Don't cast args to syscall to integers,
12032         that loses on the mn10200 where ints and pointers are different
12033         sizes.
12034
12035 Tue Jan 14 13:29:55 PST 1997  Jeremy Allison <jra@cygnus.com>
12036
12037         * configure.in: Added -DSIGNAL_PROVIDED to cygwin32
12038         target as signal is provided in winsup.
12039
12040 Tue Jan 14 11:10:13 1997  Jeremy Allison <jra@cygnus.com>
12041
12042         * libc/include/sys/process.h: Corrected const definitions
12043         in spawn functions. Added cwait.
12044
12045 Thu Jan  2 12:22:41 1997  Jeffrey A Law  (law@cygnus.com)
12046
12047         * libc/include/machine/ieeefp.h: mn10200 uses 16bit ints and 32bit
12048         doubles.
12049         * libc/include/sys/config.h: Similarly.
12050
12051 Tue Dec 31 18:36:14 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
12052
12053         * configure.in (sparc-sun-sunos*): Add -DSIGNAL_PROVIDED to the
12054         target_cflags.
12055         (i[3456]86-*-sco*): Ditto.
12056
12057         * libc/signal/Makefile.in (OFILES): Add signal.o.
12058         (CFILES): Add signal.c.
12059
12060         * libc/signal/raise.c (_raise_r): Only compile code if
12061         SIGNAL_PROVIDED is defined.
12062
12063         * libc/signal/signal.c: Redo whole file so that it works with
12064         current newlib.  Use _kill_r if no signal handler provided.
12065
12066         * libc/sys/{go32,sparc64,sysmec}/Makefile.in: Delete raise and
12067         signal stubs.
12068         * libc/sys/sysvnecv70/Makefile.in: Ditto.
12069         * libc/sys/sysnecv850/Makefile.in: Ditto.
12070
12071         * libc/sys/{go32,sparc64}/signal.c: Delete, stub no longer used.
12072         * libc/sys/sysmec/{raise,signal}.c: Ditto.
12073         * libc/sys/sysvnecv70/signal.s: Ditto.
12074         * libc/sys/sysnecv850/raise.c: Ditto.
12075
12076         * libc/sys/sysnecv850/kill.c (_kill): Encode signal # so that
12077         simulator and debugger can tell the difference between a signal
12078         being raised and an exit system call.
12079
12080         * NEWS: Document software signals being provided.
12081
12082 Mon Dec 23 11:54:19 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
12083
12084         * libc/reent/impure.c (_REENT_ATTR): Delete in favor of
12085         __ATTRIBUTE_IMPURE_PTR__.  Move PowerPC definition to
12086         include/sys/config.h.
12087         (impure_data): Use __ATTRIBUTE_IMPURE_DATA__ for attributes.
12088         Change from 'inpure_data'.
12089         (_impure_ptr): Use __ATTRIBUTE_IMPURE_PTR__ for attributes.  Use
12090         &impure_data, not &inpure_data.
12091
12092         * libc/include/sys/config.h (__ATTRIBUTE_IMPURE_PTR__): If PowerPC
12093         and and System V ABI, define so that _impure_ptr lives in the
12094         .sdata section.
12095
12096 Sun Dec 22 23:33:05 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
12097
12098         * libc/include/sys/reent.h (__ATTRIBUTE_IMPURE_PTR__): Define as
12099         nothing if not defined.
12100         (_impure_ptr): Use __ATTRIBUTRE_IMPURE_PTR__, so a machine can set
12101         its attributes.
12102
12103         * libc/include/sys/config.h (__ATTRIBUTE_IMPURE_PTR__): 
12104
12105 Wed Dec 18 10:12:04 1996  Jeffrey A Law  (law@cygnus.com)
12106
12107         * libc/sys/sysmec/crt0.S: Fix mn10200 stuff.
12108         * libc/sys/sysmec/trap.s: Handle mn10200 too.
12109         * libc/machine/mn10200/setjmp.S: Fix mn10200 stuff.
12110
12111 Mon Dec 16 10:05:36 1996  Jeffrey A Law  (law@cygnus.com)
12112
12113         * libc/sys/sysmec/crt0.S: Handle mn10200 too.
12114
12115 Fri Dec 13 11:05:20 1996  Jeremy Allison <jra@cygnus.com>
12116
12117         * libc/include/sys/errno.h: Added net errno's.
12118
12119 Wed Dec 11 16:24:25 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
12120
12121         * libc/misc/ffs.c: New file to support ffs function for GCC test
12122         gcc.c-torture/execute/960909-1.c.
12123
12124         * libc/misc/Makefile.in ({O,CHEWOUT_}FILES): Add ffs.
12125
12126 Sat Dec  7 10:12:37 1996  Jeffrey A Law  (law@cygnus.com)
12127
12128         * libc/sys/sysmec/crt0.S: Handle underscore prefix.
12129         * libc/sys/sysmec/trap.S: Likewise.
12130
12131 Fri Dec  6 15:08:49 1996  Jim Wilson  <wilson@cygnus.com>
12132
12133         * configure.in (mips*vr4300*-*-*): Delete use of sys/vr4300.
12134         * libc/sys/vr4300/{Makefile.in,crt0.S,syscalls.c}: Delete.
12135
12136 Wed Dec  4 16:25:27 1996  Jeffrey A Law  (law@cygnus.com)
12137
12138         * libc/sys/sysmec/signal.c: Dummy file.
12139         * libc/sys/sysmec/Makefile.in: Build it.
12140
12141 Wed Nov 27 13:10:18 1996  Ian Lance Taylor  <ian@cygnus.com>
12142
12143         * libc/machine/mips/machine/regdef.h: Define pc as $pc for
12144         mips16.
12145
12146 Mon Nov 25 09:58:28 1996  Jeffrey A Law  (law@cygnus.com)
12147
12148         * libc/sys/sysmec/{crt0.S,trap0.S}: Actually try to implement
12149         c-startup and simulator traps.
12150
12151
12152         * libc/sys/sysmec/crt0.S: Remove bogus '_' symbol prefixing
12153         * libc/sys/sysmec/trap0.S: Likewise.
12154
12155 Sat Nov 23 09:01:03 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
12156
12157         * libc/stdlib/mallocr.c (ROUND_TO): If SMALL_MEMORY, set to 0x7 to
12158         round to double word alignment.
12159         (_morecore_r): Combine rounding up pointers to both ROUND_TO and 8
12160         byte alignment.
12161
12162         * libc/include/sys/config.h (__IEEE_BIG_ENDIAN): Define if d10v.
12163
12164         * libc/sys/d10v/syscalls.c (_sbrk): Add better checks for running
12165         out of memory.
12166
12167 Mon Nov 18 13:08:26 1996  Jeffrey A Law  (law@cygnus.com)
12168
12169         * configure.in: Handle mn10200 and mn10300.
12170         * libc/include/machine/{ieeefp.h,setjmp.h}: Likewise.
12171         * libc/include/sys/config.h: Likewise.
12172         * libc/sys/sysmec: New directory for mec stuff.
12173         * libc/machine/mn10300: New directory for mn10300 stuff.
12174         * libc/machine/mn10200: Similarly for mn10200 stuff.
12175
12176 Fri Nov 15 16:41:41 1996  Doug Evans  <dje@canuck.cygnus.com>
12177
12178         * libc/sys/arm/crt0.S: Use .text, not .section .text.
12179         * libc/sys/arm/syscalls.c: Rewrite to set errno properly.
12180
12181         * libc/include/sys/types.h (_ST_INT32): New macro, local to file.
12182         (nlink_t): Change type from unsigned int to unsigned short.
12183         (mode_t): Ensure size is 32 bits even if int is 16.
12184         * libc/include/sys/stat.h (st_nlink): Change type to nlink_t.
12185         (st_spare[123]): Change type from int to long.
12186
12187 Fri Nov 15 11:41:50 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
12188
12189         * libc/sys/d10v/syscalls.c (_sbrk): Align initial heap_end to 8
12190         byte boundary.
12191
12192         * configure.in (d10v*): Define SMALL_MEMORY.
12193
12194 Mon Nov 11 10:30:44 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
12195
12196         * configure.in (powerpc*-{eabi,elf,linux,rtem,sysv,solaris}*): Add
12197         -mrelocatable-lib and -mno-eabi flags.
12198
12199 Mon Nov 11 09:01:39 1996  Jeffrey A Law  (law@cygnus.com)
12200
12201         * libc/machine/h8300/memcpy.S: Fix comments to reflect reality.
12202         Fix handling of mis-aligned source operand when both the
12203         destination & length are properly aligned.
12204         
12205 Wed Oct 30 09:41:11 1996  Jeffrey A Law  (law@cygnus.com)
12206
12207         * libc/sys/sysnecv850/Makefile.in (OFILES): Add
12208         times.o, time.o and gettime.o
12209         * libc/sys/sysnecv850/{time.c, times.c, gettime.c}: New files.
12210         * libc/sys/sysnecv850/sys/syscall.h: Add SYS_times and
12211         SYS_gettimeofday.
12212
12213 Tue Oct 29 13:40:09 1996  Jeffrey A Law  (law@cygnus.com)
12214
12215         * libc/sys/sysnecv850/Makefile.in (OFILES): Add access.o
12216         * libc/sys/sysnecv850/access.c: New file.
12217
12218 Mon Oct 21 19:47:02 1996  Ian Lance Taylor  <ian@cygnus.com>
12219
12220         * libc/sys/vr4300/Makefile.in (clean): Remove $(OFILES).
12221
12222         * libc/stdlib/mprec.h (word0, word1): Use __uint32_t, not unsigned
12223         long.
12224
12225 Mon Oct 21 14:43:07 1996  Jeffrey A Law  (law@cygnus.com)
12226
12227         * libc/sys/sysnecv850/crt0.S: Initialize ep and gp registers.
12228
12229 Thu Oct 17 11:47:16 1996  Doug Evans  <dje@seba.cygnus.com>
12230
12231         * libc/include/machine/{ieeefp.h,setjmp.h}: Add m32r support.
12232         * libc/include/sys/config.h: Add m32r support.
12233
12234 Wed Oct 16 23:08:05 1996  Jeffrey A Law  (law@cygnus.com)
12235
12236         * libc/sys/sysnecv850/v850.ld: Remove.  It doesn't belong
12237         here.
12238
12239 Wed Oct 16 21:18:07 1996  Mark Alexander  <marka@cygnus.com>
12240
12241         * libc/include/machine/setjmp.h: Add D10v support.
12242
12243 Tue Oct 15 22:28:26 1996  Jeffrey A Law  (law@cygnus.com)
12244
12245         * configure.in: Configure the "libc/syscalls" directory for
12246         the v850.
12247
12248         * libc/sys/sysnecv850/{close.c, execve.c, fork.c}: Add missing '_'.
12249         * libc/sys/sysnecv850/{fstat.c, getpid.c, kill.c}: Likewise.
12250         * libc/sys/sysnecv850/{lseek.c, open.c, read.c}: Likewise.
12251         * libc/sys/sysnecv850/{sbrk.c, stat.c, unlink.c}: Likewise.
12252         * libc/sys/sysnecv850/{wait.c, write.c}: Likewise.
12253
12254 Tue Oct 15 16:24:39 1996  Stu Grossman  (grossman@critters.cygnus.com)
12255
12256         * libc/sys/sysnecv850/crt0.S (start):  Allocate spill space on
12257         stack for args for main and other routines.  Zero out args for
12258         main.
12259
12260         * libc/sys/sysnecv850/v850.ld:  New.  Linker script to layout memory
12261         correctly.
12262
12263 Tue Oct 15 11:51:42 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
12264
12265         * libc/stdio/findfp.c (std): Remove extraneous ';' after
12266         function.
12267
12268         * libc/sys/d10v/sys/syscall.h (SYS_kill): Add.
12269
12270         * libc/sys/d10v/{syscalls.c,trap.S} (_kill,_getpid): Make these
12271         real system calls now.
12272
12273         * libc/stdio/setvbuf (setvbuf): Cast pointers to _POINTER_INT
12274         before casting them to int.
12275         * libc/stdio/tmpnam.c (_tempnam_r): Ditto.
12276
12277         * libc/stdlib/mallocr.c (_morecore_r): Use _POINTER_INT when
12278         aligning pointer.
12279         * libc/string/memset.c (memset): Ditto.
12280         
12281         * libc/stdio/vfscanf.c (__svfscanf): When converting to pointer,
12282         first convert ints to _POINTER_INT to eliminate GCC warning.
12283
12284         * libc/stdio/vfprintf.c (_vfprintf_r): Use _POINTER_INT when
12285         processing %p.
12286
12287         * libm/math/ef_scalb.c (__ieee754_scalbf): Cut down range to 32000
12288         from 65000 if ints are only 16 bits.
12289
12290         * libm/math/sf_scalbn.c (scalbnf): Cut down overflow test to 30000
12291         from 50000 if ints are only 16 bits.
12292
12293         * libc/include/sys/config.h (_POINTER_INT): New macro, to give an
12294         int type that is the same size as a pointer.
12295
12296         * libc/misc/dprintf.c (__dprintf): Use _POINTER_INT when
12297         processing %p.
12298         (get_number): Explicitly cast number to long before shifting by 16
12299         or 24, in case ints are short.
12300
12301         * libc/include/sys/config.h (_POINTER_INT): Define as short.
12302
12303 Wed Oct  9 16:54:32 1996  Jeremy Allison <jra@cygnus.com>
12304
12305         * libc/string.h: Added ffs, removed swab.
12306         * libc/sys/errno.h: Added EOPNOTSUPP.
12307         * libc/sys/unistd.h: Added swab.
12308
12309 Thu Oct  3 17:08:50 1996  Jeremy Allison <jra@cygnus.com>
12310
12311         * libc/include/sys/stat.h: Added fchmod.
12312         * libc/include/sys/unistd.h: Added fsync.
12313
12314 Tue Oct  1 17:34:08 1996  Jeremy Allison <jra@cygnus.com>
12315
12316         * libc/include/sys/errno.h: Added defines for EPFNOSUPPORT (96)
12317         and ECONNRESET (104) for cygwin32.
12318
12319 Tue Oct  1 16:24:05 1996  Gavin Koch  <gavin@cygnus.com>
12320
12321         * libc/sys/sysnecv850/_exit.c: added _do_dtors to
12322         do the static destructors.
12323         
12324 Mon Sep 30 15:59:05 1996  Stu Grossman  (grossman@critters.cygnus.com)
12325
12326         * libc/sys/sysnecv850/trap.S:  Change I/O to use trap 31.
12327
12328 Mon Sep 30 12:02:50 1996  Doug Evans  <dje@canuck.cygnus.com>
12329
12330         * libc/machine/m32r/{Makefile.in,setjmp.S}: New files.
12331         * configure.in: Recognize m32r-*-*.
12332
12333 Mon Sep 30 00:34:41 1996  James G. Smith  <jsmith@cygnus.co.uk>
12334
12335         * libc/sys/arm/trap.S (__rt_stkovf_split_big,
12336         __rt_stkovf_split_small): Added default software stack overflow
12337         handlers, which just call SWI_Exit.
12338         * libc/sys/arm/crt0.S (_mainCRTStartup): Simple software stack
12339         limit initialisation.
12340
12341 Fri Sep 27 13:08:03 1996  Mark Alexander  <marka@cygnus.com>
12342
12343         * libc/sys/d10v/{trap.S,sys/syscall.h}: Add time() function.
12344
12345 Fri Sep 27 12:32:00 1996  Jeremy Allison <jra@cygnus.com>
12346
12347         * libc/include/sys/types.h: Added ssize_t definition.
12348         
12349 Wed Sep 25 14:52:18 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
12350
12351         * libc/machine/d10v/setjmp.S: Use ';' for comments.
12352         * libc/sys/d10v/{crt0.S,trap.S}: Ditto.
12353
12354         * libc/machine/d10v/setjmp.S (longjmp): Use exef0t || instead of
12355         branch around a single ldi instruction.
12356
12357         * libc/sys/d10v/crt0.S (_start): Use auto-increment to zero bss.
12358         Call exit, instead of just issuing a stop instruction.
12359
12360 Sun Sep 22 17:26:55 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
12361
12362         * libc/sys/d10v/{trap.S,syscalls.c}: Add -mint32 support.
12363
12364 Fri Sep 20 13:23:12 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
12365
12366         * libc/stdlib/mprec.h: Explicitly declare all large constants as
12367         longs, and then cast them to __uint32_t.
12368
12369         * libc/include/sys/config.h: Protect against multiple inclusions.
12370
12371 Tue Sep 17 13:10:33 1996  Mark Alexander  <marka@cygnus.com>
12372
12373         * configure.in (d10v*): Set syscall_dir.
12374
12375 Sun Sep 15 10:41:59 1996  Mark Alexander  <marka@cygnus.com>
12376
12377         * libc/sys/d10v/crt0.S: Set stack pointer.
12378
12379 Thu Sep 12 13:02:38 1996  Mark Alexander  <marka@cygnus.com>
12380
12381         * libc/sys/d10v/{trap.S, syscalls.c}: Rewrite most system calls
12382         in assembly for efficiency.  Change calling convention to allow
12383         long ints to be returned.
12384
12385 Wed Sep 11 10:28:18 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
12386
12387         * libc/machine/v850/Makefile.in (setjmp.o): Fix dependency.
12388
12389 Thu Sep  5 19:23:06 1996  Doug Evans  <dje@canuck.cygnus.com>
12390
12391         * libc/posix/execvp.c (execvp): Don't search PATH if file has '/'.
12392         Handle empty entries in $PATH.
12393
12394 Tue Sep 03 18:15:02 1996  Mark Alexander  <marka@cygnus.com>
12395
12396         * libc/machine/d10v/setjmp.S: Make it really work.
12397
12398 Tue Sep  3 12:16:26 1996  Ian Lance Taylor  <ian@cygnus.com>
12399
12400         * libc/sys/sh/crt0.S: If __ELF__, use ELF section attributes for
12401         the .stack section.
12402
12403 Tue Sep  3 10:08:45 1996  Jeffrey A Law  (law@cygnus.com)
12404
12405         * sys/sysnecv850/sys/file.h: Remove.
12406         * sys/sysnecv850/sys/syscall.h: New file.
12407         * sys/sysnecv850/{misc.c,syscalls.c,malloc.c}: Deleted.
12408         * sys/sysnecv850/{chmod.c, chown.c, close.c, creat.c} New files.
12409         * sys/sysnecv850/{execv.c, execve.c, fork.c, fstat.c} New files.
12410         * sys/sysnecv850/{getpid.c, isatty.c, kill.c, lseek.c} New files.
12411         * sys/sysnecv850/{open.c, pipe.c, raise.c, read.c} New files.
12412         * sys/sysnecv850/{stat.c, unlink.c, utime.c, wait.c} New files.
12413         * sys/sysnec850/trap.S: New file.
12414         * sys/sysnecv850/{_exit.c, write.c}: Use new TRAP0 mechanism for
12415         syscalls.
12416         * sys/sysnecv850/crt0.S: Use cmp/bl, not tst/bz.
12417         * sys/sysnec850/sbrk.c: New version.
12418
12419 Sun Sep  1 20:08:27 1996  Jeffrey A Law  (law@cygnus.com)
12420
12421         * sys/sysnecv850/crt0.S: Fix order of comparison args.  Loop
12422         as long as r6 is less than r7.
12423
12424 Sun Sep  1 13:54:19 1996  Ian Lance Taylor  <ian@cygnus.com>
12425
12426         * Makefile.in (mostlyclean): Separate from clean target.  Don't
12427         remove *.a or targ-include.
12428         * libc/machine/sparc/Makefile.in (mostlyclean): New target.
12429
12430 Sun Sep  1 11:35:26 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
12431
12432         * libc/include/machine/ieeefp.h (_DOUBLE_IS_32BITS): Define for
12433         d10v.
12434         (__SMALL_BITFIELDS): Ditto.
12435
12436         * libc/include/sys/config.h (_DOUBLE_IS_32BITS): Define for d10v.
12437
12438 Sat Aug 31 16:42:36 1996  Jeffrey A Law  (law@cygnus.com)
12439
12440         * libc/sys/sysnecv850/misc.c (raise, getpid, kill): Remove '_'
12441         prefix.
12442
12443         * libc/sys/sysnecv850/sbrk.c (sbrk): Remove '_' prefix.
12444         * libc/sys/sysnecv850/syscalls.c (read, lseek, close): Likewise.
12445         * libc/sys/sysnecv850/syscalls.c (fstat, open, close): Likewise.
12446         * libc/sys/sysnecv850/write.c (write): Likewise.
12447
12448         * libc/sys/sysnecv850/crt0.S: Don't try to zero out an empty
12449         .bss.
12450
12451 Fri Aug 30 11:18:45 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
12452
12453         * libc/include/sys/config.h: Define INT_MAX, UINT_MAX
12454         appropriately for D10V, depending on -mint16/-mint32.
12455
12456 Thu Aug 29 16:09:37 1996  Mark Alexander  <marka@cygnus.com>
12457
12458         * configure.in: Add cases for D10V.
12459
12460 Thu Aug 29 17:03:23 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
12461
12462         * configure.in (i[345]86-*-*): Recognize i686 for pentium pro.
12463
12464 Wed Aug 28 21:05:52 1996  Jeffrey A Law  (law@cygnus.com)
12465
12466         * libc/include/machine/ieeefp.h: Fix typo.
12467
12468 Wed Aug 28 19:47:55 1996  Mark Alexander  <marka@cygnus.com>
12469
12470         * libc/sys/d10v: New directory for D10V stuff.
12471         * libc/include/machine/ieeefp.h: Add D10V defines.
12472
12473 Mon Aug 26 13:34:58 1996  Doug Evans  <dje@canuck.cygnus.com>
12474
12475         * libc/include/sys/errno.h: Add winsup/include/sys/errno.h values:
12476         ELOOP, ENOBUFS, EAFNOSUPPORT, EPROTOTYPE, ENOTSOCK, ENOPROTOOPT,
12477         ESHUTDOWN, ECONNREFUSED, EADDRINUSE, ECONNABORTED, EWOULDBLOCK.
12478         * libc/string/strerror.c (strerror): Add them.
12479
12480 Thu Aug 22 16:38:19 1996  Jeffrey A Law  (law@cygnus.com)
12481
12482         * libc/sys/sysnecv850: New directory for v850 stuff.
12483
12484         * libc/machine/v850: New directory for v850 stuff.
12485         * libc/machine/v850/setjmp.S: setjmp/longjmp support.
12486
12487         * configure.in: Add support for the v850.
12488
12489         * libc/include/machine/ieeefp.h: Add v850 defines.
12490         * libc/include/machine/setjmp.h: Likewise.
12491         * libc/include/sys/config.h: Add v850 defines.
12492
12493 Sat Aug 17 04:06:36 1996  Geoffrey Noer  <noer@cygnus.com>
12494
12495         * libc/include/machine/ieeefp.h
12496         * libc/include/machine/setjmp.h
12497         * libc/include/sys/fcntl.h
12498         * libc/include/sys/signal.h
12499         * libc/include/sys/types.h
12500         * libc/stdlib/system.c:
12501         Fix preprocessor defines to match new scheme (_WIN32 for WIN32
12502         API availability, __CYGWIN32__ for cygwin32 environment specific).
12503
12504 Thu Aug 15 17:09:21 1996  Geoffrey Noer  <noer@cygnus.com>
12505
12506         * libc/include/stdlib.h: add multibyte character functions.  Add
12507         __eprintf for assert.
12508
12509 Thu Aug 15 11:15:40 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
12510
12511         * libc/stdlib/malloc.h (MALLOC_ALIGNMENT): Use either pointer
12512         arithmetic or __alignof__ to properly get the alignment, instead
12513         of hardwiring it to 4.
12514
12515 Wed Aug 14 23:43:28 1996  Geoffrey Noer  <noer@cygnus.com>
12516
12517         * libc/stdio/fseek.c: add fflush call to adjust seek offset
12518         on append stream (fix from NetBSD sources), adjust curoff offset
12519         for ungetc's benefit.
12520         * libc/stdio/ftell.c: adjust curoff offset for ungetc's benefit.
12521         * libc/stdio/rewind.c: replace code with up to date NetBSD
12522         code to undo hacks made to work around above problem of not
12523         having fflush call mentioned above
12524
12525 Fri Aug  2 18:28:07 1996  J.T. Conklin  <jtc@rtl.cygnus.com>
12526
12527         * libc/reent/{closer.c, execr.c, fstatr.c, linkr.c, lseekr.c,
12528         openr.c, readr.c, sbrkr.c, signalr.c, statr.c, timer.c, writer.c}:
12529         Partially revert last changes.  The thread specific errno is set
12530         iff if the underlying syscall fails and the global errno is not
12531         zero.
12532
12533 Fri Jul 19 11:41:52 1996  J.T. Conklin  <jtc@rtl.cygnus.com>
12534
12535         * libc/reent/filer.c: Removed files, all functions have split out
12536         into their own files.
12537         * libc/reent/{closer.c, lseekr.c, openr.c, readr.c, writer.c}: 
12538         New files containing functions formally in filer.c
12539         * libc/reent/Makefile.in: Updated for above change.
12540
12541         * libc/reent/execr.c (_fork_r, _wait_r): Set errno if underlying
12542         syscall fails, not if errno is changed.
12543         * libc/reent/filer.c (_open_r, _close_r, _lseek_r, _read_r, 
12544         _write_r): Likewise.
12545         * libc/reent/fstatr.c (_fstat_r): Likewise.
12546         * libc/reent/linkr.c (_link_r, _unlink_r): Likewise.
12547         * libc/reent/sbrkr.c (_sbrk_r): Likewise.
12548         * libc/reent/signalr.c (_kill_r): Likewise.
12549         * libc/reent/statr.c (_stat_r): Likewise.
12550         * libc/reent/timer.c (_gettimeofday_r): Likewise.
12551
12552         * libc/reent/{execr.c, filer.c, fstatr.c, linkr.c, sbrkr.c,
12553         signalr.c, statr.c, timer.c} (errno): declare extern rather
12554         than as a common.
12555
12556         * libc/stdio/vfprintf.c (__sbprintf): Use the VFPRINTF macro
12557         instead of calling vfprintf so that i*printf will not require
12558         floating point support code.
12559         
12560 Mon Jul 15 16:50:59 1996  Doug Evans  <dje@canuck.cygnus.com>
12561
12562         * libc/posix/execvp.c (execvp): Use posix_path_list_p to determine
12563         path delimiter.
12564         * libc/include/sys/unistd.h (_SC_PATH_RULES): Delete.
12565         (_PATH_RULES_{UNKNOWN,WIN32,POSIX}): Delete.
12566
12567 Thu Jul 11 14:34:14 1996  Geoffrey Noer  <noer@cygnus.com>
12568
12569         * libc/include/signal.h: _sig_func_ptr function takes an int
12570         * libc/include/sys/signal.h: sa_handler function takes an int
12571
12572 Tue Jul  9 21:22:32 1996  Jeffrey A Law  (law@cygnus.com)
12573
12574         * libc/include/machine/ieeefp.h: Simplify H8/S support.
12575         * libc/include/sys/config.h: Add missing H8/S conditional.
12576
12577 Sun Jun 30 12:05:46 1996  Doug Evans  <dje@canuck.cygnus.com>
12578
12579         * libc/include/sys/unistd.h (MAXPATHLEN): Add cygwin32 value.
12580
12581 Wed Jun 26 09:57:54 1996  Jeffrey A Law  (law@cygnus.com)
12582
12583         * libc/include/machine/setjmp.h: Handle H8/S.
12584         * libc/include/machine/ieeefp.h: Likewise.
12585         * libc/include/sys/config.h: Likewise.
12586         * libc/machine/h8300/{defines.h, memcpy.S, memset.S}: Likewise.
12587         * libc/machine/h8300/{reg_memcpy.S, reg_memset.S}: Likewise.
12588         * libc/machine/h8300/{strcmp.S, setjmp.S}: Likewise.
12589         * libc/sys/h8300hms/crt0.S: Likewise.
12590
12591 Tue Jun 25 23:15:45 1996  Jason Molenda  (crash@godzilla.cygnus.co.jp)
12592
12593         * Makefile.in (datadir): Set to $(prefix)/share.
12594         (oldincludedir, docdir): Removed.
12595         * doc/Makefile.in (datadir): Set to $(prefix)/share.
12596         (oldincludedir, docdir): Removed.
12597         * libc/Makefile.in (datadir): Set to $(prefix)/share.
12598         (oldincludedir, docdir): Removed.
12599         * libm/Makefile.in (datadir): Set to $(prefix)/share.
12600         (oldincludedir, docdir): Removed.
12601
12602 Fri Jun 21 19:24:41 1996  Ian Lance Taylor  <ian@cygnus.com>
12603
12604         * libc/include/sys/reent.h (_REENT_INIT): Update for change to
12605         _reent struct.
12606
12607 Wed Jun 19 14:00:09 1996  Doug Evans  <dje@canuck.cygnus.com>
12608
12609         * libc/posix/execvp.c: Delete _WIN32 support.  For __CYGWIN32__
12610         fetch current path rules with sysconf and handler posix/win32
12611         appropriately.
12612
12613         * libc/include/sys/unistd.h (_PATH_RULES{,_POSIX,_WIN32}): Define.
12614
12615         * libc/include/process.h: Prepend '_' to P_{WAIT,NOWAIT,OVERLAY}.
12616         (WAIT_CHILD): Always define.
12617
12618 Sat Jun 15 17:50:42 1996  Ian Lance Taylor  <ian@cygnus.com>
12619
12620         * libc/stdlib/eprintf.c: New file.
12621         * libc/stdlib/Makefile.in (OFILES): Add eprintf.o.
12622         (eprintf.o): New target.
12623
12624 Thu Jun 13 16:44:32 1996  Doug Evans  <dje@canuck.cygnus.com>
12625
12626         * libc/sys/cygwin32/crt0.c (__cygwin_crt0_bp): New global.
12627         (mainCRTStartup): Do int3 if __cygwin_crt0_bp non-zero.
12628
12629 Thu Jun 13 17:45:17 1996  Mike Meissner  <meissner@rtl.cygnus.com>
12630
12631         * libc/include/machine/ieeefp.h: Add support for AIX and Windows
12632         NT in PowerPC endianess cases.
12633
12634 Tue Jun 11 12:26:28 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
12635
12636         * libc/include/machine/ieeefp.h: Clean up PowerPC endianess.
12637
12638 Thu Jun  6 11:34:20 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
12639
12640         * libc/string/strtok.c: Fix doc typo.
12641
12642 Mon Jun  3 11:30:00 1996  J.T. Conklin  <jtc@rtl.cygnus.com>
12643
12644         * libc/include/sys/reent.h (struct _reent): Removed _asctime,
12645         _next, _scanpoint, _signgam fields.
12646
12647         * libc/include/stdlib.h (rand_r): Added new declaration.
12648         (_rand_r, _srand_r): Removed declarations.
12649         * libc/stdlib/rand.c (_rand_r, _srand_r): Removed, these functions
12650         have been made obsolete by rand_r.
12651         * libc/stdlib/rand_r.c: New file, rand_r function as specified
12652         by POSIX.1c.
12653         
12654         * libc/string/strtok.c: Update documentation to describe
12655         strtok_r().
12656
12657 Sat Jun  1 23:50:39 1996  Michael Meissner  <meissner@cygnus.com>
12658
12659         * libc/include/sys/stat.h (stat structure): Use the expanded stat
12660         structure on Solaris, and PowerPC systems even though __svr4__ is
12661         defined.
12662
12663 Tue May 28 13:02:42 1996  Doug Evans  <dje@canuck.cygnus.com>
12664
12665         * libc/sys/go32/sys/errno.h (ENOSYS,ESPIPE): Keep values <= 255.
12666
12667 Fri May 17 10:34:44 1996  Ian Lance Taylor  <ian@cygnus.com>
12668
12669         * host/any: Use ../.. rather than .. to get to the main build
12670         directory.  This matches the current layout of the build
12671         directory.
12672
12673 Wed May 15 15:52:27 1996  Jeffrey A Law  (law@cygnus.com)
12674
12675         * libc/machine/h8300/__main.S: Delete.  No longer needed.
12676         * libc/machine/h8300/Makefile.in: Corresponding changes.
12677         * libc/sys/h8300hms/crt1.c: New file.
12678         * libc/sys/h8300hms/Makefile.in: Corresponding changes.
12679         * libc/sys/h8300hms/crt0.s: Call __main.
12680
12681         * libc/sys/h8300hms/crt0.S: Use temporary label names
12682         for branch targets.
12683
12684 Mon May 13 14:26:30 1996  Doug Evans  <dje@canuck.cygnus.com>
12685
12686         * libc/stdio/fopen.c (_fopen_r): Fix arguments to fseek.
12687
12688 Fri May  3 16:38:23 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
12689
12690         * libc/reent/impure.c (_impure_ptr): Force the impure pointer into
12691         .sdata on the PowerPC so that we can link newlib with code
12692         compiled with -msdata.
12693
12694 Mon Apr 29 21:38:02 1996  Doug Evans  <dje@canuck.cygnus.com>
12695
12696         * libc/sys/arm/syscalls.c (_sbrk): Rename end to __end__.
12697
12698 Thu Apr 25 06:38:59 1996  Michael Meissner  <meissner@cygnus.com>
12699
12700         * libc/sys/cygwin32/crt0.c (mainCRTStartup): On PowerPC, set the
12701         exception handler to __cygwin_exception_handler.
12702
12703 Tue Apr 23 15:14:20 1996  Ian Lance Taylor  <ian@cygnus.com>
12704
12705         * libc/include/machine/setjmp.h: Check _AM29K, not ___AM29K__.
12706
12707 Sun Apr 21 12:11:51 1996  Doug Evans  <dje@blues.cygnus.com>
12708
12709         * libm/math/Makefile.in ({w,wf}_cabs.o,{w,wf}_drem.o): Add rule for
12710         SunOS VPATH.
12711         * libc/stdlib/Makefile.in (atoff.o,atol.o,mblen.o,mbstowcs.o,
12712         wcstombs.o): Likewise.
12713
12714 Thu Apr 18 12:37:01 1996  Doug Evans  <dje@canuck.cygnus.com>
12715
12716         * libc/stdlib/environ.c (initial_env): New static local.
12717         (environ): Point to `initial_env'.
12718
12719         * libc/include/machine/setjmp.h: Clean up.
12720         (__H8300H__,__PPC__): Define _JBTYPE.
12721         (__arm__): Provide entry for.
12722         (sigjmp_buf): Delete.
12723         (jmp_buf): Use _JBTYPE if defined, otherwise int.
12724
12725 Thu Apr 18 12:10:52 1996  Jeffrey A Law  (law@cygnus.com)
12726
12727         * libc/machine/h8300/strcmp.S: Sign extend the result to
12728         32bits so we don't lose with -mint32.
12729
12730 Sun Apr 14 19:59:52 1996  Doug Evans  <dje@canuck.cygnus.com>
12731
12732         * libc/sys/go32/sys/errno.h: New file.
12733         * libc/sys/go32/Makefile.in (stat.o): Depend on stat.c.
12734         * libc/sys/go32/gerrno.s (syscall_error): Call __errno to get
12735         errno's address (make compatible with rest of newlib).
12736         * libc/sys/go32/stat.c (fixinode): Set errno upon failure.
12737         * libc/string/strerror.c (strerror): Surround each case with #ifdef.
12738
12739 Thu Mar 28 13:44:42 1996  Doug Evans  <dje@canuck.cygnus.com>
12740
12741         * libc/machine/sparc/{scan.c,shuffle.c}: New files.
12742         * libc/machine/sparc/Makefile.in: Build them.
12743         * libc/machine/sparc/machine/sparclet.h: New file.
12744
12745 Mon Mar 25 15:29:14 1996  J.T. Conklin  <jtc@rtl.cygnus.com>
12746
12747         * libc/machine/sh/asm.h: New file.
12748         * libc/machine/sh/setjmp.S: Only save clobbered registers.  Added
12749         support for SH3e's FP registers.  Use asm.h.
12750
12751 Mon Mar 25 11:59:23 1996  Jeffrey A Law  (law@cygnus.com)
12752
12753         * libc/stdio/vfprintf.c (cvt): Accept a reent structure
12754         as first argument.  Call _dtoa_r and pass the reent structure
12755         instead of calling __dtoa.
12756
12757 Fri Mar 22 13:59:37 1996  Jeffrey A Law  (law@cygnus.com)
12758
12759         * libc/include/sys/config.h: Define DOUBLE_IS_32BITS for
12760         the h8300, h8500, and others.  Add comments for some rather
12761         dubious code.
12762
12763 Thu Mar 14 18:04:43 1996  Ian Lance Taylor  <ian@cygnus.com>
12764
12765         * Makefile.in (check): Check that testsuite exists before cd.
12766
12767 Tue Mar 12 11:46:47 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
12768
12769         * libc/include/string.h (strsep): Correct prototype.
12770
12771 Mon Mar 11 09:55:19 1996  Doug Evans  <dje@charmed.cygnus.com>
12772
12773         * libc/sys/h8300/_exit.c (_exit,__exit): Set r0 to 0 before `sleep'.
12774         * libc/sys/h8300/misc.c (_kill): Set r0 to indicate abort and `sleep'.
12775         * libc/sys/h8300/crt0.S (_start): Call exit instead of `sleep'.
12776
12777 Wed Mar  6 11:51:55 1996  Doug Evans  <dje@charmed.cygnus.com>
12778
12779         * libc/posix/{creat.c,isatty.c}: New files.
12780         * libc/posix/Makefile.in (OFILES): Add creat.o, isatty.o.
12781
12782         * libc/sys/sparc64/crt0.S (environ): Delete.
12783         (.LHaveBias): Renamed from HaveBias.
12784
12785 Thu Feb 15 10:48:37 1996  Doug Evans  <dje@charmed.cygnus.com>
12786
12787         * libc/stdlib/mallocr.c (etext): Move decl inside ifdef WARN_VLIMIT.
12788         (_morecore_r): Delete SBRK_IS_ALLOC support.
12789
12790 Tue Feb 13 09:44:09 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
12791
12792         * libc/sys/cygwin32/Makefile.in (lib.a): Make lib.a with a dummy
12793         module rather than touch, so we don't get warning messages when
12794         all of the libraries are combined into libc.a.
12795
12796 Tue Feb 13 06:32:07 1996  Doug Evans  <dje@charmed.cygnus.com>
12797
12798         * libc/sys/sparclite/{Makefile.in,crt0.s}: Deleted.
12799         crt0.s replaced by version in libgloss.
12800
12801 Mon Feb  5 15:17:51 1996  J.T. Conklin  <jtc@rtl.cygnus.com>
12802
12803         * libc/reent/Makefile.in (OFILES): Add impure.o.
12804         * libc/reent/impure.o: New file, define initial reentrancy struct.
12805         * libc/reent/reent.c: Remove above definition.
12806
12807         * libm/math/sf_asinh.c: Fix typo.
12808
12809         * Makefile.in (MATHOBJS_IN_LIBC): Removed sr_ldexp.o and
12810         srf_ldexp.o.
12811         
12812         * libm/libm.texinfo: Change documentation to reflect changes
12813         in reentrancy model.
12814         * libm/math/w_gamma.c: Likewise.
12815
12816 Wed Jan 31 18:49:45 1996  Steve Chamberlain  <sac@slash.cygnus.com>
12817
12818         * configure.in (*-*-cygwin32): New.
12819         (*-*-win32): Deleted.
12820         * libc/sys/win32 renamed libc/sys/cygwin32.
12821
12822 Tue Jan 30 22:09:03 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
12823
12824         * libc/include/sys/file.h: New include file.
12825
12826 Fri Jan 26 15:52:54 1996  Steve Chamberlain  <sac@slash.cygnus.com>
12827
12828         * libc/include/machine/setjmp.h: Increase size of PPC jmp_buf.
12829
12830 Tue Jan 23 17:49:16 1996  Steve Chamberlain  <sac@slash.cygnus.com>
12831
12832         * libc/include/sys/wait.h (WIFSIGNALED): Fix.
12833
12834 Tue Jan 16 09:28:10 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
12835
12836         * doc/makedoc.c (realloc): Declare at file scope.
12837         (catchar): Not here.
12838
12839 Wed Dec 27 15:45:23 1995  Doug Evans  <dje@canuck.cygnus.com>
12840
12841         * Makefile.in (VERSION): Update to 1.7.0.
12842         * {libc,libm}/Makefile.in (VERSION): Likewise.
12843         * configure.in: Minor clean up of multilib stuff.
12844
12845         From David Johnson <davidj@ICSI.Berkeley.EDU>
12846         * {libc,libm}/Makefile.in (lib[cm].a): Delete library first.
12847
12848         * libc/stdlib/environ.c: New file.
12849         * libc/stdlib/Makefile.in (OFILES): Build it.
12850         * libc/sys/h8500hms/crt0.c (environ): Deleted.
12851         * libc/sys/m88kbug/crt0.c (environ): Deleted.
12852         * libc/sys/z8ksim/crt0.c (environ): Deleted.
12853         * libc/sys/netware/environ.c: Deleted.
12854
12855 Tue Dec 19 15:24:46 1995  Kim Knuttila  <krk@cygnus.com>
12856
12857         * configure.in (links): set sys_dir, posix_dir, syscall_dir
12858
12859 Wed Dec 13 04:16:25 1995  Michael Meissner  <meissner@wogglebug.tiac.net>
12860
12861         * doc/makedoc.c (init_string_with_size,nextword): Move malloc
12862         declaration out to external scope and declare it PTR, not char *.
12863
12864 Mon Dec 11 17:35:12 1995  steve chamberlain  <sac@slash.cygnus.com>
12865
12866         * libc/include/sys/unistd.h (getpagesize): New declaration.
12867         (_SC_PAGESIZE): New definition.
12868         * libc/include/time.h (CLK_TCK): Defined as CLOCKS_PER_SEC.
12869         * libc/configure.in (i[345]86-*-win32): Remove -DNO_FORK.
12870
12871 Fri Dec  1 16:48:46 1995  James G. Smith  <jsmith@cygnus.co.uk>
12872
12873         * libc/sys/vr4300/syscalls.c (sbrk): Fixed memory
12874         addressing. System call returns size, not (last address + 1).
12875
12876 Thu Nov 30 15:05:26 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
12877
12878         * libm/math/*.c: Removed _foo_r() reentrancy API.
12879         * libc/include/math.h: Removed _foo_r prototypes and macros.
12880
12881         * libm/math/*.c: On systems with IEEE single precision "doubles" 
12882         move foo() -> foof() wrapper code from the files that implement
12883         the standard IEEE double precision functions to the files that 
12884         implement IEEE single precision functions. (ie. On those systems
12885         sin is moved from s_sin.c to sf_sin.c).  There should eventually
12886         be use of a C extension (like gcc's alias attribute) so that the
12887         wrappers are not needed at all.
12888
12889         * libc/sys/sysnec810/sbrk.c: Cast &end to char * to get around
12890         strict NEC V810 compiler.
12891         * libc/misc/dprintf.c (getnumber): Cast char * to unsigned char *
12892         for same reason.
12893
12894 Wed Nov 29 14:25:05 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
12895
12896         * libc/stdlib/strtol.c (_strtol_r): Replaced with implementation
12897         from NetBSD C library.
12898         * libc/stdlib/strtoul.c (_strtoul_r): Likewise.
12899
12900         * libc/stdlib/assert.c (__assert): Renamed from __assertfail 
12901         and adapted from implementation I wrote for NetBSD C library.
12902         The difference is __assert doesn't take a format argument,
12903         so that there won't be multiple copies of the same string
12904         constant in the executable if assertions are enabled in
12905         more than one source module.
12906         * libc/include/assert.h (assert): Changed to call __assert.
12907
12908 Tue Nov 28 16:54:26 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
12909
12910         * libc/stdlib/strtod.c (_strtod_r): Changed to not assign to
12911         word1 on systems with 32 bit doubles.
12912         * libc/stdlib/qsort.c (qsort): Cast some void *'s to char *'s
12913         so that we can do arithmetic on them.
12914         * libc/misc/dprintf.c: Changed to support stdarg.h for ANSI
12915         compilers.
12916         
12917 Tue Nov 28 16:03:32 1995  Doug Evans  <dje@canuck.cygnus.com>
12918
12919         * libc/sys/arm/crt0.S: Zero bss.
12920
12921 Fri Nov 24 16:09:23 1995  Doug Evans  <dje@deneb.cygnus.com>
12922
12923         * libc/include/unctrl.h: New file.
12924         * libc/misc/{Makefile.in,dprintf.c,unctrl.c,misc.tex}: New files.
12925         * configure.in (subdirs): Add libc/misc.
12926         * libc/Makefile.in (SUBDIRS): Add misc.
12927         (SUBLIBS): Add misc/lib.a.
12928
12929         * libc/include/sys/reent.h (struct _reent): Make __sf last member.
12930
12931 Wed Nov 22 19:49:47 1995  Doug Evans  <dje@deneb.cygnus.com>
12932
12933         * libc/stdio/vfprintf.c (__sbprintf): Init fake._data.
12934         (_vfprintf_r): Call CHECK_INIT.
12935
12936 Tue Nov 14 02:52:12 1995  Doug Evans  <dje@canuck.cygnus.com>
12937
12938         * Makefile.in (MULTITOP): Delete.
12939         (MULTISRCTOP, MULTIBUILDTOP): Add.
12940         * configure.in: Delete call to cfg-ml-com.in.  Call config-ml.in
12941         instead of cfg-ml-pos.in.
12942
12943 Wed Nov  8 01:24:08 1995  James G. Smith  <jsmith@pasanda.cygnus.co.uk>
12944
12945         * libc/sys/vr4300/syscalls.c: Added clean version of sbrk().
12946         * libc/sys/vr4300/crt0.S: Cleaned up. Added check for FPU
12947         presence.
12948
12949 Thu Nov  2 22:25:06 1995  Michael Meissner  <meissner@tiktok.cygnus.com>
12950
12951         * libc/string/strtok.c: Include string.h to pick up strtok_r
12952         prototype.
12953
12954 Wed Nov  1 18:54:11 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
12955
12956         * libc/string/strtok.c: include <_ansi.h>.
12957         * libc/time/asctime_r.c: `reresult' -> `result'.
12958
12959 Wed Nov  1 14:35:52 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
12960
12961         * libc/time/{ctime.c, gmtime.c, lcltime.c}: Wrap functions
12962         in #ifndef _REENT_ONLY ... #endif conditional.
12963
12964         * libc/include/string.h (_strtok_r): Remove declaration.
12965         * libc/include/time.h (_asctime_r): Remove declaration.
12966         * libc/string/strtok.c (_strtok_r): Removed.
12967         * libc/time/asctime.c (_asctime_r): Removed.
12968
12969         * libc/string/Makefile.in (OFILES): Add new object.
12970         * libc/string/strtok_r.c: New file.  strtok_r function as
12971         specified by POSIX.1c, adapted from strtok implementation 
12972         from NetBSD C library.
12973         * libc/string/strtok.c (strtok): Reimplemented in terms of 
12974         strtok_r.
12975
12976         * libc/time/Makefile.in (OFILES): Add new objects.
12977         * libc/time/{asctime_r.c, ctime_r.c, gmtime_r.c, lcltime_r.c}:
12978         New files, reentrant time functions specified by POSIX.1c.
12979         * libc/time/{asctime.c, ctime.c, gmtime.c, lcltime.c}: Non-
12980         reentrant time functions re-written in terms of reentrant 
12981         functions.
12982         * libc/time/lcltime.c: Renamed from localtime.c
12983
12984         * libc/include/time.h: Add prototypes for asctime_r, ctime_r,
12985         gmtime_r, and localtime_r.
12986
12987 Sat Oct 28 14:34:31 1995  steve chamberlain  <sac@slash.cygnus.com>
12988
12989         * libc/sys/win32/crt0.c (mainCRTStartup): Call cygwin_crt0.
12990         * libc/include/sys/unistd.h (getlogin): Revert change of
12991         Oct 19.
12992         * libc/include/sys/signal.h (sigprocmask): Change prototype
12993         so it compiles with c++.
12994
12995 Wed Oct 25 15:43:18 1995  Michael Meissner  <meissner@cygnus.com>
12996
12997         * libc/include/machine/setjmp.h (PowerPC _JBLEN): Consider it a
12998         PowerPC if __PPC__ is defined.  Bump jump_buf length to 62 ints,
12999         to give some room in case we need to align the jmp_buf.
13000         
13001         * libc/machine/powerpc/setjmp.S (setjmp, longjmp): Rewrite to use
13002         the new ppc-asm.h include file the compiler provides to specify
13003         function prologue/epilogue.  Eliminate saves of the xer and ctr
13004         registers, which are volatile.  Before starting to save registers,
13005         align to 8 byte boundary.
13006
13007 Mon Oct 23 11:20:51 1995  James G. Smith  <jsmith@pasanda.cygnus.co.uk>
13008
13009         * libc/sys/vr4300/syscalls.c: Added empty kill() function,
13010         referenced by standard libraries.
13011
13012 Thu Oct 19 21:39:47 1995  Fred Fish  <fnf@cygnus.com>
13013         
13014         * libc/unix/Makefile.in, libc/string/Makefile.in,
13015         libc/stdio/Makefile.in, libc/reent/Makefile.in,
13016         libc/posix/Makefile.in:
13017         Remove tabs from otherwise empty line.  Confuses some
13018         older non-GNU versions of "make".
13019
13020 Thu Oct 19 16:32:17 1995  steve chamberlain  <sac@slash.cygnus.com>
13021
13022         * libc/sys/unistd.h (getlogin): Returns const char *.
13023
13024 Wed Oct 18 12:57:50 1995  steve chamberlain  <sac@slash.cygnus.com>
13025
13026         * libc/include/fcntl.h (O_BINARY, O_TEXT): New.
13027         * libc/include/errno.h: Moved into and include...
13028         * libc/include/sys/errno.h: New file.
13029         * libc/include/sys/wait.h: New file.
13030         * libc/stdio/rename.c (_rename_r): Use _rename system call if available.
13031         * libc/sys/win32/*: Moved out.
13032         * libc/sys/win32/crt0.c: Rewritten to cope with shared library.
13033         * configure.in (i[345]86-*-win32): HAVE_RENAME
13034
13035 Wed Oct 18 09:58:27 1995  Brendan Kehoe  <brendan@lisa.cygnus.com>
13036
13037         * libc/unix/sigset.c (sigemptyset, sigaddset): Prefix #undef to
13038         avoid macro expansion for these two names.
13039
13040 Tue Oct 17 08:45:33 1995  Doug Evans  <dje@canuck.cygnus.com>
13041
13042         * libc/machine/h8500/psi.S: r6 renamed to fp.
13043
13044 Sun Oct 15 12:58:10 1995  Michael Meissner  <meissner@wogglebug.tiac.net>
13045
13046         * configure.in (powerpc*): No longer need to define
13047         NO_LONGLONG_POINTERS to supress warnings.
13048
13049 Sat Oct 14 12:55:08 1995  Jim Wilson  <wilson@chestnut.cygnus.com>
13050
13051         * libc/reent/reent.c (_reclaim_reent): Call cleanup indirectly
13052         through PTR instead of directly.
13053
13054         * libc/sys/sh/crt0.S: Clean up formatting.  Delete unused
13055         non-standard constructor support.
13056
13057 Thu Oct 12 11:39:42 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
13058
13059         * libc/stdlib/dtoa.c (_dtoa_r): Set result pointer to the
13060         address of the Bigint instead of the address of its _x field,
13061         as the size the result buffer was calculated accordingly.  
13062         Fix from Jim Wilson <wilson@chestnut@cygnus.com>.
13063
13064         * libc/stdlib/{div.c, ldiv.c}: Replaced with implementation
13065         from NetBSD C library.  No longer special cases division by 
13066         zero (which needs to be done by the application anyway), but
13067         it doesn't need to call abs() (or labs()) four times either.
13068         
13069         * libc/stdlib/qsort.c: Replaced with implementation from 
13070         NetBSD C library.
13071
13072 Tue Oct 10 14:01:10 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
13073
13074         * libc/stdio/vfprintf.c: Replaced with implementation from
13075         NetBSD C library (which is derived from the 4.4BSD C library).
13076         * libc/stdio/cvt.c: Removed.
13077         * libc/stdio/Makefile: Updated.
13078         
13079 Tue Oct 10 12:15:23 1995  steve chamberlain  <sac@slash.cygnus.com>
13080
13081         * libc/sys/win32/syscalls.c (rename): New.
13082         * libc/sys/win32/include/winkernel.h (MoveFileExA): New.
13083
13084 Fri Oct  6 12:18:43 1995  Jim Wilson  <wilson@chestnut.cygnus.com>
13085
13086         * libc/machine/sh/Makefile.in (setjmp.o): Depend on setjmp.S.
13087         * libc/machine/sh/setjmp.S: Rename from setjmp.s.
13088
13089         * libc/sys/sh/Makefile.in (OFILES, all): Delete setjmp.o.
13090         (setjmp.o): Delete rule to build setjmp.o.
13091         * libc/sys/sh/setjmp.S: Delete file.
13092
13093 Fri Oct  6 11:19:05 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
13094
13095         * libc/stdlib/mprec.c (d2b): Added support for _DOUBLE_IS_32BITS.
13096         * libc/stdlib/mprec.h: Fixed constants used for IEEE single float
13097         format.  Added #defines to map d2b, i2b, low0bits, lshift, mult,
13098         pow5mult and s2b to identifiers with leading underscores.
13099         * libc/stdlib/Makefile.in: Add mprec.h as a dependency to dtoa.o,
13100         ecvtbuf.o, mprec.o and strtod.o.  Sort dependencies.
13101
13102 Thu Oct  5 17:27:30 1995  steve chamberlain  <sac@slash.cygnus.com>
13103
13104         * libc/sys/posix/popen.c (sys/types.h): Include.
13105
13106 Thu Oct  5 16:33:01 1995  Doug Evans  <dje@canuck.cygnus.com>
13107
13108         * libc/sys/win32/syscalls.h (fhandler): New struct.
13109         (__lookup_fhandler, __lookup_fhandler_hook): Declare.
13110         (__fhandler_normal): Declare.
13111         (hinfo): New member op_handlers.
13112         * libc/sys/win32/syscalls.c (__read): Don't validate fd.
13113         (__write): Likewise.
13114         (_read, _write, _open, _close, _lseek): Validate fd here.
13115         Move file type specific stuff to foo_normal.
13116         (read_normal, write_normal, open_normal, close_normal, lseek_normal):
13117         New functions.
13118         (__lookup_fhandler): New function.
13119         (__lookup_fhandler_hook, __fhandler_normal): New variables.
13120
13121         From anders.blomdell@control.lth.se (Anders Blomdell)
13122         * libc/sys/win32/crt0.c (vfork_init): Unset __FD_TABLE__.
13123         Don't touch standard handles.
13124         * libc/sys/win32/spawn.c (_spawn): Use STARTF_USESTDHANDLES.
13125         (_execve): Only create __FD_TABLE__ if necessary.
13126         * libc/sys/win32/include/winkernel.h (STARTF_*): Define.
13127
13128 Thu Oct  5 14:25:14 1995  steve chamberlain  <sac@slash.cygnus.com>
13129
13130         * libc/sys/win32/sys/termios.h (FLUSHO): New.
13131         * libc/sys/win32/include/win*.h: Moved a load of prototypes around.
13132         * libc/sys/win32/pipe.c (_fctnl): Ignore F_SETFL without errors.
13133         * libc/sys/win32/exception.c (ehandler3): set strace when a signal
13134         without a handler is received.
13135         * libc/sys/win32/Makefile.in: Remove --nodelete.
13136         * libc/sys/win32/resouce.c (gettimeofday): New.
13137         * libc/sys/win32/syscalls.c (path_to_real_path): New.
13138         * libc/sys/win32/syscalls.h (include/wincon.h): Don't include.
13139
13140 Wed Oct  4 13:10:35 1995  Doug Evans  <dje@canuck.cygnus.com>
13141
13142         * libc/sys/win32/dirsearch.c (opendir): stat real path name.
13143         Don't append "/*" to search pattern if trailing '/' already there,
13144         append "*".
13145         * libc/sys/win32/spawn.c (_spawn): CreateProcess doesn't seem to
13146         like /'s, convert them to \'s.  Handle //<drive>/ path names.
13147         Add space for quoted \'s in arg string.  Print translated prog name
13148         and original prog name.
13149         (_execve): Handle parent doing exec a teensy bit better.
13150         * libc/sys/win32/syscalls.h (__path_to_real_path): Update prototype.
13151         * libc/sys/win32/syscalls.c (__path_to_real_path): Don't assume
13152         path needs conversion, handle both cases.  Delete `const' from result.
13153         (hash_path_name): New function.
13154         (_open): Call it.
13155         (_stat): Likewise.  Fill in more fields for directories.
13156         * libc/sys/win32/wait.c (_wait): Explicitly pass -1 to waitpid.
13157         (wait_for_any): Fix trace message.
13158         (waitpid): Explicitly test for intpid == 0.
13159
13160         From anders.blomdell@control.lth.se (Anders Blomdell)
13161         * libc/sys/win32/spawn.c (__vfork_get_empty_entry): zero fill result
13162         so `next' is valid.
13163
13164 Sat Sep 30 15:00:15 1995  Jason Molenda  (crash@phyeaux.cygnus.com)
13165
13166         * libc/sys/win32/spawn.c (_spawn): Make quoting rules more
13167         complicated.
13168
13169 Sat Sep 30 10:25:57 1995  Jason Molenda    (crash@phydeaux.cygnus.com)
13170
13171         * libc/include/_ansi.h: set _HAVE_STDC if __STDC__ is defined
13172         at all, not just == 1.
13173         * libm/math/wf_acos.c (acosf): check for _HAVE_STDC, not __STDC__.
13174
13175 Sat Sep 30 04:30:09 1995  Jason Molenda   (crash@phydeaux.cygnus.com)
13176
13177         * libc/sys/win32/include/winbase.h: include <wintypes.h> and <winnt.h>
13178         * libc/sys/win32/include/wintypes.h: include <winnt.h>
13179         * libc/sys/win32/include/winnt.h: avoid multiple inclusion of this
13180         file.
13181
13182 Fri Sep 29 01:49:17 1995  steve chamberlain  <sac@slash.cygnus.com>
13183
13184         * libc/sys/syscalls.c (getcwd): Fix off by one error.
13185
13186         * libc/sys/signal.c (sleep): Fill it in.
13187         * libc/sys/termios.c (tcflush): Use PurgeComm
13188         (tcsetattr): Set some more of the bits.
13189         * libc/sys/include/winkernel.h: Add PurgeComm and Sleep.
13190
13191 Fri Sep 29 04:33:53 1995  Doug Evans  <dje@deneb.cygnus.com>
13192
13193         * libc/sys/arm/crt0.S (fp): Initialize to 0.
13194         Conditionally include .idata$3 stuff ifdef __pe__.
13195
13196 Fri Sep 29 01:49:17 1995  steve chamberlain  <sac@slash.cygnus.com>
13197
13198         * libc/sys/win32/crt0.c (hmap_init): Call __init_hinfo.
13199         * libc/sys/win32/pipe.c (pipe): Ditto.
13200         * libc/sys/win32/syscalls.c (__read):  Use new vtime and vmin fields.
13201         * libc/sys/win32/syscalls.h (hinfo): vtime, vmin are new.
13202         * libc/sys/win32/termios.c (tcsetattr): Init new fields.
13203         (tcgetattr): Contents are new.
13204         * libc/sys/win32/include/winkernel.h (DCB): New.
13205         (GetCommState, SetCommState): New.
13206
13207 Thu Sep 28 16:29:09 1995  Doug Evans  <dje@deneb.cygnus.com>
13208
13209         * libc/sys/arm/crt0.S (_start): Define.
13210
13211 Thu Sep 28 12:26:45 1995  steve chamberlain  <sac@slash.cygnus.com>
13212
13213         * libc/sys/arm/crt0.S: Move stack to top of RAM on PIE board.
13214         * libc/sys/arm/syscalls.c (_read, _write): Use the SWI properly.
13215
13216         * libc/sys/win32/sysconf.c: New
13217         * libc/sys/win32/sys/winadvapi.h: New
13218         * libc/sys/win32/syscalls.h (hinfo): Added timeout_len, w_binary, r_binary.
13219         * libc/sys/win32/crt0.c (hmap_init): Initialize new fields.
13220         * libc/sys/win32/pipe.c (pipe): Ditto.
13221         * libc/sys/win32/signal.c (_raise): New.
13222         (_kill): Moved from spawn.c
13223         * libc/sys/win32/spawn.c (kill): Moved to signal.c
13224         * libc/sys/win32/syscalls.c (__read): Use new fields.
13225         (_open): Ditto.
13226         * libc/sys/win32/termios.c (tcflush, tcsetattr, tcgetattr): Fill in.
13227         * libc/sys/win32/exceptions.c (__stack_trace): Keep going for longer.
13228         * libc/include/sys/unistd.h (rmdir): Takes const path.
13229         * libc/include/sys/stat.h (mkdir): Takes const path.
13230         * libc/include/sys/signal.h (SIGTTOU, SIGTTIN): New for win32.
13231
13232 Thu Sep 28 10:11:27 1995  Doug Evans  <dje@canuck.cygnus.com>
13233
13234         * libc/sys/win32/spawn.c (_spawn): Fix quoting.
13235
13236         Add support for specifying paths as //<drive>/foo/bar.
13237         * libc/sys/win32/syscalls.h (__path_needs_conversion_p): Declare.
13238         (__path_to_real_path): Declare.
13239         (PATH_TO_REAL_PATH): New macro.
13240         * libc/sys/win32/syscalls.c (__win32_pid_to_posix_pid): Minor cleanup.
13241         (__path_needs_conversion_p, __path_to_real_path): New functions.
13242         (_open): Fix test for error return from CreateFileA.
13243         Handle new path syntax.
13244         (_link, mkdir, rmdir, getcwd, chdir, stat): Handle new path syntax.
13245         * libc/sys/win32/dirsearch.c (opendir): Likewise.
13246
13247 Wed Sep 27 16:36:46 1995  steve chamberlain  <sac@slash.cygnus.com>
13248
13249         * libc/sys/win32/include/*.h: Reorganized
13250         * libc/sys/win32/include/WINREADME: New.
13251         * libc/sys/win32/Makefile.in (DLLS): Build version.a.
13252         * libc/sys/win32/*.c: Fix for new include scheme.
13253         * libc/sys/win32/crt0.c (__this_uinfo_buf, __this_uinfo): New.
13254         * libc/sys/win32/getlogin.c (getlogin): Use uinfo.
13255         * libc/sys/win32/passwd.c (*): Fix.
13256         * libc/sys/win32/syscalls.c (get[e|][g|u]id): Use passwd info.
13257         (_stat): Get directory owner and permissions right.
13258         * libc/sys/win32/syscalls.h (uinfo): New.
13259         * libc/sys/win32/version.def: Remove leading underscores.
13260
13261 Tue Sep 26 18:18:47 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
13262
13263         * libc/sys/win32/key.c: include "include/wincon.h".
13264
13265 Tue Sep 26 07:21:48 1995  steve chamberlain  <sac@slash.cygnus.com>
13266
13267         * libc/sys/win32/{key, stubs}.c: New.
13268         * libc/sys/win32/Makefile: Adjust to cope.
13269         * libc/sys/win32/crt0.c (vfork_init_first): Cope with -ve pids.
13270         (environ_init): Change env names to upper case.
13271         * libc/sys/win32/dirsearch.c (readdir): Don't fill in inode number.
13272         * libc/sys/win32/passwd.c (*): Fill in the functions.
13273         * libc/sys/win32/pipe.c (_fcntl): F_GETFL returns O_RDWR.
13274         * libc/sys/win32/spawn.c (_spawn): Cope with -ve pids.
13275         * libc/sys/win32/syscalls.c (__win32_pid_to_posix_pid): New function.
13276         (_open): Initialze hmap->execable_p too.
13277         * libc/sys/win32/syscalls.c (getuid, getgid, geteuid, getegid): Return from macros.
13278         (_fstat): Fill in permissions.
13279         * libc/sys/win32/syscalls.h (hinfo): Add execable_p.
13280
13281 Fri Sep 22 13:47:27 1995  Doug Evans  <dje@canuck.cygnus.com>
13282
13283         * configure.in (cfg-ml-com.in invocation): Use ${with_multilib_top}
13284         if defined.
13285         (cfg-ml-pos.in invocation): Likewise.
13286
13287 Fri Sep 22 11:43:44 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
13288
13289         * Makefile.in (MATHOBJS_IN_LIBC): Added s_isinf.o, sf_isinf.o,
13290         s_isnan.o and sf_isnan.o.
13291
13292 Wed Sep 20 14:50:19 1995  Ian Lance Taylor  <ian@cygnus.com>
13293
13294         * All Makefile.in files: added maintainer-clean target as a
13295         synonym for realclean.
13296
13297 Wed Sep 20 11:02:50 1995  Jeff Law  (law@snake.cs.utah.edu)
13298
13299         * libc/include/machine/setjmp.h: Add hppa support.
13300         * libc/machine/hppa/setjmp.S: New file with setjmp/longjmp
13301         support.
13302         * libc/machine/hppa/Makefile.in: Related changes.
13303
13304 Tue Sep 19 12:09:01 1995  J.T. Conklin  <jtc@blues.cygnus.com>
13305
13306         * configure.in (machine_dir): Don't set for v810-*-*.
13307
13308 Fri Sep 15 20:22:08 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
13309
13310         * libc/sys/win32/crt0.c (passover): Change to handle MKS quoting
13311         conventions correctly.
13312
13313 Thu Sep 14 13:37:22 1995  J.T. Conklin  <jtc@blues.cygnus.com>
13314
13315         * libc/stdio/puts.c: Update documentation of return value to match
13316         ANSI standard.
13317
13318 Thu Sep 14 01:52:37 1995  Doug Evans  <dje@canuck.cygnus.com>
13319
13320         Fix file descriptor inheritance.
13321         * libc/sys/win32/syscalls.h (CHILD_P): Define again.
13322         (NOT_OPEN_FD): Fix.
13323         * libc/sys/win32/spawn.c (vfork0): Only create inheritable handle if
13324         close-on-exec flag not set.  Initialize child's entire fd table.
13325         * libc/sys/win32/syscalls.c (_open): Only create inheritable handle if
13326         CHILD_P.
13327         * libc/sys/win32/pipe.c (pipe): Only create new handle as inheritable
13328         if CHILD_P.  Initialize entire hmap entry.
13329         (dup): Only create new handle as inheritable if CHILD_P.
13330         (dup2): Likewise.  Properly initialize hmap entry.
13331
13332         * libc/sys/win32/spawn.c (_execve): Don't pass _P_SEARCH_PATH to
13333         _spawn.
13334         (_exit): Use CHILD_P.
13335         * libc/sys/win32/syscalls.c (_fstat): Fix call to memset.
13336         (_stat): Likewise.
13337
13338 Mon Sep 11 23:09:39 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
13339
13340         * libc/sys/win32/crt0.c (passover): fix up the state table.
13341         * libc/posix/popen.c: Added.
13342         * libc/posix/Makefile.in: compile popen.c.
13343         
13344 Mon Sep 11 11:43:38 1995  J.T. Conklin  <jtc@cygnus.com>
13345
13346         * libc/include/machine/ieeefp.h: On the h8/300, h8/300h and
13347         h8/500 define _DOUBLE_IS_32BITS.
13348
13349 Sat Sep  9 17:55:54 1995  Doug Evans  <dje@canuck.cygnus.com>
13350
13351         Get vfork/exec/spawn/cwait/wait working again.
13352         * libc/sys/win32/syscalls.h (VFORK_NEWBORN_PSEUDO_PID): Define.
13353         (procinfo): New member vfork_level.
13354         * libc/sys/win32/crt0.c (__vfork_next_pid): Delete.
13355         (vfork_init_first): Use GetCurrentProcessId to get pid.
13356         Initialize vfork_level.
13357         (vfork_init): Delete __PID__.
13358         (environ_init): New function.  Undo patch of Aug 19, Posix says
13359         environment variables are case sensitive.
13360         (mainCRTStartup): Call it.
13361         * libc/sys/win32/spawn.c (__vfork_next_pid): Delete.
13362         (my_longjump: Make static.
13363         (_spawn): New argument `h'.  Delete setting of __PID__.
13364         Delete local `idx'.  Look for chars that need quotes, rather than
13365         ones that don't.  Set handle of created process in `h'.
13366         Result is process id if created task.
13367         (allocate_spawn_entry): New function.
13368         (spawnvp, spawnv): Call it.  Store handle and pid in procinfo entry.
13369         (_execve): Set __FD_TABLE__ before spawning child.
13370         Scan our fd table when passing fds, not our parent's.
13371         Store handle and pid in procinfo entry.
13372         (vfork0): Ensure strace message always printed.
13373         Set child pid to VFORK_NEWBORN_PSEUDO_PID.
13374         (vfork): Don't clobber result of vfork0.
13375         * libc/sys/win32/wait.c (cwait): Fix non-error result (is pid).
13376         (wait_for_any): Ignore processes in state FORK_STATE_VFORK_0.
13377
13378         * libc/sys/win32/syscalls.h (procinfo): New members `handle_valid_p'
13379         and `exit_code'.
13380         * libc/sys/win32/spawn.c (allocate_spawn_entry): Initialize them.
13381         (vfork0): Likewise.  Distinguish children, grandchildren, etc. by
13382         adding vfork level to pseudo-pid.  
13383         (vfork1): If not root, set state back to FORK_STATE_VFORK_0.
13384         (spawnvp, spawnv, _execve): Set handle_valid_p if success.
13385         (_exit): If child, set exit code.
13386         (__vfork_record_death): Only close process handle if valid.
13387         * libc/sys/win32/wait.c (wait_for_single): Watch for children that
13388         didn't exec.
13389         (wait_for_any): Likewise.  Start scan after root entry.
13390
13391 Fri Sep  8 18:48:02 1995  Jason Molenda   (crash@phydeaux.cygnus.com)
13392
13393         * libc/include/sys/types.h (off_t): off_t back to 32 bits.
13394         * libc/include/sys/_types.h (_off_t): _off_t back to 32 bits.
13395         * libc/sys/win32/syscalls.c (_fstat): st_size is lower 32-bits
13396         of actual file length.
13397
13398         * libc/sys/win32/sys/wait.h: include <sys/types.h>.
13399         * libc/include/paths.h: _PATH_BSHELL added.
13400         * libc/include/sys/unistd.h: define STDIN_FILENO, STDOUT_FILENO,
13401         and STDERR_FILENO.
13402
13403 Thu Sep  7 21:02:22 1995  Jason Molenda   (crash@phydeaux.cygnus.com)
13404
13405         * libc/include/ar.h: Added.
13406         * libc/include/sys/types.h: ino_t goes back to 32-bits.
13407         * libc/sys/win32/syscalls.h (hinfo): added .namehash field.
13408         * libc/sys/win32/syscalls.c (_open): compute .namehash based
13409         on filename.
13410         (_fstat): use .namehash for inode number of the fd.
13411
13412 Thu Sep  7 12:57:19 1995  steve chamberlain  <sac@slash.cygnus.com>
13413
13414         * libc/sys/win32/{console,ioctl,pipe,spawn,syscalls,wait}.? (*):
13415          Change hinfo to __this_procinfo.
13416         * libc/sys/win32/crt0.c: Remove procinfo_list.
13417
13418 Wed Sep  6 18:38:26 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
13419
13420         * libc/include/sys/types.h (ino_t): Define ino_t correctly for
13421         win32 environment.
13422
13423 Wed Sep  6 18:09:29 1995  Jason Molenda   (crash@phydeaux.cygnus.com)
13424
13425         * libc/sys/win32/include/grp.h: Removed.
13426         * libc/sys/include/grp.h: Added.
13427         * libc/sys/win32/grp.c: Include <grp.h>.
13428
13429 Wed Sep  6 16:52:48 1995  steve chamberlain  <sac@slash.cygnus.com>
13430
13431         * libc/include/sys/signal.h (__need_MAX_SIGNALS): Removed.
13432         (sigset_t, sigaction, SIG_SETMASK, SIG_BLOCK, SIG_UNBLOCK):
13433         Defined for all but strict ANSI.
13434         * libc/include/sys/reent.h (__need_MAX_SIGNALS): Removed.
13435         * libc/include/machine/setjmp.h: Get win32 _JBLEN right.
13436         * libc/signal/signal.c (_signal_r): Changed from using
13437         _MAX_SIGNALS to NSIG.  
13438         * libc/sys/win32/crt0.c (__current_pid, __parent_hmap, __child_hmap,
13439          __hmap): Deleted.
13440         (__strace, __vfork_next_pid): New.
13441         (__exe_suffix): Default to 1.
13442         (passover, table): Understand quoted arguments.
13443         (vfork_init_first): New.
13444         (vfork_init): Initialize new process structure.
13445         (mainCRTStartup): Pass environ to main.
13446         * exceptions.c (__sig_mask): New
13447         (ehandler3): Ignore signals in mask.
13448         (really_exit): Remove CHILD_P test.
13449         * pipe.c (pipe, dup, dup2): Use new process and file structure.
13450         * resource.c (getrusage): Ditto.
13451         * signal.c (sigprocmask): New.
13452         * spawn.c (*): Rewritten.
13453         * syscalls.c (*): Use new process and file structure.
13454         (find_unused_handle): New.
13455         * syscalls.h (MAX_HANDLES): Deleted.
13456         (hinfo): Removed child_created_p.
13457         (MAX_CHILDREN): Deleted.
13458         (vfork_jmp_info, procinfo): New.
13459         * wait.c (*): Mostly new.
13460         * sys/strace.h (_STRACE_PARANOID): New.
13461         * sys/param.h: New file.
13462
13463 Wed Sep  6 17:03:53 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
13464
13465         * libc/include/sys/stat.h: add S_BLKSIZE.
13466         * libc/include/sys/_types.h: _off_t is a 64-bit type under win32.
13467         * libc/include/sys/types.h: define off_t and ino_t to be 64 bit
13468         types under win32.
13469         (mode_t): add a #else to avoid multiple definitons.
13470
13471         * libc/sys/win32/Makefile.in: add grp.c.
13472         * libc/sys/win32/grp.c: include grp.h correctly.
13473         * libc/sys/win32/syscalls.c (_fstat): set almost all of the fields
13474         of the st structure with real information.
13475         * libc/sys/win32 (dirent): d_ino is of type ino_t.
13476
13477 Wed Sep  6 10:41:34 1995  Doug Evans  <dje@canuck.cygnus.com>
13478
13479         * libc/include/sys/types.h (mode_t): Correct for svr4 sparc's
13480         and (maybe) sparc64.
13481         (nlink_t): Provide typedef.
13482
13483 Tue Sep  5 18:46:05 1995  Jason Molenda   (crash@phydeaux.cygnus.com)
13484
13485         * libc/sys/win32/grp.c: New file.
13486         * libc/sys/win32/include/grp.h: New file.
13487
13488 Tue Sep  5 13:47:27 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
13489
13490         * libc/include/machine/ieeefp.h: Added whitespace to make this
13491         file easier to maintain.
13492         On the sh, define either __IEEE_BIG_ENDIAN or __IEEE_LITTLE_ENDIAN
13493         depending on the value of __LITTLE_ENDIAN__.
13494         On the sh3e, define _DOUBLE_IS_32BITS.
13495         
13496 Fri Sep  1 15:35:18 1995  James G. Smith  <jsmith@beauty.cygnus.com>
13497
13498         * libc/sys/vr4300/syscalls.c: Added missing support
13499         routines. _raise() and getpid().
13500
13501 Fri Sep  1 14:12:48 1995  James G. Smith  <jsmith@rtl.cygnus.com>
13502
13503         * configure.in (mips*vr4300*-*-elf): Fixed silly mistake
13504
13505 Fri Sep  1 08:42:11 1995  James G. Smith  <jsmith@beauty.cygnus.com>
13506
13507         * configure.in (mips*vr4300*-idt-*) Add support for RISQ monitor
13508         and VR4300 processor.
13509         * libc/sys/vr4300: Add directory.
13510         * libc/sys/vr4300/{Makefile.in, crt0.S, syscalls.c}: Add SIM
13511         monitor run-time support.
13512
13513 Thu Aug 31 09:16:52 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
13514
13515         * libc/stdlib/Makefile.in (CHEWOUT_FILES): Removed atol.def.
13516         * libc/stdlib/stdlib.tex: Don't include atol.def.
13517
13518 Wed Aug 30 20:38:28 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
13519
13520         * libc/sys/win32/uname.c (uname): hardcode processor as `i386'.
13521
13522 Wed Aug 30 10:48:08 1995  steve chamberlain  <sac@slash.cygnus.com>
13523
13524         * libc/ctype/Makefile.in: Fill in _to* dependencies.
13525
13526 Tue Aug 29 17:14:29 1995  steve chamberlain  <sac@slash.cygnus.com>
13527
13528         * libc/sys/win32/{dirsearch.c,sys/dirent.h}: Fix namespace problems.
13529         * libc/sys/win32/sys/dirent.h (struct dirent): Added d_ino.
13530         * libc/sys/win32/strace.c (__sys_printf): Increase size of buffer.
13531         * libc/sys/win32/smallprint.c (__small_vsprintf): Remove debug.
13532         * libc/sys/win32/dirsearch.c (readdir): Set d_ino.
13533
13534 Tue Aug 29 19:00:09 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
13535
13536         * libc/stdlib/atol.c (atol): DEFUN -> _DEFUN.
13537
13538 Tue Aug 29 16:08:09 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
13539
13540         * libc/stdlib/Makefile.in (OFILES): Added atoff.o and atol.o.
13541         * libc/stdlib/atoff.c: New file.
13542         * libc/stdlib/atof.c (atoff): Moved to atoff.c.
13543         * libc/stdlib/atoi.c (atol): Removed.
13544         * libc/stdlib/atol.c: Removed duplicate documentation.
13545
13546         * libc/include/ctype.h (_tolower, _toupper): Moved inside
13547         #ifndef _STRICT_ANSI conditional.
13548         * libc/ctype/Makefile.in (OFILES): Added _tolower.o and _toupper.o
13549         * libc/ctype/_tolower.c: New file.
13550         * libc/ctype/_toupper.c: New file.
13551         * libc/ctype/tolower.c (_tolower): Moved to _tolower.c.
13552         * libc/ctype/toupper.c (_toupper): Moved to _toupper.c.
13553         * libc/ctype/toascii.c (_toascii): Removed.
13554
13555 Tue Aug 29 12:17:32 1995  Doug Evans  <dje@canuck.cygnus.com>
13556
13557         * libc/sys/sparc64/sys/types.h: Deleted.
13558
13559 Mon Aug 28 22:06:08 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
13560
13561         * libc/sys/win32/uname.c (uname): change `Windows/NT' to `Windows_NT'
13562         and recognize Windows_95 systems.
13563
13564 Mon Aug 28 19:50:54 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
13565
13566         * libc/sys/win32/crt0.c (vfork_init, hmap_init): standard I/O fds
13567         and passed fds should be opened in text mode.
13568
13569 Mon Aug 28 18:51:22 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
13570
13571         * libc/sys/win32/crt0.c (vfork_init): mark passed fds as used
13572         in __hmap, set to binary mode by default.
13573
13574 Tue Aug 22 14:12:37 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
13575
13576         * libc/sys/sh/syscalls.c: Updated all functions to call __trap34.
13577         * libc/sys/sh/trap.S (__trap34): Renamed from __trap3.  Use trap
13578         vector 34.
13579
13580 Sat Aug 19 18:25:37 1995  steve chamberlain  <sac@slash.cygnus.com>
13581
13582         * Makefile.in (install): Install all libraries found in the
13583         top level.  If there's a sys/<type>/include directory,
13584         install those headers into include.
13585
13586         * libc/sys/win32/kernel.def351: Delete
13587         * libc/sys/win32/{comctl32.def, comdlg32.def, ctl3d32.def,
13588         glaux.def, glu32.def, largeint.def, libc.def, libcmt.def,
13589         lz32.def, mgmtapi.def, mpr.def, msacm32.def, msvcrt.def,
13590         nddeapi.def, netapi32.def, odbc32.def, odbccp32.def, oldnames.def,
13591         ole32.def, oleaut32.def, opengl32.def, rasapi32.def, rpcndr.def,
13592         rpcns4.def, rpcrt4.def, scrnsave.def, shell32.def, snmp.def,
13593         uuid.def, vdmdbg.def, version.def, vfw32.def, win32spl.def,
13594         winmm.def, winspool.def, winstrm.def, wsock32.def}: New.
13595
13596         * libc/sys/win32/Makefile.in: Update for new files and new dlltool options.
13597         * libc/sys/win32/crt0.c: Force all env names to upper case.
13598         * libc/sys/win32/sys/win*.h -> libc/sys/win32/include
13599         * libc/sys/win32/*.c: Headers have moved.
13600         * libs/sys/win32/*.[ch]: Test for open_p rather than BAD_HANDLE,
13601         __vfork_child_idx is now __vfork_child_ptr.
13602
13603         * posix/execvp (execvp): Don't crash if no PATH envname.
13604
13605 Fri Aug 18 12:22:59 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
13606
13607         * libc/include/sys/reent.h (_Bigint): Removed _reclaim field.
13608         * libc/reent/reent.c (_reclaim_reent): Free Bigint's by going
13609         through the _freelist instead of through the _reclaim list.
13610         * libc/stdlib/mprec.c (_Balloc): Don't put new node on _reclaim list.
13611         * libc/stdlib/mprec.c (_Bcopy): Make like version in master dtoa.c
13612         sources.
13613
13614 Thu Aug 17 11:03:27 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
13615
13616         * libc/machine/h8500/setjmp.S: New file.
13617         * libc/include/machine/setjmp.h: Updated for H8/500.
13618
13619 Wed Aug 16 16:19:11 1995  steve chamberlain  <sac@slash.cygnus.com>
13620
13621         * libc/sys/win32/syscalls.c (_open): More stracing.
13622         (_stat): Open the file in O_BINARY.
13623
13624 Wed Aug 16 15:49:01 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
13625
13626         * libc/machine/h8300/setjmp.S: New file.
13627         * libc/include/machine/setjmp.h: Updated for H8/300 and H8/300H.
13628
13629 Tue Aug 15 10:31:09 1995  Doug Evans  <dje@canuck.cygnus.com>
13630
13631         * libc/sys/win32/crt0.c (__exe_suffix): New global.
13632         (mainCRTStartup): Set __exe_suffix from LIBC_EXE_SUFFIX.
13633         * libc/sys/win32/spawn.c (_spawn): Add .exe suffix based on
13634         __exe_suffix.  Free fd_tab after setting env variable.
13635         (spawnv,_execve): Update.
13636         * libc/sys/win32/syscalls.h (__exe_suffix): Declare.
13637         * libc/sys/win32/smallprint.c (puts,putn): New (static) functions.
13638         (__small_vfprintf): New function.
13639         * libc/sys/win32/strace.c (__sys_printf): Call __small_vfprintf.
13640         * libc/sys/win32/wait.c (cwait): Validate argument.
13641
13642         * libc/sys/win32/syscalls.c (queue_file_deletion): Add trace message.
13643         (process_deletion_queue): Likewise.
13644
13645         * libc/sys/win32/Makefile.in (lib.a): Don't call $(RANLIB).
13646
13647 Mon Aug 14 10:14:10 1995  steve chamberlain  <sac@slash.cygnus.com>
13648
13649         * libc/sys/win32: Copyrights and gratuitous indenting.
13650
13651 Mon Aug 14 01:32:58 1995  Doug Evans  <dje@canuck.cygnus.com>
13652
13653         * libc/sys/win32/syscalls.c (queue_file_deletion): Finish.
13654         (process_deletion_queue): Likewise.
13655         (__close_all_files): New function.
13656         (_close): Only queue file deletion if really a file.
13657         * libc/sys/win32/spawn.c (_spawn): Only ensure .exe suffix if
13658         _P_APPEND_EXE.
13659         (_exit): Call __close_all_files.
13660
13661         * libc/stdlib/system.c: #include <errno.h>.
13662         (_system_r): Fix results in -DNO_EXEC case.
13663
13664         * libc/sys/win32/sys/dirent.h (DIR): New member __d_dirname.
13665         Reorganize structure.
13666         * libc/sys/win32/dirsearch.c (opendir): Use stat to determine
13667         if argument is valid.  Save directory name in DIR.  malloc space
13668         for dirent struct separately.
13669         * libc/sys/win32/syscalls.c (stat): Fix test for directory.
13670
13671         * libc/include/errno.h (ENAMETOOLONG): Define.
13672         * libc/string/strerror.c (strerror): Reword ENFILE.
13673         Add ENOSYS, ENMFILE, ENOTEMPTY, ENAMETOOLONG.
13674
13675 Sun Aug 13 22:42:25 1995  Doug Evans  <dje@canuck.cygnus.com>
13676
13677         * libc/sys/win32/crt0.c (__progname): New global.
13678         (mainCRTStartup): Support strace=bitmask,filename.
13679         * libc/sys/win32/dirsearch.c (all fns): Add trace messages.
13680         * libc/sys/win32/syscalls.c (_write): Print parent trace message
13681         if error.
13682         (getcwd): Handle len too small.  Convert '\\' to '/'.
13683         * libc/sys/win32/sys/fcntl.h (O_RDWR): = O_RDONLY|O_WRONLY.
13684         Add prototypes for open, creat, fcntl.
13685         (O_APPEND): Change value to conform to Microsoft's value.
13686         * libc/sys/win32/sys/strace.h (_STRACE): Protect in do/while.
13687
13688         * libc/stdlib/getopt.c: New file.
13689         * libc/stdlib/Makefile.in: Build it.
13690
13691 Sat Aug 12 12:17:14 1995  Doug Evans  <dje@canuck.cygnus.com>
13692
13693         * libc/posix/execvp.c (execvp): Watch for DOS drives ifdef _WIN32.
13694         Fix scanning of $PATH.
13695         * libc/posix/exec*.c: Call _execve, not execve.
13696         * libc/posix/execve.c: New file.
13697         * libc/posix/Makefile.in (OFILES): Add execve.o.
13698
13699         * libc/sys/win32/sys/strace.h (_STRACE_ALL, _STRACE_UHOH,
13700         _STRACE_STARTUP, _STRACE_SYSCALL): More bit masks of things to trace.
13701         (_STRACE): If level==0, always print.  Handle new bit mask scheme.
13702         * libc/sys/win32/crt0.c: Update _STRACE calls.
13703         * libc/sys/win32/{pipe.c,resource.c,spawn.c,syscalls.c,wait.c}: Ditto.
13704
13705         * libc/sys/win32/smallprint.c (rn): Fix digit list.
13706
13707         * libc/sys/win32/syscalls.c (__really_exit): Move from here,
13708         * libc/sys/win32/exceptions.c (really_exit): to here. Avoid recursion.
13709         * libc/sys/win32/spawn.c (spawnvp): Pass `prog' as image name.
13710         Print __seterrno trace message first.
13711         (_execve): Renamed from execve.
13712         (vfork): Update __strace usage.
13713         (__vfork_child_pid): Deleted.
13714         (__vfork_children, __vfork_child_idx): New globals.
13715         (_spawnvp): New function.
13716         (spawnvp, spawnv, _execve): Call _spawnvp.
13717         (init_child): Record child in __vfork_children.
13718         (__vfork_get_entry, __vfork_record_death): New functions.
13719         * libc/sys/win32/crt0.c (mainCRTStartup): Initialize __vfork_children.
13720         * libc/sys/win32/kernel32.def (WaitForMultipleObjects): Define.
13721         * libc/sys/win32/syscalls.h (CHILD_P): New macro.  All files updated.
13722         (MAX_CHILDREN, CHILD_INTERIM_PID): Define.
13723         (children): New typedef.
13724         (__vfork_children,__vfork_child_idx): Declare.
13725         (__vfork_get_entry,__vfork_record_death): Declare.
13726         * libc/sys/win32/wait.c (wait_for_single,wait_for_any): New functions.
13727         (waitpid): Handle pid == -1.
13728         * libc/sys/win32/sys/wintypes.h (WaitForMultipleObjects): Declare.
13729         * configure.in (i386-win32): Add -DNO_FORK.
13730         * libc/syscalls/sysfork.c (fork): Don't define for NO_FORK.
13731         * libc/reent/execr.c (_fork_r): Likewise.
13732         * libc/stdlib/system.c (do_system): New function.
13733         If WIN32, try to get shell path from $SH_PATH, use vfork.
13734         (_system_r): Return 1 for (s == NULL) if WIN32 or unix,
13735         otherwise return 0.
13736
13737 Sat Aug 12 11:08:00 1995  steve chamberlain  <sac@slash.cygnus.com>
13738
13739         * libc/stdlib/{mallocr.c, mstats.c}: Move mstats from mallocr to mstats.c.
13740         * libc/sys/win32/fcntl.h: Don't include self.
13741         * libc/sys/win32/sys/strace.h (_STRACE_WM, _strace_wm): New.
13742         * libc/sys/win32/sys/winbase.h: (GetUserName) New.
13743         * libc/sys/win32/sys/wincon.h (HANDLER_ROUTINE): Define correctly.
13744         * libc/sys/win32/sys/wintypes.h (GetFileType, GetCurrentProcess, CloseHandle,
13745         SetFilePointer, CreateFileA, GetFileInformationByHandle, GetStdHandle):
13746         Correct prototypes.
13747         * libc/sys/win32/strace.c: New file.
13748         * libc/sys/win32/smallprint.c: New file.
13749         * libc/sys/win32/crt0.c (func): Delete.
13750         (mainCRTStartup): Fix alloca usage.  Set handles explictly.
13751         * libc/sys/win32/dirsearch.c: Clean up handle usage, fix calls to __seterrno.
13752         * libc/sys/win32/exceptions.c: Lint.
13753         * libc/sys/win32/{ioctl.c, pipe.c, resource.c, spawn.c, cwait.c, syscalls.c}:
13754         Clean up handle usage.
13755         * libc/sys/win32/syscalls.c (__sys_printf): Moved into strace.c
13756         (open.c): Default file type is text.
13757         * libc/sys/win32/uname.c (uname): Use __small_sprintf.
13758         * libc/sys/win32/advapi32.def: New      
13759
13760 Fri Aug 11 17:11:52 1995  Doug Evans  <dje@canuck.cygnus.com>
13761
13762         * configure.in (posix_dir, libc_posix_lib): New variables.
13763         Define LIBC_POSIX_LIB in makefile to be $libc_posix_lib.
13764         (i[345]86-*-win32): Define posix_dir.
13765         Delete -DNO_EXEC.  Define -DHAVE_OPENDIR.
13766         (if unix_dir): Fix typo.
13767         * libc/posix/{Makefile.in,closedir,opendir,readdir,rewinddir,
13768         scandir,seekdir,telldir}: New files.
13769         * libc/posix/{execl.c,execle.c,execlp.c,execv.c,execvp.c}: Move here
13770         from libc/unix.
13771         * libc/Makefile.in (LIBC_POSIX_LIB): Define.
13772         (SUBDIRS): Add posix.
13773         (SUBLIBS): Add $(LIBC_POSIX_LIB).
13774
13775         * libc/include/sys/signal.h (SIGCHLD): Add for _WIN32.
13776         (NSIG): Increase to 21.
13777         * libc/include/sys/unistd.h (pid_t): Move from here,
13778         * libc/include/sys/types.h (pid_t): to here.
13779
13780         * libc/sys/win32/syscalls.h: #include "sys/strace.h".
13781         (__ptrace): Delete.
13782         (hinfo): New members close_exec_p, child_created_p.
13783         (struct exception_list): Define.
13784         (__hmap): Redefine as pointer to table.
13785         (__parent_hmap, __child_hmap): New globals.
13786         (__set_errno, __really_exit): Declare.
13787         (__vfork_child_pid): Declare.
13788         * libc/sys/win32/crt0.c (__strace, __trace_file): New global.
13789         (__orig_stdin, __orig_stdout, __orig_stderr): New globals.
13790         (__parent_hmap, __child_hmap): New globals.
13791         (__hmap): Redefine as pointer to active map.
13792         (__get_console): New function.
13793         (mainCRTStartup): Change leading '=' in environ vars to '!'.
13794         (env __FD_TABLE__): Watch for this and initialize our fd/handle
13795         mapping table from it if defined.
13796         (argv, envp): Dump if __strace >= 4.
13797         (main): Call here.
13798         * libc/sys/win32/exceptions.c (myp): Redefine.
13799         (__syscalls_b): Delete.
13800         (__stack_trace): New function.
13801         (ehandler3): Update to use _STRACE.  Print stack trace.
13802         Call __really_exit instead of exit.
13803         (init_exceptions): Delete args argc,argv.  New arg mine.
13804         * libc/sys/win32/kernel32.def (CreatePipe, DuplicateHandle, FindClose,
13805         FindFirstFileA, FindNextFileA, GetComputerNameA,
13806         GetEnvironmentVariableA, ReadFile, SetEnvironmentVariableA): Define.
13807         * libc/sys/win32/signal.c (signal): Validate arg.
13808         (alarm, sleep): Define as stubs for now.
13809         * libc/sys/win32/syscalls.c (all fns): Update to use _STRACE.
13810         (__syscalls_b, errno): Delete.
13811         (__vfork_child_pid, __vfork_jmp_buf): New globals.
13812         (__seterrno): Handle more errors.
13813         (__sys_printf): Renamed from _ptrace.
13814         (__really_exit): New function.
13815         (queue_file_deletion, process_deletion_queue): New functions.
13816         (__resume_parent): New function.
13817         (_unlink): Handle trying to delete open file.
13818         (__totime_t): Renamed from totime_t.
13819         (setsid, __read, __write): New functions.
13820         (cwait, spawnvp, R, D, getrusage, _execve, _fork, _wait): Delete.
13821         * libc/sys/win32/{dirsearch.c,getlogin.c,misc.c,resource.c,passwd.c,
13822         times.c,spawn.c,pipe.c,wait.c,termios.c,ioctl.c,uname.c}: New files.
13823         * libc/sys/win32/console.c: Update to new definition of __hmap.
13824         * libc/sys/win32/Makefile.in: Build new files.
13825         * libc/sys/win32/sys/{dirent.h,winerror.h,wait.h,termios.h}: New files.
13826         * libc/sys/win32/sys/{ioctl.h,utsname.h}: New files.
13827         * libc/sys/win32/sys/strace.h: Renamed from ptrace.h.
13828         * libc/sys/win32/sys/wintypes.h (GetCurrentDirectoryA): Fix prototype.
13829
13830 Thu Aug 10 16:32:52 1995  Doug Evans  <dje@canuck.cygnus.com>
13831
13832         * libc/sys/h8500hms/misc.c (kill): Handle SIGABRT.
13833
13834 Thu Aug 10 12:07:38 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
13835
13836         * libc/stdlib/{dtoa.c, strtod.c}: Merged assorted changes that
13837         have been made to the master dtoa.c sources (from netlib.att.com)
13838         since they were integrated into newlib in early 1992.  Fixes
13839         problems with storage leaks and handling of numbers with very
13840         negative exponents.
13841         
13842 Wed Aug  9 14:18:39 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
13843
13844         * Makefile.in (all): set rootpre and srcrootpre before calling
13845         sub-makes.
13846
13847 Tue Aug  8 17:20:45 1995  steve chamberlain  <sac@slash.cygnus.com>
13848
13849         * libc/sys/win32/crt0.c: Change __hmap usage.
13850         * libc/sys/win32/exceptions.c: Use _ptrace call.
13851         * libc/sys/win32/syscalls.c: Use _ptrace call.
13852         (read, write): Cope with DOS style CRLF when in TEXT mode.
13853         * libc/sys/win32/syscalls.h: Declare hinfo struct.
13854         * libc/sys/win32/user32.def: Get DefWindowProc arg list right.
13855         * libc/sys/win32/sys/fcntl.h, ptrace.h: New.
13856         * libc/sys/win32/sys/windows.h: Fill in rest of messages.
13857         * libc/sys/win32/sys/wintypes.h: Fix attribute syntax.
13858
13859 Mon Aug  7 13:04:54 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
13860
13861         * libc/include/math.h (cabs, cabsf, drem, dremf): New declarations.
13862
13863         * libm/math/{w_cabs.c, wf_cabs.c, w_drem.c, wf_drem.c}: New files,
13864         wrappers for hypot() and remainder() for BSD libm compatibility.
13865         These are public domain implementations written by me for the
13866         NetBSD libm some time ago.  Note cabs() is required by ucbtest.
13867         * libm/math/Makefile.in (obj): Added w_cabs.o and w_drem.o.
13868         (fobj): Added wf_cabs.o and wf_drem.o.
13869
13870 Thu Aug  3 08:13:05 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
13871
13872         * libc/sys/h8500hms/misc.c: New file.
13873         * libc/sys/h8500hms/Makefile.in (OFILES): Add misc.o.
13874
13875 Wed Aug  2 16:46:27 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
13876
13877         * libc/time/localtime.c (localtime): Fix problem with leap year
13878         handling.  Stole algorithm from Arthur David Olson's tz code.
13879         
13880 Mon Jul 31 10:21:54 1995  steve chamberlain  <sac@slash.cygnus.com>
13881
13882         * configure.in: (z8k-*sim): Renamed z8k-*-coff.
13883
13884         * libc/sys/z8ksim/glue.c (_getpid, _kill): New
13885         (_exit): Use argument.
13886
13887 Fri Jul 28 15:17:04 1995  Doug Evans  <dje@canuck.cygnus.com>
13888
13889         * libc/sys/win32/sys/winbase.h (_WINBASE_H): Define.
13890
13891 Wed Jul 26 16:24:19 1995  steve chamberlain  <sac@slash.cygnus.com>
13892
13893         * libc/sys/sh/trap.S (perrno): Align correctly. (pr 7532)
13894
13895 Mon Jul 24 13:42:52 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
13896
13897         * configure.in (sparc*): Add -DMALLOC_ALIGNMENT=8 to
13898         target_cflags.
13899
13900 Mon Jul 24 11:42:07 1995  steve chamberlain  <sac@slash.cygnus.com>
13901
13902         * libc/sys/win32/crt0.c (mainCRTStartup):  Look for
13903         ptrace with case insensitivity
13904         * libc/sys/win32/{user32.def, gdi32.def, exceptions.c, screen.c,
13905         sys/winbase.h,  sys/windows.h, sys/wintypes.h, sys/winuser.h}:
13906         New files.
13907
13908 Fri Jul 21 11:22:26 1995  Doug Evans  <dje@canuck.cygnus.com>
13909
13910         * Makefile.in: Multilib support moved to ../cfg-ml-{com,pos}.in.
13911         (MULTITOP, MULTIDIRS, MULTISUBDIR, MULTIDO, MULTICLEAN): New variables.
13912         (all, install, *clean): Use new multilib support.
13913         * configure.in: Multilib support moved to ../cfg-ml-{com,pos}.in.
13914
13915 Fri Jul 21 07:11:42 1995  steve chamberlain  <sac@slash.cygnus.com>
13916
13917         * libc/include/sys/signal.h (__WIN32__): New.
13918
13919         * configure.in (i386-*-win32): Remobe SBRK_IS_ALLOC.
13920
13921         * libc/stdlib/mprec.c (Balloc): Fix trampling problem.
13922         (ulp, b2d): Handle 32 bit doubles.
13923         * libc/stdlib/mprec.h:  Handle 32 bit doubles.
13924         * libc/stdlib/strtod.c (_strtod_r): Ditto.
13925
13926 Fri Jul 14 08:24:58 1995  steve chamberlain  <sac@slash.cygnus.com>
13927
13928         from medp@primag.co.uk:
13929         * libc/stdio/setvbuf.c (setvbuf): Fix line buffering on
13930         dynamically allocated buffers.
13931
13932 Thu Jul 20 10:11:03 1995  Fred Fish  <fnf@fishbowl>
13933
13934         * libc/include/sys/unistd.h (_exit):  Add _ATTRIBUTE ((noreturn)).
13935         * libc/stdlib/exit.c (unistd.h):  Include to pick up _exit() declaration.
13936
13937 Thu Jul 20 10:16:25 1995  Michael Meissner  <meissner@tiktok.cygnus.com>
13938
13939         * configure.in (powerpc): Fix previous fix.
13940
13941 Wed Jul 19 14:08:55 1995  Michael Meissner  <meissner@tiktok.cygnus.com>
13942
13943         * configure.in (powerpc-*eabiaix*): Update PowerPC multilib
13944         directories for this target.
13945
13946 Wed Jul 19 00:34:30 1995  Jeffrey A. Law  <law@rtl.cygnus.com>
13947
13948         * configure.in (hppa): Add machine_dir definition.
13949         * libc/machine/hppa: New directory with PA specific implementations
13950         of the basic memory/string functions.
13951
13952 Tue Jul 18 21:16:00 1995  Michael Meissner  <meissner@tiktok.cygnus.com>
13953
13954         * configure.in: Update current PowerPC multilib directories.
13955         Split big and little endian configurations.
13956
13957 Tue Jul 18 11:55:33 1995  Ian Lance Taylor  <ian@cygnus.com>
13958
13959         * configure.in: Add --enable-single-float option to configure to
13960         control use of MIPS single-float directories.  Default to yes.
13961
13962         * Makefile.in (all): Don't recurse into multilib directory if it
13963         does not exist.
13964
13965 Mon Jul 17 15:51:30 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
13966
13967         * libc/sys/sh/syscalls.c: Fix typo.
13968
13969 Mon Jul  3 14:38:52 1995  Steve Chamberlain  <sac@slash.cygnus.com>
13970
13971         * Makefile.in, libc/Makefile.in, libc/sys/Makefile.in:
13972         Pass down DLLTOOL.
13973         * libc/include/process.h: Define WAIT_CHILD.
13974         * libc/include/types.h: Get sizes right for win32.
13975         * configure.in (i386-*-pe): Becomes i386-win32.
13976         * libc/sys/win32/{crt0.c, kernel32.def, longjmp.c, setjmp.c, syscalls.c
13977         wintypes.h,sys/file.h,sys/resource.h}: Second pass.
13978         * libc/stdlib/mallocr.c: Don't round up memory block if SBRK_IS_ALLOC
13979         is defined.
13980
13981 Wed Jun 28 18:34:54 1995  Steve Chamberlain  <sac@slash.cygnus.com>
13982
13983         * configure.in (i[345]86-*-pe):  New target (NT).
13984         * host/any: DLLTOOL new.
13985         * libc/sys/win32/{crt0.c, kernel32.def, longjmp.c, setjmp.c, syscalls.c
13986         wintypes.h,sys/file.h,sys/resource.h}: Preliminary support for
13987         WIN32 (just enough to cross host the comp-tools).
13988
13989 Thu Jun 22 11:45:18 1995  Doug Evans  <dje@canuck.cygnus.com>
13990
13991         * libc/machine/h8300/{cmpsi.S,ucmpsi.S,divhi3.S,mulhi3.S,mulsi3.S}:
13992         Deleted.  These files live in gcc/config/h8300/lib1funcs.asm now.
13993
13994 Mon Jun 19 11:40:40 1995  Doug Evans  <dje@canuck.cygnus.com>
13995
13996         * libc/include/machine/ieeefp.h (arm): Change to always be
13997         __IEEE_BIG_ENDIAN (even on little endian ARM's).
13998
13999 Thu Jun  8 14:22:28 1995  Steve Chamberlain  <sac@slash.cygnus.com>
14000
14001         * libc/sys/crt0.S: Initialze sp, and call exit after main.
14002         * libc/sys/syscalls.c (abort): New.
14003         * configure.in (arm): Define ABORT_PROVIDED.
14004
14005 Wed Jun  7 14:04:35 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
14006
14007         * configure.in (powerpc): Define multidirs.
14008
14009 Mon Jun  5 16:10:13 1995  Doug Evans  <dje@canuck.cygnus.com>
14010
14011         * libc/sys/arm/crt0.S: Add __USER_LABEL_PREFIX__ support.
14012
14013 Thu Jun  1 10:51:47 1995  Sean Eric Fagan <sef@cygnus.com>
14014
14015         * configure.in (sparclite): Delete target_cflags.  Define multidirs.
14016
14017 Wed May 24 14:23:25 1995  Steve Chamberlain  <sac@slash.cygnus.com>
14018
14019         * configure.in, libc/include/machine/ieeefp.h: Modified
14020         for arm:
14021         libc/machine/arm/*, libc/sys/arm/*: New
14022
14023 Tue May 23 13:53:07 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
14024
14025         * libc/include/machine/ieeefp.h: Use __PPC__ instead of
14026           __powerpc__ when determining endianness.
14027
14028 Wed May 10 07:55:56 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
14029
14030         * configure.in (m68*): Add multidir for the m68332.
14031
14032         * host/any (CC): Fix typo in last change.
14033
14034 Fri Apr 14 22:20:31 1995  Ken Raeburn  <raeburn@cujo.cygnus.com>
14035
14036         * libc/include/sys/config.h: Test __m68k__ instead of __m68000__
14037         when determining endianness.
14038         * libc/include/machine/ieeefp.h: Ditto.
14039         * libc/machine/m68k/setjmp.S: Use '&' instead of '#' for immediate
14040         operands.
14041
14042 Fri Apr 14 14:14:29 1995  Doug Evans  <dje@chestnut.cygnus.com>
14043
14044         * libc/include/errno.h (ENOTEMPTY): Define.
14045
14046 Thu Apr  6 12:21:20 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
14047
14048         * configure.in (sparc-sun-sunos*): Add -DMALLOC_ALIGNMENT=8 to
14049           target_cflags.
14050
14051         * libc/sys/sun4/Makefile.in (COPYOFILES): Added rem.o, multiply.o,
14052           and umultiply.o.
14053
14054         * libc/stdio/tmpnam.c (worker): Unconditionally increment count
14055           instead of only when open succeeds.  ANSI requires that multiple
14056           calls to tmpnam() result in different files.
14057
14058         * libc/sys/sun4/Makefile.in (COPYRENAMEOFILES): New macro, list of
14059           objects pulled in from /lib/libc.a that must be renamed before
14060           being pulled into newlib.  /lib/libc.a's div.o conflicted with
14061           newlib's file with the same name.
14062
14063         * libc/stdlib/ldiv.c (ldiv): Call labs() instead of abs().
14064
14065         * host/any (CC, AS, AR, RANLIB): Changed so that executables in
14066           the build tree will only be used if the executables are present
14067           (instead of just the Makefiles).
14068
14069         * libc/include/stdlib.h (mblen, mbtowc, wctomb, mbstowcs,
14070           wcstombs): Define.
14071         * libc/stdlib/{mblen.c, mbstowcs.c, wcstombs.c}: New files, null
14072           versions of these functions that I orignally wrote for the
14073           NetBSD C library.
14074         * libc/stdlib/{mbtowc.c, wctomb.c}: Replaced functions with
14075           versions I wrote for NetBSD.
14076
14077 Wed Mar 29 12:42:42 1995  Kung Hsu  <kung@mexican.cygnus.com>
14078
14079         * libc/sys/sparclite/Makefile.in: add crt0.s and make info.
14080         * libc/sys/sparclite/crt0.s: ditto.
14081
14082 Tue Mar 28 20:28:03 1995  Rob Savoye  <rob@rtl.cygnus.com>
14083
14084         * configure.in: Add soft-float for proelf.
14085
14086 Mon Mar 27 12:07:56 1995  Steve Chamberlain  <sac@bang.hack.com>
14087
14088         * libc/stdlib/mprec.h (Bcopy): Copy the right number
14089         of bytes.
14090
14091 Mon Mar 27 11:24:22 1995  Doug Evans  <dje@chestnut.cygnus.com>
14092
14093         * Makefile.in (all): Depend on `force'.
14094         * configure.in (syscall_dir): Renamed from fake_sys_dir.
14095         (libc_syscall_lib): Renamed from libc_fake_sys_lib.
14096         (LIBC_SYSCALL_LIB): Renamed from LIBC_FAKE_SYS_LIB.
14097         * libc/Makefile.in: Likewise.
14098         * libc/include/reent.h: Update syscall references.
14099         (_fcntl_r): Add prototype.
14100         * libc/syscalls/*.c #include <reent.h>.
14101         (*) Call reentrant version if REENTRANT_SYSCALLS_PROVIDED.
14102
14103 Mon Mar 20 16:57:39 1995  Doug Evans  <dje@deneb.cygnus.com>
14104
14105         * libc/include/sys/stat-dj.h (S_ISBLK): Define.
14106         (S_ISCHR, S_ISDIR, S_ISFIFO, S_ISREG): Define.
14107         * libc/include/sys/stat.h (stat-dj.h): Include ifdef MSDOS.
14108         (time.h, sys/types.h): Always include (even if MSDOS).
14109         (stat): Fix prototype.
14110
14111 Fri Mar 10 11:30:38 1995  Ian Lance Taylor  <ian@cygnus.com>
14112
14113         * configure.in (i[345]86-*-go32): Compile with -DNO_EXEC.
14114
14115 Mon Feb 27 18:00:39 1995  Jim Wilson  <wilson@chestnut.cygnus.com>
14116
14117         * libc/machine/h8500/psi.S (EXTPSIHI_RN_SN): Ifdef out.
14118
14119 Mon Feb 13 16:10:03 1995  Ian Lance Taylor  <ian@cygnus.com>
14120
14121         * libc/include/regdef.h: New file.
14122         * libc/machine/mips/machine/regdef.h: New file.
14123
14124 Mon Feb  6 15:24:29 1995  Doug Evans  <dje@canuck.cygnus.com>
14125
14126         * libc/sys/sparc64/sys/fcntl.h (open): Add ellipsis.
14127
14128 Fri Jan 27 13:52:10 1995  Steve Chamberlain  <sac@splat>
14129
14130         * libc/sys/sh/crt0.S: Pass main's return to exit.
14131         * libc/sys/sh/trap.S: Put errno in the right place.
14132
14133 Tue Jan 24 18:57:56 1995  Ian Lance Taylor  <ian@sanguine.cygnus.com>
14134
14135         * libm/math/e_rem_pio2.c (__ieee754_rem_pio2): Integrate change
14136         from fdlibm 5.2: handle |x| < 3pi/4 more efficiently.
14137         * libm/math/ef_rem_pio2.c: Likewise.
14138         * libm/math/e_log10.c: Remove unused static one.
14139         * libm/math/ef_log10.c: Likewise.
14140         * libm/math/s_frexp.c: Likewise.
14141         * libm/math/sf_frexp.c: Likewise.
14142
14143 Sun Jan 22 21:26:14 1995  Steve Chamberlain  <sac@splat>
14144
14145         * libc/sys/go32/Makefile.in, clock.S, dir.c, setjmp.S, stat.c,
14146         longjmp.S: Upgraded.
14147         * libc/sys/go32/sys/setjmp.h: Upgraded.
14148         * libc/sys/go32/sys/go32.h, dpmi.h: New files.
14149
14150 Fri Jan 20 18:33:18 1995  Ian Lance Taylor  <ian@sanguine.cygnus.com>
14151
14152         * configure.in: Add many entries to multidirs for mips targets.
14153
14154 Wed Jan 18 10:19:25 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
14155
14156         * libm/math/e_jn.c (__ieee754_yn): Integrate change from fdlibm
14157           5.2 which fixes bug where jn(-1,x) is three times larger than
14158           the actual answer.
14159         * libm/math/ef_jn.c (__ieee754_ynf): Likewise.
14160
14161 Sun Jan 15 21:48:58 1995  Steve Chamberlain  <sac@splat>
14162
14163         * libc/sys/w65/sys/syscalls.h: New file
14164         * libc/include/machine/ieeefp.h: W65 support.
14165         * libc/include/sys/config.h: Ditto.
14166         * libc/machine/w65/Makefile.in, cmpsi, divsi3, lshrhi.s, mulsi3.c,
14167         sdivhi3.s, smulhi3.s, udivhi3.s, umodhi3.s: New files.
14168         * libc/sys/w65/Makefile.in, crt0.c, syscalls.c, trap.c: New files.
14169
14170 Wed Jan 11 15:59:01 1995  Ian Lance Taylor  <ian@sanguine.cygnus.com>
14171
14172         * libc/sys/Makefile.in (lib.a, crt0.o): Depend upon subs.
14173
14174 Tue Jan  3 15:57:03 1995  Rob Savoye  <rob@darkstar.cygnus.com>
14175
14176         * Makefile.in, configure.in: Remove any references to the old
14177         "stub" dir.
14178
14179 Thu Dec 22 10:42:08 1994  Ian Lance Taylor  <ian@sanguine.cygnus.com>
14180
14181         * libc/syscalls/sysopen.c: Write _HAVE_STDC version of open, which
14182         uses ... in prototype.
14183
14184
14185 Wed Nov 30 08:39:42 1994  Ian Lance Taylor  <ian@rtl.cygnus.com>
14186
14187         * libc/sys/a29khif/sys/libconfig.h: Remove.
14188         * libc/sys/go32/sys/libconfig.h: Remove.
14189         * libc/sys/sun4/sys/libconfig.h: Remove.
14190         * libc/sys/sysvi386/sys/libconfig.h: Remove.
14191         * libc/sys/sysvnecv70/sys/libconfig.h: Remove.
14192         * libc/sys/sparc64/sys/libconfig.h: Remove.
14193
14194         * libc/include/_ansi.h (_FLOAT_ARG, _FLOAT_RET): Don't define.
14195         * libc/include/sys/config.h (_FLOAT_ARG, _FLOAT_RET): Likewise.
14196         * libc/include/math.h: Change all uses of _FLOAT_RET and
14197         _FLOAT_ARG to float.
14198         * libm/test/math.c: Likewise.
14199         * testsuite/libm.sac/math.c: Likewise.
14200         * testsuite/libm.sac/working/math.c: Likewise.
14201
14202 Wed Nov 23 22:39:28 1994  Steve Chamberlain  (sac@jonny.cygnus.com)
14203
14204         * libc/sys/sh/trap.s,crt0.s,setjmp.s: Renamed with .S so that
14205         gcc calls gas with endian option.
14206         * configure.in (sh): Build little endian version too.
14207
14208 Wed Nov 16 18:21:45 1994  Ian Lance Taylor  <ian@sanguine.cygnus.com>
14209
14210         * configure.in: Configure big and little endian versions for MIPS
14211         targets.
14212
14213 Sat Nov 12 21:12:51 1994  Doug Evans  <dje@canuck.cygnus.com>
14214
14215         * libc/include/limits.h: Deleted.
14216         * libc/include/machine/limits.h: Deleted.
14217
14218 Thu Nov 10 15:32:44 1994  Rob Savoye  <rob@rtl.cygnus.com>
14219
14220         * ChangeLog: Remove stub directory. This has all been rewritten
14221         and moved to devo/libgloss.
14222
14223 Thu Sep 29 18:31:04 1994  Ian Lance Taylor  <ian@sanguine.cygnus.com>
14224
14225         * Makefile.in (dvi): Add to info target, use $@ in sub make.
14226         (docs): Merge into info target.
14227         * libm/Makefile.in (dvi): Add $(srcdir).
14228         * libm/math/Makefile.in (chobjs): Remove underscores from file
14229         names.  Texinfo doesn't like them.
14230         (wacos.def, ...): Add explicit targets for all .def files.
14231         * libm/math/math.tex: Remove underscores from @include file names.
14232         * doc/Makefile.in (dvi): Add dummy target.
14233         * testsuite/Makefile.in (dvi): Add dummy target.
14234
14235 Mon Sep 26 21:17:46 1994  Doug Evans  (dje@canuck.cygnus.com)
14236
14237         * Makefile.in (VERSION): Define.  For net newlib releases.
14238
14239 Thu Sep 22 19:01:26 1994  Doug Evans  (dje@canuck.cygnus.com)
14240
14241         * README: New file.
14242
14243 Mon Sep 19 16:35:23 1994  Jim Wilson  (wilson@sphagnum.cygnus.com)
14244
14245         * libc/stdlib/ecvtbuf.c (_gcvt): Undo last change.
14246
14247 Mon Sep 19 11:44:23 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
14248
14249         * libc/stdlib/setenv.c (_findenv): Declare.
14250
14251         * libc/include/sys/fcntl.h: Fix declarations of open, creat, and
14252         fcntl to not use _EXFUN, and change string parameters to open and
14253         creat to be ``const char *''.
14254         * libc/sys/sparc64/sys/fcntl.h: Likewise.
14255         * libc/sys/sparc64/creat.c (creat): Make PATH const.
14256         * libc/syscalls/sysopen.c: Include <fcntl.h>.
14257         (open) Make _FILE const.
14258         * libc/sys/z8ksim/glue.c (_open): Make BUF const.
14259         (_creat): Make PATH const.
14260         * libc/sys/h8300hms/syscalls.c (_open): Make PATH const.
14261         * libc/sys/h8500hms/syscalls.c (_open): Likewise.
14262         * libc/sys/m88kbug/syscalls.c (open): Likewise.
14263         * libc/sys/sh/syscalls.c (_open): Likewise.
14264         * stub/shared/glue.c (open): Make BUF const.
14265         * stub/ex93x/syscalls.c (open): Make FILENAME const.
14266
14267 Thu Sep  8 16:39:12 1994  Steve Chamberlain  (sac@jonny.cygnus.com)
14268
14269         * libc/include/errno.h: Add ENMFILE
14270         * libc/include/sys/config.h: Support Z8000.
14271         * libc/include/sys/signal.h: New signals for go32.
14272         * libc/machine/h8500/psi.S (__addpsir0r0): New function
14273         * libc/machine/h8500/cmpsi.S (__ucmppsi2): New function
14274         * libc/machine/sh/sdivsi3.s (__sdivsi3): Rewritten.
14275         * libc/stdlib/mallocr.c (_morecore_r): Minimum chunk
14276         size is variable, depending upon CHUNK_POWER.
14277         * libc/sys/go32/*.c: Upgrade to new go32 stuff.
14278
14279 Sun Sep  4 17:42:43 1994  Jim Wilson  (wilson@sphagnum.cygnus.com)
14280
14281         * libc/stdlib/ecvtbuf.c (_gcvt): Output '-' for negative numbers.
14282
14283 Fri Sep  2 10:56:01 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
14284
14285         * libc/include/_ansi.h (_PARAMS): Don't define if already defined.
14286
14287 Wed Aug 24 11:11:03 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
14288
14289         * configure.in: Change i[34]86 to i[345]86.
14290
14291         * libc/include/math.h: Don't define HUGE_VAL if it is already
14292         defined.
14293
14294 Wed Aug 17 15:18:02 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
14295
14296         * testsuite/libm.sac/test_erfc.c: Correct some result values.
14297         * testsuite/libm.sac/test_gammaf.c: Likewise.
14298         * testsuite/libm.sac/test_sin.c: Likewise.
14299         * testsuite/libm.sac/test_tanh.c: Likewise.
14300
14301 Tue Aug 16 16:12:53 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
14302
14303         * libc/include/machine/ieeefp.h: Don't try set endianness if it is
14304         already set.  Define typedefs __int32_t and __uint32_t.
14305         * libc/include/math.h: Include <machine/ieeefp.h>.
14306         (union __dmath): Use __uint32_t.
14307         * libm/math/fdlibm.h, libm/math/*.c: Use __int32_t and __uint32_t
14308         instead of int and unsigned int.
14309
14310 Thu Aug 11 15:16:09 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
14311
14312         Replace the math library with the SunPRO fdlibm package.
14313         * libm/math: Completely changed all files.
14314         * libm/ieeefp: Remove contents and directory.
14315         * libm/Makefile.in (LIBM_FP_LIB): Remove.
14316         (SUBDIRS): Just set to math/lib.a.
14317         * libm/libm.texinfo: Updated for new library.
14318         * libc/include/math.h: Extensive changes for new math library.
14319         * libc/include/ieeefp.h (isnanf, isinff, finitef): Change argument
14320         from _FLOAT_ARG to float.
14321         (maxpowtwo, maxpowtwof): Don't declare.
14322         * configure.in (fp_dir): Removed; was always ieeefp anyhow.
14323         (libm_fp_lib): Removed.
14324         * Makefile.in (MATHOBJS_IN_LIBC): Updated with new file names.
14325         * testsuite/libm.paranoia/Makefile.in (check): Correct --srcdir
14326         argument to ${RUNTEST}.
14327         * testsuite/libm.sac/Makefile.in (LOCAL_CFLAGS): Define.
14328         (.c.o): New rule.
14329         (RUNTESTFLAGS): Set CC and CFLAGS.
14330         (TESTS): Remove test_log2 and test_log2f.
14331         (${TESTS}): Pass ${LOCAL_CFLAGS}, not ${CFLAGS}.
14332         * testsuite/libm.sac/math.c (run_vector_1): Use float, not
14333         _FLOAT_ARG, for single precision argument type.
14334         * testsuite/libm.sac/sac.exp: Treat an error in bit 63 as an
14335         expected failure.  Close the input pipe.
14336         * testsuite/libm.sac/test.c (test_sok, test_iok, test_scok):
14337         Correct misspelling of inaccurate.
14338         (test_mok): Use ``inaccurate'', not ``wrong''.
14339         * testsuite/libm.sac/{test_acos.c, test_acosh.c, test_asin.c,
14340         test_asinh.c, test_atan.c, test_atanh.c, test_ceil.c,
14341         test_ceilf.c, test_cos.c, test_cosh.c, test_erf.c, test_erf.c,
14342         test_fabs.c, test_floor.c, test_floorf.c, test_fmod.c,
14343         test_fmodf.c, test_gamma.c, test_log1p.c, test_log1pf.c,
14344         test_yn.c): Correct many result values.  Many are still wrong.
14345
14346         * libc/stdlib/ecvtbuf.c (print_e): If _dtoa_r sets decpt to 9999,
14347         just copy the string.
14348         (_gcvt): Always return the buffer.
14349
14350 Tue Aug  9 13:43:23 1994  J.T. Conklin  (jtc@phishhead.cygnus.com)
14351
14352         * bcopy.c: fixed documentation, bcopy was not specified by ANSI.
14353
14354 Wed Aug  3 05:39:41 1994  D. V. Henkel-Wallace  (gumby@cygnus.com)
14355
14356         * libc/include/sys/reent.h: (struct _Bigint): add _reclaim
14357         structure.
14358         (struct _reent): add _p5s, _cvtlen, _cvtbuf.
14359         (_reclaim_reent): declare new entry point.
14360         * libc/reent/reent.c (cleanup_glue, _reclaim_reent): new
14361         functions.
14362
14363         * libc/stdlib/mprec.c (Balloc): Keep track of every struct bigint
14364         ever allocated, so that we can later reclaim them all.
14365         (pow5mult): make reentrant.
14366
14367         * libc/stdlib/ecvtbuf.c (fcvtbuf, ecvtbuf): extend these functions
14368         so that when given NULL as a buffer, return a pointer to static
14369         space in the rent structure.  This is not documented behaviour;
14370         it's only to support ecvt and fcvt, which aren't ANSI anyway.
14371         * libc/stdlib/efgcvt.c (fcvt, ecvt) Use new functionality (and
14372         therefore become reentrant).
14373         
14374         * libc/stdlib/dtoastub.c: remove spurious inclusion of mprec.h.
14375
14376 Mon Aug  1 16:52:24 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
14377
14378         * libc/include/machine/ieeefp.h: Check _AM29K, not ___AM29K__.
14379
14380 Thu Jul 28 15:40:21 1994  J.T. Conklin  (jtc@phishhead.cygnus.com)
14381
14382         * Makefile.in: Make link to libg.a after libc.a; this is needed
14383           for the testsuites to build executables when everything comes
14384           from the tree.
14385
14386 Mon Jun 27 17:14:29 1994  Bill Cox  (bill@rtl.cygnus.com)
14387
14388         * libc/Makefile.in: Add a VERSION variable so we can keep track.
14389         * libm/Makefile.in: Add a VERSION variable so we can keep track.
14390
14391 Wed Jun 22 10:26:00 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
14392
14393         * libc/include/stdio.h: Use __VALIST, not va_list.
14394
14395 Tue May 17 15:43:28 1994  Bill Cox  (bill@rtl.cygnus.com)
14396
14397         * testsuite/config/unix-libm.exp, testsuite/lib/libm.exp,
14398         testsuite/libm.sac/execute.exp:
14399           Replace error proc calls with perror calls.
14400
14401 Wed May 11 09:25:28 1994  Doug Evans  (dje@canuck.cygnus.com)
14402
14403         * libc/include/*.h: #include "_ansi.h" instead of <_ansi.h>.
14404         * libc/include/time.h: #define NULL as 0L.
14405
14406 Mon May  9 18:41:20 1994  Doug Evans  (dje@canuck.cygnus.com)
14407
14408         * host/any (INCLUDES): Delete -I of gcc/include, gcc -B takes
14409         care of it.
14410
14411 Mon May  9 18:39:39 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
14412
14413         * libc/include/sys/signal.h: Check for __GO32__, not __i386__ and
14414         not __unix__.
14415
14416 Sat May  7 17:07:36 1994  Steve Chamberlain  (sac@cygnus.com)
14417
14418         * configure.in (TARGET_CFLAGS): Set -O2 as default.
14419         (z8k-*-*): Use syscalls fake sys dir.
14420         * libc/sys/z8k/glue.c: Rename syscalls.
14421         * libc/sys/go32/Makefile.in: Use new routines.
14422         * libc/machine/Makefile.in: Fix typo in ln stuff.
14423
14424 Thu May  5 13:47:48 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
14425
14426         * Makefile.in (libm.a, crt0.o): Use cp if ln fails.
14427         * libc/Makefile.in (crt0.o): Likewise.
14428         * libc/machine/Makefile.in (lib.a): Likewise.
14429         * libc/sys/Makefile.in (lib.a, crt0.o): Likewise.
14430
14431         All Makefile.in files: Added mostlyclean, realclean and distclean
14432         targets.
14433
14434         * Makefile.in: Don't bother to unexport XTRAFLAGS or
14435         XTRAFLAGS_FOR_TARGET, since they are no longer passed down from
14436         the top level Makefile.
14437
14438 Tue Apr 26 15:10:34 1994  Doug Evans  (dje@canuck.cygnus.com)
14439
14440         * libc/sys/sparc64/sys/stat.h: New file.
14441         * libc/sys/sparc64/sys/time.h: New file.
14442         * libc/sys/sparc64/sys/types.h: New file.
14443
14444 Fri Apr 22 12:58:24 1994  Stan Shebs  (shebs@andros.cygnus.com)
14445
14446         * stub/ex93x/crt0.s (start): Add code to clear bss.
14447
14448 Wed Apr 13 10:34:58 1994  Doug Evans  (dje@canuck.cygnus.com)
14449
14450         * libc/include/sys/types.h (time_t): Properly protect inside
14451         #ifndef __time_t_defined.
14452
14453         * libc/stdio/fileno.c: New file.
14454         * libc/stdio/Makefile.in (OFILES, CHEWOUT_FILES): Add fileno.
14455         (fileno.o): Add dependency.
14456         * libc/include/stdio.h (__sgetc): Rename never to _never.
14457         (fileno macro): Disable, needs to do CHECK_INIT first.
14458
14459 Mon Apr 11 17:37:09 1994  Bill Cox  (bill@rtl.cygnus.com)
14460
14461         * testsuite/Makefile.in (EXPECT, RUNTEST): Set these for the check
14462         goal.
14463
14464         * testsuite/Makefile.in (check): Set TCL_LIBRARY for runtest.
14465         * testsuite/libm.paranoia/Makefile.in (check): Set TCL_LIBRARY for
14466         runtest.
14467         * testsuite/libm.sac/Makefile.in (check): Set TCL_LIBRARY for
14468         runtest.
14469
14470 Sat Apr  9 16:18:09 1994  Doug Evans  (dje@cygnus.com)
14471
14472         * libc/sys/sparc64/sys/fcntl.h: New file, define solaris versions
14473         of the various constants.
14474
14475 Thu Apr  7 21:19:07 1994  Mark Eichin  (eichin@cygnus.com)
14476
14477         * libc/include/math.h: #ifndef __math_68881 around things which
14478         conflict with the (gcc-provided) inline functions in
14479         gcc/ginclude/math-68881.h.
14480
14481 Thu Apr  7 02:50:43 1994  Doug Evans  (dje@cygnus.com)
14482
14483         * libc/include/_syslist.h (_gettimeofday): Define.
14484         (_times): Ditto.
14485         * libc/include/reent.h: #include <machine/types.h> to get _CLOCK_T_.
14486         (struct tms, timeval, timezone): Declare.
14487         (_gettimeofday_r, _times_r): Declare.
14488         * libc/include/time.h (_CLOCK_T_): Don't #undef.  Remove
14489         #ifdef _CLOCK_T_ surrounding definition of clock_t.
14490         (time_t): Add multiple definition protection, __time_t_defined.
14491         * libc/include/sys/time.h: Don't #include <time.h>.
14492         Always define struct timezone (remove #ifndef _TIME_H_).
14493         * libc/include/sys/times.h (_CLOCK_T_): Don't #undef.  Remove
14494         #ifdef _CLOCK_T_ surrounding definition of clock_t.
14495         * libc/reent/Makefile.in (OFILES): Add timer.o.
14496         (CHEWOUT_FILES): Add timer.def.  Add timer.o/timer.c dependence.
14497         * libc/reent/timer.c: New file.
14498         * libc/time/clock.c: #include <reent.h>.
14499         (clock): Call _times_r instead of times.
14500         * libc/time/time.c (HAVE_GETTIMEOFDAY): Renamed from
14501         HAVE_GET_TIME_OF_DAY.
14502         Add comment regarding supporting OS routine(s) required (for docs).
14503         #include <reent.h>.
14504         (time): Call _gettimeofday_r instead of gettimeofday.
14505         * libc/time/asctime.c: Fix comment regarding supporting OS routines.
14506         * libc/time/ctime.c: Ditto.
14507         * libc/time/strftime.c: Ditto.
14508         * libc/sys/sparc64/Makefile.in (TEMPLATE_SFILES): Remove gettimeofday.
14509         (TEMPLATE_SFILES_R): Define here.  Also define times.
14510         Add times_r.o/times.S dependence.
14511         (time2.c, junk.c): Deleted.
14512         * libc/sys/sparc64/time2.c: Deleted.
14513         * configure.in (sparc64-*-*): Define HAVE_GETTIMEOFDAY.
14514
14515         * libc/stdio/mktemp.c (_getpid_r): Renamed from _getpid.
14516         * libc/stdio/tmpnam.c (_getpid_r): Ditto.
14517         * libc/sys/sparc64/junk.c: Deleted.
14518
14519 Mon Mar 21 16:51:03 1994  Doug Evans  (dje@canuck.cygnus.com)
14520
14521         * libc/sys/sparc64/Makefile.in: Add times syscall.
14522         * libc/sys/sparc64/crt0.S: Handle stack bias at run time so we can
14523         be used with and without it.  Add comment clarifying Medium/Anywhere
14524         model requirements.
14525         * libc/sys/sparc64/sigsetjmp.S (setjmp, longjmp): Add svr4 support.
14526         * libc/sys/sparc64/sys/syscall.h (SYS_times): Define for sunos4
14527         even if obsolete.
14528
14529 Sun Mar 20 15:51:47 1994  Doug Evans  (dje@cygnus.com)
14530
14531         * configure.in (target_cflags): Move init.
14532         (sparc64-*-*): Define HAVE_BLKSIZE.
14533
14534 Wed Mar  9 10:44:52 1994  Doug Evans  (dje@canuck.cygnus.com)
14535
14536         * libc/include/sys/_types.h: New file.
14537         * libc/include/reent.h: #include it.
14538         Add comment describing REENTRANT_SYSCALLS_PROVIDED and
14539         MISSING_SYSCALL_NAMES.
14540         Sort syscalls.
14541         * libc/include/_syslist.h: Remove _raise.
14542         * libc/reent/signalr.c: New file.
14543         * libc/reent/Makefile.in: Compile it.
14544         * libc/signal/signal.c: Only use ifdef SIMULATED_SIGNALS.
14545         Add doc for raise and _raise_r.
14546         * libc/signal/raise.c: Only use ifndef SIMULATED_SIGNALS.
14547         (raise): Call _raise_r.
14548         (_raise_r): Call _getpid_r and _kill_r.
14549         * libc/stdlib/abort.c: Remove inclusion of stdio.h and _syslist.h.
14550         (abort): Loop forever calling raise and _exit.
14551
14552 Mon Mar  7 14:40:08 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
14553
14554         * configure.in: Remove extraneous echo.
14555
14556 Thu Mar  3 12:14:22 1994  Doug Evans  (dje@canuck.cygnus.com)
14557
14558         * libc/sys/sparc64/sys/dirent.h (MAXNAMLEN): #undef to avoid
14559         collision with unistd.h, and fix for svr4.
14560
14561 Wed Mar  2 13:55:25 1994  Doug Evans  (dje@canuck.cygnus.com)
14562
14563         * libc/stdio/local.h (_llicvt): Declare.
14564         (CVT_BUF_SIZE): Define (and buffer size from 512 to 128).
14565         * libc/stdio/cvt.c: Include "local.h" to get CVT_BUF_SIZE.
14566         (_llicvt): Define.
14567         (_sicvt): Fix function header (`value' is short).
14568         * libc/stdio/vfprintf.c (_vfprintf_r): Use CVT_BUF_SIZE.
14569         Add printing of long long's support.
14570         Add printing of 8 byte pointer support.
14571
14572 Fri Feb 11 21:52:11 1994  Steve Chamberlain  (sac@sphagnum.cygnus.com)
14573
14574         * libc/sys/sh/syscalls.c (pipe, execv, wait, fork, utime, chown,
14575         stat, chmod): New hooks. 
14576         (sbrk): Abort if stack and heap collide.
14577         * libc/machine/sh/udivsi3, libc/machine/sh/sdivsi3 Modified to
14578         shortcut when given small args.
14579         * libc/machine/sh/setjmp.s: Rewritten.
14580         * libc/machine/sh/strcmp.s (strcmp): New function takes advantage
14581         of cmp/str instruction.
14582
14583 Wed Feb  9 15:12:35 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
14584
14585         * configure.in: Accept powerpc* as a CPU type, using fp_dir ieeefp
14586         and machine_dir powerpc.
14587         * libc/include/machine/setjmp.h, libc/include/machine/ieeefp.h:
14588         Add cases for __powerpc__.
14589         * libc/machine/powerpc/Makefile.in, libc/machine/powerpc/setjmp.S:
14590         New files.
14591
14592         * libc/include/stdio.h (_iprintf_r): Declare correctly.
14593
14594 Thu Jan 27 10:36:27 1994  Steve Chamberlain  (sac@cygnus.com)
14595
14596         * libc/stdlib/callocr.c: New file with _calloc_r in it.
14597         * libc/stdlib/calloc.c (calloc_r): Now in callocr.c
14598
14599 Thu Jan 20 15:14:37 1994  Doug Evans  (dje@canuck.cygnus.com)
14600
14601         * libc/stdlib/ecvtbuf.c (print_f): Remove local "done".
14602         (print_e): More comments to describe args, etc.
14603         "type" arg may now be 'g' or 'G' for %g/G format --> remove
14604         trailing blanks.
14605         (_gcvt): Remove locals decpt, sign, end, p, done.
14606         More comments for print_e invocation.
14607         Pass "type" to print_e as is (g/G).
14608
14609 Wed Jan 19 16:34:18 1994  Rob Savoye  (rob@darkstar.cygnus.com)
14610
14611         * stub/shared/m68k-crt0.S: Changed so it compiles (and runs) on a
14612         stock m68000. 
14613
14614 Mon Jan 17 15:41:53 1994  Doug Evans  (dje@canuck.cygnus.com)
14615
14616         * libc/stdlib/mallocr.c (_morecore_r): Fix aligning of pointer so it
14617         works with any sized pointer, including ones bigger than ints and
14618         longs.
14619
14620 Thu Jan  6 14:53:21 1994  Doug Evans  (dje@canuck.cygnus.com)
14621
14622         * libc/sys/sparc64/{time2.c,utime.S,utime2.c}: New files.
14623
14624 Sat Dec 11 16:17:20 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
14625
14626         * libc/include/stdlib.h (_calloc_r): Add prototype.
14627         * libc/machine/h8500/negsi2.c: New file.
14628         * libc/machine/h8500/divsi3.c: Prevent overflow when dividing v
14629         large unsigned numbers.
14630         * libc/machine/h8500/cmpsi.c: Add cmppsi.
14631         * libc/stdlib/mallocr.c (morecore_r): Fix aligning pointers so it
14632         works when sizeof(size_t) != sizeof(char *).
14633         * libc/stdlib/mprec.c (Balloc): Call calloc rather than malloc to
14634         get play area
14635         * libc/stdlib/mprec.h: Define Just_16 if generating for z8000.
14636
14637 Mon Dec  6 15:59:53 1993  Doug Evans  (dje@rtl.cygnus.com)
14638
14639         * libc/include/assert.h (assert): Handle -traditional.
14640
14641 Tue Nov 16 15:49:24 1993  Mark Eichin  (eichin@cygnus.com)
14642
14643         * Makefile.in: added ; after every "fi" and "done" that wasn't at
14644         the end of a line (ie. anything before a backslash continuation)
14645         so that bash handles them.
14646
14647 Tue Nov 16 12:31:57 1993  david d `zoo' zuhn  (zoo@rtl.cygnus.com)
14648
14649         * libc/sys/go32/lstat.s: new file, copied from stat.s and renamed
14650         stat to lstat
14651
14652 Mon Nov 15 15:50:43 1993  Steve Chamberlain  (sac@jonny.cygnus.com)
14653
14654         * libc/sys/sh/crt0.s, libc/sys/sh/trap.s,
14655         libc/machine/sh/sdivsi3.s, libc/machine/sh/setjmp.s,
14656         libc/machine/sh/udivsi3.s: Use new calling convention.
14657
14658 Mon Nov 15 15:25:38 1993  Mark Eichin  (eichin@cygnus.com)
14659
14660         * libc/include/sys/unistd.h, libc/include/sys/stat.h: ANSI-fy
14661         chmod, access, chdir, chown by making _path const. Also fix _amode
14662         param of access.
14663
14664 Fri Nov 12 20:25:28 1993  Mark Eichin  (eichin@cygnus.com)
14665
14666         * libc/sys/a29khif/_tmpnam.s (_tmpnam): renamed function to
14667         _khif_tmpnam, because it doesn't comply with ANSI but may be
14668         useful anyway. Real tmpnam was already in libc/stdio, and was
14669         colliding with this one (pr 2176.) 
14670         * libc/sys/a29khif/stubs.s (tmpnam): removed tmpnam. This file is
14671         the wrong idea anyhow.
14672
14673 Mon Nov  8 07:50:16 1993  Doug Evans  (dje@canuck.cygnus.com)
14674
14675         * configure.in: Remove h8300h, we have multilib now.
14676
14677 Fri Nov  5 12:37:27 1993  Mark Eichin  (eichin@cygnus.com)
14678
14679         * libc/string/strcasecmp.c, libc/string/strncasecmp.c: new
14680         functions, to get preference over the ones in libiberty (since we
14681         provide correct declarations in <string.h>.
14682         * libc/string/Makefile.in: add support for strncasecmp,
14683         strcasecmp.
14684
14685 Fri Nov  5 09:05:45 1993  D. V. Henkel-Wallace  (gumby@blues.cygnus.com)
14686
14687         * Change netware config not to look for cpu explicitly.
14688
14689 Thu Nov  4 14:21:25 1993  Doug Evans  (dje@canuck.cygnus.com)
14690
14691         * libc/sys/sparc64/{creat.c,junk.c}: New files.
14692         * libc/sys/sparc64/Makefile.in: Add dependencies.
14693
14694 Wed Nov  3 10:42:49 1993  Doug Evans  (dje@canuck.cygnus.com)
14695
14696         * configure.in: Clean up v9 a bit, new "os" aoutv8.
14697
14698 Tue Nov  2 10:00:44 1993  D. V. Henkel-Wallace  (gumby@cygnus.com)
14699
14700         * libc/include/sys/reent.h: make structure smaller by allocating
14701         some stuff when needed.
14702         * libc/signal/signal.c: allocate as needed
14703         * libc/stdio/findfp.c,stdio/local.h: ditto
14704         * libc/stdlib/mprec.c: ditto
14705
14706         * libc/time/localtime.c: don't return a dangling stack ptr.
14707
14708 Wed Sep 29 20:42:34 1993  Rob Savoye  (rob@darkstar.cygnus.com)
14709
14710         * stub/mvme135/crt0.S, stub/mvme135/glue.c: Moved to stub/generic.
14711
14712 Wed Sep 29 16:27:49 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
14713
14714         * libc/include/stdio.h (__sputc): comment out static inline which
14715           confuses coff toolchains.
14716
14717 Thu Sep  2 16:31:36 1993  Mark Eichin  (eichin@cygnus.com)
14718
14719         * libc/sys/a29khif/{_close.s, _fstat.s, _lseek.s, _sbrk.s,
14720         _write.s, getpid.c, kill.c, read.s}:
14721         * libc/sys/a29khif/stubs.s: eliminated stubs that already go
14722         through the syscalls directory.
14723
14724 Fri Oct 29 13:59:58 1993  Jeffrey Wheat  (cassidy@cygnus.com)
14725
14726         * configure.in: fixed double quote gotcha.
14727
14728 Wed Oct 27 15:27:09 1993  Rob Savoye  (rob@darkstar.cygnus.com)
14729
14730         * stub/ex931: stub library for sparclite board.
14731         * stub/idp: Renamed from mc68ec. Added contructor table
14732         stuff to linker script.
14733         * stub/mvme135: Renamed from m68kmvme. Added contructor table
14734         stuff to linker script.
14735
14736 Tue Oct 26 17:01:23 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
14737
14738         * configure.in: Configure testsuites only if they exist.
14739
14740 Tue Oct 26 12:37:11 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
14741
14742         * configure.in: Don't set machine_dir for i386 until there is
14743         something in libc/machine/i386 to compile.  For i[34]86-*-netware*
14744         use sys/netware, don't use signal, define NO_EXEC, ABORT_PROVIDED,
14745         CLOCK_PROVIDED and MALLOC_PROVIDED.
14746
14747         * libc/sys/netware: New directory.  Contains simplistic and
14748         probably incorrect stubs for NetWare.  Should be enough to load
14749         the library.
14750         * libc/sys/netware/crt0.c, libc/sys/netware/environ.c,
14751         libc/sys/netware/getpid.c, libc/sys/netware/link.c: New NetWare
14752         stub files.
14753
14754         * libc/reent/execr.c: Don't use if NO_EXEC is defined.
14755         * libc/reent/sbrkr.c: Don't use if MALLOC_PROVIDED is defined.
14756         * libc/stdlib/abort.c: Don't use if ABORT_PROVIDED is defined.
14757         * libc/time/clock.c: Don't use if CLOCK_PROVIDED is defined.
14758
14759 Mon Oct 25 16:48:08 1993  Roland H. Pesch  (pesch@cygnus.com)
14760
14761         * testsuite/Makefile.in: add "docs" dummy target for consistency
14762         with rest of newlib; turn "info" and "install-info" into dummy
14763         targets, since they wouldn't have worked.  (Depended on
14764         nonexistent "doc" subdir.)
14765
14766 Fri Oct 22 20:37:32 1993  david d `zoo' zuhn  (zoo@rtl.cygnus.com)
14767
14768         * configure.in: handle mips* instead of mips
14769
14770 Thu Oct 21 08:57:24 1993  Ian Lance Taylor  (ian@cygnus.com)
14771
14772         * libc/include/sys/dirent.h: New file.  If it is not overridden by
14773         a version of libc/sys/*/sys/dirent.h, it includes the next
14774         <dirent.h> file in case there is one lurking somewhere.
14775
14776 Fri Oct 15 14:17:40 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
14777
14778         * libc/stdlib/strtoul.c (_strtoul_r): Several changes for ANSI
14779         compliance, namely: Accept a minus sign.  Consider a single 0 with
14780         a radix of 0 as being a conversion.  Determine overflow correctly.
14781         If an overflow occurs, set *ptr to the end of the number, not the
14782         middle.
14783         * lib/stdlib/strtol.c (_strtol_r): Determine overflow correctly.
14784
14785 Thu Oct 14 21:49:52 1993  Doug Evans  (dje@canuck.cygnus.com)
14786
14787         * libc/machine/h8300/divsi3.S (divmodsi4): Fix h8300h case.
14788
14789 Fri Oct  1 17:17:34 1993  Doug Evans  (dje@canuck.cygnus.com)
14790
14791         * Makefile.in (INSTALL): Use $srcrootpre.
14792         (crt0.o): Replace $< with $(CRT0_DIR)/$(CRT0), Sun make
14793         can't handle it.
14794         * libc/Makefile.in (crt0.o): Spell out $<, Sun make can't handle
14795         it.
14796         * libc/sys/Makefile.in (crt0.o, lib.a): Ditto.
14797         * stub/Makefile.in (crt0.o, TARGETLIB): Ditto.
14798         * libc/sys/sparc64/Makefile.in (isatty.o): Sun VPATH lossage.
14799         * libm/math/Makefile.in (matherr.o): Ditto.
14800
14801 Thu Sep 30 11:09:17 1993  Steve Chamberlain  (sac@phydeaux.cygnus.com)
14802
14803         * configure.in: Build multidirs for z8k.
14804         * libc/include/stdlib.h (_strtoul_r): add prototype.
14805         * libc/include/machine/limits.h: Get INT_MIN right for all the z8k family.
14806         * libc/include/machine/setjmp.h: Add for z8k.
14807         * libc/machine/z8k/{mulsi.o, udivsi3.o, umodsi3.o, modsi3.o} obsolete.
14808         * libc/sys/z8ksim/glue.c: tidy up.
14809
14810 Mon Sep 20 14:04:46 1993  Doug Evans  (dje@canuck.cygnus.com)
14811
14812         * libc/unix/{execl.c execle.c execlp.c execv.c execvp.c}:
14813         New files.  Requires execve system call.
14814         * libc/unix/Makefile.in: Use them.
14815         * libc/sys/sparc64/{execl.c execle.c execlp.c execv.c execvp.c}:
14816         Deleted, moved to libc/unix.
14817         * libc/sys/sparc64/Makefile.in: Remove them.
14818
14819 Mon Sep 20 10:38:32 1993  Doug Evans  (dje@canuck.cygnus.com)
14820
14821         * libc/sys/sparc64/{template.S template_r.S}: New files.
14822         * libc/sys/sparc64/Makefile.in: Build source for trivial syscalls
14823         from templates.
14824         * libc/sys/sparc64/{chdir.S chmod.S close.S dup.S fcntl.S
14825         fork.S fstat.S lseek.S link.S mkdir.S open.S pipe.S read.S rmdir.S
14826         umask.S unlink.S wait4.S write.S}: Removed, now built from
14827         templates.
14828
14829 Sun Sep 19 14:52:57 1993  Doug Evans  (dje@canuck.cygnus.com)
14830
14831         * libc/time/time.c: #include <_ansi.h>.
14832
14833 Sun Sep 19 13:43:25 1993  Doug Evans  (dje@canuck.cygnus.com)
14834
14835         * configure.in (sparc64-*-*): Remove -D__SIZE_TYPE__.
14836
14837 Mon Sep 13 13:52:16 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
14838
14839         * configure.in: match m8* rather than m88k so that m88110 is
14840           recognized as well.
14841
14842 Tue Sep  7 12:19:32 1993  Doug Evans  (dje@canuck.cygnus.com)
14843
14844         * libc/sys/h8300hms/{Makefile.in, _exit.c, misc.c}:
14845         Renamed exit.c to _exit.c to avoid collision with stdlib/exit.c.
14846         misc.c: New file.
14847
14848         * configure.in: Add multilib support to h8300.
14849
14850 Mon Sep  6 14:07:06 1993  Doug Evans  (dje@canuck.cygnus.com)
14851
14852         * libc/stdlib/abort.c (abort): Remove _VOLATILE from return type.
14853         * libc/include/_ansi.h (_ATTRIBUTE): New macro for __attribute__.
14854         * libc/include/stdlib.h (exit, abort): Add noreturn attribute.
14855
14856 Mon Sep  6 14:24:18 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
14857
14858         * configure.in: Corrected multidirs for sparc target.
14859
14860 Mon Aug 30 15:56:44 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
14861
14862         Support for building newlib multiple times with different
14863         compilation flags.
14864         * configure.in: Only configure doc at top level.  Set multidirs
14865         when appropriate for target, unless not at top level.  If
14866         multidirs is set, independently configure each subdirectory.
14867         Adjust TOP, MULTIDIRS and MULTISUBDIR appropriately in Makefile.
14868         * Makefile.in (MULTIDIRS, MULTISUBDIR): New variables,
14869         automagically set by configure.in.
14870         (all): If MULTIDIRS is set, build multiple copies of libraries.
14871         (install): If MULTIDIRS is set, install multiple copies of
14872         libraries.  Install in $(tooldir)/lib/$(MULTISUBDIR).  If
14873         MULTISUBDIR is set, don't bother to install header files.
14874         * host/any (INCLUDES, CHEW): Use $(SRCTOP) rather than $(TOP) from
14875         ${srcrootpre}.
14876         * stub/configure.in: Set MULTISUBDIR appropriately.
14877         * stub/Makefile.in (install): Install in
14878         $(tooldir)/lib/$(MULTISUBDIR).
14879         * All Makefile.in files: Define SRCTOP as well as TOP.
14880
14881 Mon Aug 30 10:34:24 1993  Doug Evans  (dje@canuck.cygnus.com)
14882
14883         * libc/machine/h8300/{mulhi3.S, divhi3.S}: Comment out if h8300h.
14884         * libc/machine/h8300/{mulsi3.S, divsi3.S}: Add h8300h support.
14885
14886 Thu Aug 26 19:38:12 1993  Doug Evans  (dje@canuck.cygnus.com)
14887
14888         * libc/sys/h8300hms/exit.c (_exit): New function.
14889
14890 Wed Aug 25 16:31:48 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
14891
14892         * configure.in: recognize m88110.
14893
14894 Fri Aug 20 16:46:23 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
14895
14896         * libc/sys/m88kbug/crt0.c: pretty up, remove extraneous comments,
14897           prototype main and call with args.
14898
14899 Fri Jul 30 16:52:47 1993  K. Richard Pixley  (rich@cygnus.com)
14900
14901         First real try at system traps for m88k-bug.
14902         * libc/sys/m88kbug/syscalls.c: many changes.  Convert from stubs
14903           to real trap calls.
14904         * libc/sys/m88kbug/sys/systraps.h: new file.
14905
14906 Tue Jul 27 16:31:16 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
14907
14908         Patches to fix info building when target does not use sys
14909         directory.
14910         * libc/Makefile.in (targetdep.tex): add sys.tex separately.
14911         * libc/sys.tex, libc/sys/sys.tex: moved from libc/sys/sys.tex to
14912           libc/sys.tex.
14913         * libc/sys/Makefile.in (doc): do nothing.
14914
14915 Mon Jul 26 17:08:11 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
14916
14917         * libc/Makefile.in (CRT0): new macro.
14918           (all): depend on $(CRT0) rather than crt0.o.
14919
14920         * configure.in: fix libc_sys_dir -> libc_sys_lib thinko.
14921           do not default crt0, instead, set crt0 and crt0_dir based on
14922           sys_dir and stub_dir.
14923
14924         * Makefile.in (CRT0_DIR): new macro.
14925           (all): depend on $(CRT0) rather than crt0.o which may not exist.
14926           (crt0.o): depend on $(CRT0_DIR)/$(CRT0) rather than simply
14927           $(CRT0).
14928           ($(CRT0)): recur by cd'ing into $(CRT0_DIR).
14929
14930 Sun Jul 25 17:51:51 MDT 1993  Jeffrey Wheat  (cassidy@cygnus.com)
14931
14932         * testsuite/lib/libm.exp: 
14933                 added code to support compiling and linking of tests for 
14934                 libm.sac (paranoia to be added next) and processing the 
14935                 pass or failure of the tests.
14936
14937         * testsuite/config/unix-libm.exp:
14938                 platform specific proc's for dealing with compiler, linker
14939                 and the way we execute and process the test results.
14940
14941         * testsuite/libm.sac/execute.exp:
14942                 generic framework for the sac tests. the config and lib 
14943                 expect code for specific platforms tie it all together.
14944
14945         * testsuite/libm.sac/test_is.c:
14946                 changed the output of the test to be consistant with the
14947                 other tests. parsing of pass nad fail messages is now fixed.
14948
14949 Fri Jul 23 19:20:07 1993  Per Bothner  (bothner@kalessin)
14950
14951         * libc/include/{assert.h, ctype.h, dirent.h, errno.h, fastmath.h,
14952         locale.h, math.h, pwd.h, reent.h, setjmp.h, signal.h, stdio.h,
14953         stdlib.h, string.h, termios.h, time.h, utime.h, utmp.h}: For C++:
14954         #ifdef __cplusplus, surround by extern ""C { ... }.
14955         * libc/include/assert.h:  Do *not* protect assert.h against
14956         multiple inclusion!  Also, #undef it before #define, to allow
14957         redefinition.
14958         * libc/include/stdio.h (getlogin, cuserid):  Removed.  These
14959         should be only in unistd.h.
14960
14961         * libc/include/sys/{fcntl.h, reent.h, stat.h, time.h, times.h,
14962         unistd.h}: For C++: #ifdef __cplusplus, surround by extern ""C {
14963         ... }.
14964
14965 Fri Jul 23 10:15:33 1993  Doug Evans  (dje@canuck.cygnus.com)
14966
14967         * libc/machine/sparc/Makefile.in: Must create a library, even
14968         if empty.
14969
14970 Wed Jul 21 16:00:37 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
14971
14972         * configure.in: set machine_dir for m88k.  edit crt0 definition
14973           into makefiles.
14974
14975         * Makefile.in, libc/Makefile.in (crt0): pull up from lower directories.
14976
14977         * libc/Makefile.in (all): also build crt0.o.
14978
14979         * libc/machine/i386/Makefile.in, libc/machine/sparc/Makefile.in,
14980           libc/machine/z8k/Makefile.in, libm/Makefile.in (clean): no need
14981           to remove CRT0.
14982
14983         * libc/machine/m88k/Makefile.in (TOP, TARGETLIB): removed.
14984           (all): reworked to build in place.
14985           (clean): remove lib.a
14986           (Makefile): remove redundant ./, call $(SHELL) rather than sh.
14987
14988         * libc/sys/m88kbug/crt0.c (start): renamed to _start.
14989           (_start): key off edata rather than _start_bss.
14990
14991 Wed Jul 21 14:29:47 1993  david d `zoo' zuhn  (zoo@cygnus.com)
14992
14993         * libc/include/sys/unistd.h, libc/include/reent.h,
14994         libc/reent/sbrkr.c: change sbrk to return void* instead of char*.
14995
14996 Tue Jul 20 13:19:18 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
14997
14998         * libm/Makefile.in, libc/Makefile.in ($(SUBDIRS)): dollar escape a dollar sign.
14999
15000         * Makefile.in (libc.a): break into two rules, one for libc.a and
15001           one for libc/libc.a.  Force subdirs current before rebuilding
15002           library.
15003           (libm.a): break into two rules, one for libm.a and one for
15004           libm/libm.a.  Force subdirs current before rebuilding library.
15005
15006         * libc/Makefile.in (SUBLIBS): fix typo.
15007
15008         * libc/sys/Makefile.in (all): force descent into subdirs, then
15009           rebuild library iff out of of date.
15010
15011 Fri Jul 16 17:47:57 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
15012
15013         Rework so that library is built and then finished rather than
15014         being built on each invocation of make.
15015
15016         * host/any (machine_dir, sys_dir, signal_dir): these are not
15017           shared and have been moved to their associated Makefile.in's.
15018           (AR_FLAGS): switch to qc which is faster.
15019         * configure.in: no longer assign machine_dir for m88k.  set
15020           stub_dir, stub_lib, & crt0 for m68k*-unknown-{aout,coff}.  If
15021           stub_dir set, then add to configdirs.  add comment about silly
15022           configuration.
15023           (configdirs): drop stub.  It will be added only
15024           when needed.
15025           (libm_fp_lib, libc_unix_lib, libc_signal_lib, libc_machine_lib,
15026           libc_sys_dir, fake_sys_dir, libc_fake_sys_lib, stub_dir,
15027           stub_lib, crt0): new variables for tailoring lower level
15028           makefiles.  Assign accordingly and edit into makefiles.
15029         * libm/Makefile.in: updated copyright.
15030           (TARGETLIB): removed.
15031           (FLAGS_TO_PASS): removed TARGETLIB, machine_dir, sys_dir.
15032           (SUBDIRS): removed TARGETDEP_DIRS.
15033           (LIBM_FP_LIB, SUBLIBS): new macros.
15034           (all): reworked.
15035           (force): new target to force rebuilds.
15036           (Makefile): call $(SHELL) rather than sh.  drop redundant ./
15037         * libc/sys/a29khif/Makefile.in, libc/sys/decstation/Makefile.in,
15038           libc/sys/go32/Makefile.in, libc/sys/h8300hms/Makefile.in,
15039           libc/sys/h8500hms/Makefile.in, libc/sys/m88kbug/Makefile.in,
15040           libc/sys/sh/Makefile.in, libc/sys/sparc64/Makefile.in,
15041           libc/sys/sun4/Makefile.in, libc/sys/sysvi386/Makefile.in,
15042           libc/sys/sysvnecv70/Makefile.in, libc/sys/z8ksim/Makefile.in,
15043           stub/m68kmvme/Makefile.in: updated copyright.
15044           (TARGETLIB, TARGETCRT0, CRT0): macros removed.
15045           (all): reworked.  made this the default rule.
15046           (clean): also remove lib.a.
15047           (Makefile): call $(SHELL) rather than sh.  drop redundant ./
15048         * stub/Makefile.in: updated copyright.
15049           (TARGETLIB, TARGETCRT0, CRT0, TOP): removed.
15050           (stub_lib): new macro.
15051           (FLAGS_TO_PASS): removed TARGETLIB, stub_dir, TARGETCRT0.  Added
15052           RANLIB.
15053           (all): reworked.
15054           (clean, install): assume stub_dir exists.
15055           (Makefile): depend on configure.in.  call $(SHELL) rather than
15056           sh.  drop redundant ./
15057         * stub/configure.in (stublib): new macro, assign it, edit it into
15058           makefiles.
15059         * Makefile, libc/Makefile.in, doc/Makefile.in, libc/sys/Makefile.in:
15060           updated copyright.
15061           (all): reworked.
15062           (Makefile): call $(SHELL) rather than sh.  drop redundant ./
15063         * libc/Makefile.in (TARGETCRT0): removed.
15064           (FLAGS_TO_PASS): dropped TARGETLIB, machine_dir, sys_dir,
15065           TARGETCRT0.
15066           (SUBDIRS): drop TARGETDEP_DIRS.
15067           (LIBC_SIGNAL_LIB, LIBC_SYS_LIB, LIBC_MACHINE_LIB, LIBC_UNIX_LIB,
15068           LIBC_FAKE_SYS_LIB, SUBLIBS): new macros for configuration.
15069           (force): new target to force rebuilds.
15070         * libc/sys/Makefile.in (TARGETCRT0, sys_dir): removed.
15071           (FLAGS_TO_PASS): TARGETLIB, machine_dir, sys_dir, TARGETCRT0
15072           removed.
15073           (clean): assume sys_dir always exists.
15074         * libm/test/Makefile.in (Makefile): call $(SHELL) rather than sh.
15075           drop redundant ./
15076         * libc/ctype/Makefile.in, libc/errno/Makefile.in,
15077           libc/locale/Makefile.in, libc/machine/Makefile.in,
15078           libc/machine/a29k/Makefile.in, libc/machine/h8300/Makefile.in,
15079           libc/machine/h8500/Makefile.in, libc/machine/i386/Makefile.in,
15080           libc/machine/i960/Makefile.in, libc/machine/m68k/Makefile.in,
15081           libc/machine/mips/Makefile.in, libc/machine/necv70/Makefile.in,
15082           libc/machine/sh/Makefile.in, libc/machine/sparc/Makefile.in,
15083           libc/machine/z8k/Makefile.in, libc/reent/Makefile.in,
15084           libc/signal/Makefile.in, libc/stdio/Makefile.in,
15085           libc/stdlib/Makefile.in, libc/string/Makefile.in,
15086           libc/sys/Makefile.in, libc/syscalls/Makefile.in,
15087           libc/time/Makefile.in, libc/unix/Makefile.in,
15088           libm/ieeefp/Makefile.in, libm/math/Makefile.in: updated copyright.
15089           (TARGETLIB): removed.
15090           (all): reworked.
15091           (clean): also remove lib.a.
15092           (Makefile): call $(SHELL) rather than sh.  drop redundant ./
15093         * Makefile.in: (machine_dir, sys_dir, stub_dir, stub_lib, CRT0):
15094           new macros.
15095           (SUBDIRS): moved to follow frag inclusion, change stub to
15096           stub_dir.
15097           (FLAGS_TO_PASS): removed machine_dir, sys_dir, signal_dir which
15098           are now set in the libc Makefile.
15099         * libc/machine/Makefile.in (TARGETCRT0, machine_dir): removed.
15100           (FLAGS_TO_PASS): removed TARGETLIB, machine_dir, sys_dir,
15101           TARGETCRT0.
15102           (force): new target to force rebuilds.
15103         * stub/configure.in: determine and set stub_lib for for Makefile.
15104
15105 Thu Jul 15 12:01:27 1993  Doug Evans  (dje@canuck.cygnus.com)
15106
15107         * libc/sys/h8300hms/Makefile.in: Make `all' the default target.
15108         crt0.s renamed to crt0.S.
15109         * libc/sys/h8300hms/crt0.S: Add h8/300h support.
15110
15111         * libc/machine/h8300/Makefile.in: Make `all' the default target.
15112         * libc/machine/h8300/{cmpsi.S,ucmpsi.S}: #ifdef out entire file if
15113         h8300h.
15114         * libc/machine/h8300/defines.h: Add macros to handle pointers for
15115         h8300 (16 bits) and h8300h (32 bits).
15116         * libc/machine/h8300/{divsi3.S,mulsi3.S,memcpy.S,memset.S,
15117         reg_memcpy.S,reg_memset.S,strcmp.S}: Add h8300h support.
15118
15119 Thu Jul 15 10:13:29 1993  Ian Lance Taylor  (ian@cygnus.com)
15120
15121         * libc/machine/m88k/setjmp.S, Makefile.in: New files; a simple
15122         implementation of setjmp and longjmp for the m88k.
15123         * libc/include/machine/setjmp.h: Added __m88000__ case.
15124
15125 Wed Jul 14 10:10:30 1993  Doug Evans  (dje@canuck.cygnus.com)
15126
15127         * configure.in: Recognize h8300h as variant of h8300.
15128
15129 Tue Jul 13 12:24:11 1993  Steve Chamberlain  (sac@phydeaux.cygnus.com)
15130
15131         * libc/include/sys/unistd.h (read, write): get prototypes right.
15132         (sbrk): New prototype.
15133         * libc/reent/sbrkr.c (sbrkr): Use correct sbrk prototype.
15134         * libc/stdio/local.h: Include unistd.h.
15135         * libc/machine/h8300/syscalls.c: Names have changed.
15136
15137 Mon Jul 12 18:08:42 1993  K. Richard Pixley  (rich@cygnus.com)
15138
15139         * configure.in: add sys_dir assignment for m88k-bug.
15140
15141 Thu Jul  8 09:16:21 1993  Doug Evans  (dje@canuck.cygnus.com)
15142
15143         * libc/sys/sparc64/sys/syscallasm.h: New macros to handle either
15144         a.out or elf.
15145         * libc/sys/sparc64: all *.S files: Use new macros.
15146         * libc/sys/sparc64/isatty.c: New file.
15147         * libc/sys/sparc64/Makefile.in: Stop using /lib/libc.a for
15148         functions beyond what newlib provides.
15149
15150 Thu Jul  8 09:11:28 1993  Doug Evans  (dje@canuck.cygnus.com)
15151
15152         * libc/include/sys/stat.h: Move st_atime so not doubly defined for
15153         svr4.
15154
15155 Thu Jul  8 09:09:16 1993  Doug Evans  (dje@canuck.cygnus.com)
15156
15157         * libc/include/machine/ieeefp.h: Add support for h8/300h.
15158
15159 Fri Jul  2 10:11:20 1993  K. Richard Pixley  (rich@cygnus.com)
15160
15161         * configure.in: add m88k.
15162         * libc/include/machine/ieeefp.h: add case for m88k.  Also add
15163         sanity check so no one else need ever chase what I did to find
15164         this.
15165
15166         * libm/math/Makefile.in (FAKEC): added atanf.c log1pf.c scalbnf.c.
15167
15168 Fri Jul  2 09:15:21 1993  Ian Lance Taylor  (ian@cygnus.com)
15169
15170         * doc/makedoc.c: Include <ctype.h>.
15171
15172 Wed Jun 30 09:35:06 1993  Doug Evans  (dje@canuck.cygnus.com)
15173
15174         * libc/Makefile.in (FLAGS_TO_PASS): Add TARGET_ASFLAGS.
15175         * libc/sys/Makefile.in (FLAGS_TO_PASS): Add TARGET_ASFLAGS.
15176         * libc/machine/Makefile.in (FLAGS_TO_PASS): Add TARGET_ASFLAGS.
15177
15178         * libm/test/Makefile.in (all): Link with ../../lib[cm].a.
15179
15180 Sun Jun 27 17:05:20 1993  Doug Evans  (dje@sphagnum.cygnus.com)
15181
15182         * libc/include/errno.h (ENOSYS): Added.
15183
15184         * libc/unix/getpwd.c (getcwd): Fix typo (_up -> up).
15185
15186 Mon Jun 21 09:03:32 1993  Steve Chamberlain  (sac@phydeaux.cygnus.com)
15187
15188         * libc/stdio/fflush.c (fflush): Check for reent struct
15189         initialization.
15190         * libc/stdio/fdopen.c (fdopen): Avoid namespace conflict.
15191
15192 Fri Jun 18 16:06:05 1993  Mark Eichin  (eichin@rtl.cygnus.com)
15193
15194         * libc/stdlib/dtoastub.c: new file -- move user callable "dtoa"
15195         out of dtoa.c so it doesn't pollute the namespace.
15196         * libc/include/_syslist.h: new file -- mappings from _function to
15197         function, for systems where we can't win (by default, all of them,
15198         until we start updating system calls.)
15199         * libc/syscalls: new directory -- stubs for exporting _function
15200         names as unmodified function names.
15201         * libc/configure.in: add MISSING_SYSCALL_NAMES to enable
15202         _syslist.h on all platforms by default, but put hooks in for
15203         fake_sys_dir so we can include it when we've renamed the system
15204         calls.
15205         * libc/reent/execr.c libc/reent/filer.c libc/reent/fstatr.c
15206         libc/reent/linkr.c libc/reent/sbrkr.c libc/reent/statr.c
15207         libc/signal/raise.c libc/signal/signal.c libc/stdio/fdopen.c
15208         libc/stdio/mktemp.c libc/stdio/tmpnam.c libc/stdlib/abort.c
15209         libc/stdlib/system.c libc/unix/getcwd.c libc/unix/getlogin.c
15210         libc/unix/getpass.c libc/unix/getut.c libc/unix/ttyname.c: change
15211         non ANSI functions to call _function.
15212
15213 Wed Jun  9 09:48:26 1993  Ian Lance Taylor  (ian@cygnus.com)
15214
15215         * libc/stdlib/strtoul.c (_strtoul_r): Handle leading 0 correctly
15216         when base 16 is specified.  Don't accept non-digits if radix > 10.
15217
15218 Thu Jun  3 10:01:15 1993  Doug Evans  (dje@canuck.cygnus.com)
15219
15220         * libc/include/math.h: Rename xxx_r fns to _xxx_r.
15221
15222 Wed Jun  2 16:54:16 1993  Jim Wilson  (wilson@sphagnum.cygnus.com)
15223
15224         * libc/include/sys/stat.h: Surround text after #endif with
15225         comments.
15226
15227 Wed Jun  2 12:47:32 1993  Ian Lance Taylor  (ian@cygnus.com)
15228
15229         * libc/stdlib/mallocr.c: If MALLOC_PROVIDED is defined, just make
15230         _malloc_r, _realloc_r, and free_r call the corresponding
15231         non-reentrant functions.
15232
15233         * libm/math/modf.c (modf): We now take the address of ipart, so
15234         don't make it a register variable.
15235
15236 Tue Jun  1 18:25:54 1993  Doug Evans  (dje@canuck.cygnus.com)
15237
15238         * libm/math/*: Rename all xxx_r fns to _xxx_r.
15239
15240 Wed May 26 22:06:35 1993  Roland H. Pesch  (pesch@cygnus.com)
15241
15242         * libc/libc.texinfo and embedded docn throughout: formatting
15243         improvements, minor rephrasing for clarity, and improved
15244         reentrancy docn.
15245
15246 Sun May 23 17:29:49 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
15247
15248         * libm/ieeefp/infinity.c (maxpowtwof): Fix initialzation bug.
15249
15250         * libc/stdio/cvt.c (_licvt): Print the right value on machines
15251         where sizeof(int) != sizeof(long).
15252
15253 Fri May 21 22:09:32 1993  Roland H. Pesch  (pesch@fowanton.cygnus.com)
15254
15255         * libc/reent/execr.c, libc/reent/filer.c, libc/reent/linkr.c,
15256         libc/reent/sbrkr.c, libc/reent/statr.c, libc/stdio/tmpnam.c,
15257         libc/stdlib/atol.c, libc/stdlib/rand.c, libc/string/strpbrk.c,
15258         libc/string/strspn.c, libm/ieeefp/isnan.c, libm/math/bessel.c,
15259         libm/math/matherr.c: changes for better docn formatting (info).
15260
15261         * libc/libc.texinfo, libc/ctype/ctype.tex, libc/locale/locale/tex,
15262         libc/reent/reent.tex, libc/signal/signal.tex,
15263         libc/stdio/stdio.tex, libc/stdlib/stdlib.tex,
15264         libc/string/strings.tex, libc/sys/sys.tex, libc/time/time.tex,
15265         libm/libm.texinfo, libm/ieeefp/ieeefp.tex, libm/math/math.tex: use
15266         makeinfo node defaulting to get better Info file node structure.
15267         (Requires recent sac change to doc/makedoc.c and doc/doc.str.)
15268         Also include a few formerly missing sections (subroutines).
15269
15270         * doc/doc.str: delete fossil expansion for "func"
15271
15272         * default.menu, no-signal.menu: delete.
15273
15274         * Makefile.in, libc/Makefile.in, configure.in, host/any: simplify
15275         method used to adjust doc for missing "signals" chapter when 
15276         signal_dir is empty.
15277
15278 Thu May 20 21:38:37 MDT 1993  Jeffrey Wheat  (cassidy@cygnus.com)
15279
15280         * configure.in: added testsuite/libm.sac
15281
15282 Wed May 19 14:52:34 1993  Doug Evans  (dje@thepub.cygnus.com)
15283
15284         * libc/sys/sparc64/crt0.S: Set %g4 to 0 (to test Medium/Anywhere
15285         code model).
15286
15287 Tue May 18 13:17:21 1993  Ian Lance Taylor  (ian@cygnus.com)
15288
15289         * libm/Makefile.in: Use $(MAKE) rather than make, and define
15290         MAKEOVERRIDES to be empty.
15291
15292 Mon May 17 08:42:44 1993  Ian Lance Taylor  (ian@cygnus.com)
15293
15294         * configure.in: Don't build mips-*-* with -msoft-float, since that
15295         makes it incompatible with hard floating point.
15296
15297 Mon May 17 00:03:35 MDT 1993  Jeffrey Wheat  (cassidy@cygnus.com)
15298
15299         * Makefile.in: added recursive 'make check'
15300
15301 Thu May 13 16:24:18 MDT 1993  Jeffrey Wheat  (cassidy@cygnus.com)
15302
15303         * configure.in: added ./testsuite ./testsuite/libm.paranoia
15304         * ./testsuite/Makefile.in: created
15305         * ./testsuite/libm.paranoia: paranoia tests added
15306
15307 Thu May 13 10:30:24 1993  Ian Lance Taylor  (ian@cygnus.com)
15308
15309         * configure.in: For mips-*-* set machine_dir to mips.
15310
15311         * libc/machine/mips: New directory.
15312         * libc/machine/mips/Makefile.in: New file.
15313         * libc/machine/mips/setjmp.S: New file; simplistic MIPS version of
15314         setjmp and longjmp.
15315         * libc/include/machine/setjmp.h: Added __mips__ case.
15316
15317         * libc/machine/lmips: Removed unused and useless directory.
15318
15319 Mon May  3 10:22:31 1993  Ian Lance Taylor  (ian@cygnus.com)
15320
15321         * configure.in: Accept i486-*-sco* as well as i386-*-sco*.
15322
15323 Thu Apr 15 15:16:44 1993  Doug Evans  (dje@canuck.cygnus.com)
15324
15325         * libc/sys/sparc64/crt0.S: Add comment (%g1 contains atexit arg at
15326         start up).
15327
15328 Fri Apr  9 13:32:26 1993  Ian Lance Taylor  (ian@cygnus.com)
15329
15330         * libc/include/machine/setjmp-dj.h: Use _SETJMP_DJ_H rather than
15331         SETJMP_H.
15332
15333 Thu Apr  8 10:07:18 1993  Doug Evans  (dje@canuck.cygnus.com)
15334
15335         * libm/test/convert.c: structure member errno -> errno_val.
15336         Must include <errno.h> to use errno, it's a macro now.
15337         * libm/test/math.c: Ditto.
15338         * libm/test/math2.c: Include errno.h.
15339         * libm/test/string.c: Ditto.
15340         * libm/test/test.h: structure member errno -> errno_val.
15341         Remove extern int errno decl.
15342
15343 Thu Apr  8 07:56:33 1993  Ian Lance Taylor  (ian@cygnus.com)
15344
15345         * libc/stdio/Makefile.in: Added dependencies on local header
15346         files.
15347         * libc/stdio/std.h, libc/stdio/vfprintf.h: Removed unused header
15348         files.
15349
15350 Wed Apr  7 16:19:32 1993  Ian Lance Taylor  (ian@cygnus.com)
15351
15352         * libc/include/machine/ieeefp.h: Added __MIPSEB__ case.
15353
15354 Wed Apr  7 10:55:21 1993  Doug Evans  (dje@canuck.cygnus.com)
15355
15356         * libc/stdio/siprintf.c libc/stdio/sscanf.c libc/stdio/vsprintf.c:
15357         Initialize _data.
15358
15359         * libc/stdio/vfprintf.c: No need to declare _icvt, _licvt, _sicvt.
15360         * libc/stdio/local.h: Add prototype for _licvt.
15361
15362         * libc/stdio/ungetc.c (__submore): Use _malloc_r,_realloc_r
15363         instead of malloc,reealloc.
15364
15365         * libc/stdlib/local.h: New file.
15366         * libc/stdlib/efgcvt.c: #include local.h.
15367         (gcvt): Fix call to _gcvt.
15368         * libc/stdlib/ecvtbuf.c: #include local.h.
15369
15370         * libc/stdlib/Makefile.in: new files mallocr.c mstats.c.
15371         * libc/stdlib/mallocr.c mstats.c malloc.h: New files.
15372         * libc/stdlib/malloc.c: main routines moved to mallocr.c.
15373
15374         * libc/stdlib/atexit.c: moved global data to struct _reent.
15375         * libc/stdlib/exit.c: use struct _atexit in struct _reent.
15376
15377         * libc/reent/reent.c (inpure_data): _REENT_INIT macro modified.
15378
15379 Wed Apr  7 09:41:50 1993  Doug Evans  (dje@canuck.cygnus.com)
15380
15381         * libc/include/sys/reent.h: Stuff required by ANSI headers moved
15382         here from ../reent.h.
15383
15384 Tue Apr  6 12:56:01 1993  Ian Lance Taylor  (ian@cygnus.com)
15385
15386         * Makefile.in (MATHOBJS_IN_LIBC): List of object files which
15387         should be provided in both libc.a and libm.a.
15388         (libc.a): Depend on targ-include and libm.a.  Copy
15389         $(MATHOBJS_IN_LIBC) from libm.a to libc.a.
15390         (libm.a): Depend on targ-include.
15391         * configure.in (subdirs): Removed libc/math.
15392
15393 Mon Apr  5 10:18:16 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
15394
15395         * libm/ieeefp/infinity.c (maxpowtwo): Fix initialization bug.
15396
15397 Sat Apr  3 11:06:07 1993  Doug Evans  (dje@canuck.cygnus.com)
15398
15399         * libc/include/{errno.h, math.h, stdio.h, stdlib.h}: Use
15400         sys/reent.h instead of reent.h.
15401         * libc/include/reent.h: Split into two parts: stuff needed by ANSI
15402         headers moved to sys/reent.h.  
15403         * libc/include/signal.h: _MAX_SIGNALS moved to sys/signal.h.
15404         * libc/include/sys/signal.h: Define _MAX_SIGNALS if
15405         __need__MAX_SIGNALS defined.
15406         * libc/include/stdio.h: struct __sFILE moved to sys/reent.h.
15407         std{in,out,err} refer to new _std{in,out,err} members.
15408
15409 Fri Apr  2 11:27:12 1993  Doug Evans  (dje@canuck.cygnus.com)
15410
15411         * libc/include/sys/signal.h: #define _SYS_SIGNAL_H for general
15412         case.
15413
15414 Fri Apr  2 09:41:10 1993  Doug Evans  (dje@canuck.cygnus.com)
15415
15416         * libc/sys/sparc64/execve.S (execve): Insert nop in delay slot,
15417         rather than whatever macro seterrno() has.
15418
15419 Thu Apr  1 16:47:08 1993  Doug Evans  (dje@canuck.cygnus.com)
15420
15421         * libc/locale/locale.c: Reentrant routines _r_xxx renamed to
15422         _xxx_r.  struct reent_struct renamed to struct _reent for ANSI.
15423
15424         * libc/include/machine/fastmath.h: Use _HAVE_STDC instead of
15425         __STDC__.
15426
15427         * libc/reent/{execr.c, filer.c, fstatr.c, linkr.c, reent.c,
15428         reent.tex, sbrkr.c, statr.c}: _r_xxx reentrant routines renamed to
15429         _xxx_r.  struct reent_struct renamed to struct _reent for ANSI.
15430
15431         * libc/signal/signal.c: Reentrant routines _r_xxx renamed to
15432         _xxx_r.  struct reent_struct renamed to struct _reent for ANSI.
15433
15434         * libc/stdio/{fclose.c, fdopen.c, findfp.c, fiprintf.c, flags.c,
15435         fopen.c, fprintf.c, freopen.c, fscanf.c, fseek.c, ftell.c,
15436         fwalk.c, getchar.c, gets.c, iprintf.c, local.h, makebuf.c,
15437         mktemp.c, perror.c, printf.c, putchar.c, puts.c, refill.c,
15438         remove.c, rename.c, scanf.c, setvbuf.c, siprintf.c, sprintf.c,
15439         sscanf.c, stdio.c, tmpfile.c, tmpnam.c, vfprintf.c, vfprintf.h,
15440         vfscanf.c, vprintf.c, vsprintf.c}: Reentrant routines _r_xxx
15441         renamed to _xxx_r.  struct reent_struct renamed to struct _reent
15442         for ANSI.  structure members given leading "_" for ANSI.  Use
15443         _HAVE_STDC instead of __STDC__ and _HAVE_STDARG.
15444
15445         * libc/stdlib/{__adjust.c, calloc.c, dtoa.c, ecvtbuf.c, malloc.c,
15446         mprec.c, mprec.h, rand.c, std.h, strtod.c, strtol.c, strtoul.c,
15447         system.c}: Reentrant routines _r_xxx renamed to _xxx_r.  struct
15448         reent_struct renamed to struct _reent for ANSI.
15449         Structure members given leading "_" for ANSI.
15450         _CONST --> const in prototypes.
15451         Use _HAVE_STDC instead of __STDC__.
15452
15453         * libc/string/strtok.c: Reentrant routines _r_xxx renamed to
15454         _xxx_r.
15455         struct reent_struct renamed to struct _reent for ANSI.
15456         Structure members given leading "_" for ANSI.
15457
15458         * libc/time/asctime.c: Reentrant routines _r_xxx renamed to
15459         _xxx_r.
15460         struct reent_struct renamed to struct _reent for ANSI.
15461
15462         * libm/math/{acos.h, acosh.h, asin.c, asinh.h, atanh.h, bessel.h,
15463         cbrt.h, cosh.h, erf.c, erf.h, error.c, exp.c, fmod.c, frexp.h,
15464         gamma.h, hypot.h, ldexp.c, log.h, log10.c, log1p.c log2.c,
15465         mathimpl.h, pow.c, remainder.c, sincos.c, sinh.h, sqrt.h, tan.c,
15466         tanh.h}: struct reent_struct renamed to struct _reent for ANSI.
15467
15468         * libc/include/{_ansi.h, ctype.h, math.h, reent.h, locale.h,
15469         signal.h, stdio.h, stdlib.h, string.h, time.h}:
15470         Use _HAVE_STDC instead of __STDC__ and _HAVE_STDARG.
15471         #ifndef _STRICT_ANSI non-ANSI routines.
15472         Reentrant routines renamed from _r_xxx to _xxx_r.
15473         No need to use _STRICT_ANSI on _xxx_r reentrant routines.
15474         Use _STRICT_ANSI instead of __STRICT_ANSI, _ANSI_SOURCE, etc.
15475         Clean up namespace (structure members have leading "_").
15476         struct reent_struct renamed to struct _reent for ANSI compliance.
15477         _CONST --> const in function prototypes.
15478
15479         * libc/include/string.h: Add NULL and size_t.
15480
15481         * libc/sys/sparc64/Makefile.in: New syscall routines for link,
15482         unlink, wait, wait4. Reentrant syscall routines close, fork,
15483         fstat, link, lseek, open, read, sbrk, stat, unlink, wait, wait4,
15484         write.
15485         * libc/sys/sparc64/cerror.S (cerror_r): New routine.
15486         * libc/sys/sparc64/{close.S, fork.S, fstat.S, link.S, lseek.S,
15487         open.S, read.S, sbrk.S, stat.S, unlink.S, wait.S, wait4.S,
15488         write.S}: Define reentrant versions.
15489         * libc/sys/sparc64/sys/syscallasm.h (defsyscall_r): New macro for
15490         reentrant syscalls.
15491
15492         * libc/sys/sparc64/crt0.S (start): Fix initialization of environ.
15493
15494         * libc/include/stdlib.h (RAND_MAX): Fix value.
15495
15496 Thu Apr  1 12:28:30 1993  Ian Lance Taylor  (ian@cygnus.com)
15497
15498         * libc/sys/a29khif/_main.c: Removed unnecessary file.
15499         * libc/sys/a29khif/Makefile.in (OFILES): Removed _main.c, moved
15500         VPATH support targets after all: target.
15501
15502         * stub/mvme135/mvme.S: Renamed exceptionhandler to
15503         exceptionHandler, which is what mvme135-stub.c expects.
15504
15505 Wed Mar 31 17:42:03 1993  Doug Evans  (dje@cygnus.com)
15506
15507         * libc/stdio/tmpnam.c (worker): Fix test for _r_open() failure.
15508
15509         * libc/unix/getpass.c (getpass): Use stdin,stderr instead of
15510         def_stdin/def_stderr (latter removed from stdio.h to make it ANSI
15511         compliant).
15512
15513 Tue Mar 30 09:58:21 1993  Doug Evans  (dje@canuck.cygnus.com)
15514
15515         * libc/reent/execr.c (_r_wait): Re-order args to make reent_struct
15516         first.
15517         libc/reent/filer.c (_r_open, _r_close, _r_lseek, _r_read,
15518         _r_write): Ditto.
15519         libc/reent/fstatr.c (_r_fstat): Ditto.
15520         libc/reent/linkr.c (_r_link, _r_unlink): Ditto.
15521         libc/reent/sbrkr.c (_r_sbrk): Ditto.
15522         libc/reent/statr.c (_r_stat): Ditto.
15523
15524         * libc/stdio/fopen.c (_r_fopen): Re-order args to _r_open.
15525         * libc/stdio/freopen.c (freopen): Ditto for _r_open, _r_free.
15526         * libc/stdio/fseek.c (fseek): Ditto for _r_fseek.
15527         * libc/stdio/makebuf.c (__smakebuf): Ditto for _r_fstat.
15528         * libc/stdio/mktemp.c (_gettemp): Ditto for _r_stat, _r_open.
15529         * libc/stdio/remove.c (_r_remove): Ditto for _r_unlink.
15530         * libc/stdio/rename.c (_r_rename): Ditto for _r_link, _r_unlink.
15531         * libc/stdio/stdio.c (__sread): Ditto for _r_read.
15532         (__swrite): Ditto for _r_lseek, _r_write.
15533         (__sseek): Ditto for _r_lseek.
15534         (__close): Ditto for _r_close.
15535         * libc/stdio/tmpnam.c (worker): Ditto for _r_open, _r_close.
15536
15537         * libc/stdlib/malloc.c (_r_morecore): Re-order args to _r_sbrk.
15538         * libc/stdlib/system.c (_r_system): Ditto for _r_wait.
15539
15540         * libc/include/reent.h: Re-order arguments to _r_xxx syscall fns
15541         to make reent_struct the first argument (and thus consistent with
15542         the rest of newlib).
15543
15544         * stub/mvme135/mvme135-stub.c (initializeRemcomErrorFrame): Remove
15545         reference to __STDC__.
15546
15547 Mon Mar 29 12:34:32 1993  Doug Evans  (dje@canuck.cygnus.com)
15548
15549         * libc/stdlib/exit.c (exit): Use _REENT->__cleanup instead of
15550         global __cleanup.
15551
15552 Wed Mar 24 11:54:35 1993  Doug Evans  (dje@canuck.cygnus.com)
15553
15554         * libc/stdio/freopen.c (freopen): Ensure stdio is initialized
15555         first.
15556         libc/stdio/fclose.c (fclose): Ditto.
15557
15558 Tue Mar 23 01:26:52 1993  Doug Evans  (dje@rtl.cygnus.com)
15559
15560         * Run through indent and rename reentrant routines for ANSI.
15561         libc/stdio/{clearerr.c cvt.c fclose.c fdopen.c feof.c ferror.c
15562         fflush.c fgetc.c fgetpos.c fgets.c findfp.c fiprintf.c flags.c
15563         fopen.c fprintf.c fputc.c fputs.c fread.c freopen.c fscanf.c
15564         fseek.c fsetpos.c ftell.c fvwrite.c fwalk.c fwrite.c getc.c
15565         getchar.c gets.c iprintf.c makebuf.c mktemp.c perror.c printf.c
15566         putc.c putchar.c puts.c refill.c remove.c rename.c rewind.c rget.c
15567         scanf.c setbuf.c setvbuf.c siprintf.c sprintf.c sscanf.c stdio.c
15568         tmpfile.c tmpnam.c ungetc.c vfprintf.c vfscanf.c vprintf.c
15569         vsprintf.c wbuf.c wsetup.c local.h}
15570
15571         * libc/locale/locale.c: Reformat and rename for ANSI, GNU style.
15572
15573         * Run through indent and rename xxx_r fns to _r_xxx for ANSI.
15574         libc/stdlib/{__adjust.c __exp10.c __ten_mu.c abort.c abs.c
15575         assert.c atexit.c atof.c atoi.c atol.c bsearch.c calloc.c div.c
15576         dtoa.c ecvtbuf.c efgcvt.c exit.c getenv.c labs.c ldiv.c malloc.c
15577         mbtowc.c mprec.c putenv.c qsort.c rand.c setenv.c strdup.c
15578         strtod.c strtol.c strtoul.c system.c wctomb.c mprec.h}
15579
15580         * Run through indent.
15581         libc/string/{bcmp.c bcopy.c bzero.c index.c memchr.c memcmp.c
15582         memcpy.c memmove.c memset.c rindex.c strcat.c strchr.c strcmp.c
15583         strcoll.c strcpy.c strcspn.c strerror.c strlen.c strncat.c
15584         strncmp.c strncpy.c strpbrk.c strrchr.c strspn.c strstr.c strtok.c
15585         strxfrm.c}
15586
15587         * libc/time/{asctime.c clock.c ctime.c difftime.c gmtime.c
15588         localtime.c mktime.c strftime.c time.c}:
15589         Run through indent and rename xxx_r (reentrant) fns to _r_xxx for ANSI.
15590
15591         * Reformatting + renaming (for ANSI, GNU style, consistency).
15592         libc/include/{_ansi.h, assert.h, ctype.h, errno.h, fastmath.h,
15593         ieeefp.h, locale.h, math.h, paths.h, pwd.h, reent.h, setjmp.h,
15594         signal.h, stdio.h, stdlib.h, string.h, time.h, unistd.h}
15595
15596 Fri Mar 19 11:28:01 1993  Doug Evans  (dje@cygnus.com)
15597
15598         * libc/include/stdio.h (stdin_r): Fix.
15599
15600 Fri Mar 19 09:43:48 1993  Ian Lance Taylor  (ian@cygnus.com)
15601
15602         * Makefile.in: Unexport some variables to keep GNU make from
15603         putting them in the environment and using up needed ARG_MAX space
15604         (a hack is used to let this work with older makes as well).
15605
15606 Tue Mar 16 15:11:08 1993  Ian Lance Taylor  (ian@cygnus.com)
15607
15608         * Makefile.in: Use $(MAKE) rather than make.
15609         (MAKEOVERRIDES): Define to be empty.
15610         (FLAGS_TO_PASS): Don't pass down LD (it's not used).
15611         (libc.a, libm.a): Depend on targ-include.
15612         * host/any (LD): Don't define.
15613         (INCLUDES): Use targ-include.   
15614         * stub/Makefile.in (MAKEOVERRIDES): Define to be empty.
15615         (FLAGS_TO_PASS): Don't pass down LD (it's not used).
15616         * libc/Makefile.in: Use $(MAKE) rather than make.
15617         (MAKEOVERRIDES): Define to be empty.
15618         (FLAGS_TO_PASS): Don't pass LD (it's not used).
15619         (all): Rewrote to be slightly smaller.
15620         * libc/machine/Makefile.in, libc/sys/Makefile.in (MAKEOVERRIDES):
15621         Define to be empty.
15622         (FLAGS_TO_PASS): Don't pass LD (it's not used).
15623         * libm/Makefile.in (FLAGS_TO_PASS): Don't pass LD (it's not used).
15624
15625 Mon Mar 15 08:45:41 1993  Ian Lance Taylor  (ian@cygnus.com)
15626
15627         * libc/sys/go32/gerrno.s: Renamed from errno.s to avoid conflict
15628         with errno/errno.c.
15629
15630 Fri Mar 12 09:46:54 1993  Ian Lance Taylor  (ian@cygnus.com)
15631
15632         * Changes for reentrancy.
15633         libc/stdio/fdopen.c, libc/stdio/freopen.c, libc/stdio/perror.c:
15634         Use ptr->_errno, not errno.
15635         libc/stdio/mktemp.c (mkstemp_r, mktemp_r): New functions.
15636         libc/stdio/remove.c (remove_r): New function.
15637         libc/stdio/rename.c (rename_r): New function.
15638         libc/stdio/fopen.c, libc/stdio/freopen.c, libc/stdio/fseek.c,
15639         libc/stdio/makebuf.c, libc/stdio/mktemp.c, libc/stdio/remove.c,
15640         libc/stdio/rename.c, libc/stdio/stdio.c, libc/stdio/tmpnam.c: Use
15641         reentrant versions of system calls.
15642         libc/stdio/gets.c: Call getchar_f, not nonexistent getchar_r.
15643         libc/stdio/scanf.c: Use stdin_r, not nonexistent stdin_n.
15644         libc/stdio/tmpfile.c: Use tmpnam_f, not nonexistent tmpnam_r.
15645         libc/stdio/findfp.c: Include <string.h>.
15646         libc/stdio/fread.c, libc/stdio/rget.c, libc/stdio/scanf.c: Include
15647         "local.h".
15648         libc/stdio/wbuf.c: Include "fvwrite.h"
15649
15650         * libc/stdlib/{dtoa.c, ecvtbuf.c, mprec.c, strtod.c}: Include
15651         <string.h>.
15652         libc/stdlib/malloc.c: Call sbrk_r rather than sbrk.
15653         (NULL): Don't define if already defined.
15654         libc/stdlib/system.c: Call reentrant versions of system calls.
15655         (system_r): New function.
15656
15657         * Changes for reentrancy.
15658         libc/include/_ansi.h (_PARAMS): New macro.
15659         libc/include/errno.h: Define errno as a macro that calls __errno.
15660         (__errno_r): New macro for reentrant code.
15661         libc/include/math.h: Include reent.h.  Declare many reentrant
15662         functions.
15663         (signgam): Now a macro, not a variable.
15664         (struct exception): Added err field.
15665         libc/include/reent.h: Don't declare __sglue.  Added function
15666         declarations.
15667         (struct reent_struct): Moved errno to beginning.  Added _signgam.
15668         libc/include/stdio.h, libc/include/stdlib.h: Added function
15669         declarations.
15670
15671         * More reentrancy hacking.
15672         libc/errno/errno.c (__errno): New function.
15673         libc/reent/execr.c, libc/reent/filer.c, libc/reent/fstatr.c,
15674         libc/reent/linkr.c, libc/reent/sbrkr.c, libc/reent/statr.c: New
15675         files.
15676         
15677         * Added many new reentrant functions to libm/math/*.
15678         libm/math/error.c (__matherror): Added reent_struct pointer
15679         argument. Changed all callers.
15680         libm/math/gamma.c (signgam): Removed. Set ptr->_signgam, instead.
15681         libm/math/exp.h, libm/math/pow.h, libm/math/sincos.h,
15682         libm/math/tan.h: Removed obsolete unused header files.
15683
15684         * libc/sys/a29khif/stubs.s: Use register lr0, not v0.
15685
15686         * libc/sys/sun/Makefile.in (COPYOFILES): Don't pull in errno.o.
15687
15688 Mon Mar  8 16:43:43 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
15689
15690         * libc/sys/a29khif/stubs.s: clobber safe register, and fill all
15691         delay slots.
15692
15693 Tue Mar  2 14:47:00 1993  Jeffrey Osier      (jeffrey@fowanton.cygnus.com)
15694
15695         * libc/libc.texinfo:  comment out reentrancy chapter (duh)
15696
15697 Tue Mar  2 14:34:16 1993  Jeffrey Osier      (jeffrey@fowanton.cygnus.com)
15698
15699         * libc/reent/reent.tex:  New file.  (text from
15700         newlib/libc/libc.texinfo)
15701         * libc/stdio/tmpnam.c:  fixed doc typo
15702         * libc/stdlib/rand.c:   fixed doc typo
15703
15704 Tue Mar  2 14:34:16 1993  Jeffrey Osier      (jeffrey@fowanton.cygnus.com)
15705
15706         * libc/reent/reent.tex:  New file.  (text from
15707         newlib/libc/libc.texinfo)
15708
15709 Fri Feb 26 12:20:54 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
15710
15711         support for reentrancy
15712         * libc/reent/reent.c, libc/reent/Makefile.in, libc/reent/reent.c:
15713         new files
15714         * libc/errno/errno.c, libc/include/ieeefp.h,
15715         libc/include/locale.h, libc/include/reent.h,
15716         libc/include/signal.h, libc/include/stdio.h,
15717         libc/include/stdlib.h, libc/include/string.h, libc/include/time.h,
15718         libc/signal/signal.c libc/stdio/cvt.c, libc/stdio/fclose.c,
15719         libc/stdio/fdopen.c, libc/stdio/fflush.c, libc/stdio/fgets.c,
15720         libc/stdio/findfp.c, libc/stdio/flags.c, libc/stdio/fopen.c,
15721         libc/stdio/fputc.c, libc/stdio/freopen.c, libc/stdio/fseek.c,
15722         libc/stdio/ftell.c, libc/stdio/fwalk.c, libc/stdio/getchar.c,
15723         libc/stdio/gets.c, libc/stdio/glue.h, libc/stdio/iprintf.c,
15724         libc/stdio/local.h, libc/stdio/makebuf.c, libc/stdio/perror.c,
15725         libc/stdio/printf.c, libc/stdio/putchar.c, libc/stdio/puts.c,
15726         libc/stdio/refill.c, libc/stdio/scanf.c, libc/stdio/setvbuf.c,
15727         libc/stdio/sprintf.c, libc/stdio/tmpfile.c, libc/stdio/tmpnam.c,
15728         libc/stdio/ungetc.c, libc/stdio/vfprintf.c, libc/stdio/vfprintf.h,
15729         libc/stdio/vfscanf.c, libc/stdio/vprintf.c, libc/stdio/wsetup.c,
15730         libc/stdlib/__adjust.c, libc/stdlib/__exp10.c,
15731         libc/stdlib/assert.c, libc/stdlib/atexit.c, libc/stdlib/atol.c,
15732         libc/stdlib/dtoa.c, libc/stdlib/ecvtbuf.c, libc/stdlib/malloc.c,
15733         libc/stdlib/mprec.c, libc/stdlib/mprec.h, libc/stdlib/rand.c,
15734         libc/stdlib/setenv.c, libc/stdlib/std.h, libc/stdlib/strtod.c,
15735         libc/stdlib/strtol.c, libc/stdlib/strtoul.c, libc/string/strtok.c,
15736         libc/time/asctime.c, libc/time/localtime.c, libc/time/mktime.c,
15737         libc/time/strftime.c: modify to provide reentracy.
15738
15739         new routines:
15740         strtok_r, asctime_r, fdopen_r, _cleanup_r, fopen_r, iprintf_r,
15741         perror_r, printf_r, putchar_r, puts_r, scanf_r, sprintf_r,
15742         tmpfile_r, vfiprintf_r, vfprintf_r, strtod_r, dtoa_r, rand_r,
15743         srand_r, strtoul_r,strtol_r, free_r, malloc_r, morecore_r,
15744         mstats_r, realloc_r, localeconv_r, setlocale_r
15745
15746 Wed Feb 17 20:17:15 1993  Mark Eichin  (eichin@cygnus.com)
15747
15748         * libc/include/machine/ieeefp.h, libc/include/machine/setjmp.h,
15749         libc/include/sys/config.h, libc/include/sys/signal.h,
15750         libc/include/sys/stat.h, libc/include/sys/types.h: For compiler
15751         provided macros (such as m68000), use the ansi version
15752         (__m68000__) so that the library can be used with code compiled
15753         -ansi. In particular, m68000, mc68000, _AM29K, i386, MIPSEL, unix,
15754         and sparc.
15755
15756 Wed Feb 17 13:01:34 1993  Jim Wilson  (wilson@sphagnum.cygnus.com)
15757
15758         * configure.in (sparc*): Don't set -fsoft-float for sparc
15759         configurations.  Do set -fsoft-float for sparclite configurations.
15760
15761 Fri Feb 12 16:25:52 1993  Roland H. Pesch  (pesch@fowanton.cygnus.com)
15762
15763         * default.menu, no-signal.menu: alternate forms of libc main menu
15764           (in newlib rather than newlib/libc due to configuration restrictions)
15765
15766         * configure.in: select one of the two menus above, link to
15767         libc.menu
15768
15769         * libc/libc.texinfo: include menu from separate file
15770
15771 Fri Feb 12 12:50:06 1993  Ian Lance Taylor  (ian@cygnus.com)
15772
15773         * Makefile.in (FLAGS_TO_PASS): Put INSTALL back in.
15774         (info): Split long shell command in half.
15775         * libc/Makefile.in (info, targetdep.tex): Don't pass everything to
15776         sub-makes, just CHEW and TARGETDOC. 
15777         (targetdep.tex): Removed now special handling of sys and machine
15778         subdirectories, made obsolete some time ago.
15779         * libc/machine/Makefile.in (doc): Don't pass everything to
15780         sub-make, just CHEW and TARGETDOC.
15781         (Makefile): New target.
15782         * libc/sys/Makefile.in (Makefile): New target.
15783
15784 Thu Feb 11 15:25:15 1993  Ian Lance Taylor  (ian@cygnus.com)
15785
15786         * Makefile.in (here and most subdirectories): Only pass down CHEW
15787         and TARGETDOC when making info, not for other targets.
15788
15789         * Makefile.in (here and most subdirectories), host/any: Use $(AR)
15790         $(AR_FLAGS) rather than $(ARUPDATE).
15791
15792 Wed Feb 10 11:57:52 1993  Ian Lance Taylor  (ian@cygnus.com)
15793
15794         * Try to reduce command line length:
15795         * Makefile.in (FLAGS_TO_PASS): don't pass down exec_prefix,
15796         CC_FOR_BUILD, CFLAGS_FOR_BUILD, INSTALL or CHEW.
15797         (info, docs): pass CC_FOR_BUILD and CFLAGS_FOR_BUILD to doc.
15798         (info): Pass CHEW to other subdirs.
15799
15800 Tue Feb  9 14:01:42 1993  Mark Eichin  (eichin@cygnus.com)
15801
15802         * configure.in: add signal_dir, like unix_dir, but by default it
15803         is set to "signal" so that a29khif can turn it off (since a29khif
15804         has raise() as part of machine-specific signal.s.)
15805
15806 Fri Jan 15 12:09:50 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
15807
15808         * libc/sys/config.h, libc/machine/ieeefp.h: add Z8000 support
15809         * libc/stdio/Makefile.in: pass CFLAGS so vfiprintf.c gets built
15810         correctly.
15811         * libc/stdio/fdopen.c, libc/stdio/fgets.c, libc/stdio/fscanf.c,
15812         libc/stdio/vfprintf: type lint.
15813         * libc/sys/z8ksim/crt0.c (start): Z8001/Z8002 independent
15814         initialzation code.
15815         * libc/sys/z8ksim/glue.c: Z8001/Z8002 clean system calls.
15816
15817 Tue Dec 29 10:15:33 1992  Ian Lance Taylor  (ian@cygnus.com)
15818
15819         * stub/mvme135/mvme135-asm.S: new file.
15820         stub/mvme135mvme135-stub.c: moved all assembler routines into
15821         mvme135-asm.S.
15822         stub/mvme135/Makefile.in: build mvme135-stub.o.
15823
15824 Mon Dec 28 12:40:43 1992  Ian Lance Taylor  (ian@cygnus.com)
15825
15826         * Makefile.in: don't pass down $(CPP); use $(CC) -E in
15827         sub-Makefiles instead, to try to avoid line length limitations.
15828
15829 Mon Dec 21 18:36:13 1992  Per Bothner  (bothner@rtl.cygnus.com)
15830
15831         * libc/include/unistd.h (read, write):  Use void* instead of
15832         char*.
15833
15834 Thu Dec 17 13:49:46 1992  Mark Eichin  (eichin@cygnus.com)
15835
15836         * stub/go32/resetpc: sample script to send a reset packet to the
15837         stub
15838
15839         * stub/go32/I386STUB.C: new file, gdb/i386stub.c modified for the
15840         DOS environment, which compiles with Turbo C.
15841
15842         * stub/go32/DSER32.LNK: new file, linker commands for serial
15843         remote stub.
15844
15845         * stub/go32/CONTROL.C: turn off debug_mode, add CYGNUS tag line to
15846         start up message to identify version; call set_debug_traps.
15847
15848         * stub/go32/DEBUG.C: turn off debug_mode (so stub doesn't need any
15849         keyboard interaction); call handle_exception() in go_til_stop,
15850         rather than return, so that the remote stub gets control.
15851
15852         * stub/go32/MAKEFILE: fixed to actually use DOS commands (del and
15853         rename, rather than mv), set flags that work with current Turbo C,
15854         including using the /3 flag; also, add commands to build dser32.
15855
15856         * stub/go32/DEBUG32.LNK, stub/go32/GO32.LNK: fix paths to match
15857         default Turbo C installation (\tc rather than \usr)
15858
15859         * stub/go32/MONO.C (printf): current Turbo C uses "..." instead of
15860         "&..."
15861
15862 Mon Dec 14 09:37:33 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
15863
15864         * libc/include/math.h: added _DOUBLE_IS_32BITS checks
15865
15866 Thu Nov 12 22:31:04 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
15867
15868         * libc/stdio/cvt.c (licvt): new function to convert ints when
15869         sizeof(int) != sizeof(long).
15870
15871         * libc/include/stdio.h: added prototype for iprintf.
15872         * libc/include/machine/limits.h machine/ieeefp.h: z8k stuff
15873
15874 Tue Nov 10 12:18:12 1992  Ian Lance Taylor  (ian@cygnus.com)
15875
15876         * libc/machine/m68k/setjmp.S: use __USER_LABEL_PREFIX__ and
15877         __REGISTER_PREFIX__.
15878
15879 Mon Nov  2 13:50:14 1992  Ian Lance Taylor  (ian@cygnus.com)
15880
15881         * libc/sys/m68kbare: moved into stub directory.
15882
15883 Mon Nov  2 13:40:42 1992  Ian Lance Taylor  (ian@cygnus.com)
15884
15885         * configure.in, Makefile.in: created new directory stub, to hold
15886         sample code for specific targets.
15887
15888 Wed Oct 28 02:19:55 1992  Mark Eichin  (eichin@cygnus.com)
15889
15890         * restored libc/sys/go32/sys/fcntl.h, to override incorrect values
15891         in the unified libc/include/sys/fcntl.h.
15892
15893 Wed Oct 21 13:55:58 1992  Doug Evans  (dje@rtl.cygnus.com)
15894
15895         * libc/stdlib/ecvtbuf.c: (print_f,_gcvt): printf("%f", 0.01)
15896         printed .01, not 0.01.
15897
15898 Mon Oct 19 11:05:55 1992  Ian Lance Taylor  (ian@cygnus.com)
15899
15900         * configure.in: compile with -m68000 for m68* targets.
15901
15902 Sun Oct 18 05:29:05 1992  Mark Eichin  (eichin@cygnus.com)
15903
15904         * libm/math/remainder.c (remainder): document the svr4 and sunos
15905         references used to construct the function.
15906
15907 Sat Oct 17 21:46:16 1992  Mark Eichin  (eichin@cygnus.com)
15908
15909         * libm/math/remainder.c (rint, remainder): fix old typos.
15910         * libm/math/Makefile.in: actually build remainder.c (functions
15911         rint and remainder, from SysVr4 Programmer's Guide floor(3m) man
15912         page.)
15913
15914 Thu Oct 15 07:48:05 1992  Ian Lance Taylor  (ian@cygnus.com)
15915
15916         * libc/string/bcopy.c: BSD version works on overlapping strings,
15917         so ours should too.
15918
15919         * libc/stdlib/system.c: always invoke /bin/sh, not getenv
15920         ("SHELL").
15921
15922 Wed Oct 14 11:07:11 1992  Ian Lance Taylor  (ian@cygnus.com)
15923
15924         * Makefile.in (docs): new target.
15925
15926 Wed Oct 14 07:44:25 1992  Ian Lance Taylor  (ian@cygnus.com)
15927
15928         * libc/include/sys/times.h: define clock_t as required by POSIX.
15929         libc/include/time.h: protect clock_t from multiple definitions.
15930
15931 Wed Oct  7 11:02:21 1992  Mark Eichin  (eichin at tweedledumber.cygnus.com)
15932
15933         * libm/math/sqrt.h (sqrt): actually, the final version of fp-bit
15934         does not need more than the original three iterations to get
15935         within 1 ulp. (Paranoia tests for rounding to better than that,
15936         but further iterations *don't* help, only more subtle changes
15937         can.)
15938
15939 Tue Oct  6 09:22:12 1992  Ian Lance Taylor  (ian@cygnus.com)
15940
15941         * libc/sys/vxworks68, libc/sys/vxworks960: removed, since they
15942         were doing nothing useful.
15943
15944 Tue Oct  6 08:48:13 1992  Ian Lance Taylor  (ian@cygnus.com)
15945
15946         * configure.in: define MALLOC_PROVIDED for vxworks targets;
15947         removed sys_dir settings of vxworks68 and vxworks960.
15948         host/any: don't pass -nostdinc to gcc, since newlib no longer
15949         provides all required header files.
15950
15951         * libc/stdlib/malloc.c: only compile this file if MALLOC_PROVIDED
15952         is not defined; this provides a hook for VxWorks.
15953
15954 Mon Oct  5 03:44:57 1992  Mark Eichin  (eichin at tweedledumber.cygnus.com)
15955
15956         * libc/stdio/setvbuf.c (setvbuf): while ANSI does say to malloc a
15957         buffer if buf is NULL, don't do it here -- it is already being
15958         done by makebuf elsewhere in stdio.
15959
15960 Fri Oct  2 13:12:07 1992  Ian Lance Taylor  (ian@cygnus.com)
15961
15962         * libc/sys/a29khif/Makefile.in: assemble Steve's list of stubs so
15963         that C programs can call functions without using initial
15964         underscores.
15965
15966 Thu Oct  1 09:37:47 1992  Ian Lance Taylor  (ian@cygnus.com)
15967
15968         * libc/stdlib/abort.c (abort): call exit, in case kill returns.
15969
15970 Wed Sep 30 08:22:18 1992  Ian Lance Taylor  (ian@cygnus.com)
15971
15972         * configure.in: set TARGET_CFLAGS for certain CPU types to
15973         -msoft-float.
15974
15975 Tue Sep 29 21:09:32 1992  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
15976
15977         * libc/sys/m68kbare/glue.c: use <_ansi.h> instead of <ansidecl.h>
15978
15979 Mon Sep 28 14:58:44 1992  Ian Lance Taylor  (ian@cygnus.com)
15980
15981         * configure.in: added sys_dir m68kbare for m68k*-unknown-aout and
15982         m68k*-unknown-coff.
15983
15984 Fri Sep 25 08:33:21 1992  Ian Lance Taylor  (ian@cygnus.com)
15985
15986         * libc/include/stdio.h: define __need___va_list before including
15987         <stdarg.h>, to avoid defining va_arg, et. al.
15988
15989 Tue Sep 22 13:47:00 1992  Ian Lance Taylor  (ian@cygnus.com)
15990
15991         * libc/sys/Makefile.in: handle the case of an empty $(sys_dir)
15992         (don't cd to the user's home directory).
15993
15994         * libc/Makefile.in: replaced all instances of $(MAKE) with make.
15995         In general this is the wrong thing to do, but I can't get around
15996         GNU make's insistence on passing command line arguments any other
15997         way.
15998
15999 Tue Sep 22 10:12:44 1992  Ian Lance Taylor  (ian@cygnus.com)
16000
16001         * configure.in: always configure the libc/sys directory, since it
16002         now provides a required documentation file.
16003
16004         * Makefile.in: replaced all instances of $(MAKE) with make.  In
16005         general this is the wrong thing to do, but I can't get around GNU
16006         make's insistence on passing command line arguments any other way.
16007
16008 Mon Sep 21 22:42:26 1992  Ian Lance Taylor  (ian@tweedledumbest.cygnus.com)
16009
16010         * libc/stdlib/ecvtbuf.c (_gcvt): string for 0 was not null
16011         terminated.
16012
16013         * libc/stdio/local.h: include <stdarg.h> to define va_list.
16014         libc/stdio/vsprintf.c: include <stdarg.h> rather than <varargs.h>.
16015
16016         * libc/include/float.h, libc/include/stdarg.h,
16017         libc/include/stddef.h, libc/include/varargs.h: removed; use gcc
16018         versions instead.
16019         libc/include/stdio.h: get size_t from <stddef.h>, and va_list from
16020         <stdarg.h>, not from <machine/types.h>.  Protect definition of
16021         NULL.
16022         libc/include/time.h: get size_t from stddef.h.  Protect definition
16023         of NULL.
16024         libc/include/machine/limits.h: override gcc <limits.h> by defining
16025         _LIMITS_H___.  Don't define CLK_TCK.  Copied in gcc <limits.h> to
16026         get correct INT_MIN and LONG_LONG values.
16027         libc/include/machine/types.h: don't define ptrdiff_t, wchar_t,
16028         size_t or va_list at all; they're now gotten from stddef.h
16029         instead.
16030         libc/include/machine/varargs.h: removed; use gcc version instead.
16031         libc/include/sys/types.h: explicitly include <machine/types.h>.
16032
16033         * libm/math/sqrt.h: using the fp-bit routines appears to require
16034         more iterations.
16035
16036         * Makefile.in, host/any: let system include files override machine
16037         include files.
16038
16039 Sat Sep 19 21:10:06 1992  Mark Eichin  (eichin at tweedledumber.cygnus.com)
16040
16041         * libc/include/machine/types.h: allow __*_TYPE__ from cpp to
16042         override _*_T_ definitions defaulted here.
16043
16044 Tue Sep 15 11:14:46 1992  Ian Lance Taylor  (ian@cygnus.com)
16045
16046         * Makefile.in (install): install the include files in
16047         $(tooldir)/include, not $(exec_prefix)/include.
16048
16049 Fri Sep 11 15:48:43 1992  Ian Lance Taylor  (ian@cygnus.com)
16050
16051         * Makefile.in (install): fixed typo, and changed install to not
16052         force rebuild of libc.a and libm.a.
16053
16054 Thu Sep 10 10:46:09 1992  Ian Lance Taylor  (ian@cygnus.com)
16055
16056         * libc/sys/a29khif/*: Changed all .include's to include
16057         sys/sysmac.h, not plain sysmac.h.  The header files live in sys so
16058         that they will be installed for the user.
16059
16060         * Makefile.in (all): create targ-include, a directory holding the
16061         machine and system specific header files during the build.
16062         (install): fixed installation of machine and system specific
16063         header files.
16064
16065         * Makefile.in: fixed comment.
16066         host/any: change .s.o rule to use $(AS) rather than $(CC), so that
16067         we can pass $(INCLUDES) to it.
16068
16069 Thu Sep 10 10:13:13 1992  Ian Lance Taylor  (ian@cygnus.com)
16070
16071         * libc/include/sys/param.h: new generic file, which may be
16072         overridden for specific systems.
16073
16074         * libc/include/sys/signal.h: define all ANSI signal names, and
16075         NSIG (which is not ANSI) for a29k.
16076
16077 Tue Sep  8 09:04:30 1992  Ian Lance Taylor  (ian@cygnus.com)
16078
16079         * Makefile.in: don't pass down arguments the lower level makes
16080         will not need.
16081         * libc/Makefile.in: recurse directly, rather than using subdir_do,
16082         in hopes of avoiding argument length limits.
16083         * libm/Makefile.in: recurse directly, rather using subdir_do, in
16084         hopes of avoiding argument length limits.
16085
16086 Tue Sep  8 08:27:22 1992  Ian Lance Taylor  (ian@cygnus.com)
16087
16088         * libc/include/sys/fcntl.h: include <sys/types.h> to ensure that
16089         mode_t is defined.
16090
16091 Mon Sep  7 14:02:07 1992  Ian Lance Taylor  (ian@cygnus.com)
16092
16093         * Fixed make info and make install-info for newlib, changing most
16094         Makefile.in and several *.tex files.  Moved doc directory from
16095         libc to top level.
16096
16097         * libc/time/mktime.c (_DAYS_IN_MONTH): actually, not const.
16098         Should be rewritten.
16099
16100         * libc/string/strings.tex: renamed node index to node index
16101         function, so that it does not conflict with the top level index
16102         node.
16103
16104         * libc/include/sys/config.h: define __IEEE_BIG_ENDIAN for h8300.
16105
16106 Fri Sep  4 02:34:06 1992  Ian Lance Taylor  (ian@cygnus.com)
16107
16108         * Overhauled general configuration for newlib.  Eliminated all
16109         target dependent Makefile fragments.  Create libraries in newlib
16110         rather than newlib/libc and newlib/libm.  Use CC, et. al., rather
16111         than CROSS_CC, et. al.  Broke make docs; will fix later.
16112
16113         * libc/time/localtime.c (_DAYS_IN_MONTH): actually, not const.
16114         Should be rewritten.
16115
16116 Tue Sep  1 15:21:14 1992  Ian Lance Taylor  (ian@cygnus.com)
16117
16118         * libc/configure.in: cleaned up somewhat; switch on ${target}
16119         rather than ${target_alias}.
16120         * libm/configure.in: cleaned up somewhat; switch on ${target}
16121         rather than ${target_alias}.
16122
16123         * libc/ctype/ctype_.c: marked _ctype_ array _CONST.
16124         * libc/include/ctype.h: marked _ctype_ as _CONST.
16125
16126         * libc/locale/locale.c (lconv, localeconv): marked static lconv as
16127         _CONST.
16128
16129         * libc/stdio/cvt.c, libc/stdio/findfp.c (__sfmoreglue),
16130         libc/stdio/vfscanf.c (__svfscanf): made static variables const.
16131         libc/stdio/gets.c (gets): removed non-ANSI warning message.
16132         libc/stdio/tmpnam.c (tmpnam): removed unneeded filename variable.
16133
16134         * libc/stdlib/mprec.h, libc/stdlib/mprec.c (pow5mult, tens,
16135         bigtens, tinytens): marked arrays _CONST.
16136         libc/stdlib/qsort.c (swap): if __GNUC__, use _builtin_alloca
16137         rather than a static variable.
16138
16139         * libc/time/asctime.c (asctime), libc/time/localtime.c
16140         (_DAYS_IN_MONTH), libc/time/mktime.c (_DAYS_IN_MONTH,
16141         _DAYS_BEFORE_MONTH), libc/time/strftime.c (dname_len, dname,
16142         mname_len, mname): Marked static arrays _CONST.
16143
16144         * libm/math/gamma.h: made local variables non-static.
16145
16146         * libm/math/acos.h, libm/math/bessel.c, libm/math/erf.c,
16147         libm/math/exp.c, libm/math/gamma.h: marked static arrays as
16148         _CONST.
16149
16150         * libm/math/constants.c: removed file, because the constants it
16151         defined were never referenced.
16152         libm/math/Makefile.in: removed references to constants.c.
16153         libm/math/mathimpl.h: removed declarations of constants.
16154
16155 Wed Aug 26 21:09:06 1992  Ian Lance Taylor  (ian@cygnus.com)
16156
16157         * libc/include/machine/varargs.h: only call __builtin_saveregs if
16158         it is sensibly defined in libgcc2.  Checks preprocessor defines,
16159         which is not a good solution.
16160
16161         * libm/sqrt.c: sqrt(Infinity) should not be a domain error.
16162
16163         * libm/frexp.c: handle denormalized numbers as arguments.
16164
16165         * libm/math/Makefile.in: added some dependencies for .c files
16166         which include local .h files.
16167
16168 Mon Aug 24 12:57:58 1992  Ian Lance Taylor  (ian@cygnus.com)
16169
16170         * libc/configure.in: set target_alias for OSE*.  Replace
16171         target_makefile_frag if it is blank.
16172
16173         * libc/Makefile.in: make sure everything is passed to subsidiary
16174         makes; create all directories when installing.
16175
16176         * libm/ieeefp/Makefile.in, libm/math/Makefile.in: use
16177         CROSS_ARUPDATE instead of AR.
16178
16179         * libm/configure.in: set target_alias for OSE*.  Replace
16180         target_makefile_frag if it is blank.
16181
16182         * libm/Makefile.in: make sure everything is passed to subsidiary
16183         makes; create all directories when installing.
16184
16185 Thu Aug 20 15:11:51 1992  Mark Eichin  (eichin@cygnus.com)
16186
16187         * add following change from libc copy.
16188
16189 Wed Aug 19 18:54:49 1992  Roland H. Pesch  (pesch@fowanton.cygnus.com)
16190
16191         * libc/libc.texinfo: make copyright disclaimers appear on back of
16192         title page; make format of same slightly less ugly; avoid using
16193         underbars in section headings (avoids nasty texinfo bug in table
16194         of contents).
16195
16196         * libc/ctype/tolower.c, libc/ctype/toupper.c: (doc changes in
16197           comments only) avoid using underbars in section headings
16198
16199         * libc/ieeefp/ieeefp.tex: include doc from fpsticky, infinity,
16200           isnan ieeefp/fpmask.c, ieeefp/fpround.c, ieeefp/fpsticky.c (doc
16201           changes in comments only): shorten headings ieeefp/infinity.c,
16202           ieeefp/isnan.c: (doc, comments only) more informative headings
16203
16204         * libc/math/bessel.c: (doc, comments only) shorten heading
16205
16206         * libc/stdlib/efgcvt.c, libc/stdlib/mbtowc.c, libc/stdlib/wctomb.c
16207         (doc, comments only) shorten headings
16208
16209         * libc/time/localtime.c (doc, comments only): shorten headings
16210
16211         * libm/ieeefp/ieeefp.tex: include doc from fpsticky, infinity,
16212           isnan
16213           libm/ieeefp/fpmask.c, libm/ieeefp/fpround.c,
16214           libm/ieeefp/fpsticky.c (doc changes in comments only): shorten
16215           headings
16216           libm/ieeefp/infinity.c, libm/ieeefp/isnan.c: (doc, comments
16217           only) more informative headings
16218         * libm/math/bessel.c: (doc, comments only) shorten heading
16219
16220 Wed Aug 19 07:06:37 1992  Mark Eichin  (eichin at tweedledumber.cygnus.com)
16221
16222         * .../Makefile.in: use CROSS_ARUPDATE consistently.
16223         * config/*.mt: define CROSS_AR as well as CROSS_ARUPDATE
16224         * config/*.mt: define CROSS_CPP based on CROSS_CC, not /lib/cpp.
16225         * .../Makefile.in: get rid of .c.o rule - if TOP is correctly
16226         defined, the one from the .mt file will be correct.
16227         * libc/include/machine, libc/include/sys: created, and populated
16228         with common files from machine/*/machine. ifdefs were used for
16229         most, typically by handling exceptions first and then filling in
16230         defaults. Files with D.J. Delorie copyright #included rather than
16231         copied. Most files in include/sys really were the same in the
16232         original.
16233         * libc/include/...: cleaned up use of _EXFUN.
16234         * libc/stdlib/mprec.c: mprec.h doesn't get installed, so include
16235         it with double quotes, not angles.
16236
16237 Mon Aug 10 11:43:20 1992  Ian Lance Taylor  (ian@dumbest.cygnus.com)
16238
16239         * libc/Makefile.in: always create installation directories.
16240
16241 Sun Aug  9 22:45:48 1992  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
16242
16243         * libc/configure.in: handle host properly (using canonical
16244         triples), better error message for the case of target not found
16245
16246 Thu May 28 01:56:37 1992  Michael Tiemann  (tiemann@rtl.cygnus.com)
16247
16248         * libc/Makefile.in (insincdir): Ensure this directory exists
16249         before attempting installation.
16250
16251 Fri May  1 18:16:42 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
16252
16253         * libc/stdlib/assert.c: now calls abort like it should
16254         * libc/sys/a29khif: many many patches for 29khif work
16255         * libc/machine/i386: gnulib2 expanded there.
16256
16257 Tue Apr 28 19:08:37 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
16258
16259         Added accurate fp conversion routines to stdlib, moved dcvt from
16260         stdio to stdlib and called it ecvtbuf:
16261         * libc/stdlib/mprec.c, mprec.h: new files for multiprec arithmetic
16262         * libc/stdlib/Makefile.in, efgcvt.c, strtod.c: modified to use new
16263         routines
16264         * libc/libc.texinfo: Modifed to include the copyright info from
16265         the mprec files
16266         * libc/stdlib/efgcvt.c: now xref to ecvtbuf in stdlib.
16267         * libc/test/ : many vector which tested for the implementation
16268         defined returns of strange conversion requests have been updated
16269         to relflect the new implementation
16270
16271 Mon Apr 27 13:41:33 1992  Roland H. Pesch  (pesch@fowanton.cygnus.com)
16272
16273         * libc/libc.texinfo: new chapter on variable arg lists
16274         (stdarg.h/varargs.h)
16275         * libc/libc.texinfo: new title
16276         * libc/time/gmtime.c, libc/time/localtime./c, libc/time/mktime.c:
16277         (doc only) shorter headings for better formatting.
16278
16279 Fri Apr 24 11:26:48 1992  Roland H. Pesch  (pesch@fowanton.cygnus.com)
16280
16281         * libc/libc.texinfo: three more info menu entries
16282         * libc/locale/locale.tex: new chapter
16283         * libc/locale/locale.c: new doc for setlocale, localeconv
16284         * libc/locale/Makefile.in: use new locale doc
16285         * libc/signal/signal.tex: new chapter
16286         * libc/signal/raise.c, libc/signal/signal.c: new doc
16287         * libc/signal/Makefile.in: use new doc
16288         * libc/time/time.tex: new chapter
16289         * libc/time/asctime.c libc/time/clock.c libc/time/ctime.c
16290         libc/time/difftime.c libc/time/gmtime.c libc/time/localtime.c
16291         libc/time/mktime.c libc/time/strftime.c libc/time/time.c: new doc
16292         * libc/time/Makefile.in: use new doc
16293
16294 Tue Apr 21 14:48:50 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
16295
16296         * libm/math/log1p.c: split to use the new function way of float
16297         function definition. math/log1p.h deleted
16298         * libm/math/scalb.c: obsolete and deleted
16299         * libm/math/scalbn.c: created from part log1p.c
16300         * libm/math/Makefile.in: know about log1p and scalbn
16301
16302 Tue Apr 21 12:32:21 1992  Roland H. Pesch  (pesch@fowanton.cygnus.com)
16303
16304         * libc/ctype/isupper.c: revise doc;
16305           libc/ctype/ctype.tex: use doc from isupper.c
16306
16307         * libc/string/bzero.c: new doc
16308
16309 Mon Apr 20 14:19:42 1992  Roland H. Pesch  (pesch@fowanton.cygnus.com)
16310
16311         * libc/stdlib/system.c, libc/stdlib/exit.c, libc/stdlib/abort.c:
16312         new doc
16313         * libc/stdlib/Makefile.in: extract new doc
16314         * libc/stdlib/stdlib.tex: use new doc
16315
16316         * libc/string/strerror.c: expanded doc.
16317
16318         * libc/stdio/Makefile.in: extract doc from more files
16319         * libc/stdio/fopen.c, libc/stdio/perror.c, libc/stdio/remove.c,
16320         libc/stdio/rename.c, libc/stdio/rewind.c, libc/stdio/setbuf.c,
16321         libc/stdio/setvbuf.c, libc/stdio/sprintf.c, libc/stdio/tmpfile.c,
16322         libc/stdio/tmpnam.c, libc/stdio/vfprintf.c, libc/stdio/vprintf.c,
16323         libc/stdio/vsprintf.c: new doc
16324         * libc/stdio/stdio.tex: use new doc
16325
16326 Mon Apr 20 09:38:17 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
16327
16328         * libc/config/ebmon29k: added CROSS_CPP rule and other fixes
16329         * libc/include/ieeefp.h: fixed ansi conflict with isnanf, isinff,
16330         finitef functions.
16331         * libc/sys/a29khif/sys/*.h: ansidecl.h was renamed to _ansi.h some
16332         time ago.
16333
16334         * libc/stdio/stdio.h: added P_tmpdir for /tmp (SVID thing)
16335         * libc/stdio/setbuf.c: added ansi style definition.
16336         * libc/stdio/setvbuf.c: added ansi definition, now mallocs own
16337         buffer if none provided.
16338         * libc/stdio/tmpfile.c: lint
16339         * libc/stdio/tmpnam.c (worker): created. (tmpnam): mallocs buffer
16340         rather than using static, also make sure file isn't already
16341         present.  Uses P_tmpdir. (tempnam): rewritten to use new
16342         subroutine, and uses P_tmpdir.
16343         * libc/stdio/siprintf.c: created
16344
16345 Mon Apr 13 09:12:58 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
16346
16347         Release 1.03 for NEC, major mods. Main differences from release
16348         1.02::
16349
16350         More tests in test/:
16351         * jn_vec.c, jnf_vec.c, yn_vec.c, ynf_vec.c, log2_vec.c,
16352         log2f_vec.c, atan2_vec.c, atan2f_vec.c: new test vectors.
16353         * test_ieee.c: tests for ieee flags & masks - get/set rounding,
16354         get/set mask, get/set sticky and get/set roundtoi.  Tests
16355         that setting the bits changes the way arithmetic is done.
16356         * string.c: added test to make sure memcmp does it with unsigned
16357         chars.
16358         * test.c: cleaned up and removed lint.
16359         * sprint_vec, sprint_ivec.c, convert.c, conv_vec.c, iconf_vec.c,
16360         dvec.c: tests for string to value conversions,  sprintf, scanf,
16361         atof, atoff, strtod, strtodf, atoi, atol, strtol, ecvtbuf, ecvt,
16362         ecvtf,  fcvtbuf, fcvt, fcvtf, gcvt, gcvtf.  Some attention paid to
16363         rounding in sprintf too.
16364         * test_is.c: tests for  isalnum, isalpha, isascii, iscntrl,
16365         isdigit, isgraph, islower, isprint, ispunct, isspace, isupper,
16366         isxdigit, toascii, tolower, toupper, _tolower, _toupper in macro
16367         and function form.
16368         * math2.c: test for frexp, frexpf, ldexp, ldexpf, modf modff, pow,
16369         powf
16370
16371         In the library:
16372         * libc/stdlib/div.c, libc/stdlib/ldiv.c, libc/stdlib/strtod.c,
16373         libc/stdlib/strtol.c, libc/stdlib/stroul.c, libc/stdlib/abs.c,
16374         libc/stdlib/bsearch.c, libc/stdlib/calloc.c, libc/stdlib/getenv.c,
16375         libc/stdlib/labs.c, libc/stdlib/malloc.c: new documentation
16376         * libc/stdlib/efgcvt.c: rewritten to use new _dcvt routines rather
16377         than sprintf.
16378         * libc/stdio/dcvt.c: rewritten to make more useful elsewhere. 
16379         * Method of producting float versions of double functions has
16380         changed, functions will be modified gradually. So far:
16381         libm/math/exp.c, libm/math/pow.c, libm/math/modf.c,
16382         libm/math/sincos.c, libm/math/fmod.c, libm/math/tan.c have been
16383         altered
16384         * libc/string/memcmp.c: now uses unsigned chars
16385         * libc/string/bcmp.c, libc/string/strcpy.c,
16386         libc/stsring/strxfrm.c: fixed doc
16387         * libc/sys/sysvnecv70.tex: fix example of sbrk code
16388 \f
16389 Local Variables:
16390 version-control: never
16391 End: