OSDN Git Service

2000-08-08 Jeff Johnston <jjohnstn@redhat.com>
[pf3gnuchains/pf3gnuchains3x.git] / newlib / ChangeLog
1 2000-08-08  Jeff Johnston <jjohnstn@redhat.com>
2
3         * libc/stdio/snprintf.c (snprintf, _snprintf_r): Fixed code
4         so size of 0 results in nothing being written to string.
5         Also fixed code so that when size is non-zero, there is only
6         a maximum of size - 1 characters written to the array and
7         a nul terminator is appended at the end.
8         * libc/stdio/vsnprintf.c (vsnprintf, _vsnprintf_r): Ditto.
9
10 2000-08-01  DJ Delorie  <dj@redhat.com>
11
12         * libc/include/sys/config.h: define __IMPORT appropriately
13         * libc/include/ctype.h (_ctype_): use __IMPORT
14         * libc/include/math.h (__infinity, signam, _LIB_VERSION): ditto
15         * libc/include/math.h (__mb_cur_max): ditto
16         * libc/include/time.h (_timezone, _daylight, _tzname): ditto
17         * libc/include/unctrl.h (__unctrl, __unctrllen): ditto
18         * libc/include/errno.h (_sys_errlist, _sys_nerr): ditto
19         * libc/include/unistd.h (environ): ditto
20
21 2000-07-28  Michael Meissner  <meissner@redhat.com>
22
23         * libc/include/math.h (__infinity): Declare as an array without
24         bounds to get around small data support.  Rewrite Cygwin support
25         to be more general.
26         * libm/math/s_infconst.c (__infinity): Ditto.
27         * libm/mathfp/s_infconst.c (__infinity): Ditto.
28
29 Thu Jul 27 10:46:01 2000  Christopher Faylor <cgf@cygnus.com>
30
31         * libc/include/math.h: Use appropriate dll import linkage for
32         __infinity under Cygwin.
33
34 2000-07-13  DJ Delorie  <dj@cygnus.com>
35
36         * libc/stdio/vfprintf.c: pad 0.0 correctly with %e
37
38 Wed Jun 28 14:08:00 2000  Keith Walker  <keith.walker@arm.com>
39
40         * libc/sys/arm/crt0.S (.LC30): Added missing length parameter
41         to argument list for AngelSWI_Reason_GetCmdLine.
42
43 Tue Jun 27 15:49:00 2000  Marek Michalkiewicz  <marekm@linux.org.pl>
44
45         * configure.host: Add support for AVR target.
46         * libc/include/machine/ieeefp.h: Likewise.
47         * libc/include/sys/config.h: Likewise.
48
49 Thu Jun 22 18:35:00 2000  Ranjith Kumaran  <ranjith@cygnus.com>
50
51         * README: Newlib 1.8.2 must be built in a separate directory
52         than the sources.
53
54 Tue Jun 20 14:30:00 2000  Jeff Johnston  <jjohnstn@cygnus.com>
55
56         * libc/include/sys/reent.h (_rand_next): Added __extension__
57         qualifier as long long type is not strict ANSI.
58         * libc/stdlib/rand.c (rand): Added __extension__ qualifier
59         to long long constant.
60
61 Fri Jun 16 23:02:00 2000  Corinna Vinschen <corinna@vinschen.de>
62
63         * libc/include/sys/unistd.h: Add prototypes for `seteuid' and
64         `setegid' provided by Cygwin.
65
66 Thu Jun 15  0:21:00 2000  Corinna Vinschen <corinna@vinschen.de>
67
68         * libc/stdio/fdopen.c: Take explicit given bin/textmode into
69         account for Cygwin.
70
71 Fri Jun  9 14:28:00 2000  Jeff Johnston  <jjohnstn@cygnus.com>
72
73         * libc/include/sys/reent.h (_rand_next): Changed to
74         unsigned long long and moved to end of _reent struct in _new union.
75         (_REENT_INIT): Changed to move _rand_next initialization.
76         * libc/stdlib/rand.c (rand): Changed to use unsigned long long
77         linear congruential algorithm that is used by DJGPP.
78
79 Thu Jun  8 21:18:00 2000  Ranjith Kumaran  <ranjith@cygnus.com>
80
81         * libc/include/stdlib.h: Set RAND_MAX to __RAND_MAX.
82         * libc/include/sys/config.h: Define __RAND_MAX.
83
84 Thu Jun  8 17:54:00 2000  Jeff Johnston  <jjohnstn@cygnus.com>
85
86         * libc/stdlib/rand_r.c: New algorithm that meets minimal
87         standard.
88
89 Fri Jun  2 23:02:11 2000  Christopher Faylor <cgf@cygnus.com>
90
91         * libc/include/string.h: Work around problem with strsignal and gdb.
92
93 Tue May 30 13:13:01 2000  Christopher Faylor <cgf@cygnus.com>
94
95         * libc/include/ctype.h: __CYGWIN32__ -> __CYGWIN__
96         * libc/include/malloc.h: Ditto.
97         * libc/include/process.h: Ditto.
98         * libc/include/stdio.h: Ditto.
99         * libc/include/stdlib.h: Ditto.
100         * libc/include/time.h: Ditto.
101         * libc/include/machine/setjmp.h: Ditto.
102         * libc/include/sys/errno.h: Ditto.
103         * libc/include/sys/signal.h: Ditto.
104         * libc/include/sys/stat.h: Ditto.
105         * libc/include/sys/time.h: Ditto.
106         * libc/include/sys/unistd.h: Ditto.
107         * libc/include/string.h: Ditto.  strsignal should return a const char *.
108
109 2000-05-26  Marek Michalkiewicz  <marekm@linux.org.pl>
110
111         * libm/common/s_expm1.c (expm1): Add curly braces, avoid warnings.
112         * libm/common/s_log1p.c (log1p): Likewise.
113         * libm/common/s_scalbn.c (scalbn): Likewise.
114         * libm/math/e_log.c: Likewise.
115         * libm/math/e_asin.c: Likewise.
116         * libm/math/ef_asin.c: Likewise.
117         * libm/math/e_j0.c (pzero, qzero): Remove redundant test.
118         * libm/math/e_j1.c (pone, qone): Likewise.
119         * libm/math/ef_j0.c (pzerof, qzerof): Likewise.
120         * libm/math/ef_j1.c (ponef, qonef): Likewise.
121         * libm/mathfp/e_j0.c (pzero, qzero): Likewise.
122         * libm/mathfp/e_j1.c (pone, qone): Likewise.
123         * libm/mathfp/ef_j0.c (pzerof, qzerof): Likewise.
124         * libm/mathfp/ef_j1.c (ponef, qonef): Likewise.
125
126 2000-05-19  DJ Delorie  <dj@cygnus.com>
127
128         * libc/stdio/stdio.c (__stextmode): new, see if file is text mode
129         (__sread): always read in binary mode
130         (__swrite): always write in binary mode
131         * libc/include/stdio.h: no getc/putc macros for cygwin; causes
132         compatibility issues with different dll versions
133         * libc/stdio/fopen.c: use __stextmode
134         * libc/stdio/fdopen.c: ditto
135         * libc/stdio/freopen.c: ditto
136         * libc/stdio/findfp.c: set up __SCLE for std{in,out,err}
137         * libc/stdio/local.h: declare __stextmode
138         
139 2000-05-18  DJ Delorie  <dj@cygnus.com>
140
141         * libc/stdio/fgets.c (fgets): perform CRLF conversions if __SCLE
142         
143 Mon May 15 18:54:00 2000  Jeff Johnston  <jjohnstn@cygnus.com>
144
145         * libc/include/ctype.h: Changed tolower and toupper macros
146         to use __extension__ to prevent pedantic warnings.
147
148 Mon May 15 14:26:00 2000  Joel Sherrill  <joel@oarcorp.com>
149
150         * libc/sys/rtems/sys/time.h: Add macros for manipulating timeval
151         structures.
152
153 Wed May 10 19:24:53 2000  Jim Wilson  <wilson@cygnus.com>
154
155         * libc/include/machine/ieeefp.h: Add ia64 support.
156         * configure.host: Likewise.
157
158 Wed May 10 13:52:24 2000  Egor Duda <deo@logos-m.ru>
159
160         * libc/time/asctime_r.c (asctime_r): Change output format. Day of
161         month is now padded with space, not zero.  This now conforms to
162         ANSI standard.
163
164 Wed May 03 17:57:00 2000  Corinna Vinschen <corinna@vinschen.de>
165
166         * libc/include/sys/errno.h: Add define for ENOSHARE ("No such
167         host or network path") used by cygwin. Add some comments.
168
169 Tue May 02 23:45:48 2000  DJ Delorie  <dj@cygnus.com>
170
171         * libc/include/stdio.h (FILE): define __SCLE for "convert line
172         endings" for Cygwin.
173         (__sgetc): convert line endings if needed
174         (__sputc): ditto
175         * libc/stdio/fdopen.c (_fdopen_r): Remember if we opened in text mode
176         * libc/stdio/fopen.c (_fopen_r): ditto
177         * libc/stdio/freopen.c (freopen): ditto
178         * libc/stdio/fread.c (fread): perform CRLF conversions if __SCLE
179         * libc/stdio/fvwrite.c (__sfvwrite): ditto
180
181 Thu Apr 27 07:45:48 2000  Alexandre Oliva  <aoliva@cygnus.com>
182
183         * libc/machine/mn10300/setjmp.S (setjmp, longjmp): Use
184         post-increment when it is worth it, spacewise.
185
186 Mon Apr 17 12:46:00 2000  Marek Michalkiewicz <marekm@linux.org.pl>
187
188         * libc/signal/signal.c (_signal_r) : Removed unused local variable temp.
189         * libc/stdio/findfp.c (std): Added declaration of flags and file.
190         * libc/stdio/mktemp.c (_gettemp, _mkstemp_r, mkstemp): Added int 
191         return type.
192         * libc/stdio/putchar.c (putchar): Added return statement.
193         * libc/stdio/refill.c (lflush): Added correct parentheses.
194         * libc/stdio/vfprintf.c (_VFPRINTF_R): Ditto.
195         * libc/stdio/vfscanf.c (__svfscanf): Changed sprintf call which 
196         prints long value to use l qualifier.
197         * libc/stdlib/dtoa.c (_dtoa_r): Added parentheses to remove warning
198         messages and initialized local values: ilim, ilim1, and spec_case.
199         * libc/stdlib/ecvtbuf.c (print_e): Removed unused variable dp.
200         * libc/stdlib/mbctype.h (_issjis1, _issjis2): Added parentheses.
201         * libc/stdlib/mprec.c: Ditto.
202         * libc/stdlib/setenv_r.c: Ditto.
203         * libc/stdlib/strtod.c: Ditto.
204         * libc/stdlib/strtol.c: Ditto.
205         * libc/stdlib/strtoul.c: Ditto.
206         * libm/common/sf_expm1.c: Added curly braces to if else clauses.
207         * libm/common/sf_log1p.c: Ditto.
208         * libm/common/sf_scalbn.c: Ditto.
209         * libm/math/ef_log.c: Ditto.
210
211 Sun Apr 16 12:45:00 2000  Corinna Vinschen <corinna@vinschen.de>
212
213         * libc/posix/execvp.c (execvp): Check path for
214         trailing slash.
215
216 Fri Mar 31 20:39:00 2000  Corinna Vinschen <corinna@vinschen.de>
217
218         * libc/include/sys/unistd.h: Add prototypes for
219         fchmod, fchown, lchown.
220
221 Fri Mar 24 15:34:00 2000  Jeff Johnston  <jjohnstn@cygnus.com>
222
223         * acinclude.m4: Changed release to 1.8.2.
224         * aclocal.m4 configure doc/aclocal.m4 doc/configure
225           libc/aclocal.m4 libc/configure libc/machine/aclocal.m4
226           libc/machine/configure libc/machine/a29k/aclocal.m4
227           libc/machine/a29k/configure libc/machine/arm/aclocal.m4
228           libc/machine/arm/configure libc/machine/d10v/aclocal.m4
229           libc/machine/d10v/configure libc/machine/d30v/aclocal.m4
230           libc/machine/d30v/configure libc/machine/fr30/aclocal.m4
231           libc/machine/fr30/configure libc/machine/h8300/aclocal.m4
232           libc/machine/h8300/configure libc/machine/h8500/aclocal.m4
233           libc/machine/h8500/configure libc/machine/hppa/aclocal.m4
234           libc/machine/hppa/configure libc/machine/i386/aclocal.m4
235           libc/machine/i386/configure libc/machine/i960/aclocal.m4
236           libc/machine/i960/configure libc/machine/m32r/aclocal.m4
237           libc/machine/m32r/configure libc/machine/m68k/aclocal.m4
238           libc/machine/m68k/configure libc/machine/m88k/aclocal.m4
239           libc/machine/m88k/configure libc/machine/mips/aclocal.m4
240           libc/machine/mips/configure libc/machine/mn10200/aclocal.m4
241           libc/machine/mn10200/configure libc/machine/mn10300/aclocal.m4
242           libc/machine/mn10300/configure libc/machine/necv70/aclocal.m4
243           libc/machine/necv70/configure libc/machine/powerpc/aclocal.m4
244           libc/machine/powerpc/configure libc/machine/sh/aclocal.m4
245           libc/machine/sh/configure libc/machine/sparc/aclocal.m4
246           libc/machine/sparc/configure libc/machine/tic80/aclocal.m4
247           libc/machine/tic80/configure libc/machine/v850/aclocal.m4
248           libc/machine/v850/configure libc/machine/w65/aclocal.m4
249           libc/machine/w65/configure libc/machine/z8k/aclocal.m4
250           libc/machine/z8k/configure libc/sys/aclocal.m4
251           libc/sys/aclocal.m4 libc/sys/configure
252           libc/sys/a29khif/aclocal.m4 libc/sys/a29khif/configure
253           libc/sys/arm/aclocal.m4 libc/sys/arm/configure
254           libc/sys/cygwin/aclocal.m4 libc/sys/cygwin/configure
255           libc/sys/d10v/aclocal.m4 libc/sys/d10v/configure
256           libc/sys/decstation/aclocal.m4 libc/sys/decstation/configure
257           libc/sys/go32/aclocal.m4 libc/sys/go32/configure
258           libc/sys/h8300hms/aclocal.m4 libc/sys/h8300hms/configure
259           libc/sys/h8500hms/aclocal.m4 libc/sys/h8500hms/configure
260           libc/sys/m88kbug/aclocal.m4 libc/sys/m88kbug/configure
261           libc/sys/netware/aclocal.m4 libc/sys/netware/configure
262           libc/sys/rtems/aclocal.m4 libc/sys/rtems/configure
263           libc/sys/sh/aclocal.m4 libc/sys/sh/configure
264           libc/sys/sparc64/aclocal.m4 libc/sys/sparc64/configure
265           libc/sys/sun4/aclocal.m4 libc/sys/sun4/configure
266           libc/sys/sysmec/aclocal.m4 libc/sys/sysmec/configure
267           libc/sys/sysnec810/aclocal.m4 libc/sys/sysnec810/configure
268           libc/sys/sysnecv850/aclocal.m4 libc/sys/sysnecv850/configure
269           libc/sys/sysvi386/aclocal.m4 libc/sys/sysvi386/configure
270           libc/sys/sysvnecv70/aclocal.m4 libc/sys/sysvnecv70/configure
271           libc/sys/tic80/aclocal.m4 libc/sys/tic80/configure
272           libc/sys/w65/aclocal.m4 libc/sys/w65/configure
273           libc/sys/z8ksim/aclocal.m4 libc/sys/z8ksim/configure
274           libm/aclocal.m4 libm/configure: Regenerated.
275
276 2000-03-24  Nick Clifton  <nickc@cygnus.com>
277
278         * libc/sys/arm/syscalls.c: Fix compile time warnings.
279         (do_AngelSWI): Add "cc" to list o registers clobbered.
280
281 Thu Mar 22 14:57:00 2000  Fernando Nasser <fnasser@redhat.com>
282
283         * libc/sys/arm/syscalls.c (do_AngelSWI): Prevent registers with valid
284         information to be clobbered by an Angel C library support syscall. 
285
286 Tue Mar 21 19:08:00 2000  Jeff Johnston <jjohnstn@cygnus.com>
287
288         * libc/stdlib/envlock.c: Fixed comment typo.
289
290 Fri Mar 17 15:37:00 2000  Jeff Johnston <jjohnstn@cygnus.com>
291
292         * libc/stdio/vfscanf.c (__svfscanf): Fixed floating point
293         code to update nread as each character is processed instead
294         of using buffer contents which throw away leading zeroes.
295
296 Mon Mar 13 15:22:00 2000  Sergei Organov <osv@javad.ru>
297
298         * libm/mathfp/sf_sqrt.c: Change _DOUBLE_IS_32BITS sqrt call to sqrtf.
299
300 Fri Mar 10 16:09:20 2000  Jeff Johnston <jjohnstn@cygnus.com>
301
302         * libc/include/string.h: Include <sys/types.h>.
303
304 Fri Mar 10 14:53:50 2000  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
305
306         * libc/stdio/putw.c (putw): Return 0 on success, to be compliant
307         with XSH5, not SVID.
308
309 Thu Mar  9 17:20:41 2000  Jeff Johnston <jjohnstn@cygnus.com>
310
311         * libc/include/string.h: Changed last argument back to ssize_t
312         to make it compatible with XPG4 definition which is 
313         defined in <unistd.h>.  There is a conflict in the SVID 3
314         and XPG4 definitions and newlib will settle with XPG4.
315         * libc/string/swab.c: Ditto.
316
317 Wed Mar  8 17:11:41 2000  Jeff Johnston <jjohnstn@cygnus.com>
318
319         * libc/include/string.h: Changed last argument to size_t.
320         * libc/string/swab.c: Changed last argument to size_t.
321
322 Wed Mar  8 00:46:41 2000  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
323
324         * libc/reent/Makefile.am (lib_a_SOURCES): Added unlinkr.c.
325         (CHEWOUT_FILES): Added unlinkr.def.
326         * libc/reent/Makefile.in: Rebuilt.
327         * libc/sys.tex: Include unlinkr.def.
328         * libc/reent/linkr.c (_unlink_r): Moved to...
329         * libc/reent/unlinkr.c: ... new file.
330
331 Wed Mar  8 00:43:07 2000  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
332
333         * libc/string/Makefile.am (lib_a_SOURCES): Added swab.c.
334         (CHEWOUT_FILES): Added swab.def.
335         * libc/string/Makefile.in: Rebuilt.
336         * libc/string/string.tex: Include swab.def.
337         * libc/include/string.h (swab): Declare.
338         * libc/string/swab.c: New file.
339
340 Wed Mar  8 00:38:35 2000  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
341
342         * libc/stdio/Makefile.am (lib_a_SOURCES): Added getw.c and putw.c.
343         (CHEWOUT_FILES): Added getw.def and putw.def.
344         * libc/stdio/Makefile.in: Rebuilt.
345         * libc/stdio/stdio.tex: Include getw.def and putw.def.
346         * libc/stdio/getw.c: New file.
347         * libc/stdio/putw.c: New file.
348
349 Fri Feb 25 14:50:50 2000  Jeff Johnston <jjohnstn@cygnus.com>
350
351         * libc/stdio/flags.c (__sflags): Added check that mode[1]
352         is non-null before looking at mode[2].
353
354 Thu Feb 24 11:43:00 2000  Ran Cabell <rcabell@norfolk.infi.net>
355
356         * libm/mathfp/sf_atan2.c: Fix atan2 typo for _DOUBLE_IS_32_BITS.
357         * libm/mathfp/sf_atan.c: Ditto.
358
359 Thu Feb 24 11:39:00 2000  Joel Sherrill <joel@OARcorp.com>
360
361         * libc/include/sys/stat.h: Add RTEMS prototype for lstat.
362
363 Tue Feb 22 14:37:00 2000  Ran Cabell <rcabell@norfolk.infi.net>
364
365         * libm/mathfp/sf_exp.c: Corrected _DOUBLE_IS_32_BITS to be
366         _DOUBLE_IS_32BITS.
367
368 Mon Feb 21 11:43:50 2000  Jeff Johnston <jjohnstn@cygnus.com>
369
370         * libc/stdio/vfprintf.c (VFPRINTF): Added CHECK_INIT
371         call prior to calling _VFPRINTF_R so reentrant data area is set.
372         (_VFPRINTF_R): Removed now extraneous CHECK_INIT call.
373
374 Thu Feb 17 01:42:50 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
375
376         * libc/stdio/vfscanf.c (limits.h): #include.
377         (MAX_LONG_LEN): #define.
378         (__svfscanf): Handle floating point numbers with arbitrary amounts
379         of leading zeroes.
380
381 2000-02-15  Nick Clifton  <nickc@cygnus.com>
382
383         * libc/sys/arm/syscalls.c (_fstat): Initialise all fields to
384         zero.  Set the blocksize to 1024/
385
386 Thu Jan 20 18:57:00 2000  Fernando Nasser <fnasser@redhat.com>
387
388         * setvbuf.c (setvbuf):  Set size to BUFSIZ when passed a zero size
389         with line buffering.
390
391 Mon Jan 10 18:43:00 2000  Jeff Johnston <jjohnstn@cygnus.com>
392
393         * acinclude.m4: Changed include directory for winsup headers. 
394         * aclocal.m4 configure libc/aclocal.m4
395           libc/configure libc/ctype/Makefile.in libc/errno/Makefile.in
396           libc/locale/Makefile.in libc/machine/aclocal.m4
397           libc/machine/configure libc/machine/a29k/aclocal.m4
398           libc/machine/a29k/configure libc/machine/arm/aclocal.m4
399           libc/machine/arm/configure libc/machine/d10v/aclocal.m4
400           libc/machine/d10v/configure libc/machine/d30v/aclocal.m4
401           libc/machine/d30v/configure libc/machine/fr30/aclocal.m4
402           libc/machine/fr30/configure
403           libc/machine/h8300/aclocal.m4
404           libc/machine/h8300/configure libc/machine/h8500/aclocal.m4
405           libc/machine/h8500/configure libc/machine/hppa/aclocal.m4
406           libc/machine/hppa/configure libc/machine/i386/aclocal.m4
407           libc/machine/i386/configure libc/machine/i960/aclocal.m4
408           libc/machine/i960/configure libc/machine/m32r/aclocal.m4
409           libc/machine/m32r/configure libc/machine/m68k/aclocal.m4
410           libc/machine/m68k/configure libc/machine/m88k/aclocal.m4
411           libc/machine/m88k/configure libc/machine/mips/aclocal.m4
412           libc/machine/mips/configure libc/machine/mn10200/aclocal.m4
413           libc/machine/mn10200/configure libc/machine/mn10300/aclocal.m4
414           libc/machine/mn10300/configure libc/machine/necv70/aclocal.m4
415           libc/machine/necv70/configure libc/machine/powerpc/aclocal.m4
416           libc/machine/powerpc/configure 
417           libc/machine/sh/aclocal.m4
418           libc/machine/sh/configure libc/machine/sparc/aclocal.m4
419           libc/machine/sparc/configure
420           libc/machine/tic80/aclocal.m4 libc/machine/tic80/configure
421           libc/machine/v850/aclocal.m4 libc/machine/v850/configure
422           libc/machine/w65/aclocal.m4 libc/machine/w65/configure
423           libc/machine/z8k/aclocal.m4 libc/machine/z8k/configure
424           libc/misc/Makefile.in libc/posix/Makefile.in
425           libc/reent/Makefile.in 
426           libc/signal/Makefile.in
427           libc/string/Makefile.in libc/sys/aclocal.m4 libc/sys/configure
428           libc/sys/a29khif/aclocal.m4 libc/sys/a29khif/configure
429           libc/sys/arm/Makefile.in libc/sys/arm/aclocal.m4
430           libc/sys/arm/configure libc/sys/cygwin/aclocal.m4
431           libc/sys/cygwin/configure libc/sys/d10v/Makefile.in
432           libc/sys/d10v/aclocal.m4 libc/sys/d10v/configure
433           libc/sys/decstation/aclocal.m4 libc/sys/decstation/configure
434           libc/sys/go32/aclocal.m4 libc/sys/go32/configure
435           libc/sys/h8300hms/aclocal.m4 libc/sys/h8300hms/configure
436           libc/sys/h8500hms/aclocal.m4 libc/sys/h8500hms/configure
437           libc/sys/m88kbug/aclocal.m4 libc/sys/m88kbug/configure
438           libc/sys/netware/aclocal.m4 libc/sys/netware/configure
439           libc/sys/rtems/aclocal.m4 libc/sys/rtems/configure
440           libc/sys/sh/Makefile.in libc/sys/sh/aclocal.m4
441           libc/sys/sh/configure libc/sys/sparc64/aclocal.m4
442           libc/sys/sparc64/configure libc/sys/sun4/aclocal.m4
443           libc/sys/sun4/configure libc/sys/sysmec/aclocal.m4
444           libc/sys/sysmec/configure libc/sys/sysnec810/aclocal.m4
445           libc/sys/sysnec810/configure libc/sys/sysnecv850/aclocal.m4
446           libc/sys/sysnecv850/configure libc/sys/sysvi386/aclocal.m4
447           libc/sys/sysvi386/configure libc/sys/sysvnecv70/aclocal.m4
448           libc/sys/sysvnecv70/configure libc/sys/tic80/aclocal.m4
449           libc/sys/tic80/configure libc/sys/w65/aclocal.m4
450           libc/sys/w65/configure libc/sys/z8ksim/aclocal.m4
451           libc/sys/z8ksim/configure libc/syscalls/Makefile.in
452           libc/time/Makefile.in libc/unix/Makefile.in libm/aclocal.m4
453           libm/configure: Regenerated.
454
455 Mon Jan 10 18:43:46 2000  Jeff Johnston <jjohnstn@cygnus.com>
456
457         * libc/stdlib/putenv_r.c (_putenv_r): New file.
458         * libc/stdlib/strdup_r.c (_strdup_r): New file.
459         * libc/include/string.h: Added _strdup_r.
460         * libc/stdlib/putenv.c: Added call to reentrant version. 
461         * libc/stdlib/strdup.c: Ditto.
462         * libc/stdlib/Makefile.am: Added _putenv_r and _unsetenv_r.
463         * libc/include/stdlib.h: Ditto.
464         * libc/stdlib/Makefile.in: Regenerated. 
465         * libc/string/Makefile.in: Regenerated.
466         * libc/stdlib/setenv.c: Added reentrant version of unsetenv.
467         * libc/stdlib/setenv_r.c: Added unsetenv_r and changed memory
468         management calls to reentrant versions.
469         * libc/stdlib/wcstombs.c: Added #ifndef _REENT_ONLY wrapper.
470         * libc/stdlib/wctomb.c: Ditto.
471         * libc/stdlib/mblen.c: Ditto.
472         * libc/stdlib/mbstowcs.c: Ditto.
473         * libc/stdlib/mbtowc.c: Ditto. 
474         * libc/stdlib/getenv.c: Ditto.
475         * libc/reent/reent.tex: Added references to _putenv_r, _setenv_r,
476         and _strdup_r.
477
478 Thu Jan  6 15:33:46 2000  Christopher Faylor <cgf@cygnus.com>
479
480         patch from Corinna Vinschen <corinna@vinschen.de>
481         * libc/sys/cygwin/sys/param.h: Define NGROUP_MAX as 16.
482
483 Mon Jan 03 14:36:00 2000  Sergei Organov <osv@javad.ru>
484
485         * libm/mathfp/s_atangent.c: Fix exponent calculation.
486         * libm/mathfp/s_ldexp.c: Ditto.
487         * libm/mathfp/sf_atangent.c: Ditto.
488         * libm/mathfp/sf_ldexp.c: Ditto.
489
490 Tue Dec 14 5:42:00 1999  Ranjith Kumaran <ranjith@cygnus.com>
491
492         * libc/machine/i960/setjmp.S: fix typo leaving .link_pix uncommented
493         * libc/include/locale.h: define NULL to be 0.
494
495 Tue Dec  7 15:41:45 1999  Jim Wilson  <wilson@cygnus.com>
496
497         * libc/sys/sh/syscalls.c (stack_ptr): Move definition before first
498         function.
499
500 Wed Dec  1 17:39:29 1999  Jeffrey A Law  (law@cygnus.com)
501
502         * libc/machine/mn10300/setjmp.S: Handle am33.
503
504 1999-11-26  Nick Clifton  <nickc@cygnus.com>
505
506         * libc/sys/arm/syscalls.c: Add function prototypes.
507         (stack_ptr): Move declaration before function definitions.
508
509 Sat Nov 20 17:13:00 1999  Ranjith Kumaran <ranjith@cygnus.com>
510
511         * NEWS: Updated version information.
512         * README: Ditto.
513
514 Tue Nov 09 12:19:21 1999  Jeff Johnston <jjohnstn@cygnus.com>
515
516         * libc/machine/i386/strchr.S: Fixed alignment test.
517
518 Thu Oct 28 05:30:46 1999  Andrew Cagney  <cagney@makita.cygnus.com>
519
520         * libc/sys/d10v/crt0.S (_start): Construct a real stack frame.
521
522 Thu Oct 28 15:29:11 1999  Andrew Cagney  <cagney@b1.cygnus.com>
523
524         * libc/sys/d10v/crt0.S (_start): Initialize both SPI and SPU
525         ensuring that there is space between the two.
526
527 Thu Oct 14 13:39:21 1999  Christopher Faylor <cgf@cygnus.com>
528
529         * libc/stdio/flags.c: Conditionalize check for 't' for cygwin case
530         only.
531
532 1999-10-08  Vadim Egorov  <egorovv@1c.ru>
533
534         * libc/include/stdlib.h: add ptsname, grantpt, unlockpt to cygwin
535         section
536
537 Sat Oct  2 02:02:00 MEST 1999  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
538
539         * libc/machine/sh/asm.h: Added __SH4_SINGLE__ to DELAYED_BRANCHES
540         * libc/machine/sh/memcpy.S: Fix line wrapping in SL macro
541
542 Fri Oct  1 13:17:59 CDT 1999  <joel@OARcorp.com>
543         * libc/include/grp.h: Added getgrnam_r and getgrgid_r prototypes
544           per POSIX 1003.1b.
545         * libc/include/pwd.h: Added getpwnam_r and getpwuid_r prototypes
546           per POSIX 1003.1b.
547
548 1999-09-13  DJ Delorie  <dj@cygnus.com>
549
550         * libc/stdio/mktemp.c (_gettemp): on cygwin, check for EACCESS
551         also.
552
553 Thu Sep  9 15:31:00 1999  Jeff Johnston <jjohnstn@cygnus.com>
554
555         * setvbuf.c (setvbuf):  When mallocing a buffer of size BUFSIZ,
556         also note BUFSIZ as its size.
557
558 Tue Sep  7 17:15:00 1999  Joel Sherrill <joel@OARcorp.com>
559
560         * configure.host: Corrected feature defines for RTEMS.
561         * libc/include/sys/stat.h: Added protototype for RTEMS mknod.
562         * libc/include/sys/stat.h: mkfifo() should take const path arg.
563         * libc/include/sys/unistd.h: pathconf() should take const path arg.
564           Enabled usleep(), ftruncate(), and truncate() prototypes for RTEMS.
565           Added defines for _POSIX_JOB_CONTROL, _POSIX_SAVED_IDS, and
566           _POSIX_VERSION for RTEMS.  Added defines for _PC_ASYNC_IO,
567           _PC_PRIO_IO, and _PC_SYNC_IO.
568         * libc/machine/m68k/Makefile.am: Added strcpy.c and strlen.c.
569         * libc/machine/m68k/Makefile.in: Regenerated.
570         * libc/machine/m68k/strcpy.c: New file.
571         * libc/machine/m68k/strlen.c: New file.
572         * libc/stdio/tmpnam.c: Always make the returned name usable.
573         * libc/sys/rtems/crt0.c: New version that passes all autoconf tests.
574         * libc/sys/rtems/sys/dirent.h: New file.
575         * libc/sys/rtems/sys/types.h: Added dev_t.
576
577 Tue Sep  7 17:15:00 1999   Jay Kulpinski <jskulpin@eng01.gdds.com>
578
579         * libc/stdlib/mprec.c: Fixed unitialized variable problem.
580
581 Fri Sep  3 12:35:20 1999  Jeff Johnston <jjohnstn@cygnus.com>
582
583         * libc/stdio/ftell.c (ftell): Backing off Joern's fix and
584         my patch.
585
586 Thu Sep  2 22:05:20 1999  Christopher Faylor <cgf@cygnus.com>
587
588         patch from Jeff Johnston <jjohnstn@cygnus.com>
589         * libc/stdio/ftell.c (ftell): Avoid using buffer position when the
590         buffer is not in a useful state.
591
592 1999-09-01  Nick Clifton  <nickc@cygnus.com>
593
594         * libc/sys/arm/syscalls.c (_link): Add stub.
595
596 Fri Aug 27 23:09:09 1999  J"orn Rennecke <amylaar@cygnus.co.uk>
597
598         * ftell.c (ftell): Use actual position within buffer for text mode.
599         * findfp.c (std): Initialize ptr->_bf._size.
600
601 Wed Aug 18 18:48:02 1999  Christopher Faylor <cgf@cygnus.com>
602
603         * libc/include/sys/unistd.h: Add nice() declaration.
604
605 1999-08-09  Nick Clifton  <nickc@cygnus.com>
606
607         * libc/sys/arm/crt0.S (change_mode): Rename to __change_mode and
608         declare as a thumb function so that the disassembler will see the
609         mode change.
610
611 Thu Aug  5 17:37:00 1999  Ranjith Kumaran <ranjith@cygnus.com>
612
613         * libc/reent/reent.tex: Updated list of reentrant functions.
614
615 1999-07-09  Michael Meissner  <meissner@cygnus.com>
616
617         * libc/include/stdlib.h (_findenv{,_r}): Add prototypes.
618         
619 Tue Jul  6 10:46:24 1999  Jeff Johnston <jjohnstn@cygnus.com>
620
621         * libc/stdio/sprintf.c: Moved snprintf and _snprintf_r to
622         separate file.
623         * libc/stdio/snprintf.c: New file.
624         * libc/stdio/vsprintf.c: Moved vsnprintf and _vsnprintf_r to
625         separate file.
626         * libc/stdio/vsnprintf.c: New file.
627         * libc/stdio/Makefile.am: Added snprintf.c and vsnprintf.c.
628         * libc/stdio/Makefile.in: Regenerated.
629
630 Mon Jul  5 14:43:24 1999  Christopher Faylor <cgf@cygnus.com>
631
632         Patch submitted by Egor Duda <deo@logos-m.ru>:
633         * libc/include/stdio.h: Add declarations for *nprintf.
634         * libc/stdio/sprintf.c (snprintf): New function.
635         (_snprintf_r): New function.
636         * libc/stdio/vsprintf.c (vsnprintf): New function.
637         (_vnsprintf_r): New function.
638
639 Wed Jun 30 16:36:27 1999  Jeff Johnston  <jjohnstn@cygnus.com>
640
641         * libc/Makefile.am (stmp-targetdep): Remove extraneous blank.
642         * libm/Makefile.am (stmp-targetdep): Ditto.
643         * libc/Makefile.in: Regenerated.
644         * libm/Makefile.in: Ditto.
645
646 Fri Jun 25 10:49:27 1999  Jeff Johnston  <jjohnstn@cygnus.com>
647
648         * libc/Makefile.am (stmp-targetdep): Ignore "." in SUBDIRS.
649         * libm/Makefile.am (stmp-targetdep): Ditto.
650         * libc/Makefile.in: Regenerated.
651         * libm/Makefile.in: Ditto.
652
653 Thu June 03 16:25:00 1999  Jeff Johnston <jjohnstn@cygnus.com>
654
655         * Makefile.am: Removed dependencies on all-recursive and added "."
656         to the SUBDIRS list to prevent infinite recursion from occurring.
657         Also removed any references to EXTRA_DATA.
658         * libc/Makefile.am: Ditto.
659         * libc/machine/Makefile.am: Ditto.
660         * libc/machine/i386/Makefile.am: Ditto.
661         * libm/Makefile.am: Ditto.
662         * libc/sys/Makefile.am: Ditto.
663         * Makefile.in: Regenerated.
664         * aclocal.m4: Ditto.
665         * configure: Ditto.
666         * doc/Makefile.in: Ditto.
667         * doc/aclocal.m4: Ditto.
668         * doc/configure: Ditto.
669         * libc/Makefile.in: Ditto.
670         * libc/aclocal.m4: Ditto.
671         * libc/configure: Ditto.
672         * libc/machine/Makefile.in: Ditto.
673         * libc/machine/aclocal.m4: Ditto.
674         * libc/machine/configure: Ditto.
675         * libc/machine/mn10300/Makefile.in: Ditto.
676         * libc/machine/mn10300/aclocal.m4: Ditto.
677         * libc/machine/mn10300/configure: Ditto.
678         * libc/sys/Makefile.in: Ditto.
679         * libc/sys/aclocal.m4: Ditto.
680         * libc/sys/configure: Ditto.
681         * libm/Makefile.in: Ditto.
682         * libm/aclocal.m4: Ditto.
683         * libm/configure: Ditto.
684
685 Thu June 03 16:20:00 1999  Ranjith Kumaran <ranjith@cygnus.com>
686
687         * libc/include/stdlib/stdlib.tex: Add link to env_lock.
688
689 Fri May 28 17:09:00 1999  Ranjith Kumaran <ranjith@cygnus.com>
690
691         * libc/include/stdlib.h: Add reentrant routines.
692         * libc/stdlib/Makefile.am: Add reentrant routines.
693         * libc/stdlib/Makefile.in: Ditto.
694         * libc/stdlib/envlock.c: New file.
695         * libc/stdlib/envlock.h: New file.
696         * libc/stdlib/getenv.c: Modify to call reentrant routine.
697         * libc/stdlib/getenv_r.c: New file.
698         * libc/stdlib/mblen.c: Modify to call reentrant routine.
699         * libc/stdlib/mblen_r.c: New file.
700         * libc/stdlib/setenv.c: Modify to call reentrant routine.
701         * libc/stdlib/setenv_r.c: New file.
702         * libc/stdlib/stdlib.tex: Add reentrant routines.
703
704 Mon May 17 22:01:38 1999  Christopher Faylor <cgf@cygnus.com>
705
706         * libc/include/sys/types.h: Define __MS_types__ whenever
707         cygwin or win32.
708
709 Sun May 16 16:02:41 1999  Christopher Faylor <cgf@cygnus.com>
710
711         * libc/include/machine/ieeefp.h: Always default to little
712         endian if Windows, regardless of architecture.
713         * libc/include/machine/sethmp.h: Define JBLEN if CYGWIN
714         regardless of architecture.
715
716 Mon May  3 11:49:18 1999  Geoffrey Noer  <noer@cygnus.com>
717
718         * libc/include/machine/setjmp.h: Accept CYGWIN define, even if
719         _WIN32 isn't defined.
720
721 Mon May  3 11:41:51 1999  Jeff Johnston  <jjohnstn@cygnus.com>
722
723         * libm/common/s_rint.c (rint): Add volatile qualifier for
724         intermediate value w.
725         * libm/common/sf_rint.c (rintf): Ditto.
726
727 Thu Apr 29 20:34:27 1999  Jeff Johnston  <jjohnstn@cygnus.com>
728
729         * libc/sys/arm/syscalls.c (remap_handle): Added check to
730         ensure that std streams are initialized before being referenced.
731
732 1999-04-27  Jason Molenda  (jsm@bugshack.cygnus.com)
733
734         * README: Update reference to newlib@cygnus.com new
735         newlib@sourceware.cygnus.com address.
736
737 Mon Apr 26 18:17:33 1999  Geoffrey Noer  <noer@cygnus.com>
738
739         * libc/include/sys/types.h: Define MS_types if CYGWIN is defined.
740         * libc/include/sys/fcntl.h: Define _O_BINARY et al if CYGWIN is
741         defined, even if _WIN32 isn't defined.
742
743 Sat Apr 24 19:59:55 1999  Christopher Faylor <cgf@cygnus.com>
744
745         * libc/include/sys/fcntl.h: Correct _O_CREATE to _O_CREAT.
746
747 Wed Apr 21 18:01:00 1999  Ranjith Kumaran  <ranjith@cygnus.com>
748
749         * libc/include/sys/reent.h: Change Long and ULong to __Long and
750         __ULong.
751         * libc/stdlib/dtoa.c: Ditto.
752         * libc/stdlib/mprec.c: Ditto.
753         * libc/stdlib/mprec.h: Ditto.
754         * libc/stdlib/strtod.c: Ditto.
755
756 1999-04-21  Nick Clifton  <nickc@cygnus.com>
757
758         * configure.host (mcore): Remove mcore machine directory.
759
760 1999-04-18  Nick Clifton  <nickc@cygnus.com>
761
762         * libc/include/machine/ieeefp.h: Add support for mcore target.
763         * libc/include/machine/setjmp.h: Add support for mcore target.
764         * configure.host: Add support for mcore target.
765
766 1999-04-13  Mark Salter  <msalter@cygnus.com>
767
768         * libc/sys/arm/libcfunc.c: Moved isatty to syscall.c
769         * libc/sys/arm/syscalls.c: Added isatty.
770
771 Wed Apr 07 16:06:04 1999  Jeff Johnston  <jjohnstn@cygnus.com>
772
773         * libc/stdlib/ecvtbuf.c (fcvtbuf): Fixed code to properly
774         insert zeroes after significant digits.
775
776 Wed Mar 17 22:06:04 1999  Jeff Johnston  <jjohnstn@cygnus.com>
777         
778         * libc/stdio/vfprintf.c (cvt): Changed floating point
779         cvt routine to use union used by dtoa to properly determine
780         if the sign bit is on or not.
781         * libc/stdio/vfieeefp.h: New file
782         
783 Wed Mar 17 17:35:04 1999  Jeff Johnston  <jjohnstn@cygnus.com>
784
785         * aclocal.m4: Regenerated.
786         * configure: Regenerated.
787
788 Wed Mar 17 16:35:04 1999  Jeff Johnston  <jjohnstn@cygnus.com>
789
790         * libc/machine/i386/Makefile.am (lib_a_SOURCES): Added missing
791         f_tanf reference.
792         * libc/machine/i386/Makefile.in: Regenerated.
793
794 Tue Mar 16 14:56:36 1999  Jeff Johnston  <jjohnstn@cygnus.com>
795
796         * acinclude.m4: Changed to work with new automake.
797         * configure: Regenerated.
798         * libc/machine/i386/aclocal.m4: Regenerated.
799         * libc/machine/i386/configure: Regenerated.
800
801 Tue Mar 16 13:55:36 1999  Corinna Vinschen  <corinna.vinschen@cityweb.de>
802
803         * libc/sys/cygwin/sys/dirent.h: Add additional prototypes
804         for telldir() and seekdir().  Rename unused structure element
805         for use with these two routines.
806
807 Fri Mar 12 19:11:58 1999  Jeff Johnston  <jjohnstn@cygnus.com>
808
809         * libc/time/mktime.c (validate_structure): Multiple fixes to
810         code to handle cases where input fields are outside valid ranges.
811         * libc/stdlib/div.c (div): Modified invalid rounding check.
812         * libc/stdlib/ldiv.c (ldiv): Ditto.
813
814 Thu Mar 11 21:32:13 1999  Jeff Johnston  <jjohnstn@cygnus.com>
815
816         * libc/machine/i386/memcpy.S: Performance rewrite.
817         * libc/machine/i386/memmove.S: Ditto.
818         * libc/machine/i386/i386mach.h: Added more register definitions.
819         * libc/include/math.h: Include <machine/fastmath.h> if -ffast-math
820         option used.
821         * libc/include/machine/fastmath.h: Add definitions for x86
822         fast-math routines.
823
824 Wed Mar 10 17:56:00 1999 Ranjith Kumaran  <ranjith@cygnus.com>
825
826         * libc/stdlib/strtod.c: Change from unsigned long to ULong.
827
828 Tue Mar  9 14:31:58 1999  Geoffrey Noer  <noer@cygnus.com>
829
830         Adjust newlib headers for new Cygwin Win32 API header files:
831         * libc/include/sys/time.h: Check _WINSOCK_H rather than
832         _GNU_H_WINDOWS32_SOCKETS.
833         * libc/include/sys/types.h: Ditto.
834
835 Tue Mar 09 15:55:00 1999 Ranjith Kumaran  <ranjith@cygnus.com>
836
837         *include/sys/reent.h: Add checks for size of Bigint element Long.
838         *libc/dtoa.c: Change routines to use generic Long type.
839         *libc/mprec.c: Change routines to use generic Long type.
840         *libc/mprec.h: Change routines to use generic Long type.
841
842 Tue Mar 02 18:07:49 1999 Ranjith Kumaran  <ranjith@cygnus.com>
843
844         * libc/Makefile.am: Add .def files.
845         * libc/Makefile.in: Regenerate.
846         * libc/e_acosh.c: Documentation update.
847         * libc/e_atanh.c: Documentation update.
848         * libc/e_hypot.c: Documentation update.
849         * libc/e_remainder.c: Documentation update.
850         * libc/er_lgamma.c: Documentation update.
851         * libc/mathfp.tex: Documentation update.
852         * libc/s_acos.c: Documentation update.
853         * libc/s_atan.c: Documentation update.
854         * libc/s_atan2.c: Documentation update.
855         * libc/s_cosh.c: Documentation update.
856         * libc/s_fmod.c: Documentation update.
857         * libc/s_isnan.c: Documentation update.
858         * libc/s_log10.c: Documentation update.
859         * libc/s_pow.c: Documentation update.
860         * libc/w_jn.c: Documentation update.
861
862 Sun Feb 28 23:18:49 1999  Geoffrey Noer  <noer@cygnus.com>
863
864         * aclocal.m4: Regenerate.
865         * configure: Regenerate.
866
867 Tue Feb 23 13:57:26 1999  Jeff Johnston  <jjohnstn@cygnus.com>
868
869         * libc/machine/mn10300/setjmp.S (_longjmp): Fixed longjmp
870         to return 1 if user specified return code is 0.
871         * libc/machine/mn10200/setjmp.S (_longjmp): Ditto.
872
873 Thu Feb 18 11:13:28 1999  Jeff Johnston  <jjohnstn@cygnus.com>
874
875         * libc/machine/mn10200/setjmp.S (_setjmp/_longjmp): Fixed setjmp
876         to save the return address.  Fixed longjmp to return to the original
877         calling address of setjmp and to return the user specified return code
878         rather than default to 1.
879         * libc/machine/mn10300/setjmp.S (_setjmp/_longjmp): Ditto.
880
881 Mon Feb 15 17:48:17 1999  Jeff Johnston  <jjohnstn@cygnus.com>
882
883         * libc/stdlib/mprec.h (mult): Define mult to be _multiply instead of _mult.
884
885 1999-02-10  Nick Clifton  <nickc@cygnus.com>
886
887         * libc/sys/arm/syscalls.c (initialise_monitor_handles): Make block
888         volatile so that its assignments will not be discarded.
889
890 Wed Feb 10 17:19:40 1999  Jeff Johnston  <jjohnstn@cygnus.com>
891
892         * libc/include/_ansi.h: Corrected _STRICT_ANSI reference to
893         be __STRICT_ANSI__ which is generated by compiler.
894         * libc/include/ctype.h: Ditto.
895         * libc/include/math.h: Ditto.
896         * libc/include/stdio.h: Ditto.
897         * libc/include/stdlib.h: Ditto.
898         * libc/include/string.h: Ditto.
899         * libc/include/sys/signal.h: Ditto.
900
901 1999-02-08  Nick Clifton  <nickc@cygnus.com>
902
903         * configure.host: Add support for StrongARM target.
904
905 Fri Feb  5 11:13:14 1999  Jeff Johnston  <jjohnstn@cygnus.com>
906
907         * libc/string/strncpy.c (strncpy): Removed redundant code
908         that was copying bytes if data unaligned.
909
910 1999-02-02  Brendan Kehoe  <brendan@cygnus.com>
911
912         * libc/stdlib/Makefile.{am,in} (CHEWOUT_FILES): Add mblen.def,
913         mbstowcs.def, and wcstombs.def.
914
915 Sat Jan 30 02:36:33 1999  Christopher Faylor <cgf@cygnus.com>
916
917         * libc/include/sys/errno.h: Add Cygwin errno.
918         * libc/stdio/flags.c: Don't default to O_TEXT if no other flag
919         is specified.
920
921 1999-01-29  Nick Clifton  <nickc@cygnus.com>
922
923         * libc/sys/arm/syscalls.c: Move C library functions into seperate
924         file.
925         
926         * libc/sys/arm/libcfunc.c: New file containing C library functions
927         from syscalls.c
928
929         * libc/sys/arm/Makefile.am (lib_a_SOURCES): Add libcfuncs.c
930         * libc/sys/arm/Makefile.in (lib_a_SOURCES): Regenerate.
931
932
933 1999-01-27  Michael Meissner  <meissner@cygnus.com>
934
935         * libc/include/machine/setjmp.h (D30V _JBLEN/_JBTYPE): Use double
936         type, and cut size in half so that the jmp_buf array is guaranteed
937         to be aligned on a 64-bit boundary.
938
939 Mon Jan 25 12:05:38 1999  Jeff Johnston  <jjohnstn@cygnus.com>
940
941         * libc/string/strings.tex: Added information about
942         strcasecmp and strncasecmp.
943         * libc/stdlib/stdlib.tex: Added missing information
944         about mblen, mbstowcs, and wcstombs.
945         * libc/string/strchr.c: Changed how mask is built to use
946         shift operators so register will be used instead of storage.
947
948 1999-01-22  DJ Delorie  <dj@cygnus.com>
949
950         * libc/include/stdlib.h: don't use dllimport if we're building
951         newlib, since it's inside cygwin.dll
952
953 Fri Jan 22 14:57:18 1999  Christopher Faylor <cgf@cygnus.com>
954
955         * libc/ctype/ctype_.c: Need to use __declspec(dllexport) for
956         _ctype_ under cygwin.
957
958 Fri Jan 22 09:50:19 1999  Christopher Faylor <cgf@cygnus.com>
959
960         * include/stdlib.h: Fix typo from previous checkin.
961
962 Thu Jan 21 22:42:21 1999  Christopher Faylor <cgf@cygnus.com>
963
964         * include/ctype.h: Use __declspec(dllimport) method for exporting
965         variable from cygwin DLL.
966         * include/time.h: Ditto.
967         * sys/errno.h: Ditto.
968         * include/stdlib.h: Export __mb_cur_max from cygwin DLL.
969         * libc/locale/locale.c: Use __declspec(dllexport) method for
970         exporting variable from cygwin DLL.
971
972 Sat Jan 16 13:29:54 1999  Christopher Faylor <cgf@cygnus.com>
973
974         * libc/stdio/setvbuf.c: Always clean up when _IONBF or possible
975         access of bogus pointer will result in SIGSEGV.
976
977 1999-01-07  Nick Clifton  <nickc@cygnus.com>
978
979         * libc/sys/arm/setjmp.S: Use C macros to cope with the possibility
980         of an underscore prefix to function names.
981
982 Fri Jan  8 19:00:07 1999  Jeff Johnston  <jjohnstn@cygnus.com>
983
984         * libc/machine/i386/i386mach.h (__REG_PREFIX__): Create new
985         define __REG_PREFIX__ instead of using __REGISTER_PREFIX__.
986
987 1998-12-31  Michael Meissner  <meissner@cygnus.com>
988
989         * libc/machine/i386/i386mach.h (__REGISTER_PREFIX__): Only define
990         to `%' if not already defined.
991
992 1998-12-30  Michael Meissner  <meissner@cygnus.com>
993
994         * libc/stdio/tmpnam.c (_tempnam_r): Make directory and prefix
995         arguments const char *, not char *.
996         * libc/include/stdio.h (_tempnam_r): Ditto.
997
998         * libc/include/sys/reent.h (struct _reent): The _sig_func type
999         points to a function taking an integer, not void.
1000
1001 Tue Dec 29 14:35:53 1998  Christopher Faylor <cgf@cygnus.com>
1002
1003         * configure.host: Add a define for Cygwin builds.
1004         * libc/include/ctype.h: Don't use dll imported variables in newlib.
1005
1006 Mon Dec 28 09:19:56 1998  Christopher Faylor <cgf@cygnus.com>
1007
1008         * libc/include/ctype.h: Define _ctype_ as dll imported variable
1009         for use with Cygwin.
1010         * libc/include/sys/errno.h: Define _sys_errlist and _sys_nerr as
1011         dll imported variables for use with Cygwin.
1012         * libc/ctype/ctype_.c: Undefine _ctype_ in case it has been defined
1013         as a dll imported variable for Cygwin.
1014
1015 Sat Dec 26 00:13:53 1998  Christopher Faylor <cgf@cygnus.com>
1016
1017         * libc/include/sys/unistd.h: Add proto for getpass.
1018
1019 Fri Dec 18 19:28:19 1998  Geoffrey Noer  <noer@cygnus.com>
1020
1021         * libc/sys/cygwin/sys/dirent.h: add protos for scandir and
1022         alphasort.
1023
1024 Fri Dec 18 16:33:25 1998  Geoffrey Noer  <noer@cygnus.com>
1025
1026         * libc/posix/execvp.c (execvp): call cygwin_posix_path_list_p,
1027         not posix_path_list_p.
1028
1029 1998-12-15  Nick Clifton  <nickc@cygnus.com>
1030
1031         * libc/string/memchr.c: Treat 'c' argument as an unsigned byte not
1032         a signed int.
1033
1034 1998-12-13  Nick Clifton  <nickc@cygnus.com>
1035
1036         * libc/include/machine/setjmp.h (_JBLEN): Set to 10.
1037
1038 1998-12-12  Nick Clifton  <nickc@cygnus.com>
1039
1040         * libc/machine/fr30/setjmp.S: New file, supplied by Mark Slater
1041         <msalter@cygnus.com>
1042         * libc/machine/fr30/Makefile.am: Add build of setjmp.S
1043         * libc/machine/fr30/Makefile.in: Regenerated.
1044
1045 1998-12-11  Nick Clifton  <nickc@cygnus.com>
1046
1047         * configure.host: Remove use of libc/sys for FR30 port.
1048         * libc/sys/fr30: Remove directory (replaced by libgloss).
1049
1050 1998-12-10  Ken Raeburn  <raeburn@cygnus.com>
1051
1052         * libc/string/strcat.c (ALIGNED): Sense of result was reversed.
1053         * libc/string/strncat.c (ALIGNED): Ditto.
1054
1055 Wed Dec  9 14:37:57 1998  Geoffrey Noer  <noer@cygnus.com>
1056
1057         * libc/include/sys/time.h: include sys/types.h
1058
1059 Tue Dec  8 15:53:18 1998  Jeff Johnston  <jjohnstn@cygnus.com>
1060
1061         * libc/machine/i386/memcmp.S (memcmp): Fix for unequal
1062         comparison found when checking word at a time.
1063
1064 1998-12-04  Nick Clifton  <nickc@cygnus.com>
1065
1066         * libc/sys/fr30/crt0.s (_start): Initialise frame pointer.
1067
1068 1998-12-03  Nick Clifton  <nickc@cygnus.com>
1069
1070         * libc/sys/fr30/syscalls.c (_times): New function stub.
1071
1072 Thu Dec  3 15:59:19 1998  Jeff Johnston  <jjohnstn@cygnus.com>
1073
1074         * configure.host (mach_add_setjmp): Replaced mach_add_objs
1075         with mach_add_setjmp flag which indicates if setjmp should
1076         be added to the machine directory objects.
1077         * acinclude.m4: Removed reference to mach_add_objs.
1078         * aclocal.m4: Regenerated.
1079         * Makefile.in: Regenerated.
1080         * configure: Regenerated.
1081         * libc/aclocal.m4: Regenerated.
1082         * libc/Makefile.in: Regenerated.
1083         * libc/configure: Regenerated.
1084         * libc/machine/aclocal.m4: Regenerated.
1085         * libc/machine/Makefile.in: Regenerated.
1086         * libc/machine/configure: Regenerated.
1087         * libc/machine/i386/aclocal.m4: Regenerated.
1088         * libc/machine/i386/Makefile.am: Altered to selectively add
1089         setjmp.S to the src files list.
1090         * libc/machine/i386/Makefile.in: Regenerated.
1091         * libc/machine/i386/configure.in: Altered to test mach_add_setjmp.
1092         * libc/machine/i386/configure: Regenerated.
1093
1094 1998-12-02  Nick Clifton  <nickc@cygnus.com>
1095
1096         * libc/sys/fr30/crt0.s (_start): Fix function names.
1097
1098         * libc/machine/fr30: New directory
1099         * libc/machine/fr30/Makefile.am: New file.
1100         * libc/machine/fr30/Makefile.in: New generated file.
1101         * libc/machine/fr30/configure.in: New file.
1102         * libc/machine/fr30/configure: New generated file.
1103         * libc/machine/fr30/aclocal.m4: New generated file.
1104         * libc/sys/fr30/Makefile.am: New file.
1105         * libc/sys/fr30/Makefile.in: New generated file.
1106         * libc/sys/fr30/configure.in: New file.
1107         * libc/sys/fr30/configure: New generated file.
1108         * libc/sys/fr30/syscalls.c: New file.
1109
1110 Tue Dec  1 16:28:56 1998  Geoffrey Noer  <noer@cygnus.com>
1111
1112         * libc/sys/cygwin/sys/utmp.h: new file, moved from winsup/include.
1113
1114 1998-12-01  Ken Raeburn  <raeburn@cygnus.com>
1115
1116         * libc/time/strftime.c (strftime): Also handle %y for years before
1117         1900.
1118
1119 Tue Dec  1 13:26:07 1998  Christopher Faylor <cgf@cygnus.com>
1120
1121         * libc/string/strcasecmp.c (strcasecmp): Adhere to standard
1122         UNIX convention.  Perform tolower on characters before comparing
1123         them rather than use toupper.
1124         * libc/string/strncasecmp.c (strncasecmp): Ditto.
1125
1126 Mon Nov 30 16:24:19 1998  Jeff Johnston  <jjohnstn@cygnus.com>
1127         
1128         * configure.host: Added using i386 machine directory
1129         for all x86 cross-compiler and configuring
1130         which added object files to use via new "mach_add_objs" variable.
1131         * configure: Regenerated.
1132         * libc/configure: Regenerated.
1133         * libc/Makefile.in: Regenerated.
1134         * libc/aclocal.m4: Regenerated.
1135         * libc/ctype/Makefile.in: Regenerated.
1136         * libc/errno/Makefile.in: Regenerated.
1137         * libc/locale/Makefile.in: Regenerated.
1138         * libc/machine/Makefile.in: Regenerated.
1139         * libc/machine/aclocal.m4: Regenerated.
1140         * libc/machine/configure: Regenerated.
1141         * libc/posix/Makefile.in: Regenerated.
1142         * libc/reent/Makefile.in: Regenerated.
1143         * libc/signal/Makefile.in: Regenerated.
1144         * libc/stdio/Makefile.in: Regenerated.
1145         * libc/stdlib/Makefile.in: Regenerated.
1146         * libc/string/Makefile.in: Regenerated.
1147         * libc/string/memmove.c: Optimized code to use memcpy
1148         logic when performing a non-destructive copy.
1149         * libc/string/strncmp.c: Altered code to allow building
1150         optimized for size or speed.
1151         * libc/syscalls/Makefile.in: Regenerated.
1152         * libc/time/Makefile.in: Regenerated.
1153         * libc/unix/Makefile.in: Regenerated.
1154         * libc/machine/i386/Makefile.am: Added new files and reference
1155         to "mach_add_objs" to indicate optional object files.
1156         * libc/machine/i386/Makefile.in: Regenerated.
1157         * libc/machine/i386/aclocal.m4: Regenerated.
1158         * libc/machine/i386/configure: Regenerated.
1159         * libc/machine/i386/memchr.S: New file that implements
1160         function in Intel assembler.
1161         * libc/machine/i386/memcmp.S: ditto.
1162         * libc/machine/i386/memcpy.S: ditto.
1163         * libc/machine/i386/memmove.S: ditto.
1164         * libc/machine/i386/memset.S: ditto.
1165         * libc/machine/i386/strchr.S: ditto.
1166         * libc/machine/i386/strlen.S: ditto.
1167         * libc/machine/i386/f_atan2.S: New file that implements
1168         fast version of math function to be used by compiler when
1169         --ffast_math compile option is used.
1170         * libc/machine/i386/f_atan2f.S: ditto.
1171         * libc/machine/i386/f_exp.c: ditto.
1172         * libc/machine/i386/f_expf.c: ditto.
1173         * libc/machine/i386/f_frexp.S: ditto.
1174         * libc/machine/i386/f_frexpf.S: ditto.
1175         * libc/machine/i386/f_ldexp.S: ditto.
1176         * libc/machine/i386/f_ldexpf.S: ditto.
1177         * libc/machine/i386/f_log.S: ditto.
1178         * libc/machine/i386/f_logf.S: ditto.
1179         * libc/machine/i386/f_log10.S: ditto.
1180         * libc/machine/i386/f_log10f.S: ditto.
1181         * libc/machine/i386/f_math.h: New file.
1182         * libc/machine/i386/f_pow.c: ditto.
1183         * libc/machine/i386/f_powf.S: ditto.
1184         * libc/machine/i386/f_tan.S: ditto.
1185         * libc/machine/i386/f_tan.S: ditto.
1186         * libc/machine/i386/i386mach.h: New file.
1187
1188 Mon Nov 30 13:02:17 1998  Christopher Faylor <cgf@cygnus.com>
1189
1190         patch from Mumit Khan <khan@xraylith.wisc.edu>
1191         * libc/include/stdio.h (tempnam): Add prototype.
1192         * libc/stdio/tmpnam.c (_tempnam_r): Handle NULL prefix.
1193         (tempnam): Adhere to prototype.
1194
1195 Thu Nov 26 00:21:32 1998  Christopher Faylor <cgf@cygnus.com>
1196
1197         * Makefile.am: Add default for AR_FLAGS.
1198         * Makefile.in: Regenerate.
1199
1200 Tue Nov 24 18:48:56 1998  Geoffrey Noer  <noer@cygnus.com>
1201
1202         * libc/include/time.h: move __cplusplus wrapper after includes
1203         * libc/include/sys/time.h: ditto.  If Cygwin, include
1204         sys/select.h.
1205         * libc/include/sys/types.h: lose "32" in comment about Cygwin.
1206
1207 1998-11-23  Ken Raeburn  <raeburn@cygnus.com>
1208
1209         * libc/time/strftime.c (strftime): Handle %y after year 2000.
1210
1211 Wed Nov 18 12:22:41 1998  Nick Clifton  <nickc@cygnus.com>
1212
1213         * libc/sys/fr30/crt0.s (_start): Switch over to using int #9 as
1214         abnormnal end-of-crt0 marker.
1215
1216 Tue Nov 17 16:27:58 1998  Nick Clifton  <nickc@cygnus.com>
1217
1218         * libc/sys/fr30/crt0.s: New file/directory.
1219         * libc/include/machine/setjmp.h: Add FR30 target.
1220         * libc/include/machine/ieeefp.h: Add FR30 target.
1221         * configure.host: Add FR30 target.
1222
1223 Mon Nov  16 23:15:00 1998  Ranjith Kumaran <ranjith@cygnus.com>
1224
1225         * libm/math: Files that are duplicated in common directory removed.
1226         * libm/math/fdlibm.h: Removed.
1227         * libm/math/s_cbrt.c: Removed.
1228         * libm/math/s_copysign.c: Removed.
1229         * libm/math/s_expm1.c: Removed.
1230         * libm/math/s_finite.c: Removed.
1231         * libm/math/s_ilogb.c: Removed.
1232         * libm/math/s_infinity.c: Removed.
1233         * libm/math/s_lib_ver.c: Removed.
1234         * libm/math/s_log1p.c: Removed.
1235         * libm/math/s_logb.c: Removed.
1236         * libm/math/s_matherr.c: Removed.
1237         * libm/math/s_modf.c: Removed.
1238         * libm/math/s_nan.c: Removed.
1239         * libm/math/s_nextafter.c: Removed.
1240         * libm/math/s_rint.c: Removed.
1241         * libm/math/s_scalbn.c: Removed.
1242         * libm/math/sf_cbrt.c: Removed.
1243         * libm/math/sf_copysign.c: Removed.
1244         * libm/math/sf_expm1.c: Removed.
1245         * libm/math/sf_finite.c: Removed.
1246         * libm/math/sf_ilogb.c: Removed.
1247         * libm/math/sf_infinity.c: Removed.
1248         * libm/math/sf_log1p.c: Removed.
1249         * libm/math/sf_logb.c: Removed.
1250         * libm/math/sf_modf.c: Removed.
1251         * libm/math/sf_nan.c: Removed.
1252         * libm/math/sf_nextafter.c: Removed.
1253         * libm/math/sf_rint.c: Removed.
1254         * libm/math/sf_scalbn.c: Removed.
1255         * libm/math/Makefile.am: Removed references to deleted files (above).
1256         * libm/math/Makefile.in: Regenerated.
1257         * libm/Makefile.am: Added common directory to math.
1258         * libm/Makefile.in: Regenerated.
1259
1260 Mon Nov  2 23:12:00 1998  Ranjith Kumaran <ranjith@cygnus.com>
1261
1262         * libm/mathfp: Add non-ANSI functions.
1263         * libm/mathfp/e_acosh.c acosh(): New file.
1264         * libm/mathfp/e_atanh.c atanh(): New file.
1265         * libm/mathfp/e_hypot.c hypot(): New file.
1266         * libm/mathfp/e_j0.c j0(): New file.
1267         * libm/mathfp/e_j1.c j1(): New file.
1268         * libm/mathfp/e_remainder.c remainder(): New file.
1269         * libm/mathfp/e_scalb.c scalb(): New file.
1270         * libm/mathfp/ef_acosh.c acoshf(): New file.
1271         * libm/mathfp/ef_atanh.c atanhf(): New file.
1272         * libm/mathfp/ef_hypot.c hypotf(): New file.
1273         * libm/mathfp/ef_j0.c j0f(): New file.
1274         * libm/mathfp/ef_j1.c j1f(): New file.
1275         * libm/mathfp/ef_remainder.c remainderf(): New file.
1276         * libm/mathfp/ef_scalb.c scalbf(): New file.
1277         * libm/mathfp/er_gamma.c gamma_r: New file.
1278         * libm/mathfp/er_lgamma.c lgamma_r(): New file.
1279         * libm/mathfp/erf_gamma.c gamma_rf(): New file.
1280         * libm/mathfp/erf_lgamma.c lgamma_rf(): New file.
1281         * libm/mathfp/w_cabs.c cabs(): New file.
1282         * libm/mathfp/w_drem.c drem(): New file.
1283         * libm/mathfp/w_jn.c jn(): New file.
1284         * libm/mathfp/wf_cabs.c cabsf(): New file.
1285         * libm/mathfp/wf_drem.c dremf(): New file.
1286         * libm/mathfp/wf_jn.c jnf(): New file.
1287
1288 Mon Nov  2 16:43:18 1998  Geoffrey Noer  <noer@cygnus.com>
1289
1290         * libc/sys/cygwin32: remove directory and contents
1291         * libc/sys/cygwin: and add back, losing the "32".
1292         * configure.host: check for cygwin* instead of cygwin32.
1293         * acinclude.m4: ditto.
1294         * aclocal.m4: regenerate with aclocal
1295         * configure: regenerate with autoconf
1296
1297 Tue Oct 20 17:28:28 1998  Geoffrey Noer  <noer@cygnus.com>
1298
1299         * libc/stdio/tmpnam.c (_tempnam_r): not enough memory allocated
1300         for length
1301
1302 Tue Oct 20 18:49:05 1998  Jeff Johnston  <jjohnstn@cygnus.com>
1303
1304         * libc/include/sys/reent.h (struct _reent): Added variables _rand_next, _strtok_last,
1305         _asctime_buf, _localtime_buf and _gamma_signgam to struct reent
1306         to make rand/srand, strtok, asctime, localtime, w_gamma,
1307         w_lgamma, wf_gamma, and wf_lgamma reentrant.  Included
1308         time.h to bring in struct tm definition.
1309         * libc/stdlib/rand.c (rand, srand): Don't emit functions 'rand' and 'srand' if
1310         '_REENT_ONLY' is set. Used variable '_rand_next' from struct reent.
1311         * libc/stdlib/strtok.c (strtok): Used variable '_strtok_last' from struct reent
1312         instead of static variable.
1313         * libc/stdlib/asctime.c (asctime): Used variable '_asctime_buf' from
1314         struct reent instead of static variable.
1315         * libc/stdlib/lcltime.c (localtime): Used variable '_localtime_buf' from
1316         struct reent instead of static variable.
1317         * libm/math/Makefile.am: Removed s_signgam.o.
1318         * libm/math/Makefile.in: Regenerated.
1319         * libm/math/w_gamma.c (gamma): Used variable '_gamma_signgam' from
1320         struct reent instead of global variable 'signgam'.
1321         * libm/math/w_lgamma.c (lgamma): Likewise.
1322         * libm/math/wf_gamma.c (gammaf): Likewise.
1323         * libm/math/wf_lgamma.c (lgammaf): Likewise.
1324         * libm/math/s_signgam.c: Removed.
1325         * libc/include/unctrl.h: Defined arrays __unctrl and __unctrllen
1326         to be const.
1327         * libc/misc/unctrl.c: Defined arrays __unctrl and __unctrllen
1328         to be const.
1329         * libc/reent/Makefile.am: Added dependence for impure.o on impure.c and
1330         libc/include/reent.h.
1331         * libc/reent/Makefile.in: Regenerated.
1332         * libc/stdio/vfprintf.c (_vfprintf_r): Defined arrays 'blanks' and 'zeroes'
1333         to be const.
1334         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Defined arrays 'JIS_state_table' and
1335         'JIS_action_table' to be const.
1336         * libm/math/s_lib_ver.c: define variable _LIB_VERSION to be const.
1337
1338 Mon Oct 12 00:26:33 1998  Christopher Faylor <cgf@cygnus.com>
1339
1340         * acinclude.m4:  $with_target_subdir should default to '.'
1341         or confusion results when configuring in same directory as sources.
1342         * Regenerate all aclocal.m4 and configure files.
1343
1344 Fri Oct  9 16:27:36 1998  Jeff Johnston  <jjohnstn@cygnus.com>
1345
1346         * libc/stdlib/mallocr.c: Added 16 byte alignment support which
1347         can be set by defining MALLOC_ALIGNMENT=16.  Also added support
1348         for platforms where sizeof(size_t) < sizeof(long) via
1349         SIZE_T_SMALLER_THAN_LONG macro.
1350         
1351 Wed Oct  7 14:02:40 1998  Jeff Johnston  <jjohnstn@cygnus.com>
1352
1353         * libc/include/time.h (CLOCKS_PER_SEC): Change CLOCKS_PER_SEC
1354         to refer to _CLOCKS_PER_SEC_ and added including <machine/time.h>
1355         which sets _CLOCKS_PER_SEC_ for selected machines.
1356         * libc/include/machine/time.h: New file.
1357
1358 Tue Oct  6 16:08:05 1998  Jeff Johnston  <jjohnstn@cygnus.com>
1359
1360         * libc/syscalls/sysexecve.c: New file.
1361         * libc/syscalls/sysgettod.c: New file.
1362         * libc/syscalls/systimes.c: New file.
1363         * libc/syscalls/Makefile.am: Added new objects.
1364         * libc/syscalls/Makefile.in: Regenerated.
1365         * libc/include/_syslist.h (_execve): Moved define in file.
1366         * libc/include/reent.h:  Added _execve_r declaration.
1367         * libc/Makefile.in: Regenerated.
1368         * libc/ctype/Makefile.in: Regenerated.
1369         * libc/errno/Makefile.in: Regenerated.
1370         * libc/locale/Makefile.in: Regenerated.
1371         * libc/machine/Makefile.in: Regenerated.
1372         * libc/misc/Makefile.in: Regenerated.
1373         * libc/posix/Makefile.in: Regenerated.
1374         * libc/reent/Makefile.in: Regenerated.
1375         * libc/reent/execr.c (_execve_r): Added _execve_r function.
1376         * libc/signal/Makefile.in: Regenerated.
1377         * libc/stdio/Makefile.in: Regenerated.
1378         * libc/time/Makefile.in: Regenerated.
1379         * libc/unix/Makefile.in: Regenerated.
1380         * libm/mathfp/Makefile.in: Regenerated.
1381
1382 Tue Oct  6 14:14:05 1998  Jeff Johnston  <jjohnstn@cygnus.com>
1383
1384         * libc/string/Makefile.in: Regenerated.
1385         * libc/string/memchr.c (memchr): Moved code to reduce object size.
1386         * libc/string/memcpy.c (memcpy): Ditto.
1387         * libc/string/memcmp.c (memcmp): Ditto.
1388         * libc/string/memset.c (memset): Ditto.
1389         * libc/string/strchr.c (strchr): Ditto.
1390         * libc/string/strcmp.c (strcmp): Ditto.
1391         * libc/string/strcpy.c (strcpy): Ditto.
1392         * libc/string/strlen.c (strlen): Ditto.
1393
1394 Tue Oct  6 13:58:05 1998  Jeff Johnston  <jjohnstn@cygnus.com>
1395
1396         * libm/acinclude.m4: Removed since newlib/acinclude.m4 can be used
1397         to generate aclocal.m4.
1398         * libm/Makefile.in: Regenerated.
1399         * libm/aclocal.m4: Regenerated.
1400         * libm/configure: Regenerated.
1401         * libm/math/Makefile.in: Regenerated.
1402         * libm/mathfp/Makefile.in: Regenerated.
1403
1404 1998-09-25  Mark Salter  <msalter@cygnus.com>
1405
1406         * libc/include/machine/setjmp.h: Fixed test for mn10300 and mn10200
1407         by adding leading and trailing underscores to symbol names.
1408
1409 Tue Sep 22 15:33:41 1998  Christopher Faylor <cgf@cygnus.com>
1410
1411         * Makefile.in: Add default for AR_FLAGS.
1412
1413 Tue Sep 22 15:02:49 1998  Christopher Faylor <cgf@cygnus.com>
1414
1415         patch from ian@airs.com (Ian Taylor):
1416         * acinclude.m4: Run AC_CANONICAL_BUILD explicitly before
1417         NEWLIB_CONFIGURE so AC_CANONICAL_HOST will be run before it
1418         is needed for detecting the build machine.  Required for
1419         cygwin native builds.
1420
1421         * Regenerate all aclocal.m4 and configure files.
1422
1423 Mon Sep 21 14:44:16 1998  Nick Clifton  <nickc@cygnus.com>
1424
1425         * libc/sys/arm/crt0.S: Prepend a period to all local labels that
1426         used to start with LC.
1427
1428 Thu Sep 17 18:18:11 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
1429
1430         * libc/machine/sh/setjmp.S (setjmp): Handle __SH4* like __SH3E__ .
1431         (longjmp): Likewise.
1432
1433 Thu Sep 17 16:25:33 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
1434
1435         * libc/machine/sh/memset.S (memset): Move copy from r4 to r4 before
1436         the test for small number of bytes.
1437
1438 Thu Sep 10 11:40:00 1998  Ranjith Kumaran <ranjith@cygnus.com>
1439
1440         * Makefile.am: Add --enable-newlib-hw-fp check.  This builds the new
1441         math library that uses floating point algorithms instead of the old
1442         libm.
1443         * Makefile.in: Regenerate with automake version 1.3b.
1444         * configure: Rebuild.
1445         * libm/Makefile.in: Regenerate with automake version 1.3b.
1446         * libm/aclocal.m4: Regenerate.
1447         * libm/configure: Rebuild.
1448         * libm/configure.in: Add newlib_hw_fp definition and mathfp directory.
1449         * libm/acinclude.m4: Define macros for configure.in.
1450         * libm/config.h.in: Generate.
1451         * libm/mathfp/Makefile.am: New file.
1452         * libm/mathfp/Makefile.in: Generate.
1453         * libm/mathfp/s_acos.c (acos): New file.
1454         * libm/mathfp/s_asin.c (asin): New file.
1455         * libm/mathfp/s_asine.c (asine): New file.
1456         * libm/mathfp/s_atan.c (atan): New file.
1457         * libm/mathfp/s_atan2.c (atan2): New file.
1458         * libm/mathfp/s_atangent.c (atangent): New file.
1459         * libm/mathfp/s_ceil.c (ceil): New file.
1460         * libm/mathfp/s_copysign.c (copysign): New file.
1461         * libm/mathfp/s_cos.c (cos): New file.
1462         * libm/mathfp/s_cosh.c (cosh): New file.
1463         * libm/mathfp/s_exp.c (exp): New file.
1464         * libm/mathfp/s_fabs.c (fabs): New file.
1465         * libm/mathfp/s_finite.c (finite): New file.
1466         * libm/mathfp/s_floor.c (floor): New file.
1467         * libm/mathfp/s_fmod.c (fmod): New file.
1468         * libm/mathfp/s_frexp.c (frexp): New file.
1469         * libm/mathfp/s_infconst.c: New file.
1470         * libm/mathfp/s_isinf (isinf).c: New file.
1471         * libm/mathfp/s_isnan.c (isnan): New file.
1472         * libm/mathfp/s_ispos.c (ispos): New file.
1473         * libm/mathfp/s_ldexp.c (ldexp): New file.
1474         * libm/mathfp/s_log.c (log): New file.
1475         * libm/mathfp/s_log10.c (log10): New file.
1476         * libm/mathfp/s_logarithm.c (logarithm): New file.
1477         * libm/mathfp/s_mathcnst.c: New file.
1478         * libm/mathfp/s_modf (modf).c: New file.
1479         * libm/mathfp/s_numtest.c (numtest): New file.
1480         * libm/mathfp/s_pow.c (pow): New file.
1481         * libm/mathfp/s_scalbn.c (scalbn): New file.
1482         * libm/mathfp/s_sin (sin).c: New file.
1483         * libm/mathfp/s_sine.c (sine): New file.
1484         * libm/mathfp/s_sineh.c (sineh): New file.
1485         * libm/mathfp/s_sinf.c (sinf): New file.
1486         * libm/mathfp/s_sinh.c (sinh): New file.
1487         * libm/mathfp/s_sqrt.c (sqrt): New file.
1488         * libm/mathfp/s_tan.c (tan): New file.
1489         * libm/mathfp/s_tanh.c (tanh): New file.
1490         * libm/mathfp/sf_acos.c (acosf): New file.
1491         * libm/mathfp/sf_asin.c (asinf): New file.
1492         * libm/mathfp/sf_asine.c (asinef): New file.
1493         * libm/mathfp/sf_atan.c (atanf): New file.
1494         * libm/mathfp/sf_atan2.c (atan2f): New file.
1495         * libm/mathfp/sf_atangent.c (atangent): New file.
1496         * libm/mathfp/sf_ceil.c (ceilf): New file.
1497         * libm/mathfp/sf_copysign.c (copysignf): New file.
1498         * libm/mathfp/sf_cos.c (cosf): New file.
1499         * libm/mathfp/sf_cosh.c (coshf): New file.
1500         * libm/mathfp/sf_exp.c (expf): New file.
1501         * libm/mathfp/sf_fabs.c (fabsf): New file.
1502         * libm/mathfp/sf_finite.c (finitef): New file.
1503         * libm/mathfp/sf_floor.c (floorf): New file.
1504         * libm/mathfp/sf_fmod.c (fmodf): New file.
1505         * libm/mathfp/sf_frexp.c (frexpf): New file.
1506         * libm/mathfp/sf_isinf.c (isinff): New file.
1507         * libm/mathfp/sf_isnan.c (isnanf): New file.
1508         * libm/mathfp/sf_ispos.c (isposf): New file.
1509         * libm/mathfp/sf_ldexp.c (ldexpf): New file.
1510         * libm/mathfp/sf_log.c (logf): New file.
1511         * libm/mathfp/sf_log10.c (log10f): New file.
1512         * libm/mathfp/sf_logarithm.c (logarithmf): New file.
1513         * libm/mathfp/sf_modf.c (modff): New file.
1514         * libm/mathfp/sf_numtest.c (numtestf): New file.
1515         * libm/mathfp/sf_pow.c (powf): New file.
1516         * libm/mathfp/sf_scalbn.c (scalbnf): New file.
1517         * libm/mathfp/sf_sin.c (sinf): New file.
1518         * libm/mathfp/sf_sine.c (sinef): New file.
1519         * libm/mathfp/sf_sineh.c (sinehf): New file.
1520         * libm/mathfp/sf_sinh.c (sinhf): New file.
1521         * libm/mathfp/sf_sqrt.c (sqrtf): New file.
1522         * libm/mathfp/sf_tan.c (tanf): New file.
1523         * libm/mathfp/sf_tanh.c (tanhf): New file.
1524         * libm/mathfp/zmath.h: New file.
1525
1526 Wed Sep  2 02:49:03 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
1527
1528         * libc/machine/sh/strcmp.S (L_char_loop): Re-load r0 at loop
1529         exit if it has been overwritten by pre-fetching in delay slot.
1530
1531 1998-09-01  Michael Meissner  <meissner@cygnus.com>
1532
1533         * Makefile.am (tooldir): Add in host_alias, so that multilib
1534         libraries are installed in the directory the compiler looks in.
1535         * Makefile.in: Regenerate.
1536
1537         * libc/stdlib/Makefile.in: Regenerate with automake version 1.3b.
1538
1539 Mon Aug 31 11:39:31 1998  Jeff Johnston  <jjohnstn@cygnus.com>
1540
1541         * libc/machine/mn10300/memcpy.S (_memcpy): Move alignment test
1542         ahead of test for number of bytes being moved.
1543
1544 Thu Aug 27 14:07:53 1998  Christopher Faylor <cgf@cygnus.com>
1545
1546         * libc/include/sys/unistd.h: Nothing special needed for
1547         _exit under cygwin.
1548
1549 Wed Aug 26 15:05:21 1998  Nick Clifton  <nickc@cygnus.com>
1550
1551         * libc/sys/arm/syscalls.c (_sbrk): Rename '_end' to 'end' to
1552         conform to user label naming conventions. 
1553
1554 Mon Aug 24 14:46:19 1998  Geoffrey Noer <noer@cygnus.com>
1555
1556         * libc/sys/cygwin32/sys/utime.h: variable names in
1557         protos should start with two leading underscores
1558         * libc/include/string.h: ditto
1559         * libc/include/sys/signal.h: ditto
1560         * libc/include/sys/stat.h: ditto
1561         * libc/include/sys/time.h: ditto
1562         * libc/include/sys/unistd.h: ditto
1563         * libc/include/ctype.h: ditto
1564         * libc/include/stdlib.h: ditto
1565         * libc/include/sys/reent.h: struct _atexit function ptr takes a
1566         void, same with _sig_func.
1567
1568 Fri Aug 21 14:44:14 1998  Jeff Johnston  <jjohnstn@cygnus.com>
1569
1570         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Added preprocessor checks
1571         for MB_CAPABLE to reduce code size when newlib is not configured
1572         with --enable-newlib-mb.
1573         * libc/stdlib/Makefile.am: Specified -fshort-enums when building
1574         mbtowc_r.o to minimize size.
1575         * libc/stdlib/Makefile.in: Rebuild.
1576         
1577 Wed Aug 19 16:20:13 1998  Jim Wilson  <wilson@cygnus.com>
1578
1579         * libc/sys/sparc64/Makefile.am (.S_r.o, .c_r.o): Change -DREENTRANT
1580         to -DREENT.
1581         * libc/sys/sparc64/Makefile.in: Rebuild.
1582         
1583 Tue Aug 18 22:38:29 1998  Ian Lance Taylor  <ian@cygnus.com>
1584
1585         * Makefile.am (MAKEOVERRIDES): Define.
1586         * Makefile.in: Rebuild.
1587
1588 Tue Aug 18 12:38:47 1998  Jim Wilson  <wilson@cygnus.com>
1589
1590         * libc/sys/sparc64/sys/stat.h (stat): Add const.
1591
1592 Mon Aug 17 22:27:06 1998  Ian Lance Taylor  <ian@cygnus.com>
1593
1594         * acinclude.m4 (NEWLIB_CONFIGURE): Use top_builddir in
1595         newlib_cflags when looking for targ-include.
1596         * */aclocal.m4, */configure: Rebuild.
1597
1598 Fri Jul 31 10:57:42 1998  Catherine Moore  <clm@cygnus.com>
1599
1600         * libc/sys/arm/syscalls.c (_sbrk): Change "__end__"
1601         to "_end".
1602
1603 Wed Jul 29 00:02:01 1998  Mark Alexander  <marka@cygnus.com>
1604
1605         * libc/include/sys/config.h: Define __IEEE_LITTLE_ENDIAN
1606         on SPARCs with little-endian data.
1607         * libc/include/machine/ieeefp.h: Ditto.
1608
1609 Wed Jul 22 18:00:10 1998  Ian Lance Taylor  <ian@cygnus.com>
1610
1611         * acinclude.m4: Handle a relative srcdir correctly when setting
1612         newlib_cflags.
1613         * */aclocal.m4, */configure: Rebuild.
1614
1615 Wed Jul 22 17:11:33 1998  Jeff Johnston  <jjohnstn@cygnus.com>
1616
1617         * libm/math/wrf_lgamma.c (lgammaf_r): Initialize exc.err to 0 and
1618         also set exc.arg1, exc.arg2 appropriately in case matherr is supplied.
1619         * libm/math/wrf_gamma.c (gammaf_r): ditto 
1620         * libm/math/wr_lgamma.c (lgamma_r): ditto 
1621         * libm/math/wr_gamma.c (gamma_r): ditto 
1622         * libm/math/wf_sqrt.c (sqrtf): ditto 
1623         * libm/math/wf_sinh.c (sinhf): ditto 
1624         * libm/math/wf_scalb.c (scalbf): ditto 
1625         * libm/math/wf_remainder.c (remainderf): ditto 
1626         * libm/math/wf_pow.c (powf): ditto 
1627         * libm/math/wf_log10.c (log10f): ditto 
1628         * libm/math/wf_log.c (logf): ditto 
1629         * libm/math/wf_lgamma.c (lgammaf): ditto 
1630         * libm/math/wf_jn.c (jnf, ynf): ditto 
1631         * libm/math/wf_j1.c (j1f, y1f): ditto 
1632         * libm/math/wf_j0.c (j0f, y0f): ditto 
1633         * libm/math/wf_hypot.c (hypotf): ditto 
1634         * libm/math/wf_gamma.c (gammaf): ditto 
1635         * libm/math/wf_fmod.c (fmodf): ditto 
1636         * libm/math/wf_exp.c (expf): ditto 
1637         * libm/math/wf_cosh.c (coshf): ditto 
1638         * libm/math/wf_atanh.c (atanhf): ditto 
1639         * libm/math/wf_atan2f.c (atan2f): ditto 
1640         * libm/math/wf_asin.c (asinf): ditto 
1641         * libm/math/wf_acosh.c (acoshf): ditto 
1642         * libm/math/wf_acos.c (acosf): ditto 
1643         * libm/math/w_sqrt.c (sqrt): ditto 
1644         * libm/math/w_sinh.c (sinh): ditto 
1645         * libm/math/w_scalb.c (scalb): ditto 
1646         * libm/math/w_remainder.c (remainder): ditto 
1647         * libm/math/w_pow.c (pow): ditto 
1648         * libm/math/w_log10.c (log10): ditto 
1649         * libm/math/w_log.c (log): ditto 
1650         * libm/math/w_lgamma.c (lgamma): ditto 
1651         * libm/math/w_jn.c (jn, yn): ditto 
1652         * libm/math/w_j1.c (j1, y1): ditto 
1653         * libm/math/w_j0.c (j0, y0): ditto 
1654         * libm/math/w_hypot.c (hypot): ditto 
1655         * libm/math/w_gamma.c (gamma): ditto 
1656         * libm/math/w_fmod.c (fmod): ditto 
1657         * libm/math/w_exp.c (exp): ditto 
1658         * libm/math/w_cosh.c (cosh): ditto 
1659         * libm/math/w_atanh.c (atanh): ditto 
1660         * libm/math/w_atan2f.c (atan2): ditto 
1661         * libm/math/w_asin.c (asin): ditto 
1662         * libm/math/w_acosh.c (acosh): ditto 
1663         * libm/math/w_acos.c (acos): ditto 
1664
1665 Tue Jul 21 12:34:54 1998  Ian Lance Taylor  <ian@cygnus.com>
1666
1667         * libm/math/Makefile.am (src): Add w_cabs.c and w_drem.c.
1668         (fsrc): Add wf_cabs.c and wf_drem.c.
1669         * libm/math/Makefile.in: Rebuild.
1670
1671         * Makefile.am (AM_MAKEFLAGS): Add CFLAGS_FOR_BUILD.  Remove some
1672         unused directory variables.  Remove duplicate CFLAGS.
1673         * Makefile.in: Rebuild.
1674
1675         * doc/Makefile.am ($(MKDOC)): Don't use $(CFLAGS) when building
1676         with $(CC_FOR_BUILD).
1677         (makedoc.o): Likewise.
1678         * doc/Makefile.in: Rebuild.
1679
1680         * libc/sys/cygwin32/Makefile.am (EXTRA_LIBRARIES): Define, to
1681         force a definition of COMPILE.
1682         (libfoo_a_SOURCES): Define.
1683         * libc/sys/cygwin32/Makefile.in: Rebuild.
1684         * libc/sys/tic80/Makefile.am (EXTRA_LIBRARIES): Define, to
1685         force a definition of COMPILE.
1686         (libfoo_a_SOURCES): Define.
1687         * libc/sys/tic80/Makefile.in: Rebuild.
1688
1689 Mon Jul 20 20:49:24 1998  Christopher Faylor <cgf@cygnus.com>
1690
1691         * libc/include/sys/fcntl.h: Add O_NOINHERIT, Win32-specific
1692         flag.
1693
1694 Fri Jul 17 16:13:16 1998  Ian Lance Taylor  <ian@cygnus.com>
1695
1696         * Build using autoconf and automake.  Added many Makefile.am and
1697         configure.in files, plus generated files.  Old configure.in files
1698         and all old Makefile.in files completely replaced.  Removed
1699         host/any.  Added acinclude.m4 and configure.host.
1700
1701 Sat Jul 11 18:14:49 1998  Felix Lee  <flee@cygnus.com>
1702
1703         * libc/stdio/vfprintf.c: enable long long support, sometimes.
1704         * configure.in (*-*-cygwin32): add -DWANT_PRINTF_LONG_LONG.
1705
1706 Tue Jul  7 01:51:55 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
1707
1708         * libc/machine/sh/strcmp.S, libc/machine/sh/strcpy.S: New files.
1709         * libc/machine/sh/Makefile.in: Add rules for new files.
1710
1711 Tue Jul  7 01:40:55 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
1712
1713         * libc/machine/sh/asm.h (SL, DELAYED_BRANCHES): Define.
1714         * libc/machine/sh/memset.S (memset): Remove uses of dt; shorten code.
1715         * libc/machine/sh/memcpy.S (SL, DELAYED_BRANCHES): Don't define.
1716
1717 Thu Jul  2 10:33:16 1998  Nick Clifton  <nickc@cygnus.com>
1718
1719         * libc/sys/arm/syscalls.c (_exit): Add comment, noting that exit
1720         code is ignored.
1721
1722 Wed Jun 24 13:56:54 1998  Jeff Johnston  <jjohnstn@cygnus.com>
1723
1724         * libc/stdio/tmpnam.c (_tmpnam_r): Changed routine to use
1725         internal static buffer when s is NULL, as prescribed by ANSI.
1726
1727 1998-06-22  Vladimir N. Makarov  <vmakarov@cygnus.com>
1728
1729         * libc/sys/h8300hms/Makefile.in (OFILES): malloc.o has been
1730         removed.
1731         * libc/sys/h8300hms/malloc.c: has been removed.  Now malloc.c from
1732         libc/stdlib will be used for h8300hms.
1733         
1734 Thu Jun 18 16:56:05 1998  Jeff Johnston  <jjohnstn@cygnus.com>
1735
1736         * libc/machine/mn10300/strlen.S (_strlen): New optimized assembler
1737         version that can be built either for speed or size.
1738         * libc/machine/mn10300/memset.S (_memset): ditto
1739         * libc/machine/mn10300/memchr.S (_memchr): ditto
1740         * libc/machine/mn10300/memcpy.S (_memcpy): ditto
1741         * libc/machine/mn10300/memcmp.S (_memcmp): ditto
1742         * libc/machine/mn10300/strchr.S (_strchr): ditto
1743         * libc/machine/mn10300/strcmp.S (_strcmp): ditto
1744         * libc/machine/mn10300/strcpy.S (_strcpy): ditto
1745         * libc/machine/mn10300/Makefile.in: Added entries for
1746         memchr.o, memcmp.o, memcpy.o, memset.o, strchr.o, 
1747         strcmp.o, strcpy.o, and strlen.o.
1748
1749 Wed Jun 17 12:50:26 1998  Mark Alexander  <marka@cygnus.com>
1750
1751         * configure.in: Don't use libc/sys/sysmec for MN10200; it's
1752         been replaced with libgloss/mn10200.
1753
1754 Fri Jun 12 14:34:39 1998  Michael Meissner  <meissner@cygnus.com>
1755
1756         * libc/string/strchr.c (strchr): Make s a constant pointer to
1757         avoid warning.
1758
1759 Tue Jun  9 16:29:30 1998  Jason Molenda  (crash@bugshack.cygnus.com)
1760
1761         * configure.in (target == arm* or thumb*): Define ARM_RDI_MONITOR
1762         instead of ARM_RDP_MONITOR (sys/libc/arm/crt0.S to assume Angel
1763         board SWIs instead of Demon board SWIs).
1764
1765 Thu Jun  4 12:16:46 1998  Michael Meissner  <meissner@cygnus.com>
1766
1767         * libc/string/strncat.c (strncat):  Make -Os act the same as
1768         PREFER_SIZE_OVER_SPEED being defined.
1769
1770 Wed Jun  3 17:52:33 1998  Michael Meissner  <meissner@cygnus.com>
1771
1772         * libc/string/memchr.c (memchr): Make -Os act the same as
1773         PREFER_SIZE_OVER_SPEED being defined.
1774         * libc/string/memcmp.c (memcmp): Ditto.
1775         * libc/string/memcpy.c (memcpy): Ditto.
1776         * libc/string/memset.c (memset): Ditto.
1777         * libc/string/strcat.c (strcat): Ditto.
1778         * libc/string/strchr.c (strchr): Ditto.
1779         * libc/string/strcmp.c (strcmp): Ditto.
1780         * libc/string/strcpy.c (strcpy): Ditto.
1781         * libc/string/strlen.c (strlen): Ditto.
1782         * libc/string/strncat.c (strncat): Ditto.
1783         * libc/string/strncmp.c (strncmp): Ditto.
1784         * libc/string/strncpy.c (strncpy): Ditto.
1785
1786 Mon Jun  1 15:25:07 1998  Geoffrey Noer  <noer@cygnus.com>
1787
1788         * libc/include/sys/itimer.h: remove
1789         * libc/include/sys/time.h: itimer stuff should be here
1790
1791 Mon Jun  1 16:31:29 1998  Jeff Johnston  <jjohnstn@cygnus.com>
1792
1793         * libc/stdio/vfprintf.c (cvt): Changed code to look at sign
1794         bit instead of comparing to 0 so -0.0 can be printed correctly.
1795
1796 Sat May 30 09:33:51 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
1797
1798         * libc/stdlib/mprec.c (b2d): Inilialize d in non-VAX case too.
1799
1800 Fri May 29 22:25:10 1998  Geoffrey Noer  <noer@cygnus.com>
1801
1802         * libc/include/sys/unistd.h: fix sync() proto
1803         * libc/include/sys/fcntl.h: remove _close which is already
1804         defined in unistd.h.
1805         * libc/include/sys/time.h: add getitimer proto
1806
1807 Fri May 29 16:10:28 1998  Geoffrey Noer  <noer@cygnus.com>
1808
1809         * libc/string/strchr.c: convert arg to unsigned char
1810         * libc/include/stdlib.h: add protos for random, srandom
1811         * libc/include/sys/stat.h: add lstat proto
1812         * libc/include/sys/time.h: add setitimer proto
1813         * libc/include/sys/unistd.h: add readlink, symlink protos
1814         * libc/include/process.h: instead of including windows.h and using
1815         HANDLEs in sexec protos, just use void *s.  Need to include
1816         sys/types.h.
1817
1818 Fri May 29 03:04:29 1998  Geoffrey Noer  <noer@cygnus.com>
1819
1820         * libc/include/sys/fcntl.h: add _close proto for Cygwin32
1821
1822 Thu May 28 16:34:21 1998  Geoffrey Noer  <noer@cygnus.com>
1823
1824         * libc/include/process.h: add secure exec protos
1825
1826 Wed May 27 13:54:51 1998  Jeffrey A Law  (law@cygnus.com)
1827
1828         * libc/stdlib/dtoa.c (_dtoa_r): Use "double_union" for variables
1829         which are accessed as both doubles and integers.
1830         * libc/stdlib/mprec.c (ulp, b2d, ratio): Likewise.
1831         * libc/stdlib/strtod.c (_strtod_r): Likewise.
1832         * libc/stdlib/mprec.h: Add "union double_union" and change
1833         word0/word1 macros to use it.
1834
1835 Tue May 26 18:04:21 1998  Geoffrey Noer  <noer@cygnus.com>
1836
1837         * libc/include/sys/signal.h: add __cplusplus wrapper
1838
1839 Tue May 26 15:10:22 1998  Geoffrey Noer  <noer@cygnus.com>
1840
1841         * libc/include/sys/utime.h: new generic file that gets replaced by
1842         libc/sys/SYSDIR/sys/utime.h on systems that support the utime
1843         function.
1844         * sys/cygwin32/sys/utime.h: use _EXFUN in utime proto
1845         * libc/include/time.h: remove duplicate utime proto
1846         * libc/include/utime.h: add comment
1847
1848 Sun May 24 23:56:20 1998  Christopher Faylor <cgf@cygnus.com>
1849
1850         * libc/include/sys/time.h: Add missing include to
1851         allow use of _EXFUN.  Remove times function that is
1852         already defined in times.h.
1853
1854 Sun May 24 01:32:14 1998  Christopher Faylor <cgf@cygnus.com>
1855
1856         * libc/include/time.h: Fix typo in tzset.
1857
1858 Fri May 22 17:00:48 1998  Geoffrey Noer  <noer@cygnus.com>
1859
1860         * libc/include/sys/time.h: add missing Cygwin32 function protos
1861         * libc/include/sys/unistd.h: ditto
1862         * libc/include/time.h: ditto
1863
1864 Wed May 20 20:35:11 1998  Geoffrey Noer  <noer@cygnus.com>
1865
1866         * libc/sys/cygwin32/sys/param.h: add protected NULL def, remove
1867         FIXME.
1868         * libc/include/sys/types.h: add a new __MS_types__ section
1869         to define vm_offset_t, vm_size_t, int32_t et al, register_t,
1870         __BIT_TYPES_DEFINED__.
1871
1872 Wed May 20 18:49:21 1998  Geoffrey Noer  <noer@cygnus.com>
1873
1874         * libc/sys/cygwin32/sys/param.h: move here from winsup/include/sys
1875         since it overrides the one in libc/include/sys.  Also, start
1876         including types.h.
1877
1878 Wed May 20 14:45:40 1998  Geoffrey Noer  <noer@cygnus.com>
1879
1880         * libm/math/Makefile.in: add s_signgam.o to obj list
1881
1882 Tue May 19 11:57:11 1998  Jeff Johnston  <jjohnstn@cygnus.com>
1883
1884         * libc/include/sys/reent.h (_REENT_INIT): Initialize current locale to "C".
1885
1886 Mon May 18 22:36:12 1998  Christopher Faylor <cgf@cygnus.com>
1887
1888         * libc/include/sys/signal.h: cygwin32 exports sig{empty,add}set,
1889         so don't use defines.
1890
1891 Mon May 18 19:01:02 1998  Michael Meissner  <meissner@cygnus.com>
1892
1893         * libc/sys/d10v/crt0.S: Use correct stab for 16-bit ints.
1894
1895 Sun May 17 18:40:32 1998  Frank Ch. Eigler  <fche@cygnus.com>
1896
1897         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Accept a NULL
1898         _current_locale as default locale.
1899
1900 Sat May 16 21:59:59 1998  Bob Manson  <manson@charmed.cygnus.com>
1901
1902         * libc/stdlib/mallocr.c (mALLOc): Add explicit tests for
1903         insufficient space in a chunk.
1904
1905 Tue May 12 14:41:01 1998  Jeff Johnston  <jjohnstn@cygnus.com>
1906
1907         * configure.in (links): Added check for --enable-newlib-mb configure
1908         option which defines the MB_CAPABLE macro.
1909         * libc/locale/locale.c (_setlocale_r): Added support for setting
1910         LC_CTYPE to "C-JIS", "C-SJIS" or "C-EUCJP", when MB_CAPABLE is
1911         defined.
1912         * libc/stdlib/mbtowc_r.c (_mbtowc_r): New function _mbtowc_r that
1913         implements mbtowc() with multibyte support for JIS, SJIS, and EUC-JP.
1914         * libc/stdlib/wctomb_r.c (_wctomb_r): New function _wctomb_r that
1915         implements wctomb() with multibyte support for JIS, SJIS, and EUC-JP.
1916         * libc/stdlib/mbstowcs_r.c (_mbstowcs_r): New function _mbstowcs_r that
1917         implements mbstowcs() with multibyte support for JIS, SJIS, and EUC-JP.
1918         * libc/stdlib/wcstombs_r.c (_wcstombs_r): New function _wcstomb_r that implements
1919         wcstombs() with multibyte support for JIS, SJIS, and EUC-JP.
1920         * libc/stdlib/Makefile.in: Added new multibyte
1921         routines: _mbtowc_r(), _wctomb_r(), _mbstowcs_r(), and _wcstombs_r().
1922         * libc/include/stdlib.h: Added declarations of _mbtowc_r(), _wctomb_r(),
1923         _mbstowcs_r(), and _wcstombs_r().
1924         * libc/stdlib/mbctype.h: New internal header file that contains macros to test
1925         for JIS, SJIS, and EUC-JP characters.
1926         * libc/stdlib/mblen.c (mblen): Added code to call _mbtowc_r() if
1927         MB_CAPABLE defined.
1928         * libc/stdlib/mbtowc.c (mbtowc): Added code to call _mbtowc_r() if
1929         MB_CAPABLE defined.
1930         * libc/stdlib/wctomb.c (wctomb): Added code to call _wctomb_r() if
1931         MB_CAPABLE defined.
1932         * libc/stdlib/mbstowcs.c (mbstowcs): Added code to call _mbstowcs_r()
1933         if MB_CAPABLE defined.
1934         * libc/stdlib/wcstombs.c (wcstombs): Added code to call _wcstombs_r()
1935         if MB_CAPABLE defined.
1936         * libc/stdio/vfscanf.c (__svfscanf): Added multibyte tolerance
1937         to the format string processing when MB_CAPABLE.
1938         * libc/stdio/vfprintf.c (_VFPRINTF_R): Changed mbtowc() call to
1939         call _mbtowc_r().
1940
1941 Tue May  5 16:07:23 1998  Nick Clifton  <nickc@cygnus.com>
1942
1943         The following modifications are courtesy of Anthony Thompson,
1944         athompson@cambridge.arm.com:
1945         * libc/sys/arm/syscalls.c: Initialise and track stdin/out/err for
1946         boith RDI and RDP monitors.
1947         * libc/sys/arm/crt0.S: Call initialise_monitor_handles() for both
1948         RDI and RDP monitors.
1949
1950 Wed Apr 29 15:22:15 1998  Jeff Johnston  <jjohnstn@cygnus.com>
1951
1952         * configure.in (links): Added -DHAVE_GETTIMEOFDAY for arm and thumb.
1953         * libc/sys/arm/syscalls.c (_gettimeofday _times): Added functions.
1954         (_swiopen): Fixed open flags to treat write with append as just append.
1955         (_swilseek): Fixed lseek support to properly handle offsets from SEEK_END.
1956         * libc/sys/arm/sys/param.h: New file to override param.h for ARM.
1957
1958 Fri Apr 24 18:00:09 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
1959
1960         * libc/machine/sh/memcpy.S (L_odddst, big endian version):
1961         When needing to transfer an initial 2-byte-word, store as
1962         two single bytes.
1963
1964 Wed Apr 22 17:56:03 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
1965
1966         * libc/sys/sh/crt0.S (start): Handle __SH4_SINGLE_ONLY__ like
1967         __SH3E__ .
1968         * libc/machine/sh/memcpy.S (DELAYED_BRANCHES, SL): Likewise.
1969         * libc/include/machine/ieeefp.h (_DOUBLE_IS_32BITS): Likewise.
1970
1971 Wed Apr 22 12:28:03 1998  Michael Meissner  <meissner@cygnus.com>
1972
1973         * configure.in (target_cflags): If --enable-target-optspace, use
1974         -Os to compile newlib rather than -O2.  Default to using -Os for
1975         d10v, d30v and m32r if --{enable,disable}-target-optspace is not
1976         used.
1977
1978 Tue Apr 21 23:13:34 1998  Geoffrey Noer  <noer@cygnus.com>
1979
1980         * libc/include/machine/setjmp.h: change sigsetjmp and
1981         siglongjmp definitions to use an array instead of a struct
1982         for __CYGWIN32__
1983
1984 Tue Apr 14 11:47:47 1998  Doug Evans  <devans@canuck.cygnus.com>
1985
1986         * libc/reent/impure.c (__ATTRIBUTE_IMPURE_DATA__): Fix spelling.
1987
1988 Mon Apr  6 15:05:08 1998  Jonathan Larmour  <jlarmour@cygnus.co.uk>
1989
1990         * libc/string/strxfrm.c: fix to get correct return value
1991
1992 Wed Apr  1 16:09:05 1998  Nick Clifton  <nickc@cygnus.com>
1993
1994         * libc/sys/arm/crt0.S: Set top of RAM to be 0x800000 for PE
1995         builds.  Make mode change labels global so that they will be seen
1996         by the debugger.
1997
1998 Wed Mar 18 09:45:10 1998  Nick Clifton  <nickc@cygnus.com>
1999
2000         * configure.in (links): Do not use ARM debiugging protocols for PE
2001         builds.
2002
2003         * libc/sys/arm/syscalls.c (_sbrk): Add "_sbrk: " to error
2004         message. 
2005
2006 Fri Mar 13 11:24:34 1998  Jeff Johnston  <jjohnstn@cygnus.com>
2007
2008         * libc/stdio/findfp.c (__sinit): Made stdout default to
2009         line buffered mode as defined by ANSI.
2010
2011 Tue Mar 10 11:41:26 1997  Bob Manson  <manson@charmed.cygnus.com>
2012
2013         * libc/include/sys/itimer.h: New file.
2014
2015         * libc/signal/signal.c (__sigtramp_r,__sigtramp): New functions.
2016
2017 Mon Mar  9 14:19:26 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
2018
2019         * libc/machine/sh/memcpy.S: (_memcpy): Fix for execute/memcpy-1.c
2020         failure.
2021
2022 Fri Feb 27 13:56:10 1998  Michael Meissner  <meissner@cygnus.com>
2023
2024         * libc/machine/d30v/setjmp.S (longjmp): Fix order of parallel
2025         insns.
2026
2027 Wed Feb 25 09:29:54 1998  Nick Clifton  <nickc@cygnus.com>
2028
2029         * libc/sys/arm/syscalls.c (_open): Add varags to conform to prototype.
2030
2031 Tue Feb 24 18:00:13 1998  Michael Meissner  <meissner@cygnus.com>
2032
2033         * libc/machine/d30v/{setjmp.S,Makefile.in}: New files for D30V
2034         support.
2035
2036         * libc/include/machine/setjmp.h: Add D30V support.
2037
2038         * configure.in (d30v-*): Add d30v machine directory.
2039
2040 Mon Feb 23 09:32:58 1998  Mark Alexander  <marka@cygnus.com>
2041
2042         * configure.in: Don't use libc/sys/sysmec for MN10300; it's
2043         been replaced with libgloss/mn10300.
2044
2045 Sat Feb 21 17:44:43 1998  Geoffrey Noer  <noer@cygnus.com>
2046
2047         * libc/stdlib/mallocr.c: remove __malloc_copy routine now that
2048         it is no longer needed.
2049
2050 Thu Feb 19 16:15:10 1998  Geoffrey Noer  <noer@cygnus.com>
2051
2052         * libc/include/sys/signal.h: add sigpause proto for Cygwin32
2053
2054 Wed Feb 18 23:51:08 1998  Geoffrey Noer  <noer@cygnus.com>
2055
2056         * libc/stdio/fdopen.c (fdopen): Make all writes go to the end of
2057         the file when O_APPEND is set, wherever the EOF happens to be at
2058         that time. 
2059
2060 Wed Feb 18 23:25:02 1998  Geoffrey Noer  <noer@cygnus.com>
2061         
2062         patch from cgf@bbc.com (Christopher Faylor):
2063         * libc/stdio/freopen.c (freopen): Conform to standard UNIX
2064         convention of closing fp prior to attempting to open the file
2065         argument.  This allows correct operation when reopening
2066         stdin/stdout/stderr.  Replaces last freopen.c patch.
2067
2068 Wed Feb 18 16:27:40 1998  Geoffrey Noer  <noer@cygnus.com>
2069
2070         patch from cgf@bbc.com (Christopher Faylor):
2071         * libc/stdio/freopen.c: freopen was not preserving the fd
2072         of the stream being operated on.  This confuses programs that
2073         expect that the handles for stdout and stderr will be 1 and 2.
2074
2075 Mon Feb 16 23:34:07 1998  Andrew Cagney  <cagney@b1.cygnus.com>
2076
2077         * libc/sys/d10v/crt0.S (_start): Set PSW{SW} - select SPU.
2078
2079 Thu Feb 12 15:09:20 1998  Ranjith Kumaran <ranjith@cygnus.com>
2080
2081         * libc/sys/go32/longjmp.S: Fix longjmp to not return 0.
2082
2083 Wed Feb 11 17:50:45 1998  Jeff Johnston  <jjohnstn@cygnus.com>
2084
2085         * libc/machine/powerpc/setjmp.S (setjmp, longjmp): Alignment code
2086         altered to not use a branch.  Also added hint that last
2087         bclr in longjmp will likely result in branch.
2088         
2089
2090 Mon Feb  9 03:44:02 1998  Geoffrey Noer  <noer@cygnus.com>
2091
2092         * libc/sys/cygwin32/crt0.c: add missing args to main() extern
2093
2094 Fri Feb  6 16:32:32 1998  Nick Clifton  <nickc@cygnus.com>
2095
2096         * libc/sys/sysnecv850/crt0.S (_start): Initialise _ctbp even for
2097         v850 builds.
2098
2099         * configure.in: Add -msmall-sld to target_cflags for v850 builds. 
2100
2101 Wed Feb  4 16:56:20 1998  Jeff Johnston  <jjohnstn@cygnus.com>
2102
2103         * libc/machine/powerpc/setjmp.S (longjmp): Fixed code
2104         that loads FR14 to specify offset of 8 rather than 4
2105         so it loads from offset 96 (where setjmp stored it).
2106
2107 Tue Feb  3 18:08:34 1998  Jeff Johnston  <jjohnstn@cygnus.com>
2108
2109         * libc/machine/sh/memcpy.S: (_memcpy): Update to
2110         latest version supplied by customer.
2111         * libc/machine/sh/memset.S (_memset): Ditto.
2112
2113 Mon Feb  2 16:20:39 1998  Nick Clifton  <nickc@cygnus.com>
2114
2115         * libc/sys/sysnecv850/Makefile.in (OFILES): Add link.o (for
2116         PR14730). 
2117
2118 Mon Feb  2 15:13:26 1998  Geoffrey Noer  <noer@cygnus.com>
2119
2120         * libc/include/string.h: remove redefinition of ffs
2121
2122 Wed Jan 28 13:30:14 1998  Geoffrey Noer  <noer@cygnus.com>
2123
2124         * libc/include/sys/signal.h: include _ansi.h so _EXFUN is
2125         defined
2126
2127 Wed Jan 28 10:38:34 1998  Jeff Johnston  <jjohnstn@cygnus.com>
2128
2129         * libc/machine/tic80/setjmp.S: Adding _setjmp to allow
2130         TI Libraries to link to libc.a
2131         
2132 Sat Jan 24 10:15:56 1998  Michael Meissner  <meissner@cygnus.com>
2133
2134         * libc/include/sys/fcntl.h (_open,_fcntl): Add prototypes.
2135         * libc/include/sys/stat.h (_{,f}stat): Ditto.
2136         * libc/include/sys/wait.h (_wait): Ditto.
2137         * libc/include/sys/unistd.h (_close,_fork,_getpid): Ditto.
2138         (_link,_lseek,_read,_sbrk,_unlink,_write): Ditto.
2139
2140 Fri Jan 23 11:32:10 1998  Michael Meissner  <meissner@cygnus.com>
2141
2142         * libc/machine/d10v/setjmp.S: Change to new ABI.  Add simple
2143         minded stabs so function name shows up when running the simulator
2144         with -t.
2145         * libc/sys/d10v/{crt0,trap}.S: Ditto.
2146
2147 Thu Jan 22 15:57:14 1998  Fred Fish  <fnf@cygnus.com>
2148
2149         * libc/sys/d10v/trap.S: Change syscalls to use trap 15. 
2150         * libc/sys/d10v/crt0.S: Use R6 where we used to use R2.
2151         Use R5 where we used to use R3.
2152         
2153 Wed Jan 21 14:22:23 1998  Bill Moyer <billm@cygnus.com>
2154
2155         * libc/stdlib/getopt.c (getopt): replaced __progname
2156         with nargv[0] to improve portability to imbedded systems.
2157
2158 Thu Jan 15 12:32:38 1998  Nick Clifton  <nickc@cygnus.com>
2159
2160         * libc/sys/arm/syscalls.c (initialise_angel_handles): Applied
2161         patch supplied by Tont.Thompson@arm.com to fix the creation of the
2162         stdout file.
2163
2164 Wed Jan 14 13:00:19 1998  Ian Lance Taylor  <ian@cygnus.com>
2165
2166         * libc/stdio/tmpnam.c (worker): Generate a different file name
2167         each time.
2168
2169         * libc/posix/popen.c (popen): If __CYGWIN32__, and execing /bin/sh
2170         fails, try an execlp for sh.
2171
2172         * host/any (INCLUDES): If target_os is cygwin32, then add a -I
2173         option for the winsup include directory.
2174
2175 Wed Jan  7 17:02:58 1998  Nick Clifton  <nickc@cygnus.com>
2176
2177         * libc/sys/arm/syscalls.c: Applied patches for Angel based remote
2178         debugging interface from Tony.Thompson@arm.com.
2179         
2180         * libc/sys/arm/crt0.S (_mainCRTStartup): ditto.
2181         * libc/sys/arm/swi.h: ditto.
2182
2183 Tue Jan  6 14:15:10 1998  Geoffrey Noer  <noer@cygnus.com>
2184
2185         * libc/sys/cygwin32/sys/dirent.h: add __d_dirhash field to
2186         DIR struct used for readdir hashes.
2187
2188 Thu Jan  1 11:22:22 1998  Jeffrey A Law  (law@cygnus.com)
2189
2190         * libc/string/strchr.c: Use "unsigned chars" as necessary.
2191
2192 Wed Dec 31 04:25:30 1997  Jeffrey A Law  (law@cygnus.com)
2193
2194         * libc/stdlib/mallocr.c (idx2binblock): Don't lose on 16bit
2195         integer targets.
2196
2197 Sat Dec 13 15:11:06 1997  Ian Lance Taylor  <ian@cygnus.com>
2198
2199         * libc/stdlib/mallocr.c (__malloc_copy): New function, compiled if
2200         INTERNAL_NEWLIB and __CYGWIN32__ and DEFINE_MALLOC.
2201         * libc/include/malloc.h: Add extern "C" if __cplusplus.
2202         (__malloc_copy): Declare.
2203
2204 Wed Dec 10 12:15:54 1997  Ian Lance Taylor  <ian@cygnus.com>
2205
2206         * libc/stdlib/mallocr.c: If INTERNAL_NEWLIB, include
2207         <sys/config.h>.
2208         (POINTER_UINT): Define.
2209         (DEFAULT_TRIM_THRESHOLD): Mark constants as long.
2210         (MALLOC_ALIGNMENT): Don't define if already defined.
2211         (malloc_extend_top): Cast pointers to POINTER_UINT, not unsigned
2212         long.
2213
2214 Tue Dec  9 19:23:42 1997  Michael Meissner  <meissner@cygnus.com>
2215
2216         * libc/string/memset.c (memset): Fiddle with code so that the long
2217         value being stored is not a stack value.  Unroll storing longs 4
2218         times.
2219
2220 Tue Dec  9 14:13:18 1997  Jeff Johnston  <jjohnstn@cygnus.com>
2221
2222         * Reduce code size for libm modules.
2223         * libm/math/w_sqrt.c (sqrt): Remove call to kernel_standard
2224         and simply move code into sqrt.
2225         * libm/math/wrf_lgamma.c (lgammaf_r): Likewise.
2226         * libm/math/wr_lgamma.c (lgamma_r): Likewise.
2227         * libm/math/wrf_gamma.c (gammaf_r): Likewise.
2228         * libm/math/wr_gamma.c (gamma_r): Likewise.
2229         * libm/math/wf_sinh.c (sinfh): Likewise.
2230         * libm/math/w_sinh.c (sinh): Likewise.
2231         * libm/math/wf_scalb.c (scalbf): Likewise.
2232         * libm/math/w_scalb.c (scalb): Likewise.
2233         * libm/math/wf_remainder.c (remainderf): Likewise.
2234         * libm/math/w_remainder.c (remainder): Likewise.
2235         * libm/math/wf_pow.c (powf): Likewise.
2236         * libm/math/w_pow.c (pow): Likewise.
2237         * libm/math/wf_log10.c (log10f): Likewise.
2238         * libm/math/w_log10.c (log10): Likewise.
2239         * libm/math/wf_log.c (logf): Likewise.
2240         * libm/math/w_log.c (log): Likewise.
2241         * libm/math/w_lgamma.c (lgamma): Likewise.
2242         * libm/math/wf_lgamma.c (lgammaf): Likewise.
2243         * libm/math/wf_jn.c (jnf): Likewise.
2244         * libm/math/w_jn.c (jn): Likewise.
2245         * libm/math/wf_j1.c (j1f): Likewise.
2246         * libm/math/w_j1.c (j1): Likewise.
2247         * libm/math/wf_j0.c (j0f): Likewise.
2248         * libm/math/w_j0.c (j0): Likewise.
2249         * libm/math/wf_hypot.c (hypotf): Likewise.
2250         * libm/math/w_hypot.c (hypot): Likewise.
2251         * libm/math/wf_gamma.c (gammaf): Likewise.
2252         * libm/math/w_gamma.c (gamma): Likewise.
2253         * libm/math/wf_fmod.c (fmodf): Likewise.
2254         * libm/math/w_fmod.c (fmod): Likewise.
2255         * libm/math/wf_exp.c (expf): Likewise.
2256         * libm/math/w_exp.c (exp): Likewise.
2257         * libm/math/wf_cosh.c (coshf): Likewise.
2258         * libm/math/w_cosh.c (cosh): Likewise.
2259         * libm/math/wf_atanh.c (atanhf): Likewise.
2260         * libm/math/w_atanh.c (atanh): Likewise.
2261         * libm/math/wf_atan2.c (atan2f): Likewise.
2262         * libm/math/w_atan2.c (atan2): Likewise.
2263         * libm/math/wf_asin.c (asinf): Likewise.
2264         * libm/math/w_asin.c (asin): Likewise.
2265         * libm/math/wf_acosh.c (acoshf): Likewise.
2266         * libm/math/w_acosh.c (acosh): Likewise.
2267         * libm/math/wf_acos.c (asocf): Likewise.
2268         * libm/math/w_acos.c (acos): Likewise.
2269         * libm/math/wf_sqrt.c (sqrtf): Likewise.
2270         * libm/math/k_standard.c (_k_standard): Don't require SVID behavior
2271         for embedded systems.
2272
2273 Mon Dec  8 12:12:58 1997  Ian Lance Taylor  <ian@cygnus.com>
2274
2275         * libc/stdlib/mallocr.c (malloc_extend_top): Add patch from Doug
2276         Lea in case of a foreign sbrk.
2277
2278 Fri Dec  5 23:27:28 1997  Ian Lance Taylor  <ian@cygnus.com>
2279
2280         Incorporate Doug Lea's malloc:
2281         * libc/stdlib/mallocr.c: Completely replaced.
2282         * libc/stdlib/malloc.c: Document malloc_usable_size and memalign.
2283         (realloc): Remove.
2284         * libc/stdlib/calloc.c (calloc): Just call _calloc_r.
2285         * libc/stdlib/mstats.c: Document mallinfo, malloc_stats, and
2286         mallopt.
2287         (mallinfo, malloc_stats, mallopt): New functions.
2288         (_mstats_r): Just call _malloc_stats_r.
2289         * libc/stdlib/malign.c: New file.
2290         * libc/stdlib/mlock.c: New file.
2291         * libc/stdlib/msize.c: New file.
2292         * libc/stdlib/mtrim.c: New file.
2293         * libc/stdlib/realloc.c: New file.
2294         * libc/stdlib/valloc.c: New file.
2295         * libc/stdlib/malloc.h: Remove.
2296         * libc/stdlib/callocr.c: Remove.
2297         * libc/stdlib/Makefile.in (OFILES): Add cfreer.o, freer.o,
2298         malign.o, malignr.o, mallinfor.o, malloptr.o, mallstatsr.o,
2299         mlock.o, msize.o, msizer.o, mtrim.o, pvallocr.o, realloc.o,
2300         reallocr.o, valloc.o, vallocr.o.
2301         (CHEWOUT_FILES): Add mlock.def, mstats.def.
2302         (MALLOC_CFLAGS): New variable.
2303         (mallocr.o): New target, build from mallocr.c.
2304         (freer.o, reallocr.o, callocr.o, cfreer.o, malignr.o): Likewise.
2305         (vallocr.o, pvallocr.o, mallinfor.o, mallstatsr.o): Likewise.
2306         (msizer.o, malloptr.o): Likewise.
2307         (malign.o, mlock.o, msize.o, mtrim.o, realloc.o): New targets.
2308         (valloc.o): New target.
2309         * libc/stdlib/stdlib.tex: Include mlock.def and mstats.def.
2310         * libc/include/malloc.h: Declare struct mallinfo, and new
2311         routines.
2312         * libc/include/stdlib.h (cfree): Correct declaration.
2313
2314 Tue Dec  2 10:12:16 1997  Nick Clifton  <nickc@cygnus.com>
2315
2316         * libc/include/machine/setjmp.h: Add support for Thumb target.
2317
2318         * libc/include/machine/ieeefp.h: Add support for Thumb target.
2319
2320         * configure.in (links): Add support for Thumb target.
2321
2322 Wed Nov 26 09:56:17 1997  Nick Clifton  <nickc@cygnus.com>
2323
2324         * libc/sys/arm/setjmp.S: Updated with version from branch.
2325
2326 Thu Nov 20 01:21:43 1997  Geoffrey Noer  <noer@cygnus.com>
2327
2328         * libc/include/stdio.h: add POSIX-required define L_ctermid
2329         for ctermid
2330
2331 Wed Nov 19 16:11:40 1997  Michael Meissner  <meissner@cygnus.com>
2332
2333         * configure.in (d30v-*-*): Define ABORT_MESSAGE, SMALL_MEMORY, in
2334         addition to MISSING_SYSCALL_NAMES.
2335
2336 Mon Nov 17 20:05:05 1997  J"orn Rennecke <amylaar@cygnus.co.uk>
2337
2338         * libc/include/sys/config.h: (UINT_MAX, for D10V):  Make unsigned.
2339
2340 Mon Nov 10 22:26:55 1997  Geoffrey Noer  <noer@cygnus.com>
2341
2342         * libc/include/string.h: change strsignal proto to return
2343         a char *.  This eliminates compile problems in gdb resulting
2344         from gdb's definition of strsignal in defs.h.
2345
2346 Mon Nov 10 17:11:08 1997  Geoffrey Noer  <noer@cygnus.com>
2347
2348         * libc/sys/cygwin32/sys/utime.h: new (moved here from
2349         winsup/include) so as not to conflict with the one in
2350         libc/include.
2351         * libc/include/string.h: add protos for strsignal, strtosigno
2352
2353 Mon Nov 10 13:49:54 1997  Michael Meissner  <meissner@cygnus.com>
2354
2355         * libc/include/sys/config.h: Define __IEEE_BIG_ENDIAN if d30v.
2356
2357         * configure.in (d30v-*-*): Add configuration.
2358
2359 Thu Oct 30 14:01:23 1997  Nick Clifton  <nickc@cygnus.com>
2360
2361         * configure.in (links): Add -DARM_RD[P|I]_MONITOR to target_cflags
2362         to select which kind of debug monitor is in use for an ARM target.
2363
2364         * libc/sys/arm/crt0.S: New version: Supports Thumb startups and
2365         Angel and Demon debug monitors.  Part of this code was supplied by
2366         Tony Thompson at ARM: athompso@arm.com.
2367
2368 Fri Oct 24 18:57:05 1997  Jeffrey A Law  (law@cygnus.com)
2369
2370         * strncat.c (strncat): Don't call strncpy; strncay has the wrong
2371         semantics when the count is greater than the length of the second
2372         source string.
2373
2374 Thu Oct 23 01:37:41 1997  Geoffrey Noer  <noer@cygnus.com>
2375
2376         * libc/include/sys/signal.h: reorder CYGWIN32 signal numbers
2377         * libc/include/sys/unistd.h: add protos for usleep, truncate,
2378         truncate and ftruncate take off_t, not size_t
2379
2380 Tue Oct 21 18:42:00 1997  Jim Wilson  <wilson@cygnus.com>
2381
2382         * libc/string/strcat.c (strcat): Add missing comment end.
2383         * libc/string/strncat.c (strncat): Likewise.
2384
2385 Tue Oct 21 17:23:34 1997  Nick Clifton  <nickc@cygnus.com>
2386
2387         * configure.in (links): Define PREFER_SIZE_OVER_SPEED for v850
2388         targets. 
2389         * libc/string/{memchr.c, memcmp.c, memcpy.c}:   Add space
2390         optimised version which is selected if PREFER_SIZE_OVER_SPEED is
2391         defined.  
2392         * libc/string/{memset.c, strcat.c, strchr.c}: Likewise.
2393         * libc/string/{strcmp.c, strcpy.c, strlen.c}: Likewise.
2394         * libc/string/{strncat.c, strncmp.c, strncpy.c}: Likewise.
2395
2396 Mon Oct 13 15:12:35 1997  Ian Lance Taylor  <ian@cygnus.com>
2397
2398         * libc/include/sys/param.h (BIG_ENDIAN): Define if __i386__.
2399         (LITTLE_ENDIAN, BYTE_ORDER): Likewise.
2400
2401 Thu Oct  9 13:54:44 1997  Doug Evans  <dje@canuck.cygnus.com>
2402
2403         * libc/machine/i386/setjmp.S: New file.
2404         * libc/machine/i386/Makefile.in: Delete COPYOFILES.
2405         (OFILES): Add setjmp.o.
2406         (setjmp.o): Add rule for.
2407         * configure.in: Don't set machine_dir for *-*-{go32,sco*,cygwin32}.
2408
2409 Tue Oct  7 14:01:29 1997 Bill Moyer     (billm@cygnus.com)
2410                          Jeffrey A Law  (law@cygnus.com)
2411
2412         * libc/string/{memchr.c, memcmp.c, memcpy.c}: Reimplement to run faster.
2413         * libc/string/{memset.c, strcat.c, strchr.c}: Likewise.
2414         * libc/string/{strcmp.c, strcpy.c, strlen.c}: Likewise.
2415         * libc/string/{strncat.c, strncmp.c, strncpy.c}: Likewise.
2416
2417 Mon Oct  6 14:07:59 1997  Nick Clifton  <nickc@cygnus.com>
2418
2419         * libc/sys/sysnecv850/Makefile.in (crt0.o trap.o): Explicit
2420         rules. 
2421
2422         * libc/include/sys/config.h: Use __v850 to select v850
2423         endianness. 
2424
2425         * libc/include/machine/setjmp.h: Use __v850 to select v850 jump
2426         buffer size.
2427
2428         * libc/include/machine/ieeefp.h: Use __v850 to select v850
2429         endianness. 
2430
2431 Thu Sep 25 14:11:37 1997  Geoffrey Noer  <noer@cygnus.com>
2432
2433         * libc/stdlib/setenv.c: change unsetenv definition to match
2434         style of setenv (with _DEFUN).  The string should be a const.
2435         * libc/include/stdlib.h: unsetenv proto should return void.
2436
2437 Tue Sep 23 18:17:20 1997  Geoffrey Noer  <noer@cygnus.com>
2438
2439         * libc/include/stdlib.h: define unsetenv proto for __CYGWIN32__
2440
2441 Thu Sep 18 12:50:15 1997  Angela Marie Thomas (angela@cygnus.com)
2442
2443         * libc/stdio/glue.h: remove.
2444         * libc/stdio/findfp.c, libc/stdio/fwalk.c: remove #include "glue.h"
2445         * libc/stdio/Makefile.in: remove glue.h dependencies
2446
2447 Wed Sep 17 17:42:27 1997  Nick Clifton  <nickc@cygnus.com>
2448
2449         * libc/sys/sysnecv850/crt0.S: Created V850e version.
2450         
2451 Tue Sep  9 10:40:57 1997  Doug Evans  <dje@canuck.cygnus.com>
2452
2453         * configure.in (target_cpu): Add `arc'.
2454
2455 Tue Sep  9 10:40:42 1997  Joel Sherrill  <joel@OARcorp.com>
2456
2457         * newlib/configure.in (*-*-rtems*): Add -DSIGNAL_PROVIDED and 
2458           -DREENTRANT_SYSCALLS_PROVIDED to the target_cflags.
2459         * newlib/libc/include/sys/errno.h: Add ENOTSUP.
2460         * newlib/libc/reent/reent.c: Add _wrapup_reent.
2461         * newlib/libc/sys/rtems/sys/types.h: Avoid redefinitions for go32.
2462
2463 Sun Sep  7 16:41:41 1997  Gavin Koch  <gavin@cygnus.com>
2464
2465         * libc/machine/mips/setjmp.S: Handle mips16 builds.
2466
2467 Thu Aug 21 20:05:38 1997  Ian Lance Taylor  <ian@cygnus.com>
2468
2469         * libc/include/stdio.h (siprintf): Declare.
2470
2471 Mon Aug 18 11:19:13 1997  Nick Clifton  <nickc@cygnus.com>
2472
2473         * libc/sys/sysnecv850/Makefile.in (.c.o): Add rule that includes
2474         TARGET_CFLAGS and NEWLIB_FLAGS.
2475
2476 Mon Aug 18 11:15:43 1997  Nick Clifton  <nickc@cygnus.com>
2477
2478         * configure.in (links): Add support for v850ea target.
2479
2480 Mon Aug 18 11:15:43 1997  Nick Clifton  <nickc@cygnus.com>
2481
2482         * configure.in (links): Add support for v850e target.
2483
2484 Wed Aug 13 19:16:54 1997  Nick Clifton  <nickc@cygnus.com>
2485
2486         * libc/sys/sysnecv850/crt0.S: Remove initial setting of r0 to 0.
2487
2488 Mon Aug 11 15:49:54 1997  Doug Evans  <dje@canuck.cygnus.com>
2489
2490         * configure.in (arc-*-*): Add support for.
2491         * libc/include/machine/ieeefp.h (__arc__): Add support for the ARC.
2492
2493 Fri Jul 25 17:37:41 1997  J"orn Rennecke <amylaar@cygnus.co.uk>
2494
2495         * libc/sys/sh/crt0.S (start): Add fpscr initialization for SH4.
2496
2497 Thu Jul 24 18:32:17 1997  Geoffrey Noer  <noer@cygnus.com>
2498
2499         * libc/stdlib/bsearch.c (bsearch): remove last unneeded
2500         comparison which accesses invalid memory when the key is
2501         larger than the last member of the array.
2502         * libc/include/machine/setjmp.h: add sigsetjmp, siglongjmp
2503         for CYGWIN32
2504         * libc/include/sys/unistd.h: add _POSIX defines for CYGWIN32
2505
2506 Tue Jul 22 16:03:06 1997  Ian Lance Taylor  <ian@cygnus.com>
2507
2508         * libc/include/stdlib.h (realpath): Declare if __CYGWIN32__ and
2509         not _STRICT_ANSI.
2510
2511 Thu Jul 10 15:11:52 1997  Doug Evans  <dje@canuck.cygnus.com>
2512
2513         * libm/math/k_standard.c (__kernel_standard): Call fflush(stdout)
2514         ifndef _USE_WRITE, instead of ifdef _USE_WRITE.
2515
2516 Thu Jul 10 16:00:09 1997  Mike Meissner  <meissner@cygnus.com>
2517
2518         * libc/machine/tic80/setjmp.S (setjmp,longjmp): Use ld.d and st.d
2519         to load/store memory.
2520
2521 Mon Jul  7 17:38:17 1997  Ian Lance Taylor  <ian@cygnus.com>
2522
2523         * libc/include/sys/fcntl.h: Define _O_* symbols with leading
2524         underscores if _WIN32.
2525
2526 Wed Jul  2 10:07:20 1997  Doug Evans  <dje@canuck.cygnus.com>
2527
2528         * libm/math/k_standard.c (__kernel_standard): Delete reentrancy
2529         support ifdef _USE_WRITE missed in last change.
2530         From Anders Blomdell <anders.blomdell@control.lth.se>.
2531
2532 Wed Jun 25 10:18:49 1997  Doug Evans  <dje@canuck.cygnus.com>
2533
2534         * libc/stdio/tmpnam.c (worker): Handle _open_r being stubbed out.
2535         (_tmpnam_r, _tempnam_r): Update.
2536
2537 Wed Jun 25 00:16:55 1997  Mark Alexander  <marka@cygnus.com>
2538
2539         * libc/machine/sparc/setjmp.S: New file.
2540         * libc/machine/sparc/Makefile.in: Add setjmp.
2541         * libc/include/machine/setjmp.h: Increase jmpbuf size for sparc.
2542
2543 Tue Jun 24 23:27:38 1997  Mark Alexander  <marka@cygnus.com>
2544
2545         * libc/include/machine/setjmp.h: Use __TIC80__ instead of __tic80__.
2546
2547 Tue Jun 24 14:53:40 1997  Doug Evans  <dje@canuck.cygnus.com>
2548
2549         From Joel Sherrill <joel@oarcorp.com>.
2550         * libc/stdlib/getenv.c (_findenv): Avoid dereferencing null `environ'.
2551
2552         Add rtems support.  From Joel Sherrill <joel@oarcorp.com>.
2553         * configure.in: Recognize *-*-rtems*.
2554         * libc/sys/rtems/{Makefile.in,crt0.c,dummysys.c}: New files.
2555         * libc/sys/rtems/sys/{features.h,sched.h,siginfo.h,signal.h,
2556         time.h,times.h,types.h}: New files.
2557         * libc/sys/rtems/include/{limits.h,signal.h,time.h}. New files.
2558
2559 Fri Jun 20 11:13:16 1997  Geoffrey Noer  <noer@cygnus.com>
2560
2561         patch from sos@prospect.com.ru (Sergey Okhapkin):
2562         * include/sys/wait.h: correct operator precidence bug
2563         in WIFSIGNALED
2564
2565 Wed Jun 18 22:08:27 1997  Geoffrey Noer  <noer@cygnus.com>
2566
2567         * libc/include/stdlib.h: remove unsetenv proto since it conflicts
2568         with newlib's unsetenv function
2569         * libc/sys/cygwin32/sys: new directory for includes
2570         * libc/sys/cygwin32/sys/dirent.h: move cygwin32's dirent.h
2571         here from winsup/include/sys
2572
2573 Mon Jun 16 21:02:22 1997  Geoffrey Noer  <noer@cygnus.com>
2574
2575         * libc/include/sys/unistd.h: _exit should only be
2576         labelled noreturn when not __CYGWIN32__
2577         * libc/include/stdlib.h: for __CYGWIN32__, add proto for unsetenv
2578         * libc/include/sys/signal.h: add SIGIO to _WIN32 list and
2579         increment NSIG
2580
2581 Thu Jun 12 18:52:41 1997  Ian Lance Taylor  <ian@cygnus.com>
2582
2583         * libc/include/sys/time.h: Only define timeval and timezone if
2584         _GNU_H_WINDOWS32_SOCKETS is not defined.
2585         * libc/include/sys/stat.h: If _WIN32, define _S_IFMT, etc.
2586
2587 Wed Jun 11 09:46:26 1997  Jeffrey A Law  (law@cygnus.com)
2588
2589         * libc/machine/mn10200/setjmp.S: Implement setjmp/longjmp
2590         * libc/machine/mn10300/setjmp.S: Likewise.
2591
2592         * libc/sys/sysmec/crt0.S: Use "call" instead of "calls" for
2593         the mn10300 (more relaxing opportunities).
2594
2595 Tue Jun 10 17:24:45 1997  Mike Meissner  <meissner@cygnus.com>
2596
2597         * configure.in (powerpc*-*-{eabi,elf,linux,rtems,sysv,solaris}):
2598         Build libraries with -mstrict-align.
2599
2600 Fri Jun  6 14:07:59 1997  Ian Lance Taylor  <ian@cygnus.com>
2601
2602         * libc/string/strlwr.c: New file.
2603         * libc/string/strupr.c: New file.
2604         * libc/include/string.h: Declare strlwr and strupr.
2605         * libc/string/Makefile.in (OFILES): Add strlwr.o and strupr.o.
2606         (CHEWOUT_FILES): Add strlwr.def and strupr.def.
2607         (strlwr.o, strupr.o): New targets.
2608         * libc/string/strings.tex: Include strlwr and strupr docs.
2609
2610         * libc/include/sys/types.h: Don't define u_char, et. al., if
2611         _GNU_H_WINDOWS32_SOCKETS is defined.  Likewise for fd_set,
2612         et. al.  Make FD_SETSIZE default 64 rather than 60.  Define
2613         _types_fd_set rather than fd_set, and define fd_set as a macro.
2614
2615         * libc/include/malloc.h: New file.
2616
2617         * libc/include/string.h: Define strcmpi, stricmp, strncmpi, and
2618         strnicmp if they are not already defined.
2619
2620         * libc/include/time.h: If __CYGWIN32__, declare tzset and define
2621         _timezone, _daylight, and _tzname.
2622
2623 Wed Jun  4 12:51:16 1997  Doug Evans  <dje@canuck.cygnus.com>
2624
2625         * configure.in: Sort all configuration tables.
2626
2627         From Joel Sherrill <joel@oarcorp.com>
2628         * Makefile.in (stmp-targ-include): Copy $(sys_dir)/include/*.h.
2629
2630 Tue Jun  3 14:47:46 1997  Ian Lance Taylor  <ian@cygnus.com>
2631
2632         * libc/include/sys/signal.h: Don't include <sys/types.h>.  Just
2633         use int when declaring kill.
2634
2635         * libc/include/sys/timeb.h: New file.
2636
2637 Mon Jun  2 12:06:58 1997  Geoffrey Noer  <noer@cirdan.cygnus.com>
2638
2639         * libc/include/sys/time.h: add itimer support for Cygwin32
2640
2641 Mon May 19 11:56:46 1997  Mike Meissner  <meissner@cygnus.com>
2642
2643         * libc/stdlib/abort.c (abort): If ABORT_MESSAGE is defined, write
2644         out a message that abort was called to stderr.
2645
2646 Fri May 16 15:02:59 1997  Bob Manson  <manson@charmed.cygnus.com>
2647
2648         * libc/sys/sysmec/fstat.c (_fstat): Set st_blksize to 4096
2649         so that libio doesn't freak.
2650
2651         * libc/sys/sysmec/sbrk.c (_sbrk): The argument is a size_t, not
2652         int.
2653
2654         * libc/stdlib/mallocr.c (_morecore_r): Use size_t for
2655         memory sizes, not int.
2656
2657 Wed May 14 21:16:58 1997  Bob Manson  <manson@charmed.cygnus.com>
2658
2659         * libm/math/ef_hypot.c: Use long constants where
2660         appropriate.
2661         * libm/math/ef_sqrt.c: Ditto.
2662
2663         * libc/sys/sysmec/times.c(_times): Change to times.
2664
2665         * libc/sys/sysmec/read.c(_read): The third argument is
2666         size_t.
2667         * libc/sys/sysmec/write.c (_write): Ditto.
2668
2669         * libc/sys/sysmec/lseek.c: Include unistd.h for off_t.
2670         (_lseek): It's off_t for the second argument.
2671
2672 Wed May 14 15:23:36 1997  Mike Meissner  <meissner@cygnus.com>
2673
2674         * libc/include/sys/config.h (__IEEE_LITTLE_ENDIAN): Define here,
2675         as well as machine/ieeefp.h.
2676
2677 Thu May  8 15:47:25 1997  Geoffrey Noer  <noer@cygnus.com>
2678
2679         * libc/include/sys/signal.h: add signal protos for winsup
2680         functions (when __CYGWIN32__), include types.h
2681         * libc/include/sys/types.h: Change __go32_types__ internal
2682         define to __MS_types__ since it's used for more than just
2683         GO32 configs.  Define this if GO32, __MSDOS__, or _WIN32 are
2684         defined.
2685         * libc/include/sys/unistd.h: add ftruncate proto for
2686         winsup functions (when __CYGWIN32__)
2687
2688 Fri Apr 25 10:10:16 1997  Doug Evans  <dje@canuck.cygnus.com>
2689
2690         * libc/sys/h8300hms/sbrk.c (stack_ptr): Add definition.
2691
2692 Thu Apr 24 15:46:51 1997  Mike Stump  <mrs@cygnus.com>
2693
2694         * libc/include/machine/setjmp.h: Add tic80 support.
2695         * libc/machine/tic80/setjmp.S: Likewise.
2696
2697 Tue Apr 22 16:54:40 1997  Geoffrey Noer  <noer@pizza.cygnus.com>
2698
2699         * libc/sys/cygwin32/crt0.c: Add reference to main() so we can
2700         link programs from libraries only (such as in the X11
2701         distribution)
2702
2703 Mon Apr 21 15:02:12 1997  Fred Fish  <fnf@cygnus.com>
2704
2705         * libc/sys/arm/syscalls.c (signal): Remove stub, signal()
2706         supplied elsewhere in newlib.
2707
2708 Mon Apr 14 16:25:55 1997  Ian Lance Taylor  <ian@cygnus.com>
2709
2710         * Makefile.in (INSTALL): Change install.sh to install-sh.
2711
2712 Fri Apr 11 17:04:02 1997  Jason Molenda  (crash@godzilla.cygnus.co.jp)
2713
2714         * README: update WWW address for on-line documentation.
2715
2716 Wed Apr  9 00:38:13 1997  Geoffrey Noer  <noer@cygnus.com>
2717
2718         * libc/include/sys/signal.h: for _WIN32, define SIGCONT and
2719         increment NSIG
2720
2721 Mon Apr  7 23:54:00 1997  Jeffrey A Law  (law@cygnus.com)
2722
2723         * libc/sys/sysmec/crt0.S: Update for new calling conventions on the
2724         mn10300.
2725         * libc/sys/sysmec/trap.S: Don't compare a register to itself.
2726
2727 Tue Mar 25 08:47:43 1997  Jeffrey A Law  (law@cygnus.com)
2728
2729         * libc/sys/arm/syscalls.c: Fix/add stack/heap collision detection.
2730         * libc/sys/d10v/syscalls.c: Likewise.
2731         * libc/sys/h8300hms/sbrk.c: Likewise.
2732         * libc/sys/h8500hms/syscalls.c: Likewise.
2733         * libc/sys/m88kbug/syscalls.c: Likewise.
2734         * libc/sys/sh/syscalls.c: Likewise.
2735         * libc/sys/sysmec/sbrk.c: Likewise.
2736         * libc/sys/sysnecv850/sbrk.c: Likewise.
2737         * libc/sys/w65/syscalls.c: Likewise.
2738         * libc/sys.tex: Update sbrk sample code to include stack/heap collision.
2739
2740 Tue Mar 18 14:14:34 1997  Jeffrey A Law  (law@cygnus.com)
2741
2742         * libc/sys/sysmec/trap.S: Use "syscall" to trigger an
2743         emulated syscall instead of "trap".
2744
2745 Fri Mar 14 11:26:13 1997  Michael Meissner  <meissner@cygnus.com>
2746
2747         * libc/sys/d10v/trap.S (__trap0): Use trap 15 for system calls,
2748         not trap 0.
2749
2750 Sun Mar  9 23:27:04 1997  Doug Evans  <dje@seba.cygnus.com>
2751
2752         * configure.in (m32r-*-*): Add -msdata=sdata to target_cflags.
2753
2754 Sat Mar  8 09:05:01 1997  Fred Fish  <fnf@cygnus.com>
2755
2756         * libc/machine/arm/Makefile.in: Fix comment, is for "arm"
2757         not "sh".
2758         * libc/machine/m32r/Makefile.in: Fix comment, is for "m32r"
2759         not "d10v".
2760         * libc/sys/tic80/crt0.c: New file for TIc80.
2761         * libc/sys/tic80/Makefile.in: New file for TIc80.
2762         * libc/machine/tic80/Makefile.in: New file for TIc80.
2763
2764 Wed Mar  5 11:32:12 1997  J.T. Conklin  <jtc@cygnus.com>
2765
2766         * libc/machine/sh/memcpy.S: New file.
2767         * libc/machine/sh/memset.S: New file.
2768         * libc/machine/sh/Makefile.in (OFILES): Add memcpy.o and memset.o
2769
2770 Thu Feb 27 16:27:55 1997  Fred Fish  <fnf@cygnus.com>
2771
2772         * libc/include/machine/ieeefp.h (_IEEE_LITTLE_ENDIAN): Define
2773         for TIc80.
2774
2775 Wed Feb 26 13:43:39 1997  Jeffrey A Law  (law@cygnus.com)
2776
2777         * libc/sys/sysmec/crt0.S: Handle new calling conventions for
2778         the mn10200.
2779
2780 Wed Feb 26 07:11:03 1997  Michael Meissner  <meissner@cygnus.com>
2781
2782         * libc/machine/powerpc/setjmp.S (longjmp): Correct return status
2783         (patch from andrew@pogo.WV.TEK.COM).
2784
2785 Fri Feb 14 11:49:28 1997  Doug Evans  <dje@canuck.cygnus.com>
2786
2787         * libc/machine/m32r/setjmp.S (setjmp): Save r12.
2788         (longjmp): Restore r12. Fix code that handles returning 1 if passed 0.
2789
2790 Mon Feb 10 10:02:34 1997  Fred Fish  <fnf@cygnus.com>
2791
2792         * configure.in:  Add cases for "tic80" to set machine_dir,
2793         sys_dir, and syscall_dir.
2794
2795 Sun Feb  2 17:57:15 1997  Geoffrey Noer  <noer@cygnus.com>
2796
2797         * libc/sys/cygwin32/crt0.c: initialize floating pt registers
2798
2799 Wed Jan 29 15:57:38 1997  Geoffrey Noer  <noer@cygnus.com>
2800
2801         * libc/include/math.h: avoid conflicts with ANSI C++ <exception>
2802
2803 Mon Jan 27 12:50:01 1997  Doug Evans  <dje@seba.cygnus.com>
2804
2805         * libc/machine/m32r/setjmp.S: Use proper comment delimiter.
2806         Use proper constant prefix.
2807
2808 Fri Jan 24 10:59:04 1997  Jeffrey A Law  (law@cygnus.com)
2809
2810         * libc/sys/sysmec/*.c: Don't cast args to syscall to integers,
2811         that loses on the mn10200 where ints and pointers are different
2812         sizes.
2813
2814 Tue Jan 14 13:29:55 PST 1997  Jeremy Allison <jra@cygnus.com>
2815
2816         * configure.in: Added -DSIGNAL_PROVIDED to cygwin32
2817         target as signal is provided in winsup.
2818
2819 Tue Jan 14 11:10:13 1997  Jeremy Allison <jra@cygnus.com>
2820
2821         * libc/include/sys/process.h: Corrected const definitions
2822         in spawn functions. Added cwait.
2823
2824 Thu Jan  2 12:22:41 1997  Jeffrey A Law  (law@cygnus.com)
2825
2826         * libc/include/machine/ieeefp.h: mn10200 uses 16bit ints and 32bit
2827         doubles.
2828         * libc/include/sys/config.h: Similarly.
2829
2830 Tue Dec 31 18:36:14 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
2831
2832         * configure.in (sparc-sun-sunos*): Add -DSIGNAL_PROVIDED to the
2833         target_cflags.
2834         (i[3456]86-*-sco*): Ditto.
2835
2836         * libc/signal/Makefile.in (OFILES): Add signal.o.
2837         (CFILES): Add signal.c.
2838
2839         * libc/signal/raise.c (_raise_r): Only compile code if
2840         SIGNAL_PROVIDED is defined.
2841
2842         * libc/signal/signal.c: Redo whole file so that it works with
2843         current newlib.  Use _kill_r if no signal handler provided.
2844
2845         * libc/sys/{go32,sparc64,sysmec}/Makefile.in: Delete raise and
2846         signal stubs.
2847         * libc/sys/sysvnecv70/Makefile.in: Ditto.
2848         * libc/sys/sysnecv850/Makefile.in: Ditto.
2849
2850         * libc/sys/{go32,sparc64}/signal.c: Delete, stub no longer used.
2851         * libc/sys/sysmec/{raise,signal}.c: Ditto.
2852         * libc/sys/sysvnecv70/signal.s: Ditto.
2853         * libc/sys/sysnecv850/raise.c: Ditto.
2854
2855         * libc/sys/sysnecv850/kill.c (_kill): Encode signal # so that
2856         simulator and debugger can tell the difference between a signal
2857         being raised and an exit system call.
2858
2859         * NEWS: Document software signals being provided.
2860
2861 Mon Dec 23 11:54:19 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
2862
2863         * libc/reent/impure.c (_REENT_ATTR): Delete in favor of
2864         __ATTRIBUTE_IMPURE_PTR__.  Move PowerPC definition to
2865         include/sys/config.h.
2866         (impure_data): Use __ATTRIBUTE_IMPURE_DATA__ for attributes.
2867         Change from 'inpure_data'.
2868         (_impure_ptr): Use __ATTRIBUTE_IMPURE_PTR__ for attributes.  Use
2869         &impure_data, not &inpure_data.
2870
2871         * libc/include/sys/config.h (__ATTRIBUTE_IMPURE_PTR__): If PowerPC
2872         and and System V ABI, define so that _impure_ptr lives in the
2873         .sdata section.
2874
2875 Sun Dec 22 23:33:05 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
2876
2877         * libc/include/sys/reent.h (__ATTRIBUTE_IMPURE_PTR__): Define as
2878         nothing if not defined.
2879         (_impure_ptr): Use __ATTRIBUTRE_IMPURE_PTR__, so a machine can set
2880         its attributes.
2881
2882         * libc/include/sys/config.h (__ATTRIBUTE_IMPURE_PTR__): 
2883
2884 Wed Dec 18 10:12:04 1996  Jeffrey A Law  (law@cygnus.com)
2885
2886         * libc/sys/sysmec/crt0.S: Fix mn10200 stuff.
2887         * libc/sys/sysmec/trap.s: Handle mn10200 too.
2888         * libc/machine/mn10200/setjmp.S: Fix mn10200 stuff.
2889
2890 Mon Dec 16 10:05:36 1996  Jeffrey A Law  (law@cygnus.com)
2891
2892         * libc/sys/sysmec/crt0.S: Handle mn10200 too.
2893
2894 Fri Dec 13 11:05:20 1996  Jeremy Allison <jra@cygnus.com>
2895
2896         * libc/include/sys/errno.h: Added net errno's.
2897
2898 Wed Dec 11 16:24:25 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
2899
2900         * libc/misc/ffs.c: New file to support ffs function for GCC test
2901         gcc.c-torture/execute/960909-1.c.
2902
2903         * libc/misc/Makefile.in ({O,CHEWOUT_}FILES): Add ffs.
2904
2905 Sat Dec  7 10:12:37 1996  Jeffrey A Law  (law@cygnus.com)
2906
2907         * libc/sys/sysmec/crt0.S: Handle underscore prefix.
2908         * libc/sys/sysmec/trap.S: Likewise.
2909
2910 Fri Dec  6 15:08:49 1996  Jim Wilson  <wilson@cygnus.com>
2911
2912         * configure.in (mips*vr4300*-*-*): Delete use of sys/vr4300.
2913         * libc/sys/vr4300/{Makefile.in,crt0.S,syscalls.c}: Delete.
2914
2915 Wed Dec  4 16:25:27 1996  Jeffrey A Law  (law@cygnus.com)
2916
2917         * libc/sys/sysmec/signal.c: Dummy file.
2918         * libc/sys/sysmec/Makefile.in: Build it.
2919
2920 Wed Nov 27 13:10:18 1996  Ian Lance Taylor  <ian@cygnus.com>
2921
2922         * libc/machine/mips/machine/regdef.h: Define pc as $pc for
2923         mips16.
2924
2925 Mon Nov 25 09:58:28 1996  Jeffrey A Law  (law@cygnus.com)
2926
2927         * libc/sys/sysmec/{crt0.S,trap0.S}: Actually try to implement
2928         c-startup and simulator traps.
2929
2930
2931         * libc/sys/sysmec/crt0.S: Remove bogus '_' symbol prefixing
2932         * libc/sys/sysmec/trap0.S: Likewise.
2933
2934 Sat Nov 23 09:01:03 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
2935
2936         * libc/stdlib/mallocr.c (ROUND_TO): If SMALL_MEMORY, set to 0x7 to
2937         round to double word alignment.
2938         (_morecore_r): Combine rounding up pointers to both ROUND_TO and 8
2939         byte alignment.
2940
2941         * libc/include/sys/config.h (__IEEE_BIG_ENDIAN): Define if d10v.
2942
2943         * libc/sys/d10v/syscalls.c (_sbrk): Add better checks for running
2944         out of memory.
2945
2946 Mon Nov 18 13:08:26 1996  Jeffrey A Law  (law@cygnus.com)
2947
2948         * configure.in: Handle mn10200 and mn10300.
2949         * libc/include/machine/{ieeefp.h,setjmp.h}: Likewise.
2950         * libc/include/sys/config.h: Likewise.
2951         * libc/sys/sysmec: New directory for mec stuff.
2952         * libc/machine/mn10300: New directory for mn10300 stuff.
2953         * libc/machine/mn10200: Similarly for mn10200 stuff.
2954
2955 Fri Nov 15 16:41:41 1996  Doug Evans  <dje@canuck.cygnus.com>
2956
2957         * libc/sys/arm/crt0.S: Use .text, not .section .text.
2958         * libc/sys/arm/syscalls.c: Rewrite to set errno properly.
2959
2960         * libc/include/sys/types.h (_ST_INT32): New macro, local to file.
2961         (nlink_t): Change type from unsigned int to unsigned short.
2962         (mode_t): Ensure size is 32 bits even if int is 16.
2963         * libc/include/sys/stat.h (st_nlink): Change type to nlink_t.
2964         (st_spare[123]): Change type from int to long.
2965
2966 Fri Nov 15 11:41:50 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
2967
2968         * libc/sys/d10v/syscalls.c (_sbrk): Align initial heap_end to 8
2969         byte boundary.
2970
2971         * configure.in (d10v*): Define SMALL_MEMORY.
2972
2973 Mon Nov 11 10:30:44 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
2974
2975         * configure.in (powerpc*-{eabi,elf,linux,rtem,sysv,solaris}*): Add
2976         -mrelocatable-lib and -mno-eabi flags.
2977
2978 Mon Nov 11 09:01:39 1996  Jeffrey A Law  (law@cygnus.com)
2979
2980         * libc/machine/h8300/memcpy.S: Fix comments to reflect reality.
2981         Fix handling of mis-aligned source operand when both the
2982         destination & length are properly aligned.
2983         
2984 Wed Oct 30 09:41:11 1996  Jeffrey A Law  (law@cygnus.com)
2985
2986         * libc/sys/sysnecv850/Makefile.in (OFILES): Add
2987         times.o, time.o and gettime.o
2988         * libc/sys/sysnecv850/{time.c, times.c, gettime.c}: New files.
2989         * libc/sys/sysnecv850/sys/syscall.h: Add SYS_times and
2990         SYS_gettimeofday.
2991
2992 Tue Oct 29 13:40:09 1996  Jeffrey A Law  (law@cygnus.com)
2993
2994         * libc/sys/sysnecv850/Makefile.in (OFILES): Add access.o
2995         * libc/sys/sysnecv850/access.c: New file.
2996
2997 Mon Oct 21 19:47:02 1996  Ian Lance Taylor  <ian@cygnus.com>
2998
2999         * libc/sys/vr4300/Makefile.in (clean): Remove $(OFILES).
3000
3001         * libc/stdlib/mprec.h (word0, word1): Use __uint32_t, not unsigned
3002         long.
3003
3004 Mon Oct 21 14:43:07 1996  Jeffrey A Law  (law@cygnus.com)
3005
3006         * libc/sys/sysnecv850/crt0.S: Initialize ep and gp registers.
3007
3008 Thu Oct 17 11:47:16 1996  Doug Evans  <dje@seba.cygnus.com>
3009
3010         * libc/include/machine/{ieeefp.h,setjmp.h}: Add m32r support.
3011         * libc/include/sys/config.h: Add m32r support.
3012
3013 Wed Oct 16 23:08:05 1996  Jeffrey A Law  (law@cygnus.com)
3014
3015         * libc/sys/sysnecv850/v850.ld: Remove.  It doesn't belong
3016         here.
3017
3018 Wed Oct 16 21:18:07 1996  Mark Alexander  <marka@cygnus.com>
3019
3020         * libc/include/machine/setjmp.h: Add D10v support.
3021
3022 Tue Oct 15 22:28:26 1996  Jeffrey A Law  (law@cygnus.com)
3023
3024         * configure.in: Configure the "libc/syscalls" directory for
3025         the v850.
3026
3027         * libc/sys/sysnecv850/{close.c, execve.c, fork.c}: Add missing '_'.
3028         * libc/sys/sysnecv850/{fstat.c, getpid.c, kill.c}: Likewise.
3029         * libc/sys/sysnecv850/{lseek.c, open.c, read.c}: Likewise.
3030         * libc/sys/sysnecv850/{sbrk.c, stat.c, unlink.c}: Likewise.
3031         * libc/sys/sysnecv850/{wait.c, write.c}: Likewise.
3032
3033 Tue Oct 15 16:24:39 1996  Stu Grossman  (grossman@critters.cygnus.com)
3034
3035         * libc/sys/sysnecv850/crt0.S (start):  Allocate spill space on
3036         stack for args for main and other routines.  Zero out args for
3037         main.
3038
3039         * libc/sys/sysnecv850/v850.ld:  New.  Linker script to layout memory
3040         correctly.
3041
3042 Tue Oct 15 11:51:42 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
3043
3044         * libc/stdio/findfp.c (std): Remove extraneous ';' after
3045         function.
3046
3047         * libc/sys/d10v/sys/syscall.h (SYS_kill): Add.
3048
3049         * libc/sys/d10v/{syscalls.c,trap.S} (_kill,_getpid): Make these
3050         real system calls now.
3051
3052         * libc/stdio/setvbuf (setvbuf): Cast pointers to _POINTER_INT
3053         before casting them to int.
3054         * libc/stdio/tmpnam.c (_tempnam_r): Ditto.
3055
3056         * libc/stdlib/mallocr.c (_morecore_r): Use _POINTER_INT when
3057         aligning pointer.
3058         * libc/string/memset.c (memset): Ditto.
3059         
3060         * libc/stdio/vfscanf.c (__svfscanf): When converting to pointer,
3061         first convert ints to _POINTER_INT to eliminate GCC warning.
3062
3063         * libc/stdio/vfprintf.c (_vfprintf_r): Use _POINTER_INT when
3064         processing %p.
3065
3066         * libm/math/ef_scalb.c (__ieee754_scalbf): Cut down range to 32000
3067         from 65000 if ints are only 16 bits.
3068
3069         * libm/math/sf_scalbn.c (scalbnf): Cut down overflow test to 30000
3070         from 50000 if ints are only 16 bits.
3071
3072         * libc/include/sys/config.h (_POINTER_INT): New macro, to give an
3073         int type that is the same size as a pointer.
3074
3075         * libc/misc/dprintf.c (__dprintf): Use _POINTER_INT when
3076         processing %p.
3077         (get_number): Explicitly cast number to long before shifting by 16
3078         or 24, in case ints are short.
3079
3080         * libc/include/sys/config.h (_POINTER_INT): Define as short.
3081
3082 Wed Oct  9 16:54:32 1996  Jeremy Allison <jra@cygnus.com>
3083
3084         * libc/string.h: Added ffs, removed swab.
3085         * libc/sys/errno.h: Added EOPNOTSUPP.
3086         * libc/sys/unistd.h: Added swab.
3087
3088 Thu Oct  3 17:08:50 1996  Jeremy Allison <jra@cygnus.com>
3089
3090         * libc/include/sys/stat.h: Added fchmod.
3091         * libc/include/sys/unistd.h: Added fsync.
3092
3093 Tue Oct  1 17:34:08 1996  Jeremy Allison <jra@cygnus.com>
3094
3095         * libc/include/sys/errno.h: Added defines for EPFNOSUPPORT (96)
3096         and ECONNRESET (104) for cygwin32.
3097
3098 Tue Oct  1 16:24:05 1996  Gavin Koch  <gavin@cygnus.com>
3099
3100         * libc/sys/sysnecv850/_exit.c: added _do_dtors to
3101         do the static destructors.
3102         
3103 Mon Sep 30 15:59:05 1996  Stu Grossman  (grossman@critters.cygnus.com)
3104
3105         * libc/sys/sysnecv850/trap.S:  Change I/O to use trap 31.
3106
3107 Mon Sep 30 12:02:50 1996  Doug Evans  <dje@canuck.cygnus.com>
3108
3109         * libc/machine/m32r/{Makefile.in,setjmp.S}: New files.
3110         * configure.in: Recognize m32r-*-*.
3111
3112 Mon Sep 30 00:34:41 1996  James G. Smith  <jsmith@cygnus.co.uk>
3113
3114         * libc/sys/arm/trap.S (__rt_stkovf_split_big,
3115         __rt_stkovf_split_small): Added default software stack overflow
3116         handlers, which just call SWI_Exit.
3117         * libc/sys/arm/crt0.S (_mainCRTStartup): Simple software stack
3118         limit initialisation.
3119
3120 Fri Sep 27 13:08:03 1996  Mark Alexander  <marka@cygnus.com>
3121
3122         * libc/sys/d10v/{trap.S,sys/syscall.h}: Add time() function.
3123
3124 Fri Sep 27 12:32:00 1996  Jeremy Allison <jra@cygnus.com>
3125
3126         * libc/include/sys/types.h: Added ssize_t definition.
3127         
3128 Wed Sep 25 14:52:18 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
3129
3130         * libc/machine/d10v/setjmp.S: Use ';' for comments.
3131         * libc/sys/d10v/{crt0.S,trap.S}: Ditto.
3132
3133         * libc/machine/d10v/setjmp.S (longjmp): Use exef0t || instead of
3134         branch around a single ldi instruction.
3135
3136         * libc/sys/d10v/crt0.S (_start): Use auto-increment to zero bss.
3137         Call exit, instead of just issuing a stop instruction.
3138
3139 Sun Sep 22 17:26:55 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
3140
3141         * libc/sys/d10v/{trap.S,syscalls.c}: Add -mint32 support.
3142
3143 Fri Sep 20 13:23:12 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
3144
3145         * libc/stdlib/mprec.h: Explicitly declare all large constants as
3146         longs, and then cast them to __uint32_t.
3147
3148         * libc/include/sys/config.h: Protect against multiple inclusions.
3149
3150 Tue Sep 17 13:10:33 1996  Mark Alexander  <marka@cygnus.com>
3151
3152         * configure.in (d10v*): Set syscall_dir.
3153
3154 Sun Sep 15 10:41:59 1996  Mark Alexander  <marka@cygnus.com>
3155
3156         * libc/sys/d10v/crt0.S: Set stack pointer.
3157
3158 Thu Sep 12 13:02:38 1996  Mark Alexander  <marka@cygnus.com>
3159
3160         * libc/sys/d10v/{trap.S, syscalls.c}: Rewrite most system calls
3161         in assembly for efficiency.  Change calling convention to allow
3162         long ints to be returned.
3163
3164 Wed Sep 11 10:28:18 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
3165
3166         * libc/machine/v850/Makefile.in (setjmp.o): Fix dependency.
3167
3168 Thu Sep  5 19:23:06 1996  Doug Evans  <dje@canuck.cygnus.com>
3169
3170         * libc/posix/execvp.c (execvp): Don't search PATH if file has '/'.
3171         Handle empty entries in $PATH.
3172
3173 Tue Sep 03 18:15:02 1996  Mark Alexander  <marka@cygnus.com>
3174
3175         * libc/machine/d10v/setjmp.S: Make it really work.
3176
3177 Tue Sep  3 12:16:26 1996  Ian Lance Taylor  <ian@cygnus.com>
3178
3179         * libc/sys/sh/crt0.S: If __ELF__, use ELF section attributes for
3180         the .stack section.
3181
3182 Tue Sep  3 10:08:45 1996  Jeffrey A Law  (law@cygnus.com)
3183
3184         * sys/sysnecv850/sys/file.h: Remove.
3185         * sys/sysnecv850/sys/syscall.h: New file.
3186         * sys/sysnecv850/{misc.c,syscalls.c,malloc.c}: Deleted.
3187         * sys/sysnecv850/{chmod.c, chown.c, close.c, creat.c} New files.
3188         * sys/sysnecv850/{execv.c, execve.c, fork.c, fstat.c} New files.
3189         * sys/sysnecv850/{getpid.c, isatty.c, kill.c, lseek.c} New files.
3190         * sys/sysnecv850/{open.c, pipe.c, raise.c, read.c} New files.
3191         * sys/sysnecv850/{stat.c, unlink.c, utime.c, wait.c} New files.
3192         * sys/sysnec850/trap.S: New file.
3193         * sys/sysnecv850/{_exit.c, write.c}: Use new TRAP0 mechanism for
3194         syscalls.
3195         * sys/sysnecv850/crt0.S: Use cmp/bl, not tst/bz.
3196         * sys/sysnec850/sbrk.c: New version.
3197
3198 Sun Sep  1 20:08:27 1996  Jeffrey A Law  (law@cygnus.com)
3199
3200         * sys/sysnecv850/crt0.S: Fix order of comparison args.  Loop
3201         as long as r6 is less than r7.
3202
3203 Sun Sep  1 13:54:19 1996  Ian Lance Taylor  <ian@cygnus.com>
3204
3205         * Makefile.in (mostlyclean): Separate from clean target.  Don't
3206         remove *.a or targ-include.
3207         * libc/machine/sparc/Makefile.in (mostlyclean): New target.
3208
3209 Sun Sep  1 11:35:26 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
3210
3211         * libc/include/machine/ieeefp.h (_DOUBLE_IS_32BITS): Define for
3212         d10v.
3213         (__SMALL_BITFIELDS): Ditto.
3214
3215         * libc/include/sys/config.h (_DOUBLE_IS_32BITS): Define for d10v.
3216
3217 Sat Aug 31 16:42:36 1996  Jeffrey A Law  (law@cygnus.com)
3218
3219         * libc/sys/sysnecv850/misc.c (raise, getpid, kill): Remove '_'
3220         prefix.
3221
3222         * libc/sys/sysnecv850/sbrk.c (sbrk): Remove '_' prefix.
3223         * libc/sys/sysnecv850/syscalls.c (read, lseek, close): Likewise.
3224         * libc/sys/sysnecv850/syscalls.c (fstat, open, close): Likewise.
3225         * libc/sys/sysnecv850/write.c (write): Likewise.
3226
3227         * libc/sys/sysnecv850/crt0.S: Don't try to zero out an empty
3228         .bss.
3229
3230 Fri Aug 30 11:18:45 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
3231
3232         * libc/include/sys/config.h: Define INT_MAX, UINT_MAX
3233         appropriately for D10V, depending on -mint16/-mint32.
3234
3235 Thu Aug 29 16:09:37 1996  Mark Alexander  <marka@cygnus.com>
3236
3237         * configure.in: Add cases for D10V.
3238
3239 Thu Aug 29 17:03:23 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
3240
3241         * configure.in (i[345]86-*-*): Recognize i686 for pentium pro.
3242
3243 Wed Aug 28 21:05:52 1996  Jeffrey A Law  (law@cygnus.com)
3244
3245         * libc/include/machine/ieeefp.h: Fix typo.
3246
3247 Wed Aug 28 19:47:55 1996  Mark Alexander  <marka@cygnus.com>
3248
3249         * libc/sys/d10v: New directory for D10V stuff.
3250         * libc/include/machine/ieeefp.h: Add D10V defines.
3251
3252 Mon Aug 26 13:34:58 1996  Doug Evans  <dje@canuck.cygnus.com>
3253
3254         * libc/include/sys/errno.h: Add winsup/include/sys/errno.h values:
3255         ELOOP, ENOBUFS, EAFNOSUPPORT, EPROTOTYPE, ENOTSOCK, ENOPROTOOPT,
3256         ESHUTDOWN, ECONNREFUSED, EADDRINUSE, ECONNABORTED, EWOULDBLOCK.
3257         * libc/string/strerror.c (strerror): Add them.
3258
3259 Thu Aug 22 16:38:19 1996  Jeffrey A Law  (law@cygnus.com)
3260
3261         * libc/sys/sysnecv850: New directory for v850 stuff.
3262
3263         * libc/machine/v850: New directory for v850 stuff.
3264         * libc/machine/v850/setjmp.S: setjmp/longjmp support.
3265
3266         * configure.in: Add support for the v850.
3267
3268         * libc/include/machine/ieeefp.h: Add v850 defines.
3269         * libc/include/machine/setjmp.h: Likewise.
3270         * libc/include/sys/config.h: Add v850 defines.
3271
3272 Sat Aug 17 04:06:36 1996  Geoffrey Noer  <noer@cygnus.com>
3273
3274         * libc/include/machine/ieeefp.h
3275         * libc/include/machine/setjmp.h
3276         * libc/include/sys/fcntl.h
3277         * libc/include/sys/signal.h
3278         * libc/include/sys/types.h
3279         * libc/stdlib/system.c:
3280         Fix preprocessor defines to match new scheme (_WIN32 for WIN32
3281         API availability, __CYGWIN32__ for cygwin32 environment specific).
3282
3283 Thu Aug 15 17:09:21 1996  Geoffrey Noer  <noer@cygnus.com>
3284
3285         * libc/include/stdlib.h: add multibyte character functions.  Add
3286         __eprintf for assert.
3287
3288 Thu Aug 15 11:15:40 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
3289
3290         * libc/stdlib/malloc.h (MALLOC_ALIGNMENT): Use either pointer
3291         arithmetic or __alignof__ to properly get the alignment, instead
3292         of hardwiring it to 4.
3293
3294 Wed Aug 14 23:43:28 1996  Geoffrey Noer  <noer@cygnus.com>
3295
3296         * libc/stdio/fseek.c: add fflush call to adjust seek offset
3297         on append stream (fix from NetBSD sources), adjust curoff offset
3298         for ungetc's benefit.
3299         * libc/stdio/ftell.c: adjust curoff offset for ungetc's benefit.
3300         * libc/stdio/rewind.c: replace code with up to date NetBSD
3301         code to undo hacks made to work around above problem of not
3302         having fflush call mentioned above
3303
3304 Fri Aug  2 18:28:07 1996  J.T. Conklin  <jtc@rtl.cygnus.com>
3305
3306         * libc/reent/{closer.c, execr.c, fstatr.c, linkr.c, lseekr.c,
3307         openr.c, readr.c, sbrkr.c, signalr.c, statr.c, timer.c, writer.c}:
3308         Partially revert last changes.  The thread specific errno is set
3309         iff if the underlying syscall fails and the global errno is not
3310         zero.
3311
3312 Fri Jul 19 11:41:52 1996  J.T. Conklin  <jtc@rtl.cygnus.com>
3313
3314         * libc/reent/filer.c: Removed files, all functions have split out
3315         into their own files.
3316         * libc/reent/{closer.c, lseekr.c, openr.c, readr.c, writer.c}: 
3317         New files containing functions formally in filer.c
3318         * libc/reent/Makefile.in: Updated for above change.
3319
3320         * libc/reent/execr.c (_fork_r, _wait_r): Set errno if underlying
3321         syscall fails, not if errno is changed.
3322         * libc/reent/filer.c (_open_r, _close_r, _lseek_r, _read_r, 
3323         _write_r): Likewise.
3324         * libc/reent/fstatr.c (_fstat_r): Likewise.
3325         * libc/reent/linkr.c (_link_r, _unlink_r): Likewise.
3326         * libc/reent/sbrkr.c (_sbrk_r): Likewise.
3327         * libc/reent/signalr.c (_kill_r): Likewise.
3328         * libc/reent/statr.c (_stat_r): Likewise.
3329         * libc/reent/timer.c (_gettimeofday_r): Likewise.
3330
3331         * libc/reent/{execr.c, filer.c, fstatr.c, linkr.c, sbrkr.c,
3332         signalr.c, statr.c, timer.c} (errno): declare extern rather
3333         than as a common.
3334
3335         * libc/stdio/vfprintf.c (__sbprintf): Use the VFPRINTF macro
3336         instead of calling vfprintf so that i*printf will not require
3337         floating point support code.
3338         
3339 Mon Jul 15 16:50:59 1996  Doug Evans  <dje@canuck.cygnus.com>
3340
3341         * libc/posix/execvp.c (execvp): Use posix_path_list_p to determine
3342         path delimiter.
3343         * libc/include/sys/unistd.h (_SC_PATH_RULES): Delete.
3344         (_PATH_RULES_{UNKNOWN,WIN32,POSIX}): Delete.
3345
3346 Thu Jul 11 14:34:14 1996  Geoffrey Noer  <noer@cygnus.com>
3347
3348         * libc/include/signal.h: _sig_func_ptr function takes an int
3349         * libc/include/sys/signal.h: sa_handler function takes an int
3350
3351 Tue Jul  9 21:22:32 1996  Jeffrey A Law  (law@cygnus.com)
3352
3353         * libc/include/machine/ieeefp.h: Simplify H8/S support.
3354         * libc/include/sys/config.h: Add missing H8/S conditional.
3355
3356 Sun Jun 30 12:05:46 1996  Doug Evans  <dje@canuck.cygnus.com>
3357
3358         * libc/include/sys/unistd.h (MAXPATHLEN): Add cygwin32 value.
3359
3360 Wed Jun 26 09:57:54 1996  Jeffrey A Law  (law@cygnus.com)
3361
3362         * libc/include/machine/setjmp.h: Handle H8/S.
3363         * libc/include/machine/ieeefp.h: Likewise.
3364         * libc/include/sys/config.h: Likewise.
3365         * libc/machine/h8300/{defines.h, memcpy.S, memset.S}: Likewise.
3366         * libc/machine/h8300/{reg_memcpy.S, reg_memset.S}: Likewise.
3367         * libc/machine/h8300/{strcmp.S, setjmp.S}: Likewise.
3368         * libc/sys/h8300hms/crt0.S: Likewise.
3369
3370 Tue Jun 25 23:15:45 1996  Jason Molenda  (crash@godzilla.cygnus.co.jp)
3371
3372         * Makefile.in (datadir): Set to $(prefix)/share.
3373         (oldincludedir, docdir): Removed.
3374         * doc/Makefile.in (datadir): Set to $(prefix)/share.
3375         (oldincludedir, docdir): Removed.
3376         * libc/Makefile.in (datadir): Set to $(prefix)/share.
3377         (oldincludedir, docdir): Removed.
3378         * libm/Makefile.in (datadir): Set to $(prefix)/share.
3379         (oldincludedir, docdir): Removed.
3380
3381 Fri Jun 21 19:24:41 1996  Ian Lance Taylor  <ian@cygnus.com>
3382
3383         * libc/include/sys/reent.h (_REENT_INIT): Update for change to
3384         _reent struct.
3385
3386 Wed Jun 19 14:00:09 1996  Doug Evans  <dje@canuck.cygnus.com>
3387
3388         * libc/posix/execvp.c: Delete _WIN32 support.  For __CYGWIN32__
3389         fetch current path rules with sysconf and handler posix/win32
3390         appropriately.
3391
3392         * libc/include/sys/unistd.h (_PATH_RULES{,_POSIX,_WIN32}): Define.
3393
3394         * libc/include/process.h: Prepend '_' to P_{WAIT,NOWAIT,OVERLAY}.
3395         (WAIT_CHILD): Always define.
3396
3397 Sat Jun 15 17:50:42 1996  Ian Lance Taylor  <ian@cygnus.com>
3398
3399         * libc/stdlib/eprintf.c: New file.
3400         * libc/stdlib/Makefile.in (OFILES): Add eprintf.o.
3401         (eprintf.o): New target.
3402
3403 Thu Jun 13 16:44:32 1996  Doug Evans  <dje@canuck.cygnus.com>
3404
3405         * libc/sys/cygwin32/crt0.c (__cygwin_crt0_bp): New global.
3406         (mainCRTStartup): Do int3 if __cygwin_crt0_bp non-zero.
3407
3408 Thu Jun 13 17:45:17 1996  Mike Meissner  <meissner@rtl.cygnus.com>
3409
3410         * libc/include/machine/ieeefp.h: Add support for AIX and Windows
3411         NT in PowerPC endianess cases.
3412
3413 Tue Jun 11 12:26:28 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
3414
3415         * libc/include/machine/ieeefp.h: Clean up PowerPC endianess.
3416
3417 Thu Jun  6 11:34:20 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
3418
3419         * libc/string/strtok.c: Fix doc typo.
3420
3421 Mon Jun  3 11:30:00 1996  J.T. Conklin  <jtc@rtl.cygnus.com>
3422
3423         * libc/include/sys/reent.h (struct _reent): Removed _asctime,
3424         _next, _scanpoint, _signgam fields.
3425
3426         * libc/include/stdlib.h (rand_r): Added new declaration.
3427         (_rand_r, _srand_r): Removed declarations.
3428         * libc/stdlib/rand.c (_rand_r, _srand_r): Removed, these functions
3429         have been made obsolete by rand_r.
3430         * libc/stdlib/rand_r.c: New file, rand_r function as specified
3431         by POSIX.1c.
3432         
3433         * libc/string/strtok.c: Update documentation to describe
3434         strtok_r().
3435
3436 Sat Jun  1 23:50:39 1996  Michael Meissner  <meissner@cygnus.com>
3437
3438         * libc/include/sys/stat.h (stat structure): Use the expanded stat
3439         structure on Solaris, and PowerPC systems even though __svr4__ is
3440         defined.
3441
3442 Tue May 28 13:02:42 1996  Doug Evans  <dje@canuck.cygnus.com>
3443
3444         * libc/sys/go32/sys/errno.h (ENOSYS,ESPIPE): Keep values <= 255.
3445
3446 Fri May 17 10:34:44 1996  Ian Lance Taylor  <ian@cygnus.com>
3447
3448         * host/any: Use ../.. rather than .. to get to the main build
3449         directory.  This matches the current layout of the build
3450         directory.
3451
3452 Wed May 15 15:52:27 1996  Jeffrey A Law  (law@cygnus.com)
3453
3454         * libc/machine/h8300/__main.S: Delete.  No longer needed.
3455         * libc/machine/h8300/Makefile.in: Corresponding changes.
3456         * libc/sys/h8300hms/crt1.c: New file.
3457         * libc/sys/h8300hms/Makefile.in: Corresponding changes.
3458         * libc/sys/h8300hms/crt0.s: Call __main.
3459
3460         * libc/sys/h8300hms/crt0.S: Use temporary label names
3461         for branch targets.
3462
3463 Mon May 13 14:26:30 1996  Doug Evans  <dje@canuck.cygnus.com>
3464
3465         * libc/stdio/fopen.c (_fopen_r): Fix arguments to fseek.
3466
3467 Fri May  3 16:38:23 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
3468
3469         * libc/reent/impure.c (_impure_ptr): Force the impure pointer into
3470         .sdata on the PowerPC so that we can link newlib with code
3471         compiled with -msdata.
3472
3473 Mon Apr 29 21:38:02 1996  Doug Evans  <dje@canuck.cygnus.com>
3474
3475         * libc/sys/arm/syscalls.c (_sbrk): Rename end to __end__.
3476
3477 Thu Apr 25 06:38:59 1996  Michael Meissner  <meissner@cygnus.com>
3478
3479         * libc/sys/cygwin32/crt0.c (mainCRTStartup): On PowerPC, set the
3480         exception handler to __cygwin_exception_handler.
3481
3482 Tue Apr 23 15:14:20 1996  Ian Lance Taylor  <ian@cygnus.com>
3483
3484         * libc/include/machine/setjmp.h: Check _AM29K, not ___AM29K__.
3485
3486 Sun Apr 21 12:11:51 1996  Doug Evans  <dje@blues.cygnus.com>
3487
3488         * libm/math/Makefile.in ({w,wf}_cabs.o,{w,wf}_drem.o): Add rule for
3489         SunOS VPATH.
3490         * libc/stdlib/Makefile.in (atoff.o,atol.o,mblen.o,mbstowcs.o,
3491         wcstombs.o): Likewise.
3492
3493 Thu Apr 18 12:37:01 1996  Doug Evans  <dje@canuck.cygnus.com>
3494
3495         * libc/stdlib/environ.c (initial_env): New static local.
3496         (environ): Point to `initial_env'.
3497
3498         * libc/include/machine/setjmp.h: Clean up.
3499         (__H8300H__,__PPC__): Define _JBTYPE.
3500         (__arm__): Provide entry for.
3501         (sigjmp_buf): Delete.
3502         (jmp_buf): Use _JBTYPE if defined, otherwise int.
3503
3504 Thu Apr 18 12:10:52 1996  Jeffrey A Law  (law@cygnus.com)
3505
3506         * libc/machine/h8300/strcmp.S: Sign extend the result to
3507         32bits so we don't lose with -mint32.
3508
3509 Sun Apr 14 19:59:52 1996  Doug Evans  <dje@canuck.cygnus.com>
3510
3511         * libc/sys/go32/sys/errno.h: New file.
3512         * libc/sys/go32/Makefile.in (stat.o): Depend on stat.c.
3513         * libc/sys/go32/gerrno.s (syscall_error): Call __errno to get
3514         errno's address (make compatible with rest of newlib).
3515         * libc/sys/go32/stat.c (fixinode): Set errno upon failure.
3516         * libc/string/strerror.c (strerror): Surround each case with #ifdef.
3517
3518 Thu Mar 28 13:44:42 1996  Doug Evans  <dje@canuck.cygnus.com>
3519
3520         * libc/machine/sparc/{scan.c,shuffle.c}: New files.
3521         * libc/machine/sparc/Makefile.in: Build them.
3522         * libc/machine/sparc/machine/sparclet.h: New file.
3523
3524 Mon Mar 25 15:29:14 1996  J.T. Conklin  <jtc@rtl.cygnus.com>
3525
3526         * libc/machine/sh/asm.h: New file.
3527         * libc/machine/sh/setjmp.S: Only save clobbered registers.  Added
3528         support for SH3e's FP registers.  Use asm.h.
3529
3530 Mon Mar 25 11:59:23 1996  Jeffrey A Law  (law@cygnus.com)
3531
3532         * libc/stdio/vfprintf.c (cvt): Accept a reent structure
3533         as first argument.  Call _dtoa_r and pass the reent structure
3534         instead of calling __dtoa.
3535
3536 Fri Mar 22 13:59:37 1996  Jeffrey A Law  (law@cygnus.com)
3537
3538         * libc/include/sys/config.h: Define DOUBLE_IS_32BITS for
3539         the h8300, h8500, and others.  Add comments for some rather
3540         dubious code.
3541
3542 Thu Mar 14 18:04:43 1996  Ian Lance Taylor  <ian@cygnus.com>
3543
3544         * Makefile.in (check): Check that testsuite exists before cd.
3545
3546 Tue Mar 12 11:46:47 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
3547
3548         * libc/include/string.h (strsep): Correct prototype.
3549
3550 Mon Mar 11 09:55:19 1996  Doug Evans  <dje@charmed.cygnus.com>
3551
3552         * libc/sys/h8300/_exit.c (_exit,__exit): Set r0 to 0 before `sleep'.
3553         * libc/sys/h8300/misc.c (_kill): Set r0 to indicate abort and `sleep'.
3554         * libc/sys/h8300/crt0.S (_start): Call exit instead of `sleep'.
3555
3556 Wed Mar  6 11:51:55 1996  Doug Evans  <dje@charmed.cygnus.com>
3557
3558         * libc/posix/{creat.c,isatty.c}: New files.
3559         * libc/posix/Makefile.in (OFILES): Add creat.o, isatty.o.
3560
3561         * libc/sys/sparc64/crt0.S (environ): Delete.
3562         (.LHaveBias): Renamed from HaveBias.
3563
3564 Thu Feb 15 10:48:37 1996  Doug Evans  <dje@charmed.cygnus.com>
3565
3566         * libc/stdlib/mallocr.c (etext): Move decl inside ifdef WARN_VLIMIT.
3567         (_morecore_r): Delete SBRK_IS_ALLOC support.
3568
3569 Tue Feb 13 09:44:09 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
3570
3571         * libc/sys/cygwin32/Makefile.in (lib.a): Make lib.a with a dummy
3572         module rather than touch, so we don't get warning messages when
3573         all of the libraries are combined into libc.a.
3574
3575 Tue Feb 13 06:32:07 1996  Doug Evans  <dje@charmed.cygnus.com>
3576
3577         * libc/sys/sparclite/{Makefile.in,crt0.s}: Deleted.
3578         crt0.s replaced by version in libgloss.
3579
3580 Mon Feb  5 15:17:51 1996  J.T. Conklin  <jtc@rtl.cygnus.com>
3581
3582         * libc/reent/Makefile.in (OFILES): Add impure.o.
3583         * libc/reent/impure.o: New file, define initial reentrancy struct.
3584         * libc/reent/reent.c: Remove above definition.
3585
3586         * libm/math/sf_asinh.c: Fix typo.
3587
3588         * Makefile.in (MATHOBJS_IN_LIBC): Removed sr_ldexp.o and
3589         srf_ldexp.o.
3590         
3591         * libm/libm.texinfo: Change documentation to reflect changes
3592         in reentrancy model.
3593         * libm/math/w_gamma.c: Likewise.
3594
3595 Wed Jan 31 18:49:45 1996  Steve Chamberlain  <sac@slash.cygnus.com>
3596
3597         * configure.in (*-*-cygwin32): New.
3598         (*-*-win32): Deleted.
3599         * libc/sys/win32 renamed libc/sys/cygwin32.
3600
3601 Tue Jan 30 22:09:03 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
3602
3603         * libc/include/sys/file.h: New include file.
3604
3605 Fri Jan 26 15:52:54 1996  Steve Chamberlain  <sac@slash.cygnus.com>
3606
3607         * libc/include/machine/setjmp.h: Increase size of PPC jmp_buf.
3608
3609 Tue Jan 23 17:49:16 1996  Steve Chamberlain  <sac@slash.cygnus.com>
3610
3611         * libc/include/sys/wait.h (WIFSIGNALED): Fix.
3612
3613 Tue Jan 16 09:28:10 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
3614
3615         * doc/makedoc.c (realloc): Declare at file scope.
3616         (catchar): Not here.
3617
3618 Wed Dec 27 15:45:23 1995  Doug Evans  <dje@canuck.cygnus.com>
3619
3620         * Makefile.in (VERSION): Update to 1.7.0.
3621         * {libc,libm}/Makefile.in (VERSION): Likewise.
3622         * configure.in: Minor clean up of multilib stuff.
3623
3624         From David Johnson <davidj@ICSI.Berkeley.EDU>
3625         * {libc,libm}/Makefile.in (lib[cm].a): Delete library first.
3626
3627         * libc/stdlib/environ.c: New file.
3628         * libc/stdlib/Makefile.in (OFILES): Build it.
3629         * libc/sys/h8500hms/crt0.c (environ): Deleted.
3630         * libc/sys/m88kbug/crt0.c (environ): Deleted.
3631         * libc/sys/z8ksim/crt0.c (environ): Deleted.
3632         * libc/sys/netware/environ.c: Deleted.
3633
3634 Tue Dec 19 15:24:46 1995  Kim Knuttila  <krk@cygnus.com>
3635
3636         * configure.in (links): set sys_dir, posix_dir, syscall_dir
3637
3638 Wed Dec 13 04:16:25 1995  Michael Meissner  <meissner@wogglebug.tiac.net>
3639
3640         * doc/makedoc.c (init_string_with_size,nextword): Move malloc
3641         declaration out to external scope and declare it PTR, not char *.
3642
3643 Mon Dec 11 17:35:12 1995  steve chamberlain  <sac@slash.cygnus.com>
3644
3645         * libc/include/sys/unistd.h (getpagesize): New declaration.
3646         (_SC_PAGESIZE): New definition.
3647         * libc/include/time.h (CLK_TCK): Defined as CLOCKS_PER_SEC.
3648         * libc/configure.in (i[345]86-*-win32): Remove -DNO_FORK.
3649
3650 Fri Dec  1 16:48:46 1995  James G. Smith  <jsmith@cygnus.co.uk>
3651
3652         * libc/sys/vr4300/syscalls.c (sbrk): Fixed memory
3653         addressing. System call returns size, not (last address + 1).
3654
3655 Thu Nov 30 15:05:26 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
3656
3657         * libm/math/*.c: Removed _foo_r() reentrancy API.
3658         * libc/include/math.h: Removed _foo_r prototypes and macros.
3659
3660         * libm/math/*.c: On systems with IEEE single precision "doubles" 
3661         move foo() -> foof() wrapper code from the files that implement
3662         the standard IEEE double precision functions to the files that 
3663         implement IEEE single precision functions. (ie. On those systems
3664         sin is moved from s_sin.c to sf_sin.c).  There should eventually
3665         be use of a C extension (like gcc's alias attribute) so that the
3666         wrappers are not needed at all.
3667
3668         * libc/sys/sysnec810/sbrk.c: Cast &end to char * to get around
3669         strict NEC V810 compiler.
3670         * libc/misc/dprintf.c (getnumber): Cast char * to unsigned char *
3671         for same reason.
3672
3673 Wed Nov 29 14:25:05 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
3674
3675         * libc/stdlib/strtol.c (_strtol_r): Replaced with implementation
3676         from NetBSD C library.
3677         * libc/stdlib/strtoul.c (_strtoul_r): Likewise.
3678
3679         * libc/stdlib/assert.c (__assert): Renamed from __assertfail 
3680         and adapted from implementation I wrote for NetBSD C library.
3681         The difference is __assert doesn't take a format argument,
3682         so that there won't be multiple copies of the same string
3683         constant in the executable if assertions are enabled in
3684         more than one source module.
3685         * libc/include/assert.h (assert): Changed to call __assert.
3686
3687 Tue Nov 28 16:54:26 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
3688
3689         * libc/stdlib/strtod.c (_strtod_r): Changed to not assign to
3690         word1 on systems with 32 bit doubles.
3691         * libc/stdlib/qsort.c (qsort): Cast some void *'s to char *'s
3692         so that we can do arithmetic on them.
3693         * libc/misc/dprintf.c: Changed to support stdarg.h for ANSI
3694         compilers.
3695         
3696 Tue Nov 28 16:03:32 1995  Doug Evans  <dje@canuck.cygnus.com>
3697
3698         * libc/sys/arm/crt0.S: Zero bss.
3699
3700 Fri Nov 24 16:09:23 1995  Doug Evans  <dje@deneb.cygnus.com>
3701
3702         * libc/include/unctrl.h: New file.
3703         * libc/misc/{Makefile.in,dprintf.c,unctrl.c,misc.tex}: New files.
3704         * configure.in (subdirs): Add libc/misc.
3705         * libc/Makefile.in (SUBDIRS): Add misc.
3706         (SUBLIBS): Add misc/lib.a.
3707
3708         * libc/include/sys/reent.h (struct _reent): Make __sf last member.
3709
3710 Wed Nov 22 19:49:47 1995  Doug Evans  <dje@deneb.cygnus.com>
3711
3712         * libc/stdio/vfprintf.c (__sbprintf): Init fake._data.
3713         (_vfprintf_r): Call CHECK_INIT.
3714
3715 Tue Nov 14 02:52:12 1995  Doug Evans  <dje@canuck.cygnus.com>
3716
3717         * Makefile.in (MULTITOP): Delete.
3718         (MULTISRCTOP, MULTIBUILDTOP): Add.
3719         * configure.in: Delete call to cfg-ml-com.in.  Call config-ml.in
3720         instead of cfg-ml-pos.in.
3721
3722 Wed Nov  8 01:24:08 1995  James G. Smith  <jsmith@pasanda.cygnus.co.uk>
3723
3724         * libc/sys/vr4300/syscalls.c: Added clean version of sbrk().
3725         * libc/sys/vr4300/crt0.S: Cleaned up. Added check for FPU
3726         presence.
3727
3728 Thu Nov  2 22:25:06 1995  Michael Meissner  <meissner@tiktok.cygnus.com>
3729
3730         * libc/string/strtok.c: Include string.h to pick up strtok_r
3731         prototype.
3732
3733 Wed Nov  1 18:54:11 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
3734
3735         * libc/string/strtok.c: include <_ansi.h>.
3736         * libc/time/asctime_r.c: `reresult' -> `result'.
3737
3738 Wed Nov  1 14:35:52 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
3739
3740         * libc/time/{ctime.c, gmtime.c, lcltime.c}: Wrap functions
3741         in #ifndef _REENT_ONLY ... #endif conditional.
3742
3743         * libc/include/string.h (_strtok_r): Remove declaration.
3744         * libc/include/time.h (_asctime_r): Remove declaration.
3745         * libc/string/strtok.c (_strtok_r): Removed.
3746         * libc/time/asctime.c (_asctime_r): Removed.
3747
3748         * libc/string/Makefile.in (OFILES): Add new object.
3749         * libc/string/strtok_r.c: New file.  strtok_r function as
3750         specified by POSIX.1c, adapted from strtok implementation 
3751         from NetBSD C library.
3752         * libc/string/strtok.c (strtok): Reimplemented in terms of 
3753         strtok_r.
3754
3755         * libc/time/Makefile.in (OFILES): Add new objects.
3756         * libc/time/{asctime_r.c, ctime_r.c, gmtime_r.c, lcltime_r.c}:
3757         New files, reentrant time functions specified by POSIX.1c.
3758         * libc/time/{asctime.c, ctime.c, gmtime.c, lcltime.c}: Non-
3759         reentrant time functions re-written in terms of reentrant 
3760         functions.
3761         * libc/time/lcltime.c: Renamed from localtime.c
3762
3763         * libc/include/time.h: Add prototypes for asctime_r, ctime_r,
3764         gmtime_r, and localtime_r.
3765
3766 Sat Oct 28 14:34:31 1995  steve chamberlain  <sac@slash.cygnus.com>
3767
3768         * libc/sys/win32/crt0.c (mainCRTStartup): Call cygwin_crt0.
3769         * libc/include/sys/unistd.h (getlogin): Revert change of
3770         Oct 19.
3771         * libc/include/sys/signal.h (sigprocmask): Change prototype
3772         so it compiles with c++.
3773
3774 Wed Oct 25 15:43:18 1995  Michael Meissner  <meissner@cygnus.com>
3775
3776         * libc/include/machine/setjmp.h (PowerPC _JBLEN): Consider it a
3777         PowerPC if __PPC__ is defined.  Bump jump_buf length to 62 ints,
3778         to give some room in case we need to align the jmp_buf.
3779         
3780         * libc/machine/powerpc/setjmp.S (setjmp, longjmp): Rewrite to use
3781         the new ppc-asm.h include file the compiler provides to specify
3782         function prologue/epilogue.  Eliminate saves of the xer and ctr
3783         registers, which are volatile.  Before starting to save registers,
3784         align to 8 byte boundary.
3785
3786 Mon Oct 23 11:20:51 1995  James G. Smith  <jsmith@pasanda.cygnus.co.uk>
3787
3788         * libc/sys/vr4300/syscalls.c: Added empty kill() function,
3789         referenced by standard libraries.
3790
3791 Thu Oct 19 21:39:47 1995  Fred Fish  <fnf@cygnus.com>
3792         
3793         * libc/unix/Makefile.in, libc/string/Makefile.in,
3794         libc/stdio/Makefile.in, libc/reent/Makefile.in,
3795         libc/posix/Makefile.in:
3796         Remove tabs from otherwise empty line.  Confuses some
3797         older non-GNU versions of "make".
3798
3799 Thu Oct 19 16:32:17 1995  steve chamberlain  <sac@slash.cygnus.com>
3800
3801         * libc/sys/unistd.h (getlogin): Returns const char *.
3802
3803 Wed Oct 18 12:57:50 1995  steve chamberlain  <sac@slash.cygnus.com>
3804
3805         * libc/include/fcntl.h (O_BINARY, O_TEXT): New.
3806         * libc/include/errno.h: Moved into and include...
3807         * libc/include/sys/errno.h: New file.
3808         * libc/include/sys/wait.h: New file.
3809         * libc/stdio/rename.c (_rename_r): Use _rename system call if available.
3810         * libc/sys/win32/*: Moved out.
3811         * libc/sys/win32/crt0.c: Rewritten to cope with shared library.
3812         * configure.in (i[345]86-*-win32): HAVE_RENAME
3813
3814 Wed Oct 18 09:58:27 1995  Brendan Kehoe  <brendan@lisa.cygnus.com>
3815
3816         * libc/unix/sigset.c (sigemptyset, sigaddset): Prefix #undef to
3817         avoid macro expansion for these two names.
3818
3819 Tue Oct 17 08:45:33 1995  Doug Evans  <dje@canuck.cygnus.com>
3820
3821         * libc/machine/h8500/psi.S: r6 renamed to fp.
3822
3823 Sun Oct 15 12:58:10 1995  Michael Meissner  <meissner@wogglebug.tiac.net>
3824
3825         * configure.in (powerpc*): No longer need to define
3826         NO_LONGLONG_POINTERS to supress warnings.
3827
3828 Sat Oct 14 12:55:08 1995  Jim Wilson  <wilson@chestnut.cygnus.com>
3829
3830         * libc/reent/reent.c (_reclaim_reent): Call cleanup indirectly
3831         through PTR instead of directly.
3832
3833         * libc/sys/sh/crt0.S: Clean up formatting.  Delete unused
3834         non-standard constructor support.
3835
3836 Thu Oct 12 11:39:42 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
3837
3838         * libc/stdlib/dtoa.c (_dtoa_r): Set result pointer to the
3839         address of the Bigint instead of the address of its _x field,
3840         as the size the result buffer was calculated accordingly.  
3841         Fix from Jim Wilson <wilson@chestnut@cygnus.com>.
3842
3843         * libc/stdlib/{div.c, ldiv.c}: Replaced with implementation
3844         from NetBSD C library.  No longer special cases division by 
3845         zero (which needs to be done by the application anyway), but
3846         it doesn't need to call abs() (or labs()) four times either.
3847         
3848         * libc/stdlib/qsort.c: Replaced with implementation from 
3849         NetBSD C library.
3850
3851 Tue Oct 10 14:01:10 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
3852
3853         * libc/stdio/vfprintf.c: Replaced with implementation from
3854         NetBSD C library (which is derived from the 4.4BSD C library).
3855         * libc/stdio/cvt.c: Removed.
3856         * libc/stdio/Makefile: Updated.
3857         
3858 Tue Oct 10 12:15:23 1995  steve chamberlain  <sac@slash.cygnus.com>
3859
3860         * libc/sys/win32/syscalls.c (rename): New.
3861         * libc/sys/win32/include/winkernel.h (MoveFileExA): New.
3862
3863 Fri Oct  6 12:18:43 1995  Jim Wilson  <wilson@chestnut.cygnus.com>
3864
3865         * libc/machine/sh/Makefile.in (setjmp.o): Depend on setjmp.S.
3866         * libc/machine/sh/setjmp.S: Rename from setjmp.s.
3867
3868         * libc/sys/sh/Makefile.in (OFILES, all): Delete setjmp.o.
3869         (setjmp.o): Delete rule to build setjmp.o.
3870         * libc/sys/sh/setjmp.S: Delete file.
3871
3872 Fri Oct  6 11:19:05 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
3873
3874         * libc/stdlib/mprec.c (d2b): Added support for _DOUBLE_IS_32BITS.
3875         * libc/stdlib/mprec.h: Fixed constants used for IEEE single float
3876         format.  Added #defines to map d2b, i2b, low0bits, lshift, mult,
3877         pow5mult and s2b to identifiers with leading underscores.
3878         * libc/stdlib/Makefile.in: Add mprec.h as a dependency to dtoa.o,
3879         ecvtbuf.o, mprec.o and strtod.o.  Sort dependencies.
3880
3881 Thu Oct  5 17:27:30 1995  steve chamberlain  <sac@slash.cygnus.com>
3882
3883         * libc/sys/posix/popen.c (sys/types.h): Include.
3884
3885 Thu Oct  5 16:33:01 1995  Doug Evans  <dje@canuck.cygnus.com>
3886
3887         * libc/sys/win32/syscalls.h (fhandler): New struct.
3888         (__lookup_fhandler, __lookup_fhandler_hook): Declare.
3889         (__fhandler_normal): Declare.
3890         (hinfo): New member op_handlers.
3891         * libc/sys/win32/syscalls.c (__read): Don't validate fd.
3892         (__write): Likewise.
3893         (_read, _write, _open, _close, _lseek): Validate fd here.
3894         Move file type specific stuff to foo_normal.
3895         (read_normal, write_normal, open_normal, close_normal, lseek_normal):
3896         New functions.
3897         (__lookup_fhandler): New function.
3898         (__lookup_fhandler_hook, __fhandler_normal): New variables.
3899
3900         From anders.blomdell@control.lth.se (Anders Blomdell)
3901         * libc/sys/win32/crt0.c (vfork_init): Unset __FD_TABLE__.
3902         Don't touch standard handles.
3903         * libc/sys/win32/spawn.c (_spawn): Use STARTF_USESTDHANDLES.
3904         (_execve): Only create __FD_TABLE__ if necessary.
3905         * libc/sys/win32/include/winkernel.h (STARTF_*): Define.
3906
3907 Thu Oct  5 14:25:14 1995  steve chamberlain  <sac@slash.cygnus.com>
3908
3909         * libc/sys/win32/sys/termios.h (FLUSHO): New.
3910         * libc/sys/win32/include/win*.h: Moved a load of prototypes around.
3911         * libc/sys/win32/pipe.c (_fctnl): Ignore F_SETFL without errors.
3912         * libc/sys/win32/exception.c (ehandler3): set strace when a signal
3913         without a handler is received.
3914         * libc/sys/win32/Makefile.in: Remove --nodelete.
3915         * libc/sys/win32/resouce.c (gettimeofday): New.
3916         * libc/sys/win32/syscalls.c (path_to_real_path): New.
3917         * libc/sys/win32/syscalls.h (include/wincon.h): Don't include.
3918
3919 Wed Oct  4 13:10:35 1995  Doug Evans  <dje@canuck.cygnus.com>
3920
3921         * libc/sys/win32/dirsearch.c (opendir): stat real path name.
3922         Don't append "/*" to search pattern if trailing '/' already there,
3923         append "*".
3924         * libc/sys/win32/spawn.c (_spawn): CreateProcess doesn't seem to
3925         like /'s, convert them to \'s.  Handle //<drive>/ path names.
3926         Add space for quoted \'s in arg string.  Print translated prog name
3927         and original prog name.
3928         (_execve): Handle parent doing exec a teensy bit better.
3929         * libc/sys/win32/syscalls.h (__path_to_real_path): Update prototype.
3930         * libc/sys/win32/syscalls.c (__path_to_real_path): Don't assume
3931         path needs conversion, handle both cases.  Delete `const' from result.
3932         (hash_path_name): New function.
3933         (_open): Call it.
3934         (_stat): Likewise.  Fill in more fields for directories.
3935         * libc/sys/win32/wait.c (_wait): Explicitly pass -1 to waitpid.
3936         (wait_for_any): Fix trace message.
3937         (waitpid): Explicitly test for intpid == 0.
3938
3939         From anders.blomdell@control.lth.se (Anders Blomdell)
3940         * libc/sys/win32/spawn.c (__vfork_get_empty_entry): zero fill result
3941         so `next' is valid.
3942
3943 Sat Sep 30 15:00:15 1995  Jason Molenda  (crash@phyeaux.cygnus.com)
3944
3945         * libc/sys/win32/spawn.c (_spawn): Make quoting rules more
3946         complicated.
3947
3948 Sat Sep 30 10:25:57 1995  Jason Molenda    (crash@phydeaux.cygnus.com)
3949
3950         * libc/include/_ansi.h: set _HAVE_STDC if __STDC__ is defined
3951         at all, not just == 1.
3952         * libm/math/wf_acos.c (acosf): check for _HAVE_STDC, not __STDC__.
3953
3954 Sat Sep 30 04:30:09 1995  Jason Molenda   (crash@phydeaux.cygnus.com)
3955
3956         * libc/sys/win32/include/winbase.h: include <wintypes.h> and <winnt.h>
3957         * libc/sys/win32/include/wintypes.h: include <winnt.h>
3958         * libc/sys/win32/include/winnt.h: avoid multiple inclusion of this
3959         file.
3960
3961 Fri Sep 29 01:49:17 1995  steve chamberlain  <sac@slash.cygnus.com>
3962
3963         * libc/sys/syscalls.c (getcwd): Fix off by one error.
3964
3965         * libc/sys/signal.c (sleep): Fill it in.
3966         * libc/sys/termios.c (tcflush): Use PurgeComm
3967         (tcsetattr): Set some more of the bits.
3968         * libc/sys/include/winkernel.h: Add PurgeComm and Sleep.
3969
3970 Fri Sep 29 04:33:53 1995  Doug Evans  <dje@deneb.cygnus.com>
3971
3972         * libc/sys/arm/crt0.S (fp): Initialize to 0.
3973         Conditionally include .idata$3 stuff ifdef __pe__.
3974
3975 Fri Sep 29 01:49:17 1995  steve chamberlain  <sac@slash.cygnus.com>
3976
3977         * libc/sys/win32/crt0.c (hmap_init): Call __init_hinfo.
3978         * libc/sys/win32/pipe.c (pipe): Ditto.
3979         * libc/sys/win32/syscalls.c (__read):  Use new vtime and vmin fields.
3980         * libc/sys/win32/syscalls.h (hinfo): vtime, vmin are new.
3981         * libc/sys/win32/termios.c (tcsetattr): Init new fields.
3982         (tcgetattr): Contents are new.
3983         * libc/sys/win32/include/winkernel.h (DCB): New.
3984         (GetCommState, SetCommState): New.
3985
3986 Thu Sep 28 16:29:09 1995  Doug Evans  <dje@deneb.cygnus.com>
3987
3988         * libc/sys/arm/crt0.S (_start): Define.
3989
3990 Thu Sep 28 12:26:45 1995  steve chamberlain  <sac@slash.cygnus.com>
3991
3992         * libc/sys/arm/crt0.S: Move stack to top of RAM on PIE board.
3993         * libc/sys/arm/syscalls.c (_read, _write): Use the SWI properly.
3994
3995         * libc/sys/win32/sysconf.c: New
3996         * libc/sys/win32/sys/winadvapi.h: New
3997         * libc/sys/win32/syscalls.h (hinfo): Added timeout_len, w_binary, r_binary.
3998         * libc/sys/win32/crt0.c (hmap_init): Initialize new fields.
3999         * libc/sys/win32/pipe.c (pipe): Ditto.
4000         * libc/sys/win32/signal.c (_raise): New.
4001         (_kill): Moved from spawn.c
4002         * libc/sys/win32/spawn.c (kill): Moved to signal.c
4003         * libc/sys/win32/syscalls.c (__read): Use new fields.
4004         (_open): Ditto.
4005         * libc/sys/win32/termios.c (tcflush, tcsetattr, tcgetattr): Fill in.
4006         * libc/sys/win32/exceptions.c (__stack_trace): Keep going for longer.
4007         * libc/include/sys/unistd.h (rmdir): Takes const path.
4008         * libc/include/sys/stat.h (mkdir): Takes const path.
4009         * libc/include/sys/signal.h (SIGTTOU, SIGTTIN): New for win32.
4010
4011 Thu Sep 28 10:11:27 1995  Doug Evans  <dje@canuck.cygnus.com>
4012
4013         * libc/sys/win32/spawn.c (_spawn): Fix quoting.
4014
4015         Add support for specifying paths as //<drive>/foo/bar.
4016         * libc/sys/win32/syscalls.h (__path_needs_conversion_p): Declare.
4017         (__path_to_real_path): Declare.
4018         (PATH_TO_REAL_PATH): New macro.
4019         * libc/sys/win32/syscalls.c (__win32_pid_to_posix_pid): Minor cleanup.
4020         (__path_needs_conversion_p, __path_to_real_path): New functions.
4021         (_open): Fix test for error return from CreateFileA.
4022         Handle new path syntax.
4023         (_link, mkdir, rmdir, getcwd, chdir, stat): Handle new path syntax.
4024         * libc/sys/win32/dirsearch.c (opendir): Likewise.
4025
4026 Wed Sep 27 16:36:46 1995  steve chamberlain  <sac@slash.cygnus.com>
4027
4028         * libc/sys/win32/include/*.h: Reorganized
4029         * libc/sys/win32/include/WINREADME: New.
4030         * libc/sys/win32/Makefile.in (DLLS): Build version.a.
4031         * libc/sys/win32/*.c: Fix for new include scheme.
4032         * libc/sys/win32/crt0.c (__this_uinfo_buf, __this_uinfo): New.
4033         * libc/sys/win32/getlogin.c (getlogin): Use uinfo.
4034         * libc/sys/win32/passwd.c (*): Fix.
4035         * libc/sys/win32/syscalls.c (get[e|][g|u]id): Use passwd info.
4036         (_stat): Get directory owner and permissions right.
4037         * libc/sys/win32/syscalls.h (uinfo): New.
4038         * libc/sys/win32/version.def: Remove leading underscores.
4039
4040 Tue Sep 26 18:18:47 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
4041
4042         * libc/sys/win32/key.c: include "include/wincon.h".
4043
4044 Tue Sep 26 07:21:48 1995  steve chamberlain  <sac@slash.cygnus.com>
4045
4046         * libc/sys/win32/{key, stubs}.c: New.
4047         * libc/sys/win32/Makefile: Adjust to cope.
4048         * libc/sys/win32/crt0.c (vfork_init_first): Cope with -ve pids.
4049         (environ_init): Change env names to upper case.
4050         * libc/sys/win32/dirsearch.c (readdir): Don't fill in inode number.
4051         * libc/sys/win32/passwd.c (*): Fill in the functions.
4052         * libc/sys/win32/pipe.c (_fcntl): F_GETFL returns O_RDWR.
4053         * libc/sys/win32/spawn.c (_spawn): Cope with -ve pids.
4054         * libc/sys/win32/syscalls.c (__win32_pid_to_posix_pid): New function.
4055         (_open): Initialze hmap->execable_p too.
4056         * libc/sys/win32/syscalls.c (getuid, getgid, geteuid, getegid): Return from macros.
4057         (_fstat): Fill in permissions.
4058         * libc/sys/win32/syscalls.h (hinfo): Add execable_p.
4059
4060 Fri Sep 22 13:47:27 1995  Doug Evans  <dje@canuck.cygnus.com>
4061
4062         * configure.in (cfg-ml-com.in invocation): Use ${with_multilib_top}
4063         if defined.
4064         (cfg-ml-pos.in invocation): Likewise.
4065
4066 Fri Sep 22 11:43:44 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
4067
4068         * Makefile.in (MATHOBJS_IN_LIBC): Added s_isinf.o, sf_isinf.o,
4069         s_isnan.o and sf_isnan.o.
4070
4071 Wed Sep 20 14:50:19 1995  Ian Lance Taylor  <ian@cygnus.com>
4072
4073         * All Makefile.in files: added maintainer-clean target as a
4074         synonym for realclean.
4075
4076 Wed Sep 20 11:02:50 1995  Jeff Law  (law@snake.cs.utah.edu)
4077
4078         * libc/include/machine/setjmp.h: Add hppa support.
4079         * libc/machine/hppa/setjmp.S: New file with setjmp/longjmp
4080         support.
4081         * libc/machine/hppa/Makefile.in: Related changes.
4082
4083 Tue Sep 19 12:09:01 1995  J.T. Conklin  <jtc@blues.cygnus.com>
4084
4085         * configure.in (machine_dir): Don't set for v810-*-*.
4086
4087 Fri Sep 15 20:22:08 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
4088
4089         * libc/sys/win32/crt0.c (passover): Change to handle MKS quoting
4090         conventions correctly.
4091
4092 Thu Sep 14 13:37:22 1995  J.T. Conklin  <jtc@blues.cygnus.com>
4093
4094         * libc/stdio/puts.c: Update documentation of return value to match
4095         ANSI standard.
4096
4097 Thu Sep 14 01:52:37 1995  Doug Evans  <dje@canuck.cygnus.com>
4098
4099         Fix file descriptor inheritance.
4100         * libc/sys/win32/syscalls.h (CHILD_P): Define again.
4101         (NOT_OPEN_FD): Fix.
4102         * libc/sys/win32/spawn.c (vfork0): Only create inheritable handle if
4103         close-on-exec flag not set.  Initialize child's entire fd table.
4104         * libc/sys/win32/syscalls.c (_open): Only create inheritable handle if
4105         CHILD_P.
4106         * libc/sys/win32/pipe.c (pipe): Only create new handle as inheritable
4107         if CHILD_P.  Initialize entire hmap entry.
4108         (dup): Only create new handle as inheritable if CHILD_P.
4109         (dup2): Likewise.  Properly initialize hmap entry.
4110
4111         * libc/sys/win32/spawn.c (_execve): Don't pass _P_SEARCH_PATH to
4112         _spawn.
4113         (_exit): Use CHILD_P.
4114         * libc/sys/win32/syscalls.c (_fstat): Fix call to memset.
4115         (_stat): Likewise.
4116
4117 Mon Sep 11 23:09:39 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
4118
4119         * libc/sys/win32/crt0.c (passover): fix up the state table.
4120         * libc/posix/popen.c: Added.
4121         * libc/posix/Makefile.in: compile popen.c.
4122         
4123 Mon Sep 11 11:43:38 1995  J.T. Conklin  <jtc@cygnus.com>
4124
4125         * libc/include/machine/ieeefp.h: On the h8/300, h8/300h and
4126         h8/500 define _DOUBLE_IS_32BITS.
4127
4128 Sat Sep  9 17:55:54 1995  Doug Evans  <dje@canuck.cygnus.com>
4129
4130         Get vfork/exec/spawn/cwait/wait working again.
4131         * libc/sys/win32/syscalls.h (VFORK_NEWBORN_PSEUDO_PID): Define.
4132         (procinfo): New member vfork_level.
4133         * libc/sys/win32/crt0.c (__vfork_next_pid): Delete.
4134         (vfork_init_first): Use GetCurrentProcessId to get pid.
4135         Initialize vfork_level.
4136         (vfork_init): Delete __PID__.
4137         (environ_init): New function.  Undo patch of Aug 19, Posix says
4138         environment variables are case sensitive.
4139         (mainCRTStartup): Call it.
4140         * libc/sys/win32/spawn.c (__vfork_next_pid): Delete.
4141         (my_longjump: Make static.
4142         (_spawn): New argument `h'.  Delete setting of __PID__.
4143         Delete local `idx'.  Look for chars that need quotes, rather than
4144         ones that don't.  Set handle of created process in `h'.
4145         Result is process id if created task.
4146         (allocate_spawn_entry): New function.
4147         (spawnvp, spawnv): Call it.  Store handle and pid in procinfo entry.
4148         (_execve): Set __FD_TABLE__ before spawning child.
4149         Scan our fd table when passing fds, not our parent's.
4150         Store handle and pid in procinfo entry.
4151         (vfork0): Ensure strace message always printed.
4152         Set child pid to VFORK_NEWBORN_PSEUDO_PID.
4153         (vfork): Don't clobber result of vfork0.
4154         * libc/sys/win32/wait.c (cwait): Fix non-error result (is pid).
4155         (wait_for_any): Ignore processes in state FORK_STATE_VFORK_0.
4156
4157         * libc/sys/win32/syscalls.h (procinfo): New members `handle_valid_p'
4158         and `exit_code'.
4159         * libc/sys/win32/spawn.c (allocate_spawn_entry): Initialize them.
4160         (vfork0): Likewise.  Distinguish children, grandchildren, etc. by
4161         adding vfork level to pseudo-pid.  
4162         (vfork1): If not root, set state back to FORK_STATE_VFORK_0.
4163         (spawnvp, spawnv, _execve): Set handle_valid_p if success.
4164         (_exit): If child, set exit code.
4165         (__vfork_record_death): Only close process handle if valid.
4166         * libc/sys/win32/wait.c (wait_for_single): Watch for children that
4167         didn't exec.
4168         (wait_for_any): Likewise.  Start scan after root entry.
4169
4170 Fri Sep  8 18:48:02 1995  Jason Molenda   (crash@phydeaux.cygnus.com)
4171
4172         * libc/include/sys/types.h (off_t): off_t back to 32 bits.
4173         * libc/include/sys/_types.h (_off_t): _off_t back to 32 bits.
4174         * libc/sys/win32/syscalls.c (_fstat): st_size is lower 32-bits
4175         of actual file length.
4176
4177         * libc/sys/win32/sys/wait.h: include <sys/types.h>.
4178         * libc/include/paths.h: _PATH_BSHELL added.
4179         * libc/include/sys/unistd.h: define STDIN_FILENO, STDOUT_FILENO,
4180         and STDERR_FILENO.
4181
4182 Thu Sep  7 21:02:22 1995  Jason Molenda   (crash@phydeaux.cygnus.com)
4183
4184         * libc/include/ar.h: Added.
4185         * libc/include/sys/types.h: ino_t goes back to 32-bits.
4186         * libc/sys/win32/syscalls.h (hinfo): added .namehash field.
4187         * libc/sys/win32/syscalls.c (_open): compute .namehash based
4188         on filename.
4189         (_fstat): use .namehash for inode number of the fd.
4190
4191 Thu Sep  7 12:57:19 1995  steve chamberlain  <sac@slash.cygnus.com>
4192
4193         * libc/sys/win32/{console,ioctl,pipe,spawn,syscalls,wait}.? (*):
4194          Change hinfo to __this_procinfo.
4195         * libc/sys/win32/crt0.c: Remove procinfo_list.
4196
4197 Wed Sep  6 18:38:26 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
4198
4199         * libc/include/sys/types.h (ino_t): Define ino_t correctly for
4200         win32 environment.
4201
4202 Wed Sep  6 18:09:29 1995  Jason Molenda   (crash@phydeaux.cygnus.com)
4203
4204         * libc/sys/win32/include/grp.h: Removed.
4205         * libc/sys/include/grp.h: Added.
4206         * libc/sys/win32/grp.c: Include <grp.h>.
4207
4208 Wed Sep  6 16:52:48 1995  steve chamberlain  <sac@slash.cygnus.com>
4209
4210         * libc/include/sys/signal.h (__need_MAX_SIGNALS): Removed.
4211         (sigset_t, sigaction, SIG_SETMASK, SIG_BLOCK, SIG_UNBLOCK):
4212         Defined for all but strict ANSI.
4213         * libc/include/sys/reent.h (__need_MAX_SIGNALS): Removed.
4214         * libc/include/machine/setjmp.h: Get win32 _JBLEN right.
4215         * libc/signal/signal.c (_signal_r): Changed from using
4216         _MAX_SIGNALS to NSIG.  
4217         * libc/sys/win32/crt0.c (__current_pid, __parent_hmap, __child_hmap,
4218          __hmap): Deleted.
4219         (__strace, __vfork_next_pid): New.
4220         (__exe_suffix): Default to 1.
4221         (passover, table): Understand quoted arguments.
4222         (vfork_init_first): New.
4223         (vfork_init): Initialize new process structure.
4224         (mainCRTStartup): Pass environ to main.
4225         * exceptions.c (__sig_mask): New
4226         (ehandler3): Ignore signals in mask.
4227         (really_exit): Remove CHILD_P test.
4228         * pipe.c (pipe, dup, dup2): Use new process and file structure.
4229         * resource.c (getrusage): Ditto.
4230         * signal.c (sigprocmask): New.
4231         * spawn.c (*): Rewritten.
4232         * syscalls.c (*): Use new process and file structure.
4233         (find_unused_handle): New.
4234         * syscalls.h (MAX_HANDLES): Deleted.
4235         (hinfo): Removed child_created_p.
4236         (MAX_CHILDREN): Deleted.
4237         (vfork_jmp_info, procinfo): New.
4238         * wait.c (*): Mostly new.
4239         * sys/strace.h (_STRACE_PARANOID): New.
4240         * sys/param.h: New file.
4241
4242 Wed Sep  6 17:03:53 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
4243
4244         * libc/include/sys/stat.h: add S_BLKSIZE.
4245         * libc/include/sys/_types.h: _off_t is a 64-bit type under win32.
4246         * libc/include/sys/types.h: define off_t and ino_t to be 64 bit
4247         types under win32.
4248         (mode_t): add a #else to avoid multiple definitons.
4249
4250         * libc/sys/win32/Makefile.in: add grp.c.
4251         * libc/sys/win32/grp.c: include grp.h correctly.
4252         * libc/sys/win32/syscalls.c (_fstat): set almost all of the fields
4253         of the st structure with real information.
4254         * libc/sys/win32 (dirent): d_ino is of type ino_t.
4255
4256 Wed Sep  6 10:41:34 1995  Doug Evans  <dje@canuck.cygnus.com>
4257
4258         * libc/include/sys/types.h (mode_t): Correct for svr4 sparc's
4259         and (maybe) sparc64.
4260         (nlink_t): Provide typedef.
4261
4262 Tue Sep  5 18:46:05 1995  Jason Molenda   (crash@phydeaux.cygnus.com)
4263
4264         * libc/sys/win32/grp.c: New file.
4265         * libc/sys/win32/include/grp.h: New file.
4266
4267 Tue Sep  5 13:47:27 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
4268
4269         * libc/include/machine/ieeefp.h: Added whitespace to make this
4270         file easier to maintain.
4271         On the sh, define either __IEEE_BIG_ENDIAN or __IEEE_LITTLE_ENDIAN
4272         depending on the value of __LITTLE_ENDIAN__.
4273         On the sh3e, define _DOUBLE_IS_32BITS.
4274         
4275 Fri Sep  1 15:35:18 1995  James G. Smith  <jsmith@beauty.cygnus.com>
4276
4277         * libc/sys/vr4300/syscalls.c: Added missing support
4278         routines. _raise() and getpid().
4279
4280 Fri Sep  1 14:12:48 1995  James G. Smith  <jsmith@rtl.cygnus.com>
4281
4282         * configure.in (mips*vr4300*-*-elf): Fixed silly mistake
4283
4284 Fri Sep  1 08:42:11 1995  James G. Smith  <jsmith@beauty.cygnus.com>
4285
4286         * configure.in (mips*vr4300*-idt-*) Add support for RISQ monitor
4287         and VR4300 processor.
4288         * libc/sys/vr4300: Add directory.
4289         * libc/sys/vr4300/{Makefile.in, crt0.S, syscalls.c}: Add SIM
4290         monitor run-time support.
4291
4292 Thu Aug 31 09:16:52 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
4293
4294         * libc/stdlib/Makefile.in (CHEWOUT_FILES): Removed atol.def.
4295         * libc/stdlib/stdlib.tex: Don't include atol.def.
4296
4297 Wed Aug 30 20:38:28 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
4298
4299         * libc/sys/win32/uname.c (uname): hardcode processor as `i386'.
4300
4301 Wed Aug 30 10:48:08 1995  steve chamberlain  <sac@slash.cygnus.com>
4302
4303         * libc/ctype/Makefile.in: Fill in _to* dependencies.
4304
4305 Tue Aug 29 17:14:29 1995  steve chamberlain  <sac@slash.cygnus.com>
4306
4307         * libc/sys/win32/{dirsearch.c,sys/dirent.h}: Fix namespace problems.
4308         * libc/sys/win32/sys/dirent.h (struct dirent): Added d_ino.
4309         * libc/sys/win32/strace.c (__sys_printf): Increase size of buffer.
4310         * libc/sys/win32/smallprint.c (__small_vsprintf): Remove debug.
4311         * libc/sys/win32/dirsearch.c (readdir): Set d_ino.
4312
4313 Tue Aug 29 19:00:09 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
4314
4315         * libc/stdlib/atol.c (atol): DEFUN -> _DEFUN.
4316
4317 Tue Aug 29 16:08:09 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
4318
4319         * libc/stdlib/Makefile.in (OFILES): Added atoff.o and atol.o.
4320         * libc/stdlib/atoff.c: New file.
4321         * libc/stdlib/atof.c (atoff): Moved to atoff.c.
4322         * libc/stdlib/atoi.c (atol): Removed.
4323         * libc/stdlib/atol.c: Removed duplicate documentation.
4324
4325         * libc/include/ctype.h (_tolower, _toupper): Moved inside
4326         #ifndef _STRICT_ANSI conditional.
4327         * libc/ctype/Makefile.in (OFILES): Added _tolower.o and _toupper.o
4328         * libc/ctype/_tolower.c: New file.
4329         * libc/ctype/_toupper.c: New file.
4330         * libc/ctype/tolower.c (_tolower): Moved to _tolower.c.
4331         * libc/ctype/toupper.c (_toupper): Moved to _toupper.c.
4332         * libc/ctype/toascii.c (_toascii): Removed.
4333
4334 Tue Aug 29 12:17:32 1995  Doug Evans  <dje@canuck.cygnus.com>
4335
4336         * libc/sys/sparc64/sys/types.h: Deleted.
4337
4338 Mon Aug 28 22:06:08 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
4339
4340         * libc/sys/win32/uname.c (uname): change `Windows/NT' to `Windows_NT'
4341         and recognize Windows_95 systems.
4342
4343 Mon Aug 28 19:50:54 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
4344
4345         * libc/sys/win32/crt0.c (vfork_init, hmap_init): standard I/O fds
4346         and passed fds should be opened in text mode.
4347
4348 Mon Aug 28 18:51:22 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
4349
4350         * libc/sys/win32/crt0.c (vfork_init): mark passed fds as used
4351         in __hmap, set to binary mode by default.
4352
4353 Tue Aug 22 14:12:37 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
4354
4355         * libc/sys/sh/syscalls.c: Updated all functions to call __trap34.
4356         * libc/sys/sh/trap.S (__trap34): Renamed from __trap3.  Use trap
4357         vector 34.
4358
4359 Sat Aug 19 18:25:37 1995  steve chamberlain  <sac@slash.cygnus.com>
4360
4361         * Makefile.in (install): Install all libraries found in the
4362         top level.  If there's a sys/<type>/include directory,
4363         install those headers into include.
4364
4365         * libc/sys/win32/kernel.def351: Delete
4366         * libc/sys/win32/{comctl32.def, comdlg32.def, ctl3d32.def,
4367         glaux.def, glu32.def, largeint.def, libc.def, libcmt.def,
4368         lz32.def, mgmtapi.def, mpr.def, msacm32.def, msvcrt.def,
4369         nddeapi.def, netapi32.def, odbc32.def, odbccp32.def, oldnames.def,
4370         ole32.def, oleaut32.def, opengl32.def, rasapi32.def, rpcndr.def,
4371         rpcns4.def, rpcrt4.def, scrnsave.def, shell32.def, snmp.def,
4372         uuid.def, vdmdbg.def, version.def, vfw32.def, win32spl.def,
4373         winmm.def, winspool.def, winstrm.def, wsock32.def}: New.
4374
4375         * libc/sys/win32/Makefile.in: Update for new files and new dlltool options.
4376         * libc/sys/win32/crt0.c: Force all env names to upper case.
4377         * libc/sys/win32/sys/win*.h -> libc/sys/win32/include
4378         * libc/sys/win32/*.c: Headers have moved.
4379         * libs/sys/win32/*.[ch]: Test for open_p rather than BAD_HANDLE,
4380         __vfork_child_idx is now __vfork_child_ptr.
4381
4382         * posix/execvp (execvp): Don't crash if no PATH envname.
4383
4384 Fri Aug 18 12:22:59 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
4385
4386         * libc/include/sys/reent.h (_Bigint): Removed _reclaim field.
4387         * libc/reent/reent.c (_reclaim_reent): Free Bigint's by going
4388         through the _freelist instead of through the _reclaim list.
4389         * libc/stdlib/mprec.c (_Balloc): Don't put new node on _reclaim list.
4390         * libc/stdlib/mprec.c (_Bcopy): Make like version in master dtoa.c
4391         sources.
4392
4393 Thu Aug 17 11:03:27 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
4394
4395         * libc/machine/h8500/setjmp.S: New file.
4396         * libc/include/machine/setjmp.h: Updated for H8/500.
4397
4398 Wed Aug 16 16:19:11 1995  steve chamberlain  <sac@slash.cygnus.com>
4399
4400         * libc/sys/win32/syscalls.c (_open): More stracing.
4401         (_stat): Open the file in O_BINARY.
4402
4403 Wed Aug 16 15:49:01 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
4404
4405         * libc/machine/h8300/setjmp.S: New file.
4406         * libc/include/machine/setjmp.h: Updated for H8/300 and H8/300H.
4407
4408 Tue Aug 15 10:31:09 1995  Doug Evans  <dje@canuck.cygnus.com>
4409
4410         * libc/sys/win32/crt0.c (__exe_suffix): New global.
4411         (mainCRTStartup): Set __exe_suffix from LIBC_EXE_SUFFIX.
4412         * libc/sys/win32/spawn.c (_spawn): Add .exe suffix based on
4413         __exe_suffix.  Free fd_tab after setting env variable.
4414         (spawnv,_execve): Update.
4415         * libc/sys/win32/syscalls.h (__exe_suffix): Declare.
4416         * libc/sys/win32/smallprint.c (puts,putn): New (static) functions.
4417         (__small_vfprintf): New function.
4418         * libc/sys/win32/strace.c (__sys_printf): Call __small_vfprintf.
4419         * libc/sys/win32/wait.c (cwait): Validate argument.
4420
4421         * libc/sys/win32/syscalls.c (queue_file_deletion): Add trace message.
4422         (process_deletion_queue): Likewise.
4423
4424         * libc/sys/win32/Makefile.in (lib.a): Don't call $(RANLIB).
4425
4426 Mon Aug 14 10:14:10 1995  steve chamberlain  <sac@slash.cygnus.com>
4427
4428         * libc/sys/win32: Copyrights and gratuitous indenting.
4429
4430 Mon Aug 14 01:32:58 1995  Doug Evans  <dje@canuck.cygnus.com>
4431
4432         * libc/sys/win32/syscalls.c (queue_file_deletion): Finish.
4433         (process_deletion_queue): Likewise.
4434         (__close_all_files): New function.
4435         (_close): Only queue file deletion if really a file.
4436         * libc/sys/win32/spawn.c (_spawn): Only ensure .exe suffix if
4437         _P_APPEND_EXE.
4438         (_exit): Call __close_all_files.
4439
4440         * libc/stdlib/system.c: #include <errno.h>.
4441         (_system_r): Fix results in -DNO_EXEC case.
4442
4443         * libc/sys/win32/sys/dirent.h (DIR): New member __d_dirname.
4444         Reorganize structure.
4445         * libc/sys/win32/dirsearch.c (opendir): Use stat to determine
4446         if argument is valid.  Save directory name in DIR.  malloc space
4447         for dirent struct separately.
4448         * libc/sys/win32/syscalls.c (stat): Fix test for directory.
4449
4450         * libc/include/errno.h (ENAMETOOLONG): Define.
4451         * libc/string/strerror.c (strerror): Reword ENFILE.
4452         Add ENOSYS, ENMFILE, ENOTEMPTY, ENAMETOOLONG.
4453
4454 Sun Aug 13 22:42:25 1995  Doug Evans  <dje@canuck.cygnus.com>
4455
4456         * libc/sys/win32/crt0.c (__progname): New global.
4457         (mainCRTStartup): Support strace=bitmask,filename.
4458         * libc/sys/win32/dirsearch.c (all fns): Add trace messages.
4459         * libc/sys/win32/syscalls.c (_write): Print parent trace message
4460         if error.
4461         (getcwd): Handle len too small.  Convert '\\' to '/'.
4462         * libc/sys/win32/sys/fcntl.h (O_RDWR): = O_RDONLY|O_WRONLY.
4463         Add prototypes for open, creat, fcntl.
4464         (O_APPEND): Change value to conform to Microsoft's value.
4465         * libc/sys/win32/sys/strace.h (_STRACE): Protect in do/while.
4466
4467         * libc/stdlib/getopt.c: New file.
4468         * libc/stdlib/Makefile.in: Build it.
4469
4470 Sat Aug 12 12:17:14 1995  Doug Evans  <dje@canuck.cygnus.com>
4471
4472         * libc/posix/execvp.c (execvp): Watch for DOS drives ifdef _WIN32.
4473         Fix scanning of $PATH.
4474         * libc/posix/exec*.c: Call _execve, not execve.
4475         * libc/posix/execve.c: New file.
4476         * libc/posix/Makefile.in (OFILES): Add execve.o.
4477
4478         * libc/sys/win32/sys/strace.h (_STRACE_ALL, _STRACE_UHOH,
4479         _STRACE_STARTUP, _STRACE_SYSCALL): More bit masks of things to trace.
4480         (_STRACE): If level==0, always print.  Handle new bit mask scheme.
4481         * libc/sys/win32/crt0.c: Update _STRACE calls.
4482         * libc/sys/win32/{pipe.c,resource.c,spawn.c,syscalls.c,wait.c}: Ditto.
4483
4484         * libc/sys/win32/smallprint.c (rn): Fix digit list.
4485
4486         * libc/sys/win32/syscalls.c (__really_exit): Move from here,
4487         * libc/sys/win32/exceptions.c (really_exit): to here. Avoid recursion.
4488         * libc/sys/win32/spawn.c (spawnvp): Pass `prog' as image name.
4489         Print __seterrno trace message first.
4490         (_execve): Renamed from execve.
4491         (vfork): Update __strace usage.
4492         (__vfork_child_pid): Deleted.
4493         (__vfork_children, __vfork_child_idx): New globals.
4494         (_spawnvp): New function.
4495         (spawnvp, spawnv, _execve): Call _spawnvp.
4496         (init_child): Record child in __vfork_children.
4497         (__vfork_get_entry, __vfork_record_death): New functions.
4498         * libc/sys/win32/crt0.c (mainCRTStartup): Initialize __vfork_children.
4499         * libc/sys/win32/kernel32.def (WaitForMultipleObjects): Define.
4500         * libc/sys/win32/syscalls.h (CHILD_P): New macro.  All files updated.
4501         (MAX_CHILDREN, CHILD_INTERIM_PID): Define.
4502         (children): New typedef.
4503         (__vfork_children,__vfork_child_idx): Declare.
4504         (__vfork_get_entry,__vfork_record_death): Declare.
4505         * libc/sys/win32/wait.c (wait_for_single,wait_for_any): New functions.
4506         (waitpid): Handle pid == -1.
4507         * libc/sys/win32/sys/wintypes.h (WaitForMultipleObjects): Declare.
4508         * configure.in (i386-win32): Add -DNO_FORK.
4509         * libc/syscalls/sysfork.c (fork): Don't define for NO_FORK.
4510         * libc/reent/execr.c (_fork_r): Likewise.
4511         * libc/stdlib/system.c (do_system): New function.
4512         If WIN32, try to get shell path from $SH_PATH, use vfork.
4513         (_system_r): Return 1 for (s == NULL) if WIN32 or unix,
4514         otherwise return 0.
4515
4516 Sat Aug 12 11:08:00 1995  steve chamberlain  <sac@slash.cygnus.com>
4517
4518         * libc/stdlib/{mallocr.c, mstats.c}: Move mstats from mallocr to mstats.c.
4519         * libc/sys/win32/fcntl.h: Don't include self.
4520         * libc/sys/win32/sys/strace.h (_STRACE_WM, _strace_wm): New.
4521         * libc/sys/win32/sys/winbase.h: (GetUserName) New.
4522         * libc/sys/win32/sys/wincon.h (HANDLER_ROUTINE): Define correctly.
4523         * libc/sys/win32/sys/wintypes.h (GetFileType, GetCurrentProcess, CloseHandle,
4524         SetFilePointer, CreateFileA, GetFileInformationByHandle, GetStdHandle):
4525         Correct prototypes.
4526         * libc/sys/win32/strace.c: New file.
4527         * libc/sys/win32/smallprint.c: New file.
4528         * libc/sys/win32/crt0.c (func): Delete.
4529         (mainCRTStartup): Fix alloca usage.  Set handles explictly.
4530         * libc/sys/win32/dirsearch.c: Clean up handle usage, fix calls to __seterrno.
4531         * libc/sys/win32/exceptions.c: Lint.
4532         * libc/sys/win32/{ioctl.c, pipe.c, resource.c, spawn.c, cwait.c, syscalls.c}:
4533         Clean up handle usage.
4534         * libc/sys/win32/syscalls.c (__sys_printf): Moved into strace.c
4535         (open.c): Default file type is text.
4536         * libc/sys/win32/uname.c (uname): Use __small_sprintf.
4537         * libc/sys/win32/advapi32.def: New      
4538
4539 Fri Aug 11 17:11:52 1995  Doug Evans  <dje@canuck.cygnus.com>
4540
4541         * configure.in (posix_dir, libc_posix_lib): New variables.
4542         Define LIBC_POSIX_LIB in makefile to be $libc_posix_lib.
4543         (i[345]86-*-win32): Define posix_dir.
4544         Delete -DNO_EXEC.  Define -DHAVE_OPENDIR.
4545         (if unix_dir): Fix typo.
4546         * libc/posix/{Makefile.in,closedir,opendir,readdir,rewinddir,
4547         scandir,seekdir,telldir}: New files.
4548         * libc/posix/{execl.c,execle.c,execlp.c,execv.c,execvp.c}: Move here
4549         from libc/unix.
4550         * libc/Makefile.in (LIBC_POSIX_LIB): Define.
4551         (SUBDIRS): Add posix.
4552         (SUBLIBS): Add $(LIBC_POSIX_LIB).
4553
4554         * libc/include/sys/signal.h (SIGCHLD): Add for _WIN32.
4555         (NSIG): Increase to 21.
4556         * libc/include/sys/unistd.h (pid_t): Move from here,
4557         * libc/include/sys/types.h (pid_t): to here.
4558
4559         * libc/sys/win32/syscalls.h: #include "sys/strace.h".
4560         (__ptrace): Delete.
4561         (hinfo): New members close_exec_p, child_created_p.
4562         (struct exception_list): Define.
4563         (__hmap): Redefine as pointer to table.
4564         (__parent_hmap, __child_hmap): New globals.
4565         (__set_errno, __really_exit): Declare.
4566         (__vfork_child_pid): Declare.
4567         * libc/sys/win32/crt0.c (__strace, __trace_file): New global.
4568         (__orig_stdin, __orig_stdout, __orig_stderr): New globals.
4569         (__parent_hmap, __child_hmap): New globals.
4570         (__hmap): Redefine as pointer to active map.
4571         (__get_console): New function.
4572         (mainCRTStartup): Change leading '=' in environ vars to '!'.
4573         (env __FD_TABLE__): Watch for this and initialize our fd/handle
4574         mapping table from it if defined.
4575         (argv, envp): Dump if __strace >= 4.
4576         (main): Call here.
4577         * libc/sys/win32/exceptions.c (myp): Redefine.
4578         (__syscalls_b): Delete.
4579         (__stack_trace): New function.
4580         (ehandler3): Update to use _STRACE.  Print stack trace.
4581         Call __really_exit instead of exit.
4582         (init_exceptions): Delete args argc,argv.  New arg mine.
4583         * libc/sys/win32/kernel32.def (CreatePipe, DuplicateHandle, FindClose,
4584         FindFirstFileA, FindNextFileA, GetComputerNameA,
4585         GetEnvironmentVariableA, ReadFile, SetEnvironmentVariableA): Define.
4586         * libc/sys/win32/signal.c (signal): Validate arg.
4587         (alarm, sleep): Define as stubs for now.
4588         * libc/sys/win32/syscalls.c (all fns): Update to use _STRACE.
4589         (__syscalls_b, errno): Delete.
4590         (__vfork_child_pid, __vfork_jmp_buf): New globals.
4591         (__seterrno): Handle more errors.
4592         (__sys_printf): Renamed from _ptrace.
4593         (__really_exit): New function.
4594         (queue_file_deletion, process_deletion_queue): New functions.
4595         (__resume_parent): New function.
4596         (_unlink): Handle trying to delete open file.
4597         (__totime_t): Renamed from totime_t.
4598         (setsid, __read, __write): New functions.
4599         (cwait, spawnvp, R, D, getrusage, _execve, _fork, _wait): Delete.
4600         * libc/sys/win32/{dirsearch.c,getlogin.c,misc.c,resource.c,passwd.c,
4601         times.c,spawn.c,pipe.c,wait.c,termios.c,ioctl.c,uname.c}: New files.
4602         * libc/sys/win32/console.c: Update to new definition of __hmap.
4603         * libc/sys/win32/Makefile.in: Build new files.
4604         * libc/sys/win32/sys/{dirent.h,winerror.h,wait.h,termios.h}: New files.
4605         * libc/sys/win32/sys/{ioctl.h,utsname.h}: New files.
4606         * libc/sys/win32/sys/strace.h: Renamed from ptrace.h.
4607         * libc/sys/win32/sys/wintypes.h (GetCurrentDirectoryA): Fix prototype.
4608
4609 Thu Aug 10 16:32:52 1995  Doug Evans  <dje@canuck.cygnus.com>
4610
4611         * libc/sys/h8500hms/misc.c (kill): Handle SIGABRT.
4612
4613 Thu Aug 10 12:07:38 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
4614
4615         * libc/stdlib/{dtoa.c, strtod.c}: Merged assorted changes that
4616         have been made to the master dtoa.c sources (from netlib.att.com)
4617         since they were integrated into newlib in early 1992.  Fixes
4618         problems with storage leaks and handling of numbers with very
4619         negative exponents.
4620         
4621 Wed Aug  9 14:18:39 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
4622
4623         * Makefile.in (all): set rootpre and srcrootpre before calling
4624         sub-makes.
4625
4626 Tue Aug  8 17:20:45 1995  steve chamberlain  <sac@slash.cygnus.com>
4627
4628         * libc/sys/win32/crt0.c: Change __hmap usage.
4629         * libc/sys/win32/exceptions.c: Use _ptrace call.
4630         * libc/sys/win32/syscalls.c: Use _ptrace call.
4631         (read, write): Cope with DOS style CRLF when in TEXT mode.
4632         * libc/sys/win32/syscalls.h: Declare hinfo struct.
4633         * libc/sys/win32/user32.def: Get DefWindowProc arg list right.
4634         * libc/sys/win32/sys/fcntl.h, ptrace.h: New.
4635         * libc/sys/win32/sys/windows.h: Fill in rest of messages.
4636         * libc/sys/win32/sys/wintypes.h: Fix attribute syntax.
4637
4638 Mon Aug  7 13:04:54 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
4639
4640         * libc/include/math.h (cabs, cabsf, drem, dremf): New declarations.
4641
4642         * libm/math/{w_cabs.c, wf_cabs.c, w_drem.c, wf_drem.c}: New files,
4643         wrappers for hypot() and remainder() for BSD libm compatibility.
4644         These are public domain implementations written by me for the
4645         NetBSD libm some time ago.  Note cabs() is required by ucbtest.
4646         * libm/math/Makefile.in (obj): Added w_cabs.o and w_drem.o.
4647         (fobj): Added wf_cabs.o and wf_drem.o.
4648
4649 Thu Aug  3 08:13:05 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
4650
4651         * libc/sys/h8500hms/misc.c: New file.
4652         * libc/sys/h8500hms/Makefile.in (OFILES): Add misc.o.
4653
4654 Wed Aug  2 16:46:27 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
4655
4656         * libc/time/localtime.c (localtime): Fix problem with leap year
4657         handling.  Stole algorithm from Arthur David Olson's tz code.
4658         
4659 Mon Jul 31 10:21:54 1995  steve chamberlain  <sac@slash.cygnus.com>
4660
4661         * configure.in: (z8k-*sim): Renamed z8k-*-coff.
4662
4663         * libc/sys/z8ksim/glue.c (_getpid, _kill): New
4664         (_exit): Use argument.
4665
4666 Fri Jul 28 15:17:04 1995  Doug Evans  <dje@canuck.cygnus.com>
4667
4668         * libc/sys/win32/sys/winbase.h (_WINBASE_H): Define.
4669
4670 Wed Jul 26 16:24:19 1995  steve chamberlain  <sac@slash.cygnus.com>
4671
4672         * libc/sys/sh/trap.S (perrno): Align correctly. (pr 7532)
4673
4674 Mon Jul 24 13:42:52 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
4675
4676         * configure.in (sparc*): Add -DMALLOC_ALIGNMENT=8 to
4677         target_cflags.
4678
4679 Mon Jul 24 11:42:07 1995  steve chamberlain  <sac@slash.cygnus.com>
4680
4681         * libc/sys/win32/crt0.c (mainCRTStartup):  Look for
4682         ptrace with case insensitivity
4683         * libc/sys/win32/{user32.def, gdi32.def, exceptions.c, screen.c,
4684         sys/winbase.h,  sys/windows.h, sys/wintypes.h, sys/winuser.h}:
4685         New files.
4686
4687 Fri Jul 21 11:22:26 1995  Doug Evans  <dje@canuck.cygnus.com>
4688
4689         * Makefile.in: Multilib support moved to ../cfg-ml-{com,pos}.in.
4690         (MULTITOP, MULTIDIRS, MULTISUBDIR, MULTIDO, MULTICLEAN): New variables.
4691         (all, install, *clean): Use new multilib support.
4692         * configure.in: Multilib support moved to ../cfg-ml-{com,pos}.in.
4693
4694 Fri Jul 21 07:11:42 1995  steve chamberlain  <sac@slash.cygnus.com>
4695
4696         * libc/include/sys/signal.h (__WIN32__): New.
4697
4698         * configure.in (i386-*-win32): Remobe SBRK_IS_ALLOC.
4699
4700         * libc/stdlib/mprec.c (Balloc): Fix trampling problem.
4701         (ulp, b2d): Handle 32 bit doubles.
4702         * libc/stdlib/mprec.h:  Handle 32 bit doubles.
4703         * libc/stdlib/strtod.c (_strtod_r): Ditto.
4704
4705 Fri Jul 14 08:24:58 1995  steve chamberlain  <sac@slash.cygnus.com>
4706
4707         from medp@primag.co.uk:
4708         * libc/stdio/setvbuf.c (setvbuf): Fix line buffering on
4709         dynamically allocated buffers.
4710
4711 Thu Jul 20 10:11:03 1995  Fred Fish  <fnf@fishbowl>
4712
4713         * libc/include/sys/unistd.h (_exit):  Add _ATTRIBUTE ((noreturn)).
4714         * libc/stdlib/exit.c (unistd.h):  Include to pick up _exit() declaration.
4715
4716 Thu Jul 20 10:16:25 1995  Michael Meissner  <meissner@tiktok.cygnus.com>
4717
4718         * configure.in (powerpc): Fix previous fix.
4719
4720 Wed Jul 19 14:08:55 1995  Michael Meissner  <meissner@tiktok.cygnus.com>
4721
4722         * configure.in (powerpc-*eabiaix*): Update PowerPC multilib
4723         directories for this target.
4724
4725 Wed Jul 19 00:34:30 1995  Jeffrey A. Law  <law@rtl.cygnus.com>
4726
4727         * configure.in (hppa): Add machine_dir definition.
4728         * libc/machine/hppa: New directory with PA specific implementations
4729         of the basic memory/string functions.
4730
4731 Tue Jul 18 21:16:00 1995  Michael Meissner  <meissner@tiktok.cygnus.com>
4732
4733         * configure.in: Update current PowerPC multilib directories.
4734         Split big and little endian configurations.
4735
4736 Tue Jul 18 11:55:33 1995  Ian Lance Taylor  <ian@cygnus.com>
4737
4738         * configure.in: Add --enable-single-float option to configure to
4739         control use of MIPS single-float directories.  Default to yes.
4740
4741         * Makefile.in (all): Don't recurse into multilib directory if it
4742         does not exist.
4743
4744 Mon Jul 17 15:51:30 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
4745
4746         * libc/sys/sh/syscalls.c: Fix typo.
4747
4748 Mon Jul  3 14:38:52 1995  Steve Chamberlain  <sac@slash.cygnus.com>
4749
4750         * Makefile.in, libc/Makefile.in, libc/sys/Makefile.in:
4751         Pass down DLLTOOL.
4752         * libc/include/process.h: Define WAIT_CHILD.
4753         * libc/include/types.h: Get sizes right for win32.
4754         * configure.in (i386-*-pe): Becomes i386-win32.
4755         * libc/sys/win32/{crt0.c, kernel32.def, longjmp.c, setjmp.c, syscalls.c
4756         wintypes.h,sys/file.h,sys/resource.h}: Second pass.
4757         * libc/stdlib/mallocr.c: Don't round up memory block if SBRK_IS_ALLOC
4758         is defined.
4759
4760 Wed Jun 28 18:34:54 1995  Steve Chamberlain  <sac@slash.cygnus.com>
4761
4762         * configure.in (i[345]86-*-pe):  New target (NT).
4763         * host/any: DLLTOOL new.
4764         * libc/sys/win32/{crt0.c, kernel32.def, longjmp.c, setjmp.c, syscalls.c
4765         wintypes.h,sys/file.h,sys/resource.h}: Preliminary support for
4766         WIN32 (just enough to cross host the comp-tools).
4767
4768 Thu Jun 22 11:45:18 1995  Doug Evans  <dje@canuck.cygnus.com>
4769
4770         * libc/machine/h8300/{cmpsi.S,ucmpsi.S,divhi3.S,mulhi3.S,mulsi3.S}:
4771         Deleted.  These files live in gcc/config/h8300/lib1funcs.asm now.
4772
4773 Mon Jun 19 11:40:40 1995  Doug Evans  <dje@canuck.cygnus.com>
4774
4775         * libc/include/machine/ieeefp.h (arm): Change to always be
4776         __IEEE_BIG_ENDIAN (even on little endian ARM's).
4777
4778 Thu Jun  8 14:22:28 1995  Steve Chamberlain  <sac@slash.cygnus.com>
4779
4780         * libc/sys/crt0.S: Initialze sp, and call exit after main.
4781         * libc/sys/syscalls.c (abort): New.
4782         * configure.in (arm): Define ABORT_PROVIDED.
4783
4784 Wed Jun  7 14:04:35 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
4785
4786         * configure.in (powerpc): Define multidirs.
4787
4788 Mon Jun  5 16:10:13 1995  Doug Evans  <dje@canuck.cygnus.com>
4789
4790         * libc/sys/arm/crt0.S: Add __USER_LABEL_PREFIX__ support.
4791
4792 Thu Jun  1 10:51:47 1995  Sean Eric Fagan <sef@cygnus.com>
4793
4794         * configure.in (sparclite): Delete target_cflags.  Define multidirs.
4795
4796 Wed May 24 14:23:25 1995  Steve Chamberlain  <sac@slash.cygnus.com>
4797
4798         * configure.in, libc/include/machine/ieeefp.h: Modified
4799         for arm:
4800         libc/machine/arm/*, libc/sys/arm/*: New
4801
4802 Tue May 23 13:53:07 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
4803
4804         * libc/include/machine/ieeefp.h: Use __PPC__ instead of
4805           __powerpc__ when determining endianness.
4806
4807 Wed May 10 07:55:56 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
4808
4809         * configure.in (m68*): Add multidir for the m68332.
4810
4811         * host/any (CC): Fix typo in last change.
4812
4813 Fri Apr 14 22:20:31 1995  Ken Raeburn  <raeburn@cujo.cygnus.com>
4814
4815         * libc/include/sys/config.h: Test __m68k__ instead of __m68000__
4816         when determining endianness.
4817         * libc/include/machine/ieeefp.h: Ditto.
4818         * libc/machine/m68k/setjmp.S: Use '&' instead of '#' for immediate
4819         operands.
4820
4821 Fri Apr 14 14:14:29 1995  Doug Evans  <dje@chestnut.cygnus.com>
4822
4823         * libc/include/errno.h (ENOTEMPTY): Define.
4824
4825 Thu Apr  6 12:21:20 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
4826
4827         * configure.in (sparc-sun-sunos*): Add -DMALLOC_ALIGNMENT=8 to
4828           target_cflags.
4829
4830         * libc/sys/sun4/Makefile.in (COPYOFILES): Added rem.o, multiply.o,
4831           and umultiply.o.
4832
4833         * libc/stdio/tmpnam.c (worker): Unconditionally increment count
4834           instead of only when open succeeds.  ANSI requires that multiple
4835           calls to tmpnam() result in different files.
4836
4837         * libc/sys/sun4/Makefile.in (COPYRENAMEOFILES): New macro, list of
4838           objects pulled in from /lib/libc.a that must be renamed before
4839           being pulled into newlib.  /lib/libc.a's div.o conflicted with
4840           newlib's file with the same name.
4841
4842         * libc/stdlib/ldiv.c (ldiv): Call labs() instead of abs().
4843
4844         * host/any (CC, AS, AR, RANLIB): Changed so that executables in
4845           the build tree will only be used if the executables are present
4846           (instead of just the Makefiles).
4847
4848         * libc/include/stdlib.h (mblen, mbtowc, wctomb, mbstowcs,
4849           wcstombs): Define.
4850         * libc/stdlib/{mblen.c, mbstowcs.c, wcstombs.c}: New files, null
4851           versions of these functions that I orignally wrote for the
4852           NetBSD C library.
4853         * libc/stdlib/{mbtowc.c, wctomb.c}: Replaced functions with
4854           versions I wrote for NetBSD.
4855
4856 Wed Mar 29 12:42:42 1995  Kung Hsu  <kung@mexican.cygnus.com>
4857
4858         * libc/sys/sparclite/Makefile.in: add crt0.s and make info.
4859         * libc/sys/sparclite/crt0.s: ditto.
4860
4861 Tue Mar 28 20:28:03 1995  Rob Savoye  <rob@rtl.cygnus.com>
4862
4863         * configure.in: Add soft-float for proelf.
4864
4865 Mon Mar 27 12:07:56 1995  Steve Chamberlain  <sac@bang.hack.com>
4866
4867         * libc/stdlib/mprec.h (Bcopy): Copy the right number
4868         of bytes.
4869
4870 Mon Mar 27 11:24:22 1995  Doug Evans  <dje@chestnut.cygnus.com>
4871
4872         * Makefile.in (all): Depend on `force'.
4873         * configure.in (syscall_dir): Renamed from fake_sys_dir.
4874         (libc_syscall_lib): Renamed from libc_fake_sys_lib.
4875         (LIBC_SYSCALL_LIB): Renamed from LIBC_FAKE_SYS_LIB.
4876         * libc/Makefile.in: Likewise.
4877         * libc/include/reent.h: Update syscall references.
4878         (_fcntl_r): Add prototype.
4879         * libc/syscalls/*.c #include <reent.h>.
4880         (*) Call reentrant version if REENTRANT_SYSCALLS_PROVIDED.
4881
4882 Mon Mar 20 16:57:39 1995  Doug Evans  <dje@deneb.cygnus.com>
4883
4884         * libc/include/sys/stat-dj.h (S_ISBLK): Define.
4885         (S_ISCHR, S_ISDIR, S_ISFIFO, S_ISREG): Define.
4886         * libc/include/sys/stat.h (stat-dj.h): Include ifdef MSDOS.
4887         (time.h, sys/types.h): Always include (even if MSDOS).
4888         (stat): Fix prototype.
4889
4890 Fri Mar 10 11:30:38 1995  Ian Lance Taylor  <ian@cygnus.com>
4891
4892         * configure.in (i[345]86-*-go32): Compile with -DNO_EXEC.
4893
4894 Mon Feb 27 18:00:39 1995  Jim Wilson  <wilson@chestnut.cygnus.com>
4895
4896         * libc/machine/h8500/psi.S (EXTPSIHI_RN_SN): Ifdef out.
4897
4898 Mon Feb 13 16:10:03 1995  Ian Lance Taylor  <ian@cygnus.com>
4899
4900         * libc/include/regdef.h: New file.
4901         * libc/machine/mips/machine/regdef.h: New file.
4902
4903 Mon Feb  6 15:24:29 1995  Doug Evans  <dje@canuck.cygnus.com>
4904
4905         * libc/sys/sparc64/sys/fcntl.h (open): Add ellipsis.
4906
4907 Fri Jan 27 13:52:10 1995  Steve Chamberlain  <sac@splat>
4908
4909         * libc/sys/sh/crt0.S: Pass main's return to exit.
4910         * libc/sys/sh/trap.S: Put errno in the right place.
4911
4912 Tue Jan 24 18:57:56 1995  Ian Lance Taylor  <ian@sanguine.cygnus.com>
4913
4914         * libm/math/e_rem_pio2.c (__ieee754_rem_pio2): Integrate change
4915         from fdlibm 5.2: handle |x| < 3pi/4 more efficiently.
4916         * libm/math/ef_rem_pio2.c: Likewise.
4917         * libm/math/e_log10.c: Remove unused static one.
4918         * libm/math/ef_log10.c: Likewise.
4919         * libm/math/s_frexp.c: Likewise.
4920         * libm/math/sf_frexp.c: Likewise.
4921
4922 Sun Jan 22 21:26:14 1995  Steve Chamberlain  <sac@splat>
4923
4924         * libc/sys/go32/Makefile.in, clock.S, dir.c, setjmp.S, stat.c,
4925         longjmp.S: Upgraded.
4926         * libc/sys/go32/sys/setjmp.h: Upgraded.
4927         * libc/sys/go32/sys/go32.h, dpmi.h: New files.
4928
4929 Fri Jan 20 18:33:18 1995  Ian Lance Taylor  <ian@sanguine.cygnus.com>
4930
4931         * configure.in: Add many entries to multidirs for mips targets.
4932
4933 Wed Jan 18 10:19:25 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
4934
4935         * libm/math/e_jn.c (__ieee754_yn): Integrate change from fdlibm
4936           5.2 which fixes bug where jn(-1,x) is three times larger than
4937           the actual answer.
4938         * libm/math/ef_jn.c (__ieee754_ynf): Likewise.
4939
4940 Sun Jan 15 21:48:58 1995  Steve Chamberlain  <sac@splat>
4941
4942         * libc/sys/w65/sys/syscalls.h: New file
4943         * libc/include/machine/ieeefp.h: W65 support.
4944         * libc/include/sys/config.h: Ditto.
4945         * libc/machine/w65/Makefile.in, cmpsi, divsi3, lshrhi.s, mulsi3.c,
4946         sdivhi3.s, smulhi3.s, udivhi3.s, umodhi3.s: New files.
4947         * libc/sys/w65/Makefile.in, crt0.c, syscalls.c, trap.c: New files.
4948
4949 Wed Jan 11 15:59:01 1995  Ian Lance Taylor  <ian@sanguine.cygnus.com>
4950
4951         * libc/sys/Makefile.in (lib.a, crt0.o): Depend upon subs.
4952
4953 Tue Jan  3 15:57:03 1995  Rob Savoye  <rob@darkstar.cygnus.com>
4954
4955         * Makefile.in, configure.in: Remove any references to the old
4956         "stub" dir.
4957
4958 Thu Dec 22 10:42:08 1994  Ian Lance Taylor  <ian@sanguine.cygnus.com>
4959
4960         * libc/syscalls/sysopen.c: Write _HAVE_STDC version of open, which
4961         uses ... in prototype.
4962
4963
4964 Wed Nov 30 08:39:42 1994  Ian Lance Taylor  <ian@rtl.cygnus.com>
4965
4966         * libc/sys/a29khif/sys/libconfig.h: Remove.
4967         * libc/sys/go32/sys/libconfig.h: Remove.
4968         * libc/sys/sun4/sys/libconfig.h: Remove.
4969         * libc/sys/sysvi386/sys/libconfig.h: Remove.
4970         * libc/sys/sysvnecv70/sys/libconfig.h: Remove.
4971         * libc/sys/sparc64/sys/libconfig.h: Remove.
4972
4973         * libc/include/_ansi.h (_FLOAT_ARG, _FLOAT_RET): Don't define.
4974         * libc/include/sys/config.h (_FLOAT_ARG, _FLOAT_RET): Likewise.
4975         * libc/include/math.h: Change all uses of _FLOAT_RET and
4976         _FLOAT_ARG to float.
4977         * libm/test/math.c: Likewise.
4978         * testsuite/libm.sac/math.c: Likewise.
4979         * testsuite/libm.sac/working/math.c: Likewise.
4980
4981 Wed Nov 23 22:39:28 1994  Steve Chamberlain  (sac@jonny.cygnus.com)
4982
4983         * libc/sys/sh/trap.s,crt0.s,setjmp.s: Renamed with .S so that
4984         gcc calls gas with endian option.
4985         * configure.in (sh): Build little endian version too.
4986
4987 Wed Nov 16 18:21:45 1994  Ian Lance Taylor  <ian@sanguine.cygnus.com>
4988
4989         * configure.in: Configure big and little endian versions for MIPS
4990         targets.
4991
4992 Sat Nov 12 21:12:51 1994  Doug Evans  <dje@canuck.cygnus.com>
4993
4994         * libc/include/limits.h: Deleted.
4995         * libc/include/machine/limits.h: Deleted.
4996
4997 Thu Nov 10 15:32:44 1994  Rob Savoye  <rob@rtl.cygnus.com>
4998
4999         * ChangeLog: Remove stub directory. This has all been rewritten
5000         and moved to devo/libgloss.
5001
5002 Thu Sep 29 18:31:04 1994  Ian Lance Taylor  <ian@sanguine.cygnus.com>
5003
5004         * Makefile.in (dvi): Add to info target, use $@ in sub make.
5005         (docs): Merge into info target.
5006         * libm/Makefile.in (dvi): Add $(srcdir).
5007         * libm/math/Makefile.in (chobjs): Remove underscores from file
5008         names.  Texinfo doesn't like them.
5009         (wacos.def, ...): Add explicit targets for all .def files.
5010         * libm/math/math.tex: Remove underscores from @include file names.
5011         * doc/Makefile.in (dvi): Add dummy target.
5012         * testsuite/Makefile.in (dvi): Add dummy target.
5013
5014 Mon Sep 26 21:17:46 1994  Doug Evans  (dje@canuck.cygnus.com)
5015
5016         * Makefile.in (VERSION): Define.  For net newlib releases.
5017
5018 Thu Sep 22 19:01:26 1994  Doug Evans  (dje@canuck.cygnus.com)
5019
5020         * README: New file.
5021
5022 Mon Sep 19 16:35:23 1994  Jim Wilson  (wilson@sphagnum.cygnus.com)
5023
5024         * libc/stdlib/ecvtbuf.c (_gcvt): Undo last change.
5025
5026 Mon Sep 19 11:44:23 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
5027
5028         * libc/stdlib/setenv.c (_findenv): Declare.
5029
5030         * libc/include/sys/fcntl.h: Fix declarations of open, creat, and
5031         fcntl to not use _EXFUN, and change string parameters to open and
5032         creat to be ``const char *''.
5033         * libc/sys/sparc64/sys/fcntl.h: Likewise.
5034         * libc/sys/sparc64/creat.c (creat): Make PATH const.
5035         * libc/syscalls/sysopen.c: Include <fcntl.h>.
5036         (open) Make _FILE const.
5037         * libc/sys/z8ksim/glue.c (_open): Make BUF const.
5038         (_creat): Make PATH const.
5039         * libc/sys/h8300hms/syscalls.c (_open): Make PATH const.
5040         * libc/sys/h8500hms/syscalls.c (_open): Likewise.
5041         * libc/sys/m88kbug/syscalls.c (open): Likewise.
5042         * libc/sys/sh/syscalls.c (_open): Likewise.
5043         * stub/shared/glue.c (open): Make BUF const.
5044         * stub/ex93x/syscalls.c (open): Make FILENAME const.
5045
5046 Thu Sep  8 16:39:12 1994  Steve Chamberlain  (sac@jonny.cygnus.com)
5047
5048         * libc/include/errno.h: Add ENMFILE
5049         * libc/include/sys/config.h: Support Z8000.
5050         * libc/include/sys/signal.h: New signals for go32.
5051         * libc/machine/h8500/psi.S (__addpsir0r0): New function
5052         * libc/machine/h8500/cmpsi.S (__ucmppsi2): New function
5053         * libc/machine/sh/sdivsi3.s (__sdivsi3): Rewritten.
5054         * libc/stdlib/mallocr.c (_morecore_r): Minimum chunk
5055         size is variable, depending upon CHUNK_POWER.
5056         * libc/sys/go32/*.c: Upgrade to new go32 stuff.
5057
5058 Sun Sep  4 17:42:43 1994  Jim Wilson  (wilson@sphagnum.cygnus.com)
5059
5060         * libc/stdlib/ecvtbuf.c (_gcvt): Output '-' for negative numbers.
5061
5062 Fri Sep  2 10:56:01 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
5063
5064         * libc/include/_ansi.h (_PARAMS): Don't define if already defined.
5065
5066 Wed Aug 24 11:11:03 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
5067
5068         * configure.in: Change i[34]86 to i[345]86.
5069
5070         * libc/include/math.h: Don't define HUGE_VAL if it is already
5071         defined.
5072
5073 Wed Aug 17 15:18:02 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
5074
5075         * testsuite/libm.sac/test_erfc.c: Correct some result values.
5076         * testsuite/libm.sac/test_gammaf.c: Likewise.
5077         * testsuite/libm.sac/test_sin.c: Likewise.
5078         * testsuite/libm.sac/test_tanh.c: Likewise.
5079
5080 Tue Aug 16 16:12:53 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
5081
5082         * libc/include/machine/ieeefp.h: Don't try set endianness if it is
5083         already set.  Define typedefs __int32_t and __uint32_t.
5084         * libc/include/math.h: Include <machine/ieeefp.h>.
5085         (union __dmath): Use __uint32_t.
5086         * libm/math/fdlibm.h, libm/math/*.c: Use __int32_t and __uint32_t
5087         instead of int and unsigned int.
5088
5089 Thu Aug 11 15:16:09 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
5090
5091         Replace the math library with the SunPRO fdlibm package.
5092         * libm/math: Completely changed all files.
5093         * libm/ieeefp: Remove contents and directory.
5094         * libm/Makefile.in (LIBM_FP_LIB): Remove.
5095         (SUBDIRS): Just set to math/lib.a.
5096         * libm/libm.texinfo: Updated for new library.
5097         * libc/include/math.h: Extensive changes for new math library.
5098         * libc/include/ieeefp.h (isnanf, isinff, finitef): Change argument
5099         from _FLOAT_ARG to float.
5100         (maxpowtwo, maxpowtwof): Don't declare.
5101         * configure.in (fp_dir): Removed; was always ieeefp anyhow.
5102         (libm_fp_lib): Removed.
5103         * Makefile.in (MATHOBJS_IN_LIBC): Updated with new file names.
5104         * testsuite/libm.paranoia/Makefile.in (check): Correct --srcdir
5105         argument to ${RUNTEST}.
5106         * testsuite/libm.sac/Makefile.in (LOCAL_CFLAGS): Define.
5107         (.c.o): New rule.
5108         (RUNTESTFLAGS): Set CC and CFLAGS.
5109         (TESTS): Remove test_log2 and test_log2f.
5110         (${TESTS}): Pass ${LOCAL_CFLAGS}, not ${CFLAGS}.
5111         * testsuite/libm.sac/math.c (run_vector_1): Use float, not
5112         _FLOAT_ARG, for single precision argument type.
5113         * testsuite/libm.sac/sac.exp: Treat an error in bit 63 as an
5114         expected failure.  Close the input pipe.
5115         * testsuite/libm.sac/test.c (test_sok, test_iok, test_scok):
5116         Correct misspelling of inaccurate.
5117         (test_mok): Use ``inaccurate'', not ``wrong''.
5118         * testsuite/libm.sac/{test_acos.c, test_acosh.c, test_asin.c,
5119         test_asinh.c, test_atan.c, test_atanh.c, test_ceil.c,
5120         test_ceilf.c, test_cos.c, test_cosh.c, test_erf.c, test_erf.c,
5121         test_fabs.c, test_floor.c, test_floorf.c, test_fmod.c,
5122         test_fmodf.c, test_gamma.c, test_log1p.c, test_log1pf.c,
5123         test_yn.c): Correct many result values.  Many are still wrong.
5124
5125         * libc/stdlib/ecvtbuf.c (print_e): If _dtoa_r sets decpt to 9999,
5126         just copy the string.
5127         (_gcvt): Always return the buffer.
5128
5129 Tue Aug  9 13:43:23 1994  J.T. Conklin  (jtc@phishhead.cygnus.com)
5130
5131         * bcopy.c: fixed documentation, bcopy was not specified by ANSI.
5132
5133 Wed Aug  3 05:39:41 1994  D. V. Henkel-Wallace  (gumby@cygnus.com)
5134
5135         * libc/include/sys/reent.h: (struct _Bigint): add _reclaim
5136         structure.
5137         (struct _reent): add _p5s, _cvtlen, _cvtbuf.
5138         (_reclaim_reent): declare new entry point.
5139         * libc/reent/reent.c (cleanup_glue, _reclaim_reent): new
5140         functions.
5141
5142         * libc/stdlib/mprec.c (Balloc): Keep track of every struct bigint
5143         ever allocated, so that we can later reclaim them all.
5144         (pow5mult): make reentrant.
5145
5146         * libc/stdlib/ecvtbuf.c (fcvtbuf, ecvtbuf): extend these functions
5147         so that when given NULL as a buffer, return a pointer to static
5148         space in the rent structure.  This is not documented behaviour;
5149         it's only to support ecvt and fcvt, which aren't ANSI anyway.
5150         * libc/stdlib/efgcvt.c (fcvt, ecvt) Use new functionality (and
5151         therefore become reentrant).
5152         
5153         * libc/stdlib/dtoastub.c: remove spurious inclusion of mprec.h.
5154
5155 Mon Aug  1 16:52:24 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
5156
5157         * libc/include/machine/ieeefp.h: Check _AM29K, not ___AM29K__.
5158
5159 Thu Jul 28 15:40:21 1994  J.T. Conklin  (jtc@phishhead.cygnus.com)
5160
5161         * Makefile.in: Make link to libg.a after libc.a; this is needed
5162           for the testsuites to build executables when everything comes
5163           from the tree.
5164
5165 Mon Jun 27 17:14:29 1994  Bill Cox  (bill@rtl.cygnus.com)
5166
5167         * libc/Makefile.in: Add a VERSION variable so we can keep track.
5168         * libm/Makefile.in: Add a VERSION variable so we can keep track.
5169
5170 Wed Jun 22 10:26:00 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
5171
5172         * libc/include/stdio.h: Use __VALIST, not va_list.
5173
5174 Tue May 17 15:43:28 1994  Bill Cox  (bill@rtl.cygnus.com)
5175
5176         * testsuite/config/unix-libm.exp, testsuite/lib/libm.exp,
5177         testsuite/libm.sac/execute.exp:
5178           Replace error proc calls with perror calls.
5179
5180 Wed May 11 09:25:28 1994  Doug Evans  (dje@canuck.cygnus.com)
5181
5182         * libc/include/*.h: #include "_ansi.h" instead of <_ansi.h>.
5183         * libc/include/time.h: #define NULL as 0L.
5184
5185 Mon May  9 18:41:20 1994  Doug Evans  (dje@canuck.cygnus.com)
5186
5187         * host/any (INCLUDES): Delete -I of gcc/include, gcc -B takes
5188         care of it.
5189
5190 Mon May  9 18:39:39 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
5191
5192         * libc/include/sys/signal.h: Check for __GO32__, not __i386__ and
5193         not __unix__.
5194
5195 Sat May  7 17:07:36 1994  Steve Chamberlain  (sac@cygnus.com)
5196
5197         * configure.in (TARGET_CFLAGS): Set -O2 as default.
5198         (z8k-*-*): Use syscalls fake sys dir.
5199         * libc/sys/z8k/glue.c: Rename syscalls.
5200         * libc/sys/go32/Makefile.in: Use new routines.
5201         * libc/machine/Makefile.in: Fix typo in ln stuff.
5202
5203 Thu May  5 13:47:48 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
5204
5205         * Makefile.in (libm.a, crt0.o): Use cp if ln fails.
5206         * libc/Makefile.in (crt0.o): Likewise.
5207         * libc/machine/Makefile.in (lib.a): Likewise.
5208         * libc/sys/Makefile.in (lib.a, crt0.o): Likewise.
5209
5210         All Makefile.in files: Added mostlyclean, realclean and distclean
5211         targets.
5212
5213         * Makefile.in: Don't bother to unexport XTRAFLAGS or
5214         XTRAFLAGS_FOR_TARGET, since they are no longer passed down from
5215         the top level Makefile.
5216
5217 Tue Apr 26 15:10:34 1994  Doug Evans  (dje@canuck.cygnus.com)
5218
5219         * libc/sys/sparc64/sys/stat.h: New file.
5220         * libc/sys/sparc64/sys/time.h: New file.
5221         * libc/sys/sparc64/sys/types.h: New file.
5222
5223 Fri Apr 22 12:58:24 1994  Stan Shebs  (shebs@andros.cygnus.com)
5224
5225         * stub/ex93x/crt0.s (start): Add code to clear bss.
5226
5227 Wed Apr 13 10:34:58 1994  Doug Evans  (dje@canuck.cygnus.com)
5228
5229         * libc/include/sys/types.h (time_t): Properly protect inside
5230         #ifndef __time_t_defined.
5231
5232         * libc/stdio/fileno.c: New file.
5233         * libc/stdio/Makefile.in (OFILES, CHEWOUT_FILES): Add fileno.
5234         (fileno.o): Add dependency.
5235         * libc/include/stdio.h (__sgetc): Rename never to _never.
5236         (fileno macro): Disable, needs to do CHECK_INIT first.
5237
5238 Mon Apr 11 17:37:09 1994  Bill Cox  (bill@rtl.cygnus.com)
5239
5240         * testsuite/Makefile.in (EXPECT, RUNTEST): Set these for the check
5241         goal.
5242
5243         * testsuite/Makefile.in (check): Set TCL_LIBRARY for runtest.
5244         * testsuite/libm.paranoia/Makefile.in (check): Set TCL_LIBRARY for
5245         runtest.
5246         * testsuite/libm.sac/Makefile.in (check): Set TCL_LIBRARY for
5247         runtest.
5248
5249 Sat Apr  9 16:18:09 1994  Doug Evans  (dje@cygnus.com)
5250
5251         * libc/sys/sparc64/sys/fcntl.h: New file, define solaris versions
5252         of the various constants.
5253
5254 Thu Apr  7 21:19:07 1994  Mark Eichin  (eichin@cygnus.com)
5255
5256         * libc/include/math.h: #ifndef __math_68881 around things which
5257         conflict with the (gcc-provided) inline functions in
5258         gcc/ginclude/math-68881.h.
5259
5260 Thu Apr  7 02:50:43 1994  Doug Evans  (dje@cygnus.com)
5261
5262         * libc/include/_syslist.h (_gettimeofday): Define.
5263         (_times): Ditto.
5264         * libc/include/reent.h: #include <machine/types.h> to get _CLOCK_T_.
5265         (struct tms, timeval, timezone): Declare.
5266         (_gettimeofday_r, _times_r): Declare.
5267         * libc/include/time.h (_CLOCK_T_): Don't #undef.  Remove
5268         #ifdef _CLOCK_T_ surrounding definition of clock_t.
5269         (time_t): Add multiple definition protection, __time_t_defined.
5270         * libc/include/sys/time.h: Don't #include <time.h>.
5271         Always define struct timezone (remove #ifndef _TIME_H_).
5272         * libc/include/sys/times.h (_CLOCK_T_): Don't #undef.  Remove
5273         #ifdef _CLOCK_T_ surrounding definition of clock_t.
5274         * libc/reent/Makefile.in (OFILES): Add timer.o.
5275         (CHEWOUT_FILES): Add timer.def.  Add timer.o/timer.c dependence.
5276         * libc/reent/timer.c: New file.
5277         * libc/time/clock.c: #include <reent.h>.
5278         (clock): Call _times_r instead of times.
5279         * libc/time/time.c (HAVE_GETTIMEOFDAY): Renamed from
5280         HAVE_GET_TIME_OF_DAY.
5281         Add comment regarding supporting OS routine(s) required (for docs).
5282         #include <reent.h>.
5283         (time): Call _gettimeofday_r instead of gettimeofday.
5284         * libc/time/asctime.c: Fix comment regarding supporting OS routines.
5285         * libc/time/ctime.c: Ditto.
5286         * libc/time/strftime.c: Ditto.
5287         * libc/sys/sparc64/Makefile.in (TEMPLATE_SFILES): Remove gettimeofday.
5288         (TEMPLATE_SFILES_R): Define here.  Also define times.
5289         Add times_r.o/times.S dependence.
5290         (time2.c, junk.c): Deleted.
5291         * libc/sys/sparc64/time2.c: Deleted.
5292         * configure.in (sparc64-*-*): Define HAVE_GETTIMEOFDAY.
5293
5294         * libc/stdio/mktemp.c (_getpid_r): Renamed from _getpid.
5295         * libc/stdio/tmpnam.c (_getpid_r): Ditto.
5296         * libc/sys/sparc64/junk.c: Deleted.
5297
5298 Mon Mar 21 16:51:03 1994  Doug Evans  (dje@canuck.cygnus.com)
5299
5300         * libc/sys/sparc64/Makefile.in: Add times syscall.
5301         * libc/sys/sparc64/crt0.S: Handle stack bias at run time so we can
5302         be used with and without it.  Add comment clarifying Medium/Anywhere
5303         model requirements.
5304         * libc/sys/sparc64/sigsetjmp.S (setjmp, longjmp): Add svr4 support.
5305         * libc/sys/sparc64/sys/syscall.h (SYS_times): Define for sunos4
5306         even if obsolete.
5307
5308 Sun Mar 20 15:51:47 1994  Doug Evans  (dje@cygnus.com)
5309
5310         * configure.in (target_cflags): Move init.
5311         (sparc64-*-*): Define HAVE_BLKSIZE.
5312
5313 Wed Mar  9 10:44:52 1994  Doug Evans  (dje@canuck.cygnus.com)
5314
5315         * libc/include/sys/_types.h: New file.
5316         * libc/include/reent.h: #include it.
5317         Add comment describing REENTRANT_SYSCALLS_PROVIDED and
5318         MISSING_SYSCALL_NAMES.
5319         Sort syscalls.
5320         * libc/include/_syslist.h: Remove _raise.
5321         * libc/reent/signalr.c: New file.
5322         * libc/reent/Makefile.in: Compile it.
5323         * libc/signal/signal.c: Only use ifdef SIMULATED_SIGNALS.
5324         Add doc for raise and _raise_r.
5325         * libc/signal/raise.c: Only use ifndef SIMULATED_SIGNALS.
5326         (raise): Call _raise_r.
5327         (_raise_r): Call _getpid_r and _kill_r.
5328         * libc/stdlib/abort.c: Remove inclusion of stdio.h and _syslist.h.
5329         (abort): Loop forever calling raise and _exit.
5330
5331 Mon Mar  7 14:40:08 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
5332
5333         * configure.in: Remove extraneous echo.
5334
5335 Thu Mar  3 12:14:22 1994  Doug Evans  (dje@canuck.cygnus.com)
5336
5337         * libc/sys/sparc64/sys/dirent.h (MAXNAMLEN): #undef to avoid
5338         collision with unistd.h, and fix for svr4.
5339
5340 Wed Mar  2 13:55:25 1994  Doug Evans  (dje@canuck.cygnus.com)
5341
5342         * libc/stdio/local.h (_llicvt): Declare.
5343         (CVT_BUF_SIZE): Define (and buffer size from 512 to 128).
5344         * libc/stdio/cvt.c: Include "local.h" to get CVT_BUF_SIZE.
5345         (_llicvt): Define.
5346         (_sicvt): Fix function header (`value' is short).
5347         * libc/stdio/vfprintf.c (_vfprintf_r): Use CVT_BUF_SIZE.
5348         Add printing of long long's support.
5349         Add printing of 8 byte pointer support.
5350
5351 Fri Feb 11 21:52:11 1994  Steve Chamberlain  (sac@sphagnum.cygnus.com)
5352
5353         * libc/sys/sh/syscalls.c (pipe, execv, wait, fork, utime, chown,
5354         stat, chmod): New hooks. 
5355         (sbrk): Abort if stack and heap collide.
5356         * libc/machine/sh/udivsi3, libc/machine/sh/sdivsi3 Modified to
5357         shortcut when given small args.
5358         * libc/machine/sh/setjmp.s: Rewritten.
5359         * libc/machine/sh/strcmp.s (strcmp): New function takes advantage
5360         of cmp/str instruction.
5361
5362 Wed Feb  9 15:12:35 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
5363
5364         * configure.in: Accept powerpc* as a CPU type, using fp_dir ieeefp
5365         and machine_dir powerpc.
5366         * libc/include/machine/setjmp.h, libc/include/machine/ieeefp.h:
5367         Add cases for __powerpc__.
5368         * libc/machine/powerpc/Makefile.in, libc/machine/powerpc/setjmp.S:
5369         New files.
5370
5371         * libc/include/stdio.h (_iprintf_r): Declare correctly.
5372
5373 Thu Jan 27 10:36:27 1994  Steve Chamberlain  (sac@cygnus.com)
5374
5375         * libc/stdlib/callocr.c: New file with _calloc_r in it.
5376         * libc/stdlib/calloc.c (calloc_r): Now in callocr.c
5377
5378 Thu Jan 20 15:14:37 1994  Doug Evans  (dje@canuck.cygnus.com)
5379
5380         * libc/stdlib/ecvtbuf.c (print_f): Remove local "done".
5381         (print_e): More comments to describe args, etc.
5382         "type" arg may now be 'g' or 'G' for %g/G format --> remove
5383         trailing blanks.
5384         (_gcvt): Remove locals decpt, sign, end, p, done.
5385         More comments for print_e invocation.
5386         Pass "type" to print_e as is (g/G).
5387
5388 Wed Jan 19 16:34:18 1994  Rob Savoye  (rob@darkstar.cygnus.com)
5389
5390         * stub/shared/m68k-crt0.S: Changed so it compiles (and runs) on a
5391         stock m68000. 
5392
5393 Mon Jan 17 15:41:53 1994  Doug Evans  (dje@canuck.cygnus.com)
5394
5395         * libc/stdlib/mallocr.c (_morecore_r): Fix aligning of pointer so it
5396         works with any sized pointer, including ones bigger than ints and
5397         longs.
5398
5399 Thu Jan  6 14:53:21 1994  Doug Evans  (dje@canuck.cygnus.com)
5400
5401         * libc/sys/sparc64/{time2.c,utime.S,utime2.c}: New files.
5402
5403 Sat Dec 11 16:17:20 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
5404
5405         * libc/include/stdlib.h (_calloc_r): Add prototype.
5406         * libc/machine/h8500/negsi2.c: New file.
5407         * libc/machine/h8500/divsi3.c: Prevent overflow when dividing v
5408         large unsigned numbers.
5409         * libc/machine/h8500/cmpsi.c: Add cmppsi.
5410         * libc/stdlib/mallocr.c (morecore_r): Fix aligning pointers so it
5411         works when sizeof(size_t) != sizeof(char *).
5412         * libc/stdlib/mprec.c (Balloc): Call calloc rather than malloc to
5413         get play area
5414         * libc/stdlib/mprec.h: Define Just_16 if generating for z8000.
5415
5416 Mon Dec  6 15:59:53 1993  Doug Evans  (dje@rtl.cygnus.com)
5417
5418         * libc/include/assert.h (assert): Handle -traditional.
5419
5420 Tue Nov 16 15:49:24 1993  Mark Eichin  (eichin@cygnus.com)
5421
5422         * Makefile.in: added ; after every "fi" and "done" that wasn't at
5423         the end of a line (ie. anything before a backslash continuation)
5424         so that bash handles them.
5425
5426 Tue Nov 16 12:31:57 1993  david d `zoo' zuhn  (zoo@rtl.cygnus.com)
5427
5428         * libc/sys/go32/lstat.s: new file, copied from stat.s and renamed
5429         stat to lstat
5430
5431 Mon Nov 15 15:50:43 1993  Steve Chamberlain  (sac@jonny.cygnus.com)
5432
5433         * libc/sys/sh/crt0.s, libc/sys/sh/trap.s,
5434         libc/machine/sh/sdivsi3.s, libc/machine/sh/setjmp.s,
5435         libc/machine/sh/udivsi3.s: Use new calling convention.
5436
5437 Mon Nov 15 15:25:38 1993  Mark Eichin  (eichin@cygnus.com)
5438
5439         * libc/include/sys/unistd.h, libc/include/sys/stat.h: ANSI-fy
5440         chmod, access, chdir, chown by making _path const. Also fix _amode
5441         param of access.
5442
5443 Fri Nov 12 20:25:28 1993  Mark Eichin  (eichin@cygnus.com)
5444
5445         * libc/sys/a29khif/_tmpnam.s (_tmpnam): renamed function to
5446         _khif_tmpnam, because it doesn't comply with ANSI but may be
5447         useful anyway. Real tmpnam was already in libc/stdio, and was
5448         colliding with this one (pr 2176.) 
5449         * libc/sys/a29khif/stubs.s (tmpnam): removed tmpnam. This file is
5450         the wrong idea anyhow.
5451
5452 Mon Nov  8 07:50:16 1993  Doug Evans  (dje@canuck.cygnus.com)
5453
5454         * configure.in: Remove h8300h, we have multilib now.
5455
5456 Fri Nov  5 12:37:27 1993  Mark Eichin  (eichin@cygnus.com)
5457
5458         * libc/string/strcasecmp.c, libc/string/strncasecmp.c: new
5459         functions, to get preference over the ones in libiberty (since we
5460         provide correct declarations in <string.h>.
5461         * libc/string/Makefile.in: add support for strncasecmp,
5462         strcasecmp.
5463
5464 Fri Nov  5 09:05:45 1993  D. V. Henkel-Wallace  (gumby@blues.cygnus.com)
5465
5466         * Change netware config not to look for cpu explicitly.
5467
5468 Thu Nov  4 14:21:25 1993  Doug Evans  (dje@canuck.cygnus.com)
5469
5470         * libc/sys/sparc64/{creat.c,junk.c}: New files.
5471         * libc/sys/sparc64/Makefile.in: Add dependencies.
5472
5473 Wed Nov  3 10:42:49 1993  Doug Evans  (dje@canuck.cygnus.com)
5474
5475         * configure.in: Clean up v9 a bit, new "os" aoutv8.
5476
5477 Tue Nov  2 10:00:44 1993  D. V. Henkel-Wallace  (gumby@cygnus.com)
5478
5479         * libc/include/sys/reent.h: make structure smaller by allocating
5480         some stuff when needed.
5481         * libc/signal/signal.c: allocate as needed
5482         * libc/stdio/findfp.c,stdio/local.h: ditto
5483         * libc/stdlib/mprec.c: ditto
5484
5485         * libc/time/localtime.c: don't return a dangling stack ptr.
5486
5487 Wed Sep 29 20:42:34 1993  Rob Savoye  (rob@darkstar.cygnus.com)
5488
5489         * stub/mvme135/crt0.S, stub/mvme135/glue.c: Moved to stub/generic.
5490
5491 Wed Sep 29 16:27:49 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
5492
5493         * libc/include/stdio.h (__sputc): comment out static inline which
5494           confuses coff toolchains.
5495
5496 Thu Sep  2 16:31:36 1993  Mark Eichin  (eichin@cygnus.com)
5497
5498         * libc/sys/a29khif/{_close.s, _fstat.s, _lseek.s, _sbrk.s,
5499         _write.s, getpid.c, kill.c, read.s}:
5500         * libc/sys/a29khif/stubs.s: eliminated stubs that already go
5501         through the syscalls directory.
5502
5503 Fri Oct 29 13:59:58 1993  Jeffrey Wheat  (cassidy@cygnus.com)
5504
5505         * configure.in: fixed double quote gotcha.
5506
5507 Wed Oct 27 15:27:09 1993  Rob Savoye  (rob@darkstar.cygnus.com)
5508
5509         * stub/ex931: stub library for sparclite board.
5510         * stub/idp: Renamed from mc68ec. Added contructor table
5511         stuff to linker script.
5512         * stub/mvme135: Renamed from m68kmvme. Added contructor table
5513         stuff to linker script.
5514
5515 Tue Oct 26 17:01:23 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
5516
5517         * configure.in: Configure testsuites only if they exist.
5518
5519 Tue Oct 26 12:37:11 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
5520
5521         * configure.in: Don't set machine_dir for i386 until there is
5522         something in libc/machine/i386 to compile.  For i[34]86-*-netware*
5523         use sys/netware, don't use signal, define NO_EXEC, ABORT_PROVIDED,
5524         CLOCK_PROVIDED and MALLOC_PROVIDED.
5525
5526         * libc/sys/netware: New directory.  Contains simplistic and
5527         probably incorrect stubs for NetWare.  Should be enough to load
5528         the library.
5529         * libc/sys/netware/crt0.c, libc/sys/netware/environ.c,
5530         libc/sys/netware/getpid.c, libc/sys/netware/link.c: New NetWare
5531         stub files.
5532
5533         * libc/reent/execr.c: Don't use if NO_EXEC is defined.
5534         * libc/reent/sbrkr.c: Don't use if MALLOC_PROVIDED is defined.
5535         * libc/stdlib/abort.c: Don't use if ABORT_PROVIDED is defined.
5536         * libc/time/clock.c: Don't use if CLOCK_PROVIDED is defined.
5537
5538 Mon Oct 25 16:48:08 1993  Roland H. Pesch  (pesch@cygnus.com)
5539
5540         * testsuite/Makefile.in: add "docs" dummy target for consistency
5541         with rest of newlib; turn "info" and "install-info" into dummy
5542         targets, since they wouldn't have worked.  (Depended on
5543         nonexistent "doc" subdir.)
5544
5545 Fri Oct 22 20:37:32 1993  david d `zoo' zuhn  (zoo@rtl.cygnus.com)
5546
5547         * configure.in: handle mips* instead of mips
5548
5549 Thu Oct 21 08:57:24 1993  Ian Lance Taylor  (ian@cygnus.com)
5550
5551         * libc/include/sys/dirent.h: New file.  If it is not overridden by
5552         a version of libc/sys/*/sys/dirent.h, it includes the next
5553         <dirent.h> file in case there is one lurking somewhere.
5554
5555 Fri Oct 15 14:17:40 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
5556
5557         * libc/stdlib/strtoul.c (_strtoul_r): Several changes for ANSI
5558         compliance, namely: Accept a minus sign.  Consider a single 0 with
5559         a radix of 0 as being a conversion.  Determine overflow correctly.
5560         If an overflow occurs, set *ptr to the end of the number, not the
5561         middle.
5562         * lib/stdlib/strtol.c (_strtol_r): Determine overflow correctly.
5563
5564 Thu Oct 14 21:49:52 1993  Doug Evans  (dje@canuck.cygnus.com)
5565
5566         * libc/machine/h8300/divsi3.S (divmodsi4): Fix h8300h case.
5567
5568 Fri Oct  1 17:17:34 1993  Doug Evans  (dje@canuck.cygnus.com)
5569
5570         * Makefile.in (INSTALL): Use $srcrootpre.
5571         (crt0.o): Replace $< with $(CRT0_DIR)/$(CRT0), Sun make
5572         can't handle it.
5573         * libc/Makefile.in (crt0.o): Spell out $<, Sun make can't handle
5574         it.
5575         * libc/sys/Makefile.in (crt0.o, lib.a): Ditto.
5576         * stub/Makefile.in (crt0.o, TARGETLIB): Ditto.
5577         * libc/sys/sparc64/Makefile.in (isatty.o): Sun VPATH lossage.
5578         * libm/math/Makefile.in (matherr.o): Ditto.
5579
5580 Thu Sep 30 11:09:17 1993  Steve Chamberlain  (sac@phydeaux.cygnus.com)
5581
5582         * configure.in: Build multidirs for z8k.
5583         * libc/include/stdlib.h (_strtoul_r): add prototype.
5584         * libc/include/machine/limits.h: Get INT_MIN right for all the z8k family.
5585         * libc/include/machine/setjmp.h: Add for z8k.
5586         * libc/machine/z8k/{mulsi.o, udivsi3.o, umodsi3.o, modsi3.o} obsolete.
5587         * libc/sys/z8ksim/glue.c: tidy up.
5588
5589 Mon Sep 20 14:04:46 1993  Doug Evans  (dje@canuck.cygnus.com)
5590
5591         * libc/unix/{execl.c execle.c execlp.c execv.c execvp.c}:
5592         New files.  Requires execve system call.
5593         * libc/unix/Makefile.in: Use them.
5594         * libc/sys/sparc64/{execl.c execle.c execlp.c execv.c execvp.c}:
5595         Deleted, moved to libc/unix.
5596         * libc/sys/sparc64/Makefile.in: Remove them.
5597
5598 Mon Sep 20 10:38:32 1993  Doug Evans  (dje@canuck.cygnus.com)
5599
5600         * libc/sys/sparc64/{template.S template_r.S}: New files.
5601         * libc/sys/sparc64/Makefile.in: Build source for trivial syscalls
5602         from templates.
5603         * libc/sys/sparc64/{chdir.S chmod.S close.S dup.S fcntl.S
5604         fork.S fstat.S lseek.S link.S mkdir.S open.S pipe.S read.S rmdir.S
5605         umask.S unlink.S wait4.S write.S}: Removed, now built from
5606         templates.
5607
5608 Sun Sep 19 14:52:57 1993  Doug Evans  (dje@canuck.cygnus.com)
5609
5610         * libc/time/time.c: #include <_ansi.h>.
5611
5612 Sun Sep 19 13:43:25 1993  Doug Evans  (dje@canuck.cygnus.com)
5613
5614         * configure.in (sparc64-*-*): Remove -D__SIZE_TYPE__.
5615
5616 Mon Sep 13 13:52:16 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
5617
5618         * configure.in: match m8* rather than m88k so that m88110 is
5619           recognized as well.
5620
5621 Tue Sep  7 12:19:32 1993  Doug Evans  (dje@canuck.cygnus.com)
5622
5623         * libc/sys/h8300hms/{Makefile.in, _exit.c, misc.c}:
5624         Renamed exit.c to _exit.c to avoid collision with stdlib/exit.c.
5625         misc.c: New file.
5626
5627         * configure.in: Add multilib support to h8300.
5628
5629 Mon Sep  6 14:07:06 1993  Doug Evans  (dje@canuck.cygnus.com)
5630
5631         * libc/stdlib/abort.c (abort): Remove _VOLATILE from return type.
5632         * libc/include/_ansi.h (_ATTRIBUTE): New macro for __attribute__.
5633         * libc/include/stdlib.h (exit, abort): Add noreturn attribute.
5634
5635 Mon Sep  6 14:24:18 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
5636
5637         * configure.in: Corrected multidirs for sparc target.
5638
5639 Mon Aug 30 15:56:44 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
5640
5641         Support for building newlib multiple times with different
5642         compilation flags.
5643         * configure.in: Only configure doc at top level.  Set multidirs
5644         when appropriate for target, unless not at top level.  If
5645         multidirs is set, independently configure each subdirectory.
5646         Adjust TOP, MULTIDIRS and MULTISUBDIR appropriately in Makefile.
5647         * Makefile.in (MULTIDIRS, MULTISUBDIR): New variables,
5648         automagically set by configure.in.
5649         (all): If MULTIDIRS is set, build multiple copies of libraries.
5650         (install): If MULTIDIRS is set, install multiple copies of
5651         libraries.  Install in $(tooldir)/lib/$(MULTISUBDIR).  If
5652         MULTISUBDIR is set, don't bother to install header files.
5653         * host/any (INCLUDES, CHEW): Use $(SRCTOP) rather than $(TOP) from
5654         ${srcrootpre}.
5655         * stub/configure.in: Set MULTISUBDIR appropriately.
5656         * stub/Makefile.in (install): Install in
5657         $(tooldir)/lib/$(MULTISUBDIR).
5658         * All Makefile.in files: Define SRCTOP as well as TOP.
5659
5660 Mon Aug 30 10:34:24 1993  Doug Evans  (dje@canuck.cygnus.com)
5661
5662         * libc/machine/h8300/{mulhi3.S, divhi3.S}: Comment out if h8300h.
5663         * libc/machine/h8300/{mulsi3.S, divsi3.S}: Add h8300h support.
5664
5665 Thu Aug 26 19:38:12 1993  Doug Evans  (dje@canuck.cygnus.com)
5666
5667         * libc/sys/h8300hms/exit.c (_exit): New function.
5668
5669 Wed Aug 25 16:31:48 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
5670
5671         * configure.in: recognize m88110.
5672
5673 Fri Aug 20 16:46:23 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
5674
5675         * libc/sys/m88kbug/crt0.c: pretty up, remove extraneous comments,
5676           prototype main and call with args.
5677
5678 Fri Jul 30 16:52:47 1993  K. Richard Pixley  (rich@cygnus.com)
5679
5680         First real try at system traps for m88k-bug.
5681         * libc/sys/m88kbug/syscalls.c: many changes.  Convert from stubs
5682           to real trap calls.
5683         * libc/sys/m88kbug/sys/systraps.h: new file.
5684
5685 Tue Jul 27 16:31:16 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
5686
5687         Patches to fix info building when target does not use sys
5688         directory.
5689         * libc/Makefile.in (targetdep.tex): add sys.tex separately.
5690         * libc/sys.tex, libc/sys/sys.tex: moved from libc/sys/sys.tex to
5691           libc/sys.tex.
5692         * libc/sys/Makefile.in (doc): do nothing.
5693
5694 Mon Jul 26 17:08:11 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
5695
5696         * libc/Makefile.in (CRT0): new macro.
5697           (all): depend on $(CRT0) rather than crt0.o.
5698
5699         * configure.in: fix libc_sys_dir -> libc_sys_lib thinko.
5700           do not default crt0, instead, set crt0 and crt0_dir based on
5701           sys_dir and stub_dir.
5702
5703         * Makefile.in (CRT0_DIR): new macro.
5704           (all): depend on $(CRT0) rather than crt0.o which may not exist.
5705           (crt0.o): depend on $(CRT0_DIR)/$(CRT0) rather than simply
5706           $(CRT0).
5707           ($(CRT0)): recur by cd'ing into $(CRT0_DIR).
5708
5709 Sun Jul 25 17:51:51 MDT 1993  Jeffrey Wheat  (cassidy@cygnus.com)
5710
5711         * testsuite/lib/libm.exp: 
5712                 added code to support compiling and linking of tests for 
5713                 libm.sac (paranoia to be added next) and processing the 
5714                 pass or failure of the tests.
5715
5716         * testsuite/config/unix-libm.exp:
5717                 platform specific proc's for dealing with compiler, linker
5718                 and the way we execute and process the test results.
5719
5720         * testsuite/libm.sac/execute.exp:
5721                 generic framework for the sac tests. the config and lib 
5722                 expect code for specific platforms tie it all together.
5723
5724         * testsuite/libm.sac/test_is.c:
5725                 changed the output of the test to be consistant with the
5726                 other tests. parsing of pass nad fail messages is now fixed.
5727
5728 Fri Jul 23 19:20:07 1993  Per Bothner  (bothner@kalessin)
5729
5730         * libc/include/{assert.h, ctype.h, dirent.h, errno.h, fastmath.h,
5731         locale.h, math.h, pwd.h, reent.h, setjmp.h, signal.h, stdio.h,
5732         stdlib.h, string.h, termios.h, time.h, utime.h, utmp.h}: For C++:
5733         #ifdef __cplusplus, surround by extern ""C { ... }.
5734         * libc/include/assert.h:  Do *not* protect assert.h against
5735         multiple inclusion!  Also, #undef it before #define, to allow
5736         redefinition.
5737         * libc/include/stdio.h (getlogin, cuserid):  Removed.  These
5738         should be only in unistd.h.
5739
5740         * libc/include/sys/{fcntl.h, reent.h, stat.h, time.h, times.h,
5741         unistd.h}: For C++: #ifdef __cplusplus, surround by extern ""C {
5742         ... }.
5743
5744 Fri Jul 23 10:15:33 1993  Doug Evans  (dje@canuck.cygnus.com)
5745
5746         * libc/machine/sparc/Makefile.in: Must create a library, even
5747         if empty.
5748
5749 Wed Jul 21 16:00:37 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
5750
5751         * configure.in: set machine_dir for m88k.  edit crt0 definition
5752           into makefiles.
5753
5754         * Makefile.in, libc/Makefile.in (crt0): pull up from lower directories.
5755
5756         * libc/Makefile.in (all): also build crt0.o.
5757
5758         * libc/machine/i386/Makefile.in, libc/machine/sparc/Makefile.in,
5759           libc/machine/z8k/Makefile.in, libm/Makefile.in (clean): no need
5760           to remove CRT0.
5761
5762         * libc/machine/m88k/Makefile.in (TOP, TARGETLIB): removed.
5763           (all): reworked to build in place.
5764           (clean): remove lib.a
5765           (Makefile): remove redundant ./, call $(SHELL) rather than sh.
5766
5767         * libc/sys/m88kbug/crt0.c (start): renamed to _start.
5768           (_start): key off edata rather than _start_bss.
5769
5770 Wed Jul 21 14:29:47 1993  david d `zoo' zuhn  (zoo@cygnus.com)
5771
5772         * libc/include/sys/unistd.h, libc/include/reent.h,
5773         libc/reent/sbrkr.c: change sbrk to return void* instead of char*.
5774
5775 Tue Jul 20 13:19:18 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
5776
5777         * libm/Makefile.in, libc/Makefile.in ($(SUBDIRS)): dollar escape a dollar sign.
5778
5779         * Makefile.in (libc.a): break into two rules, one for libc.a and
5780           one for libc/libc.a.  Force subdirs current before rebuilding
5781           library.
5782           (libm.a): break into two rules, one for libm.a and one for
5783           libm/libm.a.  Force subdirs current before rebuilding library.
5784
5785         * libc/Makefile.in (SUBLIBS): fix typo.
5786
5787         * libc/sys/Makefile.in (all): force descent into subdirs, then
5788           rebuild library iff out of of date.
5789
5790 Fri Jul 16 17:47:57 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
5791
5792         Rework so that library is built and then finished rather than
5793         being built on each invocation of make.
5794
5795         * host/any (machine_dir, sys_dir, signal_dir): these are not
5796           shared and have been moved to their associated Makefile.in's.
5797           (AR_FLAGS): switch to qc which is faster.
5798         * configure.in: no longer assign machine_dir for m88k.  set
5799           stub_dir, stub_lib, & crt0 for m68k*-unknown-{aout,coff}.  If
5800           stub_dir set, then add to configdirs.  add comment about silly
5801           configuration.
5802           (configdirs): drop stub.  It will be added only
5803           when needed.
5804           (libm_fp_lib, libc_unix_lib, libc_signal_lib, libc_machine_lib,
5805           libc_sys_dir, fake_sys_dir, libc_fake_sys_lib, stub_dir,
5806           stub_lib, crt0): new variables for tailoring lower level
5807           makefiles.  Assign accordingly and edit into makefiles.
5808         * libm/Makefile.in: updated copyright.
5809           (TARGETLIB): removed.
5810           (FLAGS_TO_PASS): removed TARGETLIB, machine_dir, sys_dir.
5811           (SUBDIRS): removed TARGETDEP_DIRS.
5812           (LIBM_FP_LIB, SUBLIBS): new macros.
5813           (all): reworked.
5814           (force): new target to force rebuilds.
5815           (Makefile): call $(SHELL) rather than sh.  drop redundant ./
5816         * libc/sys/a29khif/Makefile.in, libc/sys/decstation/Makefile.in,
5817           libc/sys/go32/Makefile.in, libc/sys/h8300hms/Makefile.in,
5818           libc/sys/h8500hms/Makefile.in, libc/sys/m88kbug/Makefile.in,
5819           libc/sys/sh/Makefile.in, libc/sys/sparc64/Makefile.in,
5820           libc/sys/sun4/Makefile.in, libc/sys/sysvi386/Makefile.in,
5821           libc/sys/sysvnecv70/Makefile.in, libc/sys/z8ksim/Makefile.in,
5822           stub/m68kmvme/Makefile.in: updated copyright.
5823           (TARGETLIB, TARGETCRT0, CRT0): macros removed.
5824           (all): reworked.  made this the default rule.
5825           (clean): also remove lib.a.
5826           (Makefile): call $(SHELL) rather than sh.  drop redundant ./
5827         * stub/Makefile.in: updated copyright.
5828           (TARGETLIB, TARGETCRT0, CRT0, TOP): removed.
5829           (stub_lib): new macro.
5830           (FLAGS_TO_PASS): removed TARGETLIB, stub_dir, TARGETCRT0.  Added
5831           RANLIB.
5832           (all): reworked.
5833           (clean, install): assume stub_dir exists.
5834           (Makefile): depend on configure.in.  call $(SHELL) rather than
5835           sh.  drop redundant ./
5836         * stub/configure.in (stublib): new macro, assign it, edit it into
5837           makefiles.
5838         * Makefile, libc/Makefile.in, doc/Makefile.in, libc/sys/Makefile.in:
5839           updated copyright.
5840           (all): reworked.
5841           (Makefile): call $(SHELL) rather than sh.  drop redundant ./
5842         * libc/Makefile.in (TARGETCRT0): removed.
5843           (FLAGS_TO_PASS): dropped TARGETLIB, machine_dir, sys_dir,
5844           TARGETCRT0.
5845           (SUBDIRS): drop TARGETDEP_DIRS.
5846           (LIBC_SIGNAL_LIB, LIBC_SYS_LIB, LIBC_MACHINE_LIB, LIBC_UNIX_LIB,
5847           LIBC_FAKE_SYS_LIB, SUBLIBS): new macros for configuration.
5848           (force): new target to force rebuilds.
5849         * libc/sys/Makefile.in (TARGETCRT0, sys_dir): removed.
5850           (FLAGS_TO_PASS): TARGETLIB, machine_dir, sys_dir, TARGETCRT0
5851           removed.
5852           (clean): assume sys_dir always exists.
5853         * libm/test/Makefile.in (Makefile): call $(SHELL) rather than sh.
5854           drop redundant ./
5855         * libc/ctype/Makefile.in, libc/errno/Makefile.in,
5856           libc/locale/Makefile.in, libc/machine/Makefile.in,
5857           libc/machine/a29k/Makefile.in, libc/machine/h8300/Makefile.in,
5858           libc/machine/h8500/Makefile.in, libc/machine/i386/Makefile.in,
5859           libc/machine/i960/Makefile.in, libc/machine/m68k/Makefile.in,
5860           libc/machine/mips/Makefile.in, libc/machine/necv70/Makefile.in,
5861           libc/machine/sh/Makefile.in, libc/machine/sparc/Makefile.in,
5862           libc/machine/z8k/Makefile.in, libc/reent/Makefile.in,
5863           libc/signal/Makefile.in, libc/stdio/Makefile.in,
5864           libc/stdlib/Makefile.in, libc/string/Makefile.in,
5865           libc/sys/Makefile.in, libc/syscalls/Makefile.in,
5866           libc/time/Makefile.in, libc/unix/Makefile.in,
5867           libm/ieeefp/Makefile.in, libm/math/Makefile.in: updated copyright.
5868           (TARGETLIB): removed.
5869           (all): reworked.
5870           (clean): also remove lib.a.
5871           (Makefile): call $(SHELL) rather than sh.  drop redundant ./
5872         * Makefile.in: (machine_dir, sys_dir, stub_dir, stub_lib, CRT0):
5873           new macros.
5874           (SUBDIRS): moved to follow frag inclusion, change stub to
5875           stub_dir.
5876           (FLAGS_TO_PASS): removed machine_dir, sys_dir, signal_dir which
5877           are now set in the libc Makefile.
5878         * libc/machine/Makefile.in (TARGETCRT0, machine_dir): removed.
5879           (FLAGS_TO_PASS): removed TARGETLIB, machine_dir, sys_dir,
5880           TARGETCRT0.
5881           (force): new target to force rebuilds.
5882         * stub/configure.in: determine and set stub_lib for for Makefile.
5883
5884 Thu Jul 15 12:01:27 1993  Doug Evans  (dje@canuck.cygnus.com)
5885
5886         * libc/sys/h8300hms/Makefile.in: Make `all' the default target.
5887         crt0.s renamed to crt0.S.
5888         * libc/sys/h8300hms/crt0.S: Add h8/300h support.
5889
5890         * libc/machine/h8300/Makefile.in: Make `all' the default target.
5891         * libc/machine/h8300/{cmpsi.S,ucmpsi.S}: #ifdef out entire file if
5892         h8300h.
5893         * libc/machine/h8300/defines.h: Add macros to handle pointers for
5894         h8300 (16 bits) and h8300h (32 bits).
5895         * libc/machine/h8300/{divsi3.S,mulsi3.S,memcpy.S,memset.S,
5896         reg_memcpy.S,reg_memset.S,strcmp.S}: Add h8300h support.
5897
5898 Thu Jul 15 10:13:29 1993  Ian Lance Taylor  (ian@cygnus.com)
5899
5900         * libc/machine/m88k/setjmp.S, Makefile.in: New files; a simple
5901         implementation of setjmp and longjmp for the m88k.
5902         * libc/include/machine/setjmp.h: Added __m88000__ case.
5903
5904 Wed Jul 14 10:10:30 1993  Doug Evans  (dje@canuck.cygnus.com)
5905
5906         * configure.in: Recognize h8300h as variant of h8300.
5907
5908 Tue Jul 13 12:24:11 1993  Steve Chamberlain  (sac@phydeaux.cygnus.com)
5909
5910         * libc/include/sys/unistd.h (read, write): get prototypes right.
5911         (sbrk): New prototype.
5912         * libc/reent/sbrkr.c (sbrkr): Use correct sbrk prototype.
5913         * libc/stdio/local.h: Include unistd.h.
5914         * libc/machine/h8300/syscalls.c: Names have changed.
5915
5916 Mon Jul 12 18:08:42 1993  K. Richard Pixley  (rich@cygnus.com)
5917
5918         * configure.in: add sys_dir assignment for m88k-bug.
5919
5920 Thu Jul  8 09:16:21 1993  Doug Evans  (dje@canuck.cygnus.com)
5921
5922         * libc/sys/sparc64/sys/syscallasm.h: New macros to handle either
5923         a.out or elf.
5924         * libc/sys/sparc64: all *.S files: Use new macros.
5925         * libc/sys/sparc64/isatty.c: New file.
5926         * libc/sys/sparc64/Makefile.in: Stop using /lib/libc.a for
5927         functions beyond what newlib provides.
5928
5929 Thu Jul  8 09:11:28 1993  Doug Evans  (dje@canuck.cygnus.com)
5930
5931         * libc/include/sys/stat.h: Move st_atime so not doubly defined for
5932         svr4.
5933
5934 Thu Jul  8 09:09:16 1993  Doug Evans  (dje@canuck.cygnus.com)
5935
5936         * libc/include/machine/ieeefp.h: Add support for h8/300h.
5937
5938 Fri Jul  2 10:11:20 1993  K. Richard Pixley  (rich@cygnus.com)
5939
5940         * configure.in: add m88k.
5941         * libc/include/machine/ieeefp.h: add case for m88k.  Also add
5942         sanity check so no one else need ever chase what I did to find
5943         this.
5944
5945         * libm/math/Makefile.in (FAKEC): added atanf.c log1pf.c scalbnf.c.
5946
5947 Fri Jul  2 09:15:21 1993  Ian Lance Taylor  (ian@cygnus.com)
5948
5949         * doc/makedoc.c: Include <ctype.h>.
5950
5951 Wed Jun 30 09:35:06 1993  Doug Evans  (dje@canuck.cygnus.com)
5952
5953         * libc/Makefile.in (FLAGS_TO_PASS): Add TARGET_ASFLAGS.
5954         * libc/sys/Makefile.in (FLAGS_TO_PASS): Add TARGET_ASFLAGS.
5955         * libc/machine/Makefile.in (FLAGS_TO_PASS): Add TARGET_ASFLAGS.
5956
5957         * libm/test/Makefile.in (all): Link with ../../lib[cm].a.
5958
5959 Sun Jun 27 17:05:20 1993  Doug Evans  (dje@sphagnum.cygnus.com)
5960
5961         * libc/include/errno.h (ENOSYS): Added.
5962
5963         * libc/unix/getpwd.c (getcwd): Fix typo (_up -> up).
5964
5965 Mon Jun 21 09:03:32 1993  Steve Chamberlain  (sac@phydeaux.cygnus.com)
5966
5967         * libc/stdio/fflush.c (fflush): Check for reent struct
5968         initialization.
5969         * libc/stdio/fdopen.c (fdopen): Avoid namespace conflict.
5970
5971 Fri Jun 18 16:06:05 1993  Mark Eichin  (eichin@rtl.cygnus.com)
5972
5973         * libc/stdlib/dtoastub.c: new file -- move user callable "dtoa"
5974         out of dtoa.c so it doesn't pollute the namespace.
5975         * libc/include/_syslist.h: new file -- mappings from _function to
5976         function, for systems where we can't win (by default, all of them,
5977         until we start updating system calls.)
5978         * libc/syscalls: new directory -- stubs for exporting _function
5979         names as unmodified function names.
5980         * libc/configure.in: add MISSING_SYSCALL_NAMES to enable
5981         _syslist.h on all platforms by default, but put hooks in for
5982         fake_sys_dir so we can include it when we've renamed the system
5983         calls.
5984         * libc/reent/execr.c libc/reent/filer.c libc/reent/fstatr.c
5985         libc/reent/linkr.c libc/reent/sbrkr.c libc/reent/statr.c
5986         libc/signal/raise.c libc/signal/signal.c libc/stdio/fdopen.c
5987         libc/stdio/mktemp.c libc/stdio/tmpnam.c libc/stdlib/abort.c
5988         libc/stdlib/system.c libc/unix/getcwd.c libc/unix/getlogin.c
5989         libc/unix/getpass.c libc/unix/getut.c libc/unix/ttyname.c: change
5990         non ANSI functions to call _function.
5991
5992 Wed Jun  9 09:48:26 1993  Ian Lance Taylor  (ian@cygnus.com)
5993
5994         * libc/stdlib/strtoul.c (_strtoul_r): Handle leading 0 correctly
5995         when base 16 is specified.  Don't accept non-digits if radix > 10.
5996
5997 Thu Jun  3 10:01:15 1993  Doug Evans  (dje@canuck.cygnus.com)
5998
5999         * libc/include/math.h: Rename xxx_r fns to _xxx_r.
6000
6001 Wed Jun  2 16:54:16 1993  Jim Wilson  (wilson@sphagnum.cygnus.com)
6002
6003         * libc/include/sys/stat.h: Surround text after #endif with
6004         comments.
6005
6006 Wed Jun  2 12:47:32 1993  Ian Lance Taylor  (ian@cygnus.com)
6007
6008         * libc/stdlib/mallocr.c: If MALLOC_PROVIDED is defined, just make
6009         _malloc_r, _realloc_r, and free_r call the corresponding
6010         non-reentrant functions.
6011
6012         * libm/math/modf.c (modf): We now take the address of ipart, so
6013         don't make it a register variable.
6014
6015 Tue Jun  1 18:25:54 1993  Doug Evans  (dje@canuck.cygnus.com)
6016
6017         * libm/math/*: Rename all xxx_r fns to _xxx_r.
6018
6019 Wed May 26 22:06:35 1993  Roland H. Pesch  (pesch@cygnus.com)
6020
6021         * libc/libc.texinfo and embedded docn throughout: formatting
6022         improvements, minor rephrasing for clarity, and improved
6023         reentrancy docn.
6024
6025 Sun May 23 17:29:49 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
6026
6027         * libm/ieeefp/infinity.c (maxpowtwof): Fix initialzation bug.
6028
6029         * libc/stdio/cvt.c (_licvt): Print the right value on machines
6030         where sizeof(int) != sizeof(long).
6031
6032 Fri May 21 22:09:32 1993  Roland H. Pesch  (pesch@fowanton.cygnus.com)
6033
6034         * libc/reent/execr.c, libc/reent/filer.c, libc/reent/linkr.c,
6035         libc/reent/sbrkr.c, libc/reent/statr.c, libc/stdio/tmpnam.c,
6036         libc/stdlib/atol.c, libc/stdlib/rand.c, libc/string/strpbrk.c,
6037         libc/string/strspn.c, libm/ieeefp/isnan.c, libm/math/bessel.c,
6038         libm/math/matherr.c: changes for better docn formatting (info).
6039
6040         * libc/libc.texinfo, libc/ctype/ctype.tex, libc/locale/locale/tex,
6041         libc/reent/reent.tex, libc/signal/signal.tex,
6042         libc/stdio/stdio.tex, libc/stdlib/stdlib.tex,
6043         libc/string/strings.tex, libc/sys/sys.tex, libc/time/time.tex,
6044         libm/libm.texinfo, libm/ieeefp/ieeefp.tex, libm/math/math.tex: use
6045         makeinfo node defaulting to get better Info file node structure.
6046         (Requires recent sac change to doc/makedoc.c and doc/doc.str.)
6047         Also include a few formerly missing sections (subroutines).
6048
6049         * doc/doc.str: delete fossil expansion for "func"
6050
6051         * default.menu, no-signal.menu: delete.
6052
6053         * Makefile.in, libc/Makefile.in, configure.in, host/any: simplify
6054         method used to adjust doc for missing "signals" chapter when 
6055         signal_dir is empty.
6056
6057 Thu May 20 21:38:37 MDT 1993  Jeffrey Wheat  (cassidy@cygnus.com)
6058
6059         * configure.in: added testsuite/libm.sac
6060
6061 Wed May 19 14:52:34 1993  Doug Evans  (dje@thepub.cygnus.com)
6062
6063         * libc/sys/sparc64/crt0.S: Set %g4 to 0 (to test Medium/Anywhere
6064         code model).
6065
6066 Tue May 18 13:17:21 1993  Ian Lance Taylor  (ian@cygnus.com)
6067
6068         * libm/Makefile.in: Use $(MAKE) rather than make, and define
6069         MAKEOVERRIDES to be empty.
6070
6071 Mon May 17 08:42:44 1993  Ian Lance Taylor  (ian@cygnus.com)
6072
6073         * configure.in: Don't build mips-*-* with -msoft-float, since that
6074         makes it incompatible with hard floating point.
6075
6076 Mon May 17 00:03:35 MDT 1993  Jeffrey Wheat  (cassidy@cygnus.com)
6077
6078         * Makefile.in: added recursive 'make check'
6079
6080 Thu May 13 16:24:18 MDT 1993  Jeffrey Wheat  (cassidy@cygnus.com)
6081
6082         * configure.in: added ./testsuite ./testsuite/libm.paranoia
6083         * ./testsuite/Makefile.in: created
6084         * ./testsuite/libm.paranoia: paranoia tests added
6085
6086 Thu May 13 10:30:24 1993  Ian Lance Taylor  (ian@cygnus.com)
6087
6088         * configure.in: For mips-*-* set machine_dir to mips.
6089
6090         * libc/machine/mips: New directory.
6091         * libc/machine/mips/Makefile.in: New file.
6092         * libc/machine/mips/setjmp.S: New file; simplistic MIPS version of
6093         setjmp and longjmp.
6094         * libc/include/machine/setjmp.h: Added __mips__ case.
6095
6096         * libc/machine/lmips: Removed unused and useless directory.
6097
6098 Mon May  3 10:22:31 1993  Ian Lance Taylor  (ian@cygnus.com)
6099
6100         * configure.in: Accept i486-*-sco* as well as i386-*-sco*.
6101
6102 Thu Apr 15 15:16:44 1993  Doug Evans  (dje@canuck.cygnus.com)
6103
6104         * libc/sys/sparc64/crt0.S: Add comment (%g1 contains atexit arg at
6105         start up).
6106
6107 Fri Apr  9 13:32:26 1993  Ian Lance Taylor  (ian@cygnus.com)
6108
6109         * libc/include/machine/setjmp-dj.h: Use _SETJMP_DJ_H rather than
6110         SETJMP_H.
6111
6112 Thu Apr  8 10:07:18 1993  Doug Evans  (dje@canuck.cygnus.com)
6113
6114         * libm/test/convert.c: structure member errno -> errno_val.
6115         Must include <errno.h> to use errno, it's a macro now.
6116         * libm/test/math.c: Ditto.
6117         * libm/test/math2.c: Include errno.h.
6118         * libm/test/string.c: Ditto.
6119         * libm/test/test.h: structure member errno -> errno_val.
6120         Remove extern int errno decl.
6121
6122 Thu Apr  8 07:56:33 1993  Ian Lance Taylor  (ian@cygnus.com)
6123
6124         * libc/stdio/Makefile.in: Added dependencies on local header
6125         files.
6126         * libc/stdio/std.h, libc/stdio/vfprintf.h: Removed unused header
6127         files.
6128
6129 Wed Apr  7 16:19:32 1993  Ian Lance Taylor  (ian@cygnus.com)
6130
6131         * libc/include/machine/ieeefp.h: Added __MIPSEB__ case.
6132
6133 Wed Apr  7 10:55:21 1993  Doug Evans  (dje@canuck.cygnus.com)
6134
6135         * libc/stdio/siprintf.c libc/stdio/sscanf.c libc/stdio/vsprintf.c:
6136         Initialize _data.
6137
6138         * libc/stdio/vfprintf.c: No need to declare _icvt, _licvt, _sicvt.
6139         * libc/stdio/local.h: Add prototype for _licvt.
6140
6141         * libc/stdio/ungetc.c (__submore): Use _malloc_r,_realloc_r
6142         instead of malloc,reealloc.
6143
6144         * libc/stdlib/local.h: New file.
6145         * libc/stdlib/efgcvt.c: #include local.h.
6146         (gcvt): Fix call to _gcvt.
6147         * libc/stdlib/ecvtbuf.c: #include local.h.
6148
6149         * libc/stdlib/Makefile.in: new files mallocr.c mstats.c.
6150         * libc/stdlib/mallocr.c mstats.c malloc.h: New files.
6151         * libc/stdlib/malloc.c: main routines moved to mallocr.c.
6152
6153         * libc/stdlib/atexit.c: moved global data to struct _reent.
6154         * libc/stdlib/exit.c: use struct _atexit in struct _reent.
6155
6156         * libc/reent/reent.c (inpure_data): _REENT_INIT macro modified.
6157
6158 Wed Apr  7 09:41:50 1993  Doug Evans  (dje@canuck.cygnus.com)
6159
6160         * libc/include/sys/reent.h: Stuff required by ANSI headers moved
6161         here from ../reent.h.
6162
6163 Tue Apr  6 12:56:01 1993  Ian Lance Taylor  (ian@cygnus.com)
6164
6165         * Makefile.in (MATHOBJS_IN_LIBC): List of object files which
6166         should be provided in both libc.a and libm.a.
6167         (libc.a): Depend on targ-include and libm.a.  Copy
6168         $(MATHOBJS_IN_LIBC) from libm.a to libc.a.
6169         (libm.a): Depend on targ-include.
6170         * configure.in (subdirs): Removed libc/math.
6171
6172 Mon Apr  5 10:18:16 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
6173
6174         * libm/ieeefp/infinity.c (maxpowtwo): Fix initialization bug.
6175
6176 Sat Apr  3 11:06:07 1993  Doug Evans  (dje@canuck.cygnus.com)
6177
6178         * libc/include/{errno.h, math.h, stdio.h, stdlib.h}: Use
6179         sys/reent.h instead of reent.h.
6180         * libc/include/reent.h: Split into two parts: stuff needed by ANSI
6181         headers moved to sys/reent.h.  
6182         * libc/include/signal.h: _MAX_SIGNALS moved to sys/signal.h.
6183         * libc/include/sys/signal.h: Define _MAX_SIGNALS if
6184         __need__MAX_SIGNALS defined.
6185         * libc/include/stdio.h: struct __sFILE moved to sys/reent.h.
6186         std{in,out,err} refer to new _std{in,out,err} members.
6187
6188 Fri Apr  2 11:27:12 1993  Doug Evans  (dje@canuck.cygnus.com)
6189
6190         * libc/include/sys/signal.h: #define _SYS_SIGNAL_H for general
6191         case.
6192
6193 Fri Apr  2 09:41:10 1993  Doug Evans  (dje@canuck.cygnus.com)
6194
6195         * libc/sys/sparc64/execve.S (execve): Insert nop in delay slot,
6196         rather than whatever macro seterrno() has.
6197
6198 Thu Apr  1 16:47:08 1993  Doug Evans  (dje@canuck.cygnus.com)
6199
6200         * libc/locale/locale.c: Reentrant routines _r_xxx renamed to
6201         _xxx_r.  struct reent_struct renamed to struct _reent for ANSI.
6202
6203         * libc/include/machine/fastmath.h: Use _HAVE_STDC instead of
6204         __STDC__.
6205
6206         * libc/reent/{execr.c, filer.c, fstatr.c, linkr.c, reent.c,
6207         reent.tex, sbrkr.c, statr.c}: _r_xxx reentrant routines renamed to
6208         _xxx_r.  struct reent_struct renamed to struct _reent for ANSI.
6209
6210         * libc/signal/signal.c: Reentrant routines _r_xxx renamed to
6211         _xxx_r.  struct reent_struct renamed to struct _reent for ANSI.
6212
6213         * libc/stdio/{fclose.c, fdopen.c, findfp.c, fiprintf.c, flags.c,
6214         fopen.c, fprintf.c, freopen.c, fscanf.c, fseek.c, ftell.c,
6215         fwalk.c, getchar.c, gets.c, iprintf.c, local.h, makebuf.c,
6216         mktemp.c, perror.c, printf.c, putchar.c, puts.c, refill.c,
6217         remove.c, rename.c, scanf.c, setvbuf.c, siprintf.c, sprintf.c,
6218         sscanf.c, stdio.c, tmpfile.c, tmpnam.c, vfprintf.c, vfprintf.h,
6219         vfscanf.c, vprintf.c, vsprintf.c}: Reentrant routines _r_xxx
6220         renamed to _xxx_r.  struct reent_struct renamed to struct _reent
6221         for ANSI.  structure members given leading "_" for ANSI.  Use
6222         _HAVE_STDC instead of __STDC__ and _HAVE_STDARG.
6223
6224         * libc/stdlib/{__adjust.c, calloc.c, dtoa.c, ecvtbuf.c, malloc.c,
6225         mprec.c, mprec.h, rand.c, std.h, strtod.c, strtol.c, strtoul.c,
6226         system.c}: Reentrant routines _r_xxx renamed to _xxx_r.  struct
6227         reent_struct renamed to struct _reent for ANSI.
6228         Structure members given leading "_" for ANSI.
6229         _CONST --> const in prototypes.
6230         Use _HAVE_STDC instead of __STDC__.
6231
6232         * libc/string/strtok.c: Reentrant routines _r_xxx renamed to
6233         _xxx_r.
6234         struct reent_struct renamed to struct _reent for ANSI.
6235         Structure members given leading "_" for ANSI.
6236
6237         * libc/time/asctime.c: Reentrant routines _r_xxx renamed to
6238         _xxx_r.
6239         struct reent_struct renamed to struct _reent for ANSI.
6240
6241         * libm/math/{acos.h, acosh.h, asin.c, asinh.h, atanh.h, bessel.h,
6242         cbrt.h, cosh.h, erf.c, erf.h, error.c, exp.c, fmod.c, frexp.h,
6243         gamma.h, hypot.h, ldexp.c, log.h, log10.c, log1p.c log2.c,
6244         mathimpl.h, pow.c, remainder.c, sincos.c, sinh.h, sqrt.h, tan.c,
6245         tanh.h}: struct reent_struct renamed to struct _reent for ANSI.
6246
6247         * libc/include/{_ansi.h, ctype.h, math.h, reent.h, locale.h,
6248         signal.h, stdio.h, stdlib.h, string.h, time.h}:
6249         Use _HAVE_STDC instead of __STDC__ and _HAVE_STDARG.
6250         #ifndef _STRICT_ANSI non-ANSI routines.
6251         Reentrant routines renamed from _r_xxx to _xxx_r.
6252         No need to use _STRICT_ANSI on _xxx_r reentrant routines.
6253         Use _STRICT_ANSI instead of __STRICT_ANSI, _ANSI_SOURCE, etc.
6254         Clean up namespace (structure members have leading "_").
6255         struct reent_struct renamed to struct _reent for ANSI compliance.
6256         _CONST --> const in function prototypes.
6257
6258         * libc/include/string.h: Add NULL and size_t.
6259
6260         * libc/sys/sparc64/Makefile.in: New syscall routines for link,
6261         unlink, wait, wait4. Reentrant syscall routines close, fork,
6262         fstat, link, lseek, open, read, sbrk, stat, unlink, wait, wait4,
6263         write.
6264         * libc/sys/sparc64/cerror.S (cerror_r): New routine.
6265         * libc/sys/sparc64/{close.S, fork.S, fstat.S, link.S, lseek.S,
6266         open.S, read.S, sbrk.S, stat.S, unlink.S, wait.S, wait4.S,
6267         write.S}: Define reentrant versions.
6268         * libc/sys/sparc64/sys/syscallasm.h (defsyscall_r): New macro for
6269         reentrant syscalls.
6270
6271         * libc/sys/sparc64/crt0.S (start): Fix initialization of environ.
6272
6273         * libc/include/stdlib.h (RAND_MAX): Fix value.
6274
6275 Thu Apr  1 12:28:30 1993  Ian Lance Taylor  (ian@cygnus.com)
6276
6277         * libc/sys/a29khif/_main.c: Removed unnecessary file.
6278         * libc/sys/a29khif/Makefile.in (OFILES): Removed _main.c, moved
6279         VPATH support targets after all: target.
6280
6281         * stub/mvme135/mvme.S: Renamed exceptionhandler to
6282         exceptionHandler, which is what mvme135-stub.c expects.
6283
6284 Wed Mar 31 17:42:03 1993  Doug Evans  (dje@cygnus.com)
6285
6286         * libc/stdio/tmpnam.c (worker): Fix test for _r_open() failure.
6287
6288         * libc/unix/getpass.c (getpass): Use stdin,stderr instead of
6289         def_stdin/def_stderr (latter removed from stdio.h to make it ANSI
6290         compliant).
6291
6292 Tue Mar 30 09:58:21 1993  Doug Evans  (dje@canuck.cygnus.com)
6293
6294         * libc/reent/execr.c (_r_wait): Re-order args to make reent_struct
6295         first.
6296         libc/reent/filer.c (_r_open, _r_close, _r_lseek, _r_read,
6297         _r_write): Ditto.
6298         libc/reent/fstatr.c (_r_fstat): Ditto.
6299         libc/reent/linkr.c (_r_link, _r_unlink): Ditto.
6300         libc/reent/sbrkr.c (_r_sbrk): Ditto.
6301         libc/reent/statr.c (_r_stat): Ditto.
6302
6303         * libc/stdio/fopen.c (_r_fopen): Re-order args to _r_open.
6304         * libc/stdio/freopen.c (freopen): Ditto for _r_open, _r_free.
6305         * libc/stdio/fseek.c (fseek): Ditto for _r_fseek.
6306         * libc/stdio/makebuf.c (__smakebuf): Ditto for _r_fstat.
6307         * libc/stdio/mktemp.c (_gettemp): Ditto for _r_stat, _r_open.
6308         * libc/stdio/remove.c (_r_remove): Ditto for _r_unlink.
6309         * libc/stdio/rename.c (_r_rename): Ditto for _r_link, _r_unlink.
6310         * libc/stdio/stdio.c (__sread): Ditto for _r_read.
6311         (__swrite): Ditto for _r_lseek, _r_write.
6312         (__sseek): Ditto for _r_lseek.
6313         (__close): Ditto for _r_close.
6314         * libc/stdio/tmpnam.c (worker): Ditto for _r_open, _r_close.
6315
6316         * libc/stdlib/malloc.c (_r_morecore): Re-order args to _r_sbrk.
6317         * libc/stdlib/system.c (_r_system): Ditto for _r_wait.
6318
6319         * libc/include/reent.h: Re-order arguments to _r_xxx syscall fns
6320         to make reent_struct the first argument (and thus consistent with
6321         the rest of newlib).
6322
6323         * stub/mvme135/mvme135-stub.c (initializeRemcomErrorFrame): Remove
6324         reference to __STDC__.
6325
6326 Mon Mar 29 12:34:32 1993  Doug Evans  (dje@canuck.cygnus.com)
6327
6328         * libc/stdlib/exit.c (exit): Use _REENT->__cleanup instead of
6329         global __cleanup.
6330
6331 Wed Mar 24 11:54:35 1993  Doug Evans  (dje@canuck.cygnus.com)
6332
6333         * libc/stdio/freopen.c (freopen): Ensure stdio is initialized
6334         first.
6335         libc/stdio/fclose.c (fclose): Ditto.
6336
6337 Tue Mar 23 01:26:52 1993  Doug Evans  (dje@rtl.cygnus.com)
6338
6339         * Run through indent and rename reentrant routines for ANSI.
6340         libc/stdio/{clearerr.c cvt.c fclose.c fdopen.c feof.c ferror.c
6341         fflush.c fgetc.c fgetpos.c fgets.c findfp.c fiprintf.c flags.c
6342         fopen.c fprintf.c fputc.c fputs.c fread.c freopen.c fscanf.c
6343         fseek.c fsetpos.c ftell.c fvwrite.c fwalk.c fwrite.c getc.c
6344         getchar.c gets.c iprintf.c makebuf.c mktemp.c perror.c printf.c
6345         putc.c putchar.c puts.c refill.c remove.c rename.c rewind.c rget.c
6346         scanf.c setbuf.c setvbuf.c siprintf.c sprintf.c sscanf.c stdio.c
6347         tmpfile.c tmpnam.c ungetc.c vfprintf.c vfscanf.c vprintf.c
6348         vsprintf.c wbuf.c wsetup.c local.h}
6349
6350         * libc/locale/locale.c: Reformat and rename for ANSI, GNU style.
6351
6352         * Run through indent and rename xxx_r fns to _r_xxx for ANSI.
6353         libc/stdlib/{__adjust.c __exp10.c __ten_mu.c abort.c abs.c
6354         assert.c atexit.c atof.c atoi.c atol.c bsearch.c calloc.c div.c
6355         dtoa.c ecvtbuf.c efgcvt.c exit.c getenv.c labs.c ldiv.c malloc.c
6356         mbtowc.c mprec.c putenv.c qsort.c rand.c setenv.c strdup.c
6357         strtod.c strtol.c strtoul.c system.c wctomb.c mprec.h}
6358
6359         * Run through indent.
6360         libc/string/{bcmp.c bcopy.c bzero.c index.c memchr.c memcmp.c
6361         memcpy.c memmove.c memset.c rindex.c strcat.c strchr.c strcmp.c
6362         strcoll.c strcpy.c strcspn.c strerror.c strlen.c strncat.c
6363         strncmp.c strncpy.c strpbrk.c strrchr.c strspn.c strstr.c strtok.c
6364         strxfrm.c}
6365
6366         * libc/time/{asctime.c clock.c ctime.c difftime.c gmtime.c
6367         localtime.c mktime.c strftime.c time.c}:
6368         Run through indent and rename xxx_r (reentrant) fns to _r_xxx for ANSI.
6369
6370         * Reformatting + renaming (for ANSI, GNU style, consistency).
6371         libc/include/{_ansi.h, assert.h, ctype.h, errno.h, fastmath.h,
6372         ieeefp.h, locale.h, math.h, paths.h, pwd.h, reent.h, setjmp.h,
6373         signal.h, stdio.h, stdlib.h, string.h, time.h, unistd.h}
6374
6375 Fri Mar 19 11:28:01 1993  Doug Evans  (dje@cygnus.com)
6376
6377         * libc/include/stdio.h (stdin_r): Fix.
6378
6379 Fri Mar 19 09:43:48 1993  Ian Lance Taylor  (ian@cygnus.com)
6380
6381         * Makefile.in: Unexport some variables to keep GNU make from
6382         putting them in the environment and using up needed ARG_MAX space
6383         (a hack is used to let this work with older makes as well).
6384
6385 Tue Mar 16 15:11:08 1993  Ian Lance Taylor  (ian@cygnus.com)
6386
6387         * Makefile.in: Use $(MAKE) rather than make.
6388         (MAKEOVERRIDES): Define to be empty.
6389         (FLAGS_TO_PASS): Don't pass down LD (it's not used).
6390         (libc.a, libm.a): Depend on targ-include.
6391         * host/any (LD): Don't define.
6392         (INCLUDES): Use targ-include.   
6393         * stub/Makefile.in (MAKEOVERRIDES): Define to be empty.
6394         (FLAGS_TO_PASS): Don't pass down LD (it's not used).
6395         * libc/Makefile.in: Use $(MAKE) rather than make.
6396         (MAKEOVERRIDES): Define to be empty.
6397         (FLAGS_TO_PASS): Don't pass LD (it's not used).
6398         (all): Rewrote to be slightly smaller.
6399         * libc/machine/Makefile.in, libc/sys/Makefile.in (MAKEOVERRIDES):
6400         Define to be empty.
6401         (FLAGS_TO_PASS): Don't pass LD (it's not used).
6402         * libm/Makefile.in (FLAGS_TO_PASS): Don't pass LD (it's not used).
6403
6404 Mon Mar 15 08:45:41 1993  Ian Lance Taylor  (ian@cygnus.com)
6405
6406         * libc/sys/go32/gerrno.s: Renamed from errno.s to avoid conflict
6407         with errno/errno.c.
6408
6409 Fri Mar 12 09:46:54 1993  Ian Lance Taylor  (ian@cygnus.com)
6410
6411         * Changes for reentrancy.
6412         libc/stdio/fdopen.c, libc/stdio/freopen.c, libc/stdio/perror.c:
6413         Use ptr->_errno, not errno.
6414         libc/stdio/mktemp.c (mkstemp_r, mktemp_r): New functions.
6415         libc/stdio/remove.c (remove_r): New function.
6416         libc/stdio/rename.c (rename_r): New function.
6417         libc/stdio/fopen.c, libc/stdio/freopen.c, libc/stdio/fseek.c,
6418         libc/stdio/makebuf.c, libc/stdio/mktemp.c, libc/stdio/remove.c,
6419         libc/stdio/rename.c, libc/stdio/stdio.c, libc/stdio/tmpnam.c: Use
6420         reentrant versions of system calls.
6421         libc/stdio/gets.c: Call getchar_f, not nonexistent getchar_r.
6422         libc/stdio/scanf.c: Use stdin_r, not nonexistent stdin_n.
6423         libc/stdio/tmpfile.c: Use tmpnam_f, not nonexistent tmpnam_r.
6424         libc/stdio/findfp.c: Include <string.h>.
6425         libc/stdio/fread.c, libc/stdio/rget.c, libc/stdio/scanf.c: Include
6426         "local.h".
6427         libc/stdio/wbuf.c: Include "fvwrite.h"
6428
6429         * libc/stdlib/{dtoa.c, ecvtbuf.c, mprec.c, strtod.c}: Include
6430         <string.h>.
6431         libc/stdlib/malloc.c: Call sbrk_r rather than sbrk.
6432         (NULL): Don't define if already defined.
6433         libc/stdlib/system.c: Call reentrant versions of system calls.
6434         (system_r): New function.
6435
6436         * Changes for reentrancy.
6437         libc/include/_ansi.h (_PARAMS): New macro.
6438         libc/include/errno.h: Define errno as a macro that calls __errno.
6439         (__errno_r): New macro for reentrant code.
6440         libc/include/math.h: Include reent.h.  Declare many reentrant
6441         functions.
6442         (signgam): Now a macro, not a variable.
6443         (struct exception): Added err field.
6444         libc/include/reent.h: Don't declare __sglue.  Added function
6445         declarations.
6446         (struct reent_struct): Moved errno to beginning.  Added _signgam.
6447         libc/include/stdio.h, libc/include/stdlib.h: Added function
6448         declarations.
6449
6450         * More reentrancy hacking.
6451         libc/errno/errno.c (__errno): New function.
6452         libc/reent/execr.c, libc/reent/filer.c, libc/reent/fstatr.c,
6453         libc/reent/linkr.c, libc/reent/sbrkr.c, libc/reent/statr.c: New
6454         files.
6455         
6456         * Added many new reentrant functions to libm/math/*.
6457         libm/math/error.c (__matherror): Added reent_struct pointer
6458         argument. Changed all callers.
6459         libm/math/gamma.c (signgam): Removed. Set ptr->_signgam, instead.
6460         libm/math/exp.h, libm/math/pow.h, libm/math/sincos.h,
6461         libm/math/tan.h: Removed obsolete unused header files.
6462
6463         * libc/sys/a29khif/stubs.s: Use register lr0, not v0.
6464
6465         * libc/sys/sun/Makefile.in (COPYOFILES): Don't pull in errno.o.
6466
6467 Mon Mar  8 16:43:43 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
6468
6469         * libc/sys/a29khif/stubs.s: clobber safe register, and fill all
6470         delay slots.
6471
6472 Tue Mar  2 14:47:00 1993  Jeffrey Osier      (jeffrey@fowanton.cygnus.com)
6473
6474         * libc/libc.texinfo:  comment out reentrancy chapter (duh)
6475
6476 Tue Mar  2 14:34:16 1993  Jeffrey Osier      (jeffrey@fowanton.cygnus.com)
6477
6478         * libc/reent/reent.tex:  New file.  (text from
6479         newlib/libc/libc.texinfo)
6480         * libc/stdio/tmpnam.c:  fixed doc typo
6481         * libc/stdlib/rand.c:   fixed doc typo
6482
6483 Tue Mar  2 14:34:16 1993  Jeffrey Osier      (jeffrey@fowanton.cygnus.com)
6484
6485         * libc/reent/reent.tex:  New file.  (text from
6486         newlib/libc/libc.texinfo)
6487
6488 Fri Feb 26 12:20:54 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
6489
6490         support for reentrancy
6491         * libc/reent/reent.c, libc/reent/Makefile.in, libc/reent/reent.c:
6492         new files
6493         * libc/errno/errno.c, libc/include/ieeefp.h,
6494         libc/include/locale.h, libc/include/reent.h,
6495         libc/include/signal.h, libc/include/stdio.h,
6496         libc/include/stdlib.h, libc/include/string.h, libc/include/time.h,
6497         libc/signal/signal.c libc/stdio/cvt.c, libc/stdio/fclose.c,
6498         libc/stdio/fdopen.c, libc/stdio/fflush.c, libc/stdio/fgets.c,
6499         libc/stdio/findfp.c, libc/stdio/flags.c, libc/stdio/fopen.c,
6500         libc/stdio/fputc.c, libc/stdio/freopen.c, libc/stdio/fseek.c,
6501         libc/stdio/ftell.c, libc/stdio/fwalk.c, libc/stdio/getchar.c,
6502         libc/stdio/gets.c, libc/stdio/glue.h, libc/stdio/iprintf.c,
6503         libc/stdio/local.h, libc/stdio/makebuf.c, libc/stdio/perror.c,
6504         libc/stdio/printf.c, libc/stdio/putchar.c, libc/stdio/puts.c,
6505         libc/stdio/refill.c, libc/stdio/scanf.c, libc/stdio/setvbuf.c,
6506         libc/stdio/sprintf.c, libc/stdio/tmpfile.c, libc/stdio/tmpnam.c,
6507         libc/stdio/ungetc.c, libc/stdio/vfprintf.c, libc/stdio/vfprintf.h,
6508         libc/stdio/vfscanf.c, libc/stdio/vprintf.c, libc/stdio/wsetup.c,
6509         libc/stdlib/__adjust.c, libc/stdlib/__exp10.c,
6510         libc/stdlib/assert.c, libc/stdlib/atexit.c, libc/stdlib/atol.c,
6511         libc/stdlib/dtoa.c, libc/stdlib/ecvtbuf.c, libc/stdlib/malloc.c,
6512         libc/stdlib/mprec.c, libc/stdlib/mprec.h, libc/stdlib/rand.c,
6513         libc/stdlib/setenv.c, libc/stdlib/std.h, libc/stdlib/strtod.c,
6514         libc/stdlib/strtol.c, libc/stdlib/strtoul.c, libc/string/strtok.c,
6515         libc/time/asctime.c, libc/time/localtime.c, libc/time/mktime.c,
6516         libc/time/strftime.c: modify to provide reentracy.
6517
6518         new routines:
6519         strtok_r, asctime_r, fdopen_r, _cleanup_r, fopen_r, iprintf_r,
6520         perror_r, printf_r, putchar_r, puts_r, scanf_r, sprintf_r,
6521         tmpfile_r, vfiprintf_r, vfprintf_r, strtod_r, dtoa_r, rand_r,
6522         srand_r, strtoul_r,strtol_r, free_r, malloc_r, morecore_r,
6523         mstats_r, realloc_r, localeconv_r, setlocale_r
6524
6525 Wed Feb 17 20:17:15 1993  Mark Eichin  (eichin@cygnus.com)
6526
6527         * libc/include/machine/ieeefp.h, libc/include/machine/setjmp.h,
6528         libc/include/sys/config.h, libc/include/sys/signal.h,
6529         libc/include/sys/stat.h, libc/include/sys/types.h: For compiler
6530         provided macros (such as m68000), use the ansi version
6531         (__m68000__) so that the library can be used with code compiled
6532         -ansi. In particular, m68000, mc68000, _AM29K, i386, MIPSEL, unix,
6533         and sparc.
6534
6535 Wed Feb 17 13:01:34 1993  Jim Wilson  (wilson@sphagnum.cygnus.com)
6536
6537         * configure.in (sparc*): Don't set -fsoft-float for sparc
6538         configurations.  Do set -fsoft-float for sparclite configurations.
6539
6540 Fri Feb 12 16:25:52 1993  Roland H. Pesch  (pesch@fowanton.cygnus.com)
6541
6542         * default.menu, no-signal.menu: alternate forms of libc main menu
6543           (in newlib rather than newlib/libc due to configuration restrictions)
6544
6545         * configure.in: select one of the two menus above, link to
6546         libc.menu
6547
6548         * libc/libc.texinfo: include menu from separate file
6549
6550 Fri Feb 12 12:50:06 1993  Ian Lance Taylor  (ian@cygnus.com)
6551
6552         * Makefile.in (FLAGS_TO_PASS): Put INSTALL back in.
6553         (info): Split long shell command in half.
6554         * libc/Makefile.in (info, targetdep.tex): Don't pass everything to
6555         sub-makes, just CHEW and TARGETDOC. 
6556         (targetdep.tex): Removed now special handling of sys and machine
6557         subdirectories, made obsolete some time ago.
6558         * libc/machine/Makefile.in (doc): Don't pass everything to
6559         sub-make, just CHEW and TARGETDOC.
6560         (Makefile): New target.
6561         * libc/sys/Makefile.in (Makefile): New target.
6562
6563 Thu Feb 11 15:25:15 1993  Ian Lance Taylor  (ian@cygnus.com)
6564
6565         * Makefile.in (here and most subdirectories): Only pass down CHEW
6566         and TARGETDOC when making info, not for other targets.
6567
6568         * Makefile.in (here and most subdirectories), host/any: Use $(AR)
6569         $(AR_FLAGS) rather than $(ARUPDATE).
6570
6571 Wed Feb 10 11:57:52 1993  Ian Lance Taylor  (ian@cygnus.com)
6572
6573         * Try to reduce command line length:
6574         * Makefile.in (FLAGS_TO_PASS): don't pass down exec_prefix,
6575         CC_FOR_BUILD, CFLAGS_FOR_BUILD, INSTALL or CHEW.
6576         (info, docs): pass CC_FOR_BUILD and CFLAGS_FOR_BUILD to doc.
6577         (info): Pass CHEW to other subdirs.
6578
6579 Tue Feb  9 14:01:42 1993  Mark Eichin  (eichin@cygnus.com)
6580
6581         * configure.in: add signal_dir, like unix_dir, but by default it
6582         is set to "signal" so that a29khif can turn it off (since a29khif
6583         has raise() as part of machine-specific signal.s.)
6584
6585 Fri Jan 15 12:09:50 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
6586
6587         * libc/sys/config.h, libc/machine/ieeefp.h: add Z8000 support
6588         * libc/stdio/Makefile.in: pass CFLAGS so vfiprintf.c gets built
6589         correctly.
6590         * libc/stdio/fdopen.c, libc/stdio/fgets.c, libc/stdio/fscanf.c,
6591         libc/stdio/vfprintf: type lint.
6592         * libc/sys/z8ksim/crt0.c (start): Z8001/Z8002 independent
6593         initialzation code.
6594         * libc/sys/z8ksim/glue.c: Z8001/Z8002 clean system calls.
6595
6596 Tue Dec 29 10:15:33 1992  Ian Lance Taylor  (ian@cygnus.com)
6597
6598         * stub/mvme135/mvme135-asm.S: new file.
6599         stub/mvme135mvme135-stub.c: moved all assembler routines into
6600         mvme135-asm.S.
6601         stub/mvme135/Makefile.in: build mvme135-stub.o.
6602
6603 Mon Dec 28 12:40:43 1992  Ian Lance Taylor  (ian@cygnus.com)
6604
6605         * Makefile.in: don't pass down $(CPP); use $(CC) -E in
6606         sub-Makefiles instead, to try to avoid line length limitations.
6607
6608 Mon Dec 21 18:36:13 1992  Per Bothner  (bothner@rtl.cygnus.com)
6609
6610         * libc/include/unistd.h (read, write):  Use void* instead of
6611         char*.
6612
6613 Thu Dec 17 13:49:46 1992  Mark Eichin  (eichin@cygnus.com)
6614
6615         * stub/go32/resetpc: sample script to send a reset packet to the
6616         stub
6617
6618         * stub/go32/I386STUB.C: new file, gdb/i386stub.c modified for the
6619         DOS environment, which compiles with Turbo C.
6620
6621         * stub/go32/DSER32.LNK: new file, linker commands for serial
6622         remote stub.
6623
6624         * stub/go32/CONTROL.C: turn off debug_mode, add CYGNUS tag line to
6625         start up message to identify version; call set_debug_traps.
6626
6627         * stub/go32/DEBUG.C: turn off debug_mode (so stub doesn't need any
6628         keyboard interaction); call handle_exception() in go_til_stop,
6629         rather than return, so that the remote stub gets control.
6630
6631         * stub/go32/MAKEFILE: fixed to actually use DOS commands (del and
6632         rename, rather than mv), set flags that work with current Turbo C,
6633         including using the /3 flag; also, add commands to build dser32.
6634
6635         * stub/go32/DEBUG32.LNK, stub/go32/GO32.LNK: fix paths to match
6636         default Turbo C installation (\tc rather than \usr)
6637
6638         * stub/go32/MONO.C (printf): current Turbo C uses "..." instead of
6639         "&..."
6640
6641 Mon Dec 14 09:37:33 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
6642
6643         * libc/include/math.h: added _DOUBLE_IS_32BITS checks
6644
6645 Thu Nov 12 22:31:04 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
6646
6647         * libc/stdio/cvt.c (licvt): new function to convert ints when
6648         sizeof(int) != sizeof(long).
6649
6650         * libc/include/stdio.h: added prototype for iprintf.
6651         * libc/include/machine/limits.h machine/ieeefp.h: z8k stuff
6652
6653 Tue Nov 10 12:18:12 1992  Ian Lance Taylor  (ian@cygnus.com)
6654
6655         * libc/machine/m68k/setjmp.S: use __USER_LABEL_PREFIX__ and
6656         __REGISTER_PREFIX__.
6657
6658 Mon Nov  2 13:50:14 1992  Ian Lance Taylor  (ian@cygnus.com)
6659
6660         * libc/sys/m68kbare: moved into stub directory.
6661
6662 Mon Nov  2 13:40:42 1992  Ian Lance Taylor  (ian@cygnus.com)
6663
6664         * configure.in, Makefile.in: created new directory stub, to hold
6665         sample code for specific targets.
6666
6667 Wed Oct 28 02:19:55 1992  Mark Eichin  (eichin@cygnus.com)
6668
6669         * restored libc/sys/go32/sys/fcntl.h, to override incorrect values
6670         in the unified libc/include/sys/fcntl.h.
6671
6672 Wed Oct 21 13:55:58 1992  Doug Evans  (dje@rtl.cygnus.com)
6673
6674         * libc/stdlib/ecvtbuf.c: (print_f,_gcvt): printf("%f", 0.01)
6675         printed .01, not 0.01.
6676
6677 Mon Oct 19 11:05:55 1992  Ian Lance Taylor  (ian@cygnus.com)
6678
6679         * configure.in: compile with -m68000 for m68* targets.
6680
6681 Sun Oct 18 05:29:05 1992  Mark Eichin  (eichin@cygnus.com)
6682
6683         * libm/math/remainder.c (remainder): document the svr4 and sunos
6684         references used to construct the function.
6685
6686 Sat Oct 17 21:46:16 1992  Mark Eichin  (eichin@cygnus.com)
6687
6688         * libm/math/remainder.c (rint, remainder): fix old typos.
6689         * libm/math/Makefile.in: actually build remainder.c (functions
6690         rint and remainder, from SysVr4 Programmer's Guide floor(3m) man
6691         page.)
6692
6693 Thu Oct 15 07:48:05 1992  Ian Lance Taylor  (ian@cygnus.com)
6694
6695         * libc/string/bcopy.c: BSD version works on overlapping strings,
6696         so ours should too.
6697
6698         * libc/stdlib/system.c: always invoke /bin/sh, not getenv
6699         ("SHELL").
6700
6701 Wed Oct 14 11:07:11 1992  Ian Lance Taylor  (ian@cygnus.com)
6702
6703         * Makefile.in (docs): new target.
6704
6705 Wed Oct 14 07:44:25 1992  Ian Lance Taylor  (ian@cygnus.com)
6706
6707         * libc/include/sys/times.h: define clock_t as required by POSIX.
6708         libc/include/time.h: protect clock_t from multiple definitions.
6709
6710 Wed Oct  7 11:02:21 1992  Mark Eichin  (eichin at tweedledumber.cygnus.com)
6711
6712         * libm/math/sqrt.h (sqrt): actually, the final version of fp-bit
6713         does not need more than the original three iterations to get
6714         within 1 ulp. (Paranoia tests for rounding to better than that,
6715         but further iterations *don't* help, only more subtle changes
6716         can.)
6717
6718 Tue Oct  6 09:22:12 1992  Ian Lance Taylor  (ian@cygnus.com)
6719
6720         * libc/sys/vxworks68, libc/sys/vxworks960: removed, since they
6721         were doing nothing useful.
6722
6723 Tue Oct  6 08:48:13 1992  Ian Lance Taylor  (ian@cygnus.com)
6724
6725         * configure.in: define MALLOC_PROVIDED for vxworks targets;
6726         removed sys_dir settings of vxworks68 and vxworks960.
6727         host/any: don't pass -nostdinc to gcc, since newlib no longer
6728         provides all required header files.
6729
6730         * libc/stdlib/malloc.c: only compile this file if MALLOC_PROVIDED
6731         is not defined; this provides a hook for VxWorks.
6732
6733 Mon Oct  5 03:44:57 1992  Mark Eichin  (eichin at tweedledumber.cygnus.com)
6734
6735         * libc/stdio/setvbuf.c (setvbuf): while ANSI does say to malloc a
6736         buffer if buf is NULL, don't do it here -- it is already being
6737         done by makebuf elsewhere in stdio.
6738
6739 Fri Oct  2 13:12:07 1992  Ian Lance Taylor  (ian@cygnus.com)
6740
6741         * libc/sys/a29khif/Makefile.in: assemble Steve's list of stubs so
6742         that C programs can call functions without using initial
6743         underscores.
6744
6745 Thu Oct  1 09:37:47 1992  Ian Lance Taylor  (ian@cygnus.com)
6746
6747         * libc/stdlib/abort.c (abort): call exit, in case kill returns.
6748
6749 Wed Sep 30 08:22:18 1992  Ian Lance Taylor  (ian@cygnus.com)
6750
6751         * configure.in: set TARGET_CFLAGS for certain CPU types to
6752         -msoft-float.
6753
6754 Tue Sep 29 21:09:32 1992  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
6755
6756         * libc/sys/m68kbare/glue.c: use <_ansi.h> instead of <ansidecl.h>
6757
6758 Mon Sep 28 14:58:44 1992  Ian Lance Taylor  (ian@cygnus.com)
6759
6760         * configure.in: added sys_dir m68kbare for m68k*-unknown-aout and
6761         m68k*-unknown-coff.
6762
6763 Fri Sep 25 08:33:21 1992  Ian Lance Taylor  (ian@cygnus.com)
6764
6765         * libc/include/stdio.h: define __need___va_list before including
6766         <stdarg.h>, to avoid defining va_arg, et. al.
6767
6768 Tue Sep 22 13:47:00 1992  Ian Lance Taylor  (ian@cygnus.com)
6769
6770         * libc/sys/Makefile.in: handle the case of an empty $(sys_dir)
6771         (don't cd to the user's home directory).
6772
6773         * libc/Makefile.in: replaced all instances of $(MAKE) with make.
6774         In general this is the wrong thing to do, but I can't get around
6775         GNU make's insistence on passing command line arguments any other
6776         way.
6777
6778 Tue Sep 22 10:12:44 1992  Ian Lance Taylor  (ian@cygnus.com)
6779
6780         * configure.in: always configure the libc/sys directory, since it
6781         now provides a required documentation file.
6782
6783         * Makefile.in: replaced all instances of $(MAKE) with make.  In
6784         general this is the wrong thing to do, but I can't get around GNU
6785         make's insistence on passing command line arguments any other way.
6786
6787 Mon Sep 21 22:42:26 1992  Ian Lance Taylor  (ian@tweedledumbest.cygnus.com)
6788
6789         * libc/stdlib/ecvtbuf.c (_gcvt): string for 0 was not null
6790         terminated.
6791
6792         * libc/stdio/local.h: include <stdarg.h> to define va_list.
6793         libc/stdio/vsprintf.c: include <stdarg.h> rather than <varargs.h>.
6794
6795         * libc/include/float.h, libc/include/stdarg.h,
6796         libc/include/stddef.h, libc/include/varargs.h: removed; use gcc
6797         versions instead.
6798         libc/include/stdio.h: get size_t from <stddef.h>, and va_list from
6799         <stdarg.h>, not from <machine/types.h>.  Protect definition of
6800         NULL.
6801         libc/include/time.h: get size_t from stddef.h.  Protect definition
6802         of NULL.
6803         libc/include/machine/limits.h: override gcc <limits.h> by defining
6804         _LIMITS_H___.  Don't define CLK_TCK.  Copied in gcc <limits.h> to
6805         get correct INT_MIN and LONG_LONG values.
6806         libc/include/machine/types.h: don't define ptrdiff_t, wchar_t,
6807         size_t or va_list at all; they're now gotten from stddef.h
6808         instead.
6809         libc/include/machine/varargs.h: removed; use gcc version instead.
6810         libc/include/sys/types.h: explicitly include <machine/types.h>.
6811
6812         * libm/math/sqrt.h: using the fp-bit routines appears to require
6813         more iterations.
6814
6815         * Makefile.in, host/any: let system include files override machine
6816         include files.
6817
6818 Sat Sep 19 21:10:06 1992  Mark Eichin  (eichin at tweedledumber.cygnus.com)
6819
6820         * libc/include/machine/types.h: allow __*_TYPE__ from cpp to
6821         override _*_T_ definitions defaulted here.
6822
6823 Tue Sep 15 11:14:46 1992  Ian Lance Taylor  (ian@cygnus.com)
6824
6825         * Makefile.in (install): install the include files in
6826         $(tooldir)/include, not $(exec_prefix)/include.
6827
6828 Fri Sep 11 15:48:43 1992  Ian Lance Taylor  (ian@cygnus.com)
6829
6830         * Makefile.in (install): fixed typo, and changed install to not
6831         force rebuild of libc.a and libm.a.
6832
6833 Thu Sep 10 10:46:09 1992  Ian Lance Taylor  (ian@cygnus.com)
6834
6835         * libc/sys/a29khif/*: Changed all .include's to include
6836         sys/sysmac.h, not plain sysmac.h.  The header files live in sys so
6837         that they will be installed for the user.
6838
6839         * Makefile.in (all): create targ-include, a directory holding the
6840         machine and system specific header files during the build.
6841         (install): fixed installation of machine and system specific
6842         header files.
6843
6844         * Makefile.in: fixed comment.
6845         host/any: change .s.o rule to use $(AS) rather than $(CC), so that
6846         we can pass $(INCLUDES) to it.
6847
6848 Thu Sep 10 10:13:13 1992  Ian Lance Taylor  (ian@cygnus.com)
6849
6850         * libc/include/sys/param.h: new generic file, which may be
6851         overridden for specific systems.
6852
6853         * libc/include/sys/signal.h: define all ANSI signal names, and
6854         NSIG (which is not ANSI) for a29k.
6855
6856 Tue Sep  8 09:04:30 1992  Ian Lance Taylor  (ian@cygnus.com)
6857
6858         * Makefile.in: don't pass down arguments the lower level makes
6859         will not need.
6860         * libc/Makefile.in: recurse directly, rather than using subdir_do,
6861         in hopes of avoiding argument length limits.
6862         * libm/Makefile.in: recurse directly, rather using subdir_do, in
6863         hopes of avoiding argument length limits.
6864
6865 Tue Sep  8 08:27:22 1992  Ian Lance Taylor  (ian@cygnus.com)
6866
6867         * libc/include/sys/fcntl.h: include <sys/types.h> to ensure that
6868         mode_t is defined.
6869
6870 Mon Sep  7 14:02:07 1992  Ian Lance Taylor  (ian@cygnus.com)
6871
6872         * Fixed make info and make install-info for newlib, changing most
6873         Makefile.in and several *.tex files.  Moved doc directory from
6874         libc to top level.
6875
6876         * libc/time/mktime.c (_DAYS_IN_MONTH): actually, not const.
6877         Should be rewritten.
6878
6879         * libc/string/strings.tex: renamed node index to node index
6880         function, so that it does not conflict with the top level index
6881         node.
6882
6883         * libc/include/sys/config.h: define __IEEE_BIG_ENDIAN for h8300.
6884
6885 Fri Sep  4 02:34:06 1992  Ian Lance Taylor  (ian@cygnus.com)
6886
6887         * Overhauled general configuration for newlib.  Eliminated all
6888         target dependent Makefile fragments.  Create libraries in newlib
6889         rather than newlib/libc and newlib/libm.  Use CC, et. al., rather
6890         than CROSS_CC, et. al.  Broke make docs; will fix later.
6891
6892         * libc/time/localtime.c (_DAYS_IN_MONTH): actually, not const.
6893         Should be rewritten.
6894
6895 Tue Sep  1 15:21:14 1992  Ian Lance Taylor  (ian@cygnus.com)
6896
6897         * libc/configure.in: cleaned up somewhat; switch on ${target}
6898         rather than ${target_alias}.
6899         * libm/configure.in: cleaned up somewhat; switch on ${target}
6900         rather than ${target_alias}.
6901
6902         * libc/ctype/ctype_.c: marked _ctype_ array _CONST.
6903         * libc/include/ctype.h: marked _ctype_ as _CONST.
6904
6905         * libc/locale/locale.c (lconv, localeconv): marked static lconv as
6906         _CONST.
6907
6908         * libc/stdio/cvt.c, libc/stdio/findfp.c (__sfmoreglue),
6909         libc/stdio/vfscanf.c (__svfscanf): made static variables const.
6910         libc/stdio/gets.c (gets): removed non-ANSI warning message.
6911         libc/stdio/tmpnam.c (tmpnam): removed unneeded filename variable.
6912
6913         * libc/stdlib/mprec.h, libc/stdlib/mprec.c (pow5mult, tens,
6914         bigtens, tinytens): marked arrays _CONST.
6915         libc/stdlib/qsort.c (swap): if __GNUC__, use _builtin_alloca
6916         rather than a static variable.
6917
6918         * libc/time/asctime.c (asctime), libc/time/localtime.c
6919         (_DAYS_IN_MONTH), libc/time/mktime.c (_DAYS_IN_MONTH,
6920         _DAYS_BEFORE_MONTH), libc/time/strftime.c (dname_len, dname,
6921         mname_len, mname): Marked static arrays _CONST.
6922
6923         * libm/math/gamma.h: made local variables non-static.
6924
6925         * libm/math/acos.h, libm/math/bessel.c, libm/math/erf.c,
6926         libm/math/exp.c, libm/math/gamma.h: marked static arrays as
6927         _CONST.
6928
6929         * libm/math/constants.c: removed file, because the constants it
6930         defined were never referenced.
6931         libm/math/Makefile.in: removed references to constants.c.
6932         libm/math/mathimpl.h: removed declarations of constants.
6933
6934 Wed Aug 26 21:09:06 1992  Ian Lance Taylor  (ian@cygnus.com)
6935
6936         * libc/include/machine/varargs.h: only call __builtin_saveregs if
6937         it is sensibly defined in libgcc2.  Checks preprocessor defines,
6938         which is not a good solution.
6939
6940         * libm/sqrt.c: sqrt(Infinity) should not be a domain error.
6941
6942         * libm/frexp.c: handle denormalized numbers as arguments.
6943
6944         * libm/math/Makefile.in: added some dependencies for .c files
6945         which include local .h files.
6946
6947 Mon Aug 24 12:57:58 1992  Ian Lance Taylor  (ian@cygnus.com)
6948
6949         * libc/configure.in: set target_alias for OSE*.  Replace
6950         target_makefile_frag if it is blank.
6951
6952         * libc/Makefile.in: make sure everything is passed to subsidiary
6953         makes; create all directories when installing.
6954
6955         * libm/ieeefp/Makefile.in, libm/math/Makefile.in: use
6956         CROSS_ARUPDATE instead of AR.
6957
6958         * libm/configure.in: set target_alias for OSE*.  Replace
6959         target_makefile_frag if it is blank.
6960
6961         * libm/Makefile.in: make sure everything is passed to subsidiary
6962         makes; create all directories when installing.
6963
6964 Thu Aug 20 15:11:51 1992  Mark Eichin  (eichin@cygnus.com)
6965
6966         * add following change from libc copy.
6967
6968 Wed Aug 19 18:54:49 1992  Roland H. Pesch  (pesch@fowanton.cygnus.com)
6969
6970         * libc/libc.texinfo: make copyright disclaimers appear on back of
6971         title page; make format of same slightly less ugly; avoid using
6972         underbars in section headings (avoids nasty texinfo bug in table
6973         of contents).
6974
6975         * libc/ctype/tolower.c, libc/ctype/toupper.c: (doc changes in
6976           comments only) avoid using underbars in section headings
6977
6978         * libc/ieeefp/ieeefp.tex: include doc from fpsticky, infinity,
6979           isnan ieeefp/fpmask.c, ieeefp/fpround.c, ieeefp/fpsticky.c (doc
6980           changes in comments only): shorten headings ieeefp/infinity.c,
6981           ieeefp/isnan.c: (doc, comments only) more informative headings
6982
6983         * libc/math/bessel.c: (doc, comments only) shorten heading
6984
6985         * libc/stdlib/efgcvt.c, libc/stdlib/mbtowc.c, libc/stdlib/wctomb.c
6986         (doc, comments only) shorten headings
6987
6988         * libc/time/localtime.c (doc, comments only): shorten headings
6989
6990         * libm/ieeefp/ieeefp.tex: include doc from fpsticky, infinity,
6991           isnan
6992           libm/ieeefp/fpmask.c, libm/ieeefp/fpround.c,
6993           libm/ieeefp/fpsticky.c (doc changes in comments only): shorten
6994           headings
6995           libm/ieeefp/infinity.c, libm/ieeefp/isnan.c: (doc, comments
6996           only) more informative headings
6997         * libm/math/bessel.c: (doc, comments only) shorten heading
6998
6999 Wed Aug 19 07:06:37 1992  Mark Eichin  (eichin at tweedledumber.cygnus.com)
7000
7001         * .../Makefile.in: use CROSS_ARUPDATE consistently.
7002         * config/*.mt: define CROSS_AR as well as CROSS_ARUPDATE
7003         * config/*.mt: define CROSS_CPP based on CROSS_CC, not /lib/cpp.
7004         * .../Makefile.in: get rid of .c.o rule - if TOP is correctly
7005         defined, the one from the .mt file will be correct.
7006         * libc/include/machine, libc/include/sys: created, and populated
7007         with common files from machine/*/machine. ifdefs were used for
7008         most, typically by handling exceptions first and then filling in
7009         defaults. Files with D.J. Delorie copyright #included rather than
7010         copied. Most files in include/sys really were the same in the
7011         original.
7012         * libc/include/...: cleaned up use of _EXFUN.
7013         * libc/stdlib/mprec.c: mprec.h doesn't get installed, so include
7014         it with double quotes, not angles.
7015
7016 Mon Aug 10 11:43:20 1992  Ian Lance Taylor  (ian@dumbest.cygnus.com)
7017
7018         * libc/Makefile.in: always create installation directories.
7019
7020 Sun Aug  9 22:45:48 1992  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
7021
7022         * libc/configure.in: handle host properly (using canonical
7023         triples), better error message for the case of target not found
7024
7025 Thu May 28 01:56:37 1992  Michael Tiemann  (tiemann@rtl.cygnus.com)
7026
7027         * libc/Makefile.in (insincdir): Ensure this directory exists
7028         before attempting installation.
7029
7030 Fri May  1 18:16:42 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
7031
7032         * libc/stdlib/assert.c: now calls abort like it should
7033         * libc/sys/a29khif: many many patches for 29khif work
7034         * libc/machine/i386: gnulib2 expanded there.
7035
7036 Tue Apr 28 19:08:37 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
7037
7038         Added accurate fp conversion routines to stdlib, moved dcvt from
7039         stdio to stdlib and called it ecvtbuf:
7040         * libc/stdlib/mprec.c, mprec.h: new files for multiprec arithmetic
7041         * libc/stdlib/Makefile.in, efgcvt.c, strtod.c: modified to use new
7042         routines
7043         * libc/libc.texinfo: Modifed to include the copyright info from
7044         the mprec files
7045         * libc/stdlib/efgcvt.c: now xref to ecvtbuf in stdlib.
7046         * libc/test/ : many vector which tested for the implementation
7047         defined returns of strange conversion requests have been updated
7048         to relflect the new implementation
7049
7050 Mon Apr 27 13:41:33 1992  Roland H. Pesch  (pesch@fowanton.cygnus.com)
7051
7052         * libc/libc.texinfo: new chapter on variable arg lists
7053         (stdarg.h/varargs.h)
7054         * libc/libc.texinfo: new title
7055         * libc/time/gmtime.c, libc/time/localtime./c, libc/time/mktime.c:
7056         (doc only) shorter headings for better formatting.
7057
7058 Fri Apr 24 11:26:48 1992  Roland H. Pesch  (pesch@fowanton.cygnus.com)
7059
7060         * libc/libc.texinfo: three more info menu entries
7061         * libc/locale/locale.tex: new chapter
7062         * libc/locale/locale.c: new doc for setlocale, localeconv
7063         * libc/locale/Makefile.in: use new locale doc
7064         * libc/signal/signal.tex: new chapter
7065         * libc/signal/raise.c, libc/signal/signal.c: new doc
7066         * libc/signal/Makefile.in: use new doc
7067         * libc/time/time.tex: new chapter
7068         * libc/time/asctime.c libc/time/clock.c libc/time/ctime.c
7069         libc/time/difftime.c libc/time/gmtime.c libc/time/localtime.c
7070         libc/time/mktime.c libc/time/strftime.c libc/time/time.c: new doc
7071         * libc/time/Makefile.in: use new doc
7072
7073 Tue Apr 21 14:48:50 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
7074
7075         * libm/math/log1p.c: split to use the new function way of float
7076         function definition. math/log1p.h deleted
7077         * libm/math/scalb.c: obsolete and deleted
7078         * libm/math/scalbn.c: created from part log1p.c
7079         * libm/math/Makefile.in: know about log1p and scalbn
7080
7081 Tue Apr 21 12:32:21 1992  Roland H. Pesch  (pesch@fowanton.cygnus.com)
7082
7083         * libc/ctype/isupper.c: revise doc;
7084           libc/ctype/ctype.tex: use doc from isupper.c
7085
7086         * libc/string/bzero.c: new doc
7087
7088 Mon Apr 20 14:19:42 1992  Roland H. Pesch  (pesch@fowanton.cygnus.com)
7089
7090         * libc/stdlib/system.c, libc/stdlib/exit.c, libc/stdlib/abort.c:
7091         new doc
7092         * libc/stdlib/Makefile.in: extract new doc
7093         * libc/stdlib/stdlib.tex: use new doc
7094
7095         * libc/string/strerror.c: expanded doc.
7096
7097         * libc/stdio/Makefile.in: extract doc from more files
7098         * libc/stdio/fopen.c, libc/stdio/perror.c, libc/stdio/remove.c,
7099         libc/stdio/rename.c, libc/stdio/rewind.c, libc/stdio/setbuf.c,
7100         libc/stdio/setvbuf.c, libc/stdio/sprintf.c, libc/stdio/tmpfile.c,
7101         libc/stdio/tmpnam.c, libc/stdio/vfprintf.c, libc/stdio/vprintf.c,
7102         libc/stdio/vsprintf.c: new doc
7103         * libc/stdio/stdio.tex: use new doc
7104
7105 Mon Apr 20 09:38:17 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
7106
7107         * libc/config/ebmon29k: added CROSS_CPP rule and other fixes
7108         * libc/include/ieeefp.h: fixed ansi conflict with isnanf, isinff,
7109         finitef functions.
7110         * libc/sys/a29khif/sys/*.h: ansidecl.h was renamed to _ansi.h some
7111         time ago.
7112
7113         * libc/stdio/stdio.h: added P_tmpdir for /tmp (SVID thing)
7114         * libc/stdio/setbuf.c: added ansi style definition.
7115         * libc/stdio/setvbuf.c: added ansi definition, now mallocs own
7116         buffer if none provided.
7117         * libc/stdio/tmpfile.c: lint
7118         * libc/stdio/tmpnam.c (worker): created. (tmpnam): mallocs buffer
7119         rather than using static, also make sure file isn't already
7120         present.  Uses P_tmpdir. (tempnam): rewritten to use new
7121         subroutine, and uses P_tmpdir.
7122         * libc/stdio/siprintf.c: created
7123
7124 Mon Apr 13 09:12:58 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
7125
7126         Release 1.03 for NEC, major mods. Main differences from release
7127         1.02::
7128
7129         More tests in test/:
7130         * jn_vec.c, jnf_vec.c, yn_vec.c, ynf_vec.c, log2_vec.c,
7131         log2f_vec.c, atan2_vec.c, atan2f_vec.c: new test vectors.
7132         * test_ieee.c: tests for ieee flags & masks - get/set rounding,
7133         get/set mask, get/set sticky and get/set roundtoi.  Tests
7134         that setting the bits changes the way arithmetic is done.
7135         * string.c: added test to make sure memcmp does it with unsigned
7136         chars.
7137         * test.c: cleaned up and removed lint.
7138         * sprint_vec, sprint_ivec.c, convert.c, conv_vec.c, iconf_vec.c,
7139         dvec.c: tests for string to value conversions,  sprintf, scanf,
7140         atof, atoff, strtod, strtodf, atoi, atol, strtol, ecvtbuf, ecvt,
7141         ecvtf,  fcvtbuf, fcvt, fcvtf, gcvt, gcvtf.  Some attention paid to
7142         rounding in sprintf too.
7143         * test_is.c: tests for  isalnum, isalpha, isascii, iscntrl,
7144         isdigit, isgraph, islower, isprint, ispunct, isspace, isupper,
7145         isxdigit, toascii, tolower, toupper, _tolower, _toupper in macro
7146         and function form.
7147         * math2.c: test for frexp, frexpf, ldexp, ldexpf, modf modff, pow,
7148         powf
7149
7150         In the library:
7151         * libc/stdlib/div.c, libc/stdlib/ldiv.c, libc/stdlib/strtod.c,
7152         libc/stdlib/strtol.c, libc/stdlib/stroul.c, libc/stdlib/abs.c,
7153         libc/stdlib/bsearch.c, libc/stdlib/calloc.c, libc/stdlib/getenv.c,
7154         libc/stdlib/labs.c, libc/stdlib/malloc.c: new documentation
7155         * libc/stdlib/efgcvt.c: rewritten to use new _dcvt routines rather
7156         than sprintf.
7157         * libc/stdio/dcvt.c: rewritten to make more useful elsewhere. 
7158         * Method of producting float versions of double functions has
7159         changed, functions will be modified gradually. So far:
7160         libm/math/exp.c, libm/math/pow.c, libm/math/modf.c,
7161         libm/math/sincos.c, libm/math/fmod.c, libm/math/tan.c have been
7162         altered
7163         * libc/string/memcmp.c: now uses unsigned chars
7164         * libc/string/bcmp.c, libc/string/strcpy.c,
7165         libc/stsring/strxfrm.c: fixed doc
7166         * libc/sys/sysvnecv70.tex: fix example of sbrk code
7167 \f
7168 Local Variables:
7169 version-control: never
7170 End: