]> sourceware.org Git - newlib-cygwin.git/blame - newlib/ChangeLog
* libc/stdio/gets.c (_gets_r): Lock stdin here and call
[newlib-cygwin.git] / newlib / ChangeLog
CommitLineData
a11451b3
CV
12008-11-25 Corinna Vinschen <corinna@vinschen.de>
2
3 * libc/stdio/gets.c (_gets_r): Lock stdin here and call
4 __sgetc_r instead of _getchar_r.
5
0aca33c8
JJ
62008-11-24 Craig Howland <howland@LGSInnovations.com>
7
8 * libc/stdlib/wcstoull_r.c: Add EINVAL return for bad base value,
9 include wchar.h for prototype, remove extraneous includes, use
10 C99/POSIX ULLONG_MAX (but allow for poor limits.h).
11 * libc/stdlib/wcstoull.c: Fix usage comments (mistakes and to add
12 base value check noted above), remove extraneous includes.
13 * libc/stdio/asnprintf.c: Add #include "local.h" to get function
14 prototype for _svfprintf_r().
15 * libc/stdio/vasnprintf.c: Ditto.
16 * libc/stdio/local.h: Add function prototype for __submore().
17 * libc/include/stdio.h: Add function prototypes for _fseeko_r and
18 _ftello_r.
19 * libc/posix/namespace.h: Commented out define for write to
20 eliminate write() prototype being missing for collate.c (which is
21 the only file that presently includes namespace.h).
22 * libc/include/reent.h: Added _rename_r.
23 * libc/reent/renamer.c: Corrected function prototypes in synopses.
24 * libc/locale/ldpart.c: Use struct stat64 when calling fstat64.
25
0ef912df
JJ
262008-11-24 Jeff Johnston <jjohnstn@redhat.com>
27
28 * libc/search/hash_func.c: Comment out unused static hash functions.
29 * libc/reent/stat64r.c: New file.
30 * libc/reent/Makefile.am: Add stat64r.c support.
31 * libc/reent/Makefile.in: Regenerated.
32
df913771
JJ
332008-11-24 Joel Sherrill <joel.sherrill@oarcorp.com>
34
35 * libc/posix/scandir.c: Fix memory leaks.
36
b45d1622
JJ
372008-11-24 Joel Sherrill <joel.sherrill@oarcorp.com>
38
9aa929ef 39 * libc/posix/Makefile.am: Compile readdir_r.c not readdir.c twice.
b45d1622
JJ
40 * libc/posix/Makefile.in: Regenerated.
41
9aa929ef 422008-11-24 Corinna Vinschen <corinna@vinschen.de>
14773e10
CV
43
44 * libc/include/stdio.h (__SMOD): Remove definition of unused flag.
45 * libc/include/sys/reent.h (struct __sFILE): Add _flags2 member.
46 * libc/stdio/findfp.c (std): Initialize _flags2.
47 (__sfp): Ditto.
48 * libc/stdio/refill.c (__srefill_r): Drop resetting __SMOD flag.
49 * libc/stdio/vfscanf.c (__ssrefill_r): Ditto.
50 * libc/stdio/fseek.c (_fseek_r): Drop checking __SMOD flag.
51 * libc/stdio64/fseeko64.c (_fseeko64_r): Ditto.
52
d5567b8d
JJ
532008-11-20 Ken Werner <ken.werner@de.ibm.com>
54
55 * libc/machine/spu/sys/linux_syscalls.h: Additional syscall defines to
56 be in sync with current kernels.
57
75cc619b
JJ
582008-11-20 Ken Werner <ken.werner@de.ibm.com>
59 Patrick Mansfield <patmans@us.ibm.com>
60 Joel Schopp <jschopp@austin.ibm.com>
61
62 * libc/machine/spu/configure.in: Add __ea detection.
63 * libc/machine/spu/Makefile.am: Add new files.
64 * libc/machine/spu/include/ea.h: New file.
65 * libc/machine/spu/ea_internal.h: Likewise.
66 * libc/machine/spu/sys/mman.h: Likewise.
67 * libc/machine/spu/mmap_ea.c: Likewise.
68 * libc/machine/spu/munmap_ea.c: Likewise.
69 * libc/machine/spu/mremap_ea.c: Likewise.
70 * libc/machine/spu/msync_ea.c: Likewise.
71 * libc/machine/spu/memchr_ea.c: Likewise.
72 * libc/machine/spu/memcmp_ea.c: Likewise.
73 * libc/machine/spu/memcpy_ea.c: Likewise.
74 * libc/machine/spu/memmove_ea.c: Likewise.
75 * libc/machine/spu/memset_ea.c: Likewise.
76 * libc/machine/spu/malloc_ea.c: Likewise.
77 * libc/machine/spu/realloc_ea.c: Likewise.
78 * libc/machine/spu/calloc_ea.c: Likewise.
79 * libc/machine/spu/free_ea.c: Likewise.
80 * libc/machine/spu/posix_memalign_ea.c: Likewise.
81 * libc/machine/spu/strcat_ea.c: Likewise.
82 * libc/machine/spu/strchr_ea.c: Likewise.
83 * libc/machine/spu/strcmp_ea.c: Likewise.
84 * libc/machine/spu/strcpy_ea.c: Likewise.
85 * libc/machine/spu/strcspn_ea.c: Likewise.
86 * libc/machine/spu/strlen_ea.c: Likewise.
87 * libc/machine/spu/strncat_ea.c: Likewise.
88 * libc/machine/spu/strncmp_ea.c: Likewise.
89 * libc/machine/spu/strncpy_ea.c: Likewise.
90 * libc/machine/spu/strpbrk_ea.c: Likewise.
91 * libc/machine/spu/strrchr_ea.c: Likewise.
92 * libc/machine/spu/strspn_ea.c: Likewise.
93 * libc/machine/spu/strstr_ea.c: Likewise.
94 * libc/machine/spu/read_ea.c: Likewise.
95 * libc/machine/spu/pread_ea.c: Likewise.
96 * libc/machine/spu/readv_ea.c: Likewise.
97 * libc/machine/spu/write_ea.c: Likewise.
98 * libc/machine/spu/pwrite_ea.c: Likewise.
99 * libc/machine/spu/writev_ea.c: Likewise.
100
0e981026
JJ
1012008-11-19 Joel Sherrill <joel.sherrill@oarcorp.com>
102
103 * libc/include/sys/config.h[__mips__]: Don't bother
104 setting __ATTRIBUTE_IMPURE_PTR__ here.
105 [__rtems__][__mips__]: No need to undef the __ATTRIBUTE_IMPURE_PTR__
106 macro anymore.
107
8ee939ea
JJ
1082008-11-19 Jeff Johnston <jjohnstn@redhat.com>
109
110 * libc/sys/linux/bits/dirent.h: New header file.
111 * libc/sys/linux/sys/dirent.h: Include <bits/dirent.h> instead of
112 <linux/dirent.h>.
113 * libc/posix/Makefile.am: Remove reallocf.
114 * libc/posix/Makefile.in: Regenerated.
115 * libc/posix/reallocf.c: Moved to...
116 * libc/stdlib/reallocf.c: Here
117 * libc/stdlib/malloc.c: Add reallocf documentation.
118 * libc/include/stdlib.h: Add reallocf and _reallocf_r prototypes.
119 * libc/stdlib/Makefile.am: Add reallocf.
120 * libc/stdlib/Makefile.in: Regenerated.
121 * libc/posix/_isatty.c: Set errno.
122
e231c7da
JJ
1232008-11-19 Craig Howland <howland@LGSInnovations.com>
124
125 * libc/unix/collate.c (__collate_err): simplify to remove unnecessary
126 strdup() and strlen() calls, also getting rid of a compiler warning.
127
34ff0a4e
JJ
1282008-11-19 Ralf Corsepius <ralf.corsepius@rtems.org>
129
130 * libc/include/sys/config.h: Don't put
131 __ATTRIBUTE_IMPURE_PTR__ into .sdata section for mips-rtems.
132
c58cf6af
JJ
1332008-11-19 Ralf Corsepius <ralf.corsepius@rtems.org>
134
135 * libc/posix/runetype.h: Add include of stddef.h and remove
136 defining standard types: size_t and wchar_t.
137
b8e9a7c0
JJ
1382008-11-19 Ralf Corsepius <ralf.corsepius@rtems.org>
139
140 * libc/include/pthread.h: Remove prototypes for
141 pthread_attr_getcputime and pthread_attr_setcputime which
142 were proposed but never approved by the POSIX standard.
143
1f9aa7a3
JJ
1442008-11-18 Joel Sherrill <joel.sherrill@oarcorp.com>
145
146 * libc/unix/ttyname.c: Use isatty() instead of tcgetattr().
147
fd450adf
JJ
1482008-11-18 Jeff Johnston <jjohnstn@redhat.com>
149
150 * libc/unix/basename.c: Add !_NO_BASENAME flag check so code can be
151 ignored if desired by a platform.
152 * libc/unix/dirname.c: Ditto except replace BASENAME with file name.
153 * libc/unix/getcwd.c: Ditto.
154 * libc/unix/getlogin.c: Ditto.
155 * libc/unix/getpass.c: Ditto.
156 * libc/unix/getpwent.c: Ditto.
157 * libc/unix/getut.c: Ditto.
158 * libc/unix/pread.c: Ditto.
159 * libc/unix/pwrite.c: Ditto.
160 * libc/unix/sigset.c: Ditto.
161
57f69f20
JJ
1622008-11-18 Craig Howland <howland@LGSInnovations.com>
163
164 * libc/unix/ttyname.c: Add ttyname_r and change ttyname to use
165 ttyname_r.
166
aa677662
JJ
1672008-11-17 Joel Sherrill <joel.sherrill@oarcorp.com>
168
169 * configure.host: RTEMS now uses posix subdirectory.
170
0ea87523
JJ
1712008-11-17 Joel Sherrill <joel.sherrill@oarcorp.com>
172
173 * sys/rtems/include/limits.h: Add _POSIX2_RE_DUP_MAX.
174 * sys/rtems/sys/param.h: sys/rtprio.h not needed.
175
1dc1ccd4
JJ
1762008-10-31 Jeff Johnston <jjohnstn@redhat.com>
177
178 * libc/stdio/diprintf.c: Modify documentation so eclipse newlib
179 libhover docs generate properly.
180 * libc/stdio/dprintf.c: Ditto.
181 * libc/stdio/fflush.c: Ditto.
182 * libc/stdio/fopencookie.c: Ditto.
183 * libc/stdio/fread.c: Ditto.
184 * libc/stdio/fsetpos.c: Ditto.
185 * libc/stdio/getc_u.c: Ditto.
186 * libc/stdio/getchar_u.c: Ditto.
187 * libc/stdio/putc_u.c: Ditto.
188 * libc/stdio/putchar_u.c: Ditto.
189 * libc/stdio/remove.c: Ditto.
190 * libc/stdio/siprintf.c: Ditto.
191 * libc/stdio/siscanf.c: Ditto.
192 * libc/stdio/sprintf.c: Ditto.
193 * libc/stdio/sscanf.c: Ditto.
194 * libc/stdio/vfprintf.c: Ditto.
195 * libc/stdio/vfscanf.c: Ditto.
196 * libc/stdio/viprintf.c: Ditto.
197 * libc/stdio/viscanf.c: Ditto.
198 * libc/stdlib/calloc.c: Ditto.
199 * libc/stdlib/efgcvt.c: Ditto.
200 * libc/stdlib/envlock.c: Ditto.
201 * libc/time/asctime.c: Ditto.
202 * libc/time/ctime.c: Ditto.
203 * libc/time/gmtime.c: Ditto.
204 * libc/time/lcltime.c: Ditto.
205 * libc/time/tzset.c: Ditto.
206 * libc/stdlib/envlock.h: Moved to libc/include.
207
d456d606
JJ
2082008-10-31 Jeff Johnston <jjohnstn@redhat.com>
209
210 * libc/include/limits.h: Add ARG_MAX, PATH_MAX, and _POSIX2_RE_DUP_MAX.
211 * libc/include/envlock.h: New file.
212 * libc/include/fnmatch.h: Ditto.
213 * libc/include/glob.h: Ditto.
214 * libc/include/regex.h: Ditto.
215 * libc/include/wordexp.h: Ditto.
216 * libc/posix/Makefile.am: Add new files moved from
217 libc/sys/linux/stdlib.
218 * libc/posix/Makefile.in: Regenerated.
219 * libc/posix/COPYRIGHT: New file moved from libc/sys/linux/stdlib.
220 * libc/posix/cclass.h: Ditto.
221 * libc/posix/cname.h: Ditto.
222 * libc/posix/collate.c: Ditto.
223 * libc/posix/collate.h: Ditto.
224 * libc/posix/collcmp.c: Ditto.
225 * libc/posix/engine.c: Ditto.
226 * libc/posix/fnmatch.3: Ditto.
227 * libc/posix/glob.3: Ditto.
228 * libc/posix/fnmatch.c: Ditto.
229 * libc/posix/glob.c: Ditto.
230 * libc/posix/namespace.h: Ditto.
231 * libc/posix/reallocf.c: Ditto.
232 * libc/posix/regcomp.c: Ditto.
233 * libc/posix/regerror.c: Ditto.
234 * libc/posix/regex.3: Ditto.
235 * libc/posix/regex2.h: Ditto.
236 * libc/posix/regexec.c: Ditto.
237 * libc/posix/regfree.c: Ditto.
238 * libc/posix/rune.h: Ditto.
239 * libc/posix/runetype.h: Ditto.
240 * libc/posix/scandir.c: Remove advertising clause which is not in
241 effect.
242 * libc/posix/sysexits.h: Ditto.
243 * libc/posix/un-namespace.h: Ditto.
244 * libc/posix/utils.h: Ditto.
245 * libc/posix/wordexp.c: Ditto.
246 * libc/posix/wordfree.c: Ditto.
247 * libc/posix/execl.c: Add !_NO_EXECVE flag check.
248 * libc/posix/execle.c: Ditto.
249 * libc/posix/execlp.c: Ditto.
250 * libc/posix/execv.c: Ditto.
251 * libc/posix/execve.c: Ditto.
252 * libc/posix/execvp.c: Ditto.
253 * libc/posix/popen.c: Add !_NO_POPEN flag check.
254 * libc/sys/linux/configure: Regenerated.
255 * libc/sys/linux/configure.in: Remove stdlib.
256 * libc/sys/linux/include/limits.h: Add include of linux/limits.h.
257 * libc/sys/linux/stdlib/Makefile.am: Removed.
258 * libc/sys/linux/stdlib/Makefile.in: Ditto.
259 * libc/sys/linux/stdlib/COPYRIGHT: Moved to libc/posix.
260 * libc/sys/linux/stdlib/cclass.h: Ditto.
261 * libc/sys/linux/stdlib/cname.h: Ditto.
262 * libc/sys/linux/stdlib/collate.c: Ditto.
263 * libc/sys/linux/stdlib/collate.h: Ditto.
264 * libc/sys/linux/stdlib/collcmp.c: Ditto.
265 * libc/sys/linux/stdlib/engine.c: Ditto.
266 * libc/sys/linux/stdlib/fnmatch.3: Ditto.
267 * libc/sys/linux/stdlib/fnmatch.c: Ditto.
268 * libc/sys/linux/stdlib/glob.3: Ditto.
269 * libc/sys/linux/stdlib/glob.c: Ditto.
270 * libc/sys/linux/stdlib/reallocf.c: Ditto.
271 * libc/sys/linux/stdlib/regcomp.c: Ditto.
272 * libc/sys/linux/stdlib/regerror.c: Ditto.
273 * libc/sys/linux/stdlib/regex.3: Ditto.
274 * libc/sys/linux/stdlib/regex2.h: Ditto.
275 * libc/sys/linux/stdlib/regexec.c: Ditto.
276 * libc/sys/linux/stdlib/regfree.c: Ditto.
277 * libc/sys/linux/stdlib/utils.h: Ditto.
278 * libc/sys/linux/stdlib/wordexp.c: Ditto.
279 * libc/sys/linux/stdlib/wordfree.c: Ditto.
280
01bf0593
JJ
2812008-10-16 Joel Sherrill <joel.sherrill@oarcorp.com>
282
5d2b3a0a
JJ
283 * libc/include/sys/unistd.h: RTEMS follows standard for sync().
284
2852008-10-16 Joel Sherrill <joel.sherrill@oarcorp.com>
286
287 * libc/include/time.h: Add CLOCK_MONOTONIC.
288 * libc/include/sys/features.h: Define
289 _POSIX_MONOTONIC_CLOCK for RTEMS.
290
f7b03c3c
JJ
2912008-10-15 Jeff Johnston <jjohnstn@redhat.com>
292
293 * newlib.hin: Restore to previous 1.14 version which has no
294 PACKAGE_ macros.
295
baa9e037
JJ
2962008-10-15 Joel Sherrill <joel.sherrill@oarcorp.com>
297
298 * libc/include/sys/unistd.h: Enable ttyname_r() for RTEMS.
299
bc5585e6
JJ
3002008-10-15 Craig Howland <howland@LGSInnovations.com>
301
302 * libc/include/ctype.h (isblank): isblank is C99.
303 * libc/ctype/isblank.c (isblank comments): ditto. isblank does not
304 have a macro version (as was claimed in the description).
305
236e5c40
JJ
3062008-10-15 Jeff Johnston <jjohnstn@redhat.com>
307
308 * libc/stdio/vfscanf.c (__ssvfiscanf_r): Do not support %lc, %C, %ls or
309 %S conversions when the EL/IX level is 1.
310
0d2597f5
JJ
3112008-10-06 Eric Blake <ebb9@byu.net>
312
313 * libc/stdlib/ldtoa.c (etoasc): Fix rounding to even when fraction
314 is 0.5 or 0.75.
315
75fb38a5
JJ
3162008-10-06 Craig Howland <howland@LGSInnovations.com>
317
318 * libc/time/tzset_r.c (_tzset_r): Change US default start/end dates to
319 2007 law revision of start in 2nd Sunday in March, end 1st Sun in Nov.
320
015b86d7
JJ
3212008-10-02 Jeff Johnston <jjohnstn@redhat.com>
322
323 * libc/string/str-two-way.h (critical_factorization): Cast the index
324 operation to ensure unsigned rollover occurs when adding to SIZE_MAX.
325
eea95bd1
JJ
3262008-10-02 Jeff Johnston <jjohnstn@redhat.com>
327
328 * libc/sys/linux/include/stdint.h (SIZE_MAX): Fix value which should
329 be size of size_t, not int.
330 (SIZE_MIN): Remove.
331 * libc/sys/linux/sys/stdint.h: Ditto.
332
9d36d24f
JJ
3332008-10-02 Jeff Johnston <jjohnstn@redhat.com>
334
335 * libc/include/sys/reent.h[_REENT_SMALL](_REENT_INIT_RAND48): Add
336 initialization of _rand_next to 1.
337
fab8d8d8
SE
3382008-09-29 Peter O'Gorman <pogma@thewrittenword.com>
339 Steve Ellcey <sje@cup.hp.com>
340
341 * configure: Regenerate for new libtool.
342 * aclocal.m4: Ditto.
343 * Makefile.in: Ditto.
344 * newlib.hin: Ditto.
345 * doc/Makefile.in: Ditto.
346 * doc/configure: Ditto.
347 * iconvdata/Makefile.in: Ditto.
348 * iconvdata/aclocal.m4: Ditto.
349 * iconvdata/configure: Ditto.
350 * libc/Makefile.in: Ditto.
351 * libc/aclocal.m4: Ditto.
352 * libc/configure: Ditto.
353 * libc/argz/Makefile.in: Ditto.
354 * libc/ctype/Makefile.in: Ditto.
355 * libc/errno/Makefile.in: Ditto.
356 * libc/iconv/Makefile.in: Ditto.
357 * libc/iconv/ccs/Makefile.in: Ditto.
358 * libc/iconv/ccs/binary/Makefile.in: Ditto.
359 * libc/iconv/ces/Makefile.in: Ditto.
360 * libc/iconv/lib/Makefile.in: Ditto.
361 * libc/locale/Makefile.in: Ditto.
362 * libc/machine/Makefile.in: Ditto.
363 * libc/machine/aclocal.m4: Ditto.
364 * libc/machine/configure: Ditto.
365 * libc/machine/a29k/Makefile.in: Ditto.
366 * libc/machine/a29k/configure: Ditto.
367 * libc/machine/arm/Makefile.in: Ditto.
368 * libc/machine/arm/configure: Ditto.
369 * libc/machine/bfin/Makefile.in: Ditto.
370 * libc/machine/bfin/configure: Ditto.
371 * libc/machine/cris/Makefile.in: Ditto.
372 * libc/machine/cris/configure: Ditto.
373 * libc/machine/crx/Makefile.in: Ditto.
374 * libc/machine/crx/configure: Ditto.
375 * libc/machine/d10v/Makefile.in: Ditto.
376 * libc/machine/d10v/configure: Ditto.
377 * libc/machine/d30v/Makefile.in: Ditto.
378 * libc/machine/d30v/configure: Ditto.
379 * libc/machine/fr30/Makefile.in: Ditto.
380 * libc/machine/fr30/configure: Ditto.
381 * libc/machine/frv/Makefile.in: Ditto.
382 * libc/machine/frv/configure: Ditto.
383 * libc/machine/h8300/Makefile.in: Ditto.
384 * libc/machine/h8300/configure: Ditto.
385 * libc/machine/h8500/Makefile.in: Ditto.
386 * libc/machine/h8500/configure: Ditto.
387 * libc/machine/hppa/Makefile.in: Ditto.
388 * libc/machine/hppa/configure: Ditto.
389 * libc/machine/i386/Makefile.in: Ditto.
390 * libc/machine/i386/aclocal.m4: Ditto.
391 * libc/machine/i386/configure: Ditto.
392 * libc/machine/i960/Makefile.in: Ditto.
393 * libc/machine/i960/configure: Ditto.
394 * libc/machine/iq2000/Makefile.in: Ditto.
395 * libc/machine/iq2000/configure: Ditto.
396 * libc/machine/m32c/Makefile.in: Ditto.
397 * libc/machine/m32c/configure: Ditto.
398 * libc/machine/m32r/Makefile.in: Ditto.
399 * libc/machine/m32r/configure: Ditto.
400 * libc/machine/m68hc11/Makefile.in: Ditto.
401 * libc/machine/m68hc11/configure: Ditto.
402 * libc/machine/m68k/Makefile.in: Ditto.
403 * libc/machine/m68k/configure: Ditto.
404 * libc/machine/m88k/Makefile.in: Ditto.
405 * libc/machine/m88k/configure: Ditto.
406 * libc/machine/mep/Makefile.in: Ditto.
407 * libc/machine/mep/configure: Ditto.
408 * libc/machine/mips/Makefile.in: Ditto.
409 * libc/machine/mips/configure: Ditto.
410 * libc/machine/mn10200/Makefile.in: Ditto.
411 * libc/machine/mn10200/configure: Ditto.
412 * libc/machine/mn10300/Makefile.in: Ditto.
413 * libc/machine/mn10300/configure: Ditto.
414 * libc/machine/mt/Makefile.in: Ditto.
415 * libc/machine/mt/configure: Ditto.
416 * libc/machine/necv70/Makefile.in: Ditto.
417 * libc/machine/necv70/configure: Ditto.
418 * libc/machine/powerpc/Makefile.in: Ditto.
419 * libc/machine/powerpc/configure: Ditto.
420 * libc/machine/sh/Makefile.in: Ditto.
421 * libc/machine/sh/configure: Ditto.
422 * libc/machine/sparc/Makefile.in: Ditto.
423 * libc/machine/sparc/configure: Ditto.
424 * libc/machine/spu/Makefile.in: Ditto.
425 * libc/machine/spu/configure: Ditto.
426 * libc/machine/tic4x/Makefile.in: Ditto.
427 * libc/machine/tic4x/configure: Ditto.
428 * libc/machine/tic80/Makefile.in: Ditto.
429 * libc/machine/tic80/configure: Ditto.
430 * libc/machine/v850/Makefile.in: Ditto.
431 * libc/machine/v850/configure: Ditto.
432 * libc/machine/w65/Makefile.in: Ditto.
433 * libc/machine/w65/configure: Ditto.
434 * libc/machine/x86_64/Makefile.in: Ditto.
435 * libc/machine/x86_64/configure: Ditto.
436 * libc/machine/xscale/Makefile.in: Ditto.
437 * libc/machine/xscale/configure: Ditto.
438 * libc/machine/xstormy16/Makefile.in: Ditto.
439 * libc/machine/xstormy16/configure: Ditto.
440 * libc/machine/z8k/Makefile.in: Ditto.
441 * libc/machine/z8k/configure: Ditto.
442 * libc/misc/Makefile.in: Ditto.
443 * libc/posix/Makefile.in: Ditto.
444 * libc/reent/Makefile.in: Ditto.
445 * libc/search/Makefile.in: Ditto.
446 * libc/signal/Makefile.in: Ditto.
447 * libc/stdio/Makefile.in: Ditto.
448 * libc/stdio64/Makefile.in: Ditto.
449 * libc/stdlib/Makefile.in: Ditto.
450 * libc/string/Makefile.in: Ditto.
451 * libc/sys/Makefile.in: Ditto.
452 * libc/sys/aclocal.m4: Ditto.
453 * libc/sys/configure: Ditto.
454 * libc/sys/a29khif/Makefile.in: Ditto.
455 * libc/sys/a29khif/configure: Ditto.
456 * libc/sys/arc/Makefile.in: Ditto.
457 * libc/sys/arc/configure: Ditto.
458 * libc/sys/arm/Makefile.in: Ditto.
459 * libc/sys/arm/configure: Ditto.
460 * libc/sys/d10v/Makefile.in: Ditto.
461 * libc/sys/d10v/configure: Ditto.
462 * libc/sys/decstation/Makefile.in: Ditto.
463 * libc/sys/decstation/configure: Ditto.
464 * libc/sys/h8300hms/Makefile.in: Ditto.
465 * libc/sys/h8300hms/configure: Ditto.
466 * libc/sys/h8500hms/Makefile.in: Ditto.
467 * libc/sys/h8500hms/configure: Ditto.
468 * libc/sys/linux/Makefile.in: Ditto.
469 * libc/sys/linux/aclocal.m4: Ditto.
470 * libc/sys/linux/configure: Ditto.
471 * libc/sys/linux/argp/Makefile.in: Ditto.
472 * libc/sys/linux/cmath/Makefile.in: Ditto.
473 * libc/sys/linux/dl/Makefile.in: Ditto.
474 * libc/sys/linux/iconv/Makefile.in: Ditto.
475 * libc/sys/linux/intl/Makefile.in: Ditto.
476 * libc/sys/linux/linuxthreads/Makefile.in: Ditto.
477 * libc/sys/linux/linuxthreads/aclocal.m4: Ditto.
478 * libc/sys/linux/linuxthreads/configure: Ditto.
479 * libc/sys/linux/linuxthreads/machine/Makefile.in: Ditto.
480 * libc/sys/linux/linuxthreads/machine/aclocal.m4: Ditto.
481 * libc/sys/linux/linuxthreads/machine/configure: Ditto.
482 * libc/sys/linux/linuxthreads/machine/i386/Makefile.in: Ditto.
483 * libc/sys/linux/linuxthreads/machine/i386/aclocal.m4: Ditto.
484 * libc/sys/linux/linuxthreads/machine/i386/configure: Ditto.
485 * libc/sys/linux/machine/Makefile.in: Ditto.
486 * libc/sys/linux/machine/aclocal.m4: Ditto.
487 * libc/sys/linux/machine/configure: Ditto.
488 * libc/sys/linux/machine/i386/Makefile.in: Ditto.
489 * libc/sys/linux/machine/i386/aclocal.m4: Ditto.
490 * libc/sys/linux/machine/i386/configure: Ditto.
491 * libc/sys/linux/net/Makefile.in: Ditto.
492 * libc/sys/linux/stdlib/Makefile.in: Ditto.
493 * libc/sys/m88kbug/Makefile.in: Ditto.
494 * libc/sys/m88kbug/configure: Ditto.
495 * libc/sys/mmixware/Makefile.in: Ditto.
496 * libc/sys/mmixware/configure: Ditto.
497 * libc/sys/netware/Makefile.in: Ditto.
498 * libc/sys/netware/configure: Ditto.
499 * libc/sys/rdos/Makefile.in: Ditto.
500 * libc/sys/rdos/configure: Ditto.
501 * libc/sys/rtems/Makefile.in: Ditto.
502 * libc/sys/rtems/configure: Ditto.
503 * libc/sys/sh/Makefile.in: Ditto.
504 * libc/sys/sh/configure: Ditto.
505 * libc/sys/sparc64/Makefile.in: Ditto.
506 * libc/sys/sparc64/configure: Ditto.
507 * libc/sys/sun4/Makefile.in: Ditto.
508 * libc/sys/sun4/configure: Ditto.
509 * libc/sys/sysmec/Makefile.in: Ditto.
510 * libc/sys/sysmec/configure: Ditto.
511 * libc/sys/sysnec810/Makefile.in: Ditto.
512 * libc/sys/sysnec810/configure: Ditto.
513 * libc/sys/sysnecv850/Makefile.in: Ditto.
514 * libc/sys/sysnecv850/configure: Ditto.
515 * libc/sys/sysvi386/Makefile.in: Ditto.
516 * libc/sys/sysvi386/configure: Ditto.
517 * libc/sys/sysvnecv70/Makefile.in: Ditto.
518 * libc/sys/sysvnecv70/configure: Ditto.
519 * libc/sys/tic80/Makefile.in: Ditto.
520 * libc/sys/tic80/configure: Ditto.
521 * libc/sys/w65/Makefile.in: Ditto.
522 * libc/sys/w65/configure: Ditto.
523 * libc/sys/z8ksim/Makefile.in: Ditto.
524 * libc/sys/z8ksim/configure: Ditto.
525 * libc/syscalls/Makefile.in: Ditto.
526 * libc/time/Makefile.in: Ditto.
527 * libc/unix/Makefile.in: Ditto.
528 * libm/Makefile.in: Ditto.
529 * libm/aclocal.m4: Ditto.
530 * libm/configure: Ditto.
531 * libm/common/Makefile.in: Ditto.
532 * libm/machine/Makefile.in: Ditto.
533 * libm/machine/aclocal.m4: Ditto.
534 * libm/machine/configure: Ditto.
535 * libm/machine/i386/Makefile.in: Ditto.
536 * libm/machine/i386/aclocal.m4: Ditto.
537 * libm/machine/i386/configure: Ditto.
538 * libm/machine/spu/Makefile.in: Ditto.
539 * libm/machine/spu/configure: Ditto.
540 * libm/math/Makefile.in: Ditto.
541 * libm/mathfp/Makefile.in: Ditto.
542
9e71090b
JJ
5432008-09-26 Craig Howland <howland@LGSInnovations.com>
544
545 * libc/stdlib/getenv_r.c (_getenv_r): Modify to not match if name
546 contains an equal sign.
547
610eefef
JJ
5482008-09-25 Raphael Derossa Pereira <raphaelpereira@gmail.com>
549
550 * libc/include/pthread.h[_UNIX98_THREAD_MUTEX_ATTRIBUTES]: Add
551 new pthread_mutexattr_gettype and pthread_mutexattr_settype
552 prototypes.
553 * libc/include/sys/types.h[_UNIX98_THREAD_MUTEX_ATTRIBUTES]: Add
554 new mutex type values.
555 (pthread_mutexattr_t)[_UNIX98_THREAD_MUTEX_ATTRIBUTES]: Add type
556 field.
557
57d7cfcd
JJ
5582008-09-24 Jeff Johnston <jjohnstn@redhat.com>
559
560 * libc/stdlib/setenv_r.c (_unsetenv_r): Modify to return -1 only if
561 name is NULL, empty, or contains equal sign.
562
37f996a2
JJ
5632008-09-24 Pawel Veselov <pawel.veselov@gmail.com>
564
565 Fix setenv/getenv/unsetenv to be OpenGroup compliant:
566 * libc/include/stdlib.h (unsetenv, _unsetenv_r): Redefine with integer
567 return types.
568 * libc/stdlib/getenv_r.c (_findenv_r): Do no special processing with
569 names that contain equal chars.
570 * libc/stdlib/setenv.c: Redefine _unsetenv_r as returning int.
571 * libc/stdlib/setenv_r.c (_setenv_r): Return -1 and set errno to
572 EINVAL if name contains an equal sign. Do not remove any equal signs
573 from the value.
574 (_unsetenv_r): Modified to return int. Return -1 and set EINVAL
575 if name contains equal sign. Return -1 if no variable(s) were found
576 and return 0 otherwise.
577
29212ab3
JJ
5782008-09-19 Eric Blake <ebb9@byu.net>
579
580 Supply missing POSIX errno values.
581 * libc/include/sys/errno.h (ENOTRECOVERABLE, EOWNERDEAD): Define.
582 * libc/string/strerror.c (strerror): Decode them, and ECANCELED.
583
0b840b00
JJ
5842008-09-10 Ken Werner <ken.werner@de.ibm.com>
585
586 * libc/machine/spu/strcpy.h: Add missing header.
587 * libc/machine/spu/spu_timer_slih.c: Remove unused Variable.
588 * libm/machine/spu/headers/lgammaf4.h: Add type cast.
589
da64e6bb
JJ
5902008-09-08 Jeff Johnston <jjohnstn@redhat.com>
591
fc378cf7
BE
592 * libc/sys/linux/dl/atomicity.h (exchange_and_add): Fix asm
593 statement to use "m" instead of "0".
da64e6bb
JJ
594 (atomic_add): Ditto.
595 * libc/sys/linux/linuxthreads/spinlock.c (__pthread_release): Ditto.
596 * libc/sys/linux/net/getaddrinfo.c: Add limit.h include.
597 * libc/sys/linux/stdlib/glob.c: Ditto.
598
27b975f6
JJ
5992008-09-04 Ken Werner <ken.werner@de.ibm.com>
600
601 * libm/machine/spu/headers/acosd2.h: Duplicated preamble text removed.
602 * libm/machine/spu/headers/acosf4.h: Likewise.
603 * libm/machine/spu/headers/acoshd2.h: Likewise.
604 * libm/machine/spu/headers/acoshf4.h: Likewise.
605 * libm/machine/spu/headers/asind2.h: Likewise.
606 * libm/machine/spu/headers/asinf4.h: Likewise.
607 * libm/machine/spu/headers/asinhd2.h: Likewise.
608 * libm/machine/spu/headers/asinhf4.h: Likewise.
609 * libm/machine/spu/headers/atan2d2.h: Likewise.
610 * libm/machine/spu/headers/atan2f4.h: Likewise.
611 * libm/machine/spu/headers/atand2.h: Likewise.
612 * libm/machine/spu/headers/atanf4.h: Likewise.
613 * libm/machine/spu/headers/atanhd2.h: Likewise.
614 * libm/machine/spu/headers/atanhf4.h: Likewise.
615 * libm/machine/spu/headers/cos_sin.h: Likewise.
616 * libm/machine/spu/headers/cosd2.h: Likewise.
617 * libm/machine/spu/headers/cosf4.h: Likewise.
618 * libm/machine/spu/headers/coshd2.h: Likewise.
619 * libm/machine/spu/headers/coshf4.h: Likewise.
620 * libm/machine/spu/headers/divd2.h: Likewise.
621 * libm/machine/spu/headers/divf4.h: Likewise.
622 * libm/machine/spu/headers/erf_utils.h: Likewise.
623 * libm/machine/spu/headers/erfcd2.h: Likewise.
624 * libm/machine/spu/headers/erfcf4.h: Likewise.
625 * libm/machine/spu/headers/erfd2.h: Likewise.
626 * libm/machine/spu/headers/erff4.h: Likewise.
627 * libm/machine/spu/headers/exp2d2.h: Likewise.
628 * libm/machine/spu/headers/exp2f4.h: Likewise.
629 * libm/machine/spu/headers/expd2.h: Likewise.
630 * libm/machine/spu/headers/expf4.h: Likewise.
631 * libm/machine/spu/headers/expm1d2.h: Likewise.
632 * libm/machine/spu/headers/expm1f4.h: Likewise.
633 * libm/machine/spu/headers/floord2.h: Likewise.
634 * libm/machine/spu/headers/floorf4.h: Likewise.
635 * libm/machine/spu/headers/hypotd2.h: Likewise.
636 * libm/machine/spu/headers/hypotf4.h: Likewise.
637 * libm/machine/spu/headers/isnand2.h: Likewise.
638 * libm/machine/spu/headers/isnanf4.h: Likewise.
639 * libm/machine/spu/headers/ldexpd2.h: Likewise.
640 * libm/machine/spu/headers/ldexpf4.h: Likewise.
641 * libm/machine/spu/headers/lgammad2.h: Likewise.
642 * libm/machine/spu/headers/lgammaf4.h: Likewise.
643 * libm/machine/spu/headers/log10d2.h: Likewise.
644 * libm/machine/spu/headers/log1pd2.h: Likewise.
645 * libm/machine/spu/headers/log1pf4.h: Likewise.
646 * libm/machine/spu/headers/log2d2.h: Likewise.
647 * libm/machine/spu/headers/log2f4.h: Likewise.
648 * libm/machine/spu/headers/logbf4.h: Likewise.
649 * libm/machine/spu/headers/logd2.h: Likewise.
650 * libm/machine/spu/headers/logf4.h: Likewise.
651 * libm/machine/spu/headers/nearbyintf4.h: Likewise.
652 * libm/machine/spu/headers/nextafterd2.h: Likewise.
653 * libm/machine/spu/headers/nextafterf4.h: Likewise.
654 * libm/machine/spu/headers/powd2.h: Likewise.
655 * libm/machine/spu/headers/powf4.h: Likewise.
656 * libm/machine/spu/headers/recipd2.h: Likewise.
657 * libm/machine/spu/headers/recipf4.h: Likewise.
658 * libm/machine/spu/headers/rintf4.h: Likewise.
659 * libm/machine/spu/headers/scalbnf4.h: Likewise.
660 * libm/machine/spu/headers/signbitd2.h: Likewise.
661 * libm/machine/spu/headers/sincosd2.h: Likewise.
662 * libm/machine/spu/headers/sincosf4.h: Likewise.
663 * libm/machine/spu/headers/sind2.h: Likewise.
664 * libm/machine/spu/headers/sinf4.h: Likewise.
665 * libm/machine/spu/headers/sinhd2.h: Likewise.
666 * libm/machine/spu/headers/sinhf4.h: Likewise.
667 * libm/machine/spu/headers/sqrtd2.h: Likewise.
668 * libm/machine/spu/headers/sqrtf4.h: Likewise.
669 * libm/machine/spu/headers/tand2.h: Likewise.
670 * libm/machine/spu/headers/tanf4.h: Likewise.
671 * libm/machine/spu/headers/tanhd2.h: Likewise.
672 * libm/machine/spu/headers/tanhf4.h: Likewise.
673 * libm/machine/spu/headers/tgammad2.h: Likewise.
674 * libm/machine/spu/headers/tgammaf4.h: Likewise.
675 * libm/machine/spu/headers/truncd2.h: Likewise.
676 * libm/machine/spu/headers/truncf4.h: Likewise.
677 * libm/machine/spu/headers/simdmath.h: Likewise.
678
06e51402
JJ
6792008-09-04 Ken Werner <ken.werner@de.ibm.com>
680
681 * libm/machine/spu/headers/acoshf4.h: Rebase against current simdmath.
682 * libm/machine/spu/headers/asinhd2.h: Likewise.
683 * libm/machine/spu/headers/atanhd2.h: Likewise.
684 * libm/machine/spu/headers/atanhf4.h: Likewise.
685 * libm/machine/spu/headers/erff4.h: Likewise.
686 * libm/machine/spu/headers/expd2.h: Likewise.
687 * libm/machine/spu/headers/ldexpd2.h: Likewise.
688 * libm/machine/spu/headers/lgammaf4.h: Likewise.
689 * libm/machine/spu/headers/logbf4.h: Likewise.
690 * libm/machine/spu/headers/nextafterd2.h: Likewise.
691 * libm/machine/spu/headers/nextafterf4.h: Likewise.
692 * libm/machine/spu/headers/recipd2.h: Likewise.
693 * libm/machine/spu/headers/simdmath.h: Likewise.
694 * libm/machine/spu/headers/acoshd2.: Likewise.
695
db04da92
JJ
6962008-09-04 Ken Werner <ken.werner@de.ibm.com>
697
698 * libm/machine/spu/headers/cbrt.h: cbrt_factors[] declared.
699 * libm/machine/spu/headers/cbrtf.h: Likewise.
700
2c73a5e6
JJ
7012008-09-01 Ken Werner <ken.werner@de.ibm.com>
702
703 * libc/machine/spu/include/spu_timer.h: spu_timebase function added.
704 * libc/machine/spu/spu_timebase.c: New file.
705 * libc/machine/spu/Makefile.am: Add new file.
706 * libc/machine/spu/Makefile.in: Regenerated.
707
b6ab3057
JJ
7082008-08-28 Craig Howland <howland@LGSInnovations.com>
709
710 * libc/time/mktime.c (mktime): Fix tm_isdst value usage (allowing
711 any positive value from user (per std) rather than depending
712 upon 1).
713
60ac13a0
JJ
7142008-08-28 Corinna Vinschen <corinna@vinschen.de>
715
716 * libc/stdlib/wcsrtombs.c (_wcsrtombs_r): Optimize condition
717 for accepting a converted character.
718
cbeb4588
JJ
7192008-08-27 Sandra Loosemore <sandra@codesourcery.com>
720
721 * libc/libc.texinfo: Remove "LOCAL KLUGE" that prevents it
722 from building pdfs.
723 * libm/libm.texinfo: Likewise.
724
2d8d8175
JJ
7252008-08-27 Corinna Vinschen <corinna@vinschen.de>
726
727 * libc/stdlib/wcsrtombs.c (_wcsrtombs_r): Fix condition for
728 accepting a converted character and continuing the loop.
729
410c1d12
JJ
7302008-07-24 Jeff Johnston <jjohnstn@redhat.com>
731
732 * libc/include/ctype.h (_ctype_): Restore for C++ backward
733 compatability only.
734
fa914bf8
JJ
7352008-07-21 Jeff Johnston <jjohnstn@redhat.com>
736
737 * libc/ctype/ctype_.c: Add new pointer __ctype_ptr__ which is one
738 less than the old __ctype_ptr.
739 * libc/ctype/isalnum.c: Use __ctype_ptr__.
740 * libc/ctype/isalpha.c: Ditto.
741 * libc/ctype/iscntrl.c: Ditto.
742 * libc/ctype/isdigit.c: Ditto.
743 * libc/ctype/islower.c: Ditto.
744 * libc/ctype/isprint.c: Ditto.
745 * libc/ctype/ispunct.c: Ditto.
746 * libc/ctype/isspace.c: Ditto.
747 * libc/ctype/isupper.c: Ditto.
748 * libc/ctype/isxdigit.c: Ditto.
749 * libc/include/ctype.h: Change ctype macros to use new __ctype_ptr__
750 and add declaration of __ctype_ptr__. Remove older ctype table pointers
751 from here even though they can still work.
752
b47d83c6
JJ
7532008-07-18 Ken Werner <ken.werner@de.ibm.com>
754
755 * libc/machine/spu/strcpy.h: Fix error in previous patch.
756
d2af9eff
JJ
7572008-07-17 Jeff Johnston <jjohnstn@redhat.com>
758
759 * libc/include/assert.h (__ASSERT_FUNC): Define to __FUNCTION__ when
760 __STDC_VERSION__ < 199901L and __GNUC__ >= 2.
761
eb19b8f9
JJ
7622008-07-17 Ken Werner <ken.werner@de.ibm.com>
763
764 * libc/machine/spu/strcpy.h: Pad null bytes if necessary.
765
17bfd1e0
JJ
7662008-07-08 Kenji Tanaka <tanaka.ken2@jp.panasonic.com>
767
768 * libc/machine/mn10300/memset.S: Fix bug where return value is
769 incorrectly set if number of bytes set is a multiple of 4.
770
2adedff8
JJ
7712008-07-07 Hans-Peter Nilsson <hp@axis.com>
772
773 * libc/machine/mips/strncpy.c: Include stdint.h to get uintptr_t.
774 (strncpy): Cast src to uintptr_t before checking alignment with "&".
775
18a635e3
JJ
7762008-07-02 Jeff Johnston <jjohnstn@redhat.com>
777
778 * libc/argz/argz_count.c: Include stddef.h to get size_t.
779 * libc/argz/argz_extract.c: Ditto.
780 * libc/argz/argz_stringify.c: Ditto.
781 * libc/search/hash.h: Ditto.
782 * libc/sys/linux/include/sched.h: Ditto.
783 * libc/sys/linux/sys/types.h: Ditto.
784
a9f7d0a7
JJ
7852008-07-02 Jeff Johnston <jjohnstn@redhat.com>
786
787 * libc/machine/mips/strncpy.c (strncpy): Fix logic so unaligned
788 source data is taken care of before loop unrolling.
789
5592f939
HPN
7902008-06-25 Hans-Peter Nilsson <hp@axis.com>
791
792 Fix strict-aliasing issues with _strtod_r and Storeinc.
793 * libc/stdlib/strtod.c (_strtod_r): Change local variables aadj,
794 rv, rv0 from double to type U. Use accessor macros dval, dword0
795 and dword1 for all accesses except for the ULtod call, where rv.i
796 replaces the pointer cast.
797 * libc/stdlib/mprec.h (U): Rename member L to i for easier re-use
798 of access macros. Tweak comment.
799 Remove #ifdef'd YES_ALIAS code.
800 (dword0, dword1, dval): Define in terms of uncast union member
801 access. Ditto for _DOUBLE_IS_32BITS variants.
802 (Storeinc): Replace aliasing-flawed microoptimized definition with
803 alternative suggested in comment. Remove now stale comment.
804
eb3f08ac
CV
8052008-06-21 Corinna Vinschen <corinna@vinschen.de>
806
807 * libc/include/machine/setjmp.h (_longjmp): Define as function on
808 Cygwin.
809 (_setjmp): Ditto.
810
8fa475e4
EB
8112008-06-18 Eric Blake <ebb9@byu.net>
812
813 Per Posix, strsignal returns non-const char*.
814 * libc/include/string.h (strsignal): Fix return type.
815
12b0cae7
JJ
8162008-06-17 Ken Werner <ken.werner@de.ibm.com>
817
818 * libc/machine/spu/sys/linux_syscalls.h: New file to add Linux syscall
819 support.
4e73927b
JJ
820
8212008-06-16 Ken Werner <ken.werner@de.ibm.com>
822
823 * libc/machine/spu/sys/dirent.h: Add extern "C" specifier if C++.
824 * libc/machine/spu/sys/sched.h: Likewise.
825 * libc/machine/spu/sys/syscall.h: Likewise.
826
b243d287
JJ
8272008-06-16 Ken Werner <ken.werner@de.ibm.com>
828
829 * libc/machine/spu/mk_syscalls: Provide .type and .size directives
830 in generated assembler files.
831 * libc/machine/spu/fprintf.S: Regenerate.
832 * libc/machine/spu/fscanf.S: Regenerate.
833 * libc/machine/spu/printf.S: Regenerate.
834 * libc/machine/spu/scanf.S: Regenerate.
835 * libc/machine/spu/snprintf.S: Regenerate.
836 * libc/machine/spu/sprintf.S: Regenerate.
837 * libc/machine/spu/sscanf.S: Regenerate.
838 * libc/machine/spu/stack_reg_va.S (__stack_reg_va): Provide .type
839 and .size directives.
840 * libc/machine/spu/setjmp.S (setjmp): Likewise.
841 (longjmp): Likewise.
842
2b4c1b41
JJ
8432008-06-11 Jeff Johnston <jjohnstn@redhat.com>
844
845 * libc/include/machine/_default_types.h: Fix GNUC check to
846 handle 4.0 and greater.
847
a0496b5e
JJ
8482008-06-09 Ken Werner <ken.werner@de.ibm.com>
849
850 * libc/machine/spu/Makefile.am: Add new files.
851 * libc/machine/spu/Makefile.in: Likewise.
852 * libc/machine/spu/include/spu_timer.h: New file to add timer support
853 using interrupts.
854 * libc/machine/spu/spu_clock_stop.c: Likewise.
855 * libc/machine/spu/spu_clock_svcs.c: Likewise.
856 * libc/machine/spu/spu_timer_flih.S: Likewise.
857 * libc/machine/spu/spu_timer_free.c: Likewise.
858 * libc/machine/spu/spu_timer_internal.h: Likewise.
859 * libc/machine/spu/spu_timer_slih.c: Likewise.
860 * libc/machine/spu/spu_timer_slih_reg.c: Likewise.
861 * libc/machine/spu/spu_timer_stop.c: Likewise.
862 * libc/machine/spu/spu_timer_svcs.c: Likewise.
863
3da06ba8
JJ
8642008-06-09 Ken Werner <ken.werner@de.ibm.com>
865
866 * libc/machine/spu/strcat.c: Return value fixed.
867 * libc/machine/spu/strncat.c: Likewise.
868
2dd1fb6f
EB
8692008-05-28 Eric Blake <ebb9@byu.net>
870
871 Fix bug in previous patch.
872 * libc/machine/i386/memset.S (memset): Mask second arg correctly.
873
676ae290
JJ
8742008-05-27 Jeff Johnston <jjohnstn@redhat.com>
875
876 * libc/string/memset.c: Fix documented prototype to remove
877 erroneous const attribute on first parameter.
878
70bff2d5
JJ
8792008-05-26 Eric Blake <ebb9@byu.net>
880
881 Optimize the generic and x86 memchr.
882 * libc/string/memchr.c (memchr) [!__OPTIMIZE_SIZE__]:
883 Pre-align pointer so unaligned searches aren't penalized.
884 * libc/machine/i386/memchr.S (memchr) [!__OPTIMIZE_SIZE__]: Word
885 operations are faster than repnz byte searches.
2dd1fb6f 886
a6bd72a2
JJ
8872008-05-26 Eric Blake <ebb9@byu.net>
888
889 Optimize the generic and x86 memset.
890 * libc/string/memset.c (memset) [!__OPTIMIZE_SIZE__]:
891 Pre-align pointer so unaligned stores aren't penalized.
2dd1fb6f 892 * libc/machine/i386/memset.S (memset) [!__OPTIMIZE_SIZE__]:
a6bd72a2
JJ
893 Pre-align pointer so unaligned stores aren't penalized. Prefer
894 8-byte over 4-byte alignment. Reduce register pressure.
2dd1fb6f 895
cae28869
JJ
8962008-05-26 Eric Blake <ebb9@byu.net>
897
898 Optimize the generic and x86 strlen.
899 * libc/string/strlen.c (strlen) [!__OPTIMIZE_SIZE__]: Pre-align
900 data so unaligned searches aren't penalized.
901 * libc/machine/i386/strlen.S (strlen) [!__OPTIMIZE_SIZE__]:
902 Word operations are faster than repnz byte searches.
903
1fc30315
CV
9042008-05-23 Corinna Vinschen <corinna@vinschen.de>
905
906 * libc/include/sys/_default_fcntl.h: Include <sys/time.h> on Cygwin.
907
3c77dcff
JJ
9082008-05-22 Jeff Johnston <jjohnstn@redhat.com>
909
910 * libc/include/sys/reent.h: Add _h_errno field.
911 * libc/sys/linux/libc-symbols.h: Add default stubs for new libc macros
912 now used in net directory.
913 * libc/sys/linux/bits/libc-lock.h: Always define _IO_MTSAFE_IO.
914 * libc/sys/linux/include/hesiod.h: Add needed macros for new code
915 in net directory.
916 * libc/sys/linux/include/netdb.h: Ditto.
917 * libc/sys/linux/include/resolv.h: Ditto.
918 * libc/sys/linux/include/stdint.h: Ditto.
919 * libc/sys/linux/include/arpa/nameser.h: Ditto.
920 * libc/sys/linux/include/net/ethernet.h: Ditto.
921 * libc/sys/linux/include/net/if_ppp.h: Ditto.
922 * libc/sys/linux/include/netinet/if_ether.h: Ditto.
923 * libc/sys/linux/machine/i386/get_clockfreq.c: Remove static memmem.
924 * libc/sys/linux/machine/i386/include/endian.h: Protect macros with
925 flags to avoid duplicate definition.
926 * libc/sys/linux/machine/i386/include/param.h: Ditto.
927 * libc/sys/linux/net/Makefile.am: Modified to account for removed and
928 added files.
929 * libc/sys/linux/net/Makefile.in: Regenerated.
930 * libc/sys/linux/net/base64.c: Replaced with glibc version of code.
931 * libc/sys/linux/net/getaddrinfo.c: Ditto.
932 * libc/sys/linux/net/getnameinfo.c: Ditto.
933 * libc/sys/linux/net/getproto.c: Ditto.
934 * libc/sys/linux/net/getservent.c: Ditto.
935 * libc/sys/linux/net/inet_netof.c: Ditto.
936 * libc/sys/linux/net/inet_lnaof.c: Ditto.
937 * libc/sys/linux/net/ns_name.c: Ditto.
938 * libc/sys/linux/net/ns_netint.c: Ditto.
939 * libc/sys/linux/net/inet_ntoa.c: Ditto.
940 * libc/sys/linux/net/ns_parse.c: Ditto.
941 * libc/sys/linux/net/ns_print.c: Ditto.
942 * libc/sys/linux/net/ns_ttl.c: Ditto.
943 * libc/sys/linux/net/nsap_addr.c: Ditto.
944 * libc/sys/linux/net/rcmd.c: Ditto.
945 * libc/sys/linux/net/res_comp.c: Ditto.
946 * libc/sys/linux/net/res_data.c: Ditto.
947 * libc/sys/linux/net/res_debug.c: Ditto.
948 * libc/sys/linux/net/res_init.c: Ditto.
949 * libc/sys/linux/net/res_mkquery.c: Ditto.
950 * libc/sys/linux/net/res_query.c: Ditto.
951 * libc/sys/linux/net/res_send.c: Ditto.
952 * libc/sys/linux/net/send.c: Ditto.
953 * libc/sys/linux/stdlib/collate.c: Ditto.
954 * libc/sys/linux/sys/ioctl.h: Ditto.
955 * libc/sys/linux/sys/socket.h: Ditto.
956 * libc/sys/linux/sys/unistd.h: Ditto.
957 * libc/sys/linux/iconv/iconvconfig.c: Removed either because no longer
958 used or because licensing includes advertising clause that cannot be
959 ignored.
960 * libc/sys/linux/iconv/strtab.c: Ditto.
961 * libc/sys/linux/include/libc_private.h: Ditto.
962 * libc/sys/linux/include/nsswitch.h: Ditto.
963 * libc/sys/linux/include/net/if_atm.h: Ditto.
964 * libc/sys/linux/include/net/if_media.h: Ditto.
965 * libc/sys/linux/include/net/if_pppvar.h: Ditto.
966 * libc/sys/linux/include/netinet/if_atm.h: Ditto.
967 * libc/sys/linux/include/netinet/ip_flow.h: Ditto.
968 * libc/sys/linux/intl/locale.alias: Ditto.
969 * libc/sys/linux/net/addr2ascii.3: Ditto.
970 * libc/sys/linux/net/bindresvport.c: Ditto.
971 * libc/sys/linux/net/byteorder.3: Ditto.
972 * libc/sys/linux/net/res_config.h: Ditto.
973 * libc/sys/linux/net/ether_addr.c: Ditto.
974 * libc/sys/linux/net/ethers.3: Ditto.
975 * libc/sys/linux/net/getaddrinfo.3: Ditto.
976 * libc/sys/linux/net/gethostbydns.c: Ditto.
977 * libc/sys/linux/net/gethostbyht.c: Ditto.
978 * libc/sys/linux/net/gethostbyname.3: Ditto.
979 * libc/sys/linux/net/gethostbynis.c: Ditto.
980 * libc/sys/linux/net/gethostnamadr.c: Ditto.
981 * libc/sys/linux/net/getifaddrs.3: Ditto.
982 * libc/sys/linux/net/getifaddrs.c: Ditto.
983 * libc/sys/linux/net/getipnodebyname.3: Ditto.
984 * libc/sys/linux/net/getnameinfo.3: Ditto.
985 * libc/sys/linux/net/getnetbydns.c: Ditto.
986 * libc/sys/linux/net/getnetbyht.c: Ditto.
987 * libc/sys/linux/net/getnetbynis.c: Ditto.
988 * libc/sys/linux/net/getnetent.3: Ditto.
989 * libc/sys/linux/net/getnetnamadr.c: Ditto.
990 * libc/sys/linux/net/getprotoent.3: Ditto.
991 * libc/sys/linux/net/getprotoent.c: Ditto.
992 * libc/sys/linux/net/getprotoname.c: Ditto.
993 * libc/sys/linux/net/getservbyname.c: Ditto.
994 * libc/sys/linux/net/getservbyport.c: Ditto.
995 * libc/sys/linux/net/getservent.3: Ditto.
996 * libc/sys/linux/net/herror.c: Ditto.
997 * libc/sys/linux/net/hesiod.3: Ditto.
998 * libc/sys/linux/net/hesiod.c: Ditto.
999 * libc/sys/linux/net/if_indextoname.3: Ditto.
1000 * libc/sys/linux/net/inet.3: Ditto.
1001 * libc/sys/linux/net/inet6_option_space.3: Ditto.
1002 * libc/sys/linux/net/inet6_rthdr_space.3: Ditto.
1003 * libc/sys/linux/net/inet_makeaddr.c: Ditto.
1004 * libc/sys/linux/net/inet_net.3: Ditto.
1005 * libc/sys/linux/net/inet_network.c: Ditto.
1006 * libc/sys/linux/net/innetgr-stub.c: Ditto.
1007 * libc/sys/linux/net/ip6opt.c: Ditto.
1008 * libc/sys/linux/net/iso_addr.3: Ditto.
1009 * libc/sys/linux/net/iso_addr.c: Ditto.
1010 * libc/sys/linux/net/linkaddr.3: Ditto.
1011 * libc/sys/linux/net/linkaddr.c: Ditto.
1012 * libc/sys/linux/net/map_v4v6.c: Ditto.
1013 * libc/sys/linux/net/name6.c: Ditto.
1014 * libc/sys/linux/net/namespace.h: Ditto.
1015 * libc/sys/linux/net/ns.3: Ditto.
1016 * libc/sys/linux/net/ns_addr.c: Ditto.
1017 * libc/sys/linux/net/ns_ntoa.c: Ditto.
1018 * libc/sys/linux/net/nsdispatch.3: Ditto.
1019 * libc/sys/linux/net/nsdispatch.c: Ditto.
1020 * libc/sys/linux/net/nslexer.c: Ditto.
1021 * libc/sys/linux/net/nslexer.l: Ditto.
1022 * libc/sys/linux/net/nsparser.c: Ditto.
1023 * libc/sys/linux/net/nsparser.h: Ditto.
1024 * libc/sys/linux/net/nsparser.y: Ditto.
1025 * libc/sys/linux/net/rcmd.3: Ditto.
1026 * libc/sys/linux/net/rcmdsh.3: Ditto.
1027 * libc/sys/linux/net/res_mkupdate.c: Ditto.
1028 * libc/sys/linux/net/res_update.c: Ditto.
1029 * libc/sys/linux/net/resolver.3: Ditto.
1030 * libc/sys/linux/net/rthdr.c: Ditto.
1031 * libc/sys/linux/net/vars.c: Ditto.
1032 * libc/sys/linux/shlib-compat.h: New file.
1033 * libc/sys/linux/machine/i386/atomic.h: Ditto.
1034 * libc/sys/linux/net/XXX-lookup.c: Ditto.
1035 * libc/sys/linux/net/alias-lookup.c: Ditto.
1036 * libc/sys/linux/net/res_libc.c: Ditto.
1037 * libc/sys/linux/net/aliases.h: Ditto.
1038 * libc/sys/linux/net/check_pf.c: Ditto.
1039 * libc/sys/linux/net/databases.def: Ditto.
1040 * libc/sys/linux/net/digits_dots.c: Ditto.
1041 * libc/sys/linux/net/ether_aton.c: Ditto.
1042 * libc/sys/linux/net/ether_aton_r.c: Ditto.
1043 * libc/sys/linux/net/ether_hton.c: Ditto.
1044 * libc/sys/linux/net/ether_line.c: Ditto.
1045 * libc/sys/linux/net/ether_ntoa.c: Ditto.
1046 * libc/sys/linux/net/ether_ntoa_r.c: Ditto.
1047 * libc/sys/linux/net/ether_ntoh.c: Ditto.
1048 * libc/sys/linux/net/etherent.h: Ditto.
1049 * libc/sys/linux/net/ethers-lookup.c: Ditto.
1050 * libc/sys/linux/net/function.def: Ditto.
1051 * libc/sys/linux/net/getXXbyYY.c: Ditto.
1052 * libc/sys/linux/net/getXXbyYY_r.c: Ditto.
1053 * libc/sys/linux/net/getXXent.c: Ditto.
1054 * libc/sys/linux/net/getXXent_r.c: Ditto.
1055 * libc/sys/linux/net/getaliasent.c: Ditto.
1056 * libc/sys/linux/net/getaliasent_r.c: Ditto.
1057 * libc/sys/linux/net/getaliasname.c: Ditto.
1058 * libc/sys/linux/net/getaliasname_r.c: Ditto.
1059 * libc/sys/linux/net/gethstbyad.c: Ditto.
1060 * libc/sys/linux/net/gethstbyad_r.c: Ditto.
1061 * libc/sys/linux/net/gethstbynm.c: Ditto.
1062 * libc/sys/linux/net/gethstbynm2.c: Ditto.
1063 * libc/sys/linux/net/gethstbynm2_r.c: Ditto.
1064 * libc/sys/linux/net/gethstbynm_r.c: Ditto.
1065 * libc/sys/linux/net/gethstent.c: Ditto.
1066 * libc/sys/linux/net/gethstent_r.c: Ditto.
1067 * libc/sys/linux/net/getnetbyad.c: Ditto.
1068 * libc/sys/linux/net/getnetbyad_r.c: Ditto.
1069 * libc/sys/linux/net/getnetbynm.c: Ditto.
1070 * libc/sys/linux/net/getnetbynm_r.c: Ditto.
1071 * libc/sys/linux/net/getnetent.c: Ditto.
1072 * libc/sys/linux/net/getnetent_r.c: Ditto.
1073 * libc/sys/linux/net/getnetgrent.c: Ditto.
1074 * libc/sys/linux/net/getnetgrent_r.c: Ditto.
1075 * libc/sys/linux/net/getnssent.c: Ditto.
1076 * libc/sys/linux/net/getnssent_r.c: Ditto.
1077 * libc/sys/linux/net/getproto_r.c: Ditto.
1078 * libc/sys/linux/net/getprtent.c: Ditto.
1079 * libc/sys/linux/net/getprtent_r.c: Ditto.
1080 * libc/sys/linux/net/getprtname.c: Ditto.
1081 * libc/sys/linux/net/getprtname_r.c: Ditto.
1082 * libc/sys/linux/net/getrpcbyname.c: Ditto.
1083 * libc/sys/linux/net/getrpcbyname_r.c: Ditto.
1084 * libc/sys/linux/net/getrpcbynumber.c: Ditto.
1085 * libc/sys/linux/net/getrpcbynumber_r.c: Ditto.
1086 * libc/sys/linux/net/getrpcent.c: Ditto.
1087 * libc/sys/linux/net/getrpcent_r.c: Ditto.
1088 * libc/sys/linux/net/getservent_r.c: Ditto.
1089 * libc/sys/linux/net/getsrvbynm.c: Ditto.
1090 * libc/sys/linux/net/getsrvbynm_r.c: Ditto.
1091 * libc/sys/linux/net/getsrvbypt.c: Ditto.
1092 * libc/sys/linux/net/getsrvbypt_r.c: Ditto.
1093 * libc/sys/linux/net/grp-lookup.c: Ditto.
1094 * libc/sys/linux/net/herrno.c: Ditto.
1095 * libc/sys/linux/net/hosts-lookup.c: Ditto.
1096 * libc/sys/linux/net/ifaddrs.h: Ditto.
1097 * libc/sys/linux/net/ifreq.c: Ditto.
1098 * libc/sys/linux/net/ifreq.h: Ditto.
1099 * libc/sys/linux/net/in6_addr.c: Ditto.
1100 * libc/sys/linux/net/inet6_option.c: Ditto.
1101 * libc/sys/linux/net/inet_mkadr.c: Ditto.
1102 * libc/sys/linux/net/inet_net.c: Ditto.
1103 * libc/sys/linux/net/key-lookup.c: Ditto.
1104 * libc/sys/linux/net/local.h: Ditto.
1105 * libc/sys/linux/net/netgroup.h: Ditto.
1106 * libc/sys/linux/net/netgrp-lookup.c: Ditto.
1107 * libc/sys/linux/net/network-lookup.c: Ditto.
1108 * libc/sys/linux/net/not-cancel.h: Ditto.
1109 * libc/sys/linux/net/ns_samedomain.c: Ditto.
1110 * libc/sys/linux/net/nscd-types.h: Ditto.
1111 * libc/sys/linux/net/nss.h: Ditto.
1112 * libc/sys/linux/net/nsswitch.c: Ditto.
1113 * libc/sys/linux/net/nsswitch.h: Ditto.
1114 * libc/sys/linux/net/opensock.c: Ditto.
1115 * libc/sys/linux/net/proto-lookup.c: Ditto.
1116 * libc/sys/linux/net/pwd-lookup.c: Ditto.
1117 * libc/sys/linux/net/res_debug.h: Ditto.
1118 * libc/sys/linux/net/res_hconf.c: Ditto.
1119 * libc/sys/linux/net/res_hconf.h: Ditto.
1120 * libc/sys/linux/net/rexec.c: Ditto.
1121 * libc/sys/linux/net/rpc-lookup.c: Ditto.
1122 * libc/sys/linux/net/ruserpass.c: Ditto.
1123 * libc/sys/linux/net/service-lookup.c: Ditto.
1124 * libc/sys/linux/net/spwd-lookup.c: Ditto.
1125 * libc/sys/linux/net/nscd/nscd-client.h: Ditto.
1126 * libc/sys/linux/net/nscd/nscd_proto.h: Ditto.
1127
4962a945
EB
11282008-05-21 Eric Blake <ebb9@byu.net>
1129
ae47b14a
EB
1130 Optimize the generic strchr.
1131 * libc/string/strchr.c (strchr) [!__OPTIMIZE_SIZE__]: Pre-align
1132 data so unaligned searches aren't penalized. Special-case
1133 searching for 0.
1134
4962a945 1135 Optimize strchr for x86.
ae47b14a
EB
1136 * libc/machine/i386/strchr.S (strchr) [!__OPTIMIZE_SIZE__]:
1137 Pre-align data so unaligned searches aren't penalized.
1138 Special-case searching for 0.
4962a945 1139
cb1f8161
NC
11402008-05-20 Nick Clifton <nickc@redhat.com>
1141
1142 * libc/sys/sysnecv850/crt0.S (___dso_handle): Define (weak).
1143
a9309ff5
JJ
11442008-05-20 DJ Delorie <dj@redhat.com>
1145
1146 * libc/sys/sysnecv850/isatty.c (_isatty): Renamed from isatty.
4962a945 1147
26432b0b
JJ
11482008-05-14 Jeff Johnston <jjohnstn@redhat.com>
1149
1150 * libc/include/sys/reent.h: Change _REENT_INIT... macros to
1151 access macro parameter with parentheses around it.
1152
df93e6f1
MM
11532008-04-26 Mark Mitchell <mark@codesourcery.com>
1154
1155 * libc/include/stdint.h (SIZE_MIN): Remove.
1156 (SIZE_MAX): Define.
1157 * testsuite/newlib.stdlib/stdlib.exp: New.
1158 * testsuite/newlib.stdlib/size_max.c: Likewise.
1159
f77a1a88
EB
11602008-04-29 Eric Blake <ebb9@byu.net>
1161
1162 Fix 2008-04-14 regression in asprintf(ptr,"").
1163 * libc/stdio/asnprintf.c (asnprintf, _asnprintf_r): Avoid stdio
1164 baggage.
1165 * libc/stdio/asniprintf.c (asniprintf, _asniprintf_r): Likewise.
1166 * libc/stdio/asiprintf.c (asiprintf, _asiprintf_r): Likewise.
1167 * libc/stdio/vasniprintf.c (_vasniprintf_r): Likewise.
1168 * libc/stdio/vsnprintf.c (_vsnprintf_r): Likewise.
1169 * libc/stdio/vfprintf.c (_VFPRINTF_R) [STRING_ONLY]: Always malloc
1170 an initial buffer for asprintf.
1171
78970a51
CV
11722008-04-24 Corinna Vinschen <corinna@vinschen.de>
1173
1174 * libc/include/sys/stat.h: Guard at-functions with !__INSIDE_CYGWIN__.
1175 (fstatat): Fix type of third parameter.
1176
026f9d29
NC
11772008-04-25 Nick Clifton <nickc@redhat.com>
1178
1179 * libc/machine/arm/setjmp.S: Fix thumb2 support.
1180
51bef6a9
NC
11812008-04-24 Nick Clifton <nickc@redhat.com>
1182
1183 * libc/include/machine/ieeefp.h: Fix typo: _DOUBLE_IS_32_BITS
1184 should be _DOUBLE_IS_32BITS.
1185
0d02384a
CV
11862008-04-24 Corinna Vinschen <corinna@vinschen.de>
1187
1188 * libc/include/sys/stat.h (UTIME_NOW): Define for Cygwin.
1189 (UTIME_OMIT): Ditto.
1190 (utimensat): Declare for Cygwin.
1191 (futimens): Ditto.
1192
e2af45bf
JJ
11932008-04-23 Ken Werner <ken.werner@de.ibm.com>
1194
1195 * libc/include/_ansi.h: _LONG_LONG renamed to _LONG_LONG_TYPE.
1196 * libc/include/math.h: Likewise.
f77a1a88 1197
ca48eb65
CV
11982008-04-23 Corinna Vinschen <corinna@vinschen.de>
1199
1200 * libc/include/stdio.h (renameat): Declare for Cygwin.
1201 (symlinkat): Ditto.
1202 * libc/include/sys/unistd.h (readlink): Align declaration to POSIX.
1203 (faccessat): Declare for Cygwin.
1204 (fchownat): Ditto.
1205 (linkat): Ditto.
1206 (readlinkat): Ditto.
1207 * libc/include/sys/_default_fcntl.h (AT_FDCWD): Define for Cygwin.
1208 (AT_EACCESS): Ditto.
1209 (AT_SYMLINK_NOFOLLOW): Ditto.
1210 (AT_SYMLINK_FOLLOW): Ditto.
1211 (AT_REMOVEDIR): Ditto.
1212 (futimesat): Declare for Cygwin.
1213 (openat): Ditto.
1214 (unlinkat): Ditto.
1215 * libc/include/sys/stat.h (fchmodat): Ditto.
1216 (fstatat): Ditto.
1217 (mkdirat): Ditto.
1218 (mkfifoat): Ditto.
1219 (mknodat): Ditto.
1220
51bef6a9
NC
12212008-04-22 Nick Clifton <nickc@redhat.com>
1222
1223 * libc/machine/arm/setjmp.S: Add support for thumb2 multiple
1224 register load/store instructions.
1225
e9505050
JJ
12262008-04-16 Patrick Mansfield <patmans@us.ibm.com>
1227
1228 * libc/machine/spu/sys/errno.h: Use _impure_data, not _reent_data.
f77a1a88 1229
c2bd84bc
JJ
12302008-04-16 Patrick Mansfield <patmans@us.ibm.com>
1231
1232 * libc/machine/spu/impure.c: Add missing underscore to impure_data.
f77a1a88 1233
45b14289
JJ
12342008-04-14 Patrick Mansfield <patmans@us.ibm.com>
1235
1236 * libc/machine/spu/impure.c: New file, supply a non-static _impure_data.
f77a1a88 1237 * libc/machine/spu/Makefile.am: Add new file impure.c.
45b14289
JJ
1238 * libc/machine/spu/Makefile.in: Regenerate.
1239 * libc/machine/spu/sys/errno.h: Define errno to be _reent_data._errno.
f77a1a88 1240
eabd7de0
JJ
12412008-04-14 Jeff Johnston <jjohnstn@redhat.com>
1242
1243 * libc/stdio/Makefile.am: Build vfprintf.c and vfscanf.c with
1244 -DSTRING_ONLY defined with and without -DINTEGER_ONLY defined
1245 to build special versions for sprintf/sscanf family functions.
1246 * libc/stdio/Makefile.in: Regenerated.
f77a1a88
EB
1247 * libc/stdio/vfprintf.c[STRING_ONLY][INTEGER_ONLY](_VFPRINTF_R):
1248 Redefine to be _svfiprintf_r which is optimized to work with siprintf
eabd7de0
JJ
1249 family of functions (i.e. no I/O) and does not support floating-point.
1250 [STRING_ONLY][!INTEGER_ONLY](_VFPRINTF_R): Redefine to be
1251 _svfprintf_r which is optimized to work with sprintf family of
1252 functions and not use I/O.
f77a1a88 1253 [STRING_ONLY](__sprint_r): New string only version of static function.
eabd7de0
JJ
1254 designed to work with sprintf family of functions.
1255 * libc/stdio/vfscanf.c[STRING_ONLY][INTEGER_ONLY](_SVFSCANF_R):
1256 Redefine to be _ssvfiscanf_r which is optimized to work with siscanf
1257 family of functions (i.e. no I/O) and no float-point support.
1258 [STRING_ONLY][!INTEGER_ONLY](_SVFSCANF_R): Redefine to be
1259 __ssvfscanf_r which is optimized to work with sscanf family of
1260 functions and does not require I/O functions.
1261 * libc/stdio/asprintf.c: Call _svfprintf_r instead of _vfprintf_r.
1262 * libc/stdio/snprintf.c: Ditto.
1263 * libc/stdio/sprintf.c: Ditto.
1264 * libc/stdio/vasnprintf.c: Ditto.
1265 * libc/stdio/vasprintf.c: Ditto.
1266 * libc/stdio/siprintf.c: Call _svfiprintf_r instead of _vfiprintf_r.
1267 * libc/stdio/sniprintf.c: Ditto.
1268 * libc/stdio/vasiprintf.c: Ditto.
1269 * libc/stdio/vsiprintf.c: Ditto.
1270 * libc/stdio/vsniprintf.c: Ditto.
1271 * libc/stdio/vsprintf.c: Ditto.
1272 * libc/stdio/local.h: Add prototypes for _svfprintf_r, _svfiprintf_r,
1273 _ssvfscanf_r, and _ssvfiscanf_r.
1274 * libc/stdio/sscanf.c: Call _ssvfscanf_r instead of _svfscanf_r.
1275 * libc/stdio/vsscanf.c: Ditto.
1276 * libc/stdio/siscanf.c: Call _ssvfiscanf_r instead of _svfiscanf_r.
1277 * libc/stdio/vsiscanf.c: Ditto.
1278
6f810581
DD
12792008-04-04 DJ Delorie <dj@redhat.com>
1280
1281 * libm/machine/spu/configure: Regenerate with autoconf 2.61.
1282 * libc/sys/configure: Regenerate with autoconf 2.61.
1283 * libc/machine/configure: Regenerate with autoconf 2.61.
1284
bd6e30d5
JJ
12852008-04-01 Patrick Mansfield <patmans@us.ibm.com>
1286
1287 * libc/machine/spu/memcmp.c: New file for SPU optimized memcmp.
1288 * libc/machine/spu/strncmp.h: New file supply _strncmp_internal.
1289 * libc/machine/spu/Makefile.am: Add memcmp.c.
1290 * libc/machine/spu/Makefile.in: Rebuild.
1291 * libc/machine/spu/strncmp.c: Use _strncmp_internal.
1292
71f3a8f5
JJ
12932008-04-01 Patrick Mansfield <patmans@us.ibm.com>
1294
1295 * configure.host: Build SPU with -DREENTRANT_SYSCALLS_PROVIDED and
1296 -DMISSING_SYSCALL_NAMES.
1297
1d4a4944
JJ
12982008-04-01 Patrick Mansfield <patmans@us.ibm.com>
1299
1300 * libc/machine/spu/Makefile.am: Add assert.c.
1301 * libc/machine/spu/Makefile.in: Regenerate.
1302 * libc/machine/spu/assert.c: New file.
1303
3ab380aa
JJ
13042008-03-27 Patrick Mansfield <patmans@us.ibm.com>
1305
1306 * libc/include/reent.h: Define _func_r functions in this file to
1307 func if REENTRANT_SYSCALLS_PROVIDED and MISSING_SYSCALL_NAMES are
1308 defined.
f77a1a88 1309
4af0c5e8
CV
13102008-03-27 Corinna Vinschen <corinna@vinschen.de>
1311
1312 * libc/include/sys/unistd.h: Declare lockf(2) and define lockf
1313 constants when building for Cygwin.
1314
88348faf
JJ
13152008-03-11 Jeff Johnston <jjohnstn@redhat.com>
1316
d84985f7 1317 * libc/stdio/rgetc.c (__srget_r): Invoke CHECK_INIT to ensure
88348faf
JJ
1318 stdin gets resolved properly before refilling.
1319
c6228428
JJ
13202008-03-07 Jeff Johnston <jjohnstn@redhat.com>
1321
1322 * libc/include/getopt.h: Hide newlib extensions under
1323 the __need_getopt_newlib flag.
1324 * libc/stdlib/getopt.c: #define __need_getopt_newlib before including
1325 getopt.h. Put entire code under !HAVE_GETOPT to support platforms
1326 with their own getopt implementation.
1327 * configure.host: Specify HAVE_GETOPT for x86-linux.
1328
0382d267
JJ
13292008-03-07 Jeff Johnston <jjohnstn@redhat.com>
1330
1331 * libc/include/sys/reent.h(_REENT_SMALL_CHECK_INIT): Specify
1332 this macro completely instead of referring to CHECK_STD_INIT which
1333 is only found in libc/stdio/local.h.
1334 * libc/stdio/dprintf.c: Add include of local.h.
1335 * libc/stdio/vdprintf.c: Ditto.
1336 * libc/stdio/vdiprintf.c: Ditto.
1337
beb0ab64
EB
13382008-03-04 Eric Blake <ebb9@byu.net>
1339
1340 Fix strtod("nan()", ptr).
1341 * libc/stdlib/gdtoa-hexnan.c (hexnan): When the optional
1342 n-char-sequence is omitted, still parse the ().
1343
9ae00e9e
EB
13442008-03-03 Eric Blake <ebb9@byu.net>
1345
1346 Fix ftell bug after ungetc.
1347 * libc/stdio/ftell.c (_ftell_r): Don't flush ungetc buffer on
1348 ftell.
1349 * libc/stdio64/ftello64.c (_ftello64_r): Likewise.
1350 * libc/stdio/fflush.c (_fflush_r): Clear unget buffer when
1351 repositioning underlying fd offset.
1352
be62101c
JJ
13532008-03-02 Jeff Johnston <jjohnstn@redhat.com>
1354
1355 * libc/include/getopt.h (no_argument): Added for glibc compatibility.
1356 (required_argument, optional_argument): Ditto.
1357
76ff710c
JJ
13582008-02-29 Gregory Pietsch <gpietsch@comcast.net>
1359
1360 * libc/stdlib/getopt.c (getopt_internal): Rewrite to accept
1361 data area so as to support reentrant calls. Change all callers
1362 to fill in data area with global values and restore any changes
1363 to the global values after call.
1364 (__getopt_r, __getopt_long_r, __getopt_long_only_r): New routines
1365 to support reentrancy that add a data area argument.
1366 * libc/include/getopt.h: Add new _r routines and provide macros
1367 so they can be called with using double-underscores.
1368
7a44c13e
EB
13692008-02-21 Eric Blake <ebb9@byu.net>
1370
1371 Fix strtod("-0x", NULL).
1372 * libc/stdlib/strtod.c (_strtod_r): Fall back to 0 if hex parse
1373 fails.
1374
de20111e
JJ
13752008-02-12 Jeff Johnston <jjohnstn@redhat.com>
1376
1377 * libc/machine/powerpc/vfprintf.c (_VFPRINTF_R): Prepare
1378 for user specifying --disable-newlib-io-long-long on configure.
1379 Call _fflush_r instead of fflush. For _mbtowc_r, pass the
1380 reentrant pointer passed in rather than _REENT.
1381
f46f40b5
JJ
13822008-02-12 Peter Rosin <peda@lysator.liu.se>
1383
1384 * libc/stdlib/getopt.c (getopt_internal): Handle optional
1385 arguments better for long options and short options not
1386 appearing as the first option in a sequence.
1387
74d928bf
JJ
13882008-02-11 Patrick Mansfield <patmans@us.ibm.com>
1389
1390 * libc/machine/spu/straddr.h: New file, supplies _straddr.
1391 * libc/machine/spu/strcat.c: Use _straddr and _strcpy.
1392 * libc/machine/spu/strcpy.c: Use _strcpy.
1393 * libc/machine/spu/strcpy.h: Supply _strcpy for optimized SPU
1394 str[n]cpy and str[n]cat.
1395 * libc/machine/spu/strncat.c: Use _straddr and _strcpy.
1396 * libc/machine/spu/strncpy.c: Use _strcpy.
7a44c13e 1397
9b924fc3
JJ
13982008-02-11 Patrick Mansfield <patmans@us.ibm.com>
1399
1400 * libc/machine/spu/strlen.c: Remove the len variable and unneeded
1401 calculation of its value.
7a44c13e 1402
77ec26b0
HPN
14032008-01-25 Hans-Peter Nilsson <hp@bitrange.com>
1404
1405 * libc/sys/mmixware/isatty.c (_isatty): Renamed from isatty.
1406 Make ISO C.
1407
226f5a32
DD
14082008-01-21 DJ Delorie <dj@redhat.com>
1409
1410 * libc/sys/sh/syscalls.c (_isatty): New.
1411
cece11c5
JJ
14122008-01-21 Neal H. Walfield <neal@gnu.org>
1413
1414 * Makefile.am (crt1.o): Use correct source.
1415 * Makefile.in: Regenerated.
1416
dc26a86f
EB
14172008-01-15 Eric Blake <ebb9@byu.net>
1418
1419 * libc/string/Makefile.am (ELIX_2_SOURCES): Fix definition.
1420 * libc/string/Makefile: Regenerate.
1421
12df8a5b
CV
14222008-01-15 Corinna Vinschen <corinna@vinschen.de>
1423
1424 * libc/include/machine/setjmp.h (__SIGMASK_FUNC): Define as
1425 pthread_sigmask or sigprocmask depending on _POSIX_THREADS.
1426 (sigsetjmp): Use __SIGMASK_FUNC.
1427 (siglongjmp): Ditto.
1428 (_setjmp): Define as macro.
1429 (_longjmp): Ditto.
1430
40617efc
EB
14312008-01-11 Eric Blake <ebb9@byu.net>
1432
1433 Make strstr and strcasestr O(n), not O(n^2); add memmem.
1434 * libc/string/str-two-way.h: New file.
1435 * libc/string/memmem.c (memmem): New file.
1436 * libc/include/string.h (memmem): Declare for all platforms.
1437 * libc/string/strstr.c (strstr): Provide O(n) implementation when
1438 not optimizing for space.
1439 * libc/string/strcasestr.c (strcasestr): Likewise.
1440 * libc/string/Makefile.am (ELIX_SOURCES): Rename to...
1441 (ELIX_2_SOURCES): ...this.
1442 (ELIX_4_SOURCES): New category, for memmem.
1443 (lib_a_SOURCES, libstring_la_SOURCES): Build new file.
1444 (CHEWOUT_FILES): Build documentation for memmem.
1445 * libc/string/strings.tex: Include new docs.
1446
ceb32a18
JJ
14472008-01-08 Jeff Johnston <jjohnstn@redhat.com>
1448
1449 * libc/machine/m68k/memcpy.S: Remove % from register references
1450 as this is already handled by m68kasm.h.
1451 * libc/machine/m68k/memset.S: Ditto.
1452
a3211370
JJ
14532008-01-07 Jeff Johnston <jjohnstn@redhat.com>
1454
1455 * libc/machine/m68k/m68kasm.h: New file.
1456 * libc/machine/m68k/setjmp.S: Remove common definitions and
1457 place in m68kasm.h. Include "m68kasm.h".
1458 * libc/machine/m68k/memcpy.S: Include "m68kasm.h" and use
1459 SYM() macro when referencing function name.
1460 * libc/machine/m68k/memset.S: Ditto.
1461
a639937a
JJ
14622008-01-03 Jeff Johnston <jjohnstn@redhat.com>
1463
1464 Make isatty syscall handling consistent with other newlib syscalls.
1465
1466 * libc/include/_syslist.h: Add _isatty.
1467 * libc/include/reent.h: Add _isatty_r.
1468 * libc/include/sys/unistd.h: Add _isatty.
1469 * libc/posix/Makefile.am: Add new _isatty.c file.
1470 * libc/posix/Makefile.in: Regenerated.
1471 * libc/posix/_isatty.c: New file.
1472 * libc/posix/isatty.c: Changed to call _isatty().
1473 * libc/reent/Makefile.am: Add new isattyr.c file.
1474 * libc/reent/Makefile.in: Regenerated.
1475 * libc/reent/isattyr.c: New file.
1476 * libc/stdio/freopen.c: Changed to call _isatty_r().
1477 * libc/stdio/makebuf.c: Ditto.
1478 * libc/sys/a29khif/_isatty.S: Change isatty to _isatty.
1479 * libc/sys/arc/isatty.c: Ditto.
1480 * libc/sys/arm/syscalls.c: Ditto.
1481 * libc/sys/d10v/syscalls.c: Ditto.
1482 * libc/sys/h8300hms/syscalls.c: Ditto.
1483 * libc/sys/h8500hms/syscalls.c: Ditto.
1484 * libc/sys/linux/Makefile.am: Add new isatty.c file.
1485 * libc/sys/linux/Makefile.in: Regenerated.
1486 * libc/sys/linux/isatty.c: New file.
1487 * libc/syscalls/Makefile.am: Add new sysisatty.c file.
1488 * libc/syscalls/Makefile.in: Regenerated.
1489 * libc/syscalls/sysisatty.c: New file.
1490
7c8bd7a0
JJ
14912008-01-02 Jeff Johnston <jjohnstn@redhat.com>
1492
1493 * libc/syscalls/sysclose.c: Always call reentrant version of the
1494 underlying syscall since one is guaranteed to exist in libc/reent.
1495 * libc/syscalls/sysexecve.c: Ditto.
1496 * libc/syscalls/sysfcntl.c: Ditto.
1497 * libc/syscalls/sysfork.c: Ditto.
1498 * libc/syscalls/sysfstat.c: Ditto.
1499 * libc/syscalls/sysgetpid.c: Ditto.
1500 * libc/syscalls/sysgettod.c: Ditto.
1501 * libc/syscalls/syskill.c: Ditto.
1502 * libc/syscalls/syslink.c: Ditto.
1503 * libc/syscalls/syslseek.c: Ditto.
1504 * libc/syscalls/sysopen.c: Ditto.
1505 * libc/syscalls/sysread.c: Ditto.
1506 * libc/syscalls/syssbrk.c: Ditto.
1507 * libc/syscalls/sysstat.c: Ditto.
1508 * libc/syscalls/systimes.c: Ditto.
1509 * libc/syscalls/sysunlink.c: Ditto.
1510 * libc/syscalls/syswait.c: Ditto.
1511 * libc/syscalls/syswrite.c: Ditto.
1512
26b84293
JJ
15132007-12-19 Jeff Johnston <jjohnstn@redhat.com>
1514
7a44c13e
EB
1515 * NEWS: Update with 1.16.0 info.
1516 * README: Ditto.
1517 * acinclude.m4: Change version number to 1.16.0.
1518 * aclocal.m4: Regenerated.
1519 * configure: Ditto.
1520 * doc/aclocal.m4: Ditto.
1521 * doc/configure: Ditto.
1522 * libc/*/aclocal.m4: Ditto.
1523 * libc/*/configure: Ditto.
1524 * libc/libc.texinfo: Ditto.
1525 * libm/*/aclocal.m4: Ditto.
1526 * libm/*/configure: Ditto.
1527 * libm/libm.texinfo: Ditto.
1528 * libc/sys/linux/shared.ld: Add VERS_1.16.
26b84293 1529
6af69de3
JJ
15302007-12-19 Jeff Johnston <jjohnstn@redhat.com>
1531
1532 * libc/string/strcasestr.c: Remove id macro.
1533 * libc/sys/linux/linuxthreads/attr.c: Fix up sched_priority
1534 field reference to be __sched_priority.
1535 * libc/sys/linux/linuxthreads/joinrace.c: Ditto.
1536 * libc/sys/linux/linuxthreads/manager.c: Ditto.
1537 * libc/sys/linux/stdlib/collate.c: Remove id macro.
1538 * libc/sys/linux/stdlib/collcmp.c: Ditto.
1539 * libc/sys/linux/stdlib/engine.c: Ditto.
1540 * libc/sys/linux/stdlib/fnmatch.c: Ditto.
1541 * libc/sys/linux/stdlib/glob.c: Ditto.
1542 * libc/sys/linux/stdlib/reallocf.c: Ditto.
1543 * libc/sys/linux/stdlib/regcomp.c: Ditto.
1544 * libc/sys/linux/stdlib/regerror.c: Ditto.
1545 * libc/sys/linux/stdlib/regexec.c: Ditto.
1546 * libc/sys/linux/stdlib/regfree.c: Ditto.
1547 * libc/sys/linux/sys/cdefs.h: Replace with latest version.
1548 * libc/sys/linux/include/argp.h: Ditto.
1549 * libc/sys/linux/sys/libc-lock.h: New file.
1550 * libc/sys/linux/sys/stdint.h: Ditto.
1551 * libc/sys/linux/include/sched.h: New file.
1552
3cc8a378
JJ
15532007-12-19 Dave Korn <dave.korn@artimi.com>
1554 Jeff Johnston <jjohnstn@redhhat.com>
1555
1556 * libc/include/_ansi.h: Add _LONG_LONG definition.
1557 * libc/include/math.h (llrint, llrintf, rintl, lrintl, llrintl): Add
1558 prototypes.
1559 * libc/machine/i386/machine/fastmath.h: Add support for new i386
1560 fast math versions of rint, lrint, and llrint family functions.
1561 * libm/machine/i386/Makefile.am: Add new files.
1562 * libm/machine/i386/Makefile.in: Regenerated.
1563 * libm/machine/i386/f_llrint.c, libm/machine/i386/f_lrint.c,
1564 libm/machine/i386/f_rint.c, libm/machine/i386/f_llrintf.c,
1565 libm/machine/i386/f_lrintf.c, libm/machine/i386/f_rintf.c,
1566 libm/machine/i386/f_llrintl.c, libm/machine/i386/f_lrintl.c,
1567 libm/machine/i386/f_rintl.c: New files with fast math implementations.
1568
41e94f24
JJ
15692007-12-19 Jeff Johnston <jjohnstn@redhat.com>
1570
1571 * libc/include/sys/features.h: Add checks for C90 compilers using
1572 -ansi.
1573
ac26b727
CV
15742007-12-19 Corinna Vinschen <corinna@vinschen.de>
1575
1576 * libc/include/wchar.h: Add prototypes for wcpcpy and wcpncpy.
1577 * libc/string/Makefile.am (ELIX_SOURCES): Add wcpcpy.c and
1578 wcpncpy.c.
1579 (CHEWOUT_FILES): Add wcpcpy.def and wcpncpy.def.
1580 * libc/string/Makefile.in: Regenerate.
1581 * libc/string/wcpcpy.c: New file.
1582 * libc/string/wcpncpy.c: New file.
1583 * libc/string/wcstrings.tex: Add wcpcpy and wcpncpy.
1584
478df8bb
CV
15852007-12-19 Corinna Vinschen <corinna@vinschen.de>
1586
1587 * libc/stdio/vfprintf.c (_VFPRINTF_R): Use correct pointer in call to
1588 _wcsrtombs_r.
1589
60bef55d
JJ
15902007-11-19 Nick Clifton <nickc@redhat.com>
1591
1592 * libc/machine/mn10300/Makefile.am (CCASFLAGS): Add -Wa,--gdwarf-2.
1593 * libc/machine/mn10300/Makefile.in: Regenerate.
1594 * libc/machine/mn10300/memchar.S: Remove redundant labels. Add
1595 .debug_frame section.
1596 * libc/machine/mn10300/memcmp.S: Likewise.
1597 * libc/machine/mn10300/memcpy.S: Likewise.
1598 * libc/machine/mn10300/memset.S: Likewise.
1599 * libc/machine/mn10300/strchr.S: Likewise.
1600 * libc/machine/mn10300/strcmp.S: Likewise.
1601 * libc/machine/mn10300/strcpy.S: Likewise.
1602 * libc/machine/mn10300/strlen.S: Likewise.
1603
16042007-11-15 Jeff Johnston <jjohnstn@redhat.com>
1605
1606 * libc/include/sys/_default_fcntl.h: New header file that
1607 is the default version of sys/fcntl.h.
1608 * libc/include/sys/fcntl.h: Changed to simply include
1609 sys/_default_fcntl.h.
1610 * libc/sys/arm/sys/fcntl.h: New file that includes
1611 sys/_default_fcntl.h and defines O_BINARY.
1612
478df8bb 16132007-11-08 Corinna Vinschen <corinna@vinschen.de>
815774e8
CV
1614
1615 * libc/include/sys/unistd.h: Remove Cygwin definition of MAXPATHLEN.
1616
7b4cad4a
DB
16172007-11-07 Dave Brolley <brolley@redhat.com>
1618
1619 * libc/machine/configure: Regenerated to pick up mep-elf changes.
40617efc 1620
7b4cad4a
DB
1621 * Contribute mep-elf from Red Hat
1622 2006-10-27 DJ Delorie <dj@redhat.com>
1623
1624 * libc/include/machine/setjmp.h: Add MeP support.
1625
1626 2003-04-17 DJ Delorie <dj@redhat.com>
1627
1628 * configure.host (mep-*-*): Support "long long" type.
1629
1630 2001-06-06 DJ Delorie <dj@redhat.com>
1631
1632 * libc/include/machine/ieeefp.h (mep): Support little endian too.
1633
1634 2001-05-14 DJ Delorie <dj@redhat.com>
1635
1636 * configure.host: Add mep's machine_dir.
1637 * libc/include/setjmp.h: Add mep support.
1638 * libc/machine/mep: New.
1639 * libc/machine/mep/setjmp.S: New, support mep's setjmp/longjmp.
1640
1641 2001-05-04 DJ Delorie <dj@redhat.com>
1642
1643 * configure.host: Add mep.
1644 * libc/include/machine/ieeefp.h: Ditto.
1645
69bfb481
DD
16462007-10-31 DJ Delorie <dj@redhat.com>
1647
1648 * libc/signal/signal.c (_raise_r): Don't attempt to initialize the
1649 signal table, just use a default, in case initialization cause
1650 recursion.
1651
2a3a02a6
JJ
16522007-10-23 Jeff Johnston <jjohnstn@redhat.com>
1653
1654 * libc/stdlib/wcstombs_r.c: Add SUSV2 support for calculating
1655 size if output buffer is NULL.
1656
70317d85
JJ
16572007-10-17 Jeff Johnston <jjohnstn@redhat.com>
1658
1659 * libm/mathfp/s_logarithm.c: Fix error introduced by previous
1660 fix when handling negative input values. Make function
1661 consistent with math directory and glibc version such that
1662 inf and nan values return inf and nan respectively with no
1663 errno setting.
1664 * libm/mathfp/sf_logarithm.c: Ditto.
1665 * libm/math/w_log.c: Set errno to ERANGE when input is 0.0.
1666 * libm/math/wf_log.c: Ditto.
1667 * libm/math/w_log10.c: Ditto.
1668 * libm/math/wf_log10.c: Ditto.
1669
923f9573
JJ
16702007-10-17 Jeff Johnston <jjohnstn@redhat.com>
1671
1672 * libm/mathfp/s_logarithm.c: Fix case where input is 0 to
1673 return -inf.
1674 * libm/mathfp/sf_logarithm.c: Ditto.
1675
8b630840
JJ
16762007-10-17 Jeff Johnston <jjohnstn@redhat.com>
1677
1678 * libc/machine/i386/machine/fastmath.h: New file.
1679
c99e78b8
EB
16802007-10-13 Eric Blake <ebb9@byu.net>
1681
1682 * libc/stdio/vfprintf.c (_VFPRINTF_R) [__OPTIMIZE_SIZE__]:
1683 Correctly nest else within conditionals.
1684 Reported by Artur Lipowski.
1685
97f0a0ec
NC
16862007-10-09 Nick Clifton <nickc@redhat.com>
1687
1688 * libc/sys/linux/dl/do-lookup.h (FCT): Support symbols with
1689 the STT_COMMON type.
1690
b7bc4ccc
BE
16912007-10-09 Ben Elliston <bje@au.ibm.com>
1692
1693 * libm/machine/spu/headers/acosd2.h: Include spu_intrinsics.h
1694 before simdmath.h to get a definition for `vector'.
1695 * libm/machine/spu/headers/asind2.h: Likewise.
1696
1671fbe1
JJ
16972007-09-28 Patrick Mansfield <patmans@us.ibm.com>
1698
1699 * libm/machine/spu/headers/dom_chkd_less_than.h: New file.
1700 * libm/machine/spu/headers/dom_chkd_negone_one.h: Ditto.
1701 * libm/machine/spu/headers/dom_chkf_less_than.h: Ditto.
1702 * libm/machine/spu/headers/dom_chkf_negone_one.h: Ditto.
1703 * libm/machine/spu/headers/acos.h: Add domain check.
1704 * libm/machine/spu/headers/acosf.h: Ditto.
1705 * libm/machine/spu/headers/acosh.h: Ditto.
1706 * libm/machine/spu/headers/acoshf.h: Ditto.
1707 * libm/machine/spu/headers/asin.h: Ditto.
1708 * libm/machine/spu/headers/asinf.h: Ditto.
1709 * libm/machine/spu/headers/atanh.h: Ditto.
1710 * libm/machine/spu/headers/atanhf.h: Ditto.
1711 * libm/machine/spu/headers/fmod.h: Ditto.
1712 * libm/machine/spu/headers/fmodf.h: Ditto.
1713 * libm/machine/spu/headers/log.h: Ditto.
1714 * libm/machine/spu/headers/log10.h: Ditto.
1715 * libm/machine/spu/headers/log1p.h: Ditto.
1716 * libm/machine/spu/headers/log1pf.h: Ditto.
1717 * libm/machine/spu/headers/log2.h: Ditto.
1718 * libm/machine/spu/headers/log2f.h: Ditto.
1719 * libm/machine/spu/headers/sqrt.h: Ditto.
1720 * libm/machine/spu/headers/sqrtf.h: Ditto.
1721 * libm/machine/spu/headers/tgamma.h: Ditto.
1722 * libm/machine/spu/headers/tgammaf.h: Ditto.
1723
e30a7b84
JJ
17242007-09-28 Patrick Mansfield <patmans@us.ibm.com>
1725
1726 * libm/machine/spu/Makefile.am: Add new C files.
1727 * libm/machine/spu/Makefile.in: Regenerate.
1728 * libm/machine/spu/headers/acos.h: New file.
1729 * libm/machine/spu/headers/acosd2.h: Ditto.
1730 * libm/machine/spu/headers/acosf.h: Ditto.
1731 * libm/machine/spu/headers/acosf4.h: Ditto.
1732 * libm/machine/spu/headers/acosh.h: Ditto.
1733 * libm/machine/spu/headers/acoshd2.h: Ditto.
1734 * libm/machine/spu/headers/acoshf.h: Ditto.
1735 * libm/machine/spu/headers/acoshf4.h: Ditto.
1736 * libm/machine/spu/headers/asin.h: Ditto.
1737 * libm/machine/spu/headers/asind2.h: Ditto.
1738 * libm/machine/spu/headers/asinf.h: Ditto.
1739 * libm/machine/spu/headers/asinf4.h: Ditto.
1740 * libm/machine/spu/headers/asinh.h: Ditto.
1741 * libm/machine/spu/headers/asinhd2.h: Ditto.
1742 * libm/machine/spu/headers/asinhf.h: Ditto.
1743 * libm/machine/spu/headers/asinhf4.h: Ditto.
1744 * libm/machine/spu/headers/atan.h: Ditto.
1745 * libm/machine/spu/headers/atan2.h: Ditto.
1746 * libm/machine/spu/headers/atan2d2.h: Ditto.
1747 * libm/machine/spu/headers/atan2f.h: Ditto.
1748 * libm/machine/spu/headers/atan2f4.h: Ditto.
1749 * libm/machine/spu/headers/atand2.h: Ditto.
1750 * libm/machine/spu/headers/atanf4.h: Ditto.
1751 * libm/machine/spu/headers/atanh.h: Ditto.
1752 * libm/machine/spu/headers/atanhd2.h: Ditto.
1753 * libm/machine/spu/headers/atanhf.h: Ditto.
1754 * libm/machine/spu/headers/atanhf4.h: Ditto.
1755 * libm/machine/spu/headers/cos.h: Ditto.
1756 * libm/machine/spu/headers/cos_sin.h: Ditto.
1757 * libm/machine/spu/headers/cosd2.h: Ditto.
1758 * libm/machine/spu/headers/cosf.h: Ditto.
1759 * libm/machine/spu/headers/cosf4.h: Ditto.
1760 * libm/machine/spu/headers/cosh.h: Ditto.
1761 * libm/machine/spu/headers/coshd2.h: Ditto.
1762 * libm/machine/spu/headers/coshf.h: Ditto.
1763 * libm/machine/spu/headers/coshf4.h: Ditto.
1764 * libm/machine/spu/headers/divd2.h: Ditto.
1765 * libm/machine/spu/headers/divf4.h: Ditto.
1766 * libm/machine/spu/headers/erf.h: Ditto.
1767 * libm/machine/spu/headers/erf_utils.h: Ditto.
1768 * libm/machine/spu/headers/erfc.h: Ditto.
1769 * libm/machine/spu/headers/erfcd2.h: Ditto.
1770 * libm/machine/spu/headers/erfcf.h: Ditto.
1771 * libm/machine/spu/headers/erfcf4.h: Ditto.
1772 * libm/machine/spu/headers/erfd2.h: Ditto.
1773 * libm/machine/spu/headers/erff.h: Ditto.
1774 * libm/machine/spu/headers/erff4.h: Ditto.
1775 * libm/machine/spu/headers/exp.h: Ditto.
1776 * libm/machine/spu/headers/exp2.h: Ditto.
1777 * libm/machine/spu/headers/exp2d2.h: Ditto.
1778 * libm/machine/spu/headers/exp2f4.h: Ditto.
1779 * libm/machine/spu/headers/expd2.h: Ditto.
1780 * libm/machine/spu/headers/expf4.h: Ditto.
1781 * libm/machine/spu/headers/expm1.h: Ditto.
1782 * libm/machine/spu/headers/expm1d2.h: Ditto.
1783 * libm/machine/spu/headers/expm1f.h: Ditto.
1784 * libm/machine/spu/headers/expm1f4.h: Ditto.
1785 * libm/machine/spu/headers/floord2.h: Ditto.
1786 * libm/machine/spu/headers/floorf4.h: Ditto.
1787 * libm/machine/spu/headers/hypot.h: Ditto.
1788 * libm/machine/spu/headers/hypotd2.h: Ditto.
1789 * libm/machine/spu/headers/hypotf.h: Ditto.
1790 * libm/machine/spu/headers/hypotf4.h: Ditto.
1791 * libm/machine/spu/headers/isnan.h: Ditto.
1792 * libm/machine/spu/headers/isnand2.h: Ditto.
1793 * libm/machine/spu/headers/isnanf.h: Ditto.
1794 * libm/machine/spu/headers/isnanf4.h: Ditto.
1795 * libm/machine/spu/headers/ldexpd2.h: Ditto.
1796 * libm/machine/spu/headers/ldexpf4.h: Ditto.
1797 * libm/machine/spu/headers/lgamma.h: Ditto.
1798 * libm/machine/spu/headers/lgammad2.h: Ditto.
1799 * libm/machine/spu/headers/lgammaf.h: Ditto.
1800 * libm/machine/spu/headers/lgammaf4.h: Ditto.
1801 * libm/machine/spu/headers/log.h: Ditto.
1802 * libm/machine/spu/headers/log10.h: Ditto.
1803 * libm/machine/spu/headers/log10d2.h: Ditto.
1804 * libm/machine/spu/headers/log1p.h: Ditto.
1805 * libm/machine/spu/headers/log1pd2.h: Ditto.
1806 * libm/machine/spu/headers/log1pf.h: Ditto.
1807 * libm/machine/spu/headers/log1pf4.h: Ditto.
1808 * libm/machine/spu/headers/log2.h: Ditto.
1809 * libm/machine/spu/headers/log2d2.h: Ditto.
1810 * libm/machine/spu/headers/log2f4.h: Ditto.
1811 * libm/machine/spu/headers/logbf.h: Ditto.
1812 * libm/machine/spu/headers/logbf4.h: Ditto.
1813 * libm/machine/spu/headers/logd2.h: Ditto.
1814 * libm/machine/spu/headers/logf4.h: Ditto.
1815 * libm/machine/spu/headers/nearbyintf.h: Ditto.
1816 * libm/machine/spu/headers/nearbyintf4.h: Ditto.
1817 * libm/machine/spu/headers/nextafter.h: Ditto.
1818 * libm/machine/spu/headers/nextafterd2.h: Ditto.
1819 * libm/machine/spu/headers/nextafterf.h: Ditto.
1820 * libm/machine/spu/headers/nextafterf4.h: Ditto.
1821 * libm/machine/spu/headers/pow.h: Ditto.
1822 * libm/machine/spu/headers/powd2.h: Ditto.
1823 * libm/machine/spu/headers/powf.h: Ditto.
1824 * libm/machine/spu/headers/powf4.h: Ditto.
1825 * libm/machine/spu/headers/recipd2.h: Ditto.
1826 * libm/machine/spu/headers/recipf4.h: Ditto.
1827 * libm/machine/spu/headers/rintf.h: Ditto.
1828 * libm/machine/spu/headers/rintf4.h: Ditto.
1829 * libm/machine/spu/headers/scalbnf4.h: Ditto.
1830 * libm/machine/spu/headers/signbit.h: Ditto.
1831 * libm/machine/spu/headers/signbitd2.h: Ditto.
1832 * libm/machine/spu/headers/simdmath.h: Ditto.
1833 * libm/machine/spu/headers/sin.h: Ditto.
1834 * libm/machine/spu/headers/sincos.h: Ditto.
1835 * libm/machine/spu/headers/sincosd2.h: Ditto.
1836 * libm/machine/spu/headers/sincosf.h: Ditto.
1837 * libm/machine/spu/headers/sincosf4.h: Ditto.
1838 * libm/machine/spu/headers/sind2.h: Ditto.
1839 * libm/machine/spu/headers/sinf.h: Ditto.
1840 * libm/machine/spu/headers/sinf4.h: Ditto.
1841 * libm/machine/spu/headers/sinh.h: Ditto.
1842 * libm/machine/spu/headers/sinhd2.h: Ditto.
1843 * libm/machine/spu/headers/sinhf.h: Ditto.
1844 * libm/machine/spu/headers/sinhf4.h: Ditto.
1845 * libm/machine/spu/headers/sqrtd2.h: Ditto.
1846 * libm/machine/spu/headers/sqrtf.h: Ditto.
1847 * libm/machine/spu/headers/sqrtf4.h: Ditto.
1848 * libm/machine/spu/headers/tan.h: Ditto.
1849 * libm/machine/spu/headers/tand2.h: Ditto.
1850 * libm/machine/spu/headers/tanf.h: Ditto.
1851 * libm/machine/spu/headers/tanf4.h: Ditto.
1852 * libm/machine/spu/headers/tanh.h: Ditto.
1853 * libm/machine/spu/headers/tanhd2.h: Ditto.
1854 * libm/machine/spu/headers/tanhf.h: Ditto.
1855 * libm/machine/spu/headers/tanhf4.h: Ditto.
1856 * libm/machine/spu/headers/tgamma.h: Ditto.
1857 * libm/machine/spu/headers/tgammad2.h: Ditto.
1858 * libm/machine/spu/headers/tgammaf.h: Ditto.
1859 * libm/machine/spu/headers/tgammaf4.h: Ditto.
1860 * libm/machine/spu/headers/truncd2.h: Ditto.
1861 * libm/machine/spu/headers/truncf4.h: Ditto.
1862 * libm/machine/spu/log2.c: Ditto.
1863 * libm/machine/spu/s_asinh.c: Ditto.
1864 * libm/machine/spu/s_atan.c: Ditto.
1865 * libm/machine/spu/s_cos.c: Ditto.
1866 * libm/machine/spu/s_erf.c: Ditto.
1867 * libm/machine/spu/s_expm1.c: Ditto.
1868 * libm/machine/spu/s_isnan.c: Ditto.
1869 * libm/machine/spu/s_log1p.c: Ditto.
1870 * libm/machine/spu/s_nextafter.c: Ditto.
1871 * libm/machine/spu/s_sin.c: Ditto.
1872 * libm/machine/spu/s_tan.c: Ditto.
1873 * libm/machine/spu/s_tanh.c: Ditto.
1874 * libm/machine/spu/sf_asinh.c: Ditto.
1875 * libm/machine/spu/sf_cos.c: Ditto.
1876 * libm/machine/spu/sf_erf.c: Ditto.
1877 * libm/machine/spu/sf_expm1.c: Ditto.
1878 * libm/machine/spu/sf_log1p.c: Ditto.
1879 * libm/machine/spu/sf_logb.c: Ditto.
1880 * libm/machine/spu/sf_nearbyint.c: Ditto.
1881 * libm/machine/spu/sf_nextafter.c: Ditto.
1882 * libm/machine/spu/sf_rint.c: Ditto.
1883 * libm/machine/spu/sf_sin.c: Ditto.
1884 * libm/machine/spu/sf_tan.c: Ditto.
1885 * libm/machine/spu/sf_tanh.c: Ditto.
1886 * libm/machine/spu/w_acos.c: Ditto.
1887 * libm/machine/spu/w_acosh.c: Ditto.
1888 * libm/machine/spu/w_asin.c: Ditto.
1889 * libm/machine/spu/w_atan2.c: Ditto.
1890 * libm/machine/spu/w_atanh.c: Ditto.
1891 * libm/machine/spu/w_cosh.c: Ditto.
1892 * libm/machine/spu/w_exp.c: Ditto.
1893 * libm/machine/spu/w_exp2.c: Ditto.
1894 * libm/machine/spu/w_hypot.c: Ditto.
1895 * libm/machine/spu/w_lgamma.c: Ditto.
1896 * libm/machine/spu/w_log.c: Ditto.
1897 * libm/machine/spu/w_log10.c: Ditto.
1898 * libm/machine/spu/w_pow.c: Ditto.
1899 * libm/machine/spu/w_sincos.c: Ditto.
1900 * libm/machine/spu/w_sinh.c: Ditto.
1901 * libm/machine/spu/w_tgamma.c: Ditto.
1902 * libm/machine/spu/wf_acos.c: Ditto.
1903 * libm/machine/spu/wf_acosh.c: Ditto.
1904 * libm/machine/spu/wf_asin.c: Ditto.
1905 * libm/machine/spu/wf_atan2.c: Ditto.
1906 * libm/machine/spu/wf_atanh.c: Ditto.
1907 * libm/machine/spu/wf_cosh.c: Ditto.
1908 * libm/machine/spu/wf_hypot.c: Ditto.
1909 * libm/machine/spu/wf_lgamma.c: Ditto.
1910 * libm/machine/spu/wf_pow.c: Ditto.
1911 * libm/machine/spu/wf_sincos.c: Ditto.
1912 * libm/machine/spu/wf_sinh.c: Ditto.
1913 * libm/machine/spu/wf_sqrt.c: Ditto.
1914 * libm/machine/spu/wf_tgamma.c: Ditto.
1915
505ea714
JJ
19162007-09-28 Patrick Mansfield <patmans@us.ibm.com>
1917
1918 * configure.host: Define _POSIX_MODE to match the existing vector
1919 math code, as we don't support the matherr callout.
1920 * libm/machine/spu/Makefile.am: New file.
1921 * libm/machine/spu/Makefile.in: Auto-generated.
1922 * libm/machine/spu/headers/atanf.h: New file.
1923 * libm/machine/spu/headers/cbrt.h: Ditto.
1924 * libm/machine/spu/headers/cbrtf.h: Ditto.
1925 * libm/machine/spu/headers/ceil.h: Ditto.
1926 * libm/machine/spu/headers/ceilf.h: Ditto.
1927 * libm/machine/spu/headers/copysign.h: Ditto.
1928 * libm/machine/spu/headers/copysignf.h: Ditto.
1929 * libm/machine/spu/headers/exp2f.h: Ditto.
1930 * libm/machine/spu/headers/expf.h: Ditto.
1931 * libm/machine/spu/headers/fabs.h: Ditto.
1932 * libm/machine/spu/headers/fabsf.h: Ditto.
1933 * libm/machine/spu/headers/fdim.h: Ditto.
1934 * libm/machine/spu/headers/fdimf.h: Ditto.
1935 * libm/machine/spu/headers/floor.h: Ditto.
1936 * libm/machine/spu/headers/floorf.h: Ditto.
1937 * libm/machine/spu/headers/fma.h: Ditto.
1938 * libm/machine/spu/headers/fmaf.h: Ditto.
1939 * libm/machine/spu/headers/fmax.h: Ditto.
1940 * libm/machine/spu/headers/fmaxf.h: Ditto.
1941 * libm/machine/spu/headers/fmin.h: Ditto.
1942 * libm/machine/spu/headers/fminf.h: Ditto.
1943 * libm/machine/spu/headers/fmod.h: Ditto.
1944 * libm/machine/spu/headers/fmodf.h: Ditto.
1945 * libm/machine/spu/headers/frexp.h: Ditto.
1946 * libm/machine/spu/headers/frexpf.h: Ditto.
1947 * libm/machine/spu/headers/ilogb.h: Ditto.
1948 * libm/machine/spu/headers/ilogbf.h: Ditto.
1949 * libm/machine/spu/headers/ldexp.h: Ditto.
1950 * libm/machine/spu/headers/ldexpf.h: Ditto.
1951 * libm/machine/spu/headers/llrint.h: Ditto.
1952 * libm/machine/spu/headers/llrintf.h: Ditto.
1953 * libm/machine/spu/headers/llround.h: Ditto.
1954 * libm/machine/spu/headers/llroundf.h: Ditto.
1955 * libm/machine/spu/headers/log10f.h: Ditto.
1956 * libm/machine/spu/headers/log2f.h: Ditto.
1957 * libm/machine/spu/headers/logf.h: Ditto.
1958 * libm/machine/spu/headers/lrint.h: Ditto.
1959 * libm/machine/spu/headers/lrintf.h: Ditto.
1960 * libm/machine/spu/headers/lround.h: Ditto.
1961 * libm/machine/spu/headers/lroundf.h: Ditto.
1962 * libm/machine/spu/headers/nearbyint.h: Ditto.
1963 * libm/machine/spu/headers/remainder.h: Ditto.
1964 * libm/machine/spu/headers/remainderf.h: Ditto.
1965 * libm/machine/spu/headers/remquo.h: Ditto.
1966 * libm/machine/spu/headers/remquof.h: Ditto.
1967 * libm/machine/spu/headers/rint.h: Ditto.
1968 * libm/machine/spu/headers/round.h: Ditto.
1969 * libm/machine/spu/headers/roundf.h: Ditto.
1970 * libm/machine/spu/headers/scalbn.h: Ditto.
1971 * libm/machine/spu/headers/scalbnf.h: Ditto.
1972 * libm/machine/spu/headers/sqrt.h: Ditto.
1973 * libm/machine/spu/headers/trunc.h: Ditto.
1974 * libm/machine/spu/headers/truncf.h: Ditto.
1975 * libm/machine/spu/headers/vec_literal.h: Ditto.
1976 * libm/machine/spu/llrint.c: Ditto.
1977 * libm/machine/spu/llrintf.c: Ditto.
1978 * libm/machine/spu/llround.c: Ditto.
1979 * libm/machine/spu/llroundf.c: Ditto.
1980 * libm/machine/spu/log2f.c: Ditto.
1981 * libm/machine/spu/s_cbrt.c: Ditto.
1982 * libm/machine/spu/s_ceil.c: Ditto.
1983 * libm/machine/spu/s_copysign.c: Ditto.
1984 * libm/machine/spu/s_fabs.c: Ditto.
1985 * libm/machine/spu/s_fdim.c: Ditto.
1986 * libm/machine/spu/s_floor.c: Ditto.
1987 * libm/machine/spu/s_fma.c: Ditto.
1988 * libm/machine/spu/s_fmax.c: Ditto.
1989 * libm/machine/spu/s_fmin.c: Ditto.
1990 * libm/machine/spu/s_frexp.c: Ditto.
1991 * libm/machine/spu/s_ilogb.c: Ditto.
1992 * libm/machine/spu/s_ldexp.c: Ditto.
1993 * libm/machine/spu/s_lrint.c: Ditto.
1994 * libm/machine/spu/s_lround.c: Ditto.
1995 * libm/machine/spu/s_nearbyint.c: Ditto.
1996 * libm/machine/spu/s_remquo.c: Ditto.
1997 * libm/machine/spu/s_rint.c: Ditto.
1998 * libm/machine/spu/s_round.c: Ditto.
1999 * libm/machine/spu/s_scalbn.c: Ditto.
2000 * libm/machine/spu/s_trunc.c: Ditto.
2001 * libm/machine/spu/sf_atan.c: Ditto.
2002 * libm/machine/spu/sf_cbrt.c: Ditto.
2003 * libm/machine/spu/sf_ceil.c: Ditto.
2004 * libm/machine/spu/sf_copysign.c: Ditto.
2005 * libm/machine/spu/sf_fabs.c: Ditto.
2006 * libm/machine/spu/sf_fdim.c: Ditto.
2007 * libm/machine/spu/sf_floor.c: Ditto.
2008 * libm/machine/spu/sf_fma.c: Ditto.
2009 * libm/machine/spu/sf_fmax.c: Ditto.
2010 * libm/machine/spu/sf_fmin.c: Ditto.
2011 * libm/machine/spu/sf_frexp.c: Ditto.
2012 * libm/machine/spu/sf_ilogb.c: Ditto.
2013 * libm/machine/spu/sf_ldexp.c: Ditto.
2014 * libm/machine/spu/sf_lrint.c: Ditto.
2015 * libm/machine/spu/sf_lround.c: Ditto.
2016 * libm/machine/spu/sf_remquo.c: Ditto.
2017 * libm/machine/spu/sf_round.c: Ditto.
2018 * libm/machine/spu/sf_scalbn.c: Ditto.
2019 * libm/machine/spu/sf_trunc.c: Ditto.
2020 * libm/machine/spu/w_fmod.c: Ditto.
2021 * libm/machine/spu/w_remainder.c: Ditto.
2022 * libm/machine/spu/w_sqrt.c: Ditto.
2023 * libm/machine/spu/wf_exp.c: Ditto.
2024 * libm/machine/spu/wf_exp2.c: Ditto.
2025 * libm/machine/spu/wf_fmod.c: Ditto.
2026 * libm/machine/spu/wf_log.c: Ditto.
2027 * libm/machine/spu/wf_log10.c: Ditto.
2028 * libm/machine/spu/wf_remainder.c: Ditto.
c99e78b8 2029
364faf91
JJ
20302007-09-21 Patrick Mansfield <patmans@us.ibm.com>
2031
2032 * libc/machine/spu/sys/uio.h: New file for readv and writev use.
2033
2f3d28fc
JJ
20342007-09-21 Patrick Mansfield <patmans@us.ibm.com>
2035
2036 * libc/include/sched.h: New file, just include sys/sched.h.
2037 * libc/machine/spu/sys/sched.h: New file, has just sched_yield
2038 prototype.
2039 * libc/machine/spu/sys/utime.h: New file, has utime prototype and
2040 struct utimbuf definition.
2041
63fbe1fd
JJ
20422007-09-21 Patrick Mansfield <patmans@us.ibm.com>
2043
2044 * libc/machine/spu/sys/dirent.h: New file, add prototypes and SPU
2045 specific struct and typedef.
2046
20472007-09-18 Patrick Mansfield <patmans@us.ibm.com>
cebf33e4
JJ
2048
2049 * libc/include/sys/types.h: Use __dev_t, __uid_t, and __gid_t to
2050 typedef dev_t, gid_t, and uid_t.
2051 * libc/include/sys/_types.h: Move previous dev_t, uid_t and gid_t
2052 types.h code to here, but typedef __dev_t, __uid_t, and __gid_t instead.
2053 Change to lower case for all __foo_t_defined names.
2054 * libc/machine/spu/machine/_types.h: Add SPU specific __dev_t,
2055 __uid_t, and __gid_t making them all four bytes. Change to lower case
2056 for all __foo_t_defined names.
2057
3908c985
JJ
20582007-09-18 Jeff Johnston <jjohnstn@redhat.com>
2059
2060 * libc/reent/renamer.c: New file.
2061 * libc/reent/Makefile.am: Add new file.
2062 * libc/reent/Makefile.in: Regenerated.
2063 * libc/stdio/rename.c: Break out _rename_r code into reent/renamer.c
2064 and add check for rename syscall.
2065
ba21046d
EB
20662007-09-17 Eric Blake <ebb9@byu.net>
2067
2068 Obey POSIX on printf("%.s", (char*)NULL).
2069 * libc/stdio/vfprintf.c (_VFPRINTF_R): Take precision into account
2070 for %s on NULL. Skip NULL check when optimizing for size.
2071
e5ae7230
JJ
20722007-09-07 Jeff Johnston <jjohnstn@redhat.com>
2073
2074 * libc/include/sys/_types.h: Protect all types with flag
2075 checks to allow definition in machine/_types.h.
2076
36fe6da6
JJ
20772007-09-07 Jeff Johnston <jjohnstn@redhat.com>
2078
2079 * libc/sys/linux/sys/_types.h: Add _fpos_t and _fpos64_t
2080 definitions in light of the previous change.
2081
20822007-09-07 Patrick Mansfield <patmans@us.ibm.com>
dde22334
JJ
2083
2084 * libc/include/machine/_default_types.h: New file, contains what
2085 was previously in libc/include/machine/_types.h.
2086 * libc/include/machine/_types.h: Now only includes
2087 machine/_default_types.h.
2088 * libc/include/sys/reent.h: Remove _fpos_t and _fpos64_t.
2089 * libc/include/sys/_types.h: Move _fpos_t and _fpos64_t to here,
2090 with conditional declarations.
2091 * libc/machine/spu/machine/_types.h: New file, add SPU specific
2092 typedefs for _fpos_t and _fpos64_t.
2093
78e66fb9
JJ
20942007-09-07 Jeff Johnston <jjohnstn@redhat.com>
2095
2096 * libc/include/math.h (_M_LOG2E): Replace with..
2097 (_M_LOG2_E): New macro.
2098 (log2, log2f, M_LOG2_E): Use _M_LOG2_E.
2099
345c1595
BD
21002007-09-06 Brian Dessent <brian@dessent.net>
2101
2102 * libc/reent/getreent.c: Allow for case where __getreent is
2103 defined as a macro.
2104
6494ee83
JJ
21052007-09-06 Jeff Johnston <jjohnstn@redhat.com>
2106
2107 * libc/include/math.h (_M_LOG2E): New log2 of e macro.
2108 (log2): Use _M_LOG2E instead of M_LOG2E.
2109 (log2f): Ditto.
2110 (M_LOG2E): Define to be _M_LOG2E.
2111
86a934d2
JJ
21122007-09-04 Kazunori Asayama <asayama@sm.sony.co.jp>
2113
2114 * libm/math/wf_tgamma.c: Add missing include.
2115
6ddf8bef
JJ
21162007-08-31 Antony King <antony.king@st.com>
2117
ba21046d 2118 * libc/stdlib/mprec.h [_DOUBLE_IS_32BITS}: Define IEEE_Arith
6ddf8bef
JJ
2119 bits and redefine associated dword0 macro (rvalue issue).
2120 * libc/stdio/vfieeefp.h: Ditto.
ba21046d
EB
2121 * libc/stdlib/strtod.c: Add checks for _DOUBLE_IS_32BITS
2122 to prevent setting dword1 which is an rvalue only.
6ddf8bef 2123
d4a27886
JJ
21242007-08-28 Hans Kester <hans.kester@ellips.nl>
2125
2126 * configure.host: Added support for x86_64.
2127 * libc/include/machine/ieeefp.h: Define __IEEE_LITTLE_ENDIAN for x86_64.
2128 * libc/include/machine/setjmp.h: Define _JBTYPE and _JBLEN for x86_64.
2129 * libc/machine/x86_64/aclocal.m4: Generated.
2130 * libc/machine/x86_64/configure.in: New.
2131 * libc/machine/x86_64/configure: Generated.
2132 * libc/machine/x86_64/Makefile.am: New.
2133 * libc/machine/x86_64/Makefile.in: Generated.
2134 * libc/machine/x86_64/setjmp.S: New.
2135 * libc/machine/x86_64/memcpy.S: New.
2136 * libc/machine/x86_64/memset.S: New.
2137 * libc/machine/configure.in: Added support for x86_64.
2138 * libc/machine/configure: Regenerated.
2139
309faeb5
JJ
21402007-08-24 Jeff Johnston <jjohnstn@redhat.com>
2141
2142 * libm/common/sf_lround.c (lroundf): Cast sizeof calculation
2143 to int before comparing it to a signed int value.
2144
8d44415e
HPN
21452007-08-24 Hans-Peter Nilsson <hp@axis.com>
2146
2147 * libc/machine/cris/sys/errno.h (ECANCELED, ENOKEY, EKEYEXPIRED)
2148 (EKEYREVOKED, EKEYREJECTED, EOWNERDEAD, ENOTRECOVERABLE, ENOTSUP):
2149 Define.
2150
e6e56f7c
JJ
21512007-08-23 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
2152
2153 Reduce the memory consumption of variable argument functions
2154 for SPU (cell):
2155 * libc/machine/spu/Makefile.am: Replace printf/scanf family C sources
2156 to assembler sources.
2157 * libc/machine/spu/Makefile.in: Regenerated.
2158 * libc/machine/spu/stdio.c: Add __check_init function wrapping
2159 CHECK_INIT macro to use from assembler routines.
2160 * libc/machine/spu/c99ppe.h: Add definitions for assembler code.
2161 * libc/machine/spu/fiprintf.S: New file.
2162 * libc/machine/spu/fiscanf.S: Ditto.
2163 * libc/machine/spu/fprintf.S: Ditto.
2164 * libc/machine/spu/fscanf.S: Ditto.
2165 * libc/machine/spu/iprintf.S: Ditto.
2166 * libc/machine/spu/iscanf.S: Ditto.
2167 * libc/machine/spu/printf.S: Ditto.
2168 * libc/machine/spu/scanf.S: Ditto.
2169 * libc/machine/spu/siprintf.S: Ditto.
2170 * libc/machine/spu/siscanf.S: Ditto.
2171 * libc/machine/spu/sniprintf.S: Ditto.
2172 * libc/machine/spu/snprintf.S: Ditto.
2173 * libc/machine/spu/sprintf.S: Ditto.
2174 * libc/machine/spu/sscanf.S: Ditto.
2175 * libc/machine/spu/stack_reg_va.S: Ditto.
2176 * libc/machine/spu/syscall.def: Ditto. (for maintenance)
2177 * libc/machine/spu/mk_syscalls: Ditto. (for maintenance)
2178 * libc/machine/spu/fiprintf.c: Removed. (Replaced by .S)
2179 * libc/machine/spu/fiscanf.c: Ditto.
2180 * libc/machine/spu/fprintf.c: Ditto.
2181 * libc/machine/spu/fscanf.c: Ditto.
2182 * libc/machine/spu/iprintf.c: Ditto.
2183 * libc/machine/spu/iscanf.c: Ditto.
2184 * libc/machine/spu/printf.c: Ditto.
2185 * libc/machine/spu/scanf.c: Ditto.
2186 * libc/machine/spu/siprintf.c: Ditto.
2187 * libc/machine/spu/siscanf.c: Ditto.
2188 * libc/machine/spu/sniprintf.c: Ditto.
2189 * libc/machine/spu/snprintf.c: Ditto.
2190 * libc/machine/spu/sprintf.c: Ditto.
2191 * libc/machine/spu/sscanf.c: Ditto.
2192
90c6084b
JJ
21932007-08-03 Ralf Corsepius <ralf.corsepius@rtems.org>
2194
2195 * libc/include/tar.h: New.
2196
8fb88162
JJ
21972007-08-03 Jeff Johnston <jjohnstn@redhat.com>
2198
2199 * libc/sys/linux/intl/Makefile.am: Change stpcpy reference to
2200 lcl_stpcpy to avoid conflict with new stpcpy.c in libc/string.
2201 * libc/sys/linux/intl/Makefile.in: Regenerated.
2202 * libc/sys/linux/intl/stpcpy.c: Renamed to...
2203 * libc/sys/linux/intl/lcl_stpcpy.c: ..this.
2204
6ddcdb9d
EB
22052007-08-02 Eric Blake <ebb9@byu.net>
2206
2207 Implement fmemopen and open_memstream.
2208 * libc/stdio/fmemopen.c (_fmemopen_r, fmemopen): New file.
2209 * libc/stdio/open_memstream.c (_open_memstream_r, open_memstream):
2210 New file.
2211 * libc/stdio/fopencookie.c (fcwriter): Minor optimization.
2212 * libc/include/stdio.h (dprintf, vdprintf): Group all POSIX 200x
2213 functions together.
2214 (fmemopen, open_memstream): Declare new functions.
2215 * libc/stdio/stdio.tex: Document them.
2216 * libc/stdio/Makefile.am (ELIX_4_SOURCES, CHEWOUT_FILES): Add
2217 fmemopen and open_memstream.
2218 * libc/stdio/Makefile.in: Regenerate.
2219
f7c978d5
EB
22202007-07-31 Eric Blake <ebb9@byu.net>
2221
2222 More POSIX stream corner cases.
2223 * libc/stdio/findfp.c (__sinit): Open stderr read/write.
2224 * libc/stdio/fdopen.c (_fdopen_r): Set O_APPEND on fd when
2225 requested.
2226 * libc/stdio64/fdopen64.c (_fdopen64_r): Likewise.
2227
391b530a
EB
22282007-07-18 Eric Blake <ebb9@byu.net>
2229
2230 Fix 'make info'.
2231 * libc/stdio/stdio.tex: Add missing include.
2232 * libc/stdio/vfprintf.c: Use expected node name.
2233 * libc/stdio/vfscanf.c: Likewise.
2234 * libc/stdio/sscanf.c: Likewise.
2235 * libc/stdio/sprintf.c: Likewise.
2236 * libc/stdio/siscanf.c: Likewise.
2237 * libc/stdio/siprintf.c: Likewise.
2238 * libc/stdio/fopencookie.c: Quote raw {}.
2239 Reported by DJ Delorie.
2240
88c88881
EB
22412007-07-13 Eric Blake <ebb9@byu.net>
2242
08146e5a
EB
2243 Fix fflush issues.
2244 * libc/stdio/fflush.c (_fflush_r): New function.
2245 (fflush): Fix reentrancy and large offset behavior.
2246 * libc/include/stdio.h (_fflush_r): Add prototype.
2247 * libc/stdio/fclose.c (_fclose_r): All fflush callers changed.
2248 * libc/stdio/freopen.c (_freopen_r): Likewise.
2249 * libc/stdio/fseek.c (_fseek_r): Likewise.
2250 * libc/stdio/ftell.c (_ftell_r): Likewise.
2251 * libc/stdio/fvwrite.c (__sfvwrite_r): Likewise.
2252 * libc/stdio/refill.c (__srefill_r): Likewise.
2253 * libc/stdio/setvbuf.c (setvbuf): Likewise.
2254 * libc/stdio/ungetc.c (_ungetc_r): Likewise.
2255 * libc/stdio/vfprintf.c (__sbprintf): Likewise.
2256 * libc/stdio/wbuf.c (__swbuf_r): Likewise.
2257 * libc/stdio64/freopen64.c (_freopen64_r): Likewise.
2258 * libc/stdio64/fseeko64.c (_fseeko64_r): Likewise. Defer to
2259 32-bit version if not large file.
2260 * libc/stdio64/ftello64.c (_ftello64_r): Likewise.
2261 * libc/stdio64/tmpfile64.c (_tmpfile64_r): Avoid compile warning.
2262
88c88881
EB
2263 Documentation updates.
2264 * libc/stdio/ungetc.c: Document ungetc.
2265 * libc/stdio/Makefile.am (CHEWOUT_FILES): Sort, match current list
2266 of files with documentation.
2267 * libc/stdio/Makefile.in: Regenerate.
2268 * libc/stdio/stdio.tex: Sort and update stdio documentation index.
2269
c4ccbcce
JJ
22702007-07-11 Jeff Johnston <jjohnstn@redhat.com>
2271
2272 * libc/include/math.h: Fix so C99 functions/macros are accessible
2273 when -std=c99 is used when compiling and not when using C89.
2274
dec27025
CV
22752007-07-06 Corinna Vinschen <corinna@vinschen.de>
2276
2277 * libc/include/wchar.h: Declare wcstol, wcstoll, wcstoul,
2278 wcstoull, _wcstol_r, _wcstoll_r, _wcstoul_r and _wcstoull_r.
2279 * libc/stdlib/Makefile.am (GENERAL_SOURCES): Add wcstol.c and wcstoul.c.
2280 (EXTENDED_SOURCES): Add wcstoll.c, wcstoll_r.c, wcstoull.c and
2281 wcstoull_r.c.
2282 (CHEWOUT_FILES): Add .def files accordingly.
2283 * libc/stdlib/Makefile.in: Regenerate.
2284 * libc/stdlib/stdlib.tex: Add documentation links for above functions.
2285 * libc/stdlib/strtoll.c: Fix portability note.
2286 * libc/stdlib/strtoull.c: Ditto.
2287 * libc/stdlib/wcstol.c: New file.
2288 * libc/stdlib/wcstoll.c: New file.
2289 * libc/stdlib/wcstoll_r.c: New file.
2290 * libc/stdlib/wcstoul.c: New file.
2291 * libc/stdlib/wcstoull.c: New file.
2292 * libc/stdlib/wcstoull_r.c: New file.
2293
0be2bc94
JJ
22942007-07-06 Jeff Johnston <jjohnstn@redhat.com>
2295
2296 * libc/include/sys/time.h (gettimeofday): Change to proper
2297 prototype where second parameter is void *.
2298 * libc/reent/gettimeofdayr.c (_gettimeofday_r): Change prototype
2299 accordingly.
2300 * libc/include/reent.h: Fix prototype for _gettimeofday_r.
2301 * libc/sys/arm/syscalls.c: Fix gettimeofday function signature.
2302 * libc/sys/rdos/gettod.c: Ditto.
2303 * libc/sys/sh/syscalls.c: Ditto.
2304 * libc/time/time.c (time): Change call to _gettimeofday_r
2305 to pass NULL as 2nd argument.
2306
ba9af2d7
JJ
23072007-07-06 Jeff Johnston <jjohnstn@redhat.com>
2308
2309 * libc/sys/linux/intl/dcigettext.c: Define HAVE_STPCPY.
2310 * libc/sys/linux/intl/l10nflist.c: Ditto.
2311
a3721512
CV
23122007-07-04 Corinna Vinschen <corinna@vinschen.de>
2313
2314 * libc/include/wchar.h: Add prototype for wcsxfrm.
2315 * libc/string/Makefile.am (GENERAL_SOURCES): Add wcsxfrm.c.
2316 (CHEWOUT_FILES): Add wcsxfrm.def.
2317 * libc/string/Makefile.in: Regenerate.
2318 * libc/string/wcsxfrm.c: New file.
2319 * libc/string/wcstrings.tex: Add wcsxfrm.
2320
5d8b97a6
CV
23212007-06-28 Corinna Vinschen <corinna@vinschen.de>
2322
2323 * libc/include/string.h: Add prototypes for stpcpy and stpncpy.
2324 * libc/string/Makefile.am (ELIX_SOURCES): Add stpcpy.c and
2325 stpncpy.c.
2326 (CHEWOUT_FILES): Add stpcpy.def and stpncpy.def.
2327 * libc/string/Makefile.in: Regenerate.
2328 * libc/string/stpcpy.c: New file.
2329 * libc/string/stpncpy.c: New file.
2330 * libc/string/strings.tex: Add stpcpy and stpncpy.
2331
3473e6bd
EB
23322007-06-27 Eric Blake <ebb9@byu.net>
2333
2334 Support __func__ in assert, as required by C99.
2335 * libc/stdlib/assert.c (__assert_func): New function.
2336 (__assert): Use __assert_func.
2337 * libc/include/assert.h (assert) [!NDEBUG]: Use __assert_func when
2338 possible.
2339
be977229
JJ
23402007-06-20 Patrick Mansfield <patmans@us.ibm.com>
2341
2342 * libc/machine/spu/perror.c: Pass errno as the second argument to
2343 the assist call.
2344
d360ef18
JJ
23452007-06-20 Patrick Mansfield <patmans@us.ibm.com>
2346
2347 * libc/include/sys/unistd.h[__SPU__]: Add lockf prototype and related
2348 defines; expose ftruncate, truncate and sync prototypes.
2349
f75c7518
JJ
23502007-06-20 Patrick Mansfield <patmans@us.ibm.com>
2351
2352 * libc/include/sys/unistd.h[__SPU__]: Make fchdir prototype visible.
3473e6bd 2353 * libc/include/sys/stat.h[__SPU__]: Make mknod and lstat prototypes
f75c7518
JJ
2354 visible.
2355
438b07b0
JJ
23562007-06-15 Patrick Mansfield <patmans@us.ibm.com>
2357
2358 * libc/machine/spu/Makefile.am: Remove mktemp.c, it was left in
2359 from a dropped patch.
2360 * libc/machine/spu/Makefile.in: Regenerate.
2361
c33ff785
JJ
23622007-06-13 Patrick Mansfield <patmans@us.ibm.com>
2363
2364 * libc/machine/spu/creat.c: New file copied from libc/posix/creat.c,
3473e6bd 2365 it just calls open with appropriate arguments.
c33ff785
JJ
2366 * libc/machine/spu/Makefile.am: Add creat.c.
2367 * libc/machine/spu/Makefile.in: Regenerate.
2368
ae473bdc
JJ
23692007-06-13 Jeff Johnston <jjohnstn@redhat.com>
2370
2371 * libc/machine/spu/Makefile.am: Re-add back setjmp.S which
2372 I accidentally dropped.
2373 * libc/machine/spu/Makefile.in: Regenerated.
2374
a8b08518
JJ
23752007-06-13 Patrick Mansfield <patmans@us.ibm.com>
2376
2377 * libc/include/sys/features.h: Define _POSIX_TIMERS for spu.
2378 * libc/include/sys/unistd.h: Change usleep prototype to Posix
2379 form and move outside of OS flag checks.
2380 * libc/machine/spu/Makefile.am: Add sleep and usleep.
2381 * libc/machine/spu/Makefile.in: Regenerate.
2382 * libc/machine/spu/sleep.c: Copy libc/posix/sleep.c.
2383 * libc/machine/spu/usleep.c: Copy libc/posix/usleep.c.
2384
f4cd2a1d
CV
23852007-06-11 Corinna Vinschen <corinna@vinschen.de>
2386
2387 * libc/include/sys/unistd.h: Declare confstr for Cygwin.
2388 Define confstr constants for Cygwin. Add comment.
2389
32f67ec6
HPN
23902007-06-10 Hans-Peter Nilsson <hp@bitrange.com>
2391
2392 * libc/sys/mmixware/access.c (access): Do not try to use a magic
2393 file-handle and a direct syscall, just use _open.
2394 * libc/sys/mmixware/sys/syscall.h (TMPFNO): Remove this magic
2395 file-handle.
2396
2397 * libc/sys/mmixware/_exit.c (_exit): Update comment about
2398 passing on the exit value.
2399
6fb37475
JJ
24002007-06-08 Jeff Johnston <jjohnstn@redhat.com>
2401
2402 * libc/string/strcasestr.c: New file.
2403 * libc/include/string.h: Add strcasestr.
2404 * libc/string/strings.tex: Add strcasestr.
2405 * libc/string/Makefile.am: Ditto.
2406 * libc/string/Makefile.in: Regenerated.
2407
1eeaeab8
JJ
24082007-06-06 Christian Groessler <chris@groessler.org>
2409
2410 * libc/stdlib/ldtoa (_ldcheck): Make sure the setting of
2411 rnd is done after the last local variable declaration.
2412
24132007-06-06 Jeff Johnston <jjohnstn@redhat.com>
2414
2415 * libc/stdlib/mprec.h[Just_16]: Make sure that Pack_16 is defined.
2416
a5da131d
JJ
24172007-06-05 Christian Groessler <chris@groessler.org>
2418
3473e6bd 2419 * libc/argz/argz_insert.c (argz_insert): Move delta variable
a874abaf 2420 declaration to top of function in keeping with C89 standard.
a5da131d 2421
17c61d6a
EB
24222007-06-04 Eric Blake <ebb9@byu.net>
2423
2424 Implement funopen, fopencookie.
2425 * libc/include/sys/reent.h (struct __sFILE, struct __sFILE64):
2426 Switch to reentrant callbacks.
2427 * libc/include/stdio.h (funopen): Fix declaration.
2428 (fopencookie): Declare.
2429 * libc/stdio/local.h (__sread, __swrite, __sseek, __sclose)
2430 (__sseek64, __swrite64): Fix prototypes.
2431 [__SCLE]: Pull in setmode declaration.
2432 * libc/stdio/stdio.c (__sread, __swrite, __sseek, __sclose): Fix
2433 reentrancy.
2434 * libc/stdio64/stdio64.c (__sseek64_r, __swrite64_r): Delete.
2435 (__sseek64, __swrite64): Fix reentrancy.
2436 * libc/stdio/fseek.c (_fseek_r): Account for overflow, and fix
2437 reentrancy.
2438 * libc/stdio/ftell.c (_ftell_r): Likewise.
2439 * libc/stdio/flags.c (__sflags): Don't lose __SAPP on "a+".
2440 * libc/stdio/fclose.c (_fclose_r): Fix reentrancy.
2441 * libc/stdio/freopen.c (_freopen_r): Likewise.
2442 * libc/stdio/fvwrite.c (__sfvwrite_r): Likewise.
2443 * libc/stdio/refill.c (__srefill_r): Likewise.
2444 * libc/stdio/siscanf.c (eofread): Likewise.
2445 * libc/stdio/sscanf.c (eofread): Likewise.
2446 * libc/stdio/vsiscanf.c (eofread1): Likewise.
2447 * libc/stdio/vsscanf.c (eofread1): Likewise.
2448 * libc/stdio64/freopen64.c (_freopen64_r): Likewise.
2449 * libc/stdio64/fseeko64.c (_fseeko64_r): Likewise.
2450 * libc/stdio64/ftello64.c (_ftello64_r): Likewise.
2451 * libc/stdio/fflush.c (fflush): Improve reentrancy, although more
2452 could be fixed.
2453 * libc/stdio/fopencookie.c (_fopencookie_r, fopencookie): New file.
2454 * libc/stdio/funopen.c (_funopen_r, funopen): New file.
2455 * libc/stdio/Makefile.am (ELIX_4_SOURCES, CHEWOUT_FILES): Build
2456 new files.
2457 * libc/stdio/Makefile.in: Regenerate.
2458
b2064783
EB
24592007-05-29 Eric Blake <ebb9@byu.net>
2460
2461 Avoid more compiler warnings.
2462 * libc/stdlib/btowc.c: Add missing header.
2463 * libc/stdlib/getopt.c (getopt_internal): Initialize variable.
2464 * libc/stdlib/system.c (do_system) [__CYGWIN__]: Add declaration.
2465 * libc/stdlib/wctob.c: Add missing header.
2466 * libc/string/strcpy.c (strcpy): Avoid warnings.
2467 * libc/string/strrchr.c (strrchr): Likewise.
2468
76a2ee78
CV
24692007-05-29 Corinna Vinschen <corinna@vinschen.de>
2470
2471 * libc/argz/argz_add_sep.c (argz_add_sep): Handle empty string
2472 argument.
2473 * libc/argz/argz_append.c (argz_append): Handle empty buf argument.
2474 * libc/argz/argz_create_sep.c (argz_create_sep): Return (NULL, 0)
2475 on empty input strings.
2476 * libc/argz/argz_extract.c (argz_extract): Check argz_len before
2477 looping through argz.
2478 * libc/argz/argz_stringify.c (argz_stringify): Ditto.
2479
75acf0bb
EB
24802007-05-27 Brian Dessent <brian@dessent.net>
2481
2482 * libc/stdio/vfprintf.c (_VFPRINTF_R): Populate 'ox' when
2483 handling %p.
2484
f5c58e9a
EB
24852007-05-25 Eric Blake <ebb9@byu.net>
2486
2487 * libc/stdio/rewind.c (rewind): Fix regression of 2003-08-22.
2488
d9a1ecc0 24892007-05-24 Steve Ellcey <sje@cup.hp.com>
f5c58e9a 2490 Charles Wilson <libtool@cwilson.fastmail.fm>
d9a1ecc0
SE
2491
2492 * libtool.m4: removed
2493 * configure.in: invoke _LD_DECL_SED before conditionally initializing
2494 libtool. Move AC_PROG_AWK outside conditional.
2495 * libc/sys/linux/configure.in: Ditto.
2496 * libc/sys/linux/linuxthreads/configure.in: Ditto.
2497 * libc/sys/linux/linuxthreads/machine/i386/configure.in: Ditto.
2498 * libc/sys/linux/machine/i386/configure.in: Ditto.
2499
2500 * iconvdata/configure.in: invoke _LD_DECL_SED before conditionally
2501 initializing libtool.
2502 * libc/configure.in: Ditto.
2503 * libc/machine/configure.in: Ditto.
2504 * libc/machine/i386/configure.in: Ditto.
2505 * libc/sys/configure.in: Ditto.
2506 * libc/sys/linux/linuxthreads/machine/configure.in: Ditto.
2507 * libc/sys/linux/machine/configure.in: Ditto.
2508 * libm/configure.in: Ditto.
2509 * libm/machine/configure.in: Ditto.
2510
2511 * Makefile.am: Ensure toplevel is included in ACLOCAL_AMFLAGS.
2512 * doc/Makefile.am: Ditto.
2513 * iconvdata/Makefile.am: Ditto.
2514 * libc/Makefile.am: Ditto.
2515 * libc/machine/Makefile.am: Ditto.
2516 * libc/machine/a29k/Makefile.am: Ditto.
2517 * libc/machine/arm/Makefile.am: Ditto.
2518 * libc/machine/bfin/Makefile.am: Ditto.
2519 * libc/machine/cris/Makefile.am: Ditto.
2520 * libc/machine/crx/Makefile.am: Ditto.
2521 * libc/machine/d10v/Makefile.am: Ditto.
2522 * libc/machine/d30v/Makefile.am: Ditto.
2523 * libc/machine/fr30/Makefile.am: Ditto.
2524 * libc/machine/frv/Makefile.am: Ditto.
2525 * libc/machine/h8300/Makefile.am: Ditto.
2526 * libc/machine/h8500/Makefile.am: Ditto.
2527 * libc/machine/hppa/Makefile.am: Ditto.
2528 * libc/machine/i386/Makefile.am: Ditto.
2529 * libc/machine/i960/Makefile.am: Ditto.
2530 * libc/machine/iq2000/Makefile.am: Ditto.
2531 * libc/machine/m32c/Makefile.am: Ditto.
2532 * libc/machine/m32r/Makefile.am: Ditto.
2533 * libc/machine/m68hc11/Makefile.am: Ditto.
2534 * libc/machine/m68k/Makefile.am: Ditto.
2535 * libc/machine/m88k/Makefile.am: Ditto.
2536 * libc/machine/mips/Makefile.am: Ditto.
2537 * libc/machine/mn10200/Makefile.am: Ditto.
2538 * libc/machine/mn10300/Makefile.am: Ditto.
2539 * libc/machine/mt/Makefile.am: Ditto.
2540 * libc/machine/necv70/Makefile.am: Ditto.
2541 * libc/machine/powerpc/Makefile.am: Ditto.
2542 * libc/machine/sh/Makefile.am: Ditto.
2543 * libc/machine/sparc/Makefile.am: Ditto.
2544 * libc/machine/spu/Makefile.am: Ditto.
2545 * libc/machine/tic4x/Makefile.am: Ditto.
2546 * libc/machine/tic80/Makefile.am: Ditto.
2547 * libc/machine/v850/Makefile.am: Ditto.
2548 * libc/machine/w65/Makefile.am: Ditto.
2549 * libc/machine/xscale/Makefile.am: Ditto.
2550 * libc/machine/xstormy16/Makefile.am: Ditto.
2551 * libc/machine/z8k/Makefile.am: Ditto.
2552 * libc/sys/Makefile.am: Ditto.
2553 * libc/sys/a29khif/Makefile.am: Ditto.
2554 * libc/sys/arc/Makefile.am: Ditto.
2555 * libc/sys/arm/Makefile.am: Ditto.
2556 * libc/sys/d10v/Makefile.am: Ditto.
2557 * libc/sys/decstation/Makefile.am: Ditto.
2558 * libc/sys/h8300hms/Makefile.am: Ditto.
2559 * libc/sys/h8500hms/Makefile.am: Ditto.
2560 * libc/sys/linux/Makefile.am: Ditto.
2561 * libc/sys/linux/linuxthreads/Makefile.am: Ditto.
2562 * libc/sys/linux/linuxthreads/machine/Makefile.am: Ditto.
2563 * libc/sys/linux/linuxthreads/machine/i386/Makefile.am: Ditto.
2564 * libc/sys/linux/machine/Makefile.am: Ditto.
2565 * libc/sys/linux/machine/i386/Makefile.am: Ditto.
2566 * libc/sys/m88kbug/Makefile.am: Ditto.
2567 * libc/sys/mmixware/Makefile.am: Ditto.
2568 * libc/sys/netware/Makefile.am: Ditto.
2569 * libc/sys/rdos/Makefile.am: Ditto.
2570 * libc/sys/rtems/Makefile.am: Ditto.
2571 * libc/sys/sh/Makefile.am: Ditto.
2572 * libc/sys/sparc64/Makefile.am: Ditto.
2573 * libc/sys/sun4/Makefile.am: Ditto.
2574 * libc/sys/sysmec/Makefile.am: Ditto.
2575 * libc/sys/sysnec810/Makefile.am: Ditto.
2576 * libc/sys/sysnecv850/Makefile.am: Ditto.
2577 * libc/sys/sysvi386/Makefile.am: Ditto.
2578 * libc/sys/sysvnecv70/Makefile.am: Ditto.
2579 * libc/sys/tic80/Makefile.am: Ditto.
2580 * libc/sys/w65/Makefile.am: Ditto.
2581 * libc/sys/z8ksim/Makefile.am: Ditto.
2582 * libm/Makefile.am: Ditto.
2583 * libm/machine/Makefile.am: Ditto.
2584 * libm/machine/i386/Makefile.am: Ditto.
2585 * libm/machine/spu/Makefile.am: Ditto.
2586
2587 * aclocal.m4: Regenerate.
2588 * iconvdata/aclocal.m4: Regenerate.
2589 * libc/aclocal.m4: Regenerate.
2590 * libc/machine/aclocal.m4: Regenerate.
2591 * libc/machine/i386/aclocal.m4: Regenerate.
2592 * libc/sys/aclocal.m4: Regenerate.
2593 * libc/sys/linux/aclocal.m4: Regenerate.
2594 * libc/sys/linux/linuxthreads/aclocal.m4: Regenerate.
2595 * libc/sys/linux/linuxthreads/machine/aclocal.m4: Regenerate.
2596 * libc/sys/linux/linuxthreads/machine/i386/aclocal.m4: Regenerate.
2597 * libc/sys/linux/machine/aclocal.m4: Regenerate.
2598 * libc/sys/linux/machine/i386/aclocal.m4: Regenerate.
2599 * libm/aclocal.m4: Regenerate.
2600 * libm/machine/aclocal.m4: Regenerate.
2601 * libm/machine/i386/aclocal.m4: Regenerate.
2602
2603 * Makefile.in: Regenerate.
2604 * doc/Makefile.in: Regenerate.
2605 * iconvdata/Makefile.in: Regenerate.
2606 * libc/Makefile.in: Regenerate.
2607 * libc/argz/Makefile.in: Regenerate.
2608 * libc/ctype/Makefile.in: Regenerate.
2609 * libc/errno/Makefile.in: Regenerate.
2610 * libc/iconv/Makefile.in: Regenerate.
2611 * libc/iconv/ccs/Makefile.in: Regenerate.
2612 * libc/iconv/ccs/binary/Makefile.in: Regenerate.
2613 * libc/iconv/ces/Makefile.in: Regenerate.
2614 * libc/iconv/lib/Makefile.in: Regenerate.
2615 * libc/locale/Makefile.in: Regenerate.
2616 * libc/machine/Makefile.in: Regenerate.
2617 * libc/machine/a29k/Makefile.in: Regenerate.
2618 * libc/machine/arm/Makefile.in: Regenerate.
2619 * libc/machine/bfin/Makefile.in: Regenerate.
2620 * libc/machine/cris/Makefile.in: Regenerate.
2621 * libc/machine/crx/Makefile.in: Regenerate.
2622 * libc/machine/d10v/Makefile.in: Regenerate.
2623 * libc/machine/d30v/Makefile.in: Regenerate.
2624 * libc/machine/fr30/Makefile.in: Regenerate.
2625 * libc/machine/frv/Makefile.in: Regenerate.
2626 * libc/machine/h8300/Makefile.in: Regenerate.
2627 * libc/machine/h8500/Makefile.in: Regenerate.
2628 * libc/machine/hppa/Makefile.in: Regenerate.
2629 * libc/machine/i386/Makefile.in: Regenerate.
2630 * libc/machine/i960/Makefile.in: Regenerate.
2631 * libc/machine/iq2000/Makefile.in: Regenerate.
2632 * libc/machine/m32c/Makefile.in: Regenerate.
2633 * libc/machine/m32r/Makefile.in: Regenerate.
2634 * libc/machine/m68hc11/Makefile.in: Regenerate.
2635 * libc/machine/m68k/Makefile.in: Regenerate.
2636 * libc/machine/m88k/Makefile.in: Regenerate.
2637 * libc/machine/mips/Makefile.in: Regenerate.
2638 * libc/machine/mn10200/Makefile.in: Regenerate.
2639 * libc/machine/mn10300/Makefile.in: Regenerate.
2640 * libc/machine/mt/Makefile.in: Regenerate.
2641 * libc/machine/necv70/Makefile.in: Regenerate.
2642 * libc/machine/powerpc/Makefile.in: Regenerate.
2643 * libc/machine/sh/Makefile.in: Regenerate.
2644 * libc/machine/sparc/Makefile.in: Regenerate.
2645 * libc/machine/spu/Makefile.in: Regenerate.
2646 * libc/machine/tic4x/Makefile.in: Regenerate.
2647 * libc/machine/tic80/Makefile.in: Regenerate.
2648 * libc/machine/v850/Makefile.in: Regenerate.
2649 * libc/machine/w65/Makefile.in: Regenerate.
2650 * libc/machine/xscale/Makefile.in: Regenerate.
2651 * libc/machine/xstormy16/Makefile.in: Regenerate.
2652 * libc/machine/z8k/Makefile.in: Regenerate.
2653 * libc/misc/Makefile.in: Regenerate.
2654 * libc/posix/Makefile.in: Regenerate.
2655 * libc/reent/Makefile.in: Regenerate.
2656 * libc/search/Makefile.in: Regenerate.
2657 * libc/signal/Makefile.in: Regenerate.
2658 * libc/stdio/Makefile.in: Regenerate.
2659 * libc/stdio64/Makefile.in: Regenerate.
2660 * libc/stdlib/Makefile.in: Regenerate.
2661 * libc/string/Makefile.in: Regenerate.
2662 * libc/sys/Makefile.in: Regenerate.
2663 * libc/sys/a29khif/Makefile.in: Regenerate.
2664 * libc/sys/arc/Makefile.in: Regenerate.
2665 * libc/sys/arm/Makefile.in: Regenerate.
2666 * libc/sys/d10v/Makefile.in: Regenerate.
2667 * libc/sys/decstation/Makefile.in: Regenerate.
2668 * libc/sys/h8300hms/Makefile.in: Regenerate.
2669 * libc/sys/h8500hms/Makefile.in: Regenerate.
2670 * libc/sys/linux/Makefile.in: Regenerate.
2671 * libc/sys/linux/argp/Makefile.in: Regenerate.
2672 * libc/sys/linux/cmath/Makefile.in: Regenerate.
2673 * libc/sys/linux/dl/Makefile.in: Regenerate.
2674 * libc/sys/linux/iconv/Makefile.in: Regenerate.
2675 * libc/sys/linux/intl/Makefile.in: Regenerate.
2676 * libc/sys/linux/linuxthreads/Makefile.in: Regenerate.
2677 * libc/sys/linux/linuxthreads/machine/Makefile.in: Regenerate.
2678 * libc/sys/linux/linuxthreads/machine/i386/Makefile.in: Regenerate.
2679 * libc/sys/linux/machine/Makefile.in: Regenerate.
2680 * libc/sys/linux/machine/i386/Makefile.in: Regenerate.
2681 * libc/sys/linux/net/Makefile.in: Regenerate.
2682 * libc/sys/linux/stdlib/Makefile.in: Regenerate.
2683 * libc/sys/m88kbug/Makefile.in: Regenerate.
2684 * libc/sys/mmixware/Makefile.in: Regenerate.
2685 * libc/sys/netware/Makefile.in: Regenerate.
2686 * libc/sys/rdos/Makefile.in: Regenerate.
2687 * libc/sys/rtems/Makefile.in: Regenerate.
2688 * libc/sys/sh/Makefile.in: Regenerate.
2689 * libc/sys/sparc64/Makefile.in: Regenerate.
2690 * libc/sys/sun4/Makefile.in: Regenerate.
2691 * libc/sys/sysmec/Makefile.in: Regenerate.
2692 * libc/sys/sysnec810/Makefile.in: Regenerate.
2693 * libc/sys/sysnecv850/Makefile.in: Regenerate.
2694 * libc/sys/sysvi386/Makefile.in: Regenerate.
2695 * libc/sys/sysvnecv70/Makefile.in: Regenerate.
2696 * libc/sys/tic80/Makefile.in: Regenerate.
2697 * libc/sys/w65/Makefile.in: Regenerate.
2698 * libc/sys/z8ksim/Makefile.in: Regenerate.
2699 * libc/syscalls/Makefile.in: Regenerate.
2700 * libc/time/Makefile.in: Regenerate.
2701 * libc/unix/Makefile.in: Regenerate.
2702 * libm/Makefile.in: Regenerate.
2703 * libm/common/Makefile.in: Regenerate.
2704 * libm/machine/Makefile.in: Regenerate.
2705 * libm/machine/i386/Makefile.in: Regenerate.
2706 * libm/machine/spu/Makefile.in: Regenerate.
2707 * libm/math/Makefile.in: Regenerate.
2708 * libm/mathfp/Makefile.in: Regenerate.
2709
2710 * configure: Regenerate.
2711 * iconvdata/configure: Regenerate.
2712 * libc/configure: Regenerate.
2713 * libc/machine/configure: Regenerate.
2714 * libc/machine/i386/configure: Regenerate.
2715 * libc/sys/configure: Regenerate.
2716 * libc/sys/linux/configure: Regenerate.
2717 * libc/sys/linux/linuxthreads/configure: Regenerate.
2718 * libc/sys/linux/linuxthreads/machine/configure: Regenerate.
2719 * libc/sys/linux/linuxthreads/machine/i386/configure: Regenerate.
2720 * libc/sys/linux/machine/configure: Regenerate.
2721 * libc/sys/linux/machine/i386/configure: Regenerate.
2722 * libm/configure: Regenerate.
2723 * libm/machine/configure: Regenerate.
2724 * libm/machine/i386/configure: Regenerate.
2725
aa5341f9
EB
27262007-05-23 Eric Blake <ebb9@byu.net>
2727
2728 * libc/stdio/vfprintf.c (_VFPRINTF_R): Don't truncate %p when
2729 sizeof(void*) is 8 but sizeof(long) is 4.
2730 * libc/stdio/vfscanf.c (__SVFSCANF_R): Likewise. Fix %i scanning
2731 of "-0x". Support "-nan" and "inf" for %e. Audit usage of ungetc
2732 to fix reentrancy and bug on encoding error in multibyte locales.
2733 Always return EOF on read error.
2734
4a9880e0
JJ
27352007-05-23 Patrick Mansfield <patmans@us.ibm.com>
2736
2737 * libc/machine/spu/sys/syscall.h: Update the __send_to_ppe
2738 prototype.
2739 * libc/machine/spu/fclose.c: Use the __send_to_ppe return value
2740 instead of the slot 0 value, remove any now unused variables, and
2741 for some cases, now store the result in an int vs int*.
2742 * libc/machine/spu/feof.c: Ditto.
2743 * libc/machine/spu/ferror.c: Ditto.
2744 * libc/machine/spu/fflush.c: Ditto.
2745 * libc/machine/spu/fgetc.c: Ditto.
2746 * libc/machine/spu/fgetpos.c: Ditto.
2747 * libc/machine/spu/fgets.c: Ditto.
2748 * libc/machine/spu/fileno.c: Ditto.
2749 * libc/machine/spu/fopen.c: Ditto.
2750 * libc/machine/spu/fprintf.c: Ditto.
2751 * libc/machine/spu/fputc.c: Ditto.
2752 * libc/machine/spu/fputs.c: Ditto.
2753 * libc/machine/spu/fread.c: Ditto.
2754 * libc/machine/spu/freopen.c: Ditto.
2755 * libc/machine/spu/fscanf.c: Ditto.
2756 * libc/machine/spu/fseek.c: Ditto.
2757 * libc/machine/spu/fsetpos.c: Ditto.
2758 * libc/machine/spu/ftell.c: Ditto.
2759 * libc/machine/spu/fwrite.c: Ditto.
2760 * libc/machine/spu/getc.c: Ditto.
2761 * libc/machine/spu/getchar.c: Ditto.
2762 * libc/machine/spu/gets.c: Ditto.
2763 * libc/machine/spu/printf.c: Ditto.
2764 * libc/machine/spu/putc.c: Ditto.
2765 * libc/machine/spu/putchar.c: Ditto.
2766 * libc/machine/spu/puts.c: Ditto.
2767 * libc/machine/spu/remove.c: Ditto.
2768 * libc/machine/spu/rename.c: Ditto.
2769 * libc/machine/spu/scanf.c: Ditto.
2770 * libc/machine/spu/setvbuf.c: Ditto.
2771 * libc/machine/spu/snprintf.c: Ditto.
2772 * libc/machine/spu/sprintf.c: Ditto.
2773 * libc/machine/spu/sscanf.c: Ditto.
2774 * libc/machine/spu/tmpfile.c: Ditto.
2775 * libc/machine/spu/tmpnam.c: Ditto.
2776 * libc/machine/spu/ungetc.c: Ditto.
2777 * libc/machine/spu/vfprintf.c: Ditto.
2778 * libc/machine/spu/vfscanf.c: Ditto.
2779 * libc/machine/spu/vprintf.c: Ditto.
2780 * libc/machine/spu/vscanf.c: Ditto.
2781 * libc/machine/spu/vsnprintf.c: Ditto.
2782 * libc/machine/spu/vsprintf.c: Ditto.
2783 * libc/machine/spu/vsscanf.c: Ditto.
2784
9a3ec862
EB
27852007-05-23 Eric Blake <ebb9@byu.net>
2786
2787 * libc/stdio/vfscanf.c (__SVFSCANF_R): Support scanf(%1$s).
2788 Avoid warning when !FLOATING_POINT.
2789 * libc/stdio/vfprintf.c (_VFPRINTF_R): Simplify _NO_POS_ARGS
2790 slightly.
2791
d48670ed
CV
27922007-05-23 Corinna Vinschen <vinschen@redhat.com>
2793
2794 * libc/argz/argz_create_sep.c (argz_create_sep): Initialize *argz_len
2795 to zero.
2796 * libc/include/argz.h: Guard against multiple inclusion. Guard for
2797 use with C++.
2798
8aab2bc2
EB
27992007-05-18 Eric Blake <ebb9@byu.net>
2800
2801 * libc/stdio/vfprintf.c [_WANT_IO_LONG_LONG]: Allow non-gcc
2802 compilers.
2803 * libc/stdio/vfscanf.c: Likewise.
2804
b2250c70
JJ
28052007-05-17 Cary R. <cygcary <at> yahoo.com>
2806
2807 * libm/math/w_atan2.c: Fix atan2 to be consistent with glibc
2808 (atan2(+0,-0), atan2(-0,-0) and atan(-0,+0))
2809 * libm/math/wf_atan2.c: Ditto.
2810
8aab2bc2 28112007-05-17 Yaakov Selkowitz <yselkowitz <at> users.sourceforge.net>
e0500490
JJ
2812
2813 * libm/common/Makefile.am: Add support for exp10, exp10f,
2814 pow10, and pow10f functions.
2815 * libm/common/Makefile.in: Regenerated.
2816 * libm/common/s_pow10.c: New file.
2817 * libm/common/sf_pow10.c: Ditto.
2818 * libm/common/s_exp10.c: Ditto.
2819 * libm/common/sf_exp10.c: Ditto.
2820 * libc/include/math.h [!pow10]: New pow10 prototype.
2821 [!pow10f]: New pow10f prototype.
2822 [!exp10]: New exp10 prototype.
2823 [!exp10f]: New exp10f prototype.
2824
487e9075
EB
28252007-05-17 Charles Wilson <cygwin@...>
2826
2827 * stdio/tmpfile.c: Include <sys/stat.h>.
2828 * stdio64/tmpfile64.c: Ditto.
2829
f6560775
EB
28302007-05-16 Eric Blake <ebb9@byu.net>
2831
d009633d
EB
2832 Close security hole in tmpfile.
2833 * libc/stdio/tmpfile.c (_tmpfile_r): Avoid window between filename
2834 generation and opening the fd.
2835 * libc/stdio64/tmpfile64.c (_tmpfile64_r): Likewise.
2836
895d76fe
EB
2837 * libc/include/math.h (INFINITY, NAN, FP_ILOGB0, FP_ILOGBNAN)
2838 (MATH_ERRNO, MATH_ERREXCEPT, math_errhandling): Add macros
2839 required by POSIX.
2840 * libc/stdlib/ldtoa.c (USE_INFINITY): Rename from INFINITY, to
2841 avoid clash with <math.h>.
2842
f6560775
EB
2843 * libc/stdlib/wctomb_r.c (_wctomb_r): Avoid gcc warnings on cygwin.
2844 * libc/search/hash.c (__hash_open): Likewise.
2845
34507ce0
EB
28462007-05-14 Eric Blake <ebb9@byu.net>
2847
2848 Reduce stack size of *printf.
2849 * libc/stdio/vfprintf.c (_VFPRINTF_R): Fix use of decimal point
2850 in %f. Avoid malloc when possible for %S.
2851 (BUF): Improve stack locality by using smaller size.
2852 (MAXEXPLEN, _PRINTF_FLOAT_TYPE): Define.
2853 (exponent): Use smaller stack size.
2854
b8a37af9
EB
28552007-05-11 Eric Blake <ebb9@byu.net>
2856
0962fe91
EB
2857 Minimize printf/scanf size on platforms that don't need C99.
2858 * acconfig.h (_WANT_IO_C99_FORMATS): New macro.
2859 * newlib.hin (_WANT_IO_C99_FORMATS): Likewise.
2860 * configure.in (newlib-io-c99-formats): New configure option.
2861 (_WANT_IO_C99_FORMATS): Define appropriately.
2862 * configure.host (*-linux*, cygwin): Default c99-formats to yes.
2863 * libc/stdio/vfprintf.c (_VFPRINTF_R) [!_WANT_IO_C99_FORMATS]:
2864 Cripple ' flag; hh, z, j, t sizes; a, A, F, C, S specifiers.
2865 * libc/stdio/vfscanf.c (_VFSCANF_R) [!_WANT_IO_C99_FORMATS]:
2866 Likewise.
2867 * configure: Regenerate.
2868
b8a37af9
EB
2869 * libc/stdio/vfprintf.c (_VFPRINTF_R, cvt, exponent, chclass)
2870 (get_arg): Support '%a' and '%A'.
2871
81274c67
EB
28722007-05-09 Eric Blake <ebb9@byu.net>
2873
2874 Allow zero size with non-null buf in *asnprintf.
2875 * libc/stdio/asnprintf.c (_asnprintf_r, asnprintf): Avoid free'ing
2876 user's buf.
2877 * libc/stdio/asniprintf.c (_asniprintf_r, asniprintf): Likewise.
2878 * libc/stdio/vasniprintf.c (_vasniprintf_r): Likewise.
2879 * libc/stdio/vasnprintf.c (_vasnprintf_r): Likewise.
2880
38ed4e51
EB
28812007-05-07 Charles Wilson <cygwin@...>
2882
2883 * libc/stdio/vfprintf.c: Fix typo in comments that breaks docs.
2884
b9db5292
EB
28852007-05-03 Eric Blake <ebb9@byu.net>
2886
2887 Add support for asnprintf, and improve *printf documentation.
2888 * libc/stdio/Makefile.am (ELIX_SOURCES): Rename...
2889 (ELIX_2_SOURCES): ...to this.
2890 (ELIX_4_SOURCES): Add new variable. Build asnprintf.
2891 (GENERAL_SOURCES): Move dprintf to ELIX_4_SOURCES.
2892 (CHEWOUT_FILES): Include diprintf in documentation.
2893 * libc/stdio/Makefile.in: Regenerate.
2894 * libc/stdio/diprintf.c: Improve documentation.
2895 * libc/stdio/dprintf.c: Likewise.
2896 * libc/stdio/siprintf.c: Likewise.
2897 * libc/stdio/sprintf.c: Likewise.
2898 * libc/stdio/vfprintf.c: Likewise.
2899 * libc/stdio/viprintf.c: Likewise.
2900 * libc/stdio/vsniprintf.c: Consolidate documentation.
2901 * libc/stdio/asiprintf.c: Refer to documentation.
2902 * libc/stdio/asprintf.c: Likewise.
2903 * libc/stdio/fiprintf.c: Likewise.
2904 * libc/stdio/fprintf.c: Likewise.
2905 * libc/stdio/iprintf.c: Likewise.
2906 * libc/stdio/printf.c: Likewise.
2907 * libc/stdio/sniprintf.c: Likewise.
2908 * libc/stdio/vdiprintf.c: Likewise.
2909 * libc/stdio/vdprintf.c: Likewise.
2910 * libc/stdio/vsiprintf.c: Likewise.
2911 * libc/stdio/fvwrite.c (__sfvwrite_r): Handle asnprintf.
2912 * libc/stdio/asniprintf.c (asniprintf, _asniprintf_r): New file.
2913 * libc/stdio/asnprintf.c (asnprintf, _asnprintf_r): New file.
2914 * libc/stdio/vasniprintf.c (vasniprintf, _vasniprintf_r): New
2915 file.
2916 * libc/stdio/vasnprintf.c (vasnprintf, _vasnprintf_r): New file.
2917 * libc/stdio/vdprintf.c (_vdprintf_r): Rewrite to avoid malloc in
2918 typical case.
2919 * libc/stdio/vdiprintf.c (_vdiprintf_r): Likewise.
2920 * libc/include/stdio.h: Add prototypes for new functions; sort
2921 existing functions.
2922
fb3937fa
KH
29232007-05-03 Kazu Hirata <kazu@codesourcery.com>
2924
2925 * libc/machine/m68k/Makefile.am (lib_a_SOURCES): Add memcpy.S
2926 and memset.S.
2927 * libc/machine/m68k/Makefile.in: Regenerate.
2928 * libc/machine/m68k/memcpy.S: Use sub.l followed by dbra.
2929 * libc/machine/m68k/memset.S: Likewise.
2930
b4f09558
EB
29312007-05-01 Eric Blake <ebb9@byu.net>
2932
2933 * libc/stdio64/local64.h: Delete, move contents to...
2934 * libc/stdio/local.h: ...here.
2935 * libc/stdio64/fdopen64.c: Update includes.
2936 * libc/stdio64/fopen64.c: Likewise.
2937 * libc/stdio64/freopen64.c: Likewise.
2938 * libc/stdio64/fseeko64.c: Likewise.
2939 * libc/stdio64/ftello64.c: Likewise.
2940 * libc/stdio/findfp.c (std) [__LARGE64_FILES]: Open stdin, stdout,
2941 and stderr with 64-bit offset.
2942 * libc/stdio/fseek.c (_fseek_r): Avoid compile warning.
2943 * libc/stdio/makebuf.c (__smakebuf_r): Likewise.
2944 * libc/stdio/mktemp.c (_gettemp): Likewise.
2945
2babeb3d
JJ
29462007-05-01 Cary R. <cygcary <at> yahoo.com>
2947
2948 * libm/math/e_pow.c: Fix to be consistent with glibc with regards
2949 to treatment of NaN and +-inf arguments.
2950 * libm/math/ef_pow.c: Ditto.
2951 * libm/math/w_pow.c: Ditto.
2952 * libm/math/wf_pow.c: Ditto.
2953 * libm/math/w_acos.c: Fix domain errors to return NaN.
2954 * libm/math/w_asin.c: Ditto.
2955 * libm/math/wf_acos.c: Ditto.
2956 * libm/math/wf_asin.c: Ditto.
2957 * libm/math/w_log.c: Fix to return NaN for negative number inputs.
2958 * libm/math/wf_log.c: Ditto.
2959 * libm/math/wf_log10.c: Ditto.
2960 * libm/math/w_log10.c: Ditto.
2961
643aff87
JJ
29622007-04-27 Jeff Johnston <jjohnstn@redhat.com>
2963
2964 * libc/machine/m68k/Makefile.am: Temporarily remove
2965 memcpy.S and memset.S until logic can be confirmed for
2966 !(__mcoldfile__) case.
2967 * libc/machine/m68k/Makefile.in: Regenerated.
2968
9e5957de
JJ
29692007-04-27 Kazu Hirata <kazu@codesourcery.com>
2970
2971 * libc/machine/m68k/Makefile.am (lib_a_SOURCES): Add memcpy.S
2972 and memset.S.
2973 * libc/machine/m68k/Makefile.in: Regenerate.
2974 * libc/machine/m68k/memcpy.S, libc/machine/m68k/memset.S: New.
2975
976e9d28
JJ
29762007-04-26 Patrick Mansfield <patmans@us.ibm.com>
2977
2978 * libc/include/ieeefp.h: use prefixed __ieeefp_ macros that can be
2979 overridden via machine/ieeefp.h.
2980 * libc/include/machine/ieeefp.h: Add SPU specific C99 and ieeefp
2981 macros for isnan and related macros.
2982 * libc/include/math.h: Allow C99 isfinite, isinf, and isnan to be
2983 overridden via machine/ieeefp.h.
2984 * libm/machine/spu/Makefile.am: Add new files.
2985 * libm/machine/spu/Makefile.in: Autogenerate with new files.
2986 * libm/machine/spu/sf_fpclassify.c: Add SPU specific __fpclassifyf.
2987 * libm/machine/spu/sf_finite.c: Add SPU specific finitef.
2988 * libm/machine/spu/sf_isinf.c: Add SPU specific isinff.
2989 * libm/machine/spu/sf_isinff.c: Add SPU specific __isinff.
2990 * libm/machine/spu/sf_isnan.c: Add SPU specific isnanf.
2991 * libm/machine/spu/sf_isnanf.c: Add SPU specific __isnanf.
2992 * libm/machine/spu/sf_nan.c: Add SPU specific nanf.
2993
34450bd5
JJ
29942007-04-25 Jeff Johnston <jjohnstn@redhat.com>
2995
2996 * libm/common/s_fpclassify.c (__fpclassifyf): Move this to...
2997 * libm/common/sf_fpclassify.c: ...here. New file.
2998 * libm/common/Makefile.am: Add sf_fpclassify.c.
2999 * libm/common/Makefile.in: Regenerated.
3000
42cd3e6c
JJ
30012007-04-25 Patrick Mansfield <patmans@us.ibm.com>
3002
3003 * libc/machine/spu/sys/errno.h: New file, so spu errno values match
3004 ppu linux values. This file is a copy of the cris/sys/errno.h plus
3005 a few changes (see spu errno.h comments).
3006
8b366086
JJ
30072007-04-25 Eric Blake <ebb9@byu.net>
3008
3009 * libc/stdio/vfprintf.c (get_arg): Support %1$lc. Simplify types
3010 that promote to int.
3011
245240b5
JJ
30122007-04-25 Patrick Mansfield <patmans@us.ibm.com>
3013
b4f09558 3014 * libm/machine/spu/headers/feholdexcept.h: Use *envp not env so
245240b5
JJ
3015 we clear the proper bits in the fpscr, and don't set some random ones.
3016
68f2517f
EB
30172007-04-24 Eric Blake <ebb9@byu.net>
3018
5866c023
EB
3019 * libc/stdio/vfprintf.c (_VFPRINTF_R): Don't zero pad on infinity
3020 or NaN with %05f.
3021
27e5e9ab
EB
3022 * libc/stdio/vfprintf.c (_VFPRINTF_R): Avoid multibyte when not
3023 _MB_CAPABLE.
3024
68f2517f
EB
3025 * libc/include/limits.h (NL_ARGMAX): Define a default value.
3026 * libc/stdio/vfprintf.c (MAX_POS_ARGS): Define in terms of
3027 NL_ARGMAX, if present.
3028
30292007-04-23 Brian Dessent <brian@dessent.net>
3030
3031 * libc/stdio/vfprintf.c (_vfprintf_r): When the alternate-form flag
3032 has been specified with types 'f', 'F', 'g', or 'G', ensure the
3033 trailing decimal is printed.
3034
714d0b7a
JJ
30352007-04-23 Ralf Wildenhues <Ralf.Wildenhues <at> gmx.de>
3036
3037 * confsubdir.m4 (AC_CONFIG_SUBDIRS, _AC_OUTPUT_SUBDIRS): New
3038 file. Override Autoconf-2.59's version of these macros with
3039 fixed handling of multiple adjacent whitespace in arguments.
3040 * aclocal.m4: Regenerated forcefully.
3041 * configure: Ditto.
3042 * Makefile.in: Ditto.
3043 * libc/*Makefile.in: Ditto.
3044 * libc/*aclocal.m4: Ditto.
3045 * libc/*configure: Ditto.
3046 * libm/*Makefile.in: Ditto.
3047 * libm/*aclocal.m4: Ditto.
3048 * libm/*configure: Ditto.
3049
8aebc414
JJ
30502007-04-23 Jeff Johnston <jjohnstn@redhat.com>
3051
3052 * libc/sys/arc/dummy.S: Dummy file to force .S.o suffix rule.
3053 * libc/sys/arc/Makefile.am: Add dummy.S to EXTRA_lib_a_SOURCES
3054 and set lib_a_CCASFLAGS so crto.o will use .S.o default suffix rule.
3055 * libc/sys/arc/Makefile.in: Regenerated.
3056
fb5750bf
JJ
30572007-04-17 Brian Dessent <brian@dessent.net>
3058
3059 * libc/stdio/sscanf.c: Update documentation comments.
3060 * libc/stdio/vfscanf.c (__SVFSCANF_R): Handle j, t, and z modifiers.
3061
ba3ccd63
EB
30622007-04-12 Eric Blake <ebb9@byu.net>
3063
3064 * libc/stdio/vfprintf.c (_VFPRINTF_F, cvt): Don't confuse %F with %e.
3065 (chclass): Recognize 'F', 'X', 'n', and not 'W'.
3066 (get_arg): Handle %1$F, %1$n.
3067
503e2d1c
EB
30682007-04-10 Eric Blake <ebb9@byu.net>
3069
3070 * libc/include/stdio.h (_ELIDABLE_INLINE): Work even when using
3071 CFLAGS=-O0.
3072
17c0c97d
EB
30732007-04-09 Eric Blake <ebb9@byu.net>
3074
3075 * libc/include/stdio.h: Add gcc format attributes to printf and
3076 scanf families.
3077
abe43f42 30782007-04-09 Joel Schopp <jschopp@austin.ibm.com>
17c0c97d 3079
abe43f42
JJ
3080 * libc/machine/spu/strxfrm.c: Fix strxfrm so we still copy data
3081 even if the passed in length n is shorter than the source string.
3082 This matches both the non-spu specific and the glibc strxfrm
3083 behaviour.
3084
0efa93c0
KH
30852007-04-04 Mark Mitchell <mark@codesourcery.com>
3086
3087 * libc/stdlib/__call_atexit.c (__call_exitprocs): Handle atexit
3088 functions registering additional atexit functions.
3089
07278e6c
KH
3090 * testsuite/lib/flags.exp (newlib_include_flags): Drop
3091 -I${newlib_dir}.
3092
748c1917 30932007-04-04 Patrick Mansfield <patmans@us.ibm.com>
17c0c97d 3094
748c1917
JJ
3095 * libc/machine/spu/sys/syscall.h: New file for __send_to_ppe
3096 prototype.
3097 * libc/machine/spu/c99ppe.h: Remove static version of send_to_ppe.
3098 * libc/machine/spu/clearerr.c: Call __send_to_ppe vs send_to_ppe.
3099 * libc/machine/spu/fclose.c: Ditto.
3100 * libc/machine/spu/feof.c: Ditto.
3101 * libc/machine/spu/ferror.c: Ditto.
3102 * libc/machine/spu/fflush.c: Ditto.
3103 * libc/machine/spu/fgetc.c: Ditto.
3104 * libc/machine/spu/fgetpos.c: Ditto.
3105 * libc/machine/spu/fgets.c: Ditto.
3106 * libc/machine/spu/fileno.c: Ditto.
3107 * libc/machine/spu/fopen.c: Ditto.
3108 * libc/machine/spu/fprintf.c: Ditto.
3109 * libc/machine/spu/fputc.c: Ditto.
3110 * libc/machine/spu/fputs.c: Ditto.
3111 * libc/machine/spu/fread.c: Ditto.
3112 * libc/machine/spu/freopen.c: Ditto.
3113 * libc/machine/spu/fscanf.c: Ditto.
3114 * libc/machine/spu/fseek.c: Ditto.
3115 * libc/machine/spu/fsetpos.c: Ditto.
3116 * libc/machine/spu/ftell.c: Ditto.
3117 * libc/machine/spu/fwrite.c: Ditto.
3118 * libc/machine/spu/getc.c: Ditto.
3119 * libc/machine/spu/getchar.c: Ditto.
3120 * libc/machine/spu/gets.c: Ditto.
3121 * libc/machine/spu/perror.c: Ditto.
3122 * libc/machine/spu/printf.c: Ditto.
3123 * libc/machine/spu/putc.c: Ditto.
3124 * libc/machine/spu/putchar.c: Ditto.
3125 * libc/machine/spu/puts.c: Ditto.
3126 * libc/machine/spu/remove.c: Ditto.
3127 * libc/machine/spu/rename.c: Ditto.
3128 * libc/machine/spu/rewind.c: Ditto.
3129 * libc/machine/spu/scanf.c: Ditto.
3130 * libc/machine/spu/setbuf.c: Ditto.
3131 * libc/machine/spu/setvbuf.c: Ditto.
3132 * libc/machine/spu/snprintf.c: Ditto.
3133 * libc/machine/spu/sprintf.c: Ditto.
3134 * libc/machine/spu/sscanf.c: Ditto.
3135 * libc/machine/spu/tmpfile.c: Ditto.
3136 * libc/machine/spu/tmpnam.c: Ditto.
3137 * libc/machine/spu/ungetc.c: Ditto.
3138 * libc/machine/spu/vfprintf.c: Ditto.
3139 * libc/machine/spu/vfscanf.c: Ditto.
3140 * libc/machine/spu/vprintf.c: Ditto.
3141 * libc/machine/spu/vscanf.c: Ditto.
3142 * libc/machine/spu/vsnprintf.c: Ditto.
3143 * libc/machine/spu/vsprintf.c: Ditto.
3144 * libc/machine/spu/vsscanf.c: Ditto.
3145
a706aa2e
JJ
31462007-04-04 Jeff Johnston <jjohnstn@redhat.com>
3147
3148 * libc/argz/argz_insert.c: Add stddef.h to get ptrdiff_t type.
3149
db7aa4b1
JJ
31502007-04-04 Eric Blake <ebb9@byu.net>
3151
3152 * libc/stdio/asiprintf.c (_asiprintf_r): Fix reentrancy.
3153 (asiprintf): Avoid overhead.
3154 * libc/stdio/asprintf.c (_asprintf_r): Fix reentrancy.
3155 (asprintf): Avoid overhead.
3156 * libc/stdio/diprintf.c (_diprintf_r, diprintf): New file.
3157 * libc/stdio/dprintf.c (_dprintf_r, dprintf): Use _DEFUN.
3158 * libc/stdio/fiprintf.c (_fiprintf_r): Add reentrant version.
3159 (fiprintf): Avoid overhead.
3160 * libc/stdio/fprintf.c (_fprintf_r): Add reentrant version.
3161 (fprintf): Avoid overhead.
3162 * libc/stdio/iprintf.c (_iprintf_r): Use _DEFUN.
3163 (iprintf): Avoid overhead.
3164 * libc/stdio/printf.c (_printf_r): Use _DEFUN.
3165 (printf): Avoid overhead.
3166 * libc/stdio/vasiprintf.c (vasiprintf): Reduce binary size.
3167 * libc/stdio/vasprintf.c (vasprintf): Reduce binary size.
3168 * libc/stdio/vdiprintf.c (_vdiprintf_r, vdiprintf): New file.
3169 * libc/stdio/vdprintf.c (vdprintf): Avoid overhead.
3170 * libc/stdio/vsiprintf.c (vsiprintf): Reduce binary size.
3171 * libc/stdio/vsniprintf.c (vsniprintf): Reduce binary size.
3172 * libc/stdio/vsnprintf.c (vsnprintf): Reduce binary size.
3173 * libc/stdio/vsprintf.c (vsprintf): Reduce binary size.
3174 * libc/stdio/Makefile.am (GENERAL_SOURCES): Add diprintf.c,
3175 vdiprintf.c.
3176 * libc/include/stdio.h (diprintf, _diprintf_r, vdiprintf)
3177 (_vdiprintf_r, _fiprintf_r, _vfiprintf_r): Add prototypes.
3178
2c58b5a5
DK
31792007-03-30 Dave Korn <dave.korn@artimi.com>
3180
3181 * libc/include/stdio.h (_ELIDABLE_INLINE): New macro to conceal
3182 conflicting inline semantics between C99 and GNU89.
3183 (__sgetc_r): Replace static inline with _ELIDABLE_INLINE to be
3184 compatible with -fkeep-inline-functions usage.
3185 (__sputc_r): Likewise for consistency even though disabled.
3186
519aec5d
NC
31872007-03-29 Nick Clifton <nickc@redhat.com>
3188
3189 Reflect changes made to generic vfprintf.c:
3190 * libc/machine/powerpc/vfprintf.c (__sprint): Rename to __sprint_r
3191 and add a "struct reent *" argument.
3192 (__sbprintf): Rename to __sbprintf_r, add a "struct reent *"
3193 argument and call _VFPRINTF_R instead of VFPRINTF.
3194 (_VFPRINTF_R): Add data pointer to call to cantwrite().
3195 Fix uses of __sprint() and __sbprintf.
3196
31972007-03-20 Nick Clifton <nickc@redhat.com>
3198
3199 Reflect changes made to generic vfprintf.c:
3200 * libc/machine/powerpc/vfprintf.c (__sprint): Rename to __sprint_r
3201 and add a "struct reent *" argument.
3202 (__sbprintf): Rename to __sbprintf_r, add a "struct reent *"
3203 argument and call _VFPRINTF_R instead of VFPRINTF.
3204 (_VFPRINTF_R): Add data pointer to call to cantwrite().
3205 Fix uses of __sprint() and __sbprintf.
3206
443871a6
JJ
32072007-03-16 Charles Wilson <cygwin@...>
3208
3209 * libc/argz/argz_insert.c: "before" pointer is
3210 invalid after *argz realloc. Compute offset
3211 between "before" and *argz, and use it after
3212 reallocation instead.
3213
a167bcd8
JJ
32142007-03-16 Eric Blake <ebb9@byu.net>
3215
3216 * libc/stdio64/fseek064.c (_fseeko64_r): Fix reentrancy.
3217 * libc/stdio64/freopen64.c (_freopen64_r): Ditto.
3218
826b5591
JJ
32192007-03-15 Jeff Johnston <jjohnstn@redhat.com>
3220
3221 * configure.in: Add new --enable-newlib-reent-small option.
3222 * configure: Regenerated.
3223 * acconfig.h: Add _WANT_REENT_SMALL.
3224 * newlib.hin: Regenerated minus PACKAGE macros to add
3225 _WANT_REENT_SMALL macro.
3226 * libc/include/sys/config.h[_WANT_REENT_SMALL]: Set _REENT_SMALL
3227 if not already set.
3228 * libc/stdio/fflush.c[_REENT_SMALL]: Return immediately if
3229 there is no buffer.
3230 * libc/stdio/local.h[_REENT_SMALL]: Fix CHECK_INIT macro to
3231 use reentrant pointer passed in when resetting the file
3232 pointer to one of the std streams.
3233
14ba5e14
JJ
32342007-03-15 Eric Blake <ebb9@byu.net>
3235
3236 * libc/stdio/local.h (cantwrite, FREEUB, FREELB): Make reentrant.
3237 (__smakebuf): Rename...
3238 (__smakebuf_r): to this.
3239 * libc/stdio/fvwrite.h (__swsetup_r): Rename, from __swsetup.
3240 * libc/stdio/makebuf.c (__smakebuf): Detect failed asprint
3241 allocation, then rename...
3242 (__smakebuf_r): ...to this and fix reentrancy.
3243 * libc/stdio/wsetup.c (__swsetup): Detect failed asprintf
3244 allocation, then rename...
3245 (__swsetup_r): ...to this and fix reentrancy.
3246 * libc/stdio/fseek.c (_fseek_r): Fix reentrancy.
3247 * libc/stdio/refill.c (__srefill_r): Likewise.
3248 * libc/stdio/fclose.c (_fclose_r): Likewise.
3249 * libc/stdio/fread.c (_fread_r): Likewise.
3250 * libc/stdio/freopen.c (_freopen_r): Likewise.
3251 * libc/stdio/wbuf.c (__swbuf_r): Likewise.
3252 * libc/stdio64/fseeko64.c (_fseeko64_r): Likewise.
3253 * libc/stdio/fvwrite.c (__sfvwrite_r): Set errno properly on
3254 failed asprintf allocation, and fix reentrancy.
3255 * libc/stdio/snprintf.c (snprintf, _snprintf_r): Report overflow,
3256 as required by POSIX.
3257 * libc/stdio/sniprintf.c (sniprintf, _sniprintf_r): Likewise.
3258 * libc/stdio/vsnprintf.c (vsnprintf, _vsnprintf_r): Likewise.
3259 * libc/stdio/vsniprintf.c (vsniprintf, _vsniprintf_r): Likewise.
3260
99304ce6
JJ
32612007-03-12 Eric Blake <ebb9@byu.net>
3262
3263 * libc/stdio/fvwrite.c (__sfvwrite_r): Fix reentrancy.
3264 * libc/stdio/vasprintf.c (vasprintf, _vasprintf_r): Pass failed
3265 allocation to caller.
3266 * libc/stdio/asprintf.c (_asprintf_r, asprintf): Likewise.
3267 * libc/stdio/asiprintf.c (_asiprintf_r, asiprintf): Likewise.
3268 * libc/stdio/vasiprintf.c (vasiprintf, _vasiprintf_r): Likewise.
3269
d9edc05f
JJ
32702007-02-23 Jeff Johnston <jjohnstn@redhat.com>
3271
3272 * libm/math/w_pow.c: Fix typo in documentation comment.
3273
59673dbb
JJ
32742007-02-21 Patrick Mansfield <patmans@us.ibm.com>
3275
3276 * libc/reent/timer.c: Removed (split into two new files).
3277 * libc/reent/timesr.c: New file for _times_r.
3278 * libc/reent/gettimeofdayr.c: New file out _gettimeofday_r.
3279 * reent/Makefile.in: Remove timer.c, add timesr.c and
3280 gettimeofdayr.c.
3281 * libc/reent/Makefile.am: Regenerate.
3282
547c5c61
JJ
32832007-02-20 Patrick Mansfield <patmans@us.ibm.com>
3284
3285 * configure.host: Build SPU with default_newlib_atexit_dynamic_alloc="no".
3286
3b7e017e
JJ
32872007-02-20 Kazunori Asayama <asayama@sm.sony.co.jp>
3288
3289 * libc/machine/spu/Makefile.am: Add new objects.
3290 * libc/machine/spu/Makefile.in: Regenerated.
3291 * libc/machine/spu/fiprintf.c: New file. Add implementation of
3292 integer-only version.
3293 * libc/machine/spu/fiscanf.c: Ditto.
3294 * libc/machine/spu/iprintf.c: Ditto.
3295 * libc/machine/spu/iscanf.c: Ditto.
3296 * libc/machine/spu/siprintf.c: Ditto.
3297 * libc/machine/spu/siscanf.c: Ditto.
3298 * libc/machine/spu/sniprintf.c: Ditto.
3299 * libc/machine/spu/vfiprintf.c: Ditto.
3300 * libc/machine/spu/vfiscanf.c: Ditto.
3301 * libc/machine/spu/viprintf.c: Ditto.
3302 * libc/machine/spu/viscanf.c: Ditto.
3303 * libc/machine/spu/vsiprintf.c: Ditto.
3304 * libc/machine/spu/vsiscanf.c: Ditto.
3305 * libc/machine/spu/vsniprintf.c: Ditto.
3306 * libc/machine/spu/fprintf.c: Add support for integer-only
3307 version.
3308 * libc/machine/spu/fscanf.c: Ditto.
3309 * libc/machine/spu/printf.c: Ditto.
3310 * libc/machine/spu/scanf.c: Ditto.
3311 * libc/machine/spu/snprintf.c: Ditto.
3312 * libc/machine/spu/sprintf.c: Ditto.
3313 * libc/machine/spu/sscanf.c: Ditto.
3314 * libc/machine/spu/vfprintf.c: Ditto.
3315 * libc/machine/spu/vfscanf.c: Ditto.
3316 * libc/machine/spu/vprintf.c: Ditto.
3317 * libc/machine/spu/vscanf.c: Ditto.
3318 * libc/machine/spu/vsnprintf.c: Ditto.
3319 * libc/machine/spu/vsprintf.c: Ditto.
3320 * libc/machine/spu/vsscanf.c: Ditto.
3321
960e5d8f
JJ
33222007-02-20 Kazunori Asayama <asayama@sm.sony.co.jp>
3323
3324 * libc/include/stdio.h: Add declaration for vsiprintf.
3325
958e329d
JJ
33262007-02-14 Patrick Mansfield <patmans@us.ibm.com>
3327
3328 Add a floating point environment for SPU (cell):
3329
3330 * configure.host: add libm_machine_dir=spu.
3331 * libm/machine/configure: Add spu.
3332 * libm/machine/configure.in: regenerated with spu added.
3333 * libc/machine/spu/include/fenv.h: New file.
3334 * libc/machine/spu/sys/fenv.h: Ditto.
3335 * libm/machine/spu/Makefile.am: Ditto.
3336 * libm/machine/spu/Makefile.in: Ditto.
3337 * libm/machine/spu/aclocal.m4: Ditto.
3338 * libm/machine/spu/configure: Ditto.
3339 * libm/machine/spu/configure.in: Ditto.
3340 * libm/machine/spu/fe_dfl_env.c: Ditto.
3341 * libm/machine/spu/feclearexcept.c: Ditto.
3342 * libm/machine/spu/fegetenv.c: Ditto.
3343 * libm/machine/spu/fegetexceptflag.c: Ditto.
3344 * libm/machine/spu/fegetround.c: Ditto.
3345 * libm/machine/spu/feholdexcept.c: Ditto.
3346 * libm/machine/spu/feraiseexcept.c: Ditto.
3347 * libm/machine/spu/fesetenv.c: Ditto.
3348 * libm/machine/spu/fesetexceptflag.c: Ditto.
3349 * libm/machine/spu/fesetround.c: Ditto.
3350 * libm/machine/spu/fetestexcept.c: Ditto.
3351 * libm/machine/spu/feupdateenv.c: Ditto.
3352 * libm/machine/spu/headers/feclearexcept.h: Ditto.
3353 * libm/machine/spu/headers/fefpscr.h: Ditto.
3354 * libm/machine/spu/headers/fegetenv.h: Ditto.
3355 * libm/machine/spu/headers/fegetexceptflag.h: Ditto.
3356 * libm/machine/spu/headers/fegetround.h: Ditto.
3357 * libm/machine/spu/headers/feholdexcept.h: Ditto.
3358 * libm/machine/spu/headers/feraiseexcept.h: Ditto.
3359 * libm/machine/spu/headers/fesetenv.h: Ditto.
3360 * libm/machine/spu/headers/fesetexceptflag.h: Ditto.
3361 * libm/machine/spu/headers/fesetround.h: Ditto.
3362 * libm/machine/spu/headers/fetestexcept.h: Ditto.
3363 * libm/machine/spu/headers/feupdateenv.h: Ditto.
3364
4f7e59f2
CV
33652007-02-14 Corinna Vinschen <corinna@vinschen.de>
3366
3367 * libc/include/sys/features.h: Add _POSIX_MESSAGE_PASSING for
3368 Cygwin.
3369
d7e4c7a8
CV
33702007-02-08 Corinna Vinschen <corinna@vinschen.de>
3371
3372 * libc/include/sys/features.h: Add _POSIX_SHARED_MEMORY_OBJECTS for
3373 Cygwin. Fix value of _POSIX_SEMAPHORES. Fix formatting.
3374
0e37a2e6
CV
33752007-02-07 Corinna Vinschen <corinna@vinschen.de>
3376
3377 * libc/include/sys/features.h: Add definition of all supported
3378 _POSIX_xxx values for Cygwin.
3379 * libc/include/sys/types.h (pthread_rwlock_t): Omit definition
3380 on Cygwin.
3381 (pthread_rwlockattr_t): Ditto.
3382 * libc/include/sys/unistd.h: Define all _SC_xxx values as
3383 required by SUSv3. Unify formatting.
3384
6699fabb
JJ
33852007-02-02 Ralf Corsépius <ralf.corsepius@rtems.org>
3386
3387 * libc/include/sys/errno.h: Add ECANCELED.
3388
22a339e8 33892007-02-01 Joel Schopp <jschopp@austin.ibm.com>
ba3ccd63 3390 Kazunori Asayama <asayama@sm.sony.co.jp>
22a339e8
JJ
3391
3392 * libc/machine/spu/Makefile.am: Add objects.
3393 * libc/machine/spu/Makefile.in: Regenerated.
3394 * libc/machine/spu/vsscanf.c: New file. Add a stdio function
3395 implementation.
3396 * libc/machine/spu/snprintf.c: Ditto.
3397 * libc/machine/spu/sprintf.c: Ditto.
3398 * libc/machine/spu/sscanf.c: Ditto.
3399 * libc/machine/spu/remove.c: Ditto.
3400 * libc/machine/spu/rename.c: Ditto.
3401 * libc/machine/spu/tmpnam.c: Ditto.
3402 * libc/machine/spu/vsnprintf.c: Add initialization routine of
3403 stdio stuffs.
3404 * libc/machine/spu/vsprintf.c: Ditto.
3405
7d592bb1 34062007-02-01 Joel Schopp <jschopp@austin.ibm.com>
ba3ccd63 3407 Kazunori Asayama <asayama@sm.sony.co.jp>
7d592bb1
JJ
3408
3409 * configure.host: Enable SPU specific stdio directory.
3410 * libc/machine/spu/Makefile.am: Add objects.
3411 * libc/machine/spu/Makefile.in: Regenerated.
3412 * libc/machine/spu/c99ppe.h: Add macros and function
3413 declarations to initialize SPU specific stdio stuffs.
3414 * libc/machine/spu/stdio.c: Add functions to manage Cell SPU
3415 specific FILE structures.
3416 * libc/machine/spu/perror.c: Add initialization routine of
3417 stdio stuffs.
3418 * libc/machine/spu/printf.c: Ditto.
3419 * libc/machine/spu/putchar.c: Ditto.
3420 * libc/machine/spu/puts.c: Ditto.
3421 * libc/machine/spu/vprintf.c: Ditto.
3422 * libc/machine/spu/clearerr.c: New file. Add a stdio function
3423 implementation.
3424 * libc/machine/spu/feof.c: Ditto.
3425 * libc/machine/spu/ferror.c: Ditto.
3426 * libc/machine/spu/fileno.c: Ditto.
3427 * libc/machine/spu/fopen.c: Ditto.
3428 * libc/machine/spu/fclose.c: Ditto.
3429 * libc/machine/spu/freopen.c: Ditto.
3430 * libc/machine/spu/fflush.c: Ditto.
3431 * libc/machine/spu/fseek.c: Ditto.
3432 * libc/machine/spu/ftell.c: Ditto.
3433 * libc/machine/spu/rewind.c: Ditto.
3434 * libc/machine/spu/fgetpos.c: Ditto.
3435 * libc/machine/spu/fsetpos.c: Ditto.
3436 * libc/machine/spu/fread.c: Ditto.
3437 * libc/machine/spu/fwrite.c: Ditto.
3438 * libc/machine/spu/getc.c: Ditto.
3439 * libc/machine/spu/getchar.c: Ditto.
3440 * libc/machine/spu/gets.c: Ditto.
3441 * libc/machine/spu/fgetc.c: Ditto.
3442 * libc/machine/spu/fgets.c: Ditto.
3443 * libc/machine/spu/ungetc.c: Ditto.
3444 * libc/machine/spu/putc.c: Ditto.
3445 * libc/machine/spu/fputc.c: Ditto.
3446 * libc/machine/spu/fputs.c: Ditto.
3447 * libc/machine/spu/vfprintf.c: Ditto.
3448 * libc/machine/spu/vfscanf.c: Ditto.
3449 * libc/machine/spu/fprintf.c: Ditto.
3450 * libc/machine/spu/fscanf.c: Ditto.
3451 * libc/machine/spu/scanf.c: Ditto.
3452 * libc/machine/spu/vscanf.c: Ditto.
3453 * libc/machine/spu/setbuf.c: Ditto.
3454 * libc/machine/spu/setvbuf.c: Ditto.
3455 * libc/machine/spu/tmpfile.c: Ditto.
3456
34572007-02-01 Jeff Johnston <jjohnstn@redhat.com>
3458
3459 * libc/include/sys/config.h[__SPU__]: Define __CUSTOM_FILE_IO__.
3460 * libc/include/stdio.h[!__CUSTOM_FILE_IO__]: Add flag check
17c0c97d 3461 around stdio macros that manipulate fields in the normal file
7d592bb1
JJ
3462 structure.
3463 * libc/include/sys/reent.h[__CUSTOM_FILE_IO__]: Include
3464 <sys/custom_file.h> to define custom FILE structure.
3465 * libc/include/sys/custom_file.h: New default header file
3466 that generates error if not overridden when __CUSTOM_FILE_IO__ set.
3467 * libc/machine/spu/sys/custom_file.h: New file.
3468
0733ae3b
JJ
34692007-01-31 Kazunori Asayama <asayama@sm.sony.co.jp>
3470
3471 * configure.host: Define stdio directory as a variable.
3472 * libc/Makefile.am: Define stdio related names
3473 as macros.
3474 * libc/configure.in: Add detection routine of stdio directory.
3475 * libc/Makefile.in: Regenerated.
3476 * libc/configure: Ditto.
3477 * libc/argz/Makefile.in: Ditto.
3478 * libc/ctype/Makefile.in: Ditto.
3479 * libc/errno/Makefile.in: Ditto.
3480 * libc/iconv/Makefile.in: Ditto.
3481 * libc/iconv/ccs/Makefile.in: Ditto.
3482 * libc/iconv/ccs/binary/Makefile.in: Ditto.
3483 * libc/iconv/ces/Makefile.in: Ditto.
3484 * libc/iconv/lib/Makefile.in: Ditto.
3485 * libc/locale/Makefile.in: Ditto.
3486 * libc/misc/Makefile.in: Ditto.
3487 * libc/posix/Makefile.in: Ditto.
3488 * libc/reent/Makefile.in: Ditto.
3489 * libc/search/Makefile.in: Ditto.
3490 * libc/signal/Makefile.in: Ditto.
3491 * libc/stdio/Makefile.in: Ditto.
3492 * libc/stdio64/Makefile.in: Ditto.
3493 * libc/stdlib/Makefile.in: Ditto.
3494 * libc/string/Makefile.in: Ditto.
3495 * libc/syscalls/Makefile.in: Ditto.
3496 * libc/time/Makefile.in: Ditto.
3497 * libc/unix/Makefile.in: Ditto.
3498
cb7ba0e1
BE
34992007-01-30 Ben Elliston <bje@au.ibm.com>
3500
c7cd7849
BE
3501 * libc/machine/spu/vsnprintf.c (c99_vsnprintf_t): Const-qualify
3502 fmt member.
3503 * libc/machine/spu/printf.c (c99_printf_t): Likewise.
3504 (printf): Pass fmt to va_start to suppress a warning.
3505
cb7ba0e1
BE
3506 * libc/search/hash.c (init_hash): Make `info' parameter const.
3507
f89533c1
JJ
35082007-01-19 Kazunori Asayama <asayama@sm.sony.co.jp>
3509
3510 * libc/machine/spu/c99ppe.h: Replace vector with __vector.
3511 * libc/machine/spu/vec_literal.h: Ditto.
3512 * libc/machine/spu/strncmp.c: Ditto.
3513
94b91791
JJ
35142007-01-15 Joseph Myers <joseph@codesourcery.com>
3515 Kazu Hirata <kazu@codesourcery.com>
3516
3517 * libc/machine/powerpc/setjmp.S (setjmp, longjmp): Add support
3518 for E500V1 and E500V2.
3519
26190be1
JJ
35202007-01-11 Jeff Johnston <jjohnstn@redhat.com>
3521
3522 * libm/configure.in: Always configure machine directory.
3523 * libm/Makefile.am: Make machine subdirectory part of SUBDIRS
3524 unconditionally.
3525 * libm/configure: Regenerated.
3526 * libm/Makefile.in: Ditto.
3527 * libm/*/Makefile.in: Ditto.
3528
8e0e8f40
JJ
35292007-01-05 Brian Ford <Brian.Ford@FlightSafety.com>
3530
3531 * configure.host (*-*-cygwin*): Define HAVE_BLKSIZE.
3532
9cd4a2de
JJ
35332007-01-02 Ben Elliston <bje@au.ibm.com>
3534
ba3ccd63
EB
3535 * doc/makedoc.c: Include <stdlib.h>.
3536 (malloc, realloc): Remove extern declarations.
9cd4a2de 3537
5fdec53f 35382006-12-18 Jeff Johnston <jjohnstn@redhat.com>
a4b11782 3539
ba3ccd63
EB
3540 * NEWS: Update with 1.15.0 info.
3541 * README: Ditto.
3542 * acinclude.m4: Change version number to 1.15.0.
3543 * aclocal.m4: Regenerated.
3544 * configure: Ditto.
3545 * doc/aclocal.m4: Ditto.
3546 * doc/configure: Ditto.
3547 * libc/*/aclocal.m4: Ditto.
3548 * libc/*/configure: Ditto.
3549 * libc/libc.texinfo: Ditto.
3550 * libm/*/aclocal.m4: Ditto.
3551 * libm/*/configure: Ditto.
3552 * libm/libm.texinfo: Ditto.
3553 * libc/sys/linux/shared.ld: Add VERS_1.15.
a4b11782 3554
def943c1
JJ
35552006-12-18 Kazu Hirata <kazu@codesourcery.com>
3556
3557 Merge from newlib-csl-20060320-branch:
3558 2006-12-01 Nathan Sidwell <nathan@codesourcery.com>
3559 Kazu Hirata <kazu@codesourcery.com>
3560
3561 * configure.host: Recognize fido.
3562
17c0c97d 35632006-12-18 Joel Schopp <jschopp@austin.ibm.com>
505ccc75 3564
ba3ccd63
EB
3565 * libc/machine/spu/c99ppe.h: New file
3566 * libc/machine/spu/perror.c: New file to override libc/stdio version.
3567 * libc/machine/spu/printf.c: New file
3568 * libc/machine/spu/putchar.c: New file
3569 * libc/machine/spu/puts.c: New file
3570 * libc/machine/spu/vprintf.c: New file
3571 * libc/machine/spu/vsnprintf.c: New file
3572 * libc/machine/spu/vsprintf.c: New file
3573 * libc/machine/spu/Makefile.am: Add new targets.
3574 * libc/machine/spu/Makefile.in: Regenerated.
505ccc75 3575
78b7c6f8
JJ
35762006-12-18 Jeff Johnston <jjohnstn@redhat.com>
3577
ba3ccd63
EB
3578 * aclocal.m4 */aclocal.m4: Regenerated using aclocal 1.9.6.
3579 * Makefile.in */Makefile.in: Regenerated using automake 1.9.6.
78b7c6f8 3580
f5222560
JJ
35812006-12-18 Jeff Johnston <jjohnstn@redhat.com>
3582
3583 * libc/stdlib/mallocr.c (malloc_extend_top): Add patch from
3584 2.6.5 version of Doug Lea's malloc which is the basis of
3585 this code.
3586
9b354d7f
JJ
35872006-12-18 Kazunori Asayama <asayama@sm.sony.co.jp>
3588
3589 * libc/include/machine/setjmp.h[__SPU__]: Replace vector with __vector.
3590
4c0b8a07 35912006-12-14 Jeff Johnston <jjohnstn@redhat.com>
ba3ccd63 3592 Eric Blake <ebb9@byu.net>
4c0b8a07 3593
ba3ccd63
EB
3594 * libc/stdio/fflush.c (fflush): On seekable streams, always flush
3595 read but unused data.
3596 * libc/stdio/fclose.c (_fclose_r): Always flush streams, since
3597 even read streams may have side effects that must happen.
4c0b8a07 3598
dd52bb72
JJ
35992006-12-13 Joel Schopp <jschopp@austin.ibm.com>
3600
ba3ccd63 3601 * libc/machine/spu/setjmp.S: Fix to handle registers past 115
6a200958
JJ
3602 correctly.
3603
36042006-12-13 Joel Schopp <jschopp@austin.ibm.com>
3605
ba3ccd63 3606 * libc/include/alloca.h: Add undef alloca to work with xlc.
dd52bb72 3607
4e051d91
JJ
36082006-12-12 Joel Schopp <jschopp@austin.ibm.com>
3609
ba3ccd63 3610 * libc/include/machine/setjmp.h[__SPU__]: Redefine _JBTYPE for
6a200958 3611 cell spu.
4e051d91 3612
489bb390
JJ
36132006-12-04 Kazunori Asayama <asayama@sm.sony.co.jp>
3614
3615 * libc/machine/spu/strncpy.c: Add padding.
3616
3e2d7a91
JJ
36172006-12-04 Kazunori Asayama <asayama@sm.sony.co.jp>
3618
17c0c97d 3619 * testsuite/newlib.string/tstring.c:
3e2d7a91 3620
0a2ef998
JJ
36212006-12-01 Kazunori Asayama <asayama@sm.sony.co.jp>
3622
3623 * libc/machine/spu/strchr.c: Fix mask for misaligned string.
3624 * libc/machine/spu/strrchr.c: Ditto.
3625
75190a8f
JJ
36262006-11-30 Lev Bishop <lev.bishop@gmail.com>
3627
3628 * libc/include/math.h: Allow C99 functions/macros to be
3629 defined for C++ even when __STRICT_ANSI__.
3630
7d794364
JJ
36312006-11-29 Jeff Johnston <jjohnstn@redhat.com>
3632
3633 * libc/stdio/makebuf.c (__smakebuf): If dealing with
3634 an asprintf-family buffer, make the default initial size 64.
3635
c4c7f139
JJ
36362006-11-29 Eric Blake <ebb9@byu.net>
3637
3638 * libc/stdio/fvwrite.c (__sfvwrite_r): Avoid off-by-one error in
3639 asprintf, as well as quadratic realloc behavior.
3640
36412006-11-29 Kazunori Asayama <asayama@sm.sony.co.jpi
80c6ead2
JJ
3642
3643 * libc/machine/spu/memset.c: Fix type of explicit cast.
3644 * libc/machine/spu/strncmp.c: Add explicit cast.
3645 * libc/machine/spu/strrchr.c: Ditto.
3646 * libc/machine/spu/strspn.c: Ditto.
3647
9bc5b618
JJ
36482006-11-22 Luca Barbato <lu_zero@gentoo.org>
3649
3650 * libc/machine/spu/memcpy.c: Use spu_splats, explicit cast.
3651 * libc/machine/spu/memmove.c: Use spu_splats, explicit cast.
3652 * libc/machine/spu/memset.c: Use spu_splats, remove apple-cast.
3653 * libc/machine/spu/strchr.c: Use spu_splats, remove apple-cast.
3654 * libc/machine/spu/strncat.c: Explicit cast.
3655 * libc/machine/spu/strncmp.c: Use spu_splats.
3656 * libc/machine/spu/strncpy.c: Explicit cast.
3657 * libc/machine/spu/strrchr.c: Use spu_splats.
3658 * libc/machine/spu/strspn.c: Use spu_splats.
3659
52077eb2
JJ
36602006-11-15 Till Straumann <strauman@slac.stanford.edu>
3661
3662 * libc/time/tzset_r.c (_tzset_r): Initialize local variable.
3663
d1a2fe1a
JJ
36642006-11-14 Eric Blake <ebb9@byu.net>
3665
3666 * libc/stdio/vfprintf.c (_vfprintf_r): Support ' flag.
3667 (chclass): ' is a flag. j, t, and z are modifiers.
3668
9842c7e4 36692006-11-08 Jie Zhang <jie.zhang@analog.com>
292f8e23
JJ
3670
3671 * configure.host: Add support for bfin.
3672 * libc/include/machine/ieeefp.h: Define __IEEE_LITTLE_ENDIAN for bfin.
3673 * libc/include/machine/setjmp.h: Define _JBLEN for bfin.
3674 * libc/machine/bfin/aclocal.m4: Generate.
3675 * libc/machine/bfin/configure.in: New.
3676 * libc/machine/bfin/configure: Generate.
3677 * libc/machine/bfin/Makefile.am: New.
3678 * libc/machine/bfin/Makefile.in: Generate.
3679 * libc/machine/bfin/setjmp.S: New.
3680 * libc/machine/bfin/longjmp.S: New.
3681 * libc/machine/configure.in: Add bfin support.
3682 * libc/machine/configure: Generate.
3683
b1755fe7
CV
36842006-11-07 Corinna Vinschen <corinna@vinschen.de>
3685
3686 * libc/include/sys/unistd.h (_SC_STREAM_MAX): Define on Cygwin.
3687 (_PC_FILESIZEBITS): Add definition.
3688 (_PC_2_SYMLINKS): Ditto.
3689 (_PC_SYMLINK_MAX): Ditto.
3690
d384d868
JJ
36912006-10-27 Joel Schopp <jschopp@austin.ibm.com>
3692
3693 * libc/machine/spu/memcpy.c: Override generic function with vectorized
3694 version optimized for the cell spu.
3695 * libc/machine/spu/memmove.c: Ditto.
3696 * libc/machine/spu/memset.c: Ditto.
3697 * libc/machine/spu/strcat.c: Ditto.
3698 * libc/machine/spu/strchr.c: Ditto.
3699 * libc/machine/spu/strcmp.c: Ditto.
3700 * libc/machine/spu/strcpy.c: Ditto.
3701 * libc/machine/spu/strcspn.c: Ditto.
3702 * libc/machine/spu/strlen.c: Ditto.
3703 * libc/machine/spu/strncat.c: Ditto.
3704 * libc/machine/spu/strncmp.c: Ditto.
3705 * libc/machine/spu/strncpy.c: Ditto.
3706 * libc/machine/spu/strpbrk.c: Ditto.
3707 * libc/machine/spu/strrchr.c: Ditto.
3708 * libc/machine/spu/strspn.c: Ditto.
3709 * libc/machine/spu/strxfrm.c: Ditto.
17c0c97d 3710 * libc/machine/spu/vec_literal.h: Add abstraction of vector literals,
d384d868
JJ
3711 removing altivec style initializers.
3712 * libc/machine/spu/Makefile.am: Add new files to list so they build
3713 * libc/machine/spu/Makefile.in: Regenerate from new Makefile.am
3714
f29fdb2f
JJ
37152006-10-27 Jeff Johnston <jjohnstn@redhat.com>
3716
3717 * README: Add a brief section on how to regenerate
3718 configuration files in newlib.
3719
884dc68f
JJ
37202006-10-25 Vladimir Prus <vladimir@codesourcery.com>
3721
3722 * libc/include/math.h: (exception): Add a comment
3723 telling fixincludes that we handle C vs. C++ issue.
3724
f8fe93f9
JJ
37252006-10-11 Yang Tse <yangsita@gmail.com>
3726
6d441576
CV
3727 * libc/include/machine/setjmp.h: Use __extension__ keyword for gcc's
3728 braced-groups.
f8fe93f9 3729
d95c5792
CV
37302006-10-11 Corinna Vinschen <corinna@vinschen.de>
3731
3732 * libc/reent/reeent.c (_reclaim_reent): Free _REENT_MP_RESULT.
3733
e5e148d1
JJ
37342006-09-26 Jeff Johnston <jjohnstn@redhat.com>
3735
3736 * libc/include/stdio.h[_REENT_SMALL]: Do not allow macros
3737 for clearerr, feof, or fileno.
17c0c97d
EB
3738 * libc/include/sys/reent.h[_REENT_SMALL](struct _reent): Change
3739 the dummy std stream scheme to use pointers to const external
e5e148d1
JJ
3740 fake files, one for each standard stream.
3741 * libc/stdio/local.h (CHECK_INIT): Change to take a file pointer
3742 argument. For _REENT_SMALL, reset the file pointer if it
3743 matches one of the fake std stream pointers.
3744 * libc/stdio/clearerr.c: Fix CHECK_INIT macro to add file pointer
3745 argument.
3746 * libc/stdio/fclose.c: Ditto.
3747 * libc/stdio/feof.c: Ditto.
3748 * libc/stdio/ferror.c: Ditto.
3749 * libc/stdio/fflush.c: Ditto.
3750 * libc/stdio/fgetc.c: Ditto.
3751 * libc/stdio/fgets.c: Ditto.
3752 * libc/stdio/fileno.c: Ditto.
3753 * libc/stdio/findfp.c: Ditto.
3754 * libc/stdio/fputc.c: Ditto.
3755 * libc/stdio/fputs.c: Ditto.
3756 * libc/stdio/fread.c: Ditto.
3757 * libc/stdio/freopen.c: Ditto.
3758 * libc/stdio/fseek.c: Ditto.
3759 * libc/stdio/ftell.c: Ditto.
3760 * libc/stdio/fwrite.c: Ditto.
3761 * libc/stdio/getc.c: Ditto.
3762 * libc/stdio/getdelim.c: Ditto.
3763 * libc/stdio/putc.c: Ditto.
3764 * libc/stdio/refill.c: Ditto.
3765 * libc/stdio/setvbuf.c: Ditto.
3766 * libc/stdio/ungetc.c: Ditto.
3767 * libc/stdio/vfprintf.c: Ditto.
3768 * libc/stdio/vfscanf.c: Ditto.
3769 * libc/stdio/wbuf.c: Ditto.: Ditto.
3770 * libc/stdio/wsetup.c: Ditto.
3771 * libc/stdio64/freopen64.c: Ditto.
3772 * libc/stdio64/fseeko64.c: Ditto.
3773 * libc/stdio64/ftello64.c: Ditto.
3774 * libc/machine/powerpc/vfprintf.c: Ditto.
3775 * libc/machine/powerpc/vfscanf.c: Ditto.
3776
e83c3d0a
JJ
37772006-09-22 Paul Brook <paul@codesourcery.com>
3778
3779 * libc/include/sys/reent.h: Define and use __reent_assert.
3780
23754b33
JJ
37812006-09-13 Joel Sherrill <joel@oarcorp.com>
3782
3783 * libc/include/pthread.h: Add pthread barriers,
3784 rwlocks, and spinlocks. Change const to
3785 _CONST and prefix parameter names with
3786 an underscore.
3787 * libc/include/sys/types.h: Add id and attribute
3788 types for barriers, wrlocks, and spinlocks.
3789 * libc/include/sys/features.h: Enable barriers,
3790 wrlocks, and spinlocks for RTEMS.
3791
ba1bb1b3
JJ
37922006-09-13 Patrick Mansfield <patmans@us.ibm.com>
3793
3794 * libc/include/math.h: Remove _CONST from _LIB_VERSION, as it is
3795 supposed to be writable.
3796 * libm/common/s_lib_ver.c: Ditto.
3797
8f9f25da
JJ
37982006-09-12 Paul Brook <paul@codesourcery.com>
3799
3800 * libc/stdlib/rand.c (srand): Add _REENT_CHECK_RAND48.
3801
0324070e
JJ
38022006-09-07 Masaki Muranaka <monaka@monami-software.com>
3803
8f9f25da 3804
0324070e
JJ
3805 * libc/machine/xstormy16/Makefile.am:
3806 Add $(lpfx) prefix to LIBADD objects.
3807 lib_a_DEPENDENCIES uses the value of lib_a_LIBADD.
3808 * libc/machine/xstormy16/Makefile.in: Regenerated.
3809
d39002f9
JJ
38102006-09-06 Eric Blake <ebb9@byu.net>
3811
3812 * libc/stdio/vfprintf.c (_vfprintf_r, get_arg): Add 'hh', 'j',
3813 't', and 'z' modifiers.
3814
c023e783
KH
38152006-09-01 Kazu Hirata <kazu@codesourcery.com>
3816
3817 Merge from newlib-csl-20060320-branch:
3818 2006-05-22 Sandra Loosemore <sandra@codesourcery.com>
3819
3820 * configure.host: Tell it we have _rename and _system when
3821 building m68k-unknown-elf.
3822
85974265
JJ
38232006-08-29 Paul Brook <paul@codesourcery.com>
3824
3825 * libc/include/sys/config.h: Define _REENT_SMALL for Thumb-2.
3826
c1f828e5
JJ
38272006-08-27 Joel Sherrill <joel.sherrill@OARcorp.com>
3828
3829 * libc/sys/rtems/machine/sys/param.h: Conditionalize definition of
3830 BLKDEV_IOSIZE and MAXPHYS so it will fit into small memory targets.
3831 This is needed to build all AVR and H8300 RTEMS multilib variants.
3832
b8e05321
JJ
38332006-08-23 Kazunori Asayama <asayama@sm.sony.co.jp>
3834
3835 * libc/machine/configure.in: Add configuration for SPU.
3836 * libc/machine/configure: Regenerated.
3837 * libc/machine/spu/memcpy.c: Include string.h.
3838
380d8ec4
JJ
38392006-08-22 Eric Blake <ebb9@byu.net>
3840
3841 * libc/posix/popen.c (popen): Don't close output end of pipe in
3842 child if stdout was closed on entry.
3843 [HAVE_FCNTL]: In parent, mark file as close-on-exec, per POSIX.
3844
a0922fcb
CF
38452006-08-19 Ramana Radhakrishnan <ramana.r@gmail.com>
3846
3847 * sys/types.h: Correct syntax error caused by missing '\' on #ifdef
3848 line.
3849
84a79403
JJ
38502006-08-17 Brian Ford <Brian.Ford@FlightSafety.com>
3851
17c0c97d
EB
3852 * libc/time/gmtime.c: Correct man page; clock is not a
3853 local time and no conversion occurs.
84a79403 3854
0d8de89c
JJ
38552006-08-16 Joel Schopp <jschopp@austin.ibm.com>
3856
ba3ccd63
EB
3857 * configure.host (newlib_cflags) [spu]: Add special compiler
3858 options to reduce size.
0d8de89c 3859
734e8414
JJ
38602006-08-16 Joel Schopp <jschopp@austin.ibm.com>
3861
3862 * configure.host: Add spu support.
3863 * libc/include/stdint.h: Ditto.
3864 * libc/include/machine/ieeefp.h: Ditto.
3865 * libc/include/machine/setjmp.h: Ditto.
3866 * libc/include/sys/config.h: Ditto.
3867 * libc/include/sys/types.h: Ditto.
3868 * libc/machine/spu/Makefile.am: New file.
3869 * libc/machine/spu/Makefile.in: Ditto.
3870 * libc/machine/spu/aclocal.m4: Ditto.
3871 * libc/machine/spu/configure: Ditto.
3872 * libc/machine/spu/configure.in: Ditto.
3873 * libc/machine/spu/memcpy.c: Ditto.
3874 * libc/machine/spu/setjmp.S: Ditto.
3875
079b45dc
JJ
38762006-08-03 J"orn Rennecke <joern.rennecke@st.com>
3877
3878 * dtoa.c (dtoa_r): Handle the denormalized _DOUBLE_IS_32BITS case
3879 properly.
3880
2ebf115d
JJ
38812006-08-01 Jeff Johnston <jjohnstn@redhat.com>
3882
3883 * libc/Makefile.am: Add libc_TEXINFOS dependency on
3884 generated .texi files.
3885 * libm/Makefile.am: Add libm_TEXINFOS dependency on
3886 generated .texi files.
3887 * libc/Makefile.in: Regenerated.
3888 * libm/Makefile.in: Ditto.
3889
a1213494 38902006-08-01 Thiemo Seufer <ths@mips.com>
ba3ccd63 3891 Nigel Stephens <nigel@mips.com>
a1213494
JJ
3892
3893 * libc/include/sys/config.h (__ATTRIBUTE_IMPURE_PTR__): For MIPS
3894 define this to force _impure_ptr to live in the .sdata section.
3895
0a85d87f
JJ
38962006-07-31 Jeff Johnston <jjohnstn@redhat.com>
3897
3898 * acinclude.m4: Check for readelf tool.
3899 * configure.in: Use ${READELF} instead of hard-coding.
3900 * Regenerate all aclocal.m4, Makefile.in, and configure files.
3901
17c0c97d 39022006-07-31 Jeff Johnston <jjohnstn@redhat.com>
cc023a75
JJ
3903
3904 * libc/sys/linux/mmap.c: Remove include of sys/mman.h
3905 to avoid conflict with newer glibc's revision of mremap.
3906
17c0c97d 39072006-07-05 Jeff Johnston <jjohnstn@redhat.com>
b0b92438 3908
17c0c97d 3909 * libc/stdlib/mprec.h [_DOUBLE_IS_32BITS]: Turn off C99 hex
b0b92438
JJ
3910 floating-point format support. Also redefine
3911 dword0 and dword1 macros.
3912 * libc/stdlib/strtod.c: Add checks for _DOUBLE_IS_32BITS
3913 to prevent setting dword1 which is an rvalue only.
3914
17c0c97d 39152006-06-22 Jeff Johnston <jjohnstn@redhat.com>
f489b594
JJ
3916
3917 * libc/stdlib/Makefile.am: Add new gdtoa routines.
3918 * libc/stdlib/Makefile.in: Regenerated.
3919 * libc/stdlib/gd_qnan.h: New file.
3920 * libc/stdlib/gdtoa-gethex.c: Ditto.
3921 * libc/stdlib/gdtoa-hexnan.c: Ditto.
3922 * libc/stdlib/gdtoa.h: Ditto.
3923 * libc/stdlib/mprec.c: Add new helper routines needed by
3924 the new gdtoa code.
3925 * libc/stdlib/mprec.h: Integrate some defines and prototypes
3926 used by gdtoa routines here.
3927 * libc/stdlib/strtod.c: Rebased on David M. Gay's gdtoa-strtod.c
3928 which adds C99 support such as nan, inf, and hexadecimal input
3929 format.
3930
c8956c6f
JJ
39312006-06-15 Corinna Vinschen <corinna@vinschen.de>
3932
3933 * libc/include/stdio.h (__sgetc_r): Fix typo.
3934 * libc/stdio/fread.c (_fread_r): Convert crlf calls to crlf_r.
3935 * libc/stdio/rget.c (__srbuf): Reinstantiate.
3936 * libc/stdio/wbuf.c (__swbuf): Ditto.
3937
17c0c97d 39382006-06-14 Jeff Johnston <jjohnstn@redhat.com>
4dc0c0c4
JJ
3939
3940 * libc/include/stdio.h: Add new reentrant I/O prototypes for
17c0c97d 3941 read/write functions. Change getc/putc macros to have reentrant underlying
4dc0c0c4
JJ
3942 macros/functions. This includes __sgetc_raw_r, __sgetc_r, and __sputc_r.
3943 * libc/stdio/fgetc.c: Fix and/or add reentrant version to call
3944 new reentrant I/O functions/macros for reading/writing.
3945 * libc/stdio/fgets.c: Ditto.
3946 * libc/stdio/fputc.c: Ditto.
3947 * libc/stdio/fputs.c: Ditto.
3948 * libc/stdio/fread.c: Ditto.
3949 * libc/stdio/fseek.c: Ditto.
3950 * libc/stdio64/fseeko64.c: Ditto.
3951 * libc/stdio/fwrite.c: Ditto.
3952 * libc/stdio/getc.c: Ditto.
3953 * libc/stdio/getc_u.c: Ditto.
3954 * libc/stdio/getchar.c: Ditto.
3955 * libc/stdio/getchar_u.c: Ditto.
3956 * libc/stdio/putc.c: Ditto.
3957 * libc/stdio/putc_u.c: Ditto.
3958 * libc/stdio/putchar.c: Ditto.
3959 * libc/stdio/puts.c: Ditto.
3960 * libc/stdio/vfprintf.c: Ditto.
3961 * libc/stdio/vfscanf.c: Ditto.
3962 * libc/stdio/fvwrite.c: Change __sfvwrite into reentrant __sfvwrite_r.
3963 Change all previous callers of __sfvwrite. Set errno to EBADF and
3964 set error flag on if attempt is made to write to file that does not
3965 allow writing.
3966 * libc/stdio/fvwrite.h: Fix new reentrant prototypes.
3967 * libc/stdio/local.h: Ditto.
3968 * libc/stdio/refill.c: Turn __srefill into reentrant __srefill_r.
3969 Set errno to EBADF and the error flag on if attempt is made to
3970 read unreadable file. Change all previous callers of __srefill.
3971 * libc/stdio/rget.c
3972 * libc/stdio/wbuf.c: Turn __swbuf into reentrant __swbuf_r. Change
3973 all previous callers of __swbuf.
3974 * libc/sys/linux/machine/i386/huge_val.h: Ifdef out file contents since
3975 huge value macros are already defined correctly for i386 by <math.h>.
3976
c4cac45f
JJ
39772006-06-13 Sandra Loosemore <sandra@codesourcery.com>
3978
3979 * /libc/sys/arm/syscalls.c (_unlink, isatty, _system, _rename):
3980 Make them do something useful in the ARM_RDI_MONITOR case.
3981
b5b6cbd8
JJ
39822006-06-07 Fred Fish <fnf@specifix.com>
3983
3984 * libc/search/hash_bigkey.c (MIN,MAX): Remove
3985 defines that are already supplied by <sys/param.h>.
3986
3cc3705c
JJ
39872006-06-07 Fred Fish <fnf@specifix.com>
3988
3989 * configure.host: Remove references to HAVE_GETTIMEOFDAY.
3990
512c2879
JJ
39912006-06-05 Shaun Jackman <sjackman@gmail.com>
3992
3993 * libc/posix/Makefile.am (GENERAL_SOURCES): Add sleep.c and
3994 usleep.c.
3995 * libc/posix/Makefile.in: Regenerate.
3996 * libc/posix/sleep.c: New file.
3997 * libc/posix/usleep.c: Ditto.
3998
6ea486a6
JJ
39992006-06-05 Shaun Jackman <sjackman@gmail.com>
4000
9eedc2e6 4001 * configure.host (newlib_cflags) [arm, thumb, xscale]: Remove
6ea486a6
JJ
4002 -DABORT_PROVIDED flag.
4003 * newlib/libc/sys/arm/syscalls.c (kill, exit): Sync with libgloss.
4004 * newlib/libc/sys/arm/libcfunc.c (abort): Ditto.
4005
2e7c576a
JJ
40062006-06-05 Jeff Johnston <jjohnstn@redhat.com>
4007
4008 * Makefile.am (AM_MAKEFLAGS): Pass CCASFLAGS.
4009 * Makefile.in: Regenerated.
4010 * libc/machine/sh/Makefile.am (AM_CCASFLAGS): Remove
4011 extraneous CFLAGS reference now that CCASFLAGS are being extended
4012 properly via multilib.
4013 * libc/machine/sh/Makefile.in: Regenerated.
4014
3feae7b1
JJ
40152006-06-02 Shaun Jackman <sjackman@gmail.com>
4016
4017 * libc/unix/sigset.c: Undefine sigfillset, sigdelset, and
4018 sigismember.
4019
f383bda5
JJ
40202006-05-23 Jeff Johnston <jjohnstn@redhat.com>
4021
4022 * libc/misc/dprintf.c: Removed.
4023 * libc/misc/__dprintf.c: Renamed from dprintf.c.
4024 * libc/misc/Makefile.am: Changed appropriately for rename.
4025 * libc/misc/Makefile.in: Regenerated.
4026
8eeee74e
JJ
40272006-05-23 Jeff Johnston <jjohnstn@redhat.com>
4028
4029 * libc/include/stdio.h: Protect dprintf prototype
4030 with #ifndef dprintf so as to not interfere with
4031 historical code defining their own dprintf macro.
4032
dc7798c6
JJ
40332006-05-18 Jeff Johnston <jjohnstn@redhat.com>
4034
4035 * libc/include/stdio.h: Add prototypes for fiscanf,
4036 iscanf, and siscanf.
4037
e1b888df
JR
40382006-05-11 J"orn Rennecke <joern.rennecke@st.com>
4039
4040 * acinclude.m4 (_NEWLIB_VERSION): Rename to:
4041 (DEF_NEWLIB_VERSION).
4042 * configure.in (_NEWLIB_VERSION): Use NEWLIB_VERSION.
4043 * configure: Regenerate.
4044
7f32c41d
JJ
40452006-05-09 Jeff Johnston <jjohnstn@redhat.com>
4046
4047 * libc/ctype/Makefile.am: Add $(ELIX_SOURCES) to
4048 lib_a_SOURCES.
4049 * libc/ctype/Makefile.in: Regenerated.
4050
bac01fc8
JJ
40512006-05-09 Kazu Hirata <kazu@codesourcery.com>
4052
4053 * libc/machine/arm/Makefile.am: Fix a typo.
4054 * libc/machine/arm/Makefile.in: Regenerated.
4055
6c47d5b7
JR
40562006-05-08 J"orn Rennecke <joern.rennecke@st.com>
4057
4058 * libc/machine/sh/Makefile.am (AM_CCASFLAGS): Add $(CFLAGS).
4059 * libc/machine/sh/Makefile.in: Regenerate.
4060
7cc7e374
JR
40612006-05-03 J"orn Rennecke <joern.rennecke@st.com>
4062
4063 * libc/sys/sh/Makefile.am (AM_CCASFLAGS): Add $(CFLAGS).
4064 * libc/sys/sh/Makefile.in (AM_CCASFLAGS): Likewise.
4065
a8b02d46
JJ
40662006-05-02 Jeff Johnston <jjohnstn@redhat.com>
4067
4068 * libc/sys/sysnec810/Makefile.am: Specify .S files instead of
4069 .s.
4070 * libc/sys/sysnec810/Makefile.in: Regenerated.
4071 * libc/sys/sysnec810/crt0.S: Renamed from .s file.
4072 * libc/sys/sysnec810/io.S: Ditto.
4073 * libc/sys/sysnec810/crt0.s: Renamed to .S file.
4074 * libc/sys/sysnec810/io.s: Ditto.
4075
8f8f1db1
JJ
40762006-05-01 Jeff Johnston <jjohnstn@redhat.com>
4077
4078 * libc/argz/Makefile.am: Prefix any objects specified with $(lpfx). If source file can
4079 be specified instead of object, do so.
4080 * libc/ctype/Makefile.am: Ditto.
4081 * libc/iconv/ccs/Makefile.am: Ditto.
4082 * libc/iconv/ces/Makefile.am: Ditto.
4083 * libc/iconv/lib/Makefile.am: Ditto.
4084 * libc/locale/Makefile.am: Ditto.
4085 * libc/posix/Makefile.am: Ditto.
4086 * libc/reent/Makefile.am: Ditto.
4087 * libc/search/Makefile.am: Ditto.
4088 * libc/stdio/Makefile.am: Ditto.
4089 * libc/stdio64/Makefile.am: Ditto.
4090 * libc/stdlib/Makefile.am: Ditto.
4091 * libc/string/Makefile.am: Ditto.
4092 * libc/syscalls/Makefile.am: Ditto.
4093 * libc/unix/Makefile.am: Ditto.
4094 * libc/machine/a29k/Makefile.am: Specify lib_a_CCASFLAGS so .S files will get
4095 prefix added automatically. Any specified rules must use $(lpfx) for
4096 object file names.
4097 * libc/machine/arm/Makefile.am: Ditto.
4098 * libc/machine/cris/Makefile.am: Ditto.
4099 * libc/machine/crx/Makefile.am: Ditto.
4100 * libc/machine/d10v/Makefile.am: Ditto.
4101 * libc/machine/d30v/Makefile.am: Ditto.
4102 * libc/machine/fr30/Makefile.am: Ditto.
4103 * libc/machine/frv/Makefile.am: Ditto.
4104 * libc/machine/h8300/Makefile.am: Ditto.
4105 * libc/machine/h8500/Makefile.am: Ditto.
4106 * libc/machine/hppa/Makefile.am: Ditto.
4107 * libc/machine/i386/Makefile.am: Ditto.
4108 * libc/machine/i960/Makefile.am: Ditto.
4109 * libc/machine/iq2000/Makefile.am: Ditto.
4110 * libc/machine/m32c/Makefile.am: Ditto.
4111 * libc/machine/m32r/Makefile.am: Ditto.
4112 * libc/machine/m68hc11/Makefile.am: Ditto.
4113 * libc/machine/m68k/Makefile.am: Ditto.
4114 * libc/machine/m88k/Makefile.am: Ditto.
4115 * libc/machine/mips/Makefile.am: Ditto.
4116 * libc/machine/mn10200/Makefile.am: Ditto.
4117 * libc/machine/mn10300/Makefile.am: Ditto.
4118 * libc/machine/mt/Makefile.am: Ditto.
4119 * libc/machine/necv70/Makefile.am: Ditto.
4120 * libc/machine/powerpc/Makefile.am: Ditto.
4121 * libc/machine/sh/Makefile.am: Ditto.
4122 * libc/machine/sh/Makefile.in: Ditto.
4123 * libc/machine/sparc/Makefile.am: Ditto.
4124 * libc/machine/tic4x/Makefile.am: Ditto.
4125 * libc/machine/tic80/Makefile.am: Ditto.
4126 * libc/machine/v850/Makefile.am: Ditto.
4127 * libc/machine/w65/Makefile.am: Ditto.
4128 * libc/machine/xscale/Makefile.am: Ditto.
4129 * libc/machine/xstormy16/Makefile.am: Ditto.
4130 * libc/machine/z8k/Makefile.am: Ditto.
4131 * libc/sys/a29khif/Makefile.am: Ditto.
4132 * libc/sys/arm/Makefile.am: Ditto.
4133 * libc/sys/d10v/Makefile.am: Ditto.
4134 * libc/sys/h8300hms/Makefile.am: Ditto.
4135 * libc/sys/h8500hms/Makefile.am: Ditto.
4136 * libc/sys/linux/Makefile.am: Ditto.
4137 * libc/sys/linux/linuxthreads/Makefile.am: Ditto.
4138 * libc/sys/linux/net/Makefile.am: Ditto.
4139 * libc/sys/linux/stdlib/Makefile.am: Ditto.
4140 * libc/sys/m88kbug/Makefile.am: Ditto.
4141 * libc/sys/mmixware/Makefile.am: Ditto.
4142 * libc/sys/rdos/Makefile.am: Ditto.
4143 * libc/sys/rtems/Makefile.am: Ditto.
4144 * libc/sys/sh/Makefile.am: Ditto.
4145 * libc/sys/sun4/Makefile.am: Ditto.
4146 * libc/sys/sysmec/Makefile.am: Ditto.
4147 * libc/sys/sysnec810/Makefile.am: Ditto.
4148 * libc/sys/sysnecv850/Makefile.am: Ditto.
4149 * libc/sys/sysvi386/Makefile.am: Ditto.
4150 * libc/sys/sysvnecv70/Makefile.am: Ditto.
4151 * libc/sys/tic80/Makefile.am: Ditto.
4152 * libc/sys/w65/Makefile.am: Ditto.
4153 * libc/sys/z8ksim/Makefile.am: Ditto.
4154 * libc/machine/necv70/fastmath.S: Renamed from .s file.
4155 * libc/machine/necv70/setjmp.S: Ditto.
4156 * libc/machine/necv70/fastmath.s: Removed.
4157 * libc/machine/necv70/setjmp.s: Ditto.
4158 * libc/machine/w65/*.S: New files renamed from .s files.
4159 * libc/machine/w65/*.s: Renamed and removed.
4160 * libc/sys/a29khif/*.S: New files renamed from .s files.
4161 * libc/sys/a29khif/*.s: Renamed and removed.
4162 * libc/sys/sysvi386/*.S: New files renamed from .s files.
4163 * libc/sys/sysvi386/*.s: Renamed and removed.
4164 * libc/sys/sysvnecv70/*.S: New files renamed from .s files.
4165 * libc/sys/sysvnecv70/*.s: Renamed and removed.
4166 * libc/*Makefile.in: Regenerated as appropriate.
4167
b34db572
DD
41682006-04-24 DJ Delorie <dj@redhat.com>
4169
4170 * libc/machine/sh/configure.in: Avoid link tests.
4171 * libc/machine/sh/configure: Regenerate.
4172
e163e3e1
JJ
41732006-04-18 Jeff Johnston <jjohnstn@redhat.com>
4174
4175 * libc/include/sys/signal.h (sigdelset, sigfillset, sigismember): New macros.
4176 (sigaddset, sigemptyset): Add return code.
4177
7ad96224
JJ
41782006-04-13 Ralf Corsepius <ralf.corsepius@rtems.org>
4179
ba3ccd63
EB
4180 * acinclude.m4: New _NEWLIB_VERSION.
4181 * acinclude.m4(NEWLIB_CONFIGURE): AC_REQUIRE(_NEWLIB_VERSION).
4182 Use AC_CANONICAL_HOST instead of AC_CANONICAL_SYSTEM.
4183 Use new form of AC_INIT_AUTOMAKE.
4184 * configure.in: AC_PREREQ(2.59).
4185 Use autoconf-2.5.x version of AC_INIT.
4186 Use AC_CONFIG_FILES and autoconf-2.5x AC_OUTPUT instead of
4187 autoconf-2.13's AC_OUTPUT.
4188 * libm/configure.in: Ditto.
4189 * libm/machine/configure.in: Ditto.
4190 * libm/machine/i386/configure.in: Ditto.
4191 * libc/configure.in: Ditto.
4192 * libc/machine/a29k/configure.in: Ditto.
4193 * libc/machine/arm/configure.in: Ditto.
4194 * libc/machine/configure.in: Ditto.
4195 * libc/machine/mn10300/configure.in: Ditto.
4196 * libc/machine/powerpc/configure.in: Ditto.
4197 * libc/machine/z8k/configure.in: Ditto.
4198 * libc/machine/h8300/configure.in: Ditto.
4199 * libc/machine/mips/configure.in: Ditto.
4200 * libc/machine/crx/configure.in: Ditto.
4201 * libc/machine/m68hc11/configure.in: Ditto.
4202 * libc/machine/h8500/configure.in: Ditto.
4203 * libc/machine/xscale/configure.in: Ditto.
4204 * libc/machine/d10v/configure.in: Ditto.
4205 * libc/machine/fr30/configure.in: Ditto.
4206 * libc/machine/sh/configure.in: Ditto.
4207 * libc/machine/tic80/configure.in: Ditto.
4208 * libc/machine/m32r/configure.in: Ditto.
4209 * libc/machine/xstormy16/configure.in: Ditto.
4210 * libc/machine/i386/configure.in: Ditto.
4211 * libc/machine/d30v/configure.in: Ditto.
4212 * libc/machine/mn10200/configure.in: Ditto.
4213 * libc/machine/frv/configure.in: Ditto.
4214 * libc/machine/mt/configure.in: Ditto.
4215 * libc/machine/i960/configure.in: Ditto.
4216 * libc/machine/v850/configure.in: Ditto.
4217 * libc/machine/necv70/configure.in: Ditto.
4218 * libc/machine/tic4x/configure.in: Ditto.
4219 * libc/machine/cris/configure.in: Ditto.
4220 * libc/machine/m68k/configure.in: Ditto.
4221 * libc/machine/m32c/configure.in: Ditto.
4222 * libc/machine/hppa/configure.in: Ditto.
4223 * libc/machine/w65/configure.in: Ditto.
4224 * libc/machine/iq2000/configure.in: Ditto.
4225 * libc/machine/sparc/configure.in: Ditto.
4226 * libc/machine/m88k/configure.in: Ditto.
4227 * libc/sys/linux/configure.in: Ditto.
4228 * libc/sys/linux/machine/configure.in: Ditto.
4229 * libc/sys/linux/machine/i386/configure.in: Ditto.
4230 * libc/sys/linux/linuxthreads/configure.in: Ditto.
4231 * libc/sys/linux/linuxthreads/machine/configure.in: Ditto.
4232 * libc/sys/linux/linuxthreads/machine/i386/configure.in: Ditto.
4233 * libc/sys/arm/configure.in: Ditto.
4234 * libc/sys/configure.in: Ditto.
4235 * libc/sys/decstation/configure.in: Ditto.
4236 * libc/sys/a29khif/configure.in: Ditto.
4237 * libc/sys/sysnecv850/configure.in: Ditto.
4238 * libc/sys/d10v/configure.in: Ditto.
4239 * libc/sys/netware/configure.in: Ditto.
4240 * libc/sys/mmixware/configure.in: Ditto.
4241 * libc/sys/h8500hms/configure.in: Ditto.
4242 * libc/sys/sh/configure.in: Ditto.
4243 * libc/sys/tic80/configure.in: Ditto.
4244 * libc/sys/rdos/configure.in: Ditto.
4245 * libc/sys/sysmec/configure.in: Ditto.
4246 * libc/sys/sysvi386/configure.in: Ditto.
4247 * libc/sys/h8300hms/configure.in: Ditto.
4248 * libc/sys/sparc64/configure.in: Ditto.
4249 * libc/sys/arc/configure.in: Ditto.
4250 * libc/sys/sysnec810/configure.in: Ditto.
4251 * libc/sys/m88kbug/configure.in: Ditto.
4252 * libc/sys/sysvnecv70/configure.in: Ditto.
4253 * libc/sys/z8ksim/configure.in: Ditto.
4254 * libc/sys/rtems/configure.in: Ditto.
4255 * libc/sys/w65/configure.in: Ditto.
4256 * libc/sys/sun4/configure.in: Ditto.
4257 * doc/configure.in: Ditto.
4258 * iconvdata/configure.in: Ditto.
4259 * configure.in: Use AC_CONFIG_HEADER instead of AM_CONFIG_HEADER.
7ad96224 4260
34e66679
JJ
42612006-04-11 Jeff Johnston <jjohnstn@redhat.com>
4262
4263 * acinclude.m4: Properly add square brackets for
4264 AC_DEFUN macros. Rewrite LIB_AC_PROG_CC to remove
4265 macros no longer available. Add LIB_AM_PROG_AS to
4266 remove prereq of AC_PROG_CC. Add LIB_AC_PROG_CC_GNU
4267 macro. Substitute lpfx (library object prefix).
4268 * configure.host: Set lpfx depending on whether
4269 libtool is used or not.
4270 * configure.in: Individually specify libc and libm
4271 to AC_CONFIG_SUBDIRS. Add square bracket quoting as
4272 necessary.
4273 * Makefile.am: Use $(lpfx) to get object names for
4274 math-library functions that should also be in libc.
4275 * libc/machine/configure.in: Use case statement to determine
4276 AC_CONFIG_SUBDIRS statement.
4277 * libc/sys/linux/linuxthreads/machine/configure.in: Ditto.
4278 * libc/sys/linux/machine/configure.in: Ditto.
4279 * libc/sys/configure.in: Ditto.
4280 * libm/machine/configure.in: Ditto.
4281 * libc/sys/linux/configure.in: Fix up AC_CONFIG_SUBDIRS.
4282 * libm/configure.in: Add AM_CONDITIONAL statement
4283 for HAVE_LIBM_MACHINE_DIR.
4284 * libc/machine/a29k/Makefile.am: Modified to work with
4285 latest automake. Change includes setting AM_CCASFLAGS
4286 so building .S files will properly pick up flags used
4287 to build C files.
4288 * libc/machine/arm/Makefile.am: Ditto.
4289 * libc/machine/crx/Makefile.am: Ditto.
4290 * libc/machine/d10v/Makefile.am: Ditto.
4291 * libc/machine/d30v/Makefile.am: Ditto.
4292 * libc/machine/fr30/Makefile.am: Ditto.
4293 * libc/machine/frv/Makefile.am: Ditto.
4294 * libc/machine/h8300/Makefile.am: Ditto.
4295 * libc/machine/h8500/Makefile.am: Ditto.
4296 * libc/machine/hppa/Makefile.am: Ditto.
4297 * libc/machine/i386/Makefile.am: Ditto.
4298 * libc/machine/iq2000/Makefile.am: Ditto.
4299 * libc/machine/m32c/Makefile.am: Ditto.
4300 * libc/machine/m32r/Makefile.am: Ditto.
4301 * libc/machine/m68hc11/Makefile.am: Ditto.
4302 * libc/machine/m68k/Makefile.am: Ditto.
4303 * libc/machine/m88k/Makefile.am: Ditto.
4304 * libc/machine/mips/Makefile.am: Ditto.
4305 * libc/machine/mn10200/Makefile.am: Ditto.
4306 * libc/machine/mn10300/Makefile.am: Ditto.
4307 * libc/machine/mt/Makefile.am: Ditto.
4308 * libc/machine/necv70/Makefile.am: Ditto.
4309 * libc/machine/powerpc/Makefile.am: Ditto.
4310 * libc/machine/sh/Makefile.am: Ditto.
4311 * libc/machine/sparc/Makefile.am: Ditto.
4312 * libc/machine/tic4x/Makefile.am: Ditto.
4313 * libc/machine/tic80/Makefile.am: Ditto.
4314 * libc/machine/v850/Makefile.am: Ditto.
4315 * libc/machine/w65/Makefile.am: Ditto.
4316 * libc/machine/xscale/Makefile.am: Ditto.
4317 * libc/machine/xstormy16/Makefile.am: Ditto.
4318 * libc/machine/z8k/Makefile.am: Ditto.
4319 * libc/sys/a29khif/Makefile.am: Ditto.
4320 * libc/sys/arc/Makefile.am: Ditto.
4321 * libc/sys/arm/Makefile.am: Ditto.
4322 * libc/sys/d10v/Makefile.am: Ditto.
4323 * libc/sys/decstation/Makefile.am: Ditto.
4324 * libc/sys/h8300hms/Makefile.am: Ditto.
4325 * libc/sys/h8500hms/Makefile.am: Ditto.
4326 * libc/sys/linux/linuxthreads/machine/i386/Makefile.am: Ditto.
4327 * libc/sys/linux/machine/i386/Makefile.am: Ditto.
4328 * libc/sys/m88kbug/Makefile.am: Ditto.
4329 * libc/sys/mmixware/Makefile.am: Ditto.
4330 * libc/sys/netware/Makefile.am: Ditto.
4331 * libc/sys/rdos/Makefile.am: Ditto.
4332 * libc/sys/rtems/Makefile.am: Ditto.
4333 * libc/sys/sh/Makefile.am: Ditto.
4334 * libc/sys/sparc64/Makefile.am: Ditto.
4335 * libc/sys/sysmec/Makefile.am: Ditto.
4336 * libc/sys/sysnec810/Makefile.am: Ditto.
4337 * libc/sys/sysnecv850/Makefile.am: Ditto.
4338 * libc/sys/sysvi386/Makefile.am: Ditto.
4339 * libc/sys/sysvnecv70/Makefile.am: Ditto.
4340 * libc/sys/tic80/Makefile.am: Ditto.
4341 * libc/sys/w65/Makefile.am: Ditto.
4342 * libc/sys/z8ksim/Makefile.am: Ditto.
4343 * libm/machine/i386/Makefile.am: Ditto.
4344 * libc/sys/arm/Makefile.am: Ditto plus add EXTRA sources including
4345 trap.S so that automake will generate a .S.o suffix rule.
4346 * libc/argz/Makefile.am: Modified to work with
4347 latest automake. Change includes adding lib_a_CFLAGS
4348 so automake doesn't complain about libtool and non-libtool
4349 libraries sharing objects.
4350 * libc/ctype/Makefile.am: Ditto.
4351 * libc/errno/Makefile.am: Ditto.
4352 * libc/iconv/ccs/Makefile.am: Ditto.
4353 * libc/iconv/ces/Makefile.am: Ditto.
4354 * libc/iconv/lib/Makefile.am: Ditto.
4355 * libc/locale/Makefile.am: Ditto.
4356 * libc/misc/Makefile.am: Ditto.
4357 * libc/posix/Makefile.am: Ditto.
4358 * libc/reent/Makefile.am: Ditto.
4359 * libc/search/Makefile.am: Ditto.
4360 * libc/signal/Makefile.am: Ditto.
4361 * libc/stdio/Makefile.am: Ditto.
4362 * libc/stdio64/Makefile.am: Ditto.
4363 * libc/stdlib/Makefile.am: Ditto.
4364 * libc/string/Makefile.am: Ditto.
4365 * libc/sys/linux/Makefile.am: Ditto.
4366 * libc/sys/linux/argp/Makefile.am: Ditto.
4367 * libc/sys/linux/cmath/Makefile.am: Ditto.
4368 * libc/sys/linux/dl/Makefile.am: Ditto.
4369 * libc/sys/linux/iconv/Makefile.am: Ditto.
4370 * libc/sys/linux/intl/Makefile.am: Ditto.
4371 * libc/sys/linux/linuxthreads/Makefile.am: Ditto.
4372 * libc/sys/linux/net/Makefile.am: Ditto.
4373 * libc/sys/linux/stdlib/Makefile.am: Ditto.
4374 * libc/syscalls/Makefile.am: Ditto.
4375 * libc/time/Makefile.am: Ditto.
4376 * libc/unix/Makefile.am: Ditto.
4377 * libm/Makefile.am: Ditto.
4378 * libm/common/Makefile.am: Ditto.
4379 * libm/math/Makefile.am: Ditto.
4380 * libm/mathfp/Makefile.am: Ditto.
4381 * Regenerate all aclocal.m4, Makefile.in, and configure files.
4382
b577ecdf
JJ
43832006-04-07 Jeff Johnston <jjohnstn@redhat.com>
4384
4385 * libc/time/time.c (time): Do not check for HAVE_GETTIMEOFDAY
4386 anymore. Assume there is a gettimeofday syscall.
4387
ef79d97d
JJ
43882006-03-29 Shaun Jackman <sjackman@gmail.com>
4389
4390 * libc/sys/linux/include/netinet/ip.h: Include netinet/in_systm.h
4391 for the declaration of n_long.
4392
15a1b33c
JJ
43932006-03-29 Shaun Jackman <sjackman@gmail.com>
4394
4395 * libc/sys/linux/include/net/if.h: Include sys/socket.h for
4396 struct sockaddr.
4397 (IFF_SMART): Replace this define with IFF_NOTRAILERS.
4398 (IFF_CANTCHANGE): Replace IFF_SMART reference with IFF_NOTRAILERS.
4399 (IFF_NOTRAILERS): New define.
4400 (struct ifreq): Add ifru_netmask.
4401 (ifr_netmask): New define.
4402
bcc4ff05
JJ
44032006-03-29 Shaun Jackman <sjackman@gmail.com>
4404
4405 * libc/sys/linux/sys/ioccom.h (ioctl): Change declaration to
4406 match sys/ioctl.h.
4407
8fed3e2e
JJ
44082006-03-29 Shaun Jackman <sjackman@gmail.com>
4409
17c0c97d 4410 * libtool.m4: Set lt_cv_deplibs_check_method=pass_all for
8fed3e2e
JJ
4411 linux-newlib libc implementations.
4412
6507c097
JJ
44132006-03-29 Eric Blake <ebb9@byu.net>
4414
4415 * libc/stdio/freopen.c (_freopen_r) [__SCLE]: Fix typo.
4416 * libc/stdio64/freopen64.c (_freopen64_r) [__SCLE]: Likewise.
4417
fac690be
JJ
44182006-03-29 Jeff Johnston <jjohnstn@redhat.com>
4419
4420 * libc/sys/linux/io.c (__mknod): Fix declaration of
4421 syscall to pass a dev_t as third argument rather than
4422 a pointer to dev_t.
4423
9e443adb
JJ
44242006-03-29 Jeff Johnston <jjohnstn@redhat.com>
4425
4426 * libc/sys/linux/net/name6.c: Fix struct references.
4427
ce93dfe4
MM
44282006-03-22 Mark Mitchell <mark@codesourcery.com>
4429
4430 * configure.host: Allow hosts to set the default
4431 newlib_atexit_dynamic_alloc value.
4432 * configure.in: Likewise.
4433 * configure: Regenerated.
4434
3078fb4f
MM
44352006-03-20 Mark Mitchell <mark@codesourcery.com>
4436
4437 * acconfig.h (_ATEXIT_DYNAMIC_ALLOC): Undef.
4438 * configure.in (--disable-newlib-atexit-dynamic-alloc): New
17c0c97d 4439 option.
3078fb4f
MM
4440 * configure: Regenerated.
4441 * newlib.hin: Regenerated.
4442 * libc/stdlib/__atexit.c (__register_exitproc): Don't call malloc
4443 if _ATEXIT_DYNAMIC_ALLOC is undefined.
4444 * libc/stdlib/__call_atexit.c (__call_exitprocs): Don't call free
4445 if _ATEXIT_DYNAMIC_ALLOC is undefined.
4446
9d5cff74
JJ
44472006-03-17 Jeff Johnston <jjohnstn@redhat.com>
4448
4449 * libc/sys/linux/linuxthreads/config.h: Remove definition
4450 of UINT32_C.
4451
490cfb83
JJ
44522006-03-15 Jeff Johnston <jjohnstn@redhat.com>
4453
4454 * libc/stdio/wsetup.c (__swsetup): Don't make a buffer
4455 for a string I/O file that isn't using the asprintf family.
4456
ce10f178
JJ
44572006-03-07 Eric Blake <ebb9@byu.net>
4458
4459 * libc/stdio/freopen.c (_freopen_r) [HAVE_FCNTL]: For NULL
4460 filename, allow read-only or write-only FILE atop O_RDWR file
4461 descriptor.
4462 * libc/stdio64/freopen64.c (_freopen64_r) [HAVE_FCNTL]: Likewise.
4463
ddf12e6b
JJ
44642006-03-07 Jeff Johnston <jjohnstn@redhat.com>
4465
4466 * libm/common/sf_isinf.c[_DOUBLE_IS_32BITS]: Undef isinf.
4467 * libm/common/sf_isnan.c[_DOUBLE_IS_32BITS]: Undef isnan.
4468
cb197581
JJ
44692006-03-02 Jeff Johnston <jjohnstn@redhat.com>
4470
4471 * libm/math/math.tex: Fix reference to sisnan.def which
4472 is now in common subdirectory.
4473 * libm/mathfp/mathfp.tex: Ditto.
4474
e48682cf
JJ
44752006-02-27 Jeff Johnston <jjohnstn@redhat.com>
4476
17c0c97d 4477 * Makefile.am (MATHOBJS_IN_LIBC): Add s_isinfd, sf_isinff,
e48682cf
JJ
4478 s_isnand, and sf_isnanf object files.
4479 * Makefile.in: Regenerated.
4480 * libc/include/ieeefp.h: Undef isnan and isinf to avoid
4481 conflict if <math.h> has previously been included.
4482 * libc/include/math.h
bc88ea65
JJ
4483 * libc/include/math.h: Make isnan and isinf macros to
4484 conform to C99.
4485 (__isinfd, __isinff, __isnand, __isnanf): New functions.
e48682cf
JJ
4486 * libm/common/Makefile.am: Add new s_isinfd, s_isnand, sf_isinff,
4487 and sf_isnanf files. Also support s_isnan, sf_isnan, s_isinf, and
17c0c97d 4488 sf_isinf files which have been moved from math/mathfp directories.
e48682cf
JJ
4489 * libm/common/Makefile.in: Regenerated.
4490 * libm/common/s_isinfd.c: New file.
4491 * libm/common/s_isnand.c: Ditto.
4492 * libm/common/sf_isinff.c: Ditto.
4493 * libm/common/sf_isnanf.c: Ditto.
4494 * libm/common/s_isinf.c: Moved from libm/math directory.
4495 * libm/common/s_isnan.c: Ditto.
4496 * libm/common/sf_isinf.c: Ditto.
4497 * libm/common/sf_isnan.c: Ditto.
4498 * libm/math/Makefile.am: Remove isinf and isnan family functions
4499 which have been moved into common directory.
4500 * libm/mathfp/Makefile.am: Ditto.
4501 * libm/math/Makefile.in: Regenerated.
4502 * libm/mathfp/Makefile.in: Ditto.
4503 * libm/math/s_isinf.c: Removed.
4504 * libm/math/s_isnan.c: Ditto.
4505 * libm/math/sf_isinf.c: Ditto.
4506 * libm/math/sf_isnan.c: Ditto.
4507 * libm/mathfp/s_isinf.c: Ditto.
4508 * libm/mathfp/s_isnan.c: Ditto.
4509 * libm/mathfp/sf_isinf.c: Ditto.
4510 * libm/mathfp/sf_isnan.c: Ditto.
4511
99db626d
JJ
45122006-02-20 Jeff Johnston <jjohnstn@redhat.com>
4513
4514 * libc/stdio/fflush.c (fflush): For an fflush on a read-only
4515 stream, turn off fseek/rewind optimization as per POSIX/SUSv3.
4516 * libc/stdio/fseek.c (_fseek_r): After a successful unoptimized
4517 seek, turn off the __SNPT no-optimization flag.
4518
49103e2b
JJ
45192006-02-16 Jeff Johnston <jjohnstn@redhat.com>
4520
4521 * libc/sys/linux/aio.c: Define _GNU_SOURCE so struct aioinit
4522 will be defined.
4523 * libc/sys/linux/sys/types.h: Move <sys/config.h> ahead of
4524 <features.h> to preset special flags.
4525
680e0f1f
CV
45262006-02-15 Corinna Vinschen <corinna@vinschen.de>
4527
4528 * libc/include/sys/time.h (struct timeval): Change member types
4529 according to SUSv3.
4530 * libc/include/sys/types.h (useconds_t): Change to unsigned
4531 according to SUSv3.
4532 (suseconds_t): Define type.
4533
d6593503
JJ
45342006-02-13 Jeff Johnston <jjohnstn@redhat.com>
4535 David Carne <davidcarne@gmail.com>
4536
4537 * libc/string/strndup_r.c (_strndup_r): Use strnlen logic
4538 instead of strlen to determine number of bytes to copy.
4539 * libc/string/strnlen.c (strnlen): Fix so check for max limit occurs
4540 before looking at storage location.
4541
9bbe6d5d
JJ
45422006-02-07 Paul Brook <paul@codesourcery.com>
4543
4544 * libc/machine/arm/setjmp.S: Add Thumb-2 support.
4545 * libc/sys/arm/crt0.S: Add Thumb-2 startup code.
4546 * libc/sys/arm/libcfunc.c (do_AngelSWI): Use AngelSWIInsn.
4547 * libc/sys/arm/swi.h (AngelSWIInsn, AngelSWIAsm): Define.
4548 * libc/sys/arm/trap.S: Disable for Thumb-2.
4549
d968b3c8
JJ
45502006-01-31 Leif Ekblad <leif@rdos.net>
4551
4552 * configure.host: RDOS support added
4553 * libc/include/sys/config.h: Ditto.
4554 * libc/sys/rdos/Makefile.am, libc/sys/rdos/Makefile.in: New files.
4555 * libc/sys/rdos/aclocal.m4, libc/sys/rdos/chown.c: Ditto.
4556 * libc/sys/rdos/close.c, libc/sys/rdos/config.h: Ditto.
4557 * libc/sys/rdos/configure, libc/sys/rdos/configure.in: Ditto.
4558 * libc/sys/rdos/crt0.S, libc/sys/rdos/execve.c: Ditto.
4559 * libc/sys/rdos/fork.c, libc/sys/rdos/fstat.c: Ditto.
4560 * libc/sys/rdos/getenv.c, libc/sys/rdos/getpid.c: Ditto.
4561 * libc/sys/rdos/gettod.c, libc/sys/rdos/isatty.c: Ditto.
4562 * libc/sys/rdos/kill.c, libc/sys/rdos/link.c: Ditto.
4563 * libc/sys/rdos/lseek.c, libc/sys/rdos/open.c: Ditto.
4564 * libc/sys/rdos/rdos.S, libc/sys/rdos/rdos.h: Ditto.
4565 * libc/sys/rdos/rdoshelp.c, libc/sys/rdos/read.c: Ditto.
4566 * libc/sys/rdos/readlink.c, libc/sys/rdos/sbrk.c: Ditto.
4567 * libc/sys/rdos/stat.c, libc/sys/rdos/symlink.c: Ditto.
4568 * libc/sys/rdos/times.c, libc/sys/rdos/unlink.c: Ditto.
4569 * libc/sys/rdos/user.def, libc/sys/rdos/wait.c: Ditto.
4570 * libc/sys/rdos/write.c: Ditto.
4571
3acaaf54
JJ
45722006-01-24 Jeff Johnston <jjohnstn@redhat.com>
4573
4574 * acinclude.m4: Add nodefine to AM_INIT_AUTOMAKE macro invocation
4575 so as not to define PACKAGE and VERSION in newlib.h.
4576 * aclocal.m4: Regenerated.
4577 * configure: Ditto.
4578 * newlib.hin: Ditto.
4579
54abc854
JJ
45802006-01-20 Jeff Johnston <jjohnstn@redhat.com>
4581
4582 * acconfig.h: New file to generate newlib.hin from.
4583 * newlib.hin: Regenerated.
4584 * stamp-h.in: Regenerated.
4585 * Makefile.am: Add ACLOCAL_AMFLAGS so aclocal can be
4586 called automatically.
4587 * Makefile.in: Regenerated.
4588 * acinclude.m4: Add proper comment for hack in previous change.
4589 * aclocal.m4 */aclocal.m4: Regenerated.
4590 * configure */configure: Regenerated.
4591
33c9cfbd
JJ
45922006-01-11 Jeff Johnston <jjohnstn@redhat.com>
4593
4594 * acinclude.m4: Add hack to prevent INSTALL in subdirs
4595 from being set to "../".
4596 * Makefile.am: Pass INSTALL in AM_MAKEFLAGS.
4597 * aclocal.m4: Regenerated.
4598 * configure: Ditto.
4599 * Makefile.in: Ditto.
4600 * doc/aclocal.m4: Ditto.
4601 * doc/configure: Ditto.
4602 * iconvdata/aclocal.m4: Ditto.
4603 * iconvdata/configure: Ditto.
4604 * libc/*/aclocal.m4: Ditto.
4605 * libc/*/configure: Ditto.
4606 * libc/libc.texinfo: Ditto.
4607 * libm/*/aclocal.m4: Ditto.
4608 * libm/*/configure: Ditto.
4609
dea958bc
JJ
46102006-01-10 Eric Blake <ebb9@byu.net>
4611
4612 * libc/stdio/freopen.c (_freopen_r): Fix use of oflags.
4613 * libc/stdio64/freopen64.c (_freopen64_r): Likewise.
4614
216633f7
JJ
46152006-01-10 Jeff Johnston <jjohnstn@redhat.com>
4616
4617 * libm/mathfp/s_frexp.c: Check for special values on
4618 the original input, not the manipulated output value.
4619 * libm/mathfp/sf_frexp.c: Ditto.
4620 * libm/mathfp/s_atangent.c: Don't use local value branch
4621 when checking for quadrant.
4622 * libm/mathfp/sf_atangent.c: Ditto.
4623
64ae8ab5
JJ
46242006-01-09 Jeff Johnston <jjohnstn@redhat.com>
4625
4626 * libc/stdio/freopen.c: Switch to use isatty instead of _isatty.
4627 * libc/stdio64/freopen64.c: Ditto.
4628
0da7297e
JJ
46292006-01-09 Eric Blake <ebb9@byu.net>
4630
4631 * libc/stdio/freopen.c (_freopen_r): Accept NULL filename.
4632 * libc/stdio64/freopen64.c (_freopen64_r): Likewise.
4633
a37aaf88
JJ
46342006-01-06 Jeff Johnston <jjohnstn@redhat.com>
4635
4636 * libc/sys/linux/include/getopt.h: Add macros needed by
4637 new version of getopt.c in libc/stdlib.
4638
791c9bda
JJ
46392006-01-04 Gregory Pietsch <gpietsch@comcast.net>
4640
4641 * libc/stdlib/getopt.c: Replaced with version
4642 that adds getopt_long and getopt_long_only support.
4643 * libc/include/getopt.h: New file.
4644
0217078f
JJ
46452005-12-16 Jeff Johnston <jjohnstn@redhat.com>
4646
4647 * NEWS: Update with 1.14.0 info.
4648 * README: Ditto.
4649 * acinclude.m4: Change version number to 1.14.0.
4650 * aclocal.m4: Regenerated.
4651 * configure: Ditto.
4652 * doc/aclocal.m4: Ditto.
4653 * doc/configure: Ditto.
4654 * libc/*/aclocal.m4: Ditto.
4655 * libc/*/configure: Ditto.
4656 * libc/libc.texinfo: Ditto.
4657 * libm/*/aclocal.m4: Ditto.
4658 * libm/*/configure: Ditto.
4659 * libm/libm.texinfo: Ditto.
4660 * libc/sys/linux/shared.ld: Add VERS_1.14.
4661
a4cd7f20
JJ
46622005-12-16 Jeff Johnston <jjohnstn@redhat.com>
4663
4664 * libc/sys/linux/sys/stat.h: Change *stat64 prototypes to
4665 take a pointer to struct stat64 rather than struct stat.
4666
843e635a
JJ
46672005-12-16 Ralf Corsepius <ralf.corsepius@rtems.org>
4668
4669 * libc/include/stdint.h: Prefer long over int for int32_t.
4670 Use __have_long32 to set up int32_t.
4671 * libc/include/inttypes.h: Use "#if xxx" instead of "#ifdef xxx"
4672 (Sync with stdint.h).
4673
10cba930
CV
46742005-12-14 Corinna Vinschen <corinna@vinschen.de>
4675
4676 * libc/include/sys/fcntl.h: Define O_SYNC unconditionally. Fix
4677 typo in O_NDELAY comment.
4678
c8ba5c22
JJ
46792005-12-13 Nathan Sidwell <nathan@codesourcery.com>
4680
4681 * libc/include/machine/ieeefp.h (__mt__): Renamed from __ms1__.
4682 * libc/include/machine/setjmp.h (__mt__): Likewise.
4683 * libc/machine/mt/setjmp.S: Rename ms1 reference to mt.
4684 * libc/machine/configure.in: Ditto.
4685
74ecef0d
NS
46862005-12-12 Nathan Sidwell <nathan@codesourcery.com>
4687
4688 * configure.host: Replace ms1 arch with mt arch.
4689 * libc/machine/mt: Renamed from ms1 dir.
4690
2a1fc53c
JJ
46912005-12-08 Shaun Jackman <sjackman@gmail.com>
4692
4693 * libc/include/sys/types.h: Remove the ifdef armour around
4694 standard POSIX types.
4695
77e70d34
JJ
46962005-12-06 Ralf Corsepius <ralf.corsepius@rtems.org>
4697
4698 * libc/sys/rtems/crt0.c: Add rtems_gxx_key_create,
4699 rtems_gxx_key_delete, rtems_gxx_getspecific,
17c0c97d
EB
4700 rtems_gxx_setspecific, rtems_gxx_mutex_trylock,
4701 rtems_gxx_recursive_mutex_init, rtems_gxx_recursive_mutex_lock,
77e70d34
JJ
4702 rtems_gxx_recursive_mutex_trylock, rtems_gxx_recursive_mutex_unlock.
4703
b1da33a0
CF
47042005-12-05 Christopher Faylor <cgf@timesys.com>
4705
4706 * libc/include/stdlib.h: Move cygwin declarations to cygwin-specific
4707 file. Declare unsetenv and _unsetenv_r when not cygwin.
4708
6b1a6ec6
JJ
47092005-11-18 Jeff Johnston <jjohnstn@redhat.com>
4710
4711 * libc/time/strptime.c (strptime): Don't abort for %c and %Z.
4712 Treat %c as "%a %b %e %H:%M:%S %Y" and ignore %Z.
4713
d7d477b7
CF
47142005-11-18 Christopher Faylor <cgf@timesys.com>
4715
4716 * include/sys/time.h: Move more cygwin stuff to cygwin-specific header.
4717
c1534dbe
CF
47182005-11-18 Christopher Faylor <cgf@timesys.com>
4719
4720 * include/time.h: Remove more cygwin-specific stuff.
4721
d3e81bda
CF
47222005-11-18 Christopher Faylor <cgf@timesys.com>
4723
4724 * include/time.h: Move cygwin declarations to cygwin-specific header.
4725 * include/sys/time.h: Rename cygwin include to "sys_time.h".
4726
1396951b
JJ
47272005-11-17 Jeff Johnston <jjohnstn@redhat.com>
4728
4729 * libc/sys/linux/dl/dl-local.h: New file based on old dlfcn.h
4730 in libc/sys/linux/include.
4731 * libc/sys/linux/dl/dlfcn.h: Moved to libc/sys/linux/include.
4732 * libc/sys/linux/dl/ldsodefs.h: Include dl-local.h instead of dlfcn.h.
4733 * libc/sys/linux/include/dlfcn.h: Replaced with dlfcn.h formerly
4734 in libc/sys/linux/dl.
4735
37bd11ed
CF
47362005-11-11 Christopher Faylor <cgf@timesys.com>
4737
4738 * libc/include/sys/time.h: For cygwin, use general header rather than
4739 specific "sys/select.h".
4740
b397593c
JJ
47412005-11-08 Tom Walsh <tom@openhardware.net>
4742
4743 * libc/time/tzvars.c: New file.
4744 * libc/time/tzset_r.c: Moved globals into tzvars.c
4745 so other time functions needn't link in __tzset_r and its
4746 dependencies.
4747 * libc/time/Makefile.am: Add the new file.
4748 * libc/time/Makefile.in: Regenerated.
4749
86c6c421
CF
47502005-11-08 Christopher Faylor <cgf@timesys.com>
4751
4752 * libc/include/string.h: Add cygwin-specific function declaration.
4753
ef1206e4
CV
47542005-11-07 Corinna Vinschen <corinna@vinschen.de>
4755
4756 * libc/include/ieeefp.h: Add C++ guards.
4757
15eaca1c
JJ
47582005-11-03 Jeff Johnston <jjohnstn@redhat.com>
4759
4760 * libc/unix/getcwd.c: Don't use non-reentrant syscall names.
4761 * libc/unix/getlogin.c: Ditto.
4762 * libc/unix/getpass.c: Ditto.
4763 * libc/unix/getut.c: Ditto.
4764 * libc/unix/ttyname.c: Ditto.
4765
d31a8623
JJ
47662005-11-03 Shaun Jackman <sjackman@gmail.com>
4767
4768 * libc/include/sys/unistd.h (readlink, symlink): Provide these
4769 prototypes by default.
4770 * libc/sys/linux/include/unistd.h (readlink): Remove this
4771 prototype.
4772 * libc/sys/linux/sys/unistd.h (readlink, symlink): New
4773 prototypes.
4774
71ac53ee
JJ
47752005-11-01 Ralf Corsepius <ralf.corsepius@rtems.org>
4776
4777 * libc/include/stdint.h: Cleanup #if vs. #ifdef.
4778
dc1b6289
JJ
47792005-10-31 Darin Johnson <darin@usa.net>
4780
4781 * libm/mathfp/s_mathcnst.c: Fix endian-ness check to be
4782 correct for constants.
4783
884c0ff0
JJ
47842005-10-28 Bob Wilson <bob.wilson@acm.org>
4785
4786 * libc/stdio/siprintf.c: Wrap long lines in ANSI_SYNOPSIS.
4787 * libc/stdio/siscanf.c: Likewise.
4788 * libc/stdio/sprintf.c: Likewise.
4789 * libc/stdio/sscanf.c: Likewise.
4790 * libc/stdio/vfprintf.c: Likewise.
4791 * libc/stdio/vfscanf.c: Likewise.
4792 * libc/stdio/viprintf.c: Likewise.
4793 * libc/stdio/viscanf.c: Likewise.
4794
a9c15f6f
JJ
47952005-10-28 Bob Wilson <bob.wilson@acm.org>
4796
4797 * libc/sys.tex (Stubs): Format examples consistently. Change sbrk
4798 example to use "_end" symbol instead of "end". Change write example
4799 to use "outbyte" instead of "writechar".
4800
a306ebc9
JJ
48012005-10-28 Bob Wilson <bob.wilson@acm.org>
4802
4803 * libc/ctype/ctype.tex: Use hyphens as appropriate, but not otherwise.
4804 * libc/ctype/islower.c: Likewise.
4805 * libc/ctype/isupper.c: Likewise.
4806 * libc/ctype/iswalnum.c: Likewise.
4807 * libc/ctype/iswalpha.c: Likewise.
4808 * libc/ctype/iswblank.c: Likewise.
4809 * libc/ctype/iswcntrl.c: Likewise.
4810 * libc/ctype/iswdigit.c: Likewise.
4811 * libc/ctype/iswgraph.c: Likewise.
4812 * libc/ctype/iswlower.c: Likewise.
4813 * libc/ctype/iswprint.c: Likewise.
4814 * libc/ctype/iswpunct.c: Likewise.
4815 * libc/ctype/iswspace.c: Likewise.
4816 * libc/ctype/iswupper.c: Likewise.
4817 * libc/ctype/iswxdigit.c: Likewise.
4818 * libc/ctype/tolower.c: Likewise.
4819 * libc/ctype/toupper.c: Likewise.
4820 * libc/ctype/towctrans.c: Likewise.
4821 * libc/ctype/towlower.c: Likewise.
4822 * libc/ctype/towupper.c: Likewise.
4823 * libc/string/strcasecmp.c: Likewise.
4824 * libc/string/strcoll.c: Likewise.
4825 * libc/string/strings.tex: Likewise.
4826 * libc/string/strlwr.c: Likewise.
4827 * libc/string/strncasecmp.c: Likewise.
4828 * libc/string/strupr.c: Likewise.
4829 * libc/string/wcscoll.c: Likewise.
4830 * libc/string/wcslcat.c: Likewise.
4831 * libc/string/wcslcpy.c: Likewise.
4832 * libc/string/wcsnlen.c: Likewise.
4833 * libc/string/wcsstr.c: Likewise.
4834 * libc/string/wcstrings.tex: Likewise.
4835 * libc/string/wmemchr.c: Likewise.
4836 * libc/string/wmemcmp.c: Likewise.
4837 * libc/string/wmemcpy.c: Likewise.
4838 * libc/string/wmemmove.c: Likewise.
17c0c97d 4839 * libc/string/wmemset.c: Likewise.
a306ebc9 4840
239c2bf9
JJ
48412005-10-28 Bob Wilson <bob.wilson@acm.org>
4842
4843 * libc/misc/unctrl.c: Replace FUNCTION description.
4844 * libc/signal/signal.c: Remove documentation for raise and _raise_r.
4845 * libc/stdio/getdelim.c: Fix spelling errors.
4846 * libc/stdio/getw.c: Put RETURNS on a separate line. Fix punctuation.
4847 * libc/stdio/putw.c: Likewise.
4848 * libc/stdlib/a64l.c: Fix formatting, spelling and punctuation in
ba3ccd63 4849 documentation.
239c2bf9
JJ
4850 * libc/stdlib/assert.c: Do not capitalize FUNCTION description.
4851 * libc/stdlib/efgcvt.c: Add spaces to FUNCTION description.
4852 * libc/stdlib/envlock.c: Use em-dash in FUNCTION description.
4853 * libc/stdlib/mlock.c: Likewise.
4854 * libc/stdlib/mstats.c: Likewise.
4855 * libc/time/tzlock.c: Likewise.
4856 * libc/stdlib/rand.c: Use "multi-threaded" and "thread-safe" in NOTES.
4857 * libc/stdlib/rand48.c: Remove extra space in FUNCTION description
ba3ccd63 4858 and hyphenate "pseudo-random".
239c2bf9
JJ
4859 * libc/string/bcmp.c: Remove extra blank lines in documentation.
4860 * libc/string/strncat.c: Likewise.
4861 * libc/string/memchr.c: Remove extra ">" character in documentation.
4862 * libc/string/strcspn.c: Use "characters" instead of "chars".
4863 * libc/string/strpbrk.c: Likewise.
4864 * libc/string/strerror_r.c: Capitalize "GNU".
4865 * libc/string/strnlen.c: Likewise.
4866 * libc/string/strtok.c: Fix formatting, spelling and punctuation in
ba3ccd63 4867 documentation. Use "multi-threaded" and "thread-safe" in NOTES.
239c2bf9
JJ
4868 * libc/string/wcscat.c: Split PORTABILITY into two paragraphs.
4869 * libc/string/wcschr.c: Likewise.
4870 * libc/string/wcscmp.c: Likewise.
4871 * libc/string/wcscpy.c: Likewise.
4872 * libc/string/wcscspn.c: Likewise.
4873 * libc/string/wcslen.c: Likewise.
4874 * libc/string/wcsncat.c: Likewise.
4875 * libc/string/wcsncmp.c: Likewise.
4876 * libc/string/wcsncpy.c: Likewise.
4877 * libc/string/wcsnlen.c: Likewise.
4878 * libc/string/wcspbrk.c: Likewise.
4879 * libc/string/wcsrchr.c: Likewise.
4880 * libc/string/wcsspn.c: Likewise.
4881 * libc/string/wmemchr.c: Likewise.
4882 * libc/string/wmemcmp.c: Likewise.
4883 * libc/string/wmemcpy.c: Likewise.
4884 * libc/string/wmemset.c: Likewise.
4885 * libc/string/wmemmove.c: Likewise. Also fix FUNCTION description.
4886 * libc/string/wcswidth.c: Formatting and punctuation in documentation.
4887 * libc/string/wcwidth.c: Likewise.
4888 * libm/common/s_modf.c: Remove extra period from documentation.
4889 * libm/math/s_isnan.c: Fix formatting, grammar and punctuation in
ba3ccd63 4890 documentation.
239c2bf9
JJ
4891 * libm/mathfp/s_isnan.c: Likewise.
4892 * libm/math/s_ldexp.c: Fix punctuation.
4893 * libm/mathfp/s_ldexp.c: Likewise.
4894 * libm/math/w_log.c: Likewise.
4895 * libm/mathfp/s_logarithm.c: Likewise.
4896 * libm/math/w_j0.c: Add spaces to FUNCTION description.
17c0c97d 4897 * libm/mathfp/w_jn.c: Likewise.
239c2bf9 4898
2556eb8d
JJ
48992005-10-26 Shaun Jackman <sjackman@gmail.com>
4900
4901 * libc/posix/scandir.c (scandir): Update the function
4902 prototype to match the header.
4903 * libc/sys/linux/linuxthreads/bits/libc-lock.h: Remove an
4904 extraneous #endif.
4905 * libc/sys/linux/sys/lock.h: Do not include
4906 machine/weakalias.h, since it's not used by this file.
4907
c9d71a8d
JJ
49082005-10-26 Jeff Johnston <jjohnstn@redhat.com>
4909
4910 * libc/Makefile.am: Reorder SUBLIBS so machine and sys
4911 directories can override properly.
4912
09968b6d
JJ
49132005-10-20 Jeff Johnston <jjohnstn@redhat.com>
4914
4915 * libc/include/math.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): When
4916 gcc is 3.3 or greater, use special gcc builtins.
4917
c70571bd
CV
49182005-10-20 Corinna Vinschen <corinna@vinschen.de>
4919
4920 * libc/include/sys/time.h: Declare futimes and lutimes for Cygwin.
4921
a92822b7
CV
49222005-10-18 Corinna Vinschen <corinna@vinschen.de>
4923
4924 * libc/include/sys/features.h: Define _POSIX_MEMLOCK_RANGE for Cygwin.
4925
d2c2c132
JJ
49262005-10-14 Jeff Johnston <jjohnstn@redhat.com>
4927
4928 * libc/include/math.h (HUGE_VALF, HUGE_VALL): New.
4929 * libm/common/Makefile.am: Add s_infconst.c support.
4930 * libm/common/Makefile.in: Regenerated.
4931 * libm/common/s_infconst.c: New file with float and
4932 long double infinity support added.
4933 * libm/math/Makefile.am: Remove s_infconst.c support.
4934 * libm/math/Makefile.in: Regenerated.
4935 * libm/math/s_infconst.c: Moved to common directory.
4936 * libm/mathfp/Makefile.am: Remove s_infconst.c support.
4937 * libm/mathfp/Makefile.in: Regenerated.
4938 * libm/mathfp/s_infconst.c: Moved to common directory.
4939
4d57c1ed
JJ
49402005-10-14 Jeff Johnston <jjohnstn@redhat.com>
4941
4942 * libc/sys/linux/net/gethostbydns.c (dprintf): Rename to
4943 dbgprintf to prevent conflict with new dprintf function.
4944
1012585f
JJ
49452005-10-14 Jeff Johnston <jjohnstn@redhat.com>
4946
4947 * libc/stdio/vfprintf.c (_VFPRINTF_R): Fix up "inf" and
4948 "nan" processing for systems that have long double support.
4949
e9154015
JJ
49502005-10-14 Jeff Johnston <jjohnstn@redhat.com>
4951
4952 * libc/sys/linux/sys/types.h (int8_t): Add type.
4953
1a869698
JJ
49542005-10-14 Bob Wilson <bob.wilson@acm.org>
4955
ba3ccd63
EB
4956 * libm/common/Makefile.am (doc): Do not append to $(TARGETDOC).
4957 * libm/common/Makefile.in: Regenerate.
4958 * libm/common/common.tex: Delete file.
4959 * libm/math/math.tex: Include .def files from common/.
4960 * libm/mathfp/mathfp.tex: Likewise.
1a869698 4961
e0811fb3
JJ
49622005-10-14 Bob Wilson <bob.wilson@acm.org>
4963
4964 * libc/libc.texinfo (Top): Surround this node with @ifnottex
4965 instead of @ifinfo. Update menu to add Introduction and match
4966 SUBDIRS order.
ba3ccd63 4967 (Introduction): New section.
e0811fb3 4968
e63c98c6
JJ
49692005-10-14 Bob Wilson <bob.wilson@acm.org>
4970
ba3ccd63
EB
4971 * libc/reent/reent.tex (Reentrancy): Replace "Cygnus C Library"
4972 with "Red Hat newlib C Library".
4973 * libc/sys.tex (Stubs): Likewise.
4974 * libm/math/math.tex (Math): Likewise.
4975 * libm/mathfp/mathfp.tex (Math): Likewise.
e63c98c6 4976
339195bf
JJ
49772005-10-11 Shaun Jackman <sjackman@gmail.com>
4978
4979 * libc/include/stdio.h (dprintf): New declaration.
4980 (vdprintf): Ditto.
4981 * libc/stdio/Makefile.am (GENERAL_SOURCES): Add dprintf.c
4982 and vdprintf.c.
4983 * libc/stdio/Makefile.in: Regenerate.
4984 * libc/stdio/dprintf.c: New file.
4985 * libc/stdio/vdprintf.c: New file.
4986 * libc/stdio/stdio.tex (dprintf): New entry.
4987
da71e518
JJ
49882005-10-11 David Weatherford <weath@tensilica.com>
4989
4990 * libc/stdio/vfprintf.c (_VFPRINTF_R): Recognize 'F' format.
17c0c97d 4991 Print "inf" and "nan" in lowercase for e/f/g formats and in
da71e518
JJ
4992 uppercase for E/F/G formats.
4993
f011605a
JJ
49942005-10-07 Bob Wilson <bob.wilson@acm.org>
4995
4996 * libc/stdlib/mallocr.c (mALLOc, rEALLOCc, mEMALIGn): Set errno
4997 to ENOMEM on failure.
4998
bc037f3a
JJ
49992005-10-06 Ralf Corsepius <ralf.corsepius@rtems.org>
5000
5001 * libc/include/stdint.h: Add [u]int_fast<N>_t types.
5002
c7e20979
JJ
50032005-10-04 Ralf Corsepius <ralf.corsepius@rtems.org>
5004
5005 * libc/include/stdint.h: Move magic to set __have_long* to the
5006 beginning. Use #if __have* instead of #if defined(__have*).
5007 Minor typo fixes.
5008
58e78add
JJ
50092005-10-04 James E Wilson <wilson@specifix.com>
5010
5011 * libc/include/sys/dirent.h (_DIRENT_H_): Delete #include_next. Add
5012 #error.
5013
8afb8202
JJ
50142005-10-03 Jeff Johnston <jjohnstn@redhat.com>
5015
5016 * libc/sys/linux/include/stdint.h: Include <sys/types.h> and
5017 incorporate Ralf's change below.
5018
14491fd0
JJ
50192005-10-03 Ralf Corsepius <ralf.corsepius@rtems.org>
5020
17c0c97d 5021 * libc/include/stdint.h:
14491fd0
JJ
5022 Use __INTMAX_TYPE__ to derive intmax_t.
5023 Use __UINTMAX_TYPE__ to derive uintmax_t.
5024 Fix minor typo.
5025
ee694aea
JJ
50262005-09-27 Ralf Corsepius <ralf.corsepius@rtems.org>
5027
17c0c97d 5028 * libc/include/stdint.h: Correct __STDINT_EXP macro incorrectly
ee694aea
JJ
5029 handling GCC >= 4.
5030
9f1926f2
JJ
50312005-09-20 Jeff Johnston <jjohnstn@redhat.com>
5032
5033 * libc/sys/linux/include/stdint.h: Update to match functionality
5034 of generic newlib stdint.h.
5035
0ce4fcef
JJ
50362005-09-20 Jeff Johnston <jjohnstn@redhat.com>
5037
5038 * libc/include/stdint.h (__EXP): Rename to __STDINT_EXP
5039 and do not #undef the macro after it is used. Fix typos.
5040 Also change 64-bit constants to use the __have_long64 and
5041 __have_longlong64 flags to determine if long or long long
5042 constants should be used.
5043 * libc/include/inttypes.h: Include stddef.h to get wchar_t
5044 type defined.
5045
17060817
JJ
50462005-09-20 Shaun Jackman <sjackman@gmail.com>
5047
5048 * libc/include/stdint.h: Fix typo in names of
5049 LEAST macros.
5050
1e1d1d3d
JJ
50512005-09-20 Jeff Johnston <jjohnstn@redhat.com>
5052
5053 * libc/sys/rtems/include/inttypes.h: Moved to...
5054 * libc/include/inttypes.h: ...here.
5055
cddfc170
JJ
50562005-09-19 Jeff Johnston <jjohnstn@redhat.com>
5057
5058 * libc/sys/rtems/include/stdint.h: Moved to...
5059 * libc/include/stdint.h: ...here.
5060
b10ab725
JJ
50612005-09-08 Jeff Johnston <jjohnstn@redhat.com>
5062
5063 * Makefile.am: Add include files under bits sub-directory.
5064 * Makefile.in: Regenerated.
5065 * libc/sys/linux/argp/argp-fs-xinl.c: Set __OPTIMIZE__ to
5066 actual value of 1 to be compatible with newer glibc headers.
5067 * libc/sys/linux/sys/cdefs.h: Fix to be compatible with newer
5068 glibc headers.
5069 * libc/sys/linux/sys/dirent.h: Ditto.
5070 * libc/sys/linux/argp/argp-xinl.c: Ditto.
5071 * libc/sys/linux/dl/dl-runtime.c: Make sure fixup and
5072 profile_fixup routines are marked used so they won't be
5073 optimized away.
5074 * libc/sys/linux/dl/dl-cache.c: Don't use weak_extern macro
5075 to mark functions as weak.
5076 * libc/sys/linux/dl/dl-open.c: Ditto.
5077 * libc/sys/linux/iconv/gconv_open.c: Fix to obey new gcc4
5078 rules about lvalues.
5079 * libc/sys/linux/iconv/gconv_simple.c: Ditto.
5080 * libc/sys/linux/linuxthreads/bits/libc-lock.h: Don't use
5081 weak_extern macro to mark functions as weak. Instead always
5082 use #pragma weak.
5083 * iconvdata/jis0208.h: Fix to work with gcc4.
5084 * libc/sys/linux/dl/dl-load.c: Ditto.
5085 * libc/sys/linux/dl/dl-reloc.c: Ditto.
5086 * libc/sys/linux/dl/do-rel.h: Ditto.
5087 * libc/sys/linux/dl/dynamic-link.h: Ditto.
5088 * libc/sys/linux/include/ltdl.h: Ditto.
5089 * libc/sys/linux/machine/i386/dl-machine.h: Ditto.
5090 * libc/sys/linux/machine/i386/weakalias.h: Ditto.
5091 * libc/sys/linux/net/ns_ntoa.c: Ditto.
5092 * libc/sys/linux/bits/initspin.h: New file.
5093 * libc/sys/linux/bits/libc-lock.h: Ditto.
5094 * libc/sys/linux/bits/pthreadtypes.h: Ditto.
5095 * libc/sys/linux/bits/typesizes.h: Ditto.
5096
7b786e48
JJ
50972005-09-08 Eric Blake <ebb9@byu.net>
5098
5099 * libc/argz/argz_insert.c (argz_insert): Don't die with EINVAL when
5100 before is NULL.
5101
32b09d75
JJ
51022005-09-08 Brian Dessent <brian@dessent.net>
5103
5104 * sf_lrint.c (lrintf): Mask 'i0' correctly when extracting
5105 mantissa.
5106 * s_lrint.c: Ditto.
5107
8f36ef2f
JJ
51082005-09-02 Jeff Johnston <jjohnstn@redhat.com>
5109
5110 * libc/include/stdio.h: Add prototype for viprintf.
5111
cebe43dd
JJ
51122005-09-01 Jeff Johnston <jjohnstn@redhat.com>
5113
5114 * libm/mathfp/s_pow.c: (pow): Change code so 0 raised to
5115 any positive power results in 0.
5116 * libm/mathfp/sf_pow.c (powf): Ditto.
5117
45c8bb8f
JJ
51182005-08-31 Paul Brook <paul@codesourcery.com>
5119
5120 * configure.host: Set have_crt0 to no for Arm targts when not
5121 providing syscalls. Set sys_dir=arm unconditionally.
5122 Default have_crt0 based on sys_dir.
5123 * configure.in: Use have_crt0.
5124 * libc/configure.in: Ditto.
5125 * libc/sys/configure.in: Ditto.
5126 * configure: Regenerate.
5127 * libc/configure: Regenerate.
5128 * libc/sys/configure: Regenerate.
5129 * libc/sys/arm/Makefile.am (lib_a_SOURCES): Add aeabi_atexit.c.
5130 Only build other files when providing syscalls.
5131 * libc/sys/arm/Makefile.in: Regenerate.
5132 * libc/sys/arm/aeabi_atexit.c: New file.
5133
dbeee890
CF
51342005-08-26 Christopher Faylor <cgf@timesys.com>
5135
5136 * libc/include/string.h: Revert previous change.
5137
377d3ea0
CF
51382005-08-25 Christopher Faylor <cgf@timesys.com>
5139
5140 * libc/include/string.h: For Cygwin, Define strerror_r as per ISO C.
5141
4797a77c
JJ
51422005-08-22 Shaun Jackman <sjackman@gmail.com>
5143
5144 * libc/include/_syslist.h: If HAVE_OPENDIR is not defined,
5145 define _opendir as opendir, _readdir as readdir, and
5146 _closedir as closedir so that the implementations in
5147 libc/posix will be used.
5148
2e73582e
DD
51492005-08-10 DJ Delorie <dj@redhat.com>
5150
5151 * MAINTAINERS (CPU Ports): Add CPU port maintainer section.
5152
234cf97f
JJ
51532005-08-10 Stephen Huw Clarke <stephen.clarke@st.com>
5154
5155 * libm/common/sf_fmax.c: Fix to properly handle NaNs.
5156 * libm/common/s_max.c: Ditto.
5157 * libm/common/sf_fmin.c: Ditto.
5158 * libm/common/s_min.c: Ditto.
5159
56448afa
JJ
51602005-08-10 DJ Delorie <dj@redhat.com>
5161
5162 * configure.host: Add m32c support.
5163 * libc/include/machine/ieeefp.h: Likewise.
5164 * libc/include/machine/setjmp.h: Likewise.
5165 * libc/include/sys/config.h: Likewise.
5166 * libc/machine/m32c: New directory, Renesas R8C/M16C/M32C support.
5167 * libc/machine/m32c/aclocal.m4: New file.
5168 * libc/machine/m32c/configure: Ditto.
5169 * libc/machine/m32c/configure.in: Ditto.
5170 * libc/machine/m32c/Makefile.am: Ditto.
5171 * libc/machine/m32c/Makefile.in: Ditto.
5172 * libc/machine/m32c/setjmp.S: Ditto.
5173
0c5c6c23
JJ
51742005-08-02 Bob Wilson <bob.wilson@acm.org>
5175
ba3ccd63
EB
5176 * libm/math/ef_hypot.c (__ieee754_hypotf): Add missing exponent bias
5177 to the value for 2^126.
0c5c6c23 5178
12499c7a
HPN
51792005-07-26 Hans-Peter Nilsson <hp@bitrange.com>
5180
5181 * libc/machine/cris/libcdtor.c (defaultors): Mark artificially as
5182 used.
5183
395a327d 51842005-07-20 Bob Wilson <bob.wilson@acm.org>
ba3ccd63 5185 Darin Petkov <darin@tensilica.com>
395a327d
JJ
5186
5187 * libm/math/ef_atan2.c (pi, pi_lo): Use round-to-nearest value of pi.
5188
108d7dd8
JJ
51892005-07-19 Paul Brook <paul@codesourcery.com>
5190
5191 * libc/sys/arm/crt0.S: Ensure doubleword stack alignment.
5192
b776efc5
JJ
51932005-07-18 Joseph S. Myers <joseph@codesourcery.com>
5194
5195 * testsuite/lib/checkoutput.exp (newlib_check_output): Use test
5196 names after PASS and FAIL which do not depend on source directory
5197 name or on whether test passed or failed.
5198 * testsuite/lib/passfail.exp (newlib_pass_fail): Likewise.
5199
88540e24
JJ
52002005-07-08 Ola Hugosson <Ola.Hugosson@anoto.com>
5201
5202 * libc/string/wcsspn.c (wcsspn): Add missing increment of q.
5203
85d62190 52042005-07-07 Shaun Jackman <sjackman@gmail.com>
b32adfc5 5205
88540e24 5206 * libc/unix/ttyname.c (ttyname): Avoid calling _closedir
b32adfc5
JJ
5207 twice for the same directory. _closedir calls free, and freeing
5208 the same pointer twice may cause a crash.
5209
dee9edd9
AH
52102005-07-06 Aldy Hernandez <aldyh@redhat.com>
5211
ba3ccd63
EB
5212 * configure.host: Added entry for ms1*.
5213 * libc/include/machine/ieeefp.h: Handle ms1.
5214 * libc/include/machine/setjmp.h (_JBLEN): Define for ms1.
5215 * libc/machine/ms1/aclocal.m4: New.
5216 * libc/machine/ms1/configure: New.
5217 * libc/machine/ms1/configure.in: New.
5218 * libc/machine/ms1/Makefile.am: New.
5219 * libc/machine/ms1/Makefile.in: New.
5220 * libc/machine/ms1/setjmp.S: New.
dee9edd9 5221
cec1d3b4
JJ
52222005-07-04 Mark Mitchell <mark@codesourcery.com>
5223
5224 * Makefile.am (site.exp): Set tmpdir.
5225 * Makefile.in: Regenerated.
5226 * testsuite/lib/checkoutput.exp (newlib_check_output): Put
5227 executables in $tmpdir.
5228 * testsuite/lib/flags.exp (libgloss_link_flags): Use the original
5229 libgloss version if not running in the build directory.
5230 * testsuite/lib/newlib.exp (newlib_init): Put testglue.o in
5231 $tmpdir.
5232 * testsuite/lib/passfail.exp (newlib_pass_fail): Put executables
5233 in $tmpdir.
5234
25d209f1
JJ
52352005-06-28 Dave Korn <dave.korn@artimi.com>
5236
5237 * libm/common/s_lrint.c (lrint): Fix signed-vs-unsigned comparison
5238 and miscalculation caused by fp representation of zero.
5239 * libm/common/sf_lrint.c (lrintf): Likewise.
5240
68cdbb18
JJ
52412005-06-16 Christopher Faylor <cgf@timesys.com>
5242
5243 * libc/stdio/vfprintf.c (cvt): Don't rely on pointer aliasing to
5244 determine characteristics of long double. Use a union instead.
5245 * ldtoa.c (_ldtoa_r): Ditto.
5246 (_ldcheck): Ditto.
5247 (_strtold): Ditto.
5248 (union uconv): New union.
5249
15c04fd1
JJ
52502005-06-03 Jeff Johnston <jjohnstn@redhat.com>
5251
5252 * libc/stdlib/mallocr.c (MALLOC_COPY): Switch to use memmove
5253 instead of memcpy.
5254
cf55bf5e
JJ
52552005-05-12 Jeff Johnston <jjohnstn@redhat.com>
5256
5257 * configure.host (mn10300-*): Add long long I/O support by default.
5258
b6e654c4
JJ
52592005-05-12 Jeff Johnston <jjohnstn@redhat.com>
5260
5261 * libc/sys/linux/getpwuid.c: Removed.
5262 * libc/sys/linux/getpwnam.c: Removed.
5263 * libc/sys/linux/getpwent.c: New file containing logic
5264 from files removed above. This allows overriding of file
5265 in libc/unix.
5266 * libc/sys/linux/Makefile.am: Support changes above.
5267 * libc/sys/linux/Makefile.in: Regenerated.
5268
5456408b
JJ
52692005-04-28 Jeff Johnston <jjohnstn@redhat.com>
5270
5271 * libc/stdio/vfscanf.c (__svfscanf_r): Fix code thinko
5272 when checking for multiple flags.
5273
1c74754f
HPN
52742005-04-18 Hans-Peter Nilsson <hp@axis.com>
5275
5276 * configure.host <cris-*-* | crisv32-*-*>: Set
ba3ccd63 5277 default_newlib_io_long_long="yes".
1c74754f 5278
6e75bff6
JJ
52792005-04-08 Jeff Johnston <jjohnstn@redhat.com>
5280
5281 * libc/include/libgen.h: New file.
5282
52832005-04-08 Shaun Jackman <sjackman@gmail.com>
5284
5285 * libc/unix/Makefile.am: Add support for basename and dirname.
5286 * libc/unix/Makefile.in: Regenerated.
5287 * libc/unix/basename.c: New file.
5288 * libc/unix/dirname.c: New file.
5289
95c136c4
JJ
52902005-04-07 Shaun Jackman <sjackman@gmail.com>
5291
5292 * libc/sys/linux/inode.c (lchown): New function.
5293
9ae26f7e
JJ
52942005-04-07 Shaun Jackman <sjackman@gmail.com>
5295
5296 * libc/unix/Makefile.am (LIB_OBJS): Include all the ELIX objects if no
5297 ELIX level is defined.
5298 * libc/unix/Makefile.in: Regenerated.
5299
85da7039
JJ
53002005-04-05 Dave Korn <dave.korn@artimi.com>
5301
5302 * libc/stdio/vfscanf.c (__svfscanf_r): If an error occurs processing
5303 something that looks like a "NaN", put back the characters processed.
5304
fefc73a0
CV
53052005-04-01 Corinna Vinschen <corinna@vinschen.de>
5306
5307 * libc/stdlib/strtod.c (_strtod_r): Never change s00.
5308
e633fde1
CF
53092005-03-23 Christopher Faylor <cgf@timesys.com>
5310
5311 * configure.host: For cygwin, redefine CC with cygwin include directory
5312 first to mimic the behavior of the top-level configury. Move include
5313 directory out of newlib_cflags.
5314
859c94e8
JJ
53152005-03-22 Jeff Johnston <jjohnstn@redhat.com>
5316
5317 * configure.host: For arc, set -DREENTRANT_SYSCALLS_PROVIDED flag on.
17c0c97d 5318 * libc/sys/arc/syscalls.c: Change functions to use __errno_r rather
859c94e8
JJ
5319 than errno.
5320
7e3fd32b
CF
53212005-03-22 Christopher Faylor <cgf@timesys.com>
5322
5323 * libc/include/machine/_types.h: Make trivial change to comment to
5324 avoid a spurious warning from gcc.
5325
d4eb8920
JJ
53262005-03-21 Nicholas Wourms <nwourms@netscape.net>
5327
5328 * libc/stdio/vfprintf.c: Move newlib.h before _WANT_IO_POS_ARGS test,
5329 since _WANT_IO_POS_ARGS is now defined in there. Remove duplicate
5330 reent.h include.
5331
45030958 53322005-03-18 Hans-Peter Nilsson <hp@axis.com>
ba3ccd63 5333 Corinna Vinschen <corinna@vinschen.de>
45030958 5334
ba3ccd63
EB
5335 * libc/include/ctype.h: Remove invalid +1 offset from
5336 ctype macro references to __ctype_ptr.
5337 (_ctype_): Move declaration outside #ifndef __cplusplus.
45030958 5338
5c9b5ac7
CV
53392005-03-18 Corinna Vinschen <corinna@vinschen.de>
5340
5341 * libc/include/machine/setjmp.h (sigsetjmp): Use GCC extension to
5342 evaluate first parameter only once.
5343 (siglongjmp): Ditto.
5344
dd801fda
JJ
53452005-03-17 Jeff Johnston <jjohnstn@redhat.com>
5346
5347 * configure.in: Add new check to see if compiler supports
5348 aliasing of arrays and define _HAVE_ARRAY_ALIASING if true.
5349 * configure: Regenerated.
5350 * Makefile.in: Ditto.
5351 * newlib.hin: Add _HAVE_ARRAY_ALIASING.
5352 * libc/ctype/ctype_.c: Check for _HAVE_ARRAY_ALIASING before
5353 aliasing the _ctype_ array to _ctype_b.
5354 * libc/include/ctype.h: Change macros to use __ctype_ptr. Mark
5355 _ctype_ as deprecated.
5356
333eabc6
HPN
53572005-03-17 Hans-Peter Nilsson <hp@axis.com>
5358
5359 * configure.host (newlib_cflags) <cris-*-*, crisv32-*-*>: Add
5360 -DCOMPACT_CTYPE.
5361
df5a5b35
JJ
53622005-03-06 Ralf Corsepious <ralf.corsepius@rtems.org>
5363
5364 * libc/sys/rtems/include/inttypes.h: New file.
5365 * libc/sys/rtems/include/stdint.h: Ditto.
5366
9d385fb0
JJ
53672005-03-06 Ralf Corsepious <ralf.corsepius@rtems.org>
5368
5369 * libc/string/memcmp.c: Fix to avoid pointer signedness warning.
5370
2e7d9bf9
JJ
53712005-03-06 Ralf Corsepious <ralf.corsepius@rtems.org>
5372
5373 * libc/include/machine/_types.h: New file.
5374 * libc/include/sys/types.h: Do not check for __rtems__
5375 when including <machine/_types.h>. Remove some redundant
5376 declarations now that <machine/_types.h> is included.
5377 * libc/sys/rtems/machine/_types.h: Removed. Replaced with
5378 shared header file.
5379
92a7e06e
JJ
53802005-02-25 Ralf Corsepious <ralf.corsepius@rtems.org>
5381
5382 * libm/common/fdlibm.h (FLT_UWORD_MAX, FLT_UWORD_HALF_MAX): Add
5383 L qualifier for these long constants.
5384
1139537a
JJ
53852005-02-25 Eric Blake <ebb9@byu.net>
5386
5387 * libc/include/time.h (__tzrule_struct): Make offset long, since
5388 a 16-bit int overflows on a 12-hour offset.
5389 * libc/sys/linux/include/time.h: Ditto.
5390 * libc/time/mktime.c (mktime): Use new type of __tzrule.offset.
5391 * libc/time/mktm_r.c: Ditto.
5392 * libc/time/gettzinfo.c: Ditto.
5393 * libc/time/strftime.c (strftime): Fix '%x' to deal with negative
5394 years. Fix '%z' to use long, not int.
5395
f4fd7b4c
JJ
53962005-02-24 Ralf Corsepious <ralf.corsepius@rtems.org>
5397
5398 * libm/common/s_fpclassify.c: Use __uint32_t instead of int to
5399 manipulate float values in integer form.
5400 * libm/common/sf_round.c: Ditto.
5401
f2f8a9a2
JJ
54022005-02-24 Ralf Corsepious <ralf.corsepius@rtems.org>
5403
5404 * libc/include/sys/types.h [__rtems__]: Include new
5405 header file machine/_types.h.
5406 * libc/include/machine/types.h: Ditto.
5407 * libc/sys/rtems/machine/_types.h: New file.
5408
39fd43d7
CV
54092005-02-23 Corinna Vinschen <corinna@vinschen.de>
5410
5411 * libc/include/time.h (_timezone): Change to long also for Cygwin.
5412 (timezone): Drop cast from definition.
5413
6b9a74f9
JJ
54142005-02-23 Jeff Johnston <jjohnstn@redhat.com>
5415
5416 * libc/include/time.h [!CYGWIN](_timezone): Change to long.
5417 (__tzrule_type, __tzinfo_type): New types.
5418 (__gettzinfo): New function.
5419 * libc/sys/linux/include/time.h: Ditto.
5420 * libc/time/Makefile.am: Add gettzinfo.c.
5421 * libc/time/Makefile.in: Regenerated.
5422 * libc/time/local.h: Moved __tzrule_type to time.h.
5423 * libc/time/mktime.c: Call __gettzinfo to reference
5424 __tznorth, __tzyear, and __tzrule array.
5425 * libc/time/mktm_r.c: Ditto.
5426 * libc/time/strftime.c: Ditto.
5427 * libc/time/tzset_r.c: Ditto. Also remove definition
5428 of __tzrule which is now in gettzinfo.c. Change _timezone
5429 references to not cast to time_t.
5430 * libc/time/gettzinfo.c: New file.
5431
6015cf9f
CV
54322005-02-23 Corinna Vinschen <corinna@vinschen.de>
5433
5434 * libc/include/sys/unistd.h: Define getpeereid for Cygwin.
5435
5e4c05da
CV
54362005-02-22 Corinna Vinschen <corinna@vinschen.de>
5437
5438 * libc/include/sys/unistd.h: Define fdatasync also for Cygwin.
5439
f1d439fc
JJ
54402005-02-16 Eric Blake <ebb9@byu.net>
5441
5442 * libc/time/time.tex: Improve the documentation.
5443 * libc/time/strftime.c: Improve the documentation.
5444 (iso_year_adjust): New helper function.
5445 (strftime): Simplify '%E' and '%O'. Change '%c' to use
5446 recursion. Fix '%C', '%y', and '%Y' to deal with years with more
5447 than 4 characters. Combine '%d' and '%e'. Implement '%D', '%F',
5448 '%g', '%G', '%n', '%R', '%t', '%T', '%u', '%V', '%X', and '%z'.
5449 Avoid core dumps on valid inputs (maxsize == 0, or
5450 tim_p->tm_isdst > 1).
5451
18d3a03b
CV
54522005-02-08 Corinna Vinschen <corinna@vinschen.de>
5453
5454 * libc/include/pwd.h (struct passwd): Change pw_uid and pw_gid
5455 members to uid_t and gid_t according to SUSv3.
5456 * libc/include/sys/time.h (utimes): Change second parameter
5457 to const according to SUSv3.
5458
1159e0fd
JJ
54592005-02-07 Antony King <antony.king@st.com>
5460
5461 * libc/stdio/clearerr.c (clearerr): Ensure CHECK_INIT() is
5462 called before _flockfile to prevent lock object use before
5463 initialisation. _REENT_SMALL_CHECK_INIT() and CHECK_INIT()
5464 take a struct _reent * instead of a FILE *.
5465 * libc/stdio/fclose.c (_fclose_r): Ditto.
5466 * libc/stdio/feof.c (feof): Ditto.
5467 * libc/stdio/ferror.c (ferror): Ditto.
5468 * libc/stdio/fflush.c (fflush): Ditto.
5469 * libc/stdio/fgetc.c (fgetc): Ditto.
5470 * libc/stdio/fgets.c (fgets): Ditto.
5471 * libc/stdio/fileno.c (fileno): Ditto.
5472 * libc/stdio/fputc.c (fputc): Ditto.
5473 * libc/stdio/fputs.c (fputs): Ditto.
5474 * libc/stdio/fread.c (fread): Ditto.
5475 * libc/stdio/freopen.c (_freopen_r): Ditto.
5476 * libc/stdio/fseek.c (_fseek_r): Ditto.
5477 * libc/stdio/ftell.c (_ftell_r): Ditto.
5478 * libc/stdio/fwrite.c (fwrite): Ditto.
5479 * libc/stdio/getc.c (getc): Ditto.
5480 * libc/stdio/getdelim.c (__getdelim): Ditto.
5481 * libc/stdio/putc.c (putc): Ditto.
5482 * libc/stdio/setvbuf.c (setvbuf): Ditto.
5483 * libc/stdio/ungetc.c (_ungetc_r): Ditto.
5484 * libc/stdio/vfprintf.c (_VFPRINTF_R): Ditto.
5485 * libc/stdio64/freopen64.c (_freopen64_r): Ditto.
5486 * libc/stdio64/fseeko64.c (_fseeko64_r): Ditto.
5487 * libc/stdio64/ftello64.c (_ftello64_r): Ditto.
5488 * libc/stdio/local.h (CHECK_INIT): Argument is now a struct
5489 _reent * instead of a FILE * and so replace incorrect use of
5490 _REENT with argument.
5491 * libc/sys/arm/syscalls.c (CHECK_INIT): Ditto.
5492 * libc/stdio/getchar.c (getchar): _REENT_SMALL_CHECK_INIT() and
5493 CHECK_INIT() take a struct _reent * instead of a FILE *.
5494 * libc/stdio/iprintf.c (iprintf, _iprintf_r): Ditto.
5495 * libc/stdio/iscanf.c (iscanf, _iscanf_r): Ditto.
5496 * libc/stdio/perror.c (perror): Ditto.
5497 * libc/stdio/printf.c (printf, _printf_r): Ditto.
5498 * libc/stdio/putchar.c (putchar): Ditto.
5499 * libc/stdio/puts.c (puts): Ditto.
5500 * libc/stdio/refill.c (__srefill): Ditto.
5501 * libc/stdio/scanf.c (scanf, _scanf_r): Ditto.
5502 * libc/stdio/vfscanf.c (VFSCANF, _VFSCANF_R): Ditto.
5503 * libc/stdio/viprintf.c (viprintf, _viprintf_r): Ditto.
5504 * libc/stdio/viscanf.c (viscanf, _viscanf_r): Ditto.
5505 * libc/stdio/vprintf.c (vprintf, _vprintf_r): Ditto.
5506 * libc/stdio/vscanf.c (vscanf, _vscanf_r): Ditto.
5507 * libc/stdio/wbuf.c (__swbuf): Ditto.
5508 * libc/stdio/wsetup.c (__swsetup): Ditto.
5509 * libc/stdlib/mallocr.c (malloc_stats): Ditto.
5510 * libc/stdlib/mstats.c (_mstats_r): Ditto.
5511 * libc/include/sys/reent.h (_REENT_SMALL_CHECK_INIT): Ditto.
5512 * libc/machine/powerpc/vfscanf.c (vfscanf): Ditto.
5513 * libc/stdio/fgetpos.c (_fgetpos_r): Removed unnecessary calls
5514 to _flockfile and _funlockfile; rely on locking in _ftell_r.
5515 * libc/stdio64/fgetpos64.c (_fgetpos64_r): Ditto (_ftello64_r).
5516 * libc/machine/powerpc/vfprintf.c (__sbprintf): Removed unnecessary
5517 initialision of _data field in FILE structure.
5518 * libc/machine/powerpc/vfprintf.c (VFPRINTF): Added CHECK_INIT() call.
5519
3d915670
JJ
55202005-02-07 Jeff Johnston <jjohnstn@redhat.com>
5521
5522 * libc/stdio/findfp.c (__sinit): Protect with new lock.
5523 (__sinit_lock): New lock.
5524 (__sinit_lock_acquire, __sinit_lock_release): New functions.
5525 * libc/stdio/local.h: Add reference to new __sinit locking
5526 functions.
5527
b59cab1e
JJ
55282005-02-07 Jeff Johnston <jjohnstn@redhat.com>
5529
5530 * libc/include/math.h (isfinite, isnormal, isunordered): Change
5531 input variable names to avoid mixups with nesting macros.
5532
1815fdea
JJ
55332005-01-27 Hans-Peter Nilsson <hp@axis.com>
5534
5535 * configure.host: Add support for cris-*-* and crisv32-*-*.
5536 * libc/include/machine/ieeefp.h: Ditto.
5537 * libc/include/machine/setjmp.h: Ditto.
5538 * libc/machine/cris/configure.in, libc/machine/cris/Makefile.am,
5539 libc/machine/cris/libcdtor.c, libc/machine/cris/setjmp.c,
5540 libc/machine/cris/memmove.c, libc/machine/cris/memcpy.c,
5541 libc/machine/cris/memset.c, libc/machine/cris/include/pthread.h,
5542 libc/machine/cris/sys/signal.h, libc/machine/cris/sys/fcntl.h,
5543 libc/machine/cris/sys/errno.h, libc/machine/cris/aclocal.m4,
5544 libc/machine/cris/configure, libc/machine/cris/Makefile.in: New
5545 files.
5546
f7d4d41a
JJ
55472005-01-27 Hans-Peter Nilsson <hp@axis.com>
5548
5549 * testsuite/newlib.string/memmove1.c: New test.
5550
1319dec6
JJ
55512005-01-27 Hans-Peter Nilsson <hp@axis.com>
5552
5553 * testsuite/include/check.h: Include stdlib.h.
5554
b45e65b0
JJ
55552005-01-27 Hans-Peter Nilsson <hp@axis.com>
5556
5557 * Makefile.am (stmp-targ-include): Support include header files
5558 from machine directories.
e9743354 5559 (install-data-local): Ditto.
b45e65b0
JJ
5560 * Makefile.in: Regenerate.
5561
dbfa92dd
JJ
55622005-01-24 Jeff Johnston <jjohnstn@redhat.com>
5563
5564 * libc/include/string.h: Remove Linux-specific declaration of
5565 strsignal and add #include <sys/string.h>.
5566 * libc/include/sys/string.h: New file.
5567 * libc/include/sys/linux/sys/string.h: New file with strsignal
5568 declaration deleted above.
5569
6cb0c055
JJ
55702005-01-20 Jeff Johnston <jjohnstn@redhat.com>
5571
5572 * libc/time/strftime.c (strftime): Change %r and %x to be compliant
5573 to POSIX standard for "C" locale. Allow %E and %O modifiers
5574 to be ignored as long as they precede valid specifiers according
5575 to POSIX.
5576
52429807
JJ
55772005-01-19 Shaun Jackman <sjackman@gmail.com>
5578
5579 * libc/stdlib/setenv_r.c (_setenv_r): Call tzset() if the TZ
5580 environment variable is set.
5581
f693170a
JJ
55822005-01-19 Shaun Jackman <sjackman@gmail.com>
5583
ba3ccd63 5584 * tzset_r.c (_tzname): Add a comma.
f693170a 5585
464d01bf
AH
55862005-01-18 Aldy Hernandez <aldyh@redhat.com>
5587
5588 * libc/machine/powerpc/vfprintf.c: Use _REENT when calling
5589 _VFPRINTF_R.
5590
f7a74742 55912005-01-07 Paul Brook <paul@codesourcery.com>
17c0c97d 5592
f7a74742
JJ
5593 * configure.in: Add test for .init_array.
5594 * configure: Regenerate.
5595 * newlib.hin: Add HAVE_INITFINI_ARRAY.
5596 * libc/misc/Makefile.am: Add init.c
5597 * libc/misc/Makefile.in: Regenerate.
5598 * libc/misc/init.c: New file.
5599 * libc/sys/arm/crt0.S: Call __libc_{init,fini}_array instead of
5600 _init/_fini if they exist.
17c0c97d 5601
8fa6cb9a
JJ
56022005-01-06 Jeff Johnston <jjohnstn@redhat.com>
5603
5604 * libc/stdlib/strtod.c (_strtod_r): Add NaN support.
5605 * (strtof): Ditto.
5606 * libc/stdio/vfscanf.c (__svfscanf_r): Ditto.
5607 * Makefile.am (MATHOBJS_IN_LIBC): Add s_nan and sf_nan
5608 functions for use by strtod and strtof.
5609 * Makefile.in: Regenerated.
17c0c97d 5610
034a3909 56112005-01-06 Hans-Peter Nilsson <hp@axis.com>
17c0c97d 5612
034a3909
JJ
5613 * libc/stdio/ftell.c (ftell_r): Add parenthesis for __SWR
5614 bit-test in combination with NULL test.
17c0c97d 5615
9918ea2d 56162005-01-06 Hans-Peter Nilsson <hp@axis.com>
17c0c97d 5617
ba3ccd63 5618 * README: Fix typo of LGPL. Change "license" to "copyright".
17c0c97d 5619
5cc3f592
JJ
56202004-12-17 Jeff Johnston <jjohnstn@redhat.com>
5621
5622 * NEWS: Update with 1.13.0 info.
5623 * README: Ditto.
5624 * acinclude.m4: Change version number to 1.13.0.
5625 * aclocal.m4: Regenerated.
5626 * configure: Ditto.
5627 * doc/aclocal.m4: Ditto.
5628 * doc/configure: Ditto.
5629 * libc/*/aclocal.m4: Ditto.
5630 * libc/*/configure: Ditto.
5631 * libc/libc.texinfo: Ditto.
5632 * libm/*/aclocal.m4: Ditto.
5633 * libm/*/configure: Ditto.
5634 * libm/libm.texinfo: Ditto.
5635 * libc/sys/linux/shared.ld: Add VERS_1.13.
5636
d8ae996c
JJ
56372004-12-17 Christian Groessler <chris@groessler.org>
5638
5639 * libc/machine/z8k/memcmp.S: New file.
5640 * libc/machine/z8k/memcpy.S: Ditto.
5641 * libc/machine/z8k/memmove.S: Ditto.
5642 * libc/machine/z8k/memset.S: Ditto.
5643 * libc/machine/z8k/Makefile.am: Add new files.
5644 * libc/machine/z8k/Makefile.in: Regenerated.
5645 * libc/machine/z8k/setjmp.S: Fix indirect register usage in Z8002
5646 part. Implement Z8002 stdcall version.
5647
82673116
JJ
56482004-12-13 Jeff Johnston <jjohnstn@redhat.com>
5649
5650 * libc/stdio/fread.c (fread): For unbuffered I/O, attempt
5651 a low-level read if we don't get the full amount of bytes so
5652 EOF or error flags will be set.
5653
0082d4cf
JJ
56542004-12-09 Alex Mogilnikov <alx@intellectronika.ru>
5655
5656 * libc/time/tzset_r (_tzset_r): Properly skip over
5657 '/' when it is detected.
5658
3b54b74f
JJ
56592004-12-08 Alex Mogilnikov <alx@intellectronika.ru>
5660
5661 * libc/time/tzset_r (_tzset_r): Fix loop.
5662
4b30e154
JJ
56632004-12-08 Alex Mogilnikov <alx@intellectronika.ru>
5664
5665 * libc/time/mktm_r (_mktm_r): Fix overflow calculation for
5666 m_day.
5667 (__tzcalc_limits): Fix reference to month array to be zero-based.
5668
465eab2e
JJ
56692004-12-07 Jeff Johnston <jjohnstn@redhat.com>
5670
5671 * libc/sys/linux/sys/unistd.h: Add prototypes for ftruncate, truncate,
5672 and usleep.
5673
a2b1a849
JJ
56742004-12-03 Jeff Johnston <jjohnstn@redhat.com>
5675
5676 * Makefile.am (libc_la_LDFLAGS): Add -lgcc to handle any
5677 libgcc dependencies.
5678 (libm_la_LDFLAGS): Ditto.
5679 * Makefile.in: Regenerated.
5680
c80a1731
JJ
56812004-12-03 Shaun Jackman <sjackman@gmail.com>
5682
5683 * libc/sys/linux/linuxthreads/Makefile.am (install-data-local): Fix
5684 our link to use readlink so as to preserve any relative link created
5685 by install-toollibLIBRARIES.
5686 * libc/sys/linux/linuxthreads/Makefile.in: Regenerated.
5687
70e9da42
JJ
56882004-12-02 Shaun Jackman <sjackman@gmail.com>
5689
5690 * libc/sys/linux/stdlib/glob.c: Include <sys/types.h> which defines
5691 time_t before including sys/stat.h, which uses it.
5692 * libc/sys/linux/sys/stat.h: Include <sys/types.h> and
5693 <linux/time.h> just prior to definition of __KERNEL__ so as to
5694 allow building on Debian Linux where otherwise, mktime would
5695 be redefined.
5696
a330d85a
JJ
56972004-11-26 Paul Brook <paul@codesourcery.com>
5698
5699 * libc/sys/arm/crt0.S (_start): Add .cantunwind annotation.
17c0c97d 5700
c41a1cb7
JJ
57012004-11-24 Jeff Johnston <jjohnstn@redhat.com>
5702
5703 * libc/include/stdlib.h (putenv, _putenv_r): Change to remove
9aa189be 5704 const for value string parameter to match Single Unix and glibc.
c41a1cb7
JJ
5705 * libc/stdlib/putenv.c: Ditto.
5706 * libc/stdlib/putenv_r.c: Ditto.
5707
16ac96ee
JJ
57082004-11-24 Jeff Johnston <jjohnstn@redhat.com>
5709
5710 * libc/stdio/Makefile.am: Fix missing vfscanf.
5711 * libc/stdio/Makefile.in: Regenerated.
17c0c97d 5712
3bf09147 57132004-11-23 Jeff Johnston <jjohnstn@redhat.com>
17c0c97d 5714
3bf09147
JJ
5715 * libc/include/stdio.h: Add new iprintf and iscanf variants. Also
5716 do some reordering.
5717 * libc/machine/powerpc/vfscanf.c: Remove __sccl function.
5718 * libc/stdio/Makefile.am: Add support for new iprintf and iscanf
5719 family functions.
5720 * libc/stdio/Makefile.in: Regenerated.
5721 * libc/stdio/fiprintf.c: Remove doc to siprintf.c.
5722 * libc/stdio/iprintf.c: Ditto.
5723 * libc/stdio/local.h (__svfiscanf_r): New prototype.
5724 * libc/stdio/siprintf.c: Add docs for various iprintf family functions.
5725 * libc/stdio/sniprintf.c: Move docs to siprintf.c.
5726 * libc/stdio/stdio.tex: Add new functions.
5727 * libc/stdio/vfscanf.c: Split out __sccl function to separate
5728 file and add special name defines so this file can be used
5729 to build vfiscanf.o.
5730 * libc/stdio/asiprintf.c: New file.
5731 * libc/stdio/fiscanf.c: Ditto.
5732 * libc/stdio/iscanf.c: Ditto.
5733 * libc/stdio/sccl.c: Ditto.
5734 * libc/stdio/siscanf.c: Ditto.
5735 * libc/stdio/vasiprintf.c: Ditto.
5736 * libc/stdio/viprintf.c: Ditto.
5737 * libc/stdio/viscanf.c: Ditto.
5738 * libc/stdio/vsiprintf.c: Ditto.
5739 * libc/stdio/vsiscanf.c: Ditto.
5740 * libc/stdio/vsniprintf.c: Ditto.
5741
0f0fcb04 57422004-11-19 Shaun Jackman <sjackman@gmail.com>
17c0c97d 5743
ba3ccd63
EB
5744 * libc/include/stdio.h: Add sniprintf.
5745 * libc/stdio/Makefile.am: Add sniprintf.c.
5746 * libc/stdio/Makefile.in: Regenerated.
5747 * libc/stdio/sniprintf.c: New file.
5748 * libc/stdio/stdio.tex: Add sniprintf.
17c0c97d 5749
1f8f7e2d
CF
57502004-11-17 Christopher Faylor <cgf@timesys.com>
5751
5752 * libc/stdio/refill.c (__srefill): Try again after EOF on Cygwin. Clear
5753 EOF flag if successful.
5754
b08d08c7
CF
57552004-10-28 Christopher Faylor <cgf@timesys.com>
5756
5757 * libc/include/sys/signal.h: Move <signal.h> include to bottom of file
334ba104 5758 so that all relevant definitions have been performed for use in the
b08d08c7
CF
5759 include.
5760
65b1964f
JJ
57612004-10-26 Jason Tishler <jason@tishler.net>
5762
5763 * libc/stdio/fread.c (fread): Fix return value for unbuffered
5764 fread.
5765
6382b7e3 57662004-10-25 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
06b5ef6e
JJ
5767
5768 * libc/include/machine/setjmp.h: Add AVR support.
5769 * libc/sys/rtems/crt0.S [__AVR__]: Add __stack.
5770
73131c2d 57712004-10-08 Jeff Johnston <jjohnstn@redhat.com>
17c0c97d 5772
ba3ccd63
EB
5773 * libc/include/sys/signal.h: If <signal.h> didn't include
5774 this header file, include <signal.h> to account for
5775 applications that take advantage that the two header
5776 files are the same in glibc.
17c0c97d 5777
1185687a
JJ
57782004-10-05 Tomer Levi <Tomer.Levi@nsc.com>
5779
ba3ccd63
EB
5780 * configure.host: Add support for crx.
5781 * libc/include/machine/ieeefp.h: Ditto.
5782 * libc/include/machine/setjmp.h: Ditto.
5783 * libc/machine/crx/Makefile.am: New file.
5784 * libc/machine/crx/configure.in: Ditto.
5785 * libc/machine/crx/setjmp.S: Ditto.
5786 * libc/machine/crx/getenv.c: Ditto.
5787 * libc/machine/crx/aclocal.m4: Generate.
5788 * libc/machine/crx/configure: Ditto.
5789 * libc/machine/crx/Makefile.in: Ditto.
5790 * libc/machine/crx/sys/asm.h: New file.
5791 * libc/machine/crx/sys/libh.h: Ditto.
5792 * libc/machine/crx/sys/syscall.h: Ditto.
1185687a 5793
423152ed
JJ
57942004-10-05 Jeff Johnston <jjohnstn@redhat.com>
5795
5796 * Makefile.am (stmp-targ-include): Support sys header files
5797 from machine directories.
5798 * Makefile.in: Regenerated.
5799
3ea9de76
JJ
58002004-10-04 Jeff Johnston <jjohnstn@redhat.com>
5801
5802 * libc/stdio/vfscanf.c (__svfscanf_r): For int conversions,
5803 count skipped zero characters as part of the nread count for %n.
5804 * libc/machine/powerpc/vfscanf.c: Ditto.
5805
2a6e1223
JJ
58062004-09-24 Jeff Johnston <jjohnstn@redhat.com>
5807
5808 * libc/stdio/local.h: Include <stdlib.h>.
5809
d163f2fc
CV
58102004-09-24 Corinna Vinschen <corinna@vinschen.de>
5811
5812 * libc/stdio/fread.c (fread): Include <malloc.h>.
5813
602de582
JJ
58142004-09-22 Jeff Johnston <jjohnstn@redhat.com>
5815
5816 * libc/stdio/fread.c (fread): For non-space-optimized case,
5817 add special code for unbuffered files to use user buffer and
5818 only require one low-level system read.
5819
32e73f4d
ILT
58202004-09-21 Ian Lance Taylor <ian@wasabisystems.com>
5821
5822 * libc/machine/xscale/setjmp.S: New file, copied from
5823 libc/machine/arm/setjmp.S.
5824 * libc/machine/xscale/Makefile.am (lib_a_SOURCES): Add setjmp.S.
5825 * libc/machine/xscale/Makefile.in: Regenerate.
5826
ed6859b8
JJ
58272004-09-16 Antony King <antony.king@st.com>
5828
5829 * libc/include/sys/lock.h: Replaced empty {} with (0) to conform
5830 with locking API.
17c0c97d 5831 * libc/include/sys/stdio.h: (_flockfile)[!_SINGLE_THREAD]: Add
ed6859b8
JJ
5832 check for__SSTR in _flags and if set, skip lock request.
5833 (_funlockfile)[!SINGLE_THREAD]: Ditto.
5834 * libc/stdio/local.h (CHECK_INIT): Added check that _REENT is
5835 not NULL.
5836 * libc/stdio/siprintf.c (siprintf, _siprintf_r): Added missing
5837 initialisation of _file to -1 in local FILE.
5838 * libc/stdio/snprintf.c (snprintf, _snprintf_r): Ditto.
5839 * libc/stdio/sscanf.c (sscanf, _sscanf_r): Ditto.
5840 * libc/stdio/vsnprintf.c (vsnprintf, _vsnprintf_r): Ditto.
5841 * libc/stdio/vsscanf.c (_vsscanf_r): Ditto.
5842 * libc/stdio/sscanf.c (sscanf, _sscanf_r): Added __SSTR flag to
5843 _flags in local FILE to prevent locking.
5844 * libc/stdio/vsscanf.c (_vsscanf_r): Ditto.
5845
7a0f6966
JJ
58462004-09-16 Antony King <antony.king@st.com>
5847
5848 * libc/stdio/fwalk.c (_fwalk): Remove check for _GLOBAL_REENT
5849 and only walk the reentrancy parameter.
5850 (_fwalk_reent): Ditto.
5851 * libc/stdlib/exit.c: Remove out of date _REENT_ONLY check.
5852
c77672c0
JJ
58532004-09-16 Antony King <antony.king@st.com>
5854
5855 * libc/stdio64/freopen64.c: Remove casting of fp lock to
5856 _LOCK_RECURSIVE_T.
5857
5c44c2e5
JJ
58582004-09-16 Antony King <antony.king@st.com>
5859
5860 * libc/time/tzlock.c: Add default stubs that use generic
5861 locking code.
5862
14613e5e
JJ
58632004-09-16 Antony King <antony.king@st.com>
5864
5865 * libc/ctype/ctype.tex: Added missing documentation.
5866 * libc/stdio/stdio.tex Ditto.
5867 * libc/stdlib/stdlib.tex Ditto.
5868 * libc/string/strings.tex Ditto.
5869 * libc/time/time.tex: Ditto.
5870 * libc/stdio/setbuffer.c: Removed setlinebuf documentation.
5871
181cb051
JJ
58722004-09-15 Corinna Vinschen <vinschen@redhat.com>
5873
5874 * libc/reent/impure.c (reent_data): Define as alias to impure_data
5875 when building for Cygwin.
5876 * libc/include/sys/reent.h (_GLOBAL_REENT): Revert definition to
5877 _global_impure_ptr.
5878
51d4a7ea
JJ
58792004-09-15 Jeff Johnston <jjohnstn@redhat.com>
5880
5881 * configure.host: Reverting 2004-09-14 change as fix has occurred on
5882 Cygwin side.
5883 * configure.in: Ditto.
5884 * libc/configure.in: Ditto.
5885 * libc/sys/configure.in: Ditto.
5886 * configure: Ditto.
5887 * libc/configure: Ditto.
5888 * libc/sys/configure: Ditto.
5889 * libc/include/sys/reent.h: Ditto.
5890 * libc/stdlib/__atexit.c: Ditto.
5891 * libc/stdlib/__call_atexit.c: Ditto.
5892 * libc/stdlib/cxa_atexit.c: Ditto.
5893 * libc/stdlib/cxa_finalize.c: Ditto.
5894 * libc/sys/cygwin/Makefile.am: Removed again.
5895 * libc/sys/cygwin/Makefile.in: Ditto.
5896 * libc/sys/cygwin/aclocal.m4: Ditto.
5897 * libc/sys/cygwin/configure: Ditto.
5898 * libc/sys/cygwin/configure.in: Ditto.
5899 * libc/sys/cygwin/dummy.c: Ditto.
5900 * libc/sys/cygwin/sys/reent.h: Ditto.
5901
98650d2f
JJ
59022004-09-14 Jeff Johnston <jjohnstn@redhat.com>
5903
5904 * configure.host: Add Cygwin sys directory.
5905 * configure.in: Do not set CRT0 for cygwin.
5906 * libc/configure.in: Ditto.
5907 * libc/sys/configure.in: Ditto.
5908 * configure: Regenerated.
5909 * libc/configure: Ditto.
5910 * libc/sys/configure: Ditto.
5911 * libc/include/sys/reent.h: Add __REENT_HAS_CXA_SUPPORT flag.
5912 * libc/stdlib/__atexit.c: Keep cxa support protected by new
5913 __REENT_HAS_CXA_SUPPORT flag.
5914 * libc/stdlib/__call_atexit.c: Ditto.
5915 * libc/stdlib/cxa_atexit.c: Ditto.
5916 * libc/stdlib/cxa_finalize.c: Ditto.
5917 * libc/sys/cygwin/Makefile.am: New file.
5918 * libc/sys/cygwin/Makefile.in: Ditto.
5919 * libc/sys/cygwin/aclocal.m4: Ditto.
5920 * libc/sys/cygwin/configure: Ditto.
5921 * libc/sys/cygwin/configure.in: Ditto.
5922 * libc/sys/cygwin/dummy.c: Ditto.
5923 * libc/sys/cygwin/sys/reent.h: Ditto. This file is stabilized
5924 version of reent.h.
5925
d4c8e53b
JJ
59262004-09-13 Artem B. Bityuckiy <dedekind@oktetlabs.ru>
5927
5928 * libc/iconv/iconv.tex: Updated with new content.
5929 * libc/iconv/lib/iconvnls.c: Reference ICONV_DEFAULT_NLSPATH
5930 instead of NLS_DEFAULT_NLSPATH.
5931 * libc/iconv/lib/iconvnls.h: Fix typo.
5932 * libc/include/sys/iconvnls.h: New file.
5933
0c8593cf
JJ
59342004-09-09 Paul Brook <paul@codesourcery.com>
5935
5936 * libc/include/sys/reent.h (struct _on_exit_args): Add _dso_handle
5937 and _is_cxa.
5938 (struct _atexit): Add _next when _REENT_SMALL.
5939 (struct _reent): Add _atexit0 when _REENT_SMALL.
5940 (_REENT_INIT_PTR): Adjust.
5941 * libc/stdlib/Makefile.am (GENERAL_SOURCES): Add __atexit.c and
5942 __call_exit.c.
5943 (EXTENDED_SOURCES): Add cxa_atexit.c and cxa_finalize.c.
5944 * libc/stdlib/Makefile.in: Regenerate.
5945 * libc/stdlib/__atexit.c: New file.
5946 * libc/stdlib/__call_atexit.c: New file.
5947 * libc/stdlib/atexit.h: Remove old definitions. Add new.
5948 * libc/stdlib/atexit.c (atexit): Use __register_exitproc.
5949 * libc/stdlib/cxa_atexit.c: New file.
5950 * libc/stdlib/cxa_finalize.c: New file.
5951 * libc/stdlib/exit.c (exit): Use __call_exitprocs.
5952 * libc/stdlib/on_exit.c (on_exit): Use __register_exitproc.
5953 2004-09-09 Jeff Johnston <jjohnstn@redhat.com>
5954 * libc/reent/reent.c [_REENT_SMALL]: Fix reference to
5955 _on_exit_args_ptr.
5956
c6ed5a85
JJ
59572004-08-23 Jeff Johnston <jjohnstn@redhat.com>
5958
5959 * libc/include/sys/unistd.h (getpass): Change prototype to use
5960 const instead of __const.
5961
721a934c
JJ
59622004-08-16 Nathan Sidwell <nathan@codesourcery.com>
5963
5964 * libc/stdio/vfscanf.c (_NO_LONGLONG): Move out of FLOATING_POINT
5965 #if.
5966
4e53fc28
JJ
59672004-08-12 Jeff Johnston <jjohnstn@redhat.com>
5968
5969 * libc/sys/linux/sys/types.h (u64): New typedef to allow building
5970 on linux systems with glibc 2.3.3 installed.
5971 * libc/sys/linux/dl/dl-runtime.c: Fix prototypes for fixup and
5972 profile_fixup so newlib can build on fc3 system.
17c0c97d 5973
82045f12
AO
59742004-07-30 Alexandre Oliva <aoliva@redhat.com>
5975
5976 Introduce SH2a support.
5977 2004-03-16 Corinna Vinschen <vinschen@redhat.com>
5978 * libc/include/machine/ieeefp.h: Define _DOUBLE_IS_32BITS for
5979 __SH2A_SINGLE_ONLY__, too.
5980 * libc/machine/sh/asm.h: Define DELAYED_BRANCHES for __SH2A__, too.
5981 2004-02-24 Corinna Vinschen <vinschen@redhat.com>
5982 * libc/sys/sh/crt0.S (start_l): Support sh2a-nofpu. Fix comments.
5983 2004-02-10 DJ Delorie <dj@redhat.com>
5984 * libc/sys/sh/crt0.S (start_l): Support sh2a.
5985
ad6b1d79
JJ
59862004-07-29 Jeff Johnston <jjohnstn@redhat.com>
5987
5988 * libc/time/strptime.c: Correct full-name of "March" typo.
5989
63b9dcc4
JJ
59902004-07-16 Anil Paranjpe <anilp1@kpitcummins.com>
5991
17c0c97d 5992 * configure.host (h8300*-*-*): Default long long printing support.
63b9dcc4 5993
dbfd3394
JJ
59942004-07-16 Jeff Johnston <jjohnstn@redhat.com>
5995
5996 * libc/stdio/fvwrite.c (_sfvwrite): For asprintf family
5997 calls, if realloc fails, free up buffer as it is no longer
5998 used.
5999
6edb3da9
JJ
60002004-07-07 Artem B. Bityuckiy <dedekind@oktetlabs.ru>
6001
6002 * libc/iconv/iconv.tex: Updated to represent recent changes.
6003 * libc/iconv/lib/iconv.c: Documentation updated.
6004
578a3560
NC
60052004-07-07 Nick Clifton <nickc@redhat.com>
6006
6007 * configure.host (newlib_cflags): Define PREFER_SIZE_OVER_SPEED
6008 for xStormy16.
6009
2bc257e3
JJ
60102004-07-06 Chris Demetriou <cgd@broadcom.com>
6011
6012 * configure.host (mips*-*-elf*): Default long long printing
6013 support.
6014
75e7ffaa
JJ
60152004-07-05 Jeff Johnston <jjohnstn@redhat.com>
6016
6017 * libc/Makefile.am (libc.dvi): Add target and specify
6018 same dependencies as libc.info.
6019 * libc/Makefile.in: Regenerated.
6020 * libm/Makefile.am (libm.dvi): Add target and specify
6021 same dependencies as libm.info.
6022 * libm/Makefile.in: Regenerated.
6023
76ce12c3
JJ
60242004-06-29 Artem B. Bityuckiy <dedekind@oktetlabs.ru>
6025
6026 * acinclude.m4: Move --enable-newlib-iconv option back here.
6027 * configure.in: Remove --enable-newlib-iconv option. Don't
6028 tie iconv support to --enable-newlib-mb.
6029 * aclocal.m4: Regenerated.
6030 * configure: Ditto.
6031 * doc/aclocal.m4, doc/configure: Ditto.
6032 * iconvdata/aclocal.m4, iconvdata/configure: Ditto.
6033 * libm/*/aclocal.m4: Ditto.
6034 * libm/*/configure: Ditto.
6035 * libc/*/aclocal.m4: Ditto.
6036 * libc/*/configure: Ditto.
6037
660dade3
JJ
60382004-06-25 Artem B. Bityuckiy <dedekind@oktetlabs.ru>
6039
6040 * acinclude.m4: Move iconv options into configure.in.
6041 * aclocal.m4: Regenerated.
6042 * configure: Ditto.
6043 * configure.in: Add iconv options.
6044 * newlib.hin: Add new iconv encodings and remove deleted ones.
6045 * doc/aclocal.m4: Regenerated.
6046 * doc/configure: Ditto.
6047 * iconvdata/aclocal.m4: Ditto.
6048 * iconvdata/configure: Ditto.
6049 * libc/iconv: Design change. New size-optimized ccs format.
6050 * libc/iconv/AUTHORS: Removed.
6051 * libc/iconv/COPYING: Ditto.
6052 * libc/iconv/README.ORIGINAL: Ditto.
6053 * libc/iconv/README.TODO: Ditto.
6054 * libc/iconv/charset.aliases: Ditto.
6055 * libc/iconv/encoding.aliases: New file.
6056 * libc/iconv/Makefile.am: Updated.
6057 * libc/iconv/Makefile.in: Regenerated.
6058 * libc/iconv/iconv.tex: Updated.
6059 * libc/iconv/ccs/Makefile.am: Ditto.
6060 * libc/iconv/ccs/Makefile.in: Regenerated.
6061 * libc/iconv/ccs/big5.c: Updated.
6062 * libc/iconv/ccs/cns11643_plane1.c: Ditto.
6063 * libc/iconv/ccs/cns11643_plane14.c: Ditto.
6064 * libc/iconv/ccs/cns11643_plane2.c: Ditto.
6065 * libc/iconv/ccs/cp775.c: Ditto.
6066 * libc/iconv/ccs/cp850.c: Ditto.
6067 * libc/iconv/ccs/cp852.c: Ditto.
6068 * libc/iconv/ccs/cp855.c: Ditto.
6069 * libc/iconv/ccs/cp866.c: Ditto.
6070 * libc/iconv/ccs/iso_8859_1.c: Ditto.
6071 * libc/iconv/ccs/README.CCS.SOURCES: Removed.
6072 * libc/iconv/ccs/gb_2312_80.c: Ditto.
6073 * libc/iconv/ccs/iconv_mktbl: Ditto.
6074 * libc/iconv/ccs/jis_x0201.c: Ditto.
6075 * libc/iconv/ccs/jis_x0208_1983.c: Ditto.
6076 * libc/iconv/ccs/shift_jis.c: Ditto.
6077 * libc/iconv/ccs/us_ascii.c: Ditto.
6078 * libc/iconv/ccs/ccs.h: New file.
6079 * libc/iconv/ccs/ccsbi.c: Ditto.
6080 * libc/iconv/ccs/ccsbi.h: Ditto.
6081 * libc/iconv/ccs/ccsnames.h: Ditto.
6082 * libc/iconv/ccs/iso_8859_10.c: Ditto.
6083 * libc/iconv/ccs/iso_8859_11.c: Ditto.
6084 * libc/iconv/ccs/iso_8859_13.c: Ditto.
6085 * libc/iconv/ccs/iso_8859_14.c: Ditto.
6086 * libc/iconv/ccs/iso_8859_3.c: Ditto.
6087 * libc/iconv/ccs/iso_8859_6.c: Ditto.
6088 * libc/iconv/ccs/iso_8859_7.c: Ditto.
6089 * libc/iconv/ccs/iso_8859_8.c: Ditto.
6090 * libc/iconv/ccs/iso_8859_9.c: Ditto.
6091 * libc/iconv/ccs/iso_ir_111.c: Ditto.
6092 * libc/iconv/ccs/jis_x0201_1976.c: Ditto.
6093 * libc/iconv/ccs/jis_x0208_1990.c: Ditto.
6094 * libc/iconv/ccs/koi8_ru.c: Ditto.
6095 * libc/iconv/ccs/koi8_uni.c: Ditto.
6096 * libc/iconv/ccs/mktbl.pl: Ditto.
6097 * libc/iconv/ccs/win_1250.c: Ditto.
6098 * libc/iconv/ccs/win_1251.c: Ditto.
6099 * libc/iconv/ccs/win_1252.c: Ditto.
6100 * libc/iconv/ccs/win_1253.c: Ditto.
6101 * libc/iconv/ccs/win_1254.c: Ditto.
6102 * libc/iconv/ccs/win_1255.c: Ditto.
6103 * libc/iconv/ccs/win_1256.c: Ditto.
6104 * libc/iconv/ccs/win_1257.c: Ditto.
6105 * libc/iconv/ccs/win_1258.c: Ditto.
d68d3538
JJ
6106 * libc/iconv/ccs/iso_8859_15.c: Updated.
6107 * libc/iconv/ccs/iso_8859_2.c: Ditto.
6108 * libc/iconv/ccs/iso_8859_4.c: Ditto.
6109 * libc/iconv/ccs/iso_8859_5.c: Ditto.
6110 * libc/iconv/ccs/jis_x0212_1990.c: Ditto.
6111 * libc/iconv/ccs/koi8_r.c: Ditto.
6112 * libc/iconv/ccs/koi8_u.c: Ditto.
6113 * libc/iconv/ccs/ksx1001.c: Ditto.
660dade3
JJ
6114 * libc/iconv/ccs/binary/gb_2312_80.cct: Removed.
6115 * libc/iconv/ccs/binary/jis_x0201.cct: Ditto.
6116 * libc/iconv/ccs/binary/shift_jis.cct: Ditto.
6117 * libc/iconv/ccs/binary/us_ascii.cct: Ditto.
6118 * libc/iconv/ccs/binary/jis_x0208_1983.cct: Ditto.
6119 * libc/iconv/ccs/binary/Makefile.am: Updated.
6120 * libc/iconv/ccs/binary/Makefile.in: Regenerated.
6121 * libc/iconv/ccs/binary/big5.cct: Updated.
6122 * libc/iconv/ccs/binary/cns11643_plane1.cct: Ditto.
6123 * libc/iconv/ccs/binary/cns11643_plane14.cct: Ditto.
6124 * libc/iconv/ccs/binary/cns11643_plane2.cct: Ditto.
6125 * libc/iconv/ccs/binary/cp775.cct: Updated.: Ditto.
6126 * libc/iconv/ccs/binary/cp850.cct: Ditto.: Ditto.
6127 * libc/iconv/ccs/binary/cp852.cct: Ditto.: Ditto.
6128 * libc/iconv/ccs/binary/cp855.cct: Ditto.: Ditto.
6129 * libc/iconv/ccs/binary/cp866.cct: Ditto.: Ditto.
6130 * libc/iconv/ccs/binary/iso_8859_1.cct: Ditto.
6131 * libc/iconv/ccs/binary/iso_8859_15.cct: Ditto.
6132 * libc/iconv/ccs/binary/iso_8859_4.cct: Ditto.
6133 * libc/iconv/ccs/binary/iso_8859_5.cct: Ditto.
6134 * libc/iconv/ccs/binary/iso_8859_2.cct: Ditto.
6135 * libc/iconv/ccs/binary/jis_x0212_1990.cct: Ditto.
6136 * libc/iconv/ccs/binary/koi8_r.cct: Ditto.
6137 * libc/iconv/ccs/binary/koi8_u.cct: Ditto.
6138 * libc/iconv/ccs/binary/ksx1001.cct: Ditto.
6139 * libc/iconv/ccs/binary/iso_8859_10.cct: New file.
6140 * libc/iconv/ccs/binary/iso_8859_11.cct: Ditto.
6141 * libc/iconv/ccs/binary/iso_8859_13.cct: Ditto.
6142 * libc/iconv/ccs/binary/iso_8859_14.cct: Ditto.
6143 * libc/iconv/ccs/binary/iso_8859_3.cct: Ditto.
6144 * libc/iconv/ccs/binary/iso_8859_6.cct: Ditto.
6145 * libc/iconv/ccs/binary/iso_8859_7.cct: Ditto.
6146 * libc/iconv/ccs/binary/iso_8859_8.cct: Ditto.
6147 * libc/iconv/ccs/binary/iso_8859_9.cct: Ditto.
6148 * libc/iconv/ccs/binary/iso_ir_111.cct: Ditto.
6149 * libc/iconv/ccs/binary/jis_x0201_1976.cct: Ditto.
6150 * libc/iconv/ccs/binary/jis_x0208_1990.cct: Ditto.
6151 * libc/iconv/ccs/binary/koi8_ru.cct: Ditto.
6152 * libc/iconv/ccs/binary/koi8_uni.cct: Ditto.
6153 * libc/iconv/ccs/binary/win_1250.cct: Ditto.
6154 * libc/iconv/ccs/binary/win_1251.cct: Ditto.
6155 * libc/iconv/ccs/binary/win_1252.cct: Ditto.
6156 * libc/iconv/ccs/binary/win_1253.cct: Ditto.
6157 * libc/iconv/ccs/binary/win_1254.cct: Ditto.
6158 * libc/iconv/ccs/binary/win_1255.cct: Ditto.
6159 * libc/iconv/ccs/binary/win_1256.cct: Ditto.
6160 * libc/iconv/ccs/binary/win_1257.cct: Ditto.
6161 * libc/iconv/ccs/binary/win_1258.cct: Ditto.
6162 * libc/iconv/ces/Makefile.am: Updated.
6163 * libc/iconv/ces/Makefile.in: Regenerated.
6164 * libc/iconv/ces/ucs-2-internal.c: Updated.
6165 * libc/iconv/ces/ucs-4-internal.c: Ditto.
6166 * libc/iconv/ces/utf-16.c: Ditto.
6167 * libc/iconv/ces/utf-8.c: Ditto.
6168 * libc/iconv/ces/cesbi.c: New file.
6169 * libc/iconv/ces/cesbi.h: Ditto.
6170 * libc/iconv/ces/cesdeps.h: Ditto.
6171 * libc/iconv/ces/euc.c: Ditto.
6172 * libc/iconv/ces/mkdeps.pl: Ditto.
6173 * libc/iconv/ces/table-pcs.c: Ditto.
6174 * libc/iconv/ces/table.c: Ditto.
6175 * libc/iconv/ces/ucs-2.c: Ditto.
6176 * libc/iconv/ces/ucs-4.c: Ditto.
6177 * libc/iconv/ces/us-ascii.c: Ditto.
6178 * libc/iconv/ces/euc-jp.c: Removed.
6179 * libc/iconv/ces/euc-kr.c: Ditto.
6180 * libc/iconv/ces/euc-tw.c: Ditto.
6181 * libc/iconv/ces/gb2312.c: Ditto.
6182 * libc/iconv/ces/iso-10646-ucs-2.: Ditto.c
6183 * libc/iconv/ces/iso-10646-ucs-4.c: Ditto.
6184 * libc/iconv/lib/Makefile.am: Updated.
6185 * libc/iconv/lib/Makefile.in: Regenerated.
6186 * libc/iconv/lib/endian.h: Updated.
6187 * libc/iconv/lib/iconv.c: Ditto.
6188 * libc/iconv/lib/local.h: Ditto.
6189 * libc/iconv/lib/aliases.c: Removed.
6190 * libc/iconv/lib/bialiasesi.c: Ditto.
6191 * libc/iconv/lib/biccs.c: Ditto.
6192 * libc/iconv/lib/bices.c: Ditto.
6193 * libc/iconv/lib/ccs.c: Ditto.
6194 * libc/iconv/lib/ces.c: Ditto.
6195 * libc/iconv/lib/ces_euc.c: Ditto.
6196 * libc/iconv/lib/ces_iso2022.c: Ditto.
6197 * libc/iconv/lib/ces_table.c: Ditto.
6198 * libc/iconv/lib/converter.c: Ditto.
6199 * libc/iconv/lib/deps.h: Ditto.
d68d3538
JJ
6200 * libc/iconv/lib/loaddata.c: Ditto.
6201 * libc/iconv/lib/aliasesbi.c: New file.
660dade3
JJ
6202 * libc/iconv/lib/aliasesi.c: Ditto.
6203 * libc/iconv/lib/conv.h: Ditto.
6204 * libc/iconv/lib/encnames.h: Ditto.
6205 * libc/iconv/lib/encoding.deps: Ditto.
6206 * libc/iconv/lib/iconvnls.c: Ditto.
6207 * libc/iconv/lib/iconvnls.h: Ditto.
660dade3
JJ
6208 * libc/iconv/lib/nullconv.c: Ditto.
6209 * libc/iconv/lib/ucsconv.c: Ditto.
6210 * libc/iconv/lib/ucsconv.h: Ditto.
6211 * libc/include/iconv.h: Update copyright.
6212 * libc/*/aclocal.m4: Regenerated.
6213 * libc/*/configure: Ditto.
6214 * libm/*/aclocal.m4: Ditto.
6215 * libm/*/configure: Ditto.
6216
9a6831be
AO
62172004-06-22 Alexandre Oliva <aoliva@redhat.com>
6218
eb6a452a
AO
6219 * libc/include/machine/setjmp.h [__H8300__] (_JBTYPE): Define,
6220 instead of typedefing jmp_buf.
6221
9a6831be
AO
6222 2003-07-02 Richard Sandiford <rsandifo@redhat.com>
6223 * libc/machine/h8300/Makefile.am (lib_a_SOURCES): Add h8sx_strcpy.S.
6224 * libc/machine/h8300/defines.h (LEN): New macro.
6225 * libc/machine/h8300/memcpy.S: Add h8sx version.
6226 * libc/machine/h8300/memset.S: Likewise.
6227 * libc/machine/h8300/strcmp.S: Likewise.
6228 * libc/machine/h8300/setjmp.S: Use h8sx move instructions.
6229 * libc/machine/h8300/h8sx_strcpy.S: New file.
6230 2003-06-30 Richard Sandiford <rsandifo@redhat.com>
6231 * libc/include/machine/ieeefp.h: Extend __H8300S__ handling to
6232 __H8300SX__.
6233 * libc/include/machine/setjmp.h: Likewise.
6234 * libc/include/sys/config.h: Likewise.
6235 * libc/machine/h8300/defines.h: Likewise.
6236 * libc/machine/h8300/setjmp.S: Likewise.
6237 * libc/machine/h8300/strcmp.S: Likewise.
6238 * libc/sys/h8300hms/close.S: Likewise.
6239 * libc/sys/h8300hms/fstat.S: Likewise.
6240 * libc/sys/h8300hms/lseek.S: Likewise.
6241 * libc/sys/h8300hms/read.S: Likewise.
6242 * libc/sys/h8300hms/write.S: Likewise.
6243 * libc/sys/h8300hms/crt0.S: Likewise.
6244 * libc/machine/h8300/setarch.h: Use .h8300sx or .h8300sxn if
6245 __H8300SX__ is defined.
6246 * libc/sys/h8300hms/setarch.h: Likewise.
6247
80dba41e
JJ
62482004-06-17 Jeff Johnston <jjohnstn@redhat.com>
6249
6250 * libc/include/sys/reent.h (_GLOBAL_REENT): Back
6251 out change which set _GLOBAL_REENT to _global_impure_ptr until
6252 we understand why Cygwin breaks because of it.
6253
be910599
JJ
62542004-06-14 Jeff Johnston <jjohnstn@redhat.com>
6255
6256 * libc/sys/linux/machine/i386/syscall.h: For now, set up
6257 __syscall_return macro for systems with vsyscall.
6258
d0bd3e6f
JJ
62592004-06-11 Antony King <antony.king@st.com>
6260
6261 * libc/include/sys/_types.h: Include <sys/lock.h> and change
6262 _flock_t to be of type _LOCK_RECURSIVE_T.
6263 * libc/include/sys/reent.h: (_REENT_INIT): Reformat.
6264 (_REENT_INIT_PTR): Ditto. Use memset where appropriate.
6265 (_global_impure_ptr): New declaration.
6266 (_GLOBAL_REENT): Change to be _global_impure_ptr.
6267 * libc/include/sys/stdio.h: Include <sys/lock.h> and
6268 <sys/reent.h>.
6269 (_flockfile)[!_SINGLE_THREAD]: Add code for lock call.
6270 (_funlockfile)[!SINGLE_THREAD]: Ditto.
6271 * libc/reent/impure.c: Set _global_impure_ptr to _impure_ptr.
6272 * libc/stdio/fclose.c: Remove casting of fp lock to
6273 _LOCK_RECURSIVE_T.
6274 * libc/stdio/findfp.c: Ditto.
6275 * libc/stdio/fopen.c: Ditto.
6276 * libc/stdio/freopen.c: Ditto.
6277 * libc/stdio/vfprintf.c: Ditto.
6278 * libc/stdio64/fopen64.c: Ditto.
6279 * libc/stdlib/envlock.c: Add default stubs that use generic
6280 locking code.
6281 * libc/stdlib/mlock.c: Ditto.
6282
6283 Jeff Johnston <jjohnstn@redhat.com>
6284 * libc/sys/linux/sys/_types.h (__flock_mutex_t): New subtype.
6285 (_flock_t): Change to be a struct containing a single member
6286 named mutex which is of type __flock_mutex_t.
6287
db7033a9
JJ
62882004-06-09 Jeff Johnston <jjohnstn@redhat.com>
6289
6290 * libc/sys/linux/Makefile.am: Change siglist.inc to be generated
6291 from /usr/include/asm/signal.h instead of kernel sources. Also
6292 default max to 32 if not found in header file.
6293 * libc/sys/linux/Makefile.in: Regenerated.
6294 * libc/sys/linux/machine/i386/socketcall.h: Fix for Fedora Core 2
6295 systems where __syscall_return is not defined.
6296 * libc/sys/linux/machine/i386/syscall.h: Change for Fedora Core 2
6297 systems to use syscall() function instead of assembler interrupt.
6298
a170abec
JJ
62992004-06-09 Toralf Lund <toralf@procaptura.com>
6300
6301 * libc/sys/arm/setjmp.S, libc/sys/arm/access.c: Move
6302 files from libc/sys/arm to libc/machine/arm.
6303 * libc/machine/arm/Makefile.am, libc/machine/arm/Makefile.in: Add
6304 library build support for files moved from libc/sys/arm.
6305 * libc/sys/arm/Makefile.am, libc/sys/arm/Makefile.in: Remove
6306 references to access and setjmp.
6307 * configure.host: Add checks for newlib_may_supply_syscalls to
6308 determine whether or not to use sys/arm directory and use
6309 special compiler flags: ARM_RDI_MONITOR and ARM_RDP_MONITOR.
17c0c97d 6310
8b57e664
JJ
63112004-06-02 Jeff Johnston <jjohnstn@redhat.com>
6312
6313 * libc/stdio/vfscanf.c (__svfscanf_r): For CT_INT conversions,
6314 reset digit flags appropriately after we have discovered "0x".
6315 * libc/machine/powerpc/vfscanf.c (__svfscanf_r): Ditto.
6316
3f611058
JJ
63172004-05-27 Jeff Johnston <jjohnstn@redhat.com>
6318
6319 * libc/stdio/vfprintf.c (_VFPRINTF): Move file locking
6320 from here ...
6321 (_VFPRINTF_R): ... to here so all I/O printf routines
6322 are covered.
6323
bb42a35c
JJ
63242004-05-26 Jeff Johnston <jjohnstn@redhat.com>
6325
6326 * libc/search/hash_buf.c: Protect MAX and MIN macros from
6327 redefinition.
6328 * libc/search/hash.c: Ditto.
6329
227e6ef6
JJ
63302004-05-25 Artem B. Bityuckiy <abitytsky@softminecorp.com>
6331
6332 * newlib.hin: (_WANT_IO_POS_ARGS): New define.
6333 (_WANT_IO_LONG_LONG): Ditto.
6334 (_WANT_IO_LONG_DOUBLE): Ditto.
6335 * configure.in: Add new configuration options
6336 --enable-newlib-io-long-long and --enable-newlib-io-long-double
6337 which tie to new defines in newlib.hin.
6338 * configure: Regenerated.
6339 * configure.host: Add checks for new configuration options. Also
6340 fix up check for --enable-newlib-io-pos-args so configuration
6341 option will override any default for a given platform.
6342 Remove defining compiler flags for the _WANT_IO* options.
6343 * libc/stdio/vfprintf.c: Change to use new newlib.hin defines
6344 instead of looking for old compiler flags.
6345 * libc/stdio/vfscanf.c: Ditto.
6346 * libc/stdio/vfieeefp.h: Ditto.
6347 * libc/machine/powerpc/vfprintf.c: Ditto.
6348 * libc/machine/powerpc/vfscanf.c: Ditto.
6349
9178da95
JJ
63502004-05-25 Jeff Johnston <jjohnstn@redhat.com>
6351
6352 * testsuite/include/check.h: Add include of <stdio.h>.
6353
cf3aae91
CV
63542004-05-17 Corinna Vinschen <corinna@vinschen.de>
6355
6356 * libc/include/grp.h: Declare getgrnam_r and getgrgid_r also on Cygwin.
6357
5b4c8ae2
JJ
63582004-05-11 Artem B. Bityuckiy <abitytsky@softminecorp.com>
6359
6360 * libc/stdio/vfprintf.c (VFPRINTF_R): Use _free_r instead
6361 of free.
6362
63632004-05-07 Artem B. Bityuckiy <abitytsky@softminecorp.com>
6364
6365 * libc/stdio/iprintf.c (_iprintf_r): Fix old-style argument
6366 list for reentrant pointer. Call _vfiprintf_r.
6367 * libc/stdio/siprintf.c (_siprintf_r): New function.
6368 * libc/stdio/vfprintf.c (__sbprintf): Add reetrant struct
6369 pointer argument. Change all callers. Call _VFPRINTF_R.
6370 * libc/include/stdio.h (_siprintf_r, _vfiprintf_r): New
6371 prototypes.
6372
631fbe65
JJ
63732004-05-07 Jeff Johnston <jjohnstn@redhat.com>
6374
6375 * libc/include/sys/param.h: Remove endian info and include
6376 <machine/endian.h> instead.
6377 * libc/include/machine/endian.h: New file.
6378 * libc/include/machine/param.h: Ditto.
6379 * libc/machine/arm/machine/endian.h: Ditto.
6380 * libc/machine/arm/machine/param.h: Ditto.
6381 * libc/sys/arm/sys/param.h: Removed.
6382 * libc/sys/sysvi386/sys/param.h: Ditto.
6383 * libc/sys/rtems/sys/param.h: Modified to include <machine/endian.h>.
6384
1af84bb7
JJ
63852004-05-03 Artem B. Bityuckiy <abitytsky@softminecorp.com>
6386
6387 * libc/stdio/vfprintf.c (_VFPRINTF_R): Set error flag when
6388 multibyte functions return failure for %C, %S, %lc, and %ls
6389 format specifiers.
6390
1c63798e
JJ
63912004-05-03 Artem B. Bityuckiy <abitytsky@softminecorp.com>
6392
6393 * testsuite/include/check.h (CHECK): Add flush of stdout.
6394
20b0251a
JJ
63952004-05-03 Artem B. Bityuckiy <abitytsky@softminecorp.com>
6396
6397 * libc/include/stdio.h (_ungetc_r): New prototype.
6398 * libc/stdio/ungetc.c (_ungetc_r): New reentrant function.
6399 (__submore): Add reentrant struct pointer argument.
6400 (ungetc): Change to call _ungetc_r.
6401
6194cf4a
JJ
64022004-04-28 Artem B. Bityuckiy <abitytsky@softminecorp.com>
6403
6404 * libc/stdio/local.h (_fwalk_reent): Specify prototype of
6405 function pointer argument.
6406 * libc/stdio/fwalk.c (_fwalk, _fwalk_reent): Change prototypes
6407 to specify function pointer arguments.
6408 (__fwalk, __fwalk_reent): Ditto.
6409
b4ddf489
AH
64102004-04-26 Aldy Hernandez <aldyh@redhat.com>
6411
ba3ccd63
EB
6412 * libc/machine/powerpc/vfscanf.c (__svfscanf_r): Fix typo in
6413 CT_INT case.
b4ddf489 6414
f777e3a5
JJ
64152004-04-23 Artem B. Bityuckiy <abitytsky@softminecorp.com>
6416
6417 * configure.in: Define _MB_CAPABLE if mb supported.
6418 * configure: Regenerated.
6419 * configure.host: Remove manual setting of MB_CAPABLE compiler
6420 flag.
6421 * newlib.hin: Add _MB_CAPABLE flag.
6422 * libc/ctype/iswalpha.c, libc/ctype/iswblank.c: Include <newlib.h>
6423 and check for _MB_CAPABLE flag instead of MB_CAPABLE.
6424 * libc/ctype/iswcntrl.c, libc/ctype/iswprint.c: Ditto.
6425 * libc/ctype/iswpunct.c, libc/ctype/iswspace.c: Ditto.
6426 * libc/ctype/jp2uc.c: Ditto.
6427 * libc/ctype/towlower.c, libc/ctype/towupper.c: Ditto.
6428 * libc/locale/locale.c: Ditto
6429 * libc/machine/powerpc/vfscanf.c: Ditto
6430 * libc/stdio/vfprintf.c, libc/stdio/vfscanf.c: Ditto
6431 * libc/stdlib/mblen.c: Ditto
6432 * libc/stdlib/mblen_r.c, libc/stdlib/mbrlen.c: Ditto
6433 * libc/stdlib/mbrtowc.c, libc/stdlib/mbsrtowcs.c: Ditto
6434 * libc/stdlib/mbstowcs.c, libc/stdlib/mbtowc.c: Ditto
6435 * libc/stdlib/mbtowc_r.c, libc/stdlib/wcrtomb.c: Ditto
6436 * libc/stdlib/wcsrtombs.c, libc/stdlib/wcstombs.c: Ditto
6437 * libc/stdlib/wctomb.c, libc/sys/linux/intl/dcigettext.c: Ditto
6438 * libc/sys/linux/intl/explodename.c: Ditto
6439 * libc/sys/linux/intl/finddomain.c: Ditto
6440 * libc/sys/linux/intl/l10nflist.c: Ditto
6441 * libc/sys/linux/intl/loadmsgcat.c: Ditto
6442 * libc/sys/linux/intl/localealias.c: Ditto
6443
27c7566c
JJ
64442004-04-23 Jeff Johnston <jjohnstn@redhat.com>
6445
6446 * libc/machine/powerpc/vfscanf.c (NNZDIGITS): New define.
6447 (__svfscanf_r): In integer conversions, leave out leading zeroes
6448 which are not part of a base prefix.
6449 Keep track of width truncation to fit into buf, not counting left-out
6450 zeroes against width till the truncation has been compensated for.
6451 This is based on Joern's patch of 04/21 for libc/stdio/vfscanf.c.
6452
c00f9719
JJ
64532004-04-23 Jeff Johnston <jjohnstn@redhat.com>
6454
6455 * libc/include/stdio.h: (_ftell_r, _fseek_r): New prototypes.
6456
05b31577
JJ
64572004-04-23 Artem B. Bityuckiy <abitytsky@softminecorp.com>
6458
6459 * libc/stdio/asprintf.c libc/stdio/clearerr.c,
6460 libc/stdio/fclose.c libc/stdio/fcloseall.c libc/stdio/fdopen.c,
6461 libc/stdio/feof.c libc/stdio/ferror.c libc/stdio/fflush.c,
6462 libc/stdio/fgetc.c libc/stdio/fgetpos.c libc/stdio/fgets.c,
6463 libc/stdio/fileno.c libc/stdio/findfp.c libc/stdio/fiprintf.c,
6464 libc/stdio/flags.c libc/stdio/fopen.c libc/stdio/fprintf.c,
6465 libc/stdio/fputc.c libc/stdio/fputs.c libc/stdio/fread.c,
6466 libc/stdio/freopen.c libc/stdio/fscanf.c libc/stdio/fseek.c,
6467 libc/stdio/fseeko.c libc/stdio/fsetpos.c libc/stdio/ftell.c,
6468 libc/stdio/ftello.c libc/stdio/fvwrite.c libc/stdio/fwalk.c,
6469 libc/stdio/fwrite.c libc/stdio/getc.c libc/stdio/getc_u.c,
6470 libc/stdio/getchar.c libc/stdio/getchar_u.c,
6471 libc/stdio/getdelim.c libc/stdio/getline.c libc/stdio/gets.c,
6472 libc/stdio/getw.c libc/stdio/iprintf.c libc/stdio/local.h,
6473 libc/stdio/makebuf.c libc/stdio/mktemp.c libc/stdio/perror.c,
6474 libc/stdio/printf.c libc/stdio/putc.c libc/stdio/putc_u.c,
6475 libc/stdio/putchar.c libc/stdio/putchar_u.c libc/stdio/puts.c,
6476 libc/stdio/putw.c libc/stdio/refill.c libc/stdio/remove.c,
6477 libc/stdio/rename.c libc/stdio/rewind.c libc/stdio/rget.c,
6478 libc/stdio/scanf.c libc/stdio/setbuf.c libc/stdio/setbuffer.c,
6479 libc/stdio/setlinebuf.c libc/stdio/setvbuf.c,
6480 libc/stdio/siprintf.c libc/stdio/snprintf.c,
6481 libc/stdio/sprintf.c libc/stdio/sscanf.c libc/stdio/stdio.c,
6482 libc/stdio/tmpfile.c libc/stdio/tmpnam.c libc/stdio/ungetc.c,
6483 libc/stdio/vasprintf.c libc/stdio/vfieeefp.h,
6484 libc/stdio/vfprintf.c libc/stdio/vfscanf.c,
6485 libc/stdio/vprintf.c libc/stdio/vscanf.c,
6486 libc/stdio/vsnprintf.c libc/stdio/vsprintf.c,
6487 libc/stdio/vsscanf.c libc/stdio/wbuf.c,
6488 libc/stdio/wsetup.c: Perform minor formatting changes. Move
6489 copyright notices to top of file, ensure that <_ansi.h> is
6490 included, be consistent with open parentheses, use _DEFUN macro,
6491 include "local.h" where needed, and remove various compiler
6492 warnings.
6493
04e8fca1
JJ
64942004-04-21 J"orn Rennecke <joern.rennecke@superh.com>
6495
6496 * libc/stdio/vfscanf.c (NNZDIGITS): New define.
6497 (__svfscanf_r): In integer conversions, leave out leading zeroes
6498 which are not part of a base prefix.
6499 Keep track of width truncation to fit into buf, not counting left-out
6500 zeroes against width till the truncation has been compensated for.
6501
9090ec74
CV
65022004-04-20 Corinna Vinschen <corinna@vinschen.de>
6503
6504 * libc/include/sys/unistd.h (ttyname_r): Add missing comma.
6505
1c17deea
CV
65062004-04-20 Corinna Vinschen <corinna@vinschen.de>
6507
6508 * libc/include/sys/unistd.h (ttyname_r): Add declaration for Cygwin.
6509
54c7940f
CV
65102004-04-10 Corinna Vinschen <corinna@vinschen.de>
6511
6512 * libc/include/sys/unistd.h (sync): Define void on Cygwin according
6513 to SUSv3.
6514
47dcaf56
JJ
65152004-04-08 Artem B. Bityuckiy <abitytsky@softminecorp.com>
6516
6517 * libc/stdio/fclose.c (_fclose_r): New function.
6518 * libc/stdio/freopen.c (_freopen_r): Call _fclose_r.
6519 * libc/stdio/fcloseall.c (_fcloseall_r): Call _fwalk_reent.
6520 * libc/stdio64/freopen64.c (_freopen64_r): Use _fclose_r.
6521 * libc/include/stdio.h (_fclose_r): New prototype.
6522 * libc/stdio/fopen.c: Fix typo in comment.
6523
65242004-04-08 Jeff Johnston <jjohnstn@redhat.com>
6525
6526 * libc/stdio/fwalk.c (_fwalk_reent): New version of _fwalk
6527 to handle _r reentrant functions.
6528
4121d8cf
JJ
65292004-04-08 Eric Christopher <echristo@redhat.com>
6530
6531 * libc/include/machine/setjmp.h: Fix endif locations.
6532
59c9f5f5
JJ
65332004-04-01 Artem B. Bityuckiy <abitytsky@softminecorp.com>
6534
6535 * libc/time/strptime.c: Add standard includes to avoid
6536 warning messages at compilation time.
6537
38f4f023
JJ
65382004-04-01 Jeff Johnston <jjohnstn@redhat.com>
6539
6540 * libc/stdio/vfscanf.c (__svfscanf_r): Add locking/unlocking
6541 of file.
6542
65432004-03-30 Jeff Johnston <jjohnstn@redhat.com>
ed4c5ece
JJ
6544
6545 * libc/machine/h8300/Makefile.am: Reformat slightly.
6546 * libc/machine/h8300/Makefile.in: Regenerate.
6547
38f4f023 65482004-03-30 Thomas Pfaff <tpfaff@gmx.net>
cacc0d44
JJ
6549
6550 * libc/stdio/findfp.c (__fp_lock_all): Add call to
6551 __sfp_lock_acquire.
17c0c97d 6552 (__fp_unlock_all): Add call to __sfp_lock_release.
cacc0d44 6553
10dcf7e7
JJ
65542004-03-25 Thomas Pfaff <tpfaff@gmx.net>
6555
6556 * libc/stdio/fclose.c (fclose): Protect file pointer list when
6557 releasing a file.
6558 * libc/stdio/fcloseall.c (_fcloseall_r): Close all files via
6559 fwalk.
6560 * libc/stdio/fdopen.c (_fdopen_r): Add calls to
6561 _flockfile/_funlockfile.
6562 * libc/stdio/findfp.c: Move __sfp_lock. Change __sfp_lock type
6563 to recursive.
6564 Change __lock_acquire/__lock_release calls for __sfp_lock to
6565 __sfp_lock_acquire/__sfp_lock_release throughout.
6566 (std): Make sure that file lock is only initialized once.
6567 (__sfp): Move _file initialization. Initialize file lock.
6568 (__sfp_lock_acquire): New function.
6569 (__sfp_lock_release): Ditto.
6570 (__fp_lock_all): Remove __sfp_lock_acquire call.
6571 (__fp_unlock_all): Remove __sfp_lock_release call.
6572 * libc/stdio/fopen.c (_fopen_r): Protect file pointer list.
6573 Add calls to _flockfile/_funlockfile. Remove
6574 __lock_init_recursive call.
6575 * libc/stdio/freopen.c (_freopen_r): Protect file pointer list.
6576 * libc/stdio/fwalk.c (__fwalk): New static function.
6577 (_fwalk): Protect file pointer list. Use __fwalk to walk through
6578 file pointers.
6579 * libc/stdio/local.h: Add defines for
6580 __sfp_lock_acquire/__sfp_lock_release when
6581 single threaded. Add function prototypes otherwise.
6582 * libc/stdio64/fdopen64.c (_fdopen64_r): Add calls to
6583 _flockfile/_funlockfile.
6584 * libc/stdio/fopen64.c (_fopen64_r): Protect file pointer list.
6585 Add calls to _flockfile/_funlockfile. Remove
6586 __lock_init_recursive call.
6587 * libc/stdio/freopen64.c (_freopen64_r): Protect file pointer
17c0c97d 6588 list.
10dcf7e7 6589
ec475b09
JJ
65902004-03-25 Jeff Johnston <jjohnstn@redhat.com>
6591
6592 * libc/sys/linux/sys/lock.h: Turn on __USE_GNU flag if not already
6593 defined. Change __LOCK_RECURSIVE_INIT to be __LOCK_INIT_RECURSIVE.
6594 * libc/sys/linux/dl/dl-support.c: Change __LOCK_RECURSIVE_INIT
6595 to be __LOCK_INIT_RECURSIVE.
6596
2c4ef10a
JJ
65972004-03-11 Kazu Hirata <kazu@cs.umass.edu>
6598
6599 * libc/sys/h8300hms/Makefile.am (lib_a_SOURCES): Replace
6600 _exit.c with _exit.S.
6601 * libc/sys/h8300hms/Makefile.in: Regenerate.
6602 * libc/sys/h8300hms/_exit.c: Remove.
6603 * libc/sys/h8300hms/_exit.S: New.
6604
41c3da6a
JJ
66052004-03-09 Thomas Pfaff <tpfaff@gmx.net>
6606
6607 * libc/stdio/findfp.c (__sfp): Rename lock to __sfp_lock.
6608 Change __sfp_lock to static global.
6609 (__fp_lock): New static function.
6610 (__fp_unlock): Ditto.
6611 (__fp_lock_all): New function.
17c0c97d 6612 (__fp_unlock_all): Ditto.
41c3da6a 6613
0ccf5430
CF
66142004-02-10 Christopher Faylor <cgf@redhat.com>
6615
6616 * libm/mathfp/er_gamma.c (gamma): Add new non-reentrant function.
6617 * libm/mathfp/er_lgamma.c (lgamma): Ditto.
6618 * libm/mathfp/erf_gamma.c (gammaf): Ditto.
6619 * libm/mathfp/erf_lgamma.c (lgammaf): Ditto.
6620
3536f0fb
CF
66212004-02-09 Christopher Faylor <cgf@redhat.com>
6622
6623 * libc/include/time.h (TIMER_RELTIME): New define.
6624
6a6e493a
JJ
66252004-02-09 Jeff Johnston <jjohnstn@redhat.com>
6626
6627 * libc/stdlib/Makefile.am: Add mallstatsr to LIBADD_OBJS.
6628 * libc/stdlib/Makefile.in: Regenerated.
6629
733309f5
CF
66302004-02-08 Christopher Faylor <cgf@redhat.com>
6631
6632 * libc/include/sys/features.h: Add _POSIX_TIMERS define for __CYGWIN__.
6633 * libc/include/sys/reent.h (__getreent): Protect against possibly being
6634 defined.
6635 * libc/include/sys/unistd.h (fdatasync): Don't define for __CYGWIN__.
6636
b4a84c66
JJ
66372004-02-05 Paul Brook <paul@codesourcery.com>
6638
17c0c97d 6639 * libc/include/machine/ieeefp.h[__arm__][__VFP_FP__]: Set
b4a84c66
JJ
6640 IEEE_{BIG,LITTLE} based on __ARMEL__ flag.
6641
4669438f
JJ
66422004-02-02 Jeff Johnston <jjohnstn@redhat.com>
6643
6644 * NEWS: Update with 1.12.0 info.
6645 * README: Ditto.
6646 * acinclude.m4: Change version number to 1.12.0.
6647 * aclocal.m4: Regenerated.
6648 * configure: Ditto.
6649 * doc/aclocal.m4: Ditto.
6650 * doc/configure: Ditto.
6651 * libc/*/aclocal.m4: Ditto.
6652 * libc/*/configure: Ditto.
6653 * libc/libc.texinfo: Ditto.
6654 * libm/*/aclocal.m4: Ditto.
6655 * libm/*/configure: Ditto.
6656 * libm/libm.texinfo: Ditto.
6657 * libc/sys/linux/shared.ld: Add VERS_1.12.
6658
94d61fcb
JJ
66592004-02-02 Joel Sherrill <joel@oarcorp.com>
6660
6661 * configure.host: Add support for tic4x.
6662 * libc/include/machine/ieeefp.h: Ditto.
6663 * libc/include/machine/setjmp.h: Ditto.
6664 * libc/machine/tic4x/Makefile.am: New file.
6665 * libc/machine/tic4x/configure.in: Ditto.
6666 * libc/machine/tic4x/setjmp.S: Ditto.
6667 * libc/machine/tic4x/aclocal.m4: Generated.
6668 * libc/machine/tic4x/configure: Ditto.
6669 * libc/machine/tic4x/Makefile.in: Ditto.
6670
c730e0e7
JJ
66712004-01-30 Jeff Johnston <jjohnstn@redhat.com>
6672
6673 * libc/stdio/fwalk.c (_fwalk.c): Don't traverse the
6674 file chain on the passed in reentrancy struct if it
6675 is _GLOBAL_REENT.
6676
2892ec68 66772004-01-30 Artem B. Bityuckiy <abitytsky@softminecorp.com>
ba3ccd63 6678 Jeff Johnston <jjohnstn@redhat.com>
2892ec68
JJ
6679
6680 * libc/iconv/iconv.tex: Updated with more information.
6681
ff41498a 66822004-01-30 Thomas Pfaff <tpfaff@gmx.net>
ba3ccd63 6683 Jeff Johnston <jjohnstn@redhat.com>
ff41498a
JJ
6684
6685 * libc/stdio/fwalk.c (_fwalk): Traverse the given reentrancy
6686 struct for std streams and traverse the global reeentrancy
6687 struct for all other streams.
6688
d5b6c234
JJ
66892004-01-27 Jeff Johnston <jjohnstn@redhat.com>
6690
6691 * libc/stdlib/atexit.c: Protect global atexit list with a
6692 lock when newlib is multithreaded.
6693
01e0a777
JJ
66942004-01-27 Artem B. Bityuckiy <abitytsky@softminecorp.com>
6695
6696 * configure.in: Add support to generate iconv converter flags
6697 for newlib.h
6698 * newlib.hin: Add iconv converter flags.
6699 * configure: Regenerated.
6700 * libc/Makefile.in: Ditto.
6701 * libc/configure.in: Moved iconv converter parsing logic to
6702 top level newlib configure.in.
6703 * libc/configure: Regenerated.
6704 * libc/iconv/Makefile.in: Ditto.
6705 * libc/iconv/README.TODO
6706 * libc/iconv/charset.aliases: Remove wrong BE aliases for
6707 UCS2/UCS4/UTF8.
6708 * libc/iconv/ccs/Makefile.am: Remove C flag setting now that
6709 newlib.h can be used.
6710 * libc/iconv/ces/Makefile.am: Ditto.
6711 * libc/iconv/lib/Makefile.am: Ditto.
6712 * libc/iconv/ccs/Makefile.in: Regenerated.
6713 * libc/iconv/ces/Makefile.in: Ditto.
6714 * libc/iconv/lib/Makefile.in: Ditto.
6715 * libc/iconv/ccs/README.CCS.SOURCES: Updated.
6716 * libc/iconv/ccs/iconv_mktbl: Don't write junk strings to binaries.
6717 * libc/iconv/ccs/big5.c: Switch to use new underscored flags
6718 defined in newlib.h.
6719 * libc/iconv/ccs/cns11643_plane1.c: Ditto.
6720 * libc/iconv/ccs/cns11643_plane14.c: Ditto.
6721 * libc/iconv/ccs/cns11643_plane2.c: Ditto.
6722 * libc/iconv/ccs/cp775.c: Ditto.
6723 * libc/iconv/ccs/cp850.c: Ditto.
6724 * libc/iconv/ccs/cp852.c: Ditto.
6725 * libc/iconv/ccs/cp855.c: Ditto.
6726 * libc/iconv/ccs/cp866.c: Ditto.
6727 * libc/iconv/ccs/gb_2312_80.c: Ditto.
6728 * libc/iconv/ccs/iso_8859_1.c: Ditto.
6729 * libc/iconv/ccs/iso_8859_15.c: Ditto.
6730 * libc/iconv/ccs/iso_8859_2.c: Ditto.
6731 * libc/iconv/ccs/iso_8859_4.c: Ditto.
6732 * libc/iconv/ccs/iso_8859_5.c: Ditto.
6733 * libc/iconv/ccs/jis_x0201.c: Ditto.
6734 * libc/iconv/ccs/jis_x0208_1983.c: Ditto.
6735 * libc/iconv/ccs/jis_x0212_1990.c: Ditto.
6736 * libc/iconv/ccs/koi8_r.c: Ditto.
6737 * libc/iconv/ccs/koi8_u.c: Ditto.
6738 * libc/iconv/ccs/ksx1001.c: Ditto.
6739 * libc/iconv/ccs/shift_jis.c: Ditto.
6740 * libc/iconv/ccs/us_ascii.c: Ditto.
6741 * libc/iconv/ccs/binary/big5.cct: Newly generated.
6742 * libc/iconv/ccs/binary/cns11643_plane1.cct: Ditto.
6743 * libc/iconv/ccs/binary/cns11643_plane14.cct: Ditto.
6744 * libc/iconv/ccs/binary/cns11643_plane2.cct: Ditto.
6745 * libc/iconv/ccs/binary/cp775.cct: Ditto.
6746 * libc/iconv/ccs/binary/cp850.cct: Ditto.
6747 * libc/iconv/ccs/binary/cp852.cct: Ditto.
6748 * libc/iconv/ccs/binary/cp855.cct: Ditto.
6749 * libc/iconv/ccs/binary/cp866.cct: Ditto.
6750 * libc/iconv/ccs/binary/gb_2312_80.cct: Ditto.
6751 * libc/iconv/ccs/binary/iso_8859_1.cct: Ditto.
6752 * libc/iconv/ccs/binary/iso_8859_15.cct: Ditto.
6753 * libc/iconv/ccs/binary/iso_8859_2.cct: Ditto.
6754 * libc/iconv/ccs/binary/iso_8859_4.cct: Ditto.
6755 * libc/iconv/ccs/binary/iso_8859_5.cct: Ditto.
6756 * libc/iconv/ccs/binary/jis_x0201.cct: Ditto.
6757 * libc/iconv/ccs/binary/jis_x0208_1983.cct: Ditto.
6758 * libc/iconv/ccs/binary/jis_x0212_1990.cct: Ditto.
6759 * libc/iconv/ccs/binary/koi8_r.cct: Ditto.
6760 * libc/iconv/ccs/binary/koi8_u.cct: Ditto.
6761 * libc/iconv/ccs/binary/ksx1001.cct: Ditto.
6762 * libc/iconv/ccs/binary/shift_jis.cct: Ditto.
6763 * libc/iconv/ccs/binary/us_ascii.cct: Ditto.
6764 * libc/iconv/lib/bialiasesi.c: Sync with charset.aliases.
6765 * libc/iconv/ces/euc-jp.c: Use newlib.h macros.
6766 * libc/iconv/ces/euc-kr.c: Ditto.
6767 * libc/iconv/ces/euc-tw.c: Ditto.
6768 * libc/iconv/ces/gb2312.c: Ditto.
6769 * libc/iconv/ces/iso-10646-ucs-2.c: Ditto.
6770 * libc/iconv/ces/iso-10646-ucs-4.c: Ditto.
6771 * libc/iconv/ces/ucs-2-internal.c: Ditto.
6772 * libc/iconv/ces/ucs-4-internal.c: Ditto.
6773 * libc/iconv/ces/utf-16.c: Ditto.
6774 * libc/iconv/ces/utf-8.c: Ditto.
6775 * libc/iconv/lib/aliases.c: Ditto.
6776 * libc/iconv/lib/biccs.c: Ditto.
6777 * libc/iconv/lib/bices.c: Ditto.
6778 * libc/iconv/lib/ccs.c: Ditto.
6779 * libc/iconv/lib/ces.c: Ditto.
6780 * libc/iconv/lib/ces_euc.c: Ditto.
6781 * libc/iconv/lib/ces_iso2022.c: Ditto.
6782 * libc/iconv/lib/ces_table.c: Ditto.
6783 * libc/iconv/lib/converter.c: Ditto.
6784 * libc/iconv/lib/deps.h: Ditto.
6785 * libc/iconv/lib/endian.h: Ditto.
6786 * libc/iconv/lib/iconv.c: Ditto.
6787 * libc/iconv/lib/loaddata.c: Ditto.
6788 * libc/iconv/lib/local.h: Include newlib.h.
6789 * libc/argz/Makefile.in: Regenerated.
6790 * libc/ctype/Makefile.in: Ditto.
6791 * libc/errno/Makefile.in: Ditto.
6792 * libc/iconv/ccs/binary/Makefile.in: Ditto.
6793 * libc/locale/Makefile.in: Ditto.
6794 * libc/misc/Makefile.in: Ditto.
6795 * libc/posix/Makefile.in: Ditto.
6796 * libc/reent/Makefile.in: Ditto.
6797 * libc/search/Makefile.in: Ditto.
6798 * libc/signal/Makefile.in: Ditto.
6799 * libc/stdio/Makefile.in: Ditto.
6800 * libc/stdio64/Makefile.in: Ditto.
6801 * libc/stdlib/Makefile.in: Ditto.
6802 * libc/string/Makefile.in: Ditto.
6803 * libc/syscalls/Makefile.in: Ditto.
6804 * libc/time/Makefile.in: Ditto.
6805 * libc/unix/Makefile.in: Ditto.
6806 * testsuite/newlib.iconv/iconv.exp: New file.
6807 * testsuite/newlib.iconv/iconvjp.c: Ditto.
6808 * testsuite/newlib.iconv/iconvnm.c: Ditto.
6809 * testsuite/newlib.iconv/iconvru.c: Ditto.
6810
786ab12c
JJ
68112004-01-23 Artem B. Bityuckiy <abitytsky@softminecorp.com>
6812
6813 * acinclude.m4 (--enable-newlib-iconv): New configuration option.
6814 (--enable-newlib-builtin-converters): Ditto.
6815 * configure.in: Add code to set _ICONV_ENABLED flag.
6816 Set _MB_LEN_MAX to 1 if not mb enabled.
6817 * configure: Regenerated.
6818 * aclocal.m4: Ditto.
6819 * Makefile.in: Ditto.
6820 * newlib.hin: Add _ICONV_ENABLED flag.
6821 * libc/Makefile.am: Add support for iconv.
6822 * libc/configure.in: Ditto.
6823 * libc/Makefile.in: Regenerated.
6824 * libc/aclocal.m4: Ditto.
6825 * libc/configure: Ditto.
6826 * libc/libc.texinfo: Add iconv documentation.
6827 * libc/iconv/AUTHORS, libc/iconv/COPYING, libc/iconv/Makefile.am,
6828 libc/iconv/Makefile.in, libc/iconv/README.ORIGINAL,
6829 libc/iconv/README.TODO, libc/iconv/charset.aliases,
6830 libc/iconv/iconv.tex, libc/iconv/ccs/Makefile.am,
6831 libc/iconv/ccs/Makefile.in, libc/iconv/ccs/README.CCS.SOURCES,
6832 libc/iconv/ccs/big5.c, libc/iconv/ccs/cns11643_plane1.c,
6833 libc/iconv/ccs/cns11643_plane14.c, libc/iconv/ccs/cns11643_plane2.c,
6834 libc/iconv/ccs/cp775.c, libc/iconv/ccs/cp850.c,
6835 libc/iconv/ccs/cp852.c, libc/iconv/ccs/cp855.c,
6836 libc/iconv/ccs/cp866.c, libc/iconv/ccs/gb_2312_80.c,
6837 libc/iconv/ccs/iconv_mktbl, libc/iconv/ccs/iso_8859_1.c,
6838 libc/iconv/ccs/iso_8859_15.c, libc/iconv/ccs/iso_8859_2.c,
6839 libc/iconv/ccs/iso_8859_4.c, libc/iconv/ccs/iso_8859_5.c,
6840 libc/iconv/ccs/jis_x0201.c, libc/iconv/ccs/jis_x0208_1983.c,
6841 libc/iconv/ccs/jis_x0212_1990.c, libc/iconv/ccs/koi8_r.c,
6842 libc/iconv/ccs/koi8_u.c, libc/iconv/ccs/ksx1001.c,
6843 libc/iconv/ccs/shift_jis.c, libc/iconv/ccs/us_ascii.c,
6844 libc/iconv/ccs/binary/Makefile.am, libc/iconv/ccs/binary/Makefile.in,
6845 libc/iconv/ccs/binary/big5.cct,
6846 libc/iconv/ccs/binary/cns11643_plane1.cct,
6847 libc/iconv/ccs/binary/cns11643_plane14.cct,
6848 libc/iconv/ccs/binary/cns11643_plane2.cct,
6849 libc/iconv/ccs/binary/cp775.cct, libc/iconv/ccs/binary/cp850.cct,
6850 libc/iconv/ccs/binary/cp852.cct, libc/iconv/ccs/binary/cp855.cct,
6851 libc/iconv/ccs/binary/cp866.cct, libc/iconv/ccs/binary/gb_2312_80.cct,
6852 libc/iconv/ccs/binary/iso_8859_1.cct,
6853 libc/iconv/ccs/binary/iso_8859_15.cct,
6854 libc/iconv/ccs/binary/iso_8859_2.cct,
6855 libc/iconv/ccs/binary/iso_8859_4.cct,
6856 libc/iconv/ccs/binary/iso_8859_5.cct,
6857 libc/iconv/ccs/binary/jis_x0201.cct,
6858 libc/iconv/ccs/binary/jis_x0208_1983.cct,
6859 libc/iconv/ccs/binary/jis_x0212_1990.cct,
6860 libc/iconv/ccs/binary/koi8_r.cct, libc/iconv/ccs/binary/koi8_u.cct,
6861 libc/iconv/ccs/binary/ksx1001.cct,
6862 libc/iconv/ccs/binary/shift_jis.cct,
6863 libc/iconv/ccs/binary/us_ascii.cct,
6864 libc/iconv/ces/Makefile.am, libc/iconv/ces/Makefile.in,
6865 libc/iconv/ces/euc-jp.c, libc/iconv/ces/euc-kr.c,
6866 libc/iconv/ces/euc-tw.c, libc/iconv/ces/gb2312.c,
6867 libc/iconv/ces/iso-10646-ucs-2.c, libc/iconv/ces/iso-10646-ucs-4.c,
6868 libc/iconv/ces/ucs-2-internal.c, libc/iconv/ces/ucs-4-internal.c,
6869 libc/iconv/ces/utf-16.c, libc/iconv/ces/utf-8.c,
6870 libc/iconv/lib/Makefile.am, libc/iconv/lib/Makefile.in,
6871 libc/iconv/lib/aliases.c, libc/iconv/lib/bialiasesi.c,
6872 libc/iconv/lib/biccs.c, libc/iconv/lib/bices.c,
6873 libc/iconv/lib/ccs.c, libc/iconv/lib/ces.c,
6874 libc/iconv/lib/ces_euc.c, libc/iconv/lib/ces_iso2022.c,
6875 libc/iconv/lib/ces_table.c, libc/iconv/lib/converter.c,
6876 libc/iconv/lib/deps.h, libc/iconv/lib/endian.h,
6877 libc/iconv/lib/iconv.c, libc/iconv/lib/loaddata.c,
6878 libc/iconv/lib/local.h, libc/include/iconv.h: New files.
6879 * libc/sys/linux/include/iconv.h: Ditto.
6880 * libc/include/sys/_types.h (_iconv_t): Added.
6881 * doc/aclocal.m4: Regenerated.
6882 * doc/configure: Ditto.
6883 * doc/Makefile.in: Ditto.
6884 * iconvdata/Makefile.in: Ditto.
6885 * iconvdata/aclocal.m4: Ditto.
6886 * iconvdata/configure: Ditto.
6887 * libc/*aclocal.m4: Ditto.
6888 * libc/*Makefile.in: Ditto.
6889 * libc/*configure: Ditto.
6890 * libm/*aclocal.m4: Ditto.
6891 * libm/*Makefile.in: Ditto.
6892 * libm/*configure: Ditto.
6893
ed1a95dc
JJ
68942004-01-22 Thomas Pfaff <tpfaff@gmx.net>
6895
6896 * libc/stdio/findfp.c (__sfp): Protect global FILE pointer list
17c0c97d 6897 by a lock when newlib is multithreaded.
ed1a95dc 6898
7d4be1ef
JJ
68992004-01-21 Jeff Johnston <jjohnstn@redhat.com>
6900
6901 * libc/stdlib/mbrtowc.c (_mbrtowc_r): Fix case where s is null
6902 pointer to match C99 spec.
6903 * libc/stdlib/mbsrtowcs.c (_mbsrtowc_r): Fix to ignore len when
6904 dst is NULL. Also fix to not alter src pointer when dst is NULL
6905 and call _mbrtowc_r instead of _mbtowc_r.
6906 * libc/stdlib/wcsrtombs.c (_wcsrtombs_r): Call _wcrtomb_r instead
6907 of _wctomb_r.
6908
403f752c
JJ
69092004-01-19 Thomas Pfaff <tpfaff@gmx.net>
6910
6911 * libc/stdio/fclose.c (fclose): Release FILE as the last step.
6912 * libc/stdio/freopen.c (freopen): Ditto.
6913
85b6d63b
CF
69142004-01-16 Christopher Faylor <cgf@redhat.com>
6915
6916 * libc/stdio/vfprintf.c: Add sys/lock.h include.
6917
4af71a91
JJ
69182004-01-16 Thomas Pfaff <tpfaff@gmx.net>
6919
6920 * libc/stdio/findfp.c (__sfp): Remove unnecessary memset.
6921 * libc/stdio/vfprintf.c (__sbprintf): Ditto.
6922 Add calls to __lock_init_recursive and __lock_close_recursive
6923 instead.
6924
6a150987
JJ
69252004-01-15 Thomas Pfaff <tpfaff@gmx.net>
6926
6927 * libc/stdio/fclose.c: Include sys/lock.h.
6928 (fclose): Destroy lock when file is closed.
6929 * libc/stdio/findfp.c (__sfp): Initialize file pointers _lock
6930 member.
6931 * libc/stdio/freopen.c: Include sys/lock.h.
6932 (_freopen_r): Destroy lock when file is closed.
6933 * libc/stdio/vfprintf.c (__sbprintf): Initialize file pointers
6934 _lock member.
6935
c9524c0c
JJ
69362004-01-08 Joel Sherrill <joel@oarcorp.com>
6937
ba3ccd63
EB
6938 * libc/ctype/iswctype.c, include/sys/reent.h, libc/stdlib/a64l.c:
6939 Remove warnings.
c9524c0c 6940
9f13ccb3
JJ
69412004-01-08 Joel Sherrill <joel@oarcorp.com>
6942
ba3ccd63
EB
6943 * libc/sys/rtems/sys/queue.h: New file.
6944 * libc/include/sys/signal.h: Reflect renumbering of signals to
6945 fit into 32-bit mask.
6946 * libc/include/sys/unistd.h: Add fdatasync() prototype.
6947 * libc/sys/rtems/crt0.c: Add more symbols which may be implicitly
6948 required. In particular, add the reentrant variants of libc calls.
6949 * libc/sys/rtems/sys/dirent.h: Add scandir() prototype.
9f13ccb3 6950
9488c414
JJ
69512004-01-06 Mark Mitchell <mark@codesourcery.com>
6952
6953 * libc/sys/arm/syscalls.c (unistd.h): Include it.
6954 (remap_handle): Use STDIN_FILENO instead of __sfileno(stdin).
6955 Similarly for stdout and stderr.
6956
5125f919
JJ
69572004-01-06 Jeff Johnston <jjohnstn@redhat.com>
6958
6959 * libc/libc.texinfo: Correct escape character for @ sign
6960 so file will be processed by make info. Update copyright years.
6961 * libm/libm.texinfo: Ditto.
6962
9fc92ceb
JJ
69632003-12-05 Jeff Johnston <jjohnstn@redhat.com>
6964
6965 * libc/include/sys/stat.h: No longer include stat-dj.h.
6966 * libc/include/sys/stat-dj.h: Removed.
6967
25c7dad1
JJ
69682003-12-05 Jeff Johnston <jjohnstn@redhat.com>
6969
6970 * libc/include/wchar.h: Include <sys/reent.h>.
6971
576593dd
CF
69722003-12-05 Christopher Faylor <cgf@redhat.com>
6973
6974 * libc/stdlib/mbrlen.c: Change include order to prevent compiler errors
6975 when defining _mbrtowc.
6976 * libc/stdlib/mbsinit.c: Ditto.
6977 * libc/stdlib/mbsrtowcs.c: Ditto.
6978 * libc/stdlib/wcrtomb.c: Ditto.
6979 * libc/stdlib/wcsrtombs.c: Ditto.
6980 * libc/stdlib/wctob.c: Ditto.
6981
69822003-12-05 Christopher Faylor <cgf@redhat.com>
6983
6984 * libc/stdlib/mbrlen.c: Change include order to prevent compiler
6985 errors when defining _mbrtowc.
6986 * libc/stdlib/mbsinit.c: Ditto.
6987 * libc/stdlib/mbsrtowcs.c: Ditto.
6988
4c889d62
CF
69892003-12-05 Christopher Faylor <cgf@redhat.com>
6990
6991 * libc/stdlib/mbrtowc.c: Change include order to prevent compiler
6992 errors when defining _mbrtowc.
6993
5d109bde
JJ
69942003-12-04 Artem B. Bityuckiy <abitytsky@softminecorp.com>
6995
6996 * libc/stdio/vfprintf.c (_VFPRINTF_R): Use _r versions
6997 of mb routines for %lc and %ls support.
6998 * libc/stdio/vfscanf.c (_svfscanf_r): Add %lc, %C,
6999 %ls, and %S support. Remove CYGNUS_NEC markers and
7000 code within.
7001
3aca0888
JJ
70022003-12-04 Jeff Johnston <jjohnstn@redhat.com>
7003
7004 * libc/include/wchar.h: Add prototypes for _mbrtowc_r,
7005 _wcrtomb_r, and _wcsrtombs_r.
7006
18dcb167
CV
70072003-12-01 Corinna Vinschen <corinna@vinschen.de>
7008
7009 * libc/include/sys/fcntl.h: Don't define struct flock when on
7010 Cygwin. This is done in winsup/cygwin/include/cygwin/types.h now.
7011
93f8e673
CF
70122003-11-28 Christopher Faylor <cgf@redhat.com>
7013
7014 * libc/include/sys/signal.h: Use system specific signal file when
7015 building on cygwin.
7016
cc2a11e0
JJ
70172003-11-27 Jeff Johnston <jjohnstn@redhat.com>
7018
7019 * libc/include/stdlib.h (_atoi_r): New prototype.
7020 * libc/stdlib/atoi.c (_atoi_r): New reentrant function.
7021
83bf7d2f
JJ
70222003-11-27 Jeff Johnston <jjohnstn@redhat.com>
7023
7024 * libc/include/stdlib.h (_atoll_r, _atol_r): New prototypes.
7025 * libc/stdlib/atol.c (_atol_r): New reentrant function.
7026 * libc/stdlib/atoll.c (_atoll_r): Ditto.
7027
5d109bde 70282003-11-27 Artem B. Bityuckiy <abitytsky@softminecorp.com>
6bbb700c
JJ
7029 Jeff Johnston <jjohnstn@redhat.com>
7030
7031 * libc/include/stdlib.h (lldiv_t): New type.
7032 (atoll, llabs, lldiv): New prototypes.
7033 * libc/stdlib/Makefile.am: Add support for atoll, llabs, and lldiv.
7034 * libc/stdlib/stdlib.tex: Ditto.
7035 * libc/stdlib/Makefile.in: Regenerated.
7036 * libc/stdlib/atoll.c: New file.
7037 * libc/stdlib/llabs.c: Ditto.
7038 * libc/stdlib/lldiv.c: Ditto.
7039
0a707c79
JJ
70402003-11-26 Corinna Vinschen <corinna@vinschen.de>
7041
7042 * libc/include/fcntl.h: Declare syscalls only when building newlib.
7043 * libc/include/unistd.h: Ditto.
7044 * libc/include/stat.h: Ditto. Also declare struct stat64.
7045
5d109bde 70462003-11-24 Artem B. Bityuckiy <abitytsky@softminecorp.com>
6db165c2
JJ
7047
7048 * libc/stdio/vfprintf.c (_VFPRINTF_R): Fix check for 'C' format
7049 specifier to use ch instead of *fmt.
7050
5d109bde 70512003-11-21 Artem B. Bityuckiy <abitytsky@softminecorp.com>
759a097e
JJ
7052
7053 * libc/stdio/vfprintf.c (_VFPRINTF_R, get_arg): Move mb-specific
7054 code within checks for MB_CAPABLE. For non-mb-capable platforms,
7055 use simple byte logic.
7056
4f6149d6
JJ
70572003-11-21 Jeff Johnston <jjohnstn@redhat.com>
7058
7059 * libc/stdio/vfscanf.c (__svfscanf_r)[!_NO_LONGDBL]: Don't use
7060 _strtold routine for processing floats and doubles since it
7061 is not as fast as _strtod_r.
7062
17c0c97d 70632003-11-20 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
7343eefb 7064
17c0c97d 7065 * libc/machine/h8300/defines.h : Correct pointer register defines
7343eefb 7066 for normal mode.
17c0c97d 7067 * libc/machine/h8300/memcpy.S : Use add/sub instead of adds/subs
7343eefb
JJ
7068 for normal mode.
7069 * libc/machine/h8300/reg_memcpy.S : Likewise.
7070 * libc/machine/h8300/reg_memset.S : Likewise.
7071 * libc/machine/h8300/strcmp.S : Likewise.
7072
64cfc6f2
JJ
70732003-11-19 Nicholas Wourms <nwourms@netscape.net>
7074
7075 * configure.host: Enable positional arguments for printf
7076 family for Cygwin.
7077 * libc/stdio/vfprintf.c (_VFPRINTF_R): Remove extraneous
7078 pointer reference for quad_ptr_t.
7079
e1dc8171
JJ
70802003-11-19 Jeff Johnston <jjohnstn@redhat.com>
7081
7082 * libc/stdio/scanf.c: Don't include local.h more than once.
7083
a472290f
JJ
70842003-11-18 Corinna Vinschen <corinna@vinschen.de>
7085
7086 * libc/include/sys/fcntl.h: Declare _open64.
7087 * libc/include/sys/stat.h: Declare _fstat64.
7088 * libc/include/sys/unistd.h: Declare _lseek64.
7089
a2f1155c
CV
70902003-11-17 Corinna Vinschen <corinna@vinschen.de>
7091
7092 * libc/include/stdlib.h (getprogname): Declare for Cygwin.
7093 (setprogname): Ditto.
7094
030441fc
JJ
70952003-11-10 Jeff Johnston <jjohnstn@redhat.com>
7096
7097 * libc/machine/powerpc/ufix64toa.c (_ufix64to_r): Fix shifts
7098 to use (Ebits + 1) which accounts for the sign-bit.
7099
fe359733
JJ
71002003-11-07 Jeff Johnston <jjohnstn@redhat.com>
7101
17c0c97d 7102 * configure.host: Remove -DLOOSE_KERNEL_NAMES flag for linux
fe359733
JJ
7103 x86 build.
7104 * iconvdata/Makefile.am: Make dependent on newlib's configure.host
7105 and set up default flags to pass to aclocal.
7106 * iconvdata/Makefile.in: Regenerated.
7107 * libc/sys/linux/Makefile.am: Add _ELIX_LEVEL_4 getlogin, getpwnam,
7108 and getpwuid routines.
7109 * libc/sys/linux/Makefile.in: Regenerated.
7110 * libc/sys/linux/getlogin.c: New stub file to allow x86-linux
7111 applications to link with newlib's shared libc library.
7112 * libc/sys/linux/getpwnam.c: Ditto.
7113 * libc/sys/linux/getpwuid.c: Ditto.
7114 * libc/sys/linux/sys/types.h: Include <features.h> and supply types
7115 that were formerly supplied by /usr/include/linux/types.h with
7116 kernel types.
7117 * testsuite/newlib.wctype/twctype.c: Fix testcase to properly
7118 test _ELIX_LEVEL macro.
7119
2985521f
JJ
71202003-11-07 Jeff Johnston <jjohnstn@redhat.com>
7121
7122 * libc/stdio/vfprintf.c (_VFPRINTF_R): Fix typos that should be
7123 referring to _NO_LONGLONG macro.
7124
dcad6a89
JJ
71252003-11-06 Jeff Johnston <jjohnstn@redhat.com>
7126
7127 * libc/sys/linux/linuxthreads/td_init.c: Replace function name
7128 in LOG() macro so this will compile on gcc 3.4 and up.
7129 * libc/sys/linux/linuxthreads/td_log.c: Ditto.
7130 * libc/sys/linux/linuxthreads/td_ta_clear_event.c: Ditto.
7131 * libc/sys/linux/linuxthreads/td_ta_delete.c: Ditto.
7132 * libc/sys/linux/linuxthreads/td_ta_enable_stats.c: Ditto.
7133 * libc/sys/linux/linuxthreads/td_ta_event_addr.c: Ditto.
7134 * libc/sys/linux/linuxthreads/td_ta_event_getmsg.c: Ditto.
7135 * libc/sys/linux/linuxthreads/td_ta_get_nthreads.c: Ditto.
7136 * libc/sys/linux/linuxthreads/td_ta_get_ph.c: Ditto.
7137 * libc/sys/linux/linuxthreads/td_ta_get_stats.c: Ditto.
7138 * libc/sys/linux/linuxthreads/td_ta_map_id2thr.c: Ditto.
7139 * libc/sys/linux/linuxthreads/td_ta_map_lwp2thr.c: Ditto.
7140 * libc/sys/linux/linuxthreads/td_ta_new.c: Ditto.
7141 * libc/sys/linux/linuxthreads/td_ta_reset_stats.c: Ditto.
7142 * libc/sys/linux/linuxthreads/td_ta_set_event.c: Ditto.
7143 * libc/sys/linux/linuxthreads/td_ta_setconcurrency.c: Ditto.
7144 * libc/sys/linux/linuxthreads/td_ta_thr_iter.c: Ditto.
7145 * libc/sys/linux/linuxthreads/td_ta_tsd_iter.c: Ditto.
7146 * libc/sys/linux/linuxthreads/td_thr_clear_event.c: Ditto.
7147 * libc/sys/linux/linuxthreads/td_thr_dbresume.c: Ditto.
7148 * libc/sys/linux/linuxthreads/td_thr_dbsuspend.c: Ditto.
7149 * libc/sys/linux/linuxthreads/td_thr_event_enable.c: Ditto.
7150 * libc/sys/linux/linuxthreads/td_thr_event_getmsg.c: Ditto.
7151 * libc/sys/linux/linuxthreads/td_thr_get_info.c: Ditto.
7152 * libc/sys/linux/linuxthreads/td_thr_getfpregs.c: Ditto.
7153 * libc/sys/linux/linuxthreads/td_thr_getgregs.c: Ditto.
7154 * libc/sys/linux/linuxthreads/td_thr_getxregs.c: Ditto.
7155 * libc/sys/linux/linuxthreads/td_thr_getxregsize.c: Ditto.
7156 * libc/sys/linux/linuxthreads/td_thr_set_event.c: Ditto.
7157 * libc/sys/linux/linuxthreads/td_thr_setfpregs.c: Ditto.
7158 * libc/sys/linux/linuxthreads/td_thr_setgregs.c: Ditto.
7159 * libc/sys/linux/linuxthreads/td_thr_setprio.c: Ditto.
7160 * libc/sys/linux/linuxthreads/td_thr_setsigpending.c: Ditto.
7161 * libc/sys/linux/linuxthreads/td_thr_setxregs.c: Ditto.
7162 * libc/sys/linux/linuxthreads/td_thr_sigsetmask.c: Ditto.
7163 * libc/sys/linux/linuxthreads/td_thr_tsd.c: Ditto.
7164 * libc/sys/linux/linuxthreads/td_thr_validate.c: Ditto.
7165
d2ffac09 71662003-11-05 Jeff Johnston <jjohnstn@redhat.com>
ba3ccd63 7167 Artem B. Bityuckiy <abitytsky@softminecorp.com>
d2ffac09
JJ
7168
7169 * libc/stdio/vfprintf.c (_VFPRINTF_R): Add support for
7170 %ls, %S, %lc, and %C format specifiers.
7171 (get_arg): Ditto.
7172 * libc/stdio/sprintf.c: Add documentation regarding new
7173 format specifiers added in vfprintf.c.
7174
da2d1227
JJ
71752003-11-05 Jeff Johnston <jjohnstn@redhat.com>
7176
7177 * libc/stdlib/wcsrtombs.c (_wcsrtombs_r): Numerous fixes
7178 to make code work as specified in standard.
7179
3ef05bac
JJ
71802003-10-23 Jeff Johnston <jjohnstn@redhat.com>
7181
7182 * configure.in: Use absolute newlib basedir when forming
7183 CC_FOR_NEWLIB include options.
7184 * configure: Regenerated.
7185
5d109bde 71862003-10-23 Artem B. Bityuckiy <abitytsky@softminecorp.com>
4340b63b
JJ
7187
7188 * libc/string/wcsnlen.c: New file.
7189 * libc/include/wchar.h: Add wcsnlen prototype.
7190 * libc/string/Makefile.am: Add wcsnlen support.
7191 * libc/string/Makefile.in: Regenerated.
7192 * libc/string/wcstrings.tex: Add wcsnlen documentation.
7193
63a823f8
RS
71942003-10-22 Richard Sandiford <rsandifo@redhat.com>
7195
7196 * libc/stdlib/exit.c (exit): Handle null _GLOBAL_REENT->_atexits.
7197
76a7df52
JJ
71982003-10-20 Bob Wilson <bob.wilson@acm.org>
7199
7200 * libc/locale/locale.c: Use double quotes in code.
7201 * libc/locale/locale.tex: Likewise.
7202 * libc/libc.texinfo: Hyphenate "floating-point".
7203 * libc/machine/necv70/necv70.tex: Likewise.
7204 * libc/stdio/sprintf.c: Likewise.
7205 * libc/stdio/sscanf.c: Likewise.
7206 * libc/stdlib/atof.c: Likewise.
7207 * libc/stdlib/ldtoa.c: Fix comment typo.
7208 * libc/stdlib/div.c: Use @ifnottex instead of @ifinfo.
7209 * libc/stdlib/ldiv.c: Likewise.
7210 * libm/common/s_expm1.c: Likewise.
7211 * libm/common/s_ilogb.c: Hyphenate "floating-point". Use "nonzero".
7212 * libm/common/s_infinity: Hyphenate "double- and single-precision".
7213 * libm/common/s_nan.c: Likewise. Also correct the FUNCTION summary.
7214 * libm/common/s_nextafter.c: Fix typo. Hyphenate "double-precision"
7215 and "floating-point".
7216 * libm/common/s_scalbn.c: Correct the FUNCTION summary.
7217 * libm/math/e_pow.c: Fix comment typo.
7218 * libm/math/math.tex: Hyphenate "single-precision" and "floating-point".
7219 * libm/math/s_asinh.c: Use @ifnottex instead of @ifinfo.
7220 * libm/math/s_atan.c: Likewise.
7221 * libm/math/s_frexp.c: Likewise. Also use "nonzero".
7222 * libm/math/s_isnan.c: Hyphenate "single-precision" and
7223 "floating-point". Use "nonzero".
7224 * libm/math/s_ldexp.c: Use @ifnottex instead of @ifinfo.
7225 * libm/math/w_acos.c: Likewise.
7226 * libm/math/w_acosh.c: Likewise.
7227 * libm/math/w_asin.c: Likewise.
7228 * libm/math/w_atan2.c: Likewise.
7229 * libm/math/w_atanh.c: Likewise.
7230 * libm/math/w_cosh.c: Likewise.
7231 * libm/math/w_exp.c: Likewise.
7232 * libm/math/w_exp2.c: Likewise. Add missing @end and missing @tex
7233 version of 2^x in the description.
7234 * libm/math/w_fmod.c: Use @ifnottex instead of @ifinfo.
7235 * libm/math/w_gamma.c: Likewise.
7236 * libm/math/w_hypot.c: Likewise.
7237 * libm/math/w_j0.c: Likewise.
7238 * libm/math/w_sinh.c: Likewise.
7239 * libm/math/w_pow.c: Replace "exp1.0nt" with "exponent".
7240 * libm/mathfp/mathfp.tex: Hyphenate "single-precision" and
7241 "floating-point".
7242 * libm/mathfp/e_acosh.c: Use @ifnottex instead of @ifinfo.
7243 * libm/mathfp/e_atanh.c: Likewise.
7244 * libm/mathfp/e_hypot.c: Likewise.
7245 * libm/mathfp/er_lgamma.c: Likewise.
7246 * libm/mathfp/s_acos.c: Likewise.
7247 * libm/mathfp/s_asine.c: Likewise.
7248 * libm/mathfp/s_asinh.c: Likewise.
7249 * libm/mathfp/s_atan.c: Likewise.
7250 * libm/mathfp/s_atan2.c: Likewise.
7251 * libm/mathfp/s_atangent.c: Likewise.
7252 * libm/mathfp/s_cosh.c: Likewise.
7253 * libm/mathfp/s_exp.c: Likewise.
7254 * libm/mathfp/s_fmod.c: Likewise.
7255 * libm/mathfp/s_frexp.c: Likewise. Also use "nonzero".
7256 * libm/mathfp/s_isnan.c: Hyphenate "single-precision" and
7257 "floating-point". Use "nonzero".
7258 * libm/math/s_pow.c: Replace "exp1.0nt" with "exponent".
7259 * libm/mathfp/s_ldexp.c: Use @ifnottex instead of @ifinfo.
7260 * libm/mathfp/s_sineh.c: Likewise.
7261 * libm/mathfp/w_jn.c: Likewise.
7262
b11926e7
JJ
72632003-10-15 Alexandre Oliva <aoliva@redhat.com>
7264
7265 * Makefile.am: Add $(MAKE) comments to multido and multiclean
7266 lines, to enable parallel make.
7267 * Makefile.in: Rebuilt.
7268
31271d5c
CF
72692003-10-14 Christopher Faylor <cgf@redhat.com>
7270
7271 * libc/time/clock.c: Clarify documentation of return value when no
7272 measurement is available.
7273
bc707cbd
JJ
72742003-09-29 Ian Lance Taylor <ian@wasabisystems.com>
7275
7276 * libm/configure.in: Check libm_machine_dir, not machine_dir.
7277 * libm/configure: Regenerate.
7278 * libm/Makefile.in: Ditto.
7279
f4b10605
JR
72802003-09-29 J"orn Rennecke <joern.rennecke@superh.com>
7281
7282 * libc/machine/sh/strncpy.S: New file.
7283 * libc/machine/sh/Makefile.am: Add entry & rule for new file.
7284 * libc/machine/sh/Makefile.in: Regenerate.
7285
ce044d8f
JW
72862003-09-11 James E Wilson <wilson@specifixinc.com>
7287
7288 * MAINTAINERS: Update my e-mail address.
7289
080ef411
CV
72902003-09-10 Corinna Vinschen <corinna@vinschen.de>
7291
7292 * libc/include/sys/unistd.h: Declare function daemon for Cygwin.
7293
3a767b69
JJ
72942003-09-09 Jeff Johnston <jjohnstn@redhat.com>
7295
080ef411
CV
7296 * libc/machine/powerpc/fix64.h: Fix typo for _simdldcheck
7297 prototype.
7298 * libc/machine/powerpc/simdldtoa.c: Remove prototype for
7299 _simdldcheck(). Also add unsigned cast for index variable in
7300 for loop using sizeof operators.
7301 * libc/machine/powerpc/strtoufix32.c: Remove unused variable.
7302 * libc/machine/powerpc/strtosfix64.c: Fix call to _simdldcheck.
7303 * libc/machine/powerpc/strtoufix64.c (_strtoufix64_r): Ditto
7304 plus fix shift calculation for determining if there is a
7305 carry from word2.
3a767b69 7306
84154fcc
CV
73072003-09-09 Corinna Vinschen <corinna@vinschen.de>
7308
7309 * libc/include/grp.h: Don't define setgrfile, group_from_gid and
7310 setgroupent for Cygwin.
7311
f1b15058
JJ
73122003-09-05 Jeff Johnston <jjohnstn@redhat.com>
7313
7314 * libc/stdlib/exit.c (exit): Setting of struct _atexit ptr p
7315 is different for _REENT_SMALL than when using regular reent
7316 struct.
7317
cf88c20f 73182003-09-05 Ben Elliston <bje@wasabisystems.com>
0a8fd4dc 7319
b73263e4
BE
7320 * libc/ctype/wctype.c (_DEFUN): Remove empty default case, as
7321 modern versions of GCC issue a warning.
7322
0a8fd4dc
BE
7323 * libc/machine/xscale/memcmp.c (memcmp): Strip trailing whitespace
7324 after continuation characters that induces a warning from modern
7325 versions of GCC.
7326
10a32423
BE
73272003-09-04 Ben Elliston <bje@wasabisystems.com>
7328
7329 * libc/stdlib/mstats.c[_ELIX_LEVEL]: Fix guards. #ifndef FOO ||
7330 FOO >= 2 is invalid; use #if !defined (FOO) || FOO >= 2 instead.
7331
ed027a53
JJ
73322003-09-02 Thomas Pfaff <tpfaff@gmx.net>
7333
7334 * libc/stdlib/atexit.c: Rename _REENT to _GLOBAL_REENT throughout.
7335 * libc/stdlib/exit.c : Ditto.
7336 * libc/stdlib/on_exit.c: Ditto.
7337
880fa247
JJ
73382003-08-27 Corinna Vinschen <corinna@vinschen.de>
7339
7340 * libc/include/reent.h: Define stat64 as __stat64 when
7341 compiling newlib for Cygwin.
7342
54c1d7ea
JJ
73432003-08-26 Jeff Johnston <jjohnstn@redhat.com>
7344
7345 * libc/include/sys/stat.h[__CYGWIN__]: Only define stat64 as
7346 __stat64 when compiling newlib.
7347
0eca0750
JJ
73482003-08-26 Jeff Johnston <jjohnstn@redhat.com>
7349
7350 * libc/include/stdio.h: Allow the io64 function prototypes for
7351 Cygwin when compiling newlib.
7352 * libc/include/sys/stat.h[__CYGWIN__]: Define stat64 as __stat64
7353 to expose the Cygwin struct __stat64 type.
7354 * libc/stdio64/fseeko64.c: Use _fstat64_r and pass a struct stat64
7355 pointer.
7356 * libc/stdio64/tmpfile64.c(_tmpfile64_r): Call _fopen64_r.
7357
9d4aef19
CF
73582003-08-23 Christopher Faylor <cgf@redhat.com>
7359
7360 * libc/stdio64/fseeko64.c (fseeko64_r): Rename second fseeko64_r
7361 definition to fseeko64.
7362
9fc9e1c9
JJ
73632003-08-22 Jeff Johnston <jjohnstn@redhat.com>
7364
7365 * libc/include/sys/reent.h: Add _GLOBAL_REENT macro.
7366 * libc/stdio: Globally remove/replace all references to fp->_data.
7367 Replace with _REENT or _GLOBAL_REENT where appropriate.
7368 * libc/stdio/asprintf.c: Ditto.
7369 * libc/stdio/fclose.c: Ditto.
7370 * libc/stdio/fvwrite.c: Ditto.
7371 * libc/stdio/makebuf.c: Ditto.
7372 * libc/stdio/refill.c: Ditto.
7373 * libc/stdio/local.h: Ditto.
7374 * libc/stdio/setvbuf.c: Ditto.
7375 * libc/stdio/sscanf.c: Ditto.
7376 * libc/stdio/stdio.c: Ditto.
7377 * libc/stdio/ungetc.c: Ditto.
7378 * libc/stdio/vfscanf.c: Ditto.
7379 * libc/stdio/vsscanf.c: Ditto.
7380 * libc/stdio/fopen.c: Ditto. Also use _fseek_r in _fopen_r.
7381 * libc/stdio/vasprintf.c: Ditto. Also call _vfprintf_r directly.
7382 * libc/stdio/vsnprintf.c: Ditto.
7383 * libc/stdio/vsprintf.c: Ditto.
7384 * libc/stdio/fcloseall.c(fcloseall): Use _GLOBAL_REENT macro
7385 instead of _REENT to walk file list.
7386 * libc/stdio/fflush.c: Ditto.
7387 * libc/stdio/fgetpos.c: Add reentrant version and have regular
7388 version call reentrant version with _REENT argument.
7389 * libc/stdio/fsetpos.c: Ditto.
7390 * libc/stdio/fseek.c: Ditto.
7391 * libc/stdio/fseeko.c: Ditto.
7392 * libc/stdio/ftell.c: Ditto.
7393 * libc/stdio/ftello.c: Ditto.
7394 * libc/stdio/freopen.c: Ditto.
7395 * libc/stdio/findfp.c: Use _GLOBAL_REENT pointer when adding
7396 new files to chain. Also use _GLOBAL_REENT pointer for
7397 cleaning up.
7398 * libc/stdio/fiprintf.c: Reformatted to minimize duplicate code.
7399 * libc/stdio/siprintf.c: Ditto.
7400 * libc/stdio/iprintf.c: Ditto.
7401 * libc/stdio/fprintf.c: Ditto.
7402 * libc/stdio/printf.c: Ditto.
7403 * libc/stdio/snprintf.c: Call _vfprintf_r directly.
7404 * libc/stdio/sprintf.c: Ditto.
7405 * libc/stdio/vprintf.c: Ditto. Also add _REENT_ONLY check.
7406 * libc/stdio/rewind.c: Call _fseek_r directly.
7407 * libc/stdio/tmpfile.c: Call _fopen_r and _remove_r directly.
7408 * libc/stdio/vfprintf.c (_VFPRINTF_R): Change _r routines to use
7409 data pointer.
7410 (get_arg): Add extra struct _reent pointer argument.
7411 * libc/stdio64/fgetpos64.c: Add _r versions, remove any reference
7412 to fp->_data.
7413 * libc/stdio64/fopen64.c: Ditto.
7414 * libc/stdio64/freopen64.c: Ditto.
7415 * libc/stdio64/fsetpos64.c: Ditto.
7416 * libc/stdio64/ftello64.c: Ditto.
7417 * libc/stdio64/local64.h: Ditto.
7418 * libc/stdio64/stdio64.c: Ditto.
7419 * libc/stdio64/fseeko64.c: Ditto plus use _fstat_r instead of
7420 _fstat64_r for the meantime.
7421
8f021114
JJ
74222003-08-19 Jeff Johnston <jjohnstn@redhat.com>
7423
7424 * libc/stdlib/mallocr.c (mALLOc, rEALLOc, mEMEALIGn): Enhance
7425 overflow detection.
17c0c97d 7426
db979bb4 74272003-08-13 Aldy Hernandez <aldyh@redhat.com>
17c0c97d 7428
db979bb4
JJ
7429 * libc/machine/powerpc/machine/stdlib.h: Wrap SPE functions in
7430 extern "C".
7431
6efbdc7d
JJ
74322003-08-13 Jeff Johnston <jjohnstn@redhat.com>
7433
7434 * libc/include/math.h: Add prototypes for __signbitf and
7435 __signbitd.
7436
e895fc20
JJ
74372003-07-31 Jeff Johnston <jjohnstn@redhat.com>
7438
7439 * libc/ctype/iswalpha.c: Fix calls to __jp2uc to pass the
7440 correct type of conversion when dealing with EUCJP or SJIS.
7441 * libc/ctype/iswblank.c: Ditto.
7442 * libc/ctype/iswcntrl.c: Ditto.
7443 * libc/ctype/iswprint.c: Ditto.
7444 * libc/ctype/iswpunct.c: Ditto.
7445 * libc/ctype/iswspace.c: Ditto.
7446 * libc/ctype/towlower.c: Ditto.
7447 * libc/ctype/towupper.c: Ditto.
7448
0302dfe5
NC
74492003-07-31 Nick Clifton <nickc@redhat.com>
7450
7451 * libc/sys/sysnecv850/crt0.S (_start): Allocate 4 slots on stack
7452 before calling main, in case it saves its argument registers.
ba3ccd63
EB
7453 Remove reference to deleted v850ea port.
7454 * configure.host: Remove reference to deleted v850ea port.
7455 Do not use -mv850 when building for v850e target. This
0302dfe5
NC
7456 prevents the ctbp system register from being initialised.
7457
42de5592
JJ
74582003-07-29 Honda Hiroki <hhonda@ipflex.com>
7459
7460 * libc/stdio/vfprintf.c: Set output size to 1 when
7461 we have %f format with precision 0 and # flag not specified.
7462
e5de27b6
AO
74632003-07-29 Alexandre Oliva <aoliva@redhat.com>
7464
7465 * libc/machine/mn10300/setjmp.S: Never emit both .am33 and
7466 .am33_2.
7467
3c98a593
CF
74682003-07-25 Christopher Faylor <cgf@redhat.com>
7469
7470 * libc/stdio64/fdopen64.c: Include sys/lock.h.
7471
e222bf67
CF
74722003-07-25 Christopher Faylor <cgf@redhat.com>
7473
7474 * configure.host: Find cygwin include directory, when appropriate.
7475
03536757
CF
74762003-07-24 Christopher Faylor <cgf@redhat.com>
7477
7478 * libc/stdio64/fdopen64.c: New file.
7479 * libc/stdio64/Makefile.am (LIB_OBJS): Add fdopen64.o
7480 * libc/stdio64/Makefile.in: Regenerate.
7481 * libc/include/stdio.h (fdopen64): Define.
7482 * libc/include/stdio.h (_fdopen64_r): Ditto.
7483
18072a4f
AO
74842003-07-10 Alexandre Oliva <aoliva@redhat.com>
7485
7486 2000-04-27 Alexandre Oliva <aoliva@cygnus.com>
7487 * libc/include/machine/setjmp.h (_JBLEN, AM33/2.0): Set to 26.
7488 * libc/machine/mn10300/setjmp.S (setjmp, longjmp): Save and
7489 restore callee-saved FP registers.
7490
e0bec12f
JR
74912003-07-10 J"orn Rennecke <joern.rennecke@superh.com>
7492
7493 * libc/include/sys/unistd.h (ftruncate, truncate): Also declare
7494 for __sh__.
7495 * libc/sys/sh/Makefile.am (lib_a_SOURCES): Add ftruncate.c and
7496 truncate.c.
7497 * libc/sys/sh/Makefile.in: Regenerate.
7498 * libc/sys/sh/sys/syscall.h: (SYS_truncate, SYS_ftruncate): Define.
7499 * libc/sys/sh/ftruncate.c: New file.
7500 * libc/sys/sh/truncate.c: Likewise.
7501
03d65dd9
AO
75022003-07-09 Alexandre Oliva <aoliva@redhat.com>
7503
7504 * libc/include/math.h (nan, nanf): Update prototype to C99.
7505 * libm/common/s_nan.c (nan): Likewise.
7506 * libm/common/s_nanf.c (nanf, nan): Likewise.
7507 * libc/sys/linux/cmath/math_private.h (nan, nanf): Likewise.
7508
74aa9d7d
JJ
75092003-07-07 Jeff Johnston <jjohnstn@redhat.com>
7510
7511 * libc/include/stdbool.h: Removed as this is defined by gcc.
7512
0a447ef3
JJ
75132003-07-03 Shaun Jackman <sjackman@pathwayconnect.com>
7514
7515 * libc/include/stdbool.h: New header file defined by C99.
7516
282eff9a
JJ
75172003-07-02 Jeff Johnston <jjohnstn@redhat.com>
7518
7519 * libc/include/sys/types.h (int8_t): Make signed.
7520
4e989b11
JJ
75212003-07-02 Jeff Johnston <jjohnstn@redhat.com>
7522
7523 * libc/sys/linux/include/mqueue.h: Add include of <sys/fcntl.h>.
7524
07b40cf8
JJ
75252003-06-27 Jose Goncalves <jose.goncalves@inov.pt>
7526
7527 * libc/sys/linux/mq_open.c (mq_open): Only set created flag
7528 on if we actually created the shared memory file exclusively.
7529
7daa7891
JJ
75302003-06-27 Joe Vornehm <joev@mitre.org>
7531
7532 * libm/common/s_fpclassify.c (__fpclassifyf): Fix
7533 comparisons to account for unsigned internal value w.
7534
51fa7562
JJ
75352003-06-26 Jeff Johnston <jjohnstn@redhat.com>
7536
7537 * libc/sys/linux/mq_open.c (mq_open): Must allocate rdbuf and
7538 wrbuf for a non-creating open.
7539
b8f7ea5c
JJ
75402003-06-24 Kazu Hirata <kazu@cs.umass.edu>
7541
7542 * libc/machine/h8300/setarch.h: New.
7543 * libc/machine/h8300/memcpy.S: Use it.
7544 * libc/machine/h8300/memset.S: Likewise.
7545 * libc/machine/h8300/reg_memcpy.S: Likewise.
7546 * libc/machine/h8300/reg_memset.S: Likewise.
7547 * libc/machine/h8300/setjmp.S: Likewise.
7548 * libc/machine/h8300/strcmp.S: Likewise.
7549
6d7ea52a
RS
75502003-06-24 Richard Sandiford <rsandifo@redhat.com>
7551
7552 * libc/sys/h8300hms/crt0.S (_start): Fix register sizes in call
7553 to atexit().
7554
5a74f2aa
JJ
75552003-06-20 Jeff Johnston <jjohnstn@redhat.com>
7556
7557 * configure.host (iq2000): Add tabs.
7558
8266e478
JJ
75592003-06-20 Jeff Johnston <jjohnstn@redhat.com>
7560
7561 * libc/include/sys/reent.h (_REENT_INIT_PTR): Fix macros
7562 to handle latest on_exit change.
7563 * libc/sys/linux/Makefile.am: Remove special compilation
7564 for malloc.c and mcheck.c.
7565 * libc/sys/linux/Makefile.in: Regenerated.
7566 * libc/sys/linux/mntent.c: Add definition of _LIBC flag
7567 after including <features.h>.
7568 * libc/sys/linux/mcheck.c: Ditto.
7569 * libc/sys/linux/malloc.c: Ditto plus define _GNU_SOURCE
7570 for <features.h>.
7571 * libc/sys/linux/intl/Makefile.am: Remove -D_LIBC and
7572 add -DNOT_IN_libc to C flags.
7573 * libc/sys/linux/intl/Makefile.in: Regenerated.
7574 * libc/sys/linux/intl/config.h: Add definition of _LIBC.
7575 * libc/sys/linux/linuxthreads/semaphore.h: Include
7576 <bits/pthreadtypes.h>.
7577 * libc/sys/linux/sys/dirent.h: Define _LIBC and NOT_IN_libc after
7578 including <features.h>.
7579 * libc/sys/linux/sys/lock.h: Ditto.
7580
0efe117b
NC
75812003-06-11 Nick Clifton <nickc@redhat.com>
7582
7583 * libc/reent/reent.c (reclaim_reent): Fix typo in code to free
7584 _on_exit_args_ptr.
7585
bfdfd7e6 75862003-06-10 Stan Cox <scox@redhat.com>
ba3ccd63 7587 Anthony Green <green@redhat.com>
17c0c97d 7588
bfdfd7e6
AG
7589 * configure.host: Add iq2000 support.
7590 * newlib/libc/include/machine/ieeefp.h: Ditto.
7591 * newlib/libc/include/machine/setjmp.h: Ditto.
7592 * libc/machine/iq2000, libc/machine/iq2000/setjmp.S,
7593 libc/machine/iq2000/aclocal.m4, libc/machine/iq2000/configure,
7594 libc/machine/iq2000/configure.in, libc/machine/iq2000/Makefile.am,
7595 libc/machine/iq2000/Makefile.in: New files.
7596
d9e4104b
RS
75972003-06-10 Richard Sandiford <rsandifo@redhat.com>
7598
7599 * libc/sys/h8300hms/setarch.h: New file.
7600 * libc/sys/h8300hms/close.S, libc/sys/h8300hms/fstat.S,
7601 libc/sys/h8300hms/lseek.S, libc/sys/h8300hms/open.S,
7602 libc/sys/h8300hms/read.S, libc/sys/h8300hms/stat.S,
7603 libc/sys/h8300hms/write.S, libc/sys/h8300hms/crt0.S: Use it.
7604
729d1ff9
JJ
76052003-06-06 Jeff Johnston <jjohnstn@redhat.com>
7606
ba3ccd63
EB
7607 * libc/argz/argz_add.c: Change to use _DEFUN macro for function
7608 definition.
7609 * libc/argz/argz_add_sep.c: Ditto.
7610 * libc/argz/argz_append.c libc/argz/argz_count.c: Ditto.
7611 * libc/argz/argz_create.c libc/argz/argz_create_sep.c: Ditto.
7612 * libc/argz/argz_delete.c libc/argz/argz_extract.c: Ditto.
7613 * libc/argz/argz_insert.c libc/argz/argz_next.c: Ditto.
7614 * libc/argz/argz_replace.c libc/argz/argz_stringify.c: Ditto.
7615 * libc/argz/envz_add.c libc/argz/envz_entry.c: Ditto.
7616 * libc/argz/envz_get.c libc/argz/envz_merge.c: Ditto.
7617 * libc/argz/envz_remove.c libc/argz/envz_strip.c: Ditto.
7618 * libc/locale/nl_langinfo.c libc/misc/ffs.c: Ditto.
7619 * libc/posix/closedir.c libc/posix/creat.c: Ditto.
7620 * libc/posix/execl.c libc/posix/execle.c: Ditto.
7621 * libc/posix/execlp.c libc/posix/execve.c: Ditto.
7622 * libc/posix/isatty.c libc/posix/opendir.c: Ditto.
7623 * libc/posix/popen.c libc/posix/readdir.c: Ditto.
7624 * libc/posix/readdir_r.c libc/posix/rewinddir.c: Ditto.
7625 * libc/posix/scandir.c libc/posix/seekdir.c: Ditto.
7626 * libc/posix/telldir.c libc/search/hcreate.c: Ditto.
7627 * libc/search/tdelete.c libc/search/tdestroy.c: Ditto.
7628 * libc/search/tfind.c libc/search/tsearch.c: Ditto.
7629 * libc/search/twalk.c libc/signal/signal.c: Ditto.
729d1ff9 7630
75d7d177 76312003-06-05 Nick Clifton <nickc@redhat.com>
17c0c97d 7632
75d7d177
NC
7633 * libc/include/sys/reent.h (struct _on_exit_args): New
7634 structure containing fields used by the on_exit() function.
ba3ccd63 7635 (struct _atexit): Include struct _on_exit_args. For
75d7d177
NC
7636 _REENT_SMALL do his via a pointer that is initialised when
7637 needed.
ba3ccd63 7638 * libc/reent/reent.c (_reclaim_reent): Free the _on_exit_args
75d7d177 7639 structure, if one has been allocated.
ba3ccd63 7640 * libc/stdlib/atexit.c (atexit): Update indirection to
75d7d177 7641 _fntypes field.
ba3ccd63 7642 * libc/stdlib/on_exit.c (on_exit): Indirect via the
75d7d177
NC
7643 _on_exit_args structure. For _REENT_SMALL, allocate a
7644 structure if one does not exist.
ba3ccd63 7645 * libc/stdlib/exit.c (exit): Indirect via the _on_exit_args
75d7d177
NC
7646 structure.
7647
2129f283
JJ
76482003-06-04 Jeff Johnston <jjohnstn@redhat.com>
7649
7650 * libc/sys/linux/net/Makefile.am: Remove extraneous markers.
7651 * libc/sys/linux/net/Makefile.in: Regenerated.
7652
bf3bcac2
JJ
76532003-06-03 Jeff Johnston <jjohnstn@redhat.com>
7654
7655 * libc/reent/execr.c: Use _DEFUN macro for function declaration.
7656 * libc/reent/fcntlr.c: Ditto.
7657 * libc/reent/fstat64r.c: Ditto.
7658 * libc/reent/linkr.c: Ditto.
7659 * libc/reent/lseek64r.c: Ditto.
7660 * libc/reent/lseekr.c: Ditto.
7661 * libc/reent/openr.c: Ditto.
7662 * libc/reent/readr.c: Ditto.
7663 * libc/reent/reent.c: Ditto.
7664 * libc/reent/sbrkr.c: Ditto.
7665 * libc/reent/signalr.c: Ditto.
7666 * libc/reent/signgam.c: Ditto.
7667 * libc/reent/statr.c: Ditto.
7668 * libc/reent/timer.c: Ditto.
7669 * libc/reent/unlinkr.c: Ditto.
7670 * libc/reent/writer.c: Ditto.
7671 * libc/syscalls/sysclose.c: Ditto.
7672 * libc/syscalls/sysexecve.c: Ditto.
7673 * libc/syscalls/sysfcntl.c: Ditto.
7674 * libc/syscalls/sysfork.c: Ditto.
7675 * libc/syscalls/sysfstat.c: Ditto.
7676 * libc/syscalls/sysgetpid.c: Ditto.
7677 * libc/syscalls/sysgettod.c: Ditto.
7678 * libc/syscalls/syskill.c: Ditto.
7679 * libc/syscalls/syslink.c: Ditto.
7680 * libc/syscalls/syslseek.c: Ditto.
7681 * libc/syscalls/sysopen.c: Ditto.
7682 * libc/syscalls/sysread.c: Ditto.
7683 * libc/syscalls/syssbrk.c: Ditto.
7684 * libc/syscalls/sysstat.c: Ditto.
7685 * libc/syscalls/systimes.c: Ditto.
7686 * libc/syscalls/sysunlink.c: Ditto.
7687 * libc/syscalls/syswait.c: Ditto.
7688 * libc/syscalls/syswrite.c: Ditto.
7689
702ceb23
JJ
76902003-06-03 Till Straumann <strauman@SLAC.Stanford.EDU>
7691
7692 * libc/time/tzset_r.c: Change local variables that are
7693 set via sscanf using the %h format specifier to be unsigned short
7694 instead of int.
7695
102861c9
JJ
76962003-05-30 Kelley Cook <kelleycook@wideopenwest.com>
7697
7698 * configure.host: Allow i[34567]86 variant.
7699 * configure.in: Likewise.
7700 * README: Likewise to the docs.
7701 * configure: Regenerated.
7702 * Makefile.in: Ditto.
7703
b359e82c
JJ
77042003-05-28 Jeff Johnston <jjohnstn@redhat.com>
7705 Tom Fitzsimmons <fitzsim@redhat.com>
7706
7707 * configure.in: Add iconvdata support for x86 linux.
7708 * configure: Regenerated.
17c0c97d 7709 * libc/sys/linux/Makefile.am: Add EL/IX level 3 network, dynamic
b359e82c
JJ
7710 library, iconv, and linuxthreads support.
7711 * libc/sys/linux/configure.in: Ditto.
7712 * libc/sys/linux/Makefile.in: Regenerated.
7713 * libc/sys/linux/configure: Ditto.
7714 * iconvdata/EUC-JP.irreversible: New file.
7715 * iconvdata/Makefile.am: Ditto.
7716 * iconvdata/Makefile.in: Ditto.
7717 * iconvdata/SJIS.irreversible: Ditto.
7718 * iconvdata/aclocal.m4: Ditto.
7719 * iconvdata/configure: Ditto.
7720 * iconvdata/configure.in: Ditto.
7721 * iconvdata/dummy.c: Ditto.
7722 * iconvdata/euc-jp.c: Ditto.
7723 * iconvdata/gconv-modules: Ditto.
7724 * iconvdata/jis0201.c: Ditto.
7725 * iconvdata/jis0201.h: Ditto.
7726 * iconvdata/jis0208.c: Ditto.
7727 * iconvdata/jis0208.h: Ditto.
7728 * iconvdata/jis0212.c: Ditto.
7729 * iconvdata/jis0212.h: Ditto.
7730 * iconvdata/sjis.c: Ditto.
7731 * libc/include/errno.h: Protect definition of error_t.
7732 * libc/sys/linux/gethostid.c: New file.
7733 * libc/sys/linux/sethostid.c: Ditto.
7734 * libc/sys/linux/dl/Makefile.am: Ditto.
7735 * libc/sys/linux/dl/Makefile.in: Ditto.
7736 * libc/sys/linux/dl/abi-tag.h: Ditto.
7737 * libc/sys/linux/dl/atomicity.h: Ditto.
7738 * libc/sys/linux/dl/dl-addr.c: Ditto.
7739 * libc/sys/linux/dl/dl-cache.c: Ditto.
7740 * libc/sys/linux/dl/dl-cache.h: Ditto.
7741 * libc/sys/linux/dl/dl-close.c: Ditto.
7742 * libc/sys/linux/dl/dl-debug.c: Ditto.
7743 * libc/sys/linux/dl/dl-deps.c: Ditto.
7744 * libc/sys/linux/dl/dl-dst.h: Ditto.
7745 * libc/sys/linux/dl/dl-error.c: Ditto.
7746 * libc/sys/linux/dl/dl-fini.c: Ditto.
7747 * libc/sys/linux/dl/dl-init.c: Ditto.
7748 * libc/sys/linux/dl/dl-iteratephdr.c: Ditto.
7749 * libc/sys/linux/dl/dl-libc.c: Ditto.
7750 * libc/sys/linux/dl/dl-librecon.h: Ditto.
7751 * libc/sys/linux/dl/dl-load.c: Ditto.
7752 * libc/sys/linux/dl/dl-lookup.c: Ditto.
7753 * libc/sys/linux/dl/dl-lookupcfg.h: Ditto.
7754 * libc/sys/linux/dl/dl-minimal.c: Ditto.
7755 * libc/sys/linux/dl/dl-misc.c: Ditto.
7756 * libc/sys/linux/dl/dl-object.c: Ditto.
7757 * libc/sys/linux/dl/dl-open.c: Ditto.
7758 * libc/sys/linux/dl/dl-osinfo.h: Ditto.
7759 * libc/sys/linux/dl/dl-profile.c: Ditto.
7760 * libc/sys/linux/dl/dl-profstub.c: Ditto.
7761 * libc/sys/linux/dl/dl-reloc.c: Ditto.
7762 * libc/sys/linux/dl/dl-runtime.c: Ditto.
7763 * libc/sys/linux/dl/dl-support.c: Ditto.
7764 * libc/sys/linux/dl/dl-sym.c: Ditto.
7765 * libc/sys/linux/dl/dl-version.c: Ditto.
7766 * libc/sys/linux/dl/dlfcn.h: Ditto.
7767 * libc/sys/linux/dl/do-lookup.h: Ditto.
7768 * libc/sys/linux/dl/do-rel.h: Ditto.
7769 * libc/sys/linux/dl/dynamic-link.h: Ditto.
7770 * libc/sys/linux/dl/kernel-features.h: Ditto.
7771 * libc/sys/linux/dl/ldsodefs.h: Ditto.
7772 * libc/sys/linux/dl/libintl.h: Ditto.
7773 * libc/sys/linux/dl/trusted-dirs.h: Ditto.
7774 * libc/sys/linux/dl/unsecvars.h: Ditto.
7775 * libc/sys/linux/iconv/Makefile.am: Ditto.
7776 * libc/sys/linux/iconv/Makefile.in: Ditto.
7777 * libc/sys/linux/iconv/categories.def: Ditto.
7778 * libc/sys/linux/iconv/dummy-repertoire.c: Ditto.
7779 * libc/sys/linux/iconv/gconv.c: Ditto.
7780 * libc/sys/linux/iconv/gconv_builtin.c: Ditto.
7781 * libc/sys/linux/iconv/gconv_builtin.h: Ditto.
7782 * libc/sys/linux/iconv/gconv_cache.c: Ditto.
7783 * libc/sys/linux/iconv/gconv_charset.h: Ditto.
7784 * libc/sys/linux/iconv/gconv_close.c: Ditto.
7785 * libc/sys/linux/iconv/gconv_conf.c: Ditto.
7786 * libc/sys/linux/iconv/gconv_db.c: Ditto.
7787 * libc/sys/linux/iconv/gconv_dl.c: Ditto.
7788 * libc/sys/linux/iconv/gconv_int.h: Ditto.
7789 * libc/sys/linux/iconv/gconv_open.c: Ditto.
7790 * libc/sys/linux/iconv/gconv_simple.c: Ditto.
7791 * libc/sys/linux/iconv/gconv_trans.c: Ditto.
7792 * libc/sys/linux/iconv/hash-string.h: Ditto.
7793 * libc/sys/linux/iconv/iconv.c: Ditto.
7794 * libc/sys/linux/iconv/iconv.h: Ditto.
7795 * libc/sys/linux/iconv/iconv_charmap.c: Ditto.
7796 * libc/sys/linux/iconv/iconv_close.c: Ditto.
7797 * libc/sys/linux/iconv/iconv_open.c: Ditto.
7798 * libc/sys/linux/iconv/iconvconfig.c: Ditto.
7799 * libc/sys/linux/iconv/iconvconfig.h: Ditto.
7800 * libc/sys/linux/iconv/loadinfo.h: Ditto.
7801 * libc/sys/linux/iconv/localeinfo.h: Ditto.
7802 * libc/sys/linux/iconv/loop.c: Ditto.
7803 * libc/sys/linux/iconv/skeleton.c: Ditto.
7804 * libc/sys/linux/iconv/strtab.c: Ditto.
7805 * libc/sys/linux/include/dl-hash.h: Ditto.
7806 * libc/sys/linux/include/dlfcn.h: Ditto.
7807 * libc/sys/linux/include/fnmatch.h: Ditto.
7808 * libc/sys/linux/include/gconv.h: Ditto.
7809 * libc/sys/linux/include/glob.h: Ditto.
7810 * libc/sys/linux/include/hesiod.h: Ditto.
7811 * libc/sys/linux/include/ifaddrs.h: Ditto.
7812 * libc/sys/linux/include/libc_private.h: Ditto.
7813 * libc/sys/linux/include/link.h: Ditto.
7814 * libc/sys/linux/include/namespace.h: Ditto.
7815 * libc/sys/linux/include/netconfig.h: Ditto.
7816 * libc/sys/linux/include/netdb.h: Ditto.
7817 * libc/sys/linux/include/nsswitch.h: Ditto.
7818 * libc/sys/linux/include/regex.h: Ditto.
7819 * libc/sys/linux/include/resolv.h: Ditto.
7820 * libc/sys/linux/include/rune.h: Ditto.
7821 * libc/sys/linux/include/runetype.h: Ditto.
7822 * libc/sys/linux/include/semaphore.h: Ditto.
7823 * libc/sys/linux/include/setlocale.h: Ditto.
7824 * libc/sys/linux/include/un-namespace.h: Ditto.
7825 * libc/sys/linux/include/wordexp.h: Ditto.
7826 * libc/sys/linux/include/arpa/ftp.h: Ditto.
7827 * libc/sys/linux/include/arpa/inet.h: Ditto.
7828 * libc/sys/linux/include/arpa/nameser.h: Ditto.
7829 * libc/sys/linux/include/arpa/nameser_compat.h: Ditto.
7830 * libc/sys/linux/include/arpa/telnet.h: Ditto.
7831 * libc/sys/linux/include/arpa/tftp.h: Ditto.
7832 * libc/sys/linux/include/net/bpf.h: Ditto.
7833 * libc/sys/linux/include/net/bpf_compat.h: Ditto.
7834 * libc/sys/linux/include/net/bpfdesc.h: Ditto.
7835 * libc/sys/linux/include/net/bridge.h: Ditto.
7836 * libc/sys/linux/include/net/ethernet.h: Ditto.
7837 * libc/sys/linux/include/net/fddi.h: Ditto.
7838 * libc/sys/linux/include/net/if.h: Ditto.
7839 * libc/sys/linux/include/net/if_arc.h: Ditto.
7840 * libc/sys/linux/include/net/if_arp.h: Ditto.
7841 * libc/sys/linux/include/net/if_atm.h: Ditto.
7842 * libc/sys/linux/include/net/if_dl.h: Ditto.
7843 * libc/sys/linux/include/net/if_gif.h: Ditto.
7844 * libc/sys/linux/include/net/if_ieee80211.h: Ditto.
7845 * libc/sys/linux/include/net/if_llc.h: Ditto.
7846 * libc/sys/linux/include/net/if_media.h: Ditto.
7847 * libc/sys/linux/include/net/if_mib.h: Ditto.
7848 * libc/sys/linux/include/net/if_ppp.h: Ditto.
7849 * libc/sys/linux/include/net/if_pppvar.h: Ditto.
7850 * libc/sys/linux/include/net/if_slvar.h: Ditto.
7851 * libc/sys/linux/include/net/if_sppp.h: Ditto.
7852 * libc/sys/linux/include/net/if_stf.h: Ditto.
7853 * libc/sys/linux/include/net/if_tap.h: Ditto.
7854 * libc/sys/linux/include/net/if_tapvar.h: Ditto.
7855 * libc/sys/linux/include/net/if_tun.h: Ditto.
7856 * libc/sys/linux/include/net/if_tunvar.h: Ditto.
7857 * libc/sys/linux/include/net/if_types.h: Ditto.
7858 * libc/sys/linux/include/net/if_var.h: Ditto.
7859 * libc/sys/linux/include/net/if_vlan_var.h: Ditto.
7860 * libc/sys/linux/include/net/intrq.h: Ditto.
7861 * libc/sys/linux/include/net/iso88025.h: Ditto.
7862 * libc/sys/linux/include/net/net_osdep.h: Ditto.
7863 * libc/sys/linux/include/net/netisr.h: Ditto.
7864 * libc/sys/linux/include/net/pfil.h: Ditto.
7865 * libc/sys/linux/include/net/pfkeyv2.h: Ditto.
7866 * libc/sys/linux/include/net/ppp_comp.h: Ditto.
7867 * libc/sys/linux/include/net/ppp_defs.h: Ditto.
7868 * libc/sys/linux/include/net/radix.h: Ditto.
7869 * libc/sys/linux/include/net/raw_cb.h: Ditto.
7870 * libc/sys/linux/include/net/route.h: Ditto.
7871 * libc/sys/linux/include/net/slcompress.h: Ditto.
7872 * libc/sys/linux/include/net/slip.h: Ditto.
7873 * libc/sys/linux/include/net/zlib.h: Ditto.
7874 * libc/sys/linux/include/netinet/icmp6.h: Ditto.
7875 * libc/sys/linux/include/netinet/icmp_var.h: Ditto.
7876 * libc/sys/linux/include/netinet/if_atm.h: Ditto.
7877 * libc/sys/linux/include/netinet/if_ether.h: Ditto.
7878 * libc/sys/linux/include/netinet/igmp.h: Ditto.
7879 * libc/sys/linux/include/netinet/igmp_var.h: Ditto.
7880 * libc/sys/linux/include/netinet/in.h: Ditto.
7881 * libc/sys/linux/include/netinet/in_gif.h: Ditto.
7882 * libc/sys/linux/include/netinet/in_pcb.h: Ditto.
7883 * libc/sys/linux/include/netinet/in_systm.h: Ditto.
7884 * libc/sys/linux/include/netinet/in_var.h: Ditto.
7885 * libc/sys/linux/include/netinet/ip.h: Ditto.
7886 * libc/sys/linux/include/netinet/ip6.h: Ditto.
7887 * libc/sys/linux/include/netinet/ip_dummynet.h: Ditto.
7888 * libc/sys/linux/include/netinet/ip_ecn.h: Ditto.
7889 * libc/sys/linux/include/netinet/ip_encap.h: Ditto.
7890 * libc/sys/linux/include/netinet/ip_flow.h: Ditto.
7891 * libc/sys/linux/include/netinet/ip_fw.h: Ditto.
7892 * libc/sys/linux/include/netinet/ip_icmp.h: Ditto.
7893 * libc/sys/linux/include/netinet/ip_mroute.h: Ditto.
7894 * libc/sys/linux/include/netinet/ip_var.h: Ditto.
7895 * libc/sys/linux/include/netinet/ipprotosw.h: Ditto.
7896 * libc/sys/linux/include/netinet/tcp.h: Ditto.
7897 * libc/sys/linux/include/netinet/tcp_debug.h: Ditto.
7898 * libc/sys/linux/include/netinet/tcp_fsm.h: Ditto.
7899 * libc/sys/linux/include/netinet/tcp_seq.h: Ditto.
7900 * libc/sys/linux/include/netinet/tcp_timer.h: Ditto.
7901 * libc/sys/linux/include/netinet/tcp_var.h: Ditto.
7902 * libc/sys/linux/include/netinet/tcpip.h: Ditto.
7903 * libc/sys/linux/include/netinet/udp.h: Ditto.
7904 * libc/sys/linux/include/netinet/udp_var.h: Ditto.
7905 * libc/sys/linux/include/netinet6/ah.h: Ditto.
7906 * libc/sys/linux/include/netinet6/ah6.h: Ditto.
7907 * libc/sys/linux/include/netinet6/esp.h: Ditto.
7908 * libc/sys/linux/include/netinet6/esp6.h: Ditto.
7909 * libc/sys/linux/include/netinet6/esp_rijndael.h: Ditto.
7910 * libc/sys/linux/include/netinet6/icmp6.h: Ditto.
7911 * libc/sys/linux/include/netinet6/in6.h: Ditto.
7912 * libc/sys/linux/include/netinet6/in6_gif.h: Ditto.
7913 * libc/sys/linux/include/netinet6/in6_ifattach.h: Ditto.
7914 * libc/sys/linux/include/netinet6/in6_pcb.h: Ditto.
7915 * libc/sys/linux/include/netinet6/in6_prefix.h: Ditto.
7916 * libc/sys/linux/include/netinet6/in6_var.h: Ditto.
7917 * libc/sys/linux/include/netinet6/ip6.h: Ditto.
7918 * libc/sys/linux/include/netinet6/ip6_ecn.h: Ditto.
7919 * libc/sys/linux/include/netinet6/ip6_fw.h: Ditto.
7920 * libc/sys/linux/include/netinet6/ip6_mroute.h: Ditto.
7921 * libc/sys/linux/include/netinet6/ip6_var.h: Ditto.
7922 * libc/sys/linux/include/netinet6/ip6protosw.h: Ditto.
7923 * libc/sys/linux/include/netinet6/ipcomp.h: Ditto.
7924 * libc/sys/linux/include/netinet6/ipcomp6.h: Ditto.
7925 * libc/sys/linux/include/netinet6/ipsec.h: Ditto.
7926 * libc/sys/linux/include/netinet6/ipsec6.h: Ditto.
7927 * libc/sys/linux/include/netinet6/mld6_var.h: Ditto.
7928 * libc/sys/linux/include/netinet6/nd6.h: Ditto.
7929 * libc/sys/linux/include/netinet6/pim6.h: Ditto.
7930 * libc/sys/linux/include/netinet6/pim6_var.h: Ditto.
7931 * libc/sys/linux/include/netinet6/raw_ip6.h: Ditto.
7932 * libc/sys/linux/include/netinet6/scope6_var.h: Ditto.
7933 * libc/sys/linux/include/netinet6/tcp6_var.h: Ditto.
7934 * libc/sys/linux/include/netinet6/udp6_var.h: Ditto.
7935 * libc/sys/linux/include/netns/idp.h: Ditto.
7936 * libc/sys/linux/include/netns/idp_var.h: Ditto.
7937 * libc/sys/linux/include/netns/ns.h: Ditto.
7938 * libc/sys/linux/include/netns/ns_error.h: Ditto.
7939 * libc/sys/linux/include/netns/ns_if.h: Ditto.
7940 * libc/sys/linux/include/netns/ns_pcb.h: Ditto.
7941 * libc/sys/linux/include/netns/sp.h: Ditto.
7942 * libc/sys/linux/include/netns/spidp.h: Ditto.
7943 * libc/sys/linux/include/netns/spp_debug.h: Ditto.
7944 * libc/sys/linux/include/netns/spp_timer.h: Ditto.
7945 * libc/sys/linux/include/netns/spp_var.h: Ditto.
7946 * libc/sys/linux/include/rpc/Makefile: Ditto.
7947 * libc/sys/linux/include/rpc/auth.h: Ditto.
7948 * libc/sys/linux/include/rpc/auth_des.h: Ditto.
7949 * libc/sys/linux/include/rpc/auth_kerb.h: Ditto.
7950 * libc/sys/linux/include/rpc/auth_unix.h: Ditto.
7951 * libc/sys/linux/include/rpc/clnt.h: Ditto.
7952 * libc/sys/linux/include/rpc/clnt_soc.h: Ditto.
7953 * libc/sys/linux/include/rpc/clnt_stat.h: Ditto.
7954 * libc/sys/linux/include/rpc/des.h: Ditto.
7955 * libc/sys/linux/include/rpc/des_crypt.h: Ditto.
7956 * libc/sys/linux/include/rpc/nettype.h: Ditto.
7957 * libc/sys/linux/include/rpc/pmap_clnt.h: Ditto.
7958 * libc/sys/linux/include/rpc/pmap_prot.h: Ditto.
7959 * libc/sys/linux/include/rpc/pmap_rmt.h: Ditto.
7960 * libc/sys/linux/include/rpc/raw.h: Ditto.
7961 * libc/sys/linux/include/rpc/rpc.h: Ditto.
7962 * libc/sys/linux/include/rpc/rpc_com.h: Ditto.
7963 * libc/sys/linux/include/rpc/rpc_msg.h: Ditto.
7964 * libc/sys/linux/include/rpc/rpcb_clnt.h: Ditto.
7965 * libc/sys/linux/include/rpc/rpcb_prot.h: Ditto.
7966 * libc/sys/linux/include/rpc/rpcb_prot.x: Ditto.
7967 * libc/sys/linux/include/rpc/rpcent.h: Ditto.
7968 * libc/sys/linux/include/rpc/svc.h: Ditto.
7969 * libc/sys/linux/include/rpc/svc_auth.h: Ditto.
7970 * libc/sys/linux/include/rpc/svc_dg.h: Ditto.
7971 * libc/sys/linux/include/rpc/svc_soc.h: Ditto.
7972 * libc/sys/linux/include/rpc/types.h: Ditto.
7973 * libc/sys/linux/include/rpc/xdr.h: Ditto.
7974 * libc/sys/linux/intl/Makefile.am: Ditto.
7975 * libc/sys/linux/intl/Makefile.in: Ditto.
7976 * libc/sys/linux/intl/bindtextdom.c: Ditto.
7977 * libc/sys/linux/intl/catgets.c: Ditto.
7978 * libc/sys/linux/intl/catgetsinfo.h: Ditto.
7979 * libc/sys/linux/intl/config.h: Ditto.
7980 * libc/sys/linux/intl/dcgettext.c: Ditto.
7981 * libc/sys/linux/intl/dcigettext.c: Ditto.
7982 * libc/sys/linux/intl/dcngettext.c: Ditto.
7983 * libc/sys/linux/intl/dgettext.c: Ditto.
7984 * libc/sys/linux/intl/dngettext.c: Ditto.
7985 * libc/sys/linux/intl/explodename.c: Ditto.
7986 * libc/sys/linux/intl/finddomain.c: Ditto.
7987 * libc/sys/linux/intl/gettext.c: Ditto.
7988 * libc/sys/linux/intl/gettext.h: Ditto.
7989 * libc/sys/linux/intl/gettextP.h: Ditto.
7990 * libc/sys/linux/intl/hash-string.h: Ditto.
7991 * libc/sys/linux/intl/l10nflist.c: Ditto.
7992 * libc/sys/linux/intl/loadinfo.h: Ditto.
7993 * libc/sys/linux/intl/loadmsgcat.c: Ditto.
7994 * libc/sys/linux/intl/locale.alias: Ditto.
7995 * libc/sys/linux/intl/localealias.c: Ditto.
7996 * libc/sys/linux/intl/ngettext.c: Ditto.
7997 * libc/sys/linux/intl/open_catalog.c: Ditto.
7998 * libc/sys/linux/intl/plural.c: Ditto.
7999 * libc/sys/linux/intl/plural.y: Ditto.
8000 * libc/sys/linux/intl/stpcpy.c: Ditto.
8001 * libc/sys/linux/intl/textdomain.c: Ditto.
8002 * libc/sys/linux/linuxthreads/LICENSE: Ditto.
8003 * libc/sys/linux/linuxthreads/Makefile.am: Ditto.
8004 * libc/sys/linux/linuxthreads/Makefile.in: Ditto.
8005 * libc/sys/linux/linuxthreads/aclocal.m4: Ditto.
8006 * libc/sys/linux/linuxthreads/attr.c: Ditto.
8007 * libc/sys/linux/linuxthreads/barrier.c: Ditto.
8008 * libc/sys/linux/linuxthreads/bp-sym.h: Ditto.
8009 * libc/sys/linux/linuxthreads/cancel.c: Ditto.
8010 * libc/sys/linux/linuxthreads/condvar.c: Ditto.
8011 * libc/sys/linux/linuxthreads/config.h: Ditto.
8012 * libc/sys/linux/linuxthreads/configure: Ditto.
8013 * libc/sys/linux/linuxthreads/configure.in: Ditto.
8014 * libc/sys/linux/linuxthreads/defs.awk: Ditto.
8015 * libc/sys/linux/linuxthreads/ecmutex.c: Ditto.
8016 * libc/sys/linux/linuxthreads/events.c: Ditto.
8017 * libc/sys/linux/linuxthreads/getcpuclockid.c: Ditto.
8018 * libc/sys/linux/linuxthreads/getreent.c: Ditto.
8019 * libc/sys/linux/linuxthreads/internals.h: Ditto.
8020 * libc/sys/linux/linuxthreads/join.c: Ditto.
8021 * libc/sys/linux/linuxthreads/joinrace.c: Ditto.
8022 * libc/sys/linux/linuxthreads/kernel-features.h: Ditto.
8023 * libc/sys/linux/linuxthreads/libc-internal.h: Ditto.
8024 * libc/sys/linux/linuxthreads/libc-symbols.h: Ditto.
8025 * libc/sys/linux/linuxthreads/linuxthreads.texi: Ditto.
8026 * libc/sys/linux/linuxthreads/lockfile.c: Ditto.
8027 * libc/sys/linux/linuxthreads/manager.c: Ditto.
8028 * libc/sys/linux/linuxthreads/mq_notify.c: Ditto.
8029 * libc/sys/linux/linuxthreads/mutex.c: Ditto.
8030 * libc/sys/linux/linuxthreads/no-tsd.c: Ditto.
8031 * libc/sys/linux/linuxthreads/oldsemaphore.c: Ditto.
8032 * libc/sys/linux/linuxthreads/posix-timer.h: Ditto.
8033 * libc/sys/linux/linuxthreads/prio.c: Ditto.
8034 * libc/sys/linux/linuxthreads/proc_service.h: Ditto.
8035 * libc/sys/linux/linuxthreads/pt-machine.c: Ditto.
8036 * libc/sys/linux/linuxthreads/ptclock_gettime.c: Ditto.
8037 * libc/sys/linux/linuxthreads/ptclock_settime.c: Ditto.
8038 * libc/sys/linux/linuxthreads/ptfork.c: Ditto.
8039 * libc/sys/linux/linuxthreads/pthread.c: Ditto.
8040 * libc/sys/linux/linuxthreads/ptlongjmp.c: Ditto.
8041 * libc/sys/linux/linuxthreads/queue.h: Ditto.
8042 * libc/sys/linux/linuxthreads/reent.c: Ditto.
8043 * libc/sys/linux/linuxthreads/reqsyscalls.c: Ditto.
8044 * libc/sys/linux/linuxthreads/restart.h: Ditto.
8045 * libc/sys/linux/linuxthreads/rwlock.c: Ditto.
8046 * libc/sys/linux/linuxthreads/semaphore.c: Ditto.
8047 * libc/sys/linux/linuxthreads/semaphore.h: Ditto.
8048 * libc/sys/linux/linuxthreads/shlib-compat.h: Ditto.
8049 * libc/sys/linux/linuxthreads/signals.c: Ditto.
8050 * libc/sys/linux/linuxthreads/specific.c: Ditto.
8051 * libc/sys/linux/linuxthreads/spinlock.c: Ditto.
8052 * libc/sys/linux/linuxthreads/spinlock.h: Ditto.
8053 * libc/sys/linux/linuxthreads/sysctl.c: Ditto.
8054 * libc/sys/linux/linuxthreads/td_init.c: Ditto.
8055 * libc/sys/linux/linuxthreads/td_log.c: Ditto.
8056 * libc/sys/linux/linuxthreads/td_symbol_list.c: Ditto.
8057 * libc/sys/linux/linuxthreads/td_ta_clear_event.c: Ditto.
8058 * libc/sys/linux/linuxthreads/td_ta_delete.c: Ditto.
8059 * libc/sys/linux/linuxthreads/td_ta_enable_stats.c: Ditto.
8060 * libc/sys/linux/linuxthreads/td_ta_event_addr.c: Ditto.
8061 * libc/sys/linux/linuxthreads/td_ta_event_getmsg.c: Ditto.
8062 * libc/sys/linux/linuxthreads/td_ta_get_nthreads.c: Ditto.
8063 * libc/sys/linux/linuxthreads/td_ta_get_ph.c: Ditto.
8064 * libc/sys/linux/linuxthreads/td_ta_get_stats.c: Ditto.
8065 * libc/sys/linux/linuxthreads/td_ta_map_id2thr.c: Ditto.
8066 * libc/sys/linux/linuxthreads/td_ta_map_lwp2thr.c: Ditto.
8067 * libc/sys/linux/linuxthreads/td_ta_new.c: Ditto.
8068 * libc/sys/linux/linuxthreads/td_ta_reset_stats.c: Ditto.
8069 * libc/sys/linux/linuxthreads/td_ta_set_event.c: Ditto.
8070 * libc/sys/linux/linuxthreads/td_ta_setconcurrency.c: Ditto.
8071 * libc/sys/linux/linuxthreads/td_ta_thr_iter.c: Ditto.
8072 * libc/sys/linux/linuxthreads/td_ta_tsd_iter.c: Ditto.
8073 * libc/sys/linux/linuxthreads/td_thr_clear_event.c: Ditto.
8074 * libc/sys/linux/linuxthreads/td_thr_dbresume.c: Ditto.
8075 * libc/sys/linux/linuxthreads/td_thr_dbsuspend.c: Ditto.
8076 * libc/sys/linux/linuxthreads/td_thr_event_enable.c: Ditto.
8077 * libc/sys/linux/linuxthreads/td_thr_event_getmsg.c: Ditto.
8078 * libc/sys/linux/linuxthreads/td_thr_get_info.c: Ditto.
8079 * libc/sys/linux/linuxthreads/td_thr_getfpregs.c: Ditto.
8080 * libc/sys/linux/linuxthreads/td_thr_getgregs.c: Ditto.
8081 * libc/sys/linux/linuxthreads/td_thr_getxregs.c: Ditto.
8082 * libc/sys/linux/linuxthreads/td_thr_getxregsize.c: Ditto.
8083 * libc/sys/linux/linuxthreads/td_thr_set_event.c: Ditto.
8084 * libc/sys/linux/linuxthreads/td_thr_setfpregs.c: Ditto.
8085 * libc/sys/linux/linuxthreads/td_thr_setgregs.c: Ditto.
8086 * libc/sys/linux/linuxthreads/td_thr_setprio.c: Ditto.
8087 * libc/sys/linux/linuxthreads/td_thr_setsigpending.c: Ditto.
8088 * libc/sys/linux/linuxthreads/td_thr_setxregs.c: Ditto.
8089 * libc/sys/linux/linuxthreads/td_thr_sigsetmask.c: Ditto.
8090 * libc/sys/linux/linuxthreads/td_thr_tsd.c: Ditto.
8091 * libc/sys/linux/linuxthreads/td_thr_validate.c: Ditto.
8092 * libc/sys/linux/linuxthreads/testrtsig.h: Ditto.
8093 * libc/sys/linux/linuxthreads/thread_db.h: Ditto.
8094 * libc/sys/linux/linuxthreads/thread_dbP.h: Ditto.
8095 * libc/sys/linux/linuxthreads/timer_create.c: Ditto.
8096 * libc/sys/linux/linuxthreads/timer_delete.c: Ditto.
8097 * libc/sys/linux/linuxthreads/timer_getoverr.c: Ditto.
8098 * libc/sys/linux/linuxthreads/timer_gettime.c: Ditto.
8099 * libc/sys/linux/linuxthreads/timer_routines.c: Ditto.
8100 * libc/sys/linux/linuxthreads/timer_settime.c: Ditto.
8101 * libc/sys/linux/linuxthreads/tst-cancel.c: Ditto.
8102 * libc/sys/linux/linuxthreads/tst-context.c: Ditto.
8103 * libc/sys/linux/linuxthreads/tststack.c: Ditto.
8104 * libc/sys/linux/linuxthreads/unload.c: Ditto.
8105 * libc/sys/linux/linuxthreads/weaks.c: Ditto.
8106 * libc/sys/linux/linuxthreads/wrapsyscall.c: Ditto.
8107 * libc/sys/linux/linuxthreads/bits/initspin.h: Ditto.
8108 * libc/sys/linux/linuxthreads/bits/libc-lock.h: Ditto.
8109 * libc/sys/linux/linuxthreads/bits/libc-tsd.h: Ditto.
8110 * libc/sys/linux/linuxthreads/bits/local_lim.h: Ditto.
8111 * libc/sys/linux/linuxthreads/bits/posix_opt.h: Ditto.
8112 * libc/sys/linux/linuxthreads/bits/pthreadtypes.h: Ditto.
8113 * libc/sys/linux/linuxthreads/bits/sigthread.h: Ditto.
8114 * libc/sys/linux/linuxthreads/machine/Makefile.am: Ditto.
8115 * libc/sys/linux/linuxthreads/machine/Makefile.in: Ditto.
8116 * libc/sys/linux/linuxthreads/machine/aclocal.m4: Ditto.
8117 * libc/sys/linux/linuxthreads/machine/configure: Ditto.
8118 * libc/sys/linux/linuxthreads/machine/configure.in: Ditto.
8119 * libc/sys/linux/linuxthreads/machine/generic/generic-sysd: Ditto.ep.h
8120 * libc/sys/linux/linuxthreads/machine/i386/Makefile.am: Ditto.
8121 * libc/sys/linux/linuxthreads/machine/i386/Makefile.in: Ditto.
8122 * libc/sys/linux/linuxthreads/machine/i386/aclocal.m4: Ditto.
8123 * libc/sys/linux/linuxthreads/machine/i386/bp-asm.h: Ditto.
8124 * libc/sys/linux/linuxthreads/machine/i386/clone.S: Ditto.
8125 * libc/sys/linux/linuxthreads/machine/i386/configure: Ditto.
8126 * libc/sys/linux/linuxthreads/machine/i386/configure.in: Ditto.
8127 * libc/sys/linux/linuxthreads/machine/i386/i386-sysdep.S: Ditto.
8128 * libc/sys/linux/linuxthreads/machine/i386/i386-sysdep.h: Ditto.
8129 * libc/sys/linux/linuxthreads/machine/i386/pspinlock.c: Ditto.
8130 * libc/sys/linux/linuxthreads/machine/i386/pt-machine.h: Ditto.
8131 * libc/sys/linux/linuxthreads/machine/i386/sigcontextinfo.h: Ditto.
8132 * libc/sys/linux/linuxthreads/machine/i386/stackinfo.h: Ditto.
8133 * libc/sys/linux/linuxthreads/machine/i386/sysdep.S: Ditto.
8134 * libc/sys/linux/linuxthreads/machine/i386/sysdep.h: Ditto.
8135 * libc/sys/linux/linuxthreads/machine/i386/useldt.h: Ditto.
8136 * libc/sys/linux/machine/i386/dl-machine.h: Ditto.
8137 * libc/sys/linux/net/Makefile.am: Ditto.
8138 * libc/sys/linux/net/Makefile.in: Ditto.
8139 * libc/sys/linux/net/addr2ascii.3: Ditto.
8140 * libc/sys/linux/net/addr2ascii.c: Ditto.
8141 * libc/sys/linux/net/ascii2addr.c: Ditto.
8142 * libc/sys/linux/net/base64.c: Ditto.
8143 * libc/sys/linux/net/bindresvport.c: Ditto.
8144 * libc/sys/linux/net/byteorder.3: Ditto.
8145 * libc/sys/linux/net/ether_addr.c: Ditto.
8146 * libc/sys/linux/net/ethers.3: Ditto.
8147 * libc/sys/linux/net/getaddrinfo.3: Ditto.
8148 * libc/sys/linux/net/getaddrinfo.c: Ditto.
8149 * libc/sys/linux/net/gethostbydns.c: Ditto.
8150 * libc/sys/linux/net/gethostbyht.c: Ditto.
8151 * libc/sys/linux/net/gethostbyname.3: Ditto.
8152 * libc/sys/linux/net/gethostbynis.c: Ditto.
8153 * libc/sys/linux/net/gethostnamadr.c: Ditto.
8154 * libc/sys/linux/net/getifaddrs.3: Ditto.
8155 * libc/sys/linux/net/getifaddrs.c: Ditto.
8156 * libc/sys/linux/net/getipnodebyname.3: Ditto.
8157 * libc/sys/linux/net/getnameinfo.3: Ditto.
8158 * libc/sys/linux/net/getnameinfo.c: Ditto.
8159 * libc/sys/linux/net/getnetbydns.c: Ditto.
8160 * libc/sys/linux/net/getnetbyht.c: Ditto.
8161 * libc/sys/linux/net/getnetbynis.c: Ditto.
8162 * libc/sys/linux/net/getnetent.3: Ditto.
8163 * libc/sys/linux/net/getnetnamadr.c: Ditto.
8164 * libc/sys/linux/net/getproto.c: Ditto.
8165 * libc/sys/linux/net/getprotoent.3: Ditto.
8166 * libc/sys/linux/net/getprotoent.c: Ditto.
8167 * libc/sys/linux/net/getprotoname.c: Ditto.
8168 * libc/sys/linux/net/getservbyname.c: Ditto.
8169 * libc/sys/linux/net/getservbyport.c: Ditto.
8170 * libc/sys/linux/net/getservent.3: Ditto.
8171 * libc/sys/linux/net/getservent.c: Ditto.
8172 * libc/sys/linux/net/herror.c: Ditto.
8173 * libc/sys/linux/net/hesiod.3: Ditto.
8174 * libc/sys/linux/net/hesiod.c: Ditto.
8175 * libc/sys/linux/net/if_indextoname.3: Ditto.
8176 * libc/sys/linux/net/ifname.c: Ditto.
8177 * libc/sys/linux/net/inet.3: Ditto.
8178 * libc/sys/linux/net/inet6_option_s: Ditto.pace.3
8179 * libc/sys/linux/net/inet6_rthdr_space.3: Ditto.
8180 * libc/sys/linux/net/inet_addr.c: Ditto.
8181 * libc/sys/linux/net/inet_lnaof.c: Ditto.
8182 * libc/sys/linux/net/inet_makeaddr.c: Ditto.
8183 * libc/sys/linux/net/inet_net.3: Ditto.
8184 * libc/sys/linux/net/inet_net_ntop.c: Ditto.
8185 * libc/sys/linux/net/inet_net_pton.c: Ditto.
8186 * libc/sys/linux/net/inet_neta.c: Ditto.
8187 * libc/sys/linux/net/inet_netof.c: Ditto.
8188 * libc/sys/linux/net/inet_network.c: Ditto.
8189 * libc/sys/linux/net/inet_ntoa.c: Ditto.
8190 * libc/sys/linux/net/inet_ntop.c: Ditto.
8191 * libc/sys/linux/net/inet_pton.c: Ditto.
8192 * libc/sys/linux/net/innetgr-stub.c: Ditto.
8193 * libc/sys/linux/net/ip6opt.c: Ditto.
8194 * libc/sys/linux/net/iso_addr.3: Ditto.
8195 * libc/sys/linux/net/iso_addr.c: Ditto.
8196 * libc/sys/linux/net/issetugid-stub.c: Ditto.
8197 * libc/sys/linux/net/linkaddr.3: Ditto.
8198 * libc/sys/linux/net/linkaddr.c: Ditto.
8199 * libc/sys/linux/net/map_v4v6.c: Ditto.
8200 * libc/sys/linux/net/name6.c: Ditto.
8201 * libc/sys/linux/net/namespace.h: Ditto.
8202 * libc/sys/linux/net/ns.3: Ditto.
8203 * libc/sys/linux/net/ns_addr.c: Ditto.
8204 * libc/sys/linux/net/ns_name.c: Ditto.
8205 * libc/sys/linux/net/ns_netint.c: Ditto.
8206 * libc/sys/linux/net/ns_ntoa.c: Ditto.
8207 * libc/sys/linux/net/ns_parse.c: Ditto.
8208 * libc/sys/linux/net/ns_print.c: Ditto.
8209 * libc/sys/linux/net/ns_ttl.c: Ditto.
8210 * libc/sys/linux/net/nsap_addr.c: Ditto.
8211 * libc/sys/linux/net/nsdispatch.3: Ditto.
8212 * libc/sys/linux/net/nsdispatch.c: Ditto.
8213 * libc/sys/linux/net/nslexer.c: Ditto.
8214 * libc/sys/linux/net/nslexer.l: Ditto.
8215 * libc/sys/linux/net/nsparser.c: Ditto.
8216 * libc/sys/linux/net/nsparser.h: Ditto.
8217 * libc/sys/linux/net/nsparser.y: Ditto.
8218 * libc/sys/linux/net/rcmd.3: Ditto.
8219 * libc/sys/linux/net/rcmd.c: Ditto.
8220 * libc/sys/linux/net/rcmdsh.3: Ditto.
8221 * libc/sys/linux/net/rcmdsh.c: Ditto.
8222 * libc/sys/linux/net/recv.c: Ditto.
8223 * libc/sys/linux/net/res_comp.c: Ditto.
8224 * libc/sys/linux/net/res_config.h: Ditto.
8225 * libc/sys/linux/net/res_data.c: Ditto.
8226 * libc/sys/linux/net/res_debug.c: Ditto.
8227 * libc/sys/linux/net/res_init.c: Ditto.
8228 * libc/sys/linux/net/res_mkquery.c: Ditto.
8229 * libc/sys/linux/net/res_mkupdate.c: Ditto.
8230 * libc/sys/linux/net/res_query.c: Ditto.
8231 * libc/sys/linux/net/res_send.c: Ditto.
8232 * libc/sys/linux/net/res_update.c: Ditto.
8233 * libc/sys/linux/net/resolver.3: Ditto.
8234 * libc/sys/linux/net/rthdr.c: Ditto.
8235 * libc/sys/linux/net/send.c: Ditto.
8236 * libc/sys/linux/net/un-namespace.h: Ditto.
8237 * libc/sys/linux/net/vars.c: Ditto.
8238 * libc/sys/linux/stdlib/COPYRIGHT: Ditto.
8239 * libc/sys/linux/stdlib/Makefile.am: Ditto.
8240 * libc/sys/linux/stdlib/Makefile.in: Ditto.
8241 * libc/sys/linux/stdlib/cclass.h: Ditto.
8242 * libc/sys/linux/stdlib/cname.h: Ditto.
8243 * libc/sys/linux/stdlib/collate.c: Ditto.
8244 * libc/sys/linux/stdlib/collate.h: Ditto.
8245 * libc/sys/linux/stdlib/collcmp.c: Ditto.
8246 * libc/sys/linux/stdlib/engine.c: Ditto.
8247 * libc/sys/linux/stdlib/fnmatch.3: Ditto.
8248 * libc/sys/linux/stdlib/fnmatch.c: Ditto.
8249 * libc/sys/linux/stdlib/glob.3: Ditto.
8250 * libc/sys/linux/stdlib/glob.c: Ditto.
8251 * libc/sys/linux/stdlib/reallocf.c: Ditto.
8252 * libc/sys/linux/stdlib/regcomp.c: Ditto.
8253 * libc/sys/linux/stdlib/regerror.c: Ditto.
8254 * libc/sys/linux/stdlib/regex.3: Ditto.
8255 * libc/sys/linux/stdlib/regex2.h: Ditto.
8256 * libc/sys/linux/stdlib/regexec.c: Ditto.
8257 * libc/sys/linux/stdlib/regfree.c: Ditto.
8258 * libc/sys/linux/stdlib/utils.h: Ditto.
8259 * libc/sys/linux/stdlib/wordexp.c: Ditto.
8260 * libc/sys/linux/stdlib/wordfree.c: Ditto.
8261 * libc/sys/linux/sys/dlfcn.h: Ditto.
8262 * libc/sys/linux/sys/elfclass.h: Ditto.
8263 * libc/sys/linux/sys/event.h: Ditto.
8264 * libc/sys/linux/sys/ioccom.h: Ditto.
8265 * libc/sys/linux/sys/libc-tsd.h: Ditto.
8266 * libc/sys/linux/sys/link.h: Ditto.
8267 * libc/sys/linux/sys/lock.h: Ditto.
8268 * libc/sys/linux/sys/param.h: Ditto.
8269 * libc/sys/linux/sys/socket.h: Ditto.
8270 * libc/sys/linux/sys/sockio.h: Ditto.
8271
17c0c97d 82722003-05-28 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
82095e79 8273
17c0c97d 8274 * newlib/libc/machine/h8300/memcpy.S: Use .h8300hn and .h8300sn for
82095e79
JJ
8275 normal mode
8276 * newlib/libc/machine/h8300/memset.S: Likewise
8277 * newlib/lib/machine/h8300/reg_memcpy.S: Likewise
8278 * newlib/lib/machine/h8300/reg_memset.S: Likewise
8279 * newlib/lib/machine/h8300/setjmp.S: Likewise
8280 * newlib/lib/machine/h8300/strcmp.S: Likewise
8281 * newlib/lib/sys/h8300hms/crt0.S: Likewise
8282
8a4b4764
CV
82832003-05-13 Corinna Vinschen <corinna@vinschen.de>
8284
8285 * libc/ctype/ctype_.c: Remove checks for deprecated __CYGWIN32__.
8286 * libc/include/stdio.h: Ditto.
8287 * libc/include/sys/config.h: Ditto.
8288 * libc/stdio/mktemp.c: Ditto.
8289
837e070f
CV
82902003-05-13 Corinna Vinschen <corinna@vinschen.de>
8291
8292 * libc/locale/ldpart.c (__part_load_locale): Substitute
8293 __CYGWIN_USE_BIG_TYPES__ by __USE_INTERNAL_STAT64.
8294 * libc/search/hash.c (__hash_open): Ditto.
8295 (init_hash): Ditto.
8296 * libc/stdio/fseek.c (fseek): Ditto.
8297 * libc/stdio/makebuf.c (__smakebuf): Ditto.
8298 * libc/stdio/mktemp.c (_gettemp): Ditto.
8299
b47fcdf0
CV
83002003-05-12 Corinna Vinschen <corinna@vinschen.de>
8301
8302 * libc/include/stdio.h: Change one __CYGWIN__ to __CYGWIN32__.
8303
11e3a520
CV
83042003-05-12 Corinna Vinschen <corinna@vinschen.de>
8305
8306 * configure.host: Accomodate removing the libc/sys/cygwin dir.
8307 * libc/locale/ldpart.c (__part_load_locale): Use 64 bit stat call
8308 if __CYGWIN_USE_BIG_TYPES__ is set.
8309 * libc/search/hash.c (__hash_open): Ditto.
8310 (init_hash): Ditto.
8311 * libc/stdio/fseek.c (fseek): Ditto.
8312 * libc/stdio/makebuf.c (__smakebuf): Ditto.
8313 * libc/stdio/mktemp.c (_gettemp): Ditto.
8314 * libc/sys/cygwin/Makefile.am: Remove.
8315 * libc/sys/cygwin/Makefile.in: Remove.
8316 * libc/sys/cygwin/aclocal.m4: Remove.
8317 * libc/sys/cygwin/configure: Remove.
8318 * libc/sys/cygwin/configure.in: Remove.
8319 * libc/sys/cygwin/crt0.c: Move to winsup/cygwin directory.
8320 * libc/sys/cygwin/sys/dirent.h: Move to winsup/cygwin/include/sys
8321 directory.
8322 * libc/sys/cygwin/sys/param.h: Ditto.
8323 * libc/sys/cygwin/sys/utime.h: Ditto.
8324 * libc/sys/cygwin/sys/utmp.h: Ditto.
8325
d1b5e65b
CV
83262003-05-11 Corinna Vinschen <corinna@vinschen.de>
8327
8328 * libc/include/sys/types.h: Don't define key_t for Cygwin.
8329
ec48a953
CF
83302003-05-10 Christopher Faylor <cgf@redhat.com>
8331
8332 * libc/sys/cygwin/sys/dirent.h (struct dirent): Accommodate (slightly)
8333 64 bit inodes.
8334
a3cc5851
CV
83352003-05-09 Corinna Vinschen <corinna@vinschen.de>
8336
8337 * libc/include/sys/config.h: Remove all Cygwin specific configuration.
8338 Include cygwin/config.h instead.
8339
57ff95d3
JJ
83402003-04-16 Jeff Johnston <jjohnstn@redhat.com>
8341
8342 * newlib/libc/machine/powerpc (ato*fix*.c,strto*fix*.c): Shield
8343 all code with #ifdef __SPE__ test.
8344 * newlib/libc/machine/powerpc (simdldtoa.c, ufix64toa.c): Ditto.
8345
cfd2c7be
CF
83462003-04-15 Chris January <chris@atomice.net>
8347
8348 * newlib/libc/include/sys/unistd.h: add declaration for gethostid on
8349 Cygwin.
8350
6f48c0ae
JR
83512003-04-09 J"orn Rennecke <joern.rennecke@superh.com>
8352
8353 * libc/machine/sh/memset.S: Avoid clobbering volatile
8354 objects following a tiny to-be-set array in the same quadword.
8355
8f8d09c0
CV
83562001-04-09 Corinna Vinschen <corinna@vinschen.de>
8357
17c0c97d 8358 * libc/include/wchar.h: Add definitions for wcswidth and wcwidth.
8f8d09c0
CV
8359 * libc/string/Makefile.am: Add wcswidth.c and wcwidth.c
8360 * libc/string/Makefile.in: Regenerated.
8361 * libc/string/wcswidth.c: New file.
8362 * libc/string/wcwidth.c: New file.
8363 * libc/string/wcstrings.tex: Add wcswidth and wcwidth.
8364
40c3b2d0
JR
8365Thu Apr 3 14:01:16 2003 J"orn Rennecke <joern.rennecke@superh.com>
8366
8367 * libc/machine/sh/memset.S: Fix problem with alloco region
8368 exceeding destination region for length >= 88 bytes, start
8369 & 0x16 == 0, end & 0x1f == 18.
8370
8ae6a3dd
CV
83712001-04-03 Corinna Vinschen <corinna@vinschen.de>
8372
8373 * libc/string/wcscoll.c: Fix comment.
8374
d122b1cc
CV
83752001-04-02 Corinna Vinschen <corinna@vinschen.de>
8376
8377 * libc/include/wchar.h: Add definition for wcscoll.
8378 * libc/string/Makefile.am: Add wcscoll.c.
8379 * libc/string/Makefile.in: Regenerated.
8380 * libc/string/wcscoll.c: New file.
17c0c97d 8381 * libc/string/wcstrings.tex: Add wcscoll.
d122b1cc 8382
31ee99a4
CV
83832003-04-01 Corinna Vinschen <corinna@vinschen.de>
8384
8385 * libc/stdio/sscanf.c: Update flags description.
8386 * libc/stdio/vfscanf.c: Add CHAR flag value to denote 8 bit target
8387 type.
8388 (__svfscanf_r): Add 'hh' and 'll' handling.
8389
d78045ee
CV
83902003-04-01 Corinna Vinschen <corinna@vinschen.de>
8391
8392 * libc/sys/cygwin/sys/dirent.h (struct DIR): Change type of
8393 __d_position member to _off_t.
8394
e6bdc6c5
JJ
83952003-03-20 Jeff Johnston <jjohnstn@redhat.com>
8396
8397 * libc/stdio/vfscanf.c (__svfscanf_r): For floating point conversion,
8398 count all characters used to create number against maximum width.
8399 * libc/machine/powerpc/vfscanf.c (__svfscanf_r): Ditto.
8400
e65d559e
JJ
84012003-03-18 D.Venkatasubramanian <dvenkat@noida.hcltech.com>
8402
8403 * libc/include/sys/h8300hms/crt0.S[__SIMULATOR__]: Add commandline
8404 support.
8405 * configure.host (h8300*-*-*): Added comment regarding -D__SIMULATOR__
8406 flag to support simulator only extensions.
8407
6b3bb52b
JJ
84082003-03-17 Bob Cassels <bcassels@abinitio.com>
8409
ba3ccd63 8410 * libc/string/wcschr.c: (wcschr): Look for character first,
6b3bb52b
JJ
8411 then for end of string, so you can do wcschr(x, '\0').
8412
17c0c97d 84132003-03-10 Corinna Vinschen <corinna@vinschen.de>
2a940c1a
CV
8414
8415 * libc/include/stdio.h: Declare fgetpos, fsetpos, fseeko and ftello
8416 with internal (_fpos_t and _off_t) datatypes when compiling newlib.
8417 * libc/include/sys/unistd.h: Declare _lseek using _off_t.
8418 * libc/reent/lseekr.c (_lseek_r): Use _off_t instead of off_t.
8419 * libc/stdio/fseeko.c (fseeko): Ditto.
8420 * libc/stdio/ftello.c (ftello): Ditto.
8421 * libc/stdio/stdio.c (__swrite): Ditto.
8422 (__sseek): Ditto.
8423 * libc/stdio/fgetpos.c (fgetpos): Use _fpos_t instead of fpos_t.
8424 * libc/stdio/fseek.c (fseek): Ditto.
8425 * libc/stdio/fsetpos.c (fsetpos): Ditto.
8426 * libc/stdio/ftell.c (ftell): Ditto.
8427 * libc/stdio/local.h: Declare __sseek using _off_t.
8428
150c2818
CV
84292003-03-09 Corinna Vinschen <corinna@vinschen.de>
8430
8431 * libc/reent/lseekr.c (lseek_r): Use _off_t instead of off_t.
8432
2c440f9c
CV
84332003-03-09 Corinna Vinschen <corinna@vinschen.de>
8434
8435 * libc/include/sys/config.h: Define __CYGWIN_USE_BIG_TYPES__ for
8436 Cygwin.
8437
f882fd15
CV
84382003-03-09 Corinna Vinschen <corinna@vinschen.de>
8439
8440 * libc/include/pwd.h: Add guards to avoid type clashes when compiling
8441 Cygwin.
8442 * libc/include/sys/stat.h: Ditto.
8443 * libc/include/sys/unistd.h: Ditto.
8444 * libc/sys/cygwin/sys/dirent.h: Ditto.
8445
01d61543
CF
84462003-03-07 Christopher Faylor <cgf@redhat.com>
8447
8448 * libc/include/sys/unistd.h: Guard getopt.h call to force only
8449 declaration of getopt and avoid getopt_long declaration.
8450 * libc/sys/cygwin/include/unistd.h: Remove.
8451
5582abd2
CV
84522003-03-07 Corinna Vinschen <corinna@vinschen.de>
8453
8454 * configure.host: Define stdio64_dir for Cygwin.
8455 * libc/include/stdio.h: Change definition of fpos_t to fulfill
8456 Cygwin 64bit file access requirements.
8457 Drop definition of f*64() functions when compiled for Cygwin.
8458 * libc/include/sys/config.h: Define __LARGE64_FILES for Cygwin.
8459 * libc/reent/lseek64r.c: Use _off64_t instead of off64_t.
8460 * libc/stdio64/local64.h: Use _fpos64_t instead of fpos64_t.
8461
641da1eb
JJ
84622003-03-07 Jeff Johnston <jjohnstn@redhat.com>
8463
8464 * libc/include/sys/reent.h: Remove extraneous _sig_func
8465 declaration.
8466
84672003-02-25 D.Venkatasubramanian <dvenkat@noida.hcltech.com>
41a639de
JJ
8468
8469 * libc/sys/h8300hms/Makefile.am: Add support for new files.
8470 * libc/sys/h8300hms/Makefile.in: Regenerated.
8471 * libc/sys/h8300hms/close.S: New file.
8472 * libc/sys/h8300hms/fstat.S: Ditto.
8473 * libc/sys/h8300hms/lseek.S: Ditto.
8474 * libc/sys/h8300hms/open.S: Ditto.
8475 * libc/sys/h8300hms/stat.S: Ditto.
8476 * libc/sys/h8300hms/read.S: New file to replace read.c.
8477 * libc/sys/h8300hms/read.c: Removed.
8478 * libc/sys/h8300hms/syscalls.c: Removed functions _open,
8479 _lseek, _close, _stat, _fstat.
8480 * libc/sys/h8300hms/write.S: New file to replace write.c.
8481 * libc/sys/h8300hms/write.c: Removed.
8482
bac50d6b
NC
84832003-02-20 Nick Clifton <nickc@redhat.com>
8484
8485 * Add support for Cirrus Maverick ARM co-processor:
17c0c97d 8486
bac50d6b
NC
8487 2000-09-13 Aldy Hernandez <aldyh@redhat.com>
8488
8489 * libc/include/machine/ieeefp.h: Set IEEE_BIG_ENDIAN or
8490 IEEE_LITTLE_ENDIAN depending on endian mode (cirrus).
8491
8492 2000-08-11 Aldy Hernandez <aldyh@redhat.com>
8493
8494 * configure.host: set sys_dir, syscall_dir, and
8495 newlib_cflags for ep9312 host.
8496
ba3ccd63 8497 * configure.host: Restore alpha sorting of entries in case
bac50d6b
NC
8498 statements.
8499
12ee7037
JJ
85002003-02-19 Jeff Johnston <jjohnstn@redhat.com>
8501
ba3ccd63 8502 * libc/stdlib/mallocr.c (unlink): Revert 02/18 fix.
12ee7037 8503
1e810ba0
JJ
85042003-02-18 Christian Groessler <chris@groessler.org>
8505
8506 * libc/machine/z8k/setjmp.S (_setjmp / _longjmp): Fix to
8507 support z8001 segmented mode.
8508
b1ca765e
JJ
85092003-02-18 Earnie Boyd <earnie@users.sf.net>
8510
8511 * libc/stdlib/mallocr.c (unlink): Don't assign a value to a pointer
8512 with a NULL value.
8513
51a46b54
CF
85142003-02-10 Christopher Faylor <cgf@redhat.com>
8515
8516 * libc/include/sys/types.h: Don't define __MS_types__ for Cygwin.
8517 Don't define some types under cygwin.
8518
313f1349
JJ
85192003-02-07 Jeff Johnston <jjohnstn@redhat.com>
8520
17c0c97d 8521 * acinclude.m4 (--disable-newlib-supplied-syscalls): New configuration
313f1349
JJ
8522 option to allow disabling of syscalls being supplied in newlib.
8523 * aclocal.m4: Regenerated.
8524 * configure: Ditto.
8525 * configure.host: Add support of new configuration option and add
8526 -D__NO_SYSCALLS__ if newlib supplied syscalls are disabled.
8527 * doc/aclocal.m4: Regenerated.
8528 * doc/configure: Ditto.
8529 * libc/*aclocal.m4: Ditto.
8530 * libc/*configure: Ditto.
8531 * libm/*aclocal.m4: Ditto.
8532 * libm/*configure: Ditto.
8533 * libc/sys/arm/Makefile.am: Don't build syscalls.o if new option
8534 is disabled.
8535 * libc/sys/arm/Makefile.in: Regenerated.
8536
5017a3da
JJ
85372003-02-05 Jonathan Larmour <jifl@eCosCentric.com>
8538
8539 * libc/stdio/vsprintf.c (vsprintf, _vsprintf_r): Set _file fd to
8540 -1 to be sure it cannot later match a valid file fd causing
8541 isatty() to return 1.
8542 * libc/stdio/asprintf.c (asprintf, _asprintf_r): Ditto.
8543 * libc/stdio/sprintf.c (sprintf, _sprintf_r): Ditto.
8544 * libc/stdio/vasprintf.c (vasprintf, _vasprintf_r): Ditto.
8545
ad36f7d1
JJ
85462003-02-03 Jeff Johnston <jjohnstn@redhat.com>
8547
8548 * libc/stdlib/ldtoa.c (_ldtoa_r): Fix code to allocate the format
17c0c97d
EB
8549 buffer based on the precision, after we have processed the input value
8550 in a local buffer and know its relative magnitude.
ad36f7d1 8551
a74181ee
JJ
85522003-01-31 Michael Snyder <msnyder@redhat.com>
8553
8554 * libc/sys/h8300hms/_exit.c (_exit, __exit): Slip a magic cookie
8555 into registers r1 and r2, so that the simulator can distinguish
8556 this trap from a breakpoint trap. Copied from libgloss.
8557
b85498d4
JJ
85582003-01-31 Michael Snyder <msnyder@redhat.com>
8559
8560 * libc/sys/h8300hms/crt0.S (_start): Change local label
8561 from .loop to .Loop, so that ld and gdb will ignore it.
8562
4700b829
JJ
85632003-01-29 Jason Tishler <jason@tishler.net>
8564
8565 * libc/include/time.h: Declare nanosleep() under Cygwin.
8566
0127ae40
NC
85672003-01-24 Nick Clifton <nickc@redhat.com>
8568
8569 * Add sh2e support:
8570
8571 2002-04-02 Alexandre Oliva <aoliva@redhat.com>
8572
8573 * libc/machine/sh/asm.h: Added __SH2E__ next to __SH3E__.
8574 * libc/machine/sh/setjmp.S: Likewise.
8575 * libc/include/machine/ieeefp.h: Likewise.
8576
8bbcd9a1
CV
85772003-01-24 Corinna Vinschen <corinna@vinschen.de>
8578
8579 * libc/include/sys/unistd.h: Add setregid and setreuid declarations
8580 for Cygwin.
8581
b8838e6f 85822003-01-21 Anita Kulkarni <anitak@kpit.com>
17c0c97d 8583
b8838e6f
JJ
8584 * libc/time/difftime.c : Typecast the result to double.
8585
f9e41155
CF
85862003-01-20 Christopher Faylor <cgf@redhat.com>
8587
8588 * libc/include/sys/unistd.h: Add rresvport declaration for cygwin.
8589
6b5a7988
NC
85902003-01-18 Nick Clifton <nickc@redhat.com>
8591
8592 * libc/include/machine/ieeefp.h : Define __IEEE_BIG_ENDIAN,
8593 __SMALL_BITFIELDS and _DOUBLE_IS_32BITS for IP2K.
8594
c3e92877
JJ
85952003-01-16 Joel Sherrill <joel@OARcorp.com>
8596
ba3ccd63
EB
8597 * libc/sys/rtems/include/limits.h, libc/sys/rtems/sys/param.h,
8598 libc/sys/rtems/sys/syslimits.h: Update to be in sync with what
8599 constants are defined in each file in the shared versions in
8600 libc/include.
8601 * libc/sys/rtems/crt0.c: Define extra symbols on SH and HP-PA to
8602 autoconf can link programs.
8603 * libc/include/machine/types.h: Explicitly specify signed on
8604 intXX_t types to ensure they are signed.
c3e92877 8605
84510217
CF
86062003-01-14 Christopher Faylor <cgf@redhat.com>
8607
8608 * libc/time/strftime.c (strftime): Add '%h' and '%l, %k' GNU
8609 extensions.
8610
b3934ab3
RS
86112003-01-08 Richard Sandiford <rsandifo@redhat.com>
8612
8613 * configure.host (mips64vr-elf, mips64vrel-elf): New config.
8614
be9c60e5
JJ
86152003-01-07 Charles Wilson <cwilson@ece.gatech.edu>
8616
8617 * libc/stdio/sprintf.c: fix typo
8618 * libc/stdio/vfprintf.c: fix typo
8619
d4c3a750
JJ
86202003-01-07 Jeff Johnston <jjohnstn@redhat.com>
8621
8622 * configure.host: Support long double I/O for x86-linux.
8623 * libc/stdlib/ldtoa.c (_ldtoa_r): Fix code to allocate a buffer
8624 large enough to hold formatted result.
8625 * libc/machine/powerpc/simdldtoa.c (_simdldtoa_r): Ditto.
8626
b2294aaa
JJ
86272003-01-06 Charles Wilson <cwilson@ece.gatech.edu>
8628
8629 * Makefile.am: Add vasprintf.
8630 * Makefile.in: Regenerated.
8631
ea5e5daf
JJ
86322003-01-06 Charles Wilson <cwilson@ece.gatech.edu>
8633
8634 * asprintf.c (_asprintf_r): insure both declarations
8635 are the same.
8636
5c581eca
CF
86372002-12-28 Christopher Faylor <cgf@redhat.com>
8638
8639 * libc/include/sys/unistd.h: Under cygwin, just include getopt.h rather
8640 than defining getopt directly.
8641
60b0838f
JJ
86422002-12-20 Jeff Johnston <jjohnstn@redhat.com>
8643
8644 * NEWS: Update with 1.11.0 info.
8645 * README: Ditto.
8646 * acinclude.m4: Change version number to 1.11.0.
8647 * aclocal.m4: Regenerated.
8648 * configure: Ditto.
8649 * doc/aclocal.m4: Ditto.
8650 * doc/configure: Ditto.
8651 * libc/*/aclocal.m4: Ditto.
8652 * libc/*/configure: Ditto.
8653 * libc/libc.texinfo: Ditto.
8654 * libm/*/aclocal.m4: Ditto.
8655 * libm/*/configure: Ditto.
8656 * libm/libm.texinfo: Ditto.
8657 * libc/sys/linux/shared.ld: Add VERS_1.11.
8658
10501d57
JJ
86592002-12-20 Jeff Johnston <jjohnstn@redhat.com>
8660
8661 * libc/machine/i386/f_atan2.S: Change copyright from Cygnus
8662 Solutions to Red Hat Inc.
8663 * libc/machine/i386/f_atan2f.S: Ditto.
8664 * libc/machine/i386/f_exp.c: Ditto.
8665 * libc/machine/i386/f_expf.c: Ditto.
8666 * libc/machine/i386/f_frexp.S: Ditto.
8667 * libc/machine/i386/f_frexpf.S: Ditto.
8668 * libc/machine/i386/f_ldexp.S: Ditto.
8669 * libc/machine/i386/f_ldexpf.S: Ditto.
8670 * libc/machine/i386/f_log.S: Ditto.
8671 * libc/machine/i386/f_log10.S: Ditto.
8672 * libc/machine/i386/f_log10f.S: Ditto.
8673 * libc/machine/i386/f_logf.S: Ditto.
8674 * libc/machine/i386/f_pow.c: Ditto.
8675 * libc/machine/i386/f_powf.c: Ditto.
8676 * libc/machine/i386/f_tan.S: Ditto.
8677 * libc/machine/i386/f_tanf.S: Ditto.
8678 * libc/machine/i386/memchr.S: Ditto.
8679 * libc/machine/i386/memcmp.S: Ditto.
8680 * libc/machine/i386/memcpy.S: Ditto.
8681 * libc/machine/i386/memmove.S: Ditto.
8682 * libc/machine/i386/memset.S: Ditto.
8683 * libc/machine/i386/strchr.S: Ditto.
8684 * libc/machine/i386/strlen.S: Ditto.
8685 * libm/machine/i386/f_atan2.S: Ditto.
8686 * libm/machine/i386/f_atan2f.S: Ditto.
8687 * libm/machine/i386/f_exp.c: Ditto.
8688 * libm/machine/i386/f_expf.c: Ditto.
8689 * libm/machine/i386/f_frexp.S: Ditto.
8690 * libm/machine/i386/f_frexpf.S: Ditto.
8691 * libm/machine/i386/f_ldexp.S: Ditto.
8692 * libm/machine/i386/f_ldexpf.S: Ditto.
8693 * libm/machine/i386/f_log.S: Ditto.
8694 * libm/machine/i386/f_log10.S: Ditto.
8695 * libm/machine/i386/f_log10f.S: Ditto.
8696 * libm/machine/i386/f_logf.S: Ditto.
8697 * libm/machine/i386/f_pow.c: Ditto.
8698 * libm/machine/i386/f_powf.c: Ditto.
8699 * libm/machine/i386/f_tan.S: Ditto.
8700 * libm/machine/i386/f_tanf.S: Ditto.
8701
9b3f0d16
JJ
87022002-12-20 Jeff Johnston <jjohnstn@redhat.com>
8703
8704 * libc/stdlib/environ.c: Update license to Red Hat.
8705 * libc/machine/hppa/setjmp.S: Ditto.
8706 * libm/test/Makefile.in: Ditto.
8707
d693ad84
JJ
87082002-12-19 Jeff Johnston <jjohnstn@redhat.com>
8709
8710 * configure.host: Remove references to go32.
8711 * libc/sys/go32/*: Removed.
8712
7da92d15
JJ
87132002-12-16 Kazu Hirata <kazu@cs.umass.edu>
8714
8715 * libc/include/sys/config.h: Change setting of INT_MAX
8716 and UINT_MAX, to use __INT_MAX__ for __H8300__, __H8300H__,
8717 __H8300S__. Also consolidate flag settings for these
8718 platforms.
8719
ea01c7f5
JJ
87202002-12-10 Joel Sherrill <joel@OARcorp.com>
8721
8722 * libc/include/machine/setjmp.h: Make sure _JBLEN is defined
8723 for i386-rtems targets.
8724
c049dd5a
JJ
87252002-12-06 Jeff Johnston <jjohnstn@redhat.com>
8726
8727 * libc/include/stdlib.h (strtof): New prototype (from C99).
8728 (strtodf): Changed from prototype to macro which redefines
8729 to strtof.
8730 * libc/stdlib/atof.c: Change documentation to refer to strtof
8731 instead of strtodf.
8732 * libc/stdlib/atoff.c (atoff): Change to call strtof instead of
8733 strtodf.
8734 * libc/stdlib/strtod.c (strtodf): Renamed to strtof.
8735 (strtof): New function.
8736 * libm/test/convert.c (test_strtodf): Renamed to test_strtof which
8737 calls strtof.
8738
46a402e0
CF
87392002-11-27 Christopher Faylor <cgf@redhat.com>
8740
8741 * libc/string/memset.c (memset): Fix comment.
8742
b3cc01b0
CF
87432002-11-26 Christopher Faylor <cgf@redhat.com>
8744
8745 * libc/string/memset.c (memset): Move initialization of 'd' earlier in
8746 function.
8747
d90f3dc1
CF
87482002-11-25 Christopher Faylor <cgf@redhat.com>
8749
8750 * libc/string/memset.c (memset): Minor optimization: Use new 'd'
8751 variable, introduced below, everywhere.
8752
f24585c6
KH
87532002-11-25 Kazu Hirata <kazu@cs.umass.edu>
8754
8755 * libc/string/memset.c (memset): Make it safe even if
8756 sizeof (int) = 2.
8757
2955fd76
JJ
87582002-11-22 Joe Buehler <jbuehler@hekimian.com>
8759
8760 * configure.in: Change check for libc/include in ${CC} to
8761 use an intermediate value so as to work with different shells.
8762 * configure: Regenerated.
8763 * Makefile.in: Ditto.
8764
40ce7368
JJ
87652002-11-22 Vijay L. Khuspe <vijayk1@kpit.com>
8766
8767 * libc/sys/h8300hms/read.c: Add support for normal mode
8768 architecture.
8769
505746ad
JJ
87702002-11-20 Ryo Tsuruta <ryo@kitanet.ne.jp>
8771
8772 * libc/machine/h8300/setjmp.S (setjmp, longjmp): Combine common
8773 code for __H8300H__ and __H8300S__. Also return 32-bit return code
8774 when -mint32 is used.
8775
28ecb2f5
NC
87762002-11-18 Nick Clifton <nickc@redhat.com>
8777
8778 * libc/sys/arm/crt0.S: Add NULL to end of argv array.
8779
665b994e
JJ
87802002-11-14 Jeff Johnston <jjohnstn@redhat.com>
8781
ba3ccd63
EB
8782 * testsuite/lib/passfail.exp (newlib_pass_fail): Changed to
8783 only issue one pass/fail message for a compile/link/execute.
8784 * testsuite/newlib.elix/elix.exp: New file.
8785 * testsuite/newlib.elix/tmmap.c: Ditto.
665b994e 8786
e91ec2e3
CF
87872002-11-06 Christopher Faylor <cgf@redhat.com>
8788
8789 * libc/stdlib/malign.c: Don't compile if MALLOC_PROVIDED.
8790 * libc/stdlib/mlock.c: Ditto.
8791 * libc/stdlib/msize.c: Ditto.
8792 * libc/stdlib/msize.c: Ditto.
8793 * libc/stdlib/mtrim.c: Ditto.
8794 * libc/stdlib/valloc.c: Ditto.
8795
944772c7
JJ
87962002-11-12 Jeff Johnston <jjohnstn@redhat.com>
8797
ba3ccd63
EB
8798 * libc/stdlib/ldtoa.c (e64toe): When checking the exponent
8799 for inf/nan, make sure that the check ignores the sign bit.
944772c7 8800
dd7ee147
JJ
88012002-11-07 Joel Sherrill <joel@OARcorp.com>
8802
ba3ccd63
EB
8803 * libc/sys/rtems/machine: New directory.
8804 * libc/sys/rtems/machine/limits.h, libc/sys/rtems/machine/param.h,
8805 libc/sys/rtems/sys/param.h, libc/sys/rtems/sys/syslimits.h,
8806 libc/sys/rtems/sys/utime.h: New files added to make *-rtems newlib
8807 targets more BSD like when installed without requiring files to
8808 be overwritten at install point when RTEMS itself is installed.
8809 * Makefile.am: Pick up system dependent machine .h files such as
8810 might be found on a BSD-ish system.
8811 * Makefile.in: Regenerate.
8812 * libc/include/machine/types.h: When on an RTEMS target, define a
8813 few BSD flavor types.
dd7ee147
JJ
8814
88152002-11-06 Sergey Okhapkin <sos@prospect.com.ru>
503430d8
CF
8816
8817 * include/utmp.h: Define WTMP_FILE. Define and use UT_IDLEN.
8818
18cd62b7
JJ
88192002-11-06 Kazuhiro Fujieda <fujieda@jaist.ac.jp>
8820
ba3ccd63
EB
8821 * libc/include/wchar.h: Use _{BEGIN,END}_STD_C instead of extern "C".
8822 * libc/include/wctype.h: Ditto.
18cd62b7 8823
d2888812
JJ
88242002-11-04 Jeff Johnston <jjohnstn@redhat.com>
8825
ba3ccd63
EB
8826 * libc/include/wchar.h: Add extern "C" specifier if C++.
8827 * libc/include/wctype.h: Ditto.
d2888812 8828
978ea3cf
JJ
88292002-10-18 Jeff Johnston <jjohnstn@redhat.com>
8830
ba3ccd63
EB
8831 * testsuite/newlib.wctype/tiswctype.c: New test case.
8832 * testsuite/newlib.wctype/twctrans.c: Ditto.
978ea3cf 8833
a42cf80a
JJ
88342002-10-18 Jeff Johnston <jjohnstn@redhat.com>
8835
ba3ccd63
EB
8836 * libc/sys/linux/machine/i386/include/endian.h: New file.
8837 * libc/sys/linux/machine/i386/include/param.h: Ditto.
a42cf80a 8838
c9ccb1f2
JJ
88392002-10-18 Jeff Johnston <jjohnstn@redhat.com>
8840
8841 * libm/machine/i386/aclocal.m4: Regenerated.
8842 * libm/machine/i386/configure: Ditto.
8843
94c5b430
JJ
88442002-10-18 Jeff Johnston <jjohnstn@redhat.com>
8845
ba3ccd63
EB
8846 * testsuite/include/check.h: New header file to use with
8847 test cases.
8848 * testsuite/lib/newlib.exp: Add testsuite/include directory
8849 to list of header files to use.
8850 * testsuite/newlib.wctype/twctype.c: New test case for iswctype fns.
8851 * testsuite/newlib.wctype/wctype.exp: New file.
94c5b430 8852
ccdae543
RS
88532002-10-11 Graham Stott <graham.stott@btinternet.com>
8854 Richard Sandiford <rsandifo@redhat.com>
f770cf44
RS
8855
8856 * libc/include/sys/config.h (SIZE_T_SMALLER_THAN_LONG): Undefine.
8857 * libc/stdlib/mallocr.c (long_sub_size_t): Define in a way that
8858 doesn't require the SIZE_T_SMALLER_THAN_LONG macro.
8859
73972116
JS
88602002-10-07 Joel Sherrill <joel@OARcorp.com>
8861
8862 * libc/sys/rtems/crt0.c: Add even more symbols so gcc() can link
8863 dummy programs.
8864
89e3fcba
JS
88652002-10-07 Joel Sherrill <joel@OARcorp.com>
8866
8867 * libc/include/pthread.h: Define PTHREAD_CANCELED.
8868
54ec52e4
JS
88692002-10-07 Joel Sherrill <joel@OARcorp.com>
8870
8871 * libc/machine/hppa/DEFS.h, libc/machine/hppa/pcc_prefix.s,
8872 libc/machine/hppa/setjmp.S, libc/machine/hppa/DEFS.h: Make this
8873 compile with current GNU tools.
8874
d389acba
JJ
88752002-10-07 Jeff Johnston <jjohnstn@redhat.com>
8876
8877 * Makefile.am: Add EXTRA_DIRS to allow future dependencies on
8878 the build library.
8879 * configure.in: Ditto.
8880 * Makefile.in: Regenerated.
8881 * configure: Ditto.
8882 * libc/sys/linux/Makefile.am: Add EXTRA_SUBDIRS and EXTRA_SUBLIBS
8883 for specifying configured libraries/directories.
8884 * libc/sys/linux/configure.in: Ditto.
8885 * libc/sys/linux/Makefile.in: Regenerated.
8886 * libc/sys/linux/configure: Ditto.
8887
af5a221f
JJ
88882002-10-03 Jeff Johnston <jjohnstn@redhat.com>
8889
8890 * libc/include/reent.h: Update documentation at start of file.
8891
59a758bd
JW
88922002-09-27 Jim Wilson <wilson@redhat.com>
8893
8894 * libc/sys/sysnecv850/crt0.S (start): Delete v850 code for initializing
8895 the ctbp register.
8896
1ed3c86d
JJ
88972002-09-27 Jeff Johnston <jjohnstn@redhat.com>
8898
8899 * libc/ctype/jp2uc.c: Change to use multiple arrays in jp2uc.h.
8900 Also convert to EUCJP before using arrays. For values not in
8901 the conversion arrays, return WEOF.
8902 * libc/ctype/jp2uc.h: Change from one array to a number of
8903 arrays to account for the fact that the originating table
8904 is not contiguous for the input values since some are invalid.
8905
6e1dfd2d
JJ
89062002-09-24 Jeff Johnston <jjohnstn@redhat.com>
8907
8908 * libc/time/ctime.c: Fix prototype documentation.
8909
06f1353a
CV
89102002-09-24 Corinna Vinschen <corinna@vinschen.de>
8911
8912 * libc/include/sys/errno.h: Add EOVERFLOW.
8913
1e0e64c9
JJ
89142002-09-20 Jeff Johnston <jjohnstn@redhat.com>
8915
8916 * libc/include/wctype.h: New file.
8917
1525d127
JJ
89182002-09-20 Jeff Johnston <jjohnstn@redhat.com>
8919
ba3ccd63
EB
8920 * libc/ctype/Makefile.am: Add new files.
8921 * libc/ctype/Makefile.in: Regenerated.
8922 * libc/ctype/ctype.tex: Add new iswxxxx, towxxxx, wctype,
8923 and wctrans functions to documentation index.
8924 * libc/ctype/iswalnum.c: New file.
8925 * libc/ctype/iswalpha.c: Ditto.
8926 * libc/ctype/iswblank.c: Ditto.
8927 * libc/ctype/iswcntrl.c: Ditto.
8928 * libc/ctype/iswctype.c: Ditto.
8929 * libc/ctype/iswdigit.c: Ditto.
8930 * libc/ctype/iswgraph.c: Ditto.
8931 * libc/ctype/iswlower.c: Ditto.
8932 * libc/ctype/iswprint.c: Ditto.
8933 * libc/ctype/iswpunct.c: Ditto.
8934 * libc/ctype/iswspace.c: Ditto.
8935 * libc/ctype/iswupper.c: Ditto.
8936 * libc/ctype/iswxdigit.c: Ditto.
8937 * libc/ctype/jp2uc.c: Ditto.
8938 * libc/ctype/jp2uc.h: Ditto.
8939 * libc/ctype/local.h: Ditto.
8940 * libc/ctype/towctrans.c: Ditto.
8941 * libc/ctype/towlower.c: Ditto.
8942 * libc/ctype/towupper.c: Ditto.
8943 * libc/ctype/utf8alpha.h: Ditto.
8944 * libc/ctype/utf8print.h: Ditto.
8945 * libc/ctype/utf8punct.h: Ditto.
8946 * libc/ctype/wctrans.c: Ditto.
8947 * libc/ctype/wctype.c: Ditto.
8948 * libc/locale/locale.c (__lc_ctype): New external array to
8949 replace static lc_ctype array.
8950 * libc/stdlib/mbtowc_r.c: Use __lc_ctype to check current lc_ctype
8951 rather than reentrancy structure's _current_locale field.
8952 * libc/stdlib/wctomb_r.c: Ditto.
1525d127 8953
da25e61f
JJ
89542002-09-20 Jeff Johnston <jjohnstn@redhat.com>
8955
8956 * configure.host: Minor comment and formatting changes.
8957 * libc/Makefile.am: Add libc_la_DEPENDENCIES.
8958 * libc/Makefile.in: Regenerated.
8959 * libc/include/sys/config.h: Minor format change.
8960
5b9ee539
JJ
89612002-09-19 Jeff Johnston <jjohnstn@redhat.com>
8962
8963 * libc/syscalls/sysfcntl.c (fcntl): Fix typo in preprocessor
8964 statement comment.
8965
50558bf3
JJ
89662002-09-19 Jeff Johnston <jjohnstn@redhat.com>
8967
8968 * libc/posix/opendir.c (opendir): Change code to check
8969 for HAVE_FCNTL before calling fcntl.
8970 * libc/search/hash.c (hash_open): Ditto.
8971 * libc/search/hash_page.c (open_tmp): Ditto.
8972 * libc/reent/Makefile.am: Add fcntlr.c.
8973 * libc/reent/Makefile.in: Regenerated.
8974 * libc/reent/fcntlr.c: New file.
8975 * libc/stdio/fdopen.c (_fdopen_r): Change to call _fcntl_r
8976 instead of _fcntl when HAVE_FCNTL flag is set.
8977 * libc/syscalls/sysfcntl.c (fcntl): Check for HAVE_FCNTL flag
8978 to see if _fcntl or _fcntl_r should be called. If flag is not
8979 set, default to ENOSYS stub.
8980
9211a1ad
JJ
89812002-09-16 Jeff Johnston <jjohnstn@redhat.com>
8982
8983 * libc/include/wchar.h (mbstate_t): Change protective flag to
8984 be _MBSTATE_T.
8985 * libc/include/sys/_types.h (_mbstate_t): Remove protective flag.
8986 [__CYGWIN__]: Remove special code that defines mbstate_t and WEOF
8987 for Cygwin.
8988 * libc/sys/linux/sys/_types.h (_mbstate_t): Remove protective flag.
8989
a8615092
JJ
89902002-09-11 Jeff Johnston <jjohnstn@redhat.com>
8991
ba3ccd63
EB
8992 * acinclude.m4 (enable-newlib-mb): Change check to
8993 default newlib_mb variable to empty string rather than "no".
8994 * configure.host: Remove hard-coding of -DMB_CAPABLE for
8995 x86-linux and Cygwin. Add code to check for newlib_mb
8996 being unset in which case set to "yes" for x86-linux and
8997 Cygwin. Change check for newlib_mb being "yes" to allow
8998 for an empty string.
8999 * configure.in (_MB_LEN_MAX): New AC_DEFINE.
9000 * newlib.hin (_MB_LEN_MAX): New define to configure.
9001 * aclocal.m4: Regenerated.
9002 * configure: Ditto.
9003 * libc/include/limits.h: New file.
9004 * libc/sys/linux/include/limits.h: Ditto.
9005 * doc/aclocal.m4 doc/configure libc/aclocal.m4
9006 libc/configure libc/machine/aclocal.m4
9007 libc/machine/configure libc/machine/a29k/aclocal.m4
9008 libc/machine/a29k/configure libc/machine/arm/aclocal.m4
9009 libc/machine/arm/configure libc/machine/d10v/aclocal.m4
9010 libc/machine/d10v/configure libc/machine/d30v/aclocal.m4
9011 libc/machine/d30v/configure libc/machine/fr30/aclocal.m4
9012 libc/machine/fr30/configure libc/machine/frv/aclocal.m4
9013 libc/machine/frv/configure libc/machine/h8300/aclocal.m4
9014 libc/machine/h8300/configure libc/machine/h8500/aclocal.m4
9015 libc/machine/h8500/configure libc/machine/hppa/aclocal.m4
9016 libc/machine/hppa/configure libc/machine/i386/aclocal.m4
9017 libc/machine/i386/configure libc/machine/i960/aclocal.m4
9018 libc/machine/i960/configure libc/machine/m32r/aclocal.m4
9019 libc/machine/m32r/configure libc/machine/m68hc11/aclocal.m4
9020 libc/machine/m68hc11/configure libc/machine/m68k/aclocal.m4
9021 libc/machine/m68k/configure libc/machine/m88k/aclocal.m4
9022 libc/machine/m88k/configure libc/machine/mips/aclocal.m4
9023 libc/machine/mips/configure libc/machine/mn10200/aclocal.m4
9024 libc/machine/mn10200/configure libc/machine/mn10300/aclocal.m4
9025 libc/machine/mn10300/configure libc/machine/necv70/aclocal.m4
9026 libc/machine/necv70/configure libc/machine/powerpc/aclocal.m4
9027 libc/machine/powerpc/configure libc/machine/sh/aclocal.m4
9028 libc/machine/sh/configure libc/machine/sparc/aclocal.m4
9029 libc/machine/sparc/configure libc/machine/tic80/aclocal.m4
9030 libc/machine/tic80/configure libc/machine/v850/aclocal.m4
9031 libc/machine/v850/configure libc/machine/w65/aclocal.m4
9032 libc/machine/w65/configure libc/machine/xscale/aclocal.m4
9033 libc/machine/xscale/configure
9034 libc/machine/xstormy16/aclocal.m4
9035 libc/machine/xstormy16/configure libc/machine/z8k/aclocal.m4
9036 libc/machine/z8k/configure libc/sys/aclocal.m4
9037 libc/sys/configure libc/sys/a29khif/aclocal.m4
9038 libc/sys/a29khif/configure libc/sys/arc/aclocal.m4
9039 libc/sys/arc/configure libc/sys/arm/aclocal.m4
9040 libc/sys/arm/configure libc/sys/cygwin/aclocal.m4
9041 libc/sys/cygwin/configure libc/sys/d10v/aclocal.m4
9042 libc/sys/d10v/configure libc/sys/decstation/aclocal.m4
9043 libc/sys/decstation/configure libc/sys/go32/aclocal.m4
9044 libc/sys/go32/configure libc/sys/h8300hms/aclocal.m4
9045 libc/sys/h8300hms/configure libc/sys/h8500hms/aclocal.m4
9046 libc/sys/h8500hms/configure libc/sys/idt/aclocal.m4
9047 libc/sys/idt/configure libc/sys/linux/aclocal.m4
9048 libc/sys/linux/configure
9049 libc/sys/linux/machine/aclocal.m4
9050 libc/sys/linux/machine/configure
9051 libc/sys/linux/machine/i386/aclocal.m4
9052 libc/sys/linux/machine/i386/configure
9053 libc/sys/m88kbug/aclocal.m4 libc/sys/m88kbug/configure
9054 libc/sys/mmixware/aclocal.m4 libc/sys/mmixware/configure
9055 libc/sys/netware/aclocal.m4 libc/sys/netware/configure
9056 libc/sys/rtems/aclocal.m4 libc/sys/rtems/configure
9057 libc/sys/sh/aclocal.m4 libc/sys/sh/configure
9058 libc/sys/sparc64/aclocal.m4 libc/sys/sparc64/configure
9059 libc/sys/sun4/aclocal.m4 libc/sys/sun4/configure
9060 libc/sys/sysmec/aclocal.m4 libc/sys/sysmec/configure
9061 libc/sys/sysnec810/aclocal.m4 libc/sys/sysnec810/configure
9062 libc/sys/sysnecv850/aclocal.m4 libc/sys/sysnecv850/configure
9063 libc/sys/sysvi386/aclocal.m4 libc/sys/sysvi386/configure
9064 libc/sys/sysvnecv70/aclocal.m4 libc/sys/sysvnecv70/configure
9065 libc/sys/tic80/aclocal.m4 libc/sys/tic80/configure
9066 libc/sys/w65/aclocal.m4 libc/sys/w65/configure
9067 libc/sys/z8ksim/aclocal.m4 libc/sys/z8ksim/configure
9068 libm/aclocal.m4 libm/configure: Regenerated.
a8615092 9069
be83844e
JJ
90702002-09-09 Jeff Johnston <jjohnstn@redhat.com>
9071
ba3ccd63
EB
9072 * libc/sys/linux/machine/i386/crt0.c (_start): Remove
9073 code that clears the .bss section.
be83844e 9074
9c64d2a7
JJ
90752002-09-09 Jeff Johnston <jjohnstn@redhat.com>
9076
ba3ccd63
EB
9077 * libc/include/sys/_types.h (_mbstate_t): Changed to use
9078 unsigned char internally.
9079 * libc/sys/linux/sys/_types.h: Ditto.
9080 * libc/include/sys/reent.h
9081 * libc/stdlib/mblen.c (mblen): Use function-specific state
9082 value from default reentrancy structure.
9083 * libc/stdlib/mblen_r.c (_mblen_r): If return code from
9084 _mbtowc_r is less than 0, reset state __count value and
9085 return -1.
9086 * libc/stdlib/mbrlen.c (mbrlen): If the input state pointer
9087 is NULL, use the function-specific pointer provided in the
9088 default reentrancy structure.
9089 * libc/stdlib/mbrtowc.c: Add reentrant form of function.
9090 If input state pointer is NULL, use function-specific area
9091 provided in reentrancy structure.
9092 * libc/stdlib/mbsrtowcs.c: Ditto.
9093 * libc/stdlib/wcrtomb.c: Ditto.
9094 * libc/stdlib/wcsrtombs.c: Ditto.
9095 * libc/stdlib/mbstowcs.c: Reformat.
9096 * libc/stdlib/wcstombs.c: Ditto.
9097 * libc/stdlib/mbstowcs_r.c (_mbstowcs_r): If an error occurs,
9098 reset the state's __count value and return -1.
9099 * libc/stdlib/mbtowc.c: Ditto.
9100 * libc/stdlib/mbtowc_r.c (_mbtowc_r): Add restartable functionality.
9101 If number of bytes is used up before completing a valid multibyte
9102 character, return -2 and save the state.
9103 * libc/stdlib/wctomb_r.c (_wctomb_r): Define __state as __count
9104 and change some __count references to __state for clarity.
9c64d2a7 9105
218b7a56
JJ
91062002-09-06 Jeff Johnston <jjohnstn@redhat.com>
9107
9108 * libc/include/sys/config.h (MB_LEN_MAX): Removed as this
9109 is defined by <limits.h>.
9110
c210a6ea
JJ
91112002-09-05 Kazuhiro Fujieda <fujieda@jaist.ac.jp>
9112
9113 * libc/include/wchar.h (WCHAR_MAX): Only define if not already
9114 defined.
9115
efa077ce
JJ
91162002-09-04 Kazuhiro Fujieda <fujieda@jaist.ac.jp>
9117
ba3ccd63
EB
9118 * libc/include/sys/config.h: Define accordingly __WCHAR_MAX__.
9119 * libc/include/wchar.h: Define WCHAR_MIN as 0 and WCHAR_MAX as
9120 __WCHAR_MAX__ or 0x7fffffffu.
9121 * libc/string/wcscmp.c: Delete wrong and unnecessary type cast.
9122 * libc/string/wcsncmp.c: Ditto.
efa077ce 9123
e4b0ebc1
JJ
91242002-09-03 Jeff Johnston <jjohnstn@redhat.com>
9125
9126 * libc/string/wcschr.c: Add include of <stddef.h>.
9127 * libc/string/wcspbrk.c: Ditto.
9128 * libc/string/wcsrchr.c: Ditto.
9129 * libc/string/wcsstr.c: Ditto.
9130
3db40db7
JJ
91312002-09-03 Jeff Johnston <jjohnstn@redhat.com>
9132
ba3ccd63
EB
9133 * libc/include/sys/_types.h (_flock_t): Added.
9134 * libc/include/sys/lock.h (__lock_try_acquire): New interface.
9135 (__lock_try_acquire_recursive): Ditto.
9136 * libc/include/sys/reent.h (__sFILE, __sFILE64): Add new
9137 _lock field.
9138 * libc/stdio/findfp.c (std)[!__SINGLE_THREAD__]: Initialize _lock
9139 field.
9140 * libc/stdio/fopen.c (_fopen_r)[!__SINGLE_THREAD__]: Ditto.
9141 * libc/stdio64/fopen64.c (_fopen64_r)[!__SINGLE_THREAD__]: Ditto.
9142 * libc/sys/linux/include/time.h (struct timespec): Moved from
9143 <sys/types.h> and added check for __need_timespec flag so type
9144 can be defined by itself.
9145 * libc/sys/linux/sys/_types.h (_flock_t): New type.
9146 * libc/sys/linux/sys/types.h (struct timespec): Moved to
9147 <time.h>.
3db40db7 9148
cd45f029
TF
91492002-08-29 Thomas Fitzsimmons <fitzsim@redhat.com>
9150
9151 * libc/sys/linux/argp: New directory.
9152 * libc/sys/linux/getopt.c: New file.
9153 * libc/sys/linux/getopt1.c: New file.
9154 * libc/sys/linux/getoptlong.c: Remove file.
9155 * libc/sys/linux/include/argp.h: New file.
9156 * libc/sys/linux/Makefile.am: Define argp_dir and ARGP_LIB,
9157 based on ELIX level.
9158 (SUBDIRS): Add argp_dir.
9159 (SUBLIBS): Add ARGP_LIB.
9160 (ELIX_2_OBJS): Add getopt.$(oext), getopt1.$(oext), remove
9161 getopt_long.$(oext).
9162 * libc/sys/linux/configure.in (AC_OUTPUT): Add argp/Makefile.
9163
3c689185
JJ
91642002-08-29 Jeff Johnston <jjohnstn@redhat.com>
9165
ba3ccd63
EB
9166 * libc/libc.texinfo: Add node reference to wide-character strings.
9167 * libc/string/wcstrings.tex: New file.
3c689185 9168 * libc/string/strtok_r.c: Remove outdated advertising clause.
ba3ccd63
EB
9169 * libc/string/Makefile.am (doc): Add wide-character string
9170 chapter to documentation.
9171 * libc/string/Makefile.in: Regenerated.
3c689185 9172
890e7a1d
JJ
91732002-08-29 Kazuhiro Fujieda <fujieda@jaist.ac.jp>
9174
ba3ccd63
EB
9175 * libc/include/wchar.h: Define NULL. Define WEOF more general
9176 way. Declare functions in newlib manner.
9177 * libc/stdlib/Makefile.am: Delete wmem*.c
9178 * libc/stdlib/Makefile.in: Regenerated.
9179 * libc/stdlib/wmemchr.c: Delete.
9180 * libc/stdlib/wmemcmp.c: Ditto.
9181 * libc/stdlib/wmemcpy.c: Ditto.
9182 * libc/stdlib/wmemmove.c: Ditto.
9183 * libc/stdlib/wmemset.c: Ditto.
9184 * libc/string/Makefile.am: Add wmem*.c and wcs*.c.
9185 * libc/string/Makefile.in: Regenerated.
9186 * libc/string/wcscat.c: New file derived from the NetBSD C Library.
9187 * libc/string/wcschr.c: Ditto.
9188 * libc/string/wcscmp.c: Ditto.
9189 * libc/string/wcscpy.c: Ditto.
9190 * libc/string/wcscspn.c: Ditto.
9191 * libc/string/wcslcat.c: Ditto.
9192 * libc/string/wcslcpy.c: Ditto.
9193 * libc/string/wcslen.c: Ditto.
9194 * libc/string/wcsncat.c: Ditto.
9195 * libc/string/wcsncmp.c: Ditto.
9196 * libc/string/wcsncpy.c: Ditto.
9197 * libc/string/wcspbrk.c: Ditto.
9198 * libc/string/wcsrchr.c: Ditto.
9199 * libc/string/wcsspn.c: Ditto.
9200 * libc/string/wcsstr.c: Ditto.
9201 * libc/string/wmemchr.c: Ditto.
9202 * libc/string/wmemcmp.c: Ditto.
9203 * libc/string/wmemcpy.c: Ditto.
9204 * libc/string/wmemmove.c: Ditto.
9205 * libc/string/wmemset.c: Ditto.
890e7a1d 9206
86620e21
JJ
92072002-08-29 Jeff Johnston <jjohnstn@redhat.com>
9208
ba3ccd63
EB
9209 * libc/locale/locale.c (_setlocale_r)[MB_CAPABLE]: Fix so
9210 default locale "" is accepted for LC_CTYPE or LC_MESSAGES
9211 and is treated as if "C" was specified.
86620e21 9212
f3741c27
JJ
92132002-08-28 Jeff Johnston <jjohnstn@redhat.com>
9214
ba3ccd63
EB
9215 * Makefile.am (install-data-local): Move install of build
9216 newlib.h after installing headers in libc/include so as to
9217 overwrite default newlib.h.
9218 * Makefile.in: Regenerated.
f3741c27 9219
48da61f5
JJ
92202002-08-28 Jeff Johnston <jjohnstn@redhat.com>
9221
ba3ccd63
EB
9222 * libc/include/newlib.h: New file for tools that use newlib
9223 headers but don't build newlib first (e.g. gcc).
48da61f5 9224
d82a94ac
JJ
92252002-08-28 Jeff Johnston <jjohnstn@redhat.com>
9226
9227 * libc/stdlib/wmemchr.c: Explicitly include <_ansi.h>.
9228 * libc/stdlib/wmemcmp.c: Ditto.
9229 * libc/stdlib/wmemcpy.c: Ditto.
9230 * libc/stdlib/wmemmove.c: Ditto.
9231 * libc/stdlib/wmemset.c: Ditto.
9232
7d08241b
JJ
92332002-08-27 Egor Duda <deo@logos-m.ru>
9234
9235 * libc/stdlib/wmemchr.c: New file.
9236 * libc/stdlib/wmemcmp.c: Ditto.
9237 * libc/stdlib/wmemcpy.c: Ditto.
9238 * libc/stdlib/wmemmove.c: Ditto.
9239 * libc/stdlib/wmemset.c: Ditto.
9240 * libc/stdlib/Makefile.am (GENERAL_SOURCES): Add new files.
9241 * configure.host: Default -DMB_CAPABLE for cygwin.
9242 * libc/include/wchar.h: Declare wmemchr(), wmemcmp(), wmemcpy(),
9243 wmemmove() and wmemset(). Add include of <_ansi.h>.
9244 * libc/stdlib/Makefile.in: Regenerate.
9245
8da1639b
JJ
92462002-08-27 Jeff Johnston <jjohnstn@redhat.com>
9247
ff2bf852 9248 * configure.host: Remove _ELIX_LEVEL flag setting.
8da1639b
JJ
9249 * Makefile.am(stmp-targ-include): Copy newlib.h to targ-include.
9250 (install-data-local): Install newlib.h.
9251 * Makefile.in: Regenerated.
9252 * aclocal.m4: Ditto.
9253 * configure: Ditto.
17c0c97d 9254 * configure.in: Add AM_CONFIG_HEADER to generate newlib.h based on
8da1639b
JJ
9255 newlib.hin. Add AC_DEFINE_UNQUOTED entries for _ELIX_LEVEL
9256 and _NEWLIB_VERSION to fill in newlib.h header file entries.
9257 In AC_OUTPUT statement, unset ac_file so multilib support does
9258 not use last ac_file temporary used in newlib.h configuration.
9259 * libc/include/_ansi.h: Include <newlib.h>.
9260 * newlib.hin: New template file for newlib.h.
9261 * stamp-h.in: New file.
9262
a4421c11
JJ
92632002-08-26 Wu Yongwei <adah@netstd.com>
9264
ba3ccd63 9265 * time.h (timezonevar): Change "#if" to "#ifdef".
a4421c11 9266
90b65e2d
JJ
92672002-08-26 Jeff Johnston <jjohnstn@redhat.com>
9268
9269 * Makefile.am(LIBC_OBJECTLISTS): Add STDIO64_OBJECTLIST.
9270 * Makefile.in: Regenerated.
9271 * acinclude.m4: Add support for --enable-newlib-elix-level option.
9272 * aclocal.m4: Regenerated.
9273 * configure: Ditto.
9274 * configure.host: Add code to define _ELIX_LEVEL if
9275 --enable-newlib-elix-level option is used.
17c0c97d 9276 * configure.in:
90b65e2d
JJ
9277 * libc/aclocal.m4: Regenerated.
9278 * libc/configure: Ditto.
9279 * libc/argz/Makefile.am: Add EL/IX level checking.
9280 * libc/argz/Makefile.in: Regenerated.
9281 * libc/argz/dummy.c: New file.
9282 * libc/ctype/Makefile.am: Add EL/IX level checking.
9283 * libc/ctype/Makefile.in: Regenerated.
9284 * libc/locale/Makefile.am: Add EL/IX level checking.
9285 * libc/locale/Makefile.in: Regenerated.
9286 * libc/posix/Makefile.am: Add EL/IX level checking.
9287 * libc/posix/Makefile.in: Regenerated.
9288 * libc/posix/telldir.c: Add EL/IX level checking.
9289 * libc/reent/Makefile.am: Ditto.
9290 * libc/reent/fstat64r.c: Ditto.
9291 * libc/reent/lseek64r.c: Ditto.
9292 * libc/reent/open64r.c: Ditto.
9293 * libc/reent/Makefile.in: Regenerated.
9294 * libc/search/Makefile.am: Add EL/IX level checking.
9295 * libc/search/Makefile.in: Regenerated.
9296 * libc/stdio/Makefile.am: Add EL/IX level checking.
9297 * libc/stdio/Makefile.in: Regenerated.
9298 * libc/stdio64/Makefile.am: Add EL/IX level checking.
9299 * libc/stdio64/Makefile.in: Regenerated.
9300 * libc/stdio64/dummy.c: New file.
9b487837 9301 * libc/stdio64/fgetpos64.c: Fix so _LARGE64_FILES macro is checked
90b65e2d
JJ
9302 after first include.
9303 * libc/stdio64/fopen64.c: Ditto.
9304 * libc/stdio64/freopen64.c: Ditto.
9305 * libc/stdio64/fseeko64.c: Ditto.
9306 * libc/stdio64/fsetpos64.c: Ditto.
9307 * libc/stdio64/ftello64.c: Ditto.
9308 * libc/stdio64/tmpfile64.c: Ditto.
9309 * libc/stdlib/Makefile.am: Add EL/IX level checking.
9310 * libc/stdlib/Makefile.in: Regenerated.
9311 * libc/stdlib/mstats.c: Add EL/IX level checking.
9312 * libc/string/Makefile.am: Ditto.
9313 * libc/string/Makefile.in: Regenerated.
9314 * libc/sys/linux/Makefile.am: Add EL/IX level checking.
9315 * libc/sys/linux/Makefile.in: Regenerated.
9316 * libc/sys/linux/aclocal.m4: Ditto.
9317 * libc/sys/linux/configure: Ditto.
9318 * libc/sys/linux/aio.c: Add EL/IX level checking.
9319 * libc/sys/linux/ftok.c: Ditto.
9320 * libc/sys/linux/getdate.c: Ditto.
9321 * libc/sys/linux/ids.c: Ditto.
9322 * libc/sys/linux/inode.c: Ditto.
9323 * libc/sys/linux/io.c: Ditto.
9324 * libc/sys/linux/process.c: Ditto.
9325 * libc/sys/linux/resource.c: Ditto.
9326 * libc/sys/linux/sched.c: Ditto.
9327 * libc/sys/linux/sig.c: Ditto.
9328 * libc/sys/linux/termios.c: Ditto.
9329 * libc/sys/linux/wait.c: Ditto plus add __waitpid and
9330 __libc___waitpid weak aliases.
9331 * libc/sys/linux/machine/i386/syscall.h: Add new _base macros
9332 that generate the code for a syscall, but do not create a
9333 weak alias.
9334 * libc/syscalls/Makefile.am: Add EL/IX level checking.
9335 * libc/syscalls/Makefile.in: Regenerated.
9336 * libc/time/tzset_r.c: Change to replace strdup with equivalent
9337 functionality.
9338 * libc/unix/Makefile.am: Add EL/IX level checking.
9339 * libc/unix/Makefile.in: Regenerated.
9340
2e2b268c
CF
93412002-08-26 Christopher Faylor <cgf@redhat.com>
9342
9343 * libc/include/malloc.h: On cygwin, define malloc _r functions as
9344 wrapper macros to standard malloc functions.
9345 * libc/include/stdlib.h: Ditto.
9346 * configure.host: Always define MALLOC_PROVIDED on cygwin.
9347
8d9112f2
TF
93482002-08-22 Thomas Fitzsimmons <fitzsim@redhat.com>
9349
9350 * libc/include/langinfo.h: New file.
9351 * libc/include/wchar.h: Likewise.
9352 * libc/include/sys/syslimits.h: Likewise.
9353 * libc/locale/fix_grouping.c: Likewise.
9354 * libc/locale/ldpart.c: Likewise.
9355 * libc/locale/ldpart.h: Likewise.
9356 * libc/locale/lmessages.c: Likewise.
9357 * libc/locale/lmessages.h: Likewise.
9358 * libc/locale/lmonetary.c: Likewise.
9359 * libc/locale/lmonetary.h: Likewise.
9360 * libc/locale/lnumeric.c: Likewise.
9361 * libc/locale/lnumeric.h: Likewise.
9362 * libc/locale/nl_langinfo.3: Likewise.
9363 * libc/locale/nl_langinfo.c: Likewise.
9364 * libc/locale/timelocal.c: Likewise.
9365 * libc/locale/timelocal.h: Likewise.
9366 * libc/stdlib/btowc.c: Likewise.
9367 * libc/stdlib/mbrlen.c: Likewise.
9368 * libc/stdlib/mbrtowc.c: Likewise.
9369 * libc/stdlib/mbsinit.c: Likewise.
9370 * libc/stdlib/mbsrtowcs.c: Likewise.
9371 * libc/stdlib/wcrtomb.c: Likewise.
9372 * libc/stdlib/wcsrtombs.c: Likewise.
9373 * libc/stdlib/wctob.c: Likewise.
9374 * libc/sys/linux/prof-freq.c: Likewise.
9375 * libc/sys/linux/profile.c: Likewise.
9376 * libc/sys/linux/machine/i386/dl-procinfo.c: Likewise.
9377 * libc/sys/linux/machine/i386/dl-procinfo.h: Likewise.
9378 * libc/include/stdlib.h: Change re-entrant functions to take
9379 mbstate_t pointers.
9380 * libc/include/sys/_types.h: Define _mbstate_t.
9381 * libc/include/sys/config.h (MB_LEN_MAX): New macro.
9382 * libc/include/sys/errno.h (EILSEQ): New error code.
9383 * libc/include/sys/reent.h: Include wchar.h. Change reentrant
9384 structure to use mbstate_t.
9385 * libc/locale/Makefile.am (LIB_SOURCES): Add new files.
9386 * libc/machine/powerpc/vfprintf.c: Use mbstate_t.
9387 * libc/machine/powerpc/vfscanf.c: Likewise.
9388 * libc/stdio/getdelim.c: Reallocate buffer only when necessary.
9389 * libc/stdio/vfprintf.c: Likewise.
9390 * libc/stdio/vfscanf.c: Likewise.
9391 * libc/stdlib/Makefile.am (LIB_SOURCES): Add new files.
9392 * libc/stdlib/mblen.c: Use mbstate_t.
9393 * libc/stdlib/mblen_r.c: Likewise.
9394 * libc/stdlib/mbstowcs.c: Likewise.
9395 * libc/stdlib/mbstowcs_r.c: Likewise.
9396 * libc/stdlib/mbtowc.c: Likewise.
9397 * libc/stdlib/mbtowc_r.c: Likewise.
9398 * libc/stdlib/wcstombs.c: Likewise.
9399 * libc/stdlib/wcstombs_r.c: Likewise.
9400 * libc/stdlib/wctomb_r.c: Likewise.
9401 * libc/sys/linux/Makefile.am (LIB_SOURCES): Add prof-freq.c and
9402 profile.c.
9403 * libc/sys/linux/machine/i386/Makefile.am (LIB_SOURCES): Add
9404 dl-procinfo.c.
9405 * libc/sys/linux/sys/errno.h (EILSEQ): New error code.
9406 * libc/sys/linux/sys/types.h (off_t): Define type.
9407 * testsuite/newlib.locale/UTF-8.c: Change locale name from UTF-8
9408 to C-UTF-8.
9409 * testsuite/newlib.locale/UTF-8.exp: Likewise.
9410
fe47ea33
JJ
94112002-08-20 Casper S. Hornstrup <chorns@users.sourceforge.net>
9412
ba3ccd63
EB
9413 * libc/stdlib/mallocr.c: #include windows.h on Win32.
9414 (AlignPage): Continue macro on next line.
fe47ea33 9415
ada73509
JJ
94162002-08-19 Jeff Johnston <jjohnstn@redhat.com>
9417
9418 * libc/sys/linux/include/pthread.h: New file.
9419
64b5e8f2
JJ
94202002-08-19 Jeff Johnston <jjohnstn@redhat.com>
9421
9422 * libc/include/sys/types.h: Support __need_inttypes macro
17c0c97d 9423 that only sets the __intxx and __uintxx types.
64b5e8f2
JJ
9424 * libc/machine/powerpc/Makefile.am: Add stdlib to include directories
9425 to get mprec.h.
9426 * libc/machine/powerpc/Makefile.in: Regenerated.
9427 * libc/machine/powerpc/vfprintf.c: Fix state variable type.
9428 * libc/machine/powerpc/vfscanf.c: Fix state variable type. Remove
9429 redundant fixed-point conversion prototypes.
9430 * libc/machine/powerpc/machine/stdlib.h[__SPE__]: Include <sys/types.h>
9431 after setting __need_inttypes.
9432
a94b60ce
CF
94332002-08-18 Christopher Faylor <cgf@redhat.com>
9434
9435 * libc/include/sys/unistd.h: Add getsid declaration for cygwin.
9436
29e17a86
JJ
94372002-08-17 Jeff Johnston <jjohnstn@redhat.com>
9438
ba3ccd63
EB
9439 * libc/include/sys/config.h[__PPC__][__SPE__]: Set
9440 _LONG_DOUBLE to double.
29e17a86 9441
936b520f
JJ
94422002-08-17 Jeff Johnston <jjohnstn@redhat.com>
9443
9444 * configure.host: Add powerpc*-*-eabispe* configuration.
9445 * libc/machine/powerpc/atosfix16.c: New fixed-point conversion file.
9446 * libc/machine/powerpc/atosfix32.c: Ditto.
9447 * libc/machine/powerpc/atosfix64.c: Ditto.
9448 * libc/machine/powerpc/atoufix16.c: Ditto.
9449 * libc/machine/powerpc/atoufix32.c: Ditto.
9450 * libc/machine/powerpc/atoufix64.c: Ditto.
9451 * libc/machine/powerpc/fix64.h: Ditto.
9452 * libc/machine/powerpc/simdldtoa.c: Ditto.
9453 * libc/machine/powerpc/strtosfix16.c: Ditto.
9454 * libc/machine/powerpc/strtosfix32.c: Ditto.
9455 * libc/machine/powerpc/strtosfix64.c: Ditto.
9456 * libc/machine/powerpc/strtoufix16.c: Ditto.
9457 * libc/machine/powerpc/strtoufix32.c: Ditto.
9458 * libc/machine/powerpc/strtoufix64.c: Ditto.
9459 * libc/machine/powerpc/ufix64toa.c: Ditto.
9460 * libc/machine/powerpc/configure.in: Add check for
9461 powerpc*-eabispe and add fixed-point conversion functions.
9462 * libc/machine/powerpc/configure: Regenerated.
9463 * libc/machine/powerpc/vfprintf.c[__SPE__]: Add support for
9464 %r and %R format specifiers which handle fixed-point data.
9465 * libc/machine/powerpc/vfscanf.c[__SPE__]: Ditto.
9466 * libc/machine/powerpc/machine/stdlib.h[__SPE__]: Add fixed-point
9467 function prototypes.
9468
ad552766
JJ
94692002-08-17 Jeff Johnston <jjohnstn@redhat.com>
9470
9471 * Makefile.am: Move cmath stuff into libc/sys/linux.
9472 * Makefile.in: Regenerated.
9473 * configure.host: Default -DMB_CAPABLE for x86-linux.
9474 * libc/include/reent.h: Define _sbrk to take signed int argument.
9475 * libc/include/sys/unistd.h: Ditto for _sbrk_r and sbrk.
17c0c97d
EB
9476 * libc/locale/locale.c[MB_CAPABLE]: Add LC_MESSAGES support and
9477 make locale name checking more efficient. Also allow "C-ISO-8859-1"
ad552766
JJ
9478 locale for LC_CTYPE and LC_MESSAGES.
9479 * libc/reent/sbrkr.c: Change prototype to take ptrdiff_t.
9480 * libc/sys/linux/brk.c: Change sbrk prototype.
9481 * libc/sys/linux/include/time.h: Remove Cygwin stuff and
9482 include <sys/features.h>.
9483 (CLOCK_THREAD_CPUTIME): Renamed to CLOCK_THREAD_CPUTIME_ID.
9484 (CLOCK_PROCESS_CPUTIME): Renamed to CLOCK_PROCESS_CPUTIME_ID.
9485 * libc/sys/linux/sys/cdefs.h: Replace with glibc sys/cdefs.h
9486 with a few local additions.
9487 * libc/sys/linux/sys/features.h: New file.
9488 * libc/sys/linux/sys/unistd.h: Change _sbrk_r and sbrk prototypes
9489 to take signed argument.
9490 * libc/syscalls/syssbrk.c: Change sbrk, _sbrk_r, and _sbrk
9491 prototypes to take signed size argument.
9492
d3bd3632
TF
94932002-08-16 Thomas Fitzsimmons <fitzsim@redhat.com>
9494
9495 * libc/sys/linux/cmath: New directory.
9496 * libc/sys/linux/include/cmathcalls.h: New file.
9497 * libc/sys/linux/include/complex.h: New file.
9498 * libc/sys/linux/machine/i386/huge_val.h: New file
9499 * libm/math/w_sincos.c: New file
9500 * libm/math/wf_sincos.c: New file
9501 * libm/mathfp/s_sincos.c: New file
9502 * libm/mathfp/sf_sincos.c: New file
9503 * Makefile.am (LIBC_OBJECTLISTS): Add cmath/objectlist.awk.in.
9504 * libc/include/math.h: Add sincos and sincosf declarations.
9505 * libc/sys/linux/Makefile.am (SUBDIRS): Add cmath.
9506 (SUBLIBS): Likewise.
9507 * libc/sys/linux/configure.in (AC_OUTPUT): Add cmath.
9508 * libm/math/Makefile.am (src): Add w_sincos.c.
9509 (fsrc): Add wf_sincos.c.
9510 * libm/mathfp/Makefile.am (src): Add s_sincos.c
9511 (fsrc): Add sf_sincos.c.
9512
b3a9676b
JJ
95132002-08-12 Jeff Johnston <jjohnstn@redhat.com>
9514
9515 * libc/sys/linux/machine/i386/crt0.c (__bss_start,_end):
9516 Declare as extern chars and use the address operator to
9517 properly use values set in linker script.
9518
659e7062
JJ
95192002-08-09 Jason Tishler <jason@tishler.net>
9520
9521 * libc/stdlib/mallocr.c: Include <limits.h>.
9522 (request2size): Change macro to do
9523 unsigned long comparisons and avoid signed overflow.
9524 (mALLOc): Add overflow check for the number of bytes to allocate.
9525 (rEALLOc): Ditto.
9526
037240a2
JJ
95272002-08-09 Jeff Johnston <jjohnstn@redhat.com>
9528
9529 * configure.host: Add check for --enable-newlib-io-pos-args
9530 and define WANT_IO_POS_ARGS flag if enabled. Define
9531 the flag by default for x86-linux configurations.
9532 * configure.in: Add support for --enable-newlib-io-pos-args.
9533 * libc/configure.in: Ditto.
9534 * configure: Regenerated.
9535 * libc/configure: Ditto.
9536 * libc/stdio/Makefile.am: Specify -fshort-enums for compiling
9537 vfprintf.c and vfiprintf.c.
9538 * libc/stdio/Makefile.in: Regenerated.
9539 * libc/stdio/vfprintf.c: Add positional argument support that
9540 is enabled by compiling with -DWANT_IO_POS_ARGS.
9541
172fda76
RS
95422002-08-07 Richard Sandiford <rsandifo@redhat.com>
9543
9544 * libc/include/machine/setjmp.h: For mips, define _JBLEN based
9545 based on __mips_soft_float rather than __mips64.
9546 * libc/machine/mips/setjmp.S: Provide hard and soft float versions
9547 of both 32-bit and 64-bit code.
9548
4866247e
CF
95492002-08-04 Christopher Faylor <cgf@redhat.com>
9550
9551 * libc/stdio/popen.c (popen): Allow "rb", "rt", "wb", and "wt"
9552 arguments for popen to match similar functionality in fopen.
9553
b96332ce
CV
95542002-07-29 Pierre Humblet <pierre.humblet@ieee.org>
9555
9556 * libc/include/sys/unistd.h: Add setgroups prototype for Cygwin.
9557
60d99bce
JJ
95582002-07-29 Jeff Johnston <jjohnstn@redhat.com>
9559
ba3ccd63
EB
9560 * libc/sys/linux/Makefile.am: Add aio64.c.
9561 * libc/sys/linux/Makefile.in: Regenerated.
9562 * libc/sys/linux/aio.c (aio_init): ENOSYS stub added.
9563 * libc/sys/linux/aio64.c: New file.
60d99bce 9564
80a21be0
JJ
95652002-07-26 Jeff Johnston <jjohnstn@redhat.com>
9566
9567 * libc/include/sys/param.h (MAX, MIN): Added macros.
9568 * libc/sys/linux/Makefile.am: Add new files.
9569 * libc/sys/linux/Makefile.in: Regenerated.
9570 * libc/sys/linux/sys/stat.h: Add *stat64 prototypes.
9571 * libc/sys/linux/inode.c (fchdir): Added syscall.
9572 * libc/sys/linux/ftw.c: New file.
9573 * libc/sys/linux/ftw64.c: Ditto.
9574 * libc/sys/linux/getwd.c: Ditto.
9575 * libc/sys/linux/scandir64.c: Ditto.
9576 * libc/sys/linux/strverscmp.c: Ditto.
9577 * libc/sys/linux/versionsort.c: Ditto.
9578 * libc/sys/linux/versionsort64.c: Ditto.
9579
6b6425cb
JJ
95802002-07-26 Jeff Johnston <jjohnstn@redhat.com>
9581
9582 * libc/string/strings.tex: Fix typo for memccpy.
9583
dc8ac8e6
JJ
95842002-07-25 Jeff Johnston <jjohnstn@redhat.com>
9585
9586 * libc/sys/linux/io64.c (truncate64, ftruncate64): Added.
9587 * libc/sys/linux/sys/types.h (off64_t): Definition added.
9588
aa0ca6fd
JJ
95892002-07-25 Jeff Johnston <jjohnstn@redhat.com>
9590
9591 * libc/sys/linux/Makefile.am: Add fclean.c.
9592 * libc/sys/linux/Makefile.in: Regenerated.
9593 * libc/sys/linux/fclean.c: New file.
9594
61921945
JJ
95952002-07-25 Jeff Johnston <jjohnstn@redhat.com>
9596
9597 * libc/sys/linux/Makefile.am: Add confstr.c.
9598 * libc/sys/linux/Makefile.in: Regenerated.
9599 * libc/sys/linux/confstr.c: New file.
9600 * libc/sys/linux/confstr.h: Ditto.
9601 * libc/sys/linux/sys/unistd.h: Include <features.h> and
9602 <bits/environments.h>.
9603
3d966a92
JJ
96042002-07-25 Jeff Johnston <jjohnstn@redhat.com>
9605
9606 * libc/sys/linux/config.h (__set_errno): Macro definition removed.
9607 * libc/sys/linux/fpathconf.c (__set_errno): Ditto.
9608 * libc/sys/linux/libc-internal.h (__set_errno): Ditto.
9609 * libc/sys/linux/pathconf.c (__set_errno): Ditto.
9610 * libc/sys/linux/ttyname_r.c (__set_errno): Ditto.
9611 * libc/sys/linux/sys/errno.h (__set_errno): Macro definition added.
9612
53b5bff7
JJ
96132002-07-24 Jeff Johnston <jjohnstn@redhat.com>
9614
9615 * libc/sys/linux/Makefile.am: Add new files.
9616 * libc/sys/linux/Makefile.in: Regenerated.
9617 * libc/sys/linux/fstab.c: New file.
9618 * libc/sys/linux/fstatvfs.c: Ditto.
9619 * libc/sys/linux/fstatvfs64.c: Ditto.
9620 * libc/sys/linux/internal_statvfs.c: Ditto.
9621 * libc/sys/linux/mntent.c: Ditto.
9622 * libc/sys/linux/mntent_r.c: Ditto.
9623 * libc/sys/linux/statvfs.c: Ditto.
9624 * libc/sys/linux/statvfs64.c: Ditto.
9625 * libc/sys/linux/include/paths.h: Ditto.
9626 * libc/sys/linux/inode.c (statfs, fstatfs): New syscalls
9627 with double-underscore weak-aliases.
9628 * libc/sys/linux/sys/stat.h: Add *stat64 prototypes.
9629
9cef8ef5
JJ
96302002-07-24 Jeff Johnston <jjohnstn@redhat.com>
9631
9632 * libc/include/signal.h (SIG_IGN, SIG_DFL, SIG_ERR): Change
9633 to use _sig_func_ptr type casted constants.
9634 (_sig_func_ptr): Typedef moved to sys/signal.h.
9635 * libc/include/sys/signal.h (_sig_func_ptr): Typedef added.
9636 For __rtems, use POSIX definition, otherwise default to ANSI.
9637 * libc/sys/linux/sys/signal.h (_sig_func_ptr): Typedef added.
9638
a703e0f2
JJ
96392002-07-24 Stephane Carrez <stcarrez@nerim.fr>
9640
ba3ccd63
EB
9641 * configure.host: Recognize m6811-elf and m6812-elf targets.
9642 * libc/include/machine/setjmp.h (_JBLEN): Define for 68hc11/68hc12.
9643 * libc/include/machine/ieeefp.h (__IEEE_BIG_ENDIAN): Define for 68HC11.
9644 (_DOUBLE_IS_32BITS): Define when compiling with -fshort-double.
9645 * libc/include/sys/config.h (INT_MAX, UINT_MAX): Define
9646 according to __INT_MAX__.
9647 (_POINTER_INT): Define to short.
9648 * libc/machine/m68hc11/Makefile.am: New file.
9649 * libc/machine/m68hc11/Makefile.in: New file.
9650 * libc/machine/m68hc11/configure.in: New file.
9651 * libc/machine/m68hc11/configure: New file.
9652 * libc/machine/m68hc11/aclocal.m4: New file.
9653 * libc/machine/m68hc11/setjmp.S: New file.
a703e0f2 9654
d254189b
JJ
96552002-07-23 Jeff Johnston <jjohnstn@redhat.com>
9656
9657 * libc/include/string.h: Add mempcpy, strndup, and _strndup_r
9658 prototypes.
9659 * libc/stdlib/Makefile.am: Remove strdup.c and strdup_r.c.
9660 * libc/stdlib/Makefile.in: Regenerated.
9661 * libc/stdlib/strdup.c: Removed.
9662 * libc/stdlib/strdup_r.c: Removed.
9663 * libc/string/Makefile.am: Add strdup.c, strdup_r.c, memccpy.c,
9664 mempcpy.c, strndup.c, and strndup_r.c.
9665 * libc/string/Makefile.in: Regenerated.
9666 * libc/string/memccpy.c: New file.
9667 * libc/string/mempcpy.c: Ditto.
9668 * libc/string/strndup.c: Ditto.
9669 * libc/string/strndup_r.c: Ditto.
9670 * libc/string/strdup.c: New file moved from stdlib.
9671 * libc/string/strdup_r.c: Ditto.
9672 * libc/string/strings.tex: Add memccpy and mempcpy documentation.
9673
bc100655
JJ
96742002-07-23 Jeff Johnston <jjohnstn@redhat.com>
9675
ba3ccd63
EB
9676 * libc/include/stdio.h: Move fcloseall prototype within
9677 #ifndef _REENT_ONLY section.
9678 * libc/sys/linux/Makefile.am: Add new files.
9679 * libc/sys/linux/Makefile.in: Regenerated.
9680 * libc/sys/linux/sys/stdio.h: Add ctermid prototype.
9681 * libc/sys/linux/sys/unistd.h: Add ttyname_r prototype.
bc100655 9682 * libc/sys/linux/sys/types.h: Add ino64_t type.
ba3ccd63
EB
9683 * libc/sys/linux/ctermid.c: New file.
9684 * libc/sys/linux/ttyname_r.c: Ditto.
bc100655
JJ
9685 * libc/sys/linux/readdir64.c: Ditto.
9686
f5f27f07
JJ
96872002-07-22 Jeff Johnston <jjohnstn@redhat.com>
9688
9689 * libc/include/stdio.h (fcloseall, _fcloseall_r): Added prototypes.
9690 * libc/stdio/Makefile.am: Added fcloseall.c support.
9691 * libc/stdio/Makefile.in: Regenerated.
9692 * libc/stdio/fcloseall.c: New file.
9693 * libc/stdio64/Makefile.am: Remove missing .def references.
9694 * libc/stdio64/Makefile.in: Regenerated.
9695
d541ba3e
JJ
96962002-07-22 Jeff Johnston <jjohnstn@redhat.com>
9697
9698 * libc/machine/powerpc/time.c: Removed..renamed to times.c.
9699 * libc/machine/powerpc/times.c: New file.
9700 * libc/machine/powerpc/Makefile.am: Change time.c to times.c.
9701 * libc/machine/powerpc/Makefile.in: Regenerated.
9702
97032002-07-22 Aldy Hernandez <aldyh@redhat.com>
e964bca8 9704
ba3ccd63
EB
9705 * libc/machine/powerpc/time.c: New file.
9706 * libc/machine/powerpc/Makefile.am (lib_a_SOURCES): Add
9707 time.c.
e964bca8
JJ
9708 * libc/machine/powerpc/Makefile.in: Regenerated.
9709
5e7d0a55
TF
97102002-07-22 Thomas Fitzsimmons <fitzsim@redhat.com>
9711
9712 * libc/libc.texinfo: Change copyright notices to Red Hat from
9713 Cygnus.
9714 * libm/libm.texinfo: Likewise.
9715 * README: Change docs URL to
9716 http://sources.redhat.com/newlib/docs.html.
9717
504628e7
JJ
97182002-07-19 Jeff Johnston <jjohnstn@redhat.com>
9719
ba3ccd63
EB
9720 * libc/sys/linux/Makefile.am: Add pathconf.c and fpathconf.c.
9721 * libc/sys/linux/Makefile.in: Regenerated.
9722 * libc/sys/linux/inode.c: Add chmod, fchmod, and chown syscalls.
9723 * libc/sys/linux/io.c: Add ftruncate syscall.
9724 * libc/sys/linux/fpathconf.c: New file.
9725 * libc/sys/linux/pathconf.c: Ditto.
504628e7 9726 * libc/sys/linux/linux_fsinfo.h: Ditto.
ba3ccd63 9727 * libc/sys/linux/sys/unistd.h: Ditto.
504628e7 9728
b155ad9f
JJ
97292002-07-19 Jeff Johnston <jjohnstn@redhat.com>
9730
9731 * libc/stdio64/Makefile.am: Remove missing files.
9732 * libc/stdio64/Makefile.in: Regenerated.
9733
c119e0ab
JJ
97342002-07-19 Jeff Johnston <jjohnstn@redhat.com>
9735
ba3ccd63
EB
9736 * libc/include/sys/config.h[__i386__][__linux__]: Define
9737 _LARGE64FILE_SOURCE to 1.
9738 * libc/sys/linux/Makefile.am: Add getrlimit64.c and setrlimit64.c.
9739 * libc/sys/linux/Makefile.in: Regenerated.
9740 * libc/sys/linux/resource.c: Add __getrlimit and __setrlimit aliases.
9741 * libc/sys/linux/sys/linux_time.h: Protect struct timeval definition.
9742 * libc/sys/linux/sys/resource.h: Include <bits/resource.h> instead
9743 of <linux/resource.h>.
9744 * libc/sys/linux/getrlimit64.c: New file.
9745 * libc/sys/linux/setrlimit64.c: Ditto.
c119e0ab 9746
9b022d6d
TF
97472002-07-19 Thomas Fitzsimmons <fitzsim@redhat.com>
9748
9749 * libc/argz/argz_replace.c: Include buf_findstr.h.
9750 * libc/argz/buf_findstr.c: Likewise.
9751 * libc/argz/envz_entry.c: Include buf_findstr.h. Cast return
9752 value to (char *).
9753 * libc/argz/envz_get.c: Likewise.
9754 * libc/include/sys/unistd.h: Add getopt and getsubopt declarations.
9755 * libc/stdlib/Makefile.am (LIB_SOURCES): Add getsubopt.c.
9756 * libc/stdlib/getsubopt.3: New file.
9757 * libc/stdlib/getsubopt.c: New file.
9758 * libc/sys/linux/machine/i386/socketcall.h (__sockcall_base):
9759 Change esp to ebp.
9760
dee51391
JJ
97612002-07-17 Jeff Johnston <jjohnstn@redhat.com>
9762
9763 * configure.host(stdio64_dir): New setting that is used to
9764 enable building of new stdio64 directory.
9765 * libc/Makefile.am[HAVE_STDIO64_DIR]: Add support for
9766 large files.
9767 (stmp-stdio64,stdio64.texi): New targets to optionally add in
9768 stdio64 info to info files.
9769 * libc/Makefile.in: Regenerated.
9770 * libc/configure: Ditto.
9771 * libc/configure.in: Add configuration variables that are set
9772 when stdio64 is selected as subdir in configure.host.
9773 * libc/libc.texinfo: Add optional menu item for Stdio64, based
9774 on whether STDIO64 flag is set or not.
9775 * libc/sys.tex: Add optional stdio64 syscalls based on whether
9776 STDIO64 flag is set or not.
9777 * libc/include/reent.h[__LARGE64_FILES]: Add new stdio64
9778 _r sycall routines.
9779 * libc/include/stdio.h[__LARGE64_FILES]: Add new stdio64 prototypes.
9780 (FILE): Typedef'd to __FILE instead of struct __sFILE directly.
9781 (__SL64): New file flag indicating file is opened via fopen64.
9782 * libc/include/sys/_types.h(_off64_t): Added.
9783 * libc/include/sys/config.h: For x86-linux, define __LARGE64_FILES.
9784 * libc/include/sys/reent.h(struct __sFILE64): New file structure
9785 for 64-bit offset large file support.
9786 (__FILE): New intermediate type either set to struct __sFILE64 or
9787 struct __sFILE, depending on whether __LARGE64_FILES is set or not.
9788 * libc/reent/Makefile.am[HAVE_STDIO64_DIR]: Add new files.
9789 * libc/reent/Makefile.in: Regenerated.
9790 * libc/reent/fstat64r.c: New file.
9791 * libc/reent/lseek64r.c: Ditto.
9792 * libc/reent/open64r.c: Ditto.
9793 * libc/reent/reent.tex: Optionally add stdio64 reentrant syscalls
17c0c97d 9794 based on whether STDIO64 flag is set.
dee51391
JJ
9795 * libc/stdio/stdio.tex: Add blank line.
9796 * libc/stdio64/Makefile.am: New file.
9797 * libc/stdio64/Makefile.in: Ditto.
9798 * libc/stdio64/fgetpos64.c: Ditto.
9799 * libc/stdio64/fopen64.: Ditto.
9800 * libc/stdio64/freopen64.c: Ditto.
9801 * libc/stdio64/fseeko64.c: Ditto.
9802 * libc/stdio64/fsetpos64.c: Ditto.
9803 * libc/stdio64/ftello64.c: Ditto.
9804 * libc/stdio64/local64.h: Ditto.
9805 * libc/stdio64/stdio64.c: Ditto.
9806 * libc/stdio64/stdio64.tex: Ditto.
9807 * libc/stdio64/tmpfile64.c: Ditto.
9808 * libc/sys/linux/io64.c: Add weak aliases for lseek64, fstat64, and
9809 open64.
9810
778876f6
JJ
98112002-07-16 Jeff Johnston <jjohnstn@redhat.com>
9812
ba3ccd63
EB
9813 * libc/Makefile.am (stmp-extra): New target to set makeinfo flag
9814 if LIBC_EXTRA_LIB is present.
9815 * libc/Makefile.in: Regenerated.
778876f6 9816 * libc/libc.texinfo: Add blank line.
ba3ccd63
EB
9817 * libc/argz/Makefile.am: Add doc support.
9818 * libc/search/Makefile.am: Ditto.
9819 * libc/argz/Makefile.in: Regenerated.
9820 * libc/search/Makefile.in: Ditto.
9821 * libc/misc/misc.tex: Add ffs function.
9822 * libc/stdio/ftell.c: Fix missing doc delimeter in description.
778876f6 9823
37981145
JJ
98242002-07-15 Jeff Johnston <jjohnstn@redhat.com>
9825
9826 * libc/include/sys/config.h[__H8300__]: Replace __SMALL_BITFIELDS
9827 definition that was removed in error.
9828
38b5dc59
JJ
98292002-07-15 Jeff Johnston <jjohnstn@redhat.com>
9830
9831 * libc/include/machine/ieeefp.h: Change to only define
17c0c97d 9832 floating point defines (e.g one of __IEEE_BIG_ENDIAN or
38b5dc59
JJ
9833 __IEEE_LITTLE_ENDIAN must be defined for each platform).
9834 * libc/include/sys/config.h: Include <machine/ieeefp.h> and
9835 remove redundant floating point definitions.
9836
8cb61a96
JJ
98372002-07-15 Jeff Johnston <jjohnstn@redhat.com>
9838
ba3ccd63
EB
9839 * libc/sys/linux/callocr.c: Fix so code references
9840 calloc.
8cb61a96 9841
edba3282
JJ
98422002-07-15 Jeff Johnston <jjohnstn@redhat.com>
9843
ba3ccd63
EB
9844 * libc/sys/linux/Makefile.am: Add new files.
9845 * libc/sys/linux/Makefile.in: Regenerated.
9846 * libc/sys/linux/bp-sym.h: Moved to include directory.
9847 * libc/sys/linux/mmap.c: Add weak aliases: __mmap, __munmap, __mremap.
9848 * libc/sys/linux/inode.c: Set _LIBC to 1.
9849 * libc/sys/linux/mq_close.c: Ditto.
9850 * libc/sys/linux/mq_getattr.c: Ditto.
9851 * libc/sys/linux/mq_open.c: Ditto.
9852 * libc/sys/linux/mq_receive.c: Ditto.
9853 * libc/sys/linux/mq_send.c: Ditto.
9854 * libc/sys/linux/mq_setattr.c: Ditto.
9855 * libc/sys/linux/mq_unlink.c: Ditto.
9856 * libc/sys/linux/calloc.c: New file.
9857 * libc/sys/linux/callocr.c: Ditto.
9858 * libc/sys/linux/cfreer.c: Ditto.
9859 * libc/sys/linux/config.h: Ditto.
9860 * libc/sys/linux/free.c: Ditto.
9861 * libc/sys/linux/freer.c: Ditto.
9862 * libc/sys/linux/msize.c: Ditto.
9863 * libc/sys/linux/msizer.c: Ditto.
9864 * libc/sys/linux/mstats.c: Ditto.
9865 * libc/sys/linux/mtrim.c: Ditto.
9866 * libc/sys/linux/mtrimr.c: Ditto.
9867 * libc/sys/linux/pvallocr.c: Ditto.
9868 * libc/sys/linux/realloc.c: Ditto.
9869 * libc/sys/linux/reallocr.c: Ditto.
9870 * libc/sys/linux/thread-m.h: Ditto.
9871 * libc/sys/linux/vallocr.c: Ditto.
9872 * libc/sys/linux/bp-checks.h: Ditto.
9873 * libc/sys/linux/libc-symbols.h: Ditto.
9874 * libc/sys/linux/libc-tsd.h: Ditto.
9875 * libc/sys/linux/libintl.h: Ditto.
9876 * libc/sys/linux/malign.c: Ditto.
9877 * libc/sys/linux/malignr.c: Ditto.
9878 * libc/sys/linux/mallinfor.c: Ditto.
9879 * libc/sys/linux/malloc.c: Ditto.
9880 * libc/sys/linux/mallocr.c: Ditto.
9881 * libc/sys/linux/malloptr.c: Ditto.
9882 * libc/sys/linux/mallstatsr.c: Ditto.
9883 * libc/sys/linux/mcheck.c: Ditto.
9884 * libc/sys/linux/mhooks.h: Ditto.
9885 * libc/sys/linux/include/bp-sym.h: Ditto.
9886 * libc/sys/linux/include/malloc.h: Ditto.
9887 * libc/sys/linux/include/mcheck.h: Ditto.
9888 * libc/sys/linux/linuxthreads/machine/i386/Makefile.am: Remove
9889 getpagesize.c.
9890 * libc/sys/linux/linuxthreads/machine/i386/Makefile.in: Regenerated.
9891 * libc/sys/linux/linuxthreads/machine/i386/getpagesize.c: Moved.
9892 * libc/sys/linux/machine/i386/getpagesize.c: New file.
9893 * libc/sys/linux/machine/i386/Makefile.am: Add getpagesize.c.
9894 * libc/sys/linux/machine/i386/Makefile.in: Regenerated.
9895 * libc/sys/linux/machine/i386/sysdep.h: New file.
9896 * libc/sys/linux/machine/i386/weakalias.h: Add weak_function support.
9897 * libc/sys/linux/sys/dirent.h: Set _LIBC to 1.
9898 * libc/sys/linux/sys/lock.h: Include <machine/weakalias.h>.
edba3282 9899
ea20b60a
JJ
99002002-07-12 Jeff Johnston <jjohnstn@redhat.com>
9901
9902 * libc/sys/linux/include/mqueue.h: Change to use <bits/siginfo.h>
9903 instead of <asm/siginfo.h>.
9904 * libc/sys/linux/sys/signal.h: Change to include various linux
9905 <bits/xxx.h> header files, rather than <linux/signal.h> so as
9906 to work with multiple releases of glibc header files.
9907
2fc82912
JJ
99082002-07-11 Chris Demetriou <cgd@broadcom.com>
9909
ba3ccd63
EB
9910 * testsuite/newlib.search/hsearchtest.c: New file to test
9911 newlib/libc/search.
9912 * testsuite/newlib.search/hsearchtest.exp: Likewise.
2fc82912 9913
4a404e97 99142002-07-10 Florian Schrack <florian.schrack@freenet.de>
2a8b4ea3
JJ
9915
9916 * libc/sys/mmixware/read.c: Use SYS_Fgets syscall if dealing with
9917 a terminal.
9918 * libc/sys/mmixware/sys/syscall.h (SYS_Fgets): Definition added.
9919
6aec558e
JJ
99202002-07-08 Jeff Johnston <jjohnstn@redhat.com>
9921
ba3ccd63 9922 * libc/include/math.h (MAXFLOAT): Added.
6aec558e 9923
e47e6f0e 9924Mon Jul 8 13:55:23 2002 J"orn Rennecke <joern.rennecke@superh.com>
a31df303
JR
9925
9926 * libc/machine/sh/Makefile.am (lib_a_SOURCES):
9927 Make strcmp.S unconditional.
9928 * libc/machine/sh/Makefile.in: Regenerate.
9929 * libc/machine/sh/asm.h (DELAYED_BRANCHES, SL): Also for __SH5__ .
9930 * strcmp.S (strcmp): Add SHmedia variant. Use different registers
9931 for SHcompact.
9932
89ffbd66
JJ
99332002-07-04 Jeff Johnston <jjohnstn@redhat.com>
9934
9935 * libc/sys/linux/inode.c: Fix utime prototype and add _LIBC
9936 define before including <sys/lock.h>.
9937
ae6c4c84
JJ
99382002-07-04 Jeff Johnston <jjohnstn@redhat.com>
9939
9940 * libc/include/utime.h: Add include of <_ansi.h>.
9941 * libc/sys/linux/Makefile.am: Add utimes.c.
9942 * libc/sys/linux/Makefile.in: Regenerated.
9943 * libc/sys/linux/inode.c(__umask): New static routine.
9944 (umask): Written to use __umask and attempt to thread lock.
9945 (getumask): New function written to use __umask and thread lock.
9946 * libc/sys/linux/utimes.c: New file.
9947 * libc/sys/linux/sys/time.h: Fix utimes prototype.
9948 * libc/sys/linux/sys/utime.h: New file.
9949
a6cac46c
TF
99502002-07-04 Thomas Fitzsimmons <fitzsim@redhat.com>
9951
9952 * libtool.m4: New file.
9953 * libc/sys/linux/process.c: Implement vfork in terms of fork,
9954 rather than as a syscall.
9955
30b2092f
JJ
99562002-07-04 Jeff Johnston <jjohnstn@redhat.com>
9957
9958 * libc/include/stdio.h: Add new prototypes.
9959 * libc/stdio/Makefile.am: Add fseeko.c and ftello.c.
9960 * libc/stdio/Makefile.in: Regenerated.
9961 * libc/stdio/fseek.c: Add fseeko documentation.
9962 * libc/stdio/ftell.c: Add ftello documentation.
9963 * libc/stdio/fseeko.c: New file.
9964 * libc/stdio/ftello.c: New file.
9965
7501704d
JJ
99662002-07-04 Jeff Johnston <jjohnstn@redhat.com>
9967
ba3ccd63
EB
9968 * libc/stdio/Makefile.am: Add asprintf.c and vasprintf.c.
9969 * libc/stdio/Makefile.in: Regenerated.
9970 * libc/stdio/asprintf.c: New file.
9971 * libc/stdio/vasprintf.c: Ditto.
9972 * libc/stdio/fvwrite.c: Add code to dynamically reallocate
9973 the buffer for asprintf support.
9974 * libc/stdio/sprintf.c: Add asprintf documentation.
9975 * libc/stdio/vfprintf.c: Add vasprintf documentation.
9976 * libc/include/stdio.h: Add new prototypes.
7501704d 9977
66eee32b
TF
99782002-07-02 Thomas Fitzsimmons <fitzsim@redhat.com>
9979
9980 * libc/search/hcreate.c: Remove advertising clause from license.
9981 * libc/search/hcreate_r.c: Likewise.
9982
cec4a9f8
JJ
99832002-07-02 Chris Demetriou <cgd@broadcom.com>
9984
ba3ccd63
EB
9985 * libc/include/sys/config.h (__IEEE_LITTLE_ENDIAN)
9986 (__IEEE_BIG_ENDIAN): Define appropriately for MIPS.
9987 Check that one of them is defined and error out if not.
cec4a9f8 9988 Add any platforms defined in <machine/ieeefp.h> that are missing.
ba3ccd63
EB
9989 * libc/search/hash.h (DB_BYTE_ORDER, DB_BIG_ENDIAN)
9990 (DB_LITTLE_ENDIAN): New defines.
9991 * libc/search/hash.c: Replace all incorrect checks for
9992 _IEEE_LITTLE_ENDIAN with tests of BYTE_ORDER, and all uses of
9993 BYTE_ORDER, LITTLE_ENDIAN, and BIG_ENDIAN with DB_* versions.
9994 * libc/search/hash_page.c: Likewise.
cec4a9f8 9995
2d5eb17e
TF
99962002-06-28 Thomas Fitzsimmons <fitzsim@redhat.com>
9997
9998 * libm/mathfp/sf_pow.c (powf): Change k from int to float.
9999
c1a3171f
JJ
100002002-06-27 Benjamin Kosnik <bkoz@redhat.com>
10001
ba3ccd63
EB
10002 * libc/include/stdio.h: Untangle, add _BEGIN_STD_C and _END_STD_C.
10003 * libc/include/time.h: Same.
10004 * libc/include/string.h: Same.
10005 * libc/include/stdlib.h: Same.
10006 * libc/include/signal.h: Same.
10007 * libc/include/setjmp.h: Same.
10008 * libc/include/math.h: Same.
10009 * libc/include/locale.h: Same.
10010 * libc/include/ctype.h: Same.
10011 * libc/include/machine/setjmp.h: Same.
10012 * libc/include/_ansi.h (_BEGIN_STD_C): Add.
10013 (_END_STD_C): Add.
c1a3171f 10014
533b4e66
JJ
100152002-06-27 Jeff Johnston <jjohnstn@redhat.com>
10016
ba3ccd63
EB
10017 * libc/include/sys/_types.h: Define _ssize_t as int if int is
10018 32-bits, otherwise define it as long.
10019 * libc/include/sys/types.h: Include <_ansi.h> and <sys/_types.h>
10020 and define ssize_t as _ssize_t.
10021 * libc/reent/readr.c: Change return type to _ssize_t.
10022 * libc/reent/writer.c: Ditto.
10023 * libc/sys/linux/Makefile.am: Add aio.c.
10024 * libc/sys/linux/Makefile.in: Regenerated.
10025 * libc/sys/linux/aio.c: New file.
10026 * libc/sys/linux/sys/cdefs.h: Add __restrict_arr definition.
10027 * libm/common/fdlibm.h: Undef __P before defining it.
533b4e66 10028
c36e6dd7
TF
100292002-06-27 Thomas Fitzsimmons <fitzsim@redhat.com>
10030
54be629f
TF
10031 * libm/mathfp/s_pow.c (pow): Fix checks on variable k. Add
10032 exponent_is_even_int variable. Handle case where x is
10033 negative, and y is an odd integer.
10034 * libm/mathfp/sf_pow.c (powf): Likewise.
10035
c36e6dd7
TF
10036 * libm/mathfp/er_lgamma.c: Remove __kernel references.
10037 * libm/mathfp/erf_lgamma.c: Likewise.
10038 * libm/mathfp/s_tgamma.c: Likewise.
10039 * libm/mathfp/sf_tgamma.c: Likewise.
10040
baf051ca
JJ
100412002-06-27 Jeff Johnston <jjohnstn@redhat.com>
10042
ba3ccd63
EB
10043 * libc/sys/linux/Makefile.am: Add new clock routines.
10044 * libc/sys/linux/Makefile.in: Regenerated.
10045 * libc/sys/linux/clock_getres.c: New file.
10046 * libc/sys/linux/clock_gettime.c: Ditto.
10047 * libc/sys/linux/clock_settime.c: Ditto.
10048 * libc/sys/linux/hp-timing.h: Ditto.
10049 * libc/sys/linux/libc-internal.h: Ditto.
10050 * libc/sys/linux/sysconf.c: Fix typo.
10051 * libc/sys/linux/include/time.h: Add include of <sys/linux_time.h>.
10052 * libc/sys/linux/machine/hp-timing.h: New file.
10053 * libc/sys/linux/machine/i386/Makefile.am: Add new files.
10054 * libc/sys/linux/machine/i386/Makefile.in: Regenerated.
10055 * libc/sys/linux/machine/i386/get_clockfreq.c: New file.
10056 * libc/sys/linux/machine/i386/hp-timing.c: Ditto.
10057 * libc/sys/linux/machine/i386/hp-timing.h: Ditto.
10058 * libc/sys/linux/sys/linux_time.h: New file.
10059 * libc/sys/linux/sys/time.h: Remove include of <linux/time.h> and
10060 replace with <sys/linux_time.h>.
baf051ca 10061
0431ed4e
JR
10062Wed Jun 26 16:33:25 2002 J"orn Rennecke <joern.rennecke@superh.com>
10063
10064 * libc/sys/sh/crt0.S: Remove vestigial .section directive.
10065
fc067ba5
JJ
100662002-06-25 Jeff Johnston <jjohnstn@redhat.com>
10067
ba3ccd63
EB
10068 * libc/sys/linux/Makefile.am: Consolidate additional items under
10069 ADD_OBJS.
10070 * libc/sys/linux/Makefile.in: Regenerated.
fc067ba5 10071
ffddf61e
JJ
100722002-06-25 Jeff Johnston <jjohnstn@redhat.com>
10073
ba3ccd63
EB
10074 * libc/sys/linux/sethostname.c: New file.
10075 * libc/sys/linux/Makefile.am: Add sethostname.c support.
10076 * libc/sys/linux/Makefile.in: Regenerated.
ffddf61e 10077
d5487d3f
TF
100782002-06-24 Thomas Fitzsimmons <fitzsim@redhat.com>
10079
10080 * libc/search/db_local.h: New file.
10081 * libc/include/db.h: Remove.
10082 * libc/search/Makefile.am (LIB_SOURCES): Add db_local.h.
10083 * libc/search/hash.c (MIN,MAX): Add macros. Change <db.h> to
10084 "db_local.h".
10085 * libc/search/hash_bigkey.c: Likewise.
10086 * libc/search/hash_buf.c: Likewise.
10087 * libc/search/hash_func.c: Likewise.
10088 * libc/search/hash_log2.c: Likewise.
10089 * libc/search/hash_page.c: Likewise.
10090
100912002-06-24 J"orn Rennecke <joern.rennecke@superh.com>
e08a6118 10092
1e7ca711 10093 * libc/machine/sh/strlen.S: New file.
e08a6118
JR
10094 * libc/machine/sh/Makefile.am (lib_a_SOURCES): Add rule for it.
10095 * libc/machine/sh/Makefile.am: Regenerate.
10096
59c6d6c4
JJ
100972002-06-24 Jeff Johnston <jjohnstn@redhat.com>
10098
ba3ccd63
EB
10099 * libc/sys/linux/gethostname.c: Change name to __gethostname and
10100 add gethostname alias.
59c6d6c4 10101
a70486d7
JJ
101022002-06-24 Jeff Johnston <jjohnstn@redhat.com>
10103
10104 * libc/include/math.h: Remove <sys/types.h>.
a5dadf33 10105 (__dmath): Use __ULong instead of __uint32_t.
a70486d7 10106 * libc/include/sys/reent.h: If long or int is not 32-bits,
a5dadf33 10107 include <sys/types.h> to get definitions for __int32_t and __uint32_t.
a70486d7
JJ
10108 * libc/stdlib/mprec.h: Include <sys/types.h> to get integer defs.
10109 * libm/common/fdlibm.h: Ditto.
10110
3118725a
TF
101112002-06-24 Thomas Fitzsimmons <fitzsim@redhat.com>
10112
10113 * libc/include/ndbm.h: Remove.
10114 * libc/search/ndbm.c: Remove.
10115
30a06168
TF
101162002-06-24 WATANABE Hirofumi <eban@os.rim.or.jp>
10117
10118 * libc/stdio/fseek.c (fseek): Fix braces.
10119
01f5155e
CV
101202002-06-21 Corinna Vinschen <corinna@vinschen.de>
10121
10122 * libc/time/strftime.c (strftime): Add %e format specifier.
10123
930bc96b
TF
101242002-06-21 Thomas Fitzsimmons <fitzsim@redhat.com>
10125
10126 * libc/search/hash.h (LITTLE_ENDIAN, BIG_ENDIAN): Define if not
10127 previously defined.
10128
55105f86
JJ
101292002-06-21 Richard Earnshaw (rearnsha@arm.com)
10130
ba3ccd63
EB
10131 * libc/sys/arm/sys/param.h (BIG_ENDIAN, LITTLE_ENDIAN): Define.
10132 (BYTE_ORDER): Define as appropriate for the target.
55105f86 10133
2e78444a
JJ
101342002-06-21 Jeff Johnston <jjohnstn@redhat.com>
10135
10136 * libc/include/sys/config.h[__linux__]: Set _READ_WRITE_RETURN_TYPE
10137 to _ssize_t.
10138 * libc/sys/linux/io.c (read, write): Change to return ssize_t.
10139
d427d092
JJ
101402002-06-21 Jeff Johnston <jjohnstn@redhat.com>
10141
10142 * libc/include/stdio.h (__getline, __getdelim): New prototypes.
10143 * libc/include/time.h [HAVE_GETDATE](getdate, getdate_r): Ditto.
10144 [HAVE_GETDATE](getdate_err): New error code.
10145 * libc/stdio/Makefile.am: Add support for getline.c and getdelim.c.
10146 * libc/stdio/Makefile.in: Regenerated.
10147 * libc/stdio/getdelim.c: New file.
10148 * libc/stdio/getline.c: Ditto.
10149 * libc/sys/linux/Makefile.am: Add support for getdate.c, getdate_err.c
10150 and ntp_gettime.c. Also add AM_CFLAGS to point to libc/stdio.
10151 * libc/sys/linux/Makefile.in: Regenerated.
10152 * libc/sys/linux/getdate.c: New file.
10153 * libc/sys/linux/getdate_err.c: Ditto.
10154 * libc/sys/linux/ntp_gettime.c: Ditto.
10155 * libc/sys/linux/time.c (adjtimex, ntp_adjtime): New functions.
10156 * libc/sys/linux/sys/stdio.h (getline, getdelim): New macros.
10157
35728d4f
JJ
101582002-06-21 Jeff Johnston <jjohnstn@redhat.com>
10159
10160 * libc/include/math.h: Add <sys/types.h> to get _uint32_t definition.
10161 * libc/include/machine/types.h: Skip __off_t, __pid_t, and
10162 __loff_t definitions if special _HAVE_SYSTYPES macro defined.
10163 * libc/include/sys/config.h: Removed _uint*, _int* definitions.
10164 * libc/include/sys/param.h: Remove i386 case which is handled
10165 by default case.
10166 (BIG_ENDIAN, LITTLE_ENDIAN): Protect
10167 definitions in case they are already defined.
10168 (BYTE_ORDER): Add default case using _IEEE_BIG_ENDIAN and
10169 _IEEE_LITTLE_ENDIAN flags.
10170 * libc/include/sys/reent.h: Change __uint32_t references to
10171 use _ULong instead.
10172 (_REENT_GETDATE_REENT_P): New macro.
10173 * libc/include/sys/types.h (__int16_t, __uint16_t): Added.
10174 (__int32_t, __uint32_t, __int64_t, __uint64_t): Ditto.
10175 * libc/search/hash.h: Add default setting of BYTE_ORDER,
10176 LITTLE_ENDIAN, and BIG_ENDIAN, if not already defined.
10177 * libc/sys/linux/sys/types.h: Include <sys/_types.h>. Define
10178 ssize_t based on _ssize_t. Remove __socklen_t, __uintptr_t,
10179 pid_t, off_t, loff_t, caddr_t, and daddr_t type
10180 definitions which are done by subsequent glibc headers.
10181 Add macro definitions to prevent subsequent header files from
10182 defining pid_t, off_t, ssize_t, and key_t. Move uintptr_t and
10183 intptr_t to after glibc definitions of types they are based on.
10184
4a2bfab7
JJ
101852002-06-21 Jeff Johnston <jjohnstn@redhat.com>
10186
10187 * libc/include/errno.h: Protect from multiple inclusion.
10188
f42d18ea
NC
101892002-06-21 Nick Clifton <nickc@cambridge.redhat.com>
10190
10191 * libc/sys/arm/swi.h (ADP_Stopped_RunTimeError): Set correct value.
10192
a7b23a8f
TF
101932002-06-20 Thomas Fitzsimmons <fitzsim@redhat.com>
10194
10195 * Makefile.am (LIB_OBJECTLISTS): Add
10196 libc/search/objectlist.awk.in.
10197 * libc/Makefile.am (SUBDIRS): Add search.
10198 (SUBLIBS): Add search/libsearch.la.
10199 * libc/configure.in (AC_OUTPUT): Add search/Makefile.
10200 * libc/search: New directory.
10201 * libc/search/Makefile.am: New file.
10202 * libc/search/extern.h: New file.
10203 * libc/search/hash.c: New file.
10204 * libc/search/hash.h: New file.
10205 * libc/search/hash_bigkey.c: New file.
10206 * libc/search/hash_buf.c: New file.
10207 * libc/search/hash_func.c: New file.
10208 * libc/search/hash_log2.c: New file.
10209 * libc/search/hash_page.c: New file.
10210 * libc/search/hcreate.3: New file.
10211 * libc/search/hcreate.c: New file.
a7b23a8f
TF
10212 * libc/search/hcreate_r.c: New file.
10213 * libc/search/ndbm.c: New file.
10214 * libc/search/page.h: New file.
10215 * libc/search/tdelete.c: New file.
10216 * libc/search/tdestroy.c: New file.
10217 * libc/search/tfind.c: New file.
10218 * libc/search/tsearch.3: New file.
10219 * libc/search/tsearch.c: New file.
10220 * libc/search/twalk.c: New file.
10221 * libc/include/db.h: New file.
10222 * libc/include/ndbm.h: New file.
10223 * libc/include/search.h: New file.
10224 * libc/include/sys/queue.h: New file.
10225 * libc/include/sys/cdefs.h: New file.
10226 * libc/include/sys/param.h
10227 [__IEEE_LITTLE_ENDIAN,__IEEE_BIG_ENDIAN]: Set BYTE_ORDER to
10228 LITTLE_ENDIAN or BIG_ENDIAN.
10229 * libc/include/sys/errno.h (EFTYPE): New macro.
10230 * libc/search/bsearch.c: Move from libc/stdlib.
10231 * libc/search/qsort.c: Likewise.
10232 * libc/stdlib/Makefile.am (LIB_SOURCES): Remove bsearch.c and
10233 qsort.c.
10234 (CHEWOUT_FILES): Remove bsearch.def and qsort.def.
10235 * libc/stdlib/stdlib.tex: Remove references to bsearch and qsort.
10236
ef467338
JJ
102372002-06-19 Jeff Johnston <jjohnstn@redhat.com>
10238
ba3ccd63
EB
10239 * libc/sys/linux/Makefile.am: Add support for message queue routines,
10240 ipc routines, and ftok.
10241 * libc/sys/linux/Makefile.in: Regenerated.
10242 * libc/sys/linux/ftok.c: New file.
10243 * libc/sys/linux/ipc.c: Ditto.
10244 * libc/sys/linux/mq_close.c: Ditto.
10245 * libc/sys/linux/mq_getattr.c: Ditto.
10246 * libc/sys/linux/mq_notify.c: Ditto.
10247 * libc/sys/linux/mq_open.c: Ditto.
10248 * libc/sys/linux/mq_receive.c: Ditto.
10249 * libc/sys/linux/mq_send.c: Ditto.
10250 * libc/sys/linux/mq_setattr.c: Ditto.
10251 * libc/sys/linux/mq_unlink.c: Ditto.
10252 * libc/sys/linux/mqlocal.h: Ditto.
10253 * libc/sys/linux/include/mqueue.h: Ditto.
10254 * libc/sys/linux/sys/types.h: Define __gid_t_defined and
10255 __uid_t_defined.
ef467338 10256
7f55c08c
TF
102572002-06-19 J"orn Rennecke <joern.rennecke@superh.com>
10258
10259 * libm/common/sf_lround.c (round): Change name to: (lround).
10260 * libm/common/sf_remquo.c (remquo): Pass all arguemnts to
10261 remquof.
10262
c9ca68d7
TF
102632002-06-18 Thomas Fitzsimmons <fitzsim@redhat.com>
10264
10265 * testsuite/lib/passfail.exp (newlib_pass_fail_all): New
10266 procedure.
10267 (newlib_pass_fail): Change to compile and run only one file.
10268 * testsuite/newlib.locale/locale.exp: Use new
10269 newlib_pass_fail_all procedure.
10270 * testsuite/newlib.string/string.exp: Likewise.
10271
4ecedd09
DB
102722002-06-18 Dave Brolley <brolley@redhat.com>
10273
10274 From Catherine Moore, Michael Meissner, Richard Sandiford:
10275 * libc/include/machine/setjmp.h (_JBLEN): Define for __frv__.
10276 (_JBTYPE): Ditto.
10277 * libc/include/sys/config.h (__IEEE_BIG_ENDIAN): Ditto.
10278 (__ATTRIBUTE_IMPURE_PTR__): Ditto.
10279 * libc/include/machine/ieeefp.h (__IEEE_BIG_ENDIAN): Ditto.
10280 * configure.host: Support frv-*-*.
10281 * libc/machine/frv/Makefile.am: New file.
10282 * libc/machine/frv/configure.in: New file.
10283 * libc/machine/frv/setjmp.S: New file.
10284
af1c257a
TF
102852002-06-18 Thomas Fitzsimmons <fitzsim@redhat.com>
10286
10287 * libc/include/ctype.h: Remove isblank macro.
10288
10289 * libc/ctype/Makefile.am (LIB_SOURCES): Add isblank.c.
10290 * libc/ctype/isblank.c: New file.
10291 * libc/include/ctype.h [!__STRICT_ANSI__]: Add isblank
10292 declaration. Add isblank macro.
10293
4e04fa90
JJ
102942002-06-18 Jeff Johnston <jjohnstn@redhat.com>
10295
ba3ccd63
EB
10296 * testsuite/newlib.stdlib/atexit.c: New file.
10297 * testsuite/newlib.stdlib/atexit.exp: Ditto.
10298 * testsuite/newlib.string/tstring.c: Change default start size
10299 to something more reasonable for embedded platforms.
4e04fa90 10300
b56d7e79
TF
103012002-06-14 Thomas Fitzsimmons <fitzsim@redhat.com>
10302
ece3c72f
TF
10303 * libc/sys/linux/sys/errno.h (EFTYPE): Add macro.
10304
b56d7e79
TF
10305 * libc/argz: New directory.
10306 * libc/argz/*: New files.
10307 * libc/argz/argz_add.c: New file.
10308 * libc/argz/argz_add_sep.c: New file.
10309 * libc/argz/argz_append.c: New file.
10310 * libc/argz/argz_count.c: New file.
10311 * libc/argz/argz_create.c: New file.
10312 * libc/argz/argz_create_sep.c: New file.
10313 * libc/argz/argz_delete.c: New file.
10314 * libc/argz/argz_extract.c: New file.
10315 * libc/argz/argz_insert.c: New file.
10316 * libc/argz/argz_next.c: New file.
10317 * libc/argz/argz_replace.c: New file.
10318 * libc/argz/argz_stringify.c: New file.
10319 * libc/argz/buf_findstr.c: New file.
10320 * libc/argz/envz_add.c: New file.
10321 * libc/argz/envz_entry.c: New file.
10322 * libc/argz/envz_get.c: New file.
10323 * libc/argz/envz_merge.c: New file.
10324 * libc/argz/envz_remove.c: New file.
10325 * libc/argz/envz_strip.c: New file.
10326 * libc/include/argz.h: New file.
10327 * libc/include/envz.h: New file.
10328 * Makefile.am (LIBC_OBJECTLISTS): Add
10329 libc/argz/objectlist.awk.in.
10330 * libc/Makefile.am (SUBDIRS): Add argz.
10331 (SUBLIBS): Add argz/libargz.la.
10332 * libc/configure.in (AC_OUTPUT): Add argz/Makefile.
10333 * libc/include/errno.h: Add error_t typedef.
10334
d062d3dd
JJ
103352002-06-13 Jeff Johnston <jjohnstn@redhat.com>
10336
10337 * libc/include/stdlib.h: Add _Exit prototype.
10338 * libc/stdlib/Makefile.am: Add _Exit.c support.
10339 * libc/stdlib/Makefile.in: Ditto.
10340 * libc/stdlib/_Exit.c: New file.
10341
a47e66ae
JJ
103422002-06-13 Stephen L. Moshier <steve@moshier.net>
10343
10344 * libm/math/e_pow.c (__ieee754_pow): Fix case whereby
10345 x is close to -1.0 and y is very large to use ax (absolute value)
10346 instead of x.
10347 * libm/math/ef_pow.c (__ieee754_powf): Ditto.
10348
13f7d71f
JR
10349Thu Jun 13 19:23:40 2002 J"orn Rennecke <joern.rennecke@superh.com>
10350
10351 * libc/machine/sh/strcpy.S (strcpy, __SHMEDIA__ code):
10352 Fix clobbering bytes before destination if src and dst have same
10353 non-zero misalignment.
1f1fb421
JR
10354
10355 * libc/machine/sh/memset.S (memset, __SHMEDIA__ code):
10356 Fixed bug in writing end of set region.
10357
b2e8018f
CF
103582002-06-10 Christopher Faylor <cgf@redhat.com>
10359
10360 * libc/include/process.h: Remove cygwin-only sexec* declarations. Fix
10361 spawnve declaration.
10362
0953fe64
TF
103632002-06-06 Thomas Fitzsimmons <fitzsim@redhat.com>
10364
10365 * libm/common/s_fdim.c: New file.
10366 * libm/common/s_fma.c: Likewise.
10367 * libm/common/s_fmax.c: Likewise.
10368 * libm/common/s_fmin.c: Likewise.
10369 * libm/common/s_fpclassify.c: Likewise.
10370 * libm/common/s_lrint.c: Likewise.
10371 * libm/common/s_lround.c: Likewise.
10372 * libm/common/s_nearbyint.c: Likewise.
10373 * libm/common/s_remquo.c: Likewise.
10374 * libm/common/s_round.c: Likewise.
10375 * libm/common/s_scalbln.c: Likewise.
10376 * libm/common/s_signbit.c: Likewise.
10377 * libm/common/s_trunc.c: Likewise.
10378 * libm/common/sf_fdim.c: Likewise.
10379 * libm/common/sf_fma.c: Likewise.
10380 * libm/common/sf_fmax.c: Likewise.
10381 * libm/common/sf_fmin.c: Likewise.
10382 * libm/common/sf_lrint.c: Likewise.
10383 * libm/common/sf_lround.c: Likewise.
10384 * libm/common/sf_nearbyint.c: Likewise.
10385 * libm/common/sf_remquo.c: Likewise.
10386 * libm/common/sf_round.c: Likewise.
10387 * libm/common/sf_scalbln.c: Likewise.
10388 * libm/common/sf_trunc.c: Likewise.
10389 * libm/math/w_exp2.c: Likewise.
10390 * libm/math/w_tgamma.c: Likewise.
10391 * libm/math/wf_exp2.c: Likewise.
10392 * libm/math/wf_tgamma.c: Likewise.
10393 * libm/mathfp/s_exp2.c: Likewise.
10394 * libm/mathfp/s_tgamma.c: Likewise.
10395 * libm/mathfp/sf_exp2.c: Likewise.
10396 * libm/mathfp/sf_tgamma.c: Likewise.
10397 * libm/math/er_gamma.c: Fix return value.
10398 * libm/math/erf_gamma.c: Likewise.
10399 * libm/mathfp/er_gamma.c: Likewise.
10400 * libm/mathfp/erf_gamma.c: Likewise.
10401 * libc/include/math.h (!__STRICT_ANSI__): Include ISOC99-specific
10402 declarations and macros.
10403 Regenerated all Makefile.in, aclocal.m4 and configure files to
10404 use new libtool macros in top-level libtool.m4
10405
39e65e01
JJ
104062002-06-05 Jeff Johnston <jjohnstn@redhat.com>
10407
ba3ccd63
EB
10408 * libc/include/string.h[__linux__]: Add strsignal prototype.
10409 * libc/include/sys/lock.h: New file with default locking support.
10410 * libc/include/sys/reent.h: Add signal buffer support for strsignal
10411 and psignal.
10412 * libc/posix/Makefile.am: Add support for readdir_r.c.
10413 * libc/posix/Makefile.in: Regenerated.
10414 * libc/posix/closedir.c: Add locking support and hash table cleanup.
10415 * libc/posix/opendir.c: Add lock support.
10416 * libc/posix/readdir.c: Ditto.
10417 * libc/posix/rewinddir.c: Ditto.
10418 * libc/posix/scandir.c: Ditto.
10419 * libc/posix/seekdir.c: Ditto.
10420 * libc/posix/telldir.c: Ditto plus add _cleanupdir routine to
10421 clean up leftover hash table entries.
10422 * libc/posix/readdir_r.c: New file.
10423 * libc/sys/linux/Makefile.am: Add psignal.c and strsignal.c support.
10424 * libc/sys/linux/Makefile.in: Regenerated.
10425 * libc/sys/linux/sys/dirent.h: Add dd_lock to DIR structure.
10426 * libc/sys/linux/sys/signal.h: Add psignal prototype.
10427 * libc/sys/linux/psignal.c: New file.
10428 * libc/sys/linux/strsignal.c: Ditto.
39e65e01 10429
cc890e89
CV
104302002-06-03 Corinna Vinschen <corinna@vinschen.de>
10431
10432 * libc/include/sys/types.h: Don't define dev_t when compiling for
10433 Cygwin.
10434
ea55e3f7
JJ
104352002-05-31 Jeff Johnston <jjohnstn@redhat.com>
10436
ba3ccd63
EB
10437 * libc/sys/linux/Makefile.am: Add sig.c and sigaction.c. Also
10438 make siglist.inc dependent on sig.c instead of signal.c.
10439 * libc/sys/linux/Makefile.in: Regenerated.
10440 * libc/sys/linux/sig.c: Rename from signal.c and change code to
10441 use NSIG instead of _NSIG.
10442 * libc/sys/linux/sigaction.c: New file.
10443 * libc/sys/linux/signal.c: Changed to be linux signal() function
10444 so as to override regular newlib default signal.c.
10445 * libc/sys/linux/machine/i386/Makefile.am: Remove sigset.c.
10446 * libc/sys/linux/machine/i386/Makefile.in: Regenerated.
10447 * libc/sys/linux/machine/i386/sigset.c: Moved to linux main directory.
10448 * libc/sys/linux/sigset.c: Moved from machine/i386 directory.
10449 * libc/sys/linux/sys/signal.h: Redefine NSIG to _NSIG and override
10450 default linux sigset_t typedef by defining it equal to __sigset_t.
10451 * libc/unix/sigset.c: Add check so code isn't compiled on systems
10452 with a sigset_t that isn't implemented with a single int.
ea55e3f7 10453
9d362914
JJ
104542002-05-30 Jeff Johnston <jjohnstn@redhat.com>
10455
ba3ccd63
EB
10456 * libc/sys/linux/Makefile.am: Add support for new files.
10457 * libc/sys/linux/Makefile.in: Regenerated.
10458 * libc/sys/linux/ids.c: Add __getuid weak alias for getuid.
10459 * libc/sys/linux/signal.c: Change to use real-time syscalls for
10460 sigsuspend, sigprocmask, and sigpending. Also remove sigaction as
10461 it is in a separate file now.
10462 * libc/sys/linux/machine/i386/Makefile.am
10463 * libc/sys/linux/machine/i386/Makefile.in
10464 * libc/sys/linux/sys/signal.h: Add include of <bits/signum.h>.
10465 * libc/sys/linux/sigaction.c: New file.
10466 * libc/sys/linux/sigqueue.c: Ditto.
10467 * libc/sys/linux/sigwait.c: Ditto.
10468 * libc/sys/linux/machine/i386/sigaction.c: Ditto.
10469 * libc/sys/linux/kernel_sigaction.h: Ditto.
9d362914 10470
b1f07180
JJ
104712002-05-28 Jeff Johnston <jjohnstn@redhat.com>
10472
ba3ccd63
EB
10473 * libc/sys/linux/Makefile.am: Add support for cfspeed.c and
10474 tcsendbrk.c.
10475 * libc/sys/linux/Makefile.in: Regenerated.
10476 * libc/sys/linux/termios.c: Add tcflow(), tcflush(),
10477 tcgetpgrp(), and tcsetpgrp() functions.
10478 * libc/sys/linux/sys/termios.h: Add include of machine/termios.h
10479 to get __MAX_BAUD rate.
10480 * libc/sys/linux/machine/i386/include/termios.h: New file.
10481 * libc/include/machine/termios.h: Ditto.
10482 * libc/sys/linux/cfspeed.c: Ditto.
10483 * libc/sys/linux/tcsendbrk.c: Ditto.
b1f07180 10484
d29587b4
JJ
104852002-05-24 Jeff Johnston <jjohnstn@redhat.com>
10486
ba3ccd63
EB
10487 * libc/include/string.h: Add strnlen and strerror_r prototypes.
10488 * libc/string/Makefile.am: Add strnlen.c and strerror_r.c support.
10489 * libc/string/Makefile.in: Regenerated.
10490 * libc/string/strerror_r.c: New file.
10491 * libc/string/strnlen.c: New file.
10492 * libc/sys/linux/Makefile.am: Add rename.c.
10493 * libc/sys/linux/Makefile.in: Regenerated.
10494 * libc/sys/linux/rename.c: New file to override default rename.
d29587b4 10495
9a292385
TF
104962002-05-24 Thomas Fitzsimmons <fitzsim@redhat.com>
10497
10498 * libc/sys/linux/sys/cdefs.h: Add __weak_reference macros.
10499 * libc/sys/linux/sys/time.h: Add conversion macros.
10500 * libc/sys/linux/sys/types.h: Add FD_ macros. Include <bits/types.h>.
10501 * libc/sys/linux/ids.c: Add setresuid and syslog syscalls.
10502 * libc/sys/linux/gethostname.c: New file.
10503 * libc/sys/linux/seteuid.c: New file.
10504 * libc/sys/linux/sysctl.c: New file.
17c0c97d 10505
7a364eb3
JJ
105062002-05-23 Jeff Johnston <jjohnstn@redhat.com>
10507
ba3ccd63
EB
10508 * libc/string/Makefile.am: Add support for strsep.c.
10509 * libc/string/Makefile.in: Regenerated.
10510 * libc/string/strsep.c: New file.
10511 * libc/string/strtok.c: Change to call __strtok_r service routine.
10512 * libc/string/strtok_r.c: Add __strtok_r routine which takes
10513 additional flag parameter regarding whether to skip leading delimeters.
10514 Change strtok_r to call __strtok_r.
7a364eb3 10515
164ee5b0
JJ
105162002-05-23 Gareth Pearce <tilps@hotmail.com>
10517
ba3ccd63
EB
10518 * libc/stdio/Makefile.am: Modify to add setbuffer.c and setlinebuf.c.
10519 * libc/stdio/Makefile.in: Regenerated.
10520 * libc/stdio/setbuffer.c: New file.
10521 * libc/stdio/setlinebuf.c: New file.
164ee5b0 10522
f6b2b567
JJ
105232002-05-23 Jeff Johnston <jjohnstn@redhat.com>
10524
ba3ccd63
EB
10525 * libc/sys/linux/Makefile.am: Add resource.c.
10526 * libc/sys/linux/Makefile.in: Regenerated.
10527 * libc/sys/linux/resource.c: New file.
10528 * libc/sys/linux/time.c: Add settimeofday, getitimer, and setitimer.
10529 * libc/sys/linux/machine/i386/Makefile.am: Remove syscalls.c.
10530 * libc/sys/linux/machine/i386/Makefile.in: Regenerated.
10531 * libc/sys/linux/machine/i386/syscalls.c: Removed as functions
10532 are now found in libc/sys/linux/resource.c.
f6b2b567 10533
afe56517
JJ
105342002-05-23 Jeff Johnston <jjohnstn@redhat.com>
10535
ba3ccd63
EB
10536 * libc/include/string.h (bcmp, bcopy, bzero): Change prototypes
10537 to use void * pointers and comply with Single Unix spec.
10538 * libc/string/bcmp.c: Change to use void * instead of char *.
10539 * libc/string/bcopy.c: Ditto.
10540 * libc/string/bzero.c: Ditto.
afe56517 10541
7736feb2
JJ
105422002-05-22 Jeff Johnston <jjohnstn@redhat.com>
10543
10544 * libc/sys/linux/shm_open.c: New file.
10545 * libc/sys/linux/shm_unlink.c: Ditto.
10546 * libc/sys/linux/Makefile.am: Add support for shm_open.c and
10547 shm_unlink.c.
10548 * libc/sys/linux/Makefile.in: Regenerated.
10549 * libc/sys/linux/sys/types.h: Add some additional checks to see
10550 if clock_t or time_t is already defined.
10551
19f111bd
JJ
105522002-05-22 Jeff Johnston <jjohnstn@redhat.com>
10553
ba3ccd63
EB
10554 * Makefile.am: Don't pass $toollibdir down directly in
10555 AM_MAKEFLAGS as it causes all multilibs to use the same toollibdir.
10556 Pass it under the name: top_toollibdir.
10557 * Makefile.in: Regenerated.
19f111bd 10558
c811b1ee
CV
105592002-05-22 Corinna Vinschen <vinschen@redhat.com>
10560
10561 * libc/include/sys/types.h: Revert previous patch.
10562
2b43ad33
CV
105632002-05-22 Corinna Vinschen <vinschen@redhat.com>
10564
10565 * libc/include/sys/types.h: Include cygwin/types.h always under
10566 Cygwin, not only if _POSIX_THREADS is defined.
10567
dd671cde
TF
105682002-05-21 Dhananjay Deshpande <dhananjayd@kpit.com>
10569
10570 * configure.host: Specify sys_dir=h8300hms for h8300-*-coff* target.
10571
5e2cbfb6
JJ
105722002-05-17 Jeff Johnston <jjohnstn@redhat.com>
10573
10574 * Makefile.am: Copy and install headers from sys/machine/include
10575 directory. Also pass $toollibdir to lower-level directories.
10576 * Makefile.in: Regenerated.
17c0c97d 10577 * libc/include/stdio.h[!_REENT_ONLY]: Change stdin, stdout, and
5e2cbfb6
JJ
10578 stderr to use _REENT macro instead of _impure_ptr directly.
10579 * libc/include/sys/config.h[__i386__][__linux__]: Define
10580 __DYNAMIC_REENT__.
17c0c97d 10581 * libc/include/sys/reent.h[!_REENT_ONLY]: Change _REENT macro to be
5e2cbfb6
JJ
10582 call to __getreent() function if !__SINGLE_THREAD__ and
10583 __DYNAMIC_REENT__ is set.
10584 * libc/reent/Makefile.am: Add support for getreent.c.
10585 * libc/reent/Makefile.in: Regenerated.
10586 * libc/string/strerror.c: Add check if EOPNOTSUPP and ENOTSUP are same.
10587 * libc/sys/linux/Makefile.am: Add support for new files.
10588 * libc/sys/linux/configure.in: Add $EXTRA_DIRS variable.
10589 * libc/sys/linux/Makefile.in: Regenerated.
10590 * libc/sys/linux/configure: Ditto.
10591 * libc/sys/linux/io.c: Add poll syscall. Also weak-alias
10592 __close, __read, __write, __poll, __open, __lseek, __fcntl from
10593 their __libc_ counterparts.
10594 * libc/sys/linux/io64.c: Add __libc_ prefix to lseek64 and open64
10595 and weak-alias to regular names.
10596 * libc/sys/linux/pread64.c: Rename to __libc_pread64 and weak-alias
10597 to pread64 and __pread64.
10598 * libc/sys/linux/process.c: Weak_alias __libc_getpid to __getpid.
10599 * libc/sys/linux/pwrite64.c: Rename to __libc_pwrite64 and
10600 weak-alias to pwrite64.
10601 * libc/sys/linux/sched.c: Weak-alias __libc_sched_getparam,
10602 __libc_sched_getscheduler, __libc_sched_get_priority_max,
10603 __libc_sched_get_priority_min, and __libc_sched_setschedule to
17c0c97d 10604 name with __ instead of __libc_.
5e2cbfb6
JJ
10605 * libc/sys/linux/siglongjmp.c: Include <machine/weakalias.h>.
10606 Rename siglongjmp to __libc_siglongjmp and weak-alias to siglongjmp.
10607 Call __libc_longjmp instead of longjmp, from __libc_siglongjmp.
10608 * libc/sys/linux/signal.c: Rename raise to __libc_raise and weak-alias
10609 to raise.
10610 * libc/sys/linux/socket.c: Weak-alias __libc_connect to __connect and
10611 __libc_send to __send.
10612 * libc/sys/linux/time.c: Weak-alias __libc_gettimeofday to
10613 __gettimeofday.
10614 * libc/sys/linux/wait.c: Rename wait to __libc_wait and weak-alias
10615 it to wait. Rename wait3 to __libc_wait3 and weak-alias it to wait3.
10616 * libc/sys/linux/include/setjmp.h: Use __jmp_buf in sigjmp_buf
10617 type and typedef __jmp_buf to jmp_buf.
10618 * libc/sys/linux/machine/i386/Makefile.am: Add syscalls.c and
10619 setjmp.S.
10620 * libc/sys/linux/machine/i386/Makefile.in: Regenerated.
10621 * libc/sys/linux/machine/i386/crt0.c: Add support to clear .bss
10622 section.
10623 * libc/sys/linux/machine/i386/socketcall.h: Change to use __libc_
10624 prefix for function macros and then use weak_alias() to regular names.
10625 * libc/sys/linux/machine/i386/syscall.h: Ditto.
10626 * libc/sys/linux/sys/errno.h: Define EOPNOTSUP to be ENOTSUP.
10627 * libc/sys/linux/sys/stdio.h: Define _flockfile and _funlockfile
10628 to be flockfile() and funlockfile() respectively.
10629 * libc/sys/linux/sys/types.h
10630 * libc/reent/getreent.c: New file.
10631 * libc/sys/linux/flockfile.c: Ditto.
10632 * libc/sys/linux/funlockfile.c: Ditto.
10633 * libc/sys/linux/getreent.c: Ditto.
10634 * libc/sys/linux/pread.c: Ditto.
10635 * libc/sys/linux/pwrite.c: Ditto.
10636 * libc/sys/linux/raise.c: Ditto.
10637 * libc/sys/linux/system.c: Ditto.
10638 * libc/sys/linux/tcdrain.c: Ditto.
10639 * libc/sys/linux/machine/i386/i386mach.h: Ditto.
10640 * libc/sys/linux/machine/i386/setjmp.S: Ditto.
10641 * libc/sys/linux/machine/i386/syscalls.c: Ditto.
10642 * libc/sys/linux/machine/i386/weakalias.h: Ditto.
10643 * libc/sys/linux/machine/i386/include/setjmp.h: Ditto.
10644
7fc85bd1
TF
106452002-05-14 Dhananjay Deshpande <dhananjayd@kpit.com>
10646
10647 * newlib/libc/sys/h8300hms/Makeile.am (lib_a_SOURCES): Add read.c.
10648 * newlib/libc/sys/h8300hms/read.c: New file. Magic trap 0xC8 for sim.
10649 * newlib/libc/sys/h8300hms/syscalls.c: Move _read() to read.c.
10650 * newlib/libs/sys/h8300hms/sys/syscall.h: New file.
10651
6935231f 10652Thu May 16 17:24:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
d7a2f413
JR
10653
10654 * libc/machine/sh/strcpy.S (strcpy): Replace LITTLE_ENDIAN with
6935231f
JR
10655 __LITTLE_ENDIAN__. make sure r0 has right value at first loop
10656 exit point.
d7a2f413 10657
3a6cb01b
TF
106582002-05-15 Thomas Fitzsimmons <fitzsim@redhat.com>
10659
a68fa571
TF
10660 * testsuite/lib/newlib.exp: Add newlib_include_flags to compile
10661 options when testing natively on i[3456]86-*-linux.
10662
3a6cb01b
TF
10663 * testsuite/lib/checkoutput.exp (newlib_check_output): Output
10664 only one pass or fail per test file. Trim \r's from output
10665 values received from test programs. Remove support for named
10666 tests.
10667 * testsuite/newlib.locale/UTF-8.exp: Update to support new
10668 newlib_check_output behaviour.
10669 * testsuite/newlib.locale/UTF-8.c: Likewise.
10670
dc824ef7
JJ
106712002-05-15 Jeff Johnston <jjohnstn@redhat.com>
10672
ba3ccd63
EB
10673 * libc/include/stdlib.h: Add on_exit prototype.
10674 * libc/include/sys/reent.h (struct _atexit): Add argument array
10675 and bits to track type of exit routine to support both on_exit
10676 and atexit.
10677 (_REENT_INIT_PTR): Add missing fields that won't be zeroed out
10678 by default and change the setting of the atexit structure.
10679 (_REENT_INIT)[!_REENT_SMALL]: Remove extraneous end brace.
10680 * libc/stdlib/on_exit.c: New file.
10681 * libc/stdlib/Makefile.am: Add support for on_exit.
10682 * libc/stdlib/Makefile.in: Regenerated.
10683 * libc/stdlib/atexit.c: Change to initialize types field.
10684 * libc/stdlib/exit.c: Change to look at types field for each
10685 exit routine and either call an atexit-style or an on_exit-style
10686 routine accordingly.
dc824ef7 10687
48d91b4a
JJ
106882002-05-13 Jeff Johnston <jjohnstn@redhat.com>
10689
ba3ccd63
EB
10690 * libc/machine/powerpc/vfprintf.c(__VFPRINTF_R)[__ALTIVEC__]: Don't
10691 allow v specifier with n or L specifiers. For vector c format,
10692 move tmp declaration to the top.
48d91b4a 10693
024739eb
JJ
106942002-05-13 Jeff Johnston <jjohnstn@redhat.com>
10695
ba3ccd63
EB
10696 * libc/machine/powerpc/vfprintf.c(__VFPRINTF_R)[__ALTIVEC__]: Restore
10697 the original format specifier when looping for vectors to compensate
10698 for any changes made in vector %g format processing.
10699 Also add syntax checking for various invalid scenarios
10700 involving vector format extensions.
10701 * libc/machine/powerpc/vfscanf.c(__VFSCANF_R)[__ALTIVEC__]: Fix
10702 return code setting for vector formats. Also treat vector
10703 separator mismatch as a match error instead of an input error.
10704 Perform some syntax checking for vector formats.
024739eb 10705
7d2ce898
TF
107062002-05-10 Mark Bradshaw <bradshaw@staff.crosswalk.com>
10707
10708 * libc/include/string.h (!__STRICT_ANSI__): Add strlcat and strlcpy.
10709 * libc/string/Makefile.am: Add strlcat.c and strlcpy.c.
10710 * libc/string/strlcat.c: New file.
10711 * libc/string/strlcpy.c: New file.
10712
809b6ce7
JJ
107132002-05-10 Jeff Johnston <jjohnstn@redhat.com>
10714
10715 * libc/string/strchr.c: Fix comment typo.
10716
76490806
TF
107172002-05-08 Thomas Fitzsimmons <fitzsim@redhat.com>
10718
0c048a9a
TF
10719 * acinclude.m4: Add support for --enable-newlib-multithread.
10720 * configure.host (newlib_cflags): Add -D__SINGLE_THREAD__ if
10721 --enable-newlib-multithread=no.
10722
76490806
TF
10723 * libc/stdio/getc_u.c: New file.
10724 * libc/stdio/getchar_u.c: New file.
10725 * libc/stdio/putc_u.c: New file.
10726 * libc/stdio/putchar_u.c: New file.
10727 * libc/include/stdio.h: Add declarations for getc_unlocked,
10728 getchar_unlocked, putc_unlocked and putchar_unlocked.
10729 * libc/stdio/Makefile.am (LIB_SOURCES): Add new files.
10730 (CHEWOUT_FILES): Add new files' .def's.
10731 * libc/stdio/putchar.c (_putchar_r): Replace __sputc with putc.
10732
96bff22c
JR
10733Wed May 8 17:47:35 2002 J"orn Rennecke <joern.rennecke@superh.com>
10734
10735 * libc/machine/sh/memset.S (memset, __SHMEDIA__ code):
10736 Also handle as single quad word when destination ends at last
10737 byte of first quad word. Fix byte selection in single quad code.
10738
e71372fa
TF
107392002-05-07 Thomas Fitzsimmons <fitzsim@redhat.com>
10740
10741 * libc/include/sys/stdio.h: New file.
10742 * libc/sys/linux/sys/stdio.h: New file.
10743 * libc/include/stdio.h: Add declarations for flockfile,
10744 ftrylockfile, and funlockfile. Include <sys/stdio.h>.
10745 * libc/stdio/clearerr.c: Add file locking.
10746 * libc/stdio/fclose.c: Likewise.
10747 * libc/stdio/feof.c: Likewise.
10748 * libc/stdio/ferror.c: Likewise.
10749 * libc/stdio/fflush.c: Likewise.
10750 * libc/stdio/fgetc.c: Likewise.
10751 * libc/stdio/fgetpos.c: Likewise.
10752 * libc/stdio/fgets.c: Likewise.
10753 * libc/stdio/fileno.c: Likewise.
10754 * libc/stdio/fputc.c: Likewise.
10755 * libc/stdio/fputs.c: Likewise.
10756 * libc/stdio/fread.c: Likewise.
10757 * libc/stdio/freopen.c: Likewise.
10758 * libc/stdio/fseek.c: Likewise.
10759 * libc/stdio/ftell.c: Likewise.
10760 * libc/stdio/fwrite.c: Likewise.
10761 * libc/stdio/getc.c: Likewise.
10762 * libc/stdio/putc.c: Likewise.
10763 * libc/stdio/setvbuf.c: Likewise.
10764 * libc/stdio/ungetc.c: Likewise.
10765 * libc/stdio/vfprintf.c: Likewise.
10766
a03790e4
JJ
107672002-05-06 Jeff Johnston <jjohnstn@redhat.com>
10768
60b2107c
TF
10769 * libc/machine/powerpc/vfprintf.c[__ALTIVEC__]: Add vector
10770 support for 'p' format. Fix code to print bytes for vector
10771 integer formats that do not specify 'h' or 'l'.
10772 * libc/machine/powerpc/vfscanf.c[__ALTIVEC__]: Add vector support
10773 for 'p' specifier. Fix code to scan 16 bytes for vector integer
10774 formats that do not specify 'h' or 'l'.
10775
10776 * libc/include/stdlib.h (a64l, l64a, _l64a_r): Added prototypes.
10777
9c7d6a9d
TF
107782002-05-06 Nick Clifton <nickc@cambridge.redhat.com>
10779
10780 * libc/sys/arm/syscalls.c (_rename): Add parameter names.
10781 (_sbrk): Add cast of return value.
10782
c33c3635
JJ
107832002-05-06 Jeff Johnston <jjohnstn@redhat.com>
10784
10785 * libc/include/sys/reent.h (_l64a_buf): New reentrant area.
10786 (_REENT_L64A_BUF): New macro for accessing area.
10787 * libc/stdlib/Makefile.am: Add a64l.c and l64a.c.
10788 * libc/stdlib/Makefile.in: Regenerated.
10789 * libc/stdlib/a64l.c: New file.
10790 * libc/stdlib/l64a.c: New file.
10791
f78e59a8
JJ
107922002-05-06 Jeff Johnston <jjohnstn@redhat.com>
10793
ba3ccd63
EB
10794 * libc/unix/pread.c: Fix typo for _pread_r.
10795 * libc/unix/pwrite.c: Fix type for _pwrite_r.
10796 * libc/sys/linux/pread64.c: Fix typo for read syscall.
10797 * libc/sys/linux/pwrite64.c: Fix typo for write syscall.
f78e59a8 10798
4b3f6588
CF
107992002-05-03 Christopher Faylor <cgf@redhat.com>
10800
10801 * libc/include/sys/unistd.h: Define getdomainname under cygwin.
10802
e911832c
TF
108032002-05-03 Thomas Fitzsimmons <fitzsim@redhat.com>
10804
10805 * configure.in (CC_FOR_NEWLIB): Change -isystem's to -I's.
10806
0d0fdc8d
CF
108072002-05-01 Christopher Faylor <cgf@redhat.com>
10808
10809 * utmp.h: Define more UNIX constants.
10810
1e997c56
TF
108112002-05-01 Thomas Fitzsimmons <fitzsim@redhat.com>
10812
0717f01c
TF
10813 * Makefile.am: Add support for checking multilibs.
10814
09841445
TF
10815 * libc/Makefile.am (SUBLIBS): Add LIBC_EXTRA_LIB.
10816 (SUBDEFS): Add LIBC_EXTRA_DEF.
10817 * libc/configure.in (LIBC_EXTRA_LIB): New variable.
10818 (LIBC_EXTRA_DEF): Likewise.
10819 (extra_dir): Likewise.
10820 * libc/machine/xscale/machine: New directory.
10821 * libc/machine/xscale/machine/profile.h: New file.
10822
1e997c56
TF
10823 * Makefile.am (site.exp): Remove newlib_cflags. Add
10824 multibuildtop.
10825 * testsuite/newlib.locale/UTF-8.c: Change fprintf's to printf's.
10826 * testsuite/lib/flags.exp: New file.
10827 * testsuite/lib/newlib.exp: Load flags.exp.
10828 (newlib_target_compile): Remove libgloss directory references.
10829 (newlib_init): Remove newlib_cflags references.
10830
4cf4f010
TF
108312002-04-30 Thomas Fitzsimmons <fitzsim@redhat.com>
10832
f6bdb6f9
TF
10833 * testsuite/lib/newlib.exp (newlib_target_compile): Change
10834 method of finding libgloss_target_dir.
10835
4cf4f010
TF
10836 * Makefile.am (site.exp): Change host_alias, host_triplet,
10837 target_alias, target_triplet to refer to gcc's host and target
10838 variables (newlib's build and host variables).
10839 * testsuite/lib/newlib.exp (newlib_init): Change build
10840 references to host references, host references to target
10841 references to reflect Makefile.am changes.
10842 (newlib_target_compile): Likewise.
10843 (newlib_finish): Likewise.
10844
83096ae8
JJ
108452002-04-29 Jeff Johnston <jjohnstn@redhat.com>
10846
10847 * libc/sys/linux/io64.c (fstat64, lstat64): New syscalls added.
10848
822afa53
JL
108492002-04-29 Jonathan Larmour <jlarmour@redhat.com>
10850
10851 * libc/sys/arm/syscalls.c (_rename): New function. Just a stub.
10852 (_system): New function. Ditto.
10853 * libc/stdlib/system.c (_system_r): Call _system if HAVE_SYSTEM.
10854 * configure.host: define HAVE_SYSTEM and HAVE_RENAME for xscale
10855 targets.
10856
29798f0d
JJ
108572002-04-29 Jeff Johnston <jjohnstn@redhat.com>
10858
ba3ccd63
EB
10859 * libc/include/sys/unistd.h (pread, pwrite): Added prototypes.
10860 * libc/unix/Makefile.am: Add pread.c and pwrite.c.
10861 * libc/sys/linux/Makefile.am: Add pread64.c and pwrite64.c.
10862 * libc/sys/linux/Makefile.in: Regenerated.
10863 * libc/unix/Makefile.in: Ditto.
10864 * libc/sys/linux/pread64.c: New file.
10865 * libc/sys/linux/pwrite64.c: Ditto.
10866 * libc/unix/pread.c: Ditto.
10867 * libc/unix/pwrite.c: Ditto.
29798f0d 10868
557856bd
JJ
108692002-04-26 Jeff Johnston <jjohnstn@redhat.com>
10870
10871 * libc/sys/linux/Makefile.am: Add io64.c.
10872 * libc/sys/linux/Makefile.in: Regenerated.
10873 * libc/sys/linux/io.c(mkfifo, fsync, fdatasync): Added syscalls.
17c0c97d 10874 * libc/sys/linux/signal.c (sigwaitinfo, sigtimedwait): Ditto.
557856bd
JJ
10875 * libc/sys/linux/io64.c: New file.
10876
7b2b12d5
JJ
108772002-04-26 Jeff Johnston <jjohnstn@redhat.com>
10878
10879 * configure.in (CC_FOR_NEWLIB): New variable that
10880 bases on $(CC) and adds targ-include and libc/include as
10881 -isystem directives if they are not already part of $(CC).
10882 * Makefile.am (AM_MAKEFLAGS): Change setting of CC to equal
10883 $(CC_FOR_NEWLIB).
10884 * configure: Regenerated.
10885 * Makefile.in: Ditto.
10886
c62adacc
JJ
108872002-04-25 Jeff Johnston <jjohnstn@redhat.com>
10888
10889 * libc/sys/linux/Makefile.am: Add support for sched.c.
10890 * libc/sys/linux/Makefile.in: Regenerated.
10891 * libc/sys/linux/sched.c: New file.
10892 * libc/sys/linux/sys/types.h: Add struct timespec.
10893
217ad4a0
TF
108942002-04-25 Thomas Fitzsimmons <fitzsim@redhat.com>
10895
10896 * configure.in (CC_FOR_BUILD): Set to gcc whether
10897 cross-compiling or not.
10898 (CC): Add -isystem's for targ-include and libc/include when they
10899 do not already appear in CC.
10900
eaa75b70
TF
109012002-04-24 Thomas Fitzsimmons <fitzsim@redhat.com>
10902
10903 * Makefile.am (check-DEJAGNU): New target.
10904 (site.exp): Likewise.
10905 * acinclude.m4 (NEWLIB_CONFIGURE): Replace AC_CANONICAL_HOST
10906 with AC_CANONICAL_SYSTEM. Remove AC_CANONICAL_BUILD.
10907 * libc/locale/locale.c (_setlocale_r): Add UTF-8 support.
10908 * libc/stdlib/mbtowc_r.c (_mbtowc_r): Likewise.
10909 * libc/stdlib/wctomb_r.c (_wctomb_r): Likewise.
10910 * testsuite: New directory.
10911 * testsuite/config: Likewise.
10912 * testsuite/lib: Likewise.
10913 * testsuite/newlib.locale: Likewise.
10914 * testsuite/newlib.string: Likewise.
10915 * testsuite/config/default.exp: New file.
10916 * testsuite/lib/checkoutput.exp: New file.
10917 * testsuite/lib/newlib.exp: New file.
10918 * testsuite/lib/passfail.exp: New file.
10919 * testsuite/newlib.locale/UTF-8.c: New file.
10920 * testsuite/newlib.locale/UTF-8.exp: New file.
10921 * testsuite/newlib.locale/locale.exp: New file.
10922 * testsuite/newlib.string/string.exp: New file.
10923 * testsuite/newlib.string/tstring.c: New file.
10924
b9f9f699
JJ
109252002-04-23 Jeff Johnston <jjohnstn@redhat.com>
10926
ba3ccd63
EB
10927 * libc/include/machine/types.h (__pid_t, __off_t, __loff_t): Added.
10928 * libc/sys/linux/Makefile.am: Add support for mmap.c.
10929 * libc/sys/linux/Makefile.in: Regenerated.
10930 * libc/sys/linux/mmap.c: New file.
10931 * libc/sys/linux/machine/i386/syscall.h: Add _syscall6 macro.
10932 * libc/sys/linux/sys/types.h (pid_t, off_t, loff_t): Added.
b9f9f699 10933
7394edbb
TF
109342002-04-22 Thomas Fitzsimmons <fitzsim@redhat.com>
10935
10936 * acinclude.m4 (newlib_cflags): Remove include directories that
10937 are already specified in the top-level configure.in's FLAGS_FOR_TARGET.
10938
b9f9f699 109392002-04-19 Bill Siegmund <ctc-dsl@pacbell.net>
59be2290
JJ
10940
10941 * libc/machine/xscale/memchr.c: Don't use multi-line strings.
10942 * libc/machine/xscale/memcmp.c: Ditto.
10943 * libc/machine/xscale/memcpy.c: Ditto.
10944 * libc/machine/xscale/memmove.c: Ditto.
10945 * libc/machine/xscale/memset.c: Ditto.
10946 * libc/machine/xscale/strchr.c: Ditto.
10947 * libc/machine/xscale/strcmp.c: Ditto.
10948 * libc/machine/xscale/strcpy.c: Ditto.
10949 * libc/machine/xscale/strlen.c: Ditto.
10950
2dd4c4dc
JJ
109512002-04-19 Alexandre Oliva <aoliva@redhat.com>
10952
ba3ccd63
EB
10953 * libc/include/sys/config.h: Remove include of <limits.h>.
10954 (__INT_MAX__, __LONG_MAX__): Define like GCC's limits.h would
10955 define INT_MAX and LONG_MAX. Use them in tests.
2dd4c4dc 10956
0d844014
JJ
109572002-04-19 Jeff Johnston <jjohnstn@redhat.com>
10958
10959 * configure.host: Add support for powerpc-eabialtivec*.
10960 * libc/include/malloc.h: Add include of <machine/malloc.h>.
10961 * libc/include/stdlib.h: Add include of <machine/stdlib.h>.
10962 * libc/include/machine/malloc.h: New file.
10963 * libc/include/machine/stdlib.h: Ditto.
10964 * libc/include/machine/setjmp.h: Add support for powerpc altivec.
10965 * libc/machine/powerpc/Makefile.am: Add conditional objects and
10966 sources based on configuration.
10967 * libc/machine/powerpc/Makefile.in: Regenerated.
10968 * libc/machine/powerpc/configure: Ditto.
10969 * libc/machine/powerpc/configure.in: Add check for
10970 powerpc-eabialtivec* in which case add in additional source files.
10971 * libc/machine/powerpc/setjmp.S: Add altivec support.
10972 * libc/machine/powerpc/vec_calloc.c: New file.
10973 * libc/machine/powerpc/vec_free.c: Ditto.
10974 * libc/machine/powerpc/vec_malloc.c: Ditto.
10975 * libc/machine/powerpc/vec_mallocr.c: Ditto.
10976 * libc/machine/powerpc/vec_realloc.c: Ditto.
10977 * libc/machine/powerpc/machine/malloc.h: Ditto.
10978 * libc/machine/powerpc/machine/stdlib.h: Ditto.
10979 * libc/machine/powerpc/vfprintf.c: New file that is vfprintf.c
10980 with added altivec format specifiers.
10981 * libc/machine/powerpc/vfscanf.c: New file that is vfscanf.c with
10982 added altivec format specifiers.
10983
d413aadc
JS
109842002-04-19 Joel Sherrill <joel@OARcorp.com>
10985
10986 * libs/sys/rtems/crt0.c: Satisfy gcc's references to libc functions
10987 while autoconf is trying to link main(){}.
10988
27193895
JJ
109892002-04-17 Jeff Johnston <jjohnstn@redhat.com>
10990
ba3ccd63
EB
10991 * libc/sys/linux/signal.c: Remove include of <bits/sigset.h>.
10992 * libc/sys/linux/sys/signal.h: Add include of <bits/sigset.h>.
27193895 10993
10d00216
JJ
109942002-04-17 Jeff Johnston <jjohnstn@redhat.com>
10995
6b0f808e
JJ
10996 * libc/time/time.tex: Add tzset info.
10997
109982002-04-17 Jeff Johnston <jjohnstn@redhat.com>
10999
11000 * libc/include/time.h (tzset, _tzset_r): Added prototypes.
11001 (strptime): Moved prototype to be within !__STRICT_ANSI__.
11002 (_tzname, _daylight, _timezone): No long __CYGWIN__ only.
11003 (tzname): Defined for all platforms.
11004 (daylight, timezone): Defined only for CYGWIN.
11005 * libc/sys/linux/machine/i386/crt0.c: Add call to tzset() after
11006 environment set up.
11007 * libc/stdlib/setenv_r.c (_setenv_r): Call tzset() if the TZ
11008 environment variable is set.
11009 * libc/time/Makefile.am: Add support for tzset.c, tzlock.c, and
11010 tzset_r.c.
11011 * libc/time/Makefile.in: Regenerated.
11012 * libc/time/gmtime.c (gmtime): Changed to call gmtime_r.
11013 * libc/time/gmtime_r.c (gmtime_r): Changed to call _mktm_r.
11014 * libc/time/lcltime_r.c (lcltime_r): Ditto.
11015 * libc/time/local.h: New local header file.
11016 * libc/time/mktime.c (mktime): Add timezone support.
11017 * libc/time/mktm_r.c: New file which is the common engine
11018 for gmtime_r and lcltime_r. This code has timezone support.
11019 * libc/time/strftime.c (strftime): Add %Z timezone support.
11020 * libc/time/tzlock.c: New file containing timezone lock stubs.
11021 * libc/time/tzset.c: New file containing tzset() routine.
11022 * libc/time/tzset_r.c: New file containing _tzset_r and
11023 internal routine for calculating timezone changes for specified year.
11024
110252002-04-17 Thomas Fitzsimmons <fitzsim@redhat.com>
11026
11027 * configure.in (CRT0_DIR): Set to libc/.
11028 (CRT1_DIR): Set to ${crt1_dir}/ if crt1_dir is non-empty.
11029 * Makefile.am: Change all occurrences of $(CRT0_DIR)/$(CRT0) to
11030 $(CRT0_DIR)$(CRT0) to prevent make warnings. Likewise for
11031 $(CRT1_DIR)/$(CRT1).
11032 * libc/machine/xstormy16/Makefile.in: Regenerated.
11033 * libc/machine/xstormy16/aclocal.m4: Regenerated.
11034 * libc/machine/xstormy16/configure: Regenerated.
11035
110362002-04-13 Alexandre Oliva <aoliva@redhat.com>
11037
11038 * libc/stdlib/mallocr.c (malloc_extend_top): If correction sbrk
11039 fails, don't bail out, and try to correct next time.
11040
11041 * libc/include/sys/config.h: Include limits.h.
11042
110432002-04-12 Eric Norum <eric.norum@usask.com>
11044
11045 * libc/sys/rtems/crt0.c (rtems_gxx_mutex_init): Dummy
11046 routine to allow autoconf to determine that building executables
11047 for rtems works.
11048 (rtems_gxx_mutex_lock, rtems_gxx_mutex_unlock): Ditto.
11049 (rtems_gxx_mutex_once): Ditto.
11050
110512002-04-09 Tom Rix <trix@redhat.com>
11052
11053 * libc/include/sys/reent.h (_REENT_INIT_PTR): Fix typo.
11054
110552002-04-09 Mark Bradshaw <bradshaw@staff.crosswalk.com>
11056
ba3ccd63
EB
11057 * libc/include/time.h: Fix strptime declaration.
11058 * libc/time/Makefile.am: Add strptime.c.
6b0f808e 11059 * libc/time/Makefile.in: Regenerated.
ba3ccd63 11060 * libc/time/strptime.c: New file.
6b0f808e
JJ
11061
110622002-04-08 Jeff Johnston <jjohnstn@redhat.com>
11063
11064 * libc/sys/linux/include/setjmp.h: Add sigjmp_buf type,
11065 siglongjmp prototype, and sigsetjmp macro definition.
11066 * libc/sys/linux/siglongjmp.c: New file.
11067 * libc/sys/linux/Makefile.am: Add support for siglongjmp.
11068 * libc/sys/linux/Makefile.in: Regenerated.
11069
110702002-04-04 Jeff Johnston <jjohnstn@redhat.com>
11071
11072 * Makefile.am: Add support for installing crt1.o if one exists.
11073 * configure.host: Specify crt1.o for linux.
11074 * configure.in: Expose CRT1 and CRT1_DIR for Makefile.am to use.
11075 * Makefile.in: Regenerated.
11076 * configure: Ditto.
11077 * libc/include/sys/unistd.h (_SC_STREAM_MAX, _SC_PRIORITY_SCHEDULING):
11078 Added for non-Cygwin, non-RTEMS configurations.
11079 * libc/sys/linux/Makefile.am: Add support for crt1 and sysconf.
11080 * libc/sys/linux/Makefile.in: Regenerated.
11081 * libc/sys/linux/crt1.c: New empty file to override one defaulted
11082 by gcc. This fixes problem with reconfiguring linux newlib build.
11083 * libc/sys/linux/sysconf.c: New file.
11084
110852002-04-03 Jeff Johnston <jjohnstn@redhat.com>
11086
11087 * configure.host: Add support for machine subdirectory of
11088 sys subdirectory.
11089 * configure.in: Add check for sys machine subdirectory.
11090 * Makefile.am: Ditto.
11091 * configure: Regenerated.
11092 * Makefile.in: Ditto.
11093 * libc/sys/linux/crt0.c: Moved to machine/i386 directory.
11094 * libc/sys/linux/sys/syscall.h: Ditto.
11095 * libc/sys/linux/sleep.c: New file.
11096 * libc/sys/linux/socket.c: Ditto.
11097 * libc/sys/linux/sockops.h: Ditto.
11098 * libc/sys/linux/stack.c: Ditto.
11099 * libc/sys/linux/usleep.c: Ditto.
11100 * libc/sys/linux/machine/Makefile.am: Ditto.
11101 * libc/sys/linux/machine/Makefile.in: Ditto.
11102 * libc/sys/linux/machine/aclocal.m4: Ditto.
11103 * libc/sys/linux/machine/configure: Ditto.
11104 * libc/sys/linux/machine/configure.in: Ditto.
11105 * libc/sys/linux/machine/i386/Makefile.am: Ditto.
11106 * libc/sys/linux/machine/i386/Makefile.in: Ditto.
11107 * libc/sys/linux/machine/i386/aclocal.m4: Ditto.
11108 * libc/sys/linux/machine/i386/configure: Ditto.
11109 * libc/sys/linux/machine/i386/configure.in: Ditto.
11110 * libc/sys/linux/machine/i386/crt0.c: Ditto.
11111 * libc/sys/linux/machine/i386/sigset.c: Ditto.
11112 * libc/sys/linux/machine/i386/sigstack.h: Ditto.
11113 * libc/sys/linux/machine/i386/socketcall.h: Ditto.
11114 * libc/sys/linux/machine/i386/syscall.h: Ditto.
11115 * libc/sys/linux/sys/select.h: Ditto.
11116 * libc/sys/linux/configure.in: Add support for machine directory.
11117 * libc/sys/linux/Makefile.am: Ditto plus add new files above.
11118 * libc/sys/linux/Makefile.in: Regenerated.
11119 * libc/sys/linux/configure: Ditto.
11120 * libc/sys/linux/brk.c: Use machine/syscall.h instead of sys/syscall.h.
11121 * libc/sys/linux/inode.c: Ditto.
11122 * libc/sys/linux/linux.c: Ditto.
11123 * libc/sys/linux/process.c: Ditto.
11124 * libc/sys/linux/systat.c: Ditto.
11125 * libc/sys/linux/time.c: Ditto.
11126 * libc/sys/linux/wait.c: Ditto.
11127 * libc/sys/linux/ids.c: Change header plus add setfsgid/setfsuid.
11128 * libc/sys/linux/io.c: Change header plus add readv/writev.
11129 * libc/sys/linux/signal.c: Change header plus change sigsuspend to
11130 use __sigsuspend syscall.
11131 * libc/sys/linux/select.c: Change header plus change select to
11132 use _newselect syscall.
11133 * libc/sys/linux/sys/cdefs.h: Add a number of standard definitions
11134 used by glibc header files.
11135 * libc/sys/linux/sys/types.h: Add __socklen_t and __useconds_t
11136 types.
11137
111382002-04-01 Jeff Johnston <jjohnstn@redhat.com>
11139
11140 * libc/include/sys/reent.h (_REENT_INIT_PTR): New macro for
11141 initializing a struct _reent that has been dynamically allocated.
11142 (_REENT_CHECK_MISC): New macro that checks _misc struct for
11143 _REENT_SMALL and does nothing otherwise.
11144 (_REENT_STRTOK_LAST): New macro for reentrant strtok.
11145 (_REENT_MBLEN_STATE): New macro for reentrant mblen.
11146 (_REENT_MBTOWC_STATE): New macro for reentrant mbtowc.
11147 (_REENT_WCTOMB_STATE): New macro for reentrant wctomb.
11148 [_REENT_SMALL](struct _misc_reent): New structure containing
11149 miscellaneous reentrant areas needed by newlib.
11150 [_REENT_SMALL](struct _reent): Add _misc pointer.
11151 [_REENT_SMALL](_REENT_INIT_MISC): New macro.
11152 * libc/string/strtok (strtok): Change to use _REENT_CHECK_MISC
11153 and _REENT_STRTOK_LAST macros.
11154 * libc/stdlib/mblen (mblen): Change to use _REENT_CHECK_MISC
11155 and _REENT_MBLEN_STATE macros.
11156 * libc/stdlib/mbtowc (mbtowc): Change to use _REENT_CHECK_MISC
11157 and _REENT_MBTOWC_STATE macros.
11158 * libc/stdlib/wctomb (wctomb): Change to use _REENT_CHECK_MISC
11159 and _REENT_WCTOMB_STATE macros.
11160
111612002-04-01 Till Straumann <strauman@SLAC.Stanford.EDU>
11162
11163 * libc/stdlib/getenv_r.c (_findenv_r): Add missing ENV_UNLOCK.
11164
11165Wed Mar 27 07:34:44 2002 Jason Tishler <jason@tishler.net>
11166
11167 * libc/include/sys/features.h (_POSIX_SEMAPHORES): New Cygwin define.
11168
11169Tue Mar 26 17:17:10 2002 J"orn Rennecke <joern.rennecke@superh.com>
11170
11171 * libc/machine/sh/memcpy.S (Large): Fix alignment rounding.
11172 Store high part of leading bytes too.
11173
111742002-03-22 Richard Sandiford <rsandifo@redhat.com>
11175
11176 * libm/math/ef_hypot.c: Increase scale factor to 68.
11177
111782002-03-13 Alexandre Oliva <aoliva@redhat.com>
11179
11180 * libc/machine/mips/strlen.c (strlen) [__mips16]: Fix off-by-two
11181 error.
11182
111832002-03-12 Jeff Johnston <jjohnstn@redhat.com>
11184
ba3ccd63
EB
11185 * libc/sys/go32/access.c: Change license to relaxed license
11186 used in identical file throughout newlib/libgloss.
6b0f808e
JJ
11187
111882002-03-12 Richard Earnshaw <rearnsha@arm.com>
11189
11190 * libc/sys/arm/access.c: New file.
11191 * libc/sys/arm/Makefile.am (lib_a_SOURCES): Add access.c.
11192 * libc/sys/arm/Makefile.in: Regenerate.
11193 * libc/sys/arm/syscalls.c (_stat): New function.
11194
111952002-03-11 Michael Meissner <meissner@redhat.com>
11196
11197 * libc/machine/mips/Makefile.am (lib_a_SOURCES): Add Mips specific
11198 variants strlen.c, strcmp.c, strncpy.c, memset.c and memcpy.c.
11199 * libc/machine/mips/Makefile.in: Regenerate.
11200 * libc/machine/mips/memcpy.c: New file, optimized for MIPS.
11201 * libc/machine/mips/memset.c: Dito.
11202 * libc/machine/mips/strcmp.c: Dito.
11203 * libc/machine/mips/strlen.c: Dito.
11204 * libc/machine/mips/strncmp.c: Dito.
11205
112062002-03-06 Jeff Johnston <jjohnstn@redhat.com>
11207
11208 * libc/machine/i386/Makefile.am: Add $(oext) for setjmp
11209 object so it works for shared library or statici library.
112102002-04-17 Jeff Johnston <jjohnstn@redhat.com>
11211
10d00216
JJ
11212 * libc/include/time.h (tzset, _tzset_r): Added prototypes.
11213 (strptime): Moved prototype to be within !__STRICT_ANSI__.
11214 (_tzname, _daylight, _timezone): No long __CYGWIN__ only.
11215 (tzname): Defined for all platforms.
11216 (daylight, timezone): Defined only for CYGWIN.
11217 * libc/sys/linux/machine/i386/crt0.c: Add call to tzset() after
11218 environment set up.
11219 * libc/stdlib/setenv_r.c (_setenv_r): Call tzset() if the TZ
11220 environment variable is set.
11221 * libc/time/Makefile.am: Add support for tzset.c, tzlock.c, and
11222 tzset_r.c.
11223 * libc/time/Makefile.in: Regenerated.
11224 * libc/time/gmtime.c (gmtime): Changed to call gmtime_r.
11225 * libc/time/gmtime_r.c (gmtime_r): Changed to call _mktm_r.
11226 * libc/time/lcltime_r.c (lcltime_r): Ditto.
11227 * libc/time/local.h: New local header file.
11228 * libc/time/mktime.c (mktime): Add timezone support.
11229 * libc/time/mktm_r.c: New file which is the common engine
11230 for gmtime_r and lcltime_r. This code has timezone support.
11231 * libc/time/strftime.c (strftime): Add %Z timezone support.
11232 * libc/time/tzlock.c: New file containing timezone lock stubs.
11233 * libc/time/tzset.c: New file containing tzset() routine.
11234 * libc/time/tzset_r.c: New file containing _tzset_r and
11235 internal routine for calculating timezone changes for specified year.
11236
5f1c13c6
TF
112372002-04-17 Thomas Fitzsimmons <fitzsim@redhat.com>
11238
11239 * configure.in (CRT0_DIR): Set to libc/.
11240 (CRT1_DIR): Set to ${crt1_dir}/ if crt1_dir is non-empty.
11241 * Makefile.am: Change all occurrences of $(CRT0_DIR)/$(CRT0) to
11242 $(CRT0_DIR)$(CRT0) to prevent make warnings. Likewise for
11243 $(CRT1_DIR)/$(CRT1).
11244 * libc/machine/xstormy16/Makefile.in: Regenerated.
11245 * libc/machine/xstormy16/aclocal.m4: Regenerated.
11246 * libc/machine/xstormy16/configure: Regenerated.
11247
0cc261b1
AO
112482002-04-13 Alexandre Oliva <aoliva@redhat.com>
11249
2f3009bd
AO
11250 * libc/stdlib/mallocr.c (malloc_extend_top): If correction sbrk
11251 fails, don't bail out, and try to correct next time.
11252
0cc261b1
AO
11253 * libc/include/sys/config.h: Include limits.h.
11254
26116455
JJ
112552002-04-12 Eric Norum <eric.norum@usask.com>
11256
11257 * libc/sys/rtems/crt0.c (rtems_gxx_mutex_init): Dummy
11258 routine to allow autoconf to determine that building executables
11259 for rtems works.
11260 (rtems_gxx_mutex_lock, rtems_gxx_mutex_unlock): Ditto.
11261 (rtems_gxx_mutex_once): Ditto.
11262
4608280d
TR
112632002-04-09 Tom Rix <trix@redhat.com>
11264
11265 * libc/include/sys/reent.h (_REENT_INIT_PTR): Fix typo.
11266
dea7e25c
JJ
112672002-04-09 Mark Bradshaw <bradshaw@staff.crosswalk.com>
11268
ba3ccd63
EB
11269 * libc/include/time.h: Fix strptime declaration.
11270 * libc/time/Makefile.am: Add strptime.c.
dea7e25c 11271 * libc/time/Makefile.in: Regenerated.
ba3ccd63 11272 * libc/time/strptime.c: New file.
dea7e25c 11273
c5ef1e95
JJ
112742002-04-08 Jeff Johnston <jjohnstn@redhat.com>
11275
11276 * libc/sys/linux/include/setjmp.h: Add sigjmp_buf type,
11277 siglongjmp prototype, and sigsetjmp macro definition.
11278 * libc/sys/linux/siglongjmp.c: New file.
11279 * libc/sys/linux/Makefile.am: Add support for siglongjmp.
11280 * libc/sys/linux/Makefile.in: Regenerated.
11281
6e6cd5bd
JJ
112822002-04-04 Jeff Johnston <jjohnstn@redhat.com>
11283
11284 * Makefile.am: Add support for installing crt1.o if one exists.
11285 * configure.host: Specify crt1.o for linux.
11286 * configure.in: Expose CRT1 and CRT1_DIR for Makefile.am to use.
11287 * Makefile.in: Regenerated.
11288 * configure: Ditto.
11289 * libc/include/sys/unistd.h (_SC_STREAM_MAX, _SC_PRIORITY_SCHEDULING):
11290 Added for non-Cygwin, non-RTEMS configurations.
11291 * libc/sys/linux/Makefile.am: Add support for crt1 and sysconf.
11292 * libc/sys/linux/Makefile.in: Regenerated.
11293 * libc/sys/linux/crt1.c: New empty file to override one defaulted
11294 by gcc. This fixes problem with reconfiguring linux newlib build.
11295 * libc/sys/linux/sysconf.c: New file.
11296
fa4a16a1
JJ
112972002-04-03 Jeff Johnston <jjohnstn@redhat.com>
11298
11299 * configure.host: Add support for machine subdirectory of
11300 sys subdirectory.
11301 * configure.in: Add check for sys machine subdirectory.
11302 * Makefile.am: Ditto.
11303 * configure: Regenerated.
11304 * Makefile.in: Ditto.
11305 * libc/sys/linux/crt0.c: Moved to machine/i386 directory.
11306 * libc/sys/linux/sys/syscall.h: Ditto.
11307 * libc/sys/linux/sleep.c: New file.
11308 * libc/sys/linux/socket.c: Ditto.
11309 * libc/sys/linux/sockops.h: Ditto.
11310 * libc/sys/linux/stack.c: Ditto.
11311 * libc/sys/linux/usleep.c: Ditto.
11312 * libc/sys/linux/machine/Makefile.am: Ditto.
11313 * libc/sys/linux/machine/Makefile.in: Ditto.
11314 * libc/sys/linux/machine/aclocal.m4: Ditto.
11315 * libc/sys/linux/machine/configure: Ditto.
11316 * libc/sys/linux/machine/configure.in: Ditto.
11317 * libc/sys/linux/machine/i386/Makefile.am: Ditto.
11318 * libc/sys/linux/machine/i386/Makefile.in: Ditto.
11319 * libc/sys/linux/machine/i386/aclocal.m4: Ditto.
11320 * libc/sys/linux/machine/i386/configure: Ditto.
11321 * libc/sys/linux/machine/i386/configure.in: Ditto.
11322 * libc/sys/linux/machine/i386/crt0.c: Ditto.
11323 * libc/sys/linux/machine/i386/sigset.c: Ditto.
11324 * libc/sys/linux/machine/i386/sigstack.h: Ditto.
11325 * libc/sys/linux/machine/i386/socketcall.h: Ditto.
11326 * libc/sys/linux/machine/i386/syscall.h: Ditto.
11327 * libc/sys/linux/sys/select.h: Ditto.
11328 * libc/sys/linux/configure.in: Add support for machine directory.
11329 * libc/sys/linux/Makefile.am: Ditto plus add new files above.
11330 * libc/sys/linux/Makefile.in: Regenerated.
11331 * libc/sys/linux/configure: Ditto.
11332 * libc/sys/linux/brk.c: Use machine/syscall.h instead of sys/syscall.h.
11333 * libc/sys/linux/inode.c: Ditto.
11334 * libc/sys/linux/linux.c: Ditto.
11335 * libc/sys/linux/process.c: Ditto.
11336 * libc/sys/linux/systat.c: Ditto.
11337 * libc/sys/linux/time.c: Ditto.
11338 * libc/sys/linux/wait.c: Ditto.
11339 * libc/sys/linux/ids.c: Change header plus add setfsgid/setfsuid.
11340 * libc/sys/linux/io.c: Change header plus add readv/writev.
11341 * libc/sys/linux/signal.c: Change header plus change sigsuspend to
11342 use __sigsuspend syscall.
11343 * libc/sys/linux/select.c: Change header plus change select to
11344 use _newselect syscall.
11345 * libc/sys/linux/sys/cdefs.h: Add a number of standard definitions
11346 used by glibc header files.
11347 * libc/sys/linux/sys/types.h: Add __socklen_t and __useconds_t
11348 types.
11349
d4dca0e4
JJ
113502002-04-01 Jeff Johnston <jjohnstn@redhat.com>
11351
11352 * libc/include/sys/reent.h (_REENT_INIT_PTR): New macro for
11353 initializing a struct _reent that has been dynamically allocated.
11354 (_REENT_CHECK_MISC): New macro that checks _misc struct for
11355 _REENT_SMALL and does nothing otherwise.
11356 (_REENT_STRTOK_LAST): New macro for reentrant strtok.
11357 (_REENT_MBLEN_STATE): New macro for reentrant mblen.
11358 (_REENT_MBTOWC_STATE): New macro for reentrant mbtowc.
11359 (_REENT_WCTOMB_STATE): New macro for reentrant wctomb.
11360 [_REENT_SMALL](struct _misc_reent): New structure containing
11361 miscellaneous reentrant areas needed by newlib.
11362 [_REENT_SMALL](struct _reent): Add _misc pointer.
11363 [_REENT_SMALL](_REENT_INIT_MISC): New macro.
11364 * libc/string/strtok (strtok): Change to use _REENT_CHECK_MISC
11365 and _REENT_STRTOK_LAST macros.
11366 * libc/stdlib/mblen (mblen): Change to use _REENT_CHECK_MISC
11367 and _REENT_MBLEN_STATE macros.
11368 * libc/stdlib/mbtowc (mbtowc): Change to use _REENT_CHECK_MISC
11369 and _REENT_MBTOWC_STATE macros.
11370 * libc/stdlib/wctomb (wctomb): Change to use _REENT_CHECK_MISC
11371 and _REENT_WCTOMB_STATE macros.
11372
54a7c6d2
JJ
113732002-04-01 Till Straumann <strauman@SLAC.Stanford.EDU>
11374
11375 * libc/stdlib/getenv_r.c (_findenv_r): Add missing ENV_UNLOCK.
11376
c82479b1
CF
11377Wed Mar 27 07:34:44 2002 Jason Tishler <jason@tishler.net>
11378
11379 * libc/include/sys/features.h (_POSIX_SEMAPHORES): New Cygwin define.
11380
43ecf6e8
JR
11381Tue Mar 26 17:17:10 2002 J"orn Rennecke <joern.rennecke@superh.com>
11382
11383 * libc/machine/sh/memcpy.S (Large): Fix alignment rounding.
11384 Store high part of leading bytes too.
11385
a485d93f
RS
113862002-03-22 Richard Sandiford <rsandifo@redhat.com>
11387
11388 * libm/math/ef_hypot.c: Increase scale factor to 68.
11389
62a963ee
AO
113902002-03-13 Alexandre Oliva <aoliva@redhat.com>
11391
11392 * libc/machine/mips/strlen.c (strlen) [__mips16]: Fix off-by-two
11393 error.
11394
c53d8453
JJ
113952002-03-12 Jeff Johnston <jjohnstn@redhat.com>
11396
ba3ccd63
EB
11397 * libc/sys/go32/access.c: Change license to relaxed license
11398 used in identical file throughout newlib/libgloss.
c53d8453 11399
d2a246ad
JJ
114002002-03-12 Richard Earnshaw <rearnsha@arm.com>
11401
11402 * libc/sys/arm/access.c: New file.
11403 * libc/sys/arm/Makefile.am (lib_a_SOURCES): Add access.c.
11404 * libc/sys/arm/Makefile.in: Regenerate.
11405 * libc/sys/arm/syscalls.c (_stat): New function.
11406
eabb48d5
MM
114072002-03-11 Michael Meissner <meissner@redhat.com>
11408
11409 * libc/machine/mips/Makefile.am (lib_a_SOURCES): Add Mips specific
11410 variants strlen.c, strcmp.c, strncpy.c, memset.c and memcpy.c.
11411 * libc/machine/mips/Makefile.in: Regenerate.
11412 * libc/machine/mips/memcpy.c: New file, optimized for MIPS.
11413 * libc/machine/mips/memset.c: Dito.
11414 * libc/machine/mips/strcmp.c: Dito.
11415 * libc/machine/mips/strlen.c: Dito.
11416 * libc/machine/mips/strncmp.c: Dito.
11417
2a606041
JJ
114182002-03-06 Jeff Johnston <jjohnstn@redhat.com>
11419
eabb48d5
MM
11420 * libc/machine/i386/Makefile.am: Add $(oext) for setjmp
11421 object so it works for shared library or statici library.
11422 * libc/machine/i386/Makefile.in: Regenerated.
2a606041 11423
55f26f11
JR
11424Wed Mar 6 10:24:26 2002 J"orn Rennecke <joern.rennecke@superh.com>
11425
96bff22c
JR
11426 * libc/machine/sh/Makefile.am (lib_a_SOURCES, SH64 case):
11427 Add memcpy.S, memset.S and strcpy.S.
11428 * libc/machine/sh/Makefile.in: Regenerate.
11429 * libc/machine/sh/asm.h (_ENTRY): Set SH5 alignment to 8 bytes.
55f26f11 11430 (SHHI, SHLO): Define.
96bff22c
JR
11431 * libc/machine/sh/memset.S: Add code for SH5.
11432 * libc/machine/sh/memset.S: Likewise.
11433 * libc/machine/sh/strcpy.S: Likewise.
55f26f11 11434
afecf2fa
JJ
114352002-02-27 Jeff Johnston <jjohnstn@redhat.com>
11436
11437 * configure.host: Add check for --disable-newlib-io-float
11438 configuration option and add -DNO_FLOATING_POINT to newlib cflags
11439 if appropriate.
11440 * acinclude.m4: Added --disable-newlib-io-float option.
11441 * aclocal.m4: Regenerated.
11442 * configure: Ditto.
11443 * doc/aclocal.m4 doc/configure libc/aclocal.m4 libc/configure
17c0c97d 11444 * libc/*/aclocal.m4 libc/*/configure
afecf2fa
JJ
11445 * libm/*/aclocal.m4 libm/*/configure: Ditto.
11446 * libc/stdio/vfprintf.c [!INTEGER_ONLY]: Only set FLOATING_POINT
11447 if NO_FLOATING_POINT flag is not defined.
11448
c1010a63
JJ
114492002-02-25 Jeff Johnston <jjohnstn@redhat.com>
11450
11451 * libc/include/sys/config.h: Add __extension__ in front of
11452 long long references.
11453
630c657e
CV
114542002-02-23 Corinna Vinschen <corinna@vinschen.de>
11455
11456 * libc/include/sys/stat.h (_fstat): Don't declare when compiling Cygwin.
11457 (_stat): Ditto.
11458
59ee2e20
CV
114592002-02-23 Corinna Vinschen <corinna@vinschen.de>
11460
11461 * libc/sys/cygwin/sys/dirent.h (struct __DIR): Use __off32_t instead
11462 of off_t.
11463
2dd68dc2
NC
114642002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
11465
11466 * libc/machine/xscale/strchr.c (strchr): Add 'r1' to the list of
11467 clobbered registers.
11468
55500bf1
TF
114692002-02-19 Thomas Fitzsimmons <fitzsim@redhat.com>
11470
11471 * configure.host (newlib_cflags): When host is in m68* add
11472 -DCOMPACT_CTYPE.
11473
ba0173f0
JJ
114742002-02-15 Jeff Johnston <jjohnstn@redhat.com>
11475
ba3ccd63
EB
11476 * libc/include/sys/config.h: Add definitions for
11477 __int16_t, __uint16_t, __int64_t, and __uint64_t.
ba0173f0 11478
7b61d0c5
JJ
114792002-02-12 Hans-Peter Nilsson <hp@bitrange.com>
11480
ba3ccd63
EB
11481 * libc/sys/mmixware/link.c: New.
11482 * libc/sys/mmixware/sys/syscall.h (TRAP1i, I3f): Make asm
11483 volatile.
11484 * libc/sys/mmixware/times.c (_times): Renamed from times.
11485 * libc/sys/mmixware/open.c (_open): Attempt to handle O_APPEND
11486 properly by reading previous contents, not through BinaryReadWrite.
11487 * libc/sys/mmixware/Makefile.am (lib_a_SOURCES): Add link.c
11488 * libc/sys/mmixware/Makefile.in: Regenerate.
7b61d0c5 11489
a505db65
CV
114902002-02-10 Corinna Vinschen <corinna@vinschen.de>
11491
11492 * libc/include/grp.h: Don't declare group functions when compiling
11493 Cygwin.
11494
f3b39c45
CV
114952002-02-09 Corinna Vinschen <corinna@vinschen.de>
11496
11497 * libc/include/grp.h: Include Cygwin specific header.
11498 * libc/include/sys/stat.h: Ditto. Don't define `struct stat'
11499 when compiling for Cygwin.
11500 * libc/include/sys/types.h: Don't define off_t, uid_t
11501 and gid_t when compiling for Cygwin.
11502
82b3ac56
MG
115032002-02-08 matthew green <mrg@redhat.com>
11504
11505 * libc/include/sys/reent.h (_REENT_CHECK_EMERGENCY): Allocate
11506 _REENT_EMERGENCY_SIZE, not sizeof(char *).
11507
9f25eed9
AO
115082002-02-08 Alexandre Oliva <aoliva@redhat.com>
11509
11510 Contribute sh64-elf.
11511 2001-03-13 Alexandre Oliva <aoliva@redhat.com>
11512 * configure.host (newlib_cflags) [sh*-*-*]: Enable long long
11513 support in printf.
11514 2001-01-29 Alexandre Oliva <aoliva@redhat.com>
11515 * libc/machine/sh/setjmp.S [SH5]: Switch to SHmedia mode before
11516 any labels.
11517 2001-01-24 Alexandre Oliva <aoliva@redhat.com>
11518 * libc/sys/sh/trap.S (___trap34) [SH5]: Don't trash r2.
11519 2000-12-16 Alexandre Oliva <aoliva@redhat.com>
11520 * libc/machine/sh/configure.in: Rework conditionals.
11521 * libc/machine/sh/Makefile.am: Likewise.
11522 * libc/machine/sh/configure, libc/machine/sh/Makefile.in: Rebuilt.
11523 2000-12-01 Alexandre Oliva <aoliva@redhat.com>
11524 * configure.host: Match `sh*'.
11525 * libc/include/machine/setjmp.h: Define for SH5.
11526 * libc/machine/sh/configure.in: Detect SH5.
11527 * libc/machine/sh/configure: Rebuilt.
11528 * libc/machine/sh/Makefile.am: Use only setjmp.S for SH5.
11529 * libc/machine/sh/Makefile.in: Rebuilt.
11530 * libc/machine/sh/asm.h: Adjust for SH5.
11531 * libc/machine/sh/setjmp.S: Implement in SHmedia.
11532 * libc/sys/sh/crt0.S: Likewise.
11533 * libc/sys/sh/trap.S: Likewise.
11534
a2a405ae
JJ
115352002-02-07 Jeff Johnston <jjohnstn@redhat.com>
11536
11537 * libc/machine/i386/Makefile.am: (mach_add_src): Remove.
11538 (mach_add_obj): Conditionally set to setjmp.o or nothing.
11539 (LIB_SOURCES): Remove $(mach_add_src).
11540 (lib_a_LIBADD, lib_a_DEPENDENCIES): Add and set to $(mach_add_src).
11541 (lib_la_LIBADD, lib_la_DEPENDENCIES): Ditto.
11542 * libc/machine/i386/Makefile.in: Regenerate.
11543
27478365
JJ
115442002-02-05 Manik Raina <manik@cisco.com>
11545
994fa212 11546 * libc/misc/dprintf.c (parse_number): #if 0 unused function.
27478365
JJ
11547 * libc/stdlib/ldtoa.c (_ldcheck): Remove unused local variables
11548 s, p, k, and outstr.
11549 * libc/stdlib/dtoa.c (_dtoa_r): Initialize mlo.
11550
815a37f7
JJ
115512002-02-04 Jeff Johnston <jjohnstn@redhat.com>
11552
11553 * libc/include/sys/reent.h [(!_REENT_SMALL]: Add
11554 _REENT_CHECK_EMERGENCY macro.
11555
a4139c12
MG
115562002-02-03 matthew green <mrg@redhat.com>
11557
11558 * libc/reent/signgam.c (__signgam): Fix error in previous.
11559
8195aff7
MG
115602002-02-02 matthew green <mrg@redhat.com>
11561
11562 * libc/include/sys/config.h (_REENT_SMALL): Define for Xstormy16.
11563
11564 * libc/reent/reent.c (_reclaim_reent): Clean for _REENT_SMALL case.
11565 * libc/reent/reent.tex: Add blurb about _REENT_SMALL.
11566 * libc/include/sys/reent.h (struct _reent): Completely new version
11567 for _REENT_SMALL.
11568 (_REENT_INIT): New defines, different defintion depending on _REENT_SMALL.
11569 (_REENT_CHECK, _REENT_CHECK_TM): Likewise.
11570 (_REENT_CHECK_ASCTIME_BUF, _REENT_INIT_RAND48): Likewise.
11571 (_REENT_CHECK_RAND48, _REENT_INIT_MP, _REENT_CHECK_MP): Likewise.
11572 (_REENT_CHECK_EMERGENCY, _REENT_SIGNGAM, _REENT_RAND_NEXT): Likewise.
11573 (_REENT_RAND48_SEED, _REENT_RAND48_MULT, _REENT_RAND48_ADD): Likewise.
11574 (_REENT_MP_RESULT, _REENT_MP_RESULT_K, _REENT_MP_P5S): Likewise.
11575 (_REENT_MP_FREELIST, _REENT_ASCTIME_BUF, _REENT_TM): Likewise.
11576 (_REENT_EMERGENCY): Likewise.
11577
11578 * libc/include/sys/reent.h (struct __sFILE_fake): New struct, same as
11579 the start of the real __sFILE, used for stdin, stdout and stderr until
11580 they are setup properly.
11581 (struct __sFILE): Move location of _data in _REENT_SMALL case.
11582 * libc/stdio/findfp.c (__sinit): Rearrange for _REENT_SMALL case by
11583 allocated stdin, stdout and stderr.
11584 * libc/stdio/getchar.c (_getchar_r): Call _REENT_SMALL_CHECK_INIT().
11585 * libc/stdio/iprintf.c (iprintf, _iprintf_r): Likewise.
11586 * libc/stdio/perror.c (_perror_r): Likewise.
11587 * libc/stdio/printf.c (printf, _printf_r): Likewise.
11588 * libc/stdio/putchar.c (_putchar_r): Likewise.
11589 * libc/stdio/puts.c (_puts_r): Likewise.
11590 * libc/stdio/scanf.c (scanf, _scanf_r): Likewise.
11591 * libc/stdio/vprintf.c (vprintf): Likewise.
11592 * libc/stdio/vscanf.c (vscanf, _vscanf_r): Likewise.
11593
11594 * libc/stdio/tmpnam.c (_tmpnam_r): Use _REENT_EMERGENCY().
11595
11596 * libc/reent/reent.c (_wrapup_reent): Adjust for _REENT_SMALL atexit.
11597 * libc/include/sys/reent.h (_atexit): Limit atexit() entries to 32
11598 for _REENT_SMALL.
11599 * libc/stdlib/atexit.c (atexit): Rearrange for _REENT_SMALL case.
11600 * libc/stdlib/exit.c (exit): Rearrange for _REENT_SMALL case.
11601
11602 * libc/include/sys/reent.h (struct _rand48): Keep _rand_next if
11603 _REENT_SMALL.
11604 * libc/stdlib/drand48.c (_drand48_r): Call _REENT_CHECK_RAND48().
11605 * libc/stdlib/lcong48.c (_lcong48_r): Likewise.
11606 * libc/stdlib/lrand48.c (_lrand48_r): Likewise.
11607 * libc/stdlib/mrand48.c (_mrand48_r): Likewise.
11608 * libc/stdlib/rand48.c (__dorand48): Likewise.
11609 * libc/stdlib/seed48.c (_seed48_r): Likewise.
11610 * libc/stdlib/srand48.c (_srand48_r): Likewise.
11611 * libc/stdlib/rand48.h (__rand48_seed, __rand48_mult, __rand48_add): Define
11612 as _REENT_RAND48_SEED(), _REENT_RAND48_MULT() and _REENT_RAND48_ADD().
11613 * libc/stdlib/dtoa.c (_dtoa_r): Call _REENT_CHECK_MP(). Use
11614 _REENT_MP_RESULT() and _REENT_MP_RESULT_K().
11615 * libc/stdlib/ldtoa.c (_ldtoa_r): Likewise.
11616 * libc/stdlib/rand.c (srand): Use _REENT_RAND_NEXT().
11617 * libc/stdlib/rand.c (rand): Likewise.
11618
11619 * libc/stdlib/mallocr.c (malloc_stats): Call _REENT_SMALL_CHECK_INIT().
11620 * libc/stdlib/mstats.c (_mstats_r): Call _REENT_SMALL_CHECK_INIT().
11621
11622 * libc/stdlib/mprec.c (Balloc): Call _REENT_CHECK_MP. Use
11623 _REENT_MP_FREELIST() and _REENT_MP_P5S.
11624 * libc/include/sys/reent.h (struct _mprec): New structure.
11625
11626 * libc/include/sys/reent.h (struct _reent): Rename _strtok_last to
11627 _unused_strtok_last.
11628 * libc/string/strtok.c (strtok): Use a local static variable.
11629
11630 * libc/include/sys/reent.h (_REENT_ASCTIME_SIZE): New define.
11631 (_REENT_EMERGENCY_SIZE): Likewise.
11632 * libc/time/asctime.c (asctime): Call _REENT_CHECK_ASCTIME_BUF(). Use
11633 _REENT_ASCTIME_BUF().
11634 * libc/time/lcltime.c (localtime): Call _REENT_CHECK_TM(). Use
11635 _REENT_TM().
11636
11637 * libc/include/math.h (__singam_r): Use _REENT_SIGNGAM().
11638 * libc/reent/signgam.c (__signgam): Use _REENT_SIGNGAM().
11639 * libm/math/w_gamma.c (gamma): Use _REENT_SIGNGAM().
11640 * libm/math/w_lgamma.c (lgamma): Use _REENT_SIGNGAM().
11641 * libm/math/wf_gamma.c (gammaf): Use _REENT_SIGNGAM().
11642 * libm/math/wf_lgamma.c (lgammaf): Use _REENT_SIGNGAM().
11643
9c2e7642
GK
116442002-02-01 Geoffrey Keating <geoffk@redhat.com>
11645
11646 * configure.host (xstormy16): Don't use the generic malloc.
11647 * libc/machine/xstormy16/Makefile.am: Build tiny-malloc.
11648 * libc/machine/xstormy16/Makefile.in: Regenerate.
11649 * libc/machine/xstormy16/mallocr.c: New file.
11650 * libc/machine/xstormy16/tiny-malloc.c: New file.
11651
4bb6112f
TF
116522002-01-28 Thomas Fitzsimmons <fitzsim@redhat.com>
11653
11654 * libc/include/sys/signal.h [__CYGWIN__]: Issue error message
11655 when _CYGWIN_TYPES_H is not defined.
11656
8d345552
TF
116572002-01-24 Thomas Fitzsimmons <fitzsim@redhat.com>
11658
11659 * libc/include/sys/signal.h: Revert 2002-01-23 change.
11660
bcc49082
TF
116612002-01-23 Thomas Fitzsimmons <fitzsim@redhat.com>
11662
11663 * libc/include/sys/signal.h: Remove pthread_kill declaration
11664 when __CYGWIN__ is defined.
11665
13baedeb
CF
116662002-01-18 Mark Bradshaw <bradshaw@staff.crosswalk.com>
11667
11668 * libc/include/time.h: Add prototype for strptime for Cygwin.
11669
b2db0ebc
NC
116702002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
11671
ebf139fb
NC
11672 * libc/machine/xscale/memset.c (memset): Fix bug when len == 1 and
11673 dst was not word aligned.
11674
b2db0ebc
NC
11675 * libc/sys/arm/syscalls.c (_sbrk): Return -1 rather than aborting
11676 if too much memory is requested.
11677
798c015d
JJ
116782002-01-11 Jeff Johnston <jjohnstn@redhat.com>
11679
11680 * libc/stdio/vfscanf.c (__svfscanf_r): Change loop that
11681 reads blanks from the input file to break if EOF reached
11682 rather than end processing.
11683
46ad2ef4
JJ
116842002-01-07 Jeff Johnston <jjohnstn@redhat.com>
11685
11686 * MAINTAINERS: Change e-mail addresses to refer to redhat domain.
11687
86b06396
JJ
116882002-01-07 Alan Matsuoka <alanm@redhat.com>
11689
ba3ccd63
EB
11690 * libc/include/machine/ieeefp.h: Configure d10v doubles to
11691 be 32 bits if __DOUBLE__ == 32 otherwise doubles are 64 bits.
11692 libc/include/sys/config.h: Ditto.
86b06396 11693
423d5064
CV
116942001-12-28 Corinna Vinschen <corinna@vinschen.de>
11695
11696 * libc/sys/cygwin/sys/utmp.h: Add definition of UTMP_FILE.
11697
f6eff1c0
GK
116982001-12-22 Geoffrey Keating <geoffk@redhat.com>
11699 Catherine Moore <clm@redhat.com>
11700 Richard Henderson <rth@redhat.com>
11701 Corinna Vinschen <vinschen@redhat.com>
11702
11703 * configure.host: Add support for xstormy16.
11704 * libc/include/machine/ieeefp.h: Add support for xstormy16.
11705 * libc/include/machine/setjmp.h: Add support for xstormy16.
11706 * libc/include/sys/config.h: Add support for xstormy16.
11707 * libc/machine/xstormy16/Makefile.am: New file.
11708 * libc/machine/xstormy16/Makefile.in: New file.
11709 * libc/machine/xstormy16/aclocal.m4: New file.
11710 * libc/machine/xstormy16/configure: New file.
11711 * libc/machine/xstormy16/configure.in: New file.
11712 * libc/machine/xstormy16/setjmp.S: New file.
11713
1f93c55f
TF
117142001-12-19 Thomas Fitzsimmons <fitzsim@redhat.com>
11715
11716 * libm/machine/configure.in (HAVE_LIBM_MACHINE_DIR): New conditional.
11717 * libm/machine/Makefile.am [HAVE_LIBM_MACHINE_DIR] (LIBM_MACHLIB): New variable.
11718
13b918be
CV
117192001-12-19 Corinna Vinschen <corinna@vinschen.de>
11720
11721 * libm/machine/Makefile.am: Change rules to create correct lib.a.
11722 * libm/machine/Makefile.in: Regenerated through automake.
11723
08e857b4
TF
117242001-12-18 Thomas Fitzsimmons <fitzsim@redhat.com>
11725
11726 * Makefile.am (DOCDIR): Force to empty string when doc
11727 directory is not present.
11728
60565ed6
TF
117292001-12-18 Thomas Fitzsimmons <fitzsim@redhat.com>
11730
11731 * libc/machine/i386/f_*: Move to libm/machine/i386.
11732
117332001-12-18 Joel Sherrill <joel@OARcorp.com>
11734
11735 * libm/machine/Makefile.am: Add dummy doc stub so
11736 "make info" works.
11737
117382001-12-17 Joel Sherrill <joel@OARcorp.com>
11739
11740 * libc/include/sys/types.h (ino_t): RTEMS uses long also.
11741
fc504135
TF
117422001-12-17 Thomas Fitzsimmons <fitzsim@redhat.com>
11743
11744 * libc/stdlib/Makefile.am (LIB_COMPILE): Change to equal
11745 $(COMPILE) rather than $(CC).
11746 * libc/stdio/Makefile.am (LIB_COMPILE): Likewise.
11747 (vfprintf.$(oext)): Remove $(INCLUDES), made redundant by
11748 $(LIB_COMPILE) change.
11749 (vfiprintf.$(oext)): Likewise.
11750
efeae9a3
CV
117512001-12-17 Corinna Vinschen <vinschen@redhat.de>
11752
11753 * libc/sys/cygwin/include/unistd.h: Add __UNISTD_GETOPT_ to allow
11754 conditionalized including of getopt stuff.
11755
cdf7120d
TF
117562001-12-14 Thomas Fitzsimmons <fitzsim@redhat.com>
11757
11758 * libc/stdio/Makefile.am (vfprintf.$(oext)): Add $(INCLUDES) to
11759 compile line.
f85be99c 11760 (vfiprintf.$(oext)): Likewise.
cdf7120d 11761
2e1a7175
TF
117622001-12-13 Thomas Fitzsimmons <fitzsim@redhat.com>
11763
11764 * Makefile.shared: New file.
11765 * libc/sys/linux/shared.ld: New file.
11766 * libm/machine/*: New files.
11767 * libm/machine/i386/*: New files.
11768 * Makefile.am: Add libtool support. Change math and mathfp
11769 references to variables.
11770 * configure.host: Add variables for libtool support. Add
11771 libm_machine_dir variable.
11772 * configure.in: Add objectlist variables, for libtool
11773 support. Add CC_FOR_BUILD tests.
11774 * libc/Makefile.am: Add libtool support. Change crt0.o
11775 reference to be a variable reference.
11776 * libc/configure.in: Add libtool support. Change sublib
11777 names to be lib${subdir}.la when using libtool.
11778 * libc/ctype/Makefile.am: Add libtool support.
11779 * libc/errno/Makefile.am: Likewise.
11780 * libc/locale/Makefile.am: Likewise.
11781 * libc/machine/Makefile.am: Likewise.
11782 * libc/machine/configure.in: Likewise.
11783 * libc/machine/i386/Makefile.am: Likewise.
11784 * libc/machine/i386/configure.in: Likewise.
11785 * libc/misc/Makefile.am: Likewise.
11786 * libc/posix/Makefile.am: Likewise.
11787 * libc/reent/Makefile.am: Likewise.
11788 * libc/signal/Makefile.am: Likewise.
11789 * libc/stdio/Makefile.am: Likewise.
11790 * libc/stdlib/Makefile.am: Likewise.
11791 * libc/string/Makefile.am: Likewise.
11792 * libc/sys/Makefile.am: Likewise.
11793 * libc/sys/configure.in: Likewise.
11794 * libc/sys/linux/Makefile.am: Add libtool support. Change
11795 awk reference to a variable reference. Change signal.h
11796 reference to a variable reference.
11797 * libc/sys/linux/configure.in: Add libtool support.
11798 * libc/syscalls/Makefile.am: Likewise.
11799 * libc/time/Makefile.am: Likewise.
11800 * libc/unix/Makefile.am: Likewise.
11801 * libm/Makefile.am: Add libtool support. Change math and
11802 mathfp references to variables.
11803 * libm/configure.in: Add libtool support. Add
11804 LIBM_MACHINE_LIB variable.
11805 * libm/common/Makefile.am: Add libtool support.
11806 * libm/math/Makefile.am: Likewise.
11807 * libm/mathfp/Makefile.am: Likewise.
11808 Regenerate all Makefile.in, aclocal.m4, and configure.
11809
b92591a1
JJ
118102001-12-13 Anita Kulkarni <anitak@kpit.com>
11811
ba3ccd63 11812 * libc/sys/sh/crt0.S: Remove stack symbol definition 0xdeaddead.
b92591a1 11813
355b664e
CF
118142001-12-06 John Peacock <jpeacock@rowman.com>
11815
11816 * libc/include/sys/unistd.h: Correct ualarm declaration.
11817
e9853806
NC
118182001-12-05 Nick Clifton <nickc@cambridge.redhat.com>
11819
11820 * libc/sys/arm/crt0.S: For __USES_INITFINI__ preserve the argument
11821 vector before calling the initialisation functions.
11822
a8e091b0
CF
118232001-11-29 Christopher Faylor <cgf@redhat.com>
11824
11825 * libc/include/dirent.h: Protect against multiple inclusion.
11826
ab634123
CF
118272001-11-27 Christopher Faylor <cgf@redhat.com>
11828
11829 * libc/include/sys/types.h: Define useconds_t.
11830 * libc/include/sys/ulimit.h: Declare ualarm.
11831
d37e401e
CF
118322001-11-21 Christopher Faylor <cgf@redhat.com>
11833
11834 * libc/sys/cygwin/sys/dirent.h (DIR): Add another internal element.
11835
8ac90051
HPN
118362001-11-19 Hans-Peter Nilsson <hp@bitrange.com>
11837
11838 * libc/sys/mmixware/*: Tweak license header in all source files.
11839
d7ca37e4
CV
118402001-11-12 Corinna Vinschen <vinschen@redhat.com>
11841
11842 * libc/include/alloca.h: Move libc/sys/linux/include/alloca.h
11843 to here. Rearrange for general inclusion by stdlib.h.
11844 * libc/include/stdlib.h: Include <alloca.h> if __STRICT_ANSI__
11845 isn't defined.
11846 * libc/sys/linux/include/alloca.h: Move to libc/include.
11847
28f8744e
AG
118482001-11-12 Anthony Green <green@redhat.com>
11849
11850 * libc/sys/arm/crt0.S (__stack_base__): New symbol.
11851
4cede8c4
HPN
118522001-11-13 Hans-Peter Nilsson <hp@bitrange.com>
11853
11854 * libc/sys/mmixware/*: Correct spacing in all source files.
11855 * libc/sys/mmixware/syscall.h: Move misplaced file...
11856 * libc/sys/mmixware/sys/syscall.h: ...here.
11857
8be9b48b
JJ
118582001-11-12 Hans-Peter Nilsson <hp@bitrange.com>
11859
ba3ccd63
EB
11860 * libc/include/machine/ieeefp.h: Add support for mmix target.
11861 * libc/include/machine/setjmp.h: Ditto.
11862 * configure.host: Ditto.
11863 * libc/sys/mmixware/Makefile.am, libc/sys/mmixware/_exit.c,
11864 libc/sys/mmixware/access.c, libc/sys/mmixware/aclocal.m4,
11865 libc/sys/mmixware/chmod.c, libc/sys/mmixware/chown.c,
11866 libc/sys/mmixware/close.c, libc/sys/mmixware/configure.in,
11867 libc/sys/mmixware/creat.c, libc/sys/mmixware/crt0.c,
11868 libc/sys/mmixware/execv.c, libc/sys/mmixware/execve.c,
11869 libc/sys/mmixware/fork.c, libc/sys/mmixware/fstat.c,
11870 libc/sys/mmixware/getpid.c, libc/sys/mmixware/gettime.c,
11871 libc/sys/mmixware/isatty.c, libc/sys/mmixware/kill.c,
11872 libc/sys/mmixware/lseek.c, libc/sys/mmixware/open.c,
11873 libc/sys/mmixware/pipe.c, libc/sys/mmixware/read.c,
11874 libc/sys/mmixware/sbrk.c, libc/sys/mmixware/setjmp.S,
11875 libc/sys/mmixware/stat.c, libc/sys/mmixware/sys/syscall.h,
11876 libc/sys/mmixware/time.c, libc/sys/mmixware/times.c,
11877 libc/sys/mmixware/unlink.c, libc/sys/mmixware/utime.c,
11878 libc/sys/mmixware/wait.c, libc/sys/mmixware/write.c: New files.
11879 * libc/sys/mmixware/configure, libc/sys/mmixware/Makefile.in,
11880 libc/sys/mmixware/aclocal.m4: Generate.
8be9b48b 11881
c7dd4f95
CV
118822001-11-05 Corinna Vinschen <corinna@vinschen.de>
11883
11884 * libc/include/sys/unistd.h: Add prototypes for endusershell(),
11885 getusershell(), iruserok(), revoke(), ruserok() and setusershell()
11886 when __CYGWIN__ is defined.
11887 * libc/sys/cygwin/sys/utmp.h: Add prototypes for login_tty() and
11888 logwtmp().
11889
a6a6f9fe
JJ
118902001-11-01 Arati Dikey <aratidikey@hotmail.com>
11891
11892 * libm/mathfp/sf_isinf.c (isinff): Change to use _DEFUN macro.
11893 [_DOUBLE_IS_32BITS](isinf): New function that calls isinff.
11894 * libm/mathfp/sf_isnan.c (isnanf): Change to use _DEFUN macro.
11895 [_DOUBLE_IS_32BITS](isnan): New function that calls isnanf.
11896
d0504c35
JJ
118972001-10-24 Christopher Faylor <cgf@redhat.com>
11898
11899 * libc/stdio/fseek.c: Reset pointer to buffer base
11900 when forced to seek outside of current buffer contents.
11901 This prevents the code from erroneously thinking there is
11902 anything in the current buffer.
11903
0280c8c0
GK
119042001-10-22 Geoffrey Keating <geoffk@redhat.com>
11905
11906 * libc/include/math.h: The C++ standard adds the single-precision
11907 versions of the elementary functions.
11908
333d6098
CF
119092001-10-22 Christopher Faylor <cgf@redhat.com>
11910
11911 * libc/posix/execvp.c: Remove obsolete CYGWIN32 considerations
11912 throughout.
11913 * signal.h: Change comment to reflect __CYGWIN__ rather than __CYGWIN32__.
11914 * popen.c (popen): Use __CYGWIN_ rather than __CYGWIN32__.
11915 * system.c (_system_r): Ditto.
11916
c7118319
CV
119172001-10-17 Corinna Vinschen <corinna@vinschen.de>
11918
11919 * libc/include/sys/unistd.h: Add prototype for fchdir() when
b4e98df6 11920 __CYGWIN__ or __rtems__ is defined.
c7118319 11921
5665b0e1
JJ
119222001-10-01 Charles Wilson <cwilson@ece.gatech.edu>
11923
ba3ccd63
EB
11924 * libc/include/stdlib.h: add declarations for
11925 _strtoull_r, _strtoll_r, strtoull, and strtoll.
11926 * libc/stdio/local.h: remove declarations of
11927 __strtoull_r and __strtoll_r.
11928 * libc/stdio/vfscanf.c(__svfscanf_r): call
11929 _strtoull_r instead of __strtoull_r. Ditto
11930 _strtoll_r vs. __strtoll_r.
11931 * libc/stdlib/Makefile.am: add new files to
11932 .c list and .def list
11933 * libc/stdlib/Makefile.in: regenerate
11934 * libc/stdlib/strtoll_r.c: rename __strtoll_r
11935 as _strtoll_r
11936 * libc/stdlib/strtoull_r.c: rename __strtoull_r
11937 as _strtoull_r
11938 * libc/stdlib/strtoull.c: new file
11939 * libc/stdlib/strtoll.c: new file
5665b0e1 11940
d2d5eb41
CF
11941Mon Sep 17 17:29:47 2001 Christopher Faylor <cgf@cygnus.com>
11942
11943 * libc/include/process.h: Add getpid() declaration.
11944
448e3c14
NC
119452001-09-14 Nick Clifton <nickc@cambridge.redhat.com>
11946
11947 * libc/sys/arm/crt0.S: Add calls to _init and _fini (via atexit)
11948 for new style arm/elf ctor/dtor handling.
11949 Minor formatting tidy up.
11950
7a2afbbb
JJ
119512001-09-13 Jeff Johnston <jjohnstn@redhat.com>
11952
11953 * libc/stdlib/Makefile.am: Add support to build strtoll_r.c
11954 and strtoull_r.c.
11955 * libc/stdlib/Makefile.in: Regenerated.
11956 * libc/stdlib/strtoll_r.c: New file.
11957 * libc/stdlib/strtoull_r.c: New file.
11958 * libc/stdio/local.h: Add prototypes for long long string
11959 conversion routines.
11960 * libc/stdio/vfscanf.c (__svfscanf_r): Add optional long long support
11961 tied to %L integer conversion specifier.
11962
6342caa4
JJ
11963Thu Sep 13 08:49:49 2001 Jason Tishler <jason@tishler.net>
11964
ba3ccd63
EB
11965 * strftime.c (strftime): Fix "%W" implementation to properly handle
11966 Mondays too.
6342caa4 11967
b2d319cb
JJ
119682001-09-07 Jeff Law <law@redhat.com>
11969
ba3ccd63
EB
11970 * libc/sys/h8300hms/crt0.S: For H8/300H and H8/S, load address of
11971 __fini with "mov.l" instead of "mov.w".
b2d319cb 11972
233823ba
CV
119732001-09-05 Corinna Vinschen <corinna@vinschen.de>
11974
11975 * libc/sys/cygwin/include/unistd.h: New file, wrapping sys/unistd.h
11976 and getopt.h.
11977
63c17b54
JJ
119782001-09-04 Jason Merrill <jason_merrill@redhat.com>
11979
11980 * libc/sys/h8300hms/crt0.S: Support ELF initialization.
11981
a3e67ddf
CV
119822001-09-03 Corinna Vinschen <corinna@vinschen.de>
11983
11984 * libc/sys/cygwin/sys/dirent.h (struct dirent): Add version number
11985 field.
11986 (__DIRENT_VERSION): New define.
11987
6d47f33a
CV
119882001-09-03 Corinna Vinschen <corinna@vinschen.de>
11989
11990 * libc/sys/cygwin/sys/dirent.h (struct dirent): Add `d_fd' member.
4f79e37e
CV
11991 Shrink __d_reserved accordingly to keep structure size.
11992 (dirfd): Declare external.
6d47f33a 11993
348c5e06
JJ
119942001-08-29 Joel Sherrill <joel@OARcorp.com>
11995
11996 * libc/include/sys/unistd.h: Prototype chroot() for RTEMS.
11997
119982001-08-29 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
11999
12000 * libc/machine/i386/f_atan2.S, libc/machine/i386/f_atan2f.S,
12001 libc/machine/i386/f_exp.c, libc/machine/i386/f_expf.c,
12002 libc/machine/i386/f_frexp.S, libc/machine/i386/f_frexpf.S,
12003 libc/machine/i386/f_ldexp.S, libc/machine/i386/f_ldexpf.S,
12004 libc/machine/i386/f_log.S, libc/machine/i386/f_log10.S,
12005 libc/machine/i386/f_log10f.S, libc/machine/i386/f_logf.S,
12006 libc/machine/i386/f_pow.c, libc/machine/i386/f_powf.c,
12007 libc/machine/i386/f_tan.S, libc/machine/i386/f_tanf.S:
12008 Add conditional compilation to avoid HW FPU instructions
12009 when compiled for soft-float.
12010
f29865c5
JJ
120112001-08-29 Jeff Johnston <jjohnstn@redhat.com>
12012
12013 * Makefile.am: Add check for ln failing when creating libg.a
12014 so that cp gets used as a backup.
12015 * Makefile.in: Regenerated.
12016
9e2a4ef8
JJ
120172001-08-29 Jeff Johnston <jjohnstn@redhat.com>
12018
12019 * libc/include/sys/reent.h: Add include of <sys/_types.h>.
12020 No longer include time.h. Add struct __tm to use for
12021 _localtime_buf in the reentrant structure. Add a
12022 _NULL definition to use in initializing the reentrant struct.
12023 * libc/include/sys/config.h: For CYGWIN32 and RTEMS, change
12024 the _READ_WRITE_RETURN_TYPE to _ssize_t which is found in
12025 <sys/_types.h>.
12026 * libc/include/sys/unistd.h: Include <sys/_types.h>.
12027 * libc/time/lcltime.c (localtime): Cast the reentrant struct
12028 _localtime_buf to be struct tm *.
12029
1ae900d6
JR
12030Wed Aug 29 14:17:38 2001 J"orn Rennecke <amylaar@redhat.com>
12031
12032 * configure.host (h8300-*-elf*, h8500-*-elf*): New cases.
12033 * libc/sys/h8300hms/crt1.c (__main): Don't reference __ctors /
12034 __ctors_end.
12035 * libc/sys/h8300hms/syscalls.c: Include errno.h.
12036 (_unlink): New stub function.
12037
8e26d5b5
CF
12038Sat Aug 25 22:22:25 2001 Christopher Faylor <cgf@cygnus.com>
12039
12040 * libc/include/sys/errno.h: Add a cautionary comment.
12041
e8267664
JJ
120422001-08-21 Jeff Johnston <jjohnstn@redhat.com>
12043
12044 * libc/stdlib/mallocr.c [!defined(MALLOC_ALIGNMENT)]: Add conditional
12045 for SIZE_SZ so that alignment ends up a minimum of 8.
12046
4acf3edf
CF
12047Mon Aug 13 22:26:01 2001 Christopher Faylor <cgf@cygnus.com>
12048
12049 * libc/include/machine/setjmp.h: Protect sigsetjmp/siglongjmp macro
12050 arguments.
12051
12052 * libc/include/sys/errno.h: Declare sys_errlist and sys_nerr, under
12053 Cygwin.
12054
52c80be8
JJ
120552001-08-13 Jeff Johnston <jjohnstn@redhat.com>
12056
12057 * libc/include/malloc.h (M_MXFAST, M_NLBLKS, M_GRAIN, M_KEEP): New
12058 macro constants for mallopt options.
12059 (M_TRIM_THRESHOLD, M_TOP_PAD, M_MMAP_THRESHOLD, M_MMAP_MAX): Ditto.
12060
a7061f7f
JJ
120612001-08-02 Jeff Johnston <jjohnstn@redhat.com>
12062
12063 * libc/include/stdio.h (BUFSIZ): Define to __BUFSIZ__ if provided,
12064 otherwise default.
12065
0b4bfdd5
AH
120662001-07-12 Aldy Hernandez <aldyh@redhat.com>
12067
ba3ccd63 12068 * libc/machine/mips/setjmp.S: Allow mips16 and mips64 to coexist.
0b4bfdd5 12069
2b6b730c
NC
120702001-06-27 Nick Clifton <nickc@cambridge.redhat.com>
12071
12072 * libc/include/machine/ieeefp.h (__IEEE_BYTES_LITTLE_ENDIAN):
12073 Define for little endian ARMs.
12074
12075 * libc/stdlib/mprec.h (Storeinc): Use little endian version if
12076 __IEEE_BYTES_LITTLE_ENDIAN is defined.
12077
25842b68
JJ
120782001-06-11 Danny Smith <dannysmith@users.sourceforge.net>
12079
ba3ccd63 12080 * /libc/include/ctype.h (is* and to* macros): Do not define if C++.
25842b68 12081
371b76ef
JJ
120822001-06-11 Egor Duda <deo@logos-m.ru>
12083
ba3ccd63
EB
12084 * libc/ctype/ctype_.c: When compiled with gcc on platforms
12085 with signed char, make _ctype_[-128] ... _ctype[-1] refer to
12086 initialized memory region. Platform can define COMPACT_CTYPE
12087 to avoid allocation of the additional 128 bytes of data.
12088 Add pointer to _ctype_ array. Always initialize all _ctype_
12089 array elements.
371b76ef 12090
43b44bc5
JL
120912001-06-08 Jonathan Larmour <jlarmour@redhat.com>
12092
12093 * libc/stdlib/mbtowc_r.c (_mbtowc_r): Avoid dereferencing
12094 NULL pointer.
12095
188bc140
NC
120962001-05-28 Nick Clifton <nickc@cambridge.redhat.com>
12097
12098 * libc/stdio/vfprintf.c (_VFPRINTF_R): Handle printf ("%#.0o",0)
12099
2ce88418
NC
121002001-05-25 Nick Clifton <nickc@cambridge.redhat.com>
12101
12102 * libc/machine/xscale/memcmp.c: Fix bug when both pointers have
12103 matching, non-word alignment, and the length is <= 4 but more than
12104 enough to move them over a word boundary.
12105 Add comments explaining what each instruction does.
12106
ca60ed47
CF
12107Mon May 7 20:39:25 2001 Christopher Faylor <cgf@cygnus.com>
12108
12109 * libc/include/sys/stat.h: Revert March 3, Cygwin change.
c63e9997 12110 * libc/include/sys/unistd.h: Ditto.
ca60ed47 12111
8b3bcfba
JJ
121122001-05-04 Earnie Boyd <earnie@users.sourceforge.net>
12113
ba3ccd63 12114 * libc/string/strrchr.c: Use strchr for the speed improvements.
8b3bcfba 12115
b09e3cf8
JJ
121162001-05-01 Jeff Johnston <jjohnstn@redhat.com>
12117
12118 * libc/stdio/findfp (__sinit)[HAVE_FCNTL]: For platforms that have
12119 real file systems, let __smakebuf() determine if line buffering
12120 should be used for stdout.
12121
0ca66974
JJ
121222001-04-27 Jeff Johnston <jjohnstn@redhat.com>
12123
12124 * libc/stdio/vfscanf.c (__svfscanf_r): Initialize new_exp local var.
12125
7cb7017a
JJ
121262001-04-27 Jeff Johnston <jjohnstn@redhat.com>
12127
12128 * libc/include/stdlib.h: Add prototype for _strtod_r.
12129
a874cd21
JJ
121302001-04-24 Charles Wilson <cwilson@ece.gatech.edu
12131
ba3ccd63
EB
12132 * libc/stdio/vprintf.c (vprintf): fix signature to use _DEFUN
12133 * libc/stdio/vprintf.c (_vprintf_r): new function
12134 * libc/stdio/vsnprintf.c (vsnprintf): fix signature to use _DEFUN
12135 * libc/stdio/vsnprintf.c (_vsnprintf_r): fix signature to use
12136 _DEFUN, and call _vfprintf_r, not vfprintf.
12137 * libc/stdio/vsprintf.c (vsprintf.c): fix signature to use _DEFUN
12138 * libc/stdio/vsprintf.c (_vsprintf_r): fix signature to use
12139 _DEFUN, and call _vfprintf_r, not vfprintf.
a874cd21 12140
cb4cc283 121412001-04-22 Earnie Boyd <earnie@users.sourceforge.net>
17c0c97d 12142
cb4cc283
CF
12143 * libc/include/sys/unistd.h [X_OK]: Use better protection against
12144 Cygwin X_OK definitions in sys/file.h.
12145
8c9df1d5
CF
12146Fri Apr 20 23:17:51 2001 Christopher Faylor <cgf@cygnus.com>
12147
12148 * libc/include/sys/time.h: Define timercmp and other macros for
12149 __CYGWIN__, too.
12150
3ac6f3a7 121512001-04-20 Jeff Johnston <jjohnstn@redhat.com>
17c0c97d 12152
3ac6f3a7
JJ
12153 * acinclude.m4: Added --enable-malloc-debugging configure flag.
12154 * configure.host: For Cygwin specify -DMALLOC_PROVIDED if
12155 --enable-malloc-debugging selected.
12156 * aclocal.m4 configure: Regenerated.
12157 libm/aclocal.m4 libm/configure: Ditto.
12158 * libc/aclocal.m4 libc/configure: Ditto.
12159 * libc/machine/aclocal.m4 libc/machine/configure: Ditto.
12160 * libc/machine/*/aclocal.m4 libc/machine/*/configure: Ditto.
12161 * libc/sys/aclocal.m4 libc/sys/configure: Ditto.
12162 * libc/sys/*/aclocal.m4 libc/sys/*/configure: Ditto.
12163 * doc/aclocal.m4 doc/configure: Ditto.
12164
52cb9e69
JJ
121652001-04-20 Jeff Johnston <jjohnstn@redhat.com>
12166
12167 * libc/include/stdio.h[!_REENT_ONLY]: Moved various functions together
12168 into one list.
12169 [!__STRICT_ANSI__]: Moved non-ANSI I/O functions in this list.
12170 (vfscanf, vscanf, vsscanf, _vfscanf_r, _vscanf_r, _vsscanf_r): New
12171 function prototypes.
12172 (_fscanf_r, _sscanf_r): Ditto.
12173 * libc/include/stdlib.h: Added _strtod_r prototype.
12174 * libc/stdio/Makefile.am: Add new v*scanf functions.
12175 * libc/stdio/Makefile.in: Regenerate.
12176 * libc/stdio/fscanf.c: Reorganized so HAVE_STDC only affects prototype
12177 and code is shared. Added reentrant _fscanf_r which calls __svfscanf_r.
12178 * libc/stdio/scanf.c: Changed to call __svfscanf_r.
12179 * libc/stdio/sscanf.c: Changed documentation to add reentrant routines.
12180 (sscanf): Changed to call __svfscanf_r with _REENT argument.
12181 (_sscanf_r): New routine.
12182 * libc/stdio/local.h: Removed __svfscanf prototype and replaced it
12183 with __svfscanf_r prototype.
12184 * libc/stdio/vfscanf.c (vfscanf, _vfscanf_r: New
12185 routines.
12186 (__svfscanf_r): Reentrant version of __svfscanf which takes reetrancy
12187 structure as argument as calls reentrant versions of helper functions
12188 (e.g. _strtol_r, _strtoul_r). Also replaced calls to atol and atof
12189 to _strtol_r and _strtod_r respectively.
12190 * libc/stdio/vfscanf.c: Also changed __svfscanf to call __svfscanf_r.
12191 * libc/stdlib/strtod.c (strtod): Changed to call _strtod_r with
12192 _REENT argument.
12193 * libc/stdio/vscanf.c: New file.
12194 * libc/stdio/vsscanf.c: Ditto.
12195
ee9f39fb
JJ
121962001-04-19 Robert Collins <rbtcollins@hotmail.com>
12197
12198 * include/time.h[__CYGWIN__]: Define tzname to _tzname if not defined.
12199 Define daylight to _daylight if it is not defined
17c0c97d 12200 Prepare a variable export of timezone based on timezonevariable.
ee9f39fb
JJ
12201 (Cannot be used with the timezone() function.)
12202
273861e3
JJ
122032001-04-17 Stephen L. Moshier <moshier@moshier.ne.mediaone.net>
12204
ba3ccd63
EB
12205 * newlib/libm/math/ef_asin.c (pio2_hi, pio2_lo, pio4_hi):
12206 Correct the numerical values.
273861e3 12207
a25b8414
CF
122082001-04-13 Robert Collins <rbtcollins@hotmail.com>
12209
12210 * libc/include/sys/unistd.h: Add pthread_atfork (Cygwin only).
12211
b8a8c59d
CV
12212Thu Apr 12 23:11:00 2001 Corinna Vinschen <corinna@vinschen.de>
12213
12214 * libc/include/sys/errno.h: Add ECASECLASH to indicate case clash
12215 on case insensitve file systems.
12216
74f8cc63
CF
122172001-04-12 Robert Collins <rbtcollins@hotmail.com>
12218
12219 * libc/include/sys/features.h: Add appropriate defines for Cygwin
12220 pthread support.
12221 * libc/include/sys/signal.h: Remove unneeded __CYGWIN__ protection.
12222 * libc/include/sys/types.h: Protect __CYGWIN__ from the rtems pthreads
12223 types. Include <cygwin/types.h> for the cygwin specific typedefs.
12224
16740220
RS
122252001-04-04 Richard Sandiford <rsandifo@redhat.com>
12226
12227 * libc/include/machine/ieeefp.h: Comment about new configuration
12228 macros _FLT_LARGEST_EXPONENT_IS_NORMAL and _FLT_NO_DENORMALS.
12229 * libm/common/fdlib.h: Define new macros for testing floats.
12230 * libm/common/sf_*: Use them.
12231 * libm/math/ef_*: Likewise.
12232 * libm/math/sf_*: Likewise.
12233
0694d8d3
JJ
122342001-03-29 Jeff Johnston <jjohnstn@redhat.com>
12235
12236 * libc/sys/arm/setjmp.S: Added .code 16 specifier for thumb-mode
12237 prolog to by-pass possible assembler error.
12238
4833b38c
JJ
122392001-03-21 Egor Duda <deo@logos-m.ru>
12240
ba3ccd63
EB
12241 Allow building internal stubs for non-reentrant syscalls
12242 if target provides its own malloc
12243 * libc/reent/reent.c (errno): Move definition here.
12244 * libc/reent/sbrkr.c: From here.
4833b38c 12245
d17d6d42
CF
122462001-03-20 Danny Smith <dannysmith@users.sourceforge.net>
12247
12248 * libc/include/sys/types.h (BSD int typedefs): Guard with
12249 _BSDTYPES_DEFINED rather than _WINSOCK_H.
12250 (fd_set): Add !defined __USE_W32_SOCKETS to guard; define
12251 _SYS_TYPES_FD_SET.
12252 * libc/include/sys/unistd.h (gethostname): Don't declare if defined
12253 (_WINSOCK_H) || defined (__USE_W32_SOCKETS).
12254
c7ee75cd
CV
12255Sat Mar 17 18:30:00 2001 Corinna Vinschen <corinna@vinschen.de>
12256
12257 * libc/include/sys/unistd.h: Add _PC_POSIX_PERMISSONS and
12258 _PC_POSIX_SECURITY constants for Cygwin.
12259
63dc5d80
CV
12260Wed Mar 14 9:34:00 2001 Corinna Vinschen <corinna@vinschen.de>
12261
12262 * libc/sys/cygwin/crt0.c: Add copyright hint.
12263 * libc/sys/cygwin/sys/dirent.h: Ditto.
12264 * libc/sys/cygwin/sys/param.h: Ditto.
12265 * libc/sys/cygwin/sys/utime.h: Ditto.
12266 * libc/sys/cygwin/sys/utmp.h: Ditto.
12267
6f637037
AO
122682001-03-13 Alexandre Oliva <aoliva@redhat.com>
12269
12270 * libc/stdio/vfprintf.c (QUADINT) [_NO_LONGLONG]: Make it
12271 equivalent to LONGINT.
12272
e69b6f73
JJ
122732001-03-08 Richard Sandiford <rsandifo@redhat.com>
12274
ba3ccd63
EB
12275 * (libc/include/machine/setjmp.h): Use 23 long long ints for a
12276 jmpbuf on MIPS64 targets.
12277 * (libc/machine/mips/setjmp.S): Add MIPS64 version.
e69b6f73 12278
6198dece
CF
12279Wed Mar 7 16:02:07 2001 Christopher Faylor <cgf@cygnus.com>
12280
17c0c97d 12281 * libc/include/sys/config.h: Use ssize_t for Cygwin read/write
ba3ccd63 12282 declarations.
6198dece 12283
cfc05d96
JJ
12284Mon Mar 5 21:48:54 2001 J"orn Rennecke <amylaar@redhat.com>
12285
ba3ccd63
EB
12286 * libc/include/sys/config.h (_READ_WRITE_RETURN_TYPE): Define.
12287 For RTEMS, define to be ssize_t. Default to int if not defined.
12288 * libc/stdio/sscanf.c (eofread): Return _READ_WRITE_RETURN_TYPE.
12289 * libc/stdio/stdio.c (__sread, __swrite): Likewise.
12290 * libc/stdio/local.h (__sread, __swrite): Likewise.
12291 * libc/include/sys/reent.h (_read, _write): Likewise.
12292 * libc/include/sys/unistd.h (read, write, _read, _write): Likewise.
12293 * libc/syscalls/sysread.c (read): Likewise.
12294 * libc/syscalls/syswrite.c (write): Likewise.
cfc05d96 12295
6249353a
JJ
122962001-03-05 Jeff Johnston <jjohnstn@redhat.com>
12297
ba3ccd63 12298 * libc/time/mktime.c: Add L suffix to _SEC_IN_xxxx constants.
6249353a 12299
658b5db9
CF
12300Sat Mar 3 00:34:14 2001 Christopher Faylor <cgf@cygnus.com>
12301
12302 * libc/include/sys/stat.h: Use special defines for executable stat bits
12303 when compiling for Cygwin.
12304 * libc/include/sys/unistd.h: Use special define for X_OK when compiling
12305 for Cygwin.
12306
19ca46d5
JJ
123072001-03-02 Jeff Johnston <jjohnstn@redhat.com>
12308
12309 * libc/string/strtok.c: Add #undef of __STRICT_ANSI__ so prototype
12310 of strtok_r is always defined.
12311
b73ed85e
JJ
123122001-03-02 Jeff Johnston <jjohnstn@redhat.com>
12313
12314 * libc/include/machine/ansi.h: New dummy header file.
12315
ee37ede1
JJ
123162001-02-22 Jeff Johnston <jjohnstn@redhat.com>
12317
12318 * libc/include/machine/setjmp-dj.h: With DJ Delorie's permission,
12319 changed the copyright information to allow free modification of the
12320 file with no reference to "copying.dj".
12321 * libc/include/sys/stat-dj.h: Ditto.
12322 * libc/machine/i386/setjmp.S: Ditto.
12323 * libc/sys/h8300hms/sys/file.h: Ditto.
12324 * libc/sys/sysmec/access.c: Ditto.
12325 * libc/sys/sysnecv850/access.c: Ditto.
12326 * libc/stdio/mktemp.c: Fixed typo for the word copyright.
12327 * libc/stdlib/getenv_r.c: Ditto.
12328 * libc/stdlib/putenv_r.c: Ditto.
12329 * libc/stdlib/setenv_r.c: Ditto.
12330 * libc/stdlib/getenv.c: Removed DJ reference since any possible
12331 modifications will now be in the _r version of this file.
12332 * libc/stdlib/putenv.c: Ditto.
12333 * libc/stdlib/setenv.c: Ditto.
12334 * libc/sys/go32/copying.dj: Removed DJ's address which is no longer
12335 valid. Added a reference to DJ's web page that contains his address.
12336 * libc/sys/go32/*.s: Removed references to DJ's old address.
12337 * libc/sys/go32/*.c: Ditto.
12338 * libc/sys/go32/*.h: Ditto.
12339 * libc/sys/go32/*.S: Ditto.
12340 * libc/sys/go32/sys/*.h: Ditto.
12341
3a8fc0e4
JJ
123422001-02-21 Jeff Johnston <jjohnstn@redhat.com>
12343
12344 * libc/stdio/fdopen.c (fdopen): Protect calls to _fcntl() with
12345 HAVE_FCNTL flag check.
12346 * configure.host: Define HAVE_FCNTL for Cygwin, go32, RTEMS, sparc64,
12347 powerpcle, x86 netware, x86 sco, x86 Linux and Vxworks.
12348
b24ee749
CF
12349Thu Feb 15 01:39:51 2001 Christopher Faylor <cgf@cygnus.com>
12350
12351 * libc/include/sys/signal.h: Always include sys/types.h under Cygwin.
12352
ab4745dc
JJ
123532001-02-14 Kazuhiro Fujieda <fujieda@jaist.ac.jp>
12354
ba3ccd63
EB
12355 * libc/include/stdlib.h: Add declarations of rand48 functions and
12356 their reentrant versions.
12357 * libc/include/sys/reent.h: Move macros from rand48.h. Add
12358 struct _rand48 for shared parameters of rand48 functions.
12359 (struct _reent): Add a variable _r48 of struct _rand48.
12360 (_REENT_INIT): Add _r48 initialization.
12361 * libc/stdlib/Makefile.am (lib_a_SOURCES): Add rand48 functions.
12362 (CHEWOUT_FILES): Add rand48.def.
12363 * libc/stdlib/Makefile.am: Add dependencies for rand48 functions.
12364 * libc/stdlib/Makefile.in: Regenerated.
12365 * libc/stdlib/drand48.c (drand48, _drand48_r): Derived from the
12366 NetBSD C library.
12367 * libc/stdlib/erand48.c (erand48, _erand48_r): Ditto.
12368 * libc/stdlib/jrand48.c (jrand48, _jrand48_r): Ditto.
12369 * libc/stdlib/lcong48.c (lcong48, _lcong48_r): Ditto.
12370 * libc/stdlib/lrand48.c (lrand48, _lrand48_r): Ditto.
12371 * libc/stdlib/mrand48.c (mrand48, _mrand48_r): Ditto.
12372 * libc/stdlib/nrand48.c (nrand48, _nrand48_r): Ditto.
12373 * libc/stdlib/seed48.c (seed48, _seed48_r): Ditto.
12374 * libc/stdlib/srand48.c (srand48, _srand48_r): Ditto.
12375 * libc/stdlib/rand48.c (__dorand48): Ditto.
12376 * libc/stdlib/rand48.h: Ditto, and modify declarations of global
12377 parameters into macros referring them in the reentrant structure.
ab4745dc 12378
a34c461f
JJ
123792001-02-12 Jeff Johnston <jjohnstn@redhat.com>
12380
12381 * libc/include/sys/stat.h: Add mknod for Cygwin now that
12382 Cygwin definition has correct prototype.
12383
34f31ff2
JJ
123842001-02-08 Jeff Johnston <jjohnstn@redhat.com>
12385
12386 * libc/include/sys/stat.h: Must revert change for mknod
12387 for CYGWIN until winsup/cygwin/syscalls.cc changes mknod
12388 prototype.
12389
5336d6de
JJ
123902001-02-08 Jeff Johnston <jjohnstn@redhat.com>
12391
12392 * libc/include/stdio.h: Revert putw prototype.
12393
8915d10a
JJ
123942001-02-08 Edward M. Lee <tailbert@yahoo.com>
12395
ba3ccd63
EB
12396 * libc/include/grp.h: add prototype for initgroups.
12397 * libc/include/stdio.h: fix prototype for putw.
12398 * libc/include/sys/signal.h: add prototype for killpg.
12399 * libc/include/sys/stat.h: enable mknod/lstat for CYGWIN.
12400 * libc/include/sys/unistd.h: add prototypes for getpgid, setpgrp,
8915d10a
JJ
12401 vhangup and remove duplicate sysconf prototype.
12402
93ac4487
JJ
124032001-02-07 Jeff Johnston <jjohnstn@redhat.com>
12404
12405 * libc/sys/rtems/sys/types.h: Removed.
12406
31f5feea
JJ
124072001-02-05 Charles Wilson <cwilson@ece.gatech.edu>
12408
ba3ccd63 12409 * libc/include/locale.h: add LC_MESSAGES definition
31f5feea 12410
b5139f59
AO
124112001-02-01 Alexandre Oliva <aoliva@redhat.com>
12412
12413 * libc/sys/sh/sys/syscall.h (SYS_get_argc, SYS_get_argN_len,
12414 SYS_get_argN):
12415 * libc/sys/sh/syscalls.c (__setup_argv_for_main,
12416 __setup_argv_and_call_main): New.
12417
e29d8355
JJ
124182001-01-31 Jeff Johnston <jjohnstn@redhat.com>
12419
12420 * libc/include/stdio.h (FILENAME_MAX): Changed to use __FILENAME_MAX__
12421 if defined.
12422 (FOPEN_MAX): Changed to use __FOPEN_MAX__ if defined.
12423 (L_tmpnam): Changed to use __L_tmpnam__ if defined.
12424 * libc/include/sys/config.h: Changed to set __FILENAME_MAX__
12425 appropriately for Cygwin and RTEMS so not to exceed PATH_MAX.
12426
82ea92f3
CF
12427Mon Jan 29 23:03:06 2001 Christopher Faylor <cgf@cygnus.com>
12428
12429 * libc/stdlib/mallocr.c: Undefine windows preprocessor variables when
12430 compiling under Cygwin.
12431
3aaa66f8
JJ
124322001-01-29 Jeff Johnston <jjohnstn@redhat.com>
12433
12434 * libc/include/math.h (signgam): Change to errno-like solution
12435 using a function to return the address of the real signgam.
12436 * libc/reent/signgam.c: New file containing __signgam().
12437 * libc/reent/Makefile.am: Added signgam.c to list of files.
12438 * libc/reent/Makefile.in: Regenerated.
12439
610b895a
AO
124402001-01-25 Alexandre Oliva <aoliva@redhat.com>
12441
b0913397
AO
12442 * libc/sys/sh/syscalls.c (_times): New.
12443
610b895a
AO
12444 * configure.host (sh*-*-*): Add -DHAVE_GETTIMEOFDAY to newlib_cflags.
12445 * libc/sys/sh/syscalls.c (_gettimeofday): New.
12446
3643210e
JJ
124472001-01-23 Jeff Johnston <jjohnstn@redhat.com>
12448
12449 * libc/include/math.h (signgam): Regress previous fix as
12450 it does not handle programs with extern int signgam in them.
12451
841081c9
JJ
124522001-01-23 Jeff Johnston <jjohnstn@redhat.com>
12453
12454 * libc/include/math.h (signgam): Changed to a macro refering to
12455 its location in the reentrant structure.
12456
e9cd87b8
JJ
124572001-01-23 Jeff Johnston <jjohnstn@redhat.com>
12458
12459 * libc/stdio/vfprintf.c (_VFPRINTF_R): Modification to fix
12460 that suppressed . for %.0f, 0.1. Check now looks if there
12461 are padding zeroes (expt) in addition to any digits (ndig) to
12462 print.
12463
a302b48c
JJ
124642001-01-18 Jeff Johnston <jjohnstn@redhat.com>
12465
12466 * libc/sys/arc/Makefile.am: New file.
12467 * libc/sys/arc/Makefile.in: Ditto.
12468 * libc/sys/arc/aclocal.m4: Ditto.
12469 * libc/sys/arc/configure: Ditto.
12470 * libc/sys/arc/configure.in: Ditto.
12471 * libc/sys/arc/crt0.S: Ditto.
12472 * libc/sys/arc/isatty.c: Ditto.
12473 * libc/sys/arc/mem-layout.c: Ditto.
12474 * libc/sys/arc/sbrk.c: Ditto.
12475 * libc/sys/arc/syscalls.c: Ditto.
12476 * libc/sys/arc/sys/syscall.h: Ditto.
12477
d0319c3b
CF
12478Wed Jan 17 23:20:56 2001 Christopher Faylor <cgf@cygnus.com>
12479
12480 * libc/include/sys/unistd.h: Use correct declaration for setdtablesize.
12481
e45ab890
CF
12482Fri Jan 12 00:34:31 2001 Christopher Faylor <cgf@cygnus.com>
12483
12484 * libc/include/sys/signal.h: Add some SA_* defines for Cygwin.
12485
1376245a
DD
12486Thu Jan 11 20:42:06 2001 Earnie Boyd <earnie_boyd@yahoo.com>
12487
12488 * libc/include/sys/features.h: __CYGWIN__ preferred over __CYGWIN32__
12489
92b57543
NC
124902001-01-09 Nick Clifton <nickc@redhat.com>
12491
12492 * configure.host (v859): Remove unsupported compiler options.
12493
7d6d33d4
JJ
12494Fri Jan 5 19:57:00 EST 2001 Aaron J. Grier <aaron@frye.com>
12495
12496 * src/newlib/configure.host (*-*-rtems*): add printf long long
12497 support for RTEMS.
12498
602f8b5a 124992000-12-19 Graham Stott <grahams@redhat.com>
6286746a 12500
ba3ccd63 12501 * libc/machine/xscale/memcmp.c (memcmp): Add clobber for "lr".
6286746a 12502
9c2b8183
JJ
12503Wed Dec 14 Jeff Johnston <jjohnstn@redhat.com>
12504
12505 * configure.host: Turn on long double I/O for Cygwin.
12506
804368d3
JJ
12507Wed Dec 14 Jeff Johnston <jjohnstn@redhat.com>
12508
12509 * MAINTAINERS: Removed Ranjith.
12510 * NEWS: Updated for 1.9.0.
12511 * README: Updated.
12512 * acinclude.m4: Updated to release 1.9.0.
12513 * aclocal.m4 configure
12514 doc/aclocal.m4 doc/configure libc/aclocal.m4 libc/configure
12515 libc/machine/aclocal.m4 libc/machine/configure
12516 libc/machine/a29k/aclocal.m4 libc/machine/a29k/configure
12517 libc/machine/arm/aclocal.m4 libc/machine/arm/configure
12518 libc/machine/d10v/aclocal.m4 libc/machine/d10v/configure
12519 libc/machine/d30v/aclocal.m4 libc/machine/d30v/configure
12520 libc/machine/fr30/aclocal.m4 libc/machine/fr30/configure
12521 libc/machine/h8300/aclocal.m4 libc/machine/h8300/configure
12522 libc/machine/h8500/aclocal.m4 libc/machine/h8500/configure
12523 libc/machine/hppa/aclocal.m4 libc/machine/hppa/configure
12524 libc/machine/i386/aclocal.m4 libc/machine/i386/configure
12525 libc/machine/i960/aclocal.m4 libc/machine/i960/configure
12526 libc/machine/m32r/aclocal.m4 libc/machine/m32r/configure
12527 libc/machine/m68k/aclocal.m4 libc/machine/m68k/configure
12528 libc/machine/m88k/aclocal.m4 libc/machine/m88k/configure
12529 libc/machine/mips/aclocal.m4 libc/machine/mips/configure
12530 libc/machine/mn10200/aclocal.m4 libc/machine/mn10200/configure
12531 libc/machine/mn10300/aclocal.m4 libc/machine/mn10300/configure
12532 libc/machine/necv70/aclocal.m4 libc/machine/necv70/configure
12533 libc/machine/powerpc/aclocal.m4 libc/machine/powerpc/configure
12534 libc/machine/sh/aclocal.m4 libc/machine/sh/configure
12535 libc/machine/sparc/aclocal.m4 libc/machine/sparc/configure
12536 libc/machine/tic80/aclocal.m4 libc/machine/tic80/configure
12537 libc/machine/v850/aclocal.m4 libc/machine/v850/configure
12538 libc/machine/w65/aclocal.m4 libc/machine/w65/configure
12539 libc/machine/xscale/aclocal.m4 libc/machine/xscale/configure
12540 libc/machine/z8k/aclocal.m4 libc/machine/z8k/configure
12541 libc/sys/aclocal.m4 libc/sys/configure
12542 libc/sys/a29khif/aclocal.m4 libc/sys/a29khif/configure
12543 libc/sys/arm/aclocal.m4 libc/sys/arm/configure
12544 libc/sys/cygwin/aclocal.m4 libc/sys/cygwin/configure
12545 libc/sys/d10v/aclocal.m4 libc/sys/d10v/configure
12546 libc/sys/decstation/aclocal.m4 libc/sys/decstation/configure
12547 libc/sys/go32/aclocal.m4 libc/sys/go32/configure
12548 libc/sys/h8300hms/aclocal.m4 libc/sys/h8300hms/configure
12549 libc/sys/h8500hms/aclocal.m4 libc/sys/h8500hms/configure
12550 libc/sys/linux/aclocal.m4 libc/sys/linux/configure
12551 libc/sys/m88kbug/aclocal.m4 libc/sys/m88kbug/configure
12552 libc/sys/netware/aclocal.m4 libc/sys/netware/configure
12553 libc/sys/rtems/aclocal.m4 libc/sys/rtems/configure
12554 libc/sys/sh/aclocal.m4 libc/sys/sh/configure
12555 libc/sys/sparc64/aclocal.m4 libc/sys/sparc64/configure
12556 libc/sys/sun4/aclocal.m4 libc/sys/sun4/configure
12557 libc/sys/sysmec/aclocal.m4 libc/sys/sysmec/configure
12558 libc/sys/sysnec810/aclocal.m4 libc/sys/sysnec810/configure
12559 libc/sys/sysnecv850/aclocal.m4 libc/sys/sysnecv850/configure
12560 libc/sys/sysvi386/aclocal.m4 libc/sys/sysvi386/configure
12561 libc/sys/sysvnecv70/aclocal.m4 libc/sys/sysvnecv70/configure
12562 libc/sys/tic80/aclocal.m4 libc/sys/tic80/configure
12563 libc/sys/w65/aclocal.m4 libc/sys/w65/configure
12564 libc/sys/z8ksim/aclocal.m4 libc/sys/z8ksim/configure
12565 libm/aclocal.m4 libm/configure: Regenerated.
12566
0985d43f
CV
12567Wed Dec 13 11:52:00 2000 Corinna Vinschen <vinschen@cygnus.com>
12568
12569 * libc/include/sys/unistd.h: Add declarations for `chroot' and `getwd'
12570 when __CYGWIN__ is defined.
12571
b6182a09
JJ
125722000-12-13 Jeff Johnston <jjohnstn@redhat.com>
12573
12574 * libc/stdlib/ldtoa.c (_ldcheck): New routine
12575 that categorizes a long double as NaN, Infinity, or other.
17c0c97d
EB
12576 * libc/stdio/vfprintf.c [WANT_IO_LONG_DBL](_VFPRINTF_R): Removed
12577 isinfl and isnanl static routines which were i386-specific. Changed
b6182a09
JJ
12578 calls to the two removed routines to a single _ldcheck call.
12579 * libc/stdio/vfieeefp.h (ldieee): Fixed missing semi-colons.
12580
adbbb034
JJ
125812000-12-13 Jeff Johnston <jjohnstn@redhat.com>
12582
12583 * Makefile.am: Fixed install-data-local target to use
12584 $(mkinstalldirs) for the installed header files to ensure
12585 the directories exist before copying.
12586 * Makefile.in: Regenerated.
12587
cbd19336
JJ
125882000-12-12 Jeff Johnston <jjohnstn@redhat.com>
12589
12590 * libc/include/sys/unistd.h: Restored Cygwin _SC
12591 constants and moved new constants appropriately
12592 so Cygwin will build.
12593
8fb37963
JJ
125942000-12-11 Joel Sherrill <joel@OARcorp.com>
12595
ba3ccd63
EB
12596 * Merge RTEMS specific .h files into main libc/include.
12597 * libc/sys/rtems/include/signal.h: Removed.
12598 * libc/sys/rtems/include/time.h: Removed.
12599 * libc/sys/rtems/sys/features.h: Removed.
12600 * libc/sys/rtems/sys/sched.h: Removed.
12601 * libc/sys/rtems/sys/siginfo.h: Removed.
12602 * libc/sys/rtems/sys/signal.h: Removed.
12603 * libc/sys/rtems/sys/time.h: Removed.
12604 * libc/sys/rtems/sys/times.h: Removed.
8fb37963
JJ
12605 definitions for time_t and clock_t since these are
12606 no longer in time.h.
ba3ccd63
EB
12607 * libc/include/pthread.h: New file.
12608 * libc/include/sys/sched.h: New file.
12609 * libc/include/sys/features.h: New file.
12610 * libc/include/time.h: Removed duplicate definition of clock_t
12611 and time_t, get them from <sys/types.h> instead. Add prototypes
12612 for POSIX clock and timer functionality.
8fb37963 12613 * libc/sys/linux/sys/types.h: Changed to include
ba3ccd63
EB
12614 * libc/include/machine/types.h: Add _CLOCKID_T_ and _TIMER_T_.
12615 * libc/include/sys/signal.h: Add more complete set of POSIX
12616 signal functionality including real-time and threaded signals.
12617 * libc/include/sys/types.h: Add clock_t, time_t, struct
17c0c97d 12618 timespec, and struct itimerspec. Centralizing these makes
8fb37963 12619 things cleaner. RTEMS uses 64-bit dev_t.
ba3ccd63
EB
12620 Added numerous primitive definitions
12621 for pthreads including macros, pthread_attr_t,
17c0c97d 12622 pthread_mutexattr_t, pthread_condattr_t, pthread_key_t,
8fb37963 12623 pthread_once_t, and pthread_t.
ba3ccd63
EB
12624 * libc/include/sys/unistd.h: Added getlogin_r() prototype.
12625 If RTEMS follow POSIX on read(), write() and sbrk() prototype.
12626 Feature flags removed and moved to new file <sys/features.h>.
12627 Full set of POSIX sysconf() constants
8fb37963 12628
2efbc2a7
JJ
126292000-12-08 Werner Almesberger <Werner.Almesberger@epfl.ch>
12630
12631 * configure.host: Added x86 linux target.
12632 * libc/unix/getpass.c (_PATH_PASSWD, _PASSWORD_LEN): Default
12633 definitions provided if not already defined.
12634 * libc/sys/linux/crt0.c: New file.
12635 * libc/sys/linux/Makefile.am: Ditto.
12636 * libc/sys/linux/Makefile.in: Ditto.
12637 * libc/sys/linux/aclocal.m4: Ditto.
12638 * libc/sys/linux/brk.c: Ditto.
12639 * libc/sys/linux/configure: Ditto.
12640 * libc/sys/linux/configure.in: Ditto.
12641 * libc/sys/linux/getoptlong.c: Ditto.
12642 * libc/sys/linux/ids.c: Ditto.
12643 * libc/sys/linux/inode.c: Ditto.
12644 * libc/sys/linux/io.c: Ditto.
12645 * libc/sys/linux/linux.c: Ditto.
12646 * libc/sys/linux/process.c: Ditto.
12647 * libc/sys/linux/realpath.c: Ditto.
12648 * libc/sys/linux/select.c: Ditto.
12649 * libc/sys/linux/signal.c: Ditto.
12650 * libc/sys/linux/systat.c: Ditto.
12651 * libc/sys/linux/termios.c: Ditto.
12652 * libc/sys/linux/time.c: Ditto.
12653 * libc/sys/linux/wait.c: Ditto.
12654 * libc/sys/linux/include/alloca.h: Ditto.
12655 * libc/sys/linux/include/getopt.h: Ditto.
12656 * libc/sys/linux/include/stdint.h: Ditto.
12657 * libc/sys/linux/include/unistd.h: Ditto.
12658 * libc/sys/linux/sys/cdefs.h: Ditto.
12659 * libc/sys/linux/sys/dirent.h: Ditto.
12660 * libc/sys/linux/sys/errno.h: Ditto.
12661 * libc/sys/linux/sys/fcntl.h: Ditto.
12662 * libc/sys/linux/sys/file.h: Ditto.
12663 * libc/sys/linux/sys/ioctl.h: Ditto.
12664 * libc/sys/linux/sys/resource.h: Ditto.
12665 * libc/sys/linux/sys/signal.h: Ditto.
12666 * libc/sys/linux/sys/stat.h: Ditto.
12667 * libc/sys/linux/sys/syscall.h: Ditto.
12668 * libc/sys/linux/sys/termios.h: Ditto.
12669 * libc/sys/linux/sys/time.h: Ditto.
12670 * libc/sys/linux/sys/types.h: Ditto.
12671 * libc/sys/linux/sys/utmp.h: Ditto.
12672 * libc/sys/linux/sys/utsname.h: Ditto.
12673 * libc/sys/linux/sys/wait.h: Ditto.
12674
a08c98bb
JJ
126752000-12-08 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
12676
ba3ccd63
EB
12677 * Makefile.am: $(INSTALL), $(INSTALL_DATA), and $(INSTALL_PROGRAM)
12678 can be a relative path to $(top_srcdir)/install.sh so ensure the
12679 autoconf detected settings are properly passed recursively.
12680 Similarly, add AM_MAKEFLAGS to FLAGS_TO_PASS so they also get passed
12681 properly to subdirectories.
a08c98bb
JJ
12682 * Makefile.in: Regenerated.
12683
b294082c
JJ
126842000-12-07 Jay Kulpinski <jskulpin@eng01.gdds.com>
12685
ba3ccd63
EB
12686 * libc/stdio/vfprintf.c: Minor modification to avoid requiring
12687 a floating point register unless really printing a floating
12688 point number.
b294082c 12689
2005ab6b
JJ
126902000-12-07 Jeff Johnston <jjohnstn@redhat.com>
12691
12692 * libc/stdlib/ldtoa.c: Removed include of alloca.h.
12693 Also removed \r's.
12694 (asctoeg): Replaced alloca call with stack array and malloc
12695 when storage exceeds reasonable limit.
12696 (e53toe): Fixed einfin calls missing ldp parameter.
12697 (eiisinf): Hide behind check for LDBL_MANT_DIG == 64.
12698
9f6e8f1b
JJ
126992000-12-06 Jeff Johnston <jjohnstn@redhat.com>
12700
2005ab6b 12701
9f6e8f1b
JJ
12702 * libc/stdio/vfscanf.c: Fix typo for _NO_LONGDBL macro.
12703
6bdac416
JJ
127042000-12-06 Jeff Johnston <jjohnstn@redhat.com>
12705
12706 * libc/stdlib/Makefile.am: Added ldtoa.c to list of sources.
12707 * libc/stdlib/Makefile.in: Regenerated.
12708 * libc/stdio/floatio.h: Added suitable MAXEXP for long double.
12709 * libc/stdio/vfieeefp.h: Added long double bit structures.
12710 * libc/stdio/vfprintf.c[WANT_IO_LONG_DBL]: Added long double support.
12711 [WANT_IO_LONG_DBL](isinfl, isnanl): New static long double routines.
12712 (exponent): Changed expbuf to reasonable maximum instead of MAXEXP.
12713 * libc/stdio/vfscanf.c[WANT_IO_LONG_DBL]: Added long double support.
12714 * libc/stdlib/ldtoa.c: New file containing _ldtoa_r and
12715 _strtold routines used for conversions between character
12716 and long double.
12717
ec270d31
CV
12718Wed Dec 6 12:01:00 2000 Corinna Vinschen <vinschen@cygnus.com>
12719
12720 * libc/include/stdlib.h: Add declarations for `mkstemp' and `mktemp'.
12721
db2d9549
JJ
127222000-12-04 Joel Sherrill <joel@OARcorp.com>
12723
ba3ccd63 12724 * libc/include/machine/time.h: RTEMS systems can configure clock
db2d9549
JJ
12725 tick rate so use sysconf() to ask.
12726
6ba54a15
JJ
127272000-12-04 Joel Sherrill <joel@OARcorp.com>
12728
ba3ccd63 12729 * libc/include/sys/times.h: Add reference to POSIX standard.
6ba54a15 12730
8677b819
JJ
127312000-12-04 Joel Sherrill <joel@OARcorp.com>
12732
ba3ccd63
EB
12733 * libc/include/sys/time.h: Added BSD timer manipulation macros
12734 used by RTEMS code.
8677b819 12735
1b61a706
JJ
127362000-12-04 Joel Sherrill <joel@OARcorp.com>
12737
ba3ccd63
EB
12738 * libc/sys/rtems/crt0.c: Add stubs for functions implicitly
12739 referenced by code generated by gcc 2.8.1.
12740 (a29k): Add stubs for V_SPILL, V_FILL, V_BSD_OS, V_EPI_OS to
1b61a706
JJ
12741 satisfy gcc.
12742
f5e7c124
JJ
127432000-12-04 Joel Sherrill <joel@OARcorp.com>
12744
ba3ccd63 12745 * libc/stdlib/system.c: Avoid compiling do_system() for RTEMS.
f5e7c124 12746
768abc9c
JJ
127472000-12-04 Joel Sherrill <joel@OARcorp.com>
12748
ba3ccd63 12749 * libc/include/ieeefp.h: Added entries for OpenCores CPUs.
768abc9c 12750
9e5dd5ea
JJ
127512000-12-04 Joel Sherrill <joel@OARcorp.com>
12752
ba3ccd63 12753 * configure.host (or16, or32): New entries for OpenCores
9e5dd5ea 12754 OpenRisc CPUs.
ba3ccd63 12755 (*-*-rtems*): Add -DNO_EXEC.
9e5dd5ea 12756
768abc9c 127572000-12-04 Keith Outwater <vac4050@cae597.rsc.raytheon.com>
7713fb6f 12758
ba3ccd63
EB
12759 * libc/include/sys/errno.h: Added comments on many error numbers.
12760 * libc/string/strerror.c: Added some more strings.
7713fb6f 12761
b273323f
JJ
127622000-11-30 Jeff Johnston <jjohnstn@redhat.com>
12763
12764 * libc/sys/sh/syscalls.c (_link): New stub.
12765
0ffc3b94
NC
127662000-11-29 Nick Clifton <nickc@redhat.com>
12767
12768 * configure.host: Add xscale target.
12769 * libc/machine/xscale: New directory.
12770 * libc/machine/xscale/Makefile.am: New file.
12771 * libc/machine/xscale/Makefile.in: New file.
12772 * libc/machine/xscale/aclocal.m4: New file.
12773 * libc/machine/xscale/configure: New file.
12774 * libc/machine/xscale/configure.in: New file.
12775 * libc/machine/xscale/memchr.S: New file.
12776 * libc/machine/xscale/memcmp.S: New file.
12777 * libc/machine/xscale/memcpy.S: New file.
12778 * libc/machine/xscale/memmove.S: New file.
12779 * libc/machine/xscale/memset.S: New file.
12780 * libc/machine/xscale/strchr.S: New file.
12781 * libc/machine/xscale/strcmp.S: New file.
12782 * libc/machine/xscale/strcpy.S: New file.
12783 * libc/machine/xscale/strlen.S: New file.
12784
cbbf0f96
CV
12785Sat Nov 25 11:24:00 2000 Corinna Vinschen <vinschen@cygnus.com>
12786
12787 * libc/include/sys/types.h: Change i to `__i' in FD_ZERO macro to
12788 avoid compiler warnings.
12789
73dea790
MM
127902000-11-22 Michael Meissner <meissner@redhat.com>
12791
12792 * libc/posix/execl.c (execl): Don't reference environ directly,
12793 reference it only via a static pointer to avoid problems with some
12794 shared library systems and with different uses of small data where
12795 the user specifies his own version of environ.
12796 * libc/posix/execv.c (execv): Ditto.
12797 * libc/stdlib/getenv_r.c (_findenv_r): Ditto.
12798 * libc/stdlib/setenv_r.c (_setenv_r,_unsetenv_r): Ditto.
12799 * libc/stdlib/system.c (system, !cygwin32 case): Ditto.
12800
12801 * libc/stdlib/getenv.c (environ): Delete unused reference to
12802 environ.
12803
12804 * libc/stdlib/getenv_r.c: Make initial comment friendlier to emacs
12805 colorization.
12806 * libc/stdlib/system.c: Ditto.
12807
08eac2ae
CF
12808Tue Nov 21 20:32:21 2000 Christopher Faylor <cgf@cygnus.com>
12809
12810 * libc/sys/cygwin/sys/dirent.h: Change definition to avoid necessity of
12811 including windows headers.
12812
5478bf37
JJ
128132000-11-20 Jeff Johnston <jjohnstn@redhat.com>
12814
12815 * libc/include/sys/unistd.h: Removed definition of MAXNAMLEN.
12816 * libc/include/dirent.h: Added definition of MAXNAMLEN if
12817 not defined by sys/dirent.h.
12818 * libc/posix/execvp.c: Added include of dirent.h to get
12819 MAXNAMLEN value which used to be in unistd.h.
12820
3a760728
CV
12821Mon Nov 6 12:56:00 2000 Corinna Vinschen <vinschen@cygnus.com>
12822
12823 * libc/include/sys/types.h: Change type of i to `size_t' in
12824 FD_ZERO macro to avoid compiler warnings.
12825
86fff69f
CF
12826Sun Oct 29 20:06:41 2000 Christopher Faylor <cgf@cygnus.com>
12827
12828 * libc/include/stdlib.h: Avoid declaring cfree under Cygwin.
12829 * libc/include/malloc.h: Ditto. Also remove obsolete declaration.
12830
ba9e88d2
CV
12831Tue Oct 24 20:16:00 2000 Corinna Vinschen <vinschen@cygnus.com>
12832
12833 * libc/include/sys/unistd.h: Add defines for sysconf values
12834 _SC_NPROCESSORS_CONF, _SC_NPROCESSORS_ONLN, _SC_PHYS_PAGES and
12835 _SC_AVPHYS_PAGES.
12836
a8018ef3
CF
12837Mon Oct 9 20:26:33 2000 Christopher Faylor <cgf@cygnus.com>
12838
12839 * libc/include/sys/unistd.h: Add getdtablesize and setdtablesize
12840 declarations for __CYGWIN__.
12841
b944c6f6
GK
128422000-09-19 Geoffrey Keating <geoffk@cygnus.com>
12843
12844 * libc/signal/signal.c (__sigtramp_r): ISO C requires
12845 case labels to be integral constant expressions, so
12846 use an if/else tree instead.
12847 (_raise_r): Likewise.
12848
7f18fcb4
JJ
128492000-09-13 Jeff Johnston <jjohnstn@redhat.com>
12850
12851 * libc/machine/v850/setjmp.S: Fixed tab problems caused by
12852 clipping patch from e-mail reader.
12853
242361df
JJ
128542000-09-13 Will Cohen <wcohen@redhat.com>
12855
12856 * libc/machine/v850/setjmp.S (_setjmp): Save r1 rather than r0.
12857 Added return value 0.
12858 (_longjmp): Allow longjmp to return value of second argument
12859 passed to it.
12860
8a8c59b9
JJ
128612000-09-06 Jeff Johnston <jjohnstn@redhat.com>
12862
ba3ccd63
EB
12863 * libc/include/sys/types.h (FD_ZERO): Remove call to bzero and
12864 inline code to prevent having to include another header file.
8a8c59b9 12865
a385ae75
CF
12866Wed Sep 6 15:06:40 2000 Christopher Faylor <cgf@cygnus.com>
12867
12868 * Makefile.am: Fix space vs. tab problem in install-data-local.
12869 * Makefile.in: Regenerate.
12870
12871Wed Sep 6 13:49:51 2000 Christopher Faylor <cgf@cygnus.com>
12872
12873 * libc/include/_ansi.h (_EXFUN): Define specially for __CYGWIN__.
12874 (_EXPARM): New macro for defining a function parameter.
12875 * libc/include/stdlib.h: Use _EXPARM.
12876 * libc/stdlib/mallocr.c: Don't build cfree for Cygwin.
12877
a36cd013
JJ
128782000-09-05 Manfred Hollstein <manfredh@redhat.com>
12879
ba3ccd63
EB
12880 * Makefile.am (install-data-local): Use optional $(DESTDIR) where
12881 required, as documented in the gnu coding standards.
12882 * Makefile.in: Regenerate.
a36cd013 12883
f825dfda
JJ
128842000-09-05 Jeff Johnston <jjohnstn@redhat.com>
12885
12886 * libc/include/fcntl.h (_FNDELAY): Changed to be _FNONBLOCK to
12887 make O_NDELAY and O_NONBLOCK have the same value.
12888
4ba9aab7
JJ
128892000-08-30 Kazu Hirata <kazu@hxi.com>
12890
ba3ccd63 12891 * libc/sys/h8300hms/crt0.S: Optimize for both speed and code size.
4ba9aab7 12892
db7acc38
JJ
128932000-08-30 Werner Almesberger <Werner.Almesberger@epfl.ch>
12894
ba3ccd63
EB
12895 * libc/posix/execve.c: included unistd.h for "_execve" prototype.
12896 * libc/misc/unctrl.c libc/sys/sysvi386/crt0.c (sccsid): changed
12897 "#ifndef lint" to "#if defined(LIBC_SCCS) && !defined(lint)" like
12898 everywhere else.
db7acc38 12899
44e36af4
GK
129002000-08-30 Geoffrey Keating <geoffk@cygnus.com>
12901
12902 * libc/string/swab.c: Specify that it's defined in <unistd.h>.
12903 * libc/include/string.h: Don't include <sys/types.h>,
12904 as it causes really bad namespace pollution. Don't declare
12905 swab(), it is properly declared in unistd.h.
12906
00a2f168
JJ
129072000-08-29 Werner Almesberger <Werner.Almesberger@epfl.ch>
12908
ba3ccd63
EB
12909 * libc/unix/getpwent.c (getpwnam, getpwuid, getpwent): removed
12910 (broken) support for non-existent /etc/passwd field "comment".
00a2f168 12911
6beeb240
JJ
129122000-08-27 Werner Almesberger <Werner.Almesberger@epfl.ch>
12913
ba3ccd63
EB
12914 * libc/posix/scandir.c (DIRSIZ, scandir): use struct dirent.d_namlen
12915 only if _DIRENT_HAVE_D_NAMLEN is defined.
12916 (alphasort): aligned prototype with
12917 libc/sys/cygwin/sys/dirent.h and simplified function body.
12918 * libc/posix/telldir.c (telldir): changed "telldir" prototype to
12919 long telldir (DIR *) as mentioned in annex B of POSIX.1
6beeb240 12920
ef44da42
JJ
129212000-08-27 Werner Almesberger <Werner.Almesberger@epfl.ch>
12922
ba3ccd63
EB
12923 * libc/machine/i386/i386mach.h: added SOTYPE_FUNCTION to set type
12924 of global entry points if _I386MACH_NEED_SOTYPE_FUNCTION is defined;
12925 Added __CLI and __STI macros (controlled via
12926 _I386MACH_ALLOW_HW_INTERRUPTS macro).
12927 * libc/machine/i386/f_atan2.S libc/machine/i386/f_atan2f.S
12928 libc/machine/i386/f_frexp.S libc/machine/i386/f_frexpf.S
12929 libc/machine/i386/f_ldexp.S libc/machine/i386/f_ldexpf.S
12930 libc/machine/i386/f_log.S libc/machine/i386/f_log10.S
12931 libc/machine/i386/f_log10f.S libc/machine/i386/f_logf.S
12932 libc/machine/i386/f_tan.S libc/machine/i386/f_tanf.S
12933 libc/machine/i386/memchr.S libc/machine/i386/memcmp.S
12934 libc/machine/i386/memcpy.S libc/machine/i386/memmove.S
12935 libc/machine/i386/memset.S libc/machine/i386/setjmp.S
12936 libc/machine/i386/strchr.S libc/machine/i386/strlen.S:
12937 (that's libc/machine/i386/*.S) added SOTYPE_FUNCTION(symbol)
12938 for all global entry points.
12939 * libc/machine/i386/setjmp.S: removed code replicated in
12940 libc/machine/i386/i386mach.h and included i386mach.h instead;
12941 Use __CLI and __STI instead of cli and sti.
ef44da42 12942
14d3488d
DD
129432000-08-25 DJ Delorie <dj@redhat.com>
12944
12945 * libc/include/sys/unistd.h (environ): this one isn't from the
12946 DLL, no __IMPORT
12947
c9ca4412
CF
12948Fri Aug 25 13:37:11 2000 Christopher Faylor <cgf@cygnus.com>
12949
12950 * libc/stdlib/system.c (do_system): Eliminate explicit declaration of
12951 environ when compiling under cygwin since it is already declared in
12952 unistd.h.
12953
2d5862de
JJ
129542000-08-23 Werner Almesberger <Werner.Almesberger@epfl.ch>
12955
12956 * libc/stdlib/mprec.c (ulp, b2d, d2b): changed a few expressions
12957 like x << y-z to the equivalent x << (y-z).
12958 (d2b): changed if statements with assignment to perform the
12959 assignment prior to the if check.
12960 * libc/reent/reent.c: included stdlib.h for "_free_r" prototype.
12961 * libc/unix/getpass.c (getpass): moved "echo" assignment out of if.
12962 * libc/unix/ttyname.c: included string.h for "strcpy" prototype.
12963 * libc/unix/getcwd.c (ISDOT): added parentheses to clarify && and ||
12964 precedence.
12965 * libc/include/sys/unistd.h: added "vfork" prototype (for popen.c).
17c0c97d 12966 Added "_execve" prototype (for execl.c, execle.c, execv.c, and
2d5862de
JJ
12967 execve.c).
12968 * libc/posix/popen.c (popen): added parentheses to clarify && and ||
12969 precedence.
12970 * libm/math/e_cosh.c (__ieee754_cosh): changed parentheses to
12971 clarify && and || precendence (and to remove pascalism).
12972 * libm/math/e_sinh.c (__ieee754_sinh): Ditto.
12973 * libm/math/s_infconst.c: added another pair of braces to all
12974 initializers for __infinity (need three: for __infinity[1] array,
12975 for union __dmath, and for i[2]).
12976
0888fedd
JJ
129772000-08-23 Werner Almesberger <Werner.Almesberger@epfl.ch>
12978
199359f0
JJ
12979 * libc/stdlib/abort.c: changed description: uses "raise" instead of
12980 "getpid" and "kill"; added: uses "write" and "_exit".
12981 Also included unistd.h for "_exit" prototype.
12982 * libc/stdlib/system.c: included unistd.h for "execve" prototype,
12983 reent.h for "_fork_r" and "_wait_r" prototypes.
17c0c97d 12984 (do_system): changed extern char *environ[] to POSIX-friendly
199359f0
JJ
12985 extern char **environ.
12986 * libc/stdlib/wctomb_r.c: included string.h for "strlen" and "strcmp"
12987 prototypes.
12988 * libc/stdlib/remove.c: included reent.h for "_unlink_r" prototype.
12989 * libc/reent/execr.c: included sys/wait.h for "wait" prototype.
12990 * libc/reent/fstatr.c: included sys/stat.h for "fstat" prototype.
12991 * libc/reent/openr.c: included fcntl.h for "open" prototype.
12992 * libc/reent/signalr.c: included signal.h for "kill" prototype,
12993 unistd.h for "getpid" prototype.
12994 * libc/reent/statr.c: included sys/stat.h for "stat" prototype.
12995 * libc/reent/timer.c: included sys/time.h for "gettimeofday" prototype.
12996 * libc/unix/getut.c (utmpname): removed local, incorrect "strdup"
12997 prototype. Also included stdlib.h for "abort", string.h for
12998 "strdup" and "strncmp" prototypes.
12999 * libc/unix/getlogin.c: included string.h for "strncmp", "memset", and
13000 "strncpy", unistd.h for "read" and "close" prototypes.
13001 * libc/posix/execvp.c: included string.h for "strchr", "strlen", and
13002 "strcat" prototypes.
13003
130042000-08-23 Werner Almesberger <Wernen Almesberger@epfl.ch>
13005
0888fedd
JJ
13006 * libc/stdio/stdio.c (__swrite): declare "oldmode" only if it's
13007 used later (ifdef __SCLE)
13008 * libc/stdio/vfscanf.c (__svfscanf): declare "state" only if it's
13009 used later (ifdef MB_CAPABLE)
13010 * libc/string/memset.c (memset): removed unused variables "count"
13011 and "unaligned_addr"
13012 * libc/locale/locale.c (_setlocale_r): declare "lc_ctype" and
13013 "last_lc_ctype" only of they're used later (ifdef MB_CAPABLE)
13014 * libc/unix/getpwent.c (getpwnam): removed unused variables "uid"
13015 and "gid"
13016
a334e5ef
JJ
130172000-08-23 Werner Almesberger <Werner.Almesberger@epfl.ch>
13018
ba3ccd63
EB
13019 * libc/stdlib/envlock.c: changed documented "__env_lock" and
13020 "__env_unlock" prototype from "void *" or "char *" to
13021 "struct _reent *" to match real function. Also added include
a334e5ef 13022 of envlock.h.
ba3ccd63
EB
13023 * libc/stdlib/mlock.c: changed documented "__malloc_lock" and
13024 "__malloc_unlock" prototype from "void *" or "char *" to
13025 "struct _reent *" to match real function.
13026 * libc/stdlib/envlock.h: added "__env_lock" and "__env_unlock"
13027 prototypes (for getenv_r.c and setenv_r.c).
a334e5ef 13028
644b7f26
DD
130292000-08-22 Werner Almesberger <Werner.Almesberger@epfl.ch>
13030
13031 * libc/unix/getut.c (utmpname): added _CONST to reflect common use
13032 and prototype in cygwin's utmp.h
13033
5bacbf10
JJ
130342000-08-16 Eric Fifer <efifer@sanwaint.com>
13035
ba3ccd63 13036 * libc/stdio/vfprintf.c (_vfprintf_r): suppress . with "%.0f", 0.1
5bacbf10 13037
38a6bf98
NC
130382000-08-09 Nick Clifton <nickc@cygnus.com>
13039
13040 * libc/sys/arm/setjmp.S: Recode to clean up function prologues and
13041 epilogue and to allow the functions to be used in a Thumb based
13042 toolchain.
13043
befe0fb3
JJ
130442000-08-08 Jeff Johnston <jjohnstn@redhat.com>
13045
13046 * libc/stdio/snprintf.c (snprintf, _snprintf_r): Fixed code
13047 so size of 0 results in nothing being written to string.
13048 Also fixed code so that when size is non-zero, there is only
13049 a maximum of size - 1 characters written to the array and
13050 a nul terminator is appended at the end.
13051 * libc/stdio/vsnprintf.c (vsnprintf, _vsnprintf_r): Ditto.
13052
749d9bcd
DD
130532000-08-01 DJ Delorie <dj@redhat.com>
13054
13055 * libc/include/sys/config.h: define __IMPORT appropriately
13056 * libc/include/ctype.h (_ctype_): use __IMPORT
13057 * libc/include/math.h (__infinity, signam, _LIB_VERSION): ditto
13058 * libc/include/math.h (__mb_cur_max): ditto
13059 * libc/include/time.h (_timezone, _daylight, _tzname): ditto
13060 * libc/include/unctrl.h (__unctrl, __unctrllen): ditto
13061 * libc/include/errno.h (_sys_errlist, _sys_nerr): ditto
13062 * libc/include/unistd.h (environ): ditto
13063
7c110b17
MM
130642000-07-28 Michael Meissner <meissner@redhat.com>
13065
13066 * libc/include/math.h (__infinity): Declare as an array without
13067 bounds to get around small data support. Rewrite Cygwin support
13068 to be more general.
13069 * libm/math/s_infconst.c (__infinity): Ditto.
13070 * libm/mathfp/s_infconst.c (__infinity): Ditto.
13071
bf7be721
CF
13072Thu Jul 27 10:46:01 2000 Christopher Faylor <cgf@cygnus.com>
13073
13074 * libc/include/math.h: Use appropriate dll import linkage for
13075 __infinity under Cygwin.
13076
91a8d90b
DD
130772000-07-13 DJ Delorie <dj@cygnus.com>
13078
13079 * libc/stdio/vfprintf.c: pad 0.0 correctly with %e
13080
ba2048d3
JJ
13081Wed Jun 28 14:08:00 2000 Keith Walker <keith.walker@arm.com>
13082
13083 * libc/sys/arm/crt0.S (.LC30): Added missing length parameter
13084 to argument list for AngelSWI_Reason_GetCmdLine.
13085
4634da64
JJ
13086Tue Jun 27 15:49:00 2000 Marek Michalkiewicz <marekm@linux.org.pl>
13087
13088 * configure.host: Add support for AVR target.
13089 * libc/include/machine/ieeefp.h: Likewise.
13090 * libc/include/sys/config.h: Likewise.
13091
b19f72a2
RK
13092Thu Jun 22 18:35:00 2000 Ranjith Kumaran <ranjith@cygnus.com>
13093
13094 * README: Newlib 1.8.2 must be built in a separate directory
13095 than the sources.
13096
a704d94a
JJ
13097Tue Jun 20 14:30:00 2000 Jeff Johnston <jjohnstn@cygnus.com>
13098
ba3ccd63
EB
13099 * libc/include/sys/reent.h (_rand_next): Added __extension__
13100 qualifier as long long type is not strict ANSI.
13101 * libc/stdlib/rand.c (rand): Added __extension__ qualifier
13102 to long long constant.
a704d94a 13103
b585720b
CV
13104Fri Jun 16 23:02:00 2000 Corinna Vinschen <corinna@vinschen.de>
13105
ba3ccd63
EB
13106 * libc/include/sys/unistd.h: Add prototypes for `seteuid' and
13107 `setegid' provided by Cygwin.
b585720b 13108
01c327ba
CV
13109Thu Jun 15 0:21:00 2000 Corinna Vinschen <corinna@vinschen.de>
13110
ba3ccd63
EB
13111 * libc/stdio/fdopen.c: Take explicit given bin/textmode into
13112 account for Cygwin.
01c327ba 13113
46a43a99
JJ
13114Fri Jun 9 14:28:00 2000 Jeff Johnston <jjohnstn@cygnus.com>
13115
ba3ccd63
EB
13116 * libc/include/sys/reent.h (_rand_next): Changed to
13117 unsigned long long and moved to end of _reent struct in _new union.
13118 (_REENT_INIT): Changed to move _rand_next initialization.
13119 * libc/stdlib/rand.c (rand): Changed to use unsigned long long
13120 linear congruential algorithm that is used by DJGPP.
46a43a99 13121
a68078cb
RK
13122Thu Jun 8 21:18:00 2000 Ranjith Kumaran <ranjith@cygnus.com>
13123
13124 * libc/include/stdlib.h: Set RAND_MAX to __RAND_MAX.
13125 * libc/include/sys/config.h: Define __RAND_MAX.
13126
518882f3
JJ
13127Thu Jun 8 17:54:00 2000 Jeff Johnston <jjohnstn@cygnus.com>
13128
ba3ccd63
EB
13129 * libc/stdlib/rand_r.c: New algorithm that meets minimal
13130 standard.
518882f3 13131
d51d968a
CF
13132Fri Jun 2 23:02:11 2000 Christopher Faylor <cgf@cygnus.com>
13133
13134 * libc/include/string.h: Work around problem with strsignal and gdb.
13135
d2dd5765
CF
13136Tue May 30 13:13:01 2000 Christopher Faylor <cgf@cygnus.com>
13137
13138 * libc/include/ctype.h: __CYGWIN32__ -> __CYGWIN__
13139 * libc/include/malloc.h: Ditto.
13140 * libc/include/process.h: Ditto.
13141 * libc/include/stdio.h: Ditto.
13142 * libc/include/stdlib.h: Ditto.
13143 * libc/include/time.h: Ditto.
13144 * libc/include/machine/setjmp.h: Ditto.
13145 * libc/include/sys/errno.h: Ditto.
13146 * libc/include/sys/signal.h: Ditto.
13147 * libc/include/sys/stat.h: Ditto.
13148 * libc/include/sys/time.h: Ditto.
13149 * libc/include/sys/unistd.h: Ditto.
13150 * libc/include/string.h: Ditto. strsignal should return a const char *.
13151
88870218
JJ
131522000-05-26 Marek Michalkiewicz <marekm@linux.org.pl>
13153
13154 * libm/common/s_expm1.c (expm1): Add curly braces, avoid warnings.
13155 * libm/common/s_log1p.c (log1p): Likewise.
13156 * libm/common/s_scalbn.c (scalbn): Likewise.
13157 * libm/math/e_log.c: Likewise.
13158 * libm/math/e_asin.c: Likewise.
13159 * libm/math/ef_asin.c: Likewise.
13160 * libm/math/e_j0.c (pzero, qzero): Remove redundant test.
13161 * libm/math/e_j1.c (pone, qone): Likewise.
13162 * libm/math/ef_j0.c (pzerof, qzerof): Likewise.
13163 * libm/math/ef_j1.c (ponef, qonef): Likewise.
13164 * libm/mathfp/e_j0.c (pzero, qzero): Likewise.
13165 * libm/mathfp/e_j1.c (pone, qone): Likewise.
13166 * libm/mathfp/ef_j0.c (pzerof, qzerof): Likewise.
13167 * libm/mathfp/ef_j1.c (ponef, qonef): Likewise.
13168
c4e1aa01
DD
131692000-05-19 DJ Delorie <dj@cygnus.com>
13170
13171 * libc/stdio/stdio.c (__stextmode): new, see if file is text mode
13172 (__sread): always read in binary mode
13173 (__swrite): always write in binary mode
13174 * libc/include/stdio.h: no getc/putc macros for cygwin; causes
13175 compatibility issues with different dll versions
13176 * libc/stdio/fopen.c: use __stextmode
13177 * libc/stdio/fdopen.c: ditto
13178 * libc/stdio/freopen.c: ditto
13179 * libc/stdio/findfp.c: set up __SCLE for std{in,out,err}
13180 * libc/stdio/local.h: declare __stextmode
17c0c97d 13181
f4393261
DD
131822000-05-18 DJ Delorie <dj@cygnus.com>
13183
13184 * libc/stdio/fgets.c (fgets): perform CRLF conversions if __SCLE
17c0c97d 13185
2b533fac
JJ
13186Mon May 15 18:54:00 2000 Jeff Johnston <jjohnstn@cygnus.com>
13187
13188 * libc/include/ctype.h: Changed tolower and toupper macros
13189 to use __extension__ to prevent pedantic warnings.
13190
75362a76
RK
13191Mon May 15 14:26:00 2000 Joel Sherrill <joel@oarcorp.com>
13192
13193 * libc/sys/rtems/sys/time.h: Add macros for manipulating timeval
13194 structures.
13195
ec463fc7
JW
13196Wed May 10 19:24:53 2000 Jim Wilson <wilson@cygnus.com>
13197
13198 * libc/include/machine/ieeefp.h: Add ia64 support.
13199 * configure.host: Likewise.
13200
f35ceefa
JJ
13201Wed May 10 13:52:24 2000 Egor Duda <deo@logos-m.ru>
13202
ba3ccd63
EB
13203 * libc/time/asctime_r.c (asctime_r): Change output format. Day of
13204 month is now padded with space, not zero. This now conforms to
f35ceefa
JJ
13205 ANSI standard.
13206
b96fca8c
CV
13207Wed May 03 17:57:00 2000 Corinna Vinschen <corinna@vinschen.de>
13208
ba3ccd63
EB
13209 * libc/include/sys/errno.h: Add define for ENOSHARE ("No such
13210 host or network path") used by cygwin. Add some comments.
b96fca8c 13211
49d64538
JJ
13212Tue May 02 23:45:48 2000 DJ Delorie <dj@cygnus.com>
13213
13214 * libc/include/stdio.h (FILE): define __SCLE for "convert line
13215 endings" for Cygwin.
13216 (__sgetc): convert line endings if needed
13217 (__sputc): ditto
13218 * libc/stdio/fdopen.c (_fdopen_r): Remember if we opened in text mode
13219 * libc/stdio/fopen.c (_fopen_r): ditto
13220 * libc/stdio/freopen.c (freopen): ditto
13221 * libc/stdio/fread.c (fread): perform CRLF conversions if __SCLE
13222 * libc/stdio/fvwrite.c (__sfvwrite): ditto
13223
91fb1e7f
AO
13224Thu Apr 27 07:45:48 2000 Alexandre Oliva <aoliva@cygnus.com>
13225
13226 * libc/machine/mn10300/setjmp.S (setjmp, longjmp): Use
13227 post-increment when it is worth it, spacewise.
13228
c87be3e4
JJ
13229Mon Apr 17 12:46:00 2000 Marek Michalkiewicz <marekm@linux.org.pl>
13230
13231 * libc/signal/signal.c (_signal_r) : Removed unused local variable temp.
13232 * libc/stdio/findfp.c (std): Added declaration of flags and file.
17c0c97d 13233 * libc/stdio/mktemp.c (_gettemp, _mkstemp_r, mkstemp): Added int
c87be3e4
JJ
13234 return type.
13235 * libc/stdio/putchar.c (putchar): Added return statement.
13236 * libc/stdio/refill.c (lflush): Added correct parentheses.
13237 * libc/stdio/vfprintf.c (_VFPRINTF_R): Ditto.
17c0c97d 13238 * libc/stdio/vfscanf.c (__svfscanf): Changed sprintf call which
c87be3e4
JJ
13239 prints long value to use l qualifier.
13240 * libc/stdlib/dtoa.c (_dtoa_r): Added parentheses to remove warning
13241 messages and initialized local values: ilim, ilim1, and spec_case.
13242 * libc/stdlib/ecvtbuf.c (print_e): Removed unused variable dp.
13243 * libc/stdlib/mbctype.h (_issjis1, _issjis2): Added parentheses.
13244 * libc/stdlib/mprec.c: Ditto.
13245 * libc/stdlib/setenv_r.c: Ditto.
13246 * libc/stdlib/strtod.c: Ditto.
13247 * libc/stdlib/strtol.c: Ditto.
13248 * libc/stdlib/strtoul.c: Ditto.
13249 * libm/common/sf_expm1.c: Added curly braces to if else clauses.
13250 * libm/common/sf_log1p.c: Ditto.
13251 * libm/common/sf_scalbn.c: Ditto.
13252 * libm/math/ef_log.c: Ditto.
13253
11f5b065
CV
13254Sun Apr 16 12:45:00 2000 Corinna Vinschen <corinna@vinschen.de>
13255
ba3ccd63
EB
13256 * libc/posix/execvp.c (execvp): Check path for
13257 trailing slash.
11f5b065 13258
796e3b20
CV
13259Fri Mar 31 20:39:00 2000 Corinna Vinschen <corinna@vinschen.de>
13260
ba3ccd63
EB
13261 * libc/include/sys/unistd.h: Add prototypes for
13262 fchmod, fchown, lchown.
796e3b20 13263
b489803a
JJ
13264Fri Mar 24 15:34:00 2000 Jeff Johnston <jjohnstn@cygnus.com>
13265
13266 * acinclude.m4: Changed release to 1.8.2.
13267 * aclocal.m4 configure doc/aclocal.m4 doc/configure
13268 libc/aclocal.m4 libc/configure libc/machine/aclocal.m4
13269 libc/machine/configure libc/machine/a29k/aclocal.m4
13270 libc/machine/a29k/configure libc/machine/arm/aclocal.m4
13271 libc/machine/arm/configure libc/machine/d10v/aclocal.m4
13272 libc/machine/d10v/configure libc/machine/d30v/aclocal.m4
13273 libc/machine/d30v/configure libc/machine/fr30/aclocal.m4
13274 libc/machine/fr30/configure libc/machine/h8300/aclocal.m4
13275 libc/machine/h8300/configure libc/machine/h8500/aclocal.m4
13276 libc/machine/h8500/configure libc/machine/hppa/aclocal.m4
13277 libc/machine/hppa/configure libc/machine/i386/aclocal.m4
13278 libc/machine/i386/configure libc/machine/i960/aclocal.m4
13279 libc/machine/i960/configure libc/machine/m32r/aclocal.m4
13280 libc/machine/m32r/configure libc/machine/m68k/aclocal.m4
13281 libc/machine/m68k/configure libc/machine/m88k/aclocal.m4
13282 libc/machine/m88k/configure libc/machine/mips/aclocal.m4
13283 libc/machine/mips/configure libc/machine/mn10200/aclocal.m4
13284 libc/machine/mn10200/configure libc/machine/mn10300/aclocal.m4
13285 libc/machine/mn10300/configure libc/machine/necv70/aclocal.m4
13286 libc/machine/necv70/configure libc/machine/powerpc/aclocal.m4
13287 libc/machine/powerpc/configure libc/machine/sh/aclocal.m4
13288 libc/machine/sh/configure libc/machine/sparc/aclocal.m4
13289 libc/machine/sparc/configure libc/machine/tic80/aclocal.m4
13290 libc/machine/tic80/configure libc/machine/v850/aclocal.m4
13291 libc/machine/v850/configure libc/machine/w65/aclocal.m4
13292 libc/machine/w65/configure libc/machine/z8k/aclocal.m4
13293 libc/machine/z8k/configure libc/sys/aclocal.m4
13294 libc/sys/aclocal.m4 libc/sys/configure
13295 libc/sys/a29khif/aclocal.m4 libc/sys/a29khif/configure
13296 libc/sys/arm/aclocal.m4 libc/sys/arm/configure
13297 libc/sys/cygwin/aclocal.m4 libc/sys/cygwin/configure
13298 libc/sys/d10v/aclocal.m4 libc/sys/d10v/configure
13299 libc/sys/decstation/aclocal.m4 libc/sys/decstation/configure
13300 libc/sys/go32/aclocal.m4 libc/sys/go32/configure
13301 libc/sys/h8300hms/aclocal.m4 libc/sys/h8300hms/configure
13302 libc/sys/h8500hms/aclocal.m4 libc/sys/h8500hms/configure
13303 libc/sys/m88kbug/aclocal.m4 libc/sys/m88kbug/configure
13304 libc/sys/netware/aclocal.m4 libc/sys/netware/configure
13305 libc/sys/rtems/aclocal.m4 libc/sys/rtems/configure
13306 libc/sys/sh/aclocal.m4 libc/sys/sh/configure
13307 libc/sys/sparc64/aclocal.m4 libc/sys/sparc64/configure
13308 libc/sys/sun4/aclocal.m4 libc/sys/sun4/configure
13309 libc/sys/sysmec/aclocal.m4 libc/sys/sysmec/configure
13310 libc/sys/sysnec810/aclocal.m4 libc/sys/sysnec810/configure
13311 libc/sys/sysnecv850/aclocal.m4 libc/sys/sysnecv850/configure
13312 libc/sys/sysvi386/aclocal.m4 libc/sys/sysvi386/configure
13313 libc/sys/sysvnecv70/aclocal.m4 libc/sys/sysvnecv70/configure
13314 libc/sys/tic80/aclocal.m4 libc/sys/tic80/configure
13315 libc/sys/w65/aclocal.m4 libc/sys/w65/configure
13316 libc/sys/z8ksim/aclocal.m4 libc/sys/z8ksim/configure
13317 libm/aclocal.m4 libm/configure: Regenerated.
13318
79908d67
NC
133192000-03-24 Nick Clifton <nickc@cygnus.com>
13320
13321 * libc/sys/arm/syscalls.c: Fix compile time warnings.
13322 (do_AngelSWI): Add "cc" to list o registers clobbered.
13323
7684ddaf
FN
13324Thu Mar 22 14:57:00 2000 Fernando Nasser <fnasser@redhat.com>
13325
13326 * libc/sys/arm/syscalls.c (do_AngelSWI): Prevent registers with valid
17c0c97d 13327 information to be clobbered by an Angel C library support syscall.
7684ddaf 13328
b8ec20c8
JJ
13329Tue Mar 21 19:08:00 2000 Jeff Johnston <jjohnstn@cygnus.com>
13330
13331 * libc/stdlib/envlock.c: Fixed comment typo.
13332
fae4c299
JJ
13333Fri Mar 17 15:37:00 2000 Jeff Johnston <jjohnstn@cygnus.com>
13334
13335 * libc/stdio/vfscanf.c (__svfscanf): Fixed floating point
13336 code to update nread as each character is processed instead
13337 of using buffer contents which throw away leading zeroes.
13338
dc98804b
RK
13339Mon Mar 13 15:22:00 2000 Sergei Organov <osv@javad.ru>
13340
ba3ccd63 13341 * libm/mathfp/sf_sqrt.c: Change _DOUBLE_IS_32BITS sqrt call to sqrtf.
dc98804b 13342
5ed2f523
JJ
13343Fri Mar 10 16:09:20 2000 Jeff Johnston <jjohnstn@cygnus.com>
13344
13345 * libc/include/string.h: Include <sys/types.h>.
13346
1cf0ee34
AO
13347Fri Mar 10 14:53:50 2000 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
13348
13349 * libc/stdio/putw.c (putw): Return 0 on success, to be compliant
13350 with XSH5, not SVID.
13351
e9c94978
JJ
13352Thu Mar 9 17:20:41 2000 Jeff Johnston <jjohnstn@cygnus.com>
13353
ba3ccd63 13354 * libc/include/string.h: Changed last argument back to ssize_t
17c0c97d 13355 to make it compatible with XPG4 definition which is
e9c94978
JJ
13356 defined in <unistd.h>. There is a conflict in the SVID 3
13357 and XPG4 definitions and newlib will settle with XPG4.
ba3ccd63 13358 * libc/string/swab.c: Ditto.
e9c94978 13359
3072163c
JJ
13360Wed Mar 8 17:11:41 2000 Jeff Johnston <jjohnstn@cygnus.com>
13361
ba3ccd63
EB
13362 * libc/include/string.h: Changed last argument to size_t.
13363 * libc/string/swab.c: Changed last argument to size_t.
3072163c 13364
f205ea7a
AO
13365Wed Mar 8 00:46:41 2000 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
13366
13367 * libc/reent/Makefile.am (lib_a_SOURCES): Added unlinkr.c.
13368 (CHEWOUT_FILES): Added unlinkr.def.
13369 * libc/reent/Makefile.in: Rebuilt.
13370 * libc/sys.tex: Include unlinkr.def.
13371 * libc/reent/linkr.c (_unlink_r): Moved to...
13372 * libc/reent/unlinkr.c: ... new file.
13373
85dd2e5b
AO
13374Wed Mar 8 00:43:07 2000 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
13375
13376 * libc/string/Makefile.am (lib_a_SOURCES): Added swab.c.
13377 (CHEWOUT_FILES): Added swab.def.
13378 * libc/string/Makefile.in: Rebuilt.
13379 * libc/string/string.tex: Include swab.def.
13380 * libc/include/string.h (swab): Declare.
13381 * libc/string/swab.c: New file.
13382
c5053058
AO
13383Wed Mar 8 00:38:35 2000 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
13384
13385 * libc/stdio/Makefile.am (lib_a_SOURCES): Added getw.c and putw.c.
13386 (CHEWOUT_FILES): Added getw.def and putw.def.
13387 * libc/stdio/Makefile.in: Rebuilt.
13388 * libc/stdio/stdio.tex: Include getw.def and putw.def.
13389 * libc/stdio/getw.c: New file.
13390 * libc/stdio/putw.c: New file.
13391
dbaf37cf
JJ
13392Fri Feb 25 14:50:50 2000 Jeff Johnston <jjohnstn@cygnus.com>
13393
13394 * libc/stdio/flags.c (__sflags): Added check that mode[1]
13395 is non-null before looking at mode[2].
13396
bc019ef2
RK
13397Thu Feb 24 11:43:00 2000 Ran Cabell <rcabell@norfolk.infi.net>
13398
13399 * libm/mathfp/sf_atan2.c: Fix atan2 typo for _DOUBLE_IS_32_BITS.
13400 * libm/mathfp/sf_atan.c: Ditto.
13401
13402Thu Feb 24 11:39:00 2000 Joel Sherrill <joel@OARcorp.com>
13403
13404 * libc/include/sys/stat.h: Add RTEMS prototype for lstat.
13405
cd641b2d
RK
13406Tue Feb 22 14:37:00 2000 Ran Cabell <rcabell@norfolk.infi.net>
13407
13408 * libm/mathfp/sf_exp.c: Corrected _DOUBLE_IS_32_BITS to be
13409 _DOUBLE_IS_32BITS.
13410
b0ba0ac2
JJ
13411Mon Feb 21 11:43:50 2000 Jeff Johnston <jjohnstn@cygnus.com>
13412
13413 * libc/stdio/vfprintf.c (VFPRINTF): Added CHECK_INIT
13414 call prior to calling _VFPRINTF_R so reentrant data area is set.
13415 (_VFPRINTF_R): Removed now extraneous CHECK_INIT call.
13416
8a0efa53
CF
13417Thu Feb 17 01:42:50 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
13418
13419 * libc/stdio/vfscanf.c (limits.h): #include.
13420 (MAX_LONG_LEN): #define.
13421 (__svfscanf): Handle floating point numbers with arbitrary amounts
13422 of leading zeroes.
13423
134242000-02-15 Nick Clifton <nickc@cygnus.com>
13425
13426 * libc/sys/arm/syscalls.c (_fstat): Initialise all fields to
13427 zero. Set the blocksize to 1024/
13428
13429Thu Jan 20 18:57:00 2000 Fernando Nasser <fnasser@redhat.com>
13430
13431 * setvbuf.c (setvbuf): Set size to BUFSIZ when passed a zero size
13432 with line buffering.
13433
13434Mon Jan 10 18:43:00 2000 Jeff Johnston <jjohnstn@cygnus.com>
13435
17c0c97d 13436 * acinclude.m4: Changed include directory for winsup headers.
8a0efa53
CF
13437 * aclocal.m4 configure libc/aclocal.m4
13438 libc/configure libc/ctype/Makefile.in libc/errno/Makefile.in
13439 libc/locale/Makefile.in libc/machine/aclocal.m4
13440 libc/machine/configure libc/machine/a29k/aclocal.m4
13441 libc/machine/a29k/configure libc/machine/arm/aclocal.m4
13442 libc/machine/arm/configure libc/machine/d10v/aclocal.m4
13443 libc/machine/d10v/configure libc/machine/d30v/aclocal.m4
13444 libc/machine/d30v/configure libc/machine/fr30/aclocal.m4
13445 libc/machine/fr30/configure
13446 libc/machine/h8300/aclocal.m4
13447 libc/machine/h8300/configure libc/machine/h8500/aclocal.m4
13448 libc/machine/h8500/configure libc/machine/hppa/aclocal.m4
13449 libc/machine/hppa/configure libc/machine/i386/aclocal.m4
13450 libc/machine/i386/configure libc/machine/i960/aclocal.m4
13451 libc/machine/i960/configure libc/machine/m32r/aclocal.m4
13452 libc/machine/m32r/configure libc/machine/m68k/aclocal.m4
13453 libc/machine/m68k/configure libc/machine/m88k/aclocal.m4
13454 libc/machine/m88k/configure libc/machine/mips/aclocal.m4
13455 libc/machine/mips/configure libc/machine/mn10200/aclocal.m4
13456 libc/machine/mn10200/configure libc/machine/mn10300/aclocal.m4
13457 libc/machine/mn10300/configure libc/machine/necv70/aclocal.m4
13458 libc/machine/necv70/configure libc/machine/powerpc/aclocal.m4
17c0c97d 13459 libc/machine/powerpc/configure
8a0efa53
CF
13460 libc/machine/sh/aclocal.m4
13461 libc/machine/sh/configure libc/machine/sparc/aclocal.m4
13462 libc/machine/sparc/configure
13463 libc/machine/tic80/aclocal.m4 libc/machine/tic80/configure
13464 libc/machine/v850/aclocal.m4 libc/machine/v850/configure
13465 libc/machine/w65/aclocal.m4 libc/machine/w65/configure
13466 libc/machine/z8k/aclocal.m4 libc/machine/z8k/configure
13467 libc/misc/Makefile.in libc/posix/Makefile.in
17c0c97d 13468 libc/reent/Makefile.in
8a0efa53
CF
13469 libc/signal/Makefile.in
13470 libc/string/Makefile.in libc/sys/aclocal.m4 libc/sys/configure
13471 libc/sys/a29khif/aclocal.m4 libc/sys/a29khif/configure
13472 libc/sys/arm/Makefile.in libc/sys/arm/aclocal.m4
13473 libc/sys/arm/configure libc/sys/cygwin/aclocal.m4
13474 libc/sys/cygwin/configure libc/sys/d10v/Makefile.in
13475 libc/sys/d10v/aclocal.m4 libc/sys/d10v/configure
13476 libc/sys/decstation/aclocal.m4 libc/sys/decstation/configure
13477 libc/sys/go32/aclocal.m4 libc/sys/go32/configure
13478 libc/sys/h8300hms/aclocal.m4 libc/sys/h8300hms/configure
13479 libc/sys/h8500hms/aclocal.m4 libc/sys/h8500hms/configure
13480 libc/sys/m88kbug/aclocal.m4 libc/sys/m88kbug/configure
13481 libc/sys/netware/aclocal.m4 libc/sys/netware/configure
13482 libc/sys/rtems/aclocal.m4 libc/sys/rtems/configure
13483 libc/sys/sh/Makefile.in libc/sys/sh/aclocal.m4
13484 libc/sys/sh/configure libc/sys/sparc64/aclocal.m4
13485 libc/sys/sparc64/configure libc/sys/sun4/aclocal.m4
13486 libc/sys/sun4/configure libc/sys/sysmec/aclocal.m4
13487 libc/sys/sysmec/configure libc/sys/sysnec810/aclocal.m4
13488 libc/sys/sysnec810/configure libc/sys/sysnecv850/aclocal.m4
13489 libc/sys/sysnecv850/configure libc/sys/sysvi386/aclocal.m4
13490 libc/sys/sysvi386/configure libc/sys/sysvnecv70/aclocal.m4
13491 libc/sys/sysvnecv70/configure libc/sys/tic80/aclocal.m4
13492 libc/sys/tic80/configure libc/sys/w65/aclocal.m4
13493 libc/sys/w65/configure libc/sys/z8ksim/aclocal.m4
13494 libc/sys/z8ksim/configure libc/syscalls/Makefile.in
13495 libc/time/Makefile.in libc/unix/Makefile.in libm/aclocal.m4
13496 libm/configure: Regenerated.
13497
13498Mon Jan 10 18:43:46 2000 Jeff Johnston <jjohnstn@cygnus.com>
13499
13500 * libc/stdlib/putenv_r.c (_putenv_r): New file.
13501 * libc/stdlib/strdup_r.c (_strdup_r): New file.
13502 * libc/include/string.h: Added _strdup_r.
17c0c97d 13503 * libc/stdlib/putenv.c: Added call to reentrant version.
8a0efa53
CF
13504 * libc/stdlib/strdup.c: Ditto.
13505 * libc/stdlib/Makefile.am: Added _putenv_r and _unsetenv_r.
13506 * libc/include/stdlib.h: Ditto.
17c0c97d 13507 * libc/stdlib/Makefile.in: Regenerated.
8a0efa53
CF
13508 * libc/string/Makefile.in: Regenerated.
13509 * libc/stdlib/setenv.c: Added reentrant version of unsetenv.
13510 * libc/stdlib/setenv_r.c: Added unsetenv_r and changed memory
13511 management calls to reentrant versions.
13512 * libc/stdlib/wcstombs.c: Added #ifndef _REENT_ONLY wrapper.
13513 * libc/stdlib/wctomb.c: Ditto.
13514 * libc/stdlib/mblen.c: Ditto.
13515 * libc/stdlib/mbstowcs.c: Ditto.
17c0c97d 13516 * libc/stdlib/mbtowc.c: Ditto.
8a0efa53
CF
13517 * libc/stdlib/getenv.c: Ditto.
13518 * libc/reent/reent.tex: Added references to _putenv_r, _setenv_r,
13519 and _strdup_r.
13520
13521Thu Jan 6 15:33:46 2000 Christopher Faylor <cgf@cygnus.com>
13522
13523 patch from Corinna Vinschen <corinna@vinschen.de>
13524 * libc/sys/cygwin/sys/param.h: Define NGROUP_MAX as 16.
13525
bc019ef2 13526Mon Jan 03 14:36:00 2000 Sergei Organov <osv@javad.ru>
8a0efa53
CF
13527
13528 * libm/mathfp/s_atangent.c: Fix exponent calculation.
13529 * libm/mathfp/s_ldexp.c: Ditto.
13530 * libm/mathfp/sf_atangent.c: Ditto.
13531 * libm/mathfp/sf_ldexp.c: Ditto.
13532
13533Tue Dec 14 5:42:00 1999 Ranjith Kumaran <ranjith@cygnus.com>
13534
13535 * libc/machine/i960/setjmp.S: fix typo leaving .link_pix uncommented
13536 * libc/include/locale.h: define NULL to be 0.
13537
13538Tue Dec 7 15:41:45 1999 Jim Wilson <wilson@cygnus.com>
13539
13540 * libc/sys/sh/syscalls.c (stack_ptr): Move definition before first
13541 function.
13542
13543Wed Dec 1 17:39:29 1999 Jeffrey A Law (law@cygnus.com)
13544
13545 * libc/machine/mn10300/setjmp.S: Handle am33.
13546
135471999-11-26 Nick Clifton <nickc@cygnus.com>
13548
13549 * libc/sys/arm/syscalls.c: Add function prototypes.
13550 (stack_ptr): Move declaration before function definitions.
13551
13552Sat Nov 20 17:13:00 1999 Ranjith Kumaran <ranjith@cygnus.com>
13553
13554 * NEWS: Updated version information.
13555 * README: Ditto.
13556
13557Tue Nov 09 12:19:21 1999 Jeff Johnston <jjohnstn@cygnus.com>
13558
13559 * libc/machine/i386/strchr.S: Fixed alignment test.
13560
13561Thu Oct 28 05:30:46 1999 Andrew Cagney <cagney@makita.cygnus.com>
13562
13563 * libc/sys/d10v/crt0.S (_start): Construct a real stack frame.
13564
13565Thu Oct 28 15:29:11 1999 Andrew Cagney <cagney@b1.cygnus.com>
13566
13567 * libc/sys/d10v/crt0.S (_start): Initialize both SPI and SPU
17c0c97d 13568 ensuring that there is space between the two.
8a0efa53
CF
13569
13570Thu Oct 14 13:39:21 1999 Christopher Faylor <cgf@cygnus.com>
13571
13572 * libc/stdio/flags.c: Conditionalize check for 't' for cygwin case
13573 only.
13574
135751999-10-08 Vadim Egorov <egorovv@1c.ru>
13576
13577 * libc/include/stdlib.h: add ptsname, grantpt, unlockpt to cygwin
13578 section
13579
13580Sat Oct 2 02:02:00 MEST 1999 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
13581
13582 * libc/machine/sh/asm.h: Added __SH4_SINGLE__ to DELAYED_BRANCHES
13583 * libc/machine/sh/memcpy.S: Fix line wrapping in SL macro
13584
13585Fri Oct 1 13:17:59 CDT 1999 <joel@OARcorp.com>
13586 * libc/include/grp.h: Added getgrnam_r and getgrgid_r prototypes
13587 per POSIX 1003.1b.
13588 * libc/include/pwd.h: Added getpwnam_r and getpwuid_r prototypes
13589 per POSIX 1003.1b.
13590
135911999-09-13 DJ Delorie <dj@cygnus.com>
13592
13593 * libc/stdio/mktemp.c (_gettemp): on cygwin, check for EACCESS
13594 also.
13595
13596Thu Sep 9 15:31:00 1999 Jeff Johnston <jjohnstn@cygnus.com>
13597
13598 * setvbuf.c (setvbuf): When mallocing a buffer of size BUFSIZ,
13599 also note BUFSIZ as its size.
13600
13601Tue Sep 7 17:15:00 1999 Joel Sherrill <joel@OARcorp.com>
13602
13603 * configure.host: Corrected feature defines for RTEMS.
13604 * libc/include/sys/stat.h: Added protototype for RTEMS mknod.
13605 * libc/include/sys/stat.h: mkfifo() should take const path arg.
13606 * libc/include/sys/unistd.h: pathconf() should take const path arg.
13607 Enabled usleep(), ftruncate(), and truncate() prototypes for RTEMS.
13608 Added defines for _POSIX_JOB_CONTROL, _POSIX_SAVED_IDS, and
13609 _POSIX_VERSION for RTEMS. Added defines for _PC_ASYNC_IO,
13610 _PC_PRIO_IO, and _PC_SYNC_IO.
13611 * libc/machine/m68k/Makefile.am: Added strcpy.c and strlen.c.
13612 * libc/machine/m68k/Makefile.in: Regenerated.
13613 * libc/machine/m68k/strcpy.c: New file.
13614 * libc/machine/m68k/strlen.c: New file.
13615 * libc/stdio/tmpnam.c: Always make the returned name usable.
13616 * libc/sys/rtems/crt0.c: New version that passes all autoconf tests.
13617 * libc/sys/rtems/sys/dirent.h: New file.
13618 * libc/sys/rtems/sys/types.h: Added dev_t.
13619
13620Tue Sep 7 17:15:00 1999 Jay Kulpinski <jskulpin@eng01.gdds.com>
13621
13622 * libc/stdlib/mprec.c: Fixed unitialized variable problem.
13623
13624Fri Sep 3 12:35:20 1999 Jeff Johnston <jjohnstn@cygnus.com>
13625
13626 * libc/stdio/ftell.c (ftell): Backing off Joern's fix and
13627 my patch.
13628
13629Thu Sep 2 22:05:20 1999 Christopher Faylor <cgf@cygnus.com>
13630
13631 patch from Jeff Johnston <jjohnstn@cygnus.com>
13632 * libc/stdio/ftell.c (ftell): Avoid using buffer position when the
13633 buffer is not in a useful state.
13634
136351999-09-01 Nick Clifton <nickc@cygnus.com>
13636
13637 * libc/sys/arm/syscalls.c (_link): Add stub.
13638
13639Fri Aug 27 23:09:09 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
13640
13641 * ftell.c (ftell): Use actual position within buffer for text mode.
13642 * findfp.c (std): Initialize ptr->_bf._size.
13643
13644Wed Aug 18 18:48:02 1999 Christopher Faylor <cgf@cygnus.com>
13645
13646 * libc/include/sys/unistd.h: Add nice() declaration.
13647
136481999-08-09 Nick Clifton <nickc@cygnus.com>
13649
13650 * libc/sys/arm/crt0.S (change_mode): Rename to __change_mode and
13651 declare as a thumb function so that the disassembler will see the
13652 mode change.
13653
13654Thu Aug 5 17:37:00 1999 Ranjith Kumaran <ranjith@cygnus.com>
13655
13656 * libc/reent/reent.tex: Updated list of reentrant functions.
13657
136581999-07-09 Michael Meissner <meissner@cygnus.com>
13659
13660 * libc/include/stdlib.h (_findenv{,_r}): Add prototypes.
17c0c97d 13661
8a0efa53
CF
13662Tue Jul 6 10:46:24 1999 Jeff Johnston <jjohnstn@cygnus.com>
13663
13664 * libc/stdio/sprintf.c: Moved snprintf and _snprintf_r to
13665 separate file.
13666 * libc/stdio/snprintf.c: New file.
13667 * libc/stdio/vsprintf.c: Moved vsnprintf and _vsnprintf_r to
13668 separate file.
13669 * libc/stdio/vsnprintf.c: New file.
13670 * libc/stdio/Makefile.am: Added snprintf.c and vsnprintf.c.
13671 * libc/stdio/Makefile.in: Regenerated.
13672
13673Mon Jul 5 14:43:24 1999 Christopher Faylor <cgf@cygnus.com>
13674
13675 Patch submitted by Egor Duda <deo@logos-m.ru>:
13676 * libc/include/stdio.h: Add declarations for *nprintf.
13677 * libc/stdio/sprintf.c (snprintf): New function.
13678 (_snprintf_r): New function.
13679 * libc/stdio/vsprintf.c (vsnprintf): New function.
13680 (_vnsprintf_r): New function.
13681
13682Wed Jun 30 16:36:27 1999 Jeff Johnston <jjohnstn@cygnus.com>
13683
13684 * libc/Makefile.am (stmp-targetdep): Remove extraneous blank.
13685 * libm/Makefile.am (stmp-targetdep): Ditto.
13686 * libc/Makefile.in: Regenerated.
13687 * libm/Makefile.in: Ditto.
13688
13689Fri Jun 25 10:49:27 1999 Jeff Johnston <jjohnstn@cygnus.com>
13690
13691 * libc/Makefile.am (stmp-targetdep): Ignore "." in SUBDIRS.
13692 * libm/Makefile.am (stmp-targetdep): Ditto.
13693 * libc/Makefile.in: Regenerated.
13694 * libm/Makefile.in: Ditto.
13695
13696Thu June 03 16:25:00 1999 Jeff Johnston <jjohnstn@cygnus.com>
13697
13698 * Makefile.am: Removed dependencies on all-recursive and added "."
13699 to the SUBDIRS list to prevent infinite recursion from occurring.
13700 Also removed any references to EXTRA_DATA.
13701 * libc/Makefile.am: Ditto.
13702 * libc/machine/Makefile.am: Ditto.
13703 * libc/machine/i386/Makefile.am: Ditto.
13704 * libm/Makefile.am: Ditto.
13705 * libc/sys/Makefile.am: Ditto.
13706 * Makefile.in: Regenerated.
13707 * aclocal.m4: Ditto.
13708 * configure: Ditto.
13709 * doc/Makefile.in: Ditto.
13710 * doc/aclocal.m4: Ditto.
13711 * doc/configure: Ditto.
13712 * libc/Makefile.in: Ditto.
13713 * libc/aclocal.m4: Ditto.
13714 * libc/configure: Ditto.
13715 * libc/machine/Makefile.in: Ditto.
13716 * libc/machine/aclocal.m4: Ditto.
13717 * libc/machine/configure: Ditto.
13718 * libc/machine/mn10300/Makefile.in: Ditto.
13719 * libc/machine/mn10300/aclocal.m4: Ditto.
13720 * libc/machine/mn10300/configure: Ditto.
13721 * libc/sys/Makefile.in: Ditto.
13722 * libc/sys/aclocal.m4: Ditto.
13723 * libc/sys/configure: Ditto.
13724 * libm/Makefile.in: Ditto.
13725 * libm/aclocal.m4: Ditto.
13726 * libm/configure: Ditto.
13727
13728Thu June 03 16:20:00 1999 Ranjith Kumaran <ranjith@cygnus.com>
13729
13730 * libc/include/stdlib/stdlib.tex: Add link to env_lock.
13731
13732Fri May 28 17:09:00 1999 Ranjith Kumaran <ranjith@cygnus.com>
13733
13734 * libc/include/stdlib.h: Add reentrant routines.
13735 * libc/stdlib/Makefile.am: Add reentrant routines.
13736 * libc/stdlib/Makefile.in: Ditto.
13737 * libc/stdlib/envlock.c: New file.
13738 * libc/stdlib/envlock.h: New file.
13739 * libc/stdlib/getenv.c: Modify to call reentrant routine.
13740 * libc/stdlib/getenv_r.c: New file.
13741 * libc/stdlib/mblen.c: Modify to call reentrant routine.
13742 * libc/stdlib/mblen_r.c: New file.
13743 * libc/stdlib/setenv.c: Modify to call reentrant routine.
13744 * libc/stdlib/setenv_r.c: New file.
13745 * libc/stdlib/stdlib.tex: Add reentrant routines.
13746
13747Mon May 17 22:01:38 1999 Christopher Faylor <cgf@cygnus.com>
13748
13749 * libc/include/sys/types.h: Define __MS_types__ whenever
13750 cygwin or win32.
13751
13752Sun May 16 16:02:41 1999 Christopher Faylor <cgf@cygnus.com>
13753
13754 * libc/include/machine/ieeefp.h: Always default to little
13755 endian if Windows, regardless of architecture.
13756 * libc/include/machine/sethmp.h: Define JBLEN if CYGWIN
13757 regardless of architecture.
13758
13759Mon May 3 11:49:18 1999 Geoffrey Noer <noer@cygnus.com>
13760
13761 * libc/include/machine/setjmp.h: Accept CYGWIN define, even if
13762 _WIN32 isn't defined.
13763
13764Mon May 3 11:41:51 1999 Jeff Johnston <jjohnstn@cygnus.com>
13765
13766 * libm/common/s_rint.c (rint): Add volatile qualifier for
13767 intermediate value w.
13768 * libm/common/sf_rint.c (rintf): Ditto.
13769
13770Thu Apr 29 20:34:27 1999 Jeff Johnston <jjohnstn@cygnus.com>
13771
13772 * libc/sys/arm/syscalls.c (remap_handle): Added check to
13773 ensure that std streams are initialized before being referenced.
13774
137751999-04-27 Jason Molenda (jsm@bugshack.cygnus.com)
13776
13777 * README: Update reference to newlib@cygnus.com new
13778 newlib@sourceware.cygnus.com address.
13779
13780Mon Apr 26 18:17:33 1999 Geoffrey Noer <noer@cygnus.com>
13781
13782 * libc/include/sys/types.h: Define MS_types if CYGWIN is defined.
13783 * libc/include/sys/fcntl.h: Define _O_BINARY et al if CYGWIN is
13784 defined, even if _WIN32 isn't defined.
13785
13786Sat Apr 24 19:59:55 1999 Christopher Faylor <cgf@cygnus.com>
13787
13788 * libc/include/sys/fcntl.h: Correct _O_CREATE to _O_CREAT.
13789
13790Wed Apr 21 18:01:00 1999 Ranjith Kumaran <ranjith@cygnus.com>
13791
13792 * libc/include/sys/reent.h: Change Long and ULong to __Long and
13793 __ULong.
13794 * libc/stdlib/dtoa.c: Ditto.
13795 * libc/stdlib/mprec.c: Ditto.
13796 * libc/stdlib/mprec.h: Ditto.
13797 * libc/stdlib/strtod.c: Ditto.
13798
137991999-04-21 Nick Clifton <nickc@cygnus.com>
13800
13801 * configure.host (mcore): Remove mcore machine directory.
13802
138031999-04-18 Nick Clifton <nickc@cygnus.com>
13804
13805 * libc/include/machine/ieeefp.h: Add support for mcore target.
13806 * libc/include/machine/setjmp.h: Add support for mcore target.
13807 * configure.host: Add support for mcore target.
13808
138091999-04-13 Mark Salter <msalter@cygnus.com>
13810
13811 * libc/sys/arm/libcfunc.c: Moved isatty to syscall.c
13812 * libc/sys/arm/syscalls.c: Added isatty.
13813
13814Wed Apr 07 16:06:04 1999 Jeff Johnston <jjohnstn@cygnus.com>
13815
13816 * libc/stdlib/ecvtbuf.c (fcvtbuf): Fixed code to properly
13817 insert zeroes after significant digits.
13818
13819Wed Mar 17 22:06:04 1999 Jeff Johnston <jjohnstn@cygnus.com>
17c0c97d 13820
8a0efa53
CF
13821 * libc/stdio/vfprintf.c (cvt): Changed floating point
13822 cvt routine to use union used by dtoa to properly determine
13823 if the sign bit is on or not.
13824 * libc/stdio/vfieeefp.h: New file
17c0c97d 13825
8a0efa53
CF
13826Wed Mar 17 17:35:04 1999 Jeff Johnston <jjohnstn@cygnus.com>
13827
13828 * aclocal.m4: Regenerated.
13829 * configure: Regenerated.
13830
13831Wed Mar 17 16:35:04 1999 Jeff Johnston <jjohnstn@cygnus.com>
13832
13833 * libc/machine/i386/Makefile.am (lib_a_SOURCES): Added missing
13834 f_tanf reference.
13835 * libc/machine/i386/Makefile.in: Regenerated.
13836
13837Tue Mar 16 14:56:36 1999 Jeff Johnston <jjohnstn@cygnus.com>
13838
13839 * acinclude.m4: Changed to work with new automake.
13840 * configure: Regenerated.
13841 * libc/machine/i386/aclocal.m4: Regenerated.
13842 * libc/machine/i386/configure: Regenerated.
13843
13844Tue Mar 16 13:55:36 1999 Corinna Vinschen <corinna.vinschen@cityweb.de>
13845
13846 * libc/sys/cygwin/sys/dirent.h: Add additional prototypes
13847 for telldir() and seekdir(). Rename unused structure element
13848 for use with these two routines.
13849
13850Fri Mar 12 19:11:58 1999 Jeff Johnston <jjohnstn@cygnus.com>
13851
13852 * libc/time/mktime.c (validate_structure): Multiple fixes to
13853 code to handle cases where input fields are outside valid ranges.
13854 * libc/stdlib/div.c (div): Modified invalid rounding check.
13855 * libc/stdlib/ldiv.c (ldiv): Ditto.
13856
13857Thu Mar 11 21:32:13 1999 Jeff Johnston <jjohnstn@cygnus.com>
13858
13859 * libc/machine/i386/memcpy.S: Performance rewrite.
13860 * libc/machine/i386/memmove.S: Ditto.
13861 * libc/machine/i386/i386mach.h: Added more register definitions.
13862 * libc/include/math.h: Include <machine/fastmath.h> if -ffast-math
13863 option used.
13864 * libc/include/machine/fastmath.h: Add definitions for x86
13865 fast-math routines.
13866
13867Wed Mar 10 17:56:00 1999 Ranjith Kumaran <ranjith@cygnus.com>
13868
13869 * libc/stdlib/strtod.c: Change from unsigned long to ULong.
13870
13871Tue Mar 9 14:31:58 1999 Geoffrey Noer <noer@cygnus.com>
13872
13873 Adjust newlib headers for new Cygwin Win32 API header files:
13874 * libc/include/sys/time.h: Check _WINSOCK_H rather than
13875 _GNU_H_WINDOWS32_SOCKETS.
13876 * libc/include/sys/types.h: Ditto.
13877
13878Tue Mar 09 15:55:00 1999 Ranjith Kumaran <ranjith@cygnus.com>
13879
13880 *include/sys/reent.h: Add checks for size of Bigint element Long.
13881 *libc/dtoa.c: Change routines to use generic Long type.
13882 *libc/mprec.c: Change routines to use generic Long type.
13883 *libc/mprec.h: Change routines to use generic Long type.
13884
13885Tue Mar 02 18:07:49 1999 Ranjith Kumaran <ranjith@cygnus.com>
13886
13887 * libc/Makefile.am: Add .def files.
13888 * libc/Makefile.in: Regenerate.
13889 * libc/e_acosh.c: Documentation update.
13890 * libc/e_atanh.c: Documentation update.
13891 * libc/e_hypot.c: Documentation update.
13892 * libc/e_remainder.c: Documentation update.
13893 * libc/er_lgamma.c: Documentation update.
13894 * libc/mathfp.tex: Documentation update.
13895 * libc/s_acos.c: Documentation update.
13896 * libc/s_atan.c: Documentation update.
13897 * libc/s_atan2.c: Documentation update.
13898 * libc/s_cosh.c: Documentation update.
13899 * libc/s_fmod.c: Documentation update.
13900 * libc/s_isnan.c: Documentation update.
13901 * libc/s_log10.c: Documentation update.
13902 * libc/s_pow.c: Documentation update.
13903 * libc/w_jn.c: Documentation update.
13904
13905Sun Feb 28 23:18:49 1999 Geoffrey Noer <noer@cygnus.com>
13906
13907 * aclocal.m4: Regenerate.
13908 * configure: Regenerate.
13909
13910Tue Feb 23 13:57:26 1999 Jeff Johnston <jjohnstn@cygnus.com>
13911
ba3ccd63
EB
13912 * libc/machine/mn10300/setjmp.S (_longjmp): Fixed longjmp
13913 to return 1 if user specified return code is 0.
13914 * libc/machine/mn10200/setjmp.S (_longjmp): Ditto.
8a0efa53
CF
13915
13916Thu Feb 18 11:13:28 1999 Jeff Johnston <jjohnstn@cygnus.com>
13917
13918 * libc/machine/mn10200/setjmp.S (_setjmp/_longjmp): Fixed setjmp
13919 to save the return address. Fixed longjmp to return to the original
13920 calling address of setjmp and to return the user specified return code
13921 rather than default to 1.
13922 * libc/machine/mn10300/setjmp.S (_setjmp/_longjmp): Ditto.
13923
13924Mon Feb 15 17:48:17 1999 Jeff Johnston <jjohnstn@cygnus.com>
13925
13926 * libc/stdlib/mprec.h (mult): Define mult to be _multiply instead of _mult.
13927
139281999-02-10 Nick Clifton <nickc@cygnus.com>
13929
13930 * libc/sys/arm/syscalls.c (initialise_monitor_handles): Make block
13931 volatile so that its assignments will not be discarded.
13932
13933Wed Feb 10 17:19:40 1999 Jeff Johnston <jjohnstn@cygnus.com>
13934
13935 * libc/include/_ansi.h: Corrected _STRICT_ANSI reference to
13936 be __STRICT_ANSI__ which is generated by compiler.
13937 * libc/include/ctype.h: Ditto.
13938 * libc/include/math.h: Ditto.
13939 * libc/include/stdio.h: Ditto.
13940 * libc/include/stdlib.h: Ditto.
13941 * libc/include/string.h: Ditto.
13942 * libc/include/sys/signal.h: Ditto.
13943
139441999-02-08 Nick Clifton <nickc@cygnus.com>
13945
13946 * configure.host: Add support for StrongARM target.
13947
13948Fri Feb 5 11:13:14 1999 Jeff Johnston <jjohnstn@cygnus.com>
13949
13950 * libc/string/strncpy.c (strncpy): Removed redundant code
13951 that was copying bytes if data unaligned.
13952
139531999-02-02 Brendan Kehoe <brendan@cygnus.com>
13954
13955 * libc/stdlib/Makefile.{am,in} (CHEWOUT_FILES): Add mblen.def,
13956 mbstowcs.def, and wcstombs.def.
13957
13958Sat Jan 30 02:36:33 1999 Christopher Faylor <cgf@cygnus.com>
13959
13960 * libc/include/sys/errno.h: Add Cygwin errno.
13961 * libc/stdio/flags.c: Don't default to O_TEXT if no other flag
13962 is specified.
13963
139641999-01-29 Nick Clifton <nickc@cygnus.com>
13965
13966 * libc/sys/arm/syscalls.c: Move C library functions into seperate
13967 file.
17c0c97d 13968
8a0efa53
CF
13969 * libc/sys/arm/libcfunc.c: New file containing C library functions
13970 from syscalls.c
13971
13972 * libc/sys/arm/Makefile.am (lib_a_SOURCES): Add libcfuncs.c
13973 * libc/sys/arm/Makefile.in (lib_a_SOURCES): Regenerate.
13974
13975
139761999-01-27 Michael Meissner <meissner@cygnus.com>
13977
13978 * libc/include/machine/setjmp.h (D30V _JBLEN/_JBTYPE): Use double
13979 type, and cut size in half so that the jmp_buf array is guaranteed
13980 to be aligned on a 64-bit boundary.
13981
13982Mon Jan 25 12:05:38 1999 Jeff Johnston <jjohnstn@cygnus.com>
13983
13984 * libc/string/strings.tex: Added information about
13985 strcasecmp and strncasecmp.
13986 * libc/stdlib/stdlib.tex: Added missing information
13987 about mblen, mbstowcs, and wcstombs.
13988 * libc/string/strchr.c: Changed how mask is built to use
13989 shift operators so register will be used instead of storage.
13990
139911999-01-22 DJ Delorie <dj@cygnus.com>
13992
13993 * libc/include/stdlib.h: don't use dllimport if we're building
13994 newlib, since it's inside cygwin.dll
13995
13996Fri Jan 22 14:57:18 1999 Christopher Faylor <cgf@cygnus.com>
13997
13998 * libc/ctype/ctype_.c: Need to use __declspec(dllexport) for
13999 _ctype_ under cygwin.
14000
14001Fri Jan 22 09:50:19 1999 Christopher Faylor <cgf@cygnus.com>
14002
14003 * include/stdlib.h: Fix typo from previous checkin.
14004
14005Thu Jan 21 22:42:21 1999 Christopher Faylor <cgf@cygnus.com>
14006
14007 * include/ctype.h: Use __declspec(dllimport) method for exporting
14008 variable from cygwin DLL.
14009 * include/time.h: Ditto.
14010 * sys/errno.h: Ditto.
14011 * include/stdlib.h: Export __mb_cur_max from cygwin DLL.
14012 * libc/locale/locale.c: Use __declspec(dllexport) method for
14013 exporting variable from cygwin DLL.
14014
14015Sat Jan 16 13:29:54 1999 Christopher Faylor <cgf@cygnus.com>
14016
14017 * libc/stdio/setvbuf.c: Always clean up when _IONBF or possible
14018 access of bogus pointer will result in SIGSEGV.
14019
140201999-01-07 Nick Clifton <nickc@cygnus.com>
14021
14022 * libc/sys/arm/setjmp.S: Use C macros to cope with the possibility
14023 of an underscore prefix to function names.
14024
14025Fri Jan 8 19:00:07 1999 Jeff Johnston <jjohnstn@cygnus.com>
14026
14027 * libc/machine/i386/i386mach.h (__REG_PREFIX__): Create new
14028 define __REG_PREFIX__ instead of using __REGISTER_PREFIX__.
14029
140301998-12-31 Michael Meissner <meissner@cygnus.com>
14031
14032 * libc/machine/i386/i386mach.h (__REGISTER_PREFIX__): Only define
14033 to `%' if not already defined.
14034
140351998-12-30 Michael Meissner <meissner@cygnus.com>
14036
14037 * libc/stdio/tmpnam.c (_tempnam_r): Make directory and prefix
14038 arguments const char *, not char *.
14039 * libc/include/stdio.h (_tempnam_r): Ditto.
14040
14041 * libc/include/sys/reent.h (struct _reent): The _sig_func type
14042 points to a function taking an integer, not void.
14043
14044Tue Dec 29 14:35:53 1998 Christopher Faylor <cgf@cygnus.com>
14045
14046 * configure.host: Add a define for Cygwin builds.
14047 * libc/include/ctype.h: Don't use dll imported variables in newlib.
14048
14049Mon Dec 28 09:19:56 1998 Christopher Faylor <cgf@cygnus.com>
14050
14051 * libc/include/ctype.h: Define _ctype_ as dll imported variable
14052 for use with Cygwin.
14053 * libc/include/sys/errno.h: Define _sys_errlist and _sys_nerr as
14054 dll imported variables for use with Cygwin.
14055 * libc/ctype/ctype_.c: Undefine _ctype_ in case it has been defined
14056 as a dll imported variable for Cygwin.
14057
14058Sat Dec 26 00:13:53 1998 Christopher Faylor <cgf@cygnus.com>
14059
14060 * libc/include/sys/unistd.h: Add proto for getpass.
14061
14062Fri Dec 18 19:28:19 1998 Geoffrey Noer <noer@cygnus.com>
14063
14064 * libc/sys/cygwin/sys/dirent.h: add protos for scandir and
14065 alphasort.
14066
14067Fri Dec 18 16:33:25 1998 Geoffrey Noer <noer@cygnus.com>
14068
14069 * libc/posix/execvp.c (execvp): call cygwin_posix_path_list_p,
14070 not posix_path_list_p.
14071
140721998-12-15 Nick Clifton <nickc@cygnus.com>
14073
14074 * libc/string/memchr.c: Treat 'c' argument as an unsigned byte not
14075 a signed int.
14076
140771998-12-13 Nick Clifton <nickc@cygnus.com>
14078
14079 * libc/include/machine/setjmp.h (_JBLEN): Set to 10.
14080
140811998-12-12 Nick Clifton <nickc@cygnus.com>
14082
14083 * libc/machine/fr30/setjmp.S: New file, supplied by Mark Slater
14084 <msalter@cygnus.com>
14085 * libc/machine/fr30/Makefile.am: Add build of setjmp.S
14086 * libc/machine/fr30/Makefile.in: Regenerated.
14087
140881998-12-11 Nick Clifton <nickc@cygnus.com>
14089
14090 * configure.host: Remove use of libc/sys for FR30 port.
14091 * libc/sys/fr30: Remove directory (replaced by libgloss).
14092
140931998-12-10 Ken Raeburn <raeburn@cygnus.com>
14094
14095 * libc/string/strcat.c (ALIGNED): Sense of result was reversed.
14096 * libc/string/strncat.c (ALIGNED): Ditto.
14097
14098Wed Dec 9 14:37:57 1998 Geoffrey Noer <noer@cygnus.com>
14099
14100 * libc/include/sys/time.h: include sys/types.h
14101
14102Tue Dec 8 15:53:18 1998 Jeff Johnston <jjohnstn@cygnus.com>
14103
14104 * libc/machine/i386/memcmp.S (memcmp): Fix for unequal
14105 comparison found when checking word at a time.
14106
141071998-12-04 Nick Clifton <nickc@cygnus.com>
14108
14109 * libc/sys/fr30/crt0.s (_start): Initialise frame pointer.
14110
141111998-12-03 Nick Clifton <nickc@cygnus.com>
14112
14113 * libc/sys/fr30/syscalls.c (_times): New function stub.
14114
14115Thu Dec 3 15:59:19 1998 Jeff Johnston <jjohnstn@cygnus.com>
14116
14117 * configure.host (mach_add_setjmp): Replaced mach_add_objs
14118 with mach_add_setjmp flag which indicates if setjmp should
14119 be added to the machine directory objects.
14120 * acinclude.m4: Removed reference to mach_add_objs.
14121 * aclocal.m4: Regenerated.
14122 * Makefile.in: Regenerated.
14123 * configure: Regenerated.
14124 * libc/aclocal.m4: Regenerated.
14125 * libc/Makefile.in: Regenerated.
14126 * libc/configure: Regenerated.
14127 * libc/machine/aclocal.m4: Regenerated.
14128 * libc/machine/Makefile.in: Regenerated.
14129 * libc/machine/configure: Regenerated.
14130 * libc/machine/i386/aclocal.m4: Regenerated.
14131 * libc/machine/i386/Makefile.am: Altered to selectively add
14132 setjmp.S to the src files list.
14133 * libc/machine/i386/Makefile.in: Regenerated.
14134 * libc/machine/i386/configure.in: Altered to test mach_add_setjmp.
14135 * libc/machine/i386/configure: Regenerated.
14136
141371998-12-02 Nick Clifton <nickc@cygnus.com>
14138
14139 * libc/sys/fr30/crt0.s (_start): Fix function names.
14140
14141 * libc/machine/fr30: New directory
14142 * libc/machine/fr30/Makefile.am: New file.
14143 * libc/machine/fr30/Makefile.in: New generated file.
14144 * libc/machine/fr30/configure.in: New file.
14145 * libc/machine/fr30/configure: New generated file.
14146 * libc/machine/fr30/aclocal.m4: New generated file.
14147 * libc/sys/fr30/Makefile.am: New file.
14148 * libc/sys/fr30/Makefile.in: New generated file.
14149 * libc/sys/fr30/configure.in: New file.
14150 * libc/sys/fr30/configure: New generated file.
14151 * libc/sys/fr30/syscalls.c: New file.
14152
14153Tue Dec 1 16:28:56 1998 Geoffrey Noer <noer@cygnus.com>
14154
14155 * libc/sys/cygwin/sys/utmp.h: new file, moved from winsup/include.
14156
141571998-12-01 Ken Raeburn <raeburn@cygnus.com>
14158
14159 * libc/time/strftime.c (strftime): Also handle %y for years before
14160 1900.
14161
14162Tue Dec 1 13:26:07 1998 Christopher Faylor <cgf@cygnus.com>
14163
14164 * libc/string/strcasecmp.c (strcasecmp): Adhere to standard
14165 UNIX convention. Perform tolower on characters before comparing
14166 them rather than use toupper.
14167 * libc/string/strncasecmp.c (strncasecmp): Ditto.
14168
14169Mon Nov 30 16:24:19 1998 Jeff Johnston <jjohnstn@cygnus.com>
17c0c97d 14170
8a0efa53
CF
14171 * configure.host: Added using i386 machine directory
14172 for all x86 cross-compiler and configuring
14173 which added object files to use via new "mach_add_objs" variable.
14174 * configure: Regenerated.
14175 * libc/configure: Regenerated.
14176 * libc/Makefile.in: Regenerated.
14177 * libc/aclocal.m4: Regenerated.
14178 * libc/ctype/Makefile.in: Regenerated.
14179 * libc/errno/Makefile.in: Regenerated.
14180 * libc/locale/Makefile.in: Regenerated.
14181 * libc/machine/Makefile.in: Regenerated.
14182 * libc/machine/aclocal.m4: Regenerated.
14183 * libc/machine/configure: Regenerated.
14184 * libc/posix/Makefile.in: Regenerated.
14185 * libc/reent/Makefile.in: Regenerated.
14186 * libc/signal/Makefile.in: Regenerated.
14187 * libc/stdio/Makefile.in: Regenerated.
14188 * libc/stdlib/Makefile.in: Regenerated.
14189 * libc/string/Makefile.in: Regenerated.
14190 * libc/string/memmove.c: Optimized code to use memcpy
14191 logic when performing a non-destructive copy.
14192 * libc/string/strncmp.c: Altered code to allow building
14193 optimized for size or speed.
14194 * libc/syscalls/Makefile.in: Regenerated.
14195 * libc/time/Makefile.in: Regenerated.
14196 * libc/unix/Makefile.in: Regenerated.
14197 * libc/machine/i386/Makefile.am: Added new files and reference
14198 to "mach_add_objs" to indicate optional object files.
14199 * libc/machine/i386/Makefile.in: Regenerated.
14200 * libc/machine/i386/aclocal.m4: Regenerated.
14201 * libc/machine/i386/configure: Regenerated.
14202 * libc/machine/i386/memchr.S: New file that implements
14203 function in Intel assembler.
14204 * libc/machine/i386/memcmp.S: ditto.
14205 * libc/machine/i386/memcpy.S: ditto.
14206 * libc/machine/i386/memmove.S: ditto.
14207 * libc/machine/i386/memset.S: ditto.
14208 * libc/machine/i386/strchr.S: ditto.
14209 * libc/machine/i386/strlen.S: ditto.
14210 * libc/machine/i386/f_atan2.S: New file that implements
14211 fast version of math function to be used by compiler when
14212 --ffast_math compile option is used.
14213 * libc/machine/i386/f_atan2f.S: ditto.
14214 * libc/machine/i386/f_exp.c: ditto.
14215 * libc/machine/i386/f_expf.c: ditto.
14216 * libc/machine/i386/f_frexp.S: ditto.
14217 * libc/machine/i386/f_frexpf.S: ditto.
14218 * libc/machine/i386/f_ldexp.S: ditto.
14219 * libc/machine/i386/f_ldexpf.S: ditto.
14220 * libc/machine/i386/f_log.S: ditto.
14221 * libc/machine/i386/f_logf.S: ditto.
14222 * libc/machine/i386/f_log10.S: ditto.
14223 * libc/machine/i386/f_log10f.S: ditto.
14224 * libc/machine/i386/f_math.h: New file.
14225 * libc/machine/i386/f_pow.c: ditto.
14226 * libc/machine/i386/f_powf.S: ditto.
14227 * libc/machine/i386/f_tan.S: ditto.
14228 * libc/machine/i386/f_tan.S: ditto.
14229 * libc/machine/i386/i386mach.h: New file.
14230
14231Mon Nov 30 13:02:17 1998 Christopher Faylor <cgf@cygnus.com>
14232
14233 patch from Mumit Khan <khan@xraylith.wisc.edu>
14234 * libc/include/stdio.h (tempnam): Add prototype.
14235 * libc/stdio/tmpnam.c (_tempnam_r): Handle NULL prefix.
14236 (tempnam): Adhere to prototype.
14237
14238Thu Nov 26 00:21:32 1998 Christopher Faylor <cgf@cygnus.com>
14239
14240 * Makefile.am: Add default for AR_FLAGS.
14241 * Makefile.in: Regenerate.
14242
14243Tue Nov 24 18:48:56 1998 Geoffrey Noer <noer@cygnus.com>
14244
14245 * libc/include/time.h: move __cplusplus wrapper after includes
14246 * libc/include/sys/time.h: ditto. If Cygwin, include
14247 sys/select.h.
14248 * libc/include/sys/types.h: lose "32" in comment about Cygwin.
14249
142501998-11-23 Ken Raeburn <raeburn@cygnus.com>
14251
14252 * libc/time/strftime.c (strftime): Handle %y after year 2000.
14253
14254Wed Nov 18 12:22:41 1998 Nick Clifton <nickc@cygnus.com>
14255
14256 * libc/sys/fr30/crt0.s (_start): Switch over to using int #9 as
14257 abnormnal end-of-crt0 marker.
14258
14259Tue Nov 17 16:27:58 1998 Nick Clifton <nickc@cygnus.com>
14260
14261 * libc/sys/fr30/crt0.s: New file/directory.
14262 * libc/include/machine/setjmp.h: Add FR30 target.
14263 * libc/include/machine/ieeefp.h: Add FR30 target.
14264 * configure.host: Add FR30 target.
14265
14266Mon Nov 16 23:15:00 1998 Ranjith Kumaran <ranjith@cygnus.com>
14267
ba3ccd63
EB
14268 * libm/math: Files that are duplicated in common directory removed.
14269 * libm/math/fdlibm.h: Removed.
14270 * libm/math/s_cbrt.c: Removed.
14271 * libm/math/s_copysign.c: Removed.
14272 * libm/math/s_expm1.c: Removed.
14273 * libm/math/s_finite.c: Removed.
14274 * libm/math/s_ilogb.c: Removed.
14275 * libm/math/s_infinity.c: Removed.
14276 * libm/math/s_lib_ver.c: Removed.
14277 * libm/math/s_log1p.c: Removed.
14278 * libm/math/s_logb.c: Removed.
14279 * libm/math/s_matherr.c: Removed.
14280 * libm/math/s_modf.c: Removed.
14281 * libm/math/s_nan.c: Removed.
14282 * libm/math/s_nextafter.c: Removed.
14283 * libm/math/s_rint.c: Removed.
14284 * libm/math/s_scalbn.c: Removed.
14285 * libm/math/sf_cbrt.c: Removed.
14286 * libm/math/sf_copysign.c: Removed.
14287 * libm/math/sf_expm1.c: Removed.
14288 * libm/math/sf_finite.c: Removed.
14289 * libm/math/sf_ilogb.c: Removed.
14290 * libm/math/sf_infinity.c: Removed.
14291 * libm/math/sf_log1p.c: Removed.
14292 * libm/math/sf_logb.c: Removed.
14293 * libm/math/sf_modf.c: Removed.
14294 * libm/math/sf_nan.c: Removed.
14295 * libm/math/sf_nextafter.c: Removed.
14296 * libm/math/sf_rint.c: Removed.
14297 * libm/math/sf_scalbn.c: Removed.
14298 * libm/math/Makefile.am: Removed references to deleted files (above).
14299 * libm/math/Makefile.in: Regenerated.
14300 * libm/Makefile.am: Added common directory to math.
14301 * libm/Makefile.in: Regenerated.
8a0efa53
CF
14302
14303Mon Nov 2 23:12:00 1998 Ranjith Kumaran <ranjith@cygnus.com>
14304
ba3ccd63
EB
14305 * libm/mathfp: Add non-ANSI functions.
14306 * libm/mathfp/e_acosh.c acosh(): New file.
14307 * libm/mathfp/e_atanh.c atanh(): New file.
14308 * libm/mathfp/e_hypot.c hypot(): New file.
14309 * libm/mathfp/e_j0.c j0(): New file.
14310 * libm/mathfp/e_j1.c j1(): New file.
14311 * libm/mathfp/e_remainder.c remainder(): New file.
14312 * libm/mathfp/e_scalb.c scalb(): New file.
14313 * libm/mathfp/ef_acosh.c acoshf(): New file.
14314 * libm/mathfp/ef_atanh.c atanhf(): New file.
14315 * libm/mathfp/ef_hypot.c hypotf(): New file.
14316 * libm/mathfp/ef_j0.c j0f(): New file.
14317 * libm/mathfp/ef_j1.c j1f(): New file.
14318 * libm/mathfp/ef_remainder.c remainderf(): New file.
14319 * libm/mathfp/ef_scalb.c scalbf(): New file.
14320 * libm/mathfp/er_gamma.c gamma_r: New file.
14321 * libm/mathfp/er_lgamma.c lgamma_r(): New file.
14322 * libm/mathfp/erf_gamma.c gamma_rf(): New file.
14323 * libm/mathfp/erf_lgamma.c lgamma_rf(): New file.
14324 * libm/mathfp/w_cabs.c cabs(): New file.
14325 * libm/mathfp/w_drem.c drem(): New file.
14326 * libm/mathfp/w_jn.c jn(): New file.
14327 * libm/mathfp/wf_cabs.c cabsf(): New file.
14328 * libm/mathfp/wf_drem.c dremf(): New file.
14329 * libm/mathfp/wf_jn.c jnf(): New file.
8a0efa53
CF
14330
14331Mon Nov 2 16:43:18 1998 Geoffrey Noer <noer@cygnus.com>
14332
14333 * libc/sys/cygwin32: remove directory and contents
14334 * libc/sys/cygwin: and add back, losing the "32".
14335 * configure.host: check for cygwin* instead of cygwin32.
14336 * acinclude.m4: ditto.
14337 * aclocal.m4: regenerate with aclocal
14338 * configure: regenerate with autoconf
14339
14340Tue Oct 20 17:28:28 1998 Geoffrey Noer <noer@cygnus.com>
14341
14342 * libc/stdio/tmpnam.c (_tempnam_r): not enough memory allocated
14343 for length
14344
14345Tue Oct 20 18:49:05 1998 Jeff Johnston <jjohnstn@cygnus.com>
14346
14347 * libc/include/sys/reent.h (struct _reent): Added variables _rand_next, _strtok_last,
14348 _asctime_buf, _localtime_buf and _gamma_signgam to struct reent
14349 to make rand/srand, strtok, asctime, localtime, w_gamma,
14350 w_lgamma, wf_gamma, and wf_lgamma reentrant. Included
14351 time.h to bring in struct tm definition.
14352 * libc/stdlib/rand.c (rand, srand): Don't emit functions 'rand' and 'srand' if
14353 '_REENT_ONLY' is set. Used variable '_rand_next' from struct reent.
14354 * libc/stdlib/strtok.c (strtok): Used variable '_strtok_last' from struct reent
14355 instead of static variable.
14356 * libc/stdlib/asctime.c (asctime): Used variable '_asctime_buf' from
14357 struct reent instead of static variable.
14358 * libc/stdlib/lcltime.c (localtime): Used variable '_localtime_buf' from
14359 struct reent instead of static variable.
14360 * libm/math/Makefile.am: Removed s_signgam.o.
14361 * libm/math/Makefile.in: Regenerated.
14362 * libm/math/w_gamma.c (gamma): Used variable '_gamma_signgam' from
14363 struct reent instead of global variable 'signgam'.
14364 * libm/math/w_lgamma.c (lgamma): Likewise.
14365 * libm/math/wf_gamma.c (gammaf): Likewise.
14366 * libm/math/wf_lgamma.c (lgammaf): Likewise.
14367 * libm/math/s_signgam.c: Removed.
14368 * libc/include/unctrl.h: Defined arrays __unctrl and __unctrllen
14369 to be const.
14370 * libc/misc/unctrl.c: Defined arrays __unctrl and __unctrllen
14371 to be const.
14372 * libc/reent/Makefile.am: Added dependence for impure.o on impure.c and
14373 libc/include/reent.h.
14374 * libc/reent/Makefile.in: Regenerated.
14375 * libc/stdio/vfprintf.c (_vfprintf_r): Defined arrays 'blanks' and 'zeroes'
14376 to be const.
14377 * libc/stdlib/mbtowc_r.c (_mbtowc_r): Defined arrays 'JIS_state_table' and
14378 'JIS_action_table' to be const.
14379 * libm/math/s_lib_ver.c: define variable _LIB_VERSION to be const.
14380
14381Mon Oct 12 00:26:33 1998 Christopher Faylor <cgf@cygnus.com>
14382
14383 * acinclude.m4: $with_target_subdir should default to '.'
14384 or confusion results when configuring in same directory as sources.
14385 * Regenerate all aclocal.m4 and configure files.
14386
14387Fri Oct 9 16:27:36 1998 Jeff Johnston <jjohnstn@cygnus.com>
14388
14389 * libc/stdlib/mallocr.c: Added 16 byte alignment support which
14390 can be set by defining MALLOC_ALIGNMENT=16. Also added support
14391 for platforms where sizeof(size_t) < sizeof(long) via
14392 SIZE_T_SMALLER_THAN_LONG macro.
17c0c97d 14393
8a0efa53
CF
14394Wed Oct 7 14:02:40 1998 Jeff Johnston <jjohnstn@cygnus.com>
14395
14396 * libc/include/time.h (CLOCKS_PER_SEC): Change CLOCKS_PER_SEC
14397 to refer to _CLOCKS_PER_SEC_ and added including <machine/time.h>
14398 which sets _CLOCKS_PER_SEC_ for selected machines.
14399 * libc/include/machine/time.h: New file.
14400
14401Tue Oct 6 16:08:05 1998 Jeff Johnston <jjohnstn@cygnus.com>
14402
14403 * libc/syscalls/sysexecve.c: New file.
14404 * libc/syscalls/sysgettod.c: New file.
14405 * libc/syscalls/systimes.c: New file.
14406 * libc/syscalls/Makefile.am: Added new objects.
14407 * libc/syscalls/Makefile.in: Regenerated.
14408 * libc/include/_syslist.h (_execve): Moved define in file.
14409 * libc/include/reent.h: Added _execve_r declaration.
14410 * libc/Makefile.in: Regenerated.
14411 * libc/ctype/Makefile.in: Regenerated.
14412 * libc/errno/Makefile.in: Regenerated.
14413 * libc/locale/Makefile.in: Regenerated.
14414 * libc/machine/Makefile.in: Regenerated.
14415 * libc/misc/Makefile.in: Regenerated.
14416 * libc/posix/Makefile.in: Regenerated.
14417 * libc/reent/Makefile.in: Regenerated.
14418 * libc/reent/execr.c (_execve_r): Added _execve_r function.
14419 * libc/signal/Makefile.in: Regenerated.
14420 * libc/stdio/Makefile.in: Regenerated.
14421 * libc/time/Makefile.in: Regenerated.
14422 * libc/unix/Makefile.in: Regenerated.
14423 * libm/mathfp/Makefile.in: Regenerated.
14424
14425Tue Oct 6 14:14:05 1998 Jeff Johnston <jjohnstn@cygnus.com>
14426
14427 * libc/string/Makefile.in: Regenerated.
14428 * libc/string/memchr.c (memchr): Moved code to reduce object size.
14429 * libc/string/memcpy.c (memcpy): Ditto.
14430 * libc/string/memcmp.c (memcmp): Ditto.
14431 * libc/string/memset.c (memset): Ditto.
14432 * libc/string/strchr.c (strchr): Ditto.
14433 * libc/string/strcmp.c (strcmp): Ditto.
14434 * libc/string/strcpy.c (strcpy): Ditto.
14435 * libc/string/strlen.c (strlen): Ditto.
14436
14437Tue Oct 6 13:58:05 1998 Jeff Johnston <jjohnstn@cygnus.com>
14438
14439 * libm/acinclude.m4: Removed since newlib/acinclude.m4 can be used
14440 to generate aclocal.m4.
14441 * libm/Makefile.in: Regenerated.
14442 * libm/aclocal.m4: Regenerated.
14443 * libm/configure: Regenerated.
14444 * libm/math/Makefile.in: Regenerated.
14445 * libm/mathfp/Makefile.in: Regenerated.
14446
144471998-09-25 Mark Salter <msalter@cygnus.com>
14448
14449 * libc/include/machine/setjmp.h: Fixed test for mn10300 and mn10200
14450 by adding leading and trailing underscores to symbol names.
14451
14452Tue Sep 22 15:33:41 1998 Christopher Faylor <cgf@cygnus.com>
14453
14454 * Makefile.in: Add default for AR_FLAGS.
14455
14456Tue Sep 22 15:02:49 1998 Christopher Faylor <cgf@cygnus.com>
14457
14458 patch from ian@airs.com (Ian Taylor):
14459 * acinclude.m4: Run AC_CANONICAL_BUILD explicitly before
14460 NEWLIB_CONFIGURE so AC_CANONICAL_HOST will be run before it
14461 is needed for detecting the build machine. Required for
14462 cygwin native builds.
14463
14464 * Regenerate all aclocal.m4 and configure files.
14465
14466Mon Sep 21 14:44:16 1998 Nick Clifton <nickc@cygnus.com>
14467
14468 * libc/sys/arm/crt0.S: Prepend a period to all local labels that
14469 used to start with LC.
14470
14471Thu Sep 17 18:18:11 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
14472
14473 * libc/machine/sh/setjmp.S (setjmp): Handle __SH4* like __SH3E__ .
14474 (longjmp): Likewise.
14475
14476Thu Sep 17 16:25:33 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
14477
14478 * libc/machine/sh/memset.S (memset): Move copy from r4 to r4 before
14479 the test for small number of bytes.
14480
14481Thu Sep 10 11:40:00 1998 Ranjith Kumaran <ranjith@cygnus.com>
14482
14483 * Makefile.am: Add --enable-newlib-hw-fp check. This builds the new
14484 math library that uses floating point algorithms instead of the old
14485 libm.
14486 * Makefile.in: Regenerate with automake version 1.3b.
14487 * configure: Rebuild.
14488 * libm/Makefile.in: Regenerate with automake version 1.3b.
14489 * libm/aclocal.m4: Regenerate.
14490 * libm/configure: Rebuild.
14491 * libm/configure.in: Add newlib_hw_fp definition and mathfp directory.
14492 * libm/acinclude.m4: Define macros for configure.in.
14493 * libm/config.h.in: Generate.
14494 * libm/mathfp/Makefile.am: New file.
14495 * libm/mathfp/Makefile.in: Generate.
14496 * libm/mathfp/s_acos.c (acos): New file.
14497 * libm/mathfp/s_asin.c (asin): New file.
14498 * libm/mathfp/s_asine.c (asine): New file.
14499 * libm/mathfp/s_atan.c (atan): New file.
14500 * libm/mathfp/s_atan2.c (atan2): New file.
14501 * libm/mathfp/s_atangent.c (atangent): New file.
14502 * libm/mathfp/s_ceil.c (ceil): New file.
14503 * libm/mathfp/s_copysign.c (copysign): New file.
14504 * libm/mathfp/s_cos.c (cos): New file.
14505 * libm/mathfp/s_cosh.c (cosh): New file.
14506 * libm/mathfp/s_exp.c (exp): New file.
14507 * libm/mathfp/s_fabs.c (fabs): New file.
14508 * libm/mathfp/s_finite.c (finite): New file.
14509 * libm/mathfp/s_floor.c (floor): New file.
14510 * libm/mathfp/s_fmod.c (fmod): New file.
14511 * libm/mathfp/s_frexp.c (frexp): New file.
14512 * libm/mathfp/s_infconst.c: New file.
14513 * libm/mathfp/s_isinf (isinf).c: New file.
14514 * libm/mathfp/s_isnan.c (isnan): New file.
14515 * libm/mathfp/s_ispos.c (ispos): New file.
14516 * libm/mathfp/s_ldexp.c (ldexp): New file.
14517 * libm/mathfp/s_log.c (log): New file.
14518 * libm/mathfp/s_log10.c (log10): New file.
14519 * libm/mathfp/s_logarithm.c (logarithm): New file.
14520 * libm/mathfp/s_mathcnst.c: New file.
14521 * libm/mathfp/s_modf (modf).c: New file.
14522 * libm/mathfp/s_numtest.c (numtest): New file.
14523 * libm/mathfp/s_pow.c (pow): New file.
14524 * libm/mathfp/s_scalbn.c (scalbn): New file.
14525 * libm/mathfp/s_sin (sin).c: New file.
14526 * libm/mathfp/s_sine.c (sine): New file.
14527 * libm/mathfp/s_sineh.c (sineh): New file.
14528 * libm/mathfp/s_sinf.c (sinf): New file.
14529 * libm/mathfp/s_sinh.c (sinh): New file.
14530 * libm/mathfp/s_sqrt.c (sqrt): New file.
14531 * libm/mathfp/s_tan.c (tan): New file.
14532 * libm/mathfp/s_tanh.c (tanh): New file.
14533 * libm/mathfp/sf_acos.c (acosf): New file.
14534 * libm/mathfp/sf_asin.c (asinf): New file.
14535 * libm/mathfp/sf_asine.c (asinef): New file.
14536 * libm/mathfp/sf_atan.c (atanf): New file.
14537 * libm/mathfp/sf_atan2.c (atan2f): New file.
14538 * libm/mathfp/sf_atangent.c (atangent): New file.
14539 * libm/mathfp/sf_ceil.c (ceilf): New file.
14540 * libm/mathfp/sf_copysign.c (copysignf): New file.
14541 * libm/mathfp/sf_cos.c (cosf): New file.
14542 * libm/mathfp/sf_cosh.c (coshf): New file.
14543 * libm/mathfp/sf_exp.c (expf): New file.
14544 * libm/mathfp/sf_fabs.c (fabsf): New file.
14545 * libm/mathfp/sf_finite.c (finitef): New file.
14546 * libm/mathfp/sf_floor.c (floorf): New file.
14547 * libm/mathfp/sf_fmod.c (fmodf): New file.
14548 * libm/mathfp/sf_frexp.c (frexpf): New file.
14549 * libm/mathfp/sf_isinf.c (isinff): New file.
14550 * libm/mathfp/sf_isnan.c (isnanf): New file.
14551 * libm/mathfp/sf_ispos.c (isposf): New file.
14552 * libm/mathfp/sf_ldexp.c (ldexpf): New file.
14553 * libm/mathfp/sf_log.c (logf): New file.
14554 * libm/mathfp/sf_log10.c (log10f): New file.
14555 * libm/mathfp/sf_logarithm.c (logarithmf): New file.
14556 * libm/mathfp/sf_modf.c (modff): New file.
14557 * libm/mathfp/sf_numtest.c (numtestf): New file.
14558 * libm/mathfp/sf_pow.c (powf): New file.
14559 * libm/mathfp/sf_scalbn.c (scalbnf): New file.
14560 * libm/mathfp/sf_sin.c (sinf): New file.
14561 * libm/mathfp/sf_sine.c (sinef): New file.
14562 * libm/mathfp/sf_sineh.c (sinehf): New file.
14563 * libm/mathfp/sf_sinh.c (sinhf): New file.
14564 * libm/mathfp/sf_sqrt.c (sqrtf): New file.
14565 * libm/mathfp/sf_tan.c (tanf): New file.
14566 * libm/mathfp/sf_tanh.c (tanhf): New file.
14567 * libm/mathfp/zmath.h: New file.
14568
14569Wed Sep 2 02:49:03 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
14570
14571 * libc/machine/sh/strcmp.S (L_char_loop): Re-load r0 at loop
14572 exit if it has been overwritten by pre-fetching in delay slot.
14573
145741998-09-01 Michael Meissner <meissner@cygnus.com>
14575
14576 * Makefile.am (tooldir): Add in host_alias, so that multilib
14577 libraries are installed in the directory the compiler looks in.
14578 * Makefile.in: Regenerate.
14579
14580 * libc/stdlib/Makefile.in: Regenerate with automake version 1.3b.
14581
14582Mon Aug 31 11:39:31 1998 Jeff Johnston <jjohnstn@cygnus.com>
14583
14584 * libc/machine/mn10300/memcpy.S (_memcpy): Move alignment test
14585 ahead of test for number of bytes being moved.
14586
14587Thu Aug 27 14:07:53 1998 Christopher Faylor <cgf@cygnus.com>
14588
14589 * libc/include/sys/unistd.h: Nothing special needed for
14590 _exit under cygwin.
14591
14592Wed Aug 26 15:05:21 1998 Nick Clifton <nickc@cygnus.com>
14593
14594 * libc/sys/arm/syscalls.c (_sbrk): Rename '_end' to 'end' to
17c0c97d 14595 conform to user label naming conventions.
8a0efa53
CF
14596
14597Mon Aug 24 14:46:19 1998 Geoffrey Noer <noer@cygnus.com>
14598
14599 * libc/sys/cygwin32/sys/utime.h: variable names in
14600 protos should start with two leading underscores
14601 * libc/include/string.h: ditto
14602 * libc/include/sys/signal.h: ditto
14603 * libc/include/sys/stat.h: ditto
14604 * libc/include/sys/time.h: ditto
14605 * libc/include/sys/unistd.h: ditto
14606 * libc/include/ctype.h: ditto
14607 * libc/include/stdlib.h: ditto
14608 * libc/include/sys/reent.h: struct _atexit function ptr takes a
14609 void, same with _sig_func.
14610
14611Fri Aug 21 14:44:14 1998 Jeff Johnston <jjohnstn@cygnus.com>
14612
14613 * libc/stdlib/mbtowc_r.c (_mbtowc_r): Added preprocessor checks
14614 for MB_CAPABLE to reduce code size when newlib is not configured
14615 with --enable-newlib-mb.
14616 * libc/stdlib/Makefile.am: Specified -fshort-enums when building
17c0c97d 14617 mbtowc_r.o to minimize size.
8a0efa53 14618 * libc/stdlib/Makefile.in: Rebuild.
17c0c97d 14619
8a0efa53
CF
14620Wed Aug 19 16:20:13 1998 Jim Wilson <wilson@cygnus.com>
14621
14622 * libc/sys/sparc64/Makefile.am (.S_r.o, .c_r.o): Change -DREENTRANT
14623 to -DREENT.
14624 * libc/sys/sparc64/Makefile.in: Rebuild.
17c0c97d 14625
8a0efa53
CF
14626Tue Aug 18 22:38:29 1998 Ian Lance Taylor <ian@cygnus.com>
14627
14628 * Makefile.am (MAKEOVERRIDES): Define.
14629 * Makefile.in: Rebuild.
14630
14631Tue Aug 18 12:38:47 1998 Jim Wilson <wilson@cygnus.com>
14632
14633 * libc/sys/sparc64/sys/stat.h (stat): Add const.
14634
14635Mon Aug 17 22:27:06 1998 Ian Lance Taylor <ian@cygnus.com>
14636
14637 * acinclude.m4 (NEWLIB_CONFIGURE): Use top_builddir in
14638 newlib_cflags when looking for targ-include.
14639 * */aclocal.m4, */configure: Rebuild.
14640
14641Fri Jul 31 10:57:42 1998 Catherine Moore <clm@cygnus.com>
14642
ba3ccd63
EB
14643 * libc/sys/arm/syscalls.c (_sbrk): Change "__end__"
14644 to "_end".
8a0efa53
CF
14645
14646Wed Jul 29 00:02:01 1998 Mark Alexander <marka@cygnus.com>
14647
14648 * libc/include/sys/config.h: Define __IEEE_LITTLE_ENDIAN
14649 on SPARCs with little-endian data.
14650 * libc/include/machine/ieeefp.h: Ditto.
14651
14652Wed Jul 22 18:00:10 1998 Ian Lance Taylor <ian@cygnus.com>
14653
14654 * acinclude.m4: Handle a relative srcdir correctly when setting
14655 newlib_cflags.
14656 * */aclocal.m4, */configure: Rebuild.
14657
14658Wed Jul 22 17:11:33 1998 Jeff Johnston <jjohnstn@cygnus.com>
14659
14660 * libm/math/wrf_lgamma.c (lgammaf_r): Initialize exc.err to 0 and
17c0c97d
EB
14661 also set exc.arg1, exc.arg2 appropriately in case matherr is supplied.
14662 * libm/math/wrf_gamma.c (gammaf_r): ditto
14663 * libm/math/wr_lgamma.c (lgamma_r): ditto
14664 * libm/math/wr_gamma.c (gamma_r): ditto
14665 * libm/math/wf_sqrt.c (sqrtf): ditto
14666 * libm/math/wf_sinh.c (sinhf): ditto
14667 * libm/math/wf_scalb.c (scalbf): ditto
14668 * libm/math/wf_remainder.c (remainderf): ditto
14669 * libm/math/wf_pow.c (powf): ditto
14670 * libm/math/wf_log10.c (log10f): ditto
14671 * libm/math/wf_log.c (logf): ditto
14672 * libm/math/wf_lgamma.c (lgammaf): ditto
14673 * libm/math/wf_jn.c (jnf, ynf): ditto
14674 * libm/math/wf_j1.c (j1f, y1f): ditto
14675 * libm/math/wf_j0.c (j0f, y0f): ditto
14676 * libm/math/wf_hypot.c (hypotf): ditto
14677 * libm/math/wf_gamma.c (gammaf): ditto
14678 * libm/math/wf_fmod.c (fmodf): ditto
14679 * libm/math/wf_exp.c (expf): ditto
14680 * libm/math/wf_cosh.c (coshf): ditto
14681 * libm/math/wf_atanh.c (atanhf): ditto
14682 * libm/math/wf_atan2f.c (atan2f): ditto
14683 * libm/math/wf_asin.c (asinf): ditto
14684 * libm/math/wf_acosh.c (acoshf): ditto
14685 * libm/math/wf_acos.c (acosf): ditto
14686 * libm/math/w_sqrt.c (sqrt): ditto
14687 * libm/math/w_sinh.c (sinh): ditto
14688 * libm/math/w_scalb.c (scalb): ditto
14689 * libm/math/w_remainder.c (remainder): ditto
14690 * libm/math/w_pow.c (pow): ditto
14691 * libm/math/w_log10.c (log10): ditto
14692 * libm/math/w_log.c (log): ditto
14693 * libm/math/w_lgamma.c (lgamma): ditto
14694 * libm/math/w_jn.c (jn, yn): ditto
14695 * libm/math/w_j1.c (j1, y1): ditto
14696 * libm/math/w_j0.c (j0, y0): ditto
14697 * libm/math/w_hypot.c (hypot): ditto
14698 * libm/math/w_gamma.c (gamma): ditto
14699 * libm/math/w_fmod.c (fmod): ditto
14700 * libm/math/w_exp.c (exp): ditto
14701 * libm/math/w_cosh.c (cosh): ditto
14702 * libm/math/w_atanh.c (atanh): ditto
14703 * libm/math/w_atan2f.c (atan2): ditto
14704 * libm/math/w_asin.c (asin): ditto
14705 * libm/math/w_acosh.c (acosh): ditto
14706 * libm/math/w_acos.c (acos): ditto
8a0efa53
CF
14707
14708Tue Jul 21 12:34:54 1998 Ian Lance Taylor <ian@cygnus.com>
14709
14710 * libm/math/Makefile.am (src): Add w_cabs.c and w_drem.c.
14711 (fsrc): Add wf_cabs.c and wf_drem.c.
14712 * libm/math/Makefile.in: Rebuild.
14713
14714 * Makefile.am (AM_MAKEFLAGS): Add CFLAGS_FOR_BUILD. Remove some
14715 unused directory variables. Remove duplicate CFLAGS.
14716 * Makefile.in: Rebuild.
14717
14718 * doc/Makefile.am ($(MKDOC)): Don't use $(CFLAGS) when building
14719 with $(CC_FOR_BUILD).
14720 (makedoc.o): Likewise.
14721 * doc/Makefile.in: Rebuild.
14722
14723 * libc/sys/cygwin32/Makefile.am (EXTRA_LIBRARIES): Define, to
14724 force a definition of COMPILE.
14725 (libfoo_a_SOURCES): Define.
14726 * libc/sys/cygwin32/Makefile.in: Rebuild.
14727 * libc/sys/tic80/Makefile.am (EXTRA_LIBRARIES): Define, to
14728 force a definition of COMPILE.
14729 (libfoo_a_SOURCES): Define.
14730 * libc/sys/tic80/Makefile.in: Rebuild.
14731
14732Mon Jul 20 20:49:24 1998 Christopher Faylor <cgf@cygnus.com>
14733
14734 * libc/include/sys/fcntl.h: Add O_NOINHERIT, Win32-specific
14735 flag.
14736
14737Fri Jul 17 16:13:16 1998 Ian Lance Taylor <ian@cygnus.com>
14738
14739 * Build using autoconf and automake. Added many Makefile.am and
14740 configure.in files, plus generated files. Old configure.in files
14741 and all old Makefile.in files completely replaced. Removed
14742 host/any. Added acinclude.m4 and configure.host.
14743
14744Sat Jul 11 18:14:49 1998 Felix Lee <flee@cygnus.com>
14745
14746 * libc/stdio/vfprintf.c: enable long long support, sometimes.
14747 * configure.in (*-*-cygwin32): add -DWANT_PRINTF_LONG_LONG.
14748
14749Tue Jul 7 01:51:55 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
14750
14751 * libc/machine/sh/strcmp.S, libc/machine/sh/strcpy.S: New files.
14752 * libc/machine/sh/Makefile.in: Add rules for new files.
14753
14754Tue Jul 7 01:40:55 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
14755
14756 * libc/machine/sh/asm.h (SL, DELAYED_BRANCHES): Define.
14757 * libc/machine/sh/memset.S (memset): Remove uses of dt; shorten code.
14758 * libc/machine/sh/memcpy.S (SL, DELAYED_BRANCHES): Don't define.
14759
14760Thu Jul 2 10:33:16 1998 Nick Clifton <nickc@cygnus.com>
14761
14762 * libc/sys/arm/syscalls.c (_exit): Add comment, noting that exit
14763 code is ignored.
14764
14765Wed Jun 24 13:56:54 1998 Jeff Johnston <jjohnstn@cygnus.com>
14766
14767 * libc/stdio/tmpnam.c (_tmpnam_r): Changed routine to use
14768 internal static buffer when s is NULL, as prescribed by ANSI.
14769
147701998-06-22 Vladimir N. Makarov <vmakarov@cygnus.com>
14771
14772 * libc/sys/h8300hms/Makefile.in (OFILES): malloc.o has been
14773 removed.
14774 * libc/sys/h8300hms/malloc.c: has been removed. Now malloc.c from
14775 libc/stdlib will be used for h8300hms.
17c0c97d 14776
8a0efa53
CF
14777Thu Jun 18 16:56:05 1998 Jeff Johnston <jjohnstn@cygnus.com>
14778
14779 * libc/machine/mn10300/strlen.S (_strlen): New optimized assembler
14780 version that can be built either for speed or size.
14781 * libc/machine/mn10300/memset.S (_memset): ditto
14782 * libc/machine/mn10300/memchr.S (_memchr): ditto
14783 * libc/machine/mn10300/memcpy.S (_memcpy): ditto
14784 * libc/machine/mn10300/memcmp.S (_memcmp): ditto
14785 * libc/machine/mn10300/strchr.S (_strchr): ditto
14786 * libc/machine/mn10300/strcmp.S (_strcmp): ditto
14787 * libc/machine/mn10300/strcpy.S (_strcpy): ditto
14788 * libc/machine/mn10300/Makefile.in: Added entries for
17c0c97d 14789 memchr.o, memcmp.o, memcpy.o, memset.o, strchr.o,
8a0efa53
CF
14790 strcmp.o, strcpy.o, and strlen.o.
14791
14792Wed Jun 17 12:50:26 1998 Mark Alexander <marka@cygnus.com>
14793
14794 * configure.in: Don't use libc/sys/sysmec for MN10200; it's
14795 been replaced with libgloss/mn10200.
14796
14797Fri Jun 12 14:34:39 1998 Michael Meissner <meissner@cygnus.com>
14798
14799 * libc/string/strchr.c (strchr): Make s a constant pointer to
14800 avoid warning.
14801
14802Tue Jun 9 16:29:30 1998 Jason Molenda (crash@bugshack.cygnus.com)
14803
14804 * configure.in (target == arm* or thumb*): Define ARM_RDI_MONITOR
14805 instead of ARM_RDP_MONITOR (sys/libc/arm/crt0.S to assume Angel
14806 board SWIs instead of Demon board SWIs).
14807
14808Thu Jun 4 12:16:46 1998 Michael Meissner <meissner@cygnus.com>
14809
14810 * libc/string/strncat.c (strncat): Make -Os act the same as
14811 PREFER_SIZE_OVER_SPEED being defined.
14812
14813Wed Jun 3 17:52:33 1998 Michael Meissner <meissner@cygnus.com>
14814
14815 * libc/string/memchr.c (memchr): Make -Os act the same as
14816 PREFER_SIZE_OVER_SPEED being defined.
14817 * libc/string/memcmp.c (memcmp): Ditto.
14818 * libc/string/memcpy.c (memcpy): Ditto.
14819 * libc/string/memset.c (memset): Ditto.
14820 * libc/string/strcat.c (strcat): Ditto.
14821 * libc/string/strchr.c (strchr): Ditto.
14822 * libc/string/strcmp.c (strcmp): Ditto.
14823 * libc/string/strcpy.c (strcpy): Ditto.
14824 * libc/string/strlen.c (strlen): Ditto.
14825 * libc/string/strncat.c (strncat): Ditto.
14826 * libc/string/strncmp.c (strncmp): Ditto.
14827 * libc/string/strncpy.c (strncpy): Ditto.
14828
14829Mon Jun 1 15:25:07 1998 Geoffrey Noer <noer@cygnus.com>
14830
14831 * libc/include/sys/itimer.h: remove
14832 * libc/include/sys/time.h: itimer stuff should be here
14833
14834Mon Jun 1 16:31:29 1998 Jeff Johnston <jjohnstn@cygnus.com>
14835
14836 * libc/stdio/vfprintf.c (cvt): Changed code to look at sign
14837 bit instead of comparing to 0 so -0.0 can be printed correctly.
14838
14839Sat May 30 09:33:51 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
14840
14841 * libc/stdlib/mprec.c (b2d): Inilialize d in non-VAX case too.
14842
14843Fri May 29 22:25:10 1998 Geoffrey Noer <noer@cygnus.com>
14844
14845 * libc/include/sys/unistd.h: fix sync() proto
14846 * libc/include/sys/fcntl.h: remove _close which is already
14847 defined in unistd.h.
14848 * libc/include/sys/time.h: add getitimer proto
14849
14850Fri May 29 16:10:28 1998 Geoffrey Noer <noer@cygnus.com>
14851
14852 * libc/string/strchr.c: convert arg to unsigned char
14853 * libc/include/stdlib.h: add protos for random, srandom
14854 * libc/include/sys/stat.h: add lstat proto
14855 * libc/include/sys/time.h: add setitimer proto
14856 * libc/include/sys/unistd.h: add readlink, symlink protos
14857 * libc/include/process.h: instead of including windows.h and using
14858 HANDLEs in sexec protos, just use void *s. Need to include
14859 sys/types.h.
14860
14861Fri May 29 03:04:29 1998 Geoffrey Noer <noer@cygnus.com>
14862
14863 * libc/include/sys/fcntl.h: add _close proto for Cygwin32
14864
14865Thu May 28 16:34:21 1998 Geoffrey Noer <noer@cygnus.com>
14866
14867 * libc/include/process.h: add secure exec protos
14868
14869Wed May 27 13:54:51 1998 Jeffrey A Law (law@cygnus.com)
14870
14871 * libc/stdlib/dtoa.c (_dtoa_r): Use "double_union" for variables
14872 which are accessed as both doubles and integers.
14873 * libc/stdlib/mprec.c (ulp, b2d, ratio): Likewise.
14874 * libc/stdlib/strtod.c (_strtod_r): Likewise.
14875 * libc/stdlib/mprec.h: Add "union double_union" and change
14876 word0/word1 macros to use it.
14877
14878Tue May 26 18:04:21 1998 Geoffrey Noer <noer@cygnus.com>
14879
14880 * libc/include/sys/signal.h: add __cplusplus wrapper
14881
14882Tue May 26 15:10:22 1998 Geoffrey Noer <noer@cygnus.com>
14883
14884 * libc/include/sys/utime.h: new generic file that gets replaced by
14885 libc/sys/SYSDIR/sys/utime.h on systems that support the utime
14886 function.
14887 * sys/cygwin32/sys/utime.h: use _EXFUN in utime proto
14888 * libc/include/time.h: remove duplicate utime proto
14889 * libc/include/utime.h: add comment
14890
14891Sun May 24 23:56:20 1998 Christopher Faylor <cgf@cygnus.com>
14892
14893 * libc/include/sys/time.h: Add missing include to
14894 allow use of _EXFUN. Remove times function that is
14895 already defined in times.h.
14896
14897Sun May 24 01:32:14 1998 Christopher Faylor <cgf@cygnus.com>
14898
14899 * libc/include/time.h: Fix typo in tzset.
14900
14901Fri May 22 17:00:48 1998 Geoffrey Noer <noer@cygnus.com>
14902
14903 * libc/include/sys/time.h: add missing Cygwin32 function protos
14904 * libc/include/sys/unistd.h: ditto
14905 * libc/include/time.h: ditto
14906
14907Wed May 20 20:35:11 1998 Geoffrey Noer <noer@cygnus.com>
14908
14909 * libc/sys/cygwin32/sys/param.h: add protected NULL def, remove
14910 FIXME.
14911 * libc/include/sys/types.h: add a new __MS_types__ section
14912 to define vm_offset_t, vm_size_t, int32_t et al, register_t,
14913 __BIT_TYPES_DEFINED__.
14914
14915Wed May 20 18:49:21 1998 Geoffrey Noer <noer@cygnus.com>
14916
14917 * libc/sys/cygwin32/sys/param.h: move here from winsup/include/sys
14918 since it overrides the one in libc/include/sys. Also, start
14919 including types.h.
14920
14921Wed May 20 14:45:40 1998 Geoffrey Noer <noer@cygnus.com>
14922
14923 * libm/math/Makefile.in: add s_signgam.o to obj list
14924
14925Tue May 19 11:57:11 1998 Jeff Johnston <jjohnstn@cygnus.com>
14926
14927 * libc/include/sys/reent.h (_REENT_INIT): Initialize current locale to "C".
14928
14929Mon May 18 22:36:12 1998 Christopher Faylor <cgf@cygnus.com>
14930
14931 * libc/include/sys/signal.h: cygwin32 exports sig{empty,add}set,
14932 so don't use defines.
14933
14934Mon May 18 19:01:02 1998 Michael Meissner <meissner@cygnus.com>
14935
14936 * libc/sys/d10v/crt0.S: Use correct stab for 16-bit ints.
14937
14938Sun May 17 18:40:32 1998 Frank Ch. Eigler <fche@cygnus.com>
14939
14940 * libc/stdlib/mbtowc_r.c (_mbtowc_r): Accept a NULL
17c0c97d 14941 _current_locale as default locale.
8a0efa53
CF
14942
14943Sat May 16 21:59:59 1998 Bob Manson <manson@charmed.cygnus.com>
14944
14945 * libc/stdlib/mallocr.c (mALLOc): Add explicit tests for
17c0c97d 14946 insufficient space in a chunk.
8a0efa53
CF
14947
14948Tue May 12 14:41:01 1998 Jeff Johnston <jjohnstn@cygnus.com>
14949
14950 * configure.in (links): Added check for --enable-newlib-mb configure
14951 option which defines the MB_CAPABLE macro.
14952 * libc/locale/locale.c (_setlocale_r): Added support for setting
14953 LC_CTYPE to "C-JIS", "C-SJIS" or "C-EUCJP", when MB_CAPABLE is
14954 defined.
14955 * libc/stdlib/mbtowc_r.c (_mbtowc_r): New function _mbtowc_r that
14956 implements mbtowc() with multibyte support for JIS, SJIS, and EUC-JP.
14957 * libc/stdlib/wctomb_r.c (_wctomb_r): New function _wctomb_r that
14958 implements wctomb() with multibyte support for JIS, SJIS, and EUC-JP.
14959 * libc/stdlib/mbstowcs_r.c (_mbstowcs_r): New function _mbstowcs_r that
17c0c97d 14960 implements mbstowcs() with multibyte support for JIS, SJIS, and EUC-JP.
8a0efa53
CF
14961 * libc/stdlib/wcstombs_r.c (_wcstombs_r): New function _wcstomb_r that implements
14962 wcstombs() with multibyte support for JIS, SJIS, and EUC-JP.
14963 * libc/stdlib/Makefile.in: Added new multibyte
14964 routines: _mbtowc_r(), _wctomb_r(), _mbstowcs_r(), and _wcstombs_r().
14965 * libc/include/stdlib.h: Added declarations of _mbtowc_r(), _wctomb_r(),
14966 _mbstowcs_r(), and _wcstombs_r().
14967 * libc/stdlib/mbctype.h: New internal header file that contains macros to test
14968 for JIS, SJIS, and EUC-JP characters.
14969 * libc/stdlib/mblen.c (mblen): Added code to call _mbtowc_r() if
17c0c97d 14970 MB_CAPABLE defined.
8a0efa53
CF
14971 * libc/stdlib/mbtowc.c (mbtowc): Added code to call _mbtowc_r() if
14972 MB_CAPABLE defined.
14973 * libc/stdlib/wctomb.c (wctomb): Added code to call _wctomb_r() if
14974 MB_CAPABLE defined.
14975 * libc/stdlib/mbstowcs.c (mbstowcs): Added code to call _mbstowcs_r()
14976 if MB_CAPABLE defined.
14977 * libc/stdlib/wcstombs.c (wcstombs): Added code to call _wcstombs_r()
14978 if MB_CAPABLE defined.
14979 * libc/stdio/vfscanf.c (__svfscanf): Added multibyte tolerance
14980 to the format string processing when MB_CAPABLE.
14981 * libc/stdio/vfprintf.c (_VFPRINTF_R): Changed mbtowc() call to
14982 call _mbtowc_r().
14983
14984Tue May 5 16:07:23 1998 Nick Clifton <nickc@cygnus.com>
14985
14986 The following modifications are courtesy of Anthony Thompson,
14987 athompson@cambridge.arm.com:
14988 * libc/sys/arm/syscalls.c: Initialise and track stdin/out/err for
14989 boith RDI and RDP monitors.
14990 * libc/sys/arm/crt0.S: Call initialise_monitor_handles() for both
14991 RDI and RDP monitors.
14992
14993Wed Apr 29 15:22:15 1998 Jeff Johnston <jjohnstn@cygnus.com>
14994
14995 * configure.in (links): Added -DHAVE_GETTIMEOFDAY for arm and thumb.
14996 * libc/sys/arm/syscalls.c (_gettimeofday _times): Added functions.
14997 (_swiopen): Fixed open flags to treat write with append as just append.
14998 (_swilseek): Fixed lseek support to properly handle offsets from SEEK_END.
14999 * libc/sys/arm/sys/param.h: New file to override param.h for ARM.
15000
15001Fri Apr 24 18:00:09 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
15002
15003 * libc/machine/sh/memcpy.S (L_odddst, big endian version):
15004 When needing to transfer an initial 2-byte-word, store as
15005 two single bytes.
15006
15007Wed Apr 22 17:56:03 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
15008
15009 * libc/sys/sh/crt0.S (start): Handle __SH4_SINGLE_ONLY__ like
15010 __SH3E__ .
15011 * libc/machine/sh/memcpy.S (DELAYED_BRANCHES, SL): Likewise.
15012 * libc/include/machine/ieeefp.h (_DOUBLE_IS_32BITS): Likewise.
15013
15014Wed Apr 22 12:28:03 1998 Michael Meissner <meissner@cygnus.com>
15015
15016 * configure.in (target_cflags): If --enable-target-optspace, use
15017 -Os to compile newlib rather than -O2. Default to using -Os for
15018 d10v, d30v and m32r if --{enable,disable}-target-optspace is not
15019 used.
15020
15021Tue Apr 21 23:13:34 1998 Geoffrey Noer <noer@cygnus.com>
15022
ba3ccd63
EB
15023 * libc/include/machine/setjmp.h: change sigsetjmp and
15024 siglongjmp definitions to use an array instead of a struct
15025 for __CYGWIN32__
8a0efa53
CF
15026
15027Tue Apr 14 11:47:47 1998 Doug Evans <devans@canuck.cygnus.com>
15028
15029 * libc/reent/impure.c (__ATTRIBUTE_IMPURE_DATA__): Fix spelling.
15030
15031Mon Apr 6 15:05:08 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
15032
15033 * libc/string/strxfrm.c: fix to get correct return value
15034
15035Wed Apr 1 16:09:05 1998 Nick Clifton <nickc@cygnus.com>
15036
15037 * libc/sys/arm/crt0.S: Set top of RAM to be 0x800000 for PE
15038 builds. Make mode change labels global so that they will be seen
15039 by the debugger.
15040
15041Wed Mar 18 09:45:10 1998 Nick Clifton <nickc@cygnus.com>
15042
15043 * configure.in (links): Do not use ARM debiugging protocols for PE
15044 builds.
15045
15046 * libc/sys/arm/syscalls.c (_sbrk): Add "_sbrk: " to error
17c0c97d 15047 message.
8a0efa53
CF
15048
15049Fri Mar 13 11:24:34 1998 Jeff Johnston <jjohnstn@cygnus.com>
15050
15051 * libc/stdio/findfp.c (__sinit): Made stdout default to
15052 line buffered mode as defined by ANSI.
15053
15054Tue Mar 10 11:41:26 1997 Bob Manson <manson@charmed.cygnus.com>
15055
15056 * libc/include/sys/itimer.h: New file.
15057
15058 * libc/signal/signal.c (__sigtramp_r,__sigtramp): New functions.
15059
15060Mon Mar 9 14:19:26 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
15061
15062 * libc/machine/sh/memcpy.S: (_memcpy): Fix for execute/memcpy-1.c
15063 failure.
15064
15065Fri Feb 27 13:56:10 1998 Michael Meissner <meissner@cygnus.com>
15066
15067 * libc/machine/d30v/setjmp.S (longjmp): Fix order of parallel
15068 insns.
15069
15070Wed Feb 25 09:29:54 1998 Nick Clifton <nickc@cygnus.com>
15071
15072 * libc/sys/arm/syscalls.c (_open): Add varags to conform to prototype.
15073
15074Tue Feb 24 18:00:13 1998 Michael Meissner <meissner@cygnus.com>
15075
15076 * libc/machine/d30v/{setjmp.S,Makefile.in}: New files for D30V
15077 support.
15078
15079 * libc/include/machine/setjmp.h: Add D30V support.
15080
15081 * configure.in (d30v-*): Add d30v machine directory.
15082
15083Mon Feb 23 09:32:58 1998 Mark Alexander <marka@cygnus.com>
15084
15085 * configure.in: Don't use libc/sys/sysmec for MN10300; it's
15086 been replaced with libgloss/mn10300.
15087
15088Sat Feb 21 17:44:43 1998 Geoffrey Noer <noer@cygnus.com>
15089
15090 * libc/stdlib/mallocr.c: remove __malloc_copy routine now that
15091 it is no longer needed.
15092
15093Thu Feb 19 16:15:10 1998 Geoffrey Noer <noer@cygnus.com>
15094
ba3ccd63 15095 * libc/include/sys/signal.h: add sigpause proto for Cygwin32
8a0efa53
CF
15096
15097Wed Feb 18 23:51:08 1998 Geoffrey Noer <noer@cygnus.com>
15098
15099 * libc/stdio/fdopen.c (fdopen): Make all writes go to the end of
ba3ccd63 15100 the file when O_APPEND is set, wherever the EOF happens to be at
17c0c97d 15101 that time.
8a0efa53
CF
15102
15103Wed Feb 18 23:25:02 1998 Geoffrey Noer <noer@cygnus.com>
17c0c97d 15104
8a0efa53
CF
15105 patch from cgf@bbc.com (Christopher Faylor):
15106 * libc/stdio/freopen.c (freopen): Conform to standard UNIX
15107 convention of closing fp prior to attempting to open the file
15108 argument. This allows correct operation when reopening
15109 stdin/stdout/stderr. Replaces last freopen.c patch.
15110
15111Wed Feb 18 16:27:40 1998 Geoffrey Noer <noer@cygnus.com>
15112
ba3ccd63
EB
15113 patch from cgf@bbc.com (Christopher Faylor):
15114 * libc/stdio/freopen.c: freopen was not preserving the fd
15115 of the stream being operated on. This confuses programs that
15116 expect that the handles for stdout and stderr will be 1 and 2.
8a0efa53
CF
15117
15118Mon Feb 16 23:34:07 1998 Andrew Cagney <cagney@b1.cygnus.com>
15119
15120 * libc/sys/d10v/crt0.S (_start): Set PSW{SW} - select SPU.
15121
15122Thu Feb 12 15:09:20 1998 Ranjith Kumaran <ranjith@cygnus.com>
15123
15124 * libc/sys/go32/longjmp.S: Fix longjmp to not return 0.
15125
15126Wed Feb 11 17:50:45 1998 Jeff Johnston <jjohnstn@cygnus.com>
15127
15128 * libc/machine/powerpc/setjmp.S (setjmp, longjmp): Alignment code
15129 altered to not use a branch. Also added hint that last
15130 bclr in longjmp will likely result in branch.
17c0c97d 15131
8a0efa53
CF
15132
15133Mon Feb 9 03:44:02 1998 Geoffrey Noer <noer@cygnus.com>
15134
ba3ccd63 15135 * libc/sys/cygwin32/crt0.c: add missing args to main() extern
8a0efa53
CF
15136
15137Fri Feb 6 16:32:32 1998 Nick Clifton <nickc@cygnus.com>
15138
15139 * libc/sys/sysnecv850/crt0.S (_start): Initialise _ctbp even for
15140 v850 builds.
15141
17c0c97d 15142 * configure.in: Add -msmall-sld to target_cflags for v850 builds.
8a0efa53
CF
15143
15144Wed Feb 4 16:56:20 1998 Jeff Johnston <jjohnstn@cygnus.com>
15145
15146 * libc/machine/powerpc/setjmp.S (longjmp): Fixed code
15147 that loads FR14 to specify offset of 8 rather than 4
15148 so it loads from offset 96 (where setjmp stored it).
15149
15150Tue Feb 3 18:08:34 1998 Jeff Johnston <jjohnstn@cygnus.com>
15151
15152 * libc/machine/sh/memcpy.S: (_memcpy): Update to
15153 latest version supplied by customer.
15154 * libc/machine/sh/memset.S (_memset): Ditto.
15155
15156Mon Feb 2 16:20:39 1998 Nick Clifton <nickc@cygnus.com>
15157
15158 * libc/sys/sysnecv850/Makefile.in (OFILES): Add link.o (for
17c0c97d 15159 PR14730).
8a0efa53
CF
15160
15161Mon Feb 2 15:13:26 1998 Geoffrey Noer <noer@cygnus.com>
15162
ba3ccd63 15163 * libc/include/string.h: remove redefinition of ffs
8a0efa53
CF
15164
15165Wed Jan 28 13:30:14 1998 Geoffrey Noer <noer@cygnus.com>
15166
ba3ccd63 15167 * libc/include/sys/signal.h: include _ansi.h so _EXFUN is
8a0efa53
CF
15168 defined
15169
15170Wed Jan 28 10:38:34 1998 Jeff Johnston <jjohnstn@cygnus.com>
15171
15172 * libc/machine/tic80/setjmp.S: Adding _setjmp to allow
17c0c97d
EB
15173 TI Libraries to link to libc.a
15174
8a0efa53
CF
15175Sat Jan 24 10:15:56 1998 Michael Meissner <meissner@cygnus.com>
15176
15177 * libc/include/sys/fcntl.h (_open,_fcntl): Add prototypes.
15178 * libc/include/sys/stat.h (_{,f}stat): Ditto.
15179 * libc/include/sys/wait.h (_wait): Ditto.
15180 * libc/include/sys/unistd.h (_close,_fork,_getpid): Ditto.
15181 (_link,_lseek,_read,_sbrk,_unlink,_write): Ditto.
15182
15183Fri Jan 23 11:32:10 1998 Michael Meissner <meissner@cygnus.com>
15184
15185 * libc/machine/d10v/setjmp.S: Change to new ABI. Add simple
15186 minded stabs so function name shows up when running the simulator
15187 with -t.
15188 * libc/sys/d10v/{crt0,trap}.S: Ditto.
15189
15190Thu Jan 22 15:57:14 1998 Fred Fish <fnf@cygnus.com>
15191
17c0c97d 15192 * libc/sys/d10v/trap.S: Change syscalls to use trap 15.
8a0efa53
CF
15193 * libc/sys/d10v/crt0.S: Use R6 where we used to use R2.
15194 Use R5 where we used to use R3.
17c0c97d 15195
8a0efa53
CF
15196Wed Jan 21 14:22:23 1998 Bill Moyer <billm@cygnus.com>
15197
15198 * libc/stdlib/getopt.c (getopt): replaced __progname
15199 with nargv[0] to improve portability to imbedded systems.
15200
15201Thu Jan 15 12:32:38 1998 Nick Clifton <nickc@cygnus.com>
15202
15203 * libc/sys/arm/syscalls.c (initialise_angel_handles): Applied
15204 patch supplied by Tont.Thompson@arm.com to fix the creation of the
15205 stdout file.
15206
15207Wed Jan 14 13:00:19 1998 Ian Lance Taylor <ian@cygnus.com>
15208
15209 * libc/stdio/tmpnam.c (worker): Generate a different file name
15210 each time.
15211
15212 * libc/posix/popen.c (popen): If __CYGWIN32__, and execing /bin/sh
15213 fails, try an execlp for sh.
15214
15215 * host/any (INCLUDES): If target_os is cygwin32, then add a -I
15216 option for the winsup include directory.
15217
15218Wed Jan 7 17:02:58 1998 Nick Clifton <nickc@cygnus.com>
15219
15220 * libc/sys/arm/syscalls.c: Applied patches for Angel based remote
15221 debugging interface from Tony.Thompson@arm.com.
17c0c97d 15222
8a0efa53
CF
15223 * libc/sys/arm/crt0.S (_mainCRTStartup): ditto.
15224 * libc/sys/arm/swi.h: ditto.
15225
15226Tue Jan 6 14:15:10 1998 Geoffrey Noer <noer@cygnus.com>
15227
15228 * libc/sys/cygwin32/sys/dirent.h: add __d_dirhash field to
15229 DIR struct used for readdir hashes.
15230
15231Thu Jan 1 11:22:22 1998 Jeffrey A Law (law@cygnus.com)
15232
15233 * libc/string/strchr.c: Use "unsigned chars" as necessary.
15234
15235Wed Dec 31 04:25:30 1997 Jeffrey A Law (law@cygnus.com)
15236
15237 * libc/stdlib/mallocr.c (idx2binblock): Don't lose on 16bit
15238 integer targets.
15239
15240Sat Dec 13 15:11:06 1997 Ian Lance Taylor <ian@cygnus.com>
15241
15242 * libc/stdlib/mallocr.c (__malloc_copy): New function, compiled if
15243 INTERNAL_NEWLIB and __CYGWIN32__ and DEFINE_MALLOC.
15244 * libc/include/malloc.h: Add extern "C" if __cplusplus.
15245 (__malloc_copy): Declare.
15246
15247Wed Dec 10 12:15:54 1997 Ian Lance Taylor <ian@cygnus.com>
15248
15249 * libc/stdlib/mallocr.c: If INTERNAL_NEWLIB, include
15250 <sys/config.h>.
15251 (POINTER_UINT): Define.
15252 (DEFAULT_TRIM_THRESHOLD): Mark constants as long.
15253 (MALLOC_ALIGNMENT): Don't define if already defined.
15254 (malloc_extend_top): Cast pointers to POINTER_UINT, not unsigned
15255 long.
15256
15257Tue Dec 9 19:23:42 1997 Michael Meissner <meissner@cygnus.com>
15258
15259 * libc/string/memset.c (memset): Fiddle with code so that the long
15260 value being stored is not a stack value. Unroll storing longs 4
15261 times.
15262
15263Tue Dec 9 14:13:18 1997 Jeff Johnston <jjohnstn@cygnus.com>
15264
15265 * Reduce code size for libm modules.
15266 * libm/math/w_sqrt.c (sqrt): Remove call to kernel_standard
15267 and simply move code into sqrt.
15268 * libm/math/wrf_lgamma.c (lgammaf_r): Likewise.
15269 * libm/math/wr_lgamma.c (lgamma_r): Likewise.
15270 * libm/math/wrf_gamma.c (gammaf_r): Likewise.
15271 * libm/math/wr_gamma.c (gamma_r): Likewise.
15272 * libm/math/wf_sinh.c (sinfh): Likewise.
15273 * libm/math/w_sinh.c (sinh): Likewise.
15274 * libm/math/wf_scalb.c (scalbf): Likewise.
15275 * libm/math/w_scalb.c (scalb): Likewise.
15276 * libm/math/wf_remainder.c (remainderf): Likewise.
15277 * libm/math/w_remainder.c (remainder): Likewise.
15278 * libm/math/wf_pow.c (powf): Likewise.
15279 * libm/math/w_pow.c (pow): Likewise.
15280 * libm/math/wf_log10.c (log10f): Likewise.
15281 * libm/math/w_log10.c (log10): Likewise.
15282 * libm/math/wf_log.c (logf): Likewise.
15283 * libm/math/w_log.c (log): Likewise.
15284 * libm/math/w_lgamma.c (lgamma): Likewise.
15285 * libm/math/wf_lgamma.c (lgammaf): Likewise.
15286 * libm/math/wf_jn.c (jnf): Likewise.
15287 * libm/math/w_jn.c (jn): Likewise.
15288 * libm/math/wf_j1.c (j1f): Likewise.
15289 * libm/math/w_j1.c (j1): Likewise.
15290 * libm/math/wf_j0.c (j0f): Likewise.
15291 * libm/math/w_j0.c (j0): Likewise.
15292 * libm/math/wf_hypot.c (hypotf): Likewise.
15293 * libm/math/w_hypot.c (hypot): Likewise.
15294 * libm/math/wf_gamma.c (gammaf): Likewise.
15295 * libm/math/w_gamma.c (gamma): Likewise.
15296 * libm/math/wf_fmod.c (fmodf): Likewise.
15297 * libm/math/w_fmod.c (fmod): Likewise.
15298 * libm/math/wf_exp.c (expf): Likewise.
15299 * libm/math/w_exp.c (exp): Likewise.
15300 * libm/math/wf_cosh.c (coshf): Likewise.
15301 * libm/math/w_cosh.c (cosh): Likewise.
15302 * libm/math/wf_atanh.c (atanhf): Likewise.
15303 * libm/math/w_atanh.c (atanh): Likewise.
15304 * libm/math/wf_atan2.c (atan2f): Likewise.
15305 * libm/math/w_atan2.c (atan2): Likewise.
15306 * libm/math/wf_asin.c (asinf): Likewise.
15307 * libm/math/w_asin.c (asin): Likewise.
15308 * libm/math/wf_acosh.c (acoshf): Likewise.
15309 * libm/math/w_acosh.c (acosh): Likewise.
15310 * libm/math/wf_acos.c (asocf): Likewise.
15311 * libm/math/w_acos.c (acos): Likewise.
15312 * libm/math/wf_sqrt.c (sqrtf): Likewise.
15313 * libm/math/k_standard.c (_k_standard): Don't require SVID behavior
15314 for embedded systems.
15315
15316Mon Dec 8 12:12:58 1997 Ian Lance Taylor <ian@cygnus.com>
15317
15318 * libc/stdlib/mallocr.c (malloc_extend_top): Add patch from Doug
15319 Lea in case of a foreign sbrk.
15320
15321Fri Dec 5 23:27:28 1997 Ian Lance Taylor <ian@cygnus.com>
15322
15323 Incorporate Doug Lea's malloc:
15324 * libc/stdlib/mallocr.c: Completely replaced.
15325 * libc/stdlib/malloc.c: Document malloc_usable_size and memalign.
15326 (realloc): Remove.
15327 * libc/stdlib/calloc.c (calloc): Just call _calloc_r.
15328 * libc/stdlib/mstats.c: Document mallinfo, malloc_stats, and
15329 mallopt.
15330 (mallinfo, malloc_stats, mallopt): New functions.
15331 (_mstats_r): Just call _malloc_stats_r.
15332 * libc/stdlib/malign.c: New file.
15333 * libc/stdlib/mlock.c: New file.
15334 * libc/stdlib/msize.c: New file.
15335 * libc/stdlib/mtrim.c: New file.
15336 * libc/stdlib/realloc.c: New file.
15337 * libc/stdlib/valloc.c: New file.
15338 * libc/stdlib/malloc.h: Remove.
15339 * libc/stdlib/callocr.c: Remove.
15340 * libc/stdlib/Makefile.in (OFILES): Add cfreer.o, freer.o,
15341 malign.o, malignr.o, mallinfor.o, malloptr.o, mallstatsr.o,
15342 mlock.o, msize.o, msizer.o, mtrim.o, pvallocr.o, realloc.o,
15343 reallocr.o, valloc.o, vallocr.o.
15344 (CHEWOUT_FILES): Add mlock.def, mstats.def.
15345 (MALLOC_CFLAGS): New variable.
15346 (mallocr.o): New target, build from mallocr.c.
15347 (freer.o, reallocr.o, callocr.o, cfreer.o, malignr.o): Likewise.
15348 (vallocr.o, pvallocr.o, mallinfor.o, mallstatsr.o): Likewise.
15349 (msizer.o, malloptr.o): Likewise.
15350 (malign.o, mlock.o, msize.o, mtrim.o, realloc.o): New targets.
15351 (valloc.o): New target.
15352 * libc/stdlib/stdlib.tex: Include mlock.def and mstats.def.
15353 * libc/include/malloc.h: Declare struct mallinfo, and new
15354 routines.
15355 * libc/include/stdlib.h (cfree): Correct declaration.
15356
15357Tue Dec 2 10:12:16 1997 Nick Clifton <nickc@cygnus.com>
15358
15359 * libc/include/machine/setjmp.h: Add support for Thumb target.
15360
15361 * libc/include/machine/ieeefp.h: Add support for Thumb target.
15362
15363 * configure.in (links): Add support for Thumb target.
15364
15365Wed Nov 26 09:56:17 1997 Nick Clifton <nickc@cygnus.com>
15366
15367 * libc/sys/arm/setjmp.S: Updated with version from branch.
15368
15369Thu Nov 20 01:21:43 1997 Geoffrey Noer <noer@cygnus.com>
15370
15371 * libc/include/stdio.h: add POSIX-required define L_ctermid
15372 for ctermid
15373
15374Wed Nov 19 16:11:40 1997 Michael Meissner <meissner@cygnus.com>
15375
15376 * configure.in (d30v-*-*): Define ABORT_MESSAGE, SMALL_MEMORY, in
15377 addition to MISSING_SYSCALL_NAMES.
15378
15379Mon Nov 17 20:05:05 1997 J"orn Rennecke <amylaar@cygnus.co.uk>
15380
15381 * libc/include/sys/config.h: (UINT_MAX, for D10V): Make unsigned.
15382
15383Mon Nov 10 22:26:55 1997 Geoffrey Noer <noer@cygnus.com>
15384
ba3ccd63
EB
15385 * libc/include/string.h: change strsignal proto to return
15386 a char *. This eliminates compile problems in gdb resulting
15387 from gdb's definition of strsignal in defs.h.
8a0efa53
CF
15388
15389Mon Nov 10 17:11:08 1997 Geoffrey Noer <noer@cygnus.com>
15390
ba3ccd63
EB
15391 * libc/sys/cygwin32/sys/utime.h: new (moved here from
15392 winsup/include) so as not to conflict with the one in
15393 libc/include.
8a0efa53
CF
15394 * libc/include/string.h: add protos for strsignal, strtosigno
15395
15396Mon Nov 10 13:49:54 1997 Michael Meissner <meissner@cygnus.com>
15397
15398 * libc/include/sys/config.h: Define __IEEE_BIG_ENDIAN if d30v.
15399
15400 * configure.in (d30v-*-*): Add configuration.
15401
15402Thu Oct 30 14:01:23 1997 Nick Clifton <nickc@cygnus.com>
15403
15404 * configure.in (links): Add -DARM_RD[P|I]_MONITOR to target_cflags
15405 to select which kind of debug monitor is in use for an ARM target.
15406
15407 * libc/sys/arm/crt0.S: New version: Supports Thumb startups and
15408 Angel and Demon debug monitors. Part of this code was supplied by
15409 Tony Thompson at ARM: athompso@arm.com.
15410
15411Fri Oct 24 18:57:05 1997 Jeffrey A Law (law@cygnus.com)
15412
15413 * strncat.c (strncat): Don't call strncpy; strncay has the wrong
15414 semantics when the count is greater than the length of the second
15415 source string.
15416
15417Thu Oct 23 01:37:41 1997 Geoffrey Noer <noer@cygnus.com>
15418
15419 * libc/include/sys/signal.h: reorder CYGWIN32 signal numbers
15420 * libc/include/sys/unistd.h: add protos for usleep, truncate,
15421 truncate and ftruncate take off_t, not size_t
15422
15423Tue Oct 21 18:42:00 1997 Jim Wilson <wilson@cygnus.com>
15424
15425 * libc/string/strcat.c (strcat): Add missing comment end.
15426 * libc/string/strncat.c (strncat): Likewise.
15427
15428Tue Oct 21 17:23:34 1997 Nick Clifton <nickc@cygnus.com>
15429
15430 * configure.in (links): Define PREFER_SIZE_OVER_SPEED for v850
17c0c97d
EB
15431 targets.
15432 * libc/string/{memchr.c, memcmp.c, memcpy.c}: Add space
8a0efa53 15433 optimised version which is selected if PREFER_SIZE_OVER_SPEED is
17c0c97d 15434 defined.
8a0efa53
CF
15435 * libc/string/{memset.c, strcat.c, strchr.c}: Likewise.
15436 * libc/string/{strcmp.c, strcpy.c, strlen.c}: Likewise.
15437 * libc/string/{strncat.c, strncmp.c, strncpy.c}: Likewise.
15438
15439Mon Oct 13 15:12:35 1997 Ian Lance Taylor <ian@cygnus.com>
15440
15441 * libc/include/sys/param.h (BIG_ENDIAN): Define if __i386__.
15442 (LITTLE_ENDIAN, BYTE_ORDER): Likewise.
15443
15444Thu Oct 9 13:54:44 1997 Doug Evans <dje@canuck.cygnus.com>
15445
15446 * libc/machine/i386/setjmp.S: New file.
15447 * libc/machine/i386/Makefile.in: Delete COPYOFILES.
15448 (OFILES): Add setjmp.o.
15449 (setjmp.o): Add rule for.
15450 * configure.in: Don't set machine_dir for *-*-{go32,sco*,cygwin32}.
15451
15452Tue Oct 7 14:01:29 1997 Bill Moyer (billm@cygnus.com)
15453 Jeffrey A Law (law@cygnus.com)
15454
15455 * libc/string/{memchr.c, memcmp.c, memcpy.c}: Reimplement to run faster.
15456 * libc/string/{memset.c, strcat.c, strchr.c}: Likewise.
15457 * libc/string/{strcmp.c, strcpy.c, strlen.c}: Likewise.
15458 * libc/string/{strncat.c, strncmp.c, strncpy.c}: Likewise.
15459
15460Mon Oct 6 14:07:59 1997 Nick Clifton <nickc@cygnus.com>
15461
15462 * libc/sys/sysnecv850/Makefile.in (crt0.o trap.o): Explicit
17c0c97d 15463 rules.
8a0efa53
CF
15464
15465 * libc/include/sys/config.h: Use __v850 to select v850
17c0c97d 15466 endianness.
8a0efa53
CF
15467
15468 * libc/include/machine/setjmp.h: Use __v850 to select v850 jump
15469 buffer size.
15470
15471 * libc/include/machine/ieeefp.h: Use __v850 to select v850
17c0c97d 15472 endianness.
8a0efa53
CF
15473
15474Thu Sep 25 14:11:37 1997 Geoffrey Noer <noer@cygnus.com>
15475
15476 * libc/stdlib/setenv.c: change unsetenv definition to match
15477 style of setenv (with _DEFUN). The string should be a const.
15478 * libc/include/stdlib.h: unsetenv proto should return void.
15479
15480Tue Sep 23 18:17:20 1997 Geoffrey Noer <noer@cygnus.com>
15481
15482 * libc/include/stdlib.h: define unsetenv proto for __CYGWIN32__
15483
15484Thu Sep 18 12:50:15 1997 Angela Marie Thomas (angela@cygnus.com)
15485
15486 * libc/stdio/glue.h: remove.
15487 * libc/stdio/findfp.c, libc/stdio/fwalk.c: remove #include "glue.h"
15488 * libc/stdio/Makefile.in: remove glue.h dependencies
15489
15490Wed Sep 17 17:42:27 1997 Nick Clifton <nickc@cygnus.com>
15491
15492 * libc/sys/sysnecv850/crt0.S: Created V850e version.
17c0c97d 15493
8a0efa53
CF
15494Tue Sep 9 10:40:57 1997 Doug Evans <dje@canuck.cygnus.com>
15495
15496 * configure.in (target_cpu): Add `arc'.
15497
15498Tue Sep 9 10:40:42 1997 Joel Sherrill <joel@OARcorp.com>
15499
17c0c97d 15500 * newlib/configure.in (*-*-rtems*): Add -DSIGNAL_PROVIDED and
8a0efa53
CF
15501 -DREENTRANT_SYSCALLS_PROVIDED to the target_cflags.
15502 * newlib/libc/include/sys/errno.h: Add ENOTSUP.
15503 * newlib/libc/reent/reent.c: Add _wrapup_reent.
15504 * newlib/libc/sys/rtems/sys/types.h: Avoid redefinitions for go32.
15505
15506Sun Sep 7 16:41:41 1997 Gavin Koch <gavin@cygnus.com>
15507
15508 * libc/machine/mips/setjmp.S: Handle mips16 builds.
15509
15510Thu Aug 21 20:05:38 1997 Ian Lance Taylor <ian@cygnus.com>
15511
15512 * libc/include/stdio.h (siprintf): Declare.
15513
15514Mon Aug 18 11:19:13 1997 Nick Clifton <nickc@cygnus.com>
15515
15516 * libc/sys/sysnecv850/Makefile.in (.c.o): Add rule that includes
15517 TARGET_CFLAGS and NEWLIB_FLAGS.
15518
15519Mon Aug 18 11:15:43 1997 Nick Clifton <nickc@cygnus.com>
15520
15521 * configure.in (links): Add support for v850ea target.
15522
15523Mon Aug 18 11:15:43 1997 Nick Clifton <nickc@cygnus.com>
15524
15525 * configure.in (links): Add support for v850e target.
15526
15527Wed Aug 13 19:16:54 1997 Nick Clifton <nickc@cygnus.com>
15528
15529 * libc/sys/sysnecv850/crt0.S: Remove initial setting of r0 to 0.
15530
15531Mon Aug 11 15:49:54 1997 Doug Evans <dje@canuck.cygnus.com>
15532
15533 * configure.in (arc-*-*): Add support for.
15534 * libc/include/machine/ieeefp.h (__arc__): Add support for the ARC.
15535
15536Fri Jul 25 17:37:41 1997 J"orn Rennecke <amylaar@cygnus.co.uk>
15537
15538 * libc/sys/sh/crt0.S (start): Add fpscr initialization for SH4.
15539
15540Thu Jul 24 18:32:17 1997 Geoffrey Noer <noer@cygnus.com>
15541
15542 * libc/stdlib/bsearch.c (bsearch): remove last unneeded
15543 comparison which accesses invalid memory when the key is
15544 larger than the last member of the array.
15545 * libc/include/machine/setjmp.h: add sigsetjmp, siglongjmp
15546 for CYGWIN32
15547 * libc/include/sys/unistd.h: add _POSIX defines for CYGWIN32
15548
15549Tue Jul 22 16:03:06 1997 Ian Lance Taylor <ian@cygnus.com>
15550
15551 * libc/include/stdlib.h (realpath): Declare if __CYGWIN32__ and
15552 not _STRICT_ANSI.
15553
15554Thu Jul 10 15:11:52 1997 Doug Evans <dje@canuck.cygnus.com>
15555
15556 * libm/math/k_standard.c (__kernel_standard): Call fflush(stdout)
15557 ifndef _USE_WRITE, instead of ifdef _USE_WRITE.
15558
15559Thu Jul 10 16:00:09 1997 Mike Meissner <meissner@cygnus.com>
15560
15561 * libc/machine/tic80/setjmp.S (setjmp,longjmp): Use ld.d and st.d
15562 to load/store memory.
15563
15564Mon Jul 7 17:38:17 1997 Ian Lance Taylor <ian@cygnus.com>
15565
15566 * libc/include/sys/fcntl.h: Define _O_* symbols with leading
15567 underscores if _WIN32.
15568
15569Wed Jul 2 10:07:20 1997 Doug Evans <dje@canuck.cygnus.com>
15570
15571 * libm/math/k_standard.c (__kernel_standard): Delete reentrancy
15572 support ifdef _USE_WRITE missed in last change.
15573 From Anders Blomdell <anders.blomdell@control.lth.se>.
15574
15575Wed Jun 25 10:18:49 1997 Doug Evans <dje@canuck.cygnus.com>
15576
15577 * libc/stdio/tmpnam.c (worker): Handle _open_r being stubbed out.
15578 (_tmpnam_r, _tempnam_r): Update.
15579
15580Wed Jun 25 00:16:55 1997 Mark Alexander <marka@cygnus.com>
15581
15582 * libc/machine/sparc/setjmp.S: New file.
15583 * libc/machine/sparc/Makefile.in: Add setjmp.
15584 * libc/include/machine/setjmp.h: Increase jmpbuf size for sparc.
15585
15586Tue Jun 24 23:27:38 1997 Mark Alexander <marka@cygnus.com>
15587
15588 * libc/include/machine/setjmp.h: Use __TIC80__ instead of __tic80__.
15589
15590Tue Jun 24 14:53:40 1997 Doug Evans <dje@canuck.cygnus.com>
15591
15592 From Joel Sherrill <joel@oarcorp.com>.
15593 * libc/stdlib/getenv.c (_findenv): Avoid dereferencing null `environ'.
15594
15595 Add rtems support. From Joel Sherrill <joel@oarcorp.com>.
15596 * configure.in: Recognize *-*-rtems*.
15597 * libc/sys/rtems/{Makefile.in,crt0.c,dummysys.c}: New files.
15598 * libc/sys/rtems/sys/{features.h,sched.h,siginfo.h,signal.h,
15599 time.h,times.h,types.h}: New files.
15600 * libc/sys/rtems/include/{limits.h,signal.h,time.h}. New files.
15601
15602Fri Jun 20 11:13:16 1997 Geoffrey Noer <noer@cygnus.com>
15603
15604 patch from sos@prospect.com.ru (Sergey Okhapkin):
ba3ccd63
EB
15605 * include/sys/wait.h: correct operator precidence bug
15606 in WIFSIGNALED
8a0efa53
CF
15607
15608Wed Jun 18 22:08:27 1997 Geoffrey Noer <noer@cygnus.com>
15609
15610 * libc/include/stdlib.h: remove unsetenv proto since it conflicts
15611 with newlib's unsetenv function
15612 * libc/sys/cygwin32/sys: new directory for includes
15613 * libc/sys/cygwin32/sys/dirent.h: move cygwin32's dirent.h
15614 here from winsup/include/sys
15615
15616Mon Jun 16 21:02:22 1997 Geoffrey Noer <noer@cygnus.com>
15617
15618 * libc/include/sys/unistd.h: _exit should only be
15619 labelled noreturn when not __CYGWIN32__
15620 * libc/include/stdlib.h: for __CYGWIN32__, add proto for unsetenv
15621 * libc/include/sys/signal.h: add SIGIO to _WIN32 list and
15622 increment NSIG
15623
15624Thu Jun 12 18:52:41 1997 Ian Lance Taylor <ian@cygnus.com>
15625
15626 * libc/include/sys/time.h: Only define timeval and timezone if
15627 _GNU_H_WINDOWS32_SOCKETS is not defined.
15628 * libc/include/sys/stat.h: If _WIN32, define _S_IFMT, etc.
15629
15630Wed Jun 11 09:46:26 1997 Jeffrey A Law (law@cygnus.com)
15631
15632 * libc/machine/mn10200/setjmp.S: Implement setjmp/longjmp
15633 * libc/machine/mn10300/setjmp.S: Likewise.
15634
15635 * libc/sys/sysmec/crt0.S: Use "call" instead of "calls" for
15636 the mn10300 (more relaxing opportunities).
15637
15638Tue Jun 10 17:24:45 1997 Mike Meissner <meissner@cygnus.com>
15639
15640 * configure.in (powerpc*-*-{eabi,elf,linux,rtems,sysv,solaris}):
15641 Build libraries with -mstrict-align.
15642
15643Fri Jun 6 14:07:59 1997 Ian Lance Taylor <ian@cygnus.com>
15644
15645 * libc/string/strlwr.c: New file.
15646 * libc/string/strupr.c: New file.
15647 * libc/include/string.h: Declare strlwr and strupr.
15648 * libc/string/Makefile.in (OFILES): Add strlwr.o and strupr.o.
15649 (CHEWOUT_FILES): Add strlwr.def and strupr.def.
15650 (strlwr.o, strupr.o): New targets.
15651 * libc/string/strings.tex: Include strlwr and strupr docs.
15652
15653 * libc/include/sys/types.h: Don't define u_char, et. al., if
15654 _GNU_H_WINDOWS32_SOCKETS is defined. Likewise for fd_set,
15655 et. al. Make FD_SETSIZE default 64 rather than 60. Define
15656 _types_fd_set rather than fd_set, and define fd_set as a macro.
15657
15658 * libc/include/malloc.h: New file.
15659
15660 * libc/include/string.h: Define strcmpi, stricmp, strncmpi, and
15661 strnicmp if they are not already defined.
15662
15663 * libc/include/time.h: If __CYGWIN32__, declare tzset and define
15664 _timezone, _daylight, and _tzname.
15665
15666Wed Jun 4 12:51:16 1997 Doug Evans <dje@canuck.cygnus.com>
15667
15668 * configure.in: Sort all configuration tables.
15669
15670 From Joel Sherrill <joel@oarcorp.com>
15671 * Makefile.in (stmp-targ-include): Copy $(sys_dir)/include/*.h.
15672
15673Tue Jun 3 14:47:46 1997 Ian Lance Taylor <ian@cygnus.com>
15674
15675 * libc/include/sys/signal.h: Don't include <sys/types.h>. Just
15676 use int when declaring kill.
15677
15678 * libc/include/sys/timeb.h: New file.
15679
15680Mon Jun 2 12:06:58 1997 Geoffrey Noer <noer@cirdan.cygnus.com>
15681
15682 * libc/include/sys/time.h: add itimer support for Cygwin32
15683
15684Mon May 19 11:56:46 1997 Mike Meissner <meissner@cygnus.com>
15685
15686 * libc/stdlib/abort.c (abort): If ABORT_MESSAGE is defined, write
15687 out a message that abort was called to stderr.
15688
15689Fri May 16 15:02:59 1997 Bob Manson <manson@charmed.cygnus.com>
15690
15691 * libc/sys/sysmec/fstat.c (_fstat): Set st_blksize to 4096
15692 so that libio doesn't freak.
15693
15694 * libc/sys/sysmec/sbrk.c (_sbrk): The argument is a size_t, not
15695 int.
15696
15697 * libc/stdlib/mallocr.c (_morecore_r): Use size_t for
15698 memory sizes, not int.
15699
15700Wed May 14 21:16:58 1997 Bob Manson <manson@charmed.cygnus.com>
15701
15702 * libm/math/ef_hypot.c: Use long constants where
17c0c97d 15703 appropriate.
8a0efa53
CF
15704 * libm/math/ef_sqrt.c: Ditto.
15705
15706 * libc/sys/sysmec/times.c(_times): Change to times.
15707
15708 * libc/sys/sysmec/read.c(_read): The third argument is
15709 size_t.
15710 * libc/sys/sysmec/write.c (_write): Ditto.
15711
15712 * libc/sys/sysmec/lseek.c: Include unistd.h for off_t.
15713 (_lseek): It's off_t for the second argument.
15714
15715Wed May 14 15:23:36 1997 Mike Meissner <meissner@cygnus.com>
15716
15717 * libc/include/sys/config.h (__IEEE_LITTLE_ENDIAN): Define here,
15718 as well as machine/ieeefp.h.
15719
15720Thu May 8 15:47:25 1997 Geoffrey Noer <noer@cygnus.com>
15721
15722 * libc/include/sys/signal.h: add signal protos for winsup
15723 functions (when __CYGWIN32__), include types.h
15724 * libc/include/sys/types.h: Change __go32_types__ internal
15725 define to __MS_types__ since it's used for more than just
15726 GO32 configs. Define this if GO32, __MSDOS__, or _WIN32 are
15727 defined.
15728 * libc/include/sys/unistd.h: add ftruncate proto for
15729 winsup functions (when __CYGWIN32__)
15730
15731Fri Apr 25 10:10:16 1997 Doug Evans <dje@canuck.cygnus.com>
15732
15733 * libc/sys/h8300hms/sbrk.c (stack_ptr): Add definition.
15734
15735Thu Apr 24 15:46:51 1997 Mike Stump <mrs@cygnus.com>
15736
15737 * libc/include/machine/setjmp.h: Add tic80 support.
15738 * libc/machine/tic80/setjmp.S: Likewise.
15739
15740Tue Apr 22 16:54:40 1997 Geoffrey Noer <noer@pizza.cygnus.com>
15741
ba3ccd63
EB
15742 * libc/sys/cygwin32/crt0.c: Add reference to main() so we can
15743 link programs from libraries only (such as in the X11
15744 distribution)
8a0efa53
CF
15745
15746Mon Apr 21 15:02:12 1997 Fred Fish <fnf@cygnus.com>
15747
15748 * libc/sys/arm/syscalls.c (signal): Remove stub, signal()
15749 supplied elsewhere in newlib.
15750
15751Mon Apr 14 16:25:55 1997 Ian Lance Taylor <ian@cygnus.com>
15752
15753 * Makefile.in (INSTALL): Change install.sh to install-sh.
15754
15755Fri Apr 11 17:04:02 1997 Jason Molenda (crash@godzilla.cygnus.co.jp)
15756
15757 * README: update WWW address for on-line documentation.
15758
15759Wed Apr 9 00:38:13 1997 Geoffrey Noer <noer@cygnus.com>
15760
15761 * libc/include/sys/signal.h: for _WIN32, define SIGCONT and
15762 increment NSIG
15763
15764Mon Apr 7 23:54:00 1997 Jeffrey A Law (law@cygnus.com)
15765
15766 * libc/sys/sysmec/crt0.S: Update for new calling conventions on the
15767 mn10300.
15768 * libc/sys/sysmec/trap.S: Don't compare a register to itself.
15769
15770Tue Mar 25 08:47:43 1997 Jeffrey A Law (law@cygnus.com)
15771
15772 * libc/sys/arm/syscalls.c: Fix/add stack/heap collision detection.
15773 * libc/sys/d10v/syscalls.c: Likewise.
15774 * libc/sys/h8300hms/sbrk.c: Likewise.
15775 * libc/sys/h8500hms/syscalls.c: Likewise.
15776 * libc/sys/m88kbug/syscalls.c: Likewise.
15777 * libc/sys/sh/syscalls.c: Likewise.
15778 * libc/sys/sysmec/sbrk.c: Likewise.
15779 * libc/sys/sysnecv850/sbrk.c: Likewise.
15780 * libc/sys/w65/syscalls.c: Likewise.
15781 * libc/sys.tex: Update sbrk sample code to include stack/heap collision.
15782
15783Tue Mar 18 14:14:34 1997 Jeffrey A Law (law@cygnus.com)
15784
15785 * libc/sys/sysmec/trap.S: Use "syscall" to trigger an
15786 emulated syscall instead of "trap".
15787
15788Fri Mar 14 11:26:13 1997 Michael Meissner <meissner@cygnus.com>
15789
15790 * libc/sys/d10v/trap.S (__trap0): Use trap 15 for system calls,
15791 not trap 0.
15792
15793Sun Mar 9 23:27:04 1997 Doug Evans <dje@seba.cygnus.com>
15794
15795 * configure.in (m32r-*-*): Add -msdata=sdata to target_cflags.
15796
15797Sat Mar 8 09:05:01 1997 Fred Fish <fnf@cygnus.com>
15798
15799 * libc/machine/arm/Makefile.in: Fix comment, is for "arm"
15800 not "sh".
15801 * libc/machine/m32r/Makefile.in: Fix comment, is for "m32r"
15802 not "d10v".
15803 * libc/sys/tic80/crt0.c: New file for TIc80.
15804 * libc/sys/tic80/Makefile.in: New file for TIc80.
15805 * libc/machine/tic80/Makefile.in: New file for TIc80.
15806
15807Wed Mar 5 11:32:12 1997 J.T. Conklin <jtc@cygnus.com>
15808
15809 * libc/machine/sh/memcpy.S: New file.
15810 * libc/machine/sh/memset.S: New file.
15811 * libc/machine/sh/Makefile.in (OFILES): Add memcpy.o and memset.o
15812
15813Thu Feb 27 16:27:55 1997 Fred Fish <fnf@cygnus.com>
15814
15815 * libc/include/machine/ieeefp.h (_IEEE_LITTLE_ENDIAN): Define
15816 for TIc80.
15817
15818Wed Feb 26 13:43:39 1997 Jeffrey A Law (law@cygnus.com)
15819
15820 * libc/sys/sysmec/crt0.S: Handle new calling conventions for
15821 the mn10200.
15822
15823Wed Feb 26 07:11:03 1997 Michael Meissner <meissner@cygnus.com>
15824
15825 * libc/machine/powerpc/setjmp.S (longjmp): Correct return status
15826 (patch from andrew@pogo.WV.TEK.COM).
15827
15828Fri Feb 14 11:49:28 1997 Doug Evans <dje@canuck.cygnus.com>
15829
15830 * libc/machine/m32r/setjmp.S (setjmp): Save r12.
15831 (longjmp): Restore r12. Fix code that handles returning 1 if passed 0.
15832
15833Mon Feb 10 10:02:34 1997 Fred Fish <fnf@cygnus.com>
15834
15835 * configure.in: Add cases for "tic80" to set machine_dir,
15836 sys_dir, and syscall_dir.
15837
15838Sun Feb 2 17:57:15 1997 Geoffrey Noer <noer@cygnus.com>
15839
15840 * libc/sys/cygwin32/crt0.c: initialize floating pt registers
15841
15842Wed Jan 29 15:57:38 1997 Geoffrey Noer <noer@cygnus.com>
15843
15844 * libc/include/math.h: avoid conflicts with ANSI C++ <exception>
15845
15846Mon Jan 27 12:50:01 1997 Doug Evans <dje@seba.cygnus.com>
15847
15848 * libc/machine/m32r/setjmp.S: Use proper comment delimiter.
15849 Use proper constant prefix.
15850
15851Fri Jan 24 10:59:04 1997 Jeffrey A Law (law@cygnus.com)
15852
15853 * libc/sys/sysmec/*.c: Don't cast args to syscall to integers,
15854 that loses on the mn10200 where ints and pointers are different
15855 sizes.
15856
15857Tue Jan 14 13:29:55 PST 1997 Jeremy Allison <jra@cygnus.com>
15858
15859 * configure.in: Added -DSIGNAL_PROVIDED to cygwin32
15860 target as signal is provided in winsup.
15861
15862Tue Jan 14 11:10:13 1997 Jeremy Allison <jra@cygnus.com>
15863
15864 * libc/include/sys/process.h: Corrected const definitions
15865 in spawn functions. Added cwait.
15866
15867Thu Jan 2 12:22:41 1997 Jeffrey A Law (law@cygnus.com)
15868
15869 * libc/include/machine/ieeefp.h: mn10200 uses 16bit ints and 32bit
15870 doubles.
15871 * libc/include/sys/config.h: Similarly.
15872
15873Tue Dec 31 18:36:14 1996 Michael Meissner <meissner@tiktok.cygnus.com>
15874
15875 * configure.in (sparc-sun-sunos*): Add -DSIGNAL_PROVIDED to the
15876 target_cflags.
15877 (i[3456]86-*-sco*): Ditto.
15878
15879 * libc/signal/Makefile.in (OFILES): Add signal.o.
15880 (CFILES): Add signal.c.
15881
15882 * libc/signal/raise.c (_raise_r): Only compile code if
15883 SIGNAL_PROVIDED is defined.
15884
15885 * libc/signal/signal.c: Redo whole file so that it works with
15886 current newlib. Use _kill_r if no signal handler provided.
15887
15888 * libc/sys/{go32,sparc64,sysmec}/Makefile.in: Delete raise and
15889 signal stubs.
15890 * libc/sys/sysvnecv70/Makefile.in: Ditto.
15891 * libc/sys/sysnecv850/Makefile.in: Ditto.
15892
15893 * libc/sys/{go32,sparc64}/signal.c: Delete, stub no longer used.
15894 * libc/sys/sysmec/{raise,signal}.c: Ditto.
15895 * libc/sys/sysvnecv70/signal.s: Ditto.
15896 * libc/sys/sysnecv850/raise.c: Ditto.
15897
15898 * libc/sys/sysnecv850/kill.c (_kill): Encode signal # so that
15899 simulator and debugger can tell the difference between a signal
15900 being raised and an exit system call.
15901
15902 * NEWS: Document software signals being provided.
15903
15904Mon Dec 23 11:54:19 1996 Michael Meissner <meissner@tiktok.cygnus.com>
15905
15906 * libc/reent/impure.c (_REENT_ATTR): Delete in favor of
15907 __ATTRIBUTE_IMPURE_PTR__. Move PowerPC definition to
15908 include/sys/config.h.
15909 (impure_data): Use __ATTRIBUTE_IMPURE_DATA__ for attributes.
15910 Change from 'inpure_data'.
15911 (_impure_ptr): Use __ATTRIBUTE_IMPURE_PTR__ for attributes. Use
15912 &impure_data, not &inpure_data.
15913
15914 * libc/include/sys/config.h (__ATTRIBUTE_IMPURE_PTR__): If PowerPC
15915 and and System V ABI, define so that _impure_ptr lives in the
15916 .sdata section.
15917
15918Sun Dec 22 23:33:05 1996 Michael Meissner <meissner@tiktok.cygnus.com>
15919
15920 * libc/include/sys/reent.h (__ATTRIBUTE_IMPURE_PTR__): Define as
15921 nothing if not defined.
15922 (_impure_ptr): Use __ATTRIBUTRE_IMPURE_PTR__, so a machine can set
15923 its attributes.
15924
17c0c97d 15925 * libc/include/sys/config.h (__ATTRIBUTE_IMPURE_PTR__):
8a0efa53
CF
15926
15927Wed Dec 18 10:12:04 1996 Jeffrey A Law (law@cygnus.com)
15928
15929 * libc/sys/sysmec/crt0.S: Fix mn10200 stuff.
15930 * libc/sys/sysmec/trap.s: Handle mn10200 too.
15931 * libc/machine/mn10200/setjmp.S: Fix mn10200 stuff.
15932
15933Mon Dec 16 10:05:36 1996 Jeffrey A Law (law@cygnus.com)
15934
15935 * libc/sys/sysmec/crt0.S: Handle mn10200 too.
15936
15937Fri Dec 13 11:05:20 1996 Jeremy Allison <jra@cygnus.com>
15938
ba3ccd63 15939 * libc/include/sys/errno.h: Added net errno's.
8a0efa53
CF
15940
15941Wed Dec 11 16:24:25 1996 Michael Meissner <meissner@tiktok.cygnus.com>
15942
15943 * libc/misc/ffs.c: New file to support ffs function for GCC test
15944 gcc.c-torture/execute/960909-1.c.
15945
15946 * libc/misc/Makefile.in ({O,CHEWOUT_}FILES): Add ffs.
15947
15948Sat Dec 7 10:12:37 1996 Jeffrey A Law (law@cygnus.com)
15949
15950 * libc/sys/sysmec/crt0.S: Handle underscore prefix.
15951 * libc/sys/sysmec/trap.S: Likewise.
15952
15953Fri Dec 6 15:08:49 1996 Jim Wilson <wilson@cygnus.com>
15954
15955 * configure.in (mips*vr4300*-*-*): Delete use of sys/vr4300.
15956 * libc/sys/vr4300/{Makefile.in,crt0.S,syscalls.c}: Delete.
15957
15958Wed Dec 4 16:25:27 1996 Jeffrey A Law (law@cygnus.com)
15959
15960 * libc/sys/sysmec/signal.c: Dummy file.
15961 * libc/sys/sysmec/Makefile.in: Build it.
15962
15963Wed Nov 27 13:10:18 1996 Ian Lance Taylor <ian@cygnus.com>
15964
15965 * libc/machine/mips/machine/regdef.h: Define pc as $pc for
15966 mips16.
15967
15968Mon Nov 25 09:58:28 1996 Jeffrey A Law (law@cygnus.com)
15969
15970 * libc/sys/sysmec/{crt0.S,trap0.S}: Actually try to implement
15971 c-startup and simulator traps.
15972
15973
15974 * libc/sys/sysmec/crt0.S: Remove bogus '_' symbol prefixing
15975 * libc/sys/sysmec/trap0.S: Likewise.
15976
15977Sat Nov 23 09:01:03 1996 Michael Meissner <meissner@tiktok.cygnus.com>
15978
15979 * libc/stdlib/mallocr.c (ROUND_TO): If SMALL_MEMORY, set to 0x7 to
15980 round to double word alignment.
15981 (_morecore_r): Combine rounding up pointers to both ROUND_TO and 8
15982 byte alignment.
15983
15984 * libc/include/sys/config.h (__IEEE_BIG_ENDIAN): Define if d10v.
15985
15986 * libc/sys/d10v/syscalls.c (_sbrk): Add better checks for running
15987 out of memory.
15988
15989Mon Nov 18 13:08:26 1996 Jeffrey A Law (law@cygnus.com)
15990
15991 * configure.in: Handle mn10200 and mn10300.
15992 * libc/include/machine/{ieeefp.h,setjmp.h}: Likewise.
15993 * libc/include/sys/config.h: Likewise.
15994 * libc/sys/sysmec: New directory for mec stuff.
15995 * libc/machine/mn10300: New directory for mn10300 stuff.
15996 * libc/machine/mn10200: Similarly for mn10200 stuff.
15997
15998Fri Nov 15 16:41:41 1996 Doug Evans <dje@canuck.cygnus.com>
15999
16000 * libc/sys/arm/crt0.S: Use .text, not .section .text.
16001 * libc/sys/arm/syscalls.c: Rewrite to set errno properly.
16002
16003 * libc/include/sys/types.h (_ST_INT32): New macro, local to file.
16004 (nlink_t): Change type from unsigned int to unsigned short.
16005 (mode_t): Ensure size is 32 bits even if int is 16.
16006 * libc/include/sys/stat.h (st_nlink): Change type to nlink_t.
16007 (st_spare[123]): Change type from int to long.
16008
16009Fri Nov 15 11:41:50 1996 Michael Meissner <meissner@tiktok.cygnus.com>
16010
16011 * libc/sys/d10v/syscalls.c (_sbrk): Align initial heap_end to 8
16012 byte boundary.
16013
16014 * configure.in (d10v*): Define SMALL_MEMORY.
16015
16016Mon Nov 11 10:30:44 1996 Michael Meissner <meissner@tiktok.cygnus.com>
16017
16018 * configure.in (powerpc*-{eabi,elf,linux,rtem,sysv,solaris}*): Add
16019 -mrelocatable-lib and -mno-eabi flags.
16020
16021Mon Nov 11 09:01:39 1996 Jeffrey A Law (law@cygnus.com)
16022
16023 * libc/machine/h8300/memcpy.S: Fix comments to reflect reality.
16024 Fix handling of mis-aligned source operand when both the
16025 destination & length are properly aligned.
17c0c97d 16026
8a0efa53
CF
16027Wed Oct 30 09:41:11 1996 Jeffrey A Law (law@cygnus.com)
16028
16029 * libc/sys/sysnecv850/Makefile.in (OFILES): Add
16030 times.o, time.o and gettime.o
16031 * libc/sys/sysnecv850/{time.c, times.c, gettime.c}: New files.
16032 * libc/sys/sysnecv850/sys/syscall.h: Add SYS_times and
16033 SYS_gettimeofday.
16034
16035Tue Oct 29 13:40:09 1996 Jeffrey A Law (law@cygnus.com)
16036
16037 * libc/sys/sysnecv850/Makefile.in (OFILES): Add access.o
16038 * libc/sys/sysnecv850/access.c: New file.
16039
16040Mon Oct 21 19:47:02 1996 Ian Lance Taylor <ian@cygnus.com>
16041
16042 * libc/sys/vr4300/Makefile.in (clean): Remove $(OFILES).
16043
16044 * libc/stdlib/mprec.h (word0, word1): Use __uint32_t, not unsigned
16045 long.
16046
16047Mon Oct 21 14:43:07 1996 Jeffrey A Law (law@cygnus.com)
16048
16049 * libc/sys/sysnecv850/crt0.S: Initialize ep and gp registers.
16050
16051Thu Oct 17 11:47:16 1996 Doug Evans <dje@seba.cygnus.com>
16052
16053 * libc/include/machine/{ieeefp.h,setjmp.h}: Add m32r support.
16054 * libc/include/sys/config.h: Add m32r support.
16055
16056Wed Oct 16 23:08:05 1996 Jeffrey A Law (law@cygnus.com)
16057
16058 * libc/sys/sysnecv850/v850.ld: Remove. It doesn't belong
16059 here.
16060
16061Wed Oct 16 21:18:07 1996 Mark Alexander <marka@cygnus.com>
16062
16063 * libc/include/machine/setjmp.h: Add D10v support.
16064
16065Tue Oct 15 22:28:26 1996 Jeffrey A Law (law@cygnus.com)
16066
16067 * configure.in: Configure the "libc/syscalls" directory for
16068 the v850.
16069
16070 * libc/sys/sysnecv850/{close.c, execve.c, fork.c}: Add missing '_'.
16071 * libc/sys/sysnecv850/{fstat.c, getpid.c, kill.c}: Likewise.
16072 * libc/sys/sysnecv850/{lseek.c, open.c, read.c}: Likewise.
16073 * libc/sys/sysnecv850/{sbrk.c, stat.c, unlink.c}: Likewise.
16074 * libc/sys/sysnecv850/{wait.c, write.c}: Likewise.
16075
16076Tue Oct 15 16:24:39 1996 Stu Grossman (grossman@critters.cygnus.com)
16077
16078 * libc/sys/sysnecv850/crt0.S (start): Allocate spill space on
16079 stack for args for main and other routines. Zero out args for
16080 main.
16081
16082 * libc/sys/sysnecv850/v850.ld: New. Linker script to layout memory
16083 correctly.
16084
16085Tue Oct 15 11:51:42 1996 Michael Meissner <meissner@tiktok.cygnus.com>
16086
16087 * libc/stdio/findfp.c (std): Remove extraneous ';' after
16088 function.
16089
16090 * libc/sys/d10v/sys/syscall.h (SYS_kill): Add.
16091
16092 * libc/sys/d10v/{syscalls.c,trap.S} (_kill,_getpid): Make these
16093 real system calls now.
16094
16095 * libc/stdio/setvbuf (setvbuf): Cast pointers to _POINTER_INT
16096 before casting them to int.
16097 * libc/stdio/tmpnam.c (_tempnam_r): Ditto.
16098
16099 * libc/stdlib/mallocr.c (_morecore_r): Use _POINTER_INT when
16100 aligning pointer.
16101 * libc/string/memset.c (memset): Ditto.
17c0c97d 16102
8a0efa53
CF
16103 * libc/stdio/vfscanf.c (__svfscanf): When converting to pointer,
16104 first convert ints to _POINTER_INT to eliminate GCC warning.
16105
16106 * libc/stdio/vfprintf.c (_vfprintf_r): Use _POINTER_INT when
16107 processing %p.
16108
16109 * libm/math/ef_scalb.c (__ieee754_scalbf): Cut down range to 32000
16110 from 65000 if ints are only 16 bits.
16111
16112 * libm/math/sf_scalbn.c (scalbnf): Cut down overflow test to 30000
16113 from 50000 if ints are only 16 bits.
16114
16115 * libc/include/sys/config.h (_POINTER_INT): New macro, to give an
16116 int type that is the same size as a pointer.
16117
16118 * libc/misc/dprintf.c (__dprintf): Use _POINTER_INT when
16119 processing %p.
16120 (get_number): Explicitly cast number to long before shifting by 16
16121 or 24, in case ints are short.
16122
16123 * libc/include/sys/config.h (_POINTER_INT): Define as short.
16124
16125Wed Oct 9 16:54:32 1996 Jeremy Allison <jra@cygnus.com>
16126
16127 * libc/string.h: Added ffs, removed swab.
16128 * libc/sys/errno.h: Added EOPNOTSUPP.
16129 * libc/sys/unistd.h: Added swab.
16130
16131Thu Oct 3 17:08:50 1996 Jeremy Allison <jra@cygnus.com>
16132
16133 * libc/include/sys/stat.h: Added fchmod.
16134 * libc/include/sys/unistd.h: Added fsync.
16135
16136Tue Oct 1 17:34:08 1996 Jeremy Allison <jra@cygnus.com>
16137
16138 * libc/include/sys/errno.h: Added defines for EPFNOSUPPORT (96)
16139 and ECONNRESET (104) for cygwin32.
16140
16141Tue Oct 1 16:24:05 1996 Gavin Koch <gavin@cygnus.com>
16142
ba3ccd63
EB
16143 * libc/sys/sysnecv850/_exit.c: added _do_dtors to
16144 do the static destructors.
17c0c97d 16145
8a0efa53
CF
16146Mon Sep 30 15:59:05 1996 Stu Grossman (grossman@critters.cygnus.com)
16147
16148 * libc/sys/sysnecv850/trap.S: Change I/O to use trap 31.
16149
16150Mon Sep 30 12:02:50 1996 Doug Evans <dje@canuck.cygnus.com>
16151
16152 * libc/machine/m32r/{Makefile.in,setjmp.S}: New files.
16153 * configure.in: Recognize m32r-*-*.
16154
16155Mon Sep 30 00:34:41 1996 James G. Smith <jsmith@cygnus.co.uk>
16156
16157 * libc/sys/arm/trap.S (__rt_stkovf_split_big,
17c0c97d
EB
16158 __rt_stkovf_split_small): Added default software stack overflow
16159 handlers, which just call SWI_Exit.
8a0efa53 16160 * libc/sys/arm/crt0.S (_mainCRTStartup): Simple software stack
17c0c97d 16161 limit initialisation.
8a0efa53
CF
16162
16163Fri Sep 27 13:08:03 1996 Mark Alexander <marka@cygnus.com>
16164
16165 * libc/sys/d10v/{trap.S,sys/syscall.h}: Add time() function.
16166
16167Fri Sep 27 12:32:00 1996 Jeremy Allison <jra@cygnus.com>
16168
16169 * libc/include/sys/types.h: Added ssize_t definition.
17c0c97d 16170
8a0efa53
CF
16171Wed Sep 25 14:52:18 1996 Michael Meissner <meissner@tiktok.cygnus.com>
16172
16173 * libc/machine/d10v/setjmp.S: Use ';' for comments.
16174 * libc/sys/d10v/{crt0.S,trap.S}: Ditto.
16175
16176 * libc/machine/d10v/setjmp.S (longjmp): Use exef0t || instead of
16177 branch around a single ldi instruction.
16178
16179 * libc/sys/d10v/crt0.S (_start): Use auto-increment to zero bss.
16180 Call exit, instead of just issuing a stop instruction.
16181
16182Sun Sep 22 17:26:55 1996 Michael Meissner <meissner@tiktok.cygnus.com>
16183
16184 * libc/sys/d10v/{trap.S,syscalls.c}: Add -mint32 support.
16185
16186Fri Sep 20 13:23:12 1996 Michael Meissner <meissner@tiktok.cygnus.com>
16187
16188 * libc/stdlib/mprec.h: Explicitly declare all large constants as
16189 longs, and then cast them to __uint32_t.
16190
16191 * libc/include/sys/config.h: Protect against multiple inclusions.
16192
16193Tue Sep 17 13:10:33 1996 Mark Alexander <marka@cygnus.com>
16194
16195 * configure.in (d10v*): Set syscall_dir.
16196
16197Sun Sep 15 10:41:59 1996 Mark Alexander <marka@cygnus.com>
16198
16199 * libc/sys/d10v/crt0.S: Set stack pointer.
16200
16201Thu Sep 12 13:02:38 1996 Mark Alexander <marka@cygnus.com>
16202
16203 * libc/sys/d10v/{trap.S, syscalls.c}: Rewrite most system calls
16204 in assembly for efficiency. Change calling convention to allow
16205 long ints to be returned.
16206
16207Wed Sep 11 10:28:18 1996 Michael Meissner <meissner@tiktok.cygnus.com>
16208
16209 * libc/machine/v850/Makefile.in (setjmp.o): Fix dependency.
16210
16211Thu Sep 5 19:23:06 1996 Doug Evans <dje@canuck.cygnus.com>
16212
16213 * libc/posix/execvp.c (execvp): Don't search PATH if file has '/'.
16214 Handle empty entries in $PATH.
16215
16216Tue Sep 03 18:15:02 1996 Mark Alexander <marka@cygnus.com>
16217
16218 * libc/machine/d10v/setjmp.S: Make it really work.
16219
16220Tue Sep 3 12:16:26 1996 Ian Lance Taylor <ian@cygnus.com>
16221
16222 * libc/sys/sh/crt0.S: If __ELF__, use ELF section attributes for
16223 the .stack section.
16224
16225Tue Sep 3 10:08:45 1996 Jeffrey A Law (law@cygnus.com)
16226
16227 * sys/sysnecv850/sys/file.h: Remove.
16228 * sys/sysnecv850/sys/syscall.h: New file.
16229 * sys/sysnecv850/{misc.c,syscalls.c,malloc.c}: Deleted.
16230 * sys/sysnecv850/{chmod.c, chown.c, close.c, creat.c} New files.
16231 * sys/sysnecv850/{execv.c, execve.c, fork.c, fstat.c} New files.
16232 * sys/sysnecv850/{getpid.c, isatty.c, kill.c, lseek.c} New files.
16233 * sys/sysnecv850/{open.c, pipe.c, raise.c, read.c} New files.
16234 * sys/sysnecv850/{stat.c, unlink.c, utime.c, wait.c} New files.
16235 * sys/sysnec850/trap.S: New file.
16236 * sys/sysnecv850/{_exit.c, write.c}: Use new TRAP0 mechanism for
16237 syscalls.
16238 * sys/sysnecv850/crt0.S: Use cmp/bl, not tst/bz.
16239 * sys/sysnec850/sbrk.c: New version.
16240
16241Sun Sep 1 20:08:27 1996 Jeffrey A Law (law@cygnus.com)
16242
16243 * sys/sysnecv850/crt0.S: Fix order of comparison args. Loop
16244 as long as r6 is less than r7.
16245
16246Sun Sep 1 13:54:19 1996 Ian Lance Taylor <ian@cygnus.com>
16247
16248 * Makefile.in (mostlyclean): Separate from clean target. Don't
16249 remove *.a or targ-include.
16250 * libc/machine/sparc/Makefile.in (mostlyclean): New target.
16251
16252Sun Sep 1 11:35:26 1996 Michael Meissner <meissner@tiktok.cygnus.com>
16253
16254 * libc/include/machine/ieeefp.h (_DOUBLE_IS_32BITS): Define for
16255 d10v.
16256 (__SMALL_BITFIELDS): Ditto.
16257
16258 * libc/include/sys/config.h (_DOUBLE_IS_32BITS): Define for d10v.
16259
16260Sat Aug 31 16:42:36 1996 Jeffrey A Law (law@cygnus.com)
16261
16262 * libc/sys/sysnecv850/misc.c (raise, getpid, kill): Remove '_'
16263 prefix.
16264
16265 * libc/sys/sysnecv850/sbrk.c (sbrk): Remove '_' prefix.
16266 * libc/sys/sysnecv850/syscalls.c (read, lseek, close): Likewise.
16267 * libc/sys/sysnecv850/syscalls.c (fstat, open, close): Likewise.
16268 * libc/sys/sysnecv850/write.c (write): Likewise.
16269
16270 * libc/sys/sysnecv850/crt0.S: Don't try to zero out an empty
16271 .bss.
16272
16273Fri Aug 30 11:18:45 1996 Michael Meissner <meissner@tiktok.cygnus.com>
16274
16275 * libc/include/sys/config.h: Define INT_MAX, UINT_MAX
16276 appropriately for D10V, depending on -mint16/-mint32.
16277
16278Thu Aug 29 16:09:37 1996 Mark Alexander <marka@cygnus.com>
16279
16280 * configure.in: Add cases for D10V.
16281
16282Thu Aug 29 17:03:23 1996 Michael Meissner <meissner@tiktok.cygnus.com>
16283
16284 * configure.in (i[345]86-*-*): Recognize i686 for pentium pro.
16285
16286Wed Aug 28 21:05:52 1996 Jeffrey A Law (law@cygnus.com)
16287
16288 * libc/include/machine/ieeefp.h: Fix typo.
16289
16290Wed Aug 28 19:47:55 1996 Mark Alexander <marka@cygnus.com>
16291
16292 * libc/sys/d10v: New directory for D10V stuff.
16293 * libc/include/machine/ieeefp.h: Add D10V defines.
16294
16295Mon Aug 26 13:34:58 1996 Doug Evans <dje@canuck.cygnus.com>
16296
16297 * libc/include/sys/errno.h: Add winsup/include/sys/errno.h values:
16298 ELOOP, ENOBUFS, EAFNOSUPPORT, EPROTOTYPE, ENOTSOCK, ENOPROTOOPT,
16299 ESHUTDOWN, ECONNREFUSED, EADDRINUSE, ECONNABORTED, EWOULDBLOCK.
16300 * libc/string/strerror.c (strerror): Add them.
16301
16302Thu Aug 22 16:38:19 1996 Jeffrey A Law (law@cygnus.com)
16303
16304 * libc/sys/sysnecv850: New directory for v850 stuff.
16305
16306 * libc/machine/v850: New directory for v850 stuff.
16307 * libc/machine/v850/setjmp.S: setjmp/longjmp support.
16308
16309 * configure.in: Add support for the v850.
16310
16311 * libc/include/machine/ieeefp.h: Add v850 defines.
16312 * libc/include/machine/setjmp.h: Likewise.
16313 * libc/include/sys/config.h: Add v850 defines.
16314
16315Sat Aug 17 04:06:36 1996 Geoffrey Noer <noer@cygnus.com>
16316
16317 * libc/include/machine/ieeefp.h
16318 * libc/include/machine/setjmp.h
16319 * libc/include/sys/fcntl.h
16320 * libc/include/sys/signal.h
16321 * libc/include/sys/types.h
16322 * libc/stdlib/system.c:
16323 Fix preprocessor defines to match new scheme (_WIN32 for WIN32
16324 API availability, __CYGWIN32__ for cygwin32 environment specific).
16325
16326Thu Aug 15 17:09:21 1996 Geoffrey Noer <noer@cygnus.com>
16327
ba3ccd63
EB
16328 * libc/include/stdlib.h: add multibyte character functions. Add
16329 __eprintf for assert.
8a0efa53
CF
16330
16331Thu Aug 15 11:15:40 1996 Michael Meissner <meissner@tiktok.cygnus.com>
16332
16333 * libc/stdlib/malloc.h (MALLOC_ALIGNMENT): Use either pointer
16334 arithmetic or __alignof__ to properly get the alignment, instead
16335 of hardwiring it to 4.
16336
16337Wed Aug 14 23:43:28 1996 Geoffrey Noer <noer@cygnus.com>
16338
16339 * libc/stdio/fseek.c: add fflush call to adjust seek offset
16340 on append stream (fix from NetBSD sources), adjust curoff offset
16341 for ungetc's benefit.
16342 * libc/stdio/ftell.c: adjust curoff offset for ungetc's benefit.
16343 * libc/stdio/rewind.c: replace code with up to date NetBSD
16344 code to undo hacks made to work around above problem of not
16345 having fflush call mentioned above
16346
16347Fri Aug 2 18:28:07 1996 J.T. Conklin <jtc@rtl.cygnus.com>
16348
16349 * libc/reent/{closer.c, execr.c, fstatr.c, linkr.c, lseekr.c,
17c0c97d
EB
16350 openr.c, readr.c, sbrkr.c, signalr.c, statr.c, timer.c, writer.c}:
16351 Partially revert last changes. The thread specific errno is set
16352 iff if the underlying syscall fails and the global errno is not
16353 zero.
8a0efa53
CF
16354
16355Fri Jul 19 11:41:52 1996 J.T. Conklin <jtc@rtl.cygnus.com>
16356
16357 * libc/reent/filer.c: Removed files, all functions have split out
17c0c97d
EB
16358 into their own files.
16359 * libc/reent/{closer.c, lseekr.c, openr.c, readr.c, writer.c}:
8a0efa53
CF
16360 New files containing functions formally in filer.c
16361 * libc/reent/Makefile.in: Updated for above change.
16362
16363 * libc/reent/execr.c (_fork_r, _wait_r): Set errno if underlying
17c0c97d
EB
16364 syscall fails, not if errno is changed.
16365 * libc/reent/filer.c (_open_r, _close_r, _lseek_r, _read_r,
8a0efa53
CF
16366 _write_r): Likewise.
16367 * libc/reent/fstatr.c (_fstat_r): Likewise.
16368 * libc/reent/linkr.c (_link_r, _unlink_r): Likewise.
16369 * libc/reent/sbrkr.c (_sbrk_r): Likewise.
16370 * libc/reent/signalr.c (_kill_r): Likewise.
16371 * libc/reent/statr.c (_stat_r): Likewise.
16372 * libc/reent/timer.c (_gettimeofday_r): Likewise.
16373
16374 * libc/reent/{execr.c, filer.c, fstatr.c, linkr.c, sbrkr.c,
17c0c97d 16375 signalr.c, statr.c, timer.c} (errno): declare extern rather
8a0efa53
CF
16376 than as a common.
16377
16378 * libc/stdio/vfprintf.c (__sbprintf): Use the VFPRINTF macro
17c0c97d
EB
16379 instead of calling vfprintf so that i*printf will not require
16380 floating point support code.
16381
8a0efa53
CF
16382Mon Jul 15 16:50:59 1996 Doug Evans <dje@canuck.cygnus.com>
16383
16384 * libc/posix/execvp.c (execvp): Use posix_path_list_p to determine
16385 path delimiter.
16386 * libc/include/sys/unistd.h (_SC_PATH_RULES): Delete.
16387 (_PATH_RULES_{UNKNOWN,WIN32,POSIX}): Delete.
16388
16389Thu Jul 11 14:34:14 1996 Geoffrey Noer <noer@cygnus.com>
16390
16391 * libc/include/signal.h: _sig_func_ptr function takes an int
16392 * libc/include/sys/signal.h: sa_handler function takes an int
16393
16394Tue Jul 9 21:22:32 1996 Jeffrey A Law (law@cygnus.com)
16395
16396 * libc/include/machine/ieeefp.h: Simplify H8/S support.
16397 * libc/include/sys/config.h: Add missing H8/S conditional.
16398
16399Sun Jun 30 12:05:46 1996 Doug Evans <dje@canuck.cygnus.com>
16400
16401 * libc/include/sys/unistd.h (MAXPATHLEN): Add cygwin32 value.
16402
16403Wed Jun 26 09:57:54 1996 Jeffrey A Law (law@cygnus.com)
16404
16405 * libc/include/machine/setjmp.h: Handle H8/S.
16406 * libc/include/machine/ieeefp.h: Likewise.
16407 * libc/include/sys/config.h: Likewise.
16408 * libc/machine/h8300/{defines.h, memcpy.S, memset.S}: Likewise.
16409 * libc/machine/h8300/{reg_memcpy.S, reg_memset.S}: Likewise.
16410 * libc/machine/h8300/{strcmp.S, setjmp.S}: Likewise.
16411 * libc/sys/h8300hms/crt0.S: Likewise.
16412
16413Tue Jun 25 23:15:45 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
16414
ba3ccd63 16415 * Makefile.in (datadir): Set to $(prefix)/share.
8a0efa53 16416 (oldincludedir, docdir): Removed.
ba3ccd63 16417 * doc/Makefile.in (datadir): Set to $(prefix)/share.
8a0efa53 16418 (oldincludedir, docdir): Removed.
ba3ccd63 16419 * libc/Makefile.in (datadir): Set to $(prefix)/share.
8a0efa53 16420 (oldincludedir, docdir): Removed.
ba3ccd63 16421 * libm/Makefile.in (datadir): Set to $(prefix)/share.
8a0efa53
CF
16422 (oldincludedir, docdir): Removed.
16423
16424Fri Jun 21 19:24:41 1996 Ian Lance Taylor <ian@cygnus.com>
16425
16426 * libc/include/sys/reent.h (_REENT_INIT): Update for change to
16427 _reent struct.
16428
16429Wed Jun 19 14:00:09 1996 Doug Evans <dje@canuck.cygnus.com>
16430
16431 * libc/posix/execvp.c: Delete _WIN32 support. For __CYGWIN32__
16432 fetch current path rules with sysconf and handler posix/win32
16433 appropriately.
16434
16435 * libc/include/sys/unistd.h (_PATH_RULES{,_POSIX,_WIN32}): Define.
16436
16437 * libc/include/process.h: Prepend '_' to P_{WAIT,NOWAIT,OVERLAY}.
16438 (WAIT_CHILD): Always define.
16439
16440Sat Jun 15 17:50:42 1996 Ian Lance Taylor <ian@cygnus.com>
16441
16442 * libc/stdlib/eprintf.c: New file.
16443 * libc/stdlib/Makefile.in (OFILES): Add eprintf.o.
16444 (eprintf.o): New target.
16445
16446Thu Jun 13 16:44:32 1996 Doug Evans <dje@canuck.cygnus.com>
16447
16448 * libc/sys/cygwin32/crt0.c (__cygwin_crt0_bp): New global.
16449 (mainCRTStartup): Do int3 if __cygwin_crt0_bp non-zero.
16450
16451Thu Jun 13 17:45:17 1996 Mike Meissner <meissner@rtl.cygnus.com>
16452
16453 * libc/include/machine/ieeefp.h: Add support for AIX and Windows
16454 NT in PowerPC endianess cases.
16455
16456Tue Jun 11 12:26:28 1996 Michael Meissner <meissner@tiktok.cygnus.com>
16457
16458 * libc/include/machine/ieeefp.h: Clean up PowerPC endianess.
16459
16460Thu Jun 6 11:34:20 1996 Michael Meissner <meissner@tiktok.cygnus.com>
16461
16462 * libc/string/strtok.c: Fix doc typo.
16463
16464Mon Jun 3 11:30:00 1996 J.T. Conklin <jtc@rtl.cygnus.com>
16465
16466 * libc/include/sys/reent.h (struct _reent): Removed _asctime,
17c0c97d 16467 _next, _scanpoint, _signgam fields.
8a0efa53
CF
16468
16469 * libc/include/stdlib.h (rand_r): Added new declaration.
16470 (_rand_r, _srand_r): Removed declarations.
16471 * libc/stdlib/rand.c (_rand_r, _srand_r): Removed, these functions
17c0c97d 16472 have been made obsolete by rand_r.
8a0efa53 16473 * libc/stdlib/rand_r.c: New file, rand_r function as specified
17c0c97d
EB
16474 by POSIX.1c.
16475
8a0efa53 16476 * libc/string/strtok.c: Update documentation to describe
17c0c97d 16477 strtok_r().
8a0efa53
CF
16478
16479Sat Jun 1 23:50:39 1996 Michael Meissner <meissner@cygnus.com>
16480
16481 * libc/include/sys/stat.h (stat structure): Use the expanded stat
16482 structure on Solaris, and PowerPC systems even though __svr4__ is
16483 defined.
16484
16485Tue May 28 13:02:42 1996 Doug Evans <dje@canuck.cygnus.com>
16486
16487 * libc/sys/go32/sys/errno.h (ENOSYS,ESPIPE): Keep values <= 255.
16488
16489Fri May 17 10:34:44 1996 Ian Lance Taylor <ian@cygnus.com>
16490
16491 * host/any: Use ../.. rather than .. to get to the main build
17c0c97d
EB
16492 directory. This matches the current layout of the build
16493 directory.
8a0efa53
CF
16494
16495Wed May 15 15:52:27 1996 Jeffrey A Law (law@cygnus.com)
16496
16497 * libc/machine/h8300/__main.S: Delete. No longer needed.
16498 * libc/machine/h8300/Makefile.in: Corresponding changes.
16499 * libc/sys/h8300hms/crt1.c: New file.
16500 * libc/sys/h8300hms/Makefile.in: Corresponding changes.
16501 * libc/sys/h8300hms/crt0.s: Call __main.
16502
16503 * libc/sys/h8300hms/crt0.S: Use temporary label names
16504 for branch targets.
16505
16506Mon May 13 14:26:30 1996 Doug Evans <dje@canuck.cygnus.com>
16507
16508 * libc/stdio/fopen.c (_fopen_r): Fix arguments to fseek.
16509
16510Fri May 3 16:38:23 1996 Michael Meissner <meissner@tiktok.cygnus.com>
16511
16512 * libc/reent/impure.c (_impure_ptr): Force the impure pointer into
16513 .sdata on the PowerPC so that we can link newlib with code
16514 compiled with -msdata.
16515
16516Mon Apr 29 21:38:02 1996 Doug Evans <dje@canuck.cygnus.com>
16517
16518 * libc/sys/arm/syscalls.c (_sbrk): Rename end to __end__.
16519
16520Thu Apr 25 06:38:59 1996 Michael Meissner <meissner@cygnus.com>
16521
16522 * libc/sys/cygwin32/crt0.c (mainCRTStartup): On PowerPC, set the
16523 exception handler to __cygwin_exception_handler.
16524
16525Tue Apr 23 15:14:20 1996 Ian Lance Taylor <ian@cygnus.com>
16526
16527 * libc/include/machine/setjmp.h: Check _AM29K, not ___AM29K__.
16528
16529Sun Apr 21 12:11:51 1996 Doug Evans <dje@blues.cygnus.com>
16530
16531 * libm/math/Makefile.in ({w,wf}_cabs.o,{w,wf}_drem.o): Add rule for
16532 SunOS VPATH.
16533 * libc/stdlib/Makefile.in (atoff.o,atol.o,mblen.o,mbstowcs.o,
16534 wcstombs.o): Likewise.
16535
16536Thu Apr 18 12:37:01 1996 Doug Evans <dje@canuck.cygnus.com>
16537
16538 * libc/stdlib/environ.c (initial_env): New static local.
16539 (environ): Point to `initial_env'.
16540
16541 * libc/include/machine/setjmp.h: Clean up.
16542 (__H8300H__,__PPC__): Define _JBTYPE.
16543 (__arm__): Provide entry for.
16544 (sigjmp_buf): Delete.
16545 (jmp_buf): Use _JBTYPE if defined, otherwise int.
16546
16547Thu Apr 18 12:10:52 1996 Jeffrey A Law (law@cygnus.com)
16548
16549 * libc/machine/h8300/strcmp.S: Sign extend the result to
16550 32bits so we don't lose with -mint32.
16551
16552Sun Apr 14 19:59:52 1996 Doug Evans <dje@canuck.cygnus.com>
16553
16554 * libc/sys/go32/sys/errno.h: New file.
16555 * libc/sys/go32/Makefile.in (stat.o): Depend on stat.c.
16556 * libc/sys/go32/gerrno.s (syscall_error): Call __errno to get
16557 errno's address (make compatible with rest of newlib).
16558 * libc/sys/go32/stat.c (fixinode): Set errno upon failure.
16559 * libc/string/strerror.c (strerror): Surround each case with #ifdef.
16560
16561Thu Mar 28 13:44:42 1996 Doug Evans <dje@canuck.cygnus.com>
16562
16563 * libc/machine/sparc/{scan.c,shuffle.c}: New files.
16564 * libc/machine/sparc/Makefile.in: Build them.
16565 * libc/machine/sparc/machine/sparclet.h: New file.
16566
16567Mon Mar 25 15:29:14 1996 J.T. Conklin <jtc@rtl.cygnus.com>
16568
16569 * libc/machine/sh/asm.h: New file.
16570 * libc/machine/sh/setjmp.S: Only save clobbered registers. Added
17c0c97d 16571 support for SH3e's FP registers. Use asm.h.
8a0efa53
CF
16572
16573Mon Mar 25 11:59:23 1996 Jeffrey A Law (law@cygnus.com)
16574
16575 * libc/stdio/vfprintf.c (cvt): Accept a reent structure
16576 as first argument. Call _dtoa_r and pass the reent structure
16577 instead of calling __dtoa.
16578
16579Fri Mar 22 13:59:37 1996 Jeffrey A Law (law@cygnus.com)
16580
16581 * libc/include/sys/config.h: Define DOUBLE_IS_32BITS for
16582 the h8300, h8500, and others. Add comments for some rather
16583 dubious code.
16584
16585Thu Mar 14 18:04:43 1996 Ian Lance Taylor <ian@cygnus.com>
16586
16587 * Makefile.in (check): Check that testsuite exists before cd.
16588
16589Tue Mar 12 11:46:47 1996 Michael Meissner <meissner@tiktok.cygnus.com>
16590
16591 * libc/include/string.h (strsep): Correct prototype.
16592
16593Mon Mar 11 09:55:19 1996 Doug Evans <dje@charmed.cygnus.com>
16594
16595 * libc/sys/h8300/_exit.c (_exit,__exit): Set r0 to 0 before `sleep'.
16596 * libc/sys/h8300/misc.c (_kill): Set r0 to indicate abort and `sleep'.
16597 * libc/sys/h8300/crt0.S (_start): Call exit instead of `sleep'.
16598
16599Wed Mar 6 11:51:55 1996 Doug Evans <dje@charmed.cygnus.com>
16600
16601 * libc/posix/{creat.c,isatty.c}: New files.
16602 * libc/posix/Makefile.in (OFILES): Add creat.o, isatty.o.
16603
16604 * libc/sys/sparc64/crt0.S (environ): Delete.
16605 (.LHaveBias): Renamed from HaveBias.
16606
16607Thu Feb 15 10:48:37 1996 Doug Evans <dje@charmed.cygnus.com>
16608
16609 * libc/stdlib/mallocr.c (etext): Move decl inside ifdef WARN_VLIMIT.
16610 (_morecore_r): Delete SBRK_IS_ALLOC support.
16611
16612Tue Feb 13 09:44:09 1996 Michael Meissner <meissner@tiktok.cygnus.com>
16613
16614 * libc/sys/cygwin32/Makefile.in (lib.a): Make lib.a with a dummy
16615 module rather than touch, so we don't get warning messages when
16616 all of the libraries are combined into libc.a.
16617
16618Tue Feb 13 06:32:07 1996 Doug Evans <dje@charmed.cygnus.com>
16619
16620 * libc/sys/sparclite/{Makefile.in,crt0.s}: Deleted.
16621 crt0.s replaced by version in libgloss.
16622
16623Mon Feb 5 15:17:51 1996 J.T. Conklin <jtc@rtl.cygnus.com>
16624
16625 * libc/reent/Makefile.in (OFILES): Add impure.o.
16626 * libc/reent/impure.o: New file, define initial reentrancy struct.
16627 * libc/reent/reent.c: Remove above definition.
16628
16629 * libm/math/sf_asinh.c: Fix typo.
16630
16631 * Makefile.in (MATHOBJS_IN_LIBC): Removed sr_ldexp.o and
17c0c97d
EB
16632 srf_ldexp.o.
16633
8a0efa53
CF
16634 * libm/libm.texinfo: Change documentation to reflect changes
16635 in reentrancy model.
16636 * libm/math/w_gamma.c: Likewise.
16637
16638Wed Jan 31 18:49:45 1996 Steve Chamberlain <sac@slash.cygnus.com>
16639
16640 * configure.in (*-*-cygwin32): New.
16641 (*-*-win32): Deleted.
16642 * libc/sys/win32 renamed libc/sys/cygwin32.
16643
16644Tue Jan 30 22:09:03 1996 Michael Meissner <meissner@tiktok.cygnus.com>
16645
16646 * libc/include/sys/file.h: New include file.
16647
16648Fri Jan 26 15:52:54 1996 Steve Chamberlain <sac@slash.cygnus.com>
16649
16650 * libc/include/machine/setjmp.h: Increase size of PPC jmp_buf.
16651
16652Tue Jan 23 17:49:16 1996 Steve Chamberlain <sac@slash.cygnus.com>
16653
16654 * libc/include/sys/wait.h (WIFSIGNALED): Fix.
16655
16656Tue Jan 16 09:28:10 1996 Michael Meissner <meissner@tiktok.cygnus.com>
16657
16658 * doc/makedoc.c (realloc): Declare at file scope.
16659 (catchar): Not here.
16660
16661Wed Dec 27 15:45:23 1995 Doug Evans <dje@canuck.cygnus.com>
16662
16663 * Makefile.in (VERSION): Update to 1.7.0.
16664 * {libc,libm}/Makefile.in (VERSION): Likewise.
16665 * configure.in: Minor clean up of multilib stuff.
16666
16667 From David Johnson <davidj@ICSI.Berkeley.EDU>
16668 * {libc,libm}/Makefile.in (lib[cm].a): Delete library first.
16669
16670 * libc/stdlib/environ.c: New file.
16671 * libc/stdlib/Makefile.in (OFILES): Build it.
16672 * libc/sys/h8500hms/crt0.c (environ): Deleted.
16673 * libc/sys/m88kbug/crt0.c (environ): Deleted.
16674 * libc/sys/z8ksim/crt0.c (environ): Deleted.
16675 * libc/sys/netware/environ.c: Deleted.
16676
16677Tue Dec 19 15:24:46 1995 Kim Knuttila <krk@cygnus.com>
16678
16679 * configure.in (links): set sys_dir, posix_dir, syscall_dir
16680
16681Wed Dec 13 04:16:25 1995 Michael Meissner <meissner@wogglebug.tiac.net>
16682
16683 * doc/makedoc.c (init_string_with_size,nextword): Move malloc
16684 declaration out to external scope and declare it PTR, not char *.
16685
16686Mon Dec 11 17:35:12 1995 steve chamberlain <sac@slash.cygnus.com>
16687
16688 * libc/include/sys/unistd.h (getpagesize): New declaration.
16689 (_SC_PAGESIZE): New definition.
16690 * libc/include/time.h (CLK_TCK): Defined as CLOCKS_PER_SEC.
16691 * libc/configure.in (i[345]86-*-win32): Remove -DNO_FORK.
16692
16693Fri Dec 1 16:48:46 1995 James G. Smith <jsmith@cygnus.co.uk>
16694
16695 * libc/sys/vr4300/syscalls.c (sbrk): Fixed memory
17c0c97d 16696 addressing. System call returns size, not (last address + 1).
8a0efa53
CF
16697
16698Thu Nov 30 15:05:26 1995 J.T. Conklin <jtc@rtl.cygnus.com>
16699
16700 * libm/math/*.c: Removed _foo_r() reentrancy API.
16701 * libc/include/math.h: Removed _foo_r prototypes and macros.
16702
17c0c97d 16703 * libm/math/*.c: On systems with IEEE single precision "doubles"
8a0efa53 16704 move foo() -> foof() wrapper code from the files that implement
17c0c97d 16705 the standard IEEE double precision functions to the files that
8a0efa53
CF
16706 implement IEEE single precision functions. (ie. On those systems
16707 sin is moved from s_sin.c to sf_sin.c). There should eventually
16708 be use of a C extension (like gcc's alias attribute) so that the
16709 wrappers are not needed at all.
16710
16711 * libc/sys/sysnec810/sbrk.c: Cast &end to char * to get around
17c0c97d 16712 strict NEC V810 compiler.
8a0efa53 16713 * libc/misc/dprintf.c (getnumber): Cast char * to unsigned char *
17c0c97d 16714 for same reason.
8a0efa53
CF
16715
16716Wed Nov 29 14:25:05 1995 J.T. Conklin <jtc@rtl.cygnus.com>
16717
16718 * libc/stdlib/strtol.c (_strtol_r): Replaced with implementation
17c0c97d 16719 from NetBSD C library.
8a0efa53
CF
16720 * libc/stdlib/strtoul.c (_strtoul_r): Likewise.
16721
17c0c97d 16722 * libc/stdlib/assert.c (__assert): Renamed from __assertfail
8a0efa53
CF
16723 and adapted from implementation I wrote for NetBSD C library.
16724 The difference is __assert doesn't take a format argument,
16725 so that there won't be multiple copies of the same string
16726 constant in the executable if assertions are enabled in
17c0c97d 16727 more than one source module.
8a0efa53
CF
16728 * libc/include/assert.h (assert): Changed to call __assert.
16729
16730Tue Nov 28 16:54:26 1995 J.T. Conklin <jtc@rtl.cygnus.com>
16731
16732 * libc/stdlib/strtod.c (_strtod_r): Changed to not assign to
16733 word1 on systems with 32 bit doubles.
16734 * libc/stdlib/qsort.c (qsort): Cast some void *'s to char *'s
16735 so that we can do arithmetic on them.
16736 * libc/misc/dprintf.c: Changed to support stdarg.h for ANSI
17c0c97d
EB
16737 compilers.
16738
8a0efa53
CF
16739Tue Nov 28 16:03:32 1995 Doug Evans <dje@canuck.cygnus.com>
16740
16741 * libc/sys/arm/crt0.S: Zero bss.
16742
16743Fri Nov 24 16:09:23 1995 Doug Evans <dje@deneb.cygnus.com>
16744
16745 * libc/include/unctrl.h: New file.
16746 * libc/misc/{Makefile.in,dprintf.c,unctrl.c,misc.tex}: New files.
16747 * configure.in (subdirs): Add libc/misc.
16748 * libc/Makefile.in (SUBDIRS): Add misc.
16749 (SUBLIBS): Add misc/lib.a.
16750
16751 * libc/include/sys/reent.h (struct _reent): Make __sf last member.
16752
16753Wed Nov 22 19:49:47 1995 Doug Evans <dje@deneb.cygnus.com>
16754
16755 * libc/stdio/vfprintf.c (__sbprintf): Init fake._data.
16756 (_vfprintf_r): Call CHECK_INIT.
16757
16758Tue Nov 14 02:52:12 1995 Doug Evans <dje@canuck.cygnus.com>
16759
16760 * Makefile.in (MULTITOP): Delete.
16761 (MULTISRCTOP, MULTIBUILDTOP): Add.
16762 * configure.in: Delete call to cfg-ml-com.in. Call config-ml.in
16763 instead of cfg-ml-pos.in.
16764
16765Wed Nov 8 01:24:08 1995 James G. Smith <jsmith@pasanda.cygnus.co.uk>
16766
16767 * libc/sys/vr4300/syscalls.c: Added clean version of sbrk().
16768 * libc/sys/vr4300/crt0.S: Cleaned up. Added check for FPU
17c0c97d 16769 presence.
8a0efa53
CF
16770
16771Thu Nov 2 22:25:06 1995 Michael Meissner <meissner@tiktok.cygnus.com>
16772
16773 * libc/string/strtok.c: Include string.h to pick up strtok_r
16774 prototype.
16775
16776Wed Nov 1 18:54:11 1995 Jason Molenda (crash@phydeaux.cygnus.com)
16777
16778 * libc/string/strtok.c: include <_ansi.h>.
16779 * libc/time/asctime_r.c: `reresult' -> `result'.
16780
16781Wed Nov 1 14:35:52 1995 J.T. Conklin <jtc@rtl.cygnus.com>
16782
16783 * libc/time/{ctime.c, gmtime.c, lcltime.c}: Wrap functions
16784 in #ifndef _REENT_ONLY ... #endif conditional.
16785
16786 * libc/include/string.h (_strtok_r): Remove declaration.
16787 * libc/include/time.h (_asctime_r): Remove declaration.
16788 * libc/string/strtok.c (_strtok_r): Removed.
16789 * libc/time/asctime.c (_asctime_r): Removed.
16790
16791 * libc/string/Makefile.in (OFILES): Add new object.
16792 * libc/string/strtok_r.c: New file. strtok_r function as
17c0c97d 16793 specified by POSIX.1c, adapted from strtok implementation
8a0efa53 16794 from NetBSD C library.
17c0c97d 16795 * libc/string/strtok.c (strtok): Reimplemented in terms of
8a0efa53
CF
16796 strtok_r.
16797
16798 * libc/time/Makefile.in (OFILES): Add new objects.
16799 * libc/time/{asctime_r.c, ctime_r.c, gmtime_r.c, lcltime_r.c}:
16800 New files, reentrant time functions specified by POSIX.1c.
16801 * libc/time/{asctime.c, ctime.c, gmtime.c, lcltime.c}: Non-
17c0c97d 16802 reentrant time functions re-written in terms of reentrant
8a0efa53
CF
16803 functions.
16804 * libc/time/lcltime.c: Renamed from localtime.c
16805
16806 * libc/include/time.h: Add prototypes for asctime_r, ctime_r,
16807 gmtime_r, and localtime_r.
16808
16809Sat Oct 28 14:34:31 1995 steve chamberlain <sac@slash.cygnus.com>
16810
16811 * libc/sys/win32/crt0.c (mainCRTStartup): Call cygwin_crt0.
16812 * libc/include/sys/unistd.h (getlogin): Revert change of
16813 Oct 19.
16814 * libc/include/sys/signal.h (sigprocmask): Change prototype
16815 so it compiles with c++.
16816
16817Wed Oct 25 15:43:18 1995 Michael Meissner <meissner@cygnus.com>
16818
16819 * libc/include/machine/setjmp.h (PowerPC _JBLEN): Consider it a
16820 PowerPC if __PPC__ is defined. Bump jump_buf length to 62 ints,
16821 to give some room in case we need to align the jmp_buf.
17c0c97d 16822
8a0efa53
CF
16823 * libc/machine/powerpc/setjmp.S (setjmp, longjmp): Rewrite to use
16824 the new ppc-asm.h include file the compiler provides to specify
16825 function prologue/epilogue. Eliminate saves of the xer and ctr
16826 registers, which are volatile. Before starting to save registers,
16827 align to 8 byte boundary.
16828
16829Mon Oct 23 11:20:51 1995 James G. Smith <jsmith@pasanda.cygnus.co.uk>
16830
16831 * libc/sys/vr4300/syscalls.c: Added empty kill() function,
17c0c97d 16832 referenced by standard libraries.
8a0efa53
CF
16833
16834Thu Oct 19 21:39:47 1995 Fred Fish <fnf@cygnus.com>
17c0c97d 16835
8a0efa53
CF
16836 * libc/unix/Makefile.in, libc/string/Makefile.in,
16837 libc/stdio/Makefile.in, libc/reent/Makefile.in,
16838 libc/posix/Makefile.in:
16839 Remove tabs from otherwise empty line. Confuses some
16840 older non-GNU versions of "make".
16841
16842Thu Oct 19 16:32:17 1995 steve chamberlain <sac@slash.cygnus.com>
16843
16844 * libc/sys/unistd.h (getlogin): Returns const char *.
16845
16846Wed Oct 18 12:57:50 1995 steve chamberlain <sac@slash.cygnus.com>
16847
16848 * libc/include/fcntl.h (O_BINARY, O_TEXT): New.
16849 * libc/include/errno.h: Moved into and include...
16850 * libc/include/sys/errno.h: New file.
16851 * libc/include/sys/wait.h: New file.
16852 * libc/stdio/rename.c (_rename_r): Use _rename system call if available.
16853 * libc/sys/win32/*: Moved out.
16854 * libc/sys/win32/crt0.c: Rewritten to cope with shared library.
16855 * configure.in (i[345]86-*-win32): HAVE_RENAME
16856
16857Wed Oct 18 09:58:27 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
16858
16859 * libc/unix/sigset.c (sigemptyset, sigaddset): Prefix #undef to
16860 avoid macro expansion for these two names.
16861
16862Tue Oct 17 08:45:33 1995 Doug Evans <dje@canuck.cygnus.com>
16863
16864 * libc/machine/h8500/psi.S: r6 renamed to fp.
16865
16866Sun Oct 15 12:58:10 1995 Michael Meissner <meissner@wogglebug.tiac.net>
16867
16868 * configure.in (powerpc*): No longer need to define
16869 NO_LONGLONG_POINTERS to supress warnings.
16870
16871Sat Oct 14 12:55:08 1995 Jim Wilson <wilson@chestnut.cygnus.com>
16872
16873 * libc/reent/reent.c (_reclaim_reent): Call cleanup indirectly
16874 through PTR instead of directly.
16875
16876 * libc/sys/sh/crt0.S: Clean up formatting. Delete unused
16877 non-standard constructor support.
16878
16879Thu Oct 12 11:39:42 1995 J.T. Conklin <jtc@rtl.cygnus.com>
16880
16881 * libc/stdlib/dtoa.c (_dtoa_r): Set result pointer to the
17c0c97d
EB
16882 address of the Bigint instead of the address of its _x field,
16883 as the size the result buffer was calculated accordingly.
8a0efa53
CF
16884 Fix from Jim Wilson <wilson@chestnut@cygnus.com>.
16885
16886 * libc/stdlib/{div.c, ldiv.c}: Replaced with implementation
17c0c97d 16887 from NetBSD C library. No longer special cases division by
8a0efa53
CF
16888 zero (which needs to be done by the application anyway), but
16889 it doesn't need to call abs() (or labs()) four times either.
17c0c97d
EB
16890
16891 * libc/stdlib/qsort.c: Replaced with implementation from
8a0efa53
CF
16892 NetBSD C library.
16893
16894Tue Oct 10 14:01:10 1995 J.T. Conklin <jtc@rtl.cygnus.com>
16895
16896 * libc/stdio/vfprintf.c: Replaced with implementation from
ba3ccd63 16897 NetBSD C library (which is derived from the 4.4BSD C library).
8a0efa53
CF
16898 * libc/stdio/cvt.c: Removed.
16899 * libc/stdio/Makefile: Updated.
17c0c97d 16900
8a0efa53
CF
16901Tue Oct 10 12:15:23 1995 steve chamberlain <sac@slash.cygnus.com>
16902
16903 * libc/sys/win32/syscalls.c (rename): New.
16904 * libc/sys/win32/include/winkernel.h (MoveFileExA): New.
16905
16906Fri Oct 6 12:18:43 1995 Jim Wilson <wilson@chestnut.cygnus.com>
16907
16908 * libc/machine/sh/Makefile.in (setjmp.o): Depend on setjmp.S.
16909 * libc/machine/sh/setjmp.S: Rename from setjmp.s.
16910
16911 * libc/sys/sh/Makefile.in (OFILES, all): Delete setjmp.o.
16912 (setjmp.o): Delete rule to build setjmp.o.
16913 * libc/sys/sh/setjmp.S: Delete file.
16914
16915Fri Oct 6 11:19:05 1995 J.T. Conklin <jtc@rtl.cygnus.com>
16916
16917 * libc/stdlib/mprec.c (d2b): Added support for _DOUBLE_IS_32BITS.
16918 * libc/stdlib/mprec.h: Fixed constants used for IEEE single float
16919 format. Added #defines to map d2b, i2b, low0bits, lshift, mult,
17c0c97d 16920 pow5mult and s2b to identifiers with leading underscores.
8a0efa53
CF
16921 * libc/stdlib/Makefile.in: Add mprec.h as a dependency to dtoa.o,
16922 ecvtbuf.o, mprec.o and strtod.o. Sort dependencies.
16923
16924Thu Oct 5 17:27:30 1995 steve chamberlain <sac@slash.cygnus.com>
16925
16926 * libc/sys/posix/popen.c (sys/types.h): Include.
16927
16928Thu Oct 5 16:33:01 1995 Doug Evans <dje@canuck.cygnus.com>
16929
16930 * libc/sys/win32/syscalls.h (fhandler): New struct.
16931 (__lookup_fhandler, __lookup_fhandler_hook): Declare.
16932 (__fhandler_normal): Declare.
16933 (hinfo): New member op_handlers.
16934 * libc/sys/win32/syscalls.c (__read): Don't validate fd.
16935 (__write): Likewise.
16936 (_read, _write, _open, _close, _lseek): Validate fd here.
16937 Move file type specific stuff to foo_normal.
16938 (read_normal, write_normal, open_normal, close_normal, lseek_normal):
16939 New functions.
16940 (__lookup_fhandler): New function.
16941 (__lookup_fhandler_hook, __fhandler_normal): New variables.
16942
16943 From anders.blomdell@control.lth.se (Anders Blomdell)
16944 * libc/sys/win32/crt0.c (vfork_init): Unset __FD_TABLE__.
16945 Don't touch standard handles.
16946 * libc/sys/win32/spawn.c (_spawn): Use STARTF_USESTDHANDLES.
16947 (_execve): Only create __FD_TABLE__ if necessary.
16948 * libc/sys/win32/include/winkernel.h (STARTF_*): Define.
16949
16950Thu Oct 5 14:25:14 1995 steve chamberlain <sac@slash.cygnus.com>
16951
16952 * libc/sys/win32/sys/termios.h (FLUSHO): New.
16953 * libc/sys/win32/include/win*.h: Moved a load of prototypes around.
16954 * libc/sys/win32/pipe.c (_fctnl): Ignore F_SETFL without errors.
16955 * libc/sys/win32/exception.c (ehandler3): set strace when a signal
16956 without a handler is received.
16957 * libc/sys/win32/Makefile.in: Remove --nodelete.
16958 * libc/sys/win32/resouce.c (gettimeofday): New.
16959 * libc/sys/win32/syscalls.c (path_to_real_path): New.
16960 * libc/sys/win32/syscalls.h (include/wincon.h): Don't include.
16961
16962Wed Oct 4 13:10:35 1995 Doug Evans <dje@canuck.cygnus.com>
16963
16964 * libc/sys/win32/dirsearch.c (opendir): stat real path name.
16965 Don't append "/*" to search pattern if trailing '/' already there,
16966 append "*".
16967 * libc/sys/win32/spawn.c (_spawn): CreateProcess doesn't seem to
16968 like /'s, convert them to \'s. Handle //<drive>/ path names.
16969 Add space for quoted \'s in arg string. Print translated prog name
16970 and original prog name.
16971 (_execve): Handle parent doing exec a teensy bit better.
16972 * libc/sys/win32/syscalls.h (__path_to_real_path): Update prototype.
16973 * libc/sys/win32/syscalls.c (__path_to_real_path): Don't assume
16974 path needs conversion, handle both cases. Delete `const' from result.
16975 (hash_path_name): New function.
16976 (_open): Call it.
16977 (_stat): Likewise. Fill in more fields for directories.
16978 * libc/sys/win32/wait.c (_wait): Explicitly pass -1 to waitpid.
16979 (wait_for_any): Fix trace message.
16980 (waitpid): Explicitly test for intpid == 0.
16981
16982 From anders.blomdell@control.lth.se (Anders Blomdell)
16983 * libc/sys/win32/spawn.c (__vfork_get_empty_entry): zero fill result
16984 so `next' is valid.
16985
16986Sat Sep 30 15:00:15 1995 Jason Molenda (crash@phyeaux.cygnus.com)
16987
16988 * libc/sys/win32/spawn.c (_spawn): Make quoting rules more
16989 complicated.
16990
16991Sat Sep 30 10:25:57 1995 Jason Molenda (crash@phydeaux.cygnus.com)
16992
ba3ccd63
EB
16993 * libc/include/_ansi.h: set _HAVE_STDC if __STDC__ is defined
16994 at all, not just == 1.
16995 * libm/math/wf_acos.c (acosf): check for _HAVE_STDC, not __STDC__.
8a0efa53
CF
16996
16997Sat Sep 30 04:30:09 1995 Jason Molenda (crash@phydeaux.cygnus.com)
16998
ba3ccd63
EB
16999 * libc/sys/win32/include/winbase.h: include <wintypes.h> and <winnt.h>
17000 * libc/sys/win32/include/wintypes.h: include <winnt.h>
17001 * libc/sys/win32/include/winnt.h: avoid multiple inclusion of this
17002 file.
8a0efa53
CF
17003
17004Fri Sep 29 01:49:17 1995 steve chamberlain <sac@slash.cygnus.com>
17005
17006 * libc/sys/syscalls.c (getcwd): Fix off by one error.
17007
17008 * libc/sys/signal.c (sleep): Fill it in.
17009 * libc/sys/termios.c (tcflush): Use PurgeComm
17010 (tcsetattr): Set some more of the bits.
17011 * libc/sys/include/winkernel.h: Add PurgeComm and Sleep.
17012
17013Fri Sep 29 04:33:53 1995 Doug Evans <dje@deneb.cygnus.com>
17014
17015 * libc/sys/arm/crt0.S (fp): Initialize to 0.
17016 Conditionally include .idata$3 stuff ifdef __pe__.
17017
17018Fri Sep 29 01:49:17 1995 steve chamberlain <sac@slash.cygnus.com>
17019
17020 * libc/sys/win32/crt0.c (hmap_init): Call __init_hinfo.
17021 * libc/sys/win32/pipe.c (pipe): Ditto.
17022 * libc/sys/win32/syscalls.c (__read): Use new vtime and vmin fields.
17023 * libc/sys/win32/syscalls.h (hinfo): vtime, vmin are new.
17024 * libc/sys/win32/termios.c (tcsetattr): Init new fields.
17025 (tcgetattr): Contents are new.
17026 * libc/sys/win32/include/winkernel.h (DCB): New.
17027 (GetCommState, SetCommState): New.
17028
17029Thu Sep 28 16:29:09 1995 Doug Evans <dje@deneb.cygnus.com>
17030
17031 * libc/sys/arm/crt0.S (_start): Define.
17032
17033Thu Sep 28 12:26:45 1995 steve chamberlain <sac@slash.cygnus.com>
17034
17035 * libc/sys/arm/crt0.S: Move stack to top of RAM on PIE board.
17036 * libc/sys/arm/syscalls.c (_read, _write): Use the SWI properly.
17037
17038 * libc/sys/win32/sysconf.c: New
17039 * libc/sys/win32/sys/winadvapi.h: New
17040 * libc/sys/win32/syscalls.h (hinfo): Added timeout_len, w_binary, r_binary.
17041 * libc/sys/win32/crt0.c (hmap_init): Initialize new fields.
17042 * libc/sys/win32/pipe.c (pipe): Ditto.
17043 * libc/sys/win32/signal.c (_raise): New.
17044 (_kill): Moved from spawn.c
17045 * libc/sys/win32/spawn.c (kill): Moved to signal.c
17046 * libc/sys/win32/syscalls.c (__read): Use new fields.
17047 (_open): Ditto.
17048 * libc/sys/win32/termios.c (tcflush, tcsetattr, tcgetattr): Fill in.
17049 * libc/sys/win32/exceptions.c (__stack_trace): Keep going for longer.
17050 * libc/include/sys/unistd.h (rmdir): Takes const path.
17051 * libc/include/sys/stat.h (mkdir): Takes const path.
17052 * libc/include/sys/signal.h (SIGTTOU, SIGTTIN): New for win32.
17053
17054Thu Sep 28 10:11:27 1995 Doug Evans <dje@canuck.cygnus.com>
17055
17056 * libc/sys/win32/spawn.c (_spawn): Fix quoting.
17057
17058 Add support for specifying paths as //<drive>/foo/bar.
17059 * libc/sys/win32/syscalls.h (__path_needs_conversion_p): Declare.
17060 (__path_to_real_path): Declare.
17061 (PATH_TO_REAL_PATH): New macro.
17062 * libc/sys/win32/syscalls.c (__win32_pid_to_posix_pid): Minor cleanup.
17063 (__path_needs_conversion_p, __path_to_real_path): New functions.
17064 (_open): Fix test for error return from CreateFileA.
17065 Handle new path syntax.
17066 (_link, mkdir, rmdir, getcwd, chdir, stat): Handle new path syntax.
17067 * libc/sys/win32/dirsearch.c (opendir): Likewise.
17068
17069Wed Sep 27 16:36:46 1995 steve chamberlain <sac@slash.cygnus.com>
17070
17071 * libc/sys/win32/include/*.h: Reorganized
17072 * libc/sys/win32/include/WINREADME: New.
17073 * libc/sys/win32/Makefile.in (DLLS): Build version.a.
17074 * libc/sys/win32/*.c: Fix for new include scheme.
17075 * libc/sys/win32/crt0.c (__this_uinfo_buf, __this_uinfo): New.
17076 * libc/sys/win32/getlogin.c (getlogin): Use uinfo.
17077 * libc/sys/win32/passwd.c (*): Fix.
17078 * libc/sys/win32/syscalls.c (get[e|][g|u]id): Use passwd info.
17079 (_stat): Get directory owner and permissions right.
17080 * libc/sys/win32/syscalls.h (uinfo): New.
17081 * libc/sys/win32/version.def: Remove leading underscores.
17082
17083Tue Sep 26 18:18:47 1995 Jason Molenda (crash@phydeaux.cygnus.com)
17084
17085 * libc/sys/win32/key.c: include "include/wincon.h".
17086
17087Tue Sep 26 07:21:48 1995 steve chamberlain <sac@slash.cygnus.com>
17088
17089 * libc/sys/win32/{key, stubs}.c: New.
17090 * libc/sys/win32/Makefile: Adjust to cope.
17091 * libc/sys/win32/crt0.c (vfork_init_first): Cope with -ve pids.
17092 (environ_init): Change env names to upper case.
17093 * libc/sys/win32/dirsearch.c (readdir): Don't fill in inode number.
17094 * libc/sys/win32/passwd.c (*): Fill in the functions.
17095 * libc/sys/win32/pipe.c (_fcntl): F_GETFL returns O_RDWR.
17096 * libc/sys/win32/spawn.c (_spawn): Cope with -ve pids.
17097 * libc/sys/win32/syscalls.c (__win32_pid_to_posix_pid): New function.
17098 (_open): Initialze hmap->execable_p too.
17099 * libc/sys/win32/syscalls.c (getuid, getgid, geteuid, getegid): Return from macros.
17100 (_fstat): Fill in permissions.
17101 * libc/sys/win32/syscalls.h (hinfo): Add execable_p.
17102
17103Fri Sep 22 13:47:27 1995 Doug Evans <dje@canuck.cygnus.com>
17104
17105 * configure.in (cfg-ml-com.in invocation): Use ${with_multilib_top}
17106 if defined.
17107 (cfg-ml-pos.in invocation): Likewise.
17108
17109Fri Sep 22 11:43:44 1995 J.T. Conklin <jtc@rtl.cygnus.com>
17110
17111 * Makefile.in (MATHOBJS_IN_LIBC): Added s_isinf.o, sf_isinf.o,
17112 s_isnan.o and sf_isnan.o.
17113
17114Wed Sep 20 14:50:19 1995 Ian Lance Taylor <ian@cygnus.com>
17115
17116 * All Makefile.in files: added maintainer-clean target as a
17117 synonym for realclean.
17118
17119Wed Sep 20 11:02:50 1995 Jeff Law (law@snake.cs.utah.edu)
17120
17121 * libc/include/machine/setjmp.h: Add hppa support.
17122 * libc/machine/hppa/setjmp.S: New file with setjmp/longjmp
17123 support.
17124 * libc/machine/hppa/Makefile.in: Related changes.
17125
17126Tue Sep 19 12:09:01 1995 J.T. Conklin <jtc@blues.cygnus.com>
17127
17128 * configure.in (machine_dir): Don't set for v810-*-*.
17129
17130Fri Sep 15 20:22:08 1995 Jason Molenda (crash@phydeaux.cygnus.com)
17131
17132 * libc/sys/win32/crt0.c (passover): Change to handle MKS quoting
17133 conventions correctly.
17134
17135Thu Sep 14 13:37:22 1995 J.T. Conklin <jtc@blues.cygnus.com>
17136
17137 * libc/stdio/puts.c: Update documentation of return value to match
17138 ANSI standard.
17139
17140Thu Sep 14 01:52:37 1995 Doug Evans <dje@canuck.cygnus.com>
17141
17142 Fix file descriptor inheritance.
17143 * libc/sys/win32/syscalls.h (CHILD_P): Define again.
17144 (NOT_OPEN_FD): Fix.
17145 * libc/sys/win32/spawn.c (vfork0): Only create inheritable handle if
17146 close-on-exec flag not set. Initialize child's entire fd table.
17147 * libc/sys/win32/syscalls.c (_open): Only create inheritable handle if
17148 CHILD_P.
17149 * libc/sys/win32/pipe.c (pipe): Only create new handle as inheritable
17150 if CHILD_P. Initialize entire hmap entry.
17151 (dup): Only create new handle as inheritable if CHILD_P.
17152 (dup2): Likewise. Properly initialize hmap entry.
17153
17154 * libc/sys/win32/spawn.c (_execve): Don't pass _P_SEARCH_PATH to
17155 _spawn.
17156 (_exit): Use CHILD_P.
17157 * libc/sys/win32/syscalls.c (_fstat): Fix call to memset.
17158 (_stat): Likewise.
17159
17160Mon Sep 11 23:09:39 1995 Jason Molenda (crash@phydeaux.cygnus.com)
17161
17162 * libc/sys/win32/crt0.c (passover): fix up the state table.
17163 * libc/posix/popen.c: Added.
17164 * libc/posix/Makefile.in: compile popen.c.
17c0c97d 17165
8a0efa53
CF
17166Mon Sep 11 11:43:38 1995 J.T. Conklin <jtc@cygnus.com>
17167
17168 * libc/include/machine/ieeefp.h: On the h8/300, h8/300h and
17169 h8/500 define _DOUBLE_IS_32BITS.
17170
17171Sat Sep 9 17:55:54 1995 Doug Evans <dje@canuck.cygnus.com>
17172
17173 Get vfork/exec/spawn/cwait/wait working again.
17174 * libc/sys/win32/syscalls.h (VFORK_NEWBORN_PSEUDO_PID): Define.
17175 (procinfo): New member vfork_level.
17176 * libc/sys/win32/crt0.c (__vfork_next_pid): Delete.
17177 (vfork_init_first): Use GetCurrentProcessId to get pid.
17178 Initialize vfork_level.
17179 (vfork_init): Delete __PID__.
17180 (environ_init): New function. Undo patch of Aug 19, Posix says
17181 environment variables are case sensitive.
17182 (mainCRTStartup): Call it.
17183 * libc/sys/win32/spawn.c (__vfork_next_pid): Delete.
17184 (my_longjump: Make static.
17185 (_spawn): New argument `h'. Delete setting of __PID__.
17186 Delete local `idx'. Look for chars that need quotes, rather than
17187 ones that don't. Set handle of created process in `h'.
17188 Result is process id if created task.
17189 (allocate_spawn_entry): New function.
17190 (spawnvp, spawnv): Call it. Store handle and pid in procinfo entry.
17191 (_execve): Set __FD_TABLE__ before spawning child.
17192 Scan our fd table when passing fds, not our parent's.
17193 Store handle and pid in procinfo entry.
17194 (vfork0): Ensure strace message always printed.
17195 Set child pid to VFORK_NEWBORN_PSEUDO_PID.
17196 (vfork): Don't clobber result of vfork0.
17197 * libc/sys/win32/wait.c (cwait): Fix non-error result (is pid).
17198 (wait_for_any): Ignore processes in state FORK_STATE_VFORK_0.
17199
17200 * libc/sys/win32/syscalls.h (procinfo): New members `handle_valid_p'
17201 and `exit_code'.
17202 * libc/sys/win32/spawn.c (allocate_spawn_entry): Initialize them.
17203 (vfork0): Likewise. Distinguish children, grandchildren, etc. by
17c0c97d 17204 adding vfork level to pseudo-pid.
8a0efa53
CF
17205 (vfork1): If not root, set state back to FORK_STATE_VFORK_0.
17206 (spawnvp, spawnv, _execve): Set handle_valid_p if success.
17207 (_exit): If child, set exit code.
17208 (__vfork_record_death): Only close process handle if valid.
17209 * libc/sys/win32/wait.c (wait_for_single): Watch for children that
17210 didn't exec.
17211 (wait_for_any): Likewise. Start scan after root entry.
17212
17213Fri Sep 8 18:48:02 1995 Jason Molenda (crash@phydeaux.cygnus.com)
17214
17215 * libc/include/sys/types.h (off_t): off_t back to 32 bits.
17216 * libc/include/sys/_types.h (_off_t): _off_t back to 32 bits.
17217 * libc/sys/win32/syscalls.c (_fstat): st_size is lower 32-bits
17218 of actual file length.
17219
17220 * libc/sys/win32/sys/wait.h: include <sys/types.h>.
17221 * libc/include/paths.h: _PATH_BSHELL added.
17222 * libc/include/sys/unistd.h: define STDIN_FILENO, STDOUT_FILENO,
17223 and STDERR_FILENO.
17224
17225Thu Sep 7 21:02:22 1995 Jason Molenda (crash@phydeaux.cygnus.com)
17226
17227 * libc/include/ar.h: Added.
17228 * libc/include/sys/types.h: ino_t goes back to 32-bits.
17229 * libc/sys/win32/syscalls.h (hinfo): added .namehash field.
17230 * libc/sys/win32/syscalls.c (_open): compute .namehash based
17231 on filename.
17232 (_fstat): use .namehash for inode number of the fd.
17233
17234Thu Sep 7 12:57:19 1995 steve chamberlain <sac@slash.cygnus.com>
17235
17236 * libc/sys/win32/{console,ioctl,pipe,spawn,syscalls,wait}.? (*):
17237 Change hinfo to __this_procinfo.
17238 * libc/sys/win32/crt0.c: Remove procinfo_list.
17239
17240Wed Sep 6 18:38:26 1995 Jason Molenda (crash@phydeaux.cygnus.com)
17241
17242 * libc/include/sys/types.h (ino_t): Define ino_t correctly for
17243 win32 environment.
17244
17245Wed Sep 6 18:09:29 1995 Jason Molenda (crash@phydeaux.cygnus.com)
17246
17247 * libc/sys/win32/include/grp.h: Removed.
17248 * libc/sys/include/grp.h: Added.
17249 * libc/sys/win32/grp.c: Include <grp.h>.
17250
17251Wed Sep 6 16:52:48 1995 steve chamberlain <sac@slash.cygnus.com>
17252
17253 * libc/include/sys/signal.h (__need_MAX_SIGNALS): Removed.
17254 (sigset_t, sigaction, SIG_SETMASK, SIG_BLOCK, SIG_UNBLOCK):
17255 Defined for all but strict ANSI.
17256 * libc/include/sys/reent.h (__need_MAX_SIGNALS): Removed.
17257 * libc/include/machine/setjmp.h: Get win32 _JBLEN right.
17258 * libc/signal/signal.c (_signal_r): Changed from using
17c0c97d 17259 _MAX_SIGNALS to NSIG.
8a0efa53
CF
17260 * libc/sys/win32/crt0.c (__current_pid, __parent_hmap, __child_hmap,
17261 __hmap): Deleted.
17262 (__strace, __vfork_next_pid): New.
17263 (__exe_suffix): Default to 1.
17264 (passover, table): Understand quoted arguments.
17265 (vfork_init_first): New.
17266 (vfork_init): Initialize new process structure.
17267 (mainCRTStartup): Pass environ to main.
17268 * exceptions.c (__sig_mask): New
17269 (ehandler3): Ignore signals in mask.
17270 (really_exit): Remove CHILD_P test.
17271 * pipe.c (pipe, dup, dup2): Use new process and file structure.
17272 * resource.c (getrusage): Ditto.
17273 * signal.c (sigprocmask): New.
17274 * spawn.c (*): Rewritten.
17275 * syscalls.c (*): Use new process and file structure.
17276 (find_unused_handle): New.
17277 * syscalls.h (MAX_HANDLES): Deleted.
17278 (hinfo): Removed child_created_p.
17279 (MAX_CHILDREN): Deleted.
17280 (vfork_jmp_info, procinfo): New.
17281 * wait.c (*): Mostly new.
17282 * sys/strace.h (_STRACE_PARANOID): New.
17283 * sys/param.h: New file.
17284
17285Wed Sep 6 17:03:53 1995 Jason Molenda (crash@phydeaux.cygnus.com)
17286
ba3ccd63
EB
17287 * libc/include/sys/stat.h: add S_BLKSIZE.
17288 * libc/include/sys/_types.h: _off_t is a 64-bit type under win32.
17289 * libc/include/sys/types.h: define off_t and ino_t to be 64 bit
17290 types under win32.
17291 (mode_t): add a #else to avoid multiple definitons.
8a0efa53 17292
ba3ccd63
EB
17293 * libc/sys/win32/Makefile.in: add grp.c.
17294 * libc/sys/win32/grp.c: include grp.h correctly.
17295 * libc/sys/win32/syscalls.c (_fstat): set almost all of the fields
17296 of the st structure with real information.
17297 * libc/sys/win32 (dirent): d_ino is of type ino_t.
8a0efa53
CF
17298
17299Wed Sep 6 10:41:34 1995 Doug Evans <dje@canuck.cygnus.com>
17300
17301 * libc/include/sys/types.h (mode_t): Correct for svr4 sparc's
17302 and (maybe) sparc64.
17303 (nlink_t): Provide typedef.
17304
17305Tue Sep 5 18:46:05 1995 Jason Molenda (crash@phydeaux.cygnus.com)
17306
17307 * libc/sys/win32/grp.c: New file.
17308 * libc/sys/win32/include/grp.h: New file.
17309
17310Tue Sep 5 13:47:27 1995 J.T. Conklin <jtc@rtl.cygnus.com>
17311
17312 * libc/include/machine/ieeefp.h: Added whitespace to make this
17313 file easier to maintain.
17314 On the sh, define either __IEEE_BIG_ENDIAN or __IEEE_LITTLE_ENDIAN
17315 depending on the value of __LITTLE_ENDIAN__.
17316 On the sh3e, define _DOUBLE_IS_32BITS.
17c0c97d 17317
8a0efa53
CF
17318Fri Sep 1 15:35:18 1995 James G. Smith <jsmith@beauty.cygnus.com>
17319
17320 * libc/sys/vr4300/syscalls.c: Added missing support
17c0c97d 17321 routines. _raise() and getpid().
8a0efa53
CF
17322
17323Fri Sep 1 14:12:48 1995 James G. Smith <jsmith@rtl.cygnus.com>
17324
17325 * configure.in (mips*vr4300*-*-elf): Fixed silly mistake
17326
17327Fri Sep 1 08:42:11 1995 James G. Smith <jsmith@beauty.cygnus.com>
17328
17329 * configure.in (mips*vr4300*-idt-*) Add support for RISQ monitor
ba3ccd63 17330 and VR4300 processor.
8a0efa53
CF
17331 * libc/sys/vr4300: Add directory.
17332 * libc/sys/vr4300/{Makefile.in, crt0.S, syscalls.c}: Add SIM
17c0c97d 17333 monitor run-time support.
8a0efa53
CF
17334
17335Thu Aug 31 09:16:52 1995 J.T. Conklin <jtc@rtl.cygnus.com>
17336
17337 * libc/stdlib/Makefile.in (CHEWOUT_FILES): Removed atol.def.
17338 * libc/stdlib/stdlib.tex: Don't include atol.def.
17339
17340Wed Aug 30 20:38:28 1995 Jason Molenda (crash@phydeaux.cygnus.com)
17341
17342 * libc/sys/win32/uname.c (uname): hardcode processor as `i386'.
17343
17344Wed Aug 30 10:48:08 1995 steve chamberlain <sac@slash.cygnus.com>
17345
17346 * libc/ctype/Makefile.in: Fill in _to* dependencies.
17347
17348Tue Aug 29 17:14:29 1995 steve chamberlain <sac@slash.cygnus.com>
17349
17350 * libc/sys/win32/{dirsearch.c,sys/dirent.h}: Fix namespace problems.
17351 * libc/sys/win32/sys/dirent.h (struct dirent): Added d_ino.
17352 * libc/sys/win32/strace.c (__sys_printf): Increase size of buffer.
17353 * libc/sys/win32/smallprint.c (__small_vsprintf): Remove debug.
17354 * libc/sys/win32/dirsearch.c (readdir): Set d_ino.
17355
17356Tue Aug 29 19:00:09 1995 Jason Molenda (crash@phydeaux.cygnus.com)
17357
17358 * libc/stdlib/atol.c (atol): DEFUN -> _DEFUN.
17359
17360Tue Aug 29 16:08:09 1995 J.T. Conklin <jtc@rtl.cygnus.com>
17361
17362 * libc/stdlib/Makefile.in (OFILES): Added atoff.o and atol.o.
17363 * libc/stdlib/atoff.c: New file.
17364 * libc/stdlib/atof.c (atoff): Moved to atoff.c.
17365 * libc/stdlib/atoi.c (atol): Removed.
17366 * libc/stdlib/atol.c: Removed duplicate documentation.
17367
17368 * libc/include/ctype.h (_tolower, _toupper): Moved inside
17369 #ifndef _STRICT_ANSI conditional.
17370 * libc/ctype/Makefile.in (OFILES): Added _tolower.o and _toupper.o
17371 * libc/ctype/_tolower.c: New file.
17372 * libc/ctype/_toupper.c: New file.
17373 * libc/ctype/tolower.c (_tolower): Moved to _tolower.c.
17374 * libc/ctype/toupper.c (_toupper): Moved to _toupper.c.
17375 * libc/ctype/toascii.c (_toascii): Removed.
17376
17377Tue Aug 29 12:17:32 1995 Doug Evans <dje@canuck.cygnus.com>
17378
17379 * libc/sys/sparc64/sys/types.h: Deleted.
17380
17381Mon Aug 28 22:06:08 1995 Jason Molenda (crash@phydeaux.cygnus.com)
17382
17383 * libc/sys/win32/uname.c (uname): change `Windows/NT' to `Windows_NT'
17384 and recognize Windows_95 systems.
17385
17386Mon Aug 28 19:50:54 1995 Jason Molenda (crash@phydeaux.cygnus.com)
17387
17388 * libc/sys/win32/crt0.c (vfork_init, hmap_init): standard I/O fds
17389 and passed fds should be opened in text mode.
17390
17391Mon Aug 28 18:51:22 1995 Jason Molenda (crash@phydeaux.cygnus.com)
17392
17393 * libc/sys/win32/crt0.c (vfork_init): mark passed fds as used
17394 in __hmap, set to binary mode by default.
17395
17396Tue Aug 22 14:12:37 1995 J.T. Conklin <jtc@rtl.cygnus.com>
17397
17398 * libc/sys/sh/syscalls.c: Updated all functions to call __trap34.
17399 * libc/sys/sh/trap.S (__trap34): Renamed from __trap3. Use trap
17400 vector 34.
17401
17402Sat Aug 19 18:25:37 1995 steve chamberlain <sac@slash.cygnus.com>
17403
17404 * Makefile.in (install): Install all libraries found in the
17405 top level. If there's a sys/<type>/include directory,
17406 install those headers into include.
17407
17408 * libc/sys/win32/kernel.def351: Delete
17409 * libc/sys/win32/{comctl32.def, comdlg32.def, ctl3d32.def,
17410 glaux.def, glu32.def, largeint.def, libc.def, libcmt.def,
17411 lz32.def, mgmtapi.def, mpr.def, msacm32.def, msvcrt.def,
17412 nddeapi.def, netapi32.def, odbc32.def, odbccp32.def, oldnames.def,
17413 ole32.def, oleaut32.def, opengl32.def, rasapi32.def, rpcndr.def,
17414 rpcns4.def, rpcrt4.def, scrnsave.def, shell32.def, snmp.def,
17415 uuid.def, vdmdbg.def, version.def, vfw32.def, win32spl.def,
17416 winmm.def, winspool.def, winstrm.def, wsock32.def}: New.
17417
17418 * libc/sys/win32/Makefile.in: Update for new files and new dlltool options.
17419 * libc/sys/win32/crt0.c: Force all env names to upper case.
17420 * libc/sys/win32/sys/win*.h -> libc/sys/win32/include
17421 * libc/sys/win32/*.c: Headers have moved.
17422 * libs/sys/win32/*.[ch]: Test for open_p rather than BAD_HANDLE,
17423 __vfork_child_idx is now __vfork_child_ptr.
17424
17425 * posix/execvp (execvp): Don't crash if no PATH envname.
17426
17427Fri Aug 18 12:22:59 1995 J.T. Conklin <jtc@rtl.cygnus.com>
17428
17429 * libc/include/sys/reent.h (_Bigint): Removed _reclaim field.
17430 * libc/reent/reent.c (_reclaim_reent): Free Bigint's by going
17431 through the _freelist instead of through the _reclaim list.
17432 * libc/stdlib/mprec.c (_Balloc): Don't put new node on _reclaim list.
17433 * libc/stdlib/mprec.c (_Bcopy): Make like version in master dtoa.c
17434 sources.
17435
17436Thu Aug 17 11:03:27 1995 J.T. Conklin <jtc@rtl.cygnus.com>
17437
17438 * libc/machine/h8500/setjmp.S: New file.
17439 * libc/include/machine/setjmp.h: Updated for H8/500.
17440
17441Wed Aug 16 16:19:11 1995 steve chamberlain <sac@slash.cygnus.com>
17442
17443 * libc/sys/win32/syscalls.c (_open): More stracing.
17444 (_stat): Open the file in O_BINARY.
17445
17446Wed Aug 16 15:49:01 1995 J.T. Conklin <jtc@rtl.cygnus.com>
17447
17448 * libc/machine/h8300/setjmp.S: New file.
17449 * libc/include/machine/setjmp.h: Updated for H8/300 and H8/300H.
17450
17451Tue Aug 15 10:31:09 1995 Doug Evans <dje@canuck.cygnus.com>
17452
17453 * libc/sys/win32/crt0.c (__exe_suffix): New global.
17454 (mainCRTStartup): Set __exe_suffix from LIBC_EXE_SUFFIX.
17455 * libc/sys/win32/spawn.c (_spawn): Add .exe suffix based on
17456 __exe_suffix. Free fd_tab after setting env variable.
17457 (spawnv,_execve): Update.
17458 * libc/sys/win32/syscalls.h (__exe_suffix): Declare.
17459 * libc/sys/win32/smallprint.c (puts,putn): New (static) functions.
17460 (__small_vfprintf): New function.
17461 * libc/sys/win32/strace.c (__sys_printf): Call __small_vfprintf.
17462 * libc/sys/win32/wait.c (cwait): Validate argument.
17463
17464 * libc/sys/win32/syscalls.c (queue_file_deletion): Add trace message.
17465 (process_deletion_queue): Likewise.
17466
17467 * libc/sys/win32/Makefile.in (lib.a): Don't call $(RANLIB).
17468
17469Mon Aug 14 10:14:10 1995 steve chamberlain <sac@slash.cygnus.com>
17470
17471 * libc/sys/win32: Copyrights and gratuitous indenting.
17472
17473Mon Aug 14 01:32:58 1995 Doug Evans <dje@canuck.cygnus.com>
17474
17475 * libc/sys/win32/syscalls.c (queue_file_deletion): Finish.
17476 (process_deletion_queue): Likewise.
17477 (__close_all_files): New function.
17478 (_close): Only queue file deletion if really a file.
17479 * libc/sys/win32/spawn.c (_spawn): Only ensure .exe suffix if
17480 _P_APPEND_EXE.
17481 (_exit): Call __close_all_files.
17482
17483 * libc/stdlib/system.c: #include <errno.h>.
17484 (_system_r): Fix results in -DNO_EXEC case.
17485
17486 * libc/sys/win32/sys/dirent.h (DIR): New member __d_dirname.
17487 Reorganize structure.
17488 * libc/sys/win32/dirsearch.c (opendir): Use stat to determine
17489 if argument is valid. Save directory name in DIR. malloc space
17490 for dirent struct separately.
17491 * libc/sys/win32/syscalls.c (stat): Fix test for directory.
17492
17493 * libc/include/errno.h (ENAMETOOLONG): Define.
17494 * libc/string/strerror.c (strerror): Reword ENFILE.
17495 Add ENOSYS, ENMFILE, ENOTEMPTY, ENAMETOOLONG.
17496
17497Sun Aug 13 22:42:25 1995 Doug Evans <dje@canuck.cygnus.com>
17498
17499 * libc/sys/win32/crt0.c (__progname): New global.
17500 (mainCRTStartup): Support strace=bitmask,filename.
17501 * libc/sys/win32/dirsearch.c (all fns): Add trace messages.
17502 * libc/sys/win32/syscalls.c (_write): Print parent trace message
17503 if error.
17504 (getcwd): Handle len too small. Convert '\\' to '/'.
17505 * libc/sys/win32/sys/fcntl.h (O_RDWR): = O_RDONLY|O_WRONLY.
17506 Add prototypes for open, creat, fcntl.
17507 (O_APPEND): Change value to conform to Microsoft's value.
17508 * libc/sys/win32/sys/strace.h (_STRACE): Protect in do/while.
17509
17510 * libc/stdlib/getopt.c: New file.
17511 * libc/stdlib/Makefile.in: Build it.
17512
17513Sat Aug 12 12:17:14 1995 Doug Evans <dje@canuck.cygnus.com>
17514
17515 * libc/posix/execvp.c (execvp): Watch for DOS drives ifdef _WIN32.
17516 Fix scanning of $PATH.
17517 * libc/posix/exec*.c: Call _execve, not execve.
17518 * libc/posix/execve.c: New file.
17519 * libc/posix/Makefile.in (OFILES): Add execve.o.
17520
17521 * libc/sys/win32/sys/strace.h (_STRACE_ALL, _STRACE_UHOH,
17522 _STRACE_STARTUP, _STRACE_SYSCALL): More bit masks of things to trace.
17523 (_STRACE): If level==0, always print. Handle new bit mask scheme.
17524 * libc/sys/win32/crt0.c: Update _STRACE calls.
17525 * libc/sys/win32/{pipe.c,resource.c,spawn.c,syscalls.c,wait.c}: Ditto.
17526
17527 * libc/sys/win32/smallprint.c (rn): Fix digit list.
17528
17529 * libc/sys/win32/syscalls.c (__really_exit): Move from here,
17530 * libc/sys/win32/exceptions.c (really_exit): to here. Avoid recursion.
17531 * libc/sys/win32/spawn.c (spawnvp): Pass `prog' as image name.
17532 Print __seterrno trace message first.
17533 (_execve): Renamed from execve.
17534 (vfork): Update __strace usage.
17535 (__vfork_child_pid): Deleted.
17536 (__vfork_children, __vfork_child_idx): New globals.
17537 (_spawnvp): New function.
17538 (spawnvp, spawnv, _execve): Call _spawnvp.
17539 (init_child): Record child in __vfork_children.
17540 (__vfork_get_entry, __vfork_record_death): New functions.
17541 * libc/sys/win32/crt0.c (mainCRTStartup): Initialize __vfork_children.
17542 * libc/sys/win32/kernel32.def (WaitForMultipleObjects): Define.
17543 * libc/sys/win32/syscalls.h (CHILD_P): New macro. All files updated.
17544 (MAX_CHILDREN, CHILD_INTERIM_PID): Define.
17545 (children): New typedef.
17546 (__vfork_children,__vfork_child_idx): Declare.
17547 (__vfork_get_entry,__vfork_record_death): Declare.
17548 * libc/sys/win32/wait.c (wait_for_single,wait_for_any): New functions.
17549 (waitpid): Handle pid == -1.
17550 * libc/sys/win32/sys/wintypes.h (WaitForMultipleObjects): Declare.
17551 * configure.in (i386-win32): Add -DNO_FORK.
17552 * libc/syscalls/sysfork.c (fork): Don't define for NO_FORK.
17553 * libc/reent/execr.c (_fork_r): Likewise.
17554 * libc/stdlib/system.c (do_system): New function.
17555 If WIN32, try to get shell path from $SH_PATH, use vfork.
17556 (_system_r): Return 1 for (s == NULL) if WIN32 or unix,
17557 otherwise return 0.
17558
17559Sat Aug 12 11:08:00 1995 steve chamberlain <sac@slash.cygnus.com>
17560
17561 * libc/stdlib/{mallocr.c, mstats.c}: Move mstats from mallocr to mstats.c.
17562 * libc/sys/win32/fcntl.h: Don't include self.
17563 * libc/sys/win32/sys/strace.h (_STRACE_WM, _strace_wm): New.
17564 * libc/sys/win32/sys/winbase.h: (GetUserName) New.
17565 * libc/sys/win32/sys/wincon.h (HANDLER_ROUTINE): Define correctly.
17566 * libc/sys/win32/sys/wintypes.h (GetFileType, GetCurrentProcess, CloseHandle,
17567 SetFilePointer, CreateFileA, GetFileInformationByHandle, GetStdHandle):
17568 Correct prototypes.
17569 * libc/sys/win32/strace.c: New file.
17570 * libc/sys/win32/smallprint.c: New file.
17571 * libc/sys/win32/crt0.c (func): Delete.
17572 (mainCRTStartup): Fix alloca usage. Set handles explictly.
17573 * libc/sys/win32/dirsearch.c: Clean up handle usage, fix calls to __seterrno.
17574 * libc/sys/win32/exceptions.c: Lint.
17575 * libc/sys/win32/{ioctl.c, pipe.c, resource.c, spawn.c, cwait.c, syscalls.c}:
17576 Clean up handle usage.
17577 * libc/sys/win32/syscalls.c (__sys_printf): Moved into strace.c
17578 (open.c): Default file type is text.
17579 * libc/sys/win32/uname.c (uname): Use __small_sprintf.
17c0c97d 17580 * libc/sys/win32/advapi32.def: New
8a0efa53
CF
17581
17582Fri Aug 11 17:11:52 1995 Doug Evans <dje@canuck.cygnus.com>
17583
17584 * configure.in (posix_dir, libc_posix_lib): New variables.
17585 Define LIBC_POSIX_LIB in makefile to be $libc_posix_lib.
17586 (i[345]86-*-win32): Define posix_dir.
17587 Delete -DNO_EXEC. Define -DHAVE_OPENDIR.
17588 (if unix_dir): Fix typo.
17589 * libc/posix/{Makefile.in,closedir,opendir,readdir,rewinddir,
17590 scandir,seekdir,telldir}: New files.
17591 * libc/posix/{execl.c,execle.c,execlp.c,execv.c,execvp.c}: Move here
17592 from libc/unix.
17593 * libc/Makefile.in (LIBC_POSIX_LIB): Define.
17594 (SUBDIRS): Add posix.
17595 (SUBLIBS): Add $(LIBC_POSIX_LIB).
17596
17597 * libc/include/sys/signal.h (SIGCHLD): Add for _WIN32.
17598 (NSIG): Increase to 21.
17599 * libc/include/sys/unistd.h (pid_t): Move from here,
17600 * libc/include/sys/types.h (pid_t): to here.
17601
17602 * libc/sys/win32/syscalls.h: #include "sys/strace.h".
17603 (__ptrace): Delete.
17604 (hinfo): New members close_exec_p, child_created_p.
17605 (struct exception_list): Define.
17606 (__hmap): Redefine as pointer to table.
17607 (__parent_hmap, __child_hmap): New globals.
17608 (__set_errno, __really_exit): Declare.
17609 (__vfork_child_pid): Declare.
17610 * libc/sys/win32/crt0.c (__strace, __trace_file): New global.
17611 (__orig_stdin, __orig_stdout, __orig_stderr): New globals.
17612 (__parent_hmap, __child_hmap): New globals.
17613 (__hmap): Redefine as pointer to active map.
17614 (__get_console): New function.
17615 (mainCRTStartup): Change leading '=' in environ vars to '!'.
17616 (env __FD_TABLE__): Watch for this and initialize our fd/handle
17617 mapping table from it if defined.
17618 (argv, envp): Dump if __strace >= 4.
17619 (main): Call here.
17620 * libc/sys/win32/exceptions.c (myp): Redefine.
17621 (__syscalls_b): Delete.
17622 (__stack_trace): New function.
17623 (ehandler3): Update to use _STRACE. Print stack trace.
17624 Call __really_exit instead of exit.
17625 (init_exceptions): Delete args argc,argv. New arg mine.
17626 * libc/sys/win32/kernel32.def (CreatePipe, DuplicateHandle, FindClose,
17627 FindFirstFileA, FindNextFileA, GetComputerNameA,
17628 GetEnvironmentVariableA, ReadFile, SetEnvironmentVariableA): Define.
17629 * libc/sys/win32/signal.c (signal): Validate arg.
17630 (alarm, sleep): Define as stubs for now.
17631 * libc/sys/win32/syscalls.c (all fns): Update to use _STRACE.
17632 (__syscalls_b, errno): Delete.
17633 (__vfork_child_pid, __vfork_jmp_buf): New globals.
17634 (__seterrno): Handle more errors.
17635 (__sys_printf): Renamed from _ptrace.
17636 (__really_exit): New function.
17637 (queue_file_deletion, process_deletion_queue): New functions.
17638 (__resume_parent): New function.
17639 (_unlink): Handle trying to delete open file.
17640 (__totime_t): Renamed from totime_t.
17641 (setsid, __read, __write): New functions.
17642 (cwait, spawnvp, R, D, getrusage, _execve, _fork, _wait): Delete.
17643 * libc/sys/win32/{dirsearch.c,getlogin.c,misc.c,resource.c,passwd.c,
17644 times.c,spawn.c,pipe.c,wait.c,termios.c,ioctl.c,uname.c}: New files.
17645 * libc/sys/win32/console.c: Update to new definition of __hmap.
17646 * libc/sys/win32/Makefile.in: Build new files.
17647 * libc/sys/win32/sys/{dirent.h,winerror.h,wait.h,termios.h}: New files.
17648 * libc/sys/win32/sys/{ioctl.h,utsname.h}: New files.
17649 * libc/sys/win32/sys/strace.h: Renamed from ptrace.h.
17650 * libc/sys/win32/sys/wintypes.h (GetCurrentDirectoryA): Fix prototype.
17651
17652Thu Aug 10 16:32:52 1995 Doug Evans <dje@canuck.cygnus.com>
17653
17654 * libc/sys/h8500hms/misc.c (kill): Handle SIGABRT.
17655
17656Thu Aug 10 12:07:38 1995 J.T. Conklin <jtc@rtl.cygnus.com>
17657
17658 * libc/stdlib/{dtoa.c, strtod.c}: Merged assorted changes that
17659 have been made to the master dtoa.c sources (from netlib.att.com)
17660 since they were integrated into newlib in early 1992. Fixes
17661 problems with storage leaks and handling of numbers with very
17662 negative exponents.
17c0c97d 17663
8a0efa53
CF
17664Wed Aug 9 14:18:39 1995 J.T. Conklin <jtc@rtl.cygnus.com>
17665
17666 * Makefile.in (all): set rootpre and srcrootpre before calling
17667 sub-makes.
17668
17669Tue Aug 8 17:20:45 1995 steve chamberlain <sac@slash.cygnus.com>
17670
17671 * libc/sys/win32/crt0.c: Change __hmap usage.
17672 * libc/sys/win32/exceptions.c: Use _ptrace call.
17673 * libc/sys/win32/syscalls.c: Use _ptrace call.
17674 (read, write): Cope with DOS style CRLF when in TEXT mode.
17675 * libc/sys/win32/syscalls.h: Declare hinfo struct.
17676 * libc/sys/win32/user32.def: Get DefWindowProc arg list right.
17677 * libc/sys/win32/sys/fcntl.h, ptrace.h: New.
17678 * libc/sys/win32/sys/windows.h: Fill in rest of messages.
17679 * libc/sys/win32/sys/wintypes.h: Fix attribute syntax.
17680
17681Mon Aug 7 13:04:54 1995 J.T. Conklin <jtc@rtl.cygnus.com>
17682
17683 * libc/include/math.h (cabs, cabsf, drem, dremf): New declarations.
17684
17685 * libm/math/{w_cabs.c, wf_cabs.c, w_drem.c, wf_drem.c}: New files,
17686 wrappers for hypot() and remainder() for BSD libm compatibility.
17687 These are public domain implementations written by me for the
17688 NetBSD libm some time ago. Note cabs() is required by ucbtest.
17689 * libm/math/Makefile.in (obj): Added w_cabs.o and w_drem.o.
17690 (fobj): Added wf_cabs.o and wf_drem.o.
17691
17692Thu Aug 3 08:13:05 1995 J.T. Conklin <jtc@rtl.cygnus.com>
17693
17694 * libc/sys/h8500hms/misc.c: New file.
17695 * libc/sys/h8500hms/Makefile.in (OFILES): Add misc.o.
17696
17697Wed Aug 2 16:46:27 1995 J.T. Conklin <jtc@rtl.cygnus.com>
17698
17699 * libc/time/localtime.c (localtime): Fix problem with leap year
17700 handling. Stole algorithm from Arthur David Olson's tz code.
17c0c97d 17701
8a0efa53
CF
17702Mon Jul 31 10:21:54 1995 steve chamberlain <sac@slash.cygnus.com>
17703
17704 * configure.in: (z8k-*sim): Renamed z8k-*-coff.
17705
17706 * libc/sys/z8ksim/glue.c (_getpid, _kill): New
17707 (_exit): Use argument.
17708
17709Fri Jul 28 15:17:04 1995 Doug Evans <dje@canuck.cygnus.com>
17710
17711 * libc/sys/win32/sys/winbase.h (_WINBASE_H): Define.
17712
17713Wed Jul 26 16:24:19 1995 steve chamberlain <sac@slash.cygnus.com>
17714
17715 * libc/sys/sh/trap.S (perrno): Align correctly. (pr 7532)
17716
17717Mon Jul 24 13:42:52 1995 J.T. Conklin <jtc@rtl.cygnus.com>
17718
17719 * configure.in (sparc*): Add -DMALLOC_ALIGNMENT=8 to
17720 target_cflags.
17721
17722Mon Jul 24 11:42:07 1995 steve chamberlain <sac@slash.cygnus.com>
17723
17724 * libc/sys/win32/crt0.c (mainCRTStartup): Look for
17725 ptrace with case insensitivity
17726 * libc/sys/win32/{user32.def, gdi32.def, exceptions.c, screen.c,
17c0c97d 17727 sys/winbase.h, sys/windows.h, sys/wintypes.h, sys/winuser.h}:
8a0efa53
CF
17728 New files.
17729
17730Fri Jul 21 11:22:26 1995 Doug Evans <dje@canuck.cygnus.com>
17731
17732 * Makefile.in: Multilib support moved to ../cfg-ml-{com,pos}.in.
17733 (MULTITOP, MULTIDIRS, MULTISUBDIR, MULTIDO, MULTICLEAN): New variables.
17734 (all, install, *clean): Use new multilib support.
17735 * configure.in: Multilib support moved to ../cfg-ml-{com,pos}.in.
17736
17737Fri Jul 21 07:11:42 1995 steve chamberlain <sac@slash.cygnus.com>
17738
17739 * libc/include/sys/signal.h (__WIN32__): New.
17740
17741 * configure.in (i386-*-win32): Remobe SBRK_IS_ALLOC.
17742
17743 * libc/stdlib/mprec.c (Balloc): Fix trampling problem.
17744 (ulp, b2d): Handle 32 bit doubles.
17745 * libc/stdlib/mprec.h: Handle 32 bit doubles.
17746 * libc/stdlib/strtod.c (_strtod_r): Ditto.
17747
17748Fri Jul 14 08:24:58 1995 steve chamberlain <sac@slash.cygnus.com>
17749
17750 from medp@primag.co.uk:
17751 * libc/stdio/setvbuf.c (setvbuf): Fix line buffering on
17752 dynamically allocated buffers.
17753
17754Thu Jul 20 10:11:03 1995 Fred Fish <fnf@fishbowl>
17755
17756 * libc/include/sys/unistd.h (_exit): Add _ATTRIBUTE ((noreturn)).
17757 * libc/stdlib/exit.c (unistd.h): Include to pick up _exit() declaration.
17758
17759Thu Jul 20 10:16:25 1995 Michael Meissner <meissner@tiktok.cygnus.com>
17760
17761 * configure.in (powerpc): Fix previous fix.
17762
17763Wed Jul 19 14:08:55 1995 Michael Meissner <meissner@tiktok.cygnus.com>
17764
17765 * configure.in (powerpc-*eabiaix*): Update PowerPC multilib
17766 directories for this target.
17767
17768Wed Jul 19 00:34:30 1995 Jeffrey A. Law <law@rtl.cygnus.com>
17769
17770 * configure.in (hppa): Add machine_dir definition.
17771 * libc/machine/hppa: New directory with PA specific implementations
17772 of the basic memory/string functions.
17773
17774Tue Jul 18 21:16:00 1995 Michael Meissner <meissner@tiktok.cygnus.com>
17775
17776 * configure.in: Update current PowerPC multilib directories.
17777 Split big and little endian configurations.
17778
17779Tue Jul 18 11:55:33 1995 Ian Lance Taylor <ian@cygnus.com>
17780
17781 * configure.in: Add --enable-single-float option to configure to
17782 control use of MIPS single-float directories. Default to yes.
17783
17784 * Makefile.in (all): Don't recurse into multilib directory if it
17785 does not exist.
17786
17787Mon Jul 17 15:51:30 1995 J.T. Conklin <jtc@rtl.cygnus.com>
17788
17789 * libc/sys/sh/syscalls.c: Fix typo.
17790
17791Mon Jul 3 14:38:52 1995 Steve Chamberlain <sac@slash.cygnus.com>
17792
17793 * Makefile.in, libc/Makefile.in, libc/sys/Makefile.in:
17794 Pass down DLLTOOL.
17795 * libc/include/process.h: Define WAIT_CHILD.
17796 * libc/include/types.h: Get sizes right for win32.
17797 * configure.in (i386-*-pe): Becomes i386-win32.
17798 * libc/sys/win32/{crt0.c, kernel32.def, longjmp.c, setjmp.c, syscalls.c
17799 wintypes.h,sys/file.h,sys/resource.h}: Second pass.
17800 * libc/stdlib/mallocr.c: Don't round up memory block if SBRK_IS_ALLOC
17801 is defined.
17802
17803Wed Jun 28 18:34:54 1995 Steve Chamberlain <sac@slash.cygnus.com>
17804
17805 * configure.in (i[345]86-*-pe): New target (NT).
17806 * host/any: DLLTOOL new.
17807 * libc/sys/win32/{crt0.c, kernel32.def, longjmp.c, setjmp.c, syscalls.c
17808 wintypes.h,sys/file.h,sys/resource.h}: Preliminary support for
17809 WIN32 (just enough to cross host the comp-tools).
17810
17811Thu Jun 22 11:45:18 1995 Doug Evans <dje@canuck.cygnus.com>
17812
17813 * libc/machine/h8300/{cmpsi.S,ucmpsi.S,divhi3.S,mulhi3.S,mulsi3.S}:
17814 Deleted. These files live in gcc/config/h8300/lib1funcs.asm now.
17815
17816Mon Jun 19 11:40:40 1995 Doug Evans <dje@canuck.cygnus.com>
17817
17818 * libc/include/machine/ieeefp.h (arm): Change to always be
17819 __IEEE_BIG_ENDIAN (even on little endian ARM's).
17820
17821Thu Jun 8 14:22:28 1995 Steve Chamberlain <sac@slash.cygnus.com>
17822
17823 * libc/sys/crt0.S: Initialze sp, and call exit after main.
17824 * libc/sys/syscalls.c (abort): New.
17825 * configure.in (arm): Define ABORT_PROVIDED.
17826
17827Wed Jun 7 14:04:35 1995 J.T. Conklin <jtc@rtl.cygnus.com>
17828
17829 * configure.in (powerpc): Define multidirs.
17830
17831Mon Jun 5 16:10:13 1995 Doug Evans <dje@canuck.cygnus.com>
17832
17833 * libc/sys/arm/crt0.S: Add __USER_LABEL_PREFIX__ support.
17834
17835Thu Jun 1 10:51:47 1995 Sean Eric Fagan <sef@cygnus.com>
17836
17837 * configure.in (sparclite): Delete target_cflags. Define multidirs.
17838
17839Wed May 24 14:23:25 1995 Steve Chamberlain <sac@slash.cygnus.com>
17840
17841 * configure.in, libc/include/machine/ieeefp.h: Modified
17842 for arm:
17843 libc/machine/arm/*, libc/sys/arm/*: New
17844
17845Tue May 23 13:53:07 1995 J.T. Conklin <jtc@rtl.cygnus.com>
17846
17847 * libc/include/machine/ieeefp.h: Use __PPC__ instead of
17848 __powerpc__ when determining endianness.
17849
17850Wed May 10 07:55:56 1995 J.T. Conklin <jtc@rtl.cygnus.com>
17851
17852 * configure.in (m68*): Add multidir for the m68332.
17853
17854 * host/any (CC): Fix typo in last change.
17855
17856Fri Apr 14 22:20:31 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
17857
17858 * libc/include/sys/config.h: Test __m68k__ instead of __m68000__
17859 when determining endianness.
17860 * libc/include/machine/ieeefp.h: Ditto.
17861 * libc/machine/m68k/setjmp.S: Use '&' instead of '#' for immediate
17862 operands.
17863
17864Fri Apr 14 14:14:29 1995 Doug Evans <dje@chestnut.cygnus.com>
17865
17866 * libc/include/errno.h (ENOTEMPTY): Define.
17867
17868Thu Apr 6 12:21:20 1995 J.T. Conklin <jtc@rtl.cygnus.com>
17869
17870 * configure.in (sparc-sun-sunos*): Add -DMALLOC_ALIGNMENT=8 to
17871 target_cflags.
17872
17873 * libc/sys/sun4/Makefile.in (COPYOFILES): Added rem.o, multiply.o,
17874 and umultiply.o.
17875
17876 * libc/stdio/tmpnam.c (worker): Unconditionally increment count
17877 instead of only when open succeeds. ANSI requires that multiple
17878 calls to tmpnam() result in different files.
17879
17880 * libc/sys/sun4/Makefile.in (COPYRENAMEOFILES): New macro, list of
17881 objects pulled in from /lib/libc.a that must be renamed before
17882 being pulled into newlib. /lib/libc.a's div.o conflicted with
17883 newlib's file with the same name.
17884
17885 * libc/stdlib/ldiv.c (ldiv): Call labs() instead of abs().
17886
17887 * host/any (CC, AS, AR, RANLIB): Changed so that executables in
17888 the build tree will only be used if the executables are present
17889 (instead of just the Makefiles).
17890
17891 * libc/include/stdlib.h (mblen, mbtowc, wctomb, mbstowcs,
17892 wcstombs): Define.
17893 * libc/stdlib/{mblen.c, mbstowcs.c, wcstombs.c}: New files, null
17894 versions of these functions that I orignally wrote for the
17895 NetBSD C library.
17896 * libc/stdlib/{mbtowc.c, wctomb.c}: Replaced functions with
17897 versions I wrote for NetBSD.
17898
17899Wed Mar 29 12:42:42 1995 Kung Hsu <kung@mexican.cygnus.com>
17900
17901 * libc/sys/sparclite/Makefile.in: add crt0.s and make info.
17902 * libc/sys/sparclite/crt0.s: ditto.
17903
17904Tue Mar 28 20:28:03 1995 Rob Savoye <rob@rtl.cygnus.com>
17905
17906 * configure.in: Add soft-float for proelf.
17907
17908Mon Mar 27 12:07:56 1995 Steve Chamberlain <sac@bang.hack.com>
17909
17910 * libc/stdlib/mprec.h (Bcopy): Copy the right number
17911 of bytes.
17912
17913Mon Mar 27 11:24:22 1995 Doug Evans <dje@chestnut.cygnus.com>
17914
17915 * Makefile.in (all): Depend on `force'.
17916 * configure.in (syscall_dir): Renamed from fake_sys_dir.
17917 (libc_syscall_lib): Renamed from libc_fake_sys_lib.
17918 (LIBC_SYSCALL_LIB): Renamed from LIBC_FAKE_SYS_LIB.
17919 * libc/Makefile.in: Likewise.
17920 * libc/include/reent.h: Update syscall references.
17921 (_fcntl_r): Add prototype.
17922 * libc/syscalls/*.c #include <reent.h>.
17923 (*) Call reentrant version if REENTRANT_SYSCALLS_PROVIDED.
17924
17925Mon Mar 20 16:57:39 1995 Doug Evans <dje@deneb.cygnus.com>
17926
17927 * libc/include/sys/stat-dj.h (S_ISBLK): Define.
17928 (S_ISCHR, S_ISDIR, S_ISFIFO, S_ISREG): Define.
17929 * libc/include/sys/stat.h (stat-dj.h): Include ifdef MSDOS.
17930 (time.h, sys/types.h): Always include (even if MSDOS).
17931 (stat): Fix prototype.
17932
17933Fri Mar 10 11:30:38 1995 Ian Lance Taylor <ian@cygnus.com>
17934
17935 * configure.in (i[345]86-*-go32): Compile with -DNO_EXEC.
17936
17937Mon Feb 27 18:00:39 1995 Jim Wilson <wilson@chestnut.cygnus.com>
17938
17939 * libc/machine/h8500/psi.S (EXTPSIHI_RN_SN): Ifdef out.
17940
17941Mon Feb 13 16:10:03 1995 Ian Lance Taylor <ian@cygnus.com>
17942
17943 * libc/include/regdef.h: New file.
17944 * libc/machine/mips/machine/regdef.h: New file.
17945
17946Mon Feb 6 15:24:29 1995 Doug Evans <dje@canuck.cygnus.com>
17947
17948 * libc/sys/sparc64/sys/fcntl.h (open): Add ellipsis.
17949
17950Fri Jan 27 13:52:10 1995 Steve Chamberlain <sac@splat>
17951
17952 * libc/sys/sh/crt0.S: Pass main's return to exit.
17953 * libc/sys/sh/trap.S: Put errno in the right place.
17954
17955Tue Jan 24 18:57:56 1995 Ian Lance Taylor <ian@sanguine.cygnus.com>
17956
17957 * libm/math/e_rem_pio2.c (__ieee754_rem_pio2): Integrate change
17958 from fdlibm 5.2: handle |x| < 3pi/4 more efficiently.
17959 * libm/math/ef_rem_pio2.c: Likewise.
17960 * libm/math/e_log10.c: Remove unused static one.
17961 * libm/math/ef_log10.c: Likewise.
17962 * libm/math/s_frexp.c: Likewise.
17963 * libm/math/sf_frexp.c: Likewise.
17964
17965Sun Jan 22 21:26:14 1995 Steve Chamberlain <sac@splat>
17966
17967 * libc/sys/go32/Makefile.in, clock.S, dir.c, setjmp.S, stat.c,
17968 longjmp.S: Upgraded.
17969 * libc/sys/go32/sys/setjmp.h: Upgraded.
17970 * libc/sys/go32/sys/go32.h, dpmi.h: New files.
17971
17972Fri Jan 20 18:33:18 1995 Ian Lance Taylor <ian@sanguine.cygnus.com>
17973
17974 * configure.in: Add many entries to multidirs for mips targets.
17975
17976Wed Jan 18 10:19:25 1995 J.T. Conklin <jtc@rtl.cygnus.com>
17977
17978 * libm/math/e_jn.c (__ieee754_yn): Integrate change from fdlibm
17979 5.2 which fixes bug where jn(-1,x) is three times larger than
17980 the actual answer.
17981 * libm/math/ef_jn.c (__ieee754_ynf): Likewise.
17982
17983Sun Jan 15 21:48:58 1995 Steve Chamberlain <sac@splat>
17984
17985 * libc/sys/w65/sys/syscalls.h: New file
17986 * libc/include/machine/ieeefp.h: W65 support.
17987 * libc/include/sys/config.h: Ditto.
17988 * libc/machine/w65/Makefile.in, cmpsi, divsi3, lshrhi.s, mulsi3.c,
17989 sdivhi3.s, smulhi3.s, udivhi3.s, umodhi3.s: New files.
17990 * libc/sys/w65/Makefile.in, crt0.c, syscalls.c, trap.c: New files.
17991
17992Wed Jan 11 15:59:01 1995 Ian Lance Taylor <ian@sanguine.cygnus.com>
17993
17994 * libc/sys/Makefile.in (lib.a, crt0.o): Depend upon subs.
17995
17996Tue Jan 3 15:57:03 1995 Rob Savoye <rob@darkstar.cygnus.com>
17997
17998 * Makefile.in, configure.in: Remove any references to the old
17999 "stub" dir.
18000
18001Thu Dec 22 10:42:08 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
18002
18003 * libc/syscalls/sysopen.c: Write _HAVE_STDC version of open, which
18004 uses ... in prototype.
18005
18006
18007Wed Nov 30 08:39:42 1994 Ian Lance Taylor <ian@rtl.cygnus.com>
18008
18009 * libc/sys/a29khif/sys/libconfig.h: Remove.
18010 * libc/sys/go32/sys/libconfig.h: Remove.
18011 * libc/sys/sun4/sys/libconfig.h: Remove.
18012 * libc/sys/sysvi386/sys/libconfig.h: Remove.
18013 * libc/sys/sysvnecv70/sys/libconfig.h: Remove.
18014 * libc/sys/sparc64/sys/libconfig.h: Remove.
18015
18016 * libc/include/_ansi.h (_FLOAT_ARG, _FLOAT_RET): Don't define.
18017 * libc/include/sys/config.h (_FLOAT_ARG, _FLOAT_RET): Likewise.
18018 * libc/include/math.h: Change all uses of _FLOAT_RET and
18019 _FLOAT_ARG to float.
18020 * libm/test/math.c: Likewise.
18021 * testsuite/libm.sac/math.c: Likewise.
18022 * testsuite/libm.sac/working/math.c: Likewise.
18023
18024Wed Nov 23 22:39:28 1994 Steve Chamberlain (sac@jonny.cygnus.com)
18025
18026 * libc/sys/sh/trap.s,crt0.s,setjmp.s: Renamed with .S so that
18027 gcc calls gas with endian option.
18028 * configure.in (sh): Build little endian version too.
18029
18030Wed Nov 16 18:21:45 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
18031
18032 * configure.in: Configure big and little endian versions for MIPS
18033 targets.
18034
18035Sat Nov 12 21:12:51 1994 Doug Evans <dje@canuck.cygnus.com>
18036
18037 * libc/include/limits.h: Deleted.
18038 * libc/include/machine/limits.h: Deleted.
18039
18040Thu Nov 10 15:32:44 1994 Rob Savoye <rob@rtl.cygnus.com>
18041
18042 * ChangeLog: Remove stub directory. This has all been rewritten
18043 and moved to devo/libgloss.
18044
18045Thu Sep 29 18:31:04 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
18046
18047 * Makefile.in (dvi): Add to info target, use $@ in sub make.
18048 (docs): Merge into info target.
18049 * libm/Makefile.in (dvi): Add $(srcdir).
18050 * libm/math/Makefile.in (chobjs): Remove underscores from file
18051 names. Texinfo doesn't like them.
18052 (wacos.def, ...): Add explicit targets for all .def files.
18053 * libm/math/math.tex: Remove underscores from @include file names.
18054 * doc/Makefile.in (dvi): Add dummy target.
18055 * testsuite/Makefile.in (dvi): Add dummy target.
18056
18057Mon Sep 26 21:17:46 1994 Doug Evans (dje@canuck.cygnus.com)
18058
18059 * Makefile.in (VERSION): Define. For net newlib releases.
18060
18061Thu Sep 22 19:01:26 1994 Doug Evans (dje@canuck.cygnus.com)
18062
18063 * README: New file.
18064
18065Mon Sep 19 16:35:23 1994 Jim Wilson (wilson@sphagnum.cygnus.com)
18066
18067 * libc/stdlib/ecvtbuf.c (_gcvt): Undo last change.
18068
18069Mon Sep 19 11:44:23 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
18070
18071 * libc/stdlib/setenv.c (_findenv): Declare.
18072
18073 * libc/include/sys/fcntl.h: Fix declarations of open, creat, and
18074 fcntl to not use _EXFUN, and change string parameters to open and
18075 creat to be ``const char *''.
18076 * libc/sys/sparc64/sys/fcntl.h: Likewise.
18077 * libc/sys/sparc64/creat.c (creat): Make PATH const.
18078 * libc/syscalls/sysopen.c: Include <fcntl.h>.
18079 (open) Make _FILE const.
18080 * libc/sys/z8ksim/glue.c (_open): Make BUF const.
18081 (_creat): Make PATH const.
18082 * libc/sys/h8300hms/syscalls.c (_open): Make PATH const.
18083 * libc/sys/h8500hms/syscalls.c (_open): Likewise.
18084 * libc/sys/m88kbug/syscalls.c (open): Likewise.
18085 * libc/sys/sh/syscalls.c (_open): Likewise.
18086 * stub/shared/glue.c (open): Make BUF const.
18087 * stub/ex93x/syscalls.c (open): Make FILENAME const.
18088
18089Thu Sep 8 16:39:12 1994 Steve Chamberlain (sac@jonny.cygnus.com)
18090
18091 * libc/include/errno.h: Add ENMFILE
18092 * libc/include/sys/config.h: Support Z8000.
18093 * libc/include/sys/signal.h: New signals for go32.
18094 * libc/machine/h8500/psi.S (__addpsir0r0): New function
18095 * libc/machine/h8500/cmpsi.S (__ucmppsi2): New function
18096 * libc/machine/sh/sdivsi3.s (__sdivsi3): Rewritten.
18097 * libc/stdlib/mallocr.c (_morecore_r): Minimum chunk
18098 size is variable, depending upon CHUNK_POWER.
18099 * libc/sys/go32/*.c: Upgrade to new go32 stuff.
18100
18101Sun Sep 4 17:42:43 1994 Jim Wilson (wilson@sphagnum.cygnus.com)
18102
18103 * libc/stdlib/ecvtbuf.c (_gcvt): Output '-' for negative numbers.
18104
18105Fri Sep 2 10:56:01 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
18106
18107 * libc/include/_ansi.h (_PARAMS): Don't define if already defined.
18108
18109Wed Aug 24 11:11:03 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
18110
18111 * configure.in: Change i[34]86 to i[345]86.
18112
18113 * libc/include/math.h: Don't define HUGE_VAL if it is already
18114 defined.
18115
18116Wed Aug 17 15:18:02 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
18117
18118 * testsuite/libm.sac/test_erfc.c: Correct some result values.
18119 * testsuite/libm.sac/test_gammaf.c: Likewise.
18120 * testsuite/libm.sac/test_sin.c: Likewise.
18121 * testsuite/libm.sac/test_tanh.c: Likewise.
18122
18123Tue Aug 16 16:12:53 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
18124
18125 * libc/include/machine/ieeefp.h: Don't try set endianness if it is
18126 already set. Define typedefs __int32_t and __uint32_t.
18127 * libc/include/math.h: Include <machine/ieeefp.h>.
18128 (union __dmath): Use __uint32_t.
18129 * libm/math/fdlibm.h, libm/math/*.c: Use __int32_t and __uint32_t
18130 instead of int and unsigned int.
18131
18132Thu Aug 11 15:16:09 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
18133
18134 Replace the math library with the SunPRO fdlibm package.
18135 * libm/math: Completely changed all files.
18136 * libm/ieeefp: Remove contents and directory.
18137 * libm/Makefile.in (LIBM_FP_LIB): Remove.
18138 (SUBDIRS): Just set to math/lib.a.
18139 * libm/libm.texinfo: Updated for new library.
18140 * libc/include/math.h: Extensive changes for new math library.
18141 * libc/include/ieeefp.h (isnanf, isinff, finitef): Change argument
18142 from _FLOAT_ARG to float.
18143 (maxpowtwo, maxpowtwof): Don't declare.
18144 * configure.in (fp_dir): Removed; was always ieeefp anyhow.
18145 (libm_fp_lib): Removed.
18146 * Makefile.in (MATHOBJS_IN_LIBC): Updated with new file names.
18147 * testsuite/libm.paranoia/Makefile.in (check): Correct --srcdir
18148 argument to ${RUNTEST}.
18149 * testsuite/libm.sac/Makefile.in (LOCAL_CFLAGS): Define.
18150 (.c.o): New rule.
18151 (RUNTESTFLAGS): Set CC and CFLAGS.
18152 (TESTS): Remove test_log2 and test_log2f.
18153 (${TESTS}): Pass ${LOCAL_CFLAGS}, not ${CFLAGS}.
18154 * testsuite/libm.sac/math.c (run_vector_1): Use float, not
18155 _FLOAT_ARG, for single precision argument type.
18156 * testsuite/libm.sac/sac.exp: Treat an error in bit 63 as an
18157 expected failure. Close the input pipe.
18158 * testsuite/libm.sac/test.c (test_sok, test_iok, test_scok):
18159 Correct misspelling of inaccurate.
18160 (test_mok): Use ``inaccurate'', not ``wrong''.
18161 * testsuite/libm.sac/{test_acos.c, test_acosh.c, test_asin.c,
18162 test_asinh.c, test_atan.c, test_atanh.c, test_ceil.c,
18163 test_ceilf.c, test_cos.c, test_cosh.c, test_erf.c, test_erf.c,
18164 test_fabs.c, test_floor.c, test_floorf.c, test_fmod.c,
18165 test_fmodf.c, test_gamma.c, test_log1p.c, test_log1pf.c,
18166 test_yn.c): Correct many result values. Many are still wrong.
18167
18168 * libc/stdlib/ecvtbuf.c (print_e): If _dtoa_r sets decpt to 9999,
18169 just copy the string.
18170 (_gcvt): Always return the buffer.
18171
18172Tue Aug 9 13:43:23 1994 J.T. Conklin (jtc@phishhead.cygnus.com)
18173
18174 * bcopy.c: fixed documentation, bcopy was not specified by ANSI.
18175
18176Wed Aug 3 05:39:41 1994 D. V. Henkel-Wallace (gumby@cygnus.com)
18177
18178 * libc/include/sys/reent.h: (struct _Bigint): add _reclaim
18179 structure.
18180 (struct _reent): add _p5s, _cvtlen, _cvtbuf.
18181 (_reclaim_reent): declare new entry point.
18182 * libc/reent/reent.c (cleanup_glue, _reclaim_reent): new
18183 functions.
18184
18185 * libc/stdlib/mprec.c (Balloc): Keep track of every struct bigint
18186 ever allocated, so that we can later reclaim them all.
18187 (pow5mult): make reentrant.
18188
18189 * libc/stdlib/ecvtbuf.c (fcvtbuf, ecvtbuf): extend these functions
18190 so that when given NULL as a buffer, return a pointer to static
18191 space in the rent structure. This is not documented behaviour;
18192 it's only to support ecvt and fcvt, which aren't ANSI anyway.
18193 * libc/stdlib/efgcvt.c (fcvt, ecvt) Use new functionality (and
18194 therefore become reentrant).
17c0c97d 18195
8a0efa53
CF
18196 * libc/stdlib/dtoastub.c: remove spurious inclusion of mprec.h.
18197
18198Mon Aug 1 16:52:24 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
18199
18200 * libc/include/machine/ieeefp.h: Check _AM29K, not ___AM29K__.
18201
18202Thu Jul 28 15:40:21 1994 J.T. Conklin (jtc@phishhead.cygnus.com)
18203
18204 * Makefile.in: Make link to libg.a after libc.a; this is needed
18205 for the testsuites to build executables when everything comes
18206 from the tree.
18207
18208Mon Jun 27 17:14:29 1994 Bill Cox (bill@rtl.cygnus.com)
18209
18210 * libc/Makefile.in: Add a VERSION variable so we can keep track.
18211 * libm/Makefile.in: Add a VERSION variable so we can keep track.
18212
18213Wed Jun 22 10:26:00 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
18214
18215 * libc/include/stdio.h: Use __VALIST, not va_list.
18216
18217Tue May 17 15:43:28 1994 Bill Cox (bill@rtl.cygnus.com)
18218
18219 * testsuite/config/unix-libm.exp, testsuite/lib/libm.exp,
18220 testsuite/libm.sac/execute.exp:
18221 Replace error proc calls with perror calls.
18222
18223Wed May 11 09:25:28 1994 Doug Evans (dje@canuck.cygnus.com)
18224
18225 * libc/include/*.h: #include "_ansi.h" instead of <_ansi.h>.
18226 * libc/include/time.h: #define NULL as 0L.
18227
18228Mon May 9 18:41:20 1994 Doug Evans (dje@canuck.cygnus.com)
18229
18230 * host/any (INCLUDES): Delete -I of gcc/include, gcc -B takes
18231 care of it.
18232
18233Mon May 9 18:39:39 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
18234
18235 * libc/include/sys/signal.h: Check for __GO32__, not __i386__ and
18236 not __unix__.
18237
18238Sat May 7 17:07:36 1994 Steve Chamberlain (sac@cygnus.com)
18239
18240 * configure.in (TARGET_CFLAGS): Set -O2 as default.
18241 (z8k-*-*): Use syscalls fake sys dir.
18242 * libc/sys/z8k/glue.c: Rename syscalls.
18243 * libc/sys/go32/Makefile.in: Use new routines.
18244 * libc/machine/Makefile.in: Fix typo in ln stuff.
18245
18246Thu May 5 13:47:48 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
18247
18248 * Makefile.in (libm.a, crt0.o): Use cp if ln fails.
18249 * libc/Makefile.in (crt0.o): Likewise.
18250 * libc/machine/Makefile.in (lib.a): Likewise.
18251 * libc/sys/Makefile.in (lib.a, crt0.o): Likewise.
18252
18253 All Makefile.in files: Added mostlyclean, realclean and distclean
18254 targets.
18255
18256 * Makefile.in: Don't bother to unexport XTRAFLAGS or
18257 XTRAFLAGS_FOR_TARGET, since they are no longer passed down from
18258 the top level Makefile.
18259
18260Tue Apr 26 15:10:34 1994 Doug Evans (dje@canuck.cygnus.com)
18261
18262 * libc/sys/sparc64/sys/stat.h: New file.
18263 * libc/sys/sparc64/sys/time.h: New file.
18264 * libc/sys/sparc64/sys/types.h: New file.
18265
18266Fri Apr 22 12:58:24 1994 Stan Shebs (shebs@andros.cygnus.com)
18267
18268 * stub/ex93x/crt0.s (start): Add code to clear bss.
18269
18270Wed Apr 13 10:34:58 1994 Doug Evans (dje@canuck.cygnus.com)
18271
18272 * libc/include/sys/types.h (time_t): Properly protect inside
18273 #ifndef __time_t_defined.
18274
18275 * libc/stdio/fileno.c: New file.
18276 * libc/stdio/Makefile.in (OFILES, CHEWOUT_FILES): Add fileno.
18277 (fileno.o): Add dependency.
18278 * libc/include/stdio.h (__sgetc): Rename never to _never.
18279 (fileno macro): Disable, needs to do CHECK_INIT first.
18280
18281Mon Apr 11 17:37:09 1994 Bill Cox (bill@rtl.cygnus.com)
18282
18283 * testsuite/Makefile.in (EXPECT, RUNTEST): Set these for the check
ba3ccd63 18284 goal.
8a0efa53
CF
18285
18286 * testsuite/Makefile.in (check): Set TCL_LIBRARY for runtest.
18287 * testsuite/libm.paranoia/Makefile.in (check): Set TCL_LIBRARY for
18288 runtest.
18289 * testsuite/libm.sac/Makefile.in (check): Set TCL_LIBRARY for
18290 runtest.
18291
18292Sat Apr 9 16:18:09 1994 Doug Evans (dje@cygnus.com)
18293
18294 * libc/sys/sparc64/sys/fcntl.h: New file, define solaris versions
18295 of the various constants.
18296
18297Thu Apr 7 21:19:07 1994 Mark Eichin (eichin@cygnus.com)
18298
18299 * libc/include/math.h: #ifndef __math_68881 around things which
18300 conflict with the (gcc-provided) inline functions in
18301 gcc/ginclude/math-68881.h.
18302
18303Thu Apr 7 02:50:43 1994 Doug Evans (dje@cygnus.com)
18304
18305 * libc/include/_syslist.h (_gettimeofday): Define.
18306 (_times): Ditto.
18307 * libc/include/reent.h: #include <machine/types.h> to get _CLOCK_T_.
18308 (struct tms, timeval, timezone): Declare.
18309 (_gettimeofday_r, _times_r): Declare.
18310 * libc/include/time.h (_CLOCK_T_): Don't #undef. Remove
18311 #ifdef _CLOCK_T_ surrounding definition of clock_t.
18312 (time_t): Add multiple definition protection, __time_t_defined.
18313 * libc/include/sys/time.h: Don't #include <time.h>.
18314 Always define struct timezone (remove #ifndef _TIME_H_).
18315 * libc/include/sys/times.h (_CLOCK_T_): Don't #undef. Remove
18316 #ifdef _CLOCK_T_ surrounding definition of clock_t.
18317 * libc/reent/Makefile.in (OFILES): Add timer.o.
18318 (CHEWOUT_FILES): Add timer.def. Add timer.o/timer.c dependence.
18319 * libc/reent/timer.c: New file.
18320 * libc/time/clock.c: #include <reent.h>.
18321 (clock): Call _times_r instead of times.
18322 * libc/time/time.c (HAVE_GETTIMEOFDAY): Renamed from
18323 HAVE_GET_TIME_OF_DAY.
18324 Add comment regarding supporting OS routine(s) required (for docs).
18325 #include <reent.h>.
18326 (time): Call _gettimeofday_r instead of gettimeofday.
18327 * libc/time/asctime.c: Fix comment regarding supporting OS routines.
18328 * libc/time/ctime.c: Ditto.
18329 * libc/time/strftime.c: Ditto.
18330 * libc/sys/sparc64/Makefile.in (TEMPLATE_SFILES): Remove gettimeofday.
18331 (TEMPLATE_SFILES_R): Define here. Also define times.
18332 Add times_r.o/times.S dependence.
18333 (time2.c, junk.c): Deleted.
18334 * libc/sys/sparc64/time2.c: Deleted.
18335 * configure.in (sparc64-*-*): Define HAVE_GETTIMEOFDAY.
18336
18337 * libc/stdio/mktemp.c (_getpid_r): Renamed from _getpid.
18338 * libc/stdio/tmpnam.c (_getpid_r): Ditto.
18339 * libc/sys/sparc64/junk.c: Deleted.
18340
18341Mon Mar 21 16:51:03 1994 Doug Evans (dje@canuck.cygnus.com)
18342
18343 * libc/sys/sparc64/Makefile.in: Add times syscall.
18344 * libc/sys/sparc64/crt0.S: Handle stack bias at run time so we can
18345 be used with and without it. Add comment clarifying Medium/Anywhere
18346 model requirements.
18347 * libc/sys/sparc64/sigsetjmp.S (setjmp, longjmp): Add svr4 support.
18348 * libc/sys/sparc64/sys/syscall.h (SYS_times): Define for sunos4
18349 even if obsolete.
18350
18351Sun Mar 20 15:51:47 1994 Doug Evans (dje@cygnus.com)
18352
18353 * configure.in (target_cflags): Move init.
18354 (sparc64-*-*): Define HAVE_BLKSIZE.
18355
18356Wed Mar 9 10:44:52 1994 Doug Evans (dje@canuck.cygnus.com)
18357
18358 * libc/include/sys/_types.h: New file.
18359 * libc/include/reent.h: #include it.
18360 Add comment describing REENTRANT_SYSCALLS_PROVIDED and
18361 MISSING_SYSCALL_NAMES.
18362 Sort syscalls.
18363 * libc/include/_syslist.h: Remove _raise.
18364 * libc/reent/signalr.c: New file.
18365 * libc/reent/Makefile.in: Compile it.
18366 * libc/signal/signal.c: Only use ifdef SIMULATED_SIGNALS.
18367 Add doc for raise and _raise_r.
18368 * libc/signal/raise.c: Only use ifndef SIMULATED_SIGNALS.
18369 (raise): Call _raise_r.
18370 (_raise_r): Call _getpid_r and _kill_r.
18371 * libc/stdlib/abort.c: Remove inclusion of stdio.h and _syslist.h.
18372 (abort): Loop forever calling raise and _exit.
18373
18374Mon Mar 7 14:40:08 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
18375
18376 * configure.in: Remove extraneous echo.
18377
18378Thu Mar 3 12:14:22 1994 Doug Evans (dje@canuck.cygnus.com)
18379
18380 * libc/sys/sparc64/sys/dirent.h (MAXNAMLEN): #undef to avoid
18381 collision with unistd.h, and fix for svr4.
18382
18383Wed Mar 2 13:55:25 1994 Doug Evans (dje@canuck.cygnus.com)
18384
18385 * libc/stdio/local.h (_llicvt): Declare.
18386 (CVT_BUF_SIZE): Define (and buffer size from 512 to 128).
18387 * libc/stdio/cvt.c: Include "local.h" to get CVT_BUF_SIZE.
18388 (_llicvt): Define.
18389 (_sicvt): Fix function header (`value' is short).
18390 * libc/stdio/vfprintf.c (_vfprintf_r): Use CVT_BUF_SIZE.
18391 Add printing of long long's support.
18392 Add printing of 8 byte pointer support.
18393
18394Fri Feb 11 21:52:11 1994 Steve Chamberlain (sac@sphagnum.cygnus.com)
18395
18396 * libc/sys/sh/syscalls.c (pipe, execv, wait, fork, utime, chown,
17c0c97d 18397 stat, chmod): New hooks.
8a0efa53
CF
18398 (sbrk): Abort if stack and heap collide.
18399 * libc/machine/sh/udivsi3, libc/machine/sh/sdivsi3 Modified to
18400 shortcut when given small args.
18401 * libc/machine/sh/setjmp.s: Rewritten.
18402 * libc/machine/sh/strcmp.s (strcmp): New function takes advantage
18403 of cmp/str instruction.
18404
18405Wed Feb 9 15:12:35 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
18406
18407 * configure.in: Accept powerpc* as a CPU type, using fp_dir ieeefp
18408 and machine_dir powerpc.
18409 * libc/include/machine/setjmp.h, libc/include/machine/ieeefp.h:
18410 Add cases for __powerpc__.
18411 * libc/machine/powerpc/Makefile.in, libc/machine/powerpc/setjmp.S:
18412 New files.
18413
18414 * libc/include/stdio.h (_iprintf_r): Declare correctly.
18415
18416Thu Jan 27 10:36:27 1994 Steve Chamberlain (sac@cygnus.com)
18417
18418 * libc/stdlib/callocr.c: New file with _calloc_r in it.
18419 * libc/stdlib/calloc.c (calloc_r): Now in callocr.c
18420
18421Thu Jan 20 15:14:37 1994 Doug Evans (dje@canuck.cygnus.com)
18422
18423 * libc/stdlib/ecvtbuf.c (print_f): Remove local "done".
18424 (print_e): More comments to describe args, etc.
18425 "type" arg may now be 'g' or 'G' for %g/G format --> remove
18426 trailing blanks.
18427 (_gcvt): Remove locals decpt, sign, end, p, done.
18428 More comments for print_e invocation.
18429 Pass "type" to print_e as is (g/G).
18430
18431Wed Jan 19 16:34:18 1994 Rob Savoye (rob@darkstar.cygnus.com)
18432
18433 * stub/shared/m68k-crt0.S: Changed so it compiles (and runs) on a
17c0c97d 18434 stock m68000.
8a0efa53
CF
18435
18436Mon Jan 17 15:41:53 1994 Doug Evans (dje@canuck.cygnus.com)
18437
18438 * libc/stdlib/mallocr.c (_morecore_r): Fix aligning of pointer so it
18439 works with any sized pointer, including ones bigger than ints and
18440 longs.
18441
18442Thu Jan 6 14:53:21 1994 Doug Evans (dje@canuck.cygnus.com)
18443
18444 * libc/sys/sparc64/{time2.c,utime.S,utime2.c}: New files.
18445
18446Sat Dec 11 16:17:20 1993 Steve Chamberlain (sac@thepub.cygnus.com)
18447
18448 * libc/include/stdlib.h (_calloc_r): Add prototype.
18449 * libc/machine/h8500/negsi2.c: New file.
18450 * libc/machine/h8500/divsi3.c: Prevent overflow when dividing v
18451 large unsigned numbers.
18452 * libc/machine/h8500/cmpsi.c: Add cmppsi.
18453 * libc/stdlib/mallocr.c (morecore_r): Fix aligning pointers so it
18454 works when sizeof(size_t) != sizeof(char *).
18455 * libc/stdlib/mprec.c (Balloc): Call calloc rather than malloc to
18456 get play area
18457 * libc/stdlib/mprec.h: Define Just_16 if generating for z8000.
18458
18459Mon Dec 6 15:59:53 1993 Doug Evans (dje@rtl.cygnus.com)
18460
18461 * libc/include/assert.h (assert): Handle -traditional.
18462
18463Tue Nov 16 15:49:24 1993 Mark Eichin (eichin@cygnus.com)
18464
18465 * Makefile.in: added ; after every "fi" and "done" that wasn't at
18466 the end of a line (ie. anything before a backslash continuation)
18467 so that bash handles them.
18468
18469Tue Nov 16 12:31:57 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
18470
18471 * libc/sys/go32/lstat.s: new file, copied from stat.s and renamed
ba3ccd63 18472 stat to lstat
8a0efa53
CF
18473
18474Mon Nov 15 15:50:43 1993 Steve Chamberlain (sac@jonny.cygnus.com)
18475
18476 * libc/sys/sh/crt0.s, libc/sys/sh/trap.s,
18477 libc/machine/sh/sdivsi3.s, libc/machine/sh/setjmp.s,
18478 libc/machine/sh/udivsi3.s: Use new calling convention.
18479
18480Mon Nov 15 15:25:38 1993 Mark Eichin (eichin@cygnus.com)
18481
18482 * libc/include/sys/unistd.h, libc/include/sys/stat.h: ANSI-fy
18483 chmod, access, chdir, chown by making _path const. Also fix _amode
18484 param of access.
18485
18486Fri Nov 12 20:25:28 1993 Mark Eichin (eichin@cygnus.com)
18487
18488 * libc/sys/a29khif/_tmpnam.s (_tmpnam): renamed function to
18489 _khif_tmpnam, because it doesn't comply with ANSI but may be
18490 useful anyway. Real tmpnam was already in libc/stdio, and was
17c0c97d 18491 colliding with this one (pr 2176.)
8a0efa53
CF
18492 * libc/sys/a29khif/stubs.s (tmpnam): removed tmpnam. This file is
18493 the wrong idea anyhow.
18494
18495Mon Nov 8 07:50:16 1993 Doug Evans (dje@canuck.cygnus.com)
18496
18497 * configure.in: Remove h8300h, we have multilib now.
18498
18499Fri Nov 5 12:37:27 1993 Mark Eichin (eichin@cygnus.com)
18500
18501 * libc/string/strcasecmp.c, libc/string/strncasecmp.c: new
18502 functions, to get preference over the ones in libiberty (since we
18503 provide correct declarations in <string.h>.
18504 * libc/string/Makefile.in: add support for strncasecmp,
18505 strcasecmp.
18506
18507Fri Nov 5 09:05:45 1993 D. V. Henkel-Wallace (gumby@blues.cygnus.com)
18508
18509 * Change netware config not to look for cpu explicitly.
18510
18511Thu Nov 4 14:21:25 1993 Doug Evans (dje@canuck.cygnus.com)
18512
18513 * libc/sys/sparc64/{creat.c,junk.c}: New files.
18514 * libc/sys/sparc64/Makefile.in: Add dependencies.
18515
18516Wed Nov 3 10:42:49 1993 Doug Evans (dje@canuck.cygnus.com)
18517
18518 * configure.in: Clean up v9 a bit, new "os" aoutv8.
18519
18520Tue Nov 2 10:00:44 1993 D. V. Henkel-Wallace (gumby@cygnus.com)
18521
18522 * libc/include/sys/reent.h: make structure smaller by allocating
18523 some stuff when needed.
18524 * libc/signal/signal.c: allocate as needed
18525 * libc/stdio/findfp.c,stdio/local.h: ditto
18526 * libc/stdlib/mprec.c: ditto
18527
18528 * libc/time/localtime.c: don't return a dangling stack ptr.
18529
18530Wed Sep 29 20:42:34 1993 Rob Savoye (rob@darkstar.cygnus.com)
18531
18532 * stub/mvme135/crt0.S, stub/mvme135/glue.c: Moved to stub/generic.
18533
18534Wed Sep 29 16:27:49 1993 K. Richard Pixley (rich@sendai.cygnus.com)
18535
18536 * libc/include/stdio.h (__sputc): comment out static inline which
18537 confuses coff toolchains.
18538
18539Thu Sep 2 16:31:36 1993 Mark Eichin (eichin@cygnus.com)
18540
18541 * libc/sys/a29khif/{_close.s, _fstat.s, _lseek.s, _sbrk.s,
18542 _write.s, getpid.c, kill.c, read.s}:
18543 * libc/sys/a29khif/stubs.s: eliminated stubs that already go
18544 through the syscalls directory.
18545
18546Fri Oct 29 13:59:58 1993 Jeffrey Wheat (cassidy@cygnus.com)
18547
18548 * configure.in: fixed double quote gotcha.
18549
18550Wed Oct 27 15:27:09 1993 Rob Savoye (rob@darkstar.cygnus.com)
18551
18552 * stub/ex931: stub library for sparclite board.
18553 * stub/idp: Renamed from mc68ec. Added contructor table
18554 stuff to linker script.
18555 * stub/mvme135: Renamed from m68kmvme. Added contructor table
18556 stuff to linker script.
18557
18558Tue Oct 26 17:01:23 1993 K. Richard Pixley (rich@sendai.cygnus.com)
18559
18560 * configure.in: Configure testsuites only if they exist.
18561
18562Tue Oct 26 12:37:11 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
18563
18564 * configure.in: Don't set machine_dir for i386 until there is
18565 something in libc/machine/i386 to compile. For i[34]86-*-netware*
18566 use sys/netware, don't use signal, define NO_EXEC, ABORT_PROVIDED,
18567 CLOCK_PROVIDED and MALLOC_PROVIDED.
18568
18569 * libc/sys/netware: New directory. Contains simplistic and
18570 probably incorrect stubs for NetWare. Should be enough to load
18571 the library.
18572 * libc/sys/netware/crt0.c, libc/sys/netware/environ.c,
18573 libc/sys/netware/getpid.c, libc/sys/netware/link.c: New NetWare
18574 stub files.
18575
18576 * libc/reent/execr.c: Don't use if NO_EXEC is defined.
18577 * libc/reent/sbrkr.c: Don't use if MALLOC_PROVIDED is defined.
18578 * libc/stdlib/abort.c: Don't use if ABORT_PROVIDED is defined.
18579 * libc/time/clock.c: Don't use if CLOCK_PROVIDED is defined.
18580
18581Mon Oct 25 16:48:08 1993 Roland H. Pesch (pesch@cygnus.com)
18582
18583 * testsuite/Makefile.in: add "docs" dummy target for consistency
18584 with rest of newlib; turn "info" and "install-info" into dummy
18585 targets, since they wouldn't have worked. (Depended on
18586 nonexistent "doc" subdir.)
18587
18588Fri Oct 22 20:37:32 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
18589
18590 * configure.in: handle mips* instead of mips
18591
18592Thu Oct 21 08:57:24 1993 Ian Lance Taylor (ian@cygnus.com)
18593
18594 * libc/include/sys/dirent.h: New file. If it is not overridden by
18595 a version of libc/sys/*/sys/dirent.h, it includes the next
18596 <dirent.h> file in case there is one lurking somewhere.
18597
18598Fri Oct 15 14:17:40 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
18599
18600 * libc/stdlib/strtoul.c (_strtoul_r): Several changes for ANSI
18601 compliance, namely: Accept a minus sign. Consider a single 0 with
18602 a radix of 0 as being a conversion. Determine overflow correctly.
18603 If an overflow occurs, set *ptr to the end of the number, not the
18604 middle.
18605 * lib/stdlib/strtol.c (_strtol_r): Determine overflow correctly.
18606
18607Thu Oct 14 21:49:52 1993 Doug Evans (dje@canuck.cygnus.com)
18608
18609 * libc/machine/h8300/divsi3.S (divmodsi4): Fix h8300h case.
18610
18611Fri Oct 1 17:17:34 1993 Doug Evans (dje@canuck.cygnus.com)
18612
18613 * Makefile.in (INSTALL): Use $srcrootpre.
18614 (crt0.o): Replace $< with $(CRT0_DIR)/$(CRT0), Sun make
18615 can't handle it.
18616 * libc/Makefile.in (crt0.o): Spell out $<, Sun make can't handle
18617 it.
18618 * libc/sys/Makefile.in (crt0.o, lib.a): Ditto.
18619 * stub/Makefile.in (crt0.o, TARGETLIB): Ditto.
18620 * libc/sys/sparc64/Makefile.in (isatty.o): Sun VPATH lossage.
18621 * libm/math/Makefile.in (matherr.o): Ditto.
18622
18623Thu Sep 30 11:09:17 1993 Steve Chamberlain (sac@phydeaux.cygnus.com)
18624
18625 * configure.in: Build multidirs for z8k.
18626 * libc/include/stdlib.h (_strtoul_r): add prototype.
18627 * libc/include/machine/limits.h: Get INT_MIN right for all the z8k family.
18628 * libc/include/machine/setjmp.h: Add for z8k.
18629 * libc/machine/z8k/{mulsi.o, udivsi3.o, umodsi3.o, modsi3.o} obsolete.
18630 * libc/sys/z8ksim/glue.c: tidy up.
18631
18632Mon Sep 20 14:04:46 1993 Doug Evans (dje@canuck.cygnus.com)
18633
18634 * libc/unix/{execl.c execle.c execlp.c execv.c execvp.c}:
18635 New files. Requires execve system call.
18636 * libc/unix/Makefile.in: Use them.
18637 * libc/sys/sparc64/{execl.c execle.c execlp.c execv.c execvp.c}:
18638 Deleted, moved to libc/unix.
18639 * libc/sys/sparc64/Makefile.in: Remove them.
18640
18641Mon Sep 20 10:38:32 1993 Doug Evans (dje@canuck.cygnus.com)
18642
18643 * libc/sys/sparc64/{template.S template_r.S}: New files.
18644 * libc/sys/sparc64/Makefile.in: Build source for trivial syscalls
18645 from templates.
18646 * libc/sys/sparc64/{chdir.S chmod.S close.S dup.S fcntl.S
18647 fork.S fstat.S lseek.S link.S mkdir.S open.S pipe.S read.S rmdir.S
18648 umask.S unlink.S wait4.S write.S}: Removed, now built from
18649 templates.
18650
18651Sun Sep 19 14:52:57 1993 Doug Evans (dje@canuck.cygnus.com)
18652
18653 * libc/time/time.c: #include <_ansi.h>.
18654
18655Sun Sep 19 13:43:25 1993 Doug Evans (dje@canuck.cygnus.com)
18656
18657 * configure.in (sparc64-*-*): Remove -D__SIZE_TYPE__.
18658
18659Mon Sep 13 13:52:16 1993 K. Richard Pixley (rich@sendai.cygnus.com)
18660
18661 * configure.in: match m8* rather than m88k so that m88110 is
18662 recognized as well.
18663
18664Tue Sep 7 12:19:32 1993 Doug Evans (dje@canuck.cygnus.com)
18665
18666 * libc/sys/h8300hms/{Makefile.in, _exit.c, misc.c}:
18667 Renamed exit.c to _exit.c to avoid collision with stdlib/exit.c.
18668 misc.c: New file.
18669
18670 * configure.in: Add multilib support to h8300.
18671
18672Mon Sep 6 14:07:06 1993 Doug Evans (dje@canuck.cygnus.com)
18673
18674 * libc/stdlib/abort.c (abort): Remove _VOLATILE from return type.
18675 * libc/include/_ansi.h (_ATTRIBUTE): New macro for __attribute__.
18676 * libc/include/stdlib.h (exit, abort): Add noreturn attribute.
18677
18678Mon Sep 6 14:24:18 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
18679
18680 * configure.in: Corrected multidirs for sparc target.
18681
18682Mon Aug 30 15:56:44 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
18683
18684 Support for building newlib multiple times with different
18685 compilation flags.
18686 * configure.in: Only configure doc at top level. Set multidirs
18687 when appropriate for target, unless not at top level. If
18688 multidirs is set, independently configure each subdirectory.
18689 Adjust TOP, MULTIDIRS and MULTISUBDIR appropriately in Makefile.
18690 * Makefile.in (MULTIDIRS, MULTISUBDIR): New variables,
18691 automagically set by configure.in.
18692 (all): If MULTIDIRS is set, build multiple copies of libraries.
18693 (install): If MULTIDIRS is set, install multiple copies of
18694 libraries. Install in $(tooldir)/lib/$(MULTISUBDIR). If
18695 MULTISUBDIR is set, don't bother to install header files.
18696 * host/any (INCLUDES, CHEW): Use $(SRCTOP) rather than $(TOP) from
18697 ${srcrootpre}.
18698 * stub/configure.in: Set MULTISUBDIR appropriately.
18699 * stub/Makefile.in (install): Install in
18700 $(tooldir)/lib/$(MULTISUBDIR).
18701 * All Makefile.in files: Define SRCTOP as well as TOP.
18702
18703Mon Aug 30 10:34:24 1993 Doug Evans (dje@canuck.cygnus.com)
18704
18705 * libc/machine/h8300/{mulhi3.S, divhi3.S}: Comment out if h8300h.
18706 * libc/machine/h8300/{mulsi3.S, divsi3.S}: Add h8300h support.
18707
18708Thu Aug 26 19:38:12 1993 Doug Evans (dje@canuck.cygnus.com)
18709
18710 * libc/sys/h8300hms/exit.c (_exit): New function.
18711
18712Wed Aug 25 16:31:48 1993 K. Richard Pixley (rich@sendai.cygnus.com)
18713
18714 * configure.in: recognize m88110.
18715
18716Fri Aug 20 16:46:23 1993 K. Richard Pixley (rich@sendai.cygnus.com)
18717
18718 * libc/sys/m88kbug/crt0.c: pretty up, remove extraneous comments,
18719 prototype main and call with args.
18720
18721Fri Jul 30 16:52:47 1993 K. Richard Pixley (rich@cygnus.com)
18722
18723 First real try at system traps for m88k-bug.
18724 * libc/sys/m88kbug/syscalls.c: many changes. Convert from stubs
18725 to real trap calls.
18726 * libc/sys/m88kbug/sys/systraps.h: new file.
18727
18728Tue Jul 27 16:31:16 1993 K. Richard Pixley (rich@sendai.cygnus.com)
18729
18730 Patches to fix info building when target does not use sys
18731 directory.
18732 * libc/Makefile.in (targetdep.tex): add sys.tex separately.
18733 * libc/sys.tex, libc/sys/sys.tex: moved from libc/sys/sys.tex to
18734 libc/sys.tex.
18735 * libc/sys/Makefile.in (doc): do nothing.
18736
18737Mon Jul 26 17:08:11 1993 K. Richard Pixley (rich@sendai.cygnus.com)
18738
18739 * libc/Makefile.in (CRT0): new macro.
18740 (all): depend on $(CRT0) rather than crt0.o.
18741
18742 * configure.in: fix libc_sys_dir -> libc_sys_lib thinko.
18743 do not default crt0, instead, set crt0 and crt0_dir based on
18744 sys_dir and stub_dir.
18745
18746 * Makefile.in (CRT0_DIR): new macro.
18747 (all): depend on $(CRT0) rather than crt0.o which may not exist.
18748 (crt0.o): depend on $(CRT0_DIR)/$(CRT0) rather than simply
18749 $(CRT0).
18750 ($(CRT0)): recur by cd'ing into $(CRT0_DIR).
18751
18752Sun Jul 25 17:51:51 MDT 1993 Jeffrey Wheat (cassidy@cygnus.com)
18753
17c0c97d
EB
18754 * testsuite/lib/libm.exp:
18755 added code to support compiling and linking of tests for
18756 libm.sac (paranoia to be added next) and processing the
8a0efa53
CF
18757 pass or failure of the tests.
18758
18759 * testsuite/config/unix-libm.exp:
18760 platform specific proc's for dealing with compiler, linker
18761 and the way we execute and process the test results.
18762
18763 * testsuite/libm.sac/execute.exp:
17c0c97d 18764 generic framework for the sac tests. the config and lib
8a0efa53
CF
18765 expect code for specific platforms tie it all together.
18766
18767 * testsuite/libm.sac/test_is.c:
18768 changed the output of the test to be consistant with the
18769 other tests. parsing of pass nad fail messages is now fixed.
18770
18771Fri Jul 23 19:20:07 1993 Per Bothner (bothner@kalessin)
18772
18773 * libc/include/{assert.h, ctype.h, dirent.h, errno.h, fastmath.h,
18774 locale.h, math.h, pwd.h, reent.h, setjmp.h, signal.h, stdio.h,
18775 stdlib.h, string.h, termios.h, time.h, utime.h, utmp.h}: For C++:
18776 #ifdef __cplusplus, surround by extern ""C { ... }.
18777 * libc/include/assert.h: Do *not* protect assert.h against
18778 multiple inclusion! Also, #undef it before #define, to allow
18779 redefinition.
18780 * libc/include/stdio.h (getlogin, cuserid): Removed. These
18781 should be only in unistd.h.
18782
18783 * libc/include/sys/{fcntl.h, reent.h, stat.h, time.h, times.h,
18784 unistd.h}: For C++: #ifdef __cplusplus, surround by extern ""C {
18785 ... }.
18786
18787Fri Jul 23 10:15:33 1993 Doug Evans (dje@canuck.cygnus.com)
18788
18789 * libc/machine/sparc/Makefile.in: Must create a library, even
18790 if empty.
18791
18792Wed Jul 21 16:00:37 1993 K. Richard Pixley (rich@sendai.cygnus.com)
18793
18794 * configure.in: set machine_dir for m88k. edit crt0 definition
18795 into makefiles.
18796
18797 * Makefile.in, libc/Makefile.in (crt0): pull up from lower directories.
18798
18799 * libc/Makefile.in (all): also build crt0.o.
18800
18801 * libc/machine/i386/Makefile.in, libc/machine/sparc/Makefile.in,
18802 libc/machine/z8k/Makefile.in, libm/Makefile.in (clean): no need
18803 to remove CRT0.
18804
18805 * libc/machine/m88k/Makefile.in (TOP, TARGETLIB): removed.
18806 (all): reworked to build in place.
18807 (clean): remove lib.a
18808 (Makefile): remove redundant ./, call $(SHELL) rather than sh.
18809
18810 * libc/sys/m88kbug/crt0.c (start): renamed to _start.
18811 (_start): key off edata rather than _start_bss.
18812
18813Wed Jul 21 14:29:47 1993 david d `zoo' zuhn (zoo@cygnus.com)
18814
18815 * libc/include/sys/unistd.h, libc/include/reent.h,
18816 libc/reent/sbrkr.c: change sbrk to return void* instead of char*.
18817
18818Tue Jul 20 13:19:18 1993 K. Richard Pixley (rich@sendai.cygnus.com)
18819
18820 * libm/Makefile.in, libc/Makefile.in ($(SUBDIRS)): dollar escape a dollar sign.
18821
18822 * Makefile.in (libc.a): break into two rules, one for libc.a and
18823 one for libc/libc.a. Force subdirs current before rebuilding
18824 library.
18825 (libm.a): break into two rules, one for libm.a and one for
18826 libm/libm.a. Force subdirs current before rebuilding library.
18827
18828 * libc/Makefile.in (SUBLIBS): fix typo.
18829
18830 * libc/sys/Makefile.in (all): force descent into subdirs, then
18831 rebuild library iff out of of date.
18832
18833Fri Jul 16 17:47:57 1993 K. Richard Pixley (rich@sendai.cygnus.com)
18834
18835 Rework so that library is built and then finished rather than
18836 being built on each invocation of make.
18837
18838 * host/any (machine_dir, sys_dir, signal_dir): these are not
18839 shared and have been moved to their associated Makefile.in's.
18840 (AR_FLAGS): switch to qc which is faster.
18841 * configure.in: no longer assign machine_dir for m88k. set
18842 stub_dir, stub_lib, & crt0 for m68k*-unknown-{aout,coff}. If
18843 stub_dir set, then add to configdirs. add comment about silly
18844 configuration.
18845 (configdirs): drop stub. It will be added only
18846 when needed.
18847 (libm_fp_lib, libc_unix_lib, libc_signal_lib, libc_machine_lib,
18848 libc_sys_dir, fake_sys_dir, libc_fake_sys_lib, stub_dir,
18849 stub_lib, crt0): new variables for tailoring lower level
18850 makefiles. Assign accordingly and edit into makefiles.
18851 * libm/Makefile.in: updated copyright.
18852 (TARGETLIB): removed.
18853 (FLAGS_TO_PASS): removed TARGETLIB, machine_dir, sys_dir.
18854 (SUBDIRS): removed TARGETDEP_DIRS.
18855 (LIBM_FP_LIB, SUBLIBS): new macros.
18856 (all): reworked.
18857 (force): new target to force rebuilds.
18858 (Makefile): call $(SHELL) rather than sh. drop redundant ./
18859 * libc/sys/a29khif/Makefile.in, libc/sys/decstation/Makefile.in,
18860 libc/sys/go32/Makefile.in, libc/sys/h8300hms/Makefile.in,
18861 libc/sys/h8500hms/Makefile.in, libc/sys/m88kbug/Makefile.in,
18862 libc/sys/sh/Makefile.in, libc/sys/sparc64/Makefile.in,
18863 libc/sys/sun4/Makefile.in, libc/sys/sysvi386/Makefile.in,
18864 libc/sys/sysvnecv70/Makefile.in, libc/sys/z8ksim/Makefile.in,
18865 stub/m68kmvme/Makefile.in: updated copyright.
18866 (TARGETLIB, TARGETCRT0, CRT0): macros removed.
18867 (all): reworked. made this the default rule.
18868 (clean): also remove lib.a.
18869 (Makefile): call $(SHELL) rather than sh. drop redundant ./
18870 * stub/Makefile.in: updated copyright.
18871 (TARGETLIB, TARGETCRT0, CRT0, TOP): removed.
18872 (stub_lib): new macro.
18873 (FLAGS_TO_PASS): removed TARGETLIB, stub_dir, TARGETCRT0. Added
18874 RANLIB.
18875 (all): reworked.
18876 (clean, install): assume stub_dir exists.
18877 (Makefile): depend on configure.in. call $(SHELL) rather than
18878 sh. drop redundant ./
18879 * stub/configure.in (stublib): new macro, assign it, edit it into
18880 makefiles.
18881 * Makefile, libc/Makefile.in, doc/Makefile.in, libc/sys/Makefile.in:
18882 updated copyright.
18883 (all): reworked.
18884 (Makefile): call $(SHELL) rather than sh. drop redundant ./
18885 * libc/Makefile.in (TARGETCRT0): removed.
18886 (FLAGS_TO_PASS): dropped TARGETLIB, machine_dir, sys_dir,
18887 TARGETCRT0.
18888 (SUBDIRS): drop TARGETDEP_DIRS.
18889 (LIBC_SIGNAL_LIB, LIBC_SYS_LIB, LIBC_MACHINE_LIB, LIBC_UNIX_LIB,
18890 LIBC_FAKE_SYS_LIB, SUBLIBS): new macros for configuration.
18891 (force): new target to force rebuilds.
18892 * libc/sys/Makefile.in (TARGETCRT0, sys_dir): removed.
18893 (FLAGS_TO_PASS): TARGETLIB, machine_dir, sys_dir, TARGETCRT0
18894 removed.
18895 (clean): assume sys_dir always exists.
18896 * libm/test/Makefile.in (Makefile): call $(SHELL) rather than sh.
18897 drop redundant ./
18898 * libc/ctype/Makefile.in, libc/errno/Makefile.in,
18899 libc/locale/Makefile.in, libc/machine/Makefile.in,
18900 libc/machine/a29k/Makefile.in, libc/machine/h8300/Makefile.in,
18901 libc/machine/h8500/Makefile.in, libc/machine/i386/Makefile.in,
18902 libc/machine/i960/Makefile.in, libc/machine/m68k/Makefile.in,
18903 libc/machine/mips/Makefile.in, libc/machine/necv70/Makefile.in,
18904 libc/machine/sh/Makefile.in, libc/machine/sparc/Makefile.in,
18905 libc/machine/z8k/Makefile.in, libc/reent/Makefile.in,
18906 libc/signal/Makefile.in, libc/stdio/Makefile.in,
18907 libc/stdlib/Makefile.in, libc/string/Makefile.in,
18908 libc/sys/Makefile.in, libc/syscalls/Makefile.in,
18909 libc/time/Makefile.in, libc/unix/Makefile.in,
18910 libm/ieeefp/Makefile.in, libm/math/Makefile.in: updated copyright.
18911 (TARGETLIB): removed.
18912 (all): reworked.
18913 (clean): also remove lib.a.
18914 (Makefile): call $(SHELL) rather than sh. drop redundant ./
18915 * Makefile.in: (machine_dir, sys_dir, stub_dir, stub_lib, CRT0):
18916 new macros.
18917 (SUBDIRS): moved to follow frag inclusion, change stub to
18918 stub_dir.
18919 (FLAGS_TO_PASS): removed machine_dir, sys_dir, signal_dir which
18920 are now set in the libc Makefile.
18921 * libc/machine/Makefile.in (TARGETCRT0, machine_dir): removed.
18922 (FLAGS_TO_PASS): removed TARGETLIB, machine_dir, sys_dir,
18923 TARGETCRT0.
18924 (force): new target to force rebuilds.
18925 * stub/configure.in: determine and set stub_lib for for Makefile.
18926
18927Thu Jul 15 12:01:27 1993 Doug Evans (dje@canuck.cygnus.com)
18928
18929 * libc/sys/h8300hms/Makefile.in: Make `all' the default target.
18930 crt0.s renamed to crt0.S.
18931 * libc/sys/h8300hms/crt0.S: Add h8/300h support.
18932
18933 * libc/machine/h8300/Makefile.in: Make `all' the default target.
18934 * libc/machine/h8300/{cmpsi.S,ucmpsi.S}: #ifdef out entire file if
18935 h8300h.
18936 * libc/machine/h8300/defines.h: Add macros to handle pointers for
18937 h8300 (16 bits) and h8300h (32 bits).
18938 * libc/machine/h8300/{divsi3.S,mulsi3.S,memcpy.S,memset.S,
18939 reg_memcpy.S,reg_memset.S,strcmp.S}: Add h8300h support.
18940
18941Thu Jul 15 10:13:29 1993 Ian Lance Taylor (ian@cygnus.com)
18942
18943 * libc/machine/m88k/setjmp.S, Makefile.in: New files; a simple
18944 implementation of setjmp and longjmp for the m88k.
18945 * libc/include/machine/setjmp.h: Added __m88000__ case.
18946
18947Wed Jul 14 10:10:30 1993 Doug Evans (dje@canuck.cygnus.com)
18948
18949 * configure.in: Recognize h8300h as variant of h8300.
18950
18951Tue Jul 13 12:24:11 1993 Steve Chamberlain (sac@phydeaux.cygnus.com)
18952
18953 * libc/include/sys/unistd.h (read, write): get prototypes right.
18954 (sbrk): New prototype.
18955 * libc/reent/sbrkr.c (sbrkr): Use correct sbrk prototype.
18956 * libc/stdio/local.h: Include unistd.h.
18957 * libc/machine/h8300/syscalls.c: Names have changed.
18958
18959Mon Jul 12 18:08:42 1993 K. Richard Pixley (rich@cygnus.com)
18960
18961 * configure.in: add sys_dir assignment for m88k-bug.
18962
18963Thu Jul 8 09:16:21 1993 Doug Evans (dje@canuck.cygnus.com)
18964
18965 * libc/sys/sparc64/sys/syscallasm.h: New macros to handle either
18966 a.out or elf.
18967 * libc/sys/sparc64: all *.S files: Use new macros.
18968 * libc/sys/sparc64/isatty.c: New file.
18969 * libc/sys/sparc64/Makefile.in: Stop using /lib/libc.a for
18970 functions beyond what newlib provides.
18971
18972Thu Jul 8 09:11:28 1993 Doug Evans (dje@canuck.cygnus.com)
18973
18974 * libc/include/sys/stat.h: Move st_atime so not doubly defined for
18975 svr4.
18976
18977Thu Jul 8 09:09:16 1993 Doug Evans (dje@canuck.cygnus.com)
18978
18979 * libc/include/machine/ieeefp.h: Add support for h8/300h.
18980
18981Fri Jul 2 10:11:20 1993 K. Richard Pixley (rich@cygnus.com)
18982
18983 * configure.in: add m88k.
18984 * libc/include/machine/ieeefp.h: add case for m88k. Also add
18985 sanity check so no one else need ever chase what I did to find
18986 this.
18987
18988 * libm/math/Makefile.in (FAKEC): added atanf.c log1pf.c scalbnf.c.
18989
18990Fri Jul 2 09:15:21 1993 Ian Lance Taylor (ian@cygnus.com)
18991
18992 * doc/makedoc.c: Include <ctype.h>.
18993
18994Wed Jun 30 09:35:06 1993 Doug Evans (dje@canuck.cygnus.com)
18995
18996 * libc/Makefile.in (FLAGS_TO_PASS): Add TARGET_ASFLAGS.
18997 * libc/sys/Makefile.in (FLAGS_TO_PASS): Add TARGET_ASFLAGS.
18998 * libc/machine/Makefile.in (FLAGS_TO_PASS): Add TARGET_ASFLAGS.
18999
19000 * libm/test/Makefile.in (all): Link with ../../lib[cm].a.
19001
19002Sun Jun 27 17:05:20 1993 Doug Evans (dje@sphagnum.cygnus.com)
19003
19004 * libc/include/errno.h (ENOSYS): Added.
19005
19006 * libc/unix/getpwd.c (getcwd): Fix typo (_up -> up).
19007
19008Mon Jun 21 09:03:32 1993 Steve Chamberlain (sac@phydeaux.cygnus.com)
19009
19010 * libc/stdio/fflush.c (fflush): Check for reent struct
19011 initialization.
19012 * libc/stdio/fdopen.c (fdopen): Avoid namespace conflict.
19013
19014Fri Jun 18 16:06:05 1993 Mark Eichin (eichin@rtl.cygnus.com)
19015
19016 * libc/stdlib/dtoastub.c: new file -- move user callable "dtoa"
19017 out of dtoa.c so it doesn't pollute the namespace.
19018 * libc/include/_syslist.h: new file -- mappings from _function to
19019 function, for systems where we can't win (by default, all of them,
19020 until we start updating system calls.)
19021 * libc/syscalls: new directory -- stubs for exporting _function
19022 names as unmodified function names.
19023 * libc/configure.in: add MISSING_SYSCALL_NAMES to enable
19024 _syslist.h on all platforms by default, but put hooks in for
19025 fake_sys_dir so we can include it when we've renamed the system
19026 calls.
19027 * libc/reent/execr.c libc/reent/filer.c libc/reent/fstatr.c
19028 libc/reent/linkr.c libc/reent/sbrkr.c libc/reent/statr.c
19029 libc/signal/raise.c libc/signal/signal.c libc/stdio/fdopen.c
19030 libc/stdio/mktemp.c libc/stdio/tmpnam.c libc/stdlib/abort.c
19031 libc/stdlib/system.c libc/unix/getcwd.c libc/unix/getlogin.c
19032 libc/unix/getpass.c libc/unix/getut.c libc/unix/ttyname.c: change
19033 non ANSI functions to call _function.
19034
19035Wed Jun 9 09:48:26 1993 Ian Lance Taylor (ian@cygnus.com)
19036
19037 * libc/stdlib/strtoul.c (_strtoul_r): Handle leading 0 correctly
19038 when base 16 is specified. Don't accept non-digits if radix > 10.
19039
19040Thu Jun 3 10:01:15 1993 Doug Evans (dje@canuck.cygnus.com)
19041
19042 * libc/include/math.h: Rename xxx_r fns to _xxx_r.
19043
19044Wed Jun 2 16:54:16 1993 Jim Wilson (wilson@sphagnum.cygnus.com)
19045
19046 * libc/include/sys/stat.h: Surround text after #endif with
19047 comments.
19048
19049Wed Jun 2 12:47:32 1993 Ian Lance Taylor (ian@cygnus.com)
19050
19051 * libc/stdlib/mallocr.c: If MALLOC_PROVIDED is defined, just make
19052 _malloc_r, _realloc_r, and free_r call the corresponding
19053 non-reentrant functions.
19054
19055 * libm/math/modf.c (modf): We now take the address of ipart, so
19056 don't make it a register variable.
19057
19058Tue Jun 1 18:25:54 1993 Doug Evans (dje@canuck.cygnus.com)
19059
19060 * libm/math/*: Rename all xxx_r fns to _xxx_r.
19061
19062Wed May 26 22:06:35 1993 Roland H. Pesch (pesch@cygnus.com)
19063
19064 * libc/libc.texinfo and embedded docn throughout: formatting
19065 improvements, minor rephrasing for clarity, and improved
19066 reentrancy docn.
19067
19068Sun May 23 17:29:49 1993 Steve Chamberlain (sac@thepub.cygnus.com)
19069
19070 * libm/ieeefp/infinity.c (maxpowtwof): Fix initialzation bug.
19071
19072 * libc/stdio/cvt.c (_licvt): Print the right value on machines
19073 where sizeof(int) != sizeof(long).
19074
19075Fri May 21 22:09:32 1993 Roland H. Pesch (pesch@fowanton.cygnus.com)
19076
19077 * libc/reent/execr.c, libc/reent/filer.c, libc/reent/linkr.c,
19078 libc/reent/sbrkr.c, libc/reent/statr.c, libc/stdio/tmpnam.c,
19079 libc/stdlib/atol.c, libc/stdlib/rand.c, libc/string/strpbrk.c,
19080 libc/string/strspn.c, libm/ieeefp/isnan.c, libm/math/bessel.c,
19081 libm/math/matherr.c: changes for better docn formatting (info).
19082
19083 * libc/libc.texinfo, libc/ctype/ctype.tex, libc/locale/locale/tex,
19084 libc/reent/reent.tex, libc/signal/signal.tex,
19085 libc/stdio/stdio.tex, libc/stdlib/stdlib.tex,
19086 libc/string/strings.tex, libc/sys/sys.tex, libc/time/time.tex,
19087 libm/libm.texinfo, libm/ieeefp/ieeefp.tex, libm/math/math.tex: use
19088 makeinfo node defaulting to get better Info file node structure.
19089 (Requires recent sac change to doc/makedoc.c and doc/doc.str.)
19090 Also include a few formerly missing sections (subroutines).
19091
19092 * doc/doc.str: delete fossil expansion for "func"
19093
19094 * default.menu, no-signal.menu: delete.
19095
19096 * Makefile.in, libc/Makefile.in, configure.in, host/any: simplify
17c0c97d 19097 method used to adjust doc for missing "signals" chapter when
8a0efa53
CF
19098 signal_dir is empty.
19099
19100Thu May 20 21:38:37 MDT 1993 Jeffrey Wheat (cassidy@cygnus.com)
19101
19102 * configure.in: added testsuite/libm.sac
19103
19104Wed May 19 14:52:34 1993 Doug Evans (dje@thepub.cygnus.com)
19105
19106 * libc/sys/sparc64/crt0.S: Set %g4 to 0 (to test Medium/Anywhere
19107 code model).
19108
19109Tue May 18 13:17:21 1993 Ian Lance Taylor (ian@cygnus.com)
19110
19111 * libm/Makefile.in: Use $(MAKE) rather than make, and define
19112 MAKEOVERRIDES to be empty.
19113
19114Mon May 17 08:42:44 1993 Ian Lance Taylor (ian@cygnus.com)
19115
19116 * configure.in: Don't build mips-*-* with -msoft-float, since that
19117 makes it incompatible with hard floating point.
19118
19119Mon May 17 00:03:35 MDT 1993 Jeffrey Wheat (cassidy@cygnus.com)
19120
19121 * Makefile.in: added recursive 'make check'
19122
19123Thu May 13 16:24:18 MDT 1993 Jeffrey Wheat (cassidy@cygnus.com)
19124
19125 * configure.in: added ./testsuite ./testsuite/libm.paranoia
19126 * ./testsuite/Makefile.in: created
19127 * ./testsuite/libm.paranoia: paranoia tests added
19128
19129Thu May 13 10:30:24 1993 Ian Lance Taylor (ian@cygnus.com)
19130
19131 * configure.in: For mips-*-* set machine_dir to mips.
19132
19133 * libc/machine/mips: New directory.
19134 * libc/machine/mips/Makefile.in: New file.
19135 * libc/machine/mips/setjmp.S: New file; simplistic MIPS version of
19136 setjmp and longjmp.
19137 * libc/include/machine/setjmp.h: Added __mips__ case.
19138
19139 * libc/machine/lmips: Removed unused and useless directory.
19140
19141Mon May 3 10:22:31 1993 Ian Lance Taylor (ian@cygnus.com)
19142
19143 * configure.in: Accept i486-*-sco* as well as i386-*-sco*.
19144
19145Thu Apr 15 15:16:44 1993 Doug Evans (dje@canuck.cygnus.com)
19146
19147 * libc/sys/sparc64/crt0.S: Add comment (%g1 contains atexit arg at
19148 start up).
19149
19150Fri Apr 9 13:32:26 1993 Ian Lance Taylor (ian@cygnus.com)
19151
19152 * libc/include/machine/setjmp-dj.h: Use _SETJMP_DJ_H rather than
19153 SETJMP_H.
19154
19155Thu Apr 8 10:07:18 1993 Doug Evans (dje@canuck.cygnus.com)
19156
19157 * libm/test/convert.c: structure member errno -> errno_val.
19158 Must include <errno.h> to use errno, it's a macro now.
19159 * libm/test/math.c: Ditto.
19160 * libm/test/math2.c: Include errno.h.
19161 * libm/test/string.c: Ditto.
19162 * libm/test/test.h: structure member errno -> errno_val.
19163 Remove extern int errno decl.
19164
19165Thu Apr 8 07:56:33 1993 Ian Lance Taylor (ian@cygnus.com)
19166
19167 * libc/stdio/Makefile.in: Added dependencies on local header
19168 files.
19169 * libc/stdio/std.h, libc/stdio/vfprintf.h: Removed unused header
19170 files.
19171
19172Wed Apr 7 16:19:32 1993 Ian Lance Taylor (ian@cygnus.com)
19173
19174 * libc/include/machine/ieeefp.h: Added __MIPSEB__ case.
19175
19176Wed Apr 7 10:55:21 1993 Doug Evans (dje@canuck.cygnus.com)
19177
19178 * libc/stdio/siprintf.c libc/stdio/sscanf.c libc/stdio/vsprintf.c:
19179 Initialize _data.
19180
19181 * libc/stdio/vfprintf.c: No need to declare _icvt, _licvt, _sicvt.
19182 * libc/stdio/local.h: Add prototype for _licvt.
19183
19184 * libc/stdio/ungetc.c (__submore): Use _malloc_r,_realloc_r
19185 instead of malloc,reealloc.
19186
19187 * libc/stdlib/local.h: New file.
19188 * libc/stdlib/efgcvt.c: #include local.h.
19189 (gcvt): Fix call to _gcvt.
19190 * libc/stdlib/ecvtbuf.c: #include local.h.
19191
19192 * libc/stdlib/Makefile.in: new files mallocr.c mstats.c.
19193 * libc/stdlib/mallocr.c mstats.c malloc.h: New files.
19194 * libc/stdlib/malloc.c: main routines moved to mallocr.c.
19195
19196 * libc/stdlib/atexit.c: moved global data to struct _reent.
19197 * libc/stdlib/exit.c: use struct _atexit in struct _reent.
19198
19199 * libc/reent/reent.c (inpure_data): _REENT_INIT macro modified.
19200
19201Wed Apr 7 09:41:50 1993 Doug Evans (dje@canuck.cygnus.com)
19202
19203 * libc/include/sys/reent.h: Stuff required by ANSI headers moved
19204 here from ../reent.h.
19205
19206Tue Apr 6 12:56:01 1993 Ian Lance Taylor (ian@cygnus.com)
19207
19208 * Makefile.in (MATHOBJS_IN_LIBC): List of object files which
19209 should be provided in both libc.a and libm.a.
19210 (libc.a): Depend on targ-include and libm.a. Copy
19211 $(MATHOBJS_IN_LIBC) from libm.a to libc.a.
19212 (libm.a): Depend on targ-include.
19213 * configure.in (subdirs): Removed libc/math.
19214
19215Mon Apr 5 10:18:16 1993 Steve Chamberlain (sac@thepub.cygnus.com)
19216
19217 * libm/ieeefp/infinity.c (maxpowtwo): Fix initialization bug.
19218
19219Sat Apr 3 11:06:07 1993 Doug Evans (dje@canuck.cygnus.com)
19220
19221 * libc/include/{errno.h, math.h, stdio.h, stdlib.h}: Use
19222 sys/reent.h instead of reent.h.
19223 * libc/include/reent.h: Split into two parts: stuff needed by ANSI
17c0c97d 19224 headers moved to sys/reent.h.
8a0efa53
CF
19225 * libc/include/signal.h: _MAX_SIGNALS moved to sys/signal.h.
19226 * libc/include/sys/signal.h: Define _MAX_SIGNALS if
19227 __need__MAX_SIGNALS defined.
19228 * libc/include/stdio.h: struct __sFILE moved to sys/reent.h.
19229 std{in,out,err} refer to new _std{in,out,err} members.
19230
19231Fri Apr 2 11:27:12 1993 Doug Evans (dje@canuck.cygnus.com)
19232
19233 * libc/include/sys/signal.h: #define _SYS_SIGNAL_H for general
19234 case.
19235
19236Fri Apr 2 09:41:10 1993 Doug Evans (dje@canuck.cygnus.com)
19237
19238 * libc/sys/sparc64/execve.S (execve): Insert nop in delay slot,
19239 rather than whatever macro seterrno() has.
19240
19241Thu Apr 1 16:47:08 1993 Doug Evans (dje@canuck.cygnus.com)
19242
19243 * libc/locale/locale.c: Reentrant routines _r_xxx renamed to
19244 _xxx_r. struct reent_struct renamed to struct _reent for ANSI.
19245
19246 * libc/include/machine/fastmath.h: Use _HAVE_STDC instead of
19247 __STDC__.
19248
19249 * libc/reent/{execr.c, filer.c, fstatr.c, linkr.c, reent.c,
19250 reent.tex, sbrkr.c, statr.c}: _r_xxx reentrant routines renamed to
19251 _xxx_r. struct reent_struct renamed to struct _reent for ANSI.
19252
19253 * libc/signal/signal.c: Reentrant routines _r_xxx renamed to
19254 _xxx_r. struct reent_struct renamed to struct _reent for ANSI.
19255
19256 * libc/stdio/{fclose.c, fdopen.c, findfp.c, fiprintf.c, flags.c,
19257 fopen.c, fprintf.c, freopen.c, fscanf.c, fseek.c, ftell.c,
19258 fwalk.c, getchar.c, gets.c, iprintf.c, local.h, makebuf.c,
19259 mktemp.c, perror.c, printf.c, putchar.c, puts.c, refill.c,
19260 remove.c, rename.c, scanf.c, setvbuf.c, siprintf.c, sprintf.c,
19261 sscanf.c, stdio.c, tmpfile.c, tmpnam.c, vfprintf.c, vfprintf.h,
19262 vfscanf.c, vprintf.c, vsprintf.c}: Reentrant routines _r_xxx
19263 renamed to _xxx_r. struct reent_struct renamed to struct _reent
19264 for ANSI. structure members given leading "_" for ANSI. Use
19265 _HAVE_STDC instead of __STDC__ and _HAVE_STDARG.
19266
19267 * libc/stdlib/{__adjust.c, calloc.c, dtoa.c, ecvtbuf.c, malloc.c,
19268 mprec.c, mprec.h, rand.c, std.h, strtod.c, strtol.c, strtoul.c,
19269 system.c}: Reentrant routines _r_xxx renamed to _xxx_r. struct
19270 reent_struct renamed to struct _reent for ANSI.
19271 Structure members given leading "_" for ANSI.
19272 _CONST --> const in prototypes.
19273 Use _HAVE_STDC instead of __STDC__.
19274
19275 * libc/string/strtok.c: Reentrant routines _r_xxx renamed to
19276 _xxx_r.
19277 struct reent_struct renamed to struct _reent for ANSI.
19278 Structure members given leading "_" for ANSI.
19279
19280 * libc/time/asctime.c: Reentrant routines _r_xxx renamed to
19281 _xxx_r.
19282 struct reent_struct renamed to struct _reent for ANSI.
19283
19284 * libm/math/{acos.h, acosh.h, asin.c, asinh.h, atanh.h, bessel.h,
19285 cbrt.h, cosh.h, erf.c, erf.h, error.c, exp.c, fmod.c, frexp.h,
19286 gamma.h, hypot.h, ldexp.c, log.h, log10.c, log1p.c log2.c,
19287 mathimpl.h, pow.c, remainder.c, sincos.c, sinh.h, sqrt.h, tan.c,
19288 tanh.h}: struct reent_struct renamed to struct _reent for ANSI.
19289
19290 * libc/include/{_ansi.h, ctype.h, math.h, reent.h, locale.h,
19291 signal.h, stdio.h, stdlib.h, string.h, time.h}:
19292 Use _HAVE_STDC instead of __STDC__ and _HAVE_STDARG.
19293 #ifndef _STRICT_ANSI non-ANSI routines.
19294 Reentrant routines renamed from _r_xxx to _xxx_r.
19295 No need to use _STRICT_ANSI on _xxx_r reentrant routines.
19296 Use _STRICT_ANSI instead of __STRICT_ANSI, _ANSI_SOURCE, etc.
19297 Clean up namespace (structure members have leading "_").
19298 struct reent_struct renamed to struct _reent for ANSI compliance.
19299 _CONST --> const in function prototypes.
19300
19301 * libc/include/string.h: Add NULL and size_t.
19302
19303 * libc/sys/sparc64/Makefile.in: New syscall routines for link,
19304 unlink, wait, wait4. Reentrant syscall routines close, fork,
19305 fstat, link, lseek, open, read, sbrk, stat, unlink, wait, wait4,
19306 write.
19307 * libc/sys/sparc64/cerror.S (cerror_r): New routine.
19308 * libc/sys/sparc64/{close.S, fork.S, fstat.S, link.S, lseek.S,
19309 open.S, read.S, sbrk.S, stat.S, unlink.S, wait.S, wait4.S,
19310 write.S}: Define reentrant versions.
19311 * libc/sys/sparc64/sys/syscallasm.h (defsyscall_r): New macro for
19312 reentrant syscalls.
19313
19314 * libc/sys/sparc64/crt0.S (start): Fix initialization of environ.
19315
19316 * libc/include/stdlib.h (RAND_MAX): Fix value.
19317
19318Thu Apr 1 12:28:30 1993 Ian Lance Taylor (ian@cygnus.com)
19319
19320 * libc/sys/a29khif/_main.c: Removed unnecessary file.
19321 * libc/sys/a29khif/Makefile.in (OFILES): Removed _main.c, moved
19322 VPATH support targets after all: target.
19323
19324 * stub/mvme135/mvme.S: Renamed exceptionhandler to
19325 exceptionHandler, which is what mvme135-stub.c expects.
19326
19327Wed Mar 31 17:42:03 1993 Doug Evans (dje@cygnus.com)
19328
19329 * libc/stdio/tmpnam.c (worker): Fix test for _r_open() failure.
19330
19331 * libc/unix/getpass.c (getpass): Use stdin,stderr instead of
19332 def_stdin/def_stderr (latter removed from stdio.h to make it ANSI
19333 compliant).
19334
19335Tue Mar 30 09:58:21 1993 Doug Evans (dje@canuck.cygnus.com)
19336
19337 * libc/reent/execr.c (_r_wait): Re-order args to make reent_struct
19338 first.
19339 libc/reent/filer.c (_r_open, _r_close, _r_lseek, _r_read,
19340 _r_write): Ditto.
19341 libc/reent/fstatr.c (_r_fstat): Ditto.
19342 libc/reent/linkr.c (_r_link, _r_unlink): Ditto.
19343 libc/reent/sbrkr.c (_r_sbrk): Ditto.
19344 libc/reent/statr.c (_r_stat): Ditto.
19345
19346 * libc/stdio/fopen.c (_r_fopen): Re-order args to _r_open.
19347 * libc/stdio/freopen.c (freopen): Ditto for _r_open, _r_free.
19348 * libc/stdio/fseek.c (fseek): Ditto for _r_fseek.
19349 * libc/stdio/makebuf.c (__smakebuf): Ditto for _r_fstat.
19350 * libc/stdio/mktemp.c (_gettemp): Ditto for _r_stat, _r_open.
19351 * libc/stdio/remove.c (_r_remove): Ditto for _r_unlink.
19352 * libc/stdio/rename.c (_r_rename): Ditto for _r_link, _r_unlink.
19353 * libc/stdio/stdio.c (__sread): Ditto for _r_read.
19354 (__swrite): Ditto for _r_lseek, _r_write.
19355 (__sseek): Ditto for _r_lseek.
19356 (__close): Ditto for _r_close.
19357 * libc/stdio/tmpnam.c (worker): Ditto for _r_open, _r_close.
19358
19359 * libc/stdlib/malloc.c (_r_morecore): Re-order args to _r_sbrk.
19360 * libc/stdlib/system.c (_r_system): Ditto for _r_wait.
19361
19362 * libc/include/reent.h: Re-order arguments to _r_xxx syscall fns
19363 to make reent_struct the first argument (and thus consistent with
19364 the rest of newlib).
19365
19366 * stub/mvme135/mvme135-stub.c (initializeRemcomErrorFrame): Remove
19367 reference to __STDC__.
19368
19369Mon Mar 29 12:34:32 1993 Doug Evans (dje@canuck.cygnus.com)
19370
19371 * libc/stdlib/exit.c (exit): Use _REENT->__cleanup instead of
ba3ccd63 19372 global __cleanup.
8a0efa53
CF
19373
19374Wed Mar 24 11:54:35 1993 Doug Evans (dje@canuck.cygnus.com)
19375
19376 * libc/stdio/freopen.c (freopen): Ensure stdio is initialized
19377 first.
19378 libc/stdio/fclose.c (fclose): Ditto.
19379
19380Tue Mar 23 01:26:52 1993 Doug Evans (dje@rtl.cygnus.com)
19381
19382 * Run through indent and rename reentrant routines for ANSI.
19383 libc/stdio/{clearerr.c cvt.c fclose.c fdopen.c feof.c ferror.c
19384 fflush.c fgetc.c fgetpos.c fgets.c findfp.c fiprintf.c flags.c
19385 fopen.c fprintf.c fputc.c fputs.c fread.c freopen.c fscanf.c
19386 fseek.c fsetpos.c ftell.c fvwrite.c fwalk.c fwrite.c getc.c
19387 getchar.c gets.c iprintf.c makebuf.c mktemp.c perror.c printf.c
19388 putc.c putchar.c puts.c refill.c remove.c rename.c rewind.c rget.c
19389 scanf.c setbuf.c setvbuf.c siprintf.c sprintf.c sscanf.c stdio.c
19390 tmpfile.c tmpnam.c ungetc.c vfprintf.c vfscanf.c vprintf.c
19391 vsprintf.c wbuf.c wsetup.c local.h}
19392
19393 * libc/locale/locale.c: Reformat and rename for ANSI, GNU style.
19394
19395 * Run through indent and rename xxx_r fns to _r_xxx for ANSI.
19396 libc/stdlib/{__adjust.c __exp10.c __ten_mu.c abort.c abs.c
19397 assert.c atexit.c atof.c atoi.c atol.c bsearch.c calloc.c div.c
19398 dtoa.c ecvtbuf.c efgcvt.c exit.c getenv.c labs.c ldiv.c malloc.c
19399 mbtowc.c mprec.c putenv.c qsort.c rand.c setenv.c strdup.c
19400 strtod.c strtol.c strtoul.c system.c wctomb.c mprec.h}
19401
19402 * Run through indent.
19403 libc/string/{bcmp.c bcopy.c bzero.c index.c memchr.c memcmp.c
19404 memcpy.c memmove.c memset.c rindex.c strcat.c strchr.c strcmp.c
19405 strcoll.c strcpy.c strcspn.c strerror.c strlen.c strncat.c
19406 strncmp.c strncpy.c strpbrk.c strrchr.c strspn.c strstr.c strtok.c
19407 strxfrm.c}
19408
19409 * libc/time/{asctime.c clock.c ctime.c difftime.c gmtime.c
19410 localtime.c mktime.c strftime.c time.c}:
19411 Run through indent and rename xxx_r (reentrant) fns to _r_xxx for ANSI.
19412
19413 * Reformatting + renaming (for ANSI, GNU style, consistency).
19414 libc/include/{_ansi.h, assert.h, ctype.h, errno.h, fastmath.h,
19415 ieeefp.h, locale.h, math.h, paths.h, pwd.h, reent.h, setjmp.h,
19416 signal.h, stdio.h, stdlib.h, string.h, time.h, unistd.h}
19417
19418Fri Mar 19 11:28:01 1993 Doug Evans (dje@cygnus.com)
19419
19420 * libc/include/stdio.h (stdin_r): Fix.
19421
19422Fri Mar 19 09:43:48 1993 Ian Lance Taylor (ian@cygnus.com)
19423
19424 * Makefile.in: Unexport some variables to keep GNU make from
19425 putting them in the environment and using up needed ARG_MAX space
19426 (a hack is used to let this work with older makes as well).
19427
19428Tue Mar 16 15:11:08 1993 Ian Lance Taylor (ian@cygnus.com)
19429
19430 * Makefile.in: Use $(MAKE) rather than make.
19431 (MAKEOVERRIDES): Define to be empty.
19432 (FLAGS_TO_PASS): Don't pass down LD (it's not used).
19433 (libc.a, libm.a): Depend on targ-include.
19434 * host/any (LD): Don't define.
17c0c97d 19435 (INCLUDES): Use targ-include.
8a0efa53
CF
19436 * stub/Makefile.in (MAKEOVERRIDES): Define to be empty.
19437 (FLAGS_TO_PASS): Don't pass down LD (it's not used).
19438 * libc/Makefile.in: Use $(MAKE) rather than make.
19439 (MAKEOVERRIDES): Define to be empty.
19440 (FLAGS_TO_PASS): Don't pass LD (it's not used).
19441 (all): Rewrote to be slightly smaller.
19442 * libc/machine/Makefile.in, libc/sys/Makefile.in (MAKEOVERRIDES):
19443 Define to be empty.
19444 (FLAGS_TO_PASS): Don't pass LD (it's not used).
19445 * libm/Makefile.in (FLAGS_TO_PASS): Don't pass LD (it's not used).
19446
19447Mon Mar 15 08:45:41 1993 Ian Lance Taylor (ian@cygnus.com)
19448
19449 * libc/sys/go32/gerrno.s: Renamed from errno.s to avoid conflict
19450 with errno/errno.c.
19451
19452Fri Mar 12 09:46:54 1993 Ian Lance Taylor (ian@cygnus.com)
19453
19454 * Changes for reentrancy.
19455 libc/stdio/fdopen.c, libc/stdio/freopen.c, libc/stdio/perror.c:
19456 Use ptr->_errno, not errno.
19457 libc/stdio/mktemp.c (mkstemp_r, mktemp_r): New functions.
19458 libc/stdio/remove.c (remove_r): New function.
19459 libc/stdio/rename.c (rename_r): New function.
19460 libc/stdio/fopen.c, libc/stdio/freopen.c, libc/stdio/fseek.c,
19461 libc/stdio/makebuf.c, libc/stdio/mktemp.c, libc/stdio/remove.c,
19462 libc/stdio/rename.c, libc/stdio/stdio.c, libc/stdio/tmpnam.c: Use
19463 reentrant versions of system calls.
19464 libc/stdio/gets.c: Call getchar_f, not nonexistent getchar_r.
19465 libc/stdio/scanf.c: Use stdin_r, not nonexistent stdin_n.
19466 libc/stdio/tmpfile.c: Use tmpnam_f, not nonexistent tmpnam_r.
19467 libc/stdio/findfp.c: Include <string.h>.
19468 libc/stdio/fread.c, libc/stdio/rget.c, libc/stdio/scanf.c: Include
19469 "local.h".
19470 libc/stdio/wbuf.c: Include "fvwrite.h"
19471
19472 * libc/stdlib/{dtoa.c, ecvtbuf.c, mprec.c, strtod.c}: Include
19473 <string.h>.
19474 libc/stdlib/malloc.c: Call sbrk_r rather than sbrk.
19475 (NULL): Don't define if already defined.
19476 libc/stdlib/system.c: Call reentrant versions of system calls.
19477 (system_r): New function.
19478
19479 * Changes for reentrancy.
19480 libc/include/_ansi.h (_PARAMS): New macro.
19481 libc/include/errno.h: Define errno as a macro that calls __errno.
19482 (__errno_r): New macro for reentrant code.
19483 libc/include/math.h: Include reent.h. Declare many reentrant
19484 functions.
19485 (signgam): Now a macro, not a variable.
19486 (struct exception): Added err field.
19487 libc/include/reent.h: Don't declare __sglue. Added function
19488 declarations.
19489 (struct reent_struct): Moved errno to beginning. Added _signgam.
19490 libc/include/stdio.h, libc/include/stdlib.h: Added function
19491 declarations.
19492
19493 * More reentrancy hacking.
19494 libc/errno/errno.c (__errno): New function.
19495 libc/reent/execr.c, libc/reent/filer.c, libc/reent/fstatr.c,
19496 libc/reent/linkr.c, libc/reent/sbrkr.c, libc/reent/statr.c: New
19497 files.
17c0c97d 19498
8a0efa53
CF
19499 * Added many new reentrant functions to libm/math/*.
19500 libm/math/error.c (__matherror): Added reent_struct pointer
19501 argument. Changed all callers.
19502 libm/math/gamma.c (signgam): Removed. Set ptr->_signgam, instead.
19503 libm/math/exp.h, libm/math/pow.h, libm/math/sincos.h,
19504 libm/math/tan.h: Removed obsolete unused header files.
19505
19506 * libc/sys/a29khif/stubs.s: Use register lr0, not v0.
19507
19508 * libc/sys/sun/Makefile.in (COPYOFILES): Don't pull in errno.o.
19509
19510Mon Mar 8 16:43:43 1993 Steve Chamberlain (sac@thepub.cygnus.com)
19511
19512 * libc/sys/a29khif/stubs.s: clobber safe register, and fill all
19513 delay slots.
19514
19515Tue Mar 2 14:47:00 1993 Jeffrey Osier (jeffrey@fowanton.cygnus.com)
19516
ba3ccd63 19517 * libc/libc.texinfo: comment out reentrancy chapter (duh)
8a0efa53
CF
19518
19519Tue Mar 2 14:34:16 1993 Jeffrey Osier (jeffrey@fowanton.cygnus.com)
19520
ba3ccd63 19521 * libc/reent/reent.tex: New file. (text from
8a0efa53
CF
19522 newlib/libc/libc.texinfo)
19523 * libc/stdio/tmpnam.c: fixed doc typo
19524 * libc/stdlib/rand.c: fixed doc typo
19525
19526Tue Mar 2 14:34:16 1993 Jeffrey Osier (jeffrey@fowanton.cygnus.com)
19527
ba3ccd63 19528 * libc/reent/reent.tex: New file. (text from
8a0efa53
CF
19529 newlib/libc/libc.texinfo)
19530
19531Fri Feb 26 12:20:54 1993 Steve Chamberlain (sac@thepub.cygnus.com)
19532
19533 support for reentrancy
19534 * libc/reent/reent.c, libc/reent/Makefile.in, libc/reent/reent.c:
19535 new files
19536 * libc/errno/errno.c, libc/include/ieeefp.h,
19537 libc/include/locale.h, libc/include/reent.h,
19538 libc/include/signal.h, libc/include/stdio.h,
19539 libc/include/stdlib.h, libc/include/string.h, libc/include/time.h,
19540 libc/signal/signal.c libc/stdio/cvt.c, libc/stdio/fclose.c,
19541 libc/stdio/fdopen.c, libc/stdio/fflush.c, libc/stdio/fgets.c,
19542 libc/stdio/findfp.c, libc/stdio/flags.c, libc/stdio/fopen.c,
19543 libc/stdio/fputc.c, libc/stdio/freopen.c, libc/stdio/fseek.c,
19544 libc/stdio/ftell.c, libc/stdio/fwalk.c, libc/stdio/getchar.c,
19545 libc/stdio/gets.c, libc/stdio/glue.h, libc/stdio/iprintf.c,
19546 libc/stdio/local.h, libc/stdio/makebuf.c, libc/stdio/perror.c,
19547 libc/stdio/printf.c, libc/stdio/putchar.c, libc/stdio/puts.c,
19548 libc/stdio/refill.c, libc/stdio/scanf.c, libc/stdio/setvbuf.c,
19549 libc/stdio/sprintf.c, libc/stdio/tmpfile.c, libc/stdio/tmpnam.c,
19550 libc/stdio/ungetc.c, libc/stdio/vfprintf.c, libc/stdio/vfprintf.h,
19551 libc/stdio/vfscanf.c, libc/stdio/vprintf.c, libc/stdio/wsetup.c,
19552 libc/stdlib/__adjust.c, libc/stdlib/__exp10.c,
19553 libc/stdlib/assert.c, libc/stdlib/atexit.c, libc/stdlib/atol.c,
19554 libc/stdlib/dtoa.c, libc/stdlib/ecvtbuf.c, libc/stdlib/malloc.c,
19555 libc/stdlib/mprec.c, libc/stdlib/mprec.h, libc/stdlib/rand.c,
19556 libc/stdlib/setenv.c, libc/stdlib/std.h, libc/stdlib/strtod.c,
19557 libc/stdlib/strtol.c, libc/stdlib/strtoul.c, libc/string/strtok.c,
19558 libc/time/asctime.c, libc/time/localtime.c, libc/time/mktime.c,
19559 libc/time/strftime.c: modify to provide reentracy.
19560
19561 new routines:
19562 strtok_r, asctime_r, fdopen_r, _cleanup_r, fopen_r, iprintf_r,
19563 perror_r, printf_r, putchar_r, puts_r, scanf_r, sprintf_r,
19564 tmpfile_r, vfiprintf_r, vfprintf_r, strtod_r, dtoa_r, rand_r,
19565 srand_r, strtoul_r,strtol_r, free_r, malloc_r, morecore_r,
19566 mstats_r, realloc_r, localeconv_r, setlocale_r
19567
19568Wed Feb 17 20:17:15 1993 Mark Eichin (eichin@cygnus.com)
19569
19570 * libc/include/machine/ieeefp.h, libc/include/machine/setjmp.h,
19571 libc/include/sys/config.h, libc/include/sys/signal.h,
19572 libc/include/sys/stat.h, libc/include/sys/types.h: For compiler
19573 provided macros (such as m68000), use the ansi version
19574 (__m68000__) so that the library can be used with code compiled
19575 -ansi. In particular, m68000, mc68000, _AM29K, i386, MIPSEL, unix,
19576 and sparc.
19577
19578Wed Feb 17 13:01:34 1993 Jim Wilson (wilson@sphagnum.cygnus.com)
19579
19580 * configure.in (sparc*): Don't set -fsoft-float for sparc
19581 configurations. Do set -fsoft-float for sparclite configurations.
19582
19583Fri Feb 12 16:25:52 1993 Roland H. Pesch (pesch@fowanton.cygnus.com)
19584
19585 * default.menu, no-signal.menu: alternate forms of libc main menu
ba3ccd63 19586 (in newlib rather than newlib/libc due to configuration restrictions)
8a0efa53
CF
19587
19588 * configure.in: select one of the two menus above, link to
19589 libc.menu
19590
ba3ccd63 19591 * libc/libc.texinfo: include menu from separate file
8a0efa53
CF
19592
19593Fri Feb 12 12:50:06 1993 Ian Lance Taylor (ian@cygnus.com)
19594
19595 * Makefile.in (FLAGS_TO_PASS): Put INSTALL back in.
19596 (info): Split long shell command in half.
17c0c97d
EB
19597 * libc/Makefile.in (info, targetdep.tex): Don't pass everything to
19598 sub-makes, just CHEW and TARGETDOC.
8a0efa53
CF
19599 (targetdep.tex): Removed now special handling of sys and machine
19600 subdirectories, made obsolete some time ago.
19601 * libc/machine/Makefile.in (doc): Don't pass everything to
19602 sub-make, just CHEW and TARGETDOC.
19603 (Makefile): New target.
19604 * libc/sys/Makefile.in (Makefile): New target.
19605
19606Thu Feb 11 15:25:15 1993 Ian Lance Taylor (ian@cygnus.com)
19607
19608 * Makefile.in (here and most subdirectories): Only pass down CHEW
19609 and TARGETDOC when making info, not for other targets.
19610
19611 * Makefile.in (here and most subdirectories), host/any: Use $(AR)
19612 $(AR_FLAGS) rather than $(ARUPDATE).
19613
19614Wed Feb 10 11:57:52 1993 Ian Lance Taylor (ian@cygnus.com)
19615
19616 * Try to reduce command line length:
19617 * Makefile.in (FLAGS_TO_PASS): don't pass down exec_prefix,
19618 CC_FOR_BUILD, CFLAGS_FOR_BUILD, INSTALL or CHEW.
19619 (info, docs): pass CC_FOR_BUILD and CFLAGS_FOR_BUILD to doc.
19620 (info): Pass CHEW to other subdirs.
19621
19622Tue Feb 9 14:01:42 1993 Mark Eichin (eichin@cygnus.com)
19623
19624 * configure.in: add signal_dir, like unix_dir, but by default it
19625 is set to "signal" so that a29khif can turn it off (since a29khif
19626 has raise() as part of machine-specific signal.s.)
19627
19628Fri Jan 15 12:09:50 1993 Steve Chamberlain (sac@thepub.cygnus.com)
19629
19630 * libc/sys/config.h, libc/machine/ieeefp.h: add Z8000 support
19631 * libc/stdio/Makefile.in: pass CFLAGS so vfiprintf.c gets built
19632 correctly.
19633 * libc/stdio/fdopen.c, libc/stdio/fgets.c, libc/stdio/fscanf.c,
19634 libc/stdio/vfprintf: type lint.
19635 * libc/sys/z8ksim/crt0.c (start): Z8001/Z8002 independent
19636 initialzation code.
19637 * libc/sys/z8ksim/glue.c: Z8001/Z8002 clean system calls.
19638
19639Tue Dec 29 10:15:33 1992 Ian Lance Taylor (ian@cygnus.com)
19640
19641 * stub/mvme135/mvme135-asm.S: new file.
19642 stub/mvme135mvme135-stub.c: moved all assembler routines into
19643 mvme135-asm.S.
19644 stub/mvme135/Makefile.in: build mvme135-stub.o.
19645
19646Mon Dec 28 12:40:43 1992 Ian Lance Taylor (ian@cygnus.com)
19647
19648 * Makefile.in: don't pass down $(CPP); use $(CC) -E in
19649 sub-Makefiles instead, to try to avoid line length limitations.
19650
19651Mon Dec 21 18:36:13 1992 Per Bothner (bothner@rtl.cygnus.com)
19652
19653 * libc/include/unistd.h (read, write): Use void* instead of
19654 char*.
19655
19656Thu Dec 17 13:49:46 1992 Mark Eichin (eichin@cygnus.com)
19657
19658 * stub/go32/resetpc: sample script to send a reset packet to the
19659 stub
19660
19661 * stub/go32/I386STUB.C: new file, gdb/i386stub.c modified for the
19662 DOS environment, which compiles with Turbo C.
19663
19664 * stub/go32/DSER32.LNK: new file, linker commands for serial
ba3ccd63 19665 remote stub.
8a0efa53
CF
19666
19667 * stub/go32/CONTROL.C: turn off debug_mode, add CYGNUS tag line to
19668 start up message to identify version; call set_debug_traps.
19669
19670 * stub/go32/DEBUG.C: turn off debug_mode (so stub doesn't need any
19671 keyboard interaction); call handle_exception() in go_til_stop,
19672 rather than return, so that the remote stub gets control.
19673
19674 * stub/go32/MAKEFILE: fixed to actually use DOS commands (del and
19675 rename, rather than mv), set flags that work with current Turbo C,
19676 including using the /3 flag; also, add commands to build dser32.
19677
19678 * stub/go32/DEBUG32.LNK, stub/go32/GO32.LNK: fix paths to match
19679 default Turbo C installation (\tc rather than \usr)
19680
19681 * stub/go32/MONO.C (printf): current Turbo C uses "..." instead of
ba3ccd63 19682 "&..."
8a0efa53
CF
19683
19684Mon Dec 14 09:37:33 1992 Steve Chamberlain (sac@thepub.cygnus.com)
19685
19686 * libc/include/math.h: added _DOUBLE_IS_32BITS checks
19687
19688Thu Nov 12 22:31:04 1992 Steve Chamberlain (sac@thepub.cygnus.com)
19689
19690 * libc/stdio/cvt.c (licvt): new function to convert ints when
19691 sizeof(int) != sizeof(long).
19692
19693 * libc/include/stdio.h: added prototype for iprintf.
19694 * libc/include/machine/limits.h machine/ieeefp.h: z8k stuff
19695
19696Tue Nov 10 12:18:12 1992 Ian Lance Taylor (ian@cygnus.com)
19697
19698 * libc/machine/m68k/setjmp.S: use __USER_LABEL_PREFIX__ and
19699 __REGISTER_PREFIX__.
19700
19701Mon Nov 2 13:50:14 1992 Ian Lance Taylor (ian@cygnus.com)
19702
19703 * libc/sys/m68kbare: moved into stub directory.
19704
19705Mon Nov 2 13:40:42 1992 Ian Lance Taylor (ian@cygnus.com)
19706
19707 * configure.in, Makefile.in: created new directory stub, to hold
19708 sample code for specific targets.
19709
19710Wed Oct 28 02:19:55 1992 Mark Eichin (eichin@cygnus.com)
19711
19712 * restored libc/sys/go32/sys/fcntl.h, to override incorrect values
19713 in the unified libc/include/sys/fcntl.h.
19714
19715Wed Oct 21 13:55:58 1992 Doug Evans (dje@rtl.cygnus.com)
19716
19717 * libc/stdlib/ecvtbuf.c: (print_f,_gcvt): printf("%f", 0.01)
19718 printed .01, not 0.01.
19719
19720Mon Oct 19 11:05:55 1992 Ian Lance Taylor (ian@cygnus.com)
19721
19722 * configure.in: compile with -m68000 for m68* targets.
19723
19724Sun Oct 18 05:29:05 1992 Mark Eichin (eichin@cygnus.com)
19725
19726 * libm/math/remainder.c (remainder): document the svr4 and sunos
19727 references used to construct the function.
19728
19729Sat Oct 17 21:46:16 1992 Mark Eichin (eichin@cygnus.com)
19730
19731 * libm/math/remainder.c (rint, remainder): fix old typos.
19732 * libm/math/Makefile.in: actually build remainder.c (functions
19733 rint and remainder, from SysVr4 Programmer's Guide floor(3m) man
19734 page.)
19735
19736Thu Oct 15 07:48:05 1992 Ian Lance Taylor (ian@cygnus.com)
19737
19738 * libc/string/bcopy.c: BSD version works on overlapping strings,
19739 so ours should too.
19740
19741 * libc/stdlib/system.c: always invoke /bin/sh, not getenv
19742 ("SHELL").
19743
19744Wed Oct 14 11:07:11 1992 Ian Lance Taylor (ian@cygnus.com)
19745
19746 * Makefile.in (docs): new target.
19747
19748Wed Oct 14 07:44:25 1992 Ian Lance Taylor (ian@cygnus.com)
19749
19750 * libc/include/sys/times.h: define clock_t as required by POSIX.
19751 libc/include/time.h: protect clock_t from multiple definitions.
19752
19753Wed Oct 7 11:02:21 1992 Mark Eichin (eichin at tweedledumber.cygnus.com)
19754
19755 * libm/math/sqrt.h (sqrt): actually, the final version of fp-bit
19756 does not need more than the original three iterations to get
19757 within 1 ulp. (Paranoia tests for rounding to better than that,
19758 but further iterations *don't* help, only more subtle changes
19759 can.)
19760
19761Tue Oct 6 09:22:12 1992 Ian Lance Taylor (ian@cygnus.com)
19762
19763 * libc/sys/vxworks68, libc/sys/vxworks960: removed, since they
19764 were doing nothing useful.
19765
19766Tue Oct 6 08:48:13 1992 Ian Lance Taylor (ian@cygnus.com)
19767
19768 * configure.in: define MALLOC_PROVIDED for vxworks targets;
19769 removed sys_dir settings of vxworks68 and vxworks960.
19770 host/any: don't pass -nostdinc to gcc, since newlib no longer
19771 provides all required header files.
19772
19773 * libc/stdlib/malloc.c: only compile this file if MALLOC_PROVIDED
19774 is not defined; this provides a hook for VxWorks.
19775
19776Mon Oct 5 03:44:57 1992 Mark Eichin (eichin at tweedledumber.cygnus.com)
19777
19778 * libc/stdio/setvbuf.c (setvbuf): while ANSI does say to malloc a
19779 buffer if buf is NULL, don't do it here -- it is already being
19780 done by makebuf elsewhere in stdio.
19781
19782Fri Oct 2 13:12:07 1992 Ian Lance Taylor (ian@cygnus.com)
19783
19784 * libc/sys/a29khif/Makefile.in: assemble Steve's list of stubs so
19785 that C programs can call functions without using initial
19786 underscores.
19787
19788Thu Oct 1 09:37:47 1992 Ian Lance Taylor (ian@cygnus.com)
19789
19790 * libc/stdlib/abort.c (abort): call exit, in case kill returns.
19791
19792Wed Sep 30 08:22:18 1992 Ian Lance Taylor (ian@cygnus.com)
19793
19794 * configure.in: set TARGET_CFLAGS for certain CPU types to
19795 -msoft-float.
19796
19797Tue Sep 29 21:09:32 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
19798
19799 * libc/sys/m68kbare/glue.c: use <_ansi.h> instead of <ansidecl.h>
19800
19801Mon Sep 28 14:58:44 1992 Ian Lance Taylor (ian@cygnus.com)
19802
19803 * configure.in: added sys_dir m68kbare for m68k*-unknown-aout and
19804 m68k*-unknown-coff.
19805
19806Fri Sep 25 08:33:21 1992 Ian Lance Taylor (ian@cygnus.com)
19807
19808 * libc/include/stdio.h: define __need___va_list before including
19809 <stdarg.h>, to avoid defining va_arg, et. al.
19810
19811Tue Sep 22 13:47:00 1992 Ian Lance Taylor (ian@cygnus.com)
19812
19813 * libc/sys/Makefile.in: handle the case of an empty $(sys_dir)
19814 (don't cd to the user's home directory).
19815
19816 * libc/Makefile.in: replaced all instances of $(MAKE) with make.
19817 In general this is the wrong thing to do, but I can't get around
19818 GNU make's insistence on passing command line arguments any other
19819 way.
19820
19821Tue Sep 22 10:12:44 1992 Ian Lance Taylor (ian@cygnus.com)
19822
19823 * configure.in: always configure the libc/sys directory, since it
19824 now provides a required documentation file.
19825
19826 * Makefile.in: replaced all instances of $(MAKE) with make. In
19827 general this is the wrong thing to do, but I can't get around GNU
19828 make's insistence on passing command line arguments any other way.
19829
19830Mon Sep 21 22:42:26 1992 Ian Lance Taylor (ian@tweedledumbest.cygnus.com)
19831
19832 * libc/stdlib/ecvtbuf.c (_gcvt): string for 0 was not null
19833 terminated.
19834
19835 * libc/stdio/local.h: include <stdarg.h> to define va_list.
19836 libc/stdio/vsprintf.c: include <stdarg.h> rather than <varargs.h>.
19837
19838 * libc/include/float.h, libc/include/stdarg.h,
19839 libc/include/stddef.h, libc/include/varargs.h: removed; use gcc
19840 versions instead.
19841 libc/include/stdio.h: get size_t from <stddef.h>, and va_list from
19842 <stdarg.h>, not from <machine/types.h>. Protect definition of
19843 NULL.
19844 libc/include/time.h: get size_t from stddef.h. Protect definition
19845 of NULL.
19846 libc/include/machine/limits.h: override gcc <limits.h> by defining
19847 _LIMITS_H___. Don't define CLK_TCK. Copied in gcc <limits.h> to
19848 get correct INT_MIN and LONG_LONG values.
19849 libc/include/machine/types.h: don't define ptrdiff_t, wchar_t,
19850 size_t or va_list at all; they're now gotten from stddef.h
19851 instead.
19852 libc/include/machine/varargs.h: removed; use gcc version instead.
19853 libc/include/sys/types.h: explicitly include <machine/types.h>.
19854
19855 * libm/math/sqrt.h: using the fp-bit routines appears to require
19856 more iterations.
19857
19858 * Makefile.in, host/any: let system include files override machine
19859 include files.
19860
19861Sat Sep 19 21:10:06 1992 Mark Eichin (eichin at tweedledumber.cygnus.com)
19862
19863 * libc/include/machine/types.h: allow __*_TYPE__ from cpp to
19864 override _*_T_ definitions defaulted here.
19865
19866Tue Sep 15 11:14:46 1992 Ian Lance Taylor (ian@cygnus.com)
19867
19868 * Makefile.in (install): install the include files in
19869 $(tooldir)/include, not $(exec_prefix)/include.
19870
19871Fri Sep 11 15:48:43 1992 Ian Lance Taylor (ian@cygnus.com)
19872
19873 * Makefile.in (install): fixed typo, and changed install to not
19874 force rebuild of libc.a and libm.a.
19875
19876Thu Sep 10 10:46:09 1992 Ian Lance Taylor (ian@cygnus.com)
19877
19878 * libc/sys/a29khif/*: Changed all .include's to include
19879 sys/sysmac.h, not plain sysmac.h. The header files live in sys so
19880 that they will be installed for the user.
19881
19882 * Makefile.in (all): create targ-include, a directory holding the
19883 machine and system specific header files during the build.
19884 (install): fixed installation of machine and system specific
19885 header files.
19886
19887 * Makefile.in: fixed comment.
19888 host/any: change .s.o rule to use $(AS) rather than $(CC), so that
19889 we can pass $(INCLUDES) to it.
19890
19891Thu Sep 10 10:13:13 1992 Ian Lance Taylor (ian@cygnus.com)
19892
19893 * libc/include/sys/param.h: new generic file, which may be
19894 overridden for specific systems.
19895
19896 * libc/include/sys/signal.h: define all ANSI signal names, and
19897 NSIG (which is not ANSI) for a29k.
19898
19899Tue Sep 8 09:04:30 1992 Ian Lance Taylor (ian@cygnus.com)
19900
19901 * Makefile.in: don't pass down arguments the lower level makes
19902 will not need.
19903 * libc/Makefile.in: recurse directly, rather than using subdir_do,
19904 in hopes of avoiding argument length limits.
19905 * libm/Makefile.in: recurse directly, rather using subdir_do, in
19906 hopes of avoiding argument length limits.
19907
19908Tue Sep 8 08:27:22 1992 Ian Lance Taylor (ian@cygnus.com)
19909
19910 * libc/include/sys/fcntl.h: include <sys/types.h> to ensure that
19911 mode_t is defined.
19912
19913Mon Sep 7 14:02:07 1992 Ian Lance Taylor (ian@cygnus.com)
19914
19915 * Fixed make info and make install-info for newlib, changing most
19916 Makefile.in and several *.tex files. Moved doc directory from
19917 libc to top level.
19918
19919 * libc/time/mktime.c (_DAYS_IN_MONTH): actually, not const.
19920 Should be rewritten.
19921
19922 * libc/string/strings.tex: renamed node index to node index
19923 function, so that it does not conflict with the top level index
19924 node.
19925
19926 * libc/include/sys/config.h: define __IEEE_BIG_ENDIAN for h8300.
19927
19928Fri Sep 4 02:34:06 1992 Ian Lance Taylor (ian@cygnus.com)
19929
19930 * Overhauled general configuration for newlib. Eliminated all
19931 target dependent Makefile fragments. Create libraries in newlib
19932 rather than newlib/libc and newlib/libm. Use CC, et. al., rather
19933 than CROSS_CC, et. al. Broke make docs; will fix later.
19934
19935 * libc/time/localtime.c (_DAYS_IN_MONTH): actually, not const.
19936 Should be rewritten.
19937
19938Tue Sep 1 15:21:14 1992 Ian Lance Taylor (ian@cygnus.com)
19939
19940 * libc/configure.in: cleaned up somewhat; switch on ${target}
19941 rather than ${target_alias}.
17c0c97d 19942 * libm/configure.in: cleaned up somewhat; switch on ${target}
8a0efa53
CF
19943 rather than ${target_alias}.
19944
19945 * libc/ctype/ctype_.c: marked _ctype_ array _CONST.
19946 * libc/include/ctype.h: marked _ctype_ as _CONST.
19947
19948 * libc/locale/locale.c (lconv, localeconv): marked static lconv as
19949 _CONST.
19950
19951 * libc/stdio/cvt.c, libc/stdio/findfp.c (__sfmoreglue),
19952 libc/stdio/vfscanf.c (__svfscanf): made static variables const.
19953 libc/stdio/gets.c (gets): removed non-ANSI warning message.
19954 libc/stdio/tmpnam.c (tmpnam): removed unneeded filename variable.
19955
19956 * libc/stdlib/mprec.h, libc/stdlib/mprec.c (pow5mult, tens,
19957 bigtens, tinytens): marked arrays _CONST.
19958 libc/stdlib/qsort.c (swap): if __GNUC__, use _builtin_alloca
19959 rather than a static variable.
19960
19961 * libc/time/asctime.c (asctime), libc/time/localtime.c
19962 (_DAYS_IN_MONTH), libc/time/mktime.c (_DAYS_IN_MONTH,
19963 _DAYS_BEFORE_MONTH), libc/time/strftime.c (dname_len, dname,
19964 mname_len, mname): Marked static arrays _CONST.
19965
19966 * libm/math/gamma.h: made local variables non-static.
19967
19968 * libm/math/acos.h, libm/math/bessel.c, libm/math/erf.c,
19969 libm/math/exp.c, libm/math/gamma.h: marked static arrays as
19970 _CONST.
19971
19972 * libm/math/constants.c: removed file, because the constants it
19973 defined were never referenced.
19974 libm/math/Makefile.in: removed references to constants.c.
19975 libm/math/mathimpl.h: removed declarations of constants.
19976
19977Wed Aug 26 21:09:06 1992 Ian Lance Taylor (ian@cygnus.com)
19978
19979 * libc/include/machine/varargs.h: only call __builtin_saveregs if
19980 it is sensibly defined in libgcc2. Checks preprocessor defines,
19981 which is not a good solution.
19982
19983 * libm/sqrt.c: sqrt(Infinity) should not be a domain error.
19984
19985 * libm/frexp.c: handle denormalized numbers as arguments.
19986
19987 * libm/math/Makefile.in: added some dependencies for .c files
19988 which include local .h files.
19989
19990Mon Aug 24 12:57:58 1992 Ian Lance Taylor (ian@cygnus.com)
19991
19992 * libc/configure.in: set target_alias for OSE*. Replace
19993 target_makefile_frag if it is blank.
19994
19995 * libc/Makefile.in: make sure everything is passed to subsidiary
19996 makes; create all directories when installing.
19997
19998 * libm/ieeefp/Makefile.in, libm/math/Makefile.in: use
19999 CROSS_ARUPDATE instead of AR.
20000
20001 * libm/configure.in: set target_alias for OSE*. Replace
20002 target_makefile_frag if it is blank.
20003
20004 * libm/Makefile.in: make sure everything is passed to subsidiary
20005 makes; create all directories when installing.
20006
20007Thu Aug 20 15:11:51 1992 Mark Eichin (eichin@cygnus.com)
20008
ba3ccd63 20009 * add following change from libc copy.
8a0efa53
CF
20010
20011Wed Aug 19 18:54:49 1992 Roland H. Pesch (pesch@fowanton.cygnus.com)
20012
20013 * libc/libc.texinfo: make copyright disclaimers appear on back of
20014 title page; make format of same slightly less ugly; avoid using
20015 underbars in section headings (avoids nasty texinfo bug in table
20016 of contents).
20017
20018 * libc/ctype/tolower.c, libc/ctype/toupper.c: (doc changes in
20019 comments only) avoid using underbars in section headings
20020
20021 * libc/ieeefp/ieeefp.tex: include doc from fpsticky, infinity,
20022 isnan ieeefp/fpmask.c, ieeefp/fpround.c, ieeefp/fpsticky.c (doc
20023 changes in comments only): shorten headings ieeefp/infinity.c,
20024 ieeefp/isnan.c: (doc, comments only) more informative headings
20025
20026 * libc/math/bessel.c: (doc, comments only) shorten heading
20027
20028 * libc/stdlib/efgcvt.c, libc/stdlib/mbtowc.c, libc/stdlib/wctomb.c
20029 (doc, comments only) shorten headings
20030
20031 * libc/time/localtime.c (doc, comments only): shorten headings
20032
20033 * libm/ieeefp/ieeefp.tex: include doc from fpsticky, infinity,
20034 isnan
20035 libm/ieeefp/fpmask.c, libm/ieeefp/fpround.c,
20036 libm/ieeefp/fpsticky.c (doc changes in comments only): shorten
20037 headings
20038 libm/ieeefp/infinity.c, libm/ieeefp/isnan.c: (doc, comments
20039 only) more informative headings
20040 * libm/math/bessel.c: (doc, comments only) shorten heading
20041
20042Wed Aug 19 07:06:37 1992 Mark Eichin (eichin at tweedledumber.cygnus.com)
20043
20044 * .../Makefile.in: use CROSS_ARUPDATE consistently.
20045 * config/*.mt: define CROSS_AR as well as CROSS_ARUPDATE
20046 * config/*.mt: define CROSS_CPP based on CROSS_CC, not /lib/cpp.
20047 * .../Makefile.in: get rid of .c.o rule - if TOP is correctly
20048 defined, the one from the .mt file will be correct.
20049 * libc/include/machine, libc/include/sys: created, and populated
20050 with common files from machine/*/machine. ifdefs were used for
20051 most, typically by handling exceptions first and then filling in
20052 defaults. Files with D.J. Delorie copyright #included rather than
20053 copied. Most files in include/sys really were the same in the
20054 original.
20055 * libc/include/...: cleaned up use of _EXFUN.
20056 * libc/stdlib/mprec.c: mprec.h doesn't get installed, so include
20057 it with double quotes, not angles.
20058
20059Mon Aug 10 11:43:20 1992 Ian Lance Taylor (ian@dumbest.cygnus.com)
20060
20061 * libc/Makefile.in: always create installation directories.
20062
20063Sun Aug 9 22:45:48 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
20064
20065 * libc/configure.in: handle host properly (using canonical
20066 triples), better error message for the case of target not found
20067
20068Thu May 28 01:56:37 1992 Michael Tiemann (tiemann@rtl.cygnus.com)
20069
20070 * libc/Makefile.in (insincdir): Ensure this directory exists
20071 before attempting installation.
20072
20073Fri May 1 18:16:42 1992 Steve Chamberlain (sac@thepub.cygnus.com)
20074
20075 * libc/stdlib/assert.c: now calls abort like it should
20076 * libc/sys/a29khif: many many patches for 29khif work
20077 * libc/machine/i386: gnulib2 expanded there.
20078
20079Tue Apr 28 19:08:37 1992 Steve Chamberlain (sac@thepub.cygnus.com)
20080
ba3ccd63 20081 Added accurate fp conversion routines to stdlib, moved dcvt from
8a0efa53
CF
20082 stdio to stdlib and called it ecvtbuf:
20083 * libc/stdlib/mprec.c, mprec.h: new files for multiprec arithmetic
20084 * libc/stdlib/Makefile.in, efgcvt.c, strtod.c: modified to use new
20085 routines
20086 * libc/libc.texinfo: Modifed to include the copyright info from
20087 the mprec files
20088 * libc/stdlib/efgcvt.c: now xref to ecvtbuf in stdlib.
20089 * libc/test/ : many vector which tested for the implementation
20090 defined returns of strange conversion requests have been updated
20091 to relflect the new implementation
20092
20093Mon Apr 27 13:41:33 1992 Roland H. Pesch (pesch@fowanton.cygnus.com)
20094
20095 * libc/libc.texinfo: new chapter on variable arg lists
20096 (stdarg.h/varargs.h)
20097 * libc/libc.texinfo: new title
20098 * libc/time/gmtime.c, libc/time/localtime./c, libc/time/mktime.c:
20099 (doc only) shorter headings for better formatting.
20100
20101Fri Apr 24 11:26:48 1992 Roland H. Pesch (pesch@fowanton.cygnus.com)
20102
20103 * libc/libc.texinfo: three more info menu entries
20104 * libc/locale/locale.tex: new chapter
20105 * libc/locale/locale.c: new doc for setlocale, localeconv
20106 * libc/locale/Makefile.in: use new locale doc
20107 * libc/signal/signal.tex: new chapter
20108 * libc/signal/raise.c, libc/signal/signal.c: new doc
20109 * libc/signal/Makefile.in: use new doc
20110 * libc/time/time.tex: new chapter
20111 * libc/time/asctime.c libc/time/clock.c libc/time/ctime.c
20112 libc/time/difftime.c libc/time/gmtime.c libc/time/localtime.c
20113 libc/time/mktime.c libc/time/strftime.c libc/time/time.c: new doc
20114 * libc/time/Makefile.in: use new doc
20115
20116Tue Apr 21 14:48:50 1992 Steve Chamberlain (sac@thepub.cygnus.com)
20117
20118 * libm/math/log1p.c: split to use the new function way of float
20119 function definition. math/log1p.h deleted
20120 * libm/math/scalb.c: obsolete and deleted
20121 * libm/math/scalbn.c: created from part log1p.c
20122 * libm/math/Makefile.in: know about log1p and scalbn
20123
20124Tue Apr 21 12:32:21 1992 Roland H. Pesch (pesch@fowanton.cygnus.com)
20125
20126 * libc/ctype/isupper.c: revise doc;
20127 libc/ctype/ctype.tex: use doc from isupper.c
20128
20129 * libc/string/bzero.c: new doc
20130
20131Mon Apr 20 14:19:42 1992 Roland H. Pesch (pesch@fowanton.cygnus.com)
20132
20133 * libc/stdlib/system.c, libc/stdlib/exit.c, libc/stdlib/abort.c:
20134 new doc
20135 * libc/stdlib/Makefile.in: extract new doc
20136 * libc/stdlib/stdlib.tex: use new doc
20137
20138 * libc/string/strerror.c: expanded doc.
20139
20140 * libc/stdio/Makefile.in: extract doc from more files
20141 * libc/stdio/fopen.c, libc/stdio/perror.c, libc/stdio/remove.c,
20142 libc/stdio/rename.c, libc/stdio/rewind.c, libc/stdio/setbuf.c,
20143 libc/stdio/setvbuf.c, libc/stdio/sprintf.c, libc/stdio/tmpfile.c,
20144 libc/stdio/tmpnam.c, libc/stdio/vfprintf.c, libc/stdio/vprintf.c,
20145 libc/stdio/vsprintf.c: new doc
20146 * libc/stdio/stdio.tex: use new doc
20147
20148Mon Apr 20 09:38:17 1992 Steve Chamberlain (sac@thepub.cygnus.com)
20149
20150 * libc/config/ebmon29k: added CROSS_CPP rule and other fixes
20151 * libc/include/ieeefp.h: fixed ansi conflict with isnanf, isinff,
20152 finitef functions.
20153 * libc/sys/a29khif/sys/*.h: ansidecl.h was renamed to _ansi.h some
20154 time ago.
20155
20156 * libc/stdio/stdio.h: added P_tmpdir for /tmp (SVID thing)
20157 * libc/stdio/setbuf.c: added ansi style definition.
20158 * libc/stdio/setvbuf.c: added ansi definition, now mallocs own
20159 buffer if none provided.
20160 * libc/stdio/tmpfile.c: lint
20161 * libc/stdio/tmpnam.c (worker): created. (tmpnam): mallocs buffer
20162 rather than using static, also make sure file isn't already
20163 present. Uses P_tmpdir. (tempnam): rewritten to use new
20164 subroutine, and uses P_tmpdir.
20165 * libc/stdio/siprintf.c: created
20166
20167Mon Apr 13 09:12:58 1992 Steve Chamberlain (sac@thepub.cygnus.com)
20168
20169 Release 1.03 for NEC, major mods. Main differences from release
20170 1.02::
20171
20172 More tests in test/:
20173 * jn_vec.c, jnf_vec.c, yn_vec.c, ynf_vec.c, log2_vec.c,
20174 log2f_vec.c, atan2_vec.c, atan2f_vec.c: new test vectors.
20175 * test_ieee.c: tests for ieee flags & masks - get/set rounding,
20176 get/set mask, get/set sticky and get/set roundtoi. Tests
20177 that setting the bits changes the way arithmetic is done.
20178 * string.c: added test to make sure memcmp does it with unsigned
20179 chars.
20180 * test.c: cleaned up and removed lint.
20181 * sprint_vec, sprint_ivec.c, convert.c, conv_vec.c, iconf_vec.c,
20182 dvec.c: tests for string to value conversions, sprintf, scanf,
20183 atof, atoff, strtod, strtodf, atoi, atol, strtol, ecvtbuf, ecvt,
20184 ecvtf, fcvtbuf, fcvt, fcvtf, gcvt, gcvtf. Some attention paid to
20185 rounding in sprintf too.
20186 * test_is.c: tests for isalnum, isalpha, isascii, iscntrl,
20187 isdigit, isgraph, islower, isprint, ispunct, isspace, isupper,
20188 isxdigit, toascii, tolower, toupper, _tolower, _toupper in macro
20189 and function form.
20190 * math2.c: test for frexp, frexpf, ldexp, ldexpf, modf modff, pow,
20191 powf
20192
20193 In the library:
20194 * libc/stdlib/div.c, libc/stdlib/ldiv.c, libc/stdlib/strtod.c,
20195 libc/stdlib/strtol.c, libc/stdlib/stroul.c, libc/stdlib/abs.c,
20196 libc/stdlib/bsearch.c, libc/stdlib/calloc.c, libc/stdlib/getenv.c,
20197 libc/stdlib/labs.c, libc/stdlib/malloc.c: new documentation
20198 * libc/stdlib/efgcvt.c: rewritten to use new _dcvt routines rather
20199 than sprintf.
17c0c97d 20200 * libc/stdio/dcvt.c: rewritten to make more useful elsewhere.
8a0efa53
CF
20201 * Method of producting float versions of double functions has
20202 changed, functions will be modified gradually. So far:
20203 libm/math/exp.c, libm/math/pow.c, libm/math/modf.c,
20204 libm/math/sincos.c, libm/math/fmod.c, libm/math/tan.c have been
20205 altered
20206 * libc/string/memcmp.c: now uses unsigned chars
20207 * libc/string/bcmp.c, libc/string/strcpy.c,
20208 libc/stsring/strxfrm.c: fixed doc
20209 * libc/sys/sysvnecv70.tex: fix example of sbrk code
20210\f
20211Local Variables:
20212version-control: never
20213End:
This page took 2.304814 seconds and 5 git commands to generate.