]> sourceware.org Git - newlib-cygwin.git/blob - newlib/ChangeLog
2003-02-19 Jeff Johnston <jjohnstn@redhat.com>
[newlib-cygwin.git] / newlib / ChangeLog
1 2003-02-19 Jeff Johnston <jjohnstn@redhat.com>
2
3 * libc/stdlib/mallocr.c (unlink): Revert 02/18 fix.
4
5 2003-02-18 Christian Groessler <chris@groessler.org>
6
7 * libc/machine/z8k/setjmp.S (_setjmp / _longjmp): Fix to
8 support z8001 segmented mode.
9
10 2003-02-18 Earnie Boyd <earnie@users.sf.net>
11
12 * libc/stdlib/mallocr.c (unlink): Don't assign a value to a pointer
13 with a NULL value.
14
15 2003-02-10 Christopher Faylor <cgf@redhat.com>
16
17 * libc/include/sys/types.h: Don't define __MS_types__ for Cygwin.
18 Don't define some types under cygwin.
19
20 2003-02-07 Jeff Johnston <jjohnstn@redhat.com>
21
22 * acinclude.m4 (--disable-newlib-supplied-syscalls): New configuration
23 option to allow disabling of syscalls being supplied in newlib.
24 * aclocal.m4: Regenerated.
25 * configure: Ditto.
26 * configure.host: Add support of new configuration option and add
27 -D__NO_SYSCALLS__ if newlib supplied syscalls are disabled.
28 * doc/aclocal.m4: Regenerated.
29 * doc/configure: Ditto.
30 * libc/*aclocal.m4: Ditto.
31 * libc/*configure: Ditto.
32 * libm/*aclocal.m4: Ditto.
33 * libm/*configure: Ditto.
34 * libc/sys/arm/Makefile.am: Don't build syscalls.o if new option
35 is disabled.
36 * libc/sys/arm/Makefile.in: Regenerated.
37
38 2003-02-05 Jonathan Larmour <jifl@eCosCentric.com>
39
40 * libc/stdio/vsprintf.c (vsprintf, _vsprintf_r): Set _file fd to
41 -1 to be sure it cannot later match a valid file fd causing
42 isatty() to return 1.
43 * libc/stdio/asprintf.c (asprintf, _asprintf_r): Ditto.
44 * libc/stdio/sprintf.c (sprintf, _sprintf_r): Ditto.
45 * libc/stdio/vasprintf.c (vasprintf, _vasprintf_r): Ditto.
46
47 2003-02-03 Jeff Johnston <jjohnstn@redhat.com>
48
49 * libc/stdlib/ldtoa.c (_ldtoa_r): Fix code to allocate the format
50 buffer based on the precision, after we have processed the input value
51 in a local buffer and know its relative magnitude.
52
53 2003-01-31 Michael Snyder <msnyder@redhat.com>
54
55 * libc/sys/h8300hms/_exit.c (_exit, __exit): Slip a magic cookie
56 into registers r1 and r2, so that the simulator can distinguish
57 this trap from a breakpoint trap. Copied from libgloss.
58
59 2003-01-31 Michael Snyder <msnyder@redhat.com>
60
61 * libc/sys/h8300hms/crt0.S (_start): Change local label
62 from .loop to .Loop, so that ld and gdb will ignore it.
63
64 2003-01-29 Jason Tishler <jason@tishler.net>
65
66 * libc/include/time.h: Declare nanosleep() under Cygwin.
67
68 2003-01-24 Nick Clifton <nickc@redhat.com>
69
70 * Add sh2e support:
71
72 2002-04-02 Alexandre Oliva <aoliva@redhat.com>
73
74 * libc/machine/sh/asm.h: Added __SH2E__ next to __SH3E__.
75 * libc/machine/sh/setjmp.S: Likewise.
76 * libc/include/machine/ieeefp.h: Likewise.
77
78 2003-01-24 Corinna Vinschen <corinna@vinschen.de>
79
80 * libc/include/sys/unistd.h: Add setregid and setreuid declarations
81 for Cygwin.
82
83 2003-01-21 Anita Kulkarni <anitak@kpit.com>
84
85 * libc/time/difftime.c : Typecast the result to double.
86
87 2003-01-20 Christopher Faylor <cgf@redhat.com>
88
89 * libc/include/sys/unistd.h: Add rresvport declaration for cygwin.
90
91 2003-01-18 Nick Clifton <nickc@redhat.com>
92
93 * libc/include/machine/ieeefp.h : Define __IEEE_BIG_ENDIAN,
94 __SMALL_BITFIELDS and _DOUBLE_IS_32BITS for IP2K.
95
96 2003-01-16 Joel Sherrill <joel@OARcorp.com>
97
98 * libc/sys/rtems/include/limits.h, libc/sys/rtems/sys/param.h,
99 libc/sys/rtems/sys/syslimits.h: Update to be in sync with what
100 constants are defined in each file in the shared versions in
101 libc/include.
102 * libc/sys/rtems/crt0.c: Define extra symbols on SH and HP-PA to
103 autoconf can link programs.
104 * libc/include/machine/types.h: Explicitly specify signed on
105 intXX_t types to ensure they are signed.
106
107 2003-01-14 Christopher Faylor <cgf@redhat.com>
108
109 * libc/time/strftime.c (strftime): Add '%h' and '%l, %k' GNU
110 extensions.
111
112 2003-01-08 Richard Sandiford <rsandifo@redhat.com>
113
114 * configure.host (mips64vr-elf, mips64vrel-elf): New config.
115
116 2003-01-07 Charles Wilson <cwilson@ece.gatech.edu>
117
118 * libc/stdio/sprintf.c: fix typo
119 * libc/stdio/vfprintf.c: fix typo
120
121 2003-01-07 Jeff Johnston <jjohnstn@redhat.com>
122
123 * configure.host: Support long double I/O for x86-linux.
124 * libc/stdlib/ldtoa.c (_ldtoa_r): Fix code to allocate a buffer
125 large enough to hold formatted result.
126 * libc/machine/powerpc/simdldtoa.c (_simdldtoa_r): Ditto.
127
128 2003-01-06 Charles Wilson <cwilson@ece.gatech.edu>
129
130 * Makefile.am: Add vasprintf.
131 * Makefile.in: Regenerated.
132
133 2003-01-06 Charles Wilson <cwilson@ece.gatech.edu>
134
135 * asprintf.c (_asprintf_r): insure both declarations
136 are the same.
137
138 2002-12-28 Christopher Faylor <cgf@redhat.com>
139
140 * libc/include/sys/unistd.h: Under cygwin, just include getopt.h rather
141 than defining getopt directly.
142
143 2002-12-20 Jeff Johnston <jjohnstn@redhat.com>
144
145 * NEWS: Update with 1.11.0 info.
146 * README: Ditto.
147 * acinclude.m4: Change version number to 1.11.0.
148 * aclocal.m4: Regenerated.
149 * configure: Ditto.
150 * doc/aclocal.m4: Ditto.
151 * doc/configure: Ditto.
152 * libc/*/aclocal.m4: Ditto.
153 * libc/*/configure: Ditto.
154 * libc/libc.texinfo: Ditto.
155 * libm/*/aclocal.m4: Ditto.
156 * libm/*/configure: Ditto.
157 * libm/libm.texinfo: Ditto.
158 * libc/sys/linux/shared.ld: Add VERS_1.11.
159
160 2002-12-20 Jeff Johnston <jjohnstn@redhat.com>
161
162 * libc/machine/i386/f_atan2.S: Change copyright from Cygnus
163 Solutions to Red Hat Inc.
164 * libc/machine/i386/f_atan2f.S: Ditto.
165 * libc/machine/i386/f_exp.c: Ditto.
166 * libc/machine/i386/f_expf.c: Ditto.
167 * libc/machine/i386/f_frexp.S: Ditto.
168 * libc/machine/i386/f_frexpf.S: Ditto.
169 * libc/machine/i386/f_ldexp.S: Ditto.
170 * libc/machine/i386/f_ldexpf.S: Ditto.
171 * libc/machine/i386/f_log.S: Ditto.
172 * libc/machine/i386/f_log10.S: Ditto.
173 * libc/machine/i386/f_log10f.S: Ditto.
174 * libc/machine/i386/f_logf.S: Ditto.
175 * libc/machine/i386/f_pow.c: Ditto.
176 * libc/machine/i386/f_powf.c: Ditto.
177 * libc/machine/i386/f_tan.S: Ditto.
178 * libc/machine/i386/f_tanf.S: Ditto.
179 * libc/machine/i386/memchr.S: Ditto.
180 * libc/machine/i386/memcmp.S: Ditto.
181 * libc/machine/i386/memcpy.S: Ditto.
182 * libc/machine/i386/memmove.S: Ditto.
183 * libc/machine/i386/memset.S: Ditto.
184 * libc/machine/i386/strchr.S: Ditto.
185 * libc/machine/i386/strlen.S: Ditto.
186 * libm/machine/i386/f_atan2.S: Ditto.
187 * libm/machine/i386/f_atan2f.S: Ditto.
188 * libm/machine/i386/f_exp.c: Ditto.
189 * libm/machine/i386/f_expf.c: Ditto.
190 * libm/machine/i386/f_frexp.S: Ditto.
191 * libm/machine/i386/f_frexpf.S: Ditto.
192 * libm/machine/i386/f_ldexp.S: Ditto.
193 * libm/machine/i386/f_ldexpf.S: Ditto.
194 * libm/machine/i386/f_log.S: Ditto.
195 * libm/machine/i386/f_log10.S: Ditto.
196 * libm/machine/i386/f_log10f.S: Ditto.
197 * libm/machine/i386/f_logf.S: Ditto.
198 * libm/machine/i386/f_pow.c: Ditto.
199 * libm/machine/i386/f_powf.c: Ditto.
200 * libm/machine/i386/f_tan.S: Ditto.
201 * libm/machine/i386/f_tanf.S: Ditto.
202
203 2002-12-20 Jeff Johnston <jjohnstn@redhat.com>
204
205 * libc/stdlib/environ.c: Update license to Red Hat.
206 * libc/machine/hppa/setjmp.S: Ditto.
207 * libm/test/Makefile.in: Ditto.
208
209 2002-12-19 Jeff Johnston <jjohnstn@redhat.com>
210
211 * configure.host: Remove references to go32.
212 * libc/sys/go32/*: Removed.
213
214 2002-12-16 Kazu Hirata <kazu@cs.umass.edu>
215
216 * libc/include/sys/config.h: Change setting of INT_MAX
217 and UINT_MAX, to use __INT_MAX__ for __H8300__, __H8300H__,
218 __H8300S__. Also consolidate flag settings for these
219 platforms.
220
221 2002-12-10 Joel Sherrill <joel@OARcorp.com>
222
223 * libc/include/machine/setjmp.h: Make sure _JBLEN is defined
224 for i386-rtems targets.
225
226 2002-12-06 Jeff Johnston <jjohnstn@redhat.com>
227
228 * libc/include/stdlib.h (strtof): New prototype (from C99).
229 (strtodf): Changed from prototype to macro which redefines
230 to strtof.
231 * libc/stdlib/atof.c: Change documentation to refer to strtof
232 instead of strtodf.
233 * libc/stdlib/atoff.c (atoff): Change to call strtof instead of
234 strtodf.
235 * libc/stdlib/strtod.c (strtodf): Renamed to strtof.
236 (strtof): New function.
237 * libm/test/convert.c (test_strtodf): Renamed to test_strtof which
238 calls strtof.
239
240 2002-11-27 Christopher Faylor <cgf@redhat.com>
241
242 * libc/string/memset.c (memset): Fix comment.
243
244 2002-11-26 Christopher Faylor <cgf@redhat.com>
245
246 * libc/string/memset.c (memset): Move initialization of 'd' earlier in
247 function.
248
249 2002-11-25 Christopher Faylor <cgf@redhat.com>
250
251 * libc/string/memset.c (memset): Minor optimization: Use new 'd'
252 variable, introduced below, everywhere.
253
254 2002-11-25 Kazu Hirata <kazu@cs.umass.edu>
255
256 * libc/string/memset.c (memset): Make it safe even if
257 sizeof (int) = 2.
258
259 2002-11-22 Joe Buehler <jbuehler@hekimian.com>
260
261 * configure.in: Change check for libc/include in ${CC} to
262 use an intermediate value so as to work with different shells.
263 * configure: Regenerated.
264 * Makefile.in: Ditto.
265
266 2002-11-22 Vijay L. Khuspe <vijayk1@kpit.com>
267
268 * libc/sys/h8300hms/read.c: Add support for normal mode
269 architecture.
270
271 2002-11-20 Ryo Tsuruta <ryo@kitanet.ne.jp>
272
273 * libc/machine/h8300/setjmp.S (setjmp, longjmp): Combine common
274 code for __H8300H__ and __H8300S__. Also return 32-bit return code
275 when -mint32 is used.
276
277 2002-11-18 Nick Clifton <nickc@redhat.com>
278
279 * libc/sys/arm/crt0.S: Add NULL to end of argv array.
280
281 2002-11-14 Jeff Johnston <jjohnstn@redhat.com>
282
283 * testsuite/lib/passfail.exp (newlib_pass_fail): Changed to
284 only issue one pass/fail message for a compile/link/execute.
285 * testsuite/newlib.elix/elix.exp: New file.
286 * testsuite/newlib.elix/tmmap.c: Ditto.
287
288 2002-11-06 Christopher Faylor <cgf@redhat.com>
289
290 * libc/stdlib/malign.c: Don't compile if MALLOC_PROVIDED.
291 * libc/stdlib/mlock.c: Ditto.
292 * libc/stdlib/msize.c: Ditto.
293 * libc/stdlib/msize.c: Ditto.
294 * libc/stdlib/mtrim.c: Ditto.
295 * libc/stdlib/valloc.c: Ditto.
296
297 2002-11-12 Jeff Johnston <jjohnstn@redhat.com>
298
299 * libc/stdlib/ldtoa.c (e64toe): When checking the exponent
300 for inf/nan, make sure that the check ignores the sign bit.
301
302 2002-11-07 Joel Sherrill <joel@OARcorp.com>
303
304 * libc/sys/rtems/machine: New directory.
305 * libc/sys/rtems/machine/limits.h, libc/sys/rtems/machine/param.h,
306 libc/sys/rtems/sys/param.h, libc/sys/rtems/sys/syslimits.h,
307 libc/sys/rtems/sys/utime.h: New files added to make *-rtems newlib
308 targets more BSD like when installed without requiring files to
309 be overwritten at install point when RTEMS itself is installed.
310 * Makefile.am: Pick up system dependent machine .h files such as
311 might be found on a BSD-ish system.
312 * Makefile.in: Regenerate.
313 * libc/include/machine/types.h: When on an RTEMS target, define a
314 few BSD flavor types.
315
316 2002-11-06 Sergey Okhapkin <sos@prospect.com.ru>
317
318 * include/utmp.h: Define WTMP_FILE. Define and use UT_IDLEN.
319
320 2002-11-06 Kazuhiro Fujieda <fujieda@jaist.ac.jp>
321
322 * libc/include/wchar.h: Use _{BEGIN,END}_STD_C instead of extern "C".
323 * libc/include/wctype.h: Ditto.
324
325 2002-11-04 Jeff Johnston <jjohnstn@redhat.com>
326
327 * libc/include/wchar.h: Add extern "C" specifier if C++.
328 * libc/include/wctype.h: Ditto.
329
330 2002-10-18 Jeff Johnston <jjohnstn@redhat.com>
331
332 * testsuite/newlib.wctype/tiswctype.c: New test case.
333 * testsuite/newlib.wctype/twctrans.c: Ditto.
334
335 2002-10-18 Jeff Johnston <jjohnstn@redhat.com>
336
337 * libc/sys/linux/machine/i386/include/endian.h: New file.
338 * libc/sys/linux/machine/i386/include/param.h: Ditto.
339
340 2002-10-18 Jeff Johnston <jjohnstn@redhat.com>
341
342 * libm/machine/i386/aclocal.m4: Regenerated.
343 * libm/machine/i386/configure: Ditto.
344
345 2002-10-18 Jeff Johnston <jjohnstn@redhat.com>
346
347 * testsuite/include/check.h: New header file to use with
348 test cases.
349 * testsuite/lib/newlib.exp: Add testsuite/include directory
350 to list of header files to use.
351 * testsuite/newlib.wctype/twctype.c: New test case for iswctype fns.
352 * testsuite/newlib.wctype/wctype.exp: New file.
353
354 2002-10-11 Graham Stott <graham.stott@btinternet.com>
355 Richard Sandiford <rsandifo@redhat.com>
356
357 * libc/include/sys/config.h (SIZE_T_SMALLER_THAN_LONG): Undefine.
358 * libc/stdlib/mallocr.c (long_sub_size_t): Define in a way that
359 doesn't require the SIZE_T_SMALLER_THAN_LONG macro.
360
361 2002-10-07 Joel Sherrill <joel@OARcorp.com>
362
363 * libc/sys/rtems/crt0.c: Add even more symbols so gcc() can link
364 dummy programs.
365
366 2002-10-07 Joel Sherrill <joel@OARcorp.com>
367
368 * libc/include/pthread.h: Define PTHREAD_CANCELED.
369
370 2002-10-07 Joel Sherrill <joel@OARcorp.com>
371
372 * libc/machine/hppa/DEFS.h, libc/machine/hppa/pcc_prefix.s,
373 libc/machine/hppa/setjmp.S, libc/machine/hppa/DEFS.h: Make this
374 compile with current GNU tools.
375
376 2002-10-07 Jeff Johnston <jjohnstn@redhat.com>
377
378 * Makefile.am: Add EXTRA_DIRS to allow future dependencies on
379 the build library.
380 * configure.in: Ditto.
381 * Makefile.in: Regenerated.
382 * configure: Ditto.
383 * libc/sys/linux/Makefile.am: Add EXTRA_SUBDIRS and EXTRA_SUBLIBS
384 for specifying configured libraries/directories.
385 * libc/sys/linux/configure.in: Ditto.
386 * libc/sys/linux/Makefile.in: Regenerated.
387 * libc/sys/linux/configure: Ditto.
388
389 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
390
391 * libc/include/reent.h: Update documentation at start of file.
392
393 2002-09-27 Jim Wilson <wilson@redhat.com>
394
395 * libc/sys/sysnecv850/crt0.S (start): Delete v850 code for initializing
396 the ctbp register.
397
398 2002-09-27 Jeff Johnston <jjohnstn@redhat.com>
399
400 * libc/ctype/jp2uc.c: Change to use multiple arrays in jp2uc.h.
401 Also convert to EUCJP before using arrays. For values not in
402 the conversion arrays, return WEOF.
403 * libc/ctype/jp2uc.h: Change from one array to a number of
404 arrays to account for the fact that the originating table
405 is not contiguous for the input values since some are invalid.
406
407 2002-09-24 Jeff Johnston <jjohnstn@redhat.com>
408
409 * libc/time/ctime.c: Fix prototype documentation.
410
411 2002-09-24 Corinna Vinschen <corinna@vinschen.de>
412
413 * libc/include/sys/errno.h: Add EOVERFLOW.
414
415 2002-09-20 Jeff Johnston <jjohnstn@redhat.com>
416
417 * libc/include/wctype.h: New file.
418
419 2002-09-20 Jeff Johnston <jjohnstn@redhat.com>
420
421 * libc/ctype/Makefile.am: Add new files.
422 * libc/ctype/Makefile.in: Regenerated.
423 * libc/ctype/ctype.tex: Add new iswxxxx, towxxxx, wctype,
424 and wctrans functions to documentation index.
425 * libc/ctype/iswalnum.c: New file.
426 * libc/ctype/iswalpha.c: Ditto.
427 * libc/ctype/iswblank.c: Ditto.
428 * libc/ctype/iswcntrl.c: Ditto.
429 * libc/ctype/iswctype.c: Ditto.
430 * libc/ctype/iswdigit.c: Ditto.
431 * libc/ctype/iswgraph.c: Ditto.
432 * libc/ctype/iswlower.c: Ditto.
433 * libc/ctype/iswprint.c: Ditto.
434 * libc/ctype/iswpunct.c: Ditto.
435 * libc/ctype/iswspace.c: Ditto.
436 * libc/ctype/iswupper.c: Ditto.
437 * libc/ctype/iswxdigit.c: Ditto.
438 * libc/ctype/jp2uc.c: Ditto.
439 * libc/ctype/jp2uc.h: Ditto.
440 * libc/ctype/local.h: Ditto.
441 * libc/ctype/towctrans.c: Ditto.
442 * libc/ctype/towlower.c: Ditto.
443 * libc/ctype/towupper.c: Ditto.
444 * libc/ctype/utf8alpha.h: Ditto.
445 * libc/ctype/utf8print.h: Ditto.
446 * libc/ctype/utf8punct.h: Ditto.
447 * libc/ctype/wctrans.c: Ditto.
448 * libc/ctype/wctype.c: Ditto.
449 * libc/locale/locale.c (__lc_ctype): New external array to
450 replace static lc_ctype array.
451 * libc/stdlib/mbtowc_r.c: Use __lc_ctype to check current lc_ctype
452 rather than reentrancy structure's _current_locale field.
453 * libc/stdlib/wctomb_r.c: Ditto.
454
455 2002-09-20 Jeff Johnston <jjohnstn@redhat.com>
456
457 * configure.host: Minor comment and formatting changes.
458 * libc/Makefile.am: Add libc_la_DEPENDENCIES.
459 * libc/Makefile.in: Regenerated.
460 * libc/include/sys/config.h: Minor format change.
461
462 2002-09-19 Jeff Johnston <jjohnstn@redhat.com>
463
464 * libc/syscalls/sysfcntl.c (fcntl): Fix typo in preprocessor
465 statement comment.
466
467 2002-09-19 Jeff Johnston <jjohnstn@redhat.com>
468
469 * libc/posix/opendir.c (opendir): Change code to check
470 for HAVE_FCNTL before calling fcntl.
471 * libc/search/hash.c (hash_open): Ditto.
472 * libc/search/hash_page.c (open_tmp): Ditto.
473 * libc/reent/Makefile.am: Add fcntlr.c.
474 * libc/reent/Makefile.in: Regenerated.
475 * libc/reent/fcntlr.c: New file.
476 * libc/stdio/fdopen.c (_fdopen_r): Change to call _fcntl_r
477 instead of _fcntl when HAVE_FCNTL flag is set.
478 * libc/syscalls/sysfcntl.c (fcntl): Check for HAVE_FCNTL flag
479 to see if _fcntl or _fcntl_r should be called. If flag is not
480 set, default to ENOSYS stub.
481
482 2002-09-16 Jeff Johnston <jjohnstn@redhat.com>
483
484 * libc/include/wchar.h (mbstate_t): Change protective flag to
485 be _MBSTATE_T.
486 * libc/include/sys/_types.h (_mbstate_t): Remove protective flag.
487 [__CYGWIN__]: Remove special code that defines mbstate_t and WEOF
488 for Cygwin.
489 * libc/sys/linux/sys/_types.h (_mbstate_t): Remove protective flag.
490
491 2002-09-11 Jeff Johnston <jjohnstn@redhat.com>
492
493 * acinclude.m4 (enable-newlib-mb): Change check to
494 default newlib_mb variable to empty string rather than "no".
495 * configure.host: Remove hard-coding of -DMB_CAPABLE for
496 x86-linux and Cygwin. Add code to check for newlib_mb
497 being unset in which case set to "yes" for x86-linux and
498 Cygwin. Change check for newlib_mb being "yes" to allow
499 for an empty string.
500 * configure.in (_MB_LEN_MAX): New AC_DEFINE.
501 * newlib.hin (_MB_LEN_MAX): New define to configure.
502 * aclocal.m4: Regenerated.
503 * configure: Ditto.
504 * libc/include/limits.h: New file.
505 * libc/sys/linux/include/limits.h: Ditto.
506 * doc/aclocal.m4 doc/configure libc/aclocal.m4
507 libc/configure libc/include/%redact libc/machine/aclocal.m4
508 libc/machine/configure libc/machine/a29k/aclocal.m4
509 libc/machine/a29k/configure libc/machine/arm/aclocal.m4
510 libc/machine/arm/configure libc/machine/d10v/aclocal.m4
511 libc/machine/d10v/configure libc/machine/d30v/aclocal.m4
512 libc/machine/d30v/configure libc/machine/fr30/aclocal.m4
513 libc/machine/fr30/configure libc/machine/frv/aclocal.m4
514 libc/machine/frv/configure libc/machine/h8300/aclocal.m4
515 libc/machine/h8300/configure libc/machine/h8500/aclocal.m4
516 libc/machine/h8500/configure libc/machine/hppa/aclocal.m4
517 libc/machine/hppa/configure libc/machine/i386/aclocal.m4
518 libc/machine/i386/configure libc/machine/i960/aclocal.m4
519 libc/machine/i960/configure libc/machine/m32r/aclocal.m4
520 libc/machine/m32r/configure libc/machine/m68hc11/aclocal.m4
521 libc/machine/m68hc11/configure libc/machine/m68k/aclocal.m4
522 libc/machine/m68k/configure libc/machine/m88k/aclocal.m4
523 libc/machine/m88k/configure libc/machine/mips/aclocal.m4
524 libc/machine/mips/configure libc/machine/mn10200/aclocal.m4
525 libc/machine/mn10200/configure libc/machine/mn10300/aclocal.m4
526 libc/machine/mn10300/configure libc/machine/necv70/aclocal.m4
527 libc/machine/necv70/configure libc/machine/powerpc/aclocal.m4
528 libc/machine/powerpc/configure libc/machine/sh/aclocal.m4
529 libc/machine/sh/configure libc/machine/sparc/aclocal.m4
530 libc/machine/sparc/configure libc/machine/tic80/aclocal.m4
531 libc/machine/tic80/configure libc/machine/v850/aclocal.m4
532 libc/machine/v850/configure libc/machine/w65/aclocal.m4
533 libc/machine/w65/configure libc/machine/xscale/aclocal.m4
534 libc/machine/xscale/configure
535 libc/machine/xstormy16/aclocal.m4
536 libc/machine/xstormy16/configure libc/machine/z8k/aclocal.m4
537 libc/machine/z8k/configure libc/sys/aclocal.m4
538 libc/sys/configure libc/sys/a29khif/aclocal.m4
539 libc/sys/a29khif/configure libc/sys/arc/aclocal.m4
540 libc/sys/arc/configure libc/sys/arm/aclocal.m4
541 libc/sys/arm/configure libc/sys/cygwin/aclocal.m4
542 libc/sys/cygwin/configure libc/sys/d10v/aclocal.m4
543 libc/sys/d10v/configure libc/sys/decstation/aclocal.m4
544 libc/sys/decstation/configure libc/sys/go32/aclocal.m4
545 libc/sys/go32/configure libc/sys/h8300hms/aclocal.m4
546 libc/sys/h8300hms/configure libc/sys/h8500hms/aclocal.m4
547 libc/sys/h8500hms/configure libc/sys/idt/aclocal.m4
548 libc/sys/idt/configure libc/sys/linux/aclocal.m4
549 libc/sys/linux/configure libc/sys/linux/include/%redact
550 libc/sys/linux/machine/aclocal.m4
551 libc/sys/linux/machine/configure
552 libc/sys/linux/machine/i386/aclocal.m4
553 libc/sys/linux/machine/i386/configure
554 libc/sys/m88kbug/aclocal.m4 libc/sys/m88kbug/configure
555 libc/sys/mmixware/aclocal.m4 libc/sys/mmixware/configure
556 libc/sys/netware/aclocal.m4 libc/sys/netware/configure
557 libc/sys/rtems/aclocal.m4 libc/sys/rtems/configure
558 libc/sys/sh/aclocal.m4 libc/sys/sh/configure
559 libc/sys/sparc64/aclocal.m4 libc/sys/sparc64/configure
560 libc/sys/sun4/aclocal.m4 libc/sys/sun4/configure
561 libc/sys/sysmec/aclocal.m4 libc/sys/sysmec/configure
562 libc/sys/sysnec810/aclocal.m4 libc/sys/sysnec810/configure
563 libc/sys/sysnecv850/aclocal.m4 libc/sys/sysnecv850/configure
564 libc/sys/sysvi386/aclocal.m4 libc/sys/sysvi386/configure
565 libc/sys/sysvnecv70/aclocal.m4 libc/sys/sysvnecv70/configure
566 libc/sys/tic80/aclocal.m4 libc/sys/tic80/configure
567 libc/sys/w65/aclocal.m4 libc/sys/w65/configure
568 libc/sys/z8ksim/aclocal.m4 libc/sys/z8ksim/configure
569 libm/aclocal.m4 libm/configure: Regenerated.
570
571 2002-09-09 Jeff Johnston <jjohnstn@redhat.com>
572
573 * libc/sys/linux/machine/i386/crt0.c (_start): Remove
574 code that clears the .bss section.
575
576 2002-09-09 Jeff Johnston <jjohnstn@redhat.com>
577
578 * libc/include/sys/_types.h (_mbstate_t): Changed to use
579 unsigned char internally.
580 * libc/sys/linux/sys/_types.h: Ditto.
581 * libc/include/sys/reent.h
582 * libc/stdlib/mblen.c (mblen): Use function-specific state
583 value from default reentrancy structure.
584 * libc/stdlib/mblen_r.c (_mblen_r): If return code from
585 _mbtowc_r is less than 0, reset state __count value and
586 return -1.
587 * libc/stdlib/mbrlen.c (mbrlen): If the input state pointer
588 is NULL, use the function-specific pointer provided in the
589 default reentrancy structure.
590 * libc/stdlib/mbrtowc.c: Add reentrant form of function.
591 If input state pointer is NULL, use function-specific area
592 provided in reentrancy structure.
593 * libc/stdlib/mbsrtowcs.c: Ditto.
594 * libc/stdlib/wcrtomb.c: Ditto.
595 * libc/stdlib/wcsrtombs.c: Ditto.
596 * libc/stdlib/mbstowcs.c: Reformat.
597 * libc/stdlib/wcstombs.c: Ditto.
598 * libc/stdlib/mbstowcs_r.c (_mbstowcs_r): If an error occurs,
599 reset the state's __count value and return -1.
600 * libc/stdlib/mbtowc.c: Ditto.
601 * libc/stdlib/mbtowc_r.c (_mbtowc_r): Add restartable functionality.
602 If number of bytes is used up before completing a valid multibyte
603 character, return -2 and save the state.
604 * libc/stdlib/wctomb_r.c (_wctomb_r): Define __state as __count
605 and change some __count references to __state for clarity.
606
607 2002-09-06 Jeff Johnston <jjohnstn@redhat.com>
608
609 * libc/include/sys/config.h (MB_LEN_MAX): Removed as this
610 is defined by <limits.h>.
611
612 2002-09-05 Kazuhiro Fujieda <fujieda@jaist.ac.jp>
613
614 * libc/include/wchar.h (WCHAR_MAX): Only define if not already
615 defined.
616
617 2002-09-04 Kazuhiro Fujieda <fujieda@jaist.ac.jp>
618
619 * libc/include/sys/config.h: Define accordingly __WCHAR_MAX__.
620 * libc/include/wchar.h: Define WCHAR_MIN as 0 and WCHAR_MAX as
621 __WCHAR_MAX__ or 0x7fffffffu.
622 * libc/string/wcscmp.c: Delete wrong and unnecessary type cast.
623 * libc/string/wcsncmp.c: Ditto.
624
625 2002-09-03 Jeff Johnston <jjohnstn@redhat.com>
626
627 * libc/string/wcschr.c: Add include of <stddef.h>.
628 * libc/string/wcspbrk.c: Ditto.
629 * libc/string/wcsrchr.c: Ditto.
630 * libc/string/wcsstr.c: Ditto.
631
632 2002-09-03 Jeff Johnston <jjohnstn@redhat.com>
633
634 * libc/include/sys/_types.h (_flock_t): Added.
635 * libc/include/sys/lock.h (__lock_try_acquire): New interface.
636 (__lock_try_acquire_recursive): Ditto.
637 * libc/include/sys/reent.h (__sFILE, __sFILE64): Add new
638 _lock field.
639 * libc/stdio/findfp.c (std)[!__SINGLE_THREAD__]: Initialize _lock
640 field.
641 * libc/stdio/fopen.c (_fopen_r)[!__SINGLE_THREAD__]: Ditto.
642 * libc/stdio64/fopen64.c (_fopen64_r)[!__SINGLE_THREAD__]: Ditto.
643 * libc/sys/linux/include/time.h (struct timespec): Moved from
644 <sys/types.h> and added check for __need_timespec flag so type
645 can be defined by itself.
646 * libc/sys/linux/sys/_types.h (_flock_t): New type.
647 * libc/sys/linux/sys/types.h (struct timespec): Moved to
648 <time.h>.
649
650 2002-08-29 Thomas Fitzsimmons <fitzsim@redhat.com>
651
652 * libc/sys/linux/argp: New directory.
653 * libc/sys/linux/getopt.c: New file.
654 * libc/sys/linux/getopt1.c: New file.
655 * libc/sys/linux/getoptlong.c: Remove file.
656 * libc/sys/linux/include/argp.h: New file.
657 * libc/sys/linux/Makefile.am: Define argp_dir and ARGP_LIB,
658 based on ELIX level.
659 (SUBDIRS): Add argp_dir.
660 (SUBLIBS): Add ARGP_LIB.
661 (ELIX_2_OBJS): Add getopt.$(oext), getopt1.$(oext), remove
662 getopt_long.$(oext).
663 * libc/sys/linux/configure.in (AC_OUTPUT): Add argp/Makefile.
664
665 2002-08-29 Jeff Johnston <jjohnstn@redhat.com>
666
667 * libc/libc.texinfo: Add node reference to wide-character strings.
668 * libc/string/wcstrings.tex: New file.
669 * libc/string/strtok_r.c: Remove outdated advertising clause.
670 * libc/string/Makefile.am (doc): Add wide-character string
671 chapter to documentation.
672 * libc/string/Makefile.in: Regenerated.
673
674 2002-08-29 Kazuhiro Fujieda <fujieda@jaist.ac.jp>
675
676 * libc/include/wchar.h: Define NULL. Define WEOF more general
677 way. Declare functions in newlib manner.
678 * libc/stdlib/Makefile.am: Delete wmem*.c
679 * libc/stdlib/Makefile.in: Regenerated.
680 * libc/stdlib/wmemchr.c: Delete.
681 * libc/stdlib/wmemcmp.c: Ditto.
682 * libc/stdlib/wmemcpy.c: Ditto.
683 * libc/stdlib/wmemmove.c: Ditto.
684 * libc/stdlib/wmemset.c: Ditto.
685 * libc/string/Makefile.am: Add wmem*.c and wcs*.c.
686 * libc/string/Makefile.in: Regenerated.
687 * libc/string/wcscat.c: New file derived from the NetBSD C Library.
688 * libc/string/wcschr.c: Ditto.
689 * libc/string/wcscmp.c: Ditto.
690 * libc/string/wcscpy.c: Ditto.
691 * libc/string/wcscspn.c: Ditto.
692 * libc/string/wcslcat.c: Ditto.
693 * libc/string/wcslcpy.c: Ditto.
694 * libc/string/wcslen.c: Ditto.
695 * libc/string/wcsncat.c: Ditto.
696 * libc/string/wcsncmp.c: Ditto.
697 * libc/string/wcsncpy.c: Ditto.
698 * libc/string/wcspbrk.c: Ditto.
699 * libc/string/wcsrchr.c: Ditto.
700 * libc/string/wcsspn.c: Ditto.
701 * libc/string/wcsstr.c: Ditto.
702 * libc/string/wmemchr.c: Ditto.
703 * libc/string/wmemcmp.c: Ditto.
704 * libc/string/wmemcpy.c: Ditto.
705 * libc/string/wmemmove.c: Ditto.
706 * libc/string/wmemset.c: Ditto.
707
708 2002-08-29 Jeff Johnston <jjohnstn@redhat.com>
709
710 * libc/locale/locale.c (_setlocale_r)[MB_CAPABLE]: Fix so
711 default locale "" is accepted for LC_CTYPE or LC_MESSAGES
712 and is treated as if "C" was specified.
713
714 2002-08-28 Jeff Johnston <jjohnstn@redhat.com>
715
716 * Makefile.am (install-data-local): Move install of build
717 newlib.h after installing headers in libc/include so as to
718 overwrite default newlib.h.
719 * Makefile.in: Regenerated.
720
721 2002-08-28 Jeff Johnston <jjohnstn@redhat.com>
722
723 * libc/include/newlib.h: New file for tools that use newlib
724 headers but don't build newlib first (e.g. gcc).
725
726 2002-08-28 Jeff Johnston <jjohnstn@redhat.com>
727
728 * libc/stdlib/wmemchr.c: Explicitly include <_ansi.h>.
729 * libc/stdlib/wmemcmp.c: Ditto.
730 * libc/stdlib/wmemcpy.c: Ditto.
731 * libc/stdlib/wmemmove.c: Ditto.
732 * libc/stdlib/wmemset.c: Ditto.
733
734 2002-08-27 Egor Duda <deo@logos-m.ru>
735
736 * libc/stdlib/wmemchr.c: New file.
737 * libc/stdlib/wmemcmp.c: Ditto.
738 * libc/stdlib/wmemcpy.c: Ditto.
739 * libc/stdlib/wmemmove.c: Ditto.
740 * libc/stdlib/wmemset.c: Ditto.
741 * libc/stdlib/Makefile.am (GENERAL_SOURCES): Add new files.
742 * configure.host: Default -DMB_CAPABLE for cygwin.
743 * libc/include/wchar.h: Declare wmemchr(), wmemcmp(), wmemcpy(),
744 wmemmove() and wmemset(). Add include of <_ansi.h>.
745 * libc/stdlib/Makefile.in: Regenerate.
746
747 2002-08-27 Jeff Johnston <jjohnstn@redhat.com>
748
749 * configure.host: Remove _ELIX_LEVEL flag setting.
750 * Makefile.am(stmp-targ-include): Copy newlib.h to targ-include.
751 (install-data-local): Install newlib.h.
752 * Makefile.in: Regenerated.
753 * aclocal.m4: Ditto.
754 * configure: Ditto.
755 * configure.in: Add AM_CONFIG_HEADER to generate newlib.h based on
756 newlib.hin. Add AC_DEFINE_UNQUOTED entries for _ELIX_LEVEL
757 and _NEWLIB_VERSION to fill in newlib.h header file entries.
758 In AC_OUTPUT statement, unset ac_file so multilib support does
759 not use last ac_file temporary used in newlib.h configuration.
760 * libc/include/_ansi.h: Include <newlib.h>.
761 * newlib.hin: New template file for newlib.h.
762 * stamp-h.in: New file.
763
764 2002-08-26 Wu Yongwei <adah@netstd.com>
765
766 * time.h (timezonevar): Change "#if" to "#ifdef".
767
768 2002-08-26 Jeff Johnston <jjohnstn@redhat.com>
769
770 * Makefile.am(LIBC_OBJECTLISTS): Add STDIO64_OBJECTLIST.
771 * Makefile.in: Regenerated.
772 * acinclude.m4: Add support for --enable-newlib-elix-level option.
773 * aclocal.m4: Regenerated.
774 * configure: Ditto.
775 * configure.host: Add code to define _ELIX_LEVEL if
776 --enable-newlib-elix-level option is used.
777 * configure.in:
778 * libc/aclocal.m4: Regenerated.
779 * libc/configure: Ditto.
780 * libc/argz/Makefile.am: Add EL/IX level checking.
781 * libc/argz/Makefile.in: Regenerated.
782 * libc/argz/dummy.c: New file.
783 * libc/ctype/Makefile.am: Add EL/IX level checking.
784 * libc/ctype/Makefile.in: Regenerated.
785 * libc/locale/Makefile.am: Add EL/IX level checking.
786 * libc/locale/Makefile.in: Regenerated.
787 * libc/posix/Makefile.am: Add EL/IX level checking.
788 * libc/posix/Makefile.in: Regenerated.
789 * libc/posix/telldir.c: Add EL/IX level checking.
790 * libc/reent/Makefile.am: Ditto.
791 * libc/reent/fstat64r.c: Ditto.
792 * libc/reent/lseek64r.c: Ditto.
793 * libc/reent/open64r.c: Ditto.
794 * libc/reent/Makefile.in: Regenerated.
795 * libc/search/Makefile.am: Add EL/IX level checking.
796 * libc/search/Makefile.in: Regenerated.
797 * libc/stdio/Makefile.am: Add EL/IX level checking.
798 * libc/stdio/Makefile.in: Regenerated.
799 * libc/stdio64/Makefile.am: Add EL/IX level checking.
800 * libc/stdio64/Makefile.in: Regenerated.
801 * libc/stdio64/dummy.c: New file.
802 * libc/stdio64/fgetpos64.c: Fix so _LARGE64_FILES macro is checked
803 after first include.
804 * libc/stdio64/fopen64.c: Ditto.
805 * libc/stdio64/freopen64.c: Ditto.
806 * libc/stdio64/fseeko64.c: Ditto.
807 * libc/stdio64/fsetpos64.c: Ditto.
808 * libc/stdio64/ftello64.c: Ditto.
809 * libc/stdio64/tmpfile64.c: Ditto.
810 * libc/stdlib/Makefile.am: Add EL/IX level checking.
811 * libc/stdlib/Makefile.in: Regenerated.
812 * libc/stdlib/mstats.c: Add EL/IX level checking.
813 * libc/string/Makefile.am: Ditto.
814 * libc/string/Makefile.in: Regenerated.
815 * libc/sys/linux/Makefile.am: Add EL/IX level checking.
816 * libc/sys/linux/Makefile.in: Regenerated.
817 * libc/sys/linux/aclocal.m4: Ditto.
818 * libc/sys/linux/configure: Ditto.
819 * libc/sys/linux/aio.c: Add EL/IX level checking.
820 * libc/sys/linux/ftok.c: Ditto.
821 * libc/sys/linux/getdate.c: Ditto.
822 * libc/sys/linux/ids.c: Ditto.
823 * libc/sys/linux/inode.c: Ditto.
824 * libc/sys/linux/io.c: Ditto.
825 * libc/sys/linux/process.c: Ditto.
826 * libc/sys/linux/resource.c: Ditto.
827 * libc/sys/linux/sched.c: Ditto.
828 * libc/sys/linux/sig.c: Ditto.
829 * libc/sys/linux/termios.c: Ditto.
830 * libc/sys/linux/wait.c: Ditto plus add __waitpid and
831 __libc___waitpid weak aliases.
832 * libc/sys/linux/machine/i386/syscall.h: Add new _base macros
833 that generate the code for a syscall, but do not create a
834 weak alias.
835 * libc/syscalls/Makefile.am: Add EL/IX level checking.
836 * libc/syscalls/Makefile.in: Regenerated.
837 * libc/time/tzset_r.c: Change to replace strdup with equivalent
838 functionality.
839 * libc/unix/Makefile.am: Add EL/IX level checking.
840 * libc/unix/Makefile.in: Regenerated.
841
842 2002-08-26 Christopher Faylor <cgf@redhat.com>
843
844 * libc/include/malloc.h: On cygwin, define malloc _r functions as
845 wrapper macros to standard malloc functions.
846 * libc/include/stdlib.h: Ditto.
847 * configure.host: Always define MALLOC_PROVIDED on cygwin.
848
849 2002-08-22 Thomas Fitzsimmons <fitzsim@redhat.com>
850
851 * libc/include/langinfo.h: New file.
852 * libc/include/wchar.h: Likewise.
853 * libc/include/sys/syslimits.h: Likewise.
854 * libc/locale/fix_grouping.c: Likewise.
855 * libc/locale/ldpart.c: Likewise.
856 * libc/locale/ldpart.h: Likewise.
857 * libc/locale/lmessages.c: Likewise.
858 * libc/locale/lmessages.h: Likewise.
859 * libc/locale/lmonetary.c: Likewise.
860 * libc/locale/lmonetary.h: Likewise.
861 * libc/locale/lnumeric.c: Likewise.
862 * libc/locale/lnumeric.h: Likewise.
863 * libc/locale/nl_langinfo.3: Likewise.
864 * libc/locale/nl_langinfo.c: Likewise.
865 * libc/locale/timelocal.c: Likewise.
866 * libc/locale/timelocal.h: Likewise.
867 * libc/stdlib/btowc.c: Likewise.
868 * libc/stdlib/mbrlen.c: Likewise.
869 * libc/stdlib/mbrtowc.c: Likewise.
870 * libc/stdlib/mbsinit.c: Likewise.
871 * libc/stdlib/mbsrtowcs.c: Likewise.
872 * libc/stdlib/wcrtomb.c: Likewise.
873 * libc/stdlib/wcsrtombs.c: Likewise.
874 * libc/stdlib/wctob.c: Likewise.
875 * libc/sys/linux/prof-freq.c: Likewise.
876 * libc/sys/linux/profile.c: Likewise.
877 * libc/sys/linux/machine/i386/dl-procinfo.c: Likewise.
878 * libc/sys/linux/machine/i386/dl-procinfo.h: Likewise.
879 * libc/include/stdlib.h: Change re-entrant functions to take
880 mbstate_t pointers.
881 * libc/include/sys/_types.h: Define _mbstate_t.
882 * libc/include/sys/config.h (MB_LEN_MAX): New macro.
883 * libc/include/sys/errno.h (EILSEQ): New error code.
884 * libc/include/sys/reent.h: Include wchar.h. Change reentrant
885 structure to use mbstate_t.
886 * libc/locale/Makefile.am (LIB_SOURCES): Add new files.
887 * libc/machine/powerpc/vfprintf.c: Use mbstate_t.
888 * libc/machine/powerpc/vfscanf.c: Likewise.
889 * libc/stdio/getdelim.c: Reallocate buffer only when necessary.
890 * libc/stdio/vfprintf.c: Likewise.
891 * libc/stdio/vfscanf.c: Likewise.
892 * libc/stdlib/Makefile.am (LIB_SOURCES): Add new files.
893 * libc/stdlib/mblen.c: Use mbstate_t.
894 * libc/stdlib/mblen_r.c: Likewise.
895 * libc/stdlib/mbstowcs.c: Likewise.
896 * libc/stdlib/mbstowcs_r.c: Likewise.
897 * libc/stdlib/mbtowc.c: Likewise.
898 * libc/stdlib/mbtowc_r.c: Likewise.
899 * libc/stdlib/wcstombs.c: Likewise.
900 * libc/stdlib/wcstombs_r.c: Likewise.
901 * libc/stdlib/wctomb_r.c: Likewise.
902 * libc/sys/linux/Makefile.am (LIB_SOURCES): Add prof-freq.c and
903 profile.c.
904 * libc/sys/linux/machine/i386/Makefile.am (LIB_SOURCES): Add
905 dl-procinfo.c.
906 * libc/sys/linux/sys/errno.h (EILSEQ): New error code.
907 * libc/sys/linux/sys/types.h (off_t): Define type.
908 * testsuite/newlib.locale/UTF-8.c: Change locale name from UTF-8
909 to C-UTF-8.
910 * testsuite/newlib.locale/UTF-8.exp: Likewise.
911
912 2002-08-20 Casper S. Hornstrup <chorns@users.sourceforge.net>
913
914 * libc/stdlib/mallocr.c: #include windows.h on Win32.
915 (AlignPage): Continue macro on next line.
916
917 2002-08-19 Jeff Johnston <jjohnstn@redhat.com>
918
919 * libc/sys/linux/include/pthread.h: New file.
920
921 2002-08-19 Jeff Johnston <jjohnstn@redhat.com>
922
923 * libc/include/sys/types.h: Support __need_inttypes macro
924 that only sets the __intxx and __uintxx types.
925 * libc/machine/powerpc/Makefile.am: Add stdlib to include directories
926 to get mprec.h.
927 * libc/machine/powerpc/Makefile.in: Regenerated.
928 * libc/machine/powerpc/vfprintf.c: Fix state variable type.
929 * libc/machine/powerpc/vfscanf.c: Fix state variable type. Remove
930 redundant fixed-point conversion prototypes.
931 * libc/machine/powerpc/machine/stdlib.h[__SPE__]: Include <sys/types.h>
932 after setting __need_inttypes.
933
934 2002-08-18 Christopher Faylor <cgf@redhat.com>
935
936 * libc/include/sys/unistd.h: Add getsid declaration for cygwin.
937
938 2002-08-17 Jeff Johnston <jjohnstn@redhat.com>
939
940 * libc/include/sys/config.h[__PPC__][__SPE__]: Set
941 _LONG_DOUBLE to double.
942
943 2002-08-17 Jeff Johnston <jjohnstn@redhat.com>
944
945 * configure.host: Add powerpc*-*-eabispe* configuration.
946 * libc/machine/powerpc/atosfix16.c: New fixed-point conversion file.
947 * libc/machine/powerpc/atosfix32.c: Ditto.
948 * libc/machine/powerpc/atosfix64.c: Ditto.
949 * libc/machine/powerpc/atoufix16.c: Ditto.
950 * libc/machine/powerpc/atoufix32.c: Ditto.
951 * libc/machine/powerpc/atoufix64.c: Ditto.
952 * libc/machine/powerpc/fix64.h: Ditto.
953 * libc/machine/powerpc/simdldtoa.c: Ditto.
954 * libc/machine/powerpc/strtosfix16.c: Ditto.
955 * libc/machine/powerpc/strtosfix32.c: Ditto.
956 * libc/machine/powerpc/strtosfix64.c: Ditto.
957 * libc/machine/powerpc/strtoufix16.c: Ditto.
958 * libc/machine/powerpc/strtoufix32.c: Ditto.
959 * libc/machine/powerpc/strtoufix64.c: Ditto.
960 * libc/machine/powerpc/ufix64toa.c: Ditto.
961 * libc/machine/powerpc/configure.in: Add check for
962 powerpc*-eabispe and add fixed-point conversion functions.
963 * libc/machine/powerpc/configure: Regenerated.
964 * libc/machine/powerpc/vfprintf.c[__SPE__]: Add support for
965 %r and %R format specifiers which handle fixed-point data.
966 * libc/machine/powerpc/vfscanf.c[__SPE__]: Ditto.
967 * libc/machine/powerpc/machine/stdlib.h[__SPE__]: Add fixed-point
968 function prototypes.
969
970 2002-08-17 Jeff Johnston <jjohnstn@redhat.com>
971
972 * Makefile.am: Move cmath stuff into libc/sys/linux.
973 * Makefile.in: Regenerated.
974 * configure.host: Default -DMB_CAPABLE for x86-linux.
975 * libc/include/reent.h: Define _sbrk to take signed int argument.
976 * libc/include/sys/unistd.h: Ditto for _sbrk_r and sbrk.
977 * libc/locale/locale.c[MB_CAPABLE]: Add LC_MESSAGES support and
978 make locale name checking more efficient. Also allow "C-ISO-8859-1"
979 locale for LC_CTYPE and LC_MESSAGES.
980 * libc/reent/sbrkr.c: Change prototype to take ptrdiff_t.
981 * libc/sys/linux/brk.c: Change sbrk prototype.
982 * libc/sys/linux/include/time.h: Remove Cygwin stuff and
983 include <sys/features.h>.
984 (CLOCK_THREAD_CPUTIME): Renamed to CLOCK_THREAD_CPUTIME_ID.
985 (CLOCK_PROCESS_CPUTIME): Renamed to CLOCK_PROCESS_CPUTIME_ID.
986 * libc/sys/linux/sys/cdefs.h: Replace with glibc sys/cdefs.h
987 with a few local additions.
988 * libc/sys/linux/sys/features.h: New file.
989 * libc/sys/linux/sys/unistd.h: Change _sbrk_r and sbrk prototypes
990 to take signed argument.
991 * libc/syscalls/syssbrk.c: Change sbrk, _sbrk_r, and _sbrk
992 prototypes to take signed size argument.
993
994 2002-08-16 Thomas Fitzsimmons <fitzsim@redhat.com>
995
996 * libc/sys/linux/cmath: New directory.
997 * libc/sys/linux/include/cmathcalls.h: New file.
998 * libc/sys/linux/include/complex.h: New file.
999 * libc/sys/linux/machine/i386/huge_val.h: New file
1000 * libm/math/w_sincos.c: New file
1001 * libm/math/wf_sincos.c: New file
1002 * libm/mathfp/s_sincos.c: New file
1003 * libm/mathfp/sf_sincos.c: New file
1004 * Makefile.am (LIBC_OBJECTLISTS): Add cmath/objectlist.awk.in.
1005 * libc/include/math.h: Add sincos and sincosf declarations.
1006 * libc/sys/linux/Makefile.am (SUBDIRS): Add cmath.
1007 (SUBLIBS): Likewise.
1008 * libc/sys/linux/configure.in (AC_OUTPUT): Add cmath.
1009 * libm/math/Makefile.am (src): Add w_sincos.c.
1010 (fsrc): Add wf_sincos.c.
1011 * libm/mathfp/Makefile.am (src): Add s_sincos.c
1012 (fsrc): Add sf_sincos.c.
1013
1014 2002-08-12 Jeff Johnston <jjohnstn@redhat.com>
1015
1016 * libc/sys/linux/machine/i386/crt0.c (__bss_start,_end):
1017 Declare as extern chars and use the address operator to
1018 properly use values set in linker script.
1019
1020 2002-08-09 Jason Tishler <jason@tishler.net>
1021
1022 * libc/stdlib/mallocr.c: Include <limits.h>.
1023 (request2size): Change macro to do
1024 unsigned long comparisons and avoid signed overflow.
1025 (mALLOc): Add overflow check for the number of bytes to allocate.
1026 (rEALLOc): Ditto.
1027
1028 2002-08-09 Jeff Johnston <jjohnstn@redhat.com>
1029
1030 * configure.host: Add check for --enable-newlib-io-pos-args
1031 and define WANT_IO_POS_ARGS flag if enabled. Define
1032 the flag by default for x86-linux configurations.
1033 * configure.in: Add support for --enable-newlib-io-pos-args.
1034 * libc/configure.in: Ditto.
1035 * configure: Regenerated.
1036 * libc/configure: Ditto.
1037 * libc/stdio/Makefile.am: Specify -fshort-enums for compiling
1038 vfprintf.c and vfiprintf.c.
1039 * libc/stdio/Makefile.in: Regenerated.
1040 * libc/stdio/vfprintf.c: Add positional argument support that
1041 is enabled by compiling with -DWANT_IO_POS_ARGS.
1042
1043 2002-08-07 Richard Sandiford <rsandifo@redhat.com>
1044
1045 * libc/include/machine/setjmp.h: For mips, define _JBLEN based
1046 based on __mips_soft_float rather than __mips64.
1047 * libc/machine/mips/setjmp.S: Provide hard and soft float versions
1048 of both 32-bit and 64-bit code.
1049
1050 2002-08-04 Christopher Faylor <cgf@redhat.com>
1051
1052 * libc/stdio/popen.c (popen): Allow "rb", "rt", "wb", and "wt"
1053 arguments for popen to match similar functionality in fopen.
1054
1055 2002-07-29 Pierre Humblet <pierre.humblet@ieee.org>
1056
1057 * libc/include/sys/unistd.h: Add setgroups prototype for Cygwin.
1058
1059 2002-07-29 Jeff Johnston <jjohnstn@redhat.com>
1060
1061 * libc/sys/linux/Makefile.am: Add aio64.c.
1062 * libc/sys/linux/Makefile.in: Regenerated.
1063 * libc/sys/linux/aio.c (aio_init): ENOSYS stub added.
1064 * libc/sys/linux/aio64.c: New file.
1065
1066 2002-07-26 Jeff Johnston <jjohnstn@redhat.com>
1067
1068 * libc/include/sys/param.h (MAX, MIN): Added macros.
1069 * libc/sys/linux/Makefile.am: Add new files.
1070 * libc/sys/linux/Makefile.in: Regenerated.
1071 * libc/sys/linux/sys/stat.h: Add *stat64 prototypes.
1072 * libc/sys/linux/inode.c (fchdir): Added syscall.
1073 * libc/sys/linux/ftw.c: New file.
1074 * libc/sys/linux/ftw64.c: Ditto.
1075 * libc/sys/linux/getwd.c: Ditto.
1076 * libc/sys/linux/scandir64.c: Ditto.
1077 * libc/sys/linux/strverscmp.c: Ditto.
1078 * libc/sys/linux/versionsort.c: Ditto.
1079 * libc/sys/linux/versionsort64.c: Ditto.
1080
1081 2002-07-26 Jeff Johnston <jjohnstn@redhat.com>
1082
1083 * libc/string/strings.tex: Fix typo for memccpy.
1084
1085 2002-07-25 Jeff Johnston <jjohnstn@redhat.com>
1086
1087 * libc/sys/linux/io64.c (truncate64, ftruncate64): Added.
1088 * libc/sys/linux/sys/types.h (off64_t): Definition added.
1089
1090 2002-07-25 Jeff Johnston <jjohnstn@redhat.com>
1091
1092 * libc/sys/linux/Makefile.am: Add fclean.c.
1093 * libc/sys/linux/Makefile.in: Regenerated.
1094 * libc/sys/linux/fclean.c: New file.
1095
1096 2002-07-25 Jeff Johnston <jjohnstn@redhat.com>
1097
1098 * libc/sys/linux/Makefile.am: Add confstr.c.
1099 * libc/sys/linux/Makefile.in: Regenerated.
1100 * libc/sys/linux/confstr.c: New file.
1101 * libc/sys/linux/confstr.h: Ditto.
1102 * libc/sys/linux/sys/unistd.h: Include <features.h> and
1103 <bits/environments.h>.
1104
1105 2002-07-25 Jeff Johnston <jjohnstn@redhat.com>
1106
1107 * libc/sys/linux/config.h (__set_errno): Macro definition removed.
1108 * libc/sys/linux/fpathconf.c (__set_errno): Ditto.
1109 * libc/sys/linux/libc-internal.h (__set_errno): Ditto.
1110 * libc/sys/linux/pathconf.c (__set_errno): Ditto.
1111 * libc/sys/linux/ttyname_r.c (__set_errno): Ditto.
1112 * libc/sys/linux/sys/errno.h (__set_errno): Macro definition added.
1113
1114 2002-07-24 Jeff Johnston <jjohnstn@redhat.com>
1115
1116 * libc/sys/linux/Makefile.am: Add new files.
1117 * libc/sys/linux/Makefile.in: Regenerated.
1118 * libc/sys/linux/fstab.c: New file.
1119 * libc/sys/linux/fstatvfs.c: Ditto.
1120 * libc/sys/linux/fstatvfs64.c: Ditto.
1121 * libc/sys/linux/internal_statvfs.c: Ditto.
1122 * libc/sys/linux/mntent.c: Ditto.
1123 * libc/sys/linux/mntent_r.c: Ditto.
1124 * libc/sys/linux/statvfs.c: Ditto.
1125 * libc/sys/linux/statvfs64.c: Ditto.
1126 * libc/sys/linux/include/paths.h: Ditto.
1127 * libc/sys/linux/inode.c (statfs, fstatfs): New syscalls
1128 with double-underscore weak-aliases.
1129 * libc/sys/linux/sys/stat.h: Add *stat64 prototypes.
1130
1131 2002-07-24 Jeff Johnston <jjohnstn@redhat.com>
1132
1133 * libc/include/signal.h (SIG_IGN, SIG_DFL, SIG_ERR): Change
1134 to use _sig_func_ptr type casted constants.
1135 (_sig_func_ptr): Typedef moved to sys/signal.h.
1136 * libc/include/sys/signal.h (_sig_func_ptr): Typedef added.
1137 For __rtems, use POSIX definition, otherwise default to ANSI.
1138 * libc/sys/linux/sys/signal.h (_sig_func_ptr): Typedef added.
1139
1140 2002-07-24 Stephane Carrez <stcarrez@nerim.fr>
1141
1142 * configure.host: Recognize m6811-elf and m6812-elf targets.
1143 * libc/include/machine/setjmp.h (_JBLEN): Define for 68hc11/68hc12.
1144 * libc/include/machine/ieeefp.h (__IEEE_BIG_ENDIAN): Define for 68HC11.
1145 (_DOUBLE_IS_32BITS): Define when compiling with -fshort-double.
1146 * libc/include/sys/config.h (INT_MAX, UINT_MAX): Define
1147 according to __INT_MAX__.
1148 (_POINTER_INT): Define to short.
1149 * libc/machine/m68hc11/Makefile.am: New file.
1150 * libc/machine/m68hc11/Makefile.in: New file.
1151 * libc/machine/m68hc11/configure.in: New file.
1152 * libc/machine/m68hc11/configure: New file.
1153 * libc/machine/m68hc11/aclocal.m4: New file.
1154 * libc/machine/m68hc11/setjmp.S: New file.
1155
1156 2002-07-23 Jeff Johnston <jjohnstn@redhat.com>
1157
1158 * libc/include/string.h: Add mempcpy, strndup, and _strndup_r
1159 prototypes.
1160 * libc/stdlib/Makefile.am: Remove strdup.c and strdup_r.c.
1161 * libc/stdlib/Makefile.in: Regenerated.
1162 * libc/stdlib/strdup.c: Removed.
1163 * libc/stdlib/strdup_r.c: Removed.
1164 * libc/string/Makefile.am: Add strdup.c, strdup_r.c, memccpy.c,
1165 mempcpy.c, strndup.c, and strndup_r.c.
1166 * libc/string/Makefile.in: Regenerated.
1167 * libc/string/memccpy.c: New file.
1168 * libc/string/mempcpy.c: Ditto.
1169 * libc/string/strndup.c: Ditto.
1170 * libc/string/strndup_r.c: Ditto.
1171 * libc/string/strdup.c: New file moved from stdlib.
1172 * libc/string/strdup_r.c: Ditto.
1173 * libc/string/strings.tex: Add memccpy and mempcpy documentation.
1174
1175 2002-07-23 Jeff Johnston <jjohnstn@redhat.com>
1176
1177 * libc/include/stdio.h: Move fcloseall prototype within
1178 #ifndef _REENT_ONLY section.
1179 * libc/sys/linux/Makefile.am: Add new files.
1180 * libc/sys/linux/Makefile.in: Regenerated.
1181 * libc/sys/linux/sys/stdio.h: Add ctermid prototype.
1182 * libc/sys/linux/sys/unistd.h: Add ttyname_r prototype.
1183 * libc/sys/linux/sys/types.h: Add ino64_t type.
1184 * libc/sys/linux/ctermid.c: New file.
1185 * libc/sys/linux/ttyname_r.c: Ditto.
1186 * libc/sys/linux/readdir64.c: Ditto.
1187
1188 2002-07-22 Jeff Johnston <jjohnstn@redhat.com>
1189
1190 * libc/include/stdio.h (fcloseall, _fcloseall_r): Added prototypes.
1191 * libc/stdio/Makefile.am: Added fcloseall.c support.
1192 * libc/stdio/Makefile.in: Regenerated.
1193 * libc/stdio/fcloseall.c: New file.
1194 * libc/stdio64/Makefile.am: Remove missing .def references.
1195 * libc/stdio64/Makefile.in: Regenerated.
1196
1197 2002-07-22 Jeff Johnston <jjohnstn@redhat.com>
1198
1199 * libc/machine/powerpc/time.c: Removed..renamed to times.c.
1200 * libc/machine/powerpc/times.c: New file.
1201 * libc/machine/powerpc/Makefile.am: Change time.c to times.c.
1202 * libc/machine/powerpc/Makefile.in: Regenerated.
1203
1204 2002-07-22 Aldy Hernandez <aldyh@redhat.com>
1205
1206 * libc/machine/powerpc/time.c: New file.
1207 * libc/machine/powerpc/Makefile.am (lib_a_SOURCES): Add
1208 time.c.
1209 * libc/machine/powerpc/Makefile.in: Regenerated.
1210
1211 2002-07-22 Thomas Fitzsimmons <fitzsim@redhat.com>
1212
1213 * libc/libc.texinfo: Change copyright notices to Red Hat from
1214 Cygnus.
1215 * libm/libm.texinfo: Likewise.
1216 * README: Change docs URL to
1217 http://sources.redhat.com/newlib/docs.html.
1218
1219 2002-07-19 Jeff Johnston <jjohnstn@redhat.com>
1220
1221 * libc/sys/linux/Makefile.am: Add pathconf.c and fpathconf.c.
1222 * libc/sys/linux/Makefile.in: Regenerated.
1223 * libc/sys/linux/inode.c: Add chmod, fchmod, and chown syscalls.
1224 * libc/sys/linux/io.c: Add ftruncate syscall.
1225 * libc/sys/linux/fpathconf.c: New file.
1226 * libc/sys/linux/pathconf.c: Ditto.
1227 * libc/sys/linux/linux_fsinfo.h: Ditto.
1228 * libc/sys/linux/sys/unistd.h: Ditto.
1229
1230 2002-07-19 Jeff Johnston <jjohnstn@redhat.com>
1231
1232 * libc/stdio64/Makefile.am: Remove missing files.
1233 * libc/stdio64/Makefile.in: Regenerated.
1234
1235 2002-07-19 Jeff Johnston <jjohnstn@redhat.com>
1236
1237 * libc/include/sys/config.h[__i386__][__linux__]: Define
1238 _LARGE64FILE_SOURCE to 1.
1239 * libc/sys/linux/Makefile.am: Add getrlimit64.c and setrlimit64.c.
1240 * libc/sys/linux/Makefile.in: Regenerated.
1241 * libc/sys/linux/resource.c: Add __getrlimit and __setrlimit aliases.
1242 * libc/sys/linux/sys/linux_time.h: Protect struct timeval definition.
1243 * libc/sys/linux/sys/resource.h: Include <bits/resource.h> instead
1244 of <linux/resource.h>.
1245 * libc/sys/linux/getrlimit64.c: New file.
1246 * libc/sys/linux/setrlimit64.c: Ditto.
1247
1248 2002-07-19 Thomas Fitzsimmons <fitzsim@redhat.com>
1249
1250 * libc/argz/argz_replace.c: Include buf_findstr.h.
1251 * libc/argz/buf_findstr.c: Likewise.
1252 * libc/argz/envz_entry.c: Include buf_findstr.h. Cast return
1253 value to (char *).
1254 * libc/argz/envz_get.c: Likewise.
1255 * libc/include/sys/unistd.h: Add getopt and getsubopt declarations.
1256 * libc/stdlib/Makefile.am (LIB_SOURCES): Add getsubopt.c.
1257 * libc/stdlib/getsubopt.3: New file.
1258 * libc/stdlib/getsubopt.c: New file.
1259 * libc/sys/linux/machine/i386/socketcall.h (__sockcall_base):
1260 Change esp to ebp.
1261
1262 2002-07-17 Jeff Johnston <jjohnstn@redhat.com>
1263
1264 * configure.host(stdio64_dir): New setting that is used to
1265 enable building of new stdio64 directory.
1266 * libc/Makefile.am[HAVE_STDIO64_DIR]: Add support for
1267 large files.
1268 (stmp-stdio64,stdio64.texi): New targets to optionally add in
1269 stdio64 info to info files.
1270 * libc/Makefile.in: Regenerated.
1271 * libc/configure: Ditto.
1272 * libc/configure.in: Add configuration variables that are set
1273 when stdio64 is selected as subdir in configure.host.
1274 * libc/libc.texinfo: Add optional menu item for Stdio64, based
1275 on whether STDIO64 flag is set or not.
1276 * libc/sys.tex: Add optional stdio64 syscalls based on whether
1277 STDIO64 flag is set or not.
1278 * libc/include/reent.h[__LARGE64_FILES]: Add new stdio64
1279 _r sycall routines.
1280 * libc/include/stdio.h[__LARGE64_FILES]: Add new stdio64 prototypes.
1281 (FILE): Typedef'd to __FILE instead of struct __sFILE directly.
1282 (__SL64): New file flag indicating file is opened via fopen64.
1283 * libc/include/sys/_types.h(_off64_t): Added.
1284 * libc/include/sys/config.h: For x86-linux, define __LARGE64_FILES.
1285 * libc/include/sys/reent.h(struct __sFILE64): New file structure
1286 for 64-bit offset large file support.
1287 (__FILE): New intermediate type either set to struct __sFILE64 or
1288 struct __sFILE, depending on whether __LARGE64_FILES is set or not.
1289 * libc/reent/Makefile.am[HAVE_STDIO64_DIR]: Add new files.
1290 * libc/reent/Makefile.in: Regenerated.
1291 * libc/reent/fstat64r.c: New file.
1292 * libc/reent/lseek64r.c: Ditto.
1293 * libc/reent/open64r.c: Ditto.
1294 * libc/reent/reent.tex: Optionally add stdio64 reentrant syscalls
1295 based on whether STDIO64 flag is set.
1296 * libc/stdio/stdio.tex: Add blank line.
1297 * libc/stdio64/Makefile.am: New file.
1298 * libc/stdio64/Makefile.in: Ditto.
1299 * libc/stdio64/fgetpos64.c: Ditto.
1300 * libc/stdio64/fopen64.: Ditto.
1301 * libc/stdio64/freopen64.c: Ditto.
1302 * libc/stdio64/fseeko64.c: Ditto.
1303 * libc/stdio64/fsetpos64.c: Ditto.
1304 * libc/stdio64/ftello64.c: Ditto.
1305 * libc/stdio64/local64.h: Ditto.
1306 * libc/stdio64/stdio64.c: Ditto.
1307 * libc/stdio64/stdio64.tex: Ditto.
1308 * libc/stdio64/tmpfile64.c: Ditto.
1309 * libc/sys/linux/io64.c: Add weak aliases for lseek64, fstat64, and
1310 open64.
1311
1312 2002-07-16 Jeff Johnston <jjohnstn@redhat.com>
1313
1314 * libc/Makefile.am (stmp-extra): New target to set makeinfo flag
1315 if LIBC_EXTRA_LIB is present.
1316 * libc/Makefile.in: Regenerated.
1317 * libc/libc.texinfo: Add blank line.
1318 * libc/argz/Makefile.am: Add doc support.
1319 * libc/search/Makefile.am: Ditto.
1320 * libc/argz/Makefile.in: Regenerated.
1321 * libc/search/Makefile.in: Ditto.
1322 * libc/misc/misc.tex: Add ffs function.
1323 * libc/stdio/ftell.c: Fix missing doc delimeter in description.
1324
1325 2002-07-15 Jeff Johnston <jjohnstn@redhat.com>
1326
1327 * libc/include/sys/config.h[__H8300__]: Replace __SMALL_BITFIELDS
1328 definition that was removed in error.
1329
1330 2002-07-15 Jeff Johnston <jjohnstn@redhat.com>
1331
1332 * libc/include/machine/ieeefp.h: Change to only define
1333 floating point defines (e.g one of __IEEE_BIG_ENDIAN or
1334 __IEEE_LITTLE_ENDIAN must be defined for each platform).
1335 * libc/include/sys/config.h: Include <machine/ieeefp.h> and
1336 remove redundant floating point definitions.
1337
1338 2002-07-15 Jeff Johnston <jjohnstn@redhat.com>
1339
1340 * libc/sys/linux/callocr.c: Fix so code references
1341 calloc.
1342
1343 2002-07-15 Jeff Johnston <jjohnstn@redhat.com>
1344
1345 * libc/sys/linux/Makefile.am: Add new files.
1346 * libc/sys/linux/Makefile.in: Regenerated.
1347 * libc/sys/linux/bp-sym.h: Moved to include directory.
1348 * libc/sys/linux/mmap.c: Add weak aliases: __mmap, __munmap, __mremap.
1349 * libc/sys/linux/inode.c: Set _LIBC to 1.
1350 * libc/sys/linux/mq_close.c: Ditto.
1351 * libc/sys/linux/mq_getattr.c: Ditto.
1352 * libc/sys/linux/mq_open.c: Ditto.
1353 * libc/sys/linux/mq_receive.c: Ditto.
1354 * libc/sys/linux/mq_send.c: Ditto.
1355 * libc/sys/linux/mq_setattr.c: Ditto.
1356 * libc/sys/linux/mq_unlink.c: Ditto.
1357 * libc/sys/linux/calloc.c: New file.
1358 * libc/sys/linux/callocr.c: Ditto.
1359 * libc/sys/linux/cfreer.c: Ditto.
1360 * libc/sys/linux/config.h: Ditto.
1361 * libc/sys/linux/free.c: Ditto.
1362 * libc/sys/linux/freer.c: Ditto.
1363 * libc/sys/linux/msize.c: Ditto.
1364 * libc/sys/linux/msizer.c: Ditto.
1365 * libc/sys/linux/mstats.c: Ditto.
1366 * libc/sys/linux/mtrim.c: Ditto.
1367 * libc/sys/linux/mtrimr.c: Ditto.
1368 * libc/sys/linux/pvallocr.c: Ditto.
1369 * libc/sys/linux/realloc.c: Ditto.
1370 * libc/sys/linux/reallocr.c: Ditto.
1371 * libc/sys/linux/thread-m.h: Ditto.
1372 * libc/sys/linux/vallocr.c: Ditto.
1373 * libc/sys/linux/bp-checks.h: Ditto.
1374 * libc/sys/linux/libc-symbols.h: Ditto.
1375 * libc/sys/linux/libc-tsd.h: Ditto.
1376 * libc/sys/linux/libintl.h: Ditto.
1377 * libc/sys/linux/malign.c: Ditto.
1378 * libc/sys/linux/malignr.c: Ditto.
1379 * libc/sys/linux/mallinfor.c: Ditto.
1380 * libc/sys/linux/malloc.c: Ditto.
1381 * libc/sys/linux/mallocr.c: Ditto.
1382 * libc/sys/linux/malloptr.c: Ditto.
1383 * libc/sys/linux/mallstatsr.c: Ditto.
1384 * libc/sys/linux/mcheck.c: Ditto.
1385 * libc/sys/linux/mhooks.h: Ditto.
1386 * libc/sys/linux/include/bp-sym.h: Ditto.
1387 * libc/sys/linux/include/malloc.h: Ditto.
1388 * libc/sys/linux/include/mcheck.h: Ditto.
1389 * libc/sys/linux/linuxthreads/machine/i386/Makefile.am: Remove
1390 getpagesize.c.
1391 * libc/sys/linux/linuxthreads/machine/i386/Makefile.in: Regenerated.
1392 * libc/sys/linux/linuxthreads/machine/i386/getpagesize.c: Moved.
1393 * libc/sys/linux/machine/i386/getpagesize.c: New file.
1394 * libc/sys/linux/machine/i386/Makefile.am: Add getpagesize.c.
1395 * libc/sys/linux/machine/i386/Makefile.in: Regenerated.
1396 * libc/sys/linux/machine/i386/sysdep.h: New file.
1397 * libc/sys/linux/machine/i386/weakalias.h: Add weak_function support.
1398 * libc/sys/linux/sys/dirent.h: Set _LIBC to 1.
1399 * libc/sys/linux/sys/lock.h: Include <machine/weakalias.h>.
1400
1401 2002-07-12 Jeff Johnston <jjohnstn@redhat.com>
1402
1403 * libc/sys/linux/include/mqueue.h: Change to use <bits/siginfo.h>
1404 instead of <asm/siginfo.h>.
1405 * libc/sys/linux/sys/signal.h: Change to include various linux
1406 <bits/xxx.h> header files, rather than <linux/signal.h> so as
1407 to work with multiple releases of glibc header files.
1408
1409 2002-07-11 Chris Demetriou <cgd@broadcom.com>
1410
1411 * testsuite/newlib.search/hsearchtest.c: New file to test
1412 newlib/libc/search.
1413 * testsuite/newlib.search/hsearchtest.exp: Likewise.
1414
1415 2002-07-10 Florian Schrack <florian.schrack@freenet.de>
1416
1417 * libc/sys/mmixware/read.c: Use SYS_Fgets syscall if dealing with
1418 a terminal.
1419 * libc/sys/mmixware/sys/syscall.h (SYS_Fgets): Definition added.
1420
1421 2002-07-08 Jeff Johnston <jjohnstn@redhat.com>
1422
1423 * libc/include/math.h (MAXFLOAT): Added.
1424
1425 Mon Jul 8 13:55:23 2002 J"orn Rennecke <joern.rennecke@superh.com>
1426
1427 * libc/machine/sh/Makefile.am (lib_a_SOURCES):
1428 Make strcmp.S unconditional.
1429 * libc/machine/sh/Makefile.in: Regenerate.
1430 * libc/machine/sh/asm.h (DELAYED_BRANCHES, SL): Also for __SH5__ .
1431 * strcmp.S (strcmp): Add SHmedia variant. Use different registers
1432 for SHcompact.
1433
1434 2002-07-04 Jeff Johnston <jjohnstn@redhat.com>
1435
1436 * libc/sys/linux/inode.c: Fix utime prototype and add _LIBC
1437 define before including <sys/lock.h>.
1438
1439 2002-07-04 Jeff Johnston <jjohnstn@redhat.com>
1440
1441 * libc/include/utime.h: Add include of <_ansi.h>.
1442 * libc/sys/linux/Makefile.am: Add utimes.c.
1443 * libc/sys/linux/Makefile.in: Regenerated.
1444 * libc/sys/linux/inode.c(__umask): New static routine.
1445 (umask): Written to use __umask and attempt to thread lock.
1446 (getumask): New function written to use __umask and thread lock.
1447 * libc/sys/linux/utimes.c: New file.
1448 * libc/sys/linux/sys/time.h: Fix utimes prototype.
1449 * libc/sys/linux/sys/utime.h: New file.
1450
1451 2002-07-04 Thomas Fitzsimmons <fitzsim@redhat.com>
1452
1453 * libtool.m4: New file.
1454 * libc/sys/linux/process.c: Implement vfork in terms of fork,
1455 rather than as a syscall.
1456
1457 2002-07-04 Jeff Johnston <jjohnstn@redhat.com>
1458
1459 * libc/include/stdio.h: Add new prototypes.
1460 * libc/stdio/Makefile.am: Add fseeko.c and ftello.c.
1461 * libc/stdio/Makefile.in: Regenerated.
1462 * libc/stdio/fseek.c: Add fseeko documentation.
1463 * libc/stdio/ftell.c: Add ftello documentation.
1464 * libc/stdio/fseeko.c: New file.
1465 * libc/stdio/ftello.c: New file.
1466
1467 2002-07-04 Jeff Johnston <jjohnstn@redhat.com>
1468
1469 * libc/stdio/Makefile.am: Add asprintf.c and vasprintf.c.
1470 * libc/stdio/Makefile.in: Regenerated.
1471 * libc/stdio/asprintf.c: New file.
1472 * libc/stdio/vasprintf.c: Ditto.
1473 * libc/stdio/fvwrite.c: Add code to dynamically reallocate
1474 the buffer for asprintf support.
1475 * libc/stdio/sprintf.c: Add asprintf documentation.
1476 * libc/stdio/vfprintf.c: Add vasprintf documentation.
1477 * libc/include/stdio.h: Add new prototypes.
1478
1479 2002-07-02 Thomas Fitzsimmons <fitzsim@redhat.com>
1480
1481 * libc/search/hcreate.c: Remove advertising clause from license.
1482 * libc/search/hcreate_r.c: Likewise.
1483
1484 2002-07-02 Chris Demetriou <cgd@broadcom.com>
1485
1486 * libc/include/sys/config.h (__IEEE_LITTLE_ENDIAN)
1487 (__IEEE_BIG_ENDIAN): Define appropriately for MIPS.
1488 Check that one of them is defined and error out if not.
1489 Add any platforms defined in <machine/ieeefp.h> that are missing.
1490 * libc/search/hash.h (DB_BYTE_ORDER, DB_BIG_ENDIAN)
1491 (DB_LITTLE_ENDIAN): New defines.
1492 * libc/search/hash.c: Replace all incorrect checks for
1493 _IEEE_LITTLE_ENDIAN with tests of BYTE_ORDER, and all uses of
1494 BYTE_ORDER, LITTLE_ENDIAN, and BIG_ENDIAN with DB_* versions.
1495 * libc/search/hash_page.c: Likewise.
1496
1497 2002-06-28 Thomas Fitzsimmons <fitzsim@redhat.com>
1498
1499 * libm/mathfp/sf_pow.c (powf): Change k from int to float.
1500
1501 2002-06-27 Benjamin Kosnik <bkoz@redhat.com>
1502
1503 * libc/include/stdio.h: Untangle, add _BEGIN_STD_C and _END_STD_C.
1504 * libc/include/time.h: Same.
1505 * libc/include/string.h: Same.
1506 * libc/include/stdlib.h: Same.
1507 * libc/include/signal.h: Same.
1508 * libc/include/setjmp.h: Same.
1509 * libc/include/math.h: Same.
1510 * libc/include/locale.h: Same.
1511 * libc/include/ctype.h: Same.
1512 * libc/include/machine/setjmp.h: Same.
1513 * libc/include/_ansi.h (_BEGIN_STD_C): Add.
1514 (_END_STD_C): Add.
1515
1516 2002-06-27 Jeff Johnston <jjohnstn@redhat.com>
1517
1518 * libc/include/sys/_types.h: Define _ssize_t as int if int is
1519 32-bits, otherwise define it as long.
1520 * libc/include/sys/types.h: Include <_ansi.h> and <sys/_types.h>
1521 and define ssize_t as _ssize_t.
1522 * libc/reent/readr.c: Change return type to _ssize_t.
1523 * libc/reent/writer.c: Ditto.
1524 * libc/sys/linux/Makefile.am: Add aio.c.
1525 * libc/sys/linux/Makefile.in: Regenerated.
1526 * libc/sys/linux/aio.c: New file.
1527 * libc/sys/linux/sys/cdefs.h: Add __restrict_arr definition.
1528 * libm/common/fdlibm.h: Undef __P before defining it.
1529
1530 2002-06-27 Thomas Fitzsimmons <fitzsim@redhat.com>
1531
1532 * libm/mathfp/s_pow.c (pow): Fix checks on variable k. Add
1533 exponent_is_even_int variable. Handle case where x is
1534 negative, and y is an odd integer.
1535 * libm/mathfp/sf_pow.c (powf): Likewise.
1536
1537 * libm/mathfp/er_lgamma.c: Remove __kernel references.
1538 * libm/mathfp/erf_lgamma.c: Likewise.
1539 * libm/mathfp/s_tgamma.c: Likewise.
1540 * libm/mathfp/sf_tgamma.c: Likewise.
1541
1542 2002-06-27 Jeff Johnston <jjohnstn@redhat.com>
1543
1544 * libc/sys/linux/Makefile.am: Add new clock routines.
1545 * libc/sys/linux/Makefile.in: Regenerated.
1546 * libc/sys/linux/clock_getres.c: New file.
1547 * libc/sys/linux/clock_gettime.c: Ditto.
1548 * libc/sys/linux/clock_settime.c: Ditto.
1549 * libc/sys/linux/hp-timing.h: Ditto.
1550 * libc/sys/linux/libc-internal.h: Ditto.
1551 * libc/sys/linux/sysconf.c: Fix typo.
1552 * libc/sys/linux/include/time.h: Add include of <sys/linux_time.h>.
1553 * libc/sys/linux/machine/hp-timing.h: New file.
1554 * libc/sys/linux/machine/i386/Makefile.am: Add new files.
1555 * libc/sys/linux/machine/i386/Makefile.in: Regenerated.
1556 * libc/sys/linux/machine/i386/get_clockfreq.c: New file.
1557 * libc/sys/linux/machine/i386/hp-timing.c: Ditto.
1558 * libc/sys/linux/machine/i386/hp-timing.h: Ditto.
1559 * libc/sys/linux/sys/linux_time.h: New file.
1560 * libc/sys/linux/sys/time.h: Remove include of <linux/time.h> and
1561 replace with <sys/linux_time.h>.
1562
1563 Wed Jun 26 16:33:25 2002 J"orn Rennecke <joern.rennecke@superh.com>
1564
1565 * libc/sys/sh/crt0.S: Remove vestigial .section directive.
1566
1567 2002-06-25 Jeff Johnston <jjohnstn@redhat.com>
1568
1569 * libc/sys/linux/Makefile.am: Consolidate additional items under
1570 ADD_OBJS.
1571 * libc/sys/linux/Makefile.in: Regenerated.
1572
1573 2002-06-25 Jeff Johnston <jjohnstn@redhat.com>
1574
1575 * libc/sys/linux/sethostname.c: New file.
1576 * libc/sys/linux/Makefile.am: Add sethostname.c support.
1577 * libc/sys/linux/Makefile.in: Regenerated.
1578
1579 2002-06-24 Thomas Fitzsimmons <fitzsim@redhat.com>
1580
1581 * libc/search/db_local.h: New file.
1582 * libc/include/db.h: Remove.
1583 * libc/search/Makefile.am (LIB_SOURCES): Add db_local.h.
1584 * libc/search/hash.c (MIN,MAX): Add macros. Change <db.h> to
1585 "db_local.h".
1586 * libc/search/hash_bigkey.c: Likewise.
1587 * libc/search/hash_buf.c: Likewise.
1588 * libc/search/hash_func.c: Likewise.
1589 * libc/search/hash_log2.c: Likewise.
1590 * libc/search/hash_page.c: Likewise.
1591
1592 2002-06-24 J"orn Rennecke <joern.rennecke@superh.com>
1593
1594 * libc/machine/sh/strlen.S: New file.
1595 * libc/machine/sh/Makefile.am (lib_a_SOURCES): Add rule for it.
1596 * libc/machine/sh/Makefile.am: Regenerate.
1597
1598 2002-06-24 Jeff Johnston <jjohnstn@redhat.com>
1599
1600 * libc/sys/linux/gethostname.c: Change name to __gethostname and
1601 add gethostname alias.
1602
1603 2002-06-24 Jeff Johnston <jjohnstn@redhat.com>
1604
1605 * libc/include/math.h: Remove <sys/types.h>.
1606 (__dmath): Use __ULong instead of __uint32_t.
1607 * libc/include/sys/reent.h: If long or int is not 32-bits,
1608 include <sys/types.h> to get definitions for __int32_t and __uint32_t.
1609 * libc/stdlib/mprec.h: Include <sys/types.h> to get integer defs.
1610 * libm/common/fdlibm.h: Ditto.
1611
1612 2002-06-24 Thomas Fitzsimmons <fitzsim@redhat.com>
1613
1614 * libc/include/ndbm.h: Remove.
1615 * libc/search/ndbm.c: Remove.
1616
1617 2002-06-24 WATANABE Hirofumi <eban@os.rim.or.jp>
1618
1619 * libc/stdio/fseek.c (fseek): Fix braces.
1620
1621 2002-06-21 Corinna Vinschen <corinna@vinschen.de>
1622
1623 * libc/time/strftime.c (strftime): Add %e format specifier.
1624
1625 2002-06-21 Thomas Fitzsimmons <fitzsim@redhat.com>
1626
1627 * libc/search/hash.h (LITTLE_ENDIAN, BIG_ENDIAN): Define if not
1628 previously defined.
1629
1630 2002-06-21 Richard Earnshaw (rearnsha@arm.com)
1631
1632 * libc/sys/arm/sys/param.h (BIG_ENDIAN, LITTLE_ENDIAN): Define.
1633 (BYTE_ORDER): Define as appropriate for the target.
1634
1635 2002-06-21 Jeff Johnston <jjohnstn@redhat.com>
1636
1637 * libc/include/sys/config.h[__linux__]: Set _READ_WRITE_RETURN_TYPE
1638 to _ssize_t.
1639 * libc/sys/linux/io.c (read, write): Change to return ssize_t.
1640
1641 2002-06-21 Jeff Johnston <jjohnstn@redhat.com>
1642
1643 * libc/include/stdio.h (__getline, __getdelim): New prototypes.
1644 * libc/include/time.h [HAVE_GETDATE](getdate, getdate_r): Ditto.
1645 [HAVE_GETDATE](getdate_err): New error code.
1646 * libc/stdio/Makefile.am: Add support for getline.c and getdelim.c.
1647 * libc/stdio/Makefile.in: Regenerated.
1648 * libc/stdio/getdelim.c: New file.
1649 * libc/stdio/getline.c: Ditto.
1650 * libc/sys/linux/Makefile.am: Add support for getdate.c, getdate_err.c
1651 and ntp_gettime.c. Also add AM_CFLAGS to point to libc/stdio.
1652 * libc/sys/linux/Makefile.in: Regenerated.
1653 * libc/sys/linux/getdate.c: New file.
1654 * libc/sys/linux/getdate_err.c: Ditto.
1655 * libc/sys/linux/ntp_gettime.c: Ditto.
1656 * libc/sys/linux/time.c (adjtimex, ntp_adjtime): New functions.
1657 * libc/sys/linux/sys/stdio.h (getline, getdelim): New macros.
1658
1659 2002-06-21 Jeff Johnston <jjohnstn@redhat.com>
1660
1661 * libc/include/math.h: Add <sys/types.h> to get _uint32_t definition.
1662 * libc/include/machine/types.h: Skip __off_t, __pid_t, and
1663 __loff_t definitions if special _HAVE_SYSTYPES macro defined.
1664 * libc/include/sys/config.h: Removed _uint*, _int* definitions.
1665 * libc/include/sys/param.h: Remove i386 case which is handled
1666 by default case.
1667 (BIG_ENDIAN, LITTLE_ENDIAN): Protect
1668 definitions in case they are already defined.
1669 (BYTE_ORDER): Add default case using _IEEE_BIG_ENDIAN and
1670 _IEEE_LITTLE_ENDIAN flags.
1671 * libc/include/sys/reent.h: Change __uint32_t references to
1672 use _ULong instead.
1673 (_REENT_GETDATE_REENT_P): New macro.
1674 * libc/include/sys/types.h (__int16_t, __uint16_t): Added.
1675 (__int32_t, __uint32_t, __int64_t, __uint64_t): Ditto.
1676 * libc/search/hash.h: Add default setting of BYTE_ORDER,
1677 LITTLE_ENDIAN, and BIG_ENDIAN, if not already defined.
1678 * libc/sys/linux/sys/types.h: Include <sys/_types.h>. Define
1679 ssize_t based on _ssize_t. Remove __socklen_t, __uintptr_t,
1680 pid_t, off_t, loff_t, caddr_t, and daddr_t type
1681 definitions which are done by subsequent glibc headers.
1682 Add macro definitions to prevent subsequent header files from
1683 defining pid_t, off_t, ssize_t, and key_t. Move uintptr_t and
1684 intptr_t to after glibc definitions of types they are based on.
1685
1686 2002-06-21 Jeff Johnston <jjohnstn@redhat.com>
1687
1688 * libc/include/errno.h: Protect from multiple inclusion.
1689
1690 2002-06-21 Nick Clifton <nickc@cambridge.redhat.com>
1691
1692 * libc/sys/arm/swi.h (ADP_Stopped_RunTimeError): Set correct value.
1693
1694 2002-06-20 Thomas Fitzsimmons <fitzsim@redhat.com>
1695
1696 * Makefile.am (LIB_OBJECTLISTS): Add
1697 libc/search/objectlist.awk.in.
1698 * libc/Makefile.am (SUBDIRS): Add search.
1699 (SUBLIBS): Add search/libsearch.la.
1700 * libc/configure.in (AC_OUTPUT): Add search/Makefile.
1701 * libc/search: New directory.
1702 * libc/search/Makefile.am: New file.
1703 * libc/search/extern.h: New file.
1704 * libc/search/hash.c: New file.
1705 * libc/search/hash.h: New file.
1706 * libc/search/hash_bigkey.c: New file.
1707 * libc/search/hash_buf.c: New file.
1708 * libc/search/hash_func.c: New file.
1709 * libc/search/hash_log2.c: New file.
1710 * libc/search/hash_page.c: New file.
1711 * libc/search/hcreate.3: New file.
1712 * libc/search/hcreate.c: New file.
1713 * libc/search/hcreate_r.c: New file.
1714 * libc/search/ndbm.c: New file.
1715 * libc/search/page.h: New file.
1716 * libc/search/tdelete.c: New file.
1717 * libc/search/tdestroy.c: New file.
1718 * libc/search/tfind.c: New file.
1719 * libc/search/tsearch.3: New file.
1720 * libc/search/tsearch.c: New file.
1721 * libc/search/twalk.c: New file.
1722 * libc/include/db.h: New file.
1723 * libc/include/ndbm.h: New file.
1724 * libc/include/search.h: New file.
1725 * libc/include/sys/queue.h: New file.
1726 * libc/include/sys/cdefs.h: New file.
1727 * libc/include/sys/param.h
1728 [__IEEE_LITTLE_ENDIAN,__IEEE_BIG_ENDIAN]: Set BYTE_ORDER to
1729 LITTLE_ENDIAN or BIG_ENDIAN.
1730 * libc/include/sys/errno.h (EFTYPE): New macro.
1731 * libc/search/bsearch.c: Move from libc/stdlib.
1732 * libc/search/qsort.c: Likewise.
1733 * libc/stdlib/Makefile.am (LIB_SOURCES): Remove bsearch.c and
1734 qsort.c.
1735 (CHEWOUT_FILES): Remove bsearch.def and qsort.def.
1736 * libc/stdlib/stdlib.tex: Remove references to bsearch and qsort.
1737
1738 2002-06-19 Jeff Johnston <jjohnstn@redhat.com>
1739
1740 * libc/sys/linux/Makefile.am: Add support for message queue routines,
1741 ipc routines, and ftok.
1742 * libc/sys/linux/Makefile.in: Regenerated.
1743 * libc/sys/linux/ftok.c: New file.
1744 * libc/sys/linux/ipc.c: Ditto.
1745 * libc/sys/linux/mq_close.c: Ditto.
1746 * libc/sys/linux/mq_getattr.c: Ditto.
1747 * libc/sys/linux/mq_notify.c: Ditto.
1748 * libc/sys/linux/mq_open.c: Ditto.
1749 * libc/sys/linux/mq_receive.c: Ditto.
1750 * libc/sys/linux/mq_send.c: Ditto.
1751 * libc/sys/linux/mq_setattr.c: Ditto.
1752 * libc/sys/linux/mq_unlink.c: Ditto.
1753 * libc/sys/linux/mqlocal.h: Ditto.
1754 * libc/sys/linux/include/mqueue.h: Ditto.
1755 * libc/sys/linux/sys/types.h: Define __gid_t_defined and
1756 __uid_t_defined.
1757
1758 2002-06-19 J"orn Rennecke <joern.rennecke@superh.com>
1759
1760 * libm/common/sf_lround.c (round): Change name to: (lround).
1761 * libm/common/sf_remquo.c (remquo): Pass all arguemnts to
1762 remquof.
1763
1764 2002-06-18 Thomas Fitzsimmons <fitzsim@redhat.com>
1765
1766 * testsuite/lib/passfail.exp (newlib_pass_fail_all): New
1767 procedure.
1768 (newlib_pass_fail): Change to compile and run only one file.
1769 * testsuite/newlib.locale/locale.exp: Use new
1770 newlib_pass_fail_all procedure.
1771 * testsuite/newlib.string/string.exp: Likewise.
1772
1773 2002-06-18 Dave Brolley <brolley@redhat.com>
1774
1775 From Catherine Moore, Michael Meissner, Richard Sandiford:
1776 * libc/include/machine/setjmp.h (_JBLEN): Define for __frv__.
1777 (_JBTYPE): Ditto.
1778 * libc/include/sys/config.h (__IEEE_BIG_ENDIAN): Ditto.
1779 (__ATTRIBUTE_IMPURE_PTR__): Ditto.
1780 * libc/include/machine/ieeefp.h (__IEEE_BIG_ENDIAN): Ditto.
1781 * configure.host: Support frv-*-*.
1782 * libc/machine/frv/Makefile.am: New file.
1783 * libc/machine/frv/configure.in: New file.
1784 * libc/machine/frv/setjmp.S: New file.
1785
1786 2002-06-18 Thomas Fitzsimmons <fitzsim@redhat.com>
1787
1788 * libc/include/ctype.h: Remove isblank macro.
1789
1790 * libc/ctype/Makefile.am (LIB_SOURCES): Add isblank.c.
1791 * libc/ctype/isblank.c: New file.
1792 * libc/include/ctype.h [!__STRICT_ANSI__]: Add isblank
1793 declaration. Add isblank macro.
1794
1795 2002-06-18 Jeff Johnston <jjohnstn@redhat.com>
1796
1797 * testsuite/newlib.stdlib/atexit.c: New file.
1798 * testsuite/newlib.stdlib/atexit.exp: Ditto.
1799 * testsuite/newlib.string/tstring.c: Change default start size
1800 to something more reasonable for embedded platforms.
1801
1802 2002-06-14 Thomas Fitzsimmons <fitzsim@redhat.com>
1803
1804 * libc/sys/linux/sys/errno.h (EFTYPE): Add macro.
1805
1806 * libc/argz: New directory.
1807 * libc/argz/*: New files.
1808 * libc/argz/argz_add.c: New file.
1809 * libc/argz/argz_add_sep.c: New file.
1810 * libc/argz/argz_append.c: New file.
1811 * libc/argz/argz_count.c: New file.
1812 * libc/argz/argz_create.c: New file.
1813 * libc/argz/argz_create_sep.c: New file.
1814 * libc/argz/argz_delete.c: New file.
1815 * libc/argz/argz_extract.c: New file.
1816 * libc/argz/argz_insert.c: New file.
1817 * libc/argz/argz_next.c: New file.
1818 * libc/argz/argz_replace.c: New file.
1819 * libc/argz/argz_stringify.c: New file.
1820 * libc/argz/buf_findstr.c: New file.
1821 * libc/argz/envz_add.c: New file.
1822 * libc/argz/envz_entry.c: New file.
1823 * libc/argz/envz_get.c: New file.
1824 * libc/argz/envz_merge.c: New file.
1825 * libc/argz/envz_remove.c: New file.
1826 * libc/argz/envz_strip.c: New file.
1827 * libc/include/argz.h: New file.
1828 * libc/include/envz.h: New file.
1829 * Makefile.am (LIBC_OBJECTLISTS): Add
1830 libc/argz/objectlist.awk.in.
1831 * libc/Makefile.am (SUBDIRS): Add argz.
1832 (SUBLIBS): Add argz/libargz.la.
1833 * libc/configure.in (AC_OUTPUT): Add argz/Makefile.
1834 * libc/include/errno.h: Add error_t typedef.
1835
1836 2002-06-13 Jeff Johnston <jjohnstn@redhat.com>
1837
1838 * libc/include/stdlib.h: Add _Exit prototype.
1839 * libc/stdlib/Makefile.am: Add _Exit.c support.
1840 * libc/stdlib/Makefile.in: Ditto.
1841 * libc/stdlib/_Exit.c: New file.
1842
1843 2002-06-13 Stephen L. Moshier <steve@moshier.net>
1844
1845 * libm/math/e_pow.c (__ieee754_pow): Fix case whereby
1846 x is close to -1.0 and y is very large to use ax (absolute value)
1847 instead of x.
1848 * libm/math/ef_pow.c (__ieee754_powf): Ditto.
1849
1850 Thu Jun 13 19:23:40 2002 J"orn Rennecke <joern.rennecke@superh.com>
1851
1852 * libc/machine/sh/strcpy.S (strcpy, __SHMEDIA__ code):
1853 Fix clobbering bytes before destination if src and dst have same
1854 non-zero misalignment.
1855
1856 * libc/machine/sh/memset.S (memset, __SHMEDIA__ code):
1857 Fixed bug in writing end of set region.
1858
1859 2002-06-10 Christopher Faylor <cgf@redhat.com>
1860
1861 * libc/include/process.h: Remove cygwin-only sexec* declarations. Fix
1862 spawnve declaration.
1863
1864 2002-06-06 Thomas Fitzsimmons <fitzsim@redhat.com>
1865
1866 * libm/common/s_fdim.c: New file.
1867 * libm/common/s_fma.c: Likewise.
1868 * libm/common/s_fmax.c: Likewise.
1869 * libm/common/s_fmin.c: Likewise.
1870 * libm/common/s_fpclassify.c: Likewise.
1871 * libm/common/s_lrint.c: Likewise.
1872 * libm/common/s_lround.c: Likewise.
1873 * libm/common/s_nearbyint.c: Likewise.
1874 * libm/common/s_remquo.c: Likewise.
1875 * libm/common/s_round.c: Likewise.
1876 * libm/common/s_scalbln.c: Likewise.
1877 * libm/common/s_signbit.c: Likewise.
1878 * libm/common/s_trunc.c: Likewise.
1879 * libm/common/sf_fdim.c: Likewise.
1880 * libm/common/sf_fma.c: Likewise.
1881 * libm/common/sf_fmax.c: Likewise.
1882 * libm/common/sf_fmin.c: Likewise.
1883 * libm/common/sf_lrint.c: Likewise.
1884 * libm/common/sf_lround.c: Likewise.
1885 * libm/common/sf_nearbyint.c: Likewise.
1886 * libm/common/sf_remquo.c: Likewise.
1887 * libm/common/sf_round.c: Likewise.
1888 * libm/common/sf_scalbln.c: Likewise.
1889 * libm/common/sf_trunc.c: Likewise.
1890 * libm/math/w_exp2.c: Likewise.
1891 * libm/math/w_tgamma.c: Likewise.
1892 * libm/math/wf_exp2.c: Likewise.
1893 * libm/math/wf_tgamma.c: Likewise.
1894 * libm/mathfp/s_exp2.c: Likewise.
1895 * libm/mathfp/s_tgamma.c: Likewise.
1896 * libm/mathfp/sf_exp2.c: Likewise.
1897 * libm/mathfp/sf_tgamma.c: Likewise.
1898 * libm/math/er_gamma.c: Fix return value.
1899 * libm/math/erf_gamma.c: Likewise.
1900 * libm/mathfp/er_gamma.c: Likewise.
1901 * libm/mathfp/erf_gamma.c: Likewise.
1902 * libc/include/math.h (!__STRICT_ANSI__): Include ISOC99-specific
1903 declarations and macros.
1904 Regenerated all Makefile.in, aclocal.m4 and configure files to
1905 use new libtool macros in top-level libtool.m4
1906
1907 2002-06-05 Jeff Johnston <jjohnstn@redhat.com>
1908
1909 * libc/include/string.h[__linux__]: Add strsignal prototype.
1910 * libc/include/sys/lock.h: New file with default locking support.
1911 * libc/include/sys/reent.h: Add signal buffer support for strsignal
1912 and psignal.
1913 * libc/posix/Makefile.am: Add support for readdir_r.c.
1914 * libc/posix/Makefile.in: Regenerated.
1915 * libc/posix/closedir.c: Add locking support and hash table cleanup.
1916 * libc/posix/opendir.c: Add lock support.
1917 * libc/posix/readdir.c: Ditto.
1918 * libc/posix/rewinddir.c: Ditto.
1919 * libc/posix/scandir.c: Ditto.
1920 * libc/posix/seekdir.c: Ditto.
1921 * libc/posix/telldir.c: Ditto plus add _cleanupdir routine to
1922 clean up leftover hash table entries.
1923 * libc/posix/readdir_r.c: New file.
1924 * libc/sys/linux/Makefile.am: Add psignal.c and strsignal.c support.
1925 * libc/sys/linux/Makefile.in: Regenerated.
1926 * libc/sys/linux/sys/dirent.h: Add dd_lock to DIR structure.
1927 * libc/sys/linux/sys/signal.h: Add psignal prototype.
1928 * libc/sys/linux/psignal.c: New file.
1929 * libc/sys/linux/strsignal.c: Ditto.
1930
1931 2002-06-03 Corinna Vinschen <corinna@vinschen.de>
1932
1933 * libc/include/sys/types.h: Don't define dev_t when compiling for
1934 Cygwin.
1935
1936 2002-05-31 Jeff Johnston <jjohnstn@redhat.com>
1937
1938 * libc/sys/linux/Makefile.am: Add sig.c and sigaction.c. Also
1939 make siglist.inc dependent on sig.c instead of signal.c.
1940 * libc/sys/linux/Makefile.in: Regenerated.
1941 * libc/sys/linux/sig.c: Rename from signal.c and change code to
1942 use NSIG instead of _NSIG.
1943 * libc/sys/linux/sigaction.c: New file.
1944 * libc/sys/linux/signal.c: Changed to be linux signal() function
1945 so as to override regular newlib default signal.c.
1946 * libc/sys/linux/machine/i386/Makefile.am: Remove sigset.c.
1947 * libc/sys/linux/machine/i386/Makefile.in: Regenerated.
1948 * libc/sys/linux/machine/i386/sigset.c: Moved to linux main directory.
1949 * libc/sys/linux/sigset.c: Moved from machine/i386 directory.
1950 * libc/sys/linux/sys/signal.h: Redefine NSIG to _NSIG and override
1951 default linux sigset_t typedef by defining it equal to __sigset_t.
1952 * libc/unix/sigset.c: Add check so code isn't compiled on systems
1953 with a sigset_t that isn't implemented with a single int.
1954
1955 2002-05-30 Jeff Johnston <jjohnstn@redhat.com>
1956
1957 * libc/sys/linux/Makefile.am: Add support for new files.
1958 * libc/sys/linux/Makefile.in: Regenerated.
1959 * libc/sys/linux/ids.c: Add __getuid weak alias for getuid.
1960 * libc/sys/linux/signal.c: Change to use real-time syscalls for
1961 sigsuspend, sigprocmask, and sigpending. Also remove sigaction as
1962 it is in a separate file now.
1963 * libc/sys/linux/machine/i386/Makefile.am
1964 * libc/sys/linux/machine/i386/Makefile.in
1965 * libc/sys/linux/sys/signal.h: Add include of <bits/signum.h>.
1966 * libc/sys/linux/sigaction.c: New file.
1967 * libc/sys/linux/sigqueue.c: Ditto.
1968 * libc/sys/linux/sigwait.c: Ditto.
1969 * libc/sys/linux/machine/i386/sigaction.c: Ditto.
1970 * libc/sys/linux/kernel_sigaction.h: Ditto.
1971
1972 2002-05-28 Jeff Johnston <jjohnstn@redhat.com>
1973
1974 * libc/sys/linux/Makefile.am: Add support for cfspeed.c and
1975 tcsendbrk.c.
1976 * libc/sys/linux/Makefile.in: Regenerated.
1977 * libc/sys/linux/termios.c: Add tcflow(), tcflush(),
1978 tcgetpgrp(), and tcsetpgrp() functions.
1979 * libc/sys/linux/sys/termios.h: Add include of machine/termios.h
1980 to get __MAX_BAUD rate.
1981 * libc/sys/linux/machine/i386/include/termios.h: New file.
1982 * libc/include/machine/termios.h: Ditto.
1983 * libc/sys/linux/cfspeed.c: Ditto.
1984 * libc/sys/linux/tcsendbrk.c: Ditto.
1985
1986 2002-05-24 Jeff Johnston <jjohnstn@redhat.com>
1987
1988 * libc/include/string.h: Add strnlen and strerror_r prototypes.
1989 * libc/string/Makefile.am: Add strnlen.c and strerror_r.c support.
1990 * libc/string/Makefile.in: Regenerated.
1991 * libc/string/strerror_r.c: New file.
1992 * libc/string/strnlen.c: New file.
1993 * libc/sys/linux/Makefile.am: Add rename.c.
1994 * libc/sys/linux/Makefile.in: Regenerated.
1995 * libc/sys/linux/rename.c: New file to override default rename.
1996
1997 2002-05-24 Thomas Fitzsimmons <fitzsim@redhat.com>
1998
1999 * libc/sys/linux/sys/cdefs.h: Add __weak_reference macros.
2000 * libc/sys/linux/sys/time.h: Add conversion macros.
2001 * libc/sys/linux/sys/types.h: Add FD_ macros. Include <bits/types.h>.
2002 * libc/sys/linux/ids.c: Add setresuid and syslog syscalls.
2003 * libc/sys/linux/gethostname.c: New file.
2004 * libc/sys/linux/seteuid.c: New file.
2005 * libc/sys/linux/sysctl.c: New file.
2006
2007 2002-05-23 Jeff Johnston <jjohnstn@redhat.com>
2008
2009 * libc/string/Makefile.am: Add support for strsep.c.
2010 * libc/string/Makefile.in: Regenerated.
2011 * libc/string/strsep.c: New file.
2012 * libc/string/strtok.c: Change to call __strtok_r service routine.
2013 * libc/string/strtok_r.c: Add __strtok_r routine which takes
2014 additional flag parameter regarding whether to skip leading delimeters.
2015 Change strtok_r to call __strtok_r.
2016
2017 2002-05-23 Gareth Pearce <tilps@hotmail.com>
2018
2019 * libc/stdio/Makefile.am: Modify to add setbuffer.c and setlinebuf.c.
2020 * libc/stdio/Makefile.in: Regenerated.
2021 * libc/stdio/setbuffer.c: New file.
2022 * libc/stdio/setlinebuf.c: New file.
2023
2024 2002-05-23 Jeff Johnston <jjohnstn@redhat.com>
2025
2026 * libc/sys/linux/Makefile.am: Add resource.c.
2027 * libc/sys/linux/Makefile.in: Regenerated.
2028 * libc/sys/linux/resource.c: New file.
2029 * libc/sys/linux/time.c: Add settimeofday, getitimer, and setitimer.
2030 * libc/sys/linux/machine/i386/Makefile.am: Remove syscalls.c.
2031 * libc/sys/linux/machine/i386/Makefile.in: Regenerated.
2032 * libc/sys/linux/machine/i386/syscalls.c: Removed as functions
2033 are now found in libc/sys/linux/resource.c.
2034
2035 2002-05-23 Jeff Johnston <jjohnstn@redhat.com>
2036
2037 * libc/include/string.h (bcmp, bcopy, bzero): Change prototypes
2038 to use void * pointers and comply with Single Unix spec.
2039 * libc/string/bcmp.c: Change to use void * instead of char *.
2040 * libc/string/bcopy.c: Ditto.
2041 * libc/string/bzero.c: Ditto.
2042
2043 2002-05-22 Jeff Johnston <jjohnstn@redhat.com>
2044
2045 * libc/sys/linux/shm_open.c: New file.
2046 * libc/sys/linux/shm_unlink.c: Ditto.
2047 * libc/sys/linux/Makefile.am: Add support for shm_open.c and
2048 shm_unlink.c.
2049 * libc/sys/linux/Makefile.in: Regenerated.
2050 * libc/sys/linux/sys/types.h: Add some additional checks to see
2051 if clock_t or time_t is already defined.
2052
2053 2002-05-22 Jeff Johnston <jjohnstn@redhat.com>
2054
2055 * Makefile.am: Don't pass $toollibdir down directly in
2056 AM_MAKEFLAGS as it causes all multilibs to use the same toollibdir.
2057 Pass it under the name: top_toollibdir.
2058 * Makefile.in: Regenerated.
2059
2060 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
2061
2062 * libc/include/sys/types.h: Revert previous patch.
2063
2064 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
2065
2066 * libc/include/sys/types.h: Include cygwin/types.h always under
2067 Cygwin, not only if _POSIX_THREADS is defined.
2068
2069 2002-05-21 Dhananjay Deshpande <dhananjayd@kpit.com>
2070
2071 * configure.host: Specify sys_dir=h8300hms for h8300-*-coff* target.
2072
2073 2002-05-17 Jeff Johnston <jjohnstn@redhat.com>
2074
2075 * Makefile.am: Copy and install headers from sys/machine/include
2076 directory. Also pass $toollibdir to lower-level directories.
2077 * Makefile.in: Regenerated.
2078 * libc/include/stdio.h[!_REENT_ONLY]: Change stdin, stdout, and
2079 stderr to use _REENT macro instead of _impure_ptr directly.
2080 * libc/include/sys/config.h[__i386__][__linux__]: Define
2081 __DYNAMIC_REENT__.
2082 * libc/include/sys/reent.h[!_REENT_ONLY]: Change _REENT macro to be
2083 call to __getreent() function if !__SINGLE_THREAD__ and
2084 __DYNAMIC_REENT__ is set.
2085 * libc/reent/Makefile.am: Add support for getreent.c.
2086 * libc/reent/Makefile.in: Regenerated.
2087 * libc/string/strerror.c: Add check if EOPNOTSUPP and ENOTSUP are same.
2088 * libc/sys/linux/Makefile.am: Add support for new files.
2089 * libc/sys/linux/configure.in: Add $EXTRA_DIRS variable.
2090 * libc/sys/linux/Makefile.in: Regenerated.
2091 * libc/sys/linux/configure: Ditto.
2092 * libc/sys/linux/io.c: Add poll syscall. Also weak-alias
2093 __close, __read, __write, __poll, __open, __lseek, __fcntl from
2094 their __libc_ counterparts.
2095 * libc/sys/linux/io64.c: Add __libc_ prefix to lseek64 and open64
2096 and weak-alias to regular names.
2097 * libc/sys/linux/pread64.c: Rename to __libc_pread64 and weak-alias
2098 to pread64 and __pread64.
2099 * libc/sys/linux/process.c: Weak_alias __libc_getpid to __getpid.
2100 * libc/sys/linux/pwrite64.c: Rename to __libc_pwrite64 and
2101 weak-alias to pwrite64.
2102 * libc/sys/linux/sched.c: Weak-alias __libc_sched_getparam,
2103 __libc_sched_getscheduler, __libc_sched_get_priority_max,
2104 __libc_sched_get_priority_min, and __libc_sched_setschedule to
2105 name with __ instead of __libc_.
2106 * libc/sys/linux/siglongjmp.c: Include <machine/weakalias.h>.
2107 Rename siglongjmp to __libc_siglongjmp and weak-alias to siglongjmp.
2108 Call __libc_longjmp instead of longjmp, from __libc_siglongjmp.
2109 * libc/sys/linux/signal.c: Rename raise to __libc_raise and weak-alias
2110 to raise.
2111 * libc/sys/linux/socket.c: Weak-alias __libc_connect to __connect and
2112 __libc_send to __send.
2113 * libc/sys/linux/time.c: Weak-alias __libc_gettimeofday to
2114 __gettimeofday.
2115 * libc/sys/linux/wait.c: Rename wait to __libc_wait and weak-alias
2116 it to wait. Rename wait3 to __libc_wait3 and weak-alias it to wait3.
2117 * libc/sys/linux/include/setjmp.h: Use __jmp_buf in sigjmp_buf
2118 type and typedef __jmp_buf to jmp_buf.
2119 * libc/sys/linux/machine/i386/Makefile.am: Add syscalls.c and
2120 setjmp.S.
2121 * libc/sys/linux/machine/i386/Makefile.in: Regenerated.
2122 * libc/sys/linux/machine/i386/crt0.c: Add support to clear .bss
2123 section.
2124 * libc/sys/linux/machine/i386/socketcall.h: Change to use __libc_
2125 prefix for function macros and then use weak_alias() to regular names.
2126 * libc/sys/linux/machine/i386/syscall.h: Ditto.
2127 * libc/sys/linux/sys/errno.h: Define EOPNOTSUP to be ENOTSUP.
2128 * libc/sys/linux/sys/stdio.h: Define _flockfile and _funlockfile
2129 to be flockfile() and funlockfile() respectively.
2130 * libc/sys/linux/sys/types.h
2131 * libc/reent/getreent.c: New file.
2132 * libc/sys/linux/flockfile.c: Ditto.
2133 * libc/sys/linux/funlockfile.c: Ditto.
2134 * libc/sys/linux/getreent.c: Ditto.
2135 * libc/sys/linux/pread.c: Ditto.
2136 * libc/sys/linux/pwrite.c: Ditto.
2137 * libc/sys/linux/raise.c: Ditto.
2138 * libc/sys/linux/system.c: Ditto.
2139 * libc/sys/linux/tcdrain.c: Ditto.
2140 * libc/sys/linux/machine/i386/i386mach.h: Ditto.
2141 * libc/sys/linux/machine/i386/setjmp.S: Ditto.
2142 * libc/sys/linux/machine/i386/syscalls.c: Ditto.
2143 * libc/sys/linux/machine/i386/weakalias.h: Ditto.
2144 * libc/sys/linux/machine/i386/include/setjmp.h: Ditto.
2145
2146 2002-05-14 Dhananjay Deshpande <dhananjayd@kpit.com>
2147
2148 * newlib/libc/sys/h8300hms/Makeile.am (lib_a_SOURCES): Add read.c.
2149 * newlib/libc/sys/h8300hms/read.c: New file. Magic trap 0xC8 for sim.
2150 * newlib/libc/sys/h8300hms/syscalls.c: Move _read() to read.c.
2151 * newlib/libs/sys/h8300hms/sys/syscall.h: New file.
2152
2153 Thu May 16 17:24:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
2154
2155 * libc/machine/sh/strcpy.S (strcpy): Replace LITTLE_ENDIAN with
2156 __LITTLE_ENDIAN__. make sure r0 has right value at first loop
2157 exit point.
2158
2159 2002-05-15 Thomas Fitzsimmons <fitzsim@redhat.com>
2160
2161 * testsuite/lib/newlib.exp: Add newlib_include_flags to compile
2162 options when testing natively on i[3456]86-*-linux.
2163
2164 * testsuite/lib/checkoutput.exp (newlib_check_output): Output
2165 only one pass or fail per test file. Trim \r's from output
2166 values received from test programs. Remove support for named
2167 tests.
2168 * testsuite/newlib.locale/UTF-8.exp: Update to support new
2169 newlib_check_output behaviour.
2170 * testsuite/newlib.locale/UTF-8.c: Likewise.
2171
2172 2002-05-15 Jeff Johnston <jjohnstn@redhat.com>
2173
2174 * libc/include/stdlib.h: Add on_exit prototype.
2175 * libc/include/sys/reent.h (struct _atexit): Add argument array
2176 and bits to track type of exit routine to support both on_exit
2177 and atexit.
2178 (_REENT_INIT_PTR): Add missing fields that won't be zeroed out
2179 by default and change the setting of the atexit structure.
2180 (_REENT_INIT)[!_REENT_SMALL]: Remove extraneous end brace.
2181 * libc/stdlib/on_exit.c: New file.
2182 * libc/stdlib/Makefile.am: Add support for on_exit.
2183 * libc/stdlib/Makefile.in: Regenerated.
2184 * libc/stdlib/atexit.c: Change to initialize types field.
2185 * libc/stdlib/exit.c: Change to look at types field for each
2186 exit routine and either call an atexit-style or an on_exit-style
2187 routine accordingly.
2188
2189 2002-05-13 Jeff Johnston <jjohnstn@redhat.com>
2190
2191 * libc/machine/powerpc/vfprintf.c(__VFPRINTF_R)[__ALTIVEC__]: Don't
2192 allow v specifier with n or L specifiers. For vector c format,
2193 move tmp declaration to the top.
2194
2195 2002-05-13 Jeff Johnston <jjohnstn@redhat.com>
2196
2197 * libc/machine/powerpc/vfprintf.c(__VFPRINTF_R)[__ALTIVEC__]: Restore
2198 the original format specifier when looping for vectors to compensate
2199 for any changes made in vector %g format processing.
2200 Also add syntax checking for various invalid scenarios
2201 involving vector format extensions.
2202 * libc/machine/powerpc/vfscanf.c(__VFSCANF_R)[__ALTIVEC__]: Fix
2203 return code setting for vector formats. Also treat vector
2204 separator mismatch as a match error instead of an input error.
2205 Perform some syntax checking for vector formats.
2206
2207 2002-05-10 Mark Bradshaw <bradshaw@staff.crosswalk.com>
2208
2209 * libc/include/string.h (!__STRICT_ANSI__): Add strlcat and strlcpy.
2210 * libc/string/Makefile.am: Add strlcat.c and strlcpy.c.
2211 * libc/string/strlcat.c: New file.
2212 * libc/string/strlcpy.c: New file.
2213
2214 2002-05-10 Jeff Johnston <jjohnstn@redhat.com>
2215
2216 * libc/string/strchr.c: Fix comment typo.
2217
2218 2002-05-08 Thomas Fitzsimmons <fitzsim@redhat.com>
2219
2220 * acinclude.m4: Add support for --enable-newlib-multithread.
2221 * configure.host (newlib_cflags): Add -D__SINGLE_THREAD__ if
2222 --enable-newlib-multithread=no.
2223
2224 * libc/stdio/getc_u.c: New file.
2225 * libc/stdio/getchar_u.c: New file.
2226 * libc/stdio/putc_u.c: New file.
2227 * libc/stdio/putchar_u.c: New file.
2228 * libc/include/stdio.h: Add declarations for getc_unlocked,
2229 getchar_unlocked, putc_unlocked and putchar_unlocked.
2230 * libc/stdio/Makefile.am (LIB_SOURCES): Add new files.
2231 (CHEWOUT_FILES): Add new files' .def's.
2232 * libc/stdio/putchar.c (_putchar_r): Replace __sputc with putc.
2233
2234 Wed May 8 17:47:35 2002 J"orn Rennecke <joern.rennecke@superh.com>
2235
2236 * libc/machine/sh/memset.S (memset, __SHMEDIA__ code):
2237 Also handle as single quad word when destination ends at last
2238 byte of first quad word. Fix byte selection in single quad code.
2239
2240 2002-05-07 Thomas Fitzsimmons <fitzsim@redhat.com>
2241
2242 * libc/include/sys/stdio.h: New file.
2243 * libc/sys/linux/sys/stdio.h: New file.
2244 * libc/include/stdio.h: Add declarations for flockfile,
2245 ftrylockfile, and funlockfile. Include <sys/stdio.h>.
2246 * libc/stdio/clearerr.c: Add file locking.
2247 * libc/stdio/fclose.c: Likewise.
2248 * libc/stdio/feof.c: Likewise.
2249 * libc/stdio/ferror.c: Likewise.
2250 * libc/stdio/fflush.c: Likewise.
2251 * libc/stdio/fgetc.c: Likewise.
2252 * libc/stdio/fgetpos.c: Likewise.
2253 * libc/stdio/fgets.c: Likewise.
2254 * libc/stdio/fileno.c: Likewise.
2255 * libc/stdio/fputc.c: Likewise.
2256 * libc/stdio/fputs.c: Likewise.
2257 * libc/stdio/fread.c: Likewise.
2258 * libc/stdio/freopen.c: Likewise.
2259 * libc/stdio/fseek.c: Likewise.
2260 * libc/stdio/ftell.c: Likewise.
2261 * libc/stdio/fwrite.c: Likewise.
2262 * libc/stdio/getc.c: Likewise.
2263 * libc/stdio/putc.c: Likewise.
2264 * libc/stdio/setvbuf.c: Likewise.
2265 * libc/stdio/ungetc.c: Likewise.
2266 * libc/stdio/vfprintf.c: Likewise.
2267
2268 2002-05-06 Jeff Johnston <jjohnstn@redhat.com>
2269
2270 * libc/machine/powerpc/vfprintf.c[__ALTIVEC__]: Add vector
2271 support for 'p' format. Fix code to print bytes for vector
2272 integer formats that do not specify 'h' or 'l'.
2273 * libc/machine/powerpc/vfscanf.c[__ALTIVEC__]: Add vector support
2274 for 'p' specifier. Fix code to scan 16 bytes for vector integer
2275 formats that do not specify 'h' or 'l'.
2276
2277 * libc/include/stdlib.h (a64l, l64a, _l64a_r): Added prototypes.
2278
2279 2002-05-06 Nick Clifton <nickc@cambridge.redhat.com>
2280
2281 * libc/sys/arm/syscalls.c (_rename): Add parameter names.
2282 (_sbrk): Add cast of return value.
2283
2284 2002-05-06 Jeff Johnston <jjohnstn@redhat.com>
2285
2286 * libc/include/sys/reent.h (_l64a_buf): New reentrant area.
2287 (_REENT_L64A_BUF): New macro for accessing area.
2288 * libc/stdlib/Makefile.am: Add a64l.c and l64a.c.
2289 * libc/stdlib/Makefile.in: Regenerated.
2290 * libc/stdlib/a64l.c: New file.
2291 * libc/stdlib/l64a.c: New file.
2292
2293 2002-05-06 Jeff Johnston <jjohnstn@redhat.com>
2294
2295 * libc/unix/pread.c: Fix typo for _pread_r.
2296 * libc/unix/pwrite.c: Fix type for _pwrite_r.
2297 * libc/sys/linux/pread64.c: Fix typo for read syscall.
2298 * libc/sys/linux/pwrite64.c: Fix typo for write syscall.
2299
2300 2002-05-03 Christopher Faylor <cgf@redhat.com>
2301
2302 * libc/include/sys/unistd.h: Define getdomainname under cygwin.
2303
2304 2002-05-03 Thomas Fitzsimmons <fitzsim@redhat.com>
2305
2306 * configure.in (CC_FOR_NEWLIB): Change -isystem's to -I's.
2307
2308 2002-05-01 Christopher Faylor <cgf@redhat.com>
2309
2310 * utmp.h: Define more UNIX constants.
2311
2312 2002-05-01 Thomas Fitzsimmons <fitzsim@redhat.com>
2313
2314 * Makefile.am: Add support for checking multilibs.
2315
2316 * libc/Makefile.am (SUBLIBS): Add LIBC_EXTRA_LIB.
2317 (SUBDEFS): Add LIBC_EXTRA_DEF.
2318 * libc/configure.in (LIBC_EXTRA_LIB): New variable.
2319 (LIBC_EXTRA_DEF): Likewise.
2320 (extra_dir): Likewise.
2321 * libc/machine/xscale/machine: New directory.
2322 * libc/machine/xscale/machine/profile.h: New file.
2323
2324 * Makefile.am (site.exp): Remove newlib_cflags. Add
2325 multibuildtop.
2326 * testsuite/newlib.locale/UTF-8.c: Change fprintf's to printf's.
2327 * testsuite/lib/flags.exp: New file.
2328 * testsuite/lib/newlib.exp: Load flags.exp.
2329 (newlib_target_compile): Remove libgloss directory references.
2330 (newlib_init): Remove newlib_cflags references.
2331
2332 2002-04-30 Thomas Fitzsimmons <fitzsim@redhat.com>
2333
2334 * testsuite/lib/newlib.exp (newlib_target_compile): Change
2335 method of finding libgloss_target_dir.
2336
2337 * Makefile.am (site.exp): Change host_alias, host_triplet,
2338 target_alias, target_triplet to refer to gcc's host and target
2339 variables (newlib's build and host variables).
2340 * testsuite/lib/newlib.exp (newlib_init): Change build
2341 references to host references, host references to target
2342 references to reflect Makefile.am changes.
2343 (newlib_target_compile): Likewise.
2344 (newlib_finish): Likewise.
2345
2346 2002-04-29 Jeff Johnston <jjohnstn@redhat.com>
2347
2348 * libc/sys/linux/io64.c (fstat64, lstat64): New syscalls added.
2349
2350 2002-04-29 Jonathan Larmour <jlarmour@redhat.com>
2351
2352 * libc/sys/arm/syscalls.c (_rename): New function. Just a stub.
2353 (_system): New function. Ditto.
2354 * libc/stdlib/system.c (_system_r): Call _system if HAVE_SYSTEM.
2355 * configure.host: define HAVE_SYSTEM and HAVE_RENAME for xscale
2356 targets.
2357
2358 2002-04-29 Jeff Johnston <jjohnstn@redhat.com>
2359
2360 * libc/include/sys/unistd.h (pread, pwrite): Added prototypes.
2361 * libc/unix/Makefile.am: Add pread.c and pwrite.c.
2362 * libc/sys/linux/Makefile.am: Add pread64.c and pwrite64.c.
2363 * libc/sys/linux/Makefile.in: Regenerated.
2364 * libc/unix/Makefile.in: Ditto.
2365 * libc/sys/linux/pread64.c: New file.
2366 * libc/sys/linux/pwrite64.c: Ditto.
2367 * libc/unix/pread.c: Ditto.
2368 * libc/unix/pwrite.c: Ditto.
2369
2370 2002-04-26 Jeff Johnston <jjohnstn@redhat.com>
2371
2372 * libc/sys/linux/Makefile.am: Add io64.c.
2373 * libc/sys/linux/Makefile.in: Regenerated.
2374 * libc/sys/linux/io.c(mkfifo, fsync, fdatasync): Added syscalls.
2375 * libc/sys/linux/signal.c (sigwaitinfo, sigtimedwait): Ditto.
2376 * libc/sys/linux/io64.c: New file.
2377
2378 2002-04-26 Jeff Johnston <jjohnstn@redhat.com>
2379
2380 * configure.in (CC_FOR_NEWLIB): New variable that
2381 bases on $(CC) and adds targ-include and libc/include as
2382 -isystem directives if they are not already part of $(CC).
2383 * Makefile.am (AM_MAKEFLAGS): Change setting of CC to equal
2384 $(CC_FOR_NEWLIB).
2385 * configure: Regenerated.
2386 * Makefile.in: Ditto.
2387
2388 2002-04-25 Jeff Johnston <jjohnstn@redhat.com>
2389
2390 * libc/sys/linux/Makefile.am: Add support for sched.c.
2391 * libc/sys/linux/Makefile.in: Regenerated.
2392 * libc/sys/linux/sched.c: New file.
2393 * libc/sys/linux/sys/types.h: Add struct timespec.
2394
2395 2002-04-25 Thomas Fitzsimmons <fitzsim@redhat.com>
2396
2397 * configure.in (CC_FOR_BUILD): Set to gcc whether
2398 cross-compiling or not.
2399 (CC): Add -isystem's for targ-include and libc/include when they
2400 do not already appear in CC.
2401
2402 2002-04-24 Thomas Fitzsimmons <fitzsim@redhat.com>
2403
2404 * Makefile.am (check-DEJAGNU): New target.
2405 (site.exp): Likewise.
2406 * acinclude.m4 (NEWLIB_CONFIGURE): Replace AC_CANONICAL_HOST
2407 with AC_CANONICAL_SYSTEM. Remove AC_CANONICAL_BUILD.
2408 * libc/locale/locale.c (_setlocale_r): Add UTF-8 support.
2409 * libc/stdlib/mbtowc_r.c (_mbtowc_r): Likewise.
2410 * libc/stdlib/wctomb_r.c (_wctomb_r): Likewise.
2411 * testsuite: New directory.
2412 * testsuite/config: Likewise.
2413 * testsuite/lib: Likewise.
2414 * testsuite/newlib.locale: Likewise.
2415 * testsuite/newlib.string: Likewise.
2416 * testsuite/config/default.exp: New file.
2417 * testsuite/lib/checkoutput.exp: New file.
2418 * testsuite/lib/newlib.exp: New file.
2419 * testsuite/lib/passfail.exp: New file.
2420 * testsuite/newlib.locale/UTF-8.c: New file.
2421 * testsuite/newlib.locale/UTF-8.exp: New file.
2422 * testsuite/newlib.locale/locale.exp: New file.
2423 * testsuite/newlib.string/string.exp: New file.
2424 * testsuite/newlib.string/tstring.c: New file.
2425
2426 2002-04-23 Jeff Johnston <jjohnstn@redhat.com>
2427
2428 * libc/include/machine/types.h (__pid_t, __off_t, __loff_t): Added.
2429 * libc/sys/linux/Makefile.am: Add support for mmap.c.
2430 * libc/sys/linux/Makefile.in: Regenerated.
2431 * libc/sys/linux/mmap.c: New file.
2432 * libc/sys/linux/machine/i386/syscall.h: Add _syscall6 macro.
2433 * libc/sys/linux/sys/types.h (pid_t, off_t, loff_t): Added.
2434
2435 2002-04-22 Thomas Fitzsimmons <fitzsim@redhat.com>
2436
2437 * acinclude.m4 (newlib_cflags): Remove include directories that
2438 are already specified in the top-level configure.in's FLAGS_FOR_TARGET.
2439
2440 2002-04-19 Bill Siegmund <ctc-dsl@pacbell.net>
2441
2442 * libc/machine/xscale/memchr.c: Don't use multi-line strings.
2443 * libc/machine/xscale/memcmp.c: Ditto.
2444 * libc/machine/xscale/memcpy.c: Ditto.
2445 * libc/machine/xscale/memmove.c: Ditto.
2446 * libc/machine/xscale/memset.c: Ditto.
2447 * libc/machine/xscale/strchr.c: Ditto.
2448 * libc/machine/xscale/strcmp.c: Ditto.
2449 * libc/machine/xscale/strcpy.c: Ditto.
2450 * libc/machine/xscale/strlen.c: Ditto.
2451
2452 2002-04-19 Alexandre Oliva <aoliva@redhat.com>
2453
2454 * libc/include/sys/config.h: Remove include of <limits.h>.
2455 (__INT_MAX__, __LONG_MAX__): Define like GCC's limits.h would
2456 define INT_MAX and LONG_MAX. Use them in tests.
2457
2458 2002-04-19 Jeff Johnston <jjohnstn@redhat.com>
2459
2460 * configure.host: Add support for powerpc-eabialtivec*.
2461 * libc/include/malloc.h: Add include of <machine/malloc.h>.
2462 * libc/include/stdlib.h: Add include of <machine/stdlib.h>.
2463 * libc/include/machine/malloc.h: New file.
2464 * libc/include/machine/stdlib.h: Ditto.
2465 * libc/include/machine/setjmp.h: Add support for powerpc altivec.
2466 * libc/machine/powerpc/Makefile.am: Add conditional objects and
2467 sources based on configuration.
2468 * libc/machine/powerpc/Makefile.in: Regenerated.
2469 * libc/machine/powerpc/configure: Ditto.
2470 * libc/machine/powerpc/configure.in: Add check for
2471 powerpc-eabialtivec* in which case add in additional source files.
2472 * libc/machine/powerpc/setjmp.S: Add altivec support.
2473 * libc/machine/powerpc/vec_calloc.c: New file.
2474 * libc/machine/powerpc/vec_free.c: Ditto.
2475 * libc/machine/powerpc/vec_malloc.c: Ditto.
2476 * libc/machine/powerpc/vec_mallocr.c: Ditto.
2477 * libc/machine/powerpc/vec_realloc.c: Ditto.
2478 * libc/machine/powerpc/machine/malloc.h: Ditto.
2479 * libc/machine/powerpc/machine/stdlib.h: Ditto.
2480 * libc/machine/powerpc/vfprintf.c: New file that is vfprintf.c
2481 with added altivec format specifiers.
2482 * libc/machine/powerpc/vfscanf.c: New file that is vfscanf.c with
2483 added altivec format specifiers.
2484
2485 2002-04-19 Joel Sherrill <joel@OARcorp.com>
2486
2487 * libs/sys/rtems/crt0.c: Satisfy gcc's references to libc functions
2488 while autoconf is trying to link main(){}.
2489
2490 2002-04-17 Jeff Johnston <jjohnstn@redhat.com>
2491
2492 * libc/sys/linux/signal.c: Remove include of <bits/sigset.h>.
2493 * libc/sys/linux/sys/signal.h: Add include of <bits/sigset.h>.
2494
2495 2002-04-17 Jeff Johnston <jjohnstn@redhat.com>
2496
2497 * libc/time/time.tex: Add tzset info.
2498
2499 2002-04-17 Jeff Johnston <jjohnstn@redhat.com>
2500
2501 * libc/include/time.h (tzset, _tzset_r): Added prototypes.
2502 (strptime): Moved prototype to be within !__STRICT_ANSI__.
2503 (_tzname, _daylight, _timezone): No long __CYGWIN__ only.
2504 (tzname): Defined for all platforms.
2505 (daylight, timezone): Defined only for CYGWIN.
2506 * libc/sys/linux/machine/i386/crt0.c: Add call to tzset() after
2507 environment set up.
2508 * libc/stdlib/setenv_r.c (_setenv_r): Call tzset() if the TZ
2509 environment variable is set.
2510 * libc/time/Makefile.am: Add support for tzset.c, tzlock.c, and
2511 tzset_r.c.
2512 * libc/time/Makefile.in: Regenerated.
2513 * libc/time/gmtime.c (gmtime): Changed to call gmtime_r.
2514 * libc/time/gmtime_r.c (gmtime_r): Changed to call _mktm_r.
2515 * libc/time/lcltime_r.c (lcltime_r): Ditto.
2516 * libc/time/local.h: New local header file.
2517 * libc/time/mktime.c (mktime): Add timezone support.
2518 * libc/time/mktm_r.c: New file which is the common engine
2519 for gmtime_r and lcltime_r. This code has timezone support.
2520 * libc/time/strftime.c (strftime): Add %Z timezone support.
2521 * libc/time/tzlock.c: New file containing timezone lock stubs.
2522 * libc/time/tzset.c: New file containing tzset() routine.
2523 * libc/time/tzset_r.c: New file containing _tzset_r and
2524 internal routine for calculating timezone changes for specified year.
2525
2526 2002-04-17 Thomas Fitzsimmons <fitzsim@redhat.com>
2527
2528 * configure.in (CRT0_DIR): Set to libc/.
2529 (CRT1_DIR): Set to ${crt1_dir}/ if crt1_dir is non-empty.
2530 * Makefile.am: Change all occurrences of $(CRT0_DIR)/$(CRT0) to
2531 $(CRT0_DIR)$(CRT0) to prevent make warnings. Likewise for
2532 $(CRT1_DIR)/$(CRT1).
2533 * libc/machine/xstormy16/Makefile.in: Regenerated.
2534 * libc/machine/xstormy16/aclocal.m4: Regenerated.
2535 * libc/machine/xstormy16/configure: Regenerated.
2536
2537 2002-04-13 Alexandre Oliva <aoliva@redhat.com>
2538
2539 * libc/stdlib/mallocr.c (malloc_extend_top): If correction sbrk
2540 fails, don't bail out, and try to correct next time.
2541
2542 * libc/include/sys/config.h: Include limits.h.
2543
2544 2002-04-12 Eric Norum <eric.norum@usask.com>
2545
2546 * libc/sys/rtems/crt0.c (rtems_gxx_mutex_init): Dummy
2547 routine to allow autoconf to determine that building executables
2548 for rtems works.
2549 (rtems_gxx_mutex_lock, rtems_gxx_mutex_unlock): Ditto.
2550 (rtems_gxx_mutex_once): Ditto.
2551
2552 2002-04-09 Tom Rix <trix@redhat.com>
2553
2554 * libc/include/sys/reent.h (_REENT_INIT_PTR): Fix typo.
2555
2556 2002-04-09 Mark Bradshaw <bradshaw@staff.crosswalk.com>
2557
2558 * libc/include/time.h: Fix strptime declaration.
2559 * libc/time/Makefile.am: Add strptime.c.
2560 * libc/time/Makefile.in: Regenerated.
2561 * libc/time/strptime.c: New file.
2562
2563 2002-04-08 Jeff Johnston <jjohnstn@redhat.com>
2564
2565 * libc/sys/linux/include/setjmp.h: Add sigjmp_buf type,
2566 siglongjmp prototype, and sigsetjmp macro definition.
2567 * libc/sys/linux/siglongjmp.c: New file.
2568 * libc/sys/linux/Makefile.am: Add support for siglongjmp.
2569 * libc/sys/linux/Makefile.in: Regenerated.
2570
2571 2002-04-04 Jeff Johnston <jjohnstn@redhat.com>
2572
2573 * Makefile.am: Add support for installing crt1.o if one exists.
2574 * configure.host: Specify crt1.o for linux.
2575 * configure.in: Expose CRT1 and CRT1_DIR for Makefile.am to use.
2576 * Makefile.in: Regenerated.
2577 * configure: Ditto.
2578 * libc/include/sys/unistd.h (_SC_STREAM_MAX, _SC_PRIORITY_SCHEDULING):
2579 Added for non-Cygwin, non-RTEMS configurations.
2580 * libc/sys/linux/Makefile.am: Add support for crt1 and sysconf.
2581 * libc/sys/linux/Makefile.in: Regenerated.
2582 * libc/sys/linux/crt1.c: New empty file to override one defaulted
2583 by gcc. This fixes problem with reconfiguring linux newlib build.
2584 * libc/sys/linux/sysconf.c: New file.
2585
2586 2002-04-03 Jeff Johnston <jjohnstn@redhat.com>
2587
2588 * configure.host: Add support for machine subdirectory of
2589 sys subdirectory.
2590 * configure.in: Add check for sys machine subdirectory.
2591 * Makefile.am: Ditto.
2592 * configure: Regenerated.
2593 * Makefile.in: Ditto.
2594 * libc/sys/linux/crt0.c: Moved to machine/i386 directory.
2595 * libc/sys/linux/sys/syscall.h: Ditto.
2596 * libc/sys/linux/sleep.c: New file.
2597 * libc/sys/linux/socket.c: Ditto.
2598 * libc/sys/linux/sockops.h: Ditto.
2599 * libc/sys/linux/stack.c: Ditto.
2600 * libc/sys/linux/usleep.c: Ditto.
2601 * libc/sys/linux/machine/Makefile.am: Ditto.
2602 * libc/sys/linux/machine/Makefile.in: Ditto.
2603 * libc/sys/linux/machine/aclocal.m4: Ditto.
2604 * libc/sys/linux/machine/configure: Ditto.
2605 * libc/sys/linux/machine/configure.in: Ditto.
2606 * libc/sys/linux/machine/i386/Makefile.am: Ditto.
2607 * libc/sys/linux/machine/i386/Makefile.in: Ditto.
2608 * libc/sys/linux/machine/i386/aclocal.m4: Ditto.
2609 * libc/sys/linux/machine/i386/configure: Ditto.
2610 * libc/sys/linux/machine/i386/configure.in: Ditto.
2611 * libc/sys/linux/machine/i386/crt0.c: Ditto.
2612 * libc/sys/linux/machine/i386/sigset.c: Ditto.
2613 * libc/sys/linux/machine/i386/sigstack.h: Ditto.
2614 * libc/sys/linux/machine/i386/socketcall.h: Ditto.
2615 * libc/sys/linux/machine/i386/syscall.h: Ditto.
2616 * libc/sys/linux/sys/select.h: Ditto.
2617 * libc/sys/linux/configure.in: Add support for machine directory.
2618 * libc/sys/linux/Makefile.am: Ditto plus add new files above.
2619 * libc/sys/linux/Makefile.in: Regenerated.
2620 * libc/sys/linux/configure: Ditto.
2621 * libc/sys/linux/brk.c: Use machine/syscall.h instead of sys/syscall.h.
2622 * libc/sys/linux/inode.c: Ditto.
2623 * libc/sys/linux/linux.c: Ditto.
2624 * libc/sys/linux/process.c: Ditto.
2625 * libc/sys/linux/systat.c: Ditto.
2626 * libc/sys/linux/time.c: Ditto.
2627 * libc/sys/linux/wait.c: Ditto.
2628 * libc/sys/linux/ids.c: Change header plus add setfsgid/setfsuid.
2629 * libc/sys/linux/io.c: Change header plus add readv/writev.
2630 * libc/sys/linux/signal.c: Change header plus change sigsuspend to
2631 use __sigsuspend syscall.
2632 * libc/sys/linux/select.c: Change header plus change select to
2633 use _newselect syscall.
2634 * libc/sys/linux/sys/cdefs.h: Add a number of standard definitions
2635 used by glibc header files.
2636 * libc/sys/linux/sys/types.h: Add __socklen_t and __useconds_t
2637 types.
2638
2639 2002-04-01 Jeff Johnston <jjohnstn@redhat.com>
2640
2641 * libc/include/sys/reent.h (_REENT_INIT_PTR): New macro for
2642 initializing a struct _reent that has been dynamically allocated.
2643 (_REENT_CHECK_MISC): New macro that checks _misc struct for
2644 _REENT_SMALL and does nothing otherwise.
2645 (_REENT_STRTOK_LAST): New macro for reentrant strtok.
2646 (_REENT_MBLEN_STATE): New macro for reentrant mblen.
2647 (_REENT_MBTOWC_STATE): New macro for reentrant mbtowc.
2648 (_REENT_WCTOMB_STATE): New macro for reentrant wctomb.
2649 [_REENT_SMALL](struct _misc_reent): New structure containing
2650 miscellaneous reentrant areas needed by newlib.
2651 [_REENT_SMALL](struct _reent): Add _misc pointer.
2652 [_REENT_SMALL](_REENT_INIT_MISC): New macro.
2653 * libc/string/strtok (strtok): Change to use _REENT_CHECK_MISC
2654 and _REENT_STRTOK_LAST macros.
2655 * libc/stdlib/mblen (mblen): Change to use _REENT_CHECK_MISC
2656 and _REENT_MBLEN_STATE macros.
2657 * libc/stdlib/mbtowc (mbtowc): Change to use _REENT_CHECK_MISC
2658 and _REENT_MBTOWC_STATE macros.
2659 * libc/stdlib/wctomb (wctomb): Change to use _REENT_CHECK_MISC
2660 and _REENT_WCTOMB_STATE macros.
2661
2662 2002-04-01 Till Straumann <strauman@SLAC.Stanford.EDU>
2663
2664 * libc/stdlib/getenv_r.c (_findenv_r): Add missing ENV_UNLOCK.
2665
2666 Wed Mar 27 07:34:44 2002 Jason Tishler <jason@tishler.net>
2667
2668 * libc/include/sys/features.h (_POSIX_SEMAPHORES): New Cygwin define.
2669
2670 Tue Mar 26 17:17:10 2002 J"orn Rennecke <joern.rennecke@superh.com>
2671
2672 * libc/machine/sh/memcpy.S (Large): Fix alignment rounding.
2673 Store high part of leading bytes too.
2674
2675 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
2676
2677 * libm/math/ef_hypot.c: Increase scale factor to 68.
2678
2679 2002-03-13 Alexandre Oliva <aoliva@redhat.com>
2680
2681 * libc/machine/mips/strlen.c (strlen) [__mips16]: Fix off-by-two
2682 error.
2683
2684 2002-03-12 Jeff Johnston <jjohnstn@redhat.com>
2685
2686 * libc/sys/go32/access.c: Change license to relaxed license
2687 used in identical file throughout newlib/libgloss.
2688
2689 2002-03-12 Richard Earnshaw <rearnsha@arm.com>
2690
2691 * libc/sys/arm/access.c: New file.
2692 * libc/sys/arm/Makefile.am (lib_a_SOURCES): Add access.c.
2693 * libc/sys/arm/Makefile.in: Regenerate.
2694 * libc/sys/arm/syscalls.c (_stat): New function.
2695
2696 2002-03-11 Michael Meissner <meissner@redhat.com>
2697
2698 * libc/machine/mips/Makefile.am (lib_a_SOURCES): Add Mips specific
2699 variants strlen.c, strcmp.c, strncpy.c, memset.c and memcpy.c.
2700 * libc/machine/mips/Makefile.in: Regenerate.
2701 * libc/machine/mips/memcpy.c: New file, optimized for MIPS.
2702 * libc/machine/mips/memset.c: Dito.
2703 * libc/machine/mips/strcmp.c: Dito.
2704 * libc/machine/mips/strlen.c: Dito.
2705 * libc/machine/mips/strncmp.c: Dito.
2706
2707 2002-03-06 Jeff Johnston <jjohnstn@redhat.com>
2708
2709 * libc/machine/i386/Makefile.am: Add $(oext) for setjmp
2710 object so it works for shared library or statici library.
2711 2002-04-17 Jeff Johnston <jjohnstn@redhat.com>
2712
2713 * libc/include/time.h (tzset, _tzset_r): Added prototypes.
2714 (strptime): Moved prototype to be within !__STRICT_ANSI__.
2715 (_tzname, _daylight, _timezone): No long __CYGWIN__ only.
2716 (tzname): Defined for all platforms.
2717 (daylight, timezone): Defined only for CYGWIN.
2718 * libc/sys/linux/machine/i386/crt0.c: Add call to tzset() after
2719 environment set up.
2720 * libc/stdlib/setenv_r.c (_setenv_r): Call tzset() if the TZ
2721 environment variable is set.
2722 * libc/time/Makefile.am: Add support for tzset.c, tzlock.c, and
2723 tzset_r.c.
2724 * libc/time/Makefile.in: Regenerated.
2725 * libc/time/gmtime.c (gmtime): Changed to call gmtime_r.
2726 * libc/time/gmtime_r.c (gmtime_r): Changed to call _mktm_r.
2727 * libc/time/lcltime_r.c (lcltime_r): Ditto.
2728 * libc/time/local.h: New local header file.
2729 * libc/time/mktime.c (mktime): Add timezone support.
2730 * libc/time/mktm_r.c: New file which is the common engine
2731 for gmtime_r and lcltime_r. This code has timezone support.
2732 * libc/time/strftime.c (strftime): Add %Z timezone support.
2733 * libc/time/tzlock.c: New file containing timezone lock stubs.
2734 * libc/time/tzset.c: New file containing tzset() routine.
2735 * libc/time/tzset_r.c: New file containing _tzset_r and
2736 internal routine for calculating timezone changes for specified year.
2737
2738 2002-04-17 Thomas Fitzsimmons <fitzsim@redhat.com>
2739
2740 * configure.in (CRT0_DIR): Set to libc/.
2741 (CRT1_DIR): Set to ${crt1_dir}/ if crt1_dir is non-empty.
2742 * Makefile.am: Change all occurrences of $(CRT0_DIR)/$(CRT0) to
2743 $(CRT0_DIR)$(CRT0) to prevent make warnings. Likewise for
2744 $(CRT1_DIR)/$(CRT1).
2745 * libc/machine/xstormy16/Makefile.in: Regenerated.
2746 * libc/machine/xstormy16/aclocal.m4: Regenerated.
2747 * libc/machine/xstormy16/configure: Regenerated.
2748
2749 2002-04-13 Alexandre Oliva <aoliva@redhat.com>
2750
2751 * libc/stdlib/mallocr.c (malloc_extend_top): If correction sbrk
2752 fails, don't bail out, and try to correct next time.
2753
2754 * libc/include/sys/config.h: Include limits.h.
2755
2756 2002-04-12 Eric Norum <eric.norum@usask.com>
2757
2758 * libc/sys/rtems/crt0.c (rtems_gxx_mutex_init): Dummy
2759 routine to allow autoconf to determine that building executables
2760 for rtems works.
2761 (rtems_gxx_mutex_lock, rtems_gxx_mutex_unlock): Ditto.
2762 (rtems_gxx_mutex_once): Ditto.
2763
2764 2002-04-09 Tom Rix <trix@redhat.com>
2765
2766 * libc/include/sys/reent.h (_REENT_INIT_PTR): Fix typo.
2767
2768 2002-04-09 Mark Bradshaw <bradshaw@staff.crosswalk.com>
2769
2770 * libc/include/time.h: Fix strptime declaration.
2771 * libc/time/Makefile.am: Add strptime.c.
2772 * libc/time/Makefile.in: Regenerated.
2773 * libc/time/strptime.c: New file.
2774
2775 2002-04-08 Jeff Johnston <jjohnstn@redhat.com>
2776
2777 * libc/sys/linux/include/setjmp.h: Add sigjmp_buf type,
2778 siglongjmp prototype, and sigsetjmp macro definition.
2779 * libc/sys/linux/siglongjmp.c: New file.
2780 * libc/sys/linux/Makefile.am: Add support for siglongjmp.
2781 * libc/sys/linux/Makefile.in: Regenerated.
2782
2783 2002-04-04 Jeff Johnston <jjohnstn@redhat.com>
2784
2785 * Makefile.am: Add support for installing crt1.o if one exists.
2786 * configure.host: Specify crt1.o for linux.
2787 * configure.in: Expose CRT1 and CRT1_DIR for Makefile.am to use.
2788 * Makefile.in: Regenerated.
2789 * configure: Ditto.
2790 * libc/include/sys/unistd.h (_SC_STREAM_MAX, _SC_PRIORITY_SCHEDULING):
2791 Added for non-Cygwin, non-RTEMS configurations.
2792 * libc/sys/linux/Makefile.am: Add support for crt1 and sysconf.
2793 * libc/sys/linux/Makefile.in: Regenerated.
2794 * libc/sys/linux/crt1.c: New empty file to override one defaulted
2795 by gcc. This fixes problem with reconfiguring linux newlib build.
2796 * libc/sys/linux/sysconf.c: New file.
2797
2798 2002-04-03 Jeff Johnston <jjohnstn@redhat.com>
2799
2800 * configure.host: Add support for machine subdirectory of
2801 sys subdirectory.
2802 * configure.in: Add check for sys machine subdirectory.
2803 * Makefile.am: Ditto.
2804 * configure: Regenerated.
2805 * Makefile.in: Ditto.
2806 * libc/sys/linux/crt0.c: Moved to machine/i386 directory.
2807 * libc/sys/linux/sys/syscall.h: Ditto.
2808 * libc/sys/linux/sleep.c: New file.
2809 * libc/sys/linux/socket.c: Ditto.
2810 * libc/sys/linux/sockops.h: Ditto.
2811 * libc/sys/linux/stack.c: Ditto.
2812 * libc/sys/linux/usleep.c: Ditto.
2813 * libc/sys/linux/machine/Makefile.am: Ditto.
2814 * libc/sys/linux/machine/Makefile.in: Ditto.
2815 * libc/sys/linux/machine/aclocal.m4: Ditto.
2816 * libc/sys/linux/machine/configure: Ditto.
2817 * libc/sys/linux/machine/configure.in: Ditto.
2818 * libc/sys/linux/machine/i386/Makefile.am: Ditto.
2819 * libc/sys/linux/machine/i386/Makefile.in: Ditto.
2820 * libc/sys/linux/machine/i386/aclocal.m4: Ditto.
2821 * libc/sys/linux/machine/i386/configure: Ditto.
2822 * libc/sys/linux/machine/i386/configure.in: Ditto.
2823 * libc/sys/linux/machine/i386/crt0.c: Ditto.
2824 * libc/sys/linux/machine/i386/sigset.c: Ditto.
2825 * libc/sys/linux/machine/i386/sigstack.h: Ditto.
2826 * libc/sys/linux/machine/i386/socketcall.h: Ditto.
2827 * libc/sys/linux/machine/i386/syscall.h: Ditto.
2828 * libc/sys/linux/sys/select.h: Ditto.
2829 * libc/sys/linux/configure.in: Add support for machine directory.
2830 * libc/sys/linux/Makefile.am: Ditto plus add new files above.
2831 * libc/sys/linux/Makefile.in: Regenerated.
2832 * libc/sys/linux/configure: Ditto.
2833 * libc/sys/linux/brk.c: Use machine/syscall.h instead of sys/syscall.h.
2834 * libc/sys/linux/inode.c: Ditto.
2835 * libc/sys/linux/linux.c: Ditto.
2836 * libc/sys/linux/process.c: Ditto.
2837 * libc/sys/linux/systat.c: Ditto.
2838 * libc/sys/linux/time.c: Ditto.
2839 * libc/sys/linux/wait.c: Ditto.
2840 * libc/sys/linux/ids.c: Change header plus add setfsgid/setfsuid.
2841 * libc/sys/linux/io.c: Change header plus add readv/writev.
2842 * libc/sys/linux/signal.c: Change header plus change sigsuspend to
2843 use __sigsuspend syscall.
2844 * libc/sys/linux/select.c: Change header plus change select to
2845 use _newselect syscall.
2846 * libc/sys/linux/sys/cdefs.h: Add a number of standard definitions
2847 used by glibc header files.
2848 * libc/sys/linux/sys/types.h: Add __socklen_t and __useconds_t
2849 types.
2850
2851 2002-04-01 Jeff Johnston <jjohnstn@redhat.com>
2852
2853 * libc/include/sys/reent.h (_REENT_INIT_PTR): New macro for
2854 initializing a struct _reent that has been dynamically allocated.
2855 (_REENT_CHECK_MISC): New macro that checks _misc struct for
2856 _REENT_SMALL and does nothing otherwise.
2857 (_REENT_STRTOK_LAST): New macro for reentrant strtok.
2858 (_REENT_MBLEN_STATE): New macro for reentrant mblen.
2859 (_REENT_MBTOWC_STATE): New macro for reentrant mbtowc.
2860 (_REENT_WCTOMB_STATE): New macro for reentrant wctomb.
2861 [_REENT_SMALL](struct _misc_reent): New structure containing
2862 miscellaneous reentrant areas needed by newlib.
2863 [_REENT_SMALL](struct _reent): Add _misc pointer.
2864 [_REENT_SMALL](_REENT_INIT_MISC): New macro.
2865 * libc/string/strtok (strtok): Change to use _REENT_CHECK_MISC
2866 and _REENT_STRTOK_LAST macros.
2867 * libc/stdlib/mblen (mblen): Change to use _REENT_CHECK_MISC
2868 and _REENT_MBLEN_STATE macros.
2869 * libc/stdlib/mbtowc (mbtowc): Change to use _REENT_CHECK_MISC
2870 and _REENT_MBTOWC_STATE macros.
2871 * libc/stdlib/wctomb (wctomb): Change to use _REENT_CHECK_MISC
2872 and _REENT_WCTOMB_STATE macros.
2873
2874 2002-04-01 Till Straumann <strauman@SLAC.Stanford.EDU>
2875
2876 * libc/stdlib/getenv_r.c (_findenv_r): Add missing ENV_UNLOCK.
2877
2878 Wed Mar 27 07:34:44 2002 Jason Tishler <jason@tishler.net>
2879
2880 * libc/include/sys/features.h (_POSIX_SEMAPHORES): New Cygwin define.
2881
2882 Tue Mar 26 17:17:10 2002 J"orn Rennecke <joern.rennecke@superh.com>
2883
2884 * libc/machine/sh/memcpy.S (Large): Fix alignment rounding.
2885 Store high part of leading bytes too.
2886
2887 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
2888
2889 * libm/math/ef_hypot.c: Increase scale factor to 68.
2890
2891 2002-03-13 Alexandre Oliva <aoliva@redhat.com>
2892
2893 * libc/machine/mips/strlen.c (strlen) [__mips16]: Fix off-by-two
2894 error.
2895
2896 2002-03-12 Jeff Johnston <jjohnstn@redhat.com>
2897
2898 * libc/sys/go32/access.c: Change license to relaxed license
2899 used in identical file throughout newlib/libgloss.
2900
2901 2002-03-12 Richard Earnshaw <rearnsha@arm.com>
2902
2903 * libc/sys/arm/access.c: New file.
2904 * libc/sys/arm/Makefile.am (lib_a_SOURCES): Add access.c.
2905 * libc/sys/arm/Makefile.in: Regenerate.
2906 * libc/sys/arm/syscalls.c (_stat): New function.
2907
2908 2002-03-11 Michael Meissner <meissner@redhat.com>
2909
2910 * libc/machine/mips/Makefile.am (lib_a_SOURCES): Add Mips specific
2911 variants strlen.c, strcmp.c, strncpy.c, memset.c and memcpy.c.
2912 * libc/machine/mips/Makefile.in: Regenerate.
2913 * libc/machine/mips/memcpy.c: New file, optimized for MIPS.
2914 * libc/machine/mips/memset.c: Dito.
2915 * libc/machine/mips/strcmp.c: Dito.
2916 * libc/machine/mips/strlen.c: Dito.
2917 * libc/machine/mips/strncmp.c: Dito.
2918
2919 2002-03-06 Jeff Johnston <jjohnstn@redhat.com>
2920
2921 * libc/machine/i386/Makefile.am: Add $(oext) for setjmp
2922 object so it works for shared library or statici library.
2923 * libc/machine/i386/Makefile.in: Regenerated.
2924
2925 Wed Mar 6 10:24:26 2002 J"orn Rennecke <joern.rennecke@superh.com>
2926
2927 * libc/machine/sh/Makefile.am (lib_a_SOURCES, SH64 case):
2928 Add memcpy.S, memset.S and strcpy.S.
2929 * libc/machine/sh/Makefile.in: Regenerate.
2930 * libc/machine/sh/asm.h (_ENTRY): Set SH5 alignment to 8 bytes.
2931 (SHHI, SHLO): Define.
2932 * libc/machine/sh/memset.S: Add code for SH5.
2933 * libc/machine/sh/memset.S: Likewise.
2934 * libc/machine/sh/strcpy.S: Likewise.
2935
2936 2002-02-27 Jeff Johnston <jjohnstn@redhat.com>
2937
2938 * configure.host: Add check for --disable-newlib-io-float
2939 configuration option and add -DNO_FLOATING_POINT to newlib cflags
2940 if appropriate.
2941 * acinclude.m4: Added --disable-newlib-io-float option.
2942 * aclocal.m4: Regenerated.
2943 * configure: Ditto.
2944 * doc/aclocal.m4 doc/configure libc/aclocal.m4 libc/configure
2945 * libc/*/aclocal.m4 libc/*/configure
2946 * libm/*/aclocal.m4 libm/*/configure: Ditto.
2947 * libc/stdio/vfprintf.c [!INTEGER_ONLY]: Only set FLOATING_POINT
2948 if NO_FLOATING_POINT flag is not defined.
2949
2950 2002-02-25 Jeff Johnston <jjohnstn@redhat.com>
2951
2952 * libc/include/sys/config.h: Add __extension__ in front of
2953 long long references.
2954
2955 2002-02-23 Corinna Vinschen <corinna@vinschen.de>
2956
2957 * libc/include/sys/stat.h (_fstat): Don't declare when compiling Cygwin.
2958 (_stat): Ditto.
2959
2960 2002-02-23 Corinna Vinschen <corinna@vinschen.de>
2961
2962 * libc/sys/cygwin/sys/dirent.h (struct __DIR): Use __off32_t instead
2963 of off_t.
2964
2965 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
2966
2967 * libc/machine/xscale/strchr.c (strchr): Add 'r1' to the list of
2968 clobbered registers.
2969
2970 2002-02-19 Thomas Fitzsimmons <fitzsim@redhat.com>
2971
2972 * configure.host (newlib_cflags): When host is in m68* add
2973 -DCOMPACT_CTYPE.
2974
2975 2002-02-15 Jeff Johnston <jjohnstn@redhat.com>
2976
2977 * libc/include/sys/config.h: Add definitions for
2978 __int16_t, __uint16_t, __int64_t, and __uint64_t.
2979
2980 2002-02-12 Hans-Peter Nilsson <hp@bitrange.com>
2981
2982 * libc/sys/mmixware/link.c: New.
2983 * libc/sys/mmixware/sys/syscall.h (TRAP1i, I3f): Make asm
2984 volatile.
2985 * libc/sys/mmixware/times.c (_times): Renamed from times.
2986 * libc/sys/mmixware/open.c (_open): Attempt to handle O_APPEND
2987 properly by reading previous contents, not through BinaryReadWrite.
2988 * libc/sys/mmixware/Makefile.am (lib_a_SOURCES): Add link.c
2989 * libc/sys/mmixware/Makefile.in: Regenerate.
2990
2991 2002-02-10 Corinna Vinschen <corinna@vinschen.de>
2992
2993 * libc/include/grp.h: Don't declare group functions when compiling
2994 Cygwin.
2995
2996 2002-02-09 Corinna Vinschen <corinna@vinschen.de>
2997
2998 * libc/include/grp.h: Include Cygwin specific header.
2999 * libc/include/sys/stat.h: Ditto. Don't define `struct stat'
3000 when compiling for Cygwin.
3001 * libc/include/sys/types.h: Don't define off_t, uid_t
3002 and gid_t when compiling for Cygwin.
3003
3004 2002-02-08 matthew green <mrg@redhat.com>
3005
3006 * libc/include/sys/reent.h (_REENT_CHECK_EMERGENCY): Allocate
3007 _REENT_EMERGENCY_SIZE, not sizeof(char *).
3008
3009 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
3010
3011 Contribute sh64-elf.
3012 2001-03-13 Alexandre Oliva <aoliva@redhat.com>
3013 * configure.host (newlib_cflags) [sh*-*-*]: Enable long long
3014 support in printf.
3015 2001-01-29 Alexandre Oliva <aoliva@redhat.com>
3016 * libc/machine/sh/setjmp.S [SH5]: Switch to SHmedia mode before
3017 any labels.
3018 2001-01-24 Alexandre Oliva <aoliva@redhat.com>
3019 * libc/sys/sh/trap.S (___trap34) [SH5]: Don't trash r2.
3020 2000-12-16 Alexandre Oliva <aoliva@redhat.com>
3021 * libc/machine/sh/configure.in: Rework conditionals.
3022 * libc/machine/sh/Makefile.am: Likewise.
3023 * libc/machine/sh/configure, libc/machine/sh/Makefile.in: Rebuilt.
3024 2000-12-01 Alexandre Oliva <aoliva@redhat.com>
3025 * configure.host: Match `sh*'.
3026 * libc/include/machine/setjmp.h: Define for SH5.
3027 * libc/machine/sh/configure.in: Detect SH5.
3028 * libc/machine/sh/configure: Rebuilt.
3029 * libc/machine/sh/Makefile.am: Use only setjmp.S for SH5.
3030 * libc/machine/sh/Makefile.in: Rebuilt.
3031 * libc/machine/sh/asm.h: Adjust for SH5.
3032 * libc/machine/sh/setjmp.S: Implement in SHmedia.
3033 * libc/sys/sh/crt0.S: Likewise.
3034 * libc/sys/sh/trap.S: Likewise.
3035
3036 2002-02-07 Jeff Johnston <jjohnstn@redhat.com>
3037
3038 * libc/machine/i386/Makefile.am: (mach_add_src): Remove.
3039 (mach_add_obj): Conditionally set to setjmp.o or nothing.
3040 (LIB_SOURCES): Remove $(mach_add_src).
3041 (lib_a_LIBADD, lib_a_DEPENDENCIES): Add and set to $(mach_add_src).
3042 (lib_la_LIBADD, lib_la_DEPENDENCIES): Ditto.
3043 * libc/machine/i386/Makefile.in: Regenerate.
3044
3045 2002-02-05 Manik Raina <manik@cisco.com>
3046
3047 * libc/misc/dprintf.c (parse_number): #if 0 unused function.
3048 * libc/stdlib/ldtoa.c (_ldcheck): Remove unused local variables
3049 s, p, k, and outstr.
3050 * libc/stdlib/dtoa.c (_dtoa_r): Initialize mlo.
3051
3052 2002-02-04 Jeff Johnston <jjohnstn@redhat.com>
3053
3054 * libc/include/sys/reent.h [(!_REENT_SMALL]: Add
3055 _REENT_CHECK_EMERGENCY macro.
3056
3057 2002-02-03 matthew green <mrg@redhat.com>
3058
3059 * libc/reent/signgam.c (__signgam): Fix error in previous.
3060
3061 2002-02-02 matthew green <mrg@redhat.com>
3062
3063 * libc/include/sys/config.h (_REENT_SMALL): Define for Xstormy16.
3064
3065 * libc/reent/reent.c (_reclaim_reent): Clean for _REENT_SMALL case.
3066 * libc/reent/reent.tex: Add blurb about _REENT_SMALL.
3067 * libc/include/sys/reent.h (struct _reent): Completely new version
3068 for _REENT_SMALL.
3069 (_REENT_INIT): New defines, different defintion depending on _REENT_SMALL.
3070 (_REENT_CHECK, _REENT_CHECK_TM): Likewise.
3071 (_REENT_CHECK_ASCTIME_BUF, _REENT_INIT_RAND48): Likewise.
3072 (_REENT_CHECK_RAND48, _REENT_INIT_MP, _REENT_CHECK_MP): Likewise.
3073 (_REENT_CHECK_EMERGENCY, _REENT_SIGNGAM, _REENT_RAND_NEXT): Likewise.
3074 (_REENT_RAND48_SEED, _REENT_RAND48_MULT, _REENT_RAND48_ADD): Likewise.
3075 (_REENT_MP_RESULT, _REENT_MP_RESULT_K, _REENT_MP_P5S): Likewise.
3076 (_REENT_MP_FREELIST, _REENT_ASCTIME_BUF, _REENT_TM): Likewise.
3077 (_REENT_EMERGENCY): Likewise.
3078
3079 * libc/include/sys/reent.h (struct __sFILE_fake): New struct, same as
3080 the start of the real __sFILE, used for stdin, stdout and stderr until
3081 they are setup properly.
3082 (struct __sFILE): Move location of _data in _REENT_SMALL case.
3083 * libc/stdio/findfp.c (__sinit): Rearrange for _REENT_SMALL case by
3084 allocated stdin, stdout and stderr.
3085 * libc/stdio/getchar.c (_getchar_r): Call _REENT_SMALL_CHECK_INIT().
3086 * libc/stdio/iprintf.c (iprintf, _iprintf_r): Likewise.
3087 * libc/stdio/perror.c (_perror_r): Likewise.
3088 * libc/stdio/printf.c (printf, _printf_r): Likewise.
3089 * libc/stdio/putchar.c (_putchar_r): Likewise.
3090 * libc/stdio/puts.c (_puts_r): Likewise.
3091 * libc/stdio/scanf.c (scanf, _scanf_r): Likewise.
3092 * libc/stdio/vprintf.c (vprintf): Likewise.
3093 * libc/stdio/vscanf.c (vscanf, _vscanf_r): Likewise.
3094
3095 * libc/stdio/tmpnam.c (_tmpnam_r): Use _REENT_EMERGENCY().
3096
3097 * libc/reent/reent.c (_wrapup_reent): Adjust for _REENT_SMALL atexit.
3098 * libc/include/sys/reent.h (_atexit): Limit atexit() entries to 32
3099 for _REENT_SMALL.
3100 * libc/stdlib/atexit.c (atexit): Rearrange for _REENT_SMALL case.
3101 * libc/stdlib/exit.c (exit): Rearrange for _REENT_SMALL case.
3102
3103 * libc/include/sys/reent.h (struct _rand48): Keep _rand_next if
3104 _REENT_SMALL.
3105 * libc/stdlib/drand48.c (_drand48_r): Call _REENT_CHECK_RAND48().
3106 * libc/stdlib/lcong48.c (_lcong48_r): Likewise.
3107 * libc/stdlib/lrand48.c (_lrand48_r): Likewise.
3108 * libc/stdlib/mrand48.c (_mrand48_r): Likewise.
3109 * libc/stdlib/rand48.c (__dorand48): Likewise.
3110 * libc/stdlib/seed48.c (_seed48_r): Likewise.
3111 * libc/stdlib/srand48.c (_srand48_r): Likewise.
3112 * libc/stdlib/rand48.h (__rand48_seed, __rand48_mult, __rand48_add): Define
3113 as _REENT_RAND48_SEED(), _REENT_RAND48_MULT() and _REENT_RAND48_ADD().
3114 * libc/stdlib/dtoa.c (_dtoa_r): Call _REENT_CHECK_MP(). Use
3115 _REENT_MP_RESULT() and _REENT_MP_RESULT_K().
3116 * libc/stdlib/ldtoa.c (_ldtoa_r): Likewise.
3117 * libc/stdlib/rand.c (srand): Use _REENT_RAND_NEXT().
3118 * libc/stdlib/rand.c (rand): Likewise.
3119
3120 * libc/stdlib/mallocr.c (malloc_stats): Call _REENT_SMALL_CHECK_INIT().
3121 * libc/stdlib/mstats.c (_mstats_r): Call _REENT_SMALL_CHECK_INIT().
3122
3123 * libc/stdlib/mprec.c (Balloc): Call _REENT_CHECK_MP. Use
3124 _REENT_MP_FREELIST() and _REENT_MP_P5S.
3125 * libc/include/sys/reent.h (struct _mprec): New structure.
3126
3127 * libc/include/sys/reent.h (struct _reent): Rename _strtok_last to
3128 _unused_strtok_last.
3129 * libc/string/strtok.c (strtok): Use a local static variable.
3130
3131 * libc/include/sys/reent.h (_REENT_ASCTIME_SIZE): New define.
3132 (_REENT_EMERGENCY_SIZE): Likewise.
3133 * libc/time/asctime.c (asctime): Call _REENT_CHECK_ASCTIME_BUF(). Use
3134 _REENT_ASCTIME_BUF().
3135 * libc/time/lcltime.c (localtime): Call _REENT_CHECK_TM(). Use
3136 _REENT_TM().
3137
3138 * libc/include/math.h (__singam_r): Use _REENT_SIGNGAM().
3139 * libc/reent/signgam.c (__signgam): Use _REENT_SIGNGAM().
3140 * libm/math/w_gamma.c (gamma): Use _REENT_SIGNGAM().
3141 * libm/math/w_lgamma.c (lgamma): Use _REENT_SIGNGAM().
3142 * libm/math/wf_gamma.c (gammaf): Use _REENT_SIGNGAM().
3143 * libm/math/wf_lgamma.c (lgammaf): Use _REENT_SIGNGAM().
3144
3145 2002-02-01 Geoffrey Keating <geoffk@redhat.com>
3146
3147 * configure.host (xstormy16): Don't use the generic malloc.
3148 * libc/machine/xstormy16/Makefile.am: Build tiny-malloc.
3149 * libc/machine/xstormy16/Makefile.in: Regenerate.
3150 * libc/machine/xstormy16/mallocr.c: New file.
3151 * libc/machine/xstormy16/tiny-malloc.c: New file.
3152
3153 2002-01-28 Thomas Fitzsimmons <fitzsim@redhat.com>
3154
3155 * libc/include/sys/signal.h [__CYGWIN__]: Issue error message
3156 when _CYGWIN_TYPES_H is not defined.
3157
3158 2002-01-24 Thomas Fitzsimmons <fitzsim@redhat.com>
3159
3160 * libc/include/sys/signal.h: Revert 2002-01-23 change.
3161
3162 2002-01-23 Thomas Fitzsimmons <fitzsim@redhat.com>
3163
3164 * libc/include/sys/signal.h: Remove pthread_kill declaration
3165 when __CYGWIN__ is defined.
3166
3167 2002-01-18 Mark Bradshaw <bradshaw@staff.crosswalk.com>
3168
3169 * libc/include/time.h: Add prototype for strptime for Cygwin.
3170
3171 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
3172
3173 * libc/machine/xscale/memset.c (memset): Fix bug when len == 1 and
3174 dst was not word aligned.
3175
3176 * libc/sys/arm/syscalls.c (_sbrk): Return -1 rather than aborting
3177 if too much memory is requested.
3178
3179 2002-01-11 Jeff Johnston <jjohnstn@redhat.com>
3180
3181 * libc/stdio/vfscanf.c (__svfscanf_r): Change loop that
3182 reads blanks from the input file to break if EOF reached
3183 rather than end processing.
3184
3185 2002-01-07 Jeff Johnston <jjohnstn@redhat.com>
3186
3187 * MAINTAINERS: Change e-mail addresses to refer to redhat domain.
3188
3189 2002-01-07 Alan Matsuoka <alanm@redhat.com>
3190
3191 * libc/include/machine/ieeefp.h: Configure d10v doubles to
3192 be 32 bits if __DOUBLE__ == 32 otherwise doubles are 64 bits.
3193 libc/include/sys/config.h: Ditto.
3194
3195 2001-12-28 Corinna Vinschen <corinna@vinschen.de>
3196
3197 * libc/sys/cygwin/sys/utmp.h: Add definition of UTMP_FILE.
3198
3199 2001-12-22 Geoffrey Keating <geoffk@redhat.com>
3200 Catherine Moore <clm@redhat.com>
3201 Richard Henderson <rth@redhat.com>
3202 Corinna Vinschen <vinschen@redhat.com>
3203
3204 * configure.host: Add support for xstormy16.
3205 * libc/include/machine/ieeefp.h: Add support for xstormy16.
3206 * libc/include/machine/setjmp.h: Add support for xstormy16.
3207 * libc/include/sys/config.h: Add support for xstormy16.
3208 * libc/machine/xstormy16/Makefile.am: New file.
3209 * libc/machine/xstormy16/Makefile.in: New file.
3210 * libc/machine/xstormy16/aclocal.m4: New file.
3211 * libc/machine/xstormy16/configure: New file.
3212 * libc/machine/xstormy16/configure.in: New file.
3213 * libc/machine/xstormy16/setjmp.S: New file.
3214
3215 2001-12-19 Thomas Fitzsimmons <fitzsim@redhat.com>
3216
3217 * libm/machine/configure.in (HAVE_LIBM_MACHINE_DIR): New conditional.
3218 * libm/machine/Makefile.am [HAVE_LIBM_MACHINE_DIR] (LIBM_MACHLIB): New variable.
3219
3220 2001-12-19 Corinna Vinschen <corinna@vinschen.de>
3221
3222 * libm/machine/Makefile.am: Change rules to create correct lib.a.
3223 * libm/machine/Makefile.in: Regenerated through automake.
3224
3225 2001-12-18 Thomas Fitzsimmons <fitzsim@redhat.com>
3226
3227 * Makefile.am (DOCDIR): Force to empty string when doc
3228 directory is not present.
3229
3230 2001-12-18 Thomas Fitzsimmons <fitzsim@redhat.com>
3231
3232 * libc/machine/i386/f_*: Move to libm/machine/i386.
3233
3234 2001-12-18 Joel Sherrill <joel@OARcorp.com>
3235
3236 * libm/machine/Makefile.am: Add dummy doc stub so
3237 "make info" works.
3238
3239 2001-12-17 Joel Sherrill <joel@OARcorp.com>
3240
3241 * libc/include/sys/types.h (ino_t): RTEMS uses long also.
3242
3243 2001-12-17 Thomas Fitzsimmons <fitzsim@redhat.com>
3244
3245 * libc/stdlib/Makefile.am (LIB_COMPILE): Change to equal
3246 $(COMPILE) rather than $(CC).
3247 * libc/stdio/Makefile.am (LIB_COMPILE): Likewise.
3248 (vfprintf.$(oext)): Remove $(INCLUDES), made redundant by
3249 $(LIB_COMPILE) change.
3250 (vfiprintf.$(oext)): Likewise.
3251
3252 2001-12-17 Corinna Vinschen <vinschen@redhat.de>
3253
3254 * libc/sys/cygwin/include/unistd.h: Add __UNISTD_GETOPT_ to allow
3255 conditionalized including of getopt stuff.
3256
3257 2001-12-14 Thomas Fitzsimmons <fitzsim@redhat.com>
3258
3259 * libc/stdio/Makefile.am (vfprintf.$(oext)): Add $(INCLUDES) to
3260 compile line.
3261 (vfiprintf.$(oext)): Likewise.
3262
3263 2001-12-13 Thomas Fitzsimmons <fitzsim@redhat.com>
3264
3265 * Makefile.shared: New file.
3266 * libc/sys/linux/shared.ld: New file.
3267 * libm/machine/*: New files.
3268 * libm/machine/i386/*: New files.
3269 * Makefile.am: Add libtool support. Change math and mathfp
3270 references to variables.
3271 * configure.host: Add variables for libtool support. Add
3272 libm_machine_dir variable.
3273 * configure.in: Add objectlist variables, for libtool
3274 support. Add CC_FOR_BUILD tests.
3275 * libc/Makefile.am: Add libtool support. Change crt0.o
3276 reference to be a variable reference.
3277 * libc/configure.in: Add libtool support. Change sublib
3278 names to be lib${subdir}.la when using libtool.
3279 * libc/ctype/Makefile.am: Add libtool support.
3280 * libc/errno/Makefile.am: Likewise.
3281 * libc/locale/Makefile.am: Likewise.
3282 * libc/machine/Makefile.am: Likewise.
3283 * libc/machine/configure.in: Likewise.
3284 * libc/machine/i386/Makefile.am: Likewise.
3285 * libc/machine/i386/configure.in: Likewise.
3286 * libc/misc/Makefile.am: Likewise.
3287 * libc/posix/Makefile.am: Likewise.
3288 * libc/reent/Makefile.am: Likewise.
3289 * libc/signal/Makefile.am: Likewise.
3290 * libc/stdio/Makefile.am: Likewise.
3291 * libc/stdlib/Makefile.am: Likewise.
3292 * libc/string/Makefile.am: Likewise.
3293 * libc/sys/Makefile.am: Likewise.
3294 * libc/sys/configure.in: Likewise.
3295 * libc/sys/linux/Makefile.am: Add libtool support. Change
3296 awk reference to a variable reference. Change signal.h
3297 reference to a variable reference.
3298 * libc/sys/linux/configure.in: Add libtool support.
3299 * libc/syscalls/Makefile.am: Likewise.
3300 * libc/time/Makefile.am: Likewise.
3301 * libc/unix/Makefile.am: Likewise.
3302 * libm/Makefile.am: Add libtool support. Change math and
3303 mathfp references to variables.
3304 * libm/configure.in: Add libtool support. Add
3305 LIBM_MACHINE_LIB variable.
3306 * libm/common/Makefile.am: Add libtool support.
3307 * libm/math/Makefile.am: Likewise.
3308 * libm/mathfp/Makefile.am: Likewise.
3309 Regenerate all Makefile.in, aclocal.m4, and configure.
3310
3311 2001-12-13 Anita Kulkarni <anitak@kpit.com>
3312
3313 * libc/sys/sh/crt0.S: Remove stack symbol definition 0xdeaddead.
3314
3315 2001-12-06 John Peacock <jpeacock@rowman.com>
3316
3317 * libc/include/sys/unistd.h: Correct ualarm declaration.
3318
3319 2001-12-05 Nick Clifton <nickc@cambridge.redhat.com>
3320
3321 * libc/sys/arm/crt0.S: For __USES_INITFINI__ preserve the argument
3322 vector before calling the initialisation functions.
3323
3324 2001-11-29 Christopher Faylor <cgf@redhat.com>
3325
3326 * libc/include/dirent.h: Protect against multiple inclusion.
3327
3328 2001-11-27 Christopher Faylor <cgf@redhat.com>
3329
3330 * libc/include/sys/types.h: Define useconds_t.
3331 * libc/include/sys/ulimit.h: Declare ualarm.
3332
3333 2001-11-21 Christopher Faylor <cgf@redhat.com>
3334
3335 * libc/sys/cygwin/sys/dirent.h (DIR): Add another internal element.
3336
3337 2001-11-19 Hans-Peter Nilsson <hp@bitrange.com>
3338
3339 * libc/sys/mmixware/*: Tweak license header in all source files.
3340
3341 2001-11-12 Corinna Vinschen <vinschen@redhat.com>
3342
3343 * libc/include/alloca.h: Move libc/sys/linux/include/alloca.h
3344 to here. Rearrange for general inclusion by stdlib.h.
3345 * libc/include/stdlib.h: Include <alloca.h> if __STRICT_ANSI__
3346 isn't defined.
3347 * libc/sys/linux/include/alloca.h: Move to libc/include.
3348
3349 2001-11-12 Anthony Green <green@redhat.com>
3350
3351 * libc/sys/arm/crt0.S (__stack_base__): New symbol.
3352
3353 2001-11-13 Hans-Peter Nilsson <hp@bitrange.com>
3354
3355 * libc/sys/mmixware/*: Correct spacing in all source files.
3356 * libc/sys/mmixware/syscall.h: Move misplaced file...
3357 * libc/sys/mmixware/sys/syscall.h: ...here.
3358
3359 2001-11-12 Hans-Peter Nilsson <hp@bitrange.com>
3360
3361 * libc/include/machine/ieeefp.h: Add support for mmix target.
3362 * libc/include/machine/setjmp.h: Ditto.
3363 * configure.host: Ditto.
3364 * libc/sys/mmixware/Makefile.am, libc/sys/mmixware/_exit.c,
3365 libc/sys/mmixware/access.c, libc/sys/mmixware/aclocal.m4,
3366 libc/sys/mmixware/chmod.c, libc/sys/mmixware/chown.c,
3367 libc/sys/mmixware/close.c, libc/sys/mmixware/configure.in,
3368 libc/sys/mmixware/creat.c, libc/sys/mmixware/crt0.c,
3369 libc/sys/mmixware/execv.c, libc/sys/mmixware/execve.c,
3370 libc/sys/mmixware/fork.c, libc/sys/mmixware/fstat.c,
3371 libc/sys/mmixware/getpid.c, libc/sys/mmixware/gettime.c,
3372 libc/sys/mmixware/isatty.c, libc/sys/mmixware/kill.c,
3373 libc/sys/mmixware/lseek.c, libc/sys/mmixware/open.c,
3374 libc/sys/mmixware/pipe.c, libc/sys/mmixware/read.c,
3375 libc/sys/mmixware/sbrk.c, libc/sys/mmixware/setjmp.S,
3376 libc/sys/mmixware/stat.c, libc/sys/mmixware/sys/syscall.h,
3377 libc/sys/mmixware/time.c, libc/sys/mmixware/times.c,
3378 libc/sys/mmixware/unlink.c, libc/sys/mmixware/utime.c,
3379 libc/sys/mmixware/wait.c, libc/sys/mmixware/write.c: New files.
3380 * libc/sys/mmixware/configure, libc/sys/mmixware/Makefile.in,
3381 libc/sys/mmixware/aclocal.m4: Generate.
3382
3383 2001-11-05 Corinna Vinschen <corinna@vinschen.de>
3384
3385 * libc/include/sys/unistd.h: Add prototypes for endusershell(),
3386 getusershell(), iruserok(), revoke(), ruserok() and setusershell()
3387 when __CYGWIN__ is defined.
3388 * libc/sys/cygwin/sys/utmp.h: Add prototypes for login_tty() and
3389 logwtmp().
3390
3391 2001-11-01 Arati Dikey <aratidikey@hotmail.com>
3392
3393 * libm/mathfp/sf_isinf.c (isinff): Change to use _DEFUN macro.
3394 [_DOUBLE_IS_32BITS](isinf): New function that calls isinff.
3395 * libm/mathfp/sf_isnan.c (isnanf): Change to use _DEFUN macro.
3396 [_DOUBLE_IS_32BITS](isnan): New function that calls isnanf.
3397
3398 2001-10-24 Christopher Faylor <cgf@redhat.com>
3399
3400 * libc/stdio/fseek.c: Reset pointer to buffer base
3401 when forced to seek outside of current buffer contents.
3402 This prevents the code from erroneously thinking there is
3403 anything in the current buffer.
3404
3405 2001-10-22 Geoffrey Keating <geoffk@redhat.com>
3406
3407 * libc/include/math.h: The C++ standard adds the single-precision
3408 versions of the elementary functions.
3409
3410 2001-10-22 Christopher Faylor <cgf@redhat.com>
3411
3412 * libc/posix/execvp.c: Remove obsolete CYGWIN32 considerations
3413 throughout.
3414 * signal.h: Change comment to reflect __CYGWIN__ rather than __CYGWIN32__.
3415 * popen.c (popen): Use __CYGWIN_ rather than __CYGWIN32__.
3416 * system.c (_system_r): Ditto.
3417
3418 2001-10-17 Corinna Vinschen <corinna@vinschen.de>
3419
3420 * libc/include/sys/unistd.h: Add prototype for fchdir() when
3421 __CYGWIN__ or __rtems__ is defined.
3422
3423 2001-10-01 Charles Wilson <cwilson@ece.gatech.edu>
3424
3425 * libc/include/stdlib.h: add declarations for
3426 _strtoull_r, _strtoll_r, strtoull, and strtoll.
3427 * libc/stdio/local.h: remove declarations of
3428 __strtoull_r and __strtoll_r.
3429 * libc/stdio/vfscanf.c(__svfscanf_r): call
3430 _strtoull_r instead of __strtoull_r. Ditto
3431 _strtoll_r vs. __strtoll_r.
3432 * libc/stdlib/Makefile.am: add new files to
3433 .c list and .def list
3434 * libc/stdlib/Makefile.in: regenerate
3435 * libc/stdlib/strtoll_r.c: rename __strtoll_r
3436 as _strtoll_r
3437 * libc/stdlib/strtoull_r.c: rename __strtoull_r
3438 as _strtoull_r
3439 * libc/stdlib/strtoull.c: new file
3440 * libc/stdlib/strtoll.c: new file
3441
3442 Mon Sep 17 17:29:47 2001 Christopher Faylor <cgf@cygnus.com>
3443
3444 * libc/include/process.h: Add getpid() declaration.
3445
3446 2001-09-14 Nick Clifton <nickc@cambridge.redhat.com>
3447
3448 * libc/sys/arm/crt0.S: Add calls to _init and _fini (via atexit)
3449 for new style arm/elf ctor/dtor handling.
3450 Minor formatting tidy up.
3451
3452 2001-09-13 Jeff Johnston <jjohnstn@redhat.com>
3453
3454 * libc/stdlib/Makefile.am: Add support to build strtoll_r.c
3455 and strtoull_r.c.
3456 * libc/stdlib/Makefile.in: Regenerated.
3457 * libc/stdlib/strtoll_r.c: New file.
3458 * libc/stdlib/strtoull_r.c: New file.
3459 * libc/stdio/local.h: Add prototypes for long long string
3460 conversion routines.
3461 * libc/stdio/vfscanf.c (__svfscanf_r): Add optional long long support
3462 tied to %L integer conversion specifier.
3463
3464 Thu Sep 13 08:49:49 2001 Jason Tishler <jason@tishler.net>
3465
3466 * strftime.c (strftime): Fix "%W" implementation to properly handle
3467 Mondays too.
3468
3469 2001-09-07 Jeff Law <law@redhat.com>
3470
3471 * libc/sys/h8300hms/crt0.S: For H8/300H and H8/S, load address of
3472 __fini with "mov.l" instead of "mov.w".
3473
3474 2001-09-05 Corinna Vinschen <corinna@vinschen.de>
3475
3476 * libc/sys/cygwin/include/unistd.h: New file, wrapping sys/unistd.h
3477 and getopt.h.
3478
3479 2001-09-04 Jason Merrill <jason_merrill@redhat.com>
3480
3481 * libc/sys/h8300hms/crt0.S: Support ELF initialization.
3482
3483 2001-09-03 Corinna Vinschen <corinna@vinschen.de>
3484
3485 * libc/sys/cygwin/sys/dirent.h (struct dirent): Add version number
3486 field.
3487 (__DIRENT_VERSION): New define.
3488
3489 2001-09-03 Corinna Vinschen <corinna@vinschen.de>
3490
3491 * libc/sys/cygwin/sys/dirent.h (struct dirent): Add `d_fd' member.
3492 Shrink __d_reserved accordingly to keep structure size.
3493 (dirfd): Declare external.
3494
3495 2001-08-29 Joel Sherrill <joel@OARcorp.com>
3496
3497 * libc/include/sys/unistd.h: Prototype chroot() for RTEMS.
3498
3499 2001-08-29 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
3500
3501 * libc/machine/i386/f_atan2.S, libc/machine/i386/f_atan2f.S,
3502 libc/machine/i386/f_exp.c, libc/machine/i386/f_expf.c,
3503 libc/machine/i386/f_frexp.S, libc/machine/i386/f_frexpf.S,
3504 libc/machine/i386/f_ldexp.S, libc/machine/i386/f_ldexpf.S,
3505 libc/machine/i386/f_log.S, libc/machine/i386/f_log10.S,
3506 libc/machine/i386/f_log10f.S, libc/machine/i386/f_logf.S,
3507 libc/machine/i386/f_pow.c, libc/machine/i386/f_powf.c,
3508 libc/machine/i386/f_tan.S, libc/machine/i386/f_tanf.S:
3509 Add conditional compilation to avoid HW FPU instructions
3510 when compiled for soft-float.
3511
3512 2001-08-29 Jeff Johnston <jjohnstn@redhat.com>
3513
3514 * Makefile.am: Add check for ln failing when creating libg.a
3515 so that cp gets used as a backup.
3516 * Makefile.in: Regenerated.
3517
3518 2001-08-29 Jeff Johnston <jjohnstn@redhat.com>
3519
3520 * libc/include/sys/reent.h: Add include of <sys/_types.h>.
3521 No longer include time.h. Add struct __tm to use for
3522 _localtime_buf in the reentrant structure. Add a
3523 _NULL definition to use in initializing the reentrant struct.
3524 * libc/include/sys/config.h: For CYGWIN32 and RTEMS, change
3525 the _READ_WRITE_RETURN_TYPE to _ssize_t which is found in
3526 <sys/_types.h>.
3527 * libc/include/sys/unistd.h: Include <sys/_types.h>.
3528 * libc/time/lcltime.c (localtime): Cast the reentrant struct
3529 _localtime_buf to be struct tm *.
3530
3531 Wed Aug 29 14:17:38 2001 J"orn Rennecke <amylaar@redhat.com>
3532
3533 * configure.host (h8300-*-elf*, h8500-*-elf*): New cases.
3534 * libc/sys/h8300hms/crt1.c (__main): Don't reference __ctors /
3535 __ctors_end.
3536 * libc/sys/h8300hms/syscalls.c: Include errno.h.
3537 (_unlink): New stub function.
3538
3539 Sat Aug 25 22:22:25 2001 Christopher Faylor <cgf@cygnus.com>
3540
3541 * libc/include/sys/errno.h: Add a cautionary comment.
3542
3543 2001-08-21 Jeff Johnston <jjohnstn@redhat.com>
3544
3545 * libc/stdlib/mallocr.c [!defined(MALLOC_ALIGNMENT)]: Add conditional
3546 for SIZE_SZ so that alignment ends up a minimum of 8.
3547
3548 Mon Aug 13 22:26:01 2001 Christopher Faylor <cgf@cygnus.com>
3549
3550 * libc/include/machine/setjmp.h: Protect sigsetjmp/siglongjmp macro
3551 arguments.
3552
3553 * libc/include/sys/errno.h: Declare sys_errlist and sys_nerr, under
3554 Cygwin.
3555
3556 2001-08-13 Jeff Johnston <jjohnstn@redhat.com>
3557
3558 * libc/include/malloc.h (M_MXFAST, M_NLBLKS, M_GRAIN, M_KEEP): New
3559 macro constants for mallopt options.
3560 (M_TRIM_THRESHOLD, M_TOP_PAD, M_MMAP_THRESHOLD, M_MMAP_MAX): Ditto.
3561
3562 2001-08-02 Jeff Johnston <jjohnstn@redhat.com>
3563
3564 * libc/include/stdio.h (BUFSIZ): Define to __BUFSIZ__ if provided,
3565 otherwise default.
3566
3567 2001-07-12 Aldy Hernandez <aldyh@redhat.com>
3568
3569 * libc/machine/mips/setjmp.S: Allow mips16 and mips64 to coexist.
3570
3571 2001-06-27 Nick Clifton <nickc@cambridge.redhat.com>
3572
3573 * libc/include/machine/ieeefp.h (__IEEE_BYTES_LITTLE_ENDIAN):
3574 Define for little endian ARMs.
3575
3576 * libc/stdlib/mprec.h (Storeinc): Use little endian version if
3577 __IEEE_BYTES_LITTLE_ENDIAN is defined.
3578
3579 2001-06-11 Danny Smith <dannysmith@users.sourceforge.net>
3580
3581 * /libc/include/ctype.h (is* and to* macros): Do not define if C++.
3582
3583 2001-06-11 Egor Duda <deo@logos-m.ru>
3584
3585 * libc/ctype/ctype_.c: When compiled with gcc on platforms
3586 with signed char, make _ctype_[-128] ... _ctype[-1] refer to
3587 initialized memory region. Platform can define COMPACT_CTYPE
3588 to avoid allocation of the additional 128 bytes of data.
3589 Add pointer to _ctype_ array. Always initialize all _ctype_
3590 array elements.
3591
3592 2001-06-08 Jonathan Larmour <jlarmour@redhat.com>
3593
3594 * libc/stdlib/mbtowc_r.c (_mbtowc_r): Avoid dereferencing
3595 NULL pointer.
3596
3597 2001-05-28 Nick Clifton <nickc@cambridge.redhat.com>
3598
3599 * libc/stdio/vfprintf.c (_VFPRINTF_R): Handle printf ("%#.0o",0)
3600
3601 2001-05-25 Nick Clifton <nickc@cambridge.redhat.com>
3602
3603 * libc/machine/xscale/memcmp.c: Fix bug when both pointers have
3604 matching, non-word alignment, and the length is <= 4 but more than
3605 enough to move them over a word boundary.
3606 Add comments explaining what each instruction does.
3607
3608 Mon May 7 20:39:25 2001 Christopher Faylor <cgf@cygnus.com>
3609
3610 * libc/include/sys/stat.h: Revert March 3, Cygwin change.
3611 * libc/include/sys/unistd.h: Ditto.
3612
3613 2001-05-04 Earnie Boyd <earnie@users.sourceforge.net>
3614
3615 * libc/string/strrchr.c: Use strchr for the speed improvements.
3616
3617 2001-05-01 Jeff Johnston <jjohnstn@redhat.com>
3618
3619 * libc/stdio/findfp (__sinit)[HAVE_FCNTL]: For platforms that have
3620 real file systems, let __smakebuf() determine if line buffering
3621 should be used for stdout.
3622
3623 2001-04-27 Jeff Johnston <jjohnstn@redhat.com>
3624
3625 * libc/stdio/vfscanf.c (__svfscanf_r): Initialize new_exp local var.
3626
3627 2001-04-27 Jeff Johnston <jjohnstn@redhat.com>
3628
3629 * libc/include/stdlib.h: Add prototype for _strtod_r.
3630
3631 2001-04-24 Charles Wilson <cwilson@ece.gatech.edu
3632
3633 * libc/stdio/vprintf.c (vprintf): fix signature to use _DEFUN
3634 * libc/stdio/vprintf.c (_vprintf_r): new function
3635 * libc/stdio/vsnprintf.c (vsnprintf): fix signature to use _DEFUN
3636 * libc/stdio/vsnprintf.c (_vsnprintf_r): fix signature to use
3637 _DEFUN, and call _vfprintf_r, not vfprintf.
3638 * libc/stdio/vsprintf.c (vsprintf.c): fix signature to use _DEFUN
3639 * libc/stdio/vsprintf.c (_vsprintf_r): fix signature to use
3640 _DEFUN, and call _vfprintf_r, not vfprintf.
3641
3642 2001-04-22 Earnie Boyd <earnie@users.sourceforge.net>
3643
3644 * libc/include/sys/unistd.h [X_OK]: Use better protection against
3645 Cygwin X_OK definitions in sys/file.h.
3646
3647 Fri Apr 20 23:17:51 2001 Christopher Faylor <cgf@cygnus.com>
3648
3649 * libc/include/sys/time.h: Define timercmp and other macros for
3650 __CYGWIN__, too.
3651
3652 2001-04-20 Jeff Johnston <jjohnstn@redhat.com>
3653
3654 * acinclude.m4: Added --enable-malloc-debugging configure flag.
3655 * configure.host: For Cygwin specify -DMALLOC_PROVIDED if
3656 --enable-malloc-debugging selected.
3657 * aclocal.m4 configure: Regenerated.
3658 libm/aclocal.m4 libm/configure: Ditto.
3659 * libc/aclocal.m4 libc/configure: Ditto.
3660 * libc/machine/aclocal.m4 libc/machine/configure: Ditto.
3661 * libc/machine/*/aclocal.m4 libc/machine/*/configure: Ditto.
3662 * libc/sys/aclocal.m4 libc/sys/configure: Ditto.
3663 * libc/sys/*/aclocal.m4 libc/sys/*/configure: Ditto.
3664 * doc/aclocal.m4 doc/configure: Ditto.
3665
3666 2001-04-20 Jeff Johnston <jjohnstn@redhat.com>
3667
3668 * libc/include/stdio.h[!_REENT_ONLY]: Moved various functions together
3669 into one list.
3670 [!__STRICT_ANSI__]: Moved non-ANSI I/O functions in this list.
3671 (vfscanf, vscanf, vsscanf, _vfscanf_r, _vscanf_r, _vsscanf_r): New
3672 function prototypes.
3673 (_fscanf_r, _sscanf_r): Ditto.
3674 * libc/include/stdlib.h: Added _strtod_r prototype.
3675 * libc/stdio/Makefile.am: Add new v*scanf functions.
3676 * libc/stdio/Makefile.in: Regenerate.
3677 * libc/stdio/fscanf.c: Reorganized so HAVE_STDC only affects prototype
3678 and code is shared. Added reentrant _fscanf_r which calls __svfscanf_r.
3679 * libc/stdio/scanf.c: Changed to call __svfscanf_r.
3680 * libc/stdio/sscanf.c: Changed documentation to add reentrant routines.
3681 (sscanf): Changed to call __svfscanf_r with _REENT argument.
3682 (_sscanf_r): New routine.
3683 * libc/stdio/local.h: Removed __svfscanf prototype and replaced it
3684 with __svfscanf_r prototype.
3685 * libc/stdio/vfscanf.c (vfscanf, _vfscanf_r: New
3686 routines.
3687 (__svfscanf_r): Reentrant version of __svfscanf which takes reetrancy
3688 structure as argument as calls reentrant versions of helper functions
3689 (e.g. _strtol_r, _strtoul_r). Also replaced calls to atol and atof
3690 to _strtol_r and _strtod_r respectively.
3691 * libc/stdio/vfscanf.c: Also changed __svfscanf to call __svfscanf_r.
3692 * libc/stdlib/strtod.c (strtod): Changed to call _strtod_r with
3693 _REENT argument.
3694 * libc/stdio/vscanf.c: New file.
3695 * libc/stdio/vsscanf.c: Ditto.
3696
3697 2001-04-19 Robert Collins <rbtcollins@hotmail.com>
3698
3699 * include/time.h[__CYGWIN__]: Define tzname to _tzname if not defined.
3700 Define daylight to _daylight if it is not defined
3701 Prepare a variable export of timezone based on timezonevariable.
3702 (Cannot be used with the timezone() function.)
3703
3704 2001-04-17 Stephen L. Moshier <moshier@moshier.ne.mediaone.net>
3705
3706 * newlib/libm/math/ef_asin.c (pio2_hi, pio2_lo, pio4_hi):
3707 Correct the numerical values.
3708
3709 2001-04-13 Robert Collins <rbtcollins@hotmail.com>
3710
3711 * libc/include/sys/unistd.h: Add pthread_atfork (Cygwin only).
3712
3713 Thu Apr 12 23:11:00 2001 Corinna Vinschen <corinna@vinschen.de>
3714
3715 * libc/include/sys/errno.h: Add ECASECLASH to indicate case clash
3716 on case insensitve file systems.
3717
3718 2001-04-12 Robert Collins <rbtcollins@hotmail.com>
3719
3720 * libc/include/sys/features.h: Add appropriate defines for Cygwin
3721 pthread support.
3722 * libc/include/sys/signal.h: Remove unneeded __CYGWIN__ protection.
3723 * libc/include/sys/types.h: Protect __CYGWIN__ from the rtems pthreads
3724 types. Include <cygwin/types.h> for the cygwin specific typedefs.
3725
3726 2001-04-04 Richard Sandiford <rsandifo@redhat.com>
3727
3728 * libc/include/machine/ieeefp.h: Comment about new configuration
3729 macros _FLT_LARGEST_EXPONENT_IS_NORMAL and _FLT_NO_DENORMALS.
3730 * libm/common/fdlib.h: Define new macros for testing floats.
3731 * libm/common/sf_*: Use them.
3732 * libm/math/ef_*: Likewise.
3733 * libm/math/sf_*: Likewise.
3734
3735 2001-03-29 Jeff Johnston <jjohnstn@redhat.com>
3736
3737 * libc/sys/arm/setjmp.S: Added .code 16 specifier for thumb-mode
3738 prolog to by-pass possible assembler error.
3739
3740 2001-03-21 Egor Duda <deo@logos-m.ru>
3741
3742 Allow building internal stubs for non-reentrant syscalls
3743 if target provides its own malloc
3744 * libc/reent/reent.c (errno): Move definition here.
3745 * libc/reent/sbrkr.c: From here.
3746
3747 2001-03-20 Danny Smith <dannysmith@users.sourceforge.net>
3748
3749 * libc/include/sys/types.h (BSD int typedefs): Guard with
3750 _BSDTYPES_DEFINED rather than _WINSOCK_H.
3751 (fd_set): Add !defined __USE_W32_SOCKETS to guard; define
3752 _SYS_TYPES_FD_SET.
3753 * libc/include/sys/unistd.h (gethostname): Don't declare if defined
3754 (_WINSOCK_H) || defined (__USE_W32_SOCKETS).
3755
3756 Sat Mar 17 18:30:00 2001 Corinna Vinschen <corinna@vinschen.de>
3757
3758 * libc/include/sys/unistd.h: Add _PC_POSIX_PERMISSONS and
3759 _PC_POSIX_SECURITY constants for Cygwin.
3760
3761 Wed Mar 14 9:34:00 2001 Corinna Vinschen <corinna@vinschen.de>
3762
3763 * libc/sys/cygwin/crt0.c: Add copyright hint.
3764 * libc/sys/cygwin/sys/dirent.h: Ditto.
3765 * libc/sys/cygwin/sys/param.h: Ditto.
3766 * libc/sys/cygwin/sys/utime.h: Ditto.
3767 * libc/sys/cygwin/sys/utmp.h: Ditto.
3768
3769 2001-03-13 Alexandre Oliva <aoliva@redhat.com>
3770
3771 * libc/stdio/vfprintf.c (QUADINT) [_NO_LONGLONG]: Make it
3772 equivalent to LONGINT.
3773
3774 2001-03-08 Richard Sandiford <rsandifo@redhat.com>
3775
3776 * (libc/include/machine/setjmp.h): Use 23 long long ints for a
3777 jmpbuf on MIPS64 targets.
3778 * (libc/machine/mips/setjmp.S): Add MIPS64 version.
3779
3780 Wed Mar 7 16:02:07 2001 Christopher Faylor <cgf@cygnus.com>
3781
3782 * libc/include/sys/config.h: Use ssize_t for Cygwin read/write
3783 declarations.
3784
3785 Mon Mar 5 21:48:54 2001 J"orn Rennecke <amylaar@redhat.com>
3786
3787 * libc/include/sys/config.h (_READ_WRITE_RETURN_TYPE): Define.
3788 For RTEMS, define to be ssize_t. Default to int if not defined.
3789 * libc/stdio/sscanf.c (eofread): Return _READ_WRITE_RETURN_TYPE.
3790 * libc/stdio/stdio.c (__sread, __swrite): Likewise.
3791 * libc/stdio/local.h (__sread, __swrite): Likewise.
3792 * libc/include/sys/reent.h (_read, _write): Likewise.
3793 * libc/include/sys/unistd.h (read, write, _read, _write): Likewise.
3794 * libc/syscalls/sysread.c (read): Likewise.
3795 * libc/syscalls/syswrite.c (write): Likewise.
3796
3797 2001-03-05 Jeff Johnston <jjohnstn@redhat.com>
3798
3799 * libc/time/mktime.c: Add L suffix to _SEC_IN_xxxx constants.
3800
3801 Sat Mar 3 00:34:14 2001 Christopher Faylor <cgf@cygnus.com>
3802
3803 * libc/include/sys/stat.h: Use special defines for executable stat bits
3804 when compiling for Cygwin.
3805 * libc/include/sys/unistd.h: Use special define for X_OK when compiling
3806 for Cygwin.
3807
3808 2001-03-02 Jeff Johnston <jjohnstn@redhat.com>
3809
3810 * libc/string/strtok.c: Add #undef of __STRICT_ANSI__ so prototype
3811 of strtok_r is always defined.
3812
3813 2001-03-02 Jeff Johnston <jjohnstn@redhat.com>
3814
3815 * libc/include/machine/ansi.h: New dummy header file.
3816
3817 2001-02-22 Jeff Johnston <jjohnstn@redhat.com>
3818
3819 * libc/include/machine/setjmp-dj.h: With DJ Delorie's permission,
3820 changed the copyright information to allow free modification of the
3821 file with no reference to "copying.dj".
3822 * libc/include/sys/stat-dj.h: Ditto.
3823 * libc/machine/i386/setjmp.S: Ditto.
3824 * libc/sys/h8300hms/sys/file.h: Ditto.
3825 * libc/sys/sysmec/access.c: Ditto.
3826 * libc/sys/sysnecv850/access.c: Ditto.
3827 * libc/stdio/mktemp.c: Fixed typo for the word copyright.
3828 * libc/stdlib/getenv_r.c: Ditto.
3829 * libc/stdlib/putenv_r.c: Ditto.
3830 * libc/stdlib/setenv_r.c: Ditto.
3831 * libc/stdlib/getenv.c: Removed DJ reference since any possible
3832 modifications will now be in the _r version of this file.
3833 * libc/stdlib/putenv.c: Ditto.
3834 * libc/stdlib/setenv.c: Ditto.
3835 * libc/sys/go32/copying.dj: Removed DJ's address which is no longer
3836 valid. Added a reference to DJ's web page that contains his address.
3837 * libc/sys/go32/*.s: Removed references to DJ's old address.
3838 * libc/sys/go32/*.c: Ditto.
3839 * libc/sys/go32/*.h: Ditto.
3840 * libc/sys/go32/*.S: Ditto.
3841 * libc/sys/go32/sys/*.h: Ditto.
3842
3843 2001-02-21 Jeff Johnston <jjohnstn@redhat.com>
3844
3845 * libc/stdio/fdopen.c (fdopen): Protect calls to _fcntl() with
3846 HAVE_FCNTL flag check.
3847 * configure.host: Define HAVE_FCNTL for Cygwin, go32, RTEMS, sparc64,
3848 powerpcle, x86 netware, x86 sco, x86 Linux and Vxworks.
3849
3850 Thu Feb 15 01:39:51 2001 Christopher Faylor <cgf@cygnus.com>
3851
3852 * libc/include/sys/signal.h: Always include sys/types.h under Cygwin.
3853
3854 2001-02-14 Kazuhiro Fujieda <fujieda@jaist.ac.jp>
3855
3856 * libc/include/stdlib.h: Add declarations of rand48 functions and
3857 their reentrant versions.
3858 * libc/include/sys/reent.h: Move macros from rand48.h. Add
3859 struct _rand48 for shared parameters of rand48 functions.
3860 (struct _reent): Add a variable _r48 of struct _rand48.
3861 (_REENT_INIT): Add _r48 initialization.
3862 * libc/stdlib/Makefile.am (lib_a_SOURCES): Add rand48 functions.
3863 (CHEWOUT_FILES): Add rand48.def.
3864 * libc/stdlib/Makefile.am: Add dependencies for rand48 functions.
3865 * libc/stdlib/Makefile.in: Regenerated.
3866 * libc/stdlib/drand48.c (drand48, _drand48_r): Derived from the
3867 NetBSD C library.
3868 * libc/stdlib/erand48.c (erand48, _erand48_r): Ditto.
3869 * libc/stdlib/jrand48.c (jrand48, _jrand48_r): Ditto.
3870 * libc/stdlib/lcong48.c (lcong48, _lcong48_r): Ditto.
3871 * libc/stdlib/lrand48.c (lrand48, _lrand48_r): Ditto.
3872 * libc/stdlib/mrand48.c (mrand48, _mrand48_r): Ditto.
3873 * libc/stdlib/nrand48.c (nrand48, _nrand48_r): Ditto.
3874 * libc/stdlib/seed48.c (seed48, _seed48_r): Ditto.
3875 * libc/stdlib/srand48.c (srand48, _srand48_r): Ditto.
3876 * libc/stdlib/rand48.c (__dorand48): Ditto.
3877 * libc/stdlib/rand48.h: Ditto, and modify declarations of global
3878 parameters into macros referring them in the reentrant structure.
3879
3880 2001-02-12 Jeff Johnston <jjohnstn@redhat.com>
3881
3882 * libc/include/sys/stat.h: Add mknod for Cygwin now that
3883 Cygwin definition has correct prototype.
3884
3885 2001-02-08 Jeff Johnston <jjohnstn@redhat.com>
3886
3887 * libc/include/sys/stat.h: Must revert change for mknod
3888 for CYGWIN until winsup/cygwin/syscalls.cc changes mknod
3889 prototype.
3890
3891 2001-02-08 Jeff Johnston <jjohnstn@redhat.com>
3892
3893 * libc/include/stdio.h: Revert putw prototype.
3894
3895 2001-02-08 Edward M. Lee <tailbert@yahoo.com>
3896
3897 * libc/include/grp.h: add prototype for initgroups.
3898 * libc/include/stdio.h: fix prototype for putw.
3899 * libc/include/sys/signal.h: add prototype for killpg.
3900 * libc/include/sys/stat.h: enable mknod/lstat for CYGWIN.
3901 * libc/include/sys/unistd.h: add prototypes for getpgid, setpgrp,
3902 vhangup and remove duplicate sysconf prototype.
3903
3904 2001-02-07 Jeff Johnston <jjohnstn@redhat.com>
3905
3906 * libc/sys/rtems/sys/types.h: Removed.
3907
3908 2001-02-05 Charles Wilson <cwilson@ece.gatech.edu>
3909
3910 * libc/include/locale.h: add LC_MESSAGES definition
3911
3912 2001-02-01 Alexandre Oliva <aoliva@redhat.com>
3913
3914 * libc/sys/sh/sys/syscall.h (SYS_get_argc, SYS_get_argN_len,
3915 SYS_get_argN):
3916 * libc/sys/sh/syscalls.c (__setup_argv_for_main,
3917 __setup_argv_and_call_main): New.
3918
3919 2001-01-31 Jeff Johnston <jjohnstn@redhat.com>
3920
3921 * libc/include/stdio.h (FILENAME_MAX): Changed to use __FILENAME_MAX__
3922 if defined.
3923 (FOPEN_MAX): Changed to use __FOPEN_MAX__ if defined.
3924 (L_tmpnam): Changed to use __L_tmpnam__ if defined.
3925 * libc/include/sys/config.h: Changed to set __FILENAME_MAX__
3926 appropriately for Cygwin and RTEMS so not to exceed PATH_MAX.
3927
3928 Mon Jan 29 23:03:06 2001 Christopher Faylor <cgf@cygnus.com>
3929
3930 * libc/stdlib/mallocr.c: Undefine windows preprocessor variables when
3931 compiling under Cygwin.
3932
3933 2001-01-29 Jeff Johnston <jjohnstn@redhat.com>
3934
3935 * libc/include/math.h (signgam): Change to errno-like solution
3936 using a function to return the address of the real signgam.
3937 * libc/reent/signgam.c: New file containing __signgam().
3938 * libc/reent/Makefile.am: Added signgam.c to list of files.
3939 * libc/reent/Makefile.in: Regenerated.
3940
3941 2001-01-25 Alexandre Oliva <aoliva@redhat.com>
3942
3943 * libc/sys/sh/syscalls.c (_times): New.
3944
3945 * configure.host (sh*-*-*): Add -DHAVE_GETTIMEOFDAY to newlib_cflags.
3946 * libc/sys/sh/syscalls.c (_gettimeofday): New.
3947
3948 2001-01-23 Jeff Johnston <jjohnstn@redhat.com>
3949
3950 * libc/include/math.h (signgam): Regress previous fix as
3951 it does not handle programs with extern int signgam in them.
3952
3953 2001-01-23 Jeff Johnston <jjohnstn@redhat.com>
3954
3955 * libc/include/math.h (signgam): Changed to a macro refering to
3956 its location in the reentrant structure.
3957
3958 2001-01-23 Jeff Johnston <jjohnstn@redhat.com>
3959
3960 * libc/stdio/vfprintf.c (_VFPRINTF_R): Modification to fix
3961 that suppressed . for %.0f, 0.1. Check now looks if there
3962 are padding zeroes (expt) in addition to any digits (ndig) to
3963 print.
3964
3965 2001-01-18 Jeff Johnston <jjohnstn@redhat.com>
3966
3967 * libc/sys/arc/Makefile.am: New file.
3968 * libc/sys/arc/Makefile.in: Ditto.
3969 * libc/sys/arc/aclocal.m4: Ditto.
3970 * libc/sys/arc/configure: Ditto.
3971 * libc/sys/arc/configure.in: Ditto.
3972 * libc/sys/arc/crt0.S: Ditto.
3973 * libc/sys/arc/isatty.c: Ditto.
3974 * libc/sys/arc/mem-layout.c: Ditto.
3975 * libc/sys/arc/sbrk.c: Ditto.
3976 * libc/sys/arc/syscalls.c: Ditto.
3977 * libc/sys/arc/sys/syscall.h: Ditto.
3978
3979 Wed Jan 17 23:20:56 2001 Christopher Faylor <cgf@cygnus.com>
3980
3981 * libc/include/sys/unistd.h: Use correct declaration for setdtablesize.
3982
3983 Fri Jan 12 00:34:31 2001 Christopher Faylor <cgf@cygnus.com>
3984
3985 * libc/include/sys/signal.h: Add some SA_* defines for Cygwin.
3986
3987 Thu Jan 11 20:42:06 2001 Earnie Boyd <earnie_boyd@yahoo.com>
3988
3989 * libc/include/sys/features.h: __CYGWIN__ preferred over __CYGWIN32__
3990
3991 2001-01-09 Nick Clifton <nickc@redhat.com>
3992
3993 * configure.host (v859): Remove unsupported compiler options.
3994
3995 Fri Jan 5 19:57:00 EST 2001 Aaron J. Grier <aaron@frye.com>
3996
3997 * src/newlib/configure.host (*-*-rtems*): add printf long long
3998 support for RTEMS.
3999
4000 2000-12-19 Graham Stott <grahams@redhat.com>
4001
4002 * libc/machine/xscale/memcmp.c (memcmp): Add clobber for "lr".
4003
4004 Wed Dec 14 Jeff Johnston <jjohnstn@redhat.com>
4005
4006 * configure.host: Turn on long double I/O for Cygwin.
4007
4008 Wed Dec 14 Jeff Johnston <jjohnstn@redhat.com>
4009
4010 * MAINTAINERS: Removed Ranjith.
4011 * NEWS: Updated for 1.9.0.
4012 * README: Updated.
4013 * acinclude.m4: Updated to release 1.9.0.
4014 * aclocal.m4 configure
4015 doc/aclocal.m4 doc/configure libc/aclocal.m4 libc/configure
4016 libc/machine/aclocal.m4 libc/machine/configure
4017 libc/machine/a29k/aclocal.m4 libc/machine/a29k/configure
4018 libc/machine/arm/aclocal.m4 libc/machine/arm/configure
4019 libc/machine/d10v/aclocal.m4 libc/machine/d10v/configure
4020 libc/machine/d30v/aclocal.m4 libc/machine/d30v/configure
4021 libc/machine/fr30/aclocal.m4 libc/machine/fr30/configure
4022 libc/machine/h8300/aclocal.m4 libc/machine/h8300/configure
4023 libc/machine/h8500/aclocal.m4 libc/machine/h8500/configure
4024 libc/machine/hppa/aclocal.m4 libc/machine/hppa/configure
4025 libc/machine/i386/aclocal.m4 libc/machine/i386/configure
4026 libc/machine/i960/aclocal.m4 libc/machine/i960/configure
4027 libc/machine/m32r/aclocal.m4 libc/machine/m32r/configure
4028 libc/machine/m68k/aclocal.m4 libc/machine/m68k/configure
4029 libc/machine/m88k/aclocal.m4 libc/machine/m88k/configure
4030 libc/machine/mips/aclocal.m4 libc/machine/mips/configure
4031 libc/machine/mn10200/aclocal.m4 libc/machine/mn10200/configure
4032 libc/machine/mn10300/aclocal.m4 libc/machine/mn10300/configure
4033 libc/machine/necv70/aclocal.m4 libc/machine/necv70/configure
4034 libc/machine/powerpc/aclocal.m4 libc/machine/powerpc/configure
4035 libc/machine/sh/aclocal.m4 libc/machine/sh/configure
4036 libc/machine/sparc/aclocal.m4 libc/machine/sparc/configure
4037 libc/machine/tic80/aclocal.m4 libc/machine/tic80/configure
4038 libc/machine/v850/aclocal.m4 libc/machine/v850/configure
4039 libc/machine/w65/aclocal.m4 libc/machine/w65/configure
4040 libc/machine/xscale/aclocal.m4 libc/machine/xscale/configure
4041 libc/machine/z8k/aclocal.m4 libc/machine/z8k/configure
4042 libc/sys/aclocal.m4 libc/sys/configure
4043 libc/sys/a29khif/aclocal.m4 libc/sys/a29khif/configure
4044 libc/sys/arm/aclocal.m4 libc/sys/arm/configure
4045 libc/sys/cygwin/aclocal.m4 libc/sys/cygwin/configure
4046 libc/sys/d10v/aclocal.m4 libc/sys/d10v/configure
4047 libc/sys/decstation/aclocal.m4 libc/sys/decstation/configure
4048 libc/sys/go32/aclocal.m4 libc/sys/go32/configure
4049 libc/sys/h8300hms/aclocal.m4 libc/sys/h8300hms/configure
4050 libc/sys/h8500hms/aclocal.m4 libc/sys/h8500hms/configure
4051 libc/sys/linux/aclocal.m4 libc/sys/linux/configure
4052 libc/sys/m88kbug/aclocal.m4 libc/sys/m88kbug/configure
4053 libc/sys/netware/aclocal.m4 libc/sys/netware/configure
4054 libc/sys/rtems/aclocal.m4 libc/sys/rtems/configure
4055 libc/sys/sh/aclocal.m4 libc/sys/sh/configure
4056 libc/sys/sparc64/aclocal.m4 libc/sys/sparc64/configure
4057 libc/sys/sun4/aclocal.m4 libc/sys/sun4/configure
4058 libc/sys/sysmec/aclocal.m4 libc/sys/sysmec/configure
4059 libc/sys/sysnec810/aclocal.m4 libc/sys/sysnec810/configure
4060 libc/sys/sysnecv850/aclocal.m4 libc/sys/sysnecv850/configure
4061 libc/sys/sysvi386/aclocal.m4 libc/sys/sysvi386/configure
4062 libc/sys/sysvnecv70/aclocal.m4 libc/sys/sysvnecv70/configure
4063 libc/sys/tic80/aclocal.m4 libc/sys/tic80/configure
4064 libc/sys/w65/aclocal.m4 libc/sys/w65/configure
4065 libc/sys/z8ksim/aclocal.m4 libc/sys/z8ksim/configure
4066 libm/aclocal.m4 libm/configure: Regenerated.
4067
4068 Wed Dec 13 11:52:00 2000 Corinna Vinschen <vinschen@cygnus.com>
4069
4070 * libc/include/sys/unistd.h: Add declarations for `chroot' and `getwd'
4071 when __CYGWIN__ is defined.
4072
4073 2000-12-13 Jeff Johnston <jjohnstn@redhat.com>
4074
4075 * libc/stdlib/ldtoa.c (_ldcheck): New routine
4076 that categorizes a long double as NaN, Infinity, or other.
4077 * libc/stdio/vfprintf.c [WANT_IO_LONG_DBL](_VFPRINTF_R): Removed
4078 isinfl and isnanl static routines which were i386-specific. Changed
4079 calls to the two removed routines to a single _ldcheck call.
4080 * libc/stdio/vfieeefp.h (ldieee): Fixed missing semi-colons.
4081
4082 2000-12-13 Jeff Johnston <jjohnstn@redhat.com>
4083
4084 * Makefile.am: Fixed install-data-local target to use
4085 $(mkinstalldirs) for the installed header files to ensure
4086 the directories exist before copying.
4087 * Makefile.in: Regenerated.
4088
4089 2000-12-12 Jeff Johnston <jjohnstn@redhat.com>
4090
4091 * libc/include/sys/unistd.h: Restored Cygwin _SC
4092 constants and moved new constants appropriately
4093 so Cygwin will build.
4094
4095 2000-12-11 Joel Sherrill <joel@OARcorp.com>
4096
4097 * Merge RTEMS specific .h files into main libc/include.
4098 * libc/sys/rtems/include/signal.h: Removed.
4099 * libc/sys/rtems/include/time.h: Removed.
4100 * libc/sys/rtems/sys/features.h: Removed.
4101 * libc/sys/rtems/sys/sched.h: Removed.
4102 * libc/sys/rtems/sys/siginfo.h: Removed.
4103 * libc/sys/rtems/sys/signal.h: Removed.
4104 * libc/sys/rtems/sys/time.h: Removed.
4105 * libc/sys/rtems/sys/times.h: Removed.
4106 definitions for time_t and clock_t since these are
4107 no longer in time.h.
4108 * libc/include/pthread.h: New file.
4109 * libc/include/sys/sched.h: New file.
4110 * libc/include/sys/features.h: New file.
4111 * libc/include/time.h: Removed duplicate definition of clock_t
4112 and time_t, get them from <sys/types.h> instead. Add prototypes
4113 for POSIX clock and timer functionality.
4114 * libc/sys/linux/sys/types.h: Changed to include
4115 * libc/include/machine/types.h: Add _CLOCKID_T_ and _TIMER_T_.
4116 * libc/include/sys/signal.h: Add more complete set of POSIX
4117 signal functionality including real-time and threaded signals.
4118 * libc/include/sys/types.h: Add clock_t, time_t, struct
4119 timespec, and struct itimerspec. Centralizing these makes
4120 things cleaner. RTEMS uses 64-bit dev_t.
4121 Added numerous primitive definitions
4122 for pthreads including macros, pthread_attr_t,
4123 pthread_mutexattr_t, pthread_condattr_t, pthread_key_t,
4124 pthread_once_t, and pthread_t.
4125 * libc/include/sys/unistd.h: Added getlogin_r() prototype.
4126 If RTEMS follow POSIX on read(), write() and sbrk() prototype.
4127 Feature flags removed and moved to new file <sys/features.h>.
4128 Full set of POSIX sysconf() constants
4129
4130 2000-12-08 Werner Almesberger <Werner.Almesberger@epfl.ch>
4131
4132 * configure.host: Added x86 linux target.
4133 * libc/unix/getpass.c (_PATH_PASSWD, _PASSWORD_LEN): Default
4134 definitions provided if not already defined.
4135 * libc/sys/linux/crt0.c: New file.
4136 * libc/sys/linux/Makefile.am: Ditto.
4137 * libc/sys/linux/Makefile.in: Ditto.
4138 * libc/sys/linux/aclocal.m4: Ditto.
4139 * libc/sys/linux/brk.c: Ditto.
4140 * libc/sys/linux/configure: Ditto.
4141 * libc/sys/linux/configure.in: Ditto.
4142 * libc/sys/linux/getoptlong.c: Ditto.
4143 * libc/sys/linux/ids.c: Ditto.
4144 * libc/sys/linux/inode.c: Ditto.
4145 * libc/sys/linux/io.c: Ditto.
4146 * libc/sys/linux/linux.c: Ditto.
4147 * libc/sys/linux/process.c: Ditto.
4148 * libc/sys/linux/realpath.c: Ditto.
4149 * libc/sys/linux/select.c: Ditto.
4150 * libc/sys/linux/signal.c: Ditto.
4151 * libc/sys/linux/systat.c: Ditto.
4152 * libc/sys/linux/termios.c: Ditto.
4153 * libc/sys/linux/time.c: Ditto.
4154 * libc/sys/linux/wait.c: Ditto.
4155 * libc/sys/linux/include/alloca.h: Ditto.
4156 * libc/sys/linux/include/getopt.h: Ditto.
4157 * libc/sys/linux/include/stdint.h: Ditto.
4158 * libc/sys/linux/include/unistd.h: Ditto.
4159 * libc/sys/linux/sys/cdefs.h: Ditto.
4160 * libc/sys/linux/sys/dirent.h: Ditto.
4161 * libc/sys/linux/sys/errno.h: Ditto.
4162 * libc/sys/linux/sys/fcntl.h: Ditto.
4163 * libc/sys/linux/sys/file.h: Ditto.
4164 * libc/sys/linux/sys/ioctl.h: Ditto.
4165 * libc/sys/linux/sys/resource.h: Ditto.
4166 * libc/sys/linux/sys/signal.h: Ditto.
4167 * libc/sys/linux/sys/stat.h: Ditto.
4168 * libc/sys/linux/sys/syscall.h: Ditto.
4169 * libc/sys/linux/sys/termios.h: Ditto.
4170 * libc/sys/linux/sys/time.h: Ditto.
4171 * libc/sys/linux/sys/types.h: Ditto.
4172 * libc/sys/linux/sys/utmp.h: Ditto.
4173 * libc/sys/linux/sys/utsname.h: Ditto.
4174 * libc/sys/linux/sys/wait.h: Ditto.
4175
4176 2000-12-08 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
4177
4178 * Makefile.am: $(INSTALL), $(INSTALL_DATA), and $(INSTALL_PROGRAM)
4179 can be a relative path to $(top_srcdir)/install.sh so ensure the
4180 autoconf detected settings are properly passed recursively.
4181 Similarly, add AM_MAKEFLAGS to FLAGS_TO_PASS so they also get passed
4182 properly to subdirectories.
4183 * Makefile.in: Regenerated.
4184
4185 2000-12-07 Jay Kulpinski <jskulpin@eng01.gdds.com>
4186
4187 * libc/stdio/vfprintf.c: Minor modification to avoid requiring
4188 a floating point register unless really printing a floating
4189 point number.
4190
4191 2000-12-07 Jeff Johnston <jjohnstn@redhat.com>
4192
4193 * libc/stdlib/ldtoa.c: Removed include of alloca.h.
4194 Also removed \r's.
4195 (asctoeg): Replaced alloca call with stack array and malloc
4196 when storage exceeds reasonable limit.
4197 (e53toe): Fixed einfin calls missing ldp parameter.
4198 (eiisinf): Hide behind check for LDBL_MANT_DIG == 64.
4199
4200 2000-12-06 Jeff Johnston <jjohnstn@redhat.com>
4201
4202
4203 * libc/stdio/vfscanf.c: Fix typo for _NO_LONGDBL macro.
4204
4205 2000-12-06 Jeff Johnston <jjohnstn@redhat.com>
4206
4207 * libc/stdlib/Makefile.am: Added ldtoa.c to list of sources.
4208 * libc/stdlib/Makefile.in: Regenerated.
4209 * libc/stdio/floatio.h: Added suitable MAXEXP for long double.
4210 * libc/stdio/vfieeefp.h: Added long double bit structures.
4211 * libc/stdio/vfprintf.c[WANT_IO_LONG_DBL]: Added long double support.
4212 [WANT_IO_LONG_DBL](isinfl, isnanl): New static long double routines.
4213 (exponent): Changed expbuf to reasonable maximum instead of MAXEXP.
4214 * libc/stdio/vfscanf.c[WANT_IO_LONG_DBL]: Added long double support.
4215 * libc/stdlib/ldtoa.c: New file containing _ldtoa_r and
4216 _strtold routines used for conversions between character
4217 and long double.
4218
4219 Wed Dec 6 12:01:00 2000 Corinna Vinschen <vinschen@cygnus.com>
4220
4221 * libc/include/stdlib.h: Add declarations for `mkstemp' and `mktemp'.
4222
4223 2000-12-04 Joel Sherrill <joel@OARcorp.com>
4224
4225 * libc/include/machine/time.h: RTEMS systems can configure clock
4226 tick rate so use sysconf() to ask.
4227
4228 2000-12-04 Joel Sherrill <joel@OARcorp.com>
4229
4230 * libc/include/sys/times.h: Add reference to POSIX standard.
4231
4232 2000-12-04 Joel Sherrill <joel@OARcorp.com>
4233
4234 * libc/include/sys/time.h: Added BSD timer manipulation macros
4235 used by RTEMS code.
4236
4237 2000-12-04 Joel Sherrill <joel@OARcorp.com>
4238
4239 * libc/sys/rtems/crt0.c: Add stubs for functions implicitly
4240 referenced by code generated by gcc 2.8.1.
4241 (a29k): Add stubs for V_SPILL, V_FILL, V_BSD_OS, V_EPI_OS to
4242 satisfy gcc.
4243
4244 2000-12-04 Joel Sherrill <joel@OARcorp.com>
4245
4246 * libc/stdlib/system.c: Avoid compiling do_system() for RTEMS.
4247
4248 2000-12-04 Joel Sherrill <joel@OARcorp.com>
4249
4250 * libc/include/ieeefp.h: Added entries for OpenCores CPUs.
4251
4252 2000-12-04 Joel Sherrill <joel@OARcorp.com>
4253
4254 * configure.host (or16, or32): New entries for OpenCores
4255 OpenRisc CPUs.
4256 (*-*-rtems*): Add -DNO_EXEC.
4257
4258 2000-12-04 Keith Outwater <vac4050@cae597.rsc.raytheon.com>
4259
4260 * libc/include/sys/errno.h: Added comments on many error numbers.
4261 * libc/string/strerror.c: Added some more strings.
4262
4263 2000-11-30 Jeff Johnston <jjohnstn@redhat.com>
4264
4265 * libc/sys/sh/syscalls.c (_link): New stub.
4266
4267 2000-11-29 Nick Clifton <nickc@redhat.com>
4268
4269 * configure.host: Add xscale target.
4270 * libc/machine/xscale: New directory.
4271 * libc/machine/xscale/Makefile.am: New file.
4272 * libc/machine/xscale/Makefile.in: New file.
4273 * libc/machine/xscale/aclocal.m4: New file.
4274 * libc/machine/xscale/configure: New file.
4275 * libc/machine/xscale/configure.in: New file.
4276 * libc/machine/xscale/memchr.S: New file.
4277 * libc/machine/xscale/memcmp.S: New file.
4278 * libc/machine/xscale/memcpy.S: New file.
4279 * libc/machine/xscale/memmove.S: New file.
4280 * libc/machine/xscale/memset.S: New file.
4281 * libc/machine/xscale/strchr.S: New file.
4282 * libc/machine/xscale/strcmp.S: New file.
4283 * libc/machine/xscale/strcpy.S: New file.
4284 * libc/machine/xscale/strlen.S: New file.
4285
4286 Sat Nov 25 11:24:00 2000 Corinna Vinschen <vinschen@cygnus.com>
4287
4288 * libc/include/sys/types.h: Change i to `__i' in FD_ZERO macro to
4289 avoid compiler warnings.
4290
4291 2000-11-22 Michael Meissner <meissner@redhat.com>
4292
4293 * libc/posix/execl.c (execl): Don't reference environ directly,
4294 reference it only via a static pointer to avoid problems with some
4295 shared library systems and with different uses of small data where
4296 the user specifies his own version of environ.
4297 * libc/posix/execv.c (execv): Ditto.
4298 * libc/stdlib/getenv_r.c (_findenv_r): Ditto.
4299 * libc/stdlib/setenv_r.c (_setenv_r,_unsetenv_r): Ditto.
4300 * libc/stdlib/system.c (system, !cygwin32 case): Ditto.
4301
4302 * libc/stdlib/getenv.c (environ): Delete unused reference to
4303 environ.
4304
4305 * libc/stdlib/getenv_r.c: Make initial comment friendlier to emacs
4306 colorization.
4307 * libc/stdlib/system.c: Ditto.
4308
4309 Tue Nov 21 20:32:21 2000 Christopher Faylor <cgf@cygnus.com>
4310
4311 * libc/sys/cygwin/sys/dirent.h: Change definition to avoid necessity of
4312 including windows headers.
4313
4314 2000-11-20 Jeff Johnston <jjohnstn@redhat.com>
4315
4316 * libc/include/sys/unistd.h: Removed definition of MAXNAMLEN.
4317 * libc/include/dirent.h: Added definition of MAXNAMLEN if
4318 not defined by sys/dirent.h.
4319 * libc/posix/execvp.c: Added include of dirent.h to get
4320 MAXNAMLEN value which used to be in unistd.h.
4321
4322 Mon Nov 6 12:56:00 2000 Corinna Vinschen <vinschen@cygnus.com>
4323
4324 * libc/include/sys/types.h: Change type of i to `size_t' in
4325 FD_ZERO macro to avoid compiler warnings.
4326
4327 Sun Oct 29 20:06:41 2000 Christopher Faylor <cgf@cygnus.com>
4328
4329 * libc/include/stdlib.h: Avoid declaring cfree under Cygwin.
4330 * libc/include/malloc.h: Ditto. Also remove obsolete declaration.
4331
4332 Tue Oct 24 20:16:00 2000 Corinna Vinschen <vinschen@cygnus.com>
4333
4334 * libc/include/sys/unistd.h: Add defines for sysconf values
4335 _SC_NPROCESSORS_CONF, _SC_NPROCESSORS_ONLN, _SC_PHYS_PAGES and
4336 _SC_AVPHYS_PAGES.
4337
4338 Mon Oct 9 20:26:33 2000 Christopher Faylor <cgf@cygnus.com>
4339
4340 * libc/include/sys/unistd.h: Add getdtablesize and setdtablesize
4341 declarations for __CYGWIN__.
4342
4343 2000-09-19 Geoffrey Keating <geoffk@cygnus.com>
4344
4345 * libc/signal/signal.c (__sigtramp_r): ISO C requires
4346 case labels to be integral constant expressions, so
4347 use an if/else tree instead.
4348 (_raise_r): Likewise.
4349
4350 2000-09-13 Jeff Johnston <jjohnstn@redhat.com>
4351
4352 * libc/machine/v850/setjmp.S: Fixed tab problems caused by
4353 clipping patch from e-mail reader.
4354
4355 2000-09-13 Will Cohen <wcohen@redhat.com>
4356
4357 * libc/machine/v850/setjmp.S (_setjmp): Save r1 rather than r0.
4358 Added return value 0.
4359 (_longjmp): Allow longjmp to return value of second argument
4360 passed to it.
4361
4362 2000-09-06 Jeff Johnston <jjohnstn@redhat.com>
4363
4364 * libc/include/sys/types.h (FD_ZERO): Remove call to bzero and
4365 inline code to prevent having to include another header file.
4366
4367 Wed Sep 6 15:06:40 2000 Christopher Faylor <cgf@cygnus.com>
4368
4369 * Makefile.am: Fix space vs. tab problem in install-data-local.
4370 * Makefile.in: Regenerate.
4371
4372 Wed Sep 6 13:49:51 2000 Christopher Faylor <cgf@cygnus.com>
4373
4374 * libc/include/_ansi.h (_EXFUN): Define specially for __CYGWIN__.
4375 (_EXPARM): New macro for defining a function parameter.
4376 * libc/include/stdlib.h: Use _EXPARM.
4377 * libc/stdlib/mallocr.c: Don't build cfree for Cygwin.
4378
4379 2000-09-05 Manfred Hollstein <manfredh@redhat.com>
4380
4381 * Makefile.am (install-data-local): Use optional $(DESTDIR) where
4382 required, as documented in the gnu coding standards.
4383 * Makefile.in: Regenerate.
4384
4385 2000-09-05 Jeff Johnston <jjohnstn@redhat.com>
4386
4387 * libc/include/fcntl.h (_FNDELAY): Changed to be _FNONBLOCK to
4388 make O_NDELAY and O_NONBLOCK have the same value.
4389
4390 2000-08-30 Kazu Hirata <kazu@hxi.com>
4391
4392 * libc/sys/h8300hms/crt0.S: Optimize for both speed and code size.
4393
4394 2000-08-30 Werner Almesberger <Werner.Almesberger@epfl.ch>
4395
4396 * libc/posix/execve.c: included unistd.h for "_execve" prototype.
4397 * libc/misc/unctrl.c libc/sys/sysvi386/crt0.c (sccsid): changed
4398 "#ifndef lint" to "#if defined(LIBC_SCCS) && !defined(lint)" like
4399 everywhere else.
4400
4401 2000-08-30 Geoffrey Keating <geoffk@cygnus.com>
4402
4403 * libc/string/swab.c: Specify that it's defined in <unistd.h>.
4404 * libc/include/string.h: Don't include <sys/types.h>,
4405 as it causes really bad namespace pollution. Don't declare
4406 swab(), it is properly declared in unistd.h.
4407
4408 2000-08-29 Werner Almesberger <Werner.Almesberger@epfl.ch>
4409
4410 * libc/unix/getpwent.c (getpwnam, getpwuid, getpwent): removed
4411 (broken) support for non-existent /etc/passwd field "comment".
4412
4413 2000-08-27 Werner Almesberger <Werner.Almesberger@epfl.ch>
4414
4415 * libc/posix/scandir.c (DIRSIZ, scandir): use struct dirent.d_namlen
4416 only if _DIRENT_HAVE_D_NAMLEN is defined.
4417 (alphasort): aligned prototype with
4418 libc/sys/cygwin/sys/dirent.h and simplified function body.
4419 * libc/posix/telldir.c (telldir): changed "telldir" prototype to
4420 long telldir (DIR *) as mentioned in annex B of POSIX.1
4421
4422 2000-08-27 Werner Almesberger <Werner.Almesberger@epfl.ch>
4423
4424 * libc/machine/i386/i386mach.h: added SOTYPE_FUNCTION to set type
4425 of global entry points if _I386MACH_NEED_SOTYPE_FUNCTION is defined;
4426 Added __CLI and __STI macros (controlled via
4427 _I386MACH_ALLOW_HW_INTERRUPTS macro).
4428 * libc/machine/i386/f_atan2.S libc/machine/i386/f_atan2f.S
4429 libc/machine/i386/f_frexp.S libc/machine/i386/f_frexpf.S
4430 libc/machine/i386/f_ldexp.S libc/machine/i386/f_ldexpf.S
4431 libc/machine/i386/f_log.S libc/machine/i386/f_log10.S
4432 libc/machine/i386/f_log10f.S libc/machine/i386/f_logf.S
4433 libc/machine/i386/f_tan.S libc/machine/i386/f_tanf.S
4434 libc/machine/i386/memchr.S libc/machine/i386/memcmp.S
4435 libc/machine/i386/memcpy.S libc/machine/i386/memmove.S
4436 libc/machine/i386/memset.S libc/machine/i386/setjmp.S
4437 libc/machine/i386/strchr.S libc/machine/i386/strlen.S:
4438 (that's libc/machine/i386/*.S) added SOTYPE_FUNCTION(symbol)
4439 for all global entry points.
4440 * libc/machine/i386/setjmp.S: removed code replicated in
4441 libc/machine/i386/i386mach.h and included i386mach.h instead;
4442 Use __CLI and __STI instead of cli and sti.
4443
4444 2000-08-25 DJ Delorie <dj@redhat.com>
4445
4446 * libc/include/sys/unistd.h (environ): this one isn't from the
4447 DLL, no __IMPORT
4448
4449 Fri Aug 25 13:37:11 2000 Christopher Faylor <cgf@cygnus.com>
4450
4451 * libc/stdlib/system.c (do_system): Eliminate explicit declaration of
4452 environ when compiling under cygwin since it is already declared in
4453 unistd.h.
4454
4455 2000-08-23 Werner Almesberger <Werner.Almesberger@epfl.ch>
4456
4457 * libc/stdlib/mprec.c (ulp, b2d, d2b): changed a few expressions
4458 like x << y-z to the equivalent x << (y-z).
4459 (d2b): changed if statements with assignment to perform the
4460 assignment prior to the if check.
4461 * libc/reent/reent.c: included stdlib.h for "_free_r" prototype.
4462 * libc/unix/getpass.c (getpass): moved "echo" assignment out of if.
4463 * libc/unix/ttyname.c: included string.h for "strcpy" prototype.
4464 * libc/unix/getcwd.c (ISDOT): added parentheses to clarify && and ||
4465 precedence.
4466 * libc/include/sys/unistd.h: added "vfork" prototype (for popen.c).
4467 Added "_execve" prototype (for execl.c, execle.c, execv.c, and
4468 execve.c).
4469 * libc/posix/popen.c (popen): added parentheses to clarify && and ||
4470 precedence.
4471 * libm/math/e_cosh.c (__ieee754_cosh): changed parentheses to
4472 clarify && and || precendence (and to remove pascalism).
4473 * libm/math/e_sinh.c (__ieee754_sinh): Ditto.
4474 * libm/math/s_infconst.c: added another pair of braces to all
4475 initializers for __infinity (need three: for __infinity[1] array,
4476 for union __dmath, and for i[2]).
4477
4478 2000-08-23 Werner Almesberger <Werner.Almesberger@epfl.ch>
4479
4480 * libc/stdlib/abort.c: changed description: uses "raise" instead of
4481 "getpid" and "kill"; added: uses "write" and "_exit".
4482 Also included unistd.h for "_exit" prototype.
4483 * libc/stdlib/system.c: included unistd.h for "execve" prototype,
4484 reent.h for "_fork_r" and "_wait_r" prototypes.
4485 (do_system): changed extern char *environ[] to POSIX-friendly
4486 extern char **environ.
4487 * libc/stdlib/wctomb_r.c: included string.h for "strlen" and "strcmp"
4488 prototypes.
4489 * libc/stdlib/remove.c: included reent.h for "_unlink_r" prototype.
4490 * libc/reent/execr.c: included sys/wait.h for "wait" prototype.
4491 * libc/reent/fstatr.c: included sys/stat.h for "fstat" prototype.
4492 * libc/reent/openr.c: included fcntl.h for "open" prototype.
4493 * libc/reent/signalr.c: included signal.h for "kill" prototype,
4494 unistd.h for "getpid" prototype.
4495 * libc/reent/statr.c: included sys/stat.h for "stat" prototype.
4496 * libc/reent/timer.c: included sys/time.h for "gettimeofday" prototype.
4497 * libc/unix/getut.c (utmpname): removed local, incorrect "strdup"
4498 prototype. Also included stdlib.h for "abort", string.h for
4499 "strdup" and "strncmp" prototypes.
4500 * libc/unix/getlogin.c: included string.h for "strncmp", "memset", and
4501 "strncpy", unistd.h for "read" and "close" prototypes.
4502 * libc/posix/execvp.c: included string.h for "strchr", "strlen", and
4503 "strcat" prototypes.
4504
4505 2000-08-23 Werner Almesberger <Wernen Almesberger@epfl.ch>
4506
4507 * libc/stdio/stdio.c (__swrite): declare "oldmode" only if it's
4508 used later (ifdef __SCLE)
4509 * libc/stdio/vfscanf.c (__svfscanf): declare "state" only if it's
4510 used later (ifdef MB_CAPABLE)
4511 * libc/string/memset.c (memset): removed unused variables "count"
4512 and "unaligned_addr"
4513 * libc/locale/locale.c (_setlocale_r): declare "lc_ctype" and
4514 "last_lc_ctype" only of they're used later (ifdef MB_CAPABLE)
4515 * libc/unix/getpwent.c (getpwnam): removed unused variables "uid"
4516 and "gid"
4517
4518 2000-08-23 Werner Almesberger <Werner.Almesberger@epfl.ch>
4519
4520 * libc/stdlib/envlock.c: changed documented "__env_lock" and
4521 "__env_unlock" prototype from "void *" or "char *" to
4522 "struct _reent *" to match real function. Also added include
4523 of envlock.h.
4524 * libc/stdlib/mlock.c: changed documented "__malloc_lock" and
4525 "__malloc_unlock" prototype from "void *" or "char *" to
4526 "struct _reent *" to match real function.
4527 * libc/stdlib/envlock.h: added "__env_lock" and "__env_unlock"
4528 prototypes (for getenv_r.c and setenv_r.c).
4529
4530 2000-08-22 Werner Almesberger <Werner.Almesberger@epfl.ch>
4531
4532 * libc/unix/getut.c (utmpname): added _CONST to reflect common use
4533 and prototype in cygwin's utmp.h
4534
4535 2000-08-16 Eric Fifer <efifer@sanwaint.com>
4536
4537 * libc/stdio/vfprintf.c (_vfprintf_r): suppress . with "%.0f", 0.1
4538
4539 2000-08-09 Nick Clifton <nickc@cygnus.com>
4540
4541 * libc/sys/arm/setjmp.S: Recode to clean up function prologues and
4542 epilogue and to allow the functions to be used in a Thumb based
4543 toolchain.
4544
4545 2000-08-08 Jeff Johnston <jjohnstn@redhat.com>
4546
4547 * libc/stdio/snprintf.c (snprintf, _snprintf_r): Fixed code
4548 so size of 0 results in nothing being written to string.
4549 Also fixed code so that when size is non-zero, there is only
4550 a maximum of size - 1 characters written to the array and
4551 a nul terminator is appended at the end.
4552 * libc/stdio/vsnprintf.c (vsnprintf, _vsnprintf_r): Ditto.
4553
4554 2000-08-01 DJ Delorie <dj@redhat.com>
4555
4556 * libc/include/sys/config.h: define __IMPORT appropriately
4557 * libc/include/ctype.h (_ctype_): use __IMPORT
4558 * libc/include/math.h (__infinity, signam, _LIB_VERSION): ditto
4559 * libc/include/math.h (__mb_cur_max): ditto
4560 * libc/include/time.h (_timezone, _daylight, _tzname): ditto
4561 * libc/include/unctrl.h (__unctrl, __unctrllen): ditto
4562 * libc/include/errno.h (_sys_errlist, _sys_nerr): ditto
4563 * libc/include/unistd.h (environ): ditto
4564
4565 2000-07-28 Michael Meissner <meissner@redhat.com>
4566
4567 * libc/include/math.h (__infinity): Declare as an array without
4568 bounds to get around small data support. Rewrite Cygwin support
4569 to be more general.
4570 * libm/math/s_infconst.c (__infinity): Ditto.
4571 * libm/mathfp/s_infconst.c (__infinity): Ditto.
4572
4573 Thu Jul 27 10:46:01 2000 Christopher Faylor <cgf@cygnus.com>
4574
4575 * libc/include/math.h: Use appropriate dll import linkage for
4576 __infinity under Cygwin.
4577
4578 2000-07-13 DJ Delorie <dj@cygnus.com>
4579
4580 * libc/stdio/vfprintf.c: pad 0.0 correctly with %e
4581
4582 Wed Jun 28 14:08:00 2000 Keith Walker <keith.walker@arm.com>
4583
4584 * libc/sys/arm/crt0.S (.LC30): Added missing length parameter
4585 to argument list for AngelSWI_Reason_GetCmdLine.
4586
4587 Tue Jun 27 15:49:00 2000 Marek Michalkiewicz <marekm@linux.org.pl>
4588
4589 * configure.host: Add support for AVR target.
4590 * libc/include/machine/ieeefp.h: Likewise.
4591 * libc/include/sys/config.h: Likewise.
4592
4593 Thu Jun 22 18:35:00 2000 Ranjith Kumaran <ranjith@cygnus.com>
4594
4595 * README: Newlib 1.8.2 must be built in a separate directory
4596 than the sources.
4597
4598 Tue Jun 20 14:30:00 2000 Jeff Johnston <jjohnstn@cygnus.com>
4599
4600 * libc/include/sys/reent.h (_rand_next): Added __extension__
4601 qualifier as long long type is not strict ANSI.
4602 * libc/stdlib/rand.c (rand): Added __extension__ qualifier
4603 to long long constant.
4604
4605 Fri Jun 16 23:02:00 2000 Corinna Vinschen <corinna@vinschen.de>
4606
4607 * libc/include/sys/unistd.h: Add prototypes for `seteuid' and
4608 `setegid' provided by Cygwin.
4609
4610 Thu Jun 15 0:21:00 2000 Corinna Vinschen <corinna@vinschen.de>
4611
4612 * libc/stdio/fdopen.c: Take explicit given bin/textmode into
4613 account for Cygwin.
4614
4615 Fri Jun 9 14:28:00 2000 Jeff Johnston <jjohnstn@cygnus.com>
4616
4617 * libc/include/sys/reent.h (_rand_next): Changed to
4618 unsigned long long and moved to end of _reent struct in _new union.
4619 (_REENT_INIT): Changed to move _rand_next initialization.
4620 * libc/stdlib/rand.c (rand): Changed to use unsigned long long
4621 linear congruential algorithm that is used by DJGPP.
4622
4623 Thu Jun 8 21:18:00 2000 Ranjith Kumaran <ranjith@cygnus.com>
4624
4625 * libc/include/stdlib.h: Set RAND_MAX to __RAND_MAX.
4626 * libc/include/sys/config.h: Define __RAND_MAX.
4627
4628 Thu Jun 8 17:54:00 2000 Jeff Johnston <jjohnstn@cygnus.com>
4629
4630 * libc/stdlib/rand_r.c: New algorithm that meets minimal
4631 standard.
4632
4633 Fri Jun 2 23:02:11 2000 Christopher Faylor <cgf@cygnus.com>
4634
4635 * libc/include/string.h: Work around problem with strsignal and gdb.
4636
4637 Tue May 30 13:13:01 2000 Christopher Faylor <cgf@cygnus.com>
4638
4639 * libc/include/ctype.h: __CYGWIN32__ -> __CYGWIN__
4640 * libc/include/malloc.h: Ditto.
4641 * libc/include/process.h: Ditto.
4642 * libc/include/stdio.h: Ditto.
4643 * libc/include/stdlib.h: Ditto.
4644 * libc/include/time.h: Ditto.
4645 * libc/include/machine/setjmp.h: Ditto.
4646 * libc/include/sys/errno.h: Ditto.
4647 * libc/include/sys/signal.h: Ditto.
4648 * libc/include/sys/stat.h: Ditto.
4649 * libc/include/sys/time.h: Ditto.
4650 * libc/include/sys/unistd.h: Ditto.
4651 * libc/include/string.h: Ditto. strsignal should return a const char *.
4652
4653 2000-05-26 Marek Michalkiewicz <marekm@linux.org.pl>
4654
4655 * libm/common/s_expm1.c (expm1): Add curly braces, avoid warnings.
4656 * libm/common/s_log1p.c (log1p): Likewise.
4657 * libm/common/s_scalbn.c (scalbn): Likewise.
4658 * libm/math/e_log.c: Likewise.
4659 * libm/math/e_asin.c: Likewise.
4660 * libm/math/ef_asin.c: Likewise.
4661 * libm/math/e_j0.c (pzero, qzero): Remove redundant test.
4662 * libm/math/e_j1.c (pone, qone): Likewise.
4663 * libm/math/ef_j0.c (pzerof, qzerof): Likewise.
4664 * libm/math/ef_j1.c (ponef, qonef): Likewise.
4665 * libm/mathfp/e_j0.c (pzero, qzero): Likewise.
4666 * libm/mathfp/e_j1.c (pone, qone): Likewise.
4667 * libm/mathfp/ef_j0.c (pzerof, qzerof): Likewise.
4668 * libm/mathfp/ef_j1.c (ponef, qonef): Likewise.
4669
4670 2000-05-19 DJ Delorie <dj@cygnus.com>
4671
4672 * libc/stdio/stdio.c (__stextmode): new, see if file is text mode
4673 (__sread): always read in binary mode
4674 (__swrite): always write in binary mode
4675 * libc/include/stdio.h: no getc/putc macros for cygwin; causes
4676 compatibility issues with different dll versions
4677 * libc/stdio/fopen.c: use __stextmode
4678 * libc/stdio/fdopen.c: ditto
4679 * libc/stdio/freopen.c: ditto
4680 * libc/stdio/findfp.c: set up __SCLE for std{in,out,err}
4681 * libc/stdio/local.h: declare __stextmode
4682
4683 2000-05-18 DJ Delorie <dj@cygnus.com>
4684
4685 * libc/stdio/fgets.c (fgets): perform CRLF conversions if __SCLE
4686
4687 Mon May 15 18:54:00 2000 Jeff Johnston <jjohnstn@cygnus.com>
4688
4689 * libc/include/ctype.h: Changed tolower and toupper macros
4690 to use __extension__ to prevent pedantic warnings.
4691
4692 Mon May 15 14:26:00 2000 Joel Sherrill <joel@oarcorp.com>
4693
4694 * libc/sys/rtems/sys/time.h: Add macros for manipulating timeval
4695 structures.
4696
4697 Wed May 10 19:24:53 2000 Jim Wilson <wilson@cygnus.com>
4698
4699 * libc/include/machine/ieeefp.h: Add ia64 support.
4700 * configure.host: Likewise.
4701
4702 Wed May 10 13:52:24 2000 Egor Duda <deo@logos-m.ru>
4703
4704 * libc/time/asctime_r.c (asctime_r): Change output format. Day of
4705 month is now padded with space, not zero. This now conforms to
4706 ANSI standard.
4707
4708 Wed May 03 17:57:00 2000 Corinna Vinschen <corinna@vinschen.de>
4709
4710 * libc/include/sys/errno.h: Add define for ENOSHARE ("No such
4711 host or network path") used by cygwin. Add some comments.
4712
4713 Tue May 02 23:45:48 2000 DJ Delorie <dj@cygnus.com>
4714
4715 * libc/include/stdio.h (FILE): define __SCLE for "convert line
4716 endings" for Cygwin.
4717 (__sgetc): convert line endings if needed
4718 (__sputc): ditto
4719 * libc/stdio/fdopen.c (_fdopen_r): Remember if we opened in text mode
4720 * libc/stdio/fopen.c (_fopen_r): ditto
4721 * libc/stdio/freopen.c (freopen): ditto
4722 * libc/stdio/fread.c (fread): perform CRLF conversions if __SCLE
4723 * libc/stdio/fvwrite.c (__sfvwrite): ditto
4724
4725 Thu Apr 27 07:45:48 2000 Alexandre Oliva <aoliva@cygnus.com>
4726
4727 * libc/machine/mn10300/setjmp.S (setjmp, longjmp): Use
4728 post-increment when it is worth it, spacewise.
4729
4730 Mon Apr 17 12:46:00 2000 Marek Michalkiewicz <marekm@linux.org.pl>
4731
4732 * libc/signal/signal.c (_signal_r) : Removed unused local variable temp.
4733 * libc/stdio/findfp.c (std): Added declaration of flags and file.
4734 * libc/stdio/mktemp.c (_gettemp, _mkstemp_r, mkstemp): Added int
4735 return type.
4736 * libc/stdio/putchar.c (putchar): Added return statement.
4737 * libc/stdio/refill.c (lflush): Added correct parentheses.
4738 * libc/stdio/vfprintf.c (_VFPRINTF_R): Ditto.
4739 * libc/stdio/vfscanf.c (__svfscanf): Changed sprintf call which
4740 prints long value to use l qualifier.
4741 * libc/stdlib/dtoa.c (_dtoa_r): Added parentheses to remove warning
4742 messages and initialized local values: ilim, ilim1, and spec_case.
4743 * libc/stdlib/ecvtbuf.c (print_e): Removed unused variable dp.
4744 * libc/stdlib/mbctype.h (_issjis1, _issjis2): Added parentheses.
4745 * libc/stdlib/mprec.c: Ditto.
4746 * libc/stdlib/setenv_r.c: Ditto.
4747 * libc/stdlib/strtod.c: Ditto.
4748 * libc/stdlib/strtol.c: Ditto.
4749 * libc/stdlib/strtoul.c: Ditto.
4750 * libm/common/sf_expm1.c: Added curly braces to if else clauses.
4751 * libm/common/sf_log1p.c: Ditto.
4752 * libm/common/sf_scalbn.c: Ditto.
4753 * libm/math/ef_log.c: Ditto.
4754
4755 Sun Apr 16 12:45:00 2000 Corinna Vinschen <corinna@vinschen.de>
4756
4757 * libc/posix/execvp.c (execvp): Check path for
4758 trailing slash.
4759
4760 Fri Mar 31 20:39:00 2000 Corinna Vinschen <corinna@vinschen.de>
4761
4762 * libc/include/sys/unistd.h: Add prototypes for
4763 fchmod, fchown, lchown.
4764
4765 Fri Mar 24 15:34:00 2000 Jeff Johnston <jjohnstn@cygnus.com>
4766
4767 * acinclude.m4: Changed release to 1.8.2.
4768 * aclocal.m4 configure doc/aclocal.m4 doc/configure
4769 libc/aclocal.m4 libc/configure libc/machine/aclocal.m4
4770 libc/machine/configure libc/machine/a29k/aclocal.m4
4771 libc/machine/a29k/configure libc/machine/arm/aclocal.m4
4772 libc/machine/arm/configure libc/machine/d10v/aclocal.m4
4773 libc/machine/d10v/configure libc/machine/d30v/aclocal.m4
4774 libc/machine/d30v/configure libc/machine/fr30/aclocal.m4
4775 libc/machine/fr30/configure libc/machine/h8300/aclocal.m4
4776 libc/machine/h8300/configure libc/machine/h8500/aclocal.m4
4777 libc/machine/h8500/configure libc/machine/hppa/aclocal.m4
4778 libc/machine/hppa/configure libc/machine/i386/aclocal.m4
4779 libc/machine/i386/configure libc/machine/i960/aclocal.m4
4780 libc/machine/i960/configure libc/machine/m32r/aclocal.m4
4781 libc/machine/m32r/configure libc/machine/m68k/aclocal.m4
4782 libc/machine/m68k/configure libc/machine/m88k/aclocal.m4
4783 libc/machine/m88k/configure libc/machine/mips/aclocal.m4
4784 libc/machine/mips/configure libc/machine/mn10200/aclocal.m4
4785 libc/machine/mn10200/configure libc/machine/mn10300/aclocal.m4
4786 libc/machine/mn10300/configure libc/machine/necv70/aclocal.m4
4787 libc/machine/necv70/configure libc/machine/powerpc/aclocal.m4
4788 libc/machine/powerpc/configure libc/machine/sh/aclocal.m4
4789 libc/machine/sh/configure libc/machine/sparc/aclocal.m4
4790 libc/machine/sparc/configure libc/machine/tic80/aclocal.m4
4791 libc/machine/tic80/configure libc/machine/v850/aclocal.m4
4792 libc/machine/v850/configure libc/machine/w65/aclocal.m4
4793 libc/machine/w65/configure libc/machine/z8k/aclocal.m4
4794 libc/machine/z8k/configure libc/sys/aclocal.m4
4795 libc/sys/aclocal.m4 libc/sys/configure
4796 libc/sys/a29khif/aclocal.m4 libc/sys/a29khif/configure
4797 libc/sys/arm/aclocal.m4 libc/sys/arm/configure
4798 libc/sys/cygwin/aclocal.m4 libc/sys/cygwin/configure
4799 libc/sys/d10v/aclocal.m4 libc/sys/d10v/configure
4800 libc/sys/decstation/aclocal.m4 libc/sys/decstation/configure
4801 libc/sys/go32/aclocal.m4 libc/sys/go32/configure
4802 libc/sys/h8300hms/aclocal.m4 libc/sys/h8300hms/configure
4803 libc/sys/h8500hms/aclocal.m4 libc/sys/h8500hms/configure
4804 libc/sys/m88kbug/aclocal.m4 libc/sys/m88kbug/configure
4805 libc/sys/netware/aclocal.m4 libc/sys/netware/configure
4806 libc/sys/rtems/aclocal.m4 libc/sys/rtems/configure
4807 libc/sys/sh/aclocal.m4 libc/sys/sh/configure
4808 libc/sys/sparc64/aclocal.m4 libc/sys/sparc64/configure
4809 libc/sys/sun4/aclocal.m4 libc/sys/sun4/configure
4810 libc/sys/sysmec/aclocal.m4 libc/sys/sysmec/configure
4811 libc/sys/sysnec810/aclocal.m4 libc/sys/sysnec810/configure
4812 libc/sys/sysnecv850/aclocal.m4 libc/sys/sysnecv850/configure
4813 libc/sys/sysvi386/aclocal.m4 libc/sys/sysvi386/configure
4814 libc/sys/sysvnecv70/aclocal.m4 libc/sys/sysvnecv70/configure
4815 libc/sys/tic80/aclocal.m4 libc/sys/tic80/configure
4816 libc/sys/w65/aclocal.m4 libc/sys/w65/configure
4817 libc/sys/z8ksim/aclocal.m4 libc/sys/z8ksim/configure
4818 libm/aclocal.m4 libm/configure: Regenerated.
4819
4820 2000-03-24 Nick Clifton <nickc@cygnus.com>
4821
4822 * libc/sys/arm/syscalls.c: Fix compile time warnings.
4823 (do_AngelSWI): Add "cc" to list o registers clobbered.
4824
4825 Thu Mar 22 14:57:00 2000 Fernando Nasser <fnasser@redhat.com>
4826
4827 * libc/sys/arm/syscalls.c (do_AngelSWI): Prevent registers with valid
4828 information to be clobbered by an Angel C library support syscall.
4829
4830 Tue Mar 21 19:08:00 2000 Jeff Johnston <jjohnstn@cygnus.com>
4831
4832 * libc/stdlib/envlock.c: Fixed comment typo.
4833
4834 Fri Mar 17 15:37:00 2000 Jeff Johnston <jjohnstn@cygnus.com>
4835
4836 * libc/stdio/vfscanf.c (__svfscanf): Fixed floating point
4837 code to update nread as each character is processed instead
4838 of using buffer contents which throw away leading zeroes.
4839
4840 Mon Mar 13 15:22:00 2000 Sergei Organov <osv@javad.ru>
4841
4842 * libm/mathfp/sf_sqrt.c: Change _DOUBLE_IS_32BITS sqrt call to sqrtf.
4843
4844 Fri Mar 10 16:09:20 2000 Jeff Johnston <jjohnstn@cygnus.com>
4845
4846 * libc/include/string.h: Include <sys/types.h>.
4847
4848 Fri Mar 10 14:53:50 2000 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
4849
4850 * libc/stdio/putw.c (putw): Return 0 on success, to be compliant
4851 with XSH5, not SVID.
4852
4853 Thu Mar 9 17:20:41 2000 Jeff Johnston <jjohnstn@cygnus.com>
4854
4855 * libc/include/string.h: Changed last argument back to ssize_t
4856 to make it compatible with XPG4 definition which is
4857 defined in <unistd.h>. There is a conflict in the SVID 3
4858 and XPG4 definitions and newlib will settle with XPG4.
4859 * libc/string/swab.c: Ditto.
4860
4861 Wed Mar 8 17:11:41 2000 Jeff Johnston <jjohnstn@cygnus.com>
4862
4863 * libc/include/string.h: Changed last argument to size_t.
4864 * libc/string/swab.c: Changed last argument to size_t.
4865
4866 Wed Mar 8 00:46:41 2000 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
4867
4868 * libc/reent/Makefile.am (lib_a_SOURCES): Added unlinkr.c.
4869 (CHEWOUT_FILES): Added unlinkr.def.
4870 * libc/reent/Makefile.in: Rebuilt.
4871 * libc/sys.tex: Include unlinkr.def.
4872 * libc/reent/linkr.c (_unlink_r): Moved to...
4873 * libc/reent/unlinkr.c: ... new file.
4874
4875 Wed Mar 8 00:43:07 2000 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
4876
4877 * libc/string/Makefile.am (lib_a_SOURCES): Added swab.c.
4878 (CHEWOUT_FILES): Added swab.def.
4879 * libc/string/Makefile.in: Rebuilt.
4880 * libc/string/string.tex: Include swab.def.
4881 * libc/include/string.h (swab): Declare.
4882 * libc/string/swab.c: New file.
4883
4884 Wed Mar 8 00:38:35 2000 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
4885
4886 * libc/stdio/Makefile.am (lib_a_SOURCES): Added getw.c and putw.c.
4887 (CHEWOUT_FILES): Added getw.def and putw.def.
4888 * libc/stdio/Makefile.in: Rebuilt.
4889 * libc/stdio/stdio.tex: Include getw.def and putw.def.
4890 * libc/stdio/getw.c: New file.
4891 * libc/stdio/putw.c: New file.
4892
4893 Fri Feb 25 14:50:50 2000 Jeff Johnston <jjohnstn@cygnus.com>
4894
4895 * libc/stdio/flags.c (__sflags): Added check that mode[1]
4896 is non-null before looking at mode[2].
4897
4898 Thu Feb 24 11:43:00 2000 Ran Cabell <rcabell@norfolk.infi.net>
4899
4900 * libm/mathfp/sf_atan2.c: Fix atan2 typo for _DOUBLE_IS_32_BITS.
4901 * libm/mathfp/sf_atan.c: Ditto.
4902
4903 Thu Feb 24 11:39:00 2000 Joel Sherrill <joel@OARcorp.com>
4904
4905 * libc/include/sys/stat.h: Add RTEMS prototype for lstat.
4906
4907 Tue Feb 22 14:37:00 2000 Ran Cabell <rcabell@norfolk.infi.net>
4908
4909 * libm/mathfp/sf_exp.c: Corrected _DOUBLE_IS_32_BITS to be
4910 _DOUBLE_IS_32BITS.
4911
4912 Mon Feb 21 11:43:50 2000 Jeff Johnston <jjohnstn@cygnus.com>
4913
4914 * libc/stdio/vfprintf.c (VFPRINTF): Added CHECK_INIT
4915 call prior to calling _VFPRINTF_R so reentrant data area is set.
4916 (_VFPRINTF_R): Removed now extraneous CHECK_INIT call.
4917
4918 Thu Feb 17 01:42:50 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
4919
4920 * libc/stdio/vfscanf.c (limits.h): #include.
4921 (MAX_LONG_LEN): #define.
4922 (__svfscanf): Handle floating point numbers with arbitrary amounts
4923 of leading zeroes.
4924
4925 2000-02-15 Nick Clifton <nickc@cygnus.com>
4926
4927 * libc/sys/arm/syscalls.c (_fstat): Initialise all fields to
4928 zero. Set the blocksize to 1024/
4929
4930 Thu Jan 20 18:57:00 2000 Fernando Nasser <fnasser@redhat.com>
4931
4932 * setvbuf.c (setvbuf): Set size to BUFSIZ when passed a zero size
4933 with line buffering.
4934
4935 Mon Jan 10 18:43:00 2000 Jeff Johnston <jjohnstn@cygnus.com>
4936
4937 * acinclude.m4: Changed include directory for winsup headers.
4938 * aclocal.m4 configure libc/aclocal.m4
4939 libc/configure libc/ctype/Makefile.in libc/errno/Makefile.in
4940 libc/locale/Makefile.in libc/machine/aclocal.m4
4941 libc/machine/configure libc/machine/a29k/aclocal.m4
4942 libc/machine/a29k/configure libc/machine/arm/aclocal.m4
4943 libc/machine/arm/configure libc/machine/d10v/aclocal.m4
4944 libc/machine/d10v/configure libc/machine/d30v/aclocal.m4
4945 libc/machine/d30v/configure libc/machine/fr30/aclocal.m4
4946 libc/machine/fr30/configure
4947 libc/machine/h8300/aclocal.m4
4948 libc/machine/h8300/configure libc/machine/h8500/aclocal.m4
4949 libc/machine/h8500/configure libc/machine/hppa/aclocal.m4
4950 libc/machine/hppa/configure libc/machine/i386/aclocal.m4
4951 libc/machine/i386/configure libc/machine/i960/aclocal.m4
4952 libc/machine/i960/configure libc/machine/m32r/aclocal.m4
4953 libc/machine/m32r/configure libc/machine/m68k/aclocal.m4
4954 libc/machine/m68k/configure libc/machine/m88k/aclocal.m4
4955 libc/machine/m88k/configure libc/machine/mips/aclocal.m4
4956 libc/machine/mips/configure libc/machine/mn10200/aclocal.m4
4957 libc/machine/mn10200/configure libc/machine/mn10300/aclocal.m4
4958 libc/machine/mn10300/configure libc/machine/necv70/aclocal.m4
4959 libc/machine/necv70/configure libc/machine/powerpc/aclocal.m4
4960 libc/machine/powerpc/configure
4961 libc/machine/sh/aclocal.m4
4962 libc/machine/sh/configure libc/machine/sparc/aclocal.m4
4963 libc/machine/sparc/configure
4964 libc/machine/tic80/aclocal.m4 libc/machine/tic80/configure
4965 libc/machine/v850/aclocal.m4 libc/machine/v850/configure
4966 libc/machine/w65/aclocal.m4 libc/machine/w65/configure
4967 libc/machine/z8k/aclocal.m4 libc/machine/z8k/configure
4968 libc/misc/Makefile.in libc/posix/Makefile.in
4969 libc/reent/Makefile.in
4970 libc/signal/Makefile.in
4971 libc/string/Makefile.in libc/sys/aclocal.m4 libc/sys/configure
4972 libc/sys/a29khif/aclocal.m4 libc/sys/a29khif/configure
4973 libc/sys/arm/Makefile.in libc/sys/arm/aclocal.m4
4974 libc/sys/arm/configure libc/sys/cygwin/aclocal.m4
4975 libc/sys/cygwin/configure libc/sys/d10v/Makefile.in
4976 libc/sys/d10v/aclocal.m4 libc/sys/d10v/configure
4977 libc/sys/decstation/aclocal.m4 libc/sys/decstation/configure
4978 libc/sys/go32/aclocal.m4 libc/sys/go32/configure
4979 libc/sys/h8300hms/aclocal.m4 libc/sys/h8300hms/configure
4980 libc/sys/h8500hms/aclocal.m4 libc/sys/h8500hms/configure
4981 libc/sys/m88kbug/aclocal.m4 libc/sys/m88kbug/configure
4982 libc/sys/netware/aclocal.m4 libc/sys/netware/configure
4983 libc/sys/rtems/aclocal.m4 libc/sys/rtems/configure
4984 libc/sys/sh/Makefile.in libc/sys/sh/aclocal.m4
4985 libc/sys/sh/configure libc/sys/sparc64/aclocal.m4
4986 libc/sys/sparc64/configure libc/sys/sun4/aclocal.m4
4987 libc/sys/sun4/configure libc/sys/sysmec/aclocal.m4
4988 libc/sys/sysmec/configure libc/sys/sysnec810/aclocal.m4
4989 libc/sys/sysnec810/configure libc/sys/sysnecv850/aclocal.m4
4990 libc/sys/sysnecv850/configure libc/sys/sysvi386/aclocal.m4
4991 libc/sys/sysvi386/configure libc/sys/sysvnecv70/aclocal.m4
4992 libc/sys/sysvnecv70/configure libc/sys/tic80/aclocal.m4
4993 libc/sys/tic80/configure libc/sys/w65/aclocal.m4
4994 libc/sys/w65/configure libc/sys/z8ksim/aclocal.m4
4995 libc/sys/z8ksim/configure libc/syscalls/Makefile.in
4996 libc/time/Makefile.in libc/unix/Makefile.in libm/aclocal.m4
4997 libm/configure: Regenerated.
4998
4999 Mon Jan 10 18:43:46 2000 Jeff Johnston <jjohnstn@cygnus.com>
5000
5001 * libc/stdlib/putenv_r.c (_putenv_r): New file.
5002 * libc/stdlib/strdup_r.c (_strdup_r): New file.
5003 * libc/include/string.h: Added _strdup_r.
5004 * libc/stdlib/putenv.c: Added call to reentrant version.
5005 * libc/stdlib/strdup.c: Ditto.
5006 * libc/stdlib/Makefile.am: Added _putenv_r and _unsetenv_r.
5007 * libc/include/stdlib.h: Ditto.
5008 * libc/stdlib/Makefile.in: Regenerated.
5009 * libc/string/Makefile.in: Regenerated.
5010 * libc/stdlib/setenv.c: Added reentrant version of unsetenv.
5011 * libc/stdlib/setenv_r.c: Added unsetenv_r and changed memory
5012 management calls to reentrant versions.
5013 * libc/stdlib/wcstombs.c: Added #ifndef _REENT_ONLY wrapper.
5014 * libc/stdlib/wctomb.c: Ditto.
5015 * libc/stdlib/mblen.c: Ditto.
5016 * libc/stdlib/mbstowcs.c: Ditto.
5017 * libc/stdlib/mbtowc.c: Ditto.
5018 * libc/stdlib/getenv.c: Ditto.
5019 * libc/reent/reent.tex: Added references to _putenv_r, _setenv_r,
5020 and _strdup_r.
5021
5022 Thu Jan 6 15:33:46 2000 Christopher Faylor <cgf@cygnus.com>
5023
5024 patch from Corinna Vinschen <corinna@vinschen.de>
5025 * libc/sys/cygwin/sys/param.h: Define NGROUP_MAX as 16.
5026
5027 Mon Jan 03 14:36:00 2000 Sergei Organov <osv@javad.ru>
5028
5029 * libm/mathfp/s_atangent.c: Fix exponent calculation.
5030 * libm/mathfp/s_ldexp.c: Ditto.
5031 * libm/mathfp/sf_atangent.c: Ditto.
5032 * libm/mathfp/sf_ldexp.c: Ditto.
5033
5034 Tue Dec 14 5:42:00 1999 Ranjith Kumaran <ranjith@cygnus.com>
5035
5036 * libc/machine/i960/setjmp.S: fix typo leaving .link_pix uncommented
5037 * libc/include/locale.h: define NULL to be 0.
5038
5039 Tue Dec 7 15:41:45 1999 Jim Wilson <wilson@cygnus.com>
5040
5041 * libc/sys/sh/syscalls.c (stack_ptr): Move definition before first
5042 function.
5043
5044 Wed Dec 1 17:39:29 1999 Jeffrey A Law (law@cygnus.com)
5045
5046 * libc/machine/mn10300/setjmp.S: Handle am33.
5047
5048 1999-11-26 Nick Clifton <nickc@cygnus.com>
5049
5050 * libc/sys/arm/syscalls.c: Add function prototypes.
5051 (stack_ptr): Move declaration before function definitions.
5052
5053 Sat Nov 20 17:13:00 1999 Ranjith Kumaran <ranjith@cygnus.com>
5054
5055 * NEWS: Updated version information.
5056 * README: Ditto.
5057
5058 Tue Nov 09 12:19:21 1999 Jeff Johnston <jjohnstn@cygnus.com>
5059
5060 * libc/machine/i386/strchr.S: Fixed alignment test.
5061
5062 Thu Oct 28 05:30:46 1999 Andrew Cagney <cagney@makita.cygnus.com>
5063
5064 * libc/sys/d10v/crt0.S (_start): Construct a real stack frame.
5065
5066 Thu Oct 28 15:29:11 1999 Andrew Cagney <cagney@b1.cygnus.com>
5067
5068 * libc/sys/d10v/crt0.S (_start): Initialize both SPI and SPU
5069 ensuring that there is space between the two.
5070
5071 Thu Oct 14 13:39:21 1999 Christopher Faylor <cgf@cygnus.com>
5072
5073 * libc/stdio/flags.c: Conditionalize check for 't' for cygwin case
5074 only.
5075
5076 1999-10-08 Vadim Egorov <egorovv@1c.ru>
5077
5078 * libc/include/stdlib.h: add ptsname, grantpt, unlockpt to cygwin
5079 section
5080
5081 Sat Oct 2 02:02:00 MEST 1999 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
5082
5083 * libc/machine/sh/asm.h: Added __SH4_SINGLE__ to DELAYED_BRANCHES
5084 * libc/machine/sh/memcpy.S: Fix line wrapping in SL macro
5085
5086 Fri Oct 1 13:17:59 CDT 1999 <joel@OARcorp.com>
5087 * libc/include/grp.h: Added getgrnam_r and getgrgid_r prototypes
5088 per POSIX 1003.1b.
5089 * libc/include/pwd.h: Added getpwnam_r and getpwuid_r prototypes
5090 per POSIX 1003.1b.
5091
5092 1999-09-13 DJ Delorie <dj@cygnus.com>
5093
5094 * libc/stdio/mktemp.c (_gettemp): on cygwin, check for EACCESS
5095 also.
5096
5097 Thu Sep 9 15:31:00 1999 Jeff Johnston <jjohnstn@cygnus.com>
5098
5099 * setvbuf.c (setvbuf): When mallocing a buffer of size BUFSIZ,
5100 also note BUFSIZ as its size.
5101
5102 Tue Sep 7 17:15:00 1999 Joel Sherrill <joel@OARcorp.com>
5103
5104 * configure.host: Corrected feature defines for RTEMS.
5105 * libc/include/sys/stat.h: Added protototype for RTEMS mknod.
5106 * libc/include/sys/stat.h: mkfifo() should take const path arg.
5107 * libc/include/sys/unistd.h: pathconf() should take const path arg.
5108 Enabled usleep(), ftruncate(), and truncate() prototypes for RTEMS.
5109 Added defines for _POSIX_JOB_CONTROL, _POSIX_SAVED_IDS, and
5110 _POSIX_VERSION for RTEMS. Added defines for _PC_ASYNC_IO,
5111 _PC_PRIO_IO, and _PC_SYNC_IO.
5112 * libc/machine/m68k/Makefile.am: Added strcpy.c and strlen.c.
5113 * libc/machine/m68k/Makefile.in: Regenerated.
5114 * libc/machine/m68k/strcpy.c: New file.
5115 * libc/machine/m68k/strlen.c: New file.
5116 * libc/stdio/tmpnam.c: Always make the returned name usable.
5117 * libc/sys/rtems/crt0.c: New version that passes all autoconf tests.
5118 * libc/sys/rtems/sys/dirent.h: New file.
5119 * libc/sys/rtems/sys/types.h: Added dev_t.
5120
5121 Tue Sep 7 17:15:00 1999 Jay Kulpinski <jskulpin@eng01.gdds.com>
5122
5123 * libc/stdlib/mprec.c: Fixed unitialized variable problem.
5124
5125 Fri Sep 3 12:35:20 1999 Jeff Johnston <jjohnstn@cygnus.com>
5126
5127 * libc/stdio/ftell.c (ftell): Backing off Joern's fix and
5128 my patch.
5129
5130 Thu Sep 2 22:05:20 1999 Christopher Faylor <cgf@cygnus.com>
5131
5132 patch from Jeff Johnston <jjohnstn@cygnus.com>
5133 * libc/stdio/ftell.c (ftell): Avoid using buffer position when the
5134 buffer is not in a useful state.
5135
5136 1999-09-01 Nick Clifton <nickc@cygnus.com>
5137
5138 * libc/sys/arm/syscalls.c (_link): Add stub.
5139
5140 Fri Aug 27 23:09:09 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
5141
5142 * ftell.c (ftell): Use actual position within buffer for text mode.
5143 * findfp.c (std): Initialize ptr->_bf._size.
5144
5145 Wed Aug 18 18:48:02 1999 Christopher Faylor <cgf@cygnus.com>
5146
5147 * libc/include/sys/unistd.h: Add nice() declaration.
5148
5149 1999-08-09 Nick Clifton <nickc@cygnus.com>
5150
5151 * libc/sys/arm/crt0.S (change_mode): Rename to __change_mode and
5152 declare as a thumb function so that the disassembler will see the
5153 mode change.
5154
5155 Thu Aug 5 17:37:00 1999 Ranjith Kumaran <ranjith@cygnus.com>
5156
5157 * libc/reent/reent.tex: Updated list of reentrant functions.
5158
5159 1999-07-09 Michael Meissner <meissner@cygnus.com>
5160
5161 * libc/include/stdlib.h (_findenv{,_r}): Add prototypes.
5162
5163 Tue Jul 6 10:46:24 1999 Jeff Johnston <jjohnstn@cygnus.com>
5164
5165 * libc/stdio/sprintf.c: Moved snprintf and _snprintf_r to
5166 separate file.
5167 * libc/stdio/snprintf.c: New file.
5168 * libc/stdio/vsprintf.c: Moved vsnprintf and _vsnprintf_r to
5169 separate file.
5170 * libc/stdio/vsnprintf.c: New file.
5171 * libc/stdio/Makefile.am: Added snprintf.c and vsnprintf.c.
5172 * libc/stdio/Makefile.in: Regenerated.
5173
5174 Mon Jul 5 14:43:24 1999 Christopher Faylor <cgf@cygnus.com>
5175
5176 Patch submitted by Egor Duda <deo@logos-m.ru>:
5177 * libc/include/stdio.h: Add declarations for *nprintf.
5178 * libc/stdio/sprintf.c (snprintf): New function.
5179 (_snprintf_r): New function.
5180 * libc/stdio/vsprintf.c (vsnprintf): New function.
5181 (_vnsprintf_r): New function.
5182
5183 Wed Jun 30 16:36:27 1999 Jeff Johnston <jjohnstn@cygnus.com>
5184
5185 * libc/Makefile.am (stmp-targetdep): Remove extraneous blank.
5186 * libm/Makefile.am (stmp-targetdep): Ditto.
5187 * libc/Makefile.in: Regenerated.
5188 * libm/Makefile.in: Ditto.
5189
5190 Fri Jun 25 10:49:27 1999 Jeff Johnston <jjohnstn@cygnus.com>
5191
5192 * libc/Makefile.am (stmp-targetdep): Ignore "." in SUBDIRS.
5193 * libm/Makefile.am (stmp-targetdep): Ditto.
5194 * libc/Makefile.in: Regenerated.
5195 * libm/Makefile.in: Ditto.
5196
5197 Thu June 03 16:25:00 1999 Jeff Johnston <jjohnstn@cygnus.com>
5198
5199 * Makefile.am: Removed dependencies on all-recursive and added "."
5200 to the SUBDIRS list to prevent infinite recursion from occurring.
5201 Also removed any references to EXTRA_DATA.
5202 * libc/Makefile.am: Ditto.
5203 * libc/machine/Makefile.am: Ditto.
5204 * libc/machine/i386/Makefile.am: Ditto.
5205 * libm/Makefile.am: Ditto.
5206 * libc/sys/Makefile.am: Ditto.
5207 * Makefile.in: Regenerated.
5208 * aclocal.m4: Ditto.
5209 * configure: Ditto.
5210 * doc/Makefile.in: Ditto.
5211 * doc/aclocal.m4: Ditto.
5212 * doc/configure: Ditto.
5213 * libc/Makefile.in: Ditto.
5214 * libc/aclocal.m4: Ditto.
5215 * libc/configure: Ditto.
5216 * libc/machine/Makefile.in: Ditto.
5217 * libc/machine/aclocal.m4: Ditto.
5218 * libc/machine/configure: Ditto.
5219 * libc/machine/mn10300/Makefile.in: Ditto.
5220 * libc/machine/mn10300/aclocal.m4: Ditto.
5221 * libc/machine/mn10300/configure: Ditto.
5222 * libc/sys/Makefile.in: Ditto.
5223 * libc/sys/aclocal.m4: Ditto.
5224 * libc/sys/configure: Ditto.
5225 * libm/Makefile.in: Ditto.
5226 * libm/aclocal.m4: Ditto.
5227 * libm/configure: Ditto.
5228
5229 Thu June 03 16:20:00 1999 Ranjith Kumaran <ranjith@cygnus.com>
5230
5231 * libc/include/stdlib/stdlib.tex: Add link to env_lock.
5232
5233 Fri May 28 17:09:00 1999 Ranjith Kumaran <ranjith@cygnus.com>
5234
5235 * libc/include/stdlib.h: Add reentrant routines.
5236 * libc/stdlib/Makefile.am: Add reentrant routines.
5237 * libc/stdlib/Makefile.in: Ditto.
5238 * libc/stdlib/envlock.c: New file.
5239 * libc/stdlib/envlock.h: New file.
5240 * libc/stdlib/getenv.c: Modify to call reentrant routine.
5241 * libc/stdlib/getenv_r.c: New file.
5242 * libc/stdlib/mblen.c: Modify to call reentrant routine.
5243 * libc/stdlib/mblen_r.c: New file.
5244 * libc/stdlib/setenv.c: Modify to call reentrant routine.
5245 * libc/stdlib/setenv_r.c: New file.
5246 * libc/stdlib/stdlib.tex: Add reentrant routines.
5247
5248 Mon May 17 22:01:38 1999 Christopher Faylor <cgf@cygnus.com>
5249
5250 * libc/include/sys/types.h: Define __MS_types__ whenever
5251 cygwin or win32.
5252
5253 Sun May 16 16:02:41 1999 Christopher Faylor <cgf@cygnus.com>
5254
5255 * libc/include/machine/ieeefp.h: Always default to little
5256 endian if Windows, regardless of architecture.
5257 * libc/include/machine/sethmp.h: Define JBLEN if CYGWIN
5258 regardless of architecture.
5259
5260 Mon May 3 11:49:18 1999 Geoffrey Noer <noer@cygnus.com>
5261
5262 * libc/include/machine/setjmp.h: Accept CYGWIN define, even if
5263 _WIN32 isn't defined.
5264
5265 Mon May 3 11:41:51 1999 Jeff Johnston <jjohnstn@cygnus.com>
5266
5267 * libm/common/s_rint.c (rint): Add volatile qualifier for
5268 intermediate value w.
5269 * libm/common/sf_rint.c (rintf): Ditto.
5270
5271 Thu Apr 29 20:34:27 1999 Jeff Johnston <jjohnstn@cygnus.com>
5272
5273 * libc/sys/arm/syscalls.c (remap_handle): Added check to
5274 ensure that std streams are initialized before being referenced.
5275
5276 1999-04-27 Jason Molenda (jsm@bugshack.cygnus.com)
5277
5278 * README: Update reference to newlib@cygnus.com new
5279 newlib@sourceware.cygnus.com address.
5280
5281 Mon Apr 26 18:17:33 1999 Geoffrey Noer <noer@cygnus.com>
5282
5283 * libc/include/sys/types.h: Define MS_types if CYGWIN is defined.
5284 * libc/include/sys/fcntl.h: Define _O_BINARY et al if CYGWIN is
5285 defined, even if _WIN32 isn't defined.
5286
5287 Sat Apr 24 19:59:55 1999 Christopher Faylor <cgf@cygnus.com>
5288
5289 * libc/include/sys/fcntl.h: Correct _O_CREATE to _O_CREAT.
5290
5291 Wed Apr 21 18:01:00 1999 Ranjith Kumaran <ranjith@cygnus.com>
5292
5293 * libc/include/sys/reent.h: Change Long and ULong to __Long and
5294 __ULong.
5295 * libc/stdlib/dtoa.c: Ditto.
5296 * libc/stdlib/mprec.c: Ditto.
5297 * libc/stdlib/mprec.h: Ditto.
5298 * libc/stdlib/strtod.c: Ditto.
5299
5300 1999-04-21 Nick Clifton <nickc@cygnus.com>
5301
5302 * configure.host (mcore): Remove mcore machine directory.
5303
5304 1999-04-18 Nick Clifton <nickc@cygnus.com>
5305
5306 * libc/include/machine/ieeefp.h: Add support for mcore target.
5307 * libc/include/machine/setjmp.h: Add support for mcore target.
5308 * configure.host: Add support for mcore target.
5309
5310 1999-04-13 Mark Salter <msalter@cygnus.com>
5311
5312 * libc/sys/arm/libcfunc.c: Moved isatty to syscall.c
5313 * libc/sys/arm/syscalls.c: Added isatty.
5314
5315 Wed Apr 07 16:06:04 1999 Jeff Johnston <jjohnstn@cygnus.com>
5316
5317 * libc/stdlib/ecvtbuf.c (fcvtbuf): Fixed code to properly
5318 insert zeroes after significant digits.
5319
5320 Wed Mar 17 22:06:04 1999 Jeff Johnston <jjohnstn@cygnus.com>
5321
5322 * libc/stdio/vfprintf.c (cvt): Changed floating point
5323 cvt routine to use union used by dtoa to properly determine
5324 if the sign bit is on or not.
5325 * libc/stdio/vfieeefp.h: New file
5326
5327 Wed Mar 17 17:35:04 1999 Jeff Johnston <jjohnstn@cygnus.com>
5328
5329 * aclocal.m4: Regenerated.
5330 * configure: Regenerated.
5331
5332 Wed Mar 17 16:35:04 1999 Jeff Johnston <jjohnstn@cygnus.com>
5333
5334 * libc/machine/i386/Makefile.am (lib_a_SOURCES): Added missing
5335 f_tanf reference.
5336 * libc/machine/i386/Makefile.in: Regenerated.
5337
5338 Tue Mar 16 14:56:36 1999 Jeff Johnston <jjohnstn@cygnus.com>
5339
5340 * acinclude.m4: Changed to work with new automake.
5341 * configure: Regenerated.
5342 * libc/machine/i386/aclocal.m4: Regenerated.
5343 * libc/machine/i386/configure: Regenerated.
5344
5345 Tue Mar 16 13:55:36 1999 Corinna Vinschen <corinna.vinschen@cityweb.de>
5346
5347 * libc/sys/cygwin/sys/dirent.h: Add additional prototypes
5348 for telldir() and seekdir(). Rename unused structure element
5349 for use with these two routines.
5350
5351 Fri Mar 12 19:11:58 1999 Jeff Johnston <jjohnstn@cygnus.com>
5352
5353 * libc/time/mktime.c (validate_structure): Multiple fixes to
5354 code to handle cases where input fields are outside valid ranges.
5355 * libc/stdlib/div.c (div): Modified invalid rounding check.
5356 * libc/stdlib/ldiv.c (ldiv): Ditto.
5357
5358 Thu Mar 11 21:32:13 1999 Jeff Johnston <jjohnstn@cygnus.com>
5359
5360 * libc/machine/i386/memcpy.S: Performance rewrite.
5361 * libc/machine/i386/memmove.S: Ditto.
5362 * libc/machine/i386/i386mach.h: Added more register definitions.
5363 * libc/include/math.h: Include <machine/fastmath.h> if -ffast-math
5364 option used.
5365 * libc/include/machine/fastmath.h: Add definitions for x86
5366 fast-math routines.
5367
5368 Wed Mar 10 17:56:00 1999 Ranjith Kumaran <ranjith@cygnus.com>
5369
5370 * libc/stdlib/strtod.c: Change from unsigned long to ULong.
5371
5372 Tue Mar 9 14:31:58 1999 Geoffrey Noer <noer@cygnus.com>
5373
5374 Adjust newlib headers for new Cygwin Win32 API header files:
5375 * libc/include/sys/time.h: Check _WINSOCK_H rather than
5376 _GNU_H_WINDOWS32_SOCKETS.
5377 * libc/include/sys/types.h: Ditto.
5378
5379 Tue Mar 09 15:55:00 1999 Ranjith Kumaran <ranjith@cygnus.com>
5380
5381 *include/sys/reent.h: Add checks for size of Bigint element Long.
5382 *libc/dtoa.c: Change routines to use generic Long type.
5383 *libc/mprec.c: Change routines to use generic Long type.
5384 *libc/mprec.h: Change routines to use generic Long type.
5385
5386 Tue Mar 02 18:07:49 1999 Ranjith Kumaran <ranjith@cygnus.com>
5387
5388 * libc/Makefile.am: Add .def files.
5389 * libc/Makefile.in: Regenerate.
5390 * libc/e_acosh.c: Documentation update.
5391 * libc/e_atanh.c: Documentation update.
5392 * libc/e_hypot.c: Documentation update.
5393 * libc/e_remainder.c: Documentation update.
5394 * libc/er_lgamma.c: Documentation update.
5395 * libc/mathfp.tex: Documentation update.
5396 * libc/s_acos.c: Documentation update.
5397 * libc/s_atan.c: Documentation update.
5398 * libc/s_atan2.c: Documentation update.
5399 * libc/s_cosh.c: Documentation update.
5400 * libc/s_fmod.c: Documentation update.
5401 * libc/s_isnan.c: Documentation update.
5402 * libc/s_log10.c: Documentation update.
5403 * libc/s_pow.c: Documentation update.
5404 * libc/w_jn.c: Documentation update.
5405
5406 Sun Feb 28 23:18:49 1999 Geoffrey Noer <noer@cygnus.com>
5407
5408 * aclocal.m4: Regenerate.
5409 * configure: Regenerate.
5410
5411 Tue Feb 23 13:57:26 1999 Jeff Johnston <jjohnstn@cygnus.com>
5412
5413 * libc/machine/mn10300/setjmp.S (_longjmp): Fixed longjmp
5414 to return 1 if user specified return code is 0.
5415 * libc/machine/mn10200/setjmp.S (_longjmp): Ditto.
5416
5417 Thu Feb 18 11:13:28 1999 Jeff Johnston <jjohnstn@cygnus.com>
5418
5419 * libc/machine/mn10200/setjmp.S (_setjmp/_longjmp): Fixed setjmp
5420 to save the return address. Fixed longjmp to return to the original
5421 calling address of setjmp and to return the user specified return code
5422 rather than default to 1.
5423 * libc/machine/mn10300/setjmp.S (_setjmp/_longjmp): Ditto.
5424
5425 Mon Feb 15 17:48:17 1999 Jeff Johnston <jjohnstn@cygnus.com>
5426
5427 * libc/stdlib/mprec.h (mult): Define mult to be _multiply instead of _mult.
5428
5429 1999-02-10 Nick Clifton <nickc@cygnus.com>
5430
5431 * libc/sys/arm/syscalls.c (initialise_monitor_handles): Make block
5432 volatile so that its assignments will not be discarded.
5433
5434 Wed Feb 10 17:19:40 1999 Jeff Johnston <jjohnstn@cygnus.com>
5435
5436 * libc/include/_ansi.h: Corrected _STRICT_ANSI reference to
5437 be __STRICT_ANSI__ which is generated by compiler.
5438 * libc/include/ctype.h: Ditto.
5439 * libc/include/math.h: Ditto.
5440 * libc/include/stdio.h: Ditto.
5441 * libc/include/stdlib.h: Ditto.
5442 * libc/include/string.h: Ditto.
5443 * libc/include/sys/signal.h: Ditto.
5444
5445 1999-02-08 Nick Clifton <nickc@cygnus.com>
5446
5447 * configure.host: Add support for StrongARM target.
5448
5449 Fri Feb 5 11:13:14 1999 Jeff Johnston <jjohnstn@cygnus.com>
5450
5451 * libc/string/strncpy.c (strncpy): Removed redundant code
5452 that was copying bytes if data unaligned.
5453
5454 1999-02-02 Brendan Kehoe <brendan@cygnus.com>
5455
5456 * libc/stdlib/Makefile.{am,in} (CHEWOUT_FILES): Add mblen.def,
5457 mbstowcs.def, and wcstombs.def.
5458
5459 Sat Jan 30 02:36:33 1999 Christopher Faylor <cgf@cygnus.com>
5460
5461 * libc/include/sys/errno.h: Add Cygwin errno.
5462 * libc/stdio/flags.c: Don't default to O_TEXT if no other flag
5463 is specified.
5464
5465 1999-01-29 Nick Clifton <nickc@cygnus.com>
5466
5467 * libc/sys/arm/syscalls.c: Move C library functions into seperate
5468 file.
5469
5470 * libc/sys/arm/libcfunc.c: New file containing C library functions
5471 from syscalls.c
5472
5473 * libc/sys/arm/Makefile.am (lib_a_SOURCES): Add libcfuncs.c
5474 * libc/sys/arm/Makefile.in (lib_a_SOURCES): Regenerate.
5475
5476
5477 1999-01-27 Michael Meissner <meissner@cygnus.com>
5478
5479 * libc/include/machine/setjmp.h (D30V _JBLEN/_JBTYPE): Use double
5480 type, and cut size in half so that the jmp_buf array is guaranteed
5481 to be aligned on a 64-bit boundary.
5482
5483 Mon Jan 25 12:05:38 1999 Jeff Johnston <jjohnstn@cygnus.com>
5484
5485 * libc/string/strings.tex: Added information about
5486 strcasecmp and strncasecmp.
5487 * libc/stdlib/stdlib.tex: Added missing information
5488 about mblen, mbstowcs, and wcstombs.
5489 * libc/string/strchr.c: Changed how mask is built to use
5490 shift operators so register will be used instead of storage.
5491
5492 1999-01-22 DJ Delorie <dj@cygnus.com>
5493
5494 * libc/include/stdlib.h: don't use dllimport if we're building
5495 newlib, since it's inside cygwin.dll
5496
5497 Fri Jan 22 14:57:18 1999 Christopher Faylor <cgf@cygnus.com>
5498
5499 * libc/ctype/ctype_.c: Need to use __declspec(dllexport) for
5500 _ctype_ under cygwin.
5501
5502 Fri Jan 22 09:50:19 1999 Christopher Faylor <cgf@cygnus.com>
5503
5504 * include/stdlib.h: Fix typo from previous checkin.
5505
5506 Thu Jan 21 22:42:21 1999 Christopher Faylor <cgf@cygnus.com>
5507
5508 * include/ctype.h: Use __declspec(dllimport) method for exporting
5509 variable from cygwin DLL.
5510 * include/time.h: Ditto.
5511 * sys/errno.h: Ditto.
5512 * include/stdlib.h: Export __mb_cur_max from cygwin DLL.
5513 * libc/locale/locale.c: Use __declspec(dllexport) method for
5514 exporting variable from cygwin DLL.
5515
5516 Sat Jan 16 13:29:54 1999 Christopher Faylor <cgf@cygnus.com>
5517
5518 * libc/stdio/setvbuf.c: Always clean up when _IONBF or possible
5519 access of bogus pointer will result in SIGSEGV.
5520
5521 1999-01-07 Nick Clifton <nickc@cygnus.com>
5522
5523 * libc/sys/arm/setjmp.S: Use C macros to cope with the possibility
5524 of an underscore prefix to function names.
5525
5526 Fri Jan 8 19:00:07 1999 Jeff Johnston <jjohnstn@cygnus.com>
5527
5528 * libc/machine/i386/i386mach.h (__REG_PREFIX__): Create new
5529 define __REG_PREFIX__ instead of using __REGISTER_PREFIX__.
5530
5531 1998-12-31 Michael Meissner <meissner@cygnus.com>
5532
5533 * libc/machine/i386/i386mach.h (__REGISTER_PREFIX__): Only define
5534 to `%' if not already defined.
5535
5536 1998-12-30 Michael Meissner <meissner@cygnus.com>
5537
5538 * libc/stdio/tmpnam.c (_tempnam_r): Make directory and prefix
5539 arguments const char *, not char *.
5540 * libc/include/stdio.h (_tempnam_r): Ditto.
5541
5542 * libc/include/sys/reent.h (struct _reent): The _sig_func type
5543 points to a function taking an integer, not void.
5544
5545 Tue Dec 29 14:35:53 1998 Christopher Faylor <cgf@cygnus.com>
5546
5547 * configure.host: Add a define for Cygwin builds.
5548 * libc/include/ctype.h: Don't use dll imported variables in newlib.
5549
5550 Mon Dec 28 09:19:56 1998 Christopher Faylor <cgf@cygnus.com>
5551
5552 * libc/include/ctype.h: Define _ctype_ as dll imported variable
5553 for use with Cygwin.
5554 * libc/include/sys/errno.h: Define _sys_errlist and _sys_nerr as
5555 dll imported variables for use with Cygwin.
5556 * libc/ctype/ctype_.c: Undefine _ctype_ in case it has been defined
5557 as a dll imported variable for Cygwin.
5558
5559 Sat Dec 26 00:13:53 1998 Christopher Faylor <cgf@cygnus.com>
5560
5561 * libc/include/sys/unistd.h: Add proto for getpass.
5562
5563 Fri Dec 18 19:28:19 1998 Geoffrey Noer <noer@cygnus.com>
5564
5565 * libc/sys/cygwin/sys/dirent.h: add protos for scandir and
5566 alphasort.
5567
5568 Fri Dec 18 16:33:25 1998 Geoffrey Noer <noer@cygnus.com>
5569
5570 * libc/posix/execvp.c (execvp): call cygwin_posix_path_list_p,
5571 not posix_path_list_p.
5572
5573 1998-12-15 Nick Clifton <nickc@cygnus.com>
5574
5575 * libc/string/memchr.c: Treat 'c' argument as an unsigned byte not
5576 a signed int.
5577
5578 1998-12-13 Nick Clifton <nickc@cygnus.com>
5579
5580 * libc/include/machine/setjmp.h (_JBLEN): Set to 10.
5581
5582 1998-12-12 Nick Clifton <nickc@cygnus.com>
5583
5584 * libc/machine/fr30/setjmp.S: New file, supplied by Mark Slater
5585 <msalter@cygnus.com>
5586 * libc/machine/fr30/Makefile.am: Add build of setjmp.S
5587 * libc/machine/fr30/Makefile.in: Regenerated.
5588
5589 1998-12-11 Nick Clifton <nickc@cygnus.com>
5590
5591 * configure.host: Remove use of libc/sys for FR30 port.
5592 * libc/sys/fr30: Remove directory (replaced by libgloss).
5593
5594 1998-12-10 Ken Raeburn <raeburn@cygnus.com>
5595
5596 * libc/string/strcat.c (ALIGNED): Sense of result was reversed.
5597 * libc/string/strncat.c (ALIGNED): Ditto.
5598
5599 Wed Dec 9 14:37:57 1998 Geoffrey Noer <noer@cygnus.com>
5600
5601 * libc/include/sys/time.h: include sys/types.h
5602
5603 Tue Dec 8 15:53:18 1998 Jeff Johnston <jjohnstn@cygnus.com>
5604
5605 * libc/machine/i386/memcmp.S (memcmp): Fix for unequal
5606 comparison found when checking word at a time.
5607
5608 1998-12-04 Nick Clifton <nickc@cygnus.com>
5609
5610 * libc/sys/fr30/crt0.s (_start): Initialise frame pointer.
5611
5612 1998-12-03 Nick Clifton <nickc@cygnus.com>
5613
5614 * libc/sys/fr30/syscalls.c (_times): New function stub.
5615
5616 Thu Dec 3 15:59:19 1998 Jeff Johnston <jjohnstn@cygnus.com>
5617
5618 * configure.host (mach_add_setjmp): Replaced mach_add_objs
5619 with mach_add_setjmp flag which indicates if setjmp should
5620 be added to the machine directory objects.
5621 * acinclude.m4: Removed reference to mach_add_objs.
5622 * aclocal.m4: Regenerated.
5623 * Makefile.in: Regenerated.
5624 * configure: Regenerated.
5625 * libc/aclocal.m4: Regenerated.
5626 * libc/Makefile.in: Regenerated.
5627 * libc/configure: Regenerated.
5628 * libc/machine/aclocal.m4: Regenerated.
5629 * libc/machine/Makefile.in: Regenerated.
5630 * libc/machine/configure: Regenerated.
5631 * libc/machine/i386/aclocal.m4: Regenerated.
5632 * libc/machine/i386/Makefile.am: Altered to selectively add
5633 setjmp.S to the src files list.
5634 * libc/machine/i386/Makefile.in: Regenerated.
5635 * libc/machine/i386/configure.in: Altered to test mach_add_setjmp.
5636 * libc/machine/i386/configure: Regenerated.
5637
5638 1998-12-02 Nick Clifton <nickc@cygnus.com>
5639
5640 * libc/sys/fr30/crt0.s (_start): Fix function names.
5641
5642 * libc/machine/fr30: New directory
5643 * libc/machine/fr30/Makefile.am: New file.
5644 * libc/machine/fr30/Makefile.in: New generated file.
5645 * libc/machine/fr30/configure.in: New file.
5646 * libc/machine/fr30/configure: New generated file.
5647 * libc/machine/fr30/aclocal.m4: New generated file.
5648 * libc/sys/fr30/Makefile.am: New file.
5649 * libc/sys/fr30/Makefile.in: New generated file.
5650 * libc/sys/fr30/configure.in: New file.
5651 * libc/sys/fr30/configure: New generated file.
5652 * libc/sys/fr30/syscalls.c: New file.
5653
5654 Tue Dec 1 16:28:56 1998 Geoffrey Noer <noer@cygnus.com>
5655
5656 * libc/sys/cygwin/sys/utmp.h: new file, moved from winsup/include.
5657
5658 1998-12-01 Ken Raeburn <raeburn@cygnus.com>
5659
5660 * libc/time/strftime.c (strftime): Also handle %y for years before
5661 1900.
5662
5663 Tue Dec 1 13:26:07 1998 Christopher Faylor <cgf@cygnus.com>
5664
5665 * libc/string/strcasecmp.c (strcasecmp): Adhere to standard
5666 UNIX convention. Perform tolower on characters before comparing
5667 them rather than use toupper.
5668 * libc/string/strncasecmp.c (strncasecmp): Ditto.
5669
5670 Mon Nov 30 16:24:19 1998 Jeff Johnston <jjohnstn@cygnus.com>
5671
5672 * configure.host: Added using i386 machine directory
5673 for all x86 cross-compiler and configuring
5674 which added object files to use via new "mach_add_objs" variable.
5675 * configure: Regenerated.
5676 * libc/configure: Regenerated.
5677 * libc/Makefile.in: Regenerated.
5678 * libc/aclocal.m4: Regenerated.
5679 * libc/ctype/Makefile.in: Regenerated.
5680 * libc/errno/Makefile.in: Regenerated.
5681 * libc/locale/Makefile.in: Regenerated.
5682 * libc/machine/Makefile.in: Regenerated.
5683 * libc/machine/aclocal.m4: Regenerated.
5684 * libc/machine/configure: Regenerated.
5685 * libc/posix/Makefile.in: Regenerated.
5686 * libc/reent/Makefile.in: Regenerated.
5687 * libc/signal/Makefile.in: Regenerated.
5688 * libc/stdio/Makefile.in: Regenerated.
5689 * libc/stdlib/Makefile.in: Regenerated.
5690 * libc/string/Makefile.in: Regenerated.
5691 * libc/string/memmove.c: Optimized code to use memcpy
5692 logic when performing a non-destructive copy.
5693 * libc/string/strncmp.c: Altered code to allow building
5694 optimized for size or speed.
5695 * libc/syscalls/Makefile.in: Regenerated.
5696 * libc/time/Makefile.in: Regenerated.
5697 * libc/unix/Makefile.in: Regenerated.
5698 * libc/machine/i386/Makefile.am: Added new files and reference
5699 to "mach_add_objs" to indicate optional object files.
5700 * libc/machine/i386/Makefile.in: Regenerated.
5701 * libc/machine/i386/aclocal.m4: Regenerated.
5702 * libc/machine/i386/configure: Regenerated.
5703 * libc/machine/i386/memchr.S: New file that implements
5704 function in Intel assembler.
5705 * libc/machine/i386/memcmp.S: ditto.
5706 * libc/machine/i386/memcpy.S: ditto.
5707 * libc/machine/i386/memmove.S: ditto.
5708 * libc/machine/i386/memset.S: ditto.
5709 * libc/machine/i386/strchr.S: ditto.
5710 * libc/machine/i386/strlen.S: ditto.
5711 * libc/machine/i386/f_atan2.S: New file that implements
5712 fast version of math function to be used by compiler when
5713 --ffast_math compile option is used.
5714 * libc/machine/i386/f_atan2f.S: ditto.
5715 * libc/machine/i386/f_exp.c: ditto.
5716 * libc/machine/i386/f_expf.c: ditto.
5717 * libc/machine/i386/f_frexp.S: ditto.
5718 * libc/machine/i386/f_frexpf.S: ditto.
5719 * libc/machine/i386/f_ldexp.S: ditto.
5720 * libc/machine/i386/f_ldexpf.S: ditto.
5721 * libc/machine/i386/f_log.S: ditto.
5722 * libc/machine/i386/f_logf.S: ditto.
5723 * libc/machine/i386/f_log10.S: ditto.
5724 * libc/machine/i386/f_log10f.S: ditto.
5725 * libc/machine/i386/f_math.h: New file.
5726 * libc/machine/i386/f_pow.c: ditto.
5727 * libc/machine/i386/f_powf.S: ditto.
5728 * libc/machine/i386/f_tan.S: ditto.
5729 * libc/machine/i386/f_tan.S: ditto.
5730 * libc/machine/i386/i386mach.h: New file.
5731
5732 Mon Nov 30 13:02:17 1998 Christopher Faylor <cgf@cygnus.com>
5733
5734 patch from Mumit Khan <khan@xraylith.wisc.edu>
5735 * libc/include/stdio.h (tempnam): Add prototype.
5736 * libc/stdio/tmpnam.c (_tempnam_r): Handle NULL prefix.
5737 (tempnam): Adhere to prototype.
5738
5739 Thu Nov 26 00:21:32 1998 Christopher Faylor <cgf@cygnus.com>
5740
5741 * Makefile.am: Add default for AR_FLAGS.
5742 * Makefile.in: Regenerate.
5743
5744 Tue Nov 24 18:48:56 1998 Geoffrey Noer <noer@cygnus.com>
5745
5746 * libc/include/time.h: move __cplusplus wrapper after includes
5747 * libc/include/sys/time.h: ditto. If Cygwin, include
5748 sys/select.h.
5749 * libc/include/sys/types.h: lose "32" in comment about Cygwin.
5750
5751 1998-11-23 Ken Raeburn <raeburn@cygnus.com>
5752
5753 * libc/time/strftime.c (strftime): Handle %y after year 2000.
5754
5755 Wed Nov 18 12:22:41 1998 Nick Clifton <nickc@cygnus.com>
5756
5757 * libc/sys/fr30/crt0.s (_start): Switch over to using int #9 as
5758 abnormnal end-of-crt0 marker.
5759
5760 Tue Nov 17 16:27:58 1998 Nick Clifton <nickc@cygnus.com>
5761
5762 * libc/sys/fr30/crt0.s: New file/directory.
5763 * libc/include/machine/setjmp.h: Add FR30 target.
5764 * libc/include/machine/ieeefp.h: Add FR30 target.
5765 * configure.host: Add FR30 target.
5766
5767 Mon Nov 16 23:15:00 1998 Ranjith Kumaran <ranjith@cygnus.com>
5768
5769 * libm/math: Files that are duplicated in common directory removed.
5770 * libm/math/fdlibm.h: Removed.
5771 * libm/math/s_cbrt.c: Removed.
5772 * libm/math/s_copysign.c: Removed.
5773 * libm/math/s_expm1.c: Removed.
5774 * libm/math/s_finite.c: Removed.
5775 * libm/math/s_ilogb.c: Removed.
5776 * libm/math/s_infinity.c: Removed.
5777 * libm/math/s_lib_ver.c: Removed.
5778 * libm/math/s_log1p.c: Removed.
5779 * libm/math/s_logb.c: Removed.
5780 * libm/math/s_matherr.c: Removed.
5781 * libm/math/s_modf.c: Removed.
5782 * libm/math/s_nan.c: Removed.
5783 * libm/math/s_nextafter.c: Removed.
5784 * libm/math/s_rint.c: Removed.
5785 * libm/math/s_scalbn.c: Removed.
5786 * libm/math/sf_cbrt.c: Removed.
5787 * libm/math/sf_copysign.c: Removed.
5788 * libm/math/sf_expm1.c: Removed.
5789 * libm/math/sf_finite.c: Removed.
5790 * libm/math/sf_ilogb.c: Removed.
5791 * libm/math/sf_infinity.c: Removed.
5792 * libm/math/sf_log1p.c: Removed.
5793 * libm/math/sf_logb.c: Removed.
5794 * libm/math/sf_modf.c: Removed.
5795 * libm/math/sf_nan.c: Removed.
5796 * libm/math/sf_nextafter.c: Removed.
5797 * libm/math/sf_rint.c: Removed.
5798 * libm/math/sf_scalbn.c: Removed.
5799 * libm/math/Makefile.am: Removed references to deleted files (above).
5800 * libm/math/Makefile.in: Regenerated.
5801 * libm/Makefile.am: Added common directory to math.
5802 * libm/Makefile.in: Regenerated.
5803
5804 Mon Nov 2 23:12:00 1998 Ranjith Kumaran <ranjith@cygnus.com>
5805
5806 * libm/mathfp: Add non-ANSI functions.
5807 * libm/mathfp/e_acosh.c acosh(): New file.
5808 * libm/mathfp/e_atanh.c atanh(): New file.
5809 * libm/mathfp/e_hypot.c hypot(): New file.
5810 * libm/mathfp/e_j0.c j0(): New file.
5811 * libm/mathfp/e_j1.c j1(): New file.
5812 * libm/mathfp/e_remainder.c remainder(): New file.
5813 * libm/mathfp/e_scalb.c scalb(): New file.
5814 * libm/mathfp/ef_acosh.c acoshf(): New file.
5815 * libm/mathfp/ef_atanh.c atanhf(): New file.
5816 * libm/mathfp/ef_hypot.c hypotf(): New file.
5817 * libm/mathfp/ef_j0.c j0f(): New file.
5818 * libm/mathfp/ef_j1.c j1f(): New file.
5819 * libm/mathfp/ef_remainder.c remainderf(): New file.
5820 * libm/mathfp/ef_scalb.c scalbf(): New file.
5821 * libm/mathfp/er_gamma.c gamma_r: New file.
5822 * libm/mathfp/er_lgamma.c lgamma_r(): New file.
5823 * libm/mathfp/erf_gamma.c gamma_rf(): New file.
5824 * libm/mathfp/erf_lgamma.c lgamma_rf(): New file.
5825 * libm/mathfp/w_cabs.c cabs(): New file.
5826 * libm/mathfp/w_drem.c drem(): New file.
5827 * libm/mathfp/w_jn.c jn(): New file.
5828 * libm/mathfp/wf_cabs.c cabsf(): New file.
5829 * libm/mathfp/wf_drem.c dremf(): New file.
5830 * libm/mathfp/wf_jn.c jnf(): New file.
5831
5832 Mon Nov 2 16:43:18 1998 Geoffrey Noer <noer@cygnus.com>
5833
5834 * libc/sys/cygwin32: remove directory and contents
5835 * libc/sys/cygwin: and add back, losing the "32".
5836 * configure.host: check for cygwin* instead of cygwin32.
5837 * acinclude.m4: ditto.
5838 * aclocal.m4: regenerate with aclocal
5839 * configure: regenerate with autoconf
5840
5841 Tue Oct 20 17:28:28 1998 Geoffrey Noer <noer@cygnus.com>
5842
5843 * libc/stdio/tmpnam.c (_tempnam_r): not enough memory allocated
5844 for length
5845
5846 Tue Oct 20 18:49:05 1998 Jeff Johnston <jjohnstn@cygnus.com>
5847
5848 * libc/include/sys/reent.h (struct _reent): Added variables _rand_next, _strtok_last,
5849 _asctime_buf, _localtime_buf and _gamma_signgam to struct reent
5850 to make rand/srand, strtok, asctime, localtime, w_gamma,
5851 w_lgamma, wf_gamma, and wf_lgamma reentrant. Included
5852 time.h to bring in struct tm definition.
5853 * libc/stdlib/rand.c (rand, srand): Don't emit functions 'rand' and 'srand' if
5854 '_REENT_ONLY' is set. Used variable '_rand_next' from struct reent.
5855 * libc/stdlib/strtok.c (strtok): Used variable '_strtok_last' from struct reent
5856 instead of static variable.
5857 * libc/stdlib/asctime.c (asctime): Used variable '_asctime_buf' from
5858 struct reent instead of static variable.
5859 * libc/stdlib/lcltime.c (localtime): Used variable '_localtime_buf' from
5860 struct reent instead of static variable.
5861 * libm/math/Makefile.am: Removed s_signgam.o.
5862 * libm/math/Makefile.in: Regenerated.
5863 * libm/math/w_gamma.c (gamma): Used variable '_gamma_signgam' from
5864 struct reent instead of global variable 'signgam'.
5865 * libm/math/w_lgamma.c (lgamma): Likewise.
5866 * libm/math/wf_gamma.c (gammaf): Likewise.
5867 * libm/math/wf_lgamma.c (lgammaf): Likewise.
5868 * libm/math/s_signgam.c: Removed.
5869 * libc/include/unctrl.h: Defined arrays __unctrl and __unctrllen
5870 to be const.
5871 * libc/misc/unctrl.c: Defined arrays __unctrl and __unctrllen
5872 to be const.
5873 * libc/reent/Makefile.am: Added dependence for impure.o on impure.c and
5874 libc/include/reent.h.
5875 * libc/reent/Makefile.in: Regenerated.
5876 * libc/stdio/vfprintf.c (_vfprintf_r): Defined arrays 'blanks' and 'zeroes'
5877 to be const.
5878 * libc/stdlib/mbtowc_r.c (_mbtowc_r): Defined arrays 'JIS_state_table' and
5879 'JIS_action_table' to be const.
5880 * libm/math/s_lib_ver.c: define variable _LIB_VERSION to be const.
5881
5882 Mon Oct 12 00:26:33 1998 Christopher Faylor <cgf@cygnus.com>
5883
5884 * acinclude.m4: $with_target_subdir should default to '.'
5885 or confusion results when configuring in same directory as sources.
5886 * Regenerate all aclocal.m4 and configure files.
5887
5888 Fri Oct 9 16:27:36 1998 Jeff Johnston <jjohnstn@cygnus.com>
5889
5890 * libc/stdlib/mallocr.c: Added 16 byte alignment support which
5891 can be set by defining MALLOC_ALIGNMENT=16. Also added support
5892 for platforms where sizeof(size_t) < sizeof(long) via
5893 SIZE_T_SMALLER_THAN_LONG macro.
5894
5895 Wed Oct 7 14:02:40 1998 Jeff Johnston <jjohnstn@cygnus.com>
5896
5897 * libc/include/time.h (CLOCKS_PER_SEC): Change CLOCKS_PER_SEC
5898 to refer to _CLOCKS_PER_SEC_ and added including <machine/time.h>
5899 which sets _CLOCKS_PER_SEC_ for selected machines.
5900 * libc/include/machine/time.h: New file.
5901
5902 Tue Oct 6 16:08:05 1998 Jeff Johnston <jjohnstn@cygnus.com>
5903
5904 * libc/syscalls/sysexecve.c: New file.
5905 * libc/syscalls/sysgettod.c: New file.
5906 * libc/syscalls/systimes.c: New file.
5907 * libc/syscalls/Makefile.am: Added new objects.
5908 * libc/syscalls/Makefile.in: Regenerated.
5909 * libc/include/_syslist.h (_execve): Moved define in file.
5910 * libc/include/reent.h: Added _execve_r declaration.
5911 * libc/Makefile.in: Regenerated.
5912 * libc/ctype/Makefile.in: Regenerated.
5913 * libc/errno/Makefile.in: Regenerated.
5914 * libc/locale/Makefile.in: Regenerated.
5915 * libc/machine/Makefile.in: Regenerated.
5916 * libc/misc/Makefile.in: Regenerated.
5917 * libc/posix/Makefile.in: Regenerated.
5918 * libc/reent/Makefile.in: Regenerated.
5919 * libc/reent/execr.c (_execve_r): Added _execve_r function.
5920 * libc/signal/Makefile.in: Regenerated.
5921 * libc/stdio/Makefile.in: Regenerated.
5922 * libc/time/Makefile.in: Regenerated.
5923 * libc/unix/Makefile.in: Regenerated.
5924 * libm/mathfp/Makefile.in: Regenerated.
5925
5926 Tue Oct 6 14:14:05 1998 Jeff Johnston <jjohnstn@cygnus.com>
5927
5928 * libc/string/Makefile.in: Regenerated.
5929 * libc/string/memchr.c (memchr): Moved code to reduce object size.
5930 * libc/string/memcpy.c (memcpy): Ditto.
5931 * libc/string/memcmp.c (memcmp): Ditto.
5932 * libc/string/memset.c (memset): Ditto.
5933 * libc/string/strchr.c (strchr): Ditto.
5934 * libc/string/strcmp.c (strcmp): Ditto.
5935 * libc/string/strcpy.c (strcpy): Ditto.
5936 * libc/string/strlen.c (strlen): Ditto.
5937
5938 Tue Oct 6 13:58:05 1998 Jeff Johnston <jjohnstn@cygnus.com>
5939
5940 * libm/acinclude.m4: Removed since newlib/acinclude.m4 can be used
5941 to generate aclocal.m4.
5942 * libm/Makefile.in: Regenerated.
5943 * libm/aclocal.m4: Regenerated.
5944 * libm/configure: Regenerated.
5945 * libm/math/Makefile.in: Regenerated.
5946 * libm/mathfp/Makefile.in: Regenerated.
5947
5948 1998-09-25 Mark Salter <msalter@cygnus.com>
5949
5950 * libc/include/machine/setjmp.h: Fixed test for mn10300 and mn10200
5951 by adding leading and trailing underscores to symbol names.
5952
5953 Tue Sep 22 15:33:41 1998 Christopher Faylor <cgf@cygnus.com>
5954
5955 * Makefile.in: Add default for AR_FLAGS.
5956
5957 Tue Sep 22 15:02:49 1998 Christopher Faylor <cgf@cygnus.com>
5958
5959 patch from ian@airs.com (Ian Taylor):
5960 * acinclude.m4: Run AC_CANONICAL_BUILD explicitly before
5961 NEWLIB_CONFIGURE so AC_CANONICAL_HOST will be run before it
5962 is needed for detecting the build machine. Required for
5963 cygwin native builds.
5964
5965 * Regenerate all aclocal.m4 and configure files.
5966
5967 Mon Sep 21 14:44:16 1998 Nick Clifton <nickc@cygnus.com>
5968
5969 * libc/sys/arm/crt0.S: Prepend a period to all local labels that
5970 used to start with LC.
5971
5972 Thu Sep 17 18:18:11 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
5973
5974 * libc/machine/sh/setjmp.S (setjmp): Handle __SH4* like __SH3E__ .
5975 (longjmp): Likewise.
5976
5977 Thu Sep 17 16:25:33 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
5978
5979 * libc/machine/sh/memset.S (memset): Move copy from r4 to r4 before
5980 the test for small number of bytes.
5981
5982 Thu Sep 10 11:40:00 1998 Ranjith Kumaran <ranjith@cygnus.com>
5983
5984 * Makefile.am: Add --enable-newlib-hw-fp check. This builds the new
5985 math library that uses floating point algorithms instead of the old
5986 libm.
5987 * Makefile.in: Regenerate with automake version 1.3b.
5988 * configure: Rebuild.
5989 * libm/Makefile.in: Regenerate with automake version 1.3b.
5990 * libm/aclocal.m4: Regenerate.
5991 * libm/configure: Rebuild.
5992 * libm/configure.in: Add newlib_hw_fp definition and mathfp directory.
5993 * libm/acinclude.m4: Define macros for configure.in.
5994 * libm/config.h.in: Generate.
5995 * libm/mathfp/Makefile.am: New file.
5996 * libm/mathfp/Makefile.in: Generate.
5997 * libm/mathfp/s_acos.c (acos): New file.
5998 * libm/mathfp/s_asin.c (asin): New file.
5999 * libm/mathfp/s_asine.c (asine): New file.
6000 * libm/mathfp/s_atan.c (atan): New file.
6001 * libm/mathfp/s_atan2.c (atan2): New file.
6002 * libm/mathfp/s_atangent.c (atangent): New file.
6003 * libm/mathfp/s_ceil.c (ceil): New file.
6004 * libm/mathfp/s_copysign.c (copysign): New file.
6005 * libm/mathfp/s_cos.c (cos): New file.
6006 * libm/mathfp/s_cosh.c (cosh): New file.
6007 * libm/mathfp/s_exp.c (exp): New file.
6008 * libm/mathfp/s_fabs.c (fabs): New file.
6009 * libm/mathfp/s_finite.c (finite): New file.
6010 * libm/mathfp/s_floor.c (floor): New file.
6011 * libm/mathfp/s_fmod.c (fmod): New file.
6012 * libm/mathfp/s_frexp.c (frexp): New file.
6013 * libm/mathfp/s_infconst.c: New file.
6014 * libm/mathfp/s_isinf (isinf).c: New file.
6015 * libm/mathfp/s_isnan.c (isnan): New file.
6016 * libm/mathfp/s_ispos.c (ispos): New file.
6017 * libm/mathfp/s_ldexp.c (ldexp): New file.
6018 * libm/mathfp/s_log.c (log): New file.
6019 * libm/mathfp/s_log10.c (log10): New file.
6020 * libm/mathfp/s_logarithm.c (logarithm): New file.
6021 * libm/mathfp/s_mathcnst.c: New file.
6022 * libm/mathfp/s_modf (modf).c: New file.
6023 * libm/mathfp/s_numtest.c (numtest): New file.
6024 * libm/mathfp/s_pow.c (pow): New file.
6025 * libm/mathfp/s_scalbn.c (scalbn): New file.
6026 * libm/mathfp/s_sin (sin).c: New file.
6027 * libm/mathfp/s_sine.c (sine): New file.
6028 * libm/mathfp/s_sineh.c (sineh): New file.
6029 * libm/mathfp/s_sinf.c (sinf): New file.
6030 * libm/mathfp/s_sinh.c (sinh): New file.
6031 * libm/mathfp/s_sqrt.c (sqrt): New file.
6032 * libm/mathfp/s_tan.c (tan): New file.
6033 * libm/mathfp/s_tanh.c (tanh): New file.
6034 * libm/mathfp/sf_acos.c (acosf): New file.
6035 * libm/mathfp/sf_asin.c (asinf): New file.
6036 * libm/mathfp/sf_asine.c (asinef): New file.
6037 * libm/mathfp/sf_atan.c (atanf): New file.
6038 * libm/mathfp/sf_atan2.c (atan2f): New file.
6039 * libm/mathfp/sf_atangent.c (atangent): New file.
6040 * libm/mathfp/sf_ceil.c (ceilf): New file.
6041 * libm/mathfp/sf_copysign.c (copysignf): New file.
6042 * libm/mathfp/sf_cos.c (cosf): New file.
6043 * libm/mathfp/sf_cosh.c (coshf): New file.
6044 * libm/mathfp/sf_exp.c (expf): New file.
6045 * libm/mathfp/sf_fabs.c (fabsf): New file.
6046 * libm/mathfp/sf_finite.c (finitef): New file.
6047 * libm/mathfp/sf_floor.c (floorf): New file.
6048 * libm/mathfp/sf_fmod.c (fmodf): New file.
6049 * libm/mathfp/sf_frexp.c (frexpf): New file.
6050 * libm/mathfp/sf_isinf.c (isinff): New file.
6051 * libm/mathfp/sf_isnan.c (isnanf): New file.
6052 * libm/mathfp/sf_ispos.c (isposf): New file.
6053 * libm/mathfp/sf_ldexp.c (ldexpf): New file.
6054 * libm/mathfp/sf_log.c (logf): New file.
6055 * libm/mathfp/sf_log10.c (log10f): New file.
6056 * libm/mathfp/sf_logarithm.c (logarithmf): New file.
6057 * libm/mathfp/sf_modf.c (modff): New file.
6058 * libm/mathfp/sf_numtest.c (numtestf): New file.
6059 * libm/mathfp/sf_pow.c (powf): New file.
6060 * libm/mathfp/sf_scalbn.c (scalbnf): New file.
6061 * libm/mathfp/sf_sin.c (sinf): New file.
6062 * libm/mathfp/sf_sine.c (sinef): New file.
6063 * libm/mathfp/sf_sineh.c (sinehf): New file.
6064 * libm/mathfp/sf_sinh.c (sinhf): New file.
6065 * libm/mathfp/sf_sqrt.c (sqrtf): New file.
6066 * libm/mathfp/sf_tan.c (tanf): New file.
6067 * libm/mathfp/sf_tanh.c (tanhf): New file.
6068 * libm/mathfp/zmath.h: New file.
6069
6070 Wed Sep 2 02:49:03 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
6071
6072 * libc/machine/sh/strcmp.S (L_char_loop): Re-load r0 at loop
6073 exit if it has been overwritten by pre-fetching in delay slot.
6074
6075 1998-09-01 Michael Meissner <meissner@cygnus.com>
6076
6077 * Makefile.am (tooldir): Add in host_alias, so that multilib
6078 libraries are installed in the directory the compiler looks in.
6079 * Makefile.in: Regenerate.
6080
6081 * libc/stdlib/Makefile.in: Regenerate with automake version 1.3b.
6082
6083 Mon Aug 31 11:39:31 1998 Jeff Johnston <jjohnstn@cygnus.com>
6084
6085 * libc/machine/mn10300/memcpy.S (_memcpy): Move alignment test
6086 ahead of test for number of bytes being moved.
6087
6088 Thu Aug 27 14:07:53 1998 Christopher Faylor <cgf@cygnus.com>
6089
6090 * libc/include/sys/unistd.h: Nothing special needed for
6091 _exit under cygwin.
6092
6093 Wed Aug 26 15:05:21 1998 Nick Clifton <nickc@cygnus.com>
6094
6095 * libc/sys/arm/syscalls.c (_sbrk): Rename '_end' to 'end' to
6096 conform to user label naming conventions.
6097
6098 Mon Aug 24 14:46:19 1998 Geoffrey Noer <noer@cygnus.com>
6099
6100 * libc/sys/cygwin32/sys/utime.h: variable names in
6101 protos should start with two leading underscores
6102 * libc/include/string.h: ditto
6103 * libc/include/sys/signal.h: ditto
6104 * libc/include/sys/stat.h: ditto
6105 * libc/include/sys/time.h: ditto
6106 * libc/include/sys/unistd.h: ditto
6107 * libc/include/ctype.h: ditto
6108 * libc/include/stdlib.h: ditto
6109 * libc/include/sys/reent.h: struct _atexit function ptr takes a
6110 void, same with _sig_func.
6111
6112 Fri Aug 21 14:44:14 1998 Jeff Johnston <jjohnstn@cygnus.com>
6113
6114 * libc/stdlib/mbtowc_r.c (_mbtowc_r): Added preprocessor checks
6115 for MB_CAPABLE to reduce code size when newlib is not configured
6116 with --enable-newlib-mb.
6117 * libc/stdlib/Makefile.am: Specified -fshort-enums when building
6118 mbtowc_r.o to minimize size.
6119 * libc/stdlib/Makefile.in: Rebuild.
6120
6121 Wed Aug 19 16:20:13 1998 Jim Wilson <wilson@cygnus.com>
6122
6123 * libc/sys/sparc64/Makefile.am (.S_r.o, .c_r.o): Change -DREENTRANT
6124 to -DREENT.
6125 * libc/sys/sparc64/Makefile.in: Rebuild.
6126
6127 Tue Aug 18 22:38:29 1998 Ian Lance Taylor <ian@cygnus.com>
6128
6129 * Makefile.am (MAKEOVERRIDES): Define.
6130 * Makefile.in: Rebuild.
6131
6132 Tue Aug 18 12:38:47 1998 Jim Wilson <wilson@cygnus.com>
6133
6134 * libc/sys/sparc64/sys/stat.h (stat): Add const.
6135
6136 Mon Aug 17 22:27:06 1998 Ian Lance Taylor <ian@cygnus.com>
6137
6138 * acinclude.m4 (NEWLIB_CONFIGURE): Use top_builddir in
6139 newlib_cflags when looking for targ-include.
6140 * */aclocal.m4, */configure: Rebuild.
6141
6142 Fri Jul 31 10:57:42 1998 Catherine Moore <clm@cygnus.com>
6143
6144 * libc/sys/arm/syscalls.c (_sbrk): Change "__end__"
6145 to "_end".
6146
6147 Wed Jul 29 00:02:01 1998 Mark Alexander <marka@cygnus.com>
6148
6149 * libc/include/sys/config.h: Define __IEEE_LITTLE_ENDIAN
6150 on SPARCs with little-endian data.
6151 * libc/include/machine/ieeefp.h: Ditto.
6152
6153 Wed Jul 22 18:00:10 1998 Ian Lance Taylor <ian@cygnus.com>
6154
6155 * acinclude.m4: Handle a relative srcdir correctly when setting
6156 newlib_cflags.
6157 * */aclocal.m4, */configure: Rebuild.
6158
6159 Wed Jul 22 17:11:33 1998 Jeff Johnston <jjohnstn@cygnus.com>
6160
6161 * libm/math/wrf_lgamma.c (lgammaf_r): Initialize exc.err to 0 and
6162 also set exc.arg1, exc.arg2 appropriately in case matherr is supplied.
6163 * libm/math/wrf_gamma.c (gammaf_r): ditto
6164 * libm/math/wr_lgamma.c (lgamma_r): ditto
6165 * libm/math/wr_gamma.c (gamma_r): ditto
6166 * libm/math/wf_sqrt.c (sqrtf): ditto
6167 * libm/math/wf_sinh.c (sinhf): ditto
6168 * libm/math/wf_scalb.c (scalbf): ditto
6169 * libm/math/wf_remainder.c (remainderf): ditto
6170 * libm/math/wf_pow.c (powf): ditto
6171 * libm/math/wf_log10.c (log10f): ditto
6172 * libm/math/wf_log.c (logf): ditto
6173 * libm/math/wf_lgamma.c (lgammaf): ditto
6174 * libm/math/wf_jn.c (jnf, ynf): ditto
6175 * libm/math/wf_j1.c (j1f, y1f): ditto
6176 * libm/math/wf_j0.c (j0f, y0f): ditto
6177 * libm/math/wf_hypot.c (hypotf): ditto
6178 * libm/math/wf_gamma.c (gammaf): ditto
6179 * libm/math/wf_fmod.c (fmodf): ditto
6180 * libm/math/wf_exp.c (expf): ditto
6181 * libm/math/wf_cosh.c (coshf): ditto
6182 * libm/math/wf_atanh.c (atanhf): ditto
6183 * libm/math/wf_atan2f.c (atan2f): ditto
6184 * libm/math/wf_asin.c (asinf): ditto
6185 * libm/math/wf_acosh.c (acoshf): ditto
6186 * libm/math/wf_acos.c (acosf): ditto
6187 * libm/math/w_sqrt.c (sqrt): ditto
6188 * libm/math/w_sinh.c (sinh): ditto
6189 * libm/math/w_scalb.c (scalb): ditto
6190 * libm/math/w_remainder.c (remainder): ditto
6191 * libm/math/w_pow.c (pow): ditto
6192 * libm/math/w_log10.c (log10): ditto
6193 * libm/math/w_log.c (log): ditto
6194 * libm/math/w_lgamma.c (lgamma): ditto
6195 * libm/math/w_jn.c (jn, yn): ditto
6196 * libm/math/w_j1.c (j1, y1): ditto
6197 * libm/math/w_j0.c (j0, y0): ditto
6198 * libm/math/w_hypot.c (hypot): ditto
6199 * libm/math/w_gamma.c (gamma): ditto
6200 * libm/math/w_fmod.c (fmod): ditto
6201 * libm/math/w_exp.c (exp): ditto
6202 * libm/math/w_cosh.c (cosh): ditto
6203 * libm/math/w_atanh.c (atanh): ditto
6204 * libm/math/w_atan2f.c (atan2): ditto
6205 * libm/math/w_asin.c (asin): ditto
6206 * libm/math/w_acosh.c (acosh): ditto
6207 * libm/math/w_acos.c (acos): ditto
6208
6209 Tue Jul 21 12:34:54 1998 Ian Lance Taylor <ian@cygnus.com>
6210
6211 * libm/math/Makefile.am (src): Add w_cabs.c and w_drem.c.
6212 (fsrc): Add wf_cabs.c and wf_drem.c.
6213 * libm/math/Makefile.in: Rebuild.
6214
6215 * Makefile.am (AM_MAKEFLAGS): Add CFLAGS_FOR_BUILD. Remove some
6216 unused directory variables. Remove duplicate CFLAGS.
6217 * Makefile.in: Rebuild.
6218
6219 * doc/Makefile.am ($(MKDOC)): Don't use $(CFLAGS) when building
6220 with $(CC_FOR_BUILD).
6221 (makedoc.o): Likewise.
6222 * doc/Makefile.in: Rebuild.
6223
6224 * libc/sys/cygwin32/Makefile.am (EXTRA_LIBRARIES): Define, to
6225 force a definition of COMPILE.
6226 (libfoo_a_SOURCES): Define.
6227 * libc/sys/cygwin32/Makefile.in: Rebuild.
6228 * libc/sys/tic80/Makefile.am (EXTRA_LIBRARIES): Define, to
6229 force a definition of COMPILE.
6230 (libfoo_a_SOURCES): Define.
6231 * libc/sys/tic80/Makefile.in: Rebuild.
6232
6233 Mon Jul 20 20:49:24 1998 Christopher Faylor <cgf@cygnus.com>
6234
6235 * libc/include/sys/fcntl.h: Add O_NOINHERIT, Win32-specific
6236 flag.
6237
6238 Fri Jul 17 16:13:16 1998 Ian Lance Taylor <ian@cygnus.com>
6239
6240 * Build using autoconf and automake. Added many Makefile.am and
6241 configure.in files, plus generated files. Old configure.in files
6242 and all old Makefile.in files completely replaced. Removed
6243 host/any. Added acinclude.m4 and configure.host.
6244
6245 Sat Jul 11 18:14:49 1998 Felix Lee <flee@cygnus.com>
6246
6247 * libc/stdio/vfprintf.c: enable long long support, sometimes.
6248 * configure.in (*-*-cygwin32): add -DWANT_PRINTF_LONG_LONG.
6249
6250 Tue Jul 7 01:51:55 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
6251
6252 * libc/machine/sh/strcmp.S, libc/machine/sh/strcpy.S: New files.
6253 * libc/machine/sh/Makefile.in: Add rules for new files.
6254
6255 Tue Jul 7 01:40:55 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
6256
6257 * libc/machine/sh/asm.h (SL, DELAYED_BRANCHES): Define.
6258 * libc/machine/sh/memset.S (memset): Remove uses of dt; shorten code.
6259 * libc/machine/sh/memcpy.S (SL, DELAYED_BRANCHES): Don't define.
6260
6261 Thu Jul 2 10:33:16 1998 Nick Clifton <nickc@cygnus.com>
6262
6263 * libc/sys/arm/syscalls.c (_exit): Add comment, noting that exit
6264 code is ignored.
6265
6266 Wed Jun 24 13:56:54 1998 Jeff Johnston <jjohnstn@cygnus.com>
6267
6268 * libc/stdio/tmpnam.c (_tmpnam_r): Changed routine to use
6269 internal static buffer when s is NULL, as prescribed by ANSI.
6270
6271 1998-06-22 Vladimir N. Makarov <vmakarov@cygnus.com>
6272
6273 * libc/sys/h8300hms/Makefile.in (OFILES): malloc.o has been
6274 removed.
6275 * libc/sys/h8300hms/malloc.c: has been removed. Now malloc.c from
6276 libc/stdlib will be used for h8300hms.
6277
6278 Thu Jun 18 16:56:05 1998 Jeff Johnston <jjohnstn@cygnus.com>
6279
6280 * libc/machine/mn10300/strlen.S (_strlen): New optimized assembler
6281 version that can be built either for speed or size.
6282 * libc/machine/mn10300/memset.S (_memset): ditto
6283 * libc/machine/mn10300/memchr.S (_memchr): ditto
6284 * libc/machine/mn10300/memcpy.S (_memcpy): ditto
6285 * libc/machine/mn10300/memcmp.S (_memcmp): ditto
6286 * libc/machine/mn10300/strchr.S (_strchr): ditto
6287 * libc/machine/mn10300/strcmp.S (_strcmp): ditto
6288 * libc/machine/mn10300/strcpy.S (_strcpy): ditto
6289 * libc/machine/mn10300/Makefile.in: Added entries for
6290 memchr.o, memcmp.o, memcpy.o, memset.o, strchr.o,
6291 strcmp.o, strcpy.o, and strlen.o.
6292
6293 Wed Jun 17 12:50:26 1998 Mark Alexander <marka@cygnus.com>
6294
6295 * configure.in: Don't use libc/sys/sysmec for MN10200; it's
6296 been replaced with libgloss/mn10200.
6297
6298 Fri Jun 12 14:34:39 1998 Michael Meissner <meissner@cygnus.com>
6299
6300 * libc/string/strchr.c (strchr): Make s a constant pointer to
6301 avoid warning.
6302
6303 Tue Jun 9 16:29:30 1998 Jason Molenda (crash@bugshack.cygnus.com)
6304
6305 * configure.in (target == arm* or thumb*): Define ARM_RDI_MONITOR
6306 instead of ARM_RDP_MONITOR (sys/libc/arm/crt0.S to assume Angel
6307 board SWIs instead of Demon board SWIs).
6308
6309 Thu Jun 4 12:16:46 1998 Michael Meissner <meissner@cygnus.com>
6310
6311 * libc/string/strncat.c (strncat): Make -Os act the same as
6312 PREFER_SIZE_OVER_SPEED being defined.
6313
6314 Wed Jun 3 17:52:33 1998 Michael Meissner <meissner@cygnus.com>
6315
6316 * libc/string/memchr.c (memchr): Make -Os act the same as
6317 PREFER_SIZE_OVER_SPEED being defined.
6318 * libc/string/memcmp.c (memcmp): Ditto.
6319 * libc/string/memcpy.c (memcpy): Ditto.
6320 * libc/string/memset.c (memset): Ditto.
6321 * libc/string/strcat.c (strcat): Ditto.
6322 * libc/string/strchr.c (strchr): Ditto.
6323 * libc/string/strcmp.c (strcmp): Ditto.
6324 * libc/string/strcpy.c (strcpy): Ditto.
6325 * libc/string/strlen.c (strlen): Ditto.
6326 * libc/string/strncat.c (strncat): Ditto.
6327 * libc/string/strncmp.c (strncmp): Ditto.
6328 * libc/string/strncpy.c (strncpy): Ditto.
6329
6330 Mon Jun 1 15:25:07 1998 Geoffrey Noer <noer@cygnus.com>
6331
6332 * libc/include/sys/itimer.h: remove
6333 * libc/include/sys/time.h: itimer stuff should be here
6334
6335 Mon Jun 1 16:31:29 1998 Jeff Johnston <jjohnstn@cygnus.com>
6336
6337 * libc/stdio/vfprintf.c (cvt): Changed code to look at sign
6338 bit instead of comparing to 0 so -0.0 can be printed correctly.
6339
6340 Sat May 30 09:33:51 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
6341
6342 * libc/stdlib/mprec.c (b2d): Inilialize d in non-VAX case too.
6343
6344 Fri May 29 22:25:10 1998 Geoffrey Noer <noer@cygnus.com>
6345
6346 * libc/include/sys/unistd.h: fix sync() proto
6347 * libc/include/sys/fcntl.h: remove _close which is already
6348 defined in unistd.h.
6349 * libc/include/sys/time.h: add getitimer proto
6350
6351 Fri May 29 16:10:28 1998 Geoffrey Noer <noer@cygnus.com>
6352
6353 * libc/string/strchr.c: convert arg to unsigned char
6354 * libc/include/stdlib.h: add protos for random, srandom
6355 * libc/include/sys/stat.h: add lstat proto
6356 * libc/include/sys/time.h: add setitimer proto
6357 * libc/include/sys/unistd.h: add readlink, symlink protos
6358 * libc/include/process.h: instead of including windows.h and using
6359 HANDLEs in sexec protos, just use void *s. Need to include
6360 sys/types.h.
6361
6362 Fri May 29 03:04:29 1998 Geoffrey Noer <noer@cygnus.com>
6363
6364 * libc/include/sys/fcntl.h: add _close proto for Cygwin32
6365
6366 Thu May 28 16:34:21 1998 Geoffrey Noer <noer@cygnus.com>
6367
6368 * libc/include/process.h: add secure exec protos
6369
6370 Wed May 27 13:54:51 1998 Jeffrey A Law (law@cygnus.com)
6371
6372 * libc/stdlib/dtoa.c (_dtoa_r): Use "double_union" for variables
6373 which are accessed as both doubles and integers.
6374 * libc/stdlib/mprec.c (ulp, b2d, ratio): Likewise.
6375 * libc/stdlib/strtod.c (_strtod_r): Likewise.
6376 * libc/stdlib/mprec.h: Add "union double_union" and change
6377 word0/word1 macros to use it.
6378
6379 Tue May 26 18:04:21 1998 Geoffrey Noer <noer@cygnus.com>
6380
6381 * libc/include/sys/signal.h: add __cplusplus wrapper
6382
6383 Tue May 26 15:10:22 1998 Geoffrey Noer <noer@cygnus.com>
6384
6385 * libc/include/sys/utime.h: new generic file that gets replaced by
6386 libc/sys/SYSDIR/sys/utime.h on systems that support the utime
6387 function.
6388 * sys/cygwin32/sys/utime.h: use _EXFUN in utime proto
6389 * libc/include/time.h: remove duplicate utime proto
6390 * libc/include/utime.h: add comment
6391
6392 Sun May 24 23:56:20 1998 Christopher Faylor <cgf@cygnus.com>
6393
6394 * libc/include/sys/time.h: Add missing include to
6395 allow use of _EXFUN. Remove times function that is
6396 already defined in times.h.
6397
6398 Sun May 24 01:32:14 1998 Christopher Faylor <cgf@cygnus.com>
6399
6400 * libc/include/time.h: Fix typo in tzset.
6401
6402 Fri May 22 17:00:48 1998 Geoffrey Noer <noer@cygnus.com>
6403
6404 * libc/include/sys/time.h: add missing Cygwin32 function protos
6405 * libc/include/sys/unistd.h: ditto
6406 * libc/include/time.h: ditto
6407
6408 Wed May 20 20:35:11 1998 Geoffrey Noer <noer@cygnus.com>
6409
6410 * libc/sys/cygwin32/sys/param.h: add protected NULL def, remove
6411 FIXME.
6412 * libc/include/sys/types.h: add a new __MS_types__ section
6413 to define vm_offset_t, vm_size_t, int32_t et al, register_t,
6414 __BIT_TYPES_DEFINED__.
6415
6416 Wed May 20 18:49:21 1998 Geoffrey Noer <noer@cygnus.com>
6417
6418 * libc/sys/cygwin32/sys/param.h: move here from winsup/include/sys
6419 since it overrides the one in libc/include/sys. Also, start
6420 including types.h.
6421
6422 Wed May 20 14:45:40 1998 Geoffrey Noer <noer@cygnus.com>
6423
6424 * libm/math/Makefile.in: add s_signgam.o to obj list
6425
6426 Tue May 19 11:57:11 1998 Jeff Johnston <jjohnstn@cygnus.com>
6427
6428 * libc/include/sys/reent.h (_REENT_INIT): Initialize current locale to "C".
6429
6430 Mon May 18 22:36:12 1998 Christopher Faylor <cgf@cygnus.com>
6431
6432 * libc/include/sys/signal.h: cygwin32 exports sig{empty,add}set,
6433 so don't use defines.
6434
6435 Mon May 18 19:01:02 1998 Michael Meissner <meissner@cygnus.com>
6436
6437 * libc/sys/d10v/crt0.S: Use correct stab for 16-bit ints.
6438
6439 Sun May 17 18:40:32 1998 Frank Ch. Eigler <fche@cygnus.com>
6440
6441 * libc/stdlib/mbtowc_r.c (_mbtowc_r): Accept a NULL
6442 _current_locale as default locale.
6443
6444 Sat May 16 21:59:59 1998 Bob Manson <manson@charmed.cygnus.com>
6445
6446 * libc/stdlib/mallocr.c (mALLOc): Add explicit tests for
6447 insufficient space in a chunk.
6448
6449 Tue May 12 14:41:01 1998 Jeff Johnston <jjohnstn@cygnus.com>
6450
6451 * configure.in (links): Added check for --enable-newlib-mb configure
6452 option which defines the MB_CAPABLE macro.
6453 * libc/locale/locale.c (_setlocale_r): Added support for setting
6454 LC_CTYPE to "C-JIS", "C-SJIS" or "C-EUCJP", when MB_CAPABLE is
6455 defined.
6456 * libc/stdlib/mbtowc_r.c (_mbtowc_r): New function _mbtowc_r that
6457 implements mbtowc() with multibyte support for JIS, SJIS, and EUC-JP.
6458 * libc/stdlib/wctomb_r.c (_wctomb_r): New function _wctomb_r that
6459 implements wctomb() with multibyte support for JIS, SJIS, and EUC-JP.
6460 * libc/stdlib/mbstowcs_r.c (_mbstowcs_r): New function _mbstowcs_r that
6461 implements mbstowcs() with multibyte support for JIS, SJIS, and EUC-JP.
6462 * libc/stdlib/wcstombs_r.c (_wcstombs_r): New function _wcstomb_r that implements
6463 wcstombs() with multibyte support for JIS, SJIS, and EUC-JP.
6464 * libc/stdlib/Makefile.in: Added new multibyte
6465 routines: _mbtowc_r(), _wctomb_r(), _mbstowcs_r(), and _wcstombs_r().
6466 * libc/include/stdlib.h: Added declarations of _mbtowc_r(), _wctomb_r(),
6467 _mbstowcs_r(), and _wcstombs_r().
6468 * libc/stdlib/mbctype.h: New internal header file that contains macros to test
6469 for JIS, SJIS, and EUC-JP characters.
6470 * libc/stdlib/mblen.c (mblen): Added code to call _mbtowc_r() if
6471 MB_CAPABLE defined.
6472 * libc/stdlib/mbtowc.c (mbtowc): Added code to call _mbtowc_r() if
6473 MB_CAPABLE defined.
6474 * libc/stdlib/wctomb.c (wctomb): Added code to call _wctomb_r() if
6475 MB_CAPABLE defined.
6476 * libc/stdlib/mbstowcs.c (mbstowcs): Added code to call _mbstowcs_r()
6477 if MB_CAPABLE defined.
6478 * libc/stdlib/wcstombs.c (wcstombs): Added code to call _wcstombs_r()
6479 if MB_CAPABLE defined.
6480 * libc/stdio/vfscanf.c (__svfscanf): Added multibyte tolerance
6481 to the format string processing when MB_CAPABLE.
6482 * libc/stdio/vfprintf.c (_VFPRINTF_R): Changed mbtowc() call to
6483 call _mbtowc_r().
6484
6485 Tue May 5 16:07:23 1998 Nick Clifton <nickc@cygnus.com>
6486
6487 The following modifications are courtesy of Anthony Thompson,
6488 athompson@cambridge.arm.com:
6489 * libc/sys/arm/syscalls.c: Initialise and track stdin/out/err for
6490 boith RDI and RDP monitors.
6491 * libc/sys/arm/crt0.S: Call initialise_monitor_handles() for both
6492 RDI and RDP monitors.
6493
6494 Wed Apr 29 15:22:15 1998 Jeff Johnston <jjohnstn@cygnus.com>
6495
6496 * configure.in (links): Added -DHAVE_GETTIMEOFDAY for arm and thumb.
6497 * libc/sys/arm/syscalls.c (_gettimeofday _times): Added functions.
6498 (_swiopen): Fixed open flags to treat write with append as just append.
6499 (_swilseek): Fixed lseek support to properly handle offsets from SEEK_END.
6500 * libc/sys/arm/sys/param.h: New file to override param.h for ARM.
6501
6502 Fri Apr 24 18:00:09 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
6503
6504 * libc/machine/sh/memcpy.S (L_odddst, big endian version):
6505 When needing to transfer an initial 2-byte-word, store as
6506 two single bytes.
6507
6508 Wed Apr 22 17:56:03 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
6509
6510 * libc/sys/sh/crt0.S (start): Handle __SH4_SINGLE_ONLY__ like
6511 __SH3E__ .
6512 * libc/machine/sh/memcpy.S (DELAYED_BRANCHES, SL): Likewise.
6513 * libc/include/machine/ieeefp.h (_DOUBLE_IS_32BITS): Likewise.
6514
6515 Wed Apr 22 12:28:03 1998 Michael Meissner <meissner@cygnus.com>
6516
6517 * configure.in (target_cflags): If --enable-target-optspace, use
6518 -Os to compile newlib rather than -O2. Default to using -Os for
6519 d10v, d30v and m32r if --{enable,disable}-target-optspace is not
6520 used.
6521
6522 Tue Apr 21 23:13:34 1998 Geoffrey Noer <noer@cygnus.com>
6523
6524 * libc/include/machine/setjmp.h: change sigsetjmp and
6525 siglongjmp definitions to use an array instead of a struct
6526 for __CYGWIN32__
6527
6528 Tue Apr 14 11:47:47 1998 Doug Evans <devans@canuck.cygnus.com>
6529
6530 * libc/reent/impure.c (__ATTRIBUTE_IMPURE_DATA__): Fix spelling.
6531
6532 Mon Apr 6 15:05:08 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
6533
6534 * libc/string/strxfrm.c: fix to get correct return value
6535
6536 Wed Apr 1 16:09:05 1998 Nick Clifton <nickc@cygnus.com>
6537
6538 * libc/sys/arm/crt0.S: Set top of RAM to be 0x800000 for PE
6539 builds. Make mode change labels global so that they will be seen
6540 by the debugger.
6541
6542 Wed Mar 18 09:45:10 1998 Nick Clifton <nickc@cygnus.com>
6543
6544 * configure.in (links): Do not use ARM debiugging protocols for PE
6545 builds.
6546
6547 * libc/sys/arm/syscalls.c (_sbrk): Add "_sbrk: " to error
6548 message.
6549
6550 Fri Mar 13 11:24:34 1998 Jeff Johnston <jjohnstn@cygnus.com>
6551
6552 * libc/stdio/findfp.c (__sinit): Made stdout default to
6553 line buffered mode as defined by ANSI.
6554
6555 Tue Mar 10 11:41:26 1997 Bob Manson <manson@charmed.cygnus.com>
6556
6557 * libc/include/sys/itimer.h: New file.
6558
6559 * libc/signal/signal.c (__sigtramp_r,__sigtramp): New functions.
6560
6561 Mon Mar 9 14:19:26 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
6562
6563 * libc/machine/sh/memcpy.S: (_memcpy): Fix for execute/memcpy-1.c
6564 failure.
6565
6566 Fri Feb 27 13:56:10 1998 Michael Meissner <meissner@cygnus.com>
6567
6568 * libc/machine/d30v/setjmp.S (longjmp): Fix order of parallel
6569 insns.
6570
6571 Wed Feb 25 09:29:54 1998 Nick Clifton <nickc@cygnus.com>
6572
6573 * libc/sys/arm/syscalls.c (_open): Add varags to conform to prototype.
6574
6575 Tue Feb 24 18:00:13 1998 Michael Meissner <meissner@cygnus.com>
6576
6577 * libc/machine/d30v/{setjmp.S,Makefile.in}: New files for D30V
6578 support.
6579
6580 * libc/include/machine/setjmp.h: Add D30V support.
6581
6582 * configure.in (d30v-*): Add d30v machine directory.
6583
6584 Mon Feb 23 09:32:58 1998 Mark Alexander <marka@cygnus.com>
6585
6586 * configure.in: Don't use libc/sys/sysmec for MN10300; it's
6587 been replaced with libgloss/mn10300.
6588
6589 Sat Feb 21 17:44:43 1998 Geoffrey Noer <noer@cygnus.com>
6590
6591 * libc/stdlib/mallocr.c: remove __malloc_copy routine now that
6592 it is no longer needed.
6593
6594 Thu Feb 19 16:15:10 1998 Geoffrey Noer <noer@cygnus.com>
6595
6596 * libc/include/sys/signal.h: add sigpause proto for Cygwin32
6597
6598 Wed Feb 18 23:51:08 1998 Geoffrey Noer <noer@cygnus.com>
6599
6600 * libc/stdio/fdopen.c (fdopen): Make all writes go to the end of
6601 the file when O_APPEND is set, wherever the EOF happens to be at
6602 that time.
6603
6604 Wed Feb 18 23:25:02 1998 Geoffrey Noer <noer@cygnus.com>
6605
6606 patch from cgf@bbc.com (Christopher Faylor):
6607 * libc/stdio/freopen.c (freopen): Conform to standard UNIX
6608 convention of closing fp prior to attempting to open the file
6609 argument. This allows correct operation when reopening
6610 stdin/stdout/stderr. Replaces last freopen.c patch.
6611
6612 Wed Feb 18 16:27:40 1998 Geoffrey Noer <noer@cygnus.com>
6613
6614 patch from cgf@bbc.com (Christopher Faylor):
6615 * libc/stdio/freopen.c: freopen was not preserving the fd
6616 of the stream being operated on. This confuses programs that
6617 expect that the handles for stdout and stderr will be 1 and 2.
6618
6619 Mon Feb 16 23:34:07 1998 Andrew Cagney <cagney@b1.cygnus.com>
6620
6621 * libc/sys/d10v/crt0.S (_start): Set PSW{SW} - select SPU.
6622
6623 Thu Feb 12 15:09:20 1998 Ranjith Kumaran <ranjith@cygnus.com>
6624
6625 * libc/sys/go32/longjmp.S: Fix longjmp to not return 0.
6626
6627 Wed Feb 11 17:50:45 1998 Jeff Johnston <jjohnstn@cygnus.com>
6628
6629 * libc/machine/powerpc/setjmp.S (setjmp, longjmp): Alignment code
6630 altered to not use a branch. Also added hint that last
6631 bclr in longjmp will likely result in branch.
6632
6633
6634 Mon Feb 9 03:44:02 1998 Geoffrey Noer <noer@cygnus.com>
6635
6636 * libc/sys/cygwin32/crt0.c: add missing args to main() extern
6637
6638 Fri Feb 6 16:32:32 1998 Nick Clifton <nickc@cygnus.com>
6639
6640 * libc/sys/sysnecv850/crt0.S (_start): Initialise _ctbp even for
6641 v850 builds.
6642
6643 * configure.in: Add -msmall-sld to target_cflags for v850 builds.
6644
6645 Wed Feb 4 16:56:20 1998 Jeff Johnston <jjohnstn@cygnus.com>
6646
6647 * libc/machine/powerpc/setjmp.S (longjmp): Fixed code
6648 that loads FR14 to specify offset of 8 rather than 4
6649 so it loads from offset 96 (where setjmp stored it).
6650
6651 Tue Feb 3 18:08:34 1998 Jeff Johnston <jjohnstn@cygnus.com>
6652
6653 * libc/machine/sh/memcpy.S: (_memcpy): Update to
6654 latest version supplied by customer.
6655 * libc/machine/sh/memset.S (_memset): Ditto.
6656
6657 Mon Feb 2 16:20:39 1998 Nick Clifton <nickc@cygnus.com>
6658
6659 * libc/sys/sysnecv850/Makefile.in (OFILES): Add link.o (for
6660 PR14730).
6661
6662 Mon Feb 2 15:13:26 1998 Geoffrey Noer <noer@cygnus.com>
6663
6664 * libc/include/string.h: remove redefinition of ffs
6665
6666 Wed Jan 28 13:30:14 1998 Geoffrey Noer <noer@cygnus.com>
6667
6668 * libc/include/sys/signal.h: include _ansi.h so _EXFUN is
6669 defined
6670
6671 Wed Jan 28 10:38:34 1998 Jeff Johnston <jjohnstn@cygnus.com>
6672
6673 * libc/machine/tic80/setjmp.S: Adding _setjmp to allow
6674 TI Libraries to link to libc.a
6675
6676 Sat Jan 24 10:15:56 1998 Michael Meissner <meissner@cygnus.com>
6677
6678 * libc/include/sys/fcntl.h (_open,_fcntl): Add prototypes.
6679 * libc/include/sys/stat.h (_{,f}stat): Ditto.
6680 * libc/include/sys/wait.h (_wait): Ditto.
6681 * libc/include/sys/unistd.h (_close,_fork,_getpid): Ditto.
6682 (_link,_lseek,_read,_sbrk,_unlink,_write): Ditto.
6683
6684 Fri Jan 23 11:32:10 1998 Michael Meissner <meissner@cygnus.com>
6685
6686 * libc/machine/d10v/setjmp.S: Change to new ABI. Add simple
6687 minded stabs so function name shows up when running the simulator
6688 with -t.
6689 * libc/sys/d10v/{crt0,trap}.S: Ditto.
6690
6691 Thu Jan 22 15:57:14 1998 Fred Fish <fnf@cygnus.com>
6692
6693 * libc/sys/d10v/trap.S: Change syscalls to use trap 15.
6694 * libc/sys/d10v/crt0.S: Use R6 where we used to use R2.
6695 Use R5 where we used to use R3.
6696
6697 Wed Jan 21 14:22:23 1998 Bill Moyer <billm@cygnus.com>
6698
6699 * libc/stdlib/getopt.c (getopt): replaced __progname
6700 with nargv[0] to improve portability to imbedded systems.
6701
6702 Thu Jan 15 12:32:38 1998 Nick Clifton <nickc@cygnus.com>
6703
6704 * libc/sys/arm/syscalls.c (initialise_angel_handles): Applied
6705 patch supplied by Tont.Thompson@arm.com to fix the creation of the
6706 stdout file.
6707
6708 Wed Jan 14 13:00:19 1998 Ian Lance Taylor <ian@cygnus.com>
6709
6710 * libc/stdio/tmpnam.c (worker): Generate a different file name
6711 each time.
6712
6713 * libc/posix/popen.c (popen): If __CYGWIN32__, and execing /bin/sh
6714 fails, try an execlp for sh.
6715
6716 * host/any (INCLUDES): If target_os is cygwin32, then add a -I
6717 option for the winsup include directory.
6718
6719 Wed Jan 7 17:02:58 1998 Nick Clifton <nickc@cygnus.com>
6720
6721 * libc/sys/arm/syscalls.c: Applied patches for Angel based remote
6722 debugging interface from Tony.Thompson@arm.com.
6723
6724 * libc/sys/arm/crt0.S (_mainCRTStartup): ditto.
6725 * libc/sys/arm/swi.h: ditto.
6726
6727 Tue Jan 6 14:15:10 1998 Geoffrey Noer <noer@cygnus.com>
6728
6729 * libc/sys/cygwin32/sys/dirent.h: add __d_dirhash field to
6730 DIR struct used for readdir hashes.
6731
6732 Thu Jan 1 11:22:22 1998 Jeffrey A Law (law@cygnus.com)
6733
6734 * libc/string/strchr.c: Use "unsigned chars" as necessary.
6735
6736 Wed Dec 31 04:25:30 1997 Jeffrey A Law (law@cygnus.com)
6737
6738 * libc/stdlib/mallocr.c (idx2binblock): Don't lose on 16bit
6739 integer targets.
6740
6741 Sat Dec 13 15:11:06 1997 Ian Lance Taylor <ian@cygnus.com>
6742
6743 * libc/stdlib/mallocr.c (__malloc_copy): New function, compiled if
6744 INTERNAL_NEWLIB and __CYGWIN32__ and DEFINE_MALLOC.
6745 * libc/include/malloc.h: Add extern "C" if __cplusplus.
6746 (__malloc_copy): Declare.
6747
6748 Wed Dec 10 12:15:54 1997 Ian Lance Taylor <ian@cygnus.com>
6749
6750 * libc/stdlib/mallocr.c: If INTERNAL_NEWLIB, include
6751 <sys/config.h>.
6752 (POINTER_UINT): Define.
6753 (DEFAULT_TRIM_THRESHOLD): Mark constants as long.
6754 (MALLOC_ALIGNMENT): Don't define if already defined.
6755 (malloc_extend_top): Cast pointers to POINTER_UINT, not unsigned
6756 long.
6757
6758 Tue Dec 9 19:23:42 1997 Michael Meissner <meissner@cygnus.com>
6759
6760 * libc/string/memset.c (memset): Fiddle with code so that the long
6761 value being stored is not a stack value. Unroll storing longs 4
6762 times.
6763
6764 Tue Dec 9 14:13:18 1997 Jeff Johnston <jjohnstn@cygnus.com>
6765
6766 * Reduce code size for libm modules.
6767 * libm/math/w_sqrt.c (sqrt): Remove call to kernel_standard
6768 and simply move code into sqrt.
6769 * libm/math/wrf_lgamma.c (lgammaf_r): Likewise.
6770 * libm/math/wr_lgamma.c (lgamma_r): Likewise.
6771 * libm/math/wrf_gamma.c (gammaf_r): Likewise.
6772 * libm/math/wr_gamma.c (gamma_r): Likewise.
6773 * libm/math/wf_sinh.c (sinfh): Likewise.
6774 * libm/math/w_sinh.c (sinh): Likewise.
6775 * libm/math/wf_scalb.c (scalbf): Likewise.
6776 * libm/math/w_scalb.c (scalb): Likewise.
6777 * libm/math/wf_remainder.c (remainderf): Likewise.
6778 * libm/math/w_remainder.c (remainder): Likewise.
6779 * libm/math/wf_pow.c (powf): Likewise.
6780 * libm/math/w_pow.c (pow): Likewise.
6781 * libm/math/wf_log10.c (log10f): Likewise.
6782 * libm/math/w_log10.c (log10): Likewise.
6783 * libm/math/wf_log.c (logf): Likewise.
6784 * libm/math/w_log.c (log): Likewise.
6785 * libm/math/w_lgamma.c (lgamma): Likewise.
6786 * libm/math/wf_lgamma.c (lgammaf): Likewise.
6787 * libm/math/wf_jn.c (jnf): Likewise.
6788 * libm/math/w_jn.c (jn): Likewise.
6789 * libm/math/wf_j1.c (j1f): Likewise.
6790 * libm/math/w_j1.c (j1): Likewise.
6791 * libm/math/wf_j0.c (j0f): Likewise.
6792 * libm/math/w_j0.c (j0): Likewise.
6793 * libm/math/wf_hypot.c (hypotf): Likewise.
6794 * libm/math/w_hypot.c (hypot): Likewise.
6795 * libm/math/wf_gamma.c (gammaf): Likewise.
6796 * libm/math/w_gamma.c (gamma): Likewise.
6797 * libm/math/wf_fmod.c (fmodf): Likewise.
6798 * libm/math/w_fmod.c (fmod): Likewise.
6799 * libm/math/wf_exp.c (expf): Likewise.
6800 * libm/math/w_exp.c (exp): Likewise.
6801 * libm/math/wf_cosh.c (coshf): Likewise.
6802 * libm/math/w_cosh.c (cosh): Likewise.
6803 * libm/math/wf_atanh.c (atanhf): Likewise.
6804 * libm/math/w_atanh.c (atanh): Likewise.
6805 * libm/math/wf_atan2.c (atan2f): Likewise.
6806 * libm/math/w_atan2.c (atan2): Likewise.
6807 * libm/math/wf_asin.c (asinf): Likewise.
6808 * libm/math/w_asin.c (asin): Likewise.
6809 * libm/math/wf_acosh.c (acoshf): Likewise.
6810 * libm/math/w_acosh.c (acosh): Likewise.
6811 * libm/math/wf_acos.c (asocf): Likewise.
6812 * libm/math/w_acos.c (acos): Likewise.
6813 * libm/math/wf_sqrt.c (sqrtf): Likewise.
6814 * libm/math/k_standard.c (_k_standard): Don't require SVID behavior
6815 for embedded systems.
6816
6817 Mon Dec 8 12:12:58 1997 Ian Lance Taylor <ian@cygnus.com>
6818
6819 * libc/stdlib/mallocr.c (malloc_extend_top): Add patch from Doug
6820 Lea in case of a foreign sbrk.
6821
6822 Fri Dec 5 23:27:28 1997 Ian Lance Taylor <ian@cygnus.com>
6823
6824 Incorporate Doug Lea's malloc:
6825 * libc/stdlib/mallocr.c: Completely replaced.
6826 * libc/stdlib/malloc.c: Document malloc_usable_size and memalign.
6827 (realloc): Remove.
6828 * libc/stdlib/calloc.c (calloc): Just call _calloc_r.
6829 * libc/stdlib/mstats.c: Document mallinfo, malloc_stats, and
6830 mallopt.
6831 (mallinfo, malloc_stats, mallopt): New functions.
6832 (_mstats_r): Just call _malloc_stats_r.
6833 * libc/stdlib/malign.c: New file.
6834 * libc/stdlib/mlock.c: New file.
6835 * libc/stdlib/msize.c: New file.
6836 * libc/stdlib/mtrim.c: New file.
6837 * libc/stdlib/realloc.c: New file.
6838 * libc/stdlib/valloc.c: New file.
6839 * libc/stdlib/malloc.h: Remove.
6840 * libc/stdlib/callocr.c: Remove.
6841 * libc/stdlib/Makefile.in (OFILES): Add cfreer.o, freer.o,
6842 malign.o, malignr.o, mallinfor.o, malloptr.o, mallstatsr.o,
6843 mlock.o, msize.o, msizer.o, mtrim.o, pvallocr.o, realloc.o,
6844 reallocr.o, valloc.o, vallocr.o.
6845 (CHEWOUT_FILES): Add mlock.def, mstats.def.
6846 (MALLOC_CFLAGS): New variable.
6847 (mallocr.o): New target, build from mallocr.c.
6848 (freer.o, reallocr.o, callocr.o, cfreer.o, malignr.o): Likewise.
6849 (vallocr.o, pvallocr.o, mallinfor.o, mallstatsr.o): Likewise.
6850 (msizer.o, malloptr.o): Likewise.
6851 (malign.o, mlock.o, msize.o, mtrim.o, realloc.o): New targets.
6852 (valloc.o): New target.
6853 * libc/stdlib/stdlib.tex: Include mlock.def and mstats.def.
6854 * libc/include/malloc.h: Declare struct mallinfo, and new
6855 routines.
6856 * libc/include/stdlib.h (cfree): Correct declaration.
6857
6858 Tue Dec 2 10:12:16 1997 Nick Clifton <nickc@cygnus.com>
6859
6860 * libc/include/machine/setjmp.h: Add support for Thumb target.
6861
6862 * libc/include/machine/ieeefp.h: Add support for Thumb target.
6863
6864 * configure.in (links): Add support for Thumb target.
6865
6866 Wed Nov 26 09:56:17 1997 Nick Clifton <nickc@cygnus.com>
6867
6868 * libc/sys/arm/setjmp.S: Updated with version from branch.
6869
6870 Thu Nov 20 01:21:43 1997 Geoffrey Noer <noer@cygnus.com>
6871
6872 * libc/include/stdio.h: add POSIX-required define L_ctermid
6873 for ctermid
6874
6875 Wed Nov 19 16:11:40 1997 Michael Meissner <meissner@cygnus.com>
6876
6877 * configure.in (d30v-*-*): Define ABORT_MESSAGE, SMALL_MEMORY, in
6878 addition to MISSING_SYSCALL_NAMES.
6879
6880 Mon Nov 17 20:05:05 1997 J"orn Rennecke <amylaar@cygnus.co.uk>
6881
6882 * libc/include/sys/config.h: (UINT_MAX, for D10V): Make unsigned.
6883
6884 Mon Nov 10 22:26:55 1997 Geoffrey Noer <noer@cygnus.com>
6885
6886 * libc/include/string.h: change strsignal proto to return
6887 a char *. This eliminates compile problems in gdb resulting
6888 from gdb's definition of strsignal in defs.h.
6889
6890 Mon Nov 10 17:11:08 1997 Geoffrey Noer <noer@cygnus.com>
6891
6892 * libc/sys/cygwin32/sys/utime.h: new (moved here from
6893 winsup/include) so as not to conflict with the one in
6894 libc/include.
6895 * libc/include/string.h: add protos for strsignal, strtosigno
6896
6897 Mon Nov 10 13:49:54 1997 Michael Meissner <meissner@cygnus.com>
6898
6899 * libc/include/sys/config.h: Define __IEEE_BIG_ENDIAN if d30v.
6900
6901 * configure.in (d30v-*-*): Add configuration.
6902
6903 Thu Oct 30 14:01:23 1997 Nick Clifton <nickc@cygnus.com>
6904
6905 * configure.in (links): Add -DARM_RD[P|I]_MONITOR to target_cflags
6906 to select which kind of debug monitor is in use for an ARM target.
6907
6908 * libc/sys/arm/crt0.S: New version: Supports Thumb startups and
6909 Angel and Demon debug monitors. Part of this code was supplied by
6910 Tony Thompson at ARM: athompso@arm.com.
6911
6912 Fri Oct 24 18:57:05 1997 Jeffrey A Law (law@cygnus.com)
6913
6914 * strncat.c (strncat): Don't call strncpy; strncay has the wrong
6915 semantics when the count is greater than the length of the second
6916 source string.
6917
6918 Thu Oct 23 01:37:41 1997 Geoffrey Noer <noer@cygnus.com>
6919
6920 * libc/include/sys/signal.h: reorder CYGWIN32 signal numbers
6921 * libc/include/sys/unistd.h: add protos for usleep, truncate,
6922 truncate and ftruncate take off_t, not size_t
6923
6924 Tue Oct 21 18:42:00 1997 Jim Wilson <wilson@cygnus.com>
6925
6926 * libc/string/strcat.c (strcat): Add missing comment end.
6927 * libc/string/strncat.c (strncat): Likewise.
6928
6929 Tue Oct 21 17:23:34 1997 Nick Clifton <nickc@cygnus.com>
6930
6931 * configure.in (links): Define PREFER_SIZE_OVER_SPEED for v850
6932 targets.
6933 * libc/string/{memchr.c, memcmp.c, memcpy.c}: Add space
6934 optimised version which is selected if PREFER_SIZE_OVER_SPEED is
6935 defined.
6936 * libc/string/{memset.c, strcat.c, strchr.c}: Likewise.
6937 * libc/string/{strcmp.c, strcpy.c, strlen.c}: Likewise.
6938 * libc/string/{strncat.c, strncmp.c, strncpy.c}: Likewise.
6939
6940 Mon Oct 13 15:12:35 1997 Ian Lance Taylor <ian@cygnus.com>
6941
6942 * libc/include/sys/param.h (BIG_ENDIAN): Define if __i386__.
6943 (LITTLE_ENDIAN, BYTE_ORDER): Likewise.
6944
6945 Thu Oct 9 13:54:44 1997 Doug Evans <dje@canuck.cygnus.com>
6946
6947 * libc/machine/i386/setjmp.S: New file.
6948 * libc/machine/i386/Makefile.in: Delete COPYOFILES.
6949 (OFILES): Add setjmp.o.
6950 (setjmp.o): Add rule for.
6951 * configure.in: Don't set machine_dir for *-*-{go32,sco*,cygwin32}.
6952
6953 Tue Oct 7 14:01:29 1997 Bill Moyer (billm@cygnus.com)
6954 Jeffrey A Law (law@cygnus.com)
6955
6956 * libc/string/{memchr.c, memcmp.c, memcpy.c}: Reimplement to run faster.
6957 * libc/string/{memset.c, strcat.c, strchr.c}: Likewise.
6958 * libc/string/{strcmp.c, strcpy.c, strlen.c}: Likewise.
6959 * libc/string/{strncat.c, strncmp.c, strncpy.c}: Likewise.
6960
6961 Mon Oct 6 14:07:59 1997 Nick Clifton <nickc@cygnus.com>
6962
6963 * libc/sys/sysnecv850/Makefile.in (crt0.o trap.o): Explicit
6964 rules.
6965
6966 * libc/include/sys/config.h: Use __v850 to select v850
6967 endianness.
6968
6969 * libc/include/machine/setjmp.h: Use __v850 to select v850 jump
6970 buffer size.
6971
6972 * libc/include/machine/ieeefp.h: Use __v850 to select v850
6973 endianness.
6974
6975 Thu Sep 25 14:11:37 1997 Geoffrey Noer <noer@cygnus.com>
6976
6977 * libc/stdlib/setenv.c: change unsetenv definition to match
6978 style of setenv (with _DEFUN). The string should be a const.
6979 * libc/include/stdlib.h: unsetenv proto should return void.
6980
6981 Tue Sep 23 18:17:20 1997 Geoffrey Noer <noer@cygnus.com>
6982
6983 * libc/include/stdlib.h: define unsetenv proto for __CYGWIN32__
6984
6985 Thu Sep 18 12:50:15 1997 Angela Marie Thomas (angela@cygnus.com)
6986
6987 * libc/stdio/glue.h: remove.
6988 * libc/stdio/findfp.c, libc/stdio/fwalk.c: remove #include "glue.h"
6989 * libc/stdio/Makefile.in: remove glue.h dependencies
6990
6991 Wed Sep 17 17:42:27 1997 Nick Clifton <nickc@cygnus.com>
6992
6993 * libc/sys/sysnecv850/crt0.S: Created V850e version.
6994
6995 Tue Sep 9 10:40:57 1997 Doug Evans <dje@canuck.cygnus.com>
6996
6997 * configure.in (target_cpu): Add `arc'.
6998
6999 Tue Sep 9 10:40:42 1997 Joel Sherrill <joel@OARcorp.com>
7000
7001 * newlib/configure.in (*-*-rtems*): Add -DSIGNAL_PROVIDED and
7002 -DREENTRANT_SYSCALLS_PROVIDED to the target_cflags.
7003 * newlib/libc/include/sys/errno.h: Add ENOTSUP.
7004 * newlib/libc/reent/reent.c: Add _wrapup_reent.
7005 * newlib/libc/sys/rtems/sys/types.h: Avoid redefinitions for go32.
7006
7007 Sun Sep 7 16:41:41 1997 Gavin Koch <gavin@cygnus.com>
7008
7009 * libc/machine/mips/setjmp.S: Handle mips16 builds.
7010
7011 Thu Aug 21 20:05:38 1997 Ian Lance Taylor <ian@cygnus.com>
7012
7013 * libc/include/stdio.h (siprintf): Declare.
7014
7015 Mon Aug 18 11:19:13 1997 Nick Clifton <nickc@cygnus.com>
7016
7017 * libc/sys/sysnecv850/Makefile.in (.c.o): Add rule that includes
7018 TARGET_CFLAGS and NEWLIB_FLAGS.
7019
7020 Mon Aug 18 11:15:43 1997 Nick Clifton <nickc@cygnus.com>
7021
7022 * configure.in (links): Add support for v850ea target.
7023
7024 Mon Aug 18 11:15:43 1997 Nick Clifton <nickc@cygnus.com>
7025
7026 * configure.in (links): Add support for v850e target.
7027
7028 Wed Aug 13 19:16:54 1997 Nick Clifton <nickc@cygnus.com>
7029
7030 * libc/sys/sysnecv850/crt0.S: Remove initial setting of r0 to 0.
7031
7032 Mon Aug 11 15:49:54 1997 Doug Evans <dje@canuck.cygnus.com>
7033
7034 * configure.in (arc-*-*): Add support for.
7035 * libc/include/machine/ieeefp.h (__arc__): Add support for the ARC.
7036
7037 Fri Jul 25 17:37:41 1997 J"orn Rennecke <amylaar@cygnus.co.uk>
7038
7039 * libc/sys/sh/crt0.S (start): Add fpscr initialization for SH4.
7040
7041 Thu Jul 24 18:32:17 1997 Geoffrey Noer <noer@cygnus.com>
7042
7043 * libc/stdlib/bsearch.c (bsearch): remove last unneeded
7044 comparison which accesses invalid memory when the key is
7045 larger than the last member of the array.
7046 * libc/include/machine/setjmp.h: add sigsetjmp, siglongjmp
7047 for CYGWIN32
7048 * libc/include/sys/unistd.h: add _POSIX defines for CYGWIN32
7049
7050 Tue Jul 22 16:03:06 1997 Ian Lance Taylor <ian@cygnus.com>
7051
7052 * libc/include/stdlib.h (realpath): Declare if __CYGWIN32__ and
7053 not _STRICT_ANSI.
7054
7055 Thu Jul 10 15:11:52 1997 Doug Evans <dje@canuck.cygnus.com>
7056
7057 * libm/math/k_standard.c (__kernel_standard): Call fflush(stdout)
7058 ifndef _USE_WRITE, instead of ifdef _USE_WRITE.
7059
7060 Thu Jul 10 16:00:09 1997 Mike Meissner <meissner@cygnus.com>
7061
7062 * libc/machine/tic80/setjmp.S (setjmp,longjmp): Use ld.d and st.d
7063 to load/store memory.
7064
7065 Mon Jul 7 17:38:17 1997 Ian Lance Taylor <ian@cygnus.com>
7066
7067 * libc/include/sys/fcntl.h: Define _O_* symbols with leading
7068 underscores if _WIN32.
7069
7070 Wed Jul 2 10:07:20 1997 Doug Evans <dje@canuck.cygnus.com>
7071
7072 * libm/math/k_standard.c (__kernel_standard): Delete reentrancy
7073 support ifdef _USE_WRITE missed in last change.
7074 From Anders Blomdell <anders.blomdell@control.lth.se>.
7075
7076 Wed Jun 25 10:18:49 1997 Doug Evans <dje@canuck.cygnus.com>
7077
7078 * libc/stdio/tmpnam.c (worker): Handle _open_r being stubbed out.
7079 (_tmpnam_r, _tempnam_r): Update.
7080
7081 Wed Jun 25 00:16:55 1997 Mark Alexander <marka@cygnus.com>
7082
7083 * libc/machine/sparc/setjmp.S: New file.
7084 * libc/machine/sparc/Makefile.in: Add setjmp.
7085 * libc/include/machine/setjmp.h: Increase jmpbuf size for sparc.
7086
7087 Tue Jun 24 23:27:38 1997 Mark Alexander <marka@cygnus.com>
7088
7089 * libc/include/machine/setjmp.h: Use __TIC80__ instead of __tic80__.
7090
7091 Tue Jun 24 14:53:40 1997 Doug Evans <dje@canuck.cygnus.com>
7092
7093 From Joel Sherrill <joel@oarcorp.com>.
7094 * libc/stdlib/getenv.c (_findenv): Avoid dereferencing null `environ'.
7095
7096 Add rtems support. From Joel Sherrill <joel@oarcorp.com>.
7097 * configure.in: Recognize *-*-rtems*.
7098 * libc/sys/rtems/{Makefile.in,crt0.c,dummysys.c}: New files.
7099 * libc/sys/rtems/sys/{features.h,sched.h,siginfo.h,signal.h,
7100 time.h,times.h,types.h}: New files.
7101 * libc/sys/rtems/include/{limits.h,signal.h,time.h}. New files.
7102
7103 Fri Jun 20 11:13:16 1997 Geoffrey Noer <noer@cygnus.com>
7104
7105 patch from sos@prospect.com.ru (Sergey Okhapkin):
7106 * include/sys/wait.h: correct operator precidence bug
7107 in WIFSIGNALED
7108
7109 Wed Jun 18 22:08:27 1997 Geoffrey Noer <noer@cygnus.com>
7110
7111 * libc/include/stdlib.h: remove unsetenv proto since it conflicts
7112 with newlib's unsetenv function
7113 * libc/sys/cygwin32/sys: new directory for includes
7114 * libc/sys/cygwin32/sys/dirent.h: move cygwin32's dirent.h
7115 here from winsup/include/sys
7116
7117 Mon Jun 16 21:02:22 1997 Geoffrey Noer <noer@cygnus.com>
7118
7119 * libc/include/sys/unistd.h: _exit should only be
7120 labelled noreturn when not __CYGWIN32__
7121 * libc/include/stdlib.h: for __CYGWIN32__, add proto for unsetenv
7122 * libc/include/sys/signal.h: add SIGIO to _WIN32 list and
7123 increment NSIG
7124
7125 Thu Jun 12 18:52:41 1997 Ian Lance Taylor <ian@cygnus.com>
7126
7127 * libc/include/sys/time.h: Only define timeval and timezone if
7128 _GNU_H_WINDOWS32_SOCKETS is not defined.
7129 * libc/include/sys/stat.h: If _WIN32, define _S_IFMT, etc.
7130
7131 Wed Jun 11 09:46:26 1997 Jeffrey A Law (law@cygnus.com)
7132
7133 * libc/machine/mn10200/setjmp.S: Implement setjmp/longjmp
7134 * libc/machine/mn10300/setjmp.S: Likewise.
7135
7136 * libc/sys/sysmec/crt0.S: Use "call" instead of "calls" for
7137 the mn10300 (more relaxing opportunities).
7138
7139 Tue Jun 10 17:24:45 1997 Mike Meissner <meissner@cygnus.com>
7140
7141 * configure.in (powerpc*-*-{eabi,elf,linux,rtems,sysv,solaris}):
7142 Build libraries with -mstrict-align.
7143
7144 Fri Jun 6 14:07:59 1997 Ian Lance Taylor <ian@cygnus.com>
7145
7146 * libc/string/strlwr.c: New file.
7147 * libc/string/strupr.c: New file.
7148 * libc/include/string.h: Declare strlwr and strupr.
7149 * libc/string/Makefile.in (OFILES): Add strlwr.o and strupr.o.
7150 (CHEWOUT_FILES): Add strlwr.def and strupr.def.
7151 (strlwr.o, strupr.o): New targets.
7152 * libc/string/strings.tex: Include strlwr and strupr docs.
7153
7154 * libc/include/sys/types.h: Don't define u_char, et. al., if
7155 _GNU_H_WINDOWS32_SOCKETS is defined. Likewise for fd_set,
7156 et. al. Make FD_SETSIZE default 64 rather than 60. Define
7157 _types_fd_set rather than fd_set, and define fd_set as a macro.
7158
7159 * libc/include/malloc.h: New file.
7160
7161 * libc/include/string.h: Define strcmpi, stricmp, strncmpi, and
7162 strnicmp if they are not already defined.
7163
7164 * libc/include/time.h: If __CYGWIN32__, declare tzset and define
7165 _timezone, _daylight, and _tzname.
7166
7167 Wed Jun 4 12:51:16 1997 Doug Evans <dje@canuck.cygnus.com>
7168
7169 * configure.in: Sort all configuration tables.
7170
7171 From Joel Sherrill <joel@oarcorp.com>
7172 * Makefile.in (stmp-targ-include): Copy $(sys_dir)/include/*.h.
7173
7174 Tue Jun 3 14:47:46 1997 Ian Lance Taylor <ian@cygnus.com>
7175
7176 * libc/include/sys/signal.h: Don't include <sys/types.h>. Just
7177 use int when declaring kill.
7178
7179 * libc/include/sys/timeb.h: New file.
7180
7181 Mon Jun 2 12:06:58 1997 Geoffrey Noer <noer@cirdan.cygnus.com>
7182
7183 * libc/include/sys/time.h: add itimer support for Cygwin32
7184
7185 Mon May 19 11:56:46 1997 Mike Meissner <meissner@cygnus.com>
7186
7187 * libc/stdlib/abort.c (abort): If ABORT_MESSAGE is defined, write
7188 out a message that abort was called to stderr.
7189
7190 Fri May 16 15:02:59 1997 Bob Manson <manson@charmed.cygnus.com>
7191
7192 * libc/sys/sysmec/fstat.c (_fstat): Set st_blksize to 4096
7193 so that libio doesn't freak.
7194
7195 * libc/sys/sysmec/sbrk.c (_sbrk): The argument is a size_t, not
7196 int.
7197
7198 * libc/stdlib/mallocr.c (_morecore_r): Use size_t for
7199 memory sizes, not int.
7200
7201 Wed May 14 21:16:58 1997 Bob Manson <manson@charmed.cygnus.com>
7202
7203 * libm/math/ef_hypot.c: Use long constants where
7204 appropriate.
7205 * libm/math/ef_sqrt.c: Ditto.
7206
7207 * libc/sys/sysmec/times.c(_times): Change to times.
7208
7209 * libc/sys/sysmec/read.c(_read): The third argument is
7210 size_t.
7211 * libc/sys/sysmec/write.c (_write): Ditto.
7212
7213 * libc/sys/sysmec/lseek.c: Include unistd.h for off_t.
7214 (_lseek): It's off_t for the second argument.
7215
7216 Wed May 14 15:23:36 1997 Mike Meissner <meissner@cygnus.com>
7217
7218 * libc/include/sys/config.h (__IEEE_LITTLE_ENDIAN): Define here,
7219 as well as machine/ieeefp.h.
7220
7221 Thu May 8 15:47:25 1997 Geoffrey Noer <noer@cygnus.com>
7222
7223 * libc/include/sys/signal.h: add signal protos for winsup
7224 functions (when __CYGWIN32__), include types.h
7225 * libc/include/sys/types.h: Change __go32_types__ internal
7226 define to __MS_types__ since it's used for more than just
7227 GO32 configs. Define this if GO32, __MSDOS__, or _WIN32 are
7228 defined.
7229 * libc/include/sys/unistd.h: add ftruncate proto for
7230 winsup functions (when __CYGWIN32__)
7231
7232 Fri Apr 25 10:10:16 1997 Doug Evans <dje@canuck.cygnus.com>
7233
7234 * libc/sys/h8300hms/sbrk.c (stack_ptr): Add definition.
7235
7236 Thu Apr 24 15:46:51 1997 Mike Stump <mrs@cygnus.com>
7237
7238 * libc/include/machine/setjmp.h: Add tic80 support.
7239 * libc/machine/tic80/setjmp.S: Likewise.
7240
7241 Tue Apr 22 16:54:40 1997 Geoffrey Noer <noer@pizza.cygnus.com>
7242
7243 * libc/sys/cygwin32/crt0.c: Add reference to main() so we can
7244 link programs from libraries only (such as in the X11
7245 distribution)
7246
7247 Mon Apr 21 15:02:12 1997 Fred Fish <fnf@cygnus.com>
7248
7249 * libc/sys/arm/syscalls.c (signal): Remove stub, signal()
7250 supplied elsewhere in newlib.
7251
7252 Mon Apr 14 16:25:55 1997 Ian Lance Taylor <ian@cygnus.com>
7253
7254 * Makefile.in (INSTALL): Change install.sh to install-sh.
7255
7256 Fri Apr 11 17:04:02 1997 Jason Molenda (crash@godzilla.cygnus.co.jp)
7257
7258 * README: update WWW address for on-line documentation.
7259
7260 Wed Apr 9 00:38:13 1997 Geoffrey Noer <noer@cygnus.com>
7261
7262 * libc/include/sys/signal.h: for _WIN32, define SIGCONT and
7263 increment NSIG
7264
7265 Mon Apr 7 23:54:00 1997 Jeffrey A Law (law@cygnus.com)
7266
7267 * libc/sys/sysmec/crt0.S: Update for new calling conventions on the
7268 mn10300.
7269 * libc/sys/sysmec/trap.S: Don't compare a register to itself.
7270
7271 Tue Mar 25 08:47:43 1997 Jeffrey A Law (law@cygnus.com)
7272
7273 * libc/sys/arm/syscalls.c: Fix/add stack/heap collision detection.
7274 * libc/sys/d10v/syscalls.c: Likewise.
7275 * libc/sys/h8300hms/sbrk.c: Likewise.
7276 * libc/sys/h8500hms/syscalls.c: Likewise.
7277 * libc/sys/m88kbug/syscalls.c: Likewise.
7278 * libc/sys/sh/syscalls.c: Likewise.
7279 * libc/sys/sysmec/sbrk.c: Likewise.
7280 * libc/sys/sysnecv850/sbrk.c: Likewise.
7281 * libc/sys/w65/syscalls.c: Likewise.
7282 * libc/sys.tex: Update sbrk sample code to include stack/heap collision.
7283
7284 Tue Mar 18 14:14:34 1997 Jeffrey A Law (law@cygnus.com)
7285
7286 * libc/sys/sysmec/trap.S: Use "syscall" to trigger an
7287 emulated syscall instead of "trap".
7288
7289 Fri Mar 14 11:26:13 1997 Michael Meissner <meissner@cygnus.com>
7290
7291 * libc/sys/d10v/trap.S (__trap0): Use trap 15 for system calls,
7292 not trap 0.
7293
7294 Sun Mar 9 23:27:04 1997 Doug Evans <dje@seba.cygnus.com>
7295
7296 * configure.in (m32r-*-*): Add -msdata=sdata to target_cflags.
7297
7298 Sat Mar 8 09:05:01 1997 Fred Fish <fnf@cygnus.com>
7299
7300 * libc/machine/arm/Makefile.in: Fix comment, is for "arm"
7301 not "sh".
7302 * libc/machine/m32r/Makefile.in: Fix comment, is for "m32r"
7303 not "d10v".
7304 * libc/sys/tic80/crt0.c: New file for TIc80.
7305 * libc/sys/tic80/Makefile.in: New file for TIc80.
7306 * libc/machine/tic80/Makefile.in: New file for TIc80.
7307
7308 Wed Mar 5 11:32:12 1997 J.T. Conklin <jtc@cygnus.com>
7309
7310 * libc/machine/sh/memcpy.S: New file.
7311 * libc/machine/sh/memset.S: New file.
7312 * libc/machine/sh/Makefile.in (OFILES): Add memcpy.o and memset.o
7313
7314 Thu Feb 27 16:27:55 1997 Fred Fish <fnf@cygnus.com>
7315
7316 * libc/include/machine/ieeefp.h (_IEEE_LITTLE_ENDIAN): Define
7317 for TIc80.
7318
7319 Wed Feb 26 13:43:39 1997 Jeffrey A Law (law@cygnus.com)
7320
7321 * libc/sys/sysmec/crt0.S: Handle new calling conventions for
7322 the mn10200.
7323
7324 Wed Feb 26 07:11:03 1997 Michael Meissner <meissner@cygnus.com>
7325
7326 * libc/machine/powerpc/setjmp.S (longjmp): Correct return status
7327 (patch from andrew@pogo.WV.TEK.COM).
7328
7329 Fri Feb 14 11:49:28 1997 Doug Evans <dje@canuck.cygnus.com>
7330
7331 * libc/machine/m32r/setjmp.S (setjmp): Save r12.
7332 (longjmp): Restore r12. Fix code that handles returning 1 if passed 0.
7333
7334 Mon Feb 10 10:02:34 1997 Fred Fish <fnf@cygnus.com>
7335
7336 * configure.in: Add cases for "tic80" to set machine_dir,
7337 sys_dir, and syscall_dir.
7338
7339 Sun Feb 2 17:57:15 1997 Geoffrey Noer <noer@cygnus.com>
7340
7341 * libc/sys/cygwin32/crt0.c: initialize floating pt registers
7342
7343 Wed Jan 29 15:57:38 1997 Geoffrey Noer <noer@cygnus.com>
7344
7345 * libc/include/math.h: avoid conflicts with ANSI C++ <exception>
7346
7347 Mon Jan 27 12:50:01 1997 Doug Evans <dje@seba.cygnus.com>
7348
7349 * libc/machine/m32r/setjmp.S: Use proper comment delimiter.
7350 Use proper constant prefix.
7351
7352 Fri Jan 24 10:59:04 1997 Jeffrey A Law (law@cygnus.com)
7353
7354 * libc/sys/sysmec/*.c: Don't cast args to syscall to integers,
7355 that loses on the mn10200 where ints and pointers are different
7356 sizes.
7357
7358 Tue Jan 14 13:29:55 PST 1997 Jeremy Allison <jra@cygnus.com>
7359
7360 * configure.in: Added -DSIGNAL_PROVIDED to cygwin32
7361 target as signal is provided in winsup.
7362
7363 Tue Jan 14 11:10:13 1997 Jeremy Allison <jra@cygnus.com>
7364
7365 * libc/include/sys/process.h: Corrected const definitions
7366 in spawn functions. Added cwait.
7367
7368 Thu Jan 2 12:22:41 1997 Jeffrey A Law (law@cygnus.com)
7369
7370 * libc/include/machine/ieeefp.h: mn10200 uses 16bit ints and 32bit
7371 doubles.
7372 * libc/include/sys/config.h: Similarly.
7373
7374 Tue Dec 31 18:36:14 1996 Michael Meissner <meissner@tiktok.cygnus.com>
7375
7376 * configure.in (sparc-sun-sunos*): Add -DSIGNAL_PROVIDED to the
7377 target_cflags.
7378 (i[3456]86-*-sco*): Ditto.
7379
7380 * libc/signal/Makefile.in (OFILES): Add signal.o.
7381 (CFILES): Add signal.c.
7382
7383 * libc/signal/raise.c (_raise_r): Only compile code if
7384 SIGNAL_PROVIDED is defined.
7385
7386 * libc/signal/signal.c: Redo whole file so that it works with
7387 current newlib. Use _kill_r if no signal handler provided.
7388
7389 * libc/sys/{go32,sparc64,sysmec}/Makefile.in: Delete raise and
7390 signal stubs.
7391 * libc/sys/sysvnecv70/Makefile.in: Ditto.
7392 * libc/sys/sysnecv850/Makefile.in: Ditto.
7393
7394 * libc/sys/{go32,sparc64}/signal.c: Delete, stub no longer used.
7395 * libc/sys/sysmec/{raise,signal}.c: Ditto.
7396 * libc/sys/sysvnecv70/signal.s: Ditto.
7397 * libc/sys/sysnecv850/raise.c: Ditto.
7398
7399 * libc/sys/sysnecv850/kill.c (_kill): Encode signal # so that
7400 simulator and debugger can tell the difference between a signal
7401 being raised and an exit system call.
7402
7403 * NEWS: Document software signals being provided.
7404
7405 Mon Dec 23 11:54:19 1996 Michael Meissner <meissner@tiktok.cygnus.com>
7406
7407 * libc/reent/impure.c (_REENT_ATTR): Delete in favor of
7408 __ATTRIBUTE_IMPURE_PTR__. Move PowerPC definition to
7409 include/sys/config.h.
7410 (impure_data): Use __ATTRIBUTE_IMPURE_DATA__ for attributes.
7411 Change from 'inpure_data'.
7412 (_impure_ptr): Use __ATTRIBUTE_IMPURE_PTR__ for attributes. Use
7413 &impure_data, not &inpure_data.
7414
7415 * libc/include/sys/config.h (__ATTRIBUTE_IMPURE_PTR__): If PowerPC
7416 and and System V ABI, define so that _impure_ptr lives in the
7417 .sdata section.
7418
7419 Sun Dec 22 23:33:05 1996 Michael Meissner <meissner@tiktok.cygnus.com>
7420
7421 * libc/include/sys/reent.h (__ATTRIBUTE_IMPURE_PTR__): Define as
7422 nothing if not defined.
7423 (_impure_ptr): Use __ATTRIBUTRE_IMPURE_PTR__, so a machine can set
7424 its attributes.
7425
7426 * libc/include/sys/config.h (__ATTRIBUTE_IMPURE_PTR__):
7427
7428 Wed Dec 18 10:12:04 1996 Jeffrey A Law (law@cygnus.com)
7429
7430 * libc/sys/sysmec/crt0.S: Fix mn10200 stuff.
7431 * libc/sys/sysmec/trap.s: Handle mn10200 too.
7432 * libc/machine/mn10200/setjmp.S: Fix mn10200 stuff.
7433
7434 Mon Dec 16 10:05:36 1996 Jeffrey A Law (law@cygnus.com)
7435
7436 * libc/sys/sysmec/crt0.S: Handle mn10200 too.
7437
7438 Fri Dec 13 11:05:20 1996 Jeremy Allison <jra@cygnus.com>
7439
7440 * libc/include/sys/errno.h: Added net errno's.
7441
7442 Wed Dec 11 16:24:25 1996 Michael Meissner <meissner@tiktok.cygnus.com>
7443
7444 * libc/misc/ffs.c: New file to support ffs function for GCC test
7445 gcc.c-torture/execute/960909-1.c.
7446
7447 * libc/misc/Makefile.in ({O,CHEWOUT_}FILES): Add ffs.
7448
7449 Sat Dec 7 10:12:37 1996 Jeffrey A Law (law@cygnus.com)
7450
7451 * libc/sys/sysmec/crt0.S: Handle underscore prefix.
7452 * libc/sys/sysmec/trap.S: Likewise.
7453
7454 Fri Dec 6 15:08:49 1996 Jim Wilson <wilson@cygnus.com>
7455
7456 * configure.in (mips*vr4300*-*-*): Delete use of sys/vr4300.
7457 * libc/sys/vr4300/{Makefile.in,crt0.S,syscalls.c}: Delete.
7458
7459 Wed Dec 4 16:25:27 1996 Jeffrey A Law (law@cygnus.com)
7460
7461 * libc/sys/sysmec/signal.c: Dummy file.
7462 * libc/sys/sysmec/Makefile.in: Build it.
7463
7464 Wed Nov 27 13:10:18 1996 Ian Lance Taylor <ian@cygnus.com>
7465
7466 * libc/machine/mips/machine/regdef.h: Define pc as $pc for
7467 mips16.
7468
7469 Mon Nov 25 09:58:28 1996 Jeffrey A Law (law@cygnus.com)
7470
7471 * libc/sys/sysmec/{crt0.S,trap0.S}: Actually try to implement
7472 c-startup and simulator traps.
7473
7474
7475 * libc/sys/sysmec/crt0.S: Remove bogus '_' symbol prefixing
7476 * libc/sys/sysmec/trap0.S: Likewise.
7477
7478 Sat Nov 23 09:01:03 1996 Michael Meissner <meissner@tiktok.cygnus.com>
7479
7480 * libc/stdlib/mallocr.c (ROUND_TO): If SMALL_MEMORY, set to 0x7 to
7481 round to double word alignment.
7482 (_morecore_r): Combine rounding up pointers to both ROUND_TO and 8
7483 byte alignment.
7484
7485 * libc/include/sys/config.h (__IEEE_BIG_ENDIAN): Define if d10v.
7486
7487 * libc/sys/d10v/syscalls.c (_sbrk): Add better checks for running
7488 out of memory.
7489
7490 Mon Nov 18 13:08:26 1996 Jeffrey A Law (law@cygnus.com)
7491
7492 * configure.in: Handle mn10200 and mn10300.
7493 * libc/include/machine/{ieeefp.h,setjmp.h}: Likewise.
7494 * libc/include/sys/config.h: Likewise.
7495 * libc/sys/sysmec: New directory for mec stuff.
7496 * libc/machine/mn10300: New directory for mn10300 stuff.
7497 * libc/machine/mn10200: Similarly for mn10200 stuff.
7498
7499 Fri Nov 15 16:41:41 1996 Doug Evans <dje@canuck.cygnus.com>
7500
7501 * libc/sys/arm/crt0.S: Use .text, not .section .text.
7502 * libc/sys/arm/syscalls.c: Rewrite to set errno properly.
7503
7504 * libc/include/sys/types.h (_ST_INT32): New macro, local to file.
7505 (nlink_t): Change type from unsigned int to unsigned short.
7506 (mode_t): Ensure size is 32 bits even if int is 16.
7507 * libc/include/sys/stat.h (st_nlink): Change type to nlink_t.
7508 (st_spare[123]): Change type from int to long.
7509
7510 Fri Nov 15 11:41:50 1996 Michael Meissner <meissner@tiktok.cygnus.com>
7511
7512 * libc/sys/d10v/syscalls.c (_sbrk): Align initial heap_end to 8
7513 byte boundary.
7514
7515 * configure.in (d10v*): Define SMALL_MEMORY.
7516
7517 Mon Nov 11 10:30:44 1996 Michael Meissner <meissner@tiktok.cygnus.com>
7518
7519 * configure.in (powerpc*-{eabi,elf,linux,rtem,sysv,solaris}*): Add
7520 -mrelocatable-lib and -mno-eabi flags.
7521
7522 Mon Nov 11 09:01:39 1996 Jeffrey A Law (law@cygnus.com)
7523
7524 * libc/machine/h8300/memcpy.S: Fix comments to reflect reality.
7525 Fix handling of mis-aligned source operand when both the
7526 destination & length are properly aligned.
7527
7528 Wed Oct 30 09:41:11 1996 Jeffrey A Law (law@cygnus.com)
7529
7530 * libc/sys/sysnecv850/Makefile.in (OFILES): Add
7531 times.o, time.o and gettime.o
7532 * libc/sys/sysnecv850/{time.c, times.c, gettime.c}: New files.
7533 * libc/sys/sysnecv850/sys/syscall.h: Add SYS_times and
7534 SYS_gettimeofday.
7535
7536 Tue Oct 29 13:40:09 1996 Jeffrey A Law (law@cygnus.com)
7537
7538 * libc/sys/sysnecv850/Makefile.in (OFILES): Add access.o
7539 * libc/sys/sysnecv850/access.c: New file.
7540
7541 Mon Oct 21 19:47:02 1996 Ian Lance Taylor <ian@cygnus.com>
7542
7543 * libc/sys/vr4300/Makefile.in (clean): Remove $(OFILES).
7544
7545 * libc/stdlib/mprec.h (word0, word1): Use __uint32_t, not unsigned
7546 long.
7547
7548 Mon Oct 21 14:43:07 1996 Jeffrey A Law (law@cygnus.com)
7549
7550 * libc/sys/sysnecv850/crt0.S: Initialize ep and gp registers.
7551
7552 Thu Oct 17 11:47:16 1996 Doug Evans <dje@seba.cygnus.com>
7553
7554 * libc/include/machine/{ieeefp.h,setjmp.h}: Add m32r support.
7555 * libc/include/sys/config.h: Add m32r support.
7556
7557 Wed Oct 16 23:08:05 1996 Jeffrey A Law (law@cygnus.com)
7558
7559 * libc/sys/sysnecv850/v850.ld: Remove. It doesn't belong
7560 here.
7561
7562 Wed Oct 16 21:18:07 1996 Mark Alexander <marka@cygnus.com>
7563
7564 * libc/include/machine/setjmp.h: Add D10v support.
7565
7566 Tue Oct 15 22:28:26 1996 Jeffrey A Law (law@cygnus.com)
7567
7568 * configure.in: Configure the "libc/syscalls" directory for
7569 the v850.
7570
7571 * libc/sys/sysnecv850/{close.c, execve.c, fork.c}: Add missing '_'.
7572 * libc/sys/sysnecv850/{fstat.c, getpid.c, kill.c}: Likewise.
7573 * libc/sys/sysnecv850/{lseek.c, open.c, read.c}: Likewise.
7574 * libc/sys/sysnecv850/{sbrk.c, stat.c, unlink.c}: Likewise.
7575 * libc/sys/sysnecv850/{wait.c, write.c}: Likewise.
7576
7577 Tue Oct 15 16:24:39 1996 Stu Grossman (grossman@critters.cygnus.com)
7578
7579 * libc/sys/sysnecv850/crt0.S (start): Allocate spill space on
7580 stack for args for main and other routines. Zero out args for
7581 main.
7582
7583 * libc/sys/sysnecv850/v850.ld: New. Linker script to layout memory
7584 correctly.
7585
7586 Tue Oct 15 11:51:42 1996 Michael Meissner <meissner@tiktok.cygnus.com>
7587
7588 * libc/stdio/findfp.c (std): Remove extraneous ';' after
7589 function.
7590
7591 * libc/sys/d10v/sys/syscall.h (SYS_kill): Add.
7592
7593 * libc/sys/d10v/{syscalls.c,trap.S} (_kill,_getpid): Make these
7594 real system calls now.
7595
7596 * libc/stdio/setvbuf (setvbuf): Cast pointers to _POINTER_INT
7597 before casting them to int.
7598 * libc/stdio/tmpnam.c (_tempnam_r): Ditto.
7599
7600 * libc/stdlib/mallocr.c (_morecore_r): Use _POINTER_INT when
7601 aligning pointer.
7602 * libc/string/memset.c (memset): Ditto.
7603
7604 * libc/stdio/vfscanf.c (__svfscanf): When converting to pointer,
7605 first convert ints to _POINTER_INT to eliminate GCC warning.
7606
7607 * libc/stdio/vfprintf.c (_vfprintf_r): Use _POINTER_INT when
7608 processing %p.
7609
7610 * libm/math/ef_scalb.c (__ieee754_scalbf): Cut down range to 32000
7611 from 65000 if ints are only 16 bits.
7612
7613 * libm/math/sf_scalbn.c (scalbnf): Cut down overflow test to 30000
7614 from 50000 if ints are only 16 bits.
7615
7616 * libc/include/sys/config.h (_POINTER_INT): New macro, to give an
7617 int type that is the same size as a pointer.
7618
7619 * libc/misc/dprintf.c (__dprintf): Use _POINTER_INT when
7620 processing %p.
7621 (get_number): Explicitly cast number to long before shifting by 16
7622 or 24, in case ints are short.
7623
7624 * libc/include/sys/config.h (_POINTER_INT): Define as short.
7625
7626 Wed Oct 9 16:54:32 1996 Jeremy Allison <jra@cygnus.com>
7627
7628 * libc/string.h: Added ffs, removed swab.
7629 * libc/sys/errno.h: Added EOPNOTSUPP.
7630 * libc/sys/unistd.h: Added swab.
7631
7632 Thu Oct 3 17:08:50 1996 Jeremy Allison <jra@cygnus.com>
7633
7634 * libc/include/sys/stat.h: Added fchmod.
7635 * libc/include/sys/unistd.h: Added fsync.
7636
7637 Tue Oct 1 17:34:08 1996 Jeremy Allison <jra@cygnus.com>
7638
7639 * libc/include/sys/errno.h: Added defines for EPFNOSUPPORT (96)
7640 and ECONNRESET (104) for cygwin32.
7641
7642 Tue Oct 1 16:24:05 1996 Gavin Koch <gavin@cygnus.com>
7643
7644 * libc/sys/sysnecv850/_exit.c: added _do_dtors to
7645 do the static destructors.
7646
7647 Mon Sep 30 15:59:05 1996 Stu Grossman (grossman@critters.cygnus.com)
7648
7649 * libc/sys/sysnecv850/trap.S: Change I/O to use trap 31.
7650
7651 Mon Sep 30 12:02:50 1996 Doug Evans <dje@canuck.cygnus.com>
7652
7653 * libc/machine/m32r/{Makefile.in,setjmp.S}: New files.
7654 * configure.in: Recognize m32r-*-*.
7655
7656 Mon Sep 30 00:34:41 1996 James G. Smith <jsmith@cygnus.co.uk>
7657
7658 * libc/sys/arm/trap.S (__rt_stkovf_split_big,
7659 __rt_stkovf_split_small): Added default software stack overflow
7660 handlers, which just call SWI_Exit.
7661 * libc/sys/arm/crt0.S (_mainCRTStartup): Simple software stack
7662 limit initialisation.
7663
7664 Fri Sep 27 13:08:03 1996 Mark Alexander <marka@cygnus.com>
7665
7666 * libc/sys/d10v/{trap.S,sys/syscall.h}: Add time() function.
7667
7668 Fri Sep 27 12:32:00 1996 Jeremy Allison <jra@cygnus.com>
7669
7670 * libc/include/sys/types.h: Added ssize_t definition.
7671
7672 Wed Sep 25 14:52:18 1996 Michael Meissner <meissner@tiktok.cygnus.com>
7673
7674 * libc/machine/d10v/setjmp.S: Use ';' for comments.
7675 * libc/sys/d10v/{crt0.S,trap.S}: Ditto.
7676
7677 * libc/machine/d10v/setjmp.S (longjmp): Use exef0t || instead of
7678 branch around a single ldi instruction.
7679
7680 * libc/sys/d10v/crt0.S (_start): Use auto-increment to zero bss.
7681 Call exit, instead of just issuing a stop instruction.
7682
7683 Sun Sep 22 17:26:55 1996 Michael Meissner <meissner@tiktok.cygnus.com>
7684
7685 * libc/sys/d10v/{trap.S,syscalls.c}: Add -mint32 support.
7686
7687 Fri Sep 20 13:23:12 1996 Michael Meissner <meissner@tiktok.cygnus.com>
7688
7689 * libc/stdlib/mprec.h: Explicitly declare all large constants as
7690 longs, and then cast them to __uint32_t.
7691
7692 * libc/include/sys/config.h: Protect against multiple inclusions.
7693
7694 Tue Sep 17 13:10:33 1996 Mark Alexander <marka@cygnus.com>
7695
7696 * configure.in (d10v*): Set syscall_dir.
7697
7698 Sun Sep 15 10:41:59 1996 Mark Alexander <marka@cygnus.com>
7699
7700 * libc/sys/d10v/crt0.S: Set stack pointer.
7701
7702 Thu Sep 12 13:02:38 1996 Mark Alexander <marka@cygnus.com>
7703
7704 * libc/sys/d10v/{trap.S, syscalls.c}: Rewrite most system calls
7705 in assembly for efficiency. Change calling convention to allow
7706 long ints to be returned.
7707
7708 Wed Sep 11 10:28:18 1996 Michael Meissner <meissner@tiktok.cygnus.com>
7709
7710 * libc/machine/v850/Makefile.in (setjmp.o): Fix dependency.
7711
7712 Thu Sep 5 19:23:06 1996 Doug Evans <dje@canuck.cygnus.com>
7713
7714 * libc/posix/execvp.c (execvp): Don't search PATH if file has '/'.
7715 Handle empty entries in $PATH.
7716
7717 Tue Sep 03 18:15:02 1996 Mark Alexander <marka@cygnus.com>
7718
7719 * libc/machine/d10v/setjmp.S: Make it really work.
7720
7721 Tue Sep 3 12:16:26 1996 Ian Lance Taylor <ian@cygnus.com>
7722
7723 * libc/sys/sh/crt0.S: If __ELF__, use ELF section attributes for
7724 the .stack section.
7725
7726 Tue Sep 3 10:08:45 1996 Jeffrey A Law (law@cygnus.com)
7727
7728 * sys/sysnecv850/sys/file.h: Remove.
7729 * sys/sysnecv850/sys/syscall.h: New file.
7730 * sys/sysnecv850/{misc.c,syscalls.c,malloc.c}: Deleted.
7731 * sys/sysnecv850/{chmod.c, chown.c, close.c, creat.c} New files.
7732 * sys/sysnecv850/{execv.c, execve.c, fork.c, fstat.c} New files.
7733 * sys/sysnecv850/{getpid.c, isatty.c, kill.c, lseek.c} New files.
7734 * sys/sysnecv850/{open.c, pipe.c, raise.c, read.c} New files.
7735 * sys/sysnecv850/{stat.c, unlink.c, utime.c, wait.c} New files.
7736 * sys/sysnec850/trap.S: New file.
7737 * sys/sysnecv850/{_exit.c, write.c}: Use new TRAP0 mechanism for
7738 syscalls.
7739 * sys/sysnecv850/crt0.S: Use cmp/bl, not tst/bz.
7740 * sys/sysnec850/sbrk.c: New version.
7741
7742 Sun Sep 1 20:08:27 1996 Jeffrey A Law (law@cygnus.com)
7743
7744 * sys/sysnecv850/crt0.S: Fix order of comparison args. Loop
7745 as long as r6 is less than r7.
7746
7747 Sun Sep 1 13:54:19 1996 Ian Lance Taylor <ian@cygnus.com>
7748
7749 * Makefile.in (mostlyclean): Separate from clean target. Don't
7750 remove *.a or targ-include.
7751 * libc/machine/sparc/Makefile.in (mostlyclean): New target.
7752
7753 Sun Sep 1 11:35:26 1996 Michael Meissner <meissner@tiktok.cygnus.com>
7754
7755 * libc/include/machine/ieeefp.h (_DOUBLE_IS_32BITS): Define for
7756 d10v.
7757 (__SMALL_BITFIELDS): Ditto.
7758
7759 * libc/include/sys/config.h (_DOUBLE_IS_32BITS): Define for d10v.
7760
7761 Sat Aug 31 16:42:36 1996 Jeffrey A Law (law@cygnus.com)
7762
7763 * libc/sys/sysnecv850/misc.c (raise, getpid, kill): Remove '_'
7764 prefix.
7765
7766 * libc/sys/sysnecv850/sbrk.c (sbrk): Remove '_' prefix.
7767 * libc/sys/sysnecv850/syscalls.c (read, lseek, close): Likewise.
7768 * libc/sys/sysnecv850/syscalls.c (fstat, open, close): Likewise.
7769 * libc/sys/sysnecv850/write.c (write): Likewise.
7770
7771 * libc/sys/sysnecv850/crt0.S: Don't try to zero out an empty
7772 .bss.
7773
7774 Fri Aug 30 11:18:45 1996 Michael Meissner <meissner@tiktok.cygnus.com>
7775
7776 * libc/include/sys/config.h: Define INT_MAX, UINT_MAX
7777 appropriately for D10V, depending on -mint16/-mint32.
7778
7779 Thu Aug 29 16:09:37 1996 Mark Alexander <marka@cygnus.com>
7780
7781 * configure.in: Add cases for D10V.
7782
7783 Thu Aug 29 17:03:23 1996 Michael Meissner <meissner@tiktok.cygnus.com>
7784
7785 * configure.in (i[345]86-*-*): Recognize i686 for pentium pro.
7786
7787 Wed Aug 28 21:05:52 1996 Jeffrey A Law (law@cygnus.com)
7788
7789 * libc/include/machine/ieeefp.h: Fix typo.
7790
7791 Wed Aug 28 19:47:55 1996 Mark Alexander <marka@cygnus.com>
7792
7793 * libc/sys/d10v: New directory for D10V stuff.
7794 * libc/include/machine/ieeefp.h: Add D10V defines.
7795
7796 Mon Aug 26 13:34:58 1996 Doug Evans <dje@canuck.cygnus.com>
7797
7798 * libc/include/sys/errno.h: Add winsup/include/sys/errno.h values:
7799 ELOOP, ENOBUFS, EAFNOSUPPORT, EPROTOTYPE, ENOTSOCK, ENOPROTOOPT,
7800 ESHUTDOWN, ECONNREFUSED, EADDRINUSE, ECONNABORTED, EWOULDBLOCK.
7801 * libc/string/strerror.c (strerror): Add them.
7802
7803 Thu Aug 22 16:38:19 1996 Jeffrey A Law (law@cygnus.com)
7804
7805 * libc/sys/sysnecv850: New directory for v850 stuff.
7806
7807 * libc/machine/v850: New directory for v850 stuff.
7808 * libc/machine/v850/setjmp.S: setjmp/longjmp support.
7809
7810 * configure.in: Add support for the v850.
7811
7812 * libc/include/machine/ieeefp.h: Add v850 defines.
7813 * libc/include/machine/setjmp.h: Likewise.
7814 * libc/include/sys/config.h: Add v850 defines.
7815
7816 Sat Aug 17 04:06:36 1996 Geoffrey Noer <noer@cygnus.com>
7817
7818 * libc/include/machine/ieeefp.h
7819 * libc/include/machine/setjmp.h
7820 * libc/include/sys/fcntl.h
7821 * libc/include/sys/signal.h
7822 * libc/include/sys/types.h
7823 * libc/stdlib/system.c:
7824 Fix preprocessor defines to match new scheme (_WIN32 for WIN32
7825 API availability, __CYGWIN32__ for cygwin32 environment specific).
7826
7827 Thu Aug 15 17:09:21 1996 Geoffrey Noer <noer@cygnus.com>
7828
7829 * libc/include/stdlib.h: add multibyte character functions. Add
7830 __eprintf for assert.
7831
7832 Thu Aug 15 11:15:40 1996 Michael Meissner <meissner@tiktok.cygnus.com>
7833
7834 * libc/stdlib/malloc.h (MALLOC_ALIGNMENT): Use either pointer
7835 arithmetic or __alignof__ to properly get the alignment, instead
7836 of hardwiring it to 4.
7837
7838 Wed Aug 14 23:43:28 1996 Geoffrey Noer <noer@cygnus.com>
7839
7840 * libc/stdio/fseek.c: add fflush call to adjust seek offset
7841 on append stream (fix from NetBSD sources), adjust curoff offset
7842 for ungetc's benefit.
7843 * libc/stdio/ftell.c: adjust curoff offset for ungetc's benefit.
7844 * libc/stdio/rewind.c: replace code with up to date NetBSD
7845 code to undo hacks made to work around above problem of not
7846 having fflush call mentioned above
7847
7848 Fri Aug 2 18:28:07 1996 J.T. Conklin <jtc@rtl.cygnus.com>
7849
7850 * libc/reent/{closer.c, execr.c, fstatr.c, linkr.c, lseekr.c,
7851 openr.c, readr.c, sbrkr.c, signalr.c, statr.c, timer.c, writer.c}:
7852 Partially revert last changes. The thread specific errno is set
7853 iff if the underlying syscall fails and the global errno is not
7854 zero.
7855
7856 Fri Jul 19 11:41:52 1996 J.T. Conklin <jtc@rtl.cygnus.com>
7857
7858 * libc/reent/filer.c: Removed files, all functions have split out
7859 into their own files.
7860 * libc/reent/{closer.c, lseekr.c, openr.c, readr.c, writer.c}:
7861 New files containing functions formally in filer.c
7862 * libc/reent/Makefile.in: Updated for above change.
7863
7864 * libc/reent/execr.c (_fork_r, _wait_r): Set errno if underlying
7865 syscall fails, not if errno is changed.
7866 * libc/reent/filer.c (_open_r, _close_r, _lseek_r, _read_r,
7867 _write_r): Likewise.
7868 * libc/reent/fstatr.c (_fstat_r): Likewise.
7869 * libc/reent/linkr.c (_link_r, _unlink_r): Likewise.
7870 * libc/reent/sbrkr.c (_sbrk_r): Likewise.
7871 * libc/reent/signalr.c (_kill_r): Likewise.
7872 * libc/reent/statr.c (_stat_r): Likewise.
7873 * libc/reent/timer.c (_gettimeofday_r): Likewise.
7874
7875 * libc/reent/{execr.c, filer.c, fstatr.c, linkr.c, sbrkr.c,
7876 signalr.c, statr.c, timer.c} (errno): declare extern rather
7877 than as a common.
7878
7879 * libc/stdio/vfprintf.c (__sbprintf): Use the VFPRINTF macro
7880 instead of calling vfprintf so that i*printf will not require
7881 floating point support code.
7882
7883 Mon Jul 15 16:50:59 1996 Doug Evans <dje@canuck.cygnus.com>
7884
7885 * libc/posix/execvp.c (execvp): Use posix_path_list_p to determine
7886 path delimiter.
7887 * libc/include/sys/unistd.h (_SC_PATH_RULES): Delete.
7888 (_PATH_RULES_{UNKNOWN,WIN32,POSIX}): Delete.
7889
7890 Thu Jul 11 14:34:14 1996 Geoffrey Noer <noer@cygnus.com>
7891
7892 * libc/include/signal.h: _sig_func_ptr function takes an int
7893 * libc/include/sys/signal.h: sa_handler function takes an int
7894
7895 Tue Jul 9 21:22:32 1996 Jeffrey A Law (law@cygnus.com)
7896
7897 * libc/include/machine/ieeefp.h: Simplify H8/S support.
7898 * libc/include/sys/config.h: Add missing H8/S conditional.
7899
7900 Sun Jun 30 12:05:46 1996 Doug Evans <dje@canuck.cygnus.com>
7901
7902 * libc/include/sys/unistd.h (MAXPATHLEN): Add cygwin32 value.
7903
7904 Wed Jun 26 09:57:54 1996 Jeffrey A Law (law@cygnus.com)
7905
7906 * libc/include/machine/setjmp.h: Handle H8/S.
7907 * libc/include/machine/ieeefp.h: Likewise.
7908 * libc/include/sys/config.h: Likewise.
7909 * libc/machine/h8300/{defines.h, memcpy.S, memset.S}: Likewise.
7910 * libc/machine/h8300/{reg_memcpy.S, reg_memset.S}: Likewise.
7911 * libc/machine/h8300/{strcmp.S, setjmp.S}: Likewise.
7912 * libc/sys/h8300hms/crt0.S: Likewise.
7913
7914 Tue Jun 25 23:15:45 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
7915
7916 * Makefile.in (datadir): Set to $(prefix)/share.
7917 (oldincludedir, docdir): Removed.
7918 * doc/Makefile.in (datadir): Set to $(prefix)/share.
7919 (oldincludedir, docdir): Removed.
7920 * libc/Makefile.in (datadir): Set to $(prefix)/share.
7921 (oldincludedir, docdir): Removed.
7922 * libm/Makefile.in (datadir): Set to $(prefix)/share.
7923 (oldincludedir, docdir): Removed.
7924
7925 Fri Jun 21 19:24:41 1996 Ian Lance Taylor <ian@cygnus.com>
7926
7927 * libc/include/sys/reent.h (_REENT_INIT): Update for change to
7928 _reent struct.
7929
7930 Wed Jun 19 14:00:09 1996 Doug Evans <dje@canuck.cygnus.com>
7931
7932 * libc/posix/execvp.c: Delete _WIN32 support. For __CYGWIN32__
7933 fetch current path rules with sysconf and handler posix/win32
7934 appropriately.
7935
7936 * libc/include/sys/unistd.h (_PATH_RULES{,_POSIX,_WIN32}): Define.
7937
7938 * libc/include/process.h: Prepend '_' to P_{WAIT,NOWAIT,OVERLAY}.
7939 (WAIT_CHILD): Always define.
7940
7941 Sat Jun 15 17:50:42 1996 Ian Lance Taylor <ian@cygnus.com>
7942
7943 * libc/stdlib/eprintf.c: New file.
7944 * libc/stdlib/Makefile.in (OFILES): Add eprintf.o.
7945 (eprintf.o): New target.
7946
7947 Thu Jun 13 16:44:32 1996 Doug Evans <dje@canuck.cygnus.com>
7948
7949 * libc/sys/cygwin32/crt0.c (__cygwin_crt0_bp): New global.
7950 (mainCRTStartup): Do int3 if __cygwin_crt0_bp non-zero.
7951
7952 Thu Jun 13 17:45:17 1996 Mike Meissner <meissner@rtl.cygnus.com>
7953
7954 * libc/include/machine/ieeefp.h: Add support for AIX and Windows
7955 NT in PowerPC endianess cases.
7956
7957 Tue Jun 11 12:26:28 1996 Michael Meissner <meissner@tiktok.cygnus.com>
7958
7959 * libc/include/machine/ieeefp.h: Clean up PowerPC endianess.
7960
7961 Thu Jun 6 11:34:20 1996 Michael Meissner <meissner@tiktok.cygnus.com>
7962
7963 * libc/string/strtok.c: Fix doc typo.
7964
7965 Mon Jun 3 11:30:00 1996 J.T. Conklin <jtc@rtl.cygnus.com>
7966
7967 * libc/include/sys/reent.h (struct _reent): Removed _asctime,
7968 _next, _scanpoint, _signgam fields.
7969
7970 * libc/include/stdlib.h (rand_r): Added new declaration.
7971 (_rand_r, _srand_r): Removed declarations.
7972 * libc/stdlib/rand.c (_rand_r, _srand_r): Removed, these functions
7973 have been made obsolete by rand_r.
7974 * libc/stdlib/rand_r.c: New file, rand_r function as specified
7975 by POSIX.1c.
7976
7977 * libc/string/strtok.c: Update documentation to describe
7978 strtok_r().
7979
7980 Sat Jun 1 23:50:39 1996 Michael Meissner <meissner@cygnus.com>
7981
7982 * libc/include/sys/stat.h (stat structure): Use the expanded stat
7983 structure on Solaris, and PowerPC systems even though __svr4__ is
7984 defined.
7985
7986 Tue May 28 13:02:42 1996 Doug Evans <dje@canuck.cygnus.com>
7987
7988 * libc/sys/go32/sys/errno.h (ENOSYS,ESPIPE): Keep values <= 255.
7989
7990 Fri May 17 10:34:44 1996 Ian Lance Taylor <ian@cygnus.com>
7991
7992 * host/any: Use ../.. rather than .. to get to the main build
7993 directory. This matches the current layout of the build
7994 directory.
7995
7996 Wed May 15 15:52:27 1996 Jeffrey A Law (law@cygnus.com)
7997
7998 * libc/machine/h8300/__main.S: Delete. No longer needed.
7999 * libc/machine/h8300/Makefile.in: Corresponding changes.
8000 * libc/sys/h8300hms/crt1.c: New file.
8001 * libc/sys/h8300hms/Makefile.in: Corresponding changes.
8002 * libc/sys/h8300hms/crt0.s: Call __main.
8003
8004 * libc/sys/h8300hms/crt0.S: Use temporary label names
8005 for branch targets.
8006
8007 Mon May 13 14:26:30 1996 Doug Evans <dje@canuck.cygnus.com>
8008
8009 * libc/stdio/fopen.c (_fopen_r): Fix arguments to fseek.
8010
8011 Fri May 3 16:38:23 1996 Michael Meissner <meissner@tiktok.cygnus.com>
8012
8013 * libc/reent/impure.c (_impure_ptr): Force the impure pointer into
8014 .sdata on the PowerPC so that we can link newlib with code
8015 compiled with -msdata.
8016
8017 Mon Apr 29 21:38:02 1996 Doug Evans <dje@canuck.cygnus.com>
8018
8019 * libc/sys/arm/syscalls.c (_sbrk): Rename end to __end__.
8020
8021 Thu Apr 25 06:38:59 1996 Michael Meissner <meissner@cygnus.com>
8022
8023 * libc/sys/cygwin32/crt0.c (mainCRTStartup): On PowerPC, set the
8024 exception handler to __cygwin_exception_handler.
8025
8026 Tue Apr 23 15:14:20 1996 Ian Lance Taylor <ian@cygnus.com>
8027
8028 * libc/include/machine/setjmp.h: Check _AM29K, not ___AM29K__.
8029
8030 Sun Apr 21 12:11:51 1996 Doug Evans <dje@blues.cygnus.com>
8031
8032 * libm/math/Makefile.in ({w,wf}_cabs.o,{w,wf}_drem.o): Add rule for
8033 SunOS VPATH.
8034 * libc/stdlib/Makefile.in (atoff.o,atol.o,mblen.o,mbstowcs.o,
8035 wcstombs.o): Likewise.
8036
8037 Thu Apr 18 12:37:01 1996 Doug Evans <dje@canuck.cygnus.com>
8038
8039 * libc/stdlib/environ.c (initial_env): New static local.
8040 (environ): Point to `initial_env'.
8041
8042 * libc/include/machine/setjmp.h: Clean up.
8043 (__H8300H__,__PPC__): Define _JBTYPE.
8044 (__arm__): Provide entry for.
8045 (sigjmp_buf): Delete.
8046 (jmp_buf): Use _JBTYPE if defined, otherwise int.
8047
8048 Thu Apr 18 12:10:52 1996 Jeffrey A Law (law@cygnus.com)
8049
8050 * libc/machine/h8300/strcmp.S: Sign extend the result to
8051 32bits so we don't lose with -mint32.
8052
8053 Sun Apr 14 19:59:52 1996 Doug Evans <dje@canuck.cygnus.com>
8054
8055 * libc/sys/go32/sys/errno.h: New file.
8056 * libc/sys/go32/Makefile.in (stat.o): Depend on stat.c.
8057 * libc/sys/go32/gerrno.s (syscall_error): Call __errno to get
8058 errno's address (make compatible with rest of newlib).
8059 * libc/sys/go32/stat.c (fixinode): Set errno upon failure.
8060 * libc/string/strerror.c (strerror): Surround each case with #ifdef.
8061
8062 Thu Mar 28 13:44:42 1996 Doug Evans <dje@canuck.cygnus.com>
8063
8064 * libc/machine/sparc/{scan.c,shuffle.c}: New files.
8065 * libc/machine/sparc/Makefile.in: Build them.
8066 * libc/machine/sparc/machine/sparclet.h: New file.
8067
8068 Mon Mar 25 15:29:14 1996 J.T. Conklin <jtc@rtl.cygnus.com>
8069
8070 * libc/machine/sh/asm.h: New file.
8071 * libc/machine/sh/setjmp.S: Only save clobbered registers. Added
8072 support for SH3e's FP registers. Use asm.h.
8073
8074 Mon Mar 25 11:59:23 1996 Jeffrey A Law (law@cygnus.com)
8075
8076 * libc/stdio/vfprintf.c (cvt): Accept a reent structure
8077 as first argument. Call _dtoa_r and pass the reent structure
8078 instead of calling __dtoa.
8079
8080 Fri Mar 22 13:59:37 1996 Jeffrey A Law (law@cygnus.com)
8081
8082 * libc/include/sys/config.h: Define DOUBLE_IS_32BITS for
8083 the h8300, h8500, and others. Add comments for some rather
8084 dubious code.
8085
8086 Thu Mar 14 18:04:43 1996 Ian Lance Taylor <ian@cygnus.com>
8087
8088 * Makefile.in (check): Check that testsuite exists before cd.
8089
8090 Tue Mar 12 11:46:47 1996 Michael Meissner <meissner@tiktok.cygnus.com>
8091
8092 * libc/include/string.h (strsep): Correct prototype.
8093
8094 Mon Mar 11 09:55:19 1996 Doug Evans <dje@charmed.cygnus.com>
8095
8096 * libc/sys/h8300/_exit.c (_exit,__exit): Set r0 to 0 before `sleep'.
8097 * libc/sys/h8300/misc.c (_kill): Set r0 to indicate abort and `sleep'.
8098 * libc/sys/h8300/crt0.S (_start): Call exit instead of `sleep'.
8099
8100 Wed Mar 6 11:51:55 1996 Doug Evans <dje@charmed.cygnus.com>
8101
8102 * libc/posix/{creat.c,isatty.c}: New files.
8103 * libc/posix/Makefile.in (OFILES): Add creat.o, isatty.o.
8104
8105 * libc/sys/sparc64/crt0.S (environ): Delete.
8106 (.LHaveBias): Renamed from HaveBias.
8107
8108 Thu Feb 15 10:48:37 1996 Doug Evans <dje@charmed.cygnus.com>
8109
8110 * libc/stdlib/mallocr.c (etext): Move decl inside ifdef WARN_VLIMIT.
8111 (_morecore_r): Delete SBRK_IS_ALLOC support.
8112
8113 Tue Feb 13 09:44:09 1996 Michael Meissner <meissner@tiktok.cygnus.com>
8114
8115 * libc/sys/cygwin32/Makefile.in (lib.a): Make lib.a with a dummy
8116 module rather than touch, so we don't get warning messages when
8117 all of the libraries are combined into libc.a.
8118
8119 Tue Feb 13 06:32:07 1996 Doug Evans <dje@charmed.cygnus.com>
8120
8121 * libc/sys/sparclite/{Makefile.in,crt0.s}: Deleted.
8122 crt0.s replaced by version in libgloss.
8123
8124 Mon Feb 5 15:17:51 1996 J.T. Conklin <jtc@rtl.cygnus.com>
8125
8126 * libc/reent/Makefile.in (OFILES): Add impure.o.
8127 * libc/reent/impure.o: New file, define initial reentrancy struct.
8128 * libc/reent/reent.c: Remove above definition.
8129
8130 * libm/math/sf_asinh.c: Fix typo.
8131
8132 * Makefile.in (MATHOBJS_IN_LIBC): Removed sr_ldexp.o and
8133 srf_ldexp.o.
8134
8135 * libm/libm.texinfo: Change documentation to reflect changes
8136 in reentrancy model.
8137 * libm/math/w_gamma.c: Likewise.
8138
8139 Wed Jan 31 18:49:45 1996 Steve Chamberlain <sac@slash.cygnus.com>
8140
8141 * configure.in (*-*-cygwin32): New.
8142 (*-*-win32): Deleted.
8143 * libc/sys/win32 renamed libc/sys/cygwin32.
8144
8145 Tue Jan 30 22:09:03 1996 Michael Meissner <meissner@tiktok.cygnus.com>
8146
8147 * libc/include/sys/file.h: New include file.
8148
8149 Fri Jan 26 15:52:54 1996 Steve Chamberlain <sac@slash.cygnus.com>
8150
8151 * libc/include/machine/setjmp.h: Increase size of PPC jmp_buf.
8152
8153 Tue Jan 23 17:49:16 1996 Steve Chamberlain <sac@slash.cygnus.com>
8154
8155 * libc/include/sys/wait.h (WIFSIGNALED): Fix.
8156
8157 Tue Jan 16 09:28:10 1996 Michael Meissner <meissner@tiktok.cygnus.com>
8158
8159 * doc/makedoc.c (realloc): Declare at file scope.
8160 (catchar): Not here.
8161
8162 Wed Dec 27 15:45:23 1995 Doug Evans <dje@canuck.cygnus.com>
8163
8164 * Makefile.in (VERSION): Update to 1.7.0.
8165 * {libc,libm}/Makefile.in (VERSION): Likewise.
8166 * configure.in: Minor clean up of multilib stuff.
8167
8168 From David Johnson <davidj@ICSI.Berkeley.EDU>
8169 * {libc,libm}/Makefile.in (lib[cm].a): Delete library first.
8170
8171 * libc/stdlib/environ.c: New file.
8172 * libc/stdlib/Makefile.in (OFILES): Build it.
8173 * libc/sys/h8500hms/crt0.c (environ): Deleted.
8174 * libc/sys/m88kbug/crt0.c (environ): Deleted.
8175 * libc/sys/z8ksim/crt0.c (environ): Deleted.
8176 * libc/sys/netware/environ.c: Deleted.
8177
8178 Tue Dec 19 15:24:46 1995 Kim Knuttila <krk@cygnus.com>
8179
8180 * configure.in (links): set sys_dir, posix_dir, syscall_dir
8181
8182 Wed Dec 13 04:16:25 1995 Michael Meissner <meissner@wogglebug.tiac.net>
8183
8184 * doc/makedoc.c (init_string_with_size,nextword): Move malloc
8185 declaration out to external scope and declare it PTR, not char *.
8186
8187 Mon Dec 11 17:35:12 1995 steve chamberlain <sac@slash.cygnus.com>
8188
8189 * libc/include/sys/unistd.h (getpagesize): New declaration.
8190 (_SC_PAGESIZE): New definition.
8191 * libc/include/time.h (CLK_TCK): Defined as CLOCKS_PER_SEC.
8192 * libc/configure.in (i[345]86-*-win32): Remove -DNO_FORK.
8193
8194 Fri Dec 1 16:48:46 1995 James G. Smith <jsmith@cygnus.co.uk>
8195
8196 * libc/sys/vr4300/syscalls.c (sbrk): Fixed memory
8197 addressing. System call returns size, not (last address + 1).
8198
8199 Thu Nov 30 15:05:26 1995 J.T. Conklin <jtc@rtl.cygnus.com>
8200
8201 * libm/math/*.c: Removed _foo_r() reentrancy API.
8202 * libc/include/math.h: Removed _foo_r prototypes and macros.
8203
8204 * libm/math/*.c: On systems with IEEE single precision "doubles"
8205 move foo() -> foof() wrapper code from the files that implement
8206 the standard IEEE double precision functions to the files that
8207 implement IEEE single precision functions. (ie. On those systems
8208 sin is moved from s_sin.c to sf_sin.c). There should eventually
8209 be use of a C extension (like gcc's alias attribute) so that the
8210 wrappers are not needed at all.
8211
8212 * libc/sys/sysnec810/sbrk.c: Cast &end to char * to get around
8213 strict NEC V810 compiler.
8214 * libc/misc/dprintf.c (getnumber): Cast char * to unsigned char *
8215 for same reason.
8216
8217 Wed Nov 29 14:25:05 1995 J.T. Conklin <jtc@rtl.cygnus.com>
8218
8219 * libc/stdlib/strtol.c (_strtol_r): Replaced with implementation
8220 from NetBSD C library.
8221 * libc/stdlib/strtoul.c (_strtoul_r): Likewise.
8222
8223 * libc/stdlib/assert.c (__assert): Renamed from __assertfail
8224 and adapted from implementation I wrote for NetBSD C library.
8225 The difference is __assert doesn't take a format argument,
8226 so that there won't be multiple copies of the same string
8227 constant in the executable if assertions are enabled in
8228 more than one source module.
8229 * libc/include/assert.h (assert): Changed to call __assert.
8230
8231 Tue Nov 28 16:54:26 1995 J.T. Conklin <jtc@rtl.cygnus.com>
8232
8233 * libc/stdlib/strtod.c (_strtod_r): Changed to not assign to
8234 word1 on systems with 32 bit doubles.
8235 * libc/stdlib/qsort.c (qsort): Cast some void *'s to char *'s
8236 so that we can do arithmetic on them.
8237 * libc/misc/dprintf.c: Changed to support stdarg.h for ANSI
8238 compilers.
8239
8240 Tue Nov 28 16:03:32 1995 Doug Evans <dje@canuck.cygnus.com>
8241
8242 * libc/sys/arm/crt0.S: Zero bss.
8243
8244 Fri Nov 24 16:09:23 1995 Doug Evans <dje@deneb.cygnus.com>
8245
8246 * libc/include/unctrl.h: New file.
8247 * libc/misc/{Makefile.in,dprintf.c,unctrl.c,misc.tex}: New files.
8248 * configure.in (subdirs): Add libc/misc.
8249 * libc/Makefile.in (SUBDIRS): Add misc.
8250 (SUBLIBS): Add misc/lib.a.
8251
8252 * libc/include/sys/reent.h (struct _reent): Make __sf last member.
8253
8254 Wed Nov 22 19:49:47 1995 Doug Evans <dje@deneb.cygnus.com>
8255
8256 * libc/stdio/vfprintf.c (__sbprintf): Init fake._data.
8257 (_vfprintf_r): Call CHECK_INIT.
8258
8259 Tue Nov 14 02:52:12 1995 Doug Evans <dje@canuck.cygnus.com>
8260
8261 * Makefile.in (MULTITOP): Delete.
8262 (MULTISRCTOP, MULTIBUILDTOP): Add.
8263 * configure.in: Delete call to cfg-ml-com.in. Call config-ml.in
8264 instead of cfg-ml-pos.in.
8265
8266 Wed Nov 8 01:24:08 1995 James G. Smith <jsmith@pasanda.cygnus.co.uk>
8267
8268 * libc/sys/vr4300/syscalls.c: Added clean version of sbrk().
8269 * libc/sys/vr4300/crt0.S: Cleaned up. Added check for FPU
8270 presence.
8271
8272 Thu Nov 2 22:25:06 1995 Michael Meissner <meissner@tiktok.cygnus.com>
8273
8274 * libc/string/strtok.c: Include string.h to pick up strtok_r
8275 prototype.
8276
8277 Wed Nov 1 18:54:11 1995 Jason Molenda (crash@phydeaux.cygnus.com)
8278
8279 * libc/string/strtok.c: include <_ansi.h>.
8280 * libc/time/asctime_r.c: `reresult' -> `result'.
8281
8282 Wed Nov 1 14:35:52 1995 J.T. Conklin <jtc@rtl.cygnus.com>
8283
8284 * libc/time/{ctime.c, gmtime.c, lcltime.c}: Wrap functions
8285 in #ifndef _REENT_ONLY ... #endif conditional.
8286
8287 * libc/include/string.h (_strtok_r): Remove declaration.
8288 * libc/include/time.h (_asctime_r): Remove declaration.
8289 * libc/string/strtok.c (_strtok_r): Removed.
8290 * libc/time/asctime.c (_asctime_r): Removed.
8291
8292 * libc/string/Makefile.in (OFILES): Add new object.
8293 * libc/string/strtok_r.c: New file. strtok_r function as
8294 specified by POSIX.1c, adapted from strtok implementation
8295 from NetBSD C library.
8296 * libc/string/strtok.c (strtok): Reimplemented in terms of
8297 strtok_r.
8298
8299 * libc/time/Makefile.in (OFILES): Add new objects.
8300 * libc/time/{asctime_r.c, ctime_r.c, gmtime_r.c, lcltime_r.c}:
8301 New files, reentrant time functions specified by POSIX.1c.
8302 * libc/time/{asctime.c, ctime.c, gmtime.c, lcltime.c}: Non-
8303 reentrant time functions re-written in terms of reentrant
8304 functions.
8305 * libc/time/lcltime.c: Renamed from localtime.c
8306
8307 * libc/include/time.h: Add prototypes for asctime_r, ctime_r,
8308 gmtime_r, and localtime_r.
8309
8310 Sat Oct 28 14:34:31 1995 steve chamberlain <sac@slash.cygnus.com>
8311
8312 * libc/sys/win32/crt0.c (mainCRTStartup): Call cygwin_crt0.
8313 * libc/include/sys/unistd.h (getlogin): Revert change of
8314 Oct 19.
8315 * libc/include/sys/signal.h (sigprocmask): Change prototype
8316 so it compiles with c++.
8317
8318 Wed Oct 25 15:43:18 1995 Michael Meissner <meissner@cygnus.com>
8319
8320 * libc/include/machine/setjmp.h (PowerPC _JBLEN): Consider it a
8321 PowerPC if __PPC__ is defined. Bump jump_buf length to 62 ints,
8322 to give some room in case we need to align the jmp_buf.
8323
8324 * libc/machine/powerpc/setjmp.S (setjmp, longjmp): Rewrite to use
8325 the new ppc-asm.h include file the compiler provides to specify
8326 function prologue/epilogue. Eliminate saves of the xer and ctr
8327 registers, which are volatile. Before starting to save registers,
8328 align to 8 byte boundary.
8329
8330 Mon Oct 23 11:20:51 1995 James G. Smith <jsmith@pasanda.cygnus.co.uk>
8331
8332 * libc/sys/vr4300/syscalls.c: Added empty kill() function,
8333 referenced by standard libraries.
8334
8335 Thu Oct 19 21:39:47 1995 Fred Fish <fnf@cygnus.com>
8336
8337 * libc/unix/Makefile.in, libc/string/Makefile.in,
8338 libc/stdio/Makefile.in, libc/reent/Makefile.in,
8339 libc/posix/Makefile.in:
8340 Remove tabs from otherwise empty line. Confuses some
8341 older non-GNU versions of "make".
8342
8343 Thu Oct 19 16:32:17 1995 steve chamberlain <sac@slash.cygnus.com>
8344
8345 * libc/sys/unistd.h (getlogin): Returns const char *.
8346
8347 Wed Oct 18 12:57:50 1995 steve chamberlain <sac@slash.cygnus.com>
8348
8349 * libc/include/fcntl.h (O_BINARY, O_TEXT): New.
8350 * libc/include/errno.h: Moved into and include...
8351 * libc/include/sys/errno.h: New file.
8352 * libc/include/sys/wait.h: New file.
8353 * libc/stdio/rename.c (_rename_r): Use _rename system call if available.
8354 * libc/sys/win32/*: Moved out.
8355 * libc/sys/win32/crt0.c: Rewritten to cope with shared library.
8356 * configure.in (i[345]86-*-win32): HAVE_RENAME
8357
8358 Wed Oct 18 09:58:27 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
8359
8360 * libc/unix/sigset.c (sigemptyset, sigaddset): Prefix #undef to
8361 avoid macro expansion for these two names.
8362
8363 Tue Oct 17 08:45:33 1995 Doug Evans <dje@canuck.cygnus.com>
8364
8365 * libc/machine/h8500/psi.S: r6 renamed to fp.
8366
8367 Sun Oct 15 12:58:10 1995 Michael Meissner <meissner@wogglebug.tiac.net>
8368
8369 * configure.in (powerpc*): No longer need to define
8370 NO_LONGLONG_POINTERS to supress warnings.
8371
8372 Sat Oct 14 12:55:08 1995 Jim Wilson <wilson@chestnut.cygnus.com>
8373
8374 * libc/reent/reent.c (_reclaim_reent): Call cleanup indirectly
8375 through PTR instead of directly.
8376
8377 * libc/sys/sh/crt0.S: Clean up formatting. Delete unused
8378 non-standard constructor support.
8379
8380 Thu Oct 12 11:39:42 1995 J.T. Conklin <jtc@rtl.cygnus.com>
8381
8382 * libc/stdlib/dtoa.c (_dtoa_r): Set result pointer to the
8383 address of the Bigint instead of the address of its _x field,
8384 as the size the result buffer was calculated accordingly.
8385 Fix from Jim Wilson <wilson@chestnut@cygnus.com>.
8386
8387 * libc/stdlib/{div.c, ldiv.c}: Replaced with implementation
8388 from NetBSD C library. No longer special cases division by
8389 zero (which needs to be done by the application anyway), but
8390 it doesn't need to call abs() (or labs()) four times either.
8391
8392 * libc/stdlib/qsort.c: Replaced with implementation from
8393 NetBSD C library.
8394
8395 Tue Oct 10 14:01:10 1995 J.T. Conklin <jtc@rtl.cygnus.com>
8396
8397 * libc/stdio/vfprintf.c: Replaced with implementation from
8398 NetBSD C library (which is derived from the 4.4BSD C library).
8399 * libc/stdio/cvt.c: Removed.
8400 * libc/stdio/Makefile: Updated.
8401
8402 Tue Oct 10 12:15:23 1995 steve chamberlain <sac@slash.cygnus.com>
8403
8404 * libc/sys/win32/syscalls.c (rename): New.
8405 * libc/sys/win32/include/winkernel.h (MoveFileExA): New.
8406
8407 Fri Oct 6 12:18:43 1995 Jim Wilson <wilson@chestnut.cygnus.com>
8408
8409 * libc/machine/sh/Makefile.in (setjmp.o): Depend on setjmp.S.
8410 * libc/machine/sh/setjmp.S: Rename from setjmp.s.
8411
8412 * libc/sys/sh/Makefile.in (OFILES, all): Delete setjmp.o.
8413 (setjmp.o): Delete rule to build setjmp.o.
8414 * libc/sys/sh/setjmp.S: Delete file.
8415
8416 Fri Oct 6 11:19:05 1995 J.T. Conklin <jtc@rtl.cygnus.com>
8417
8418 * libc/stdlib/mprec.c (d2b): Added support for _DOUBLE_IS_32BITS.
8419 * libc/stdlib/mprec.h: Fixed constants used for IEEE single float
8420 format. Added #defines to map d2b, i2b, low0bits, lshift, mult,
8421 pow5mult and s2b to identifiers with leading underscores.
8422 * libc/stdlib/Makefile.in: Add mprec.h as a dependency to dtoa.o,
8423 ecvtbuf.o, mprec.o and strtod.o. Sort dependencies.
8424
8425 Thu Oct 5 17:27:30 1995 steve chamberlain <sac@slash.cygnus.com>
8426
8427 * libc/sys/posix/popen.c (sys/types.h): Include.
8428
8429 Thu Oct 5 16:33:01 1995 Doug Evans <dje@canuck.cygnus.com>
8430
8431 * libc/sys/win32/syscalls.h (fhandler): New struct.
8432 (__lookup_fhandler, __lookup_fhandler_hook): Declare.
8433 (__fhandler_normal): Declare.
8434 (hinfo): New member op_handlers.
8435 * libc/sys/win32/syscalls.c (__read): Don't validate fd.
8436 (__write): Likewise.
8437 (_read, _write, _open, _close, _lseek): Validate fd here.
8438 Move file type specific stuff to foo_normal.
8439 (read_normal, write_normal, open_normal, close_normal, lseek_normal):
8440 New functions.
8441 (__lookup_fhandler): New function.
8442 (__lookup_fhandler_hook, __fhandler_normal): New variables.
8443
8444 From anders.blomdell@control.lth.se (Anders Blomdell)
8445 * libc/sys/win32/crt0.c (vfork_init): Unset __FD_TABLE__.
8446 Don't touch standard handles.
8447 * libc/sys/win32/spawn.c (_spawn): Use STARTF_USESTDHANDLES.
8448 (_execve): Only create __FD_TABLE__ if necessary.
8449 * libc/sys/win32/include/winkernel.h (STARTF_*): Define.
8450
8451 Thu Oct 5 14:25:14 1995 steve chamberlain <sac@slash.cygnus.com>
8452
8453 * libc/sys/win32/sys/termios.h (FLUSHO): New.
8454 * libc/sys/win32/include/win*.h: Moved a load of prototypes around.
8455 * libc/sys/win32/pipe.c (_fctnl): Ignore F_SETFL without errors.
8456 * libc/sys/win32/exception.c (ehandler3): set strace when a signal
8457 without a handler is received.
8458 * libc/sys/win32/Makefile.in: Remove --nodelete.
8459 * libc/sys/win32/resouce.c (gettimeofday): New.
8460 * libc/sys/win32/syscalls.c (path_to_real_path): New.
8461 * libc/sys/win32/syscalls.h (include/wincon.h): Don't include.
8462
8463 Wed Oct 4 13:10:35 1995 Doug Evans <dje@canuck.cygnus.com>
8464
8465 * libc/sys/win32/dirsearch.c (opendir): stat real path name.
8466 Don't append "/*" to search pattern if trailing '/' already there,
8467 append "*".
8468 * libc/sys/win32/spawn.c (_spawn): CreateProcess doesn't seem to
8469 like /'s, convert them to \'s. Handle //<drive>/ path names.
8470 Add space for quoted \'s in arg string. Print translated prog name
8471 and original prog name.
8472 (_execve): Handle parent doing exec a teensy bit better.
8473 * libc/sys/win32/syscalls.h (__path_to_real_path): Update prototype.
8474 * libc/sys/win32/syscalls.c (__path_to_real_path): Don't assume
8475 path needs conversion, handle both cases. Delete `const' from result.
8476 (hash_path_name): New function.
8477 (_open): Call it.
8478 (_stat): Likewise. Fill in more fields for directories.
8479 * libc/sys/win32/wait.c (_wait): Explicitly pass -1 to waitpid.
8480 (wait_for_any): Fix trace message.
8481 (waitpid): Explicitly test for intpid == 0.
8482
8483 From anders.blomdell@control.lth.se (Anders Blomdell)
8484 * libc/sys/win32/spawn.c (__vfork_get_empty_entry): zero fill result
8485 so `next' is valid.
8486
8487 Sat Sep 30 15:00:15 1995 Jason Molenda (crash@phyeaux.cygnus.com)
8488
8489 * libc/sys/win32/spawn.c (_spawn): Make quoting rules more
8490 complicated.
8491
8492 Sat Sep 30 10:25:57 1995 Jason Molenda (crash@phydeaux.cygnus.com)
8493
8494 * libc/include/_ansi.h: set _HAVE_STDC if __STDC__ is defined
8495 at all, not just == 1.
8496 * libm/math/wf_acos.c (acosf): check for _HAVE_STDC, not __STDC__.
8497
8498 Sat Sep 30 04:30:09 1995 Jason Molenda (crash@phydeaux.cygnus.com)
8499
8500 * libc/sys/win32/include/winbase.h: include <wintypes.h> and <winnt.h>
8501 * libc/sys/win32/include/wintypes.h: include <winnt.h>
8502 * libc/sys/win32/include/winnt.h: avoid multiple inclusion of this
8503 file.
8504
8505 Fri Sep 29 01:49:17 1995 steve chamberlain <sac@slash.cygnus.com>
8506
8507 * libc/sys/syscalls.c (getcwd): Fix off by one error.
8508
8509 * libc/sys/signal.c (sleep): Fill it in.
8510 * libc/sys/termios.c (tcflush): Use PurgeComm
8511 (tcsetattr): Set some more of the bits.
8512 * libc/sys/include/winkernel.h: Add PurgeComm and Sleep.
8513
8514 Fri Sep 29 04:33:53 1995 Doug Evans <dje@deneb.cygnus.com>
8515
8516 * libc/sys/arm/crt0.S (fp): Initialize to 0.
8517 Conditionally include .idata$3 stuff ifdef __pe__.
8518
8519 Fri Sep 29 01:49:17 1995 steve chamberlain <sac@slash.cygnus.com>
8520
8521 * libc/sys/win32/crt0.c (hmap_init): Call __init_hinfo.
8522 * libc/sys/win32/pipe.c (pipe): Ditto.
8523 * libc/sys/win32/syscalls.c (__read): Use new vtime and vmin fields.
8524 * libc/sys/win32/syscalls.h (hinfo): vtime, vmin are new.
8525 * libc/sys/win32/termios.c (tcsetattr): Init new fields.
8526 (tcgetattr): Contents are new.
8527 * libc/sys/win32/include/winkernel.h (DCB): New.
8528 (GetCommState, SetCommState): New.
8529
8530 Thu Sep 28 16:29:09 1995 Doug Evans <dje@deneb.cygnus.com>
8531
8532 * libc/sys/arm/crt0.S (_start): Define.
8533
8534 Thu Sep 28 12:26:45 1995 steve chamberlain <sac@slash.cygnus.com>
8535
8536 * libc/sys/arm/crt0.S: Move stack to top of RAM on PIE board.
8537 * libc/sys/arm/syscalls.c (_read, _write): Use the SWI properly.
8538
8539 * libc/sys/win32/sysconf.c: New
8540 * libc/sys/win32/sys/winadvapi.h: New
8541 * libc/sys/win32/syscalls.h (hinfo): Added timeout_len, w_binary, r_binary.
8542 * libc/sys/win32/crt0.c (hmap_init): Initialize new fields.
8543 * libc/sys/win32/pipe.c (pipe): Ditto.
8544 * libc/sys/win32/signal.c (_raise): New.
8545 (_kill): Moved from spawn.c
8546 * libc/sys/win32/spawn.c (kill): Moved to signal.c
8547 * libc/sys/win32/syscalls.c (__read): Use new fields.
8548 (_open): Ditto.
8549 * libc/sys/win32/termios.c (tcflush, tcsetattr, tcgetattr): Fill in.
8550 * libc/sys/win32/exceptions.c (__stack_trace): Keep going for longer.
8551 * libc/include/sys/unistd.h (rmdir): Takes const path.
8552 * libc/include/sys/stat.h (mkdir): Takes const path.
8553 * libc/include/sys/signal.h (SIGTTOU, SIGTTIN): New for win32.
8554
8555 Thu Sep 28 10:11:27 1995 Doug Evans <dje@canuck.cygnus.com>
8556
8557 * libc/sys/win32/spawn.c (_spawn): Fix quoting.
8558
8559 Add support for specifying paths as //<drive>/foo/bar.
8560 * libc/sys/win32/syscalls.h (__path_needs_conversion_p): Declare.
8561 (__path_to_real_path): Declare.
8562 (PATH_TO_REAL_PATH): New macro.
8563 * libc/sys/win32/syscalls.c (__win32_pid_to_posix_pid): Minor cleanup.
8564 (__path_needs_conversion_p, __path_to_real_path): New functions.
8565 (_open): Fix test for error return from CreateFileA.
8566 Handle new path syntax.
8567 (_link, mkdir, rmdir, getcwd, chdir, stat): Handle new path syntax.
8568 * libc/sys/win32/dirsearch.c (opendir): Likewise.
8569
8570 Wed Sep 27 16:36:46 1995 steve chamberlain <sac@slash.cygnus.com>
8571
8572 * libc/sys/win32/include/*.h: Reorganized
8573 * libc/sys/win32/include/WINREADME: New.
8574 * libc/sys/win32/Makefile.in (DLLS): Build version.a.
8575 * libc/sys/win32/*.c: Fix for new include scheme.
8576 * libc/sys/win32/crt0.c (__this_uinfo_buf, __this_uinfo): New.
8577 * libc/sys/win32/getlogin.c (getlogin): Use uinfo.
8578 * libc/sys/win32/passwd.c (*): Fix.
8579 * libc/sys/win32/syscalls.c (get[e|][g|u]id): Use passwd info.
8580 (_stat): Get directory owner and permissions right.
8581 * libc/sys/win32/syscalls.h (uinfo): New.
8582 * libc/sys/win32/version.def: Remove leading underscores.
8583
8584 Tue Sep 26 18:18:47 1995 Jason Molenda (crash@phydeaux.cygnus.com)
8585
8586 * libc/sys/win32/key.c: include "include/wincon.h".
8587
8588 Tue Sep 26 07:21:48 1995 steve chamberlain <sac@slash.cygnus.com>
8589
8590 * libc/sys/win32/{key, stubs}.c: New.
8591 * libc/sys/win32/Makefile: Adjust to cope.
8592 * libc/sys/win32/crt0.c (vfork_init_first): Cope with -ve pids.
8593 (environ_init): Change env names to upper case.
8594 * libc/sys/win32/dirsearch.c (readdir): Don't fill in inode number.
8595 * libc/sys/win32/passwd.c (*): Fill in the functions.
8596 * libc/sys/win32/pipe.c (_fcntl): F_GETFL returns O_RDWR.
8597 * libc/sys/win32/spawn.c (_spawn): Cope with -ve pids.
8598 * libc/sys/win32/syscalls.c (__win32_pid_to_posix_pid): New function.
8599 (_open): Initialze hmap->execable_p too.
8600 * libc/sys/win32/syscalls.c (getuid, getgid, geteuid, getegid): Return from macros.
8601 (_fstat): Fill in permissions.
8602 * libc/sys/win32/syscalls.h (hinfo): Add execable_p.
8603
8604 Fri Sep 22 13:47:27 1995 Doug Evans <dje@canuck.cygnus.com>
8605
8606 * configure.in (cfg-ml-com.in invocation): Use ${with_multilib_top}
8607 if defined.
8608 (cfg-ml-pos.in invocation): Likewise.
8609
8610 Fri Sep 22 11:43:44 1995 J.T. Conklin <jtc@rtl.cygnus.com>
8611
8612 * Makefile.in (MATHOBJS_IN_LIBC): Added s_isinf.o, sf_isinf.o,
8613 s_isnan.o and sf_isnan.o.
8614
8615 Wed Sep 20 14:50:19 1995 Ian Lance Taylor <ian@cygnus.com>
8616
8617 * All Makefile.in files: added maintainer-clean target as a
8618 synonym for realclean.
8619
8620 Wed Sep 20 11:02:50 1995 Jeff Law (law@snake.cs.utah.edu)
8621
8622 * libc/include/machine/setjmp.h: Add hppa support.
8623 * libc/machine/hppa/setjmp.S: New file with setjmp/longjmp
8624 support.
8625 * libc/machine/hppa/Makefile.in: Related changes.
8626
8627 Tue Sep 19 12:09:01 1995 J.T. Conklin <jtc@blues.cygnus.com>
8628
8629 * configure.in (machine_dir): Don't set for v810-*-*.
8630
8631 Fri Sep 15 20:22:08 1995 Jason Molenda (crash@phydeaux.cygnus.com)
8632
8633 * libc/sys/win32/crt0.c (passover): Change to handle MKS quoting
8634 conventions correctly.
8635
8636 Thu Sep 14 13:37:22 1995 J.T. Conklin <jtc@blues.cygnus.com>
8637
8638 * libc/stdio/puts.c: Update documentation of return value to match
8639 ANSI standard.
8640
8641 Thu Sep 14 01:52:37 1995 Doug Evans <dje@canuck.cygnus.com>
8642
8643 Fix file descriptor inheritance.
8644 * libc/sys/win32/syscalls.h (CHILD_P): Define again.
8645 (NOT_OPEN_FD): Fix.
8646 * libc/sys/win32/spawn.c (vfork0): Only create inheritable handle if
8647 close-on-exec flag not set. Initialize child's entire fd table.
8648 * libc/sys/win32/syscalls.c (_open): Only create inheritable handle if
8649 CHILD_P.
8650 * libc/sys/win32/pipe.c (pipe): Only create new handle as inheritable
8651 if CHILD_P. Initialize entire hmap entry.
8652 (dup): Only create new handle as inheritable if CHILD_P.
8653 (dup2): Likewise. Properly initialize hmap entry.
8654
8655 * libc/sys/win32/spawn.c (_execve): Don't pass _P_SEARCH_PATH to
8656 _spawn.
8657 (_exit): Use CHILD_P.
8658 * libc/sys/win32/syscalls.c (_fstat): Fix call to memset.
8659 (_stat): Likewise.
8660
8661 Mon Sep 11 23:09:39 1995 Jason Molenda (crash@phydeaux.cygnus.com)
8662
8663 * libc/sys/win32/crt0.c (passover): fix up the state table.
8664 * libc/posix/popen.c: Added.
8665 * libc/posix/Makefile.in: compile popen.c.
8666
8667 Mon Sep 11 11:43:38 1995 J.T. Conklin <jtc@cygnus.com>
8668
8669 * libc/include/machine/ieeefp.h: On the h8/300, h8/300h and
8670 h8/500 define _DOUBLE_IS_32BITS.
8671
8672 Sat Sep 9 17:55:54 1995 Doug Evans <dje@canuck.cygnus.com>
8673
8674 Get vfork/exec/spawn/cwait/wait working again.
8675 * libc/sys/win32/syscalls.h (VFORK_NEWBORN_PSEUDO_PID): Define.
8676 (procinfo): New member vfork_level.
8677 * libc/sys/win32/crt0.c (__vfork_next_pid): Delete.
8678 (vfork_init_first): Use GetCurrentProcessId to get pid.
8679 Initialize vfork_level.
8680 (vfork_init): Delete __PID__.
8681 (environ_init): New function. Undo patch of Aug 19, Posix says
8682 environment variables are case sensitive.
8683 (mainCRTStartup): Call it.
8684 * libc/sys/win32/spawn.c (__vfork_next_pid): Delete.
8685 (my_longjump: Make static.
8686 (_spawn): New argument `h'. Delete setting of __PID__.
8687 Delete local `idx'. Look for chars that need quotes, rather than
8688 ones that don't. Set handle of created process in `h'.
8689 Result is process id if created task.
8690 (allocate_spawn_entry): New function.
8691 (spawnvp, spawnv): Call it. Store handle and pid in procinfo entry.
8692 (_execve): Set __FD_TABLE__ before spawning child.
8693 Scan our fd table when passing fds, not our parent's.
8694 Store handle and pid in procinfo entry.
8695 (vfork0): Ensure strace message always printed.
8696 Set child pid to VFORK_NEWBORN_PSEUDO_PID.
8697 (vfork): Don't clobber result of vfork0.
8698 * libc/sys/win32/wait.c (cwait): Fix non-error result (is pid).
8699 (wait_for_any): Ignore processes in state FORK_STATE_VFORK_0.
8700
8701 * libc/sys/win32/syscalls.h (procinfo): New members `handle_valid_p'
8702 and `exit_code'.
8703 * libc/sys/win32/spawn.c (allocate_spawn_entry): Initialize them.
8704 (vfork0): Likewise. Distinguish children, grandchildren, etc. by
8705 adding vfork level to pseudo-pid.
8706 (vfork1): If not root, set state back to FORK_STATE_VFORK_0.
8707 (spawnvp, spawnv, _execve): Set handle_valid_p if success.
8708 (_exit): If child, set exit code.
8709 (__vfork_record_death): Only close process handle if valid.
8710 * libc/sys/win32/wait.c (wait_for_single): Watch for children that
8711 didn't exec.
8712 (wait_for_any): Likewise. Start scan after root entry.
8713
8714 Fri Sep 8 18:48:02 1995 Jason Molenda (crash@phydeaux.cygnus.com)
8715
8716 * libc/include/sys/types.h (off_t): off_t back to 32 bits.
8717 * libc/include/sys/_types.h (_off_t): _off_t back to 32 bits.
8718 * libc/sys/win32/syscalls.c (_fstat): st_size is lower 32-bits
8719 of actual file length.
8720
8721 * libc/sys/win32/sys/wait.h: include <sys/types.h>.
8722 * libc/include/paths.h: _PATH_BSHELL added.
8723 * libc/include/sys/unistd.h: define STDIN_FILENO, STDOUT_FILENO,
8724 and STDERR_FILENO.
8725
8726 Thu Sep 7 21:02:22 1995 Jason Molenda (crash@phydeaux.cygnus.com)
8727
8728 * libc/include/ar.h: Added.
8729 * libc/include/sys/types.h: ino_t goes back to 32-bits.
8730 * libc/sys/win32/syscalls.h (hinfo): added .namehash field.
8731 * libc/sys/win32/syscalls.c (_open): compute .namehash based
8732 on filename.
8733 (_fstat): use .namehash for inode number of the fd.
8734
8735 Thu Sep 7 12:57:19 1995 steve chamberlain <sac@slash.cygnus.com>
8736
8737 * libc/sys/win32/{console,ioctl,pipe,spawn,syscalls,wait}.? (*):
8738 Change hinfo to __this_procinfo.
8739 * libc/sys/win32/crt0.c: Remove procinfo_list.
8740
8741 Wed Sep 6 18:38:26 1995 Jason Molenda (crash@phydeaux.cygnus.com)
8742
8743 * libc/include/sys/types.h (ino_t): Define ino_t correctly for
8744 win32 environment.
8745
8746 Wed Sep 6 18:09:29 1995 Jason Molenda (crash@phydeaux.cygnus.com)
8747
8748 * libc/sys/win32/include/grp.h: Removed.
8749 * libc/sys/include/grp.h: Added.
8750 * libc/sys/win32/grp.c: Include <grp.h>.
8751
8752 Wed Sep 6 16:52:48 1995 steve chamberlain <sac@slash.cygnus.com>
8753
8754 * libc/include/sys/signal.h (__need_MAX_SIGNALS): Removed.
8755 (sigset_t, sigaction, SIG_SETMASK, SIG_BLOCK, SIG_UNBLOCK):
8756 Defined for all but strict ANSI.
8757 * libc/include/sys/reent.h (__need_MAX_SIGNALS): Removed.
8758 * libc/include/machine/setjmp.h: Get win32 _JBLEN right.
8759 * libc/signal/signal.c (_signal_r): Changed from using
8760 _MAX_SIGNALS to NSIG.
8761 * libc/sys/win32/crt0.c (__current_pid, __parent_hmap, __child_hmap,
8762 __hmap): Deleted.
8763 (__strace, __vfork_next_pid): New.
8764 (__exe_suffix): Default to 1.
8765 (passover, table): Understand quoted arguments.
8766 (vfork_init_first): New.
8767 (vfork_init): Initialize new process structure.
8768 (mainCRTStartup): Pass environ to main.
8769 * exceptions.c (__sig_mask): New
8770 (ehandler3): Ignore signals in mask.
8771 (really_exit): Remove CHILD_P test.
8772 * pipe.c (pipe, dup, dup2): Use new process and file structure.
8773 * resource.c (getrusage): Ditto.
8774 * signal.c (sigprocmask): New.
8775 * spawn.c (*): Rewritten.
8776 * syscalls.c (*): Use new process and file structure.
8777 (find_unused_handle): New.
8778 * syscalls.h (MAX_HANDLES): Deleted.
8779 (hinfo): Removed child_created_p.
8780 (MAX_CHILDREN): Deleted.
8781 (vfork_jmp_info, procinfo): New.
8782 * wait.c (*): Mostly new.
8783 * sys/strace.h (_STRACE_PARANOID): New.
8784 * sys/param.h: New file.
8785
8786 Wed Sep 6 17:03:53 1995 Jason Molenda (crash@phydeaux.cygnus.com)
8787
8788 * libc/include/sys/stat.h: add S_BLKSIZE.
8789 * libc/include/sys/_types.h: _off_t is a 64-bit type under win32.
8790 * libc/include/sys/types.h: define off_t and ino_t to be 64 bit
8791 types under win32.
8792 (mode_t): add a #else to avoid multiple definitons.
8793
8794 * libc/sys/win32/Makefile.in: add grp.c.
8795 * libc/sys/win32/grp.c: include grp.h correctly.
8796 * libc/sys/win32/syscalls.c (_fstat): set almost all of the fields
8797 of the st structure with real information.
8798 * libc/sys/win32 (dirent): d_ino is of type ino_t.
8799
8800 Wed Sep 6 10:41:34 1995 Doug Evans <dje@canuck.cygnus.com>
8801
8802 * libc/include/sys/types.h (mode_t): Correct for svr4 sparc's
8803 and (maybe) sparc64.
8804 (nlink_t): Provide typedef.
8805
8806 Tue Sep 5 18:46:05 1995 Jason Molenda (crash@phydeaux.cygnus.com)
8807
8808 * libc/sys/win32/grp.c: New file.
8809 * libc/sys/win32/include/grp.h: New file.
8810
8811 Tue Sep 5 13:47:27 1995 J.T. Conklin <jtc@rtl.cygnus.com>
8812
8813 * libc/include/machine/ieeefp.h: Added whitespace to make this
8814 file easier to maintain.
8815 On the sh, define either __IEEE_BIG_ENDIAN or __IEEE_LITTLE_ENDIAN
8816 depending on the value of __LITTLE_ENDIAN__.
8817 On the sh3e, define _DOUBLE_IS_32BITS.
8818
8819 Fri Sep 1 15:35:18 1995 James G. Smith <jsmith@beauty.cygnus.com>
8820
8821 * libc/sys/vr4300/syscalls.c: Added missing support
8822 routines. _raise() and getpid().
8823
8824 Fri Sep 1 14:12:48 1995 James G. Smith <jsmith@rtl.cygnus.com>
8825
8826 * configure.in (mips*vr4300*-*-elf): Fixed silly mistake
8827
8828 Fri Sep 1 08:42:11 1995 James G. Smith <jsmith@beauty.cygnus.com>
8829
8830 * configure.in (mips*vr4300*-idt-*) Add support for RISQ monitor
8831 and VR4300 processor.
8832 * libc/sys/vr4300: Add directory.
8833 * libc/sys/vr4300/{Makefile.in, crt0.S, syscalls.c}: Add SIM
8834 monitor run-time support.
8835
8836 Thu Aug 31 09:16:52 1995 J.T. Conklin <jtc@rtl.cygnus.com>
8837
8838 * libc/stdlib/Makefile.in (CHEWOUT_FILES): Removed atol.def.
8839 * libc/stdlib/stdlib.tex: Don't include atol.def.
8840
8841 Wed Aug 30 20:38:28 1995 Jason Molenda (crash@phydeaux.cygnus.com)
8842
8843 * libc/sys/win32/uname.c (uname): hardcode processor as `i386'.
8844
8845 Wed Aug 30 10:48:08 1995 steve chamberlain <sac@slash.cygnus.com>
8846
8847 * libc/ctype/Makefile.in: Fill in _to* dependencies.
8848
8849 Tue Aug 29 17:14:29 1995 steve chamberlain <sac@slash.cygnus.com>
8850
8851 * libc/sys/win32/{dirsearch.c,sys/dirent.h}: Fix namespace problems.
8852 * libc/sys/win32/sys/dirent.h (struct dirent): Added d_ino.
8853 * libc/sys/win32/strace.c (__sys_printf): Increase size of buffer.
8854 * libc/sys/win32/smallprint.c (__small_vsprintf): Remove debug.
8855 * libc/sys/win32/dirsearch.c (readdir): Set d_ino.
8856
8857 Tue Aug 29 19:00:09 1995 Jason Molenda (crash@phydeaux.cygnus.com)
8858
8859 * libc/stdlib/atol.c (atol): DEFUN -> _DEFUN.
8860
8861 Tue Aug 29 16:08:09 1995 J.T. Conklin <jtc@rtl.cygnus.com>
8862
8863 * libc/stdlib/Makefile.in (OFILES): Added atoff.o and atol.o.
8864 * libc/stdlib/atoff.c: New file.
8865 * libc/stdlib/atof.c (atoff): Moved to atoff.c.
8866 * libc/stdlib/atoi.c (atol): Removed.
8867 * libc/stdlib/atol.c: Removed duplicate documentation.
8868
8869 * libc/include/ctype.h (_tolower, _toupper): Moved inside
8870 #ifndef _STRICT_ANSI conditional.
8871 * libc/ctype/Makefile.in (OFILES): Added _tolower.o and _toupper.o
8872 * libc/ctype/_tolower.c: New file.
8873 * libc/ctype/_toupper.c: New file.
8874 * libc/ctype/tolower.c (_tolower): Moved to _tolower.c.
8875 * libc/ctype/toupper.c (_toupper): Moved to _toupper.c.
8876 * libc/ctype/toascii.c (_toascii): Removed.
8877
8878 Tue Aug 29 12:17:32 1995 Doug Evans <dje@canuck.cygnus.com>
8879
8880 * libc/sys/sparc64/sys/types.h: Deleted.
8881
8882 Mon Aug 28 22:06:08 1995 Jason Molenda (crash@phydeaux.cygnus.com)
8883
8884 * libc/sys/win32/uname.c (uname): change `Windows/NT' to `Windows_NT'
8885 and recognize Windows_95 systems.
8886
8887 Mon Aug 28 19:50:54 1995 Jason Molenda (crash@phydeaux.cygnus.com)
8888
8889 * libc/sys/win32/crt0.c (vfork_init, hmap_init): standard I/O fds
8890 and passed fds should be opened in text mode.
8891
8892 Mon Aug 28 18:51:22 1995 Jason Molenda (crash@phydeaux.cygnus.com)
8893
8894 * libc/sys/win32/crt0.c (vfork_init): mark passed fds as used
8895 in __hmap, set to binary mode by default.
8896
8897 Tue Aug 22 14:12:37 1995 J.T. Conklin <jtc@rtl.cygnus.com>
8898
8899 * libc/sys/sh/syscalls.c: Updated all functions to call __trap34.
8900 * libc/sys/sh/trap.S (__trap34): Renamed from __trap3. Use trap
8901 vector 34.
8902
8903 Sat Aug 19 18:25:37 1995 steve chamberlain <sac@slash.cygnus.com>
8904
8905 * Makefile.in (install): Install all libraries found in the
8906 top level. If there's a sys/<type>/include directory,
8907 install those headers into include.
8908
8909 * libc/sys/win32/kernel.def351: Delete
8910 * libc/sys/win32/{comctl32.def, comdlg32.def, ctl3d32.def,
8911 glaux.def, glu32.def, largeint.def, libc.def, libcmt.def,
8912 lz32.def, mgmtapi.def, mpr.def, msacm32.def, msvcrt.def,
8913 nddeapi.def, netapi32.def, odbc32.def, odbccp32.def, oldnames.def,
8914 ole32.def, oleaut32.def, opengl32.def, rasapi32.def, rpcndr.def,
8915 rpcns4.def, rpcrt4.def, scrnsave.def, shell32.def, snmp.def,
8916 uuid.def, vdmdbg.def, version.def, vfw32.def, win32spl.def,
8917 winmm.def, winspool.def, winstrm.def, wsock32.def}: New.
8918
8919 * libc/sys/win32/Makefile.in: Update for new files and new dlltool options.
8920 * libc/sys/win32/crt0.c: Force all env names to upper case.
8921 * libc/sys/win32/sys/win*.h -> libc/sys/win32/include
8922 * libc/sys/win32/*.c: Headers have moved.
8923 * libs/sys/win32/*.[ch]: Test for open_p rather than BAD_HANDLE,
8924 __vfork_child_idx is now __vfork_child_ptr.
8925
8926 * posix/execvp (execvp): Don't crash if no PATH envname.
8927
8928 Fri Aug 18 12:22:59 1995 J.T. Conklin <jtc@rtl.cygnus.com>
8929
8930 * libc/include/sys/reent.h (_Bigint): Removed _reclaim field.
8931 * libc/reent/reent.c (_reclaim_reent): Free Bigint's by going
8932 through the _freelist instead of through the _reclaim list.
8933 * libc/stdlib/mprec.c (_Balloc): Don't put new node on _reclaim list.
8934 * libc/stdlib/mprec.c (_Bcopy): Make like version in master dtoa.c
8935 sources.
8936
8937 Thu Aug 17 11:03:27 1995 J.T. Conklin <jtc@rtl.cygnus.com>
8938
8939 * libc/machine/h8500/setjmp.S: New file.
8940 * libc/include/machine/setjmp.h: Updated for H8/500.
8941
8942 Wed Aug 16 16:19:11 1995 steve chamberlain <sac@slash.cygnus.com>
8943
8944 * libc/sys/win32/syscalls.c (_open): More stracing.
8945 (_stat): Open the file in O_BINARY.
8946
8947 Wed Aug 16 15:49:01 1995 J.T. Conklin <jtc@rtl.cygnus.com>
8948
8949 * libc/machine/h8300/setjmp.S: New file.
8950 * libc/include/machine/setjmp.h: Updated for H8/300 and H8/300H.
8951
8952 Tue Aug 15 10:31:09 1995 Doug Evans <dje@canuck.cygnus.com>
8953
8954 * libc/sys/win32/crt0.c (__exe_suffix): New global.
8955 (mainCRTStartup): Set __exe_suffix from LIBC_EXE_SUFFIX.
8956 * libc/sys/win32/spawn.c (_spawn): Add .exe suffix based on
8957 __exe_suffix. Free fd_tab after setting env variable.
8958 (spawnv,_execve): Update.
8959 * libc/sys/win32/syscalls.h (__exe_suffix): Declare.
8960 * libc/sys/win32/smallprint.c (puts,putn): New (static) functions.
8961 (__small_vfprintf): New function.
8962 * libc/sys/win32/strace.c (__sys_printf): Call __small_vfprintf.
8963 * libc/sys/win32/wait.c (cwait): Validate argument.
8964
8965 * libc/sys/win32/syscalls.c (queue_file_deletion): Add trace message.
8966 (process_deletion_queue): Likewise.
8967
8968 * libc/sys/win32/Makefile.in (lib.a): Don't call $(RANLIB).
8969
8970 Mon Aug 14 10:14:10 1995 steve chamberlain <sac@slash.cygnus.com>
8971
8972 * libc/sys/win32: Copyrights and gratuitous indenting.
8973
8974 Mon Aug 14 01:32:58 1995 Doug Evans <dje@canuck.cygnus.com>
8975
8976 * libc/sys/win32/syscalls.c (queue_file_deletion): Finish.
8977 (process_deletion_queue): Likewise.
8978 (__close_all_files): New function.
8979 (_close): Only queue file deletion if really a file.
8980 * libc/sys/win32/spawn.c (_spawn): Only ensure .exe suffix if
8981 _P_APPEND_EXE.
8982 (_exit): Call __close_all_files.
8983
8984 * libc/stdlib/system.c: #include <errno.h>.
8985 (_system_r): Fix results in -DNO_EXEC case.
8986
8987 * libc/sys/win32/sys/dirent.h (DIR): New member __d_dirname.
8988 Reorganize structure.
8989 * libc/sys/win32/dirsearch.c (opendir): Use stat to determine
8990 if argument is valid. Save directory name in DIR. malloc space
8991 for dirent struct separately.
8992 * libc/sys/win32/syscalls.c (stat): Fix test for directory.
8993
8994 * libc/include/errno.h (ENAMETOOLONG): Define.
8995 * libc/string/strerror.c (strerror): Reword ENFILE.
8996 Add ENOSYS, ENMFILE, ENOTEMPTY, ENAMETOOLONG.
8997
8998 Sun Aug 13 22:42:25 1995 Doug Evans <dje@canuck.cygnus.com>
8999
9000 * libc/sys/win32/crt0.c (__progname): New global.
9001 (mainCRTStartup): Support strace=bitmask,filename.
9002 * libc/sys/win32/dirsearch.c (all fns): Add trace messages.
9003 * libc/sys/win32/syscalls.c (_write): Print parent trace message
9004 if error.
9005 (getcwd): Handle len too small. Convert '\\' to '/'.
9006 * libc/sys/win32/sys/fcntl.h (O_RDWR): = O_RDONLY|O_WRONLY.
9007 Add prototypes for open, creat, fcntl.
9008 (O_APPEND): Change value to conform to Microsoft's value.
9009 * libc/sys/win32/sys/strace.h (_STRACE): Protect in do/while.
9010
9011 * libc/stdlib/getopt.c: New file.
9012 * libc/stdlib/Makefile.in: Build it.
9013
9014 Sat Aug 12 12:17:14 1995 Doug Evans <dje@canuck.cygnus.com>
9015
9016 * libc/posix/execvp.c (execvp): Watch for DOS drives ifdef _WIN32.
9017 Fix scanning of $PATH.
9018 * libc/posix/exec*.c: Call _execve, not execve.
9019 * libc/posix/execve.c: New file.
9020 * libc/posix/Makefile.in (OFILES): Add execve.o.
9021
9022 * libc/sys/win32/sys/strace.h (_STRACE_ALL, _STRACE_UHOH,
9023 _STRACE_STARTUP, _STRACE_SYSCALL): More bit masks of things to trace.
9024 (_STRACE): If level==0, always print. Handle new bit mask scheme.
9025 * libc/sys/win32/crt0.c: Update _STRACE calls.
9026 * libc/sys/win32/{pipe.c,resource.c,spawn.c,syscalls.c,wait.c}: Ditto.
9027
9028 * libc/sys/win32/smallprint.c (rn): Fix digit list.
9029
9030 * libc/sys/win32/syscalls.c (__really_exit): Move from here,
9031 * libc/sys/win32/exceptions.c (really_exit): to here. Avoid recursion.
9032 * libc/sys/win32/spawn.c (spawnvp): Pass `prog' as image name.
9033 Print __seterrno trace message first.
9034 (_execve): Renamed from execve.
9035 (vfork): Update __strace usage.
9036 (__vfork_child_pid): Deleted.
9037 (__vfork_children, __vfork_child_idx): New globals.
9038 (_spawnvp): New function.
9039 (spawnvp, spawnv, _execve): Call _spawnvp.
9040 (init_child): Record child in __vfork_children.
9041 (__vfork_get_entry, __vfork_record_death): New functions.
9042 * libc/sys/win32/crt0.c (mainCRTStartup): Initialize __vfork_children.
9043 * libc/sys/win32/kernel32.def (WaitForMultipleObjects): Define.
9044 * libc/sys/win32/syscalls.h (CHILD_P): New macro. All files updated.
9045 (MAX_CHILDREN, CHILD_INTERIM_PID): Define.
9046 (children): New typedef.
9047 (__vfork_children,__vfork_child_idx): Declare.
9048 (__vfork_get_entry,__vfork_record_death): Declare.
9049 * libc/sys/win32/wait.c (wait_for_single,wait_for_any): New functions.
9050 (waitpid): Handle pid == -1.
9051 * libc/sys/win32/sys/wintypes.h (WaitForMultipleObjects): Declare.
9052 * configure.in (i386-win32): Add -DNO_FORK.
9053 * libc/syscalls/sysfork.c (fork): Don't define for NO_FORK.
9054 * libc/reent/execr.c (_fork_r): Likewise.
9055 * libc/stdlib/system.c (do_system): New function.
9056 If WIN32, try to get shell path from $SH_PATH, use vfork.
9057 (_system_r): Return 1 for (s == NULL) if WIN32 or unix,
9058 otherwise return 0.
9059
9060 Sat Aug 12 11:08:00 1995 steve chamberlain <sac@slash.cygnus.com>
9061
9062 * libc/stdlib/{mallocr.c, mstats.c}: Move mstats from mallocr to mstats.c.
9063 * libc/sys/win32/fcntl.h: Don't include self.
9064 * libc/sys/win32/sys/strace.h (_STRACE_WM, _strace_wm): New.
9065 * libc/sys/win32/sys/winbase.h: (GetUserName) New.
9066 * libc/sys/win32/sys/wincon.h (HANDLER_ROUTINE): Define correctly.
9067 * libc/sys/win32/sys/wintypes.h (GetFileType, GetCurrentProcess, CloseHandle,
9068 SetFilePointer, CreateFileA, GetFileInformationByHandle, GetStdHandle):
9069 Correct prototypes.
9070 * libc/sys/win32/strace.c: New file.
9071 * libc/sys/win32/smallprint.c: New file.
9072 * libc/sys/win32/crt0.c (func): Delete.
9073 (mainCRTStartup): Fix alloca usage. Set handles explictly.
9074 * libc/sys/win32/dirsearch.c: Clean up handle usage, fix calls to __seterrno.
9075 * libc/sys/win32/exceptions.c: Lint.
9076 * libc/sys/win32/{ioctl.c, pipe.c, resource.c, spawn.c, cwait.c, syscalls.c}:
9077 Clean up handle usage.
9078 * libc/sys/win32/syscalls.c (__sys_printf): Moved into strace.c
9079 (open.c): Default file type is text.
9080 * libc/sys/win32/uname.c (uname): Use __small_sprintf.
9081 * libc/sys/win32/advapi32.def: New
9082
9083 Fri Aug 11 17:11:52 1995 Doug Evans <dje@canuck.cygnus.com>
9084
9085 * configure.in (posix_dir, libc_posix_lib): New variables.
9086 Define LIBC_POSIX_LIB in makefile to be $libc_posix_lib.
9087 (i[345]86-*-win32): Define posix_dir.
9088 Delete -DNO_EXEC. Define -DHAVE_OPENDIR.
9089 (if unix_dir): Fix typo.
9090 * libc/posix/{Makefile.in,closedir,opendir,readdir,rewinddir,
9091 scandir,seekdir,telldir}: New files.
9092 * libc/posix/{execl.c,execle.c,execlp.c,execv.c,execvp.c}: Move here
9093 from libc/unix.
9094 * libc/Makefile.in (LIBC_POSIX_LIB): Define.
9095 (SUBDIRS): Add posix.
9096 (SUBLIBS): Add $(LIBC_POSIX_LIB).
9097
9098 * libc/include/sys/signal.h (SIGCHLD): Add for _WIN32.
9099 (NSIG): Increase to 21.
9100 * libc/include/sys/unistd.h (pid_t): Move from here,
9101 * libc/include/sys/types.h (pid_t): to here.
9102
9103 * libc/sys/win32/syscalls.h: #include "sys/strace.h".
9104 (__ptrace): Delete.
9105 (hinfo): New members close_exec_p, child_created_p.
9106 (struct exception_list): Define.
9107 (__hmap): Redefine as pointer to table.
9108 (__parent_hmap, __child_hmap): New globals.
9109 (__set_errno, __really_exit): Declare.
9110 (__vfork_child_pid): Declare.
9111 * libc/sys/win32/crt0.c (__strace, __trace_file): New global.
9112 (__orig_stdin, __orig_stdout, __orig_stderr): New globals.
9113 (__parent_hmap, __child_hmap): New globals.
9114 (__hmap): Redefine as pointer to active map.
9115 (__get_console): New function.
9116 (mainCRTStartup): Change leading '=' in environ vars to '!'.
9117 (env __FD_TABLE__): Watch for this and initialize our fd/handle
9118 mapping table from it if defined.
9119 (argv, envp): Dump if __strace >= 4.
9120 (main): Call here.
9121 * libc/sys/win32/exceptions.c (myp): Redefine.
9122 (__syscalls_b): Delete.
9123 (__stack_trace): New function.
9124 (ehandler3): Update to use _STRACE. Print stack trace.
9125 Call __really_exit instead of exit.
9126 (init_exceptions): Delete args argc,argv. New arg mine.
9127 * libc/sys/win32/kernel32.def (CreatePipe, DuplicateHandle, FindClose,
9128 FindFirstFileA, FindNextFileA, GetComputerNameA,
9129 GetEnvironmentVariableA, ReadFile, SetEnvironmentVariableA): Define.
9130 * libc/sys/win32/signal.c (signal): Validate arg.
9131 (alarm, sleep): Define as stubs for now.
9132 * libc/sys/win32/syscalls.c (all fns): Update to use _STRACE.
9133 (__syscalls_b, errno): Delete.
9134 (__vfork_child_pid, __vfork_jmp_buf): New globals.
9135 (__seterrno): Handle more errors.
9136 (__sys_printf): Renamed from _ptrace.
9137 (__really_exit): New function.
9138 (queue_file_deletion, process_deletion_queue): New functions.
9139 (__resume_parent): New function.
9140 (_unlink): Handle trying to delete open file.
9141 (__totime_t): Renamed from totime_t.
9142 (setsid, __read, __write): New functions.
9143 (cwait, spawnvp, R, D, getrusage, _execve, _fork, _wait): Delete.
9144 * libc/sys/win32/{dirsearch.c,getlogin.c,misc.c,resource.c,passwd.c,
9145 times.c,spawn.c,pipe.c,wait.c,termios.c,ioctl.c,uname.c}: New files.
9146 * libc/sys/win32/console.c: Update to new definition of __hmap.
9147 * libc/sys/win32/Makefile.in: Build new files.
9148 * libc/sys/win32/sys/{dirent.h,winerror.h,wait.h,termios.h}: New files.
9149 * libc/sys/win32/sys/{ioctl.h,utsname.h}: New files.
9150 * libc/sys/win32/sys/strace.h: Renamed from ptrace.h.
9151 * libc/sys/win32/sys/wintypes.h (GetCurrentDirectoryA): Fix prototype.
9152
9153 Thu Aug 10 16:32:52 1995 Doug Evans <dje@canuck.cygnus.com>
9154
9155 * libc/sys/h8500hms/misc.c (kill): Handle SIGABRT.
9156
9157 Thu Aug 10 12:07:38 1995 J.T. Conklin <jtc@rtl.cygnus.com>
9158
9159 * libc/stdlib/{dtoa.c, strtod.c}: Merged assorted changes that
9160 have been made to the master dtoa.c sources (from netlib.att.com)
9161 since they were integrated into newlib in early 1992. Fixes
9162 problems with storage leaks and handling of numbers with very
9163 negative exponents.
9164
9165 Wed Aug 9 14:18:39 1995 J.T. Conklin <jtc@rtl.cygnus.com>
9166
9167 * Makefile.in (all): set rootpre and srcrootpre before calling
9168 sub-makes.
9169
9170 Tue Aug 8 17:20:45 1995 steve chamberlain <sac@slash.cygnus.com>
9171
9172 * libc/sys/win32/crt0.c: Change __hmap usage.
9173 * libc/sys/win32/exceptions.c: Use _ptrace call.
9174 * libc/sys/win32/syscalls.c: Use _ptrace call.
9175 (read, write): Cope with DOS style CRLF when in TEXT mode.
9176 * libc/sys/win32/syscalls.h: Declare hinfo struct.
9177 * libc/sys/win32/user32.def: Get DefWindowProc arg list right.
9178 * libc/sys/win32/sys/fcntl.h, ptrace.h: New.
9179 * libc/sys/win32/sys/windows.h: Fill in rest of messages.
9180 * libc/sys/win32/sys/wintypes.h: Fix attribute syntax.
9181
9182 Mon Aug 7 13:04:54 1995 J.T. Conklin <jtc@rtl.cygnus.com>
9183
9184 * libc/include/math.h (cabs, cabsf, drem, dremf): New declarations.
9185
9186 * libm/math/{w_cabs.c, wf_cabs.c, w_drem.c, wf_drem.c}: New files,
9187 wrappers for hypot() and remainder() for BSD libm compatibility.
9188 These are public domain implementations written by me for the
9189 NetBSD libm some time ago. Note cabs() is required by ucbtest.
9190 * libm/math/Makefile.in (obj): Added w_cabs.o and w_drem.o.
9191 (fobj): Added wf_cabs.o and wf_drem.o.
9192
9193 Thu Aug 3 08:13:05 1995 J.T. Conklin <jtc@rtl.cygnus.com>
9194
9195 * libc/sys/h8500hms/misc.c: New file.
9196 * libc/sys/h8500hms/Makefile.in (OFILES): Add misc.o.
9197
9198 Wed Aug 2 16:46:27 1995 J.T. Conklin <jtc@rtl.cygnus.com>
9199
9200 * libc/time/localtime.c (localtime): Fix problem with leap year
9201 handling. Stole algorithm from Arthur David Olson's tz code.
9202
9203 Mon Jul 31 10:21:54 1995 steve chamberlain <sac@slash.cygnus.com>
9204
9205 * configure.in: (z8k-*sim): Renamed z8k-*-coff.
9206
9207 * libc/sys/z8ksim/glue.c (_getpid, _kill): New
9208 (_exit): Use argument.
9209
9210 Fri Jul 28 15:17:04 1995 Doug Evans <dje@canuck.cygnus.com>
9211
9212 * libc/sys/win32/sys/winbase.h (_WINBASE_H): Define.
9213
9214 Wed Jul 26 16:24:19 1995 steve chamberlain <sac@slash.cygnus.com>
9215
9216 * libc/sys/sh/trap.S (perrno): Align correctly. (pr 7532)
9217
9218 Mon Jul 24 13:42:52 1995 J.T. Conklin <jtc@rtl.cygnus.com>
9219
9220 * configure.in (sparc*): Add -DMALLOC_ALIGNMENT=8 to
9221 target_cflags.
9222
9223 Mon Jul 24 11:42:07 1995 steve chamberlain <sac@slash.cygnus.com>
9224
9225 * libc/sys/win32/crt0.c (mainCRTStartup): Look for
9226 ptrace with case insensitivity
9227 * libc/sys/win32/{user32.def, gdi32.def, exceptions.c, screen.c,
9228 sys/winbase.h, sys/windows.h, sys/wintypes.h, sys/winuser.h}:
9229 New files.
9230
9231 Fri Jul 21 11:22:26 1995 Doug Evans <dje@canuck.cygnus.com>
9232
9233 * Makefile.in: Multilib support moved to ../cfg-ml-{com,pos}.in.
9234 (MULTITOP, MULTIDIRS, MULTISUBDIR, MULTIDO, MULTICLEAN): New variables.
9235 (all, install, *clean): Use new multilib support.
9236 * configure.in: Multilib support moved to ../cfg-ml-{com,pos}.in.
9237
9238 Fri Jul 21 07:11:42 1995 steve chamberlain <sac@slash.cygnus.com>
9239
9240 * libc/include/sys/signal.h (__WIN32__): New.
9241
9242 * configure.in (i386-*-win32): Remobe SBRK_IS_ALLOC.
9243
9244 * libc/stdlib/mprec.c (Balloc): Fix trampling problem.
9245 (ulp, b2d): Handle 32 bit doubles.
9246 * libc/stdlib/mprec.h: Handle 32 bit doubles.
9247 * libc/stdlib/strtod.c (_strtod_r): Ditto.
9248
9249 Fri Jul 14 08:24:58 1995 steve chamberlain <sac@slash.cygnus.com>
9250
9251 from medp@primag.co.uk:
9252 * libc/stdio/setvbuf.c (setvbuf): Fix line buffering on
9253 dynamically allocated buffers.
9254
9255 Thu Jul 20 10:11:03 1995 Fred Fish <fnf@fishbowl>
9256
9257 * libc/include/sys/unistd.h (_exit): Add _ATTRIBUTE ((noreturn)).
9258 * libc/stdlib/exit.c (unistd.h): Include to pick up _exit() declaration.
9259
9260 Thu Jul 20 10:16:25 1995 Michael Meissner <meissner@tiktok.cygnus.com>
9261
9262 * configure.in (powerpc): Fix previous fix.
9263
9264 Wed Jul 19 14:08:55 1995 Michael Meissner <meissner@tiktok.cygnus.com>
9265
9266 * configure.in (powerpc-*eabiaix*): Update PowerPC multilib
9267 directories for this target.
9268
9269 Wed Jul 19 00:34:30 1995 Jeffrey A. Law <law@rtl.cygnus.com>
9270
9271 * configure.in (hppa): Add machine_dir definition.
9272 * libc/machine/hppa: New directory with PA specific implementations
9273 of the basic memory/string functions.
9274
9275 Tue Jul 18 21:16:00 1995 Michael Meissner <meissner@tiktok.cygnus.com>
9276
9277 * configure.in: Update current PowerPC multilib directories.
9278 Split big and little endian configurations.
9279
9280 Tue Jul 18 11:55:33 1995 Ian Lance Taylor <ian@cygnus.com>
9281
9282 * configure.in: Add --enable-single-float option to configure to
9283 control use of MIPS single-float directories. Default to yes.
9284
9285 * Makefile.in (all): Don't recurse into multilib directory if it
9286 does not exist.
9287
9288 Mon Jul 17 15:51:30 1995 J.T. Conklin <jtc@rtl.cygnus.com>
9289
9290 * libc/sys/sh/syscalls.c: Fix typo.
9291
9292 Mon Jul 3 14:38:52 1995 Steve Chamberlain <sac@slash.cygnus.com>
9293
9294 * Makefile.in, libc/Makefile.in, libc/sys/Makefile.in:
9295 Pass down DLLTOOL.
9296 * libc/include/process.h: Define WAIT_CHILD.
9297 * libc/include/types.h: Get sizes right for win32.
9298 * configure.in (i386-*-pe): Becomes i386-win32.
9299 * libc/sys/win32/{crt0.c, kernel32.def, longjmp.c, setjmp.c, syscalls.c
9300 wintypes.h,sys/file.h,sys/resource.h}: Second pass.
9301 * libc/stdlib/mallocr.c: Don't round up memory block if SBRK_IS_ALLOC
9302 is defined.
9303
9304 Wed Jun 28 18:34:54 1995 Steve Chamberlain <sac@slash.cygnus.com>
9305
9306 * configure.in (i[345]86-*-pe): New target (NT).
9307 * host/any: DLLTOOL new.
9308 * libc/sys/win32/{crt0.c, kernel32.def, longjmp.c, setjmp.c, syscalls.c
9309 wintypes.h,sys/file.h,sys/resource.h}: Preliminary support for
9310 WIN32 (just enough to cross host the comp-tools).
9311
9312 Thu Jun 22 11:45:18 1995 Doug Evans <dje@canuck.cygnus.com>
9313
9314 * libc/machine/h8300/{cmpsi.S,ucmpsi.S,divhi3.S,mulhi3.S,mulsi3.S}:
9315 Deleted. These files live in gcc/config/h8300/lib1funcs.asm now.
9316
9317 Mon Jun 19 11:40:40 1995 Doug Evans <dje@canuck.cygnus.com>
9318
9319 * libc/include/machine/ieeefp.h (arm): Change to always be
9320 __IEEE_BIG_ENDIAN (even on little endian ARM's).
9321
9322 Thu Jun 8 14:22:28 1995 Steve Chamberlain <sac@slash.cygnus.com>
9323
9324 * libc/sys/crt0.S: Initialze sp, and call exit after main.
9325 * libc/sys/syscalls.c (abort): New.
9326 * configure.in (arm): Define ABORT_PROVIDED.
9327
9328 Wed Jun 7 14:04:35 1995 J.T. Conklin <jtc@rtl.cygnus.com>
9329
9330 * configure.in (powerpc): Define multidirs.
9331
9332 Mon Jun 5 16:10:13 1995 Doug Evans <dje@canuck.cygnus.com>
9333
9334 * libc/sys/arm/crt0.S: Add __USER_LABEL_PREFIX__ support.
9335
9336 Thu Jun 1 10:51:47 1995 Sean Eric Fagan <sef@cygnus.com>
9337
9338 * configure.in (sparclite): Delete target_cflags. Define multidirs.
9339
9340 Wed May 24 14:23:25 1995 Steve Chamberlain <sac@slash.cygnus.com>
9341
9342 * configure.in, libc/include/machine/ieeefp.h: Modified
9343 for arm:
9344 libc/machine/arm/*, libc/sys/arm/*: New
9345
9346 Tue May 23 13:53:07 1995 J.T. Conklin <jtc@rtl.cygnus.com>
9347
9348 * libc/include/machine/ieeefp.h: Use __PPC__ instead of
9349 __powerpc__ when determining endianness.
9350
9351 Wed May 10 07:55:56 1995 J.T. Conklin <jtc@rtl.cygnus.com>
9352
9353 * configure.in (m68*): Add multidir for the m68332.
9354
9355 * host/any (CC): Fix typo in last change.
9356
9357 Fri Apr 14 22:20:31 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
9358
9359 * libc/include/sys/config.h: Test __m68k__ instead of __m68000__
9360 when determining endianness.
9361 * libc/include/machine/ieeefp.h: Ditto.
9362 * libc/machine/m68k/setjmp.S: Use '&' instead of '#' for immediate
9363 operands.
9364
9365 Fri Apr 14 14:14:29 1995 Doug Evans <dje@chestnut.cygnus.com>
9366
9367 * libc/include/errno.h (ENOTEMPTY): Define.
9368
9369 Thu Apr 6 12:21:20 1995 J.T. Conklin <jtc@rtl.cygnus.com>
9370
9371 * configure.in (sparc-sun-sunos*): Add -DMALLOC_ALIGNMENT=8 to
9372 target_cflags.
9373
9374 * libc/sys/sun4/Makefile.in (COPYOFILES): Added rem.o, multiply.o,
9375 and umultiply.o.
9376
9377 * libc/stdio/tmpnam.c (worker): Unconditionally increment count
9378 instead of only when open succeeds. ANSI requires that multiple
9379 calls to tmpnam() result in different files.
9380
9381 * libc/sys/sun4/Makefile.in (COPYRENAMEOFILES): New macro, list of
9382 objects pulled in from /lib/libc.a that must be renamed before
9383 being pulled into newlib. /lib/libc.a's div.o conflicted with
9384 newlib's file with the same name.
9385
9386 * libc/stdlib/ldiv.c (ldiv): Call labs() instead of abs().
9387
9388 * host/any (CC, AS, AR, RANLIB): Changed so that executables in
9389 the build tree will only be used if the executables are present
9390 (instead of just the Makefiles).
9391
9392 * libc/include/stdlib.h (mblen, mbtowc, wctomb, mbstowcs,
9393 wcstombs): Define.
9394 * libc/stdlib/{mblen.c, mbstowcs.c, wcstombs.c}: New files, null
9395 versions of these functions that I orignally wrote for the
9396 NetBSD C library.
9397 * libc/stdlib/{mbtowc.c, wctomb.c}: Replaced functions with
9398 versions I wrote for NetBSD.
9399
9400 Wed Mar 29 12:42:42 1995 Kung Hsu <kung@mexican.cygnus.com>
9401
9402 * libc/sys/sparclite/Makefile.in: add crt0.s and make info.
9403 * libc/sys/sparclite/crt0.s: ditto.
9404
9405 Tue Mar 28 20:28:03 1995 Rob Savoye <rob@rtl.cygnus.com>
9406
9407 * configure.in: Add soft-float for proelf.
9408
9409 Mon Mar 27 12:07:56 1995 Steve Chamberlain <sac@bang.hack.com>
9410
9411 * libc/stdlib/mprec.h (Bcopy): Copy the right number
9412 of bytes.
9413
9414 Mon Mar 27 11:24:22 1995 Doug Evans <dje@chestnut.cygnus.com>
9415
9416 * Makefile.in (all): Depend on `force'.
9417 * configure.in (syscall_dir): Renamed from fake_sys_dir.
9418 (libc_syscall_lib): Renamed from libc_fake_sys_lib.
9419 (LIBC_SYSCALL_LIB): Renamed from LIBC_FAKE_SYS_LIB.
9420 * libc/Makefile.in: Likewise.
9421 * libc/include/reent.h: Update syscall references.
9422 (_fcntl_r): Add prototype.
9423 * libc/syscalls/*.c #include <reent.h>.
9424 (*) Call reentrant version if REENTRANT_SYSCALLS_PROVIDED.
9425
9426 Mon Mar 20 16:57:39 1995 Doug Evans <dje@deneb.cygnus.com>
9427
9428 * libc/include/sys/stat-dj.h (S_ISBLK): Define.
9429 (S_ISCHR, S_ISDIR, S_ISFIFO, S_ISREG): Define.
9430 * libc/include/sys/stat.h (stat-dj.h): Include ifdef MSDOS.
9431 (time.h, sys/types.h): Always include (even if MSDOS).
9432 (stat): Fix prototype.
9433
9434 Fri Mar 10 11:30:38 1995 Ian Lance Taylor <ian@cygnus.com>
9435
9436 * configure.in (i[345]86-*-go32): Compile with -DNO_EXEC.
9437
9438 Mon Feb 27 18:00:39 1995 Jim Wilson <wilson@chestnut.cygnus.com>
9439
9440 * libc/machine/h8500/psi.S (EXTPSIHI_RN_SN): Ifdef out.
9441
9442 Mon Feb 13 16:10:03 1995 Ian Lance Taylor <ian@cygnus.com>
9443
9444 * libc/include/regdef.h: New file.
9445 * libc/machine/mips/machine/regdef.h: New file.
9446
9447 Mon Feb 6 15:24:29 1995 Doug Evans <dje@canuck.cygnus.com>
9448
9449 * libc/sys/sparc64/sys/fcntl.h (open): Add ellipsis.
9450
9451 Fri Jan 27 13:52:10 1995 Steve Chamberlain <sac@splat>
9452
9453 * libc/sys/sh/crt0.S: Pass main's return to exit.
9454 * libc/sys/sh/trap.S: Put errno in the right place.
9455
9456 Tue Jan 24 18:57:56 1995 Ian Lance Taylor <ian@sanguine.cygnus.com>
9457
9458 * libm/math/e_rem_pio2.c (__ieee754_rem_pio2): Integrate change
9459 from fdlibm 5.2: handle |x| < 3pi/4 more efficiently.
9460 * libm/math/ef_rem_pio2.c: Likewise.
9461 * libm/math/e_log10.c: Remove unused static one.
9462 * libm/math/ef_log10.c: Likewise.
9463 * libm/math/s_frexp.c: Likewise.
9464 * libm/math/sf_frexp.c: Likewise.
9465
9466 Sun Jan 22 21:26:14 1995 Steve Chamberlain <sac@splat>
9467
9468 * libc/sys/go32/Makefile.in, clock.S, dir.c, setjmp.S, stat.c,
9469 longjmp.S: Upgraded.
9470 * libc/sys/go32/sys/setjmp.h: Upgraded.
9471 * libc/sys/go32/sys/go32.h, dpmi.h: New files.
9472
9473 Fri Jan 20 18:33:18 1995 Ian Lance Taylor <ian@sanguine.cygnus.com>
9474
9475 * configure.in: Add many entries to multidirs for mips targets.
9476
9477 Wed Jan 18 10:19:25 1995 J.T. Conklin <jtc@rtl.cygnus.com>
9478
9479 * libm/math/e_jn.c (__ieee754_yn): Integrate change from fdlibm
9480 5.2 which fixes bug where jn(-1,x) is three times larger than
9481 the actual answer.
9482 * libm/math/ef_jn.c (__ieee754_ynf): Likewise.
9483
9484 Sun Jan 15 21:48:58 1995 Steve Chamberlain <sac@splat>
9485
9486 * libc/sys/w65/sys/syscalls.h: New file
9487 * libc/include/machine/ieeefp.h: W65 support.
9488 * libc/include/sys/config.h: Ditto.
9489 * libc/machine/w65/Makefile.in, cmpsi, divsi3, lshrhi.s, mulsi3.c,
9490 sdivhi3.s, smulhi3.s, udivhi3.s, umodhi3.s: New files.
9491 * libc/sys/w65/Makefile.in, crt0.c, syscalls.c, trap.c: New files.
9492
9493 Wed Jan 11 15:59:01 1995 Ian Lance Taylor <ian@sanguine.cygnus.com>
9494
9495 * libc/sys/Makefile.in (lib.a, crt0.o): Depend upon subs.
9496
9497 Tue Jan 3 15:57:03 1995 Rob Savoye <rob@darkstar.cygnus.com>
9498
9499 * Makefile.in, configure.in: Remove any references to the old
9500 "stub" dir.
9501
9502 Thu Dec 22 10:42:08 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
9503
9504 * libc/syscalls/sysopen.c: Write _HAVE_STDC version of open, which
9505 uses ... in prototype.
9506
9507
9508 Wed Nov 30 08:39:42 1994 Ian Lance Taylor <ian@rtl.cygnus.com>
9509
9510 * libc/sys/a29khif/sys/libconfig.h: Remove.
9511 * libc/sys/go32/sys/libconfig.h: Remove.
9512 * libc/sys/sun4/sys/libconfig.h: Remove.
9513 * libc/sys/sysvi386/sys/libconfig.h: Remove.
9514 * libc/sys/sysvnecv70/sys/libconfig.h: Remove.
9515 * libc/sys/sparc64/sys/libconfig.h: Remove.
9516
9517 * libc/include/_ansi.h (_FLOAT_ARG, _FLOAT_RET): Don't define.
9518 * libc/include/sys/config.h (_FLOAT_ARG, _FLOAT_RET): Likewise.
9519 * libc/include/math.h: Change all uses of _FLOAT_RET and
9520 _FLOAT_ARG to float.
9521 * libm/test/math.c: Likewise.
9522 * testsuite/libm.sac/math.c: Likewise.
9523 * testsuite/libm.sac/working/math.c: Likewise.
9524
9525 Wed Nov 23 22:39:28 1994 Steve Chamberlain (sac@jonny.cygnus.com)
9526
9527 * libc/sys/sh/trap.s,crt0.s,setjmp.s: Renamed with .S so that
9528 gcc calls gas with endian option.
9529 * configure.in (sh): Build little endian version too.
9530
9531 Wed Nov 16 18:21:45 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
9532
9533 * configure.in: Configure big and little endian versions for MIPS
9534 targets.
9535
9536 Sat Nov 12 21:12:51 1994 Doug Evans <dje@canuck.cygnus.com>
9537
9538 * libc/include/limits.h: Deleted.
9539 * libc/include/machine/limits.h: Deleted.
9540
9541 Thu Nov 10 15:32:44 1994 Rob Savoye <rob@rtl.cygnus.com>
9542
9543 * ChangeLog: Remove stub directory. This has all been rewritten
9544 and moved to devo/libgloss.
9545
9546 Thu Sep 29 18:31:04 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
9547
9548 * Makefile.in (dvi): Add to info target, use $@ in sub make.
9549 (docs): Merge into info target.
9550 * libm/Makefile.in (dvi): Add $(srcdir).
9551 * libm/math/Makefile.in (chobjs): Remove underscores from file
9552 names. Texinfo doesn't like them.
9553 (wacos.def, ...): Add explicit targets for all .def files.
9554 * libm/math/math.tex: Remove underscores from @include file names.
9555 * doc/Makefile.in (dvi): Add dummy target.
9556 * testsuite/Makefile.in (dvi): Add dummy target.
9557
9558 Mon Sep 26 21:17:46 1994 Doug Evans (dje@canuck.cygnus.com)
9559
9560 * Makefile.in (VERSION): Define. For net newlib releases.
9561
9562 Thu Sep 22 19:01:26 1994 Doug Evans (dje@canuck.cygnus.com)
9563
9564 * README: New file.
9565
9566 Mon Sep 19 16:35:23 1994 Jim Wilson (wilson@sphagnum.cygnus.com)
9567
9568 * libc/stdlib/ecvtbuf.c (_gcvt): Undo last change.
9569
9570 Mon Sep 19 11:44:23 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
9571
9572 * libc/stdlib/setenv.c (_findenv): Declare.
9573
9574 * libc/include/sys/fcntl.h: Fix declarations of open, creat, and
9575 fcntl to not use _EXFUN, and change string parameters to open and
9576 creat to be ``const char *''.
9577 * libc/sys/sparc64/sys/fcntl.h: Likewise.
9578 * libc/sys/sparc64/creat.c (creat): Make PATH const.
9579 * libc/syscalls/sysopen.c: Include <fcntl.h>.
9580 (open) Make _FILE const.
9581 * libc/sys/z8ksim/glue.c (_open): Make BUF const.
9582 (_creat): Make PATH const.
9583 * libc/sys/h8300hms/syscalls.c (_open): Make PATH const.
9584 * libc/sys/h8500hms/syscalls.c (_open): Likewise.
9585 * libc/sys/m88kbug/syscalls.c (open): Likewise.
9586 * libc/sys/sh/syscalls.c (_open): Likewise.
9587 * stub/shared/glue.c (open): Make BUF const.
9588 * stub/ex93x/syscalls.c (open): Make FILENAME const.
9589
9590 Thu Sep 8 16:39:12 1994 Steve Chamberlain (sac@jonny.cygnus.com)
9591
9592 * libc/include/errno.h: Add ENMFILE
9593 * libc/include/sys/config.h: Support Z8000.
9594 * libc/include/sys/signal.h: New signals for go32.
9595 * libc/machine/h8500/psi.S (__addpsir0r0): New function
9596 * libc/machine/h8500/cmpsi.S (__ucmppsi2): New function
9597 * libc/machine/sh/sdivsi3.s (__sdivsi3): Rewritten.
9598 * libc/stdlib/mallocr.c (_morecore_r): Minimum chunk
9599 size is variable, depending upon CHUNK_POWER.
9600 * libc/sys/go32/*.c: Upgrade to new go32 stuff.
9601
9602 Sun Sep 4 17:42:43 1994 Jim Wilson (wilson@sphagnum.cygnus.com)
9603
9604 * libc/stdlib/ecvtbuf.c (_gcvt): Output '-' for negative numbers.
9605
9606 Fri Sep 2 10:56:01 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
9607
9608 * libc/include/_ansi.h (_PARAMS): Don't define if already defined.
9609
9610 Wed Aug 24 11:11:03 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
9611
9612 * configure.in: Change i[34]86 to i[345]86.
9613
9614 * libc/include/math.h: Don't define HUGE_VAL if it is already
9615 defined.
9616
9617 Wed Aug 17 15:18:02 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
9618
9619 * testsuite/libm.sac/test_erfc.c: Correct some result values.
9620 * testsuite/libm.sac/test_gammaf.c: Likewise.
9621 * testsuite/libm.sac/test_sin.c: Likewise.
9622 * testsuite/libm.sac/test_tanh.c: Likewise.
9623
9624 Tue Aug 16 16:12:53 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
9625
9626 * libc/include/machine/ieeefp.h: Don't try set endianness if it is
9627 already set. Define typedefs __int32_t and __uint32_t.
9628 * libc/include/math.h: Include <machine/ieeefp.h>.
9629 (union __dmath): Use __uint32_t.
9630 * libm/math/fdlibm.h, libm/math/*.c: Use __int32_t and __uint32_t
9631 instead of int and unsigned int.
9632
9633 Thu Aug 11 15:16:09 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
9634
9635 Replace the math library with the SunPRO fdlibm package.
9636 * libm/math: Completely changed all files.
9637 * libm/ieeefp: Remove contents and directory.
9638 * libm/Makefile.in (LIBM_FP_LIB): Remove.
9639 (SUBDIRS): Just set to math/lib.a.
9640 * libm/libm.texinfo: Updated for new library.
9641 * libc/include/math.h: Extensive changes for new math library.
9642 * libc/include/ieeefp.h (isnanf, isinff, finitef): Change argument
9643 from _FLOAT_ARG to float.
9644 (maxpowtwo, maxpowtwof): Don't declare.
9645 * configure.in (fp_dir): Removed; was always ieeefp anyhow.
9646 (libm_fp_lib): Removed.
9647 * Makefile.in (MATHOBJS_IN_LIBC): Updated with new file names.
9648 * testsuite/libm.paranoia/Makefile.in (check): Correct --srcdir
9649 argument to ${RUNTEST}.
9650 * testsuite/libm.sac/Makefile.in (LOCAL_CFLAGS): Define.
9651 (.c.o): New rule.
9652 (RUNTESTFLAGS): Set CC and CFLAGS.
9653 (TESTS): Remove test_log2 and test_log2f.
9654 (${TESTS}): Pass ${LOCAL_CFLAGS}, not ${CFLAGS}.
9655 * testsuite/libm.sac/math.c (run_vector_1): Use float, not
9656 _FLOAT_ARG, for single precision argument type.
9657 * testsuite/libm.sac/sac.exp: Treat an error in bit 63 as an
9658 expected failure. Close the input pipe.
9659 * testsuite/libm.sac/test.c (test_sok, test_iok, test_scok):
9660 Correct misspelling of inaccurate.
9661 (test_mok): Use ``inaccurate'', not ``wrong''.
9662 * testsuite/libm.sac/{test_acos.c, test_acosh.c, test_asin.c,
9663 test_asinh.c, test_atan.c, test_atanh.c, test_ceil.c,
9664 test_ceilf.c, test_cos.c, test_cosh.c, test_erf.c, test_erf.c,
9665 test_fabs.c, test_floor.c, test_floorf.c, test_fmod.c,
9666 test_fmodf.c, test_gamma.c, test_log1p.c, test_log1pf.c,
9667 test_yn.c): Correct many result values. Many are still wrong.
9668
9669 * libc/stdlib/ecvtbuf.c (print_e): If _dtoa_r sets decpt to 9999,
9670 just copy the string.
9671 (_gcvt): Always return the buffer.
9672
9673 Tue Aug 9 13:43:23 1994 J.T. Conklin (jtc@phishhead.cygnus.com)
9674
9675 * bcopy.c: fixed documentation, bcopy was not specified by ANSI.
9676
9677 Wed Aug 3 05:39:41 1994 D. V. Henkel-Wallace (gumby@cygnus.com)
9678
9679 * libc/include/sys/reent.h: (struct _Bigint): add _reclaim
9680 structure.
9681 (struct _reent): add _p5s, _cvtlen, _cvtbuf.
9682 (_reclaim_reent): declare new entry point.
9683 * libc/reent/reent.c (cleanup_glue, _reclaim_reent): new
9684 functions.
9685
9686 * libc/stdlib/mprec.c (Balloc): Keep track of every struct bigint
9687 ever allocated, so that we can later reclaim them all.
9688 (pow5mult): make reentrant.
9689
9690 * libc/stdlib/ecvtbuf.c (fcvtbuf, ecvtbuf): extend these functions
9691 so that when given NULL as a buffer, return a pointer to static
9692 space in the rent structure. This is not documented behaviour;
9693 it's only to support ecvt and fcvt, which aren't ANSI anyway.
9694 * libc/stdlib/efgcvt.c (fcvt, ecvt) Use new functionality (and
9695 therefore become reentrant).
9696
9697 * libc/stdlib/dtoastub.c: remove spurious inclusion of mprec.h.
9698
9699 Mon Aug 1 16:52:24 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
9700
9701 * libc/include/machine/ieeefp.h: Check _AM29K, not ___AM29K__.
9702
9703 Thu Jul 28 15:40:21 1994 J.T. Conklin (jtc@phishhead.cygnus.com)
9704
9705 * Makefile.in: Make link to libg.a after libc.a; this is needed
9706 for the testsuites to build executables when everything comes
9707 from the tree.
9708
9709 Mon Jun 27 17:14:29 1994 Bill Cox (bill@rtl.cygnus.com)
9710
9711 * libc/Makefile.in: Add a VERSION variable so we can keep track.
9712 * libm/Makefile.in: Add a VERSION variable so we can keep track.
9713
9714 Wed Jun 22 10:26:00 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
9715
9716 * libc/include/stdio.h: Use __VALIST, not va_list.
9717
9718 Tue May 17 15:43:28 1994 Bill Cox (bill@rtl.cygnus.com)
9719
9720 * testsuite/config/unix-libm.exp, testsuite/lib/libm.exp,
9721 testsuite/libm.sac/execute.exp:
9722 Replace error proc calls with perror calls.
9723
9724 Wed May 11 09:25:28 1994 Doug Evans (dje@canuck.cygnus.com)
9725
9726 * libc/include/*.h: #include "_ansi.h" instead of <_ansi.h>.
9727 * libc/include/time.h: #define NULL as 0L.
9728
9729 Mon May 9 18:41:20 1994 Doug Evans (dje@canuck.cygnus.com)
9730
9731 * host/any (INCLUDES): Delete -I of gcc/include, gcc -B takes
9732 care of it.
9733
9734 Mon May 9 18:39:39 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
9735
9736 * libc/include/sys/signal.h: Check for __GO32__, not __i386__ and
9737 not __unix__.
9738
9739 Sat May 7 17:07:36 1994 Steve Chamberlain (sac@cygnus.com)
9740
9741 * configure.in (TARGET_CFLAGS): Set -O2 as default.
9742 (z8k-*-*): Use syscalls fake sys dir.
9743 * libc/sys/z8k/glue.c: Rename syscalls.
9744 * libc/sys/go32/Makefile.in: Use new routines.
9745 * libc/machine/Makefile.in: Fix typo in ln stuff.
9746
9747 Thu May 5 13:47:48 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
9748
9749 * Makefile.in (libm.a, crt0.o): Use cp if ln fails.
9750 * libc/Makefile.in (crt0.o): Likewise.
9751 * libc/machine/Makefile.in (lib.a): Likewise.
9752 * libc/sys/Makefile.in (lib.a, crt0.o): Likewise.
9753
9754 All Makefile.in files: Added mostlyclean, realclean and distclean
9755 targets.
9756
9757 * Makefile.in: Don't bother to unexport XTRAFLAGS or
9758 XTRAFLAGS_FOR_TARGET, since they are no longer passed down from
9759 the top level Makefile.
9760
9761 Tue Apr 26 15:10:34 1994 Doug Evans (dje@canuck.cygnus.com)
9762
9763 * libc/sys/sparc64/sys/stat.h: New file.
9764 * libc/sys/sparc64/sys/time.h: New file.
9765 * libc/sys/sparc64/sys/types.h: New file.
9766
9767 Fri Apr 22 12:58:24 1994 Stan Shebs (shebs@andros.cygnus.com)
9768
9769 * stub/ex93x/crt0.s (start): Add code to clear bss.
9770
9771 Wed Apr 13 10:34:58 1994 Doug Evans (dje@canuck.cygnus.com)
9772
9773 * libc/include/sys/types.h (time_t): Properly protect inside
9774 #ifndef __time_t_defined.
9775
9776 * libc/stdio/fileno.c: New file.
9777 * libc/stdio/Makefile.in (OFILES, CHEWOUT_FILES): Add fileno.
9778 (fileno.o): Add dependency.
9779 * libc/include/stdio.h (__sgetc): Rename never to _never.
9780 (fileno macro): Disable, needs to do CHECK_INIT first.
9781
9782 Mon Apr 11 17:37:09 1994 Bill Cox (bill@rtl.cygnus.com)
9783
9784 * testsuite/Makefile.in (EXPECT, RUNTEST): Set these for the check
9785 goal.
9786
9787 * testsuite/Makefile.in (check): Set TCL_LIBRARY for runtest.
9788 * testsuite/libm.paranoia/Makefile.in (check): Set TCL_LIBRARY for
9789 runtest.
9790 * testsuite/libm.sac/Makefile.in (check): Set TCL_LIBRARY for
9791 runtest.
9792
9793 Sat Apr 9 16:18:09 1994 Doug Evans (dje@cygnus.com)
9794
9795 * libc/sys/sparc64/sys/fcntl.h: New file, define solaris versions
9796 of the various constants.
9797
9798 Thu Apr 7 21:19:07 1994 Mark Eichin (eichin@cygnus.com)
9799
9800 * libc/include/math.h: #ifndef __math_68881 around things which
9801 conflict with the (gcc-provided) inline functions in
9802 gcc/ginclude/math-68881.h.
9803
9804 Thu Apr 7 02:50:43 1994 Doug Evans (dje@cygnus.com)
9805
9806 * libc/include/_syslist.h (_gettimeofday): Define.
9807 (_times): Ditto.
9808 * libc/include/reent.h: #include <machine/types.h> to get _CLOCK_T_.
9809 (struct tms, timeval, timezone): Declare.
9810 (_gettimeofday_r, _times_r): Declare.
9811 * libc/include/time.h (_CLOCK_T_): Don't #undef. Remove
9812 #ifdef _CLOCK_T_ surrounding definition of clock_t.
9813 (time_t): Add multiple definition protection, __time_t_defined.
9814 * libc/include/sys/time.h: Don't #include <time.h>.
9815 Always define struct timezone (remove #ifndef _TIME_H_).
9816 * libc/include/sys/times.h (_CLOCK_T_): Don't #undef. Remove
9817 #ifdef _CLOCK_T_ surrounding definition of clock_t.
9818 * libc/reent/Makefile.in (OFILES): Add timer.o.
9819 (CHEWOUT_FILES): Add timer.def. Add timer.o/timer.c dependence.
9820 * libc/reent/timer.c: New file.
9821 * libc/time/clock.c: #include <reent.h>.
9822 (clock): Call _times_r instead of times.
9823 * libc/time/time.c (HAVE_GETTIMEOFDAY): Renamed from
9824 HAVE_GET_TIME_OF_DAY.
9825 Add comment regarding supporting OS routine(s) required (for docs).
9826 #include <reent.h>.
9827 (time): Call _gettimeofday_r instead of gettimeofday.
9828 * libc/time/asctime.c: Fix comment regarding supporting OS routines.
9829 * libc/time/ctime.c: Ditto.
9830 * libc/time/strftime.c: Ditto.
9831 * libc/sys/sparc64/Makefile.in (TEMPLATE_SFILES): Remove gettimeofday.
9832 (TEMPLATE_SFILES_R): Define here. Also define times.
9833 Add times_r.o/times.S dependence.
9834 (time2.c, junk.c): Deleted.
9835 * libc/sys/sparc64/time2.c: Deleted.
9836 * configure.in (sparc64-*-*): Define HAVE_GETTIMEOFDAY.
9837
9838 * libc/stdio/mktemp.c (_getpid_r): Renamed from _getpid.
9839 * libc/stdio/tmpnam.c (_getpid_r): Ditto.
9840 * libc/sys/sparc64/junk.c: Deleted.
9841
9842 Mon Mar 21 16:51:03 1994 Doug Evans (dje@canuck.cygnus.com)
9843
9844 * libc/sys/sparc64/Makefile.in: Add times syscall.
9845 * libc/sys/sparc64/crt0.S: Handle stack bias at run time so we can
9846 be used with and without it. Add comment clarifying Medium/Anywhere
9847 model requirements.
9848 * libc/sys/sparc64/sigsetjmp.S (setjmp, longjmp): Add svr4 support.
9849 * libc/sys/sparc64/sys/syscall.h (SYS_times): Define for sunos4
9850 even if obsolete.
9851
9852 Sun Mar 20 15:51:47 1994 Doug Evans (dje@cygnus.com)
9853
9854 * configure.in (target_cflags): Move init.
9855 (sparc64-*-*): Define HAVE_BLKSIZE.
9856
9857 Wed Mar 9 10:44:52 1994 Doug Evans (dje@canuck.cygnus.com)
9858
9859 * libc/include/sys/_types.h: New file.
9860 * libc/include/reent.h: #include it.
9861 Add comment describing REENTRANT_SYSCALLS_PROVIDED and
9862 MISSING_SYSCALL_NAMES.
9863 Sort syscalls.
9864 * libc/include/_syslist.h: Remove _raise.
9865 * libc/reent/signalr.c: New file.
9866 * libc/reent/Makefile.in: Compile it.
9867 * libc/signal/signal.c: Only use ifdef SIMULATED_SIGNALS.
9868 Add doc for raise and _raise_r.
9869 * libc/signal/raise.c: Only use ifndef SIMULATED_SIGNALS.
9870 (raise): Call _raise_r.
9871 (_raise_r): Call _getpid_r and _kill_r.
9872 * libc/stdlib/abort.c: Remove inclusion of stdio.h and _syslist.h.
9873 (abort): Loop forever calling raise and _exit.
9874
9875 Mon Mar 7 14:40:08 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
9876
9877 * configure.in: Remove extraneous echo.
9878
9879 Thu Mar 3 12:14:22 1994 Doug Evans (dje@canuck.cygnus.com)
9880
9881 * libc/sys/sparc64/sys/dirent.h (MAXNAMLEN): #undef to avoid
9882 collision with unistd.h, and fix for svr4.
9883
9884 Wed Mar 2 13:55:25 1994 Doug Evans (dje@canuck.cygnus.com)
9885
9886 * libc/stdio/local.h (_llicvt): Declare.
9887 (CVT_BUF_SIZE): Define (and buffer size from 512 to 128).
9888 * libc/stdio/cvt.c: Include "local.h" to get CVT_BUF_SIZE.
9889 (_llicvt): Define.
9890 (_sicvt): Fix function header (`value' is short).
9891 * libc/stdio/vfprintf.c (_vfprintf_r): Use CVT_BUF_SIZE.
9892 Add printing of long long's support.
9893 Add printing of 8 byte pointer support.
9894
9895 Fri Feb 11 21:52:11 1994 Steve Chamberlain (sac@sphagnum.cygnus.com)
9896
9897 * libc/sys/sh/syscalls.c (pipe, execv, wait, fork, utime, chown,
9898 stat, chmod): New hooks.
9899 (sbrk): Abort if stack and heap collide.
9900 * libc/machine/sh/udivsi3, libc/machine/sh/sdivsi3 Modified to
9901 shortcut when given small args.
9902 * libc/machine/sh/setjmp.s: Rewritten.
9903 * libc/machine/sh/strcmp.s (strcmp): New function takes advantage
9904 of cmp/str instruction.
9905
9906 Wed Feb 9 15:12:35 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
9907
9908 * configure.in: Accept powerpc* as a CPU type, using fp_dir ieeefp
9909 and machine_dir powerpc.
9910 * libc/include/machine/setjmp.h, libc/include/machine/ieeefp.h:
9911 Add cases for __powerpc__.
9912 * libc/machine/powerpc/Makefile.in, libc/machine/powerpc/setjmp.S:
9913 New files.
9914
9915 * libc/include/stdio.h (_iprintf_r): Declare correctly.
9916
9917 Thu Jan 27 10:36:27 1994 Steve Chamberlain (sac@cygnus.com)
9918
9919 * libc/stdlib/callocr.c: New file with _calloc_r in it.
9920 * libc/stdlib/calloc.c (calloc_r): Now in callocr.c
9921
9922 Thu Jan 20 15:14:37 1994 Doug Evans (dje@canuck.cygnus.com)
9923
9924 * libc/stdlib/ecvtbuf.c (print_f): Remove local "done".
9925 (print_e): More comments to describe args, etc.
9926 "type" arg may now be 'g' or 'G' for %g/G format --> remove
9927 trailing blanks.
9928 (_gcvt): Remove locals decpt, sign, end, p, done.
9929 More comments for print_e invocation.
9930 Pass "type" to print_e as is (g/G).
9931
9932 Wed Jan 19 16:34:18 1994 Rob Savoye (rob@darkstar.cygnus.com)
9933
9934 * stub/shared/m68k-crt0.S: Changed so it compiles (and runs) on a
9935 stock m68000.
9936
9937 Mon Jan 17 15:41:53 1994 Doug Evans (dje@canuck.cygnus.com)
9938
9939 * libc/stdlib/mallocr.c (_morecore_r): Fix aligning of pointer so it
9940 works with any sized pointer, including ones bigger than ints and
9941 longs.
9942
9943 Thu Jan 6 14:53:21 1994 Doug Evans (dje@canuck.cygnus.com)
9944
9945 * libc/sys/sparc64/{time2.c,utime.S,utime2.c}: New files.
9946
9947 Sat Dec 11 16:17:20 1993 Steve Chamberlain (sac@thepub.cygnus.com)
9948
9949 * libc/include/stdlib.h (_calloc_r): Add prototype.
9950 * libc/machine/h8500/negsi2.c: New file.
9951 * libc/machine/h8500/divsi3.c: Prevent overflow when dividing v
9952 large unsigned numbers.
9953 * libc/machine/h8500/cmpsi.c: Add cmppsi.
9954 * libc/stdlib/mallocr.c (morecore_r): Fix aligning pointers so it
9955 works when sizeof(size_t) != sizeof(char *).
9956 * libc/stdlib/mprec.c (Balloc): Call calloc rather than malloc to
9957 get play area
9958 * libc/stdlib/mprec.h: Define Just_16 if generating for z8000.
9959
9960 Mon Dec 6 15:59:53 1993 Doug Evans (dje@rtl.cygnus.com)
9961
9962 * libc/include/assert.h (assert): Handle -traditional.
9963
9964 Tue Nov 16 15:49:24 1993 Mark Eichin (eichin@cygnus.com)
9965
9966 * Makefile.in: added ; after every "fi" and "done" that wasn't at
9967 the end of a line (ie. anything before a backslash continuation)
9968 so that bash handles them.
9969
9970 Tue Nov 16 12:31:57 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
9971
9972 * libc/sys/go32/lstat.s: new file, copied from stat.s and renamed
9973 stat to lstat
9974
9975 Mon Nov 15 15:50:43 1993 Steve Chamberlain (sac@jonny.cygnus.com)
9976
9977 * libc/sys/sh/crt0.s, libc/sys/sh/trap.s,
9978 libc/machine/sh/sdivsi3.s, libc/machine/sh/setjmp.s,
9979 libc/machine/sh/udivsi3.s: Use new calling convention.
9980
9981 Mon Nov 15 15:25:38 1993 Mark Eichin (eichin@cygnus.com)
9982
9983 * libc/include/sys/unistd.h, libc/include/sys/stat.h: ANSI-fy
9984 chmod, access, chdir, chown by making _path const. Also fix _amode
9985 param of access.
9986
9987 Fri Nov 12 20:25:28 1993 Mark Eichin (eichin@cygnus.com)
9988
9989 * libc/sys/a29khif/_tmpnam.s (_tmpnam): renamed function to
9990 _khif_tmpnam, because it doesn't comply with ANSI but may be
9991 useful anyway. Real tmpnam was already in libc/stdio, and was
9992 colliding with this one (pr 2176.)
9993 * libc/sys/a29khif/stubs.s (tmpnam): removed tmpnam. This file is
9994 the wrong idea anyhow.
9995
9996 Mon Nov 8 07:50:16 1993 Doug Evans (dje@canuck.cygnus.com)
9997
9998 * configure.in: Remove h8300h, we have multilib now.
9999
10000 Fri Nov 5 12:37:27 1993 Mark Eichin (eichin@cygnus.com)
10001
10002 * libc/string/strcasecmp.c, libc/string/strncasecmp.c: new
10003 functions, to get preference over the ones in libiberty (since we
10004 provide correct declarations in <string.h>.
10005 * libc/string/Makefile.in: add support for strncasecmp,
10006 strcasecmp.
10007
10008 Fri Nov 5 09:05:45 1993 D. V. Henkel-Wallace (gumby@blues.cygnus.com)
10009
10010 * Change netware config not to look for cpu explicitly.
10011
10012 Thu Nov 4 14:21:25 1993 Doug Evans (dje@canuck.cygnus.com)
10013
10014 * libc/sys/sparc64/{creat.c,junk.c}: New files.
10015 * libc/sys/sparc64/Makefile.in: Add dependencies.
10016
10017 Wed Nov 3 10:42:49 1993 Doug Evans (dje@canuck.cygnus.com)
10018
10019 * configure.in: Clean up v9 a bit, new "os" aoutv8.
10020
10021 Tue Nov 2 10:00:44 1993 D. V. Henkel-Wallace (gumby@cygnus.com)
10022
10023 * libc/include/sys/reent.h: make structure smaller by allocating
10024 some stuff when needed.
10025 * libc/signal/signal.c: allocate as needed
10026 * libc/stdio/findfp.c,stdio/local.h: ditto
10027 * libc/stdlib/mprec.c: ditto
10028
10029 * libc/time/localtime.c: don't return a dangling stack ptr.
10030
10031 Wed Sep 29 20:42:34 1993 Rob Savoye (rob@darkstar.cygnus.com)
10032
10033 * stub/mvme135/crt0.S, stub/mvme135/glue.c: Moved to stub/generic.
10034
10035 Wed Sep 29 16:27:49 1993 K. Richard Pixley (rich@sendai.cygnus.com)
10036
10037 * libc/include/stdio.h (__sputc): comment out static inline which
10038 confuses coff toolchains.
10039
10040 Thu Sep 2 16:31:36 1993 Mark Eichin (eichin@cygnus.com)
10041
10042 * libc/sys/a29khif/{_close.s, _fstat.s, _lseek.s, _sbrk.s,
10043 _write.s, getpid.c, kill.c, read.s}:
10044 * libc/sys/a29khif/stubs.s: eliminated stubs that already go
10045 through the syscalls directory.
10046
10047 Fri Oct 29 13:59:58 1993 Jeffrey Wheat (cassidy@cygnus.com)
10048
10049 * configure.in: fixed double quote gotcha.
10050
10051 Wed Oct 27 15:27:09 1993 Rob Savoye (rob@darkstar.cygnus.com)
10052
10053 * stub/ex931: stub library for sparclite board.
10054 * stub/idp: Renamed from mc68ec. Added contructor table
10055 stuff to linker script.
10056 * stub/mvme135: Renamed from m68kmvme. Added contructor table
10057 stuff to linker script.
10058
10059 Tue Oct 26 17:01:23 1993 K. Richard Pixley (rich@sendai.cygnus.com)
10060
10061 * configure.in: Configure testsuites only if they exist.
10062
10063 Tue Oct 26 12:37:11 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
10064
10065 * configure.in: Don't set machine_dir for i386 until there is
10066 something in libc/machine/i386 to compile. For i[34]86-*-netware*
10067 use sys/netware, don't use signal, define NO_EXEC, ABORT_PROVIDED,
10068 CLOCK_PROVIDED and MALLOC_PROVIDED.
10069
10070 * libc/sys/netware: New directory. Contains simplistic and
10071 probably incorrect stubs for NetWare. Should be enough to load
10072 the library.
10073 * libc/sys/netware/crt0.c, libc/sys/netware/environ.c,
10074 libc/sys/netware/getpid.c, libc/sys/netware/link.c: New NetWare
10075 stub files.
10076
10077 * libc/reent/execr.c: Don't use if NO_EXEC is defined.
10078 * libc/reent/sbrkr.c: Don't use if MALLOC_PROVIDED is defined.
10079 * libc/stdlib/abort.c: Don't use if ABORT_PROVIDED is defined.
10080 * libc/time/clock.c: Don't use if CLOCK_PROVIDED is defined.
10081
10082 Mon Oct 25 16:48:08 1993 Roland H. Pesch (pesch@cygnus.com)
10083
10084 * testsuite/Makefile.in: add "docs" dummy target for consistency
10085 with rest of newlib; turn "info" and "install-info" into dummy
10086 targets, since they wouldn't have worked. (Depended on
10087 nonexistent "doc" subdir.)
10088
10089 Fri Oct 22 20:37:32 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
10090
10091 * configure.in: handle mips* instead of mips
10092
10093 Thu Oct 21 08:57:24 1993 Ian Lance Taylor (ian@cygnus.com)
10094
10095 * libc/include/sys/dirent.h: New file. If it is not overridden by
10096 a version of libc/sys/*/sys/dirent.h, it includes the next
10097 <dirent.h> file in case there is one lurking somewhere.
10098
10099 Fri Oct 15 14:17:40 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
10100
10101 * libc/stdlib/strtoul.c (_strtoul_r): Several changes for ANSI
10102 compliance, namely: Accept a minus sign. Consider a single 0 with
10103 a radix of 0 as being a conversion. Determine overflow correctly.
10104 If an overflow occurs, set *ptr to the end of the number, not the
10105 middle.
10106 * lib/stdlib/strtol.c (_strtol_r): Determine overflow correctly.
10107
10108 Thu Oct 14 21:49:52 1993 Doug Evans (dje@canuck.cygnus.com)
10109
10110 * libc/machine/h8300/divsi3.S (divmodsi4): Fix h8300h case.
10111
10112 Fri Oct 1 17:17:34 1993 Doug Evans (dje@canuck.cygnus.com)
10113
10114 * Makefile.in (INSTALL): Use $srcrootpre.
10115 (crt0.o): Replace $< with $(CRT0_DIR)/$(CRT0), Sun make
10116 can't handle it.
10117 * libc/Makefile.in (crt0.o): Spell out $<, Sun make can't handle
10118 it.
10119 * libc/sys/Makefile.in (crt0.o, lib.a): Ditto.
10120 * stub/Makefile.in (crt0.o, TARGETLIB): Ditto.
10121 * libc/sys/sparc64/Makefile.in (isatty.o): Sun VPATH lossage.
10122 * libm/math/Makefile.in (matherr.o): Ditto.
10123
10124 Thu Sep 30 11:09:17 1993 Steve Chamberlain (sac@phydeaux.cygnus.com)
10125
10126 * configure.in: Build multidirs for z8k.
10127 * libc/include/stdlib.h (_strtoul_r): add prototype.
10128 * libc/include/machine/limits.h: Get INT_MIN right for all the z8k family.
10129 * libc/include/machine/setjmp.h: Add for z8k.
10130 * libc/machine/z8k/{mulsi.o, udivsi3.o, umodsi3.o, modsi3.o} obsolete.
10131 * libc/sys/z8ksim/glue.c: tidy up.
10132
10133 Mon Sep 20 14:04:46 1993 Doug Evans (dje@canuck.cygnus.com)
10134
10135 * libc/unix/{execl.c execle.c execlp.c execv.c execvp.c}:
10136 New files. Requires execve system call.
10137 * libc/unix/Makefile.in: Use them.
10138 * libc/sys/sparc64/{execl.c execle.c execlp.c execv.c execvp.c}:
10139 Deleted, moved to libc/unix.
10140 * libc/sys/sparc64/Makefile.in: Remove them.
10141
10142 Mon Sep 20 10:38:32 1993 Doug Evans (dje@canuck.cygnus.com)
10143
10144 * libc/sys/sparc64/{template.S template_r.S}: New files.
10145 * libc/sys/sparc64/Makefile.in: Build source for trivial syscalls
10146 from templates.
10147 * libc/sys/sparc64/{chdir.S chmod.S close.S dup.S fcntl.S
10148 fork.S fstat.S lseek.S link.S mkdir.S open.S pipe.S read.S rmdir.S
10149 umask.S unlink.S wait4.S write.S}: Removed, now built from
10150 templates.
10151
10152 Sun Sep 19 14:52:57 1993 Doug Evans (dje@canuck.cygnus.com)
10153
10154 * libc/time/time.c: #include <_ansi.h>.
10155
10156 Sun Sep 19 13:43:25 1993 Doug Evans (dje@canuck.cygnus.com)
10157
10158 * configure.in (sparc64-*-*): Remove -D__SIZE_TYPE__.
10159
10160 Mon Sep 13 13:52:16 1993 K. Richard Pixley (rich@sendai.cygnus.com)
10161
10162 * configure.in: match m8* rather than m88k so that m88110 is
10163 recognized as well.
10164
10165 Tue Sep 7 12:19:32 1993 Doug Evans (dje@canuck.cygnus.com)
10166
10167 * libc/sys/h8300hms/{Makefile.in, _exit.c, misc.c}:
10168 Renamed exit.c to _exit.c to avoid collision with stdlib/exit.c.
10169 misc.c: New file.
10170
10171 * configure.in: Add multilib support to h8300.
10172
10173 Mon Sep 6 14:07:06 1993 Doug Evans (dje@canuck.cygnus.com)
10174
10175 * libc/stdlib/abort.c (abort): Remove _VOLATILE from return type.
10176 * libc/include/_ansi.h (_ATTRIBUTE): New macro for __attribute__.
10177 * libc/include/stdlib.h (exit, abort): Add noreturn attribute.
10178
10179 Mon Sep 6 14:24:18 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
10180
10181 * configure.in: Corrected multidirs for sparc target.
10182
10183 Mon Aug 30 15:56:44 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
10184
10185 Support for building newlib multiple times with different
10186 compilation flags.
10187 * configure.in: Only configure doc at top level. Set multidirs
10188 when appropriate for target, unless not at top level. If
10189 multidirs is set, independently configure each subdirectory.
10190 Adjust TOP, MULTIDIRS and MULTISUBDIR appropriately in Makefile.
10191 * Makefile.in (MULTIDIRS, MULTISUBDIR): New variables,
10192 automagically set by configure.in.
10193 (all): If MULTIDIRS is set, build multiple copies of libraries.
10194 (install): If MULTIDIRS is set, install multiple copies of
10195 libraries. Install in $(tooldir)/lib/$(MULTISUBDIR). If
10196 MULTISUBDIR is set, don't bother to install header files.
10197 * host/any (INCLUDES, CHEW): Use $(SRCTOP) rather than $(TOP) from
10198 ${srcrootpre}.
10199 * stub/configure.in: Set MULTISUBDIR appropriately.
10200 * stub/Makefile.in (install): Install in
10201 $(tooldir)/lib/$(MULTISUBDIR).
10202 * All Makefile.in files: Define SRCTOP as well as TOP.
10203
10204 Mon Aug 30 10:34:24 1993 Doug Evans (dje@canuck.cygnus.com)
10205
10206 * libc/machine/h8300/{mulhi3.S, divhi3.S}: Comment out if h8300h.
10207 * libc/machine/h8300/{mulsi3.S, divsi3.S}: Add h8300h support.
10208
10209 Thu Aug 26 19:38:12 1993 Doug Evans (dje@canuck.cygnus.com)
10210
10211 * libc/sys/h8300hms/exit.c (_exit): New function.
10212
10213 Wed Aug 25 16:31:48 1993 K. Richard Pixley (rich@sendai.cygnus.com)
10214
10215 * configure.in: recognize m88110.
10216
10217 Fri Aug 20 16:46:23 1993 K. Richard Pixley (rich@sendai.cygnus.com)
10218
10219 * libc/sys/m88kbug/crt0.c: pretty up, remove extraneous comments,
10220 prototype main and call with args.
10221
10222 Fri Jul 30 16:52:47 1993 K. Richard Pixley (rich@cygnus.com)
10223
10224 First real try at system traps for m88k-bug.
10225 * libc/sys/m88kbug/syscalls.c: many changes. Convert from stubs
10226 to real trap calls.
10227 * libc/sys/m88kbug/sys/systraps.h: new file.
10228
10229 Tue Jul 27 16:31:16 1993 K. Richard Pixley (rich@sendai.cygnus.com)
10230
10231 Patches to fix info building when target does not use sys
10232 directory.
10233 * libc/Makefile.in (targetdep.tex): add sys.tex separately.
10234 * libc/sys.tex, libc/sys/sys.tex: moved from libc/sys/sys.tex to
10235 libc/sys.tex.
10236 * libc/sys/Makefile.in (doc): do nothing.
10237
10238 Mon Jul 26 17:08:11 1993 K. Richard Pixley (rich@sendai.cygnus.com)
10239
10240 * libc/Makefile.in (CRT0): new macro.
10241 (all): depend on $(CRT0) rather than crt0.o.
10242
10243 * configure.in: fix libc_sys_dir -> libc_sys_lib thinko.
10244 do not default crt0, instead, set crt0 and crt0_dir based on
10245 sys_dir and stub_dir.
10246
10247 * Makefile.in (CRT0_DIR): new macro.
10248 (all): depend on $(CRT0) rather than crt0.o which may not exist.
10249 (crt0.o): depend on $(CRT0_DIR)/$(CRT0) rather than simply
10250 $(CRT0).
10251 ($(CRT0)): recur by cd'ing into $(CRT0_DIR).
10252
10253 Sun Jul 25 17:51:51 MDT 1993 Jeffrey Wheat (cassidy@cygnus.com)
10254
10255 * testsuite/lib/libm.exp:
10256 added code to support compiling and linking of tests for
10257 libm.sac (paranoia to be added next) and processing the
10258 pass or failure of the tests.
10259
10260 * testsuite/config/unix-libm.exp:
10261 platform specific proc's for dealing with compiler, linker
10262 and the way we execute and process the test results.
10263
10264 * testsuite/libm.sac/execute.exp:
10265 generic framework for the sac tests. the config and lib
10266 expect code for specific platforms tie it all together.
10267
10268 * testsuite/libm.sac/test_is.c:
10269 changed the output of the test to be consistant with the
10270 other tests. parsing of pass nad fail messages is now fixed.
10271
10272 Fri Jul 23 19:20:07 1993 Per Bothner (bothner@kalessin)
10273
10274 * libc/include/{assert.h, ctype.h, dirent.h, errno.h, fastmath.h,
10275 locale.h, math.h, pwd.h, reent.h, setjmp.h, signal.h, stdio.h,
10276 stdlib.h, string.h, termios.h, time.h, utime.h, utmp.h}: For C++:
10277 #ifdef __cplusplus, surround by extern ""C { ... }.
10278 * libc/include/assert.h: Do *not* protect assert.h against
10279 multiple inclusion! Also, #undef it before #define, to allow
10280 redefinition.
10281 * libc/include/stdio.h (getlogin, cuserid): Removed. These
10282 should be only in unistd.h.
10283
10284 * libc/include/sys/{fcntl.h, reent.h, stat.h, time.h, times.h,
10285 unistd.h}: For C++: #ifdef __cplusplus, surround by extern ""C {
10286 ... }.
10287
10288 Fri Jul 23 10:15:33 1993 Doug Evans (dje@canuck.cygnus.com)
10289
10290 * libc/machine/sparc/Makefile.in: Must create a library, even
10291 if empty.
10292
10293 Wed Jul 21 16:00:37 1993 K. Richard Pixley (rich@sendai.cygnus.com)
10294
10295 * configure.in: set machine_dir for m88k. edit crt0 definition
10296 into makefiles.
10297
10298 * Makefile.in, libc/Makefile.in (crt0): pull up from lower directories.
10299
10300 * libc/Makefile.in (all): also build crt0.o.
10301
10302 * libc/machine/i386/Makefile.in, libc/machine/sparc/Makefile.in,
10303 libc/machine/z8k/Makefile.in, libm/Makefile.in (clean): no need
10304 to remove CRT0.
10305
10306 * libc/machine/m88k/Makefile.in (TOP, TARGETLIB): removed.
10307 (all): reworked to build in place.
10308 (clean): remove lib.a
10309 (Makefile): remove redundant ./, call $(SHELL) rather than sh.
10310
10311 * libc/sys/m88kbug/crt0.c (start): renamed to _start.
10312 (_start): key off edata rather than _start_bss.
10313
10314 Wed Jul 21 14:29:47 1993 david d `zoo' zuhn (zoo@cygnus.com)
10315
10316 * libc/include/sys/unistd.h, libc/include/reent.h,
10317 libc/reent/sbrkr.c: change sbrk to return void* instead of char*.
10318
10319 Tue Jul 20 13:19:18 1993 K. Richard Pixley (rich@sendai.cygnus.com)
10320
10321 * libm/Makefile.in, libc/Makefile.in ($(SUBDIRS)): dollar escape a dollar sign.
10322
10323 * Makefile.in (libc.a): break into two rules, one for libc.a and
10324 one for libc/libc.a. Force subdirs current before rebuilding
10325 library.
10326 (libm.a): break into two rules, one for libm.a and one for
10327 libm/libm.a. Force subdirs current before rebuilding library.
10328
10329 * libc/Makefile.in (SUBLIBS): fix typo.
10330
10331 * libc/sys/Makefile.in (all): force descent into subdirs, then
10332 rebuild library iff out of of date.
10333
10334 Fri Jul 16 17:47:57 1993 K. Richard Pixley (rich@sendai.cygnus.com)
10335
10336 Rework so that library is built and then finished rather than
10337 being built on each invocation of make.
10338
10339 * host/any (machine_dir, sys_dir, signal_dir): these are not
10340 shared and have been moved to their associated Makefile.in's.
10341 (AR_FLAGS): switch to qc which is faster.
10342 * configure.in: no longer assign machine_dir for m88k. set
10343 stub_dir, stub_lib, & crt0 for m68k*-unknown-{aout,coff}. If
10344 stub_dir set, then add to configdirs. add comment about silly
10345 configuration.
10346 (configdirs): drop stub. It will be added only
10347 when needed.
10348 (libm_fp_lib, libc_unix_lib, libc_signal_lib, libc_machine_lib,
10349 libc_sys_dir, fake_sys_dir, libc_fake_sys_lib, stub_dir,
10350 stub_lib, crt0): new variables for tailoring lower level
10351 makefiles. Assign accordingly and edit into makefiles.
10352 * libm/Makefile.in: updated copyright.
10353 (TARGETLIB): removed.
10354 (FLAGS_TO_PASS): removed TARGETLIB, machine_dir, sys_dir.
10355 (SUBDIRS): removed TARGETDEP_DIRS.
10356 (LIBM_FP_LIB, SUBLIBS): new macros.
10357 (all): reworked.
10358 (force): new target to force rebuilds.
10359 (Makefile): call $(SHELL) rather than sh. drop redundant ./
10360 * libc/sys/a29khif/Makefile.in, libc/sys/decstation/Makefile.in,
10361 libc/sys/go32/Makefile.in, libc/sys/h8300hms/Makefile.in,
10362 libc/sys/h8500hms/Makefile.in, libc/sys/m88kbug/Makefile.in,
10363 libc/sys/sh/Makefile.in, libc/sys/sparc64/Makefile.in,
10364 libc/sys/sun4/Makefile.in, libc/sys/sysvi386/Makefile.in,
10365 libc/sys/sysvnecv70/Makefile.in, libc/sys/z8ksim/Makefile.in,
10366 stub/m68kmvme/Makefile.in: updated copyright.
10367 (TARGETLIB, TARGETCRT0, CRT0): macros removed.
10368 (all): reworked. made this the default rule.
10369 (clean): also remove lib.a.
10370 (Makefile): call $(SHELL) rather than sh. drop redundant ./
10371 * stub/Makefile.in: updated copyright.
10372 (TARGETLIB, TARGETCRT0, CRT0, TOP): removed.
10373 (stub_lib): new macro.
10374 (FLAGS_TO_PASS): removed TARGETLIB, stub_dir, TARGETCRT0. Added
10375 RANLIB.
10376 (all): reworked.
10377 (clean, install): assume stub_dir exists.
10378 (Makefile): depend on configure.in. call $(SHELL) rather than
10379 sh. drop redundant ./
10380 * stub/configure.in (stublib): new macro, assign it, edit it into
10381 makefiles.
10382 * Makefile, libc/Makefile.in, doc/Makefile.in, libc/sys/Makefile.in:
10383 updated copyright.
10384 (all): reworked.
10385 (Makefile): call $(SHELL) rather than sh. drop redundant ./
10386 * libc/Makefile.in (TARGETCRT0): removed.
10387 (FLAGS_TO_PASS): dropped TARGETLIB, machine_dir, sys_dir,
10388 TARGETCRT0.
10389 (SUBDIRS): drop TARGETDEP_DIRS.
10390 (LIBC_SIGNAL_LIB, LIBC_SYS_LIB, LIBC_MACHINE_LIB, LIBC_UNIX_LIB,
10391 LIBC_FAKE_SYS_LIB, SUBLIBS): new macros for configuration.
10392 (force): new target to force rebuilds.
10393 * libc/sys/Makefile.in (TARGETCRT0, sys_dir): removed.
10394 (FLAGS_TO_PASS): TARGETLIB, machine_dir, sys_dir, TARGETCRT0
10395 removed.
10396 (clean): assume sys_dir always exists.
10397 * libm/test/Makefile.in (Makefile): call $(SHELL) rather than sh.
10398 drop redundant ./
10399 * libc/ctype/Makefile.in, libc/errno/Makefile.in,
10400 libc/locale/Makefile.in, libc/machine/Makefile.in,
10401 libc/machine/a29k/Makefile.in, libc/machine/h8300/Makefile.in,
10402 libc/machine/h8500/Makefile.in, libc/machine/i386/Makefile.in,
10403 libc/machine/i960/Makefile.in, libc/machine/m68k/Makefile.in,
10404 libc/machine/mips/Makefile.in, libc/machine/necv70/Makefile.in,
10405 libc/machine/sh/Makefile.in, libc/machine/sparc/Makefile.in,
10406 libc/machine/z8k/Makefile.in, libc/reent/Makefile.in,
10407 libc/signal/Makefile.in, libc/stdio/Makefile.in,
10408 libc/stdlib/Makefile.in, libc/string/Makefile.in,
10409 libc/sys/Makefile.in, libc/syscalls/Makefile.in,
10410 libc/time/Makefile.in, libc/unix/Makefile.in,
10411 libm/ieeefp/Makefile.in, libm/math/Makefile.in: updated copyright.
10412 (TARGETLIB): removed.
10413 (all): reworked.
10414 (clean): also remove lib.a.
10415 (Makefile): call $(SHELL) rather than sh. drop redundant ./
10416 * Makefile.in: (machine_dir, sys_dir, stub_dir, stub_lib, CRT0):
10417 new macros.
10418 (SUBDIRS): moved to follow frag inclusion, change stub to
10419 stub_dir.
10420 (FLAGS_TO_PASS): removed machine_dir, sys_dir, signal_dir which
10421 are now set in the libc Makefile.
10422 * libc/machine/Makefile.in (TARGETCRT0, machine_dir): removed.
10423 (FLAGS_TO_PASS): removed TARGETLIB, machine_dir, sys_dir,
10424 TARGETCRT0.
10425 (force): new target to force rebuilds.
10426 * stub/configure.in: determine and set stub_lib for for Makefile.
10427
10428 Thu Jul 15 12:01:27 1993 Doug Evans (dje@canuck.cygnus.com)
10429
10430 * libc/sys/h8300hms/Makefile.in: Make `all' the default target.
10431 crt0.s renamed to crt0.S.
10432 * libc/sys/h8300hms/crt0.S: Add h8/300h support.
10433
10434 * libc/machine/h8300/Makefile.in: Make `all' the default target.
10435 * libc/machine/h8300/{cmpsi.S,ucmpsi.S}: #ifdef out entire file if
10436 h8300h.
10437 * libc/machine/h8300/defines.h: Add macros to handle pointers for
10438 h8300 (16 bits) and h8300h (32 bits).
10439 * libc/machine/h8300/{divsi3.S,mulsi3.S,memcpy.S,memset.S,
10440 reg_memcpy.S,reg_memset.S,strcmp.S}: Add h8300h support.
10441
10442 Thu Jul 15 10:13:29 1993 Ian Lance Taylor (ian@cygnus.com)
10443
10444 * libc/machine/m88k/setjmp.S, Makefile.in: New files; a simple
10445 implementation of setjmp and longjmp for the m88k.
10446 * libc/include/machine/setjmp.h: Added __m88000__ case.
10447
10448 Wed Jul 14 10:10:30 1993 Doug Evans (dje@canuck.cygnus.com)
10449
10450 * configure.in: Recognize h8300h as variant of h8300.
10451
10452 Tue Jul 13 12:24:11 1993 Steve Chamberlain (sac@phydeaux.cygnus.com)
10453
10454 * libc/include/sys/unistd.h (read, write): get prototypes right.
10455 (sbrk): New prototype.
10456 * libc/reent/sbrkr.c (sbrkr): Use correct sbrk prototype.
10457 * libc/stdio/local.h: Include unistd.h.
10458 * libc/machine/h8300/syscalls.c: Names have changed.
10459
10460 Mon Jul 12 18:08:42 1993 K. Richard Pixley (rich@cygnus.com)
10461
10462 * configure.in: add sys_dir assignment for m88k-bug.
10463
10464 Thu Jul 8 09:16:21 1993 Doug Evans (dje@canuck.cygnus.com)
10465
10466 * libc/sys/sparc64/sys/syscallasm.h: New macros to handle either
10467 a.out or elf.
10468 * libc/sys/sparc64: all *.S files: Use new macros.
10469 * libc/sys/sparc64/isatty.c: New file.
10470 * libc/sys/sparc64/Makefile.in: Stop using /lib/libc.a for
10471 functions beyond what newlib provides.
10472
10473 Thu Jul 8 09:11:28 1993 Doug Evans (dje@canuck.cygnus.com)
10474
10475 * libc/include/sys/stat.h: Move st_atime so not doubly defined for
10476 svr4.
10477
10478 Thu Jul 8 09:09:16 1993 Doug Evans (dje@canuck.cygnus.com)
10479
10480 * libc/include/machine/ieeefp.h: Add support for h8/300h.
10481
10482 Fri Jul 2 10:11:20 1993 K. Richard Pixley (rich@cygnus.com)
10483
10484 * configure.in: add m88k.
10485 * libc/include/machine/ieeefp.h: add case for m88k. Also add
10486 sanity check so no one else need ever chase what I did to find
10487 this.
10488
10489 * libm/math/Makefile.in (FAKEC): added atanf.c log1pf.c scalbnf.c.
10490
10491 Fri Jul 2 09:15:21 1993 Ian Lance Taylor (ian@cygnus.com)
10492
10493 * doc/makedoc.c: Include <ctype.h>.
10494
10495 Wed Jun 30 09:35:06 1993 Doug Evans (dje@canuck.cygnus.com)
10496
10497 * libc/Makefile.in (FLAGS_TO_PASS): Add TARGET_ASFLAGS.
10498 * libc/sys/Makefile.in (FLAGS_TO_PASS): Add TARGET_ASFLAGS.
10499 * libc/machine/Makefile.in (FLAGS_TO_PASS): Add TARGET_ASFLAGS.
10500
10501 * libm/test/Makefile.in (all): Link with ../../lib[cm].a.
10502
10503 Sun Jun 27 17:05:20 1993 Doug Evans (dje@sphagnum.cygnus.com)
10504
10505 * libc/include/errno.h (ENOSYS): Added.
10506
10507 * libc/unix/getpwd.c (getcwd): Fix typo (_up -> up).
10508
10509 Mon Jun 21 09:03:32 1993 Steve Chamberlain (sac@phydeaux.cygnus.com)
10510
10511 * libc/stdio/fflush.c (fflush): Check for reent struct
10512 initialization.
10513 * libc/stdio/fdopen.c (fdopen): Avoid namespace conflict.
10514
10515 Fri Jun 18 16:06:05 1993 Mark Eichin (eichin@rtl.cygnus.com)
10516
10517 * libc/stdlib/dtoastub.c: new file -- move user callable "dtoa"
10518 out of dtoa.c so it doesn't pollute the namespace.
10519 * libc/include/_syslist.h: new file -- mappings from _function to
10520 function, for systems where we can't win (by default, all of them,
10521 until we start updating system calls.)
10522 * libc/syscalls: new directory -- stubs for exporting _function
10523 names as unmodified function names.
10524 * libc/configure.in: add MISSING_SYSCALL_NAMES to enable
10525 _syslist.h on all platforms by default, but put hooks in for
10526 fake_sys_dir so we can include it when we've renamed the system
10527 calls.
10528 * libc/reent/execr.c libc/reent/filer.c libc/reent/fstatr.c
10529 libc/reent/linkr.c libc/reent/sbrkr.c libc/reent/statr.c
10530 libc/signal/raise.c libc/signal/signal.c libc/stdio/fdopen.c
10531 libc/stdio/mktemp.c libc/stdio/tmpnam.c libc/stdlib/abort.c
10532 libc/stdlib/system.c libc/unix/getcwd.c libc/unix/getlogin.c
10533 libc/unix/getpass.c libc/unix/getut.c libc/unix/ttyname.c: change
10534 non ANSI functions to call _function.
10535
10536 Wed Jun 9 09:48:26 1993 Ian Lance Taylor (ian@cygnus.com)
10537
10538 * libc/stdlib/strtoul.c (_strtoul_r): Handle leading 0 correctly
10539 when base 16 is specified. Don't accept non-digits if radix > 10.
10540
10541 Thu Jun 3 10:01:15 1993 Doug Evans (dje@canuck.cygnus.com)
10542
10543 * libc/include/math.h: Rename xxx_r fns to _xxx_r.
10544
10545 Wed Jun 2 16:54:16 1993 Jim Wilson (wilson@sphagnum.cygnus.com)
10546
10547 * libc/include/sys/stat.h: Surround text after #endif with
10548 comments.
10549
10550 Wed Jun 2 12:47:32 1993 Ian Lance Taylor (ian@cygnus.com)
10551
10552 * libc/stdlib/mallocr.c: If MALLOC_PROVIDED is defined, just make
10553 _malloc_r, _realloc_r, and free_r call the corresponding
10554 non-reentrant functions.
10555
10556 * libm/math/modf.c (modf): We now take the address of ipart, so
10557 don't make it a register variable.
10558
10559 Tue Jun 1 18:25:54 1993 Doug Evans (dje@canuck.cygnus.com)
10560
10561 * libm/math/*: Rename all xxx_r fns to _xxx_r.
10562
10563 Wed May 26 22:06:35 1993 Roland H. Pesch (pesch@cygnus.com)
10564
10565 * libc/libc.texinfo and embedded docn throughout: formatting
10566 improvements, minor rephrasing for clarity, and improved
10567 reentrancy docn.
10568
10569 Sun May 23 17:29:49 1993 Steve Chamberlain (sac@thepub.cygnus.com)
10570
10571 * libm/ieeefp/infinity.c (maxpowtwof): Fix initialzation bug.
10572
10573 * libc/stdio/cvt.c (_licvt): Print the right value on machines
10574 where sizeof(int) != sizeof(long).
10575
10576 Fri May 21 22:09:32 1993 Roland H. Pesch (pesch@fowanton.cygnus.com)
10577
10578 * libc/reent/execr.c, libc/reent/filer.c, libc/reent/linkr.c,
10579 libc/reent/sbrkr.c, libc/reent/statr.c, libc/stdio/tmpnam.c,
10580 libc/stdlib/atol.c, libc/stdlib/rand.c, libc/string/strpbrk.c,
10581 libc/string/strspn.c, libm/ieeefp/isnan.c, libm/math/bessel.c,
10582 libm/math/matherr.c: changes for better docn formatting (info).
10583
10584 * libc/libc.texinfo, libc/ctype/ctype.tex, libc/locale/locale/tex,
10585 libc/reent/reent.tex, libc/signal/signal.tex,
10586 libc/stdio/stdio.tex, libc/stdlib/stdlib.tex,
10587 libc/string/strings.tex, libc/sys/sys.tex, libc/time/time.tex,
10588 libm/libm.texinfo, libm/ieeefp/ieeefp.tex, libm/math/math.tex: use
10589 makeinfo node defaulting to get better Info file node structure.
10590 (Requires recent sac change to doc/makedoc.c and doc/doc.str.)
10591 Also include a few formerly missing sections (subroutines).
10592
10593 * doc/doc.str: delete fossil expansion for "func"
10594
10595 * default.menu, no-signal.menu: delete.
10596
10597 * Makefile.in, libc/Makefile.in, configure.in, host/any: simplify
10598 method used to adjust doc for missing "signals" chapter when
10599 signal_dir is empty.
10600
10601 Thu May 20 21:38:37 MDT 1993 Jeffrey Wheat (cassidy@cygnus.com)
10602
10603 * configure.in: added testsuite/libm.sac
10604
10605 Wed May 19 14:52:34 1993 Doug Evans (dje@thepub.cygnus.com)
10606
10607 * libc/sys/sparc64/crt0.S: Set %g4 to 0 (to test Medium/Anywhere
10608 code model).
10609
10610 Tue May 18 13:17:21 1993 Ian Lance Taylor (ian@cygnus.com)
10611
10612 * libm/Makefile.in: Use $(MAKE) rather than make, and define
10613 MAKEOVERRIDES to be empty.
10614
10615 Mon May 17 08:42:44 1993 Ian Lance Taylor (ian@cygnus.com)
10616
10617 * configure.in: Don't build mips-*-* with -msoft-float, since that
10618 makes it incompatible with hard floating point.
10619
10620 Mon May 17 00:03:35 MDT 1993 Jeffrey Wheat (cassidy@cygnus.com)
10621
10622 * Makefile.in: added recursive 'make check'
10623
10624 Thu May 13 16:24:18 MDT 1993 Jeffrey Wheat (cassidy@cygnus.com)
10625
10626 * configure.in: added ./testsuite ./testsuite/libm.paranoia
10627 * ./testsuite/Makefile.in: created
10628 * ./testsuite/libm.paranoia: paranoia tests added
10629
10630 Thu May 13 10:30:24 1993 Ian Lance Taylor (ian@cygnus.com)
10631
10632 * configure.in: For mips-*-* set machine_dir to mips.
10633
10634 * libc/machine/mips: New directory.
10635 * libc/machine/mips/Makefile.in: New file.
10636 * libc/machine/mips/setjmp.S: New file; simplistic MIPS version of
10637 setjmp and longjmp.
10638 * libc/include/machine/setjmp.h: Added __mips__ case.
10639
10640 * libc/machine/lmips: Removed unused and useless directory.
10641
10642 Mon May 3 10:22:31 1993 Ian Lance Taylor (ian@cygnus.com)
10643
10644 * configure.in: Accept i486-*-sco* as well as i386-*-sco*.
10645
10646 Thu Apr 15 15:16:44 1993 Doug Evans (dje@canuck.cygnus.com)
10647
10648 * libc/sys/sparc64/crt0.S: Add comment (%g1 contains atexit arg at
10649 start up).
10650
10651 Fri Apr 9 13:32:26 1993 Ian Lance Taylor (ian@cygnus.com)
10652
10653 * libc/include/machine/setjmp-dj.h: Use _SETJMP_DJ_H rather than
10654 SETJMP_H.
10655
10656 Thu Apr 8 10:07:18 1993 Doug Evans (dje@canuck.cygnus.com)
10657
10658 * libm/test/convert.c: structure member errno -> errno_val.
10659 Must include <errno.h> to use errno, it's a macro now.
10660 * libm/test/math.c: Ditto.
10661 * libm/test/math2.c: Include errno.h.
10662 * libm/test/string.c: Ditto.
10663 * libm/test/test.h: structure member errno -> errno_val.
10664 Remove extern int errno decl.
10665
10666 Thu Apr 8 07:56:33 1993 Ian Lance Taylor (ian@cygnus.com)
10667
10668 * libc/stdio/Makefile.in: Added dependencies on local header
10669 files.
10670 * libc/stdio/std.h, libc/stdio/vfprintf.h: Removed unused header
10671 files.
10672
10673 Wed Apr 7 16:19:32 1993 Ian Lance Taylor (ian@cygnus.com)
10674
10675 * libc/include/machine/ieeefp.h: Added __MIPSEB__ case.
10676
10677 Wed Apr 7 10:55:21 1993 Doug Evans (dje@canuck.cygnus.com)
10678
10679 * libc/stdio/siprintf.c libc/stdio/sscanf.c libc/stdio/vsprintf.c:
10680 Initialize _data.
10681
10682 * libc/stdio/vfprintf.c: No need to declare _icvt, _licvt, _sicvt.
10683 * libc/stdio/local.h: Add prototype for _licvt.
10684
10685 * libc/stdio/ungetc.c (__submore): Use _malloc_r,_realloc_r
10686 instead of malloc,reealloc.
10687
10688 * libc/stdlib/local.h: New file.
10689 * libc/stdlib/efgcvt.c: #include local.h.
10690 (gcvt): Fix call to _gcvt.
10691 * libc/stdlib/ecvtbuf.c: #include local.h.
10692
10693 * libc/stdlib/Makefile.in: new files mallocr.c mstats.c.
10694 * libc/stdlib/mallocr.c mstats.c malloc.h: New files.
10695 * libc/stdlib/malloc.c: main routines moved to mallocr.c.
10696
10697 * libc/stdlib/atexit.c: moved global data to struct _reent.
10698 * libc/stdlib/exit.c: use struct _atexit in struct _reent.
10699
10700 * libc/reent/reent.c (inpure_data): _REENT_INIT macro modified.
10701
10702 Wed Apr 7 09:41:50 1993 Doug Evans (dje@canuck.cygnus.com)
10703
10704 * libc/include/sys/reent.h: Stuff required by ANSI headers moved
10705 here from ../reent.h.
10706
10707 Tue Apr 6 12:56:01 1993 Ian Lance Taylor (ian@cygnus.com)
10708
10709 * Makefile.in (MATHOBJS_IN_LIBC): List of object files which
10710 should be provided in both libc.a and libm.a.
10711 (libc.a): Depend on targ-include and libm.a. Copy
10712 $(MATHOBJS_IN_LIBC) from libm.a to libc.a.
10713 (libm.a): Depend on targ-include.
10714 * configure.in (subdirs): Removed libc/math.
10715
10716 Mon Apr 5 10:18:16 1993 Steve Chamberlain (sac@thepub.cygnus.com)
10717
10718 * libm/ieeefp/infinity.c (maxpowtwo): Fix initialization bug.
10719
10720 Sat Apr 3 11:06:07 1993 Doug Evans (dje@canuck.cygnus.com)
10721
10722 * libc/include/{errno.h, math.h, stdio.h, stdlib.h}: Use
10723 sys/reent.h instead of reent.h.
10724 * libc/include/reent.h: Split into two parts: stuff needed by ANSI
10725 headers moved to sys/reent.h.
10726 * libc/include/signal.h: _MAX_SIGNALS moved to sys/signal.h.
10727 * libc/include/sys/signal.h: Define _MAX_SIGNALS if
10728 __need__MAX_SIGNALS defined.
10729 * libc/include/stdio.h: struct __sFILE moved to sys/reent.h.
10730 std{in,out,err} refer to new _std{in,out,err} members.
10731
10732 Fri Apr 2 11:27:12 1993 Doug Evans (dje@canuck.cygnus.com)
10733
10734 * libc/include/sys/signal.h: #define _SYS_SIGNAL_H for general
10735 case.
10736
10737 Fri Apr 2 09:41:10 1993 Doug Evans (dje@canuck.cygnus.com)
10738
10739 * libc/sys/sparc64/execve.S (execve): Insert nop in delay slot,
10740 rather than whatever macro seterrno() has.
10741
10742 Thu Apr 1 16:47:08 1993 Doug Evans (dje@canuck.cygnus.com)
10743
10744 * libc/locale/locale.c: Reentrant routines _r_xxx renamed to
10745 _xxx_r. struct reent_struct renamed to struct _reent for ANSI.
10746
10747 * libc/include/machine/fastmath.h: Use _HAVE_STDC instead of
10748 __STDC__.
10749
10750 * libc/reent/{execr.c, filer.c, fstatr.c, linkr.c, reent.c,
10751 reent.tex, sbrkr.c, statr.c}: _r_xxx reentrant routines renamed to
10752 _xxx_r. struct reent_struct renamed to struct _reent for ANSI.
10753
10754 * libc/signal/signal.c: Reentrant routines _r_xxx renamed to
10755 _xxx_r. struct reent_struct renamed to struct _reent for ANSI.
10756
10757 * libc/stdio/{fclose.c, fdopen.c, findfp.c, fiprintf.c, flags.c,
10758 fopen.c, fprintf.c, freopen.c, fscanf.c, fseek.c, ftell.c,
10759 fwalk.c, getchar.c, gets.c, iprintf.c, local.h, makebuf.c,
10760 mktemp.c, perror.c, printf.c, putchar.c, puts.c, refill.c,
10761 remove.c, rename.c, scanf.c, setvbuf.c, siprintf.c, sprintf.c,
10762 sscanf.c, stdio.c, tmpfile.c, tmpnam.c, vfprintf.c, vfprintf.h,
10763 vfscanf.c, vprintf.c, vsprintf.c}: Reentrant routines _r_xxx
10764 renamed to _xxx_r. struct reent_struct renamed to struct _reent
10765 for ANSI. structure members given leading "_" for ANSI. Use
10766 _HAVE_STDC instead of __STDC__ and _HAVE_STDARG.
10767
10768 * libc/stdlib/{__adjust.c, calloc.c, dtoa.c, ecvtbuf.c, malloc.c,
10769 mprec.c, mprec.h, rand.c, std.h, strtod.c, strtol.c, strtoul.c,
10770 system.c}: Reentrant routines _r_xxx renamed to _xxx_r. struct
10771 reent_struct renamed to struct _reent for ANSI.
10772 Structure members given leading "_" for ANSI.
10773 _CONST --> const in prototypes.
10774 Use _HAVE_STDC instead of __STDC__.
10775
10776 * libc/string/strtok.c: Reentrant routines _r_xxx renamed to
10777 _xxx_r.
10778 struct reent_struct renamed to struct _reent for ANSI.
10779 Structure members given leading "_" for ANSI.
10780
10781 * libc/time/asctime.c: Reentrant routines _r_xxx renamed to
10782 _xxx_r.
10783 struct reent_struct renamed to struct _reent for ANSI.
10784
10785 * libm/math/{acos.h, acosh.h, asin.c, asinh.h, atanh.h, bessel.h,
10786 cbrt.h, cosh.h, erf.c, erf.h, error.c, exp.c, fmod.c, frexp.h,
10787 gamma.h, hypot.h, ldexp.c, log.h, log10.c, log1p.c log2.c,
10788 mathimpl.h, pow.c, remainder.c, sincos.c, sinh.h, sqrt.h, tan.c,
10789 tanh.h}: struct reent_struct renamed to struct _reent for ANSI.
10790
10791 * libc/include/{_ansi.h, ctype.h, math.h, reent.h, locale.h,
10792 signal.h, stdio.h, stdlib.h, string.h, time.h}:
10793 Use _HAVE_STDC instead of __STDC__ and _HAVE_STDARG.
10794 #ifndef _STRICT_ANSI non-ANSI routines.
10795 Reentrant routines renamed from _r_xxx to _xxx_r.
10796 No need to use _STRICT_ANSI on _xxx_r reentrant routines.
10797 Use _STRICT_ANSI instead of __STRICT_ANSI, _ANSI_SOURCE, etc.
10798 Clean up namespace (structure members have leading "_").
10799 struct reent_struct renamed to struct _reent for ANSI compliance.
10800 _CONST --> const in function prototypes.
10801
10802 * libc/include/string.h: Add NULL and size_t.
10803
10804 * libc/sys/sparc64/Makefile.in: New syscall routines for link,
10805 unlink, wait, wait4. Reentrant syscall routines close, fork,
10806 fstat, link, lseek, open, read, sbrk, stat, unlink, wait, wait4,
10807 write.
10808 * libc/sys/sparc64/cerror.S (cerror_r): New routine.
10809 * libc/sys/sparc64/{close.S, fork.S, fstat.S, link.S, lseek.S,
10810 open.S, read.S, sbrk.S, stat.S, unlink.S, wait.S, wait4.S,
10811 write.S}: Define reentrant versions.
10812 * libc/sys/sparc64/sys/syscallasm.h (defsyscall_r): New macro for
10813 reentrant syscalls.
10814
10815 * libc/sys/sparc64/crt0.S (start): Fix initialization of environ.
10816
10817 * libc/include/stdlib.h (RAND_MAX): Fix value.
10818
10819 Thu Apr 1 12:28:30 1993 Ian Lance Taylor (ian@cygnus.com)
10820
10821 * libc/sys/a29khif/_main.c: Removed unnecessary file.
10822 * libc/sys/a29khif/Makefile.in (OFILES): Removed _main.c, moved
10823 VPATH support targets after all: target.
10824
10825 * stub/mvme135/mvme.S: Renamed exceptionhandler to
10826 exceptionHandler, which is what mvme135-stub.c expects.
10827
10828 Wed Mar 31 17:42:03 1993 Doug Evans (dje@cygnus.com)
10829
10830 * libc/stdio/tmpnam.c (worker): Fix test for _r_open() failure.
10831
10832 * libc/unix/getpass.c (getpass): Use stdin,stderr instead of
10833 def_stdin/def_stderr (latter removed from stdio.h to make it ANSI
10834 compliant).
10835
10836 Tue Mar 30 09:58:21 1993 Doug Evans (dje@canuck.cygnus.com)
10837
10838 * libc/reent/execr.c (_r_wait): Re-order args to make reent_struct
10839 first.
10840 libc/reent/filer.c (_r_open, _r_close, _r_lseek, _r_read,
10841 _r_write): Ditto.
10842 libc/reent/fstatr.c (_r_fstat): Ditto.
10843 libc/reent/linkr.c (_r_link, _r_unlink): Ditto.
10844 libc/reent/sbrkr.c (_r_sbrk): Ditto.
10845 libc/reent/statr.c (_r_stat): Ditto.
10846
10847 * libc/stdio/fopen.c (_r_fopen): Re-order args to _r_open.
10848 * libc/stdio/freopen.c (freopen): Ditto for _r_open, _r_free.
10849 * libc/stdio/fseek.c (fseek): Ditto for _r_fseek.
10850 * libc/stdio/makebuf.c (__smakebuf): Ditto for _r_fstat.
10851 * libc/stdio/mktemp.c (_gettemp): Ditto for _r_stat, _r_open.
10852 * libc/stdio/remove.c (_r_remove): Ditto for _r_unlink.
10853 * libc/stdio/rename.c (_r_rename): Ditto for _r_link, _r_unlink.
10854 * libc/stdio/stdio.c (__sread): Ditto for _r_read.
10855 (__swrite): Ditto for _r_lseek, _r_write.
10856 (__sseek): Ditto for _r_lseek.
10857 (__close): Ditto for _r_close.
10858 * libc/stdio/tmpnam.c (worker): Ditto for _r_open, _r_close.
10859
10860 * libc/stdlib/malloc.c (_r_morecore): Re-order args to _r_sbrk.
10861 * libc/stdlib/system.c (_r_system): Ditto for _r_wait.
10862
10863 * libc/include/reent.h: Re-order arguments to _r_xxx syscall fns
10864 to make reent_struct the first argument (and thus consistent with
10865 the rest of newlib).
10866
10867 * stub/mvme135/mvme135-stub.c (initializeRemcomErrorFrame): Remove
10868 reference to __STDC__.
10869
10870 Mon Mar 29 12:34:32 1993 Doug Evans (dje@canuck.cygnus.com)
10871
10872 * libc/stdlib/exit.c (exit): Use _REENT->__cleanup instead of
10873 global __cleanup.
10874
10875 Wed Mar 24 11:54:35 1993 Doug Evans (dje@canuck.cygnus.com)
10876
10877 * libc/stdio/freopen.c (freopen): Ensure stdio is initialized
10878 first.
10879 libc/stdio/fclose.c (fclose): Ditto.
10880
10881 Tue Mar 23 01:26:52 1993 Doug Evans (dje@rtl.cygnus.com)
10882
10883 * Run through indent and rename reentrant routines for ANSI.
10884 libc/stdio/{clearerr.c cvt.c fclose.c fdopen.c feof.c ferror.c
10885 fflush.c fgetc.c fgetpos.c fgets.c findfp.c fiprintf.c flags.c
10886 fopen.c fprintf.c fputc.c fputs.c fread.c freopen.c fscanf.c
10887 fseek.c fsetpos.c ftell.c fvwrite.c fwalk.c fwrite.c getc.c
10888 getchar.c gets.c iprintf.c makebuf.c mktemp.c perror.c printf.c
10889 putc.c putchar.c puts.c refill.c remove.c rename.c rewind.c rget.c
10890 scanf.c setbuf.c setvbuf.c siprintf.c sprintf.c sscanf.c stdio.c
10891 tmpfile.c tmpnam.c ungetc.c vfprintf.c vfscanf.c vprintf.c
10892 vsprintf.c wbuf.c wsetup.c local.h}
10893
10894 * libc/locale/locale.c: Reformat and rename for ANSI, GNU style.
10895
10896 * Run through indent and rename xxx_r fns to _r_xxx for ANSI.
10897 libc/stdlib/{__adjust.c __exp10.c __ten_mu.c abort.c abs.c
10898 assert.c atexit.c atof.c atoi.c atol.c bsearch.c calloc.c div.c
10899 dtoa.c ecvtbuf.c efgcvt.c exit.c getenv.c labs.c ldiv.c malloc.c
10900 mbtowc.c mprec.c putenv.c qsort.c rand.c setenv.c strdup.c
10901 strtod.c strtol.c strtoul.c system.c wctomb.c mprec.h}
10902
10903 * Run through indent.
10904 libc/string/{bcmp.c bcopy.c bzero.c index.c memchr.c memcmp.c
10905 memcpy.c memmove.c memset.c rindex.c strcat.c strchr.c strcmp.c
10906 strcoll.c strcpy.c strcspn.c strerror.c strlen.c strncat.c
10907 strncmp.c strncpy.c strpbrk.c strrchr.c strspn.c strstr.c strtok.c
10908 strxfrm.c}
10909
10910 * libc/time/{asctime.c clock.c ctime.c difftime.c gmtime.c
10911 localtime.c mktime.c strftime.c time.c}:
10912 Run through indent and rename xxx_r (reentrant) fns to _r_xxx for ANSI.
10913
10914 * Reformatting + renaming (for ANSI, GNU style, consistency).
10915 libc/include/{_ansi.h, assert.h, ctype.h, errno.h, fastmath.h,
10916 ieeefp.h, locale.h, math.h, paths.h, pwd.h, reent.h, setjmp.h,
10917 signal.h, stdio.h, stdlib.h, string.h, time.h, unistd.h}
10918
10919 Fri Mar 19 11:28:01 1993 Doug Evans (dje@cygnus.com)
10920
10921 * libc/include/stdio.h (stdin_r): Fix.
10922
10923 Fri Mar 19 09:43:48 1993 Ian Lance Taylor (ian@cygnus.com)
10924
10925 * Makefile.in: Unexport some variables to keep GNU make from
10926 putting them in the environment and using up needed ARG_MAX space
10927 (a hack is used to let this work with older makes as well).
10928
10929 Tue Mar 16 15:11:08 1993 Ian Lance Taylor (ian@cygnus.com)
10930
10931 * Makefile.in: Use $(MAKE) rather than make.
10932 (MAKEOVERRIDES): Define to be empty.
10933 (FLAGS_TO_PASS): Don't pass down LD (it's not used).
10934 (libc.a, libm.a): Depend on targ-include.
10935 * host/any (LD): Don't define.
10936 (INCLUDES): Use targ-include.
10937 * stub/Makefile.in (MAKEOVERRIDES): Define to be empty.
10938 (FLAGS_TO_PASS): Don't pass down LD (it's not used).
10939 * libc/Makefile.in: Use $(MAKE) rather than make.
10940 (MAKEOVERRIDES): Define to be empty.
10941 (FLAGS_TO_PASS): Don't pass LD (it's not used).
10942 (all): Rewrote to be slightly smaller.
10943 * libc/machine/Makefile.in, libc/sys/Makefile.in (MAKEOVERRIDES):
10944 Define to be empty.
10945 (FLAGS_TO_PASS): Don't pass LD (it's not used).
10946 * libm/Makefile.in (FLAGS_TO_PASS): Don't pass LD (it's not used).
10947
10948 Mon Mar 15 08:45:41 1993 Ian Lance Taylor (ian@cygnus.com)
10949
10950 * libc/sys/go32/gerrno.s: Renamed from errno.s to avoid conflict
10951 with errno/errno.c.
10952
10953 Fri Mar 12 09:46:54 1993 Ian Lance Taylor (ian@cygnus.com)
10954
10955 * Changes for reentrancy.
10956 libc/stdio/fdopen.c, libc/stdio/freopen.c, libc/stdio/perror.c:
10957 Use ptr->_errno, not errno.
10958 libc/stdio/mktemp.c (mkstemp_r, mktemp_r): New functions.
10959 libc/stdio/remove.c (remove_r): New function.
10960 libc/stdio/rename.c (rename_r): New function.
10961 libc/stdio/fopen.c, libc/stdio/freopen.c, libc/stdio/fseek.c,
10962 libc/stdio/makebuf.c, libc/stdio/mktemp.c, libc/stdio/remove.c,
10963 libc/stdio/rename.c, libc/stdio/stdio.c, libc/stdio/tmpnam.c: Use
10964 reentrant versions of system calls.
10965 libc/stdio/gets.c: Call getchar_f, not nonexistent getchar_r.
10966 libc/stdio/scanf.c: Use stdin_r, not nonexistent stdin_n.
10967 libc/stdio/tmpfile.c: Use tmpnam_f, not nonexistent tmpnam_r.
10968 libc/stdio/findfp.c: Include <string.h>.
10969 libc/stdio/fread.c, libc/stdio/rget.c, libc/stdio/scanf.c: Include
10970 "local.h".
10971 libc/stdio/wbuf.c: Include "fvwrite.h"
10972
10973 * libc/stdlib/{dtoa.c, ecvtbuf.c, mprec.c, strtod.c}: Include
10974 <string.h>.
10975 libc/stdlib/malloc.c: Call sbrk_r rather than sbrk.
10976 (NULL): Don't define if already defined.
10977 libc/stdlib/system.c: Call reentrant versions of system calls.
10978 (system_r): New function.
10979
10980 * Changes for reentrancy.
10981 libc/include/_ansi.h (_PARAMS): New macro.
10982 libc/include/errno.h: Define errno as a macro that calls __errno.
10983 (__errno_r): New macro for reentrant code.
10984 libc/include/math.h: Include reent.h. Declare many reentrant
10985 functions.
10986 (signgam): Now a macro, not a variable.
10987 (struct exception): Added err field.
10988 libc/include/reent.h: Don't declare __sglue. Added function
10989 declarations.
10990 (struct reent_struct): Moved errno to beginning. Added _signgam.
10991 libc/include/stdio.h, libc/include/stdlib.h: Added function
10992 declarations.
10993
10994 * More reentrancy hacking.
10995 libc/errno/errno.c (__errno): New function.
10996 libc/reent/execr.c, libc/reent/filer.c, libc/reent/fstatr.c,
10997 libc/reent/linkr.c, libc/reent/sbrkr.c, libc/reent/statr.c: New
10998 files.
10999
11000 * Added many new reentrant functions to libm/math/*.
11001 libm/math/error.c (__matherror): Added reent_struct pointer
11002 argument. Changed all callers.
11003 libm/math/gamma.c (signgam): Removed. Set ptr->_signgam, instead.
11004 libm/math/exp.h, libm/math/pow.h, libm/math/sincos.h,
11005 libm/math/tan.h: Removed obsolete unused header files.
11006
11007 * libc/sys/a29khif/stubs.s: Use register lr0, not v0.
11008
11009 * libc/sys/sun/Makefile.in (COPYOFILES): Don't pull in errno.o.
11010
11011 Mon Mar 8 16:43:43 1993 Steve Chamberlain (sac@thepub.cygnus.com)
11012
11013 * libc/sys/a29khif/stubs.s: clobber safe register, and fill all
11014 delay slots.
11015
11016 Tue Mar 2 14:47:00 1993 Jeffrey Osier (jeffrey@fowanton.cygnus.com)
11017
11018 * libc/libc.texinfo: comment out reentrancy chapter (duh)
11019
11020 Tue Mar 2 14:34:16 1993 Jeffrey Osier (jeffrey@fowanton.cygnus.com)
11021
11022 * libc/reent/reent.tex: New file. (text from
11023 newlib/libc/libc.texinfo)
11024 * libc/stdio/tmpnam.c: fixed doc typo
11025 * libc/stdlib/rand.c: fixed doc typo
11026
11027 Tue Mar 2 14:34:16 1993 Jeffrey Osier (jeffrey@fowanton.cygnus.com)
11028
11029 * libc/reent/reent.tex: New file. (text from
11030 newlib/libc/libc.texinfo)
11031
11032 Fri Feb 26 12:20:54 1993 Steve Chamberlain (sac@thepub.cygnus.com)
11033
11034 support for reentrancy
11035 * libc/reent/reent.c, libc/reent/Makefile.in, libc/reent/reent.c:
11036 new files
11037 * libc/errno/errno.c, libc/include/ieeefp.h,
11038 libc/include/locale.h, libc/include/reent.h,
11039 libc/include/signal.h, libc/include/stdio.h,
11040 libc/include/stdlib.h, libc/include/string.h, libc/include/time.h,
11041 libc/signal/signal.c libc/stdio/cvt.c, libc/stdio/fclose.c,
11042 libc/stdio/fdopen.c, libc/stdio/fflush.c, libc/stdio/fgets.c,
11043 libc/stdio/findfp.c, libc/stdio/flags.c, libc/stdio/fopen.c,
11044 libc/stdio/fputc.c, libc/stdio/freopen.c, libc/stdio/fseek.c,
11045 libc/stdio/ftell.c, libc/stdio/fwalk.c, libc/stdio/getchar.c,
11046 libc/stdio/gets.c, libc/stdio/glue.h, libc/stdio/iprintf.c,
11047 libc/stdio/local.h, libc/stdio/makebuf.c, libc/stdio/perror.c,
11048 libc/stdio/printf.c, libc/stdio/putchar.c, libc/stdio/puts.c,
11049 libc/stdio/refill.c, libc/stdio/scanf.c, libc/stdio/setvbuf.c,
11050 libc/stdio/sprintf.c, libc/stdio/tmpfile.c, libc/stdio/tmpnam.c,
11051 libc/stdio/ungetc.c, libc/stdio/vfprintf.c, libc/stdio/vfprintf.h,
11052 libc/stdio/vfscanf.c, libc/stdio/vprintf.c, libc/stdio/wsetup.c,
11053 libc/stdlib/__adjust.c, libc/stdlib/__exp10.c,
11054 libc/stdlib/assert.c, libc/stdlib/atexit.c, libc/stdlib/atol.c,
11055 libc/stdlib/dtoa.c, libc/stdlib/ecvtbuf.c, libc/stdlib/malloc.c,
11056 libc/stdlib/mprec.c, libc/stdlib/mprec.h, libc/stdlib/rand.c,
11057 libc/stdlib/setenv.c, libc/stdlib/std.h, libc/stdlib/strtod.c,
11058 libc/stdlib/strtol.c, libc/stdlib/strtoul.c, libc/string/strtok.c,
11059 libc/time/asctime.c, libc/time/localtime.c, libc/time/mktime.c,
11060 libc/time/strftime.c: modify to provide reentracy.
11061
11062 new routines:
11063 strtok_r, asctime_r, fdopen_r, _cleanup_r, fopen_r, iprintf_r,
11064 perror_r, printf_r, putchar_r, puts_r, scanf_r, sprintf_r,
11065 tmpfile_r, vfiprintf_r, vfprintf_r, strtod_r, dtoa_r, rand_r,
11066 srand_r, strtoul_r,strtol_r, free_r, malloc_r, morecore_r,
11067 mstats_r, realloc_r, localeconv_r, setlocale_r
11068
11069 Wed Feb 17 20:17:15 1993 Mark Eichin (eichin@cygnus.com)
11070
11071 * libc/include/machine/ieeefp.h, libc/include/machine/setjmp.h,
11072 libc/include/sys/config.h, libc/include/sys/signal.h,
11073 libc/include/sys/stat.h, libc/include/sys/types.h: For compiler
11074 provided macros (such as m68000), use the ansi version
11075 (__m68000__) so that the library can be used with code compiled
11076 -ansi. In particular, m68000, mc68000, _AM29K, i386, MIPSEL, unix,
11077 and sparc.
11078
11079 Wed Feb 17 13:01:34 1993 Jim Wilson (wilson@sphagnum.cygnus.com)
11080
11081 * configure.in (sparc*): Don't set -fsoft-float for sparc
11082 configurations. Do set -fsoft-float for sparclite configurations.
11083
11084 Fri Feb 12 16:25:52 1993 Roland H. Pesch (pesch@fowanton.cygnus.com)
11085
11086 * default.menu, no-signal.menu: alternate forms of libc main menu
11087 (in newlib rather than newlib/libc due to configuration restrictions)
11088
11089 * configure.in: select one of the two menus above, link to
11090 libc.menu
11091
11092 * libc/libc.texinfo: include menu from separate file
11093
11094 Fri Feb 12 12:50:06 1993 Ian Lance Taylor (ian@cygnus.com)
11095
11096 * Makefile.in (FLAGS_TO_PASS): Put INSTALL back in.
11097 (info): Split long shell command in half.
11098 * libc/Makefile.in (info, targetdep.tex): Don't pass everything to
11099 sub-makes, just CHEW and TARGETDOC.
11100 (targetdep.tex): Removed now special handling of sys and machine
11101 subdirectories, made obsolete some time ago.
11102 * libc/machine/Makefile.in (doc): Don't pass everything to
11103 sub-make, just CHEW and TARGETDOC.
11104 (Makefile): New target.
11105 * libc/sys/Makefile.in (Makefile): New target.
11106
11107 Thu Feb 11 15:25:15 1993 Ian Lance Taylor (ian@cygnus.com)
11108
11109 * Makefile.in (here and most subdirectories): Only pass down CHEW
11110 and TARGETDOC when making info, not for other targets.
11111
11112 * Makefile.in (here and most subdirectories), host/any: Use $(AR)
11113 $(AR_FLAGS) rather than $(ARUPDATE).
11114
11115 Wed Feb 10 11:57:52 1993 Ian Lance Taylor (ian@cygnus.com)
11116
11117 * Try to reduce command line length:
11118 * Makefile.in (FLAGS_TO_PASS): don't pass down exec_prefix,
11119 CC_FOR_BUILD, CFLAGS_FOR_BUILD, INSTALL or CHEW.
11120 (info, docs): pass CC_FOR_BUILD and CFLAGS_FOR_BUILD to doc.
11121 (info): Pass CHEW to other subdirs.
11122
11123 Tue Feb 9 14:01:42 1993 Mark Eichin (eichin@cygnus.com)
11124
11125 * configure.in: add signal_dir, like unix_dir, but by default it
11126 is set to "signal" so that a29khif can turn it off (since a29khif
11127 has raise() as part of machine-specific signal.s.)
11128
11129 Fri Jan 15 12:09:50 1993 Steve Chamberlain (sac@thepub.cygnus.com)
11130
11131 * libc/sys/config.h, libc/machine/ieeefp.h: add Z8000 support
11132 * libc/stdio/Makefile.in: pass CFLAGS so vfiprintf.c gets built
11133 correctly.
11134 * libc/stdio/fdopen.c, libc/stdio/fgets.c, libc/stdio/fscanf.c,
11135 libc/stdio/vfprintf: type lint.
11136 * libc/sys/z8ksim/crt0.c (start): Z8001/Z8002 independent
11137 initialzation code.
11138 * libc/sys/z8ksim/glue.c: Z8001/Z8002 clean system calls.
11139
11140 Tue Dec 29 10:15:33 1992 Ian Lance Taylor (ian@cygnus.com)
11141
11142 * stub/mvme135/mvme135-asm.S: new file.
11143 stub/mvme135mvme135-stub.c: moved all assembler routines into
11144 mvme135-asm.S.
11145 stub/mvme135/Makefile.in: build mvme135-stub.o.
11146
11147 Mon Dec 28 12:40:43 1992 Ian Lance Taylor (ian@cygnus.com)
11148
11149 * Makefile.in: don't pass down $(CPP); use $(CC) -E in
11150 sub-Makefiles instead, to try to avoid line length limitations.
11151
11152 Mon Dec 21 18:36:13 1992 Per Bothner (bothner@rtl.cygnus.com)
11153
11154 * libc/include/unistd.h (read, write): Use void* instead of
11155 char*.
11156
11157 Thu Dec 17 13:49:46 1992 Mark Eichin (eichin@cygnus.com)
11158
11159 * stub/go32/resetpc: sample script to send a reset packet to the
11160 stub
11161
11162 * stub/go32/I386STUB.C: new file, gdb/i386stub.c modified for the
11163 DOS environment, which compiles with Turbo C.
11164
11165 * stub/go32/DSER32.LNK: new file, linker commands for serial
11166 remote stub.
11167
11168 * stub/go32/CONTROL.C: turn off debug_mode, add CYGNUS tag line to
11169 start up message to identify version; call set_debug_traps.
11170
11171 * stub/go32/DEBUG.C: turn off debug_mode (so stub doesn't need any
11172 keyboard interaction); call handle_exception() in go_til_stop,
11173 rather than return, so that the remote stub gets control.
11174
11175 * stub/go32/MAKEFILE: fixed to actually use DOS commands (del and
11176 rename, rather than mv), set flags that work with current Turbo C,
11177 including using the /3 flag; also, add commands to build dser32.
11178
11179 * stub/go32/DEBUG32.LNK, stub/go32/GO32.LNK: fix paths to match
11180 default Turbo C installation (\tc rather than \usr)
11181
11182 * stub/go32/MONO.C (printf): current Turbo C uses "..." instead of
11183 "&..."
11184
11185 Mon Dec 14 09:37:33 1992 Steve Chamberlain (sac@thepub.cygnus.com)
11186
11187 * libc/include/math.h: added _DOUBLE_IS_32BITS checks
11188
11189 Thu Nov 12 22:31:04 1992 Steve Chamberlain (sac@thepub.cygnus.com)
11190
11191 * libc/stdio/cvt.c (licvt): new function to convert ints when
11192 sizeof(int) != sizeof(long).
11193
11194 * libc/include/stdio.h: added prototype for iprintf.
11195 * libc/include/machine/limits.h machine/ieeefp.h: z8k stuff
11196
11197 Tue Nov 10 12:18:12 1992 Ian Lance Taylor (ian@cygnus.com)
11198
11199 * libc/machine/m68k/setjmp.S: use __USER_LABEL_PREFIX__ and
11200 __REGISTER_PREFIX__.
11201
11202 Mon Nov 2 13:50:14 1992 Ian Lance Taylor (ian@cygnus.com)
11203
11204 * libc/sys/m68kbare: moved into stub directory.
11205
11206 Mon Nov 2 13:40:42 1992 Ian Lance Taylor (ian@cygnus.com)
11207
11208 * configure.in, Makefile.in: created new directory stub, to hold
11209 sample code for specific targets.
11210
11211 Wed Oct 28 02:19:55 1992 Mark Eichin (eichin@cygnus.com)
11212
11213 * restored libc/sys/go32/sys/fcntl.h, to override incorrect values
11214 in the unified libc/include/sys/fcntl.h.
11215
11216 Wed Oct 21 13:55:58 1992 Doug Evans (dje@rtl.cygnus.com)
11217
11218 * libc/stdlib/ecvtbuf.c: (print_f,_gcvt): printf("%f", 0.01)
11219 printed .01, not 0.01.
11220
11221 Mon Oct 19 11:05:55 1992 Ian Lance Taylor (ian@cygnus.com)
11222
11223 * configure.in: compile with -m68000 for m68* targets.
11224
11225 Sun Oct 18 05:29:05 1992 Mark Eichin (eichin@cygnus.com)
11226
11227 * libm/math/remainder.c (remainder): document the svr4 and sunos
11228 references used to construct the function.
11229
11230 Sat Oct 17 21:46:16 1992 Mark Eichin (eichin@cygnus.com)
11231
11232 * libm/math/remainder.c (rint, remainder): fix old typos.
11233 * libm/math/Makefile.in: actually build remainder.c (functions
11234 rint and remainder, from SysVr4 Programmer's Guide floor(3m) man
11235 page.)
11236
11237 Thu Oct 15 07:48:05 1992 Ian Lance Taylor (ian@cygnus.com)
11238
11239 * libc/string/bcopy.c: BSD version works on overlapping strings,
11240 so ours should too.
11241
11242 * libc/stdlib/system.c: always invoke /bin/sh, not getenv
11243 ("SHELL").
11244
11245 Wed Oct 14 11:07:11 1992 Ian Lance Taylor (ian@cygnus.com)
11246
11247 * Makefile.in (docs): new target.
11248
11249 Wed Oct 14 07:44:25 1992 Ian Lance Taylor (ian@cygnus.com)
11250
11251 * libc/include/sys/times.h: define clock_t as required by POSIX.
11252 libc/include/time.h: protect clock_t from multiple definitions.
11253
11254 Wed Oct 7 11:02:21 1992 Mark Eichin (eichin at tweedledumber.cygnus.com)
11255
11256 * libm/math/sqrt.h (sqrt): actually, the final version of fp-bit
11257 does not need more than the original three iterations to get
11258 within 1 ulp. (Paranoia tests for rounding to better than that,
11259 but further iterations *don't* help, only more subtle changes
11260 can.)
11261
11262 Tue Oct 6 09:22:12 1992 Ian Lance Taylor (ian@cygnus.com)
11263
11264 * libc/sys/vxworks68, libc/sys/vxworks960: removed, since they
11265 were doing nothing useful.
11266
11267 Tue Oct 6 08:48:13 1992 Ian Lance Taylor (ian@cygnus.com)
11268
11269 * configure.in: define MALLOC_PROVIDED for vxworks targets;
11270 removed sys_dir settings of vxworks68 and vxworks960.
11271 host/any: don't pass -nostdinc to gcc, since newlib no longer
11272 provides all required header files.
11273
11274 * libc/stdlib/malloc.c: only compile this file if MALLOC_PROVIDED
11275 is not defined; this provides a hook for VxWorks.
11276
11277 Mon Oct 5 03:44:57 1992 Mark Eichin (eichin at tweedledumber.cygnus.com)
11278
11279 * libc/stdio/setvbuf.c (setvbuf): while ANSI does say to malloc a
11280 buffer if buf is NULL, don't do it here -- it is already being
11281 done by makebuf elsewhere in stdio.
11282
11283 Fri Oct 2 13:12:07 1992 Ian Lance Taylor (ian@cygnus.com)
11284
11285 * libc/sys/a29khif/Makefile.in: assemble Steve's list of stubs so
11286 that C programs can call functions without using initial
11287 underscores.
11288
11289 Thu Oct 1 09:37:47 1992 Ian Lance Taylor (ian@cygnus.com)
11290
11291 * libc/stdlib/abort.c (abort): call exit, in case kill returns.
11292
11293 Wed Sep 30 08:22:18 1992 Ian Lance Taylor (ian@cygnus.com)
11294
11295 * configure.in: set TARGET_CFLAGS for certain CPU types to
11296 -msoft-float.
11297
11298 Tue Sep 29 21:09:32 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
11299
11300 * libc/sys/m68kbare/glue.c: use <_ansi.h> instead of <ansidecl.h>
11301
11302 Mon Sep 28 14:58:44 1992 Ian Lance Taylor (ian@cygnus.com)
11303
11304 * configure.in: added sys_dir m68kbare for m68k*-unknown-aout and
11305 m68k*-unknown-coff.
11306
11307 Fri Sep 25 08:33:21 1992 Ian Lance Taylor (ian@cygnus.com)
11308
11309 * libc/include/stdio.h: define __need___va_list before including
11310 <stdarg.h>, to avoid defining va_arg, et. al.
11311
11312 Tue Sep 22 13:47:00 1992 Ian Lance Taylor (ian@cygnus.com)
11313
11314 * libc/sys/Makefile.in: handle the case of an empty $(sys_dir)
11315 (don't cd to the user's home directory).
11316
11317 * libc/Makefile.in: replaced all instances of $(MAKE) with make.
11318 In general this is the wrong thing to do, but I can't get around
11319 GNU make's insistence on passing command line arguments any other
11320 way.
11321
11322 Tue Sep 22 10:12:44 1992 Ian Lance Taylor (ian@cygnus.com)
11323
11324 * configure.in: always configure the libc/sys directory, since it
11325 now provides a required documentation file.
11326
11327 * Makefile.in: replaced all instances of $(MAKE) with make. In
11328 general this is the wrong thing to do, but I can't get around GNU
11329 make's insistence on passing command line arguments any other way.
11330
11331 Mon Sep 21 22:42:26 1992 Ian Lance Taylor (ian@tweedledumbest.cygnus.com)
11332
11333 * libc/stdlib/ecvtbuf.c (_gcvt): string for 0 was not null
11334 terminated.
11335
11336 * libc/stdio/local.h: include <stdarg.h> to define va_list.
11337 libc/stdio/vsprintf.c: include <stdarg.h> rather than <varargs.h>.
11338
11339 * libc/include/float.h, libc/include/stdarg.h,
11340 libc/include/stddef.h, libc/include/varargs.h: removed; use gcc
11341 versions instead.
11342 libc/include/stdio.h: get size_t from <stddef.h>, and va_list from
11343 <stdarg.h>, not from <machine/types.h>. Protect definition of
11344 NULL.
11345 libc/include/time.h: get size_t from stddef.h. Protect definition
11346 of NULL.
11347 libc/include/machine/limits.h: override gcc <limits.h> by defining
11348 _LIMITS_H___. Don't define CLK_TCK. Copied in gcc <limits.h> to
11349 get correct INT_MIN and LONG_LONG values.
11350 libc/include/machine/types.h: don't define ptrdiff_t, wchar_t,
11351 size_t or va_list at all; they're now gotten from stddef.h
11352 instead.
11353 libc/include/machine/varargs.h: removed; use gcc version instead.
11354 libc/include/sys/types.h: explicitly include <machine/types.h>.
11355
11356 * libm/math/sqrt.h: using the fp-bit routines appears to require
11357 more iterations.
11358
11359 * Makefile.in, host/any: let system include files override machine
11360 include files.
11361
11362 Sat Sep 19 21:10:06 1992 Mark Eichin (eichin at tweedledumber.cygnus.com)
11363
11364 * libc/include/machine/types.h: allow __*_TYPE__ from cpp to
11365 override _*_T_ definitions defaulted here.
11366
11367 Tue Sep 15 11:14:46 1992 Ian Lance Taylor (ian@cygnus.com)
11368
11369 * Makefile.in (install): install the include files in
11370 $(tooldir)/include, not $(exec_prefix)/include.
11371
11372 Fri Sep 11 15:48:43 1992 Ian Lance Taylor (ian@cygnus.com)
11373
11374 * Makefile.in (install): fixed typo, and changed install to not
11375 force rebuild of libc.a and libm.a.
11376
11377 Thu Sep 10 10:46:09 1992 Ian Lance Taylor (ian@cygnus.com)
11378
11379 * libc/sys/a29khif/*: Changed all .include's to include
11380 sys/sysmac.h, not plain sysmac.h. The header files live in sys so
11381 that they will be installed for the user.
11382
11383 * Makefile.in (all): create targ-include, a directory holding the
11384 machine and system specific header files during the build.
11385 (install): fixed installation of machine and system specific
11386 header files.
11387
11388 * Makefile.in: fixed comment.
11389 host/any: change .s.o rule to use $(AS) rather than $(CC), so that
11390 we can pass $(INCLUDES) to it.
11391
11392 Thu Sep 10 10:13:13 1992 Ian Lance Taylor (ian@cygnus.com)
11393
11394 * libc/include/sys/param.h: new generic file, which may be
11395 overridden for specific systems.
11396
11397 * libc/include/sys/signal.h: define all ANSI signal names, and
11398 NSIG (which is not ANSI) for a29k.
11399
11400 Tue Sep 8 09:04:30 1992 Ian Lance Taylor (ian@cygnus.com)
11401
11402 * Makefile.in: don't pass down arguments the lower level makes
11403 will not need.
11404 * libc/Makefile.in: recurse directly, rather than using subdir_do,
11405 in hopes of avoiding argument length limits.
11406 * libm/Makefile.in: recurse directly, rather using subdir_do, in
11407 hopes of avoiding argument length limits.
11408
11409 Tue Sep 8 08:27:22 1992 Ian Lance Taylor (ian@cygnus.com)
11410
11411 * libc/include/sys/fcntl.h: include <sys/types.h> to ensure that
11412 mode_t is defined.
11413
11414 Mon Sep 7 14:02:07 1992 Ian Lance Taylor (ian@cygnus.com)
11415
11416 * Fixed make info and make install-info for newlib, changing most
11417 Makefile.in and several *.tex files. Moved doc directory from
11418 libc to top level.
11419
11420 * libc/time/mktime.c (_DAYS_IN_MONTH): actually, not const.
11421 Should be rewritten.
11422
11423 * libc/string/strings.tex: renamed node index to node index
11424 function, so that it does not conflict with the top level index
11425 node.
11426
11427 * libc/include/sys/config.h: define __IEEE_BIG_ENDIAN for h8300.
11428
11429 Fri Sep 4 02:34:06 1992 Ian Lance Taylor (ian@cygnus.com)
11430
11431 * Overhauled general configuration for newlib. Eliminated all
11432 target dependent Makefile fragments. Create libraries in newlib
11433 rather than newlib/libc and newlib/libm. Use CC, et. al., rather
11434 than CROSS_CC, et. al. Broke make docs; will fix later.
11435
11436 * libc/time/localtime.c (_DAYS_IN_MONTH): actually, not const.
11437 Should be rewritten.
11438
11439 Tue Sep 1 15:21:14 1992 Ian Lance Taylor (ian@cygnus.com)
11440
11441 * libc/configure.in: cleaned up somewhat; switch on ${target}
11442 rather than ${target_alias}.
11443 * libm/configure.in: cleaned up somewhat; switch on ${target}
11444 rather than ${target_alias}.
11445
11446 * libc/ctype/ctype_.c: marked _ctype_ array _CONST.
11447 * libc/include/ctype.h: marked _ctype_ as _CONST.
11448
11449 * libc/locale/locale.c (lconv, localeconv): marked static lconv as
11450 _CONST.
11451
11452 * libc/stdio/cvt.c, libc/stdio/findfp.c (__sfmoreglue),
11453 libc/stdio/vfscanf.c (__svfscanf): made static variables const.
11454 libc/stdio/gets.c (gets): removed non-ANSI warning message.
11455 libc/stdio/tmpnam.c (tmpnam): removed unneeded filename variable.
11456
11457 * libc/stdlib/mprec.h, libc/stdlib/mprec.c (pow5mult, tens,
11458 bigtens, tinytens): marked arrays _CONST.
11459 libc/stdlib/qsort.c (swap): if __GNUC__, use _builtin_alloca
11460 rather than a static variable.
11461
11462 * libc/time/asctime.c (asctime), libc/time/localtime.c
11463 (_DAYS_IN_MONTH), libc/time/mktime.c (_DAYS_IN_MONTH,
11464 _DAYS_BEFORE_MONTH), libc/time/strftime.c (dname_len, dname,
11465 mname_len, mname): Marked static arrays _CONST.
11466
11467 * libm/math/gamma.h: made local variables non-static.
11468
11469 * libm/math/acos.h, libm/math/bessel.c, libm/math/erf.c,
11470 libm/math/exp.c, libm/math/gamma.h: marked static arrays as
11471 _CONST.
11472
11473 * libm/math/constants.c: removed file, because the constants it
11474 defined were never referenced.
11475 libm/math/Makefile.in: removed references to constants.c.
11476 libm/math/mathimpl.h: removed declarations of constants.
11477
11478 Wed Aug 26 21:09:06 1992 Ian Lance Taylor (ian@cygnus.com)
11479
11480 * libc/include/machine/varargs.h: only call __builtin_saveregs if
11481 it is sensibly defined in libgcc2. Checks preprocessor defines,
11482 which is not a good solution.
11483
11484 * libm/sqrt.c: sqrt(Infinity) should not be a domain error.
11485
11486 * libm/frexp.c: handle denormalized numbers as arguments.
11487
11488 * libm/math/Makefile.in: added some dependencies for .c files
11489 which include local .h files.
11490
11491 Mon Aug 24 12:57:58 1992 Ian Lance Taylor (ian@cygnus.com)
11492
11493 * libc/configure.in: set target_alias for OSE*. Replace
11494 target_makefile_frag if it is blank.
11495
11496 * libc/Makefile.in: make sure everything is passed to subsidiary
11497 makes; create all directories when installing.
11498
11499 * libm/ieeefp/Makefile.in, libm/math/Makefile.in: use
11500 CROSS_ARUPDATE instead of AR.
11501
11502 * libm/configure.in: set target_alias for OSE*. Replace
11503 target_makefile_frag if it is blank.
11504
11505 * libm/Makefile.in: make sure everything is passed to subsidiary
11506 makes; create all directories when installing.
11507
11508 Thu Aug 20 15:11:51 1992 Mark Eichin (eichin@cygnus.com)
11509
11510 * add following change from libc copy.
11511
11512 Wed Aug 19 18:54:49 1992 Roland H. Pesch (pesch@fowanton.cygnus.com)
11513
11514 * libc/libc.texinfo: make copyright disclaimers appear on back of
11515 title page; make format of same slightly less ugly; avoid using
11516 underbars in section headings (avoids nasty texinfo bug in table
11517 of contents).
11518
11519 * libc/ctype/tolower.c, libc/ctype/toupper.c: (doc changes in
11520 comments only) avoid using underbars in section headings
11521
11522 * libc/ieeefp/ieeefp.tex: include doc from fpsticky, infinity,
11523 isnan ieeefp/fpmask.c, ieeefp/fpround.c, ieeefp/fpsticky.c (doc
11524 changes in comments only): shorten headings ieeefp/infinity.c,
11525 ieeefp/isnan.c: (doc, comments only) more informative headings
11526
11527 * libc/math/bessel.c: (doc, comments only) shorten heading
11528
11529 * libc/stdlib/efgcvt.c, libc/stdlib/mbtowc.c, libc/stdlib/wctomb.c
11530 (doc, comments only) shorten headings
11531
11532 * libc/time/localtime.c (doc, comments only): shorten headings
11533
11534 * libm/ieeefp/ieeefp.tex: include doc from fpsticky, infinity,
11535 isnan
11536 libm/ieeefp/fpmask.c, libm/ieeefp/fpround.c,
11537 libm/ieeefp/fpsticky.c (doc changes in comments only): shorten
11538 headings
11539 libm/ieeefp/infinity.c, libm/ieeefp/isnan.c: (doc, comments
11540 only) more informative headings
11541 * libm/math/bessel.c: (doc, comments only) shorten heading
11542
11543 Wed Aug 19 07:06:37 1992 Mark Eichin (eichin at tweedledumber.cygnus.com)
11544
11545 * .../Makefile.in: use CROSS_ARUPDATE consistently.
11546 * config/*.mt: define CROSS_AR as well as CROSS_ARUPDATE
11547 * config/*.mt: define CROSS_CPP based on CROSS_CC, not /lib/cpp.
11548 * .../Makefile.in: get rid of .c.o rule - if TOP is correctly
11549 defined, the one from the .mt file will be correct.
11550 * libc/include/machine, libc/include/sys: created, and populated
11551 with common files from machine/*/machine. ifdefs were used for
11552 most, typically by handling exceptions first and then filling in
11553 defaults. Files with D.J. Delorie copyright #included rather than
11554 copied. Most files in include/sys really were the same in the
11555 original.
11556 * libc/include/...: cleaned up use of _EXFUN.
11557 * libc/stdlib/mprec.c: mprec.h doesn't get installed, so include
11558 it with double quotes, not angles.
11559
11560 Mon Aug 10 11:43:20 1992 Ian Lance Taylor (ian@dumbest.cygnus.com)
11561
11562 * libc/Makefile.in: always create installation directories.
11563
11564 Sun Aug 9 22:45:48 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
11565
11566 * libc/configure.in: handle host properly (using canonical
11567 triples), better error message for the case of target not found
11568
11569 Thu May 28 01:56:37 1992 Michael Tiemann (tiemann@rtl.cygnus.com)
11570
11571 * libc/Makefile.in (insincdir): Ensure this directory exists
11572 before attempting installation.
11573
11574 Fri May 1 18:16:42 1992 Steve Chamberlain (sac@thepub.cygnus.com)
11575
11576 * libc/stdlib/assert.c: now calls abort like it should
11577 * libc/sys/a29khif: many many patches for 29khif work
11578 * libc/machine/i386: gnulib2 expanded there.
11579
11580 Tue Apr 28 19:08:37 1992 Steve Chamberlain (sac@thepub.cygnus.com)
11581
11582 Added accurate fp conversion routines to stdlib, moved dcvt from
11583 stdio to stdlib and called it ecvtbuf:
11584 * libc/stdlib/mprec.c, mprec.h: new files for multiprec arithmetic
11585 * libc/stdlib/Makefile.in, efgcvt.c, strtod.c: modified to use new
11586 routines
11587 * libc/libc.texinfo: Modifed to include the copyright info from
11588 the mprec files
11589 * libc/stdlib/efgcvt.c: now xref to ecvtbuf in stdlib.
11590 * libc/test/ : many vector which tested for the implementation
11591 defined returns of strange conversion requests have been updated
11592 to relflect the new implementation
11593
11594 Mon Apr 27 13:41:33 1992 Roland H. Pesch (pesch@fowanton.cygnus.com)
11595
11596 * libc/libc.texinfo: new chapter on variable arg lists
11597 (stdarg.h/varargs.h)
11598 * libc/libc.texinfo: new title
11599 * libc/time/gmtime.c, libc/time/localtime./c, libc/time/mktime.c:
11600 (doc only) shorter headings for better formatting.
11601
11602 Fri Apr 24 11:26:48 1992 Roland H. Pesch (pesch@fowanton.cygnus.com)
11603
11604 * libc/libc.texinfo: three more info menu entries
11605 * libc/locale/locale.tex: new chapter
11606 * libc/locale/locale.c: new doc for setlocale, localeconv
11607 * libc/locale/Makefile.in: use new locale doc
11608 * libc/signal/signal.tex: new chapter
11609 * libc/signal/raise.c, libc/signal/signal.c: new doc
11610 * libc/signal/Makefile.in: use new doc
11611 * libc/time/time.tex: new chapter
11612 * libc/time/asctime.c libc/time/clock.c libc/time/ctime.c
11613 libc/time/difftime.c libc/time/gmtime.c libc/time/localtime.c
11614 libc/time/mktime.c libc/time/strftime.c libc/time/time.c: new doc
11615 * libc/time/Makefile.in: use new doc
11616
11617 Tue Apr 21 14:48:50 1992 Steve Chamberlain (sac@thepub.cygnus.com)
11618
11619 * libm/math/log1p.c: split to use the new function way of float
11620 function definition. math/log1p.h deleted
11621 * libm/math/scalb.c: obsolete and deleted
11622 * libm/math/scalbn.c: created from part log1p.c
11623 * libm/math/Makefile.in: know about log1p and scalbn
11624
11625 Tue Apr 21 12:32:21 1992 Roland H. Pesch (pesch@fowanton.cygnus.com)
11626
11627 * libc/ctype/isupper.c: revise doc;
11628 libc/ctype/ctype.tex: use doc from isupper.c
11629
11630 * libc/string/bzero.c: new doc
11631
11632 Mon Apr 20 14:19:42 1992 Roland H. Pesch (pesch@fowanton.cygnus.com)
11633
11634 * libc/stdlib/system.c, libc/stdlib/exit.c, libc/stdlib/abort.c:
11635 new doc
11636 * libc/stdlib/Makefile.in: extract new doc
11637 * libc/stdlib/stdlib.tex: use new doc
11638
11639 * libc/string/strerror.c: expanded doc.
11640
11641 * libc/stdio/Makefile.in: extract doc from more files
11642 * libc/stdio/fopen.c, libc/stdio/perror.c, libc/stdio/remove.c,
11643 libc/stdio/rename.c, libc/stdio/rewind.c, libc/stdio/setbuf.c,
11644 libc/stdio/setvbuf.c, libc/stdio/sprintf.c, libc/stdio/tmpfile.c,
11645 libc/stdio/tmpnam.c, libc/stdio/vfprintf.c, libc/stdio/vprintf.c,
11646 libc/stdio/vsprintf.c: new doc
11647 * libc/stdio/stdio.tex: use new doc
11648
11649 Mon Apr 20 09:38:17 1992 Steve Chamberlain (sac@thepub.cygnus.com)
11650
11651 * libc/config/ebmon29k: added CROSS_CPP rule and other fixes
11652 * libc/include/ieeefp.h: fixed ansi conflict with isnanf, isinff,
11653 finitef functions.
11654 * libc/sys/a29khif/sys/*.h: ansidecl.h was renamed to _ansi.h some
11655 time ago.
11656
11657 * libc/stdio/stdio.h: added P_tmpdir for /tmp (SVID thing)
11658 * libc/stdio/setbuf.c: added ansi style definition.
11659 * libc/stdio/setvbuf.c: added ansi definition, now mallocs own
11660 buffer if none provided.
11661 * libc/stdio/tmpfile.c: lint
11662 * libc/stdio/tmpnam.c (worker): created. (tmpnam): mallocs buffer
11663 rather than using static, also make sure file isn't already
11664 present. Uses P_tmpdir. (tempnam): rewritten to use new
11665 subroutine, and uses P_tmpdir.
11666 * libc/stdio/siprintf.c: created
11667
11668 Mon Apr 13 09:12:58 1992 Steve Chamberlain (sac@thepub.cygnus.com)
11669
11670 Release 1.03 for NEC, major mods. Main differences from release
11671 1.02::
11672
11673 More tests in test/:
11674 * jn_vec.c, jnf_vec.c, yn_vec.c, ynf_vec.c, log2_vec.c,
11675 log2f_vec.c, atan2_vec.c, atan2f_vec.c: new test vectors.
11676 * test_ieee.c: tests for ieee flags & masks - get/set rounding,
11677 get/set mask, get/set sticky and get/set roundtoi. Tests
11678 that setting the bits changes the way arithmetic is done.
11679 * string.c: added test to make sure memcmp does it with unsigned
11680 chars.
11681 * test.c: cleaned up and removed lint.
11682 * sprint_vec, sprint_ivec.c, convert.c, conv_vec.c, iconf_vec.c,
11683 dvec.c: tests for string to value conversions, sprintf, scanf,
11684 atof, atoff, strtod, strtodf, atoi, atol, strtol, ecvtbuf, ecvt,
11685 ecvtf, fcvtbuf, fcvt, fcvtf, gcvt, gcvtf. Some attention paid to
11686 rounding in sprintf too.
11687 * test_is.c: tests for isalnum, isalpha, isascii, iscntrl,
11688 isdigit, isgraph, islower, isprint, ispunct, isspace, isupper,
11689 isxdigit, toascii, tolower, toupper, _tolower, _toupper in macro
11690 and function form.
11691 * math2.c: test for frexp, frexpf, ldexp, ldexpf, modf modff, pow,
11692 powf
11693
11694 In the library:
11695 * libc/stdlib/div.c, libc/stdlib/ldiv.c, libc/stdlib/strtod.c,
11696 libc/stdlib/strtol.c, libc/stdlib/stroul.c, libc/stdlib/abs.c,
11697 libc/stdlib/bsearch.c, libc/stdlib/calloc.c, libc/stdlib/getenv.c,
11698 libc/stdlib/labs.c, libc/stdlib/malloc.c: new documentation
11699 * libc/stdlib/efgcvt.c: rewritten to use new _dcvt routines rather
11700 than sprintf.
11701 * libc/stdio/dcvt.c: rewritten to make more useful elsewhere.
11702 * Method of producting float versions of double functions has
11703 changed, functions will be modified gradually. So far:
11704 libm/math/exp.c, libm/math/pow.c, libm/math/modf.c,
11705 libm/math/sincos.c, libm/math/fmod.c, libm/math/tan.c have been
11706 altered
11707 * libc/string/memcmp.c: now uses unsigned chars
11708 * libc/string/bcmp.c, libc/string/strcpy.c,
11709 libc/stsring/strxfrm.c: fixed doc
11710 * libc/sys/sysvnecv70.tex: fix example of sbrk code
11711 \f
11712 Local Variables:
11713 version-control: never
11714 End:
This page took 0.54976 seconds and 5 git commands to generate.