1 Wed Mar 8 00:46:41 2000 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
3 * libc/reent/Makefile.am (lib_a_SOURCES): Added unlinkr.c.
4 (CHEWOUT_FILES): Added unlinkr.def.
5 * libc/reent/Makefile.in: Rebuilt.
6 * libc/sys.tex: Include unlinkr.def.
7 * libc/reent/linkr.c (_unlink_r): Moved to...
8 * libc/reent/unlinkr.c: ... new file.
10 Wed Mar 8 00:43:07 2000 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
12 * libc/string/Makefile.am (lib_a_SOURCES): Added swab.c.
13 (CHEWOUT_FILES): Added swab.def.
14 * libc/string/Makefile.in: Rebuilt.
15 * libc/string/string.tex: Include swab.def.
16 * libc/include/string.h (swab): Declare.
17 * libc/string/swab.c: New file.
19 Wed Mar 8 00:38:35 2000 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
21 * libc/stdio/Makefile.am (lib_a_SOURCES): Added getw.c and putw.c.
22 (CHEWOUT_FILES): Added getw.def and putw.def.
23 * libc/stdio/Makefile.in: Rebuilt.
24 * libc/stdio/stdio.tex: Include getw.def and putw.def.
25 * libc/stdio/getw.c: New file.
26 * libc/stdio/putw.c: New file.
28 Fri Feb 25 14:50:50 2000 Jeff Johnston <jjohnstn@cygnus.com>
30 * libc/stdio/flags.c (__sflags): Added check that mode[1]
31 is non-null before looking at mode[2].
33 Thu Feb 24 11:43:00 2000 Ran Cabell <rcabell@norfolk.infi.net>
35 * libm/mathfp/sf_atan2.c: Fix atan2 typo for _DOUBLE_IS_32_BITS.
36 * libm/mathfp/sf_atan.c: Ditto.
38 Thu Feb 24 11:39:00 2000 Joel Sherrill <joel@OARcorp.com>
40 * libc/include/sys/stat.h: Add RTEMS prototype for lstat.
42 Tue Feb 22 14:37:00 2000 Ran Cabell <rcabell@norfolk.infi.net>
44 * libm/mathfp/sf_exp.c: Corrected _DOUBLE_IS_32_BITS to be
47 Mon Feb 21 11:43:50 2000 Jeff Johnston <jjohnstn@cygnus.com>
49 * libc/stdio/vfprintf.c (VFPRINTF): Added CHECK_INIT
50 call prior to calling _VFPRINTF_R so reentrant data area is set.
51 (_VFPRINTF_R): Removed now extraneous CHECK_INIT call.
53 Thu Feb 17 01:42:50 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
55 * libc/stdio/vfscanf.c (limits.h): #include.
56 (MAX_LONG_LEN): #define.
57 (__svfscanf): Handle floating point numbers with arbitrary amounts
60 2000-02-15 Nick Clifton <nickc@cygnus.com>
62 * libc/sys/arm/syscalls.c (_fstat): Initialise all fields to
63 zero. Set the blocksize to 1024/
65 Thu Jan 20 18:57:00 2000 Fernando Nasser <fnasser@redhat.com>
67 * setvbuf.c (setvbuf): Set size to BUFSIZ when passed a zero size
70 Mon Jan 10 18:43:00 2000 Jeff Johnston <jjohnstn@cygnus.com>
72 * acinclude.m4: Changed include directory for winsup headers.
73 * aclocal.m4 configure libc/aclocal.m4
74 libc/configure libc/ctype/Makefile.in libc/errno/Makefile.in
75 libc/locale/Makefile.in libc/machine/aclocal.m4
76 libc/machine/configure libc/machine/a29k/aclocal.m4
77 libc/machine/a29k/configure libc/machine/arm/aclocal.m4
78 libc/machine/arm/configure libc/machine/d10v/aclocal.m4
79 libc/machine/d10v/configure libc/machine/d30v/aclocal.m4
80 libc/machine/d30v/configure libc/machine/fr30/aclocal.m4
81 libc/machine/fr30/configure
82 libc/machine/h8300/aclocal.m4
83 libc/machine/h8300/configure libc/machine/h8500/aclocal.m4
84 libc/machine/h8500/configure libc/machine/hppa/aclocal.m4
85 libc/machine/hppa/configure libc/machine/i386/aclocal.m4
86 libc/machine/i386/configure libc/machine/i960/aclocal.m4
87 libc/machine/i960/configure libc/machine/m32r/aclocal.m4
88 libc/machine/m32r/configure libc/machine/m68k/aclocal.m4
89 libc/machine/m68k/configure libc/machine/m88k/aclocal.m4
90 libc/machine/m88k/configure libc/machine/mips/aclocal.m4
91 libc/machine/mips/configure libc/machine/mn10200/aclocal.m4
92 libc/machine/mn10200/configure libc/machine/mn10300/aclocal.m4
93 libc/machine/mn10300/configure libc/machine/necv70/aclocal.m4
94 libc/machine/necv70/configure libc/machine/powerpc/aclocal.m4
95 libc/machine/powerpc/configure
96 libc/machine/sh/aclocal.m4
97 libc/machine/sh/configure libc/machine/sparc/aclocal.m4
98 libc/machine/sparc/configure
99 libc/machine/tic80/aclocal.m4 libc/machine/tic80/configure
100 libc/machine/v850/aclocal.m4 libc/machine/v850/configure
101 libc/machine/w65/aclocal.m4 libc/machine/w65/configure
102 libc/machine/z8k/aclocal.m4 libc/machine/z8k/configure
103 libc/misc/Makefile.in libc/posix/Makefile.in
104 libc/reent/Makefile.in
105 libc/signal/Makefile.in
106 libc/string/Makefile.in libc/sys/aclocal.m4 libc/sys/configure
107 libc/sys/a29khif/aclocal.m4 libc/sys/a29khif/configure
108 libc/sys/arm/Makefile.in libc/sys/arm/aclocal.m4
109 libc/sys/arm/configure libc/sys/cygwin/aclocal.m4
110 libc/sys/cygwin/configure libc/sys/d10v/Makefile.in
111 libc/sys/d10v/aclocal.m4 libc/sys/d10v/configure
112 libc/sys/decstation/aclocal.m4 libc/sys/decstation/configure
113 libc/sys/go32/aclocal.m4 libc/sys/go32/configure
114 libc/sys/h8300hms/aclocal.m4 libc/sys/h8300hms/configure
115 libc/sys/h8500hms/aclocal.m4 libc/sys/h8500hms/configure
116 libc/sys/m88kbug/aclocal.m4 libc/sys/m88kbug/configure
117 libc/sys/netware/aclocal.m4 libc/sys/netware/configure
118 libc/sys/rtems/aclocal.m4 libc/sys/rtems/configure
119 libc/sys/sh/Makefile.in libc/sys/sh/aclocal.m4
120 libc/sys/sh/configure libc/sys/sparc64/aclocal.m4
121 libc/sys/sparc64/configure libc/sys/sun4/aclocal.m4
122 libc/sys/sun4/configure libc/sys/sysmec/aclocal.m4
123 libc/sys/sysmec/configure libc/sys/sysnec810/aclocal.m4
124 libc/sys/sysnec810/configure libc/sys/sysnecv850/aclocal.m4
125 libc/sys/sysnecv850/configure libc/sys/sysvi386/aclocal.m4
126 libc/sys/sysvi386/configure libc/sys/sysvnecv70/aclocal.m4
127 libc/sys/sysvnecv70/configure libc/sys/tic80/aclocal.m4
128 libc/sys/tic80/configure libc/sys/w65/aclocal.m4
129 libc/sys/w65/configure libc/sys/z8ksim/aclocal.m4
130 libc/sys/z8ksim/configure libc/syscalls/Makefile.in
131 libc/time/Makefile.in libc/unix/Makefile.in libm/aclocal.m4
132 libm/configure: Regenerated.
134 Mon Jan 10 18:43:46 2000 Jeff Johnston <jjohnstn@cygnus.com>
136 * libc/stdlib/putenv_r.c (_putenv_r): New file.
137 * libc/stdlib/strdup_r.c (_strdup_r): New file.
138 * libc/include/string.h: Added _strdup_r.
139 * libc/stdlib/putenv.c: Added call to reentrant version.
140 * libc/stdlib/strdup.c: Ditto.
141 * libc/stdlib/Makefile.am: Added _putenv_r and _unsetenv_r.
142 * libc/include/stdlib.h: Ditto.
143 * libc/stdlib/Makefile.in: Regenerated.
144 * libc/string/Makefile.in: Regenerated.
145 * libc/stdlib/setenv.c: Added reentrant version of unsetenv.
146 * libc/stdlib/setenv_r.c: Added unsetenv_r and changed memory
147 management calls to reentrant versions.
148 * libc/stdlib/wcstombs.c: Added #ifndef _REENT_ONLY wrapper.
149 * libc/stdlib/wctomb.c: Ditto.
150 * libc/stdlib/mblen.c: Ditto.
151 * libc/stdlib/mbstowcs.c: Ditto.
152 * libc/stdlib/mbtowc.c: Ditto.
153 * libc/stdlib/getenv.c: Ditto.
154 * libc/reent/reent.tex: Added references to _putenv_r, _setenv_r,
157 Thu Jan 6 15:33:46 2000 Christopher Faylor <cgf@cygnus.com>
159 patch from Corinna Vinschen <corinna@vinschen.de>
160 * libc/sys/cygwin/sys/param.h: Define NGROUP_MAX as 16.
162 Mon Jan 03 14:36:00 2000 Sergei Organov <osv@javad.ru>
164 * libm/mathfp/s_atangent.c: Fix exponent calculation.
165 * libm/mathfp/s_ldexp.c: Ditto.
166 * libm/mathfp/sf_atangent.c: Ditto.
167 * libm/mathfp/sf_ldexp.c: Ditto.
169 Tue Dec 14 5:42:00 1999 Ranjith Kumaran <ranjith@cygnus.com>
171 * libc/machine/i960/setjmp.S: fix typo leaving .link_pix uncommented
172 * libc/include/locale.h: define NULL to be 0.
174 Tue Dec 7 15:41:45 1999 Jim Wilson <wilson@cygnus.com>
176 * libc/sys/sh/syscalls.c (stack_ptr): Move definition before first
179 Wed Dec 1 17:39:29 1999 Jeffrey A Law (law@cygnus.com)
181 * libc/machine/mn10300/setjmp.S: Handle am33.
183 1999-11-26 Nick Clifton <nickc@cygnus.com>
185 * libc/sys/arm/syscalls.c: Add function prototypes.
186 (stack_ptr): Move declaration before function definitions.
188 Sat Nov 20 17:13:00 1999 Ranjith Kumaran <ranjith@cygnus.com>
190 * NEWS: Updated version information.
193 Tue Nov 09 12:19:21 1999 Jeff Johnston <jjohnstn@cygnus.com>
195 * libc/machine/i386/strchr.S: Fixed alignment test.
197 Thu Oct 28 05:30:46 1999 Andrew Cagney <cagney@makita.cygnus.com>
199 * libc/sys/d10v/crt0.S (_start): Construct a real stack frame.
201 Thu Oct 28 15:29:11 1999 Andrew Cagney <cagney@b1.cygnus.com>
203 * libc/sys/d10v/crt0.S (_start): Initialize both SPI and SPU
204 ensuring that there is space between the two.
206 Thu Oct 14 13:39:21 1999 Christopher Faylor <cgf@cygnus.com>
208 * libc/stdio/flags.c: Conditionalize check for 't' for cygwin case
211 1999-10-08 Vadim Egorov <egorovv@1c.ru>
213 * libc/include/stdlib.h: add ptsname, grantpt, unlockpt to cygwin
216 Sat Oct 2 02:02:00 MEST 1999 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
218 * libc/machine/sh/asm.h: Added __SH4_SINGLE__ to DELAYED_BRANCHES
219 * libc/machine/sh/memcpy.S: Fix line wrapping in SL macro
221 Fri Oct 1 13:17:59 CDT 1999 <joel@OARcorp.com>
222 * libc/include/grp.h: Added getgrnam_r and getgrgid_r prototypes
224 * libc/include/pwd.h: Added getpwnam_r and getpwuid_r prototypes
227 1999-09-13 DJ Delorie <dj@cygnus.com>
229 * libc/stdio/mktemp.c (_gettemp): on cygwin, check for EACCESS
232 Thu Sep 9 15:31:00 1999 Jeff Johnston <jjohnstn@cygnus.com>
234 * setvbuf.c (setvbuf): When mallocing a buffer of size BUFSIZ,
235 also note BUFSIZ as its size.
237 Tue Sep 7 17:15:00 1999 Joel Sherrill <joel@OARcorp.com>
239 * configure.host: Corrected feature defines for RTEMS.
240 * libc/include/sys/stat.h: Added protototype for RTEMS mknod.
241 * libc/include/sys/stat.h: mkfifo() should take const path arg.
242 * libc/include/sys/unistd.h: pathconf() should take const path arg.
243 Enabled usleep(), ftruncate(), and truncate() prototypes for RTEMS.
244 Added defines for _POSIX_JOB_CONTROL, _POSIX_SAVED_IDS, and
245 _POSIX_VERSION for RTEMS. Added defines for _PC_ASYNC_IO,
246 _PC_PRIO_IO, and _PC_SYNC_IO.
247 * libc/machine/m68k/Makefile.am: Added strcpy.c and strlen.c.
248 * libc/machine/m68k/Makefile.in: Regenerated.
249 * libc/machine/m68k/strcpy.c: New file.
250 * libc/machine/m68k/strlen.c: New file.
251 * libc/stdio/tmpnam.c: Always make the returned name usable.
252 * libc/sys/rtems/crt0.c: New version that passes all autoconf tests.
253 * libc/sys/rtems/sys/dirent.h: New file.
254 * libc/sys/rtems/sys/types.h: Added dev_t.
256 Tue Sep 7 17:15:00 1999 Jay Kulpinski <jskulpin@eng01.gdds.com>
258 * libc/stdlib/mprec.c: Fixed unitialized variable problem.
260 Fri Sep 3 12:35:20 1999 Jeff Johnston <jjohnstn@cygnus.com>
262 * libc/stdio/ftell.c (ftell): Backing off Joern's fix and
265 Thu Sep 2 22:05:20 1999 Christopher Faylor <cgf@cygnus.com>
267 patch from Jeff Johnston <jjohnstn@cygnus.com>
268 * libc/stdio/ftell.c (ftell): Avoid using buffer position when the
269 buffer is not in a useful state.
271 1999-09-01 Nick Clifton <nickc@cygnus.com>
273 * libc/sys/arm/syscalls.c (_link): Add stub.
275 Fri Aug 27 23:09:09 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
277 * ftell.c (ftell): Use actual position within buffer for text mode.
278 * findfp.c (std): Initialize ptr->_bf._size.
280 Wed Aug 18 18:48:02 1999 Christopher Faylor <cgf@cygnus.com>
282 * libc/include/sys/unistd.h: Add nice() declaration.
284 1999-08-09 Nick Clifton <nickc@cygnus.com>
286 * libc/sys/arm/crt0.S (change_mode): Rename to __change_mode and
287 declare as a thumb function so that the disassembler will see the
290 Thu Aug 5 17:37:00 1999 Ranjith Kumaran <ranjith@cygnus.com>
292 * libc/reent/reent.tex: Updated list of reentrant functions.
294 1999-07-09 Michael Meissner <meissner@cygnus.com>
296 * libc/include/stdlib.h (_findenv{,_r}): Add prototypes.
298 Tue Jul 6 10:46:24 1999 Jeff Johnston <jjohnstn@cygnus.com>
300 * libc/stdio/sprintf.c: Moved snprintf and _snprintf_r to
302 * libc/stdio/snprintf.c: New file.
303 * libc/stdio/vsprintf.c: Moved vsnprintf and _vsnprintf_r to
305 * libc/stdio/vsnprintf.c: New file.
306 * libc/stdio/Makefile.am: Added snprintf.c and vsnprintf.c.
307 * libc/stdio/Makefile.in: Regenerated.
309 Mon Jul 5 14:43:24 1999 Christopher Faylor <cgf@cygnus.com>
311 Patch submitted by Egor Duda <deo@logos-m.ru>:
312 * libc/include/stdio.h: Add declarations for *nprintf.
313 * libc/stdio/sprintf.c (snprintf): New function.
314 (_snprintf_r): New function.
315 * libc/stdio/vsprintf.c (vsnprintf): New function.
316 (_vnsprintf_r): New function.
318 Wed Jun 30 16:36:27 1999 Jeff Johnston <jjohnstn@cygnus.com>
320 * libc/Makefile.am (stmp-targetdep): Remove extraneous blank.
321 * libm/Makefile.am (stmp-targetdep): Ditto.
322 * libc/Makefile.in: Regenerated.
323 * libm/Makefile.in: Ditto.
325 Fri Jun 25 10:49:27 1999 Jeff Johnston <jjohnstn@cygnus.com>
327 * libc/Makefile.am (stmp-targetdep): Ignore "." in SUBDIRS.
328 * libm/Makefile.am (stmp-targetdep): Ditto.
329 * libc/Makefile.in: Regenerated.
330 * libm/Makefile.in: Ditto.
332 Thu June 03 16:25:00 1999 Jeff Johnston <jjohnstn@cygnus.com>
334 * Makefile.am: Removed dependencies on all-recursive and added "."
335 to the SUBDIRS list to prevent infinite recursion from occurring.
336 Also removed any references to EXTRA_DATA.
337 * libc/Makefile.am: Ditto.
338 * libc/machine/Makefile.am: Ditto.
339 * libc/machine/i386/Makefile.am: Ditto.
340 * libm/Makefile.am: Ditto.
341 * libc/sys/Makefile.am: Ditto.
342 * Makefile.in: Regenerated.
345 * doc/Makefile.in: Ditto.
346 * doc/aclocal.m4: Ditto.
347 * doc/configure: Ditto.
348 * libc/Makefile.in: Ditto.
349 * libc/aclocal.m4: Ditto.
350 * libc/configure: Ditto.
351 * libc/machine/Makefile.in: Ditto.
352 * libc/machine/aclocal.m4: Ditto.
353 * libc/machine/configure: Ditto.
354 * libc/machine/mn10300/Makefile.in: Ditto.
355 * libc/machine/mn10300/aclocal.m4: Ditto.
356 * libc/machine/mn10300/configure: Ditto.
357 * libc/sys/Makefile.in: Ditto.
358 * libc/sys/aclocal.m4: Ditto.
359 * libc/sys/configure: Ditto.
360 * libm/Makefile.in: Ditto.
361 * libm/aclocal.m4: Ditto.
362 * libm/configure: Ditto.
364 Thu June 03 16:20:00 1999 Ranjith Kumaran <ranjith@cygnus.com>
366 * libc/include/stdlib/stdlib.tex: Add link to env_lock.
368 Fri May 28 17:09:00 1999 Ranjith Kumaran <ranjith@cygnus.com>
370 * libc/include/stdlib.h: Add reentrant routines.
371 * libc/stdlib/Makefile.am: Add reentrant routines.
372 * libc/stdlib/Makefile.in: Ditto.
373 * libc/stdlib/envlock.c: New file.
374 * libc/stdlib/envlock.h: New file.
375 * libc/stdlib/getenv.c: Modify to call reentrant routine.
376 * libc/stdlib/getenv_r.c: New file.
377 * libc/stdlib/mblen.c: Modify to call reentrant routine.
378 * libc/stdlib/mblen_r.c: New file.
379 * libc/stdlib/setenv.c: Modify to call reentrant routine.
380 * libc/stdlib/setenv_r.c: New file.
381 * libc/stdlib/stdlib.tex: Add reentrant routines.
383 Mon May 17 22:01:38 1999 Christopher Faylor <cgf@cygnus.com>
385 * libc/include/sys/types.h: Define __MS_types__ whenever
388 Sun May 16 16:02:41 1999 Christopher Faylor <cgf@cygnus.com>
390 * libc/include/machine/ieeefp.h: Always default to little
391 endian if Windows, regardless of architecture.
392 * libc/include/machine/sethmp.h: Define JBLEN if CYGWIN
393 regardless of architecture.
395 Mon May 3 11:49:18 1999 Geoffrey Noer <noer@cygnus.com>
397 * libc/include/machine/setjmp.h: Accept CYGWIN define, even if
398 _WIN32 isn't defined.
400 Mon May 3 11:41:51 1999 Jeff Johnston <jjohnstn@cygnus.com>
402 * libm/common/s_rint.c (rint): Add volatile qualifier for
403 intermediate value w.
404 * libm/common/sf_rint.c (rintf): Ditto.
406 Thu Apr 29 20:34:27 1999 Jeff Johnston <jjohnstn@cygnus.com>
408 * libc/sys/arm/syscalls.c (remap_handle): Added check to
409 ensure that std streams are initialized before being referenced.
411 1999-04-27 Jason Molenda (jsm@bugshack.cygnus.com)
413 * README: Update reference to newlib@cygnus.com new
414 newlib@sourceware.cygnus.com address.
416 Mon Apr 26 18:17:33 1999 Geoffrey Noer <noer@cygnus.com>
418 * libc/include/sys/types.h: Define MS_types if CYGWIN is defined.
419 * libc/include/sys/fcntl.h: Define _O_BINARY et al if CYGWIN is
420 defined, even if _WIN32 isn't defined.
422 Sat Apr 24 19:59:55 1999 Christopher Faylor <cgf@cygnus.com>
424 * libc/include/sys/fcntl.h: Correct _O_CREATE to _O_CREAT.
426 Wed Apr 21 18:01:00 1999 Ranjith Kumaran <ranjith@cygnus.com>
428 * libc/include/sys/reent.h: Change Long and ULong to __Long and
430 * libc/stdlib/dtoa.c: Ditto.
431 * libc/stdlib/mprec.c: Ditto.
432 * libc/stdlib/mprec.h: Ditto.
433 * libc/stdlib/strtod.c: Ditto.
435 1999-04-21 Nick Clifton <nickc@cygnus.com>
437 * configure.host (mcore): Remove mcore machine directory.
439 1999-04-18 Nick Clifton <nickc@cygnus.com>
441 * libc/include/machine/ieeefp.h: Add support for mcore target.
442 * libc/include/machine/setjmp.h: Add support for mcore target.
443 * configure.host: Add support for mcore target.
445 1999-04-13 Mark Salter <msalter@cygnus.com>
447 * libc/sys/arm/libcfunc.c: Moved isatty to syscall.c
448 * libc/sys/arm/syscalls.c: Added isatty.
450 Wed Apr 07 16:06:04 1999 Jeff Johnston <jjohnstn@cygnus.com>
452 * libc/stdlib/ecvtbuf.c (fcvtbuf): Fixed code to properly
453 insert zeroes after significant digits.
455 Wed Mar 17 22:06:04 1999 Jeff Johnston <jjohnstn@cygnus.com>
457 * libc/stdio/vfprintf.c (cvt): Changed floating point
458 cvt routine to use union used by dtoa to properly determine
459 if the sign bit is on or not.
460 * libc/stdio/vfieeefp.h: New file
462 Wed Mar 17 17:35:04 1999 Jeff Johnston <jjohnstn@cygnus.com>
464 * aclocal.m4: Regenerated.
465 * configure: Regenerated.
467 Wed Mar 17 16:35:04 1999 Jeff Johnston <jjohnstn@cygnus.com>
469 * libc/machine/i386/Makefile.am (lib_a_SOURCES): Added missing
471 * libc/machine/i386/Makefile.in: Regenerated.
473 Tue Mar 16 14:56:36 1999 Jeff Johnston <jjohnstn@cygnus.com>
475 * acinclude.m4: Changed to work with new automake.
476 * configure: Regenerated.
477 * libc/machine/i386/aclocal.m4: Regenerated.
478 * libc/machine/i386/configure: Regenerated.
480 Tue Mar 16 13:55:36 1999 Corinna Vinschen <corinna.vinschen@cityweb.de>
482 * libc/sys/cygwin/sys/dirent.h: Add additional prototypes
483 for telldir() and seekdir(). Rename unused structure element
484 for use with these two routines.
486 Fri Mar 12 19:11:58 1999 Jeff Johnston <jjohnstn@cygnus.com>
488 * libc/time/mktime.c (validate_structure): Multiple fixes to
489 code to handle cases where input fields are outside valid ranges.
490 * libc/stdlib/div.c (div): Modified invalid rounding check.
491 * libc/stdlib/ldiv.c (ldiv): Ditto.
493 Thu Mar 11 21:32:13 1999 Jeff Johnston <jjohnstn@cygnus.com>
495 * libc/machine/i386/memcpy.S: Performance rewrite.
496 * libc/machine/i386/memmove.S: Ditto.
497 * libc/machine/i386/i386mach.h: Added more register definitions.
498 * libc/include/math.h: Include <machine/fastmath.h> if -ffast-math
500 * libc/include/machine/fastmath.h: Add definitions for x86
503 Wed Mar 10 17:56:00 1999 Ranjith Kumaran <ranjith@cygnus.com>
505 * libc/stdlib/strtod.c: Change from unsigned long to ULong.
507 Tue Mar 9 14:31:58 1999 Geoffrey Noer <noer@cygnus.com>
509 Adjust newlib headers for new Cygwin Win32 API header files:
510 * libc/include/sys/time.h: Check _WINSOCK_H rather than
511 _GNU_H_WINDOWS32_SOCKETS.
512 * libc/include/sys/types.h: Ditto.
514 Tue Mar 09 15:55:00 1999 Ranjith Kumaran <ranjith@cygnus.com>
516 *include/sys/reent.h: Add checks for size of Bigint element Long.
517 *libc/dtoa.c: Change routines to use generic Long type.
518 *libc/mprec.c: Change routines to use generic Long type.
519 *libc/mprec.h: Change routines to use generic Long type.
521 Tue Mar 02 18:07:49 1999 Ranjith Kumaran <ranjith@cygnus.com>
523 * libc/Makefile.am: Add .def files.
524 * libc/Makefile.in: Regenerate.
525 * libc/e_acosh.c: Documentation update.
526 * libc/e_atanh.c: Documentation update.
527 * libc/e_hypot.c: Documentation update.
528 * libc/e_remainder.c: Documentation update.
529 * libc/er_lgamma.c: Documentation update.
530 * libc/mathfp.tex: Documentation update.
531 * libc/s_acos.c: Documentation update.
532 * libc/s_atan.c: Documentation update.
533 * libc/s_atan2.c: Documentation update.
534 * libc/s_cosh.c: Documentation update.
535 * libc/s_fmod.c: Documentation update.
536 * libc/s_isnan.c: Documentation update.
537 * libc/s_log10.c: Documentation update.
538 * libc/s_pow.c: Documentation update.
539 * libc/w_jn.c: Documentation update.
541 Sun Feb 28 23:18:49 1999 Geoffrey Noer <noer@cygnus.com>
543 * aclocal.m4: Regenerate.
544 * configure: Regenerate.
546 Tue Feb 23 13:57:26 1999 Jeff Johnston <jjohnstn@cygnus.com>
548 * libc/machine/mn10300/setjmp.S (_longjmp): Fixed longjmp
549 to return 1 if user specified return code is 0.
550 * libc/machine/mn10200/setjmp.S (_longjmp): Ditto.
552 Thu Feb 18 11:13:28 1999 Jeff Johnston <jjohnstn@cygnus.com>
554 * libc/machine/mn10200/setjmp.S (_setjmp/_longjmp): Fixed setjmp
555 to save the return address. Fixed longjmp to return to the original
556 calling address of setjmp and to return the user specified return code
557 rather than default to 1.
558 * libc/machine/mn10300/setjmp.S (_setjmp/_longjmp): Ditto.
560 Mon Feb 15 17:48:17 1999 Jeff Johnston <jjohnstn@cygnus.com>
562 * libc/stdlib/mprec.h (mult): Define mult to be _multiply instead of _mult.
564 1999-02-10 Nick Clifton <nickc@cygnus.com>
566 * libc/sys/arm/syscalls.c (initialise_monitor_handles): Make block
567 volatile so that its assignments will not be discarded.
569 Wed Feb 10 17:19:40 1999 Jeff Johnston <jjohnstn@cygnus.com>
571 * libc/include/_ansi.h: Corrected _STRICT_ANSI reference to
572 be __STRICT_ANSI__ which is generated by compiler.
573 * libc/include/ctype.h: Ditto.
574 * libc/include/math.h: Ditto.
575 * libc/include/stdio.h: Ditto.
576 * libc/include/stdlib.h: Ditto.
577 * libc/include/string.h: Ditto.
578 * libc/include/sys/signal.h: Ditto.
580 1999-02-08 Nick Clifton <nickc@cygnus.com>
582 * configure.host: Add support for StrongARM target.
584 Fri Feb 5 11:13:14 1999 Jeff Johnston <jjohnstn@cygnus.com>
586 * libc/string/strncpy.c (strncpy): Removed redundant code
587 that was copying bytes if data unaligned.
589 1999-02-02 Brendan Kehoe <brendan@cygnus.com>
591 * libc/stdlib/Makefile.{am,in} (CHEWOUT_FILES): Add mblen.def,
592 mbstowcs.def, and wcstombs.def.
594 Sat Jan 30 02:36:33 1999 Christopher Faylor <cgf@cygnus.com>
596 * libc/include/sys/errno.h: Add Cygwin errno.
597 * libc/stdio/flags.c: Don't default to O_TEXT if no other flag
600 1999-01-29 Nick Clifton <nickc@cygnus.com>
602 * libc/sys/arm/syscalls.c: Move C library functions into seperate
605 * libc/sys/arm/libcfunc.c: New file containing C library functions
608 * libc/sys/arm/Makefile.am (lib_a_SOURCES): Add libcfuncs.c
609 * libc/sys/arm/Makefile.in (lib_a_SOURCES): Regenerate.
612 1999-01-27 Michael Meissner <meissner@cygnus.com>
614 * libc/include/machine/setjmp.h (D30V _JBLEN/_JBTYPE): Use double
615 type, and cut size in half so that the jmp_buf array is guaranteed
616 to be aligned on a 64-bit boundary.
618 Mon Jan 25 12:05:38 1999 Jeff Johnston <jjohnstn@cygnus.com>
620 * libc/string/strings.tex: Added information about
621 strcasecmp and strncasecmp.
622 * libc/stdlib/stdlib.tex: Added missing information
623 about mblen, mbstowcs, and wcstombs.
624 * libc/string/strchr.c: Changed how mask is built to use
625 shift operators so register will be used instead of storage.
627 1999-01-22 DJ Delorie <dj@cygnus.com>
629 * libc/include/stdlib.h: don't use dllimport if we're building
630 newlib, since it's inside cygwin.dll
632 Fri Jan 22 14:57:18 1999 Christopher Faylor <cgf@cygnus.com>
634 * libc/ctype/ctype_.c: Need to use __declspec(dllexport) for
635 _ctype_ under cygwin.
637 Fri Jan 22 09:50:19 1999 Christopher Faylor <cgf@cygnus.com>
639 * include/stdlib.h: Fix typo from previous checkin.
641 Thu Jan 21 22:42:21 1999 Christopher Faylor <cgf@cygnus.com>
643 * include/ctype.h: Use __declspec(dllimport) method for exporting
644 variable from cygwin DLL.
645 * include/time.h: Ditto.
646 * sys/errno.h: Ditto.
647 * include/stdlib.h: Export __mb_cur_max from cygwin DLL.
648 * libc/locale/locale.c: Use __declspec(dllexport) method for
649 exporting variable from cygwin DLL.
651 Sat Jan 16 13:29:54 1999 Christopher Faylor <cgf@cygnus.com>
653 * libc/stdio/setvbuf.c: Always clean up when _IONBF or possible
654 access of bogus pointer will result in SIGSEGV.
656 1999-01-07 Nick Clifton <nickc@cygnus.com>
658 * libc/sys/arm/setjmp.S: Use C macros to cope with the possibility
659 of an underscore prefix to function names.
661 Fri Jan 8 19:00:07 1999 Jeff Johnston <jjohnstn@cygnus.com>
663 * libc/machine/i386/i386mach.h (__REG_PREFIX__): Create new
664 define __REG_PREFIX__ instead of using __REGISTER_PREFIX__.
666 1998-12-31 Michael Meissner <meissner@cygnus.com>
668 * libc/machine/i386/i386mach.h (__REGISTER_PREFIX__): Only define
669 to `%' if not already defined.
671 1998-12-30 Michael Meissner <meissner@cygnus.com>
673 * libc/stdio/tmpnam.c (_tempnam_r): Make directory and prefix
674 arguments const char *, not char *.
675 * libc/include/stdio.h (_tempnam_r): Ditto.
677 * libc/include/sys/reent.h (struct _reent): The _sig_func type
678 points to a function taking an integer, not void.
680 Tue Dec 29 14:35:53 1998 Christopher Faylor <cgf@cygnus.com>
682 * configure.host: Add a define for Cygwin builds.
683 * libc/include/ctype.h: Don't use dll imported variables in newlib.
685 Mon Dec 28 09:19:56 1998 Christopher Faylor <cgf@cygnus.com>
687 * libc/include/ctype.h: Define _ctype_ as dll imported variable
689 * libc/include/sys/errno.h: Define _sys_errlist and _sys_nerr as
690 dll imported variables for use with Cygwin.
691 * libc/ctype/ctype_.c: Undefine _ctype_ in case it has been defined
692 as a dll imported variable for Cygwin.
694 Sat Dec 26 00:13:53 1998 Christopher Faylor <cgf@cygnus.com>
696 * libc/include/sys/unistd.h: Add proto for getpass.
698 Fri Dec 18 19:28:19 1998 Geoffrey Noer <noer@cygnus.com>
700 * libc/sys/cygwin/sys/dirent.h: add protos for scandir and
703 Fri Dec 18 16:33:25 1998 Geoffrey Noer <noer@cygnus.com>
705 * libc/posix/execvp.c (execvp): call cygwin_posix_path_list_p,
706 not posix_path_list_p.
708 1998-12-15 Nick Clifton <nickc@cygnus.com>
710 * libc/string/memchr.c: Treat 'c' argument as an unsigned byte not
713 1998-12-13 Nick Clifton <nickc@cygnus.com>
715 * libc/include/machine/setjmp.h (_JBLEN): Set to 10.
717 1998-12-12 Nick Clifton <nickc@cygnus.com>
719 * libc/machine/fr30/setjmp.S: New file, supplied by Mark Slater
721 * libc/machine/fr30/Makefile.am: Add build of setjmp.S
722 * libc/machine/fr30/Makefile.in: Regenerated.
724 1998-12-11 Nick Clifton <nickc@cygnus.com>
726 * configure.host: Remove use of libc/sys for FR30 port.
727 * libc/sys/fr30: Remove directory (replaced by libgloss).
729 1998-12-10 Ken Raeburn <raeburn@cygnus.com>
731 * libc/string/strcat.c (ALIGNED): Sense of result was reversed.
732 * libc/string/strncat.c (ALIGNED): Ditto.
734 Wed Dec 9 14:37:57 1998 Geoffrey Noer <noer@cygnus.com>
736 * libc/include/sys/time.h: include sys/types.h
738 Tue Dec 8 15:53:18 1998 Jeff Johnston <jjohnstn@cygnus.com>
740 * libc/machine/i386/memcmp.S (memcmp): Fix for unequal
741 comparison found when checking word at a time.
743 1998-12-04 Nick Clifton <nickc@cygnus.com>
745 * libc/sys/fr30/crt0.s (_start): Initialise frame pointer.
747 1998-12-03 Nick Clifton <nickc@cygnus.com>
749 * libc/sys/fr30/syscalls.c (_times): New function stub.
751 Thu Dec 3 15:59:19 1998 Jeff Johnston <jjohnstn@cygnus.com>
753 * configure.host (mach_add_setjmp): Replaced mach_add_objs
754 with mach_add_setjmp flag which indicates if setjmp should
755 be added to the machine directory objects.
756 * acinclude.m4: Removed reference to mach_add_objs.
757 * aclocal.m4: Regenerated.
758 * Makefile.in: Regenerated.
759 * configure: Regenerated.
760 * libc/aclocal.m4: Regenerated.
761 * libc/Makefile.in: Regenerated.
762 * libc/configure: Regenerated.
763 * libc/machine/aclocal.m4: Regenerated.
764 * libc/machine/Makefile.in: Regenerated.
765 * libc/machine/configure: Regenerated.
766 * libc/machine/i386/aclocal.m4: Regenerated.
767 * libc/machine/i386/Makefile.am: Altered to selectively add
768 setjmp.S to the src files list.
769 * libc/machine/i386/Makefile.in: Regenerated.
770 * libc/machine/i386/configure.in: Altered to test mach_add_setjmp.
771 * libc/machine/i386/configure: Regenerated.
773 1998-12-02 Nick Clifton <nickc@cygnus.com>
775 * libc/sys/fr30/crt0.s (_start): Fix function names.
777 * libc/machine/fr30: New directory
778 * libc/machine/fr30/Makefile.am: New file.
779 * libc/machine/fr30/Makefile.in: New generated file.
780 * libc/machine/fr30/configure.in: New file.
781 * libc/machine/fr30/configure: New generated file.
782 * libc/machine/fr30/aclocal.m4: New generated file.
783 * libc/sys/fr30/Makefile.am: New file.
784 * libc/sys/fr30/Makefile.in: New generated file.
785 * libc/sys/fr30/configure.in: New file.
786 * libc/sys/fr30/configure: New generated file.
787 * libc/sys/fr30/syscalls.c: New file.
789 Tue Dec 1 16:28:56 1998 Geoffrey Noer <noer@cygnus.com>
791 * libc/sys/cygwin/sys/utmp.h: new file, moved from winsup/include.
793 1998-12-01 Ken Raeburn <raeburn@cygnus.com>
795 * libc/time/strftime.c (strftime): Also handle %y for years before
798 Tue Dec 1 13:26:07 1998 Christopher Faylor <cgf@cygnus.com>
800 * libc/string/strcasecmp.c (strcasecmp): Adhere to standard
801 UNIX convention. Perform tolower on characters before comparing
802 them rather than use toupper.
803 * libc/string/strncasecmp.c (strncasecmp): Ditto.
805 Mon Nov 30 16:24:19 1998 Jeff Johnston <jjohnstn@cygnus.com>
807 * configure.host: Added using i386 machine directory
808 for all x86 cross-compiler and configuring
809 which added object files to use via new "mach_add_objs" variable.
810 * configure: Regenerated.
811 * libc/configure: Regenerated.
812 * libc/Makefile.in: Regenerated.
813 * libc/aclocal.m4: Regenerated.
814 * libc/ctype/Makefile.in: Regenerated.
815 * libc/errno/Makefile.in: Regenerated.
816 * libc/locale/Makefile.in: Regenerated.
817 * libc/machine/Makefile.in: Regenerated.
818 * libc/machine/aclocal.m4: Regenerated.
819 * libc/machine/configure: Regenerated.
820 * libc/posix/Makefile.in: Regenerated.
821 * libc/reent/Makefile.in: Regenerated.
822 * libc/signal/Makefile.in: Regenerated.
823 * libc/stdio/Makefile.in: Regenerated.
824 * libc/stdlib/Makefile.in: Regenerated.
825 * libc/string/Makefile.in: Regenerated.
826 * libc/string/memmove.c: Optimized code to use memcpy
827 logic when performing a non-destructive copy.
828 * libc/string/strncmp.c: Altered code to allow building
829 optimized for size or speed.
830 * libc/syscalls/Makefile.in: Regenerated.
831 * libc/time/Makefile.in: Regenerated.
832 * libc/unix/Makefile.in: Regenerated.
833 * libc/machine/i386/Makefile.am: Added new files and reference
834 to "mach_add_objs" to indicate optional object files.
835 * libc/machine/i386/Makefile.in: Regenerated.
836 * libc/machine/i386/aclocal.m4: Regenerated.
837 * libc/machine/i386/configure: Regenerated.
838 * libc/machine/i386/memchr.S: New file that implements
839 function in Intel assembler.
840 * libc/machine/i386/memcmp.S: ditto.
841 * libc/machine/i386/memcpy.S: ditto.
842 * libc/machine/i386/memmove.S: ditto.
843 * libc/machine/i386/memset.S: ditto.
844 * libc/machine/i386/strchr.S: ditto.
845 * libc/machine/i386/strlen.S: ditto.
846 * libc/machine/i386/f_atan2.S: New file that implements
847 fast version of math function to be used by compiler when
848 --ffast_math compile option is used.
849 * libc/machine/i386/f_atan2f.S: ditto.
850 * libc/machine/i386/f_exp.c: ditto.
851 * libc/machine/i386/f_expf.c: ditto.
852 * libc/machine/i386/f_frexp.S: ditto.
853 * libc/machine/i386/f_frexpf.S: ditto.
854 * libc/machine/i386/f_ldexp.S: ditto.
855 * libc/machine/i386/f_ldexpf.S: ditto.
856 * libc/machine/i386/f_log.S: ditto.
857 * libc/machine/i386/f_logf.S: ditto.
858 * libc/machine/i386/f_log10.S: ditto.
859 * libc/machine/i386/f_log10f.S: ditto.
860 * libc/machine/i386/f_math.h: New file.
861 * libc/machine/i386/f_pow.c: ditto.
862 * libc/machine/i386/f_powf.S: ditto.
863 * libc/machine/i386/f_tan.S: ditto.
864 * libc/machine/i386/f_tan.S: ditto.
865 * libc/machine/i386/i386mach.h: New file.
867 Mon Nov 30 13:02:17 1998 Christopher Faylor <cgf@cygnus.com>
869 patch from Mumit Khan <khan@xraylith.wisc.edu>
870 * libc/include/stdio.h (tempnam): Add prototype.
871 * libc/stdio/tmpnam.c (_tempnam_r): Handle NULL prefix.
872 (tempnam): Adhere to prototype.
874 Thu Nov 26 00:21:32 1998 Christopher Faylor <cgf@cygnus.com>
876 * Makefile.am: Add default for AR_FLAGS.
877 * Makefile.in: Regenerate.
879 Tue Nov 24 18:48:56 1998 Geoffrey Noer <noer@cygnus.com>
881 * libc/include/time.h: move __cplusplus wrapper after includes
882 * libc/include/sys/time.h: ditto. If Cygwin, include
884 * libc/include/sys/types.h: lose "32" in comment about Cygwin.
886 1998-11-23 Ken Raeburn <raeburn@cygnus.com>
888 * libc/time/strftime.c (strftime): Handle %y after year 2000.
890 Wed Nov 18 12:22:41 1998 Nick Clifton <nickc@cygnus.com>
892 * libc/sys/fr30/crt0.s (_start): Switch over to using int #9 as
893 abnormnal end-of-crt0 marker.
895 Tue Nov 17 16:27:58 1998 Nick Clifton <nickc@cygnus.com>
897 * libc/sys/fr30/crt0.s: New file/directory.
898 * libc/include/machine/setjmp.h: Add FR30 target.
899 * libc/include/machine/ieeefp.h: Add FR30 target.
900 * configure.host: Add FR30 target.
902 Mon Nov 16 23:15:00 1998 Ranjith Kumaran <ranjith@cygnus.com>
904 * libm/math: Files that are duplicated in common directory removed.
905 * libm/math/fdlibm.h: Removed.
906 * libm/math/s_cbrt.c: Removed.
907 * libm/math/s_copysign.c: Removed.
908 * libm/math/s_expm1.c: Removed.
909 * libm/math/s_finite.c: Removed.
910 * libm/math/s_ilogb.c: Removed.
911 * libm/math/s_infinity.c: Removed.
912 * libm/math/s_lib_ver.c: Removed.
913 * libm/math/s_log1p.c: Removed.
914 * libm/math/s_logb.c: Removed.
915 * libm/math/s_matherr.c: Removed.
916 * libm/math/s_modf.c: Removed.
917 * libm/math/s_nan.c: Removed.
918 * libm/math/s_nextafter.c: Removed.
919 * libm/math/s_rint.c: Removed.
920 * libm/math/s_scalbn.c: Removed.
921 * libm/math/sf_cbrt.c: Removed.
922 * libm/math/sf_copysign.c: Removed.
923 * libm/math/sf_expm1.c: Removed.
924 * libm/math/sf_finite.c: Removed.
925 * libm/math/sf_ilogb.c: Removed.
926 * libm/math/sf_infinity.c: Removed.
927 * libm/math/sf_log1p.c: Removed.
928 * libm/math/sf_logb.c: Removed.
929 * libm/math/sf_modf.c: Removed.
930 * libm/math/sf_nan.c: Removed.
931 * libm/math/sf_nextafter.c: Removed.
932 * libm/math/sf_rint.c: Removed.
933 * libm/math/sf_scalbn.c: Removed.
934 * libm/math/Makefile.am: Removed references to deleted files (above).
935 * libm/math/Makefile.in: Regenerated.
936 * libm/Makefile.am: Added common directory to math.
937 * libm/Makefile.in: Regenerated.
939 Mon Nov 2 23:12:00 1998 Ranjith Kumaran <ranjith@cygnus.com>
941 * libm/mathfp: Add non-ANSI functions.
942 * libm/mathfp/e_acosh.c acosh(): New file.
943 * libm/mathfp/e_atanh.c atanh(): New file.
944 * libm/mathfp/e_hypot.c hypot(): New file.
945 * libm/mathfp/e_j0.c j0(): New file.
946 * libm/mathfp/e_j1.c j1(): New file.
947 * libm/mathfp/e_remainder.c remainder(): New file.
948 * libm/mathfp/e_scalb.c scalb(): New file.
949 * libm/mathfp/ef_acosh.c acoshf(): New file.
950 * libm/mathfp/ef_atanh.c atanhf(): New file.
951 * libm/mathfp/ef_hypot.c hypotf(): New file.
952 * libm/mathfp/ef_j0.c j0f(): New file.
953 * libm/mathfp/ef_j1.c j1f(): New file.
954 * libm/mathfp/ef_remainder.c remainderf(): New file.
955 * libm/mathfp/ef_scalb.c scalbf(): New file.
956 * libm/mathfp/er_gamma.c gamma_r: New file.
957 * libm/mathfp/er_lgamma.c lgamma_r(): New file.
958 * libm/mathfp/erf_gamma.c gamma_rf(): New file.
959 * libm/mathfp/erf_lgamma.c lgamma_rf(): New file.
960 * libm/mathfp/w_cabs.c cabs(): New file.
961 * libm/mathfp/w_drem.c drem(): New file.
962 * libm/mathfp/w_jn.c jn(): New file.
963 * libm/mathfp/wf_cabs.c cabsf(): New file.
964 * libm/mathfp/wf_drem.c dremf(): New file.
965 * libm/mathfp/wf_jn.c jnf(): New file.
967 Mon Nov 2 16:43:18 1998 Geoffrey Noer <noer@cygnus.com>
969 * libc/sys/cygwin32: remove directory and contents
970 * libc/sys/cygwin: and add back, losing the "32".
971 * configure.host: check for cygwin* instead of cygwin32.
972 * acinclude.m4: ditto.
973 * aclocal.m4: regenerate with aclocal
974 * configure: regenerate with autoconf
976 Tue Oct 20 17:28:28 1998 Geoffrey Noer <noer@cygnus.com>
978 * libc/stdio/tmpnam.c (_tempnam_r): not enough memory allocated
981 Tue Oct 20 18:49:05 1998 Jeff Johnston <jjohnstn@cygnus.com>
983 * libc/include/sys/reent.h (struct _reent): Added variables _rand_next, _strtok_last,
984 _asctime_buf, _localtime_buf and _gamma_signgam to struct reent
985 to make rand/srand, strtok, asctime, localtime, w_gamma,
986 w_lgamma, wf_gamma, and wf_lgamma reentrant. Included
987 time.h to bring in struct tm definition.
988 * libc/stdlib/rand.c (rand, srand): Don't emit functions 'rand' and 'srand' if
989 '_REENT_ONLY' is set. Used variable '_rand_next' from struct reent.
990 * libc/stdlib/strtok.c (strtok): Used variable '_strtok_last' from struct reent
991 instead of static variable.
992 * libc/stdlib/asctime.c (asctime): Used variable '_asctime_buf' from
993 struct reent instead of static variable.
994 * libc/stdlib/lcltime.c (localtime): Used variable '_localtime_buf' from
995 struct reent instead of static variable.
996 * libm/math/Makefile.am: Removed s_signgam.o.
997 * libm/math/Makefile.in: Regenerated.
998 * libm/math/w_gamma.c (gamma): Used variable '_gamma_signgam' from
999 struct reent instead of global variable 'signgam'.
1000 * libm/math/w_lgamma.c (lgamma): Likewise.
1001 * libm/math/wf_gamma.c (gammaf): Likewise.
1002 * libm/math/wf_lgamma.c (lgammaf): Likewise.
1003 * libm/math/s_signgam.c: Removed.
1004 * libc/include/unctrl.h: Defined arrays __unctrl and __unctrllen
1006 * libc/misc/unctrl.c: Defined arrays __unctrl and __unctrllen
1008 * libc/reent/Makefile.am: Added dependence for impure.o on impure.c and
1009 libc/include/reent.h.
1010 * libc/reent/Makefile.in: Regenerated.
1011 * libc/stdio/vfprintf.c (_vfprintf_r): Defined arrays 'blanks' and 'zeroes'
1013 * libc/stdlib/mbtowc_r.c (_mbtowc_r): Defined arrays 'JIS_state_table' and
1014 'JIS_action_table' to be const.
1015 * libm/math/s_lib_ver.c: define variable _LIB_VERSION to be const.
1017 Mon Oct 12 00:26:33 1998 Christopher Faylor <cgf@cygnus.com>
1019 * acinclude.m4: $with_target_subdir should default to '.'
1020 or confusion results when configuring in same directory as sources.
1021 * Regenerate all aclocal.m4 and configure files.
1023 Fri Oct 9 16:27:36 1998 Jeff Johnston <jjohnstn@cygnus.com>
1025 * libc/stdlib/mallocr.c: Added 16 byte alignment support which
1026 can be set by defining MALLOC_ALIGNMENT=16. Also added support
1027 for platforms where sizeof(size_t) < sizeof(long) via
1028 SIZE_T_SMALLER_THAN_LONG macro.
1030 Wed Oct 7 14:02:40 1998 Jeff Johnston <jjohnstn@cygnus.com>
1032 * libc/include/time.h (CLOCKS_PER_SEC): Change CLOCKS_PER_SEC
1033 to refer to _CLOCKS_PER_SEC_ and added including <machine/time.h>
1034 which sets _CLOCKS_PER_SEC_ for selected machines.
1035 * libc/include/machine/time.h: New file.
1037 Tue Oct 6 16:08:05 1998 Jeff Johnston <jjohnstn@cygnus.com>
1039 * libc/syscalls/sysexecve.c: New file.
1040 * libc/syscalls/sysgettod.c: New file.
1041 * libc/syscalls/systimes.c: New file.
1042 * libc/syscalls/Makefile.am: Added new objects.
1043 * libc/syscalls/Makefile.in: Regenerated.
1044 * libc/include/_syslist.h (_execve): Moved define in file.
1045 * libc/include/reent.h: Added _execve_r declaration.
1046 * libc/Makefile.in: Regenerated.
1047 * libc/ctype/Makefile.in: Regenerated.
1048 * libc/errno/Makefile.in: Regenerated.
1049 * libc/locale/Makefile.in: Regenerated.
1050 * libc/machine/Makefile.in: Regenerated.
1051 * libc/misc/Makefile.in: Regenerated.
1052 * libc/posix/Makefile.in: Regenerated.
1053 * libc/reent/Makefile.in: Regenerated.
1054 * libc/reent/execr.c (_execve_r): Added _execve_r function.
1055 * libc/signal/Makefile.in: Regenerated.
1056 * libc/stdio/Makefile.in: Regenerated.
1057 * libc/time/Makefile.in: Regenerated.
1058 * libc/unix/Makefile.in: Regenerated.
1059 * libm/mathfp/Makefile.in: Regenerated.
1061 Tue Oct 6 14:14:05 1998 Jeff Johnston <jjohnstn@cygnus.com>
1063 * libc/string/Makefile.in: Regenerated.
1064 * libc/string/memchr.c (memchr): Moved code to reduce object size.
1065 * libc/string/memcpy.c (memcpy): Ditto.
1066 * libc/string/memcmp.c (memcmp): Ditto.
1067 * libc/string/memset.c (memset): Ditto.
1068 * libc/string/strchr.c (strchr): Ditto.
1069 * libc/string/strcmp.c (strcmp): Ditto.
1070 * libc/string/strcpy.c (strcpy): Ditto.
1071 * libc/string/strlen.c (strlen): Ditto.
1073 Tue Oct 6 13:58:05 1998 Jeff Johnston <jjohnstn@cygnus.com>
1075 * libm/acinclude.m4: Removed since newlib/acinclude.m4 can be used
1076 to generate aclocal.m4.
1077 * libm/Makefile.in: Regenerated.
1078 * libm/aclocal.m4: Regenerated.
1079 * libm/configure: Regenerated.
1080 * libm/math/Makefile.in: Regenerated.
1081 * libm/mathfp/Makefile.in: Regenerated.
1083 1998-09-25 Mark Salter <msalter@cygnus.com>
1085 * libc/include/machine/setjmp.h: Fixed test for mn10300 and mn10200
1086 by adding leading and trailing underscores to symbol names.
1088 Tue Sep 22 15:33:41 1998 Christopher Faylor <cgf@cygnus.com>
1090 * Makefile.in: Add default for AR_FLAGS.
1092 Tue Sep 22 15:02:49 1998 Christopher Faylor <cgf@cygnus.com>
1094 patch from ian@airs.com (Ian Taylor):
1095 * acinclude.m4: Run AC_CANONICAL_BUILD explicitly before
1096 NEWLIB_CONFIGURE so AC_CANONICAL_HOST will be run before it
1097 is needed for detecting the build machine. Required for
1098 cygwin native builds.
1100 * Regenerate all aclocal.m4 and configure files.
1102 Mon Sep 21 14:44:16 1998 Nick Clifton <nickc@cygnus.com>
1104 * libc/sys/arm/crt0.S: Prepend a period to all local labels that
1105 used to start with LC.
1107 Thu Sep 17 18:18:11 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
1109 * libc/machine/sh/setjmp.S (setjmp): Handle __SH4* like __SH3E__ .
1110 (longjmp): Likewise.
1112 Thu Sep 17 16:25:33 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
1114 * libc/machine/sh/memset.S (memset): Move copy from r4 to r4 before
1115 the test for small number of bytes.
1117 Thu Sep 10 11:40:00 1998 Ranjith Kumaran <ranjith@cygnus.com>
1119 * Makefile.am: Add --enable-newlib-hw-fp check. This builds the new
1120 math library that uses floating point algorithms instead of the old
1122 * Makefile.in: Regenerate with automake version 1.3b.
1123 * configure: Rebuild.
1124 * libm/Makefile.in: Regenerate with automake version 1.3b.
1125 * libm/aclocal.m4: Regenerate.
1126 * libm/configure: Rebuild.
1127 * libm/configure.in: Add newlib_hw_fp definition and mathfp directory.
1128 * libm/acinclude.m4: Define macros for configure.in.
1129 * libm/config.h.in: Generate.
1130 * libm/mathfp/Makefile.am: New file.
1131 * libm/mathfp/Makefile.in: Generate.
1132 * libm/mathfp/s_acos.c (acos): New file.
1133 * libm/mathfp/s_asin.c (asin): New file.
1134 * libm/mathfp/s_asine.c (asine): New file.
1135 * libm/mathfp/s_atan.c (atan): New file.
1136 * libm/mathfp/s_atan2.c (atan2): New file.
1137 * libm/mathfp/s_atangent.c (atangent): New file.
1138 * libm/mathfp/s_ceil.c (ceil): New file.
1139 * libm/mathfp/s_copysign.c (copysign): New file.
1140 * libm/mathfp/s_cos.c (cos): New file.
1141 * libm/mathfp/s_cosh.c (cosh): New file.
1142 * libm/mathfp/s_exp.c (exp): New file.
1143 * libm/mathfp/s_fabs.c (fabs): New file.
1144 * libm/mathfp/s_finite.c (finite): New file.
1145 * libm/mathfp/s_floor.c (floor): New file.
1146 * libm/mathfp/s_fmod.c (fmod): New file.
1147 * libm/mathfp/s_frexp.c (frexp): New file.
1148 * libm/mathfp/s_infconst.c: New file.
1149 * libm/mathfp/s_isinf (isinf).c: New file.
1150 * libm/mathfp/s_isnan.c (isnan): New file.
1151 * libm/mathfp/s_ispos.c (ispos): New file.
1152 * libm/mathfp/s_ldexp.c (ldexp): New file.
1153 * libm/mathfp/s_log.c (log): New file.
1154 * libm/mathfp/s_log10.c (log10): New file.
1155 * libm/mathfp/s_logarithm.c (logarithm): New file.
1156 * libm/mathfp/s_mathcnst.c: New file.
1157 * libm/mathfp/s_modf (modf).c: New file.
1158 * libm/mathfp/s_numtest.c (numtest): New file.
1159 * libm/mathfp/s_pow.c (pow): New file.
1160 * libm/mathfp/s_scalbn.c (scalbn): New file.
1161 * libm/mathfp/s_sin (sin).c: New file.
1162 * libm/mathfp/s_sine.c (sine): New file.
1163 * libm/mathfp/s_sineh.c (sineh): New file.
1164 * libm/mathfp/s_sinf.c (sinf): New file.
1165 * libm/mathfp/s_sinh.c (sinh): New file.
1166 * libm/mathfp/s_sqrt.c (sqrt): New file.
1167 * libm/mathfp/s_tan.c (tan): New file.
1168 * libm/mathfp/s_tanh.c (tanh): New file.
1169 * libm/mathfp/sf_acos.c (acosf): New file.
1170 * libm/mathfp/sf_asin.c (asinf): New file.
1171 * libm/mathfp/sf_asine.c (asinef): New file.
1172 * libm/mathfp/sf_atan.c (atanf): New file.
1173 * libm/mathfp/sf_atan2.c (atan2f): New file.
1174 * libm/mathfp/sf_atangent.c (atangent): New file.
1175 * libm/mathfp/sf_ceil.c (ceilf): New file.
1176 * libm/mathfp/sf_copysign.c (copysignf): New file.
1177 * libm/mathfp/sf_cos.c (cosf): New file.
1178 * libm/mathfp/sf_cosh.c (coshf): New file.
1179 * libm/mathfp/sf_exp.c (expf): New file.
1180 * libm/mathfp/sf_fabs.c (fabsf): New file.
1181 * libm/mathfp/sf_finite.c (finitef): New file.
1182 * libm/mathfp/sf_floor.c (floorf): New file.
1183 * libm/mathfp/sf_fmod.c (fmodf): New file.
1184 * libm/mathfp/sf_frexp.c (frexpf): New file.
1185 * libm/mathfp/sf_isinf.c (isinff): New file.
1186 * libm/mathfp/sf_isnan.c (isnanf): New file.
1187 * libm/mathfp/sf_ispos.c (isposf): New file.
1188 * libm/mathfp/sf_ldexp.c (ldexpf): New file.
1189 * libm/mathfp/sf_log.c (logf): New file.
1190 * libm/mathfp/sf_log10.c (log10f): New file.
1191 * libm/mathfp/sf_logarithm.c (logarithmf): New file.
1192 * libm/mathfp/sf_modf.c (modff): New file.
1193 * libm/mathfp/sf_numtest.c (numtestf): New file.
1194 * libm/mathfp/sf_pow.c (powf): New file.
1195 * libm/mathfp/sf_scalbn.c (scalbnf): New file.
1196 * libm/mathfp/sf_sin.c (sinf): New file.
1197 * libm/mathfp/sf_sine.c (sinef): New file.
1198 * libm/mathfp/sf_sineh.c (sinehf): New file.
1199 * libm/mathfp/sf_sinh.c (sinhf): New file.
1200 * libm/mathfp/sf_sqrt.c (sqrtf): New file.
1201 * libm/mathfp/sf_tan.c (tanf): New file.
1202 * libm/mathfp/sf_tanh.c (tanhf): New file.
1203 * libm/mathfp/zmath.h: New file.
1205 Wed Sep 2 02:49:03 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
1207 * libc/machine/sh/strcmp.S (L_char_loop): Re-load r0 at loop
1208 exit if it has been overwritten by pre-fetching in delay slot.
1210 1998-09-01 Michael Meissner <meissner@cygnus.com>
1212 * Makefile.am (tooldir): Add in host_alias, so that multilib
1213 libraries are installed in the directory the compiler looks in.
1214 * Makefile.in: Regenerate.
1216 * libc/stdlib/Makefile.in: Regenerate with automake version 1.3b.
1218 Mon Aug 31 11:39:31 1998 Jeff Johnston <jjohnstn@cygnus.com>
1220 * libc/machine/mn10300/memcpy.S (_memcpy): Move alignment test
1221 ahead of test for number of bytes being moved.
1223 Thu Aug 27 14:07:53 1998 Christopher Faylor <cgf@cygnus.com>
1225 * libc/include/sys/unistd.h: Nothing special needed for
1228 Wed Aug 26 15:05:21 1998 Nick Clifton <nickc@cygnus.com>
1230 * libc/sys/arm/syscalls.c (_sbrk): Rename '_end' to 'end' to
1231 conform to user label naming conventions.
1233 Mon Aug 24 14:46:19 1998 Geoffrey Noer <noer@cygnus.com>
1235 * libc/sys/cygwin32/sys/utime.h: variable names in
1236 protos should start with two leading underscores
1237 * libc/include/string.h: ditto
1238 * libc/include/sys/signal.h: ditto
1239 * libc/include/sys/stat.h: ditto
1240 * libc/include/sys/time.h: ditto
1241 * libc/include/sys/unistd.h: ditto
1242 * libc/include/ctype.h: ditto
1243 * libc/include/stdlib.h: ditto
1244 * libc/include/sys/reent.h: struct _atexit function ptr takes a
1245 void, same with _sig_func.
1247 Fri Aug 21 14:44:14 1998 Jeff Johnston <jjohnstn@cygnus.com>
1249 * libc/stdlib/mbtowc_r.c (_mbtowc_r): Added preprocessor checks
1250 for MB_CAPABLE to reduce code size when newlib is not configured
1251 with --enable-newlib-mb.
1252 * libc/stdlib/Makefile.am: Specified -fshort-enums when building
1253 mbtowc_r.o to minimize size.
1254 * libc/stdlib/Makefile.in: Rebuild.
1256 Wed Aug 19 16:20:13 1998 Jim Wilson <wilson@cygnus.com>
1258 * libc/sys/sparc64/Makefile.am (.S_r.o, .c_r.o): Change -DREENTRANT
1260 * libc/sys/sparc64/Makefile.in: Rebuild.
1262 Tue Aug 18 22:38:29 1998 Ian Lance Taylor <ian@cygnus.com>
1264 * Makefile.am (MAKEOVERRIDES): Define.
1265 * Makefile.in: Rebuild.
1267 Tue Aug 18 12:38:47 1998 Jim Wilson <wilson@cygnus.com>
1269 * libc/sys/sparc64/sys/stat.h (stat): Add const.
1271 Mon Aug 17 22:27:06 1998 Ian Lance Taylor <ian@cygnus.com>
1273 * acinclude.m4 (NEWLIB_CONFIGURE): Use top_builddir in
1274 newlib_cflags when looking for targ-include.
1275 * */aclocal.m4, */configure: Rebuild.
1277 Fri Jul 31 10:57:42 1998 Catherine Moore <clm@cygnus.com>
1279 * libc/sys/arm/syscalls.c (_sbrk): Change "__end__"
1282 Wed Jul 29 00:02:01 1998 Mark Alexander <marka@cygnus.com>
1284 * libc/include/sys/config.h: Define __IEEE_LITTLE_ENDIAN
1285 on SPARCs with little-endian data.
1286 * libc/include/machine/ieeefp.h: Ditto.
1288 Wed Jul 22 18:00:10 1998 Ian Lance Taylor <ian@cygnus.com>
1290 * acinclude.m4: Handle a relative srcdir correctly when setting
1292 * */aclocal.m4, */configure: Rebuild.
1294 Wed Jul 22 17:11:33 1998 Jeff Johnston <jjohnstn@cygnus.com>
1296 * libm/math/wrf_lgamma.c (lgammaf_r): Initialize exc.err to 0 and
1297 also set exc.arg1, exc.arg2 appropriately in case matherr is supplied.
1298 * libm/math/wrf_gamma.c (gammaf_r): ditto
1299 * libm/math/wr_lgamma.c (lgamma_r): ditto
1300 * libm/math/wr_gamma.c (gamma_r): ditto
1301 * libm/math/wf_sqrt.c (sqrtf): ditto
1302 * libm/math/wf_sinh.c (sinhf): ditto
1303 * libm/math/wf_scalb.c (scalbf): ditto
1304 * libm/math/wf_remainder.c (remainderf): ditto
1305 * libm/math/wf_pow.c (powf): ditto
1306 * libm/math/wf_log10.c (log10f): ditto
1307 * libm/math/wf_log.c (logf): ditto
1308 * libm/math/wf_lgamma.c (lgammaf): ditto
1309 * libm/math/wf_jn.c (jnf, ynf): ditto
1310 * libm/math/wf_j1.c (j1f, y1f): ditto
1311 * libm/math/wf_j0.c (j0f, y0f): ditto
1312 * libm/math/wf_hypot.c (hypotf): ditto
1313 * libm/math/wf_gamma.c (gammaf): ditto
1314 * libm/math/wf_fmod.c (fmodf): ditto
1315 * libm/math/wf_exp.c (expf): ditto
1316 * libm/math/wf_cosh.c (coshf): ditto
1317 * libm/math/wf_atanh.c (atanhf): ditto
1318 * libm/math/wf_atan2f.c (atan2f): ditto
1319 * libm/math/wf_asin.c (asinf): ditto
1320 * libm/math/wf_acosh.c (acoshf): ditto
1321 * libm/math/wf_acos.c (acosf): ditto
1322 * libm/math/w_sqrt.c (sqrt): ditto
1323 * libm/math/w_sinh.c (sinh): ditto
1324 * libm/math/w_scalb.c (scalb): ditto
1325 * libm/math/w_remainder.c (remainder): ditto
1326 * libm/math/w_pow.c (pow): ditto
1327 * libm/math/w_log10.c (log10): ditto
1328 * libm/math/w_log.c (log): ditto
1329 * libm/math/w_lgamma.c (lgamma): ditto
1330 * libm/math/w_jn.c (jn, yn): ditto
1331 * libm/math/w_j1.c (j1, y1): ditto
1332 * libm/math/w_j0.c (j0, y0): ditto
1333 * libm/math/w_hypot.c (hypot): ditto
1334 * libm/math/w_gamma.c (gamma): ditto
1335 * libm/math/w_fmod.c (fmod): ditto
1336 * libm/math/w_exp.c (exp): ditto
1337 * libm/math/w_cosh.c (cosh): ditto
1338 * libm/math/w_atanh.c (atanh): ditto
1339 * libm/math/w_atan2f.c (atan2): ditto
1340 * libm/math/w_asin.c (asin): ditto
1341 * libm/math/w_acosh.c (acosh): ditto
1342 * libm/math/w_acos.c (acos): ditto
1344 Tue Jul 21 12:34:54 1998 Ian Lance Taylor <ian@cygnus.com>
1346 * libm/math/Makefile.am (src): Add w_cabs.c and w_drem.c.
1347 (fsrc): Add wf_cabs.c and wf_drem.c.
1348 * libm/math/Makefile.in: Rebuild.
1350 * Makefile.am (AM_MAKEFLAGS): Add CFLAGS_FOR_BUILD. Remove some
1351 unused directory variables. Remove duplicate CFLAGS.
1352 * Makefile.in: Rebuild.
1354 * doc/Makefile.am ($(MKDOC)): Don't use $(CFLAGS) when building
1355 with $(CC_FOR_BUILD).
1356 (makedoc.o): Likewise.
1357 * doc/Makefile.in: Rebuild.
1359 * libc/sys/cygwin32/Makefile.am (EXTRA_LIBRARIES): Define, to
1360 force a definition of COMPILE.
1361 (libfoo_a_SOURCES): Define.
1362 * libc/sys/cygwin32/Makefile.in: Rebuild.
1363 * libc/sys/tic80/Makefile.am (EXTRA_LIBRARIES): Define, to
1364 force a definition of COMPILE.
1365 (libfoo_a_SOURCES): Define.
1366 * libc/sys/tic80/Makefile.in: Rebuild.
1368 Mon Jul 20 20:49:24 1998 Christopher Faylor <cgf@cygnus.com>
1370 * libc/include/sys/fcntl.h: Add O_NOINHERIT, Win32-specific
1373 Fri Jul 17 16:13:16 1998 Ian Lance Taylor <ian@cygnus.com>
1375 * Build using autoconf and automake. Added many Makefile.am and
1376 configure.in files, plus generated files. Old configure.in files
1377 and all old Makefile.in files completely replaced. Removed
1378 host/any. Added acinclude.m4 and configure.host.
1380 Sat Jul 11 18:14:49 1998 Felix Lee <flee@cygnus.com>
1382 * libc/stdio/vfprintf.c: enable long long support, sometimes.
1383 * configure.in (*-*-cygwin32): add -DWANT_PRINTF_LONG_LONG.
1385 Tue Jul 7 01:51:55 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
1387 * libc/machine/sh/strcmp.S, libc/machine/sh/strcpy.S: New files.
1388 * libc/machine/sh/Makefile.in: Add rules for new files.
1390 Tue Jul 7 01:40:55 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
1392 * libc/machine/sh/asm.h (SL, DELAYED_BRANCHES): Define.
1393 * libc/machine/sh/memset.S (memset): Remove uses of dt; shorten code.
1394 * libc/machine/sh/memcpy.S (SL, DELAYED_BRANCHES): Don't define.
1396 Thu Jul 2 10:33:16 1998 Nick Clifton <nickc@cygnus.com>
1398 * libc/sys/arm/syscalls.c (_exit): Add comment, noting that exit
1401 Wed Jun 24 13:56:54 1998 Jeff Johnston <jjohnstn@cygnus.com>
1403 * libc/stdio/tmpnam.c (_tmpnam_r): Changed routine to use
1404 internal static buffer when s is NULL, as prescribed by ANSI.
1406 1998-06-22 Vladimir N. Makarov <vmakarov@cygnus.com>
1408 * libc/sys/h8300hms/Makefile.in (OFILES): malloc.o has been
1410 * libc/sys/h8300hms/malloc.c: has been removed. Now malloc.c from
1411 libc/stdlib will be used for h8300hms.
1413 Thu Jun 18 16:56:05 1998 Jeff Johnston <jjohnstn@cygnus.com>
1415 * libc/machine/mn10300/strlen.S (_strlen): New optimized assembler
1416 version that can be built either for speed or size.
1417 * libc/machine/mn10300/memset.S (_memset): ditto
1418 * libc/machine/mn10300/memchr.S (_memchr): ditto
1419 * libc/machine/mn10300/memcpy.S (_memcpy): ditto
1420 * libc/machine/mn10300/memcmp.S (_memcmp): ditto
1421 * libc/machine/mn10300/strchr.S (_strchr): ditto
1422 * libc/machine/mn10300/strcmp.S (_strcmp): ditto
1423 * libc/machine/mn10300/strcpy.S (_strcpy): ditto
1424 * libc/machine/mn10300/Makefile.in: Added entries for
1425 memchr.o, memcmp.o, memcpy.o, memset.o, strchr.o,
1426 strcmp.o, strcpy.o, and strlen.o.
1428 Wed Jun 17 12:50:26 1998 Mark Alexander <marka@cygnus.com>
1430 * configure.in: Don't use libc/sys/sysmec for MN10200; it's
1431 been replaced with libgloss/mn10200.
1433 Fri Jun 12 14:34:39 1998 Michael Meissner <meissner@cygnus.com>
1435 * libc/string/strchr.c (strchr): Make s a constant pointer to
1438 Tue Jun 9 16:29:30 1998 Jason Molenda (crash@bugshack.cygnus.com)
1440 * configure.in (target == arm* or thumb*): Define ARM_RDI_MONITOR
1441 instead of ARM_RDP_MONITOR (sys/libc/arm/crt0.S to assume Angel
1442 board SWIs instead of Demon board SWIs).
1444 Thu Jun 4 12:16:46 1998 Michael Meissner <meissner@cygnus.com>
1446 * libc/string/strncat.c (strncat): Make -Os act the same as
1447 PREFER_SIZE_OVER_SPEED being defined.
1449 Wed Jun 3 17:52:33 1998 Michael Meissner <meissner@cygnus.com>
1451 * libc/string/memchr.c (memchr): Make -Os act the same as
1452 PREFER_SIZE_OVER_SPEED being defined.
1453 * libc/string/memcmp.c (memcmp): Ditto.
1454 * libc/string/memcpy.c (memcpy): Ditto.
1455 * libc/string/memset.c (memset): Ditto.
1456 * libc/string/strcat.c (strcat): Ditto.
1457 * libc/string/strchr.c (strchr): Ditto.
1458 * libc/string/strcmp.c (strcmp): Ditto.
1459 * libc/string/strcpy.c (strcpy): Ditto.
1460 * libc/string/strlen.c (strlen): Ditto.
1461 * libc/string/strncat.c (strncat): Ditto.
1462 * libc/string/strncmp.c (strncmp): Ditto.
1463 * libc/string/strncpy.c (strncpy): Ditto.
1465 Mon Jun 1 15:25:07 1998 Geoffrey Noer <noer@cygnus.com>
1467 * libc/include/sys/itimer.h: remove
1468 * libc/include/sys/time.h: itimer stuff should be here
1470 Mon Jun 1 16:31:29 1998 Jeff Johnston <jjohnstn@cygnus.com>
1472 * libc/stdio/vfprintf.c (cvt): Changed code to look at sign
1473 bit instead of comparing to 0 so -0.0 can be printed correctly.
1475 Sat May 30 09:33:51 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
1477 * libc/stdlib/mprec.c (b2d): Inilialize d in non-VAX case too.
1479 Fri May 29 22:25:10 1998 Geoffrey Noer <noer@cygnus.com>
1481 * libc/include/sys/unistd.h: fix sync() proto
1482 * libc/include/sys/fcntl.h: remove _close which is already
1483 defined in unistd.h.
1484 * libc/include/sys/time.h: add getitimer proto
1486 Fri May 29 16:10:28 1998 Geoffrey Noer <noer@cygnus.com>
1488 * libc/string/strchr.c: convert arg to unsigned char
1489 * libc/include/stdlib.h: add protos for random, srandom
1490 * libc/include/sys/stat.h: add lstat proto
1491 * libc/include/sys/time.h: add setitimer proto
1492 * libc/include/sys/unistd.h: add readlink, symlink protos
1493 * libc/include/process.h: instead of including windows.h and using
1494 HANDLEs in sexec protos, just use void *s. Need to include
1497 Fri May 29 03:04:29 1998 Geoffrey Noer <noer@cygnus.com>
1499 * libc/include/sys/fcntl.h: add _close proto for Cygwin32
1501 Thu May 28 16:34:21 1998 Geoffrey Noer <noer@cygnus.com>
1503 * libc/include/process.h: add secure exec protos
1505 Wed May 27 13:54:51 1998 Jeffrey A Law (law@cygnus.com)
1507 * libc/stdlib/dtoa.c (_dtoa_r): Use "double_union" for variables
1508 which are accessed as both doubles and integers.
1509 * libc/stdlib/mprec.c (ulp, b2d, ratio): Likewise.
1510 * libc/stdlib/strtod.c (_strtod_r): Likewise.
1511 * libc/stdlib/mprec.h: Add "union double_union" and change
1512 word0/word1 macros to use it.
1514 Tue May 26 18:04:21 1998 Geoffrey Noer <noer@cygnus.com>
1516 * libc/include/sys/signal.h: add __cplusplus wrapper
1518 Tue May 26 15:10:22 1998 Geoffrey Noer <noer@cygnus.com>
1520 * libc/include/sys/utime.h: new generic file that gets replaced by
1521 libc/sys/SYSDIR/sys/utime.h on systems that support the utime
1523 * sys/cygwin32/sys/utime.h: use _EXFUN in utime proto
1524 * libc/include/time.h: remove duplicate utime proto
1525 * libc/include/utime.h: add comment
1527 Sun May 24 23:56:20 1998 Christopher Faylor <cgf@cygnus.com>
1529 * libc/include/sys/time.h: Add missing include to
1530 allow use of _EXFUN. Remove times function that is
1531 already defined in times.h.
1533 Sun May 24 01:32:14 1998 Christopher Faylor <cgf@cygnus.com>
1535 * libc/include/time.h: Fix typo in tzset.
1537 Fri May 22 17:00:48 1998 Geoffrey Noer <noer@cygnus.com>
1539 * libc/include/sys/time.h: add missing Cygwin32 function protos
1540 * libc/include/sys/unistd.h: ditto
1541 * libc/include/time.h: ditto
1543 Wed May 20 20:35:11 1998 Geoffrey Noer <noer@cygnus.com>
1545 * libc/sys/cygwin32/sys/param.h: add protected NULL def, remove
1547 * libc/include/sys/types.h: add a new __MS_types__ section
1548 to define vm_offset_t, vm_size_t, int32_t et al, register_t,
1549 __BIT_TYPES_DEFINED__.
1551 Wed May 20 18:49:21 1998 Geoffrey Noer <noer@cygnus.com>
1553 * libc/sys/cygwin32/sys/param.h: move here from winsup/include/sys
1554 since it overrides the one in libc/include/sys. Also, start
1557 Wed May 20 14:45:40 1998 Geoffrey Noer <noer@cygnus.com>
1559 * libm/math/Makefile.in: add s_signgam.o to obj list
1561 Tue May 19 11:57:11 1998 Jeff Johnston <jjohnstn@cygnus.com>
1563 * libc/include/sys/reent.h (_REENT_INIT): Initialize current locale to "C".
1565 Mon May 18 22:36:12 1998 Christopher Faylor <cgf@cygnus.com>
1567 * libc/include/sys/signal.h: cygwin32 exports sig{empty,add}set,
1568 so don't use defines.
1570 Mon May 18 19:01:02 1998 Michael Meissner <meissner@cygnus.com>
1572 * libc/sys/d10v/crt0.S: Use correct stab for 16-bit ints.
1574 Sun May 17 18:40:32 1998 Frank Ch. Eigler <fche@cygnus.com>
1576 * libc/stdlib/mbtowc_r.c (_mbtowc_r): Accept a NULL
1577 _current_locale as default locale.
1579 Sat May 16 21:59:59 1998 Bob Manson <manson@charmed.cygnus.com>
1581 * libc/stdlib/mallocr.c (mALLOc): Add explicit tests for
1582 insufficient space in a chunk.
1584 Tue May 12 14:41:01 1998 Jeff Johnston <jjohnstn@cygnus.com>
1586 * configure.in (links): Added check for --enable-newlib-mb configure
1587 option which defines the MB_CAPABLE macro.
1588 * libc/locale/locale.c (_setlocale_r): Added support for setting
1589 LC_CTYPE to "C-JIS", "C-SJIS" or "C-EUCJP", when MB_CAPABLE is
1591 * libc/stdlib/mbtowc_r.c (_mbtowc_r): New function _mbtowc_r that
1592 implements mbtowc() with multibyte support for JIS, SJIS, and EUC-JP.
1593 * libc/stdlib/wctomb_r.c (_wctomb_r): New function _wctomb_r that
1594 implements wctomb() with multibyte support for JIS, SJIS, and EUC-JP.
1595 * libc/stdlib/mbstowcs_r.c (_mbstowcs_r): New function _mbstowcs_r that
1596 implements mbstowcs() with multibyte support for JIS, SJIS, and EUC-JP.
1597 * libc/stdlib/wcstombs_r.c (_wcstombs_r): New function _wcstomb_r that implements
1598 wcstombs() with multibyte support for JIS, SJIS, and EUC-JP.
1599 * libc/stdlib/Makefile.in: Added new multibyte
1600 routines: _mbtowc_r(), _wctomb_r(), _mbstowcs_r(), and _wcstombs_r().
1601 * libc/include/stdlib.h: Added declarations of _mbtowc_r(), _wctomb_r(),
1602 _mbstowcs_r(), and _wcstombs_r().
1603 * libc/stdlib/mbctype.h: New internal header file that contains macros to test
1604 for JIS, SJIS, and EUC-JP characters.
1605 * libc/stdlib/mblen.c (mblen): Added code to call _mbtowc_r() if
1607 * libc/stdlib/mbtowc.c (mbtowc): Added code to call _mbtowc_r() if
1609 * libc/stdlib/wctomb.c (wctomb): Added code to call _wctomb_r() if
1611 * libc/stdlib/mbstowcs.c (mbstowcs): Added code to call _mbstowcs_r()
1612 if MB_CAPABLE defined.
1613 * libc/stdlib/wcstombs.c (wcstombs): Added code to call _wcstombs_r()
1614 if MB_CAPABLE defined.
1615 * libc/stdio/vfscanf.c (__svfscanf): Added multibyte tolerance
1616 to the format string processing when MB_CAPABLE.
1617 * libc/stdio/vfprintf.c (_VFPRINTF_R): Changed mbtowc() call to
1620 Tue May 5 16:07:23 1998 Nick Clifton <nickc@cygnus.com>
1622 The following modifications are courtesy of Anthony Thompson,
1623 athompson@cambridge.arm.com:
1624 * libc/sys/arm/syscalls.c: Initialise and track stdin/out/err for
1625 boith RDI and RDP monitors.
1626 * libc/sys/arm/crt0.S: Call initialise_monitor_handles() for both
1627 RDI and RDP monitors.
1629 Wed Apr 29 15:22:15 1998 Jeff Johnston <jjohnstn@cygnus.com>
1631 * configure.in (links): Added -DHAVE_GETTIMEOFDAY for arm and thumb.
1632 * libc/sys/arm/syscalls.c (_gettimeofday _times): Added functions.
1633 (_swiopen): Fixed open flags to treat write with append as just append.
1634 (_swilseek): Fixed lseek support to properly handle offsets from SEEK_END.
1635 * libc/sys/arm/sys/param.h: New file to override param.h for ARM.
1637 Fri Apr 24 18:00:09 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
1639 * libc/machine/sh/memcpy.S (L_odddst, big endian version):
1640 When needing to transfer an initial 2-byte-word, store as
1643 Wed Apr 22 17:56:03 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
1645 * libc/sys/sh/crt0.S (start): Handle __SH4_SINGLE_ONLY__ like
1647 * libc/machine/sh/memcpy.S (DELAYED_BRANCHES, SL): Likewise.
1648 * libc/include/machine/ieeefp.h (_DOUBLE_IS_32BITS): Likewise.
1650 Wed Apr 22 12:28:03 1998 Michael Meissner <meissner@cygnus.com>
1652 * configure.in (target_cflags): If --enable-target-optspace, use
1653 -Os to compile newlib rather than -O2. Default to using -Os for
1654 d10v, d30v and m32r if --{enable,disable}-target-optspace is not
1657 Tue Apr 21 23:13:34 1998 Geoffrey Noer <noer@cygnus.com>
1659 * libc/include/machine/setjmp.h: change sigsetjmp and
1660 siglongjmp definitions to use an array instead of a struct
1663 Tue Apr 14 11:47:47 1998 Doug Evans <devans@canuck.cygnus.com>
1665 * libc/reent/impure.c (__ATTRIBUTE_IMPURE_DATA__): Fix spelling.
1667 Mon Apr 6 15:05:08 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
1669 * libc/string/strxfrm.c: fix to get correct return value
1671 Wed Apr 1 16:09:05 1998 Nick Clifton <nickc@cygnus.com>
1673 * libc/sys/arm/crt0.S: Set top of RAM to be 0x800000 for PE
1674 builds. Make mode change labels global so that they will be seen
1677 Wed Mar 18 09:45:10 1998 Nick Clifton <nickc@cygnus.com>
1679 * configure.in (links): Do not use ARM debiugging protocols for PE
1682 * libc/sys/arm/syscalls.c (_sbrk): Add "_sbrk: " to error
1685 Fri Mar 13 11:24:34 1998 Jeff Johnston <jjohnstn@cygnus.com>
1687 * libc/stdio/findfp.c (__sinit): Made stdout default to
1688 line buffered mode as defined by ANSI.
1690 Tue Mar 10 11:41:26 1997 Bob Manson <manson@charmed.cygnus.com>
1692 * libc/include/sys/itimer.h: New file.
1694 * libc/signal/signal.c (__sigtramp_r,__sigtramp): New functions.
1696 Mon Mar 9 14:19:26 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
1698 * libc/machine/sh/memcpy.S: (_memcpy): Fix for execute/memcpy-1.c
1701 Fri Feb 27 13:56:10 1998 Michael Meissner <meissner@cygnus.com>
1703 * libc/machine/d30v/setjmp.S (longjmp): Fix order of parallel
1706 Wed Feb 25 09:29:54 1998 Nick Clifton <nickc@cygnus.com>
1708 * libc/sys/arm/syscalls.c (_open): Add varags to conform to prototype.
1710 Tue Feb 24 18:00:13 1998 Michael Meissner <meissner@cygnus.com>
1712 * libc/machine/d30v/{setjmp.S,Makefile.in}: New files for D30V
1715 * libc/include/machine/setjmp.h: Add D30V support.
1717 * configure.in (d30v-*): Add d30v machine directory.
1719 Mon Feb 23 09:32:58 1998 Mark Alexander <marka@cygnus.com>
1721 * configure.in: Don't use libc/sys/sysmec for MN10300; it's
1722 been replaced with libgloss/mn10300.
1724 Sat Feb 21 17:44:43 1998 Geoffrey Noer <noer@cygnus.com>
1726 * libc/stdlib/mallocr.c: remove __malloc_copy routine now that
1727 it is no longer needed.
1729 Thu Feb 19 16:15:10 1998 Geoffrey Noer <noer@cygnus.com>
1731 * libc/include/sys/signal.h: add sigpause proto for Cygwin32
1733 Wed Feb 18 23:51:08 1998 Geoffrey Noer <noer@cygnus.com>
1735 * libc/stdio/fdopen.c (fdopen): Make all writes go to the end of
1736 the file when O_APPEND is set, wherever the EOF happens to be at
1739 Wed Feb 18 23:25:02 1998 Geoffrey Noer <noer@cygnus.com>
1741 patch from cgf@bbc.com (Christopher Faylor):
1742 * libc/stdio/freopen.c (freopen): Conform to standard UNIX
1743 convention of closing fp prior to attempting to open the file
1744 argument. This allows correct operation when reopening
1745 stdin/stdout/stderr. Replaces last freopen.c patch.
1747 Wed Feb 18 16:27:40 1998 Geoffrey Noer <noer@cygnus.com>
1749 patch from cgf@bbc.com (Christopher Faylor):
1750 * libc/stdio/freopen.c: freopen was not preserving the fd
1751 of the stream being operated on. This confuses programs that
1752 expect that the handles for stdout and stderr will be 1 and 2.
1754 Mon Feb 16 23:34:07 1998 Andrew Cagney <cagney@b1.cygnus.com>
1756 * libc/sys/d10v/crt0.S (_start): Set PSW{SW} - select SPU.
1758 Thu Feb 12 15:09:20 1998 Ranjith Kumaran <ranjith@cygnus.com>
1760 * libc/sys/go32/longjmp.S: Fix longjmp to not return 0.
1762 Wed Feb 11 17:50:45 1998 Jeff Johnston <jjohnstn@cygnus.com>
1764 * libc/machine/powerpc/setjmp.S (setjmp, longjmp): Alignment code
1765 altered to not use a branch. Also added hint that last
1766 bclr in longjmp will likely result in branch.
1769 Mon Feb 9 03:44:02 1998 Geoffrey Noer <noer@cygnus.com>
1771 * libc/sys/cygwin32/crt0.c: add missing args to main() extern
1773 Fri Feb 6 16:32:32 1998 Nick Clifton <nickc@cygnus.com>
1775 * libc/sys/sysnecv850/crt0.S (_start): Initialise _ctbp even for
1778 * configure.in: Add -msmall-sld to target_cflags for v850 builds.
1780 Wed Feb 4 16:56:20 1998 Jeff Johnston <jjohnstn@cygnus.com>
1782 * libc/machine/powerpc/setjmp.S (longjmp): Fixed code
1783 that loads FR14 to specify offset of 8 rather than 4
1784 so it loads from offset 96 (where setjmp stored it).
1786 Tue Feb 3 18:08:34 1998 Jeff Johnston <jjohnstn@cygnus.com>
1788 * libc/machine/sh/memcpy.S: (_memcpy): Update to
1789 latest version supplied by customer.
1790 * libc/machine/sh/memset.S (_memset): Ditto.
1792 Mon Feb 2 16:20:39 1998 Nick Clifton <nickc@cygnus.com>
1794 * libc/sys/sysnecv850/Makefile.in (OFILES): Add link.o (for
1797 Mon Feb 2 15:13:26 1998 Geoffrey Noer <noer@cygnus.com>
1799 * libc/include/string.h: remove redefinition of ffs
1801 Wed Jan 28 13:30:14 1998 Geoffrey Noer <noer@cygnus.com>
1803 * libc/include/sys/signal.h: include _ansi.h so _EXFUN is
1806 Wed Jan 28 10:38:34 1998 Jeff Johnston <jjohnstn@cygnus.com>
1808 * libc/machine/tic80/setjmp.S: Adding _setjmp to allow
1809 TI Libraries to link to libc.a
1811 Sat Jan 24 10:15:56 1998 Michael Meissner <meissner@cygnus.com>
1813 * libc/include/sys/fcntl.h (_open,_fcntl): Add prototypes.
1814 * libc/include/sys/stat.h (_{,f}stat): Ditto.
1815 * libc/include/sys/wait.h (_wait): Ditto.
1816 * libc/include/sys/unistd.h (_close,_fork,_getpid): Ditto.
1817 (_link,_lseek,_read,_sbrk,_unlink,_write): Ditto.
1819 Fri Jan 23 11:32:10 1998 Michael Meissner <meissner@cygnus.com>
1821 * libc/machine/d10v/setjmp.S: Change to new ABI. Add simple
1822 minded stabs so function name shows up when running the simulator
1824 * libc/sys/d10v/{crt0,trap}.S: Ditto.
1826 Thu Jan 22 15:57:14 1998 Fred Fish <fnf@cygnus.com>
1828 * libc/sys/d10v/trap.S: Change syscalls to use trap 15.
1829 * libc/sys/d10v/crt0.S: Use R6 where we used to use R2.
1830 Use R5 where we used to use R3.
1832 Wed Jan 21 14:22:23 1998 Bill Moyer <billm@cygnus.com>
1834 * libc/stdlib/getopt.c (getopt): replaced __progname
1835 with nargv[0] to improve portability to imbedded systems.
1837 Thu Jan 15 12:32:38 1998 Nick Clifton <nickc@cygnus.com>
1839 * libc/sys/arm/syscalls.c (initialise_angel_handles): Applied
1840 patch supplied by Tont.Thompson@arm.com to fix the creation of the
1843 Wed Jan 14 13:00:19 1998 Ian Lance Taylor <ian@cygnus.com>
1845 * libc/stdio/tmpnam.c (worker): Generate a different file name
1848 * libc/posix/popen.c (popen): If __CYGWIN32__, and execing /bin/sh
1849 fails, try an execlp for sh.
1851 * host/any (INCLUDES): If target_os is cygwin32, then add a -I
1852 option for the winsup include directory.
1854 Wed Jan 7 17:02:58 1998 Nick Clifton <nickc@cygnus.com>
1856 * libc/sys/arm/syscalls.c: Applied patches for Angel based remote
1857 debugging interface from Tony.Thompson@arm.com.
1859 * libc/sys/arm/crt0.S (_mainCRTStartup): ditto.
1860 * libc/sys/arm/swi.h: ditto.
1862 Tue Jan 6 14:15:10 1998 Geoffrey Noer <noer@cygnus.com>
1864 * libc/sys/cygwin32/sys/dirent.h: add __d_dirhash field to
1865 DIR struct used for readdir hashes.
1867 Thu Jan 1 11:22:22 1998 Jeffrey A Law (law@cygnus.com)
1869 * libc/string/strchr.c: Use "unsigned chars" as necessary.
1871 Wed Dec 31 04:25:30 1997 Jeffrey A Law (law@cygnus.com)
1873 * libc/stdlib/mallocr.c (idx2binblock): Don't lose on 16bit
1876 Sat Dec 13 15:11:06 1997 Ian Lance Taylor <ian@cygnus.com>
1878 * libc/stdlib/mallocr.c (__malloc_copy): New function, compiled if
1879 INTERNAL_NEWLIB and __CYGWIN32__ and DEFINE_MALLOC.
1880 * libc/include/malloc.h: Add extern "C" if __cplusplus.
1881 (__malloc_copy): Declare.
1883 Wed Dec 10 12:15:54 1997 Ian Lance Taylor <ian@cygnus.com>
1885 * libc/stdlib/mallocr.c: If INTERNAL_NEWLIB, include
1887 (POINTER_UINT): Define.
1888 (DEFAULT_TRIM_THRESHOLD): Mark constants as long.
1889 (MALLOC_ALIGNMENT): Don't define if already defined.
1890 (malloc_extend_top): Cast pointers to POINTER_UINT, not unsigned
1893 Tue Dec 9 19:23:42 1997 Michael Meissner <meissner@cygnus.com>
1895 * libc/string/memset.c (memset): Fiddle with code so that the long
1896 value being stored is not a stack value. Unroll storing longs 4
1899 Tue Dec 9 14:13:18 1997 Jeff Johnston <jjohnstn@cygnus.com>
1901 * Reduce code size for libm modules.
1902 * libm/math/w_sqrt.c (sqrt): Remove call to kernel_standard
1903 and simply move code into sqrt.
1904 * libm/math/wrf_lgamma.c (lgammaf_r): Likewise.
1905 * libm/math/wr_lgamma.c (lgamma_r): Likewise.
1906 * libm/math/wrf_gamma.c (gammaf_r): Likewise.
1907 * libm/math/wr_gamma.c (gamma_r): Likewise.
1908 * libm/math/wf_sinh.c (sinfh): Likewise.
1909 * libm/math/w_sinh.c (sinh): Likewise.
1910 * libm/math/wf_scalb.c (scalbf): Likewise.
1911 * libm/math/w_scalb.c (scalb): Likewise.
1912 * libm/math/wf_remainder.c (remainderf): Likewise.
1913 * libm/math/w_remainder.c (remainder): Likewise.
1914 * libm/math/wf_pow.c (powf): Likewise.
1915 * libm/math/w_pow.c (pow): Likewise.
1916 * libm/math/wf_log10.c (log10f): Likewise.
1917 * libm/math/w_log10.c (log10): Likewise.
1918 * libm/math/wf_log.c (logf): Likewise.
1919 * libm/math/w_log.c (log): Likewise.
1920 * libm/math/w_lgamma.c (lgamma): Likewise.
1921 * libm/math/wf_lgamma.c (lgammaf): Likewise.
1922 * libm/math/wf_jn.c (jnf): Likewise.
1923 * libm/math/w_jn.c (jn): Likewise.
1924 * libm/math/wf_j1.c (j1f): Likewise.
1925 * libm/math/w_j1.c (j1): Likewise.
1926 * libm/math/wf_j0.c (j0f): Likewise.
1927 * libm/math/w_j0.c (j0): Likewise.
1928 * libm/math/wf_hypot.c (hypotf): Likewise.
1929 * libm/math/w_hypot.c (hypot): Likewise.
1930 * libm/math/wf_gamma.c (gammaf): Likewise.
1931 * libm/math/w_gamma.c (gamma): Likewise.
1932 * libm/math/wf_fmod.c (fmodf): Likewise.
1933 * libm/math/w_fmod.c (fmod): Likewise.
1934 * libm/math/wf_exp.c (expf): Likewise.
1935 * libm/math/w_exp.c (exp): Likewise.
1936 * libm/math/wf_cosh.c (coshf): Likewise.
1937 * libm/math/w_cosh.c (cosh): Likewise.
1938 * libm/math/wf_atanh.c (atanhf): Likewise.
1939 * libm/math/w_atanh.c (atanh): Likewise.
1940 * libm/math/wf_atan2.c (atan2f): Likewise.
1941 * libm/math/w_atan2.c (atan2): Likewise.
1942 * libm/math/wf_asin.c (asinf): Likewise.
1943 * libm/math/w_asin.c (asin): Likewise.
1944 * libm/math/wf_acosh.c (acoshf): Likewise.
1945 * libm/math/w_acosh.c (acosh): Likewise.
1946 * libm/math/wf_acos.c (asocf): Likewise.
1947 * libm/math/w_acos.c (acos): Likewise.
1948 * libm/math/wf_sqrt.c (sqrtf): Likewise.
1949 * libm/math/k_standard.c (_k_standard): Don't require SVID behavior
1950 for embedded systems.
1952 Mon Dec 8 12:12:58 1997 Ian Lance Taylor <ian@cygnus.com>
1954 * libc/stdlib/mallocr.c (malloc_extend_top): Add patch from Doug
1955 Lea in case of a foreign sbrk.
1957 Fri Dec 5 23:27:28 1997 Ian Lance Taylor <ian@cygnus.com>
1959 Incorporate Doug Lea's malloc:
1960 * libc/stdlib/mallocr.c: Completely replaced.
1961 * libc/stdlib/malloc.c: Document malloc_usable_size and memalign.
1963 * libc/stdlib/calloc.c (calloc): Just call _calloc_r.
1964 * libc/stdlib/mstats.c: Document mallinfo, malloc_stats, and
1966 (mallinfo, malloc_stats, mallopt): New functions.
1967 (_mstats_r): Just call _malloc_stats_r.
1968 * libc/stdlib/malign.c: New file.
1969 * libc/stdlib/mlock.c: New file.
1970 * libc/stdlib/msize.c: New file.
1971 * libc/stdlib/mtrim.c: New file.
1972 * libc/stdlib/realloc.c: New file.
1973 * libc/stdlib/valloc.c: New file.
1974 * libc/stdlib/malloc.h: Remove.
1975 * libc/stdlib/callocr.c: Remove.
1976 * libc/stdlib/Makefile.in (OFILES): Add cfreer.o, freer.o,
1977 malign.o, malignr.o, mallinfor.o, malloptr.o, mallstatsr.o,
1978 mlock.o, msize.o, msizer.o, mtrim.o, pvallocr.o, realloc.o,
1979 reallocr.o, valloc.o, vallocr.o.
1980 (CHEWOUT_FILES): Add mlock.def, mstats.def.
1981 (MALLOC_CFLAGS): New variable.
1982 (mallocr.o): New target, build from mallocr.c.
1983 (freer.o, reallocr.o, callocr.o, cfreer.o, malignr.o): Likewise.
1984 (vallocr.o, pvallocr.o, mallinfor.o, mallstatsr.o): Likewise.
1985 (msizer.o, malloptr.o): Likewise.
1986 (malign.o, mlock.o, msize.o, mtrim.o, realloc.o): New targets.
1987 (valloc.o): New target.
1988 * libc/stdlib/stdlib.tex: Include mlock.def and mstats.def.
1989 * libc/include/malloc.h: Declare struct mallinfo, and new
1991 * libc/include/stdlib.h (cfree): Correct declaration.
1993 Tue Dec 2 10:12:16 1997 Nick Clifton <nickc@cygnus.com>
1995 * libc/include/machine/setjmp.h: Add support for Thumb target.
1997 * libc/include/machine/ieeefp.h: Add support for Thumb target.
1999 * configure.in (links): Add support for Thumb target.
2001 Wed Nov 26 09:56:17 1997 Nick Clifton <nickc@cygnus.com>
2003 * libc/sys/arm/setjmp.S: Updated with version from branch.
2005 Thu Nov 20 01:21:43 1997 Geoffrey Noer <noer@cygnus.com>
2007 * libc/include/stdio.h: add POSIX-required define L_ctermid
2010 Wed Nov 19 16:11:40 1997 Michael Meissner <meissner@cygnus.com>
2012 * configure.in (d30v-*-*): Define ABORT_MESSAGE, SMALL_MEMORY, in
2013 addition to MISSING_SYSCALL_NAMES.
2015 Mon Nov 17 20:05:05 1997 J"orn Rennecke <amylaar@cygnus.co.uk>
2017 * libc/include/sys/config.h: (UINT_MAX, for D10V): Make unsigned.
2019 Mon Nov 10 22:26:55 1997 Geoffrey Noer <noer@cygnus.com>
2021 * libc/include/string.h: change strsignal proto to return
2022 a char *. This eliminates compile problems in gdb resulting
2023 from gdb's definition of strsignal in defs.h.
2025 Mon Nov 10 17:11:08 1997 Geoffrey Noer <noer@cygnus.com>
2027 * libc/sys/cygwin32/sys/utime.h: new (moved here from
2028 winsup/include) so as not to conflict with the one in
2030 * libc/include/string.h: add protos for strsignal, strtosigno
2032 Mon Nov 10 13:49:54 1997 Michael Meissner <meissner@cygnus.com>
2034 * libc/include/sys/config.h: Define __IEEE_BIG_ENDIAN if d30v.
2036 * configure.in (d30v-*-*): Add configuration.
2038 Thu Oct 30 14:01:23 1997 Nick Clifton <nickc@cygnus.com>
2040 * configure.in (links): Add -DARM_RD[P|I]_MONITOR to target_cflags
2041 to select which kind of debug monitor is in use for an ARM target.
2043 * libc/sys/arm/crt0.S: New version: Supports Thumb startups and
2044 Angel and Demon debug monitors. Part of this code was supplied by
2045 Tony Thompson at ARM: athompso@arm.com.
2047 Fri Oct 24 18:57:05 1997 Jeffrey A Law (law@cygnus.com)
2049 * strncat.c (strncat): Don't call strncpy; strncay has the wrong
2050 semantics when the count is greater than the length of the second
2053 Thu Oct 23 01:37:41 1997 Geoffrey Noer <noer@cygnus.com>
2055 * libc/include/sys/signal.h: reorder CYGWIN32 signal numbers
2056 * libc/include/sys/unistd.h: add protos for usleep, truncate,
2057 truncate and ftruncate take off_t, not size_t
2059 Tue Oct 21 18:42:00 1997 Jim Wilson <wilson@cygnus.com>
2061 * libc/string/strcat.c (strcat): Add missing comment end.
2062 * libc/string/strncat.c (strncat): Likewise.
2064 Tue Oct 21 17:23:34 1997 Nick Clifton <nickc@cygnus.com>
2066 * configure.in (links): Define PREFER_SIZE_OVER_SPEED for v850
2068 * libc/string/{memchr.c, memcmp.c, memcpy.c}: Add space
2069 optimised version which is selected if PREFER_SIZE_OVER_SPEED is
2071 * libc/string/{memset.c, strcat.c, strchr.c}: Likewise.
2072 * libc/string/{strcmp.c, strcpy.c, strlen.c}: Likewise.
2073 * libc/string/{strncat.c, strncmp.c, strncpy.c}: Likewise.
2075 Mon Oct 13 15:12:35 1997 Ian Lance Taylor <ian@cygnus.com>
2077 * libc/include/sys/param.h (BIG_ENDIAN): Define if __i386__.
2078 (LITTLE_ENDIAN, BYTE_ORDER): Likewise.
2080 Thu Oct 9 13:54:44 1997 Doug Evans <dje@canuck.cygnus.com>
2082 * libc/machine/i386/setjmp.S: New file.
2083 * libc/machine/i386/Makefile.in: Delete COPYOFILES.
2084 (OFILES): Add setjmp.o.
2085 (setjmp.o): Add rule for.
2086 * configure.in: Don't set machine_dir for *-*-{go32,sco*,cygwin32}.
2088 Tue Oct 7 14:01:29 1997 Bill Moyer (billm@cygnus.com)
2089 Jeffrey A Law (law@cygnus.com)
2091 * libc/string/{memchr.c, memcmp.c, memcpy.c}: Reimplement to run faster.
2092 * libc/string/{memset.c, strcat.c, strchr.c}: Likewise.
2093 * libc/string/{strcmp.c, strcpy.c, strlen.c}: Likewise.
2094 * libc/string/{strncat.c, strncmp.c, strncpy.c}: Likewise.
2096 Mon Oct 6 14:07:59 1997 Nick Clifton <nickc@cygnus.com>
2098 * libc/sys/sysnecv850/Makefile.in (crt0.o trap.o): Explicit
2101 * libc/include/sys/config.h: Use __v850 to select v850
2104 * libc/include/machine/setjmp.h: Use __v850 to select v850 jump
2107 * libc/include/machine/ieeefp.h: Use __v850 to select v850
2110 Thu Sep 25 14:11:37 1997 Geoffrey Noer <noer@cygnus.com>
2112 * libc/stdlib/setenv.c: change unsetenv definition to match
2113 style of setenv (with _DEFUN). The string should be a const.
2114 * libc/include/stdlib.h: unsetenv proto should return void.
2116 Tue Sep 23 18:17:20 1997 Geoffrey Noer <noer@cygnus.com>
2118 * libc/include/stdlib.h: define unsetenv proto for __CYGWIN32__
2120 Thu Sep 18 12:50:15 1997 Angela Marie Thomas (angela@cygnus.com)
2122 * libc/stdio/glue.h: remove.
2123 * libc/stdio/findfp.c, libc/stdio/fwalk.c: remove #include "glue.h"
2124 * libc/stdio/Makefile.in: remove glue.h dependencies
2126 Wed Sep 17 17:42:27 1997 Nick Clifton <nickc@cygnus.com>
2128 * libc/sys/sysnecv850/crt0.S: Created V850e version.
2130 Tue Sep 9 10:40:57 1997 Doug Evans <dje@canuck.cygnus.com>
2132 * configure.in (target_cpu): Add `arc'.
2134 Tue Sep 9 10:40:42 1997 Joel Sherrill <joel@OARcorp.com>
2136 * newlib/configure.in (*-*-rtems*): Add -DSIGNAL_PROVIDED and
2137 -DREENTRANT_SYSCALLS_PROVIDED to the target_cflags.
2138 * newlib/libc/include/sys/errno.h: Add ENOTSUP.
2139 * newlib/libc/reent/reent.c: Add _wrapup_reent.
2140 * newlib/libc/sys/rtems/sys/types.h: Avoid redefinitions for go32.
2142 Sun Sep 7 16:41:41 1997 Gavin Koch <gavin@cygnus.com>
2144 * libc/machine/mips/setjmp.S: Handle mips16 builds.
2146 Thu Aug 21 20:05:38 1997 Ian Lance Taylor <ian@cygnus.com>
2148 * libc/include/stdio.h (siprintf): Declare.
2150 Mon Aug 18 11:19:13 1997 Nick Clifton <nickc@cygnus.com>
2152 * libc/sys/sysnecv850/Makefile.in (.c.o): Add rule that includes
2153 TARGET_CFLAGS and NEWLIB_FLAGS.
2155 Mon Aug 18 11:15:43 1997 Nick Clifton <nickc@cygnus.com>
2157 * configure.in (links): Add support for v850ea target.
2159 Mon Aug 18 11:15:43 1997 Nick Clifton <nickc@cygnus.com>
2161 * configure.in (links): Add support for v850e target.
2163 Wed Aug 13 19:16:54 1997 Nick Clifton <nickc@cygnus.com>
2165 * libc/sys/sysnecv850/crt0.S: Remove initial setting of r0 to 0.
2167 Mon Aug 11 15:49:54 1997 Doug Evans <dje@canuck.cygnus.com>
2169 * configure.in (arc-*-*): Add support for.
2170 * libc/include/machine/ieeefp.h (__arc__): Add support for the ARC.
2172 Fri Jul 25 17:37:41 1997 J"orn Rennecke <amylaar@cygnus.co.uk>
2174 * libc/sys/sh/crt0.S (start): Add fpscr initialization for SH4.
2176 Thu Jul 24 18:32:17 1997 Geoffrey Noer <noer@cygnus.com>
2178 * libc/stdlib/bsearch.c (bsearch): remove last unneeded
2179 comparison which accesses invalid memory when the key is
2180 larger than the last member of the array.
2181 * libc/include/machine/setjmp.h: add sigsetjmp, siglongjmp
2183 * libc/include/sys/unistd.h: add _POSIX defines for CYGWIN32
2185 Tue Jul 22 16:03:06 1997 Ian Lance Taylor <ian@cygnus.com>
2187 * libc/include/stdlib.h (realpath): Declare if __CYGWIN32__ and
2190 Thu Jul 10 15:11:52 1997 Doug Evans <dje@canuck.cygnus.com>
2192 * libm/math/k_standard.c (__kernel_standard): Call fflush(stdout)
2193 ifndef _USE_WRITE, instead of ifdef _USE_WRITE.
2195 Thu Jul 10 16:00:09 1997 Mike Meissner <meissner@cygnus.com>
2197 * libc/machine/tic80/setjmp.S (setjmp,longjmp): Use ld.d and st.d
2198 to load/store memory.
2200 Mon Jul 7 17:38:17 1997 Ian Lance Taylor <ian@cygnus.com>
2202 * libc/include/sys/fcntl.h: Define _O_* symbols with leading
2203 underscores if _WIN32.
2205 Wed Jul 2 10:07:20 1997 Doug Evans <dje@canuck.cygnus.com>
2207 * libm/math/k_standard.c (__kernel_standard): Delete reentrancy
2208 support ifdef _USE_WRITE missed in last change.
2209 From Anders Blomdell <anders.blomdell@control.lth.se>.
2211 Wed Jun 25 10:18:49 1997 Doug Evans <dje@canuck.cygnus.com>
2213 * libc/stdio/tmpnam.c (worker): Handle _open_r being stubbed out.
2214 (_tmpnam_r, _tempnam_r): Update.
2216 Wed Jun 25 00:16:55 1997 Mark Alexander <marka@cygnus.com>
2218 * libc/machine/sparc/setjmp.S: New file.
2219 * libc/machine/sparc/Makefile.in: Add setjmp.
2220 * libc/include/machine/setjmp.h: Increase jmpbuf size for sparc.
2222 Tue Jun 24 23:27:38 1997 Mark Alexander <marka@cygnus.com>
2224 * libc/include/machine/setjmp.h: Use __TIC80__ instead of __tic80__.
2226 Tue Jun 24 14:53:40 1997 Doug Evans <dje@canuck.cygnus.com>
2228 From Joel Sherrill <joel@oarcorp.com>.
2229 * libc/stdlib/getenv.c (_findenv): Avoid dereferencing null `environ'.
2231 Add rtems support. From Joel Sherrill <joel@oarcorp.com>.
2232 * configure.in: Recognize *-*-rtems*.
2233 * libc/sys/rtems/{Makefile.in,crt0.c,dummysys.c}: New files.
2234 * libc/sys/rtems/sys/{features.h,sched.h,siginfo.h,signal.h,
2235 time.h,times.h,types.h}: New files.
2236 * libc/sys/rtems/include/{limits.h,signal.h,time.h}. New files.
2238 Fri Jun 20 11:13:16 1997 Geoffrey Noer <noer@cygnus.com>
2240 patch from sos@prospect.com.ru (Sergey Okhapkin):
2241 * include/sys/wait.h: correct operator precidence bug
2244 Wed Jun 18 22:08:27 1997 Geoffrey Noer <noer@cygnus.com>
2246 * libc/include/stdlib.h: remove unsetenv proto since it conflicts
2247 with newlib's unsetenv function
2248 * libc/sys/cygwin32/sys: new directory for includes
2249 * libc/sys/cygwin32/sys/dirent.h: move cygwin32's dirent.h
2250 here from winsup/include/sys
2252 Mon Jun 16 21:02:22 1997 Geoffrey Noer <noer@cygnus.com>
2254 * libc/include/sys/unistd.h: _exit should only be
2255 labelled noreturn when not __CYGWIN32__
2256 * libc/include/stdlib.h: for __CYGWIN32__, add proto for unsetenv
2257 * libc/include/sys/signal.h: add SIGIO to _WIN32 list and
2260 Thu Jun 12 18:52:41 1997 Ian Lance Taylor <ian@cygnus.com>
2262 * libc/include/sys/time.h: Only define timeval and timezone if
2263 _GNU_H_WINDOWS32_SOCKETS is not defined.
2264 * libc/include/sys/stat.h: If _WIN32, define _S_IFMT, etc.
2266 Wed Jun 11 09:46:26 1997 Jeffrey A Law (law@cygnus.com)
2268 * libc/machine/mn10200/setjmp.S: Implement setjmp/longjmp
2269 * libc/machine/mn10300/setjmp.S: Likewise.
2271 * libc/sys/sysmec/crt0.S: Use "call" instead of "calls" for
2272 the mn10300 (more relaxing opportunities).
2274 Tue Jun 10 17:24:45 1997 Mike Meissner <meissner@cygnus.com>
2276 * configure.in (powerpc*-*-{eabi,elf,linux,rtems,sysv,solaris}):
2277 Build libraries with -mstrict-align.
2279 Fri Jun 6 14:07:59 1997 Ian Lance Taylor <ian@cygnus.com>
2281 * libc/string/strlwr.c: New file.
2282 * libc/string/strupr.c: New file.
2283 * libc/include/string.h: Declare strlwr and strupr.
2284 * libc/string/Makefile.in (OFILES): Add strlwr.o and strupr.o.
2285 (CHEWOUT_FILES): Add strlwr.def and strupr.def.
2286 (strlwr.o, strupr.o): New targets.
2287 * libc/string/strings.tex: Include strlwr and strupr docs.
2289 * libc/include/sys/types.h: Don't define u_char, et. al., if
2290 _GNU_H_WINDOWS32_SOCKETS is defined. Likewise for fd_set,
2291 et. al. Make FD_SETSIZE default 64 rather than 60. Define
2292 _types_fd_set rather than fd_set, and define fd_set as a macro.
2294 * libc/include/malloc.h: New file.
2296 * libc/include/string.h: Define strcmpi, stricmp, strncmpi, and
2297 strnicmp if they are not already defined.
2299 * libc/include/time.h: If __CYGWIN32__, declare tzset and define
2300 _timezone, _daylight, and _tzname.
2302 Wed Jun 4 12:51:16 1997 Doug Evans <dje@canuck.cygnus.com>
2304 * configure.in: Sort all configuration tables.
2306 From Joel Sherrill <joel@oarcorp.com>
2307 * Makefile.in (stmp-targ-include): Copy $(sys_dir)/include/*.h.
2309 Tue Jun 3 14:47:46 1997 Ian Lance Taylor <ian@cygnus.com>
2311 * libc/include/sys/signal.h: Don't include <sys/types.h>. Just
2312 use int when declaring kill.
2314 * libc/include/sys/timeb.h: New file.
2316 Mon Jun 2 12:06:58 1997 Geoffrey Noer <noer@cirdan.cygnus.com>
2318 * libc/include/sys/time.h: add itimer support for Cygwin32
2320 Mon May 19 11:56:46 1997 Mike Meissner <meissner@cygnus.com>
2322 * libc/stdlib/abort.c (abort): If ABORT_MESSAGE is defined, write
2323 out a message that abort was called to stderr.
2325 Fri May 16 15:02:59 1997 Bob Manson <manson@charmed.cygnus.com>
2327 * libc/sys/sysmec/fstat.c (_fstat): Set st_blksize to 4096
2328 so that libio doesn't freak.
2330 * libc/sys/sysmec/sbrk.c (_sbrk): The argument is a size_t, not
2333 * libc/stdlib/mallocr.c (_morecore_r): Use size_t for
2334 memory sizes, not int.
2336 Wed May 14 21:16:58 1997 Bob Manson <manson@charmed.cygnus.com>
2338 * libm/math/ef_hypot.c: Use long constants where
2340 * libm/math/ef_sqrt.c: Ditto.
2342 * libc/sys/sysmec/times.c(_times): Change to times.
2344 * libc/sys/sysmec/read.c(_read): The third argument is
2346 * libc/sys/sysmec/write.c (_write): Ditto.
2348 * libc/sys/sysmec/lseek.c: Include unistd.h for off_t.
2349 (_lseek): It's off_t for the second argument.
2351 Wed May 14 15:23:36 1997 Mike Meissner <meissner@cygnus.com>
2353 * libc/include/sys/config.h (__IEEE_LITTLE_ENDIAN): Define here,
2354 as well as machine/ieeefp.h.
2356 Thu May 8 15:47:25 1997 Geoffrey Noer <noer@cygnus.com>
2358 * libc/include/sys/signal.h: add signal protos for winsup
2359 functions (when __CYGWIN32__), include types.h
2360 * libc/include/sys/types.h: Change __go32_types__ internal
2361 define to __MS_types__ since it's used for more than just
2362 GO32 configs. Define this if GO32, __MSDOS__, or _WIN32 are
2364 * libc/include/sys/unistd.h: add ftruncate proto for
2365 winsup functions (when __CYGWIN32__)
2367 Fri Apr 25 10:10:16 1997 Doug Evans <dje@canuck.cygnus.com>
2369 * libc/sys/h8300hms/sbrk.c (stack_ptr): Add definition.
2371 Thu Apr 24 15:46:51 1997 Mike Stump <mrs@cygnus.com>
2373 * libc/include/machine/setjmp.h: Add tic80 support.
2374 * libc/machine/tic80/setjmp.S: Likewise.
2376 Tue Apr 22 16:54:40 1997 Geoffrey Noer <noer@pizza.cygnus.com>
2378 * libc/sys/cygwin32/crt0.c: Add reference to main() so we can
2379 link programs from libraries only (such as in the X11
2382 Mon Apr 21 15:02:12 1997 Fred Fish <fnf@cygnus.com>
2384 * libc/sys/arm/syscalls.c (signal): Remove stub, signal()
2385 supplied elsewhere in newlib.
2387 Mon Apr 14 16:25:55 1997 Ian Lance Taylor <ian@cygnus.com>
2389 * Makefile.in (INSTALL): Change install.sh to install-sh.
2391 Fri Apr 11 17:04:02 1997 Jason Molenda (crash@godzilla.cygnus.co.jp)
2393 * README: update WWW address for on-line documentation.
2395 Wed Apr 9 00:38:13 1997 Geoffrey Noer <noer@cygnus.com>
2397 * libc/include/sys/signal.h: for _WIN32, define SIGCONT and
2400 Mon Apr 7 23:54:00 1997 Jeffrey A Law (law@cygnus.com)
2402 * libc/sys/sysmec/crt0.S: Update for new calling conventions on the
2404 * libc/sys/sysmec/trap.S: Don't compare a register to itself.
2406 Tue Mar 25 08:47:43 1997 Jeffrey A Law (law@cygnus.com)
2408 * libc/sys/arm/syscalls.c: Fix/add stack/heap collision detection.
2409 * libc/sys/d10v/syscalls.c: Likewise.
2410 * libc/sys/h8300hms/sbrk.c: Likewise.
2411 * libc/sys/h8500hms/syscalls.c: Likewise.
2412 * libc/sys/m88kbug/syscalls.c: Likewise.
2413 * libc/sys/sh/syscalls.c: Likewise.
2414 * libc/sys/sysmec/sbrk.c: Likewise.
2415 * libc/sys/sysnecv850/sbrk.c: Likewise.
2416 * libc/sys/w65/syscalls.c: Likewise.
2417 * libc/sys.tex: Update sbrk sample code to include stack/heap collision.
2419 Tue Mar 18 14:14:34 1997 Jeffrey A Law (law@cygnus.com)
2421 * libc/sys/sysmec/trap.S: Use "syscall" to trigger an
2422 emulated syscall instead of "trap".
2424 Fri Mar 14 11:26:13 1997 Michael Meissner <meissner@cygnus.com>
2426 * libc/sys/d10v/trap.S (__trap0): Use trap 15 for system calls,
2429 Sun Mar 9 23:27:04 1997 Doug Evans <dje@seba.cygnus.com>
2431 * configure.in (m32r-*-*): Add -msdata=sdata to target_cflags.
2433 Sat Mar 8 09:05:01 1997 Fred Fish <fnf@cygnus.com>
2435 * libc/machine/arm/Makefile.in: Fix comment, is for "arm"
2437 * libc/machine/m32r/Makefile.in: Fix comment, is for "m32r"
2439 * libc/sys/tic80/crt0.c: New file for TIc80.
2440 * libc/sys/tic80/Makefile.in: New file for TIc80.
2441 * libc/machine/tic80/Makefile.in: New file for TIc80.
2443 Wed Mar 5 11:32:12 1997 J.T. Conklin <jtc@cygnus.com>
2445 * libc/machine/sh/memcpy.S: New file.
2446 * libc/machine/sh/memset.S: New file.
2447 * libc/machine/sh/Makefile.in (OFILES): Add memcpy.o and memset.o
2449 Thu Feb 27 16:27:55 1997 Fred Fish <fnf@cygnus.com>
2451 * libc/include/machine/ieeefp.h (_IEEE_LITTLE_ENDIAN): Define
2454 Wed Feb 26 13:43:39 1997 Jeffrey A Law (law@cygnus.com)
2456 * libc/sys/sysmec/crt0.S: Handle new calling conventions for
2459 Wed Feb 26 07:11:03 1997 Michael Meissner <meissner@cygnus.com>
2461 * libc/machine/powerpc/setjmp.S (longjmp): Correct return status
2462 (patch from andrew@pogo.WV.TEK.COM).
2464 Fri Feb 14 11:49:28 1997 Doug Evans <dje@canuck.cygnus.com>
2466 * libc/machine/m32r/setjmp.S (setjmp): Save r12.
2467 (longjmp): Restore r12. Fix code that handles returning 1 if passed 0.
2469 Mon Feb 10 10:02:34 1997 Fred Fish <fnf@cygnus.com>
2471 * configure.in: Add cases for "tic80" to set machine_dir,
2472 sys_dir, and syscall_dir.
2474 Sun Feb 2 17:57:15 1997 Geoffrey Noer <noer@cygnus.com>
2476 * libc/sys/cygwin32/crt0.c: initialize floating pt registers
2478 Wed Jan 29 15:57:38 1997 Geoffrey Noer <noer@cygnus.com>
2480 * libc/include/math.h: avoid conflicts with ANSI C++ <exception>
2482 Mon Jan 27 12:50:01 1997 Doug Evans <dje@seba.cygnus.com>
2484 * libc/machine/m32r/setjmp.S: Use proper comment delimiter.
2485 Use proper constant prefix.
2487 Fri Jan 24 10:59:04 1997 Jeffrey A Law (law@cygnus.com)
2489 * libc/sys/sysmec/*.c: Don't cast args to syscall to integers,
2490 that loses on the mn10200 where ints and pointers are different
2493 Tue Jan 14 13:29:55 PST 1997 Jeremy Allison <jra@cygnus.com>
2495 * configure.in: Added -DSIGNAL_PROVIDED to cygwin32
2496 target as signal is provided in winsup.
2498 Tue Jan 14 11:10:13 1997 Jeremy Allison <jra@cygnus.com>
2500 * libc/include/sys/process.h: Corrected const definitions
2501 in spawn functions. Added cwait.
2503 Thu Jan 2 12:22:41 1997 Jeffrey A Law (law@cygnus.com)
2505 * libc/include/machine/ieeefp.h: mn10200 uses 16bit ints and 32bit
2507 * libc/include/sys/config.h: Similarly.
2509 Tue Dec 31 18:36:14 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2511 * configure.in (sparc-sun-sunos*): Add -DSIGNAL_PROVIDED to the
2513 (i[3456]86-*-sco*): Ditto.
2515 * libc/signal/Makefile.in (OFILES): Add signal.o.
2516 (CFILES): Add signal.c.
2518 * libc/signal/raise.c (_raise_r): Only compile code if
2519 SIGNAL_PROVIDED is defined.
2521 * libc/signal/signal.c: Redo whole file so that it works with
2522 current newlib. Use _kill_r if no signal handler provided.
2524 * libc/sys/{go32,sparc64,sysmec}/Makefile.in: Delete raise and
2526 * libc/sys/sysvnecv70/Makefile.in: Ditto.
2527 * libc/sys/sysnecv850/Makefile.in: Ditto.
2529 * libc/sys/{go32,sparc64}/signal.c: Delete, stub no longer used.
2530 * libc/sys/sysmec/{raise,signal}.c: Ditto.
2531 * libc/sys/sysvnecv70/signal.s: Ditto.
2532 * libc/sys/sysnecv850/raise.c: Ditto.
2534 * libc/sys/sysnecv850/kill.c (_kill): Encode signal # so that
2535 simulator and debugger can tell the difference between a signal
2536 being raised and an exit system call.
2538 * NEWS: Document software signals being provided.
2540 Mon Dec 23 11:54:19 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2542 * libc/reent/impure.c (_REENT_ATTR): Delete in favor of
2543 __ATTRIBUTE_IMPURE_PTR__. Move PowerPC definition to
2544 include/sys/config.h.
2545 (impure_data): Use __ATTRIBUTE_IMPURE_DATA__ for attributes.
2546 Change from 'inpure_data'.
2547 (_impure_ptr): Use __ATTRIBUTE_IMPURE_PTR__ for attributes. Use
2548 &impure_data, not &inpure_data.
2550 * libc/include/sys/config.h (__ATTRIBUTE_IMPURE_PTR__): If PowerPC
2551 and and System V ABI, define so that _impure_ptr lives in the
2554 Sun Dec 22 23:33:05 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2556 * libc/include/sys/reent.h (__ATTRIBUTE_IMPURE_PTR__): Define as
2557 nothing if not defined.
2558 (_impure_ptr): Use __ATTRIBUTRE_IMPURE_PTR__, so a machine can set
2561 * libc/include/sys/config.h (__ATTRIBUTE_IMPURE_PTR__):
2563 Wed Dec 18 10:12:04 1996 Jeffrey A Law (law@cygnus.com)
2565 * libc/sys/sysmec/crt0.S: Fix mn10200 stuff.
2566 * libc/sys/sysmec/trap.s: Handle mn10200 too.
2567 * libc/machine/mn10200/setjmp.S: Fix mn10200 stuff.
2569 Mon Dec 16 10:05:36 1996 Jeffrey A Law (law@cygnus.com)
2571 * libc/sys/sysmec/crt0.S: Handle mn10200 too.
2573 Fri Dec 13 11:05:20 1996 Jeremy Allison <jra@cygnus.com>
2575 * libc/include/sys/errno.h: Added net errno's.
2577 Wed Dec 11 16:24:25 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2579 * libc/misc/ffs.c: New file to support ffs function for GCC test
2580 gcc.c-torture/execute/960909-1.c.
2582 * libc/misc/Makefile.in ({O,CHEWOUT_}FILES): Add ffs.
2584 Sat Dec 7 10:12:37 1996 Jeffrey A Law (law@cygnus.com)
2586 * libc/sys/sysmec/crt0.S: Handle underscore prefix.
2587 * libc/sys/sysmec/trap.S: Likewise.
2589 Fri Dec 6 15:08:49 1996 Jim Wilson <wilson@cygnus.com>
2591 * configure.in (mips*vr4300*-*-*): Delete use of sys/vr4300.
2592 * libc/sys/vr4300/{Makefile.in,crt0.S,syscalls.c}: Delete.
2594 Wed Dec 4 16:25:27 1996 Jeffrey A Law (law@cygnus.com)
2596 * libc/sys/sysmec/signal.c: Dummy file.
2597 * libc/sys/sysmec/Makefile.in: Build it.
2599 Wed Nov 27 13:10:18 1996 Ian Lance Taylor <ian@cygnus.com>
2601 * libc/machine/mips/machine/regdef.h: Define pc as $pc for
2604 Mon Nov 25 09:58:28 1996 Jeffrey A Law (law@cygnus.com)
2606 * libc/sys/sysmec/{crt0.S,trap0.S}: Actually try to implement
2607 c-startup and simulator traps.
2610 * libc/sys/sysmec/crt0.S: Remove bogus '_' symbol prefixing
2611 * libc/sys/sysmec/trap0.S: Likewise.
2613 Sat Nov 23 09:01:03 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2615 * libc/stdlib/mallocr.c (ROUND_TO): If SMALL_MEMORY, set to 0x7 to
2616 round to double word alignment.
2617 (_morecore_r): Combine rounding up pointers to both ROUND_TO and 8
2620 * libc/include/sys/config.h (__IEEE_BIG_ENDIAN): Define if d10v.
2622 * libc/sys/d10v/syscalls.c (_sbrk): Add better checks for running
2625 Mon Nov 18 13:08:26 1996 Jeffrey A Law (law@cygnus.com)
2627 * configure.in: Handle mn10200 and mn10300.
2628 * libc/include/machine/{ieeefp.h,setjmp.h}: Likewise.
2629 * libc/include/sys/config.h: Likewise.
2630 * libc/sys/sysmec: New directory for mec stuff.
2631 * libc/machine/mn10300: New directory for mn10300 stuff.
2632 * libc/machine/mn10200: Similarly for mn10200 stuff.
2634 Fri Nov 15 16:41:41 1996 Doug Evans <dje@canuck.cygnus.com>
2636 * libc/sys/arm/crt0.S: Use .text, not .section .text.
2637 * libc/sys/arm/syscalls.c: Rewrite to set errno properly.
2639 * libc/include/sys/types.h (_ST_INT32): New macro, local to file.
2640 (nlink_t): Change type from unsigned int to unsigned short.
2641 (mode_t): Ensure size is 32 bits even if int is 16.
2642 * libc/include/sys/stat.h (st_nlink): Change type to nlink_t.
2643 (st_spare[123]): Change type from int to long.
2645 Fri Nov 15 11:41:50 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2647 * libc/sys/d10v/syscalls.c (_sbrk): Align initial heap_end to 8
2650 * configure.in (d10v*): Define SMALL_MEMORY.
2652 Mon Nov 11 10:30:44 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2654 * configure.in (powerpc*-{eabi,elf,linux,rtem,sysv,solaris}*): Add
2655 -mrelocatable-lib and -mno-eabi flags.
2657 Mon Nov 11 09:01:39 1996 Jeffrey A Law (law@cygnus.com)
2659 * libc/machine/h8300/memcpy.S: Fix comments to reflect reality.
2660 Fix handling of mis-aligned source operand when both the
2661 destination & length are properly aligned.
2663 Wed Oct 30 09:41:11 1996 Jeffrey A Law (law@cygnus.com)
2665 * libc/sys/sysnecv850/Makefile.in (OFILES): Add
2666 times.o, time.o and gettime.o
2667 * libc/sys/sysnecv850/{time.c, times.c, gettime.c}: New files.
2668 * libc/sys/sysnecv850/sys/syscall.h: Add SYS_times and
2671 Tue Oct 29 13:40:09 1996 Jeffrey A Law (law@cygnus.com)
2673 * libc/sys/sysnecv850/Makefile.in (OFILES): Add access.o
2674 * libc/sys/sysnecv850/access.c: New file.
2676 Mon Oct 21 19:47:02 1996 Ian Lance Taylor <ian@cygnus.com>
2678 * libc/sys/vr4300/Makefile.in (clean): Remove $(OFILES).
2680 * libc/stdlib/mprec.h (word0, word1): Use __uint32_t, not unsigned
2683 Mon Oct 21 14:43:07 1996 Jeffrey A Law (law@cygnus.com)
2685 * libc/sys/sysnecv850/crt0.S: Initialize ep and gp registers.
2687 Thu Oct 17 11:47:16 1996 Doug Evans <dje@seba.cygnus.com>
2689 * libc/include/machine/{ieeefp.h,setjmp.h}: Add m32r support.
2690 * libc/include/sys/config.h: Add m32r support.
2692 Wed Oct 16 23:08:05 1996 Jeffrey A Law (law@cygnus.com)
2694 * libc/sys/sysnecv850/v850.ld: Remove. It doesn't belong
2697 Wed Oct 16 21:18:07 1996 Mark Alexander <marka@cygnus.com>
2699 * libc/include/machine/setjmp.h: Add D10v support.
2701 Tue Oct 15 22:28:26 1996 Jeffrey A Law (law@cygnus.com)
2703 * configure.in: Configure the "libc/syscalls" directory for
2706 * libc/sys/sysnecv850/{close.c, execve.c, fork.c}: Add missing '_'.
2707 * libc/sys/sysnecv850/{fstat.c, getpid.c, kill.c}: Likewise.
2708 * libc/sys/sysnecv850/{lseek.c, open.c, read.c}: Likewise.
2709 * libc/sys/sysnecv850/{sbrk.c, stat.c, unlink.c}: Likewise.
2710 * libc/sys/sysnecv850/{wait.c, write.c}: Likewise.
2712 Tue Oct 15 16:24:39 1996 Stu Grossman (grossman@critters.cygnus.com)
2714 * libc/sys/sysnecv850/crt0.S (start): Allocate spill space on
2715 stack for args for main and other routines. Zero out args for
2718 * libc/sys/sysnecv850/v850.ld: New. Linker script to layout memory
2721 Tue Oct 15 11:51:42 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2723 * libc/stdio/findfp.c (std): Remove extraneous ';' after
2726 * libc/sys/d10v/sys/syscall.h (SYS_kill): Add.
2728 * libc/sys/d10v/{syscalls.c,trap.S} (_kill,_getpid): Make these
2729 real system calls now.
2731 * libc/stdio/setvbuf (setvbuf): Cast pointers to _POINTER_INT
2732 before casting them to int.
2733 * libc/stdio/tmpnam.c (_tempnam_r): Ditto.
2735 * libc/stdlib/mallocr.c (_morecore_r): Use _POINTER_INT when
2737 * libc/string/memset.c (memset): Ditto.
2739 * libc/stdio/vfscanf.c (__svfscanf): When converting to pointer,
2740 first convert ints to _POINTER_INT to eliminate GCC warning.
2742 * libc/stdio/vfprintf.c (_vfprintf_r): Use _POINTER_INT when
2745 * libm/math/ef_scalb.c (__ieee754_scalbf): Cut down range to 32000
2746 from 65000 if ints are only 16 bits.
2748 * libm/math/sf_scalbn.c (scalbnf): Cut down overflow test to 30000
2749 from 50000 if ints are only 16 bits.
2751 * libc/include/sys/config.h (_POINTER_INT): New macro, to give an
2752 int type that is the same size as a pointer.
2754 * libc/misc/dprintf.c (__dprintf): Use _POINTER_INT when
2756 (get_number): Explicitly cast number to long before shifting by 16
2757 or 24, in case ints are short.
2759 * libc/include/sys/config.h (_POINTER_INT): Define as short.
2761 Wed Oct 9 16:54:32 1996 Jeremy Allison <jra@cygnus.com>
2763 * libc/string.h: Added ffs, removed swab.
2764 * libc/sys/errno.h: Added EOPNOTSUPP.
2765 * libc/sys/unistd.h: Added swab.
2767 Thu Oct 3 17:08:50 1996 Jeremy Allison <jra@cygnus.com>
2769 * libc/include/sys/stat.h: Added fchmod.
2770 * libc/include/sys/unistd.h: Added fsync.
2772 Tue Oct 1 17:34:08 1996 Jeremy Allison <jra@cygnus.com>
2774 * libc/include/sys/errno.h: Added defines for EPFNOSUPPORT (96)
2775 and ECONNRESET (104) for cygwin32.
2777 Tue Oct 1 16:24:05 1996 Gavin Koch <gavin@cygnus.com>
2779 * libc/sys/sysnecv850/_exit.c: added _do_dtors to
2780 do the static destructors.
2782 Mon Sep 30 15:59:05 1996 Stu Grossman (grossman@critters.cygnus.com)
2784 * libc/sys/sysnecv850/trap.S: Change I/O to use trap 31.
2786 Mon Sep 30 12:02:50 1996 Doug Evans <dje@canuck.cygnus.com>
2788 * libc/machine/m32r/{Makefile.in,setjmp.S}: New files.
2789 * configure.in: Recognize m32r-*-*.
2791 Mon Sep 30 00:34:41 1996 James G. Smith <jsmith@cygnus.co.uk>
2793 * libc/sys/arm/trap.S (__rt_stkovf_split_big,
2794 __rt_stkovf_split_small): Added default software stack overflow
2795 handlers, which just call SWI_Exit.
2796 * libc/sys/arm/crt0.S (_mainCRTStartup): Simple software stack
2797 limit initialisation.
2799 Fri Sep 27 13:08:03 1996 Mark Alexander <marka@cygnus.com>
2801 * libc/sys/d10v/{trap.S,sys/syscall.h}: Add time() function.
2803 Fri Sep 27 12:32:00 1996 Jeremy Allison <jra@cygnus.com>
2805 * libc/include/sys/types.h: Added ssize_t definition.
2807 Wed Sep 25 14:52:18 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2809 * libc/machine/d10v/setjmp.S: Use ';' for comments.
2810 * libc/sys/d10v/{crt0.S,trap.S}: Ditto.
2812 * libc/machine/d10v/setjmp.S (longjmp): Use exef0t || instead of
2813 branch around a single ldi instruction.
2815 * libc/sys/d10v/crt0.S (_start): Use auto-increment to zero bss.
2816 Call exit, instead of just issuing a stop instruction.
2818 Sun Sep 22 17:26:55 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2820 * libc/sys/d10v/{trap.S,syscalls.c}: Add -mint32 support.
2822 Fri Sep 20 13:23:12 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2824 * libc/stdlib/mprec.h: Explicitly declare all large constants as
2825 longs, and then cast them to __uint32_t.
2827 * libc/include/sys/config.h: Protect against multiple inclusions.
2829 Tue Sep 17 13:10:33 1996 Mark Alexander <marka@cygnus.com>
2831 * configure.in (d10v*): Set syscall_dir.
2833 Sun Sep 15 10:41:59 1996 Mark Alexander <marka@cygnus.com>
2835 * libc/sys/d10v/crt0.S: Set stack pointer.
2837 Thu Sep 12 13:02:38 1996 Mark Alexander <marka@cygnus.com>
2839 * libc/sys/d10v/{trap.S, syscalls.c}: Rewrite most system calls
2840 in assembly for efficiency. Change calling convention to allow
2841 long ints to be returned.
2843 Wed Sep 11 10:28:18 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2845 * libc/machine/v850/Makefile.in (setjmp.o): Fix dependency.
2847 Thu Sep 5 19:23:06 1996 Doug Evans <dje@canuck.cygnus.com>
2849 * libc/posix/execvp.c (execvp): Don't search PATH if file has '/'.
2850 Handle empty entries in $PATH.
2852 Tue Sep 03 18:15:02 1996 Mark Alexander <marka@cygnus.com>
2854 * libc/machine/d10v/setjmp.S: Make it really work.
2856 Tue Sep 3 12:16:26 1996 Ian Lance Taylor <ian@cygnus.com>
2858 * libc/sys/sh/crt0.S: If __ELF__, use ELF section attributes for
2861 Tue Sep 3 10:08:45 1996 Jeffrey A Law (law@cygnus.com)
2863 * sys/sysnecv850/sys/file.h: Remove.
2864 * sys/sysnecv850/sys/syscall.h: New file.
2865 * sys/sysnecv850/{misc.c,syscalls.c,malloc.c}: Deleted.
2866 * sys/sysnecv850/{chmod.c, chown.c, close.c, creat.c} New files.
2867 * sys/sysnecv850/{execv.c, execve.c, fork.c, fstat.c} New files.
2868 * sys/sysnecv850/{getpid.c, isatty.c, kill.c, lseek.c} New files.
2869 * sys/sysnecv850/{open.c, pipe.c, raise.c, read.c} New files.
2870 * sys/sysnecv850/{stat.c, unlink.c, utime.c, wait.c} New files.
2871 * sys/sysnec850/trap.S: New file.
2872 * sys/sysnecv850/{_exit.c, write.c}: Use new TRAP0 mechanism for
2874 * sys/sysnecv850/crt0.S: Use cmp/bl, not tst/bz.
2875 * sys/sysnec850/sbrk.c: New version.
2877 Sun Sep 1 20:08:27 1996 Jeffrey A Law (law@cygnus.com)
2879 * sys/sysnecv850/crt0.S: Fix order of comparison args. Loop
2880 as long as r6 is less than r7.
2882 Sun Sep 1 13:54:19 1996 Ian Lance Taylor <ian@cygnus.com>
2884 * Makefile.in (mostlyclean): Separate from clean target. Don't
2885 remove *.a or targ-include.
2886 * libc/machine/sparc/Makefile.in (mostlyclean): New target.
2888 Sun Sep 1 11:35:26 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2890 * libc/include/machine/ieeefp.h (_DOUBLE_IS_32BITS): Define for
2892 (__SMALL_BITFIELDS): Ditto.
2894 * libc/include/sys/config.h (_DOUBLE_IS_32BITS): Define for d10v.
2896 Sat Aug 31 16:42:36 1996 Jeffrey A Law (law@cygnus.com)
2898 * libc/sys/sysnecv850/misc.c (raise, getpid, kill): Remove '_'
2901 * libc/sys/sysnecv850/sbrk.c (sbrk): Remove '_' prefix.
2902 * libc/sys/sysnecv850/syscalls.c (read, lseek, close): Likewise.
2903 * libc/sys/sysnecv850/syscalls.c (fstat, open, close): Likewise.
2904 * libc/sys/sysnecv850/write.c (write): Likewise.
2906 * libc/sys/sysnecv850/crt0.S: Don't try to zero out an empty
2909 Fri Aug 30 11:18:45 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2911 * libc/include/sys/config.h: Define INT_MAX, UINT_MAX
2912 appropriately for D10V, depending on -mint16/-mint32.
2914 Thu Aug 29 16:09:37 1996 Mark Alexander <marka@cygnus.com>
2916 * configure.in: Add cases for D10V.
2918 Thu Aug 29 17:03:23 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2920 * configure.in (i[345]86-*-*): Recognize i686 for pentium pro.
2922 Wed Aug 28 21:05:52 1996 Jeffrey A Law (law@cygnus.com)
2924 * libc/include/machine/ieeefp.h: Fix typo.
2926 Wed Aug 28 19:47:55 1996 Mark Alexander <marka@cygnus.com>
2928 * libc/sys/d10v: New directory for D10V stuff.
2929 * libc/include/machine/ieeefp.h: Add D10V defines.
2931 Mon Aug 26 13:34:58 1996 Doug Evans <dje@canuck.cygnus.com>
2933 * libc/include/sys/errno.h: Add winsup/include/sys/errno.h values:
2934 ELOOP, ENOBUFS, EAFNOSUPPORT, EPROTOTYPE, ENOTSOCK, ENOPROTOOPT,
2935 ESHUTDOWN, ECONNREFUSED, EADDRINUSE, ECONNABORTED, EWOULDBLOCK.
2936 * libc/string/strerror.c (strerror): Add them.
2938 Thu Aug 22 16:38:19 1996 Jeffrey A Law (law@cygnus.com)
2940 * libc/sys/sysnecv850: New directory for v850 stuff.
2942 * libc/machine/v850: New directory for v850 stuff.
2943 * libc/machine/v850/setjmp.S: setjmp/longjmp support.
2945 * configure.in: Add support for the v850.
2947 * libc/include/machine/ieeefp.h: Add v850 defines.
2948 * libc/include/machine/setjmp.h: Likewise.
2949 * libc/include/sys/config.h: Add v850 defines.
2951 Sat Aug 17 04:06:36 1996 Geoffrey Noer <noer@cygnus.com>
2953 * libc/include/machine/ieeefp.h
2954 * libc/include/machine/setjmp.h
2955 * libc/include/sys/fcntl.h
2956 * libc/include/sys/signal.h
2957 * libc/include/sys/types.h
2958 * libc/stdlib/system.c:
2959 Fix preprocessor defines to match new scheme (_WIN32 for WIN32
2960 API availability, __CYGWIN32__ for cygwin32 environment specific).
2962 Thu Aug 15 17:09:21 1996 Geoffrey Noer <noer@cygnus.com>
2964 * libc/include/stdlib.h: add multibyte character functions. Add
2965 __eprintf for assert.
2967 Thu Aug 15 11:15:40 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2969 * libc/stdlib/malloc.h (MALLOC_ALIGNMENT): Use either pointer
2970 arithmetic or __alignof__ to properly get the alignment, instead
2971 of hardwiring it to 4.
2973 Wed Aug 14 23:43:28 1996 Geoffrey Noer <noer@cygnus.com>
2975 * libc/stdio/fseek.c: add fflush call to adjust seek offset
2976 on append stream (fix from NetBSD sources), adjust curoff offset
2977 for ungetc's benefit.
2978 * libc/stdio/ftell.c: adjust curoff offset for ungetc's benefit.
2979 * libc/stdio/rewind.c: replace code with up to date NetBSD
2980 code to undo hacks made to work around above problem of not
2981 having fflush call mentioned above
2983 Fri Aug 2 18:28:07 1996 J.T. Conklin <jtc@rtl.cygnus.com>
2985 * libc/reent/{closer.c, execr.c, fstatr.c, linkr.c, lseekr.c,
2986 openr.c, readr.c, sbrkr.c, signalr.c, statr.c, timer.c, writer.c}:
2987 Partially revert last changes. The thread specific errno is set
2988 iff if the underlying syscall fails and the global errno is not
2991 Fri Jul 19 11:41:52 1996 J.T. Conklin <jtc@rtl.cygnus.com>
2993 * libc/reent/filer.c: Removed files, all functions have split out
2994 into their own files.
2995 * libc/reent/{closer.c, lseekr.c, openr.c, readr.c, writer.c}:
2996 New files containing functions formally in filer.c
2997 * libc/reent/Makefile.in: Updated for above change.
2999 * libc/reent/execr.c (_fork_r, _wait_r): Set errno if underlying
3000 syscall fails, not if errno is changed.
3001 * libc/reent/filer.c (_open_r, _close_r, _lseek_r, _read_r,
3002 _write_r): Likewise.
3003 * libc/reent/fstatr.c (_fstat_r): Likewise.
3004 * libc/reent/linkr.c (_link_r, _unlink_r): Likewise.
3005 * libc/reent/sbrkr.c (_sbrk_r): Likewise.
3006 * libc/reent/signalr.c (_kill_r): Likewise.
3007 * libc/reent/statr.c (_stat_r): Likewise.
3008 * libc/reent/timer.c (_gettimeofday_r): Likewise.
3010 * libc/reent/{execr.c, filer.c, fstatr.c, linkr.c, sbrkr.c,
3011 signalr.c, statr.c, timer.c} (errno): declare extern rather
3014 * libc/stdio/vfprintf.c (__sbprintf): Use the VFPRINTF macro
3015 instead of calling vfprintf so that i*printf will not require
3016 floating point support code.
3018 Mon Jul 15 16:50:59 1996 Doug Evans <dje@canuck.cygnus.com>
3020 * libc/posix/execvp.c (execvp): Use posix_path_list_p to determine
3022 * libc/include/sys/unistd.h (_SC_PATH_RULES): Delete.
3023 (_PATH_RULES_{UNKNOWN,WIN32,POSIX}): Delete.
3025 Thu Jul 11 14:34:14 1996 Geoffrey Noer <noer@cygnus.com>
3027 * libc/include/signal.h: _sig_func_ptr function takes an int
3028 * libc/include/sys/signal.h: sa_handler function takes an int
3030 Tue Jul 9 21:22:32 1996 Jeffrey A Law (law@cygnus.com)
3032 * libc/include/machine/ieeefp.h: Simplify H8/S support.
3033 * libc/include/sys/config.h: Add missing H8/S conditional.
3035 Sun Jun 30 12:05:46 1996 Doug Evans <dje@canuck.cygnus.com>
3037 * libc/include/sys/unistd.h (MAXPATHLEN): Add cygwin32 value.
3039 Wed Jun 26 09:57:54 1996 Jeffrey A Law (law@cygnus.com)
3041 * libc/include/machine/setjmp.h: Handle H8/S.
3042 * libc/include/machine/ieeefp.h: Likewise.
3043 * libc/include/sys/config.h: Likewise.
3044 * libc/machine/h8300/{defines.h, memcpy.S, memset.S}: Likewise.
3045 * libc/machine/h8300/{reg_memcpy.S, reg_memset.S}: Likewise.
3046 * libc/machine/h8300/{strcmp.S, setjmp.S}: Likewise.
3047 * libc/sys/h8300hms/crt0.S: Likewise.
3049 Tue Jun 25 23:15:45 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
3051 * Makefile.in (datadir): Set to $(prefix)/share.
3052 (oldincludedir, docdir): Removed.
3053 * doc/Makefile.in (datadir): Set to $(prefix)/share.
3054 (oldincludedir, docdir): Removed.
3055 * libc/Makefile.in (datadir): Set to $(prefix)/share.
3056 (oldincludedir, docdir): Removed.
3057 * libm/Makefile.in (datadir): Set to $(prefix)/share.
3058 (oldincludedir, docdir): Removed.
3060 Fri Jun 21 19:24:41 1996 Ian Lance Taylor <ian@cygnus.com>
3062 * libc/include/sys/reent.h (_REENT_INIT): Update for change to
3065 Wed Jun 19 14:00:09 1996 Doug Evans <dje@canuck.cygnus.com>
3067 * libc/posix/execvp.c: Delete _WIN32 support. For __CYGWIN32__
3068 fetch current path rules with sysconf and handler posix/win32
3071 * libc/include/sys/unistd.h (_PATH_RULES{,_POSIX,_WIN32}): Define.
3073 * libc/include/process.h: Prepend '_' to P_{WAIT,NOWAIT,OVERLAY}.
3074 (WAIT_CHILD): Always define.
3076 Sat Jun 15 17:50:42 1996 Ian Lance Taylor <ian@cygnus.com>
3078 * libc/stdlib/eprintf.c: New file.
3079 * libc/stdlib/Makefile.in (OFILES): Add eprintf.o.
3080 (eprintf.o): New target.
3082 Thu Jun 13 16:44:32 1996 Doug Evans <dje@canuck.cygnus.com>
3084 * libc/sys/cygwin32/crt0.c (__cygwin_crt0_bp): New global.
3085 (mainCRTStartup): Do int3 if __cygwin_crt0_bp non-zero.
3087 Thu Jun 13 17:45:17 1996 Mike Meissner <meissner@rtl.cygnus.com>
3089 * libc/include/machine/ieeefp.h: Add support for AIX and Windows
3090 NT in PowerPC endianess cases.
3092 Tue Jun 11 12:26:28 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3094 * libc/include/machine/ieeefp.h: Clean up PowerPC endianess.
3096 Thu Jun 6 11:34:20 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3098 * libc/string/strtok.c: Fix doc typo.
3100 Mon Jun 3 11:30:00 1996 J.T. Conklin <jtc@rtl.cygnus.com>
3102 * libc/include/sys/reent.h (struct _reent): Removed _asctime,
3103 _next, _scanpoint, _signgam fields.
3105 * libc/include/stdlib.h (rand_r): Added new declaration.
3106 (_rand_r, _srand_r): Removed declarations.
3107 * libc/stdlib/rand.c (_rand_r, _srand_r): Removed, these functions
3108 have been made obsolete by rand_r.
3109 * libc/stdlib/rand_r.c: New file, rand_r function as specified
3112 * libc/string/strtok.c: Update documentation to describe
3115 Sat Jun 1 23:50:39 1996 Michael Meissner <meissner@cygnus.com>
3117 * libc/include/sys/stat.h (stat structure): Use the expanded stat
3118 structure on Solaris, and PowerPC systems even though __svr4__ is
3121 Tue May 28 13:02:42 1996 Doug Evans <dje@canuck.cygnus.com>
3123 * libc/sys/go32/sys/errno.h (ENOSYS,ESPIPE): Keep values <= 255.
3125 Fri May 17 10:34:44 1996 Ian Lance Taylor <ian@cygnus.com>
3127 * host/any: Use ../.. rather than .. to get to the main build
3128 directory. This matches the current layout of the build
3131 Wed May 15 15:52:27 1996 Jeffrey A Law (law@cygnus.com)
3133 * libc/machine/h8300/__main.S: Delete. No longer needed.
3134 * libc/machine/h8300/Makefile.in: Corresponding changes.
3135 * libc/sys/h8300hms/crt1.c: New file.
3136 * libc/sys/h8300hms/Makefile.in: Corresponding changes.
3137 * libc/sys/h8300hms/crt0.s: Call __main.
3139 * libc/sys/h8300hms/crt0.S: Use temporary label names
3142 Mon May 13 14:26:30 1996 Doug Evans <dje@canuck.cygnus.com>
3144 * libc/stdio/fopen.c (_fopen_r): Fix arguments to fseek.
3146 Fri May 3 16:38:23 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3148 * libc/reent/impure.c (_impure_ptr): Force the impure pointer into
3149 .sdata on the PowerPC so that we can link newlib with code
3150 compiled with -msdata.
3152 Mon Apr 29 21:38:02 1996 Doug Evans <dje@canuck.cygnus.com>
3154 * libc/sys/arm/syscalls.c (_sbrk): Rename end to __end__.
3156 Thu Apr 25 06:38:59 1996 Michael Meissner <meissner@cygnus.com>
3158 * libc/sys/cygwin32/crt0.c (mainCRTStartup): On PowerPC, set the
3159 exception handler to __cygwin_exception_handler.
3161 Tue Apr 23 15:14:20 1996 Ian Lance Taylor <ian@cygnus.com>
3163 * libc/include/machine/setjmp.h: Check _AM29K, not ___AM29K__.
3165 Sun Apr 21 12:11:51 1996 Doug Evans <dje@blues.cygnus.com>
3167 * libm/math/Makefile.in ({w,wf}_cabs.o,{w,wf}_drem.o): Add rule for
3169 * libc/stdlib/Makefile.in (atoff.o,atol.o,mblen.o,mbstowcs.o,
3170 wcstombs.o): Likewise.
3172 Thu Apr 18 12:37:01 1996 Doug Evans <dje@canuck.cygnus.com>
3174 * libc/stdlib/environ.c (initial_env): New static local.
3175 (environ): Point to `initial_env'.
3177 * libc/include/machine/setjmp.h: Clean up.
3178 (__H8300H__,__PPC__): Define _JBTYPE.
3179 (__arm__): Provide entry for.
3180 (sigjmp_buf): Delete.
3181 (jmp_buf): Use _JBTYPE if defined, otherwise int.
3183 Thu Apr 18 12:10:52 1996 Jeffrey A Law (law@cygnus.com)
3185 * libc/machine/h8300/strcmp.S: Sign extend the result to
3186 32bits so we don't lose with -mint32.
3188 Sun Apr 14 19:59:52 1996 Doug Evans <dje@canuck.cygnus.com>
3190 * libc/sys/go32/sys/errno.h: New file.
3191 * libc/sys/go32/Makefile.in (stat.o): Depend on stat.c.
3192 * libc/sys/go32/gerrno.s (syscall_error): Call __errno to get
3193 errno's address (make compatible with rest of newlib).
3194 * libc/sys/go32/stat.c (fixinode): Set errno upon failure.
3195 * libc/string/strerror.c (strerror): Surround each case with #ifdef.
3197 Thu Mar 28 13:44:42 1996 Doug Evans <dje@canuck.cygnus.com>
3199 * libc/machine/sparc/{scan.c,shuffle.c}: New files.
3200 * libc/machine/sparc/Makefile.in: Build them.
3201 * libc/machine/sparc/machine/sparclet.h: New file.
3203 Mon Mar 25 15:29:14 1996 J.T. Conklin <jtc@rtl.cygnus.com>
3205 * libc/machine/sh/asm.h: New file.
3206 * libc/machine/sh/setjmp.S: Only save clobbered registers. Added
3207 support for SH3e's FP registers. Use asm.h.
3209 Mon Mar 25 11:59:23 1996 Jeffrey A Law (law@cygnus.com)
3211 * libc/stdio/vfprintf.c (cvt): Accept a reent structure
3212 as first argument. Call _dtoa_r and pass the reent structure
3213 instead of calling __dtoa.
3215 Fri Mar 22 13:59:37 1996 Jeffrey A Law (law@cygnus.com)
3217 * libc/include/sys/config.h: Define DOUBLE_IS_32BITS for
3218 the h8300, h8500, and others. Add comments for some rather
3221 Thu Mar 14 18:04:43 1996 Ian Lance Taylor <ian@cygnus.com>
3223 * Makefile.in (check): Check that testsuite exists before cd.
3225 Tue Mar 12 11:46:47 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3227 * libc/include/string.h (strsep): Correct prototype.
3229 Mon Mar 11 09:55:19 1996 Doug Evans <dje@charmed.cygnus.com>
3231 * libc/sys/h8300/_exit.c (_exit,__exit): Set r0 to 0 before `sleep'.
3232 * libc/sys/h8300/misc.c (_kill): Set r0 to indicate abort and `sleep'.
3233 * libc/sys/h8300/crt0.S (_start): Call exit instead of `sleep'.
3235 Wed Mar 6 11:51:55 1996 Doug Evans <dje@charmed.cygnus.com>
3237 * libc/posix/{creat.c,isatty.c}: New files.
3238 * libc/posix/Makefile.in (OFILES): Add creat.o, isatty.o.
3240 * libc/sys/sparc64/crt0.S (environ): Delete.
3241 (.LHaveBias): Renamed from HaveBias.
3243 Thu Feb 15 10:48:37 1996 Doug Evans <dje@charmed.cygnus.com>
3245 * libc/stdlib/mallocr.c (etext): Move decl inside ifdef WARN_VLIMIT.
3246 (_morecore_r): Delete SBRK_IS_ALLOC support.
3248 Tue Feb 13 09:44:09 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3250 * libc/sys/cygwin32/Makefile.in (lib.a): Make lib.a with a dummy
3251 module rather than touch, so we don't get warning messages when
3252 all of the libraries are combined into libc.a.
3254 Tue Feb 13 06:32:07 1996 Doug Evans <dje@charmed.cygnus.com>
3256 * libc/sys/sparclite/{Makefile.in,crt0.s}: Deleted.
3257 crt0.s replaced by version in libgloss.
3259 Mon Feb 5 15:17:51 1996 J.T. Conklin <jtc@rtl.cygnus.com>
3261 * libc/reent/Makefile.in (OFILES): Add impure.o.
3262 * libc/reent/impure.o: New file, define initial reentrancy struct.
3263 * libc/reent/reent.c: Remove above definition.
3265 * libm/math/sf_asinh.c: Fix typo.
3267 * Makefile.in (MATHOBJS_IN_LIBC): Removed sr_ldexp.o and
3270 * libm/libm.texinfo: Change documentation to reflect changes
3271 in reentrancy model.
3272 * libm/math/w_gamma.c: Likewise.
3274 Wed Jan 31 18:49:45 1996 Steve Chamberlain <sac@slash.cygnus.com>
3276 * configure.in (*-*-cygwin32): New.
3277 (*-*-win32): Deleted.
3278 * libc/sys/win32 renamed libc/sys/cygwin32.
3280 Tue Jan 30 22:09:03 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3282 * libc/include/sys/file.h: New include file.
3284 Fri Jan 26 15:52:54 1996 Steve Chamberlain <sac@slash.cygnus.com>
3286 * libc/include/machine/setjmp.h: Increase size of PPC jmp_buf.
3288 Tue Jan 23 17:49:16 1996 Steve Chamberlain <sac@slash.cygnus.com>
3290 * libc/include/sys/wait.h (WIFSIGNALED): Fix.
3292 Tue Jan 16 09:28:10 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3294 * doc/makedoc.c (realloc): Declare at file scope.
3295 (catchar): Not here.
3297 Wed Dec 27 15:45:23 1995 Doug Evans <dje@canuck.cygnus.com>
3299 * Makefile.in (VERSION): Update to 1.7.0.
3300 * {libc,libm}/Makefile.in (VERSION): Likewise.
3301 * configure.in: Minor clean up of multilib stuff.
3303 From David Johnson <davidj@ICSI.Berkeley.EDU>
3304 * {libc,libm}/Makefile.in (lib[cm].a): Delete library first.
3306 * libc/stdlib/environ.c: New file.
3307 * libc/stdlib/Makefile.in (OFILES): Build it.
3308 * libc/sys/h8500hms/crt0.c (environ): Deleted.
3309 * libc/sys/m88kbug/crt0.c (environ): Deleted.
3310 * libc/sys/z8ksim/crt0.c (environ): Deleted.
3311 * libc/sys/netware/environ.c: Deleted.
3313 Tue Dec 19 15:24:46 1995 Kim Knuttila <krk@cygnus.com>
3315 * configure.in (links): set sys_dir, posix_dir, syscall_dir
3317 Wed Dec 13 04:16:25 1995 Michael Meissner <meissner@wogglebug.tiac.net>
3319 * doc/makedoc.c (init_string_with_size,nextword): Move malloc
3320 declaration out to external scope and declare it PTR, not char *.
3322 Mon Dec 11 17:35:12 1995 steve chamberlain <sac@slash.cygnus.com>
3324 * libc/include/sys/unistd.h (getpagesize): New declaration.
3325 (_SC_PAGESIZE): New definition.
3326 * libc/include/time.h (CLK_TCK): Defined as CLOCKS_PER_SEC.
3327 * libc/configure.in (i[345]86-*-win32): Remove -DNO_FORK.
3329 Fri Dec 1 16:48:46 1995 James G. Smith <jsmith@cygnus.co.uk>
3331 * libc/sys/vr4300/syscalls.c (sbrk): Fixed memory
3332 addressing. System call returns size, not (last address + 1).
3334 Thu Nov 30 15:05:26 1995 J.T. Conklin <jtc@rtl.cygnus.com>
3336 * libm/math/*.c: Removed _foo_r() reentrancy API.
3337 * libc/include/math.h: Removed _foo_r prototypes and macros.
3339 * libm/math/*.c: On systems with IEEE single precision "doubles"
3340 move foo() -> foof() wrapper code from the files that implement
3341 the standard IEEE double precision functions to the files that
3342 implement IEEE single precision functions. (ie. On those systems
3343 sin is moved from s_sin.c to sf_sin.c). There should eventually
3344 be use of a C extension (like gcc's alias attribute) so that the
3345 wrappers are not needed at all.
3347 * libc/sys/sysnec810/sbrk.c: Cast &end to char * to get around
3348 strict NEC V810 compiler.
3349 * libc/misc/dprintf.c (getnumber): Cast char * to unsigned char *
3352 Wed Nov 29 14:25:05 1995 J.T. Conklin <jtc@rtl.cygnus.com>
3354 * libc/stdlib/strtol.c (_strtol_r): Replaced with implementation
3355 from NetBSD C library.
3356 * libc/stdlib/strtoul.c (_strtoul_r): Likewise.
3358 * libc/stdlib/assert.c (__assert): Renamed from __assertfail
3359 and adapted from implementation I wrote for NetBSD C library.
3360 The difference is __assert doesn't take a format argument,
3361 so that there won't be multiple copies of the same string
3362 constant in the executable if assertions are enabled in
3363 more than one source module.
3364 * libc/include/assert.h (assert): Changed to call __assert.
3366 Tue Nov 28 16:54:26 1995 J.T. Conklin <jtc@rtl.cygnus.com>
3368 * libc/stdlib/strtod.c (_strtod_r): Changed to not assign to
3369 word1 on systems with 32 bit doubles.
3370 * libc/stdlib/qsort.c (qsort): Cast some void *'s to char *'s
3371 so that we can do arithmetic on them.
3372 * libc/misc/dprintf.c: Changed to support stdarg.h for ANSI
3375 Tue Nov 28 16:03:32 1995 Doug Evans <dje@canuck.cygnus.com>
3377 * libc/sys/arm/crt0.S: Zero bss.
3379 Fri Nov 24 16:09:23 1995 Doug Evans <dje@deneb.cygnus.com>
3381 * libc/include/unctrl.h: New file.
3382 * libc/misc/{Makefile.in,dprintf.c,unctrl.c,misc.tex}: New files.
3383 * configure.in (subdirs): Add libc/misc.
3384 * libc/Makefile.in (SUBDIRS): Add misc.
3385 (SUBLIBS): Add misc/lib.a.
3387 * libc/include/sys/reent.h (struct _reent): Make __sf last member.
3389 Wed Nov 22 19:49:47 1995 Doug Evans <dje@deneb.cygnus.com>
3391 * libc/stdio/vfprintf.c (__sbprintf): Init fake._data.
3392 (_vfprintf_r): Call CHECK_INIT.
3394 Tue Nov 14 02:52:12 1995 Doug Evans <dje@canuck.cygnus.com>
3396 * Makefile.in (MULTITOP): Delete.
3397 (MULTISRCTOP, MULTIBUILDTOP): Add.
3398 * configure.in: Delete call to cfg-ml-com.in. Call config-ml.in
3399 instead of cfg-ml-pos.in.
3401 Wed Nov 8 01:24:08 1995 James G. Smith <jsmith@pasanda.cygnus.co.uk>
3403 * libc/sys/vr4300/syscalls.c: Added clean version of sbrk().
3404 * libc/sys/vr4300/crt0.S: Cleaned up. Added check for FPU
3407 Thu Nov 2 22:25:06 1995 Michael Meissner <meissner@tiktok.cygnus.com>
3409 * libc/string/strtok.c: Include string.h to pick up strtok_r
3412 Wed Nov 1 18:54:11 1995 Jason Molenda (crash@phydeaux.cygnus.com)
3414 * libc/string/strtok.c: include <_ansi.h>.
3415 * libc/time/asctime_r.c: `reresult' -> `result'.
3417 Wed Nov 1 14:35:52 1995 J.T. Conklin <jtc@rtl.cygnus.com>
3419 * libc/time/{ctime.c, gmtime.c, lcltime.c}: Wrap functions
3420 in #ifndef _REENT_ONLY ... #endif conditional.
3422 * libc/include/string.h (_strtok_r): Remove declaration.
3423 * libc/include/time.h (_asctime_r): Remove declaration.
3424 * libc/string/strtok.c (_strtok_r): Removed.
3425 * libc/time/asctime.c (_asctime_r): Removed.
3427 * libc/string/Makefile.in (OFILES): Add new object.
3428 * libc/string/strtok_r.c: New file. strtok_r function as
3429 specified by POSIX.1c, adapted from strtok implementation
3430 from NetBSD C library.
3431 * libc/string/strtok.c (strtok): Reimplemented in terms of
3434 * libc/time/Makefile.in (OFILES): Add new objects.
3435 * libc/time/{asctime_r.c, ctime_r.c, gmtime_r.c, lcltime_r.c}:
3436 New files, reentrant time functions specified by POSIX.1c.
3437 * libc/time/{asctime.c, ctime.c, gmtime.c, lcltime.c}: Non-
3438 reentrant time functions re-written in terms of reentrant
3440 * libc/time/lcltime.c: Renamed from localtime.c
3442 * libc/include/time.h: Add prototypes for asctime_r, ctime_r,
3443 gmtime_r, and localtime_r.
3445 Sat Oct 28 14:34:31 1995 steve chamberlain <sac@slash.cygnus.com>
3447 * libc/sys/win32/crt0.c (mainCRTStartup): Call cygwin_crt0.
3448 * libc/include/sys/unistd.h (getlogin): Revert change of
3450 * libc/include/sys/signal.h (sigprocmask): Change prototype
3451 so it compiles with c++.
3453 Wed Oct 25 15:43:18 1995 Michael Meissner <meissner@cygnus.com>
3455 * libc/include/machine/setjmp.h (PowerPC _JBLEN): Consider it a
3456 PowerPC if __PPC__ is defined. Bump jump_buf length to 62 ints,
3457 to give some room in case we need to align the jmp_buf.
3459 * libc/machine/powerpc/setjmp.S (setjmp, longjmp): Rewrite to use
3460 the new ppc-asm.h include file the compiler provides to specify
3461 function prologue/epilogue. Eliminate saves of the xer and ctr
3462 registers, which are volatile. Before starting to save registers,
3463 align to 8 byte boundary.
3465 Mon Oct 23 11:20:51 1995 James G. Smith <jsmith@pasanda.cygnus.co.uk>
3467 * libc/sys/vr4300/syscalls.c: Added empty kill() function,
3468 referenced by standard libraries.
3470 Thu Oct 19 21:39:47 1995 Fred Fish <fnf@cygnus.com>
3472 * libc/unix/Makefile.in, libc/string/Makefile.in,
3473 libc/stdio/Makefile.in, libc/reent/Makefile.in,
3474 libc/posix/Makefile.in:
3475 Remove tabs from otherwise empty line. Confuses some
3476 older non-GNU versions of "make".
3478 Thu Oct 19 16:32:17 1995 steve chamberlain <sac@slash.cygnus.com>
3480 * libc/sys/unistd.h (getlogin): Returns const char *.
3482 Wed Oct 18 12:57:50 1995 steve chamberlain <sac@slash.cygnus.com>
3484 * libc/include/fcntl.h (O_BINARY, O_TEXT): New.
3485 * libc/include/errno.h: Moved into and include...
3486 * libc/include/sys/errno.h: New file.
3487 * libc/include/sys/wait.h: New file.
3488 * libc/stdio/rename.c (_rename_r): Use _rename system call if available.
3489 * libc/sys/win32/*: Moved out.
3490 * libc/sys/win32/crt0.c: Rewritten to cope with shared library.
3491 * configure.in (i[345]86-*-win32): HAVE_RENAME
3493 Wed Oct 18 09:58:27 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
3495 * libc/unix/sigset.c (sigemptyset, sigaddset): Prefix #undef to
3496 avoid macro expansion for these two names.
3498 Tue Oct 17 08:45:33 1995 Doug Evans <dje@canuck.cygnus.com>
3500 * libc/machine/h8500/psi.S: r6 renamed to fp.
3502 Sun Oct 15 12:58:10 1995 Michael Meissner <meissner@wogglebug.tiac.net>
3504 * configure.in (powerpc*): No longer need to define
3505 NO_LONGLONG_POINTERS to supress warnings.
3507 Sat Oct 14 12:55:08 1995 Jim Wilson <wilson@chestnut.cygnus.com>
3509 * libc/reent/reent.c (_reclaim_reent): Call cleanup indirectly
3510 through PTR instead of directly.
3512 * libc/sys/sh/crt0.S: Clean up formatting. Delete unused
3513 non-standard constructor support.
3515 Thu Oct 12 11:39:42 1995 J.T. Conklin <jtc@rtl.cygnus.com>
3517 * libc/stdlib/dtoa.c (_dtoa_r): Set result pointer to the
3518 address of the Bigint instead of the address of its _x field,
3519 as the size the result buffer was calculated accordingly.
3520 Fix from Jim Wilson <wilson@chestnut@cygnus.com>.
3522 * libc/stdlib/{div.c, ldiv.c}: Replaced with implementation
3523 from NetBSD C library. No longer special cases division by
3524 zero (which needs to be done by the application anyway), but
3525 it doesn't need to call abs() (or labs()) four times either.
3527 * libc/stdlib/qsort.c: Replaced with implementation from
3530 Tue Oct 10 14:01:10 1995 J.T. Conklin <jtc@rtl.cygnus.com>
3532 * libc/stdio/vfprintf.c: Replaced with implementation from
3533 NetBSD C library (which is derived from the 4.4BSD C library).
3534 * libc/stdio/cvt.c: Removed.
3535 * libc/stdio/Makefile: Updated.
3537 Tue Oct 10 12:15:23 1995 steve chamberlain <sac@slash.cygnus.com>
3539 * libc/sys/win32/syscalls.c (rename): New.
3540 * libc/sys/win32/include/winkernel.h (MoveFileExA): New.
3542 Fri Oct 6 12:18:43 1995 Jim Wilson <wilson@chestnut.cygnus.com>
3544 * libc/machine/sh/Makefile.in (setjmp.o): Depend on setjmp.S.
3545 * libc/machine/sh/setjmp.S: Rename from setjmp.s.
3547 * libc/sys/sh/Makefile.in (OFILES, all): Delete setjmp.o.
3548 (setjmp.o): Delete rule to build setjmp.o.
3549 * libc/sys/sh/setjmp.S: Delete file.
3551 Fri Oct 6 11:19:05 1995 J.T. Conklin <jtc@rtl.cygnus.com>
3553 * libc/stdlib/mprec.c (d2b): Added support for _DOUBLE_IS_32BITS.
3554 * libc/stdlib/mprec.h: Fixed constants used for IEEE single float
3555 format. Added #defines to map d2b, i2b, low0bits, lshift, mult,
3556 pow5mult and s2b to identifiers with leading underscores.
3557 * libc/stdlib/Makefile.in: Add mprec.h as a dependency to dtoa.o,
3558 ecvtbuf.o, mprec.o and strtod.o. Sort dependencies.
3560 Thu Oct 5 17:27:30 1995 steve chamberlain <sac@slash.cygnus.com>
3562 * libc/sys/posix/popen.c (sys/types.h): Include.
3564 Thu Oct 5 16:33:01 1995 Doug Evans <dje@canuck.cygnus.com>
3566 * libc/sys/win32/syscalls.h (fhandler): New struct.
3567 (__lookup_fhandler, __lookup_fhandler_hook): Declare.
3568 (__fhandler_normal): Declare.
3569 (hinfo): New member op_handlers.
3570 * libc/sys/win32/syscalls.c (__read): Don't validate fd.
3571 (__write): Likewise.
3572 (_read, _write, _open, _close, _lseek): Validate fd here.
3573 Move file type specific stuff to foo_normal.
3574 (read_normal, write_normal, open_normal, close_normal, lseek_normal):
3576 (__lookup_fhandler): New function.
3577 (__lookup_fhandler_hook, __fhandler_normal): New variables.
3579 From anders.blomdell@control.lth.se (Anders Blomdell)
3580 * libc/sys/win32/crt0.c (vfork_init): Unset __FD_TABLE__.
3581 Don't touch standard handles.
3582 * libc/sys/win32/spawn.c (_spawn): Use STARTF_USESTDHANDLES.
3583 (_execve): Only create __FD_TABLE__ if necessary.
3584 * libc/sys/win32/include/winkernel.h (STARTF_*): Define.
3586 Thu Oct 5 14:25:14 1995 steve chamberlain <sac@slash.cygnus.com>
3588 * libc/sys/win32/sys/termios.h (FLUSHO): New.
3589 * libc/sys/win32/include/win*.h: Moved a load of prototypes around.
3590 * libc/sys/win32/pipe.c (_fctnl): Ignore F_SETFL without errors.
3591 * libc/sys/win32/exception.c (ehandler3): set strace when a signal
3592 without a handler is received.
3593 * libc/sys/win32/Makefile.in: Remove --nodelete.
3594 * libc/sys/win32/resouce.c (gettimeofday): New.
3595 * libc/sys/win32/syscalls.c (path_to_real_path): New.
3596 * libc/sys/win32/syscalls.h (include/wincon.h): Don't include.
3598 Wed Oct 4 13:10:35 1995 Doug Evans <dje@canuck.cygnus.com>
3600 * libc/sys/win32/dirsearch.c (opendir): stat real path name.
3601 Don't append "/*" to search pattern if trailing '/' already there,
3603 * libc/sys/win32/spawn.c (_spawn): CreateProcess doesn't seem to
3604 like /'s, convert them to \'s. Handle //<drive>/ path names.
3605 Add space for quoted \'s in arg string. Print translated prog name
3606 and original prog name.
3607 (_execve): Handle parent doing exec a teensy bit better.
3608 * libc/sys/win32/syscalls.h (__path_to_real_path): Update prototype.
3609 * libc/sys/win32/syscalls.c (__path_to_real_path): Don't assume
3610 path needs conversion, handle both cases. Delete `const' from result.
3611 (hash_path_name): New function.
3613 (_stat): Likewise. Fill in more fields for directories.
3614 * libc/sys/win32/wait.c (_wait): Explicitly pass -1 to waitpid.
3615 (wait_for_any): Fix trace message.
3616 (waitpid): Explicitly test for intpid == 0.
3618 From anders.blomdell@control.lth.se (Anders Blomdell)
3619 * libc/sys/win32/spawn.c (__vfork_get_empty_entry): zero fill result
3622 Sat Sep 30 15:00:15 1995 Jason Molenda (crash@phyeaux.cygnus.com)
3624 * libc/sys/win32/spawn.c (_spawn): Make quoting rules more
3627 Sat Sep 30 10:25:57 1995 Jason Molenda (crash@phydeaux.cygnus.com)
3629 * libc/include/_ansi.h: set _HAVE_STDC if __STDC__ is defined
3630 at all, not just == 1.
3631 * libm/math/wf_acos.c (acosf): check for _HAVE_STDC, not __STDC__.
3633 Sat Sep 30 04:30:09 1995 Jason Molenda (crash@phydeaux.cygnus.com)
3635 * libc/sys/win32/include/winbase.h: include <wintypes.h> and <winnt.h>
3636 * libc/sys/win32/include/wintypes.h: include <winnt.h>
3637 * libc/sys/win32/include/winnt.h: avoid multiple inclusion of this
3640 Fri Sep 29 01:49:17 1995 steve chamberlain <sac@slash.cygnus.com>
3642 * libc/sys/syscalls.c (getcwd): Fix off by one error.
3644 * libc/sys/signal.c (sleep): Fill it in.
3645 * libc/sys/termios.c (tcflush): Use PurgeComm
3646 (tcsetattr): Set some more of the bits.
3647 * libc/sys/include/winkernel.h: Add PurgeComm and Sleep.
3649 Fri Sep 29 04:33:53 1995 Doug Evans <dje@deneb.cygnus.com>
3651 * libc/sys/arm/crt0.S (fp): Initialize to 0.
3652 Conditionally include .idata$3 stuff ifdef __pe__.
3654 Fri Sep 29 01:49:17 1995 steve chamberlain <sac@slash.cygnus.com>
3656 * libc/sys/win32/crt0.c (hmap_init): Call __init_hinfo.
3657 * libc/sys/win32/pipe.c (pipe): Ditto.
3658 * libc/sys/win32/syscalls.c (__read): Use new vtime and vmin fields.
3659 * libc/sys/win32/syscalls.h (hinfo): vtime, vmin are new.
3660 * libc/sys/win32/termios.c (tcsetattr): Init new fields.
3661 (tcgetattr): Contents are new.
3662 * libc/sys/win32/include/winkernel.h (DCB): New.
3663 (GetCommState, SetCommState): New.
3665 Thu Sep 28 16:29:09 1995 Doug Evans <dje@deneb.cygnus.com>
3667 * libc/sys/arm/crt0.S (_start): Define.
3669 Thu Sep 28 12:26:45 1995 steve chamberlain <sac@slash.cygnus.com>
3671 * libc/sys/arm/crt0.S: Move stack to top of RAM on PIE board.
3672 * libc/sys/arm/syscalls.c (_read, _write): Use the SWI properly.
3674 * libc/sys/win32/sysconf.c: New
3675 * libc/sys/win32/sys/winadvapi.h: New
3676 * libc/sys/win32/syscalls.h (hinfo): Added timeout_len, w_binary, r_binary.
3677 * libc/sys/win32/crt0.c (hmap_init): Initialize new fields.
3678 * libc/sys/win32/pipe.c (pipe): Ditto.
3679 * libc/sys/win32/signal.c (_raise): New.
3680 (_kill): Moved from spawn.c
3681 * libc/sys/win32/spawn.c (kill): Moved to signal.c
3682 * libc/sys/win32/syscalls.c (__read): Use new fields.
3684 * libc/sys/win32/termios.c (tcflush, tcsetattr, tcgetattr): Fill in.
3685 * libc/sys/win32/exceptions.c (__stack_trace): Keep going for longer.
3686 * libc/include/sys/unistd.h (rmdir): Takes const path.
3687 * libc/include/sys/stat.h (mkdir): Takes const path.
3688 * libc/include/sys/signal.h (SIGTTOU, SIGTTIN): New for win32.
3690 Thu Sep 28 10:11:27 1995 Doug Evans <dje@canuck.cygnus.com>
3692 * libc/sys/win32/spawn.c (_spawn): Fix quoting.
3694 Add support for specifying paths as //<drive>/foo/bar.
3695 * libc/sys/win32/syscalls.h (__path_needs_conversion_p): Declare.
3696 (__path_to_real_path): Declare.
3697 (PATH_TO_REAL_PATH): New macro.
3698 * libc/sys/win32/syscalls.c (__win32_pid_to_posix_pid): Minor cleanup.
3699 (__path_needs_conversion_p, __path_to_real_path): New functions.
3700 (_open): Fix test for error return from CreateFileA.
3701 Handle new path syntax.
3702 (_link, mkdir, rmdir, getcwd, chdir, stat): Handle new path syntax.
3703 * libc/sys/win32/dirsearch.c (opendir): Likewise.
3705 Wed Sep 27 16:36:46 1995 steve chamberlain <sac@slash.cygnus.com>
3707 * libc/sys/win32/include/*.h: Reorganized
3708 * libc/sys/win32/include/WINREADME: New.
3709 * libc/sys/win32/Makefile.in (DLLS): Build version.a.
3710 * libc/sys/win32/*.c: Fix for new include scheme.
3711 * libc/sys/win32/crt0.c (__this_uinfo_buf, __this_uinfo): New.
3712 * libc/sys/win32/getlogin.c (getlogin): Use uinfo.
3713 * libc/sys/win32/passwd.c (*): Fix.
3714 * libc/sys/win32/syscalls.c (get[e|][g|u]id): Use passwd info.
3715 (_stat): Get directory owner and permissions right.
3716 * libc/sys/win32/syscalls.h (uinfo): New.
3717 * libc/sys/win32/version.def: Remove leading underscores.
3719 Tue Sep 26 18:18:47 1995 Jason Molenda (crash@phydeaux.cygnus.com)
3721 * libc/sys/win32/key.c: include "include/wincon.h".
3723 Tue Sep 26 07:21:48 1995 steve chamberlain <sac@slash.cygnus.com>
3725 * libc/sys/win32/{key, stubs}.c: New.
3726 * libc/sys/win32/Makefile: Adjust to cope.
3727 * libc/sys/win32/crt0.c (vfork_init_first): Cope with -ve pids.
3728 (environ_init): Change env names to upper case.
3729 * libc/sys/win32/dirsearch.c (readdir): Don't fill in inode number.
3730 * libc/sys/win32/passwd.c (*): Fill in the functions.
3731 * libc/sys/win32/pipe.c (_fcntl): F_GETFL returns O_RDWR.
3732 * libc/sys/win32/spawn.c (_spawn): Cope with -ve pids.
3733 * libc/sys/win32/syscalls.c (__win32_pid_to_posix_pid): New function.
3734 (_open): Initialze hmap->execable_p too.
3735 * libc/sys/win32/syscalls.c (getuid, getgid, geteuid, getegid): Return from macros.
3736 (_fstat): Fill in permissions.
3737 * libc/sys/win32/syscalls.h (hinfo): Add execable_p.
3739 Fri Sep 22 13:47:27 1995 Doug Evans <dje@canuck.cygnus.com>
3741 * configure.in (cfg-ml-com.in invocation): Use ${with_multilib_top}
3743 (cfg-ml-pos.in invocation): Likewise.
3745 Fri Sep 22 11:43:44 1995 J.T. Conklin <jtc@rtl.cygnus.com>
3747 * Makefile.in (MATHOBJS_IN_LIBC): Added s_isinf.o, sf_isinf.o,
3748 s_isnan.o and sf_isnan.o.
3750 Wed Sep 20 14:50:19 1995 Ian Lance Taylor <ian@cygnus.com>
3752 * All Makefile.in files: added maintainer-clean target as a
3753 synonym for realclean.
3755 Wed Sep 20 11:02:50 1995 Jeff Law (law@snake.cs.utah.edu)
3757 * libc/include/machine/setjmp.h: Add hppa support.
3758 * libc/machine/hppa/setjmp.S: New file with setjmp/longjmp
3760 * libc/machine/hppa/Makefile.in: Related changes.
3762 Tue Sep 19 12:09:01 1995 J.T. Conklin <jtc@blues.cygnus.com>
3764 * configure.in (machine_dir): Don't set for v810-*-*.
3766 Fri Sep 15 20:22:08 1995 Jason Molenda (crash@phydeaux.cygnus.com)
3768 * libc/sys/win32/crt0.c (passover): Change to handle MKS quoting
3769 conventions correctly.
3771 Thu Sep 14 13:37:22 1995 J.T. Conklin <jtc@blues.cygnus.com>
3773 * libc/stdio/puts.c: Update documentation of return value to match
3776 Thu Sep 14 01:52:37 1995 Doug Evans <dje@canuck.cygnus.com>
3778 Fix file descriptor inheritance.
3779 * libc/sys/win32/syscalls.h (CHILD_P): Define again.
3781 * libc/sys/win32/spawn.c (vfork0): Only create inheritable handle if
3782 close-on-exec flag not set. Initialize child's entire fd table.
3783 * libc/sys/win32/syscalls.c (_open): Only create inheritable handle if
3785 * libc/sys/win32/pipe.c (pipe): Only create new handle as inheritable
3786 if CHILD_P. Initialize entire hmap entry.
3787 (dup): Only create new handle as inheritable if CHILD_P.
3788 (dup2): Likewise. Properly initialize hmap entry.
3790 * libc/sys/win32/spawn.c (_execve): Don't pass _P_SEARCH_PATH to
3792 (_exit): Use CHILD_P.
3793 * libc/sys/win32/syscalls.c (_fstat): Fix call to memset.
3796 Mon Sep 11 23:09:39 1995 Jason Molenda (crash@phydeaux.cygnus.com)
3798 * libc/sys/win32/crt0.c (passover): fix up the state table.
3799 * libc/posix/popen.c: Added.
3800 * libc/posix/Makefile.in: compile popen.c.
3802 Mon Sep 11 11:43:38 1995 J.T. Conklin <jtc@cygnus.com>
3804 * libc/include/machine/ieeefp.h: On the h8/300, h8/300h and
3805 h8/500 define _DOUBLE_IS_32BITS.
3807 Sat Sep 9 17:55:54 1995 Doug Evans <dje@canuck.cygnus.com>
3809 Get vfork/exec/spawn/cwait/wait working again.
3810 * libc/sys/win32/syscalls.h (VFORK_NEWBORN_PSEUDO_PID): Define.
3811 (procinfo): New member vfork_level.
3812 * libc/sys/win32/crt0.c (__vfork_next_pid): Delete.
3813 (vfork_init_first): Use GetCurrentProcessId to get pid.
3814 Initialize vfork_level.
3815 (vfork_init): Delete __PID__.
3816 (environ_init): New function. Undo patch of Aug 19, Posix says
3817 environment variables are case sensitive.
3818 (mainCRTStartup): Call it.
3819 * libc/sys/win32/spawn.c (__vfork_next_pid): Delete.
3820 (my_longjump: Make static.
3821 (_spawn): New argument `h'. Delete setting of __PID__.
3822 Delete local `idx'. Look for chars that need quotes, rather than
3823 ones that don't. Set handle of created process in `h'.
3824 Result is process id if created task.
3825 (allocate_spawn_entry): New function.
3826 (spawnvp, spawnv): Call it. Store handle and pid in procinfo entry.
3827 (_execve): Set __FD_TABLE__ before spawning child.
3828 Scan our fd table when passing fds, not our parent's.
3829 Store handle and pid in procinfo entry.
3830 (vfork0): Ensure strace message always printed.
3831 Set child pid to VFORK_NEWBORN_PSEUDO_PID.
3832 (vfork): Don't clobber result of vfork0.
3833 * libc/sys/win32/wait.c (cwait): Fix non-error result (is pid).
3834 (wait_for_any): Ignore processes in state FORK_STATE_VFORK_0.
3836 * libc/sys/win32/syscalls.h (procinfo): New members `handle_valid_p'
3838 * libc/sys/win32/spawn.c (allocate_spawn_entry): Initialize them.
3839 (vfork0): Likewise. Distinguish children, grandchildren, etc. by
3840 adding vfork level to pseudo-pid.
3841 (vfork1): If not root, set state back to FORK_STATE_VFORK_0.
3842 (spawnvp, spawnv, _execve): Set handle_valid_p if success.
3843 (_exit): If child, set exit code.
3844 (__vfork_record_death): Only close process handle if valid.
3845 * libc/sys/win32/wait.c (wait_for_single): Watch for children that
3847 (wait_for_any): Likewise. Start scan after root entry.
3849 Fri Sep 8 18:48:02 1995 Jason Molenda (crash@phydeaux.cygnus.com)
3851 * libc/include/sys/types.h (off_t): off_t back to 32 bits.
3852 * libc/include/sys/_types.h (_off_t): _off_t back to 32 bits.
3853 * libc/sys/win32/syscalls.c (_fstat): st_size is lower 32-bits
3854 of actual file length.
3856 * libc/sys/win32/sys/wait.h: include <sys/types.h>.
3857 * libc/include/paths.h: _PATH_BSHELL added.
3858 * libc/include/sys/unistd.h: define STDIN_FILENO, STDOUT_FILENO,
3861 Thu Sep 7 21:02:22 1995 Jason Molenda (crash@phydeaux.cygnus.com)
3863 * libc/include/ar.h: Added.
3864 * libc/include/sys/types.h: ino_t goes back to 32-bits.
3865 * libc/sys/win32/syscalls.h (hinfo): added .namehash field.
3866 * libc/sys/win32/syscalls.c (_open): compute .namehash based
3868 (_fstat): use .namehash for inode number of the fd.
3870 Thu Sep 7 12:57:19 1995 steve chamberlain <sac@slash.cygnus.com>
3872 * libc/sys/win32/{console,ioctl,pipe,spawn,syscalls,wait}.? (*):
3873 Change hinfo to __this_procinfo.
3874 * libc/sys/win32/crt0.c: Remove procinfo_list.
3876 Wed Sep 6 18:38:26 1995 Jason Molenda (crash@phydeaux.cygnus.com)
3878 * libc/include/sys/types.h (ino_t): Define ino_t correctly for
3881 Wed Sep 6 18:09:29 1995 Jason Molenda (crash@phydeaux.cygnus.com)
3883 * libc/sys/win32/include/grp.h: Removed.
3884 * libc/sys/include/grp.h: Added.
3885 * libc/sys/win32/grp.c: Include <grp.h>.
3887 Wed Sep 6 16:52:48 1995 steve chamberlain <sac@slash.cygnus.com>
3889 * libc/include/sys/signal.h (__need_MAX_SIGNALS): Removed.
3890 (sigset_t, sigaction, SIG_SETMASK, SIG_BLOCK, SIG_UNBLOCK):
3891 Defined for all but strict ANSI.
3892 * libc/include/sys/reent.h (__need_MAX_SIGNALS): Removed.
3893 * libc/include/machine/setjmp.h: Get win32 _JBLEN right.
3894 * libc/signal/signal.c (_signal_r): Changed from using
3895 _MAX_SIGNALS to NSIG.
3896 * libc/sys/win32/crt0.c (__current_pid, __parent_hmap, __child_hmap,
3898 (__strace, __vfork_next_pid): New.
3899 (__exe_suffix): Default to 1.
3900 (passover, table): Understand quoted arguments.
3901 (vfork_init_first): New.
3902 (vfork_init): Initialize new process structure.
3903 (mainCRTStartup): Pass environ to main.
3904 * exceptions.c (__sig_mask): New
3905 (ehandler3): Ignore signals in mask.
3906 (really_exit): Remove CHILD_P test.
3907 * pipe.c (pipe, dup, dup2): Use new process and file structure.
3908 * resource.c (getrusage): Ditto.
3909 * signal.c (sigprocmask): New.
3910 * spawn.c (*): Rewritten.
3911 * syscalls.c (*): Use new process and file structure.
3912 (find_unused_handle): New.
3913 * syscalls.h (MAX_HANDLES): Deleted.
3914 (hinfo): Removed child_created_p.
3915 (MAX_CHILDREN): Deleted.
3916 (vfork_jmp_info, procinfo): New.
3917 * wait.c (*): Mostly new.
3918 * sys/strace.h (_STRACE_PARANOID): New.
3919 * sys/param.h: New file.
3921 Wed Sep 6 17:03:53 1995 Jason Molenda (crash@phydeaux.cygnus.com)
3923 * libc/include/sys/stat.h: add S_BLKSIZE.
3924 * libc/include/sys/_types.h: _off_t is a 64-bit type under win32.
3925 * libc/include/sys/types.h: define off_t and ino_t to be 64 bit
3927 (mode_t): add a #else to avoid multiple definitons.
3929 * libc/sys/win32/Makefile.in: add grp.c.
3930 * libc/sys/win32/grp.c: include grp.h correctly.
3931 * libc/sys/win32/syscalls.c (_fstat): set almost all of the fields
3932 of the st structure with real information.
3933 * libc/sys/win32 (dirent): d_ino is of type ino_t.
3935 Wed Sep 6 10:41:34 1995 Doug Evans <dje@canuck.cygnus.com>
3937 * libc/include/sys/types.h (mode_t): Correct for svr4 sparc's
3938 and (maybe) sparc64.
3939 (nlink_t): Provide typedef.
3941 Tue Sep 5 18:46:05 1995 Jason Molenda (crash@phydeaux.cygnus.com)
3943 * libc/sys/win32/grp.c: New file.
3944 * libc/sys/win32/include/grp.h: New file.
3946 Tue Sep 5 13:47:27 1995 J.T. Conklin <jtc@rtl.cygnus.com>
3948 * libc/include/machine/ieeefp.h: Added whitespace to make this
3949 file easier to maintain.
3950 On the sh, define either __IEEE_BIG_ENDIAN or __IEEE_LITTLE_ENDIAN
3951 depending on the value of __LITTLE_ENDIAN__.
3952 On the sh3e, define _DOUBLE_IS_32BITS.
3954 Fri Sep 1 15:35:18 1995 James G. Smith <jsmith@beauty.cygnus.com>
3956 * libc/sys/vr4300/syscalls.c: Added missing support
3957 routines. _raise() and getpid().
3959 Fri Sep 1 14:12:48 1995 James G. Smith <jsmith@rtl.cygnus.com>
3961 * configure.in (mips*vr4300*-*-elf): Fixed silly mistake
3963 Fri Sep 1 08:42:11 1995 James G. Smith <jsmith@beauty.cygnus.com>
3965 * configure.in (mips*vr4300*-idt-*) Add support for RISQ monitor
3966 and VR4300 processor.
3967 * libc/sys/vr4300: Add directory.
3968 * libc/sys/vr4300/{Makefile.in, crt0.S, syscalls.c}: Add SIM
3969 monitor run-time support.
3971 Thu Aug 31 09:16:52 1995 J.T. Conklin <jtc@rtl.cygnus.com>
3973 * libc/stdlib/Makefile.in (CHEWOUT_FILES): Removed atol.def.
3974 * libc/stdlib/stdlib.tex: Don't include atol.def.
3976 Wed Aug 30 20:38:28 1995 Jason Molenda (crash@phydeaux.cygnus.com)
3978 * libc/sys/win32/uname.c (uname): hardcode processor as `i386'.
3980 Wed Aug 30 10:48:08 1995 steve chamberlain <sac@slash.cygnus.com>
3982 * libc/ctype/Makefile.in: Fill in _to* dependencies.
3984 Tue Aug 29 17:14:29 1995 steve chamberlain <sac@slash.cygnus.com>
3986 * libc/sys/win32/{dirsearch.c,sys/dirent.h}: Fix namespace problems.
3987 * libc/sys/win32/sys/dirent.h (struct dirent): Added d_ino.
3988 * libc/sys/win32/strace.c (__sys_printf): Increase size of buffer.
3989 * libc/sys/win32/smallprint.c (__small_vsprintf): Remove debug.
3990 * libc/sys/win32/dirsearch.c (readdir): Set d_ino.
3992 Tue Aug 29 19:00:09 1995 Jason Molenda (crash@phydeaux.cygnus.com)
3994 * libc/stdlib/atol.c (atol): DEFUN -> _DEFUN.
3996 Tue Aug 29 16:08:09 1995 J.T. Conklin <jtc@rtl.cygnus.com>
3998 * libc/stdlib/Makefile.in (OFILES): Added atoff.o and atol.o.
3999 * libc/stdlib/atoff.c: New file.
4000 * libc/stdlib/atof.c (atoff): Moved to atoff.c.
4001 * libc/stdlib/atoi.c (atol): Removed.
4002 * libc/stdlib/atol.c: Removed duplicate documentation.
4004 * libc/include/ctype.h (_tolower, _toupper): Moved inside
4005 #ifndef _STRICT_ANSI conditional.
4006 * libc/ctype/Makefile.in (OFILES): Added _tolower.o and _toupper.o
4007 * libc/ctype/_tolower.c: New file.
4008 * libc/ctype/_toupper.c: New file.
4009 * libc/ctype/tolower.c (_tolower): Moved to _tolower.c.
4010 * libc/ctype/toupper.c (_toupper): Moved to _toupper.c.
4011 * libc/ctype/toascii.c (_toascii): Removed.
4013 Tue Aug 29 12:17:32 1995 Doug Evans <dje@canuck.cygnus.com>
4015 * libc/sys/sparc64/sys/types.h: Deleted.
4017 Mon Aug 28 22:06:08 1995 Jason Molenda (crash@phydeaux.cygnus.com)
4019 * libc/sys/win32/uname.c (uname): change `Windows/NT' to `Windows_NT'
4020 and recognize Windows_95 systems.
4022 Mon Aug 28 19:50:54 1995 Jason Molenda (crash@phydeaux.cygnus.com)
4024 * libc/sys/win32/crt0.c (vfork_init, hmap_init): standard I/O fds
4025 and passed fds should be opened in text mode.
4027 Mon Aug 28 18:51:22 1995 Jason Molenda (crash@phydeaux.cygnus.com)
4029 * libc/sys/win32/crt0.c (vfork_init): mark passed fds as used
4030 in __hmap, set to binary mode by default.
4032 Tue Aug 22 14:12:37 1995 J.T. Conklin <jtc@rtl.cygnus.com>
4034 * libc/sys/sh/syscalls.c: Updated all functions to call __trap34.
4035 * libc/sys/sh/trap.S (__trap34): Renamed from __trap3. Use trap
4038 Sat Aug 19 18:25:37 1995 steve chamberlain <sac@slash.cygnus.com>
4040 * Makefile.in (install): Install all libraries found in the
4041 top level. If there's a sys/<type>/include directory,
4042 install those headers into include.
4044 * libc/sys/win32/kernel.def351: Delete
4045 * libc/sys/win32/{comctl32.def, comdlg32.def, ctl3d32.def,
4046 glaux.def, glu32.def, largeint.def, libc.def, libcmt.def,
4047 lz32.def, mgmtapi.def, mpr.def, msacm32.def, msvcrt.def,
4048 nddeapi.def, netapi32.def, odbc32.def, odbccp32.def, oldnames.def,
4049 ole32.def, oleaut32.def, opengl32.def, rasapi32.def, rpcndr.def,
4050 rpcns4.def, rpcrt4.def, scrnsave.def, shell32.def, snmp.def,
4051 uuid.def, vdmdbg.def, version.def, vfw32.def, win32spl.def,
4052 winmm.def, winspool.def, winstrm.def, wsock32.def}: New.
4054 * libc/sys/win32/Makefile.in: Update for new files and new dlltool options.
4055 * libc/sys/win32/crt0.c: Force all env names to upper case.
4056 * libc/sys/win32/sys/win*.h -> libc/sys/win32/include
4057 * libc/sys/win32/*.c: Headers have moved.
4058 * libs/sys/win32/*.[ch]: Test for open_p rather than BAD_HANDLE,
4059 __vfork_child_idx is now __vfork_child_ptr.
4061 * posix/execvp (execvp): Don't crash if no PATH envname.
4063 Fri Aug 18 12:22:59 1995 J.T. Conklin <jtc@rtl.cygnus.com>
4065 * libc/include/sys/reent.h (_Bigint): Removed _reclaim field.
4066 * libc/reent/reent.c (_reclaim_reent): Free Bigint's by going
4067 through the _freelist instead of through the _reclaim list.
4068 * libc/stdlib/mprec.c (_Balloc): Don't put new node on _reclaim list.
4069 * libc/stdlib/mprec.c (_Bcopy): Make like version in master dtoa.c
4072 Thu Aug 17 11:03:27 1995 J.T. Conklin <jtc@rtl.cygnus.com>
4074 * libc/machine/h8500/setjmp.S: New file.
4075 * libc/include/machine/setjmp.h: Updated for H8/500.
4077 Wed Aug 16 16:19:11 1995 steve chamberlain <sac@slash.cygnus.com>
4079 * libc/sys/win32/syscalls.c (_open): More stracing.
4080 (_stat): Open the file in O_BINARY.
4082 Wed Aug 16 15:49:01 1995 J.T. Conklin <jtc@rtl.cygnus.com>
4084 * libc/machine/h8300/setjmp.S: New file.
4085 * libc/include/machine/setjmp.h: Updated for H8/300 and H8/300H.
4087 Tue Aug 15 10:31:09 1995 Doug Evans <dje@canuck.cygnus.com>
4089 * libc/sys/win32/crt0.c (__exe_suffix): New global.
4090 (mainCRTStartup): Set __exe_suffix from LIBC_EXE_SUFFIX.
4091 * libc/sys/win32/spawn.c (_spawn): Add .exe suffix based on
4092 __exe_suffix. Free fd_tab after setting env variable.
4093 (spawnv,_execve): Update.
4094 * libc/sys/win32/syscalls.h (__exe_suffix): Declare.
4095 * libc/sys/win32/smallprint.c (puts,putn): New (static) functions.
4096 (__small_vfprintf): New function.
4097 * libc/sys/win32/strace.c (__sys_printf): Call __small_vfprintf.
4098 * libc/sys/win32/wait.c (cwait): Validate argument.
4100 * libc/sys/win32/syscalls.c (queue_file_deletion): Add trace message.
4101 (process_deletion_queue): Likewise.
4103 * libc/sys/win32/Makefile.in (lib.a): Don't call $(RANLIB).
4105 Mon Aug 14 10:14:10 1995 steve chamberlain <sac@slash.cygnus.com>
4107 * libc/sys/win32: Copyrights and gratuitous indenting.
4109 Mon Aug 14 01:32:58 1995 Doug Evans <dje@canuck.cygnus.com>
4111 * libc/sys/win32/syscalls.c (queue_file_deletion): Finish.
4112 (process_deletion_queue): Likewise.
4113 (__close_all_files): New function.
4114 (_close): Only queue file deletion if really a file.
4115 * libc/sys/win32/spawn.c (_spawn): Only ensure .exe suffix if
4117 (_exit): Call __close_all_files.
4119 * libc/stdlib/system.c: #include <errno.h>.
4120 (_system_r): Fix results in -DNO_EXEC case.
4122 * libc/sys/win32/sys/dirent.h (DIR): New member __d_dirname.
4123 Reorganize structure.
4124 * libc/sys/win32/dirsearch.c (opendir): Use stat to determine
4125 if argument is valid. Save directory name in DIR. malloc space
4126 for dirent struct separately.
4127 * libc/sys/win32/syscalls.c (stat): Fix test for directory.
4129 * libc/include/errno.h (ENAMETOOLONG): Define.
4130 * libc/string/strerror.c (strerror): Reword ENFILE.
4131 Add ENOSYS, ENMFILE, ENOTEMPTY, ENAMETOOLONG.
4133 Sun Aug 13 22:42:25 1995 Doug Evans <dje@canuck.cygnus.com>
4135 * libc/sys/win32/crt0.c (__progname): New global.
4136 (mainCRTStartup): Support strace=bitmask,filename.
4137 * libc/sys/win32/dirsearch.c (all fns): Add trace messages.
4138 * libc/sys/win32/syscalls.c (_write): Print parent trace message
4140 (getcwd): Handle len too small. Convert '\\' to '/'.
4141 * libc/sys/win32/sys/fcntl.h (O_RDWR): = O_RDONLY|O_WRONLY.
4142 Add prototypes for open, creat, fcntl.
4143 (O_APPEND): Change value to conform to Microsoft's value.
4144 * libc/sys/win32/sys/strace.h (_STRACE): Protect in do/while.
4146 * libc/stdlib/getopt.c: New file.
4147 * libc/stdlib/Makefile.in: Build it.
4149 Sat Aug 12 12:17:14 1995 Doug Evans <dje@canuck.cygnus.com>
4151 * libc/posix/execvp.c (execvp): Watch for DOS drives ifdef _WIN32.
4152 Fix scanning of $PATH.
4153 * libc/posix/exec*.c: Call _execve, not execve.
4154 * libc/posix/execve.c: New file.
4155 * libc/posix/Makefile.in (OFILES): Add execve.o.
4157 * libc/sys/win32/sys/strace.h (_STRACE_ALL, _STRACE_UHOH,
4158 _STRACE_STARTUP, _STRACE_SYSCALL): More bit masks of things to trace.
4159 (_STRACE): If level==0, always print. Handle new bit mask scheme.
4160 * libc/sys/win32/crt0.c: Update _STRACE calls.
4161 * libc/sys/win32/{pipe.c,resource.c,spawn.c,syscalls.c,wait.c}: Ditto.
4163 * libc/sys/win32/smallprint.c (rn): Fix digit list.
4165 * libc/sys/win32/syscalls.c (__really_exit): Move from here,
4166 * libc/sys/win32/exceptions.c (really_exit): to here. Avoid recursion.
4167 * libc/sys/win32/spawn.c (spawnvp): Pass `prog' as image name.
4168 Print __seterrno trace message first.
4169 (_execve): Renamed from execve.
4170 (vfork): Update __strace usage.
4171 (__vfork_child_pid): Deleted.
4172 (__vfork_children, __vfork_child_idx): New globals.
4173 (_spawnvp): New function.
4174 (spawnvp, spawnv, _execve): Call _spawnvp.
4175 (init_child): Record child in __vfork_children.
4176 (__vfork_get_entry, __vfork_record_death): New functions.
4177 * libc/sys/win32/crt0.c (mainCRTStartup): Initialize __vfork_children.
4178 * libc/sys/win32/kernel32.def (WaitForMultipleObjects): Define.
4179 * libc/sys/win32/syscalls.h (CHILD_P): New macro. All files updated.
4180 (MAX_CHILDREN, CHILD_INTERIM_PID): Define.
4181 (children): New typedef.
4182 (__vfork_children,__vfork_child_idx): Declare.
4183 (__vfork_get_entry,__vfork_record_death): Declare.
4184 * libc/sys/win32/wait.c (wait_for_single,wait_for_any): New functions.
4185 (waitpid): Handle pid == -1.
4186 * libc/sys/win32/sys/wintypes.h (WaitForMultipleObjects): Declare.
4187 * configure.in (i386-win32): Add -DNO_FORK.
4188 * libc/syscalls/sysfork.c (fork): Don't define for NO_FORK.
4189 * libc/reent/execr.c (_fork_r): Likewise.
4190 * libc/stdlib/system.c (do_system): New function.
4191 If WIN32, try to get shell path from $SH_PATH, use vfork.
4192 (_system_r): Return 1 for (s == NULL) if WIN32 or unix,
4195 Sat Aug 12 11:08:00 1995 steve chamberlain <sac@slash.cygnus.com>
4197 * libc/stdlib/{mallocr.c, mstats.c}: Move mstats from mallocr to mstats.c.
4198 * libc/sys/win32/fcntl.h: Don't include self.
4199 * libc/sys/win32/sys/strace.h (_STRACE_WM, _strace_wm): New.
4200 * libc/sys/win32/sys/winbase.h: (GetUserName) New.
4201 * libc/sys/win32/sys/wincon.h (HANDLER_ROUTINE): Define correctly.
4202 * libc/sys/win32/sys/wintypes.h (GetFileType, GetCurrentProcess, CloseHandle,
4203 SetFilePointer, CreateFileA, GetFileInformationByHandle, GetStdHandle):
4205 * libc/sys/win32/strace.c: New file.
4206 * libc/sys/win32/smallprint.c: New file.
4207 * libc/sys/win32/crt0.c (func): Delete.
4208 (mainCRTStartup): Fix alloca usage. Set handles explictly.
4209 * libc/sys/win32/dirsearch.c: Clean up handle usage, fix calls to __seterrno.
4210 * libc/sys/win32/exceptions.c: Lint.
4211 * libc/sys/win32/{ioctl.c, pipe.c, resource.c, spawn.c, cwait.c, syscalls.c}:
4212 Clean up handle usage.
4213 * libc/sys/win32/syscalls.c (__sys_printf): Moved into strace.c
4214 (open.c): Default file type is text.
4215 * libc/sys/win32/uname.c (uname): Use __small_sprintf.
4216 * libc/sys/win32/advapi32.def: New
4218 Fri Aug 11 17:11:52 1995 Doug Evans <dje@canuck.cygnus.com>
4220 * configure.in (posix_dir, libc_posix_lib): New variables.
4221 Define LIBC_POSIX_LIB in makefile to be $libc_posix_lib.
4222 (i[345]86-*-win32): Define posix_dir.
4223 Delete -DNO_EXEC. Define -DHAVE_OPENDIR.
4224 (if unix_dir): Fix typo.
4225 * libc/posix/{Makefile.in,closedir,opendir,readdir,rewinddir,
4226 scandir,seekdir,telldir}: New files.
4227 * libc/posix/{execl.c,execle.c,execlp.c,execv.c,execvp.c}: Move here
4229 * libc/Makefile.in (LIBC_POSIX_LIB): Define.
4230 (SUBDIRS): Add posix.
4231 (SUBLIBS): Add $(LIBC_POSIX_LIB).
4233 * libc/include/sys/signal.h (SIGCHLD): Add for _WIN32.
4234 (NSIG): Increase to 21.
4235 * libc/include/sys/unistd.h (pid_t): Move from here,
4236 * libc/include/sys/types.h (pid_t): to here.
4238 * libc/sys/win32/syscalls.h: #include "sys/strace.h".
4240 (hinfo): New members close_exec_p, child_created_p.
4241 (struct exception_list): Define.
4242 (__hmap): Redefine as pointer to table.
4243 (__parent_hmap, __child_hmap): New globals.
4244 (__set_errno, __really_exit): Declare.
4245 (__vfork_child_pid): Declare.
4246 * libc/sys/win32/crt0.c (__strace, __trace_file): New global.
4247 (__orig_stdin, __orig_stdout, __orig_stderr): New globals.
4248 (__parent_hmap, __child_hmap): New globals.
4249 (__hmap): Redefine as pointer to active map.
4250 (__get_console): New function.
4251 (mainCRTStartup): Change leading '=' in environ vars to '!'.
4252 (env __FD_TABLE__): Watch for this and initialize our fd/handle
4253 mapping table from it if defined.
4254 (argv, envp): Dump if __strace >= 4.
4256 * libc/sys/win32/exceptions.c (myp): Redefine.
4257 (__syscalls_b): Delete.
4258 (__stack_trace): New function.
4259 (ehandler3): Update to use _STRACE. Print stack trace.
4260 Call __really_exit instead of exit.
4261 (init_exceptions): Delete args argc,argv. New arg mine.
4262 * libc/sys/win32/kernel32.def (CreatePipe, DuplicateHandle, FindClose,
4263 FindFirstFileA, FindNextFileA, GetComputerNameA,
4264 GetEnvironmentVariableA, ReadFile, SetEnvironmentVariableA): Define.
4265 * libc/sys/win32/signal.c (signal): Validate arg.
4266 (alarm, sleep): Define as stubs for now.
4267 * libc/sys/win32/syscalls.c (all fns): Update to use _STRACE.
4268 (__syscalls_b, errno): Delete.
4269 (__vfork_child_pid, __vfork_jmp_buf): New globals.
4270 (__seterrno): Handle more errors.
4271 (__sys_printf): Renamed from _ptrace.
4272 (__really_exit): New function.
4273 (queue_file_deletion, process_deletion_queue): New functions.
4274 (__resume_parent): New function.
4275 (_unlink): Handle trying to delete open file.
4276 (__totime_t): Renamed from totime_t.
4277 (setsid, __read, __write): New functions.
4278 (cwait, spawnvp, R, D, getrusage, _execve, _fork, _wait): Delete.
4279 * libc/sys/win32/{dirsearch.c,getlogin.c,misc.c,resource.c,passwd.c,
4280 times.c,spawn.c,pipe.c,wait.c,termios.c,ioctl.c,uname.c}: New files.
4281 * libc/sys/win32/console.c: Update to new definition of __hmap.
4282 * libc/sys/win32/Makefile.in: Build new files.
4283 * libc/sys/win32/sys/{dirent.h,winerror.h,wait.h,termios.h}: New files.
4284 * libc/sys/win32/sys/{ioctl.h,utsname.h}: New files.
4285 * libc/sys/win32/sys/strace.h: Renamed from ptrace.h.
4286 * libc/sys/win32/sys/wintypes.h (GetCurrentDirectoryA): Fix prototype.
4288 Thu Aug 10 16:32:52 1995 Doug Evans <dje@canuck.cygnus.com>
4290 * libc/sys/h8500hms/misc.c (kill): Handle SIGABRT.
4292 Thu Aug 10 12:07:38 1995 J.T. Conklin <jtc@rtl.cygnus.com>
4294 * libc/stdlib/{dtoa.c, strtod.c}: Merged assorted changes that
4295 have been made to the master dtoa.c sources (from netlib.att.com)
4296 since they were integrated into newlib in early 1992. Fixes
4297 problems with storage leaks and handling of numbers with very
4300 Wed Aug 9 14:18:39 1995 J.T. Conklin <jtc@rtl.cygnus.com>
4302 * Makefile.in (all): set rootpre and srcrootpre before calling
4305 Tue Aug 8 17:20:45 1995 steve chamberlain <sac@slash.cygnus.com>
4307 * libc/sys/win32/crt0.c: Change __hmap usage.
4308 * libc/sys/win32/exceptions.c: Use _ptrace call.
4309 * libc/sys/win32/syscalls.c: Use _ptrace call.
4310 (read, write): Cope with DOS style CRLF when in TEXT mode.
4311 * libc/sys/win32/syscalls.h: Declare hinfo struct.
4312 * libc/sys/win32/user32.def: Get DefWindowProc arg list right.
4313 * libc/sys/win32/sys/fcntl.h, ptrace.h: New.
4314 * libc/sys/win32/sys/windows.h: Fill in rest of messages.
4315 * libc/sys/win32/sys/wintypes.h: Fix attribute syntax.
4317 Mon Aug 7 13:04:54 1995 J.T. Conklin <jtc@rtl.cygnus.com>
4319 * libc/include/math.h (cabs, cabsf, drem, dremf): New declarations.
4321 * libm/math/{w_cabs.c, wf_cabs.c, w_drem.c, wf_drem.c}: New files,
4322 wrappers for hypot() and remainder() for BSD libm compatibility.
4323 These are public domain implementations written by me for the
4324 NetBSD libm some time ago. Note cabs() is required by ucbtest.
4325 * libm/math/Makefile.in (obj): Added w_cabs.o and w_drem.o.
4326 (fobj): Added wf_cabs.o and wf_drem.o.
4328 Thu Aug 3 08:13:05 1995 J.T. Conklin <jtc@rtl.cygnus.com>
4330 * libc/sys/h8500hms/misc.c: New file.
4331 * libc/sys/h8500hms/Makefile.in (OFILES): Add misc.o.
4333 Wed Aug 2 16:46:27 1995 J.T. Conklin <jtc@rtl.cygnus.com>
4335 * libc/time/localtime.c (localtime): Fix problem with leap year
4336 handling. Stole algorithm from Arthur David Olson's tz code.
4338 Mon Jul 31 10:21:54 1995 steve chamberlain <sac@slash.cygnus.com>
4340 * configure.in: (z8k-*sim): Renamed z8k-*-coff.
4342 * libc/sys/z8ksim/glue.c (_getpid, _kill): New
4343 (_exit): Use argument.
4345 Fri Jul 28 15:17:04 1995 Doug Evans <dje@canuck.cygnus.com>
4347 * libc/sys/win32/sys/winbase.h (_WINBASE_H): Define.
4349 Wed Jul 26 16:24:19 1995 steve chamberlain <sac@slash.cygnus.com>
4351 * libc/sys/sh/trap.S (perrno): Align correctly. (pr 7532)
4353 Mon Jul 24 13:42:52 1995 J.T. Conklin <jtc@rtl.cygnus.com>
4355 * configure.in (sparc*): Add -DMALLOC_ALIGNMENT=8 to
4358 Mon Jul 24 11:42:07 1995 steve chamberlain <sac@slash.cygnus.com>
4360 * libc/sys/win32/crt0.c (mainCRTStartup): Look for
4361 ptrace with case insensitivity
4362 * libc/sys/win32/{user32.def, gdi32.def, exceptions.c, screen.c,
4363 sys/winbase.h, sys/windows.h, sys/wintypes.h, sys/winuser.h}:
4366 Fri Jul 21 11:22:26 1995 Doug Evans <dje@canuck.cygnus.com>
4368 * Makefile.in: Multilib support moved to ../cfg-ml-{com,pos}.in.
4369 (MULTITOP, MULTIDIRS, MULTISUBDIR, MULTIDO, MULTICLEAN): New variables.
4370 (all, install, *clean): Use new multilib support.
4371 * configure.in: Multilib support moved to ../cfg-ml-{com,pos}.in.
4373 Fri Jul 21 07:11:42 1995 steve chamberlain <sac@slash.cygnus.com>
4375 * libc/include/sys/signal.h (__WIN32__): New.
4377 * configure.in (i386-*-win32): Remobe SBRK_IS_ALLOC.
4379 * libc/stdlib/mprec.c (Balloc): Fix trampling problem.
4380 (ulp, b2d): Handle 32 bit doubles.
4381 * libc/stdlib/mprec.h: Handle 32 bit doubles.
4382 * libc/stdlib/strtod.c (_strtod_r): Ditto.
4384 Fri Jul 14 08:24:58 1995 steve chamberlain <sac@slash.cygnus.com>
4386 from medp@primag.co.uk:
4387 * libc/stdio/setvbuf.c (setvbuf): Fix line buffering on
4388 dynamically allocated buffers.
4390 Thu Jul 20 10:11:03 1995 Fred Fish <fnf@fishbowl>
4392 * libc/include/sys/unistd.h (_exit): Add _ATTRIBUTE ((noreturn)).
4393 * libc/stdlib/exit.c (unistd.h): Include to pick up _exit() declaration.
4395 Thu Jul 20 10:16:25 1995 Michael Meissner <meissner@tiktok.cygnus.com>
4397 * configure.in (powerpc): Fix previous fix.
4399 Wed Jul 19 14:08:55 1995 Michael Meissner <meissner@tiktok.cygnus.com>
4401 * configure.in (powerpc-*eabiaix*): Update PowerPC multilib
4402 directories for this target.
4404 Wed Jul 19 00:34:30 1995 Jeffrey A. Law <law@rtl.cygnus.com>
4406 * configure.in (hppa): Add machine_dir definition.
4407 * libc/machine/hppa: New directory with PA specific implementations
4408 of the basic memory/string functions.
4410 Tue Jul 18 21:16:00 1995 Michael Meissner <meissner@tiktok.cygnus.com>
4412 * configure.in: Update current PowerPC multilib directories.
4413 Split big and little endian configurations.
4415 Tue Jul 18 11:55:33 1995 Ian Lance Taylor <ian@cygnus.com>
4417 * configure.in: Add --enable-single-float option to configure to
4418 control use of MIPS single-float directories. Default to yes.
4420 * Makefile.in (all): Don't recurse into multilib directory if it
4423 Mon Jul 17 15:51:30 1995 J.T. Conklin <jtc@rtl.cygnus.com>
4425 * libc/sys/sh/syscalls.c: Fix typo.
4427 Mon Jul 3 14:38:52 1995 Steve Chamberlain <sac@slash.cygnus.com>
4429 * Makefile.in, libc/Makefile.in, libc/sys/Makefile.in:
4431 * libc/include/process.h: Define WAIT_CHILD.
4432 * libc/include/types.h: Get sizes right for win32.
4433 * configure.in (i386-*-pe): Becomes i386-win32.
4434 * libc/sys/win32/{crt0.c, kernel32.def, longjmp.c, setjmp.c, syscalls.c
4435 wintypes.h,sys/file.h,sys/resource.h}: Second pass.
4436 * libc/stdlib/mallocr.c: Don't round up memory block if SBRK_IS_ALLOC
4439 Wed Jun 28 18:34:54 1995 Steve Chamberlain <sac@slash.cygnus.com>
4441 * configure.in (i[345]86-*-pe): New target (NT).
4442 * host/any: DLLTOOL new.
4443 * libc/sys/win32/{crt0.c, kernel32.def, longjmp.c, setjmp.c, syscalls.c
4444 wintypes.h,sys/file.h,sys/resource.h}: Preliminary support for
4445 WIN32 (just enough to cross host the comp-tools).
4447 Thu Jun 22 11:45:18 1995 Doug Evans <dje@canuck.cygnus.com>
4449 * libc/machine/h8300/{cmpsi.S,ucmpsi.S,divhi3.S,mulhi3.S,mulsi3.S}:
4450 Deleted. These files live in gcc/config/h8300/lib1funcs.asm now.
4452 Mon Jun 19 11:40:40 1995 Doug Evans <dje@canuck.cygnus.com>
4454 * libc/include/machine/ieeefp.h (arm): Change to always be
4455 __IEEE_BIG_ENDIAN (even on little endian ARM's).
4457 Thu Jun 8 14:22:28 1995 Steve Chamberlain <sac@slash.cygnus.com>
4459 * libc/sys/crt0.S: Initialze sp, and call exit after main.
4460 * libc/sys/syscalls.c (abort): New.
4461 * configure.in (arm): Define ABORT_PROVIDED.
4463 Wed Jun 7 14:04:35 1995 J.T. Conklin <jtc@rtl.cygnus.com>
4465 * configure.in (powerpc): Define multidirs.
4467 Mon Jun 5 16:10:13 1995 Doug Evans <dje@canuck.cygnus.com>
4469 * libc/sys/arm/crt0.S: Add __USER_LABEL_PREFIX__ support.
4471 Thu Jun 1 10:51:47 1995 Sean Eric Fagan <sef@cygnus.com>
4473 * configure.in (sparclite): Delete target_cflags. Define multidirs.
4475 Wed May 24 14:23:25 1995 Steve Chamberlain <sac@slash.cygnus.com>
4477 * configure.in, libc/include/machine/ieeefp.h: Modified
4479 libc/machine/arm/*, libc/sys/arm/*: New
4481 Tue May 23 13:53:07 1995 J.T. Conklin <jtc@rtl.cygnus.com>
4483 * libc/include/machine/ieeefp.h: Use __PPC__ instead of
4484 __powerpc__ when determining endianness.
4486 Wed May 10 07:55:56 1995 J.T. Conklin <jtc@rtl.cygnus.com>
4488 * configure.in (m68*): Add multidir for the m68332.
4490 * host/any (CC): Fix typo in last change.
4492 Fri Apr 14 22:20:31 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
4494 * libc/include/sys/config.h: Test __m68k__ instead of __m68000__
4495 when determining endianness.
4496 * libc/include/machine/ieeefp.h: Ditto.
4497 * libc/machine/m68k/setjmp.S: Use '&' instead of '#' for immediate
4500 Fri Apr 14 14:14:29 1995 Doug Evans <dje@chestnut.cygnus.com>
4502 * libc/include/errno.h (ENOTEMPTY): Define.
4504 Thu Apr 6 12:21:20 1995 J.T. Conklin <jtc@rtl.cygnus.com>
4506 * configure.in (sparc-sun-sunos*): Add -DMALLOC_ALIGNMENT=8 to
4509 * libc/sys/sun4/Makefile.in (COPYOFILES): Added rem.o, multiply.o,
4512 * libc/stdio/tmpnam.c (worker): Unconditionally increment count
4513 instead of only when open succeeds. ANSI requires that multiple
4514 calls to tmpnam() result in different files.
4516 * libc/sys/sun4/Makefile.in (COPYRENAMEOFILES): New macro, list of
4517 objects pulled in from /lib/libc.a that must be renamed before
4518 being pulled into newlib. /lib/libc.a's div.o conflicted with
4519 newlib's file with the same name.
4521 * libc/stdlib/ldiv.c (ldiv): Call labs() instead of abs().
4523 * host/any (CC, AS, AR, RANLIB): Changed so that executables in
4524 the build tree will only be used if the executables are present
4525 (instead of just the Makefiles).
4527 * libc/include/stdlib.h (mblen, mbtowc, wctomb, mbstowcs,
4529 * libc/stdlib/{mblen.c, mbstowcs.c, wcstombs.c}: New files, null
4530 versions of these functions that I orignally wrote for the
4532 * libc/stdlib/{mbtowc.c, wctomb.c}: Replaced functions with
4533 versions I wrote for NetBSD.
4535 Wed Mar 29 12:42:42 1995 Kung Hsu <kung@mexican.cygnus.com>
4537 * libc/sys/sparclite/Makefile.in: add crt0.s and make info.
4538 * libc/sys/sparclite/crt0.s: ditto.
4540 Tue Mar 28 20:28:03 1995 Rob Savoye <rob@rtl.cygnus.com>
4542 * configure.in: Add soft-float for proelf.
4544 Mon Mar 27 12:07:56 1995 Steve Chamberlain <sac@bang.hack.com>
4546 * libc/stdlib/mprec.h (Bcopy): Copy the right number
4549 Mon Mar 27 11:24:22 1995 Doug Evans <dje@chestnut.cygnus.com>
4551 * Makefile.in (all): Depend on `force'.
4552 * configure.in (syscall_dir): Renamed from fake_sys_dir.
4553 (libc_syscall_lib): Renamed from libc_fake_sys_lib.
4554 (LIBC_SYSCALL_LIB): Renamed from LIBC_FAKE_SYS_LIB.
4555 * libc/Makefile.in: Likewise.
4556 * libc/include/reent.h: Update syscall references.
4557 (_fcntl_r): Add prototype.
4558 * libc/syscalls/*.c #include <reent.h>.
4559 (*) Call reentrant version if REENTRANT_SYSCALLS_PROVIDED.
4561 Mon Mar 20 16:57:39 1995 Doug Evans <dje@deneb.cygnus.com>
4563 * libc/include/sys/stat-dj.h (S_ISBLK): Define.
4564 (S_ISCHR, S_ISDIR, S_ISFIFO, S_ISREG): Define.
4565 * libc/include/sys/stat.h (stat-dj.h): Include ifdef MSDOS.
4566 (time.h, sys/types.h): Always include (even if MSDOS).
4567 (stat): Fix prototype.
4569 Fri Mar 10 11:30:38 1995 Ian Lance Taylor <ian@cygnus.com>
4571 * configure.in (i[345]86-*-go32): Compile with -DNO_EXEC.
4573 Mon Feb 27 18:00:39 1995 Jim Wilson <wilson@chestnut.cygnus.com>
4575 * libc/machine/h8500/psi.S (EXTPSIHI_RN_SN): Ifdef out.
4577 Mon Feb 13 16:10:03 1995 Ian Lance Taylor <ian@cygnus.com>
4579 * libc/include/regdef.h: New file.
4580 * libc/machine/mips/machine/regdef.h: New file.
4582 Mon Feb 6 15:24:29 1995 Doug Evans <dje@canuck.cygnus.com>
4584 * libc/sys/sparc64/sys/fcntl.h (open): Add ellipsis.
4586 Fri Jan 27 13:52:10 1995 Steve Chamberlain <sac@splat>
4588 * libc/sys/sh/crt0.S: Pass main's return to exit.
4589 * libc/sys/sh/trap.S: Put errno in the right place.
4591 Tue Jan 24 18:57:56 1995 Ian Lance Taylor <ian@sanguine.cygnus.com>
4593 * libm/math/e_rem_pio2.c (__ieee754_rem_pio2): Integrate change
4594 from fdlibm 5.2: handle |x| < 3pi/4 more efficiently.
4595 * libm/math/ef_rem_pio2.c: Likewise.
4596 * libm/math/e_log10.c: Remove unused static one.
4597 * libm/math/ef_log10.c: Likewise.
4598 * libm/math/s_frexp.c: Likewise.
4599 * libm/math/sf_frexp.c: Likewise.
4601 Sun Jan 22 21:26:14 1995 Steve Chamberlain <sac@splat>
4603 * libc/sys/go32/Makefile.in, clock.S, dir.c, setjmp.S, stat.c,
4604 longjmp.S: Upgraded.
4605 * libc/sys/go32/sys/setjmp.h: Upgraded.
4606 * libc/sys/go32/sys/go32.h, dpmi.h: New files.
4608 Fri Jan 20 18:33:18 1995 Ian Lance Taylor <ian@sanguine.cygnus.com>
4610 * configure.in: Add many entries to multidirs for mips targets.
4612 Wed Jan 18 10:19:25 1995 J.T. Conklin <jtc@rtl.cygnus.com>
4614 * libm/math/e_jn.c (__ieee754_yn): Integrate change from fdlibm
4615 5.2 which fixes bug where jn(-1,x) is three times larger than
4617 * libm/math/ef_jn.c (__ieee754_ynf): Likewise.
4619 Sun Jan 15 21:48:58 1995 Steve Chamberlain <sac@splat>
4621 * libc/sys/w65/sys/syscalls.h: New file
4622 * libc/include/machine/ieeefp.h: W65 support.
4623 * libc/include/sys/config.h: Ditto.
4624 * libc/machine/w65/Makefile.in, cmpsi, divsi3, lshrhi.s, mulsi3.c,
4625 sdivhi3.s, smulhi3.s, udivhi3.s, umodhi3.s: New files.
4626 * libc/sys/w65/Makefile.in, crt0.c, syscalls.c, trap.c: New files.
4628 Wed Jan 11 15:59:01 1995 Ian Lance Taylor <ian@sanguine.cygnus.com>
4630 * libc/sys/Makefile.in (lib.a, crt0.o): Depend upon subs.
4632 Tue Jan 3 15:57:03 1995 Rob Savoye <rob@darkstar.cygnus.com>
4634 * Makefile.in, configure.in: Remove any references to the old
4637 Thu Dec 22 10:42:08 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
4639 * libc/syscalls/sysopen.c: Write _HAVE_STDC version of open, which
4640 uses ... in prototype.
4643 Wed Nov 30 08:39:42 1994 Ian Lance Taylor <ian@rtl.cygnus.com>
4645 * libc/sys/a29khif/sys/libconfig.h: Remove.
4646 * libc/sys/go32/sys/libconfig.h: Remove.
4647 * libc/sys/sun4/sys/libconfig.h: Remove.
4648 * libc/sys/sysvi386/sys/libconfig.h: Remove.
4649 * libc/sys/sysvnecv70/sys/libconfig.h: Remove.
4650 * libc/sys/sparc64/sys/libconfig.h: Remove.
4652 * libc/include/_ansi.h (_FLOAT_ARG, _FLOAT_RET): Don't define.
4653 * libc/include/sys/config.h (_FLOAT_ARG, _FLOAT_RET): Likewise.
4654 * libc/include/math.h: Change all uses of _FLOAT_RET and
4655 _FLOAT_ARG to float.
4656 * libm/test/math.c: Likewise.
4657 * testsuite/libm.sac/math.c: Likewise.
4658 * testsuite/libm.sac/working/math.c: Likewise.
4660 Wed Nov 23 22:39:28 1994 Steve Chamberlain (sac@jonny.cygnus.com)
4662 * libc/sys/sh/trap.s,crt0.s,setjmp.s: Renamed with .S so that
4663 gcc calls gas with endian option.
4664 * configure.in (sh): Build little endian version too.
4666 Wed Nov 16 18:21:45 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
4668 * configure.in: Configure big and little endian versions for MIPS
4671 Sat Nov 12 21:12:51 1994 Doug Evans <dje@canuck.cygnus.com>
4673 * libc/include/limits.h: Deleted.
4674 * libc/include/machine/limits.h: Deleted.
4676 Thu Nov 10 15:32:44 1994 Rob Savoye <rob@rtl.cygnus.com>
4678 * ChangeLog: Remove stub directory. This has all been rewritten
4679 and moved to devo/libgloss.
4681 Thu Sep 29 18:31:04 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
4683 * Makefile.in (dvi): Add to info target, use $@ in sub make.
4684 (docs): Merge into info target.
4685 * libm/Makefile.in (dvi): Add $(srcdir).
4686 * libm/math/Makefile.in (chobjs): Remove underscores from file
4687 names. Texinfo doesn't like them.
4688 (wacos.def, ...): Add explicit targets for all .def files.
4689 * libm/math/math.tex: Remove underscores from @include file names.
4690 * doc/Makefile.in (dvi): Add dummy target.
4691 * testsuite/Makefile.in (dvi): Add dummy target.
4693 Mon Sep 26 21:17:46 1994 Doug Evans (dje@canuck.cygnus.com)
4695 * Makefile.in (VERSION): Define. For net newlib releases.
4697 Thu Sep 22 19:01:26 1994 Doug Evans (dje@canuck.cygnus.com)
4701 Mon Sep 19 16:35:23 1994 Jim Wilson (wilson@sphagnum.cygnus.com)
4703 * libc/stdlib/ecvtbuf.c (_gcvt): Undo last change.
4705 Mon Sep 19 11:44:23 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
4707 * libc/stdlib/setenv.c (_findenv): Declare.
4709 * libc/include/sys/fcntl.h: Fix declarations of open, creat, and
4710 fcntl to not use _EXFUN, and change string parameters to open and
4711 creat to be ``const char *''.
4712 * libc/sys/sparc64/sys/fcntl.h: Likewise.
4713 * libc/sys/sparc64/creat.c (creat): Make PATH const.
4714 * libc/syscalls/sysopen.c: Include <fcntl.h>.
4715 (open) Make _FILE const.
4716 * libc/sys/z8ksim/glue.c (_open): Make BUF const.
4717 (_creat): Make PATH const.
4718 * libc/sys/h8300hms/syscalls.c (_open): Make PATH const.
4719 * libc/sys/h8500hms/syscalls.c (_open): Likewise.
4720 * libc/sys/m88kbug/syscalls.c (open): Likewise.
4721 * libc/sys/sh/syscalls.c (_open): Likewise.
4722 * stub/shared/glue.c (open): Make BUF const.
4723 * stub/ex93x/syscalls.c (open): Make FILENAME const.
4725 Thu Sep 8 16:39:12 1994 Steve Chamberlain (sac@jonny.cygnus.com)
4727 * libc/include/errno.h: Add ENMFILE
4728 * libc/include/sys/config.h: Support Z8000.
4729 * libc/include/sys/signal.h: New signals for go32.
4730 * libc/machine/h8500/psi.S (__addpsir0r0): New function
4731 * libc/machine/h8500/cmpsi.S (__ucmppsi2): New function
4732 * libc/machine/sh/sdivsi3.s (__sdivsi3): Rewritten.
4733 * libc/stdlib/mallocr.c (_morecore_r): Minimum chunk
4734 size is variable, depending upon CHUNK_POWER.
4735 * libc/sys/go32/*.c: Upgrade to new go32 stuff.
4737 Sun Sep 4 17:42:43 1994 Jim Wilson (wilson@sphagnum.cygnus.com)
4739 * libc/stdlib/ecvtbuf.c (_gcvt): Output '-' for negative numbers.
4741 Fri Sep 2 10:56:01 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
4743 * libc/include/_ansi.h (_PARAMS): Don't define if already defined.
4745 Wed Aug 24 11:11:03 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
4747 * configure.in: Change i[34]86 to i[345]86.
4749 * libc/include/math.h: Don't define HUGE_VAL if it is already
4752 Wed Aug 17 15:18:02 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
4754 * testsuite/libm.sac/test_erfc.c: Correct some result values.
4755 * testsuite/libm.sac/test_gammaf.c: Likewise.
4756 * testsuite/libm.sac/test_sin.c: Likewise.
4757 * testsuite/libm.sac/test_tanh.c: Likewise.
4759 Tue Aug 16 16:12:53 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
4761 * libc/include/machine/ieeefp.h: Don't try set endianness if it is
4762 already set. Define typedefs __int32_t and __uint32_t.
4763 * libc/include/math.h: Include <machine/ieeefp.h>.
4764 (union __dmath): Use __uint32_t.
4765 * libm/math/fdlibm.h, libm/math/*.c: Use __int32_t and __uint32_t
4766 instead of int and unsigned int.
4768 Thu Aug 11 15:16:09 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
4770 Replace the math library with the SunPRO fdlibm package.
4771 * libm/math: Completely changed all files.
4772 * libm/ieeefp: Remove contents and directory.
4773 * libm/Makefile.in (LIBM_FP_LIB): Remove.
4774 (SUBDIRS): Just set to math/lib.a.
4775 * libm/libm.texinfo: Updated for new library.
4776 * libc/include/math.h: Extensive changes for new math library.
4777 * libc/include/ieeefp.h (isnanf, isinff, finitef): Change argument
4778 from _FLOAT_ARG to float.
4779 (maxpowtwo, maxpowtwof): Don't declare.
4780 * configure.in (fp_dir): Removed; was always ieeefp anyhow.
4781 (libm_fp_lib): Removed.
4782 * Makefile.in (MATHOBJS_IN_LIBC): Updated with new file names.
4783 * testsuite/libm.paranoia/Makefile.in (check): Correct --srcdir
4784 argument to ${RUNTEST}.
4785 * testsuite/libm.sac/Makefile.in (LOCAL_CFLAGS): Define.
4787 (RUNTESTFLAGS): Set CC and CFLAGS.
4788 (TESTS): Remove test_log2 and test_log2f.
4789 (${TESTS}): Pass ${LOCAL_CFLAGS}, not ${CFLAGS}.
4790 * testsuite/libm.sac/math.c (run_vector_1): Use float, not
4791 _FLOAT_ARG, for single precision argument type.
4792 * testsuite/libm.sac/sac.exp: Treat an error in bit 63 as an
4793 expected failure. Close the input pipe.
4794 * testsuite/libm.sac/test.c (test_sok, test_iok, test_scok):
4795 Correct misspelling of inaccurate.
4796 (test_mok): Use ``inaccurate'', not ``wrong''.
4797 * testsuite/libm.sac/{test_acos.c, test_acosh.c, test_asin.c,
4798 test_asinh.c, test_atan.c, test_atanh.c, test_ceil.c,
4799 test_ceilf.c, test_cos.c, test_cosh.c, test_erf.c, test_erf.c,
4800 test_fabs.c, test_floor.c, test_floorf.c, test_fmod.c,
4801 test_fmodf.c, test_gamma.c, test_log1p.c, test_log1pf.c,
4802 test_yn.c): Correct many result values. Many are still wrong.
4804 * libc/stdlib/ecvtbuf.c (print_e): If _dtoa_r sets decpt to 9999,
4805 just copy the string.
4806 (_gcvt): Always return the buffer.
4808 Tue Aug 9 13:43:23 1994 J.T. Conklin (jtc@phishhead.cygnus.com)
4810 * bcopy.c: fixed documentation, bcopy was not specified by ANSI.
4812 Wed Aug 3 05:39:41 1994 D. V. Henkel-Wallace (gumby@cygnus.com)
4814 * libc/include/sys/reent.h: (struct _Bigint): add _reclaim
4816 (struct _reent): add _p5s, _cvtlen, _cvtbuf.
4817 (_reclaim_reent): declare new entry point.
4818 * libc/reent/reent.c (cleanup_glue, _reclaim_reent): new
4821 * libc/stdlib/mprec.c (Balloc): Keep track of every struct bigint
4822 ever allocated, so that we can later reclaim them all.
4823 (pow5mult): make reentrant.
4825 * libc/stdlib/ecvtbuf.c (fcvtbuf, ecvtbuf): extend these functions
4826 so that when given NULL as a buffer, return a pointer to static
4827 space in the rent structure. This is not documented behaviour;
4828 it's only to support ecvt and fcvt, which aren't ANSI anyway.
4829 * libc/stdlib/efgcvt.c (fcvt, ecvt) Use new functionality (and
4830 therefore become reentrant).
4832 * libc/stdlib/dtoastub.c: remove spurious inclusion of mprec.h.
4834 Mon Aug 1 16:52:24 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
4836 * libc/include/machine/ieeefp.h: Check _AM29K, not ___AM29K__.
4838 Thu Jul 28 15:40:21 1994 J.T. Conklin (jtc@phishhead.cygnus.com)
4840 * Makefile.in: Make link to libg.a after libc.a; this is needed
4841 for the testsuites to build executables when everything comes
4844 Mon Jun 27 17:14:29 1994 Bill Cox (bill@rtl.cygnus.com)
4846 * libc/Makefile.in: Add a VERSION variable so we can keep track.
4847 * libm/Makefile.in: Add a VERSION variable so we can keep track.
4849 Wed Jun 22 10:26:00 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
4851 * libc/include/stdio.h: Use __VALIST, not va_list.
4853 Tue May 17 15:43:28 1994 Bill Cox (bill@rtl.cygnus.com)
4855 * testsuite/config/unix-libm.exp, testsuite/lib/libm.exp,
4856 testsuite/libm.sac/execute.exp:
4857 Replace error proc calls with perror calls.
4859 Wed May 11 09:25:28 1994 Doug Evans (dje@canuck.cygnus.com)
4861 * libc/include/*.h: #include "_ansi.h" instead of <_ansi.h>.
4862 * libc/include/time.h: #define NULL as 0L.
4864 Mon May 9 18:41:20 1994 Doug Evans (dje@canuck.cygnus.com)
4866 * host/any (INCLUDES): Delete -I of gcc/include, gcc -B takes
4869 Mon May 9 18:39:39 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4871 * libc/include/sys/signal.h: Check for __GO32__, not __i386__ and
4874 Sat May 7 17:07:36 1994 Steve Chamberlain (sac@cygnus.com)
4876 * configure.in (TARGET_CFLAGS): Set -O2 as default.
4877 (z8k-*-*): Use syscalls fake sys dir.
4878 * libc/sys/z8k/glue.c: Rename syscalls.
4879 * libc/sys/go32/Makefile.in: Use new routines.
4880 * libc/machine/Makefile.in: Fix typo in ln stuff.
4882 Thu May 5 13:47:48 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4884 * Makefile.in (libm.a, crt0.o): Use cp if ln fails.
4885 * libc/Makefile.in (crt0.o): Likewise.
4886 * libc/machine/Makefile.in (lib.a): Likewise.
4887 * libc/sys/Makefile.in (lib.a, crt0.o): Likewise.
4889 All Makefile.in files: Added mostlyclean, realclean and distclean
4892 * Makefile.in: Don't bother to unexport XTRAFLAGS or
4893 XTRAFLAGS_FOR_TARGET, since they are no longer passed down from
4894 the top level Makefile.
4896 Tue Apr 26 15:10:34 1994 Doug Evans (dje@canuck.cygnus.com)
4898 * libc/sys/sparc64/sys/stat.h: New file.
4899 * libc/sys/sparc64/sys/time.h: New file.
4900 * libc/sys/sparc64/sys/types.h: New file.
4902 Fri Apr 22 12:58:24 1994 Stan Shebs (shebs@andros.cygnus.com)
4904 * stub/ex93x/crt0.s (start): Add code to clear bss.
4906 Wed Apr 13 10:34:58 1994 Doug Evans (dje@canuck.cygnus.com)
4908 * libc/include/sys/types.h (time_t): Properly protect inside
4909 #ifndef __time_t_defined.
4911 * libc/stdio/fileno.c: New file.
4912 * libc/stdio/Makefile.in (OFILES, CHEWOUT_FILES): Add fileno.
4913 (fileno.o): Add dependency.
4914 * libc/include/stdio.h (__sgetc): Rename never to _never.
4915 (fileno macro): Disable, needs to do CHECK_INIT first.
4917 Mon Apr 11 17:37:09 1994 Bill Cox (bill@rtl.cygnus.com)
4919 * testsuite/Makefile.in (EXPECT, RUNTEST): Set these for the check
4922 * testsuite/Makefile.in (check): Set TCL_LIBRARY for runtest.
4923 * testsuite/libm.paranoia/Makefile.in (check): Set TCL_LIBRARY for
4925 * testsuite/libm.sac/Makefile.in (check): Set TCL_LIBRARY for
4928 Sat Apr 9 16:18:09 1994 Doug Evans (dje@cygnus.com)
4930 * libc/sys/sparc64/sys/fcntl.h: New file, define solaris versions
4931 of the various constants.
4933 Thu Apr 7 21:19:07 1994 Mark Eichin (eichin@cygnus.com)
4935 * libc/include/math.h: #ifndef __math_68881 around things which
4936 conflict with the (gcc-provided) inline functions in
4937 gcc/ginclude/math-68881.h.
4939 Thu Apr 7 02:50:43 1994 Doug Evans (dje@cygnus.com)
4941 * libc/include/_syslist.h (_gettimeofday): Define.
4943 * libc/include/reent.h: #include <machine/types.h> to get _CLOCK_T_.
4944 (struct tms, timeval, timezone): Declare.
4945 (_gettimeofday_r, _times_r): Declare.
4946 * libc/include/time.h (_CLOCK_T_): Don't #undef. Remove
4947 #ifdef _CLOCK_T_ surrounding definition of clock_t.
4948 (time_t): Add multiple definition protection, __time_t_defined.
4949 * libc/include/sys/time.h: Don't #include <time.h>.
4950 Always define struct timezone (remove #ifndef _TIME_H_).
4951 * libc/include/sys/times.h (_CLOCK_T_): Don't #undef. Remove
4952 #ifdef _CLOCK_T_ surrounding definition of clock_t.
4953 * libc/reent/Makefile.in (OFILES): Add timer.o.
4954 (CHEWOUT_FILES): Add timer.def. Add timer.o/timer.c dependence.
4955 * libc/reent/timer.c: New file.
4956 * libc/time/clock.c: #include <reent.h>.
4957 (clock): Call _times_r instead of times.
4958 * libc/time/time.c (HAVE_GETTIMEOFDAY): Renamed from
4959 HAVE_GET_TIME_OF_DAY.
4960 Add comment regarding supporting OS routine(s) required (for docs).
4962 (time): Call _gettimeofday_r instead of gettimeofday.
4963 * libc/time/asctime.c: Fix comment regarding supporting OS routines.
4964 * libc/time/ctime.c: Ditto.
4965 * libc/time/strftime.c: Ditto.
4966 * libc/sys/sparc64/Makefile.in (TEMPLATE_SFILES): Remove gettimeofday.
4967 (TEMPLATE_SFILES_R): Define here. Also define times.
4968 Add times_r.o/times.S dependence.
4969 (time2.c, junk.c): Deleted.
4970 * libc/sys/sparc64/time2.c: Deleted.
4971 * configure.in (sparc64-*-*): Define HAVE_GETTIMEOFDAY.
4973 * libc/stdio/mktemp.c (_getpid_r): Renamed from _getpid.
4974 * libc/stdio/tmpnam.c (_getpid_r): Ditto.
4975 * libc/sys/sparc64/junk.c: Deleted.
4977 Mon Mar 21 16:51:03 1994 Doug Evans (dje@canuck.cygnus.com)
4979 * libc/sys/sparc64/Makefile.in: Add times syscall.
4980 * libc/sys/sparc64/crt0.S: Handle stack bias at run time so we can
4981 be used with and without it. Add comment clarifying Medium/Anywhere
4983 * libc/sys/sparc64/sigsetjmp.S (setjmp, longjmp): Add svr4 support.
4984 * libc/sys/sparc64/sys/syscall.h (SYS_times): Define for sunos4
4987 Sun Mar 20 15:51:47 1994 Doug Evans (dje@cygnus.com)
4989 * configure.in (target_cflags): Move init.
4990 (sparc64-*-*): Define HAVE_BLKSIZE.
4992 Wed Mar 9 10:44:52 1994 Doug Evans (dje@canuck.cygnus.com)
4994 * libc/include/sys/_types.h: New file.
4995 * libc/include/reent.h: #include it.
4996 Add comment describing REENTRANT_SYSCALLS_PROVIDED and
4997 MISSING_SYSCALL_NAMES.
4999 * libc/include/_syslist.h: Remove _raise.
5000 * libc/reent/signalr.c: New file.
5001 * libc/reent/Makefile.in: Compile it.
5002 * libc/signal/signal.c: Only use ifdef SIMULATED_SIGNALS.
5003 Add doc for raise and _raise_r.
5004 * libc/signal/raise.c: Only use ifndef SIMULATED_SIGNALS.
5005 (raise): Call _raise_r.
5006 (_raise_r): Call _getpid_r and _kill_r.
5007 * libc/stdlib/abort.c: Remove inclusion of stdio.h and _syslist.h.
5008 (abort): Loop forever calling raise and _exit.
5010 Mon Mar 7 14:40:08 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5012 * configure.in: Remove extraneous echo.
5014 Thu Mar 3 12:14:22 1994 Doug Evans (dje@canuck.cygnus.com)
5016 * libc/sys/sparc64/sys/dirent.h (MAXNAMLEN): #undef to avoid
5017 collision with unistd.h, and fix for svr4.
5019 Wed Mar 2 13:55:25 1994 Doug Evans (dje@canuck.cygnus.com)
5021 * libc/stdio/local.h (_llicvt): Declare.
5022 (CVT_BUF_SIZE): Define (and buffer size from 512 to 128).
5023 * libc/stdio/cvt.c: Include "local.h" to get CVT_BUF_SIZE.
5025 (_sicvt): Fix function header (`value' is short).
5026 * libc/stdio/vfprintf.c (_vfprintf_r): Use CVT_BUF_SIZE.
5027 Add printing of long long's support.
5028 Add printing of 8 byte pointer support.
5030 Fri Feb 11 21:52:11 1994 Steve Chamberlain (sac@sphagnum.cygnus.com)
5032 * libc/sys/sh/syscalls.c (pipe, execv, wait, fork, utime, chown,
5033 stat, chmod): New hooks.
5034 (sbrk): Abort if stack and heap collide.
5035 * libc/machine/sh/udivsi3, libc/machine/sh/sdivsi3 Modified to
5036 shortcut when given small args.
5037 * libc/machine/sh/setjmp.s: Rewritten.
5038 * libc/machine/sh/strcmp.s (strcmp): New function takes advantage
5039 of cmp/str instruction.
5041 Wed Feb 9 15:12:35 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5043 * configure.in: Accept powerpc* as a CPU type, using fp_dir ieeefp
5044 and machine_dir powerpc.
5045 * libc/include/machine/setjmp.h, libc/include/machine/ieeefp.h:
5046 Add cases for __powerpc__.
5047 * libc/machine/powerpc/Makefile.in, libc/machine/powerpc/setjmp.S:
5050 * libc/include/stdio.h (_iprintf_r): Declare correctly.
5052 Thu Jan 27 10:36:27 1994 Steve Chamberlain (sac@cygnus.com)
5054 * libc/stdlib/callocr.c: New file with _calloc_r in it.
5055 * libc/stdlib/calloc.c (calloc_r): Now in callocr.c
5057 Thu Jan 20 15:14:37 1994 Doug Evans (dje@canuck.cygnus.com)
5059 * libc/stdlib/ecvtbuf.c (print_f): Remove local "done".
5060 (print_e): More comments to describe args, etc.
5061 "type" arg may now be 'g' or 'G' for %g/G format --> remove
5063 (_gcvt): Remove locals decpt, sign, end, p, done.
5064 More comments for print_e invocation.
5065 Pass "type" to print_e as is (g/G).
5067 Wed Jan 19 16:34:18 1994 Rob Savoye (rob@darkstar.cygnus.com)
5069 * stub/shared/m68k-crt0.S: Changed so it compiles (and runs) on a
5072 Mon Jan 17 15:41:53 1994 Doug Evans (dje@canuck.cygnus.com)
5074 * libc/stdlib/mallocr.c (_morecore_r): Fix aligning of pointer so it
5075 works with any sized pointer, including ones bigger than ints and
5078 Thu Jan 6 14:53:21 1994 Doug Evans (dje@canuck.cygnus.com)
5080 * libc/sys/sparc64/{time2.c,utime.S,utime2.c}: New files.
5082 Sat Dec 11 16:17:20 1993 Steve Chamberlain (sac@thepub.cygnus.com)
5084 * libc/include/stdlib.h (_calloc_r): Add prototype.
5085 * libc/machine/h8500/negsi2.c: New file.
5086 * libc/machine/h8500/divsi3.c: Prevent overflow when dividing v
5087 large unsigned numbers.
5088 * libc/machine/h8500/cmpsi.c: Add cmppsi.
5089 * libc/stdlib/mallocr.c (morecore_r): Fix aligning pointers so it
5090 works when sizeof(size_t) != sizeof(char *).
5091 * libc/stdlib/mprec.c (Balloc): Call calloc rather than malloc to
5093 * libc/stdlib/mprec.h: Define Just_16 if generating for z8000.
5095 Mon Dec 6 15:59:53 1993 Doug Evans (dje@rtl.cygnus.com)
5097 * libc/include/assert.h (assert): Handle -traditional.
5099 Tue Nov 16 15:49:24 1993 Mark Eichin (eichin@cygnus.com)
5101 * Makefile.in: added ; after every "fi" and "done" that wasn't at
5102 the end of a line (ie. anything before a backslash continuation)
5103 so that bash handles them.
5105 Tue Nov 16 12:31:57 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
5107 * libc/sys/go32/lstat.s: new file, copied from stat.s and renamed
5110 Mon Nov 15 15:50:43 1993 Steve Chamberlain (sac@jonny.cygnus.com)
5112 * libc/sys/sh/crt0.s, libc/sys/sh/trap.s,
5113 libc/machine/sh/sdivsi3.s, libc/machine/sh/setjmp.s,
5114 libc/machine/sh/udivsi3.s: Use new calling convention.
5116 Mon Nov 15 15:25:38 1993 Mark Eichin (eichin@cygnus.com)
5118 * libc/include/sys/unistd.h, libc/include/sys/stat.h: ANSI-fy
5119 chmod, access, chdir, chown by making _path const. Also fix _amode
5122 Fri Nov 12 20:25:28 1993 Mark Eichin (eichin@cygnus.com)
5124 * libc/sys/a29khif/_tmpnam.s (_tmpnam): renamed function to
5125 _khif_tmpnam, because it doesn't comply with ANSI but may be
5126 useful anyway. Real tmpnam was already in libc/stdio, and was
5127 colliding with this one (pr 2176.)
5128 * libc/sys/a29khif/stubs.s (tmpnam): removed tmpnam. This file is
5129 the wrong idea anyhow.
5131 Mon Nov 8 07:50:16 1993 Doug Evans (dje@canuck.cygnus.com)
5133 * configure.in: Remove h8300h, we have multilib now.
5135 Fri Nov 5 12:37:27 1993 Mark Eichin (eichin@cygnus.com)
5137 * libc/string/strcasecmp.c, libc/string/strncasecmp.c: new
5138 functions, to get preference over the ones in libiberty (since we
5139 provide correct declarations in <string.h>.
5140 * libc/string/Makefile.in: add support for strncasecmp,
5143 Fri Nov 5 09:05:45 1993 D. V. Henkel-Wallace (gumby@blues.cygnus.com)
5145 * Change netware config not to look for cpu explicitly.
5147 Thu Nov 4 14:21:25 1993 Doug Evans (dje@canuck.cygnus.com)
5149 * libc/sys/sparc64/{creat.c,junk.c}: New files.
5150 * libc/sys/sparc64/Makefile.in: Add dependencies.
5152 Wed Nov 3 10:42:49 1993 Doug Evans (dje@canuck.cygnus.com)
5154 * configure.in: Clean up v9 a bit, new "os" aoutv8.
5156 Tue Nov 2 10:00:44 1993 D. V. Henkel-Wallace (gumby@cygnus.com)
5158 * libc/include/sys/reent.h: make structure smaller by allocating
5159 some stuff when needed.
5160 * libc/signal/signal.c: allocate as needed
5161 * libc/stdio/findfp.c,stdio/local.h: ditto
5162 * libc/stdlib/mprec.c: ditto
5164 * libc/time/localtime.c: don't return a dangling stack ptr.
5166 Wed Sep 29 20:42:34 1993 Rob Savoye (rob@darkstar.cygnus.com)
5168 * stub/mvme135/crt0.S, stub/mvme135/glue.c: Moved to stub/generic.
5170 Wed Sep 29 16:27:49 1993 K. Richard Pixley (rich@sendai.cygnus.com)
5172 * libc/include/stdio.h (__sputc): comment out static inline which
5173 confuses coff toolchains.
5175 Thu Sep 2 16:31:36 1993 Mark Eichin (eichin@cygnus.com)
5177 * libc/sys/a29khif/{_close.s, _fstat.s, _lseek.s, _sbrk.s,
5178 _write.s, getpid.c, kill.c, read.s}:
5179 * libc/sys/a29khif/stubs.s: eliminated stubs that already go
5180 through the syscalls directory.
5182 Fri Oct 29 13:59:58 1993 Jeffrey Wheat (cassidy@cygnus.com)
5184 * configure.in: fixed double quote gotcha.
5186 Wed Oct 27 15:27:09 1993 Rob Savoye (rob@darkstar.cygnus.com)
5188 * stub/ex931: stub library for sparclite board.
5189 * stub/idp: Renamed from mc68ec. Added contructor table
5190 stuff to linker script.
5191 * stub/mvme135: Renamed from m68kmvme. Added contructor table
5192 stuff to linker script.
5194 Tue Oct 26 17:01:23 1993 K. Richard Pixley (rich@sendai.cygnus.com)
5196 * configure.in: Configure testsuites only if they exist.
5198 Tue Oct 26 12:37:11 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5200 * configure.in: Don't set machine_dir for i386 until there is
5201 something in libc/machine/i386 to compile. For i[34]86-*-netware*
5202 use sys/netware, don't use signal, define NO_EXEC, ABORT_PROVIDED,
5203 CLOCK_PROVIDED and MALLOC_PROVIDED.
5205 * libc/sys/netware: New directory. Contains simplistic and
5206 probably incorrect stubs for NetWare. Should be enough to load
5208 * libc/sys/netware/crt0.c, libc/sys/netware/environ.c,
5209 libc/sys/netware/getpid.c, libc/sys/netware/link.c: New NetWare
5212 * libc/reent/execr.c: Don't use if NO_EXEC is defined.
5213 * libc/reent/sbrkr.c: Don't use if MALLOC_PROVIDED is defined.
5214 * libc/stdlib/abort.c: Don't use if ABORT_PROVIDED is defined.
5215 * libc/time/clock.c: Don't use if CLOCK_PROVIDED is defined.
5217 Mon Oct 25 16:48:08 1993 Roland H. Pesch (pesch@cygnus.com)
5219 * testsuite/Makefile.in: add "docs" dummy target for consistency
5220 with rest of newlib; turn "info" and "install-info" into dummy
5221 targets, since they wouldn't have worked. (Depended on
5222 nonexistent "doc" subdir.)
5224 Fri Oct 22 20:37:32 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
5226 * configure.in: handle mips* instead of mips
5228 Thu Oct 21 08:57:24 1993 Ian Lance Taylor (ian@cygnus.com)
5230 * libc/include/sys/dirent.h: New file. If it is not overridden by
5231 a version of libc/sys/*/sys/dirent.h, it includes the next
5232 <dirent.h> file in case there is one lurking somewhere.
5234 Fri Oct 15 14:17:40 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5236 * libc/stdlib/strtoul.c (_strtoul_r): Several changes for ANSI
5237 compliance, namely: Accept a minus sign. Consider a single 0 with
5238 a radix of 0 as being a conversion. Determine overflow correctly.
5239 If an overflow occurs, set *ptr to the end of the number, not the
5241 * lib/stdlib/strtol.c (_strtol_r): Determine overflow correctly.
5243 Thu Oct 14 21:49:52 1993 Doug Evans (dje@canuck.cygnus.com)
5245 * libc/machine/h8300/divsi3.S (divmodsi4): Fix h8300h case.
5247 Fri Oct 1 17:17:34 1993 Doug Evans (dje@canuck.cygnus.com)
5249 * Makefile.in (INSTALL): Use $srcrootpre.
5250 (crt0.o): Replace $< with $(CRT0_DIR)/$(CRT0), Sun make
5252 * libc/Makefile.in (crt0.o): Spell out $<, Sun make can't handle
5254 * libc/sys/Makefile.in (crt0.o, lib.a): Ditto.
5255 * stub/Makefile.in (crt0.o, TARGETLIB): Ditto.
5256 * libc/sys/sparc64/Makefile.in (isatty.o): Sun VPATH lossage.
5257 * libm/math/Makefile.in (matherr.o): Ditto.
5259 Thu Sep 30 11:09:17 1993 Steve Chamberlain (sac@phydeaux.cygnus.com)
5261 * configure.in: Build multidirs for z8k.
5262 * libc/include/stdlib.h (_strtoul_r): add prototype.
5263 * libc/include/machine/limits.h: Get INT_MIN right for all the z8k family.
5264 * libc/include/machine/setjmp.h: Add for z8k.
5265 * libc/machine/z8k/{mulsi.o, udivsi3.o, umodsi3.o, modsi3.o} obsolete.
5266 * libc/sys/z8ksim/glue.c: tidy up.
5268 Mon Sep 20 14:04:46 1993 Doug Evans (dje@canuck.cygnus.com)
5270 * libc/unix/{execl.c execle.c execlp.c execv.c execvp.c}:
5271 New files. Requires execve system call.
5272 * libc/unix/Makefile.in: Use them.
5273 * libc/sys/sparc64/{execl.c execle.c execlp.c execv.c execvp.c}:
5274 Deleted, moved to libc/unix.
5275 * libc/sys/sparc64/Makefile.in: Remove them.
5277 Mon Sep 20 10:38:32 1993 Doug Evans (dje@canuck.cygnus.com)
5279 * libc/sys/sparc64/{template.S template_r.S}: New files.
5280 * libc/sys/sparc64/Makefile.in: Build source for trivial syscalls
5282 * libc/sys/sparc64/{chdir.S chmod.S close.S dup.S fcntl.S
5283 fork.S fstat.S lseek.S link.S mkdir.S open.S pipe.S read.S rmdir.S
5284 umask.S unlink.S wait4.S write.S}: Removed, now built from
5287 Sun Sep 19 14:52:57 1993 Doug Evans (dje@canuck.cygnus.com)
5289 * libc/time/time.c: #include <_ansi.h>.
5291 Sun Sep 19 13:43:25 1993 Doug Evans (dje@canuck.cygnus.com)
5293 * configure.in (sparc64-*-*): Remove -D__SIZE_TYPE__.
5295 Mon Sep 13 13:52:16 1993 K. Richard Pixley (rich@sendai.cygnus.com)
5297 * configure.in: match m8* rather than m88k so that m88110 is
5300 Tue Sep 7 12:19:32 1993 Doug Evans (dje@canuck.cygnus.com)
5302 * libc/sys/h8300hms/{Makefile.in, _exit.c, misc.c}:
5303 Renamed exit.c to _exit.c to avoid collision with stdlib/exit.c.
5306 * configure.in: Add multilib support to h8300.
5308 Mon Sep 6 14:07:06 1993 Doug Evans (dje@canuck.cygnus.com)
5310 * libc/stdlib/abort.c (abort): Remove _VOLATILE from return type.
5311 * libc/include/_ansi.h (_ATTRIBUTE): New macro for __attribute__.
5312 * libc/include/stdlib.h (exit, abort): Add noreturn attribute.
5314 Mon Sep 6 14:24:18 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5316 * configure.in: Corrected multidirs for sparc target.
5318 Mon Aug 30 15:56:44 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5320 Support for building newlib multiple times with different
5322 * configure.in: Only configure doc at top level. Set multidirs
5323 when appropriate for target, unless not at top level. If
5324 multidirs is set, independently configure each subdirectory.
5325 Adjust TOP, MULTIDIRS and MULTISUBDIR appropriately in Makefile.
5326 * Makefile.in (MULTIDIRS, MULTISUBDIR): New variables,
5327 automagically set by configure.in.
5328 (all): If MULTIDIRS is set, build multiple copies of libraries.
5329 (install): If MULTIDIRS is set, install multiple copies of
5330 libraries. Install in $(tooldir)/lib/$(MULTISUBDIR). If
5331 MULTISUBDIR is set, don't bother to install header files.
5332 * host/any (INCLUDES, CHEW): Use $(SRCTOP) rather than $(TOP) from
5334 * stub/configure.in: Set MULTISUBDIR appropriately.
5335 * stub/Makefile.in (install): Install in
5336 $(tooldir)/lib/$(MULTISUBDIR).
5337 * All Makefile.in files: Define SRCTOP as well as TOP.
5339 Mon Aug 30 10:34:24 1993 Doug Evans (dje@canuck.cygnus.com)
5341 * libc/machine/h8300/{mulhi3.S, divhi3.S}: Comment out if h8300h.
5342 * libc/machine/h8300/{mulsi3.S, divsi3.S}: Add h8300h support.
5344 Thu Aug 26 19:38:12 1993 Doug Evans (dje@canuck.cygnus.com)
5346 * libc/sys/h8300hms/exit.c (_exit): New function.
5348 Wed Aug 25 16:31:48 1993 K. Richard Pixley (rich@sendai.cygnus.com)
5350 * configure.in: recognize m88110.
5352 Fri Aug 20 16:46:23 1993 K. Richard Pixley (rich@sendai.cygnus.com)
5354 * libc/sys/m88kbug/crt0.c: pretty up, remove extraneous comments,
5355 prototype main and call with args.
5357 Fri Jul 30 16:52:47 1993 K. Richard Pixley (rich@cygnus.com)
5359 First real try at system traps for m88k-bug.
5360 * libc/sys/m88kbug/syscalls.c: many changes. Convert from stubs
5362 * libc/sys/m88kbug/sys/systraps.h: new file.
5364 Tue Jul 27 16:31:16 1993 K. Richard Pixley (rich@sendai.cygnus.com)
5366 Patches to fix info building when target does not use sys
5368 * libc/Makefile.in (targetdep.tex): add sys.tex separately.
5369 * libc/sys.tex, libc/sys/sys.tex: moved from libc/sys/sys.tex to
5371 * libc/sys/Makefile.in (doc): do nothing.
5373 Mon Jul 26 17:08:11 1993 K. Richard Pixley (rich@sendai.cygnus.com)
5375 * libc/Makefile.in (CRT0): new macro.
5376 (all): depend on $(CRT0) rather than crt0.o.
5378 * configure.in: fix libc_sys_dir -> libc_sys_lib thinko.
5379 do not default crt0, instead, set crt0 and crt0_dir based on
5380 sys_dir and stub_dir.
5382 * Makefile.in (CRT0_DIR): new macro.
5383 (all): depend on $(CRT0) rather than crt0.o which may not exist.
5384 (crt0.o): depend on $(CRT0_DIR)/$(CRT0) rather than simply
5386 ($(CRT0)): recur by cd'ing into $(CRT0_DIR).
5388 Sun Jul 25 17:51:51 MDT 1993 Jeffrey Wheat (cassidy@cygnus.com)
5390 * testsuite/lib/libm.exp:
5391 added code to support compiling and linking of tests for
5392 libm.sac (paranoia to be added next) and processing the
5393 pass or failure of the tests.
5395 * testsuite/config/unix-libm.exp:
5396 platform specific proc's for dealing with compiler, linker
5397 and the way we execute and process the test results.
5399 * testsuite/libm.sac/execute.exp:
5400 generic framework for the sac tests. the config and lib
5401 expect code for specific platforms tie it all together.
5403 * testsuite/libm.sac/test_is.c:
5404 changed the output of the test to be consistant with the
5405 other tests. parsing of pass nad fail messages is now fixed.
5407 Fri Jul 23 19:20:07 1993 Per Bothner (bothner@kalessin)
5409 * libc/include/{assert.h, ctype.h, dirent.h, errno.h, fastmath.h,
5410 locale.h, math.h, pwd.h, reent.h, setjmp.h, signal.h, stdio.h,
5411 stdlib.h, string.h, termios.h, time.h, utime.h, utmp.h}: For C++:
5412 #ifdef __cplusplus, surround by extern ""C { ... }.
5413 * libc/include/assert.h: Do *not* protect assert.h against
5414 multiple inclusion! Also, #undef it before #define, to allow
5416 * libc/include/stdio.h (getlogin, cuserid): Removed. These
5417 should be only in unistd.h.
5419 * libc/include/sys/{fcntl.h, reent.h, stat.h, time.h, times.h,
5420 unistd.h}: For C++: #ifdef __cplusplus, surround by extern ""C {
5423 Fri Jul 23 10:15:33 1993 Doug Evans (dje@canuck.cygnus.com)
5425 * libc/machine/sparc/Makefile.in: Must create a library, even
5428 Wed Jul 21 16:00:37 1993 K. Richard Pixley (rich@sendai.cygnus.com)
5430 * configure.in: set machine_dir for m88k. edit crt0 definition
5433 * Makefile.in, libc/Makefile.in (crt0): pull up from lower directories.
5435 * libc/Makefile.in (all): also build crt0.o.
5437 * libc/machine/i386/Makefile.in, libc/machine/sparc/Makefile.in,
5438 libc/machine/z8k/Makefile.in, libm/Makefile.in (clean): no need
5441 * libc/machine/m88k/Makefile.in (TOP, TARGETLIB): removed.
5442 (all): reworked to build in place.
5443 (clean): remove lib.a
5444 (Makefile): remove redundant ./, call $(SHELL) rather than sh.
5446 * libc/sys/m88kbug/crt0.c (start): renamed to _start.
5447 (_start): key off edata rather than _start_bss.
5449 Wed Jul 21 14:29:47 1993 david d `zoo' zuhn (zoo@cygnus.com)
5451 * libc/include/sys/unistd.h, libc/include/reent.h,
5452 libc/reent/sbrkr.c: change sbrk to return void* instead of char*.
5454 Tue Jul 20 13:19:18 1993 K. Richard Pixley (rich@sendai.cygnus.com)
5456 * libm/Makefile.in, libc/Makefile.in ($(SUBDIRS)): dollar escape a dollar sign.
5458 * Makefile.in (libc.a): break into two rules, one for libc.a and
5459 one for libc/libc.a. Force subdirs current before rebuilding
5461 (libm.a): break into two rules, one for libm.a and one for
5462 libm/libm.a. Force subdirs current before rebuilding library.
5464 * libc/Makefile.in (SUBLIBS): fix typo.
5466 * libc/sys/Makefile.in (all): force descent into subdirs, then
5467 rebuild library iff out of of date.
5469 Fri Jul 16 17:47:57 1993 K. Richard Pixley (rich@sendai.cygnus.com)
5471 Rework so that library is built and then finished rather than
5472 being built on each invocation of make.
5474 * host/any (machine_dir, sys_dir, signal_dir): these are not
5475 shared and have been moved to their associated Makefile.in's.
5476 (AR_FLAGS): switch to qc which is faster.
5477 * configure.in: no longer assign machine_dir for m88k. set
5478 stub_dir, stub_lib, & crt0 for m68k*-unknown-{aout,coff}. If
5479 stub_dir set, then add to configdirs. add comment about silly
5481 (configdirs): drop stub. It will be added only
5483 (libm_fp_lib, libc_unix_lib, libc_signal_lib, libc_machine_lib,
5484 libc_sys_dir, fake_sys_dir, libc_fake_sys_lib, stub_dir,
5485 stub_lib, crt0): new variables for tailoring lower level
5486 makefiles. Assign accordingly and edit into makefiles.
5487 * libm/Makefile.in: updated copyright.
5488 (TARGETLIB): removed.
5489 (FLAGS_TO_PASS): removed TARGETLIB, machine_dir, sys_dir.
5490 (SUBDIRS): removed TARGETDEP_DIRS.
5491 (LIBM_FP_LIB, SUBLIBS): new macros.
5493 (force): new target to force rebuilds.
5494 (Makefile): call $(SHELL) rather than sh. drop redundant ./
5495 * libc/sys/a29khif/Makefile.in, libc/sys/decstation/Makefile.in,
5496 libc/sys/go32/Makefile.in, libc/sys/h8300hms/Makefile.in,
5497 libc/sys/h8500hms/Makefile.in, libc/sys/m88kbug/Makefile.in,
5498 libc/sys/sh/Makefile.in, libc/sys/sparc64/Makefile.in,
5499 libc/sys/sun4/Makefile.in, libc/sys/sysvi386/Makefile.in,
5500 libc/sys/sysvnecv70/Makefile.in, libc/sys/z8ksim/Makefile.in,
5501 stub/m68kmvme/Makefile.in: updated copyright.
5502 (TARGETLIB, TARGETCRT0, CRT0): macros removed.
5503 (all): reworked. made this the default rule.
5504 (clean): also remove lib.a.
5505 (Makefile): call $(SHELL) rather than sh. drop redundant ./
5506 * stub/Makefile.in: updated copyright.
5507 (TARGETLIB, TARGETCRT0, CRT0, TOP): removed.
5508 (stub_lib): new macro.
5509 (FLAGS_TO_PASS): removed TARGETLIB, stub_dir, TARGETCRT0. Added
5512 (clean, install): assume stub_dir exists.
5513 (Makefile): depend on configure.in. call $(SHELL) rather than
5514 sh. drop redundant ./
5515 * stub/configure.in (stublib): new macro, assign it, edit it into
5517 * Makefile, libc/Makefile.in, doc/Makefile.in, libc/sys/Makefile.in:
5520 (Makefile): call $(SHELL) rather than sh. drop redundant ./
5521 * libc/Makefile.in (TARGETCRT0): removed.
5522 (FLAGS_TO_PASS): dropped TARGETLIB, machine_dir, sys_dir,
5524 (SUBDIRS): drop TARGETDEP_DIRS.
5525 (LIBC_SIGNAL_LIB, LIBC_SYS_LIB, LIBC_MACHINE_LIB, LIBC_UNIX_LIB,
5526 LIBC_FAKE_SYS_LIB, SUBLIBS): new macros for configuration.
5527 (force): new target to force rebuilds.
5528 * libc/sys/Makefile.in (TARGETCRT0, sys_dir): removed.
5529 (FLAGS_TO_PASS): TARGETLIB, machine_dir, sys_dir, TARGETCRT0
5531 (clean): assume sys_dir always exists.
5532 * libm/test/Makefile.in (Makefile): call $(SHELL) rather than sh.
5534 * libc/ctype/Makefile.in, libc/errno/Makefile.in,
5535 libc/locale/Makefile.in, libc/machine/Makefile.in,
5536 libc/machine/a29k/Makefile.in, libc/machine/h8300/Makefile.in,
5537 libc/machine/h8500/Makefile.in, libc/machine/i386/Makefile.in,
5538 libc/machine/i960/Makefile.in, libc/machine/m68k/Makefile.in,
5539 libc/machine/mips/Makefile.in, libc/machine/necv70/Makefile.in,
5540 libc/machine/sh/Makefile.in, libc/machine/sparc/Makefile.in,
5541 libc/machine/z8k/Makefile.in, libc/reent/Makefile.in,
5542 libc/signal/Makefile.in, libc/stdio/Makefile.in,
5543 libc/stdlib/Makefile.in, libc/string/Makefile.in,
5544 libc/sys/Makefile.in, libc/syscalls/Makefile.in,
5545 libc/time/Makefile.in, libc/unix/Makefile.in,
5546 libm/ieeefp/Makefile.in, libm/math/Makefile.in: updated copyright.
5547 (TARGETLIB): removed.
5549 (clean): also remove lib.a.
5550 (Makefile): call $(SHELL) rather than sh. drop redundant ./
5551 * Makefile.in: (machine_dir, sys_dir, stub_dir, stub_lib, CRT0):
5553 (SUBDIRS): moved to follow frag inclusion, change stub to
5555 (FLAGS_TO_PASS): removed machine_dir, sys_dir, signal_dir which
5556 are now set in the libc Makefile.
5557 * libc/machine/Makefile.in (TARGETCRT0, machine_dir): removed.
5558 (FLAGS_TO_PASS): removed TARGETLIB, machine_dir, sys_dir,
5560 (force): new target to force rebuilds.
5561 * stub/configure.in: determine and set stub_lib for for Makefile.
5563 Thu Jul 15 12:01:27 1993 Doug Evans (dje@canuck.cygnus.com)
5565 * libc/sys/h8300hms/Makefile.in: Make `all' the default target.
5566 crt0.s renamed to crt0.S.
5567 * libc/sys/h8300hms/crt0.S: Add h8/300h support.
5569 * libc/machine/h8300/Makefile.in: Make `all' the default target.
5570 * libc/machine/h8300/{cmpsi.S,ucmpsi.S}: #ifdef out entire file if
5572 * libc/machine/h8300/defines.h: Add macros to handle pointers for
5573 h8300 (16 bits) and h8300h (32 bits).
5574 * libc/machine/h8300/{divsi3.S,mulsi3.S,memcpy.S,memset.S,
5575 reg_memcpy.S,reg_memset.S,strcmp.S}: Add h8300h support.
5577 Thu Jul 15 10:13:29 1993 Ian Lance Taylor (ian@cygnus.com)
5579 * libc/machine/m88k/setjmp.S, Makefile.in: New files; a simple
5580 implementation of setjmp and longjmp for the m88k.
5581 * libc/include/machine/setjmp.h: Added __m88000__ case.
5583 Wed Jul 14 10:10:30 1993 Doug Evans (dje@canuck.cygnus.com)
5585 * configure.in: Recognize h8300h as variant of h8300.
5587 Tue Jul 13 12:24:11 1993 Steve Chamberlain (sac@phydeaux.cygnus.com)
5589 * libc/include/sys/unistd.h (read, write): get prototypes right.
5590 (sbrk): New prototype.
5591 * libc/reent/sbrkr.c (sbrkr): Use correct sbrk prototype.
5592 * libc/stdio/local.h: Include unistd.h.
5593 * libc/machine/h8300/syscalls.c: Names have changed.
5595 Mon Jul 12 18:08:42 1993 K. Richard Pixley (rich@cygnus.com)
5597 * configure.in: add sys_dir assignment for m88k-bug.
5599 Thu Jul 8 09:16:21 1993 Doug Evans (dje@canuck.cygnus.com)
5601 * libc/sys/sparc64/sys/syscallasm.h: New macros to handle either
5603 * libc/sys/sparc64: all *.S files: Use new macros.
5604 * libc/sys/sparc64/isatty.c: New file.
5605 * libc/sys/sparc64/Makefile.in: Stop using /lib/libc.a for
5606 functions beyond what newlib provides.
5608 Thu Jul 8 09:11:28 1993 Doug Evans (dje@canuck.cygnus.com)
5610 * libc/include/sys/stat.h: Move st_atime so not doubly defined for
5613 Thu Jul 8 09:09:16 1993 Doug Evans (dje@canuck.cygnus.com)
5615 * libc/include/machine/ieeefp.h: Add support for h8/300h.
5617 Fri Jul 2 10:11:20 1993 K. Richard Pixley (rich@cygnus.com)
5619 * configure.in: add m88k.
5620 * libc/include/machine/ieeefp.h: add case for m88k. Also add
5621 sanity check so no one else need ever chase what I did to find
5624 * libm/math/Makefile.in (FAKEC): added atanf.c log1pf.c scalbnf.c.
5626 Fri Jul 2 09:15:21 1993 Ian Lance Taylor (ian@cygnus.com)
5628 * doc/makedoc.c: Include <ctype.h>.
5630 Wed Jun 30 09:35:06 1993 Doug Evans (dje@canuck.cygnus.com)
5632 * libc/Makefile.in (FLAGS_TO_PASS): Add TARGET_ASFLAGS.
5633 * libc/sys/Makefile.in (FLAGS_TO_PASS): Add TARGET_ASFLAGS.
5634 * libc/machine/Makefile.in (FLAGS_TO_PASS): Add TARGET_ASFLAGS.
5636 * libm/test/Makefile.in (all): Link with ../../lib[cm].a.
5638 Sun Jun 27 17:05:20 1993 Doug Evans (dje@sphagnum.cygnus.com)
5640 * libc/include/errno.h (ENOSYS): Added.
5642 * libc/unix/getpwd.c (getcwd): Fix typo (_up -> up).
5644 Mon Jun 21 09:03:32 1993 Steve Chamberlain (sac@phydeaux.cygnus.com)
5646 * libc/stdio/fflush.c (fflush): Check for reent struct
5648 * libc/stdio/fdopen.c (fdopen): Avoid namespace conflict.
5650 Fri Jun 18 16:06:05 1993 Mark Eichin (eichin@rtl.cygnus.com)
5652 * libc/stdlib/dtoastub.c: new file -- move user callable "dtoa"
5653 out of dtoa.c so it doesn't pollute the namespace.
5654 * libc/include/_syslist.h: new file -- mappings from _function to
5655 function, for systems where we can't win (by default, all of them,
5656 until we start updating system calls.)
5657 * libc/syscalls: new directory -- stubs for exporting _function
5658 names as unmodified function names.
5659 * libc/configure.in: add MISSING_SYSCALL_NAMES to enable
5660 _syslist.h on all platforms by default, but put hooks in for
5661 fake_sys_dir so we can include it when we've renamed the system
5663 * libc/reent/execr.c libc/reent/filer.c libc/reent/fstatr.c
5664 libc/reent/linkr.c libc/reent/sbrkr.c libc/reent/statr.c
5665 libc/signal/raise.c libc/signal/signal.c libc/stdio/fdopen.c
5666 libc/stdio/mktemp.c libc/stdio/tmpnam.c libc/stdlib/abort.c
5667 libc/stdlib/system.c libc/unix/getcwd.c libc/unix/getlogin.c
5668 libc/unix/getpass.c libc/unix/getut.c libc/unix/ttyname.c: change
5669 non ANSI functions to call _function.
5671 Wed Jun 9 09:48:26 1993 Ian Lance Taylor (ian@cygnus.com)
5673 * libc/stdlib/strtoul.c (_strtoul_r): Handle leading 0 correctly
5674 when base 16 is specified. Don't accept non-digits if radix > 10.
5676 Thu Jun 3 10:01:15 1993 Doug Evans (dje@canuck.cygnus.com)
5678 * libc/include/math.h: Rename xxx_r fns to _xxx_r.
5680 Wed Jun 2 16:54:16 1993 Jim Wilson (wilson@sphagnum.cygnus.com)
5682 * libc/include/sys/stat.h: Surround text after #endif with
5685 Wed Jun 2 12:47:32 1993 Ian Lance Taylor (ian@cygnus.com)
5687 * libc/stdlib/mallocr.c: If MALLOC_PROVIDED is defined, just make
5688 _malloc_r, _realloc_r, and free_r call the corresponding
5689 non-reentrant functions.
5691 * libm/math/modf.c (modf): We now take the address of ipart, so
5692 don't make it a register variable.
5694 Tue Jun 1 18:25:54 1993 Doug Evans (dje@canuck.cygnus.com)
5696 * libm/math/*: Rename all xxx_r fns to _xxx_r.
5698 Wed May 26 22:06:35 1993 Roland H. Pesch (pesch@cygnus.com)
5700 * libc/libc.texinfo and embedded docn throughout: formatting
5701 improvements, minor rephrasing for clarity, and improved
5704 Sun May 23 17:29:49 1993 Steve Chamberlain (sac@thepub.cygnus.com)
5706 * libm/ieeefp/infinity.c (maxpowtwof): Fix initialzation bug.
5708 * libc/stdio/cvt.c (_licvt): Print the right value on machines
5709 where sizeof(int) != sizeof(long).
5711 Fri May 21 22:09:32 1993 Roland H. Pesch (pesch@fowanton.cygnus.com)
5713 * libc/reent/execr.c, libc/reent/filer.c, libc/reent/linkr.c,
5714 libc/reent/sbrkr.c, libc/reent/statr.c, libc/stdio/tmpnam.c,
5715 libc/stdlib/atol.c, libc/stdlib/rand.c, libc/string/strpbrk.c,
5716 libc/string/strspn.c, libm/ieeefp/isnan.c, libm/math/bessel.c,
5717 libm/math/matherr.c: changes for better docn formatting (info).
5719 * libc/libc.texinfo, libc/ctype/ctype.tex, libc/locale/locale/tex,
5720 libc/reent/reent.tex, libc/signal/signal.tex,
5721 libc/stdio/stdio.tex, libc/stdlib/stdlib.tex,
5722 libc/string/strings.tex, libc/sys/sys.tex, libc/time/time.tex,
5723 libm/libm.texinfo, libm/ieeefp/ieeefp.tex, libm/math/math.tex: use
5724 makeinfo node defaulting to get better Info file node structure.
5725 (Requires recent sac change to doc/makedoc.c and doc/doc.str.)
5726 Also include a few formerly missing sections (subroutines).
5728 * doc/doc.str: delete fossil expansion for "func"
5730 * default.menu, no-signal.menu: delete.
5732 * Makefile.in, libc/Makefile.in, configure.in, host/any: simplify
5733 method used to adjust doc for missing "signals" chapter when
5734 signal_dir is empty.
5736 Thu May 20 21:38:37 MDT 1993 Jeffrey Wheat (cassidy@cygnus.com)
5738 * configure.in: added testsuite/libm.sac
5740 Wed May 19 14:52:34 1993 Doug Evans (dje@thepub.cygnus.com)
5742 * libc/sys/sparc64/crt0.S: Set %g4 to 0 (to test Medium/Anywhere
5745 Tue May 18 13:17:21 1993 Ian Lance Taylor (ian@cygnus.com)
5747 * libm/Makefile.in: Use $(MAKE) rather than make, and define
5748 MAKEOVERRIDES to be empty.
5750 Mon May 17 08:42:44 1993 Ian Lance Taylor (ian@cygnus.com)
5752 * configure.in: Don't build mips-*-* with -msoft-float, since that
5753 makes it incompatible with hard floating point.
5755 Mon May 17 00:03:35 MDT 1993 Jeffrey Wheat (cassidy@cygnus.com)
5757 * Makefile.in: added recursive 'make check'
5759 Thu May 13 16:24:18 MDT 1993 Jeffrey Wheat (cassidy@cygnus.com)
5761 * configure.in: added ./testsuite ./testsuite/libm.paranoia
5762 * ./testsuite/Makefile.in: created
5763 * ./testsuite/libm.paranoia: paranoia tests added
5765 Thu May 13 10:30:24 1993 Ian Lance Taylor (ian@cygnus.com)
5767 * configure.in: For mips-*-* set machine_dir to mips.
5769 * libc/machine/mips: New directory.
5770 * libc/machine/mips/Makefile.in: New file.
5771 * libc/machine/mips/setjmp.S: New file; simplistic MIPS version of
5773 * libc/include/machine/setjmp.h: Added __mips__ case.
5775 * libc/machine/lmips: Removed unused and useless directory.
5777 Mon May 3 10:22:31 1993 Ian Lance Taylor (ian@cygnus.com)
5779 * configure.in: Accept i486-*-sco* as well as i386-*-sco*.
5781 Thu Apr 15 15:16:44 1993 Doug Evans (dje@canuck.cygnus.com)
5783 * libc/sys/sparc64/crt0.S: Add comment (%g1 contains atexit arg at
5786 Fri Apr 9 13:32:26 1993 Ian Lance Taylor (ian@cygnus.com)
5788 * libc/include/machine/setjmp-dj.h: Use _SETJMP_DJ_H rather than
5791 Thu Apr 8 10:07:18 1993 Doug Evans (dje@canuck.cygnus.com)
5793 * libm/test/convert.c: structure member errno -> errno_val.
5794 Must include <errno.h> to use errno, it's a macro now.
5795 * libm/test/math.c: Ditto.
5796 * libm/test/math2.c: Include errno.h.
5797 * libm/test/string.c: Ditto.
5798 * libm/test/test.h: structure member errno -> errno_val.
5799 Remove extern int errno decl.
5801 Thu Apr 8 07:56:33 1993 Ian Lance Taylor (ian@cygnus.com)
5803 * libc/stdio/Makefile.in: Added dependencies on local header
5805 * libc/stdio/std.h, libc/stdio/vfprintf.h: Removed unused header
5808 Wed Apr 7 16:19:32 1993 Ian Lance Taylor (ian@cygnus.com)
5810 * libc/include/machine/ieeefp.h: Added __MIPSEB__ case.
5812 Wed Apr 7 10:55:21 1993 Doug Evans (dje@canuck.cygnus.com)
5814 * libc/stdio/siprintf.c libc/stdio/sscanf.c libc/stdio/vsprintf.c:
5817 * libc/stdio/vfprintf.c: No need to declare _icvt, _licvt, _sicvt.
5818 * libc/stdio/local.h: Add prototype for _licvt.
5820 * libc/stdio/ungetc.c (__submore): Use _malloc_r,_realloc_r
5821 instead of malloc,reealloc.
5823 * libc/stdlib/local.h: New file.
5824 * libc/stdlib/efgcvt.c: #include local.h.
5825 (gcvt): Fix call to _gcvt.
5826 * libc/stdlib/ecvtbuf.c: #include local.h.
5828 * libc/stdlib/Makefile.in: new files mallocr.c mstats.c.
5829 * libc/stdlib/mallocr.c mstats.c malloc.h: New files.
5830 * libc/stdlib/malloc.c: main routines moved to mallocr.c.
5832 * libc/stdlib/atexit.c: moved global data to struct _reent.
5833 * libc/stdlib/exit.c: use struct _atexit in struct _reent.
5835 * libc/reent/reent.c (inpure_data): _REENT_INIT macro modified.
5837 Wed Apr 7 09:41:50 1993 Doug Evans (dje@canuck.cygnus.com)
5839 * libc/include/sys/reent.h: Stuff required by ANSI headers moved
5840 here from ../reent.h.
5842 Tue Apr 6 12:56:01 1993 Ian Lance Taylor (ian@cygnus.com)
5844 * Makefile.in (MATHOBJS_IN_LIBC): List of object files which
5845 should be provided in both libc.a and libm.a.
5846 (libc.a): Depend on targ-include and libm.a. Copy
5847 $(MATHOBJS_IN_LIBC) from libm.a to libc.a.
5848 (libm.a): Depend on targ-include.
5849 * configure.in (subdirs): Removed libc/math.
5851 Mon Apr 5 10:18:16 1993 Steve Chamberlain (sac@thepub.cygnus.com)
5853 * libm/ieeefp/infinity.c (maxpowtwo): Fix initialization bug.
5855 Sat Apr 3 11:06:07 1993 Doug Evans (dje@canuck.cygnus.com)
5857 * libc/include/{errno.h, math.h, stdio.h, stdlib.h}: Use
5858 sys/reent.h instead of reent.h.
5859 * libc/include/reent.h: Split into two parts: stuff needed by ANSI
5860 headers moved to sys/reent.h.
5861 * libc/include/signal.h: _MAX_SIGNALS moved to sys/signal.h.
5862 * libc/include/sys/signal.h: Define _MAX_SIGNALS if
5863 __need__MAX_SIGNALS defined.
5864 * libc/include/stdio.h: struct __sFILE moved to sys/reent.h.
5865 std{in,out,err} refer to new _std{in,out,err} members.
5867 Fri Apr 2 11:27:12 1993 Doug Evans (dje@canuck.cygnus.com)
5869 * libc/include/sys/signal.h: #define _SYS_SIGNAL_H for general
5872 Fri Apr 2 09:41:10 1993 Doug Evans (dje@canuck.cygnus.com)
5874 * libc/sys/sparc64/execve.S (execve): Insert nop in delay slot,
5875 rather than whatever macro seterrno() has.
5877 Thu Apr 1 16:47:08 1993 Doug Evans (dje@canuck.cygnus.com)
5879 * libc/locale/locale.c: Reentrant routines _r_xxx renamed to
5880 _xxx_r. struct reent_struct renamed to struct _reent for ANSI.
5882 * libc/include/machine/fastmath.h: Use _HAVE_STDC instead of
5885 * libc/reent/{execr.c, filer.c, fstatr.c, linkr.c, reent.c,
5886 reent.tex, sbrkr.c, statr.c}: _r_xxx reentrant routines renamed to
5887 _xxx_r. struct reent_struct renamed to struct _reent for ANSI.
5889 * libc/signal/signal.c: Reentrant routines _r_xxx renamed to
5890 _xxx_r. struct reent_struct renamed to struct _reent for ANSI.
5892 * libc/stdio/{fclose.c, fdopen.c, findfp.c, fiprintf.c, flags.c,
5893 fopen.c, fprintf.c, freopen.c, fscanf.c, fseek.c, ftell.c,
5894 fwalk.c, getchar.c, gets.c, iprintf.c, local.h, makebuf.c,
5895 mktemp.c, perror.c, printf.c, putchar.c, puts.c, refill.c,
5896 remove.c, rename.c, scanf.c, setvbuf.c, siprintf.c, sprintf.c,
5897 sscanf.c, stdio.c, tmpfile.c, tmpnam.c, vfprintf.c, vfprintf.h,
5898 vfscanf.c, vprintf.c, vsprintf.c}: Reentrant routines _r_xxx
5899 renamed to _xxx_r. struct reent_struct renamed to struct _reent
5900 for ANSI. structure members given leading "_" for ANSI. Use
5901 _HAVE_STDC instead of __STDC__ and _HAVE_STDARG.
5903 * libc/stdlib/{__adjust.c, calloc.c, dtoa.c, ecvtbuf.c, malloc.c,
5904 mprec.c, mprec.h, rand.c, std.h, strtod.c, strtol.c, strtoul.c,
5905 system.c}: Reentrant routines _r_xxx renamed to _xxx_r. struct
5906 reent_struct renamed to struct _reent for ANSI.
5907 Structure members given leading "_" for ANSI.
5908 _CONST --> const in prototypes.
5909 Use _HAVE_STDC instead of __STDC__.
5911 * libc/string/strtok.c: Reentrant routines _r_xxx renamed to
5913 struct reent_struct renamed to struct _reent for ANSI.
5914 Structure members given leading "_" for ANSI.
5916 * libc/time/asctime.c: Reentrant routines _r_xxx renamed to
5918 struct reent_struct renamed to struct _reent for ANSI.
5920 * libm/math/{acos.h, acosh.h, asin.c, asinh.h, atanh.h, bessel.h,
5921 cbrt.h, cosh.h, erf.c, erf.h, error.c, exp.c, fmod.c, frexp.h,
5922 gamma.h, hypot.h, ldexp.c, log.h, log10.c, log1p.c log2.c,
5923 mathimpl.h, pow.c, remainder.c, sincos.c, sinh.h, sqrt.h, tan.c,
5924 tanh.h}: struct reent_struct renamed to struct _reent for ANSI.
5926 * libc/include/{_ansi.h, ctype.h, math.h, reent.h, locale.h,
5927 signal.h, stdio.h, stdlib.h, string.h, time.h}:
5928 Use _HAVE_STDC instead of __STDC__ and _HAVE_STDARG.
5929 #ifndef _STRICT_ANSI non-ANSI routines.
5930 Reentrant routines renamed from _r_xxx to _xxx_r.
5931 No need to use _STRICT_ANSI on _xxx_r reentrant routines.
5932 Use _STRICT_ANSI instead of __STRICT_ANSI, _ANSI_SOURCE, etc.
5933 Clean up namespace (structure members have leading "_").
5934 struct reent_struct renamed to struct _reent for ANSI compliance.
5935 _CONST --> const in function prototypes.
5937 * libc/include/string.h: Add NULL and size_t.
5939 * libc/sys/sparc64/Makefile.in: New syscall routines for link,
5940 unlink, wait, wait4. Reentrant syscall routines close, fork,
5941 fstat, link, lseek, open, read, sbrk, stat, unlink, wait, wait4,
5943 * libc/sys/sparc64/cerror.S (cerror_r): New routine.
5944 * libc/sys/sparc64/{close.S, fork.S, fstat.S, link.S, lseek.S,
5945 open.S, read.S, sbrk.S, stat.S, unlink.S, wait.S, wait4.S,
5946 write.S}: Define reentrant versions.
5947 * libc/sys/sparc64/sys/syscallasm.h (defsyscall_r): New macro for
5950 * libc/sys/sparc64/crt0.S (start): Fix initialization of environ.
5952 * libc/include/stdlib.h (RAND_MAX): Fix value.
5954 Thu Apr 1 12:28:30 1993 Ian Lance Taylor (ian@cygnus.com)
5956 * libc/sys/a29khif/_main.c: Removed unnecessary file.
5957 * libc/sys/a29khif/Makefile.in (OFILES): Removed _main.c, moved
5958 VPATH support targets after all: target.
5960 * stub/mvme135/mvme.S: Renamed exceptionhandler to
5961 exceptionHandler, which is what mvme135-stub.c expects.
5963 Wed Mar 31 17:42:03 1993 Doug Evans (dje@cygnus.com)
5965 * libc/stdio/tmpnam.c (worker): Fix test for _r_open() failure.
5967 * libc/unix/getpass.c (getpass): Use stdin,stderr instead of
5968 def_stdin/def_stderr (latter removed from stdio.h to make it ANSI
5971 Tue Mar 30 09:58:21 1993 Doug Evans (dje@canuck.cygnus.com)
5973 * libc/reent/execr.c (_r_wait): Re-order args to make reent_struct
5975 libc/reent/filer.c (_r_open, _r_close, _r_lseek, _r_read,
5977 libc/reent/fstatr.c (_r_fstat): Ditto.
5978 libc/reent/linkr.c (_r_link, _r_unlink): Ditto.
5979 libc/reent/sbrkr.c (_r_sbrk): Ditto.
5980 libc/reent/statr.c (_r_stat): Ditto.
5982 * libc/stdio/fopen.c (_r_fopen): Re-order args to _r_open.
5983 * libc/stdio/freopen.c (freopen): Ditto for _r_open, _r_free.
5984 * libc/stdio/fseek.c (fseek): Ditto for _r_fseek.
5985 * libc/stdio/makebuf.c (__smakebuf): Ditto for _r_fstat.
5986 * libc/stdio/mktemp.c (_gettemp): Ditto for _r_stat, _r_open.
5987 * libc/stdio/remove.c (_r_remove): Ditto for _r_unlink.
5988 * libc/stdio/rename.c (_r_rename): Ditto for _r_link, _r_unlink.
5989 * libc/stdio/stdio.c (__sread): Ditto for _r_read.
5990 (__swrite): Ditto for _r_lseek, _r_write.
5991 (__sseek): Ditto for _r_lseek.
5992 (__close): Ditto for _r_close.
5993 * libc/stdio/tmpnam.c (worker): Ditto for _r_open, _r_close.
5995 * libc/stdlib/malloc.c (_r_morecore): Re-order args to _r_sbrk.
5996 * libc/stdlib/system.c (_r_system): Ditto for _r_wait.
5998 * libc/include/reent.h: Re-order arguments to _r_xxx syscall fns
5999 to make reent_struct the first argument (and thus consistent with
6000 the rest of newlib).
6002 * stub/mvme135/mvme135-stub.c (initializeRemcomErrorFrame): Remove
6003 reference to __STDC__.
6005 Mon Mar 29 12:34:32 1993 Doug Evans (dje@canuck.cygnus.com)
6007 * libc/stdlib/exit.c (exit): Use _REENT->__cleanup instead of
6010 Wed Mar 24 11:54:35 1993 Doug Evans (dje@canuck.cygnus.com)
6012 * libc/stdio/freopen.c (freopen): Ensure stdio is initialized
6014 libc/stdio/fclose.c (fclose): Ditto.
6016 Tue Mar 23 01:26:52 1993 Doug Evans (dje@rtl.cygnus.com)
6018 * Run through indent and rename reentrant routines for ANSI.
6019 libc/stdio/{clearerr.c cvt.c fclose.c fdopen.c feof.c ferror.c
6020 fflush.c fgetc.c fgetpos.c fgets.c findfp.c fiprintf.c flags.c
6021 fopen.c fprintf.c fputc.c fputs.c fread.c freopen.c fscanf.c
6022 fseek.c fsetpos.c ftell.c fvwrite.c fwalk.c fwrite.c getc.c
6023 getchar.c gets.c iprintf.c makebuf.c mktemp.c perror.c printf.c
6024 putc.c putchar.c puts.c refill.c remove.c rename.c rewind.c rget.c
6025 scanf.c setbuf.c setvbuf.c siprintf.c sprintf.c sscanf.c stdio.c
6026 tmpfile.c tmpnam.c ungetc.c vfprintf.c vfscanf.c vprintf.c
6027 vsprintf.c wbuf.c wsetup.c local.h}
6029 * libc/locale/locale.c: Reformat and rename for ANSI, GNU style.
6031 * Run through indent and rename xxx_r fns to _r_xxx for ANSI.
6032 libc/stdlib/{__adjust.c __exp10.c __ten_mu.c abort.c abs.c
6033 assert.c atexit.c atof.c atoi.c atol.c bsearch.c calloc.c div.c
6034 dtoa.c ecvtbuf.c efgcvt.c exit.c getenv.c labs.c ldiv.c malloc.c
6035 mbtowc.c mprec.c putenv.c qsort.c rand.c setenv.c strdup.c
6036 strtod.c strtol.c strtoul.c system.c wctomb.c mprec.h}
6038 * Run through indent.
6039 libc/string/{bcmp.c bcopy.c bzero.c index.c memchr.c memcmp.c
6040 memcpy.c memmove.c memset.c rindex.c strcat.c strchr.c strcmp.c
6041 strcoll.c strcpy.c strcspn.c strerror.c strlen.c strncat.c
6042 strncmp.c strncpy.c strpbrk.c strrchr.c strspn.c strstr.c strtok.c
6045 * libc/time/{asctime.c clock.c ctime.c difftime.c gmtime.c
6046 localtime.c mktime.c strftime.c time.c}:
6047 Run through indent and rename xxx_r (reentrant) fns to _r_xxx for ANSI.
6049 * Reformatting + renaming (for ANSI, GNU style, consistency).
6050 libc/include/{_ansi.h, assert.h, ctype.h, errno.h, fastmath.h,
6051 ieeefp.h, locale.h, math.h, paths.h, pwd.h, reent.h, setjmp.h,
6052 signal.h, stdio.h, stdlib.h, string.h, time.h, unistd.h}
6054 Fri Mar 19 11:28:01 1993 Doug Evans (dje@cygnus.com)
6056 * libc/include/stdio.h (stdin_r): Fix.
6058 Fri Mar 19 09:43:48 1993 Ian Lance Taylor (ian@cygnus.com)
6060 * Makefile.in: Unexport some variables to keep GNU make from
6061 putting them in the environment and using up needed ARG_MAX space
6062 (a hack is used to let this work with older makes as well).
6064 Tue Mar 16 15:11:08 1993 Ian Lance Taylor (ian@cygnus.com)
6066 * Makefile.in: Use $(MAKE) rather than make.
6067 (MAKEOVERRIDES): Define to be empty.
6068 (FLAGS_TO_PASS): Don't pass down LD (it's not used).
6069 (libc.a, libm.a): Depend on targ-include.
6070 * host/any (LD): Don't define.
6071 (INCLUDES): Use targ-include.
6072 * stub/Makefile.in (MAKEOVERRIDES): Define to be empty.
6073 (FLAGS_TO_PASS): Don't pass down LD (it's not used).
6074 * libc/Makefile.in: Use $(MAKE) rather than make.
6075 (MAKEOVERRIDES): Define to be empty.
6076 (FLAGS_TO_PASS): Don't pass LD (it's not used).
6077 (all): Rewrote to be slightly smaller.
6078 * libc/machine/Makefile.in, libc/sys/Makefile.in (MAKEOVERRIDES):
6080 (FLAGS_TO_PASS): Don't pass LD (it's not used).
6081 * libm/Makefile.in (FLAGS_TO_PASS): Don't pass LD (it's not used).
6083 Mon Mar 15 08:45:41 1993 Ian Lance Taylor (ian@cygnus.com)
6085 * libc/sys/go32/gerrno.s: Renamed from errno.s to avoid conflict
6088 Fri Mar 12 09:46:54 1993 Ian Lance Taylor (ian@cygnus.com)
6090 * Changes for reentrancy.
6091 libc/stdio/fdopen.c, libc/stdio/freopen.c, libc/stdio/perror.c:
6092 Use ptr->_errno, not errno.
6093 libc/stdio/mktemp.c (mkstemp_r, mktemp_r): New functions.
6094 libc/stdio/remove.c (remove_r): New function.
6095 libc/stdio/rename.c (rename_r): New function.
6096 libc/stdio/fopen.c, libc/stdio/freopen.c, libc/stdio/fseek.c,
6097 libc/stdio/makebuf.c, libc/stdio/mktemp.c, libc/stdio/remove.c,
6098 libc/stdio/rename.c, libc/stdio/stdio.c, libc/stdio/tmpnam.c: Use
6099 reentrant versions of system calls.
6100 libc/stdio/gets.c: Call getchar_f, not nonexistent getchar_r.
6101 libc/stdio/scanf.c: Use stdin_r, not nonexistent stdin_n.
6102 libc/stdio/tmpfile.c: Use tmpnam_f, not nonexistent tmpnam_r.
6103 libc/stdio/findfp.c: Include <string.h>.
6104 libc/stdio/fread.c, libc/stdio/rget.c, libc/stdio/scanf.c: Include
6106 libc/stdio/wbuf.c: Include "fvwrite.h"
6108 * libc/stdlib/{dtoa.c, ecvtbuf.c, mprec.c, strtod.c}: Include
6110 libc/stdlib/malloc.c: Call sbrk_r rather than sbrk.
6111 (NULL): Don't define if already defined.
6112 libc/stdlib/system.c: Call reentrant versions of system calls.
6113 (system_r): New function.
6115 * Changes for reentrancy.
6116 libc/include/_ansi.h (_PARAMS): New macro.
6117 libc/include/errno.h: Define errno as a macro that calls __errno.
6118 (__errno_r): New macro for reentrant code.
6119 libc/include/math.h: Include reent.h. Declare many reentrant
6121 (signgam): Now a macro, not a variable.
6122 (struct exception): Added err field.
6123 libc/include/reent.h: Don't declare __sglue. Added function
6125 (struct reent_struct): Moved errno to beginning. Added _signgam.
6126 libc/include/stdio.h, libc/include/stdlib.h: Added function
6129 * More reentrancy hacking.
6130 libc/errno/errno.c (__errno): New function.
6131 libc/reent/execr.c, libc/reent/filer.c, libc/reent/fstatr.c,
6132 libc/reent/linkr.c, libc/reent/sbrkr.c, libc/reent/statr.c: New
6135 * Added many new reentrant functions to libm/math/*.
6136 libm/math/error.c (__matherror): Added reent_struct pointer
6137 argument. Changed all callers.
6138 libm/math/gamma.c (signgam): Removed. Set ptr->_signgam, instead.
6139 libm/math/exp.h, libm/math/pow.h, libm/math/sincos.h,
6140 libm/math/tan.h: Removed obsolete unused header files.
6142 * libc/sys/a29khif/stubs.s: Use register lr0, not v0.
6144 * libc/sys/sun/Makefile.in (COPYOFILES): Don't pull in errno.o.
6146 Mon Mar 8 16:43:43 1993 Steve Chamberlain (sac@thepub.cygnus.com)
6148 * libc/sys/a29khif/stubs.s: clobber safe register, and fill all
6151 Tue Mar 2 14:47:00 1993 Jeffrey Osier (jeffrey@fowanton.cygnus.com)
6153 * libc/libc.texinfo: comment out reentrancy chapter (duh)
6155 Tue Mar 2 14:34:16 1993 Jeffrey Osier (jeffrey@fowanton.cygnus.com)
6157 * libc/reent/reent.tex: New file. (text from
6158 newlib/libc/libc.texinfo)
6159 * libc/stdio/tmpnam.c: fixed doc typo
6160 * libc/stdlib/rand.c: fixed doc typo
6162 Tue Mar 2 14:34:16 1993 Jeffrey Osier (jeffrey@fowanton.cygnus.com)
6164 * libc/reent/reent.tex: New file. (text from
6165 newlib/libc/libc.texinfo)
6167 Fri Feb 26 12:20:54 1993 Steve Chamberlain (sac@thepub.cygnus.com)
6169 support for reentrancy
6170 * libc/reent/reent.c, libc/reent/Makefile.in, libc/reent/reent.c:
6172 * libc/errno/errno.c, libc/include/ieeefp.h,
6173 libc/include/locale.h, libc/include/reent.h,
6174 libc/include/signal.h, libc/include/stdio.h,
6175 libc/include/stdlib.h, libc/include/string.h, libc/include/time.h,
6176 libc/signal/signal.c libc/stdio/cvt.c, libc/stdio/fclose.c,
6177 libc/stdio/fdopen.c, libc/stdio/fflush.c, libc/stdio/fgets.c,
6178 libc/stdio/findfp.c, libc/stdio/flags.c, libc/stdio/fopen.c,
6179 libc/stdio/fputc.c, libc/stdio/freopen.c, libc/stdio/fseek.c,
6180 libc/stdio/ftell.c, libc/stdio/fwalk.c, libc/stdio/getchar.c,
6181 libc/stdio/gets.c, libc/stdio/glue.h, libc/stdio/iprintf.c,
6182 libc/stdio/local.h, libc/stdio/makebuf.c, libc/stdio/perror.c,
6183 libc/stdio/printf.c, libc/stdio/putchar.c, libc/stdio/puts.c,
6184 libc/stdio/refill.c, libc/stdio/scanf.c, libc/stdio/setvbuf.c,
6185 libc/stdio/sprintf.c, libc/stdio/tmpfile.c, libc/stdio/tmpnam.c,
6186 libc/stdio/ungetc.c, libc/stdio/vfprintf.c, libc/stdio/vfprintf.h,
6187 libc/stdio/vfscanf.c, libc/stdio/vprintf.c, libc/stdio/wsetup.c,
6188 libc/stdlib/__adjust.c, libc/stdlib/__exp10.c,
6189 libc/stdlib/assert.c, libc/stdlib/atexit.c, libc/stdlib/atol.c,
6190 libc/stdlib/dtoa.c, libc/stdlib/ecvtbuf.c, libc/stdlib/malloc.c,
6191 libc/stdlib/mprec.c, libc/stdlib/mprec.h, libc/stdlib/rand.c,
6192 libc/stdlib/setenv.c, libc/stdlib/std.h, libc/stdlib/strtod.c,
6193 libc/stdlib/strtol.c, libc/stdlib/strtoul.c, libc/string/strtok.c,
6194 libc/time/asctime.c, libc/time/localtime.c, libc/time/mktime.c,
6195 libc/time/strftime.c: modify to provide reentracy.
6198 strtok_r, asctime_r, fdopen_r, _cleanup_r, fopen_r, iprintf_r,
6199 perror_r, printf_r, putchar_r, puts_r, scanf_r, sprintf_r,
6200 tmpfile_r, vfiprintf_r, vfprintf_r, strtod_r, dtoa_r, rand_r,
6201 srand_r, strtoul_r,strtol_r, free_r, malloc_r, morecore_r,
6202 mstats_r, realloc_r, localeconv_r, setlocale_r
6204 Wed Feb 17 20:17:15 1993 Mark Eichin (eichin@cygnus.com)
6206 * libc/include/machine/ieeefp.h, libc/include/machine/setjmp.h,
6207 libc/include/sys/config.h, libc/include/sys/signal.h,
6208 libc/include/sys/stat.h, libc/include/sys/types.h: For compiler
6209 provided macros (such as m68000), use the ansi version
6210 (__m68000__) so that the library can be used with code compiled
6211 -ansi. In particular, m68000, mc68000, _AM29K, i386, MIPSEL, unix,
6214 Wed Feb 17 13:01:34 1993 Jim Wilson (wilson@sphagnum.cygnus.com)
6216 * configure.in (sparc*): Don't set -fsoft-float for sparc
6217 configurations. Do set -fsoft-float for sparclite configurations.
6219 Fri Feb 12 16:25:52 1993 Roland H. Pesch (pesch@fowanton.cygnus.com)
6221 * default.menu, no-signal.menu: alternate forms of libc main menu
6222 (in newlib rather than newlib/libc due to configuration restrictions)
6224 * configure.in: select one of the two menus above, link to
6227 * libc/libc.texinfo: include menu from separate file
6229 Fri Feb 12 12:50:06 1993 Ian Lance Taylor (ian@cygnus.com)
6231 * Makefile.in (FLAGS_TO_PASS): Put INSTALL back in.
6232 (info): Split long shell command in half.
6233 * libc/Makefile.in (info, targetdep.tex): Don't pass everything to
6234 sub-makes, just CHEW and TARGETDOC.
6235 (targetdep.tex): Removed now special handling of sys and machine
6236 subdirectories, made obsolete some time ago.
6237 * libc/machine/Makefile.in (doc): Don't pass everything to
6238 sub-make, just CHEW and TARGETDOC.
6239 (Makefile): New target.
6240 * libc/sys/Makefile.in (Makefile): New target.
6242 Thu Feb 11 15:25:15 1993 Ian Lance Taylor (ian@cygnus.com)
6244 * Makefile.in (here and most subdirectories): Only pass down CHEW
6245 and TARGETDOC when making info, not for other targets.
6247 * Makefile.in (here and most subdirectories), host/any: Use $(AR)
6248 $(AR_FLAGS) rather than $(ARUPDATE).
6250 Wed Feb 10 11:57:52 1993 Ian Lance Taylor (ian@cygnus.com)
6252 * Try to reduce command line length:
6253 * Makefile.in (FLAGS_TO_PASS): don't pass down exec_prefix,
6254 CC_FOR_BUILD, CFLAGS_FOR_BUILD, INSTALL or CHEW.
6255 (info, docs): pass CC_FOR_BUILD and CFLAGS_FOR_BUILD to doc.
6256 (info): Pass CHEW to other subdirs.
6258 Tue Feb 9 14:01:42 1993 Mark Eichin (eichin@cygnus.com)
6260 * configure.in: add signal_dir, like unix_dir, but by default it
6261 is set to "signal" so that a29khif can turn it off (since a29khif
6262 has raise() as part of machine-specific signal.s.)
6264 Fri Jan 15 12:09:50 1993 Steve Chamberlain (sac@thepub.cygnus.com)
6266 * libc/sys/config.h, libc/machine/ieeefp.h: add Z8000 support
6267 * libc/stdio/Makefile.in: pass CFLAGS so vfiprintf.c gets built
6269 * libc/stdio/fdopen.c, libc/stdio/fgets.c, libc/stdio/fscanf.c,
6270 libc/stdio/vfprintf: type lint.
6271 * libc/sys/z8ksim/crt0.c (start): Z8001/Z8002 independent
6273 * libc/sys/z8ksim/glue.c: Z8001/Z8002 clean system calls.
6275 Tue Dec 29 10:15:33 1992 Ian Lance Taylor (ian@cygnus.com)
6277 * stub/mvme135/mvme135-asm.S: new file.
6278 stub/mvme135mvme135-stub.c: moved all assembler routines into
6280 stub/mvme135/Makefile.in: build mvme135-stub.o.
6282 Mon Dec 28 12:40:43 1992 Ian Lance Taylor (ian@cygnus.com)
6284 * Makefile.in: don't pass down $(CPP); use $(CC) -E in
6285 sub-Makefiles instead, to try to avoid line length limitations.
6287 Mon Dec 21 18:36:13 1992 Per Bothner (bothner@rtl.cygnus.com)
6289 * libc/include/unistd.h (read, write): Use void* instead of
6292 Thu Dec 17 13:49:46 1992 Mark Eichin (eichin@cygnus.com)
6294 * stub/go32/resetpc: sample script to send a reset packet to the
6297 * stub/go32/I386STUB.C: new file, gdb/i386stub.c modified for the
6298 DOS environment, which compiles with Turbo C.
6300 * stub/go32/DSER32.LNK: new file, linker commands for serial
6303 * stub/go32/CONTROL.C: turn off debug_mode, add CYGNUS tag line to
6304 start up message to identify version; call set_debug_traps.
6306 * stub/go32/DEBUG.C: turn off debug_mode (so stub doesn't need any
6307 keyboard interaction); call handle_exception() in go_til_stop,
6308 rather than return, so that the remote stub gets control.
6310 * stub/go32/MAKEFILE: fixed to actually use DOS commands (del and
6311 rename, rather than mv), set flags that work with current Turbo C,
6312 including using the /3 flag; also, add commands to build dser32.
6314 * stub/go32/DEBUG32.LNK, stub/go32/GO32.LNK: fix paths to match
6315 default Turbo C installation (\tc rather than \usr)
6317 * stub/go32/MONO.C (printf): current Turbo C uses "..." instead of
6320 Mon Dec 14 09:37:33 1992 Steve Chamberlain (sac@thepub.cygnus.com)
6322 * libc/include/math.h: added _DOUBLE_IS_32BITS checks
6324 Thu Nov 12 22:31:04 1992 Steve Chamberlain (sac@thepub.cygnus.com)
6326 * libc/stdio/cvt.c (licvt): new function to convert ints when
6327 sizeof(int) != sizeof(long).
6329 * libc/include/stdio.h: added prototype for iprintf.
6330 * libc/include/machine/limits.h machine/ieeefp.h: z8k stuff
6332 Tue Nov 10 12:18:12 1992 Ian Lance Taylor (ian@cygnus.com)
6334 * libc/machine/m68k/setjmp.S: use __USER_LABEL_PREFIX__ and
6335 __REGISTER_PREFIX__.
6337 Mon Nov 2 13:50:14 1992 Ian Lance Taylor (ian@cygnus.com)
6339 * libc/sys/m68kbare: moved into stub directory.
6341 Mon Nov 2 13:40:42 1992 Ian Lance Taylor (ian@cygnus.com)
6343 * configure.in, Makefile.in: created new directory stub, to hold
6344 sample code for specific targets.
6346 Wed Oct 28 02:19:55 1992 Mark Eichin (eichin@cygnus.com)
6348 * restored libc/sys/go32/sys/fcntl.h, to override incorrect values
6349 in the unified libc/include/sys/fcntl.h.
6351 Wed Oct 21 13:55:58 1992 Doug Evans (dje@rtl.cygnus.com)
6353 * libc/stdlib/ecvtbuf.c: (print_f,_gcvt): printf("%f", 0.01)
6354 printed .01, not 0.01.
6356 Mon Oct 19 11:05:55 1992 Ian Lance Taylor (ian@cygnus.com)
6358 * configure.in: compile with -m68000 for m68* targets.
6360 Sun Oct 18 05:29:05 1992 Mark Eichin (eichin@cygnus.com)
6362 * libm/math/remainder.c (remainder): document the svr4 and sunos
6363 references used to construct the function.
6365 Sat Oct 17 21:46:16 1992 Mark Eichin (eichin@cygnus.com)
6367 * libm/math/remainder.c (rint, remainder): fix old typos.
6368 * libm/math/Makefile.in: actually build remainder.c (functions
6369 rint and remainder, from SysVr4 Programmer's Guide floor(3m) man
6372 Thu Oct 15 07:48:05 1992 Ian Lance Taylor (ian@cygnus.com)
6374 * libc/string/bcopy.c: BSD version works on overlapping strings,
6377 * libc/stdlib/system.c: always invoke /bin/sh, not getenv
6380 Wed Oct 14 11:07:11 1992 Ian Lance Taylor (ian@cygnus.com)
6382 * Makefile.in (docs): new target.
6384 Wed Oct 14 07:44:25 1992 Ian Lance Taylor (ian@cygnus.com)
6386 * libc/include/sys/times.h: define clock_t as required by POSIX.
6387 libc/include/time.h: protect clock_t from multiple definitions.
6389 Wed Oct 7 11:02:21 1992 Mark Eichin (eichin at tweedledumber.cygnus.com)
6391 * libm/math/sqrt.h (sqrt): actually, the final version of fp-bit
6392 does not need more than the original three iterations to get
6393 within 1 ulp. (Paranoia tests for rounding to better than that,
6394 but further iterations *don't* help, only more subtle changes
6397 Tue Oct 6 09:22:12 1992 Ian Lance Taylor (ian@cygnus.com)
6399 * libc/sys/vxworks68, libc/sys/vxworks960: removed, since they
6400 were doing nothing useful.
6402 Tue Oct 6 08:48:13 1992 Ian Lance Taylor (ian@cygnus.com)
6404 * configure.in: define MALLOC_PROVIDED for vxworks targets;
6405 removed sys_dir settings of vxworks68 and vxworks960.
6406 host/any: don't pass -nostdinc to gcc, since newlib no longer
6407 provides all required header files.
6409 * libc/stdlib/malloc.c: only compile this file if MALLOC_PROVIDED
6410 is not defined; this provides a hook for VxWorks.
6412 Mon Oct 5 03:44:57 1992 Mark Eichin (eichin at tweedledumber.cygnus.com)
6414 * libc/stdio/setvbuf.c (setvbuf): while ANSI does say to malloc a
6415 buffer if buf is NULL, don't do it here -- it is already being
6416 done by makebuf elsewhere in stdio.
6418 Fri Oct 2 13:12:07 1992 Ian Lance Taylor (ian@cygnus.com)
6420 * libc/sys/a29khif/Makefile.in: assemble Steve's list of stubs so
6421 that C programs can call functions without using initial
6424 Thu Oct 1 09:37:47 1992 Ian Lance Taylor (ian@cygnus.com)
6426 * libc/stdlib/abort.c (abort): call exit, in case kill returns.
6428 Wed Sep 30 08:22:18 1992 Ian Lance Taylor (ian@cygnus.com)
6430 * configure.in: set TARGET_CFLAGS for certain CPU types to
6433 Tue Sep 29 21:09:32 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
6435 * libc/sys/m68kbare/glue.c: use <_ansi.h> instead of <ansidecl.h>
6437 Mon Sep 28 14:58:44 1992 Ian Lance Taylor (ian@cygnus.com)
6439 * configure.in: added sys_dir m68kbare for m68k*-unknown-aout and
6442 Fri Sep 25 08:33:21 1992 Ian Lance Taylor (ian@cygnus.com)
6444 * libc/include/stdio.h: define __need___va_list before including
6445 <stdarg.h>, to avoid defining va_arg, et. al.
6447 Tue Sep 22 13:47:00 1992 Ian Lance Taylor (ian@cygnus.com)
6449 * libc/sys/Makefile.in: handle the case of an empty $(sys_dir)
6450 (don't cd to the user's home directory).
6452 * libc/Makefile.in: replaced all instances of $(MAKE) with make.
6453 In general this is the wrong thing to do, but I can't get around
6454 GNU make's insistence on passing command line arguments any other
6457 Tue Sep 22 10:12:44 1992 Ian Lance Taylor (ian@cygnus.com)
6459 * configure.in: always configure the libc/sys directory, since it
6460 now provides a required documentation file.
6462 * Makefile.in: replaced all instances of $(MAKE) with make. In
6463 general this is the wrong thing to do, but I can't get around GNU
6464 make's insistence on passing command line arguments any other way.
6466 Mon Sep 21 22:42:26 1992 Ian Lance Taylor (ian@tweedledumbest.cygnus.com)
6468 * libc/stdlib/ecvtbuf.c (_gcvt): string for 0 was not null
6471 * libc/stdio/local.h: include <stdarg.h> to define va_list.
6472 libc/stdio/vsprintf.c: include <stdarg.h> rather than <varargs.h>.
6474 * libc/include/float.h, libc/include/stdarg.h,
6475 libc/include/stddef.h, libc/include/varargs.h: removed; use gcc
6477 libc/include/stdio.h: get size_t from <stddef.h>, and va_list from
6478 <stdarg.h>, not from <machine/types.h>. Protect definition of
6480 libc/include/time.h: get size_t from stddef.h. Protect definition
6482 libc/include/machine/limits.h: override gcc <limits.h> by defining
6483 _LIMITS_H___. Don't define CLK_TCK. Copied in gcc <limits.h> to
6484 get correct INT_MIN and LONG_LONG values.
6485 libc/include/machine/types.h: don't define ptrdiff_t, wchar_t,
6486 size_t or va_list at all; they're now gotten from stddef.h
6488 libc/include/machine/varargs.h: removed; use gcc version instead.
6489 libc/include/sys/types.h: explicitly include <machine/types.h>.
6491 * libm/math/sqrt.h: using the fp-bit routines appears to require
6494 * Makefile.in, host/any: let system include files override machine
6497 Sat Sep 19 21:10:06 1992 Mark Eichin (eichin at tweedledumber.cygnus.com)
6499 * libc/include/machine/types.h: allow __*_TYPE__ from cpp to
6500 override _*_T_ definitions defaulted here.
6502 Tue Sep 15 11:14:46 1992 Ian Lance Taylor (ian@cygnus.com)
6504 * Makefile.in (install): install the include files in
6505 $(tooldir)/include, not $(exec_prefix)/include.
6507 Fri Sep 11 15:48:43 1992 Ian Lance Taylor (ian@cygnus.com)
6509 * Makefile.in (install): fixed typo, and changed install to not
6510 force rebuild of libc.a and libm.a.
6512 Thu Sep 10 10:46:09 1992 Ian Lance Taylor (ian@cygnus.com)
6514 * libc/sys/a29khif/*: Changed all .include's to include
6515 sys/sysmac.h, not plain sysmac.h. The header files live in sys so
6516 that they will be installed for the user.
6518 * Makefile.in (all): create targ-include, a directory holding the
6519 machine and system specific header files during the build.
6520 (install): fixed installation of machine and system specific
6523 * Makefile.in: fixed comment.
6524 host/any: change .s.o rule to use $(AS) rather than $(CC), so that
6525 we can pass $(INCLUDES) to it.
6527 Thu Sep 10 10:13:13 1992 Ian Lance Taylor (ian@cygnus.com)
6529 * libc/include/sys/param.h: new generic file, which may be
6530 overridden for specific systems.
6532 * libc/include/sys/signal.h: define all ANSI signal names, and
6533 NSIG (which is not ANSI) for a29k.
6535 Tue Sep 8 09:04:30 1992 Ian Lance Taylor (ian@cygnus.com)
6537 * Makefile.in: don't pass down arguments the lower level makes
6539 * libc/Makefile.in: recurse directly, rather than using subdir_do,
6540 in hopes of avoiding argument length limits.
6541 * libm/Makefile.in: recurse directly, rather using subdir_do, in
6542 hopes of avoiding argument length limits.
6544 Tue Sep 8 08:27:22 1992 Ian Lance Taylor (ian@cygnus.com)
6546 * libc/include/sys/fcntl.h: include <sys/types.h> to ensure that
6549 Mon Sep 7 14:02:07 1992 Ian Lance Taylor (ian@cygnus.com)
6551 * Fixed make info and make install-info for newlib, changing most
6552 Makefile.in and several *.tex files. Moved doc directory from
6555 * libc/time/mktime.c (_DAYS_IN_MONTH): actually, not const.
6556 Should be rewritten.
6558 * libc/string/strings.tex: renamed node index to node index
6559 function, so that it does not conflict with the top level index
6562 * libc/include/sys/config.h: define __IEEE_BIG_ENDIAN for h8300.
6564 Fri Sep 4 02:34:06 1992 Ian Lance Taylor (ian@cygnus.com)
6566 * Overhauled general configuration for newlib. Eliminated all
6567 target dependent Makefile fragments. Create libraries in newlib
6568 rather than newlib/libc and newlib/libm. Use CC, et. al., rather
6569 than CROSS_CC, et. al. Broke make docs; will fix later.
6571 * libc/time/localtime.c (_DAYS_IN_MONTH): actually, not const.
6572 Should be rewritten.
6574 Tue Sep 1 15:21:14 1992 Ian Lance Taylor (ian@cygnus.com)
6576 * libc/configure.in: cleaned up somewhat; switch on ${target}
6577 rather than ${target_alias}.
6578 * libm/configure.in: cleaned up somewhat; switch on ${target}
6579 rather than ${target_alias}.
6581 * libc/ctype/ctype_.c: marked _ctype_ array _CONST.
6582 * libc/include/ctype.h: marked _ctype_ as _CONST.
6584 * libc/locale/locale.c (lconv, localeconv): marked static lconv as
6587 * libc/stdio/cvt.c, libc/stdio/findfp.c (__sfmoreglue),
6588 libc/stdio/vfscanf.c (__svfscanf): made static variables const.
6589 libc/stdio/gets.c (gets): removed non-ANSI warning message.
6590 libc/stdio/tmpnam.c (tmpnam): removed unneeded filename variable.
6592 * libc/stdlib/mprec.h, libc/stdlib/mprec.c (pow5mult, tens,
6593 bigtens, tinytens): marked arrays _CONST.
6594 libc/stdlib/qsort.c (swap): if __GNUC__, use _builtin_alloca
6595 rather than a static variable.
6597 * libc/time/asctime.c (asctime), libc/time/localtime.c
6598 (_DAYS_IN_MONTH), libc/time/mktime.c (_DAYS_IN_MONTH,
6599 _DAYS_BEFORE_MONTH), libc/time/strftime.c (dname_len, dname,
6600 mname_len, mname): Marked static arrays _CONST.
6602 * libm/math/gamma.h: made local variables non-static.
6604 * libm/math/acos.h, libm/math/bessel.c, libm/math/erf.c,
6605 libm/math/exp.c, libm/math/gamma.h: marked static arrays as
6608 * libm/math/constants.c: removed file, because the constants it
6609 defined were never referenced.
6610 libm/math/Makefile.in: removed references to constants.c.
6611 libm/math/mathimpl.h: removed declarations of constants.
6613 Wed Aug 26 21:09:06 1992 Ian Lance Taylor (ian@cygnus.com)
6615 * libc/include/machine/varargs.h: only call __builtin_saveregs if
6616 it is sensibly defined in libgcc2. Checks preprocessor defines,
6617 which is not a good solution.
6619 * libm/sqrt.c: sqrt(Infinity) should not be a domain error.
6621 * libm/frexp.c: handle denormalized numbers as arguments.
6623 * libm/math/Makefile.in: added some dependencies for .c files
6624 which include local .h files.
6626 Mon Aug 24 12:57:58 1992 Ian Lance Taylor (ian@cygnus.com)
6628 * libc/configure.in: set target_alias for OSE*. Replace
6629 target_makefile_frag if it is blank.
6631 * libc/Makefile.in: make sure everything is passed to subsidiary
6632 makes; create all directories when installing.
6634 * libm/ieeefp/Makefile.in, libm/math/Makefile.in: use
6635 CROSS_ARUPDATE instead of AR.
6637 * libm/configure.in: set target_alias for OSE*. Replace
6638 target_makefile_frag if it is blank.
6640 * libm/Makefile.in: make sure everything is passed to subsidiary
6641 makes; create all directories when installing.
6643 Thu Aug 20 15:11:51 1992 Mark Eichin (eichin@cygnus.com)
6645 * add following change from libc copy.
6647 Wed Aug 19 18:54:49 1992 Roland H. Pesch (pesch@fowanton.cygnus.com)
6649 * libc/libc.texinfo: make copyright disclaimers appear on back of
6650 title page; make format of same slightly less ugly; avoid using
6651 underbars in section headings (avoids nasty texinfo bug in table
6654 * libc/ctype/tolower.c, libc/ctype/toupper.c: (doc changes in
6655 comments only) avoid using underbars in section headings
6657 * libc/ieeefp/ieeefp.tex: include doc from fpsticky, infinity,
6658 isnan ieeefp/fpmask.c, ieeefp/fpround.c, ieeefp/fpsticky.c (doc
6659 changes in comments only): shorten headings ieeefp/infinity.c,
6660 ieeefp/isnan.c: (doc, comments only) more informative headings
6662 * libc/math/bessel.c: (doc, comments only) shorten heading
6664 * libc/stdlib/efgcvt.c, libc/stdlib/mbtowc.c, libc/stdlib/wctomb.c
6665 (doc, comments only) shorten headings
6667 * libc/time/localtime.c (doc, comments only): shorten headings
6669 * libm/ieeefp/ieeefp.tex: include doc from fpsticky, infinity,
6671 libm/ieeefp/fpmask.c, libm/ieeefp/fpround.c,
6672 libm/ieeefp/fpsticky.c (doc changes in comments only): shorten
6674 libm/ieeefp/infinity.c, libm/ieeefp/isnan.c: (doc, comments
6675 only) more informative headings
6676 * libm/math/bessel.c: (doc, comments only) shorten heading
6678 Wed Aug 19 07:06:37 1992 Mark Eichin (eichin at tweedledumber.cygnus.com)
6680 * .../Makefile.in: use CROSS_ARUPDATE consistently.
6681 * config/*.mt: define CROSS_AR as well as CROSS_ARUPDATE
6682 * config/*.mt: define CROSS_CPP based on CROSS_CC, not /lib/cpp.
6683 * .../Makefile.in: get rid of .c.o rule - if TOP is correctly
6684 defined, the one from the .mt file will be correct.
6685 * libc/include/machine, libc/include/sys: created, and populated
6686 with common files from machine/*/machine. ifdefs were used for
6687 most, typically by handling exceptions first and then filling in
6688 defaults. Files with D.J. Delorie copyright #included rather than
6689 copied. Most files in include/sys really were the same in the
6691 * libc/include/...: cleaned up use of _EXFUN.
6692 * libc/stdlib/mprec.c: mprec.h doesn't get installed, so include
6693 it with double quotes, not angles.
6695 Mon Aug 10 11:43:20 1992 Ian Lance Taylor (ian@dumbest.cygnus.com)
6697 * libc/Makefile.in: always create installation directories.
6699 Sun Aug 9 22:45:48 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
6701 * libc/configure.in: handle host properly (using canonical
6702 triples), better error message for the case of target not found
6704 Thu May 28 01:56:37 1992 Michael Tiemann (tiemann@rtl.cygnus.com)
6706 * libc/Makefile.in (insincdir): Ensure this directory exists
6707 before attempting installation.
6709 Fri May 1 18:16:42 1992 Steve Chamberlain (sac@thepub.cygnus.com)
6711 * libc/stdlib/assert.c: now calls abort like it should
6712 * libc/sys/a29khif: many many patches for 29khif work
6713 * libc/machine/i386: gnulib2 expanded there.
6715 Tue Apr 28 19:08:37 1992 Steve Chamberlain (sac@thepub.cygnus.com)
6717 Added accurate fp conversion routines to stdlib, moved dcvt from
6718 stdio to stdlib and called it ecvtbuf:
6719 * libc/stdlib/mprec.c, mprec.h: new files for multiprec arithmetic
6720 * libc/stdlib/Makefile.in, efgcvt.c, strtod.c: modified to use new
6722 * libc/libc.texinfo: Modifed to include the copyright info from
6724 * libc/stdlib/efgcvt.c: now xref to ecvtbuf in stdlib.
6725 * libc/test/ : many vector which tested for the implementation
6726 defined returns of strange conversion requests have been updated
6727 to relflect the new implementation
6729 Mon Apr 27 13:41:33 1992 Roland H. Pesch (pesch@fowanton.cygnus.com)
6731 * libc/libc.texinfo: new chapter on variable arg lists
6732 (stdarg.h/varargs.h)
6733 * libc/libc.texinfo: new title
6734 * libc/time/gmtime.c, libc/time/localtime./c, libc/time/mktime.c:
6735 (doc only) shorter headings for better formatting.
6737 Fri Apr 24 11:26:48 1992 Roland H. Pesch (pesch@fowanton.cygnus.com)
6739 * libc/libc.texinfo: three more info menu entries
6740 * libc/locale/locale.tex: new chapter
6741 * libc/locale/locale.c: new doc for setlocale, localeconv
6742 * libc/locale/Makefile.in: use new locale doc
6743 * libc/signal/signal.tex: new chapter
6744 * libc/signal/raise.c, libc/signal/signal.c: new doc
6745 * libc/signal/Makefile.in: use new doc
6746 * libc/time/time.tex: new chapter
6747 * libc/time/asctime.c libc/time/clock.c libc/time/ctime.c
6748 libc/time/difftime.c libc/time/gmtime.c libc/time/localtime.c
6749 libc/time/mktime.c libc/time/strftime.c libc/time/time.c: new doc
6750 * libc/time/Makefile.in: use new doc
6752 Tue Apr 21 14:48:50 1992 Steve Chamberlain (sac@thepub.cygnus.com)
6754 * libm/math/log1p.c: split to use the new function way of float
6755 function definition. math/log1p.h deleted
6756 * libm/math/scalb.c: obsolete and deleted
6757 * libm/math/scalbn.c: created from part log1p.c
6758 * libm/math/Makefile.in: know about log1p and scalbn
6760 Tue Apr 21 12:32:21 1992 Roland H. Pesch (pesch@fowanton.cygnus.com)
6762 * libc/ctype/isupper.c: revise doc;
6763 libc/ctype/ctype.tex: use doc from isupper.c
6765 * libc/string/bzero.c: new doc
6767 Mon Apr 20 14:19:42 1992 Roland H. Pesch (pesch@fowanton.cygnus.com)
6769 * libc/stdlib/system.c, libc/stdlib/exit.c, libc/stdlib/abort.c:
6771 * libc/stdlib/Makefile.in: extract new doc
6772 * libc/stdlib/stdlib.tex: use new doc
6774 * libc/string/strerror.c: expanded doc.
6776 * libc/stdio/Makefile.in: extract doc from more files
6777 * libc/stdio/fopen.c, libc/stdio/perror.c, libc/stdio/remove.c,
6778 libc/stdio/rename.c, libc/stdio/rewind.c, libc/stdio/setbuf.c,
6779 libc/stdio/setvbuf.c, libc/stdio/sprintf.c, libc/stdio/tmpfile.c,
6780 libc/stdio/tmpnam.c, libc/stdio/vfprintf.c, libc/stdio/vprintf.c,
6781 libc/stdio/vsprintf.c: new doc
6782 * libc/stdio/stdio.tex: use new doc
6784 Mon Apr 20 09:38:17 1992 Steve Chamberlain (sac@thepub.cygnus.com)
6786 * libc/config/ebmon29k: added CROSS_CPP rule and other fixes
6787 * libc/include/ieeefp.h: fixed ansi conflict with isnanf, isinff,
6789 * libc/sys/a29khif/sys/*.h: ansidecl.h was renamed to _ansi.h some
6792 * libc/stdio/stdio.h: added P_tmpdir for /tmp (SVID thing)
6793 * libc/stdio/setbuf.c: added ansi style definition.
6794 * libc/stdio/setvbuf.c: added ansi definition, now mallocs own
6795 buffer if none provided.
6796 * libc/stdio/tmpfile.c: lint
6797 * libc/stdio/tmpnam.c (worker): created. (tmpnam): mallocs buffer
6798 rather than using static, also make sure file isn't already
6799 present. Uses P_tmpdir. (tempnam): rewritten to use new
6800 subroutine, and uses P_tmpdir.
6801 * libc/stdio/siprintf.c: created
6803 Mon Apr 13 09:12:58 1992 Steve Chamberlain (sac@thepub.cygnus.com)
6805 Release 1.03 for NEC, major mods. Main differences from release
6808 More tests in test/:
6809 * jn_vec.c, jnf_vec.c, yn_vec.c, ynf_vec.c, log2_vec.c,
6810 log2f_vec.c, atan2_vec.c, atan2f_vec.c: new test vectors.
6811 * test_ieee.c: tests for ieee flags & masks - get/set rounding,
6812 get/set mask, get/set sticky and get/set roundtoi. Tests
6813 that setting the bits changes the way arithmetic is done.
6814 * string.c: added test to make sure memcmp does it with unsigned
6816 * test.c: cleaned up and removed lint.
6817 * sprint_vec, sprint_ivec.c, convert.c, conv_vec.c, iconf_vec.c,
6818 dvec.c: tests for string to value conversions, sprintf, scanf,
6819 atof, atoff, strtod, strtodf, atoi, atol, strtol, ecvtbuf, ecvt,
6820 ecvtf, fcvtbuf, fcvt, fcvtf, gcvt, gcvtf. Some attention paid to
6821 rounding in sprintf too.
6822 * test_is.c: tests for isalnum, isalpha, isascii, iscntrl,
6823 isdigit, isgraph, islower, isprint, ispunct, isspace, isupper,
6824 isxdigit, toascii, tolower, toupper, _tolower, _toupper in macro
6826 * math2.c: test for frexp, frexpf, ldexp, ldexpf, modf modff, pow,
6830 * libc/stdlib/div.c, libc/stdlib/ldiv.c, libc/stdlib/strtod.c,
6831 libc/stdlib/strtol.c, libc/stdlib/stroul.c, libc/stdlib/abs.c,
6832 libc/stdlib/bsearch.c, libc/stdlib/calloc.c, libc/stdlib/getenv.c,
6833 libc/stdlib/labs.c, libc/stdlib/malloc.c: new documentation
6834 * libc/stdlib/efgcvt.c: rewritten to use new _dcvt routines rather
6836 * libc/stdio/dcvt.c: rewritten to make more useful elsewhere.
6837 * Method of producting float versions of double functions has
6838 changed, functions will be modified gradually. So far:
6839 libm/math/exp.c, libm/math/pow.c, libm/math/modf.c,
6840 libm/math/sincos.c, libm/math/fmod.c, libm/math/tan.c have been
6842 * libc/string/memcmp.c: now uses unsigned chars
6843 * libc/string/bcmp.c, libc/string/strcpy.c,
6844 libc/stsring/strxfrm.c: fixed doc
6845 * libc/sys/sysvnecv70.tex: fix example of sbrk code
6848 version-control: never