]> sourceware.org Git - newlib-cygwin.git/blame - newlib/ChangeLog
* libc/machine/i386/setjmp.S (longjmp): Per POSIX, return 1 if second
[newlib-cygwin.git] / newlib / ChangeLog
CommitLineData
2988dfa7
CV
12010-11-16 Andrew Makhorin <mao@gnu.org>
2
3 * libc/machine/i386/setjmp.S (longjmp): Per POSIX, return 1 if second
4 argument is 0.
5
f43dea80
CV
62010-11-16 Ralf Corsépius <ralf.corsepius@rtems.org>
7
8 * libc/include/sys/types.h: Add _mode_t for __rtems__.
9 * libc/sys/rtems/machine/_types.h: Provide _mode_t, _fpos_t, _off_t.
10 Add _ssize_t for 64bit sparc.
11 Let arm, i386, m68k, mips, PPC, sparc use 64bit _off_t, _fpos_t.
12
4a20b7de
CV
132010-11-16 Ralf Corsépius <ralf.corsepius@rtems.org>
14
15 * configure.host: Add -D_COMPILING_NEWLIB to newlib_cflags.
16
d39e3a1e
JJ
172010-11-04 Ralf Corsépius <ralf.corsepius@rtems.org>
18
19 * libm/complex/cacos.c: Reorder function calls to work around ICE
20 in arm/thumb-gcc.
21
9ef03977
JJ
222010-10-27 Maurice Baijens <maurice.baijens@ellips.nl>
23
24 * libc/stdlib/strtol.c: Make sure signed characters are not
25 sign-extended when converted to int and passed to ctype macros.
26 * libc/stdlib/strtoul.c: Ditto.
27 * libc/stdlib/strtoll_r.c: Ditto.
28 * libc/stdlib/strtoull_r.c: Ditto.
29
bf5300ea
JJ
302010-10-18 Marco Atzeri <marco_atzeri@yahoo.it>
31
32 * libm/Makefile.am: added complex functions documentation
33 * libm/libm.texinfo: ditto
34 * libm/complex/Makefile.am: Ditto
35 * libm/complex/complex.tex: Ditto
36 * libm/complex/(cabs.c, cacos.c, cacosh.c, carg.c,
37 casin.c, casinh.c, catan.c, catanh.c, ccos.c, ccosh.c,
38 cexp.c, cimag.c, clog.c, conj.c, cpow.c, cproj.c, creal.c,
39 csin.c, csinh.c, csqrt.c, ctan.c, ctanh.c): Ditto
40 * libm/Makefile.in: Regenerate
41 * libm/complex/Makefile.in: Ditto
42
9f2ecfff
JJ
432010-10-14 Craig Howland <howland@LGSInnovations.com>
44
45 * libc/include/math.h: Delete cabs() and cabs() prototypes
46 (c.f. 2010-10-08 change by Corinna).
47
1571d0a5
JJ
482010-10-08 Bernd Schmidt <bernds@codesourcery.com>
49 Joseph Myers <joseph@codesourcery.com>
50
51 * configure.host: Handle tic6x targets.
52 * libc/include/machine/ieeefp.h: Define endianness for C6X.
53 * libc/include/machine/setjmp.h: Add __TMS320C6X__ case.
54 * libc/machine/configure.in: Handle tic6x targets.
55 * libc/machine/configure: Regenerate.
56 * libc/machine/tic6x/Makefile.am, libc/machine/tic6x/configure.in,
57 libc/machine/tic6x/setjmp.S: New.
58 * libc/machine/tic6x/Makefile.in, libc/machine/tic6x/aclocal.m4,
59 libc/machine/tic6x/configure: New (generated).
60
339814ba
CV
612010-10-08 Ralf Corsépius <ralf.corsepius@rtems.org>
62
63 * libc/include/sys/unistd.h: Declare getsid, setegid, seteuid for RTEMS.
64
98b2b9cf
CV
652010-10-08 Ralf Corsépius <ralf.corsepius@rtems.org>
66
67 * libm/common/sf_llrint.c, libm/common/sf_round.c: Add explicit casts
68 to __uint32_t to avoid overflows on implicit casts.
69
a26a5332
CV
702010-10-08 Ralf Corsépius <ralf.corsepius@rtems.org>
71
72 * libm/complex/complex.tex: Add empty stub.
73
421648d3
CV
742010-10-08 Corinna Vinschen <corinna@vinschen.de>
75
76 * libm/math/w_cabs.c: Delete.
77 * libm/math/wf_cabs.c: Delete.
78 * libm/math/Makefile.am (src): Remove w_cabs.c.
79 (fsrc): Remove wf_cabs.c.
80 * libm/math/Makefile.in: Regenerate.
81
5af2a793
CV
822010-10-08 Marco Atzeri <marco_atzeri@yahoo.it>
83
84 * libc/include/complex.h: New complex header.
85 * libm/common/fdlibm.h: Added ifdef _COMPLEX_H.
86 * libm/complex/*: New complex functions imported from NetBSD.
87 * libm/Makefile.am: Added complex subdir.
88 * libm/Makefile.in: Regenerate.
89 * libm/configure.in: Added complex subdir.
90 * libm/configure: Regenerate.
91
c725984f
CV
922010-10-06 Eric Blake <eblake@redhat.com>
93
94 * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
95 periodic needle having false positive. Affects memmem, strstr,
96 strcasestr.
97
60376287
JJ
982010-09-21 Craig Howland <howland@LGSInnovations.com>
99
100 * libc/string/memcpy.c: Do not assign size_t parameter to int.
101 Use parameter directly, instead.
102 * libc/string/memccpy.c: Likewise.
103 * libc/string/mempcpy.c: Likewise.
104 * libc/string/memmove.c: Likewise.
105
b88e4203
KB
1062010-09-09 Kevin Buettner <kevinb@redhat.com>
107
108 * libc/sys/sysnecv850/Makefile.am (lib_a_SOURCES): Provide an
109 empty definition.
f859880a 110 * libc/sys/sysnecv850/Makefile.in: Regenerate.
b88e4203 111
04c82a9b
CV
1122010-08-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
113
114 * libc/posix/opendir.c (opendir): Fix potential memory leak.
115
7aba919b
YS
1162010-08-10 Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
117
118 * libc/include/sys/dir.h: New BSD-compatibility header.
119
f7172896
CV
1202010-08-02 Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
121
122 * libc/include/sys/features.h: Define _POSIX_MONOTONIC_CLOCK for Cygwin.
123
f627504e
CV
1242010-08-06 Corinna Vinschen <corinna@vinschen.de>
125
126 * libc/include/sys/stat.h: Move all POSIX-defined symbolic constants
127 out of `#ifndef _POSIX_SOURCE' guard.
128
0de7cf04
JJ
1292010-08-03 Craig Howland <howland@LGSInnovations.com>
130
131 * libm/common/s_lrint.c (lrint): Annotate shift operations with
132 possible shift amount ranges, and use SAFE_RIGHT_SHIFT to avoid
133 undefined behaviour.
134 * libm/common/s_llrint.c (llrint): Likewise.
135 * libm/common/s_lround.c (lround): Correct some comments on ranges.
136 * libm/common/s_llround.c (llround): Likewise.
137
5a7e00a8
AG
1382010-07-30 Anthony Green <green@moxielogic.com>
139
140 * libc/sys/rtems/machine/_types.h: Add moxie support.
141
d95769eb
JJ
1422010-07-23 Naveen.H.S <naveenh1@kpitcummins.com>
143 Gina Verlekar <gina.verlekar@kpitcummins.com>
144
145 * configure.host: Compact v850* support and add
146 check for newlib_may_supply_syscalls.
147 * libc/sys/sysnecv850/Makefile.am: Add support for
148 '--disable-newlib-supplied-syscalls' option.
149 * libc/sys/sysnecv850/Makefile.in: Regenerated.
150
e561d3e7
DK
1512010-07-20 Dave Korn <dave.korn.cygwin@gmail.com>
152
153 * libm/common/fdlibm.h (SAFE_LEFT_SHIFT): New macro definition.
154 (SAFE_RIGHT_SHIFT): Likewise.
155 * libm/common/s_llround.c (llround): Annotate shift operations with
156 possible shift amount ranges, and use SAFE_RIGHT_SHIFT to avoid
157 undefined behaviour.
158 * libm/common/s_lround.c (lround): Likewise.
159
8092f467
EB
1602010-07-19 Eric Blake <eblake@redhat.com>
161
162 * libc/stdio/mktemp.c (_gettemp): Add parameter, all callers
163 changed.
164 (mkostemp, _mkostemp_r, mkostemps, _mkostemps_r): New interfaces,
165 for ELIX level 4.
166 * libc/include/stdlib.h (mktemp): Avoid namespace issues.
167 (mkostemp, mkostemps): Declare.
168
3f453330
CV
1692010-07-13 Corinna Vinschen <corinna@vinschen.de>
170
171 * libc/include/signal.h (sighandler_t): Only define if _POSIX_SOURCE
172 is undefined.
173
efc42882
CV
1742010-07-06 Corinna Vinschen <corinna@vinschen.de>
175
176 * libc/posix/rewinddir.c (rewinddir): Remove incorrect cast to off_t.
177 * libc/sys/rtems/sys/dirent.h (_seekdir): Add prototype.
178 * libc/sys/linux/sys/dirent.h (_seekdir): Fix prototype to use long
179 rather than off_t.
180
723bf6ef
CV
1812010-07-01 Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
182
183 * libc/include/signal.h (sighandler_t): Add typedef.
184
deb42738 1852010-06-29 Antony King <antony.king@st.com>
ca56076a
CV
186
187 * libc/ctype/ctype_.c (__ctype_ptr): Reinstate definition (guarded by
188 _NEED_OLD_CTYPE_PTR_DEFINITION) for backwards compatibility with newlib
189 1.16.0 and earlier.
190
1912010-06-28 Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
192
193 * libc/include/sys/stat.h: Add ACCESSPERMS, ALLPERMS, and DEFFILEMODE.
194
ce3b3869
JJ
1952010-06-18 Pavel Pisa <ppisa4lists@pikron.com>
196
197 * libc/include/machine/ieeefp.h[__arm__][!__VFP_FP__]: Set to
198 __IEEE_BIG_ENDIAN and set __IEEE_BYTES_LITTLE_ENDIAN appropriately
199 based on __ARMEL flag.
200 * libc/include/machine/endian.h: To set byte order to LITTLE_ENDIAN,
201 check for __IEEE_LITTLE_ENDIAN or __IEEE_BYTES_LITTLE_ENDIAN.
202
492efa06
KH
2032010-06-09 Paul Brook <paul@codesourcery.com>
204
205 * libc/include/sys/reent.h (_reent): Adjust _REENT_SMALL to be
206 binary compatible with normal layout.
207 (_REENT_INIT): Adjust to match struct layout.
208
b5efabb2
JJ
2092010-06-08 Jeff Johnston <jjohnstn@redhat.com>
210
211 * libc/include/wordexp.h: Add __cplusplus wrapper.
212
58d6976a
JJ
2132010-06-08 Jeff Johnston <jjohnstn@redhat.com>
214
215 * configure.in: Add test for enable-newlib-register-fini
216 to set the _WANT_REGISTER_FINI flag.
217 * configure: Regenerated.
218 * Makefile.in: Ditto.
219 * newlib.hin: Add _WANT_REGISTER_FINI flag.
220 * libc/stdlib/__call_atexit.c: Add test for
221 _WANT_REGISTER_FINI to enable the register_fini function.
222
ced5f59d
JJ
2232010-06-04 Mark Mitchell <mark@codesourcery.com>
224
225 * libc/stdlib/__call_atexit.c (__libc_fini): Declare.
226 (register_fini): New function.
227 * libc/misc/init.c (_fini): Remove.
228 (__libc_fini_array): Likewise.
229 * libc/misc/fini.c: New file.
230 * libc/misc/Makefile.am (LIB_SOURCES): Add fini.c.
231 * libc/misc/Makefile.in: Regenerate.
232
4f5feab5
JJ
2332010-05-31 Kazu Hirata <kazu@codesourcery.com>
234
235 * libc/stdlib/mallocr.c (malloc_extend_top): Backport the
236 difference between versions 2.6.4 and 2.6.5.
237
8f01c775
CF
2382010-05-18 Christopher Faylor <me+cygwin@cgf.cx>
239
240 * libc/string/strsignal.c (strsignal): Avoid duplicate case statement
241 where SIGPWR == SIGLOST.
242
ca52bf17
JJ
2432010-05-11 Jeff Johnston <jjohnstn@redhat.com>
244
245 * libc/stdlib/__call_atexit.c: Fix lock to be of type
246 _LOCK_RECURSIVE_T as recursive usage is needed.
247
60bdafbb
JJ
2482010-05-11 Jeff Johnston <jjohnstn@redhat.com>
249
250 * libc/locale/locale.c (loadlocale): Fix dangling
251 switch statement caused by __HAVE_LOCALE_INFO__ not being
252 defined.
253
eb2c2b6e
JJ
2542010-05-11 Joel Sherrill <joel.sherrill@oarcorp.com>
255
256 * libc/string/strsignal.c: New file.
257 * libc/string/Makefile.am: Add support for strsignal.
258 * libc/string/strings.tex: Ditto.
259 * libc/string/Makefile.in: Regenerated.
260
93b10358
DD
2612010-05-05 DJ Delorie <dj@redhat.com>
262
263 * libc/Makefile.am (stmp-sigset, stmp-iconvset, stmp-extra,
264 stmp-stdio64, stmp-posix,stmp-targetdep): Use unique temporary
265 file names to allow for parallel installs.
266 (CLEANFILES): Add new temporary file names.
267 * libc/Makefile.in: Regenerate.
268
7edacc49
CV
2692010-05-03 Corinna Vinschen <corinna@vinschen.de>
270
271 * libc/locale/lctype.c: Include <string.h> and "setlocale.h".
272 (_C_ctype_locale): Add braces to initializer.
273 (__ctype_load_locale): Fix compiler warnings in non-Cygwin case.
274 * libc/locale/nl_langinfo.c (nl_langinfo): Expose _NL_CTYPE_MB_CUR_MAX
275 case only if __HAVE_LOCALE_INFO__ is defined.
276
ffa42cf6
CV
2772010-05-02 Corinna Vinschen <corinna@vinschen.de>
278
279 * libc/stdlib/wctob.c (wctob): Reorganize and fix WEOF check. Rename
280 pwc to pmb and convert to array to avoid buffer overflow. Rename c to
281 wc. Check wc for WEOF instead of for EOF. Return first byte of pmb if
282 __wctomb conversion returned exactly one byte, EOF otherwise.
283
be129c26
CV
2842010-04-30 Corinna Vinschen <corinna@vinschen.de>
285
286 * libc/include/langinfo.h: Fix #endif positioning.
287
d47d5b85
CV
2882010-04-28 Corinna Vinschen <corinna@vinschen.de>
289
290 Extend locale support to maintain wide char values of native strings
291 if __HAVE_LOCALE_INFO_EXTENDED__ is defined.
292 * libc/include/langinfo.h (enum __nl_item): New type. Define all
293 native values accessible through nl_langinfo. Define previously
294 existing POSIX-compatible values as macros as well.
295 * libc/include/stdlib.h (__mb_cur_max): Drop declaration.
296 (__locale_mb_cur_max): Declare.
297 (MB_CUR_MAX): Re-define calling __locale_mb_cur_max.
298 * libc/locale/Makefile.am (ELIX_SOURCES): Add lctype.c.
299 * libc/locale/Makefile.in: Regenerate.
300 * libc/locale/lctype.c: New file to define and load LC_CTYPE category.
301 * libc/locale/lctype.h: New file, matching header.
302 * libc/locale/lmessages.c (_C_messages_locale): Add default values for
303 wide char members.
304 (__messages_load_locale): Add _C_messages_locale in call to
305 __set_lc_messages_from_win.
306 * libc/locale/lmessages.h (struct lc_messages_T): Add wide char members.
307 * libc/locale/lmonetary.c (_C_monetary_locale): Add default values for
308 wide char members.
309 (__monetary_load_locale): Add _C_monetary_locale in call to
310 __set_lc_monetary_from_win.
311 * libc/locale/lmonetary.h (struct lc_monetary_T): Add wide char members.
312 Add numerical values for international currency formatting per
313 POSIX-1.2008, if __HAVE_LOCALE_INFO_EXTENDED__ is defined.
314 * libc/locale/lnumeric.c (_C_numeric_locale): Add default values for
315 wide char members.
316 (__numeric_load_locale): Add _C_numeric_locale in call to
317 __set_lc_numeric_from_win.
318 * libc/locale/lnumeric.h (struct lc_numeric_T): Add wide char members.
319 * libc/locale/locale.c (loadlocale): Return doing nothing if category
320 locale didn't change. Convert category if chain to switch statement.
321 Call __ctype_load_locale in LC_CTYPE case.
322 (__locale_charset): Add (but disable for now) returning codeset from
323 __get_current_ctype_locale.
324 (__locale_mb_cur_max): Add (but disable for now) returning mb_cur_max
325 from __get_current_ctype_locale.
326 (__locale_msgcharset): Add returning codeset from
327 __get_current_messages_locale.
328 (_localeconv_r): Accommodate int_XXX values.
329 * libc/locale/nl_langinfo.c (nl_ext): New array to define what is to
330 be returned for non-POSIX values.
331 (nl_Langinfo): Return correct codeset for each locale category. Return
332 extended values if __HAVE_LOCALE_INFO_EXTENDED__ is defined.
333 * libc/locale/timelocal.c (_C_time_locale): Add default values for
334 wide char members.
335 (__time_load_locale): Add _C_time_locale in call to
336 __set_lc_time_from_win.
337 * libc/locale/timelocal.h (struct lc_time_T): Add wide char members.
338 * libc/stdio/vfwprintf.c (_VFWPRINTF_R): Use wide char decimal point
339 and thousands_sep if __HAVE_LOCALE_INFO_EXTENDED__ is defined.
340 * libc/time/strftime.c: Rework to accommodate availability of wide char
341 strings in LC_TIME category if __HAVE_LOCALE_INFO_EXTENDED__ is defined.
342
948214b0
DD
3432010-04-22 DJ Delorie <dj@redhat.com>
344
345 * libc/Makefile.am (SUBDEFS): Add LIBC_POSIX_DEF.
346 (libc.info): Add posix.texi.
347 (libc.dvi): Likewise.
348 (stmp-posix): New.
349 (posix.texi): New.
350 (libc_TEXINFOS): Add posix.texi.
351 * libc/configure.in (LIBC_POSIX_LIB, LIBC_POSIX_DEF): Add
352 tests.
353 * libc/libc.texinfo: Include posix.texi
354 * libc/locale/locale.c: Fix texinfo typo.
355 * libc/time/strftime.c: Fix texinfo typo.
356
357 * libc/configure: Regenerate.
358 * libc/Makefile.in: Regenerate.
359 * libc/argz/Makefile.in: Regenerate.
360 * libc/ctype/Makefile.in: Regenerate.
361 * libc/errno/Makefile.in: Regenerate.
362 * libc/iconv/Makefile.in: Regenerate.
363 * libc/iconv/ccs/Makefile.in: Regenerate.
364 * libc/iconv/ccs/binary/Makefile.in: Regenerate.
365 * libc/iconv/ces/Makefile.in: Regenerate.
366 * libc/iconv/lib/Makefile.in: Regenerate.
367 * libc/locale/Makefile.in: Regenerate.
368 * libc/misc/Makefile.in: Regenerate.
369 * libc/posix/Makefile.in: Regenerate.
370 * libc/reent/Makefile.in: Regenerate.
371 * libc/search/Makefile.in: Regenerate.
372 * libc/signal/Makefile.in: Regenerate.
373 * libc/stdio/Makefile.in: Regenerate.
374 * libc/stdio64/Makefile.in: Regenerate.
375 * libc/stdlib/Makefile.in: Regenerate.
376 * libc/string/Makefile.in: Regenerate.
377 * libc/syscalls/Makefile.in: Regenerate.
378 * libc/time/Makefile.in: Regenerate.
379 * libc/unix/Makefile.in: Regenerate.
380 * libc/xdr/Makefile.in: Regenerate.
381
5f46e409
JJ
3822010-04-06 Dave Korn <dave.korn.cygwin@googlemail.com>
383
384 * libc/stdlib/__atexit.c (__atexit_lock): Initialise as recursive
385 rather than non-recursive lock type.
386 (__register_exitproc): Use recursive locking APIs on it.
387 * libc/stdlib/__call_atexit.c (__call_exitprocs): Likewise.
388
65ee447a
CV
3892010-04-06 Corinna Vinschen <corinna@vinschen.de>
390
391 * libc/stdlib/btowc.c (btowc): Reorganize EOF check. Fix incorrect
392 return value if input byte is ASCII NUL.
393
c1bfa897
JJ
3942010-04-01 Joel Sherrill <joel.sherrill@oarcorp.com>
395
396 * libc/include/sched.h: Include prototypes for
397 sched_* methods.
398 * libc/include/sys/sched.h: Update to POSIX
399 1003.1b-2008. Rework constants to allow sharing
400 between RTEMS and Cygwin.
401
eca2df4f
CV
4022010-03-27 Corinna Vinschen <corinna@vinschen.de>
403
404 * libc/locale/locale.c (loadlocale): Optimize "EUC" charset check.
405 Cygwin only: Allow GB2312 and EUC-CN as alternative codeset names
406 for GBK. Add to documentation.
407 * libc/locale/nl_langinfo.c (nl_langinfo): On Cygwin, translate EUCCN
408 to GB2312.
409
5e74a46f
CV
4102010-03-17 Craig Howland <howland@LGSInnovations.com>
411
412 * libc/include/sys/features.h: Allow for _XOPEN_SOURCE to have an
413 empty definition. Also add support for values of 500 or less.
414
fab7d598
JJ
4152010-03-09 Jeff Johnston <jjohnstn@redhat.com>
416
417 * libc/posix/telldir.c (dd_loccnt): Change start index to be 1
418 instead of 0.
419 (_seekdir): A loc of 0 now means rewind dir.
420
23a6adc2
JJ
4212010-03-08 Craig Howland <howland@LGSInnovations.com>
422
423 * libm/common/s_rint.c: Fix error when integral part had 18 bits and
424 fraction had bits set beyond first radix bit. Also, make 2-part
425 adjustment consistent with 1-part adjustment when adjusting fractional
426 bits.
427 * libm/common/sf_rint.c: Make fractional-bit adjustment consistent
428 with s_rint.c by setting 0b.01 instead of 0b.001.
429
b73e65bb
CV
4302010-03-05 Craig Howland <howland@LGSInnovations.com>
431
432 * libm/math/ef_sqrt.c: Delete unused variable sign.
433 * libc/stdlib/getenv.c: Delete "char *_findenv_r ();", as is not a
434 proper prototype, and is properly prototyped in stdlib.h, anyway.
435 * libc/stdlib/getenv_r.c: Ditto.
436 * libc/search/hash.c: Add _DEFUN to __hash_open() declaration; add
437 #define __DBINTERFACE_PRIVATE to activate prototypes from db_local.h.
438 * libc/search/db_local.h: Correct __hash_open() prototype.
439 * libc/sys/linux/cmath/math_private.h: Eliminate compiler warnings:
440 Remove #define INFINITY (redefines from math.h); remove #define __isnanf
441 and #define __isinff isinff.
442
6fc25b2d 4432010-03-02 Craig Howland <howland@LGSInnovations.com>
b73e65bb 444
6fc25b2d
JJ
445 * libc/include/sys/features.h: Add POSIX.1-permitted definition of
446 _POSIX_C_SOURCE if not already defined and _XOPEN_SOURCE has an
447 appropriate value. Specifically, check for POSIX.1-2008 & 2001 values.
448 * libc/include/sys/config.h: Add #include <sys/features.h> so that all
449 includes get the new check added to it.
450
180044b3
CV
4512010-03-02 Charles Wilson <cygwin@cwilson.fastmail.fm>
452
453 * libc/xdr/README: Correct grammatical errors.
454 * libc/include/rpc/types.h: Add public types used
455 by RPC implementations.
456 * libc/include/rpc/xdr.h: Add defines used by RPC
457 implementations.
458 * libc/xdr/Makefile.am: Eliminate automake warning.
459 * libc/xdr/Makefile.in: Regenerate.
460
8acb1969
CV
4612010-03-02 Corinna Vinschen <corinna@vinschen.de>
462
463 * libc/xdr/Makefile.in: Regenerate.
464
3d7c4998
CV
4652010-03-02 Charles Wilson <cygwin@cwilson.fastmail.fm>
466
467 Add eXtensible Data Record (XDR) support
468 * configure.host: Build libc/xdr only on cygwin.
469 * Makefile.am: Install xdr headers.
470 * libc/configure.in: Support new libc/xdr subdirectory.
471 * libc/Makefile.am: Support new libc/xdr subdirectory.
472 * libc/include/rpc/types.h: New.
473 * libc/include/rpc/xdr.h: New.
474 * libc/xdr/README: New.
475 * libc/xdr/Makefile.am: New.
476 * libc/xdr/dummy.c: New.
477 * libc/xdr/xdr.c: New.
478 * libc/xdr/xdr_array.c: New.
479 * libc/xdr/xdr_float.c: New.
480 * libc/xdr/xdr_float_vax.c: New.
481 * libc/xdr/xdr_mem.c: New.
482 * libc/xdr/xdr_private.c: New.
483 * libc/xdr/xdr_private.h: New.
484 * libc/xdr/xdr_rec.c: New.
485 * libc/xdr/xdr_reference.c: New.
486 * libc/xdr/xdr_sizeof.c: New.
487 * libc/xdr/xdr_stdio.c: New.
488
489 Regenerate using ac-2.63 and am-1.11.1
490 * libc/xdr/Makefile.in: New.
491 * Makefile.in: Regenerate.
492 * libc/configure: Regenerate.
493 * libc/Makefile.in: Regenerate.
494 * libc/argz/Makefile.in: Regenerate.
495 * libc/ctype/Makefile.in: Regenerate.
496 * libc/errno/Makefile.in: Regenerate.
497 * libc/iconv/ccs/binary/Makefile.in: Regenerate.
498 * libc/iconv/ccs/Makefile.in: Regenerate.
499 * libc/iconv/ces/Makefile.in: Regenerate.
500 * libc/iconv/lib/Makefile.in: Regenerate.
501 * libc/iconv/Makefile.in: Regenerate.
502 * libc/locale/Makefile.in: Regenerate.
503 * libc/misc/Makefile.in: Regenerate.
504 * libc/posix/Makefile.in: Regenerate.
505 * libc/reent/Makefile.in: Regenerate.
506 * libc/search/Makefile.in: Regenerate.
507 * libc/signal/Makefile.in: Regenerate.
508 * libc/stdio/Makefile.in: Regenerate.
509 * libc/stdio64/Makefile.in: Regenerate.
510 * libc/stdlib/Makefile.in: Regenerate.
511 * libc/string/Makefile.in: Regenerate.
512 * libc/syscalls/Makefile.in: Regenerate.
513 * libc/time/Makefile.in: Regenerate.
514 * libc/unix/Makefile.in: Regenerate.
515
79ca6b6f
CV
5162010-02-26 Craig Howland <howland@LGSInnovations.com>
517
518 * libm/common/s_ilogb.c: Fix typo in comments that causes doc
519 generation to fail.
520
be7f7a75
CV
5212010-02-26 Corinna Vinschen <corinna@vinschen.de>
522
523 * libc/time/strftime.c: Add support for era and alt_digits data from
524 LC_TIME locale category. Conditionalize using _WANT_C99_TIME_FORMATS
525 flag.
526 (STRTOUL): Define differently for building strftime or wcsftime.
527 (STRCPY): Ditto.
528 (STRCHR): Ditto.
529 (STRLEN): Ditto.
530 (CHECK_LENGTH): Define to simplify code.
531 (era_info_t): New type to store era info.
532 (get_era_info): New function to fetch era info matching incoming
533 struct tm.
534 (free_era_info): New function to free era info.
535 (alt_digits_t): New type to store alternative digits.
536 (get_alt_digits): New function to convert alt_digits string into
537 alt_digits_t structure.
538 (free_alt_digits): New function to free alt_digits info.
539 (conv_to_alt_digits): New function to convert unsigned value into
540 alternative digits.
541 (strftime): Conditionalize on _WANT_C99_TIME_FORMATS. If
542 _WANT_C99_TIME_FORMATS is defined, define as just a wrapper function
543 providing era_info and alt_digits pointers and call ...
544 (__strftime): Rename from strftime and make static if
545 _WANT_C99_TIME_FORMATS is defined. Add parameters for era_info and
546 alt_digits pointers. Handle conversion modifiers according to
547 POSIX-1.2008. Redefine %F and %Y according to POSIX. Add default case
548 to allow to bail out on invalid conversion specifiers.
549 * libc/include/sys/config.h: Move Cygwin build flags to Cygwin's
550 config.h.
551
552 * libc/include/stdio.h: Remove __CYGWIN_USE_BIG_TYPES__ condition.
553
830686ec
CV
5542010-02-25 Corinna Vinschen <corinna@vinschen.de>
555
7c3c3fea
CV
556 * libc/locale/locale.c (loadlocale): Fix typo in comment.
557
5582010-02-25 Corinna Vinschen <corinna@vinschen.de>
559
560 * libc/locale/locale.c: Throughout, extensively comment on the
830686ec
CV
561 reason for using __CYGWIN__.
562 (lconv): Remove _CONST entirely.
563 (loadlocale): Guard calls to function loading locale-specific
564 category data with __HAVE_LOCALE_INFO__ rather than __CYGWIN__.
565 * libc/sys/config.h (__HAVE_LOCALE_INFO__): Define for Cygwin.
566
9035cfbd
JJ
5672010-02-24 Charles Wilson <...>
568
569 Work around issues with new libtool files in ..
570 * configure.in: Unconditionally call _LT_PROG_ECHO_BACKSLASH.
571 * iconvdata/configure.in: Ditto.
572 * libc/configure.in: Ditto.
573 * libc/machine/configure.in: Ditto.
574 * libc/machine/i386/configure.in: Ditto.
575 * libc/sys/configure.in: Ditto.
576 * libc/sys/linux/configure.in: Ditto.
577 * libc/sys/linux/linuxthreads/configure.in: Ditto.
578 * libc/sys/linux/linuxthreads/machine/configure.in: Ditto.
579 * libc/sys/linux/linuxthreads/machine/i386/configure.in: Ditto.
580 * libc/sys/linux/machine/configure.in: Ditto.
581 * libc/sys/linux/machine/i386/configure.in: Ditto.
582 * libm/configure.in: Ditto.
583 * libm/machine/configure.in: Ditto.
584 * libm/machine/i386/configure.in: Ditto.
585 * libc/machine/sh/configure.in: Ditto. Also, call
586 AC_NO_EXECUTABLES before NEWLIB_CONFIGURE.
587 * aclocal.m4: Regenerated.
588 * configure: Ditto.
589 * Makefile.in: Ditto.
590 * doc/aclocal.m4: Ditto.
591 * doc/Makefile.in: Ditto.
592 * libc/*/aclocal.m4: Ditto.
593 * libc/*/Makefile.in: Ditto.
594 * libc/*/configure: Ditto.
595 * libm/*/aclocal.m4: Ditto.
596 * libm/*/Makefile.in: Ditto.
597 * libm/*/configure: Ditto.
598
ba7b2147
JJ
5992010-02-24 Jeff Johnston <jjohnstn@redhat.com>
600
601 * libc/stdlib/__call_exit.c: Add include of sys/lock.h.
602
84f66e46
JJ
6032010-02-23 Jeff Johnston <jjohnstn@redhat.com>
604
605 * libc/include/sys/types.h: Fix __XMK__ sectioning and remove
606 redundant code section for __XMK__.
607
6eaf061d
CV
6082010-02-22 Corinna Vinschen <corinna@vinschen.de>
609
610 * libc/include/langinfo.h (_NL_TIME_DATE_FMT): Define new nl_item
611 value for LC_TIME entry date_fmt.
612 (_DATE_FMT): Define "official" GNU name same as _NL_TIME_DATE_FMT.
613 * libc/locale/nl_langinfo.c (nl_langinfo): Add case for _DATE_FMT.
614
7ab414f5
CV
6152010-02-18 Corinna Vinschen <corinna@vinschen.de>
616
617 * libc/ctype/iswalpha.c (iswalpha): Update to Unicode 5.2.
618 * libc/ctype/iswprint.c (iswprint): Ditto.
619 * libc/ctype/iswpunct.c (iswpunct): Drop standalone implementation.
620 Define in terms of other wctype functions instead.
621 * libc/ctype/towlower.c (towlower): Update to Unicode 5.2. Add comment
622 to explain how to fetch the data from the Unicode database.
623 * libc/ctype/towupper.c (towupper): Ditto.
624 * libc/ctype/utf8alpha.h: Ditto.
625 * libc/ctype/utf8print.h: Ditto.
626 * libc/ctype/utf8punct.h: Remove.
627 * libc/ctype/iswcntrl.c (iswcntrl): Add comment to explain how to
628 fetch the data from the Unicode database.
629
f723b60c
CV
6302010-02-18 Corinna Vinschen <corinna@vinschen.de>
631
632 * libc/locale/timelocal.h (struct lc_time_T): Add missing ERA-related
633 members.
634 * libc/locale/timelocal.c (_C_time_local): Set new members to empty
635 strings.
636 * libc/locale/nl_langinfo.c (nl_langinfo): Return values from
637 __get_current_time_locale() for ERA related requests.
638
dc7992f4
CV
6392010-02-16 Corinna Vinschen <corinna@vinschen.de>
640
641 * libc/ctype/iswblank.c (iswblank): Remove Unicode characters
642 U+00A0 and U+200B. Add Unicode character U+180E. Add comment
643 to explain how to generate from Unicode data file.
644 * libc/ctype/iswspace.c (iswspace): Ditto.
645
38d09c90
CV
6462010-02-15 Corinna Vinschen <corinna@vinschen.de>
647
648 * libc/stdio/vfwprintf.c (_VFWPRINTF_R): Apply previous patch here
649 as well.
650
b85c06ba
CV
6512010-02-15 Corinna Vinschen <corinna@vinschen.de>
652
653 * libc/stdio/vfprintf.c (_VFPRINTF_R): Drop printing a redundant
654 decimal point in case the float argument is an integral value.
655
45c8c646
JJ
6562010-02-11 Craig Howland <howland@LGSInnovations.com>
657
658 * libc/include/machine/ieeefp.h: isfinite macro modified to run faster
659 by only calling fpclassify once instead of possibly twice.
660
451a8eb0
JJ
6612010-02-11 Craig Howland <howland@LGSInnovations.com>
662
663 * libm/common/s_ilogb.c: Adjust documentation to reflect new returns
664 (see next items) and that ilogb() and ilogbf() are C99/POSIX.
665 * libm/common/s_ilogb.c (ilogb): Use C99/POSIX FP_ILOGB0 and
666 FP_ILOGBNAN returns for 0 and NAN arguments, respectively, instead of
667 the prior -INT_MAX and INT_MAX. The FP_ILOGBx defines in math.h
668 presently match the prior hard-codes, so no functional change is
669 actually introduced. (Not at this time, nor planned, but the values
670 are permitted to be different, so subsequent edits of math.h could
671 possibly cause a functional change.)
672 * libm/common/sf_ilogb.c (ilogbf): Ditto.
673
5880fbf7
JJ
6742010-02-09 Daniel Gutson <dgutson@codesourcery.com>
675
676 * libc/machine/arm/arm_asm.h (_ISA_THUMB_2): __ARM_ARCH_7EM__
677 added to the preprocessor condition.
678
1cea6189
CV
6792010-02-09 Corinna Vinschen <corinna@vinschen.de>
680
681 * libc/locale/lmessages.c (__messages_load_locale): Take additional
682 parameters for wide char to multibyte conversion. Call
683 __set_lc_messages_from_win on Cygwin.
684 * libc/locale/lmessages.h: Make C++-safe.
685 (__messages_load_locale): Change declaration.
686 * libc/locale/lmonetary.c (__monetary_load_locale): Use
687 _monetary_locale_buf as buffer pointer.
688 * libc/locale/lnumeric.c (__numeric_load_locale): Use
689 _numeric_locale_buf as buffer pointer.
690 * libc/locale/timelocal.c (__time_load_locale): Use time_locale_buf
691 as buffer pointer.
692 * libc/locale/locale.c (loadlocale): Enable loading LC_MESSAGES data
693 on Cygwin.
694
cf9d06b1
JJ
6952010-02-08 Josef Wolf <jw@raven.inka.de>
696
697 * libc/machine/m68k/memcpy.S: MISALIGEND_OK should not be set for
698 __mcpu32__.
699
9ac5e663
CV
7002010-02-07 Corinna Vinschen <corinna@vinschen.de>
701
702 * libc/locale/locale.c: Add Cygwin's /usr/share/locale/locale.alias
703 support to documentation.
704 (__set_locale_from_locale_alias): Declare when build for Cygwin.
705 (loadlocale): On Cygwin, if locale can't be recognized, call
706 __set_locale_from_locale_alias to check for locale alias.
707 Define FAIL macro to replace `return NULL' statements. Replace
708 throughout.
709
bc3677c5
CV
7102010-02-07 Corinna Vinschen <corinna@vinschen.de>
711
712 * libc/locale/locale.c: Fix typo in documentation. Remove useless
713 _MB_CAPABLE guards within other _MB_CAPABLE guards. Add comment
714 to remaining #endif's.
715
5eb556c8
CV
7162010-02-06 Corinna Vinschen <corinna@vinschen.de>
717
718 * libc/ctype/ctype_cp.h (_CTYPE_GEORGIAN_PS_128_254): Define.
719 (_CTYPE_GEORGIAN_PS_255): Define.
720 (_CTYPE_PT154_128_254): Define.
721 (_CTYPE_PT154_255): Define.
722 (__ctype_cp): Add array members for above ctype definitions.
723 * libc/locale/locale.c (loadlocale): Make TIS-620 charset name
724 available for all targets. Add guards for setting the conversion
725 function pointers. Add support for GEORGIAN-PS and PT154 charsets.
726 Change documentation to reflect current behaviour more closely.
727 * libc/locale/nl_langinfo.c (nl_langinfo): On Cygwin, translate
728 "CP101" to "GEORGIAN-PS" and "CP102" to "PT154".
729 * libc/stdlib/sb_charsets.c (__cp_conv): Add conversion arrays
730 for GEORGIAN-PS and PT154.
731 (__cp_index): Map invalid Windows codepage number 101 to
732 GEORGIAN-PS conversion array, 102 to PT154 conversion array.
733
ff348d86
CV
7342010-02-06 Ralf Corsepius <ralf.corsepius@rtems.org>
735
736 * libc/posix/telldir.c: Remove bogus nested prototype of lseek().
737
837dda86
CV
7382010-02-05 Corinna Vinschen <corinna@vinschen.de>
739
740 * libc/locale/locale.c (loadlocale): Handle ISO-8859 and KOI8 charsets
741 so that the dashes are optional. Align documentation.
742
b0776ebd
CV
7432010-02-05 Corinna Vinschen <corinna@vinschen.de>
744
745 * libc/stdio/vfprintf.c: Include locale.h also if _WANT_IO_C99_FORMATS
746 is defined. Raise conversion buffer size to make sure it has enough
747 room for numbers plus grouping character. Define GROUPING flag.
748 (_VFPRINTF_R): Add PRINTANDPAD macro. Handle grouping flag character.
749 Handle grouping for decimal integer and float values.
750 * libc/stdio/vfwprintf.c: Ditto.
751
fa40bd92
CF
7522010-02-01 Christopher Faylor <me+cygwin@cgf.cx>
753
754 * libc/stdlib/__atexit.c (__atexit_lock): Define a global lock for
755 atexit functions.
756 (__register_exitproc): Use __atexit_lock rather than a local static
757 lock.
758 * libc/stdlib/__call_atexit.c: Ditto.
759
2d69f00e
JJ
7602010-01-29 Jeff Johnston <jjohnstn@redhat.com>
761
762 * libc/search/Makefile.am: Create .def files for bsearch and qsort.
763 * libc/search/Makefile.in: Regenerated.
764 * libc/stdlib/stdlib.tex: Add bsearch and qsort.
765
88116ad2
CV
7662010-01-24 Corinna Vinschen <corinna@vinschen.de>
767
768 * libc/locale/nl_langinfo.c (nl_langinfo): Return "CP932" when using
769 SJIS on Cygwin. Explain why.
770
b0466b37
CV
7712010-01-23 Corinna Vinschen <corinna@vinschen.de>
772
773 * libc/locale/locale.c (loadlocale): Allow CP932 as alias for SJIS.
774 Add to documentation. Add a few comments to #endif's for Cygwin.
775
c631824a
CV
7762010-01-23 Corinna Vinschen <corinna@vinschen.de>
777
778 * libc/locale/locale.c (loadlocale): Disable JIS entirely on Cygwin.
779 Allow TIS620 and TIS-620 as aliases for CP874 on Cygwin.
780
fe57329f
CV
7812010-01-22 Corinna Vinschen <corinna@vinschen.de>
782
783 * libc/locale/lmonetary.c (__monetary_load_locale): Take additional
784 parameters for wide char to multibyte conversion. Call
785 __set_lc_monetary_from_win on Cygwin.
786 * libc/locale/lmonetary.h: Make C++-safe.
787 (__monetary_load_locale): Change declaration.
788 * libc/locale/lnumeric.c (__numeric_load_locale): Take additional
789 parameters for wide char to multibyte conversion. Call
790 __set_lc_numeric_from_win on Cygwin.
791 * libc/locale/lnumeric.h: Make C++-safe.
792 (__numeric_load_locale): Change declaration.
793 * libc/locale/locale.c (lconv): De-constify for Cygwin.
794 (__set_charset_from_locale): Rename from
795 __set_charset_from_codepage. Take locale as parameter instead of
796 a codepage.
797 (loadlocale): Allow "EUC-JP" for "EUCJP" and "EUC-KR" for "EUCKR".
798 Change documnetation accordingly. Enable LC_COLLATE, LC_MONETARY,
799 LC_NUMERIC, and LC_TIME handling on Cygwin.
800 (_localeconv_r): On Cygwin, copy values from monetary and numeric
801 domain if change has been noted.
802 * libc/locale/nl_langinfo.c (nl_langinfo): Accommodate change of
803 am/pm layout in struct lc_time_T.
804 * libc/locale/timelocal.c (_C_time_locale): Accommodate
805 redefinition of am/pm members.
806 (__time_load_locale): Take additional parameters for wide char
807 to multibyte conversion. Call __set_lc_time_from_win on Cygwin.
808 * libc/locale/timelocal.h: Make C++-safe.
809 (struct lc_time_T): Convert am and pm to a am_pm array for easier
810 consumption by strftime and strptime.
811 (__time_load_locale): Change declaration.
812 * libc/time/strftime.c: Change documentation to reflect changes to
813 strftime. Remove locale constant strings in favor of access to
814 locale-specifc data.
815 (_ctloc): Define access method for locale-specifc data.
816 (TOLOWER): Define for tolower conversion.
817 (strftime): Throughout, convert locale-specific formats to use
818 locale-specific data. Add GNU-specific "%P" format.
819 * libc/time/strptime.c: Remove locale constant strings in favor of
820 access to locale-specifc data.
821 (_ctloc): Define access method for locale-specifc data.
822 (strptime): Throughout, convert locale-specific formats to use
823 locale-specific data.
824
514329a7
CV
8252010-01-20 Corinna Vinschen <corinna@vinschen.de>
826
827 * libc/locale/nl_langinfo.c (nl_langinfo): On Cygwin, translate
828 often-used charsets into Linux compatible codesets.
829
044cd635
JJ
8302010-01-19 Andy Koppe <andy.koppe@gmail.com>
831
832 * libc/stdio/vfscanf.c (__SVFSCANF_R): Fix handling of non-ASCII
833 characters and allow invalid bytes in format string.
834
8c72ebb7
CV
8352010-01-19 Corinna Vinschen <corinna@vinschen.de>
836
837 * libc/stdlib/wcstombs_r.c (_wcstombs_r): Handle invalid characters
838 correctly also in the s==NULL case.
839
da5f018b
CV
8402010-01-17 Corinna Vinschen <corinna@vinschen.de>
841
842 * libc/locale/locale.c (loadlocale): Change comments to refer to
843 ISO 639-3 rather than 639-2.
844
d2401523
CV
8452010-01-17 Corinna Vinschen <corinna@vinschen.de>
846
847 * libc/locale/locale.c (loadlocale): Allow three character
848 language codes to accommodate ISO 639-2 codes.
849
32cb8c8c
CV
8502010-01-17 Corinna Vinschen <corinna@vinschen.de>
851
852 * libc/locale/locale.c (lc_ctype_charset): Disable defaulting to
853 "UTF-8" on Cygwin.
854 (lc_message_charset): Ditto.
855 (loadlocale): Disable setting charset of the "C" locale to "UTF-8" on
856 Cygwin.
857 * libc/stdlib/mbtowc_r.c (__mbtowc): Add Cygwin-specific comment.
858 * libc/stdlib/wctomb_r.c (__wctomb): Ditto.
859
37671b51
CV
8602010-01-14 Corinna Vinschen <corinna@vinschen.de>
861
862 * libc/include/sys/_default_fcntl.h (O_CLOEXEC): Define as _FNOINHERIT.
863 (F_DUPFD_CLOEXEC): Define for Cygwin.
864 * libc/include/sys/unistd.h (dup3): Define for Cygwin.
865 (pipe2): Ditto.
866
0b82c17d
CV
8672010-01-14 Corinna Vinschen <corinna@vinschen.de>
868
869 * libc/stdio/vfprintf.c (_VFPRINTF_R): Just wave bytes invalid in
870 the current charset through.
871
eeda30d7
JJ
8722010-01-11 Sebastian Huber <sebastian.huber@embedded-brains.de>
873
874 * libc/posix/telldir.c (_cleanupdir): Fixed usage of freed memory.
875
d8a43935
JJ
8762010-01-11 Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
877
878 * libc/include/math.h (log2, log2f): Disable macro versions for C++,
879 as they are incompatible with OpenMP/C++ headers.
880
2b77087a
CV
8812010-01-10 Corinna Vinschen <corinna@vinschen.de>
882
883 * libc/stdlib/mbtowc_r.c (__ascii_mbtowc): Disallow conversion of
884 non-ASCII chars on Cygwin.
885 * libc/stdlib/wctomb_r.c (__ascii_wctomb): Ditto.
886
b2e79f98
EB
8872009-12-22 Eric Blake <ebb9@byu.net>
888
889 * libc/include/sys/unistd.h (suboptarg, getsubopt): Move...
890 * libc/include/stdlib.h: ...here, to match POSIX for getsubopt.
891
a3903681 8922009-12-17 Jeff Johnston <jjohnstn@redhat.com>
296df518 893
b2e79f98
EB
894 * NEWS: Update with 1.18.0 info.
895 * README: Ditto.
896 * acinclude.m4: Change version number to 1.18.0.
897 * aclocal.m4: Regenerated.
898 * configure: Ditto.
899 * doc/aclocal.m4: Ditto.
900 * doc/configure: Ditto.
901 * libc/*/aclocal.m4: Ditto.
902 * libc/*/configure: Ditto.
903 * libc/libc.texinfo: Ditto.
904 * libm/*/aclocal.m4: Ditto.
905 * libm/*/configure: Ditto.
906 * libm/libm.texinfo: Ditto.
907 * libc/sys/linux/shared.ld: Add VERS_1.18
296df518 908
a97a996f
JJ
9092009-12-17 Jeff Johnston <jjohnstn@redhat.com>
910
911 * libc/include/_syslist.h: Add _mkdir transform.
912
bbe9636f
JJ
9132009-12-17 Jerker Back <jerker.back@gmail.com>
914
915 * libc/iconv/lib/local.h[!__GNUC__]: Add alternative version of
916 ICONV_ZERO_MB_STATE_T macro.
917 * libc/iconv/lib/ucsconv.c (ucs_based_conversion_get_state): Use
918 temporary local variable nullstate to hold empty mbstate_t.
919
8b917fbc
JJ
9202009-12-17 Jerker Back <jerker.back@gmail.com>
921
922 * libc/include/_ansi.h: Add new _EXFNPTR macro for using with
923 function pointer arguments.
924 * libc/iconv/lib/conv.h: Use _EXFNPTR rather than _EXPARM macro.
925 * libc/iconv/lib/ucsconv.h: Ditto.
926 * libc/include/stdlib.h: Use new _EXFNPTR macro for function pointers.
927 * libc/include/sys/reent.h: Ditto.
928 * libc/include/sys/unistd.h: Ditto.
929 * libc/search/bsearch.c: Ditto.
930 * libc/stdio/fseek.c: Ditto.
931 * libc/stdio64/fseeko64.c: Ditto.
932 * libc/stdlib/atexit.c: Ditto.
933 * libc/stdlib/on_exit.c: Ditto.
934
2b77087a 9352009-12-17 Ralf CorsÃ\83©pius <ralf.corsepius@rtems.org>
6fe2eb4c
JJ
936
937 * libc/include/machine/ieeefp.h: Rework __IEEE_*_ENDIAN handling.
b2e79f98 938 * libc/machine/arm/machine/endian.h: Remove (Conflicts with
6fe2eb4c
JJ
939 libc/include/machine/endian.h)
940
2b77087a 9412009-12-17 Ralf CorsÃ\83©pius <ralf.corsepius@rtems.org>
9ad56b27
JJ
942
943 * libc/include/machine/setjmp.h: Set up _JBLEN #ifdef __m68k__.
944
f10d3487
JJ
9452009-12-17 Ralf Corsepius <ralf.corsepius@rtems.org>
946
b2e79f98 947 * libc/include/pthread.h: Add pthread_atfork, pthread_rwlock_unlock
f10d3487
JJ
948 * libc/include/sys/stat.h: Use struct timespec st_*tim,
949 blksize_t st_blksize, blkcnt_t st_blocks.
950 Add st_*time compatibility macros.
951
377b1902
JJ
9522009-12-16 Joel Sherrill <joel.sherrill@oarcorp.com>
953
954 * libc/sys/rtems/machine/param.h: Only use sizeof(double) -1
955 for ALIGNBYTES on SPARC.
956
a13e3a7b
JJ
9572009-12-16 Jeff Johnston <jjohnstn@redhat.com>
958
959 * libc/include/sys/errno.h: Move EHOSTDOWN, EPFNOSUPPORT,
960 and ETOOMANYREFS into general list as they are referenced
961 by OpenGroup and needed by RTEMS.
962
2b77087a 9632009-12-16 Ralf CorsÃ\83©pius <ralf.corsepius@rtems.org>
39e5af4a
JJ
964
965 * libc/search/hcreate.c: Don't include <sys/queue.h> (Unused).
966
2b77087a 9672009-12-16 Ralf CorsÃ\83©pius <ralf.corsepius@rtems.org>
32a08d0e 968
b2e79f98 969 * libc/sys/rtems/machine/_types.h: New (Derived from
32a08d0e 970 machine/_default_types.h).
b2e79f98 971 * libc/sys/rtems/crt0.c: Rework. Introduce macro RTEMS_STUB.
32a08d0e 972 * libc/sys/rtems/sys/param.h:
b2e79f98
EB
973 Update copyright notice from FreeBSD.
974 Remove HZ.
975 Add #include <sys/priority.h>
976 Remove priority handling (moved to sys/priority.h).
977 Remove CLBYTES (Unused, abandoned in BSD).
32a08d0e 978 * libc/sys/rtems/sys/queue.h: Update copyright (from FreeBSD).
b2e79f98 979 Remove CIRCLEQ_*.
32a08d0e 980
47c756dd
JJ
9812009-12-15 Conny Marco Menebrocker <c-m-m@gmx.de>
982
983 * libc/machine/xc16x/Makefile.am: Fix typo and refer
984 to puts.c instead of putc.c.
985 * libc/machine/xc16x/Makefile.in: Regenerated.
986
531e2356
JJ
9872009-12-14 Maxim Kuvyrkov <maxim@codesourcery.com>
988
989 * libc/machine/m68k/memcpy.S: Patch to support
990 boards which do not support unaligned read/write.
991
655e4353
JJ
9922009-12-10 Conny Marco Menebrocker <c-m-m@gmx.de>
993
994 * configure.host: Add xc16x support.
995 * libc/include/machine/ieeefp.h: Ditto.
996 * libc/include/sys/config.h: Ditto.
997 * libc/machine/configure.in: Ditto.
998 * libc/machine/Makefile.in: Regenerated.
999 * libc/machine/aclocal.m4: Ditto.
1000 * libc/machine/configure: Ditto.
1001 * libc/machine/xc16x/Makefile.am: New file.
1002 * libc/machine/xc16x/Makefile.in: Ditto.
1003 * libc/machine/xc16x/aclocal.m4: Ditto.
1004 * libc/machine/xc16x/configure: Ditto.
1005 * libc/machine/xc16x/configure.in: Ditto.
1006 * libc/machine/xc16x/putchar.c: Ditto.
1007 * libc/machine/xc16x/puts.c: Ditto.
1008 * libc/machine/xc16x/setjmp.S: Ditto.
1009
ad0ae5d8
EB
10102009-12-08 Eric Blake <ebb9@byu.net>
1011
1012 Fix some *at declarations.
1013 * libc/include/stdio.h (symlinkat): Move this...
1014 * libc/include/sys/_default_fcntl.h (unlinkat): ...and this...
1015 * libc/include/sys/unistd.h (symlinkat, unlinkat): ...here, to
1016 match POSIX.
1017
df8d921e
JJ
10182009-12-03 Craig Howland <howland@LGSInnovations.com>
1019
1020 * libc/stdlib/strtod.c: Correct "NO_REENT" to "_REENT_ONLY".
1021 * libc/stdlib/wcstod.c: Ditto.
1022 * libc/stdlib/dtoastub.c: Ditto.
1023
e92d0abe
CV
10242009-11-23 Corinna Vinschen <corinna@vinschen.de>
1025
1026 Use NetBSD fix for CVE-2009-0689 security vulnerability.
1027 * libc/include/sys/reent.h (_Kmax): Define here based on the sizeof
1028 size_t, as in latest NetBSD.
1029 * libc/reent/reent.c (_reclaim_reent): Use _Kmax rather than constant
1030 value 15.
1031 * libc/stdlib/mprec.c (_Kmax): Don't define here. Explain why.
1032
0680fe0a
NC
10332009-11-20 Nick Clifton <nickc@redhat.com>
1034
1035 * libc/machine/rx/strncat.S (_strncat): Replace use of r6
1036 (call-saved) with r14 (call-used).
1037
b425cbf4
JJ
10382009-11-18 Dave Korn <dave.korn.cygwin@googlemail.com>
1039
1040 * libm/machine/i386/f_tan.S (_f_tan): Free fp stack register
1041 containing useless constant before advancing fp sp over it.
1042 (_f_tanf): Likewise.
1043
b4fee527
CV
10442009-11-18 Corinna Vinschen <corinna@vinschen.de>
1045
1046 * libc/stdio/vfprintf.c: Include ../stdlib/local.h. Replace call to
1047 _mbtowc_r with direct call to __mbtowc.
1048 * libc/stdio/vfscanf.c: Ditto.
1049 * libc/stdlib/btowc.c: Include local.h. Replace call to _mbtowc_r
1050 with direct call to __mbtowc.
1051 * libc/stdlib/mblen.c: Ditto.
1052 * libc/stdlib/mblen_r.c: Ditto.
1053 * libc/stdlib/mbrtowc.c: Ditto.
1054 * libc/stdlib/mbstowcs_r.c: Ditto.
1055 * libc/stdlib/mbtowc.c: Ditto.
1056 * libc/stdlib/wcrtomb.c: Include local.h. Replace call to _wctomb_r
1057 with direct call to __wctomb.
1058 * libc/stdlib/wcsnrtombs.c: Ditto.
1059 (_wcsnrtombs_r): Ditto.
1060 * libc/stdlib/wcstombs_r.c: Ditto.
1061 * libc/stdlib/wctob.c: Ditto.
1062 * libc/stdlib/wctomb.c: Ditto.
1063
1064 * libc/stdlib/mbrtowc.c (mbrtowc): Implement independently from
1065 _mbrtowc_r, unless PREFER_SIZE_OVER_SPEED or __OPTIMIZE_SIZE__ are
1066 defined.
1067 * libc/stdlib/wcrtomb.c (wcrtomb): Implement independently from
1068 _wcrtomb_r, unless PREFER_SIZE_OVER_SPEED or __OPTIMIZE_SIZE__ are
1069 defined.
1070
1071 * libc/stdlib/mbtowc_r.c (__utf8_mbtowc): Drop unnecessary test for
1072 ch >= 0.
1073
46471257
JJ
10742009-11-17 Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
1075
1076 * libm/common/fdlibm.h (logb, logbf): Move decls from here...
1077 * libc/include/math.h (logb, logbf): ...to here.
1078
73db6db7
EB
10792009-11-06 Jon Turney <jon.turney@dronecode.org.uk>
1080
1081 * libc/include/ctype.h (__ctype_lookup): Fix precedence.
1082
dc3d6d90
CV
10832009-10-30 Corinna Vinschen <corinna@vinschen.de>
1084
1085 * libc/stdio/fflush.c (_fflush_r): Store old errno to check for
1086 low-level seek error condition. Restore old errno in case of
1087 success. Don't use new position after seek as error condition,
1088 rather check for return value of -1 and errno. Handle EINVAL
1089 just like ESPIPE. Only set fp->_offset if errno is 0.
1090
a8613735
NC
10912009-10-27 Nick Clifton <nickc@redhat.com>
1092
1093 * MAINTAINERS (ARM): Add myself as an ARM maintainer.
1094
fd6942ab
NC
10952009-10-26 DJ Delorie <dj@redhat.com>
1096
1097 * configure.host: Add support for RX architecture.
1098 * libc/include/machine/ieeefp.h: Likewise.
1099 * libc/include/machine/setjmp.h: Likewise.
1100 * libc/include/machine/configure.in: Likewise.
1101 * libc/include/machine/configure: Regenerate.
1102 * libc/machine/rx: New directory.
1103 * libc/machine/rx/*: New files to support RX architecture.
1104
9b2b7c4a
EB
11052009-10-24 Eric Blake <ebb9@byu.net>
1106
1107 * libc/include/ctype.h (__ctype_lookup): New macro.
1108 (isalpha, isupper, islower, isdigit, isxdigit, isspace, ispunct)
1109 (isalnum, isprint, isgraph, iscntrl, isblank): Use it to fix bug
1110 on 64-bit machines.
1111
3a2f070f
JJ
11122009-10-20 Jeff Johnston <jjohnstn@redhat.com>
1113
1114 * configure.host: Don't set -O2 flag in newlib_cflags. Leave
1115 that to CFLAGS.
1116 * acinclude.m4: Don't reset CFLAGS before calling _AC_PROG_CC_G
1117 as it sets the same flags as we are using.
1118 * aclocal.m4: Regenerated.
1119 * configure: Ditto.
1120 * Makefile.in: Ditto.
1121 * iconvdata/aclocal.m4: Ditto.
1122 * iconvdata/configure: Ditto.
1123 * iconvdata/Makefile.in: Ditto.
1124 * doc/aclocal.m4: Ditto.
1125 * doc/configure: Ditto.
1126 * doc/Makefile.in: Ditto.
1127 * libc/aclocal.m4: Ditto.
1128 * libc/configure: Ditto.
1129 * libc/Makefile.in: Ditto.
1130 * libc/*Makefile.in: Ditto.
1131 * libc/*aclocal.m4: Ditto.
1132 * libc/*configure: Ditto.
1133 * libm/*Makefile.in: Ditto.
1134 * libm/*aclocal.m4: Ditto.
1135 * libm/*configure: Ditto.
1136
1e1b6f80
JJ
11372009-10-16 Jeff Johnston <jjohnstn@redhat.com>
1138
1139 * libc/include/sys/config.h[__CYGWIN__]: Set __USE_XOPEN2K flag
1140 if not __STRICT_ANSI__ or stdc version C99 or greater.
9b2b7c4a 1141 * libc/include/stdio.h[__STRICT_ANSI__]: Add __USE_XOPEN2K check
1e1b6f80
JJ
1142 for fseeko and ftello prototypes.
1143
1b13009b
CV
11442009-10-15 Corinna Vinschen <corinna@vinschen.de>
1145
1146 * libc/include/wchar.h (struct tm0: Declare as incomplete type.
1147
597441d7
CV
11482009-10-15 Corinna Vinschen <corinna@vinschen.de>
1149
1150 * libc/locale/nl_langinfo.c (nl_langinfo): Add Cygwin-specific temporary
1151 exception for KOI8 charsets.
1152
e4ba1cf2
EB
11532009-10-13 Eric Blake <ebb9@byu.net>
1154
1155 * libc/include/sys/unistd.h: Add _PC*, _CS*, and _SC* constants
1156 new to POSIX 2008.
1157
81c59927
JJ
11582009-10-13 Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
1159
1160 * libc/include/sys/signal.h: Include <sys/types.h> always.
1161 [__CYGWIN__, __rtems__]: Define kill first argument as pid_t per
1162 standards.
1163
2072888e
JJ
11642009-10-09 Dave Korn <dave.korn@artimi.com>
1165
1166 * libc/include/sys/time.h (_TIMEVAL_DEFINED): Define when
1167 defining struct timeval.
1168
ec4e5025
CV
11692009-10-09 Corinna Vinschen <corinna@vinschen.de>
1170
1171 * libc/locale/locale.c (DEFAULT_LOCALE): New define.
1172 (__default_locale): New global variable set to the default locale.
1173 (__get_locale_env): Return __default_locale rather than fixed "C".
1174
a3a62ae7
JJ
11752009-10-08 Jeff Johnston <jjohnstn@redhat.com>
1176
1177 * configure.host: For RTEMS, define HAVE_ASSERT_FUNC.
1178 * libc/stdlib/assert.c (_assert_func): Do not specify
1179 __assert_func if HAVE_ASSERT_FUNC flag is set.
1180
85191fc5
JJ
11812009-10-08 Eric Blake <ebb9@byu.net>
1182
1183 * libc/include/getopt.h (__getopt_r, __getopt_long_r)
1184 (__getopt_long_only_r): Protect declarations, to avoid compiler
1185 warning.
1186
8bd7bd3b
CV
11872009-10-07 Corinna Vinschen <corinna@vinschen.de>
1188
1189 * libc/locale/nl_langinfo.c (nl_langinfo): Just return current locale
1190 charset on Cygwin.
1191
6ff28fc3
CV
11922009-10-03 Corinna Vinschen <corinna@vinschen.de>
1193
1194 * libc/stdlib/mbtowc_r.c (__utf8_mbtowc): Allow CESU-8 surrogate
1195 value encoding.
1196 * libc/stdlib/wctomb_r.c (__utf8_mbtowc): Allow CESU-8 surrogate
1197 value decoding.
1198
50e4e69c
CV
11992009-09-29 Corinna Vinschen <corinna@vinschen.de>
1200
1201 * libc/locale/locale.c (loadlocale): Allow "C." same as "C-" as locale
1202 prefix. Add some words to documentation.
1203
12042009-09-29 Corinna Vinschen <corinna@vinschen.de>
99dbad65
CV
1205
1206 * libc/stdlib/sb_charsets.c: Throughout, translate undefined
1207 characters to their corresponding Windows Unicode value.
1208
6c249577
JJ
12092009-09-28 Michael Eager <eager@eagercon.com>
1210
1211 * configure.host: Add microblaze.
1212 * libc/include/machine/ieeefp.h [MICROBLAZE]: Define __IEEE_BIG_ENDIAN.
1213 * libc/include/machine/setjmp.h [MICROBLAZE]: Define _JBLEN, _JBTYPE.
1214 * libc/include/sys/config.h [MICROBLAZE]: Define _REENT_SMALL,
1215 _UNIX98_THREAD_MUTEX_ATTRIBUTES.
1216 * libc/include/sys/types.h: Treat XMK like rtems, define
1217 PTHREAD_MUTEX_NORMAL, PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE,
1218 PTHREAD_MUTEX_DEFAULT, PTHREAD_STACK_MIN, define stuct pthread_attr_s.
1219 * libc/machine/configure.in: Add microblaze.
1220 * libc/machine/configure: Add microblaze (not regenerated).
1221 * libc/machine/microblaze/configure.in: NEW.
1222 * libc/machine/microblaze/configure: Generate.
1223 * libc/machine/microblaze/Makefile.am: NEW.
1224 * libc/machine/microblaze/Makefile.in: Generate.
1225 * libc/machine/microblaze/{abort.c, strcmp.c, strcpy.c, strlen.c,
1226 mallocr.c, longjmp.S, setjmp.S}: NEW.
1227 * libc/stdlib/mallocr.c [MICROBLAZE]: Don't declare sbrk prototype,
1228 mALLOc(): return malloc value.
1229
a58d484b
CV
12302009-09-27 Corinna Vinschen <corinna@vinschen.de>
1231
1232 * libc/locale/locale.c (lc_ctype_charset): Set to "UTF-8" on Cygwin.
1233 (lc_message_charset): Ditto.
1234 (loadlocale): Set charset of the "C" locale to "UTF-8" on Cygwin.
1235 * libc/stdlib/mbtowc_r.c (__mbtowc): Default to __utf8_mbtowc on
1236 Cygwin.
1237 * libc/stdlib/wctomb_r.c (__wctomb): Default to __utf8_wctomb on
1238 Cygwin.
1239
b14f894f
EB
12402009-09-26 Eric Blake <ebb9@byu.net>
1241
1242 * libc/include/sys/unistd.h (execvpe, fexecve) [__CYGWIN__]:
1243 Add declarations.
1244
65d43650
EB
12452009-09-24 Eric Blake <ebb9@byu.net>
1246
1247 * libc/include/sys/unistd.h (eaccess, euidaccess) [__CYGWIN__]:
1248 Add declarations.
1249
c1754722
CV
12502009-09-23 Corinna Vinschen <corinna@vinschen.de>
1251
1252 * libc/locale/locale.c: Drop Cygwin-specific windows.h include.
1253 (loadlocale): Call __set_charset_from_codepage with 0 codepage.
1254
2b77087a 12552009-09-22 Ralf Corsépius <ralf.corsepius@rtems.org>
2ad8d17a
JJ
1256
1257 * libc/include/stdlib.h: Add posix_memalign.
1258
2b77087a 12592009-09-22 Ralf Corsépius <ralf.corsepius@rtems.org>
bdb08ed4
JJ
1260
1261 * configure.host (*-rtems*): Remove -DMISSING_SYSCALL_NAMES.
1262 Add -DHAVE_BLKSIZE, -D_NO_WORDEXP -D_NO_POPEN.
1263
2b77087a 12642009-09-22 Ralf Corsépius <ralf.corsepius@rtems.org>
c3f3d59e 1265
9b2b7c4a 1266 * configure.host (m32c): Move setting -DABORT_PROVIDED to second
c3f3d59e
JJ
1267 "case $host".
1268
4945cb2a
CF
12692009-09-18 Christopher Faylor <me+cygwin@cgf.cx>
1270
1271 * libc/include/sys/unistd.h: Declare getpagesize as returning
1272 POSIX-mandated int.
1273 * libc/sys/linux/sys/unistd.h: Ditto.
1274
a9dd6324
JJ
12752009-08-31 Takaki Makino <t@snowelm.com>
1276
1277 * libm/machine/i386/f_pow.c(_f_pow): Alter ASM so it works with
1278 newer gcc versions.
1279 * libm/maachine/i386/f_powf.c(_f_powf): Ditto.
1280
eb9194f5
JJ
12812009-08-25 Andy Koppe <andy.koppe@gmail.com>
1282
1283 * libc/stdlib/sb_charsets.c (__micro_atoi): Allow five-digit codepage
1284 numbers.
1285 * libc/locale/locale.c (loadlocale): Set MB_CUR_MAX to 1 for KOI8
1286 charsets.
1287 * libc/stdlib/local.h (__cp_conv): Remove incorrect number of codepages.
1288
162a23c5
JJ
12892009-08-24 Corinna Vinschen <corinna@vinschen.de>
1290
1291 * libc/locale/locale.c: Update documentation.
1292 (loadlocale): Map "KOI8-R" and "KOI8-U" to CP20866 and CP21866.
1293
12942009-08-24 Andy Koppe <andy.koppe@gmail.com>
1295
1296 * libc/stdlib/sb_charsets.c (__cp_conv): Add KOI8-R (Russian, CP20866)
1297 and KOI8-U (Ukrainian, CP21866) to Windows codepage conversion tables.
1298 * libc/ctype/ctype_cp.h (__ctype_cp): Likewise for ctype tables.
1299
4b4a1363
JJ
13002009-08-24 Andy Koppe <andy.koppe@gmail.com>
1301
1302 * libc/ctype/iswspace.c (iswspace): Include "non-breaking
1303 space" (U+00A0).
1304 * libc/ctype/iswblank.c (iswblank): Likewise.
1305
24149e4a
CV
13062009-08-21 Corinna Vinschen <corinna@vinschen.de>
1307
1308 * libc/locale/locale.c (loadlocale): Throughout check charset string
1309 case insensitive and store internal charset string uppercased. Allow
1310 "UTF8" additionally to "UTF-8". Add this change to documentation.
1311
3584ff9c
EB
13122009-08-21 Eric Blake <ebb9@byu.net>
1313
1314 * libc/include/iconv.h (iconv): Match POSIX prototype.
1315 * libc/iconv/lib/iconv.c (iconv): Likewise.
1316
c11ba63d
JJ
13172009-08-21 Craig Howland <howland@LGSInnovations.com>
1318
1319 * libm/common/s_remquo.c (remquo): Fix sign of quotient when |x|==|y|.
1320 * libc/stdio/mktemp.c: Add #include <stdlib.h> for function prototypes.
1321
2f0e5052
RW
13222009-08-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1323
04189ff9
RW
1324 * iconvdata/Makefile.am (all): Remove.
1325 * libc/sys/a29khif/Makefile.am (all-am): Rename from ...
1326 (all): ... this.
1327 * libc/sys/arc/Makefile.am: Likewise.
1328 * libc/sys/arm/Makefile.am: Likewise.
1329 * libc/sys/d10v/Makefile.am: Likewise.
1330 * libc/sys/decstation/Makefile.am: Likewise.
1331 * libc/sys/h8300hms/Makefile.am: Likewise.
1332 * libc/sys/h8500hms/Makefile.am: Likewise.
1333 * libc/sys/linux/Makefile.am: Likewise.
1334 * libc/sys/linux/machine/i386/Makefile.am: Likewise.
1335 * libc/sys/m88kbug/Makefile.am: Likewise.
1336 * libc/sys/mmixware/Makefile.am: Likewise.
1337 * libc/sys/netware/Makefile.am: Likewise.
1338 * libc/sys/rdos/Makefile.am: Likewise.
1339 * libc/sys/rtems/Makefile.am: Likewise.
1340 * libc/sys/sh/Makefile.am: Likewise.
1341 * libc/sys/sparc64/Makefile.am: Likewise.
1342 * libc/sys/sun4/Makefile.am: Likewise.
1343 * libc/sys/sysmec/Makefile.am: Likewise.
1344 * libc/sys/sysnec810/Makefile.am: Likewise.
1345 * libc/sys/sysnecv850/Makefile.am: Likewise.
1346 * libc/sys/sysvi386/Makefile.am: Likewise.
1347 * libc/sys/sysvnecv70/Makefile.am: Likewise.
1348 * libc/sys/tic80/Makefile.am: Likewise.
1349 * libc/sys/w65/Makefile.am: Likewise.
1350 * libc/sys/z8ksim/Makefile.am: Likewise.
1351 * iconvdata/Makefile.in: Regenerate.
1352 * libc/sys/a29khif/Makefile.in: Likewise.
1353 * libc/sys/arc/Makefile.in: Likewise.
1354 * libc/sys/arm/Makefile.in: Likewise.
1355 * libc/sys/d10v/Makefile.in: Likewise.
1356 * libc/sys/decstation/Makefile.in: Likewise.
1357 * libc/sys/h8300hms/Makefile.in: Likewise.
1358 * libc/sys/h8500hms/Makefile.in: Likewise.
1359 * libc/sys/linux/Makefile.in: Likewise.
1360 * libc/sys/linux/machine/i386/Makefile.in: Likewise.
1361 * libc/sys/m88kbug/Makefile.in: Likewise.
1362 * libc/sys/mmixware/Makefile.in: Likewise.
1363 * libc/sys/netware/Makefile.in: Likewise.
1364 * libc/sys/rdos/Makefile.in: Likewise.
1365 * libc/sys/rtems/Makefile.in: Likewise.
1366 * libc/sys/sh/Makefile.in: Likewise.
1367 * libc/sys/sparc64/Makefile.in: Likewise.
1368 * libc/sys/sun4/Makefile.in: Likewise.
1369 * libc/sys/sysmec/Makefile.in: Likewise.
1370 * libc/sys/sysnec810/Makefile.in: Likewise.
1371 * libc/sys/sysnecv850/Makefile.in: Likewise.
1372 * libc/sys/sysvi386/Makefile.in: Likewise.
1373 * libc/sys/sysvnecv70/Makefile.in: Likewise.
1374 * libc/sys/tic80/Makefile.in: Likewise.
1375 * libc/sys/w65/Makefile.in: Likewise.
1376 * libc/sys/z8ksim/Makefile.in: Likewise.
1377
2f0e5052
RW
1378 * configure.in (newlib_cv_ldbl_eq_dbl): Rename cache variable
1379 from newlib_ldbl_eq_dbl.
1380 * configure: Regenerate.
1381
84d6be5f
EB
13822009-08-19 Eric Blake <ebb9@byu.net>
1383
1384 * libc/Makefile.am (SUBDEFS): Correctly build popen docs.
1385 * libc/libc.texinfo (Top): Add posix node to menu.
1386
7dc54c36
JJ
13872009-08-18 Jeff Johnston <jjohnstn@redhat.com>
1388
1389 * newlib.hin: Add comment regarding file being manually edited.
1390 * Makefile.am: Add no-op rule for newlib.hin.
1391 * Makefile.in: Regenerated.
1392
66b452d6
JJ
13932009-08-18 Jeff Johnston <jjohnstn@redhat.com>
1394
1395 * acconfig.h: Add templates for _HAVE_LONG_DOUBLE and _LDBL_EQ_DBL.
1396
a0511609
EB
13972009-08-18 Eric Blake <ebb9@byu.net>
1398
e9708d92
EB
1399 * libc/posix/popen.c (popen): Fix documented prototype.
1400
a0511609
EB
1401 Improve popen compatibility with glibc.
1402 * libc/posix/popen.c (popen): The 2006-08-22 change to use
1403 FD_CLOEXEC disagrees with other implementations; instead, use
1404 pidlist to work even when fcntl is not available. Meanwhile,
1405 support the 'e' modifier to set CLOEXEC, as in glibc. Drop
1406 cygwin-specific code, now that cygwin has its own version.
1407 * libc/posix/Makefile.am (CHEWOUT_FILES): Document popen.
1408 * libc/posix/posix.tex: New file.
1409
56dbf993
JJ
14102009-08-17 Craig Howland <howland@LGSInnovations.com>
1411
1412 * libc/string/wcsncpy.c (wcsncpy): Re-write function based on small
1413 version of strncpy() (fixing two bugs).
1414
61189f19
CV
14152009-08-13 Corinna Vinschen <corinna@vinschen.de>
1416
af0a038e 1417 * libc/stdio/mktemp.c (mkdtemp): Fix typo in function name.
61189f19
CV
1418
14192009-08-12 Jeff Johnston <jjohnstn@redhat.com>
12387ab6
JJ
1420
1421 * libc/stdio/mktemp.c (_gettemp): Do not call _mkdir_r unless
1422 HAVE_MKDIR is defined.
1423
14242009-08-12 Hans-Peter Nilsson <hp@axis.com>
1425
1426 * libc/include/reent.h: Add prototype and definition of _mkdir_r.
1427 * libc/reent/Makefile.am (GENERAL_SOURCES): Add mkdirr.c.
1428 (CHEWOUT_FILES): Add mkdirr.def.
1429 * libc/reent/Makefile.in: Regenerate.
1430 * libc/reent/mkdirr.c: New file.
1431
5f8c90bb
JJ
14322009-08-10 Jeff Johnston <jjohnstn@redhat.com>
1433
1434 * libc/stdlib/wcstombs.c: Change documentation to specify size_t
1435 return type instead of int.
1436
1cc1af42
JJ
14372009-07-29 Jeff Johnston <jjohnstn@redhat.com>
1438
1439 * libc/stdlib/a64l.c: Fix to use 'a' instead of 'A' in calculation
1440 when a lower-case character is detected.
1441
a67f77af
CV
14422009-07-29 Corinna Vinschen <corinna@vinschen.de>
1443
1444 * libc/stdlib/mbtowc_r.c (__utf8_mbtowc): Rework UTF-16 surrogate
1445 pair handling to be more bullet-proof even with incomplete UTF-8
1446 sequences. Add check for 4 byte sequences resulting in values
1447 outside the valid Unicode range. Add a comment to clarify checking
1448 for invalid CESU-8 sequences.
1449
ecf5c883
CV
14502009-07-28 Corinna Vinschen <corinna@vinschen.de>
1451
1452 * libc/stdlib/mbtowc_r.c (__utf8_mbtowc): Fix incrementing n in case
1453 of handling incomplete sequences.
1454
d6438f13
EB
14552009-07-22 Eric Blake <ebb9@byu.net>
1456
1457 Avoid a fault from locking a closed standard file.
1458 * libc/stdio/fflush.c (_fflush_r): Give up early if stream has
1459 been previously closed.
1460
664f0076
JJ
14612009-07-09 Craig Howland <howland@LGSInnovations.com>
1462
1463 * libm/math/ef_scalb.c: Replace isnanf() (pre-C99 function call) with
1464 isnan() (C99 macro).
1465 * libm/math/wf_log.c: Ditto.
1466 * libm/math/wf_j0.c: Ditto.
1467 * libm/math/wf_sqrt.c: Ditto.
1468 * libm/math/wf_pow.c: Ditto.
1469 * libm/math/wf_fmod.c: Ditto.
1470 * libm/math/wf_remainder.c: Ditto.
1471 * libm/math/wf_scalb.c: Ditto.
1472 * libm/math/wf_atanh.c: Ditto.
1473 * libm/math/wf_cosh.c: Ditto.
1474 * libm/math/wf_acos.c: Ditto.
1475 * libm/math/wf_acosh.c: Ditto.
1476 * libm/math/wf_jn.c: Ditto.
1477 * libm/math/wf_log10.c: Ditto.
1478 * libm/math/wf_asin.c: Ditto.
1479 * libm/math/wf_j1.c: Ditto.
1480 * libm/common/sf_isnan.c: Add #include <ieeefp.h>, fix comment.
1481 * libm/common/sf_isinf.c: Add #include <ieeefp.h>, adjust comment to
1482 match that from s_isinf.c.
1483 * libc/include/machine/ieeefp.h: Simplify isinf and isnan macros to
1484 remove un-necessary extension use (in a similar manner to as was
1485 recently done in math.h).
1486 * libc/include/math.h: Remove isnanf and isinff prototypes (are in
1487 ieeefp.h).
1488 * libm/machine/spu/sf_isinf.c: Fix comment (remove <math.h>).
1489
394660ec
JJ
14902009-07-06 Joel Sherrill <joel.sherrill@oarcorp.com>
1491
1492 * libc/include/sys/features.h: Enable UNIX98 mutex attributes
d6438f13 1493 for RTEMS.
394660ec 1494
ce1eb6bb
EB
14952009-07-03 Eric Blake <ebb9@byu.net>
1496
c52ac05c
EB
1497 Add mkdtemp, mkstemps.
1498 * libc/stdio/mktemp.c: Fix documentation.
1499 (_gettemp): Add domkdir and length parameters. Check for
1500 insufficient 'X' suffix. Drop cygwin-specific code.
1501 (_mkstemp_r, _mktemp_r, mkstemp, mktemp): Adjust clients.
1502 (_mkdtemp_r, _mkstemps_r, mkdtemp, mkstemps): New functions.
1503 * libc/include/stdlib.h (_mkdtemp_r, _mkstemps_r, mkdtemp)
1504 (mkstemps): Declare them.
1505
ce1eb6bb
EB
1506 Add fpurge.
1507 * libc/stdio/fpurge.c (fpurge, _fpurge_r): New file.
1508 * libc/stdio/Makefile.am (ELIX_4_SOURCES, CHEWOUT_FILES, fpurge):
1509 Build it.
1510 * libc/stdio/Makefile.in: Regenerated.
1511 * libc/include/stdio.h (fpurge, _fpurge_r): New declarations.
1512 * libc/stdio/stdio.tex: Build documentation.
1513
4f462280
JJ
15142009-06-23 Jeff Johnston <jjohnstn@redhat.com>
1515
1516 * Makefile.am (MATHOBJS_IN_LIBC): Add s_fpclassify and
1517 sf_fpclassify as these are now used for infinity testing.
1518 * Makefile.in: Regenerated.
1519
ab9ef0fa
JJ
15202009-06-19 Joel Sherrill <joel.sherrill@oarcorp.com>
1521
1522 * libc/sys/rtems/machine/param.h: Change ALIGNBYTES
1523 so it can point to an aligned structure or double.
1524
e53c92a8
CV
15252009-06-18 Corinna Vinschen <corinna@vinschen.de>
1526
1527 * libc/locale/locale.c (loadlocale): Add handling of "@cjknarrow"
1528 modifier on _MB_CAPABLE targets. Add comment to explain. Improve
1529 documentation.
1530
a2c3c5da
JJ
15312009-06-17 Michael Eager <eager@eagercon.com>
1532
1533 * libc/include/pthread.h: Support XMK (Xilinx) BSP, add RTEMS to
1534 PTHREAD_MUTEX_NORMAL.
1535 * libc/include/sys/features.h: Same.
1536 * libc/include/sys/types.h: Same.
1537
999820f6 15382009-06-16 Corinna Vinschen <corinna@vinschen.de>
ce1eb6bb 1539
999820f6
CV
1540 * libc/include/locale.h (struct lconv): Add missing members required
1541 by POSIX.1-2008.
1542 * libc/locale/locale.c (lconv): Initialize new members to default
1543 values in "C" locale.
1544
1c5e84dd
CV
15452009-06-16 Corinna Vinschen <corinna@vinschen.de>
1546
1547 * libc/stdio/vfprintf.c (_VFPRINTF_R): Use actual length of
1548 radix char instead of assuming length 1.
1549 * libc/stdlib/gdtoa-gethex.c: Remove use of USE_LOCALE.
1550 (gethex): Allow multibyte decimal point.
1551 Fix compiler warnings due to different signedness of pointer types.
1552 * libc/stdlib/strtod.c: Remove use of USE_LOCALE.
1553 (_strtod_r): Allow multibyte decimal point.
1554 * libc/stdlib/wcstod.c (_wcstod_r): Evaluate correct wide char
1555 endptr position if the decimal point is a multibyte char.
1556
1a99b6f8
JJ
15572009-06-16 Craig Howland <howland@LGSInnovations.com>
1558
1559 * libc/ctype/local.h (__locale_charset): Add arguments to
1560 prototype
1561 * libc/stdlib/local.h (__locale_charset): Ditto.
1562
aa201fc9
JJ
15632009-06-16 Craig Howland <howland@LGSInnovations.com>
1564
1565 * libc/include/math.h: Simplify fpclassify, isinf, isnan, and signbit
1566 macros to remove un-necessary extension use. isinf and isnan also
1567 changed to use fpclassify. isfinite macro modified to run faster by
1568 only calling fpclassify once instead of possibly twice.
1569
5c1939c8
CV
15702009-06-09 Corinna Vinschen <corinna@vinschen.de>
1571
1572 * libc/ctype/tolower.c (tolower): Cast conversion result from
1573 mbtowc/wctomb to unsigned char to avoid negative return values.
1574 * libc/ctype/toupper.c (toupper): Ditto.
1575
c801709e
CV
15762009-06-03 IWAMURO Motonori <deenheart@gmail.com>
1577
1578 * libc/string/wcwidth.c: Optimize for speed.
1579
15802009-06-03 Corinna Vinschen <corinna@vinschen.de>
1581
1582 * libc/locale/locale.c (lc_ctype_cjk_lang): New static int.
1583 (loadlocale): In case of setting LC_CTYPE, set lc_ctype_cjk_lang
1584 to 1 if the language is "jp", "ko", or "zh", to 0 otherwise.
1585 (__locale_cjk_lang): New function.
1586 * libc/string/local.h (__locale_cjk_lang): Declare.
1587 * libc/string/wcwidth.c: Fix comments.
1588 (__wcwidth): Handle CJK Ambiguous Width characters according
1589 to setting returned by __locale_cjk_lang.
1590
9b09fb22
JJ
15912009-06-02 Richard Earnshaw <rearnsha@arm.com>
1592
1593 * libc/include/sys/config.h: Remove specification of _REENT_SMALL for
1594 thumb2.
1595
e17c0a23
CV
15962009-06-02 IWAMURO Motonori <deenheart@gmail.com>
1597
1598 * libc/ctype/jp2uc.c: Skip all definition if defined __CYGWIN__.
1599 (__jp2uc): Change the scope to static function.
1600 * libc/ctype/local.h (_jp2uc): Define as macro if defined __CYGWIN__.
1601 * libc/string/local.h (_jp2uc): Include ../ctype/local.h.
1602
0072a411
JJ
16032009-05-27 Neal H. Walfield <neal@gnu.org>
1604
1605 * libc/include/machine/setjmp.h (sigjmp_buf): Size according to
1606 _JBTYPE and the size of sigset_t.
1607
de8a5b78
JJ
16082009-05-15 Craig Howland <howland@LGSInnovations.com>
1609
1610 * configure.in: Add configuration test for long double type existing
1611 and set flag _HAVE_LONG_DOUBLE if true. Fix INIT_ARRAY (.init_array)
1612 and _LDBL_EQ_DBL tests to not link so that will work with
1613 cross-compilers.
1614 * configure: Regenerated.
1615 * Makefile.in: Ditto.
1616 * newlib.hin: Add _HAVE_LONG_DOUBLE flag.
1617 * libc/include/math.h: Change non-builtin defines for HUGE_VAL,
1618 HUGE_VALF, and HUGE_VALL to be constant expressions. Add definitions
d6438f13 1619 for the non-builtin case for INFINITY and NAN. Gate HUGE_VALL and
de8a5b78
JJ
1620 union __ldmath definitions with (new) _HAVE_LONG_DOUBLE.
1621 *libm/common/s_infconst.c: Change definitions to use values from
1622 float.h instead of non-so-portable integer forms. Mark as being
1623 deprecated (because now removed from math.h, are not used anywhere
1624 in Newlib, itself).
1625
098a75dc
CV
16262009-05-15 Corinna Vinschen <corinna@vinschen.de>
1627
1628 * libc/string/local.h: New file.
1629 * libc/string/wcswidth.c (wcswidth): Convert japanese wide
1630 characters to Unicode here. Handle surrogate pairs for UTF-16
1631 systems. Call __wcwidth rather than wcwidth.
1632 * libc/string/wcwidth.c: New implementation using Markus Kuhn's
1633 wcwidth implementation for Unicode.
1634 (bisearch): New static function.
1635 (__wcwidth): New function. Take wint_t rather than wchar_t as
1636 parameter to allow full Unicode handling on UTF-16 systems.
1637 Move old wcwidth implementation here for non-multibyte aware
1638 systems.
1639 (wcwidth): Convert japanese wide characters to Unicode here.
1640 Call __wcwidth rather than using iswprint/iswcntrl.
1641
1cf38d07
CV
16422009-05-14 Corinna Vinschen <corinna@vinschen.de>
1643
1644 * libc/ctype/local.h (JP_JIS, JP_SJIS, JP_EUCJP): Move definition
1645 to jp2uc.c.
1646 (__jp2uc): Remove declaration.
1647 (_jp2uc): Declare.
1648 * libc/ctype/jp2uc.c (JP_JIS, JP_SJIS, JP_EUCJP): Define.
1649 (__jp2uc): Remove Cygwin special case.
1650 (_jp2uc): New function. On Cygwin, just return c.
1651 * libc/ctype/iswalpha.c (iswalpha): Just call _jp2uc.
1652 * libc/ctype/iswblank.c (iswblank): Ditto.
1653 * libc/ctype/iswcntrl.c (iswcntrl): Ditto.
1654 * libc/ctype/iswprint.c (iswprint): Ditto.
1655 * libc/ctype/iswpunct.c (iswpunt): Ditto.
1656 * libc/ctype/iswspace.c (iswspace): Ditto.
1657 * libc/ctype/towlower.c (towlower): Ditto.
1658 * libc/ctype/towupper.c (towupper): Ditto.
1659
5900080d
JJ
16602009-05-13 Paul Brook <paul@codesourcery.com>
1661
1662 * libc/machine/arm/setjmp.S: Don't bother saving IP. Copy SP to
1663 IP before saving. Likewise when restoring.
1664
eba36c51
JJ
16652009-05-13 Paul Brook <paul@codesourcery.com>
1666
1667 * libc/machine/arm/setjmp.S: Add ARMv6-M implementation.
1668
136033a8
CV
16692009-05-13 Corinna Vinschen <corinna@vinschen.de>
1670
1671 * libc/locale/locale.c (setlocale): Don't build on Cygwin.
1672
ca3a040a
JJ
16732009-05-11 Craig Howland <howland@LGSInnovations.com>
1674
1675 * libm/machine/i386/f_llrint.c: Remove llrint() definition.
1676 * libm/machine/i386/f_llrintf.c: Remove llrintf() definition.
1677
57960809
NC
16782009-05-08 Nick Clifton <nickc@redhat.com>
1679
1680 * MAINTAINERS: Add myself as a maintainer for the MN10300 and to
1681 the write-after-approval list.
1682
2585eb18
AG
16832009-04-30 Anthony Green <green@moxielogic.com>
1684
1685 * MAINTAINERS: Add myself as moxie maintainer and to the
1686 write-after-approval list.
1687
82b77480
EB
16882009-04-30 Eric Blake <ebb9@byu.net>
1689
1690 Allow gcc warning for toupper even with extended charsets.
1691 * libc/include/ctype.h (toupper, tolower)
1692 [_MB_EXTENDED_CHARSETS_ISO]: Allow gcc warning when called with
1693 'char' even when we must call the function for correct behavior.
1694 [!_MB_EXTENDED_CHARSETS_ISO]: Fix regression in result type.
1695
bcde1294
JJ
16962009-04-24 Jeff johnston <jjohnstn@redhat.com>
1697
1698 * libc/stdio/fgetc.c: Make sure sfp lock is acquired before the
1699 file lock and released before the file lock to avoid a deadlock
1700 scenario.
1701 * libc/stdio/fgets.c: Ditto.
1702 * libc/stdio/fgetwc.c: Ditto.
1703 * libc/stdio/fgetws.c: Ditto.
1704 * libc/stdio/fread.c: Ditto.
1705 * libc/stdio/fseek.c: Ditto.
1706 * libc/stdio/getc.c: Ditto.
1707 * libc/stdio/getdelim.c: Ditto.
1708 * libc/stdio/gets.c: Ditto.
1709
35f31b6a
JJ
17102009-04-24 Jeff johnston <jjohnstn@redhat.com>
1711
1712 * configure.in: Add configuration test for long double equals dbl
1713 and set flag _LDBL_EQ_DBL if true.
1714 * configure: Regenerated.
1715 * newlib.hin: Add _LDBL_EQ_DBL flag.
1716 * libc/include/math.h: Use _LDBL_EQ_DBL flag instead of
1717 _HAVE_LDBL_MATH.
1718 * libc/include/stdlib.h: Use _LDBL_EQ_DBL flag instead of
1719 _HAVE_LDBL_STDLIB.
1720 * libc/common/local.h: Remove _LDBL_EQ_DBL flag setting.
1721 * libc/stdlib/local.h: Ditto.
1722
de194872
JJ
17232009-04-24 Joseph Myers <joseph@codesourcery.com>
1724
1725 * libc/include/stdint.h (UINTPTR_MAX): Define to __UINTPTR_MAX__
1726 if __UINTPTR_MAX__ defined.
1727
1335bf3c
EB
17282009-04-24 Eric Blake <ebb9@byu.net>
1729
190ccfc1
EB
1730 Be namespace clean in ctype.h.
1731 * libc/include/ctype.h (_tolower, _toupper, isalpha, isupper)
1732 (islower, isdigit, isxdigit, isspace, ispunct, isalnum)
1733 (isprint, isgraph, iscntrl, isblank, toupper, tolower)
1734 (isascii, toascii): Don't use 'c' as macro parameter name.
1735
1335bf3c
EB
1736 Trigger gcc warning if isFoo macros are called with plain char.
1737 * libc/include/ctype.h (isalpha, isupper, islower, isdigit)
1738 (isxdigit, isspace, ispunct, isalnum, isprint, isgraph)
1739 (iscntrl, isblank, toupper, tolower): Rewrite to let 'gcc -Wall'
1740 warn when user calls macro with a char argument.
1741
59218044
JJ
17422009-04-23 Mike Burgess <wizardsguild@earthlink.net>
1743
1744 * libc/string/strcasecmp.c: Optimized rewrite.
1745 * libc/string/strncasecmp.c: Fix description.
1746 * libc/string/strlwr.c: Avoid passing signed char to tolower.
1747 * libc/string/strupr.c: Avoid passing signed char to tolower.
1748
bbb9d4fd
JJ
17492009-04-23 Paul Brook <paul@codesourcery.com>
1750 Kazu Hirata <kazu@codesourcery.com>
1751
1752 * libc/stdlib/__atexit.c (__register_exitproc): Use weak reference
1753 to malloc. Allocate dynamically only if it is present.
1754 * libc/stdlib/__call_atexit.c (__call_exitprocs): Use weak
1755 reference to free. Call free only if it is present.
1756
2beb9fbb
JJ
17572009-04-22 Anthony Green <green@moxielogic.com>
1758
1759 * configure.host: Add moxie support.
1760 * libc/machine/configure.in: Add moxie support.
1761 * libc/machine/configure: Rebuilt.
1762 * libc/machine/moxie/aclocal.m4: New file.
1763 * libc/machine/moxie/configure: New file.
1764 * libc/machine/moxie/configure.in: New file.
1765 * libc/machine/moxie/Makefile.am: New file.
1766 * libc/machine/moxie/Makefile.in: New file.
1767 * libc/machine/moxie/setjmp.S: New file.
1768 * libc/include/machine/setjmp.h (_JBLEN): Define for moxie.
1335bf3c 1769 * libc/include/machine/ieeefp.h: Add moxie support.
2beb9fbb 1770
755b125b
CV
17712009-04-22 Kazu Hirata <kazu@codesourcery.com>
1772
1773 * libc/stdio/local.h (__chclass, __state_table, __action_table):
1774 Add extern to the declarations.
1775 * libc/stdlib/local.h (__iso_8859_conv, __cp_conv): Likewise.
1776
c2854522
CV
17772009-04-21 Corinna Vinschen <corinna@vinschen.de>
1778
1779 * libc/ctype/ctype_.c (_CTYPE_DATA_128_255): Rename from
1780 _CTYPE_DATA_128_256.
1781 * libc/ctype/ctype_cp.h: Split off all character class values for
1782 character 255 from the rest of the definitions.
1783 (__ctype_cp): Use the new definitions. Make sure that the table
1784 always contains 0 for EOF (-1).
1785 * libc/ctype/ctype_iso.h: Ditto.
1786
161e368a
JJ
17872009-04-21 Sandra Loosemore <sandra@codesourcery.com>
1788
1789 * libc/reent/impure.c (__sf_fake_stdin, __sf_fake_stdout)
1790 (__sf_fake_stderr): Declare locally with weak attribute.
1791
15b71e66
JJ
17922009-04-21 Mark Mitchell <mark@codesourcery.com>
1793
1794 * libc/include/_ansi.h: Move C++ defines to top of file.
1795 (_NOTHROW): New macro.
1796 (_EXFUN_NOTHROW): Likewise.
1797 * libc/include/stdlib.h (calloc): Declare with _EXFUN_NOTHROW.
1798 (free): Likewise.
1799 (malloc): Likewise.
1800 (realloc): Likewise.
1801 (_malloc_r): Likewise.
1802 (_callor_r): Likewise.
1803 (_free_r): Likewise.
1804 (_realloc_r): Likewise.
1805
bd5f0347
JJ
18062009-04-20 Jeff johnston <jjohnstn@redhat.com>
1807
1808 * libc/include/math.h: Change _LDBL_EQ_DBL flag usage to
1809 be _HAVE_LDBL_MATH.
1810 * libc/include/stdlib.h: Change _LDBL_EQ_DBL flag usage to
1811 be _HAVE_LDBL_STDLIB.
1812
1b8e360e
JJ
18132009-04-17 Jeff johnston <jjohnstn@redhat.com>
1814
1815 * libc/include/machine/ieeefp.h (_LDBL_EQ_DBL): Remove.
1816 * libc/stdlib/local.h (_LDBL_EQ_DBL): Add.
1817 * libc/stdlib/strtold.c: Include local.h.
1818 * libc/stdlib/wcstold.c: Likewise.
1819 * libm/common/atanl.c: Likewise.
1820 * libm/common/cosl.c: Likewise.
1821 * libm/common/sinl.c: Likewise.
1822 * libm/common/modfl.c: Likewise.
1823 * libm/common/frexpl.c: Likewise.
1824 * libm/common/tanhl.c: Likewise.
1825 * libm/common/tanl.c: Likewise.
1826 * libm/common/expm1l.c: Likewise.
1827 * libm/common/log1pl.c: Likewise.
1828 * libm/common/ceill.c: Likewise.
1829 * libm/common/fabsl.c: Likewise.
1830 * libm/common/floorl.c: Likewise.
1831 * libm/common/acosl.c: Likewise.
1832 * libm/common/asinl.c: Likewise.
1833 * libm/common/atan2l.c: Likewise.
1834 * libm/common/coshl.c: Likewise.
1835 * libm/common/expl.c: Likewise.
1836 * libm/common/fmodl.c: Likewise.
1837 * libm/common/hypotl.c: Likewise.
1838 * libm/common/ldexpl.c: Likewise.
1839 * libm/common/log10l.c: Likewise.
1840 * libm/common/logl.c: Likewise.
1841 * libm/common/powl.c: Likewise.
1842 * libm/common/sqrtl.c: Likewise.
1843 * libm/common/copysignl.c: Likewise.
1844 * libm/common/ilogbl.c: Likewise.
1845 * libm/common/nanl.c: Likewise.
1846 * libm/common/cbrtl.c: Likewise.
1847 * libm/common/asinhl.c: Likewise.
1848 * libm/common/nextafterl.c: Likewise.
1849 * libm/common/rintl.c: Likewise.
1850 * libm/common/scalbnl.c: Likewise.
1851 * libm/common/exp2l.c: Likewise.
1852 * libm/common/fdiml.c: Likewise.
1853 * libm/common/fmal.c: Likewise.
1854 * libm/common/fmaxl.c: Likewise.
1855 * libm/common/fminl.c: Likewise.
1856 * libm/common/lrintl.c: Likewise.
1857 * libm/common/lroundl.c: Likewise.
1858 * libm/common/nearbyintl.c: Likewise.
1859 * libm/common/remquol.c: Likewise.
1860 * libm/common/roundl.c: Likewise.
1861 * libm/common/scalblnl.c: Likewise.
1862 * libm/common/truncl.c: Likewise.
1863 * libm/common/acoshl.c: Likewise.
1864 * libm/common/atanhl.c: Likewise.
1865 * libm/common/erfcl.c: Likewise.
1866 * libm/common/erfl.c: Likewise.
1867 * libm/common/lgammal.c: Likewise.
1868 * libm/common/remainderl.c: Likewise.
1869 * libm/common/tgammal.c: Likewise.
1870 * libm/common/sinhl.c: Likewise.
1871 * libm/common/llroundl.c: Likewise.
1872 * libm/common/llrintl.c: Likewise.
1873 * libm/common/local.h: New file with _LDBL_EQ_DBL macro.
1874
ad9bb48f
JJ
18752009-04-17 Ken Werner <ken.werner@de.ibm.com>
1876
1877 * libc/include/machine/ieeefp.h: _LDBL_EQ_DBL check fixed.
1878 * libc/include/math.h (llrintl): Declare.
1879 * libm/common/llrintl.c: New File.
1880 * libm/common/Makefile.am: New File added.
1881 * libm/common/Makefile.in: Regenerate.
1882
34d6b436
JJ
18832009-04-17 Ken Werner <ken.werner@de.ibm.com>
1884
1885 * libc/configure.in: Change AC_TRY_COMPILE to AC_TRY_COMMAND to
1886 avoid executable test.
1887 * libc/configure: Regenerate.
1888
9c4032e7
JJ
18892009-04-17 Jeff johnston <jjohnstn@redhat.com>
1890
1891 * configure.in: Remove _HAVE_ARRAY_ALIASING check.
1892 * configure: Regenerated.
e3228f89 1893 * Makefile.in: Regenerated.
9c4032e7
JJ
1894 * newlib.hin: Remove _HAVE_ARRAY_ALIASING flag.
1895 * libc/ctype/ctype_.c: Do not check for _HAVE_ARRAY_ALIASING.
1896 * libm/configure.in: Change AC_TRY_COMPILE to AC_TRY_COMMAND to
1897 avoid executable test.
1898 * libm/configure: Regenerated.
1899
c4c8a3fd
JJ
19002009-04-16 Jeff johnston <jjohnstn@redhat.com>
1901
1902 * libc/misc/init.c (__libc_fini_array): Process fini_array in
1903 reverse order as compliant with the ELF specification.
1904
f22a7456
JJ
19052009-04-16 Ken Werner <ken.werner@de.ibm.com>
1906
1907 * libc/machine/spu/Makefile.am: Add new File.
1908 * libc/machine/spu/Makefile.in: Regenerate.
1909 * libc/machine/spu/fdopen.c: New file.
1910
34c5e58e
JJ
19112009-04-16 Hans-Peter Nilsson <hp@axis.com>
1912
1913 * libc/include/stdint.h (INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX): Define.
1914
65f414dc
JJ
19152009-04-16 Ken Werner <ken.werner@de.ibm.com>
1916
1917 * libm/libm.texinfo: Add long double function support chapter.
1918 * libc/include/machine/ieeefp.h: Add _LDBL_EQ_DBL define.
1919 * libc/include/stdlib.h: Include <machine/ieeefp.h>.
1920 (strtold, wcstold): Declare.
1921 * libc/stdlib/strtold.c: New File.
1922 * libc/stdlib/wcstold.c: Likewise.
1923 * libc/configure.in: Add long double check.
1924 * libc/configure: Regenerate.
1925 * libc/stdlib/Makefile.am: Add strtold.c and wcstold.c.
1926 * libc/stdlib/Makefile.in: Regenerate.
1927 * libc/include/math.h (atanl, cosl, sinl, tanl, tanhl): Declare.
1928 (frexpl, modfl, ceill, fabsl, floorl, log1pl, expm1l, acosl): Ditto.
1929 (asinl, atan2l, coshl, sinhl, expl, ldexpl, logl, log10l, powl): Ditto.
1930 (sqrtl, fmodl, hypotl, copysignl, nanl, ilogbl, asinhl, cbrt): Ditto.
1931 (nextafterl, rintl, scalbnl, exp2l, scalblnl, tgammal): Ditto.
1932 (nearbyintl, lrintl, llrintl, roundl, lroundl, llround): Ditto.
1933 (llroundl, truncl, remquol, fdiml, fmaxl, fminl, fmal, acoshl): Ditto.
1934 (atanhl, remainderl, lgammal, erfl, erfcl): Ditto.
1935 * libm/common/atanl.c: New File.
1936 * libm/common/cosl.c: Likewise.
1937 * libm/common/sinl.c: Likewise.
1938 * libm/common/modfl.c: Likewise.
1939 * libm/common/frexpl.c: Likewise.
1940 * libm/common/tanhl.c: Likewise.
1941 * libm/common/tanl.c: Likewise.
1942 * libm/common/expm1l.c: Likewise.
1943 * libm/common/log1pl.c: Likewise.
1944 * libm/common/ceill.c: Likewise.
1945 * libm/common/fabsl.c: Likewise.
1946 * libm/common/floorl.c: Likewise.
1947 * libm/common/acosl.c: Likewise.
1948 * libm/common/asinl.c: Likewise.
1949 * libm/common/atan2l.c: Likewise.
1950 * libm/common/coshl.c: Likewise.
1951 * libm/common/expl.c: Likewise.
1952 * libm/common/fmodl.c: Likewise.
1953 * libm/common/hypotl.c: Likewise.
1954 * libm/common/ldexpl.c: Likewise.
1955 * libm/common/log10l.c: Likewise.
1956 * libm/common/logl.c: Likewise.
1957 * libm/common/powl.c: Likewise.
1958 * libm/common/sqrtl.c: Likewise.
1959 * libm/common/copysignl.c: Likewise.
1960 * libm/common/ilogbl.c: Likewise.
1961 * libm/common/nanl.c: Likewise.
1962 * libm/common/cbrtl.c: Likewise.
1963 * libm/common/asinhl.c: Likewise.
1964 * libm/common/nextafterl.c: Likewise.
1965 * libm/common/rintl.c: Likewise.
1966 * libm/common/scalbnl.c: Likewise.
1967 * libm/common/exp2l.c: Likewise.
1968 * libm/common/fdiml.c: Likewise.
1969 * libm/common/fmal.c: Likewise.
1970 * libm/common/fmaxl.c: Likewise.
1971 * libm/common/fminl.c: Likewise.
1972 * libm/common/lrintl.c: Likewise.
1973 * libm/common/lroundl.c: Likewise.
1974 * libm/common/nearbyintl.c: Likewise.
1975 * libm/common/remquol.c: Likewise.
1976 * libm/common/roundl.c: Likewise.
1977 * libm/common/scalblnl.c: Likewise.
1978 * libm/common/truncl.c: Likewise.
1979 * libm/common/acoshl.c: Likewise.
1980 * libm/common/atanhl.c: Likewise.
1981 * libm/common/erfcl.c: Likewise.
1982 * libm/common/erfl.c: Likewise.
1983 * libm/common/lgammal.c: Likewise.
1984 * libm/common/remainderl.c: Likewise.
1985 * libm/common/tgammal.c: Likewise.
1986 * libm/common/sinhl.c: Likewise.
1987 * libm/common/llroundl.c: Likewise.
1988 * libm/configure.in: Add long double check.
1989 * libm/configure: Regenerate.
1990 * libm/common/Makefile.am: Add new files.
1991 * libm/common/Makefile.in: Regenerate.
1992
a29a7693
CV
19932009-04-09 Corinna Vinschen <corinna@vinschen.de>
1994
1995 * libc/ctype/ctype_.c (_CTYPE_DATA_0_127): Remove _B flag from TAB.
1996 * libc/ctype/ctype_cp.h: Mark non-cased letters in tables for codepages
1997 720, 862, 874, 1255, and 1256 to _U|_L. Fix a couple of incorrect
1998 class mappings.
1999 * libc/ctype/ctype_iso.h: Mark non-cased letters in ISO-8859 tables
2000 6, 8, and 11 to _U|_L. Fix a couple of incorrect class mappings.
2001 * libc/ctype/isblank.c (isblank): Special case TAB.
2002 * libc/ctype/islower.c (islower): Check explicitely for _L flag only
2003 in (_U|_L).
2004 * libc/ctype/isupper.c (isupper): Ditto, but check for _U flag.
2005 * libc/include/ctype.h (islower): Same in macro.
2006 (isupper): Ditto.
2007 (isblank): Special case TAB. Redefine macro for GCC only.
2008
9b26525e
CV
20092009-04-09 Corinna Vinschen <corinna@vinschen.de>
2010
2011 * libc/stdlib/local.h (__mbtowc): Declare extern.
2012 (__wctomb): Ditto.
2013
20142009-04-09 Corinna Vinschen <corinna@vinschen.de>
2015
2016 * libc/stdlib/mbctype.h (_iseucjp1): Like _iseucjp, but also
2017 recognizes 0x8e and 0x8f lead bytes.
2018 (_iseucjp2): Rename from _iseucjp.
2019 * libc/stdlib/mbtowc_r.c (__eucjp_mbtowc): Convert JIS-X-0212
2020 triplebyte sequences as well.
2021 * libc/stdlib/wctomb_r.c (__eucjp_wctomb): Convert to JIS-X-0212
2022 triplebyte sequences as well.
2023
712789c7
JJ
20242009-04-08 Ken Werner <ken.werner@de.ibm.com>
2025
2026 * configure.in: Add square brackets for the array aliasing conftest.
2027 * configure: Regenerate.
2028
3d66f2c9
JJ
20292009-04-06 Mike Burgess <wizardsguild@earthlink.net>
2030
2031 * libc/string/strncasecmp.c: Optimized rewrite.
2032
43b1cfec
JJ
20332009-04-06 Ken Werner <ken.werner@de.ibm.com>
2034
2035 * libc/include/sys/features.h: Undefine _POSIX_TIMERS for spu.
2036 * libc/include/machine/time.h (nanosleep): Declare.
2037
2f1769f4
CV
20382009-04-06 Corinna Vinschen <corinna@vinschen.de>
2039
2040 * libc/locale/locale.c (loadlocale): Set mbc_max to 3 for EUCJP.
2041
80317fe5
CV
20422009-04-04 Corinna Vinschen <corinna@vinschen.de>
2043
2044 * libc/stdlib/wcstombs.c: Fix datatypes in documentation.
2045
56c5c08a
CV
20462009-04-04 Corinna Vinschen <corinna@vinschen.de>
2047
2048 * libc/include/stdio.h (_ELIDABLE_INLINE): Move definition from here...
2049 * libc/include/_ansi.h (_ELIDABLE_INLINE): ..to here.
2050
d74c61c2
JJ
20512009-04-03 Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
2052
2053 * libc/include/stdio.h [__SCLE] (__sgetc_r): Prototype before define
2054 to avoid a warning with -Wmissing-prototypes.
2055
0463fc62
JJ
20562009-04-03 Ken Werner <ken.werner@de.ibm.com>
2057
2058 * libc/machine/spu/mmap_ea.c (mmap_ea): Check length argument.
2059
816c3d29
JJ
20602009-04-03 Ken Werner <ken.werner@de.ibm.com>
2061
2062 * libc/machine/spu/sys/linux_syscalls.h: include <sys/types.h>
2063 (linux_getpid, linux_gettid): Declare.
2064
f42552e9
JJ
20652009-04-03 Ken Werner <ken.werner@de.ibm.com>
2066
2067 * libc/machine/spu/spu-gmon.c: Tweaks to support simultaneous SPU
2068 profiling.
2069
823f6f66
JJ
20702009-04-03 Ken Werner <ken.werner@de.ibm.com>
2071
2072 * libc/include/math.h: Remove duplicate copysign prototype.
2073 Fix __math_68881 define typo. Guard functions of the rint family.
2074
8ca79ad6
JJ
20752009-04-03 Craig Howland <howland@LGSInnovations.com>
2076
2077 * libm/common/s_llrint.c: New file, implementing llrint().
2078 * libm/common/sf_llrint.c: New file, implementing llrintf().
2079 * libm/common/Makefile.am: Add s_llrint.c (src); sf_llrint.c (fsrc).
2080 * libm/common/Makefile.in: Regenerate.
2081
72c79be1
CV
20822009-04-02 Corinna Vinschen <corinna@vinschen.de>
2083
2084 * libc/ctype/ctype_c.c: Move inclusion of ctype_iso.h and
2085 ctype_cp.h out of ALLOW_NEGATIVE_CTYPE_INDEX case.
2086 (__ctype_ptr__): Constify in !_MB_CAPABLE case. Otherwise,
2087 de-constify in !ALLOW_NEGATIVE_CTYPE_INDEX case, too. Add comment.
2088 (__set_ctype): Set __ctype_ptr__ pointer according to definition
2089 of ALLOW_NEGATIVE_CTYPE_INDEX.
2090 * libc/include/ctype.h (__ctype_ptr__): Constify in !_MB_CAPABLE case.
2091
4bc42c05
CV
20922009-03-31 Corinna Vinschen <corinna@vinschen.de>
2093
2094 * libc/ctype/Makefile.am: Remove _tolower.c and _toupper.c
2095 source files. Add a dependency rule for ctype_o to note
2096 changes in ctype_iso.h and ctype_cp.h.
2097 * libc/ctype/Makefile.in: Regenerate.
2098 * libc/ctype/_tolower.c: Remove file.
2099 * libc/ctype/_toupper.c: Remove file.
2100 * libc/ctype/ctype_.c: Make sure ALLOW_NEGATIVE_CTYPE_INDEX
2101 is always defined on Cygwin.
2102 (_ctype_b): Don't make `static const' on Cygwin.
2103 (ctype_iso.h): Include if _MB_EXTENDED_CHARSETS_ISO is set.
2104 (ctype_cp.h): Include if _MB_EXTENDED_CHARSETS_WINDOWS is set.
2105 (__ctype_ptr): Drop definition.
2106 (__ctype_ptr__): De-constify. Mark as __EXPORT symbol.
2107 (_ctype_): Add Cygwin-specifc asm define.
2108 (__set_ctype): New function to set __ctype_ptr__ according to
2109 current charset.
2110 * libc/ctype/ctype_cp.h: New file containing Windows codepage
2111 specific character class tables.
2112 * libc/ctype/ctype_iso.h: New file containing ISO-8859-x
2113 specific character class tables.
2114 * libc/ctype/tolower.c (tolower): Reimplement to support any singlebyte
2115 charset if one of the extended charsets is enabled.
2116 * libc/ctype/toupper.c (toupper): Ditto.
2117 * libc/include/ctype.h (_tolower): Define as macro per POSIX.
2118 (_toupper): Ditto.
2119 (__ctype_ptr__): De-constify.
2120 (toupper): Disable macro on systems supporting extended charsets.
2121 (tolower): Ditto.
2122 * libc/include/sys/config.h (__EXPORT): Define empty if not defined.
2123 * libc/locale/locale.c (__mb_cur_max): Mark as __EXPORT symbol.
2124 (__set_ctype): Declare unconditionally.
2125 (loadlocale): Remove __CYGWIN__ guard around __set_ctype call.
2126
e916d8ec
CV
21272009-03-26 Corinna Vinschen <corinna@vinschen.de>
2128
2129 * libc/locale/locale.c (loadlocale): Revert to charset "GBK" instead
2130 of "GB2312". Fix documentation accordingly.
2131
7ca98b49
CV
21322009-03-26 Corinna Vinschen <corinna@vinschen.de>
2133
2134 * libc/ctype/ctype_.c (_CTYPE_DATA_0_127): Mark TAB as blank character.
2135 * libc/ctype/isblank.c: Replace hardcoded test with test for having _B
2136 marker in ctype array.
2137 * libc/include/ctype.h (isblank): Add macro.
2138
139f923b
JJ
21392009-03-25 Craig Howland <howland@LGSInnovations.com>
2140
2141 * libc/include/math.h: (llround, llroundf): Declare.
2142 * libm/common/s_llround.c: New file, implementing llround().
2143 * libm/common/sf_llround.c: New file, implementing llroundf().
2144 * libm/common/sf_lround.c: Remove spurious cast in _DOUBLE_IS_32BITS
2145 version of function.
2146 * libm/common/sf_lrint.c: Ditto.
2147 * libm/common/sf_logb.c: Corrected return for subnormal argument
2148 by replacing existing function with a version created from sf_ilogb.c.
2149 * libm/common/s_logb.c: Ditto, except starting point s_ilogb.c. Also
2150 added documentation for logb() and logbf().
2151 * libm/common/s_signbit.c: Add signbit() documentation.
2152 * libm/common/s_log2.c: Update return values to match what w_log2.c has,
2153 since log2 uses log(); add note about being derived instead of direct.
2154 * libm/common/sf_fma.c: Add casts to attempt to get correct results,
2155 as well as comments pointing out problems with the implementation.
2156 * libm/common/s_fma.c: Add fma() and fmaf() documentation.
2157 * libm/common/sf_remquo.c: Incorrect quotient returns for large values
2158 corrected by discarding existing function and replacing with Sun
2159 verion, with some enhancements.
2160 * libm/common/s_remquo.c: Ditto. Add remquo() and remquof()
2161 documentation.
2162 * libm/common/s_fmax.c: Add fmax() and fmaxf() documentation.
2163 * libm/common/s_fmin.c: Add fmin() and fminf() documentation.
2164 * libm/common/s_fdim.c: Return NAN for NAN arg, add fdim() and fdimf()
2165 documentation.
2166 * libm/common/sf_fdim.c: Return NAN for NAN arg, HUGE_VALF for inf arg.
2167 * libm/common/s_trunc.c: Add trunc() and truncf() documentation.
2168 * libm/common/s_rint.c: Add rint() and rintf() documentation.
2169 * libm/common/s_round.c: Add round() and roundf() documentation.
2170 * libm/common/s_scalbn.c: Add scalbln() and scalblnf() documentation.
2171 * libm/common/s_infinity.c: Add infinity() and infinityf()
2172 documentation.
2173 * libm/common/s_lround.c: Add lround(), lroundf(), llround(), and
2174 llroundf() documentation.
2175 * libm/common/s_lrint.c: Add lrint(), lrintf(), llrint(), and llrintf()
2176 documentation.
2177 * libm/common/isgreater.c: New file for documenting math.h function-like
2178 macros isgreater(), isgreaterequal(), isless(), islessequal(),
2179 islessgreater(), and isunordered().
2180 * libm/common/s_isnan.c: Add documentation for function-like macros
2181 fpclassify(), isfinite(), isinf(), isnan(), and isnormal().
2182 * libm/common/s_nearbyint.c: Add nearbyint() and nearbyintf()
2183 documentation.
1335bf3c 2184 * libm/common/Makefile.am: Add s_llround.c (src); sf_llround.c (fsrc);
139f923b
JJ
2185 s_fdim.def, s_fma.def, s_fmax.def, s_fmin.def,
2186 s_logb.def, s_lrint.def, s_lround.def, s_nearbyint.def, s_remquo.def,
34c5e58e
JJ
2187 s_rint.def, s_round.def, s_signbit.def, s_trunc.def, and
2188 isgreater.def (chobj);
139f923b
JJ
2189 re-name all existing chew files (chobj) to match source file base
2190 names (put in underscores), delete all special targets for chew files
2191 (leaving all to be generated by rule).
2192 * libm/common/Makefile.in: regenerate.
2193 * libm/math/w_exp2.c: Add "base 2" to documentation description (and
2194 delete TRAD_SYNOPSIS).
2195 * libm/math/w_gamma.c: Add tgamma() and tgammaf() documentation, along
2196 with some history behind the function names.
2197 * libm/math/math.tex: Add includes for newly-added documentation (see
2198 .def additions to common/Makefile.am and math/Makefile.am in this
2199 ChangeLog list), adjusted existing .def file names to match source file
2200 base names (added underscores); add mention of HUGE_VALF; rename
2201 "Version of library" section to "Error Handling" and add some text
2202 about floating-point exception; added section "Standards Compliance And
2203 Portability".
2204 * libm/math/Makefile.am: Add w_exp2.def (chobj);
2205 re-name all existing chew files (chobj) to match source file base
2206 names, delete all special targets for chew files (leaving all to be
2207 generated by rule).
2208 * libm/math/Makefile.in: regenerated
2209 * doc/makedoc.c: Change silent ignoring of commands < 5 characters
2210 to a failure when reading macro file for commands < 4 characters;
2211 add -v (verbose) option for printing some debugging information;
2212 get rid of spurious translation of "@*" to "*" (no source files used @*,
2213 so no existing doc pages were affected); clean up some compiler
2214 warnings.
2215 * doc/doc.str: add BUGS and SEEALSO sections (to match texi2pod.pl
2216 which has them); Remove ITEM command (redundant with makedoc built-in
2217 "o", not used in any present source file so nothing is lost, anyway).
2218 * HOWTO: New file to hold information for maintainers regarding how
2219 to do things. Initial sections on documentation and ELIX levels.
2220
baea11cd
JJ
22212009-03-25 Richard Earnshaw <rearnsha@arm.com>
2222
2223 * libc/machine/arm/strcmp.c (strcmp_unaligned): Correctly
2224 detect the nul-byte in a big-endian string.
2225
0b211e34
JJ
22262009-03-25 Jeff Johnston <jjohnstn@redhat.com>
2227
2228 * libc/string/wcsdup.c: Fix documentation error.
2229 * libc/string/Makefile.am: Fix CHEWOUT files to contain
2230 wcsdup.def rather than wcsdup.
2231 * libc/string/Makefile.in: Regenerated.
2232
6396c888
CV
22332009-03-25 Corinna Vinschen <corinna@vinschen.de>
2234
2235 * libc/locale/locale.c (loadlocale): Only change __wctomb and __mbtowc
2236 pointers if category is LC_CTYPE.
2237
790d0a4c
CV
22382009-03-25 Corinna Vinschen <corinna@vinschen.de>
2239
2240 * libc/locale/locale.c (loadlocale): Rename charset "GBK" to
2241 "GB2312". Fix documentation accordingly.
2242
4e4ff45c
CV
22432009-03-24 Corinna Vinschen <corinna@vinschen.de>
2244
2245 * libc/locale/locale.c (loadlocale): Rename charset "CP949" to
2246 "eucKR". Fix documentation accordingly.
2247
62e51f09
CV
22482009-03-24 Corinna Vinschen <corinna@vinschen.de>
2249
2250 * libc/locale/locale.c (loadlocale): Allow charset starting with 'e'
2251 for "eucJP" charset support.
2252
dd15241d
JJ
22532009-03-24 Jeff Johnston <jjohnstn@redhat.com>
2254
2255 * libc/include/sys/errno.h: Move EFTYPE to general usage because
2256 it is used in libc/search.
2257
28186e81
CV
22582009-03-24 Corinna Vinschen <corinna@vinschen.de>
2259
2260 * libc/ctype/iswalpha.c: Handle all wchar_t as unicode on
2261 _MB_CAPABLE systems.
2262 * libc/ctype/iswblank.c: Ditto.
2263 * libc/ctype/iswcntrl.c: Ditto.
2264 * libc/ctype/iswprint.c: Ditto.
2265 * libc/ctype/iswpunct.c: Ditto.
2266 * libc/ctype/iswspace.c: Ditto.
2267 * libc/ctype/jp2uc.c (__jp2uc): On Cygwin, just return c.
2268 Explain why.
2269 * libc/ctype/towlower.c: Ditto.
2270 * libc/ctype/towupper.c: Ditto.
2271 * libc/include/sys/config.h: Define _MB_EXTENDED_CHARSETS_ISO
2272 and _MB_EXTENDED_CHARSETS_WINDOWS if _MB_EXTENDED_CHARSETS_ALL is
2273 defined. Define _MB_EXTENDED_CHARSETS_ALL on Cygwin only for now.
2274 * libc/include/sys/reent.h (struct _reent): Mark _current_category
2275 and _current_locale as unused.
2276 * libc/locale/locale.c: Add new charset support to documentation.
2277 Include ../stdio/local.h from here.
2278 (lc_ctype_charset): Set to "ASCII" by default.
2279 (lc_message_charset): Ditto.
2280 (_setlocale_r): Don't set _current_category and _current_locale.
2281 (loadlocale): Add Cygwin codepage support. On _MB_CAPABLE
2282 systems, set __mbtowc and __wctomb function pointers to function
2283 corresponding with current charset. Don't allow non-existant
2284 ISO-8859-12 charset. Add support for Windows singlebyte codepages.
2285 On Cygwin, add support for GBK, CP949, and BIG5. On Cygwin,
2286 call __set_ctype() in case the catorgy is LC_CTYPE. Don't set
2287 _current_category and _current_locale.
2288 * libc/stdlib/Makefile.am (GENERAL_SOURCES): Add sb_charsets.c.
2289 * libc/stdlib/Makefile.in: Regenerate.
2290 * libc/stdlib/local.h: Add prototype for __locale_charset.
2291 Add prototypes for __mbtowc and __wctomb pointers.
2292 Add prototypes for charset-specific _wctomb_r and _mbtowc_r
2293 functions.
2294 Declare tables and functions from sb_charsets.c.
2295 * libc/stdlib/mbtowc_r.c (__mbtowc): Define. Set to __ascii_mbtowc
2296 by default.
2297 (_mbtowc_r): Just call __mbtowc from here.
2298 (__ascii_mbtowc): New function.
2299 (__iso_mbtowc): New function.
2300 (__cp_mbtowc): New function.
2301 (__utf8_mbtowc): New function.
2302 (__sjis_mbtowc): New function. Disable on Cygwin.
2303 (__eucjp_mbtowc): New function. Disable on Cygwin.
2304 (__jis_mbtowc): New function. Disable on Cygwin.
2305 * libc/stdlib/sb_charsets.c: New file, adding singlebyte to UTF
2306 conversion tables for all ISO and CP charsets.
2307 (__iso_8859_index): New function.
2308 (__cp_index): New function.
2309 * libc/stdlib/wctomb_r.c (__wctomb): Define. Set to __ascii_wctomb
2310 by default.
2311 (_wctomb_r): Just call __wctomb from here.
2312 (__ascii_wctomb): New function.
2313 (__utf8_wctomb): New function.
2314 (__sjis_wctomb): New function. Disable on Cygwin.
2315 (__eucjp_wctomb): New function. Disable on Cygwin.
2316 (__jis_wctomb): New function. Disable on Cygwin.
2317 (__iso_wctomb): New function.
2318 (__cp_wctomb): New function.
2319
4d5112e2
JJ
23202009-03-23 Richard Earnshaw <rearnsha@arm.com>
2321
2322 * libc/machine/arm/strcmp.c (strcmp): Treat char as unsigned.
2323
9accf06e
CV
23242009-03-23 Corinna Vinschen <corinna@vinschen.de>
2325
2326 * libc/locale/locale.c (loadlocale): Fix typo in language and
2327 territory evaluation.
2328
e8846923
JJ
23292009-03-20 Jeff Johnston <jjohnstn@redhat.com>
2330
2331 * libc/include/sys/errno.h: Protect various non-standard errnos
2332 with either __LINUX_ERRNO_EXTENSIONS__ or __CYGWIN__.
2333 * libc/include/sys/config.h[__CYGWIN__]: Define
2334 __LINUX_ERRNO_EXTENSIONS__.
2335
360dc06f
CV
23362009-03-19 Corinna Vinschen <corinna@vinschen.de>
2337
2338 * libc/stdlib/mbtowc_r.c (_mbtowc_r): Return EILSEQ in case of an
2339 invalid character sequence.
2340
2341 * libc/stdlib/mbtowc_r.c (_mbtowc_r): Fix compiler warning due to
2342 missing declaration of __locale_charset.
2343 * libc/stdlib/wctomb_r.c (_wctomb_r): Ditto.
2344
d57ff5a8
JJ
23452009-03-18 Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
2346
2347 * libm/common/s_log2.c: New file.
2348 * libm/common/sf_log2.c: Ditto.
2349 * libm/common/Makefile.am: Add s_log2.c and sf_log2.c.
2350 * libm/common/Makefile.in: Regenerated.
2351 * libc/include/math.h: Add log2 and log2f function prototypes.
2352
d99179db
CV
23532009-03-17 Corinna Vinschen <corinna@vinschen.de>
2354
2355 * libc/stdlib/mbstowcs_r.c (_mbstowcs_r): Handle NULL destination
2356 string correctly.
2357
d7011865
JJ
23582009-03-16 Mark Mitchell <mark@codesourcery.com>
2359
2360 * libc/machine/arm/strlen.c (strlen): Fix defect in Thumb-2 mode.
2361
23622009-03-16 Richard Earnshaw <rearnsha@arm.com>
2363
2364 * libc/machine/arm/strlen.c (strlen): Correctly detect
2365 end-of-string.
2366 * libc/machine/arm/strcpy.c (strcpy): Likewise.
2367 * libc/machine/arm/strcmp.c (strcmp, strcmp_unaligned): Likewise.
2368
044af76e
CV
23692009-03-15 Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
2370
2371 * libc/include/sys/errno.h (ESTRPIPE): Define.
2372 * libc/string/strerror.c (strerror): Decode it.
2373
159a17c8
CV
23742009-03-15 Corinna Vinschen <corinna@vinschen.de>
2375
2376 * libc/include/wchar.h (wcsdup, _wcsdup_r): Declare.
2377 * libc/string/Makefile.am: Add wcsdup.c.
2378 * libc/string/Makefile.in: Regenerate.
2379 * libc/string/strings.tex: Add wcsdup documentation reference.
2380 * libc/string/wcsdup.c: New file.
2381
f03b7b10
CV
23822009-03-14 Corinna Vinschen <corinna@vinschen.de>
2383
2384 * libc/include/stdlib.h (_mkstemp_r, _mktemp_r): Move out of
2385 !_REENT_ONLY section.
2386
71675a39
CV
23872009-03-14 Corinna Vinschen <corinna@vinschen.de>
2388
2389 * libc/include/stdio.h (_mkstemp_r, _mktemp_r): Move declarations
2390 to stdlib.h.
2391 * libc/include/stdlib.h (mktemp, _mktemp_r): Warn when using.
2392 * libc/stdio/mktemp.c: Explain the security risk when using
2393 mktemp.
2394
d75c0f75
CV
23952009-03-12 Craig Howland <howland@LGSInnovations.com>
2396
2397 * libc/time/time.tex (wcsftime.def): Include.
2398 * libc/time/wcsftime.c: Clean up documentation a little.
2399
14a164a7
CV
24002009-03-12 Craig Howland <howland@LGSInnovations.com>
2401
2402 * libc/stdio/swscanf.c: Some documentation corrections.
2403
24042009-03-12 Craig Howland <howland@LGSInnovations.com>
4a825d41
CV
2405
2406 * libc/stdio/swprintf.c (_swprintf_r, swprintf):
2407 correct how terminating L'\0' is added;
2408 change return to match standard for when output does not fit;
2409 some corrections and enhancements to the docs.
2410 * libc/stdio/vswprintf.c (_vswprintf_r): ditto, except for docs.
2411 * libc/stdio/vfwprintf.c: some corrections to the docs and some
2412 enhancements to comments. (No code changes.)
2413 * libc/time/strftime.c: Correct some problems that made wcsftime()
2414 not work correctly: work properly with swprintf returns that are
2415 different from snprintf returns, correct test vector lengths for
2416 when sizeof(wchar_t) > 1.
2417 * libc/stdio/sprintf.c: Some documentation and comment corrections and
2418 enhancements to match those done to swprintf.c.
2419
dc48005c
CV
24202009-03-11 Corinna Vinschen <corinna@vinschen.de>
2421
2422 * libc/include/wchar.h (wcscasecmp, wcsncasecmp): Declare.
2423 * libc/string/Makefile.am: Add wcscasecmp.c, wcsncasecmp.c
2424 * libc/stdio/Makefile.in: Regenerate.
2425 * libc/string/strings.tex: Add new documentation references.
2426 * libc/string/wcscasecmp.c: New file.
2427 * libc/string/wcsncasecmp.c: New file.
2428
24292009-03-11 Corinna Vinschen <corinna@vinschen.de>
d0b85c15
CV
2430
2431 * libc/include/wchar.h (fwscanf, swscanf, vfwscanf, vswscanf, vwscanf,
2432 wscanf): Declare.
2433 (_fwscanf_r, _swscanf_r, _vfwscanf_r, _vswscanf_r, _vwscanf_r,
2434 _wscanf_r): Declare.
2435 * libc/stdio/Makefile.am: Add new wscanf files.
2436 * libc/stdio/Makefile.in: Regenerate.
2437 * libc/stdio/fwscanf.c: New file.
2438 * libc/stdio/local.h (__svfwscanf_r, __ssvfwscanf_r, __svfiwscanf_r,
2439 __ssvfiwscanf_r): Declare.
2440 * libc/stdio/stdio.tex: Add new documentation references.
2441 * libc/stdio/swscanf.c: New file.
2442 * libc/stdio/vfwscanf.c: New file.
2443 * libc/stdio/vswscanf.c: New file.
2444 * libc/stdio/vwscanf.c: New file.
2445 * libc/stdio/wscanf.c: New file.
2446
2447 * libc/stdio/vfscanf.c (_sungetc_r): Make externaly available. Only
2448 define if INTEGER_ONLY is defined. Declare otherwise.
2449 (__ssrefill_r): Ditto.
2450 (_sfread_r): Ditto.
2451
2452 Remove static eofread/eofread1 functions and use __seofread
2453 function instead, throughout.
2454 * libc/stdio/local.h (__seofread): Declare.
2455 * libc/stdio/stdio.c (__seofread): Define.
2456
2457 * libc/stdio/fgetwc.c (__fgetwc): Fix compiler warning.
2458 * libc/stdio/fgetws.c (_fgetws_r): Ditto.
2459 * libc/stdio/fread.c (_fread_r): Ditto.
2460 * libc/stdio/vfprintf.c: Ditto.
2461 * libc/stdio/vswprintf.c: Ditto.
2462
e20efdda
CV
24632009-03-09 Brooks Moses <brooks@codesourcery.com>
2464
2465 * libc/machine/arm/arm_asm.h: Fix typo.
2466
3c4becbe
CV
24672009-03-09 Craig Howland <howland@LGSInnovations.com>
2468
2469 * libc/time/strftime.c: Adapt for dual-purpose use so not only
2470 defines strftime(), but can also define wcsftime(); add optional
2471 test package; speed up %Y handling.
2472 * libc/time/wcsftime.c: New file, defining wcsftime() (albeit
2473 indirectly by including strftime.c) and its documentation.
2474 * libc/time/time.tex: Enhance tm_isdst explanation, change strftime
2475 description to match modified description in strftime.c
2476 * libc/time/Makefile.am: Add wcsftime.c and wcsftime.def. Add a rule
2477 so that wcsftime.o gets rebuilt when strftime changes.
2478 * libc/time/Makefile.in: Regenerate.
2479 * libc/include/wchar.h (wcsftime): Declare.
2480
e94fc807
CV
24812009-03-06 Hans-Erik Floryd <hans-erik.floryd@rt-labs.com>,
2482 Corinna Vinschen <corinna@vinschen.de>
2483
2484 * libc/reent/reent.c (_reclaim_reent): Make a block from MP-related
2485 statements in _REENT_SMALL case. Check if _atexit is not NULL before
2486 dereferencing it.
2487 (_wrapup_reent): Check if _atexit is not NULL before dereferencing it.
2488
6121968b
CV
24892009-03-06 Corinna Vinschen <corinna@vinschen.de>
2490
2491 * libc/include/stdio.h (__VALIST): Guard against multiple definition.
2492 * libc/include/wchar.h: Include stdarg.h.
2493 (__VALIST): Define conditionally.
d0b85c15 2494 (fwprintf, swprintf, vfwprintf, vswprintf, vwprintf, wprintf): Declare.
6121968b
CV
2495 (_fwprintf_r, _swprintf_r, _vfwprintf_r, _vswprintf_r, _vwprintf_r,
2496 _wprintf_r): Declare.
2497 * libc/stdio/Makefile.am: Add new files.
2498 * libc/stdio/Makefile.in: Regenerate.
2499 * libc/stdio/fwprintf.c: New file.
2500 * libc/stdio/local.h (_svfwprintf_r, _svfiwprintf_r): Declare.
2501 (__CH_CLASS, __STATE, __ACTION): Move definition from vfprintf.c here
2502 and move to the __ namespace.
2503 (__chclass, __state_table, __action_table): Declare.
2504 * libc/stdio/stdio.tex: Add new documentation references.
2505 * libc/stdio/swprintf.c: New file.
2506 * libc/stdio/vfprintf.c (__SPRINT): New macro to call the right
2507 __sprint_r function according to compilation unit. Use throughout.
2508 (__ssprint_r): Rename STRING_ONLY variant from __sprint_r.
2509 Make externaly available. Only define if INTEGER_ONLY is defined.
2510 (__sprint_r): Make externaly available. Only define if INTEGER_ONLY
2511 is defined. Handle stream orientation.
2512 (__sbprintf): Copy FILE's _flags2 member as well.
2513 (__chclass, __state_table, __action_table): Prepend __ to name and
2514 make externally available.
2515 * libc/stdio/vfwprintf.c: New file.
2516 * libc/stdio/vswprintf.c: New file.
2517 * libc/stdio/vwprintf.c: New file.
2518 * libc/stdio/wprintf.c: New file.
2519
d6cd9169
CV
25202009-03-03 Corinna Vinschen <corinna@vinschen.de>
2521
2522 * libc/locale/locale.c (_setlocale_r): New implementation based on
2523 FreeBSD's setlocale.
2524 (currentlocale): New helper function.
2525 (loadlocale): Ditto.
2526 (__locale_charset): New function.
2527 (__locale_msgcharset): Rename from __locale_charset.
2528 * libc/ctype/local.h (__lc_ctype): Remove declaration.
2529 (__locale_charset): Declare.
2530 * libc/ctype/iswalpha.c (iswalpha): Call __locale_charset instead of
2531 using __lc_ctype directly. Only compare against the charset alone.
2532 * libc/ctype/iswblank.c (iswblank): Ditto.
2533 * libc/ctype/iswcntrl.c (iswcntrl): Ditto.
2534 * libc/ctype/iswprint.c (iswprint): Ditto.
2535 * libc/ctype/iswpunct.c (iswpunct): Ditto.
2536 * libc/ctype/iswspace.c (iswspace): Ditto.
2537 * libc/ctype/towlower.c (towlower): Ditto.
2538 * libc/ctype/towupper.c (towupper): Ditto.
2539 * libc/stdlib/mbtowc_r.c (_mbtowc_r): Ditto.
2540 * libc/stdlib/wctomb_r.c (_wctomb_r): Ditto.
2541 * libc/sys/linux/intl/loadmsgcat.c (_nl_init_domain_conv): Call
2542 __locale_msgcharset instead of __locale_charset.
2543
95d85fcb
JJ
25442009-03-02 Jeff Johnston <jjohnstn@redhat.com>
2545
2546 * libc/stdlib/wctomb_r.c (_wctomb_r): When checking single-byte
2547 charset, cast wchar to size_t in case wchar_t is signed.
2548 * libc/stdlib/wctomb.c (wctomb): Add similar single-byte check.
2549
49b09e5a
JJ
25502009-03-02 Corinna Vinschen <corinna@vinschen.de>
2551
2552 * libc/stdlib/wctomb_r.c (_wctomb_r): Return EILSEQ in case of an
2553 invalid wchar. Return -1 if wchar doesn't fit into singlebyte
2554 value in case of using a singlebyte charset.
2555
1f73aa9f
JJ
25562009-02-26 Brooks Moses <brooks@codesourcery.com>
2557
2558 * libc/machine/arm/strcpy.c: Add missing comma.
2559
4377def7 25602009-02-26 Ralf Corsepius <ralf.corsepius@rtems.org>
ef2d60ac 2561
1335bf3c 2562 * libc/machine/lm32/configure.in: Let
ef2d60ac
JJ
2563 AC_CONFIG_SRCDIR point to setjmp.S instead of setjmp.s
2564 * libs/machine/lm32/configure: Regenerate.
2565
297367e3
JJ
25662009-02-25 Brooks Moses <brooks@codesourcery.com>
2567
2568 * libc/stdlib/Makefile.am (CHEWOUT_FILES): Add
2569 mbsnrtowcs.def, wcsnrtombs.def.
2570 * libc/stdlib/Makefile.in: Regenerate.
2571 * libc/stdlib/stdlib.tex (@menu): Use correct section
2572 names for mbsrtowcs, wcsrtombs.
2573 * libc/stdlib/wcstod.c: Remove stray character in
2574 documentation.
2575
8d8bf5a5
CV
25762009-02-25 Corinna Vinschen <corinna@vinschen.de>
2577
1335bf3c 2578 * libc/stdlib/mbtowc_r.c (_mbtowc_r): Remove conversion of 5 and 6
d6cd9169 2579 byte UTF-8 sequences since they are invalid in the Unicode standard.
8d8bf5a5 2580 Handle surrogate pairs in case of wchar_t == UTF-16.
1335bf3c
EB
2581 * libc/stdlib/wctomb_r.c (_wctomb_r): Don't convert invalid Unicode
2582 wchar_t values beyond 0x10ffff into UTF-8 chars. Handle surrogate
297367e3 2583 pairs in case of wchar_t == UTF-16.
8d8bf5a5 2584
56eafaf6
KB
25852009-02-24 Kevin Buettner <kevinb@redhat.com>
2586
2587 * libc/stdio/open_memstream.c (stdint.h): Include.
2588
02b20a23
JJ
25892009-02-23 Craig Howland <howland@LGSInnovations.com>
2590
2591 * libc/unix/ttyname.c: Remove ttyname_r() (to a new file to avoid
2592 coupling ttyname_r() and ttyname() due to the latter's large buffer).
2593 * libc/unix/ttyname_r.c: New file to hold ttyname_r(), previously in
2594 ttyname.c.
2595 * libc/unix/ttyname.h: New file (common size definition for the 2
2596 ttyname*c files that are now split).
2597 * libc/unix/Makefile.am (ELIX_2_SOURCES): Add ttyname_r.c.
2598 * libc/unix/Makefile.in: Regenerate.
2599
2e10d61c
CV
26002009-02-19 Corinna Vinschen <corinna@vinschen.de>
2601
2602 * libc/include/wchar.h (mbsnrtowcs): Declare.
2603 (_mbsnrtowcs_r): Declare.
2604 (wcsnrtombs): Declare.
2605 (_wcsnrtombs_r): Declare.
2606 * libc/stdlib/Makefile.am (ELIX_2_SOURCES): Add mbsnrtowcs.c
2607 and wcsnrtombs.c.
2608 * libc/stdlib/Makefile.in: Regenerate.
2609 * libc/stdlib/mbsnrtowcs.c: New file, implementing _mbsnrtowcs_r
2610 and mbsnrtowcs. Document mbsnrtowcs and mbsrtowcs.
2611 * libc/stdlib/mbsrtowcs.c (_mbsrtowcs_r): Just call _mbsnrtowcs_r.
2612 (mbsrtowcs): Ditto.
2613 * libc/stdlib/wcsnrtombs.c: New file, implementing _wcsnrtombs_r
2614 and wcsnrtombs. Document wcsrtombs and wcsnrtombs.
2615 * libc/stdlib/wcsrtombs.c (_wcsrtombs_r): Just call _wcsnrtombs_r.
2616 (wcsrtombs): Ditto.
2617 * libc/stdlib/stdlib.tex: Accommodate new documentation.
2618
3f60f7e5
JJ
26192009-02-18 Jeff Johnston <jjohnstn@redhat.com>
2620
2621 * libc/stdio/open_memstream.c (internal_open_memstream_r): Fix max
2622 buffer size to be in wchar_t units if wide == 1 is passed in. In
2623 this case, also initialize the first character of the buffer to be
2624 wide char null.
2625 (_open_wmemstream_r): Cast buf to be (char **) to avoid warning.
2626 * libc/stdlib/mbtowc_r.c (_mbtowc_r): Change all occurences of
2627 incrementing the size_t value n to first check that n is not already
2628 size_t -1. Fix some compiler warnings.
2629 * libc/stdlib/wcstod.c: Add includes for <wctype.h> and <math.h>.
2630
84e851fd
CV
26312009-02-18 Corinna Vinschen <corinna@vinschen.de>
2632
2633 * libc/stdio/open_memstream.c: Add open_wmemstream to doumentation.
2634 (struct memstream): Add wide element.
2635 Change saved to a union to take char and wchar_t values.
2636 (memwriter): Accommodate wide-oriented oeprations.
2637 (memseeker): Ditto.
2638 (memseeker64): Ditto.
2639 (memcloser): Ditto.
2640 (internal_open_memstream_r): New static function. Take functionality
2641 from former _open_memstream_r and handle additional "wide" parameter.
2642 (_open_memstream_r): Just call internal_open_memstream_r with wide==-1
2643 from here.
2644 (_open_wmemstream_r): New function.
2645 (open_wmemstream): Ditto.
2646 * libc/include/wchar.h (open_wmemstream): Declare.
2647 (_open_wmemstream_r): Declare.
2648
c65466e2
CV
26492009-02-16 Corinna Vinschen <corinna@vinschen.de>
2650
2651 * libc/stdio/fputwc.c: Fix typo in man page info.
2652
77ea728b
JJ
26532009-02-12 Corinna Vinschen <corinna@vinschen.de>
2654
2655 * libc/include/wchar.h (_wcstod_r): Declare.
2656 (_wcstof_r): Declare.
2657 (wcstod): Declare.
2658 (wcstof): Declare.
2659 * libc/stdlib/Makefile.am (GENERAL_SOURCES): Add wcstod.c.
2660 (CHEWOUT_FILES): Add wcstod.def.
2661 * libc/stdlib/Makefile.in: Regenerate.
2662 * libc/stdlib/stdlib.tex: Add wcstod.
2663 * libc/stdlib/wcstod.c: New file.
2664
18cbf1d3
JJ
26652009-02-05 Neal H. Walfield <neal@gnu.org>
2666
2667 * libc/machine/x86_64/memcpy.S (memcpy): Don't use the red zone.
2668
3e703e87
JJ
26692009-01-28 Jeff Johnston <jjohnstn@redhat.com>
2670
2671 * libc/stdio/vfscanf.c (__SVFSCANF_R): Add additional check for
2672 inf and nan processing to not proceed if we have already collected
2673 zeroes.
2674
dcad8199
DD
26752009-01-26 DJ Delorie <dj@redhat.com>
2676
2677 * configure.host (m32c-*-*): Add long long I/O support by default.
2678
2b7e0645
JJ
26792009-01-21 Richard Earnshaw <rearnsha@arm.com>
2680
2681 * libc/machine/arm/arm_asm.h: New file.
2682 * libc/machine/arm/strlen.c: New file.
2683 * libc/machine/arm/strcpy.c: New file.
2684 * libc/machine/arm/strcmp.c: New file.
2685 * libc/machine/arm/Makefile.am: Add new string routines.
2686
2e287a63
JJ
26872009-01-19 Neal H. Walfield <neal@gnu.org>
2688
2689 * libc/include/stdint.h (INT64_C, UINT64_C, INTMAX_C, UINTMAX_C)
2690 [__have_long64 && __have_longlong64]: Use L and UL, not LL and ULL.
2691 * libc/include/inttypes.h (__PRI64, __SCN64, __PRIMAX, __SCNMAX,
2692 __PRIPTR, __SCNPTR) [__have_long64 && __have_longlong64]: Use l,
2693 not ll.
2694
d9db4e43
JJ
26952009-01-12 Nathan Froyd <froydnj@codesourcery.com>
2696
2697 * libc/machine/powerpc/vfscanf.c (__sccl): Remove declaration.
2698
ceedb0dc
JJ
26992009-01-12 Jeff Johnston <jjohnstn@redhat.com>
2700
2701 * libc/stdio/fwalk.c (__fwalk, __fwalk_reent): Remove locking of
2702 each fp. Let the function being called lock the fp, if necessary.
2703
887c6b76
KH
27042009-01-07 Kazu Hirata <kazu@codesourcery.com>
2705
2706 * libc/include/sys/stdio.h (_flockfile, _funlockfile): Fix typos.
2707
8ca36740
JJ
27082009-01-05 Craig Howland <howland@LGSInnovations.com>
2709
2710 * libc/stdio/fwide.c: Correct typo in TRAD_SYNOPSIS for _fwide_r.
2711
272fac20
JJ
27122008-12-19 Jeff Johnston <jjohnstn@redhat.com>
2713
2714 * NEWS: Update with 1.17.0 info.
2715 * README: Ditto.
2716 * acinclude.m4: Change version number to 1.17.0.
2717 * aclocal.m4: Regenerated.
2718 * configure: Ditto.
2719 * doc/aclocal.m4: Ditto.
2720 * doc/configure: Ditto.
2721 * libc/*/aclocal.m4: Ditto.
2722 * libc/*/configure: Ditto.
2723 * libc/libc.texinfo: Ditto.
2724 * libm/*/aclocal.m4: Ditto.
2725 * libm/*/configure: Ditto.
2726 * libm/libm.texinfo: Ditto.
2727 * libc/sys/linux/shared.ld: Add VERS_1.17
2728
a3cf0304
JJ
27292008-12-17 Jon Beniston <jon@beniston.com>
2730
2731 * configure.host: Set syscall_dir for lm32 target.
2732
cdb0b909
JJ
27332008-12-15 Jeff Johnston <jjohnstn@redhat.com>
2734
2735 * libc/stdio/stdio.tex: Remove putwc and getwc references as they
2736 are included as part of fputwc and fgetwc, respectively.
2737
a1631dba
JJ
27382008-12-12 Craig Howland <howland@LGSInnovations.com>
2739
2740 * libc/include/wchar.h: Added wcstok() declaration.
2741 * libc/string/wcstok.c: New file, implementing wcstok.
2742 * libc/string/Makefile.am: Add wcstok support.
2743 * libc/string/wcstrings.tex: Ditto.
2744 * libc/string/Makefile.in: Regenerated.
2745
c4366373
JJ
27462008-12-12 Ralf Corsepius <ralf.corsepius@rtems.org>
2747
2748 * libc/stdio/fputws.c: Fix documentation.
2749 * libc/stdio/getwchar.c: Ditto.
2750 * libc/stdio/putwchar.c: Ditto.
2751
db48463a
JJ
27522008-12-12 Ralf Corsepius <ralf.corsepius@rtems.org>
2753
2754 * libc/include/sys/features.h: Set RTEMS's _POSIX_MONOTONIC_CLOCK to
2755 200112L (SUSv3 compliance).
2756 Comment out RTEMS's _POSIX_SHARED_MEMORY_OBJECTS (Unsupported).
2757
f570da95
JJ
27582008-12-12 Ralf Corsepius <ralf.corsepius@rtems.org>
2759
1335bf3c 2760 * libc/sys/rtems/crt0.c: Add stubs for getdents(), nanosleep(),
f570da95
JJ
2761 _execve(), _exit().
2762
7851320a
JJ
27632008-12-12 Ralf Corsepius <ralf.corsepius@rtems.org>
2764
2765 * configure.host: Let *rtems* default to c99-formats.
2766
6897665e
CV
27672008-12-12 Craig Howland <howland@LGSInnovations.com>
2768
2769 * libc/stdio/freopen.c: Add <string.h> for memset prototype.
2770 * libc/stdio/fseek.c: Ditto.
2771 * libc/stdio/fwide.c: Add <wchar.h> for fwide prototype.
2772
04e47529
JJ
27732008-12-11 Jeff Johnston <jjohnstn@redhat.com>
2774
6b9838a3 2775 * libc/include/sys/time.h (gettimeofday): Change prototype so
04e47529 2776 2nd parameter is void *, matching SUSV2.
6b9838a3 2777 * libc/syscalls/sysgettod.c (gettimeofday): Ditto.
04e47529 2778
0e859ad1
JJ
27792008-12-11 Jukka Pietarinen <jukka.pietarinen@mrf.fi>
2780
2781 * configure.host: Add lm32
2782 * libc/include/machine/ieeefp.h: Add __lm32__
2783 * libc/include/machine/setjmp.h: Add __lm32__
2784 * libc/machine/configure.in: Add lm32
2785 * libc/machine/configure: Regenerated.
2786 * libc/machine/lm32/aclocal.m4: New file.
2787 * libc/machine/lm32/configure.in: Ditto.
2788 * libc/machine/lm32/configure: Ditto.
2789 * libc/machine/lm32/Makefile.am: Ditto.
2790 * libc/machine/lm32/Makefile.in: Ditto.
2791 * libc/machine/lm32/setjmp.s: Ditto.
2792
7dd0c330
JJ
27932008-12-11 Craig Howland <howland@LGSInnovations.com>
2794
2795 * libc/include/sys/lock.h: Add void cast to avoid "statement has no
2796 effect" warnings from gcc.
2797 * libc/include/sys/stdio.h: Ditto.
2798 * libc/include/sys/time.h: Correct gettimeofday() prototype.
2799 * libc/stdlib/__exp10.c: Add #include "std.h" for function prototype.
2800 * libc/stdlib/__ten_mu.c: Ditto.
2801 * libc/stdlib/std.h: Correct __exp10's ANSI prototype.
2802 * libc/stdlib/ldtoa.c: Change eiisinf definition to ANSI form. (Are
2803 already others in file without _ansi method, so did not bother.)
2804 * libc/stdlib/system.c: Use _ansi forms for function prototypes and
2805 definitions.
2806 * libc/time/mktime.c: Ditto.
2807 * libc/misc/__dprintf.c: Ditto.
2808 * libc/include/stdio.h: Add function prototypes for _fgetc_r,
2809 _fgetpos_r, _fsetpos_r, _freopen_r, _rewind_r, freopen64, _freopen64_r,
2810 _funopen_r, and _fopencookie_r.
2811 * libc/include/reent.h: Add function prototype for _stat64_r, align
2812 _execve_r prototype with POSIX definition for execve.
2813 * libc/reent/execr.c: Align function prototype with POSIX definition.
2814 * libc/stdio/asniprintf.c: Add #include "local.h".
2815 * libc/stdio/vasniprintf.c: Ditto.
2816 * libc/stdio/fread.c: Remove unused variable newcount.
2817 * libc/stdio/local.h: Add function prototype for __sccl.
2818 * libc/stdio/open_memstream.c: Remove unused variable flags.
2819 * libc/stdio/vfscanf.c: Proper prototyping for ccfn, remove prototype
2820 for __sccl since now in local.h.
2821 * libc/string/memcpy.c: Add #include <string.h> (for real and for
2822 traditional synopsis), remove extraneous stddef.h and limits.h.
2823 * libc/syscalls/sysclose.c: Add #include <unistd.h>.
2824 * libc/syscalls/sysfork.c: Ditto.
2825 * libc/syscalls/sysgetpid.c: Ditto.
2826 * libc/syscalls/sysexecve.c: Add #include <unistd.h>, align function
2827 prototype with POSIX definition.
2828 * libc/syscalls/sysfstat.c: Add #include <sys/stat.h>.
2829 * libc/syscalls/sysgettod.c: Correct sys/times.h to sys/time.h.
2830 * libc/syscalls/syskill.c: Add #include <signal.h>.
2831 * libc/syscalls/syslink.c: Add #include <unistd.h>, fix prototype.
2832 * libc/syscalls/sysunlink.c: Ditto.
2833 * libc/syscalls/sysstat.c: Add #include <sys/stat.h>, fix prototype.
2834 * libc/syscalls/syswait.c: Add #include <sys/wait.h>, fix prototype.
2835
0751f226
JJ
28362008-12-10 Corinna Vinschen <corinna@vinschen.de>
2837
2838 Implement basic wide char stdio functionality, based on FreeBSD.
2839 * libc/include/stdio.h (__SORD): Define.
2840 (__SWID): Define.
2841 * libc/include/wchar.h: Add declarations for new wide char functions.
2842 (getwc): Define as macro.
2843 (getwchar): Ditto.
2844 (putwc): Ditto.
2845 (putwchar): Ditto.
2846 * libc/include/sys/reent.h (struct __sFILE): Add _mbstate member.
2847 (struct __sFILE64): Ditto.
2848 * libc/stdio/Makefile.am (ELIX_4_SOURCES): Add fgetwc.c, fgetws.c,
2849 fputwc.c, fputws.c, fwide.c, getwc.c, getwchar.c, putwc.c, putwchar.c
2850 and ungetwc.c.
2851 (CHEWOUT_FILES): Add fgetwc.def, fgetws.def, fputwc.def, fputws.def,
2852 fwide.def, getwc.def, getwchar.def, putwc.def, putwchar.def and
2853 ungetwc.def.
2854 Add header dependency rules for the new files.
2855 * libc/stdio/Makefile.in: Regenerate.
2856 * libc/stdio/fgetwc.c: New file, implementing fgetwc and _fgetwc_r.
2857 * libc/stdio/fgetws.c: New file, implementing fgetws and _fgetws_r.
2858 * libc/stdio/findfp.c (std): Initialize FILE's _mbstate member.
2859 (__sfmoreglue): Ditto.
2860 * libc/stdio/fputs.c (_fputs_r): Set stream orientation.
2861 * libc/stdio/fputwc.c: New file, implementing fputwc and _fputwc_r.
2862 * libc/stdio/fputws.c: New file, implementing fputws and _fputws_r.
2863 * libc/stdio/fread.c (_fread_r): Set stream orientation.
2864 * libc/stdio/freopen.c (_freopen_r): Reset stream orientation. Reset
2865 _mbstate.
2866 * libc/stdio/fseek.c (_fseek_r): Reset _mbstate.
2867 * libc/stdio/fwide.c: New file, implementing fwide and _fwide_r.
2868 * libc/stdio/fwrite.c (_fwrite_r): Set stream orientation.
2869 * libc/stdio/getwc.c: New file, implementing getwc and _getwc_r.
2870 * libc/stdio/getwchar.c: New file, implementing getwchar and
2871 _getwchar_r.
2872 * libc/stdio/local.h (ORIENT): New macro.
2873 * libc/stdio/puts.c (_puts_r): Set stream orientation.
2874 * libc/stdio/putwc.c: New file, implementing putwc and _putwc_r.
2875 * libc/stdio/putwchar.c: New file, implementing putwchar and
2876 _putwchar_r.
2877 * libc/stdio/refill.c (__srefill_r): Set stream orientation.
2878 * libc/stdio/stdio.tex: Add documentation for new functions.
2879 * libc/stdio/ungetc.c (_ungetc_r): Set stream orientation.
2880 * libc/stdio/ungetwc.c: New file, implementing ungetwc and _ungetwc_r.
2881 * libc/stdio/vfscanf.c (__SVFSCANF_R): Set stream orientation.
2882 * libc/stdio/wbuf.c (__swbuf_r): Ditto.
2883
11a985e0
JJ
28842008-12-10 Joseph Myers <joseph@codesourcery.com>
2885
2886 * libc/include/stdint.h (INT32_MIN, INT32_MAX, UINT32_MAX,
2887 INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX): Define to
2888 constants with "long" types where appropriate.
2889 (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN,
2890 INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX,
2891 UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX):
2892 Correct to match logic for defining corresponding types.
2893 (INTMAX_MAX, INTMAX_MIN, UINTMAX_MAX): Define.
2894 (SIZE_MAX): Define using __SIZE_MAX__ if available.
2895 (PTRDIFF_MAX): Define using __PTRDIFF_MAX__ if available.
2896 (PTRDIFF_MIN): Define in terms of PTRDIFF_MAX.
2897 (WCHAR_MAX, WCHAR_MIN, WINT_MAX, WINT_MIN): Define.
2898 (UINT8_C, UINT16_C): Define to give signed values if corresponding
2899 types would promote to int.
2900
a81a17c4
CV
29012008-12-04 Corinna Vinschen <corinna@vinschen.de>
2902
2903 * libc/include/sys/features.h (_POSIX_V6_ILP32_OFF32): Always define.
2904 (_POSIX_V6_LP64_OFF64): Ditto.
2905 (_POSIX_V6_LPBIG_OFFBIG): Ditto.
2906
3ba3b001
JJ
29072008-11-28 Jeff Johnston <jjohnstn@redhat.com>
2908
2909 * libc/sys/linux/inode.c: Include <dirent.h> instead of
2910 <linux/dirent.h>.
2911 * libc/sys/linux/io64.c: Add weak alias for _stat64.
2912
27171a8c
JJ
29132008-11-27 Ralf Corsepius <ralf.corsepius@rtems.org>
2914
1335bf3c 2915 * libc/posix/telldir.c: Use #if !defined() instead of #ifndef
27171a8c
JJ
2916 to fix GCC warning.
2917
8f337bfe
JJ
29182008-11-27 Ken Werner <ken.werner@de.ibm.com>
2919
2920 * libc/machine/spu/Makefile.am: Add spu-mcount.S spu-gmon.c.
2921 * libc/machine/spu/Makefile.in: Regenerated.
2922 * libc/machine/spu/spu-gmon.c: New file.
2923 * libc/machine/spu/spu-mcount.S: New file.
2924
e707c2c9
JJ
29252008-11-27 Joel Sherrill <joel.sherrill@oarcorp.com>
2926
2927 * configure.host (*-rtems*): Turn on using portion of unix subdirectory.
2928
bad5c314
JJ
29292008-11-27 Craig Howland <howland@LGSInnovations.com>
2930
2931 * libc/argz/argz_add.c: Added #include <argz.h> to get function
2932 prototypes.
2933 * libc/argz/argz_append.c: Ditto.
2934 * libc/argz/argz_count.c: Ditto.
2935 * libc/argz/argz_create.c: Ditto.
2936 * libc/argz/argz_create_sep.c: Ditto.
2937 * libc/argz/argz_delete.c: Ditto.
2938 * libc/argz/argz_next.c: Ditto.
2939 * libc/argz/argz_stringify.c: Ditto
2940 * libc/stdlib/strtod.c: Added #include <stdlib.h> to get function
2941 prototypes.
2942 * libc/stdlib/wcstoul.c: Added #include <wchar.h> to get function
2943 prototypes, corrected traditional usage comment.
2944 * libc/include/wchar.h: Added _mbsrtowcs_r() prototype.
2945
14535fc5
JJ
29462008-11-26 Ken Werner <ken.werner@de.ibm.com>
2947
2948 * libm/machine/spu/headers/acosd2.h: Rebase against current simdmath.
2949 * libm/machine/spu/headers/asind2.h: Likewise.
2950 * libm/machine/spu/headers/asinhf4.h: Likewise.
2951 * libm/machine/spu/headers/divd2.h: Likewise.
2952 * libm/machine/spu/headers/erf_utils.h: Likewise.
2953 * libm/machine/spu/headers/erfcd2.h: Likewise.
2954 * libm/machine/spu/headers/erfcf4.h: Likewise.
2955 * libm/machine/spu/headers/erfd2.h: Likewise.
2956 * libm/machine/spu/headers/recipd2.h: Likewise.
2957
a11451b3
CV
29582008-11-25 Corinna Vinschen <corinna@vinschen.de>
2959
2960 * libc/stdio/gets.c (_gets_r): Lock stdin here and call
2961 __sgetc_r instead of _getchar_r.
2962
0aca33c8
JJ
29632008-11-24 Craig Howland <howland@LGSInnovations.com>
2964
2965 * libc/stdlib/wcstoull_r.c: Add EINVAL return for bad base value,
2966 include wchar.h for prototype, remove extraneous includes, use
2967 C99/POSIX ULLONG_MAX (but allow for poor limits.h).
2968 * libc/stdlib/wcstoull.c: Fix usage comments (mistakes and to add
2969 base value check noted above), remove extraneous includes.
2970 * libc/stdio/asnprintf.c: Add #include "local.h" to get function
2971 prototype for _svfprintf_r().
2972 * libc/stdio/vasnprintf.c: Ditto.
2973 * libc/stdio/local.h: Add function prototype for __submore().
2974 * libc/include/stdio.h: Add function prototypes for _fseeko_r and
2975 _ftello_r.
2976 * libc/posix/namespace.h: Commented out define for write to
2977 eliminate write() prototype being missing for collate.c (which is
2978 the only file that presently includes namespace.h).
2979 * libc/include/reent.h: Added _rename_r.
2980 * libc/reent/renamer.c: Corrected function prototypes in synopses.
2981 * libc/locale/ldpart.c: Use struct stat64 when calling fstat64.
2982
0ef912df
JJ
29832008-11-24 Jeff Johnston <jjohnstn@redhat.com>
2984
2985 * libc/search/hash_func.c: Comment out unused static hash functions.
2986 * libc/reent/stat64r.c: New file.
2987 * libc/reent/Makefile.am: Add stat64r.c support.
2988 * libc/reent/Makefile.in: Regenerated.
2989
df913771
JJ
29902008-11-24 Joel Sherrill <joel.sherrill@oarcorp.com>
2991
1335bf3c 2992 * libc/posix/scandir.c: Fix memory leaks.
df913771 2993
b45d1622
JJ
29942008-11-24 Joel Sherrill <joel.sherrill@oarcorp.com>
2995
9aa929ef 2996 * libc/posix/Makefile.am: Compile readdir_r.c not readdir.c twice.
b45d1622
JJ
2997 * libc/posix/Makefile.in: Regenerated.
2998
9aa929ef 29992008-11-24 Corinna Vinschen <corinna@vinschen.de>
14773e10
CV
3000
3001 * libc/include/stdio.h (__SMOD): Remove definition of unused flag.
3002 * libc/include/sys/reent.h (struct __sFILE): Add _flags2 member.
3003 * libc/stdio/findfp.c (std): Initialize _flags2.
3004 (__sfp): Ditto.
3005 * libc/stdio/refill.c (__srefill_r): Drop resetting __SMOD flag.
3006 * libc/stdio/vfscanf.c (__ssrefill_r): Ditto.
3007 * libc/stdio/fseek.c (_fseek_r): Drop checking __SMOD flag.
3008 * libc/stdio64/fseeko64.c (_fseeko64_r): Ditto.
3009
d5567b8d
JJ
30102008-11-20 Ken Werner <ken.werner@de.ibm.com>
3011
3012 * libc/machine/spu/sys/linux_syscalls.h: Additional syscall defines to
3013 be in sync with current kernels.
3014
75cc619b 30152008-11-20 Ken Werner <ken.werner@de.ibm.com>
d6438f13
EB
3016 Patrick Mansfield <patmans@us.ibm.com>
3017 Joel Schopp <jschopp@austin.ibm.com>
75cc619b
JJ
3018
3019 * libc/machine/spu/configure.in: Add __ea detection.
3020 * libc/machine/spu/Makefile.am: Add new files.
3021 * libc/machine/spu/include/ea.h: New file.
3022 * libc/machine/spu/ea_internal.h: Likewise.
3023 * libc/machine/spu/sys/mman.h: Likewise.
3024 * libc/machine/spu/mmap_ea.c: Likewise.
3025 * libc/machine/spu/munmap_ea.c: Likewise.
3026 * libc/machine/spu/mremap_ea.c: Likewise.
3027 * libc/machine/spu/msync_ea.c: Likewise.
3028 * libc/machine/spu/memchr_ea.c: Likewise.
3029 * libc/machine/spu/memcmp_ea.c: Likewise.
3030 * libc/machine/spu/memcpy_ea.c: Likewise.
3031 * libc/machine/spu/memmove_ea.c: Likewise.
3032 * libc/machine/spu/memset_ea.c: Likewise.
3033 * libc/machine/spu/malloc_ea.c: Likewise.
3034 * libc/machine/spu/realloc_ea.c: Likewise.
3035 * libc/machine/spu/calloc_ea.c: Likewise.
3036 * libc/machine/spu/free_ea.c: Likewise.
3037 * libc/machine/spu/posix_memalign_ea.c: Likewise.
3038 * libc/machine/spu/strcat_ea.c: Likewise.
3039 * libc/machine/spu/strchr_ea.c: Likewise.
3040 * libc/machine/spu/strcmp_ea.c: Likewise.
3041 * libc/machine/spu/strcpy_ea.c: Likewise.
3042 * libc/machine/spu/strcspn_ea.c: Likewise.
3043 * libc/machine/spu/strlen_ea.c: Likewise.
3044 * libc/machine/spu/strncat_ea.c: Likewise.
3045 * libc/machine/spu/strncmp_ea.c: Likewise.
3046 * libc/machine/spu/strncpy_ea.c: Likewise.
3047 * libc/machine/spu/strpbrk_ea.c: Likewise.
3048 * libc/machine/spu/strrchr_ea.c: Likewise.
3049 * libc/machine/spu/strspn_ea.c: Likewise.
3050 * libc/machine/spu/strstr_ea.c: Likewise.
3051 * libc/machine/spu/read_ea.c: Likewise.
3052 * libc/machine/spu/pread_ea.c: Likewise.
3053 * libc/machine/spu/readv_ea.c: Likewise.
3054 * libc/machine/spu/write_ea.c: Likewise.
3055 * libc/machine/spu/pwrite_ea.c: Likewise.
3056 * libc/machine/spu/writev_ea.c: Likewise.
3057
0e981026
JJ
30582008-11-19 Joel Sherrill <joel.sherrill@oarcorp.com>
3059
3060 * libc/include/sys/config.h[__mips__]: Don't bother
3061 setting __ATTRIBUTE_IMPURE_PTR__ here.
3062 [__rtems__][__mips__]: No need to undef the __ATTRIBUTE_IMPURE_PTR__
3063 macro anymore.
3064
8ee939ea
JJ
30652008-11-19 Jeff Johnston <jjohnstn@redhat.com>
3066
3067 * libc/sys/linux/bits/dirent.h: New header file.
3068 * libc/sys/linux/sys/dirent.h: Include <bits/dirent.h> instead of
3069 <linux/dirent.h>.
3070 * libc/posix/Makefile.am: Remove reallocf.
3071 * libc/posix/Makefile.in: Regenerated.
3072 * libc/posix/reallocf.c: Moved to...
3073 * libc/stdlib/reallocf.c: Here
3074 * libc/stdlib/malloc.c: Add reallocf documentation.
3075 * libc/include/stdlib.h: Add reallocf and _reallocf_r prototypes.
3076 * libc/stdlib/Makefile.am: Add reallocf.
3077 * libc/stdlib/Makefile.in: Regenerated.
3078 * libc/posix/_isatty.c: Set errno.
3079
e231c7da
JJ
30802008-11-19 Craig Howland <howland@LGSInnovations.com>
3081
3082 * libc/unix/collate.c (__collate_err): simplify to remove unnecessary
3083 strdup() and strlen() calls, also getting rid of a compiler warning.
3084
34ff0a4e
JJ
30852008-11-19 Ralf Corsepius <ralf.corsepius@rtems.org>
3086
1335bf3c 3087 * libc/include/sys/config.h: Don't put
34ff0a4e 3088 __ATTRIBUTE_IMPURE_PTR__ into .sdata section for mips-rtems.
1335bf3c 3089
c58cf6af
JJ
30902008-11-19 Ralf Corsepius <ralf.corsepius@rtems.org>
3091
3092 * libc/posix/runetype.h: Add include of stddef.h and remove
3093 defining standard types: size_t and wchar_t.
3094
b8e9a7c0
JJ
30952008-11-19 Ralf Corsepius <ralf.corsepius@rtems.org>
3096
3097 * libc/include/pthread.h: Remove prototypes for
3098 pthread_attr_getcputime and pthread_attr_setcputime which
3099 were proposed but never approved by the POSIX standard.
3100
1f9aa7a3
JJ
31012008-11-18 Joel Sherrill <joel.sherrill@oarcorp.com>
3102
3103 * libc/unix/ttyname.c: Use isatty() instead of tcgetattr().
3104
fd450adf
JJ
31052008-11-18 Jeff Johnston <jjohnstn@redhat.com>
3106
3107 * libc/unix/basename.c: Add !_NO_BASENAME flag check so code can be
3108 ignored if desired by a platform.
3109 * libc/unix/dirname.c: Ditto except replace BASENAME with file name.
3110 * libc/unix/getcwd.c: Ditto.
3111 * libc/unix/getlogin.c: Ditto.
3112 * libc/unix/getpass.c: Ditto.
3113 * libc/unix/getpwent.c: Ditto.
3114 * libc/unix/getut.c: Ditto.
3115 * libc/unix/pread.c: Ditto.
3116 * libc/unix/pwrite.c: Ditto.
3117 * libc/unix/sigset.c: Ditto.
3118
57f69f20
JJ
31192008-11-18 Craig Howland <howland@LGSInnovations.com>
3120
3121 * libc/unix/ttyname.c: Add ttyname_r and change ttyname to use
3122 ttyname_r.
3123
aa677662
JJ
31242008-11-17 Joel Sherrill <joel.sherrill@oarcorp.com>
3125
1335bf3c 3126 * configure.host: RTEMS now uses posix subdirectory.
aa677662 3127
0ea87523
JJ
31282008-11-17 Joel Sherrill <joel.sherrill@oarcorp.com>
3129
3130 * sys/rtems/include/limits.h: Add _POSIX2_RE_DUP_MAX.
3131 * sys/rtems/sys/param.h: sys/rtprio.h not needed.
3132
1dc1ccd4
JJ
31332008-10-31 Jeff Johnston <jjohnstn@redhat.com>
3134
3135 * libc/stdio/diprintf.c: Modify documentation so eclipse newlib
3136 libhover docs generate properly.
3137 * libc/stdio/dprintf.c: Ditto.
3138 * libc/stdio/fflush.c: Ditto.
3139 * libc/stdio/fopencookie.c: Ditto.
3140 * libc/stdio/fread.c: Ditto.
3141 * libc/stdio/fsetpos.c: Ditto.
3142 * libc/stdio/getc_u.c: Ditto.
3143 * libc/stdio/getchar_u.c: Ditto.
3144 * libc/stdio/putc_u.c: Ditto.
3145 * libc/stdio/putchar_u.c: Ditto.
3146 * libc/stdio/remove.c: Ditto.
3147 * libc/stdio/siprintf.c: Ditto.
3148 * libc/stdio/siscanf.c: Ditto.
3149 * libc/stdio/sprintf.c: Ditto.
3150 * libc/stdio/sscanf.c: Ditto.
3151 * libc/stdio/vfprintf.c: Ditto.
3152 * libc/stdio/vfscanf.c: Ditto.
3153 * libc/stdio/viprintf.c: Ditto.
3154 * libc/stdio/viscanf.c: Ditto.
3155 * libc/stdlib/calloc.c: Ditto.
3156 * libc/stdlib/efgcvt.c: Ditto.
3157 * libc/stdlib/envlock.c: Ditto.
3158 * libc/time/asctime.c: Ditto.
3159 * libc/time/ctime.c: Ditto.
3160 * libc/time/gmtime.c: Ditto.
3161 * libc/time/lcltime.c: Ditto.
3162 * libc/time/tzset.c: Ditto.
3163 * libc/stdlib/envlock.h: Moved to libc/include.
3164
d456d606
JJ
31652008-10-31 Jeff Johnston <jjohnstn@redhat.com>
3166
3167 * libc/include/limits.h: Add ARG_MAX, PATH_MAX, and _POSIX2_RE_DUP_MAX.
3168 * libc/include/envlock.h: New file.
3169 * libc/include/fnmatch.h: Ditto.
3170 * libc/include/glob.h: Ditto.
3171 * libc/include/regex.h: Ditto.
3172 * libc/include/wordexp.h: Ditto.
1335bf3c 3173 * libc/posix/Makefile.am: Add new files moved from
d456d606
JJ
3174 libc/sys/linux/stdlib.
3175 * libc/posix/Makefile.in: Regenerated.
3176 * libc/posix/COPYRIGHT: New file moved from libc/sys/linux/stdlib.
3177 * libc/posix/cclass.h: Ditto.
3178 * libc/posix/cname.h: Ditto.
3179 * libc/posix/collate.c: Ditto.
3180 * libc/posix/collate.h: Ditto.
3181 * libc/posix/collcmp.c: Ditto.
3182 * libc/posix/engine.c: Ditto.
3183 * libc/posix/fnmatch.3: Ditto.
3184 * libc/posix/glob.3: Ditto.
3185 * libc/posix/fnmatch.c: Ditto.
3186 * libc/posix/glob.c: Ditto.
3187 * libc/posix/namespace.h: Ditto.
3188 * libc/posix/reallocf.c: Ditto.
3189 * libc/posix/regcomp.c: Ditto.
3190 * libc/posix/regerror.c: Ditto.
3191 * libc/posix/regex.3: Ditto.
3192 * libc/posix/regex2.h: Ditto.
3193 * libc/posix/regexec.c: Ditto.
3194 * libc/posix/regfree.c: Ditto.
3195 * libc/posix/rune.h: Ditto.
3196 * libc/posix/runetype.h: Ditto.
3197 * libc/posix/scandir.c: Remove advertising clause which is not in
3198 effect.
3199 * libc/posix/sysexits.h: Ditto.
3200 * libc/posix/un-namespace.h: Ditto.
3201 * libc/posix/utils.h: Ditto.
3202 * libc/posix/wordexp.c: Ditto.
3203 * libc/posix/wordfree.c: Ditto.
3204 * libc/posix/execl.c: Add !_NO_EXECVE flag check.
3205 * libc/posix/execle.c: Ditto.
3206 * libc/posix/execlp.c: Ditto.
3207 * libc/posix/execv.c: Ditto.
3208 * libc/posix/execve.c: Ditto.
3209 * libc/posix/execvp.c: Ditto.
3210 * libc/posix/popen.c: Add !_NO_POPEN flag check.
3211 * libc/sys/linux/configure: Regenerated.
3212 * libc/sys/linux/configure.in: Remove stdlib.
3213 * libc/sys/linux/include/limits.h: Add include of linux/limits.h.
3214 * libc/sys/linux/stdlib/Makefile.am: Removed.
3215 * libc/sys/linux/stdlib/Makefile.in: Ditto.
3216 * libc/sys/linux/stdlib/COPYRIGHT: Moved to libc/posix.
3217 * libc/sys/linux/stdlib/cclass.h: Ditto.
3218 * libc/sys/linux/stdlib/cname.h: Ditto.
3219 * libc/sys/linux/stdlib/collate.c: Ditto.
3220 * libc/sys/linux/stdlib/collate.h: Ditto.
3221 * libc/sys/linux/stdlib/collcmp.c: Ditto.
3222 * libc/sys/linux/stdlib/engine.c: Ditto.
3223 * libc/sys/linux/stdlib/fnmatch.3: Ditto.
3224 * libc/sys/linux/stdlib/fnmatch.c: Ditto.
3225 * libc/sys/linux/stdlib/glob.3: Ditto.
3226 * libc/sys/linux/stdlib/glob.c: Ditto.
3227 * libc/sys/linux/stdlib/reallocf.c: Ditto.
3228 * libc/sys/linux/stdlib/regcomp.c: Ditto.
3229 * libc/sys/linux/stdlib/regerror.c: Ditto.
3230 * libc/sys/linux/stdlib/regex.3: Ditto.
3231 * libc/sys/linux/stdlib/regex2.h: Ditto.
3232 * libc/sys/linux/stdlib/regexec.c: Ditto.
3233 * libc/sys/linux/stdlib/regfree.c: Ditto.
3234 * libc/sys/linux/stdlib/utils.h: Ditto.
3235 * libc/sys/linux/stdlib/wordexp.c: Ditto.
3236 * libc/sys/linux/stdlib/wordfree.c: Ditto.
3237
01bf0593
JJ
32382008-10-16 Joel Sherrill <joel.sherrill@oarcorp.com>
3239
1335bf3c 3240 * libc/include/sys/unistd.h: RTEMS follows standard for sync().
5d2b3a0a
JJ
3241
32422008-10-16 Joel Sherrill <joel.sherrill@oarcorp.com>
3243
3244 * libc/include/time.h: Add CLOCK_MONOTONIC.
3245 * libc/include/sys/features.h: Define
1335bf3c 3246 _POSIX_MONOTONIC_CLOCK for RTEMS.
5d2b3a0a 3247
f7b03c3c
JJ
32482008-10-15 Jeff Johnston <jjohnstn@redhat.com>
3249
3250 * newlib.hin: Restore to previous 1.14 version which has no
3251 PACKAGE_ macros.
3252
baa9e037
JJ
32532008-10-15 Joel Sherrill <joel.sherrill@oarcorp.com>
3254
3255 * libc/include/sys/unistd.h: Enable ttyname_r() for RTEMS.
3256
bc5585e6
JJ
32572008-10-15 Craig Howland <howland@LGSInnovations.com>
3258
3259 * libc/include/ctype.h (isblank): isblank is C99.
3260 * libc/ctype/isblank.c (isblank comments): ditto. isblank does not
3261 have a macro version (as was claimed in the description).
3262
236e5c40
JJ
32632008-10-15 Jeff Johnston <jjohnstn@redhat.com>
3264
3265 * libc/stdio/vfscanf.c (__ssvfiscanf_r): Do not support %lc, %C, %ls or
3266 %S conversions when the EL/IX level is 1.
3267
0d2597f5
JJ
32682008-10-06 Eric Blake <ebb9@byu.net>
3269
3270 * libc/stdlib/ldtoa.c (etoasc): Fix rounding to even when fraction
3271 is 0.5 or 0.75.
3272
75fb38a5
JJ
32732008-10-06 Craig Howland <howland@LGSInnovations.com>
3274
3275 * libc/time/tzset_r.c (_tzset_r): Change US default start/end dates to
3276 2007 law revision of start in 2nd Sunday in March, end 1st Sun in Nov.
3277
015b86d7
JJ
32782008-10-02 Jeff Johnston <jjohnstn@redhat.com>
3279
3280 * libc/string/str-two-way.h (critical_factorization): Cast the index
3281 operation to ensure unsigned rollover occurs when adding to SIZE_MAX.
3282
eea95bd1
JJ
32832008-10-02 Jeff Johnston <jjohnstn@redhat.com>
3284
3285 * libc/sys/linux/include/stdint.h (SIZE_MAX): Fix value which should
3286 be size of size_t, not int.
3287 (SIZE_MIN): Remove.
3288 * libc/sys/linux/sys/stdint.h: Ditto.
3289
9d36d24f
JJ
32902008-10-02 Jeff Johnston <jjohnstn@redhat.com>
3291
1335bf3c 3292 * libc/include/sys/reent.h[_REENT_SMALL](_REENT_INIT_RAND48): Add
9d36d24f
JJ
3293 initialization of _rand_next to 1.
3294
fab8d8d8
SE
32952008-09-29 Peter O'Gorman <pogma@thewrittenword.com>
3296 Steve Ellcey <sje@cup.hp.com>
3297
3298 * configure: Regenerate for new libtool.
3299 * aclocal.m4: Ditto.
3300 * Makefile.in: Ditto.
3301 * newlib.hin: Ditto.
3302 * doc/Makefile.in: Ditto.
3303 * doc/configure: Ditto.
3304 * iconvdata/Makefile.in: Ditto.
3305 * iconvdata/aclocal.m4: Ditto.
3306 * iconvdata/configure: Ditto.
3307 * libc/Makefile.in: Ditto.
3308 * libc/aclocal.m4: Ditto.
3309 * libc/configure: Ditto.
3310 * libc/argz/Makefile.in: Ditto.
3311 * libc/ctype/Makefile.in: Ditto.
3312 * libc/errno/Makefile.in: Ditto.
3313 * libc/iconv/Makefile.in: Ditto.
3314 * libc/iconv/ccs/Makefile.in: Ditto.
3315 * libc/iconv/ccs/binary/Makefile.in: Ditto.
3316 * libc/iconv/ces/Makefile.in: Ditto.
3317 * libc/iconv/lib/Makefile.in: Ditto.
3318 * libc/locale/Makefile.in: Ditto.
3319 * libc/machine/Makefile.in: Ditto.
3320 * libc/machine/aclocal.m4: Ditto.
3321 * libc/machine/configure: Ditto.
3322 * libc/machine/a29k/Makefile.in: Ditto.
3323 * libc/machine/a29k/configure: Ditto.
3324 * libc/machine/arm/Makefile.in: Ditto.
3325 * libc/machine/arm/configure: Ditto.
3326 * libc/machine/bfin/Makefile.in: Ditto.
3327 * libc/machine/bfin/configure: Ditto.
3328 * libc/machine/cris/Makefile.in: Ditto.
3329 * libc/machine/cris/configure: Ditto.
3330 * libc/machine/crx/Makefile.in: Ditto.
3331 * libc/machine/crx/configure: Ditto.
3332 * libc/machine/d10v/Makefile.in: Ditto.
3333 * libc/machine/d10v/configure: Ditto.
3334 * libc/machine/d30v/Makefile.in: Ditto.
3335 * libc/machine/d30v/configure: Ditto.
3336 * libc/machine/fr30/Makefile.in: Ditto.
3337 * libc/machine/fr30/configure: Ditto.
3338 * libc/machine/frv/Makefile.in: Ditto.
3339 * libc/machine/frv/configure: Ditto.
3340 * libc/machine/h8300/Makefile.in: Ditto.
3341 * libc/machine/h8300/configure: Ditto.
3342 * libc/machine/h8500/Makefile.in: Ditto.
3343 * libc/machine/h8500/configure: Ditto.
3344 * libc/machine/hppa/Makefile.in: Ditto.
3345 * libc/machine/hppa/configure: Ditto.
3346 * libc/machine/i386/Makefile.in: Ditto.
3347 * libc/machine/i386/aclocal.m4: Ditto.
3348 * libc/machine/i386/configure: Ditto.
3349 * libc/machine/i960/Makefile.in: Ditto.
3350 * libc/machine/i960/configure: Ditto.
3351 * libc/machine/iq2000/Makefile.in: Ditto.
3352 * libc/machine/iq2000/configure: Ditto.
3353 * libc/machine/m32c/Makefile.in: Ditto.
3354 * libc/machine/m32c/configure: Ditto.
3355 * libc/machine/m32r/Makefile.in: Ditto.
3356 * libc/machine/m32r/configure: Ditto.
3357 * libc/machine/m68hc11/Makefile.in: Ditto.
3358 * libc/machine/m68hc11/configure: Ditto.
3359 * libc/machine/m68k/Makefile.in: Ditto.
3360 * libc/machine/m68k/configure: Ditto.
3361 * libc/machine/m88k/Makefile.in: Ditto.
3362 * libc/machine/m88k/configure: Ditto.
3363 * libc/machine/mep/Makefile.in: Ditto.
3364 * libc/machine/mep/configure: Ditto.
3365 * libc/machine/mips/Makefile.in: Ditto.
3366 * libc/machine/mips/configure: Ditto.
3367 * libc/machine/mn10200/Makefile.in: Ditto.
3368 * libc/machine/mn10200/configure: Ditto.
3369 * libc/machine/mn10300/Makefile.in: Ditto.
3370 * libc/machine/mn10300/configure: Ditto.
3371 * libc/machine/mt/Makefile.in: Ditto.
3372 * libc/machine/mt/configure: Ditto.
3373 * libc/machine/necv70/Makefile.in: Ditto.
3374 * libc/machine/necv70/configure: Ditto.
3375 * libc/machine/powerpc/Makefile.in: Ditto.
3376 * libc/machine/powerpc/configure: Ditto.
3377 * libc/machine/sh/Makefile.in: Ditto.
3378 * libc/machine/sh/configure: Ditto.
3379 * libc/machine/sparc/Makefile.in: Ditto.
3380 * libc/machine/sparc/configure: Ditto.
3381 * libc/machine/spu/Makefile.in: Ditto.
3382 * libc/machine/spu/configure: Ditto.
3383 * libc/machine/tic4x/Makefile.in: Ditto.
3384 * libc/machine/tic4x/configure: Ditto.
3385 * libc/machine/tic80/Makefile.in: Ditto.
3386 * libc/machine/tic80/configure: Ditto.
3387 * libc/machine/v850/Makefile.in: Ditto.
3388 * libc/machine/v850/configure: Ditto.
3389 * libc/machine/w65/Makefile.in: Ditto.
3390 * libc/machine/w65/configure: Ditto.
3391 * libc/machine/x86_64/Makefile.in: Ditto.
3392 * libc/machine/x86_64/configure: Ditto.
3393 * libc/machine/xscale/Makefile.in: Ditto.
3394 * libc/machine/xscale/configure: Ditto.
3395 * libc/machine/xstormy16/Makefile.in: Ditto.
3396 * libc/machine/xstormy16/configure: Ditto.
3397 * libc/machine/z8k/Makefile.in: Ditto.
3398 * libc/machine/z8k/configure: Ditto.
3399 * libc/misc/Makefile.in: Ditto.
3400 * libc/posix/Makefile.in: Ditto.
3401 * libc/reent/Makefile.in: Ditto.
3402 * libc/search/Makefile.in: Ditto.
3403 * libc/signal/Makefile.in: Ditto.
3404 * libc/stdio/Makefile.in: Ditto.
3405 * libc/stdio64/Makefile.in: Ditto.
3406 * libc/stdlib/Makefile.in: Ditto.
3407 * libc/string/Makefile.in: Ditto.
3408 * libc/sys/Makefile.in: Ditto.
3409 * libc/sys/aclocal.m4: Ditto.
3410 * libc/sys/configure: Ditto.
3411 * libc/sys/a29khif/Makefile.in: Ditto.
3412 * libc/sys/a29khif/configure: Ditto.
3413 * libc/sys/arc/Makefile.in: Ditto.
3414 * libc/sys/arc/configure: Ditto.
3415 * libc/sys/arm/Makefile.in: Ditto.
3416 * libc/sys/arm/configure: Ditto.
3417 * libc/sys/d10v/Makefile.in: Ditto.
3418 * libc/sys/d10v/configure: Ditto.
3419 * libc/sys/decstation/Makefile.in: Ditto.
3420 * libc/sys/decstation/configure: Ditto.
3421 * libc/sys/h8300hms/Makefile.in: Ditto.
3422 * libc/sys/h8300hms/configure: Ditto.
3423 * libc/sys/h8500hms/Makefile.in: Ditto.
3424 * libc/sys/h8500hms/configure: Ditto.
3425 * libc/sys/linux/Makefile.in: Ditto.
3426 * libc/sys/linux/aclocal.m4: Ditto.
3427 * libc/sys/linux/configure: Ditto.
3428 * libc/sys/linux/argp/Makefile.in: Ditto.
3429 * libc/sys/linux/cmath/Makefile.in: Ditto.
3430 * libc/sys/linux/dl/Makefile.in: Ditto.
3431 * libc/sys/linux/iconv/Makefile.in: Ditto.
3432 * libc/sys/linux/intl/Makefile.in: Ditto.
3433 * libc/sys/linux/linuxthreads/Makefile.in: Ditto.
3434 * libc/sys/linux/linuxthreads/aclocal.m4: Ditto.
3435 * libc/sys/linux/linuxthreads/configure: Ditto.
3436 * libc/sys/linux/linuxthreads/machine/Makefile.in: Ditto.
3437 * libc/sys/linux/linuxthreads/machine/aclocal.m4: Ditto.
3438 * libc/sys/linux/linuxthreads/machine/configure: Ditto.
3439 * libc/sys/linux/linuxthreads/machine/i386/Makefile.in: Ditto.
3440 * libc/sys/linux/linuxthreads/machine/i386/aclocal.m4: Ditto.
3441 * libc/sys/linux/linuxthreads/machine/i386/configure: Ditto.
3442 * libc/sys/linux/machine/Makefile.in: Ditto.
3443 * libc/sys/linux/machine/aclocal.m4: Ditto.
3444 * libc/sys/linux/machine/configure: Ditto.
3445 * libc/sys/linux/machine/i386/Makefile.in: Ditto.
3446 * libc/sys/linux/machine/i386/aclocal.m4: Ditto.
3447 * libc/sys/linux/machine/i386/configure: Ditto.
3448 * libc/sys/linux/net/Makefile.in: Ditto.
3449 * libc/sys/linux/stdlib/Makefile.in: Ditto.
3450 * libc/sys/m88kbug/Makefile.in: Ditto.
3451 * libc/sys/m88kbug/configure: Ditto.
3452 * libc/sys/mmixware/Makefile.in: Ditto.
3453 * libc/sys/mmixware/configure: Ditto.
3454 * libc/sys/netware/Makefile.in: Ditto.
3455 * libc/sys/netware/configure: Ditto.
3456 * libc/sys/rdos/Makefile.in: Ditto.
3457 * libc/sys/rdos/configure: Ditto.
3458 * libc/sys/rtems/Makefile.in: Ditto.
3459 * libc/sys/rtems/configure: Ditto.
3460 * libc/sys/sh/Makefile.in: Ditto.
3461 * libc/sys/sh/configure: Ditto.
3462 * libc/sys/sparc64/Makefile.in: Ditto.
3463 * libc/sys/sparc64/configure: Ditto.
3464 * libc/sys/sun4/Makefile.in: Ditto.
3465 * libc/sys/sun4/configure: Ditto.
3466 * libc/sys/sysmec/Makefile.in: Ditto.
3467 * libc/sys/sysmec/configure: Ditto.
3468 * libc/sys/sysnec810/Makefile.in: Ditto.
3469 * libc/sys/sysnec810/configure: Ditto.
3470 * libc/sys/sysnecv850/Makefile.in: Ditto.
3471 * libc/sys/sysnecv850/configure: Ditto.
3472 * libc/sys/sysvi386/Makefile.in: Ditto.
3473 * libc/sys/sysvi386/configure: Ditto.
3474 * libc/sys/sysvnecv70/Makefile.in: Ditto.
3475 * libc/sys/sysvnecv70/configure: Ditto.
3476 * libc/sys/tic80/Makefile.in: Ditto.
3477 * libc/sys/tic80/configure: Ditto.
3478 * libc/sys/w65/Makefile.in: Ditto.
3479 * libc/sys/w65/configure: Ditto.
3480 * libc/sys/z8ksim/Makefile.in: Ditto.
3481 * libc/sys/z8ksim/configure: Ditto.
3482 * libc/syscalls/Makefile.in: Ditto.
3483 * libc/time/Makefile.in: Ditto.
3484 * libc/unix/Makefile.in: Ditto.
3485 * libm/Makefile.in: Ditto.
3486 * libm/aclocal.m4: Ditto.
3487 * libm/configure: Ditto.
3488 * libm/common/Makefile.in: Ditto.
3489 * libm/machine/Makefile.in: Ditto.
3490 * libm/machine/aclocal.m4: Ditto.
3491 * libm/machine/configure: Ditto.
3492 * libm/machine/i386/Makefile.in: Ditto.
3493 * libm/machine/i386/aclocal.m4: Ditto.
3494 * libm/machine/i386/configure: Ditto.
3495 * libm/machine/spu/Makefile.in: Ditto.
3496 * libm/machine/spu/configure: Ditto.
3497 * libm/math/Makefile.in: Ditto.
3498 * libm/mathfp/Makefile.in: Ditto.
3499
9e71090b
JJ
35002008-09-26 Craig Howland <howland@LGSInnovations.com>
3501
3502 * libc/stdlib/getenv_r.c (_getenv_r): Modify to not match if name
3503 contains an equal sign.
3504
610eefef
JJ
35052008-09-25 Raphael Derossa Pereira <raphaelpereira@gmail.com>
3506
3507 * libc/include/pthread.h[_UNIX98_THREAD_MUTEX_ATTRIBUTES]: Add
3508 new pthread_mutexattr_gettype and pthread_mutexattr_settype
3509 prototypes.
3510 * libc/include/sys/types.h[_UNIX98_THREAD_MUTEX_ATTRIBUTES]: Add
3511 new mutex type values.
3512 (pthread_mutexattr_t)[_UNIX98_THREAD_MUTEX_ATTRIBUTES]: Add type
3513 field.
3514
57d7cfcd
JJ
35152008-09-24 Jeff Johnston <jjohnstn@redhat.com>
3516
3517 * libc/stdlib/setenv_r.c (_unsetenv_r): Modify to return -1 only if
3518 name is NULL, empty, or contains equal sign.
3519
37f996a2
JJ
35202008-09-24 Pawel Veselov <pawel.veselov@gmail.com>
3521
3522 Fix setenv/getenv/unsetenv to be OpenGroup compliant:
3523 * libc/include/stdlib.h (unsetenv, _unsetenv_r): Redefine with integer
3524 return types.
3525 * libc/stdlib/getenv_r.c (_findenv_r): Do no special processing with
3526 names that contain equal chars.
3527 * libc/stdlib/setenv.c: Redefine _unsetenv_r as returning int.
3528 * libc/stdlib/setenv_r.c (_setenv_r): Return -1 and set errno to
3529 EINVAL if name contains an equal sign. Do not remove any equal signs
3530 from the value.
3531 (_unsetenv_r): Modified to return int. Return -1 and set EINVAL
3532 if name contains equal sign. Return -1 if no variable(s) were found
3533 and return 0 otherwise.
3534
29212ab3
JJ
35352008-09-19 Eric Blake <ebb9@byu.net>
3536
3537 Supply missing POSIX errno values.
3538 * libc/include/sys/errno.h (ENOTRECOVERABLE, EOWNERDEAD): Define.
3539 * libc/string/strerror.c (strerror): Decode them, and ECANCELED.
3540
0b840b00
JJ
35412008-09-10 Ken Werner <ken.werner@de.ibm.com>
3542
3543 * libc/machine/spu/strcpy.h: Add missing header.
3544 * libc/machine/spu/spu_timer_slih.c: Remove unused Variable.
3545 * libm/machine/spu/headers/lgammaf4.h: Add type cast.
3546
da64e6bb
JJ
35472008-09-08 Jeff Johnston <jjohnstn@redhat.com>
3548
fc378cf7
BE
3549 * libc/sys/linux/dl/atomicity.h (exchange_and_add): Fix asm
3550 statement to use "m" instead of "0".
da64e6bb 3551 (atomic_add): Ditto.
1335bf3c 3552 * libc/sys/linux/linuxthreads/spinlock.c (__pthread_release): Ditto.
da64e6bb
JJ
3553 * libc/sys/linux/net/getaddrinfo.c: Add limit.h include.
3554 * libc/sys/linux/stdlib/glob.c: Ditto.
3555
27b975f6
JJ
35562008-09-04 Ken Werner <ken.werner@de.ibm.com>
3557
3558 * libm/machine/spu/headers/acosd2.h: Duplicated preamble text removed.
3559 * libm/machine/spu/headers/acosf4.h: Likewise.
3560 * libm/machine/spu/headers/acoshd2.h: Likewise.
3561 * libm/machine/spu/headers/acoshf4.h: Likewise.
3562 * libm/machine/spu/headers/asind2.h: Likewise.
3563 * libm/machine/spu/headers/asinf4.h: Likewise.
3564 * libm/machine/spu/headers/asinhd2.h: Likewise.
3565 * libm/machine/spu/headers/asinhf4.h: Likewise.
3566 * libm/machine/spu/headers/atan2d2.h: Likewise.
3567 * libm/machine/spu/headers/atan2f4.h: Likewise.
3568 * libm/machine/spu/headers/atand2.h: Likewise.
3569 * libm/machine/spu/headers/atanf4.h: Likewise.
3570 * libm/machine/spu/headers/atanhd2.h: Likewise.
3571 * libm/machine/spu/headers/atanhf4.h: Likewise.
3572 * libm/machine/spu/headers/cos_sin.h: Likewise.
3573 * libm/machine/spu/headers/cosd2.h: Likewise.
3574 * libm/machine/spu/headers/cosf4.h: Likewise.
3575 * libm/machine/spu/headers/coshd2.h: Likewise.
3576 * libm/machine/spu/headers/coshf4.h: Likewise.
3577 * libm/machine/spu/headers/divd2.h: Likewise.
3578 * libm/machine/spu/headers/divf4.h: Likewise.
3579 * libm/machine/spu/headers/erf_utils.h: Likewise.
3580 * libm/machine/spu/headers/erfcd2.h: Likewise.
3581 * libm/machine/spu/headers/erfcf4.h: Likewise.
3582 * libm/machine/spu/headers/erfd2.h: Likewise.
3583 * libm/machine/spu/headers/erff4.h: Likewise.
3584 * libm/machine/spu/headers/exp2d2.h: Likewise.
3585 * libm/machine/spu/headers/exp2f4.h: Likewise.
3586 * libm/machine/spu/headers/expd2.h: Likewise.
3587 * libm/machine/spu/headers/expf4.h: Likewise.
3588 * libm/machine/spu/headers/expm1d2.h: Likewise.
3589 * libm/machine/spu/headers/expm1f4.h: Likewise.
3590 * libm/machine/spu/headers/floord2.h: Likewise.
3591 * libm/machine/spu/headers/floorf4.h: Likewise.
3592 * libm/machine/spu/headers/hypotd2.h: Likewise.
3593 * libm/machine/spu/headers/hypotf4.h: Likewise.
3594 * libm/machine/spu/headers/isnand2.h: Likewise.
3595 * libm/machine/spu/headers/isnanf4.h: Likewise.
3596 * libm/machine/spu/headers/ldexpd2.h: Likewise.
3597 * libm/machine/spu/headers/ldexpf4.h: Likewise.
3598 * libm/machine/spu/headers/lgammad2.h: Likewise.
3599 * libm/machine/spu/headers/lgammaf4.h: Likewise.
3600 * libm/machine/spu/headers/log10d2.h: Likewise.
3601 * libm/machine/spu/headers/log1pd2.h: Likewise.
3602 * libm/machine/spu/headers/log1pf4.h: Likewise.
3603 * libm/machine/spu/headers/log2d2.h: Likewise.
3604 * libm/machine/spu/headers/log2f4.h: Likewise.
3605 * libm/machine/spu/headers/logbf4.h: Likewise.
3606 * libm/machine/spu/headers/logd2.h: Likewise.
3607 * libm/machine/spu/headers/logf4.h: Likewise.
3608 * libm/machine/spu/headers/nearbyintf4.h: Likewise.
3609 * libm/machine/spu/headers/nextafterd2.h: Likewise.
3610 * libm/machine/spu/headers/nextafterf4.h: Likewise.
3611 * libm/machine/spu/headers/powd2.h: Likewise.
3612 * libm/machine/spu/headers/powf4.h: Likewise.
3613 * libm/machine/spu/headers/recipd2.h: Likewise.
3614 * libm/machine/spu/headers/recipf4.h: Likewise.
3615 * libm/machine/spu/headers/rintf4.h: Likewise.
3616 * libm/machine/spu/headers/scalbnf4.h: Likewise.
3617 * libm/machine/spu/headers/signbitd2.h: Likewise.
3618 * libm/machine/spu/headers/sincosd2.h: Likewise.
3619 * libm/machine/spu/headers/sincosf4.h: Likewise.
3620 * libm/machine/spu/headers/sind2.h: Likewise.
3621 * libm/machine/spu/headers/sinf4.h: Likewise.
3622 * libm/machine/spu/headers/sinhd2.h: Likewise.
3623 * libm/machine/spu/headers/sinhf4.h: Likewise.
3624 * libm/machine/spu/headers/sqrtd2.h: Likewise.
3625 * libm/machine/spu/headers/sqrtf4.h: Likewise.
3626 * libm/machine/spu/headers/tand2.h: Likewise.
3627 * libm/machine/spu/headers/tanf4.h: Likewise.
3628 * libm/machine/spu/headers/tanhd2.h: Likewise.
3629 * libm/machine/spu/headers/tanhf4.h: Likewise.
3630 * libm/machine/spu/headers/tgammad2.h: Likewise.
3631 * libm/machine/spu/headers/tgammaf4.h: Likewise.
3632 * libm/machine/spu/headers/truncd2.h: Likewise.
3633 * libm/machine/spu/headers/truncf4.h: Likewise.
3634 * libm/machine/spu/headers/simdmath.h: Likewise.
3635
06e51402
JJ
36362008-09-04 Ken Werner <ken.werner@de.ibm.com>
3637
3638 * libm/machine/spu/headers/acoshf4.h: Rebase against current simdmath.
3639 * libm/machine/spu/headers/asinhd2.h: Likewise.
3640 * libm/machine/spu/headers/atanhd2.h: Likewise.
3641 * libm/machine/spu/headers/atanhf4.h: Likewise.
3642 * libm/machine/spu/headers/erff4.h: Likewise.
3643 * libm/machine/spu/headers/expd2.h: Likewise.
3644 * libm/machine/spu/headers/ldexpd2.h: Likewise.
3645 * libm/machine/spu/headers/lgammaf4.h: Likewise.
3646 * libm/machine/spu/headers/logbf4.h: Likewise.
3647 * libm/machine/spu/headers/nextafterd2.h: Likewise.
3648 * libm/machine/spu/headers/nextafterf4.h: Likewise.
3649 * libm/machine/spu/headers/recipd2.h: Likewise.
3650 * libm/machine/spu/headers/simdmath.h: Likewise.
3651 * libm/machine/spu/headers/acoshd2.: Likewise.
3652
db04da92
JJ
36532008-09-04 Ken Werner <ken.werner@de.ibm.com>
3654
3655 * libm/machine/spu/headers/cbrt.h: cbrt_factors[] declared.
3656 * libm/machine/spu/headers/cbrtf.h: Likewise.
1335bf3c 3657
2c73a5e6
JJ
36582008-09-01 Ken Werner <ken.werner@de.ibm.com>
3659
3660 * libc/machine/spu/include/spu_timer.h: spu_timebase function added.
3661 * libc/machine/spu/spu_timebase.c: New file.
3662 * libc/machine/spu/Makefile.am: Add new file.
3663 * libc/machine/spu/Makefile.in: Regenerated.
1335bf3c 3664
b6ab3057
JJ
36652008-08-28 Craig Howland <howland@LGSInnovations.com>
3666
3667 * libc/time/mktime.c (mktime): Fix tm_isdst value usage (allowing
3668 any positive value from user (per std) rather than depending
3669 upon 1).
1335bf3c 3670
60ac13a0
JJ
36712008-08-28 Corinna Vinschen <corinna@vinschen.de>
3672
3673 * libc/stdlib/wcsrtombs.c (_wcsrtombs_r): Optimize condition
3674 for accepting a converted character.
3675
cbeb4588
JJ
36762008-08-27 Sandra Loosemore <sandra@codesourcery.com>
3677
3678 * libc/libc.texinfo: Remove "LOCAL KLUGE" that prevents it
3679 from building pdfs.
3680 * libm/libm.texinfo: Likewise.
1335bf3c 3681
2d8d8175
JJ
36822008-08-27 Corinna Vinschen <corinna@vinschen.de>
3683
3684 * libc/stdlib/wcsrtombs.c (_wcsrtombs_r): Fix condition for
3685 accepting a converted character and continuing the loop.
1335bf3c 3686
410c1d12
JJ
36872008-07-24 Jeff Johnston <jjohnstn@redhat.com>
3688
3689 * libc/include/ctype.h (_ctype_): Restore for C++ backward
3690 compatability only.
3691
fa914bf8
JJ
36922008-07-21 Jeff Johnston <jjohnstn@redhat.com>
3693
3694 * libc/ctype/ctype_.c: Add new pointer __ctype_ptr__ which is one
3695 less than the old __ctype_ptr.
3696 * libc/ctype/isalnum.c: Use __ctype_ptr__.
3697 * libc/ctype/isalpha.c: Ditto.
3698 * libc/ctype/iscntrl.c: Ditto.
3699 * libc/ctype/isdigit.c: Ditto.
3700 * libc/ctype/islower.c: Ditto.
3701 * libc/ctype/isprint.c: Ditto.
3702 * libc/ctype/ispunct.c: Ditto.
3703 * libc/ctype/isspace.c: Ditto.
3704 * libc/ctype/isupper.c: Ditto.
3705 * libc/ctype/isxdigit.c: Ditto.
3706 * libc/include/ctype.h: Change ctype macros to use new __ctype_ptr__
3707 and add declaration of __ctype_ptr__. Remove older ctype table pointers
3708 from here even though they can still work.
3709
b47d83c6
JJ
37102008-07-18 Ken Werner <ken.werner@de.ibm.com>
3711
3712 * libc/machine/spu/strcpy.h: Fix error in previous patch.
3713
d2af9eff
JJ
37142008-07-17 Jeff Johnston <jjohnstn@redhat.com>
3715
3716 * libc/include/assert.h (__ASSERT_FUNC): Define to __FUNCTION__ when
3717 __STDC_VERSION__ < 199901L and __GNUC__ >= 2.
3718
eb19b8f9
JJ
37192008-07-17 Ken Werner <ken.werner@de.ibm.com>
3720
3721 * libc/machine/spu/strcpy.h: Pad null bytes if necessary.
3722
17bfd1e0
JJ
37232008-07-08 Kenji Tanaka <tanaka.ken2@jp.panasonic.com>
3724
3725 * libc/machine/mn10300/memset.S: Fix bug where return value is
3726 incorrectly set if number of bytes set is a multiple of 4.
3727
2adedff8
JJ
37282008-07-07 Hans-Peter Nilsson <hp@axis.com>
3729
3730 * libc/machine/mips/strncpy.c: Include stdint.h to get uintptr_t.
3731 (strncpy): Cast src to uintptr_t before checking alignment with "&".
3732
18a635e3
JJ
37332008-07-02 Jeff Johnston <jjohnstn@redhat.com>
3734
3735 * libc/argz/argz_count.c: Include stddef.h to get size_t.
3736 * libc/argz/argz_extract.c: Ditto.
3737 * libc/argz/argz_stringify.c: Ditto.
3738 * libc/search/hash.h: Ditto.
3739 * libc/sys/linux/include/sched.h: Ditto.
3740 * libc/sys/linux/sys/types.h: Ditto.
3741
a9f7d0a7
JJ
37422008-07-02 Jeff Johnston <jjohnstn@redhat.com>
3743
3744 * libc/machine/mips/strncpy.c (strncpy): Fix logic so unaligned
3745 source data is taken care of before loop unrolling.
3746
5592f939
HPN
37472008-06-25 Hans-Peter Nilsson <hp@axis.com>
3748
3749 Fix strict-aliasing issues with _strtod_r and Storeinc.
3750 * libc/stdlib/strtod.c (_strtod_r): Change local variables aadj,
3751 rv, rv0 from double to type U. Use accessor macros dval, dword0
3752 and dword1 for all accesses except for the ULtod call, where rv.i
3753 replaces the pointer cast.
3754 * libc/stdlib/mprec.h (U): Rename member L to i for easier re-use
3755 of access macros. Tweak comment.
3756 Remove #ifdef'd YES_ALIAS code.
3757 (dword0, dword1, dval): Define in terms of uncast union member
3758 access. Ditto for _DOUBLE_IS_32BITS variants.
3759 (Storeinc): Replace aliasing-flawed microoptimized definition with
3760 alternative suggested in comment. Remove now stale comment.
3761
eb3f08ac
CV
37622008-06-21 Corinna Vinschen <corinna@vinschen.de>
3763
3764 * libc/include/machine/setjmp.h (_longjmp): Define as function on
3765 Cygwin.
3766 (_setjmp): Ditto.
3767
8fa475e4
EB
37682008-06-18 Eric Blake <ebb9@byu.net>
3769
3770 Per Posix, strsignal returns non-const char*.
3771 * libc/include/string.h (strsignal): Fix return type.
3772
12b0cae7
JJ
37732008-06-17 Ken Werner <ken.werner@de.ibm.com>
3774
3775 * libc/machine/spu/sys/linux_syscalls.h: New file to add Linux syscall
3776 support.
4e73927b
JJ
3777
37782008-06-16 Ken Werner <ken.werner@de.ibm.com>
3779
3780 * libc/machine/spu/sys/dirent.h: Add extern "C" specifier if C++.
3781 * libc/machine/spu/sys/sched.h: Likewise.
3782 * libc/machine/spu/sys/syscall.h: Likewise.
1335bf3c 3783
b243d287
JJ
37842008-06-16 Ken Werner <ken.werner@de.ibm.com>
3785
3786 * libc/machine/spu/mk_syscalls: Provide .type and .size directives
3787 in generated assembler files.
3788 * libc/machine/spu/fprintf.S: Regenerate.
3789 * libc/machine/spu/fscanf.S: Regenerate.
3790 * libc/machine/spu/printf.S: Regenerate.
3791 * libc/machine/spu/scanf.S: Regenerate.
3792 * libc/machine/spu/snprintf.S: Regenerate.
3793 * libc/machine/spu/sprintf.S: Regenerate.
3794 * libc/machine/spu/sscanf.S: Regenerate.
3795 * libc/machine/spu/stack_reg_va.S (__stack_reg_va): Provide .type
3796 and .size directives.
3797 * libc/machine/spu/setjmp.S (setjmp): Likewise.
3798 (longjmp): Likewise.
1335bf3c 3799
2b4c1b41
JJ
38002008-06-11 Jeff Johnston <jjohnstn@redhat.com>
3801
3802 * libc/include/machine/_default_types.h: Fix GNUC check to
3803 handle 4.0 and greater.
3804
a0496b5e
JJ
38052008-06-09 Ken Werner <ken.werner@de.ibm.com>
3806
3807 * libc/machine/spu/Makefile.am: Add new files.
3808 * libc/machine/spu/Makefile.in: Likewise.
3809 * libc/machine/spu/include/spu_timer.h: New file to add timer support
d6438f13 3810 using interrupts.
a0496b5e
JJ
3811 * libc/machine/spu/spu_clock_stop.c: Likewise.
3812 * libc/machine/spu/spu_clock_svcs.c: Likewise.
3813 * libc/machine/spu/spu_timer_flih.S: Likewise.
3814 * libc/machine/spu/spu_timer_free.c: Likewise.
3815 * libc/machine/spu/spu_timer_internal.h: Likewise.
3816 * libc/machine/spu/spu_timer_slih.c: Likewise.
3817 * libc/machine/spu/spu_timer_slih_reg.c: Likewise.
3818 * libc/machine/spu/spu_timer_stop.c: Likewise.
3819 * libc/machine/spu/spu_timer_svcs.c: Likewise.
3820
3da06ba8
JJ
38212008-06-09 Ken Werner <ken.werner@de.ibm.com>
3822
3823 * libc/machine/spu/strcat.c: Return value fixed.
3824 * libc/machine/spu/strncat.c: Likewise.
1335bf3c 3825
2dd1fb6f
EB
38262008-05-28 Eric Blake <ebb9@byu.net>
3827
3828 Fix bug in previous patch.
3829 * libc/machine/i386/memset.S (memset): Mask second arg correctly.
3830
676ae290
JJ
38312008-05-27 Jeff Johnston <jjohnstn@redhat.com>
3832
3833 * libc/string/memset.c: Fix documented prototype to remove
3834 erroneous const attribute on first parameter.
3835
70bff2d5
JJ
38362008-05-26 Eric Blake <ebb9@byu.net>
3837
3838 Optimize the generic and x86 memchr.
3839 * libc/string/memchr.c (memchr) [!__OPTIMIZE_SIZE__]:
3840 Pre-align pointer so unaligned searches aren't penalized.
3841 * libc/machine/i386/memchr.S (memchr) [!__OPTIMIZE_SIZE__]: Word
3842 operations are faster than repnz byte searches.
2dd1fb6f 3843
a6bd72a2
JJ
38442008-05-26 Eric Blake <ebb9@byu.net>
3845
3846 Optimize the generic and x86 memset.
3847 * libc/string/memset.c (memset) [!__OPTIMIZE_SIZE__]:
3848 Pre-align pointer so unaligned stores aren't penalized.
2dd1fb6f 3849 * libc/machine/i386/memset.S (memset) [!__OPTIMIZE_SIZE__]:
a6bd72a2
JJ
3850 Pre-align pointer so unaligned stores aren't penalized. Prefer
3851 8-byte over 4-byte alignment. Reduce register pressure.
2dd1fb6f 3852
cae28869
JJ
38532008-05-26 Eric Blake <ebb9@byu.net>
3854
3855 Optimize the generic and x86 strlen.
3856 * libc/string/strlen.c (strlen) [!__OPTIMIZE_SIZE__]: Pre-align
3857 data so unaligned searches aren't penalized.
3858 * libc/machine/i386/strlen.S (strlen) [!__OPTIMIZE_SIZE__]:
3859 Word operations are faster than repnz byte searches.
3860
1fc30315
CV
38612008-05-23 Corinna Vinschen <corinna@vinschen.de>
3862
3863 * libc/include/sys/_default_fcntl.h: Include <sys/time.h> on Cygwin.
3864
3c77dcff
JJ
38652008-05-22 Jeff Johnston <jjohnstn@redhat.com>
3866
3867 * libc/include/sys/reent.h: Add _h_errno field.
3868 * libc/sys/linux/libc-symbols.h: Add default stubs for new libc macros
3869 now used in net directory.
3870 * libc/sys/linux/bits/libc-lock.h: Always define _IO_MTSAFE_IO.
3871 * libc/sys/linux/include/hesiod.h: Add needed macros for new code
3872 in net directory.
3873 * libc/sys/linux/include/netdb.h: Ditto.
3874 * libc/sys/linux/include/resolv.h: Ditto.
3875 * libc/sys/linux/include/stdint.h: Ditto.
3876 * libc/sys/linux/include/arpa/nameser.h: Ditto.
3877 * libc/sys/linux/include/net/ethernet.h: Ditto.
3878 * libc/sys/linux/include/net/if_ppp.h: Ditto.
3879 * libc/sys/linux/include/netinet/if_ether.h: Ditto.
3880 * libc/sys/linux/machine/i386/get_clockfreq.c: Remove static memmem.
3881 * libc/sys/linux/machine/i386/include/endian.h: Protect macros with
3882 flags to avoid duplicate definition.
3883 * libc/sys/linux/machine/i386/include/param.h: Ditto.
3884 * libc/sys/linux/net/Makefile.am: Modified to account for removed and
3885 added files.
3886 * libc/sys/linux/net/Makefile.in: Regenerated.
3887 * libc/sys/linux/net/base64.c: Replaced with glibc version of code.
3888 * libc/sys/linux/net/getaddrinfo.c: Ditto.
3889 * libc/sys/linux/net/getnameinfo.c: Ditto.
3890 * libc/sys/linux/net/getproto.c: Ditto.
3891 * libc/sys/linux/net/getservent.c: Ditto.
3892 * libc/sys/linux/net/inet_netof.c: Ditto.
3893 * libc/sys/linux/net/inet_lnaof.c: Ditto.
3894 * libc/sys/linux/net/ns_name.c: Ditto.
3895 * libc/sys/linux/net/ns_netint.c: Ditto.
3896 * libc/sys/linux/net/inet_ntoa.c: Ditto.
3897 * libc/sys/linux/net/ns_parse.c: Ditto.
3898 * libc/sys/linux/net/ns_print.c: Ditto.
3899 * libc/sys/linux/net/ns_ttl.c: Ditto.
3900 * libc/sys/linux/net/nsap_addr.c: Ditto.
3901 * libc/sys/linux/net/rcmd.c: Ditto.
3902 * libc/sys/linux/net/res_comp.c: Ditto.
3903 * libc/sys/linux/net/res_data.c: Ditto.
3904 * libc/sys/linux/net/res_debug.c: Ditto.
3905 * libc/sys/linux/net/res_init.c: Ditto.
3906 * libc/sys/linux/net/res_mkquery.c: Ditto.
3907 * libc/sys/linux/net/res_query.c: Ditto.
3908 * libc/sys/linux/net/res_send.c: Ditto.
3909 * libc/sys/linux/net/send.c: Ditto.
3910 * libc/sys/linux/stdlib/collate.c: Ditto.
3911 * libc/sys/linux/sys/ioctl.h: Ditto.
3912 * libc/sys/linux/sys/socket.h: Ditto.
3913 * libc/sys/linux/sys/unistd.h: Ditto.
3914 * libc/sys/linux/iconv/iconvconfig.c: Removed either because no longer
3915 used or because licensing includes advertising clause that cannot be
3916 ignored.
3917 * libc/sys/linux/iconv/strtab.c: Ditto.
3918 * libc/sys/linux/include/libc_private.h: Ditto.
3919 * libc/sys/linux/include/nsswitch.h: Ditto.
3920 * libc/sys/linux/include/net/if_atm.h: Ditto.
3921 * libc/sys/linux/include/net/if_media.h: Ditto.
3922 * libc/sys/linux/include/net/if_pppvar.h: Ditto.
3923 * libc/sys/linux/include/netinet/if_atm.h: Ditto.
3924 * libc/sys/linux/include/netinet/ip_flow.h: Ditto.
3925 * libc/sys/linux/intl/locale.alias: Ditto.
3926 * libc/sys/linux/net/addr2ascii.3: Ditto.
3927 * libc/sys/linux/net/bindresvport.c: Ditto.
3928 * libc/sys/linux/net/byteorder.3: Ditto.
3929 * libc/sys/linux/net/res_config.h: Ditto.
3930 * libc/sys/linux/net/ether_addr.c: Ditto.
3931 * libc/sys/linux/net/ethers.3: Ditto.
3932 * libc/sys/linux/net/getaddrinfo.3: Ditto.
3933 * libc/sys/linux/net/gethostbydns.c: Ditto.
3934 * libc/sys/linux/net/gethostbyht.c: Ditto.
3935 * libc/sys/linux/net/gethostbyname.3: Ditto.
3936 * libc/sys/linux/net/gethostbynis.c: Ditto.
3937 * libc/sys/linux/net/gethostnamadr.c: Ditto.
3938 * libc/sys/linux/net/getifaddrs.3: Ditto.
3939 * libc/sys/linux/net/getifaddrs.c: Ditto.
3940 * libc/sys/linux/net/getipnodebyname.3: Ditto.
3941 * libc/sys/linux/net/getnameinfo.3: Ditto.
3942 * libc/sys/linux/net/getnetbydns.c: Ditto.
3943 * libc/sys/linux/net/getnetbyht.c: Ditto.
3944 * libc/sys/linux/net/getnetbynis.c: Ditto.
3945 * libc/sys/linux/net/getnetent.3: Ditto.
3946 * libc/sys/linux/net/getnetnamadr.c: Ditto.
3947 * libc/sys/linux/net/getprotoent.3: Ditto.
3948 * libc/sys/linux/net/getprotoent.c: Ditto.
3949 * libc/sys/linux/net/getprotoname.c: Ditto.
3950 * libc/sys/linux/net/getservbyname.c: Ditto.
3951 * libc/sys/linux/net/getservbyport.c: Ditto.
3952 * libc/sys/linux/net/getservent.3: Ditto.
3953 * libc/sys/linux/net/herror.c: Ditto.
3954 * libc/sys/linux/net/hesiod.3: Ditto.
3955 * libc/sys/linux/net/hesiod.c: Ditto.
3956 * libc/sys/linux/net/if_indextoname.3: Ditto.
3957 * libc/sys/linux/net/inet.3: Ditto.
3958 * libc/sys/linux/net/inet6_option_space.3: Ditto.
3959 * libc/sys/linux/net/inet6_rthdr_space.3: Ditto.
3960 * libc/sys/linux/net/inet_makeaddr.c: Ditto.
3961 * libc/sys/linux/net/inet_net.3: Ditto.
3962 * libc/sys/linux/net/inet_network.c: Ditto.
3963 * libc/sys/linux/net/innetgr-stub.c: Ditto.
3964 * libc/sys/linux/net/ip6opt.c: Ditto.
3965 * libc/sys/linux/net/iso_addr.3: Ditto.
3966 * libc/sys/linux/net/iso_addr.c: Ditto.
3967 * libc/sys/linux/net/linkaddr.3: Ditto.
3968 * libc/sys/linux/net/linkaddr.c: Ditto.
3969 * libc/sys/linux/net/map_v4v6.c: Ditto.
3970 * libc/sys/linux/net/name6.c: Ditto.
3971 * libc/sys/linux/net/namespace.h: Ditto.
3972 * libc/sys/linux/net/ns.3: Ditto.
3973 * libc/sys/linux/net/ns_addr.c: Ditto.
3974 * libc/sys/linux/net/ns_ntoa.c: Ditto.
3975 * libc/sys/linux/net/nsdispatch.3: Ditto.
3976 * libc/sys/linux/net/nsdispatch.c: Ditto.
3977 * libc/sys/linux/net/nslexer.c: Ditto.
3978 * libc/sys/linux/net/nslexer.l: Ditto.
3979 * libc/sys/linux/net/nsparser.c: Ditto.
3980 * libc/sys/linux/net/nsparser.h: Ditto.
3981 * libc/sys/linux/net/nsparser.y: Ditto.
3982 * libc/sys/linux/net/rcmd.3: Ditto.
3983 * libc/sys/linux/net/rcmdsh.3: Ditto.
3984 * libc/sys/linux/net/res_mkupdate.c: Ditto.
3985 * libc/sys/linux/net/res_update.c: Ditto.
3986 * libc/sys/linux/net/resolver.3: Ditto.
3987 * libc/sys/linux/net/rthdr.c: Ditto.
3988 * libc/sys/linux/net/vars.c: Ditto.
3989 * libc/sys/linux/shlib-compat.h: New file.
3990 * libc/sys/linux/machine/i386/atomic.h: Ditto.
3991 * libc/sys/linux/net/XXX-lookup.c: Ditto.
3992 * libc/sys/linux/net/alias-lookup.c: Ditto.
3993 * libc/sys/linux/net/res_libc.c: Ditto.
3994 * libc/sys/linux/net/aliases.h: Ditto.
3995 * libc/sys/linux/net/check_pf.c: Ditto.
3996 * libc/sys/linux/net/databases.def: Ditto.
3997 * libc/sys/linux/net/digits_dots.c: Ditto.
3998 * libc/sys/linux/net/ether_aton.c: Ditto.
3999 * libc/sys/linux/net/ether_aton_r.c: Ditto.
4000 * libc/sys/linux/net/ether_hton.c: Ditto.
4001 * libc/sys/linux/net/ether_line.c: Ditto.
4002 * libc/sys/linux/net/ether_ntoa.c: Ditto.
4003 * libc/sys/linux/net/ether_ntoa_r.c: Ditto.
4004 * libc/sys/linux/net/ether_ntoh.c: Ditto.
4005 * libc/sys/linux/net/etherent.h: Ditto.
4006 * libc/sys/linux/net/ethers-lookup.c: Ditto.
4007 * libc/sys/linux/net/function.def: Ditto.
4008 * libc/sys/linux/net/getXXbyYY.c: Ditto.
4009 * libc/sys/linux/net/getXXbyYY_r.c: Ditto.
4010 * libc/sys/linux/net/getXXent.c: Ditto.
4011 * libc/sys/linux/net/getXXent_r.c: Ditto.
4012 * libc/sys/linux/net/getaliasent.c: Ditto.
4013 * libc/sys/linux/net/getaliasent_r.c: Ditto.
4014 * libc/sys/linux/net/getaliasname.c: Ditto.
4015 * libc/sys/linux/net/getaliasname_r.c: Ditto.
4016 * libc/sys/linux/net/gethstbyad.c: Ditto.
4017 * libc/sys/linux/net/gethstbyad_r.c: Ditto.
4018 * libc/sys/linux/net/gethstbynm.c: Ditto.
4019 * libc/sys/linux/net/gethstbynm2.c: Ditto.
4020 * libc/sys/linux/net/gethstbynm2_r.c: Ditto.
4021 * libc/sys/linux/net/gethstbynm_r.c: Ditto.
4022 * libc/sys/linux/net/gethstent.c: Ditto.
4023 * libc/sys/linux/net/gethstent_r.c: Ditto.
4024 * libc/sys/linux/net/getnetbyad.c: Ditto.
4025 * libc/sys/linux/net/getnetbyad_r.c: Ditto.
4026 * libc/sys/linux/net/getnetbynm.c: Ditto.
4027 * libc/sys/linux/net/getnetbynm_r.c: Ditto.
4028 * libc/sys/linux/net/getnetent.c: Ditto.
4029 * libc/sys/linux/net/getnetent_r.c: Ditto.
4030 * libc/sys/linux/net/getnetgrent.c: Ditto.
4031 * libc/sys/linux/net/getnetgrent_r.c: Ditto.
4032 * libc/sys/linux/net/getnssent.c: Ditto.
4033 * libc/sys/linux/net/getnssent_r.c: Ditto.
4034 * libc/sys/linux/net/getproto_r.c: Ditto.
4035 * libc/sys/linux/net/getprtent.c: Ditto.
4036 * libc/sys/linux/net/getprtent_r.c: Ditto.
4037 * libc/sys/linux/net/getprtname.c: Ditto.
4038 * libc/sys/linux/net/getprtname_r.c: Ditto.
4039 * libc/sys/linux/net/getrpcbyname.c: Ditto.
4040 * libc/sys/linux/net/getrpcbyname_r.c: Ditto.
4041 * libc/sys/linux/net/getrpcbynumber.c: Ditto.
4042 * libc/sys/linux/net/getrpcbynumber_r.c: Ditto.
4043 * libc/sys/linux/net/getrpcent.c: Ditto.
4044 * libc/sys/linux/net/getrpcent_r.c: Ditto.
4045 * libc/sys/linux/net/getservent_r.c: Ditto.
4046 * libc/sys/linux/net/getsrvbynm.c: Ditto.
4047 * libc/sys/linux/net/getsrvbynm_r.c: Ditto.
4048 * libc/sys/linux/net/getsrvbypt.c: Ditto.
4049 * libc/sys/linux/net/getsrvbypt_r.c: Ditto.
4050 * libc/sys/linux/net/grp-lookup.c: Ditto.
4051 * libc/sys/linux/net/herrno.c: Ditto.
4052 * libc/sys/linux/net/hosts-lookup.c: Ditto.
4053 * libc/sys/linux/net/ifaddrs.h: Ditto.
4054 * libc/sys/linux/net/ifreq.c: Ditto.
4055 * libc/sys/linux/net/ifreq.h: Ditto.
4056 * libc/sys/linux/net/in6_addr.c: Ditto.
4057 * libc/sys/linux/net/inet6_option.c: Ditto.
4058 * libc/sys/linux/net/inet_mkadr.c: Ditto.
4059 * libc/sys/linux/net/inet_net.c: Ditto.
4060 * libc/sys/linux/net/key-lookup.c: Ditto.
4061 * libc/sys/linux/net/local.h: Ditto.
4062 * libc/sys/linux/net/netgroup.h: Ditto.
4063 * libc/sys/linux/net/netgrp-lookup.c: Ditto.
4064 * libc/sys/linux/net/network-lookup.c: Ditto.
4065 * libc/sys/linux/net/not-cancel.h: Ditto.
4066 * libc/sys/linux/net/ns_samedomain.c: Ditto.
4067 * libc/sys/linux/net/nscd-types.h: Ditto.
4068 * libc/sys/linux/net/nss.h: Ditto.
4069 * libc/sys/linux/net/nsswitch.c: Ditto.
4070 * libc/sys/linux/net/nsswitch.h: Ditto.
4071 * libc/sys/linux/net/opensock.c: Ditto.
4072 * libc/sys/linux/net/proto-lookup.c: Ditto.
4073 * libc/sys/linux/net/pwd-lookup.c: Ditto.
4074 * libc/sys/linux/net/res_debug.h: Ditto.
4075 * libc/sys/linux/net/res_hconf.c: Ditto.
4076 * libc/sys/linux/net/res_hconf.h: Ditto.
4077 * libc/sys/linux/net/rexec.c: Ditto.
4078 * libc/sys/linux/net/rpc-lookup.c: Ditto.
4079 * libc/sys/linux/net/ruserpass.c: Ditto.
4080 * libc/sys/linux/net/service-lookup.c: Ditto.
4081 * libc/sys/linux/net/spwd-lookup.c: Ditto.
4082 * libc/sys/linux/net/nscd/nscd-client.h: Ditto.
4083 * libc/sys/linux/net/nscd/nscd_proto.h: Ditto.
4084
4962a945
EB
40852008-05-21 Eric Blake <ebb9@byu.net>
4086
ae47b14a
EB
4087 Optimize the generic strchr.
4088 * libc/string/strchr.c (strchr) [!__OPTIMIZE_SIZE__]: Pre-align
4089 data so unaligned searches aren't penalized. Special-case
4090 searching for 0.
4091
4962a945 4092 Optimize strchr for x86.
ae47b14a
EB
4093 * libc/machine/i386/strchr.S (strchr) [!__OPTIMIZE_SIZE__]:
4094 Pre-align data so unaligned searches aren't penalized.
4095 Special-case searching for 0.
4962a945 4096
cb1f8161
NC
40972008-05-20 Nick Clifton <nickc@redhat.com>
4098
4099 * libc/sys/sysnecv850/crt0.S (___dso_handle): Define (weak).
4100
a9309ff5
JJ
41012008-05-20 DJ Delorie <dj@redhat.com>
4102
4103 * libc/sys/sysnecv850/isatty.c (_isatty): Renamed from isatty.
4962a945 4104
26432b0b
JJ
41052008-05-14 Jeff Johnston <jjohnstn@redhat.com>
4106
4107 * libc/include/sys/reent.h: Change _REENT_INIT... macros to
4108 access macro parameter with parentheses around it.
4109
df93e6f1
MM
41102008-04-26 Mark Mitchell <mark@codesourcery.com>
4111
4112 * libc/include/stdint.h (SIZE_MIN): Remove.
4113 (SIZE_MAX): Define.
4114 * testsuite/newlib.stdlib/stdlib.exp: New.
4115 * testsuite/newlib.stdlib/size_max.c: Likewise.
4116
f77a1a88
EB
41172008-04-29 Eric Blake <ebb9@byu.net>
4118
4119 Fix 2008-04-14 regression in asprintf(ptr,"").
4120 * libc/stdio/asnprintf.c (asnprintf, _asnprintf_r): Avoid stdio
4121 baggage.
4122 * libc/stdio/asniprintf.c (asniprintf, _asniprintf_r): Likewise.
4123 * libc/stdio/asiprintf.c (asiprintf, _asiprintf_r): Likewise.
4124 * libc/stdio/vasniprintf.c (_vasniprintf_r): Likewise.
4125 * libc/stdio/vsnprintf.c (_vsnprintf_r): Likewise.
4126 * libc/stdio/vfprintf.c (_VFPRINTF_R) [STRING_ONLY]: Always malloc
4127 an initial buffer for asprintf.
4128
78970a51
CV
41292008-04-24 Corinna Vinschen <corinna@vinschen.de>
4130
4131 * libc/include/sys/stat.h: Guard at-functions with !__INSIDE_CYGWIN__.
4132 (fstatat): Fix type of third parameter.
4133
026f9d29
NC
41342008-04-25 Nick Clifton <nickc@redhat.com>
4135
4136 * libc/machine/arm/setjmp.S: Fix thumb2 support.
4137
51bef6a9
NC
41382008-04-24 Nick Clifton <nickc@redhat.com>
4139
4140 * libc/include/machine/ieeefp.h: Fix typo: _DOUBLE_IS_32_BITS
4141 should be _DOUBLE_IS_32BITS.
4142
0d02384a
CV
41432008-04-24 Corinna Vinschen <corinna@vinschen.de>
4144
4145 * libc/include/sys/stat.h (UTIME_NOW): Define for Cygwin.
4146 (UTIME_OMIT): Ditto.
4147 (utimensat): Declare for Cygwin.
4148 (futimens): Ditto.
4149
e2af45bf
JJ
41502008-04-23 Ken Werner <ken.werner@de.ibm.com>
4151
4152 * libc/include/_ansi.h: _LONG_LONG renamed to _LONG_LONG_TYPE.
4153 * libc/include/math.h: Likewise.
f77a1a88 4154
ca48eb65
CV
41552008-04-23 Corinna Vinschen <corinna@vinschen.de>
4156
4157 * libc/include/stdio.h (renameat): Declare for Cygwin.
4158 (symlinkat): Ditto.
4159 * libc/include/sys/unistd.h (readlink): Align declaration to POSIX.
4160 (faccessat): Declare for Cygwin.
4161 (fchownat): Ditto.
4162 (linkat): Ditto.
4163 (readlinkat): Ditto.
4164 * libc/include/sys/_default_fcntl.h (AT_FDCWD): Define for Cygwin.
4165 (AT_EACCESS): Ditto.
4166 (AT_SYMLINK_NOFOLLOW): Ditto.
4167 (AT_SYMLINK_FOLLOW): Ditto.
4168 (AT_REMOVEDIR): Ditto.
4169 (futimesat): Declare for Cygwin.
4170 (openat): Ditto.
4171 (unlinkat): Ditto.
4172 * libc/include/sys/stat.h (fchmodat): Ditto.
4173 (fstatat): Ditto.
4174 (mkdirat): Ditto.
4175 (mkfifoat): Ditto.
4176 (mknodat): Ditto.
4177
51bef6a9
NC
41782008-04-22 Nick Clifton <nickc@redhat.com>
4179
4180 * libc/machine/arm/setjmp.S: Add support for thumb2 multiple
4181 register load/store instructions.
4182
e9505050
JJ
41832008-04-16 Patrick Mansfield <patmans@us.ibm.com>
4184
4185 * libc/machine/spu/sys/errno.h: Use _impure_data, not _reent_data.
f77a1a88 4186
c2bd84bc
JJ
41872008-04-16 Patrick Mansfield <patmans@us.ibm.com>
4188
4189 * libc/machine/spu/impure.c: Add missing underscore to impure_data.
f77a1a88 4190
45b14289
JJ
41912008-04-14 Patrick Mansfield <patmans@us.ibm.com>
4192
4193 * libc/machine/spu/impure.c: New file, supply a non-static _impure_data.
f77a1a88 4194 * libc/machine/spu/Makefile.am: Add new file impure.c.
45b14289
JJ
4195 * libc/machine/spu/Makefile.in: Regenerate.
4196 * libc/machine/spu/sys/errno.h: Define errno to be _reent_data._errno.
f77a1a88 4197
eabd7de0
JJ
41982008-04-14 Jeff Johnston <jjohnstn@redhat.com>
4199
4200 * libc/stdio/Makefile.am: Build vfprintf.c and vfscanf.c with
4201 -DSTRING_ONLY defined with and without -DINTEGER_ONLY defined
4202 to build special versions for sprintf/sscanf family functions.
4203 * libc/stdio/Makefile.in: Regenerated.
f77a1a88
EB
4204 * libc/stdio/vfprintf.c[STRING_ONLY][INTEGER_ONLY](_VFPRINTF_R):
4205 Redefine to be _svfiprintf_r which is optimized to work with siprintf
eabd7de0
JJ
4206 family of functions (i.e. no I/O) and does not support floating-point.
4207 [STRING_ONLY][!INTEGER_ONLY](_VFPRINTF_R): Redefine to be
4208 _svfprintf_r which is optimized to work with sprintf family of
4209 functions and not use I/O.
f77a1a88 4210 [STRING_ONLY](__sprint_r): New string only version of static function.
eabd7de0
JJ
4211 designed to work with sprintf family of functions.
4212 * libc/stdio/vfscanf.c[STRING_ONLY][INTEGER_ONLY](_SVFSCANF_R):
4213 Redefine to be _ssvfiscanf_r which is optimized to work with siscanf
4214 family of functions (i.e. no I/O) and no float-point support.
4215 [STRING_ONLY][!INTEGER_ONLY](_SVFSCANF_R): Redefine to be
4216 __ssvfscanf_r which is optimized to work with sscanf family of
4217 functions and does not require I/O functions.
4218 * libc/stdio/asprintf.c: Call _svfprintf_r instead of _vfprintf_r.
4219 * libc/stdio/snprintf.c: Ditto.
4220 * libc/stdio/sprintf.c: Ditto.
4221 * libc/stdio/vasnprintf.c: Ditto.
4222 * libc/stdio/vasprintf.c: Ditto.
4223 * libc/stdio/siprintf.c: Call _svfiprintf_r instead of _vfiprintf_r.
4224 * libc/stdio/sniprintf.c: Ditto.
4225 * libc/stdio/vasiprintf.c: Ditto.
4226 * libc/stdio/vsiprintf.c: Ditto.
4227 * libc/stdio/vsniprintf.c: Ditto.
4228 * libc/stdio/vsprintf.c: Ditto.
4229 * libc/stdio/local.h: Add prototypes for _svfprintf_r, _svfiprintf_r,
4230 _ssvfscanf_r, and _ssvfiscanf_r.
4231 * libc/stdio/sscanf.c: Call _ssvfscanf_r instead of _svfscanf_r.
4232 * libc/stdio/vsscanf.c: Ditto.
4233 * libc/stdio/siscanf.c: Call _ssvfiscanf_r instead of _svfiscanf_r.
4234 * libc/stdio/vsiscanf.c: Ditto.
4235
6f810581
DD
42362008-04-04 DJ Delorie <dj@redhat.com>
4237
4238 * libm/machine/spu/configure: Regenerate with autoconf 2.61.
4239 * libc/sys/configure: Regenerate with autoconf 2.61.
4240 * libc/machine/configure: Regenerate with autoconf 2.61.
4241
bd6e30d5
JJ
42422008-04-01 Patrick Mansfield <patmans@us.ibm.com>
4243
4244 * libc/machine/spu/memcmp.c: New file for SPU optimized memcmp.
4245 * libc/machine/spu/strncmp.h: New file supply _strncmp_internal.
4246 * libc/machine/spu/Makefile.am: Add memcmp.c.
4247 * libc/machine/spu/Makefile.in: Rebuild.
4248 * libc/machine/spu/strncmp.c: Use _strncmp_internal.
4249
71f3a8f5
JJ
42502008-04-01 Patrick Mansfield <patmans@us.ibm.com>
4251
4252 * configure.host: Build SPU with -DREENTRANT_SYSCALLS_PROVIDED and
4253 -DMISSING_SYSCALL_NAMES.
4254
1d4a4944
JJ
42552008-04-01 Patrick Mansfield <patmans@us.ibm.com>
4256
4257 * libc/machine/spu/Makefile.am: Add assert.c.
4258 * libc/machine/spu/Makefile.in: Regenerate.
4259 * libc/machine/spu/assert.c: New file.
4260
3ab380aa
JJ
42612008-03-27 Patrick Mansfield <patmans@us.ibm.com>
4262
4263 * libc/include/reent.h: Define _func_r functions in this file to
4264 func if REENTRANT_SYSCALLS_PROVIDED and MISSING_SYSCALL_NAMES are
4265 defined.
f77a1a88 4266
4af0c5e8
CV
42672008-03-27 Corinna Vinschen <corinna@vinschen.de>
4268
4269 * libc/include/sys/unistd.h: Declare lockf(2) and define lockf
4270 constants when building for Cygwin.
4271
88348faf
JJ
42722008-03-11 Jeff Johnston <jjohnstn@redhat.com>
4273
d84985f7 4274 * libc/stdio/rgetc.c (__srget_r): Invoke CHECK_INIT to ensure
88348faf
JJ
4275 stdin gets resolved properly before refilling.
4276
c6228428
JJ
42772008-03-07 Jeff Johnston <jjohnstn@redhat.com>
4278
4279 * libc/include/getopt.h: Hide newlib extensions under
4280 the __need_getopt_newlib flag.
4281 * libc/stdlib/getopt.c: #define __need_getopt_newlib before including
4282 getopt.h. Put entire code under !HAVE_GETOPT to support platforms
4283 with their own getopt implementation.
4284 * configure.host: Specify HAVE_GETOPT for x86-linux.
4285
0382d267
JJ
42862008-03-07 Jeff Johnston <jjohnstn@redhat.com>
4287
4288 * libc/include/sys/reent.h(_REENT_SMALL_CHECK_INIT): Specify
4289 this macro completely instead of referring to CHECK_STD_INIT which
4290 is only found in libc/stdio/local.h.
4291 * libc/stdio/dprintf.c: Add include of local.h.
4292 * libc/stdio/vdprintf.c: Ditto.
4293 * libc/stdio/vdiprintf.c: Ditto.
4294
beb0ab64
EB
42952008-03-04 Eric Blake <ebb9@byu.net>
4296
4297 Fix strtod("nan()", ptr).
4298 * libc/stdlib/gdtoa-hexnan.c (hexnan): When the optional
4299 n-char-sequence is omitted, still parse the ().
4300
9ae00e9e
EB
43012008-03-03 Eric Blake <ebb9@byu.net>
4302
4303 Fix ftell bug after ungetc.
4304 * libc/stdio/ftell.c (_ftell_r): Don't flush ungetc buffer on
4305 ftell.
4306 * libc/stdio64/ftello64.c (_ftello64_r): Likewise.
4307 * libc/stdio/fflush.c (_fflush_r): Clear unget buffer when
4308 repositioning underlying fd offset.
4309
be62101c
JJ
43102008-03-02 Jeff Johnston <jjohnstn@redhat.com>
4311
4312 * libc/include/getopt.h (no_argument): Added for glibc compatibility.
4313 (required_argument, optional_argument): Ditto.
4314
76ff710c
JJ
43152008-02-29 Gregory Pietsch <gpietsch@comcast.net>
4316
4317 * libc/stdlib/getopt.c (getopt_internal): Rewrite to accept
4318 data area so as to support reentrant calls. Change all callers
4319 to fill in data area with global values and restore any changes
4320 to the global values after call.
4321 (__getopt_r, __getopt_long_r, __getopt_long_only_r): New routines
4322 to support reentrancy that add a data area argument.
4323 * libc/include/getopt.h: Add new _r routines and provide macros
4324 so they can be called with using double-underscores.
4325
7a44c13e
EB
43262008-02-21 Eric Blake <ebb9@byu.net>
4327
4328 Fix strtod("-0x", NULL).
4329 * libc/stdlib/strtod.c (_strtod_r): Fall back to 0 if hex parse
4330 fails.
4331
de20111e
JJ
43322008-02-12 Jeff Johnston <jjohnstn@redhat.com>
4333
4334 * libc/machine/powerpc/vfprintf.c (_VFPRINTF_R): Prepare
4335 for user specifying --disable-newlib-io-long-long on configure.
4336 Call _fflush_r instead of fflush. For _mbtowc_r, pass the
4337 reentrant pointer passed in rather than _REENT.
4338
f46f40b5
JJ
43392008-02-12 Peter Rosin <peda@lysator.liu.se>
4340
4341 * libc/stdlib/getopt.c (getopt_internal): Handle optional
4342 arguments better for long options and short options not
4343 appearing as the first option in a sequence.
4344
74d928bf
JJ
43452008-02-11 Patrick Mansfield <patmans@us.ibm.com>
4346
4347 * libc/machine/spu/straddr.h: New file, supplies _straddr.
4348 * libc/machine/spu/strcat.c: Use _straddr and _strcpy.
4349 * libc/machine/spu/strcpy.c: Use _strcpy.
4350 * libc/machine/spu/strcpy.h: Supply _strcpy for optimized SPU
4351 str[n]cpy and str[n]cat.
4352 * libc/machine/spu/strncat.c: Use _straddr and _strcpy.
4353 * libc/machine/spu/strncpy.c: Use _strcpy.
7a44c13e 4354
9b924fc3
JJ
43552008-02-11 Patrick Mansfield <patmans@us.ibm.com>
4356
4357 * libc/machine/spu/strlen.c: Remove the len variable and unneeded
4358 calculation of its value.
7a44c13e 4359
77ec26b0
HPN
43602008-01-25 Hans-Peter Nilsson <hp@bitrange.com>
4361
4362 * libc/sys/mmixware/isatty.c (_isatty): Renamed from isatty.
4363 Make ISO C.
4364
226f5a32
DD
43652008-01-21 DJ Delorie <dj@redhat.com>
4366
4367 * libc/sys/sh/syscalls.c (_isatty): New.
4368
cece11c5
JJ
43692008-01-21 Neal H. Walfield <neal@gnu.org>
4370
4371 * Makefile.am (crt1.o): Use correct source.
4372 * Makefile.in: Regenerated.
4373
dc26a86f
EB
43742008-01-15 Eric Blake <ebb9@byu.net>
4375
4376 * libc/string/Makefile.am (ELIX_2_SOURCES): Fix definition.
4377 * libc/string/Makefile: Regenerate.
4378
12df8a5b
CV
43792008-01-15 Corinna Vinschen <corinna@vinschen.de>
4380
4381 * libc/include/machine/setjmp.h (__SIGMASK_FUNC): Define as
4382 pthread_sigmask or sigprocmask depending on _POSIX_THREADS.
4383 (sigsetjmp): Use __SIGMASK_FUNC.
4384 (siglongjmp): Ditto.
4385 (_setjmp): Define as macro.
4386 (_longjmp): Ditto.
4387
40617efc
EB
43882008-01-11 Eric Blake <ebb9@byu.net>
4389
4390 Make strstr and strcasestr O(n), not O(n^2); add memmem.
4391 * libc/string/str-two-way.h: New file.
4392 * libc/string/memmem.c (memmem): New file.
4393 * libc/include/string.h (memmem): Declare for all platforms.
4394 * libc/string/strstr.c (strstr): Provide O(n) implementation when
4395 not optimizing for space.
4396 * libc/string/strcasestr.c (strcasestr): Likewise.
4397 * libc/string/Makefile.am (ELIX_SOURCES): Rename to...
4398 (ELIX_2_SOURCES): ...this.
4399 (ELIX_4_SOURCES): New category, for memmem.
4400 (lib_a_SOURCES, libstring_la_SOURCES): Build new file.
4401 (CHEWOUT_FILES): Build documentation for memmem.
4402 * libc/string/strings.tex: Include new docs.
4403
ceb32a18
JJ
44042008-01-08 Jeff Johnston <jjohnstn@redhat.com>
4405
4406 * libc/machine/m68k/memcpy.S: Remove % from register references
4407 as this is already handled by m68kasm.h.
4408 * libc/machine/m68k/memset.S: Ditto.
4409
a3211370
JJ
44102008-01-07 Jeff Johnston <jjohnstn@redhat.com>
4411
4412 * libc/machine/m68k/m68kasm.h: New file.
4413 * libc/machine/m68k/setjmp.S: Remove common definitions and
4414 place in m68kasm.h. Include "m68kasm.h".
4415 * libc/machine/m68k/memcpy.S: Include "m68kasm.h" and use
4416 SYM() macro when referencing function name.
4417 * libc/machine/m68k/memset.S: Ditto.
4418
a639937a
JJ
44192008-01-03 Jeff Johnston <jjohnstn@redhat.com>
4420
4421 Make isatty syscall handling consistent with other newlib syscalls.
4422
4423 * libc/include/_syslist.h: Add _isatty.
4424 * libc/include/reent.h: Add _isatty_r.
4425 * libc/include/sys/unistd.h: Add _isatty.
4426 * libc/posix/Makefile.am: Add new _isatty.c file.
4427 * libc/posix/Makefile.in: Regenerated.
4428 * libc/posix/_isatty.c: New file.
4429 * libc/posix/isatty.c: Changed to call _isatty().
4430 * libc/reent/Makefile.am: Add new isattyr.c file.
4431 * libc/reent/Makefile.in: Regenerated.
4432 * libc/reent/isattyr.c: New file.
4433 * libc/stdio/freopen.c: Changed to call _isatty_r().
4434 * libc/stdio/makebuf.c: Ditto.
4435 * libc/sys/a29khif/_isatty.S: Change isatty to _isatty.
4436 * libc/sys/arc/isatty.c: Ditto.
4437 * libc/sys/arm/syscalls.c: Ditto.
4438 * libc/sys/d10v/syscalls.c: Ditto.
4439 * libc/sys/h8300hms/syscalls.c: Ditto.
4440 * libc/sys/h8500hms/syscalls.c: Ditto.
4441 * libc/sys/linux/Makefile.am: Add new isatty.c file.
4442 * libc/sys/linux/Makefile.in: Regenerated.
4443 * libc/sys/linux/isatty.c: New file.
4444 * libc/syscalls/Makefile.am: Add new sysisatty.c file.
4445 * libc/syscalls/Makefile.in: Regenerated.
4446 * libc/syscalls/sysisatty.c: New file.
4447
7c8bd7a0
JJ
44482008-01-02 Jeff Johnston <jjohnstn@redhat.com>
4449
4450 * libc/syscalls/sysclose.c: Always call reentrant version of the
4451 underlying syscall since one is guaranteed to exist in libc/reent.
4452 * libc/syscalls/sysexecve.c: Ditto.
4453 * libc/syscalls/sysfcntl.c: Ditto.
4454 * libc/syscalls/sysfork.c: Ditto.
4455 * libc/syscalls/sysfstat.c: Ditto.
4456 * libc/syscalls/sysgetpid.c: Ditto.
4457 * libc/syscalls/sysgettod.c: Ditto.
4458 * libc/syscalls/syskill.c: Ditto.
4459 * libc/syscalls/syslink.c: Ditto.
4460 * libc/syscalls/syslseek.c: Ditto.
4461 * libc/syscalls/sysopen.c: Ditto.
4462 * libc/syscalls/sysread.c: Ditto.
4463 * libc/syscalls/syssbrk.c: Ditto.
4464 * libc/syscalls/sysstat.c: Ditto.
4465 * libc/syscalls/systimes.c: Ditto.
4466 * libc/syscalls/sysunlink.c: Ditto.
4467 * libc/syscalls/syswait.c: Ditto.
4468 * libc/syscalls/syswrite.c: Ditto.
4469
26b84293
JJ
44702007-12-19 Jeff Johnston <jjohnstn@redhat.com>
4471
7a44c13e
EB
4472 * NEWS: Update with 1.16.0 info.
4473 * README: Ditto.
4474 * acinclude.m4: Change version number to 1.16.0.
4475 * aclocal.m4: Regenerated.
4476 * configure: Ditto.
4477 * doc/aclocal.m4: Ditto.
4478 * doc/configure: Ditto.
4479 * libc/*/aclocal.m4: Ditto.
4480 * libc/*/configure: Ditto.
4481 * libc/libc.texinfo: Ditto.
4482 * libm/*/aclocal.m4: Ditto.
4483 * libm/*/configure: Ditto.
4484 * libm/libm.texinfo: Ditto.
4485 * libc/sys/linux/shared.ld: Add VERS_1.16.
26b84293 4486
6af69de3
JJ
44872007-12-19 Jeff Johnston <jjohnstn@redhat.com>
4488
4489 * libc/string/strcasestr.c: Remove id macro.
4490 * libc/sys/linux/linuxthreads/attr.c: Fix up sched_priority
4491 field reference to be __sched_priority.
4492 * libc/sys/linux/linuxthreads/joinrace.c: Ditto.
4493 * libc/sys/linux/linuxthreads/manager.c: Ditto.
4494 * libc/sys/linux/stdlib/collate.c: Remove id macro.
4495 * libc/sys/linux/stdlib/collcmp.c: Ditto.
4496 * libc/sys/linux/stdlib/engine.c: Ditto.
4497 * libc/sys/linux/stdlib/fnmatch.c: Ditto.
4498 * libc/sys/linux/stdlib/glob.c: Ditto.
4499 * libc/sys/linux/stdlib/reallocf.c: Ditto.
4500 * libc/sys/linux/stdlib/regcomp.c: Ditto.
4501 * libc/sys/linux/stdlib/regerror.c: Ditto.
4502 * libc/sys/linux/stdlib/regexec.c: Ditto.
4503 * libc/sys/linux/stdlib/regfree.c: Ditto.
4504 * libc/sys/linux/sys/cdefs.h: Replace with latest version.
4505 * libc/sys/linux/include/argp.h: Ditto.
4506 * libc/sys/linux/sys/libc-lock.h: New file.
4507 * libc/sys/linux/sys/stdint.h: Ditto.
4508 * libc/sys/linux/include/sched.h: New file.
4509
3cc8a378
JJ
45102007-12-19 Dave Korn <dave.korn@artimi.com>
4511 Jeff Johnston <jjohnstn@redhhat.com>
4512
4513 * libc/include/_ansi.h: Add _LONG_LONG definition.
4514 * libc/include/math.h (llrint, llrintf, rintl, lrintl, llrintl): Add
4515 prototypes.
4516 * libc/machine/i386/machine/fastmath.h: Add support for new i386
4517 fast math versions of rint, lrint, and llrint family functions.
4518 * libm/machine/i386/Makefile.am: Add new files.
4519 * libm/machine/i386/Makefile.in: Regenerated.
4520 * libm/machine/i386/f_llrint.c, libm/machine/i386/f_lrint.c,
4521 libm/machine/i386/f_rint.c, libm/machine/i386/f_llrintf.c,
4522 libm/machine/i386/f_lrintf.c, libm/machine/i386/f_rintf.c,
4523 libm/machine/i386/f_llrintl.c, libm/machine/i386/f_lrintl.c,
4524 libm/machine/i386/f_rintl.c: New files with fast math implementations.
4525
41e94f24
JJ
45262007-12-19 Jeff Johnston <jjohnstn@redhat.com>
4527
4528 * libc/include/sys/features.h: Add checks for C90 compilers using
4529 -ansi.
4530
ac26b727
CV
45312007-12-19 Corinna Vinschen <corinna@vinschen.de>
4532
4533 * libc/include/wchar.h: Add prototypes for wcpcpy and wcpncpy.
4534 * libc/string/Makefile.am (ELIX_SOURCES): Add wcpcpy.c and
4535 wcpncpy.c.
4536 (CHEWOUT_FILES): Add wcpcpy.def and wcpncpy.def.
4537 * libc/string/Makefile.in: Regenerate.
4538 * libc/string/wcpcpy.c: New file.
4539 * libc/string/wcpncpy.c: New file.
4540 * libc/string/wcstrings.tex: Add wcpcpy and wcpncpy.
4541
478df8bb
CV
45422007-12-19 Corinna Vinschen <corinna@vinschen.de>
4543
4544 * libc/stdio/vfprintf.c (_VFPRINTF_R): Use correct pointer in call to
4545 _wcsrtombs_r.
4546
60bef55d
JJ
45472007-11-19 Nick Clifton <nickc@redhat.com>
4548
4549 * libc/machine/mn10300/Makefile.am (CCASFLAGS): Add -Wa,--gdwarf-2.
4550 * libc/machine/mn10300/Makefile.in: Regenerate.
4551 * libc/machine/mn10300/memchar.S: Remove redundant labels. Add
4552 .debug_frame section.
4553 * libc/machine/mn10300/memcmp.S: Likewise.
4554 * libc/machine/mn10300/memcpy.S: Likewise.
4555 * libc/machine/mn10300/memset.S: Likewise.
4556 * libc/machine/mn10300/strchr.S: Likewise.
4557 * libc/machine/mn10300/strcmp.S: Likewise.
4558 * libc/machine/mn10300/strcpy.S: Likewise.
4559 * libc/machine/mn10300/strlen.S: Likewise.
4560
45612007-11-15 Jeff Johnston <jjohnstn@redhat.com>
4562
4563 * libc/include/sys/_default_fcntl.h: New header file that
4564 is the default version of sys/fcntl.h.
4565 * libc/include/sys/fcntl.h: Changed to simply include
4566 sys/_default_fcntl.h.
4567 * libc/sys/arm/sys/fcntl.h: New file that includes
4568 sys/_default_fcntl.h and defines O_BINARY.
4569
478df8bb 45702007-11-08 Corinna Vinschen <corinna@vinschen.de>
815774e8
CV
4571
4572 * libc/include/sys/unistd.h: Remove Cygwin definition of MAXPATHLEN.
4573
7b4cad4a
DB
45742007-11-07 Dave Brolley <brolley@redhat.com>
4575
4576 * libc/machine/configure: Regenerated to pick up mep-elf changes.
40617efc 4577
7b4cad4a
DB
4578 * Contribute mep-elf from Red Hat
4579 2006-10-27 DJ Delorie <dj@redhat.com>
4580
4581 * libc/include/machine/setjmp.h: Add MeP support.
4582
4583 2003-04-17 DJ Delorie <dj@redhat.com>
4584
4585 * configure.host (mep-*-*): Support "long long" type.
4586
4587 2001-06-06 DJ Delorie <dj@redhat.com>
4588
4589 * libc/include/machine/ieeefp.h (mep): Support little endian too.
4590
4591 2001-05-14 DJ Delorie <dj@redhat.com>
4592
4593 * configure.host: Add mep's machine_dir.
4594 * libc/include/setjmp.h: Add mep support.
4595 * libc/machine/mep: New.
4596 * libc/machine/mep/setjmp.S: New, support mep's setjmp/longjmp.
4597
4598 2001-05-04 DJ Delorie <dj@redhat.com>
4599
4600 * configure.host: Add mep.
4601 * libc/include/machine/ieeefp.h: Ditto.
4602
69bfb481
DD
46032007-10-31 DJ Delorie <dj@redhat.com>
4604
4605 * libc/signal/signal.c (_raise_r): Don't attempt to initialize the
4606 signal table, just use a default, in case initialization cause
4607 recursion.
4608
2a3a02a6
JJ
46092007-10-23 Jeff Johnston <jjohnstn@redhat.com>
4610
4611 * libc/stdlib/wcstombs_r.c: Add SUSV2 support for calculating
4612 size if output buffer is NULL.
4613
70317d85
JJ
46142007-10-17 Jeff Johnston <jjohnstn@redhat.com>
4615
4616 * libm/mathfp/s_logarithm.c: Fix error introduced by previous
4617 fix when handling negative input values. Make function
4618 consistent with math directory and glibc version such that
4619 inf and nan values return inf and nan respectively with no
4620 errno setting.
4621 * libm/mathfp/sf_logarithm.c: Ditto.
4622 * libm/math/w_log.c: Set errno to ERANGE when input is 0.0.
4623 * libm/math/wf_log.c: Ditto.
4624 * libm/math/w_log10.c: Ditto.
4625 * libm/math/wf_log10.c: Ditto.
4626
923f9573
JJ
46272007-10-17 Jeff Johnston <jjohnstn@redhat.com>
4628
4629 * libm/mathfp/s_logarithm.c: Fix case where input is 0 to
4630 return -inf.
4631 * libm/mathfp/sf_logarithm.c: Ditto.
4632
8b630840
JJ
46332007-10-17 Jeff Johnston <jjohnstn@redhat.com>
4634
4635 * libc/machine/i386/machine/fastmath.h: New file.
4636
c99e78b8
EB
46372007-10-13 Eric Blake <ebb9@byu.net>
4638
4639 * libc/stdio/vfprintf.c (_VFPRINTF_R) [__OPTIMIZE_SIZE__]:
4640 Correctly nest else within conditionals.
4641 Reported by Artur Lipowski.
4642
97f0a0ec
NC
46432007-10-09 Nick Clifton <nickc@redhat.com>
4644
4645 * libc/sys/linux/dl/do-lookup.h (FCT): Support symbols with
4646 the STT_COMMON type.
4647
b7bc4ccc
BE
46482007-10-09 Ben Elliston <bje@au.ibm.com>
4649
4650 * libm/machine/spu/headers/acosd2.h: Include spu_intrinsics.h
4651 before simdmath.h to get a definition for `vector'.
4652 * libm/machine/spu/headers/asind2.h: Likewise.
4653
1671fbe1
JJ
46542007-09-28 Patrick Mansfield <patmans@us.ibm.com>
4655
4656 * libm/machine/spu/headers/dom_chkd_less_than.h: New file.
4657 * libm/machine/spu/headers/dom_chkd_negone_one.h: Ditto.
4658 * libm/machine/spu/headers/dom_chkf_less_than.h: Ditto.
4659 * libm/machine/spu/headers/dom_chkf_negone_one.h: Ditto.
4660 * libm/machine/spu/headers/acos.h: Add domain check.
4661 * libm/machine/spu/headers/acosf.h: Ditto.
4662 * libm/machine/spu/headers/acosh.h: Ditto.
4663 * libm/machine/spu/headers/acoshf.h: Ditto.
4664 * libm/machine/spu/headers/asin.h: Ditto.
4665 * libm/machine/spu/headers/asinf.h: Ditto.
4666 * libm/machine/spu/headers/atanh.h: Ditto.
4667 * libm/machine/spu/headers/atanhf.h: Ditto.
4668 * libm/machine/spu/headers/fmod.h: Ditto.
4669 * libm/machine/spu/headers/fmodf.h: Ditto.
4670 * libm/machine/spu/headers/log.h: Ditto.
4671 * libm/machine/spu/headers/log10.h: Ditto.
4672 * libm/machine/spu/headers/log1p.h: Ditto.
4673 * libm/machine/spu/headers/log1pf.h: Ditto.
4674 * libm/machine/spu/headers/log2.h: Ditto.
4675 * libm/machine/spu/headers/log2f.h: Ditto.
4676 * libm/machine/spu/headers/sqrt.h: Ditto.
4677 * libm/machine/spu/headers/sqrtf.h: Ditto.
4678 * libm/machine/spu/headers/tgamma.h: Ditto.
4679 * libm/machine/spu/headers/tgammaf.h: Ditto.
4680
e30a7b84
JJ
46812007-09-28 Patrick Mansfield <patmans@us.ibm.com>
4682
4683 * libm/machine/spu/Makefile.am: Add new C files.
4684 * libm/machine/spu/Makefile.in: Regenerate.
4685 * libm/machine/spu/headers/acos.h: New file.
4686 * libm/machine/spu/headers/acosd2.h: Ditto.
4687 * libm/machine/spu/headers/acosf.h: Ditto.
4688 * libm/machine/spu/headers/acosf4.h: Ditto.
4689 * libm/machine/spu/headers/acosh.h: Ditto.
4690 * libm/machine/spu/headers/acoshd2.h: Ditto.
4691 * libm/machine/spu/headers/acoshf.h: Ditto.
4692 * libm/machine/spu/headers/acoshf4.h: Ditto.
4693 * libm/machine/spu/headers/asin.h: Ditto.
4694 * libm/machine/spu/headers/asind2.h: Ditto.
4695 * libm/machine/spu/headers/asinf.h: Ditto.
4696 * libm/machine/spu/headers/asinf4.h: Ditto.
4697 * libm/machine/spu/headers/asinh.h: Ditto.
4698 * libm/machine/spu/headers/asinhd2.h: Ditto.
4699 * libm/machine/spu/headers/asinhf.h: Ditto.
4700 * libm/machine/spu/headers/asinhf4.h: Ditto.
4701 * libm/machine/spu/headers/atan.h: Ditto.
4702 * libm/machine/spu/headers/atan2.h: Ditto.
4703 * libm/machine/spu/headers/atan2d2.h: Ditto.
4704 * libm/machine/spu/headers/atan2f.h: Ditto.
4705 * libm/machine/spu/headers/atan2f4.h: Ditto.
4706 * libm/machine/spu/headers/atand2.h: Ditto.
4707 * libm/machine/spu/headers/atanf4.h: Ditto.
4708 * libm/machine/spu/headers/atanh.h: Ditto.
4709 * libm/machine/spu/headers/atanhd2.h: Ditto.
4710 * libm/machine/spu/headers/atanhf.h: Ditto.
4711 * libm/machine/spu/headers/atanhf4.h: Ditto.
4712 * libm/machine/spu/headers/cos.h: Ditto.
4713 * libm/machine/spu/headers/cos_sin.h: Ditto.
4714 * libm/machine/spu/headers/cosd2.h: Ditto.
4715 * libm/machine/spu/headers/cosf.h: Ditto.
4716 * libm/machine/spu/headers/cosf4.h: Ditto.
4717 * libm/machine/spu/headers/cosh.h: Ditto.
4718 * libm/machine/spu/headers/coshd2.h: Ditto.
4719 * libm/machine/spu/headers/coshf.h: Ditto.
4720 * libm/machine/spu/headers/coshf4.h: Ditto.
4721 * libm/machine/spu/headers/divd2.h: Ditto.
4722 * libm/machine/spu/headers/divf4.h: Ditto.
4723 * libm/machine/spu/headers/erf.h: Ditto.
4724 * libm/machine/spu/headers/erf_utils.h: Ditto.
4725 * libm/machine/spu/headers/erfc.h: Ditto.
4726 * libm/machine/spu/headers/erfcd2.h: Ditto.
4727 * libm/machine/spu/headers/erfcf.h: Ditto.
4728 * libm/machine/spu/headers/erfcf4.h: Ditto.
4729 * libm/machine/spu/headers/erfd2.h: Ditto.
4730 * libm/machine/spu/headers/erff.h: Ditto.
4731 * libm/machine/spu/headers/erff4.h: Ditto.
4732 * libm/machine/spu/headers/exp.h: Ditto.
4733 * libm/machine/spu/headers/exp2.h: Ditto.
4734 * libm/machine/spu/headers/exp2d2.h: Ditto.
4735 * libm/machine/spu/headers/exp2f4.h: Ditto.
4736 * libm/machine/spu/headers/expd2.h: Ditto.
4737 * libm/machine/spu/headers/expf4.h: Ditto.
4738 * libm/machine/spu/headers/expm1.h: Ditto.
4739 * libm/machine/spu/headers/expm1d2.h: Ditto.
4740 * libm/machine/spu/headers/expm1f.h: Ditto.
4741 * libm/machine/spu/headers/expm1f4.h: Ditto.
4742 * libm/machine/spu/headers/floord2.h: Ditto.
4743 * libm/machine/spu/headers/floorf4.h: Ditto.
4744 * libm/machine/spu/headers/hypot.h: Ditto.
4745 * libm/machine/spu/headers/hypotd2.h: Ditto.
4746 * libm/machine/spu/headers/hypotf.h: Ditto.
4747 * libm/machine/spu/headers/hypotf4.h: Ditto.
4748 * libm/machine/spu/headers/isnan.h: Ditto.
4749 * libm/machine/spu/headers/isnand2.h: Ditto.
4750 * libm/machine/spu/headers/isnanf.h: Ditto.
4751 * libm/machine/spu/headers/isnanf4.h: Ditto.
4752 * libm/machine/spu/headers/ldexpd2.h: Ditto.
4753 * libm/machine/spu/headers/ldexpf4.h: Ditto.
4754 * libm/machine/spu/headers/lgamma.h: Ditto.
4755 * libm/machine/spu/headers/lgammad2.h: Ditto.
4756 * libm/machine/spu/headers/lgammaf.h: Ditto.
4757 * libm/machine/spu/headers/lgammaf4.h: Ditto.
4758 * libm/machine/spu/headers/log.h: Ditto.
4759 * libm/machine/spu/headers/log10.h: Ditto.
4760 * libm/machine/spu/headers/log10d2.h: Ditto.
4761 * libm/machine/spu/headers/log1p.h: Ditto.
4762 * libm/machine/spu/headers/log1pd2.h: Ditto.
4763 * libm/machine/spu/headers/log1pf.h: Ditto.
4764 * libm/machine/spu/headers/log1pf4.h: Ditto.
4765 * libm/machine/spu/headers/log2.h: Ditto.
4766 * libm/machine/spu/headers/log2d2.h: Ditto.
4767 * libm/machine/spu/headers/log2f4.h: Ditto.
4768 * libm/machine/spu/headers/logbf.h: Ditto.
4769 * libm/machine/spu/headers/logbf4.h: Ditto.
4770 * libm/machine/spu/headers/logd2.h: Ditto.
4771 * libm/machine/spu/headers/logf4.h: Ditto.
4772 * libm/machine/spu/headers/nearbyintf.h: Ditto.
4773 * libm/machine/spu/headers/nearbyintf4.h: Ditto.
4774 * libm/machine/spu/headers/nextafter.h: Ditto.
4775 * libm/machine/spu/headers/nextafterd2.h: Ditto.
4776 * libm/machine/spu/headers/nextafterf.h: Ditto.
4777 * libm/machine/spu/headers/nextafterf4.h: Ditto.
4778 * libm/machine/spu/headers/pow.h: Ditto.
4779 * libm/machine/spu/headers/powd2.h: Ditto.
4780 * libm/machine/spu/headers/powf.h: Ditto.
4781 * libm/machine/spu/headers/powf4.h: Ditto.
4782 * libm/machine/spu/headers/recipd2.h: Ditto.
4783 * libm/machine/spu/headers/recipf4.h: Ditto.
4784 * libm/machine/spu/headers/rintf.h: Ditto.
4785 * libm/machine/spu/headers/rintf4.h: Ditto.
4786 * libm/machine/spu/headers/scalbnf4.h: Ditto.
4787 * libm/machine/spu/headers/signbit.h: Ditto.
4788 * libm/machine/spu/headers/signbitd2.h: Ditto.
4789 * libm/machine/spu/headers/simdmath.h: Ditto.
4790 * libm/machine/spu/headers/sin.h: Ditto.
4791 * libm/machine/spu/headers/sincos.h: Ditto.
4792 * libm/machine/spu/headers/sincosd2.h: Ditto.
4793 * libm/machine/spu/headers/sincosf.h: Ditto.
4794 * libm/machine/spu/headers/sincosf4.h: Ditto.
4795 * libm/machine/spu/headers/sind2.h: Ditto.
4796 * libm/machine/spu/headers/sinf.h: Ditto.
4797 * libm/machine/spu/headers/sinf4.h: Ditto.
4798 * libm/machine/spu/headers/sinh.h: Ditto.
4799 * libm/machine/spu/headers/sinhd2.h: Ditto.
4800 * libm/machine/spu/headers/sinhf.h: Ditto.
4801 * libm/machine/spu/headers/sinhf4.h: Ditto.
4802 * libm/machine/spu/headers/sqrtd2.h: Ditto.
4803 * libm/machine/spu/headers/sqrtf.h: Ditto.
4804 * libm/machine/spu/headers/sqrtf4.h: Ditto.
4805 * libm/machine/spu/headers/tan.h: Ditto.
4806 * libm/machine/spu/headers/tand2.h: Ditto.
4807 * libm/machine/spu/headers/tanf.h: Ditto.
4808 * libm/machine/spu/headers/tanf4.h: Ditto.
4809 * libm/machine/spu/headers/tanh.h: Ditto.
4810 * libm/machine/spu/headers/tanhd2.h: Ditto.
4811 * libm/machine/spu/headers/tanhf.h: Ditto.
4812 * libm/machine/spu/headers/tanhf4.h: Ditto.
4813 * libm/machine/spu/headers/tgamma.h: Ditto.
4814 * libm/machine/spu/headers/tgammad2.h: Ditto.
4815 * libm/machine/spu/headers/tgammaf.h: Ditto.
4816 * libm/machine/spu/headers/tgammaf4.h: Ditto.
4817 * libm/machine/spu/headers/truncd2.h: Ditto.
4818 * libm/machine/spu/headers/truncf4.h: Ditto.
4819 * libm/machine/spu/log2.c: Ditto.
4820 * libm/machine/spu/s_asinh.c: Ditto.
4821 * libm/machine/spu/s_atan.c: Ditto.
4822 * libm/machine/spu/s_cos.c: Ditto.
4823 * libm/machine/spu/s_erf.c: Ditto.
4824 * libm/machine/spu/s_expm1.c: Ditto.
4825 * libm/machine/spu/s_isnan.c: Ditto.
4826 * libm/machine/spu/s_log1p.c: Ditto.
4827 * libm/machine/spu/s_nextafter.c: Ditto.
4828 * libm/machine/spu/s_sin.c: Ditto.
4829 * libm/machine/spu/s_tan.c: Ditto.
4830 * libm/machine/spu/s_tanh.c: Ditto.
4831 * libm/machine/spu/sf_asinh.c: Ditto.
4832 * libm/machine/spu/sf_cos.c: Ditto.
4833 * libm/machine/spu/sf_erf.c: Ditto.
4834 * libm/machine/spu/sf_expm1.c: Ditto.
4835 * libm/machine/spu/sf_log1p.c: Ditto.
4836 * libm/machine/spu/sf_logb.c: Ditto.
4837 * libm/machine/spu/sf_nearbyint.c: Ditto.
4838 * libm/machine/spu/sf_nextafter.c: Ditto.
4839 * libm/machine/spu/sf_rint.c: Ditto.
4840 * libm/machine/spu/sf_sin.c: Ditto.
4841 * libm/machine/spu/sf_tan.c: Ditto.
4842 * libm/machine/spu/sf_tanh.c: Ditto.
4843 * libm/machine/spu/w_acos.c: Ditto.
4844 * libm/machine/spu/w_acosh.c: Ditto.
4845 * libm/machine/spu/w_asin.c: Ditto.
4846 * libm/machine/spu/w_atan2.c: Ditto.
4847 * libm/machine/spu/w_atanh.c: Ditto.
4848 * libm/machine/spu/w_cosh.c: Ditto.
4849 * libm/machine/spu/w_exp.c: Ditto.
4850 * libm/machine/spu/w_exp2.c: Ditto.
4851 * libm/machine/spu/w_hypot.c: Ditto.
4852 * libm/machine/spu/w_lgamma.c: Ditto.
4853 * libm/machine/spu/w_log.c: Ditto.
4854 * libm/machine/spu/w_log10.c: Ditto.
4855 * libm/machine/spu/w_pow.c: Ditto.
4856 * libm/machine/spu/w_sincos.c: Ditto.
4857 * libm/machine/spu/w_sinh.c: Ditto.
4858 * libm/machine/spu/w_tgamma.c: Ditto.
4859 * libm/machine/spu/wf_acos.c: Ditto.
4860 * libm/machine/spu/wf_acosh.c: Ditto.
4861 * libm/machine/spu/wf_asin.c: Ditto.
4862 * libm/machine/spu/wf_atan2.c: Ditto.
4863 * libm/machine/spu/wf_atanh.c: Ditto.
4864 * libm/machine/spu/wf_cosh.c: Ditto.
4865 * libm/machine/spu/wf_hypot.c: Ditto.
4866 * libm/machine/spu/wf_lgamma.c: Ditto.
4867 * libm/machine/spu/wf_pow.c: Ditto.
4868 * libm/machine/spu/wf_sincos.c: Ditto.
4869 * libm/machine/spu/wf_sinh.c: Ditto.
4870 * libm/machine/spu/wf_sqrt.c: Ditto.
4871 * libm/machine/spu/wf_tgamma.c: Ditto.
4872
505ea714
JJ
48732007-09-28 Patrick Mansfield <patmans@us.ibm.com>
4874
4875 * configure.host: Define _POSIX_MODE to match the existing vector
4876 math code, as we don't support the matherr callout.
4877 * libm/machine/spu/Makefile.am: New file.
4878 * libm/machine/spu/Makefile.in: Auto-generated.
4879 * libm/machine/spu/headers/atanf.h: New file.
4880 * libm/machine/spu/headers/cbrt.h: Ditto.
4881 * libm/machine/spu/headers/cbrtf.h: Ditto.
4882 * libm/machine/spu/headers/ceil.h: Ditto.
4883 * libm/machine/spu/headers/ceilf.h: Ditto.
4884 * libm/machine/spu/headers/copysign.h: Ditto.
4885 * libm/machine/spu/headers/copysignf.h: Ditto.
4886 * libm/machine/spu/headers/exp2f.h: Ditto.
4887 * libm/machine/spu/headers/expf.h: Ditto.
4888 * libm/machine/spu/headers/fabs.h: Ditto.
4889 * libm/machine/spu/headers/fabsf.h: Ditto.
4890 * libm/machine/spu/headers/fdim.h: Ditto.
4891 * libm/machine/spu/headers/fdimf.h: Ditto.
4892 * libm/machine/spu/headers/floor.h: Ditto.
4893 * libm/machine/spu/headers/floorf.h: Ditto.
4894 * libm/machine/spu/headers/fma.h: Ditto.
4895 * libm/machine/spu/headers/fmaf.h: Ditto.
4896 * libm/machine/spu/headers/fmax.h: Ditto.
4897 * libm/machine/spu/headers/fmaxf.h: Ditto.
4898 * libm/machine/spu/headers/fmin.h: Ditto.
4899 * libm/machine/spu/headers/fminf.h: Ditto.
4900 * libm/machine/spu/headers/fmod.h: Ditto.
4901 * libm/machine/spu/headers/fmodf.h: Ditto.
4902 * libm/machine/spu/headers/frexp.h: Ditto.
4903 * libm/machine/spu/headers/frexpf.h: Ditto.
4904 * libm/machine/spu/headers/ilogb.h: Ditto.
4905 * libm/machine/spu/headers/ilogbf.h: Ditto.
4906 * libm/machine/spu/headers/ldexp.h: Ditto.
4907 * libm/machine/spu/headers/ldexpf.h: Ditto.
4908 * libm/machine/spu/headers/llrint.h: Ditto.
4909 * libm/machine/spu/headers/llrintf.h: Ditto.
4910 * libm/machine/spu/headers/llround.h: Ditto.
4911 * libm/machine/spu/headers/llroundf.h: Ditto.
4912 * libm/machine/spu/headers/log10f.h: Ditto.
4913 * libm/machine/spu/headers/log2f.h: Ditto.
4914 * libm/machine/spu/headers/logf.h: Ditto.
4915 * libm/machine/spu/headers/lrint.h: Ditto.
4916 * libm/machine/spu/headers/lrintf.h: Ditto.
4917 * libm/machine/spu/headers/lround.h: Ditto.
4918 * libm/machine/spu/headers/lroundf.h: Ditto.
4919 * libm/machine/spu/headers/nearbyint.h: Ditto.
4920 * libm/machine/spu/headers/remainder.h: Ditto.
4921 * libm/machine/spu/headers/remainderf.h: Ditto.
4922 * libm/machine/spu/headers/remquo.h: Ditto.
4923 * libm/machine/spu/headers/remquof.h: Ditto.
4924 * libm/machine/spu/headers/rint.h: Ditto.
4925 * libm/machine/spu/headers/round.h: Ditto.
4926 * libm/machine/spu/headers/roundf.h: Ditto.
4927 * libm/machine/spu/headers/scalbn.h: Ditto.
4928 * libm/machine/spu/headers/scalbnf.h: Ditto.
4929 * libm/machine/spu/headers/sqrt.h: Ditto.
4930 * libm/machine/spu/headers/trunc.h: Ditto.
4931 * libm/machine/spu/headers/truncf.h: Ditto.
4932 * libm/machine/spu/headers/vec_literal.h: Ditto.
4933 * libm/machine/spu/llrint.c: Ditto.
4934 * libm/machine/spu/llrintf.c: Ditto.
4935 * libm/machine/spu/llround.c: Ditto.
4936 * libm/machine/spu/llroundf.c: Ditto.
4937 * libm/machine/spu/log2f.c: Ditto.
4938 * libm/machine/spu/s_cbrt.c: Ditto.
4939 * libm/machine/spu/s_ceil.c: Ditto.
4940 * libm/machine/spu/s_copysign.c: Ditto.
4941 * libm/machine/spu/s_fabs.c: Ditto.
4942 * libm/machine/spu/s_fdim.c: Ditto.
4943 * libm/machine/spu/s_floor.c: Ditto.
4944 * libm/machine/spu/s_fma.c: Ditto.
4945 * libm/machine/spu/s_fmax.c: Ditto.
4946 * libm/machine/spu/s_fmin.c: Ditto.
4947 * libm/machine/spu/s_frexp.c: Ditto.
4948 * libm/machine/spu/s_ilogb.c: Ditto.
4949 * libm/machine/spu/s_ldexp.c: Ditto.
4950 * libm/machine/spu/s_lrint.c: Ditto.
4951 * libm/machine/spu/s_lround.c: Ditto.
4952 * libm/machine/spu/s_nearbyint.c: Ditto.
4953 * libm/machine/spu/s_remquo.c: Ditto.
4954 * libm/machine/spu/s_rint.c: Ditto.
4955 * libm/machine/spu/s_round.c: Ditto.
4956 * libm/machine/spu/s_scalbn.c: Ditto.
4957 * libm/machine/spu/s_trunc.c: Ditto.
4958 * libm/machine/spu/sf_atan.c: Ditto.
4959 * libm/machine/spu/sf_cbrt.c: Ditto.
4960 * libm/machine/spu/sf_ceil.c: Ditto.
4961 * libm/machine/spu/sf_copysign.c: Ditto.
4962 * libm/machine/spu/sf_fabs.c: Ditto.
4963 * libm/machine/spu/sf_fdim.c: Ditto.
4964 * libm/machine/spu/sf_floor.c: Ditto.
4965 * libm/machine/spu/sf_fma.c: Ditto.
4966 * libm/machine/spu/sf_fmax.c: Ditto.
4967 * libm/machine/spu/sf_fmin.c: Ditto.
4968 * libm/machine/spu/sf_frexp.c: Ditto.
4969 * libm/machine/spu/sf_ilogb.c: Ditto.
4970 * libm/machine/spu/sf_ldexp.c: Ditto.
4971 * libm/machine/spu/sf_lrint.c: Ditto.
4972 * libm/machine/spu/sf_lround.c: Ditto.
4973 * libm/machine/spu/sf_remquo.c: Ditto.
4974 * libm/machine/spu/sf_round.c: Ditto.
4975 * libm/machine/spu/sf_scalbn.c: Ditto.
4976 * libm/machine/spu/sf_trunc.c: Ditto.
4977 * libm/machine/spu/w_fmod.c: Ditto.
4978 * libm/machine/spu/w_remainder.c: Ditto.
4979 * libm/machine/spu/w_sqrt.c: Ditto.
4980 * libm/machine/spu/wf_exp.c: Ditto.
4981 * libm/machine/spu/wf_exp2.c: Ditto.
4982 * libm/machine/spu/wf_fmod.c: Ditto.
4983 * libm/machine/spu/wf_log.c: Ditto.
4984 * libm/machine/spu/wf_log10.c: Ditto.
4985 * libm/machine/spu/wf_remainder.c: Ditto.
c99e78b8 4986
364faf91
JJ
49872007-09-21 Patrick Mansfield <patmans@us.ibm.com>
4988
4989 * libc/machine/spu/sys/uio.h: New file for readv and writev use.
4990
2f3d28fc
JJ
49912007-09-21 Patrick Mansfield <patmans@us.ibm.com>
4992
4993 * libc/include/sched.h: New file, just include sys/sched.h.
4994 * libc/machine/spu/sys/sched.h: New file, has just sched_yield
4995 prototype.
4996 * libc/machine/spu/sys/utime.h: New file, has utime prototype and
4997 struct utimbuf definition.
4998
63fbe1fd
JJ
49992007-09-21 Patrick Mansfield <patmans@us.ibm.com>
5000
5001 * libc/machine/spu/sys/dirent.h: New file, add prototypes and SPU
5002 specific struct and typedef.
5003
50042007-09-18 Patrick Mansfield <patmans@us.ibm.com>
cebf33e4
JJ
5005
5006 * libc/include/sys/types.h: Use __dev_t, __uid_t, and __gid_t to
5007 typedef dev_t, gid_t, and uid_t.
5008 * libc/include/sys/_types.h: Move previous dev_t, uid_t and gid_t
5009 types.h code to here, but typedef __dev_t, __uid_t, and __gid_t instead.
5010 Change to lower case for all __foo_t_defined names.
5011 * libc/machine/spu/machine/_types.h: Add SPU specific __dev_t,
5012 __uid_t, and __gid_t making them all four bytes. Change to lower case
5013 for all __foo_t_defined names.
5014
3908c985
JJ
50152007-09-18 Jeff Johnston <jjohnstn@redhat.com>
5016
5017 * libc/reent/renamer.c: New file.
5018 * libc/reent/Makefile.am: Add new file.
5019 * libc/reent/Makefile.in: Regenerated.
5020 * libc/stdio/rename.c: Break out _rename_r code into reent/renamer.c
5021 and add check for rename syscall.
5022
ba21046d
EB
50232007-09-17 Eric Blake <ebb9@byu.net>
5024
5025 Obey POSIX on printf("%.s", (char*)NULL).
5026 * libc/stdio/vfprintf.c (_VFPRINTF_R): Take precision into account
5027 for %s on NULL. Skip NULL check when optimizing for size.
5028
e5ae7230
JJ
50292007-09-07 Jeff Johnston <jjohnstn@redhat.com>
5030
5031 * libc/include/sys/_types.h: Protect all types with flag
5032 checks to allow definition in machine/_types.h.
5033
36fe6da6
JJ
50342007-09-07 Jeff Johnston <jjohnstn@redhat.com>
5035
5036 * libc/sys/linux/sys/_types.h: Add _fpos_t and _fpos64_t
5037 definitions in light of the previous change.
5038
50392007-09-07 Patrick Mansfield <patmans@us.ibm.com>
dde22334
JJ
5040
5041 * libc/include/machine/_default_types.h: New file, contains what
5042 was previously in libc/include/machine/_types.h.
5043 * libc/include/machine/_types.h: Now only includes
5044 machine/_default_types.h.
5045 * libc/include/sys/reent.h: Remove _fpos_t and _fpos64_t.
5046 * libc/include/sys/_types.h: Move _fpos_t and _fpos64_t to here,
5047 with conditional declarations.
5048 * libc/machine/spu/machine/_types.h: New file, add SPU specific
5049 typedefs for _fpos_t and _fpos64_t.
5050
78e66fb9
JJ
50512007-09-07 Jeff Johnston <jjohnstn@redhat.com>
5052
5053 * libc/include/math.h (_M_LOG2E): Replace with..
5054 (_M_LOG2_E): New macro.
5055 (log2, log2f, M_LOG2_E): Use _M_LOG2_E.
5056
345c1595
BD
50572007-09-06 Brian Dessent <brian@dessent.net>
5058
5059 * libc/reent/getreent.c: Allow for case where __getreent is
5060 defined as a macro.
5061
6494ee83
JJ
50622007-09-06 Jeff Johnston <jjohnstn@redhat.com>
5063
5064 * libc/include/math.h (_M_LOG2E): New log2 of e macro.
5065 (log2): Use _M_LOG2E instead of M_LOG2E.
5066 (log2f): Ditto.
5067 (M_LOG2E): Define to be _M_LOG2E.
5068
86a934d2
JJ
50692007-09-04 Kazunori Asayama <asayama@sm.sony.co.jp>
5070
5071 * libm/math/wf_tgamma.c: Add missing include.
5072
6ddf8bef
JJ
50732007-08-31 Antony King <antony.king@st.com>
5074
ba21046d 5075 * libc/stdlib/mprec.h [_DOUBLE_IS_32BITS}: Define IEEE_Arith
6ddf8bef
JJ
5076 bits and redefine associated dword0 macro (rvalue issue).
5077 * libc/stdio/vfieeefp.h: Ditto.
ba21046d
EB
5078 * libc/stdlib/strtod.c: Add checks for _DOUBLE_IS_32BITS
5079 to prevent setting dword1 which is an rvalue only.
6ddf8bef 5080
d4a27886
JJ
50812007-08-28 Hans Kester <hans.kester@ellips.nl>
5082
5083 * configure.host: Added support for x86_64.
5084 * libc/include/machine/ieeefp.h: Define __IEEE_LITTLE_ENDIAN for x86_64.
5085 * libc/include/machine/setjmp.h: Define _JBTYPE and _JBLEN for x86_64.
5086 * libc/machine/x86_64/aclocal.m4: Generated.
5087 * libc/machine/x86_64/configure.in: New.
5088 * libc/machine/x86_64/configure: Generated.
5089 * libc/machine/x86_64/Makefile.am: New.
5090 * libc/machine/x86_64/Makefile.in: Generated.
5091 * libc/machine/x86_64/setjmp.S: New.
5092 * libc/machine/x86_64/memcpy.S: New.
5093 * libc/machine/x86_64/memset.S: New.
5094 * libc/machine/configure.in: Added support for x86_64.
5095 * libc/machine/configure: Regenerated.
5096
309faeb5
JJ
50972007-08-24 Jeff Johnston <jjohnstn@redhat.com>
5098
5099 * libm/common/sf_lround.c (lroundf): Cast sizeof calculation
5100 to int before comparing it to a signed int value.
5101
8d44415e
HPN
51022007-08-24 Hans-Peter Nilsson <hp@axis.com>
5103
5104 * libc/machine/cris/sys/errno.h (ECANCELED, ENOKEY, EKEYEXPIRED)
5105 (EKEYREVOKED, EKEYREJECTED, EOWNERDEAD, ENOTRECOVERABLE, ENOTSUP):
5106 Define.
5107
e6e56f7c
JJ
51082007-08-23 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
5109
5110 Reduce the memory consumption of variable argument functions
5111 for SPU (cell):
5112 * libc/machine/spu/Makefile.am: Replace printf/scanf family C sources
5113 to assembler sources.
5114 * libc/machine/spu/Makefile.in: Regenerated.
5115 * libc/machine/spu/stdio.c: Add __check_init function wrapping
5116 CHECK_INIT macro to use from assembler routines.
5117 * libc/machine/spu/c99ppe.h: Add definitions for assembler code.
5118 * libc/machine/spu/fiprintf.S: New file.
5119 * libc/machine/spu/fiscanf.S: Ditto.
5120 * libc/machine/spu/fprintf.S: Ditto.
5121 * libc/machine/spu/fscanf.S: Ditto.
5122 * libc/machine/spu/iprintf.S: Ditto.
5123 * libc/machine/spu/iscanf.S: Ditto.
5124 * libc/machine/spu/printf.S: Ditto.
5125 * libc/machine/spu/scanf.S: Ditto.
5126 * libc/machine/spu/siprintf.S: Ditto.
5127 * libc/machine/spu/siscanf.S: Ditto.
5128 * libc/machine/spu/sniprintf.S: Ditto.
5129 * libc/machine/spu/snprintf.S: Ditto.
5130 * libc/machine/spu/sprintf.S: Ditto.
5131 * libc/machine/spu/sscanf.S: Ditto.
5132 * libc/machine/spu/stack_reg_va.S: Ditto.
5133 * libc/machine/spu/syscall.def: Ditto. (for maintenance)
5134 * libc/machine/spu/mk_syscalls: Ditto. (for maintenance)
5135 * libc/machine/spu/fiprintf.c: Removed. (Replaced by .S)
5136 * libc/machine/spu/fiscanf.c: Ditto.
5137 * libc/machine/spu/fprintf.c: Ditto.
5138 * libc/machine/spu/fscanf.c: Ditto.
5139 * libc/machine/spu/iprintf.c: Ditto.
5140 * libc/machine/spu/iscanf.c: Ditto.
5141 * libc/machine/spu/printf.c: Ditto.
5142 * libc/machine/spu/scanf.c: Ditto.
5143 * libc/machine/spu/siprintf.c: Ditto.
5144 * libc/machine/spu/siscanf.c: Ditto.
5145 * libc/machine/spu/sniprintf.c: Ditto.
5146 * libc/machine/spu/snprintf.c: Ditto.
5147 * libc/machine/spu/sprintf.c: Ditto.
5148 * libc/machine/spu/sscanf.c: Ditto.
5149
90c6084b
JJ
51502007-08-03 Ralf Corsepius <ralf.corsepius@rtems.org>
5151
5152 * libc/include/tar.h: New.
5153
8fb88162
JJ
51542007-08-03 Jeff Johnston <jjohnstn@redhat.com>
5155
5156 * libc/sys/linux/intl/Makefile.am: Change stpcpy reference to
5157 lcl_stpcpy to avoid conflict with new stpcpy.c in libc/string.
5158 * libc/sys/linux/intl/Makefile.in: Regenerated.
5159 * libc/sys/linux/intl/stpcpy.c: Renamed to...
5160 * libc/sys/linux/intl/lcl_stpcpy.c: ..this.
5161
6ddcdb9d
EB
51622007-08-02 Eric Blake <ebb9@byu.net>
5163
5164 Implement fmemopen and open_memstream.
5165 * libc/stdio/fmemopen.c (_fmemopen_r, fmemopen): New file.
5166 * libc/stdio/open_memstream.c (_open_memstream_r, open_memstream):
5167 New file.
5168 * libc/stdio/fopencookie.c (fcwriter): Minor optimization.
5169 * libc/include/stdio.h (dprintf, vdprintf): Group all POSIX 200x
5170 functions together.
5171 (fmemopen, open_memstream): Declare new functions.
5172 * libc/stdio/stdio.tex: Document them.
5173 * libc/stdio/Makefile.am (ELIX_4_SOURCES, CHEWOUT_FILES): Add
5174 fmemopen and open_memstream.
5175 * libc/stdio/Makefile.in: Regenerate.
5176
f7c978d5
EB
51772007-07-31 Eric Blake <ebb9@byu.net>
5178
5179 More POSIX stream corner cases.
5180 * libc/stdio/findfp.c (__sinit): Open stderr read/write.
5181 * libc/stdio/fdopen.c (_fdopen_r): Set O_APPEND on fd when
5182 requested.
5183 * libc/stdio64/fdopen64.c (_fdopen64_r): Likewise.
5184
391b530a
EB
51852007-07-18 Eric Blake <ebb9@byu.net>
5186
5187 Fix 'make info'.
5188 * libc/stdio/stdio.tex: Add missing include.
5189 * libc/stdio/vfprintf.c: Use expected node name.
5190 * libc/stdio/vfscanf.c: Likewise.
5191 * libc/stdio/sscanf.c: Likewise.
5192 * libc/stdio/sprintf.c: Likewise.
5193 * libc/stdio/siscanf.c: Likewise.
5194 * libc/stdio/siprintf.c: Likewise.
5195 * libc/stdio/fopencookie.c: Quote raw {}.
5196 Reported by DJ Delorie.
5197
88c88881
EB
51982007-07-13 Eric Blake <ebb9@byu.net>
5199
08146e5a
EB
5200 Fix fflush issues.
5201 * libc/stdio/fflush.c (_fflush_r): New function.
5202 (fflush): Fix reentrancy and large offset behavior.
5203 * libc/include/stdio.h (_fflush_r): Add prototype.
5204 * libc/stdio/fclose.c (_fclose_r): All fflush callers changed.
5205 * libc/stdio/freopen.c (_freopen_r): Likewise.
5206 * libc/stdio/fseek.c (_fseek_r): Likewise.
5207 * libc/stdio/ftell.c (_ftell_r): Likewise.
5208 * libc/stdio/fvwrite.c (__sfvwrite_r): Likewise.
5209 * libc/stdio/refill.c (__srefill_r): Likewise.
5210 * libc/stdio/setvbuf.c (setvbuf): Likewise.
5211 * libc/stdio/ungetc.c (_ungetc_r): Likewise.
5212 * libc/stdio/vfprintf.c (__sbprintf): Likewise.
5213 * libc/stdio/wbuf.c (__swbuf_r): Likewise.
5214 * libc/stdio64/freopen64.c (_freopen64_r): Likewise.
5215 * libc/stdio64/fseeko64.c (_fseeko64_r): Likewise. Defer to
5216 32-bit version if not large file.
5217 * libc/stdio64/ftello64.c (_ftello64_r): Likewise.
5218 * libc/stdio64/tmpfile64.c (_tmpfile64_r): Avoid compile warning.
5219
88c88881
EB
5220 Documentation updates.
5221 * libc/stdio/ungetc.c: Document ungetc.
5222 * libc/stdio/Makefile.am (CHEWOUT_FILES): Sort, match current list
5223 of files with documentation.
5224 * libc/stdio/Makefile.in: Regenerate.
5225 * libc/stdio/stdio.tex: Sort and update stdio documentation index.
5226
c4ccbcce
JJ
52272007-07-11 Jeff Johnston <jjohnstn@redhat.com>
5228
5229 * libc/include/math.h: Fix so C99 functions/macros are accessible
5230 when -std=c99 is used when compiling and not when using C89.
5231
dec27025
CV
52322007-07-06 Corinna Vinschen <corinna@vinschen.de>
5233
5234 * libc/include/wchar.h: Declare wcstol, wcstoll, wcstoul,
5235 wcstoull, _wcstol_r, _wcstoll_r, _wcstoul_r and _wcstoull_r.
5236 * libc/stdlib/Makefile.am (GENERAL_SOURCES): Add wcstol.c and wcstoul.c.
5237 (EXTENDED_SOURCES): Add wcstoll.c, wcstoll_r.c, wcstoull.c and
5238 wcstoull_r.c.
5239 (CHEWOUT_FILES): Add .def files accordingly.
5240 * libc/stdlib/Makefile.in: Regenerate.
5241 * libc/stdlib/stdlib.tex: Add documentation links for above functions.
5242 * libc/stdlib/strtoll.c: Fix portability note.
5243 * libc/stdlib/strtoull.c: Ditto.
5244 * libc/stdlib/wcstol.c: New file.
5245 * libc/stdlib/wcstoll.c: New file.
5246 * libc/stdlib/wcstoll_r.c: New file.
5247 * libc/stdlib/wcstoul.c: New file.
5248 * libc/stdlib/wcstoull.c: New file.
5249 * libc/stdlib/wcstoull_r.c: New file.
5250
0be2bc94
JJ
52512007-07-06 Jeff Johnston <jjohnstn@redhat.com>
5252
5253 * libc/include/sys/time.h (gettimeofday): Change to proper
5254 prototype where second parameter is void *.
5255 * libc/reent/gettimeofdayr.c (_gettimeofday_r): Change prototype
5256 accordingly.
5257 * libc/include/reent.h: Fix prototype for _gettimeofday_r.
5258 * libc/sys/arm/syscalls.c: Fix gettimeofday function signature.
5259 * libc/sys/rdos/gettod.c: Ditto.
5260 * libc/sys/sh/syscalls.c: Ditto.
5261 * libc/time/time.c (time): Change call to _gettimeofday_r
5262 to pass NULL as 2nd argument.
5263
ba9af2d7
JJ
52642007-07-06 Jeff Johnston <jjohnstn@redhat.com>
5265
5266 * libc/sys/linux/intl/dcigettext.c: Define HAVE_STPCPY.
5267 * libc/sys/linux/intl/l10nflist.c: Ditto.
5268
a3721512
CV
52692007-07-04 Corinna Vinschen <corinna@vinschen.de>
5270
5271 * libc/include/wchar.h: Add prototype for wcsxfrm.
5272 * libc/string/Makefile.am (GENERAL_SOURCES): Add wcsxfrm.c.
5273 (CHEWOUT_FILES): Add wcsxfrm.def.
5274 * libc/string/Makefile.in: Regenerate.
5275 * libc/string/wcsxfrm.c: New file.
5276 * libc/string/wcstrings.tex: Add wcsxfrm.
5277
5d8b97a6
CV
52782007-06-28 Corinna Vinschen <corinna@vinschen.de>
5279
5280 * libc/include/string.h: Add prototypes for stpcpy and stpncpy.
5281 * libc/string/Makefile.am (ELIX_SOURCES): Add stpcpy.c and
5282 stpncpy.c.
5283 (CHEWOUT_FILES): Add stpcpy.def and stpncpy.def.
5284 * libc/string/Makefile.in: Regenerate.
5285 * libc/string/stpcpy.c: New file.
5286 * libc/string/stpncpy.c: New file.
5287 * libc/string/strings.tex: Add stpcpy and stpncpy.
5288
3473e6bd
EB
52892007-06-27 Eric Blake <ebb9@byu.net>
5290
5291 Support __func__ in assert, as required by C99.
5292 * libc/stdlib/assert.c (__assert_func): New function.
5293 (__assert): Use __assert_func.
5294 * libc/include/assert.h (assert) [!NDEBUG]: Use __assert_func when
5295 possible.
5296
be977229
JJ
52972007-06-20 Patrick Mansfield <patmans@us.ibm.com>
5298
5299 * libc/machine/spu/perror.c: Pass errno as the second argument to
5300 the assist call.
5301
d360ef18
JJ
53022007-06-20 Patrick Mansfield <patmans@us.ibm.com>
5303
5304 * libc/include/sys/unistd.h[__SPU__]: Add lockf prototype and related
5305 defines; expose ftruncate, truncate and sync prototypes.
5306
f75c7518
JJ
53072007-06-20 Patrick Mansfield <patmans@us.ibm.com>
5308
5309 * libc/include/sys/unistd.h[__SPU__]: Make fchdir prototype visible.
3473e6bd 5310 * libc/include/sys/stat.h[__SPU__]: Make mknod and lstat prototypes
f75c7518
JJ
5311 visible.
5312
438b07b0
JJ
53132007-06-15 Patrick Mansfield <patmans@us.ibm.com>
5314
5315 * libc/machine/spu/Makefile.am: Remove mktemp.c, it was left in
5316 from a dropped patch.
5317 * libc/machine/spu/Makefile.in: Regenerate.
5318
c33ff785
JJ
53192007-06-13 Patrick Mansfield <patmans@us.ibm.com>
5320
5321 * libc/machine/spu/creat.c: New file copied from libc/posix/creat.c,
3473e6bd 5322 it just calls open with appropriate arguments.
c33ff785
JJ
5323 * libc/machine/spu/Makefile.am: Add creat.c.
5324 * libc/machine/spu/Makefile.in: Regenerate.
5325
ae473bdc
JJ
53262007-06-13 Jeff Johnston <jjohnstn@redhat.com>
5327
5328 * libc/machine/spu/Makefile.am: Re-add back setjmp.S which
5329 I accidentally dropped.
5330 * libc/machine/spu/Makefile.in: Regenerated.
5331
a8b08518
JJ
53322007-06-13 Patrick Mansfield <patmans@us.ibm.com>
5333
5334 * libc/include/sys/features.h: Define _POSIX_TIMERS for spu.
5335 * libc/include/sys/unistd.h: Change usleep prototype to Posix
5336 form and move outside of OS flag checks.
5337 * libc/machine/spu/Makefile.am: Add sleep and usleep.
5338 * libc/machine/spu/Makefile.in: Regenerate.
5339 * libc/machine/spu/sleep.c: Copy libc/posix/sleep.c.
5340 * libc/machine/spu/usleep.c: Copy libc/posix/usleep.c.
5341
f4cd2a1d
CV
53422007-06-11 Corinna Vinschen <corinna@vinschen.de>
5343
5344 * libc/include/sys/unistd.h: Declare confstr for Cygwin.
5345 Define confstr constants for Cygwin. Add comment.
5346
32f67ec6
HPN
53472007-06-10 Hans-Peter Nilsson <hp@bitrange.com>
5348
5349 * libc/sys/mmixware/access.c (access): Do not try to use a magic
5350 file-handle and a direct syscall, just use _open.
5351 * libc/sys/mmixware/sys/syscall.h (TMPFNO): Remove this magic
5352 file-handle.
5353
5354 * libc/sys/mmixware/_exit.c (_exit): Update comment about
5355 passing on the exit value.
5356
6fb37475
JJ
53572007-06-08 Jeff Johnston <jjohnstn@redhat.com>
5358
5359 * libc/string/strcasestr.c: New file.
5360 * libc/include/string.h: Add strcasestr.
5361 * libc/string/strings.tex: Add strcasestr.
5362 * libc/string/Makefile.am: Ditto.
5363 * libc/string/Makefile.in: Regenerated.
5364
1eeaeab8
JJ
53652007-06-06 Christian Groessler <chris@groessler.org>
5366
5367 * libc/stdlib/ldtoa (_ldcheck): Make sure the setting of
5368 rnd is done after the last local variable declaration.
5369
53702007-06-06 Jeff Johnston <jjohnstn@redhat.com>
5371
5372 * libc/stdlib/mprec.h[Just_16]: Make sure that Pack_16 is defined.
5373
a5da131d
JJ
53742007-06-05 Christian Groessler <chris@groessler.org>
5375
3473e6bd 5376 * libc/argz/argz_insert.c (argz_insert): Move delta variable
a874abaf 5377 declaration to top of function in keeping with C89 standard.
a5da131d 5378
17c61d6a
EB
53792007-06-04 Eric Blake <ebb9@byu.net>
5380
5381 Implement funopen, fopencookie.
5382 * libc/include/sys/reent.h (struct __sFILE, struct __sFILE64):
5383 Switch to reentrant callbacks.
5384 * libc/include/stdio.h (funopen): Fix declaration.
5385 (fopencookie): Declare.
5386 * libc/stdio/local.h (__sread, __swrite, __sseek, __sclose)
5387 (__sseek64, __swrite64): Fix prototypes.
5388 [__SCLE]: Pull in setmode declaration.
5389 * libc/stdio/stdio.c (__sread, __swrite, __sseek, __sclose): Fix
5390 reentrancy.
5391 * libc/stdio64/stdio64.c (__sseek64_r, __swrite64_r): Delete.
5392 (__sseek64, __swrite64): Fix reentrancy.
5393 * libc/stdio/fseek.c (_fseek_r): Account for overflow, and fix
5394 reentrancy.
5395 * libc/stdio/ftell.c (_ftell_r): Likewise.
5396 * libc/stdio/flags.c (__sflags): Don't lose __SAPP on "a+".
5397 * libc/stdio/fclose.c (_fclose_r): Fix reentrancy.
5398 * libc/stdio/freopen.c (_freopen_r): Likewise.
5399 * libc/stdio/fvwrite.c (__sfvwrite_r): Likewise.
5400 * libc/stdio/refill.c (__srefill_r): Likewise.
5401 * libc/stdio/siscanf.c (eofread): Likewise.
5402 * libc/stdio/sscanf.c (eofread): Likewise.
5403 * libc/stdio/vsiscanf.c (eofread1): Likewise.
5404 * libc/stdio/vsscanf.c (eofread1): Likewise.
5405 * libc/stdio64/freopen64.c (_freopen64_r): Likewise.
5406 * libc/stdio64/fseeko64.c (_fseeko64_r): Likewise.
5407 * libc/stdio64/ftello64.c (_ftello64_r): Likewise.
5408 * libc/stdio/fflush.c (fflush): Improve reentrancy, although more
5409 could be fixed.
5410 * libc/stdio/fopencookie.c (_fopencookie_r, fopencookie): New file.
5411 * libc/stdio/funopen.c (_funopen_r, funopen): New file.
5412 * libc/stdio/Makefile.am (ELIX_4_SOURCES, CHEWOUT_FILES): Build
5413 new files.
5414 * libc/stdio/Makefile.in: Regenerate.
5415
b2064783
EB
54162007-05-29 Eric Blake <ebb9@byu.net>
5417
5418 Avoid more compiler warnings.
5419 * libc/stdlib/btowc.c: Add missing header.
5420 * libc/stdlib/getopt.c (getopt_internal): Initialize variable.
5421 * libc/stdlib/system.c (do_system) [__CYGWIN__]: Add declaration.
5422 * libc/stdlib/wctob.c: Add missing header.
5423 * libc/string/strcpy.c (strcpy): Avoid warnings.
5424 * libc/string/strrchr.c (strrchr): Likewise.
5425
76a2ee78
CV
54262007-05-29 Corinna Vinschen <corinna@vinschen.de>
5427
5428 * libc/argz/argz_add_sep.c (argz_add_sep): Handle empty string
5429 argument.
5430 * libc/argz/argz_append.c (argz_append): Handle empty buf argument.
5431 * libc/argz/argz_create_sep.c (argz_create_sep): Return (NULL, 0)
5432 on empty input strings.
5433 * libc/argz/argz_extract.c (argz_extract): Check argz_len before
5434 looping through argz.
5435 * libc/argz/argz_stringify.c (argz_stringify): Ditto.
5436
75acf0bb
EB
54372007-05-27 Brian Dessent <brian@dessent.net>
5438
5439 * libc/stdio/vfprintf.c (_VFPRINTF_R): Populate 'ox' when
5440 handling %p.
5441
f5c58e9a
EB
54422007-05-25 Eric Blake <ebb9@byu.net>
5443
5444 * libc/stdio/rewind.c (rewind): Fix regression of 2003-08-22.
5445
d9a1ecc0 54462007-05-24 Steve Ellcey <sje@cup.hp.com>
f5c58e9a 5447 Charles Wilson <libtool@cwilson.fastmail.fm>
d9a1ecc0
SE
5448
5449 * libtool.m4: removed
5450 * configure.in: invoke _LD_DECL_SED before conditionally initializing
5451 libtool. Move AC_PROG_AWK outside conditional.
5452 * libc/sys/linux/configure.in: Ditto.
5453 * libc/sys/linux/linuxthreads/configure.in: Ditto.
5454 * libc/sys/linux/linuxthreads/machine/i386/configure.in: Ditto.
5455 * libc/sys/linux/machine/i386/configure.in: Ditto.
5456
5457 * iconvdata/configure.in: invoke _LD_DECL_SED before conditionally
5458 initializing libtool.
5459 * libc/configure.in: Ditto.
5460 * libc/machine/configure.in: Ditto.
5461 * libc/machine/i386/configure.in: Ditto.
5462 * libc/sys/configure.in: Ditto.
5463 * libc/sys/linux/linuxthreads/machine/configure.in: Ditto.
5464 * libc/sys/linux/machine/configure.in: Ditto.
5465 * libm/configure.in: Ditto.
5466 * libm/machine/configure.in: Ditto.
5467
5468 * Makefile.am: Ensure toplevel is included in ACLOCAL_AMFLAGS.
5469 * doc/Makefile.am: Ditto.
5470 * iconvdata/Makefile.am: Ditto.
5471 * libc/Makefile.am: Ditto.
5472 * libc/machine/Makefile.am: Ditto.
5473 * libc/machine/a29k/Makefile.am: Ditto.
5474 * libc/machine/arm/Makefile.am: Ditto.
5475 * libc/machine/bfin/Makefile.am: Ditto.
5476 * libc/machine/cris/Makefile.am: Ditto.
5477 * libc/machine/crx/Makefile.am: Ditto.
5478 * libc/machine/d10v/Makefile.am: Ditto.
5479 * libc/machine/d30v/Makefile.am: Ditto.
5480 * libc/machine/fr30/Makefile.am: Ditto.
5481 * libc/machine/frv/Makefile.am: Ditto.
5482 * libc/machine/h8300/Makefile.am: Ditto.
5483 * libc/machine/h8500/Makefile.am: Ditto.
5484 * libc/machine/hppa/Makefile.am: Ditto.
5485 * libc/machine/i386/Makefile.am: Ditto.
5486 * libc/machine/i960/Makefile.am: Ditto.
5487 * libc/machine/iq2000/Makefile.am: Ditto.
5488 * libc/machine/m32c/Makefile.am: Ditto.
5489 * libc/machine/m32r/Makefile.am: Ditto.
5490 * libc/machine/m68hc11/Makefile.am: Ditto.
5491 * libc/machine/m68k/Makefile.am: Ditto.
5492 * libc/machine/m88k/Makefile.am: Ditto.
5493 * libc/machine/mips/Makefile.am: Ditto.
5494 * libc/machine/mn10200/Makefile.am: Ditto.
5495 * libc/machine/mn10300/Makefile.am: Ditto.
5496 * libc/machine/mt/Makefile.am: Ditto.
5497 * libc/machine/necv70/Makefile.am: Ditto.
5498 * libc/machine/powerpc/Makefile.am: Ditto.
5499 * libc/machine/sh/Makefile.am: Ditto.
5500 * libc/machine/sparc/Makefile.am: Ditto.
5501 * libc/machine/spu/Makefile.am: Ditto.
5502 * libc/machine/tic4x/Makefile.am: Ditto.
5503 * libc/machine/tic80/Makefile.am: Ditto.
5504 * libc/machine/v850/Makefile.am: Ditto.
5505 * libc/machine/w65/Makefile.am: Ditto.
5506 * libc/machine/xscale/Makefile.am: Ditto.
5507 * libc/machine/xstormy16/Makefile.am: Ditto.
5508 * libc/machine/z8k/Makefile.am: Ditto.
5509 * libc/sys/Makefile.am: Ditto.
5510 * libc/sys/a29khif/Makefile.am: Ditto.
5511 * libc/sys/arc/Makefile.am: Ditto.
5512 * libc/sys/arm/Makefile.am: Ditto.
5513 * libc/sys/d10v/Makefile.am: Ditto.
5514 * libc/sys/decstation/Makefile.am: Ditto.
5515 * libc/sys/h8300hms/Makefile.am: Ditto.
5516 * libc/sys/h8500hms/Makefile.am: Ditto.
5517 * libc/sys/linux/Makefile.am: Ditto.
5518 * libc/sys/linux/linuxthreads/Makefile.am: Ditto.
5519 * libc/sys/linux/linuxthreads/machine/Makefile.am: Ditto.
5520 * libc/sys/linux/linuxthreads/machine/i386/Makefile.am: Ditto.
5521 * libc/sys/linux/machine/Makefile.am: Ditto.
5522 * libc/sys/linux/machine/i386/Makefile.am: Ditto.
5523 * libc/sys/m88kbug/Makefile.am: Ditto.
5524 * libc/sys/mmixware/Makefile.am: Ditto.
5525 * libc/sys/netware/Makefile.am: Ditto.
5526 * libc/sys/rdos/Makefile.am: Ditto.
5527 * libc/sys/rtems/Makefile.am: Ditto.
5528 * libc/sys/sh/Makefile.am: Ditto.
5529 * libc/sys/sparc64/Makefile.am: Ditto.
5530 * libc/sys/sun4/Makefile.am: Ditto.
5531 * libc/sys/sysmec/Makefile.am: Ditto.
5532 * libc/sys/sysnec810/Makefile.am: Ditto.
5533 * libc/sys/sysnecv850/Makefile.am: Ditto.
5534 * libc/sys/sysvi386/Makefile.am: Ditto.
5535 * libc/sys/sysvnecv70/Makefile.am: Ditto.
5536 * libc/sys/tic80/Makefile.am: Ditto.
5537 * libc/sys/w65/Makefile.am: Ditto.
5538 * libc/sys/z8ksim/Makefile.am: Ditto.
5539 * libm/Makefile.am: Ditto.
5540 * libm/machine/Makefile.am: Ditto.
5541 * libm/machine/i386/Makefile.am: Ditto.
5542 * libm/machine/spu/Makefile.am: Ditto.
5543
5544 * aclocal.m4: Regenerate.
5545 * iconvdata/aclocal.m4: Regenerate.
5546 * libc/aclocal.m4: Regenerate.
5547 * libc/machine/aclocal.m4: Regenerate.
5548 * libc/machine/i386/aclocal.m4: Regenerate.
5549 * libc/sys/aclocal.m4: Regenerate.
5550 * libc/sys/linux/aclocal.m4: Regenerate.
5551 * libc/sys/linux/linuxthreads/aclocal.m4: Regenerate.
5552 * libc/sys/linux/linuxthreads/machine/aclocal.m4: Regenerate.
5553 * libc/sys/linux/linuxthreads/machine/i386/aclocal.m4: Regenerate.
5554 * libc/sys/linux/machine/aclocal.m4: Regenerate.
5555 * libc/sys/linux/machine/i386/aclocal.m4: Regenerate.
5556 * libm/aclocal.m4: Regenerate.
5557 * libm/machine/aclocal.m4: Regenerate.
5558 * libm/machine/i386/aclocal.m4: Regenerate.
5559
5560 * Makefile.in: Regenerate.
5561 * doc/Makefile.in: Regenerate.
5562 * iconvdata/Makefile.in: Regenerate.
5563 * libc/Makefile.in: Regenerate.
5564 * libc/argz/Makefile.in: Regenerate.
5565 * libc/ctype/Makefile.in: Regenerate.
5566 * libc/errno/Makefile.in: Regenerate.
5567 * libc/iconv/Makefile.in: Regenerate.
5568 * libc/iconv/ccs/Makefile.in: Regenerate.
5569 * libc/iconv/ccs/binary/Makefile.in: Regenerate.
5570 * libc/iconv/ces/Makefile.in: Regenerate.
5571 * libc/iconv/lib/Makefile.in: Regenerate.
5572 * libc/locale/Makefile.in: Regenerate.
5573 * libc/machine/Makefile.in: Regenerate.
5574 * libc/machine/a29k/Makefile.in: Regenerate.
5575 * libc/machine/arm/Makefile.in: Regenerate.
5576 * libc/machine/bfin/Makefile.in: Regenerate.
5577 * libc/machine/cris/Makefile.in: Regenerate.
5578 * libc/machine/crx/Makefile.in: Regenerate.
5579 * libc/machine/d10v/Makefile.in: Regenerate.
5580 * libc/machine/d30v/Makefile.in: Regenerate.
5581 * libc/machine/fr30/Makefile.in: Regenerate.
5582 * libc/machine/frv/Makefile.in: Regenerate.
5583 * libc/machine/h8300/Makefile.in: Regenerate.
5584 * libc/machine/h8500/Makefile.in: Regenerate.
5585 * libc/machine/hppa/Makefile.in: Regenerate.
5586 * libc/machine/i386/Makefile.in: Regenerate.
5587 * libc/machine/i960/Makefile.in: Regenerate.
5588 * libc/machine/iq2000/Makefile.in: Regenerate.
5589 * libc/machine/m32c/Makefile.in: Regenerate.
5590 * libc/machine/m32r/Makefile.in: Regenerate.
5591 * libc/machine/m68hc11/Makefile.in: Regenerate.
5592 * libc/machine/m68k/Makefile.in: Regenerate.
5593 * libc/machine/m88k/Makefile.in: Regenerate.
5594 * libc/machine/mips/Makefile.in: Regenerate.
5595 * libc/machine/mn10200/Makefile.in: Regenerate.
5596 * libc/machine/mn10300/Makefile.in: Regenerate.
5597 * libc/machine/mt/Makefile.in: Regenerate.
5598 * libc/machine/necv70/Makefile.in: Regenerate.
5599 * libc/machine/powerpc/Makefile.in: Regenerate.
5600 * libc/machine/sh/Makefile.in: Regenerate.
5601 * libc/machine/sparc/Makefile.in: Regenerate.
5602 * libc/machine/spu/Makefile.in: Regenerate.
5603 * libc/machine/tic4x/Makefile.in: Regenerate.
5604 * libc/machine/tic80/Makefile.in: Regenerate.
5605 * libc/machine/v850/Makefile.in: Regenerate.
5606 * libc/machine/w65/Makefile.in: Regenerate.
5607 * libc/machine/xscale/Makefile.in: Regenerate.
5608 * libc/machine/xstormy16/Makefile.in: Regenerate.
5609 * libc/machine/z8k/Makefile.in: Regenerate.
5610 * libc/misc/Makefile.in: Regenerate.
5611 * libc/posix/Makefile.in: Regenerate.
5612 * libc/reent/Makefile.in: Regenerate.
5613 * libc/search/Makefile.in: Regenerate.
5614 * libc/signal/Makefile.in: Regenerate.
5615 * libc/stdio/Makefile.in: Regenerate.
5616 * libc/stdio64/Makefile.in: Regenerate.
5617 * libc/stdlib/Makefile.in: Regenerate.
5618 * libc/string/Makefile.in: Regenerate.
5619 * libc/sys/Makefile.in: Regenerate.
5620 * libc/sys/a29khif/Makefile.in: Regenerate.
5621 * libc/sys/arc/Makefile.in: Regenerate.
5622 * libc/sys/arm/Makefile.in: Regenerate.
5623 * libc/sys/d10v/Makefile.in: Regenerate.
5624 * libc/sys/decstation/Makefile.in: Regenerate.
5625 * libc/sys/h8300hms/Makefile.in: Regenerate.
5626 * libc/sys/h8500hms/Makefile.in: Regenerate.
5627 * libc/sys/linux/Makefile.in: Regenerate.
5628 * libc/sys/linux/argp/Makefile.in: Regenerate.
5629 * libc/sys/linux/cmath/Makefile.in: Regenerate.
5630 * libc/sys/linux/dl/Makefile.in: Regenerate.
5631 * libc/sys/linux/iconv/Makefile.in: Regenerate.
5632 * libc/sys/linux/intl/Makefile.in: Regenerate.
5633 * libc/sys/linux/linuxthreads/Makefile.in: Regenerate.
5634 * libc/sys/linux/linuxthreads/machine/Makefile.in: Regenerate.
5635 * libc/sys/linux/linuxthreads/machine/i386/Makefile.in: Regenerate.
5636 * libc/sys/linux/machine/Makefile.in: Regenerate.
5637 * libc/sys/linux/machine/i386/Makefile.in: Regenerate.
5638 * libc/sys/linux/net/Makefile.in: Regenerate.
5639 * libc/sys/linux/stdlib/Makefile.in: Regenerate.
5640 * libc/sys/m88kbug/Makefile.in: Regenerate.
5641 * libc/sys/mmixware/Makefile.in: Regenerate.
5642 * libc/sys/netware/Makefile.in: Regenerate.
5643 * libc/sys/rdos/Makefile.in: Regenerate.
5644 * libc/sys/rtems/Makefile.in: Regenerate.
5645 * libc/sys/sh/Makefile.in: Regenerate.
5646 * libc/sys/sparc64/Makefile.in: Regenerate.
5647 * libc/sys/sun4/Makefile.in: Regenerate.
5648 * libc/sys/sysmec/Makefile.in: Regenerate.
5649 * libc/sys/sysnec810/Makefile.in: Regenerate.
5650 * libc/sys/sysnecv850/Makefile.in: Regenerate.
5651 * libc/sys/sysvi386/Makefile.in: Regenerate.
5652 * libc/sys/sysvnecv70/Makefile.in: Regenerate.
5653 * libc/sys/tic80/Makefile.in: Regenerate.
5654 * libc/sys/w65/Makefile.in: Regenerate.
5655 * libc/sys/z8ksim/Makefile.in: Regenerate.
5656 * libc/syscalls/Makefile.in: Regenerate.
5657 * libc/time/Makefile.in: Regenerate.
5658 * libc/unix/Makefile.in: Regenerate.
5659 * libm/Makefile.in: Regenerate.
5660 * libm/common/Makefile.in: Regenerate.
5661 * libm/machine/Makefile.in: Regenerate.
5662 * libm/machine/i386/Makefile.in: Regenerate.
5663 * libm/machine/spu/Makefile.in: Regenerate.
5664 * libm/math/Makefile.in: Regenerate.
5665 * libm/mathfp/Makefile.in: Regenerate.
5666
5667 * configure: Regenerate.
5668 * iconvdata/configure: Regenerate.
5669 * libc/configure: Regenerate.
5670 * libc/machine/configure: Regenerate.
5671 * libc/machine/i386/configure: Regenerate.
5672 * libc/sys/configure: Regenerate.
5673 * libc/sys/linux/configure: Regenerate.
5674 * libc/sys/linux/linuxthreads/configure: Regenerate.
5675 * libc/sys/linux/linuxthreads/machine/configure: Regenerate.
5676 * libc/sys/linux/linuxthreads/machine/i386/configure: Regenerate.
5677 * libc/sys/linux/machine/configure: Regenerate.
5678 * libc/sys/linux/machine/i386/configure: Regenerate.
5679 * libm/configure: Regenerate.
5680 * libm/machine/configure: Regenerate.
5681 * libm/machine/i386/configure: Regenerate.
5682
aa5341f9
EB
56832007-05-23 Eric Blake <ebb9@byu.net>
5684
5685 * libc/stdio/vfprintf.c (_VFPRINTF_R): Don't truncate %p when
5686 sizeof(void*) is 8 but sizeof(long) is 4.
5687 * libc/stdio/vfscanf.c (__SVFSCANF_R): Likewise. Fix %i scanning
5688 of "-0x". Support "-nan" and "inf" for %e. Audit usage of ungetc
5689 to fix reentrancy and bug on encoding error in multibyte locales.
5690 Always return EOF on read error.
5691
4a9880e0
JJ
56922007-05-23 Patrick Mansfield <patmans@us.ibm.com>
5693
5694 * libc/machine/spu/sys/syscall.h: Update the __send_to_ppe
5695 prototype.
5696 * libc/machine/spu/fclose.c: Use the __send_to_ppe return value
5697 instead of the slot 0 value, remove any now unused variables, and
5698 for some cases, now store the result in an int vs int*.
5699 * libc/machine/spu/feof.c: Ditto.
5700 * libc/machine/spu/ferror.c: Ditto.
5701 * libc/machine/spu/fflush.c: Ditto.
5702 * libc/machine/spu/fgetc.c: Ditto.
5703 * libc/machine/spu/fgetpos.c: Ditto.
5704 * libc/machine/spu/fgets.c: Ditto.
5705 * libc/machine/spu/fileno.c: Ditto.
5706 * libc/machine/spu/fopen.c: Ditto.
5707 * libc/machine/spu/fprintf.c: Ditto.
5708 * libc/machine/spu/fputc.c: Ditto.
5709 * libc/machine/spu/fputs.c: Ditto.
5710 * libc/machine/spu/fread.c: Ditto.
5711 * libc/machine/spu/freopen.c: Ditto.
5712 * libc/machine/spu/fscanf.c: Ditto.
5713 * libc/machine/spu/fseek.c: Ditto.
5714 * libc/machine/spu/fsetpos.c: Ditto.
5715 * libc/machine/spu/ftell.c: Ditto.
5716 * libc/machine/spu/fwrite.c: Ditto.
5717 * libc/machine/spu/getc.c: Ditto.
5718 * libc/machine/spu/getchar.c: Ditto.
5719 * libc/machine/spu/gets.c: Ditto.
5720 * libc/machine/spu/printf.c: Ditto.
5721 * libc/machine/spu/putc.c: Ditto.
5722 * libc/machine/spu/putchar.c: Ditto.
5723 * libc/machine/spu/puts.c: Ditto.
5724 * libc/machine/spu/remove.c: Ditto.
5725 * libc/machine/spu/rename.c: Ditto.
5726 * libc/machine/spu/scanf.c: Ditto.
5727 * libc/machine/spu/setvbuf.c: Ditto.
5728 * libc/machine/spu/snprintf.c: Ditto.
5729 * libc/machine/spu/sprintf.c: Ditto.
5730 * libc/machine/spu/sscanf.c: Ditto.
5731 * libc/machine/spu/tmpfile.c: Ditto.
5732 * libc/machine/spu/tmpnam.c: Ditto.
5733 * libc/machine/spu/ungetc.c: Ditto.
5734 * libc/machine/spu/vfprintf.c: Ditto.
5735 * libc/machine/spu/vfscanf.c: Ditto.
5736 * libc/machine/spu/vprintf.c: Ditto.
5737 * libc/machine/spu/vscanf.c: Ditto.
5738 * libc/machine/spu/vsnprintf.c: Ditto.
5739 * libc/machine/spu/vsprintf.c: Ditto.
5740 * libc/machine/spu/vsscanf.c: Ditto.
5741
9a3ec862
EB
57422007-05-23 Eric Blake <ebb9@byu.net>
5743
5744 * libc/stdio/vfscanf.c (__SVFSCANF_R): Support scanf(%1$s).
5745 Avoid warning when !FLOATING_POINT.
5746 * libc/stdio/vfprintf.c (_VFPRINTF_R): Simplify _NO_POS_ARGS
5747 slightly.
5748
d48670ed
CV
57492007-05-23 Corinna Vinschen <vinschen@redhat.com>
5750
5751 * libc/argz/argz_create_sep.c (argz_create_sep): Initialize *argz_len
5752 to zero.
5753 * libc/include/argz.h: Guard against multiple inclusion. Guard for
5754 use with C++.
5755
8aab2bc2
EB
57562007-05-18 Eric Blake <ebb9@byu.net>
5757
5758 * libc/stdio/vfprintf.c [_WANT_IO_LONG_LONG]: Allow non-gcc
5759 compilers.
5760 * libc/stdio/vfscanf.c: Likewise.
5761
b2250c70
JJ
57622007-05-17 Cary R. <cygcary <at> yahoo.com>
5763
5764 * libm/math/w_atan2.c: Fix atan2 to be consistent with glibc
5765 (atan2(+0,-0), atan2(-0,-0) and atan(-0,+0))
5766 * libm/math/wf_atan2.c: Ditto.
5767
8aab2bc2 57682007-05-17 Yaakov Selkowitz <yselkowitz <at> users.sourceforge.net>
e0500490
JJ
5769
5770 * libm/common/Makefile.am: Add support for exp10, exp10f,
5771 pow10, and pow10f functions.
5772 * libm/common/Makefile.in: Regenerated.
5773 * libm/common/s_pow10.c: New file.
5774 * libm/common/sf_pow10.c: Ditto.
5775 * libm/common/s_exp10.c: Ditto.
5776 * libm/common/sf_exp10.c: Ditto.
5777 * libc/include/math.h [!pow10]: New pow10 prototype.
5778 [!pow10f]: New pow10f prototype.
5779 [!exp10]: New exp10 prototype.
5780 [!exp10f]: New exp10f prototype.
5781
487e9075
EB
57822007-05-17 Charles Wilson <cygwin@...>
5783
5784 * stdio/tmpfile.c: Include <sys/stat.h>.
5785 * stdio64/tmpfile64.c: Ditto.
5786
f6560775
EB
57872007-05-16 Eric Blake <ebb9@byu.net>
5788
d009633d
EB
5789 Close security hole in tmpfile.
5790 * libc/stdio/tmpfile.c (_tmpfile_r): Avoid window between filename
5791 generation and opening the fd.
5792 * libc/stdio64/tmpfile64.c (_tmpfile64_r): Likewise.
5793
895d76fe
EB
5794 * libc/include/math.h (INFINITY, NAN, FP_ILOGB0, FP_ILOGBNAN)
5795 (MATH_ERRNO, MATH_ERREXCEPT, math_errhandling): Add macros
5796 required by POSIX.
5797 * libc/stdlib/ldtoa.c (USE_INFINITY): Rename from INFINITY, to
5798 avoid clash with <math.h>.
5799
f6560775
EB
5800 * libc/stdlib/wctomb_r.c (_wctomb_r): Avoid gcc warnings on cygwin.
5801 * libc/search/hash.c (__hash_open): Likewise.
5802
34507ce0
EB
58032007-05-14 Eric Blake <ebb9@byu.net>
5804
5805 Reduce stack size of *printf.
5806 * libc/stdio/vfprintf.c (_VFPRINTF_R): Fix use of decimal point
5807 in %f. Avoid malloc when possible for %S.
5808 (BUF): Improve stack locality by using smaller size.
5809 (MAXEXPLEN, _PRINTF_FLOAT_TYPE): Define.
5810 (exponent): Use smaller stack size.
5811
b8a37af9
EB
58122007-05-11 Eric Blake <ebb9@byu.net>
5813
0962fe91
EB
5814 Minimize printf/scanf size on platforms that don't need C99.
5815 * acconfig.h (_WANT_IO_C99_FORMATS): New macro.
5816 * newlib.hin (_WANT_IO_C99_FORMATS): Likewise.
5817 * configure.in (newlib-io-c99-formats): New configure option.
5818 (_WANT_IO_C99_FORMATS): Define appropriately.
5819 * configure.host (*-linux*, cygwin): Default c99-formats to yes.
5820 * libc/stdio/vfprintf.c (_VFPRINTF_R) [!_WANT_IO_C99_FORMATS]:
5821 Cripple ' flag; hh, z, j, t sizes; a, A, F, C, S specifiers.
5822 * libc/stdio/vfscanf.c (_VFSCANF_R) [!_WANT_IO_C99_FORMATS]:
5823 Likewise.
5824 * configure: Regenerate.
5825
b8a37af9
EB
5826 * libc/stdio/vfprintf.c (_VFPRINTF_R, cvt, exponent, chclass)
5827 (get_arg): Support '%a' and '%A'.
5828
81274c67
EB
58292007-05-09 Eric Blake <ebb9@byu.net>
5830
5831 Allow zero size with non-null buf in *asnprintf.
5832 * libc/stdio/asnprintf.c (_asnprintf_r, asnprintf): Avoid free'ing
5833 user's buf.
5834 * libc/stdio/asniprintf.c (_asniprintf_r, asniprintf): Likewise.
5835 * libc/stdio/vasniprintf.c (_vasniprintf_r): Likewise.
5836 * libc/stdio/vasnprintf.c (_vasnprintf_r): Likewise.
5837
38ed4e51
EB
58382007-05-07 Charles Wilson <cygwin@...>
5839
5840 * libc/stdio/vfprintf.c: Fix typo in comments that breaks docs.
5841
b9db5292
EB
58422007-05-03 Eric Blake <ebb9@byu.net>
5843
5844 Add support for asnprintf, and improve *printf documentation.
5845 * libc/stdio/Makefile.am (ELIX_SOURCES): Rename...
5846 (ELIX_2_SOURCES): ...to this.
5847 (ELIX_4_SOURCES): Add new variable. Build asnprintf.
5848 (GENERAL_SOURCES): Move dprintf to ELIX_4_SOURCES.
5849 (CHEWOUT_FILES): Include diprintf in documentation.
5850 * libc/stdio/Makefile.in: Regenerate.
5851 * libc/stdio/diprintf.c: Improve documentation.
5852 * libc/stdio/dprintf.c: Likewise.
5853 * libc/stdio/siprintf.c: Likewise.
5854 * libc/stdio/sprintf.c: Likewise.
5855 * libc/stdio/vfprintf.c: Likewise.
5856 * libc/stdio/viprintf.c: Likewise.
5857 * libc/stdio/vsniprintf.c: Consolidate documentation.
5858 * libc/stdio/asiprintf.c: Refer to documentation.
5859 * libc/stdio/asprintf.c: Likewise.
5860 * libc/stdio/fiprintf.c: Likewise.
5861 * libc/stdio/fprintf.c: Likewise.
5862 * libc/stdio/iprintf.c: Likewise.
5863 * libc/stdio/printf.c: Likewise.
5864 * libc/stdio/sniprintf.c: Likewise.
5865 * libc/stdio/vdiprintf.c: Likewise.
5866 * libc/stdio/vdprintf.c: Likewise.
5867 * libc/stdio/vsiprintf.c: Likewise.
5868 * libc/stdio/fvwrite.c (__sfvwrite_r): Handle asnprintf.
5869 * libc/stdio/asniprintf.c (asniprintf, _asniprintf_r): New file.
5870 * libc/stdio/asnprintf.c (asnprintf, _asnprintf_r): New file.
5871 * libc/stdio/vasniprintf.c (vasniprintf, _vasniprintf_r): New
5872 file.
5873 * libc/stdio/vasnprintf.c (vasnprintf, _vasnprintf_r): New file.
5874 * libc/stdio/vdprintf.c (_vdprintf_r): Rewrite to avoid malloc in
5875 typical case.
5876 * libc/stdio/vdiprintf.c (_vdiprintf_r): Likewise.
5877 * libc/include/stdio.h: Add prototypes for new functions; sort
5878 existing functions.
5879
fb3937fa
KH
58802007-05-03 Kazu Hirata <kazu@codesourcery.com>
5881
5882 * libc/machine/m68k/Makefile.am (lib_a_SOURCES): Add memcpy.S
5883 and memset.S.
5884 * libc/machine/m68k/Makefile.in: Regenerate.
5885 * libc/machine/m68k/memcpy.S: Use sub.l followed by dbra.
5886 * libc/machine/m68k/memset.S: Likewise.
5887
b4f09558
EB
58882007-05-01 Eric Blake <ebb9@byu.net>
5889
5890 * libc/stdio64/local64.h: Delete, move contents to...
5891 * libc/stdio/local.h: ...here.
5892 * libc/stdio64/fdopen64.c: Update includes.
5893 * libc/stdio64/fopen64.c: Likewise.
5894 * libc/stdio64/freopen64.c: Likewise.
5895 * libc/stdio64/fseeko64.c: Likewise.
5896 * libc/stdio64/ftello64.c: Likewise.
5897 * libc/stdio/findfp.c (std) [__LARGE64_FILES]: Open stdin, stdout,
5898 and stderr with 64-bit offset.
5899 * libc/stdio/fseek.c (_fseek_r): Avoid compile warning.
5900 * libc/stdio/makebuf.c (__smakebuf_r): Likewise.
5901 * libc/stdio/mktemp.c (_gettemp): Likewise.
5902
2babeb3d
JJ
59032007-05-01 Cary R. <cygcary <at> yahoo.com>
5904
5905 * libm/math/e_pow.c: Fix to be consistent with glibc with regards
5906 to treatment of NaN and +-inf arguments.
5907 * libm/math/ef_pow.c: Ditto.
5908 * libm/math/w_pow.c: Ditto.
5909 * libm/math/wf_pow.c: Ditto.
5910 * libm/math/w_acos.c: Fix domain errors to return NaN.
5911 * libm/math/w_asin.c: Ditto.
5912 * libm/math/wf_acos.c: Ditto.
5913 * libm/math/wf_asin.c: Ditto.
5914 * libm/math/w_log.c: Fix to return NaN for negative number inputs.
5915 * libm/math/wf_log.c: Ditto.
5916 * libm/math/wf_log10.c: Ditto.
5917 * libm/math/w_log10.c: Ditto.
5918
643aff87
JJ
59192007-04-27 Jeff Johnston <jjohnstn@redhat.com>
5920
5921 * libc/machine/m68k/Makefile.am: Temporarily remove
5922 memcpy.S and memset.S until logic can be confirmed for
5923 !(__mcoldfile__) case.
5924 * libc/machine/m68k/Makefile.in: Regenerated.
5925
9e5957de
JJ
59262007-04-27 Kazu Hirata <kazu@codesourcery.com>
5927
5928 * libc/machine/m68k/Makefile.am (lib_a_SOURCES): Add memcpy.S
5929 and memset.S.
5930 * libc/machine/m68k/Makefile.in: Regenerate.
5931 * libc/machine/m68k/memcpy.S, libc/machine/m68k/memset.S: New.
5932
976e9d28
JJ
59332007-04-26 Patrick Mansfield <patmans@us.ibm.com>
5934
5935 * libc/include/ieeefp.h: use prefixed __ieeefp_ macros that can be
5936 overridden via machine/ieeefp.h.
5937 * libc/include/machine/ieeefp.h: Add SPU specific C99 and ieeefp
5938 macros for isnan and related macros.
5939 * libc/include/math.h: Allow C99 isfinite, isinf, and isnan to be
5940 overridden via machine/ieeefp.h.
5941 * libm/machine/spu/Makefile.am: Add new files.
5942 * libm/machine/spu/Makefile.in: Autogenerate with new files.
5943 * libm/machine/spu/sf_fpclassify.c: Add SPU specific __fpclassifyf.
5944 * libm/machine/spu/sf_finite.c: Add SPU specific finitef.
5945 * libm/machine/spu/sf_isinf.c: Add SPU specific isinff.
5946 * libm/machine/spu/sf_isinff.c: Add SPU specific __isinff.
5947 * libm/machine/spu/sf_isnan.c: Add SPU specific isnanf.
5948 * libm/machine/spu/sf_isnanf.c: Add SPU specific __isnanf.
5949 * libm/machine/spu/sf_nan.c: Add SPU specific nanf.
5950
34450bd5
JJ
59512007-04-25 Jeff Johnston <jjohnstn@redhat.com>
5952
5953 * libm/common/s_fpclassify.c (__fpclassifyf): Move this to...
5954 * libm/common/sf_fpclassify.c: ...here. New file.
5955 * libm/common/Makefile.am: Add sf_fpclassify.c.
5956 * libm/common/Makefile.in: Regenerated.
5957
42cd3e6c
JJ
59582007-04-25 Patrick Mansfield <patmans@us.ibm.com>
5959
5960 * libc/machine/spu/sys/errno.h: New file, so spu errno values match
5961 ppu linux values. This file is a copy of the cris/sys/errno.h plus
5962 a few changes (see spu errno.h comments).
5963
8b366086
JJ
59642007-04-25 Eric Blake <ebb9@byu.net>
5965
5966 * libc/stdio/vfprintf.c (get_arg): Support %1$lc. Simplify types
5967 that promote to int.
5968
245240b5
JJ
59692007-04-25 Patrick Mansfield <patmans@us.ibm.com>
5970
b4f09558 5971 * libm/machine/spu/headers/feholdexcept.h: Use *envp not env so
245240b5
JJ
5972 we clear the proper bits in the fpscr, and don't set some random ones.
5973
68f2517f
EB
59742007-04-24 Eric Blake <ebb9@byu.net>
5975
5866c023
EB
5976 * libc/stdio/vfprintf.c (_VFPRINTF_R): Don't zero pad on infinity
5977 or NaN with %05f.
5978
27e5e9ab
EB
5979 * libc/stdio/vfprintf.c (_VFPRINTF_R): Avoid multibyte when not
5980 _MB_CAPABLE.
5981
68f2517f
EB
5982 * libc/include/limits.h (NL_ARGMAX): Define a default value.
5983 * libc/stdio/vfprintf.c (MAX_POS_ARGS): Define in terms of
5984 NL_ARGMAX, if present.
5985
59862007-04-23 Brian Dessent <brian@dessent.net>
5987
5988 * libc/stdio/vfprintf.c (_vfprintf_r): When the alternate-form flag
5989 has been specified with types 'f', 'F', 'g', or 'G', ensure the
5990 trailing decimal is printed.
5991
714d0b7a
JJ
59922007-04-23 Ralf Wildenhues <Ralf.Wildenhues <at> gmx.de>
5993
5994 * confsubdir.m4 (AC_CONFIG_SUBDIRS, _AC_OUTPUT_SUBDIRS): New
5995 file. Override Autoconf-2.59's version of these macros with
5996 fixed handling of multiple adjacent whitespace in arguments.
5997 * aclocal.m4: Regenerated forcefully.
5998 * configure: Ditto.
5999 * Makefile.in: Ditto.
6000 * libc/*Makefile.in: Ditto.
6001 * libc/*aclocal.m4: Ditto.
6002 * libc/*configure: Ditto.
6003 * libm/*Makefile.in: Ditto.
6004 * libm/*aclocal.m4: Ditto.
6005 * libm/*configure: Ditto.
6006
8aebc414
JJ
60072007-04-23 Jeff Johnston <jjohnstn@redhat.com>
6008
6009 * libc/sys/arc/dummy.S: Dummy file to force .S.o suffix rule.
6010 * libc/sys/arc/Makefile.am: Add dummy.S to EXTRA_lib_a_SOURCES
6011 and set lib_a_CCASFLAGS so crto.o will use .S.o default suffix rule.
6012 * libc/sys/arc/Makefile.in: Regenerated.
6013
fb5750bf
JJ
60142007-04-17 Brian Dessent <brian@dessent.net>
6015
6016 * libc/stdio/sscanf.c: Update documentation comments.
6017 * libc/stdio/vfscanf.c (__SVFSCANF_R): Handle j, t, and z modifiers.
6018
ba3ccd63
EB
60192007-04-12 Eric Blake <ebb9@byu.net>
6020
6021 * libc/stdio/vfprintf.c (_VFPRINTF_F, cvt): Don't confuse %F with %e.
6022 (chclass): Recognize 'F', 'X', 'n', and not 'W'.
6023 (get_arg): Handle %1$F, %1$n.
6024
503e2d1c
EB
60252007-04-10 Eric Blake <ebb9@byu.net>
6026
6027 * libc/include/stdio.h (_ELIDABLE_INLINE): Work even when using
6028 CFLAGS=-O0.
6029
17c0c97d
EB
60302007-04-09 Eric Blake <ebb9@byu.net>
6031
6032 * libc/include/stdio.h: Add gcc format attributes to printf and
6033 scanf families.
6034
abe43f42 60352007-04-09 Joel Schopp <jschopp@austin.ibm.com>
17c0c97d 6036
abe43f42
JJ
6037 * libc/machine/spu/strxfrm.c: Fix strxfrm so we still copy data
6038 even if the passed in length n is shorter than the source string.
6039 This matches both the non-spu specific and the glibc strxfrm
6040 behaviour.
6041
0efa93c0
KH
60422007-04-04 Mark Mitchell <mark@codesourcery.com>
6043
6044 * libc/stdlib/__call_atexit.c (__call_exitprocs): Handle atexit
6045 functions registering additional atexit functions.
6046
07278e6c
KH
6047 * testsuite/lib/flags.exp (newlib_include_flags): Drop
6048 -I${newlib_dir}.
6049
748c1917 60502007-04-04 Patrick Mansfield <patmans@us.ibm.com>
17c0c97d 6051
748c1917
JJ
6052 * libc/machine/spu/sys/syscall.h: New file for __send_to_ppe
6053 prototype.
6054 * libc/machine/spu/c99ppe.h: Remove static version of send_to_ppe.
6055 * libc/machine/spu/clearerr.c: Call __send_to_ppe vs send_to_ppe.
6056 * libc/machine/spu/fclose.c: Ditto.
6057 * libc/machine/spu/feof.c: Ditto.
6058 * libc/machine/spu/ferror.c: Ditto.
6059 * libc/machine/spu/fflush.c: Ditto.
6060 * libc/machine/spu/fgetc.c: Ditto.
6061 * libc/machine/spu/fgetpos.c: Ditto.
6062 * libc/machine/spu/fgets.c: Ditto.
6063 * libc/machine/spu/fileno.c: Ditto.
6064 * libc/machine/spu/fopen.c: Ditto.
6065 * libc/machine/spu/fprintf.c: Ditto.
6066 * libc/machine/spu/fputc.c: Ditto.
6067 * libc/machine/spu/fputs.c: Ditto.
6068 * libc/machine/spu/fread.c: Ditto.
6069 * libc/machine/spu/freopen.c: Ditto.
6070 * libc/machine/spu/fscanf.c: Ditto.
6071 * libc/machine/spu/fseek.c: Ditto.
6072 * libc/machine/spu/fsetpos.c: Ditto.
6073 * libc/machine/spu/ftell.c: Ditto.
6074 * libc/machine/spu/fwrite.c: Ditto.
6075 * libc/machine/spu/getc.c: Ditto.
6076 * libc/machine/spu/getchar.c: Ditto.
6077 * libc/machine/spu/gets.c: Ditto.
6078 * libc/machine/spu/perror.c: Ditto.
6079 * libc/machine/spu/printf.c: Ditto.
6080 * libc/machine/spu/putc.c: Ditto.
6081 * libc/machine/spu/putchar.c: Ditto.
6082 * libc/machine/spu/puts.c: Ditto.
6083 * libc/machine/spu/remove.c: Ditto.
6084 * libc/machine/spu/rename.c: Ditto.
6085 * libc/machine/spu/rewind.c: Ditto.
6086 * libc/machine/spu/scanf.c: Ditto.
6087 * libc/machine/spu/setbuf.c: Ditto.
6088 * libc/machine/spu/setvbuf.c: Ditto.
6089 * libc/machine/spu/snprintf.c: Ditto.
6090 * libc/machine/spu/sprintf.c: Ditto.
6091 * libc/machine/spu/sscanf.c: Ditto.
6092 * libc/machine/spu/tmpfile.c: Ditto.
6093 * libc/machine/spu/tmpnam.c: Ditto.
6094 * libc/machine/spu/ungetc.c: Ditto.
6095 * libc/machine/spu/vfprintf.c: Ditto.
6096 * libc/machine/spu/vfscanf.c: Ditto.
6097 * libc/machine/spu/vprintf.c: Ditto.
6098 * libc/machine/spu/vscanf.c: Ditto.
6099 * libc/machine/spu/vsnprintf.c: Ditto.
6100 * libc/machine/spu/vsprintf.c: Ditto.
6101 * libc/machine/spu/vsscanf.c: Ditto.
6102
a706aa2e
JJ
61032007-04-04 Jeff Johnston <jjohnstn@redhat.com>
6104
6105 * libc/argz/argz_insert.c: Add stddef.h to get ptrdiff_t type.
6106
db7aa4b1
JJ
61072007-04-04 Eric Blake <ebb9@byu.net>
6108
6109 * libc/stdio/asiprintf.c (_asiprintf_r): Fix reentrancy.
6110 (asiprintf): Avoid overhead.
6111 * libc/stdio/asprintf.c (_asprintf_r): Fix reentrancy.
6112 (asprintf): Avoid overhead.
6113 * libc/stdio/diprintf.c (_diprintf_r, diprintf): New file.
6114 * libc/stdio/dprintf.c (_dprintf_r, dprintf): Use _DEFUN.
6115 * libc/stdio/fiprintf.c (_fiprintf_r): Add reentrant version.
6116 (fiprintf): Avoid overhead.
6117 * libc/stdio/fprintf.c (_fprintf_r): Add reentrant version.
6118 (fprintf): Avoid overhead.
6119 * libc/stdio/iprintf.c (_iprintf_r): Use _DEFUN.
6120 (iprintf): Avoid overhead.
6121 * libc/stdio/printf.c (_printf_r): Use _DEFUN.
6122 (printf): Avoid overhead.
6123 * libc/stdio/vasiprintf.c (vasiprintf): Reduce binary size.
6124 * libc/stdio/vasprintf.c (vasprintf): Reduce binary size.
6125 * libc/stdio/vdiprintf.c (_vdiprintf_r, vdiprintf): New file.
6126 * libc/stdio/vdprintf.c (vdprintf): Avoid overhead.
6127 * libc/stdio/vsiprintf.c (vsiprintf): Reduce binary size.
6128 * libc/stdio/vsniprintf.c (vsniprintf): Reduce binary size.
6129 * libc/stdio/vsnprintf.c (vsnprintf): Reduce binary size.
6130 * libc/stdio/vsprintf.c (vsprintf): Reduce binary size.
6131 * libc/stdio/Makefile.am (GENERAL_SOURCES): Add diprintf.c,
6132 vdiprintf.c.
6133 * libc/include/stdio.h (diprintf, _diprintf_r, vdiprintf)
6134 (_vdiprintf_r, _fiprintf_r, _vfiprintf_r): Add prototypes.
6135
2c58b5a5
DK
61362007-03-30 Dave Korn <dave.korn@artimi.com>
6137
6138 * libc/include/stdio.h (_ELIDABLE_INLINE): New macro to conceal
6139 conflicting inline semantics between C99 and GNU89.
6140 (__sgetc_r): Replace static inline with _ELIDABLE_INLINE to be
6141 compatible with -fkeep-inline-functions usage.
6142 (__sputc_r): Likewise for consistency even though disabled.
6143
519aec5d
NC
61442007-03-29 Nick Clifton <nickc@redhat.com>
6145
6146 Reflect changes made to generic vfprintf.c:
6147 * libc/machine/powerpc/vfprintf.c (__sprint): Rename to __sprint_r
6148 and add a "struct reent *" argument.
6149 (__sbprintf): Rename to __sbprintf_r, add a "struct reent *"
6150 argument and call _VFPRINTF_R instead of VFPRINTF.
6151 (_VFPRINTF_R): Add data pointer to call to cantwrite().
6152 Fix uses of __sprint() and __sbprintf.
6153
61542007-03-20 Nick Clifton <nickc@redhat.com>
6155
6156 Reflect changes made to generic vfprintf.c:
6157 * libc/machine/powerpc/vfprintf.c (__sprint): Rename to __sprint_r
6158 and add a "struct reent *" argument.
6159 (__sbprintf): Rename to __sbprintf_r, add a "struct reent *"
6160 argument and call _VFPRINTF_R instead of VFPRINTF.
6161 (_VFPRINTF_R): Add data pointer to call to cantwrite().
6162 Fix uses of __sprint() and __sbprintf.
6163
443871a6
JJ
61642007-03-16 Charles Wilson <cygwin@...>
6165
6166 * libc/argz/argz_insert.c: "before" pointer is
6167 invalid after *argz realloc. Compute offset
6168 between "before" and *argz, and use it after
6169 reallocation instead.
6170
a167bcd8
JJ
61712007-03-16 Eric Blake <ebb9@byu.net>
6172
6173 * libc/stdio64/fseek064.c (_fseeko64_r): Fix reentrancy.
6174 * libc/stdio64/freopen64.c (_freopen64_r): Ditto.
6175
826b5591
JJ
61762007-03-15 Jeff Johnston <jjohnstn@redhat.com>
6177
6178 * configure.in: Add new --enable-newlib-reent-small option.
6179 * configure: Regenerated.
6180 * acconfig.h: Add _WANT_REENT_SMALL.
6181 * newlib.hin: Regenerated minus PACKAGE macros to add
6182 _WANT_REENT_SMALL macro.
6183 * libc/include/sys/config.h[_WANT_REENT_SMALL]: Set _REENT_SMALL
6184 if not already set.
6185 * libc/stdio/fflush.c[_REENT_SMALL]: Return immediately if
6186 there is no buffer.
6187 * libc/stdio/local.h[_REENT_SMALL]: Fix CHECK_INIT macro to
6188 use reentrant pointer passed in when resetting the file
6189 pointer to one of the std streams.
6190
14ba5e14
JJ
61912007-03-15 Eric Blake <ebb9@byu.net>
6192
6193 * libc/stdio/local.h (cantwrite, FREEUB, FREELB): Make reentrant.
6194 (__smakebuf): Rename...
6195 (__smakebuf_r): to this.
6196 * libc/stdio/fvwrite.h (__swsetup_r): Rename, from __swsetup.
6197 * libc/stdio/makebuf.c (__smakebuf): Detect failed asprint
6198 allocation, then rename...
6199 (__smakebuf_r): ...to this and fix reentrancy.
6200 * libc/stdio/wsetup.c (__swsetup): Detect failed asprintf
6201 allocation, then rename...
6202 (__swsetup_r): ...to this and fix reentrancy.
6203 * libc/stdio/fseek.c (_fseek_r): Fix reentrancy.
6204 * libc/stdio/refill.c (__srefill_r): Likewise.
6205 * libc/stdio/fclose.c (_fclose_r): Likewise.
6206 * libc/stdio/fread.c (_fread_r): Likewise.
6207 * libc/stdio/freopen.c (_freopen_r): Likewise.
6208 * libc/stdio/wbuf.c (__swbuf_r): Likewise.
6209 * libc/stdio64/fseeko64.c (_fseeko64_r): Likewise.
6210 * libc/stdio/fvwrite.c (__sfvwrite_r): Set errno properly on
6211 failed asprintf allocation, and fix reentrancy.
6212 * libc/stdio/snprintf.c (snprintf, _snprintf_r): Report overflow,
6213 as required by POSIX.
6214 * libc/stdio/sniprintf.c (sniprintf, _sniprintf_r): Likewise.
6215 * libc/stdio/vsnprintf.c (vsnprintf, _vsnprintf_r): Likewise.
6216 * libc/stdio/vsniprintf.c (vsniprintf, _vsniprintf_r): Likewise.
6217
99304ce6
JJ
62182007-03-12 Eric Blake <ebb9@byu.net>
6219
6220 * libc/stdio/fvwrite.c (__sfvwrite_r): Fix reentrancy.
6221 * libc/stdio/vasprintf.c (vasprintf, _vasprintf_r): Pass failed
6222 allocation to caller.
6223 * libc/stdio/asprintf.c (_asprintf_r, asprintf): Likewise.
6224 * libc/stdio/asiprintf.c (_asiprintf_r, asiprintf): Likewise.
6225 * libc/stdio/vasiprintf.c (vasiprintf, _vasiprintf_r): Likewise.
6226
d9edc05f
JJ
62272007-02-23 Jeff Johnston <jjohnstn@redhat.com>
6228
6229 * libm/math/w_pow.c: Fix typo in documentation comment.
6230
59673dbb
JJ
62312007-02-21 Patrick Mansfield <patmans@us.ibm.com>
6232
6233 * libc/reent/timer.c: Removed (split into two new files).
6234 * libc/reent/timesr.c: New file for _times_r.
6235 * libc/reent/gettimeofdayr.c: New file out _gettimeofday_r.
6236 * reent/Makefile.in: Remove timer.c, add timesr.c and
6237 gettimeofdayr.c.
6238 * libc/reent/Makefile.am: Regenerate.
6239
547c5c61
JJ
62402007-02-20 Patrick Mansfield <patmans@us.ibm.com>
6241
6242 * configure.host: Build SPU with default_newlib_atexit_dynamic_alloc="no".
6243
3b7e017e
JJ
62442007-02-20 Kazunori Asayama <asayama@sm.sony.co.jp>
6245
6246 * libc/machine/spu/Makefile.am: Add new objects.
6247 * libc/machine/spu/Makefile.in: Regenerated.
6248 * libc/machine/spu/fiprintf.c: New file. Add implementation of
6249 integer-only version.
6250 * libc/machine/spu/fiscanf.c: Ditto.
6251 * libc/machine/spu/iprintf.c: Ditto.
6252 * libc/machine/spu/iscanf.c: Ditto.
6253 * libc/machine/spu/siprintf.c: Ditto.
6254 * libc/machine/spu/siscanf.c: Ditto.
6255 * libc/machine/spu/sniprintf.c: Ditto.
6256 * libc/machine/spu/vfiprintf.c: Ditto.
6257 * libc/machine/spu/vfiscanf.c: Ditto.
6258 * libc/machine/spu/viprintf.c: Ditto.
6259 * libc/machine/spu/viscanf.c: Ditto.
6260 * libc/machine/spu/vsiprintf.c: Ditto.
6261 * libc/machine/spu/vsiscanf.c: Ditto.
6262 * libc/machine/spu/vsniprintf.c: Ditto.
6263 * libc/machine/spu/fprintf.c: Add support for integer-only
6264 version.
6265 * libc/machine/spu/fscanf.c: Ditto.
6266 * libc/machine/spu/printf.c: Ditto.
6267 * libc/machine/spu/scanf.c: Ditto.
6268 * libc/machine/spu/snprintf.c: Ditto.
6269 * libc/machine/spu/sprintf.c: Ditto.
6270 * libc/machine/spu/sscanf.c: Ditto.
6271 * libc/machine/spu/vfprintf.c: Ditto.
6272 * libc/machine/spu/vfscanf.c: Ditto.
6273 * libc/machine/spu/vprintf.c: Ditto.
6274 * libc/machine/spu/vscanf.c: Ditto.
6275 * libc/machine/spu/vsnprintf.c: Ditto.
6276 * libc/machine/spu/vsprintf.c: Ditto.
6277 * libc/machine/spu/vsscanf.c: Ditto.
6278
960e5d8f
JJ
62792007-02-20 Kazunori Asayama <asayama@sm.sony.co.jp>
6280
6281 * libc/include/stdio.h: Add declaration for vsiprintf.
6282
958e329d
JJ
62832007-02-14 Patrick Mansfield <patmans@us.ibm.com>
6284
6285 Add a floating point environment for SPU (cell):
6286
6287 * configure.host: add libm_machine_dir=spu.
6288 * libm/machine/configure: Add spu.
6289 * libm/machine/configure.in: regenerated with spu added.
6290 * libc/machine/spu/include/fenv.h: New file.
6291 * libc/machine/spu/sys/fenv.h: Ditto.
6292 * libm/machine/spu/Makefile.am: Ditto.
6293 * libm/machine/spu/Makefile.in: Ditto.
6294 * libm/machine/spu/aclocal.m4: Ditto.
6295 * libm/machine/spu/configure: Ditto.
6296 * libm/machine/spu/configure.in: Ditto.
6297 * libm/machine/spu/fe_dfl_env.c: Ditto.
6298 * libm/machine/spu/feclearexcept.c: Ditto.
6299 * libm/machine/spu/fegetenv.c: Ditto.
6300 * libm/machine/spu/fegetexceptflag.c: Ditto.
6301 * libm/machine/spu/fegetround.c: Ditto.
6302 * libm/machine/spu/feholdexcept.c: Ditto.
6303 * libm/machine/spu/feraiseexcept.c: Ditto.
6304 * libm/machine/spu/fesetenv.c: Ditto.
6305 * libm/machine/spu/fesetexceptflag.c: Ditto.
6306 * libm/machine/spu/fesetround.c: Ditto.
6307 * libm/machine/spu/fetestexcept.c: Ditto.
6308 * libm/machine/spu/feupdateenv.c: Ditto.
6309 * libm/machine/spu/headers/feclearexcept.h: Ditto.
6310 * libm/machine/spu/headers/fefpscr.h: Ditto.
6311 * libm/machine/spu/headers/fegetenv.h: Ditto.
6312 * libm/machine/spu/headers/fegetexceptflag.h: Ditto.
6313 * libm/machine/spu/headers/fegetround.h: Ditto.
6314 * libm/machine/spu/headers/feholdexcept.h: Ditto.
6315 * libm/machine/spu/headers/feraiseexcept.h: Ditto.
6316 * libm/machine/spu/headers/fesetenv.h: Ditto.
6317 * libm/machine/spu/headers/fesetexceptflag.h: Ditto.
6318 * libm/machine/spu/headers/fesetround.h: Ditto.
6319 * libm/machine/spu/headers/fetestexcept.h: Ditto.
6320 * libm/machine/spu/headers/feupdateenv.h: Ditto.
6321
4f7e59f2
CV
63222007-02-14 Corinna Vinschen <corinna@vinschen.de>
6323
6324 * libc/include/sys/features.h: Add _POSIX_MESSAGE_PASSING for
6325 Cygwin.
6326
d7e4c7a8
CV
63272007-02-08 Corinna Vinschen <corinna@vinschen.de>
6328
6329 * libc/include/sys/features.h: Add _POSIX_SHARED_MEMORY_OBJECTS for
6330 Cygwin. Fix value of _POSIX_SEMAPHORES. Fix formatting.
6331
0e37a2e6
CV
63322007-02-07 Corinna Vinschen <corinna@vinschen.de>
6333
6334 * libc/include/sys/features.h: Add definition of all supported
6335 _POSIX_xxx values for Cygwin.
6336 * libc/include/sys/types.h (pthread_rwlock_t): Omit definition
6337 on Cygwin.
6338 (pthread_rwlockattr_t): Ditto.
6339 * libc/include/sys/unistd.h: Define all _SC_xxx values as
6340 required by SUSv3. Unify formatting.
6341
2b77087a 63422007-02-02 Ralf Corsépius <ralf.corsepius@rtems.org>
6699fabb
JJ
6343
6344 * libc/include/sys/errno.h: Add ECANCELED.
6345
22a339e8 63462007-02-01 Joel Schopp <jschopp@austin.ibm.com>
ba3ccd63 6347 Kazunori Asayama <asayama@sm.sony.co.jp>
22a339e8
JJ
6348
6349 * libc/machine/spu/Makefile.am: Add objects.
6350 * libc/machine/spu/Makefile.in: Regenerated.
6351 * libc/machine/spu/vsscanf.c: New file. Add a stdio function
6352 implementation.
6353 * libc/machine/spu/snprintf.c: Ditto.
6354 * libc/machine/spu/sprintf.c: Ditto.
6355 * libc/machine/spu/sscanf.c: Ditto.
6356 * libc/machine/spu/remove.c: Ditto.
6357 * libc/machine/spu/rename.c: Ditto.
6358 * libc/machine/spu/tmpnam.c: Ditto.
6359 * libc/machine/spu/vsnprintf.c: Add initialization routine of
6360 stdio stuffs.
6361 * libc/machine/spu/vsprintf.c: Ditto.
6362
7d592bb1 63632007-02-01 Joel Schopp <jschopp@austin.ibm.com>
ba3ccd63 6364 Kazunori Asayama <asayama@sm.sony.co.jp>
7d592bb1
JJ
6365
6366 * configure.host: Enable SPU specific stdio directory.
6367 * libc/machine/spu/Makefile.am: Add objects.
6368 * libc/machine/spu/Makefile.in: Regenerated.
6369 * libc/machine/spu/c99ppe.h: Add macros and function
6370 declarations to initialize SPU specific stdio stuffs.
6371 * libc/machine/spu/stdio.c: Add functions to manage Cell SPU
6372 specific FILE structures.
6373 * libc/machine/spu/perror.c: Add initialization routine of
6374 stdio stuffs.
6375 * libc/machine/spu/printf.c: Ditto.
6376 * libc/machine/spu/putchar.c: Ditto.
6377 * libc/machine/spu/puts.c: Ditto.
6378 * libc/machine/spu/vprintf.c: Ditto.
6379 * libc/machine/spu/clearerr.c: New file. Add a stdio function
6380 implementation.
6381 * libc/machine/spu/feof.c: Ditto.
6382 * libc/machine/spu/ferror.c: Ditto.
6383 * libc/machine/spu/fileno.c: Ditto.
6384 * libc/machine/spu/fopen.c: Ditto.
6385 * libc/machine/spu/fclose.c: Ditto.
6386 * libc/machine/spu/freopen.c: Ditto.
6387 * libc/machine/spu/fflush.c: Ditto.
6388 * libc/machine/spu/fseek.c: Ditto.
6389 * libc/machine/spu/ftell.c: Ditto.
6390 * libc/machine/spu/rewind.c: Ditto.
6391 * libc/machine/spu/fgetpos.c: Ditto.
6392 * libc/machine/spu/fsetpos.c: Ditto.
6393 * libc/machine/spu/fread.c: Ditto.
6394 * libc/machine/spu/fwrite.c: Ditto.
6395 * libc/machine/spu/getc.c: Ditto.
6396 * libc/machine/spu/getchar.c: Ditto.
6397 * libc/machine/spu/gets.c: Ditto.
6398 * libc/machine/spu/fgetc.c: Ditto.
6399 * libc/machine/spu/fgets.c: Ditto.
6400 * libc/machine/spu/ungetc.c: Ditto.
6401 * libc/machine/spu/putc.c: Ditto.
6402 * libc/machine/spu/fputc.c: Ditto.
6403 * libc/machine/spu/fputs.c: Ditto.
6404 * libc/machine/spu/vfprintf.c: Ditto.
6405 * libc/machine/spu/vfscanf.c: Ditto.
6406 * libc/machine/spu/fprintf.c: Ditto.
6407 * libc/machine/spu/fscanf.c: Ditto.
6408 * libc/machine/spu/scanf.c: Ditto.
6409 * libc/machine/spu/vscanf.c: Ditto.
6410 * libc/machine/spu/setbuf.c: Ditto.
6411 * libc/machine/spu/setvbuf.c: Ditto.
6412 * libc/machine/spu/tmpfile.c: Ditto.
6413
64142007-02-01 Jeff Johnston <jjohnstn@redhat.com>
6415
6416 * libc/include/sys/config.h[__SPU__]: Define __CUSTOM_FILE_IO__.
6417 * libc/include/stdio.h[!__CUSTOM_FILE_IO__]: Add flag check
17c0c97d 6418 around stdio macros that manipulate fields in the normal file
7d592bb1
JJ
6419 structure.
6420 * libc/include/sys/reent.h[__CUSTOM_FILE_IO__]: Include
6421 <sys/custom_file.h> to define custom FILE structure.
6422 * libc/include/sys/custom_file.h: New default header file
6423 that generates error if not overridden when __CUSTOM_FILE_IO__ set.
6424 * libc/machine/spu/sys/custom_file.h: New file.
6425
0733ae3b
JJ
64262007-01-31 Kazunori Asayama <asayama@sm.sony.co.jp>
6427
6428 * configure.host: Define stdio directory as a variable.
6429 * libc/Makefile.am: Define stdio related names
6430 as macros.
6431 * libc/configure.in: Add detection routine of stdio directory.
6432 * libc/Makefile.in: Regenerated.
6433 * libc/configure: Ditto.
6434 * libc/argz/Makefile.in: Ditto.
6435 * libc/ctype/Makefile.in: Ditto.
6436 * libc/errno/Makefile.in: Ditto.
6437 * libc/iconv/Makefile.in: Ditto.
6438 * libc/iconv/ccs/Makefile.in: Ditto.
6439 * libc/iconv/ccs/binary/Makefile.in: Ditto.
6440 * libc/iconv/ces/Makefile.in: Ditto.
6441 * libc/iconv/lib/Makefile.in: Ditto.
6442 * libc/locale/Makefile.in: Ditto.
6443 * libc/misc/Makefile.in: Ditto.
6444 * libc/posix/Makefile.in: Ditto.
6445 * libc/reent/Makefile.in: Ditto.
6446 * libc/search/Makefile.in: Ditto.
6447 * libc/signal/Makefile.in: Ditto.
6448 * libc/stdio/Makefile.in: Ditto.
6449 * libc/stdio64/Makefile.in: Ditto.
6450 * libc/stdlib/Makefile.in: Ditto.
6451 * libc/string/Makefile.in: Ditto.
6452 * libc/syscalls/Makefile.in: Ditto.
6453 * libc/time/Makefile.in: Ditto.
6454 * libc/unix/Makefile.in: Ditto.
6455
cb7ba0e1
BE
64562007-01-30 Ben Elliston <bje@au.ibm.com>
6457
c7cd7849
BE
6458 * libc/machine/spu/vsnprintf.c (c99_vsnprintf_t): Const-qualify
6459 fmt member.
6460 * libc/machine/spu/printf.c (c99_printf_t): Likewise.
6461 (printf): Pass fmt to va_start to suppress a warning.
6462
cb7ba0e1
BE
6463 * libc/search/hash.c (init_hash): Make `info' parameter const.
6464
f89533c1
JJ
64652007-01-19 Kazunori Asayama <asayama@sm.sony.co.jp>
6466
6467 * libc/machine/spu/c99ppe.h: Replace vector with __vector.
6468 * libc/machine/spu/vec_literal.h: Ditto.
6469 * libc/machine/spu/strncmp.c: Ditto.
6470
94b91791
JJ
64712007-01-15 Joseph Myers <joseph@codesourcery.com>
6472 Kazu Hirata <kazu@codesourcery.com>
6473
6474 * libc/machine/powerpc/setjmp.S (setjmp, longjmp): Add support
6475 for E500V1 and E500V2.
6476
26190be1
JJ
64772007-01-11 Jeff Johnston <jjohnstn@redhat.com>
6478
6479 * libm/configure.in: Always configure machine directory.
6480 * libm/Makefile.am: Make machine subdirectory part of SUBDIRS
6481 unconditionally.
6482 * libm/configure: Regenerated.
6483 * libm/Makefile.in: Ditto.
6484 * libm/*/Makefile.in: Ditto.
6485
8e0e8f40
JJ
64862007-01-05 Brian Ford <Brian.Ford@FlightSafety.com>
6487
6488 * configure.host (*-*-cygwin*): Define HAVE_BLKSIZE.
6489
9cd4a2de
JJ
64902007-01-02 Ben Elliston <bje@au.ibm.com>
6491
ba3ccd63
EB
6492 * doc/makedoc.c: Include <stdlib.h>.
6493 (malloc, realloc): Remove extern declarations.
9cd4a2de 6494
5fdec53f 64952006-12-18 Jeff Johnston <jjohnstn@redhat.com>
a4b11782 6496
ba3ccd63
EB
6497 * NEWS: Update with 1.15.0 info.
6498 * README: Ditto.
6499 * acinclude.m4: Change version number to 1.15.0.
6500 * aclocal.m4: Regenerated.
6501 * configure: Ditto.
6502 * doc/aclocal.m4: Ditto.
6503 * doc/configure: Ditto.
6504 * libc/*/aclocal.m4: Ditto.
6505 * libc/*/configure: Ditto.
6506 * libc/libc.texinfo: Ditto.
6507 * libm/*/aclocal.m4: Ditto.
6508 * libm/*/configure: Ditto.
6509 * libm/libm.texinfo: Ditto.
6510 * libc/sys/linux/shared.ld: Add VERS_1.15.
a4b11782 6511
def943c1
JJ
65122006-12-18 Kazu Hirata <kazu@codesourcery.com>
6513
6514 Merge from newlib-csl-20060320-branch:
6515 2006-12-01 Nathan Sidwell <nathan@codesourcery.com>
6516 Kazu Hirata <kazu@codesourcery.com>
6517
6518 * configure.host: Recognize fido.
6519
17c0c97d 65202006-12-18 Joel Schopp <jschopp@austin.ibm.com>
505ccc75 6521
ba3ccd63
EB
6522 * libc/machine/spu/c99ppe.h: New file
6523 * libc/machine/spu/perror.c: New file to override libc/stdio version.
6524 * libc/machine/spu/printf.c: New file
6525 * libc/machine/spu/putchar.c: New file
6526 * libc/machine/spu/puts.c: New file
6527 * libc/machine/spu/vprintf.c: New file
6528 * libc/machine/spu/vsnprintf.c: New file
6529 * libc/machine/spu/vsprintf.c: New file
6530 * libc/machine/spu/Makefile.am: Add new targets.
6531 * libc/machine/spu/Makefile.in: Regenerated.
505ccc75 6532
78b7c6f8
JJ
65332006-12-18 Jeff Johnston <jjohnstn@redhat.com>
6534
ba3ccd63
EB
6535 * aclocal.m4 */aclocal.m4: Regenerated using aclocal 1.9.6.
6536 * Makefile.in */Makefile.in: Regenerated using automake 1.9.6.
78b7c6f8 6537
f5222560
JJ
65382006-12-18 Jeff Johnston <jjohnstn@redhat.com>
6539
6540 * libc/stdlib/mallocr.c (malloc_extend_top): Add patch from
6541 2.6.5 version of Doug Lea's malloc which is the basis of
6542 this code.
6543
9b354d7f
JJ
65442006-12-18 Kazunori Asayama <asayama@sm.sony.co.jp>
6545
6546 * libc/include/machine/setjmp.h[__SPU__]: Replace vector with __vector.
6547
4c0b8a07 65482006-12-14 Jeff Johnston <jjohnstn@redhat.com>
ba3ccd63 6549 Eric Blake <ebb9@byu.net>
4c0b8a07 6550
ba3ccd63
EB
6551 * libc/stdio/fflush.c (fflush): On seekable streams, always flush
6552 read but unused data.
6553 * libc/stdio/fclose.c (_fclose_r): Always flush streams, since
6554 even read streams may have side effects that must happen.
4c0b8a07 6555
dd52bb72
JJ
65562006-12-13 Joel Schopp <jschopp@austin.ibm.com>
6557
ba3ccd63 6558 * libc/machine/spu/setjmp.S: Fix to handle registers past 115
6a200958
JJ
6559 correctly.
6560
65612006-12-13 Joel Schopp <jschopp@austin.ibm.com>
6562
ba3ccd63 6563 * libc/include/alloca.h: Add undef alloca to work with xlc.
dd52bb72 6564
4e051d91
JJ
65652006-12-12 Joel Schopp <jschopp@austin.ibm.com>
6566
ba3ccd63 6567 * libc/include/machine/setjmp.h[__SPU__]: Redefine _JBTYPE for
6a200958 6568 cell spu.
4e051d91 6569
489bb390
JJ
65702006-12-04 Kazunori Asayama <asayama@sm.sony.co.jp>
6571
6572 * libc/machine/spu/strncpy.c: Add padding.
6573
3e2d7a91
JJ
65742006-12-04 Kazunori Asayama <asayama@sm.sony.co.jp>
6575
17c0c97d 6576 * testsuite/newlib.string/tstring.c:
3e2d7a91 6577
0a2ef998
JJ
65782006-12-01 Kazunori Asayama <asayama@sm.sony.co.jp>
6579
6580 * libc/machine/spu/strchr.c: Fix mask for misaligned string.
6581 * libc/machine/spu/strrchr.c: Ditto.
6582
75190a8f
JJ
65832006-11-30 Lev Bishop <lev.bishop@gmail.com>
6584
6585 * libc/include/math.h: Allow C99 functions/macros to be
6586 defined for C++ even when __STRICT_ANSI__.
6587
7d794364
JJ
65882006-11-29 Jeff Johnston <jjohnstn@redhat.com>
6589
6590 * libc/stdio/makebuf.c (__smakebuf): If dealing with
6591 an asprintf-family buffer, make the default initial size 64.
6592
c4c7f139
JJ
65932006-11-29 Eric Blake <ebb9@byu.net>
6594
6595 * libc/stdio/fvwrite.c (__sfvwrite_r): Avoid off-by-one error in
6596 asprintf, as well as quadratic realloc behavior.
6597
65982006-11-29 Kazunori Asayama <asayama@sm.sony.co.jpi
80c6ead2
JJ
6599
6600 * libc/machine/spu/memset.c: Fix type of explicit cast.
6601 * libc/machine/spu/strncmp.c: Add explicit cast.
6602 * libc/machine/spu/strrchr.c: Ditto.
6603 * libc/machine/spu/strspn.c: Ditto.
6604
9bc5b618
JJ
66052006-11-22 Luca Barbato <lu_zero@gentoo.org>
6606
6607 * libc/machine/spu/memcpy.c: Use spu_splats, explicit cast.
6608 * libc/machine/spu/memmove.c: Use spu_splats, explicit cast.
6609 * libc/machine/spu/memset.c: Use spu_splats, remove apple-cast.
6610 * libc/machine/spu/strchr.c: Use spu_splats, remove apple-cast.
6611 * libc/machine/spu/strncat.c: Explicit cast.
6612 * libc/machine/spu/strncmp.c: Use spu_splats.
6613 * libc/machine/spu/strncpy.c: Explicit cast.
6614 * libc/machine/spu/strrchr.c: Use spu_splats.
6615 * libc/machine/spu/strspn.c: Use spu_splats.
6616
52077eb2
JJ
66172006-11-15 Till Straumann <strauman@slac.stanford.edu>
6618
6619 * libc/time/tzset_r.c (_tzset_r): Initialize local variable.
6620
d1a2fe1a
JJ
66212006-11-14 Eric Blake <ebb9@byu.net>
6622
6623 * libc/stdio/vfprintf.c (_vfprintf_r): Support ' flag.
6624 (chclass): ' is a flag. j, t, and z are modifiers.
6625
9842c7e4 66262006-11-08 Jie Zhang <jie.zhang@analog.com>
292f8e23
JJ
6627
6628 * configure.host: Add support for bfin.
6629 * libc/include/machine/ieeefp.h: Define __IEEE_LITTLE_ENDIAN for bfin.
6630 * libc/include/machine/setjmp.h: Define _JBLEN for bfin.
6631 * libc/machine/bfin/aclocal.m4: Generate.
6632 * libc/machine/bfin/configure.in: New.
6633 * libc/machine/bfin/configure: Generate.
6634 * libc/machine/bfin/Makefile.am: New.
6635 * libc/machine/bfin/Makefile.in: Generate.
6636 * libc/machine/bfin/setjmp.S: New.
6637 * libc/machine/bfin/longjmp.S: New.
6638 * libc/machine/configure.in: Add bfin support.
6639 * libc/machine/configure: Generate.
6640
b1755fe7
CV
66412006-11-07 Corinna Vinschen <corinna@vinschen.de>
6642
6643 * libc/include/sys/unistd.h (_SC_STREAM_MAX): Define on Cygwin.
6644 (_PC_FILESIZEBITS): Add definition.
6645 (_PC_2_SYMLINKS): Ditto.
6646 (_PC_SYMLINK_MAX): Ditto.
6647
d384d868
JJ
66482006-10-27 Joel Schopp <jschopp@austin.ibm.com>
6649
6650 * libc/machine/spu/memcpy.c: Override generic function with vectorized
6651 version optimized for the cell spu.
6652 * libc/machine/spu/memmove.c: Ditto.
6653 * libc/machine/spu/memset.c: Ditto.
6654 * libc/machine/spu/strcat.c: Ditto.
6655 * libc/machine/spu/strchr.c: Ditto.
6656 * libc/machine/spu/strcmp.c: Ditto.
6657 * libc/machine/spu/strcpy.c: Ditto.
6658 * libc/machine/spu/strcspn.c: Ditto.
6659 * libc/machine/spu/strlen.c: Ditto.
6660 * libc/machine/spu/strncat.c: Ditto.
6661 * libc/machine/spu/strncmp.c: Ditto.
6662 * libc/machine/spu/strncpy.c: Ditto.
6663 * libc/machine/spu/strpbrk.c: Ditto.
6664 * libc/machine/spu/strrchr.c: Ditto.
6665 * libc/machine/spu/strspn.c: Ditto.
6666 * libc/machine/spu/strxfrm.c: Ditto.
17c0c97d 6667 * libc/machine/spu/vec_literal.h: Add abstraction of vector literals,
d384d868
JJ
6668 removing altivec style initializers.
6669 * libc/machine/spu/Makefile.am: Add new files to list so they build
6670 * libc/machine/spu/Makefile.in: Regenerate from new Makefile.am
6671
f29fdb2f
JJ
66722006-10-27 Jeff Johnston <jjohnstn@redhat.com>
6673
6674 * README: Add a brief section on how to regenerate
6675 configuration files in newlib.
6676
884dc68f
JJ
66772006-10-25 Vladimir Prus <vladimir@codesourcery.com>
6678
6679 * libc/include/math.h: (exception): Add a comment
6680 telling fixincludes that we handle C vs. C++ issue.
6681
f8fe93f9
JJ
66822006-10-11 Yang Tse <yangsita@gmail.com>
6683
6d441576
CV
6684 * libc/include/machine/setjmp.h: Use __extension__ keyword for gcc's
6685 braced-groups.
f8fe93f9 6686
d95c5792
CV
66872006-10-11 Corinna Vinschen <corinna@vinschen.de>
6688
6689 * libc/reent/reeent.c (_reclaim_reent): Free _REENT_MP_RESULT.
6690
e5e148d1
JJ
66912006-09-26 Jeff Johnston <jjohnstn@redhat.com>
6692
6693 * libc/include/stdio.h[_REENT_SMALL]: Do not allow macros
6694 for clearerr, feof, or fileno.
17c0c97d
EB
6695 * libc/include/sys/reent.h[_REENT_SMALL](struct _reent): Change
6696 the dummy std stream scheme to use pointers to const external
e5e148d1
JJ
6697 fake files, one for each standard stream.
6698 * libc/stdio/local.h (CHECK_INIT): Change to take a file pointer
6699 argument. For _REENT_SMALL, reset the file pointer if it
6700 matches one of the fake std stream pointers.
6701 * libc/stdio/clearerr.c: Fix CHECK_INIT macro to add file pointer
6702 argument.
6703 * libc/stdio/fclose.c: Ditto.
6704 * libc/stdio/feof.c: Ditto.
6705 * libc/stdio/ferror.c: Ditto.
6706 * libc/stdio/fflush.c: Ditto.
6707 * libc/stdio/fgetc.c: Ditto.
6708 * libc/stdio/fgets.c: Ditto.
6709 * libc/stdio/fileno.c: Ditto.
6710 * libc/stdio/findfp.c: Ditto.
6711 * libc/stdio/fputc.c: Ditto.
6712 * libc/stdio/fputs.c: Ditto.
6713 * libc/stdio/fread.c: Ditto.
6714 * libc/stdio/freopen.c: Ditto.
6715 * libc/stdio/fseek.c: Ditto.
6716 * libc/stdio/ftell.c: Ditto.
6717 * libc/stdio/fwrite.c: Ditto.
6718 * libc/stdio/getc.c: Ditto.
6719 * libc/stdio/getdelim.c: Ditto.
6720 * libc/stdio/putc.c: Ditto.
6721 * libc/stdio/refill.c: Ditto.
6722 * libc/stdio/setvbuf.c: Ditto.
6723 * libc/stdio/ungetc.c: Ditto.
6724 * libc/stdio/vfprintf.c: Ditto.
6725 * libc/stdio/vfscanf.c: Ditto.
6726 * libc/stdio/wbuf.c: Ditto.: Ditto.
6727 * libc/stdio/wsetup.c: Ditto.
6728 * libc/stdio64/freopen64.c: Ditto.
6729 * libc/stdio64/fseeko64.c: Ditto.
6730 * libc/stdio64/ftello64.c: Ditto.
6731 * libc/machine/powerpc/vfprintf.c: Ditto.
6732 * libc/machine/powerpc/vfscanf.c: Ditto.
6733
e83c3d0a
JJ
67342006-09-22 Paul Brook <paul@codesourcery.com>
6735
6736 * libc/include/sys/reent.h: Define and use __reent_assert.
6737
23754b33
JJ
67382006-09-13 Joel Sherrill <joel@oarcorp.com>
6739
6740 * libc/include/pthread.h: Add pthread barriers,
6741 rwlocks, and spinlocks. Change const to
6742 _CONST and prefix parameter names with
6743 an underscore.
6744 * libc/include/sys/types.h: Add id and attribute
6745 types for barriers, wrlocks, and spinlocks.
6746 * libc/include/sys/features.h: Enable barriers,
6747 wrlocks, and spinlocks for RTEMS.
6748
ba1bb1b3
JJ
67492006-09-13 Patrick Mansfield <patmans@us.ibm.com>
6750
6751 * libc/include/math.h: Remove _CONST from _LIB_VERSION, as it is
6752 supposed to be writable.
6753 * libm/common/s_lib_ver.c: Ditto.
6754
8f9f25da
JJ
67552006-09-12 Paul Brook <paul@codesourcery.com>
6756
6757 * libc/stdlib/rand.c (srand): Add _REENT_CHECK_RAND48.
6758
0324070e
JJ
67592006-09-07 Masaki Muranaka <monaka@monami-software.com>
6760
8f9f25da 6761
0324070e
JJ
6762 * libc/machine/xstormy16/Makefile.am:
6763 Add $(lpfx) prefix to LIBADD objects.
6764 lib_a_DEPENDENCIES uses the value of lib_a_LIBADD.
6765 * libc/machine/xstormy16/Makefile.in: Regenerated.
6766
d39002f9
JJ
67672006-09-06 Eric Blake <ebb9@byu.net>
6768
6769 * libc/stdio/vfprintf.c (_vfprintf_r, get_arg): Add 'hh', 'j',
6770 't', and 'z' modifiers.
6771
c023e783
KH
67722006-09-01 Kazu Hirata <kazu@codesourcery.com>
6773
6774 Merge from newlib-csl-20060320-branch:
6775 2006-05-22 Sandra Loosemore <sandra@codesourcery.com>
6776
6777 * configure.host: Tell it we have _rename and _system when
6778 building m68k-unknown-elf.
6779
85974265
JJ
67802006-08-29 Paul Brook <paul@codesourcery.com>
6781
6782 * libc/include/sys/config.h: Define _REENT_SMALL for Thumb-2.
6783
c1f828e5
JJ
67842006-08-27 Joel Sherrill <joel.sherrill@OARcorp.com>
6785
6786 * libc/sys/rtems/machine/sys/param.h: Conditionalize definition of
6787 BLKDEV_IOSIZE and MAXPHYS so it will fit into small memory targets.
6788 This is needed to build all AVR and H8300 RTEMS multilib variants.
6789
b8e05321
JJ
67902006-08-23 Kazunori Asayama <asayama@sm.sony.co.jp>
6791
6792 * libc/machine/configure.in: Add configuration for SPU.
6793 * libc/machine/configure: Regenerated.
6794 * libc/machine/spu/memcpy.c: Include string.h.
6795
380d8ec4
JJ
67962006-08-22 Eric Blake <ebb9@byu.net>
6797
6798 * libc/posix/popen.c (popen): Don't close output end of pipe in
6799 child if stdout was closed on entry.
6800 [HAVE_FCNTL]: In parent, mark file as close-on-exec, per POSIX.
6801
a0922fcb
CF
68022006-08-19 Ramana Radhakrishnan <ramana.r@gmail.com>
6803
6804 * sys/types.h: Correct syntax error caused by missing '\' on #ifdef
6805 line.
6806
84a79403
JJ
68072006-08-17 Brian Ford <Brian.Ford@FlightSafety.com>
6808
17c0c97d
EB
6809 * libc/time/gmtime.c: Correct man page; clock is not a
6810 local time and no conversion occurs.
84a79403 6811
0d8de89c
JJ
68122006-08-16 Joel Schopp <jschopp@austin.ibm.com>
6813
ba3ccd63
EB
6814 * configure.host (newlib_cflags) [spu]: Add special compiler
6815 options to reduce size.
0d8de89c 6816
734e8414
JJ
68172006-08-16 Joel Schopp <jschopp@austin.ibm.com>
6818
6819 * configure.host: Add spu support.
6820 * libc/include/stdint.h: Ditto.
6821 * libc/include/machine/ieeefp.h: Ditto.
6822 * libc/include/machine/setjmp.h: Ditto.
6823 * libc/include/sys/config.h: Ditto.
6824 * libc/include/sys/types.h: Ditto.
6825 * libc/machine/spu/Makefile.am: New file.
6826 * libc/machine/spu/Makefile.in: Ditto.
6827 * libc/machine/spu/aclocal.m4: Ditto.
6828 * libc/machine/spu/configure: Ditto.
6829 * libc/machine/spu/configure.in: Ditto.
6830 * libc/machine/spu/memcpy.c: Ditto.
6831 * libc/machine/spu/setjmp.S: Ditto.
6832
079b45dc
JJ
68332006-08-03 J"orn Rennecke <joern.rennecke@st.com>
6834
6835 * dtoa.c (dtoa_r): Handle the denormalized _DOUBLE_IS_32BITS case
6836 properly.
6837
2ebf115d
JJ
68382006-08-01 Jeff Johnston <jjohnstn@redhat.com>
6839
6840 * libc/Makefile.am: Add libc_TEXINFOS dependency on
6841 generated .texi files.
6842 * libm/Makefile.am: Add libm_TEXINFOS dependency on
6843 generated .texi files.
6844 * libc/Makefile.in: Regenerated.
6845 * libm/Makefile.in: Ditto.
6846
a1213494 68472006-08-01 Thiemo Seufer <ths@mips.com>
ba3ccd63 6848 Nigel Stephens <nigel@mips.com>
a1213494
JJ
6849
6850 * libc/include/sys/config.h (__ATTRIBUTE_IMPURE_PTR__): For MIPS
6851 define this to force _impure_ptr to live in the .sdata section.
6852
0a85d87f
JJ
68532006-07-31 Jeff Johnston <jjohnstn@redhat.com>
6854
6855 * acinclude.m4: Check for readelf tool.
6856 * configure.in: Use ${READELF} instead of hard-coding.
6857 * Regenerate all aclocal.m4, Makefile.in, and configure files.
6858
17c0c97d 68592006-07-31 Jeff Johnston <jjohnstn@redhat.com>
cc023a75
JJ
6860
6861 * libc/sys/linux/mmap.c: Remove include of sys/mman.h
6862 to avoid conflict with newer glibc's revision of mremap.
6863
17c0c97d 68642006-07-05 Jeff Johnston <jjohnstn@redhat.com>
b0b92438 6865
17c0c97d 6866 * libc/stdlib/mprec.h [_DOUBLE_IS_32BITS]: Turn off C99 hex
b0b92438
JJ
6867 floating-point format support. Also redefine
6868 dword0 and dword1 macros.
6869 * libc/stdlib/strtod.c: Add checks for _DOUBLE_IS_32BITS
6870 to prevent setting dword1 which is an rvalue only.
6871
17c0c97d 68722006-06-22 Jeff Johnston <jjohnstn@redhat.com>
f489b594
JJ
6873
6874 * libc/stdlib/Makefile.am: Add new gdtoa routines.
6875 * libc/stdlib/Makefile.in: Regenerated.
6876 * libc/stdlib/gd_qnan.h: New file.
6877 * libc/stdlib/gdtoa-gethex.c: Ditto.
6878 * libc/stdlib/gdtoa-hexnan.c: Ditto.
6879 * libc/stdlib/gdtoa.h: Ditto.
6880 * libc/stdlib/mprec.c: Add new helper routines needed by
6881 the new gdtoa code.
6882 * libc/stdlib/mprec.h: Integrate some defines and prototypes
6883 used by gdtoa routines here.
6884 * libc/stdlib/strtod.c: Rebased on David M. Gay's gdtoa-strtod.c
6885 which adds C99 support such as nan, inf, and hexadecimal input
6886 format.
6887
c8956c6f
JJ
68882006-06-15 Corinna Vinschen <corinna@vinschen.de>
6889
6890 * libc/include/stdio.h (__sgetc_r): Fix typo.
6891 * libc/stdio/fread.c (_fread_r): Convert crlf calls to crlf_r.
6892 * libc/stdio/rget.c (__srbuf): Reinstantiate.
6893 * libc/stdio/wbuf.c (__swbuf): Ditto.
6894
17c0c97d 68952006-06-14 Jeff Johnston <jjohnstn@redhat.com>
4dc0c0c4
JJ
6896
6897 * libc/include/stdio.h: Add new reentrant I/O prototypes for
17c0c97d 6898 read/write functions. Change getc/putc macros to have reentrant underlying
4dc0c0c4
JJ
6899 macros/functions. This includes __sgetc_raw_r, __sgetc_r, and __sputc_r.
6900 * libc/stdio/fgetc.c: Fix and/or add reentrant version to call
6901 new reentrant I/O functions/macros for reading/writing.
6902 * libc/stdio/fgets.c: Ditto.
6903 * libc/stdio/fputc.c: Ditto.
6904 * libc/stdio/fputs.c: Ditto.
6905 * libc/stdio/fread.c: Ditto.
6906 * libc/stdio/fseek.c: Ditto.
6907 * libc/stdio64/fseeko64.c: Ditto.
6908 * libc/stdio/fwrite.c: Ditto.
6909 * libc/stdio/getc.c: Ditto.
6910 * libc/stdio/getc_u.c: Ditto.
6911 * libc/stdio/getchar.c: Ditto.
6912 * libc/stdio/getchar_u.c: Ditto.
6913 * libc/stdio/putc.c: Ditto.
6914 * libc/stdio/putc_u.c: Ditto.
6915 * libc/stdio/putchar.c: Ditto.
6916 * libc/stdio/puts.c: Ditto.
6917 * libc/stdio/vfprintf.c: Ditto.
6918 * libc/stdio/vfscanf.c: Ditto.
6919 * libc/stdio/fvwrite.c: Change __sfvwrite into reentrant __sfvwrite_r.
6920 Change all previous callers of __sfvwrite. Set errno to EBADF and
6921 set error flag on if attempt is made to write to file that does not
6922 allow writing.
6923 * libc/stdio/fvwrite.h: Fix new reentrant prototypes.
6924 * libc/stdio/local.h: Ditto.
6925 * libc/stdio/refill.c: Turn __srefill into reentrant __srefill_r.
6926 Set errno to EBADF and the error flag on if attempt is made to
6927 read unreadable file. Change all previous callers of __srefill.
6928 * libc/stdio/rget.c
6929 * libc/stdio/wbuf.c: Turn __swbuf into reentrant __swbuf_r. Change
6930 all previous callers of __swbuf.
6931 * libc/sys/linux/machine/i386/huge_val.h: Ifdef out file contents since
6932 huge value macros are already defined correctly for i386 by <math.h>.
6933
c4cac45f
JJ
69342006-06-13 Sandra Loosemore <sandra@codesourcery.com>
6935
6936 * /libc/sys/arm/syscalls.c (_unlink, isatty, _system, _rename):
6937 Make them do something useful in the ARM_RDI_MONITOR case.
6938
b5b6cbd8
JJ
69392006-06-07 Fred Fish <fnf@specifix.com>
6940
6941 * libc/search/hash_bigkey.c (MIN,MAX): Remove
6942 defines that are already supplied by <sys/param.h>.
6943
3cc3705c
JJ
69442006-06-07 Fred Fish <fnf@specifix.com>
6945
6946 * configure.host: Remove references to HAVE_GETTIMEOFDAY.
6947
512c2879
JJ
69482006-06-05 Shaun Jackman <sjackman@gmail.com>
6949
6950 * libc/posix/Makefile.am (GENERAL_SOURCES): Add sleep.c and
6951 usleep.c.
6952 * libc/posix/Makefile.in: Regenerate.
6953 * libc/posix/sleep.c: New file.
6954 * libc/posix/usleep.c: Ditto.
6955
6ea486a6
JJ
69562006-06-05 Shaun Jackman <sjackman@gmail.com>
6957
9eedc2e6 6958 * configure.host (newlib_cflags) [arm, thumb, xscale]: Remove
6ea486a6
JJ
6959 -DABORT_PROVIDED flag.
6960 * newlib/libc/sys/arm/syscalls.c (kill, exit): Sync with libgloss.
6961 * newlib/libc/sys/arm/libcfunc.c (abort): Ditto.
6962
2e7c576a
JJ
69632006-06-05 Jeff Johnston <jjohnstn@redhat.com>
6964
6965 * Makefile.am (AM_MAKEFLAGS): Pass CCASFLAGS.
6966 * Makefile.in: Regenerated.
6967 * libc/machine/sh/Makefile.am (AM_CCASFLAGS): Remove
6968 extraneous CFLAGS reference now that CCASFLAGS are being extended
6969 properly via multilib.
6970 * libc/machine/sh/Makefile.in: Regenerated.
6971
3feae7b1
JJ
69722006-06-02 Shaun Jackman <sjackman@gmail.com>
6973
6974 * libc/unix/sigset.c: Undefine sigfillset, sigdelset, and
6975 sigismember.
6976
f383bda5
JJ
69772006-05-23 Jeff Johnston <jjohnstn@redhat.com>
6978
6979 * libc/misc/dprintf.c: Removed.
6980 * libc/misc/__dprintf.c: Renamed from dprintf.c.
6981 * libc/misc/Makefile.am: Changed appropriately for rename.
6982 * libc/misc/Makefile.in: Regenerated.
6983
8eeee74e
JJ
69842006-05-23 Jeff Johnston <jjohnstn@redhat.com>
6985
6986 * libc/include/stdio.h: Protect dprintf prototype
6987 with #ifndef dprintf so as to not interfere with
6988 historical code defining their own dprintf macro.
6989
dc7798c6
JJ
69902006-05-18 Jeff Johnston <jjohnstn@redhat.com>
6991
6992 * libc/include/stdio.h: Add prototypes for fiscanf,
6993 iscanf, and siscanf.
6994
e1b888df
JR
69952006-05-11 J"orn Rennecke <joern.rennecke@st.com>
6996
6997 * acinclude.m4 (_NEWLIB_VERSION): Rename to:
6998 (DEF_NEWLIB_VERSION).
6999 * configure.in (_NEWLIB_VERSION): Use NEWLIB_VERSION.
7000 * configure: Regenerate.
7001
7f32c41d
JJ
70022006-05-09 Jeff Johnston <jjohnstn@redhat.com>
7003
7004 * libc/ctype/Makefile.am: Add $(ELIX_SOURCES) to
7005 lib_a_SOURCES.
7006 * libc/ctype/Makefile.in: Regenerated.
7007
bac01fc8
JJ
70082006-05-09 Kazu Hirata <kazu@codesourcery.com>
7009
7010 * libc/machine/arm/Makefile.am: Fix a typo.
7011 * libc/machine/arm/Makefile.in: Regenerated.
7012
6c47d5b7
JR
70132006-05-08 J"orn Rennecke <joern.rennecke@st.com>
7014
7015 * libc/machine/sh/Makefile.am (AM_CCASFLAGS): Add $(CFLAGS).
7016 * libc/machine/sh/Makefile.in: Regenerate.
7017
7cc7e374
JR
70182006-05-03 J"orn Rennecke <joern.rennecke@st.com>
7019
7020 * libc/sys/sh/Makefile.am (AM_CCASFLAGS): Add $(CFLAGS).
7021 * libc/sys/sh/Makefile.in (AM_CCASFLAGS): Likewise.
7022
a8b02d46
JJ
70232006-05-02 Jeff Johnston <jjohnstn@redhat.com>
7024
7025 * libc/sys/sysnec810/Makefile.am: Specify .S files instead of
7026 .s.
7027 * libc/sys/sysnec810/Makefile.in: Regenerated.
7028 * libc/sys/sysnec810/crt0.S: Renamed from .s file.
7029 * libc/sys/sysnec810/io.S: Ditto.
7030 * libc/sys/sysnec810/crt0.s: Renamed to .S file.
7031 * libc/sys/sysnec810/io.s: Ditto.
7032
8f8f1db1
JJ
70332006-05-01 Jeff Johnston <jjohnstn@redhat.com>
7034
7035 * libc/argz/Makefile.am: Prefix any objects specified with $(lpfx). If source file can
7036 be specified instead of object, do so.
7037 * libc/ctype/Makefile.am: Ditto.
7038 * libc/iconv/ccs/Makefile.am: Ditto.
7039 * libc/iconv/ces/Makefile.am: Ditto.
7040 * libc/iconv/lib/Makefile.am: Ditto.
7041 * libc/locale/Makefile.am: Ditto.
7042 * libc/posix/Makefile.am: Ditto.
7043 * libc/reent/Makefile.am: Ditto.
7044 * libc/search/Makefile.am: Ditto.
7045 * libc/stdio/Makefile.am: Ditto.
7046 * libc/stdio64/Makefile.am: Ditto.
7047 * libc/stdlib/Makefile.am: Ditto.
7048 * libc/string/Makefile.am: Ditto.
7049 * libc/syscalls/Makefile.am: Ditto.
7050 * libc/unix/Makefile.am: Ditto.
7051 * libc/machine/a29k/Makefile.am: Specify lib_a_CCASFLAGS so .S files will get
7052 prefix added automatically. Any specified rules must use $(lpfx) for
7053 object file names.
7054 * libc/machine/arm/Makefile.am: Ditto.
7055 * libc/machine/cris/Makefile.am: Ditto.
7056 * libc/machine/crx/Makefile.am: Ditto.
7057 * libc/machine/d10v/Makefile.am: Ditto.
7058 * libc/machine/d30v/Makefile.am: Ditto.
7059 * libc/machine/fr30/Makefile.am: Ditto.
7060 * libc/machine/frv/Makefile.am: Ditto.
7061 * libc/machine/h8300/Makefile.am: Ditto.
7062 * libc/machine/h8500/Makefile.am: Ditto.
7063 * libc/machine/hppa/Makefile.am: Ditto.
7064 * libc/machine/i386/Makefile.am: Ditto.
7065 * libc/machine/i960/Makefile.am: Ditto.
7066 * libc/machine/iq2000/Makefile.am: Ditto.
7067 * libc/machine/m32c/Makefile.am: Ditto.
7068 * libc/machine/m32r/Makefile.am: Ditto.
7069 * libc/machine/m68hc11/Makefile.am: Ditto.
7070 * libc/machine/m68k/Makefile.am: Ditto.
7071 * libc/machine/m88k/Makefile.am: Ditto.
7072 * libc/machine/mips/Makefile.am: Ditto.
7073 * libc/machine/mn10200/Makefile.am: Ditto.
7074 * libc/machine/mn10300/Makefile.am: Ditto.
7075 * libc/machine/mt/Makefile.am: Ditto.
7076 * libc/machine/necv70/Makefile.am: Ditto.
7077 * libc/machine/powerpc/Makefile.am: Ditto.
7078 * libc/machine/sh/Makefile.am: Ditto.
7079 * libc/machine/sh/Makefile.in: Ditto.
7080 * libc/machine/sparc/Makefile.am: Ditto.
7081 * libc/machine/tic4x/Makefile.am: Ditto.
7082 * libc/machine/tic80/Makefile.am: Ditto.
7083 * libc/machine/v850/Makefile.am: Ditto.
7084 * libc/machine/w65/Makefile.am: Ditto.
7085 * libc/machine/xscale/Makefile.am: Ditto.
7086 * libc/machine/xstormy16/Makefile.am: Ditto.
7087 * libc/machine/z8k/Makefile.am: Ditto.
7088 * libc/sys/a29khif/Makefile.am: Ditto.
7089 * libc/sys/arm/Makefile.am: Ditto.
7090 * libc/sys/d10v/Makefile.am: Ditto.
7091 * libc/sys/h8300hms/Makefile.am: Ditto.
7092 * libc/sys/h8500hms/Makefile.am: Ditto.
7093 * libc/sys/linux/Makefile.am: Ditto.
7094 * libc/sys/linux/linuxthreads/Makefile.am: Ditto.
7095 * libc/sys/linux/net/Makefile.am: Ditto.
7096 * libc/sys/linux/stdlib/Makefile.am: Ditto.
7097 * libc/sys/m88kbug/Makefile.am: Ditto.
7098 * libc/sys/mmixware/Makefile.am: Ditto.
7099 * libc/sys/rdos/Makefile.am: Ditto.
7100 * libc/sys/rtems/Makefile.am: Ditto.
7101 * libc/sys/sh/Makefile.am: Ditto.
7102 * libc/sys/sun4/Makefile.am: Ditto.
7103 * libc/sys/sysmec/Makefile.am: Ditto.
7104 * libc/sys/sysnec810/Makefile.am: Ditto.
7105 * libc/sys/sysnecv850/Makefile.am: Ditto.
7106 * libc/sys/sysvi386/Makefile.am: Ditto.
7107 * libc/sys/sysvnecv70/Makefile.am: Ditto.
7108 * libc/sys/tic80/Makefile.am: Ditto.
7109 * libc/sys/w65/Makefile.am: Ditto.
7110 * libc/sys/z8ksim/Makefile.am: Ditto.
7111 * libc/machine/necv70/fastmath.S: Renamed from .s file.
7112 * libc/machine/necv70/setjmp.S: Ditto.
7113 * libc/machine/necv70/fastmath.s: Removed.
7114 * libc/machine/necv70/setjmp.s: Ditto.
7115 * libc/machine/w65/*.S: New files renamed from .s files.
7116 * libc/machine/w65/*.s: Renamed and removed.
7117 * libc/sys/a29khif/*.S: New files renamed from .s files.
7118 * libc/sys/a29khif/*.s: Renamed and removed.
7119 * libc/sys/sysvi386/*.S: New files renamed from .s files.
7120 * libc/sys/sysvi386/*.s: Renamed and removed.
7121 * libc/sys/sysvnecv70/*.S: New files renamed from .s files.
7122 * libc/sys/sysvnecv70/*.s: Renamed and removed.
7123 * libc/*Makefile.in: Regenerated as appropriate.
7124
b34db572
DD
71252006-04-24 DJ Delorie <dj@redhat.com>
7126
7127 * libc/machine/sh/configure.in: Avoid link tests.
7128 * libc/machine/sh/configure: Regenerate.
7129
e163e3e1
JJ
71302006-04-18 Jeff Johnston <jjohnstn@redhat.com>
7131
7132 * libc/include/sys/signal.h (sigdelset, sigfillset, sigismember): New macros.
7133 (sigaddset, sigemptyset): Add return code.
7134
7ad96224
JJ
71352006-04-13 Ralf Corsepius <ralf.corsepius@rtems.org>
7136
ba3ccd63
EB
7137 * acinclude.m4: New _NEWLIB_VERSION.
7138 * acinclude.m4(NEWLIB_CONFIGURE): AC_REQUIRE(_NEWLIB_VERSION).
7139 Use AC_CANONICAL_HOST instead of AC_CANONICAL_SYSTEM.
7140 Use new form of AC_INIT_AUTOMAKE.
7141 * configure.in: AC_PREREQ(2.59).
7142 Use autoconf-2.5.x version of AC_INIT.
7143 Use AC_CONFIG_FILES and autoconf-2.5x AC_OUTPUT instead of
7144 autoconf-2.13's AC_OUTPUT.
7145 * libm/configure.in: Ditto.
7146 * libm/machine/configure.in: Ditto.
7147 * libm/machine/i386/configure.in: Ditto.
7148 * libc/configure.in: Ditto.
7149 * libc/machine/a29k/configure.in: Ditto.
7150 * libc/machine/arm/configure.in: Ditto.
7151 * libc/machine/configure.in: Ditto.
7152 * libc/machine/mn10300/configure.in: Ditto.
7153 * libc/machine/powerpc/configure.in: Ditto.
7154 * libc/machine/z8k/configure.in: Ditto.
7155 * libc/machine/h8300/configure.in: Ditto.
7156 * libc/machine/mips/configure.in: Ditto.
7157 * libc/machine/crx/configure.in: Ditto.
7158 * libc/machine/m68hc11/configure.in: Ditto.
7159 * libc/machine/h8500/configure.in: Ditto.
7160 * libc/machine/xscale/configure.in: Ditto.
7161 * libc/machine/d10v/configure.in: Ditto.
7162 * libc/machine/fr30/configure.in: Ditto.
7163 * libc/machine/sh/configure.in: Ditto.
7164 * libc/machine/tic80/configure.in: Ditto.
7165 * libc/machine/m32r/configure.in: Ditto.
7166 * libc/machine/xstormy16/configure.in: Ditto.
7167 * libc/machine/i386/configure.in: Ditto.
7168 * libc/machine/d30v/configure.in: Ditto.
7169 * libc/machine/mn10200/configure.in: Ditto.
7170 * libc/machine/frv/configure.in: Ditto.
7171 * libc/machine/mt/configure.in: Ditto.
7172 * libc/machine/i960/configure.in: Ditto.
7173 * libc/machine/v850/configure.in: Ditto.
7174 * libc/machine/necv70/configure.in: Ditto.
7175 * libc/machine/tic4x/configure.in: Ditto.
7176 * libc/machine/cris/configure.in: Ditto.
7177 * libc/machine/m68k/configure.in: Ditto.
7178 * libc/machine/m32c/configure.in: Ditto.
7179 * libc/machine/hppa/configure.in: Ditto.
7180 * libc/machine/w65/configure.in: Ditto.
7181 * libc/machine/iq2000/configure.in: Ditto.
7182 * libc/machine/sparc/configure.in: Ditto.
7183 * libc/machine/m88k/configure.in: Ditto.
7184 * libc/sys/linux/configure.in: Ditto.
7185 * libc/sys/linux/machine/configure.in: Ditto.
7186 * libc/sys/linux/machine/i386/configure.in: Ditto.
7187 * libc/sys/linux/linuxthreads/configure.in: Ditto.
7188 * libc/sys/linux/linuxthreads/machine/configure.in: Ditto.
7189 * libc/sys/linux/linuxthreads/machine/i386/configure.in: Ditto.
7190 * libc/sys/arm/configure.in: Ditto.
7191 * libc/sys/configure.in: Ditto.
7192 * libc/sys/decstation/configure.in: Ditto.
7193 * libc/sys/a29khif/configure.in: Ditto.
7194 * libc/sys/sysnecv850/configure.in: Ditto.
7195 * libc/sys/d10v/configure.in: Ditto.
7196 * libc/sys/netware/configure.in: Ditto.
7197 * libc/sys/mmixware/configure.in: Ditto.
7198 * libc/sys/h8500hms/configure.in: Ditto.
7199 * libc/sys/sh/configure.in: Ditto.
7200 * libc/sys/tic80/configure.in: Ditto.
7201 * libc/sys/rdos/configure.in: Ditto.
7202 * libc/sys/sysmec/configure.in: Ditto.
7203 * libc/sys/sysvi386/configure.in: Ditto.
7204 * libc/sys/h8300hms/configure.in: Ditto.
7205 * libc/sys/sparc64/configure.in: Ditto.
7206 * libc/sys/arc/configure.in: Ditto.
7207 * libc/sys/sysnec810/configure.in: Ditto.
7208 * libc/sys/m88kbug/configure.in: Ditto.
7209 * libc/sys/sysvnecv70/configure.in: Ditto.
7210 * libc/sys/z8ksim/configure.in: Ditto.
7211 * libc/sys/rtems/configure.in: Ditto.
7212 * libc/sys/w65/configure.in: Ditto.
7213 * libc/sys/sun4/configure.in: Ditto.
7214 * doc/configure.in: Ditto.
7215 * iconvdata/configure.in: Ditto.
7216 * configure.in: Use AC_CONFIG_HEADER instead of AM_CONFIG_HEADER.
7ad96224 7217
34e66679
JJ
72182006-04-11 Jeff Johnston <jjohnstn@redhat.com>
7219
7220 * acinclude.m4: Properly add square brackets for
7221 AC_DEFUN macros. Rewrite LIB_AC_PROG_CC to remove
7222 macros no longer available. Add LIB_AM_PROG_AS to
7223 remove prereq of AC_PROG_CC. Add LIB_AC_PROG_CC_GNU
7224 macro. Substitute lpfx (library object prefix).
7225 * configure.host: Set lpfx depending on whether
7226 libtool is used or not.
7227 * configure.in: Individually specify libc and libm
7228 to AC_CONFIG_SUBDIRS. Add square bracket quoting as
7229 necessary.
7230 * Makefile.am: Use $(lpfx) to get object names for
7231 math-library functions that should also be in libc.
7232 * libc/machine/configure.in: Use case statement to determine
7233 AC_CONFIG_SUBDIRS statement.
7234 * libc/sys/linux/linuxthreads/machine/configure.in: Ditto.
7235 * libc/sys/linux/machine/configure.in: Ditto.
7236 * libc/sys/configure.in: Ditto.
7237 * libm/machine/configure.in: Ditto.
7238 * libc/sys/linux/configure.in: Fix up AC_CONFIG_SUBDIRS.
7239 * libm/configure.in: Add AM_CONDITIONAL statement
7240 for HAVE_LIBM_MACHINE_DIR.
7241 * libc/machine/a29k/Makefile.am: Modified to work with
7242 latest automake. Change includes setting AM_CCASFLAGS
7243 so building .S files will properly pick up flags used
7244 to build C files.
7245 * libc/machine/arm/Makefile.am: Ditto.
7246 * libc/machine/crx/Makefile.am: Ditto.
7247 * libc/machine/d10v/Makefile.am: Ditto.
7248 * libc/machine/d30v/Makefile.am: Ditto.
7249 * libc/machine/fr30/Makefile.am: Ditto.
7250 * libc/machine/frv/Makefile.am: Ditto.
7251 * libc/machine/h8300/Makefile.am: Ditto.
7252 * libc/machine/h8500/Makefile.am: Ditto.
7253 * libc/machine/hppa/Makefile.am: Ditto.
7254 * libc/machine/i386/Makefile.am: Ditto.
7255 * libc/machine/iq2000/Makefile.am: Ditto.
7256 * libc/machine/m32c/Makefile.am: Ditto.
7257 * libc/machine/m32r/Makefile.am: Ditto.
7258 * libc/machine/m68hc11/Makefile.am: Ditto.
7259 * libc/machine/m68k/Makefile.am: Ditto.
7260 * libc/machine/m88k/Makefile.am: Ditto.
7261 * libc/machine/mips/Makefile.am: Ditto.
7262 * libc/machine/mn10200/Makefile.am: Ditto.
7263 * libc/machine/mn10300/Makefile.am: Ditto.
7264 * libc/machine/mt/Makefile.am: Ditto.
7265 * libc/machine/necv70/Makefile.am: Ditto.
7266 * libc/machine/powerpc/Makefile.am: Ditto.
7267 * libc/machine/sh/Makefile.am: Ditto.
7268 * libc/machine/sparc/Makefile.am: Ditto.
7269 * libc/machine/tic4x/Makefile.am: Ditto.
7270 * libc/machine/tic80/Makefile.am: Ditto.
7271 * libc/machine/v850/Makefile.am: Ditto.
7272 * libc/machine/w65/Makefile.am: Ditto.
7273 * libc/machine/xscale/Makefile.am: Ditto.
7274 * libc/machine/xstormy16/Makefile.am: Ditto.
7275 * libc/machine/z8k/Makefile.am: Ditto.
7276 * libc/sys/a29khif/Makefile.am: Ditto.
7277 * libc/sys/arc/Makefile.am: Ditto.
7278 * libc/sys/arm/Makefile.am: Ditto.
7279 * libc/sys/d10v/Makefile.am: Ditto.
7280 * libc/sys/decstation/Makefile.am: Ditto.
7281 * libc/sys/h8300hms/Makefile.am: Ditto.
7282 * libc/sys/h8500hms/Makefile.am: Ditto.
7283 * libc/sys/linux/linuxthreads/machine/i386/Makefile.am: Ditto.
7284 * libc/sys/linux/machine/i386/Makefile.am: Ditto.
7285 * libc/sys/m88kbug/Makefile.am: Ditto.
7286 * libc/sys/mmixware/Makefile.am: Ditto.
7287 * libc/sys/netware/Makefile.am: Ditto.
7288 * libc/sys/rdos/Makefile.am: Ditto.
7289 * libc/sys/rtems/Makefile.am: Ditto.
7290 * libc/sys/sh/Makefile.am: Ditto.
7291 * libc/sys/sparc64/Makefile.am: Ditto.
7292 * libc/sys/sysmec/Makefile.am: Ditto.
7293 * libc/sys/sysnec810/Makefile.am: Ditto.
7294 * libc/sys/sysnecv850/Makefile.am: Ditto.
7295 * libc/sys/sysvi386/Makefile.am: Ditto.
7296 * libc/sys/sysvnecv70/Makefile.am: Ditto.
7297 * libc/sys/tic80/Makefile.am: Ditto.
7298 * libc/sys/w65/Makefile.am: Ditto.
7299 * libc/sys/z8ksim/Makefile.am: Ditto.
7300 * libm/machine/i386/Makefile.am: Ditto.
7301 * libc/sys/arm/Makefile.am: Ditto plus add EXTRA sources including
7302 trap.S so that automake will generate a .S.o suffix rule.
7303 * libc/argz/Makefile.am: Modified to work with
7304 latest automake. Change includes adding lib_a_CFLAGS
7305 so automake doesn't complain about libtool and non-libtool
7306 libraries sharing objects.
7307 * libc/ctype/Makefile.am: Ditto.
7308 * libc/errno/Makefile.am: Ditto.
7309 * libc/iconv/ccs/Makefile.am: Ditto.
7310 * libc/iconv/ces/Makefile.am: Ditto.
7311 * libc/iconv/lib/Makefile.am: Ditto.
7312 * libc/locale/Makefile.am: Ditto.
7313 * libc/misc/Makefile.am: Ditto.
7314 * libc/posix/Makefile.am: Ditto.
7315 * libc/reent/Makefile.am: Ditto.
7316 * libc/search/Makefile.am: Ditto.
7317 * libc/signal/Makefile.am: Ditto.
7318 * libc/stdio/Makefile.am: Ditto.
7319 * libc/stdio64/Makefile.am: Ditto.
7320 * libc/stdlib/Makefile.am: Ditto.
7321 * libc/string/Makefile.am: Ditto.
7322 * libc/sys/linux/Makefile.am: Ditto.
7323 * libc/sys/linux/argp/Makefile.am: Ditto.
7324 * libc/sys/linux/cmath/Makefile.am: Ditto.
7325 * libc/sys/linux/dl/Makefile.am: Ditto.
7326 * libc/sys/linux/iconv/Makefile.am: Ditto.
7327 * libc/sys/linux/intl/Makefile.am: Ditto.
7328 * libc/sys/linux/linuxthreads/Makefile.am: Ditto.
7329 * libc/sys/linux/net/Makefile.am: Ditto.
7330 * libc/sys/linux/stdlib/Makefile.am: Ditto.
7331 * libc/syscalls/Makefile.am: Ditto.
7332 * libc/time/Makefile.am: Ditto.
7333 * libc/unix/Makefile.am: Ditto.
7334 * libm/Makefile.am: Ditto.
7335 * libm/common/Makefile.am: Ditto.
7336 * libm/math/Makefile.am: Ditto.
7337 * libm/mathfp/Makefile.am: Ditto.
7338 * Regenerate all aclocal.m4, Makefile.in, and configure files.
7339
b577ecdf
JJ
73402006-04-07 Jeff Johnston <jjohnstn@redhat.com>
7341
7342 * libc/time/time.c (time): Do not check for HAVE_GETTIMEOFDAY
7343 anymore. Assume there is a gettimeofday syscall.
7344
ef79d97d
JJ
73452006-03-29 Shaun Jackman <sjackman@gmail.com>
7346
7347 * libc/sys/linux/include/netinet/ip.h: Include netinet/in_systm.h
7348 for the declaration of n_long.
7349
15a1b33c
JJ
73502006-03-29 Shaun Jackman <sjackman@gmail.com>
7351
7352 * libc/sys/linux/include/net/if.h: Include sys/socket.h for
7353 struct sockaddr.
7354 (IFF_SMART): Replace this define with IFF_NOTRAILERS.
7355 (IFF_CANTCHANGE): Replace IFF_SMART reference with IFF_NOTRAILERS.
7356 (IFF_NOTRAILERS): New define.
7357 (struct ifreq): Add ifru_netmask.
7358 (ifr_netmask): New define.
7359
bcc4ff05
JJ
73602006-03-29 Shaun Jackman <sjackman@gmail.com>
7361
7362 * libc/sys/linux/sys/ioccom.h (ioctl): Change declaration to
7363 match sys/ioctl.h.
7364
8fed3e2e
JJ
73652006-03-29 Shaun Jackman <sjackman@gmail.com>
7366
17c0c97d 7367 * libtool.m4: Set lt_cv_deplibs_check_method=pass_all for
8fed3e2e
JJ
7368 linux-newlib libc implementations.
7369
6507c097
JJ
73702006-03-29 Eric Blake <ebb9@byu.net>
7371
7372 * libc/stdio/freopen.c (_freopen_r) [__SCLE]: Fix typo.
7373 * libc/stdio64/freopen64.c (_freopen64_r) [__SCLE]: Likewise.
7374
fac690be
JJ
73752006-03-29 Jeff Johnston <jjohnstn@redhat.com>
7376
7377 * libc/sys/linux/io.c (__mknod): Fix declaration of
7378 syscall to pass a dev_t as third argument rather than
7379 a pointer to dev_t.
7380
9e443adb
JJ
73812006-03-29 Jeff Johnston <jjohnstn@redhat.com>
7382
7383 * libc/sys/linux/net/name6.c: Fix struct references.
7384
ce93dfe4
MM
73852006-03-22 Mark Mitchell <mark@codesourcery.com>
7386
7387 * configure.host: Allow hosts to set the default
7388 newlib_atexit_dynamic_alloc value.
7389 * configure.in: Likewise.
7390 * configure: Regenerated.
7391
3078fb4f
MM
73922006-03-20 Mark Mitchell <mark@codesourcery.com>
7393
7394 * acconfig.h (_ATEXIT_DYNAMIC_ALLOC): Undef.
7395 * configure.in (--disable-newlib-atexit-dynamic-alloc): New
17c0c97d 7396 option.
3078fb4f
MM
7397 * configure: Regenerated.
7398 * newlib.hin: Regenerated.
7399 * libc/stdlib/__atexit.c (__register_exitproc): Don't call malloc
7400 if _ATEXIT_DYNAMIC_ALLOC is undefined.
7401 * libc/stdlib/__call_atexit.c (__call_exitprocs): Don't call free
7402 if _ATEXIT_DYNAMIC_ALLOC is undefined.
7403
9d5cff74
JJ
74042006-03-17 Jeff Johnston <jjohnstn@redhat.com>
7405
7406 * libc/sys/linux/linuxthreads/config.h: Remove definition
7407 of UINT32_C.
7408
490cfb83
JJ
74092006-03-15 Jeff Johnston <jjohnstn@redhat.com>
7410
7411 * libc/stdio/wsetup.c (__swsetup): Don't make a buffer
7412 for a string I/O file that isn't using the asprintf family.
7413
ce10f178
JJ
74142006-03-07 Eric Blake <ebb9@byu.net>
7415
7416 * libc/stdio/freopen.c (_freopen_r) [HAVE_FCNTL]: For NULL
7417 filename, allow read-only or write-only FILE atop O_RDWR file
7418 descriptor.
7419 * libc/stdio64/freopen64.c (_freopen64_r) [HAVE_FCNTL]: Likewise.
7420
ddf12e6b
JJ
74212006-03-07 Jeff Johnston <jjohnstn@redhat.com>
7422
7423 * libm/common/sf_isinf.c[_DOUBLE_IS_32BITS]: Undef isinf.
7424 * libm/common/sf_isnan.c[_DOUBLE_IS_32BITS]: Undef isnan.
7425
cb197581
JJ
74262006-03-02 Jeff Johnston <jjohnstn@redhat.com>
7427
7428 * libm/math/math.tex: Fix reference to sisnan.def which
7429 is now in common subdirectory.
7430 * libm/mathfp/mathfp.tex: Ditto.
7431
e48682cf
JJ
74322006-02-27 Jeff Johnston <jjohnstn@redhat.com>
7433
17c0c97d 7434 * Makefile.am (MATHOBJS_IN_LIBC): Add s_isinfd, sf_isinff,
e48682cf
JJ
7435 s_isnand, and sf_isnanf object files.
7436 * Makefile.in: Regenerated.
7437 * libc/include/ieeefp.h: Undef isnan and isinf to avoid
7438 conflict if <math.h> has previously been included.
7439 * libc/include/math.h
bc88ea65
JJ
7440 * libc/include/math.h: Make isnan and isinf macros to
7441 conform to C99.
7442 (__isinfd, __isinff, __isnand, __isnanf): New functions.
e48682cf
JJ
7443 * libm/common/Makefile.am: Add new s_isinfd, s_isnand, sf_isinff,
7444 and sf_isnanf files. Also support s_isnan, sf_isnan, s_isinf, and
17c0c97d 7445 sf_isinf files which have been moved from math/mathfp directories.
e48682cf
JJ
7446 * libm/common/Makefile.in: Regenerated.
7447 * libm/common/s_isinfd.c: New file.
7448 * libm/common/s_isnand.c: Ditto.
7449 * libm/common/sf_isinff.c: Ditto.
7450 * libm/common/sf_isnanf.c: Ditto.
7451 * libm/common/s_isinf.c: Moved from libm/math directory.
7452 * libm/common/s_isnan.c: Ditto.
7453 * libm/common/sf_isinf.c: Ditto.
7454 * libm/common/sf_isnan.c: Ditto.
7455 * libm/math/Makefile.am: Remove isinf and isnan family functions
7456 which have been moved into common directory.
7457 * libm/mathfp/Makefile.am: Ditto.
7458 * libm/math/Makefile.in: Regenerated.
7459 * libm/mathfp/Makefile.in: Ditto.
7460 * libm/math/s_isinf.c: Removed.
7461 * libm/math/s_isnan.c: Ditto.
7462 * libm/math/sf_isinf.c: Ditto.
7463 * libm/math/sf_isnan.c: Ditto.
7464 * libm/mathfp/s_isinf.c: Ditto.
7465 * libm/mathfp/s_isnan.c: Ditto.
7466 * libm/mathfp/sf_isinf.c: Ditto.
7467 * libm/mathfp/sf_isnan.c: Ditto.
7468
99db626d
JJ
74692006-02-20 Jeff Johnston <jjohnstn@redhat.com>
7470
7471 * libc/stdio/fflush.c (fflush): For an fflush on a read-only
7472 stream, turn off fseek/rewind optimization as per POSIX/SUSv3.
7473 * libc/stdio/fseek.c (_fseek_r): After a successful unoptimized
7474 seek, turn off the __SNPT no-optimization flag.
7475
49103e2b
JJ
74762006-02-16 Jeff Johnston <jjohnstn@redhat.com>
7477
7478 * libc/sys/linux/aio.c: Define _GNU_SOURCE so struct aioinit
7479 will be defined.
7480 * libc/sys/linux/sys/types.h: Move <sys/config.h> ahead of
7481 <features.h> to preset special flags.
7482
680e0f1f
CV
74832006-02-15 Corinna Vinschen <corinna@vinschen.de>
7484
7485 * libc/include/sys/time.h (struct timeval): Change member types
7486 according to SUSv3.
7487 * libc/include/sys/types.h (useconds_t): Change to unsigned
7488 according to SUSv3.
7489 (suseconds_t): Define type.
7490
d6593503
JJ
74912006-02-13 Jeff Johnston <jjohnstn@redhat.com>
7492 David Carne <davidcarne@gmail.com>
7493
7494 * libc/string/strndup_r.c (_strndup_r): Use strnlen logic
7495 instead of strlen to determine number of bytes to copy.
7496 * libc/string/strnlen.c (strnlen): Fix so check for max limit occurs
7497 before looking at storage location.
7498
9bbe6d5d
JJ
74992006-02-07 Paul Brook <paul@codesourcery.com>
7500
7501 * libc/machine/arm/setjmp.S: Add Thumb-2 support.
7502 * libc/sys/arm/crt0.S: Add Thumb-2 startup code.
7503 * libc/sys/arm/libcfunc.c (do_AngelSWI): Use AngelSWIInsn.
7504 * libc/sys/arm/swi.h (AngelSWIInsn, AngelSWIAsm): Define.
7505 * libc/sys/arm/trap.S: Disable for Thumb-2.
7506
d968b3c8
JJ
75072006-01-31 Leif Ekblad <leif@rdos.net>
7508
7509 * configure.host: RDOS support added
7510 * libc/include/sys/config.h: Ditto.
7511 * libc/sys/rdos/Makefile.am, libc/sys/rdos/Makefile.in: New files.
7512 * libc/sys/rdos/aclocal.m4, libc/sys/rdos/chown.c: Ditto.
7513 * libc/sys/rdos/close.c, libc/sys/rdos/config.h: Ditto.
7514 * libc/sys/rdos/configure, libc/sys/rdos/configure.in: Ditto.
7515 * libc/sys/rdos/crt0.S, libc/sys/rdos/execve.c: Ditto.
7516 * libc/sys/rdos/fork.c, libc/sys/rdos/fstat.c: Ditto.
7517 * libc/sys/rdos/getenv.c, libc/sys/rdos/getpid.c: Ditto.
7518 * libc/sys/rdos/gettod.c, libc/sys/rdos/isatty.c: Ditto.
7519 * libc/sys/rdos/kill.c, libc/sys/rdos/link.c: Ditto.
7520 * libc/sys/rdos/lseek.c, libc/sys/rdos/open.c: Ditto.
7521 * libc/sys/rdos/rdos.S, libc/sys/rdos/rdos.h: Ditto.
7522 * libc/sys/rdos/rdoshelp.c, libc/sys/rdos/read.c: Ditto.
7523 * libc/sys/rdos/readlink.c, libc/sys/rdos/sbrk.c: Ditto.
7524 * libc/sys/rdos/stat.c, libc/sys/rdos/symlink.c: Ditto.
7525 * libc/sys/rdos/times.c, libc/sys/rdos/unlink.c: Ditto.
7526 * libc/sys/rdos/user.def, libc/sys/rdos/wait.c: Ditto.
7527 * libc/sys/rdos/write.c: Ditto.
7528
3acaaf54
JJ
75292006-01-24 Jeff Johnston <jjohnstn@redhat.com>
7530
7531 * acinclude.m4: Add nodefine to AM_INIT_AUTOMAKE macro invocation
7532 so as not to define PACKAGE and VERSION in newlib.h.
7533 * aclocal.m4: Regenerated.
7534 * configure: Ditto.
7535 * newlib.hin: Ditto.
7536
54abc854
JJ
75372006-01-20 Jeff Johnston <jjohnstn@redhat.com>
7538
7539 * acconfig.h: New file to generate newlib.hin from.
7540 * newlib.hin: Regenerated.
7541 * stamp-h.in: Regenerated.
7542 * Makefile.am: Add ACLOCAL_AMFLAGS so aclocal can be
7543 called automatically.
7544 * Makefile.in: Regenerated.
7545 * acinclude.m4: Add proper comment for hack in previous change.
7546 * aclocal.m4 */aclocal.m4: Regenerated.
7547 * configure */configure: Regenerated.
7548
33c9cfbd
JJ
75492006-01-11 Jeff Johnston <jjohnstn@redhat.com>
7550
7551 * acinclude.m4: Add hack to prevent INSTALL in subdirs
7552 from being set to "../".
7553 * Makefile.am: Pass INSTALL in AM_MAKEFLAGS.
7554 * aclocal.m4: Regenerated.
7555 * configure: Ditto.
7556 * Makefile.in: Ditto.
7557 * doc/aclocal.m4: Ditto.
7558 * doc/configure: Ditto.
7559 * iconvdata/aclocal.m4: Ditto.
7560 * iconvdata/configure: Ditto.
7561 * libc/*/aclocal.m4: Ditto.
7562 * libc/*/configure: Ditto.
7563 * libc/libc.texinfo: Ditto.
7564 * libm/*/aclocal.m4: Ditto.
7565 * libm/*/configure: Ditto.
7566
dea958bc
JJ
75672006-01-10 Eric Blake <ebb9@byu.net>
7568
7569 * libc/stdio/freopen.c (_freopen_r): Fix use of oflags.
7570 * libc/stdio64/freopen64.c (_freopen64_r): Likewise.
7571
216633f7
JJ
75722006-01-10 Jeff Johnston <jjohnstn@redhat.com>
7573
7574 * libm/mathfp/s_frexp.c: Check for special values on
7575 the original input, not the manipulated output value.
7576 * libm/mathfp/sf_frexp.c: Ditto.
7577 * libm/mathfp/s_atangent.c: Don't use local value branch
7578 when checking for quadrant.
7579 * libm/mathfp/sf_atangent.c: Ditto.
7580
64ae8ab5
JJ
75812006-01-09 Jeff Johnston <jjohnstn@redhat.com>
7582
7583 * libc/stdio/freopen.c: Switch to use isatty instead of _isatty.
7584 * libc/stdio64/freopen64.c: Ditto.
7585
0da7297e
JJ
75862006-01-09 Eric Blake <ebb9@byu.net>
7587
7588 * libc/stdio/freopen.c (_freopen_r): Accept NULL filename.
7589 * libc/stdio64/freopen64.c (_freopen64_r): Likewise.
7590
a37aaf88
JJ
75912006-01-06 Jeff Johnston <jjohnstn@redhat.com>
7592
7593 * libc/sys/linux/include/getopt.h: Add macros needed by
7594 new version of getopt.c in libc/stdlib.
7595
791c9bda
JJ
75962006-01-04 Gregory Pietsch <gpietsch@comcast.net>
7597
7598 * libc/stdlib/getopt.c: Replaced with version
7599 that adds getopt_long and getopt_long_only support.
7600 * libc/include/getopt.h: New file.
7601
0217078f
JJ
76022005-12-16 Jeff Johnston <jjohnstn@redhat.com>
7603
7604 * NEWS: Update with 1.14.0 info.
7605 * README: Ditto.
7606 * acinclude.m4: Change version number to 1.14.0.
7607 * aclocal.m4: Regenerated.
7608 * configure: Ditto.
7609 * doc/aclocal.m4: Ditto.
7610 * doc/configure: Ditto.
7611 * libc/*/aclocal.m4: Ditto.
7612 * libc/*/configure: Ditto.
7613 * libc/libc.texinfo: Ditto.
7614 * libm/*/aclocal.m4: Ditto.
7615 * libm/*/configure: Ditto.
7616 * libm/libm.texinfo: Ditto.
7617 * libc/sys/linux/shared.ld: Add VERS_1.14.
7618
a4cd7f20
JJ
76192005-12-16 Jeff Johnston <jjohnstn@redhat.com>
7620
7621 * libc/sys/linux/sys/stat.h: Change *stat64 prototypes to
7622 take a pointer to struct stat64 rather than struct stat.
7623
843e635a
JJ
76242005-12-16 Ralf Corsepius <ralf.corsepius@rtems.org>
7625
7626 * libc/include/stdint.h: Prefer long over int for int32_t.
7627 Use __have_long32 to set up int32_t.
7628 * libc/include/inttypes.h: Use "#if xxx" instead of "#ifdef xxx"
7629 (Sync with stdint.h).
7630
10cba930
CV
76312005-12-14 Corinna Vinschen <corinna@vinschen.de>
7632
7633 * libc/include/sys/fcntl.h: Define O_SYNC unconditionally. Fix
7634 typo in O_NDELAY comment.
7635
c8ba5c22
JJ
76362005-12-13 Nathan Sidwell <nathan@codesourcery.com>
7637
7638 * libc/include/machine/ieeefp.h (__mt__): Renamed from __ms1__.
7639 * libc/include/machine/setjmp.h (__mt__): Likewise.
7640 * libc/machine/mt/setjmp.S: Rename ms1 reference to mt.
7641 * libc/machine/configure.in: Ditto.
7642
74ecef0d
NS
76432005-12-12 Nathan Sidwell <nathan@codesourcery.com>
7644
7645 * configure.host: Replace ms1 arch with mt arch.
7646 * libc/machine/mt: Renamed from ms1 dir.
7647
2a1fc53c
JJ
76482005-12-08 Shaun Jackman <sjackman@gmail.com>
7649
7650 * libc/include/sys/types.h: Remove the ifdef armour around
7651 standard POSIX types.
7652
77e70d34
JJ
76532005-12-06 Ralf Corsepius <ralf.corsepius@rtems.org>
7654
7655 * libc/sys/rtems/crt0.c: Add rtems_gxx_key_create,
7656 rtems_gxx_key_delete, rtems_gxx_getspecific,
17c0c97d
EB
7657 rtems_gxx_setspecific, rtems_gxx_mutex_trylock,
7658 rtems_gxx_recursive_mutex_init, rtems_gxx_recursive_mutex_lock,
77e70d34
JJ
7659 rtems_gxx_recursive_mutex_trylock, rtems_gxx_recursive_mutex_unlock.
7660
b1da33a0
CF
76612005-12-05 Christopher Faylor <cgf@timesys.com>
7662
7663 * libc/include/stdlib.h: Move cygwin declarations to cygwin-specific
7664 file. Declare unsetenv and _unsetenv_r when not cygwin.
7665
6b1a6ec6
JJ
76662005-11-18 Jeff Johnston <jjohnstn@redhat.com>
7667
7668 * libc/time/strptime.c (strptime): Don't abort for %c and %Z.
7669 Treat %c as "%a %b %e %H:%M:%S %Y" and ignore %Z.
7670
d7d477b7
CF
76712005-11-18 Christopher Faylor <cgf@timesys.com>
7672
7673 * include/sys/time.h: Move more cygwin stuff to cygwin-specific header.
7674
c1534dbe
CF
76752005-11-18 Christopher Faylor <cgf@timesys.com>
7676
7677 * include/time.h: Remove more cygwin-specific stuff.
7678
d3e81bda
CF
76792005-11-18 Christopher Faylor <cgf@timesys.com>
7680
7681 * include/time.h: Move cygwin declarations to cygwin-specific header.
7682 * include/sys/time.h: Rename cygwin include to "sys_time.h".
7683
1396951b
JJ
76842005-11-17 Jeff Johnston <jjohnstn@redhat.com>
7685
7686 * libc/sys/linux/dl/dl-local.h: New file based on old dlfcn.h
7687 in libc/sys/linux/include.
7688 * libc/sys/linux/dl/dlfcn.h: Moved to libc/sys/linux/include.
7689 * libc/sys/linux/dl/ldsodefs.h: Include dl-local.h instead of dlfcn.h.
7690 * libc/sys/linux/include/dlfcn.h: Replaced with dlfcn.h formerly
7691 in libc/sys/linux/dl.
7692
37bd11ed
CF
76932005-11-11 Christopher Faylor <cgf@timesys.com>
7694
7695 * libc/include/sys/time.h: For cygwin, use general header rather than
7696 specific "sys/select.h".
7697
b397593c
JJ
76982005-11-08 Tom Walsh <tom@openhardware.net>
7699
7700 * libc/time/tzvars.c: New file.
7701 * libc/time/tzset_r.c: Moved globals into tzvars.c
7702 so other time functions needn't link in __tzset_r and its
7703 dependencies.
7704 * libc/time/Makefile.am: Add the new file.
7705 * libc/time/Makefile.in: Regenerated.
7706
86c6c421
CF
77072005-11-08 Christopher Faylor <cgf@timesys.com>
7708
7709 * libc/include/string.h: Add cygwin-specific function declaration.
7710
ef1206e4
CV
77112005-11-07 Corinna Vinschen <corinna@vinschen.de>
7712
7713 * libc/include/ieeefp.h: Add C++ guards.
7714
15eaca1c
JJ
77152005-11-03 Jeff Johnston <jjohnstn@redhat.com>
7716
7717 * libc/unix/getcwd.c: Don't use non-reentrant syscall names.
7718 * libc/unix/getlogin.c: Ditto.
7719 * libc/unix/getpass.c: Ditto.
7720 * libc/unix/getut.c: Ditto.
7721 * libc/unix/ttyname.c: Ditto.
7722
d31a8623
JJ
77232005-11-03 Shaun Jackman <sjackman@gmail.com>
7724
7725 * libc/include/sys/unistd.h (readlink, symlink): Provide these
7726 prototypes by default.
7727 * libc/sys/linux/include/unistd.h (readlink): Remove this
7728 prototype.
7729 * libc/sys/linux/sys/unistd.h (readlink, symlink): New
7730 prototypes.
7731
71ac53ee
JJ
77322005-11-01 Ralf Corsepius <ralf.corsepius@rtems.org>
7733
7734 * libc/include/stdint.h: Cleanup #if vs. #ifdef.
7735
dc1b6289
JJ
77362005-10-31 Darin Johnson <darin@usa.net>
7737
7738 * libm/mathfp/s_mathcnst.c: Fix endian-ness check to be
7739 correct for constants.
7740
884c0ff0
JJ
77412005-10-28 Bob Wilson <bob.wilson@acm.org>
7742
7743 * libc/stdio/siprintf.c: Wrap long lines in ANSI_SYNOPSIS.
7744 * libc/stdio/siscanf.c: Likewise.
7745 * libc/stdio/sprintf.c: Likewise.
7746 * libc/stdio/sscanf.c: Likewise.
7747 * libc/stdio/vfprintf.c: Likewise.
7748 * libc/stdio/vfscanf.c: Likewise.
7749 * libc/stdio/viprintf.c: Likewise.
7750 * libc/stdio/viscanf.c: Likewise.
7751
a9c15f6f
JJ
77522005-10-28 Bob Wilson <bob.wilson@acm.org>
7753
7754 * libc/sys.tex (Stubs): Format examples consistently. Change sbrk
7755 example to use "_end" symbol instead of "end". Change write example
7756 to use "outbyte" instead of "writechar".
7757
a306ebc9
JJ
77582005-10-28 Bob Wilson <bob.wilson@acm.org>
7759
7760 * libc/ctype/ctype.tex: Use hyphens as appropriate, but not otherwise.
7761 * libc/ctype/islower.c: Likewise.
7762 * libc/ctype/isupper.c: Likewise.
7763 * libc/ctype/iswalnum.c: Likewise.
7764 * libc/ctype/iswalpha.c: Likewise.
7765 * libc/ctype/iswblank.c: Likewise.
7766 * libc/ctype/iswcntrl.c: Likewise.
7767 * libc/ctype/iswdigit.c: Likewise.
7768 * libc/ctype/iswgraph.c: Likewise.
7769 * libc/ctype/iswlower.c: Likewise.
7770 * libc/ctype/iswprint.c: Likewise.
7771 * libc/ctype/iswpunct.c: Likewise.
7772 * libc/ctype/iswspace.c: Likewise.
7773 * libc/ctype/iswupper.c: Likewise.
7774 * libc/ctype/iswxdigit.c: Likewise.
7775 * libc/ctype/tolower.c: Likewise.
7776 * libc/ctype/toupper.c: Likewise.
7777 * libc/ctype/towctrans.c: Likewise.
7778 * libc/ctype/towlower.c: Likewise.
7779 * libc/ctype/towupper.c: Likewise.
7780 * libc/string/strcasecmp.c: Likewise.
7781 * libc/string/strcoll.c: Likewise.
7782 * libc/string/strings.tex: Likewise.
7783 * libc/string/strlwr.c: Likewise.
7784 * libc/string/strncasecmp.c: Likewise.
7785 * libc/string/strupr.c: Likewise.
7786 * libc/string/wcscoll.c: Likewise.
7787 * libc/string/wcslcat.c: Likewise.
7788 * libc/string/wcslcpy.c: Likewise.
7789 * libc/string/wcsnlen.c: Likewise.
7790 * libc/string/wcsstr.c: Likewise.
7791 * libc/string/wcstrings.tex: Likewise.
7792 * libc/string/wmemchr.c: Likewise.
7793 * libc/string/wmemcmp.c: Likewise.
7794 * libc/string/wmemcpy.c: Likewise.
7795 * libc/string/wmemmove.c: Likewise.
17c0c97d 7796 * libc/string/wmemset.c: Likewise.
a306ebc9 7797
239c2bf9
JJ
77982005-10-28 Bob Wilson <bob.wilson@acm.org>
7799
7800 * libc/misc/unctrl.c: Replace FUNCTION description.
7801 * libc/signal/signal.c: Remove documentation for raise and _raise_r.
7802 * libc/stdio/getdelim.c: Fix spelling errors.
7803 * libc/stdio/getw.c: Put RETURNS on a separate line. Fix punctuation.
7804 * libc/stdio/putw.c: Likewise.
7805 * libc/stdlib/a64l.c: Fix formatting, spelling and punctuation in
ba3ccd63 7806 documentation.
239c2bf9
JJ
7807 * libc/stdlib/assert.c: Do not capitalize FUNCTION description.
7808 * libc/stdlib/efgcvt.c: Add spaces to FUNCTION description.
7809 * libc/stdlib/envlock.c: Use em-dash in FUNCTION description.
7810 * libc/stdlib/mlock.c: Likewise.
7811 * libc/stdlib/mstats.c: Likewise.
7812 * libc/time/tzlock.c: Likewise.
7813 * libc/stdlib/rand.c: Use "multi-threaded" and "thread-safe" in NOTES.
7814 * libc/stdlib/rand48.c: Remove extra space in FUNCTION description
ba3ccd63 7815 and hyphenate "pseudo-random".
239c2bf9
JJ
7816 * libc/string/bcmp.c: Remove extra blank lines in documentation.
7817 * libc/string/strncat.c: Likewise.
7818 * libc/string/memchr.c: Remove extra ">" character in documentation.
7819 * libc/string/strcspn.c: Use "characters" instead of "chars".
7820 * libc/string/strpbrk.c: Likewise.
7821 * libc/string/strerror_r.c: Capitalize "GNU".
7822 * libc/string/strnlen.c: Likewise.
7823 * libc/string/strtok.c: Fix formatting, spelling and punctuation in
ba3ccd63 7824 documentation. Use "multi-threaded" and "thread-safe" in NOTES.
239c2bf9
JJ
7825 * libc/string/wcscat.c: Split PORTABILITY into two paragraphs.
7826 * libc/string/wcschr.c: Likewise.
7827 * libc/string/wcscmp.c: Likewise.
7828 * libc/string/wcscpy.c: Likewise.
7829 * libc/string/wcscspn.c: Likewise.
7830 * libc/string/wcslen.c: Likewise.
7831 * libc/string/wcsncat.c: Likewise.
7832 * libc/string/wcsncmp.c: Likewise.
7833 * libc/string/wcsncpy.c: Likewise.
7834 * libc/string/wcsnlen.c: Likewise.
7835 * libc/string/wcspbrk.c: Likewise.
7836 * libc/string/wcsrchr.c: Likewise.
7837 * libc/string/wcsspn.c: Likewise.
7838 * libc/string/wmemchr.c: Likewise.
7839 * libc/string/wmemcmp.c: Likewise.
7840 * libc/string/wmemcpy.c: Likewise.
7841 * libc/string/wmemset.c: Likewise.
7842 * libc/string/wmemmove.c: Likewise. Also fix FUNCTION description.
7843 * libc/string/wcswidth.c: Formatting and punctuation in documentation.
7844 * libc/string/wcwidth.c: Likewise.
7845 * libm/common/s_modf.c: Remove extra period from documentation.
7846 * libm/math/s_isnan.c: Fix formatting, grammar and punctuation in
ba3ccd63 7847 documentation.
239c2bf9
JJ
7848 * libm/mathfp/s_isnan.c: Likewise.
7849 * libm/math/s_ldexp.c: Fix punctuation.
7850 * libm/mathfp/s_ldexp.c: Likewise.
7851 * libm/math/w_log.c: Likewise.
7852 * libm/mathfp/s_logarithm.c: Likewise.
7853 * libm/math/w_j0.c: Add spaces to FUNCTION description.
17c0c97d 7854 * libm/mathfp/w_jn.c: Likewise.
239c2bf9 7855
2556eb8d
JJ
78562005-10-26 Shaun Jackman <sjackman@gmail.com>
7857
7858 * libc/posix/scandir.c (scandir): Update the function
7859 prototype to match the header.
7860 * libc/sys/linux/linuxthreads/bits/libc-lock.h: Remove an
7861 extraneous #endif.
7862 * libc/sys/linux/sys/lock.h: Do not include
7863 machine/weakalias.h, since it's not used by this file.
7864
c9d71a8d
JJ
78652005-10-26 Jeff Johnston <jjohnstn@redhat.com>
7866
7867 * libc/Makefile.am: Reorder SUBLIBS so machine and sys
7868 directories can override properly.
7869
09968b6d
JJ
78702005-10-20 Jeff Johnston <jjohnstn@redhat.com>
7871
7872 * libc/include/math.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): When
7873 gcc is 3.3 or greater, use special gcc builtins.
7874
c70571bd
CV
78752005-10-20 Corinna Vinschen <corinna@vinschen.de>
7876
7877 * libc/include/sys/time.h: Declare futimes and lutimes for Cygwin.
7878
a92822b7
CV
78792005-10-18 Corinna Vinschen <corinna@vinschen.de>
7880
7881 * libc/include/sys/features.h: Define _POSIX_MEMLOCK_RANGE for Cygwin.
7882
d2c2c132
JJ
78832005-10-14 Jeff Johnston <jjohnstn@redhat.com>
7884
7885 * libc/include/math.h (HUGE_VALF, HUGE_VALL): New.
7886 * libm/common/Makefile.am: Add s_infconst.c support.
7887 * libm/common/Makefile.in: Regenerated.
7888 * libm/common/s_infconst.c: New file with float and
7889 long double infinity support added.
7890 * libm/math/Makefile.am: Remove s_infconst.c support.
7891 * libm/math/Makefile.in: Regenerated.
7892 * libm/math/s_infconst.c: Moved to common directory.
7893 * libm/mathfp/Makefile.am: Remove s_infconst.c support.
7894 * libm/mathfp/Makefile.in: Regenerated.
7895 * libm/mathfp/s_infconst.c: Moved to common directory.
7896
4d57c1ed
JJ
78972005-10-14 Jeff Johnston <jjohnstn@redhat.com>
7898
7899 * libc/sys/linux/net/gethostbydns.c (dprintf): Rename to
7900 dbgprintf to prevent conflict with new dprintf function.
7901
1012585f
JJ
79022005-10-14 Jeff Johnston <jjohnstn@redhat.com>
7903
7904 * libc/stdio/vfprintf.c (_VFPRINTF_R): Fix up "inf" and
7905 "nan" processing for systems that have long double support.
7906
e9154015
JJ
79072005-10-14 Jeff Johnston <jjohnstn@redhat.com>
7908
7909 * libc/sys/linux/sys/types.h (int8_t): Add type.
7910
1a869698
JJ
79112005-10-14 Bob Wilson <bob.wilson@acm.org>
7912
ba3ccd63
EB
7913 * libm/common/Makefile.am (doc): Do not append to $(TARGETDOC).
7914 * libm/common/Makefile.in: Regenerate.
7915 * libm/common/common.tex: Delete file.
7916 * libm/math/math.tex: Include .def files from common/.
7917 * libm/mathfp/mathfp.tex: Likewise.
1a869698 7918
e0811fb3
JJ
79192005-10-14 Bob Wilson <bob.wilson@acm.org>
7920
7921 * libc/libc.texinfo (Top): Surround this node with @ifnottex
7922 instead of @ifinfo. Update menu to add Introduction and match
7923 SUBDIRS order.
ba3ccd63 7924 (Introduction): New section.
e0811fb3 7925
e63c98c6
JJ
79262005-10-14 Bob Wilson <bob.wilson@acm.org>
7927
ba3ccd63
EB
7928 * libc/reent/reent.tex (Reentrancy): Replace "Cygnus C Library"
7929 with "Red Hat newlib C Library".
7930 * libc/sys.tex (Stubs): Likewise.
7931 * libm/math/math.tex (Math): Likewise.
7932 * libm/mathfp/mathfp.tex (Math): Likewise.
e63c98c6 7933
339195bf
JJ
79342005-10-11 Shaun Jackman <sjackman@gmail.com>
7935
7936 * libc/include/stdio.h (dprintf): New declaration.
7937 (vdprintf): Ditto.
7938 * libc/stdio/Makefile.am (GENERAL_SOURCES): Add dprintf.c
7939 and vdprintf.c.
7940 * libc/stdio/Makefile.in: Regenerate.
7941 * libc/stdio/dprintf.c: New file.
7942 * libc/stdio/vdprintf.c: New file.
7943 * libc/stdio/stdio.tex (dprintf): New entry.
7944
da71e518
JJ
79452005-10-11 David Weatherford <weath@tensilica.com>
7946
7947 * libc/stdio/vfprintf.c (_VFPRINTF_R): Recognize 'F' format.
17c0c97d 7948 Print "inf" and "nan" in lowercase for e/f/g formats and in
da71e518
JJ
7949 uppercase for E/F/G formats.
7950
f011605a
JJ
79512005-10-07 Bob Wilson <bob.wilson@acm.org>
7952
7953 * libc/stdlib/mallocr.c (mALLOc, rEALLOCc, mEMALIGn): Set errno
7954 to ENOMEM on failure.
7955
bc037f3a
JJ
79562005-10-06 Ralf Corsepius <ralf.corsepius@rtems.org>
7957
7958 * libc/include/stdint.h: Add [u]int_fast<N>_t types.
7959
c7e20979
JJ
79602005-10-04 Ralf Corsepius <ralf.corsepius@rtems.org>
7961
7962 * libc/include/stdint.h: Move magic to set __have_long* to the
7963 beginning. Use #if __have* instead of #if defined(__have*).
7964 Minor typo fixes.
7965
58e78add
JJ
79662005-10-04 James E Wilson <wilson@specifix.com>
7967
7968 * libc/include/sys/dirent.h (_DIRENT_H_): Delete #include_next. Add
7969 #error.
7970
8afb8202
JJ
79712005-10-03 Jeff Johnston <jjohnstn@redhat.com>
7972
7973 * libc/sys/linux/include/stdint.h: Include <sys/types.h> and
7974 incorporate Ralf's change below.
7975
14491fd0
JJ
79762005-10-03 Ralf Corsepius <ralf.corsepius@rtems.org>
7977
17c0c97d 7978 * libc/include/stdint.h:
14491fd0
JJ
7979 Use __INTMAX_TYPE__ to derive intmax_t.
7980 Use __UINTMAX_TYPE__ to derive uintmax_t.
7981 Fix minor typo.
7982
ee694aea
JJ
79832005-09-27 Ralf Corsepius <ralf.corsepius@rtems.org>
7984
17c0c97d 7985 * libc/include/stdint.h: Correct __STDINT_EXP macro incorrectly
ee694aea
JJ
7986 handling GCC >= 4.
7987
9f1926f2
JJ
79882005-09-20 Jeff Johnston <jjohnstn@redhat.com>
7989
7990 * libc/sys/linux/include/stdint.h: Update to match functionality
7991 of generic newlib stdint.h.
7992
0ce4fcef
JJ
79932005-09-20 Jeff Johnston <jjohnstn@redhat.com>
7994
7995 * libc/include/stdint.h (__EXP): Rename to __STDINT_EXP
7996 and do not #undef the macro after it is used. Fix typos.
7997 Also change 64-bit constants to use the __have_long64 and
7998 __have_longlong64 flags to determine if long or long long
7999 constants should be used.
8000 * libc/include/inttypes.h: Include stddef.h to get wchar_t
8001 type defined.
8002
17060817
JJ
80032005-09-20 Shaun Jackman <sjackman@gmail.com>
8004
8005 * libc/include/stdint.h: Fix typo in names of
8006 LEAST macros.
8007
1e1d1d3d
JJ
80082005-09-20 Jeff Johnston <jjohnstn@redhat.com>
8009
8010 * libc/sys/rtems/include/inttypes.h: Moved to...
8011 * libc/include/inttypes.h: ...here.
8012
cddfc170
JJ
80132005-09-19 Jeff Johnston <jjohnstn@redhat.com>
8014
8015 * libc/sys/rtems/include/stdint.h: Moved to...
8016 * libc/include/stdint.h: ...here.
8017
b10ab725
JJ
80182005-09-08 Jeff Johnston <jjohnstn@redhat.com>
8019
8020 * Makefile.am: Add include files under bits sub-directory.
8021 * Makefile.in: Regenerated.
8022 * libc/sys/linux/argp/argp-fs-xinl.c: Set __OPTIMIZE__ to
8023 actual value of 1 to be compatible with newer glibc headers.
8024 * libc/sys/linux/sys/cdefs.h: Fix to be compatible with newer
8025 glibc headers.
8026 * libc/sys/linux/sys/dirent.h: Ditto.
8027 * libc/sys/linux/argp/argp-xinl.c: Ditto.
8028 * libc/sys/linux/dl/dl-runtime.c: Make sure fixup and
8029 profile_fixup routines are marked used so they won't be
8030 optimized away.
8031 * libc/sys/linux/dl/dl-cache.c: Don't use weak_extern macro
8032 to mark functions as weak.
8033 * libc/sys/linux/dl/dl-open.c: Ditto.
8034 * libc/sys/linux/iconv/gconv_open.c: Fix to obey new gcc4
8035 rules about lvalues.
8036 * libc/sys/linux/iconv/gconv_simple.c: Ditto.
8037 * libc/sys/linux/linuxthreads/bits/libc-lock.h: Don't use
8038 weak_extern macro to mark functions as weak. Instead always
8039 use #pragma weak.
8040 * iconvdata/jis0208.h: Fix to work with gcc4.
8041 * libc/sys/linux/dl/dl-load.c: Ditto.
8042 * libc/sys/linux/dl/dl-reloc.c: Ditto.
8043 * libc/sys/linux/dl/do-rel.h: Ditto.
8044 * libc/sys/linux/dl/dynamic-link.h: Ditto.
8045 * libc/sys/linux/include/ltdl.h: Ditto.
8046 * libc/sys/linux/machine/i386/dl-machine.h: Ditto.
8047 * libc/sys/linux/machine/i386/weakalias.h: Ditto.
8048 * libc/sys/linux/net/ns_ntoa.c: Ditto.
8049 * libc/sys/linux/bits/initspin.h: New file.
8050 * libc/sys/linux/bits/libc-lock.h: Ditto.
8051 * libc/sys/linux/bits/pthreadtypes.h: Ditto.
8052 * libc/sys/linux/bits/typesizes.h: Ditto.
8053
7b786e48
JJ
80542005-09-08 Eric Blake <ebb9@byu.net>
8055
8056 * libc/argz/argz_insert.c (argz_insert): Don't die with EINVAL when
8057 before is NULL.
8058
32b09d75
JJ
80592005-09-08 Brian Dessent <brian@dessent.net>
8060
8061 * sf_lrint.c (lrintf): Mask 'i0' correctly when extracting
8062 mantissa.
8063 * s_lrint.c: Ditto.
8064
8f36ef2f
JJ
80652005-09-02 Jeff Johnston <jjohnstn@redhat.com>
8066
8067 * libc/include/stdio.h: Add prototype for viprintf.
8068
cebe43dd
JJ
80692005-09-01 Jeff Johnston <jjohnstn@redhat.com>
8070
8071 * libm/mathfp/s_pow.c: (pow): Change code so 0 raised to
8072 any positive power results in 0.
8073 * libm/mathfp/sf_pow.c (powf): Ditto.
8074
45c8bb8f
JJ
80752005-08-31 Paul Brook <paul@codesourcery.com>
8076
8077 * configure.host: Set have_crt0 to no for Arm targts when not
8078 providing syscalls. Set sys_dir=arm unconditionally.
8079 Default have_crt0 based on sys_dir.
8080 * configure.in: Use have_crt0.
8081 * libc/configure.in: Ditto.
8082 * libc/sys/configure.in: Ditto.
8083 * configure: Regenerate.
8084 * libc/configure: Regenerate.
8085 * libc/sys/configure: Regenerate.
8086 * libc/sys/arm/Makefile.am (lib_a_SOURCES): Add aeabi_atexit.c.
8087 Only build other files when providing syscalls.
8088 * libc/sys/arm/Makefile.in: Regenerate.
8089 * libc/sys/arm/aeabi_atexit.c: New file.
8090
dbeee890
CF
80912005-08-26 Christopher Faylor <cgf@timesys.com>
8092
8093 * libc/include/string.h: Revert previous change.
8094
377d3ea0
CF
80952005-08-25 Christopher Faylor <cgf@timesys.com>
8096
8097 * libc/include/string.h: For Cygwin, Define strerror_r as per ISO C.
8098
4797a77c
JJ
80992005-08-22 Shaun Jackman <sjackman@gmail.com>
8100
8101 * libc/include/_syslist.h: If HAVE_OPENDIR is not defined,
8102 define _opendir as opendir, _readdir as readdir, and
8103 _closedir as closedir so that the implementations in
8104 libc/posix will be used.
8105
2e73582e
DD
81062005-08-10 DJ Delorie <dj@redhat.com>
8107
8108 * MAINTAINERS (CPU Ports): Add CPU port maintainer section.
8109
234cf97f
JJ
81102005-08-10 Stephen Huw Clarke <stephen.clarke@st.com>
8111
8112 * libm/common/sf_fmax.c: Fix to properly handle NaNs.
8113 * libm/common/s_max.c: Ditto.
8114 * libm/common/sf_fmin.c: Ditto.
8115 * libm/common/s_min.c: Ditto.
8116
56448afa
JJ
81172005-08-10 DJ Delorie <dj@redhat.com>
8118
8119 * configure.host: Add m32c support.
8120 * libc/include/machine/ieeefp.h: Likewise.
8121 * libc/include/machine/setjmp.h: Likewise.
8122 * libc/include/sys/config.h: Likewise.
8123 * libc/machine/m32c: New directory, Renesas R8C/M16C/M32C support.
8124 * libc/machine/m32c/aclocal.m4: New file.
8125 * libc/machine/m32c/configure: Ditto.
8126 * libc/machine/m32c/configure.in: Ditto.
8127 * libc/machine/m32c/Makefile.am: Ditto.
8128 * libc/machine/m32c/Makefile.in: Ditto.
8129 * libc/machine/m32c/setjmp.S: Ditto.
8130
0c5c6c23
JJ
81312005-08-02 Bob Wilson <bob.wilson@acm.org>
8132
ba3ccd63
EB
8133 * libm/math/ef_hypot.c (__ieee754_hypotf): Add missing exponent bias
8134 to the value for 2^126.
0c5c6c23 8135
12499c7a
HPN
81362005-07-26 Hans-Peter Nilsson <hp@bitrange.com>
8137
8138 * libc/machine/cris/libcdtor.c (defaultors): Mark artificially as
8139 used.
8140
395a327d 81412005-07-20 Bob Wilson <bob.wilson@acm.org>
ba3ccd63 8142 Darin Petkov <darin@tensilica.com>
395a327d
JJ
8143
8144 * libm/math/ef_atan2.c (pi, pi_lo): Use round-to-nearest value of pi.
8145
108d7dd8
JJ
81462005-07-19 Paul Brook <paul@codesourcery.com>
8147
8148 * libc/sys/arm/crt0.S: Ensure doubleword stack alignment.
8149
b776efc5
JJ
81502005-07-18 Joseph S. Myers <joseph@codesourcery.com>
8151
8152 * testsuite/lib/checkoutput.exp (newlib_check_output): Use test
8153 names after PASS and FAIL which do not depend on source directory
8154 name or on whether test passed or failed.
8155 * testsuite/lib/passfail.exp (newlib_pass_fail): Likewise.
8156
88540e24
JJ
81572005-07-08 Ola Hugosson <Ola.Hugosson@anoto.com>
8158
8159 * libc/string/wcsspn.c (wcsspn): Add missing increment of q.
8160
85d62190 81612005-07-07 Shaun Jackman <sjackman@gmail.com>
b32adfc5 8162
88540e24 8163 * libc/unix/ttyname.c (ttyname): Avoid calling _closedir
b32adfc5
JJ
8164 twice for the same directory. _closedir calls free, and freeing
8165 the same pointer twice may cause a crash.
8166
dee9edd9
AH
81672005-07-06 Aldy Hernandez <aldyh@redhat.com>
8168
ba3ccd63
EB
8169 * configure.host: Added entry for ms1*.
8170 * libc/include/machine/ieeefp.h: Handle ms1.
8171 * libc/include/machine/setjmp.h (_JBLEN): Define for ms1.
8172 * libc/machine/ms1/aclocal.m4: New.
8173 * libc/machine/ms1/configure: New.
8174 * libc/machine/ms1/configure.in: New.
8175 * libc/machine/ms1/Makefile.am: New.
8176 * libc/machine/ms1/Makefile.in: New.
8177 * libc/machine/ms1/setjmp.S: New.
dee9edd9 8178
cec1d3b4
JJ
81792005-07-04 Mark Mitchell <mark@codesourcery.com>
8180
8181 * Makefile.am (site.exp): Set tmpdir.
8182 * Makefile.in: Regenerated.
8183 * testsuite/lib/checkoutput.exp (newlib_check_output): Put
8184 executables in $tmpdir.
8185 * testsuite/lib/flags.exp (libgloss_link_flags): Use the original
8186 libgloss version if not running in the build directory.
8187 * testsuite/lib/newlib.exp (newlib_init): Put testglue.o in
8188 $tmpdir.
8189 * testsuite/lib/passfail.exp (newlib_pass_fail): Put executables
8190 in $tmpdir.
8191
25d209f1
JJ
81922005-06-28 Dave Korn <dave.korn@artimi.com>
8193
8194 * libm/common/s_lrint.c (lrint): Fix signed-vs-unsigned comparison
8195 and miscalculation caused by fp representation of zero.
8196 * libm/common/sf_lrint.c (lrintf): Likewise.
8197
68cdbb18
JJ
81982005-06-16 Christopher Faylor <cgf@timesys.com>
8199
8200 * libc/stdio/vfprintf.c (cvt): Don't rely on pointer aliasing to
8201 determine characteristics of long double. Use a union instead.
8202 * ldtoa.c (_ldtoa_r): Ditto.
8203 (_ldcheck): Ditto.
8204 (_strtold): Ditto.
8205 (union uconv): New union.
8206
15c04fd1
JJ
82072005-06-03 Jeff Johnston <jjohnstn@redhat.com>
8208
8209 * libc/stdlib/mallocr.c (MALLOC_COPY): Switch to use memmove
8210 instead of memcpy.
8211
cf55bf5e
JJ
82122005-05-12 Jeff Johnston <jjohnstn@redhat.com>
8213
8214 * configure.host (mn10300-*): Add long long I/O support by default.
8215
b6e654c4
JJ
82162005-05-12 Jeff Johnston <jjohnstn@redhat.com>
8217
8218 * libc/sys/linux/getpwuid.c: Removed.
8219 * libc/sys/linux/getpwnam.c: Removed.
8220 * libc/sys/linux/getpwent.c: New file containing logic
8221 from files removed above. This allows overriding of file
8222 in libc/unix.
8223 * libc/sys/linux/Makefile.am: Support changes above.
8224 * libc/sys/linux/Makefile.in: Regenerated.
8225
5456408b
JJ
82262005-04-28 Jeff Johnston <jjohnstn@redhat.com>
8227
8228 * libc/stdio/vfscanf.c (__svfscanf_r): Fix code thinko
8229 when checking for multiple flags.
8230
1c74754f
HPN
82312005-04-18 Hans-Peter Nilsson <hp@axis.com>
8232
8233 * configure.host <cris-*-* | crisv32-*-*>: Set
ba3ccd63 8234 default_newlib_io_long_long="yes".
1c74754f 8235
6e75bff6
JJ
82362005-04-08 Jeff Johnston <jjohnstn@redhat.com>
8237
8238 * libc/include/libgen.h: New file.
8239
82402005-04-08 Shaun Jackman <sjackman@gmail.com>
8241
8242 * libc/unix/Makefile.am: Add support for basename and dirname.
8243 * libc/unix/Makefile.in: Regenerated.
8244 * libc/unix/basename.c: New file.
8245 * libc/unix/dirname.c: New file.
8246
95c136c4
JJ
82472005-04-07 Shaun Jackman <sjackman@gmail.com>
8248
8249 * libc/sys/linux/inode.c (lchown): New function.
8250
9ae26f7e
JJ
82512005-04-07 Shaun Jackman <sjackman@gmail.com>
8252
8253 * libc/unix/Makefile.am (LIB_OBJS): Include all the ELIX objects if no
8254 ELIX level is defined.
8255 * libc/unix/Makefile.in: Regenerated.
8256
85da7039
JJ
82572005-04-05 Dave Korn <dave.korn@artimi.com>
8258
8259 * libc/stdio/vfscanf.c (__svfscanf_r): If an error occurs processing
8260 something that looks like a "NaN", put back the characters processed.
8261
fefc73a0
CV
82622005-04-01 Corinna Vinschen <corinna@vinschen.de>
8263
8264 * libc/stdlib/strtod.c (_strtod_r): Never change s00.
8265
e633fde1
CF
82662005-03-23 Christopher Faylor <cgf@timesys.com>
8267
8268 * configure.host: For cygwin, redefine CC with cygwin include directory
8269 first to mimic the behavior of the top-level configury. Move include
8270 directory out of newlib_cflags.
8271
859c94e8
JJ
82722005-03-22 Jeff Johnston <jjohnstn@redhat.com>
8273
8274 * configure.host: For arc, set -DREENTRANT_SYSCALLS_PROVIDED flag on.
17c0c97d 8275 * libc/sys/arc/syscalls.c: Change functions to use __errno_r rather
859c94e8
JJ
8276 than errno.
8277
7e3fd32b
CF
82782005-03-22 Christopher Faylor <cgf@timesys.com>
8279
8280 * libc/include/machine/_types.h: Make trivial change to comment to
8281 avoid a spurious warning from gcc.
8282
d4eb8920
JJ
82832005-03-21 Nicholas Wourms <nwourms@netscape.net>
8284
8285 * libc/stdio/vfprintf.c: Move newlib.h before _WANT_IO_POS_ARGS test,
8286 since _WANT_IO_POS_ARGS is now defined in there. Remove duplicate
8287 reent.h include.
8288
45030958 82892005-03-18 Hans-Peter Nilsson <hp@axis.com>
ba3ccd63 8290 Corinna Vinschen <corinna@vinschen.de>
45030958 8291
ba3ccd63
EB
8292 * libc/include/ctype.h: Remove invalid +1 offset from
8293 ctype macro references to __ctype_ptr.
8294 (_ctype_): Move declaration outside #ifndef __cplusplus.
45030958 8295
5c9b5ac7
CV
82962005-03-18 Corinna Vinschen <corinna@vinschen.de>
8297
8298 * libc/include/machine/setjmp.h (sigsetjmp): Use GCC extension to
8299 evaluate first parameter only once.
8300 (siglongjmp): Ditto.
8301
dd801fda
JJ
83022005-03-17 Jeff Johnston <jjohnstn@redhat.com>
8303
8304 * configure.in: Add new check to see if compiler supports
8305 aliasing of arrays and define _HAVE_ARRAY_ALIASING if true.
8306 * configure: Regenerated.
8307 * Makefile.in: Ditto.
8308 * newlib.hin: Add _HAVE_ARRAY_ALIASING.
8309 * libc/ctype/ctype_.c: Check for _HAVE_ARRAY_ALIASING before
8310 aliasing the _ctype_ array to _ctype_b.
8311 * libc/include/ctype.h: Change macros to use __ctype_ptr. Mark
8312 _ctype_ as deprecated.
8313
333eabc6
HPN
83142005-03-17 Hans-Peter Nilsson <hp@axis.com>
8315
8316 * configure.host (newlib_cflags) <cris-*-*, crisv32-*-*>: Add
8317 -DCOMPACT_CTYPE.
8318
df5a5b35
JJ
83192005-03-06 Ralf Corsepious <ralf.corsepius@rtems.org>
8320
8321 * libc/sys/rtems/include/inttypes.h: New file.
8322 * libc/sys/rtems/include/stdint.h: Ditto.
8323
9d385fb0
JJ
83242005-03-06 Ralf Corsepious <ralf.corsepius@rtems.org>
8325
8326 * libc/string/memcmp.c: Fix to avoid pointer signedness warning.
8327
2e7d9bf9
JJ
83282005-03-06 Ralf Corsepious <ralf.corsepius@rtems.org>
8329
8330 * libc/include/machine/_types.h: New file.
8331 * libc/include/sys/types.h: Do not check for __rtems__
8332 when including <machine/_types.h>. Remove some redundant
8333 declarations now that <machine/_types.h> is included.
8334 * libc/sys/rtems/machine/_types.h: Removed. Replaced with
8335 shared header file.
8336
92a7e06e
JJ
83372005-02-25 Ralf Corsepious <ralf.corsepius@rtems.org>
8338
8339 * libm/common/fdlibm.h (FLT_UWORD_MAX, FLT_UWORD_HALF_MAX): Add
8340 L qualifier for these long constants.
8341
1139537a
JJ
83422005-02-25 Eric Blake <ebb9@byu.net>
8343
8344 * libc/include/time.h (__tzrule_struct): Make offset long, since
8345 a 16-bit int overflows on a 12-hour offset.
8346 * libc/sys/linux/include/time.h: Ditto.
8347 * libc/time/mktime.c (mktime): Use new type of __tzrule.offset.
8348 * libc/time/mktm_r.c: Ditto.
8349 * libc/time/gettzinfo.c: Ditto.
8350 * libc/time/strftime.c (strftime): Fix '%x' to deal with negative
8351 years. Fix '%z' to use long, not int.
8352
f4fd7b4c
JJ
83532005-02-24 Ralf Corsepious <ralf.corsepius@rtems.org>
8354
8355 * libm/common/s_fpclassify.c: Use __uint32_t instead of int to
8356 manipulate float values in integer form.
8357 * libm/common/sf_round.c: Ditto.
8358
f2f8a9a2
JJ
83592005-02-24 Ralf Corsepious <ralf.corsepius@rtems.org>
8360
8361 * libc/include/sys/types.h [__rtems__]: Include new
8362 header file machine/_types.h.
8363 * libc/include/machine/types.h: Ditto.
8364 * libc/sys/rtems/machine/_types.h: New file.
8365
39fd43d7
CV
83662005-02-23 Corinna Vinschen <corinna@vinschen.de>
8367
8368 * libc/include/time.h (_timezone): Change to long also for Cygwin.
8369 (timezone): Drop cast from definition.
8370
6b9a74f9
JJ
83712005-02-23 Jeff Johnston <jjohnstn@redhat.com>
8372
8373 * libc/include/time.h [!CYGWIN](_timezone): Change to long.
8374 (__tzrule_type, __tzinfo_type): New types.
8375 (__gettzinfo): New function.
8376 * libc/sys/linux/include/time.h: Ditto.
8377 * libc/time/Makefile.am: Add gettzinfo.c.
8378 * libc/time/Makefile.in: Regenerated.
8379 * libc/time/local.h: Moved __tzrule_type to time.h.
8380 * libc/time/mktime.c: Call __gettzinfo to reference
8381 __tznorth, __tzyear, and __tzrule array.
8382 * libc/time/mktm_r.c: Ditto.
8383 * libc/time/strftime.c: Ditto.
8384 * libc/time/tzset_r.c: Ditto. Also remove definition
8385 of __tzrule which is now in gettzinfo.c. Change _timezone
8386 references to not cast to time_t.
8387 * libc/time/gettzinfo.c: New file.
8388
6015cf9f
CV
83892005-02-23 Corinna Vinschen <corinna@vinschen.de>
8390
8391 * libc/include/sys/unistd.h: Define getpeereid for Cygwin.
8392
5e4c05da
CV
83932005-02-22 Corinna Vinschen <corinna@vinschen.de>
8394
8395 * libc/include/sys/unistd.h: Define fdatasync also for Cygwin.
8396
f1d439fc
JJ
83972005-02-16 Eric Blake <ebb9@byu.net>
8398
8399 * libc/time/time.tex: Improve the documentation.
8400 * libc/time/strftime.c: Improve the documentation.
8401 (iso_year_adjust): New helper function.
8402 (strftime): Simplify '%E' and '%O'. Change '%c' to use
8403 recursion. Fix '%C', '%y', and '%Y' to deal with years with more
8404 than 4 characters. Combine '%d' and '%e'. Implement '%D', '%F',
8405 '%g', '%G', '%n', '%R', '%t', '%T', '%u', '%V', '%X', and '%z'.
8406 Avoid core dumps on valid inputs (maxsize == 0, or
8407 tim_p->tm_isdst > 1).
8408
18d3a03b
CV
84092005-02-08 Corinna Vinschen <corinna@vinschen.de>
8410
8411 * libc/include/pwd.h (struct passwd): Change pw_uid and pw_gid
8412 members to uid_t and gid_t according to SUSv3.
8413 * libc/include/sys/time.h (utimes): Change second parameter
8414 to const according to SUSv3.
8415
1159e0fd
JJ
84162005-02-07 Antony King <antony.king@st.com>
8417
8418 * libc/stdio/clearerr.c (clearerr): Ensure CHECK_INIT() is
8419 called before _flockfile to prevent lock object use before
8420 initialisation. _REENT_SMALL_CHECK_INIT() and CHECK_INIT()
8421 take a struct _reent * instead of a FILE *.
8422 * libc/stdio/fclose.c (_fclose_r): Ditto.
8423 * libc/stdio/feof.c (feof): Ditto.
8424 * libc/stdio/ferror.c (ferror): Ditto.
8425 * libc/stdio/fflush.c (fflush): Ditto.
8426 * libc/stdio/fgetc.c (fgetc): Ditto.
8427 * libc/stdio/fgets.c (fgets): Ditto.
8428 * libc/stdio/fileno.c (fileno): Ditto.
8429 * libc/stdio/fputc.c (fputc): Ditto.
8430 * libc/stdio/fputs.c (fputs): Ditto.
8431 * libc/stdio/fread.c (fread): Ditto.
8432 * libc/stdio/freopen.c (_freopen_r): Ditto.
8433 * libc/stdio/fseek.c (_fseek_r): Ditto.
8434 * libc/stdio/ftell.c (_ftell_r): Ditto.
8435 * libc/stdio/fwrite.c (fwrite): Ditto.
8436 * libc/stdio/getc.c (getc): Ditto.
8437 * libc/stdio/getdelim.c (__getdelim): Ditto.
8438 * libc/stdio/putc.c (putc): Ditto.
8439 * libc/stdio/setvbuf.c (setvbuf): Ditto.
8440 * libc/stdio/ungetc.c (_ungetc_r): Ditto.
8441 * libc/stdio/vfprintf.c (_VFPRINTF_R): Ditto.
8442 * libc/stdio64/freopen64.c (_freopen64_r): Ditto.
8443 * libc/stdio64/fseeko64.c (_fseeko64_r): Ditto.
8444 * libc/stdio64/ftello64.c (_ftello64_r): Ditto.
8445 * libc/stdio/local.h (CHECK_INIT): Argument is now a struct
8446 _reent * instead of a FILE * and so replace incorrect use of
8447 _REENT with argument.
8448 * libc/sys/arm/syscalls.c (CHECK_INIT): Ditto.
8449 * libc/stdio/getchar.c (getchar): _REENT_SMALL_CHECK_INIT() and
8450 CHECK_INIT() take a struct _reent * instead of a FILE *.
8451 * libc/stdio/iprintf.c (iprintf, _iprintf_r): Ditto.
8452 * libc/stdio/iscanf.c (iscanf, _iscanf_r): Ditto.
8453 * libc/stdio/perror.c (perror): Ditto.
8454 * libc/stdio/printf.c (printf, _printf_r): Ditto.
8455 * libc/stdio/putchar.c (putchar): Ditto.
8456 * libc/stdio/puts.c (puts): Ditto.
8457 * libc/stdio/refill.c (__srefill): Ditto.
8458 * libc/stdio/scanf.c (scanf, _scanf_r): Ditto.
8459 * libc/stdio/vfscanf.c (VFSCANF, _VFSCANF_R): Ditto.
8460 * libc/stdio/viprintf.c (viprintf, _viprintf_r): Ditto.
8461 * libc/stdio/viscanf.c (viscanf, _viscanf_r): Ditto.
8462 * libc/stdio/vprintf.c (vprintf, _vprintf_r): Ditto.
8463 * libc/stdio/vscanf.c (vscanf, _vscanf_r): Ditto.
8464 * libc/stdio/wbuf.c (__swbuf): Ditto.
8465 * libc/stdio/wsetup.c (__swsetup): Ditto.
8466 * libc/stdlib/mallocr.c (malloc_stats): Ditto.
8467 * libc/stdlib/mstats.c (_mstats_r): Ditto.
8468 * libc/include/sys/reent.h (_REENT_SMALL_CHECK_INIT): Ditto.
8469 * libc/machine/powerpc/vfscanf.c (vfscanf): Ditto.
8470 * libc/stdio/fgetpos.c (_fgetpos_r): Removed unnecessary calls
8471 to _flockfile and _funlockfile; rely on locking in _ftell_r.
8472 * libc/stdio64/fgetpos64.c (_fgetpos64_r): Ditto (_ftello64_r).
8473 * libc/machine/powerpc/vfprintf.c (__sbprintf): Removed unnecessary
8474 initialision of _data field in FILE structure.
8475 * libc/machine/powerpc/vfprintf.c (VFPRINTF): Added CHECK_INIT() call.
8476
3d915670
JJ
84772005-02-07 Jeff Johnston <jjohnstn@redhat.com>
8478
8479 * libc/stdio/findfp.c (__sinit): Protect with new lock.
8480 (__sinit_lock): New lock.
8481 (__sinit_lock_acquire, __sinit_lock_release): New functions.
8482 * libc/stdio/local.h: Add reference to new __sinit locking
8483 functions.
8484
b59cab1e
JJ
84852005-02-07 Jeff Johnston <jjohnstn@redhat.com>
8486
8487 * libc/include/math.h (isfinite, isnormal, isunordered): Change
8488 input variable names to avoid mixups with nesting macros.
8489
1815fdea
JJ
84902005-01-27 Hans-Peter Nilsson <hp@axis.com>
8491
8492 * configure.host: Add support for cris-*-* and crisv32-*-*.
8493 * libc/include/machine/ieeefp.h: Ditto.
8494 * libc/include/machine/setjmp.h: Ditto.
8495 * libc/machine/cris/configure.in, libc/machine/cris/Makefile.am,
8496 libc/machine/cris/libcdtor.c, libc/machine/cris/setjmp.c,
8497 libc/machine/cris/memmove.c, libc/machine/cris/memcpy.c,
8498 libc/machine/cris/memset.c, libc/machine/cris/include/pthread.h,
8499 libc/machine/cris/sys/signal.h, libc/machine/cris/sys/fcntl.h,
8500 libc/machine/cris/sys/errno.h, libc/machine/cris/aclocal.m4,
8501 libc/machine/cris/configure, libc/machine/cris/Makefile.in: New
8502 files.
8503
f7d4d41a
JJ
85042005-01-27 Hans-Peter Nilsson <hp@axis.com>
8505
8506 * testsuite/newlib.string/memmove1.c: New test.
8507
1319dec6
JJ
85082005-01-27 Hans-Peter Nilsson <hp@axis.com>
8509
8510 * testsuite/include/check.h: Include stdlib.h.
8511
b45e65b0
JJ
85122005-01-27 Hans-Peter Nilsson <hp@axis.com>
8513
8514 * Makefile.am (stmp-targ-include): Support include header files
8515 from machine directories.
e9743354 8516 (install-data-local): Ditto.
b45e65b0
JJ
8517 * Makefile.in: Regenerate.
8518
dbfa92dd
JJ
85192005-01-24 Jeff Johnston <jjohnstn@redhat.com>
8520
8521 * libc/include/string.h: Remove Linux-specific declaration of
8522 strsignal and add #include <sys/string.h>.
8523 * libc/include/sys/string.h: New file.
8524 * libc/include/sys/linux/sys/string.h: New file with strsignal
8525 declaration deleted above.
8526
6cb0c055
JJ
85272005-01-20 Jeff Johnston <jjohnstn@redhat.com>
8528
8529 * libc/time/strftime.c (strftime): Change %r and %x to be compliant
8530 to POSIX standard for "C" locale. Allow %E and %O modifiers
8531 to be ignored as long as they precede valid specifiers according
8532 to POSIX.
8533
52429807
JJ
85342005-01-19 Shaun Jackman <sjackman@gmail.com>
8535
8536 * libc/stdlib/setenv_r.c (_setenv_r): Call tzset() if the TZ
8537 environment variable is set.
8538
f693170a
JJ
85392005-01-19 Shaun Jackman <sjackman@gmail.com>
8540
ba3ccd63 8541 * tzset_r.c (_tzname): Add a comma.
f693170a 8542
464d01bf
AH
85432005-01-18 Aldy Hernandez <aldyh@redhat.com>
8544
8545 * libc/machine/powerpc/vfprintf.c: Use _REENT when calling
8546 _VFPRINTF_R.
8547
f7a74742 85482005-01-07 Paul Brook <paul@codesourcery.com>
17c0c97d 8549
f7a74742
JJ
8550 * configure.in: Add test for .init_array.
8551 * configure: Regenerate.
8552 * newlib.hin: Add HAVE_INITFINI_ARRAY.
8553 * libc/misc/Makefile.am: Add init.c
8554 * libc/misc/Makefile.in: Regenerate.
8555 * libc/misc/init.c: New file.
8556 * libc/sys/arm/crt0.S: Call __libc_{init,fini}_array instead of
8557 _init/_fini if they exist.
17c0c97d 8558
8fa6cb9a
JJ
85592005-01-06 Jeff Johnston <jjohnstn@redhat.com>
8560
8561 * libc/stdlib/strtod.c (_strtod_r): Add NaN support.
8562 * (strtof): Ditto.
8563 * libc/stdio/vfscanf.c (__svfscanf_r): Ditto.
8564 * Makefile.am (MATHOBJS_IN_LIBC): Add s_nan and sf_nan
8565 functions for use by strtod and strtof.
8566 * Makefile.in: Regenerated.
17c0c97d 8567
034a3909 85682005-01-06 Hans-Peter Nilsson <hp@axis.com>
17c0c97d 8569
034a3909
JJ
8570 * libc/stdio/ftell.c (ftell_r): Add parenthesis for __SWR
8571 bit-test in combination with NULL test.
17c0c97d 8572
9918ea2d 85732005-01-06 Hans-Peter Nilsson <hp@axis.com>
17c0c97d 8574
ba3ccd63 8575 * README: Fix typo of LGPL. Change "license" to "copyright".
17c0c97d 8576
5cc3f592
JJ
85772004-12-17 Jeff Johnston <jjohnstn@redhat.com>
8578
8579 * NEWS: Update with 1.13.0 info.
8580 * README: Ditto.
8581 * acinclude.m4: Change version number to 1.13.0.
8582 * aclocal.m4: Regenerated.
8583 * configure: Ditto.
8584 * doc/aclocal.m4: Ditto.
8585 * doc/configure: Ditto.
8586 * libc/*/aclocal.m4: Ditto.
8587 * libc/*/configure: Ditto.
8588 * libc/libc.texinfo: Ditto.
8589 * libm/*/aclocal.m4: Ditto.
8590 * libm/*/configure: Ditto.
8591 * libm/libm.texinfo: Ditto.
8592 * libc/sys/linux/shared.ld: Add VERS_1.13.
8593
d8ae996c
JJ
85942004-12-17 Christian Groessler <chris@groessler.org>
8595
8596 * libc/machine/z8k/memcmp.S: New file.
8597 * libc/machine/z8k/memcpy.S: Ditto.
8598 * libc/machine/z8k/memmove.S: Ditto.
8599 * libc/machine/z8k/memset.S: Ditto.
8600 * libc/machine/z8k/Makefile.am: Add new files.
8601 * libc/machine/z8k/Makefile.in: Regenerated.
8602 * libc/machine/z8k/setjmp.S: Fix indirect register usage in Z8002
8603 part. Implement Z8002 stdcall version.
8604
82673116
JJ
86052004-12-13 Jeff Johnston <jjohnstn@redhat.com>
8606
8607 * libc/stdio/fread.c (fread): For unbuffered I/O, attempt
8608 a low-level read if we don't get the full amount of bytes so
8609 EOF or error flags will be set.
8610
0082d4cf
JJ
86112004-12-09 Alex Mogilnikov <alx@intellectronika.ru>
8612
8613 * libc/time/tzset_r (_tzset_r): Properly skip over
8614 '/' when it is detected.
8615
3b54b74f
JJ
86162004-12-08 Alex Mogilnikov <alx@intellectronika.ru>
8617
8618 * libc/time/tzset_r (_tzset_r): Fix loop.
8619
4b30e154
JJ
86202004-12-08 Alex Mogilnikov <alx@intellectronika.ru>
8621
8622 * libc/time/mktm_r (_mktm_r): Fix overflow calculation for
8623 m_day.
8624 (__tzcalc_limits): Fix reference to month array to be zero-based.
8625
465eab2e
JJ
86262004-12-07 Jeff Johnston <jjohnstn@redhat.com>
8627
8628 * libc/sys/linux/sys/unistd.h: Add prototypes for ftruncate, truncate,
8629 and usleep.
8630
a2b1a849
JJ
86312004-12-03 Jeff Johnston <jjohnstn@redhat.com>
8632
8633 * Makefile.am (libc_la_LDFLAGS): Add -lgcc to handle any
8634 libgcc dependencies.
8635 (libm_la_LDFLAGS): Ditto.
8636 * Makefile.in: Regenerated.
8637
c80a1731
JJ
86382004-12-03 Shaun Jackman <sjackman@gmail.com>
8639
8640 * libc/sys/linux/linuxthreads/Makefile.am (install-data-local): Fix
8641 our link to use readlink so as to preserve any relative link created
8642 by install-toollibLIBRARIES.
8643 * libc/sys/linux/linuxthreads/Makefile.in: Regenerated.
8644
70e9da42
JJ
86452004-12-02 Shaun Jackman <sjackman@gmail.com>
8646
8647 * libc/sys/linux/stdlib/glob.c: Include <sys/types.h> which defines
8648 time_t before including sys/stat.h, which uses it.
8649 * libc/sys/linux/sys/stat.h: Include <sys/types.h> and
8650 <linux/time.h> just prior to definition of __KERNEL__ so as to
8651 allow building on Debian Linux where otherwise, mktime would
8652 be redefined.
8653
a330d85a
JJ
86542004-11-26 Paul Brook <paul@codesourcery.com>
8655
8656 * libc/sys/arm/crt0.S (_start): Add .cantunwind annotation.
17c0c97d 8657
c41a1cb7
JJ
86582004-11-24 Jeff Johnston <jjohnstn@redhat.com>
8659
8660 * libc/include/stdlib.h (putenv, _putenv_r): Change to remove
9aa189be 8661 const for value string parameter to match Single Unix and glibc.
c41a1cb7
JJ
8662 * libc/stdlib/putenv.c: Ditto.
8663 * libc/stdlib/putenv_r.c: Ditto.
8664
16ac96ee
JJ
86652004-11-24 Jeff Johnston <jjohnstn@redhat.com>
8666
8667 * libc/stdio/Makefile.am: Fix missing vfscanf.
8668 * libc/stdio/Makefile.in: Regenerated.
17c0c97d 8669
3bf09147 86702004-11-23 Jeff Johnston <jjohnstn@redhat.com>
17c0c97d 8671
3bf09147
JJ
8672 * libc/include/stdio.h: Add new iprintf and iscanf variants. Also
8673 do some reordering.
8674 * libc/machine/powerpc/vfscanf.c: Remove __sccl function.
8675 * libc/stdio/Makefile.am: Add support for new iprintf and iscanf
8676 family functions.
8677 * libc/stdio/Makefile.in: Regenerated.
8678 * libc/stdio/fiprintf.c: Remove doc to siprintf.c.
8679 * libc/stdio/iprintf.c: Ditto.
8680 * libc/stdio/local.h (__svfiscanf_r): New prototype.
8681 * libc/stdio/siprintf.c: Add docs for various iprintf family functions.
8682 * libc/stdio/sniprintf.c: Move docs to siprintf.c.
8683 * libc/stdio/stdio.tex: Add new functions.
8684 * libc/stdio/vfscanf.c: Split out __sccl function to separate
8685 file and add special name defines so this file can be used
8686 to build vfiscanf.o.
8687 * libc/stdio/asiprintf.c: New file.
8688 * libc/stdio/fiscanf.c: Ditto.
8689 * libc/stdio/iscanf.c: Ditto.
8690 * libc/stdio/sccl.c: Ditto.
8691 * libc/stdio/siscanf.c: Ditto.
8692 * libc/stdio/vasiprintf.c: Ditto.
8693 * libc/stdio/viprintf.c: Ditto.
8694 * libc/stdio/viscanf.c: Ditto.
8695 * libc/stdio/vsiprintf.c: Ditto.
8696 * libc/stdio/vsiscanf.c: Ditto.
8697 * libc/stdio/vsniprintf.c: Ditto.
8698
0f0fcb04 86992004-11-19 Shaun Jackman <sjackman@gmail.com>
17c0c97d 8700
ba3ccd63
EB
8701 * libc/include/stdio.h: Add sniprintf.
8702 * libc/stdio/Makefile.am: Add sniprintf.c.
8703 * libc/stdio/Makefile.in: Regenerated.
8704 * libc/stdio/sniprintf.c: New file.
8705 * libc/stdio/stdio.tex: Add sniprintf.
17c0c97d 8706
1f8f7e2d
CF
87072004-11-17 Christopher Faylor <cgf@timesys.com>
8708
8709 * libc/stdio/refill.c (__srefill): Try again after EOF on Cygwin. Clear
8710 EOF flag if successful.
8711
b08d08c7
CF
87122004-10-28 Christopher Faylor <cgf@timesys.com>
8713
8714 * libc/include/sys/signal.h: Move <signal.h> include to bottom of file
334ba104 8715 so that all relevant definitions have been performed for use in the
b08d08c7
CF
8716 include.
8717
65b1964f
JJ
87182004-10-26 Jason Tishler <jason@tishler.net>
8719
8720 * libc/stdio/fread.c (fread): Fix return value for unbuffered
8721 fread.
8722
6382b7e3 87232004-10-25 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
06b5ef6e
JJ
8724
8725 * libc/include/machine/setjmp.h: Add AVR support.
8726 * libc/sys/rtems/crt0.S [__AVR__]: Add __stack.
8727
73131c2d 87282004-10-08 Jeff Johnston <jjohnstn@redhat.com>
17c0c97d 8729
ba3ccd63
EB
8730 * libc/include/sys/signal.h: If <signal.h> didn't include
8731 this header file, include <signal.h> to account for
8732 applications that take advantage that the two header
8733 files are the same in glibc.
17c0c97d 8734
1185687a
JJ
87352004-10-05 Tomer Levi <Tomer.Levi@nsc.com>
8736
ba3ccd63
EB
8737 * configure.host: Add support for crx.
8738 * libc/include/machine/ieeefp.h: Ditto.
8739 * libc/include/machine/setjmp.h: Ditto.
8740 * libc/machine/crx/Makefile.am: New file.
8741 * libc/machine/crx/configure.in: Ditto.
8742 * libc/machine/crx/setjmp.S: Ditto.
8743 * libc/machine/crx/getenv.c: Ditto.
8744 * libc/machine/crx/aclocal.m4: Generate.
8745 * libc/machine/crx/configure: Ditto.
8746 * libc/machine/crx/Makefile.in: Ditto.
8747 * libc/machine/crx/sys/asm.h: New file.
8748 * libc/machine/crx/sys/libh.h: Ditto.
8749 * libc/machine/crx/sys/syscall.h: Ditto.
1185687a 8750
423152ed
JJ
87512004-10-05 Jeff Johnston <jjohnstn@redhat.com>
8752
8753 * Makefile.am (stmp-targ-include): Support sys header files
8754 from machine directories.
8755 * Makefile.in: Regenerated.
8756
3ea9de76
JJ
87572004-10-04 Jeff Johnston <jjohnstn@redhat.com>
8758
8759 * libc/stdio/vfscanf.c (__svfscanf_r): For int conversions,
8760 count skipped zero characters as part of the nread count for %n.
8761 * libc/machine/powerpc/vfscanf.c: Ditto.
8762
2a6e1223
JJ
87632004-09-24 Jeff Johnston <jjohnstn@redhat.com>
8764
8765 * libc/stdio/local.h: Include <stdlib.h>.
8766
d163f2fc
CV
87672004-09-24 Corinna Vinschen <corinna@vinschen.de>
8768
8769 * libc/stdio/fread.c (fread): Include <malloc.h>.
8770
602de582
JJ
87712004-09-22 Jeff Johnston <jjohnstn@redhat.com>
8772
8773 * libc/stdio/fread.c (fread): For non-space-optimized case,
8774 add special code for unbuffered files to use user buffer and
8775 only require one low-level system read.
8776
32e73f4d
ILT
87772004-09-21 Ian Lance Taylor <ian@wasabisystems.com>
8778
8779 * libc/machine/xscale/setjmp.S: New file, copied from
8780 libc/machine/arm/setjmp.S.
8781 * libc/machine/xscale/Makefile.am (lib_a_SOURCES): Add setjmp.S.
8782 * libc/machine/xscale/Makefile.in: Regenerate.
8783
ed6859b8
JJ
87842004-09-16 Antony King <antony.king@st.com>
8785
8786 * libc/include/sys/lock.h: Replaced empty {} with (0) to conform
8787 with locking API.
17c0c97d 8788 * libc/include/sys/stdio.h: (_flockfile)[!_SINGLE_THREAD]: Add
ed6859b8
JJ
8789 check for__SSTR in _flags and if set, skip lock request.
8790 (_funlockfile)[!SINGLE_THREAD]: Ditto.
8791 * libc/stdio/local.h (CHECK_INIT): Added check that _REENT is
8792 not NULL.
8793 * libc/stdio/siprintf.c (siprintf, _siprintf_r): Added missing
8794 initialisation of _file to -1 in local FILE.
8795 * libc/stdio/snprintf.c (snprintf, _snprintf_r): Ditto.
8796 * libc/stdio/sscanf.c (sscanf, _sscanf_r): Ditto.
8797 * libc/stdio/vsnprintf.c (vsnprintf, _vsnprintf_r): Ditto.
8798 * libc/stdio/vsscanf.c (_vsscanf_r): Ditto.
8799 * libc/stdio/sscanf.c (sscanf, _sscanf_r): Added __SSTR flag to
8800 _flags in local FILE to prevent locking.
8801 * libc/stdio/vsscanf.c (_vsscanf_r): Ditto.
8802
7a0f6966
JJ
88032004-09-16 Antony King <antony.king@st.com>
8804
8805 * libc/stdio/fwalk.c (_fwalk): Remove check for _GLOBAL_REENT
8806 and only walk the reentrancy parameter.
8807 (_fwalk_reent): Ditto.
8808 * libc/stdlib/exit.c: Remove out of date _REENT_ONLY check.
8809
c77672c0
JJ
88102004-09-16 Antony King <antony.king@st.com>
8811
8812 * libc/stdio64/freopen64.c: Remove casting of fp lock to
8813 _LOCK_RECURSIVE_T.
8814
5c44c2e5
JJ
88152004-09-16 Antony King <antony.king@st.com>
8816
8817 * libc/time/tzlock.c: Add default stubs that use generic
8818 locking code.
8819
14613e5e
JJ
88202004-09-16 Antony King <antony.king@st.com>
8821
8822 * libc/ctype/ctype.tex: Added missing documentation.
8823 * libc/stdio/stdio.tex Ditto.
8824 * libc/stdlib/stdlib.tex Ditto.
8825 * libc/string/strings.tex Ditto.
8826 * libc/time/time.tex: Ditto.
8827 * libc/stdio/setbuffer.c: Removed setlinebuf documentation.
8828
181cb051
JJ
88292004-09-15 Corinna Vinschen <vinschen@redhat.com>
8830
8831 * libc/reent/impure.c (reent_data): Define as alias to impure_data
8832 when building for Cygwin.
8833 * libc/include/sys/reent.h (_GLOBAL_REENT): Revert definition to
8834 _global_impure_ptr.
8835
51d4a7ea
JJ
88362004-09-15 Jeff Johnston <jjohnstn@redhat.com>
8837
8838 * configure.host: Reverting 2004-09-14 change as fix has occurred on
8839 Cygwin side.
8840 * configure.in: Ditto.
8841 * libc/configure.in: Ditto.
8842 * libc/sys/configure.in: Ditto.
8843 * configure: Ditto.
8844 * libc/configure: Ditto.
8845 * libc/sys/configure: Ditto.
8846 * libc/include/sys/reent.h: Ditto.
8847 * libc/stdlib/__atexit.c: Ditto.
8848 * libc/stdlib/__call_atexit.c: Ditto.
8849 * libc/stdlib/cxa_atexit.c: Ditto.
8850 * libc/stdlib/cxa_finalize.c: Ditto.
8851 * libc/sys/cygwin/Makefile.am: Removed again.
8852 * libc/sys/cygwin/Makefile.in: Ditto.
8853 * libc/sys/cygwin/aclocal.m4: Ditto.
8854 * libc/sys/cygwin/configure: Ditto.
8855 * libc/sys/cygwin/configure.in: Ditto.
8856 * libc/sys/cygwin/dummy.c: Ditto.
8857 * libc/sys/cygwin/sys/reent.h: Ditto.
8858
98650d2f
JJ
88592004-09-14 Jeff Johnston <jjohnstn@redhat.com>
8860
8861 * configure.host: Add Cygwin sys directory.
8862 * configure.in: Do not set CRT0 for cygwin.
8863 * libc/configure.in: Ditto.
8864 * libc/sys/configure.in: Ditto.
8865 * configure: Regenerated.
8866 * libc/configure: Ditto.
8867 * libc/sys/configure: Ditto.
8868 * libc/include/sys/reent.h: Add __REENT_HAS_CXA_SUPPORT flag.
8869 * libc/stdlib/__atexit.c: Keep cxa support protected by new
8870 __REENT_HAS_CXA_SUPPORT flag.
8871 * libc/stdlib/__call_atexit.c: Ditto.
8872 * libc/stdlib/cxa_atexit.c: Ditto.
8873 * libc/stdlib/cxa_finalize.c: Ditto.
8874 * libc/sys/cygwin/Makefile.am: New file.
8875 * libc/sys/cygwin/Makefile.in: Ditto.
8876 * libc/sys/cygwin/aclocal.m4: Ditto.
8877 * libc/sys/cygwin/configure: Ditto.
8878 * libc/sys/cygwin/configure.in: Ditto.
8879 * libc/sys/cygwin/dummy.c: Ditto.
8880 * libc/sys/cygwin/sys/reent.h: Ditto. This file is stabilized
8881 version of reent.h.
8882
d4c8e53b
JJ
88832004-09-13 Artem B. Bityuckiy <dedekind@oktetlabs.ru>
8884
8885 * libc/iconv/iconv.tex: Updated with new content.
8886 * libc/iconv/lib/iconvnls.c: Reference ICONV_DEFAULT_NLSPATH
8887 instead of NLS_DEFAULT_NLSPATH.
8888 * libc/iconv/lib/iconvnls.h: Fix typo.
8889 * libc/include/sys/iconvnls.h: New file.
8890
0c8593cf
JJ
88912004-09-09 Paul Brook <paul@codesourcery.com>
8892
8893 * libc/include/sys/reent.h (struct _on_exit_args): Add _dso_handle
8894 and _is_cxa.
8895 (struct _atexit): Add _next when _REENT_SMALL.
8896 (struct _reent): Add _atexit0 when _REENT_SMALL.
8897 (_REENT_INIT_PTR): Adjust.
8898 * libc/stdlib/Makefile.am (GENERAL_SOURCES): Add __atexit.c and
8899 __call_exit.c.
8900 (EXTENDED_SOURCES): Add cxa_atexit.c and cxa_finalize.c.
8901 * libc/stdlib/Makefile.in: Regenerate.
8902 * libc/stdlib/__atexit.c: New file.
8903 * libc/stdlib/__call_atexit.c: New file.
8904 * libc/stdlib/atexit.h: Remove old definitions. Add new.
8905 * libc/stdlib/atexit.c (atexit): Use __register_exitproc.
8906 * libc/stdlib/cxa_atexit.c: New file.
8907 * libc/stdlib/cxa_finalize.c: New file.
8908 * libc/stdlib/exit.c (exit): Use __call_exitprocs.
8909 * libc/stdlib/on_exit.c (on_exit): Use __register_exitproc.
8910 2004-09-09 Jeff Johnston <jjohnstn@redhat.com>
8911 * libc/reent/reent.c [_REENT_SMALL]: Fix reference to
8912 _on_exit_args_ptr.
8913
c6ed5a85
JJ
89142004-08-23 Jeff Johnston <jjohnstn@redhat.com>
8915
8916 * libc/include/sys/unistd.h (getpass): Change prototype to use
8917 const instead of __const.
8918
721a934c
JJ
89192004-08-16 Nathan Sidwell <nathan@codesourcery.com>
8920
8921 * libc/stdio/vfscanf.c (_NO_LONGLONG): Move out of FLOATING_POINT
8922 #if.
8923
4e53fc28
JJ
89242004-08-12 Jeff Johnston <jjohnstn@redhat.com>
8925
8926 * libc/sys/linux/sys/types.h (u64): New typedef to allow building
8927 on linux systems with glibc 2.3.3 installed.
8928 * libc/sys/linux/dl/dl-runtime.c: Fix prototypes for fixup and
8929 profile_fixup so newlib can build on fc3 system.
17c0c97d 8930
82045f12
AO
89312004-07-30 Alexandre Oliva <aoliva@redhat.com>
8932
8933 Introduce SH2a support.
8934 2004-03-16 Corinna Vinschen <vinschen@redhat.com>
8935 * libc/include/machine/ieeefp.h: Define _DOUBLE_IS_32BITS for
8936 __SH2A_SINGLE_ONLY__, too.
8937 * libc/machine/sh/asm.h: Define DELAYED_BRANCHES for __SH2A__, too.
8938 2004-02-24 Corinna Vinschen <vinschen@redhat.com>
8939 * libc/sys/sh/crt0.S (start_l): Support sh2a-nofpu. Fix comments.
8940 2004-02-10 DJ Delorie <dj@redhat.com>
8941 * libc/sys/sh/crt0.S (start_l): Support sh2a.
8942
ad6b1d79
JJ
89432004-07-29 Jeff Johnston <jjohnstn@redhat.com>
8944
8945 * libc/time/strptime.c: Correct full-name of "March" typo.
8946
63b9dcc4
JJ
89472004-07-16 Anil Paranjpe <anilp1@kpitcummins.com>
8948
17c0c97d 8949 * configure.host (h8300*-*-*): Default long long printing support.
63b9dcc4 8950
dbfd3394
JJ
89512004-07-16 Jeff Johnston <jjohnstn@redhat.com>
8952
8953 * libc/stdio/fvwrite.c (_sfvwrite): For asprintf family
8954 calls, if realloc fails, free up buffer as it is no longer
8955 used.
8956
6edb3da9
JJ
89572004-07-07 Artem B. Bityuckiy <dedekind@oktetlabs.ru>
8958
8959 * libc/iconv/iconv.tex: Updated to represent recent changes.
8960 * libc/iconv/lib/iconv.c: Documentation updated.
8961
578a3560
NC
89622004-07-07 Nick Clifton <nickc@redhat.com>
8963
8964 * configure.host (newlib_cflags): Define PREFER_SIZE_OVER_SPEED
8965 for xStormy16.
8966
2bc257e3
JJ
89672004-07-06 Chris Demetriou <cgd@broadcom.com>
8968
8969 * configure.host (mips*-*-elf*): Default long long printing
8970 support.
8971
75e7ffaa
JJ
89722004-07-05 Jeff Johnston <jjohnstn@redhat.com>
8973
8974 * libc/Makefile.am (libc.dvi): Add target and specify
8975 same dependencies as libc.info.
8976 * libc/Makefile.in: Regenerated.
8977 * libm/Makefile.am (libm.dvi): Add target and specify
8978 same dependencies as libm.info.
8979 * libm/Makefile.in: Regenerated.
8980
76ce12c3
JJ
89812004-06-29 Artem B. Bityuckiy <dedekind@oktetlabs.ru>
8982
8983 * acinclude.m4: Move --enable-newlib-iconv option back here.
8984 * configure.in: Remove --enable-newlib-iconv option. Don't
8985 tie iconv support to --enable-newlib-mb.
8986 * aclocal.m4: Regenerated.
8987 * configure: Ditto.
8988 * doc/aclocal.m4, doc/configure: Ditto.
8989 * iconvdata/aclocal.m4, iconvdata/configure: Ditto.
8990 * libm/*/aclocal.m4: Ditto.
8991 * libm/*/configure: Ditto.
8992 * libc/*/aclocal.m4: Ditto.
8993 * libc/*/configure: Ditto.
8994
660dade3
JJ
89952004-06-25 Artem B. Bityuckiy <dedekind@oktetlabs.ru>
8996
8997 * acinclude.m4: Move iconv options into configure.in.
8998 * aclocal.m4: Regenerated.
8999 * configure: Ditto.
9000 * configure.in: Add iconv options.
9001 * newlib.hin: Add new iconv encodings and remove deleted ones.
9002 * doc/aclocal.m4: Regenerated.
9003 * doc/configure: Ditto.
9004 * iconvdata/aclocal.m4: Ditto.
9005 * iconvdata/configure: Ditto.
9006 * libc/iconv: Design change. New size-optimized ccs format.
9007 * libc/iconv/AUTHORS: Removed.
9008 * libc/iconv/COPYING: Ditto.
9009 * libc/iconv/README.ORIGINAL: Ditto.
9010 * libc/iconv/README.TODO: Ditto.
9011 * libc/iconv/charset.aliases: Ditto.
9012 * libc/iconv/encoding.aliases: New file.
9013 * libc/iconv/Makefile.am: Updated.
9014 * libc/iconv/Makefile.in: Regenerated.
9015 * libc/iconv/iconv.tex: Updated.
9016 * libc/iconv/ccs/Makefile.am: Ditto.
9017 * libc/iconv/ccs/Makefile.in: Regenerated.
9018 * libc/iconv/ccs/big5.c: Updated.
9019 * libc/iconv/ccs/cns11643_plane1.c: Ditto.
9020 * libc/iconv/ccs/cns11643_plane14.c: Ditto.
9021 * libc/iconv/ccs/cns11643_plane2.c: Ditto.
9022 * libc/iconv/ccs/cp775.c: Ditto.
9023 * libc/iconv/ccs/cp850.c: Ditto.
9024 * libc/iconv/ccs/cp852.c: Ditto.
9025 * libc/iconv/ccs/cp855.c: Ditto.
9026 * libc/iconv/ccs/cp866.c: Ditto.
9027 * libc/iconv/ccs/iso_8859_1.c: Ditto.
9028 * libc/iconv/ccs/README.CCS.SOURCES: Removed.
9029 * libc/iconv/ccs/gb_2312_80.c: Ditto.
9030 * libc/iconv/ccs/iconv_mktbl: Ditto.
9031 * libc/iconv/ccs/jis_x0201.c: Ditto.
9032 * libc/iconv/ccs/jis_x0208_1983.c: Ditto.
9033 * libc/iconv/ccs/shift_jis.c: Ditto.
9034 * libc/iconv/ccs/us_ascii.c: Ditto.
9035 * libc/iconv/ccs/ccs.h: New file.
9036 * libc/iconv/ccs/ccsbi.c: Ditto.
9037 * libc/iconv/ccs/ccsbi.h: Ditto.
9038 * libc/iconv/ccs/ccsnames.h: Ditto.
9039 * libc/iconv/ccs/iso_8859_10.c: Ditto.
9040 * libc/iconv/ccs/iso_8859_11.c: Ditto.
9041 * libc/iconv/ccs/iso_8859_13.c: Ditto.
9042 * libc/iconv/ccs/iso_8859_14.c: Ditto.
9043 * libc/iconv/ccs/iso_8859_3.c: Ditto.
9044 * libc/iconv/ccs/iso_8859_6.c: Ditto.
9045 * libc/iconv/ccs/iso_8859_7.c: Ditto.
9046 * libc/iconv/ccs/iso_8859_8.c: Ditto.
9047 * libc/iconv/ccs/iso_8859_9.c: Ditto.
9048 * libc/iconv/ccs/iso_ir_111.c: Ditto.
9049 * libc/iconv/ccs/jis_x0201_1976.c: Ditto.
9050 * libc/iconv/ccs/jis_x0208_1990.c: Ditto.
9051 * libc/iconv/ccs/koi8_ru.c: Ditto.
9052 * libc/iconv/ccs/koi8_uni.c: Ditto.
9053 * libc/iconv/ccs/mktbl.pl: Ditto.
9054 * libc/iconv/ccs/win_1250.c: Ditto.
9055 * libc/iconv/ccs/win_1251.c: Ditto.
9056 * libc/iconv/ccs/win_1252.c: Ditto.
9057 * libc/iconv/ccs/win_1253.c: Ditto.
9058 * libc/iconv/ccs/win_1254.c: Ditto.
9059 * libc/iconv/ccs/win_1255.c: Ditto.
9060 * libc/iconv/ccs/win_1256.c: Ditto.
9061 * libc/iconv/ccs/win_1257.c: Ditto.
9062 * libc/iconv/ccs/win_1258.c: Ditto.
d68d3538
JJ
9063 * libc/iconv/ccs/iso_8859_15.c: Updated.
9064 * libc/iconv/ccs/iso_8859_2.c: Ditto.
9065 * libc/iconv/ccs/iso_8859_4.c: Ditto.
9066 * libc/iconv/ccs/iso_8859_5.c: Ditto.
9067 * libc/iconv/ccs/jis_x0212_1990.c: Ditto.
9068 * libc/iconv/ccs/koi8_r.c: Ditto.
9069 * libc/iconv/ccs/koi8_u.c: Ditto.
9070 * libc/iconv/ccs/ksx1001.c: Ditto.
660dade3
JJ
9071 * libc/iconv/ccs/binary/gb_2312_80.cct: Removed.
9072 * libc/iconv/ccs/binary/jis_x0201.cct: Ditto.
9073 * libc/iconv/ccs/binary/shift_jis.cct: Ditto.
9074 * libc/iconv/ccs/binary/us_ascii.cct: Ditto.
9075 * libc/iconv/ccs/binary/jis_x0208_1983.cct: Ditto.
9076 * libc/iconv/ccs/binary/Makefile.am: Updated.
9077 * libc/iconv/ccs/binary/Makefile.in: Regenerated.
9078 * libc/iconv/ccs/binary/big5.cct: Updated.
9079 * libc/iconv/ccs/binary/cns11643_plane1.cct: Ditto.
9080 * libc/iconv/ccs/binary/cns11643_plane14.cct: Ditto.
9081 * libc/iconv/ccs/binary/cns11643_plane2.cct: Ditto.
9082 * libc/iconv/ccs/binary/cp775.cct: Updated.: Ditto.
9083 * libc/iconv/ccs/binary/cp850.cct: Ditto.: Ditto.
9084 * libc/iconv/ccs/binary/cp852.cct: Ditto.: Ditto.
9085 * libc/iconv/ccs/binary/cp855.cct: Ditto.: Ditto.
9086 * libc/iconv/ccs/binary/cp866.cct: Ditto.: Ditto.
9087 * libc/iconv/ccs/binary/iso_8859_1.cct: Ditto.
9088 * libc/iconv/ccs/binary/iso_8859_15.cct: Ditto.
9089 * libc/iconv/ccs/binary/iso_8859_4.cct: Ditto.
9090 * libc/iconv/ccs/binary/iso_8859_5.cct: Ditto.
9091 * libc/iconv/ccs/binary/iso_8859_2.cct: Ditto.
9092 * libc/iconv/ccs/binary/jis_x0212_1990.cct: Ditto.
9093 * libc/iconv/ccs/binary/koi8_r.cct: Ditto.
9094 * libc/iconv/ccs/binary/koi8_u.cct: Ditto.
9095 * libc/iconv/ccs/binary/ksx1001.cct: Ditto.
9096 * libc/iconv/ccs/binary/iso_8859_10.cct: New file.
9097 * libc/iconv/ccs/binary/iso_8859_11.cct: Ditto.
9098 * libc/iconv/ccs/binary/iso_8859_13.cct: Ditto.
9099 * libc/iconv/ccs/binary/iso_8859_14.cct: Ditto.
9100 * libc/iconv/ccs/binary/iso_8859_3.cct: Ditto.
9101 * libc/iconv/ccs/binary/iso_8859_6.cct: Ditto.
9102 * libc/iconv/ccs/binary/iso_8859_7.cct: Ditto.
9103 * libc/iconv/ccs/binary/iso_8859_8.cct: Ditto.
9104 * libc/iconv/ccs/binary/iso_8859_9.cct: Ditto.
9105 * libc/iconv/ccs/binary/iso_ir_111.cct: Ditto.
9106 * libc/iconv/ccs/binary/jis_x0201_1976.cct: Ditto.
9107 * libc/iconv/ccs/binary/jis_x0208_1990.cct: Ditto.
9108 * libc/iconv/ccs/binary/koi8_ru.cct: Ditto.
9109 * libc/iconv/ccs/binary/koi8_uni.cct: Ditto.
9110 * libc/iconv/ccs/binary/win_1250.cct: Ditto.
9111 * libc/iconv/ccs/binary/win_1251.cct: Ditto.
9112 * libc/iconv/ccs/binary/win_1252.cct: Ditto.
9113 * libc/iconv/ccs/binary/win_1253.cct: Ditto.
9114 * libc/iconv/ccs/binary/win_1254.cct: Ditto.
9115 * libc/iconv/ccs/binary/win_1255.cct: Ditto.
9116 * libc/iconv/ccs/binary/win_1256.cct: Ditto.
9117 * libc/iconv/ccs/binary/win_1257.cct: Ditto.
9118 * libc/iconv/ccs/binary/win_1258.cct: Ditto.
9119 * libc/iconv/ces/Makefile.am: Updated.
9120 * libc/iconv/ces/Makefile.in: Regenerated.
9121 * libc/iconv/ces/ucs-2-internal.c: Updated.
9122 * libc/iconv/ces/ucs-4-internal.c: Ditto.
9123 * libc/iconv/ces/utf-16.c: Ditto.
9124 * libc/iconv/ces/utf-8.c: Ditto.
9125 * libc/iconv/ces/cesbi.c: New file.
9126 * libc/iconv/ces/cesbi.h: Ditto.
9127 * libc/iconv/ces/cesdeps.h: Ditto.
9128 * libc/iconv/ces/euc.c: Ditto.
9129 * libc/iconv/ces/mkdeps.pl: Ditto.
9130 * libc/iconv/ces/table-pcs.c: Ditto.
9131 * libc/iconv/ces/table.c: Ditto.
9132 * libc/iconv/ces/ucs-2.c: Ditto.
9133 * libc/iconv/ces/ucs-4.c: Ditto.
9134 * libc/iconv/ces/us-ascii.c: Ditto.
9135 * libc/iconv/ces/euc-jp.c: Removed.
9136 * libc/iconv/ces/euc-kr.c: Ditto.
9137 * libc/iconv/ces/euc-tw.c: Ditto.
9138 * libc/iconv/ces/gb2312.c: Ditto.
9139 * libc/iconv/ces/iso-10646-ucs-2.: Ditto.c
9140 * libc/iconv/ces/iso-10646-ucs-4.c: Ditto.
9141 * libc/iconv/lib/Makefile.am: Updated.
9142 * libc/iconv/lib/Makefile.in: Regenerated.
9143 * libc/iconv/lib/endian.h: Updated.
9144 * libc/iconv/lib/iconv.c: Ditto.
9145 * libc/iconv/lib/local.h: Ditto.
9146 * libc/iconv/lib/aliases.c: Removed.
9147 * libc/iconv/lib/bialiasesi.c: Ditto.
9148 * libc/iconv/lib/biccs.c: Ditto.
9149 * libc/iconv/lib/bices.c: Ditto.
9150 * libc/iconv/lib/ccs.c: Ditto.
9151 * libc/iconv/lib/ces.c: Ditto.
9152 * libc/iconv/lib/ces_euc.c: Ditto.
9153 * libc/iconv/lib/ces_iso2022.c: Ditto.
9154 * libc/iconv/lib/ces_table.c: Ditto.
9155 * libc/iconv/lib/converter.c: Ditto.
9156 * libc/iconv/lib/deps.h: Ditto.
d68d3538
JJ
9157 * libc/iconv/lib/loaddata.c: Ditto.
9158 * libc/iconv/lib/aliasesbi.c: New file.
660dade3
JJ
9159 * libc/iconv/lib/aliasesi.c: Ditto.
9160 * libc/iconv/lib/conv.h: Ditto.
9161 * libc/iconv/lib/encnames.h: Ditto.
9162 * libc/iconv/lib/encoding.deps: Ditto.
9163 * libc/iconv/lib/iconvnls.c: Ditto.
9164 * libc/iconv/lib/iconvnls.h: Ditto.
660dade3
JJ
9165 * libc/iconv/lib/nullconv.c: Ditto.
9166 * libc/iconv/lib/ucsconv.c: Ditto.
9167 * libc/iconv/lib/ucsconv.h: Ditto.
9168 * libc/include/iconv.h: Update copyright.
9169 * libc/*/aclocal.m4: Regenerated.
9170 * libc/*/configure: Ditto.
9171 * libm/*/aclocal.m4: Ditto.
9172 * libm/*/configure: Ditto.
9173
9a6831be
AO
91742004-06-22 Alexandre Oliva <aoliva@redhat.com>
9175
eb6a452a
AO
9176 * libc/include/machine/setjmp.h [__H8300__] (_JBTYPE): Define,
9177 instead of typedefing jmp_buf.
9178
9a6831be
AO
9179 2003-07-02 Richard Sandiford <rsandifo@redhat.com>
9180 * libc/machine/h8300/Makefile.am (lib_a_SOURCES): Add h8sx_strcpy.S.
9181 * libc/machine/h8300/defines.h (LEN): New macro.
9182 * libc/machine/h8300/memcpy.S: Add h8sx version.
9183 * libc/machine/h8300/memset.S: Likewise.
9184 * libc/machine/h8300/strcmp.S: Likewise.
9185 * libc/machine/h8300/setjmp.S: Use h8sx move instructions.
9186 * libc/machine/h8300/h8sx_strcpy.S: New file.
9187 2003-06-30 Richard Sandiford <rsandifo@redhat.com>
9188 * libc/include/machine/ieeefp.h: Extend __H8300S__ handling to
9189 __H8300SX__.
9190 * libc/include/machine/setjmp.h: Likewise.
9191 * libc/include/sys/config.h: Likewise.
9192 * libc/machine/h8300/defines.h: Likewise.
9193 * libc/machine/h8300/setjmp.S: Likewise.
9194 * libc/machine/h8300/strcmp.S: Likewise.
9195 * libc/sys/h8300hms/close.S: Likewise.
9196 * libc/sys/h8300hms/fstat.S: Likewise.
9197 * libc/sys/h8300hms/lseek.S: Likewise.
9198 * libc/sys/h8300hms/read.S: Likewise.
9199 * libc/sys/h8300hms/write.S: Likewise.
9200 * libc/sys/h8300hms/crt0.S: Likewise.
9201 * libc/machine/h8300/setarch.h: Use .h8300sx or .h8300sxn if
9202 __H8300SX__ is defined.
9203 * libc/sys/h8300hms/setarch.h: Likewise.
9204
80dba41e
JJ
92052004-06-17 Jeff Johnston <jjohnstn@redhat.com>
9206
9207 * libc/include/sys/reent.h (_GLOBAL_REENT): Back
9208 out change which set _GLOBAL_REENT to _global_impure_ptr until
9209 we understand why Cygwin breaks because of it.
9210
be910599
JJ
92112004-06-14 Jeff Johnston <jjohnstn@redhat.com>
9212
9213 * libc/sys/linux/machine/i386/syscall.h: For now, set up
9214 __syscall_return macro for systems with vsyscall.
9215
d0bd3e6f
JJ
92162004-06-11 Antony King <antony.king@st.com>
9217
9218 * libc/include/sys/_types.h: Include <sys/lock.h> and change
9219 _flock_t to be of type _LOCK_RECURSIVE_T.
9220 * libc/include/sys/reent.h: (_REENT_INIT): Reformat.
9221 (_REENT_INIT_PTR): Ditto. Use memset where appropriate.
9222 (_global_impure_ptr): New declaration.
9223 (_GLOBAL_REENT): Change to be _global_impure_ptr.
9224 * libc/include/sys/stdio.h: Include <sys/lock.h> and
9225 <sys/reent.h>.
9226 (_flockfile)[!_SINGLE_THREAD]: Add code for lock call.
9227 (_funlockfile)[!SINGLE_THREAD]: Ditto.
9228 * libc/reent/impure.c: Set _global_impure_ptr to _impure_ptr.
9229 * libc/stdio/fclose.c: Remove casting of fp lock to
9230 _LOCK_RECURSIVE_T.
9231 * libc/stdio/findfp.c: Ditto.
9232 * libc/stdio/fopen.c: Ditto.
9233 * libc/stdio/freopen.c: Ditto.
9234 * libc/stdio/vfprintf.c: Ditto.
9235 * libc/stdio64/fopen64.c: Ditto.
9236 * libc/stdlib/envlock.c: Add default stubs that use generic
9237 locking code.
9238 * libc/stdlib/mlock.c: Ditto.
9239
9240 Jeff Johnston <jjohnstn@redhat.com>
9241 * libc/sys/linux/sys/_types.h (__flock_mutex_t): New subtype.
9242 (_flock_t): Change to be a struct containing a single member
9243 named mutex which is of type __flock_mutex_t.
9244
db7033a9
JJ
92452004-06-09 Jeff Johnston <jjohnstn@redhat.com>
9246
9247 * libc/sys/linux/Makefile.am: Change siglist.inc to be generated
9248 from /usr/include/asm/signal.h instead of kernel sources. Also
9249 default max to 32 if not found in header file.
9250 * libc/sys/linux/Makefile.in: Regenerated.
9251 * libc/sys/linux/machine/i386/socketcall.h: Fix for Fedora Core 2
9252 systems where __syscall_return is not defined.
9253 * libc/sys/linux/machine/i386/syscall.h: Change for Fedora Core 2
9254 systems to use syscall() function instead of assembler interrupt.
9255
a170abec
JJ
92562004-06-09 Toralf Lund <toralf@procaptura.com>
9257
9258 * libc/sys/arm/setjmp.S, libc/sys/arm/access.c: Move
9259 files from libc/sys/arm to libc/machine/arm.
9260 * libc/machine/arm/Makefile.am, libc/machine/arm/Makefile.in: Add
9261 library build support for files moved from libc/sys/arm.
9262 * libc/sys/arm/Makefile.am, libc/sys/arm/Makefile.in: Remove
9263 references to access and setjmp.
9264 * configure.host: Add checks for newlib_may_supply_syscalls to
9265 determine whether or not to use sys/arm directory and use
9266 special compiler flags: ARM_RDI_MONITOR and ARM_RDP_MONITOR.
17c0c97d 9267
8b57e664
JJ
92682004-06-02 Jeff Johnston <jjohnstn@redhat.com>
9269
9270 * libc/stdio/vfscanf.c (__svfscanf_r): For CT_INT conversions,
9271 reset digit flags appropriately after we have discovered "0x".
9272 * libc/machine/powerpc/vfscanf.c (__svfscanf_r): Ditto.
9273
3f611058
JJ
92742004-05-27 Jeff Johnston <jjohnstn@redhat.com>
9275
9276 * libc/stdio/vfprintf.c (_VFPRINTF): Move file locking
9277 from here ...
9278 (_VFPRINTF_R): ... to here so all I/O printf routines
9279 are covered.
9280
bb42a35c
JJ
92812004-05-26 Jeff Johnston <jjohnstn@redhat.com>
9282
9283 * libc/search/hash_buf.c: Protect MAX and MIN macros from
9284 redefinition.
9285 * libc/search/hash.c: Ditto.
9286
227e6ef6
JJ
92872004-05-25 Artem B. Bityuckiy <abitytsky@softminecorp.com>
9288
9289 * newlib.hin: (_WANT_IO_POS_ARGS): New define.
9290 (_WANT_IO_LONG_LONG): Ditto.
9291 (_WANT_IO_LONG_DOUBLE): Ditto.
9292 * configure.in: Add new configuration options
9293 --enable-newlib-io-long-long and --enable-newlib-io-long-double
9294 which tie to new defines in newlib.hin.
9295 * configure: Regenerated.
9296 * configure.host: Add checks for new configuration options. Also
9297 fix up check for --enable-newlib-io-pos-args so configuration
9298 option will override any default for a given platform.
9299 Remove defining compiler flags for the _WANT_IO* options.
9300 * libc/stdio/vfprintf.c: Change to use new newlib.hin defines
9301 instead of looking for old compiler flags.
9302 * libc/stdio/vfscanf.c: Ditto.
9303 * libc/stdio/vfieeefp.h: Ditto.
9304 * libc/machine/powerpc/vfprintf.c: Ditto.
9305 * libc/machine/powerpc/vfscanf.c: Ditto.
9306
9178da95
JJ
93072004-05-25 Jeff Johnston <jjohnstn@redhat.com>
9308
9309 * testsuite/include/check.h: Add include of <stdio.h>.
9310
cf3aae91
CV
93112004-05-17 Corinna Vinschen <corinna@vinschen.de>
9312
9313 * libc/include/grp.h: Declare getgrnam_r and getgrgid_r also on Cygwin.
9314
5b4c8ae2
JJ
93152004-05-11 Artem B. Bityuckiy <abitytsky@softminecorp.com>
9316
9317 * libc/stdio/vfprintf.c (VFPRINTF_R): Use _free_r instead
9318 of free.
9319
93202004-05-07 Artem B. Bityuckiy <abitytsky@softminecorp.com>
9321
9322 * libc/stdio/iprintf.c (_iprintf_r): Fix old-style argument
9323 list for reentrant pointer. Call _vfiprintf_r.
9324 * libc/stdio/siprintf.c (_siprintf_r): New function.
9325 * libc/stdio/vfprintf.c (__sbprintf): Add reetrant struct
9326 pointer argument. Change all callers. Call _VFPRINTF_R.
9327 * libc/include/stdio.h (_siprintf_r, _vfiprintf_r): New
9328 prototypes.
9329
631fbe65
JJ
93302004-05-07 Jeff Johnston <jjohnstn@redhat.com>
9331
9332 * libc/include/sys/param.h: Remove endian info and include
9333 <machine/endian.h> instead.
9334 * libc/include/machine/endian.h: New file.
9335 * libc/include/machine/param.h: Ditto.
9336 * libc/machine/arm/machine/endian.h: Ditto.
9337 * libc/machine/arm/machine/param.h: Ditto.
9338 * libc/sys/arm/sys/param.h: Removed.
9339 * libc/sys/sysvi386/sys/param.h: Ditto.
9340 * libc/sys/rtems/sys/param.h: Modified to include <machine/endian.h>.
9341
1af84bb7
JJ
93422004-05-03 Artem B. Bityuckiy <abitytsky@softminecorp.com>
9343
9344 * libc/stdio/vfprintf.c (_VFPRINTF_R): Set error flag when
9345 multibyte functions return failure for %C, %S, %lc, and %ls
9346 format specifiers.
9347
1c63798e
JJ
93482004-05-03 Artem B. Bityuckiy <abitytsky@softminecorp.com>
9349
9350 * testsuite/include/check.h (CHECK): Add flush of stdout.
9351
20b0251a
JJ
93522004-05-03 Artem B. Bityuckiy <abitytsky@softminecorp.com>
9353
9354 * libc/include/stdio.h (_ungetc_r): New prototype.
9355 * libc/stdio/ungetc.c (_ungetc_r): New reentrant function.
9356 (__submore): Add reentrant struct pointer argument.
9357 (ungetc): Change to call _ungetc_r.
9358
6194cf4a
JJ
93592004-04-28 Artem B. Bityuckiy <abitytsky@softminecorp.com>
9360
9361 * libc/stdio/local.h (_fwalk_reent): Specify prototype of
9362 function pointer argument.
9363 * libc/stdio/fwalk.c (_fwalk, _fwalk_reent): Change prototypes
9364 to specify function pointer arguments.
9365 (__fwalk, __fwalk_reent): Ditto.
9366
b4ddf489
AH
93672004-04-26 Aldy Hernandez <aldyh@redhat.com>
9368
ba3ccd63
EB
9369 * libc/machine/powerpc/vfscanf.c (__svfscanf_r): Fix typo in
9370 CT_INT case.
b4ddf489 9371
f777e3a5
JJ
93722004-04-23 Artem B. Bityuckiy <abitytsky@softminecorp.com>
9373
9374 * configure.in: Define _MB_CAPABLE if mb supported.
9375 * configure: Regenerated.
9376 * configure.host: Remove manual setting of MB_CAPABLE compiler
9377 flag.
9378 * newlib.hin: Add _MB_CAPABLE flag.
9379 * libc/ctype/iswalpha.c, libc/ctype/iswblank.c: Include <newlib.h>
9380 and check for _MB_CAPABLE flag instead of MB_CAPABLE.
9381 * libc/ctype/iswcntrl.c, libc/ctype/iswprint.c: Ditto.
9382 * libc/ctype/iswpunct.c, libc/ctype/iswspace.c: Ditto.
9383 * libc/ctype/jp2uc.c: Ditto.
9384 * libc/ctype/towlower.c, libc/ctype/towupper.c: Ditto.
9385 * libc/locale/locale.c: Ditto
9386 * libc/machine/powerpc/vfscanf.c: Ditto
9387 * libc/stdio/vfprintf.c, libc/stdio/vfscanf.c: Ditto
9388 * libc/stdlib/mblen.c: Ditto
9389 * libc/stdlib/mblen_r.c, libc/stdlib/mbrlen.c: Ditto
9390 * libc/stdlib/mbrtowc.c, libc/stdlib/mbsrtowcs.c: Ditto
9391 * libc/stdlib/mbstowcs.c, libc/stdlib/mbtowc.c: Ditto
9392 * libc/stdlib/mbtowc_r.c, libc/stdlib/wcrtomb.c: Ditto
9393 * libc/stdlib/wcsrtombs.c, libc/stdlib/wcstombs.c: Ditto
9394 * libc/stdlib/wctomb.c, libc/sys/linux/intl/dcigettext.c: Ditto
9395 * libc/sys/linux/intl/explodename.c: Ditto
9396 * libc/sys/linux/intl/finddomain.c: Ditto
9397 * libc/sys/linux/intl/l10nflist.c: Ditto
9398 * libc/sys/linux/intl/loadmsgcat.c: Ditto
9399 * libc/sys/linux/intl/localealias.c: Ditto
9400
27c7566c
JJ
94012004-04-23 Jeff Johnston <jjohnstn@redhat.com>
9402
9403 * libc/machine/powerpc/vfscanf.c (NNZDIGITS): New define.
9404 (__svfscanf_r): In integer conversions, leave out leading zeroes
9405 which are not part of a base prefix.
9406 Keep track of width truncation to fit into buf, not counting left-out
9407 zeroes against width till the truncation has been compensated for.
9408 This is based on Joern's patch of 04/21 for libc/stdio/vfscanf.c.
9409
c00f9719
JJ
94102004-04-23 Jeff Johnston <jjohnstn@redhat.com>
9411
9412 * libc/include/stdio.h: (_ftell_r, _fseek_r): New prototypes.
9413
05b31577
JJ
94142004-04-23 Artem B. Bityuckiy <abitytsky@softminecorp.com>
9415
9416 * libc/stdio/asprintf.c libc/stdio/clearerr.c,
9417 libc/stdio/fclose.c libc/stdio/fcloseall.c libc/stdio/fdopen.c,
9418 libc/stdio/feof.c libc/stdio/ferror.c libc/stdio/fflush.c,
9419 libc/stdio/fgetc.c libc/stdio/fgetpos.c libc/stdio/fgets.c,
9420 libc/stdio/fileno.c libc/stdio/findfp.c libc/stdio/fiprintf.c,
9421 libc/stdio/flags.c libc/stdio/fopen.c libc/stdio/fprintf.c,
9422 libc/stdio/fputc.c libc/stdio/fputs.c libc/stdio/fread.c,
9423 libc/stdio/freopen.c libc/stdio/fscanf.c libc/stdio/fseek.c,
9424 libc/stdio/fseeko.c libc/stdio/fsetpos.c libc/stdio/ftell.c,
9425 libc/stdio/ftello.c libc/stdio/fvwrite.c libc/stdio/fwalk.c,
9426 libc/stdio/fwrite.c libc/stdio/getc.c libc/stdio/getc_u.c,
9427 libc/stdio/getchar.c libc/stdio/getchar_u.c,
9428 libc/stdio/getdelim.c libc/stdio/getline.c libc/stdio/gets.c,
9429 libc/stdio/getw.c libc/stdio/iprintf.c libc/stdio/local.h,
9430 libc/stdio/makebuf.c libc/stdio/mktemp.c libc/stdio/perror.c,
9431 libc/stdio/printf.c libc/stdio/putc.c libc/stdio/putc_u.c,
9432 libc/stdio/putchar.c libc/stdio/putchar_u.c libc/stdio/puts.c,
9433 libc/stdio/putw.c libc/stdio/refill.c libc/stdio/remove.c,
9434 libc/stdio/rename.c libc/stdio/rewind.c libc/stdio/rget.c,
9435 libc/stdio/scanf.c libc/stdio/setbuf.c libc/stdio/setbuffer.c,
9436 libc/stdio/setlinebuf.c libc/stdio/setvbuf.c,
9437 libc/stdio/siprintf.c libc/stdio/snprintf.c,
9438 libc/stdio/sprintf.c libc/stdio/sscanf.c libc/stdio/stdio.c,
9439 libc/stdio/tmpfile.c libc/stdio/tmpnam.c libc/stdio/ungetc.c,
9440 libc/stdio/vasprintf.c libc/stdio/vfieeefp.h,
9441 libc/stdio/vfprintf.c libc/stdio/vfscanf.c,
9442 libc/stdio/vprintf.c libc/stdio/vscanf.c,
9443 libc/stdio/vsnprintf.c libc/stdio/vsprintf.c,
9444 libc/stdio/vsscanf.c libc/stdio/wbuf.c,
9445 libc/stdio/wsetup.c: Perform minor formatting changes. Move
9446 copyright notices to top of file, ensure that <_ansi.h> is
9447 included, be consistent with open parentheses, use _DEFUN macro,
9448 include "local.h" where needed, and remove various compiler
9449 warnings.
9450
04e8fca1
JJ
94512004-04-21 J"orn Rennecke <joern.rennecke@superh.com>
9452
9453 * libc/stdio/vfscanf.c (NNZDIGITS): New define.
9454 (__svfscanf_r): In integer conversions, leave out leading zeroes
9455 which are not part of a base prefix.
9456 Keep track of width truncation to fit into buf, not counting left-out
9457 zeroes against width till the truncation has been compensated for.
9458
9090ec74
CV
94592004-04-20 Corinna Vinschen <corinna@vinschen.de>
9460
9461 * libc/include/sys/unistd.h (ttyname_r): Add missing comma.
9462
1c17deea
CV
94632004-04-20 Corinna Vinschen <corinna@vinschen.de>
9464
9465 * libc/include/sys/unistd.h (ttyname_r): Add declaration for Cygwin.
9466
54c7940f
CV
94672004-04-10 Corinna Vinschen <corinna@vinschen.de>
9468
9469 * libc/include/sys/unistd.h (sync): Define void on Cygwin according
9470 to SUSv3.
9471
47dcaf56
JJ
94722004-04-08 Artem B. Bityuckiy <abitytsky@softminecorp.com>
9473
9474 * libc/stdio/fclose.c (_fclose_r): New function.
9475 * libc/stdio/freopen.c (_freopen_r): Call _fclose_r.
9476 * libc/stdio/fcloseall.c (_fcloseall_r): Call _fwalk_reent.
9477 * libc/stdio64/freopen64.c (_freopen64_r): Use _fclose_r.
9478 * libc/include/stdio.h (_fclose_r): New prototype.
9479 * libc/stdio/fopen.c: Fix typo in comment.
9480
94812004-04-08 Jeff Johnston <jjohnstn@redhat.com>
9482
9483 * libc/stdio/fwalk.c (_fwalk_reent): New version of _fwalk
9484 to handle _r reentrant functions.
9485
4121d8cf
JJ
94862004-04-08 Eric Christopher <echristo@redhat.com>
9487
9488 * libc/include/machine/setjmp.h: Fix endif locations.
9489
59c9f5f5
JJ
94902004-04-01 Artem B. Bityuckiy <abitytsky@softminecorp.com>
9491
9492 * libc/time/strptime.c: Add standard includes to avoid
9493 warning messages at compilation time.
9494
38f4f023
JJ
94952004-04-01 Jeff Johnston <jjohnstn@redhat.com>
9496
9497 * libc/stdio/vfscanf.c (__svfscanf_r): Add locking/unlocking
9498 of file.
9499
95002004-03-30 Jeff Johnston <jjohnstn@redhat.com>
ed4c5ece
JJ
9501
9502 * libc/machine/h8300/Makefile.am: Reformat slightly.
9503 * libc/machine/h8300/Makefile.in: Regenerate.
9504
38f4f023 95052004-03-30 Thomas Pfaff <tpfaff@gmx.net>
cacc0d44
JJ
9506
9507 * libc/stdio/findfp.c (__fp_lock_all): Add call to
9508 __sfp_lock_acquire.
17c0c97d 9509 (__fp_unlock_all): Add call to __sfp_lock_release.
cacc0d44 9510
10dcf7e7
JJ
95112004-03-25 Thomas Pfaff <tpfaff@gmx.net>
9512
9513 * libc/stdio/fclose.c (fclose): Protect file pointer list when
9514 releasing a file.
9515 * libc/stdio/fcloseall.c (_fcloseall_r): Close all files via
9516 fwalk.
9517 * libc/stdio/fdopen.c (_fdopen_r): Add calls to
9518 _flockfile/_funlockfile.
9519 * libc/stdio/findfp.c: Move __sfp_lock. Change __sfp_lock type
9520 to recursive.
9521 Change __lock_acquire/__lock_release calls for __sfp_lock to
9522 __sfp_lock_acquire/__sfp_lock_release throughout.
9523 (std): Make sure that file lock is only initialized once.
9524 (__sfp): Move _file initialization. Initialize file lock.
9525 (__sfp_lock_acquire): New function.
9526 (__sfp_lock_release): Ditto.
9527 (__fp_lock_all): Remove __sfp_lock_acquire call.
9528 (__fp_unlock_all): Remove __sfp_lock_release call.
9529 * libc/stdio/fopen.c (_fopen_r): Protect file pointer list.
9530 Add calls to _flockfile/_funlockfile. Remove
9531 __lock_init_recursive call.
9532 * libc/stdio/freopen.c (_freopen_r): Protect file pointer list.
9533 * libc/stdio/fwalk.c (__fwalk): New static function.
9534 (_fwalk): Protect file pointer list. Use __fwalk to walk through
9535 file pointers.
9536 * libc/stdio/local.h: Add defines for
9537 __sfp_lock_acquire/__sfp_lock_release when
9538 single threaded. Add function prototypes otherwise.
9539 * libc/stdio64/fdopen64.c (_fdopen64_r): Add calls to
9540 _flockfile/_funlockfile.
9541 * libc/stdio/fopen64.c (_fopen64_r): Protect file pointer list.
9542 Add calls to _flockfile/_funlockfile. Remove
9543 __lock_init_recursive call.
9544 * libc/stdio/freopen64.c (_freopen64_r): Protect file pointer
17c0c97d 9545 list.
10dcf7e7 9546
ec475b09
JJ
95472004-03-25 Jeff Johnston <jjohnstn@redhat.com>
9548
9549 * libc/sys/linux/sys/lock.h: Turn on __USE_GNU flag if not already
9550 defined. Change __LOCK_RECURSIVE_INIT to be __LOCK_INIT_RECURSIVE.
9551 * libc/sys/linux/dl/dl-support.c: Change __LOCK_RECURSIVE_INIT
9552 to be __LOCK_INIT_RECURSIVE.
9553
2c4ef10a
JJ
95542004-03-11 Kazu Hirata <kazu@cs.umass.edu>
9555
9556 * libc/sys/h8300hms/Makefile.am (lib_a_SOURCES): Replace
9557 _exit.c with _exit.S.
9558 * libc/sys/h8300hms/Makefile.in: Regenerate.
9559 * libc/sys/h8300hms/_exit.c: Remove.
9560 * libc/sys/h8300hms/_exit.S: New.
9561
41c3da6a
JJ
95622004-03-09 Thomas Pfaff <tpfaff@gmx.net>
9563
9564 * libc/stdio/findfp.c (__sfp): Rename lock to __sfp_lock.
9565 Change __sfp_lock to static global.
9566 (__fp_lock): New static function.
9567 (__fp_unlock): Ditto.
9568 (__fp_lock_all): New function.
17c0c97d 9569 (__fp_unlock_all): Ditto.
41c3da6a 9570
0ccf5430
CF
95712004-02-10 Christopher Faylor <cgf@redhat.com>
9572
9573 * libm/mathfp/er_gamma.c (gamma): Add new non-reentrant function.
9574 * libm/mathfp/er_lgamma.c (lgamma): Ditto.
9575 * libm/mathfp/erf_gamma.c (gammaf): Ditto.
9576 * libm/mathfp/erf_lgamma.c (lgammaf): Ditto.
9577
3536f0fb
CF
95782004-02-09 Christopher Faylor <cgf@redhat.com>
9579
9580 * libc/include/time.h (TIMER_RELTIME): New define.
9581
6a6e493a
JJ
95822004-02-09 Jeff Johnston <jjohnstn@redhat.com>
9583
9584 * libc/stdlib/Makefile.am: Add mallstatsr to LIBADD_OBJS.
9585 * libc/stdlib/Makefile.in: Regenerated.
9586
733309f5
CF
95872004-02-08 Christopher Faylor <cgf@redhat.com>
9588
9589 * libc/include/sys/features.h: Add _POSIX_TIMERS define for __CYGWIN__.
9590 * libc/include/sys/reent.h (__getreent): Protect against possibly being
9591 defined.
9592 * libc/include/sys/unistd.h (fdatasync): Don't define for __CYGWIN__.
9593
b4a84c66
JJ
95942004-02-05 Paul Brook <paul@codesourcery.com>
9595
17c0c97d 9596 * libc/include/machine/ieeefp.h[__arm__][__VFP_FP__]: Set
b4a84c66
JJ
9597 IEEE_{BIG,LITTLE} based on __ARMEL__ flag.
9598
4669438f
JJ
95992004-02-02 Jeff Johnston <jjohnstn@redhat.com>
9600
9601 * NEWS: Update with 1.12.0 info.
9602 * README: Ditto.
9603 * acinclude.m4: Change version number to 1.12.0.
9604 * aclocal.m4: Regenerated.
9605 * configure: Ditto.
9606 * doc/aclocal.m4: Ditto.
9607 * doc/configure: Ditto.
9608 * libc/*/aclocal.m4: Ditto.
9609 * libc/*/configure: Ditto.
9610 * libc/libc.texinfo: Ditto.
9611 * libm/*/aclocal.m4: Ditto.
9612 * libm/*/configure: Ditto.
9613 * libm/libm.texinfo: Ditto.
9614 * libc/sys/linux/shared.ld: Add VERS_1.12.
9615
94d61fcb
JJ
96162004-02-02 Joel Sherrill <joel@oarcorp.com>
9617
9618 * configure.host: Add support for tic4x.
9619 * libc/include/machine/ieeefp.h: Ditto.
9620 * libc/include/machine/setjmp.h: Ditto.
9621 * libc/machine/tic4x/Makefile.am: New file.
9622 * libc/machine/tic4x/configure.in: Ditto.
9623 * libc/machine/tic4x/setjmp.S: Ditto.
9624 * libc/machine/tic4x/aclocal.m4: Generated.
9625 * libc/machine/tic4x/configure: Ditto.
9626 * libc/machine/tic4x/Makefile.in: Ditto.
9627
c730e0e7
JJ
96282004-01-30 Jeff Johnston <jjohnstn@redhat.com>
9629
9630 * libc/stdio/fwalk.c (_fwalk.c): Don't traverse the
9631 file chain on the passed in reentrancy struct if it
9632 is _GLOBAL_REENT.
9633
2892ec68 96342004-01-30 Artem B. Bityuckiy <abitytsky@softminecorp.com>
ba3ccd63 9635 Jeff Johnston <jjohnstn@redhat.com>
2892ec68
JJ
9636
9637 * libc/iconv/iconv.tex: Updated with more information.
9638
ff41498a 96392004-01-30 Thomas Pfaff <tpfaff@gmx.net>
ba3ccd63 9640 Jeff Johnston <jjohnstn@redhat.com>
ff41498a
JJ
9641
9642 * libc/stdio/fwalk.c (_fwalk): Traverse the given reentrancy
9643 struct for std streams and traverse the global reeentrancy
9644 struct for all other streams.
9645
d5b6c234
JJ
96462004-01-27 Jeff Johnston <jjohnstn@redhat.com>
9647
9648 * libc/stdlib/atexit.c: Protect global atexit list with a
9649 lock when newlib is multithreaded.
9650
01e0a777
JJ
96512004-01-27 Artem B. Bityuckiy <abitytsky@softminecorp.com>
9652
9653 * configure.in: Add support to generate iconv converter flags
9654 for newlib.h
9655 * newlib.hin: Add iconv converter flags.
9656 * configure: Regenerated.
9657 * libc/Makefile.in: Ditto.
9658 * libc/configure.in: Moved iconv converter parsing logic to
9659 top level newlib configure.in.
9660 * libc/configure: Regenerated.
9661 * libc/iconv/Makefile.in: Ditto.
9662 * libc/iconv/README.TODO
9663 * libc/iconv/charset.aliases: Remove wrong BE aliases for
9664 UCS2/UCS4/UTF8.
9665 * libc/iconv/ccs/Makefile.am: Remove C flag setting now that
9666 newlib.h can be used.
9667 * libc/iconv/ces/Makefile.am: Ditto.
9668 * libc/iconv/lib/Makefile.am: Ditto.
9669 * libc/iconv/ccs/Makefile.in: Regenerated.
9670 * libc/iconv/ces/Makefile.in: Ditto.
9671 * libc/iconv/lib/Makefile.in: Ditto.
9672 * libc/iconv/ccs/README.CCS.SOURCES: Updated.
9673 * libc/iconv/ccs/iconv_mktbl: Don't write junk strings to binaries.
9674 * libc/iconv/ccs/big5.c: Switch to use new underscored flags
9675 defined in newlib.h.
9676 * libc/iconv/ccs/cns11643_plane1.c: Ditto.
9677 * libc/iconv/ccs/cns11643_plane14.c: Ditto.
9678 * libc/iconv/ccs/cns11643_plane2.c: Ditto.
9679 * libc/iconv/ccs/cp775.c: Ditto.
9680 * libc/iconv/ccs/cp850.c: Ditto.
9681 * libc/iconv/ccs/cp852.c: Ditto.
9682 * libc/iconv/ccs/cp855.c: Ditto.
9683 * libc/iconv/ccs/cp866.c: Ditto.
9684 * libc/iconv/ccs/gb_2312_80.c: Ditto.
9685 * libc/iconv/ccs/iso_8859_1.c: Ditto.
9686 * libc/iconv/ccs/iso_8859_15.c: Ditto.
9687 * libc/iconv/ccs/iso_8859_2.c: Ditto.
9688 * libc/iconv/ccs/iso_8859_4.c: Ditto.
9689 * libc/iconv/ccs/iso_8859_5.c: Ditto.
9690 * libc/iconv/ccs/jis_x0201.c: Ditto.
9691 * libc/iconv/ccs/jis_x0208_1983.c: Ditto.
9692 * libc/iconv/ccs/jis_x0212_1990.c: Ditto.
9693 * libc/iconv/ccs/koi8_r.c: Ditto.
9694 * libc/iconv/ccs/koi8_u.c: Ditto.
9695 * libc/iconv/ccs/ksx1001.c: Ditto.
9696 * libc/iconv/ccs/shift_jis.c: Ditto.
9697 * libc/iconv/ccs/us_ascii.c: Ditto.
9698 * libc/iconv/ccs/binary/big5.cct: Newly generated.
9699 * libc/iconv/ccs/binary/cns11643_plane1.cct: Ditto.
9700 * libc/iconv/ccs/binary/cns11643_plane14.cct: Ditto.
9701 * libc/iconv/ccs/binary/cns11643_plane2.cct: Ditto.
9702 * libc/iconv/ccs/binary/cp775.cct: Ditto.
9703 * libc/iconv/ccs/binary/cp850.cct: Ditto.
9704 * libc/iconv/ccs/binary/cp852.cct: Ditto.
9705 * libc/iconv/ccs/binary/cp855.cct: Ditto.
9706 * libc/iconv/ccs/binary/cp866.cct: Ditto.
9707 * libc/iconv/ccs/binary/gb_2312_80.cct: Ditto.
9708 * libc/iconv/ccs/binary/iso_8859_1.cct: Ditto.
9709 * libc/iconv/ccs/binary/iso_8859_15.cct: Ditto.
9710 * libc/iconv/ccs/binary/iso_8859_2.cct: Ditto.
9711 * libc/iconv/ccs/binary/iso_8859_4.cct: Ditto.
9712 * libc/iconv/ccs/binary/iso_8859_5.cct: Ditto.
9713 * libc/iconv/ccs/binary/jis_x0201.cct: Ditto.
9714 * libc/iconv/ccs/binary/jis_x0208_1983.cct: Ditto.
9715 * libc/iconv/ccs/binary/jis_x0212_1990.cct: Ditto.
9716 * libc/iconv/ccs/binary/koi8_r.cct: Ditto.
9717 * libc/iconv/ccs/binary/koi8_u.cct: Ditto.
9718 * libc/iconv/ccs/binary/ksx1001.cct: Ditto.
9719 * libc/iconv/ccs/binary/shift_jis.cct: Ditto.
9720 * libc/iconv/ccs/binary/us_ascii.cct: Ditto.
9721 * libc/iconv/lib/bialiasesi.c: Sync with charset.aliases.
9722 * libc/iconv/ces/euc-jp.c: Use newlib.h macros.
9723 * libc/iconv/ces/euc-kr.c: Ditto.
9724 * libc/iconv/ces/euc-tw.c: Ditto.
9725 * libc/iconv/ces/gb2312.c: Ditto.
9726 * libc/iconv/ces/iso-10646-ucs-2.c: Ditto.
9727 * libc/iconv/ces/iso-10646-ucs-4.c: Ditto.
9728 * libc/iconv/ces/ucs-2-internal.c: Ditto.
9729 * libc/iconv/ces/ucs-4-internal.c: Ditto.
9730 * libc/iconv/ces/utf-16.c: Ditto.
9731 * libc/iconv/ces/utf-8.c: Ditto.
9732 * libc/iconv/lib/aliases.c: Ditto.
9733 * libc/iconv/lib/biccs.c: Ditto.
9734 * libc/iconv/lib/bices.c: Ditto.
9735 * libc/iconv/lib/ccs.c: Ditto.
9736 * libc/iconv/lib/ces.c: Ditto.
9737 * libc/iconv/lib/ces_euc.c: Ditto.
9738 * libc/iconv/lib/ces_iso2022.c: Ditto.
9739 * libc/iconv/lib/ces_table.c: Ditto.
9740 * libc/iconv/lib/converter.c: Ditto.
9741 * libc/iconv/lib/deps.h: Ditto.
9742 * libc/iconv/lib/endian.h: Ditto.
9743 * libc/iconv/lib/iconv.c: Ditto.
9744 * libc/iconv/lib/loaddata.c: Ditto.
9745 * libc/iconv/lib/local.h: Include newlib.h.
9746 * libc/argz/Makefile.in: Regenerated.
9747 * libc/ctype/Makefile.in: Ditto.
9748 * libc/errno/Makefile.in: Ditto.
9749 * libc/iconv/ccs/binary/Makefile.in: Ditto.
9750 * libc/locale/Makefile.in: Ditto.
9751 * libc/misc/Makefile.in: Ditto.
9752 * libc/posix/Makefile.in: Ditto.
9753 * libc/reent/Makefile.in: Ditto.
9754 * libc/search/Makefile.in: Ditto.
9755 * libc/signal/Makefile.in: Ditto.
9756 * libc/stdio/Makefile.in: Ditto.
9757 * libc/stdio64/Makefile.in: Ditto.
9758 * libc/stdlib/Makefile.in: Ditto.
9759 * libc/string/Makefile.in: Ditto.
9760 * libc/syscalls/Makefile.in: Ditto.
9761 * libc/time/Makefile.in: Ditto.
9762 * libc/unix/Makefile.in: Ditto.
9763 * testsuite/newlib.iconv/iconv.exp: New file.
9764 * testsuite/newlib.iconv/iconvjp.c: Ditto.
9765 * testsuite/newlib.iconv/iconvnm.c: Ditto.
9766 * testsuite/newlib.iconv/iconvru.c: Ditto.
9767
786ab12c
JJ
97682004-01-23 Artem B. Bityuckiy <abitytsky@softminecorp.com>
9769
9770 * acinclude.m4 (--enable-newlib-iconv): New configuration option.
9771 (--enable-newlib-builtin-converters): Ditto.
9772 * configure.in: Add code to set _ICONV_ENABLED flag.
9773 Set _MB_LEN_MAX to 1 if not mb enabled.
9774 * configure: Regenerated.
9775 * aclocal.m4: Ditto.
9776 * Makefile.in: Ditto.
9777 * newlib.hin: Add _ICONV_ENABLED flag.
9778 * libc/Makefile.am: Add support for iconv.
9779 * libc/configure.in: Ditto.
9780 * libc/Makefile.in: Regenerated.
9781 * libc/aclocal.m4: Ditto.
9782 * libc/configure: Ditto.
9783 * libc/libc.texinfo: Add iconv documentation.
9784 * libc/iconv/AUTHORS, libc/iconv/COPYING, libc/iconv/Makefile.am,
9785 libc/iconv/Makefile.in, libc/iconv/README.ORIGINAL,
9786 libc/iconv/README.TODO, libc/iconv/charset.aliases,
9787 libc/iconv/iconv.tex, libc/iconv/ccs/Makefile.am,
9788 libc/iconv/ccs/Makefile.in, libc/iconv/ccs/README.CCS.SOURCES,
9789 libc/iconv/ccs/big5.c, libc/iconv/ccs/cns11643_plane1.c,
9790 libc/iconv/ccs/cns11643_plane14.c, libc/iconv/ccs/cns11643_plane2.c,
9791 libc/iconv/ccs/cp775.c, libc/iconv/ccs/cp850.c,
9792 libc/iconv/ccs/cp852.c, libc/iconv/ccs/cp855.c,
9793 libc/iconv/ccs/cp866.c, libc/iconv/ccs/gb_2312_80.c,
9794 libc/iconv/ccs/iconv_mktbl, libc/iconv/ccs/iso_8859_1.c,
9795 libc/iconv/ccs/iso_8859_15.c, libc/iconv/ccs/iso_8859_2.c,
9796 libc/iconv/ccs/iso_8859_4.c, libc/iconv/ccs/iso_8859_5.c,
9797 libc/iconv/ccs/jis_x0201.c, libc/iconv/ccs/jis_x0208_1983.c,
9798 libc/iconv/ccs/jis_x0212_1990.c, libc/iconv/ccs/koi8_r.c,
9799 libc/iconv/ccs/koi8_u.c, libc/iconv/ccs/ksx1001.c,
9800 libc/iconv/ccs/shift_jis.c, libc/iconv/ccs/us_ascii.c,
9801 libc/iconv/ccs/binary/Makefile.am, libc/iconv/ccs/binary/Makefile.in,
9802 libc/iconv/ccs/binary/big5.cct,
9803 libc/iconv/ccs/binary/cns11643_plane1.cct,
9804 libc/iconv/ccs/binary/cns11643_plane14.cct,
9805 libc/iconv/ccs/binary/cns11643_plane2.cct,
9806 libc/iconv/ccs/binary/cp775.cct, libc/iconv/ccs/binary/cp850.cct,
9807 libc/iconv/ccs/binary/cp852.cct, libc/iconv/ccs/binary/cp855.cct,
9808 libc/iconv/ccs/binary/cp866.cct, libc/iconv/ccs/binary/gb_2312_80.cct,
9809 libc/iconv/ccs/binary/iso_8859_1.cct,
9810 libc/iconv/ccs/binary/iso_8859_15.cct,
9811 libc/iconv/ccs/binary/iso_8859_2.cct,
9812 libc/iconv/ccs/binary/iso_8859_4.cct,
9813 libc/iconv/ccs/binary/iso_8859_5.cct,
9814 libc/iconv/ccs/binary/jis_x0201.cct,
9815 libc/iconv/ccs/binary/jis_x0208_1983.cct,
9816 libc/iconv/ccs/binary/jis_x0212_1990.cct,
9817 libc/iconv/ccs/binary/koi8_r.cct, libc/iconv/ccs/binary/koi8_u.cct,
9818 libc/iconv/ccs/binary/ksx1001.cct,
9819 libc/iconv/ccs/binary/shift_jis.cct,
9820 libc/iconv/ccs/binary/us_ascii.cct,
9821 libc/iconv/ces/Makefile.am, libc/iconv/ces/Makefile.in,
9822 libc/iconv/ces/euc-jp.c, libc/iconv/ces/euc-kr.c,
9823 libc/iconv/ces/euc-tw.c, libc/iconv/ces/gb2312.c,
9824 libc/iconv/ces/iso-10646-ucs-2.c, libc/iconv/ces/iso-10646-ucs-4.c,
9825 libc/iconv/ces/ucs-2-internal.c, libc/iconv/ces/ucs-4-internal.c,
9826 libc/iconv/ces/utf-16.c, libc/iconv/ces/utf-8.c,
9827 libc/iconv/lib/Makefile.am, libc/iconv/lib/Makefile.in,
9828 libc/iconv/lib/aliases.c, libc/iconv/lib/bialiasesi.c,
9829 libc/iconv/lib/biccs.c, libc/iconv/lib/bices.c,
9830 libc/iconv/lib/ccs.c, libc/iconv/lib/ces.c,
9831 libc/iconv/lib/ces_euc.c, libc/iconv/lib/ces_iso2022.c,
9832 libc/iconv/lib/ces_table.c, libc/iconv/lib/converter.c,
9833 libc/iconv/lib/deps.h, libc/iconv/lib/endian.h,
9834 libc/iconv/lib/iconv.c, libc/iconv/lib/loaddata.c,
9835 libc/iconv/lib/local.h, libc/include/iconv.h: New files.
9836 * libc/sys/linux/include/iconv.h: Ditto.
9837 * libc/include/sys/_types.h (_iconv_t): Added.
9838 * doc/aclocal.m4: Regenerated.
9839 * doc/configure: Ditto.
9840 * doc/Makefile.in: Ditto.
9841 * iconvdata/Makefile.in: Ditto.
9842 * iconvdata/aclocal.m4: Ditto.
9843 * iconvdata/configure: Ditto.
9844 * libc/*aclocal.m4: Ditto.
9845 * libc/*Makefile.in: Ditto.
9846 * libc/*configure: Ditto.
9847 * libm/*aclocal.m4: Ditto.
9848 * libm/*Makefile.in: Ditto.
9849 * libm/*configure: Ditto.
9850
ed1a95dc
JJ
98512004-01-22 Thomas Pfaff <tpfaff@gmx.net>
9852
9853 * libc/stdio/findfp.c (__sfp): Protect global FILE pointer list
17c0c97d 9854 by a lock when newlib is multithreaded.
ed1a95dc 9855
7d4be1ef
JJ
98562004-01-21 Jeff Johnston <jjohnstn@redhat.com>
9857
9858 * libc/stdlib/mbrtowc.c (_mbrtowc_r): Fix case where s is null
9859 pointer to match C99 spec.
9860 * libc/stdlib/mbsrtowcs.c (_mbsrtowc_r): Fix to ignore len when
9861 dst is NULL. Also fix to not alter src pointer when dst is NULL
9862 and call _mbrtowc_r instead of _mbtowc_r.
9863 * libc/stdlib/wcsrtombs.c (_wcsrtombs_r): Call _wcrtomb_r instead
9864 of _wctomb_r.
9865
403f752c
JJ
98662004-01-19 Thomas Pfaff <tpfaff@gmx.net>
9867
9868 * libc/stdio/fclose.c (fclose): Release FILE as the last step.
9869 * libc/stdio/freopen.c (freopen): Ditto.
9870
85b6d63b
CF
98712004-01-16 Christopher Faylor <cgf@redhat.com>
9872
9873 * libc/stdio/vfprintf.c: Add sys/lock.h include.
9874
4af71a91
JJ
98752004-01-16 Thomas Pfaff <tpfaff@gmx.net>
9876
9877 * libc/stdio/findfp.c (__sfp): Remove unnecessary memset.
9878 * libc/stdio/vfprintf.c (__sbprintf): Ditto.
9879 Add calls to __lock_init_recursive and __lock_close_recursive
9880 instead.
9881
6a150987
JJ
98822004-01-15 Thomas Pfaff <tpfaff@gmx.net>
9883
9884 * libc/stdio/fclose.c: Include sys/lock.h.
9885 (fclose): Destroy lock when file is closed.
9886 * libc/stdio/findfp.c (__sfp): Initialize file pointers _lock
9887 member.
9888 * libc/stdio/freopen.c: Include sys/lock.h.
9889 (_freopen_r): Destroy lock when file is closed.
9890 * libc/stdio/vfprintf.c (__sbprintf): Initialize file pointers
9891 _lock member.
9892
c9524c0c
JJ
98932004-01-08 Joel Sherrill <joel@oarcorp.com>
9894
ba3ccd63
EB
9895 * libc/ctype/iswctype.c, include/sys/reent.h, libc/stdlib/a64l.c:
9896 Remove warnings.
c9524c0c 9897
9f13ccb3
JJ
98982004-01-08 Joel Sherrill <joel@oarcorp.com>
9899
ba3ccd63
EB
9900 * libc/sys/rtems/sys/queue.h: New file.
9901 * libc/include/sys/signal.h: Reflect renumbering of signals to
9902 fit into 32-bit mask.
9903 * libc/include/sys/unistd.h: Add fdatasync() prototype.
9904 * libc/sys/rtems/crt0.c: Add more symbols which may be implicitly
9905 required. In particular, add the reentrant variants of libc calls.
9906 * libc/sys/rtems/sys/dirent.h: Add scandir() prototype.
9f13ccb3 9907
9488c414
JJ
99082004-01-06 Mark Mitchell <mark@codesourcery.com>
9909
9910 * libc/sys/arm/syscalls.c (unistd.h): Include it.
9911 (remap_handle): Use STDIN_FILENO instead of __sfileno(stdin).
9912 Similarly for stdout and stderr.
9913
5125f919
JJ
99142004-01-06 Jeff Johnston <jjohnstn@redhat.com>
9915
9916 * libc/libc.texinfo: Correct escape character for @ sign
9917 so file will be processed by make info. Update copyright years.
9918 * libm/libm.texinfo: Ditto.
9919
9fc92ceb
JJ
99202003-12-05 Jeff Johnston <jjohnstn@redhat.com>
9921
9922 * libc/include/sys/stat.h: No longer include stat-dj.h.
9923 * libc/include/sys/stat-dj.h: Removed.
9924
25c7dad1
JJ
99252003-12-05 Jeff Johnston <jjohnstn@redhat.com>
9926
9927 * libc/include/wchar.h: Include <sys/reent.h>.
9928
576593dd
CF
99292003-12-05 Christopher Faylor <cgf@redhat.com>
9930
9931 * libc/stdlib/mbrlen.c: Change include order to prevent compiler errors
9932 when defining _mbrtowc.
9933 * libc/stdlib/mbsinit.c: Ditto.
9934 * libc/stdlib/mbsrtowcs.c: Ditto.
9935 * libc/stdlib/wcrtomb.c: Ditto.
9936 * libc/stdlib/wcsrtombs.c: Ditto.
9937 * libc/stdlib/wctob.c: Ditto.
9938
99392003-12-05 Christopher Faylor <cgf@redhat.com>
9940
9941 * libc/stdlib/mbrlen.c: Change include order to prevent compiler
9942 errors when defining _mbrtowc.
9943 * libc/stdlib/mbsinit.c: Ditto.
9944 * libc/stdlib/mbsrtowcs.c: Ditto.
9945
4c889d62
CF
99462003-12-05 Christopher Faylor <cgf@redhat.com>
9947
9948 * libc/stdlib/mbrtowc.c: Change include order to prevent compiler
9949 errors when defining _mbrtowc.
9950
5d109bde
JJ
99512003-12-04 Artem B. Bityuckiy <abitytsky@softminecorp.com>
9952
9953 * libc/stdio/vfprintf.c (_VFPRINTF_R): Use _r versions
9954 of mb routines for %lc and %ls support.
9955 * libc/stdio/vfscanf.c (_svfscanf_r): Add %lc, %C,
9956 %ls, and %S support. Remove CYGNUS_NEC markers and
9957 code within.
9958
3aca0888
JJ
99592003-12-04 Jeff Johnston <jjohnstn@redhat.com>
9960
9961 * libc/include/wchar.h: Add prototypes for _mbrtowc_r,
9962 _wcrtomb_r, and _wcsrtombs_r.
9963
18dcb167
CV
99642003-12-01 Corinna Vinschen <corinna@vinschen.de>
9965
9966 * libc/include/sys/fcntl.h: Don't define struct flock when on
9967 Cygwin. This is done in winsup/cygwin/include/cygwin/types.h now.
9968
93f8e673
CF
99692003-11-28 Christopher Faylor <cgf@redhat.com>
9970
9971 * libc/include/sys/signal.h: Use system specific signal file when
9972 building on cygwin.
9973
cc2a11e0
JJ
99742003-11-27 Jeff Johnston <jjohnstn@redhat.com>
9975
9976 * libc/include/stdlib.h (_atoi_r): New prototype.
9977 * libc/stdlib/atoi.c (_atoi_r): New reentrant function.
9978
83bf7d2f
JJ
99792003-11-27 Jeff Johnston <jjohnstn@redhat.com>
9980
9981 * libc/include/stdlib.h (_atoll_r, _atol_r): New prototypes.
9982 * libc/stdlib/atol.c (_atol_r): New reentrant function.
9983 * libc/stdlib/atoll.c (_atoll_r): Ditto.
9984
5d109bde 99852003-11-27 Artem B. Bityuckiy <abitytsky@softminecorp.com>
6bbb700c
JJ
9986 Jeff Johnston <jjohnstn@redhat.com>
9987
9988 * libc/include/stdlib.h (lldiv_t): New type.
9989 (atoll, llabs, lldiv): New prototypes.
9990 * libc/stdlib/Makefile.am: Add support for atoll, llabs, and lldiv.
9991 * libc/stdlib/stdlib.tex: Ditto.
9992 * libc/stdlib/Makefile.in: Regenerated.
9993 * libc/stdlib/atoll.c: New file.
9994 * libc/stdlib/llabs.c: Ditto.
9995 * libc/stdlib/lldiv.c: Ditto.
9996
0a707c79
JJ
99972003-11-26 Corinna Vinschen <corinna@vinschen.de>
9998
9999 * libc/include/fcntl.h: Declare syscalls only when building newlib.
10000 * libc/include/unistd.h: Ditto.
10001 * libc/include/stat.h: Ditto. Also declare struct stat64.
10002
5d109bde 100032003-11-24 Artem B. Bityuckiy <abitytsky@softminecorp.com>
6db165c2
JJ
10004
10005 * libc/stdio/vfprintf.c (_VFPRINTF_R): Fix check for 'C' format
10006 specifier to use ch instead of *fmt.
10007
5d109bde 100082003-11-21 Artem B. Bityuckiy <abitytsky@softminecorp.com>
759a097e
JJ
10009
10010 * libc/stdio/vfprintf.c (_VFPRINTF_R, get_arg): Move mb-specific
10011 code within checks for MB_CAPABLE. For non-mb-capable platforms,
10012 use simple byte logic.
10013
4f6149d6
JJ
100142003-11-21 Jeff Johnston <jjohnstn@redhat.com>
10015
10016 * libc/stdio/vfscanf.c (__svfscanf_r)[!_NO_LONGDBL]: Don't use
10017 _strtold routine for processing floats and doubles since it
10018 is not as fast as _strtod_r.
10019
17c0c97d 100202003-11-20 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
7343eefb 10021
17c0c97d 10022 * libc/machine/h8300/defines.h : Correct pointer register defines
7343eefb 10023 for normal mode.
17c0c97d 10024 * libc/machine/h8300/memcpy.S : Use add/sub instead of adds/subs
7343eefb
JJ
10025 for normal mode.
10026 * libc/machine/h8300/reg_memcpy.S : Likewise.
10027 * libc/machine/h8300/reg_memset.S : Likewise.
10028 * libc/machine/h8300/strcmp.S : Likewise.
10029
64cfc6f2
JJ
100302003-11-19 Nicholas Wourms <nwourms@netscape.net>
10031
10032 * configure.host: Enable positional arguments for printf
10033 family for Cygwin.
10034 * libc/stdio/vfprintf.c (_VFPRINTF_R): Remove extraneous
10035 pointer reference for quad_ptr_t.
10036
e1dc8171
JJ
100372003-11-19 Jeff Johnston <jjohnstn@redhat.com>
10038
10039 * libc/stdio/scanf.c: Don't include local.h more than once.
10040
a472290f
JJ
100412003-11-18 Corinna Vinschen <corinna@vinschen.de>
10042
10043 * libc/include/sys/fcntl.h: Declare _open64.
10044 * libc/include/sys/stat.h: Declare _fstat64.
10045 * libc/include/sys/unistd.h: Declare _lseek64.
10046
a2f1155c
CV
100472003-11-17 Corinna Vinschen <corinna@vinschen.de>
10048
10049 * libc/include/stdlib.h (getprogname): Declare for Cygwin.
10050 (setprogname): Ditto.
10051
030441fc
JJ
100522003-11-10 Jeff Johnston <jjohnstn@redhat.com>
10053
10054 * libc/machine/powerpc/ufix64toa.c (_ufix64to_r): Fix shifts
10055 to use (Ebits + 1) which accounts for the sign-bit.
10056
fe359733
JJ
100572003-11-07 Jeff Johnston <jjohnstn@redhat.com>
10058
17c0c97d 10059 * configure.host: Remove -DLOOSE_KERNEL_NAMES flag for linux
fe359733
JJ
10060 x86 build.
10061 * iconvdata/Makefile.am: Make dependent on newlib's configure.host
10062 and set up default flags to pass to aclocal.
10063 * iconvdata/Makefile.in: Regenerated.
10064 * libc/sys/linux/Makefile.am: Add _ELIX_LEVEL_4 getlogin, getpwnam,
10065 and getpwuid routines.
10066 * libc/sys/linux/Makefile.in: Regenerated.
10067 * libc/sys/linux/getlogin.c: New stub file to allow x86-linux
10068 applications to link with newlib's shared libc library.
10069 * libc/sys/linux/getpwnam.c: Ditto.
10070 * libc/sys/linux/getpwuid.c: Ditto.
10071 * libc/sys/linux/sys/types.h: Include <features.h> and supply types
10072 that were formerly supplied by /usr/include/linux/types.h with
10073 kernel types.
10074 * testsuite/newlib.wctype/twctype.c: Fix testcase to properly
10075 test _ELIX_LEVEL macro.
10076
2985521f
JJ
100772003-11-07 Jeff Johnston <jjohnstn@redhat.com>
10078
10079 * libc/stdio/vfprintf.c (_VFPRINTF_R): Fix typos that should be
10080 referring to _NO_LONGLONG macro.
10081
dcad6a89
JJ
100822003-11-06 Jeff Johnston <jjohnstn@redhat.com>
10083
10084 * libc/sys/linux/linuxthreads/td_init.c: Replace function name
10085 in LOG() macro so this will compile on gcc 3.4 and up.
10086 * libc/sys/linux/linuxthreads/td_log.c: Ditto.
10087 * libc/sys/linux/linuxthreads/td_ta_clear_event.c: Ditto.
10088 * libc/sys/linux/linuxthreads/td_ta_delete.c: Ditto.
10089 * libc/sys/linux/linuxthreads/td_ta_enable_stats.c: Ditto.
10090 * libc/sys/linux/linuxthreads/td_ta_event_addr.c: Ditto.
10091 * libc/sys/linux/linuxthreads/td_ta_event_getmsg.c: Ditto.
10092 * libc/sys/linux/linuxthreads/td_ta_get_nthreads.c: Ditto.
10093 * libc/sys/linux/linuxthreads/td_ta_get_ph.c: Ditto.
10094 * libc/sys/linux/linuxthreads/td_ta_get_stats.c: Ditto.
10095 * libc/sys/linux/linuxthreads/td_ta_map_id2thr.c: Ditto.
10096 * libc/sys/linux/linuxthreads/td_ta_map_lwp2thr.c: Ditto.
10097 * libc/sys/linux/linuxthreads/td_ta_new.c: Ditto.
10098 * libc/sys/linux/linuxthreads/td_ta_reset_stats.c: Ditto.
10099 * libc/sys/linux/linuxthreads/td_ta_set_event.c: Ditto.
10100 * libc/sys/linux/linuxthreads/td_ta_setconcurrency.c: Ditto.
10101 * libc/sys/linux/linuxthreads/td_ta_thr_iter.c: Ditto.
10102 * libc/sys/linux/linuxthreads/td_ta_tsd_iter.c: Ditto.
10103 * libc/sys/linux/linuxthreads/td_thr_clear_event.c: Ditto.
10104 * libc/sys/linux/linuxthreads/td_thr_dbresume.c: Ditto.
10105 * libc/sys/linux/linuxthreads/td_thr_dbsuspend.c: Ditto.
10106 * libc/sys/linux/linuxthreads/td_thr_event_enable.c: Ditto.
10107 * libc/sys/linux/linuxthreads/td_thr_event_getmsg.c: Ditto.
10108 * libc/sys/linux/linuxthreads/td_thr_get_info.c: Ditto.
10109 * libc/sys/linux/linuxthreads/td_thr_getfpregs.c: Ditto.
10110 * libc/sys/linux/linuxthreads/td_thr_getgregs.c: Ditto.
10111 * libc/sys/linux/linuxthreads/td_thr_getxregs.c: Ditto.
10112 * libc/sys/linux/linuxthreads/td_thr_getxregsize.c: Ditto.
10113 * libc/sys/linux/linuxthreads/td_thr_set_event.c: Ditto.
10114 * libc/sys/linux/linuxthreads/td_thr_setfpregs.c: Ditto.
10115 * libc/sys/linux/linuxthreads/td_thr_setgregs.c: Ditto.
10116 * libc/sys/linux/linuxthreads/td_thr_setprio.c: Ditto.
10117 * libc/sys/linux/linuxthreads/td_thr_setsigpending.c: Ditto.
10118 * libc/sys/linux/linuxthreads/td_thr_setxregs.c: Ditto.
10119 * libc/sys/linux/linuxthreads/td_thr_sigsetmask.c: Ditto.
10120 * libc/sys/linux/linuxthreads/td_thr_tsd.c: Ditto.
10121 * libc/sys/linux/linuxthreads/td_thr_validate.c: Ditto.
10122
d2ffac09 101232003-11-05 Jeff Johnston <jjohnstn@redhat.com>
ba3ccd63 10124 Artem B. Bityuckiy <abitytsky@softminecorp.com>
d2ffac09
JJ
10125
10126 * libc/stdio/vfprintf.c (_VFPRINTF_R): Add support for
10127 %ls, %S, %lc, and %C format specifiers.
10128 (get_arg): Ditto.
10129 * libc/stdio/sprintf.c: Add documentation regarding new
10130 format specifiers added in vfprintf.c.
10131
da2d1227
JJ
101322003-11-05 Jeff Johnston <jjohnstn@redhat.com>
10133
10134 * libc/stdlib/wcsrtombs.c (_wcsrtombs_r): Numerous fixes
10135 to make code work as specified in standard.
10136
3ef05bac
JJ
101372003-10-23 Jeff Johnston <jjohnstn@redhat.com>
10138
10139 * configure.in: Use absolute newlib basedir when forming
10140 CC_FOR_NEWLIB include options.
10141 * configure: Regenerated.
10142
5d109bde 101432003-10-23 Artem B. Bityuckiy <abitytsky@softminecorp.com>
4340b63b
JJ
10144
10145 * libc/string/wcsnlen.c: New file.
10146 * libc/include/wchar.h: Add wcsnlen prototype.
10147 * libc/string/Makefile.am: Add wcsnlen support.
10148 * libc/string/Makefile.in: Regenerated.
10149 * libc/string/wcstrings.tex: Add wcsnlen documentation.
10150
63a823f8
RS
101512003-10-22 Richard Sandiford <rsandifo@redhat.com>
10152
10153 * libc/stdlib/exit.c (exit): Handle null _GLOBAL_REENT->_atexits.
10154
76a7df52
JJ
101552003-10-20 Bob Wilson <bob.wilson@acm.org>
10156
10157 * libc/locale/locale.c: Use double quotes in code.
10158 * libc/locale/locale.tex: Likewise.
10159 * libc/libc.texinfo: Hyphenate "floating-point".
10160 * libc/machine/necv70/necv70.tex: Likewise.
10161 * libc/stdio/sprintf.c: Likewise.
10162 * libc/stdio/sscanf.c: Likewise.
10163 * libc/stdlib/atof.c: Likewise.
10164 * libc/stdlib/ldtoa.c: Fix comment typo.
10165 * libc/stdlib/div.c: Use @ifnottex instead of @ifinfo.
10166 * libc/stdlib/ldiv.c: Likewise.
10167 * libm/common/s_expm1.c: Likewise.
10168 * libm/common/s_ilogb.c: Hyphenate "floating-point". Use "nonzero".
10169 * libm/common/s_infinity: Hyphenate "double- and single-precision".
10170 * libm/common/s_nan.c: Likewise. Also correct the FUNCTION summary.
10171 * libm/common/s_nextafter.c: Fix typo. Hyphenate "double-precision"
10172 and "floating-point".
10173 * libm/common/s_scalbn.c: Correct the FUNCTION summary.
10174 * libm/math/e_pow.c: Fix comment typo.
10175 * libm/math/math.tex: Hyphenate "single-precision" and "floating-point".
10176 * libm/math/s_asinh.c: Use @ifnottex instead of @ifinfo.
10177 * libm/math/s_atan.c: Likewise.
10178 * libm/math/s_frexp.c: Likewise. Also use "nonzero".
10179 * libm/math/s_isnan.c: Hyphenate "single-precision" and
10180 "floating-point". Use "nonzero".
10181 * libm/math/s_ldexp.c: Use @ifnottex instead of @ifinfo.
10182 * libm/math/w_acos.c: Likewise.
10183 * libm/math/w_acosh.c: Likewise.
10184 * libm/math/w_asin.c: Likewise.
10185 * libm/math/w_atan2.c: Likewise.
10186 * libm/math/w_atanh.c: Likewise.
10187 * libm/math/w_cosh.c: Likewise.
10188 * libm/math/w_exp.c: Likewise.
10189 * libm/math/w_exp2.c: Likewise. Add missing @end and missing @tex
10190 version of 2^x in the description.
10191 * libm/math/w_fmod.c: Use @ifnottex instead of @ifinfo.
10192 * libm/math/w_gamma.c: Likewise.
10193 * libm/math/w_hypot.c: Likewise.
10194 * libm/math/w_j0.c: Likewise.
10195 * libm/math/w_sinh.c: Likewise.
10196 * libm/math/w_pow.c: Replace "exp1.0nt" with "exponent".
10197 * libm/mathfp/mathfp.tex: Hyphenate "single-precision" and
10198 "floating-point".
10199 * libm/mathfp/e_acosh.c: Use @ifnottex instead of @ifinfo.
10200 * libm/mathfp/e_atanh.c: Likewise.
10201 * libm/mathfp/e_hypot.c: Likewise.
10202 * libm/mathfp/er_lgamma.c: Likewise.
10203 * libm/mathfp/s_acos.c: Likewise.
10204 * libm/mathfp/s_asine.c: Likewise.
10205 * libm/mathfp/s_asinh.c: Likewise.
10206 * libm/mathfp/s_atan.c: Likewise.
10207 * libm/mathfp/s_atan2.c: Likewise.
10208 * libm/mathfp/s_atangent.c: Likewise.
10209 * libm/mathfp/s_cosh.c: Likewise.
10210 * libm/mathfp/s_exp.c: Likewise.
10211 * libm/mathfp/s_fmod.c: Likewise.
10212 * libm/mathfp/s_frexp.c: Likewise. Also use "nonzero".
10213 * libm/mathfp/s_isnan.c: Hyphenate "single-precision" and
10214 "floating-point". Use "nonzero".
10215 * libm/math/s_pow.c: Replace "exp1.0nt" with "exponent".
10216 * libm/mathfp/s_ldexp.c: Use @ifnottex instead of @ifinfo.
10217 * libm/mathfp/s_sineh.c: Likewise.
10218 * libm/mathfp/w_jn.c: Likewise.
10219
b11926e7
JJ
102202003-10-15 Alexandre Oliva <aoliva@redhat.com>
10221
10222 * Makefile.am: Add $(MAKE) comments to multido and multiclean
10223 lines, to enable parallel make.
10224 * Makefile.in: Rebuilt.
10225
31271d5c
CF
102262003-10-14 Christopher Faylor <cgf@redhat.com>
10227
10228 * libc/time/clock.c: Clarify documentation of return value when no
10229 measurement is available.
10230
bc707cbd
JJ
102312003-09-29 Ian Lance Taylor <ian@wasabisystems.com>
10232
10233 * libm/configure.in: Check libm_machine_dir, not machine_dir.
10234 * libm/configure: Regenerate.
10235 * libm/Makefile.in: Ditto.
10236
f4b10605
JR
102372003-09-29 J"orn Rennecke <joern.rennecke@superh.com>
10238
10239 * libc/machine/sh/strncpy.S: New file.
10240 * libc/machine/sh/Makefile.am: Add entry & rule for new file.
10241 * libc/machine/sh/Makefile.in: Regenerate.
10242
ce044d8f
JW
102432003-09-11 James E Wilson <wilson@specifixinc.com>
10244
10245 * MAINTAINERS: Update my e-mail address.
10246
080ef411
CV
102472003-09-10 Corinna Vinschen <corinna@vinschen.de>
10248
10249 * libc/include/sys/unistd.h: Declare function daemon for Cygwin.
10250
3a767b69
JJ
102512003-09-09 Jeff Johnston <jjohnstn@redhat.com>
10252
080ef411
CV
10253 * libc/machine/powerpc/fix64.h: Fix typo for _simdldcheck
10254 prototype.
10255 * libc/machine/powerpc/simdldtoa.c: Remove prototype for
10256 _simdldcheck(). Also add unsigned cast for index variable in
10257 for loop using sizeof operators.
10258 * libc/machine/powerpc/strtoufix32.c: Remove unused variable.
10259 * libc/machine/powerpc/strtosfix64.c: Fix call to _simdldcheck.
10260 * libc/machine/powerpc/strtoufix64.c (_strtoufix64_r): Ditto
10261 plus fix shift calculation for determining if there is a
10262 carry from word2.
3a767b69 10263
84154fcc
CV
102642003-09-09 Corinna Vinschen <corinna@vinschen.de>
10265
10266 * libc/include/grp.h: Don't define setgrfile, group_from_gid and
10267 setgroupent for Cygwin.
10268
f1b15058
JJ
102692003-09-05 Jeff Johnston <jjohnstn@redhat.com>
10270
10271 * libc/stdlib/exit.c (exit): Setting of struct _atexit ptr p
10272 is different for _REENT_SMALL than when using regular reent
10273 struct.
10274
cf88c20f 102752003-09-05 Ben Elliston <bje@wasabisystems.com>
0a8fd4dc 10276
b73263e4
BE
10277 * libc/ctype/wctype.c (_DEFUN): Remove empty default case, as
10278 modern versions of GCC issue a warning.
10279
0a8fd4dc
BE
10280 * libc/machine/xscale/memcmp.c (memcmp): Strip trailing whitespace
10281 after continuation characters that induces a warning from modern
10282 versions of GCC.
10283
10a32423
BE
102842003-09-04 Ben Elliston <bje@wasabisystems.com>
10285
10286 * libc/stdlib/mstats.c[_ELIX_LEVEL]: Fix guards. #ifndef FOO ||
10287 FOO >= 2 is invalid; use #if !defined (FOO) || FOO >= 2 instead.
10288
ed027a53
JJ
102892003-09-02 Thomas Pfaff <tpfaff@gmx.net>
10290
10291 * libc/stdlib/atexit.c: Rename _REENT to _GLOBAL_REENT throughout.
10292 * libc/stdlib/exit.c : Ditto.
10293 * libc/stdlib/on_exit.c: Ditto.
10294
880fa247
JJ
102952003-08-27 Corinna Vinschen <corinna@vinschen.de>
10296
10297 * libc/include/reent.h: Define stat64 as __stat64 when
10298 compiling newlib for Cygwin.
10299
54c1d7ea
JJ
103002003-08-26 Jeff Johnston <jjohnstn@redhat.com>
10301
10302 * libc/include/sys/stat.h[__CYGWIN__]: Only define stat64 as
10303 __stat64 when compiling newlib.
10304
0eca0750
JJ
103052003-08-26 Jeff Johnston <jjohnstn@redhat.com>
10306
10307 * libc/include/stdio.h: Allow the io64 function prototypes for
10308 Cygwin when compiling newlib.
10309 * libc/include/sys/stat.h[__CYGWIN__]: Define stat64 as __stat64
10310 to expose the Cygwin struct __stat64 type.
10311 * libc/stdio64/fseeko64.c: Use _fstat64_r and pass a struct stat64
10312 pointer.
10313 * libc/stdio64/tmpfile64.c(_tmpfile64_r): Call _fopen64_r.
10314
9d4aef19
CF
103152003-08-23 Christopher Faylor <cgf@redhat.com>
10316
10317 * libc/stdio64/fseeko64.c (fseeko64_r): Rename second fseeko64_r
10318 definition to fseeko64.
10319
9fc9e1c9
JJ
103202003-08-22 Jeff Johnston <jjohnstn@redhat.com>
10321
10322 * libc/include/sys/reent.h: Add _GLOBAL_REENT macro.
10323 * libc/stdio: Globally remove/replace all references to fp->_data.
10324 Replace with _REENT or _GLOBAL_REENT where appropriate.
10325 * libc/stdio/asprintf.c: Ditto.
10326 * libc/stdio/fclose.c: Ditto.
10327 * libc/stdio/fvwrite.c: Ditto.
10328 * libc/stdio/makebuf.c: Ditto.
10329 * libc/stdio/refill.c: Ditto.
10330 * libc/stdio/local.h: Ditto.
10331 * libc/stdio/setvbuf.c: Ditto.
10332 * libc/stdio/sscanf.c: Ditto.
10333 * libc/stdio/stdio.c: Ditto.
10334 * libc/stdio/ungetc.c: Ditto.
10335 * libc/stdio/vfscanf.c: Ditto.
10336 * libc/stdio/vsscanf.c: Ditto.
10337 * libc/stdio/fopen.c: Ditto. Also use _fseek_r in _fopen_r.
10338 * libc/stdio/vasprintf.c: Ditto. Also call _vfprintf_r directly.
10339 * libc/stdio/vsnprintf.c: Ditto.
10340 * libc/stdio/vsprintf.c: Ditto.
10341 * libc/stdio/fcloseall.c(fcloseall): Use _GLOBAL_REENT macro
10342 instead of _REENT to walk file list.
10343 * libc/stdio/fflush.c: Ditto.
10344 * libc/stdio/fgetpos.c: Add reentrant version and have regular
10345 version call reentrant version with _REENT argument.
10346 * libc/stdio/fsetpos.c: Ditto.
10347 * libc/stdio/fseek.c: Ditto.
10348 * libc/stdio/fseeko.c: Ditto.
10349 * libc/stdio/ftell.c: Ditto.
10350 * libc/stdio/ftello.c: Ditto.
10351 * libc/stdio/freopen.c: Ditto.
10352 * libc/stdio/findfp.c: Use _GLOBAL_REENT pointer when adding
10353 new files to chain. Also use _GLOBAL_REENT pointer for
10354 cleaning up.
10355 * libc/stdio/fiprintf.c: Reformatted to minimize duplicate code.
10356 * libc/stdio/siprintf.c: Ditto.
10357 * libc/stdio/iprintf.c: Ditto.
10358 * libc/stdio/fprintf.c: Ditto.
10359 * libc/stdio/printf.c: Ditto.
10360 * libc/stdio/snprintf.c: Call _vfprintf_r directly.
10361 * libc/stdio/sprintf.c: Ditto.
10362 * libc/stdio/vprintf.c: Ditto. Also add _REENT_ONLY check.
10363 * libc/stdio/rewind.c: Call _fseek_r directly.
10364 * libc/stdio/tmpfile.c: Call _fopen_r and _remove_r directly.
10365 * libc/stdio/vfprintf.c (_VFPRINTF_R): Change _r routines to use
10366 data pointer.
10367 (get_arg): Add extra struct _reent pointer argument.
10368 * libc/stdio64/fgetpos64.c: Add _r versions, remove any reference
10369 to fp->_data.
10370 * libc/stdio64/fopen64.c: Ditto.
10371 * libc/stdio64/freopen64.c: Ditto.
10372 * libc/stdio64/fsetpos64.c: Ditto.
10373 * libc/stdio64/ftello64.c: Ditto.
10374 * libc/stdio64/local64.h: Ditto.
10375 * libc/stdio64/stdio64.c: Ditto.
10376 * libc/stdio64/fseeko64.c: Ditto plus use _fstat_r instead of
10377 _fstat64_r for the meantime.
10378
8f021114
JJ
103792003-08-19 Jeff Johnston <jjohnstn@redhat.com>
10380
10381 * libc/stdlib/mallocr.c (mALLOc, rEALLOc, mEMEALIGn): Enhance
10382 overflow detection.
17c0c97d 10383
db979bb4 103842003-08-13 Aldy Hernandez <aldyh@redhat.com>
17c0c97d 10385
db979bb4
JJ
10386 * libc/machine/powerpc/machine/stdlib.h: Wrap SPE functions in
10387 extern "C".
10388
6efbdc7d
JJ
103892003-08-13 Jeff Johnston <jjohnstn@redhat.com>
10390
10391 * libc/include/math.h: Add prototypes for __signbitf and
10392 __signbitd.
10393
e895fc20
JJ
103942003-07-31 Jeff Johnston <jjohnstn@redhat.com>
10395
10396 * libc/ctype/iswalpha.c: Fix calls to __jp2uc to pass the
10397 correct type of conversion when dealing with EUCJP or SJIS.
10398 * libc/ctype/iswblank.c: Ditto.
10399 * libc/ctype/iswcntrl.c: Ditto.
10400 * libc/ctype/iswprint.c: Ditto.
10401 * libc/ctype/iswpunct.c: Ditto.
10402 * libc/ctype/iswspace.c: Ditto.
10403 * libc/ctype/towlower.c: Ditto.
10404 * libc/ctype/towupper.c: Ditto.
10405
0302dfe5
NC
104062003-07-31 Nick Clifton <nickc@redhat.com>
10407
10408 * libc/sys/sysnecv850/crt0.S (_start): Allocate 4 slots on stack
10409 before calling main, in case it saves its argument registers.
ba3ccd63
EB
10410 Remove reference to deleted v850ea port.
10411 * configure.host: Remove reference to deleted v850ea port.
10412 Do not use -mv850 when building for v850e target. This
0302dfe5
NC
10413 prevents the ctbp system register from being initialised.
10414
42de5592
JJ
104152003-07-29 Honda Hiroki <hhonda@ipflex.com>
10416
10417 * libc/stdio/vfprintf.c: Set output size to 1 when
10418 we have %f format with precision 0 and # flag not specified.
10419
e5de27b6
AO
104202003-07-29 Alexandre Oliva <aoliva@redhat.com>
10421
10422 * libc/machine/mn10300/setjmp.S: Never emit both .am33 and
10423 .am33_2.
10424
3c98a593
CF
104252003-07-25 Christopher Faylor <cgf@redhat.com>
10426
10427 * libc/stdio64/fdopen64.c: Include sys/lock.h.
10428
e222bf67
CF
104292003-07-25 Christopher Faylor <cgf@redhat.com>
10430
10431 * configure.host: Find cygwin include directory, when appropriate.
10432
03536757
CF
104332003-07-24 Christopher Faylor <cgf@redhat.com>
10434
10435 * libc/stdio64/fdopen64.c: New file.
10436 * libc/stdio64/Makefile.am (LIB_OBJS): Add fdopen64.o
10437 * libc/stdio64/Makefile.in: Regenerate.
10438 * libc/include/stdio.h (fdopen64): Define.
10439 * libc/include/stdio.h (_fdopen64_r): Ditto.
10440
18072a4f
AO
104412003-07-10 Alexandre Oliva <aoliva@redhat.com>
10442
10443 2000-04-27 Alexandre Oliva <aoliva@cygnus.com>
10444 * libc/include/machine/setjmp.h (_JBLEN, AM33/2.0): Set to 26.
10445 * libc/machine/mn10300/setjmp.S (setjmp, longjmp): Save and
10446 restore callee-saved FP registers.
10447
e0bec12f
JR
104482003-07-10 J"orn Rennecke <joern.rennecke@superh.com>
10449
10450 * libc/include/sys/unistd.h (ftruncate, truncate): Also declare
10451 for __sh__.
10452 * libc/sys/sh/Makefile.am (lib_a_SOURCES): Add ftruncate.c and
10453 truncate.c.
10454 * libc/sys/sh/Makefile.in: Regenerate.
10455 * libc/sys/sh/sys/syscall.h: (SYS_truncate, SYS_ftruncate): Define.
10456 * libc/sys/sh/ftruncate.c: New file.
10457 * libc/sys/sh/truncate.c: Likewise.
10458
03d65dd9
AO
104592003-07-09 Alexandre Oliva <aoliva@redhat.com>
10460
10461 * libc/include/math.h (nan, nanf): Update prototype to C99.
10462 * libm/common/s_nan.c (nan): Likewise.
10463 * libm/common/s_nanf.c (nanf, nan): Likewise.
10464 * libc/sys/linux/cmath/math_private.h (nan, nanf): Likewise.
10465
74aa9d7d
JJ
104662003-07-07 Jeff Johnston <jjohnstn@redhat.com>
10467
10468 * libc/include/stdbool.h: Removed as this is defined by gcc.
10469
0a447ef3
JJ
104702003-07-03 Shaun Jackman <sjackman@pathwayconnect.com>
10471
10472 * libc/include/stdbool.h: New header file defined by C99.
10473
282eff9a
JJ
104742003-07-02 Jeff Johnston <jjohnstn@redhat.com>
10475
10476 * libc/include/sys/types.h (int8_t): Make signed.
10477
4e989b11
JJ
104782003-07-02 Jeff Johnston <jjohnstn@redhat.com>
10479
10480 * libc/sys/linux/include/mqueue.h: Add include of <sys/fcntl.h>.
10481
07b40cf8
JJ
104822003-06-27 Jose Goncalves <jose.goncalves@inov.pt>
10483
10484 * libc/sys/linux/mq_open.c (mq_open): Only set created flag
10485 on if we actually created the shared memory file exclusively.
10486
7daa7891
JJ
104872003-06-27 Joe Vornehm <joev@mitre.org>
10488
10489 * libm/common/s_fpclassify.c (__fpclassifyf): Fix
10490 comparisons to account for unsigned internal value w.
10491
51fa7562
JJ
104922003-06-26 Jeff Johnston <jjohnstn@redhat.com>
10493
10494 * libc/sys/linux/mq_open.c (mq_open): Must allocate rdbuf and
10495 wrbuf for a non-creating open.
10496
b8f7ea5c
JJ
104972003-06-24 Kazu Hirata <kazu@cs.umass.edu>
10498
10499 * libc/machine/h8300/setarch.h: New.
10500 * libc/machine/h8300/memcpy.S: Use it.
10501 * libc/machine/h8300/memset.S: Likewise.
10502 * libc/machine/h8300/reg_memcpy.S: Likewise.
10503 * libc/machine/h8300/reg_memset.S: Likewise.
10504 * libc/machine/h8300/setjmp.S: Likewise.
10505 * libc/machine/h8300/strcmp.S: Likewise.
10506
6d7ea52a
RS
105072003-06-24 Richard Sandiford <rsandifo@redhat.com>
10508
10509 * libc/sys/h8300hms/crt0.S (_start): Fix register sizes in call
10510 to atexit().
10511
5a74f2aa
JJ
105122003-06-20 Jeff Johnston <jjohnstn@redhat.com>
10513
10514 * configure.host (iq2000): Add tabs.
10515
8266e478
JJ
105162003-06-20 Jeff Johnston <jjohnstn@redhat.com>
10517
10518 * libc/include/sys/reent.h (_REENT_INIT_PTR): Fix macros
10519 to handle latest on_exit change.
10520 * libc/sys/linux/Makefile.am: Remove special compilation
10521 for malloc.c and mcheck.c.
10522 * libc/sys/linux/Makefile.in: Regenerated.
10523 * libc/sys/linux/mntent.c: Add definition of _LIBC flag
10524 after including <features.h>.
10525 * libc/sys/linux/mcheck.c: Ditto.
10526 * libc/sys/linux/malloc.c: Ditto plus define _GNU_SOURCE
10527 for <features.h>.
10528 * libc/sys/linux/intl/Makefile.am: Remove -D_LIBC and
10529 add -DNOT_IN_libc to C flags.
10530 * libc/sys/linux/intl/Makefile.in: Regenerated.
10531 * libc/sys/linux/intl/config.h: Add definition of _LIBC.
10532 * libc/sys/linux/linuxthreads/semaphore.h: Include
10533 <bits/pthreadtypes.h>.
10534 * libc/sys/linux/sys/dirent.h: Define _LIBC and NOT_IN_libc after
10535 including <features.h>.
10536 * libc/sys/linux/sys/lock.h: Ditto.
10537
0efe117b
NC
105382003-06-11 Nick Clifton <nickc@redhat.com>
10539
10540 * libc/reent/reent.c (reclaim_reent): Fix typo in code to free
10541 _on_exit_args_ptr.
10542
bfdfd7e6 105432003-06-10 Stan Cox <scox@redhat.com>
ba3ccd63 10544 Anthony Green <green@redhat.com>
17c0c97d 10545
bfdfd7e6
AG
10546 * configure.host: Add iq2000 support.
10547 * newlib/libc/include/machine/ieeefp.h: Ditto.
10548 * newlib/libc/include/machine/setjmp.h: Ditto.
10549 * libc/machine/iq2000, libc/machine/iq2000/setjmp.S,
10550 libc/machine/iq2000/aclocal.m4, libc/machine/iq2000/configure,
10551 libc/machine/iq2000/configure.in, libc/machine/iq2000/Makefile.am,
10552 libc/machine/iq2000/Makefile.in: New files.
10553
d9e4104b
RS
105542003-06-10 Richard Sandiford <rsandifo@redhat.com>
10555
10556 * libc/sys/h8300hms/setarch.h: New file.
10557 * libc/sys/h8300hms/close.S, libc/sys/h8300hms/fstat.S,
10558 libc/sys/h8300hms/lseek.S, libc/sys/h8300hms/open.S,
10559 libc/sys/h8300hms/read.S, libc/sys/h8300hms/stat.S,
10560 libc/sys/h8300hms/write.S, libc/sys/h8300hms/crt0.S: Use it.
10561
729d1ff9
JJ
105622003-06-06 Jeff Johnston <jjohnstn@redhat.com>
10563
ba3ccd63
EB
10564 * libc/argz/argz_add.c: Change to use _DEFUN macro for function
10565 definition.
10566 * libc/argz/argz_add_sep.c: Ditto.
10567 * libc/argz/argz_append.c libc/argz/argz_count.c: Ditto.
10568 * libc/argz/argz_create.c libc/argz/argz_create_sep.c: Ditto.
10569 * libc/argz/argz_delete.c libc/argz/argz_extract.c: Ditto.
10570 * libc/argz/argz_insert.c libc/argz/argz_next.c: Ditto.
10571 * libc/argz/argz_replace.c libc/argz/argz_stringify.c: Ditto.
10572 * libc/argz/envz_add.c libc/argz/envz_entry.c: Ditto.
10573 * libc/argz/envz_get.c libc/argz/envz_merge.c: Ditto.
10574 * libc/argz/envz_remove.c libc/argz/envz_strip.c: Ditto.
10575 * libc/locale/nl_langinfo.c libc/misc/ffs.c: Ditto.
10576 * libc/posix/closedir.c libc/posix/creat.c: Ditto.
10577 * libc/posix/execl.c libc/posix/execle.c: Ditto.
10578 * libc/posix/execlp.c libc/posix/execve.c: Ditto.
10579 * libc/posix/isatty.c libc/posix/opendir.c: Ditto.
10580 * libc/posix/popen.c libc/posix/readdir.c: Ditto.
10581 * libc/posix/readdir_r.c libc/posix/rewinddir.c: Ditto.
10582 * libc/posix/scandir.c libc/posix/seekdir.c: Ditto.
10583 * libc/posix/telldir.c libc/search/hcreate.c: Ditto.
10584 * libc/search/tdelete.c libc/search/tdestroy.c: Ditto.
10585 * libc/search/tfind.c libc/search/tsearch.c: Ditto.
10586 * libc/search/twalk.c libc/signal/signal.c: Ditto.
729d1ff9 10587
75d7d177 105882003-06-05 Nick Clifton <nickc@redhat.com>
17c0c97d 10589
75d7d177
NC
10590 * libc/include/sys/reent.h (struct _on_exit_args): New
10591 structure containing fields used by the on_exit() function.
ba3ccd63 10592 (struct _atexit): Include struct _on_exit_args. For
75d7d177
NC
10593 _REENT_SMALL do his via a pointer that is initialised when
10594 needed.
ba3ccd63 10595 * libc/reent/reent.c (_reclaim_reent): Free the _on_exit_args
75d7d177 10596 structure, if one has been allocated.
ba3ccd63 10597 * libc/stdlib/atexit.c (atexit): Update indirection to
75d7d177 10598 _fntypes field.
ba3ccd63 10599 * libc/stdlib/on_exit.c (on_exit): Indirect via the
75d7d177
NC
10600 _on_exit_args structure. For _REENT_SMALL, allocate a
10601 structure if one does not exist.
ba3ccd63 10602 * libc/stdlib/exit.c (exit): Indirect via the _on_exit_args
75d7d177
NC
10603 structure.
10604
2129f283
JJ
106052003-06-04 Jeff Johnston <jjohnstn@redhat.com>
10606
10607 * libc/sys/linux/net/Makefile.am: Remove extraneous markers.
10608 * libc/sys/linux/net/Makefile.in: Regenerated.
10609
bf3bcac2
JJ
106102003-06-03 Jeff Johnston <jjohnstn@redhat.com>
10611
10612 * libc/reent/execr.c: Use _DEFUN macro for function declaration.
10613 * libc/reent/fcntlr.c: Ditto.
10614 * libc/reent/fstat64r.c: Ditto.
10615 * libc/reent/linkr.c: Ditto.
10616 * libc/reent/lseek64r.c: Ditto.
10617 * libc/reent/lseekr.c: Ditto.
10618 * libc/reent/openr.c: Ditto.
10619 * libc/reent/readr.c: Ditto.
10620 * libc/reent/reent.c: Ditto.
10621 * libc/reent/sbrkr.c: Ditto.
10622 * libc/reent/signalr.c: Ditto.
10623 * libc/reent/signgam.c: Ditto.
10624 * libc/reent/statr.c: Ditto.
10625 * libc/reent/timer.c: Ditto.
10626 * libc/reent/unlinkr.c: Ditto.
10627 * libc/reent/writer.c: Ditto.
10628 * libc/syscalls/sysclose.c: Ditto.
10629 * libc/syscalls/sysexecve.c: Ditto.
10630 * libc/syscalls/sysfcntl.c: Ditto.
10631 * libc/syscalls/sysfork.c: Ditto.
10632 * libc/syscalls/sysfstat.c: Ditto.
10633 * libc/syscalls/sysgetpid.c: Ditto.
10634 * libc/syscalls/sysgettod.c: Ditto.
10635 * libc/syscalls/syskill.c: Ditto.
10636 * libc/syscalls/syslink.c: Ditto.
10637 * libc/syscalls/syslseek.c: Ditto.
10638 * libc/syscalls/sysopen.c: Ditto.
10639 * libc/syscalls/sysread.c: Ditto.
10640 * libc/syscalls/syssbrk.c: Ditto.
10641 * libc/syscalls/sysstat.c: Ditto.
10642 * libc/syscalls/systimes.c: Ditto.
10643 * libc/syscalls/sysunlink.c: Ditto.
10644 * libc/syscalls/syswait.c: Ditto.
10645 * libc/syscalls/syswrite.c: Ditto.
10646
702ceb23
JJ
106472003-06-03 Till Straumann <strauman@SLAC.Stanford.EDU>
10648
10649 * libc/time/tzset_r.c: Change local variables that are
10650 set via sscanf using the %h format specifier to be unsigned short
10651 instead of int.
10652
102861c9
JJ
106532003-05-30 Kelley Cook <kelleycook@wideopenwest.com>
10654
10655 * configure.host: Allow i[34567]86 variant.
10656 * configure.in: Likewise.
10657 * README: Likewise to the docs.
10658 * configure: Regenerated.
10659 * Makefile.in: Ditto.
10660
b359e82c
JJ
106612003-05-28 Jeff Johnston <jjohnstn@redhat.com>
10662 Tom Fitzsimmons <fitzsim@redhat.com>
10663
10664 * configure.in: Add iconvdata support for x86 linux.
10665 * configure: Regenerated.
17c0c97d 10666 * libc/sys/linux/Makefile.am: Add EL/IX level 3 network, dynamic
b359e82c
JJ
10667 library, iconv, and linuxthreads support.
10668 * libc/sys/linux/configure.in: Ditto.
10669 * libc/sys/linux/Makefile.in: Regenerated.
10670 * libc/sys/linux/configure: Ditto.
10671 * iconvdata/EUC-JP.irreversible: New file.
10672 * iconvdata/Makefile.am: Ditto.
10673 * iconvdata/Makefile.in: Ditto.
10674 * iconvdata/SJIS.irreversible: Ditto.
10675 * iconvdata/aclocal.m4: Ditto.
10676 * iconvdata/configure: Ditto.
10677 * iconvdata/configure.in: Ditto.
10678 * iconvdata/dummy.c: Ditto.
10679 * iconvdata/euc-jp.c: Ditto.
10680 * iconvdata/gconv-modules: Ditto.
10681 * iconvdata/jis0201.c: Ditto.
10682 * iconvdata/jis0201.h: Ditto.
10683 * iconvdata/jis0208.c: Ditto.
10684 * iconvdata/jis0208.h: Ditto.
10685 * iconvdata/jis0212.c: Ditto.
10686 * iconvdata/jis0212.h: Ditto.
10687 * iconvdata/sjis.c: Ditto.
10688 * libc/include/errno.h: Protect definition of error_t.
10689 * libc/sys/linux/gethostid.c: New file.
10690 * libc/sys/linux/sethostid.c: Ditto.
10691 * libc/sys/linux/dl/Makefile.am: Ditto.
10692 * libc/sys/linux/dl/Makefile.in: Ditto.
10693 * libc/sys/linux/dl/abi-tag.h: Ditto.
10694 * libc/sys/linux/dl/atomicity.h: Ditto.
10695 * libc/sys/linux/dl/dl-addr.c: Ditto.
10696 * libc/sys/linux/dl/dl-cache.c: Ditto.
10697 * libc/sys/linux/dl/dl-cache.h: Ditto.
10698 * libc/sys/linux/dl/dl-close.c: Ditto.
10699 * libc/sys/linux/dl/dl-debug.c: Ditto.
10700 * libc/sys/linux/dl/dl-deps.c: Ditto.
10701 * libc/sys/linux/dl/dl-dst.h: Ditto.
10702 * libc/sys/linux/dl/dl-error.c: Ditto.
10703 * libc/sys/linux/dl/dl-fini.c: Ditto.
10704 * libc/sys/linux/dl/dl-init.c: Ditto.
10705 * libc/sys/linux/dl/dl-iteratephdr.c: Ditto.
10706 * libc/sys/linux/dl/dl-libc.c: Ditto.
10707 * libc/sys/linux/dl/dl-librecon.h: Ditto.
10708 * libc/sys/linux/dl/dl-load.c: Ditto.
10709 * libc/sys/linux/dl/dl-lookup.c: Ditto.
10710 * libc/sys/linux/dl/dl-lookupcfg.h: Ditto.
10711 * libc/sys/linux/dl/dl-minimal.c: Ditto.
10712 * libc/sys/linux/dl/dl-misc.c: Ditto.
10713 * libc/sys/linux/dl/dl-object.c: Ditto.
10714 * libc/sys/linux/dl/dl-open.c: Ditto.
10715 * libc/sys/linux/dl/dl-osinfo.h: Ditto.
10716 * libc/sys/linux/dl/dl-profile.c: Ditto.
10717 * libc/sys/linux/dl/dl-profstub.c: Ditto.
10718 * libc/sys/linux/dl/dl-reloc.c: Ditto.
10719 * libc/sys/linux/dl/dl-runtime.c: Ditto.
10720 * libc/sys/linux/dl/dl-support.c: Ditto.
10721 * libc/sys/linux/dl/dl-sym.c: Ditto.
10722 * libc/sys/linux/dl/dl-version.c: Ditto.
10723 * libc/sys/linux/dl/dlfcn.h: Ditto.
10724 * libc/sys/linux/dl/do-lookup.h: Ditto.
10725 * libc/sys/linux/dl/do-rel.h: Ditto.
10726 * libc/sys/linux/dl/dynamic-link.h: Ditto.
10727 * libc/sys/linux/dl/kernel-features.h: Ditto.
10728 * libc/sys/linux/dl/ldsodefs.h: Ditto.
10729 * libc/sys/linux/dl/libintl.h: Ditto.
10730 * libc/sys/linux/dl/trusted-dirs.h: Ditto.
10731 * libc/sys/linux/dl/unsecvars.h: Ditto.
10732 * libc/sys/linux/iconv/Makefile.am: Ditto.
10733 * libc/sys/linux/iconv/Makefile.in: Ditto.
10734 * libc/sys/linux/iconv/categories.def: Ditto.
10735 * libc/sys/linux/iconv/dummy-repertoire.c: Ditto.
10736 * libc/sys/linux/iconv/gconv.c: Ditto.
10737 * libc/sys/linux/iconv/gconv_builtin.c: Ditto.
10738 * libc/sys/linux/iconv/gconv_builtin.h: Ditto.
10739 * libc/sys/linux/iconv/gconv_cache.c: Ditto.
10740 * libc/sys/linux/iconv/gconv_charset.h: Ditto.
10741 * libc/sys/linux/iconv/gconv_close.c: Ditto.
10742 * libc/sys/linux/iconv/gconv_conf.c: Ditto.
10743 * libc/sys/linux/iconv/gconv_db.c: Ditto.
10744 * libc/sys/linux/iconv/gconv_dl.c: Ditto.
10745 * libc/sys/linux/iconv/gconv_int.h: Ditto.
10746 * libc/sys/linux/iconv/gconv_open.c: Ditto.
10747 * libc/sys/linux/iconv/gconv_simple.c: Ditto.
10748 * libc/sys/linux/iconv/gconv_trans.c: Ditto.
10749 * libc/sys/linux/iconv/hash-string.h: Ditto.
10750 * libc/sys/linux/iconv/iconv.c: Ditto.
10751 * libc/sys/linux/iconv/iconv.h: Ditto.
10752 * libc/sys/linux/iconv/iconv_charmap.c: Ditto.
10753 * libc/sys/linux/iconv/iconv_close.c: Ditto.
10754 * libc/sys/linux/iconv/iconv_open.c: Ditto.
10755 * libc/sys/linux/iconv/iconvconfig.c: Ditto.
10756 * libc/sys/linux/iconv/iconvconfig.h: Ditto.
10757 * libc/sys/linux/iconv/loadinfo.h: Ditto.
10758 * libc/sys/linux/iconv/localeinfo.h: Ditto.
10759 * libc/sys/linux/iconv/loop.c: Ditto.
10760 * libc/sys/linux/iconv/skeleton.c: Ditto.
10761 * libc/sys/linux/iconv/strtab.c: Ditto.
10762 * libc/sys/linux/include/dl-hash.h: Ditto.
10763 * libc/sys/linux/include/dlfcn.h: Ditto.
10764 * libc/sys/linux/include/fnmatch.h: Ditto.
10765 * libc/sys/linux/include/gconv.h: Ditto.
10766 * libc/sys/linux/include/glob.h: Ditto.
10767 * libc/sys/linux/include/hesiod.h: Ditto.
10768 * libc/sys/linux/include/ifaddrs.h: Ditto.
10769 * libc/sys/linux/include/libc_private.h: Ditto.
10770 * libc/sys/linux/include/link.h: Ditto.
10771 * libc/sys/linux/include/namespace.h: Ditto.
10772 * libc/sys/linux/include/netconfig.h: Ditto.
10773 * libc/sys/linux/include/netdb.h: Ditto.
10774 * libc/sys/linux/include/nsswitch.h: Ditto.
10775 * libc/sys/linux/include/regex.h: Ditto.
10776 * libc/sys/linux/include/resolv.h: Ditto.
10777 * libc/sys/linux/include/rune.h: Ditto.
10778 * libc/sys/linux/include/runetype.h: Ditto.
10779 * libc/sys/linux/include/semaphore.h: Ditto.
10780 * libc/sys/linux/include/setlocale.h: Ditto.
10781 * libc/sys/linux/include/un-namespace.h: Ditto.
10782 * libc/sys/linux/include/wordexp.h: Ditto.
10783 * libc/sys/linux/include/arpa/ftp.h: Ditto.
10784 * libc/sys/linux/include/arpa/inet.h: Ditto.
10785 * libc/sys/linux/include/arpa/nameser.h: Ditto.
10786 * libc/sys/linux/include/arpa/nameser_compat.h: Ditto.
10787 * libc/sys/linux/include/arpa/telnet.h: Ditto.
10788 * libc/sys/linux/include/arpa/tftp.h: Ditto.
10789 * libc/sys/linux/include/net/bpf.h: Ditto.
10790 * libc/sys/linux/include/net/bpf_compat.h: Ditto.
10791 * libc/sys/linux/include/net/bpfdesc.h: Ditto.
10792 * libc/sys/linux/include/net/bridge.h: Ditto.
10793 * libc/sys/linux/include/net/ethernet.h: Ditto.
10794 * libc/sys/linux/include/net/fddi.h: Ditto.
10795 * libc/sys/linux/include/net/if.h: Ditto.
10796 * libc/sys/linux/include/net/if_arc.h: Ditto.
10797 * libc/sys/linux/include/net/if_arp.h: Ditto.
10798 * libc/sys/linux/include/net/if_atm.h: Ditto.
10799 * libc/sys/linux/include/net/if_dl.h: Ditto.
10800 * libc/sys/linux/include/net/if_gif.h: Ditto.
10801 * libc/sys/linux/include/net/if_ieee80211.h: Ditto.
10802 * libc/sys/linux/include/net/if_llc.h: Ditto.
10803 * libc/sys/linux/include/net/if_media.h: Ditto.
10804 * libc/sys/linux/include/net/if_mib.h: Ditto.
10805 * libc/sys/linux/include/net/if_ppp.h: Ditto.
10806 * libc/sys/linux/include/net/if_pppvar.h: Ditto.
10807 * libc/sys/linux/include/net/if_slvar.h: Ditto.
10808 * libc/sys/linux/include/net/if_sppp.h: Ditto.
10809 * libc/sys/linux/include/net/if_stf.h: Ditto.
10810 * libc/sys/linux/include/net/if_tap.h: Ditto.
10811 * libc/sys/linux/include/net/if_tapvar.h: Ditto.
10812 * libc/sys/linux/include/net/if_tun.h: Ditto.
10813 * libc/sys/linux/include/net/if_tunvar.h: Ditto.
10814 * libc/sys/linux/include/net/if_types.h: Ditto.
10815 * libc/sys/linux/include/net/if_var.h: Ditto.
10816 * libc/sys/linux/include/net/if_vlan_var.h: Ditto.
10817 * libc/sys/linux/include/net/intrq.h: Ditto.
10818 * libc/sys/linux/include/net/iso88025.h: Ditto.
10819 * libc/sys/linux/include/net/net_osdep.h: Ditto.
10820 * libc/sys/linux/include/net/netisr.h: Ditto.
10821 * libc/sys/linux/include/net/pfil.h: Ditto.
10822 * libc/sys/linux/include/net/pfkeyv2.h: Ditto.
10823 * libc/sys/linux/include/net/ppp_comp.h: Ditto.
10824 * libc/sys/linux/include/net/ppp_defs.h: Ditto.
10825 * libc/sys/linux/include/net/radix.h: Ditto.
10826 * libc/sys/linux/include/net/raw_cb.h: Ditto.
10827 * libc/sys/linux/include/net/route.h: Ditto.
10828 * libc/sys/linux/include/net/slcompress.h: Ditto.
10829 * libc/sys/linux/include/net/slip.h: Ditto.
10830 * libc/sys/linux/include/net/zlib.h: Ditto.
10831 * libc/sys/linux/include/netinet/icmp6.h: Ditto.
10832 * libc/sys/linux/include/netinet/icmp_var.h: Ditto.
10833 * libc/sys/linux/include/netinet/if_atm.h: Ditto.
10834 * libc/sys/linux/include/netinet/if_ether.h: Ditto.
10835 * libc/sys/linux/include/netinet/igmp.h: Ditto.
10836 * libc/sys/linux/include/netinet/igmp_var.h: Ditto.
10837 * libc/sys/linux/include/netinet/in.h: Ditto.
10838 * libc/sys/linux/include/netinet/in_gif.h: Ditto.
10839 * libc/sys/linux/include/netinet/in_pcb.h: Ditto.
10840 * libc/sys/linux/include/netinet/in_systm.h: Ditto.
10841 * libc/sys/linux/include/netinet/in_var.h: Ditto.
10842 * libc/sys/linux/include/netinet/ip.h: Ditto.
10843 * libc/sys/linux/include/netinet/ip6.h: Ditto.
10844 * libc/sys/linux/include/netinet/ip_dummynet.h: Ditto.
10845 * libc/sys/linux/include/netinet/ip_ecn.h: Ditto.
10846 * libc/sys/linux/include/netinet/ip_encap.h: Ditto.
10847 * libc/sys/linux/include/netinet/ip_flow.h: Ditto.
10848 * libc/sys/linux/include/netinet/ip_fw.h: Ditto.
10849 * libc/sys/linux/include/netinet/ip_icmp.h: Ditto.
10850 * libc/sys/linux/include/netinet/ip_mroute.h: Ditto.
10851 * libc/sys/linux/include/netinet/ip_var.h: Ditto.
10852 * libc/sys/linux/include/netinet/ipprotosw.h: Ditto.
10853 * libc/sys/linux/include/netinet/tcp.h: Ditto.
10854 * libc/sys/linux/include/netinet/tcp_debug.h: Ditto.
10855 * libc/sys/linux/include/netinet/tcp_fsm.h: Ditto.
10856 * libc/sys/linux/include/netinet/tcp_seq.h: Ditto.
10857 * libc/sys/linux/include/netinet/tcp_timer.h: Ditto.
10858 * libc/sys/linux/include/netinet/tcp_var.h: Ditto.
10859 * libc/sys/linux/include/netinet/tcpip.h: Ditto.
10860 * libc/sys/linux/include/netinet/udp.h: Ditto.
10861 * libc/sys/linux/include/netinet/udp_var.h: Ditto.
10862 * libc/sys/linux/include/netinet6/ah.h: Ditto.
10863 * libc/sys/linux/include/netinet6/ah6.h: Ditto.
10864 * libc/sys/linux/include/netinet6/esp.h: Ditto.
10865 * libc/sys/linux/include/netinet6/esp6.h: Ditto.
10866 * libc/sys/linux/include/netinet6/esp_rijndael.h: Ditto.
10867 * libc/sys/linux/include/netinet6/icmp6.h: Ditto.
10868 * libc/sys/linux/include/netinet6/in6.h: Ditto.
10869 * libc/sys/linux/include/netinet6/in6_gif.h: Ditto.
10870 * libc/sys/linux/include/netinet6/in6_ifattach.h: Ditto.
10871 * libc/sys/linux/include/netinet6/in6_pcb.h: Ditto.
10872 * libc/sys/linux/include/netinet6/in6_prefix.h: Ditto.
10873 * libc/sys/linux/include/netinet6/in6_var.h: Ditto.
10874 * libc/sys/linux/include/netinet6/ip6.h: Ditto.
10875 * libc/sys/linux/include/netinet6/ip6_ecn.h: Ditto.
10876 * libc/sys/linux/include/netinet6/ip6_fw.h: Ditto.
10877 * libc/sys/linux/include/netinet6/ip6_mroute.h: Ditto.
10878 * libc/sys/linux/include/netinet6/ip6_var.h: Ditto.
10879 * libc/sys/linux/include/netinet6/ip6protosw.h: Ditto.
10880 * libc/sys/linux/include/netinet6/ipcomp.h: Ditto.
10881 * libc/sys/linux/include/netinet6/ipcomp6.h: Ditto.
10882 * libc/sys/linux/include/netinet6/ipsec.h: Ditto.
10883 * libc/sys/linux/include/netinet6/ipsec6.h: Ditto.
10884 * libc/sys/linux/include/netinet6/mld6_var.h: Ditto.
10885 * libc/sys/linux/include/netinet6/nd6.h: Ditto.
10886 * libc/sys/linux/include/netinet6/pim6.h: Ditto.
10887 * libc/sys/linux/include/netinet6/pim6_var.h: Ditto.
10888 * libc/sys/linux/include/netinet6/raw_ip6.h: Ditto.
10889 * libc/sys/linux/include/netinet6/scope6_var.h: Ditto.
10890 * libc/sys/linux/include/netinet6/tcp6_var.h: Ditto.
10891 * libc/sys/linux/include/netinet6/udp6_var.h: Ditto.
10892 * libc/sys/linux/include/netns/idp.h: Ditto.
10893 * libc/sys/linux/include/netns/idp_var.h: Ditto.
10894 * libc/sys/linux/include/netns/ns.h: Ditto.
10895 * libc/sys/linux/include/netns/ns_error.h: Ditto.
10896 * libc/sys/linux/include/netns/ns_if.h: Ditto.
10897 * libc/sys/linux/include/netns/ns_pcb.h: Ditto.
10898 * libc/sys/linux/include/netns/sp.h: Ditto.
10899 * libc/sys/linux/include/netns/spidp.h: Ditto.
10900 * libc/sys/linux/include/netns/spp_debug.h: Ditto.
10901 * libc/sys/linux/include/netns/spp_timer.h: Ditto.
10902 * libc/sys/linux/include/netns/spp_var.h: Ditto.
10903 * libc/sys/linux/include/rpc/Makefile: Ditto.
10904 * libc/sys/linux/include/rpc/auth.h: Ditto.
10905 * libc/sys/linux/include/rpc/auth_des.h: Ditto.
10906 * libc/sys/linux/include/rpc/auth_kerb.h: Ditto.
10907 * libc/sys/linux/include/rpc/auth_unix.h: Ditto.
10908 * libc/sys/linux/include/rpc/clnt.h: Ditto.
10909 * libc/sys/linux/include/rpc/clnt_soc.h: Ditto.
10910 * libc/sys/linux/include/rpc/clnt_stat.h: Ditto.
10911 * libc/sys/linux/include/rpc/des.h: Ditto.
10912 * libc/sys/linux/include/rpc/des_crypt.h: Ditto.
10913 * libc/sys/linux/include/rpc/nettype.h: Ditto.
10914 * libc/sys/linux/include/rpc/pmap_clnt.h: Ditto.
10915 * libc/sys/linux/include/rpc/pmap_prot.h: Ditto.
10916 * libc/sys/linux/include/rpc/pmap_rmt.h: Ditto.
10917 * libc/sys/linux/include/rpc/raw.h: Ditto.
10918 * libc/sys/linux/include/rpc/rpc.h: Ditto.
10919 * libc/sys/linux/include/rpc/rpc_com.h: Ditto.
10920 * libc/sys/linux/include/rpc/rpc_msg.h: Ditto.
10921 * libc/sys/linux/include/rpc/rpcb_clnt.h: Ditto.
10922 * libc/sys/linux/include/rpc/rpcb_prot.h: Ditto.
10923 * libc/sys/linux/include/rpc/rpcb_prot.x: Ditto.
10924 * libc/sys/linux/include/rpc/rpcent.h: Ditto.
10925 * libc/sys/linux/include/rpc/svc.h: Ditto.
10926 * libc/sys/linux/include/rpc/svc_auth.h: Ditto.
10927 * libc/sys/linux/include/rpc/svc_dg.h: Ditto.
10928 * libc/sys/linux/include/rpc/svc_soc.h: Ditto.
10929 * libc/sys/linux/include/rpc/types.h: Ditto.
10930 * libc/sys/linux/include/rpc/xdr.h: Ditto.
10931 * libc/sys/linux/intl/Makefile.am: Ditto.
10932 * libc/sys/linux/intl/Makefile.in: Ditto.
10933 * libc/sys/linux/intl/bindtextdom.c: Ditto.
10934 * libc/sys/linux/intl/catgets.c: Ditto.
10935 * libc/sys/linux/intl/catgetsinfo.h: Ditto.
10936 * libc/sys/linux/intl/config.h: Ditto.
10937 * libc/sys/linux/intl/dcgettext.c: Ditto.
10938 * libc/sys/linux/intl/dcigettext.c: Ditto.
10939 * libc/sys/linux/intl/dcngettext.c: Ditto.
10940 * libc/sys/linux/intl/dgettext.c: Ditto.
10941 * libc/sys/linux/intl/dngettext.c: Ditto.
10942 * libc/sys/linux/intl/explodename.c: Ditto.
10943 * libc/sys/linux/intl/finddomain.c: Ditto.
10944 * libc/sys/linux/intl/gettext.c: Ditto.
10945 * libc/sys/linux/intl/gettext.h: Ditto.
10946 * libc/sys/linux/intl/gettextP.h: Ditto.
10947 * libc/sys/linux/intl/hash-string.h: Ditto.
10948 * libc/sys/linux/intl/l10nflist.c: Ditto.
10949 * libc/sys/linux/intl/loadinfo.h: Ditto.
10950 * libc/sys/linux/intl/loadmsgcat.c: Ditto.
10951 * libc/sys/linux/intl/locale.alias: Ditto.
10952 * libc/sys/linux/intl/localealias.c: Ditto.
10953 * libc/sys/linux/intl/ngettext.c: Ditto.
10954 * libc/sys/linux/intl/open_catalog.c: Ditto.
10955 * libc/sys/linux/intl/plural.c: Ditto.
10956 * libc/sys/linux/intl/plural.y: Ditto.
10957 * libc/sys/linux/intl/stpcpy.c: Ditto.
10958 * libc/sys/linux/intl/textdomain.c: Ditto.
10959 * libc/sys/linux/linuxthreads/LICENSE: Ditto.
10960 * libc/sys/linux/linuxthreads/Makefile.am: Ditto.
10961 * libc/sys/linux/linuxthreads/Makefile.in: Ditto.
10962 * libc/sys/linux/linuxthreads/aclocal.m4: Ditto.
10963 * libc/sys/linux/linuxthreads/attr.c: Ditto.
10964 * libc/sys/linux/linuxthreads/barrier.c: Ditto.
10965 * libc/sys/linux/linuxthreads/bp-sym.h: Ditto.
10966 * libc/sys/linux/linuxthreads/cancel.c: Ditto.
10967 * libc/sys/linux/linuxthreads/condvar.c: Ditto.
10968 * libc/sys/linux/linuxthreads/config.h: Ditto.
10969 * libc/sys/linux/linuxthreads/configure: Ditto.
10970 * libc/sys/linux/linuxthreads/configure.in: Ditto.
10971 * libc/sys/linux/linuxthreads/defs.awk: Ditto.
10972 * libc/sys/linux/linuxthreads/ecmutex.c: Ditto.
10973 * libc/sys/linux/linuxthreads/events.c: Ditto.
10974 * libc/sys/linux/linuxthreads/getcpuclockid.c: Ditto.
10975 * libc/sys/linux/linuxthreads/getreent.c: Ditto.
10976 * libc/sys/linux/linuxthreads/internals.h: Ditto.
10977 * libc/sys/linux/linuxthreads/join.c: Ditto.
10978 * libc/sys/linux/linuxthreads/joinrace.c: Ditto.
10979 * libc/sys/linux/linuxthreads/kernel-features.h: Ditto.
10980 * libc/sys/linux/linuxthreads/libc-internal.h: Ditto.
10981 * libc/sys/linux/linuxthreads/libc-symbols.h: Ditto.
10982 * libc/sys/linux/linuxthreads/linuxthreads.texi: Ditto.
10983 * libc/sys/linux/linuxthreads/lockfile.c: Ditto.
10984 * libc/sys/linux/linuxthreads/manager.c: Ditto.
10985 * libc/sys/linux/linuxthreads/mq_notify.c: Ditto.
10986 * libc/sys/linux/linuxthreads/mutex.c: Ditto.
10987 * libc/sys/linux/linuxthreads/no-tsd.c: Ditto.
10988 * libc/sys/linux/linuxthreads/oldsemaphore.c: Ditto.
10989 * libc/sys/linux/linuxthreads/posix-timer.h: Ditto.
10990 * libc/sys/linux/linuxthreads/prio.c: Ditto.
10991 * libc/sys/linux/linuxthreads/proc_service.h: Ditto.
10992 * libc/sys/linux/linuxthreads/pt-machine.c: Ditto.
10993 * libc/sys/linux/linuxthreads/ptclock_gettime.c: Ditto.
10994 * libc/sys/linux/linuxthreads/ptclock_settime.c: Ditto.
10995 * libc/sys/linux/linuxthreads/ptfork.c: Ditto.
10996 * libc/sys/linux/linuxthreads/pthread.c: Ditto.
10997 * libc/sys/linux/linuxthreads/ptlongjmp.c: Ditto.
10998 * libc/sys/linux/linuxthreads/queue.h: Ditto.
10999 * libc/sys/linux/linuxthreads/reent.c: Ditto.
11000 * libc/sys/linux/linuxthreads/reqsyscalls.c: Ditto.
11001 * libc/sys/linux/linuxthreads/restart.h: Ditto.
11002 * libc/sys/linux/linuxthreads/rwlock.c: Ditto.
11003 * libc/sys/linux/linuxthreads/semaphore.c: Ditto.
11004 * libc/sys/linux/linuxthreads/semaphore.h: Ditto.
11005 * libc/sys/linux/linuxthreads/shlib-compat.h: Ditto.
11006 * libc/sys/linux/linuxthreads/signals.c: Ditto.
11007 * libc/sys/linux/linuxthreads/specific.c: Ditto.
11008 * libc/sys/linux/linuxthreads/spinlock.c: Ditto.
11009 * libc/sys/linux/linuxthreads/spinlock.h: Ditto.
11010 * libc/sys/linux/linuxthreads/sysctl.c: Ditto.
11011 * libc/sys/linux/linuxthreads/td_init.c: Ditto.
11012 * libc/sys/linux/linuxthreads/td_log.c: Ditto.
11013 * libc/sys/linux/linuxthreads/td_symbol_list.c: Ditto.
11014 * libc/sys/linux/linuxthreads/td_ta_clear_event.c: Ditto.
11015 * libc/sys/linux/linuxthreads/td_ta_delete.c: Ditto.
11016 * libc/sys/linux/linuxthreads/td_ta_enable_stats.c: Ditto.
11017 * libc/sys/linux/linuxthreads/td_ta_event_addr.c: Ditto.
11018 * libc/sys/linux/linuxthreads/td_ta_event_getmsg.c: Ditto.
11019 * libc/sys/linux/linuxthreads/td_ta_get_nthreads.c: Ditto.
11020 * libc/sys/linux/linuxthreads/td_ta_get_ph.c: Ditto.
11021 * libc/sys/linux/linuxthreads/td_ta_get_stats.c: Ditto.
11022 * libc/sys/linux/linuxthreads/td_ta_map_id2thr.c: Ditto.
11023 * libc/sys/linux/linuxthreads/td_ta_map_lwp2thr.c: Ditto.
11024 * libc/sys/linux/linuxthreads/td_ta_new.c: Ditto.
11025 * libc/sys/linux/linuxthreads/td_ta_reset_stats.c: Ditto.
11026 * libc/sys/linux/linuxthreads/td_ta_set_event.c: Ditto.
11027 * libc/sys/linux/linuxthreads/td_ta_setconcurrency.c: Ditto.
11028 * libc/sys/linux/linuxthreads/td_ta_thr_iter.c: Ditto.
11029 * libc/sys/linux/linuxthreads/td_ta_tsd_iter.c: Ditto.
11030 * libc/sys/linux/linuxthreads/td_thr_clear_event.c: Ditto.
11031 * libc/sys/linux/linuxthreads/td_thr_dbresume.c: Ditto.
11032 * libc/sys/linux/linuxthreads/td_thr_dbsuspend.c: Ditto.
11033 * libc/sys/linux/linuxthreads/td_thr_event_enable.c: Ditto.
11034 * libc/sys/linux/linuxthreads/td_thr_event_getmsg.c: Ditto.
11035 * libc/sys/linux/linuxthreads/td_thr_get_info.c: Ditto.
11036 * libc/sys/linux/linuxthreads/td_thr_getfpregs.c: Ditto.
11037 * libc/sys/linux/linuxthreads/td_thr_getgregs.c: Ditto.
11038 * libc/sys/linux/linuxthreads/td_thr_getxregs.c: Ditto.
11039 * libc/sys/linux/linuxthreads/td_thr_getxregsize.c: Ditto.
11040 * libc/sys/linux/linuxthreads/td_thr_set_event.c: Ditto.
11041 * libc/sys/linux/linuxthreads/td_thr_setfpregs.c: Ditto.
11042 * libc/sys/linux/linuxthreads/td_thr_setgregs.c: Ditto.
11043 * libc/sys/linux/linuxthreads/td_thr_setprio.c: Ditto.
11044 * libc/sys/linux/linuxthreads/td_thr_setsigpending.c: Ditto.
11045 * libc/sys/linux/linuxthreads/td_thr_setxregs.c: Ditto.
11046 * libc/sys/linux/linuxthreads/td_thr_sigsetmask.c: Ditto.
11047 * libc/sys/linux/linuxthreads/td_thr_tsd.c: Ditto.
11048 * libc/sys/linux/linuxthreads/td_thr_validate.c: Ditto.
11049 * libc/sys/linux/linuxthreads/testrtsig.h: Ditto.
11050 * libc/sys/linux/linuxthreads/thread_db.h: Ditto.
11051 * libc/sys/linux/linuxthreads/thread_dbP.h: Ditto.
11052 * libc/sys/linux/linuxthreads/timer_create.c: Ditto.
11053 * libc/sys/linux/linuxthreads/timer_delete.c: Ditto.
11054 * libc/sys/linux/linuxthreads/timer_getoverr.c: Ditto.
11055 * libc/sys/linux/linuxthreads/timer_gettime.c: Ditto.
11056 * libc/sys/linux/linuxthreads/timer_routines.c: Ditto.
11057 * libc/sys/linux/linuxthreads/timer_settime.c: Ditto.
11058 * libc/sys/linux/linuxthreads/tst-cancel.c: Ditto.
11059 * libc/sys/linux/linuxthreads/tst-context.c: Ditto.
11060 * libc/sys/linux/linuxthreads/tststack.c: Ditto.
11061 * libc/sys/linux/linuxthreads/unload.c: Ditto.
11062 * libc/sys/linux/linuxthreads/weaks.c: Ditto.
11063 * libc/sys/linux/linuxthreads/wrapsyscall.c: Ditto.
11064 * libc/sys/linux/linuxthreads/bits/initspin.h: Ditto.
11065 * libc/sys/linux/linuxthreads/bits/libc-lock.h: Ditto.
11066 * libc/sys/linux/linuxthreads/bits/libc-tsd.h: Ditto.
11067 * libc/sys/linux/linuxthreads/bits/local_lim.h: Ditto.
11068 * libc/sys/linux/linuxthreads/bits/posix_opt.h: Ditto.
11069 * libc/sys/linux/linuxthreads/bits/pthreadtypes.h: Ditto.
11070 * libc/sys/linux/linuxthreads/bits/sigthread.h: Ditto.
11071 * libc/sys/linux/linuxthreads/machine/Makefile.am: Ditto.
11072 * libc/sys/linux/linuxthreads/machine/Makefile.in: Ditto.
11073 * libc/sys/linux/linuxthreads/machine/aclocal.m4: Ditto.
11074 * libc/sys/linux/linuxthreads/machine/configure: Ditto.
11075 * libc/sys/linux/linuxthreads/machine/configure.in: Ditto.
11076 * libc/sys/linux/linuxthreads/machine/generic/generic-sysd: Ditto.ep.h
11077 * libc/sys/linux/linuxthreads/machine/i386/Makefile.am: Ditto.
11078 * libc/sys/linux/linuxthreads/machine/i386/Makefile.in: Ditto.
11079 * libc/sys/linux/linuxthreads/machine/i386/aclocal.m4: Ditto.
11080 * libc/sys/linux/linuxthreads/machine/i386/bp-asm.h: Ditto.
11081 * libc/sys/linux/linuxthreads/machine/i386/clone.S: Ditto.
11082 * libc/sys/linux/linuxthreads/machine/i386/configure: Ditto.
11083 * libc/sys/linux/linuxthreads/machine/i386/configure.in: Ditto.
11084 * libc/sys/linux/linuxthreads/machine/i386/i386-sysdep.S: Ditto.
11085 * libc/sys/linux/linuxthreads/machine/i386/i386-sysdep.h: Ditto.
11086 * libc/sys/linux/linuxthreads/machine/i386/pspinlock.c: Ditto.
11087 * libc/sys/linux/linuxthreads/machine/i386/pt-machine.h: Ditto.
11088 * libc/sys/linux/linuxthreads/machine/i386/sigcontextinfo.h: Ditto.
11089 * libc/sys/linux/linuxthreads/machine/i386/stackinfo.h: Ditto.
11090 * libc/sys/linux/linuxthreads/machine/i386/sysdep.S: Ditto.
11091 * libc/sys/linux/linuxthreads/machine/i386/sysdep.h: Ditto.
11092 * libc/sys/linux/linuxthreads/machine/i386/useldt.h: Ditto.
11093 * libc/sys/linux/machine/i386/dl-machine.h: Ditto.
11094 * libc/sys/linux/net/Makefile.am: Ditto.
11095 * libc/sys/linux/net/Makefile.in: Ditto.
11096 * libc/sys/linux/net/addr2ascii.3: Ditto.
11097 * libc/sys/linux/net/addr2ascii.c: Ditto.
11098 * libc/sys/linux/net/ascii2addr.c: Ditto.
11099 * libc/sys/linux/net/base64.c: Ditto.
11100 * libc/sys/linux/net/bindresvport.c: Ditto.
11101 * libc/sys/linux/net/byteorder.3: Ditto.
11102 * libc/sys/linux/net/ether_addr.c: Ditto.
11103 * libc/sys/linux/net/ethers.3: Ditto.
11104 * libc/sys/linux/net/getaddrinfo.3: Ditto.
11105 * libc/sys/linux/net/getaddrinfo.c: Ditto.
11106 * libc/sys/linux/net/gethostbydns.c: Ditto.
11107 * libc/sys/linux/net/gethostbyht.c: Ditto.
11108 * libc/sys/linux/net/gethostbyname.3: Ditto.
11109 * libc/sys/linux/net/gethostbynis.c: Ditto.
11110 * libc/sys/linux/net/gethostnamadr.c: Ditto.
11111 * libc/sys/linux/net/getifaddrs.3: Ditto.
11112 * libc/sys/linux/net/getifaddrs.c: Ditto.
11113 * libc/sys/linux/net/getipnodebyname.3: Ditto.
11114 * libc/sys/linux/net/getnameinfo.3: Ditto.
11115 * libc/sys/linux/net/getnameinfo.c: Ditto.
11116 * libc/sys/linux/net/getnetbydns.c: Ditto.
11117 * libc/sys/linux/net/getnetbyht.c: Ditto.
11118 * libc/sys/linux/net/getnetbynis.c: Ditto.
11119 * libc/sys/linux/net/getnetent.3: Ditto.
11120 * libc/sys/linux/net/getnetnamadr.c: Ditto.
11121 * libc/sys/linux/net/getproto.c: Ditto.
11122 * libc/sys/linux/net/getprotoent.3: Ditto.
11123 * libc/sys/linux/net/getprotoent.c: Ditto.
11124 * libc/sys/linux/net/getprotoname.c: Ditto.
11125 * libc/sys/linux/net/getservbyname.c: Ditto.
11126 * libc/sys/linux/net/getservbyport.c: Ditto.
11127 * libc/sys/linux/net/getservent.3: Ditto.
11128 * libc/sys/linux/net/getservent.c: Ditto.
11129 * libc/sys/linux/net/herror.c: Ditto.
11130 * libc/sys/linux/net/hesiod.3: Ditto.
11131 * libc/sys/linux/net/hesiod.c: Ditto.
11132 * libc/sys/linux/net/if_indextoname.3: Ditto.
11133 * libc/sys/linux/net/ifname.c: Ditto.
11134 * libc/sys/linux/net/inet.3: Ditto.
11135 * libc/sys/linux/net/inet6_option_s: Ditto.pace.3
11136 * libc/sys/linux/net/inet6_rthdr_space.3: Ditto.
11137 * libc/sys/linux/net/inet_addr.c: Ditto.
11138 * libc/sys/linux/net/inet_lnaof.c: Ditto.
11139 * libc/sys/linux/net/inet_makeaddr.c: Ditto.
11140 * libc/sys/linux/net/inet_net.3: Ditto.
11141 * libc/sys/linux/net/inet_net_ntop.c: Ditto.
11142 * libc/sys/linux/net/inet_net_pton.c: Ditto.
11143 * libc/sys/linux/net/inet_neta.c: Ditto.
11144 * libc/sys/linux/net/inet_netof.c: Ditto.
11145 * libc/sys/linux/net/inet_network.c: Ditto.
11146 * libc/sys/linux/net/inet_ntoa.c: Ditto.
11147 * libc/sys/linux/net/inet_ntop.c: Ditto.
11148 * libc/sys/linux/net/inet_pton.c: Ditto.
11149 * libc/sys/linux/net/innetgr-stub.c: Ditto.
11150 * libc/sys/linux/net/ip6opt.c: Ditto.
11151 * libc/sys/linux/net/iso_addr.3: Ditto.
11152 * libc/sys/linux/net/iso_addr.c: Ditto.
11153 * libc/sys/linux/net/issetugid-stub.c: Ditto.
11154 * libc/sys/linux/net/linkaddr.3: Ditto.
11155 * libc/sys/linux/net/linkaddr.c: Ditto.
11156 * libc/sys/linux/net/map_v4v6.c: Ditto.
11157 * libc/sys/linux/net/name6.c: Ditto.
11158 * libc/sys/linux/net/namespace.h: Ditto.
11159 * libc/sys/linux/net/ns.3: Ditto.
11160 * libc/sys/linux/net/ns_addr.c: Ditto.
11161 * libc/sys/linux/net/ns_name.c: Ditto.
11162 * libc/sys/linux/net/ns_netint.c: Ditto.
11163 * libc/sys/linux/net/ns_ntoa.c: Ditto.
11164 * libc/sys/linux/net/ns_parse.c: Ditto.
11165 * libc/sys/linux/net/ns_print.c: Ditto.
11166 * libc/sys/linux/net/ns_ttl.c: Ditto.
11167 * libc/sys/linux/net/nsap_addr.c: Ditto.
11168 * libc/sys/linux/net/nsdispatch.3: Ditto.
11169 * libc/sys/linux/net/nsdispatch.c: Ditto.
11170 * libc/sys/linux/net/nslexer.c: Ditto.
11171 * libc/sys/linux/net/nslexer.l: Ditto.
11172 * libc/sys/linux/net/nsparser.c: Ditto.
11173 * libc/sys/linux/net/nsparser.h: Ditto.
11174 * libc/sys/linux/net/nsparser.y: Ditto.
11175 * libc/sys/linux/net/rcmd.3: Ditto.
11176 * libc/sys/linux/net/rcmd.c: Ditto.
11177 * libc/sys/linux/net/rcmdsh.3: Ditto.
11178 * libc/sys/linux/net/rcmdsh.c: Ditto.
11179 * libc/sys/linux/net/recv.c: Ditto.
11180 * libc/sys/linux/net/res_comp.c: Ditto.
11181 * libc/sys/linux/net/res_config.h: Ditto.
11182 * libc/sys/linux/net/res_data.c: Ditto.
11183 * libc/sys/linux/net/res_debug.c: Ditto.
11184 * libc/sys/linux/net/res_init.c: Ditto.
11185 * libc/sys/linux/net/res_mkquery.c: Ditto.
11186 * libc/sys/linux/net/res_mkupdate.c: Ditto.
11187 * libc/sys/linux/net/res_query.c: Ditto.
11188 * libc/sys/linux/net/res_send.c: Ditto.
11189 * libc/sys/linux/net/res_update.c: Ditto.
11190 * libc/sys/linux/net/resolver.3: Ditto.
11191 * libc/sys/linux/net/rthdr.c: Ditto.
11192 * libc/sys/linux/net/send.c: Ditto.
11193 * libc/sys/linux/net/un-namespace.h: Ditto.
11194 * libc/sys/linux/net/vars.c: Ditto.
11195 * libc/sys/linux/stdlib/COPYRIGHT: Ditto.
11196 * libc/sys/linux/stdlib/Makefile.am: Ditto.
11197 * libc/sys/linux/stdlib/Makefile.in: Ditto.
11198 * libc/sys/linux/stdlib/cclass.h: Ditto.
11199 * libc/sys/linux/stdlib/cname.h: Ditto.
11200 * libc/sys/linux/stdlib/collate.c: Ditto.
11201 * libc/sys/linux/stdlib/collate.h: Ditto.
11202 * libc/sys/linux/stdlib/collcmp.c: Ditto.
11203 * libc/sys/linux/stdlib/engine.c: Ditto.
11204 * libc/sys/linux/stdlib/fnmatch.3: Ditto.
11205 * libc/sys/linux/stdlib/fnmatch.c: Ditto.
11206 * libc/sys/linux/stdlib/glob.3: Ditto.
11207 * libc/sys/linux/stdlib/glob.c: Ditto.
11208 * libc/sys/linux/stdlib/reallocf.c: Ditto.
11209 * libc/sys/linux/stdlib/regcomp.c: Ditto.
11210 * libc/sys/linux/stdlib/regerror.c: Ditto.
11211 * libc/sys/linux/stdlib/regex.3: Ditto.
11212 * libc/sys/linux/stdlib/regex2.h: Ditto.
11213 * libc/sys/linux/stdlib/regexec.c: Ditto.
11214 * libc/sys/linux/stdlib/regfree.c: Ditto.
11215 * libc/sys/linux/stdlib/utils.h: Ditto.
11216 * libc/sys/linux/stdlib/wordexp.c: Ditto.
11217 * libc/sys/linux/stdlib/wordfree.c: Ditto.
11218 * libc/sys/linux/sys/dlfcn.h: Ditto.
11219 * libc/sys/linux/sys/elfclass.h: Ditto.
11220 * libc/sys/linux/sys/event.h: Ditto.
11221 * libc/sys/linux/sys/ioccom.h: Ditto.
11222 * libc/sys/linux/sys/libc-tsd.h: Ditto.
11223 * libc/sys/linux/sys/link.h: Ditto.
11224 * libc/sys/linux/sys/lock.h: Ditto.
11225 * libc/sys/linux/sys/param.h: Ditto.
11226 * libc/sys/linux/sys/socket.h: Ditto.
11227 * libc/sys/linux/sys/sockio.h: Ditto.
11228
17c0c97d 112292003-05-28 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
82095e79 11230
17c0c97d 11231 * newlib/libc/machine/h8300/memcpy.S: Use .h8300hn and .h8300sn for
82095e79
JJ
11232 normal mode
11233 * newlib/libc/machine/h8300/memset.S: Likewise
11234 * newlib/lib/machine/h8300/reg_memcpy.S: Likewise
11235 * newlib/lib/machine/h8300/reg_memset.S: Likewise
11236 * newlib/lib/machine/h8300/setjmp.S: Likewise
11237 * newlib/lib/machine/h8300/strcmp.S: Likewise
11238 * newlib/lib/sys/h8300hms/crt0.S: Likewise
11239
8a4b4764
CV
112402003-05-13 Corinna Vinschen <corinna@vinschen.de>
11241
11242 * libc/ctype/ctype_.c: Remove checks for deprecated __CYGWIN32__.
11243 * libc/include/stdio.h: Ditto.
11244 * libc/include/sys/config.h: Ditto.
11245 * libc/stdio/mktemp.c: Ditto.
11246
837e070f
CV
112472003-05-13 Corinna Vinschen <corinna@vinschen.de>
11248
11249 * libc/locale/ldpart.c (__part_load_locale): Substitute
11250 __CYGWIN_USE_BIG_TYPES__ by __USE_INTERNAL_STAT64.
11251 * libc/search/hash.c (__hash_open): Ditto.
11252 (init_hash): Ditto.
11253 * libc/stdio/fseek.c (fseek): Ditto.
11254 * libc/stdio/makebuf.c (__smakebuf): Ditto.
11255 * libc/stdio/mktemp.c (_gettemp): Ditto.
11256
b47fcdf0
CV
112572003-05-12 Corinna Vinschen <corinna@vinschen.de>
11258
11259 * libc/include/stdio.h: Change one __CYGWIN__ to __CYGWIN32__.
11260
11e3a520
CV
112612003-05-12 Corinna Vinschen <corinna@vinschen.de>
11262
11263 * configure.host: Accomodate removing the libc/sys/cygwin dir.
11264 * libc/locale/ldpart.c (__part_load_locale): Use 64 bit stat call
11265 if __CYGWIN_USE_BIG_TYPES__ is set.
11266 * libc/search/hash.c (__hash_open): Ditto.
11267 (init_hash): Ditto.
11268 * libc/stdio/fseek.c (fseek): Ditto.
11269 * libc/stdio/makebuf.c (__smakebuf): Ditto.
11270 * libc/stdio/mktemp.c (_gettemp): Ditto.
11271 * libc/sys/cygwin/Makefile.am: Remove.
11272 * libc/sys/cygwin/Makefile.in: Remove.
11273 * libc/sys/cygwin/aclocal.m4: Remove.
11274 * libc/sys/cygwin/configure: Remove.
11275 * libc/sys/cygwin/configure.in: Remove.
11276 * libc/sys/cygwin/crt0.c: Move to winsup/cygwin directory.
11277 * libc/sys/cygwin/sys/dirent.h: Move to winsup/cygwin/include/sys
11278 directory.
11279 * libc/sys/cygwin/sys/param.h: Ditto.
11280 * libc/sys/cygwin/sys/utime.h: Ditto.
11281 * libc/sys/cygwin/sys/utmp.h: Ditto.
11282
d1b5e65b
CV
112832003-05-11 Corinna Vinschen <corinna@vinschen.de>
11284
11285 * libc/include/sys/types.h: Don't define key_t for Cygwin.
11286
ec48a953
CF
112872003-05-10 Christopher Faylor <cgf@redhat.com>
11288
11289 * libc/sys/cygwin/sys/dirent.h (struct dirent): Accommodate (slightly)
11290 64 bit inodes.
11291
a3cc5851
CV
112922003-05-09 Corinna Vinschen <corinna@vinschen.de>
11293
11294 * libc/include/sys/config.h: Remove all Cygwin specific configuration.
11295 Include cygwin/config.h instead.
11296
57ff95d3
JJ
112972003-04-16 Jeff Johnston <jjohnstn@redhat.com>
11298
11299 * newlib/libc/machine/powerpc (ato*fix*.c,strto*fix*.c): Shield
11300 all code with #ifdef __SPE__ test.
11301 * newlib/libc/machine/powerpc (simdldtoa.c, ufix64toa.c): Ditto.
11302
cfd2c7be
CF
113032003-04-15 Chris January <chris@atomice.net>
11304
11305 * newlib/libc/include/sys/unistd.h: add declaration for gethostid on
11306 Cygwin.
11307
6f48c0ae
JR
113082003-04-09 J"orn Rennecke <joern.rennecke@superh.com>
11309
11310 * libc/machine/sh/memset.S: Avoid clobbering volatile
11311 objects following a tiny to-be-set array in the same quadword.
11312
8f8d09c0
CV
113132001-04-09 Corinna Vinschen <corinna@vinschen.de>
11314
17c0c97d 11315 * libc/include/wchar.h: Add definitions for wcswidth and wcwidth.
8f8d09c0
CV
11316 * libc/string/Makefile.am: Add wcswidth.c and wcwidth.c
11317 * libc/string/Makefile.in: Regenerated.
11318 * libc/string/wcswidth.c: New file.
11319 * libc/string/wcwidth.c: New file.
11320 * libc/string/wcstrings.tex: Add wcswidth and wcwidth.
11321
40c3b2d0
JR
11322Thu Apr 3 14:01:16 2003 J"orn Rennecke <joern.rennecke@superh.com>
11323
11324 * libc/machine/sh/memset.S: Fix problem with alloco region
11325 exceeding destination region for length >= 88 bytes, start
11326 & 0x16 == 0, end & 0x1f == 18.
11327
8ae6a3dd
CV
113282001-04-03 Corinna Vinschen <corinna@vinschen.de>
11329
11330 * libc/string/wcscoll.c: Fix comment.
11331
d122b1cc
CV
113322001-04-02 Corinna Vinschen <corinna@vinschen.de>
11333
11334 * libc/include/wchar.h: Add definition for wcscoll.
11335 * libc/string/Makefile.am: Add wcscoll.c.
11336 * libc/string/Makefile.in: Regenerated.
11337 * libc/string/wcscoll.c: New file.
17c0c97d 11338 * libc/string/wcstrings.tex: Add wcscoll.
d122b1cc 11339
31ee99a4
CV
113402003-04-01 Corinna Vinschen <corinna@vinschen.de>
11341
11342 * libc/stdio/sscanf.c: Update flags description.
11343 * libc/stdio/vfscanf.c: Add CHAR flag value to denote 8 bit target
11344 type.
11345 (__svfscanf_r): Add 'hh' and 'll' handling.
11346
d78045ee
CV
113472003-04-01 Corinna Vinschen <corinna@vinschen.de>
11348
11349 * libc/sys/cygwin/sys/dirent.h (struct DIR): Change type of
11350 __d_position member to _off_t.
11351
e6bdc6c5
JJ
113522003-03-20 Jeff Johnston <jjohnstn@redhat.com>
11353
11354 * libc/stdio/vfscanf.c (__svfscanf_r): For floating point conversion,
11355 count all characters used to create number against maximum width.
11356 * libc/machine/powerpc/vfscanf.c (__svfscanf_r): Ditto.
11357
e65d559e
JJ
113582003-03-18 D.Venkatasubramanian <dvenkat@noida.hcltech.com>
11359
11360 * libc/include/sys/h8300hms/crt0.S[__SIMULATOR__]: Add commandline
11361 support.
11362 * configure.host (h8300*-*-*): Added comment regarding -D__SIMULATOR__
11363 flag to support simulator only extensions.
11364
6b3bb52b
JJ
113652003-03-17 Bob Cassels <bcassels@abinitio.com>
11366
ba3ccd63 11367 * libc/string/wcschr.c: (wcschr): Look for character first,
6b3bb52b
JJ
11368 then for end of string, so you can do wcschr(x, '\0').
11369
17c0c97d 113702003-03-10 Corinna Vinschen <corinna@vinschen.de>
2a940c1a
CV
11371
11372 * libc/include/stdio.h: Declare fgetpos, fsetpos, fseeko and ftello
11373 with internal (_fpos_t and _off_t) datatypes when compiling newlib.
11374 * libc/include/sys/unistd.h: Declare _lseek using _off_t.
11375 * libc/reent/lseekr.c (_lseek_r): Use _off_t instead of off_t.
11376 * libc/stdio/fseeko.c (fseeko): Ditto.
11377 * libc/stdio/ftello.c (ftello): Ditto.
11378 * libc/stdio/stdio.c (__swrite): Ditto.
11379 (__sseek): Ditto.
11380 * libc/stdio/fgetpos.c (fgetpos): Use _fpos_t instead of fpos_t.
11381 * libc/stdio/fseek.c (fseek): Ditto.
11382 * libc/stdio/fsetpos.c (fsetpos): Ditto.
11383 * libc/stdio/ftell.c (ftell): Ditto.
11384 * libc/stdio/local.h: Declare __sseek using _off_t.
11385
150c2818
CV
113862003-03-09 Corinna Vinschen <corinna@vinschen.de>
11387
11388 * libc/reent/lseekr.c (lseek_r): Use _off_t instead of off_t.
11389
2c440f9c
CV
113902003-03-09 Corinna Vinschen <corinna@vinschen.de>
11391
11392 * libc/include/sys/config.h: Define __CYGWIN_USE_BIG_TYPES__ for
11393 Cygwin.
11394
f882fd15
CV
113952003-03-09 Corinna Vinschen <corinna@vinschen.de>
11396
11397 * libc/include/pwd.h: Add guards to avoid type clashes when compiling
11398 Cygwin.
11399 * libc/include/sys/stat.h: Ditto.
11400 * libc/include/sys/unistd.h: Ditto.
11401 * libc/sys/cygwin/sys/dirent.h: Ditto.
11402
01d61543
CF
114032003-03-07 Christopher Faylor <cgf@redhat.com>
11404
11405 * libc/include/sys/unistd.h: Guard getopt.h call to force only
11406 declaration of getopt and avoid getopt_long declaration.
11407 * libc/sys/cygwin/include/unistd.h: Remove.
11408
5582abd2
CV
114092003-03-07 Corinna Vinschen <corinna@vinschen.de>
11410
11411 * configure.host: Define stdio64_dir for Cygwin.
11412 * libc/include/stdio.h: Change definition of fpos_t to fulfill
11413 Cygwin 64bit file access requirements.
11414 Drop definition of f*64() functions when compiled for Cygwin.
11415 * libc/include/sys/config.h: Define __LARGE64_FILES for Cygwin.
11416 * libc/reent/lseek64r.c: Use _off64_t instead of off64_t.
11417 * libc/stdio64/local64.h: Use _fpos64_t instead of fpos64_t.
11418
641da1eb
JJ
114192003-03-07 Jeff Johnston <jjohnstn@redhat.com>
11420
11421 * libc/include/sys/reent.h: Remove extraneous _sig_func
11422 declaration.
11423
114242003-02-25 D.Venkatasubramanian <dvenkat@noida.hcltech.com>
41a639de
JJ
11425
11426 * libc/sys/h8300hms/Makefile.am: Add support for new files.
11427 * libc/sys/h8300hms/Makefile.in: Regenerated.
11428 * libc/sys/h8300hms/close.S: New file.
11429 * libc/sys/h8300hms/fstat.S: Ditto.
11430 * libc/sys/h8300hms/lseek.S: Ditto.
11431 * libc/sys/h8300hms/open.S: Ditto.
11432 * libc/sys/h8300hms/stat.S: Ditto.
11433 * libc/sys/h8300hms/read.S: New file to replace read.c.
11434 * libc/sys/h8300hms/read.c: Removed.
11435 * libc/sys/h8300hms/syscalls.c: Removed functions _open,
11436 _lseek, _close, _stat, _fstat.
11437 * libc/sys/h8300hms/write.S: New file to replace write.c.
11438 * libc/sys/h8300hms/write.c: Removed.
11439
bac50d6b
NC
114402003-02-20 Nick Clifton <nickc@redhat.com>
11441
11442 * Add support for Cirrus Maverick ARM co-processor:
17c0c97d 11443
bac50d6b
NC
11444 2000-09-13 Aldy Hernandez <aldyh@redhat.com>
11445
11446 * libc/include/machine/ieeefp.h: Set IEEE_BIG_ENDIAN or
11447 IEEE_LITTLE_ENDIAN depending on endian mode (cirrus).
11448
11449 2000-08-11 Aldy Hernandez <aldyh@redhat.com>
11450
11451 * configure.host: set sys_dir, syscall_dir, and
11452 newlib_cflags for ep9312 host.
11453
ba3ccd63 11454 * configure.host: Restore alpha sorting of entries in case
bac50d6b
NC
11455 statements.
11456
12ee7037
JJ
114572003-02-19 Jeff Johnston <jjohnstn@redhat.com>
11458
ba3ccd63 11459 * libc/stdlib/mallocr.c (unlink): Revert 02/18 fix.
12ee7037 11460
1e810ba0
JJ
114612003-02-18 Christian Groessler <chris@groessler.org>
11462
11463 * libc/machine/z8k/setjmp.S (_setjmp / _longjmp): Fix to
11464 support z8001 segmented mode.
11465
b1ca765e
JJ
114662003-02-18 Earnie Boyd <earnie@users.sf.net>
11467
11468 * libc/stdlib/mallocr.c (unlink): Don't assign a value to a pointer
11469 with a NULL value.
11470
51a46b54
CF
114712003-02-10 Christopher Faylor <cgf@redhat.com>
11472
11473 * libc/include/sys/types.h: Don't define __MS_types__ for Cygwin.
11474 Don't define some types under cygwin.
11475
313f1349
JJ
114762003-02-07 Jeff Johnston <jjohnstn@redhat.com>
11477
17c0c97d 11478 * acinclude.m4 (--disable-newlib-supplied-syscalls): New configuration
313f1349
JJ
11479 option to allow disabling of syscalls being supplied in newlib.
11480 * aclocal.m4: Regenerated.
11481 * configure: Ditto.
11482 * configure.host: Add support of new configuration option and add
11483 -D__NO_SYSCALLS__ if newlib supplied syscalls are disabled.
11484 * doc/aclocal.m4: Regenerated.
11485 * doc/configure: Ditto.
11486 * libc/*aclocal.m4: Ditto.
11487 * libc/*configure: Ditto.
11488 * libm/*aclocal.m4: Ditto.
11489 * libm/*configure: Ditto.
11490 * libc/sys/arm/Makefile.am: Don't build syscalls.o if new option
11491 is disabled.
11492 * libc/sys/arm/Makefile.in: Regenerated.
11493
5017a3da
JJ
114942003-02-05 Jonathan Larmour <jifl@eCosCentric.com>
11495
11496 * libc/stdio/vsprintf.c (vsprintf, _vsprintf_r): Set _file fd to
11497 -1 to be sure it cannot later match a valid file fd causing
11498 isatty() to return 1.
11499 * libc/stdio/asprintf.c (asprintf, _asprintf_r): Ditto.
11500 * libc/stdio/sprintf.c (sprintf, _sprintf_r): Ditto.
11501 * libc/stdio/vasprintf.c (vasprintf, _vasprintf_r): Ditto.
11502
ad36f7d1
JJ
115032003-02-03 Jeff Johnston <jjohnstn@redhat.com>
11504
11505 * libc/stdlib/ldtoa.c (_ldtoa_r): Fix code to allocate the format
17c0c97d
EB
11506 buffer based on the precision, after we have processed the input value
11507 in a local buffer and know its relative magnitude.
ad36f7d1 11508
a74181ee
JJ
115092003-01-31 Michael Snyder <msnyder@redhat.com>
11510
11511 * libc/sys/h8300hms/_exit.c (_exit, __exit): Slip a magic cookie
11512 into registers r1 and r2, so that the simulator can distinguish
11513 this trap from a breakpoint trap. Copied from libgloss.
11514
b85498d4
JJ
115152003-01-31 Michael Snyder <msnyder@redhat.com>
11516
11517 * libc/sys/h8300hms/crt0.S (_start): Change local label
11518 from .loop to .Loop, so that ld and gdb will ignore it.
11519
4700b829
JJ
115202003-01-29 Jason Tishler <jason@tishler.net>
11521
11522 * libc/include/time.h: Declare nanosleep() under Cygwin.
11523
0127ae40
NC
115242003-01-24 Nick Clifton <nickc@redhat.com>
11525
11526 * Add sh2e support:
11527
11528 2002-04-02 Alexandre Oliva <aoliva@redhat.com>
11529
11530 * libc/machine/sh/asm.h: Added __SH2E__ next to __SH3E__.
11531 * libc/machine/sh/setjmp.S: Likewise.
11532 * libc/include/machine/ieeefp.h: Likewise.
11533
8bbcd9a1
CV
115342003-01-24 Corinna Vinschen <corinna@vinschen.de>
11535
11536 * libc/include/sys/unistd.h: Add setregid and setreuid declarations
11537 for Cygwin.
11538
b8838e6f 115392003-01-21 Anita Kulkarni <anitak@kpit.com>
17c0c97d 11540
b8838e6f
JJ
11541 * libc/time/difftime.c : Typecast the result to double.
11542
f9e41155
CF
115432003-01-20 Christopher Faylor <cgf@redhat.com>
11544
11545 * libc/include/sys/unistd.h: Add rresvport declaration for cygwin.
11546
6b5a7988
NC
115472003-01-18 Nick Clifton <nickc@redhat.com>
11548
11549 * libc/include/machine/ieeefp.h : Define __IEEE_BIG_ENDIAN,
11550 __SMALL_BITFIELDS and _DOUBLE_IS_32BITS for IP2K.
11551
c3e92877
JJ
115522003-01-16 Joel Sherrill <joel@OARcorp.com>
11553
ba3ccd63
EB
11554 * libc/sys/rtems/include/limits.h, libc/sys/rtems/sys/param.h,
11555 libc/sys/rtems/sys/syslimits.h: Update to be in sync with what
11556 constants are defined in each file in the shared versions in
11557 libc/include.
11558 * libc/sys/rtems/crt0.c: Define extra symbols on SH and HP-PA to
11559 autoconf can link programs.
11560 * libc/include/machine/types.h: Explicitly specify signed on
11561 intXX_t types to ensure they are signed.
c3e92877 11562
84510217
CF
115632003-01-14 Christopher Faylor <cgf@redhat.com>
11564
11565 * libc/time/strftime.c (strftime): Add '%h' and '%l, %k' GNU
11566 extensions.
11567
b3934ab3
RS
115682003-01-08 Richard Sandiford <rsandifo@redhat.com>
11569
11570 * configure.host (mips64vr-elf, mips64vrel-elf): New config.
11571
be9c60e5
JJ
115722003-01-07 Charles Wilson <cwilson@ece.gatech.edu>
11573
11574 * libc/stdio/sprintf.c: fix typo
11575 * libc/stdio/vfprintf.c: fix typo
11576
d4c3a750
JJ
115772003-01-07 Jeff Johnston <jjohnstn@redhat.com>
11578
11579 * configure.host: Support long double I/O for x86-linux.
11580 * libc/stdlib/ldtoa.c (_ldtoa_r): Fix code to allocate a buffer
11581 large enough to hold formatted result.
11582 * libc/machine/powerpc/simdldtoa.c (_simdldtoa_r): Ditto.
11583
b2294aaa
JJ
115842003-01-06 Charles Wilson <cwilson@ece.gatech.edu>
11585
11586 * Makefile.am: Add vasprintf.
11587 * Makefile.in: Regenerated.
11588
ea5e5daf
JJ
115892003-01-06 Charles Wilson <cwilson@ece.gatech.edu>
11590
11591 * asprintf.c (_asprintf_r): insure both declarations
11592 are the same.
11593
5c581eca
CF
115942002-12-28 Christopher Faylor <cgf@redhat.com>
11595
11596 * libc/include/sys/unistd.h: Under cygwin, just include getopt.h rather
11597 than defining getopt directly.
11598
60b0838f
JJ
115992002-12-20 Jeff Johnston <jjohnstn@redhat.com>
11600
11601 * NEWS: Update with 1.11.0 info.
11602 * README: Ditto.
11603 * acinclude.m4: Change version number to 1.11.0.
11604 * aclocal.m4: Regenerated.
11605 * configure: Ditto.
11606 * doc/aclocal.m4: Ditto.
11607 * doc/configure: Ditto.
11608 * libc/*/aclocal.m4: Ditto.
11609 * libc/*/configure: Ditto.
11610 * libc/libc.texinfo: Ditto.
11611 * libm/*/aclocal.m4: Ditto.
11612 * libm/*/configure: Ditto.
11613 * libm/libm.texinfo: Ditto.
11614 * libc/sys/linux/shared.ld: Add VERS_1.11.
11615
10501d57
JJ
116162002-12-20 Jeff Johnston <jjohnstn@redhat.com>
11617
11618 * libc/machine/i386/f_atan2.S: Change copyright from Cygnus
11619 Solutions to Red Hat Inc.
11620 * libc/machine/i386/f_atan2f.S: Ditto.
11621 * libc/machine/i386/f_exp.c: Ditto.
11622 * libc/machine/i386/f_expf.c: Ditto.
11623 * libc/machine/i386/f_frexp.S: Ditto.
11624 * libc/machine/i386/f_frexpf.S: Ditto.
11625 * libc/machine/i386/f_ldexp.S: Ditto.
11626 * libc/machine/i386/f_ldexpf.S: Ditto.
11627 * libc/machine/i386/f_log.S: Ditto.
11628 * libc/machine/i386/f_log10.S: Ditto.
11629 * libc/machine/i386/f_log10f.S: Ditto.
11630 * libc/machine/i386/f_logf.S: Ditto.
11631 * libc/machine/i386/f_pow.c: Ditto.
11632 * libc/machine/i386/f_powf.c: Ditto.
11633 * libc/machine/i386/f_tan.S: Ditto.
11634 * libc/machine/i386/f_tanf.S: Ditto.
11635 * libc/machine/i386/memchr.S: Ditto.
11636 * libc/machine/i386/memcmp.S: Ditto.
11637 * libc/machine/i386/memcpy.S: Ditto.
11638 * libc/machine/i386/memmove.S: Ditto.
11639 * libc/machine/i386/memset.S: Ditto.
11640 * libc/machine/i386/strchr.S: Ditto.
11641 * libc/machine/i386/strlen.S: Ditto.
11642 * libm/machine/i386/f_atan2.S: Ditto.
11643 * libm/machine/i386/f_atan2f.S: Ditto.
11644 * libm/machine/i386/f_exp.c: Ditto.
11645 * libm/machine/i386/f_expf.c: Ditto.
11646 * libm/machine/i386/f_frexp.S: Ditto.
11647 * libm/machine/i386/f_frexpf.S: Ditto.
11648 * libm/machine/i386/f_ldexp.S: Ditto.
11649 * libm/machine/i386/f_ldexpf.S: Ditto.
11650 * libm/machine/i386/f_log.S: Ditto.
11651 * libm/machine/i386/f_log10.S: Ditto.
11652 * libm/machine/i386/f_log10f.S: Ditto.
11653 * libm/machine/i386/f_logf.S: Ditto.
11654 * libm/machine/i386/f_pow.c: Ditto.
11655 * libm/machine/i386/f_powf.c: Ditto.
11656 * libm/machine/i386/f_tan.S: Ditto.
11657 * libm/machine/i386/f_tanf.S: Ditto.
11658
9b3f0d16
JJ
116592002-12-20 Jeff Johnston <jjohnstn@redhat.com>
11660
11661 * libc/stdlib/environ.c: Update license to Red Hat.
11662 * libc/machine/hppa/setjmp.S: Ditto.
11663 * libm/test/Makefile.in: Ditto.
11664
d693ad84
JJ
116652002-12-19 Jeff Johnston <jjohnstn@redhat.com>
11666
11667 * configure.host: Remove references to go32.
11668 * libc/sys/go32/*: Removed.
11669
7da92d15
JJ
116702002-12-16 Kazu Hirata <kazu@cs.umass.edu>
11671
11672 * libc/include/sys/config.h: Change setting of INT_MAX
11673 and UINT_MAX, to use __INT_MAX__ for __H8300__, __H8300H__,
11674 __H8300S__. Also consolidate flag settings for these
11675 platforms.
11676
ea01c7f5
JJ
116772002-12-10 Joel Sherrill <joel@OARcorp.com>
11678
11679 * libc/include/machine/setjmp.h: Make sure _JBLEN is defined
11680 for i386-rtems targets.
11681
c049dd5a
JJ
116822002-12-06 Jeff Johnston <jjohnstn@redhat.com>
11683
11684 * libc/include/stdlib.h (strtof): New prototype (from C99).
11685 (strtodf): Changed from prototype to macro which redefines
11686 to strtof.
11687 * libc/stdlib/atof.c: Change documentation to refer to strtof
11688 instead of strtodf.
11689 * libc/stdlib/atoff.c (atoff): Change to call strtof instead of
11690 strtodf.
11691 * libc/stdlib/strtod.c (strtodf): Renamed to strtof.
11692 (strtof): New function.
11693 * libm/test/convert.c (test_strtodf): Renamed to test_strtof which
11694 calls strtof.
11695
46a402e0
CF
116962002-11-27 Christopher Faylor <cgf@redhat.com>
11697
11698 * libc/string/memset.c (memset): Fix comment.
11699
b3cc01b0
CF
117002002-11-26 Christopher Faylor <cgf@redhat.com>
11701
11702 * libc/string/memset.c (memset): Move initialization of 'd' earlier in
11703 function.
11704
d90f3dc1
CF
117052002-11-25 Christopher Faylor <cgf@redhat.com>
11706
11707 * libc/string/memset.c (memset): Minor optimization: Use new 'd'
11708 variable, introduced below, everywhere.
11709
f24585c6
KH
117102002-11-25 Kazu Hirata <kazu@cs.umass.edu>
11711
11712 * libc/string/memset.c (memset): Make it safe even if
11713 sizeof (int) = 2.
11714
2955fd76
JJ
117152002-11-22 Joe Buehler <jbuehler@hekimian.com>
11716
11717 * configure.in: Change check for libc/include in ${CC} to
11718 use an intermediate value so as to work with different shells.
11719 * configure: Regenerated.
11720 * Makefile.in: Ditto.
11721
40ce7368
JJ
117222002-11-22 Vijay L. Khuspe <vijayk1@kpit.com>
11723
11724 * libc/sys/h8300hms/read.c: Add support for normal mode
11725 architecture.
11726
505746ad
JJ
117272002-11-20 Ryo Tsuruta <ryo@kitanet.ne.jp>
11728
11729 * libc/machine/h8300/setjmp.S (setjmp, longjmp): Combine common
11730 code for __H8300H__ and __H8300S__. Also return 32-bit return code
11731 when -mint32 is used.
11732
28ecb2f5
NC
117332002-11-18 Nick Clifton <nickc@redhat.com>
11734
11735 * libc/sys/arm/crt0.S: Add NULL to end of argv array.
11736
665b994e
JJ
117372002-11-14 Jeff Johnston <jjohnstn@redhat.com>
11738
ba3ccd63
EB
11739 * testsuite/lib/passfail.exp (newlib_pass_fail): Changed to
11740 only issue one pass/fail message for a compile/link/execute.
11741 * testsuite/newlib.elix/elix.exp: New file.
11742 * testsuite/newlib.elix/tmmap.c: Ditto.
665b994e 11743
e91ec2e3
CF
117442002-11-06 Christopher Faylor <cgf@redhat.com>
11745
11746 * libc/stdlib/malign.c: Don't compile if MALLOC_PROVIDED.
11747 * libc/stdlib/mlock.c: Ditto.
11748 * libc/stdlib/msize.c: Ditto.
11749 * libc/stdlib/msize.c: Ditto.
11750 * libc/stdlib/mtrim.c: Ditto.
11751 * libc/stdlib/valloc.c: Ditto.
11752
944772c7
JJ
117532002-11-12 Jeff Johnston <jjohnstn@redhat.com>
11754
ba3ccd63
EB
11755 * libc/stdlib/ldtoa.c (e64toe): When checking the exponent
11756 for inf/nan, make sure that the check ignores the sign bit.
944772c7 11757
dd7ee147
JJ
117582002-11-07 Joel Sherrill <joel@OARcorp.com>
11759
ba3ccd63
EB
11760 * libc/sys/rtems/machine: New directory.
11761 * libc/sys/rtems/machine/limits.h, libc/sys/rtems/machine/param.h,
11762 libc/sys/rtems/sys/param.h, libc/sys/rtems/sys/syslimits.h,
11763 libc/sys/rtems/sys/utime.h: New files added to make *-rtems newlib
11764 targets more BSD like when installed without requiring files to
11765 be overwritten at install point when RTEMS itself is installed.
11766 * Makefile.am: Pick up system dependent machine .h files such as
11767 might be found on a BSD-ish system.
11768 * Makefile.in: Regenerate.
11769 * libc/include/machine/types.h: When on an RTEMS target, define a
11770 few BSD flavor types.
dd7ee147
JJ
11771
117722002-11-06 Sergey Okhapkin <sos@prospect.com.ru>
503430d8
CF
11773
11774 * include/utmp.h: Define WTMP_FILE. Define and use UT_IDLEN.
11775
18cd62b7
JJ
117762002-11-06 Kazuhiro Fujieda <fujieda@jaist.ac.jp>
11777
ba3ccd63
EB
11778 * libc/include/wchar.h: Use _{BEGIN,END}_STD_C instead of extern "C".
11779 * libc/include/wctype.h: Ditto.
18cd62b7 11780
d2888812
JJ
117812002-11-04 Jeff Johnston <jjohnstn@redhat.com>
11782
ba3ccd63
EB
11783 * libc/include/wchar.h: Add extern "C" specifier if C++.
11784 * libc/include/wctype.h: Ditto.
d2888812 11785
978ea3cf
JJ
117862002-10-18 Jeff Johnston <jjohnstn@redhat.com>
11787
ba3ccd63
EB
11788 * testsuite/newlib.wctype/tiswctype.c: New test case.
11789 * testsuite/newlib.wctype/twctrans.c: Ditto.
978ea3cf 11790
a42cf80a
JJ
117912002-10-18 Jeff Johnston <jjohnstn@redhat.com>
11792
ba3ccd63
EB
11793 * libc/sys/linux/machine/i386/include/endian.h: New file.
11794 * libc/sys/linux/machine/i386/include/param.h: Ditto.
a42cf80a 11795
c9ccb1f2
JJ
117962002-10-18 Jeff Johnston <jjohnstn@redhat.com>
11797
11798 * libm/machine/i386/aclocal.m4: Regenerated.
11799 * libm/machine/i386/configure: Ditto.
11800
94c5b430
JJ
118012002-10-18 Jeff Johnston <jjohnstn@redhat.com>
11802
ba3ccd63
EB
11803 * testsuite/include/check.h: New header file to use with
11804 test cases.
11805 * testsuite/lib/newlib.exp: Add testsuite/include directory
11806 to list of header files to use.
11807 * testsuite/newlib.wctype/twctype.c: New test case for iswctype fns.
11808 * testsuite/newlib.wctype/wctype.exp: New file.
94c5b430 11809
ccdae543
RS
118102002-10-11 Graham Stott <graham.stott@btinternet.com>
11811 Richard Sandiford <rsandifo@redhat.com>
f770cf44
RS
11812
11813 * libc/include/sys/config.h (SIZE_T_SMALLER_THAN_LONG): Undefine.
11814 * libc/stdlib/mallocr.c (long_sub_size_t): Define in a way that
11815 doesn't require the SIZE_T_SMALLER_THAN_LONG macro.
11816
73972116
JS
118172002-10-07 Joel Sherrill <joel@OARcorp.com>
11818
11819 * libc/sys/rtems/crt0.c: Add even more symbols so gcc() can link
11820 dummy programs.
11821
89e3fcba
JS
118222002-10-07 Joel Sherrill <joel@OARcorp.com>
11823
11824 * libc/include/pthread.h: Define PTHREAD_CANCELED.
11825
54ec52e4
JS
118262002-10-07 Joel Sherrill <joel@OARcorp.com>
11827
11828 * libc/machine/hppa/DEFS.h, libc/machine/hppa/pcc_prefix.s,
11829 libc/machine/hppa/setjmp.S, libc/machine/hppa/DEFS.h: Make this
11830 compile with current GNU tools.
11831
d389acba
JJ
118322002-10-07 Jeff Johnston <jjohnstn@redhat.com>
11833
11834 * Makefile.am: Add EXTRA_DIRS to allow future dependencies on
11835 the build library.
11836 * configure.in: Ditto.
11837 * Makefile.in: Regenerated.
11838 * configure: Ditto.
11839 * libc/sys/linux/Makefile.am: Add EXTRA_SUBDIRS and EXTRA_SUBLIBS
11840 for specifying configured libraries/directories.
11841 * libc/sys/linux/configure.in: Ditto.
11842 * libc/sys/linux/Makefile.in: Regenerated.
11843 * libc/sys/linux/configure: Ditto.
11844
af5a221f
JJ
118452002-10-03 Jeff Johnston <jjohnstn@redhat.com>
11846
11847 * libc/include/reent.h: Update documentation at start of file.
11848
59a758bd
JW
118492002-09-27 Jim Wilson <wilson@redhat.com>
11850
11851 * libc/sys/sysnecv850/crt0.S (start): Delete v850 code for initializing
11852 the ctbp register.
11853
1ed3c86d
JJ
118542002-09-27 Jeff Johnston <jjohnstn@redhat.com>
11855
11856 * libc/ctype/jp2uc.c: Change to use multiple arrays in jp2uc.h.
11857 Also convert to EUCJP before using arrays. For values not in
11858 the conversion arrays, return WEOF.
11859 * libc/ctype/jp2uc.h: Change from one array to a number of
11860 arrays to account for the fact that the originating table
11861 is not contiguous for the input values since some are invalid.
11862
6e1dfd2d
JJ
118632002-09-24 Jeff Johnston <jjohnstn@redhat.com>
11864
11865 * libc/time/ctime.c: Fix prototype documentation.
11866
06f1353a
CV
118672002-09-24 Corinna Vinschen <corinna@vinschen.de>
11868
11869 * libc/include/sys/errno.h: Add EOVERFLOW.
11870
1e0e64c9
JJ
118712002-09-20 Jeff Johnston <jjohnstn@redhat.com>
11872
11873 * libc/include/wctype.h: New file.
11874
1525d127
JJ
118752002-09-20 Jeff Johnston <jjohnstn@redhat.com>
11876
ba3ccd63
EB
11877 * libc/ctype/Makefile.am: Add new files.
11878 * libc/ctype/Makefile.in: Regenerated.
11879 * libc/ctype/ctype.tex: Add new iswxxxx, towxxxx, wctype,
11880 and wctrans functions to documentation index.
11881 * libc/ctype/iswalnum.c: New file.
11882 * libc/ctype/iswalpha.c: Ditto.
11883 * libc/ctype/iswblank.c: Ditto.
11884 * libc/ctype/iswcntrl.c: Ditto.
11885 * libc/ctype/iswctype.c: Ditto.
11886 * libc/ctype/iswdigit.c: Ditto.
11887 * libc/ctype/iswgraph.c: Ditto.
11888 * libc/ctype/iswlower.c: Ditto.
11889 * libc/ctype/iswprint.c: Ditto.
11890 * libc/ctype/iswpunct.c: Ditto.
11891 * libc/ctype/iswspace.c: Ditto.
11892 * libc/ctype/iswupper.c: Ditto.
11893 * libc/ctype/iswxdigit.c: Ditto.
11894 * libc/ctype/jp2uc.c: Ditto.
11895 * libc/ctype/jp2uc.h: Ditto.
11896 * libc/ctype/local.h: Ditto.
11897 * libc/ctype/towctrans.c: Ditto.
11898 * libc/ctype/towlower.c: Ditto.
11899 * libc/ctype/towupper.c: Ditto.
11900 * libc/ctype/utf8alpha.h: Ditto.
11901 * libc/ctype/utf8print.h: Ditto.
11902 * libc/ctype/utf8punct.h: Ditto.
11903 * libc/ctype/wctrans.c: Ditto.
11904 * libc/ctype/wctype.c: Ditto.
11905 * libc/locale/locale.c (__lc_ctype): New external array to
11906 replace static lc_ctype array.
11907 * libc/stdlib/mbtowc_r.c: Use __lc_ctype to check current lc_ctype
11908 rather than reentrancy structure's _current_locale field.
11909 * libc/stdlib/wctomb_r.c: Ditto.
1525d127 11910
da25e61f
JJ
119112002-09-20 Jeff Johnston <jjohnstn@redhat.com>
11912
11913 * configure.host: Minor comment and formatting changes.
11914 * libc/Makefile.am: Add libc_la_DEPENDENCIES.
11915 * libc/Makefile.in: Regenerated.
11916 * libc/include/sys/config.h: Minor format change.
11917
5b9ee539
JJ
119182002-09-19 Jeff Johnston <jjohnstn@redhat.com>
11919
11920 * libc/syscalls/sysfcntl.c (fcntl): Fix typo in preprocessor
11921 statement comment.
11922
50558bf3
JJ
119232002-09-19 Jeff Johnston <jjohnstn@redhat.com>
11924
11925 * libc/posix/opendir.c (opendir): Change code to check
11926 for HAVE_FCNTL before calling fcntl.
11927 * libc/search/hash.c (hash_open): Ditto.
11928 * libc/search/hash_page.c (open_tmp): Ditto.
11929 * libc/reent/Makefile.am: Add fcntlr.c.
11930 * libc/reent/Makefile.in: Regenerated.
11931 * libc/reent/fcntlr.c: New file.
11932 * libc/stdio/fdopen.c (_fdopen_r): Change to call _fcntl_r
11933 instead of _fcntl when HAVE_FCNTL flag is set.
11934 * libc/syscalls/sysfcntl.c (fcntl): Check for HAVE_FCNTL flag
11935 to see if _fcntl or _fcntl_r should be called. If flag is not
11936 set, default to ENOSYS stub.
11937
9211a1ad
JJ
119382002-09-16 Jeff Johnston <jjohnstn@redhat.com>
11939
11940 * libc/include/wchar.h (mbstate_t): Change protective flag to
11941 be _MBSTATE_T.
11942 * libc/include/sys/_types.h (_mbstate_t): Remove protective flag.
11943 [__CYGWIN__]: Remove special code that defines mbstate_t and WEOF
11944 for Cygwin.
11945 * libc/sys/linux/sys/_types.h (_mbstate_t): Remove protective flag.
11946
a8615092
JJ
119472002-09-11 Jeff Johnston <jjohnstn@redhat.com>
11948
ba3ccd63
EB
11949 * acinclude.m4 (enable-newlib-mb): Change check to
11950 default newlib_mb variable to empty string rather than "no".
11951 * configure.host: Remove hard-coding of -DMB_CAPABLE for
11952 x86-linux and Cygwin. Add code to check for newlib_mb
11953 being unset in which case set to "yes" for x86-linux and
11954 Cygwin. Change check for newlib_mb being "yes" to allow
11955 for an empty string.
11956 * configure.in (_MB_LEN_MAX): New AC_DEFINE.
11957 * newlib.hin (_MB_LEN_MAX): New define to configure.
11958 * aclocal.m4: Regenerated.
11959 * configure: Ditto.
11960 * libc/include/limits.h: New file.
11961 * libc/sys/linux/include/limits.h: Ditto.
11962 * doc/aclocal.m4 doc/configure libc/aclocal.m4
11963 libc/configure libc/machine/aclocal.m4
11964 libc/machine/configure libc/machine/a29k/aclocal.m4
11965 libc/machine/a29k/configure libc/machine/arm/aclocal.m4
11966 libc/machine/arm/configure libc/machine/d10v/aclocal.m4
11967 libc/machine/d10v/configure libc/machine/d30v/aclocal.m4
11968 libc/machine/d30v/configure libc/machine/fr30/aclocal.m4
11969 libc/machine/fr30/configure libc/machine/frv/aclocal.m4
11970 libc/machine/frv/configure libc/machine/h8300/aclocal.m4
11971 libc/machine/h8300/configure libc/machine/h8500/aclocal.m4
11972 libc/machine/h8500/configure libc/machine/hppa/aclocal.m4
11973 libc/machine/hppa/configure libc/machine/i386/aclocal.m4
11974 libc/machine/i386/configure libc/machine/i960/aclocal.m4
11975 libc/machine/i960/configure libc/machine/m32r/aclocal.m4
11976 libc/machine/m32r/configure libc/machine/m68hc11/aclocal.m4
11977 libc/machine/m68hc11/configure libc/machine/m68k/aclocal.m4
11978 libc/machine/m68k/configure libc/machine/m88k/aclocal.m4
11979 libc/machine/m88k/configure libc/machine/mips/aclocal.m4
11980 libc/machine/mips/configure libc/machine/mn10200/aclocal.m4
11981 libc/machine/mn10200/configure libc/machine/mn10300/aclocal.m4
11982 libc/machine/mn10300/configure libc/machine/necv70/aclocal.m4
11983 libc/machine/necv70/configure libc/machine/powerpc/aclocal.m4
11984 libc/machine/powerpc/configure libc/machine/sh/aclocal.m4
11985 libc/machine/sh/configure libc/machine/sparc/aclocal.m4
11986 libc/machine/sparc/configure libc/machine/tic80/aclocal.m4
11987 libc/machine/tic80/configure libc/machine/v850/aclocal.m4
11988 libc/machine/v850/configure libc/machine/w65/aclocal.m4
11989 libc/machine/w65/configure libc/machine/xscale/aclocal.m4
11990 libc/machine/xscale/configure
11991 libc/machine/xstormy16/aclocal.m4
11992 libc/machine/xstormy16/configure libc/machine/z8k/aclocal.m4
11993 libc/machine/z8k/configure libc/sys/aclocal.m4
11994 libc/sys/configure libc/sys/a29khif/aclocal.m4
11995 libc/sys/a29khif/configure libc/sys/arc/aclocal.m4
11996 libc/sys/arc/configure libc/sys/arm/aclocal.m4
11997 libc/sys/arm/configure libc/sys/cygwin/aclocal.m4
11998 libc/sys/cygwin/configure libc/sys/d10v/aclocal.m4
11999 libc/sys/d10v/configure libc/sys/decstation/aclocal.m4
12000 libc/sys/decstation/configure libc/sys/go32/aclocal.m4
12001 libc/sys/go32/configure libc/sys/h8300hms/aclocal.m4
12002 libc/sys/h8300hms/configure libc/sys/h8500hms/aclocal.m4
12003 libc/sys/h8500hms/configure libc/sys/idt/aclocal.m4
12004 libc/sys/idt/configure libc/sys/linux/aclocal.m4
12005 libc/sys/linux/configure
12006 libc/sys/linux/machine/aclocal.m4
12007 libc/sys/linux/machine/configure
12008 libc/sys/linux/machine/i386/aclocal.m4
12009 libc/sys/linux/machine/i386/configure
12010 libc/sys/m88kbug/aclocal.m4 libc/sys/m88kbug/configure
12011 libc/sys/mmixware/aclocal.m4 libc/sys/mmixware/configure
12012 libc/sys/netware/aclocal.m4 libc/sys/netware/configure
12013 libc/sys/rtems/aclocal.m4 libc/sys/rtems/configure
12014 libc/sys/sh/aclocal.m4 libc/sys/sh/configure
12015 libc/sys/sparc64/aclocal.m4 libc/sys/sparc64/configure
12016 libc/sys/sun4/aclocal.m4 libc/sys/sun4/configure
12017 libc/sys/sysmec/aclocal.m4 libc/sys/sysmec/configure
12018 libc/sys/sysnec810/aclocal.m4 libc/sys/sysnec810/configure
12019 libc/sys/sysnecv850/aclocal.m4 libc/sys/sysnecv850/configure
12020 libc/sys/sysvi386/aclocal.m4 libc/sys/sysvi386/configure
12021 libc/sys/sysvnecv70/aclocal.m4 libc/sys/sysvnecv70/configure
12022 libc/sys/tic80/aclocal.m4 libc/sys/tic80/configure
12023 libc/sys/w65/aclocal.m4 libc/sys/w65/configure
12024 libc/sys/z8ksim/aclocal.m4 libc/sys/z8ksim/configure
12025 libm/aclocal.m4 libm/configure: Regenerated.
a8615092 12026
be83844e
JJ
120272002-09-09 Jeff Johnston <jjohnstn@redhat.com>
12028
ba3ccd63
EB
12029 * libc/sys/linux/machine/i386/crt0.c (_start): Remove
12030 code that clears the .bss section.
be83844e 12031
9c64d2a7
JJ
120322002-09-09 Jeff Johnston <jjohnstn@redhat.com>
12033
ba3ccd63
EB
12034 * libc/include/sys/_types.h (_mbstate_t): Changed to use
12035 unsigned char internally.
12036 * libc/sys/linux/sys/_types.h: Ditto.
12037 * libc/include/sys/reent.h
12038 * libc/stdlib/mblen.c (mblen): Use function-specific state
12039 value from default reentrancy structure.
12040 * libc/stdlib/mblen_r.c (_mblen_r): If return code from
12041 _mbtowc_r is less than 0, reset state __count value and
12042 return -1.
12043 * libc/stdlib/mbrlen.c (mbrlen): If the input state pointer
12044 is NULL, use the function-specific pointer provided in the
12045 default reentrancy structure.
12046 * libc/stdlib/mbrtowc.c: Add reentrant form of function.
12047 If input state pointer is NULL, use function-specific area
12048 provided in reentrancy structure.
12049 * libc/stdlib/mbsrtowcs.c: Ditto.
12050 * libc/stdlib/wcrtomb.c: Ditto.
12051 * libc/stdlib/wcsrtombs.c: Ditto.
12052 * libc/stdlib/mbstowcs.c: Reformat.
12053 * libc/stdlib/wcstombs.c: Ditto.
12054 * libc/stdlib/mbstowcs_r.c (_mbstowcs_r): If an error occurs,
12055 reset the state's __count value and return -1.
12056 * libc/stdlib/mbtowc.c: Ditto.
12057 * libc/stdlib/mbtowc_r.c (_mbtowc_r): Add restartable functionality.
12058 If number of bytes is used up before completing a valid multibyte
12059 character, return -2 and save the state.
12060 * libc/stdlib/wctomb_r.c (_wctomb_r): Define __state as __count
12061 and change some __count references to __state for clarity.
9c64d2a7 12062
218b7a56
JJ
120632002-09-06 Jeff Johnston <jjohnstn@redhat.com>
12064
12065 * libc/include/sys/config.h (MB_LEN_MAX): Removed as this
12066 is defined by <limits.h>.
12067
c210a6ea
JJ
120682002-09-05 Kazuhiro Fujieda <fujieda@jaist.ac.jp>
12069
12070 * libc/include/wchar.h (WCHAR_MAX): Only define if not already
12071 defined.
12072
efa077ce
JJ
120732002-09-04 Kazuhiro Fujieda <fujieda@jaist.ac.jp>
12074
ba3ccd63
EB
12075 * libc/include/sys/config.h: Define accordingly __WCHAR_MAX__.
12076 * libc/include/wchar.h: Define WCHAR_MIN as 0 and WCHAR_MAX as
12077 __WCHAR_MAX__ or 0x7fffffffu.
12078 * libc/string/wcscmp.c: Delete wrong and unnecessary type cast.
12079 * libc/string/wcsncmp.c: Ditto.
efa077ce 12080
e4b0ebc1
JJ
120812002-09-03 Jeff Johnston <jjohnstn@redhat.com>
12082
12083 * libc/string/wcschr.c: Add include of <stddef.h>.
12084 * libc/string/wcspbrk.c: Ditto.
12085 * libc/string/wcsrchr.c: Ditto.
12086 * libc/string/wcsstr.c: Ditto.
12087
3db40db7
JJ
120882002-09-03 Jeff Johnston <jjohnstn@redhat.com>
12089
ba3ccd63
EB
12090 * libc/include/sys/_types.h (_flock_t): Added.
12091 * libc/include/sys/lock.h (__lock_try_acquire): New interface.
12092 (__lock_try_acquire_recursive): Ditto.
12093 * libc/include/sys/reent.h (__sFILE, __sFILE64): Add new
12094 _lock field.
12095 * libc/stdio/findfp.c (std)[!__SINGLE_THREAD__]: Initialize _lock
12096 field.
12097 * libc/stdio/fopen.c (_fopen_r)[!__SINGLE_THREAD__]: Ditto.
12098 * libc/stdio64/fopen64.c (_fopen64_r)[!__SINGLE_THREAD__]: Ditto.
12099 * libc/sys/linux/include/time.h (struct timespec): Moved from
12100 <sys/types.h> and added check for __need_timespec flag so type
12101 can be defined by itself.
12102 * libc/sys/linux/sys/_types.h (_flock_t): New type.
12103 * libc/sys/linux/sys/types.h (struct timespec): Moved to
12104 <time.h>.
3db40db7 12105
cd45f029
TF
121062002-08-29 Thomas Fitzsimmons <fitzsim@redhat.com>
12107
12108 * libc/sys/linux/argp: New directory.
12109 * libc/sys/linux/getopt.c: New file.
12110 * libc/sys/linux/getopt1.c: New file.
12111 * libc/sys/linux/getoptlong.c: Remove file.
12112 * libc/sys/linux/include/argp.h: New file.
12113 * libc/sys/linux/Makefile.am: Define argp_dir and ARGP_LIB,
12114 based on ELIX level.
12115 (SUBDIRS): Add argp_dir.
12116 (SUBLIBS): Add ARGP_LIB.
12117 (ELIX_2_OBJS): Add getopt.$(oext), getopt1.$(oext), remove
12118 getopt_long.$(oext).
12119 * libc/sys/linux/configure.in (AC_OUTPUT): Add argp/Makefile.
12120
3c689185
JJ
121212002-08-29 Jeff Johnston <jjohnstn@redhat.com>
12122
ba3ccd63
EB
12123 * libc/libc.texinfo: Add node reference to wide-character strings.
12124 * libc/string/wcstrings.tex: New file.
3c689185 12125 * libc/string/strtok_r.c: Remove outdated advertising clause.
ba3ccd63
EB
12126 * libc/string/Makefile.am (doc): Add wide-character string
12127 chapter to documentation.
12128 * libc/string/Makefile.in: Regenerated.
3c689185 12129
890e7a1d
JJ
121302002-08-29 Kazuhiro Fujieda <fujieda@jaist.ac.jp>
12131
ba3ccd63
EB
12132 * libc/include/wchar.h: Define NULL. Define WEOF more general
12133 way. Declare functions in newlib manner.
12134 * libc/stdlib/Makefile.am: Delete wmem*.c
12135 * libc/stdlib/Makefile.in: Regenerated.
12136 * libc/stdlib/wmemchr.c: Delete.
12137 * libc/stdlib/wmemcmp.c: Ditto.
12138 * libc/stdlib/wmemcpy.c: Ditto.
12139 * libc/stdlib/wmemmove.c: Ditto.
12140 * libc/stdlib/wmemset.c: Ditto.
12141 * libc/string/Makefile.am: Add wmem*.c and wcs*.c.
12142 * libc/string/Makefile.in: Regenerated.
12143 * libc/string/wcscat.c: New file derived from the NetBSD C Library.
12144 * libc/string/wcschr.c: Ditto.
12145 * libc/string/wcscmp.c: Ditto.
12146 * libc/string/wcscpy.c: Ditto.
12147 * libc/string/wcscspn.c: Ditto.
12148 * libc/string/wcslcat.c: Ditto.
12149 * libc/string/wcslcpy.c: Ditto.
12150 * libc/string/wcslen.c: Ditto.
12151 * libc/string/wcsncat.c: Ditto.
12152 * libc/string/wcsncmp.c: Ditto.
12153 * libc/string/wcsncpy.c: Ditto.
12154 * libc/string/wcspbrk.c: Ditto.
12155 * libc/string/wcsrchr.c: Ditto.
12156 * libc/string/wcsspn.c: Ditto.
12157 * libc/string/wcsstr.c: Ditto.
12158 * libc/string/wmemchr.c: Ditto.
12159 * libc/string/wmemcmp.c: Ditto.
12160 * libc/string/wmemcpy.c: Ditto.
12161 * libc/string/wmemmove.c: Ditto.
12162 * libc/string/wmemset.c: Ditto.
890e7a1d 12163
86620e21
JJ
121642002-08-29 Jeff Johnston <jjohnstn@redhat.com>
12165
ba3ccd63
EB
12166 * libc/locale/locale.c (_setlocale_r)[MB_CAPABLE]: Fix so
12167 default locale "" is accepted for LC_CTYPE or LC_MESSAGES
12168 and is treated as if "C" was specified.
86620e21 12169
f3741c27
JJ
121702002-08-28 Jeff Johnston <jjohnstn@redhat.com>
12171
ba3ccd63
EB
12172 * Makefile.am (install-data-local): Move install of build
12173 newlib.h after installing headers in libc/include so as to
12174 overwrite default newlib.h.
12175 * Makefile.in: Regenerated.
f3741c27 12176
48da61f5
JJ
121772002-08-28 Jeff Johnston <jjohnstn@redhat.com>
12178
ba3ccd63
EB
12179 * libc/include/newlib.h: New file for tools that use newlib
12180 headers but don't build newlib first (e.g. gcc).
48da61f5 12181
d82a94ac
JJ
121822002-08-28 Jeff Johnston <jjohnstn@redhat.com>
12183
12184 * libc/stdlib/wmemchr.c: Explicitly include <_ansi.h>.
12185 * libc/stdlib/wmemcmp.c: Ditto.
12186 * libc/stdlib/wmemcpy.c: Ditto.
12187 * libc/stdlib/wmemmove.c: Ditto.
12188 * libc/stdlib/wmemset.c: Ditto.
12189
7d08241b
JJ
121902002-08-27 Egor Duda <deo@logos-m.ru>
12191
12192 * libc/stdlib/wmemchr.c: New file.
12193 * libc/stdlib/wmemcmp.c: Ditto.
12194 * libc/stdlib/wmemcpy.c: Ditto.
12195 * libc/stdlib/wmemmove.c: Ditto.
12196 * libc/stdlib/wmemset.c: Ditto.
12197 * libc/stdlib/Makefile.am (GENERAL_SOURCES): Add new files.
12198 * configure.host: Default -DMB_CAPABLE for cygwin.
12199 * libc/include/wchar.h: Declare wmemchr(), wmemcmp(), wmemcpy(),
12200 wmemmove() and wmemset(). Add include of <_ansi.h>.
12201 * libc/stdlib/Makefile.in: Regenerate.
12202
8da1639b
JJ
122032002-08-27 Jeff Johnston <jjohnstn@redhat.com>
12204
ff2bf852 12205 * configure.host: Remove _ELIX_LEVEL flag setting.
8da1639b
JJ
12206 * Makefile.am(stmp-targ-include): Copy newlib.h to targ-include.
12207 (install-data-local): Install newlib.h.
12208 * Makefile.in: Regenerated.
12209 * aclocal.m4: Ditto.
12210 * configure: Ditto.
17c0c97d 12211 * configure.in: Add AM_CONFIG_HEADER to generate newlib.h based on
8da1639b
JJ
12212 newlib.hin. Add AC_DEFINE_UNQUOTED entries for _ELIX_LEVEL
12213 and _NEWLIB_VERSION to fill in newlib.h header file entries.
12214 In AC_OUTPUT statement, unset ac_file so multilib support does
12215 not use last ac_file temporary used in newlib.h configuration.
12216 * libc/include/_ansi.h: Include <newlib.h>.
12217 * newlib.hin: New template file for newlib.h.
12218 * stamp-h.in: New file.
12219
a4421c11
JJ
122202002-08-26 Wu Yongwei <adah@netstd.com>
12221
ba3ccd63 12222 * time.h (timezonevar): Change "#if" to "#ifdef".
a4421c11 12223
90b65e2d
JJ
122242002-08-26 Jeff Johnston <jjohnstn@redhat.com>
12225
12226 * Makefile.am(LIBC_OBJECTLISTS): Add STDIO64_OBJECTLIST.
12227 * Makefile.in: Regenerated.
12228 * acinclude.m4: Add support for --enable-newlib-elix-level option.
12229 * aclocal.m4: Regenerated.
12230 * configure: Ditto.
12231 * configure.host: Add code to define _ELIX_LEVEL if
12232 --enable-newlib-elix-level option is used.
17c0c97d 12233 * configure.in:
90b65e2d
JJ
12234 * libc/aclocal.m4: Regenerated.
12235 * libc/configure: Ditto.
12236 * libc/argz/Makefile.am: Add EL/IX level checking.
12237 * libc/argz/Makefile.in: Regenerated.
12238 * libc/argz/dummy.c: New file.
12239 * libc/ctype/Makefile.am: Add EL/IX level checking.
12240 * libc/ctype/Makefile.in: Regenerated.
12241 * libc/locale/Makefile.am: Add EL/IX level checking.
12242 * libc/locale/Makefile.in: Regenerated.
12243 * libc/posix/Makefile.am: Add EL/IX level checking.
12244 * libc/posix/Makefile.in: Regenerated.
12245 * libc/posix/telldir.c: Add EL/IX level checking.
12246 * libc/reent/Makefile.am: Ditto.
12247 * libc/reent/fstat64r.c: Ditto.
12248 * libc/reent/lseek64r.c: Ditto.
12249 * libc/reent/open64r.c: Ditto.
12250 * libc/reent/Makefile.in: Regenerated.
12251 * libc/search/Makefile.am: Add EL/IX level checking.
12252 * libc/search/Makefile.in: Regenerated.
12253 * libc/stdio/Makefile.am: Add EL/IX level checking.
12254 * libc/stdio/Makefile.in: Regenerated.
12255 * libc/stdio64/Makefile.am: Add EL/IX level checking.
12256 * libc/stdio64/Makefile.in: Regenerated.
12257 * libc/stdio64/dummy.c: New file.
9b487837 12258 * libc/stdio64/fgetpos64.c: Fix so _LARGE64_FILES macro is checked
90b65e2d
JJ
12259 after first include.
12260 * libc/stdio64/fopen64.c: Ditto.
12261 * libc/stdio64/freopen64.c: Ditto.
12262 * libc/stdio64/fseeko64.c: Ditto.
12263 * libc/stdio64/fsetpos64.c: Ditto.
12264 * libc/stdio64/ftello64.c: Ditto.
12265 * libc/stdio64/tmpfile64.c: Ditto.
12266 * libc/stdlib/Makefile.am: Add EL/IX level checking.
12267 * libc/stdlib/Makefile.in: Regenerated.
12268 * libc/stdlib/mstats.c: Add EL/IX level checking.
12269 * libc/string/Makefile.am: Ditto.
12270 * libc/string/Makefile.in: Regenerated.
12271 * libc/sys/linux/Makefile.am: Add EL/IX level checking.
12272 * libc/sys/linux/Makefile.in: Regenerated.
12273 * libc/sys/linux/aclocal.m4: Ditto.
12274 * libc/sys/linux/configure: Ditto.
12275 * libc/sys/linux/aio.c: Add EL/IX level checking.
12276 * libc/sys/linux/ftok.c: Ditto.
12277 * libc/sys/linux/getdate.c: Ditto.
12278 * libc/sys/linux/ids.c: Ditto.
12279 * libc/sys/linux/inode.c: Ditto.
12280 * libc/sys/linux/io.c: Ditto.
12281 * libc/sys/linux/process.c: Ditto.
12282 * libc/sys/linux/resource.c: Ditto.
12283 * libc/sys/linux/sched.c: Ditto.
12284 * libc/sys/linux/sig.c: Ditto.
12285 * libc/sys/linux/termios.c: Ditto.
12286 * libc/sys/linux/wait.c: Ditto plus add __waitpid and
12287 __libc___waitpid weak aliases.
12288 * libc/sys/linux/machine/i386/syscall.h: Add new _base macros
12289 that generate the code for a syscall, but do not create a
12290 weak alias.
12291 * libc/syscalls/Makefile.am: Add EL/IX level checking.
12292 * libc/syscalls/Makefile.in: Regenerated.
12293 * libc/time/tzset_r.c: Change to replace strdup with equivalent
12294 functionality.
12295 * libc/unix/Makefile.am: Add EL/IX level checking.
12296 * libc/unix/Makefile.in: Regenerated.
12297
2e2b268c
CF
122982002-08-26 Christopher Faylor <cgf@redhat.com>
12299
12300 * libc/include/malloc.h: On cygwin, define malloc _r functions as
12301 wrapper macros to standard malloc functions.
12302 * libc/include/stdlib.h: Ditto.
12303 * configure.host: Always define MALLOC_PROVIDED on cygwin.
12304
8d9112f2
TF
123052002-08-22 Thomas Fitzsimmons <fitzsim@redhat.com>
12306
12307 * libc/include/langinfo.h: New file.
12308 * libc/include/wchar.h: Likewise.
12309 * libc/include/sys/syslimits.h: Likewise.
12310 * libc/locale/fix_grouping.c: Likewise.
12311 * libc/locale/ldpart.c: Likewise.
12312 * libc/locale/ldpart.h: Likewise.
12313 * libc/locale/lmessages.c: Likewise.
12314 * libc/locale/lmessages.h: Likewise.
12315 * libc/locale/lmonetary.c: Likewise.
12316 * libc/locale/lmonetary.h: Likewise.
12317 * libc/locale/lnumeric.c: Likewise.
12318 * libc/locale/lnumeric.h: Likewise.
12319 * libc/locale/nl_langinfo.3: Likewise.
12320 * libc/locale/nl_langinfo.c: Likewise.
12321 * libc/locale/timelocal.c: Likewise.
12322 * libc/locale/timelocal.h: Likewise.
12323 * libc/stdlib/btowc.c: Likewise.
12324 * libc/stdlib/mbrlen.c: Likewise.
12325 * libc/stdlib/mbrtowc.c: Likewise.
12326 * libc/stdlib/mbsinit.c: Likewise.
12327 * libc/stdlib/mbsrtowcs.c: Likewise.
12328 * libc/stdlib/wcrtomb.c: Likewise.
12329 * libc/stdlib/wcsrtombs.c: Likewise.
12330 * libc/stdlib/wctob.c: Likewise.
12331 * libc/sys/linux/prof-freq.c: Likewise.
12332 * libc/sys/linux/profile.c: Likewise.
12333 * libc/sys/linux/machine/i386/dl-procinfo.c: Likewise.
12334 * libc/sys/linux/machine/i386/dl-procinfo.h: Likewise.
12335 * libc/include/stdlib.h: Change re-entrant functions to take
12336 mbstate_t pointers.
12337 * libc/include/sys/_types.h: Define _mbstate_t.
12338 * libc/include/sys/config.h (MB_LEN_MAX): New macro.
12339 * libc/include/sys/errno.h (EILSEQ): New error code.
12340 * libc/include/sys/reent.h: Include wchar.h. Change reentrant
12341 structure to use mbstate_t.
12342 * libc/locale/Makefile.am (LIB_SOURCES): Add new files.
12343 * libc/machine/powerpc/vfprintf.c: Use mbstate_t.
12344 * libc/machine/powerpc/vfscanf.c: Likewise.
12345 * libc/stdio/getdelim.c: Reallocate buffer only when necessary.
12346 * libc/stdio/vfprintf.c: Likewise.
12347 * libc/stdio/vfscanf.c: Likewise.
12348 * libc/stdlib/Makefile.am (LIB_SOURCES): Add new files.
12349 * libc/stdlib/mblen.c: Use mbstate_t.
12350 * libc/stdlib/mblen_r.c: Likewise.
12351 * libc/stdlib/mbstowcs.c: Likewise.
12352 * libc/stdlib/mbstowcs_r.c: Likewise.
12353 * libc/stdlib/mbtowc.c: Likewise.
12354 * libc/stdlib/mbtowc_r.c: Likewise.
12355 * libc/stdlib/wcstombs.c: Likewise.
12356 * libc/stdlib/wcstombs_r.c: Likewise.
12357 * libc/stdlib/wctomb_r.c: Likewise.
12358 * libc/sys/linux/Makefile.am (LIB_SOURCES): Add prof-freq.c and
12359 profile.c.
12360 * libc/sys/linux/machine/i386/Makefile.am (LIB_SOURCES): Add
12361 dl-procinfo.c.
12362 * libc/sys/linux/sys/errno.h (EILSEQ): New error code.
12363 * libc/sys/linux/sys/types.h (off_t): Define type.
12364 * testsuite/newlib.locale/UTF-8.c: Change locale name from UTF-8
12365 to C-UTF-8.
12366 * testsuite/newlib.locale/UTF-8.exp: Likewise.
12367
fe47ea33
JJ
123682002-08-20 Casper S. Hornstrup <chorns@users.sourceforge.net>
12369
ba3ccd63
EB
12370 * libc/stdlib/mallocr.c: #include windows.h on Win32.
12371 (AlignPage): Continue macro on next line.
fe47ea33 12372
ada73509
JJ
123732002-08-19 Jeff Johnston <jjohnstn@redhat.com>
12374
12375 * libc/sys/linux/include/pthread.h: New file.
12376
64b5e8f2
JJ
123772002-08-19 Jeff Johnston <jjohnstn@redhat.com>
12378
12379 * libc/include/sys/types.h: Support __need_inttypes macro
17c0c97d 12380 that only sets the __intxx and __uintxx types.
64b5e8f2
JJ
12381 * libc/machine/powerpc/Makefile.am: Add stdlib to include directories
12382 to get mprec.h.
12383 * libc/machine/powerpc/Makefile.in: Regenerated.
12384 * libc/machine/powerpc/vfprintf.c: Fix state variable type.
12385 * libc/machine/powerpc/vfscanf.c: Fix state variable type. Remove
12386 redundant fixed-point conversion prototypes.
12387 * libc/machine/powerpc/machine/stdlib.h[__SPE__]: Include <sys/types.h>
12388 after setting __need_inttypes.
12389
a94b60ce
CF
123902002-08-18 Christopher Faylor <cgf@redhat.com>
12391
12392 * libc/include/sys/unistd.h: Add getsid declaration for cygwin.
12393
29e17a86
JJ
123942002-08-17 Jeff Johnston <jjohnstn@redhat.com>
12395
ba3ccd63
EB
12396 * libc/include/sys/config.h[__PPC__][__SPE__]: Set
12397 _LONG_DOUBLE to double.
29e17a86 12398
936b520f
JJ
123992002-08-17 Jeff Johnston <jjohnstn@redhat.com>
12400
12401 * configure.host: Add powerpc*-*-eabispe* configuration.
12402 * libc/machine/powerpc/atosfix16.c: New fixed-point conversion file.
12403 * libc/machine/powerpc/atosfix32.c: Ditto.
12404 * libc/machine/powerpc/atosfix64.c: Ditto.
12405 * libc/machine/powerpc/atoufix16.c: Ditto.
12406 * libc/machine/powerpc/atoufix32.c: Ditto.
12407 * libc/machine/powerpc/atoufix64.c: Ditto.
12408 * libc/machine/powerpc/fix64.h: Ditto.
12409 * libc/machine/powerpc/simdldtoa.c: Ditto.
12410 * libc/machine/powerpc/strtosfix16.c: Ditto.
12411 * libc/machine/powerpc/strtosfix32.c: Ditto.
12412 * libc/machine/powerpc/strtosfix64.c: Ditto.
12413 * libc/machine/powerpc/strtoufix16.c: Ditto.
12414 * libc/machine/powerpc/strtoufix32.c: Ditto.
12415 * libc/machine/powerpc/strtoufix64.c: Ditto.
12416 * libc/machine/powerpc/ufix64toa.c: Ditto.
12417 * libc/machine/powerpc/configure.in: Add check for
12418 powerpc*-eabispe and add fixed-point conversion functions.
12419 * libc/machine/powerpc/configure: Regenerated.
12420 * libc/machine/powerpc/vfprintf.c[__SPE__]: Add support for
12421 %r and %R format specifiers which handle fixed-point data.
12422 * libc/machine/powerpc/vfscanf.c[__SPE__]: Ditto.
12423 * libc/machine/powerpc/machine/stdlib.h[__SPE__]: Add fixed-point
12424 function prototypes.
12425
ad552766
JJ
124262002-08-17 Jeff Johnston <jjohnstn@redhat.com>
12427
12428 * Makefile.am: Move cmath stuff into libc/sys/linux.
12429 * Makefile.in: Regenerated.
12430 * configure.host: Default -DMB_CAPABLE for x86-linux.
12431 * libc/include/reent.h: Define _sbrk to take signed int argument.
12432 * libc/include/sys/unistd.h: Ditto for _sbrk_r and sbrk.
17c0c97d
EB
12433 * libc/locale/locale.c[MB_CAPABLE]: Add LC_MESSAGES support and
12434 make locale name checking more efficient. Also allow "C-ISO-8859-1"
ad552766
JJ
12435 locale for LC_CTYPE and LC_MESSAGES.
12436 * libc/reent/sbrkr.c: Change prototype to take ptrdiff_t.
12437 * libc/sys/linux/brk.c: Change sbrk prototype.
12438 * libc/sys/linux/include/time.h: Remove Cygwin stuff and
12439 include <sys/features.h>.
12440 (CLOCK_THREAD_CPUTIME): Renamed to CLOCK_THREAD_CPUTIME_ID.
12441 (CLOCK_PROCESS_CPUTIME): Renamed to CLOCK_PROCESS_CPUTIME_ID.
12442 * libc/sys/linux/sys/cdefs.h: Replace with glibc sys/cdefs.h
12443 with a few local additions.
12444 * libc/sys/linux/sys/features.h: New file.
12445 * libc/sys/linux/sys/unistd.h: Change _sbrk_r and sbrk prototypes
12446 to take signed argument.
12447 * libc/syscalls/syssbrk.c: Change sbrk, _sbrk_r, and _sbrk
12448 prototypes to take signed size argument.
12449
d3bd3632
TF
124502002-08-16 Thomas Fitzsimmons <fitzsim@redhat.com>
12451
12452 * libc/sys/linux/cmath: New directory.
12453 * libc/sys/linux/include/cmathcalls.h: New file.
12454 * libc/sys/linux/include/complex.h: New file.
12455 * libc/sys/linux/machine/i386/huge_val.h: New file
12456 * libm/math/w_sincos.c: New file
12457 * libm/math/wf_sincos.c: New file
12458 * libm/mathfp/s_sincos.c: New file
12459 * libm/mathfp/sf_sincos.c: New file
12460 * Makefile.am (LIBC_OBJECTLISTS): Add cmath/objectlist.awk.in.
12461 * libc/include/math.h: Add sincos and sincosf declarations.
12462 * libc/sys/linux/Makefile.am (SUBDIRS): Add cmath.
12463 (SUBLIBS): Likewise.
12464 * libc/sys/linux/configure.in (AC_OUTPUT): Add cmath.
12465 * libm/math/Makefile.am (src): Add w_sincos.c.
12466 (fsrc): Add wf_sincos.c.
12467 * libm/mathfp/Makefile.am (src): Add s_sincos.c
12468 (fsrc): Add sf_sincos.c.
12469
b3a9676b
JJ
124702002-08-12 Jeff Johnston <jjohnstn@redhat.com>
12471
12472 * libc/sys/linux/machine/i386/crt0.c (__bss_start,_end):
12473 Declare as extern chars and use the address operator to
12474 properly use values set in linker script.
12475
659e7062
JJ
124762002-08-09 Jason Tishler <jason@tishler.net>
12477
12478 * libc/stdlib/mallocr.c: Include <limits.h>.
12479 (request2size): Change macro to do
12480 unsigned long comparisons and avoid signed overflow.
12481 (mALLOc): Add overflow check for the number of bytes to allocate.
12482 (rEALLOc): Ditto.
12483
037240a2
JJ
124842002-08-09 Jeff Johnston <jjohnstn@redhat.com>
12485
12486 * configure.host: Add check for --enable-newlib-io-pos-args
12487 and define WANT_IO_POS_ARGS flag if enabled. Define
12488 the flag by default for x86-linux configurations.
12489 * configure.in: Add support for --enable-newlib-io-pos-args.
12490 * libc/configure.in: Ditto.
12491 * configure: Regenerated.
12492 * libc/configure: Ditto.
12493 * libc/stdio/Makefile.am: Specify -fshort-enums for compiling
12494 vfprintf.c and vfiprintf.c.
12495 * libc/stdio/Makefile.in: Regenerated.
12496 * libc/stdio/vfprintf.c: Add positional argument support that
12497 is enabled by compiling with -DWANT_IO_POS_ARGS.
12498
172fda76
RS
124992002-08-07 Richard Sandiford <rsandifo@redhat.com>
12500
12501 * libc/include/machine/setjmp.h: For mips, define _JBLEN based
12502 based on __mips_soft_float rather than __mips64.
12503 * libc/machine/mips/setjmp.S: Provide hard and soft float versions
12504 of both 32-bit and 64-bit code.
12505
4866247e
CF
125062002-08-04 Christopher Faylor <cgf@redhat.com>
12507
12508 * libc/stdio/popen.c (popen): Allow "rb", "rt", "wb", and "wt"
12509 arguments for popen to match similar functionality in fopen.
12510
b96332ce
CV
125112002-07-29 Pierre Humblet <pierre.humblet@ieee.org>
12512
12513 * libc/include/sys/unistd.h: Add setgroups prototype for Cygwin.
12514
60d99bce
JJ
125152002-07-29 Jeff Johnston <jjohnstn@redhat.com>
12516
ba3ccd63
EB
12517 * libc/sys/linux/Makefile.am: Add aio64.c.
12518 * libc/sys/linux/Makefile.in: Regenerated.
12519 * libc/sys/linux/aio.c (aio_init): ENOSYS stub added.
12520 * libc/sys/linux/aio64.c: New file.
60d99bce 12521
80a21be0
JJ
125222002-07-26 Jeff Johnston <jjohnstn@redhat.com>
12523
12524 * libc/include/sys/param.h (MAX, MIN): Added macros.
12525 * libc/sys/linux/Makefile.am: Add new files.
12526 * libc/sys/linux/Makefile.in: Regenerated.
12527 * libc/sys/linux/sys/stat.h: Add *stat64 prototypes.
12528 * libc/sys/linux/inode.c (fchdir): Added syscall.
12529 * libc/sys/linux/ftw.c: New file.
12530 * libc/sys/linux/ftw64.c: Ditto.
12531 * libc/sys/linux/getwd.c: Ditto.
12532 * libc/sys/linux/scandir64.c: Ditto.
12533 * libc/sys/linux/strverscmp.c: Ditto.
12534 * libc/sys/linux/versionsort.c: Ditto.
12535 * libc/sys/linux/versionsort64.c: Ditto.
12536
6b6425cb
JJ
125372002-07-26 Jeff Johnston <jjohnstn@redhat.com>
12538
12539 * libc/string/strings.tex: Fix typo for memccpy.
12540
dc8ac8e6
JJ
125412002-07-25 Jeff Johnston <jjohnstn@redhat.com>
12542
12543 * libc/sys/linux/io64.c (truncate64, ftruncate64): Added.
12544 * libc/sys/linux/sys/types.h (off64_t): Definition added.
12545
aa0ca6fd
JJ
125462002-07-25 Jeff Johnston <jjohnstn@redhat.com>
12547
12548 * libc/sys/linux/Makefile.am: Add fclean.c.
12549 * libc/sys/linux/Makefile.in: Regenerated.
12550 * libc/sys/linux/fclean.c: New file.
12551
61921945
JJ
125522002-07-25 Jeff Johnston <jjohnstn@redhat.com>
12553
12554 * libc/sys/linux/Makefile.am: Add confstr.c.
12555 * libc/sys/linux/Makefile.in: Regenerated.
12556 * libc/sys/linux/confstr.c: New file.
12557 * libc/sys/linux/confstr.h: Ditto.
12558 * libc/sys/linux/sys/unistd.h: Include <features.h> and
12559 <bits/environments.h>.
12560
3d966a92
JJ
125612002-07-25 Jeff Johnston <jjohnstn@redhat.com>
12562
12563 * libc/sys/linux/config.h (__set_errno): Macro definition removed.
12564 * libc/sys/linux/fpathconf.c (__set_errno): Ditto.
12565 * libc/sys/linux/libc-internal.h (__set_errno): Ditto.
12566 * libc/sys/linux/pathconf.c (__set_errno): Ditto.
12567 * libc/sys/linux/ttyname_r.c (__set_errno): Ditto.
12568 * libc/sys/linux/sys/errno.h (__set_errno): Macro definition added.
12569
53b5bff7
JJ
125702002-07-24 Jeff Johnston <jjohnstn@redhat.com>
12571
12572 * libc/sys/linux/Makefile.am: Add new files.
12573 * libc/sys/linux/Makefile.in: Regenerated.
12574 * libc/sys/linux/fstab.c: New file.
12575 * libc/sys/linux/fstatvfs.c: Ditto.
12576 * libc/sys/linux/fstatvfs64.c: Ditto.
12577 * libc/sys/linux/internal_statvfs.c: Ditto.
12578 * libc/sys/linux/mntent.c: Ditto.
12579 * libc/sys/linux/mntent_r.c: Ditto.
12580 * libc/sys/linux/statvfs.c: Ditto.
12581 * libc/sys/linux/statvfs64.c: Ditto.
12582 * libc/sys/linux/include/paths.h: Ditto.
12583 * libc/sys/linux/inode.c (statfs, fstatfs): New syscalls
12584 with double-underscore weak-aliases.
12585 * libc/sys/linux/sys/stat.h: Add *stat64 prototypes.
12586
9cef8ef5
JJ
125872002-07-24 Jeff Johnston <jjohnstn@redhat.com>
12588
12589 * libc/include/signal.h (SIG_IGN, SIG_DFL, SIG_ERR): Change
12590 to use _sig_func_ptr type casted constants.
12591 (_sig_func_ptr): Typedef moved to sys/signal.h.
12592 * libc/include/sys/signal.h (_sig_func_ptr): Typedef added.
12593 For __rtems, use POSIX definition, otherwise default to ANSI.
12594 * libc/sys/linux/sys/signal.h (_sig_func_ptr): Typedef added.
12595
a703e0f2
JJ
125962002-07-24 Stephane Carrez <stcarrez@nerim.fr>
12597
ba3ccd63
EB
12598 * configure.host: Recognize m6811-elf and m6812-elf targets.
12599 * libc/include/machine/setjmp.h (_JBLEN): Define for 68hc11/68hc12.
12600 * libc/include/machine/ieeefp.h (__IEEE_BIG_ENDIAN): Define for 68HC11.
12601 (_DOUBLE_IS_32BITS): Define when compiling with -fshort-double.
12602 * libc/include/sys/config.h (INT_MAX, UINT_MAX): Define
12603 according to __INT_MAX__.
12604 (_POINTER_INT): Define to short.
12605 * libc/machine/m68hc11/Makefile.am: New file.
12606 * libc/machine/m68hc11/Makefile.in: New file.
12607 * libc/machine/m68hc11/configure.in: New file.
12608 * libc/machine/m68hc11/configure: New file.
12609 * libc/machine/m68hc11/aclocal.m4: New file.
12610 * libc/machine/m68hc11/setjmp.S: New file.
a703e0f2 12611
d254189b
JJ
126122002-07-23 Jeff Johnston <jjohnstn@redhat.com>
12613
12614 * libc/include/string.h: Add mempcpy, strndup, and _strndup_r
12615 prototypes.
12616 * libc/stdlib/Makefile.am: Remove strdup.c and strdup_r.c.
12617 * libc/stdlib/Makefile.in: Regenerated.
12618 * libc/stdlib/strdup.c: Removed.
12619 * libc/stdlib/strdup_r.c: Removed.
12620 * libc/string/Makefile.am: Add strdup.c, strdup_r.c, memccpy.c,
12621 mempcpy.c, strndup.c, and strndup_r.c.
12622 * libc/string/Makefile.in: Regenerated.
12623 * libc/string/memccpy.c: New file.
12624 * libc/string/mempcpy.c: Ditto.
12625 * libc/string/strndup.c: Ditto.
12626 * libc/string/strndup_r.c: Ditto.
12627 * libc/string/strdup.c: New file moved from stdlib.
12628 * libc/string/strdup_r.c: Ditto.
12629 * libc/string/strings.tex: Add memccpy and mempcpy documentation.
12630
bc100655
JJ
126312002-07-23 Jeff Johnston <jjohnstn@redhat.com>
12632
ba3ccd63
EB
12633 * libc/include/stdio.h: Move fcloseall prototype within
12634 #ifndef _REENT_ONLY section.
12635 * libc/sys/linux/Makefile.am: Add new files.
12636 * libc/sys/linux/Makefile.in: Regenerated.
12637 * libc/sys/linux/sys/stdio.h: Add ctermid prototype.
12638 * libc/sys/linux/sys/unistd.h: Add ttyname_r prototype.
bc100655 12639 * libc/sys/linux/sys/types.h: Add ino64_t type.
ba3ccd63
EB
12640 * libc/sys/linux/ctermid.c: New file.
12641 * libc/sys/linux/ttyname_r.c: Ditto.
bc100655
JJ
12642 * libc/sys/linux/readdir64.c: Ditto.
12643
f5f27f07
JJ
126442002-07-22 Jeff Johnston <jjohnstn@redhat.com>
12645
12646 * libc/include/stdio.h (fcloseall, _fcloseall_r): Added prototypes.
12647 * libc/stdio/Makefile.am: Added fcloseall.c support.
12648 * libc/stdio/Makefile.in: Regenerated.
12649 * libc/stdio/fcloseall.c: New file.
12650 * libc/stdio64/Makefile.am: Remove missing .def references.
12651 * libc/stdio64/Makefile.in: Regenerated.
12652
d541ba3e
JJ
126532002-07-22 Jeff Johnston <jjohnstn@redhat.com>
12654
12655 * libc/machine/powerpc/time.c: Removed..renamed to times.c.
12656 * libc/machine/powerpc/times.c: New file.
12657 * libc/machine/powerpc/Makefile.am: Change time.c to times.c.
12658 * libc/machine/powerpc/Makefile.in: Regenerated.
12659
126602002-07-22 Aldy Hernandez <aldyh@redhat.com>
e964bca8 12661
ba3ccd63
EB
12662 * libc/machine/powerpc/time.c: New file.
12663 * libc/machine/powerpc/Makefile.am (lib_a_SOURCES): Add
12664 time.c.
e964bca8
JJ
12665 * libc/machine/powerpc/Makefile.in: Regenerated.
12666
5e7d0a55
TF
126672002-07-22 Thomas Fitzsimmons <fitzsim@redhat.com>
12668
12669 * libc/libc.texinfo: Change copyright notices to Red Hat from
12670 Cygnus.
12671 * libm/libm.texinfo: Likewise.
12672 * README: Change docs URL to
12673 http://sources.redhat.com/newlib/docs.html.
12674
504628e7
JJ
126752002-07-19 Jeff Johnston <jjohnstn@redhat.com>
12676
ba3ccd63
EB
12677 * libc/sys/linux/Makefile.am: Add pathconf.c and fpathconf.c.
12678 * libc/sys/linux/Makefile.in: Regenerated.
12679 * libc/sys/linux/inode.c: Add chmod, fchmod, and chown syscalls.
12680 * libc/sys/linux/io.c: Add ftruncate syscall.
12681 * libc/sys/linux/fpathconf.c: New file.
12682 * libc/sys/linux/pathconf.c: Ditto.
504628e7 12683 * libc/sys/linux/linux_fsinfo.h: Ditto.
ba3ccd63 12684 * libc/sys/linux/sys/unistd.h: Ditto.
504628e7 12685
b155ad9f
JJ
126862002-07-19 Jeff Johnston <jjohnstn@redhat.com>
12687
12688 * libc/stdio64/Makefile.am: Remove missing files.
12689 * libc/stdio64/Makefile.in: Regenerated.
12690
c119e0ab
JJ
126912002-07-19 Jeff Johnston <jjohnstn@redhat.com>
12692
ba3ccd63
EB
12693 * libc/include/sys/config.h[__i386__][__linux__]: Define
12694 _LARGE64FILE_SOURCE to 1.
12695 * libc/sys/linux/Makefile.am: Add getrlimit64.c and setrlimit64.c.
12696 * libc/sys/linux/Makefile.in: Regenerated.
12697 * libc/sys/linux/resource.c: Add __getrlimit and __setrlimit aliases.
12698 * libc/sys/linux/sys/linux_time.h: Protect struct timeval definition.
12699 * libc/sys/linux/sys/resource.h: Include <bits/resource.h> instead
12700 of <linux/resource.h>.
12701 * libc/sys/linux/getrlimit64.c: New file.
12702 * libc/sys/linux/setrlimit64.c: Ditto.
c119e0ab 12703
9b022d6d
TF
127042002-07-19 Thomas Fitzsimmons <fitzsim@redhat.com>
12705
12706 * libc/argz/argz_replace.c: Include buf_findstr.h.
12707 * libc/argz/buf_findstr.c: Likewise.
12708 * libc/argz/envz_entry.c: Include buf_findstr.h. Cast return
12709 value to (char *).
12710 * libc/argz/envz_get.c: Likewise.
12711 * libc/include/sys/unistd.h: Add getopt and getsubopt declarations.
12712 * libc/stdlib/Makefile.am (LIB_SOURCES): Add getsubopt.c.
12713 * libc/stdlib/getsubopt.3: New file.
12714 * libc/stdlib/getsubopt.c: New file.
12715 * libc/sys/linux/machine/i386/socketcall.h (__sockcall_base):
12716 Change esp to ebp.
12717
dee51391
JJ
127182002-07-17 Jeff Johnston <jjohnstn@redhat.com>
12719
12720 * configure.host(stdio64_dir): New setting that is used to
12721 enable building of new stdio64 directory.
12722 * libc/Makefile.am[HAVE_STDIO64_DIR]: Add support for
12723 large files.
12724 (stmp-stdio64,stdio64.texi): New targets to optionally add in
12725 stdio64 info to info files.
12726 * libc/Makefile.in: Regenerated.
12727 * libc/configure: Ditto.
12728 * libc/configure.in: Add configuration variables that are set
12729 when stdio64 is selected as subdir in configure.host.
12730 * libc/libc.texinfo: Add optional menu item for Stdio64, based
12731 on whether STDIO64 flag is set or not.
12732 * libc/sys.tex: Add optional stdio64 syscalls based on whether
12733 STDIO64 flag is set or not.
12734 * libc/include/reent.h[__LARGE64_FILES]: Add new stdio64
12735 _r sycall routines.
12736 * libc/include/stdio.h[__LARGE64_FILES]: Add new stdio64 prototypes.
12737 (FILE): Typedef'd to __FILE instead of struct __sFILE directly.
12738 (__SL64): New file flag indicating file is opened via fopen64.
12739 * libc/include/sys/_types.h(_off64_t): Added.
12740 * libc/include/sys/config.h: For x86-linux, define __LARGE64_FILES.
12741 * libc/include/sys/reent.h(struct __sFILE64): New file structure
12742 for 64-bit offset large file support.
12743 (__FILE): New intermediate type either set to struct __sFILE64 or
12744 struct __sFILE, depending on whether __LARGE64_FILES is set or not.
12745 * libc/reent/Makefile.am[HAVE_STDIO64_DIR]: Add new files.
12746 * libc/reent/Makefile.in: Regenerated.
12747 * libc/reent/fstat64r.c: New file.
12748 * libc/reent/lseek64r.c: Ditto.
12749 * libc/reent/open64r.c: Ditto.
12750 * libc/reent/reent.tex: Optionally add stdio64 reentrant syscalls
17c0c97d 12751 based on whether STDIO64 flag is set.
dee51391
JJ
12752 * libc/stdio/stdio.tex: Add blank line.
12753 * libc/stdio64/Makefile.am: New file.
12754 * libc/stdio64/Makefile.in: Ditto.
12755 * libc/stdio64/fgetpos64.c: Ditto.
12756 * libc/stdio64/fopen64.: Ditto.
12757 * libc/stdio64/freopen64.c: Ditto.
12758 * libc/stdio64/fseeko64.c: Ditto.
12759 * libc/stdio64/fsetpos64.c: Ditto.
12760 * libc/stdio64/ftello64.c: Ditto.
12761 * libc/stdio64/local64.h: Ditto.
12762 * libc/stdio64/stdio64.c: Ditto.
12763 * libc/stdio64/stdio64.tex: Ditto.
12764 * libc/stdio64/tmpfile64.c: Ditto.
12765 * libc/sys/linux/io64.c: Add weak aliases for lseek64, fstat64, and
12766 open64.
12767
778876f6
JJ
127682002-07-16 Jeff Johnston <jjohnstn@redhat.com>
12769
ba3ccd63
EB
12770 * libc/Makefile.am (stmp-extra): New target to set makeinfo flag
12771 if LIBC_EXTRA_LIB is present.
12772 * libc/Makefile.in: Regenerated.
778876f6 12773 * libc/libc.texinfo: Add blank line.
ba3ccd63
EB
12774 * libc/argz/Makefile.am: Add doc support.
12775 * libc/search/Makefile.am: Ditto.
12776 * libc/argz/Makefile.in: Regenerated.
12777 * libc/search/Makefile.in: Ditto.
12778 * libc/misc/misc.tex: Add ffs function.
12779 * libc/stdio/ftell.c: Fix missing doc delimeter in description.
778876f6 12780
37981145
JJ
127812002-07-15 Jeff Johnston <jjohnstn@redhat.com>
12782
12783 * libc/include/sys/config.h[__H8300__]: Replace __SMALL_BITFIELDS
12784 definition that was removed in error.
12785
38b5dc59
JJ
127862002-07-15 Jeff Johnston <jjohnstn@redhat.com>
12787
12788 * libc/include/machine/ieeefp.h: Change to only define
17c0c97d 12789 floating point defines (e.g one of __IEEE_BIG_ENDIAN or
38b5dc59
JJ
12790 __IEEE_LITTLE_ENDIAN must be defined for each platform).
12791 * libc/include/sys/config.h: Include <machine/ieeefp.h> and
12792 remove redundant floating point definitions.
12793
8cb61a96
JJ
127942002-07-15 Jeff Johnston <jjohnstn@redhat.com>
12795
ba3ccd63
EB
12796 * libc/sys/linux/callocr.c: Fix so code references
12797 calloc.
8cb61a96 12798
edba3282
JJ
127992002-07-15 Jeff Johnston <jjohnstn@redhat.com>
12800
ba3ccd63
EB
12801 * libc/sys/linux/Makefile.am: Add new files.
12802 * libc/sys/linux/Makefile.in: Regenerated.
12803 * libc/sys/linux/bp-sym.h: Moved to include directory.
12804 * libc/sys/linux/mmap.c: Add weak aliases: __mmap, __munmap, __mremap.
12805 * libc/sys/linux/inode.c: Set _LIBC to 1.
12806 * libc/sys/linux/mq_close.c: Ditto.
12807 * libc/sys/linux/mq_getattr.c: Ditto.
12808 * libc/sys/linux/mq_open.c: Ditto.
12809 * libc/sys/linux/mq_receive.c: Ditto.
12810 * libc/sys/linux/mq_send.c: Ditto.
12811 * libc/sys/linux/mq_setattr.c: Ditto.
12812 * libc/sys/linux/mq_unlink.c: Ditto.
12813 * libc/sys/linux/calloc.c: New file.
12814 * libc/sys/linux/callocr.c: Ditto.
12815 * libc/sys/linux/cfreer.c: Ditto.
12816 * libc/sys/linux/config.h: Ditto.
12817 * libc/sys/linux/free.c: Ditto.
12818 * libc/sys/linux/freer.c: Ditto.
12819 * libc/sys/linux/msize.c: Ditto.
12820 * libc/sys/linux/msizer.c: Ditto.
12821 * libc/sys/linux/mstats.c: Ditto.
12822 * libc/sys/linux/mtrim.c: Ditto.
12823 * libc/sys/linux/mtrimr.c: Ditto.
12824 * libc/sys/linux/pvallocr.c: Ditto.
12825 * libc/sys/linux/realloc.c: Ditto.
12826 * libc/sys/linux/reallocr.c: Ditto.
12827 * libc/sys/linux/thread-m.h: Ditto.
12828 * libc/sys/linux/vallocr.c: Ditto.
12829 * libc/sys/linux/bp-checks.h: Ditto.
12830 * libc/sys/linux/libc-symbols.h: Ditto.
12831 * libc/sys/linux/libc-tsd.h: Ditto.
12832 * libc/sys/linux/libintl.h: Ditto.
12833 * libc/sys/linux/malign.c: Ditto.
12834 * libc/sys/linux/malignr.c: Ditto.
12835 * libc/sys/linux/mallinfor.c: Ditto.
12836 * libc/sys/linux/malloc.c: Ditto.
12837 * libc/sys/linux/mallocr.c: Ditto.
12838 * libc/sys/linux/malloptr.c: Ditto.
12839 * libc/sys/linux/mallstatsr.c: Ditto.
12840 * libc/sys/linux/mcheck.c: Ditto.
12841 * libc/sys/linux/mhooks.h: Ditto.
12842 * libc/sys/linux/include/bp-sym.h: Ditto.
12843 * libc/sys/linux/include/malloc.h: Ditto.
12844 * libc/sys/linux/include/mcheck.h: Ditto.
12845 * libc/sys/linux/linuxthreads/machine/i386/Makefile.am: Remove
12846 getpagesize.c.
12847 * libc/sys/linux/linuxthreads/machine/i386/Makefile.in: Regenerated.
12848 * libc/sys/linux/linuxthreads/machine/i386/getpagesize.c: Moved.
12849 * libc/sys/linux/machine/i386/getpagesize.c: New file.
12850 * libc/sys/linux/machine/i386/Makefile.am: Add getpagesize.c.
12851 * libc/sys/linux/machine/i386/Makefile.in: Regenerated.
12852 * libc/sys/linux/machine/i386/sysdep.h: New file.
12853 * libc/sys/linux/machine/i386/weakalias.h: Add weak_function support.
12854 * libc/sys/linux/sys/dirent.h: Set _LIBC to 1.
12855 * libc/sys/linux/sys/lock.h: Include <machine/weakalias.h>.
edba3282 12856
ea20b60a
JJ
128572002-07-12 Jeff Johnston <jjohnstn@redhat.com>
12858
12859 * libc/sys/linux/include/mqueue.h: Change to use <bits/siginfo.h>
12860 instead of <asm/siginfo.h>.
12861 * libc/sys/linux/sys/signal.h: Change to include various linux
12862 <bits/xxx.h> header files, rather than <linux/signal.h> so as
12863 to work with multiple releases of glibc header files.
12864
2fc82912
JJ
128652002-07-11 Chris Demetriou <cgd@broadcom.com>
12866
ba3ccd63
EB
12867 * testsuite/newlib.search/hsearchtest.c: New file to test
12868 newlib/libc/search.
12869 * testsuite/newlib.search/hsearchtest.exp: Likewise.
2fc82912 12870
4a404e97 128712002-07-10 Florian Schrack <florian.schrack@freenet.de>
2a8b4ea3
JJ
12872
12873 * libc/sys/mmixware/read.c: Use SYS_Fgets syscall if dealing with
12874 a terminal.
12875 * libc/sys/mmixware/sys/syscall.h (SYS_Fgets): Definition added.
12876
6aec558e
JJ
128772002-07-08 Jeff Johnston <jjohnstn@redhat.com>
12878
ba3ccd63 12879 * libc/include/math.h (MAXFLOAT): Added.
6aec558e 12880
e47e6f0e 12881Mon Jul 8 13:55:23 2002 J"orn Rennecke <joern.rennecke@superh.com>
a31df303
JR
12882
12883 * libc/machine/sh/Makefile.am (lib_a_SOURCES):
12884 Make strcmp.S unconditional.
12885 * libc/machine/sh/Makefile.in: Regenerate.
12886 * libc/machine/sh/asm.h (DELAYED_BRANCHES, SL): Also for __SH5__ .
12887 * strcmp.S (strcmp): Add SHmedia variant. Use different registers
12888 for SHcompact.
12889
89ffbd66
JJ
128902002-07-04 Jeff Johnston <jjohnstn@redhat.com>
12891
12892 * libc/sys/linux/inode.c: Fix utime prototype and add _LIBC
12893 define before including <sys/lock.h>.
12894
ae6c4c84
JJ
128952002-07-04 Jeff Johnston <jjohnstn@redhat.com>
12896
12897 * libc/include/utime.h: Add include of <_ansi.h>.
12898 * libc/sys/linux/Makefile.am: Add utimes.c.
12899 * libc/sys/linux/Makefile.in: Regenerated.
12900 * libc/sys/linux/inode.c(__umask): New static routine.
12901 (umask): Written to use __umask and attempt to thread lock.
12902 (getumask): New function written to use __umask and thread lock.
12903 * libc/sys/linux/utimes.c: New file.
12904 * libc/sys/linux/sys/time.h: Fix utimes prototype.
12905 * libc/sys/linux/sys/utime.h: New file.
12906
a6cac46c
TF
129072002-07-04 Thomas Fitzsimmons <fitzsim@redhat.com>
12908
12909 * libtool.m4: New file.
12910 * libc/sys/linux/process.c: Implement vfork in terms of fork,
12911 rather than as a syscall.
12912
30b2092f
JJ
129132002-07-04 Jeff Johnston <jjohnstn@redhat.com>
12914
12915 * libc/include/stdio.h: Add new prototypes.
12916 * libc/stdio/Makefile.am: Add fseeko.c and ftello.c.
12917 * libc/stdio/Makefile.in: Regenerated.
12918 * libc/stdio/fseek.c: Add fseeko documentation.
12919 * libc/stdio/ftell.c: Add ftello documentation.
12920 * libc/stdio/fseeko.c: New file.
12921 * libc/stdio/ftello.c: New file.
12922
7501704d
JJ
129232002-07-04 Jeff Johnston <jjohnstn@redhat.com>
12924
ba3ccd63
EB
12925 * libc/stdio/Makefile.am: Add asprintf.c and vasprintf.c.
12926 * libc/stdio/Makefile.in: Regenerated.
12927 * libc/stdio/asprintf.c: New file.
12928 * libc/stdio/vasprintf.c: Ditto.
12929 * libc/stdio/fvwrite.c: Add code to dynamically reallocate
12930 the buffer for asprintf support.
12931 * libc/stdio/sprintf.c: Add asprintf documentation.
12932 * libc/stdio/vfprintf.c: Add vasprintf documentation.
12933 * libc/include/stdio.h: Add new prototypes.
7501704d 12934
66eee32b
TF
129352002-07-02 Thomas Fitzsimmons <fitzsim@redhat.com>
12936
12937 * libc/search/hcreate.c: Remove advertising clause from license.
12938 * libc/search/hcreate_r.c: Likewise.
12939
cec4a9f8
JJ
129402002-07-02 Chris Demetriou <cgd@broadcom.com>
12941
ba3ccd63
EB
12942 * libc/include/sys/config.h (__IEEE_LITTLE_ENDIAN)
12943 (__IEEE_BIG_ENDIAN): Define appropriately for MIPS.
12944 Check that one of them is defined and error out if not.
cec4a9f8 12945 Add any platforms defined in <machine/ieeefp.h> that are missing.
ba3ccd63
EB
12946 * libc/search/hash.h (DB_BYTE_ORDER, DB_BIG_ENDIAN)
12947 (DB_LITTLE_ENDIAN): New defines.
12948 * libc/search/hash.c: Replace all incorrect checks for
12949 _IEEE_LITTLE_ENDIAN with tests of BYTE_ORDER, and all uses of
12950 BYTE_ORDER, LITTLE_ENDIAN, and BIG_ENDIAN with DB_* versions.
12951 * libc/search/hash_page.c: Likewise.
cec4a9f8 12952
2d5eb17e
TF
129532002-06-28 Thomas Fitzsimmons <fitzsim@redhat.com>
12954
12955 * libm/mathfp/sf_pow.c (powf): Change k from int to float.
12956
c1a3171f
JJ
129572002-06-27 Benjamin Kosnik <bkoz@redhat.com>
12958
ba3ccd63
EB
12959 * libc/include/stdio.h: Untangle, add _BEGIN_STD_C and _END_STD_C.
12960 * libc/include/time.h: Same.
12961 * libc/include/string.h: Same.
12962 * libc/include/stdlib.h: Same.
12963 * libc/include/signal.h: Same.
12964 * libc/include/setjmp.h: Same.
12965 * libc/include/math.h: Same.
12966 * libc/include/locale.h: Same.
12967 * libc/include/ctype.h: Same.
12968 * libc/include/machine/setjmp.h: Same.
12969 * libc/include/_ansi.h (_BEGIN_STD_C): Add.
12970 (_END_STD_C): Add.
c1a3171f 12971
533b4e66
JJ
129722002-06-27 Jeff Johnston <jjohnstn@redhat.com>
12973
ba3ccd63
EB
12974 * libc/include/sys/_types.h: Define _ssize_t as int if int is
12975 32-bits, otherwise define it as long.
12976 * libc/include/sys/types.h: Include <_ansi.h> and <sys/_types.h>
12977 and define ssize_t as _ssize_t.
12978 * libc/reent/readr.c: Change return type to _ssize_t.
12979 * libc/reent/writer.c: Ditto.
12980 * libc/sys/linux/Makefile.am: Add aio.c.
12981 * libc/sys/linux/Makefile.in: Regenerated.
12982 * libc/sys/linux/aio.c: New file.
12983 * libc/sys/linux/sys/cdefs.h: Add __restrict_arr definition.
12984 * libm/common/fdlibm.h: Undef __P before defining it.
533b4e66 12985
c36e6dd7
TF
129862002-06-27 Thomas Fitzsimmons <fitzsim@redhat.com>
12987
54be629f
TF
12988 * libm/mathfp/s_pow.c (pow): Fix checks on variable k. Add
12989 exponent_is_even_int variable. Handle case where x is
12990 negative, and y is an odd integer.
12991 * libm/mathfp/sf_pow.c (powf): Likewise.
12992
c36e6dd7
TF
12993 * libm/mathfp/er_lgamma.c: Remove __kernel references.
12994 * libm/mathfp/erf_lgamma.c: Likewise.
12995 * libm/mathfp/s_tgamma.c: Likewise.
12996 * libm/mathfp/sf_tgamma.c: Likewise.
12997
baf051ca
JJ
129982002-06-27 Jeff Johnston <jjohnstn@redhat.com>
12999
ba3ccd63
EB
13000 * libc/sys/linux/Makefile.am: Add new clock routines.
13001 * libc/sys/linux/Makefile.in: Regenerated.
13002 * libc/sys/linux/clock_getres.c: New file.
13003 * libc/sys/linux/clock_gettime.c: Ditto.
13004 * libc/sys/linux/clock_settime.c: Ditto.
13005 * libc/sys/linux/hp-timing.h: Ditto.
13006 * libc/sys/linux/libc-internal.h: Ditto.
13007 * libc/sys/linux/sysconf.c: Fix typo.
13008 * libc/sys/linux/include/time.h: Add include of <sys/linux_time.h>.
13009 * libc/sys/linux/machine/hp-timing.h: New file.
13010 * libc/sys/linux/machine/i386/Makefile.am: Add new files.
13011 * libc/sys/linux/machine/i386/Makefile.in: Regenerated.
13012 * libc/sys/linux/machine/i386/get_clockfreq.c: New file.
13013 * libc/sys/linux/machine/i386/hp-timing.c: Ditto.
13014 * libc/sys/linux/machine/i386/hp-timing.h: Ditto.
13015 * libc/sys/linux/sys/linux_time.h: New file.
13016 * libc/sys/linux/sys/time.h: Remove include of <linux/time.h> and
13017 replace with <sys/linux_time.h>.
baf051ca 13018
0431ed4e
JR
13019Wed Jun 26 16:33:25 2002 J"orn Rennecke <joern.rennecke@superh.com>
13020
13021 * libc/sys/sh/crt0.S: Remove vestigial .section directive.
13022
fc067ba5
JJ
130232002-06-25 Jeff Johnston <jjohnstn@redhat.com>
13024
ba3ccd63
EB
13025 * libc/sys/linux/Makefile.am: Consolidate additional items under
13026 ADD_OBJS.
13027 * libc/sys/linux/Makefile.in: Regenerated.
fc067ba5 13028
ffddf61e
JJ
130292002-06-25 Jeff Johnston <jjohnstn@redhat.com>
13030
ba3ccd63
EB
13031 * libc/sys/linux/sethostname.c: New file.
13032 * libc/sys/linux/Makefile.am: Add sethostname.c support.
13033 * libc/sys/linux/Makefile.in: Regenerated.
ffddf61e 13034
d5487d3f
TF
130352002-06-24 Thomas Fitzsimmons <fitzsim@redhat.com>
13036
13037 * libc/search/db_local.h: New file.
13038 * libc/include/db.h: Remove.
13039 * libc/search/Makefile.am (LIB_SOURCES): Add db_local.h.
13040 * libc/search/hash.c (MIN,MAX): Add macros. Change <db.h> to
13041 "db_local.h".
13042 * libc/search/hash_bigkey.c: Likewise.
13043 * libc/search/hash_buf.c: Likewise.
13044 * libc/search/hash_func.c: Likewise.
13045 * libc/search/hash_log2.c: Likewise.
13046 * libc/search/hash_page.c: Likewise.
13047
130482002-06-24 J"orn Rennecke <joern.rennecke@superh.com>
e08a6118 13049
1e7ca711 13050 * libc/machine/sh/strlen.S: New file.
e08a6118
JR
13051 * libc/machine/sh/Makefile.am (lib_a_SOURCES): Add rule for it.
13052 * libc/machine/sh/Makefile.am: Regenerate.
13053
59c6d6c4
JJ
130542002-06-24 Jeff Johnston <jjohnstn@redhat.com>
13055
ba3ccd63
EB
13056 * libc/sys/linux/gethostname.c: Change name to __gethostname and
13057 add gethostname alias.
59c6d6c4 13058
a70486d7
JJ
130592002-06-24 Jeff Johnston <jjohnstn@redhat.com>
13060
13061 * libc/include/math.h: Remove <sys/types.h>.
a5dadf33 13062 (__dmath): Use __ULong instead of __uint32_t.
a70486d7 13063 * libc/include/sys/reent.h: If long or int is not 32-bits,
a5dadf33 13064 include <sys/types.h> to get definitions for __int32_t and __uint32_t.
a70486d7
JJ
13065 * libc/stdlib/mprec.h: Include <sys/types.h> to get integer defs.
13066 * libm/common/fdlibm.h: Ditto.
13067
3118725a
TF
130682002-06-24 Thomas Fitzsimmons <fitzsim@redhat.com>
13069
13070 * libc/include/ndbm.h: Remove.
13071 * libc/search/ndbm.c: Remove.
13072
30a06168
TF
130732002-06-24 WATANABE Hirofumi <eban@os.rim.or.jp>
13074
13075 * libc/stdio/fseek.c (fseek): Fix braces.
13076
01f5155e
CV
130772002-06-21 Corinna Vinschen <corinna@vinschen.de>
13078
13079 * libc/time/strftime.c (strftime): Add %e format specifier.
13080
930bc96b
TF
130812002-06-21 Thomas Fitzsimmons <fitzsim@redhat.com>
13082
13083 * libc/search/hash.h (LITTLE_ENDIAN, BIG_ENDIAN): Define if not
13084 previously defined.
13085
55105f86
JJ
130862002-06-21 Richard Earnshaw (rearnsha@arm.com)
13087
ba3ccd63
EB
13088 * libc/sys/arm/sys/param.h (BIG_ENDIAN, LITTLE_ENDIAN): Define.
13089 (BYTE_ORDER): Define as appropriate for the target.
55105f86 13090
2e78444a
JJ
130912002-06-21 Jeff Johnston <jjohnstn@redhat.com>
13092
13093 * libc/include/sys/config.h[__linux__]: Set _READ_WRITE_RETURN_TYPE
13094 to _ssize_t.
13095 * libc/sys/linux/io.c (read, write): Change to return ssize_t.
13096
d427d092
JJ
130972002-06-21 Jeff Johnston <jjohnstn@redhat.com>
13098
13099 * libc/include/stdio.h (__getline, __getdelim): New prototypes.
13100 * libc/include/time.h [HAVE_GETDATE](getdate, getdate_r): Ditto.
13101 [HAVE_GETDATE](getdate_err): New error code.
13102 * libc/stdio/Makefile.am: Add support for getline.c and getdelim.c.
13103 * libc/stdio/Makefile.in: Regenerated.
13104 * libc/stdio/getdelim.c: New file.
13105 * libc/stdio/getline.c: Ditto.
13106 * libc/sys/linux/Makefile.am: Add support for getdate.c, getdate_err.c
13107 and ntp_gettime.c. Also add AM_CFLAGS to point to libc/stdio.
13108 * libc/sys/linux/Makefile.in: Regenerated.
13109 * libc/sys/linux/getdate.c: New file.
13110 * libc/sys/linux/getdate_err.c: Ditto.
13111 * libc/sys/linux/ntp_gettime.c: Ditto.
13112 * libc/sys/linux/time.c (adjtimex, ntp_adjtime): New functions.
13113 * libc/sys/linux/sys/stdio.h (getline, getdelim): New macros.
13114
35728d4f
JJ
131152002-06-21 Jeff Johnston <jjohnstn@redhat.com>
13116
13117 * libc/include/math.h: Add <sys/types.h> to get _uint32_t definition.
13118 * libc/include/machine/types.h: Skip __off_t, __pid_t, and
13119 __loff_t definitions if special _HAVE_SYSTYPES macro defined.
13120 * libc/include/sys/config.h: Removed _uint*, _int* definitions.
13121 * libc/include/sys/param.h: Remove i386 case which is handled
13122 by default case.
13123 (BIG_ENDIAN, LITTLE_ENDIAN): Protect
13124 definitions in case they are already defined.
13125 (BYTE_ORDER): Add default case using _IEEE_BIG_ENDIAN and
13126 _IEEE_LITTLE_ENDIAN flags.
13127 * libc/include/sys/reent.h: Change __uint32_t references to
13128 use _ULong instead.
13129 (_REENT_GETDATE_REENT_P): New macro.
13130 * libc/include/sys/types.h (__int16_t, __uint16_t): Added.
13131 (__int32_t, __uint32_t, __int64_t, __uint64_t): Ditto.
13132 * libc/search/hash.h: Add default setting of BYTE_ORDER,
13133 LITTLE_ENDIAN, and BIG_ENDIAN, if not already defined.
13134 * libc/sys/linux/sys/types.h: Include <sys/_types.h>. Define
13135 ssize_t based on _ssize_t. Remove __socklen_t, __uintptr_t,
13136 pid_t, off_t, loff_t, caddr_t, and daddr_t type
13137 definitions which are done by subsequent glibc headers.
13138 Add macro definitions to prevent subsequent header files from
13139 defining pid_t, off_t, ssize_t, and key_t. Move uintptr_t and
13140 intptr_t to after glibc definitions of types they are based on.
13141
4a2bfab7
JJ
131422002-06-21 Jeff Johnston <jjohnstn@redhat.com>
13143
13144 * libc/include/errno.h: Protect from multiple inclusion.
13145
f42d18ea
NC
131462002-06-21 Nick Clifton <nickc@cambridge.redhat.com>
13147
13148 * libc/sys/arm/swi.h (ADP_Stopped_RunTimeError): Set correct value.
13149
a7b23a8f
TF
131502002-06-20 Thomas Fitzsimmons <fitzsim@redhat.com>
13151
13152 * Makefile.am (LIB_OBJECTLISTS): Add
13153 libc/search/objectlist.awk.in.
13154 * libc/Makefile.am (SUBDIRS): Add search.
13155 (SUBLIBS): Add search/libsearch.la.
13156 * libc/configure.in (AC_OUTPUT): Add search/Makefile.
13157 * libc/search: New directory.
13158 * libc/search/Makefile.am: New file.
13159 * libc/search/extern.h: New file.
13160 * libc/search/hash.c: New file.
13161 * libc/search/hash.h: New file.
13162 * libc/search/hash_bigkey.c: New file.
13163 * libc/search/hash_buf.c: New file.
13164 * libc/search/hash_func.c: New file.
13165 * libc/search/hash_log2.c: New file.
13166 * libc/search/hash_page.c: New file.
13167 * libc/search/hcreate.3: New file.
13168 * libc/search/hcreate.c: New file.
a7b23a8f
TF
13169 * libc/search/hcreate_r.c: New file.
13170 * libc/search/ndbm.c: New file.
13171 * libc/search/page.h: New file.
13172 * libc/search/tdelete.c: New file.
13173 * libc/search/tdestroy.c: New file.
13174 * libc/search/tfind.c: New file.
13175 * libc/search/tsearch.3: New file.
13176 * libc/search/tsearch.c: New file.
13177 * libc/search/twalk.c: New file.
13178 * libc/include/db.h: New file.
13179 * libc/include/ndbm.h: New file.
13180 * libc/include/search.h: New file.
13181 * libc/include/sys/queue.h: New file.
13182 * libc/include/sys/cdefs.h: New file.
13183 * libc/include/sys/param.h
13184 [__IEEE_LITTLE_ENDIAN,__IEEE_BIG_ENDIAN]: Set BYTE_ORDER to
13185 LITTLE_ENDIAN or BIG_ENDIAN.
13186 * libc/include/sys/errno.h (EFTYPE): New macro.
13187 * libc/search/bsearch.c: Move from libc/stdlib.
13188 * libc/search/qsort.c: Likewise.
13189 * libc/stdlib/Makefile.am (LIB_SOURCES): Remove bsearch.c and
13190 qsort.c.
13191 (CHEWOUT_FILES): Remove bsearch.def and qsort.def.
13192 * libc/stdlib/stdlib.tex: Remove references to bsearch and qsort.
13193
ef467338
JJ
131942002-06-19 Jeff Johnston <jjohnstn@redhat.com>
13195
ba3ccd63
EB
13196 * libc/sys/linux/Makefile.am: Add support for message queue routines,
13197 ipc routines, and ftok.
13198 * libc/sys/linux/Makefile.in: Regenerated.
13199 * libc/sys/linux/ftok.c: New file.
13200 * libc/sys/linux/ipc.c: Ditto.
13201 * libc/sys/linux/mq_close.c: Ditto.
13202 * libc/sys/linux/mq_getattr.c: Ditto.
13203 * libc/sys/linux/mq_notify.c: Ditto.
13204 * libc/sys/linux/mq_open.c: Ditto.
13205 * libc/sys/linux/mq_receive.c: Ditto.
13206 * libc/sys/linux/mq_send.c: Ditto.
13207 * libc/sys/linux/mq_setattr.c: Ditto.
13208 * libc/sys/linux/mq_unlink.c: Ditto.
13209 * libc/sys/linux/mqlocal.h: Ditto.
13210 * libc/sys/linux/include/mqueue.h: Ditto.
13211 * libc/sys/linux/sys/types.h: Define __gid_t_defined and
13212 __uid_t_defined.
ef467338 13213
7f55c08c
TF
132142002-06-19 J"orn Rennecke <joern.rennecke@superh.com>
13215
13216 * libm/common/sf_lround.c (round): Change name to: (lround).
13217 * libm/common/sf_remquo.c (remquo): Pass all arguemnts to
13218 remquof.
13219
c9ca68d7
TF
132202002-06-18 Thomas Fitzsimmons <fitzsim@redhat.com>
13221
13222 * testsuite/lib/passfail.exp (newlib_pass_fail_all): New
13223 procedure.
13224 (newlib_pass_fail): Change to compile and run only one file.
13225 * testsuite/newlib.locale/locale.exp: Use new
13226 newlib_pass_fail_all procedure.
13227 * testsuite/newlib.string/string.exp: Likewise.
13228
4ecedd09
DB
132292002-06-18 Dave Brolley <brolley@redhat.com>
13230
13231 From Catherine Moore, Michael Meissner, Richard Sandiford:
13232 * libc/include/machine/setjmp.h (_JBLEN): Define for __frv__.
13233 (_JBTYPE): Ditto.
13234 * libc/include/sys/config.h (__IEEE_BIG_ENDIAN): Ditto.
13235 (__ATTRIBUTE_IMPURE_PTR__): Ditto.
13236 * libc/include/machine/ieeefp.h (__IEEE_BIG_ENDIAN): Ditto.
13237 * configure.host: Support frv-*-*.
13238 * libc/machine/frv/Makefile.am: New file.
13239 * libc/machine/frv/configure.in: New file.
13240 * libc/machine/frv/setjmp.S: New file.
13241
af1c257a
TF
132422002-06-18 Thomas Fitzsimmons <fitzsim@redhat.com>
13243
13244 * libc/include/ctype.h: Remove isblank macro.
13245
13246 * libc/ctype/Makefile.am (LIB_SOURCES): Add isblank.c.
13247 * libc/ctype/isblank.c: New file.
13248 * libc/include/ctype.h [!__STRICT_ANSI__]: Add isblank
13249 declaration. Add isblank macro.
13250
4e04fa90
JJ
132512002-06-18 Jeff Johnston <jjohnstn@redhat.com>
13252
ba3ccd63
EB
13253 * testsuite/newlib.stdlib/atexit.c: New file.
13254 * testsuite/newlib.stdlib/atexit.exp: Ditto.
13255 * testsuite/newlib.string/tstring.c: Change default start size
13256 to something more reasonable for embedded platforms.
4e04fa90 13257
b56d7e79
TF
132582002-06-14 Thomas Fitzsimmons <fitzsim@redhat.com>
13259
ece3c72f
TF
13260 * libc/sys/linux/sys/errno.h (EFTYPE): Add macro.
13261
b56d7e79
TF
13262 * libc/argz: New directory.
13263 * libc/argz/*: New files.
13264 * libc/argz/argz_add.c: New file.
13265 * libc/argz/argz_add_sep.c: New file.
13266 * libc/argz/argz_append.c: New file.
13267 * libc/argz/argz_count.c: New file.
13268 * libc/argz/argz_create.c: New file.
13269 * libc/argz/argz_create_sep.c: New file.
13270 * libc/argz/argz_delete.c: New file.
13271 * libc/argz/argz_extract.c: New file.
13272 * libc/argz/argz_insert.c: New file.
13273 * libc/argz/argz_next.c: New file.
13274 * libc/argz/argz_replace.c: New file.
13275 * libc/argz/argz_stringify.c: New file.
13276 * libc/argz/buf_findstr.c: New file.
13277 * libc/argz/envz_add.c: New file.
13278 * libc/argz/envz_entry.c: New file.
13279 * libc/argz/envz_get.c: New file.
13280 * libc/argz/envz_merge.c: New file.
13281 * libc/argz/envz_remove.c: New file.
13282 * libc/argz/envz_strip.c: New file.
13283 * libc/include/argz.h: New file.
13284 * libc/include/envz.h: New file.
13285 * Makefile.am (LIBC_OBJECTLISTS): Add
13286 libc/argz/objectlist.awk.in.
13287 * libc/Makefile.am (SUBDIRS): Add argz.
13288 (SUBLIBS): Add argz/libargz.la.
13289 * libc/configure.in (AC_OUTPUT): Add argz/Makefile.
13290 * libc/include/errno.h: Add error_t typedef.
13291
d062d3dd
JJ
132922002-06-13 Jeff Johnston <jjohnstn@redhat.com>
13293
13294 * libc/include/stdlib.h: Add _Exit prototype.
13295 * libc/stdlib/Makefile.am: Add _Exit.c support.
13296 * libc/stdlib/Makefile.in: Ditto.
13297 * libc/stdlib/_Exit.c: New file.
13298
a47e66ae
JJ
132992002-06-13 Stephen L. Moshier <steve@moshier.net>
13300
13301 * libm/math/e_pow.c (__ieee754_pow): Fix case whereby
13302 x is close to -1.0 and y is very large to use ax (absolute value)
13303 instead of x.
13304 * libm/math/ef_pow.c (__ieee754_powf): Ditto.
13305
13f7d71f
JR
13306Thu Jun 13 19:23:40 2002 J"orn Rennecke <joern.rennecke@superh.com>
13307
13308 * libc/machine/sh/strcpy.S (strcpy, __SHMEDIA__ code):
13309 Fix clobbering bytes before destination if src and dst have same
13310 non-zero misalignment.
1f1fb421
JR
13311
13312 * libc/machine/sh/memset.S (memset, __SHMEDIA__ code):
13313 Fixed bug in writing end of set region.
13314
b2e8018f
CF
133152002-06-10 Christopher Faylor <cgf@redhat.com>
13316
13317 * libc/include/process.h: Remove cygwin-only sexec* declarations. Fix
13318 spawnve declaration.
13319
0953fe64
TF
133202002-06-06 Thomas Fitzsimmons <fitzsim@redhat.com>
13321
13322 * libm/common/s_fdim.c: New file.
13323 * libm/common/s_fma.c: Likewise.
13324 * libm/common/s_fmax.c: Likewise.
13325 * libm/common/s_fmin.c: Likewise.
13326 * libm/common/s_fpclassify.c: Likewise.
13327 * libm/common/s_lrint.c: Likewise.
13328 * libm/common/s_lround.c: Likewise.
13329 * libm/common/s_nearbyint.c: Likewise.
13330 * libm/common/s_remquo.c: Likewise.
13331 * libm/common/s_round.c: Likewise.
13332 * libm/common/s_scalbln.c: Likewise.
13333 * libm/common/s_signbit.c: Likewise.
13334 * libm/common/s_trunc.c: Likewise.
13335 * libm/common/sf_fdim.c: Likewise.
13336 * libm/common/sf_fma.c: Likewise.
13337 * libm/common/sf_fmax.c: Likewise.
13338 * libm/common/sf_fmin.c: Likewise.
13339 * libm/common/sf_lrint.c: Likewise.
13340 * libm/common/sf_lround.c: Likewise.
13341 * libm/common/sf_nearbyint.c: Likewise.
13342 * libm/common/sf_remquo.c: Likewise.
13343 * libm/common/sf_round.c: Likewise.
13344 * libm/common/sf_scalbln.c: Likewise.
13345 * libm/common/sf_trunc.c: Likewise.
13346 * libm/math/w_exp2.c: Likewise.
13347 * libm/math/w_tgamma.c: Likewise.
13348 * libm/math/wf_exp2.c: Likewise.
13349 * libm/math/wf_tgamma.c: Likewise.
13350 * libm/mathfp/s_exp2.c: Likewise.
13351 * libm/mathfp/s_tgamma.c: Likewise.
13352 * libm/mathfp/sf_exp2.c: Likewise.
13353 * libm/mathfp/sf_tgamma.c: Likewise.
13354 * libm/math/er_gamma.c: Fix return value.
13355 * libm/math/erf_gamma.c: Likewise.
13356 * libm/mathfp/er_gamma.c: Likewise.
13357 * libm/mathfp/erf_gamma.c: Likewise.
13358 * libc/include/math.h (!__STRICT_ANSI__): Include ISOC99-specific
13359 declarations and macros.
13360 Regenerated all Makefile.in, aclocal.m4 and configure files to
13361 use new libtool macros in top-level libtool.m4
13362
39e65e01
JJ
133632002-06-05 Jeff Johnston <jjohnstn@redhat.com>
13364
ba3ccd63
EB
13365 * libc/include/string.h[__linux__]: Add strsignal prototype.
13366 * libc/include/sys/lock.h: New file with default locking support.
13367 * libc/include/sys/reent.h: Add signal buffer support for strsignal
13368 and psignal.
13369 * libc/posix/Makefile.am: Add support for readdir_r.c.
13370 * libc/posix/Makefile.in: Regenerated.
13371 * libc/posix/closedir.c: Add locking support and hash table cleanup.
13372 * libc/posix/opendir.c: Add lock support.
13373 * libc/posix/readdir.c: Ditto.
13374 * libc/posix/rewinddir.c: Ditto.
13375 * libc/posix/scandir.c: Ditto.
13376 * libc/posix/seekdir.c: Ditto.
13377 * libc/posix/telldir.c: Ditto plus add _cleanupdir routine to
13378 clean up leftover hash table entries.
13379 * libc/posix/readdir_r.c: New file.
13380 * libc/sys/linux/Makefile.am: Add psignal.c and strsignal.c support.
13381 * libc/sys/linux/Makefile.in: Regenerated.
13382 * libc/sys/linux/sys/dirent.h: Add dd_lock to DIR structure.
13383 * libc/sys/linux/sys/signal.h: Add psignal prototype.
13384 * libc/sys/linux/psignal.c: New file.
13385 * libc/sys/linux/strsignal.c: Ditto.
39e65e01 13386
cc890e89
CV
133872002-06-03 Corinna Vinschen <corinna@vinschen.de>
13388
13389 * libc/include/sys/types.h: Don't define dev_t when compiling for
13390 Cygwin.
13391
ea55e3f7
JJ
133922002-05-31 Jeff Johnston <jjohnstn@redhat.com>
13393
ba3ccd63
EB
13394 * libc/sys/linux/Makefile.am: Add sig.c and sigaction.c. Also
13395 make siglist.inc dependent on sig.c instead of signal.c.
13396 * libc/sys/linux/Makefile.in: Regenerated.
13397 * libc/sys/linux/sig.c: Rename from signal.c and change code to
13398 use NSIG instead of _NSIG.
13399 * libc/sys/linux/sigaction.c: New file.
13400 * libc/sys/linux/signal.c: Changed to be linux signal() function
13401 so as to override regular newlib default signal.c.
13402 * libc/sys/linux/machine/i386/Makefile.am: Remove sigset.c.
13403 * libc/sys/linux/machine/i386/Makefile.in: Regenerated.
13404 * libc/sys/linux/machine/i386/sigset.c: Moved to linux main directory.
13405 * libc/sys/linux/sigset.c: Moved from machine/i386 directory.
13406 * libc/sys/linux/sys/signal.h: Redefine NSIG to _NSIG and override
13407 default linux sigset_t typedef by defining it equal to __sigset_t.
13408 * libc/unix/sigset.c: Add check so code isn't compiled on systems
13409 with a sigset_t that isn't implemented with a single int.
ea55e3f7 13410
9d362914
JJ
134112002-05-30 Jeff Johnston <jjohnstn@redhat.com>
13412
ba3ccd63
EB
13413 * libc/sys/linux/Makefile.am: Add support for new files.
13414 * libc/sys/linux/Makefile.in: Regenerated.
13415 * libc/sys/linux/ids.c: Add __getuid weak alias for getuid.
13416 * libc/sys/linux/signal.c: Change to use real-time syscalls for
13417 sigsuspend, sigprocmask, and sigpending. Also remove sigaction as
13418 it is in a separate file now.
13419 * libc/sys/linux/machine/i386/Makefile.am
13420 * libc/sys/linux/machine/i386/Makefile.in
13421 * libc/sys/linux/sys/signal.h: Add include of <bits/signum.h>.
13422 * libc/sys/linux/sigaction.c: New file.
13423 * libc/sys/linux/sigqueue.c: Ditto.
13424 * libc/sys/linux/sigwait.c: Ditto.
13425 * libc/sys/linux/machine/i386/sigaction.c: Ditto.
13426 * libc/sys/linux/kernel_sigaction.h: Ditto.
9d362914 13427
b1f07180
JJ
134282002-05-28 Jeff Johnston <jjohnstn@redhat.com>
13429
ba3ccd63
EB
13430 * libc/sys/linux/Makefile.am: Add support for cfspeed.c and
13431 tcsendbrk.c.
13432 * libc/sys/linux/Makefile.in: Regenerated.
13433 * libc/sys/linux/termios.c: Add tcflow(), tcflush(),
13434 tcgetpgrp(), and tcsetpgrp() functions.
13435 * libc/sys/linux/sys/termios.h: Add include of machine/termios.h
13436 to get __MAX_BAUD rate.
13437 * libc/sys/linux/machine/i386/include/termios.h: New file.
13438 * libc/include/machine/termios.h: Ditto.
13439 * libc/sys/linux/cfspeed.c: Ditto.
13440 * libc/sys/linux/tcsendbrk.c: Ditto.
b1f07180 13441
d29587b4
JJ
134422002-05-24 Jeff Johnston <jjohnstn@redhat.com>
13443
ba3ccd63
EB
13444 * libc/include/string.h: Add strnlen and strerror_r prototypes.
13445 * libc/string/Makefile.am: Add strnlen.c and strerror_r.c support.
13446 * libc/string/Makefile.in: Regenerated.
13447 * libc/string/strerror_r.c: New file.
13448 * libc/string/strnlen.c: New file.
13449 * libc/sys/linux/Makefile.am: Add rename.c.
13450 * libc/sys/linux/Makefile.in: Regenerated.
13451 * libc/sys/linux/rename.c: New file to override default rename.
d29587b4 13452
9a292385
TF
134532002-05-24 Thomas Fitzsimmons <fitzsim@redhat.com>
13454
13455 * libc/sys/linux/sys/cdefs.h: Add __weak_reference macros.
13456 * libc/sys/linux/sys/time.h: Add conversion macros.
13457 * libc/sys/linux/sys/types.h: Add FD_ macros. Include <bits/types.h>.
13458 * libc/sys/linux/ids.c: Add setresuid and syslog syscalls.
13459 * libc/sys/linux/gethostname.c: New file.
13460 * libc/sys/linux/seteuid.c: New file.
13461 * libc/sys/linux/sysctl.c: New file.
17c0c97d 13462
7a364eb3
JJ
134632002-05-23 Jeff Johnston <jjohnstn@redhat.com>
13464
ba3ccd63
EB
13465 * libc/string/Makefile.am: Add support for strsep.c.
13466 * libc/string/Makefile.in: Regenerated.
13467 * libc/string/strsep.c: New file.
13468 * libc/string/strtok.c: Change to call __strtok_r service routine.
13469 * libc/string/strtok_r.c: Add __strtok_r routine which takes
13470 additional flag parameter regarding whether to skip leading delimeters.
13471 Change strtok_r to call __strtok_r.
7a364eb3 13472
164ee5b0
JJ
134732002-05-23 Gareth Pearce <tilps@hotmail.com>
13474
ba3ccd63
EB
13475 * libc/stdio/Makefile.am: Modify to add setbuffer.c and setlinebuf.c.
13476 * libc/stdio/Makefile.in: Regenerated.
13477 * libc/stdio/setbuffer.c: New file.
13478 * libc/stdio/setlinebuf.c: New file.
164ee5b0 13479
f6b2b567
JJ
134802002-05-23 Jeff Johnston <jjohnstn@redhat.com>
13481
ba3ccd63
EB
13482 * libc/sys/linux/Makefile.am: Add resource.c.
13483 * libc/sys/linux/Makefile.in: Regenerated.
13484 * libc/sys/linux/resource.c: New file.
13485 * libc/sys/linux/time.c: Add settimeofday, getitimer, and setitimer.
13486 * libc/sys/linux/machine/i386/Makefile.am: Remove syscalls.c.
13487 * libc/sys/linux/machine/i386/Makefile.in: Regenerated.
13488 * libc/sys/linux/machine/i386/syscalls.c: Removed as functions
13489 are now found in libc/sys/linux/resource.c.
f6b2b567 13490
afe56517
JJ
134912002-05-23 Jeff Johnston <jjohnstn@redhat.com>
13492
ba3ccd63
EB
13493 * libc/include/string.h (bcmp, bcopy, bzero): Change prototypes
13494 to use void * pointers and comply with Single Unix spec.
13495 * libc/string/bcmp.c: Change to use void * instead of char *.
13496 * libc/string/bcopy.c: Ditto.
13497 * libc/string/bzero.c: Ditto.
afe56517 13498
7736feb2
JJ
134992002-05-22 Jeff Johnston <jjohnstn@redhat.com>
13500
13501 * libc/sys/linux/shm_open.c: New file.
13502 * libc/sys/linux/shm_unlink.c: Ditto.
13503 * libc/sys/linux/Makefile.am: Add support for shm_open.c and
13504 shm_unlink.c.
13505 * libc/sys/linux/Makefile.in: Regenerated.
13506 * libc/sys/linux/sys/types.h: Add some additional checks to see
13507 if clock_t or time_t is already defined.
13508
19f111bd
JJ
135092002-05-22 Jeff Johnston <jjohnstn@redhat.com>
13510
ba3ccd63
EB
13511 * Makefile.am: Don't pass $toollibdir down directly in
13512 AM_MAKEFLAGS as it causes all multilibs to use the same toollibdir.
13513 Pass it under the name: top_toollibdir.
13514 * Makefile.in: Regenerated.
19f111bd 13515
c811b1ee
CV
135162002-05-22 Corinna Vinschen <vinschen@redhat.com>
13517
13518 * libc/include/sys/types.h: Revert previous patch.
13519
2b43ad33
CV
135202002-05-22 Corinna Vinschen <vinschen@redhat.com>
13521
13522 * libc/include/sys/types.h: Include cygwin/types.h always under
13523 Cygwin, not only if _POSIX_THREADS is defined.
13524
dd671cde
TF
135252002-05-21 Dhananjay Deshpande <dhananjayd@kpit.com>
13526
13527 * configure.host: Specify sys_dir=h8300hms for h8300-*-coff* target.
13528
5e2cbfb6
JJ
135292002-05-17 Jeff Johnston <jjohnstn@redhat.com>
13530
13531 * Makefile.am: Copy and install headers from sys/machine/include
13532 directory. Also pass $toollibdir to lower-level directories.
13533 * Makefile.in: Regenerated.
17c0c97d 13534 * libc/include/stdio.h[!_REENT_ONLY]: Change stdin, stdout, and
5e2cbfb6
JJ
13535 stderr to use _REENT macro instead of _impure_ptr directly.
13536 * libc/include/sys/config.h[__i386__][__linux__]: Define
13537 __DYNAMIC_REENT__.
17c0c97d 13538 * libc/include/sys/reent.h[!_REENT_ONLY]: Change _REENT macro to be
5e2cbfb6
JJ
13539 call to __getreent() function if !__SINGLE_THREAD__ and
13540 __DYNAMIC_REENT__ is set.
13541 * libc/reent/Makefile.am: Add support for getreent.c.
13542 * libc/reent/Makefile.in: Regenerated.
13543 * libc/string/strerror.c: Add check if EOPNOTSUPP and ENOTSUP are same.
13544 * libc/sys/linux/Makefile.am: Add support for new files.
13545 * libc/sys/linux/configure.in: Add $EXTRA_DIRS variable.
13546 * libc/sys/linux/Makefile.in: Regenerated.
13547 * libc/sys/linux/configure: Ditto.
13548 * libc/sys/linux/io.c: Add poll syscall. Also weak-alias
13549 __close, __read, __write, __poll, __open, __lseek, __fcntl from
13550 their __libc_ counterparts.
13551 * libc/sys/linux/io64.c: Add __libc_ prefix to lseek64 and open64
13552 and weak-alias to regular names.
13553 * libc/sys/linux/pread64.c: Rename to __libc_pread64 and weak-alias
13554 to pread64 and __pread64.
13555 * libc/sys/linux/process.c: Weak_alias __libc_getpid to __getpid.
13556 * libc/sys/linux/pwrite64.c: Rename to __libc_pwrite64 and
13557 weak-alias to pwrite64.
13558 * libc/sys/linux/sched.c: Weak-alias __libc_sched_getparam,
13559 __libc_sched_getscheduler, __libc_sched_get_priority_max,
13560 __libc_sched_get_priority_min, and __libc_sched_setschedule to
17c0c97d 13561 name with __ instead of __libc_.
5e2cbfb6
JJ
13562 * libc/sys/linux/siglongjmp.c: Include <machine/weakalias.h>.
13563 Rename siglongjmp to __libc_siglongjmp and weak-alias to siglongjmp.
13564 Call __libc_longjmp instead of longjmp, from __libc_siglongjmp.
13565 * libc/sys/linux/signal.c: Rename raise to __libc_raise and weak-alias
13566 to raise.
13567 * libc/sys/linux/socket.c: Weak-alias __libc_connect to __connect and
13568 __libc_send to __send.
13569 * libc/sys/linux/time.c: Weak-alias __libc_gettimeofday to
13570 __gettimeofday.
13571 * libc/sys/linux/wait.c: Rename wait to __libc_wait and weak-alias
13572 it to wait. Rename wait3 to __libc_wait3 and weak-alias it to wait3.
13573 * libc/sys/linux/include/setjmp.h: Use __jmp_buf in sigjmp_buf
13574 type and typedef __jmp_buf to jmp_buf.
13575 * libc/sys/linux/machine/i386/Makefile.am: Add syscalls.c and
13576 setjmp.S.
13577 * libc/sys/linux/machine/i386/Makefile.in: Regenerated.
13578 * libc/sys/linux/machine/i386/crt0.c: Add support to clear .bss
13579 section.
13580 * libc/sys/linux/machine/i386/socketcall.h: Change to use __libc_
13581 prefix for function macros and then use weak_alias() to regular names.
13582 * libc/sys/linux/machine/i386/syscall.h: Ditto.
13583 * libc/sys/linux/sys/errno.h: Define EOPNOTSUP to be ENOTSUP.
13584 * libc/sys/linux/sys/stdio.h: Define _flockfile and _funlockfile
13585 to be flockfile() and funlockfile() respectively.
13586 * libc/sys/linux/sys/types.h
13587 * libc/reent/getreent.c: New file.
13588 * libc/sys/linux/flockfile.c: Ditto.
13589 * libc/sys/linux/funlockfile.c: Ditto.
13590 * libc/sys/linux/getreent.c: Ditto.
13591 * libc/sys/linux/pread.c: Ditto.
13592 * libc/sys/linux/pwrite.c: Ditto.
13593 * libc/sys/linux/raise.c: Ditto.
13594 * libc/sys/linux/system.c: Ditto.
13595 * libc/sys/linux/tcdrain.c: Ditto.
13596 * libc/sys/linux/machine/i386/i386mach.h: Ditto.
13597 * libc/sys/linux/machine/i386/setjmp.S: Ditto.
13598 * libc/sys/linux/machine/i386/syscalls.c: Ditto.
13599 * libc/sys/linux/machine/i386/weakalias.h: Ditto.
13600 * libc/sys/linux/machine/i386/include/setjmp.h: Ditto.
13601
7fc85bd1
TF
136022002-05-14 Dhananjay Deshpande <dhananjayd@kpit.com>
13603
13604 * newlib/libc/sys/h8300hms/Makeile.am (lib_a_SOURCES): Add read.c.
13605 * newlib/libc/sys/h8300hms/read.c: New file. Magic trap 0xC8 for sim.
13606 * newlib/libc/sys/h8300hms/syscalls.c: Move _read() to read.c.
13607 * newlib/libs/sys/h8300hms/sys/syscall.h: New file.
13608
6935231f 13609Thu May 16 17:24:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
d7a2f413
JR
13610
13611 * libc/machine/sh/strcpy.S (strcpy): Replace LITTLE_ENDIAN with
6935231f
JR
13612 __LITTLE_ENDIAN__. make sure r0 has right value at first loop
13613 exit point.
d7a2f413 13614
3a6cb01b
TF
136152002-05-15 Thomas Fitzsimmons <fitzsim@redhat.com>
13616
a68fa571
TF
13617 * testsuite/lib/newlib.exp: Add newlib_include_flags to compile
13618 options when testing natively on i[3456]86-*-linux.
13619
3a6cb01b
TF
13620 * testsuite/lib/checkoutput.exp (newlib_check_output): Output
13621 only one pass or fail per test file. Trim \r's from output
13622 values received from test programs. Remove support for named
13623 tests.
13624 * testsuite/newlib.locale/UTF-8.exp: Update to support new
13625 newlib_check_output behaviour.
13626 * testsuite/newlib.locale/UTF-8.c: Likewise.
13627
dc824ef7
JJ
136282002-05-15 Jeff Johnston <jjohnstn@redhat.com>
13629
ba3ccd63
EB
13630 * libc/include/stdlib.h: Add on_exit prototype.
13631 * libc/include/sys/reent.h (struct _atexit): Add argument array
13632 and bits to track type of exit routine to support both on_exit
13633 and atexit.
13634 (_REENT_INIT_PTR): Add missing fields that won't be zeroed out
13635 by default and change the setting of the atexit structure.
13636 (_REENT_INIT)[!_REENT_SMALL]: Remove extraneous end brace.
13637 * libc/stdlib/on_exit.c: New file.
13638 * libc/stdlib/Makefile.am: Add support for on_exit.
13639 * libc/stdlib/Makefile.in: Regenerated.
13640 * libc/stdlib/atexit.c: Change to initialize types field.
13641 * libc/stdlib/exit.c: Change to look at types field for each
13642 exit routine and either call an atexit-style or an on_exit-style
13643 routine accordingly.
dc824ef7 13644
48d91b4a
JJ
136452002-05-13 Jeff Johnston <jjohnstn@redhat.com>
13646
ba3ccd63
EB
13647 * libc/machine/powerpc/vfprintf.c(__VFPRINTF_R)[__ALTIVEC__]: Don't
13648 allow v specifier with n or L specifiers. For vector c format,
13649 move tmp declaration to the top.
48d91b4a 13650
024739eb
JJ
136512002-05-13 Jeff Johnston <jjohnstn@redhat.com>
13652
ba3ccd63
EB
13653 * libc/machine/powerpc/vfprintf.c(__VFPRINTF_R)[__ALTIVEC__]: Restore
13654 the original format specifier when looping for vectors to compensate
13655 for any changes made in vector %g format processing.
13656 Also add syntax checking for various invalid scenarios
13657 involving vector format extensions.
13658 * libc/machine/powerpc/vfscanf.c(__VFSCANF_R)[__ALTIVEC__]: Fix
13659 return code setting for vector formats. Also treat vector
13660 separator mismatch as a match error instead of an input error.
13661 Perform some syntax checking for vector formats.
024739eb 13662
7d2ce898
TF
136632002-05-10 Mark Bradshaw <bradshaw@staff.crosswalk.com>
13664
13665 * libc/include/string.h (!__STRICT_ANSI__): Add strlcat and strlcpy.
13666 * libc/string/Makefile.am: Add strlcat.c and strlcpy.c.
13667 * libc/string/strlcat.c: New file.
13668 * libc/string/strlcpy.c: New file.
13669
809b6ce7
JJ
136702002-05-10 Jeff Johnston <jjohnstn@redhat.com>
13671
13672 * libc/string/strchr.c: Fix comment typo.
13673
76490806
TF
136742002-05-08 Thomas Fitzsimmons <fitzsim@redhat.com>
13675
0c048a9a
TF
13676 * acinclude.m4: Add support for --enable-newlib-multithread.
13677 * configure.host (newlib_cflags): Add -D__SINGLE_THREAD__ if
13678 --enable-newlib-multithread=no.
13679
76490806
TF
13680 * libc/stdio/getc_u.c: New file.
13681 * libc/stdio/getchar_u.c: New file.
13682 * libc/stdio/putc_u.c: New file.
13683 * libc/stdio/putchar_u.c: New file.
13684 * libc/include/stdio.h: Add declarations for getc_unlocked,
13685 getchar_unlocked, putc_unlocked and putchar_unlocked.
13686 * libc/stdio/Makefile.am (LIB_SOURCES): Add new files.
13687 (CHEWOUT_FILES): Add new files' .def's.
13688 * libc/stdio/putchar.c (_putchar_r): Replace __sputc with putc.
13689
96bff22c
JR
13690Wed May 8 17:47:35 2002 J"orn Rennecke <joern.rennecke@superh.com>
13691
13692 * libc/machine/sh/memset.S (memset, __SHMEDIA__ code):
13693 Also handle as single quad word when destination ends at last
13694 byte of first quad word. Fix byte selection in single quad code.
13695
e71372fa
TF
136962002-05-07 Thomas Fitzsimmons <fitzsim@redhat.com>
13697
13698 * libc/include/sys/stdio.h: New file.
13699 * libc/sys/linux/sys/stdio.h: New file.
13700 * libc/include/stdio.h: Add declarations for flockfile,
13701 ftrylockfile, and funlockfile. Include <sys/stdio.h>.
13702 * libc/stdio/clearerr.c: Add file locking.
13703 * libc/stdio/fclose.c: Likewise.
13704 * libc/stdio/feof.c: Likewise.
13705 * libc/stdio/ferror.c: Likewise.
13706 * libc/stdio/fflush.c: Likewise.
13707 * libc/stdio/fgetc.c: Likewise.
13708 * libc/stdio/fgetpos.c: Likewise.
13709 * libc/stdio/fgets.c: Likewise.
13710 * libc/stdio/fileno.c: Likewise.
13711 * libc/stdio/fputc.c: Likewise.
13712 * libc/stdio/fputs.c: Likewise.
13713 * libc/stdio/fread.c: Likewise.
13714 * libc/stdio/freopen.c: Likewise.
13715 * libc/stdio/fseek.c: Likewise.
13716 * libc/stdio/ftell.c: Likewise.
13717 * libc/stdio/fwrite.c: Likewise.
13718 * libc/stdio/getc.c: Likewise.
13719 * libc/stdio/putc.c: Likewise.
13720 * libc/stdio/setvbuf.c: Likewise.
13721 * libc/stdio/ungetc.c: Likewise.
13722 * libc/stdio/vfprintf.c: Likewise.
13723
a03790e4
JJ
137242002-05-06 Jeff Johnston <jjohnstn@redhat.com>
13725
60b2107c
TF
13726 * libc/machine/powerpc/vfprintf.c[__ALTIVEC__]: Add vector
13727 support for 'p' format. Fix code to print bytes for vector
13728 integer formats that do not specify 'h' or 'l'.
13729 * libc/machine/powerpc/vfscanf.c[__ALTIVEC__]: Add vector support
13730 for 'p' specifier. Fix code to scan 16 bytes for vector integer
13731 formats that do not specify 'h' or 'l'.
13732
13733 * libc/include/stdlib.h (a64l, l64a, _l64a_r): Added prototypes.
13734
9c7d6a9d
TF
137352002-05-06 Nick Clifton <nickc@cambridge.redhat.com>
13736
13737 * libc/sys/arm/syscalls.c (_rename): Add parameter names.
13738 (_sbrk): Add cast of return value.
13739
c33c3635
JJ
137402002-05-06 Jeff Johnston <jjohnstn@redhat.com>
13741
13742 * libc/include/sys/reent.h (_l64a_buf): New reentrant area.
13743 (_REENT_L64A_BUF): New macro for accessing area.
13744 * libc/stdlib/Makefile.am: Add a64l.c and l64a.c.
13745 * libc/stdlib/Makefile.in: Regenerated.
13746 * libc/stdlib/a64l.c: New file.
13747 * libc/stdlib/l64a.c: New file.
13748
f78e59a8
JJ
137492002-05-06 Jeff Johnston <jjohnstn@redhat.com>
13750
ba3ccd63
EB
13751 * libc/unix/pread.c: Fix typo for _pread_r.
13752 * libc/unix/pwrite.c: Fix type for _pwrite_r.
13753 * libc/sys/linux/pread64.c: Fix typo for read syscall.
13754 * libc/sys/linux/pwrite64.c: Fix typo for write syscall.
f78e59a8 13755
4b3f6588
CF
137562002-05-03 Christopher Faylor <cgf@redhat.com>
13757
13758 * libc/include/sys/unistd.h: Define getdomainname under cygwin.
13759
e911832c
TF
137602002-05-03 Thomas Fitzsimmons <fitzsim@redhat.com>
13761
13762 * configure.in (CC_FOR_NEWLIB): Change -isystem's to -I's.
13763
0d0fdc8d
CF
137642002-05-01 Christopher Faylor <cgf@redhat.com>
13765
13766 * utmp.h: Define more UNIX constants.
13767
1e997c56
TF
137682002-05-01 Thomas Fitzsimmons <fitzsim@redhat.com>
13769
0717f01c
TF
13770 * Makefile.am: Add support for checking multilibs.
13771
09841445
TF
13772 * libc/Makefile.am (SUBLIBS): Add LIBC_EXTRA_LIB.
13773 (SUBDEFS): Add LIBC_EXTRA_DEF.
13774 * libc/configure.in (LIBC_EXTRA_LIB): New variable.
13775 (LIBC_EXTRA_DEF): Likewise.
13776 (extra_dir): Likewise.
13777 * libc/machine/xscale/machine: New directory.
13778 * libc/machine/xscale/machine/profile.h: New file.
13779
1e997c56
TF
13780 * Makefile.am (site.exp): Remove newlib_cflags. Add
13781 multibuildtop.
13782 * testsuite/newlib.locale/UTF-8.c: Change fprintf's to printf's.
13783 * testsuite/lib/flags.exp: New file.
13784 * testsuite/lib/newlib.exp: Load flags.exp.
13785 (newlib_target_compile): Remove libgloss directory references.
13786 (newlib_init): Remove newlib_cflags references.
13787
4cf4f010
TF
137882002-04-30 Thomas Fitzsimmons <fitzsim@redhat.com>
13789
f6bdb6f9
TF
13790 * testsuite/lib/newlib.exp (newlib_target_compile): Change
13791 method of finding libgloss_target_dir.
13792
4cf4f010
TF
13793 * Makefile.am (site.exp): Change host_alias, host_triplet,
13794 target_alias, target_triplet to refer to gcc's host and target
13795 variables (newlib's build and host variables).
13796 * testsuite/lib/newlib.exp (newlib_init): Change build
13797 references to host references, host references to target
13798 references to reflect Makefile.am changes.
13799 (newlib_target_compile): Likewise.
13800 (newlib_finish): Likewise.
13801
83096ae8
JJ
138022002-04-29 Jeff Johnston <jjohnstn@redhat.com>
13803
13804 * libc/sys/linux/io64.c (fstat64, lstat64): New syscalls added.
13805
822afa53
JL
138062002-04-29 Jonathan Larmour <jlarmour@redhat.com>
13807
13808 * libc/sys/arm/syscalls.c (_rename): New function. Just a stub.
13809 (_system): New function. Ditto.
13810 * libc/stdlib/system.c (_system_r): Call _system if HAVE_SYSTEM.
13811 * configure.host: define HAVE_SYSTEM and HAVE_RENAME for xscale
13812 targets.
13813
29798f0d
JJ
138142002-04-29 Jeff Johnston <jjohnstn@redhat.com>
13815
ba3ccd63
EB
13816 * libc/include/sys/unistd.h (pread, pwrite): Added prototypes.
13817 * libc/unix/Makefile.am: Add pread.c and pwrite.c.
13818 * libc/sys/linux/Makefile.am: Add pread64.c and pwrite64.c.
13819 * libc/sys/linux/Makefile.in: Regenerated.
13820 * libc/unix/Makefile.in: Ditto.
13821 * libc/sys/linux/pread64.c: New file.
13822 * libc/sys/linux/pwrite64.c: Ditto.
13823 * libc/unix/pread.c: Ditto.
13824 * libc/unix/pwrite.c: Ditto.
29798f0d 13825
557856bd
JJ
138262002-04-26 Jeff Johnston <jjohnstn@redhat.com>
13827
13828 * libc/sys/linux/Makefile.am: Add io64.c.
13829 * libc/sys/linux/Makefile.in: Regenerated.
13830 * libc/sys/linux/io.c(mkfifo, fsync, fdatasync): Added syscalls.
17c0c97d 13831 * libc/sys/linux/signal.c (sigwaitinfo, sigtimedwait): Ditto.
557856bd
JJ
13832 * libc/sys/linux/io64.c: New file.
13833
7b2b12d5
JJ
138342002-04-26 Jeff Johnston <jjohnstn@redhat.com>
13835
13836 * configure.in (CC_FOR_NEWLIB): New variable that
13837 bases on $(CC) and adds targ-include and libc/include as
13838 -isystem directives if they are not already part of $(CC).
13839 * Makefile.am (AM_MAKEFLAGS): Change setting of CC to equal
13840 $(CC_FOR_NEWLIB).
13841 * configure: Regenerated.
13842 * Makefile.in: Ditto.
13843
c62adacc
JJ
138442002-04-25 Jeff Johnston <jjohnstn@redhat.com>
13845
13846 * libc/sys/linux/Makefile.am: Add support for sched.c.
13847 * libc/sys/linux/Makefile.in: Regenerated.
13848 * libc/sys/linux/sched.c: New file.
13849 * libc/sys/linux/sys/types.h: Add struct timespec.
13850
217ad4a0
TF
138512002-04-25 Thomas Fitzsimmons <fitzsim@redhat.com>
13852
13853 * configure.in (CC_FOR_BUILD): Set to gcc whether
13854 cross-compiling or not.
13855 (CC): Add -isystem's for targ-include and libc/include when they
13856 do not already appear in CC.
13857
eaa75b70
TF
138582002-04-24 Thomas Fitzsimmons <fitzsim@redhat.com>
13859
13860 * Makefile.am (check-DEJAGNU): New target.
13861 (site.exp): Likewise.
13862 * acinclude.m4 (NEWLIB_CONFIGURE): Replace AC_CANONICAL_HOST
13863 with AC_CANONICAL_SYSTEM. Remove AC_CANONICAL_BUILD.
13864 * libc/locale/locale.c (_setlocale_r): Add UTF-8 support.
13865 * libc/stdlib/mbtowc_r.c (_mbtowc_r): Likewise.
13866 * libc/stdlib/wctomb_r.c (_wctomb_r): Likewise.
13867 * testsuite: New directory.
13868 * testsuite/config: Likewise.
13869 * testsuite/lib: Likewise.
13870 * testsuite/newlib.locale: Likewise.
13871 * testsuite/newlib.string: Likewise.
13872 * testsuite/config/default.exp: New file.
13873 * testsuite/lib/checkoutput.exp: New file.
13874 * testsuite/lib/newlib.exp: New file.
13875 * testsuite/lib/passfail.exp: New file.
13876 * testsuite/newlib.locale/UTF-8.c: New file.
13877 * testsuite/newlib.locale/UTF-8.exp: New file.
13878 * testsuite/newlib.locale/locale.exp: New file.
13879 * testsuite/newlib.string/string.exp: New file.
13880 * testsuite/newlib.string/tstring.c: New file.
13881
b9f9f699
JJ
138822002-04-23 Jeff Johnston <jjohnstn@redhat.com>
13883
ba3ccd63
EB
13884 * libc/include/machine/types.h (__pid_t, __off_t, __loff_t): Added.
13885 * libc/sys/linux/Makefile.am: Add support for mmap.c.
13886 * libc/sys/linux/Makefile.in: Regenerated.
13887 * libc/sys/linux/mmap.c: New file.
13888 * libc/sys/linux/machine/i386/syscall.h: Add _syscall6 macro.
13889 * libc/sys/linux/sys/types.h (pid_t, off_t, loff_t): Added.
b9f9f699 13890
7394edbb
TF
138912002-04-22 Thomas Fitzsimmons <fitzsim@redhat.com>
13892
13893 * acinclude.m4 (newlib_cflags): Remove include directories that
13894 are already specified in the top-level configure.in's FLAGS_FOR_TARGET.
13895
b9f9f699 138962002-04-19 Bill Siegmund <ctc-dsl@pacbell.net>
59be2290
JJ
13897
13898 * libc/machine/xscale/memchr.c: Don't use multi-line strings.
13899 * libc/machine/xscale/memcmp.c: Ditto.
13900 * libc/machine/xscale/memcpy.c: Ditto.
13901 * libc/machine/xscale/memmove.c: Ditto.
13902 * libc/machine/xscale/memset.c: Ditto.
13903 * libc/machine/xscale/strchr.c: Ditto.
13904 * libc/machine/xscale/strcmp.c: Ditto.
13905 * libc/machine/xscale/strcpy.c: Ditto.
13906 * libc/machine/xscale/strlen.c: Ditto.
13907
2dd4c4dc
JJ
139082002-04-19 Alexandre Oliva <aoliva@redhat.com>
13909
ba3ccd63
EB
13910 * libc/include/sys/config.h: Remove include of <limits.h>.
13911 (__INT_MAX__, __LONG_MAX__): Define like GCC's limits.h would
13912 define INT_MAX and LONG_MAX. Use them in tests.
2dd4c4dc 13913
0d844014
JJ
139142002-04-19 Jeff Johnston <jjohnstn@redhat.com>
13915
13916 * configure.host: Add support for powerpc-eabialtivec*.
13917 * libc/include/malloc.h: Add include of <machine/malloc.h>.
13918 * libc/include/stdlib.h: Add include of <machine/stdlib.h>.
13919 * libc/include/machine/malloc.h: New file.
13920 * libc/include/machine/stdlib.h: Ditto.
13921 * libc/include/machine/setjmp.h: Add support for powerpc altivec.
13922 * libc/machine/powerpc/Makefile.am: Add conditional objects and
13923 sources based on configuration.
13924 * libc/machine/powerpc/Makefile.in: Regenerated.
13925 * libc/machine/powerpc/configure: Ditto.
13926 * libc/machine/powerpc/configure.in: Add check for
13927 powerpc-eabialtivec* in which case add in additional source files.
13928 * libc/machine/powerpc/setjmp.S: Add altivec support.
13929 * libc/machine/powerpc/vec_calloc.c: New file.
13930 * libc/machine/powerpc/vec_free.c: Ditto.
13931 * libc/machine/powerpc/vec_malloc.c: Ditto.
13932 * libc/machine/powerpc/vec_mallocr.c: Ditto.
13933 * libc/machine/powerpc/vec_realloc.c: Ditto.
13934 * libc/machine/powerpc/machine/malloc.h: Ditto.
13935 * libc/machine/powerpc/machine/stdlib.h: Ditto.
13936 * libc/machine/powerpc/vfprintf.c: New file that is vfprintf.c
13937 with added altivec format specifiers.
13938 * libc/machine/powerpc/vfscanf.c: New file that is vfscanf.c with
13939 added altivec format specifiers.
13940
d413aadc
JS
139412002-04-19 Joel Sherrill <joel@OARcorp.com>
13942
13943 * libs/sys/rtems/crt0.c: Satisfy gcc's references to libc functions
13944 while autoconf is trying to link main(){}.
13945
27193895
JJ
139462002-04-17 Jeff Johnston <jjohnstn@redhat.com>
13947
ba3ccd63
EB
13948 * libc/sys/linux/signal.c: Remove include of <bits/sigset.h>.
13949 * libc/sys/linux/sys/signal.h: Add include of <bits/sigset.h>.
27193895 13950
10d00216
JJ
139512002-04-17 Jeff Johnston <jjohnstn@redhat.com>
13952
6b0f808e
JJ
13953 * libc/time/time.tex: Add tzset info.
13954
139552002-04-17 Jeff Johnston <jjohnstn@redhat.com>
13956
13957 * libc/include/time.h (tzset, _tzset_r): Added prototypes.
13958 (strptime): Moved prototype to be within !__STRICT_ANSI__.
13959 (_tzname, _daylight, _timezone): No long __CYGWIN__ only.
13960 (tzname): Defined for all platforms.
13961 (daylight, timezone): Defined only for CYGWIN.
13962 * libc/sys/linux/machine/i386/crt0.c: Add call to tzset() after
13963 environment set up.
13964 * libc/stdlib/setenv_r.c (_setenv_r): Call tzset() if the TZ
13965 environment variable is set.
13966 * libc/time/Makefile.am: Add support for tzset.c, tzlock.c, and
13967 tzset_r.c.
13968 * libc/time/Makefile.in: Regenerated.
13969 * libc/time/gmtime.c (gmtime): Changed to call gmtime_r.
13970 * libc/time/gmtime_r.c (gmtime_r): Changed to call _mktm_r.
13971 * libc/time/lcltime_r.c (lcltime_r): Ditto.
13972 * libc/time/local.h: New local header file.
13973 * libc/time/mktime.c (mktime): Add timezone support.
13974 * libc/time/mktm_r.c: New file which is the common engine
13975 for gmtime_r and lcltime_r. This code has timezone support.
13976 * libc/time/strftime.c (strftime): Add %Z timezone support.
13977 * libc/time/tzlock.c: New file containing timezone lock stubs.
13978 * libc/time/tzset.c: New file containing tzset() routine.
13979 * libc/time/tzset_r.c: New file containing _tzset_r and
13980 internal routine for calculating timezone changes for specified year.
13981
139822002-04-17 Thomas Fitzsimmons <fitzsim@redhat.com>
13983
13984 * configure.in (CRT0_DIR): Set to libc/.
13985 (CRT1_DIR): Set to ${crt1_dir}/ if crt1_dir is non-empty.
13986 * Makefile.am: Change all occurrences of $(CRT0_DIR)/$(CRT0) to
13987 $(CRT0_DIR)$(CRT0) to prevent make warnings. Likewise for
13988 $(CRT1_DIR)/$(CRT1).
13989 * libc/machine/xstormy16/Makefile.in: Regenerated.
13990 * libc/machine/xstormy16/aclocal.m4: Regenerated.
13991 * libc/machine/xstormy16/configure: Regenerated.
13992
139932002-04-13 Alexandre Oliva <aoliva@redhat.com>
13994
13995 * libc/stdlib/mallocr.c (malloc_extend_top): If correction sbrk
13996 fails, don't bail out, and try to correct next time.
13997
13998 * libc/include/sys/config.h: Include limits.h.
13999
140002002-04-12 Eric Norum <eric.norum@usask.com>
14001
14002 * libc/sys/rtems/crt0.c (rtems_gxx_mutex_init): Dummy
14003 routine to allow autoconf to determine that building executables
14004 for rtems works.
14005 (rtems_gxx_mutex_lock, rtems_gxx_mutex_unlock): Ditto.
14006 (rtems_gxx_mutex_once): Ditto.
14007
140082002-04-09 Tom Rix <trix@redhat.com>
14009
14010 * libc/include/sys/reent.h (_REENT_INIT_PTR): Fix typo.
14011
140122002-04-09 Mark Bradshaw <bradshaw@staff.crosswalk.com>
14013
ba3ccd63
EB
14014 * libc/include/time.h: Fix strptime declaration.
14015 * libc/time/Makefile.am: Add strptime.c.
6b0f808e 14016 * libc/time/Makefile.in: Regenerated.
ba3ccd63 14017 * libc/time/strptime.c: New file.
6b0f808e
JJ
14018
140192002-04-08 Jeff Johnston <jjohnstn@redhat.com>
14020
14021 * libc/sys/linux/include/setjmp.h: Add sigjmp_buf type,
14022 siglongjmp prototype, and sigsetjmp macro definition.
14023 * libc/sys/linux/siglongjmp.c: New file.
14024 * libc/sys/linux/Makefile.am: Add support for siglongjmp.
14025 * libc/sys/linux/Makefile.in: Regenerated.
14026
140272002-04-04 Jeff Johnston <jjohnstn@redhat.com>
14028
14029 * Makefile.am: Add support for installing crt1.o if one exists.
14030 * configure.host: Specify crt1.o for linux.
14031 * configure.in: Expose CRT1 and CRT1_DIR for Makefile.am to use.
14032 * Makefile.in: Regenerated.
14033 * configure: Ditto.
14034 * libc/include/sys/unistd.h (_SC_STREAM_MAX, _SC_PRIORITY_SCHEDULING):
14035 Added for non-Cygwin, non-RTEMS configurations.
14036 * libc/sys/linux/Makefile.am: Add support for crt1 and sysconf.
14037 * libc/sys/linux/Makefile.in: Regenerated.
14038 * libc/sys/linux/crt1.c: New empty file to override one defaulted
14039 by gcc. This fixes problem with reconfiguring linux newlib build.
14040 * libc/sys/linux/sysconf.c: New file.
14041
140422002-04-03 Jeff Johnston <jjohnstn@redhat.com>
14043
14044 * configure.host: Add support for machine subdirectory of
14045 sys subdirectory.
14046 * configure.in: Add check for sys machine subdirectory.
14047 * Makefile.am: Ditto.
14048 * configure: Regenerated.
14049 * Makefile.in: Ditto.
14050 * libc/sys/linux/crt0.c: Moved to machine/i386 directory.
14051 * libc/sys/linux/sys/syscall.h: Ditto.
14052 * libc/sys/linux/sleep.c: New file.
14053 * libc/sys/linux/socket.c: Ditto.
14054 * libc/sys/linux/sockops.h: Ditto.
14055 * libc/sys/linux/stack.c: Ditto.
14056 * libc/sys/linux/usleep.c: Ditto.
14057 * libc/sys/linux/machine/Makefile.am: Ditto.
14058 * libc/sys/linux/machine/Makefile.in: Ditto.
14059 * libc/sys/linux/machine/aclocal.m4: Ditto.
14060 * libc/sys/linux/machine/configure: Ditto.
14061 * libc/sys/linux/machine/configure.in: Ditto.
14062 * libc/sys/linux/machine/i386/Makefile.am: Ditto.
14063 * libc/sys/linux/machine/i386/Makefile.in: Ditto.
14064 * libc/sys/linux/machine/i386/aclocal.m4: Ditto.
14065 * libc/sys/linux/machine/i386/configure: Ditto.
14066 * libc/sys/linux/machine/i386/configure.in: Ditto.
14067 * libc/sys/linux/machine/i386/crt0.c: Ditto.
14068 * libc/sys/linux/machine/i386/sigset.c: Ditto.
14069 * libc/sys/linux/machine/i386/sigstack.h: Ditto.
14070 * libc/sys/linux/machine/i386/socketcall.h: Ditto.
14071 * libc/sys/linux/machine/i386/syscall.h: Ditto.
14072 * libc/sys/linux/sys/select.h: Ditto.
14073 * libc/sys/linux/configure.in: Add support for machine directory.
14074 * libc/sys/linux/Makefile.am: Ditto plus add new files above.
14075 * libc/sys/linux/Makefile.in: Regenerated.
14076 * libc/sys/linux/configure: Ditto.
14077 * libc/sys/linux/brk.c: Use machine/syscall.h instead of sys/syscall.h.
14078 * libc/sys/linux/inode.c: Ditto.
14079 * libc/sys/linux/linux.c: Ditto.
14080 * libc/sys/linux/process.c: Ditto.
14081 * libc/sys/linux/systat.c: Ditto.
14082 * libc/sys/linux/time.c: Ditto.
14083 * libc/sys/linux/wait.c: Ditto.
14084 * libc/sys/linux/ids.c: Change header plus add setfsgid/setfsuid.
14085 * libc/sys/linux/io.c: Change header plus add readv/writev.
14086 * libc/sys/linux/signal.c: Change header plus change sigsuspend to
14087 use __sigsuspend syscall.
14088 * libc/sys/linux/select.c: Change header plus change select to
14089 use _newselect syscall.
14090 * libc/sys/linux/sys/cdefs.h: Add a number of standard definitions
14091 used by glibc header files.
14092 * libc/sys/linux/sys/types.h: Add __socklen_t and __useconds_t
14093 types.
14094
140952002-04-01 Jeff Johnston <jjohnstn@redhat.com>
14096
14097 * libc/include/sys/reent.h (_REENT_INIT_PTR): New macro for
14098 initializing a struct _reent that has been dynamically allocated.
14099 (_REENT_CHECK_MISC): New macro that checks _misc struct for
14100 _REENT_SMALL and does nothing otherwise.
14101 (_REENT_STRTOK_LAST): New macro for reentrant strtok.
14102 (_REENT_MBLEN_STATE): New macro for reentrant mblen.
14103 (_REENT_MBTOWC_STATE): New macro for reentrant mbtowc.
14104 (_REENT_WCTOMB_STATE): New macro for reentrant wctomb.
14105 [_REENT_SMALL](struct _misc_reent): New structure containing
14106 miscellaneous reentrant areas needed by newlib.
14107 [_REENT_SMALL](struct _reent): Add _misc pointer.
14108 [_REENT_SMALL](_REENT_INIT_MISC): New macro.
14109 * libc/string/strtok (strtok): Change to use _REENT_CHECK_MISC
14110 and _REENT_STRTOK_LAST macros.
14111 * libc/stdlib/mblen (mblen): Change to use _REENT_CHECK_MISC
14112 and _REENT_MBLEN_STATE macros.
14113 * libc/stdlib/mbtowc (mbtowc): Change to use _REENT_CHECK_MISC
14114 and _REENT_MBTOWC_STATE macros.
14115 * libc/stdlib/wctomb (wctomb): Change to use _REENT_CHECK_MISC
14116 and _REENT_WCTOMB_STATE macros.
14117
141182002-04-01 Till Straumann <strauman@SLAC.Stanford.EDU>
14119
14120 * libc/stdlib/getenv_r.c (_findenv_r): Add missing ENV_UNLOCK.
14121
14122Wed Mar 27 07:34:44 2002 Jason Tishler <jason@tishler.net>
14123
14124 * libc/include/sys/features.h (_POSIX_SEMAPHORES): New Cygwin define.
14125
14126Tue Mar 26 17:17:10 2002 J"orn Rennecke <joern.rennecke@superh.com>
14127
14128 * libc/machine/sh/memcpy.S (Large): Fix alignment rounding.
14129 Store high part of leading bytes too.
14130
141312002-03-22 Richard Sandiford <rsandifo@redhat.com>
14132
14133 * libm/math/ef_hypot.c: Increase scale factor to 68.
14134
141352002-03-13 Alexandre Oliva <aoliva@redhat.com>
14136
14137 * libc/machine/mips/strlen.c (strlen) [__mips16]: Fix off-by-two
14138 error.
14139
141402002-03-12 Jeff Johnston <jjohnstn@redhat.com>
14141
ba3ccd63
EB
14142 * libc/sys/go32/access.c: Change license to relaxed license
14143 used in identical file throughout newlib/libgloss.
6b0f808e
JJ
14144
141452002-03-12 Richard Earnshaw <rearnsha@arm.com>
14146
14147 * libc/sys/arm/access.c: New file.
14148 * libc/sys/arm/Makefile.am (lib_a_SOURCES): Add access.c.
14149 * libc/sys/arm/Makefile.in: Regenerate.
14150 * libc/sys/arm/syscalls.c (_stat): New function.
14151
141522002-03-11 Michael Meissner <meissner@redhat.com>
14153
14154 * libc/machine/mips/Makefile.am (lib_a_SOURCES): Add Mips specific
14155 variants strlen.c, strcmp.c, strncpy.c, memset.c and memcpy.c.
14156 * libc/machine/mips/Makefile.in: Regenerate.
14157 * libc/machine/mips/memcpy.c: New file, optimized for MIPS.
14158 * libc/machine/mips/memset.c: Dito.
14159 * libc/machine/mips/strcmp.c: Dito.
14160 * libc/machine/mips/strlen.c: Dito.
14161 * libc/machine/mips/strncmp.c: Dito.
14162
141632002-03-06 Jeff Johnston <jjohnstn@redhat.com>
14164
14165 * libc/machine/i386/Makefile.am: Add $(oext) for setjmp
14166 object so it works for shared library or statici library.
141672002-04-17 Jeff Johnston <jjohnstn@redhat.com>
14168
10d00216
JJ
14169 * libc/include/time.h (tzset, _tzset_r): Added prototypes.
14170 (strptime): Moved prototype to be within !__STRICT_ANSI__.
14171 (_tzname, _daylight, _timezone): No long __CYGWIN__ only.
14172 (tzname): Defined for all platforms.
14173 (daylight, timezone): Defined only for CYGWIN.
14174 * libc/sys/linux/machine/i386/crt0.c: Add call to tzset() after
14175 environment set up.
14176 * libc/stdlib/setenv_r.c (_setenv_r): Call tzset() if the TZ
14177 environment variable is set.
14178 * libc/time/Makefile.am: Add support for tzset.c, tzlock.c, and
14179 tzset_r.c.
14180 * libc/time/Makefile.in: Regenerated.
14181 * libc/time/gmtime.c (gmtime): Changed to call gmtime_r.
14182 * libc/time/gmtime_r.c (gmtime_r): Changed to call _mktm_r.
14183 * libc/time/lcltime_r.c (lcltime_r): Ditto.
14184 * libc/time/local.h: New local header file.
14185 * libc/time/mktime.c (mktime): Add timezone support.
14186 * libc/time/mktm_r.c: New file which is the common engine
14187 for gmtime_r and lcltime_r. This code has timezone support.
14188 * libc/time/strftime.c (strftime): Add %Z timezone support.
14189 * libc/time/tzlock.c: New file containing timezone lock stubs.
14190 * libc/time/tzset.c: New file containing tzset() routine.
14191 * libc/time/tzset_r.c: New file containing _tzset_r and
14192 internal routine for calculating timezone changes for specified year.
14193
5f1c13c6
TF
141942002-04-17 Thomas Fitzsimmons <fitzsim@redhat.com>
14195
14196 * configure.in (CRT0_DIR): Set to libc/.
14197 (CRT1_DIR): Set to ${crt1_dir}/ if crt1_dir is non-empty.
14198 * Makefile.am: Change all occurrences of $(CRT0_DIR)/$(CRT0) to
14199 $(CRT0_DIR)$(CRT0) to prevent make warnings. Likewise for
14200 $(CRT1_DIR)/$(CRT1).
14201 * libc/machine/xstormy16/Makefile.in: Regenerated.
14202 * libc/machine/xstormy16/aclocal.m4: Regenerated.
14203 * libc/machine/xstormy16/configure: Regenerated.
14204
0cc261b1
AO
142052002-04-13 Alexandre Oliva <aoliva@redhat.com>
14206
2f3009bd
AO
14207 * libc/stdlib/mallocr.c (malloc_extend_top): If correction sbrk
14208 fails, don't bail out, and try to correct next time.
14209
0cc261b1
AO
14210 * libc/include/sys/config.h: Include limits.h.
14211
26116455
JJ
142122002-04-12 Eric Norum <eric.norum@usask.com>
14213
14214 * libc/sys/rtems/crt0.c (rtems_gxx_mutex_init): Dummy
14215 routine to allow autoconf to determine that building executables
14216 for rtems works.
14217 (rtems_gxx_mutex_lock, rtems_gxx_mutex_unlock): Ditto.
14218 (rtems_gxx_mutex_once): Ditto.
14219
4608280d
TR
142202002-04-09 Tom Rix <trix@redhat.com>
14221
14222 * libc/include/sys/reent.h (_REENT_INIT_PTR): Fix typo.
14223
dea7e25c
JJ
142242002-04-09 Mark Bradshaw <bradshaw@staff.crosswalk.com>
14225
ba3ccd63
EB
14226 * libc/include/time.h: Fix strptime declaration.
14227 * libc/time/Makefile.am: Add strptime.c.
dea7e25c 14228 * libc/time/Makefile.in: Regenerated.
ba3ccd63 14229 * libc/time/strptime.c: New file.
dea7e25c 14230
c5ef1e95
JJ
142312002-04-08 Jeff Johnston <jjohnstn@redhat.com>
14232
14233 * libc/sys/linux/include/setjmp.h: Add sigjmp_buf type,
14234 siglongjmp prototype, and sigsetjmp macro definition.
14235 * libc/sys/linux/siglongjmp.c: New file.
14236 * libc/sys/linux/Makefile.am: Add support for siglongjmp.
14237 * libc/sys/linux/Makefile.in: Regenerated.
14238
6e6cd5bd
JJ
142392002-04-04 Jeff Johnston <jjohnstn@redhat.com>
14240
14241 * Makefile.am: Add support for installing crt1.o if one exists.
14242 * configure.host: Specify crt1.o for linux.
14243 * configure.in: Expose CRT1 and CRT1_DIR for Makefile.am to use.
14244 * Makefile.in: Regenerated.
14245 * configure: Ditto.
14246 * libc/include/sys/unistd.h (_SC_STREAM_MAX, _SC_PRIORITY_SCHEDULING):
14247 Added for non-Cygwin, non-RTEMS configurations.
14248 * libc/sys/linux/Makefile.am: Add support for crt1 and sysconf.
14249 * libc/sys/linux/Makefile.in: Regenerated.
14250 * libc/sys/linux/crt1.c: New empty file to override one defaulted
14251 by gcc. This fixes problem with reconfiguring linux newlib build.
14252 * libc/sys/linux/sysconf.c: New file.
14253
fa4a16a1
JJ
142542002-04-03 Jeff Johnston <jjohnstn@redhat.com>
14255
14256 * configure.host: Add support for machine subdirectory of
14257 sys subdirectory.
14258 * configure.in: Add check for sys machine subdirectory.
14259 * Makefile.am: Ditto.
14260 * configure: Regenerated.
14261 * Makefile.in: Ditto.
14262 * libc/sys/linux/crt0.c: Moved to machine/i386 directory.
14263 * libc/sys/linux/sys/syscall.h: Ditto.
14264 * libc/sys/linux/sleep.c: New file.
14265 * libc/sys/linux/socket.c: Ditto.
14266 * libc/sys/linux/sockops.h: Ditto.
14267 * libc/sys/linux/stack.c: Ditto.
14268 * libc/sys/linux/usleep.c: Ditto.
14269 * libc/sys/linux/machine/Makefile.am: Ditto.
14270 * libc/sys/linux/machine/Makefile.in: Ditto.
14271 * libc/sys/linux/machine/aclocal.m4: Ditto.
14272 * libc/sys/linux/machine/configure: Ditto.
14273 * libc/sys/linux/machine/configure.in: Ditto.
14274 * libc/sys/linux/machine/i386/Makefile.am: Ditto.
14275 * libc/sys/linux/machine/i386/Makefile.in: Ditto.
14276 * libc/sys/linux/machine/i386/aclocal.m4: Ditto.
14277 * libc/sys/linux/machine/i386/configure: Ditto.
14278 * libc/sys/linux/machine/i386/configure.in: Ditto.
14279 * libc/sys/linux/machine/i386/crt0.c: Ditto.
14280 * libc/sys/linux/machine/i386/sigset.c: Ditto.
14281 * libc/sys/linux/machine/i386/sigstack.h: Ditto.
14282 * libc/sys/linux/machine/i386/socketcall.h: Ditto.
14283 * libc/sys/linux/machine/i386/syscall.h: Ditto.
14284 * libc/sys/linux/sys/select.h: Ditto.
14285 * libc/sys/linux/configure.in: Add support for machine directory.
14286 * libc/sys/linux/Makefile.am: Ditto plus add new files above.
14287 * libc/sys/linux/Makefile.in: Regenerated.
14288 * libc/sys/linux/configure: Ditto.
14289 * libc/sys/linux/brk.c: Use machine/syscall.h instead of sys/syscall.h.
14290 * libc/sys/linux/inode.c: Ditto.
14291 * libc/sys/linux/linux.c: Ditto.
14292 * libc/sys/linux/process.c: Ditto.
14293 * libc/sys/linux/systat.c: Ditto.
14294 * libc/sys/linux/time.c: Ditto.
14295 * libc/sys/linux/wait.c: Ditto.
14296 * libc/sys/linux/ids.c: Change header plus add setfsgid/setfsuid.
14297 * libc/sys/linux/io.c: Change header plus add readv/writev.
14298 * libc/sys/linux/signal.c: Change header plus change sigsuspend to
14299 use __sigsuspend syscall.
14300 * libc/sys/linux/select.c: Change header plus change select to
14301 use _newselect syscall.
14302 * libc/sys/linux/sys/cdefs.h: Add a number of standard definitions
14303 used by glibc header files.
14304 * libc/sys/linux/sys/types.h: Add __socklen_t and __useconds_t
14305 types.
14306
d4dca0e4
JJ
143072002-04-01 Jeff Johnston <jjohnstn@redhat.com>
14308
14309 * libc/include/sys/reent.h (_REENT_INIT_PTR): New macro for
14310 initializing a struct _reent that has been dynamically allocated.
14311 (_REENT_CHECK_MISC): New macro that checks _misc struct for
14312 _REENT_SMALL and does nothing otherwise.
14313 (_REENT_STRTOK_LAST): New macro for reentrant strtok.
14314 (_REENT_MBLEN_STATE): New macro for reentrant mblen.
14315 (_REENT_MBTOWC_STATE): New macro for reentrant mbtowc.
14316 (_REENT_WCTOMB_STATE): New macro for reentrant wctomb.
14317 [_REENT_SMALL](struct _misc_reent): New structure containing
14318 miscellaneous reentrant areas needed by newlib.
14319 [_REENT_SMALL](struct _reent): Add _misc pointer.
14320 [_REENT_SMALL](_REENT_INIT_MISC): New macro.
14321 * libc/string/strtok (strtok): Change to use _REENT_CHECK_MISC
14322 and _REENT_STRTOK_LAST macros.
14323 * libc/stdlib/mblen (mblen): Change to use _REENT_CHECK_MISC
14324 and _REENT_MBLEN_STATE macros.
14325 * libc/stdlib/mbtowc (mbtowc): Change to use _REENT_CHECK_MISC
14326 and _REENT_MBTOWC_STATE macros.
14327 * libc/stdlib/wctomb (wctomb): Change to use _REENT_CHECK_MISC
14328 and _REENT_WCTOMB_STATE macros.
14329
54a7c6d2
JJ
143302002-04-01 Till Straumann <strauman@SLAC.Stanford.EDU>
14331
14332 * libc/stdlib/getenv_r.c (_findenv_r): Add missing ENV_UNLOCK.
14333
c82479b1
CF
14334Wed Mar 27 07:34:44 2002 Jason Tishler <jason@tishler.net>
14335
14336 * libc/include/sys/features.h (_POSIX_SEMAPHORES): New Cygwin define.
14337
43ecf6e8
JR
14338Tue Mar 26 17:17:10 2002 J"orn Rennecke <joern.rennecke@superh.com>
14339
14340 * libc/machine/sh/memcpy.S (Large): Fix alignment rounding.
14341 Store high part of leading bytes too.
14342
a485d93f
RS
143432002-03-22 Richard Sandiford <rsandifo@redhat.com>
14344
14345 * libm/math/ef_hypot.c: Increase scale factor to 68.
14346
62a963ee
AO
143472002-03-13 Alexandre Oliva <aoliva@redhat.com>
14348
14349 * libc/machine/mips/strlen.c (strlen) [__mips16]: Fix off-by-two
14350 error.
14351
c53d8453
JJ
143522002-03-12 Jeff Johnston <jjohnstn@redhat.com>
14353
ba3ccd63
EB
14354 * libc/sys/go32/access.c: Change license to relaxed license
14355 used in identical file throughout newlib/libgloss.
c53d8453 14356
d2a246ad
JJ
143572002-03-12 Richard Earnshaw <rearnsha@arm.com>
14358
14359 * libc/sys/arm/access.c: New file.
14360 * libc/sys/arm/Makefile.am (lib_a_SOURCES): Add access.c.
14361 * libc/sys/arm/Makefile.in: Regenerate.
14362 * libc/sys/arm/syscalls.c (_stat): New function.
14363
eabb48d5
MM
143642002-03-11 Michael Meissner <meissner@redhat.com>
14365
14366 * libc/machine/mips/Makefile.am (lib_a_SOURCES): Add Mips specific
14367 variants strlen.c, strcmp.c, strncpy.c, memset.c and memcpy.c.
14368 * libc/machine/mips/Makefile.in: Regenerate.
14369 * libc/machine/mips/memcpy.c: New file, optimized for MIPS.
14370 * libc/machine/mips/memset.c: Dito.
14371 * libc/machine/mips/strcmp.c: Dito.
14372 * libc/machine/mips/strlen.c: Dito.
14373 * libc/machine/mips/strncmp.c: Dito.
14374
2a606041
JJ
143752002-03-06 Jeff Johnston <jjohnstn@redhat.com>
14376
eabb48d5
MM
14377 * libc/machine/i386/Makefile.am: Add $(oext) for setjmp
14378 object so it works for shared library or statici library.
14379 * libc/machine/i386/Makefile.in: Regenerated.
2a606041 14380
55f26f11
JR
14381Wed Mar 6 10:24:26 2002 J"orn Rennecke <joern.rennecke@superh.com>
14382
96bff22c
JR
14383 * libc/machine/sh/Makefile.am (lib_a_SOURCES, SH64 case):
14384 Add memcpy.S, memset.S and strcpy.S.
14385 * libc/machine/sh/Makefile.in: Regenerate.
14386 * libc/machine/sh/asm.h (_ENTRY): Set SH5 alignment to 8 bytes.
55f26f11 14387 (SHHI, SHLO): Define.
96bff22c
JR
14388 * libc/machine/sh/memset.S: Add code for SH5.
14389 * libc/machine/sh/memset.S: Likewise.
14390 * libc/machine/sh/strcpy.S: Likewise.
55f26f11 14391
afecf2fa
JJ
143922002-02-27 Jeff Johnston <jjohnstn@redhat.com>
14393
14394 * configure.host: Add check for --disable-newlib-io-float
14395 configuration option and add -DNO_FLOATING_POINT to newlib cflags
14396 if appropriate.
14397 * acinclude.m4: Added --disable-newlib-io-float option.
14398 * aclocal.m4: Regenerated.
14399 * configure: Ditto.
14400 * doc/aclocal.m4 doc/configure libc/aclocal.m4 libc/configure
17c0c97d 14401 * libc/*/aclocal.m4 libc/*/configure
afecf2fa
JJ
14402 * libm/*/aclocal.m4 libm/*/configure: Ditto.
14403 * libc/stdio/vfprintf.c [!INTEGER_ONLY]: Only set FLOATING_POINT
14404 if NO_FLOATING_POINT flag is not defined.
14405
c1010a63
JJ
144062002-02-25 Jeff Johnston <jjohnstn@redhat.com>
14407
14408 * libc/include/sys/config.h: Add __extension__ in front of
14409 long long references.
14410
630c657e
CV
144112002-02-23 Corinna Vinschen <corinna@vinschen.de>
14412
14413 * libc/include/sys/stat.h (_fstat): Don't declare when compiling Cygwin.
14414 (_stat): Ditto.
14415
59ee2e20
CV
144162002-02-23 Corinna Vinschen <corinna@vinschen.de>
14417
14418 * libc/sys/cygwin/sys/dirent.h (struct __DIR): Use __off32_t instead
14419 of off_t.
14420
2dd68dc2
NC
144212002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
14422
14423 * libc/machine/xscale/strchr.c (strchr): Add 'r1' to the list of
14424 clobbered registers.
14425
55500bf1
TF
144262002-02-19 Thomas Fitzsimmons <fitzsim@redhat.com>
14427
14428 * configure.host (newlib_cflags): When host is in m68* add
14429 -DCOMPACT_CTYPE.
14430
ba0173f0
JJ
144312002-02-15 Jeff Johnston <jjohnstn@redhat.com>
14432
ba3ccd63
EB
14433 * libc/include/sys/config.h: Add definitions for
14434 __int16_t, __uint16_t, __int64_t, and __uint64_t.
ba0173f0 14435
7b61d0c5
JJ
144362002-02-12 Hans-Peter Nilsson <hp@bitrange.com>
14437
ba3ccd63
EB
14438 * libc/sys/mmixware/link.c: New.
14439 * libc/sys/mmixware/sys/syscall.h (TRAP1i, I3f): Make asm
14440 volatile.
14441 * libc/sys/mmixware/times.c (_times): Renamed from times.
14442 * libc/sys/mmixware/open.c (_open): Attempt to handle O_APPEND
14443 properly by reading previous contents, not through BinaryReadWrite.
14444 * libc/sys/mmixware/Makefile.am (lib_a_SOURCES): Add link.c
14445 * libc/sys/mmixware/Makefile.in: Regenerate.
7b61d0c5 14446
a505db65
CV
144472002-02-10 Corinna Vinschen <corinna@vinschen.de>
14448
14449 * libc/include/grp.h: Don't declare group functions when compiling
14450 Cygwin.
14451
f3b39c45
CV
144522002-02-09 Corinna Vinschen <corinna@vinschen.de>
14453
14454 * libc/include/grp.h: Include Cygwin specific header.
14455 * libc/include/sys/stat.h: Ditto. Don't define `struct stat'
14456 when compiling for Cygwin.
14457 * libc/include/sys/types.h: Don't define off_t, uid_t
14458 and gid_t when compiling for Cygwin.
14459
82b3ac56
MG
144602002-02-08 matthew green <mrg@redhat.com>
14461
14462 * libc/include/sys/reent.h (_REENT_CHECK_EMERGENCY): Allocate
14463 _REENT_EMERGENCY_SIZE, not sizeof(char *).
14464
9f25eed9
AO
144652002-02-08 Alexandre Oliva <aoliva@redhat.com>
14466
14467 Contribute sh64-elf.
14468 2001-03-13 Alexandre Oliva <aoliva@redhat.com>
14469 * configure.host (newlib_cflags) [sh*-*-*]: Enable long long
14470 support in printf.
14471 2001-01-29 Alexandre Oliva <aoliva@redhat.com>
14472 * libc/machine/sh/setjmp.S [SH5]: Switch to SHmedia mode before
14473 any labels.
14474 2001-01-24 Alexandre Oliva <aoliva@redhat.com>
14475 * libc/sys/sh/trap.S (___trap34) [SH5]: Don't trash r2.
14476 2000-12-16 Alexandre Oliva <aoliva@redhat.com>
14477 * libc/machine/sh/configure.in: Rework conditionals.
14478 * libc/machine/sh/Makefile.am: Likewise.
14479 * libc/machine/sh/configure, libc/machine/sh/Makefile.in: Rebuilt.
14480 2000-12-01 Alexandre Oliva <aoliva@redhat.com>
14481 * configure.host: Match `sh*'.
14482 * libc/include/machine/setjmp.h: Define for SH5.
14483 * libc/machine/sh/configure.in: Detect SH5.
14484 * libc/machine/sh/configure: Rebuilt.
14485 * libc/machine/sh/Makefile.am: Use only setjmp.S for SH5.
14486 * libc/machine/sh/Makefile.in: Rebuilt.
14487 * libc/machine/sh/asm.h: Adjust for SH5.
14488 * libc/machine/sh/setjmp.S: Implement in SHmedia.
14489 * libc/sys/sh/crt0.S: Likewise.
14490 * libc/sys/sh/trap.S: Likewise.
14491
a2a405ae
JJ
144922002-02-07 Jeff Johnston <jjohnstn@redhat.com>
14493
14494 * libc/machine/i386/Makefile.am: (mach_add_src): Remove.
14495 (mach_add_obj): Conditionally set to setjmp.o or nothing.
14496 (LIB_SOURCES): Remove $(mach_add_src).
14497 (lib_a_LIBADD, lib_a_DEPENDENCIES): Add and set to $(mach_add_src).
14498 (lib_la_LIBADD, lib_la_DEPENDENCIES): Ditto.
14499 * libc/machine/i386/Makefile.in: Regenerate.
14500
27478365
JJ
145012002-02-05 Manik Raina <manik@cisco.com>
14502
994fa212 14503 * libc/misc/dprintf.c (parse_number): #if 0 unused function.
27478365
JJ
14504 * libc/stdlib/ldtoa.c (_ldcheck): Remove unused local variables
14505 s, p, k, and outstr.
14506 * libc/stdlib/dtoa.c (_dtoa_r): Initialize mlo.
14507
815a37f7
JJ
145082002-02-04 Jeff Johnston <jjohnstn@redhat.com>
14509
14510 * libc/include/sys/reent.h [(!_REENT_SMALL]: Add
14511 _REENT_CHECK_EMERGENCY macro.
14512
a4139c12
MG
145132002-02-03 matthew green <mrg@redhat.com>
14514
14515 * libc/reent/signgam.c (__signgam): Fix error in previous.
14516
8195aff7
MG
145172002-02-02 matthew green <mrg@redhat.com>
14518
14519 * libc/include/sys/config.h (_REENT_SMALL): Define for Xstormy16.
14520
14521 * libc/reent/reent.c (_reclaim_reent): Clean for _REENT_SMALL case.
14522 * libc/reent/reent.tex: Add blurb about _REENT_SMALL.
14523 * libc/include/sys/reent.h (struct _reent): Completely new version
14524 for _REENT_SMALL.
14525 (_REENT_INIT): New defines, different defintion depending on _REENT_SMALL.
14526 (_REENT_CHECK, _REENT_CHECK_TM): Likewise.
14527 (_REENT_CHECK_ASCTIME_BUF, _REENT_INIT_RAND48): Likewise.
14528 (_REENT_CHECK_RAND48, _REENT_INIT_MP, _REENT_CHECK_MP): Likewise.
14529 (_REENT_CHECK_EMERGENCY, _REENT_SIGNGAM, _REENT_RAND_NEXT): Likewise.
14530 (_REENT_RAND48_SEED, _REENT_RAND48_MULT, _REENT_RAND48_ADD): Likewise.
14531 (_REENT_MP_RESULT, _REENT_MP_RESULT_K, _REENT_MP_P5S): Likewise.
14532 (_REENT_MP_FREELIST, _REENT_ASCTIME_BUF, _REENT_TM): Likewise.
14533 (_REENT_EMERGENCY): Likewise.
14534
14535 * libc/include/sys/reent.h (struct __sFILE_fake): New struct, same as
14536 the start of the real __sFILE, used for stdin, stdout and stderr until
14537 they are setup properly.
14538 (struct __sFILE): Move location of _data in _REENT_SMALL case.
14539 * libc/stdio/findfp.c (__sinit): Rearrange for _REENT_SMALL case by
14540 allocated stdin, stdout and stderr.
14541 * libc/stdio/getchar.c (_getchar_r): Call _REENT_SMALL_CHECK_INIT().
14542 * libc/stdio/iprintf.c (iprintf, _iprintf_r): Likewise.
14543 * libc/stdio/perror.c (_perror_r): Likewise.
14544 * libc/stdio/printf.c (printf, _printf_r): Likewise.
14545 * libc/stdio/putchar.c (_putchar_r): Likewise.
14546 * libc/stdio/puts.c (_puts_r): Likewise.
14547 * libc/stdio/scanf.c (scanf, _scanf_r): Likewise.
14548 * libc/stdio/vprintf.c (vprintf): Likewise.
14549 * libc/stdio/vscanf.c (vscanf, _vscanf_r): Likewise.
14550
14551 * libc/stdio/tmpnam.c (_tmpnam_r): Use _REENT_EMERGENCY().
14552
14553 * libc/reent/reent.c (_wrapup_reent): Adjust for _REENT_SMALL atexit.
14554 * libc/include/sys/reent.h (_atexit): Limit atexit() entries to 32
14555 for _REENT_SMALL.
14556 * libc/stdlib/atexit.c (atexit): Rearrange for _REENT_SMALL case.
14557 * libc/stdlib/exit.c (exit): Rearrange for _REENT_SMALL case.
14558
14559 * libc/include/sys/reent.h (struct _rand48): Keep _rand_next if
14560 _REENT_SMALL.
14561 * libc/stdlib/drand48.c (_drand48_r): Call _REENT_CHECK_RAND48().
14562 * libc/stdlib/lcong48.c (_lcong48_r): Likewise.
14563 * libc/stdlib/lrand48.c (_lrand48_r): Likewise.
14564 * libc/stdlib/mrand48.c (_mrand48_r): Likewise.
14565 * libc/stdlib/rand48.c (__dorand48): Likewise.
14566 * libc/stdlib/seed48.c (_seed48_r): Likewise.
14567 * libc/stdlib/srand48.c (_srand48_r): Likewise.
14568 * libc/stdlib/rand48.h (__rand48_seed, __rand48_mult, __rand48_add): Define
14569 as _REENT_RAND48_SEED(), _REENT_RAND48_MULT() and _REENT_RAND48_ADD().
14570 * libc/stdlib/dtoa.c (_dtoa_r): Call _REENT_CHECK_MP(). Use
14571 _REENT_MP_RESULT() and _REENT_MP_RESULT_K().
14572 * libc/stdlib/ldtoa.c (_ldtoa_r): Likewise.
14573 * libc/stdlib/rand.c (srand): Use _REENT_RAND_NEXT().
14574 * libc/stdlib/rand.c (rand): Likewise.
14575
14576 * libc/stdlib/mallocr.c (malloc_stats): Call _REENT_SMALL_CHECK_INIT().
14577 * libc/stdlib/mstats.c (_mstats_r): Call _REENT_SMALL_CHECK_INIT().
14578
14579 * libc/stdlib/mprec.c (Balloc): Call _REENT_CHECK_MP. Use
14580 _REENT_MP_FREELIST() and _REENT_MP_P5S.
14581 * libc/include/sys/reent.h (struct _mprec): New structure.
14582
14583 * libc/include/sys/reent.h (struct _reent): Rename _strtok_last to
14584 _unused_strtok_last.
14585 * libc/string/strtok.c (strtok): Use a local static variable.
14586
14587 * libc/include/sys/reent.h (_REENT_ASCTIME_SIZE): New define.
14588 (_REENT_EMERGENCY_SIZE): Likewise.
14589 * libc/time/asctime.c (asctime): Call _REENT_CHECK_ASCTIME_BUF(). Use
14590 _REENT_ASCTIME_BUF().
14591 * libc/time/lcltime.c (localtime): Call _REENT_CHECK_TM(). Use
14592 _REENT_TM().
14593
14594 * libc/include/math.h (__singam_r): Use _REENT_SIGNGAM().
14595 * libc/reent/signgam.c (__signgam): Use _REENT_SIGNGAM().
14596 * libm/math/w_gamma.c (gamma): Use _REENT_SIGNGAM().
14597 * libm/math/w_lgamma.c (lgamma): Use _REENT_SIGNGAM().
14598 * libm/math/wf_gamma.c (gammaf): Use _REENT_SIGNGAM().
14599 * libm/math/wf_lgamma.c (lgammaf): Use _REENT_SIGNGAM().
14600
9c2e7642
GK
146012002-02-01 Geoffrey Keating <geoffk@redhat.com>
14602
14603 * configure.host (xstormy16): Don't use the generic malloc.
14604 * libc/machine/xstormy16/Makefile.am: Build tiny-malloc.
14605 * libc/machine/xstormy16/Makefile.in: Regenerate.
14606 * libc/machine/xstormy16/mallocr.c: New file.
14607 * libc/machine/xstormy16/tiny-malloc.c: New file.
14608
4bb6112f
TF
146092002-01-28 Thomas Fitzsimmons <fitzsim@redhat.com>
14610
14611 * libc/include/sys/signal.h [__CYGWIN__]: Issue error message
14612 when _CYGWIN_TYPES_H is not defined.
14613
8d345552
TF
146142002-01-24 Thomas Fitzsimmons <fitzsim@redhat.com>
14615
14616 * libc/include/sys/signal.h: Revert 2002-01-23 change.
14617
bcc49082
TF
146182002-01-23 Thomas Fitzsimmons <fitzsim@redhat.com>
14619
14620 * libc/include/sys/signal.h: Remove pthread_kill declaration
14621 when __CYGWIN__ is defined.
14622
13baedeb
CF
146232002-01-18 Mark Bradshaw <bradshaw@staff.crosswalk.com>
14624
14625 * libc/include/time.h: Add prototype for strptime for Cygwin.
14626
b2db0ebc
NC
146272002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
14628
ebf139fb
NC
14629 * libc/machine/xscale/memset.c (memset): Fix bug when len == 1 and
14630 dst was not word aligned.
14631
b2db0ebc
NC
14632 * libc/sys/arm/syscalls.c (_sbrk): Return -1 rather than aborting
14633 if too much memory is requested.
14634
798c015d
JJ
146352002-01-11 Jeff Johnston <jjohnstn@redhat.com>
14636
14637 * libc/stdio/vfscanf.c (__svfscanf_r): Change loop that
14638 reads blanks from the input file to break if EOF reached
14639 rather than end processing.
14640
46ad2ef4
JJ
146412002-01-07 Jeff Johnston <jjohnstn@redhat.com>
14642
14643 * MAINTAINERS: Change e-mail addresses to refer to redhat domain.
14644
86b06396
JJ
146452002-01-07 Alan Matsuoka <alanm@redhat.com>
14646
ba3ccd63
EB
14647 * libc/include/machine/ieeefp.h: Configure d10v doubles to
14648 be 32 bits if __DOUBLE__ == 32 otherwise doubles are 64 bits.
14649 libc/include/sys/config.h: Ditto.
86b06396 14650
423d5064
CV
146512001-12-28 Corinna Vinschen <corinna@vinschen.de>
14652
14653 * libc/sys/cygwin/sys/utmp.h: Add definition of UTMP_FILE.
14654
f6eff1c0
GK
146552001-12-22 Geoffrey Keating <geoffk@redhat.com>
14656 Catherine Moore <clm@redhat.com>
14657 Richard Henderson <rth@redhat.com>
14658 Corinna Vinschen <vinschen@redhat.com>
14659
14660 * configure.host: Add support for xstormy16.
14661 * libc/include/machine/ieeefp.h: Add support for xstormy16.
14662 * libc/include/machine/setjmp.h: Add support for xstormy16.
14663 * libc/include/sys/config.h: Add support for xstormy16.
14664 * libc/machine/xstormy16/Makefile.am: New file.
14665 * libc/machine/xstormy16/Makefile.in: New file.
14666 * libc/machine/xstormy16/aclocal.m4: New file.
14667 * libc/machine/xstormy16/configure: New file.
14668 * libc/machine/xstormy16/configure.in: New file.
14669 * libc/machine/xstormy16/setjmp.S: New file.
14670
1f93c55f
TF
146712001-12-19 Thomas Fitzsimmons <fitzsim@redhat.com>
14672
14673 * libm/machine/configure.in (HAVE_LIBM_MACHINE_DIR): New conditional.
14674 * libm/machine/Makefile.am [HAVE_LIBM_MACHINE_DIR] (LIBM_MACHLIB): New variable.
14675
13b918be
CV
146762001-12-19 Corinna Vinschen <corinna@vinschen.de>
14677
14678 * libm/machine/Makefile.am: Change rules to create correct lib.a.
14679 * libm/machine/Makefile.in: Regenerated through automake.
14680
08e857b4
TF
146812001-12-18 Thomas Fitzsimmons <fitzsim@redhat.com>
14682
14683 * Makefile.am (DOCDIR): Force to empty string when doc
14684 directory is not present.
14685
60565ed6
TF
146862001-12-18 Thomas Fitzsimmons <fitzsim@redhat.com>
14687
14688 * libc/machine/i386/f_*: Move to libm/machine/i386.
14689
146902001-12-18 Joel Sherrill <joel@OARcorp.com>
14691
14692 * libm/machine/Makefile.am: Add dummy doc stub so
14693 "make info" works.
14694
146952001-12-17 Joel Sherrill <joel@OARcorp.com>
14696
14697 * libc/include/sys/types.h (ino_t): RTEMS uses long also.
14698
fc504135
TF
146992001-12-17 Thomas Fitzsimmons <fitzsim@redhat.com>
14700
14701 * libc/stdlib/Makefile.am (LIB_COMPILE): Change to equal
14702 $(COMPILE) rather than $(CC).
14703 * libc/stdio/Makefile.am (LIB_COMPILE): Likewise.
14704 (vfprintf.$(oext)): Remove $(INCLUDES), made redundant by
14705 $(LIB_COMPILE) change.
14706 (vfiprintf.$(oext)): Likewise.
14707
efeae9a3
CV
147082001-12-17 Corinna Vinschen <vinschen@redhat.de>
14709
14710 * libc/sys/cygwin/include/unistd.h: Add __UNISTD_GETOPT_ to allow
14711 conditionalized including of getopt stuff.
14712
cdf7120d
TF
147132001-12-14 Thomas Fitzsimmons <fitzsim@redhat.com>
14714
14715 * libc/stdio/Makefile.am (vfprintf.$(oext)): Add $(INCLUDES) to
14716 compile line.
f85be99c 14717 (vfiprintf.$(oext)): Likewise.
cdf7120d 14718
2e1a7175
TF
147192001-12-13 Thomas Fitzsimmons <fitzsim@redhat.com>
14720
14721 * Makefile.shared: New file.
14722 * libc/sys/linux/shared.ld: New file.
14723 * libm/machine/*: New files.
14724 * libm/machine/i386/*: New files.
14725 * Makefile.am: Add libtool support. Change math and mathfp
14726 references to variables.
14727 * configure.host: Add variables for libtool support. Add
14728 libm_machine_dir variable.
14729 * configure.in: Add objectlist variables, for libtool
14730 support. Add CC_FOR_BUILD tests.
14731 * libc/Makefile.am: Add libtool support. Change crt0.o
14732 reference to be a variable reference.
14733 * libc/configure.in: Add libtool support. Change sublib
14734 names to be lib${subdir}.la when using libtool.
14735 * libc/ctype/Makefile.am: Add libtool support.
14736 * libc/errno/Makefile.am: Likewise.
14737 * libc/locale/Makefile.am: Likewise.
14738 * libc/machine/Makefile.am: Likewise.
14739 * libc/machine/configure.in: Likewise.
14740 * libc/machine/i386/Makefile.am: Likewise.
14741 * libc/machine/i386/configure.in: Likewise.
14742 * libc/misc/Makefile.am: Likewise.
14743 * libc/posix/Makefile.am: Likewise.
14744 * libc/reent/Makefile.am: Likewise.
14745 * libc/signal/Makefile.am: Likewise.
14746 * libc/stdio/Makefile.am: Likewise.
14747 * libc/stdlib/Makefile.am: Likewise.
14748 * libc/string/Makefile.am: Likewise.
14749 * libc/sys/Makefile.am: Likewise.
14750 * libc/sys/configure.in: Likewise.
14751 * libc/sys/linux/Makefile.am: Add libtool support. Change
14752 awk reference to a variable reference. Change signal.h
14753 reference to a variable reference.
14754 * libc/sys/linux/configure.in: Add libtool support.
14755 * libc/syscalls/Makefile.am: Likewise.
14756 * libc/time/Makefile.am: Likewise.
14757 * libc/unix/Makefile.am: Likewise.
14758 * libm/Makefile.am: Add libtool support. Change math and
14759 mathfp references to variables.
14760 * libm/configure.in: Add libtool support. Add
14761 LIBM_MACHINE_LIB variable.
14762 * libm/common/Makefile.am: Add libtool support.
14763 * libm/math/Makefile.am: Likewise.
14764 * libm/mathfp/Makefile.am: Likewise.
14765 Regenerate all Makefile.in, aclocal.m4, and configure.
14766
b92591a1
JJ
147672001-12-13 Anita Kulkarni <anitak@kpit.com>
14768
ba3ccd63 14769 * libc/sys/sh/crt0.S: Remove stack symbol definition 0xdeaddead.
b92591a1 14770
355b664e
CF
147712001-12-06 John Peacock <jpeacock@rowman.com>
14772
14773 * libc/include/sys/unistd.h: Correct ualarm declaration.
14774
e9853806
NC
147752001-12-05 Nick Clifton <nickc@cambridge.redhat.com>
14776
14777 * libc/sys/arm/crt0.S: For __USES_INITFINI__ preserve the argument
14778 vector before calling the initialisation functions.
14779
a8e091b0
CF
147802001-11-29 Christopher Faylor <cgf@redhat.com>
14781
14782 * libc/include/dirent.h: Protect against multiple inclusion.
14783
ab634123
CF
147842001-11-27 Christopher Faylor <cgf@redhat.com>
14785
14786 * libc/include/sys/types.h: Define useconds_t.
14787 * libc/include/sys/ulimit.h: Declare ualarm.
14788
d37e401e
CF
147892001-11-21 Christopher Faylor <cgf@redhat.com>
14790
14791 * libc/sys/cygwin/sys/dirent.h (DIR): Add another internal element.
14792
8ac90051
HPN
147932001-11-19 Hans-Peter Nilsson <hp@bitrange.com>
14794
14795 * libc/sys/mmixware/*: Tweak license header in all source files.
14796
d7ca37e4
CV
147972001-11-12 Corinna Vinschen <vinschen@redhat.com>
14798
14799 * libc/include/alloca.h: Move libc/sys/linux/include/alloca.h
14800 to here. Rearrange for general inclusion by stdlib.h.
14801 * libc/include/stdlib.h: Include <alloca.h> if __STRICT_ANSI__
14802 isn't defined.
14803 * libc/sys/linux/include/alloca.h: Move to libc/include.
14804
28f8744e
AG
148052001-11-12 Anthony Green <green@redhat.com>
14806
14807 * libc/sys/arm/crt0.S (__stack_base__): New symbol.
14808
4cede8c4
HPN
148092001-11-13 Hans-Peter Nilsson <hp@bitrange.com>
14810
14811 * libc/sys/mmixware/*: Correct spacing in all source files.
14812 * libc/sys/mmixware/syscall.h: Move misplaced file...
14813 * libc/sys/mmixware/sys/syscall.h: ...here.
14814
8be9b48b
JJ
148152001-11-12 Hans-Peter Nilsson <hp@bitrange.com>
14816
ba3ccd63
EB
14817 * libc/include/machine/ieeefp.h: Add support for mmix target.
14818 * libc/include/machine/setjmp.h: Ditto.
14819 * configure.host: Ditto.
14820 * libc/sys/mmixware/Makefile.am, libc/sys/mmixware/_exit.c,
14821 libc/sys/mmixware/access.c, libc/sys/mmixware/aclocal.m4,
14822 libc/sys/mmixware/chmod.c, libc/sys/mmixware/chown.c,
14823 libc/sys/mmixware/close.c, libc/sys/mmixware/configure.in,
14824 libc/sys/mmixware/creat.c, libc/sys/mmixware/crt0.c,
14825 libc/sys/mmixware/execv.c, libc/sys/mmixware/execve.c,
14826 libc/sys/mmixware/fork.c, libc/sys/mmixware/fstat.c,
14827 libc/sys/mmixware/getpid.c, libc/sys/mmixware/gettime.c,
14828 libc/sys/mmixware/isatty.c, libc/sys/mmixware/kill.c,
14829 libc/sys/mmixware/lseek.c, libc/sys/mmixware/open.c,
14830 libc/sys/mmixware/pipe.c, libc/sys/mmixware/read.c,
14831 libc/sys/mmixware/sbrk.c, libc/sys/mmixware/setjmp.S,
14832 libc/sys/mmixware/stat.c, libc/sys/mmixware/sys/syscall.h,
14833 libc/sys/mmixware/time.c, libc/sys/mmixware/times.c,
14834 libc/sys/mmixware/unlink.c, libc/sys/mmixware/utime.c,
14835 libc/sys/mmixware/wait.c, libc/sys/mmixware/write.c: New files.
14836 * libc/sys/mmixware/configure, libc/sys/mmixware/Makefile.in,
14837 libc/sys/mmixware/aclocal.m4: Generate.
8be9b48b 14838
c7dd4f95
CV
148392001-11-05 Corinna Vinschen <corinna@vinschen.de>
14840
14841 * libc/include/sys/unistd.h: Add prototypes for endusershell(),
14842 getusershell(), iruserok(), revoke(), ruserok() and setusershell()
14843 when __CYGWIN__ is defined.
14844 * libc/sys/cygwin/sys/utmp.h: Add prototypes for login_tty() and
14845 logwtmp().
14846
a6a6f9fe
JJ
148472001-11-01 Arati Dikey <aratidikey@hotmail.com>
14848
14849 * libm/mathfp/sf_isinf.c (isinff): Change to use _DEFUN macro.
14850 [_DOUBLE_IS_32BITS](isinf): New function that calls isinff.
14851 * libm/mathfp/sf_isnan.c (isnanf): Change to use _DEFUN macro.
14852 [_DOUBLE_IS_32BITS](isnan): New function that calls isnanf.
14853
d0504c35
JJ
148542001-10-24 Christopher Faylor <cgf@redhat.com>
14855
14856 * libc/stdio/fseek.c: Reset pointer to buffer base
14857 when forced to seek outside of current buffer contents.
14858 This prevents the code from erroneously thinking there is
14859 anything in the current buffer.
14860
0280c8c0
GK
148612001-10-22 Geoffrey Keating <geoffk@redhat.com>
14862
14863 * libc/include/math.h: The C++ standard adds the single-precision
14864 versions of the elementary functions.
14865
333d6098
CF
148662001-10-22 Christopher Faylor <cgf@redhat.com>
14867
14868 * libc/posix/execvp.c: Remove obsolete CYGWIN32 considerations
14869 throughout.
14870 * signal.h: Change comment to reflect __CYGWIN__ rather than __CYGWIN32__.
14871 * popen.c (popen): Use __CYGWIN_ rather than __CYGWIN32__.
14872 * system.c (_system_r): Ditto.
14873
c7118319
CV
148742001-10-17 Corinna Vinschen <corinna@vinschen.de>
14875
14876 * libc/include/sys/unistd.h: Add prototype for fchdir() when
b4e98df6 14877 __CYGWIN__ or __rtems__ is defined.
c7118319 14878
5665b0e1
JJ
148792001-10-01 Charles Wilson <cwilson@ece.gatech.edu>
14880
ba3ccd63
EB
14881 * libc/include/stdlib.h: add declarations for
14882 _strtoull_r, _strtoll_r, strtoull, and strtoll.
14883 * libc/stdio/local.h: remove declarations of
14884 __strtoull_r and __strtoll_r.
14885 * libc/stdio/vfscanf.c(__svfscanf_r): call
14886 _strtoull_r instead of __strtoull_r. Ditto
14887 _strtoll_r vs. __strtoll_r.
14888 * libc/stdlib/Makefile.am: add new files to
14889 .c list and .def list
14890 * libc/stdlib/Makefile.in: regenerate
14891 * libc/stdlib/strtoll_r.c: rename __strtoll_r
14892 as _strtoll_r
14893 * libc/stdlib/strtoull_r.c: rename __strtoull_r
14894 as _strtoull_r
14895 * libc/stdlib/strtoull.c: new file
14896 * libc/stdlib/strtoll.c: new file
5665b0e1 14897
d2d5eb41
CF
14898Mon Sep 17 17:29:47 2001 Christopher Faylor <cgf@cygnus.com>
14899
14900 * libc/include/process.h: Add getpid() declaration.
14901
448e3c14
NC
149022001-09-14 Nick Clifton <nickc@cambridge.redhat.com>
14903
14904 * libc/sys/arm/crt0.S: Add calls to _init and _fini (via atexit)
14905 for new style arm/elf ctor/dtor handling.
14906 Minor formatting tidy up.
14907
7a2afbbb
JJ
149082001-09-13 Jeff Johnston <jjohnstn@redhat.com>
14909
14910 * libc/stdlib/Makefile.am: Add support to build strtoll_r.c
14911 and strtoull_r.c.
14912 * libc/stdlib/Makefile.in: Regenerated.
14913 * libc/stdlib/strtoll_r.c: New file.
14914 * libc/stdlib/strtoull_r.c: New file.
14915 * libc/stdio/local.h: Add prototypes for long long string
14916 conversion routines.
14917 * libc/stdio/vfscanf.c (__svfscanf_r): Add optional long long support
14918 tied to %L integer conversion specifier.
14919
6342caa4
JJ
14920Thu Sep 13 08:49:49 2001 Jason Tishler <jason@tishler.net>
14921
ba3ccd63
EB
14922 * strftime.c (strftime): Fix "%W" implementation to properly handle
14923 Mondays too.
6342caa4 14924
b2d319cb
JJ
149252001-09-07 Jeff Law <law@redhat.com>
14926
ba3ccd63
EB
14927 * libc/sys/h8300hms/crt0.S: For H8/300H and H8/S, load address of
14928 __fini with "mov.l" instead of "mov.w".
b2d319cb 14929
233823ba
CV
149302001-09-05 Corinna Vinschen <corinna@vinschen.de>
14931
14932 * libc/sys/cygwin/include/unistd.h: New file, wrapping sys/unistd.h
14933 and getopt.h.
14934
63c17b54
JJ
149352001-09-04 Jason Merrill <jason_merrill@redhat.com>
14936
14937 * libc/sys/h8300hms/crt0.S: Support ELF initialization.
14938
a3e67ddf
CV
149392001-09-03 Corinna Vinschen <corinna@vinschen.de>
14940
14941 * libc/sys/cygwin/sys/dirent.h (struct dirent): Add version number
14942 field.
14943 (__DIRENT_VERSION): New define.
14944
6d47f33a
CV
149452001-09-03 Corinna Vinschen <corinna@vinschen.de>
14946
14947 * libc/sys/cygwin/sys/dirent.h (struct dirent): Add `d_fd' member.
4f79e37e
CV
14948 Shrink __d_reserved accordingly to keep structure size.
14949 (dirfd): Declare external.
6d47f33a 14950
348c5e06
JJ
149512001-08-29 Joel Sherrill <joel@OARcorp.com>
14952
14953 * libc/include/sys/unistd.h: Prototype chroot() for RTEMS.
14954
149552001-08-29 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
14956
14957 * libc/machine/i386/f_atan2.S, libc/machine/i386/f_atan2f.S,
14958 libc/machine/i386/f_exp.c, libc/machine/i386/f_expf.c,
14959 libc/machine/i386/f_frexp.S, libc/machine/i386/f_frexpf.S,
14960 libc/machine/i386/f_ldexp.S, libc/machine/i386/f_ldexpf.S,
14961 libc/machine/i386/f_log.S, libc/machine/i386/f_log10.S,
14962 libc/machine/i386/f_log10f.S, libc/machine/i386/f_logf.S,
14963 libc/machine/i386/f_pow.c, libc/machine/i386/f_powf.c,
14964 libc/machine/i386/f_tan.S, libc/machine/i386/f_tanf.S:
14965 Add conditional compilation to avoid HW FPU instructions
14966 when compiled for soft-float.
14967
f29865c5
JJ
149682001-08-29 Jeff Johnston <jjohnstn@redhat.com>
14969
14970 * Makefile.am: Add check for ln failing when creating libg.a
14971 so that cp gets used as a backup.
14972 * Makefile.in: Regenerated.
14973
9e2a4ef8
JJ
149742001-08-29 Jeff Johnston <jjohnstn@redhat.com>
14975
14976 * libc/include/sys/reent.h: Add include of <sys/_types.h>.
14977 No longer include time.h. Add struct __tm to use for
14978 _localtime_buf in the reentrant structure. Add a
14979 _NULL definition to use in initializing the reentrant struct.
14980 * libc/include/sys/config.h: For CYGWIN32 and RTEMS, change
14981 the _READ_WRITE_RETURN_TYPE to _ssize_t which is found in
14982 <sys/_types.h>.
14983 * libc/include/sys/unistd.h: Include <sys/_types.h>.
14984 * libc/time/lcltime.c (localtime): Cast the reentrant struct
14985 _localtime_buf to be struct tm *.
14986
1ae900d6
JR
14987Wed Aug 29 14:17:38 2001 J"orn Rennecke <amylaar@redhat.com>
14988
14989 * configure.host (h8300-*-elf*, h8500-*-elf*): New cases.
14990 * libc/sys/h8300hms/crt1.c (__main): Don't reference __ctors /
14991 __ctors_end.
14992 * libc/sys/h8300hms/syscalls.c: Include errno.h.
14993 (_unlink): New stub function.
14994
8e26d5b5
CF
14995Sat Aug 25 22:22:25 2001 Christopher Faylor <cgf@cygnus.com>
14996
14997 * libc/include/sys/errno.h: Add a cautionary comment.
14998
e8267664
JJ
149992001-08-21 Jeff Johnston <jjohnstn@redhat.com>
15000
15001 * libc/stdlib/mallocr.c [!defined(MALLOC_ALIGNMENT)]: Add conditional
15002 for SIZE_SZ so that alignment ends up a minimum of 8.
15003
4acf3edf
CF
15004Mon Aug 13 22:26:01 2001 Christopher Faylor <cgf@cygnus.com>
15005
15006 * libc/include/machine/setjmp.h: Protect sigsetjmp/siglongjmp macro
15007 arguments.
15008
15009 * libc/include/sys/errno.h: Declare sys_errlist and sys_nerr, under
15010 Cygwin.
15011
52c80be8
JJ
150122001-08-13 Jeff Johnston <jjohnstn@redhat.com>
15013
15014 * libc/include/malloc.h (M_MXFAST, M_NLBLKS, M_GRAIN, M_KEEP): New
15015 macro constants for mallopt options.
15016 (M_TRIM_THRESHOLD, M_TOP_PAD, M_MMAP_THRESHOLD, M_MMAP_MAX): Ditto.
15017
a7061f7f
JJ
150182001-08-02 Jeff Johnston <jjohnstn@redhat.com>
15019
15020 * libc/include/stdio.h (BUFSIZ): Define to __BUFSIZ__ if provided,
15021 otherwise default.
15022
0b4bfdd5
AH
150232001-07-12 Aldy Hernandez <aldyh@redhat.com>
15024
ba3ccd63 15025 * libc/machine/mips/setjmp.S: Allow mips16 and mips64 to coexist.
0b4bfdd5 15026
2b6b730c
NC
150272001-06-27 Nick Clifton <nickc@cambridge.redhat.com>
15028
15029 * libc/include/machine/ieeefp.h (__IEEE_BYTES_LITTLE_ENDIAN):
15030 Define for little endian ARMs.
15031
15032 * libc/stdlib/mprec.h (Storeinc): Use little endian version if
15033 __IEEE_BYTES_LITTLE_ENDIAN is defined.
15034
25842b68
JJ
150352001-06-11 Danny Smith <dannysmith@users.sourceforge.net>
15036
ba3ccd63 15037 * /libc/include/ctype.h (is* and to* macros): Do not define if C++.
25842b68 15038
371b76ef
JJ
150392001-06-11 Egor Duda <deo@logos-m.ru>
15040
ba3ccd63
EB
15041 * libc/ctype/ctype_.c: When compiled with gcc on platforms
15042 with signed char, make _ctype_[-128] ... _ctype[-1] refer to
15043 initialized memory region. Platform can define COMPACT_CTYPE
15044 to avoid allocation of the additional 128 bytes of data.
15045 Add pointer to _ctype_ array. Always initialize all _ctype_
15046 array elements.
371b76ef 15047
43b44bc5
JL
150482001-06-08 Jonathan Larmour <jlarmour@redhat.com>
15049
15050 * libc/stdlib/mbtowc_r.c (_mbtowc_r): Avoid dereferencing
15051 NULL pointer.
15052
188bc140
NC
150532001-05-28 Nick Clifton <nickc@cambridge.redhat.com>
15054
15055 * libc/stdio/vfprintf.c (_VFPRINTF_R): Handle printf ("%#.0o",0)
15056
2ce88418
NC
150572001-05-25 Nick Clifton <nickc@cambridge.redhat.com>
15058
15059 * libc/machine/xscale/memcmp.c: Fix bug when both pointers have
15060 matching, non-word alignment, and the length is <= 4 but more than
15061 enough to move them over a word boundary.
15062 Add comments explaining what each instruction does.
15063
ca60ed47
CF
15064Mon May 7 20:39:25 2001 Christopher Faylor <cgf@cygnus.com>
15065
15066 * libc/include/sys/stat.h: Revert March 3, Cygwin change.
c63e9997 15067 * libc/include/sys/unistd.h: Ditto.
ca60ed47 15068
8b3bcfba
JJ
150692001-05-04 Earnie Boyd <earnie@users.sourceforge.net>
15070
ba3ccd63 15071 * libc/string/strrchr.c: Use strchr for the speed improvements.
8b3bcfba 15072
b09e3cf8
JJ
150732001-05-01 Jeff Johnston <jjohnstn@redhat.com>
15074
15075 * libc/stdio/findfp (__sinit)[HAVE_FCNTL]: For platforms that have
15076 real file systems, let __smakebuf() determine if line buffering
15077 should be used for stdout.
15078
0ca66974
JJ
150792001-04-27 Jeff Johnston <jjohnstn@redhat.com>
15080
15081 * libc/stdio/vfscanf.c (__svfscanf_r): Initialize new_exp local var.
15082
7cb7017a
JJ
150832001-04-27 Jeff Johnston <jjohnstn@redhat.com>
15084
15085 * libc/include/stdlib.h: Add prototype for _strtod_r.
15086
a874cd21
JJ
150872001-04-24 Charles Wilson <cwilson@ece.gatech.edu
15088
ba3ccd63
EB
15089 * libc/stdio/vprintf.c (vprintf): fix signature to use _DEFUN
15090 * libc/stdio/vprintf.c (_vprintf_r): new function
15091 * libc/stdio/vsnprintf.c (vsnprintf): fix signature to use _DEFUN
15092 * libc/stdio/vsnprintf.c (_vsnprintf_r): fix signature to use
15093 _DEFUN, and call _vfprintf_r, not vfprintf.
15094 * libc/stdio/vsprintf.c (vsprintf.c): fix signature to use _DEFUN
15095 * libc/stdio/vsprintf.c (_vsprintf_r): fix signature to use
15096 _DEFUN, and call _vfprintf_r, not vfprintf.
a874cd21 15097
cb4cc283 150982001-04-22 Earnie Boyd <earnie@users.sourceforge.net>
17c0c97d 15099
cb4cc283
CF
15100 * libc/include/sys/unistd.h [X_OK]: Use better protection against
15101 Cygwin X_OK definitions in sys/file.h.
15102
8c9df1d5
CF
15103Fri Apr 20 23:17:51 2001 Christopher Faylor <cgf@cygnus.com>
15104
15105 * libc/include/sys/time.h: Define timercmp and other macros for
15106 __CYGWIN__, too.
15107
3ac6f3a7 151082001-04-20 Jeff Johnston <jjohnstn@redhat.com>
17c0c97d 15109
3ac6f3a7
JJ
15110 * acinclude.m4: Added --enable-malloc-debugging configure flag.
15111 * configure.host: For Cygwin specify -DMALLOC_PROVIDED if
15112 --enable-malloc-debugging selected.
15113 * aclocal.m4 configure: Regenerated.
15114 libm/aclocal.m4 libm/configure: Ditto.
15115 * libc/aclocal.m4 libc/configure: Ditto.
15116 * libc/machine/aclocal.m4 libc/machine/configure: Ditto.
15117 * libc/machine/*/aclocal.m4 libc/machine/*/configure: Ditto.
15118 * libc/sys/aclocal.m4 libc/sys/configure: Ditto.
15119 * libc/sys/*/aclocal.m4 libc/sys/*/configure: Ditto.
15120 * doc/aclocal.m4 doc/configure: Ditto.
15121
52cb9e69
JJ
151222001-04-20 Jeff Johnston <jjohnstn@redhat.com>
15123
15124 * libc/include/stdio.h[!_REENT_ONLY]: Moved various functions together
15125 into one list.
15126 [!__STRICT_ANSI__]: Moved non-ANSI I/O functions in this list.
15127 (vfscanf, vscanf, vsscanf, _vfscanf_r, _vscanf_r, _vsscanf_r): New
15128 function prototypes.
15129 (_fscanf_r, _sscanf_r): Ditto.
15130 * libc/include/stdlib.h: Added _strtod_r prototype.
15131 * libc/stdio/Makefile.am: Add new v*scanf functions.
15132 * libc/stdio/Makefile.in: Regenerate.
15133 * libc/stdio/fscanf.c: Reorganized so HAVE_STDC only affects prototype
15134 and code is shared. Added reentrant _fscanf_r which calls __svfscanf_r.
15135 * libc/stdio/scanf.c: Changed to call __svfscanf_r.
15136 * libc/stdio/sscanf.c: Changed documentation to add reentrant routines.
15137 (sscanf): Changed to call __svfscanf_r with _REENT argument.
15138 (_sscanf_r): New routine.
15139 * libc/stdio/local.h: Removed __svfscanf prototype and replaced it
15140 with __svfscanf_r prototype.
15141 * libc/stdio/vfscanf.c (vfscanf, _vfscanf_r: New
15142 routines.
15143 (__svfscanf_r): Reentrant version of __svfscanf which takes reetrancy
15144 structure as argument as calls reentrant versions of helper functions
15145 (e.g. _strtol_r, _strtoul_r). Also replaced calls to atol and atof
15146 to _strtol_r and _strtod_r respectively.
15147 * libc/stdio/vfscanf.c: Also changed __svfscanf to call __svfscanf_r.
15148 * libc/stdlib/strtod.c (strtod): Changed to call _strtod_r with
15149 _REENT argument.
15150 * libc/stdio/vscanf.c: New file.
15151 * libc/stdio/vsscanf.c: Ditto.
15152
ee9f39fb
JJ
151532001-04-19 Robert Collins <rbtcollins@hotmail.com>
15154
15155 * include/time.h[__CYGWIN__]: Define tzname to _tzname if not defined.
15156 Define daylight to _daylight if it is not defined
17c0c97d 15157 Prepare a variable export of timezone based on timezonevariable.
ee9f39fb
JJ
15158 (Cannot be used with the timezone() function.)
15159
273861e3
JJ
151602001-04-17 Stephen L. Moshier <moshier@moshier.ne.mediaone.net>
15161
ba3ccd63
EB
15162 * newlib/libm/math/ef_asin.c (pio2_hi, pio2_lo, pio4_hi):
15163 Correct the numerical values.
273861e3 15164
a25b8414
CF
151652001-04-13 Robert Collins <rbtcollins@hotmail.com>
15166
15167 * libc/include/sys/unistd.h: Add pthread_atfork (Cygwin only).
15168
b8a8c59d
CV
15169Thu Apr 12 23:11:00 2001 Corinna Vinschen <corinna@vinschen.de>
15170
15171 * libc/include/sys/errno.h: Add ECASECLASH to indicate case clash
15172 on case insensitve file systems.
15173
74f8cc63
CF
151742001-04-12 Robert Collins <rbtcollins@hotmail.com>
15175
15176 * libc/include/sys/features.h: Add appropriate defines for Cygwin
15177 pthread support.
15178 * libc/include/sys/signal.h: Remove unneeded __CYGWIN__ protection.
15179 * libc/include/sys/types.h: Protect __CYGWIN__ from the rtems pthreads
15180 types. Include <cygwin/types.h> for the cygwin specific typedefs.
15181
16740220
RS
151822001-04-04 Richard Sandiford <rsandifo@redhat.com>
15183
15184 * libc/include/machine/ieeefp.h: Comment about new configuration
15185 macros _FLT_LARGEST_EXPONENT_IS_NORMAL and _FLT_NO_DENORMALS.
15186 * libm/common/fdlib.h: Define new macros for testing floats.
15187 * libm/common/sf_*: Use them.
15188 * libm/math/ef_*: Likewise.
15189 * libm/math/sf_*: Likewise.
15190
0694d8d3
JJ
151912001-03-29 Jeff Johnston <jjohnstn@redhat.com>
15192
15193 * libc/sys/arm/setjmp.S: Added .code 16 specifier for thumb-mode
15194 prolog to by-pass possible assembler error.
15195
4833b38c
JJ
151962001-03-21 Egor Duda <deo@logos-m.ru>
15197
ba3ccd63
EB
15198 Allow building internal stubs for non-reentrant syscalls
15199 if target provides its own malloc
15200 * libc/reent/reent.c (errno): Move definition here.
15201 * libc/reent/sbrkr.c: From here.
4833b38c 15202
d17d6d42
CF
152032001-03-20 Danny Smith <dannysmith@users.sourceforge.net>
15204
15205 * libc/include/sys/types.h (BSD int typedefs): Guard with
15206 _BSDTYPES_DEFINED rather than _WINSOCK_H.
15207 (fd_set): Add !defined __USE_W32_SOCKETS to guard; define
15208 _SYS_TYPES_FD_SET.
15209 * libc/include/sys/unistd.h (gethostname): Don't declare if defined
15210 (_WINSOCK_H) || defined (__USE_W32_SOCKETS).
15211
c7ee75cd
CV
15212Sat Mar 17 18:30:00 2001 Corinna Vinschen <corinna@vinschen.de>
15213
15214 * libc/include/sys/unistd.h: Add _PC_POSIX_PERMISSONS and
15215 _PC_POSIX_SECURITY constants for Cygwin.
15216
63dc5d80
CV
15217Wed Mar 14 9:34:00 2001 Corinna Vinschen <corinna@vinschen.de>
15218
15219 * libc/sys/cygwin/crt0.c: Add copyright hint.
15220 * libc/sys/cygwin/sys/dirent.h: Ditto.
15221 * libc/sys/cygwin/sys/param.h: Ditto.
15222 * libc/sys/cygwin/sys/utime.h: Ditto.
15223 * libc/sys/cygwin/sys/utmp.h: Ditto.
15224
6f637037
AO
152252001-03-13 Alexandre Oliva <aoliva@redhat.com>
15226
15227 * libc/stdio/vfprintf.c (QUADINT) [_NO_LONGLONG]: Make it
15228 equivalent to LONGINT.
15229
e69b6f73
JJ
152302001-03-08 Richard Sandiford <rsandifo@redhat.com>
15231
ba3ccd63
EB
15232 * (libc/include/machine/setjmp.h): Use 23 long long ints for a
15233 jmpbuf on MIPS64 targets.
15234 * (libc/machine/mips/setjmp.S): Add MIPS64 version.
e69b6f73 15235
6198dece
CF
15236Wed Mar 7 16:02:07 2001 Christopher Faylor <cgf@cygnus.com>
15237
17c0c97d 15238 * libc/include/sys/config.h: Use ssize_t for Cygwin read/write
ba3ccd63 15239 declarations.
6198dece 15240
cfc05d96
JJ
15241Mon Mar 5 21:48:54 2001 J"orn Rennecke <amylaar@redhat.com>
15242
ba3ccd63
EB
15243 * libc/include/sys/config.h (_READ_WRITE_RETURN_TYPE): Define.
15244 For RTEMS, define to be ssize_t. Default to int if not defined.
15245 * libc/stdio/sscanf.c (eofread): Return _READ_WRITE_RETURN_TYPE.
15246 * libc/stdio/stdio.c (__sread, __swrite): Likewise.
15247 * libc/stdio/local.h (__sread, __swrite): Likewise.
15248 * libc/include/sys/reent.h (_read, _write): Likewise.
15249 * libc/include/sys/unistd.h (read, write, _read, _write): Likewise.
15250 * libc/syscalls/sysread.c (read): Likewise.
15251 * libc/syscalls/syswrite.c (write): Likewise.
cfc05d96 15252
6249353a
JJ
152532001-03-05 Jeff Johnston <jjohnstn@redhat.com>
15254
ba3ccd63 15255 * libc/time/mktime.c: Add L suffix to _SEC_IN_xxxx constants.
6249353a 15256
658b5db9
CF
15257Sat Mar 3 00:34:14 2001 Christopher Faylor <cgf@cygnus.com>
15258
15259 * libc/include/sys/stat.h: Use special defines for executable stat bits
15260 when compiling for Cygwin.
15261 * libc/include/sys/unistd.h: Use special define for X_OK when compiling
15262 for Cygwin.
15263
19ca46d5
JJ
152642001-03-02 Jeff Johnston <jjohnstn@redhat.com>
15265
15266 * libc/string/strtok.c: Add #undef of __STRICT_ANSI__ so prototype
15267 of strtok_r is always defined.
15268
b73ed85e
JJ
152692001-03-02 Jeff Johnston <jjohnstn@redhat.com>
15270
15271 * libc/include/machine/ansi.h: New dummy header file.
15272
ee37ede1
JJ
152732001-02-22 Jeff Johnston <jjohnstn@redhat.com>
15274
15275 * libc/include/machine/setjmp-dj.h: With DJ Delorie's permission,
15276 changed the copyright information to allow free modification of the
15277 file with no reference to "copying.dj".
15278 * libc/include/sys/stat-dj.h: Ditto.
15279 * libc/machine/i386/setjmp.S: Ditto.
15280 * libc/sys/h8300hms/sys/file.h: Ditto.
15281 * libc/sys/sysmec/access.c: Ditto.
15282 * libc/sys/sysnecv850/access.c: Ditto.
15283 * libc/stdio/mktemp.c: Fixed typo for the word copyright.
15284 * libc/stdlib/getenv_r.c: Ditto.
15285 * libc/stdlib/putenv_r.c: Ditto.
15286 * libc/stdlib/setenv_r.c: Ditto.
15287 * libc/stdlib/getenv.c: Removed DJ reference since any possible
15288 modifications will now be in the _r version of this file.
15289 * libc/stdlib/putenv.c: Ditto.
15290 * libc/stdlib/setenv.c: Ditto.
15291 * libc/sys/go32/copying.dj: Removed DJ's address which is no longer
15292 valid. Added a reference to DJ's web page that contains his address.
15293 * libc/sys/go32/*.s: Removed references to DJ's old address.
15294 * libc/sys/go32/*.c: Ditto.
15295 * libc/sys/go32/*.h: Ditto.
15296 * libc/sys/go32/*.S: Ditto.
15297 * libc/sys/go32/sys/*.h: Ditto.
15298
3a8fc0e4
JJ
152992001-02-21 Jeff Johnston <jjohnstn@redhat.com>
15300
15301 * libc/stdio/fdopen.c (fdopen): Protect calls to _fcntl() with
15302 HAVE_FCNTL flag check.
15303 * configure.host: Define HAVE_FCNTL for Cygwin, go32, RTEMS, sparc64,
15304 powerpcle, x86 netware, x86 sco, x86 Linux and Vxworks.
15305
b24ee749
CF
15306Thu Feb 15 01:39:51 2001 Christopher Faylor <cgf@cygnus.com>
15307
15308 * libc/include/sys/signal.h: Always include sys/types.h under Cygwin.
15309
ab4745dc
JJ
153102001-02-14 Kazuhiro Fujieda <fujieda@jaist.ac.jp>
15311
ba3ccd63
EB
15312 * libc/include/stdlib.h: Add declarations of rand48 functions and
15313 their reentrant versions.
15314 * libc/include/sys/reent.h: Move macros from rand48.h. Add
15315 struct _rand48 for shared parameters of rand48 functions.
15316 (struct _reent): Add a variable _r48 of struct _rand48.
15317 (_REENT_INIT): Add _r48 initialization.
15318 * libc/stdlib/Makefile.am (lib_a_SOURCES): Add rand48 functions.
15319 (CHEWOUT_FILES): Add rand48.def.
15320 * libc/stdlib/Makefile.am: Add dependencies for rand48 functions.
15321 * libc/stdlib/Makefile.in: Regenerated.
15322 * libc/stdlib/drand48.c (drand48, _drand48_r): Derived from the
15323 NetBSD C library.
15324 * libc/stdlib/erand48.c (erand48, _erand48_r): Ditto.
15325 * libc/stdlib/jrand48.c (jrand48, _jrand48_r): Ditto.
15326 * libc/stdlib/lcong48.c (lcong48, _lcong48_r): Ditto.
15327 * libc/stdlib/lrand48.c (lrand48, _lrand48_r): Ditto.
15328 * libc/stdlib/mrand48.c (mrand48, _mrand48_r): Ditto.
15329 * libc/stdlib/nrand48.c (nrand48, _nrand48_r): Ditto.
15330 * libc/stdlib/seed48.c (seed48, _seed48_r): Ditto.
15331 * libc/stdlib/srand48.c (srand48, _srand48_r): Ditto.
15332 * libc/stdlib/rand48.c (__dorand48): Ditto.
15333 * libc/stdlib/rand48.h: Ditto, and modify declarations of global
15334 parameters into macros referring them in the reentrant structure.
ab4745dc 15335
a34c461f
JJ
153362001-02-12 Jeff Johnston <jjohnstn@redhat.com>
15337
15338 * libc/include/sys/stat.h: Add mknod for Cygwin now that
15339 Cygwin definition has correct prototype.
15340
34f31ff2
JJ
153412001-02-08 Jeff Johnston <jjohnstn@redhat.com>
15342
15343 * libc/include/sys/stat.h: Must revert change for mknod
15344 for CYGWIN until winsup/cygwin/syscalls.cc changes mknod
15345 prototype.
15346
5336d6de
JJ
153472001-02-08 Jeff Johnston <jjohnstn@redhat.com>
15348
15349 * libc/include/stdio.h: Revert putw prototype.
15350
8915d10a
JJ
153512001-02-08 Edward M. Lee <tailbert@yahoo.com>
15352
ba3ccd63
EB
15353 * libc/include/grp.h: add prototype for initgroups.
15354 * libc/include/stdio.h: fix prototype for putw.
15355 * libc/include/sys/signal.h: add prototype for killpg.
15356 * libc/include/sys/stat.h: enable mknod/lstat for CYGWIN.
15357 * libc/include/sys/unistd.h: add prototypes for getpgid, setpgrp,
8915d10a
JJ
15358 vhangup and remove duplicate sysconf prototype.
15359
93ac4487
JJ
153602001-02-07 Jeff Johnston <jjohnstn@redhat.com>
15361
15362 * libc/sys/rtems/sys/types.h: Removed.
15363
31f5feea
JJ
153642001-02-05 Charles Wilson <cwilson@ece.gatech.edu>
15365
ba3ccd63 15366 * libc/include/locale.h: add LC_MESSAGES definition
31f5feea 15367
b5139f59
AO
153682001-02-01 Alexandre Oliva <aoliva@redhat.com>
15369
15370 * libc/sys/sh/sys/syscall.h (SYS_get_argc, SYS_get_argN_len,
15371 SYS_get_argN):
15372 * libc/sys/sh/syscalls.c (__setup_argv_for_main,
15373 __setup_argv_and_call_main): New.
15374
e29d8355
JJ
153752001-01-31 Jeff Johnston <jjohnstn@redhat.com>
15376
15377 * libc/include/stdio.h (FILENAME_MAX): Changed to use __FILENAME_MAX__
15378 if defined.
15379 (FOPEN_MAX): Changed to use __FOPEN_MAX__ if defined.
15380 (L_tmpnam): Changed to use __L_tmpnam__ if defined.
15381 * libc/include/sys/config.h: Changed to set __FILENAME_MAX__
15382 appropriately for Cygwin and RTEMS so not to exceed PATH_MAX.
15383
82ea92f3
CF
15384Mon Jan 29 23:03:06 2001 Christopher Faylor <cgf@cygnus.com>
15385
15386 * libc/stdlib/mallocr.c: Undefine windows preprocessor variables when
15387 compiling under Cygwin.
15388
3aaa66f8
JJ
153892001-01-29 Jeff Johnston <jjohnstn@redhat.com>
15390
15391 * libc/include/math.h (signgam): Change to errno-like solution
15392 using a function to return the address of the real signgam.
15393 * libc/reent/signgam.c: New file containing __signgam().
15394 * libc/reent/Makefile.am: Added signgam.c to list of files.
15395 * libc/reent/Makefile.in: Regenerated.
15396
610b895a
AO
153972001-01-25 Alexandre Oliva <aoliva@redhat.com>
15398
b0913397
AO
15399 * libc/sys/sh/syscalls.c (_times): New.
15400
610b895a
AO
15401 * configure.host (sh*-*-*): Add -DHAVE_GETTIMEOFDAY to newlib_cflags.
15402 * libc/sys/sh/syscalls.c (_gettimeofday): New.
15403
3643210e
JJ
154042001-01-23 Jeff Johnston <jjohnstn@redhat.com>
15405
15406 * libc/include/math.h (signgam): Regress previous fix as
15407 it does not handle programs with extern int signgam in them.
15408
841081c9
JJ
154092001-01-23 Jeff Johnston <jjohnstn@redhat.com>
15410
15411 * libc/include/math.h (signgam): Changed to a macro refering to
15412 its location in the reentrant structure.
15413
e9cd87b8
JJ
154142001-01-23 Jeff Johnston <jjohnstn@redhat.com>
15415
15416 * libc/stdio/vfprintf.c (_VFPRINTF_R): Modification to fix
15417 that suppressed . for %.0f, 0.1. Check now looks if there
15418 are padding zeroes (expt) in addition to any digits (ndig) to
15419 print.
15420
a302b48c
JJ
154212001-01-18 Jeff Johnston <jjohnstn@redhat.com>
15422
15423 * libc/sys/arc/Makefile.am: New file.
15424 * libc/sys/arc/Makefile.in: Ditto.
15425 * libc/sys/arc/aclocal.m4: Ditto.
15426 * libc/sys/arc/configure: Ditto.
15427 * libc/sys/arc/configure.in: Ditto.
15428 * libc/sys/arc/crt0.S: Ditto.
15429 * libc/sys/arc/isatty.c: Ditto.
15430 * libc/sys/arc/mem-layout.c: Ditto.
15431 * libc/sys/arc/sbrk.c: Ditto.
15432 * libc/sys/arc/syscalls.c: Ditto.
15433 * libc/sys/arc/sys/syscall.h: Ditto.
15434
d0319c3b
CF
15435Wed Jan 17 23:20:56 2001 Christopher Faylor <cgf@cygnus.com>
15436
15437 * libc/include/sys/unistd.h: Use correct declaration for setdtablesize.
15438
e45ab890
CF
15439Fri Jan 12 00:34:31 2001 Christopher Faylor <cgf@cygnus.com>
15440
15441 * libc/include/sys/signal.h: Add some SA_* defines for Cygwin.
15442
1376245a
DD
15443Thu Jan 11 20:42:06 2001 Earnie Boyd <earnie_boyd@yahoo.com>
15444
15445 * libc/include/sys/features.h: __CYGWIN__ preferred over __CYGWIN32__
15446
92b57543
NC
154472001-01-09 Nick Clifton <nickc@redhat.com>
15448
15449 * configure.host (v859): Remove unsupported compiler options.
15450
7d6d33d4
JJ
15451Fri Jan 5 19:57:00 EST 2001 Aaron J. Grier <aaron@frye.com>
15452
15453 * src/newlib/configure.host (*-*-rtems*): add printf long long
15454 support for RTEMS.
15455
602f8b5a 154562000-12-19 Graham Stott <grahams@redhat.com>
6286746a 15457
ba3ccd63 15458 * libc/machine/xscale/memcmp.c (memcmp): Add clobber for "lr".
6286746a 15459
9c2b8183
JJ
15460Wed Dec 14 Jeff Johnston <jjohnstn@redhat.com>
15461
15462 * configure.host: Turn on long double I/O for Cygwin.
15463
804368d3
JJ
15464Wed Dec 14 Jeff Johnston <jjohnstn@redhat.com>
15465
15466 * MAINTAINERS: Removed Ranjith.
15467 * NEWS: Updated for 1.9.0.
15468 * README: Updated.
15469 * acinclude.m4: Updated to release 1.9.0.
15470 * aclocal.m4 configure
15471 doc/aclocal.m4 doc/configure libc/aclocal.m4 libc/configure
15472 libc/machine/aclocal.m4 libc/machine/configure
15473 libc/machine/a29k/aclocal.m4 libc/machine/a29k/configure
15474 libc/machine/arm/aclocal.m4 libc/machine/arm/configure
15475 libc/machine/d10v/aclocal.m4 libc/machine/d10v/configure
15476 libc/machine/d30v/aclocal.m4 libc/machine/d30v/configure
15477 libc/machine/fr30/aclocal.m4 libc/machine/fr30/configure
15478 libc/machine/h8300/aclocal.m4 libc/machine/h8300/configure
15479 libc/machine/h8500/aclocal.m4 libc/machine/h8500/configure
15480 libc/machine/hppa/aclocal.m4 libc/machine/hppa/configure
15481 libc/machine/i386/aclocal.m4 libc/machine/i386/configure
15482 libc/machine/i960/aclocal.m4 libc/machine/i960/configure
15483 libc/machine/m32r/aclocal.m4 libc/machine/m32r/configure
15484 libc/machine/m68k/aclocal.m4 libc/machine/m68k/configure
15485 libc/machine/m88k/aclocal.m4 libc/machine/m88k/configure
15486 libc/machine/mips/aclocal.m4 libc/machine/mips/configure
15487 libc/machine/mn10200/aclocal.m4 libc/machine/mn10200/configure
15488 libc/machine/mn10300/aclocal.m4 libc/machine/mn10300/configure
15489 libc/machine/necv70/aclocal.m4 libc/machine/necv70/configure
15490 libc/machine/powerpc/aclocal.m4 libc/machine/powerpc/configure
15491 libc/machine/sh/aclocal.m4 libc/machine/sh/configure
15492 libc/machine/sparc/aclocal.m4 libc/machine/sparc/configure
15493 libc/machine/tic80/aclocal.m4 libc/machine/tic80/configure
15494 libc/machine/v850/aclocal.m4 libc/machine/v850/configure
15495 libc/machine/w65/aclocal.m4 libc/machine/w65/configure
15496 libc/machine/xscale/aclocal.m4 libc/machine/xscale/configure
15497 libc/machine/z8k/aclocal.m4 libc/machine/z8k/configure
15498 libc/sys/aclocal.m4 libc/sys/configure
15499 libc/sys/a29khif/aclocal.m4 libc/sys/a29khif/configure
15500 libc/sys/arm/aclocal.m4 libc/sys/arm/configure
15501 libc/sys/cygwin/aclocal.m4 libc/sys/cygwin/configure
15502 libc/sys/d10v/aclocal.m4 libc/sys/d10v/configure
15503 libc/sys/decstation/aclocal.m4 libc/sys/decstation/configure
15504 libc/sys/go32/aclocal.m4 libc/sys/go32/configure
15505 libc/sys/h8300hms/aclocal.m4 libc/sys/h8300hms/configure
15506 libc/sys/h8500hms/aclocal.m4 libc/sys/h8500hms/configure
15507 libc/sys/linux/aclocal.m4 libc/sys/linux/configure
15508 libc/sys/m88kbug/aclocal.m4 libc/sys/m88kbug/configure
15509 libc/sys/netware/aclocal.m4 libc/sys/netware/configure
15510 libc/sys/rtems/aclocal.m4 libc/sys/rtems/configure
15511 libc/sys/sh/aclocal.m4 libc/sys/sh/configure
15512 libc/sys/sparc64/aclocal.m4 libc/sys/sparc64/configure
15513 libc/sys/sun4/aclocal.m4 libc/sys/sun4/configure
15514 libc/sys/sysmec/aclocal.m4 libc/sys/sysmec/configure
15515 libc/sys/sysnec810/aclocal.m4 libc/sys/sysnec810/configure
15516 libc/sys/sysnecv850/aclocal.m4 libc/sys/sysnecv850/configure
15517 libc/sys/sysvi386/aclocal.m4 libc/sys/sysvi386/configure
15518 libc/sys/sysvnecv70/aclocal.m4 libc/sys/sysvnecv70/configure
15519 libc/sys/tic80/aclocal.m4 libc/sys/tic80/configure
15520 libc/sys/w65/aclocal.m4 libc/sys/w65/configure
15521 libc/sys/z8ksim/aclocal.m4 libc/sys/z8ksim/configure
15522 libm/aclocal.m4 libm/configure: Regenerated.
15523
0985d43f
CV
15524Wed Dec 13 11:52:00 2000 Corinna Vinschen <vinschen@cygnus.com>
15525
15526 * libc/include/sys/unistd.h: Add declarations for `chroot' and `getwd'
15527 when __CYGWIN__ is defined.
15528
b6182a09
JJ
155292000-12-13 Jeff Johnston <jjohnstn@redhat.com>
15530
15531 * libc/stdlib/ldtoa.c (_ldcheck): New routine
15532 that categorizes a long double as NaN, Infinity, or other.
17c0c97d
EB
15533 * libc/stdio/vfprintf.c [WANT_IO_LONG_DBL](_VFPRINTF_R): Removed
15534 isinfl and isnanl static routines which were i386-specific. Changed
b6182a09
JJ
15535 calls to the two removed routines to a single _ldcheck call.
15536 * libc/stdio/vfieeefp.h (ldieee): Fixed missing semi-colons.
15537
adbbb034
JJ
155382000-12-13 Jeff Johnston <jjohnstn@redhat.com>
15539
15540 * Makefile.am: Fixed install-data-local target to use
15541 $(mkinstalldirs) for the installed header files to ensure
15542 the directories exist before copying.
15543 * Makefile.in: Regenerated.
15544
cbd19336
JJ
155452000-12-12 Jeff Johnston <jjohnstn@redhat.com>
15546
15547 * libc/include/sys/unistd.h: Restored Cygwin _SC
15548 constants and moved new constants appropriately
15549 so Cygwin will build.
15550
8fb37963
JJ
155512000-12-11 Joel Sherrill <joel@OARcorp.com>
15552
ba3ccd63
EB
15553 * Merge RTEMS specific .h files into main libc/include.
15554 * libc/sys/rtems/include/signal.h: Removed.
15555 * libc/sys/rtems/include/time.h: Removed.
15556 * libc/sys/rtems/sys/features.h: Removed.
15557 * libc/sys/rtems/sys/sched.h: Removed.
15558 * libc/sys/rtems/sys/siginfo.h: Removed.
15559 * libc/sys/rtems/sys/signal.h: Removed.
15560 * libc/sys/rtems/sys/time.h: Removed.
15561 * libc/sys/rtems/sys/times.h: Removed.
8fb37963
JJ
15562 definitions for time_t and clock_t since these are
15563 no longer in time.h.
ba3ccd63
EB
15564 * libc/include/pthread.h: New file.
15565 * libc/include/sys/sched.h: New file.
15566 * libc/include/sys/features.h: New file.
15567 * libc/include/time.h: Removed duplicate definition of clock_t
15568 and time_t, get them from <sys/types.h> instead. Add prototypes
15569 for POSIX clock and timer functionality.
8fb37963 15570 * libc/sys/linux/sys/types.h: Changed to include
ba3ccd63
EB
15571 * libc/include/machine/types.h: Add _CLOCKID_T_ and _TIMER_T_.
15572 * libc/include/sys/signal.h: Add more complete set of POSIX
15573 signal functionality including real-time and threaded signals.
15574 * libc/include/sys/types.h: Add clock_t, time_t, struct
17c0c97d 15575 timespec, and struct itimerspec. Centralizing these makes
8fb37963 15576 things cleaner. RTEMS uses 64-bit dev_t.
ba3ccd63
EB
15577 Added numerous primitive definitions
15578 for pthreads including macros, pthread_attr_t,
17c0c97d 15579 pthread_mutexattr_t, pthread_condattr_t, pthread_key_t,
8fb37963 15580 pthread_once_t, and pthread_t.
ba3ccd63
EB
15581 * libc/include/sys/unistd.h: Added getlogin_r() prototype.
15582 If RTEMS follow POSIX on read(), write() and sbrk() prototype.
15583 Feature flags removed and moved to new file <sys/features.h>.
15584 Full set of POSIX sysconf() constants
8fb37963 15585
2efbc2a7
JJ
155862000-12-08 Werner Almesberger <Werner.Almesberger@epfl.ch>
15587
15588 * configure.host: Added x86 linux target.
15589 * libc/unix/getpass.c (_PATH_PASSWD, _PASSWORD_LEN): Default
15590 definitions provided if not already defined.
15591 * libc/sys/linux/crt0.c: New file.
15592 * libc/sys/linux/Makefile.am: Ditto.
15593 * libc/sys/linux/Makefile.in: Ditto.
15594 * libc/sys/linux/aclocal.m4: Ditto.
15595 * libc/sys/linux/brk.c: Ditto.
15596 * libc/sys/linux/configure: Ditto.
15597 * libc/sys/linux/configure.in: Ditto.
15598 * libc/sys/linux/getoptlong.c: Ditto.
15599 * libc/sys/linux/ids.c: Ditto.
15600 * libc/sys/linux/inode.c: Ditto.
15601 * libc/sys/linux/io.c: Ditto.
15602 * libc/sys/linux/linux.c: Ditto.
15603 * libc/sys/linux/process.c: Ditto.
15604 * libc/sys/linux/realpath.c: Ditto.
15605 * libc/sys/linux/select.c: Ditto.
15606 * libc/sys/linux/signal.c: Ditto.
15607 * libc/sys/linux/systat.c: Ditto.
15608 * libc/sys/linux/termios.c: Ditto.
15609 * libc/sys/linux/time.c: Ditto.
15610 * libc/sys/linux/wait.c: Ditto.
15611 * libc/sys/linux/include/alloca.h: Ditto.
15612 * libc/sys/linux/include/getopt.h: Ditto.
15613 * libc/sys/linux/include/stdint.h: Ditto.
15614 * libc/sys/linux/include/unistd.h: Ditto.
15615 * libc/sys/linux/sys/cdefs.h: Ditto.
15616 * libc/sys/linux/sys/dirent.h: Ditto.
15617 * libc/sys/linux/sys/errno.h: Ditto.
15618 * libc/sys/linux/sys/fcntl.h: Ditto.
15619 * libc/sys/linux/sys/file.h: Ditto.
15620 * libc/sys/linux/sys/ioctl.h: Ditto.
15621 * libc/sys/linux/sys/resource.h: Ditto.
15622 * libc/sys/linux/sys/signal.h: Ditto.
15623 * libc/sys/linux/sys/stat.h: Ditto.
15624 * libc/sys/linux/sys/syscall.h: Ditto.
15625 * libc/sys/linux/sys/termios.h: Ditto.
15626 * libc/sys/linux/sys/time.h: Ditto.
15627 * libc/sys/linux/sys/types.h: Ditto.
15628 * libc/sys/linux/sys/utmp.h: Ditto.
15629 * libc/sys/linux/sys/utsname.h: Ditto.
15630 * libc/sys/linux/sys/wait.h: Ditto.
15631
a08c98bb
JJ
156322000-12-08 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
15633
ba3ccd63
EB
15634 * Makefile.am: $(INSTALL), $(INSTALL_DATA), and $(INSTALL_PROGRAM)
15635 can be a relative path to $(top_srcdir)/install.sh so ensure the
15636 autoconf detected settings are properly passed recursively.
15637 Similarly, add AM_MAKEFLAGS to FLAGS_TO_PASS so they also get passed
15638 properly to subdirectories.
a08c98bb
JJ
15639 * Makefile.in: Regenerated.
15640
b294082c
JJ
156412000-12-07 Jay Kulpinski <jskulpin@eng01.gdds.com>
15642
ba3ccd63
EB
15643 * libc/stdio/vfprintf.c: Minor modification to avoid requiring
15644 a floating point register unless really printing a floating
15645 point number.
b294082c 15646
2005ab6b
JJ
156472000-12-07 Jeff Johnston <jjohnstn@redhat.com>
15648
15649 * libc/stdlib/ldtoa.c: Removed include of alloca.h.
15650 Also removed \r's.
15651 (asctoeg): Replaced alloca call with stack array and malloc
15652 when storage exceeds reasonable limit.
15653 (e53toe): Fixed einfin calls missing ldp parameter.
15654 (eiisinf): Hide behind check for LDBL_MANT_DIG == 64.
15655
9f6e8f1b
JJ
156562000-12-06 Jeff Johnston <jjohnstn@redhat.com>
15657
2005ab6b 15658
9f6e8f1b
JJ
15659 * libc/stdio/vfscanf.c: Fix typo for _NO_LONGDBL macro.
15660
6bdac416
JJ
156612000-12-06 Jeff Johnston <jjohnstn@redhat.com>
15662
15663 * libc/stdlib/Makefile.am: Added ldtoa.c to list of sources.
15664 * libc/stdlib/Makefile.in: Regenerated.
15665 * libc/stdio/floatio.h: Added suitable MAXEXP for long double.
15666 * libc/stdio/vfieeefp.h: Added long double bit structures.
15667 * libc/stdio/vfprintf.c[WANT_IO_LONG_DBL]: Added long double support.
15668 [WANT_IO_LONG_DBL](isinfl, isnanl): New static long double routines.
15669 (exponent): Changed expbuf to reasonable maximum instead of MAXEXP.
15670 * libc/stdio/vfscanf.c[WANT_IO_LONG_DBL]: Added long double support.
15671 * libc/stdlib/ldtoa.c: New file containing _ldtoa_r and
15672 _strtold routines used for conversions between character
15673 and long double.
15674
ec270d31
CV
15675Wed Dec 6 12:01:00 2000 Corinna Vinschen <vinschen@cygnus.com>
15676
15677 * libc/include/stdlib.h: Add declarations for `mkstemp' and `mktemp'.
15678
db2d9549
JJ
156792000-12-04 Joel Sherrill <joel@OARcorp.com>
15680
ba3ccd63 15681 * libc/include/machine/time.h: RTEMS systems can configure clock
db2d9549
JJ
15682 tick rate so use sysconf() to ask.
15683
6ba54a15
JJ
156842000-12-04 Joel Sherrill <joel@OARcorp.com>
15685
ba3ccd63 15686 * libc/include/sys/times.h: Add reference to POSIX standard.
6ba54a15 15687
8677b819
JJ
156882000-12-04 Joel Sherrill <joel@OARcorp.com>
15689
ba3ccd63
EB
15690 * libc/include/sys/time.h: Added BSD timer manipulation macros
15691 used by RTEMS code.
8677b819 15692
1b61a706
JJ
156932000-12-04 Joel Sherrill <joel@OARcorp.com>
15694
ba3ccd63
EB
15695 * libc/sys/rtems/crt0.c: Add stubs for functions implicitly
15696 referenced by code generated by gcc 2.8.1.
15697 (a29k): Add stubs for V_SPILL, V_FILL, V_BSD_OS, V_EPI_OS to
1b61a706
JJ
15698 satisfy gcc.
15699
f5e7c124
JJ
157002000-12-04 Joel Sherrill <joel@OARcorp.com>
15701
ba3ccd63 15702 * libc/stdlib/system.c: Avoid compiling do_system() for RTEMS.
f5e7c124 15703
768abc9c
JJ
157042000-12-04 Joel Sherrill <joel@OARcorp.com>
15705
ba3ccd63 15706 * libc/include/ieeefp.h: Added entries for OpenCores CPUs.
768abc9c 15707
9e5dd5ea
JJ
157082000-12-04 Joel Sherrill <joel@OARcorp.com>
15709
ba3ccd63 15710 * configure.host (or16, or32): New entries for OpenCores
9e5dd5ea 15711 OpenRisc CPUs.
ba3ccd63 15712 (*-*-rtems*): Add -DNO_EXEC.
9e5dd5ea 15713
768abc9c 157142000-12-04 Keith Outwater <vac4050@cae597.rsc.raytheon.com>
7713fb6f 15715
ba3ccd63
EB
15716 * libc/include/sys/errno.h: Added comments on many error numbers.
15717 * libc/string/strerror.c: Added some more strings.
7713fb6f 15718
b273323f
JJ
157192000-11-30 Jeff Johnston <jjohnstn@redhat.com>
15720
15721 * libc/sys/sh/syscalls.c (_link): New stub.
15722
0ffc3b94
NC
157232000-11-29 Nick Clifton <nickc@redhat.com>
15724
15725 * configure.host: Add xscale target.
15726 * libc/machine/xscale: New directory.
15727 * libc/machine/xscale/Makefile.am: New file.
15728 * libc/machine/xscale/Makefile.in: New file.
15729 * libc/machine/xscale/aclocal.m4: New file.
15730 * libc/machine/xscale/configure: New file.
15731 * libc/machine/xscale/configure.in: New file.
15732 * libc/machine/xscale/memchr.S: New file.
15733 * libc/machine/xscale/memcmp.S: New file.
15734 * libc/machine/xscale/memcpy.S: New file.
15735 * libc/machine/xscale/memmove.S: New file.
15736 * libc/machine/xscale/memset.S: New file.
15737 * libc/machine/xscale/strchr.S: New file.
15738 * libc/machine/xscale/strcmp.S: New file.
15739 * libc/machine/xscale/strcpy.S: New file.
15740 * libc/machine/xscale/strlen.S: New file.
15741
cbbf0f96
CV
15742Sat Nov 25 11:24:00 2000 Corinna Vinschen <vinschen@cygnus.com>
15743
15744 * libc/include/sys/types.h: Change i to `__i' in FD_ZERO macro to
15745 avoid compiler warnings.
15746
73dea790
MM
157472000-11-22 Michael Meissner <meissner@redhat.com>
15748
15749 * libc/posix/execl.c (execl): Don't reference environ directly,
15750 reference it only via a static pointer to avoid problems with some
15751 shared library systems and with different uses of small data where
15752 the user specifies his own version of environ.
15753 * libc/posix/execv.c (execv): Ditto.
15754 * libc/stdlib/getenv_r.c (_findenv_r): Ditto.
15755 * libc/stdlib/setenv_r.c (_setenv_r,_unsetenv_r): Ditto.
15756 * libc/stdlib/system.c (system, !cygwin32 case): Ditto.
15757
15758 * libc/stdlib/getenv.c (environ): Delete unused reference to
15759 environ.
15760
15761 * libc/stdlib/getenv_r.c: Make initial comment friendlier to emacs
15762 colorization.
15763 * libc/stdlib/system.c: Ditto.
15764
08eac2ae
CF
15765Tue Nov 21 20:32:21 2000 Christopher Faylor <cgf@cygnus.com>
15766
15767 * libc/sys/cygwin/sys/dirent.h: Change definition to avoid necessity of
15768 including windows headers.
15769
5478bf37
JJ
157702000-11-20 Jeff Johnston <jjohnstn@redhat.com>
15771
15772 * libc/include/sys/unistd.h: Removed definition of MAXNAMLEN.
15773 * libc/include/dirent.h: Added definition of MAXNAMLEN if
15774 not defined by sys/dirent.h.
15775 * libc/posix/execvp.c: Added include of dirent.h to get
15776 MAXNAMLEN value which used to be in unistd.h.
15777
3a760728
CV
15778Mon Nov 6 12:56:00 2000 Corinna Vinschen <vinschen@cygnus.com>
15779
15780 * libc/include/sys/types.h: Change type of i to `size_t' in
15781 FD_ZERO macro to avoid compiler warnings.
15782
86fff69f
CF
15783Sun Oct 29 20:06:41 2000 Christopher Faylor <cgf@cygnus.com>
15784
15785 * libc/include/stdlib.h: Avoid declaring cfree under Cygwin.
15786 * libc/include/malloc.h: Ditto. Also remove obsolete declaration.
15787
ba9e88d2
CV
15788Tue Oct 24 20:16:00 2000 Corinna Vinschen <vinschen@cygnus.com>
15789
15790 * libc/include/sys/unistd.h: Add defines for sysconf values
15791 _SC_NPROCESSORS_CONF, _SC_NPROCESSORS_ONLN, _SC_PHYS_PAGES and
15792 _SC_AVPHYS_PAGES.
15793
a8018ef3
CF
15794Mon Oct 9 20:26:33 2000 Christopher Faylor <cgf@cygnus.com>
15795
15796 * libc/include/sys/unistd.h: Add getdtablesize and setdtablesize
15797 declarations for __CYGWIN__.
15798
b944c6f6
GK
157992000-09-19 Geoffrey Keating <geoffk@cygnus.com>
15800
15801 * libc/signal/signal.c (__sigtramp_r): ISO C requires
15802 case labels to be integral constant expressions, so
15803 use an if/else tree instead.
15804 (_raise_r): Likewise.
15805
7f18fcb4
JJ
158062000-09-13 Jeff Johnston <jjohnstn@redhat.com>
15807
15808 * libc/machine/v850/setjmp.S: Fixed tab problems caused by
15809 clipping patch from e-mail reader.
15810
242361df
JJ
158112000-09-13 Will Cohen <wcohen@redhat.com>
15812
15813 * libc/machine/v850/setjmp.S (_setjmp): Save r1 rather than r0.
15814 Added return value 0.
15815 (_longjmp): Allow longjmp to return value of second argument
15816 passed to it.
15817
8a8c59b9
JJ
158182000-09-06 Jeff Johnston <jjohnstn@redhat.com>
15819
ba3ccd63
EB
15820 * libc/include/sys/types.h (FD_ZERO): Remove call to bzero and
15821 inline code to prevent having to include another header file.
8a8c59b9 15822
a385ae75
CF
15823Wed Sep 6 15:06:40 2000 Christopher Faylor <cgf@cygnus.com>
15824
15825 * Makefile.am: Fix space vs. tab problem in install-data-local.
15826 * Makefile.in: Regenerate.
15827
15828Wed Sep 6 13:49:51 2000 Christopher Faylor <cgf@cygnus.com>
15829
15830 * libc/include/_ansi.h (_EXFUN): Define specially for __CYGWIN__.
15831 (_EXPARM): New macro for defining a function parameter.
15832 * libc/include/stdlib.h: Use _EXPARM.
15833 * libc/stdlib/mallocr.c: Don't build cfree for Cygwin.
15834
a36cd013
JJ
158352000-09-05 Manfred Hollstein <manfredh@redhat.com>
15836
ba3ccd63
EB
15837 * Makefile.am (install-data-local): Use optional $(DESTDIR) where
15838 required, as documented in the gnu coding standards.
15839 * Makefile.in: Regenerate.
a36cd013 15840
f825dfda
JJ
158412000-09-05 Jeff Johnston <jjohnstn@redhat.com>
15842
15843 * libc/include/fcntl.h (_FNDELAY): Changed to be _FNONBLOCK to
15844 make O_NDELAY and O_NONBLOCK have the same value.
15845
4ba9aab7
JJ
158462000-08-30 Kazu Hirata <kazu@hxi.com>
15847
ba3ccd63 15848 * libc/sys/h8300hms/crt0.S: Optimize for both speed and code size.
4ba9aab7 15849
db7acc38
JJ
158502000-08-30 Werner Almesberger <Werner.Almesberger@epfl.ch>
15851
ba3ccd63
EB
15852 * libc/posix/execve.c: included unistd.h for "_execve" prototype.
15853 * libc/misc/unctrl.c libc/sys/sysvi386/crt0.c (sccsid): changed
15854 "#ifndef lint" to "#if defined(LIBC_SCCS) && !defined(lint)" like
15855 everywhere else.
db7acc38 15856
44e36af4
GK
158572000-08-30 Geoffrey Keating <geoffk@cygnus.com>
15858
15859 * libc/string/swab.c: Specify that it's defined in <unistd.h>.
15860 * libc/include/string.h: Don't include <sys/types.h>,
15861 as it causes really bad namespace pollution. Don't declare
15862 swab(), it is properly declared in unistd.h.
15863
00a2f168
JJ
158642000-08-29 Werner Almesberger <Werner.Almesberger@epfl.ch>
15865
ba3ccd63
EB
15866 * libc/unix/getpwent.c (getpwnam, getpwuid, getpwent): removed
15867 (broken) support for non-existent /etc/passwd field "comment".
00a2f168 15868
6beeb240
JJ
158692000-08-27 Werner Almesberger <Werner.Almesberger@epfl.ch>
15870
ba3ccd63
EB
15871 * libc/posix/scandir.c (DIRSIZ, scandir): use struct dirent.d_namlen
15872 only if _DIRENT_HAVE_D_NAMLEN is defined.
15873 (alphasort): aligned prototype with
15874 libc/sys/cygwin/sys/dirent.h and simplified function body.
15875 * libc/posix/telldir.c (telldir): changed "telldir" prototype to
15876 long telldir (DIR *) as mentioned in annex B of POSIX.1
6beeb240 15877
ef44da42
JJ
158782000-08-27 Werner Almesberger <Werner.Almesberger@epfl.ch>
15879
ba3ccd63
EB
15880 * libc/machine/i386/i386mach.h: added SOTYPE_FUNCTION to set type
15881 of global entry points if _I386MACH_NEED_SOTYPE_FUNCTION is defined;
15882 Added __CLI and __STI macros (controlled via
15883 _I386MACH_ALLOW_HW_INTERRUPTS macro).
15884 * libc/machine/i386/f_atan2.S libc/machine/i386/f_atan2f.S
15885 libc/machine/i386/f_frexp.S libc/machine/i386/f_frexpf.S
15886 libc/machine/i386/f_ldexp.S libc/machine/i386/f_ldexpf.S
15887 libc/machine/i386/f_log.S libc/machine/i386/f_log10.S
15888 libc/machine/i386/f_log10f.S libc/machine/i386/f_logf.S
15889 libc/machine/i386/f_tan.S libc/machine/i386/f_tanf.S
15890 libc/machine/i386/memchr.S libc/machine/i386/memcmp.S
15891 libc/machine/i386/memcpy.S libc/machine/i386/memmove.S
15892 libc/machine/i386/memset.S libc/machine/i386/setjmp.S
15893 libc/machine/i386/strchr.S libc/machine/i386/strlen.S:
15894 (that's libc/machine/i386/*.S) added SOTYPE_FUNCTION(symbol)
15895 for all global entry points.
15896 * libc/machine/i386/setjmp.S: removed code replicated in
15897 libc/machine/i386/i386mach.h and included i386mach.h instead;
15898 Use __CLI and __STI instead of cli and sti.
ef44da42 15899
14d3488d
DD
159002000-08-25 DJ Delorie <dj@redhat.com>
15901
15902 * libc/include/sys/unistd.h (environ): this one isn't from the
15903 DLL, no __IMPORT
15904
c9ca4412
CF
15905Fri Aug 25 13:37:11 2000 Christopher Faylor <cgf@cygnus.com>
15906
15907 * libc/stdlib/system.c (do_system): Eliminate explicit declaration of
15908 environ when compiling under cygwin since it is already declared in
15909 unistd.h.
15910
2d5862de
JJ
159112000-08-23 Werner Almesberger <Werner.Almesberger@epfl.ch>
15912
15913 * libc/stdlib/mprec.c (ulp, b2d, d2b): changed a few expressions
15914 like x << y-z to the equivalent x << (y-z).
15915 (d2b): changed if statements with assignment to perform the
15916 assignment prior to the if check.
15917 * libc/reent/reent.c: included stdlib.h for "_free_r" prototype.
15918 * libc/unix/getpass.c (getpass): moved "echo" assignment out of if.
15919 * libc/unix/ttyname.c: included string.h for "strcpy" prototype.
15920 * libc/unix/getcwd.c (ISDOT): added parentheses to clarify && and ||
15921 precedence.
15922 * libc/include/sys/unistd.h: added "vfork" prototype (for popen.c).
17c0c97d 15923 Added "_execve" prototype (for execl.c, execle.c, execv.c, and
2d5862de
JJ
15924 execve.c).
15925 * libc/posix/popen.c (popen): added parentheses to clarify && and ||
15926 precedence.
15927 * libm/math/e_cosh.c (__ieee754_cosh): changed parentheses to
15928 clarify && and || precendence (and to remove pascalism).
15929 * libm/math/e_sinh.c (__ieee754_sinh): Ditto.
15930 * libm/math/s_infconst.c: added another pair of braces to all
15931 initializers for __infinity (need three: for __infinity[1] array,
15932 for union __dmath, and for i[2]).
15933
0888fedd
JJ
159342000-08-23 Werner Almesberger <Werner.Almesberger@epfl.ch>
15935
199359f0
JJ
15936 * libc/stdlib/abort.c: changed description: uses "raise" instead of
15937 "getpid" and "kill"; added: uses "write" and "_exit".
15938 Also included unistd.h for "_exit" prototype.
15939 * libc/stdlib/system.c: included unistd.h for "execve" prototype,
15940 reent.h for "_fork_r" and "_wait_r" prototypes.
17c0c97d 15941 (do_system): changed extern char *environ[] to POSIX-friendly
199359f0
JJ
15942 extern char **environ.
15943 * libc/stdlib/wctomb_r.c: included string.h for "strlen" and "strcmp"
15944 prototypes.
15945 * libc/stdlib/remove.c: included reent.h for "_unlink_r" prototype.
15946 * libc/reent/execr.c: included sys/wait.h for "wait" prototype.
15947 * libc/reent/fstatr.c: included sys/stat.h for "fstat" prototype.
15948 * libc/reent/openr.c: included fcntl.h for "open" prototype.
15949 * libc/reent/signalr.c: included signal.h for "kill" prototype,
15950 unistd.h for "getpid" prototype.
15951 * libc/reent/statr.c: included sys/stat.h for "stat" prototype.
15952 * libc/reent/timer.c: included sys/time.h for "gettimeofday" prototype.
15953 * libc/unix/getut.c (utmpname): removed local, incorrect "strdup"
15954 prototype. Also included stdlib.h for "abort", string.h for
15955 "strdup" and "strncmp" prototypes.
15956 * libc/unix/getlogin.c: included string.h for "strncmp", "memset", and
15957 "strncpy", unistd.h for "read" and "close" prototypes.
15958 * libc/posix/execvp.c: included string.h for "strchr", "strlen", and
15959 "strcat" prototypes.
15960
159612000-08-23 Werner Almesberger <Wernen Almesberger@epfl.ch>
15962
0888fedd
JJ
15963 * libc/stdio/stdio.c (__swrite): declare "oldmode" only if it's
15964 used later (ifdef __SCLE)
15965 * libc/stdio/vfscanf.c (__svfscanf): declare "state" only if it's
15966 used later (ifdef MB_CAPABLE)
15967 * libc/string/memset.c (memset): removed unused variables "count"
15968 and "unaligned_addr"
15969 * libc/locale/locale.c (_setlocale_r): declare "lc_ctype" and
15970 "last_lc_ctype" only of they're used later (ifdef MB_CAPABLE)
15971 * libc/unix/getpwent.c (getpwnam): removed unused variables "uid"
15972 and "gid"
15973
a334e5ef
JJ
159742000-08-23 Werner Almesberger <Werner.Almesberger@epfl.ch>
15975
ba3ccd63
EB
15976 * libc/stdlib/envlock.c: changed documented "__env_lock" and
15977 "__env_unlock" prototype from "void *" or "char *" to
15978 "struct _reent *" to match real function. Also added include
a334e5ef 15979 of envlock.h.
ba3ccd63
EB
15980 * libc/stdlib/mlock.c: changed documented "__malloc_lock" and
15981 "__malloc_unlock" prototype from "void *" or "char *" to
15982 "struct _reent *" to match real function.
15983 * libc/stdlib/envlock.h: added "__env_lock" and "__env_unlock"
15984 prototypes (for getenv_r.c and setenv_r.c).
a334e5ef 15985
644b7f26
DD
159862000-08-22 Werner Almesberger <Werner.Almesberger@epfl.ch>
15987
15988 * libc/unix/getut.c (utmpname): added _CONST to reflect common use
15989 and prototype in cygwin's utmp.h
15990
5bacbf10
JJ
159912000-08-16 Eric Fifer <efifer@sanwaint.com>
15992
ba3ccd63 15993 * libc/stdio/vfprintf.c (_vfprintf_r): suppress . with "%.0f", 0.1
5bacbf10 15994
38a6bf98
NC
159952000-08-09 Nick Clifton <nickc@cygnus.com>
15996
15997 * libc/sys/arm/setjmp.S: Recode to clean up function prologues and
15998 epilogue and to allow the functions to be used in a Thumb based
15999 toolchain.
16000
befe0fb3
JJ
160012000-08-08 Jeff Johnston <jjohnstn@redhat.com>
16002
16003 * libc/stdio/snprintf.c (snprintf, _snprintf_r): Fixed code
16004 so size of 0 results in nothing being written to string.
16005 Also fixed code so that when size is non-zero, there is only
16006 a maximum of size - 1 characters written to the array and
16007 a nul terminator is appended at the end.
16008 * libc/stdio/vsnprintf.c (vsnprintf, _vsnprintf_r): Ditto.
16009
749d9bcd
DD
160102000-08-01 DJ Delorie <dj@redhat.com>
16011
16012 * libc/include/sys/config.h: define __IMPORT appropriately
16013 * libc/include/ctype.h (_ctype_): use __IMPORT
16014 * libc/include/math.h (__infinity, signam, _LIB_VERSION): ditto
16015 * libc/include/math.h (__mb_cur_max): ditto
16016 * libc/include/time.h (_timezone, _daylight, _tzname): ditto
16017 * libc/include/unctrl.h (__unctrl, __unctrllen): ditto
16018 * libc/include/errno.h (_sys_errlist, _sys_nerr): ditto
16019 * libc/include/unistd.h (environ): ditto
16020
7c110b17
MM
160212000-07-28 Michael Meissner <meissner@redhat.com>
16022
16023 * libc/include/math.h (__infinity): Declare as an array without
16024 bounds to get around small data support. Rewrite Cygwin support
16025 to be more general.
16026 * libm/math/s_infconst.c (__infinity): Ditto.
16027 * libm/mathfp/s_infconst.c (__infinity): Ditto.
16028
bf7be721
CF
16029Thu Jul 27 10:46:01 2000 Christopher Faylor <cgf@cygnus.com>
16030
16031 * libc/include/math.h: Use appropriate dll import linkage for
16032 __infinity under Cygwin.
16033
91a8d90b
DD
160342000-07-13 DJ Delorie <dj@cygnus.com>
16035
16036 * libc/stdio/vfprintf.c: pad 0.0 correctly with %e
16037
ba2048d3
JJ
16038Wed Jun 28 14:08:00 2000 Keith Walker <keith.walker@arm.com>
16039
16040 * libc/sys/arm/crt0.S (.LC30): Added missing length parameter
16041 to argument list for AngelSWI_Reason_GetCmdLine.
16042
4634da64
JJ
16043Tue Jun 27 15:49:00 2000 Marek Michalkiewicz <marekm@linux.org.pl>
16044
16045 * configure.host: Add support for AVR target.
16046 * libc/include/machine/ieeefp.h: Likewise.
16047 * libc/include/sys/config.h: Likewise.
16048
b19f72a2
RK
16049Thu Jun 22 18:35:00 2000 Ranjith Kumaran <ranjith@cygnus.com>
16050
16051 * README: Newlib 1.8.2 must be built in a separate directory
16052 than the sources.
16053
a704d94a
JJ
16054Tue Jun 20 14:30:00 2000 Jeff Johnston <jjohnstn@cygnus.com>
16055
ba3ccd63
EB
16056 * libc/include/sys/reent.h (_rand_next): Added __extension__
16057 qualifier as long long type is not strict ANSI.
16058 * libc/stdlib/rand.c (rand): Added __extension__ qualifier
16059 to long long constant.
a704d94a 16060
b585720b
CV
16061Fri Jun 16 23:02:00 2000 Corinna Vinschen <corinna@vinschen.de>
16062
ba3ccd63
EB
16063 * libc/include/sys/unistd.h: Add prototypes for `seteuid' and
16064 `setegid' provided by Cygwin.
b585720b 16065
01c327ba
CV
16066Thu Jun 15 0:21:00 2000 Corinna Vinschen <corinna@vinschen.de>
16067
ba3ccd63
EB
16068 * libc/stdio/fdopen.c: Take explicit given bin/textmode into
16069 account for Cygwin.
01c327ba 16070
46a43a99
JJ
16071Fri Jun 9 14:28:00 2000 Jeff Johnston <jjohnstn@cygnus.com>
16072
ba3ccd63
EB
16073 * libc/include/sys/reent.h (_rand_next): Changed to
16074 unsigned long long and moved to end of _reent struct in _new union.
16075 (_REENT_INIT): Changed to move _rand_next initialization.
16076 * libc/stdlib/rand.c (rand): Changed to use unsigned long long
16077 linear congruential algorithm that is used by DJGPP.
46a43a99 16078
a68078cb
RK
16079Thu Jun 8 21:18:00 2000 Ranjith Kumaran <ranjith@cygnus.com>
16080
16081 * libc/include/stdlib.h: Set RAND_MAX to __RAND_MAX.
16082 * libc/include/sys/config.h: Define __RAND_MAX.
16083
518882f3
JJ
16084Thu Jun 8 17:54:00 2000 Jeff Johnston <jjohnstn@cygnus.com>
16085
ba3ccd63
EB
16086 * libc/stdlib/rand_r.c: New algorithm that meets minimal
16087 standard.
518882f3 16088
d51d968a
CF
16089Fri Jun 2 23:02:11 2000 Christopher Faylor <cgf@cygnus.com>
16090
16091 * libc/include/string.h: Work around problem with strsignal and gdb.
16092
d2dd5765
CF
16093Tue May 30 13:13:01 2000 Christopher Faylor <cgf@cygnus.com>
16094
16095 * libc/include/ctype.h: __CYGWIN32__ -> __CYGWIN__
16096 * libc/include/malloc.h: Ditto.
16097 * libc/include/process.h: Ditto.
16098 * libc/include/stdio.h: Ditto.
16099 * libc/include/stdlib.h: Ditto.
16100 * libc/include/time.h: Ditto.
16101 * libc/include/machine/setjmp.h: Ditto.
16102 * libc/include/sys/errno.h: Ditto.
16103 * libc/include/sys/signal.h: Ditto.
16104 * libc/include/sys/stat.h: Ditto.
16105 * libc/include/sys/time.h: Ditto.
16106 * libc/include/sys/unistd.h: Ditto.
16107 * libc/include/string.h: Ditto. strsignal should return a const char *.
16108
88870218
JJ
161092000-05-26 Marek Michalkiewicz <marekm@linux.org.pl>
16110
16111 * libm/common/s_expm1.c (expm1): Add curly braces, avoid warnings.
16112 * libm/common/s_log1p.c (log1p): Likewise.
16113 * libm/common/s_scalbn.c (scalbn): Likewise.
16114 * libm/math/e_log.c: Likewise.
16115 * libm/math/e_asin.c: Likewise.
16116 * libm/math/ef_asin.c: Likewise.
16117 * libm/math/e_j0.c (pzero, qzero): Remove redundant test.
16118 * libm/math/e_j1.c (pone, qone): Likewise.
16119 * libm/math/ef_j0.c (pzerof, qzerof): Likewise.
16120 * libm/math/ef_j1.c (ponef, qonef): Likewise.
16121 * libm/mathfp/e_j0.c (pzero, qzero): Likewise.
16122 * libm/mathfp/e_j1.c (pone, qone): Likewise.
16123 * libm/mathfp/ef_j0.c (pzerof, qzerof): Likewise.
16124 * libm/mathfp/ef_j1.c (ponef, qonef): Likewise.
16125
c4e1aa01
DD
161262000-05-19 DJ Delorie <dj@cygnus.com>
16127
16128 * libc/stdio/stdio.c (__stextmode): new, see if file is text mode
16129 (__sread): always read in binary mode
16130 (__swrite): always write in binary mode
16131 * libc/include/stdio.h: no getc/putc macros for cygwin; causes
16132 compatibility issues with different dll versions
16133 * libc/stdio/fopen.c: use __stextmode
16134 * libc/stdio/fdopen.c: ditto
16135 * libc/stdio/freopen.c: ditto
16136 * libc/stdio/findfp.c: set up __SCLE for std{in,out,err}
16137 * libc/stdio/local.h: declare __stextmode
17c0c97d 16138
f4393261
DD
161392000-05-18 DJ Delorie <dj@cygnus.com>
16140
16141 * libc/stdio/fgets.c (fgets): perform CRLF conversions if __SCLE
17c0c97d 16142
2b533fac
JJ
16143Mon May 15 18:54:00 2000 Jeff Johnston <jjohnstn@cygnus.com>
16144
16145 * libc/include/ctype.h: Changed tolower and toupper macros
16146 to use __extension__ to prevent pedantic warnings.
16147
75362a76
RK
16148Mon May 15 14:26:00 2000 Joel Sherrill <joel@oarcorp.com>
16149
16150 * libc/sys/rtems/sys/time.h: Add macros for manipulating timeval
16151 structures.
16152
ec463fc7
JW
16153Wed May 10 19:24:53 2000 Jim Wilson <wilson@cygnus.com>
16154
16155 * libc/include/machine/ieeefp.h: Add ia64 support.
16156 * configure.host: Likewise.
16157
f35ceefa
JJ
16158Wed May 10 13:52:24 2000 Egor Duda <deo@logos-m.ru>
16159
ba3ccd63
EB
16160 * libc/time/asctime_r.c (asctime_r): Change output format. Day of
16161 month is now padded with space, not zero. This now conforms to
f35ceefa
JJ
16162 ANSI standard.
16163
b96fca8c
CV
16164Wed May 03 17:57:00 2000 Corinna Vinschen <corinna@vinschen.de>
16165
ba3ccd63
EB
16166 * libc/include/sys/errno.h: Add define for ENOSHARE ("No such
16167 host or network path") used by cygwin. Add some comments.
b96fca8c 16168
49d64538
JJ
16169Tue May 02 23:45:48 2000 DJ Delorie <dj@cygnus.com>
16170
16171 * libc/include/stdio.h (FILE): define __SCLE for "convert line
16172 endings" for Cygwin.
16173 (__sgetc): convert line endings if needed
16174 (__sputc): ditto
16175 * libc/stdio/fdopen.c (_fdopen_r): Remember if we opened in text mode
16176 * libc/stdio/fopen.c (_fopen_r): ditto
16177 * libc/stdio/freopen.c (freopen): ditto
16178 * libc/stdio/fread.c (fread): perform CRLF conversions if __SCLE
16179 * libc/stdio/fvwrite.c (__sfvwrite): ditto
16180
91fb1e7f
AO
16181Thu Apr 27 07:45:48 2000 Alexandre Oliva <aoliva@cygnus.com>
16182
16183 * libc/machine/mn10300/setjmp.S (setjmp, longjmp): Use
16184 post-increment when it is worth it, spacewise.
16185
c87be3e4
JJ
16186Mon Apr 17 12:46:00 2000 Marek Michalkiewicz <marekm@linux.org.pl>
16187
16188 * libc/signal/signal.c (_signal_r) : Removed unused local variable temp.
16189 * libc/stdio/findfp.c (std): Added declaration of flags and file.
17c0c97d 16190 * libc/stdio/mktemp.c (_gettemp, _mkstemp_r, mkstemp): Added int
c87be3e4
JJ
16191 return type.
16192 * libc/stdio/putchar.c (putchar): Added return statement.
16193 * libc/stdio/refill.c (lflush): Added correct parentheses.
16194 * libc/stdio/vfprintf.c (_VFPRINTF_R): Ditto.
17c0c97d 16195 * libc/stdio/vfscanf.c (__svfscanf): Changed sprintf call which
c87be3e4
JJ
16196 prints long value to use l qualifier.
16197 * libc/stdlib/dtoa.c (_dtoa_r): Added parentheses to remove warning
16198 messages and initialized local values: ilim, ilim1, and spec_case.
16199 * libc/stdlib/ecvtbuf.c (print_e): Removed unused variable dp.
16200 * libc/stdlib/mbctype.h (_issjis1, _issjis2): Added parentheses.
16201 * libc/stdlib/mprec.c: Ditto.
16202 * libc/stdlib/setenv_r.c: Ditto.
16203 * libc/stdlib/strtod.c: Ditto.
16204 * libc/stdlib/strtol.c: Ditto.
16205 * libc/stdlib/strtoul.c: Ditto.
16206 * libm/common/sf_expm1.c: Added curly braces to if else clauses.
16207 * libm/common/sf_log1p.c: Ditto.
16208 * libm/common/sf_scalbn.c: Ditto.
16209 * libm/math/ef_log.c: Ditto.
16210
11f5b065
CV
16211Sun Apr 16 12:45:00 2000 Corinna Vinschen <corinna@vinschen.de>
16212
ba3ccd63
EB
16213 * libc/posix/execvp.c (execvp): Check path for
16214 trailing slash.
11f5b065 16215
796e3b20
CV
16216Fri Mar 31 20:39:00 2000 Corinna Vinschen <corinna@vinschen.de>
16217
ba3ccd63
EB
16218 * libc/include/sys/unistd.h: Add prototypes for
16219 fchmod, fchown, lchown.
796e3b20 16220
b489803a
JJ
16221Fri Mar 24 15:34:00 2000 Jeff Johnston <jjohnstn@cygnus.com>
16222
16223 * acinclude.m4: Changed release to 1.8.2.
16224 * aclocal.m4 configure doc/aclocal.m4 doc/configure
16225 libc/aclocal.m4 libc/configure libc/machine/aclocal.m4
16226 libc/machine/configure libc/machine/a29k/aclocal.m4
16227 libc/machine/a29k/configure libc/machine/arm/aclocal.m4
16228 libc/machine/arm/configure libc/machine/d10v/aclocal.m4
16229 libc/machine/d10v/configure libc/machine/d30v/aclocal.m4
16230 libc/machine/d30v/configure libc/machine/fr30/aclocal.m4
16231 libc/machine/fr30/configure libc/machine/h8300/aclocal.m4
16232 libc/machine/h8300/configure libc/machine/h8500/aclocal.m4
16233 libc/machine/h8500/configure libc/machine/hppa/aclocal.m4
16234 libc/machine/hppa/configure libc/machine/i386/aclocal.m4
16235 libc/machine/i386/configure libc/machine/i960/aclocal.m4
16236 libc/machine/i960/configure libc/machine/m32r/aclocal.m4
16237 libc/machine/m32r/configure libc/machine/m68k/aclocal.m4
16238 libc/machine/m68k/configure libc/machine/m88k/aclocal.m4
16239 libc/machine/m88k/configure libc/machine/mips/aclocal.m4
16240 libc/machine/mips/configure libc/machine/mn10200/aclocal.m4
16241 libc/machine/mn10200/configure libc/machine/mn10300/aclocal.m4
16242 libc/machine/mn10300/configure libc/machine/necv70/aclocal.m4
16243 libc/machine/necv70/configure libc/machine/powerpc/aclocal.m4
16244 libc/machine/powerpc/configure libc/machine/sh/aclocal.m4
16245 libc/machine/sh/configure libc/machine/sparc/aclocal.m4
16246 libc/machine/sparc/configure libc/machine/tic80/aclocal.m4
16247 libc/machine/tic80/configure libc/machine/v850/aclocal.m4
16248 libc/machine/v850/configure libc/machine/w65/aclocal.m4
16249 libc/machine/w65/configure libc/machine/z8k/aclocal.m4
16250 libc/machine/z8k/configure libc/sys/aclocal.m4
16251 libc/sys/aclocal.m4 libc/sys/configure
16252 libc/sys/a29khif/aclocal.m4 libc/sys/a29khif/configure
16253 libc/sys/arm/aclocal.m4 libc/sys/arm/configure
16254 libc/sys/cygwin/aclocal.m4 libc/sys/cygwin/configure
16255 libc/sys/d10v/aclocal.m4 libc/sys/d10v/configure
16256 libc/sys/decstation/aclocal.m4 libc/sys/decstation/configure
16257 libc/sys/go32/aclocal.m4 libc/sys/go32/configure
16258 libc/sys/h8300hms/aclocal.m4 libc/sys/h8300hms/configure
16259 libc/sys/h8500hms/aclocal.m4 libc/sys/h8500hms/configure
16260 libc/sys/m88kbug/aclocal.m4 libc/sys/m88kbug/configure
16261 libc/sys/netware/aclocal.m4 libc/sys/netware/configure
16262 libc/sys/rtems/aclocal.m4 libc/sys/rtems/configure
16263 libc/sys/sh/aclocal.m4 libc/sys/sh/configure
16264 libc/sys/sparc64/aclocal.m4 libc/sys/sparc64/configure
16265 libc/sys/sun4/aclocal.m4 libc/sys/sun4/configure
16266 libc/sys/sysmec/aclocal.m4 libc/sys/sysmec/configure
16267 libc/sys/sysnec810/aclocal.m4 libc/sys/sysnec810/configure
16268 libc/sys/sysnecv850/aclocal.m4 libc/sys/sysnecv850/configure
16269 libc/sys/sysvi386/aclocal.m4 libc/sys/sysvi386/configure
16270 libc/sys/sysvnecv70/aclocal.m4 libc/sys/sysvnecv70/configure
16271 libc/sys/tic80/aclocal.m4 libc/sys/tic80/configure
16272 libc/sys/w65/aclocal.m4 libc/sys/w65/configure
16273 libc/sys/z8ksim/aclocal.m4 libc/sys/z8ksim/configure
16274 libm/aclocal.m4 libm/configure: Regenerated.
16275
79908d67
NC
162762000-03-24 Nick Clifton <nickc@cygnus.com>
16277
16278 * libc/sys/arm/syscalls.c: Fix compile time warnings.
16279 (do_AngelSWI): Add "cc" to list o registers clobbered.
16280
7684ddaf
FN
16281Thu Mar 22 14:57:00 2000 Fernando Nasser <fnasser@redhat.com>
16282
16283 * libc/sys/arm/syscalls.c (do_AngelSWI): Prevent registers with valid
17c0c97d 16284 information to be clobbered by an Angel C library support syscall.
7684ddaf 16285
b8ec20c8
JJ
16286Tue Mar 21 19:08:00 2000 Jeff Johnston <jjohnstn@cygnus.com>
16287
16288 * libc/stdlib/envlock.c: Fixed comment typo.
16289
fae4c299
JJ
16290Fri Mar 17 15:37:00 2000 Jeff Johnston <jjohnstn@cygnus.com>
16291
16292 * libc/stdio/vfscanf.c (__svfscanf): Fixed floating point
16293 code to update nread as each character is processed instead
16294 of using buffer contents which throw away leading zeroes.
16295
dc98804b
RK
16296Mon Mar 13 15:22:00 2000 Sergei Organov <osv@javad.ru>
16297
ba3ccd63 16298 * libm/mathfp/sf_sqrt.c: Change _DOUBLE_IS_32BITS sqrt call to sqrtf.
dc98804b 16299
5ed2f523
JJ
16300Fri Mar 10 16:09:20 2000 Jeff Johnston <jjohnstn@cygnus.com>
16301
16302 * libc/include/string.h: Include <sys/types.h>.
16303
1cf0ee34
AO
16304Fri Mar 10 14:53:50 2000 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
16305
16306 * libc/stdio/putw.c (putw): Return 0 on success, to be compliant
16307 with XSH5, not SVID.
16308
e9c94978
JJ
16309Thu Mar 9 17:20:41 2000 Jeff Johnston <jjohnstn@cygnus.com>
16310
ba3ccd63 16311 * libc/include/string.h: Changed last argument back to ssize_t
17c0c97d 16312 to make it compatible with XPG4 definition which is
e9c94978
JJ
16313 defined in <unistd.h>. There is a conflict in the SVID 3
16314 and XPG4 definitions and newlib will settle with XPG4.
ba3ccd63 16315 * libc/string/swab.c: Ditto.
e9c94978 16316
3072163c
JJ
16317Wed Mar 8 17:11:41 2000 Jeff Johnston <jjohnstn@cygnus.com>
16318
ba3ccd63
EB
16319 * libc/include/string.h: Changed last argument to size_t.
16320 * libc/string/swab.c: Changed last argument to size_t.
3072163c 16321
f205ea7a
AO
16322Wed Mar 8 00:46:41 2000 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
16323
16324 * libc/reent/Makefile.am (lib_a_SOURCES): Added unlinkr.c.
16325 (CHEWOUT_FILES): Added unlinkr.def.
16326 * libc/reent/Makefile.in: Rebuilt.
16327 * libc/sys.tex: Include unlinkr.def.
16328 * libc/reent/linkr.c (_unlink_r): Moved to...
16329 * libc/reent/unlinkr.c: ... new file.
16330
85dd2e5b
AO
16331Wed Mar 8 00:43:07 2000 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
16332
16333 * libc/string/Makefile.am (lib_a_SOURCES): Added swab.c.
16334 (CHEWOUT_FILES): Added swab.def.
16335 * libc/string/Makefile.in: Rebuilt.
16336 * libc/string/string.tex: Include swab.def.
16337 * libc/include/string.h (swab): Declare.
16338 * libc/string/swab.c: New file.
16339
c5053058
AO
16340Wed Mar 8 00:38:35 2000 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
16341
16342 * libc/stdio/Makefile.am (lib_a_SOURCES): Added getw.c and putw.c.
16343 (CHEWOUT_FILES): Added getw.def and putw.def.
16344 * libc/stdio/Makefile.in: Rebuilt.
16345 * libc/stdio/stdio.tex: Include getw.def and putw.def.
16346 * libc/stdio/getw.c: New file.
16347 * libc/stdio/putw.c: New file.
16348
dbaf37cf
JJ
16349Fri Feb 25 14:50:50 2000 Jeff Johnston <jjohnstn@cygnus.com>
16350
16351 * libc/stdio/flags.c (__sflags): Added check that mode[1]
16352 is non-null before looking at mode[2].
16353
bc019ef2
RK
16354Thu Feb 24 11:43:00 2000 Ran Cabell <rcabell@norfolk.infi.net>
16355
16356 * libm/mathfp/sf_atan2.c: Fix atan2 typo for _DOUBLE_IS_32_BITS.
16357 * libm/mathfp/sf_atan.c: Ditto.
16358
16359Thu Feb 24 11:39:00 2000 Joel Sherrill <joel@OARcorp.com>
16360
16361 * libc/include/sys/stat.h: Add RTEMS prototype for lstat.
16362
cd641b2d
RK
16363Tue Feb 22 14:37:00 2000 Ran Cabell <rcabell@norfolk.infi.net>
16364
16365 * libm/mathfp/sf_exp.c: Corrected _DOUBLE_IS_32_BITS to be
16366 _DOUBLE_IS_32BITS.
16367
b0ba0ac2
JJ
16368Mon Feb 21 11:43:50 2000 Jeff Johnston <jjohnstn@cygnus.com>
16369
16370 * libc/stdio/vfprintf.c (VFPRINTF): Added CHECK_INIT
16371 call prior to calling _VFPRINTF_R so reentrant data area is set.
16372 (_VFPRINTF_R): Removed now extraneous CHECK_INIT call.
16373
8a0efa53
CF
16374Thu Feb 17 01:42:50 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
16375
16376 * libc/stdio/vfscanf.c (limits.h): #include.
16377 (MAX_LONG_LEN): #define.
16378 (__svfscanf): Handle floating point numbers with arbitrary amounts
16379 of leading zeroes.
16380
163812000-02-15 Nick Clifton <nickc@cygnus.com>
16382
16383 * libc/sys/arm/syscalls.c (_fstat): Initialise all fields to
16384 zero. Set the blocksize to 1024/
16385
16386Thu Jan 20 18:57:00 2000 Fernando Nasser <fnasser@redhat.com>
16387
16388 * setvbuf.c (setvbuf): Set size to BUFSIZ when passed a zero size
16389 with line buffering.
16390
16391Mon Jan 10 18:43:00 2000 Jeff Johnston <jjohnstn@cygnus.com>
16392
17c0c97d 16393 * acinclude.m4: Changed include directory for winsup headers.
8a0efa53
CF
16394 * aclocal.m4 configure libc/aclocal.m4
16395 libc/configure libc/ctype/Makefile.in libc/errno/Makefile.in
16396 libc/locale/Makefile.in libc/machine/aclocal.m4
16397 libc/machine/configure libc/machine/a29k/aclocal.m4
16398 libc/machine/a29k/configure libc/machine/arm/aclocal.m4
16399 libc/machine/arm/configure libc/machine/d10v/aclocal.m4
16400 libc/machine/d10v/configure libc/machine/d30v/aclocal.m4
16401 libc/machine/d30v/configure libc/machine/fr30/aclocal.m4
16402 libc/machine/fr30/configure
16403 libc/machine/h8300/aclocal.m4
16404 libc/machine/h8300/configure libc/machine/h8500/aclocal.m4
16405 libc/machine/h8500/configure libc/machine/hppa/aclocal.m4
16406 libc/machine/hppa/configure libc/machine/i386/aclocal.m4
16407 libc/machine/i386/configure libc/machine/i960/aclocal.m4
16408 libc/machine/i960/configure libc/machine/m32r/aclocal.m4
16409 libc/machine/m32r/configure libc/machine/m68k/aclocal.m4
16410 libc/machine/m68k/configure libc/machine/m88k/aclocal.m4
16411 libc/machine/m88k/configure libc/machine/mips/aclocal.m4
16412 libc/machine/mips/configure libc/machine/mn10200/aclocal.m4
16413 libc/machine/mn10200/configure libc/machine/mn10300/aclocal.m4
16414 libc/machine/mn10300/configure libc/machine/necv70/aclocal.m4
16415 libc/machine/necv70/configure libc/machine/powerpc/aclocal.m4
17c0c97d 16416 libc/machine/powerpc/configure
8a0efa53
CF
16417 libc/machine/sh/aclocal.m4
16418 libc/machine/sh/configure libc/machine/sparc/aclocal.m4
16419 libc/machine/sparc/configure
16420 libc/machine/tic80/aclocal.m4 libc/machine/tic80/configure
16421 libc/machine/v850/aclocal.m4 libc/machine/v850/configure
16422 libc/machine/w65/aclocal.m4 libc/machine/w65/configure
16423 libc/machine/z8k/aclocal.m4 libc/machine/z8k/configure
16424 libc/misc/Makefile.in libc/posix/Makefile.in
17c0c97d 16425 libc/reent/Makefile.in
8a0efa53
CF
16426 libc/signal/Makefile.in
16427 libc/string/Makefile.in libc/sys/aclocal.m4 libc/sys/configure
16428 libc/sys/a29khif/aclocal.m4 libc/sys/a29khif/configure
16429 libc/sys/arm/Makefile.in libc/sys/arm/aclocal.m4
16430 libc/sys/arm/configure libc/sys/cygwin/aclocal.m4
16431 libc/sys/cygwin/configure libc/sys/d10v/Makefile.in
16432 libc/sys/d10v/aclocal.m4 libc/sys/d10v/configure
16433 libc/sys/decstation/aclocal.m4 libc/sys/decstation/configure
16434 libc/sys/go32/aclocal.m4 libc/sys/go32/configure
16435 libc/sys/h8300hms/aclocal.m4 libc/sys/h8300hms/configure
16436 libc/sys/h8500hms/aclocal.m4 libc/sys/h8500hms/configure
16437 libc/sys/m88kbug/aclocal.m4 libc/sys/m88kbug/configure
16438 libc/sys/netware/aclocal.m4 libc/sys/netware/configure
16439 libc/sys/rtems/aclocal.m4 libc/sys/rtems/configure
16440 libc/sys/sh/Makefile.in libc/sys/sh/aclocal.m4
16441 libc/sys/sh/configure libc/sys/sparc64/aclocal.m4
16442 libc/sys/sparc64/configure libc/sys/sun4/aclocal.m4
16443 libc/sys/sun4/configure libc/sys/sysmec/aclocal.m4
16444 libc/sys/sysmec/configure libc/sys/sysnec810/aclocal.m4
16445 libc/sys/sysnec810/configure libc/sys/sysnecv850/aclocal.m4
16446 libc/sys/sysnecv850/configure libc/sys/sysvi386/aclocal.m4
16447 libc/sys/sysvi386/configure libc/sys/sysvnecv70/aclocal.m4
16448 libc/sys/sysvnecv70/configure libc/sys/tic80/aclocal.m4
16449 libc/sys/tic80/configure libc/sys/w65/aclocal.m4
16450 libc/sys/w65/configure libc/sys/z8ksim/aclocal.m4
16451 libc/sys/z8ksim/configure libc/syscalls/Makefile.in
16452 libc/time/Makefile.in libc/unix/Makefile.in libm/aclocal.m4
16453 libm/configure: Regenerated.
16454
16455Mon Jan 10 18:43:46 2000 Jeff Johnston <jjohnstn@cygnus.com>
16456
16457 * libc/stdlib/putenv_r.c (_putenv_r): New file.
16458 * libc/stdlib/strdup_r.c (_strdup_r): New file.
16459 * libc/include/string.h: Added _strdup_r.
17c0c97d 16460 * libc/stdlib/putenv.c: Added call to reentrant version.
8a0efa53
CF
16461 * libc/stdlib/strdup.c: Ditto.
16462 * libc/stdlib/Makefile.am: Added _putenv_r and _unsetenv_r.
16463 * libc/include/stdlib.h: Ditto.
17c0c97d 16464 * libc/stdlib/Makefile.in: Regenerated.
8a0efa53
CF
16465 * libc/string/Makefile.in: Regenerated.
16466 * libc/stdlib/setenv.c: Added reentrant version of unsetenv.
16467 * libc/stdlib/setenv_r.c: Added unsetenv_r and changed memory
16468 management calls to reentrant versions.
16469 * libc/stdlib/wcstombs.c: Added #ifndef _REENT_ONLY wrapper.
16470 * libc/stdlib/wctomb.c: Ditto.
16471 * libc/stdlib/mblen.c: Ditto.
16472 * libc/stdlib/mbstowcs.c: Ditto.
17c0c97d 16473 * libc/stdlib/mbtowc.c: Ditto.
8a0efa53
CF
16474 * libc/stdlib/getenv.c: Ditto.
16475 * libc/reent/reent.tex: Added references to _putenv_r, _setenv_r,
16476 and _strdup_r.
16477
16478Thu Jan 6 15:33:46 2000 Christopher Faylor <cgf@cygnus.com>
16479
16480 patch from Corinna Vinschen <corinna@vinschen.de>
16481 * libc/sys/cygwin/sys/param.h: Define NGROUP_MAX as 16.
16482
bc019ef2 16483Mon Jan 03 14:36:00 2000 Sergei Organov <osv@javad.ru>
8a0efa53
CF
16484
16485 * libm/mathfp/s_atangent.c: Fix exponent calculation.
16486 * libm/mathfp/s_ldexp.c: Ditto.
16487 * libm/mathfp/sf_atangent.c: Ditto.
16488 * libm/mathfp/sf_ldexp.c: Ditto.
16489
16490Tue Dec 14 5:42:00 1999 Ranjith Kumaran <ranjith@cygnus.com>
16491
16492 * libc/machine/i960/setjmp.S: fix typo leaving .link_pix uncommented
16493 * libc/include/locale.h: define NULL to be 0.
16494
16495Tue Dec 7 15:41:45 1999 Jim Wilson <wilson@cygnus.com>
16496
16497 * libc/sys/sh/syscalls.c (stack_ptr): Move definition before first
16498 function.
16499
16500Wed Dec 1 17:39:29 1999 Jeffrey A Law (law@cygnus.com)
16501
16502 * libc/machine/mn10300/setjmp.S: Handle am33.
16503
165041999-11-26 Nick Clifton <nickc@cygnus.com>
16505
16506 * libc/sys/arm/syscalls.c: Add function prototypes.
16507 (stack_ptr): Move declaration before function definitions.
16508
16509Sat Nov 20 17:13:00 1999 Ranjith Kumaran <ranjith@cygnus.com>
16510
16511 * NEWS: Updated version information.
16512 * README: Ditto.
16513
16514Tue Nov 09 12:19:21 1999 Jeff Johnston <jjohnstn@cygnus.com>
16515
16516 * libc/machine/i386/strchr.S: Fixed alignment test.
16517
16518Thu Oct 28 05:30:46 1999 Andrew Cagney <cagney@makita.cygnus.com>
16519
16520 * libc/sys/d10v/crt0.S (_start): Construct a real stack frame.
16521
16522Thu Oct 28 15:29:11 1999 Andrew Cagney <cagney@b1.cygnus.com>
16523
16524 * libc/sys/d10v/crt0.S (_start): Initialize both SPI and SPU
17c0c97d 16525 ensuring that there is space between the two.
8a0efa53
CF
16526
16527Thu Oct 14 13:39:21 1999 Christopher Faylor <cgf@cygnus.com>
16528
16529 * libc/stdio/flags.c: Conditionalize check for 't' for cygwin case
16530 only.
16531
165321999-10-08 Vadim Egorov <egorovv@1c.ru>
16533
16534 * libc/include/stdlib.h: add ptsname, grantpt, unlockpt to cygwin
16535 section
16536
16537Sat Oct 2 02:02:00 MEST 1999 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
16538
16539 * libc/machine/sh/asm.h: Added __SH4_SINGLE__ to DELAYED_BRANCHES
16540 * libc/machine/sh/memcpy.S: Fix line wrapping in SL macro
16541
16542Fri Oct 1 13:17:59 CDT 1999 <joel@OARcorp.com>
16543 * libc/include/grp.h: Added getgrnam_r and getgrgid_r prototypes
16544 per POSIX 1003.1b.
16545 * libc/include/pwd.h: Added getpwnam_r and getpwuid_r prototypes
16546 per POSIX 1003.1b.
16547
165481999-09-13 DJ Delorie <dj@cygnus.com>
16549
16550 * libc/stdio/mktemp.c (_gettemp): on cygwin, check for EACCESS
16551 also.
16552
16553Thu Sep 9 15:31:00 1999 Jeff Johnston <jjohnstn@cygnus.com>
16554
16555 * setvbuf.c (setvbuf): When mallocing a buffer of size BUFSIZ,
16556 also note BUFSIZ as its size.
16557
16558Tue Sep 7 17:15:00 1999 Joel Sherrill <joel@OARcorp.com>
16559
16560 * configure.host: Corrected feature defines for RTEMS.
16561 * libc/include/sys/stat.h: Added protototype for RTEMS mknod.
16562 * libc/include/sys/stat.h: mkfifo() should take const path arg.
16563 * libc/include/sys/unistd.h: pathconf() should take const path arg.
16564 Enabled usleep(), ftruncate(), and truncate() prototypes for RTEMS.
16565 Added defines for _POSIX_JOB_CONTROL, _POSIX_SAVED_IDS, and
16566 _POSIX_VERSION for RTEMS. Added defines for _PC_ASYNC_IO,
16567 _PC_PRIO_IO, and _PC_SYNC_IO.
16568 * libc/machine/m68k/Makefile.am: Added strcpy.c and strlen.c.
16569 * libc/machine/m68k/Makefile.in: Regenerated.
16570 * libc/machine/m68k/strcpy.c: New file.
16571 * libc/machine/m68k/strlen.c: New file.
16572 * libc/stdio/tmpnam.c: Always make the returned name usable.
16573 * libc/sys/rtems/crt0.c: New version that passes all autoconf tests.
16574 * libc/sys/rtems/sys/dirent.h: New file.
16575 * libc/sys/rtems/sys/types.h: Added dev_t.
16576
16577Tue Sep 7 17:15:00 1999 Jay Kulpinski <jskulpin@eng01.gdds.com>
16578
16579 * libc/stdlib/mprec.c: Fixed unitialized variable problem.
16580
16581Fri Sep 3 12:35:20 1999 Jeff Johnston <jjohnstn@cygnus.com>
16582
16583 * libc/stdio/ftell.c (ftell): Backing off Joern's fix and
16584 my patch.
16585
16586Thu Sep 2 22:05:20 1999 Christopher Faylor <cgf@cygnus.com>
16587
16588 patch from Jeff Johnston <jjohnstn@cygnus.com>
16589 * libc/stdio/ftell.c (ftell): Avoid using buffer position when the
16590 buffer is not in a useful state.
16591
165921999-09-01 Nick Clifton <nickc@cygnus.com>
16593
16594 * libc/sys/arm/syscalls.c (_link): Add stub.
16595
16596Fri Aug 27 23:09:09 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
16597
16598 * ftell.c (ftell): Use actual position within buffer for text mode.
16599 * findfp.c (std): Initialize ptr->_bf._size.
16600
16601Wed Aug 18 18:48:02 1999 Christopher Faylor <cgf@cygnus.com>
16602
16603 * libc/include/sys/unistd.h: Add nice() declaration.
16604
166051999-08-09 Nick Clifton <nickc@cygnus.com>
16606
16607 * libc/sys/arm/crt0.S (change_mode): Rename to __change_mode and
16608 declare as a thumb function so that the disassembler will see the
16609 mode change.
16610
16611Thu Aug 5 17:37:00 1999 Ranjith Kumaran <ranjith@cygnus.com>
16612
16613 * libc/reent/reent.tex: Updated list of reentrant functions.
16614
166151999-07-09 Michael Meissner <meissner@cygnus.com>
16616
16617 * libc/include/stdlib.h (_findenv{,_r}): Add prototypes.
17c0c97d 16618
8a0efa53
CF
16619Tue Jul 6 10:46:24 1999 Jeff Johnston <jjohnstn@cygnus.com>
16620
16621 * libc/stdio/sprintf.c: Moved snprintf and _snprintf_r to
16622 separate file.
16623 * libc/stdio/snprintf.c: New file.
16624 * libc/stdio/vsprintf.c: Moved vsnprintf and _vsnprintf_r to
16625 separate file.
16626 * libc/stdio/vsnprintf.c: New file.
16627 * libc/stdio/Makefile.am: Added snprintf.c and vsnprintf.c.
16628 * libc/stdio/Makefile.in: Regenerated.
16629
16630Mon Jul 5 14:43:24 1999 Christopher Faylor <cgf@cygnus.com>
16631
16632 Patch submitted by Egor Duda <deo@logos-m.ru>:
16633 * libc/include/stdio.h: Add declarations for *nprintf.
16634 * libc/stdio/sprintf.c (snprintf): New function.
16635 (_snprintf_r): New function.
16636 * libc/stdio/vsprintf.c (vsnprintf): New function.
16637 (_vnsprintf_r): New function.
16638
16639Wed Jun 30 16:36:27 1999 Jeff Johnston <jjohnstn@cygnus.com>
16640
16641 * libc/Makefile.am (stmp-targetdep): Remove extraneous blank.
16642 * libm/Makefile.am (stmp-targetdep): Ditto.
16643 * libc/Makefile.in: Regenerated.
16644 * libm/Makefile.in: Ditto.
16645
16646Fri Jun 25 10:49:27 1999 Jeff Johnston <jjohnstn@cygnus.com>
16647
16648 * libc/Makefile.am (stmp-targetdep): Ignore "." in SUBDIRS.
16649 * libm/Makefile.am (stmp-targetdep): Ditto.
16650 * libc/Makefile.in: Regenerated.
16651 * libm/Makefile.in: Ditto.
16652
16653Thu June 03 16:25:00 1999 Jeff Johnston <jjohnstn@cygnus.com>
16654
16655 * Makefile.am: Removed dependencies on all-recursive and added "."
16656 to the SUBDIRS list to prevent infinite recursion from occurring.
16657 Also removed any references to EXTRA_DATA.
16658 * libc/Makefile.am: Ditto.
16659 * libc/machine/Makefile.am: Ditto.
16660 * libc/machine/i386/Makefile.am: Ditto.
16661 * libm/Makefile.am: Ditto.
16662 * libc/sys/Makefile.am: Ditto.
16663 * Makefile.in: Regenerated.
16664 * aclocal.m4: Ditto.
16665 * configure: Ditto.
16666 * doc/Makefile.in: Ditto.
16667 * doc/aclocal.m4: Ditto.
16668 * doc/configure: Ditto.
16669 * libc/Makefile.in: Ditto.
16670 * libc/aclocal.m4: Ditto.
16671 * libc/configure: Ditto.
16672 * libc/machine/Makefile.in: Ditto.
16673 * libc/machine/aclocal.m4: Ditto.
16674 * libc/machine/configure: Ditto.
16675 * libc/machine/mn10300/Makefile.in: Ditto.
16676 * libc/machine/mn10300/aclocal.m4: Ditto.
16677 * libc/machine/mn10300/configure: Ditto.
16678 * libc/sys/Makefile.in: Ditto.
16679 * libc/sys/aclocal.m4: Ditto.
16680 * libc/sys/configure: Ditto.
16681 * libm/Makefile.in: Ditto.
16682 * libm/aclocal.m4: Ditto.
16683 * libm/configure: Ditto.
16684
16685Thu June 03 16:20:00 1999 Ranjith Kumaran <ranjith@cygnus.com>
16686
16687 * libc/include/stdlib/stdlib.tex: Add link to env_lock.
16688
16689Fri May 28 17:09:00 1999 Ranjith Kumaran <ranjith@cygnus.com>
16690
16691 * libc/include/stdlib.h: Add reentrant routines.
16692 * libc/stdlib/Makefile.am: Add reentrant routines.
16693 * libc/stdlib/Makefile.in: Ditto.
16694 * libc/stdlib/envlock.c: New file.
16695 * libc/stdlib/envlock.h: New file.
16696 * libc/stdlib/getenv.c: Modify to call reentrant routine.
16697 * libc/stdlib/getenv_r.c: New file.
16698 * libc/stdlib/mblen.c: Modify to call reentrant routine.
16699 * libc/stdlib/mblen_r.c: New file.
16700 * libc/stdlib/setenv.c: Modify to call reentrant routine.
16701 * libc/stdlib/setenv_r.c: New file.
16702 * libc/stdlib/stdlib.tex: Add reentrant routines.
16703
16704Mon May 17 22:01:38 1999 Christopher Faylor <cgf@cygnus.com>
16705
16706 * libc/include/sys/types.h: Define __MS_types__ whenever
16707 cygwin or win32.
16708
16709Sun May 16 16:02:41 1999 Christopher Faylor <cgf@cygnus.com>
16710
16711 * libc/include/machine/ieeefp.h: Always default to little
16712 endian if Windows, regardless of architecture.
16713 * libc/include/machine/sethmp.h: Define JBLEN if CYGWIN
16714 regardless of architecture.
16715
16716Mon May 3 11:49:18 1999 Geoffrey Noer <noer@cygnus.com>
16717
16718 * libc/include/machine/setjmp.h: Accept CYGWIN define, even if
16719 _WIN32 isn't defined.
16720
16721Mon May 3 11:41:51 1999 Jeff Johnston <jjohnstn@cygnus.com>
16722
16723 * libm/common/s_rint.c (rint): Add volatile qualifier for
16724 intermediate value w.
16725 * libm/common/sf_rint.c (rintf): Ditto.
16726
16727Thu Apr 29 20:34:27 1999 Jeff Johnston <jjohnstn@cygnus.com>
16728
16729 * libc/sys/arm/syscalls.c (remap_handle): Added check to
16730 ensure that std streams are initialized before being referenced.
16731
167321999-04-27 Jason Molenda (jsm@bugshack.cygnus.com)
16733
16734 * README: Update reference to newlib@cygnus.com new
16735 newlib@sourceware.cygnus.com address.
16736
16737Mon Apr 26 18:17:33 1999 Geoffrey Noer <noer@cygnus.com>
16738
16739 * libc/include/sys/types.h: Define MS_types if CYGWIN is defined.
16740 * libc/include/sys/fcntl.h: Define _O_BINARY et al if CYGWIN is
16741 defined, even if _WIN32 isn't defined.
16742
16743Sat Apr 24 19:59:55 1999 Christopher Faylor <cgf@cygnus.com>
16744
16745 * libc/include/sys/fcntl.h: Correct _O_CREATE to _O_CREAT.
16746
16747Wed Apr 21 18:01:00 1999 Ranjith Kumaran <ranjith@cygnus.com>
16748
16749 * libc/include/sys/reent.h: Change Long and ULong to __Long and
16750 __ULong.
16751 * libc/stdlib/dtoa.c: Ditto.
16752 * libc/stdlib/mprec.c: Ditto.
16753 * libc/stdlib/mprec.h: Ditto.
16754 * libc/stdlib/strtod.c: Ditto.
16755
167561999-04-21 Nick Clifton <nickc@cygnus.com>
16757
16758 * configure.host (mcore): Remove mcore machine directory.
16759
167601999-04-18 Nick Clifton <nickc@cygnus.com>
16761
16762 * libc/include/machine/ieeefp.h: Add support for mcore target.
16763 * libc/include/machine/setjmp.h: Add support for mcore target.
16764 * configure.host: Add support for mcore target.
16765
167661999-04-13 Mark Salter <msalter@cygnus.com>
16767
16768 * libc/sys/arm/libcfunc.c: Moved isatty to syscall.c
16769 * libc/sys/arm/syscalls.c: Added isatty.
16770
16771Wed Apr 07 16:06:04 1999 Jeff Johnston <jjohnstn@cygnus.com>
16772
16773 * libc/stdlib/ecvtbuf.c (fcvtbuf): Fixed code to properly
16774 insert zeroes after significant digits.
16775
16776Wed Mar 17 22:06:04 1999 Jeff Johnston <jjohnstn@cygnus.com>
17c0c97d 16777
8a0efa53
CF
16778 * libc/stdio/vfprintf.c (cvt): Changed floating point
16779 cvt routine to use union used by dtoa to properly determine
16780 if the sign bit is on or not.
16781 * libc/stdio/vfieeefp.h: New file
17c0c97d 16782
8a0efa53
CF
16783Wed Mar 17 17:35:04 1999 Jeff Johnston <jjohnstn@cygnus.com>
16784
16785 * aclocal.m4: Regenerated.
16786 * configure: Regenerated.
16787
16788Wed Mar 17 16:35:04 1999 Jeff Johnston <jjohnstn@cygnus.com>
16789
16790 * libc/machine/i386/Makefile.am (lib_a_SOURCES): Added missing
16791 f_tanf reference.
16792 * libc/machine/i386/Makefile.in: Regenerated.
16793
16794Tue Mar 16 14:56:36 1999 Jeff Johnston <jjohnstn@cygnus.com>
16795
16796 * acinclude.m4: Changed to work with new automake.
16797 * configure: Regenerated.
16798 * libc/machine/i386/aclocal.m4: Regenerated.
16799 * libc/machine/i386/configure: Regenerated.
16800
16801Tue Mar 16 13:55:36 1999 Corinna Vinschen <corinna.vinschen@cityweb.de>
16802
16803 * libc/sys/cygwin/sys/dirent.h: Add additional prototypes
16804 for telldir() and seekdir(). Rename unused structure element
16805 for use with these two routines.
16806
16807Fri Mar 12 19:11:58 1999 Jeff Johnston <jjohnstn@cygnus.com>
16808
16809 * libc/time/mktime.c (validate_structure): Multiple fixes to
16810 code to handle cases where input fields are outside valid ranges.
16811 * libc/stdlib/div.c (div): Modified invalid rounding check.
16812 * libc/stdlib/ldiv.c (ldiv): Ditto.
16813
16814Thu Mar 11 21:32:13 1999 Jeff Johnston <jjohnstn@cygnus.com>
16815
16816 * libc/machine/i386/memcpy.S: Performance rewrite.
16817 * libc/machine/i386/memmove.S: Ditto.
16818 * libc/machine/i386/i386mach.h: Added more register definitions.
16819 * libc/include/math.h: Include <machine/fastmath.h> if -ffast-math
16820 option used.
16821 * libc/include/machine/fastmath.h: Add definitions for x86
16822 fast-math routines.
16823
16824Wed Mar 10 17:56:00 1999 Ranjith Kumaran <ranjith@cygnus.com>
16825
16826 * libc/stdlib/strtod.c: Change from unsigned long to ULong.
16827
16828Tue Mar 9 14:31:58 1999 Geoffrey Noer <noer@cygnus.com>
16829
16830 Adjust newlib headers for new Cygwin Win32 API header files:
16831 * libc/include/sys/time.h: Check _WINSOCK_H rather than
16832 _GNU_H_WINDOWS32_SOCKETS.
16833 * libc/include/sys/types.h: Ditto.
16834
16835Tue Mar 09 15:55:00 1999 Ranjith Kumaran <ranjith@cygnus.com>
16836
16837 *include/sys/reent.h: Add checks for size of Bigint element Long.
16838 *libc/dtoa.c: Change routines to use generic Long type.
16839 *libc/mprec.c: Change routines to use generic Long type.
16840 *libc/mprec.h: Change routines to use generic Long type.
16841
16842Tue Mar 02 18:07:49 1999 Ranjith Kumaran <ranjith@cygnus.com>
16843
16844 * libc/Makefile.am: Add .def files.
16845 * libc/Makefile.in: Regenerate.
16846 * libc/e_acosh.c: Documentation update.
16847 * libc/e_atanh.c: Documentation update.
16848 * libc/e_hypot.c: Documentation update.
16849 * libc/e_remainder.c: Documentation update.
16850 * libc/er_lgamma.c: Documentation update.
16851 * libc/mathfp.tex: Documentation update.
16852 * libc/s_acos.c: Documentation update.
16853 * libc/s_atan.c: Documentation update.
16854 * libc/s_atan2.c: Documentation update.
16855 * libc/s_cosh.c: Documentation update.
16856 * libc/s_fmod.c: Documentation update.
16857 * libc/s_isnan.c: Documentation update.
16858 * libc/s_log10.c: Documentation update.
16859 * libc/s_pow.c: Documentation update.
16860 * libc/w_jn.c: Documentation update.
16861
16862Sun Feb 28 23:18:49 1999 Geoffrey Noer <noer@cygnus.com>
16863
16864 * aclocal.m4: Regenerate.
16865 * configure: Regenerate.
16866
16867Tue Feb 23 13:57:26 1999 Jeff Johnston <jjohnstn@cygnus.com>
16868
ba3ccd63
EB
16869 * libc/machine/mn10300/setjmp.S (_longjmp): Fixed longjmp
16870 to return 1 if user specified return code is 0.
16871 * libc/machine/mn10200/setjmp.S (_longjmp): Ditto.
8a0efa53
CF
16872
16873Thu Feb 18 11:13:28 1999 Jeff Johnston <jjohnstn@cygnus.com>
16874
16875 * libc/machine/mn10200/setjmp.S (_setjmp/_longjmp): Fixed setjmp
16876 to save the return address. Fixed longjmp to return to the original
16877 calling address of setjmp and to return the user specified return code
16878 rather than default to 1.
16879 * libc/machine/mn10300/setjmp.S (_setjmp/_longjmp): Ditto.
16880
16881Mon Feb 15 17:48:17 1999 Jeff Johnston <jjohnstn@cygnus.com>
16882
16883 * libc/stdlib/mprec.h (mult): Define mult to be _multiply instead of _mult.
16884
168851999-02-10 Nick Clifton <nickc@cygnus.com>
16886
16887 * libc/sys/arm/syscalls.c (initialise_monitor_handles): Make block
16888 volatile so that its assignments will not be discarded.
16889
16890Wed Feb 10 17:19:40 1999 Jeff Johnston <jjohnstn@cygnus.com>
16891
16892 * libc/include/_ansi.h: Corrected _STRICT_ANSI reference to
16893 be __STRICT_ANSI__ which is generated by compiler.
16894 * libc/include/ctype.h: Ditto.
16895 * libc/include/math.h: Ditto.
16896 * libc/include/stdio.h: Ditto.
16897 * libc/include/stdlib.h: Ditto.
16898 * libc/include/string.h: Ditto.
16899 * libc/include/sys/signal.h: Ditto.
16900
169011999-02-08 Nick Clifton <nickc@cygnus.com>
16902
16903 * configure.host: Add support for StrongARM target.
16904
16905Fri Feb 5 11:13:14 1999 Jeff Johnston <jjohnstn@cygnus.com>
16906
16907 * libc/string/strncpy.c (strncpy): Removed redundant code
16908 that was copying bytes if data unaligned.
16909
169101999-02-02 Brendan Kehoe <brendan@cygnus.com>
16911
16912 * libc/stdlib/Makefile.{am,in} (CHEWOUT_FILES): Add mblen.def,
16913 mbstowcs.def, and wcstombs.def.
16914
16915Sat Jan 30 02:36:33 1999 Christopher Faylor <cgf@cygnus.com>
16916
16917 * libc/include/sys/errno.h: Add Cygwin errno.
16918 * libc/stdio/flags.c: Don't default to O_TEXT if no other flag
16919 is specified.
16920
169211999-01-29 Nick Clifton <nickc@cygnus.com>
16922
16923 * libc/sys/arm/syscalls.c: Move C library functions into seperate
16924 file.
17c0c97d 16925
8a0efa53
CF
16926 * libc/sys/arm/libcfunc.c: New file containing C library functions
16927 from syscalls.c
16928
16929 * libc/sys/arm/Makefile.am (lib_a_SOURCES): Add libcfuncs.c
16930 * libc/sys/arm/Makefile.in (lib_a_SOURCES): Regenerate.
16931
16932
169331999-01-27 Michael Meissner <meissner@cygnus.com>
16934
16935 * libc/include/machine/setjmp.h (D30V _JBLEN/_JBTYPE): Use double
16936 type, and cut size in half so that the jmp_buf array is guaranteed
16937 to be aligned on a 64-bit boundary.
16938
16939Mon Jan 25 12:05:38 1999 Jeff Johnston <jjohnstn@cygnus.com>
16940
16941 * libc/string/strings.tex: Added information about
16942 strcasecmp and strncasecmp.
16943 * libc/stdlib/stdlib.tex: Added missing information
16944 about mblen, mbstowcs, and wcstombs.
16945 * libc/string/strchr.c: Changed how mask is built to use
16946 shift operators so register will be used instead of storage.
16947
169481999-01-22 DJ Delorie <dj@cygnus.com>
16949
16950 * libc/include/stdlib.h: don't use dllimport if we're building
16951 newlib, since it's inside cygwin.dll
16952
16953Fri Jan 22 14:57:18 1999 Christopher Faylor <cgf@cygnus.com>
16954
16955 * libc/ctype/ctype_.c: Need to use __declspec(dllexport) for
16956 _ctype_ under cygwin.
16957
16958Fri Jan 22 09:50:19 1999 Christopher Faylor <cgf@cygnus.com>
16959
16960 * include/stdlib.h: Fix typo from previous checkin.
16961
16962Thu Jan 21 22:42:21 1999 Christopher Faylor <cgf@cygnus.com>
16963
16964 * include/ctype.h: Use __declspec(dllimport) method for exporting
16965 variable from cygwin DLL.
16966 * include/time.h: Ditto.
16967 * sys/errno.h: Ditto.
16968 * include/stdlib.h: Export __mb_cur_max from cygwin DLL.
16969 * libc/locale/locale.c: Use __declspec(dllexport) method for
16970 exporting variable from cygwin DLL.
16971
16972Sat Jan 16 13:29:54 1999 Christopher Faylor <cgf@cygnus.com>
16973
16974 * libc/stdio/setvbuf.c: Always clean up when _IONBF or possible
16975 access of bogus pointer will result in SIGSEGV.
16976
169771999-01-07 Nick Clifton <nickc@cygnus.com>
16978
16979 * libc/sys/arm/setjmp.S: Use C macros to cope with the possibility
16980 of an underscore prefix to function names.
16981
16982Fri Jan 8 19:00:07 1999 Jeff Johnston <jjohnstn@cygnus.com>
16983
16984 * libc/machine/i386/i386mach.h (__REG_PREFIX__): Create new
16985 define __REG_PREFIX__ instead of using __REGISTER_PREFIX__.
16986
169871998-12-31 Michael Meissner <meissner@cygnus.com>
16988
16989 * libc/machine/i386/i386mach.h (__REGISTER_PREFIX__): Only define
16990 to `%' if not already defined.
16991
169921998-12-30 Michael Meissner <meissner@cygnus.com>
16993
16994 * libc/stdio/tmpnam.c (_tempnam_r): Make directory and prefix
16995 arguments const char *, not char *.
16996 * libc/include/stdio.h (_tempnam_r): Ditto.
16997
16998 * libc/include/sys/reent.h (struct _reent): The _sig_func type
16999 points to a function taking an integer, not void.
17000
17001Tue Dec 29 14:35:53 1998 Christopher Faylor <cgf@cygnus.com>
17002
17003 * configure.host: Add a define for Cygwin builds.
17004 * libc/include/ctype.h: Don't use dll imported variables in newlib.
17005
17006Mon Dec 28 09:19:56 1998 Christopher Faylor <cgf@cygnus.com>
17007
17008 * libc/include/ctype.h: Define _ctype_ as dll imported variable
17009 for use with Cygwin.
17010 * libc/include/sys/errno.h: Define _sys_errlist and _sys_nerr as
17011 dll imported variables for use with Cygwin.
17012 * libc/ctype/ctype_.c: Undefine _ctype_ in case it has been defined
17013 as a dll imported variable for Cygwin.
17014
17015Sat Dec 26 00:13:53 1998 Christopher Faylor <cgf@cygnus.com>
17016
17017 * libc/include/sys/unistd.h: Add proto for getpass.
17018
17019Fri Dec 18 19:28:19 1998 Geoffrey Noer <noer@cygnus.com>
17020
17021 * libc/sys/cygwin/sys/dirent.h: add protos for scandir and
17022 alphasort.
17023
17024Fri Dec 18 16:33:25 1998 Geoffrey Noer <noer@cygnus.com>
17025
17026 * libc/posix/execvp.c (execvp): call cygwin_posix_path_list_p,
17027 not posix_path_list_p.
17028
170291998-12-15 Nick Clifton <nickc@cygnus.com>
17030
17031 * libc/string/memchr.c: Treat 'c' argument as an unsigned byte not
17032 a signed int.
17033
170341998-12-13 Nick Clifton <nickc@cygnus.com>
17035
17036 * libc/include/machine/setjmp.h (_JBLEN): Set to 10.
17037
170381998-12-12 Nick Clifton <nickc@cygnus.com>
17039
17040 * libc/machine/fr30/setjmp.S: New file, supplied by Mark Slater
17041 <msalter@cygnus.com>
17042 * libc/machine/fr30/Makefile.am: Add build of setjmp.S
17043 * libc/machine/fr30/Makefile.in: Regenerated.
17044
170451998-12-11 Nick Clifton <nickc@cygnus.com>
17046
17047 * configure.host: Remove use of libc/sys for FR30 port.
17048 * libc/sys/fr30: Remove directory (replaced by libgloss).
17049
170501998-12-10 Ken Raeburn <raeburn@cygnus.com>
17051
17052 * libc/string/strcat.c (ALIGNED): Sense of result was reversed.
17053 * libc/string/strncat.c (ALIGNED): Ditto.
17054
17055Wed Dec 9 14:37:57 1998 Geoffrey Noer <noer@cygnus.com>
17056
17057 * libc/include/sys/time.h: include sys/types.h
17058
17059Tue Dec 8 15:53:18 1998 Jeff Johnston <jjohnstn@cygnus.com>
17060
17061 * libc/machine/i386/memcmp.S (memcmp): Fix for unequal
17062 comparison found when checking word at a time.
17063
170641998-12-04 Nick Clifton <nickc@cygnus.com>
17065
17066 * libc/sys/fr30/crt0.s (_start): Initialise frame pointer.
17067
170681998-12-03 Nick Clifton <nickc@cygnus.com>
17069
17070 * libc/sys/fr30/syscalls.c (_times): New function stub.
17071
17072Thu Dec 3 15:59:19 1998 Jeff Johnston <jjohnstn@cygnus.com>
17073
17074 * configure.host (mach_add_setjmp): Replaced mach_add_objs
17075 with mach_add_setjmp flag which indicates if setjmp should
17076 be added to the machine directory objects.
17077 * acinclude.m4: Removed reference to mach_add_objs.
17078 * aclocal.m4: Regenerated.
17079 * Makefile.in: Regenerated.
17080 * configure: Regenerated.
17081 * libc/aclocal.m4: Regenerated.
17082 * libc/Makefile.in: Regenerated.
17083 * libc/configure: Regenerated.
17084 * libc/machine/aclocal.m4: Regenerated.
17085 * libc/machine/Makefile.in: Regenerated.
17086 * libc/machine/configure: Regenerated.
17087 * libc/machine/i386/aclocal.m4: Regenerated.
17088 * libc/machine/i386/Makefile.am: Altered to selectively add
17089 setjmp.S to the src files list.
17090 * libc/machine/i386/Makefile.in: Regenerated.
17091 * libc/machine/i386/configure.in: Altered to test mach_add_setjmp.
17092 * libc/machine/i386/configure: Regenerated.
17093
170941998-12-02 Nick Clifton <nickc@cygnus.com>
17095
17096 * libc/sys/fr30/crt0.s (_start): Fix function names.
17097
17098 * libc/machine/fr30: New directory
17099 * libc/machine/fr30/Makefile.am: New file.
17100 * libc/machine/fr30/Makefile.in: New generated file.
17101 * libc/machine/fr30/configure.in: New file.
17102 * libc/machine/fr30/configure: New generated file.
17103 * libc/machine/fr30/aclocal.m4: New generated file.
17104 * libc/sys/fr30/Makefile.am: New file.
17105 * libc/sys/fr30/Makefile.in: New generated file.
17106 * libc/sys/fr30/configure.in: New file.
17107 * libc/sys/fr30/configure: New generated file.
17108 * libc/sys/fr30/syscalls.c: New file.
17109
17110Tue Dec 1 16:28:56 1998 Geoffrey Noer <noer@cygnus.com>
17111
17112 * libc/sys/cygwin/sys/utmp.h: new file, moved from winsup/include.
17113
171141998-12-01 Ken Raeburn <raeburn@cygnus.com>
17115
17116 * libc/time/strftime.c (strftime): Also handle %y for years before
17117 1900.
17118
17119Tue Dec 1 13:26:07 1998 Christopher Faylor <cgf@cygnus.com>
17120
17121 * libc/string/strcasecmp.c (strcasecmp): Adhere to standard
17122 UNIX convention. Perform tolower on characters before comparing
17123 them rather than use toupper.
17124 * libc/string/strncasecmp.c (strncasecmp): Ditto.
17125
17126Mon Nov 30 16:24:19 1998 Jeff Johnston <jjohnstn@cygnus.com>
17c0c97d 17127
8a0efa53
CF
17128 * configure.host: Added using i386 machine directory
17129 for all x86 cross-compiler and configuring
17130 which added object files to use via new "mach_add_objs" variable.
17131 * configure: Regenerated.
17132 * libc/configure: Regenerated.
17133 * libc/Makefile.in: Regenerated.
17134 * libc/aclocal.m4: Regenerated.
17135 * libc/ctype/Makefile.in: Regenerated.
17136 * libc/errno/Makefile.in: Regenerated.
17137 * libc/locale/Makefile.in: Regenerated.
17138 * libc/machine/Makefile.in: Regenerated.
17139 * libc/machine/aclocal.m4: Regenerated.
17140 * libc/machine/configure: Regenerated.
17141 * libc/posix/Makefile.in: Regenerated.
17142 * libc/reent/Makefile.in: Regenerated.
17143 * libc/signal/Makefile.in: Regenerated.
17144 * libc/stdio/Makefile.in: Regenerated.
17145 * libc/stdlib/Makefile.in: Regenerated.
17146 * libc/string/Makefile.in: Regenerated.
17147 * libc/string/memmove.c: Optimized code to use memcpy
17148 logic when performing a non-destructive copy.
17149 * libc/string/strncmp.c: Altered code to allow building
17150 optimized for size or speed.
17151 * libc/syscalls/Makefile.in: Regenerated.
17152 * libc/time/Makefile.in: Regenerated.
17153 * libc/unix/Makefile.in: Regenerated.
17154 * libc/machine/i386/Makefile.am: Added new files and reference
17155 to "mach_add_objs" to indicate optional object files.
17156 * libc/machine/i386/Makefile.in: Regenerated.
17157 * libc/machine/i386/aclocal.m4: Regenerated.
17158 * libc/machine/i386/configure: Regenerated.
17159 * libc/machine/i386/memchr.S: New file that implements
17160 function in Intel assembler.
17161 * libc/machine/i386/memcmp.S: ditto.
17162 * libc/machine/i386/memcpy.S: ditto.
17163 * libc/machine/i386/memmove.S: ditto.
17164 * libc/machine/i386/memset.S: ditto.
17165 * libc/machine/i386/strchr.S: ditto.
17166 * libc/machine/i386/strlen.S: ditto.
17167 * libc/machine/i386/f_atan2.S: New file that implements
17168 fast version of math function to be used by compiler when
17169 --ffast_math compile option is used.
17170 * libc/machine/i386/f_atan2f.S: ditto.
17171 * libc/machine/i386/f_exp.c: ditto.
17172 * libc/machine/i386/f_expf.c: ditto.
17173 * libc/machine/i386/f_frexp.S: ditto.
17174 * libc/machine/i386/f_frexpf.S: ditto.
17175 * libc/machine/i386/f_ldexp.S: ditto.
17176 * libc/machine/i386/f_ldexpf.S: ditto.
17177 * libc/machine/i386/f_log.S: ditto.
17178 * libc/machine/i386/f_logf.S: ditto.
17179 * libc/machine/i386/f_log10.S: ditto.
17180 * libc/machine/i386/f_log10f.S: ditto.
17181 * libc/machine/i386/f_math.h: New file.
17182 * libc/machine/i386/f_pow.c: ditto.
17183 * libc/machine/i386/f_powf.S: ditto.
17184 * libc/machine/i386/f_tan.S: ditto.
17185 * libc/machine/i386/f_tan.S: ditto.
17186 * libc/machine/i386/i386mach.h: New file.
17187
17188Mon Nov 30 13:02:17 1998 Christopher Faylor <cgf@cygnus.com>
17189
17190 patch from Mumit Khan <khan@xraylith.wisc.edu>
17191 * libc/include/stdio.h (tempnam): Add prototype.
17192 * libc/stdio/tmpnam.c (_tempnam_r): Handle NULL prefix.
17193 (tempnam): Adhere to prototype.
17194
17195Thu Nov 26 00:21:32 1998 Christopher Faylor <cgf@cygnus.com>
17196
17197 * Makefile.am: Add default for AR_FLAGS.
17198 * Makefile.in: Regenerate.
17199
17200Tue Nov 24 18:48:56 1998 Geoffrey Noer <noer@cygnus.com>
17201
17202 * libc/include/time.h: move __cplusplus wrapper after includes
17203 * libc/include/sys/time.h: ditto. If Cygwin, include
17204 sys/select.h.
17205 * libc/include/sys/types.h: lose "32" in comment about Cygwin.
17206
172071998-11-23 Ken Raeburn <raeburn@cygnus.com>
17208
17209 * libc/time/strftime.c (strftime): Handle %y after year 2000.
17210
17211Wed Nov 18 12:22:41 1998 Nick Clifton <nickc@cygnus.com>
17212
17213 * libc/sys/fr30/crt0.s (_start): Switch over to using int #9 as
17214 abnormnal end-of-crt0 marker.
17215
17216Tue Nov 17 16:27:58 1998 Nick Clifton <nickc@cygnus.com>
17217
17218 * libc/sys/fr30/crt0.s: New file/directory.
17219 * libc/include/machine/setjmp.h: Add FR30 target.
17220 * libc/include/machine/ieeefp.h: Add FR30 target.
17221 * configure.host: Add FR30 target.
17222
17223Mon Nov 16 23:15:00 1998 Ranjith Kumaran <ranjith@cygnus.com>
17224
ba3ccd63
EB
17225 * libm/math: Files that are duplicated in common directory removed.
17226 * libm/math/fdlibm.h: Removed.
17227 * libm/math/s_cbrt.c: Removed.
17228 * libm/math/s_copysign.c: Removed.
17229 * libm/math/s_expm1.c: Removed.
17230 * libm/math/s_finite.c: Removed.
17231 * libm/math/s_ilogb.c: Removed.
17232 * libm/math/s_infinity.c: Removed.
17233 * libm/math/s_lib_ver.c: Removed.
17234 * libm/math/s_log1p.c: Removed.
17235 * libm/math/s_logb.c: Removed.
17236 * libm/math/s_matherr.c: Removed.
17237 * libm/math/s_modf.c: Removed.
17238 * libm/math/s_nan.c: Removed.
17239 * libm/math/s_nextafter.c: Removed.
17240 * libm/math/s_rint.c: Removed.
17241 * libm/math/s_scalbn.c: Removed.
17242 * libm/math/sf_cbrt.c: Removed.
17243 * libm/math/sf_copysign.c: Removed.
17244 * libm/math/sf_expm1.c: Removed.
17245 * libm/math/sf_finite.c: Removed.
17246 * libm/math/sf_ilogb.c: Removed.
17247 * libm/math/sf_infinity.c: Removed.
17248 * libm/math/sf_log1p.c: Removed.
17249 * libm/math/sf_logb.c: Removed.
17250 * libm/math/sf_modf.c: Removed.
17251 * libm/math/sf_nan.c: Removed.
17252 * libm/math/sf_nextafter.c: Removed.
17253 * libm/math/sf_rint.c: Removed.
17254 * libm/math/sf_scalbn.c: Removed.
17255 * libm/math/Makefile.am: Removed references to deleted files (above).
17256 * libm/math/Makefile.in: Regenerated.
17257 * libm/Makefile.am: Added common directory to math.
17258 * libm/Makefile.in: Regenerated.
8a0efa53
CF
17259
17260Mon Nov 2 23:12:00 1998 Ranjith Kumaran <ranjith@cygnus.com>
17261
ba3ccd63
EB
17262 * libm/mathfp: Add non-ANSI functions.
17263 * libm/mathfp/e_acosh.c acosh(): New file.
17264 * libm/mathfp/e_atanh.c atanh(): New file.
17265 * libm/mathfp/e_hypot.c hypot(): New file.
17266 * libm/mathfp/e_j0.c j0(): New file.
17267 * libm/mathfp/e_j1.c j1(): New file.
17268 * libm/mathfp/e_remainder.c remainder(): New file.
17269 * libm/mathfp/e_scalb.c scalb(): New file.
17270 * libm/mathfp/ef_acosh.c acoshf(): New file.
17271 * libm/mathfp/ef_atanh.c atanhf(): New file.
17272 * libm/mathfp/ef_hypot.c hypotf(): New file.
17273 * libm/mathfp/ef_j0.c j0f(): New file.
17274 * libm/mathfp/ef_j1.c j1f(): New file.
17275 * libm/mathfp/ef_remainder.c remainderf(): New file.
17276 * libm/mathfp/ef_scalb.c scalbf(): New file.
17277 * libm/mathfp/er_gamma.c gamma_r: New file.
17278 * libm/mathfp/er_lgamma.c lgamma_r(): New file.
17279 * libm/mathfp/erf_gamma.c gamma_rf(): New file.
17280 * libm/mathfp/erf_lgamma.c lgamma_rf(): New file.
17281 * libm/mathfp/w_cabs.c cabs(): New file.
17282 * libm/mathfp/w_drem.c drem(): New file.
17283 * libm/mathfp/w_jn.c jn(): New file.
17284 * libm/mathfp/wf_cabs.c cabsf(): New file.
17285 * libm/mathfp/wf_drem.c dremf(): New file.
17286 * libm/mathfp/wf_jn.c jnf(): New file.
8a0efa53
CF
17287
17288Mon Nov 2 16:43:18 1998 Geoffrey Noer <noer@cygnus.com>
17289
17290 * libc/sys/cygwin32: remove directory and contents
17291 * libc/sys/cygwin: and add back, losing the "32".
17292 * configure.host: check for cygwin* instead of cygwin32.
17293 * acinclude.m4: ditto.
17294 * aclocal.m4: regenerate with aclocal
17295 * configure: regenerate with autoconf
17296
17297Tue Oct 20 17:28:28 1998 Geoffrey Noer <noer@cygnus.com>
17298
17299 * libc/stdio/tmpnam.c (_tempnam_r): not enough memory allocated
17300 for length
17301
17302Tue Oct 20 18:49:05 1998 Jeff Johnston <jjohnstn@cygnus.com>
17303
17304 * libc/include/sys/reent.h (struct _reent): Added variables _rand_next, _strtok_last,
17305 _asctime_buf, _localtime_buf and _gamma_signgam to struct reent
17306 to make rand/srand, strtok, asctime, localtime, w_gamma,
17307 w_lgamma, wf_gamma, and wf_lgamma reentrant. Included
17308 time.h to bring in struct tm definition.
17309 * libc/stdlib/rand.c (rand, srand): Don't emit functions 'rand' and 'srand' if
17310 '_REENT_ONLY' is set. Used variable '_rand_next' from struct reent.
17311 * libc/stdlib/strtok.c (strtok): Used variable '_strtok_last' from struct reent
17312 instead of static variable.
17313 * libc/stdlib/asctime.c (asctime): Used variable '_asctime_buf' from
17314 struct reent instead of static variable.
17315 * libc/stdlib/lcltime.c (localtime): Used variable '_localtime_buf' from
17316 struct reent instead of static variable.
17317 * libm/math/Makefile.am: Removed s_signgam.o.
17318 * libm/math/Makefile.in: Regenerated.
17319 * libm/math/w_gamma.c (gamma): Used variable '_gamma_signgam' from
17320 struct reent instead of global variable 'signgam'.
17321 * libm/math/w_lgamma.c (lgamma): Likewise.
17322 * libm/math/wf_gamma.c (gammaf): Likewise.
17323 * libm/math/wf_lgamma.c (lgammaf): Likewise.
17324 * libm/math/s_signgam.c: Removed.
17325 * libc/include/unctrl.h: Defined arrays __unctrl and __unctrllen
17326 to be const.
17327 * libc/misc/unctrl.c: Defined arrays __unctrl and __unctrllen
17328 to be const.
17329 * libc/reent/Makefile.am: Added dependence for impure.o on impure.c and
17330 libc/include/reent.h.
17331 * libc/reent/Makefile.in: Regenerated.
17332 * libc/stdio/vfprintf.c (_vfprintf_r): Defined arrays 'blanks' and 'zeroes'
17333 to be const.
17334 * libc/stdlib/mbtowc_r.c (_mbtowc_r): Defined arrays 'JIS_state_table' and
17335 'JIS_action_table' to be const.
17336 * libm/math/s_lib_ver.c: define variable _LIB_VERSION to be const.
17337
17338Mon Oct 12 00:26:33 1998 Christopher Faylor <cgf@cygnus.com>
17339
17340 * acinclude.m4: $with_target_subdir should default to '.'
17341 or confusion results when configuring in same directory as sources.
17342 * Regenerate all aclocal.m4 and configure files.
17343
17344Fri Oct 9 16:27:36 1998 Jeff Johnston <jjohnstn@cygnus.com>
17345
17346 * libc/stdlib/mallocr.c: Added 16 byte alignment support which
17347 can be set by defining MALLOC_ALIGNMENT=16. Also added support
17348 for platforms where sizeof(size_t) < sizeof(long) via
17349 SIZE_T_SMALLER_THAN_LONG macro.
17c0c97d 17350
8a0efa53
CF
17351Wed Oct 7 14:02:40 1998 Jeff Johnston <jjohnstn@cygnus.com>
17352
17353 * libc/include/time.h (CLOCKS_PER_SEC): Change CLOCKS_PER_SEC
17354 to refer to _CLOCKS_PER_SEC_ and added including <machine/time.h>
17355 which sets _CLOCKS_PER_SEC_ for selected machines.
17356 * libc/include/machine/time.h: New file.
17357
17358Tue Oct 6 16:08:05 1998 Jeff Johnston <jjohnstn@cygnus.com>
17359
17360 * libc/syscalls/sysexecve.c: New file.
17361 * libc/syscalls/sysgettod.c: New file.
17362 * libc/syscalls/systimes.c: New file.
17363 * libc/syscalls/Makefile.am: Added new objects.
17364 * libc/syscalls/Makefile.in: Regenerated.
17365 * libc/include/_syslist.h (_execve): Moved define in file.
17366 * libc/include/reent.h: Added _execve_r declaration.
17367 * libc/Makefile.in: Regenerated.
17368 * libc/ctype/Makefile.in: Regenerated.
17369 * libc/errno/Makefile.in: Regenerated.
17370 * libc/locale/Makefile.in: Regenerated.
17371 * libc/machine/Makefile.in: Regenerated.
17372 * libc/misc/Makefile.in: Regenerated.
17373 * libc/posix/Makefile.in: Regenerated.
17374 * libc/reent/Makefile.in: Regenerated.
17375 * libc/reent/execr.c (_execve_r): Added _execve_r function.
17376 * libc/signal/Makefile.in: Regenerated.
17377 * libc/stdio/Makefile.in: Regenerated.
17378 * libc/time/Makefile.in: Regenerated.
17379 * libc/unix/Makefile.in: Regenerated.
17380 * libm/mathfp/Makefile.in: Regenerated.
17381
17382Tue Oct 6 14:14:05 1998 Jeff Johnston <jjohnstn@cygnus.com>
17383
17384 * libc/string/Makefile.in: Regenerated.
17385 * libc/string/memchr.c (memchr): Moved code to reduce object size.
17386 * libc/string/memcpy.c (memcpy): Ditto.
17387 * libc/string/memcmp.c (memcmp): Ditto.
17388 * libc/string/memset.c (memset): Ditto.
17389 * libc/string/strchr.c (strchr): Ditto.
17390 * libc/string/strcmp.c (strcmp): Ditto.
17391 * libc/string/strcpy.c (strcpy): Ditto.
17392 * libc/string/strlen.c (strlen): Ditto.
17393
17394Tue Oct 6 13:58:05 1998 Jeff Johnston <jjohnstn@cygnus.com>
17395
17396 * libm/acinclude.m4: Removed since newlib/acinclude.m4 can be used
17397 to generate aclocal.m4.
17398 * libm/Makefile.in: Regenerated.
17399 * libm/aclocal.m4: Regenerated.
17400 * libm/configure: Regenerated.
17401 * libm/math/Makefile.in: Regenerated.
17402 * libm/mathfp/Makefile.in: Regenerated.
17403
174041998-09-25 Mark Salter <msalter@cygnus.com>
17405
17406 * libc/include/machine/setjmp.h: Fixed test for mn10300 and mn10200
17407 by adding leading and trailing underscores to symbol names.
17408
17409Tue Sep 22 15:33:41 1998 Christopher Faylor <cgf@cygnus.com>
17410
17411 * Makefile.in: Add default for AR_FLAGS.
17412
17413Tue Sep 22 15:02:49 1998 Christopher Faylor <cgf@cygnus.com>
17414
17415 patch from ian@airs.com (Ian Taylor):
17416 * acinclude.m4: Run AC_CANONICAL_BUILD explicitly before
17417 NEWLIB_CONFIGURE so AC_CANONICAL_HOST will be run before it
17418 is needed for detecting the build machine. Required for
17419 cygwin native builds.
17420
17421 * Regenerate all aclocal.m4 and configure files.
17422
17423Mon Sep 21 14:44:16 1998 Nick Clifton <nickc@cygnus.com>
17424
17425 * libc/sys/arm/crt0.S: Prepend a period to all local labels that
17426 used to start with LC.
17427
17428Thu Sep 17 18:18:11 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
17429
17430 * libc/machine/sh/setjmp.S (setjmp): Handle __SH4* like __SH3E__ .
17431 (longjmp): Likewise.
17432
17433Thu Sep 17 16:25:33 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
17434
17435 * libc/machine/sh/memset.S (memset): Move copy from r4 to r4 before
17436 the test for small number of bytes.
17437
17438Thu Sep 10 11:40:00 1998 Ranjith Kumaran <ranjith@cygnus.com>
17439
17440 * Makefile.am: Add --enable-newlib-hw-fp check. This builds the new
17441 math library that uses floating point algorithms instead of the old
17442 libm.
17443 * Makefile.in: Regenerate with automake version 1.3b.
17444 * configure: Rebuild.
17445 * libm/Makefile.in: Regenerate with automake version 1.3b.
17446 * libm/aclocal.m4: Regenerate.
17447 * libm/configure: Rebuild.
17448 * libm/configure.in: Add newlib_hw_fp definition and mathfp directory.
17449 * libm/acinclude.m4: Define macros for configure.in.
17450 * libm/config.h.in: Generate.
17451 * libm/mathfp/Makefile.am: New file.
17452 * libm/mathfp/Makefile.in: Generate.
17453 * libm/mathfp/s_acos.c (acos): New file.
17454 * libm/mathfp/s_asin.c (asin): New file.
17455 * libm/mathfp/s_asine.c (asine): New file.
17456 * libm/mathfp/s_atan.c (atan): New file.
17457 * libm/mathfp/s_atan2.c (atan2): New file.
17458 * libm/mathfp/s_atangent.c (atangent): New file.
17459 * libm/mathfp/s_ceil.c (ceil): New file.
17460 * libm/mathfp/s_copysign.c (copysign): New file.
17461 * libm/mathfp/s_cos.c (cos): New file.
17462 * libm/mathfp/s_cosh.c (cosh): New file.
17463 * libm/mathfp/s_exp.c (exp): New file.
17464 * libm/mathfp/s_fabs.c (fabs): New file.
17465 * libm/mathfp/s_finite.c (finite): New file.
17466 * libm/mathfp/s_floor.c (floor): New file.
17467 * libm/mathfp/s_fmod.c (fmod): New file.
17468 * libm/mathfp/s_frexp.c (frexp): New file.
17469 * libm/mathfp/s_infconst.c: New file.
17470 * libm/mathfp/s_isinf (isinf).c: New file.
17471 * libm/mathfp/s_isnan.c (isnan): New file.
17472 * libm/mathfp/s_ispos.c (ispos): New file.
17473 * libm/mathfp/s_ldexp.c (ldexp): New file.
17474 * libm/mathfp/s_log.c (log): New file.
17475 * libm/mathfp/s_log10.c (log10): New file.
17476 * libm/mathfp/s_logarithm.c (logarithm): New file.
17477 * libm/mathfp/s_mathcnst.c: New file.
17478 * libm/mathfp/s_modf (modf).c: New file.
17479 * libm/mathfp/s_numtest.c (numtest): New file.
17480 * libm/mathfp/s_pow.c (pow): New file.
17481 * libm/mathfp/s_scalbn.c (scalbn): New file.
17482 * libm/mathfp/s_sin (sin).c: New file.
17483 * libm/mathfp/s_sine.c (sine): New file.
17484 * libm/mathfp/s_sineh.c (sineh): New file.
17485 * libm/mathfp/s_sinf.c (sinf): New file.
17486 * libm/mathfp/s_sinh.c (sinh): New file.
17487 * libm/mathfp/s_sqrt.c (sqrt): New file.
17488 * libm/mathfp/s_tan.c (tan): New file.
17489 * libm/mathfp/s_tanh.c (tanh): New file.
17490 * libm/mathfp/sf_acos.c (acosf): New file.
17491 * libm/mathfp/sf_asin.c (asinf): New file.
17492 * libm/mathfp/sf_asine.c (asinef): New file.
17493 * libm/mathfp/sf_atan.c (atanf): New file.
17494 * libm/mathfp/sf_atan2.c (atan2f): New file.
17495 * libm/mathfp/sf_atangent.c (atangent): New file.
17496 * libm/mathfp/sf_ceil.c (ceilf): New file.
17497 * libm/mathfp/sf_copysign.c (copysignf): New file.
17498 * libm/mathfp/sf_cos.c (cosf): New file.
17499 * libm/mathfp/sf_cosh.c (coshf): New file.
17500 * libm/mathfp/sf_exp.c (expf): New file.
17501 * libm/mathfp/sf_fabs.c (fabsf): New file.
17502 * libm/mathfp/sf_finite.c (finitef): New file.
17503 * libm/mathfp/sf_floor.c (floorf): New file.
17504 * libm/mathfp/sf_fmod.c (fmodf): New file.
17505 * libm/mathfp/sf_frexp.c (frexpf): New file.
17506 * libm/mathfp/sf_isinf.c (isinff): New file.
17507 * libm/mathfp/sf_isnan.c (isnanf): New file.
17508 * libm/mathfp/sf_ispos.c (isposf): New file.
17509 * libm/mathfp/sf_ldexp.c (ldexpf): New file.
17510 * libm/mathfp/sf_log.c (logf): New file.
17511 * libm/mathfp/sf_log10.c (log10f): New file.
17512 * libm/mathfp/sf_logarithm.c (logarithmf): New file.
17513 * libm/mathfp/sf_modf.c (modff): New file.
17514 * libm/mathfp/sf_numtest.c (numtestf): New file.
17515 * libm/mathfp/sf_pow.c (powf): New file.
17516 * libm/mathfp/sf_scalbn.c (scalbnf): New file.
17517 * libm/mathfp/sf_sin.c (sinf): New file.
17518 * libm/mathfp/sf_sine.c (sinef): New file.
17519 * libm/mathfp/sf_sineh.c (sinehf): New file.
17520 * libm/mathfp/sf_sinh.c (sinhf): New file.
17521 * libm/mathfp/sf_sqrt.c (sqrtf): New file.
17522 * libm/mathfp/sf_tan.c (tanf): New file.
17523 * libm/mathfp/sf_tanh.c (tanhf): New file.
17524 * libm/mathfp/zmath.h: New file.
17525
17526Wed Sep 2 02:49:03 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
17527
17528 * libc/machine/sh/strcmp.S (L_char_loop): Re-load r0 at loop
17529 exit if it has been overwritten by pre-fetching in delay slot.
17530
175311998-09-01 Michael Meissner <meissner@cygnus.com>
17532
17533 * Makefile.am (tooldir): Add in host_alias, so that multilib
17534 libraries are installed in the directory the compiler looks in.
17535 * Makefile.in: Regenerate.
17536
17537 * libc/stdlib/Makefile.in: Regenerate with automake version 1.3b.
17538
17539Mon Aug 31 11:39:31 1998 Jeff Johnston <jjohnstn@cygnus.com>
17540
17541 * libc/machine/mn10300/memcpy.S (_memcpy): Move alignment test
17542 ahead of test for number of bytes being moved.
17543
17544Thu Aug 27 14:07:53 1998 Christopher Faylor <cgf@cygnus.com>
17545
17546 * libc/include/sys/unistd.h: Nothing special needed for
17547 _exit under cygwin.
17548
17549Wed Aug 26 15:05:21 1998 Nick Clifton <nickc@cygnus.com>
17550
17551 * libc/sys/arm/syscalls.c (_sbrk): Rename '_end' to 'end' to
17c0c97d 17552 conform to user label naming conventions.
8a0efa53
CF
17553
17554Mon Aug 24 14:46:19 1998 Geoffrey Noer <noer@cygnus.com>
17555
17556 * libc/sys/cygwin32/sys/utime.h: variable names in
17557 protos should start with two leading underscores
17558 * libc/include/string.h: ditto
17559 * libc/include/sys/signal.h: ditto
17560 * libc/include/sys/stat.h: ditto
17561 * libc/include/sys/time.h: ditto
17562 * libc/include/sys/unistd.h: ditto
17563 * libc/include/ctype.h: ditto
17564 * libc/include/stdlib.h: ditto
17565 * libc/include/sys/reent.h: struct _atexit function ptr takes a
17566 void, same with _sig_func.
17567
17568Fri Aug 21 14:44:14 1998 Jeff Johnston <jjohnstn@cygnus.com>
17569
17570 * libc/stdlib/mbtowc_r.c (_mbtowc_r): Added preprocessor checks
17571 for MB_CAPABLE to reduce code size when newlib is not configured
17572 with --enable-newlib-mb.
17573 * libc/stdlib/Makefile.am: Specified -fshort-enums when building
17c0c97d 17574 mbtowc_r.o to minimize size.
8a0efa53 17575 * libc/stdlib/Makefile.in: Rebuild.
17c0c97d 17576
8a0efa53
CF
17577Wed Aug 19 16:20:13 1998 Jim Wilson <wilson@cygnus.com>
17578
17579 * libc/sys/sparc64/Makefile.am (.S_r.o, .c_r.o): Change -DREENTRANT
17580 to -DREENT.
17581 * libc/sys/sparc64/Makefile.in: Rebuild.
17c0c97d 17582
8a0efa53
CF
17583Tue Aug 18 22:38:29 1998 Ian Lance Taylor <ian@cygnus.com>
17584
17585 * Makefile.am (MAKEOVERRIDES): Define.
17586 * Makefile.in: Rebuild.
17587
17588Tue Aug 18 12:38:47 1998 Jim Wilson <wilson@cygnus.com>
17589
17590 * libc/sys/sparc64/sys/stat.h (stat): Add const.
17591
17592Mon Aug 17 22:27:06 1998 Ian Lance Taylor <ian@cygnus.com>
17593
17594 * acinclude.m4 (NEWLIB_CONFIGURE): Use top_builddir in
17595 newlib_cflags when looking for targ-include.
17596 * */aclocal.m4, */configure: Rebuild.
17597
17598Fri Jul 31 10:57:42 1998 Catherine Moore <clm@cygnus.com>
17599
ba3ccd63
EB
17600 * libc/sys/arm/syscalls.c (_sbrk): Change "__end__"
17601 to "_end".
8a0efa53
CF
17602
17603Wed Jul 29 00:02:01 1998 Mark Alexander <marka@cygnus.com>
17604
17605 * libc/include/sys/config.h: Define __IEEE_LITTLE_ENDIAN
17606 on SPARCs with little-endian data.
17607 * libc/include/machine/ieeefp.h: Ditto.
17608
17609Wed Jul 22 18:00:10 1998 Ian Lance Taylor <ian@cygnus.com>
17610
17611 * acinclude.m4: Handle a relative srcdir correctly when setting
17612 newlib_cflags.
17613 * */aclocal.m4, */configure: Rebuild.
17614
17615Wed Jul 22 17:11:33 1998 Jeff Johnston <jjohnstn@cygnus.com>
17616
17617 * libm/math/wrf_lgamma.c (lgammaf_r): Initialize exc.err to 0 and
17c0c97d
EB
17618 also set exc.arg1, exc.arg2 appropriately in case matherr is supplied.
17619 * libm/math/wrf_gamma.c (gammaf_r): ditto
17620 * libm/math/wr_lgamma.c (lgamma_r): ditto
17621 * libm/math/wr_gamma.c (gamma_r): ditto
17622 * libm/math/wf_sqrt.c (sqrtf): ditto
17623 * libm/math/wf_sinh.c (sinhf): ditto
17624 * libm/math/wf_scalb.c (scalbf): ditto
17625 * libm/math/wf_remainder.c (remainderf): ditto
17626 * libm/math/wf_pow.c (powf): ditto
17627 * libm/math/wf_log10.c (log10f): ditto
17628 * libm/math/wf_log.c (logf): ditto
17629 * libm/math/wf_lgamma.c (lgammaf): ditto
17630 * libm/math/wf_jn.c (jnf, ynf): ditto
17631 * libm/math/wf_j1.c (j1f, y1f): ditto
17632 * libm/math/wf_j0.c (j0f, y0f): ditto
17633 * libm/math/wf_hypot.c (hypotf): ditto
17634 * libm/math/wf_gamma.c (gammaf): ditto
17635 * libm/math/wf_fmod.c (fmodf): ditto
17636 * libm/math/wf_exp.c (expf): ditto
17637 * libm/math/wf_cosh.c (coshf): ditto
17638 * libm/math/wf_atanh.c (atanhf): ditto
17639 * libm/math/wf_atan2f.c (atan2f): ditto
17640 * libm/math/wf_asin.c (asinf): ditto
17641 * libm/math/wf_acosh.c (acoshf): ditto
17642 * libm/math/wf_acos.c (acosf): ditto
17643 * libm/math/w_sqrt.c (sqrt): ditto
17644 * libm/math/w_sinh.c (sinh): ditto
17645 * libm/math/w_scalb.c (scalb): ditto
17646 * libm/math/w_remainder.c (remainder): ditto
17647 * libm/math/w_pow.c (pow): ditto
17648 * libm/math/w_log10.c (log10): ditto
17649 * libm/math/w_log.c (log): ditto
17650 * libm/math/w_lgamma.c (lgamma): ditto
17651 * libm/math/w_jn.c (jn, yn): ditto
17652 * libm/math/w_j1.c (j1, y1): ditto
17653 * libm/math/w_j0.c (j0, y0): ditto
17654 * libm/math/w_hypot.c (hypot): ditto
17655 * libm/math/w_gamma.c (gamma): ditto
17656 * libm/math/w_fmod.c (fmod): ditto
17657 * libm/math/w_exp.c (exp): ditto
17658 * libm/math/w_cosh.c (cosh): ditto
17659 * libm/math/w_atanh.c (atanh): ditto
17660 * libm/math/w_atan2f.c (atan2): ditto
17661 * libm/math/w_asin.c (asin): ditto
17662 * libm/math/w_acosh.c (acosh): ditto
17663 * libm/math/w_acos.c (acos): ditto
8a0efa53
CF
17664
17665Tue Jul 21 12:34:54 1998 Ian Lance Taylor <ian@cygnus.com>
17666
17667 * libm/math/Makefile.am (src): Add w_cabs.c and w_drem.c.
17668 (fsrc): Add wf_cabs.c and wf_drem.c.
17669 * libm/math/Makefile.in: Rebuild.
17670
17671 * Makefile.am (AM_MAKEFLAGS): Add CFLAGS_FOR_BUILD. Remove some
17672 unused directory variables. Remove duplicate CFLAGS.
17673 * Makefile.in: Rebuild.
17674
17675 * doc/Makefile.am ($(MKDOC)): Don't use $(CFLAGS) when building
17676 with $(CC_FOR_BUILD).
17677 (makedoc.o): Likewise.
17678 * doc/Makefile.in: Rebuild.
17679
17680 * libc/sys/cygwin32/Makefile.am (EXTRA_LIBRARIES): Define, to
17681 force a definition of COMPILE.
17682 (libfoo_a_SOURCES): Define.
17683 * libc/sys/cygwin32/Makefile.in: Rebuild.
17684 * libc/sys/tic80/Makefile.am (EXTRA_LIBRARIES): Define, to
17685 force a definition of COMPILE.
17686 (libfoo_a_SOURCES): Define.
17687 * libc/sys/tic80/Makefile.in: Rebuild.
17688
17689Mon Jul 20 20:49:24 1998 Christopher Faylor <cgf@cygnus.com>
17690
17691 * libc/include/sys/fcntl.h: Add O_NOINHERIT, Win32-specific
17692 flag.
17693
17694Fri Jul 17 16:13:16 1998 Ian Lance Taylor <ian@cygnus.com>
17695
17696 * Build using autoconf and automake. Added many Makefile.am and
17697 configure.in files, plus generated files. Old configure.in files
17698 and all old Makefile.in files completely replaced. Removed
17699 host/any. Added acinclude.m4 and configure.host.
17700
17701Sat Jul 11 18:14:49 1998 Felix Lee <flee@cygnus.com>
17702
17703 * libc/stdio/vfprintf.c: enable long long support, sometimes.
17704 * configure.in (*-*-cygwin32): add -DWANT_PRINTF_LONG_LONG.
17705
17706Tue Jul 7 01:51:55 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
17707
17708 * libc/machine/sh/strcmp.S, libc/machine/sh/strcpy.S: New files.
17709 * libc/machine/sh/Makefile.in: Add rules for new files.
17710
17711Tue Jul 7 01:40:55 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
17712
17713 * libc/machine/sh/asm.h (SL, DELAYED_BRANCHES): Define.
17714 * libc/machine/sh/memset.S (memset): Remove uses of dt; shorten code.
17715 * libc/machine/sh/memcpy.S (SL, DELAYED_BRANCHES): Don't define.
17716
17717Thu Jul 2 10:33:16 1998 Nick Clifton <nickc@cygnus.com>
17718
17719 * libc/sys/arm/syscalls.c (_exit): Add comment, noting that exit
17720 code is ignored.
17721
17722Wed Jun 24 13:56:54 1998 Jeff Johnston <jjohnstn@cygnus.com>
17723
17724 * libc/stdio/tmpnam.c (_tmpnam_r): Changed routine to use
17725 internal static buffer when s is NULL, as prescribed by ANSI.
17726
177271998-06-22 Vladimir N. Makarov <vmakarov@cygnus.com>
17728
17729 * libc/sys/h8300hms/Makefile.in (OFILES): malloc.o has been
17730 removed.
17731 * libc/sys/h8300hms/malloc.c: has been removed. Now malloc.c from
17732 libc/stdlib will be used for h8300hms.
17c0c97d 17733
8a0efa53
CF
17734Thu Jun 18 16:56:05 1998 Jeff Johnston <jjohnstn@cygnus.com>
17735
17736 * libc/machine/mn10300/strlen.S (_strlen): New optimized assembler
17737 version that can be built either for speed or size.
17738 * libc/machine/mn10300/memset.S (_memset): ditto
17739 * libc/machine/mn10300/memchr.S (_memchr): ditto
17740 * libc/machine/mn10300/memcpy.S (_memcpy): ditto
17741 * libc/machine/mn10300/memcmp.S (_memcmp): ditto
17742 * libc/machine/mn10300/strchr.S (_strchr): ditto
17743 * libc/machine/mn10300/strcmp.S (_strcmp): ditto
17744 * libc/machine/mn10300/strcpy.S (_strcpy): ditto
17745 * libc/machine/mn10300/Makefile.in: Added entries for
17c0c97d 17746 memchr.o, memcmp.o, memcpy.o, memset.o, strchr.o,
8a0efa53
CF
17747 strcmp.o, strcpy.o, and strlen.o.
17748
17749Wed Jun 17 12:50:26 1998 Mark Alexander <marka@cygnus.com>
17750
17751 * configure.in: Don't use libc/sys/sysmec for MN10200; it's
17752 been replaced with libgloss/mn10200.
17753
17754Fri Jun 12 14:34:39 1998 Michael Meissner <meissner@cygnus.com>
17755
17756 * libc/string/strchr.c (strchr): Make s a constant pointer to
17757 avoid warning.
17758
17759Tue Jun 9 16:29:30 1998 Jason Molenda (crash@bugshack.cygnus.com)
17760
17761 * configure.in (target == arm* or thumb*): Define ARM_RDI_MONITOR
17762 instead of ARM_RDP_MONITOR (sys/libc/arm/crt0.S to assume Angel
17763 board SWIs instead of Demon board SWIs).
17764
17765Thu Jun 4 12:16:46 1998 Michael Meissner <meissner@cygnus.com>
17766
17767 * libc/string/strncat.c (strncat): Make -Os act the same as
17768 PREFER_SIZE_OVER_SPEED being defined.
17769
17770Wed Jun 3 17:52:33 1998 Michael Meissner <meissner@cygnus.com>
17771
17772 * libc/string/memchr.c (memchr): Make -Os act the same as
17773 PREFER_SIZE_OVER_SPEED being defined.
17774 * libc/string/memcmp.c (memcmp): Ditto.
17775 * libc/string/memcpy.c (memcpy): Ditto.
17776 * libc/string/memset.c (memset): Ditto.
17777 * libc/string/strcat.c (strcat): Ditto.
17778 * libc/string/strchr.c (strchr): Ditto.
17779 * libc/string/strcmp.c (strcmp): Ditto.
17780 * libc/string/strcpy.c (strcpy): Ditto.
17781 * libc/string/strlen.c (strlen): Ditto.
17782 * libc/string/strncat.c (strncat): Ditto.
17783 * libc/string/strncmp.c (strncmp): Ditto.
17784 * libc/string/strncpy.c (strncpy): Ditto.
17785
17786Mon Jun 1 15:25:07 1998 Geoffrey Noer <noer@cygnus.com>
17787
17788 * libc/include/sys/itimer.h: remove
17789 * libc/include/sys/time.h: itimer stuff should be here
17790
17791Mon Jun 1 16:31:29 1998 Jeff Johnston <jjohnstn@cygnus.com>
17792
17793 * libc/stdio/vfprintf.c (cvt): Changed code to look at sign
17794 bit instead of comparing to 0 so -0.0 can be printed correctly.
17795
17796Sat May 30 09:33:51 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
17797
17798 * libc/stdlib/mprec.c (b2d): Inilialize d in non-VAX case too.
17799
17800Fri May 29 22:25:10 1998 Geoffrey Noer <noer@cygnus.com>
17801
17802 * libc/include/sys/unistd.h: fix sync() proto
17803 * libc/include/sys/fcntl.h: remove _close which is already
17804 defined in unistd.h.
17805 * libc/include/sys/time.h: add getitimer proto
17806
17807Fri May 29 16:10:28 1998 Geoffrey Noer <noer@cygnus.com>
17808
17809 * libc/string/strchr.c: convert arg to unsigned char
17810 * libc/include/stdlib.h: add protos for random, srandom
17811 * libc/include/sys/stat.h: add lstat proto
17812 * libc/include/sys/time.h: add setitimer proto
17813 * libc/include/sys/unistd.h: add readlink, symlink protos
17814 * libc/include/process.h: instead of including windows.h and using
17815 HANDLEs in sexec protos, just use void *s. Need to include
17816 sys/types.h.
17817
17818Fri May 29 03:04:29 1998 Geoffrey Noer <noer@cygnus.com>
17819
17820 * libc/include/sys/fcntl.h: add _close proto for Cygwin32
17821
17822Thu May 28 16:34:21 1998 Geoffrey Noer <noer@cygnus.com>
17823
17824 * libc/include/process.h: add secure exec protos
17825
17826Wed May 27 13:54:51 1998 Jeffrey A Law (law@cygnus.com)
17827
17828 * libc/stdlib/dtoa.c (_dtoa_r): Use "double_union" for variables
17829 which are accessed as both doubles and integers.
17830 * libc/stdlib/mprec.c (ulp, b2d, ratio): Likewise.
17831 * libc/stdlib/strtod.c (_strtod_r): Likewise.
17832 * libc/stdlib/mprec.h: Add "union double_union" and change
17833 word0/word1 macros to use it.
17834
17835Tue May 26 18:04:21 1998 Geoffrey Noer <noer@cygnus.com>
17836
17837 * libc/include/sys/signal.h: add __cplusplus wrapper
17838
17839Tue May 26 15:10:22 1998 Geoffrey Noer <noer@cygnus.com>
17840
17841 * libc/include/sys/utime.h: new generic file that gets replaced by
17842 libc/sys/SYSDIR/sys/utime.h on systems that support the utime
17843 function.
17844 * sys/cygwin32/sys/utime.h: use _EXFUN in utime proto
17845 * libc/include/time.h: remove duplicate utime proto
17846 * libc/include/utime.h: add comment
17847
17848Sun May 24 23:56:20 1998 Christopher Faylor <cgf@cygnus.com>
17849
17850 * libc/include/sys/time.h: Add missing include to
17851 allow use of _EXFUN. Remove times function that is
17852 already defined in times.h.
17853
17854Sun May 24 01:32:14 1998 Christopher Faylor <cgf@cygnus.com>
17855
17856 * libc/include/time.h: Fix typo in tzset.
17857
17858Fri May 22 17:00:48 1998 Geoffrey Noer <noer@cygnus.com>
17859
17860 * libc/include/sys/time.h: add missing Cygwin32 function protos
17861 * libc/include/sys/unistd.h: ditto
17862 * libc/include/time.h: ditto
17863
17864Wed May 20 20:35:11 1998 Geoffrey Noer <noer@cygnus.com>
17865
17866 * libc/sys/cygwin32/sys/param.h: add protected NULL def, remove
17867 FIXME.
17868 * libc/include/sys/types.h: add a new __MS_types__ section
17869 to define vm_offset_t, vm_size_t, int32_t et al, register_t,
17870 __BIT_TYPES_DEFINED__.
17871
17872Wed May 20 18:49:21 1998 Geoffrey Noer <noer@cygnus.com>
17873
17874 * libc/sys/cygwin32/sys/param.h: move here from winsup/include/sys
17875 since it overrides the one in libc/include/sys. Also, start
17876 including types.h.
17877
17878Wed May 20 14:45:40 1998 Geoffrey Noer <noer@cygnus.com>
17879
17880 * libm/math/Makefile.in: add s_signgam.o to obj list
17881
17882Tue May 19 11:57:11 1998 Jeff Johnston <jjohnstn@cygnus.com>
17883
17884 * libc/include/sys/reent.h (_REENT_INIT): Initialize current locale to "C".
17885
17886Mon May 18 22:36:12 1998 Christopher Faylor <cgf@cygnus.com>
17887
17888 * libc/include/sys/signal.h: cygwin32 exports sig{empty,add}set,
17889 so don't use defines.
17890
17891Mon May 18 19:01:02 1998 Michael Meissner <meissner@cygnus.com>
17892
17893 * libc/sys/d10v/crt0.S: Use correct stab for 16-bit ints.
17894
17895Sun May 17 18:40:32 1998 Frank Ch. Eigler <fche@cygnus.com>
17896
17897 * libc/stdlib/mbtowc_r.c (_mbtowc_r): Accept a NULL
17c0c97d 17898 _current_locale as default locale.
8a0efa53
CF
17899
17900Sat May 16 21:59:59 1998 Bob Manson <manson@charmed.cygnus.com>
17901
17902 * libc/stdlib/mallocr.c (mALLOc): Add explicit tests for
17c0c97d 17903 insufficient space in a chunk.
8a0efa53
CF
17904
17905Tue May 12 14:41:01 1998 Jeff Johnston <jjohnstn@cygnus.com>
17906
17907 * configure.in (links): Added check for --enable-newlib-mb configure
17908 option which defines the MB_CAPABLE macro.
17909 * libc/locale/locale.c (_setlocale_r): Added support for setting
17910 LC_CTYPE to "C-JIS", "C-SJIS" or "C-EUCJP", when MB_CAPABLE is
17911 defined.
17912 * libc/stdlib/mbtowc_r.c (_mbtowc_r): New function _mbtowc_r that
17913 implements mbtowc() with multibyte support for JIS, SJIS, and EUC-JP.
17914 * libc/stdlib/wctomb_r.c (_wctomb_r): New function _wctomb_r that
17915 implements wctomb() with multibyte support for JIS, SJIS, and EUC-JP.
17916 * libc/stdlib/mbstowcs_r.c (_mbstowcs_r): New function _mbstowcs_r that
17c0c97d 17917 implements mbstowcs() with multibyte support for JIS, SJIS, and EUC-JP.
8a0efa53
CF
17918 * libc/stdlib/wcstombs_r.c (_wcstombs_r): New function _wcstomb_r that implements
17919 wcstombs() with multibyte support for JIS, SJIS, and EUC-JP.
17920 * libc/stdlib/Makefile.in: Added new multibyte
17921 routines: _mbtowc_r(), _wctomb_r(), _mbstowcs_r(), and _wcstombs_r().
17922 * libc/include/stdlib.h: Added declarations of _mbtowc_r(), _wctomb_r(),
17923 _mbstowcs_r(), and _wcstombs_r().
17924 * libc/stdlib/mbctype.h: New internal header file that contains macros to test
17925 for JIS, SJIS, and EUC-JP characters.
17926 * libc/stdlib/mblen.c (mblen): Added code to call _mbtowc_r() if
17c0c97d 17927 MB_CAPABLE defined.
8a0efa53
CF
17928 * libc/stdlib/mbtowc.c (mbtowc): Added code to call _mbtowc_r() if
17929 MB_CAPABLE defined.
17930 * libc/stdlib/wctomb.c (wctomb): Added code to call _wctomb_r() if
17931 MB_CAPABLE defined.
17932 * libc/stdlib/mbstowcs.c (mbstowcs): Added code to call _mbstowcs_r()
17933 if MB_CAPABLE defined.
17934 * libc/stdlib/wcstombs.c (wcstombs): Added code to call _wcstombs_r()
17935 if MB_CAPABLE defined.
17936 * libc/stdio/vfscanf.c (__svfscanf): Added multibyte tolerance
17937 to the format string processing when MB_CAPABLE.
17938 * libc/stdio/vfprintf.c (_VFPRINTF_R): Changed mbtowc() call to
17939 call _mbtowc_r().
17940
17941Tue May 5 16:07:23 1998 Nick Clifton <nickc@cygnus.com>
17942
17943 The following modifications are courtesy of Anthony Thompson,
17944 athompson@cambridge.arm.com:
17945 * libc/sys/arm/syscalls.c: Initialise and track stdin/out/err for
17946 boith RDI and RDP monitors.
17947 * libc/sys/arm/crt0.S: Call initialise_monitor_handles() for both
17948 RDI and RDP monitors.
17949
17950Wed Apr 29 15:22:15 1998 Jeff Johnston <jjohnstn@cygnus.com>
17951
17952 * configure.in (links): Added -DHAVE_GETTIMEOFDAY for arm and thumb.
17953 * libc/sys/arm/syscalls.c (_gettimeofday _times): Added functions.
17954 (_swiopen): Fixed open flags to treat write with append as just append.
17955 (_swilseek): Fixed lseek support to properly handle offsets from SEEK_END.
17956 * libc/sys/arm/sys/param.h: New file to override param.h for ARM.
17957
17958Fri Apr 24 18:00:09 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
17959
17960 * libc/machine/sh/memcpy.S (L_odddst, big endian version):
17961 When needing to transfer an initial 2-byte-word, store as
17962 two single bytes.
17963
17964Wed Apr 22 17:56:03 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
17965
17966 * libc/sys/sh/crt0.S (start): Handle __SH4_SINGLE_ONLY__ like
17967 __SH3E__ .
17968 * libc/machine/sh/memcpy.S (DELAYED_BRANCHES, SL): Likewise.
17969 * libc/include/machine/ieeefp.h (_DOUBLE_IS_32BITS): Likewise.
17970
17971Wed Apr 22 12:28:03 1998 Michael Meissner <meissner@cygnus.com>
17972
17973 * configure.in (target_cflags): If --enable-target-optspace, use
17974 -Os to compile newlib rather than -O2. Default to using -Os for
17975 d10v, d30v and m32r if --{enable,disable}-target-optspace is not
17976 used.
17977
17978Tue Apr 21 23:13:34 1998 Geoffrey Noer <noer@cygnus.com>
17979
ba3ccd63
EB
17980 * libc/include/machine/setjmp.h: change sigsetjmp and
17981 siglongjmp definitions to use an array instead of a struct
17982 for __CYGWIN32__
8a0efa53
CF
17983
17984Tue Apr 14 11:47:47 1998 Doug Evans <devans@canuck.cygnus.com>
17985
17986 * libc/reent/impure.c (__ATTRIBUTE_IMPURE_DATA__): Fix spelling.
17987
17988Mon Apr 6 15:05:08 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
17989
17990 * libc/string/strxfrm.c: fix to get correct return value
17991
17992Wed Apr 1 16:09:05 1998 Nick Clifton <nickc@cygnus.com>
17993
17994 * libc/sys/arm/crt0.S: Set top of RAM to be 0x800000 for PE
17995 builds. Make mode change labels global so that they will be seen
17996 by the debugger.
17997
17998Wed Mar 18 09:45:10 1998 Nick Clifton <nickc@cygnus.com>
17999
18000 * configure.in (links): Do not use ARM debiugging protocols for PE
18001 builds.
18002
18003 * libc/sys/arm/syscalls.c (_sbrk): Add "_sbrk: " to error
17c0c97d 18004 message.
8a0efa53
CF
18005
18006Fri Mar 13 11:24:34 1998 Jeff Johnston <jjohnstn@cygnus.com>
18007
18008 * libc/stdio/findfp.c (__sinit): Made stdout default to
18009 line buffered mode as defined by ANSI.
18010
18011Tue Mar 10 11:41:26 1997 Bob Manson <manson@charmed.cygnus.com>
18012
18013 * libc/include/sys/itimer.h: New file.
18014
18015 * libc/signal/signal.c (__sigtramp_r,__sigtramp): New functions.
18016
18017Mon Mar 9 14:19:26 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
18018
18019 * libc/machine/sh/memcpy.S: (_memcpy): Fix for execute/memcpy-1.c
18020 failure.
18021
18022Fri Feb 27 13:56:10 1998 Michael Meissner <meissner@cygnus.com>
18023
18024 * libc/machine/d30v/setjmp.S (longjmp): Fix order of parallel
18025 insns.
18026
18027Wed Feb 25 09:29:54 1998 Nick Clifton <nickc@cygnus.com>
18028
18029 * libc/sys/arm/syscalls.c (_open): Add varags to conform to prototype.
18030
18031Tue Feb 24 18:00:13 1998 Michael Meissner <meissner@cygnus.com>
18032
18033 * libc/machine/d30v/{setjmp.S,Makefile.in}: New files for D30V
18034 support.
18035
18036 * libc/include/machine/setjmp.h: Add D30V support.
18037
18038 * configure.in (d30v-*): Add d30v machine directory.
18039
18040Mon Feb 23 09:32:58 1998 Mark Alexander <marka@cygnus.com>
18041
18042 * configure.in: Don't use libc/sys/sysmec for MN10300; it's
18043 been replaced with libgloss/mn10300.
18044
18045Sat Feb 21 17:44:43 1998 Geoffrey Noer <noer@cygnus.com>
18046
18047 * libc/stdlib/mallocr.c: remove __malloc_copy routine now that
18048 it is no longer needed.
18049
18050Thu Feb 19 16:15:10 1998 Geoffrey Noer <noer@cygnus.com>
18051
ba3ccd63 18052 * libc/include/sys/signal.h: add sigpause proto for Cygwin32
8a0efa53
CF
18053
18054Wed Feb 18 23:51:08 1998 Geoffrey Noer <noer@cygnus.com>
18055
18056 * libc/stdio/fdopen.c (fdopen): Make all writes go to the end of
ba3ccd63 18057 the file when O_APPEND is set, wherever the EOF happens to be at
17c0c97d 18058 that time.
8a0efa53
CF
18059
18060Wed Feb 18 23:25:02 1998 Geoffrey Noer <noer@cygnus.com>
17c0c97d 18061
8a0efa53
CF
18062 patch from cgf@bbc.com (Christopher Faylor):
18063 * libc/stdio/freopen.c (freopen): Conform to standard UNIX
18064 convention of closing fp prior to attempting to open the file
18065 argument. This allows correct operation when reopening
18066 stdin/stdout/stderr. Replaces last freopen.c patch.
18067
18068Wed Feb 18 16:27:40 1998 Geoffrey Noer <noer@cygnus.com>
18069
ba3ccd63
EB
18070 patch from cgf@bbc.com (Christopher Faylor):
18071 * libc/stdio/freopen.c: freopen was not preserving the fd
18072 of the stream being operated on. This confuses programs that
18073 expect that the handles for stdout and stderr will be 1 and 2.
8a0efa53
CF
18074
18075Mon Feb 16 23:34:07 1998 Andrew Cagney <cagney@b1.cygnus.com>
18076
18077 * libc/sys/d10v/crt0.S (_start): Set PSW{SW} - select SPU.
18078
18079Thu Feb 12 15:09:20 1998 Ranjith Kumaran <ranjith@cygnus.com>
18080
18081 * libc/sys/go32/longjmp.S: Fix longjmp to not return 0.
18082
18083Wed Feb 11 17:50:45 1998 Jeff Johnston <jjohnstn@cygnus.com>
18084
18085 * libc/machine/powerpc/setjmp.S (setjmp, longjmp): Alignment code
18086 altered to not use a branch. Also added hint that last
18087 bclr in longjmp will likely result in branch.
17c0c97d 18088
8a0efa53
CF
18089
18090Mon Feb 9 03:44:02 1998 Geoffrey Noer <noer@cygnus.com>
18091
ba3ccd63 18092 * libc/sys/cygwin32/crt0.c: add missing args to main() extern
8a0efa53
CF
18093
18094Fri Feb 6 16:32:32 1998 Nick Clifton <nickc@cygnus.com>
18095
18096 * libc/sys/sysnecv850/crt0.S (_start): Initialise _ctbp even for
18097 v850 builds.
18098
17c0c97d 18099 * configure.in: Add -msmall-sld to target_cflags for v850 builds.
8a0efa53
CF
18100
18101Wed Feb 4 16:56:20 1998 Jeff Johnston <jjohnstn@cygnus.com>
18102
18103 * libc/machine/powerpc/setjmp.S (longjmp): Fixed code
18104 that loads FR14 to specify offset of 8 rather than 4
18105 so it loads from offset 96 (where setjmp stored it).
18106
18107Tue Feb 3 18:08:34 1998 Jeff Johnston <jjohnstn@cygnus.com>
18108
18109 * libc/machine/sh/memcpy.S: (_memcpy): Update to
18110 latest version supplied by customer.
18111 * libc/machine/sh/memset.S (_memset): Ditto.
18112
18113Mon Feb 2 16:20:39 1998 Nick Clifton <nickc@cygnus.com>
18114
18115 * libc/sys/sysnecv850/Makefile.in (OFILES): Add link.o (for
17c0c97d 18116 PR14730).
8a0efa53
CF
18117
18118Mon Feb 2 15:13:26 1998 Geoffrey Noer <noer@cygnus.com>
18119
ba3ccd63 18120 * libc/include/string.h: remove redefinition of ffs
8a0efa53
CF
18121
18122Wed Jan 28 13:30:14 1998 Geoffrey Noer <noer@cygnus.com>
18123
ba3ccd63 18124 * libc/include/sys/signal.h: include _ansi.h so _EXFUN is
8a0efa53
CF
18125 defined
18126
18127Wed Jan 28 10:38:34 1998 Jeff Johnston <jjohnstn@cygnus.com>
18128
18129 * libc/machine/tic80/setjmp.S: Adding _setjmp to allow
17c0c97d
EB
18130 TI Libraries to link to libc.a
18131
8a0efa53
CF
18132Sat Jan 24 10:15:56 1998 Michael Meissner <meissner@cygnus.com>
18133
18134 * libc/include/sys/fcntl.h (_open,_fcntl): Add prototypes.
18135 * libc/include/sys/stat.h (_{,f}stat): Ditto.
18136 * libc/include/sys/wait.h (_wait): Ditto.
18137 * libc/include/sys/unistd.h (_close,_fork,_getpid): Ditto.
18138 (_link,_lseek,_read,_sbrk,_unlink,_write): Ditto.
18139
18140Fri Jan 23 11:32:10 1998 Michael Meissner <meissner@cygnus.com>
18141
18142 * libc/machine/d10v/setjmp.S: Change to new ABI. Add simple
18143 minded stabs so function name shows up when running the simulator
18144 with -t.
18145 * libc/sys/d10v/{crt0,trap}.S: Ditto.
18146
18147Thu Jan 22 15:57:14 1998 Fred Fish <fnf@cygnus.com>
18148
17c0c97d 18149 * libc/sys/d10v/trap.S: Change syscalls to use trap 15.
8a0efa53
CF
18150 * libc/sys/d10v/crt0.S: Use R6 where we used to use R2.
18151 Use R5 where we used to use R3.
17c0c97d 18152
8a0efa53
CF
18153Wed Jan 21 14:22:23 1998 Bill Moyer <billm@cygnus.com>
18154
18155 * libc/stdlib/getopt.c (getopt): replaced __progname
18156 with nargv[0] to improve portability to imbedded systems.
18157
18158Thu Jan 15 12:32:38 1998 Nick Clifton <nickc@cygnus.com>
18159
18160 * libc/sys/arm/syscalls.c (initialise_angel_handles): Applied
18161 patch supplied by Tont.Thompson@arm.com to fix the creation of the
18162 stdout file.
18163
18164Wed Jan 14 13:00:19 1998 Ian Lance Taylor <ian@cygnus.com>
18165
18166 * libc/stdio/tmpnam.c (worker): Generate a different file name
18167 each time.
18168
18169 * libc/posix/popen.c (popen): If __CYGWIN32__, and execing /bin/sh
18170 fails, try an execlp for sh.
18171
18172 * host/any (INCLUDES): If target_os is cygwin32, then add a -I
18173 option for the winsup include directory.
18174
18175Wed Jan 7 17:02:58 1998 Nick Clifton <nickc@cygnus.com>
18176
18177 * libc/sys/arm/syscalls.c: Applied patches for Angel based remote
18178 debugging interface from Tony.Thompson@arm.com.
17c0c97d 18179
8a0efa53
CF
18180 * libc/sys/arm/crt0.S (_mainCRTStartup): ditto.
18181 * libc/sys/arm/swi.h: ditto.
18182
18183Tue Jan 6 14:15:10 1998 Geoffrey Noer <noer@cygnus.com>
18184
18185 * libc/sys/cygwin32/sys/dirent.h: add __d_dirhash field to
18186 DIR struct used for readdir hashes.
18187
18188Thu Jan 1 11:22:22 1998 Jeffrey A Law (law@cygnus.com)
18189
18190 * libc/string/strchr.c: Use "unsigned chars" as necessary.
18191
18192Wed Dec 31 04:25:30 1997 Jeffrey A Law (law@cygnus.com)
18193
18194 * libc/stdlib/mallocr.c (idx2binblock): Don't lose on 16bit
18195 integer targets.
18196
18197Sat Dec 13 15:11:06 1997 Ian Lance Taylor <ian@cygnus.com>
18198
18199 * libc/stdlib/mallocr.c (__malloc_copy): New function, compiled if
18200 INTERNAL_NEWLIB and __CYGWIN32__ and DEFINE_MALLOC.
18201 * libc/include/malloc.h: Add extern "C" if __cplusplus.
18202 (__malloc_copy): Declare.
18203
18204Wed Dec 10 12:15:54 1997 Ian Lance Taylor <ian@cygnus.com>
18205
18206 * libc/stdlib/mallocr.c: If INTERNAL_NEWLIB, include
18207 <sys/config.h>.
18208 (POINTER_UINT): Define.
18209 (DEFAULT_TRIM_THRESHOLD): Mark constants as long.
18210 (MALLOC_ALIGNMENT): Don't define if already defined.
18211 (malloc_extend_top): Cast pointers to POINTER_UINT, not unsigned
18212 long.
18213
18214Tue Dec 9 19:23:42 1997 Michael Meissner <meissner@cygnus.com>
18215
18216 * libc/string/memset.c (memset): Fiddle with code so that the long
18217 value being stored is not a stack value. Unroll storing longs 4
18218 times.
18219
18220Tue Dec 9 14:13:18 1997 Jeff Johnston <jjohnstn@cygnus.com>
18221
18222 * Reduce code size for libm modules.
18223 * libm/math/w_sqrt.c (sqrt): Remove call to kernel_standard
18224 and simply move code into sqrt.
18225 * libm/math/wrf_lgamma.c (lgammaf_r): Likewise.
18226 * libm/math/wr_lgamma.c (lgamma_r): Likewise.
18227 * libm/math/wrf_gamma.c (gammaf_r): Likewise.
18228 * libm/math/wr_gamma.c (gamma_r): Likewise.
18229 * libm/math/wf_sinh.c (sinfh): Likewise.
18230 * libm/math/w_sinh.c (sinh): Likewise.
18231 * libm/math/wf_scalb.c (scalbf): Likewise.
18232 * libm/math/w_scalb.c (scalb): Likewise.
18233 * libm/math/wf_remainder.c (remainderf): Likewise.
18234 * libm/math/w_remainder.c (remainder): Likewise.
18235 * libm/math/wf_pow.c (powf): Likewise.
18236 * libm/math/w_pow.c (pow): Likewise.
18237 * libm/math/wf_log10.c (log10f): Likewise.
18238 * libm/math/w_log10.c (log10): Likewise.
18239 * libm/math/wf_log.c (logf): Likewise.
18240 * libm/math/w_log.c (log): Likewise.
18241 * libm/math/w_lgamma.c (lgamma): Likewise.
18242 * libm/math/wf_lgamma.c (lgammaf): Likewise.
18243 * libm/math/wf_jn.c (jnf): Likewise.
18244 * libm/math/w_jn.c (jn): Likewise.
18245 * libm/math/wf_j1.c (j1f): Likewise.
18246 * libm/math/w_j1.c (j1): Likewise.
18247 * libm/math/wf_j0.c (j0f): Likewise.
18248 * libm/math/w_j0.c (j0): Likewise.
18249 * libm/math/wf_hypot.c (hypotf): Likewise.
18250 * libm/math/w_hypot.c (hypot): Likewise.
18251 * libm/math/wf_gamma.c (gammaf): Likewise.
18252 * libm/math/w_gamma.c (gamma): Likewise.
18253 * libm/math/wf_fmod.c (fmodf): Likewise.
18254 * libm/math/w_fmod.c (fmod): Likewise.
18255 * libm/math/wf_exp.c (expf): Likewise.
18256 * libm/math/w_exp.c (exp): Likewise.
18257 * libm/math/wf_cosh.c (coshf): Likewise.
18258 * libm/math/w_cosh.c (cosh): Likewise.
18259 * libm/math/wf_atanh.c (atanhf): Likewise.
18260 * libm/math/w_atanh.c (atanh): Likewise.
18261 * libm/math/wf_atan2.c (atan2f): Likewise.
18262 * libm/math/w_atan2.c (atan2): Likewise.
18263 * libm/math/wf_asin.c (asinf): Likewise.
18264 * libm/math/w_asin.c (asin): Likewise.
18265 * libm/math/wf_acosh.c (acoshf): Likewise.
18266 * libm/math/w_acosh.c (acosh): Likewise.
18267 * libm/math/wf_acos.c (asocf): Likewise.
18268 * libm/math/w_acos.c (acos): Likewise.
18269 * libm/math/wf_sqrt.c (sqrtf): Likewise.
18270 * libm/math/k_standard.c (_k_standard): Don't require SVID behavior
18271 for embedded systems.
18272
18273Mon Dec 8 12:12:58 1997 Ian Lance Taylor <ian@cygnus.com>
18274
18275 * libc/stdlib/mallocr.c (malloc_extend_top): Add patch from Doug
18276 Lea in case of a foreign sbrk.
18277
18278Fri Dec 5 23:27:28 1997 Ian Lance Taylor <ian@cygnus.com>
18279
18280 Incorporate Doug Lea's malloc:
18281 * libc/stdlib/mallocr.c: Completely replaced.
18282 * libc/stdlib/malloc.c: Document malloc_usable_size and memalign.
18283 (realloc): Remove.
18284 * libc/stdlib/calloc.c (calloc): Just call _calloc_r.
18285 * libc/stdlib/mstats.c: Document mallinfo, malloc_stats, and
18286 mallopt.
18287 (mallinfo, malloc_stats, mallopt): New functions.
18288 (_mstats_r): Just call _malloc_stats_r.
18289 * libc/stdlib/malign.c: New file.
18290 * libc/stdlib/mlock.c: New file.
18291 * libc/stdlib/msize.c: New file.
18292 * libc/stdlib/mtrim.c: New file.
18293 * libc/stdlib/realloc.c: New file.
18294 * libc/stdlib/valloc.c: New file.
18295 * libc/stdlib/malloc.h: Remove.
18296 * libc/stdlib/callocr.c: Remove.
18297 * libc/stdlib/Makefile.in (OFILES): Add cfreer.o, freer.o,
18298 malign.o, malignr.o, mallinfor.o, malloptr.o, mallstatsr.o,
18299 mlock.o, msize.o, msizer.o, mtrim.o, pvallocr.o, realloc.o,
18300 reallocr.o, valloc.o, vallocr.o.
18301 (CHEWOUT_FILES): Add mlock.def, mstats.def.
18302 (MALLOC_CFLAGS): New variable.
18303 (mallocr.o): New target, build from mallocr.c.
18304 (freer.o, reallocr.o, callocr.o, cfreer.o, malignr.o): Likewise.
18305 (vallocr.o, pvallocr.o, mallinfor.o, mallstatsr.o): Likewise.
18306 (msizer.o, malloptr.o): Likewise.
18307 (malign.o, mlock.o, msize.o, mtrim.o, realloc.o): New targets.
18308 (valloc.o): New target.
18309 * libc/stdlib/stdlib.tex: Include mlock.def and mstats.def.
18310 * libc/include/malloc.h: Declare struct mallinfo, and new
18311 routines.
18312 * libc/include/stdlib.h (cfree): Correct declaration.
18313
18314Tue Dec 2 10:12:16 1997 Nick Clifton <nickc@cygnus.com>
18315
18316 * libc/include/machine/setjmp.h: Add support for Thumb target.
18317
18318 * libc/include/machine/ieeefp.h: Add support for Thumb target.
18319
18320 * configure.in (links): Add support for Thumb target.
18321
18322Wed Nov 26 09:56:17 1997 Nick Clifton <nickc@cygnus.com>
18323
18324 * libc/sys/arm/setjmp.S: Updated with version from branch.
18325
18326Thu Nov 20 01:21:43 1997 Geoffrey Noer <noer@cygnus.com>
18327
18328 * libc/include/stdio.h: add POSIX-required define L_ctermid
18329 for ctermid
18330
18331Wed Nov 19 16:11:40 1997 Michael Meissner <meissner@cygnus.com>
18332
18333 * configure.in (d30v-*-*): Define ABORT_MESSAGE, SMALL_MEMORY, in
18334 addition to MISSING_SYSCALL_NAMES.
18335
18336Mon Nov 17 20:05:05 1997 J"orn Rennecke <amylaar@cygnus.co.uk>
18337
18338 * libc/include/sys/config.h: (UINT_MAX, for D10V): Make unsigned.
18339
18340Mon Nov 10 22:26:55 1997 Geoffrey Noer <noer@cygnus.com>
18341
ba3ccd63
EB
18342 * libc/include/string.h: change strsignal proto to return
18343 a char *. This eliminates compile problems in gdb resulting
18344 from gdb's definition of strsignal in defs.h.
8a0efa53
CF
18345
18346Mon Nov 10 17:11:08 1997 Geoffrey Noer <noer@cygnus.com>
18347
ba3ccd63
EB
18348 * libc/sys/cygwin32/sys/utime.h: new (moved here from
18349 winsup/include) so as not to conflict with the one in
18350 libc/include.
8a0efa53
CF
18351 * libc/include/string.h: add protos for strsignal, strtosigno
18352
18353Mon Nov 10 13:49:54 1997 Michael Meissner <meissner@cygnus.com>
18354
18355 * libc/include/sys/config.h: Define __IEEE_BIG_ENDIAN if d30v.
18356
18357 * configure.in (d30v-*-*): Add configuration.
18358
18359Thu Oct 30 14:01:23 1997 Nick Clifton <nickc@cygnus.com>
18360
18361 * configure.in (links): Add -DARM_RD[P|I]_MONITOR to target_cflags
18362 to select which kind of debug monitor is in use for an ARM target.
18363
18364 * libc/sys/arm/crt0.S: New version: Supports Thumb startups and
18365 Angel and Demon debug monitors. Part of this code was supplied by
18366 Tony Thompson at ARM: athompso@arm.com.
18367
18368Fri Oct 24 18:57:05 1997 Jeffrey A Law (law@cygnus.com)
18369
18370 * strncat.c (strncat): Don't call strncpy; strncay has the wrong
18371 semantics when the count is greater than the length of the second
18372 source string.
18373
18374Thu Oct 23 01:37:41 1997 Geoffrey Noer <noer@cygnus.com>
18375
18376 * libc/include/sys/signal.h: reorder CYGWIN32 signal numbers
18377 * libc/include/sys/unistd.h: add protos for usleep, truncate,
18378 truncate and ftruncate take off_t, not size_t
18379
18380Tue Oct 21 18:42:00 1997 Jim Wilson <wilson@cygnus.com>
18381
18382 * libc/string/strcat.c (strcat): Add missing comment end.
18383 * libc/string/strncat.c (strncat): Likewise.
18384
18385Tue Oct 21 17:23:34 1997 Nick Clifton <nickc@cygnus.com>
18386
18387 * configure.in (links): Define PREFER_SIZE_OVER_SPEED for v850
17c0c97d
EB
18388 targets.
18389 * libc/string/{memchr.c, memcmp.c, memcpy.c}: Add space
8a0efa53 18390 optimised version which is selected if PREFER_SIZE_OVER_SPEED is
17c0c97d 18391 defined.
8a0efa53
CF
18392 * libc/string/{memset.c, strcat.c, strchr.c}: Likewise.
18393 * libc/string/{strcmp.c, strcpy.c, strlen.c}: Likewise.
18394 * libc/string/{strncat.c, strncmp.c, strncpy.c}: Likewise.
18395
18396Mon Oct 13 15:12:35 1997 Ian Lance Taylor <ian@cygnus.com>
18397
18398 * libc/include/sys/param.h (BIG_ENDIAN): Define if __i386__.
18399 (LITTLE_ENDIAN, BYTE_ORDER): Likewise.
18400
18401Thu Oct 9 13:54:44 1997 Doug Evans <dje@canuck.cygnus.com>
18402
18403 * libc/machine/i386/setjmp.S: New file.
18404 * libc/machine/i386/Makefile.in: Delete COPYOFILES.
18405 (OFILES): Add setjmp.o.
18406 (setjmp.o): Add rule for.
18407 * configure.in: Don't set machine_dir for *-*-{go32,sco*,cygwin32}.
18408
18409Tue Oct 7 14:01:29 1997 Bill Moyer (billm@cygnus.com)
18410 Jeffrey A Law (law@cygnus.com)
18411
18412 * libc/string/{memchr.c, memcmp.c, memcpy.c}: Reimplement to run faster.
18413 * libc/string/{memset.c, strcat.c, strchr.c}: Likewise.
18414 * libc/string/{strcmp.c, strcpy.c, strlen.c}: Likewise.
18415 * libc/string/{strncat.c, strncmp.c, strncpy.c}: Likewise.
18416
18417Mon Oct 6 14:07:59 1997 Nick Clifton <nickc@cygnus.com>
18418
18419 * libc/sys/sysnecv850/Makefile.in (crt0.o trap.o): Explicit
17c0c97d 18420 rules.
8a0efa53
CF
18421
18422 * libc/include/sys/config.h: Use __v850 to select v850
17c0c97d 18423 endianness.
8a0efa53
CF
18424
18425 * libc/include/machine/setjmp.h: Use __v850 to select v850 jump
18426 buffer size.
18427
18428 * libc/include/machine/ieeefp.h: Use __v850 to select v850
17c0c97d 18429 endianness.
8a0efa53
CF
18430
18431Thu Sep 25 14:11:37 1997 Geoffrey Noer <noer@cygnus.com>
18432
18433 * libc/stdlib/setenv.c: change unsetenv definition to match
18434 style of setenv (with _DEFUN). The string should be a const.
18435 * libc/include/stdlib.h: unsetenv proto should return void.
18436
18437Tue Sep 23 18:17:20 1997 Geoffrey Noer <noer@cygnus.com>
18438
18439 * libc/include/stdlib.h: define unsetenv proto for __CYGWIN32__
18440
18441Thu Sep 18 12:50:15 1997 Angela Marie Thomas (angela@cygnus.com)
18442
18443 * libc/stdio/glue.h: remove.
18444 * libc/stdio/findfp.c, libc/stdio/fwalk.c: remove #include "glue.h"
18445 * libc/stdio/Makefile.in: remove glue.h dependencies
18446
18447Wed Sep 17 17:42:27 1997 Nick Clifton <nickc@cygnus.com>
18448
18449 * libc/sys/sysnecv850/crt0.S: Created V850e version.
17c0c97d 18450
8a0efa53
CF
18451Tue Sep 9 10:40:57 1997 Doug Evans <dje@canuck.cygnus.com>
18452
18453 * configure.in (target_cpu): Add `arc'.
18454
18455Tue Sep 9 10:40:42 1997 Joel Sherrill <joel@OARcorp.com>
18456
17c0c97d 18457 * newlib/configure.in (*-*-rtems*): Add -DSIGNAL_PROVIDED and
8a0efa53
CF
18458 -DREENTRANT_SYSCALLS_PROVIDED to the target_cflags.
18459 * newlib/libc/include/sys/errno.h: Add ENOTSUP.
18460 * newlib/libc/reent/reent.c: Add _wrapup_reent.
18461 * newlib/libc/sys/rtems/sys/types.h: Avoid redefinitions for go32.
18462
18463Sun Sep 7 16:41:41 1997 Gavin Koch <gavin@cygnus.com>
18464
18465 * libc/machine/mips/setjmp.S: Handle mips16 builds.
18466
18467Thu Aug 21 20:05:38 1997 Ian Lance Taylor <ian@cygnus.com>
18468
18469 * libc/include/stdio.h (siprintf): Declare.
18470
18471Mon Aug 18 11:19:13 1997 Nick Clifton <nickc@cygnus.com>
18472
18473 * libc/sys/sysnecv850/Makefile.in (.c.o): Add rule that includes
18474 TARGET_CFLAGS and NEWLIB_FLAGS.
18475
18476Mon Aug 18 11:15:43 1997 Nick Clifton <nickc@cygnus.com>
18477
18478 * configure.in (links): Add support for v850ea target.
18479
18480Mon Aug 18 11:15:43 1997 Nick Clifton <nickc@cygnus.com>
18481
18482 * configure.in (links): Add support for v850e target.
18483
18484Wed Aug 13 19:16:54 1997 Nick Clifton <nickc@cygnus.com>
18485
18486 * libc/sys/sysnecv850/crt0.S: Remove initial setting of r0 to 0.
18487
18488Mon Aug 11 15:49:54 1997 Doug Evans <dje@canuck.cygnus.com>
18489
18490 * configure.in (arc-*-*): Add support for.
18491 * libc/include/machine/ieeefp.h (__arc__): Add support for the ARC.
18492
18493Fri Jul 25 17:37:41 1997 J"orn Rennecke <amylaar@cygnus.co.uk>
18494
18495 * libc/sys/sh/crt0.S (start): Add fpscr initialization for SH4.
18496
18497Thu Jul 24 18:32:17 1997 Geoffrey Noer <noer@cygnus.com>
18498
18499 * libc/stdlib/bsearch.c (bsearch): remove last unneeded
18500 comparison which accesses invalid memory when the key is
18501 larger than the last member of the array.
18502 * libc/include/machine/setjmp.h: add sigsetjmp, siglongjmp
18503 for CYGWIN32
18504 * libc/include/sys/unistd.h: add _POSIX defines for CYGWIN32
18505
18506Tue Jul 22 16:03:06 1997 Ian Lance Taylor <ian@cygnus.com>
18507
18508 * libc/include/stdlib.h (realpath): Declare if __CYGWIN32__ and
18509 not _STRICT_ANSI.
18510
18511Thu Jul 10 15:11:52 1997 Doug Evans <dje@canuck.cygnus.com>
18512
18513 * libm/math/k_standard.c (__kernel_standard): Call fflush(stdout)
18514 ifndef _USE_WRITE, instead of ifdef _USE_WRITE.
18515
18516Thu Jul 10 16:00:09 1997 Mike Meissner <meissner@cygnus.com>
18517
18518 * libc/machine/tic80/setjmp.S (setjmp,longjmp): Use ld.d and st.d
18519 to load/store memory.
18520
18521Mon Jul 7 17:38:17 1997 Ian Lance Taylor <ian@cygnus.com>
18522
18523 * libc/include/sys/fcntl.h: Define _O_* symbols with leading
18524 underscores if _WIN32.
18525
18526Wed Jul 2 10:07:20 1997 Doug Evans <dje@canuck.cygnus.com>
18527
18528 * libm/math/k_standard.c (__kernel_standard): Delete reentrancy
18529 support ifdef _USE_WRITE missed in last change.
18530 From Anders Blomdell <anders.blomdell@control.lth.se>.
18531
18532Wed Jun 25 10:18:49 1997 Doug Evans <dje@canuck.cygnus.com>
18533
18534 * libc/stdio/tmpnam.c (worker): Handle _open_r being stubbed out.
18535 (_tmpnam_r, _tempnam_r): Update.
18536
18537Wed Jun 25 00:16:55 1997 Mark Alexander <marka@cygnus.com>
18538
18539 * libc/machine/sparc/setjmp.S: New file.
18540 * libc/machine/sparc/Makefile.in: Add setjmp.
18541 * libc/include/machine/setjmp.h: Increase jmpbuf size for sparc.
18542
18543Tue Jun 24 23:27:38 1997 Mark Alexander <marka@cygnus.com>
18544
18545 * libc/include/machine/setjmp.h: Use __TIC80__ instead of __tic80__.
18546
18547Tue Jun 24 14:53:40 1997 Doug Evans <dje@canuck.cygnus.com>
18548
18549 From Joel Sherrill <joel@oarcorp.com>.
18550 * libc/stdlib/getenv.c (_findenv): Avoid dereferencing null `environ'.
18551
18552 Add rtems support. From Joel Sherrill <joel@oarcorp.com>.
18553 * configure.in: Recognize *-*-rtems*.
18554 * libc/sys/rtems/{Makefile.in,crt0.c,dummysys.c}: New files.
18555 * libc/sys/rtems/sys/{features.h,sched.h,siginfo.h,signal.h,
18556 time.h,times.h,types.h}: New files.
18557 * libc/sys/rtems/include/{limits.h,signal.h,time.h}. New files.
18558
18559Fri Jun 20 11:13:16 1997 Geoffrey Noer <noer@cygnus.com>
18560
18561 patch from sos@prospect.com.ru (Sergey Okhapkin):
ba3ccd63
EB
18562 * include/sys/wait.h: correct operator precidence bug
18563 in WIFSIGNALED
8a0efa53
CF
18564
18565Wed Jun 18 22:08:27 1997 Geoffrey Noer <noer@cygnus.com>
18566
18567 * libc/include/stdlib.h: remove unsetenv proto since it conflicts
18568 with newlib's unsetenv function
18569 * libc/sys/cygwin32/sys: new directory for includes
18570 * libc/sys/cygwin32/sys/dirent.h: move cygwin32's dirent.h
18571 here from winsup/include/sys
18572
18573Mon Jun 16 21:02:22 1997 Geoffrey Noer <noer@cygnus.com>
18574
18575 * libc/include/sys/unistd.h: _exit should only be
18576 labelled noreturn when not __CYGWIN32__
18577 * libc/include/stdlib.h: for __CYGWIN32__, add proto for unsetenv
18578 * libc/include/sys/signal.h: add SIGIO to _WIN32 list and
18579 increment NSIG
18580
18581Thu Jun 12 18:52:41 1997 Ian Lance Taylor <ian@cygnus.com>
18582
18583 * libc/include/sys/time.h: Only define timeval and timezone if
18584 _GNU_H_WINDOWS32_SOCKETS is not defined.
18585 * libc/include/sys/stat.h: If _WIN32, define _S_IFMT, etc.
18586
18587Wed Jun 11 09:46:26 1997 Jeffrey A Law (law@cygnus.com)
18588
18589 * libc/machine/mn10200/setjmp.S: Implement setjmp/longjmp
18590 * libc/machine/mn10300/setjmp.S: Likewise.
18591
18592 * libc/sys/sysmec/crt0.S: Use "call" instead of "calls" for
18593 the mn10300 (more relaxing opportunities).
18594
18595Tue Jun 10 17:24:45 1997 Mike Meissner <meissner@cygnus.com>
18596
18597 * configure.in (powerpc*-*-{eabi,elf,linux,rtems,sysv,solaris}):
18598 Build libraries with -mstrict-align.
18599
18600Fri Jun 6 14:07:59 1997 Ian Lance Taylor <ian@cygnus.com>
18601
18602 * libc/string/strlwr.c: New file.
18603 * libc/string/strupr.c: New file.
18604 * libc/include/string.h: Declare strlwr and strupr.
18605 * libc/string/Makefile.in (OFILES): Add strlwr.o and strupr.o.
18606 (CHEWOUT_FILES): Add strlwr.def and strupr.def.
18607 (strlwr.o, strupr.o): New targets.
18608 * libc/string/strings.tex: Include strlwr and strupr docs.
18609
18610 * libc/include/sys/types.h: Don't define u_char, et. al., if
18611 _GNU_H_WINDOWS32_SOCKETS is defined. Likewise for fd_set,
18612 et. al. Make FD_SETSIZE default 64 rather than 60. Define
18613 _types_fd_set rather than fd_set, and define fd_set as a macro.
18614
18615 * libc/include/malloc.h: New file.
18616
18617 * libc/include/string.h: Define strcmpi, stricmp, strncmpi, and
18618 strnicmp if they are not already defined.
18619
18620 * libc/include/time.h: If __CYGWIN32__, declare tzset and define
18621 _timezone, _daylight, and _tzname.
18622
18623Wed Jun 4 12:51:16 1997 Doug Evans <dje@canuck.cygnus.com>
18624
18625 * configure.in: Sort all configuration tables.
18626
18627 From Joel Sherrill <joel@oarcorp.com>
18628 * Makefile.in (stmp-targ-include): Copy $(sys_dir)/include/*.h.
18629
18630Tue Jun 3 14:47:46 1997 Ian Lance Taylor <ian@cygnus.com>
18631
18632 * libc/include/sys/signal.h: Don't include <sys/types.h>. Just
18633 use int when declaring kill.
18634
18635 * libc/include/sys/timeb.h: New file.
18636
18637Mon Jun 2 12:06:58 1997 Geoffrey Noer <noer@cirdan.cygnus.com>
18638
18639 * libc/include/sys/time.h: add itimer support for Cygwin32
18640
18641Mon May 19 11:56:46 1997 Mike Meissner <meissner@cygnus.com>
18642
18643 * libc/stdlib/abort.c (abort): If ABORT_MESSAGE is defined, write
18644 out a message that abort was called to stderr.
18645
18646Fri May 16 15:02:59 1997 Bob Manson <manson@charmed.cygnus.com>
18647
18648 * libc/sys/sysmec/fstat.c (_fstat): Set st_blksize to 4096
18649 so that libio doesn't freak.
18650
18651 * libc/sys/sysmec/sbrk.c (_sbrk): The argument is a size_t, not
18652 int.
18653
18654 * libc/stdlib/mallocr.c (_morecore_r): Use size_t for
18655 memory sizes, not int.
18656
18657Wed May 14 21:16:58 1997 Bob Manson <manson@charmed.cygnus.com>
18658
18659 * libm/math/ef_hypot.c: Use long constants where
17c0c97d 18660 appropriate.
8a0efa53
CF
18661 * libm/math/ef_sqrt.c: Ditto.
18662
18663 * libc/sys/sysmec/times.c(_times): Change to times.
18664
18665 * libc/sys/sysmec/read.c(_read): The third argument is
18666 size_t.
18667 * libc/sys/sysmec/write.c (_write): Ditto.
18668
18669 * libc/sys/sysmec/lseek.c: Include unistd.h for off_t.
18670 (_lseek): It's off_t for the second argument.
18671
18672Wed May 14 15:23:36 1997 Mike Meissner <meissner@cygnus.com>
18673
18674 * libc/include/sys/config.h (__IEEE_LITTLE_ENDIAN): Define here,
18675 as well as machine/ieeefp.h.
18676
18677Thu May 8 15:47:25 1997 Geoffrey Noer <noer@cygnus.com>
18678
18679 * libc/include/sys/signal.h: add signal protos for winsup
18680 functions (when __CYGWIN32__), include types.h
18681 * libc/include/sys/types.h: Change __go32_types__ internal
18682 define to __MS_types__ since it's used for more than just
18683 GO32 configs. Define this if GO32, __MSDOS__, or _WIN32 are
18684 defined.
18685 * libc/include/sys/unistd.h: add ftruncate proto for
18686 winsup functions (when __CYGWIN32__)
18687
18688Fri Apr 25 10:10:16 1997 Doug Evans <dje@canuck.cygnus.com>
18689
18690 * libc/sys/h8300hms/sbrk.c (stack_ptr): Add definition.
18691
18692Thu Apr 24 15:46:51 1997 Mike Stump <mrs@cygnus.com>
18693
18694 * libc/include/machine/setjmp.h: Add tic80 support.
18695 * libc/machine/tic80/setjmp.S: Likewise.
18696
18697Tue Apr 22 16:54:40 1997 Geoffrey Noer <noer@pizza.cygnus.com>
18698
ba3ccd63
EB
18699 * libc/sys/cygwin32/crt0.c: Add reference to main() so we can
18700 link programs from libraries only (such as in the X11
18701 distribution)
8a0efa53
CF
18702
18703Mon Apr 21 15:02:12 1997 Fred Fish <fnf@cygnus.com>
18704
18705 * libc/sys/arm/syscalls.c (signal): Remove stub, signal()
18706 supplied elsewhere in newlib.
18707
18708Mon Apr 14 16:25:55 1997 Ian Lance Taylor <ian@cygnus.com>
18709
18710 * Makefile.in (INSTALL): Change install.sh to install-sh.
18711
18712Fri Apr 11 17:04:02 1997 Jason Molenda (crash@godzilla.cygnus.co.jp)
18713
18714 * README: update WWW address for on-line documentation.
18715
18716Wed Apr 9 00:38:13 1997 Geoffrey Noer <noer@cygnus.com>
18717
18718 * libc/include/sys/signal.h: for _WIN32, define SIGCONT and
18719 increment NSIG
18720
18721Mon Apr 7 23:54:00 1997 Jeffrey A Law (law@cygnus.com)
18722
18723 * libc/sys/sysmec/crt0.S: Update for new calling conventions on the
18724 mn10300.
18725 * libc/sys/sysmec/trap.S: Don't compare a register to itself.
18726
18727Tue Mar 25 08:47:43 1997 Jeffrey A Law (law@cygnus.com)
18728
18729 * libc/sys/arm/syscalls.c: Fix/add stack/heap collision detection.
18730 * libc/sys/d10v/syscalls.c: Likewise.
18731 * libc/sys/h8300hms/sbrk.c: Likewise.
18732 * libc/sys/h8500hms/syscalls.c: Likewise.
18733 * libc/sys/m88kbug/syscalls.c: Likewise.
18734 * libc/sys/sh/syscalls.c: Likewise.
18735 * libc/sys/sysmec/sbrk.c: Likewise.
18736 * libc/sys/sysnecv850/sbrk.c: Likewise.
18737 * libc/sys/w65/syscalls.c: Likewise.
18738 * libc/sys.tex: Update sbrk sample code to include stack/heap collision.
18739
18740Tue Mar 18 14:14:34 1997 Jeffrey A Law (law@cygnus.com)
18741
18742 * libc/sys/sysmec/trap.S: Use "syscall" to trigger an
18743 emulated syscall instead of "trap".
18744
18745Fri Mar 14 11:26:13 1997 Michael Meissner <meissner@cygnus.com>
18746
18747 * libc/sys/d10v/trap.S (__trap0): Use trap 15 for system calls,
18748 not trap 0.
18749
18750Sun Mar 9 23:27:04 1997 Doug Evans <dje@seba.cygnus.com>
18751
18752 * configure.in (m32r-*-*): Add -msdata=sdata to target_cflags.
18753
18754Sat Mar 8 09:05:01 1997 Fred Fish <fnf@cygnus.com>
18755
18756 * libc/machine/arm/Makefile.in: Fix comment, is for "arm"
18757 not "sh".
18758 * libc/machine/m32r/Makefile.in: Fix comment, is for "m32r"
18759 not "d10v".
18760 * libc/sys/tic80/crt0.c: New file for TIc80.
18761 * libc/sys/tic80/Makefile.in: New file for TIc80.
18762 * libc/machine/tic80/Makefile.in: New file for TIc80.
18763
18764Wed Mar 5 11:32:12 1997 J.T. Conklin <jtc@cygnus.com>
18765
18766 * libc/machine/sh/memcpy.S: New file.
18767 * libc/machine/sh/memset.S: New file.
18768 * libc/machine/sh/Makefile.in (OFILES): Add memcpy.o and memset.o
18769
18770Thu Feb 27 16:27:55 1997 Fred Fish <fnf@cygnus.com>
18771
18772 * libc/include/machine/ieeefp.h (_IEEE_LITTLE_ENDIAN): Define
18773 for TIc80.
18774
18775Wed Feb 26 13:43:39 1997 Jeffrey A Law (law@cygnus.com)
18776
18777 * libc/sys/sysmec/crt0.S: Handle new calling conventions for
18778 the mn10200.
18779
18780Wed Feb 26 07:11:03 1997 Michael Meissner <meissner@cygnus.com>
18781
18782 * libc/machine/powerpc/setjmp.S (longjmp): Correct return status
18783 (patch from andrew@pogo.WV.TEK.COM).
18784
18785Fri Feb 14 11:49:28 1997 Doug Evans <dje@canuck.cygnus.com>
18786
18787 * libc/machine/m32r/setjmp.S (setjmp): Save r12.
18788 (longjmp): Restore r12. Fix code that handles returning 1 if passed 0.
18789
18790Mon Feb 10 10:02:34 1997 Fred Fish <fnf@cygnus.com>
18791
18792 * configure.in: Add cases for "tic80" to set machine_dir,
18793 sys_dir, and syscall_dir.
18794
18795Sun Feb 2 17:57:15 1997 Geoffrey Noer <noer@cygnus.com>
18796
18797 * libc/sys/cygwin32/crt0.c: initialize floating pt registers
18798
18799Wed Jan 29 15:57:38 1997 Geoffrey Noer <noer@cygnus.com>
18800
18801 * libc/include/math.h: avoid conflicts with ANSI C++ <exception>
18802
18803Mon Jan 27 12:50:01 1997 Doug Evans <dje@seba.cygnus.com>
18804
18805 * libc/machine/m32r/setjmp.S: Use proper comment delimiter.
18806 Use proper constant prefix.
18807
18808Fri Jan 24 10:59:04 1997 Jeffrey A Law (law@cygnus.com)
18809
18810 * libc/sys/sysmec/*.c: Don't cast args to syscall to integers,
18811 that loses on the mn10200 where ints and pointers are different
18812 sizes.
18813
18814Tue Jan 14 13:29:55 PST 1997 Jeremy Allison <jra@cygnus.com>
18815
18816 * configure.in: Added -DSIGNAL_PROVIDED to cygwin32
18817 target as signal is provided in winsup.
18818
18819Tue Jan 14 11:10:13 1997 Jeremy Allison <jra@cygnus.com>
18820
18821 * libc/include/sys/process.h: Corrected const definitions
18822 in spawn functions. Added cwait.
18823
18824Thu Jan 2 12:22:41 1997 Jeffrey A Law (law@cygnus.com)
18825
18826 * libc/include/machine/ieeefp.h: mn10200 uses 16bit ints and 32bit
18827 doubles.
18828 * libc/include/sys/config.h: Similarly.
18829
18830Tue Dec 31 18:36:14 1996 Michael Meissner <meissner@tiktok.cygnus.com>
18831
18832 * configure.in (sparc-sun-sunos*): Add -DSIGNAL_PROVIDED to the
18833 target_cflags.
18834 (i[3456]86-*-sco*): Ditto.
18835
18836 * libc/signal/Makefile.in (OFILES): Add signal.o.
18837 (CFILES): Add signal.c.
18838
18839 * libc/signal/raise.c (_raise_r): Only compile code if
18840 SIGNAL_PROVIDED is defined.
18841
18842 * libc/signal/signal.c: Redo whole file so that it works with
18843 current newlib. Use _kill_r if no signal handler provided.
18844
18845 * libc/sys/{go32,sparc64,sysmec}/Makefile.in: Delete raise and
18846 signal stubs.
18847 * libc/sys/sysvnecv70/Makefile.in: Ditto.
18848 * libc/sys/sysnecv850/Makefile.in: Ditto.
18849
18850 * libc/sys/{go32,sparc64}/signal.c: Delete, stub no longer used.
18851 * libc/sys/sysmec/{raise,signal}.c: Ditto.
18852 * libc/sys/sysvnecv70/signal.s: Ditto.
18853 * libc/sys/sysnecv850/raise.c: Ditto.
18854
18855 * libc/sys/sysnecv850/kill.c (_kill): Encode signal # so that
18856 simulator and debugger can tell the difference between a signal
18857 being raised and an exit system call.
18858
18859 * NEWS: Document software signals being provided.
18860
18861Mon Dec 23 11:54:19 1996 Michael Meissner <meissner@tiktok.cygnus.com>
18862
18863 * libc/reent/impure.c (_REENT_ATTR): Delete in favor of
18864 __ATTRIBUTE_IMPURE_PTR__. Move PowerPC definition to
18865 include/sys/config.h.
18866 (impure_data): Use __ATTRIBUTE_IMPURE_DATA__ for attributes.
18867 Change from 'inpure_data'.
18868 (_impure_ptr): Use __ATTRIBUTE_IMPURE_PTR__ for attributes. Use
18869 &impure_data, not &inpure_data.
18870
18871 * libc/include/sys/config.h (__ATTRIBUTE_IMPURE_PTR__): If PowerPC
18872 and and System V ABI, define so that _impure_ptr lives in the
18873 .sdata section.
18874
18875Sun Dec 22 23:33:05 1996 Michael Meissner <meissner@tiktok.cygnus.com>
18876
18877 * libc/include/sys/reent.h (__ATTRIBUTE_IMPURE_PTR__): Define as
18878 nothing if not defined.
18879 (_impure_ptr): Use __ATTRIBUTRE_IMPURE_PTR__, so a machine can set
18880 its attributes.
18881
17c0c97d 18882 * libc/include/sys/config.h (__ATTRIBUTE_IMPURE_PTR__):
8a0efa53
CF
18883
18884Wed Dec 18 10:12:04 1996 Jeffrey A Law (law@cygnus.com)
18885
18886 * libc/sys/sysmec/crt0.S: Fix mn10200 stuff.
18887 * libc/sys/sysmec/trap.s: Handle mn10200 too.
18888 * libc/machine/mn10200/setjmp.S: Fix mn10200 stuff.
18889
18890Mon Dec 16 10:05:36 1996 Jeffrey A Law (law@cygnus.com)
18891
18892 * libc/sys/sysmec/crt0.S: Handle mn10200 too.
18893
18894Fri Dec 13 11:05:20 1996 Jeremy Allison <jra@cygnus.com>
18895
ba3ccd63 18896 * libc/include/sys/errno.h: Added net errno's.
8a0efa53
CF
18897
18898Wed Dec 11 16:24:25 1996 Michael Meissner <meissner@tiktok.cygnus.com>
18899
18900 * libc/misc/ffs.c: New file to support ffs function for GCC test
18901 gcc.c-torture/execute/960909-1.c.
18902
18903 * libc/misc/Makefile.in ({O,CHEWOUT_}FILES): Add ffs.
18904
18905Sat Dec 7 10:12:37 1996 Jeffrey A Law (law@cygnus.com)
18906
18907 * libc/sys/sysmec/crt0.S: Handle underscore prefix.
18908 * libc/sys/sysmec/trap.S: Likewise.
18909
18910Fri Dec 6 15:08:49 1996 Jim Wilson <wilson@cygnus.com>
18911
18912 * configure.in (mips*vr4300*-*-*): Delete use of sys/vr4300.
18913 * libc/sys/vr4300/{Makefile.in,crt0.S,syscalls.c}: Delete.
18914
18915Wed Dec 4 16:25:27 1996 Jeffrey A Law (law@cygnus.com)
18916
18917 * libc/sys/sysmec/signal.c: Dummy file.
18918 * libc/sys/sysmec/Makefile.in: Build it.
18919
18920Wed Nov 27 13:10:18 1996 Ian Lance Taylor <ian@cygnus.com>
18921
18922 * libc/machine/mips/machine/regdef.h: Define pc as $pc for
18923 mips16.
18924
18925Mon Nov 25 09:58:28 1996 Jeffrey A Law (law@cygnus.com)
18926
18927 * libc/sys/sysmec/{crt0.S,trap0.S}: Actually try to implement
18928 c-startup and simulator traps.
18929
18930
18931 * libc/sys/sysmec/crt0.S: Remove bogus '_' symbol prefixing
18932 * libc/sys/sysmec/trap0.S: Likewise.
18933
18934Sat Nov 23 09:01:03 1996 Michael Meissner <meissner@tiktok.cygnus.com>
18935
18936 * libc/stdlib/mallocr.c (ROUND_TO): If SMALL_MEMORY, set to 0x7 to
18937 round to double word alignment.
18938 (_morecore_r): Combine rounding up pointers to both ROUND_TO and 8
18939 byte alignment.
18940
18941 * libc/include/sys/config.h (__IEEE_BIG_ENDIAN): Define if d10v.
18942
18943 * libc/sys/d10v/syscalls.c (_sbrk): Add better checks for running
18944 out of memory.
18945
18946Mon Nov 18 13:08:26 1996 Jeffrey A Law (law@cygnus.com)
18947
18948 * configure.in: Handle mn10200 and mn10300.
18949 * libc/include/machine/{ieeefp.h,setjmp.h}: Likewise.
18950 * libc/include/sys/config.h: Likewise.
18951 * libc/sys/sysmec: New directory for mec stuff.
18952 * libc/machine/mn10300: New directory for mn10300 stuff.
18953 * libc/machine/mn10200: Similarly for mn10200 stuff.
18954
18955Fri Nov 15 16:41:41 1996 Doug Evans <dje@canuck.cygnus.com>
18956
18957 * libc/sys/arm/crt0.S: Use .text, not .section .text.
18958 * libc/sys/arm/syscalls.c: Rewrite to set errno properly.
18959
18960 * libc/include/sys/types.h (_ST_INT32): New macro, local to file.
18961 (nlink_t): Change type from unsigned int to unsigned short.
18962 (mode_t): Ensure size is 32 bits even if int is 16.
18963 * libc/include/sys/stat.h (st_nlink): Change type to nlink_t.
18964 (st_spare[123]): Change type from int to long.
18965
18966Fri Nov 15 11:41:50 1996 Michael Meissner <meissner@tiktok.cygnus.com>
18967
18968 * libc/sys/d10v/syscalls.c (_sbrk): Align initial heap_end to 8
18969 byte boundary.
18970
18971 * configure.in (d10v*): Define SMALL_MEMORY.
18972
18973Mon Nov 11 10:30:44 1996 Michael Meissner <meissner@tiktok.cygnus.com>
18974
18975 * configure.in (powerpc*-{eabi,elf,linux,rtem,sysv,solaris}*): Add
18976 -mrelocatable-lib and -mno-eabi flags.
18977
18978Mon Nov 11 09:01:39 1996 Jeffrey A Law (law@cygnus.com)
18979
18980 * libc/machine/h8300/memcpy.S: Fix comments to reflect reality.
18981 Fix handling of mis-aligned source operand when both the
18982 destination & length are properly aligned.
17c0c97d 18983
8a0efa53
CF
18984Wed Oct 30 09:41:11 1996 Jeffrey A Law (law@cygnus.com)
18985
18986 * libc/sys/sysnecv850/Makefile.in (OFILES): Add
18987 times.o, time.o and gettime.o
18988 * libc/sys/sysnecv850/{time.c, times.c, gettime.c}: New files.
18989 * libc/sys/sysnecv850/sys/syscall.h: Add SYS_times and
18990 SYS_gettimeofday.
18991
18992Tue Oct 29 13:40:09 1996 Jeffrey A Law (law@cygnus.com)
18993
18994 * libc/sys/sysnecv850/Makefile.in (OFILES): Add access.o
18995 * libc/sys/sysnecv850/access.c: New file.
18996
18997Mon Oct 21 19:47:02 1996 Ian Lance Taylor <ian@cygnus.com>
18998
18999 * libc/sys/vr4300/Makefile.in (clean): Remove $(OFILES).
19000
19001 * libc/stdlib/mprec.h (word0, word1): Use __uint32_t, not unsigned
19002 long.
19003
19004Mon Oct 21 14:43:07 1996 Jeffrey A Law (law@cygnus.com)
19005
19006 * libc/sys/sysnecv850/crt0.S: Initialize ep and gp registers.
19007
19008Thu Oct 17 11:47:16 1996 Doug Evans <dje@seba.cygnus.com>
19009
19010 * libc/include/machine/{ieeefp.h,setjmp.h}: Add m32r support.
19011 * libc/include/sys/config.h: Add m32r support.
19012
19013Wed Oct 16 23:08:05 1996 Jeffrey A Law (law@cygnus.com)
19014
19015 * libc/sys/sysnecv850/v850.ld: Remove. It doesn't belong
19016 here.
19017
19018Wed Oct 16 21:18:07 1996 Mark Alexander <marka@cygnus.com>
19019
19020 * libc/include/machine/setjmp.h: Add D10v support.
19021
19022Tue Oct 15 22:28:26 1996 Jeffrey A Law (law@cygnus.com)
19023
19024 * configure.in: Configure the "libc/syscalls" directory for
19025 the v850.
19026
19027 * libc/sys/sysnecv850/{close.c, execve.c, fork.c}: Add missing '_'.
19028 * libc/sys/sysnecv850/{fstat.c, getpid.c, kill.c}: Likewise.
19029 * libc/sys/sysnecv850/{lseek.c, open.c, read.c}: Likewise.
19030 * libc/sys/sysnecv850/{sbrk.c, stat.c, unlink.c}: Likewise.
19031 * libc/sys/sysnecv850/{wait.c, write.c}: Likewise.
19032
19033Tue Oct 15 16:24:39 1996 Stu Grossman (grossman@critters.cygnus.com)
19034
19035 * libc/sys/sysnecv850/crt0.S (start): Allocate spill space on
19036 stack for args for main and other routines. Zero out args for
19037 main.
19038
19039 * libc/sys/sysnecv850/v850.ld: New. Linker script to layout memory
19040 correctly.
19041
19042Tue Oct 15 11:51:42 1996 Michael Meissner <meissner@tiktok.cygnus.com>
19043
19044 * libc/stdio/findfp.c (std): Remove extraneous ';' after
19045 function.
19046
19047 * libc/sys/d10v/sys/syscall.h (SYS_kill): Add.
19048
19049 * libc/sys/d10v/{syscalls.c,trap.S} (_kill,_getpid): Make these
19050 real system calls now.
19051
19052 * libc/stdio/setvbuf (setvbuf): Cast pointers to _POINTER_INT
19053 before casting them to int.
19054 * libc/stdio/tmpnam.c (_tempnam_r): Ditto.
19055
19056 * libc/stdlib/mallocr.c (_morecore_r): Use _POINTER_INT when
19057 aligning pointer.
19058 * libc/string/memset.c (memset): Ditto.
17c0c97d 19059
8a0efa53
CF
19060 * libc/stdio/vfscanf.c (__svfscanf): When converting to pointer,
19061 first convert ints to _POINTER_INT to eliminate GCC warning.
19062
19063 * libc/stdio/vfprintf.c (_vfprintf_r): Use _POINTER_INT when
19064 processing %p.
19065
19066 * libm/math/ef_scalb.c (__ieee754_scalbf): Cut down range to 32000
19067 from 65000 if ints are only 16 bits.
19068
19069 * libm/math/sf_scalbn.c (scalbnf): Cut down overflow test to 30000
19070 from 50000 if ints are only 16 bits.
19071
19072 * libc/include/sys/config.h (_POINTER_INT): New macro, to give an
19073 int type that is the same size as a pointer.
19074
19075 * libc/misc/dprintf.c (__dprintf): Use _POINTER_INT when
19076 processing %p.
19077 (get_number): Explicitly cast number to long before shifting by 16
19078 or 24, in case ints are short.
19079
19080 * libc/include/sys/config.h (_POINTER_INT): Define as short.
19081
19082Wed Oct 9 16:54:32 1996 Jeremy Allison <jra@cygnus.com>
19083
19084 * libc/string.h: Added ffs, removed swab.
19085 * libc/sys/errno.h: Added EOPNOTSUPP.
19086 * libc/sys/unistd.h: Added swab.
19087
19088Thu Oct 3 17:08:50 1996 Jeremy Allison <jra@cygnus.com>
19089
19090 * libc/include/sys/stat.h: Added fchmod.
19091 * libc/include/sys/unistd.h: Added fsync.
19092
19093Tue Oct 1 17:34:08 1996 Jeremy Allison <jra@cygnus.com>
19094
19095 * libc/include/sys/errno.h: Added defines for EPFNOSUPPORT (96)
19096 and ECONNRESET (104) for cygwin32.
19097
19098Tue Oct 1 16:24:05 1996 Gavin Koch <gavin@cygnus.com>
19099
ba3ccd63
EB
19100 * libc/sys/sysnecv850/_exit.c: added _do_dtors to
19101 do the static destructors.
17c0c97d 19102
8a0efa53
CF
19103Mon Sep 30 15:59:05 1996 Stu Grossman (grossman@critters.cygnus.com)
19104
19105 * libc/sys/sysnecv850/trap.S: Change I/O to use trap 31.
19106
19107Mon Sep 30 12:02:50 1996 Doug Evans <dje@canuck.cygnus.com>
19108
19109 * libc/machine/m32r/{Makefile.in,setjmp.S}: New files.
19110 * configure.in: Recognize m32r-*-*.
19111
19112Mon Sep 30 00:34:41 1996 James G. Smith <jsmith@cygnus.co.uk>
19113
19114 * libc/sys/arm/trap.S (__rt_stkovf_split_big,
17c0c97d
EB
19115 __rt_stkovf_split_small): Added default software stack overflow
19116 handlers, which just call SWI_Exit.
8a0efa53 19117 * libc/sys/arm/crt0.S (_mainCRTStartup): Simple software stack
17c0c97d 19118 limit initialisation.
8a0efa53
CF
19119
19120Fri Sep 27 13:08:03 1996 Mark Alexander <marka@cygnus.com>
19121
19122 * libc/sys/d10v/{trap.S,sys/syscall.h}: Add time() function.
19123
19124Fri Sep 27 12:32:00 1996 Jeremy Allison <jra@cygnus.com>
19125
19126 * libc/include/sys/types.h: Added ssize_t definition.
17c0c97d 19127
8a0efa53
CF
19128Wed Sep 25 14:52:18 1996 Michael Meissner <meissner@tiktok.cygnus.com>
19129
19130 * libc/machine/d10v/setjmp.S: Use ';' for comments.
19131 * libc/sys/d10v/{crt0.S,trap.S}: Ditto.
19132
19133 * libc/machine/d10v/setjmp.S (longjmp): Use exef0t || instead of
19134 branch around a single ldi instruction.
19135
19136 * libc/sys/d10v/crt0.S (_start): Use auto-increment to zero bss.
19137 Call exit, instead of just issuing a stop instruction.
19138
19139Sun Sep 22 17:26:55 1996 Michael Meissner <meissner@tiktok.cygnus.com>
19140
19141 * libc/sys/d10v/{trap.S,syscalls.c}: Add -mint32 support.
19142
19143Fri Sep 20 13:23:12 1996 Michael Meissner <meissner@tiktok.cygnus.com>
19144
19145 * libc/stdlib/mprec.h: Explicitly declare all large constants as
19146 longs, and then cast them to __uint32_t.
19147
19148 * libc/include/sys/config.h: Protect against multiple inclusions.
19149
19150Tue Sep 17 13:10:33 1996 Mark Alexander <marka@cygnus.com>
19151
19152 * configure.in (d10v*): Set syscall_dir.
19153
19154Sun Sep 15 10:41:59 1996 Mark Alexander <marka@cygnus.com>
19155
19156 * libc/sys/d10v/crt0.S: Set stack pointer.
19157
19158Thu Sep 12 13:02:38 1996 Mark Alexander <marka@cygnus.com>
19159
19160 * libc/sys/d10v/{trap.S, syscalls.c}: Rewrite most system calls
19161 in assembly for efficiency. Change calling convention to allow
19162 long ints to be returned.
19163
19164Wed Sep 11 10:28:18 1996 Michael Meissner <meissner@tiktok.cygnus.com>
19165
19166 * libc/machine/v850/Makefile.in (setjmp.o): Fix dependency.
19167
19168Thu Sep 5 19:23:06 1996 Doug Evans <dje@canuck.cygnus.com>
19169
19170 * libc/posix/execvp.c (execvp): Don't search PATH if file has '/'.
19171 Handle empty entries in $PATH.
19172
19173Tue Sep 03 18:15:02 1996 Mark Alexander <marka@cygnus.com>
19174
19175 * libc/machine/d10v/setjmp.S: Make it really work.
19176
19177Tue Sep 3 12:16:26 1996 Ian Lance Taylor <ian@cygnus.com>
19178
19179 * libc/sys/sh/crt0.S: If __ELF__, use ELF section attributes for
19180 the .stack section.
19181
19182Tue Sep 3 10:08:45 1996 Jeffrey A Law (law@cygnus.com)
19183
19184 * sys/sysnecv850/sys/file.h: Remove.
19185 * sys/sysnecv850/sys/syscall.h: New file.
19186 * sys/sysnecv850/{misc.c,syscalls.c,malloc.c}: Deleted.
19187 * sys/sysnecv850/{chmod.c, chown.c, close.c, creat.c} New files.
19188 * sys/sysnecv850/{execv.c, execve.c, fork.c, fstat.c} New files.
19189 * sys/sysnecv850/{getpid.c, isatty.c, kill.c, lseek.c} New files.
19190 * sys/sysnecv850/{open.c, pipe.c, raise.c, read.c} New files.
19191 * sys/sysnecv850/{stat.c, unlink.c, utime.c, wait.c} New files.
19192 * sys/sysnec850/trap.S: New file.
19193 * sys/sysnecv850/{_exit.c, write.c}: Use new TRAP0 mechanism for
19194 syscalls.
19195 * sys/sysnecv850/crt0.S: Use cmp/bl, not tst/bz.
19196 * sys/sysnec850/sbrk.c: New version.
19197
19198Sun Sep 1 20:08:27 1996 Jeffrey A Law (law@cygnus.com)
19199
19200 * sys/sysnecv850/crt0.S: Fix order of comparison args. Loop
19201 as long as r6 is less than r7.
19202
19203Sun Sep 1 13:54:19 1996 Ian Lance Taylor <ian@cygnus.com>
19204
19205 * Makefile.in (mostlyclean): Separate from clean target. Don't
19206 remove *.a or targ-include.
19207 * libc/machine/sparc/Makefile.in (mostlyclean): New target.
19208
19209Sun Sep 1 11:35:26 1996 Michael Meissner <meissner@tiktok.cygnus.com>
19210
19211 * libc/include/machine/ieeefp.h (_DOUBLE_IS_32BITS): Define for
19212 d10v.
19213 (__SMALL_BITFIELDS): Ditto.
19214
19215 * libc/include/sys/config.h (_DOUBLE_IS_32BITS): Define for d10v.
19216
19217Sat Aug 31 16:42:36 1996 Jeffrey A Law (law@cygnus.com)
19218
19219 * libc/sys/sysnecv850/misc.c (raise, getpid, kill): Remove '_'
19220 prefix.
19221
19222 * libc/sys/sysnecv850/sbrk.c (sbrk): Remove '_' prefix.
19223 * libc/sys/sysnecv850/syscalls.c (read, lseek, close): Likewise.
19224 * libc/sys/sysnecv850/syscalls.c (fstat, open, close): Likewise.
19225 * libc/sys/sysnecv850/write.c (write): Likewise.
19226
19227 * libc/sys/sysnecv850/crt0.S: Don't try to zero out an empty
19228 .bss.
19229
19230Fri Aug 30 11:18:45 1996 Michael Meissner <meissner@tiktok.cygnus.com>
19231
19232 * libc/include/sys/config.h: Define INT_MAX, UINT_MAX
19233 appropriately for D10V, depending on -mint16/-mint32.
19234
19235Thu Aug 29 16:09:37 1996 Mark Alexander <marka@cygnus.com>
19236
19237 * configure.in: Add cases for D10V.
19238
19239Thu Aug 29 17:03:23 1996 Michael Meissner <meissner@tiktok.cygnus.com>
19240
19241 * configure.in (i[345]86-*-*): Recognize i686 for pentium pro.
19242
19243Wed Aug 28 21:05:52 1996 Jeffrey A Law (law@cygnus.com)
19244
19245 * libc/include/machine/ieeefp.h: Fix typo.
19246
19247Wed Aug 28 19:47:55 1996 Mark Alexander <marka@cygnus.com>
19248
19249 * libc/sys/d10v: New directory for D10V stuff.
19250 * libc/include/machine/ieeefp.h: Add D10V defines.
19251
19252Mon Aug 26 13:34:58 1996 Doug Evans <dje@canuck.cygnus.com>
19253
19254 * libc/include/sys/errno.h: Add winsup/include/sys/errno.h values:
19255 ELOOP, ENOBUFS, EAFNOSUPPORT, EPROTOTYPE, ENOTSOCK, ENOPROTOOPT,
19256 ESHUTDOWN, ECONNREFUSED, EADDRINUSE, ECONNABORTED, EWOULDBLOCK.
19257 * libc/string/strerror.c (strerror): Add them.
19258
19259Thu Aug 22 16:38:19 1996 Jeffrey A Law (law@cygnus.com)
19260
19261 * libc/sys/sysnecv850: New directory for v850 stuff.
19262
19263 * libc/machine/v850: New directory for v850 stuff.
19264 * libc/machine/v850/setjmp.S: setjmp/longjmp support.
19265
19266 * configure.in: Add support for the v850.
19267
19268 * libc/include/machine/ieeefp.h: Add v850 defines.
19269 * libc/include/machine/setjmp.h: Likewise.
19270 * libc/include/sys/config.h: Add v850 defines.
19271
19272Sat Aug 17 04:06:36 1996 Geoffrey Noer <noer@cygnus.com>
19273
19274 * libc/include/machine/ieeefp.h
19275 * libc/include/machine/setjmp.h
19276 * libc/include/sys/fcntl.h
19277 * libc/include/sys/signal.h
19278 * libc/include/sys/types.h
19279 * libc/stdlib/system.c:
19280 Fix preprocessor defines to match new scheme (_WIN32 for WIN32
19281 API availability, __CYGWIN32__ for cygwin32 environment specific).
19282
19283Thu Aug 15 17:09:21 1996 Geoffrey Noer <noer@cygnus.com>
19284
ba3ccd63
EB
19285 * libc/include/stdlib.h: add multibyte character functions. Add
19286 __eprintf for assert.
8a0efa53
CF
19287
19288Thu Aug 15 11:15:40 1996 Michael Meissner <meissner@tiktok.cygnus.com>
19289
19290 * libc/stdlib/malloc.h (MALLOC_ALIGNMENT): Use either pointer
19291 arithmetic or __alignof__ to properly get the alignment, instead
19292 of hardwiring it to 4.
19293
19294Wed Aug 14 23:43:28 1996 Geoffrey Noer <noer@cygnus.com>
19295
19296 * libc/stdio/fseek.c: add fflush call to adjust seek offset
19297 on append stream (fix from NetBSD sources), adjust curoff offset
19298 for ungetc's benefit.
19299 * libc/stdio/ftell.c: adjust curoff offset for ungetc's benefit.
19300 * libc/stdio/rewind.c: replace code with up to date NetBSD
19301 code to undo hacks made to work around above problem of not
19302 having fflush call mentioned above
19303
19304Fri Aug 2 18:28:07 1996 J.T. Conklin <jtc@rtl.cygnus.com>
19305
19306 * libc/reent/{closer.c, execr.c, fstatr.c, linkr.c, lseekr.c,
17c0c97d
EB
19307 openr.c, readr.c, sbrkr.c, signalr.c, statr.c, timer.c, writer.c}:
19308 Partially revert last changes. The thread specific errno is set
19309 iff if the underlying syscall fails and the global errno is not
19310 zero.
8a0efa53
CF
19311
19312Fri Jul 19 11:41:52 1996 J.T. Conklin <jtc@rtl.cygnus.com>
19313
19314 * libc/reent/filer.c: Removed files, all functions have split out
17c0c97d
EB
19315 into their own files.
19316 * libc/reent/{closer.c, lseekr.c, openr.c, readr.c, writer.c}:
8a0efa53
CF
19317 New files containing functions formally in filer.c
19318 * libc/reent/Makefile.in: Updated for above change.
19319
19320 * libc/reent/execr.c (_fork_r, _wait_r): Set errno if underlying
17c0c97d
EB
19321 syscall fails, not if errno is changed.
19322 * libc/reent/filer.c (_open_r, _close_r, _lseek_r, _read_r,
8a0efa53
CF
19323 _write_r): Likewise.
19324 * libc/reent/fstatr.c (_fstat_r): Likewise.
19325 * libc/reent/linkr.c (_link_r, _unlink_r): Likewise.
19326 * libc/reent/sbrkr.c (_sbrk_r): Likewise.
19327 * libc/reent/signalr.c (_kill_r): Likewise.
19328 * libc/reent/statr.c (_stat_r): Likewise.
19329 * libc/reent/timer.c (_gettimeofday_r): Likewise.
19330
19331 * libc/reent/{execr.c, filer.c, fstatr.c, linkr.c, sbrkr.c,
17c0c97d 19332 signalr.c, statr.c, timer.c} (errno): declare extern rather
8a0efa53
CF
19333 than as a common.
19334
19335 * libc/stdio/vfprintf.c (__sbprintf): Use the VFPRINTF macro
17c0c97d
EB
19336 instead of calling vfprintf so that i*printf will not require
19337 floating point support code.
19338
8a0efa53
CF
19339Mon Jul 15 16:50:59 1996 Doug Evans <dje@canuck.cygnus.com>
19340
19341 * libc/posix/execvp.c (execvp): Use posix_path_list_p to determine
19342 path delimiter.
19343 * libc/include/sys/unistd.h (_SC_PATH_RULES): Delete.
19344 (_PATH_RULES_{UNKNOWN,WIN32,POSIX}): Delete.
19345
19346Thu Jul 11 14:34:14 1996 Geoffrey Noer <noer@cygnus.com>
19347
19348 * libc/include/signal.h: _sig_func_ptr function takes an int
19349 * libc/include/sys/signal.h: sa_handler function takes an int
19350
19351Tue Jul 9 21:22:32 1996 Jeffrey A Law (law@cygnus.com)
19352
19353 * libc/include/machine/ieeefp.h: Simplify H8/S support.
19354 * libc/include/sys/config.h: Add missing H8/S conditional.
19355
19356Sun Jun 30 12:05:46 1996 Doug Evans <dje@canuck.cygnus.com>
19357
19358 * libc/include/sys/unistd.h (MAXPATHLEN): Add cygwin32 value.
19359
19360Wed Jun 26 09:57:54 1996 Jeffrey A Law (law@cygnus.com)
19361
19362 * libc/include/machine/setjmp.h: Handle H8/S.
19363 * libc/include/machine/ieeefp.h: Likewise.
19364 * libc/include/sys/config.h: Likewise.
19365 * libc/machine/h8300/{defines.h, memcpy.S, memset.S}: Likewise.
19366 * libc/machine/h8300/{reg_memcpy.S, reg_memset.S}: Likewise.
19367 * libc/machine/h8300/{strcmp.S, setjmp.S}: Likewise.
19368 * libc/sys/h8300hms/crt0.S: Likewise.
19369
19370Tue Jun 25 23:15:45 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
19371
ba3ccd63 19372 * Makefile.in (datadir): Set to $(prefix)/share.
8a0efa53 19373 (oldincludedir, docdir): Removed.
ba3ccd63 19374 * doc/Makefile.in (datadir): Set to $(prefix)/share.
8a0efa53 19375 (oldincludedir, docdir): Removed.
ba3ccd63 19376 * libc/Makefile.in (datadir): Set to $(prefix)/share.
8a0efa53 19377 (oldincludedir, docdir): Removed.
ba3ccd63 19378 * libm/Makefile.in (datadir): Set to $(prefix)/share.
8a0efa53
CF
19379 (oldincludedir, docdir): Removed.
19380
19381Fri Jun 21 19:24:41 1996 Ian Lance Taylor <ian@cygnus.com>
19382
19383 * libc/include/sys/reent.h (_REENT_INIT): Update for change to
19384 _reent struct.
19385
19386Wed Jun 19 14:00:09 1996 Doug Evans <dje@canuck.cygnus.com>
19387
19388 * libc/posix/execvp.c: Delete _WIN32 support. For __CYGWIN32__
19389 fetch current path rules with sysconf and handler posix/win32
19390 appropriately.
19391
19392 * libc/include/sys/unistd.h (_PATH_RULES{,_POSIX,_WIN32}): Define.
19393
19394 * libc/include/process.h: Prepend '_' to P_{WAIT,NOWAIT,OVERLAY}.
19395 (WAIT_CHILD): Always define.
19396
19397Sat Jun 15 17:50:42 1996 Ian Lance Taylor <ian@cygnus.com>
19398
19399 * libc/stdlib/eprintf.c: New file.
19400 * libc/stdlib/Makefile.in (OFILES): Add eprintf.o.
19401 (eprintf.o): New target.
19402
19403Thu Jun 13 16:44:32 1996 Doug Evans <dje@canuck.cygnus.com>
19404
19405 * libc/sys/cygwin32/crt0.c (__cygwin_crt0_bp): New global.
19406 (mainCRTStartup): Do int3 if __cygwin_crt0_bp non-zero.
19407
19408Thu Jun 13 17:45:17 1996 Mike Meissner <meissner@rtl.cygnus.com>
19409
19410 * libc/include/machine/ieeefp.h: Add support for AIX and Windows
19411 NT in PowerPC endianess cases.
19412
19413Tue Jun 11 12:26:28 1996 Michael Meissner <meissner@tiktok.cygnus.com>
19414
19415 * libc/include/machine/ieeefp.h: Clean up PowerPC endianess.
19416
19417Thu Jun 6 11:34:20 1996 Michael Meissner <meissner@tiktok.cygnus.com>
19418
19419 * libc/string/strtok.c: Fix doc typo.
19420
19421Mon Jun 3 11:30:00 1996 J.T. Conklin <jtc@rtl.cygnus.com>
19422
19423 * libc/include/sys/reent.h (struct _reent): Removed _asctime,
17c0c97d 19424 _next, _scanpoint, _signgam fields.
8a0efa53
CF
19425
19426 * libc/include/stdlib.h (rand_r): Added new declaration.
19427 (_rand_r, _srand_r): Removed declarations.
19428 * libc/stdlib/rand.c (_rand_r, _srand_r): Removed, these functions
17c0c97d 19429 have been made obsolete by rand_r.
8a0efa53 19430 * libc/stdlib/rand_r.c: New file, rand_r function as specified
17c0c97d
EB
19431 by POSIX.1c.
19432
8a0efa53 19433 * libc/string/strtok.c: Update documentation to describe
17c0c97d 19434 strtok_r().
8a0efa53
CF
19435
19436Sat Jun 1 23:50:39 1996 Michael Meissner <meissner@cygnus.com>
19437
19438 * libc/include/sys/stat.h (stat structure): Use the expanded stat
19439 structure on Solaris, and PowerPC systems even though __svr4__ is
19440 defined.
19441
19442Tue May 28 13:02:42 1996 Doug Evans <dje@canuck.cygnus.com>
19443
19444 * libc/sys/go32/sys/errno.h (ENOSYS,ESPIPE): Keep values <= 255.
19445
19446Fri May 17 10:34:44 1996 Ian Lance Taylor <ian@cygnus.com>
19447
19448 * host/any: Use ../.. rather than .. to get to the main build
17c0c97d
EB
19449 directory. This matches the current layout of the build
19450 directory.
8a0efa53
CF
19451
19452Wed May 15 15:52:27 1996 Jeffrey A Law (law@cygnus.com)
19453
19454 * libc/machine/h8300/__main.S: Delete. No longer needed.
19455 * libc/machine/h8300/Makefile.in: Corresponding changes.
19456 * libc/sys/h8300hms/crt1.c: New file.
19457 * libc/sys/h8300hms/Makefile.in: Corresponding changes.
19458 * libc/sys/h8300hms/crt0.s: Call __main.
19459
19460 * libc/sys/h8300hms/crt0.S: Use temporary label names
19461 for branch targets.
19462
19463Mon May 13 14:26:30 1996 Doug Evans <dje@canuck.cygnus.com>
19464
19465 * libc/stdio/fopen.c (_fopen_r): Fix arguments to fseek.
19466
19467Fri May 3 16:38:23 1996 Michael Meissner <meissner@tiktok.cygnus.com>
19468
19469 * libc/reent/impure.c (_impure_ptr): Force the impure pointer into
19470 .sdata on the PowerPC so that we can link newlib with code
19471 compiled with -msdata.
19472
19473Mon Apr 29 21:38:02 1996 Doug Evans <dje@canuck.cygnus.com>
19474
19475 * libc/sys/arm/syscalls.c (_sbrk): Rename end to __end__.
19476
19477Thu Apr 25 06:38:59 1996 Michael Meissner <meissner@cygnus.com>
19478
19479 * libc/sys/cygwin32/crt0.c (mainCRTStartup): On PowerPC, set the
19480 exception handler to __cygwin_exception_handler.
19481
19482Tue Apr 23 15:14:20 1996 Ian Lance Taylor <ian@cygnus.com>
19483
19484 * libc/include/machine/setjmp.h: Check _AM29K, not ___AM29K__.
19485
19486Sun Apr 21 12:11:51 1996 Doug Evans <dje@blues.cygnus.com>
19487
19488 * libm/math/Makefile.in ({w,wf}_cabs.o,{w,wf}_drem.o): Add rule for
19489 SunOS VPATH.
19490 * libc/stdlib/Makefile.in (atoff.o,atol.o,mblen.o,mbstowcs.o,
19491 wcstombs.o): Likewise.
19492
19493Thu Apr 18 12:37:01 1996 Doug Evans <dje@canuck.cygnus.com>
19494
19495 * libc/stdlib/environ.c (initial_env): New static local.
19496 (environ): Point to `initial_env'.
19497
19498 * libc/include/machine/setjmp.h: Clean up.
19499 (__H8300H__,__PPC__): Define _JBTYPE.
19500 (__arm__): Provide entry for.
19501 (sigjmp_buf): Delete.
19502 (jmp_buf): Use _JBTYPE if defined, otherwise int.
19503
19504Thu Apr 18 12:10:52 1996 Jeffrey A Law (law@cygnus.com)
19505
19506 * libc/machine/h8300/strcmp.S: Sign extend the result to
19507 32bits so we don't lose with -mint32.
19508
19509Sun Apr 14 19:59:52 1996 Doug Evans <dje@canuck.cygnus.com>
19510
19511 * libc/sys/go32/sys/errno.h: New file.
19512 * libc/sys/go32/Makefile.in (stat.o): Depend on stat.c.
19513 * libc/sys/go32/gerrno.s (syscall_error): Call __errno to get
19514 errno's address (make compatible with rest of newlib).
19515 * libc/sys/go32/stat.c (fixinode): Set errno upon failure.
19516 * libc/string/strerror.c (strerror): Surround each case with #ifdef.
19517
19518Thu Mar 28 13:44:42 1996 Doug Evans <dje@canuck.cygnus.com>
19519
19520 * libc/machine/sparc/{scan.c,shuffle.c}: New files.
19521 * libc/machine/sparc/Makefile.in: Build them.
19522 * libc/machine/sparc/machine/sparclet.h: New file.
19523
19524Mon Mar 25 15:29:14 1996 J.T. Conklin <jtc@rtl.cygnus.com>
19525
19526 * libc/machine/sh/asm.h: New file.
19527 * libc/machine/sh/setjmp.S: Only save clobbered registers. Added
17c0c97d 19528 support for SH3e's FP registers. Use asm.h.
8a0efa53
CF
19529
19530Mon Mar 25 11:59:23 1996 Jeffrey A Law (law@cygnus.com)
19531
19532 * libc/stdio/vfprintf.c (cvt): Accept a reent structure
19533 as first argument. Call _dtoa_r and pass the reent structure
19534 instead of calling __dtoa.
19535
19536Fri Mar 22 13:59:37 1996 Jeffrey A Law (law@cygnus.com)
19537
19538 * libc/include/sys/config.h: Define DOUBLE_IS_32BITS for
19539 the h8300, h8500, and others. Add comments for some rather
19540 dubious code.
19541
19542Thu Mar 14 18:04:43 1996 Ian Lance Taylor <ian@cygnus.com>
19543
19544 * Makefile.in (check): Check that testsuite exists before cd.
19545
19546Tue Mar 12 11:46:47 1996 Michael Meissner <meissner@tiktok.cygnus.com>
19547
19548 * libc/include/string.h (strsep): Correct prototype.
19549
19550Mon Mar 11 09:55:19 1996 Doug Evans <dje@charmed.cygnus.com>
19551
19552 * libc/sys/h8300/_exit.c (_exit,__exit): Set r0 to 0 before `sleep'.
19553 * libc/sys/h8300/misc.c (_kill): Set r0 to indicate abort and `sleep'.
19554 * libc/sys/h8300/crt0.S (_start): Call exit instead of `sleep'.
19555
19556Wed Mar 6 11:51:55 1996 Doug Evans <dje@charmed.cygnus.com>
19557
19558 * libc/posix/{creat.c,isatty.c}: New files.
19559 * libc/posix/Makefile.in (OFILES): Add creat.o, isatty.o.
19560
19561 * libc/sys/sparc64/crt0.S (environ): Delete.
19562 (.LHaveBias): Renamed from HaveBias.
19563
19564Thu Feb 15 10:48:37 1996 Doug Evans <dje@charmed.cygnus.com>
19565
19566 * libc/stdlib/mallocr.c (etext): Move decl inside ifdef WARN_VLIMIT.
19567 (_morecore_r): Delete SBRK_IS_ALLOC support.
19568
19569Tue Feb 13 09:44:09 1996 Michael Meissner <meissner@tiktok.cygnus.com>
19570
19571 * libc/sys/cygwin32/Makefile.in (lib.a): Make lib.a with a dummy
19572 module rather than touch, so we don't get warning messages when
19573 all of the libraries are combined into libc.a.
19574
19575Tue Feb 13 06:32:07 1996 Doug Evans <dje@charmed.cygnus.com>
19576
19577 * libc/sys/sparclite/{Makefile.in,crt0.s}: Deleted.
19578 crt0.s replaced by version in libgloss.
19579
19580Mon Feb 5 15:17:51 1996 J.T. Conklin <jtc@rtl.cygnus.com>
19581
19582 * libc/reent/Makefile.in (OFILES): Add impure.o.
19583 * libc/reent/impure.o: New file, define initial reentrancy struct.
19584 * libc/reent/reent.c: Remove above definition.
19585
19586 * libm/math/sf_asinh.c: Fix typo.
19587
19588 * Makefile.in (MATHOBJS_IN_LIBC): Removed sr_ldexp.o and
17c0c97d
EB
19589 srf_ldexp.o.
19590
8a0efa53
CF
19591 * libm/libm.texinfo: Change documentation to reflect changes
19592 in reentrancy model.
19593 * libm/math/w_gamma.c: Likewise.
19594
19595Wed Jan 31 18:49:45 1996 Steve Chamberlain <sac@slash.cygnus.com>
19596
19597 * configure.in (*-*-cygwin32): New.
19598 (*-*-win32): Deleted.
19599 * libc/sys/win32 renamed libc/sys/cygwin32.
19600
19601Tue Jan 30 22:09:03 1996 Michael Meissner <meissner@tiktok.cygnus.com>
19602
19603 * libc/include/sys/file.h: New include file.
19604
19605Fri Jan 26 15:52:54 1996 Steve Chamberlain <sac@slash.cygnus.com>
19606
19607 * libc/include/machine/setjmp.h: Increase size of PPC jmp_buf.
19608
19609Tue Jan 23 17:49:16 1996 Steve Chamberlain <sac@slash.cygnus.com>
19610
19611 * libc/include/sys/wait.h (WIFSIGNALED): Fix.
19612
19613Tue Jan 16 09:28:10 1996 Michael Meissner <meissner@tiktok.cygnus.com>
19614
19615 * doc/makedoc.c (realloc): Declare at file scope.
19616 (catchar): Not here.
19617
19618Wed Dec 27 15:45:23 1995 Doug Evans <dje@canuck.cygnus.com>
19619
19620 * Makefile.in (VERSION): Update to 1.7.0.
19621 * {libc,libm}/Makefile.in (VERSION): Likewise.
19622 * configure.in: Minor clean up of multilib stuff.
19623
19624 From David Johnson <davidj@ICSI.Berkeley.EDU>
19625 * {libc,libm}/Makefile.in (lib[cm].a): Delete library first.
19626
19627 * libc/stdlib/environ.c: New file.
19628 * libc/stdlib/Makefile.in (OFILES): Build it.
19629 * libc/sys/h8500hms/crt0.c (environ): Deleted.
19630 * libc/sys/m88kbug/crt0.c (environ): Deleted.
19631 * libc/sys/z8ksim/crt0.c (environ): Deleted.
19632 * libc/sys/netware/environ.c: Deleted.
19633
19634Tue Dec 19 15:24:46 1995 Kim Knuttila <krk@cygnus.com>
19635
19636 * configure.in (links): set sys_dir, posix_dir, syscall_dir
19637
19638Wed Dec 13 04:16:25 1995 Michael Meissner <meissner@wogglebug.tiac.net>
19639
19640 * doc/makedoc.c (init_string_with_size,nextword): Move malloc
19641 declaration out to external scope and declare it PTR, not char *.
19642
19643Mon Dec 11 17:35:12 1995 steve chamberlain <sac@slash.cygnus.com>
19644
19645 * libc/include/sys/unistd.h (getpagesize): New declaration.
19646 (_SC_PAGESIZE): New definition.
19647 * libc/include/time.h (CLK_TCK): Defined as CLOCKS_PER_SEC.
19648 * libc/configure.in (i[345]86-*-win32): Remove -DNO_FORK.
19649
19650Fri Dec 1 16:48:46 1995 James G. Smith <jsmith@cygnus.co.uk>
19651
19652 * libc/sys/vr4300/syscalls.c (sbrk): Fixed memory
17c0c97d 19653 addressing. System call returns size, not (last address + 1).
8a0efa53
CF
19654
19655Thu Nov 30 15:05:26 1995 J.T. Conklin <jtc@rtl.cygnus.com>
19656
19657 * libm/math/*.c: Removed _foo_r() reentrancy API.
19658 * libc/include/math.h: Removed _foo_r prototypes and macros.
19659
17c0c97d 19660 * libm/math/*.c: On systems with IEEE single precision "doubles"
8a0efa53 19661 move foo() -> foof() wrapper code from the files that implement
17c0c97d 19662 the standard IEEE double precision functions to the files that
8a0efa53
CF
19663 implement IEEE single precision functions. (ie. On those systems
19664 sin is moved from s_sin.c to sf_sin.c). There should eventually
19665 be use of a C extension (like gcc's alias attribute) so that the
19666 wrappers are not needed at all.
19667
19668 * libc/sys/sysnec810/sbrk.c: Cast &end to char * to get around
17c0c97d 19669 strict NEC V810 compiler.
8a0efa53 19670 * libc/misc/dprintf.c (getnumber): Cast char * to unsigned char *
17c0c97d 19671 for same reason.
8a0efa53
CF
19672
19673Wed Nov 29 14:25:05 1995 J.T. Conklin <jtc@rtl.cygnus.com>
19674
19675 * libc/stdlib/strtol.c (_strtol_r): Replaced with implementation
17c0c97d 19676 from NetBSD C library.
8a0efa53
CF
19677 * libc/stdlib/strtoul.c (_strtoul_r): Likewise.
19678
17c0c97d 19679 * libc/stdlib/assert.c (__assert): Renamed from __assertfail
8a0efa53
CF
19680 and adapted from implementation I wrote for NetBSD C library.
19681 The difference is __assert doesn't take a format argument,
19682 so that there won't be multiple copies of the same string
19683 constant in the executable if assertions are enabled in
17c0c97d 19684 more than one source module.
8a0efa53
CF
19685 * libc/include/assert.h (assert): Changed to call __assert.
19686
19687Tue Nov 28 16:54:26 1995 J.T. Conklin <jtc@rtl.cygnus.com>
19688
19689 * libc/stdlib/strtod.c (_strtod_r): Changed to not assign to
19690 word1 on systems with 32 bit doubles.
19691 * libc/stdlib/qsort.c (qsort): Cast some void *'s to char *'s
19692 so that we can do arithmetic on them.
19693 * libc/misc/dprintf.c: Changed to support stdarg.h for ANSI
17c0c97d
EB
19694 compilers.
19695
8a0efa53
CF
19696Tue Nov 28 16:03:32 1995 Doug Evans <dje@canuck.cygnus.com>
19697
19698 * libc/sys/arm/crt0.S: Zero bss.
19699
19700Fri Nov 24 16:09:23 1995 Doug Evans <dje@deneb.cygnus.com>
19701
19702 * libc/include/unctrl.h: New file.
19703 * libc/misc/{Makefile.in,dprintf.c,unctrl.c,misc.tex}: New files.
19704 * configure.in (subdirs): Add libc/misc.
19705 * libc/Makefile.in (SUBDIRS): Add misc.
19706 (SUBLIBS): Add misc/lib.a.
19707
19708 * libc/include/sys/reent.h (struct _reent): Make __sf last member.
19709
19710Wed Nov 22 19:49:47 1995 Doug Evans <dje@deneb.cygnus.com>
19711
19712 * libc/stdio/vfprintf.c (__sbprintf): Init fake._data.
19713 (_vfprintf_r): Call CHECK_INIT.
19714
19715Tue Nov 14 02:52:12 1995 Doug Evans <dje@canuck.cygnus.com>
19716
19717 * Makefile.in (MULTITOP): Delete.
19718 (MULTISRCTOP, MULTIBUILDTOP): Add.
19719 * configure.in: Delete call to cfg-ml-com.in. Call config-ml.in
19720 instead of cfg-ml-pos.in.
19721
19722Wed Nov 8 01:24:08 1995 James G. Smith <jsmith@pasanda.cygnus.co.uk>
19723
19724 * libc/sys/vr4300/syscalls.c: Added clean version of sbrk().
19725 * libc/sys/vr4300/crt0.S: Cleaned up. Added check for FPU
17c0c97d 19726 presence.
8a0efa53
CF
19727
19728Thu Nov 2 22:25:06 1995 Michael Meissner <meissner@tiktok.cygnus.com>
19729
19730 * libc/string/strtok.c: Include string.h to pick up strtok_r
19731 prototype.
19732
19733Wed Nov 1 18:54:11 1995 Jason Molenda (crash@phydeaux.cygnus.com)
19734
19735 * libc/string/strtok.c: include <_ansi.h>.
19736 * libc/time/asctime_r.c: `reresult' -> `result'.
19737
19738Wed Nov 1 14:35:52 1995 J.T. Conklin <jtc@rtl.cygnus.com>
19739
19740 * libc/time/{ctime.c, gmtime.c, lcltime.c}: Wrap functions
19741 in #ifndef _REENT_ONLY ... #endif conditional.
19742
19743 * libc/include/string.h (_strtok_r): Remove declaration.
19744 * libc/include/time.h (_asctime_r): Remove declaration.
19745 * libc/string/strtok.c (_strtok_r): Removed.
19746 * libc/time/asctime.c (_asctime_r): Removed.
19747
19748 * libc/string/Makefile.in (OFILES): Add new object.
19749 * libc/string/strtok_r.c: New file. strtok_r function as
17c0c97d 19750 specified by POSIX.1c, adapted from strtok implementation
8a0efa53 19751 from NetBSD C library.
17c0c97d 19752 * libc/string/strtok.c (strtok): Reimplemented in terms of
8a0efa53
CF
19753 strtok_r.
19754
19755 * libc/time/Makefile.in (OFILES): Add new objects.
19756 * libc/time/{asctime_r.c, ctime_r.c, gmtime_r.c, lcltime_r.c}:
19757 New files, reentrant time functions specified by POSIX.1c.
19758 * libc/time/{asctime.c, ctime.c, gmtime.c, lcltime.c}: Non-
17c0c97d 19759 reentrant time functions re-written in terms of reentrant
8a0efa53
CF
19760 functions.
19761 * libc/time/lcltime.c: Renamed from localtime.c
19762
19763 * libc/include/time.h: Add prototypes for asctime_r, ctime_r,
19764 gmtime_r, and localtime_r.
19765
19766Sat Oct 28 14:34:31 1995 steve chamberlain <sac@slash.cygnus.com>
19767
19768 * libc/sys/win32/crt0.c (mainCRTStartup): Call cygwin_crt0.
19769 * libc/include/sys/unistd.h (getlogin): Revert change of
19770 Oct 19.
19771 * libc/include/sys/signal.h (sigprocmask): Change prototype
19772 so it compiles with c++.
19773
19774Wed Oct 25 15:43:18 1995 Michael Meissner <meissner@cygnus.com>
19775
19776 * libc/include/machine/setjmp.h (PowerPC _JBLEN): Consider it a
19777 PowerPC if __PPC__ is defined. Bump jump_buf length to 62 ints,
19778 to give some room in case we need to align the jmp_buf.
17c0c97d 19779
8a0efa53
CF
19780 * libc/machine/powerpc/setjmp.S (setjmp, longjmp): Rewrite to use
19781 the new ppc-asm.h include file the compiler provides to specify
19782 function prologue/epilogue. Eliminate saves of the xer and ctr
19783 registers, which are volatile. Before starting to save registers,
19784 align to 8 byte boundary.
19785
19786Mon Oct 23 11:20:51 1995 James G. Smith <jsmith@pasanda.cygnus.co.uk>
19787
19788 * libc/sys/vr4300/syscalls.c: Added empty kill() function,
17c0c97d 19789 referenced by standard libraries.
8a0efa53
CF
19790
19791Thu Oct 19 21:39:47 1995 Fred Fish <fnf@cygnus.com>
17c0c97d 19792
8a0efa53
CF
19793 * libc/unix/Makefile.in, libc/string/Makefile.in,
19794 libc/stdio/Makefile.in, libc/reent/Makefile.in,
19795 libc/posix/Makefile.in:
19796 Remove tabs from otherwise empty line. Confuses some
19797 older non-GNU versions of "make".
19798
19799Thu Oct 19 16:32:17 1995 steve chamberlain <sac@slash.cygnus.com>
19800
19801 * libc/sys/unistd.h (getlogin): Returns const char *.
19802
19803Wed Oct 18 12:57:50 1995 steve chamberlain <sac@slash.cygnus.com>
19804
19805 * libc/include/fcntl.h (O_BINARY, O_TEXT): New.
19806 * libc/include/errno.h: Moved into and include...
19807 * libc/include/sys/errno.h: New file.
19808 * libc/include/sys/wait.h: New file.
19809 * libc/stdio/rename.c (_rename_r): Use _rename system call if available.
19810 * libc/sys/win32/*: Moved out.
19811 * libc/sys/win32/crt0.c: Rewritten to cope with shared library.
19812 * configure.in (i[345]86-*-win32): HAVE_RENAME
19813
19814Wed Oct 18 09:58:27 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
19815
19816 * libc/unix/sigset.c (sigemptyset, sigaddset): Prefix #undef to
19817 avoid macro expansion for these two names.
19818
19819Tue Oct 17 08:45:33 1995 Doug Evans <dje@canuck.cygnus.com>
19820
19821 * libc/machine/h8500/psi.S: r6 renamed to fp.
19822
19823Sun Oct 15 12:58:10 1995 Michael Meissner <meissner@wogglebug.tiac.net>
19824
19825 * configure.in (powerpc*): No longer need to define
19826 NO_LONGLONG_POINTERS to supress warnings.
19827
19828Sat Oct 14 12:55:08 1995 Jim Wilson <wilson@chestnut.cygnus.com>
19829
19830 * libc/reent/reent.c (_reclaim_reent): Call cleanup indirectly
19831 through PTR instead of directly.
19832
19833 * libc/sys/sh/crt0.S: Clean up formatting. Delete unused
19834 non-standard constructor support.
19835
19836Thu Oct 12 11:39:42 1995 J.T. Conklin <jtc@rtl.cygnus.com>
19837
19838 * libc/stdlib/dtoa.c (_dtoa_r): Set result pointer to the
17c0c97d
EB
19839 address of the Bigint instead of the address of its _x field,
19840 as the size the result buffer was calculated accordingly.
8a0efa53
CF
19841 Fix from Jim Wilson <wilson@chestnut@cygnus.com>.
19842
19843 * libc/stdlib/{div.c, ldiv.c}: Replaced with implementation
17c0c97d 19844 from NetBSD C library. No longer special cases division by
8a0efa53
CF
19845 zero (which needs to be done by the application anyway), but
19846 it doesn't need to call abs() (or labs()) four times either.
17c0c97d
EB
19847
19848 * libc/stdlib/qsort.c: Replaced with implementation from
8a0efa53
CF
19849 NetBSD C library.
19850
19851Tue Oct 10 14:01:10 1995 J.T. Conklin <jtc@rtl.cygnus.com>
19852
19853 * libc/stdio/vfprintf.c: Replaced with implementation from
ba3ccd63 19854 NetBSD C library (which is derived from the 4.4BSD C library).
8a0efa53
CF
19855 * libc/stdio/cvt.c: Removed.
19856 * libc/stdio/Makefile: Updated.
17c0c97d 19857
8a0efa53
CF
19858Tue Oct 10 12:15:23 1995 steve chamberlain <sac@slash.cygnus.com>
19859
19860 * libc/sys/win32/syscalls.c (rename): New.
19861 * libc/sys/win32/include/winkernel.h (MoveFileExA): New.
19862
19863Fri Oct 6 12:18:43 1995 Jim Wilson <wilson@chestnut.cygnus.com>
19864
19865 * libc/machine/sh/Makefile.in (setjmp.o): Depend on setjmp.S.
19866 * libc/machine/sh/setjmp.S: Rename from setjmp.s.
19867
19868 * libc/sys/sh/Makefile.in (OFILES, all): Delete setjmp.o.
19869 (setjmp.o): Delete rule to build setjmp.o.
19870 * libc/sys/sh/setjmp.S: Delete file.
19871
19872Fri Oct 6 11:19:05 1995 J.T. Conklin <jtc@rtl.cygnus.com>
19873
19874 * libc/stdlib/mprec.c (d2b): Added support for _DOUBLE_IS_32BITS.
19875 * libc/stdlib/mprec.h: Fixed constants used for IEEE single float
19876 format. Added #defines to map d2b, i2b, low0bits, lshift, mult,
17c0c97d 19877 pow5mult and s2b to identifiers with leading underscores.
8a0efa53
CF
19878 * libc/stdlib/Makefile.in: Add mprec.h as a dependency to dtoa.o,
19879 ecvtbuf.o, mprec.o and strtod.o. Sort dependencies.
19880
19881Thu Oct 5 17:27:30 1995 steve chamberlain <sac@slash.cygnus.com>
19882
19883 * libc/sys/posix/popen.c (sys/types.h): Include.
19884
19885Thu Oct 5 16:33:01 1995 Doug Evans <dje@canuck.cygnus.com>
19886
19887 * libc/sys/win32/syscalls.h (fhandler): New struct.
19888 (__lookup_fhandler, __lookup_fhandler_hook): Declare.
19889 (__fhandler_normal): Declare.
19890 (hinfo): New member op_handlers.
19891 * libc/sys/win32/syscalls.c (__read): Don't validate fd.
19892 (__write): Likewise.
19893 (_read, _write, _open, _close, _lseek): Validate fd here.
19894 Move file type specific stuff to foo_normal.
19895 (read_normal, write_normal, open_normal, close_normal, lseek_normal):
19896 New functions.
19897 (__lookup_fhandler): New function.
19898 (__lookup_fhandler_hook, __fhandler_normal): New variables.
19899
19900 From anders.blomdell@control.lth.se (Anders Blomdell)
19901 * libc/sys/win32/crt0.c (vfork_init): Unset __FD_TABLE__.
19902 Don't touch standard handles.
19903 * libc/sys/win32/spawn.c (_spawn): Use STARTF_USESTDHANDLES.
19904 (_execve): Only create __FD_TABLE__ if necessary.
19905 * libc/sys/win32/include/winkernel.h (STARTF_*): Define.
19906
19907Thu Oct 5 14:25:14 1995 steve chamberlain <sac@slash.cygnus.com>
19908
19909 * libc/sys/win32/sys/termios.h (FLUSHO): New.
19910 * libc/sys/win32/include/win*.h: Moved a load of prototypes around.
19911 * libc/sys/win32/pipe.c (_fctnl): Ignore F_SETFL without errors.
19912 * libc/sys/win32/exception.c (ehandler3): set strace when a signal
19913 without a handler is received.
19914 * libc/sys/win32/Makefile.in: Remove --nodelete.
19915 * libc/sys/win32/resouce.c (gettimeofday): New.
19916 * libc/sys/win32/syscalls.c (path_to_real_path): New.
19917 * libc/sys/win32/syscalls.h (include/wincon.h): Don't include.
19918
19919Wed Oct 4 13:10:35 1995 Doug Evans <dje@canuck.cygnus.com>
19920
19921 * libc/sys/win32/dirsearch.c (opendir): stat real path name.
19922 Don't append "/*" to search pattern if trailing '/' already there,
19923 append "*".
19924 * libc/sys/win32/spawn.c (_spawn): CreateProcess doesn't seem to
19925 like /'s, convert them to \'s. Handle //<drive>/ path names.
19926 Add space for quoted \'s in arg string. Print translated prog name
19927 and original prog name.
19928 (_execve): Handle parent doing exec a teensy bit better.
19929 * libc/sys/win32/syscalls.h (__path_to_real_path): Update prototype.
19930 * libc/sys/win32/syscalls.c (__path_to_real_path): Don't assume
19931 path needs conversion, handle both cases. Delete `const' from result.
19932 (hash_path_name): New function.
19933 (_open): Call it.
19934 (_stat): Likewise. Fill in more fields for directories.
19935 * libc/sys/win32/wait.c (_wait): Explicitly pass -1 to waitpid.
19936 (wait_for_any): Fix trace message.
19937 (waitpid): Explicitly test for intpid == 0.
19938
19939 From anders.blomdell@control.lth.se (Anders Blomdell)
19940 * libc/sys/win32/spawn.c (__vfork_get_empty_entry): zero fill result
19941 so `next' is valid.
19942
19943Sat Sep 30 15:00:15 1995 Jason Molenda (crash@phyeaux.cygnus.com)
19944
19945 * libc/sys/win32/spawn.c (_spawn): Make quoting rules more
19946 complicated.
19947
19948Sat Sep 30 10:25:57 1995 Jason Molenda (crash@phydeaux.cygnus.com)
19949
ba3ccd63
EB
19950 * libc/include/_ansi.h: set _HAVE_STDC if __STDC__ is defined
19951 at all, not just == 1.
19952 * libm/math/wf_acos.c (acosf): check for _HAVE_STDC, not __STDC__.
8a0efa53
CF
19953
19954Sat Sep 30 04:30:09 1995 Jason Molenda (crash@phydeaux.cygnus.com)
19955
ba3ccd63
EB
19956 * libc/sys/win32/include/winbase.h: include <wintypes.h> and <winnt.h>
19957 * libc/sys/win32/include/wintypes.h: include <winnt.h>
19958 * libc/sys/win32/include/winnt.h: avoid multiple inclusion of this
19959 file.
8a0efa53
CF
19960
19961Fri Sep 29 01:49:17 1995 steve chamberlain <sac@slash.cygnus.com>
19962
19963 * libc/sys/syscalls.c (getcwd): Fix off by one error.
19964
19965 * libc/sys/signal.c (sleep): Fill it in.
19966 * libc/sys/termios.c (tcflush): Use PurgeComm
19967 (tcsetattr): Set some more of the bits.
19968 * libc/sys/include/winkernel.h: Add PurgeComm and Sleep.
19969
19970Fri Sep 29 04:33:53 1995 Doug Evans <dje@deneb.cygnus.com>
19971
19972 * libc/sys/arm/crt0.S (fp): Initialize to 0.
19973 Conditionally include .idata$3 stuff ifdef __pe__.
19974
19975Fri Sep 29 01:49:17 1995 steve chamberlain <sac@slash.cygnus.com>
19976
19977 * libc/sys/win32/crt0.c (hmap_init): Call __init_hinfo.
19978 * libc/sys/win32/pipe.c (pipe): Ditto.
19979 * libc/sys/win32/syscalls.c (__read): Use new vtime and vmin fields.
19980 * libc/sys/win32/syscalls.h (hinfo): vtime, vmin are new.
19981 * libc/sys/win32/termios.c (tcsetattr): Init new fields.
19982 (tcgetattr): Contents are new.
19983 * libc/sys/win32/include/winkernel.h (DCB): New.
19984 (GetCommState, SetCommState): New.
19985
19986Thu Sep 28 16:29:09 1995 Doug Evans <dje@deneb.cygnus.com>
19987
19988 * libc/sys/arm/crt0.S (_start): Define.
19989
19990Thu Sep 28 12:26:45 1995 steve chamberlain <sac@slash.cygnus.com>
19991
19992 * libc/sys/arm/crt0.S: Move stack to top of RAM on PIE board.
19993 * libc/sys/arm/syscalls.c (_read, _write): Use the SWI properly.
19994
19995 * libc/sys/win32/sysconf.c: New
19996 * libc/sys/win32/sys/winadvapi.h: New
19997 * libc/sys/win32/syscalls.h (hinfo): Added timeout_len, w_binary, r_binary.
19998 * libc/sys/win32/crt0.c (hmap_init): Initialize new fields.
19999 * libc/sys/win32/pipe.c (pipe): Ditto.
20000 * libc/sys/win32/signal.c (_raise): New.
20001 (_kill): Moved from spawn.c
20002 * libc/sys/win32/spawn.c (kill): Moved to signal.c
20003 * libc/sys/win32/syscalls.c (__read): Use new fields.
20004 (_open): Ditto.
20005 * libc/sys/win32/termios.c (tcflush, tcsetattr, tcgetattr): Fill in.
20006 * libc/sys/win32/exceptions.c (__stack_trace): Keep going for longer.
20007 * libc/include/sys/unistd.h (rmdir): Takes const path.
20008 * libc/include/sys/stat.h (mkdir): Takes const path.
20009 * libc/include/sys/signal.h (SIGTTOU, SIGTTIN): New for win32.
20010
20011Thu Sep 28 10:11:27 1995 Doug Evans <dje@canuck.cygnus.com>
20012
20013 * libc/sys/win32/spawn.c (_spawn): Fix quoting.
20014
20015 Add support for specifying paths as //<drive>/foo/bar.
20016 * libc/sys/win32/syscalls.h (__path_needs_conversion_p): Declare.
20017 (__path_to_real_path): Declare.
20018 (PATH_TO_REAL_PATH): New macro.
20019 * libc/sys/win32/syscalls.c (__win32_pid_to_posix_pid): Minor cleanup.
20020 (__path_needs_conversion_p, __path_to_real_path): New functions.
20021 (_open): Fix test for error return from CreateFileA.
20022 Handle new path syntax.
20023 (_link, mkdir, rmdir, getcwd, chdir, stat): Handle new path syntax.
20024 * libc/sys/win32/dirsearch.c (opendir): Likewise.
20025
20026Wed Sep 27 16:36:46 1995 steve chamberlain <sac@slash.cygnus.com>
20027
20028 * libc/sys/win32/include/*.h: Reorganized
20029 * libc/sys/win32/include/WINREADME: New.
20030 * libc/sys/win32/Makefile.in (DLLS): Build version.a.
20031 * libc/sys/win32/*.c: Fix for new include scheme.
20032 * libc/sys/win32/crt0.c (__this_uinfo_buf, __this_uinfo): New.
20033 * libc/sys/win32/getlogin.c (getlogin): Use uinfo.
20034 * libc/sys/win32/passwd.c (*): Fix.
20035 * libc/sys/win32/syscalls.c (get[e|][g|u]id): Use passwd info.
20036 (_stat): Get directory owner and permissions right.
20037 * libc/sys/win32/syscalls.h (uinfo): New.
20038 * libc/sys/win32/version.def: Remove leading underscores.
20039
20040Tue Sep 26 18:18:47 1995 Jason Molenda (crash@phydeaux.cygnus.com)
20041
20042 * libc/sys/win32/key.c: include "include/wincon.h".
20043
20044Tue Sep 26 07:21:48 1995 steve chamberlain <sac@slash.cygnus.com>
20045
20046 * libc/sys/win32/{key, stubs}.c: New.
20047 * libc/sys/win32/Makefile: Adjust to cope.
20048 * libc/sys/win32/crt0.c (vfork_init_first): Cope with -ve pids.
20049 (environ_init): Change env names to upper case.
20050 * libc/sys/win32/dirsearch.c (readdir): Don't fill in inode number.
20051 * libc/sys/win32/passwd.c (*): Fill in the functions.
20052 * libc/sys/win32/pipe.c (_fcntl): F_GETFL returns O_RDWR.
20053 * libc/sys/win32/spawn.c (_spawn): Cope with -ve pids.
20054 * libc/sys/win32/syscalls.c (__win32_pid_to_posix_pid): New function.
20055 (_open): Initialze hmap->execable_p too.
20056 * libc/sys/win32/syscalls.c (getuid, getgid, geteuid, getegid): Return from macros.
20057 (_fstat): Fill in permissions.
20058 * libc/sys/win32/syscalls.h (hinfo): Add execable_p.
20059
20060Fri Sep 22 13:47:27 1995 Doug Evans <dje@canuck.cygnus.com>
20061
20062 * configure.in (cfg-ml-com.in invocation): Use ${with_multilib_top}
20063 if defined.
20064 (cfg-ml-pos.in invocation): Likewise.
20065
20066Fri Sep 22 11:43:44 1995 J.T. Conklin <jtc@rtl.cygnus.com>
20067
20068 * Makefile.in (MATHOBJS_IN_LIBC): Added s_isinf.o, sf_isinf.o,
20069 s_isnan.o and sf_isnan.o.
20070
20071Wed Sep 20 14:50:19 1995 Ian Lance Taylor <ian@cygnus.com>
20072
20073 * All Makefile.in files: added maintainer-clean target as a
20074 synonym for realclean.
20075
20076Wed Sep 20 11:02:50 1995 Jeff Law (law@snake.cs.utah.edu)
20077
20078 * libc/include/machine/setjmp.h: Add hppa support.
20079 * libc/machine/hppa/setjmp.S: New file with setjmp/longjmp
20080 support.
20081 * libc/machine/hppa/Makefile.in: Related changes.
20082
20083Tue Sep 19 12:09:01 1995 J.T. Conklin <jtc@blues.cygnus.com>
20084
20085 * configure.in (machine_dir): Don't set for v810-*-*.
20086
20087Fri Sep 15 20:22:08 1995 Jason Molenda (crash@phydeaux.cygnus.com)
20088
20089 * libc/sys/win32/crt0.c (passover): Change to handle MKS quoting
20090 conventions correctly.
20091
20092Thu Sep 14 13:37:22 1995 J.T. Conklin <jtc@blues.cygnus.com>
20093
20094 * libc/stdio/puts.c: Update documentation of return value to match
20095 ANSI standard.
20096
20097Thu Sep 14 01:52:37 1995 Doug Evans <dje@canuck.cygnus.com>
20098
20099 Fix file descriptor inheritance.
20100 * libc/sys/win32/syscalls.h (CHILD_P): Define again.
20101 (NOT_OPEN_FD): Fix.
20102 * libc/sys/win32/spawn.c (vfork0): Only create inheritable handle if
20103 close-on-exec flag not set. Initialize child's entire fd table.
20104 * libc/sys/win32/syscalls.c (_open): Only create inheritable handle if
20105 CHILD_P.
20106 * libc/sys/win32/pipe.c (pipe): Only create new handle as inheritable
20107 if CHILD_P. Initialize entire hmap entry.
20108 (dup): Only create new handle as inheritable if CHILD_P.
20109 (dup2): Likewise. Properly initialize hmap entry.
20110
20111 * libc/sys/win32/spawn.c (_execve): Don't pass _P_SEARCH_PATH to
20112 _spawn.
20113 (_exit): Use CHILD_P.
20114 * libc/sys/win32/syscalls.c (_fstat): Fix call to memset.
20115 (_stat): Likewise.
20116
20117Mon Sep 11 23:09:39 1995 Jason Molenda (crash@phydeaux.cygnus.com)
20118
20119 * libc/sys/win32/crt0.c (passover): fix up the state table.
20120 * libc/posix/popen.c: Added.
20121 * libc/posix/Makefile.in: compile popen.c.
17c0c97d 20122
8a0efa53
CF
20123Mon Sep 11 11:43:38 1995 J.T. Conklin <jtc@cygnus.com>
20124
20125 * libc/include/machine/ieeefp.h: On the h8/300, h8/300h and
20126 h8/500 define _DOUBLE_IS_32BITS.
20127
20128Sat Sep 9 17:55:54 1995 Doug Evans <dje@canuck.cygnus.com>
20129
20130 Get vfork/exec/spawn/cwait/wait working again.
20131 * libc/sys/win32/syscalls.h (VFORK_NEWBORN_PSEUDO_PID): Define.
20132 (procinfo): New member vfork_level.
20133 * libc/sys/win32/crt0.c (__vfork_next_pid): Delete.
20134 (vfork_init_first): Use GetCurrentProcessId to get pid.
20135 Initialize vfork_level.
20136 (vfork_init): Delete __PID__.
20137 (environ_init): New function. Undo patch of Aug 19, Posix says
20138 environment variables are case sensitive.
20139 (mainCRTStartup): Call it.
20140 * libc/sys/win32/spawn.c (__vfork_next_pid): Delete.
20141 (my_longjump: Make static.
20142 (_spawn): New argument `h'. Delete setting of __PID__.
20143 Delete local `idx'. Look for chars that need quotes, rather than
20144 ones that don't. Set handle of created process in `h'.
20145 Result is process id if created task.
20146 (allocate_spawn_entry): New function.
20147 (spawnvp, spawnv): Call it. Store handle and pid in procinfo entry.
20148 (_execve): Set __FD_TABLE__ before spawning child.
20149 Scan our fd table when passing fds, not our parent's.
20150 Store handle and pid in procinfo entry.
20151 (vfork0): Ensure strace message always printed.
20152 Set child pid to VFORK_NEWBORN_PSEUDO_PID.
20153 (vfork): Don't clobber result of vfork0.
20154 * libc/sys/win32/wait.c (cwait): Fix non-error result (is pid).
20155 (wait_for_any): Ignore processes in state FORK_STATE_VFORK_0.
20156
20157 * libc/sys/win32/syscalls.h (procinfo): New members `handle_valid_p'
20158 and `exit_code'.
20159 * libc/sys/win32/spawn.c (allocate_spawn_entry): Initialize them.
20160 (vfork0): Likewise. Distinguish children, grandchildren, etc. by
17c0c97d 20161 adding vfork level to pseudo-pid.
8a0efa53
CF
20162 (vfork1): If not root, set state back to FORK_STATE_VFORK_0.
20163 (spawnvp, spawnv, _execve): Set handle_valid_p if success.
20164 (_exit): If child, set exit code.
20165 (__vfork_record_death): Only close process handle if valid.
20166 * libc/sys/win32/wait.c (wait_for_single): Watch for children that
20167 didn't exec.
20168 (wait_for_any): Likewise. Start scan after root entry.
20169
20170Fri Sep 8 18:48:02 1995 Jason Molenda (crash@phydeaux.cygnus.com)
20171
20172 * libc/include/sys/types.h (off_t): off_t back to 32 bits.
20173 * libc/include/sys/_types.h (_off_t): _off_t back to 32 bits.
20174 * libc/sys/win32/syscalls.c (_fstat): st_size is lower 32-bits
20175 of actual file length.
20176
20177 * libc/sys/win32/sys/wait.h: include <sys/types.h>.
20178 * libc/include/paths.h: _PATH_BSHELL added.
20179 * libc/include/sys/unistd.h: define STDIN_FILENO, STDOUT_FILENO,
20180 and STDERR_FILENO.
20181
20182Thu Sep 7 21:02:22 1995 Jason Molenda (crash@phydeaux.cygnus.com)
20183
20184 * libc/include/ar.h: Added.
20185 * libc/include/sys/types.h: ino_t goes back to 32-bits.
20186 * libc/sys/win32/syscalls.h (hinfo): added .namehash field.
20187 * libc/sys/win32/syscalls.c (_open): compute .namehash based
20188 on filename.
20189 (_fstat): use .namehash for inode number of the fd.
20190
20191Thu Sep 7 12:57:19 1995 steve chamberlain <sac@slash.cygnus.com>
20192
20193 * libc/sys/win32/{console,ioctl,pipe,spawn,syscalls,wait}.? (*):
20194 Change hinfo to __this_procinfo.
20195 * libc/sys/win32/crt0.c: Remove procinfo_list.
20196
20197Wed Sep 6 18:38:26 1995 Jason Molenda (crash@phydeaux.cygnus.com)
20198
20199 * libc/include/sys/types.h (ino_t): Define ino_t correctly for
20200 win32 environment.
20201
20202Wed Sep 6 18:09:29 1995 Jason Molenda (crash@phydeaux.cygnus.com)
20203
20204 * libc/sys/win32/include/grp.h: Removed.
20205 * libc/sys/include/grp.h: Added.
20206 * libc/sys/win32/grp.c: Include <grp.h>.
20207
20208Wed Sep 6 16:52:48 1995 steve chamberlain <sac@slash.cygnus.com>
20209
20210 * libc/include/sys/signal.h (__need_MAX_SIGNALS): Removed.
20211 (sigset_t, sigaction, SIG_SETMASK, SIG_BLOCK, SIG_UNBLOCK):
20212 Defined for all but strict ANSI.
20213 * libc/include/sys/reent.h (__need_MAX_SIGNALS): Removed.
20214 * libc/include/machine/setjmp.h: Get win32 _JBLEN right.
20215 * libc/signal/signal.c (_signal_r): Changed from using
17c0c97d 20216 _MAX_SIGNALS to NSIG.
8a0efa53
CF
20217 * libc/sys/win32/crt0.c (__current_pid, __parent_hmap, __child_hmap,
20218 __hmap): Deleted.
20219 (__strace, __vfork_next_pid): New.
20220 (__exe_suffix): Default to 1.
20221 (passover, table): Understand quoted arguments.
20222 (vfork_init_first): New.
20223 (vfork_init): Initialize new process structure.
20224 (mainCRTStartup): Pass environ to main.
20225 * exceptions.c (__sig_mask): New
20226 (ehandler3): Ignore signals in mask.
20227 (really_exit): Remove CHILD_P test.
20228 * pipe.c (pipe, dup, dup2): Use new process and file structure.
20229 * resource.c (getrusage): Ditto.
20230 * signal.c (sigprocmask): New.
20231 * spawn.c (*): Rewritten.
20232 * syscalls.c (*): Use new process and file structure.
20233 (find_unused_handle): New.
20234 * syscalls.h (MAX_HANDLES): Deleted.
20235 (hinfo): Removed child_created_p.
20236 (MAX_CHILDREN): Deleted.
20237 (vfork_jmp_info, procinfo): New.
20238 * wait.c (*): Mostly new.
20239 * sys/strace.h (_STRACE_PARANOID): New.
20240 * sys/param.h: New file.
20241
20242Wed Sep 6 17:03:53 1995 Jason Molenda (crash@phydeaux.cygnus.com)
20243
ba3ccd63
EB
20244 * libc/include/sys/stat.h: add S_BLKSIZE.
20245 * libc/include/sys/_types.h: _off_t is a 64-bit type under win32.
20246 * libc/include/sys/types.h: define off_t and ino_t to be 64 bit
20247 types under win32.
20248 (mode_t): add a #else to avoid multiple definitons.
8a0efa53 20249
ba3ccd63
EB
20250 * libc/sys/win32/Makefile.in: add grp.c.
20251 * libc/sys/win32/grp.c: include grp.h correctly.
20252 * libc/sys/win32/syscalls.c (_fstat): set almost all of the fields
20253 of the st structure with real information.
20254 * libc/sys/win32 (dirent): d_ino is of type ino_t.
8a0efa53
CF
20255
20256Wed Sep 6 10:41:34 1995 Doug Evans <dje@canuck.cygnus.com>
20257
20258 * libc/include/sys/types.h (mode_t): Correct for svr4 sparc's
20259 and (maybe) sparc64.
20260 (nlink_t): Provide typedef.
20261
20262Tue Sep 5 18:46:05 1995 Jason Molenda (crash@phydeaux.cygnus.com)
20263
20264 * libc/sys/win32/grp.c: New file.
20265 * libc/sys/win32/include/grp.h: New file.
20266
20267Tue Sep 5 13:47:27 1995 J.T. Conklin <jtc@rtl.cygnus.com>
20268
20269 * libc/include/machine/ieeefp.h: Added whitespace to make this
20270 file easier to maintain.
20271 On the sh, define either __IEEE_BIG_ENDIAN or __IEEE_LITTLE_ENDIAN
20272 depending on the value of __LITTLE_ENDIAN__.
20273 On the sh3e, define _DOUBLE_IS_32BITS.
17c0c97d 20274
8a0efa53
CF
20275Fri Sep 1 15:35:18 1995 James G. Smith <jsmith@beauty.cygnus.com>
20276
20277 * libc/sys/vr4300/syscalls.c: Added missing support
17c0c97d 20278 routines. _raise() and getpid().
8a0efa53
CF
20279
20280Fri Sep 1 14:12:48 1995 James G. Smith <jsmith@rtl.cygnus.com>
20281
20282 * configure.in (mips*vr4300*-*-elf): Fixed silly mistake
20283
20284Fri Sep 1 08:42:11 1995 James G. Smith <jsmith@beauty.cygnus.com>
20285
20286 * configure.in (mips*vr4300*-idt-*) Add support for RISQ monitor
ba3ccd63 20287 and VR4300 processor.
8a0efa53
CF
20288 * libc/sys/vr4300: Add directory.
20289 * libc/sys/vr4300/{Makefile.in, crt0.S, syscalls.c}: Add SIM
17c0c97d 20290 monitor run-time support.
8a0efa53
CF
20291
20292Thu Aug 31 09:16:52 1995 J.T. Conklin <jtc@rtl.cygnus.com>
20293
20294 * libc/stdlib/Makefile.in (CHEWOUT_FILES): Removed atol.def.
20295 * libc/stdlib/stdlib.tex: Don't include atol.def.
20296
20297Wed Aug 30 20:38:28 1995 Jason Molenda (crash@phydeaux.cygnus.com)
20298
20299 * libc/sys/win32/uname.c (uname): hardcode processor as `i386'.
20300
20301Wed Aug 30 10:48:08 1995 steve chamberlain <sac@slash.cygnus.com>
20302
20303 * libc/ctype/Makefile.in: Fill in _to* dependencies.
20304
20305Tue Aug 29 17:14:29 1995 steve chamberlain <sac@slash.cygnus.com>
20306
20307 * libc/sys/win32/{dirsearch.c,sys/dirent.h}: Fix namespace problems.
20308 * libc/sys/win32/sys/dirent.h (struct dirent): Added d_ino.
20309 * libc/sys/win32/strace.c (__sys_printf): Increase size of buffer.
20310 * libc/sys/win32/smallprint.c (__small_vsprintf): Remove debug.
20311 * libc/sys/win32/dirsearch.c (readdir): Set d_ino.
20312
20313Tue Aug 29 19:00:09 1995 Jason Molenda (crash@phydeaux.cygnus.com)
20314
20315 * libc/stdlib/atol.c (atol): DEFUN -> _DEFUN.
20316
20317Tue Aug 29 16:08:09 1995 J.T. Conklin <jtc@rtl.cygnus.com>
20318
20319 * libc/stdlib/Makefile.in (OFILES): Added atoff.o and atol.o.
20320 * libc/stdlib/atoff.c: New file.
20321 * libc/stdlib/atof.c (atoff): Moved to atoff.c.
20322 * libc/stdlib/atoi.c (atol): Removed.
20323 * libc/stdlib/atol.c: Removed duplicate documentation.
20324
20325 * libc/include/ctype.h (_tolower, _toupper): Moved inside
20326 #ifndef _STRICT_ANSI conditional.
20327 * libc/ctype/Makefile.in (OFILES): Added _tolower.o and _toupper.o
20328 * libc/ctype/_tolower.c: New file.
20329 * libc/ctype/_toupper.c: New file.
20330 * libc/ctype/tolower.c (_tolower): Moved to _tolower.c.
20331 * libc/ctype/toupper.c (_toupper): Moved to _toupper.c.
20332 * libc/ctype/toascii.c (_toascii): Removed.
20333
20334Tue Aug 29 12:17:32 1995 Doug Evans <dje@canuck.cygnus.com>
20335
20336 * libc/sys/sparc64/sys/types.h: Deleted.
20337
20338Mon Aug 28 22:06:08 1995 Jason Molenda (crash@phydeaux.cygnus.com)
20339
20340 * libc/sys/win32/uname.c (uname): change `Windows/NT' to `Windows_NT'
20341 and recognize Windows_95 systems.
20342
20343Mon Aug 28 19:50:54 1995 Jason Molenda (crash@phydeaux.cygnus.com)
20344
20345 * libc/sys/win32/crt0.c (vfork_init, hmap_init): standard I/O fds
20346 and passed fds should be opened in text mode.
20347
20348Mon Aug 28 18:51:22 1995 Jason Molenda (crash@phydeaux.cygnus.com)
20349
20350 * libc/sys/win32/crt0.c (vfork_init): mark passed fds as used
20351 in __hmap, set to binary mode by default.
20352
20353Tue Aug 22 14:12:37 1995 J.T. Conklin <jtc@rtl.cygnus.com>
20354
20355 * libc/sys/sh/syscalls.c: Updated all functions to call __trap34.
20356 * libc/sys/sh/trap.S (__trap34): Renamed from __trap3. Use trap
20357 vector 34.
20358
20359Sat Aug 19 18:25:37 1995 steve chamberlain <sac@slash.cygnus.com>
20360
20361 * Makefile.in (install): Install all libraries found in the
20362 top level. If there's a sys/<type>/include directory,
20363 install those headers into include.
20364
20365 * libc/sys/win32/kernel.def351: Delete
20366 * libc/sys/win32/{comctl32.def, comdlg32.def, ctl3d32.def,
20367 glaux.def, glu32.def, largeint.def, libc.def, libcmt.def,
20368 lz32.def, mgmtapi.def, mpr.def, msacm32.def, msvcrt.def,
20369 nddeapi.def, netapi32.def, odbc32.def, odbccp32.def, oldnames.def,
20370 ole32.def, oleaut32.def, opengl32.def, rasapi32.def, rpcndr.def,
20371 rpcns4.def, rpcrt4.def, scrnsave.def, shell32.def, snmp.def,
20372 uuid.def, vdmdbg.def, version.def, vfw32.def, win32spl.def,
20373 winmm.def, winspool.def, winstrm.def, wsock32.def}: New.
20374
20375 * libc/sys/win32/Makefile.in: Update for new files and new dlltool options.
20376 * libc/sys/win32/crt0.c: Force all env names to upper case.
20377 * libc/sys/win32/sys/win*.h -> libc/sys/win32/include
20378 * libc/sys/win32/*.c: Headers have moved.
20379 * libs/sys/win32/*.[ch]: Test for open_p rather than BAD_HANDLE,
20380 __vfork_child_idx is now __vfork_child_ptr.
20381
20382 * posix/execvp (execvp): Don't crash if no PATH envname.
20383
20384Fri Aug 18 12:22:59 1995 J.T. Conklin <jtc@rtl.cygnus.com>
20385
20386 * libc/include/sys/reent.h (_Bigint): Removed _reclaim field.
20387 * libc/reent/reent.c (_reclaim_reent): Free Bigint's by going
20388 through the _freelist instead of through the _reclaim list.
20389 * libc/stdlib/mprec.c (_Balloc): Don't put new node on _reclaim list.
20390 * libc/stdlib/mprec.c (_Bcopy): Make like version in master dtoa.c
20391 sources.
20392
20393Thu Aug 17 11:03:27 1995 J.T. Conklin <jtc@rtl.cygnus.com>
20394
20395 * libc/machine/h8500/setjmp.S: New file.
20396 * libc/include/machine/setjmp.h: Updated for H8/500.
20397
20398Wed Aug 16 16:19:11 1995 steve chamberlain <sac@slash.cygnus.com>
20399
20400 * libc/sys/win32/syscalls.c (_open): More stracing.
20401 (_stat): Open the file in O_BINARY.
20402
20403Wed Aug 16 15:49:01 1995 J.T. Conklin <jtc@rtl.cygnus.com>
20404
20405 * libc/machine/h8300/setjmp.S: New file.
20406 * libc/include/machine/setjmp.h: Updated for H8/300 and H8/300H.
20407
20408Tue Aug 15 10:31:09 1995 Doug Evans <dje@canuck.cygnus.com>
20409
20410 * libc/sys/win32/crt0.c (__exe_suffix): New global.
20411 (mainCRTStartup): Set __exe_suffix from LIBC_EXE_SUFFIX.
20412 * libc/sys/win32/spawn.c (_spawn): Add .exe suffix based on
20413 __exe_suffix. Free fd_tab after setting env variable.
20414 (spawnv,_execve): Update.
20415 * libc/sys/win32/syscalls.h (__exe_suffix): Declare.
20416 * libc/sys/win32/smallprint.c (puts,putn): New (static) functions.
20417 (__small_vfprintf): New function.
20418 * libc/sys/win32/strace.c (__sys_printf): Call __small_vfprintf.
20419 * libc/sys/win32/wait.c (cwait): Validate argument.
20420
20421 * libc/sys/win32/syscalls.c (queue_file_deletion): Add trace message.
20422 (process_deletion_queue): Likewise.
20423
20424 * libc/sys/win32/Makefile.in (lib.a): Don't call $(RANLIB).
20425
20426Mon Aug 14 10:14:10 1995 steve chamberlain <sac@slash.cygnus.com>
20427
20428 * libc/sys/win32: Copyrights and gratuitous indenting.
20429
20430Mon Aug 14 01:32:58 1995 Doug Evans <dje@canuck.cygnus.com>
20431
20432 * libc/sys/win32/syscalls.c (queue_file_deletion): Finish.
20433 (process_deletion_queue): Likewise.
20434 (__close_all_files): New function.
20435 (_close): Only queue file deletion if really a file.
20436 * libc/sys/win32/spawn.c (_spawn): Only ensure .exe suffix if
20437 _P_APPEND_EXE.
20438 (_exit): Call __close_all_files.
20439
20440 * libc/stdlib/system.c: #include <errno.h>.
20441 (_system_r): Fix results in -DNO_EXEC case.
20442
20443 * libc/sys/win32/sys/dirent.h (DIR): New member __d_dirname.
20444 Reorganize structure.
20445 * libc/sys/win32/dirsearch.c (opendir): Use stat to determine
20446 if argument is valid. Save directory name in DIR. malloc space
20447 for dirent struct separately.
20448 * libc/sys/win32/syscalls.c (stat): Fix test for directory.
20449
20450 * libc/include/errno.h (ENAMETOOLONG): Define.
20451 * libc/string/strerror.c (strerror): Reword ENFILE.
20452 Add ENOSYS, ENMFILE, ENOTEMPTY, ENAMETOOLONG.
20453
20454Sun Aug 13 22:42:25 1995 Doug Evans <dje@canuck.cygnus.com>
20455
20456 * libc/sys/win32/crt0.c (__progname): New global.
20457 (mainCRTStartup): Support strace=bitmask,filename.
20458 * libc/sys/win32/dirsearch.c (all fns): Add trace messages.
20459 * libc/sys/win32/syscalls.c (_write): Print parent trace message
20460 if error.
20461 (getcwd): Handle len too small. Convert '\\' to '/'.
20462 * libc/sys/win32/sys/fcntl.h (O_RDWR): = O_RDONLY|O_WRONLY.
20463 Add prototypes for open, creat, fcntl.
20464 (O_APPEND): Change value to conform to Microsoft's value.
20465 * libc/sys/win32/sys/strace.h (_STRACE): Protect in do/while.
20466
20467 * libc/stdlib/getopt.c: New file.
20468 * libc/stdlib/Makefile.in: Build it.
20469
20470Sat Aug 12 12:17:14 1995 Doug Evans <dje@canuck.cygnus.com>
20471
20472 * libc/posix/execvp.c (execvp): Watch for DOS drives ifdef _WIN32.
20473 Fix scanning of $PATH.
20474 * libc/posix/exec*.c: Call _execve, not execve.
20475 * libc/posix/execve.c: New file.
20476 * libc/posix/Makefile.in (OFILES): Add execve.o.
20477
20478 * libc/sys/win32/sys/strace.h (_STRACE_ALL, _STRACE_UHOH,
20479 _STRACE_STARTUP, _STRACE_SYSCALL): More bit masks of things to trace.
20480 (_STRACE): If level==0, always print. Handle new bit mask scheme.
20481 * libc/sys/win32/crt0.c: Update _STRACE calls.
20482 * libc/sys/win32/{pipe.c,resource.c,spawn.c,syscalls.c,wait.c}: Ditto.
20483
20484 * libc/sys/win32/smallprint.c (rn): Fix digit list.
20485
20486 * libc/sys/win32/syscalls.c (__really_exit): Move from here,
20487 * libc/sys/win32/exceptions.c (really_exit): to here. Avoid recursion.
20488 * libc/sys/win32/spawn.c (spawnvp): Pass `prog' as image name.
20489 Print __seterrno trace message first.
20490 (_execve): Renamed from execve.
20491 (vfork): Update __strace usage.
20492 (__vfork_child_pid): Deleted.
20493 (__vfork_children, __vfork_child_idx): New globals.
20494 (_spawnvp): New function.
20495 (spawnvp, spawnv, _execve): Call _spawnvp.
20496 (init_child): Record child in __vfork_children.
20497 (__vfork_get_entry, __vfork_record_death): New functions.
20498 * libc/sys/win32/crt0.c (mainCRTStartup): Initialize __vfork_children.
20499 * libc/sys/win32/kernel32.def (WaitForMultipleObjects): Define.
20500 * libc/sys/win32/syscalls.h (CHILD_P): New macro. All files updated.
20501 (MAX_CHILDREN, CHILD_INTERIM_PID): Define.
20502 (children): New typedef.
20503 (__vfork_children,__vfork_child_idx): Declare.
20504 (__vfork_get_entry,__vfork_record_death): Declare.
20505 * libc/sys/win32/wait.c (wait_for_single,wait_for_any): New functions.
20506 (waitpid): Handle pid == -1.
20507 * libc/sys/win32/sys/wintypes.h (WaitForMultipleObjects): Declare.
20508 * configure.in (i386-win32): Add -DNO_FORK.
20509 * libc/syscalls/sysfork.c (fork): Don't define for NO_FORK.
20510 * libc/reent/execr.c (_fork_r): Likewise.
20511 * libc/stdlib/system.c (do_system): New function.
20512 If WIN32, try to get shell path from $SH_PATH, use vfork.
20513 (_system_r): Return 1 for (s == NULL) if WIN32 or unix,
20514 otherwise return 0.
20515
20516Sat Aug 12 11:08:00 1995 steve chamberlain <sac@slash.cygnus.com>
20517
20518 * libc/stdlib/{mallocr.c, mstats.c}: Move mstats from mallocr to mstats.c.
20519 * libc/sys/win32/fcntl.h: Don't include self.
20520 * libc/sys/win32/sys/strace.h (_STRACE_WM, _strace_wm): New.
20521 * libc/sys/win32/sys/winbase.h: (GetUserName) New.
20522 * libc/sys/win32/sys/wincon.h (HANDLER_ROUTINE): Define correctly.
20523 * libc/sys/win32/sys/wintypes.h (GetFileType, GetCurrentProcess, CloseHandle,
20524 SetFilePointer, CreateFileA, GetFileInformationByHandle, GetStdHandle):
20525 Correct prototypes.
20526 * libc/sys/win32/strace.c: New file.
20527 * libc/sys/win32/smallprint.c: New file.
20528 * libc/sys/win32/crt0.c (func): Delete.
20529 (mainCRTStartup): Fix alloca usage. Set handles explictly.
20530 * libc/sys/win32/dirsearch.c: Clean up handle usage, fix calls to __seterrno.
20531 * libc/sys/win32/exceptions.c: Lint.
20532 * libc/sys/win32/{ioctl.c, pipe.c, resource.c, spawn.c, cwait.c, syscalls.c}:
20533 Clean up handle usage.
20534 * libc/sys/win32/syscalls.c (__sys_printf): Moved into strace.c
20535 (open.c): Default file type is text.
20536 * libc/sys/win32/uname.c (uname): Use __small_sprintf.
17c0c97d 20537 * libc/sys/win32/advapi32.def: New
8a0efa53
CF
20538
20539Fri Aug 11 17:11:52 1995 Doug Evans <dje@canuck.cygnus.com>
20540
20541 * configure.in (posix_dir, libc_posix_lib): New variables.
20542 Define LIBC_POSIX_LIB in makefile to be $libc_posix_lib.
20543 (i[345]86-*-win32): Define posix_dir.
20544 Delete -DNO_EXEC. Define -DHAVE_OPENDIR.
20545 (if unix_dir): Fix typo.
20546 * libc/posix/{Makefile.in,closedir,opendir,readdir,rewinddir,
20547 scandir,seekdir,telldir}: New files.
20548 * libc/posix/{execl.c,execle.c,execlp.c,execv.c,execvp.c}: Move here
20549 from libc/unix.
20550 * libc/Makefile.in (LIBC_POSIX_LIB): Define.
20551 (SUBDIRS): Add posix.
20552 (SUBLIBS): Add $(LIBC_POSIX_LIB).
20553
20554 * libc/include/sys/signal.h (SIGCHLD): Add for _WIN32.
20555 (NSIG): Increase to 21.
20556 * libc/include/sys/unistd.h (pid_t): Move from here,
20557 * libc/include/sys/types.h (pid_t): to here.
20558
20559 * libc/sys/win32/syscalls.h: #include "sys/strace.h".
20560 (__ptrace): Delete.
20561 (hinfo): New members close_exec_p, child_created_p.
20562 (struct exception_list): Define.
20563 (__hmap): Redefine as pointer to table.
20564 (__parent_hmap, __child_hmap): New globals.
20565 (__set_errno, __really_exit): Declare.
20566 (__vfork_child_pid): Declare.
20567 * libc/sys/win32/crt0.c (__strace, __trace_file): New global.
20568 (__orig_stdin, __orig_stdout, __orig_stderr): New globals.
20569 (__parent_hmap, __child_hmap): New globals.
20570 (__hmap): Redefine as pointer to active map.
20571 (__get_console): New function.
20572 (mainCRTStartup): Change leading '=' in environ vars to '!'.
20573 (env __FD_TABLE__): Watch for this and initialize our fd/handle
20574 mapping table from it if defined.
20575 (argv, envp): Dump if __strace >= 4.
20576 (main): Call here.
20577 * libc/sys/win32/exceptions.c (myp): Redefine.
20578 (__syscalls_b): Delete.
20579 (__stack_trace): New function.
20580 (ehandler3): Update to use _STRACE. Print stack trace.
20581 Call __really_exit instead of exit.
20582 (init_exceptions): Delete args argc,argv. New arg mine.
20583 * libc/sys/win32/kernel32.def (CreatePipe, DuplicateHandle, FindClose,
20584 FindFirstFileA, FindNextFileA, GetComputerNameA,
20585 GetEnvironmentVariableA, ReadFile, SetEnvironmentVariableA): Define.
20586 * libc/sys/win32/signal.c (signal): Validate arg.
20587 (alarm, sleep): Define as stubs for now.
20588 * libc/sys/win32/syscalls.c (all fns): Update to use _STRACE.
20589 (__syscalls_b, errno): Delete.
20590 (__vfork_child_pid, __vfork_jmp_buf): New globals.
20591 (__seterrno): Handle more errors.
20592 (__sys_printf): Renamed from _ptrace.
20593 (__really_exit): New function.
20594 (queue_file_deletion, process_deletion_queue): New functions.
20595 (__resume_parent): New function.
20596 (_unlink): Handle trying to delete open file.
20597 (__totime_t): Renamed from totime_t.
20598 (setsid, __read, __write): New functions.
20599 (cwait, spawnvp, R, D, getrusage, _execve, _fork, _wait): Delete.
20600 * libc/sys/win32/{dirsearch.c,getlogin.c,misc.c,resource.c,passwd.c,
20601 times.c,spawn.c,pipe.c,wait.c,termios.c,ioctl.c,uname.c}: New files.
20602 * libc/sys/win32/console.c: Update to new definition of __hmap.
20603 * libc/sys/win32/Makefile.in: Build new files.
20604 * libc/sys/win32/sys/{dirent.h,winerror.h,wait.h,termios.h}: New files.
20605 * libc/sys/win32/sys/{ioctl.h,utsname.h}: New files.
20606 * libc/sys/win32/sys/strace.h: Renamed from ptrace.h.
20607 * libc/sys/win32/sys/wintypes.h (GetCurrentDirectoryA): Fix prototype.
20608
20609Thu Aug 10 16:32:52 1995 Doug Evans <dje@canuck.cygnus.com>
20610
20611 * libc/sys/h8500hms/misc.c (kill): Handle SIGABRT.
20612
20613Thu Aug 10 12:07:38 1995 J.T. Conklin <jtc@rtl.cygnus.com>
20614
20615 * libc/stdlib/{dtoa.c, strtod.c}: Merged assorted changes that
20616 have been made to the master dtoa.c sources (from netlib.att.com)
20617 since they were integrated into newlib in early 1992. Fixes
20618 problems with storage leaks and handling of numbers with very
20619 negative exponents.
17c0c97d 20620
8a0efa53
CF
20621Wed Aug 9 14:18:39 1995 J.T. Conklin <jtc@rtl.cygnus.com>
20622
20623 * Makefile.in (all): set rootpre and srcrootpre before calling
20624 sub-makes.
20625
20626Tue Aug 8 17:20:45 1995 steve chamberlain <sac@slash.cygnus.com>
20627
20628 * libc/sys/win32/crt0.c: Change __hmap usage.
20629 * libc/sys/win32/exceptions.c: Use _ptrace call.
20630 * libc/sys/win32/syscalls.c: Use _ptrace call.
20631 (read, write): Cope with DOS style CRLF when in TEXT mode.
20632 * libc/sys/win32/syscalls.h: Declare hinfo struct.
20633 * libc/sys/win32/user32.def: Get DefWindowProc arg list right.
20634 * libc/sys/win32/sys/fcntl.h, ptrace.h: New.
20635 * libc/sys/win32/sys/windows.h: Fill in rest of messages.
20636 * libc/sys/win32/sys/wintypes.h: Fix attribute syntax.
20637
20638Mon Aug 7 13:04:54 1995 J.T. Conklin <jtc@rtl.cygnus.com>
20639
20640 * libc/include/math.h (cabs, cabsf, drem, dremf): New declarations.
20641
20642 * libm/math/{w_cabs.c, wf_cabs.c, w_drem.c, wf_drem.c}: New files,
20643 wrappers for hypot() and remainder() for BSD libm compatibility.
20644 These are public domain implementations written by me for the
20645 NetBSD libm some time ago. Note cabs() is required by ucbtest.
20646 * libm/math/Makefile.in (obj): Added w_cabs.o and w_drem.o.
20647 (fobj): Added wf_cabs.o and wf_drem.o.
20648
20649Thu Aug 3 08:13:05 1995 J.T. Conklin <jtc@rtl.cygnus.com>
20650
20651 * libc/sys/h8500hms/misc.c: New file.
20652 * libc/sys/h8500hms/Makefile.in (OFILES): Add misc.o.
20653
20654Wed Aug 2 16:46:27 1995 J.T. Conklin <jtc@rtl.cygnus.com>
20655
20656 * libc/time/localtime.c (localtime): Fix problem with leap year
20657 handling. Stole algorithm from Arthur David Olson's tz code.
17c0c97d 20658
8a0efa53
CF
20659Mon Jul 31 10:21:54 1995 steve chamberlain <sac@slash.cygnus.com>
20660
20661 * configure.in: (z8k-*sim): Renamed z8k-*-coff.
20662
20663 * libc/sys/z8ksim/glue.c (_getpid, _kill): New
20664 (_exit): Use argument.
20665
20666Fri Jul 28 15:17:04 1995 Doug Evans <dje@canuck.cygnus.com>
20667
20668 * libc/sys/win32/sys/winbase.h (_WINBASE_H): Define.
20669
20670Wed Jul 26 16:24:19 1995 steve chamberlain <sac@slash.cygnus.com>
20671
20672 * libc/sys/sh/trap.S (perrno): Align correctly. (pr 7532)
20673
20674Mon Jul 24 13:42:52 1995 J.T. Conklin <jtc@rtl.cygnus.com>
20675
20676 * configure.in (sparc*): Add -DMALLOC_ALIGNMENT=8 to
20677 target_cflags.
20678
20679Mon Jul 24 11:42:07 1995 steve chamberlain <sac@slash.cygnus.com>
20680
20681 * libc/sys/win32/crt0.c (mainCRTStartup): Look for
20682 ptrace with case insensitivity
20683 * libc/sys/win32/{user32.def, gdi32.def, exceptions.c, screen.c,
17c0c97d 20684 sys/winbase.h, sys/windows.h, sys/wintypes.h, sys/winuser.h}:
8a0efa53
CF
20685 New files.
20686
20687Fri Jul 21 11:22:26 1995 Doug Evans <dje@canuck.cygnus.com>
20688
20689 * Makefile.in: Multilib support moved to ../cfg-ml-{com,pos}.in.
20690 (MULTITOP, MULTIDIRS, MULTISUBDIR, MULTIDO, MULTICLEAN): New variables.
20691 (all, install, *clean): Use new multilib support.
20692 * configure.in: Multilib support moved to ../cfg-ml-{com,pos}.in.
20693
20694Fri Jul 21 07:11:42 1995 steve chamberlain <sac@slash.cygnus.com>
20695
20696 * libc/include/sys/signal.h (__WIN32__): New.
20697
20698 * configure.in (i386-*-win32): Remobe SBRK_IS_ALLOC.
20699
20700 * libc/stdlib/mprec.c (Balloc): Fix trampling problem.
20701 (ulp, b2d): Handle 32 bit doubles.
20702 * libc/stdlib/mprec.h: Handle 32 bit doubles.
20703 * libc/stdlib/strtod.c (_strtod_r): Ditto.
20704
20705Fri Jul 14 08:24:58 1995 steve chamberlain <sac@slash.cygnus.com>
20706
20707 from medp@primag.co.uk:
20708 * libc/stdio/setvbuf.c (setvbuf): Fix line buffering on
20709 dynamically allocated buffers.
20710
20711Thu Jul 20 10:11:03 1995 Fred Fish <fnf@fishbowl>
20712
20713 * libc/include/sys/unistd.h (_exit): Add _ATTRIBUTE ((noreturn)).
20714 * libc/stdlib/exit.c (unistd.h): Include to pick up _exit() declaration.
20715
20716Thu Jul 20 10:16:25 1995 Michael Meissner <meissner@tiktok.cygnus.com>
20717
20718 * configure.in (powerpc): Fix previous fix.
20719
20720Wed Jul 19 14:08:55 1995 Michael Meissner <meissner@tiktok.cygnus.com>
20721
20722 * configure.in (powerpc-*eabiaix*): Update PowerPC multilib
20723 directories for this target.
20724
20725Wed Jul 19 00:34:30 1995 Jeffrey A. Law <law@rtl.cygnus.com>
20726
20727 * configure.in (hppa): Add machine_dir definition.
20728 * libc/machine/hppa: New directory with PA specific implementations
20729 of the basic memory/string functions.
20730
20731Tue Jul 18 21:16:00 1995 Michael Meissner <meissner@tiktok.cygnus.com>
20732
20733 * configure.in: Update current PowerPC multilib directories.
20734 Split big and little endian configurations.
20735
20736Tue Jul 18 11:55:33 1995 Ian Lance Taylor <ian@cygnus.com>
20737
20738 * configure.in: Add --enable-single-float option to configure to
20739 control use of MIPS single-float directories. Default to yes.
20740
20741 * Makefile.in (all): Don't recurse into multilib directory if it
20742 does not exist.
20743
20744Mon Jul 17 15:51:30 1995 J.T. Conklin <jtc@rtl.cygnus.com>
20745
20746 * libc/sys/sh/syscalls.c: Fix typo.
20747
20748Mon Jul 3 14:38:52 1995 Steve Chamberlain <sac@slash.cygnus.com>
20749
20750 * Makefile.in, libc/Makefile.in, libc/sys/Makefile.in:
20751 Pass down DLLTOOL.
20752 * libc/include/process.h: Define WAIT_CHILD.
20753 * libc/include/types.h: Get sizes right for win32.
20754 * configure.in (i386-*-pe): Becomes i386-win32.
20755 * libc/sys/win32/{crt0.c, kernel32.def, longjmp.c, setjmp.c, syscalls.c
20756 wintypes.h,sys/file.h,sys/resource.h}: Second pass.
20757 * libc/stdlib/mallocr.c: Don't round up memory block if SBRK_IS_ALLOC
20758 is defined.
20759
20760Wed Jun 28 18:34:54 1995 Steve Chamberlain <sac@slash.cygnus.com>
20761
20762 * configure.in (i[345]86-*-pe): New target (NT).
20763 * host/any: DLLTOOL new.
20764 * libc/sys/win32/{crt0.c, kernel32.def, longjmp.c, setjmp.c, syscalls.c
20765 wintypes.h,sys/file.h,sys/resource.h}: Preliminary support for
20766 WIN32 (just enough to cross host the comp-tools).
20767
20768Thu Jun 22 11:45:18 1995 Doug Evans <dje@canuck.cygnus.com>
20769
20770 * libc/machine/h8300/{cmpsi.S,ucmpsi.S,divhi3.S,mulhi3.S,mulsi3.S}:
20771 Deleted. These files live in gcc/config/h8300/lib1funcs.asm now.
20772
20773Mon Jun 19 11:40:40 1995 Doug Evans <dje@canuck.cygnus.com>
20774
20775 * libc/include/machine/ieeefp.h (arm): Change to always be
20776 __IEEE_BIG_ENDIAN (even on little endian ARM's).
20777
20778Thu Jun 8 14:22:28 1995 Steve Chamberlain <sac@slash.cygnus.com>
20779
20780 * libc/sys/crt0.S: Initialze sp, and call exit after main.
20781 * libc/sys/syscalls.c (abort): New.
20782 * configure.in (arm): Define ABORT_PROVIDED.
20783
20784Wed Jun 7 14:04:35 1995 J.T. Conklin <jtc@rtl.cygnus.com>
20785
20786 * configure.in (powerpc): Define multidirs.
20787
20788Mon Jun 5 16:10:13 1995 Doug Evans <dje@canuck.cygnus.com>
20789
20790 * libc/sys/arm/crt0.S: Add __USER_LABEL_PREFIX__ support.
20791
20792Thu Jun 1 10:51:47 1995 Sean Eric Fagan <sef@cygnus.com>
20793
20794 * configure.in (sparclite): Delete target_cflags. Define multidirs.
20795
20796Wed May 24 14:23:25 1995 Steve Chamberlain <sac@slash.cygnus.com>
20797
20798 * configure.in, libc/include/machine/ieeefp.h: Modified
20799 for arm:
20800 libc/machine/arm/*, libc/sys/arm/*: New
20801
20802Tue May 23 13:53:07 1995 J.T. Conklin <jtc@rtl.cygnus.com>
20803
20804 * libc/include/machine/ieeefp.h: Use __PPC__ instead of
20805 __powerpc__ when determining endianness.
20806
20807Wed May 10 07:55:56 1995 J.T. Conklin <jtc@rtl.cygnus.com>
20808
20809 * configure.in (m68*): Add multidir for the m68332.
20810
20811 * host/any (CC): Fix typo in last change.
20812
20813Fri Apr 14 22:20:31 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
20814
20815 * libc/include/sys/config.h: Test __m68k__ instead of __m68000__
20816 when determining endianness.
20817 * libc/include/machine/ieeefp.h: Ditto.
20818 * libc/machine/m68k/setjmp.S: Use '&' instead of '#' for immediate
20819 operands.
20820
20821Fri Apr 14 14:14:29 1995 Doug Evans <dje@chestnut.cygnus.com>
20822
20823 * libc/include/errno.h (ENOTEMPTY): Define.
20824
20825Thu Apr 6 12:21:20 1995 J.T. Conklin <jtc@rtl.cygnus.com>
20826
20827 * configure.in (sparc-sun-sunos*): Add -DMALLOC_ALIGNMENT=8 to
20828 target_cflags.
20829
20830 * libc/sys/sun4/Makefile.in (COPYOFILES): Added rem.o, multiply.o,
20831 and umultiply.o.
20832
20833 * libc/stdio/tmpnam.c (worker): Unconditionally increment count
20834 instead of only when open succeeds. ANSI requires that multiple
20835 calls to tmpnam() result in different files.
20836
20837 * libc/sys/sun4/Makefile.in (COPYRENAMEOFILES): New macro, list of
20838 objects pulled in from /lib/libc.a that must be renamed before
20839 being pulled into newlib. /lib/libc.a's div.o conflicted with
20840 newlib's file with the same name.
20841
20842 * libc/stdlib/ldiv.c (ldiv): Call labs() instead of abs().
20843
20844 * host/any (CC, AS, AR, RANLIB): Changed so that executables in
20845 the build tree will only be used if the executables are present
20846 (instead of just the Makefiles).
20847
20848 * libc/include/stdlib.h (mblen, mbtowc, wctomb, mbstowcs,
20849 wcstombs): Define.
20850 * libc/stdlib/{mblen.c, mbstowcs.c, wcstombs.c}: New files, null
20851 versions of these functions that I orignally wrote for the
20852 NetBSD C library.
20853 * libc/stdlib/{mbtowc.c, wctomb.c}: Replaced functions with
20854 versions I wrote for NetBSD.
20855
20856Wed Mar 29 12:42:42 1995 Kung Hsu <kung@mexican.cygnus.com>
20857
20858 * libc/sys/sparclite/Makefile.in: add crt0.s and make info.
20859 * libc/sys/sparclite/crt0.s: ditto.
20860
20861Tue Mar 28 20:28:03 1995 Rob Savoye <rob@rtl.cygnus.com>
20862
20863 * configure.in: Add soft-float for proelf.
20864
20865Mon Mar 27 12:07:56 1995 Steve Chamberlain <sac@bang.hack.com>
20866
20867 * libc/stdlib/mprec.h (Bcopy): Copy the right number
20868 of bytes.
20869
20870Mon Mar 27 11:24:22 1995 Doug Evans <dje@chestnut.cygnus.com>
20871
20872 * Makefile.in (all): Depend on `force'.
20873 * configure.in (syscall_dir): Renamed from fake_sys_dir.
20874 (libc_syscall_lib): Renamed from libc_fake_sys_lib.
20875 (LIBC_SYSCALL_LIB): Renamed from LIBC_FAKE_SYS_LIB.
20876 * libc/Makefile.in: Likewise.
20877 * libc/include/reent.h: Update syscall references.
20878 (_fcntl_r): Add prototype.
20879 * libc/syscalls/*.c #include <reent.h>.
20880 (*) Call reentrant version if REENTRANT_SYSCALLS_PROVIDED.
20881
20882Mon Mar 20 16:57:39 1995 Doug Evans <dje@deneb.cygnus.com>
20883
20884 * libc/include/sys/stat-dj.h (S_ISBLK): Define.
20885 (S_ISCHR, S_ISDIR, S_ISFIFO, S_ISREG): Define.
20886 * libc/include/sys/stat.h (stat-dj.h): Include ifdef MSDOS.
20887 (time.h, sys/types.h): Always include (even if MSDOS).
20888 (stat): Fix prototype.
20889
20890Fri Mar 10 11:30:38 1995 Ian Lance Taylor <ian@cygnus.com>
20891
20892 * configure.in (i[345]86-*-go32): Compile with -DNO_EXEC.
20893
20894Mon Feb 27 18:00:39 1995 Jim Wilson <wilson@chestnut.cygnus.com>
20895
20896 * libc/machine/h8500/psi.S (EXTPSIHI_RN_SN): Ifdef out.
20897
20898Mon Feb 13 16:10:03 1995 Ian Lance Taylor <ian@cygnus.com>
20899
20900 * libc/include/regdef.h: New file.
20901 * libc/machine/mips/machine/regdef.h: New file.
20902
20903Mon Feb 6 15:24:29 1995 Doug Evans <dje@canuck.cygnus.com>
20904
20905 * libc/sys/sparc64/sys/fcntl.h (open): Add ellipsis.
20906
20907Fri Jan 27 13:52:10 1995 Steve Chamberlain <sac@splat>
20908
20909 * libc/sys/sh/crt0.S: Pass main's return to exit.
20910 * libc/sys/sh/trap.S: Put errno in the right place.
20911
20912Tue Jan 24 18:57:56 1995 Ian Lance Taylor <ian@sanguine.cygnus.com>
20913
20914 * libm/math/e_rem_pio2.c (__ieee754_rem_pio2): Integrate change
20915 from fdlibm 5.2: handle |x| < 3pi/4 more efficiently.
20916 * libm/math/ef_rem_pio2.c: Likewise.
20917 * libm/math/e_log10.c: Remove unused static one.
20918 * libm/math/ef_log10.c: Likewise.
20919 * libm/math/s_frexp.c: Likewise.
20920 * libm/math/sf_frexp.c: Likewise.
20921
20922Sun Jan 22 21:26:14 1995 Steve Chamberlain <sac@splat>
20923
20924 * libc/sys/go32/Makefile.in, clock.S, dir.c, setjmp.S, stat.c,
20925 longjmp.S: Upgraded.
20926 * libc/sys/go32/sys/setjmp.h: Upgraded.
20927 * libc/sys/go32/sys/go32.h, dpmi.h: New files.
20928
20929Fri Jan 20 18:33:18 1995 Ian Lance Taylor <ian@sanguine.cygnus.com>
20930
20931 * configure.in: Add many entries to multidirs for mips targets.
20932
20933Wed Jan 18 10:19:25 1995 J.T. Conklin <jtc@rtl.cygnus.com>
20934
20935 * libm/math/e_jn.c (__ieee754_yn): Integrate change from fdlibm
20936 5.2 which fixes bug where jn(-1,x) is three times larger than
20937 the actual answer.
20938 * libm/math/ef_jn.c (__ieee754_ynf): Likewise.
20939
20940Sun Jan 15 21:48:58 1995 Steve Chamberlain <sac@splat>
20941
20942 * libc/sys/w65/sys/syscalls.h: New file
20943 * libc/include/machine/ieeefp.h: W65 support.
20944 * libc/include/sys/config.h: Ditto.
20945 * libc/machine/w65/Makefile.in, cmpsi, divsi3, lshrhi.s, mulsi3.c,
20946 sdivhi3.s, smulhi3.s, udivhi3.s, umodhi3.s: New files.
20947 * libc/sys/w65/Makefile.in, crt0.c, syscalls.c, trap.c: New files.
20948
20949Wed Jan 11 15:59:01 1995 Ian Lance Taylor <ian@sanguine.cygnus.com>
20950
20951 * libc/sys/Makefile.in (lib.a, crt0.o): Depend upon subs.
20952
20953Tue Jan 3 15:57:03 1995 Rob Savoye <rob@darkstar.cygnus.com>
20954
20955 * Makefile.in, configure.in: Remove any references to the old
20956 "stub" dir.
20957
20958Thu Dec 22 10:42:08 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
20959
20960 * libc/syscalls/sysopen.c: Write _HAVE_STDC version of open, which
20961 uses ... in prototype.
20962
20963
20964Wed Nov 30 08:39:42 1994 Ian Lance Taylor <ian@rtl.cygnus.com>
20965
20966 * libc/sys/a29khif/sys/libconfig.h: Remove.
20967 * libc/sys/go32/sys/libconfig.h: Remove.
20968 * libc/sys/sun4/sys/libconfig.h: Remove.
20969 * libc/sys/sysvi386/sys/libconfig.h: Remove.
20970 * libc/sys/sysvnecv70/sys/libconfig.h: Remove.
20971 * libc/sys/sparc64/sys/libconfig.h: Remove.
20972
20973 * libc/include/_ansi.h (_FLOAT_ARG, _FLOAT_RET): Don't define.
20974 * libc/include/sys/config.h (_FLOAT_ARG, _FLOAT_RET): Likewise.
20975 * libc/include/math.h: Change all uses of _FLOAT_RET and
20976 _FLOAT_ARG to float.
20977 * libm/test/math.c: Likewise.
20978 * testsuite/libm.sac/math.c: Likewise.
20979 * testsuite/libm.sac/working/math.c: Likewise.
20980
20981Wed Nov 23 22:39:28 1994 Steve Chamberlain (sac@jonny.cygnus.com)
20982
20983 * libc/sys/sh/trap.s,crt0.s,setjmp.s: Renamed with .S so that
20984 gcc calls gas with endian option.
20985 * configure.in (sh): Build little endian version too.
20986
20987Wed Nov 16 18:21:45 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
20988
20989 * configure.in: Configure big and little endian versions for MIPS
20990 targets.
20991
20992Sat Nov 12 21:12:51 1994 Doug Evans <dje@canuck.cygnus.com>
20993
20994 * libc/include/limits.h: Deleted.
20995 * libc/include/machine/limits.h: Deleted.
20996
20997Thu Nov 10 15:32:44 1994 Rob Savoye <rob@rtl.cygnus.com>
20998
20999 * ChangeLog: Remove stub directory. This has all been rewritten
21000 and moved to devo/libgloss.
21001
21002Thu Sep 29 18:31:04 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
21003
21004 * Makefile.in (dvi): Add to info target, use $@ in sub make.
21005 (docs): Merge into info target.
21006 * libm/Makefile.in (dvi): Add $(srcdir).
21007 * libm/math/Makefile.in (chobjs): Remove underscores from file
21008 names. Texinfo doesn't like them.
21009 (wacos.def, ...): Add explicit targets for all .def files.
21010 * libm/math/math.tex: Remove underscores from @include file names.
21011 * doc/Makefile.in (dvi): Add dummy target.
21012 * testsuite/Makefile.in (dvi): Add dummy target.
21013
21014Mon Sep 26 21:17:46 1994 Doug Evans (dje@canuck.cygnus.com)
21015
21016 * Makefile.in (VERSION): Define. For net newlib releases.
21017
21018Thu Sep 22 19:01:26 1994 Doug Evans (dje@canuck.cygnus.com)
21019
21020 * README: New file.
21021
21022Mon Sep 19 16:35:23 1994 Jim Wilson (wilson@sphagnum.cygnus.com)
21023
21024 * libc/stdlib/ecvtbuf.c (_gcvt): Undo last change.
21025
21026Mon Sep 19 11:44:23 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
21027
21028 * libc/stdlib/setenv.c (_findenv): Declare.
21029
21030 * libc/include/sys/fcntl.h: Fix declarations of open, creat, and
21031 fcntl to not use _EXFUN, and change string parameters to open and
21032 creat to be ``const char *''.
21033 * libc/sys/sparc64/sys/fcntl.h: Likewise.
21034 * libc/sys/sparc64/creat.c (creat): Make PATH const.
21035 * libc/syscalls/sysopen.c: Include <fcntl.h>.
21036 (open) Make _FILE const.
21037 * libc/sys/z8ksim/glue.c (_open): Make BUF const.
21038 (_creat): Make PATH const.
21039 * libc/sys/h8300hms/syscalls.c (_open): Make PATH const.
21040 * libc/sys/h8500hms/syscalls.c (_open): Likewise.
21041 * libc/sys/m88kbug/syscalls.c (open): Likewise.
21042 * libc/sys/sh/syscalls.c (_open): Likewise.
21043 * stub/shared/glue.c (open): Make BUF const.
21044 * stub/ex93x/syscalls.c (open): Make FILENAME const.
21045
21046Thu Sep 8 16:39:12 1994 Steve Chamberlain (sac@jonny.cygnus.com)
21047
21048 * libc/include/errno.h: Add ENMFILE
21049 * libc/include/sys/config.h: Support Z8000.
21050 * libc/include/sys/signal.h: New signals for go32.
21051 * libc/machine/h8500/psi.S (__addpsir0r0): New function
21052 * libc/machine/h8500/cmpsi.S (__ucmppsi2): New function
21053 * libc/machine/sh/sdivsi3.s (__sdivsi3): Rewritten.
21054 * libc/stdlib/mallocr.c (_morecore_r): Minimum chunk
21055 size is variable, depending upon CHUNK_POWER.
21056 * libc/sys/go32/*.c: Upgrade to new go32 stuff.
21057
21058Sun Sep 4 17:42:43 1994 Jim Wilson (wilson@sphagnum.cygnus.com)
21059
21060 * libc/stdlib/ecvtbuf.c (_gcvt): Output '-' for negative numbers.
21061
21062Fri Sep 2 10:56:01 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
21063
21064 * libc/include/_ansi.h (_PARAMS): Don't define if already defined.
21065
21066Wed Aug 24 11:11:03 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
21067
21068 * configure.in: Change i[34]86 to i[345]86.
21069
21070 * libc/include/math.h: Don't define HUGE_VAL if it is already
21071 defined.
21072
21073Wed Aug 17 15:18:02 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
21074
21075 * testsuite/libm.sac/test_erfc.c: Correct some result values.
21076 * testsuite/libm.sac/test_gammaf.c: Likewise.
21077 * testsuite/libm.sac/test_sin.c: Likewise.
21078 * testsuite/libm.sac/test_tanh.c: Likewise.
21079
21080Tue Aug 16 16:12:53 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
21081
21082 * libc/include/machine/ieeefp.h: Don't try set endianness if it is
21083 already set. Define typedefs __int32_t and __uint32_t.
21084 * libc/include/math.h: Include <machine/ieeefp.h>.
21085 (union __dmath): Use __uint32_t.
21086 * libm/math/fdlibm.h, libm/math/*.c: Use __int32_t and __uint32_t
21087 instead of int and unsigned int.
21088
21089Thu Aug 11 15:16:09 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
21090
21091 Replace the math library with the SunPRO fdlibm package.
21092 * libm/math: Completely changed all files.
21093 * libm/ieeefp: Remove contents and directory.
21094 * libm/Makefile.in (LIBM_FP_LIB): Remove.
21095 (SUBDIRS): Just set to math/lib.a.
21096 * libm/libm.texinfo: Updated for new library.
21097 * libc/include/math.h: Extensive changes for new math library.
21098 * libc/include/ieeefp.h (isnanf, isinff, finitef): Change argument
21099 from _FLOAT_ARG to float.
21100 (maxpowtwo, maxpowtwof): Don't declare.
21101 * configure.in (fp_dir): Removed; was always ieeefp anyhow.
21102 (libm_fp_lib): Removed.
21103 * Makefile.in (MATHOBJS_IN_LIBC): Updated with new file names.
21104 * testsuite/libm.paranoia/Makefile.in (check): Correct --srcdir
21105 argument to ${RUNTEST}.
21106 * testsuite/libm.sac/Makefile.in (LOCAL_CFLAGS): Define.
21107 (.c.o): New rule.
21108 (RUNTESTFLAGS): Set CC and CFLAGS.
21109 (TESTS): Remove test_log2 and test_log2f.
21110 (${TESTS}): Pass ${LOCAL_CFLAGS}, not ${CFLAGS}.
21111 * testsuite/libm.sac/math.c (run_vector_1): Use float, not
21112 _FLOAT_ARG, for single precision argument type.
21113 * testsuite/libm.sac/sac.exp: Treat an error in bit 63 as an
21114 expected failure. Close the input pipe.
21115 * testsuite/libm.sac/test.c (test_sok, test_iok, test_scok):
21116 Correct misspelling of inaccurate.
21117 (test_mok): Use ``inaccurate'', not ``wrong''.
21118 * testsuite/libm.sac/{test_acos.c, test_acosh.c, test_asin.c,
21119 test_asinh.c, test_atan.c, test_atanh.c, test_ceil.c,
21120 test_ceilf.c, test_cos.c, test_cosh.c, test_erf.c, test_erf.c,
21121 test_fabs.c, test_floor.c, test_floorf.c, test_fmod.c,
21122 test_fmodf.c, test_gamma.c, test_log1p.c, test_log1pf.c,
21123 test_yn.c): Correct many result values. Many are still wrong.
21124
21125 * libc/stdlib/ecvtbuf.c (print_e): If _dtoa_r sets decpt to 9999,
21126 just copy the string.
21127 (_gcvt): Always return the buffer.
21128
21129Tue Aug 9 13:43:23 1994 J.T. Conklin (jtc@phishhead.cygnus.com)
21130
21131 * bcopy.c: fixed documentation, bcopy was not specified by ANSI.
21132
21133Wed Aug 3 05:39:41 1994 D. V. Henkel-Wallace (gumby@cygnus.com)
21134
21135 * libc/include/sys/reent.h: (struct _Bigint): add _reclaim
21136 structure.
21137 (struct _reent): add _p5s, _cvtlen, _cvtbuf.
21138 (_reclaim_reent): declare new entry point.
21139 * libc/reent/reent.c (cleanup_glue, _reclaim_reent): new
21140 functions.
21141
21142 * libc/stdlib/mprec.c (Balloc): Keep track of every struct bigint
21143 ever allocated, so that we can later reclaim them all.
21144 (pow5mult): make reentrant.
21145
21146 * libc/stdlib/ecvtbuf.c (fcvtbuf, ecvtbuf): extend these functions
21147 so that when given NULL as a buffer, return a pointer to static
21148 space in the rent structure. This is not documented behaviour;
21149 it's only to support ecvt and fcvt, which aren't ANSI anyway.
21150 * libc/stdlib/efgcvt.c (fcvt, ecvt) Use new functionality (and
21151 therefore become reentrant).
17c0c97d 21152
8a0efa53
CF
21153 * libc/stdlib/dtoastub.c: remove spurious inclusion of mprec.h.
21154
21155Mon Aug 1 16:52:24 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
21156
21157 * libc/include/machine/ieeefp.h: Check _AM29K, not ___AM29K__.
21158
21159Thu Jul 28 15:40:21 1994 J.T. Conklin (jtc@phishhead.cygnus.com)
21160
21161 * Makefile.in: Make link to libg.a after libc.a; this is needed
21162 for the testsuites to build executables when everything comes
21163 from the tree.
21164
21165Mon Jun 27 17:14:29 1994 Bill Cox (bill@rtl.cygnus.com)
21166
21167 * libc/Makefile.in: Add a VERSION variable so we can keep track.
21168 * libm/Makefile.in: Add a VERSION variable so we can keep track.
21169
21170Wed Jun 22 10:26:00 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
21171
21172 * libc/include/stdio.h: Use __VALIST, not va_list.
21173
21174Tue May 17 15:43:28 1994 Bill Cox (bill@rtl.cygnus.com)
21175
21176 * testsuite/config/unix-libm.exp, testsuite/lib/libm.exp,
21177 testsuite/libm.sac/execute.exp:
21178 Replace error proc calls with perror calls.
21179
21180Wed May 11 09:25:28 1994 Doug Evans (dje@canuck.cygnus.com)
21181
21182 * libc/include/*.h: #include "_ansi.h" instead of <_ansi.h>.
21183 * libc/include/time.h: #define NULL as 0L.
21184
21185Mon May 9 18:41:20 1994 Doug Evans (dje@canuck.cygnus.com)
21186
21187 * host/any (INCLUDES): Delete -I of gcc/include, gcc -B takes
21188 care of it.
21189
21190Mon May 9 18:39:39 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
21191
21192 * libc/include/sys/signal.h: Check for __GO32__, not __i386__ and
21193 not __unix__.
21194
21195Sat May 7 17:07:36 1994 Steve Chamberlain (sac@cygnus.com)
21196
21197 * configure.in (TARGET_CFLAGS): Set -O2 as default.
21198 (z8k-*-*): Use syscalls fake sys dir.
21199 * libc/sys/z8k/glue.c: Rename syscalls.
21200 * libc/sys/go32/Makefile.in: Use new routines.
21201 * libc/machine/Makefile.in: Fix typo in ln stuff.
21202
21203Thu May 5 13:47:48 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
21204
21205 * Makefile.in (libm.a, crt0.o): Use cp if ln fails.
21206 * libc/Makefile.in (crt0.o): Likewise.
21207 * libc/machine/Makefile.in (lib.a): Likewise.
21208 * libc/sys/Makefile.in (lib.a, crt0.o): Likewise.
21209
21210 All Makefile.in files: Added mostlyclean, realclean and distclean
21211 targets.
21212
21213 * Makefile.in: Don't bother to unexport XTRAFLAGS or
21214 XTRAFLAGS_FOR_TARGET, since they are no longer passed down from
21215 the top level Makefile.
21216
21217Tue Apr 26 15:10:34 1994 Doug Evans (dje@canuck.cygnus.com)
21218
21219 * libc/sys/sparc64/sys/stat.h: New file.
21220 * libc/sys/sparc64/sys/time.h: New file.
21221 * libc/sys/sparc64/sys/types.h: New file.
21222
21223Fri Apr 22 12:58:24 1994 Stan Shebs (shebs@andros.cygnus.com)
21224
21225 * stub/ex93x/crt0.s (start): Add code to clear bss.
21226
21227Wed Apr 13 10:34:58 1994 Doug Evans (dje@canuck.cygnus.com)
21228
21229 * libc/include/sys/types.h (time_t): Properly protect inside
21230 #ifndef __time_t_defined.
21231
21232 * libc/stdio/fileno.c: New file.
21233 * libc/stdio/Makefile.in (OFILES, CHEWOUT_FILES): Add fileno.
21234 (fileno.o): Add dependency.
21235 * libc/include/stdio.h (__sgetc): Rename never to _never.
21236 (fileno macro): Disable, needs to do CHECK_INIT first.
21237
21238Mon Apr 11 17:37:09 1994 Bill Cox (bill@rtl.cygnus.com)
21239
21240 * testsuite/Makefile.in (EXPECT, RUNTEST): Set these for the check
ba3ccd63 21241 goal.
8a0efa53
CF
21242
21243 * testsuite/Makefile.in (check): Set TCL_LIBRARY for runtest.
21244 * testsuite/libm.paranoia/Makefile.in (check): Set TCL_LIBRARY for
21245 runtest.
21246 * testsuite/libm.sac/Makefile.in (check): Set TCL_LIBRARY for
21247 runtest.
21248
21249Sat Apr 9 16:18:09 1994 Doug Evans (dje@cygnus.com)
21250
21251 * libc/sys/sparc64/sys/fcntl.h: New file, define solaris versions
21252 of the various constants.
21253
21254Thu Apr 7 21:19:07 1994 Mark Eichin (eichin@cygnus.com)
21255
21256 * libc/include/math.h: #ifndef __math_68881 around things which
21257 conflict with the (gcc-provided) inline functions in
21258 gcc/ginclude/math-68881.h.
21259
21260Thu Apr 7 02:50:43 1994 Doug Evans (dje@cygnus.com)
21261
21262 * libc/include/_syslist.h (_gettimeofday): Define.
21263 (_times): Ditto.
21264 * libc/include/reent.h: #include <machine/types.h> to get _CLOCK_T_.
21265 (struct tms, timeval, timezone): Declare.
21266 (_gettimeofday_r, _times_r): Declare.
21267 * libc/include/time.h (_CLOCK_T_): Don't #undef. Remove
21268 #ifdef _CLOCK_T_ surrounding definition of clock_t.
21269 (time_t): Add multiple definition protection, __time_t_defined.
21270 * libc/include/sys/time.h: Don't #include <time.h>.
21271 Always define struct timezone (remove #ifndef _TIME_H_).
21272 * libc/include/sys/times.h (_CLOCK_T_): Don't #undef. Remove
21273 #ifdef _CLOCK_T_ surrounding definition of clock_t.
21274 * libc/reent/Makefile.in (OFILES): Add timer.o.
21275 (CHEWOUT_FILES): Add timer.def. Add timer.o/timer.c dependence.
21276 * libc/reent/timer.c: New file.
21277 * libc/time/clock.c: #include <reent.h>.
21278 (clock): Call _times_r instead of times.
21279 * libc/time/time.c (HAVE_GETTIMEOFDAY): Renamed from
21280 HAVE_GET_TIME_OF_DAY.
21281 Add comment regarding supporting OS routine(s) required (for docs).
21282 #include <reent.h>.
21283 (time): Call _gettimeofday_r instead of gettimeofday.
21284 * libc/time/asctime.c: Fix comment regarding supporting OS routines.
21285 * libc/time/ctime.c: Ditto.
21286 * libc/time/strftime.c: Ditto.
21287 * libc/sys/sparc64/Makefile.in (TEMPLATE_SFILES): Remove gettimeofday.
21288 (TEMPLATE_SFILES_R): Define here. Also define times.
21289 Add times_r.o/times.S dependence.
21290 (time2.c, junk.c): Deleted.
21291 * libc/sys/sparc64/time2.c: Deleted.
21292 * configure.in (sparc64-*-*): Define HAVE_GETTIMEOFDAY.
21293
21294 * libc/stdio/mktemp.c (_getpid_r): Renamed from _getpid.
21295 * libc/stdio/tmpnam.c (_getpid_r): Ditto.
21296 * libc/sys/sparc64/junk.c: Deleted.
21297
21298Mon Mar 21 16:51:03 1994 Doug Evans (dje@canuck.cygnus.com)
21299
21300 * libc/sys/sparc64/Makefile.in: Add times syscall.
21301 * libc/sys/sparc64/crt0.S: Handle stack bias at run time so we can
21302 be used with and without it. Add comment clarifying Medium/Anywhere
21303 model requirements.
21304 * libc/sys/sparc64/sigsetjmp.S (setjmp, longjmp): Add svr4 support.
21305 * libc/sys/sparc64/sys/syscall.h (SYS_times): Define for sunos4
21306 even if obsolete.
21307
21308Sun Mar 20 15:51:47 1994 Doug Evans (dje@cygnus.com)
21309
21310 * configure.in (target_cflags): Move init.
21311 (sparc64-*-*): Define HAVE_BLKSIZE.
21312
21313Wed Mar 9 10:44:52 1994 Doug Evans (dje@canuck.cygnus.com)
21314
21315 * libc/include/sys/_types.h: New file.
21316 * libc/include/reent.h: #include it.
21317 Add comment describing REENTRANT_SYSCALLS_PROVIDED and
21318 MISSING_SYSCALL_NAMES.
21319 Sort syscalls.
21320 * libc/include/_syslist.h: Remove _raise.
21321 * libc/reent/signalr.c: New file.
21322 * libc/reent/Makefile.in: Compile it.
21323 * libc/signal/signal.c: Only use ifdef SIMULATED_SIGNALS.
21324 Add doc for raise and _raise_r.
21325 * libc/signal/raise.c: Only use ifndef SIMULATED_SIGNALS.
21326 (raise): Call _raise_r.
21327 (_raise_r): Call _getpid_r and _kill_r.
21328 * libc/stdlib/abort.c: Remove inclusion of stdio.h and _syslist.h.
21329 (abort): Loop forever calling raise and _exit.
21330
21331Mon Mar 7 14:40:08 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
21332
21333 * configure.in: Remove extraneous echo.
21334
21335Thu Mar 3 12:14:22 1994 Doug Evans (dje@canuck.cygnus.com)
21336
21337 * libc/sys/sparc64/sys/dirent.h (MAXNAMLEN): #undef to avoid
21338 collision with unistd.h, and fix for svr4.
21339
21340Wed Mar 2 13:55:25 1994 Doug Evans (dje@canuck.cygnus.com)
21341
21342 * libc/stdio/local.h (_llicvt): Declare.
21343 (CVT_BUF_SIZE): Define (and buffer size from 512 to 128).
21344 * libc/stdio/cvt.c: Include "local.h" to get CVT_BUF_SIZE.
21345 (_llicvt): Define.
21346 (_sicvt): Fix function header (`value' is short).
21347 * libc/stdio/vfprintf.c (_vfprintf_r): Use CVT_BUF_SIZE.
21348 Add printing of long long's support.
21349 Add printing of 8 byte pointer support.
21350
21351Fri Feb 11 21:52:11 1994 Steve Chamberlain (sac@sphagnum.cygnus.com)
21352
21353 * libc/sys/sh/syscalls.c (pipe, execv, wait, fork, utime, chown,
17c0c97d 21354 stat, chmod): New hooks.
8a0efa53
CF
21355 (sbrk): Abort if stack and heap collide.
21356 * libc/machine/sh/udivsi3, libc/machine/sh/sdivsi3 Modified to
21357 shortcut when given small args.
21358 * libc/machine/sh/setjmp.s: Rewritten.
21359 * libc/machine/sh/strcmp.s (strcmp): New function takes advantage
21360 of cmp/str instruction.
21361
21362Wed Feb 9 15:12:35 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
21363
21364 * configure.in: Accept powerpc* as a CPU type, using fp_dir ieeefp
21365 and machine_dir powerpc.
21366 * libc/include/machine/setjmp.h, libc/include/machine/ieeefp.h:
21367 Add cases for __powerpc__.
21368 * libc/machine/powerpc/Makefile.in, libc/machine/powerpc/setjmp.S:
21369 New files.
21370
21371 * libc/include/stdio.h (_iprintf_r): Declare correctly.
21372
21373Thu Jan 27 10:36:27 1994 Steve Chamberlain (sac@cygnus.com)
21374
21375 * libc/stdlib/callocr.c: New file with _calloc_r in it.
21376 * libc/stdlib/calloc.c (calloc_r): Now in callocr.c
21377
21378Thu Jan 20 15:14:37 1994 Doug Evans (dje@canuck.cygnus.com)
21379
21380 * libc/stdlib/ecvtbuf.c (print_f): Remove local "done".
21381 (print_e): More comments to describe args, etc.
21382 "type" arg may now be 'g' or 'G' for %g/G format --> remove
21383 trailing blanks.
21384 (_gcvt): Remove locals decpt, sign, end, p, done.
21385 More comments for print_e invocation.
21386 Pass "type" to print_e as is (g/G).
21387
21388Wed Jan 19 16:34:18 1994 Rob Savoye (rob@darkstar.cygnus.com)
21389
21390 * stub/shared/m68k-crt0.S: Changed so it compiles (and runs) on a
17c0c97d 21391 stock m68000.
8a0efa53
CF
21392
21393Mon Jan 17 15:41:53 1994 Doug Evans (dje@canuck.cygnus.com)
21394
21395 * libc/stdlib/mallocr.c (_morecore_r): Fix aligning of pointer so it
21396 works with any sized pointer, including ones bigger than ints and
21397 longs.
21398
21399Thu Jan 6 14:53:21 1994 Doug Evans (dje@canuck.cygnus.com)
21400
21401 * libc/sys/sparc64/{time2.c,utime.S,utime2.c}: New files.
21402
21403Sat Dec 11 16:17:20 1993 Steve Chamberlain (sac@thepub.cygnus.com)
21404
21405 * libc/include/stdlib.h (_calloc_r): Add prototype.
21406 * libc/machine/h8500/negsi2.c: New file.
21407 * libc/machine/h8500/divsi3.c: Prevent overflow when dividing v
21408 large unsigned numbers.
21409 * libc/machine/h8500/cmpsi.c: Add cmppsi.
21410 * libc/stdlib/mallocr.c (morecore_r): Fix aligning pointers so it
21411 works when sizeof(size_t) != sizeof(char *).
21412 * libc/stdlib/mprec.c (Balloc): Call calloc rather than malloc to
21413 get play area
21414 * libc/stdlib/mprec.h: Define Just_16 if generating for z8000.
21415
21416Mon Dec 6 15:59:53 1993 Doug Evans (dje@rtl.cygnus.com)
21417
21418 * libc/include/assert.h (assert): Handle -traditional.
21419
21420Tue Nov 16 15:49:24 1993 Mark Eichin (eichin@cygnus.com)
21421
21422 * Makefile.in: added ; after every "fi" and "done" that wasn't at
21423 the end of a line (ie. anything before a backslash continuation)
21424 so that bash handles them.
21425
21426Tue Nov 16 12:31:57 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
21427
21428 * libc/sys/go32/lstat.s: new file, copied from stat.s and renamed
ba3ccd63 21429 stat to lstat
8a0efa53
CF
21430
21431Mon Nov 15 15:50:43 1993 Steve Chamberlain (sac@jonny.cygnus.com)
21432
21433 * libc/sys/sh/crt0.s, libc/sys/sh/trap.s,
21434 libc/machine/sh/sdivsi3.s, libc/machine/sh/setjmp.s,
21435 libc/machine/sh/udivsi3.s: Use new calling convention.
21436
21437Mon Nov 15 15:25:38 1993 Mark Eichin (eichin@cygnus.com)
21438
21439 * libc/include/sys/unistd.h, libc/include/sys/stat.h: ANSI-fy
21440 chmod, access, chdir, chown by making _path const. Also fix _amode
21441 param of access.
21442
21443Fri Nov 12 20:25:28 1993 Mark Eichin (eichin@cygnus.com)
21444
21445 * libc/sys/a29khif/_tmpnam.s (_tmpnam): renamed function to
21446 _khif_tmpnam, because it doesn't comply with ANSI but may be
21447 useful anyway. Real tmpnam was already in libc/stdio, and was
17c0c97d 21448 colliding with this one (pr 2176.)
8a0efa53
CF
21449 * libc/sys/a29khif/stubs.s (tmpnam): removed tmpnam. This file is
21450 the wrong idea anyhow.
21451
21452Mon Nov 8 07:50:16 1993 Doug Evans (dje@canuck.cygnus.com)
21453
21454 * configure.in: Remove h8300h, we have multilib now.
21455
21456Fri Nov 5 12:37:27 1993 Mark Eichin (eichin@cygnus.com)
21457
21458 * libc/string/strcasecmp.c, libc/string/strncasecmp.c: new
21459 functions, to get preference over the ones in libiberty (since we
21460 provide correct declarations in <string.h>.
21461 * libc/string/Makefile.in: add support for strncasecmp,
21462 strcasecmp.
21463
21464Fri Nov 5 09:05:45 1993 D. V. Henkel-Wallace (gumby@blues.cygnus.com)
21465
21466 * Change netware config not to look for cpu explicitly.
21467
21468Thu Nov 4 14:21:25 1993 Doug Evans (dje@canuck.cygnus.com)
21469
21470 * libc/sys/sparc64/{creat.c,junk.c}: New files.
21471 * libc/sys/sparc64/Makefile.in: Add dependencies.
21472
21473Wed Nov 3 10:42:49 1993 Doug Evans (dje@canuck.cygnus.com)
21474
21475 * configure.in: Clean up v9 a bit, new "os" aoutv8.
21476
21477Tue Nov 2 10:00:44 1993 D. V. Henkel-Wallace (gumby@cygnus.com)
21478
21479 * libc/include/sys/reent.h: make structure smaller by allocating
21480 some stuff when needed.
21481 * libc/signal/signal.c: allocate as needed
21482 * libc/stdio/findfp.c,stdio/local.h: ditto
21483 * libc/stdlib/mprec.c: ditto
21484
21485 * libc/time/localtime.c: don't return a dangling stack ptr.
21486
21487Wed Sep 29 20:42:34 1993 Rob Savoye (rob@darkstar.cygnus.com)
21488
21489 * stub/mvme135/crt0.S, stub/mvme135/glue.c: Moved to stub/generic.
21490
21491Wed Sep 29 16:27:49 1993 K. Richard Pixley (rich@sendai.cygnus.com)
21492
21493 * libc/include/stdio.h (__sputc): comment out static inline which
21494 confuses coff toolchains.
21495
21496Thu Sep 2 16:31:36 1993 Mark Eichin (eichin@cygnus.com)
21497
21498 * libc/sys/a29khif/{_close.s, _fstat.s, _lseek.s, _sbrk.s,
21499 _write.s, getpid.c, kill.c, read.s}:
21500 * libc/sys/a29khif/stubs.s: eliminated stubs that already go
21501 through the syscalls directory.
21502
21503Fri Oct 29 13:59:58 1993 Jeffrey Wheat (cassidy@cygnus.com)
21504
21505 * configure.in: fixed double quote gotcha.
21506
21507Wed Oct 27 15:27:09 1993 Rob Savoye (rob@darkstar.cygnus.com)
21508
21509 * stub/ex931: stub library for sparclite board.
21510 * stub/idp: Renamed from mc68ec. Added contructor table
21511 stuff to linker script.
21512 * stub/mvme135: Renamed from m68kmvme. Added contructor table
21513 stuff to linker script.
21514
21515Tue Oct 26 17:01:23 1993 K. Richard Pixley (rich@sendai.cygnus.com)
21516
21517 * configure.in: Configure testsuites only if they exist.
21518
21519Tue Oct 26 12:37:11 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
21520
21521 * configure.in: Don't set machine_dir for i386 until there is
21522 something in libc/machine/i386 to compile. For i[34]86-*-netware*
21523 use sys/netware, don't use signal, define NO_EXEC, ABORT_PROVIDED,
21524 CLOCK_PROVIDED and MALLOC_PROVIDED.
21525
21526 * libc/sys/netware: New directory. Contains simplistic and
21527 probably incorrect stubs for NetWare. Should be enough to load
21528 the library.
21529 * libc/sys/netware/crt0.c, libc/sys/netware/environ.c,
21530 libc/sys/netware/getpid.c, libc/sys/netware/link.c: New NetWare
21531 stub files.
21532
21533 * libc/reent/execr.c: Don't use if NO_EXEC is defined.
21534 * libc/reent/sbrkr.c: Don't use if MALLOC_PROVIDED is defined.
21535 * libc/stdlib/abort.c: Don't use if ABORT_PROVIDED is defined.
21536 * libc/time/clock.c: Don't use if CLOCK_PROVIDED is defined.
21537
21538Mon Oct 25 16:48:08 1993 Roland H. Pesch (pesch@cygnus.com)
21539
21540 * testsuite/Makefile.in: add "docs" dummy target for consistency
21541 with rest of newlib; turn "info" and "install-info" into dummy
21542 targets, since they wouldn't have worked. (Depended on
21543 nonexistent "doc" subdir.)
21544
21545Fri Oct 22 20:37:32 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
21546
21547 * configure.in: handle mips* instead of mips
21548
21549Thu Oct 21 08:57:24 1993 Ian Lance Taylor (ian@cygnus.com)
21550
21551 * libc/include/sys/dirent.h: New file. If it is not overridden by
21552 a version of libc/sys/*/sys/dirent.h, it includes the next
21553 <dirent.h> file in case there is one lurking somewhere.
21554
21555Fri Oct 15 14:17:40 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
21556
21557 * libc/stdlib/strtoul.c (_strtoul_r): Several changes for ANSI
21558 compliance, namely: Accept a minus sign. Consider a single 0 with
21559 a radix of 0 as being a conversion. Determine overflow correctly.
21560 If an overflow occurs, set *ptr to the end of the number, not the
21561 middle.
21562 * lib/stdlib/strtol.c (_strtol_r): Determine overflow correctly.
21563
21564Thu Oct 14 21:49:52 1993 Doug Evans (dje@canuck.cygnus.com)
21565
21566 * libc/machine/h8300/divsi3.S (divmodsi4): Fix h8300h case.
21567
21568Fri Oct 1 17:17:34 1993 Doug Evans (dje@canuck.cygnus.com)
21569
21570 * Makefile.in (INSTALL): Use $srcrootpre.
21571 (crt0.o): Replace $< with $(CRT0_DIR)/$(CRT0), Sun make
21572 can't handle it.
21573 * libc/Makefile.in (crt0.o): Spell out $<, Sun make can't handle
21574 it.
21575 * libc/sys/Makefile.in (crt0.o, lib.a): Ditto.
21576 * stub/Makefile.in (crt0.o, TARGETLIB): Ditto.
21577 * libc/sys/sparc64/Makefile.in (isatty.o): Sun VPATH lossage.
21578 * libm/math/Makefile.in (matherr.o): Ditto.
21579
21580Thu Sep 30 11:09:17 1993 Steve Chamberlain (sac@phydeaux.cygnus.com)
21581
21582 * configure.in: Build multidirs for z8k.
21583 * libc/include/stdlib.h (_strtoul_r): add prototype.
21584 * libc/include/machine/limits.h: Get INT_MIN right for all the z8k family.
21585 * libc/include/machine/setjmp.h: Add for z8k.
21586 * libc/machine/z8k/{mulsi.o, udivsi3.o, umodsi3.o, modsi3.o} obsolete.
21587 * libc/sys/z8ksim/glue.c: tidy up.
21588
21589Mon Sep 20 14:04:46 1993 Doug Evans (dje@canuck.cygnus.com)
21590
21591 * libc/unix/{execl.c execle.c execlp.c execv.c execvp.c}:
21592 New files. Requires execve system call.
21593 * libc/unix/Makefile.in: Use them.
21594 * libc/sys/sparc64/{execl.c execle.c execlp.c execv.c execvp.c}:
21595 Deleted, moved to libc/unix.
21596 * libc/sys/sparc64/Makefile.in: Remove them.
21597
21598Mon Sep 20 10:38:32 1993 Doug Evans (dje@canuck.cygnus.com)
21599
21600 * libc/sys/sparc64/{template.S template_r.S}: New files.
21601 * libc/sys/sparc64/Makefile.in: Build source for trivial syscalls
21602 from templates.
21603 * libc/sys/sparc64/{chdir.S chmod.S close.S dup.S fcntl.S
21604 fork.S fstat.S lseek.S link.S mkdir.S open.S pipe.S read.S rmdir.S
21605 umask.S unlink.S wait4.S write.S}: Removed, now built from
21606 templates.
21607
21608Sun Sep 19 14:52:57 1993 Doug Evans (dje@canuck.cygnus.com)
21609
21610 * libc/time/time.c: #include <_ansi.h>.
21611
21612Sun Sep 19 13:43:25 1993 Doug Evans (dje@canuck.cygnus.com)
21613
21614 * configure.in (sparc64-*-*): Remove -D__SIZE_TYPE__.
21615
21616Mon Sep 13 13:52:16 1993 K. Richard Pixley (rich@sendai.cygnus.com)
21617
21618 * configure.in: match m8* rather than m88k so that m88110 is
21619 recognized as well.
21620
21621Tue Sep 7 12:19:32 1993 Doug Evans (dje@canuck.cygnus.com)
21622
21623 * libc/sys/h8300hms/{Makefile.in, _exit.c, misc.c}:
21624 Renamed exit.c to _exit.c to avoid collision with stdlib/exit.c.
21625 misc.c: New file.
21626
21627 * configure.in: Add multilib support to h8300.
21628
21629Mon Sep 6 14:07:06 1993 Doug Evans (dje@canuck.cygnus.com)
21630
21631 * libc/stdlib/abort.c (abort): Remove _VOLATILE from return type.
21632 * libc/include/_ansi.h (_ATTRIBUTE): New macro for __attribute__.
21633 * libc/include/stdlib.h (exit, abort): Add noreturn attribute.
21634
21635Mon Sep 6 14:24:18 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
21636
21637 * configure.in: Corrected multidirs for sparc target.
21638
21639Mon Aug 30 15:56:44 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
21640
21641 Support for building newlib multiple times with different
21642 compilation flags.
21643 * configure.in: Only configure doc at top level. Set multidirs
21644 when appropriate for target, unless not at top level. If
21645 multidirs is set, independently configure each subdirectory.
21646 Adjust TOP, MULTIDIRS and MULTISUBDIR appropriately in Makefile.
21647 * Makefile.in (MULTIDIRS, MULTISUBDIR): New variables,
21648 automagically set by configure.in.
21649 (all): If MULTIDIRS is set, build multiple copies of libraries.
21650 (install): If MULTIDIRS is set, install multiple copies of
21651 libraries. Install in $(tooldir)/lib/$(MULTISUBDIR). If
21652 MULTISUBDIR is set, don't bother to install header files.
21653 * host/any (INCLUDES, CHEW): Use $(SRCTOP) rather than $(TOP) from
21654 ${srcrootpre}.
21655 * stub/configure.in: Set MULTISUBDIR appropriately.
21656 * stub/Makefile.in (install): Install in
21657 $(tooldir)/lib/$(MULTISUBDIR).
21658 * All Makefile.in files: Define SRCTOP as well as TOP.
21659
21660Mon Aug 30 10:34:24 1993 Doug Evans (dje@canuck.cygnus.com)
21661
21662 * libc/machine/h8300/{mulhi3.S, divhi3.S}: Comment out if h8300h.
21663 * libc/machine/h8300/{mulsi3.S, divsi3.S}: Add h8300h support.
21664
21665Thu Aug 26 19:38:12 1993 Doug Evans (dje@canuck.cygnus.com)
21666
21667 * libc/sys/h8300hms/exit.c (_exit): New function.
21668
21669Wed Aug 25 16:31:48 1993 K. Richard Pixley (rich@sendai.cygnus.com)
21670
21671 * configure.in: recognize m88110.
21672
21673Fri Aug 20 16:46:23 1993 K. Richard Pixley (rich@sendai.cygnus.com)
21674
21675 * libc/sys/m88kbug/crt0.c: pretty up, remove extraneous comments,
21676 prototype main and call with args.
21677
21678Fri Jul 30 16:52:47 1993 K. Richard Pixley (rich@cygnus.com)
21679
21680 First real try at system traps for m88k-bug.
21681 * libc/sys/m88kbug/syscalls.c: many changes. Convert from stubs
21682 to real trap calls.
21683 * libc/sys/m88kbug/sys/systraps.h: new file.
21684
21685Tue Jul 27 16:31:16 1993 K. Richard Pixley (rich@sendai.cygnus.com)
21686
21687 Patches to fix info building when target does not use sys
21688 directory.
21689 * libc/Makefile.in (targetdep.tex): add sys.tex separately.
21690 * libc/sys.tex, libc/sys/sys.tex: moved from libc/sys/sys.tex to
21691 libc/sys.tex.
21692 * libc/sys/Makefile.in (doc): do nothing.
21693
21694Mon Jul 26 17:08:11 1993 K. Richard Pixley (rich@sendai.cygnus.com)
21695
21696 * libc/Makefile.in (CRT0): new macro.
21697 (all): depend on $(CRT0) rather than crt0.o.
21698
21699 * configure.in: fix libc_sys_dir -> libc_sys_lib thinko.
21700 do not default crt0, instead, set crt0 and crt0_dir based on
21701 sys_dir and stub_dir.
21702
21703 * Makefile.in (CRT0_DIR): new macro.
21704 (all): depend on $(CRT0) rather than crt0.o which may not exist.
21705 (crt0.o): depend on $(CRT0_DIR)/$(CRT0) rather than simply
21706 $(CRT0).
21707 ($(CRT0)): recur by cd'ing into $(CRT0_DIR).
21708
21709Sun Jul 25 17:51:51 MDT 1993 Jeffrey Wheat (cassidy@cygnus.com)
21710
17c0c97d
EB
21711 * testsuite/lib/libm.exp:
21712 added code to support compiling and linking of tests for
21713 libm.sac (paranoia to be added next) and processing the
8a0efa53
CF
21714 pass or failure of the tests.
21715
21716 * testsuite/config/unix-libm.exp:
21717 platform specific proc's for dealing with compiler, linker
21718 and the way we execute and process the test results.
21719
21720 * testsuite/libm.sac/execute.exp:
17c0c97d 21721 generic framework for the sac tests. the config and lib
8a0efa53
CF
21722 expect code for specific platforms tie it all together.
21723
21724 * testsuite/libm.sac/test_is.c:
21725 changed the output of the test to be consistant with the
21726 other tests. parsing of pass nad fail messages is now fixed.
21727
21728Fri Jul 23 19:20:07 1993 Per Bothner (bothner@kalessin)
21729
21730 * libc/include/{assert.h, ctype.h, dirent.h, errno.h, fastmath.h,
21731 locale.h, math.h, pwd.h, reent.h, setjmp.h, signal.h, stdio.h,
21732 stdlib.h, string.h, termios.h, time.h, utime.h, utmp.h}: For C++:
21733 #ifdef __cplusplus, surround by extern ""C { ... }.
21734 * libc/include/assert.h: Do *not* protect assert.h against
21735 multiple inclusion! Also, #undef it before #define, to allow
21736 redefinition.
21737 * libc/include/stdio.h (getlogin, cuserid): Removed. These
21738 should be only in unistd.h.
21739
21740 * libc/include/sys/{fcntl.h, reent.h, stat.h, time.h, times.h,
21741 unistd.h}: For C++: #ifdef __cplusplus, surround by extern ""C {
21742 ... }.
21743
21744Fri Jul 23 10:15:33 1993 Doug Evans (dje@canuck.cygnus.com)
21745
21746 * libc/machine/sparc/Makefile.in: Must create a library, even
21747 if empty.
21748
21749Wed Jul 21 16:00:37 1993 K. Richard Pixley (rich@sendai.cygnus.com)
21750
21751 * configure.in: set machine_dir for m88k. edit crt0 definition
21752 into makefiles.
21753
21754 * Makefile.in, libc/Makefile.in (crt0): pull up from lower directories.
21755
21756 * libc/Makefile.in (all): also build crt0.o.
21757
21758 * libc/machine/i386/Makefile.in, libc/machine/sparc/Makefile.in,
21759 libc/machine/z8k/Makefile.in, libm/Makefile.in (clean): no need
21760 to remove CRT0.
21761
21762 * libc/machine/m88k/Makefile.in (TOP, TARGETLIB): removed.
21763 (all): reworked to build in place.
21764 (clean): remove lib.a
21765 (Makefile): remove redundant ./, call $(SHELL) rather than sh.
21766
21767 * libc/sys/m88kbug/crt0.c (start): renamed to _start.
21768 (_start): key off edata rather than _start_bss.
21769
21770Wed Jul 21 14:29:47 1993 david d `zoo' zuhn (zoo@cygnus.com)
21771
21772 * libc/include/sys/unistd.h, libc/include/reent.h,
21773 libc/reent/sbrkr.c: change sbrk to return void* instead of char*.
21774
21775Tue Jul 20 13:19:18 1993 K. Richard Pixley (rich@sendai.cygnus.com)
21776
21777 * libm/Makefile.in, libc/Makefile.in ($(SUBDIRS)): dollar escape a dollar sign.
21778
21779 * Makefile.in (libc.a): break into two rules, one for libc.a and
21780 one for libc/libc.a. Force subdirs current before rebuilding
21781 library.
21782 (libm.a): break into two rules, one for libm.a and one for
21783 libm/libm.a. Force subdirs current before rebuilding library.
21784
21785 * libc/Makefile.in (SUBLIBS): fix typo.
21786
21787 * libc/sys/Makefile.in (all): force descent into subdirs, then
21788 rebuild library iff out of of date.
21789
21790Fri Jul 16 17:47:57 1993 K. Richard Pixley (rich@sendai.cygnus.com)
21791
21792 Rework so that library is built and then finished rather than
21793 being built on each invocation of make.
21794
21795 * host/any (machine_dir, sys_dir, signal_dir): these are not
21796 shared and have been moved to their associated Makefile.in's.
21797 (AR_FLAGS): switch to qc which is faster.
21798 * configure.in: no longer assign machine_dir for m88k. set
21799 stub_dir, stub_lib, & crt0 for m68k*-unknown-{aout,coff}. If
21800 stub_dir set, then add to configdirs. add comment about silly
21801 configuration.
21802 (configdirs): drop stub. It will be added only
21803 when needed.
21804 (libm_fp_lib, libc_unix_lib, libc_signal_lib, libc_machine_lib,
21805 libc_sys_dir, fake_sys_dir, libc_fake_sys_lib, stub_dir,
21806 stub_lib, crt0): new variables for tailoring lower level
21807 makefiles. Assign accordingly and edit into makefiles.
21808 * libm/Makefile.in: updated copyright.
21809 (TARGETLIB): removed.
21810 (FLAGS_TO_PASS): removed TARGETLIB, machine_dir, sys_dir.
21811 (SUBDIRS): removed TARGETDEP_DIRS.
21812 (LIBM_FP_LIB, SUBLIBS): new macros.
21813 (all): reworked.
21814 (force): new target to force rebuilds.
21815 (Makefile): call $(SHELL) rather than sh. drop redundant ./
21816 * libc/sys/a29khif/Makefile.in, libc/sys/decstation/Makefile.in,
21817 libc/sys/go32/Makefile.in, libc/sys/h8300hms/Makefile.in,
21818 libc/sys/h8500hms/Makefile.in, libc/sys/m88kbug/Makefile.in,
21819 libc/sys/sh/Makefile.in, libc/sys/sparc64/Makefile.in,
21820 libc/sys/sun4/Makefile.in, libc/sys/sysvi386/Makefile.in,
21821 libc/sys/sysvnecv70/Makefile.in, libc/sys/z8ksim/Makefile.in,
21822 stub/m68kmvme/Makefile.in: updated copyright.
21823 (TARGETLIB, TARGETCRT0, CRT0): macros removed.
21824 (all): reworked. made this the default rule.
21825 (clean): also remove lib.a.
21826 (Makefile): call $(SHELL) rather than sh. drop redundant ./
21827 * stub/Makefile.in: updated copyright.
21828 (TARGETLIB, TARGETCRT0, CRT0, TOP): removed.
21829 (stub_lib): new macro.
21830 (FLAGS_TO_PASS): removed TARGETLIB, stub_dir, TARGETCRT0. Added
21831 RANLIB.
21832 (all): reworked.
21833 (clean, install): assume stub_dir exists.
21834 (Makefile): depend on configure.in. call $(SHELL) rather than
21835 sh. drop redundant ./
21836 * stub/configure.in (stublib): new macro, assign it, edit it into
21837 makefiles.
21838 * Makefile, libc/Makefile.in, doc/Makefile.in, libc/sys/Makefile.in:
21839 updated copyright.
21840 (all): reworked.
21841 (Makefile): call $(SHELL) rather than sh. drop redundant ./
21842 * libc/Makefile.in (TARGETCRT0): removed.
21843 (FLAGS_TO_PASS): dropped TARGETLIB, machine_dir, sys_dir,
21844 TARGETCRT0.
21845 (SUBDIRS): drop TARGETDEP_DIRS.
21846 (LIBC_SIGNAL_LIB, LIBC_SYS_LIB, LIBC_MACHINE_LIB, LIBC_UNIX_LIB,
21847 LIBC_FAKE_SYS_LIB, SUBLIBS): new macros for configuration.
21848 (force): new target to force rebuilds.
21849 * libc/sys/Makefile.in (TARGETCRT0, sys_dir): removed.
21850 (FLAGS_TO_PASS): TARGETLIB, machine_dir, sys_dir, TARGETCRT0
21851 removed.
21852 (clean): assume sys_dir always exists.
21853 * libm/test/Makefile.in (Makefile): call $(SHELL) rather than sh.
21854 drop redundant ./
21855 * libc/ctype/Makefile.in, libc/errno/Makefile.in,
21856 libc/locale/Makefile.in, libc/machine/Makefile.in,
21857 libc/machine/a29k/Makefile.in, libc/machine/h8300/Makefile.in,
21858 libc/machine/h8500/Makefile.in, libc/machine/i386/Makefile.in,
21859 libc/machine/i960/Makefile.in, libc/machine/m68k/Makefile.in,
21860 libc/machine/mips/Makefile.in, libc/machine/necv70/Makefile.in,
21861 libc/machine/sh/Makefile.in, libc/machine/sparc/Makefile.in,
21862 libc/machine/z8k/Makefile.in, libc/reent/Makefile.in,
21863 libc/signal/Makefile.in, libc/stdio/Makefile.in,
21864 libc/stdlib/Makefile.in, libc/string/Makefile.in,
21865 libc/sys/Makefile.in, libc/syscalls/Makefile.in,
21866 libc/time/Makefile.in, libc/unix/Makefile.in,
21867 libm/ieeefp/Makefile.in, libm/math/Makefile.in: updated copyright.
21868 (TARGETLIB): removed.
21869 (all): reworked.
21870 (clean): also remove lib.a.
21871 (Makefile): call $(SHELL) rather than sh. drop redundant ./
21872 * Makefile.in: (machine_dir, sys_dir, stub_dir, stub_lib, CRT0):
21873 new macros.
21874 (SUBDIRS): moved to follow frag inclusion, change stub to
21875 stub_dir.
21876 (FLAGS_TO_PASS): removed machine_dir, sys_dir, signal_dir which
21877 are now set in the libc Makefile.
21878 * libc/machine/Makefile.in (TARGETCRT0, machine_dir): removed.
21879 (FLAGS_TO_PASS): removed TARGETLIB, machine_dir, sys_dir,
21880 TARGETCRT0.
21881 (force): new target to force rebuilds.
21882 * stub/configure.in: determine and set stub_lib for for Makefile.
21883
21884Thu Jul 15 12:01:27 1993 Doug Evans (dje@canuck.cygnus.com)
21885
21886 * libc/sys/h8300hms/Makefile.in: Make `all' the default target.
21887 crt0.s renamed to crt0.S.
21888 * libc/sys/h8300hms/crt0.S: Add h8/300h support.
21889
21890 * libc/machine/h8300/Makefile.in: Make `all' the default target.
21891 * libc/machine/h8300/{cmpsi.S,ucmpsi.S}: #ifdef out entire file if
21892 h8300h.
21893 * libc/machine/h8300/defines.h: Add macros to handle pointers for
21894 h8300 (16 bits) and h8300h (32 bits).
21895 * libc/machine/h8300/{divsi3.S,mulsi3.S,memcpy.S,memset.S,
21896 reg_memcpy.S,reg_memset.S,strcmp.S}: Add h8300h support.
21897
21898Thu Jul 15 10:13:29 1993 Ian Lance Taylor (ian@cygnus.com)
21899
21900 * libc/machine/m88k/setjmp.S, Makefile.in: New files; a simple
21901 implementation of setjmp and longjmp for the m88k.
21902 * libc/include/machine/setjmp.h: Added __m88000__ case.
21903
21904Wed Jul 14 10:10:30 1993 Doug Evans (dje@canuck.cygnus.com)
21905
21906 * configure.in: Recognize h8300h as variant of h8300.
21907
21908Tue Jul 13 12:24:11 1993 Steve Chamberlain (sac@phydeaux.cygnus.com)
21909
21910 * libc/include/sys/unistd.h (read, write): get prototypes right.
21911 (sbrk): New prototype.
21912 * libc/reent/sbrkr.c (sbrkr): Use correct sbrk prototype.
21913 * libc/stdio/local.h: Include unistd.h.
21914 * libc/machine/h8300/syscalls.c: Names have changed.
21915
21916Mon Jul 12 18:08:42 1993 K. Richard Pixley (rich@cygnus.com)
21917
21918 * configure.in: add sys_dir assignment for m88k-bug.
21919
21920Thu Jul 8 09:16:21 1993 Doug Evans (dje@canuck.cygnus.com)
21921
21922 * libc/sys/sparc64/sys/syscallasm.h: New macros to handle either
21923 a.out or elf.
21924 * libc/sys/sparc64: all *.S files: Use new macros.
21925 * libc/sys/sparc64/isatty.c: New file.
21926 * libc/sys/sparc64/Makefile.in: Stop using /lib/libc.a for
21927 functions beyond what newlib provides.
21928
21929Thu Jul 8 09:11:28 1993 Doug Evans (dje@canuck.cygnus.com)
21930
21931 * libc/include/sys/stat.h: Move st_atime so not doubly defined for
21932 svr4.
21933
21934Thu Jul 8 09:09:16 1993 Doug Evans (dje@canuck.cygnus.com)
21935
21936 * libc/include/machine/ieeefp.h: Add support for h8/300h.
21937
21938Fri Jul 2 10:11:20 1993 K. Richard Pixley (rich@cygnus.com)
21939
21940 * configure.in: add m88k.
21941 * libc/include/machine/ieeefp.h: add case for m88k. Also add
21942 sanity check so no one else need ever chase what I did to find
21943 this.
21944
21945 * libm/math/Makefile.in (FAKEC): added atanf.c log1pf.c scalbnf.c.
21946
21947Fri Jul 2 09:15:21 1993 Ian Lance Taylor (ian@cygnus.com)
21948
21949 * doc/makedoc.c: Include <ctype.h>.
21950
21951Wed Jun 30 09:35:06 1993 Doug Evans (dje@canuck.cygnus.com)
21952
21953 * libc/Makefile.in (FLAGS_TO_PASS): Add TARGET_ASFLAGS.
21954 * libc/sys/Makefile.in (FLAGS_TO_PASS): Add TARGET_ASFLAGS.
21955 * libc/machine/Makefile.in (FLAGS_TO_PASS): Add TARGET_ASFLAGS.
21956
21957 * libm/test/Makefile.in (all): Link with ../../lib[cm].a.
21958
21959Sun Jun 27 17:05:20 1993 Doug Evans (dje@sphagnum.cygnus.com)
21960
21961 * libc/include/errno.h (ENOSYS): Added.
21962
21963 * libc/unix/getpwd.c (getcwd): Fix typo (_up -> up).
21964
21965Mon Jun 21 09:03:32 1993 Steve Chamberlain (sac@phydeaux.cygnus.com)
21966
21967 * libc/stdio/fflush.c (fflush): Check for reent struct
21968 initialization.
21969 * libc/stdio/fdopen.c (fdopen): Avoid namespace conflict.
21970
21971Fri Jun 18 16:06:05 1993 Mark Eichin (eichin@rtl.cygnus.com)
21972
21973 * libc/stdlib/dtoastub.c: new file -- move user callable "dtoa"
21974 out of dtoa.c so it doesn't pollute the namespace.
21975 * libc/include/_syslist.h: new file -- mappings from _function to
21976 function, for systems where we can't win (by default, all of them,
21977 until we start updating system calls.)
21978 * libc/syscalls: new directory -- stubs for exporting _function
21979 names as unmodified function names.
21980 * libc/configure.in: add MISSING_SYSCALL_NAMES to enable
21981 _syslist.h on all platforms by default, but put hooks in for
21982 fake_sys_dir so we can include it when we've renamed the system
21983 calls.
21984 * libc/reent/execr.c libc/reent/filer.c libc/reent/fstatr.c
21985 libc/reent/linkr.c libc/reent/sbrkr.c libc/reent/statr.c
21986 libc/signal/raise.c libc/signal/signal.c libc/stdio/fdopen.c
21987 libc/stdio/mktemp.c libc/stdio/tmpnam.c libc/stdlib/abort.c
21988 libc/stdlib/system.c libc/unix/getcwd.c libc/unix/getlogin.c
21989 libc/unix/getpass.c libc/unix/getut.c libc/unix/ttyname.c: change
21990 non ANSI functions to call _function.
21991
21992Wed Jun 9 09:48:26 1993 Ian Lance Taylor (ian@cygnus.com)
21993
21994 * libc/stdlib/strtoul.c (_strtoul_r): Handle leading 0 correctly
21995 when base 16 is specified. Don't accept non-digits if radix > 10.
21996
21997Thu Jun 3 10:01:15 1993 Doug Evans (dje@canuck.cygnus.com)
21998
21999 * libc/include/math.h: Rename xxx_r fns to _xxx_r.
22000
22001Wed Jun 2 16:54:16 1993 Jim Wilson (wilson@sphagnum.cygnus.com)
22002
22003 * libc/include/sys/stat.h: Surround text after #endif with
22004 comments.
22005
22006Wed Jun 2 12:47:32 1993 Ian Lance Taylor (ian@cygnus.com)
22007
22008 * libc/stdlib/mallocr.c: If MALLOC_PROVIDED is defined, just make
22009 _malloc_r, _realloc_r, and free_r call the corresponding
22010 non-reentrant functions.
22011
22012 * libm/math/modf.c (modf): We now take the address of ipart, so
22013 don't make it a register variable.
22014
22015Tue Jun 1 18:25:54 1993 Doug Evans (dje@canuck.cygnus.com)
22016
22017 * libm/math/*: Rename all xxx_r fns to _xxx_r.
22018
22019Wed May 26 22:06:35 1993 Roland H. Pesch (pesch@cygnus.com)
22020
22021 * libc/libc.texinfo and embedded docn throughout: formatting
22022 improvements, minor rephrasing for clarity, and improved
22023 reentrancy docn.
22024
22025Sun May 23 17:29:49 1993 Steve Chamberlain (sac@thepub.cygnus.com)
22026
22027 * libm/ieeefp/infinity.c (maxpowtwof): Fix initialzation bug.
22028
22029 * libc/stdio/cvt.c (_licvt): Print the right value on machines
22030 where sizeof(int) != sizeof(long).
22031
22032Fri May 21 22:09:32 1993 Roland H. Pesch (pesch@fowanton.cygnus.com)
22033
22034 * libc/reent/execr.c, libc/reent/filer.c, libc/reent/linkr.c,
22035 libc/reent/sbrkr.c, libc/reent/statr.c, libc/stdio/tmpnam.c,
22036 libc/stdlib/atol.c, libc/stdlib/rand.c, libc/string/strpbrk.c,
22037 libc/string/strspn.c, libm/ieeefp/isnan.c, libm/math/bessel.c,
22038 libm/math/matherr.c: changes for better docn formatting (info).
22039
22040 * libc/libc.texinfo, libc/ctype/ctype.tex, libc/locale/locale/tex,
22041 libc/reent/reent.tex, libc/signal/signal.tex,
22042 libc/stdio/stdio.tex, libc/stdlib/stdlib.tex,
22043 libc/string/strings.tex, libc/sys/sys.tex, libc/time/time.tex,
22044 libm/libm.texinfo, libm/ieeefp/ieeefp.tex, libm/math/math.tex: use
22045 makeinfo node defaulting to get better Info file node structure.
22046 (Requires recent sac change to doc/makedoc.c and doc/doc.str.)
22047 Also include a few formerly missing sections (subroutines).
22048
22049 * doc/doc.str: delete fossil expansion for "func"
22050
22051 * default.menu, no-signal.menu: delete.
22052
22053 * Makefile.in, libc/Makefile.in, configure.in, host/any: simplify
17c0c97d 22054 method used to adjust doc for missing "signals" chapter when
8a0efa53
CF
22055 signal_dir is empty.
22056
22057Thu May 20 21:38:37 MDT 1993 Jeffrey Wheat (cassidy@cygnus.com)
22058
22059 * configure.in: added testsuite/libm.sac
22060
22061Wed May 19 14:52:34 1993 Doug Evans (dje@thepub.cygnus.com)
22062
22063 * libc/sys/sparc64/crt0.S: Set %g4 to 0 (to test Medium/Anywhere
22064 code model).
22065
22066Tue May 18 13:17:21 1993 Ian Lance Taylor (ian@cygnus.com)
22067
22068 * libm/Makefile.in: Use $(MAKE) rather than make, and define
22069 MAKEOVERRIDES to be empty.
22070
22071Mon May 17 08:42:44 1993 Ian Lance Taylor (ian@cygnus.com)
22072
22073 * configure.in: Don't build mips-*-* with -msoft-float, since that
22074 makes it incompatible with hard floating point.
22075
22076Mon May 17 00:03:35 MDT 1993 Jeffrey Wheat (cassidy@cygnus.com)
22077
22078 * Makefile.in: added recursive 'make check'
22079
22080Thu May 13 16:24:18 MDT 1993 Jeffrey Wheat (cassidy@cygnus.com)
22081
22082 * configure.in: added ./testsuite ./testsuite/libm.paranoia
22083 * ./testsuite/Makefile.in: created
22084 * ./testsuite/libm.paranoia: paranoia tests added
22085
22086Thu May 13 10:30:24 1993 Ian Lance Taylor (ian@cygnus.com)
22087
22088 * configure.in: For mips-*-* set machine_dir to mips.
22089
22090 * libc/machine/mips: New directory.
22091 * libc/machine/mips/Makefile.in: New file.
22092 * libc/machine/mips/setjmp.S: New file; simplistic MIPS version of
22093 setjmp and longjmp.
22094 * libc/include/machine/setjmp.h: Added __mips__ case.
22095
22096 * libc/machine/lmips: Removed unused and useless directory.
22097
22098Mon May 3 10:22:31 1993 Ian Lance Taylor (ian@cygnus.com)
22099
22100 * configure.in: Accept i486-*-sco* as well as i386-*-sco*.
22101
22102Thu Apr 15 15:16:44 1993 Doug Evans (dje@canuck.cygnus.com)
22103
22104 * libc/sys/sparc64/crt0.S: Add comment (%g1 contains atexit arg at
22105 start up).
22106
22107Fri Apr 9 13:32:26 1993 Ian Lance Taylor (ian@cygnus.com)
22108
22109 * libc/include/machine/setjmp-dj.h: Use _SETJMP_DJ_H rather than
22110 SETJMP_H.
22111
22112Thu Apr 8 10:07:18 1993 Doug Evans (dje@canuck.cygnus.com)
22113
22114 * libm/test/convert.c: structure member errno -> errno_val.
22115 Must include <errno.h> to use errno, it's a macro now.
22116 * libm/test/math.c: Ditto.
22117 * libm/test/math2.c: Include errno.h.
22118 * libm/test/string.c: Ditto.
22119 * libm/test/test.h: structure member errno -> errno_val.
22120 Remove extern int errno decl.
22121
22122Thu Apr 8 07:56:33 1993 Ian Lance Taylor (ian@cygnus.com)
22123
22124 * libc/stdio/Makefile.in: Added dependencies on local header
22125 files.
22126 * libc/stdio/std.h, libc/stdio/vfprintf.h: Removed unused header
22127 files.
22128
22129Wed Apr 7 16:19:32 1993 Ian Lance Taylor (ian@cygnus.com)
22130
22131 * libc/include/machine/ieeefp.h: Added __MIPSEB__ case.
22132
22133Wed Apr 7 10:55:21 1993 Doug Evans (dje@canuck.cygnus.com)
22134
22135 * libc/stdio/siprintf.c libc/stdio/sscanf.c libc/stdio/vsprintf.c:
22136 Initialize _data.
22137
22138 * libc/stdio/vfprintf.c: No need to declare _icvt, _licvt, _sicvt.
22139 * libc/stdio/local.h: Add prototype for _licvt.
22140
22141 * libc/stdio/ungetc.c (__submore): Use _malloc_r,_realloc_r
22142 instead of malloc,reealloc.
22143
22144 * libc/stdlib/local.h: New file.
22145 * libc/stdlib/efgcvt.c: #include local.h.
22146 (gcvt): Fix call to _gcvt.
22147 * libc/stdlib/ecvtbuf.c: #include local.h.
22148
22149 * libc/stdlib/Makefile.in: new files mallocr.c mstats.c.
22150 * libc/stdlib/mallocr.c mstats.c malloc.h: New files.
22151 * libc/stdlib/malloc.c: main routines moved to mallocr.c.
22152
22153 * libc/stdlib/atexit.c: moved global data to struct _reent.
22154 * libc/stdlib/exit.c: use struct _atexit in struct _reent.
22155
22156 * libc/reent/reent.c (inpure_data): _REENT_INIT macro modified.
22157
22158Wed Apr 7 09:41:50 1993 Doug Evans (dje@canuck.cygnus.com)
22159
22160 * libc/include/sys/reent.h: Stuff required by ANSI headers moved
22161 here from ../reent.h.
22162
22163Tue Apr 6 12:56:01 1993 Ian Lance Taylor (ian@cygnus.com)
22164
22165 * Makefile.in (MATHOBJS_IN_LIBC): List of object files which
22166 should be provided in both libc.a and libm.a.
22167 (libc.a): Depend on targ-include and libm.a. Copy
22168 $(MATHOBJS_IN_LIBC) from libm.a to libc.a.
22169 (libm.a): Depend on targ-include.
22170 * configure.in (subdirs): Removed libc/math.
22171
22172Mon Apr 5 10:18:16 1993 Steve Chamberlain (sac@thepub.cygnus.com)
22173
22174 * libm/ieeefp/infinity.c (maxpowtwo): Fix initialization bug.
22175
22176Sat Apr 3 11:06:07 1993 Doug Evans (dje@canuck.cygnus.com)
22177
22178 * libc/include/{errno.h, math.h, stdio.h, stdlib.h}: Use
22179 sys/reent.h instead of reent.h.
22180 * libc/include/reent.h: Split into two parts: stuff needed by ANSI
17c0c97d 22181 headers moved to sys/reent.h.
8a0efa53
CF
22182 * libc/include/signal.h: _MAX_SIGNALS moved to sys/signal.h.
22183 * libc/include/sys/signal.h: Define _MAX_SIGNALS if
22184 __need__MAX_SIGNALS defined.
22185 * libc/include/stdio.h: struct __sFILE moved to sys/reent.h.
22186 std{in,out,err} refer to new _std{in,out,err} members.
22187
22188Fri Apr 2 11:27:12 1993 Doug Evans (dje@canuck.cygnus.com)
22189
22190 * libc/include/sys/signal.h: #define _SYS_SIGNAL_H for general
22191 case.
22192
22193Fri Apr 2 09:41:10 1993 Doug Evans (dje@canuck.cygnus.com)
22194
22195 * libc/sys/sparc64/execve.S (execve): Insert nop in delay slot,
22196 rather than whatever macro seterrno() has.
22197
22198Thu Apr 1 16:47:08 1993 Doug Evans (dje@canuck.cygnus.com)
22199
22200 * libc/locale/locale.c: Reentrant routines _r_xxx renamed to
22201 _xxx_r. struct reent_struct renamed to struct _reent for ANSI.
22202
22203 * libc/include/machine/fastmath.h: Use _HAVE_STDC instead of
22204 __STDC__.
22205
22206 * libc/reent/{execr.c, filer.c, fstatr.c, linkr.c, reent.c,
22207 reent.tex, sbrkr.c, statr.c}: _r_xxx reentrant routines renamed to
22208 _xxx_r. struct reent_struct renamed to struct _reent for ANSI.
22209
22210 * libc/signal/signal.c: Reentrant routines _r_xxx renamed to
22211 _xxx_r. struct reent_struct renamed to struct _reent for ANSI.
22212
22213 * libc/stdio/{fclose.c, fdopen.c, findfp.c, fiprintf.c, flags.c,
22214 fopen.c, fprintf.c, freopen.c, fscanf.c, fseek.c, ftell.c,
22215 fwalk.c, getchar.c, gets.c, iprintf.c, local.h, makebuf.c,
22216 mktemp.c, perror.c, printf.c, putchar.c, puts.c, refill.c,
22217 remove.c, rename.c, scanf.c, setvbuf.c, siprintf.c, sprintf.c,
22218 sscanf.c, stdio.c, tmpfile.c, tmpnam.c, vfprintf.c, vfprintf.h,
22219 vfscanf.c, vprintf.c, vsprintf.c}: Reentrant routines _r_xxx
22220 renamed to _xxx_r. struct reent_struct renamed to struct _reent
22221 for ANSI. structure members given leading "_" for ANSI. Use
22222 _HAVE_STDC instead of __STDC__ and _HAVE_STDARG.
22223
22224 * libc/stdlib/{__adjust.c, calloc.c, dtoa.c, ecvtbuf.c, malloc.c,
22225 mprec.c, mprec.h, rand.c, std.h, strtod.c, strtol.c, strtoul.c,
22226 system.c}: Reentrant routines _r_xxx renamed to _xxx_r. struct
22227 reent_struct renamed to struct _reent for ANSI.
22228 Structure members given leading "_" for ANSI.
22229 _CONST --> const in prototypes.
22230 Use _HAVE_STDC instead of __STDC__.
22231
22232 * libc/string/strtok.c: Reentrant routines _r_xxx renamed to
22233 _xxx_r.
22234 struct reent_struct renamed to struct _reent for ANSI.
22235 Structure members given leading "_" for ANSI.
22236
22237 * libc/time/asctime.c: Reentrant routines _r_xxx renamed to
22238 _xxx_r.
22239 struct reent_struct renamed to struct _reent for ANSI.
22240
22241 * libm/math/{acos.h, acosh.h, asin.c, asinh.h, atanh.h, bessel.h,
22242 cbrt.h, cosh.h, erf.c, erf.h, error.c, exp.c, fmod.c, frexp.h,
22243 gamma.h, hypot.h, ldexp.c, log.h, log10.c, log1p.c log2.c,
22244 mathimpl.h, pow.c, remainder.c, sincos.c, sinh.h, sqrt.h, tan.c,
22245 tanh.h}: struct reent_struct renamed to struct _reent for ANSI.
22246
22247 * libc/include/{_ansi.h, ctype.h, math.h, reent.h, locale.h,
22248 signal.h, stdio.h, stdlib.h, string.h, time.h}:
22249 Use _HAVE_STDC instead of __STDC__ and _HAVE_STDARG.
22250 #ifndef _STRICT_ANSI non-ANSI routines.
22251 Reentrant routines renamed from _r_xxx to _xxx_r.
22252 No need to use _STRICT_ANSI on _xxx_r reentrant routines.
22253 Use _STRICT_ANSI instead of __STRICT_ANSI, _ANSI_SOURCE, etc.
22254 Clean up namespace (structure members have leading "_").
22255 struct reent_struct renamed to struct _reent for ANSI compliance.
22256 _CONST --> const in function prototypes.
22257
22258 * libc/include/string.h: Add NULL and size_t.
22259
22260 * libc/sys/sparc64/Makefile.in: New syscall routines for link,
22261 unlink, wait, wait4. Reentrant syscall routines close, fork,
22262 fstat, link, lseek, open, read, sbrk, stat, unlink, wait, wait4,
22263 write.
22264 * libc/sys/sparc64/cerror.S (cerror_r): New routine.
22265 * libc/sys/sparc64/{close.S, fork.S, fstat.S, link.S, lseek.S,
22266 open.S, read.S, sbrk.S, stat.S, unlink.S, wait.S, wait4.S,
22267 write.S}: Define reentrant versions.
22268 * libc/sys/sparc64/sys/syscallasm.h (defsyscall_r): New macro for
22269 reentrant syscalls.
22270
22271 * libc/sys/sparc64/crt0.S (start): Fix initialization of environ.
22272
22273 * libc/include/stdlib.h (RAND_MAX): Fix value.
22274
22275Thu Apr 1 12:28:30 1993 Ian Lance Taylor (ian@cygnus.com)
22276
22277 * libc/sys/a29khif/_main.c: Removed unnecessary file.
22278 * libc/sys/a29khif/Makefile.in (OFILES): Removed _main.c, moved
22279 VPATH support targets after all: target.
22280
22281 * stub/mvme135/mvme.S: Renamed exceptionhandler to
22282 exceptionHandler, which is what mvme135-stub.c expects.
22283
22284Wed Mar 31 17:42:03 1993 Doug Evans (dje@cygnus.com)
22285
22286 * libc/stdio/tmpnam.c (worker): Fix test for _r_open() failure.
22287
22288 * libc/unix/getpass.c (getpass): Use stdin,stderr instead of
22289 def_stdin/def_stderr (latter removed from stdio.h to make it ANSI
22290 compliant).
22291
22292Tue Mar 30 09:58:21 1993 Doug Evans (dje@canuck.cygnus.com)
22293
22294 * libc/reent/execr.c (_r_wait): Re-order args to make reent_struct
22295 first.
22296 libc/reent/filer.c (_r_open, _r_close, _r_lseek, _r_read,
22297 _r_write): Ditto.
22298 libc/reent/fstatr.c (_r_fstat): Ditto.
22299 libc/reent/linkr.c (_r_link, _r_unlink): Ditto.
22300 libc/reent/sbrkr.c (_r_sbrk): Ditto.
22301 libc/reent/statr.c (_r_stat): Ditto.
22302
22303 * libc/stdio/fopen.c (_r_fopen): Re-order args to _r_open.
22304 * libc/stdio/freopen.c (freopen): Ditto for _r_open, _r_free.
22305 * libc/stdio/fseek.c (fseek): Ditto for _r_fseek.
22306 * libc/stdio/makebuf.c (__smakebuf): Ditto for _r_fstat.
22307 * libc/stdio/mktemp.c (_gettemp): Ditto for _r_stat, _r_open.
22308 * libc/stdio/remove.c (_r_remove): Ditto for _r_unlink.
22309 * libc/stdio/rename.c (_r_rename): Ditto for _r_link, _r_unlink.
22310 * libc/stdio/stdio.c (__sread): Ditto for _r_read.
22311 (__swrite): Ditto for _r_lseek, _r_write.
22312 (__sseek): Ditto for _r_lseek.
22313 (__close): Ditto for _r_close.
22314 * libc/stdio/tmpnam.c (worker): Ditto for _r_open, _r_close.
22315
22316 * libc/stdlib/malloc.c (_r_morecore): Re-order args to _r_sbrk.
22317 * libc/stdlib/system.c (_r_system): Ditto for _r_wait.
22318
22319 * libc/include/reent.h: Re-order arguments to _r_xxx syscall fns
22320 to make reent_struct the first argument (and thus consistent with
22321 the rest of newlib).
22322
22323 * stub/mvme135/mvme135-stub.c (initializeRemcomErrorFrame): Remove
22324 reference to __STDC__.
22325
22326Mon Mar 29 12:34:32 1993 Doug Evans (dje@canuck.cygnus.com)
22327
22328 * libc/stdlib/exit.c (exit): Use _REENT->__cleanup instead of
ba3ccd63 22329 global __cleanup.
8a0efa53
CF
22330
22331Wed Mar 24 11:54:35 1993 Doug Evans (dje@canuck.cygnus.com)
22332
22333 * libc/stdio/freopen.c (freopen): Ensure stdio is initialized
22334 first.
22335 libc/stdio/fclose.c (fclose): Ditto.
22336
22337Tue Mar 23 01:26:52 1993 Doug Evans (dje@rtl.cygnus.com)
22338
22339 * Run through indent and rename reentrant routines for ANSI.
22340 libc/stdio/{clearerr.c cvt.c fclose.c fdopen.c feof.c ferror.c
22341 fflush.c fgetc.c fgetpos.c fgets.c findfp.c fiprintf.c flags.c
22342 fopen.c fprintf.c fputc.c fputs.c fread.c freopen.c fscanf.c
22343 fseek.c fsetpos.c ftell.c fvwrite.c fwalk.c fwrite.c getc.c
22344 getchar.c gets.c iprintf.c makebuf.c mktemp.c perror.c printf.c
22345 putc.c putchar.c puts.c refill.c remove.c rename.c rewind.c rget.c
22346 scanf.c setbuf.c setvbuf.c siprintf.c sprintf.c sscanf.c stdio.c
22347 tmpfile.c tmpnam.c ungetc.c vfprintf.c vfscanf.c vprintf.c
22348 vsprintf.c wbuf.c wsetup.c local.h}
22349
22350 * libc/locale/locale.c: Reformat and rename for ANSI, GNU style.
22351
22352 * Run through indent and rename xxx_r fns to _r_xxx for ANSI.
22353 libc/stdlib/{__adjust.c __exp10.c __ten_mu.c abort.c abs.c
22354 assert.c atexit.c atof.c atoi.c atol.c bsearch.c calloc.c div.c
22355 dtoa.c ecvtbuf.c efgcvt.c exit.c getenv.c labs.c ldiv.c malloc.c
22356 mbtowc.c mprec.c putenv.c qsort.c rand.c setenv.c strdup.c
22357 strtod.c strtol.c strtoul.c system.c wctomb.c mprec.h}
22358
22359 * Run through indent.
22360 libc/string/{bcmp.c bcopy.c bzero.c index.c memchr.c memcmp.c
22361 memcpy.c memmove.c memset.c rindex.c strcat.c strchr.c strcmp.c
22362 strcoll.c strcpy.c strcspn.c strerror.c strlen.c strncat.c
22363 strncmp.c strncpy.c strpbrk.c strrchr.c strspn.c strstr.c strtok.c
22364 strxfrm.c}
22365
22366 * libc/time/{asctime.c clock.c ctime.c difftime.c gmtime.c
22367 localtime.c mktime.c strftime.c time.c}:
22368 Run through indent and rename xxx_r (reentrant) fns to _r_xxx for ANSI.
22369
22370 * Reformatting + renaming (for ANSI, GNU style, consistency).
22371 libc/include/{_ansi.h, assert.h, ctype.h, errno.h, fastmath.h,
22372 ieeefp.h, locale.h, math.h, paths.h, pwd.h, reent.h, setjmp.h,
22373 signal.h, stdio.h, stdlib.h, string.h, time.h, unistd.h}
22374
22375Fri Mar 19 11:28:01 1993 Doug Evans (dje@cygnus.com)
22376
22377 * libc/include/stdio.h (stdin_r): Fix.
22378
22379Fri Mar 19 09:43:48 1993 Ian Lance Taylor (ian@cygnus.com)
22380
22381 * Makefile.in: Unexport some variables to keep GNU make from
22382 putting them in the environment and using up needed ARG_MAX space
22383 (a hack is used to let this work with older makes as well).
22384
22385Tue Mar 16 15:11:08 1993 Ian Lance Taylor (ian@cygnus.com)
22386
22387 * Makefile.in: Use $(MAKE) rather than make.
22388 (MAKEOVERRIDES): Define to be empty.
22389 (FLAGS_TO_PASS): Don't pass down LD (it's not used).
22390 (libc.a, libm.a): Depend on targ-include.
22391 * host/any (LD): Don't define.
17c0c97d 22392 (INCLUDES): Use targ-include.
8a0efa53
CF
22393 * stub/Makefile.in (MAKEOVERRIDES): Define to be empty.
22394 (FLAGS_TO_PASS): Don't pass down LD (it's not used).
22395 * libc/Makefile.in: Use $(MAKE) rather than make.
22396 (MAKEOVERRIDES): Define to be empty.
22397 (FLAGS_TO_PASS): Don't pass LD (it's not used).
22398 (all): Rewrote to be slightly smaller.
22399 * libc/machine/Makefile.in, libc/sys/Makefile.in (MAKEOVERRIDES):
22400 Define to be empty.
22401 (FLAGS_TO_PASS): Don't pass LD (it's not used).
22402 * libm/Makefile.in (FLAGS_TO_PASS): Don't pass LD (it's not used).
22403
22404Mon Mar 15 08:45:41 1993 Ian Lance Taylor (ian@cygnus.com)
22405
22406 * libc/sys/go32/gerrno.s: Renamed from errno.s to avoid conflict
22407 with errno/errno.c.
22408
22409Fri Mar 12 09:46:54 1993 Ian Lance Taylor (ian@cygnus.com)
22410
22411 * Changes for reentrancy.
22412 libc/stdio/fdopen.c, libc/stdio/freopen.c, libc/stdio/perror.c:
22413 Use ptr->_errno, not errno.
22414 libc/stdio/mktemp.c (mkstemp_r, mktemp_r): New functions.
22415 libc/stdio/remove.c (remove_r): New function.
22416 libc/stdio/rename.c (rename_r): New function.
22417 libc/stdio/fopen.c, libc/stdio/freopen.c, libc/stdio/fseek.c,
22418 libc/stdio/makebuf.c, libc/stdio/mktemp.c, libc/stdio/remove.c,
22419 libc/stdio/rename.c, libc/stdio/stdio.c, libc/stdio/tmpnam.c: Use
22420 reentrant versions of system calls.
22421 libc/stdio/gets.c: Call getchar_f, not nonexistent getchar_r.
22422 libc/stdio/scanf.c: Use stdin_r, not nonexistent stdin_n.
22423 libc/stdio/tmpfile.c: Use tmpnam_f, not nonexistent tmpnam_r.
22424 libc/stdio/findfp.c: Include <string.h>.
22425 libc/stdio/fread.c, libc/stdio/rget.c, libc/stdio/scanf.c: Include
22426 "local.h".
22427 libc/stdio/wbuf.c: Include "fvwrite.h"
22428
22429 * libc/stdlib/{dtoa.c, ecvtbuf.c, mprec.c, strtod.c}: Include
22430 <string.h>.
22431 libc/stdlib/malloc.c: Call sbrk_r rather than sbrk.
22432 (NULL): Don't define if already defined.
22433 libc/stdlib/system.c: Call reentrant versions of system calls.
22434 (system_r): New function.
22435
22436 * Changes for reentrancy.
22437 libc/include/_ansi.h (_PARAMS): New macro.
22438 libc/include/errno.h: Define errno as a macro that calls __errno.
22439 (__errno_r): New macro for reentrant code.
22440 libc/include/math.h: Include reent.h. Declare many reentrant
22441 functions.
22442 (signgam): Now a macro, not a variable.
22443 (struct exception): Added err field.
22444 libc/include/reent.h: Don't declare __sglue. Added function
22445 declarations.
22446 (struct reent_struct): Moved errno to beginning. Added _signgam.
22447 libc/include/stdio.h, libc/include/stdlib.h: Added function
22448 declarations.
22449
22450 * More reentrancy hacking.
22451 libc/errno/errno.c (__errno): New function.
22452 libc/reent/execr.c, libc/reent/filer.c, libc/reent/fstatr.c,
22453 libc/reent/linkr.c, libc/reent/sbrkr.c, libc/reent/statr.c: New
22454 files.
17c0c97d 22455
8a0efa53
CF
22456 * Added many new reentrant functions to libm/math/*.
22457 libm/math/error.c (__matherror): Added reent_struct pointer
22458 argument. Changed all callers.
22459 libm/math/gamma.c (signgam): Removed. Set ptr->_signgam, instead.
22460 libm/math/exp.h, libm/math/pow.h, libm/math/sincos.h,
22461 libm/math/tan.h: Removed obsolete unused header files.
22462
22463 * libc/sys/a29khif/stubs.s: Use register lr0, not v0.
22464
22465 * libc/sys/sun/Makefile.in (COPYOFILES): Don't pull in errno.o.
22466
22467Mon Mar 8 16:43:43 1993 Steve Chamberlain (sac@thepub.cygnus.com)
22468
22469 * libc/sys/a29khif/stubs.s: clobber safe register, and fill all
22470 delay slots.
22471
22472Tue Mar 2 14:47:00 1993 Jeffrey Osier (jeffrey@fowanton.cygnus.com)
22473
ba3ccd63 22474 * libc/libc.texinfo: comment out reentrancy chapter (duh)
8a0efa53
CF
22475
22476Tue Mar 2 14:34:16 1993 Jeffrey Osier (jeffrey@fowanton.cygnus.com)
22477
ba3ccd63 22478 * libc/reent/reent.tex: New file. (text from
8a0efa53
CF
22479 newlib/libc/libc.texinfo)
22480 * libc/stdio/tmpnam.c: fixed doc typo
22481 * libc/stdlib/rand.c: fixed doc typo
22482
22483Tue Mar 2 14:34:16 1993 Jeffrey Osier (jeffrey@fowanton.cygnus.com)
22484
ba3ccd63 22485 * libc/reent/reent.tex: New file. (text from
8a0efa53
CF
22486 newlib/libc/libc.texinfo)
22487
22488Fri Feb 26 12:20:54 1993 Steve Chamberlain (sac@thepub.cygnus.com)
22489
22490 support for reentrancy
22491 * libc/reent/reent.c, libc/reent/Makefile.in, libc/reent/reent.c:
22492 new files
22493 * libc/errno/errno.c, libc/include/ieeefp.h,
22494 libc/include/locale.h, libc/include/reent.h,
22495 libc/include/signal.h, libc/include/stdio.h,
22496 libc/include/stdlib.h, libc/include/string.h, libc/include/time.h,
22497 libc/signal/signal.c libc/stdio/cvt.c, libc/stdio/fclose.c,
22498 libc/stdio/fdopen.c, libc/stdio/fflush.c, libc/stdio/fgets.c,
22499 libc/stdio/findfp.c, libc/stdio/flags.c, libc/stdio/fopen.c,
22500 libc/stdio/fputc.c, libc/stdio/freopen.c, libc/stdio/fseek.c,
22501 libc/stdio/ftell.c, libc/stdio/fwalk.c, libc/stdio/getchar.c,
22502 libc/stdio/gets.c, libc/stdio/glue.h, libc/stdio/iprintf.c,
22503 libc/stdio/local.h, libc/stdio/makebuf.c, libc/stdio/perror.c,
22504 libc/stdio/printf.c, libc/stdio/putchar.c, libc/stdio/puts.c,
22505 libc/stdio/refill.c, libc/stdio/scanf.c, libc/stdio/setvbuf.c,
22506 libc/stdio/sprintf.c, libc/stdio/tmpfile.c, libc/stdio/tmpnam.c,
22507 libc/stdio/ungetc.c, libc/stdio/vfprintf.c, libc/stdio/vfprintf.h,
22508 libc/stdio/vfscanf.c, libc/stdio/vprintf.c, libc/stdio/wsetup.c,
22509 libc/stdlib/__adjust.c, libc/stdlib/__exp10.c,
22510 libc/stdlib/assert.c, libc/stdlib/atexit.c, libc/stdlib/atol.c,
22511 libc/stdlib/dtoa.c, libc/stdlib/ecvtbuf.c, libc/stdlib/malloc.c,
22512 libc/stdlib/mprec.c, libc/stdlib/mprec.h, libc/stdlib/rand.c,
22513 libc/stdlib/setenv.c, libc/stdlib/std.h, libc/stdlib/strtod.c,
22514 libc/stdlib/strtol.c, libc/stdlib/strtoul.c, libc/string/strtok.c,
22515 libc/time/asctime.c, libc/time/localtime.c, libc/time/mktime.c,
22516 libc/time/strftime.c: modify to provide reentracy.
22517
22518 new routines:
22519 strtok_r, asctime_r, fdopen_r, _cleanup_r, fopen_r, iprintf_r,
22520 perror_r, printf_r, putchar_r, puts_r, scanf_r, sprintf_r,
22521 tmpfile_r, vfiprintf_r, vfprintf_r, strtod_r, dtoa_r, rand_r,
22522 srand_r, strtoul_r,strtol_r, free_r, malloc_r, morecore_r,
22523 mstats_r, realloc_r, localeconv_r, setlocale_r
22524
22525Wed Feb 17 20:17:15 1993 Mark Eichin (eichin@cygnus.com)
22526
22527 * libc/include/machine/ieeefp.h, libc/include/machine/setjmp.h,
22528 libc/include/sys/config.h, libc/include/sys/signal.h,
22529 libc/include/sys/stat.h, libc/include/sys/types.h: For compiler
22530 provided macros (such as m68000), use the ansi version
22531 (__m68000__) so that the library can be used with code compiled
22532 -ansi. In particular, m68000, mc68000, _AM29K, i386, MIPSEL, unix,
22533 and sparc.
22534
22535Wed Feb 17 13:01:34 1993 Jim Wilson (wilson@sphagnum.cygnus.com)
22536
22537 * configure.in (sparc*): Don't set -fsoft-float for sparc
22538 configurations. Do set -fsoft-float for sparclite configurations.
22539
22540Fri Feb 12 16:25:52 1993 Roland H. Pesch (pesch@fowanton.cygnus.com)
22541
22542 * default.menu, no-signal.menu: alternate forms of libc main menu
ba3ccd63 22543 (in newlib rather than newlib/libc due to configuration restrictions)
8a0efa53
CF
22544
22545 * configure.in: select one of the two menus above, link to
22546 libc.menu
22547
ba3ccd63 22548 * libc/libc.texinfo: include menu from separate file
8a0efa53
CF
22549
22550Fri Feb 12 12:50:06 1993 Ian Lance Taylor (ian@cygnus.com)
22551
22552 * Makefile.in (FLAGS_TO_PASS): Put INSTALL back in.
22553 (info): Split long shell command in half.
17c0c97d
EB
22554 * libc/Makefile.in (info, targetdep.tex): Don't pass everything to
22555 sub-makes, just CHEW and TARGETDOC.
8a0efa53
CF
22556 (targetdep.tex): Removed now special handling of sys and machine
22557 subdirectories, made obsolete some time ago.
22558 * libc/machine/Makefile.in (doc): Don't pass everything to
22559 sub-make, just CHEW and TARGETDOC.
22560 (Makefile): New target.
22561 * libc/sys/Makefile.in (Makefile): New target.
22562
22563Thu Feb 11 15:25:15 1993 Ian Lance Taylor (ian@cygnus.com)
22564
22565 * Makefile.in (here and most subdirectories): Only pass down CHEW
22566 and TARGETDOC when making info, not for other targets.
22567
22568 * Makefile.in (here and most subdirectories), host/any: Use $(AR)
22569 $(AR_FLAGS) rather than $(ARUPDATE).
22570
22571Wed Feb 10 11:57:52 1993 Ian Lance Taylor (ian@cygnus.com)
22572
22573 * Try to reduce command line length:
22574 * Makefile.in (FLAGS_TO_PASS): don't pass down exec_prefix,
22575 CC_FOR_BUILD, CFLAGS_FOR_BUILD, INSTALL or CHEW.
22576 (info, docs): pass CC_FOR_BUILD and CFLAGS_FOR_BUILD to doc.
22577 (info): Pass CHEW to other subdirs.
22578
22579Tue Feb 9 14:01:42 1993 Mark Eichin (eichin@cygnus.com)
22580
22581 * configure.in: add signal_dir, like unix_dir, but by default it
22582 is set to "signal" so that a29khif can turn it off (since a29khif
22583 has raise() as part of machine-specific signal.s.)
22584
22585Fri Jan 15 12:09:50 1993 Steve Chamberlain (sac@thepub.cygnus.com)
22586
22587 * libc/sys/config.h, libc/machine/ieeefp.h: add Z8000 support
22588 * libc/stdio/Makefile.in: pass CFLAGS so vfiprintf.c gets built
22589 correctly.
22590 * libc/stdio/fdopen.c, libc/stdio/fgets.c, libc/stdio/fscanf.c,
22591 libc/stdio/vfprintf: type lint.
22592 * libc/sys/z8ksim/crt0.c (start): Z8001/Z8002 independent
22593 initialzation code.
22594 * libc/sys/z8ksim/glue.c: Z8001/Z8002 clean system calls.
22595
22596Tue Dec 29 10:15:33 1992 Ian Lance Taylor (ian@cygnus.com)
22597
22598 * stub/mvme135/mvme135-asm.S: new file.
22599 stub/mvme135mvme135-stub.c: moved all assembler routines into
22600 mvme135-asm.S.
22601 stub/mvme135/Makefile.in: build mvme135-stub.o.
22602
22603Mon Dec 28 12:40:43 1992 Ian Lance Taylor (ian@cygnus.com)
22604
22605 * Makefile.in: don't pass down $(CPP); use $(CC) -E in
22606 sub-Makefiles instead, to try to avoid line length limitations.
22607
22608Mon Dec 21 18:36:13 1992 Per Bothner (bothner@rtl.cygnus.com)
22609
22610 * libc/include/unistd.h (read, write): Use void* instead of
22611 char*.
22612
22613Thu Dec 17 13:49:46 1992 Mark Eichin (eichin@cygnus.com)
22614
22615 * stub/go32/resetpc: sample script to send a reset packet to the
22616 stub
22617
22618 * stub/go32/I386STUB.C: new file, gdb/i386stub.c modified for the
22619 DOS environment, which compiles with Turbo C.
22620
22621 * stub/go32/DSER32.LNK: new file, linker commands for serial
ba3ccd63 22622 remote stub.
8a0efa53
CF
22623
22624 * stub/go32/CONTROL.C: turn off debug_mode, add CYGNUS tag line to
22625 start up message to identify version; call set_debug_traps.
22626
22627 * stub/go32/DEBUG.C: turn off debug_mode (so stub doesn't need any
22628 keyboard interaction); call handle_exception() in go_til_stop,
22629 rather than return, so that the remote stub gets control.
22630
22631 * stub/go32/MAKEFILE: fixed to actually use DOS commands (del and
22632 rename, rather than mv), set flags that work with current Turbo C,
22633 including using the /3 flag; also, add commands to build dser32.
22634
22635 * stub/go32/DEBUG32.LNK, stub/go32/GO32.LNK: fix paths to match
22636 default Turbo C installation (\tc rather than \usr)
22637
22638 * stub/go32/MONO.C (printf): current Turbo C uses "..." instead of
ba3ccd63 22639 "&..."
8a0efa53
CF
22640
22641Mon Dec 14 09:37:33 1992 Steve Chamberlain (sac@thepub.cygnus.com)
22642
22643 * libc/include/math.h: added _DOUBLE_IS_32BITS checks
22644
22645Thu Nov 12 22:31:04 1992 Steve Chamberlain (sac@thepub.cygnus.com)
22646
22647 * libc/stdio/cvt.c (licvt): new function to convert ints when
22648 sizeof(int) != sizeof(long).
22649
22650 * libc/include/stdio.h: added prototype for iprintf.
22651 * libc/include/machine/limits.h machine/ieeefp.h: z8k stuff
22652
22653Tue Nov 10 12:18:12 1992 Ian Lance Taylor (ian@cygnus.com)
22654
22655 * libc/machine/m68k/setjmp.S: use __USER_LABEL_PREFIX__ and
22656 __REGISTER_PREFIX__.
22657
22658Mon Nov 2 13:50:14 1992 Ian Lance Taylor (ian@cygnus.com)
22659
22660 * libc/sys/m68kbare: moved into stub directory.
22661
22662Mon Nov 2 13:40:42 1992 Ian Lance Taylor (ian@cygnus.com)
22663
22664 * configure.in, Makefile.in: created new directory stub, to hold
22665 sample code for specific targets.
22666
22667Wed Oct 28 02:19:55 1992 Mark Eichin (eichin@cygnus.com)
22668
22669 * restored libc/sys/go32/sys/fcntl.h, to override incorrect values
22670 in the unified libc/include/sys/fcntl.h.
22671
22672Wed Oct 21 13:55:58 1992 Doug Evans (dje@rtl.cygnus.com)
22673
22674 * libc/stdlib/ecvtbuf.c: (print_f,_gcvt): printf("%f", 0.01)
22675 printed .01, not 0.01.
22676
22677Mon Oct 19 11:05:55 1992 Ian Lance Taylor (ian@cygnus.com)
22678
22679 * configure.in: compile with -m68000 for m68* targets.
22680
22681Sun Oct 18 05:29:05 1992 Mark Eichin (eichin@cygnus.com)
22682
22683 * libm/math/remainder.c (remainder): document the svr4 and sunos
22684 references used to construct the function.
22685
22686Sat Oct 17 21:46:16 1992 Mark Eichin (eichin@cygnus.com)
22687
22688 * libm/math/remainder.c (rint, remainder): fix old typos.
22689 * libm/math/Makefile.in: actually build remainder.c (functions
22690 rint and remainder, from SysVr4 Programmer's Guide floor(3m) man
22691 page.)
22692
22693Thu Oct 15 07:48:05 1992 Ian Lance Taylor (ian@cygnus.com)
22694
22695 * libc/string/bcopy.c: BSD version works on overlapping strings,
22696 so ours should too.
22697
22698 * libc/stdlib/system.c: always invoke /bin/sh, not getenv
22699 ("SHELL").
22700
22701Wed Oct 14 11:07:11 1992 Ian Lance Taylor (ian@cygnus.com)
22702
22703 * Makefile.in (docs): new target.
22704
22705Wed Oct 14 07:44:25 1992 Ian Lance Taylor (ian@cygnus.com)
22706
22707 * libc/include/sys/times.h: define clock_t as required by POSIX.
22708 libc/include/time.h: protect clock_t from multiple definitions.
22709
22710Wed Oct 7 11:02:21 1992 Mark Eichin (eichin at tweedledumber.cygnus.com)
22711
22712 * libm/math/sqrt.h (sqrt): actually, the final version of fp-bit
22713 does not need more than the original three iterations to get
22714 within 1 ulp. (Paranoia tests for rounding to better than that,
22715 but further iterations *don't* help, only more subtle changes
22716 can.)
22717
22718Tue Oct 6 09:22:12 1992 Ian Lance Taylor (ian@cygnus.com)
22719
22720 * libc/sys/vxworks68, libc/sys/vxworks960: removed, since they
22721 were doing nothing useful.
22722
22723Tue Oct 6 08:48:13 1992 Ian Lance Taylor (ian@cygnus.com)
22724
22725 * configure.in: define MALLOC_PROVIDED for vxworks targets;
22726 removed sys_dir settings of vxworks68 and vxworks960.
22727 host/any: don't pass -nostdinc to gcc, since newlib no longer
22728 provides all required header files.
22729
22730 * libc/stdlib/malloc.c: only compile this file if MALLOC_PROVIDED
22731 is not defined; this provides a hook for VxWorks.
22732
22733Mon Oct 5 03:44:57 1992 Mark Eichin (eichin at tweedledumber.cygnus.com)
22734
22735 * libc/stdio/setvbuf.c (setvbuf): while ANSI does say to malloc a
22736 buffer if buf is NULL, don't do it here -- it is already being
22737 done by makebuf elsewhere in stdio.
22738
22739Fri Oct 2 13:12:07 1992 Ian Lance Taylor (ian@cygnus.com)
22740
22741 * libc/sys/a29khif/Makefile.in: assemble Steve's list of stubs so
22742 that C programs can call functions without using initial
22743 underscores.
22744
22745Thu Oct 1 09:37:47 1992 Ian Lance Taylor (ian@cygnus.com)
22746
22747 * libc/stdlib/abort.c (abort): call exit, in case kill returns.
22748
22749Wed Sep 30 08:22:18 1992 Ian Lance Taylor (ian@cygnus.com)
22750
22751 * configure.in: set TARGET_CFLAGS for certain CPU types to
22752 -msoft-float.
22753
22754Tue Sep 29 21:09:32 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
22755
22756 * libc/sys/m68kbare/glue.c: use <_ansi.h> instead of <ansidecl.h>
22757
22758Mon Sep 28 14:58:44 1992 Ian Lance Taylor (ian@cygnus.com)
22759
22760 * configure.in: added sys_dir m68kbare for m68k*-unknown-aout and
22761 m68k*-unknown-coff.
22762
22763Fri Sep 25 08:33:21 1992 Ian Lance Taylor (ian@cygnus.com)
22764
22765 * libc/include/stdio.h: define __need___va_list before including
22766 <stdarg.h>, to avoid defining va_arg, et. al.
22767
22768Tue Sep 22 13:47:00 1992 Ian Lance Taylor (ian@cygnus.com)
22769
22770 * libc/sys/Makefile.in: handle the case of an empty $(sys_dir)
22771 (don't cd to the user's home directory).
22772
22773 * libc/Makefile.in: replaced all instances of $(MAKE) with make.
22774 In general this is the wrong thing to do, but I can't get around
22775 GNU make's insistence on passing command line arguments any other
22776 way.
22777
22778Tue Sep 22 10:12:44 1992 Ian Lance Taylor (ian@cygnus.com)
22779
22780 * configure.in: always configure the libc/sys directory, since it
22781 now provides a required documentation file.
22782
22783 * Makefile.in: replaced all instances of $(MAKE) with make. In
22784 general this is the wrong thing to do, but I can't get around GNU
22785 make's insistence on passing command line arguments any other way.
22786
22787Mon Sep 21 22:42:26 1992 Ian Lance Taylor (ian@tweedledumbest.cygnus.com)
22788
22789 * libc/stdlib/ecvtbuf.c (_gcvt): string for 0 was not null
22790 terminated.
22791
22792 * libc/stdio/local.h: include <stdarg.h> to define va_list.
22793 libc/stdio/vsprintf.c: include <stdarg.h> rather than <varargs.h>.
22794
22795 * libc/include/float.h, libc/include/stdarg.h,
22796 libc/include/stddef.h, libc/include/varargs.h: removed; use gcc
22797 versions instead.
22798 libc/include/stdio.h: get size_t from <stddef.h>, and va_list from
22799 <stdarg.h>, not from <machine/types.h>. Protect definition of
22800 NULL.
22801 libc/include/time.h: get size_t from stddef.h. Protect definition
22802 of NULL.
22803 libc/include/machine/limits.h: override gcc <limits.h> by defining
22804 _LIMITS_H___. Don't define CLK_TCK. Copied in gcc <limits.h> to
22805 get correct INT_MIN and LONG_LONG values.
22806 libc/include/machine/types.h: don't define ptrdiff_t, wchar_t,
22807 size_t or va_list at all; they're now gotten from stddef.h
22808 instead.
22809 libc/include/machine/varargs.h: removed; use gcc version instead.
22810 libc/include/sys/types.h: explicitly include <machine/types.h>.
22811
22812 * libm/math/sqrt.h: using the fp-bit routines appears to require
22813 more iterations.
22814
22815 * Makefile.in, host/any: let system include files override machine
22816 include files.
22817
22818Sat Sep 19 21:10:06 1992 Mark Eichin (eichin at tweedledumber.cygnus.com)
22819
22820 * libc/include/machine/types.h: allow __*_TYPE__ from cpp to
22821 override _*_T_ definitions defaulted here.
22822
22823Tue Sep 15 11:14:46 1992 Ian Lance Taylor (ian@cygnus.com)
22824
22825 * Makefile.in (install): install the include files in
22826 $(tooldir)/include, not $(exec_prefix)/include.
22827
22828Fri Sep 11 15:48:43 1992 Ian Lance Taylor (ian@cygnus.com)
22829
22830 * Makefile.in (install): fixed typo, and changed install to not
22831 force rebuild of libc.a and libm.a.
22832
22833Thu Sep 10 10:46:09 1992 Ian Lance Taylor (ian@cygnus.com)
22834
22835 * libc/sys/a29khif/*: Changed all .include's to include
22836 sys/sysmac.h, not plain sysmac.h. The header files live in sys so
22837 that they will be installed for the user.
22838
22839 * Makefile.in (all): create targ-include, a directory holding the
22840 machine and system specific header files during the build.
22841 (install): fixed installation of machine and system specific
22842 header files.
22843
22844 * Makefile.in: fixed comment.
22845 host/any: change .s.o rule to use $(AS) rather than $(CC), so that
22846 we can pass $(INCLUDES) to it.
22847
22848Thu Sep 10 10:13:13 1992 Ian Lance Taylor (ian@cygnus.com)
22849
22850 * libc/include/sys/param.h: new generic file, which may be
22851 overridden for specific systems.
22852
22853 * libc/include/sys/signal.h: define all ANSI signal names, and
22854 NSIG (which is not ANSI) for a29k.
22855
22856Tue Sep 8 09:04:30 1992 Ian Lance Taylor (ian@cygnus.com)
22857
22858 * Makefile.in: don't pass down arguments the lower level makes
22859 will not need.
22860 * libc/Makefile.in: recurse directly, rather than using subdir_do,
22861 in hopes of avoiding argument length limits.
22862 * libm/Makefile.in: recurse directly, rather using subdir_do, in
22863 hopes of avoiding argument length limits.
22864
22865Tue Sep 8 08:27:22 1992 Ian Lance Taylor (ian@cygnus.com)
22866
22867 * libc/include/sys/fcntl.h: include <sys/types.h> to ensure that
22868 mode_t is defined.
22869
22870Mon Sep 7 14:02:07 1992 Ian Lance Taylor (ian@cygnus.com)
22871
22872 * Fixed make info and make install-info for newlib, changing most
22873 Makefile.in and several *.tex files. Moved doc directory from
22874 libc to top level.
22875
22876 * libc/time/mktime.c (_DAYS_IN_MONTH): actually, not const.
22877 Should be rewritten.
22878
22879 * libc/string/strings.tex: renamed node index to node index
22880 function, so that it does not conflict with the top level index
22881 node.
22882
22883 * libc/include/sys/config.h: define __IEEE_BIG_ENDIAN for h8300.
22884
22885Fri Sep 4 02:34:06 1992 Ian Lance Taylor (ian@cygnus.com)
22886
22887 * Overhauled general configuration for newlib. Eliminated all
22888 target dependent Makefile fragments. Create libraries in newlib
22889 rather than newlib/libc and newlib/libm. Use CC, et. al., rather
22890 than CROSS_CC, et. al. Broke make docs; will fix later.
22891
22892 * libc/time/localtime.c (_DAYS_IN_MONTH): actually, not const.
22893 Should be rewritten.
22894
22895Tue Sep 1 15:21:14 1992 Ian Lance Taylor (ian@cygnus.com)
22896
22897 * libc/configure.in: cleaned up somewhat; switch on ${target}
22898 rather than ${target_alias}.
17c0c97d 22899 * libm/configure.in: cleaned up somewhat; switch on ${target}
8a0efa53
CF
22900 rather than ${target_alias}.
22901
22902 * libc/ctype/ctype_.c: marked _ctype_ array _CONST.
22903 * libc/include/ctype.h: marked _ctype_ as _CONST.
22904
22905 * libc/locale/locale.c (lconv, localeconv): marked static lconv as
22906 _CONST.
22907
22908 * libc/stdio/cvt.c, libc/stdio/findfp.c (__sfmoreglue),
22909 libc/stdio/vfscanf.c (__svfscanf): made static variables const.
22910 libc/stdio/gets.c (gets): removed non-ANSI warning message.
22911 libc/stdio/tmpnam.c (tmpnam): removed unneeded filename variable.
22912
22913 * libc/stdlib/mprec.h, libc/stdlib/mprec.c (pow5mult, tens,
22914 bigtens, tinytens): marked arrays _CONST.
22915 libc/stdlib/qsort.c (swap): if __GNUC__, use _builtin_alloca
22916 rather than a static variable.
22917
22918 * libc/time/asctime.c (asctime), libc/time/localtime.c
22919 (_DAYS_IN_MONTH), libc/time/mktime.c (_DAYS_IN_MONTH,
22920 _DAYS_BEFORE_MONTH), libc/time/strftime.c (dname_len, dname,
22921 mname_len, mname): Marked static arrays _CONST.
22922
22923 * libm/math/gamma.h: made local variables non-static.
22924
22925 * libm/math/acos.h, libm/math/bessel.c, libm/math/erf.c,
22926 libm/math/exp.c, libm/math/gamma.h: marked static arrays as
22927 _CONST.
22928
22929 * libm/math/constants.c: removed file, because the constants it
22930 defined were never referenced.
22931 libm/math/Makefile.in: removed references to constants.c.
22932 libm/math/mathimpl.h: removed declarations of constants.
22933
22934Wed Aug 26 21:09:06 1992 Ian Lance Taylor (ian@cygnus.com)
22935
22936 * libc/include/machine/varargs.h: only call __builtin_saveregs if
22937 it is sensibly defined in libgcc2. Checks preprocessor defines,
22938 which is not a good solution.
22939
22940 * libm/sqrt.c: sqrt(Infinity) should not be a domain error.
22941
22942 * libm/frexp.c: handle denormalized numbers as arguments.
22943
22944 * libm/math/Makefile.in: added some dependencies for .c files
22945 which include local .h files.
22946
22947Mon Aug 24 12:57:58 1992 Ian Lance Taylor (ian@cygnus.com)
22948
22949 * libc/configure.in: set target_alias for OSE*. Replace
22950 target_makefile_frag if it is blank.
22951
22952 * libc/Makefile.in: make sure everything is passed to subsidiary
22953 makes; create all directories when installing.
22954
22955 * libm/ieeefp/Makefile.in, libm/math/Makefile.in: use
22956 CROSS_ARUPDATE instead of AR.
22957
22958 * libm/configure.in: set target_alias for OSE*. Replace
22959 target_makefile_frag if it is blank.
22960
22961 * libm/Makefile.in: make sure everything is passed to subsidiary
22962 makes; create all directories when installing.
22963
22964Thu Aug 20 15:11:51 1992 Mark Eichin (eichin@cygnus.com)
22965
ba3ccd63 22966 * add following change from libc copy.
8a0efa53
CF
22967
22968Wed Aug 19 18:54:49 1992 Roland H. Pesch (pesch@fowanton.cygnus.com)
22969
22970 * libc/libc.texinfo: make copyright disclaimers appear on back of
22971 title page; make format of same slightly less ugly; avoid using
22972 underbars in section headings (avoids nasty texinfo bug in table
22973 of contents).
22974
22975 * libc/ctype/tolower.c, libc/ctype/toupper.c: (doc changes in
22976 comments only) avoid using underbars in section headings
22977
22978 * libc/ieeefp/ieeefp.tex: include doc from fpsticky, infinity,
22979 isnan ieeefp/fpmask.c, ieeefp/fpround.c, ieeefp/fpsticky.c (doc
22980 changes in comments only): shorten headings ieeefp/infinity.c,
22981 ieeefp/isnan.c: (doc, comments only) more informative headings
22982
22983 * libc/math/bessel.c: (doc, comments only) shorten heading
22984
22985 * libc/stdlib/efgcvt.c, libc/stdlib/mbtowc.c, libc/stdlib/wctomb.c
22986 (doc, comments only) shorten headings
22987
22988 * libc/time/localtime.c (doc, comments only): shorten headings
22989
22990 * libm/ieeefp/ieeefp.tex: include doc from fpsticky, infinity,
22991 isnan
22992 libm/ieeefp/fpmask.c, libm/ieeefp/fpround.c,
22993 libm/ieeefp/fpsticky.c (doc changes in comments only): shorten
22994 headings
22995 libm/ieeefp/infinity.c, libm/ieeefp/isnan.c: (doc, comments
22996 only) more informative headings
22997 * libm/math/bessel.c: (doc, comments only) shorten heading
22998
22999Wed Aug 19 07:06:37 1992 Mark Eichin (eichin at tweedledumber.cygnus.com)
23000
23001 * .../Makefile.in: use CROSS_ARUPDATE consistently.
23002 * config/*.mt: define CROSS_AR as well as CROSS_ARUPDATE
23003 * config/*.mt: define CROSS_CPP based on CROSS_CC, not /lib/cpp.
23004 * .../Makefile.in: get rid of .c.o rule - if TOP is correctly
23005 defined, the one from the .mt file will be correct.
23006 * libc/include/machine, libc/include/sys: created, and populated
23007 with common files from machine/*/machine. ifdefs were used for
23008 most, typically by handling exceptions first and then filling in
23009 defaults. Files with D.J. Delorie copyright #included rather than
23010 copied. Most files in include/sys really were the same in the
23011 original.
23012 * libc/include/...: cleaned up use of _EXFUN.
23013 * libc/stdlib/mprec.c: mprec.h doesn't get installed, so include
23014 it with double quotes, not angles.
23015
23016Mon Aug 10 11:43:20 1992 Ian Lance Taylor (ian@dumbest.cygnus.com)
23017
23018 * libc/Makefile.in: always create installation directories.
23019
23020Sun Aug 9 22:45:48 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
23021
23022 * libc/configure.in: handle host properly (using canonical
23023 triples), better error message for the case of target not found
23024
23025Thu May 28 01:56:37 1992 Michael Tiemann (tiemann@rtl.cygnus.com)
23026
23027 * libc/Makefile.in (insincdir): Ensure this directory exists
23028 before attempting installation.
23029
23030Fri May 1 18:16:42 1992 Steve Chamberlain (sac@thepub.cygnus.com)
23031
23032 * libc/stdlib/assert.c: now calls abort like it should
23033 * libc/sys/a29khif: many many patches for 29khif work
23034 * libc/machine/i386: gnulib2 expanded there.
23035
23036Tue Apr 28 19:08:37 1992 Steve Chamberlain (sac@thepub.cygnus.com)
23037
ba3ccd63 23038 Added accurate fp conversion routines to stdlib, moved dcvt from
8a0efa53
CF
23039 stdio to stdlib and called it ecvtbuf:
23040 * libc/stdlib/mprec.c, mprec.h: new files for multiprec arithmetic
23041 * libc/stdlib/Makefile.in, efgcvt.c, strtod.c: modified to use new
23042 routines
23043 * libc/libc.texinfo: Modifed to include the copyright info from
23044 the mprec files
23045 * libc/stdlib/efgcvt.c: now xref to ecvtbuf in stdlib.
23046 * libc/test/ : many vector which tested for the implementation
23047 defined returns of strange conversion requests have been updated
23048 to relflect the new implementation
23049
23050Mon Apr 27 13:41:33 1992 Roland H. Pesch (pesch@fowanton.cygnus.com)
23051
23052 * libc/libc.texinfo: new chapter on variable arg lists
23053 (stdarg.h/varargs.h)
23054 * libc/libc.texinfo: new title
23055 * libc/time/gmtime.c, libc/time/localtime./c, libc/time/mktime.c:
23056 (doc only) shorter headings for better formatting.
23057
23058Fri Apr 24 11:26:48 1992 Roland H. Pesch (pesch@fowanton.cygnus.com)
23059
23060 * libc/libc.texinfo: three more info menu entries
23061 * libc/locale/locale.tex: new chapter
23062 * libc/locale/locale.c: new doc for setlocale, localeconv
23063 * libc/locale/Makefile.in: use new locale doc
23064 * libc/signal/signal.tex: new chapter
23065 * libc/signal/raise.c, libc/signal/signal.c: new doc
23066 * libc/signal/Makefile.in: use new doc
23067 * libc/time/time.tex: new chapter
23068 * libc/time/asctime.c libc/time/clock.c libc/time/ctime.c
23069 libc/time/difftime.c libc/time/gmtime.c libc/time/localtime.c
23070 libc/time/mktime.c libc/time/strftime.c libc/time/time.c: new doc
23071 * libc/time/Makefile.in: use new doc
23072
23073Tue Apr 21 14:48:50 1992 Steve Chamberlain (sac@thepub.cygnus.com)
23074
23075 * libm/math/log1p.c: split to use the new function way of float
23076 function definition. math/log1p.h deleted
23077 * libm/math/scalb.c: obsolete and deleted
23078 * libm/math/scalbn.c: created from part log1p.c
23079 * libm/math/Makefile.in: know about log1p and scalbn
23080
23081Tue Apr 21 12:32:21 1992 Roland H. Pesch (pesch@fowanton.cygnus.com)
23082
23083 * libc/ctype/isupper.c: revise doc;
23084 libc/ctype/ctype.tex: use doc from isupper.c
23085
23086 * libc/string/bzero.c: new doc
23087
23088Mon Apr 20 14:19:42 1992 Roland H. Pesch (pesch@fowanton.cygnus.com)
23089
23090 * libc/stdlib/system.c, libc/stdlib/exit.c, libc/stdlib/abort.c:
23091 new doc
23092 * libc/stdlib/Makefile.in: extract new doc
23093 * libc/stdlib/stdlib.tex: use new doc
23094
23095 * libc/string/strerror.c: expanded doc.
23096
23097 * libc/stdio/Makefile.in: extract doc from more files
23098 * libc/stdio/fopen.c, libc/stdio/perror.c, libc/stdio/remove.c,
23099 libc/stdio/rename.c, libc/stdio/rewind.c, libc/stdio/setbuf.c,
23100 libc/stdio/setvbuf.c, libc/stdio/sprintf.c, libc/stdio/tmpfile.c,
23101 libc/stdio/tmpnam.c, libc/stdio/vfprintf.c, libc/stdio/vprintf.c,
23102 libc/stdio/vsprintf.c: new doc
23103 * libc/stdio/stdio.tex: use new doc
23104
23105Mon Apr 20 09:38:17 1992 Steve Chamberlain (sac@thepub.cygnus.com)
23106
23107 * libc/config/ebmon29k: added CROSS_CPP rule and other fixes
23108 * libc/include/ieeefp.h: fixed ansi conflict with isnanf, isinff,
23109 finitef functions.
23110 * libc/sys/a29khif/sys/*.h: ansidecl.h was renamed to _ansi.h some
23111 time ago.
23112
23113 * libc/stdio/stdio.h: added P_tmpdir for /tmp (SVID thing)
23114 * libc/stdio/setbuf.c: added ansi style definition.
23115 * libc/stdio/setvbuf.c: added ansi definition, now mallocs own
23116 buffer if none provided.
23117 * libc/stdio/tmpfile.c: lint
23118 * libc/stdio/tmpnam.c (worker): created. (tmpnam): mallocs buffer
23119 rather than using static, also make sure file isn't already
23120 present. Uses P_tmpdir. (tempnam): rewritten to use new
23121 subroutine, and uses P_tmpdir.
23122 * libc/stdio/siprintf.c: created
23123
23124Mon Apr 13 09:12:58 1992 Steve Chamberlain (sac@thepub.cygnus.com)
23125
23126 Release 1.03 for NEC, major mods. Main differences from release
23127 1.02::
23128
23129 More tests in test/:
23130 * jn_vec.c, jnf_vec.c, yn_vec.c, ynf_vec.c, log2_vec.c,
23131 log2f_vec.c, atan2_vec.c, atan2f_vec.c: new test vectors.
23132 * test_ieee.c: tests for ieee flags & masks - get/set rounding,
23133 get/set mask, get/set sticky and get/set roundtoi. Tests
23134 that setting the bits changes the way arithmetic is done.
23135 * string.c: added test to make sure memcmp does it with unsigned
23136 chars.
23137 * test.c: cleaned up and removed lint.
23138 * sprint_vec, sprint_ivec.c, convert.c, conv_vec.c, iconf_vec.c,
23139 dvec.c: tests for string to value conversions, sprintf, scanf,
23140 atof, atoff, strtod, strtodf, atoi, atol, strtol, ecvtbuf, ecvt,
23141 ecvtf, fcvtbuf, fcvt, fcvtf, gcvt, gcvtf. Some attention paid to
23142 rounding in sprintf too.
23143 * test_is.c: tests for isalnum, isalpha, isascii, iscntrl,
23144 isdigit, isgraph, islower, isprint, ispunct, isspace, isupper,
23145 isxdigit, toascii, tolower, toupper, _tolower, _toupper in macro
23146 and function form.
23147 * math2.c: test for frexp, frexpf, ldexp, ldexpf, modf modff, pow,
23148 powf
23149
23150 In the library:
23151 * libc/stdlib/div.c, libc/stdlib/ldiv.c, libc/stdlib/strtod.c,
23152 libc/stdlib/strtol.c, libc/stdlib/stroul.c, libc/stdlib/abs.c,
23153 libc/stdlib/bsearch.c, libc/stdlib/calloc.c, libc/stdlib/getenv.c,
23154 libc/stdlib/labs.c, libc/stdlib/malloc.c: new documentation
23155 * libc/stdlib/efgcvt.c: rewritten to use new _dcvt routines rather
23156 than sprintf.
17c0c97d 23157 * libc/stdio/dcvt.c: rewritten to make more useful elsewhere.
8a0efa53
CF
23158 * Method of producting float versions of double functions has
23159 changed, functions will be modified gradually. So far:
23160 libm/math/exp.c, libm/math/pow.c, libm/math/modf.c,
23161 libm/math/sincos.c, libm/math/fmod.c, libm/math/tan.c have been
23162 altered
23163 * libc/string/memcmp.c: now uses unsigned chars
23164 * libc/string/bcmp.c, libc/string/strcpy.c,
23165 libc/stsring/strxfrm.c: fixed doc
23166 * libc/sys/sysvnecv70.tex: fix example of sbrk code
23167\f
23168Local Variables:
23169version-control: never
23170End:
This page took 3.426133 seconds and 5 git commands to generate.