OSDN Git Service

include/elf/
[pf3gnuchains/sourceware.git] / newlib / ChangeLog
1 2008-11-28  Jeff Johnston  <jjohnstn@redhat.com>
2
3         * libc/sys/linux/inode.c: Include <dirent.h> instead of
4         <linux/dirent.h>.
5         * libc/sys/linux/io64.c: Add weak alias for _stat64.
6
7 2008-11-27  Ralf Corsepius <ralf.corsepius@rtems.org>
8
9         * libc/posix/telldir.c: Use #if !defined() instead of #ifndef 
10         to fix GCC warning.
11
12 2008-11-27  Ken Werner  <ken.werner@de.ibm.com>
13
14         * libc/machine/spu/Makefile.am: Add spu-mcount.S spu-gmon.c.
15         * libc/machine/spu/Makefile.in: Regenerated.
16         * libc/machine/spu/spu-gmon.c: New file.
17         * libc/machine/spu/spu-mcount.S: New file.
18
19 2008-11-27  Joel Sherrill <joel.sherrill@oarcorp.com>
20
21         * configure.host (*-rtems*): Turn on using portion of unix subdirectory.
22
23 2008-11-27  Craig Howland <howland@LGSInnovations.com>
24
25         * libc/argz/argz_add.c:  Added #include <argz.h> to get function
26         prototypes.
27         * libc/argz/argz_append.c: Ditto.
28         * libc/argz/argz_count.c: Ditto.
29         * libc/argz/argz_create.c: Ditto.
30         * libc/argz/argz_create_sep.c: Ditto.
31         * libc/argz/argz_delete.c: Ditto.
32         * libc/argz/argz_next.c: Ditto.
33         * libc/argz/argz_stringify.c: Ditto
34         * libc/stdlib/strtod.c: Added #include <stdlib.h> to get function
35         prototypes.
36         * libc/stdlib/wcstoul.c: Added #include <wchar.h> to get function
37         prototypes, corrected traditional usage comment.
38         * libc/include/wchar.h: Added _mbsrtowcs_r() prototype.
39
40 2008-11-26 Ken Werner <ken.werner@de.ibm.com>
41
42         * libm/machine/spu/headers/acosd2.h: Rebase against current simdmath.
43         * libm/machine/spu/headers/asind2.h: Likewise.
44         * libm/machine/spu/headers/asinhf4.h: Likewise.
45         * libm/machine/spu/headers/divd2.h: Likewise.
46         * libm/machine/spu/headers/erf_utils.h: Likewise.
47         * libm/machine/spu/headers/erfcd2.h: Likewise.
48         * libm/machine/spu/headers/erfcf4.h: Likewise.
49         * libm/machine/spu/headers/erfd2.h: Likewise.
50         * libm/machine/spu/headers/recipd2.h: Likewise.
51
52 2008-11-25  Corinna Vinschen  <corinna@vinschen.de>
53
54         * libc/stdio/gets.c (_gets_r): Lock stdin here and call
55         __sgetc_r instead of _getchar_r.
56
57 2008-11-24  Craig Howland  <howland@LGSInnovations.com>
58
59         * libc/stdlib/wcstoull_r.c:  Add EINVAL return for bad base value,
60         include wchar.h for prototype, remove extraneous includes, use
61         C99/POSIX ULLONG_MAX (but allow for poor limits.h).
62         * libc/stdlib/wcstoull.c:  Fix usage comments (mistakes and to add
63         base value check noted above), remove extraneous includes.
64         * libc/stdio/asnprintf.c:  Add #include "local.h" to get function
65         prototype for _svfprintf_r().
66         * libc/stdio/vasnprintf.c:  Ditto.
67         * libc/stdio/local.h:  Add function prototype for __submore().
68         * libc/include/stdio.h:  Add function prototypes for _fseeko_r and
69         _ftello_r.
70         * libc/posix/namespace.h:  Commented out define for write to
71         eliminate write() prototype being missing for collate.c (which is
72         the only file that presently includes namespace.h).
73         * libc/include/reent.h:  Added _rename_r.
74         * libc/reent/renamer.c:  Corrected function prototypes in synopses.
75         * libc/locale/ldpart.c:  Use struct stat64 when calling fstat64.
76
77 2008-11-24  Jeff Johnston  <jjohnstn@redhat.com>
78
79         * libc/search/hash_func.c: Comment out unused static hash functions.
80         * libc/reent/stat64r.c: New file.
81         * libc/reent/Makefile.am: Add stat64r.c support.
82         * libc/reent/Makefile.in: Regenerated.
83
84 2008-11-24  Joel Sherrill <joel.sherrill@oarcorp.com>
85
86         * libc/posix/scandir.c: Fix memory leaks. 
87
88 2008-11-24  Joel Sherrill <joel.sherrill@oarcorp.com>
89
90         * libc/posix/Makefile.am: Compile readdir_r.c not readdir.c twice.
91         * libc/posix/Makefile.in: Regenerated.
92
93 2008-11-24  Corinna Vinschen  <corinna@vinschen.de>
94
95         * libc/include/stdio.h (__SMOD): Remove definition of unused flag.
96         * libc/include/sys/reent.h (struct __sFILE): Add _flags2 member.
97         * libc/stdio/findfp.c (std): Initialize _flags2.
98         (__sfp): Ditto.
99         * libc/stdio/refill.c (__srefill_r): Drop resetting __SMOD flag.
100         * libc/stdio/vfscanf.c (__ssrefill_r): Ditto.
101         * libc/stdio/fseek.c (_fseek_r): Drop checking __SMOD flag.
102         * libc/stdio64/fseeko64.c (_fseeko64_r): Ditto.
103
104 2008-11-20  Ken Werner  <ken.werner@de.ibm.com>
105
106         * libc/machine/spu/sys/linux_syscalls.h: Additional syscall defines to
107         be in sync with current kernels.
108
109 2008-11-20  Ken Werner  <ken.werner@de.ibm.com>
110             Patrick Mansfield  <patmans@us.ibm.com>
111             Joel Schopp   <jschopp@austin.ibm.com>
112
113         * libc/machine/spu/configure.in: Add __ea detection.
114         * libc/machine/spu/Makefile.am: Add new files.
115         * libc/machine/spu/include/ea.h: New file.
116         * libc/machine/spu/ea_internal.h: Likewise.
117         * libc/machine/spu/sys/mman.h: Likewise.
118         * libc/machine/spu/mmap_ea.c: Likewise.
119         * libc/machine/spu/munmap_ea.c: Likewise.
120         * libc/machine/spu/mremap_ea.c: Likewise.
121         * libc/machine/spu/msync_ea.c: Likewise.
122         * libc/machine/spu/memchr_ea.c: Likewise.
123         * libc/machine/spu/memcmp_ea.c: Likewise.
124         * libc/machine/spu/memcpy_ea.c: Likewise.
125         * libc/machine/spu/memmove_ea.c: Likewise.
126         * libc/machine/spu/memset_ea.c: Likewise.
127         * libc/machine/spu/malloc_ea.c: Likewise.
128         * libc/machine/spu/realloc_ea.c: Likewise.
129         * libc/machine/spu/calloc_ea.c: Likewise.
130         * libc/machine/spu/free_ea.c: Likewise.
131         * libc/machine/spu/posix_memalign_ea.c: Likewise.
132         * libc/machine/spu/strcat_ea.c: Likewise.
133         * libc/machine/spu/strchr_ea.c: Likewise.
134         * libc/machine/spu/strcmp_ea.c: Likewise.
135         * libc/machine/spu/strcpy_ea.c: Likewise.
136         * libc/machine/spu/strcspn_ea.c: Likewise.
137         * libc/machine/spu/strlen_ea.c: Likewise.
138         * libc/machine/spu/strncat_ea.c: Likewise.
139         * libc/machine/spu/strncmp_ea.c: Likewise.
140         * libc/machine/spu/strncpy_ea.c: Likewise.
141         * libc/machine/spu/strpbrk_ea.c: Likewise.
142         * libc/machine/spu/strrchr_ea.c: Likewise.
143         * libc/machine/spu/strspn_ea.c: Likewise.
144         * libc/machine/spu/strstr_ea.c: Likewise.
145         * libc/machine/spu/read_ea.c: Likewise.
146         * libc/machine/spu/pread_ea.c: Likewise.
147         * libc/machine/spu/readv_ea.c: Likewise.
148         * libc/machine/spu/write_ea.c: Likewise.
149         * libc/machine/spu/pwrite_ea.c: Likewise.
150         * libc/machine/spu/writev_ea.c: Likewise.
151
152 2008-11-19  Joel Sherrill <joel.sherrill@oarcorp.com>
153
154         * libc/include/sys/config.h[__mips__]: Don't bother
155         setting __ATTRIBUTE_IMPURE_PTR__ here.
156         [__rtems__][__mips__]: No need to undef the __ATTRIBUTE_IMPURE_PTR__
157         macro anymore.
158
159 2008-11-19  Jeff Johnston  <jjohnstn@redhat.com>
160
161         * libc/sys/linux/bits/dirent.h: New header file.
162         * libc/sys/linux/sys/dirent.h: Include <bits/dirent.h> instead of
163         <linux/dirent.h>.
164         * libc/posix/Makefile.am: Remove reallocf.
165         * libc/posix/Makefile.in: Regenerated.
166         * libc/posix/reallocf.c: Moved to...
167         * libc/stdlib/reallocf.c: Here
168         * libc/stdlib/malloc.c: Add reallocf documentation.
169         * libc/include/stdlib.h: Add reallocf and _reallocf_r prototypes.
170         * libc/stdlib/Makefile.am: Add reallocf.
171         * libc/stdlib/Makefile.in: Regenerated.
172         * libc/posix/_isatty.c: Set errno.
173
174 2008-11-19  Craig Howland  <howland@LGSInnovations.com>
175
176         * libc/unix/collate.c (__collate_err): simplify to remove unnecessary
177         strdup() and strlen() calls, also getting rid of a compiler warning.
178
179 2008-11-19  Ralf Corsepius <ralf.corsepius@rtems.org>
180
181         * libc/include/sys/config.h: Don't put 
182         __ATTRIBUTE_IMPURE_PTR__ into .sdata section for mips-rtems.
183                   
184 2008-11-19  Ralf Corsepius  <ralf.corsepius@rtems.org>
185
186         * libc/posix/runetype.h: Add include of stddef.h and remove
187         defining standard types: size_t and wchar_t.
188
189 2008-11-19  Ralf Corsepius  <ralf.corsepius@rtems.org>
190
191         * libc/include/pthread.h: Remove prototypes for
192         pthread_attr_getcputime and pthread_attr_setcputime which
193         were proposed but never approved by the POSIX standard.
194
195 2008-11-18  Joel Sherrill <joel.sherrill@oarcorp.com>
196
197         * libc/unix/ttyname.c: Use isatty() instead of tcgetattr().
198
199 2008-11-18  Jeff Johnston  <jjohnstn@redhat.com>
200
201         * libc/unix/basename.c: Add !_NO_BASENAME flag check so code can be
202         ignored if desired by a platform.
203         * libc/unix/dirname.c: Ditto except replace BASENAME with file name.
204         * libc/unix/getcwd.c: Ditto.
205         * libc/unix/getlogin.c: Ditto.
206         * libc/unix/getpass.c: Ditto.
207         * libc/unix/getpwent.c: Ditto.
208         * libc/unix/getut.c: Ditto.
209         * libc/unix/pread.c: Ditto.
210         * libc/unix/pwrite.c: Ditto.
211         * libc/unix/sigset.c: Ditto.
212
213 2008-11-18  Craig Howland  <howland@LGSInnovations.com>
214
215         * libc/unix/ttyname.c: Add ttyname_r and change ttyname to use
216         ttyname_r.
217
218 2008-11-17  Joel Sherrill <joel.sherrill@oarcorp.com>
219
220         * configure.host: RTEMS now uses posix subdirectory. 
221
222 2008-11-17  Joel Sherrill <joel.sherrill@oarcorp.com>
223
224         * sys/rtems/include/limits.h: Add _POSIX2_RE_DUP_MAX.
225         * sys/rtems/sys/param.h: sys/rtprio.h not needed.
226
227 2008-10-31  Jeff Johnston  <jjohnstn@redhat.com>
228
229         * libc/stdio/diprintf.c: Modify documentation so eclipse newlib
230         libhover docs generate properly.
231         * libc/stdio/dprintf.c: Ditto.
232         * libc/stdio/fflush.c: Ditto.
233         * libc/stdio/fopencookie.c: Ditto.
234         * libc/stdio/fread.c: Ditto.
235         * libc/stdio/fsetpos.c: Ditto.
236         * libc/stdio/getc_u.c: Ditto.
237         * libc/stdio/getchar_u.c: Ditto.
238         * libc/stdio/putc_u.c: Ditto.
239         * libc/stdio/putchar_u.c: Ditto.
240         * libc/stdio/remove.c: Ditto.
241         * libc/stdio/siprintf.c: Ditto.
242         * libc/stdio/siscanf.c: Ditto.
243         * libc/stdio/sprintf.c: Ditto.
244         * libc/stdio/sscanf.c: Ditto.
245         * libc/stdio/vfprintf.c: Ditto.
246         * libc/stdio/vfscanf.c: Ditto.
247         * libc/stdio/viprintf.c: Ditto.
248         * libc/stdio/viscanf.c: Ditto.
249         * libc/stdlib/calloc.c: Ditto.
250         * libc/stdlib/efgcvt.c: Ditto.
251         * libc/stdlib/envlock.c: Ditto.
252         * libc/time/asctime.c: Ditto.
253         * libc/time/ctime.c: Ditto.
254         * libc/time/gmtime.c: Ditto.
255         * libc/time/lcltime.c: Ditto.
256         * libc/time/tzset.c: Ditto.
257         * libc/stdlib/envlock.h: Moved to libc/include.
258
259 2008-10-31  Jeff Johnston  <jjohnstn@redhat.com>
260
261         * libc/include/limits.h: Add ARG_MAX, PATH_MAX, and _POSIX2_RE_DUP_MAX.
262         * libc/include/envlock.h: New file.
263         * libc/include/fnmatch.h: Ditto.
264         * libc/include/glob.h: Ditto.
265         * libc/include/regex.h: Ditto.
266         * libc/include/wordexp.h: Ditto.
267         * libc/posix/Makefile.am: Add new files moved from 
268         libc/sys/linux/stdlib.
269         * libc/posix/Makefile.in: Regenerated.
270         * libc/posix/COPYRIGHT: New file moved from libc/sys/linux/stdlib.
271         * libc/posix/cclass.h: Ditto.
272         * libc/posix/cname.h: Ditto.
273         * libc/posix/collate.c: Ditto.
274         * libc/posix/collate.h: Ditto.
275         * libc/posix/collcmp.c: Ditto.
276         * libc/posix/engine.c: Ditto.
277         * libc/posix/fnmatch.3: Ditto.
278         * libc/posix/glob.3: Ditto.
279         * libc/posix/fnmatch.c: Ditto.
280         * libc/posix/glob.c: Ditto.
281         * libc/posix/namespace.h: Ditto.
282         * libc/posix/reallocf.c: Ditto.
283         * libc/posix/regcomp.c: Ditto.
284         * libc/posix/regerror.c: Ditto.
285         * libc/posix/regex.3: Ditto.
286         * libc/posix/regex2.h: Ditto.
287         * libc/posix/regexec.c: Ditto.
288         * libc/posix/regfree.c: Ditto.
289         * libc/posix/rune.h: Ditto.
290         * libc/posix/runetype.h: Ditto.
291         * libc/posix/scandir.c: Remove advertising clause which is not in
292         effect.
293         * libc/posix/sysexits.h: Ditto.
294         * libc/posix/un-namespace.h: Ditto.
295         * libc/posix/utils.h: Ditto.
296         * libc/posix/wordexp.c: Ditto.
297         * libc/posix/wordfree.c: Ditto.
298         * libc/posix/execl.c: Add !_NO_EXECVE flag check.
299         * libc/posix/execle.c: Ditto.
300         * libc/posix/execlp.c: Ditto.
301         * libc/posix/execv.c: Ditto.
302         * libc/posix/execve.c: Ditto.
303         * libc/posix/execvp.c: Ditto.
304         * libc/posix/popen.c: Add !_NO_POPEN flag check.
305         * libc/sys/linux/configure: Regenerated.
306         * libc/sys/linux/configure.in: Remove stdlib.
307         * libc/sys/linux/include/limits.h: Add include of linux/limits.h.
308         * libc/sys/linux/stdlib/Makefile.am: Removed.
309         * libc/sys/linux/stdlib/Makefile.in: Ditto.
310         * libc/sys/linux/stdlib/COPYRIGHT: Moved to libc/posix.
311         * libc/sys/linux/stdlib/cclass.h: Ditto.
312         * libc/sys/linux/stdlib/cname.h: Ditto.
313         * libc/sys/linux/stdlib/collate.c: Ditto.
314         * libc/sys/linux/stdlib/collate.h: Ditto.
315         * libc/sys/linux/stdlib/collcmp.c: Ditto.
316         * libc/sys/linux/stdlib/engine.c: Ditto.
317         * libc/sys/linux/stdlib/fnmatch.3: Ditto.
318         * libc/sys/linux/stdlib/fnmatch.c: Ditto.
319         * libc/sys/linux/stdlib/glob.3: Ditto.
320         * libc/sys/linux/stdlib/glob.c: Ditto.
321         * libc/sys/linux/stdlib/reallocf.c: Ditto.
322         * libc/sys/linux/stdlib/regcomp.c: Ditto.
323         * libc/sys/linux/stdlib/regerror.c: Ditto.
324         * libc/sys/linux/stdlib/regex.3: Ditto.
325         * libc/sys/linux/stdlib/regex2.h: Ditto.
326         * libc/sys/linux/stdlib/regexec.c: Ditto.
327         * libc/sys/linux/stdlib/regfree.c: Ditto.
328         * libc/sys/linux/stdlib/utils.h: Ditto.
329         * libc/sys/linux/stdlib/wordexp.c: Ditto.
330         * libc/sys/linux/stdlib/wordfree.c: Ditto.
331
332 2008-10-16  Joel Sherrill <joel.sherrill@oarcorp.com>
333
334         * libc/include/sys/unistd.h: RTEMS follows standard for sync(). 
335
336 2008-10-16  Joel Sherrill <joel.sherrill@oarcorp.com>
337
338         * libc/include/time.h: Add CLOCK_MONOTONIC.
339         * libc/include/sys/features.h: Define
340         _POSIX_MONOTONIC_CLOCK for RTEMS. 
341
342 2008-10-15  Jeff Johnston  <jjohnstn@redhat.com>
343
344         * newlib.hin: Restore to previous 1.14 version which has no
345         PACKAGE_ macros.
346
347 2008-10-15  Joel Sherrill <joel.sherrill@oarcorp.com>
348
349         * libc/include/sys/unistd.h: Enable ttyname_r() for RTEMS.
350
351 2008-10-15  Craig Howland  <howland@LGSInnovations.com>
352
353         * libc/include/ctype.h (isblank):  isblank is C99.
354         * libc/ctype/isblank.c (isblank comments):  ditto.  isblank does not
355         have a macro version (as was claimed in the description).
356
357 2008-10-15  Jeff Johnston  <jjohnstn@redhat.com>
358
359         * libc/stdio/vfscanf.c (__ssvfiscanf_r): Do not support %lc, %C, %ls or
360         %S conversions when the EL/IX level is 1.
361
362 2008-10-06  Eric Blake  <ebb9@byu.net>
363
364         * libc/stdlib/ldtoa.c (etoasc): Fix rounding to even when fraction
365         is 0.5 or 0.75.
366
367 2008-10-06  Craig Howland  <howland@LGSInnovations.com>
368
369         * libc/time/tzset_r.c (_tzset_r):  Change US default start/end dates to
370         2007 law revision of start in 2nd Sunday in March, end 1st Sun in Nov.
371
372 2008-10-02  Jeff Johnston  <jjohnstn@redhat.com>
373
374         * libc/string/str-two-way.h (critical_factorization): Cast the index
375         operation to ensure unsigned rollover occurs when adding to SIZE_MAX.
376
377 2008-10-02  Jeff Johnston  <jjohnstn@redhat.com>
378
379         * libc/sys/linux/include/stdint.h (SIZE_MAX): Fix value which should
380         be size of size_t, not int.
381         (SIZE_MIN): Remove.
382         * libc/sys/linux/sys/stdint.h: Ditto.
383
384 2008-10-02  Jeff Johnston  <jjohnstn@redhat.com>
385
386         * libc/include/sys/reent.h[_REENT_SMALL](_REENT_INIT_RAND48): Add 
387         initialization of _rand_next to 1.
388
389 2008-09-29  Peter O'Gorman  <pogma@thewrittenword.com>
390             Steve Ellcey  <sje@cup.hp.com>
391
392         * configure: Regenerate for new libtool.
393         * aclocal.m4: Ditto.
394         * Makefile.in: Ditto.
395         * newlib.hin: Ditto.
396         * doc/Makefile.in: Ditto.
397         * doc/configure: Ditto.
398         * iconvdata/Makefile.in: Ditto.
399         * iconvdata/aclocal.m4: Ditto.
400         * iconvdata/configure: Ditto.
401         * libc/Makefile.in: Ditto.
402         * libc/aclocal.m4: Ditto.
403         * libc/configure: Ditto.
404         * libc/argz/Makefile.in: Ditto.
405         * libc/ctype/Makefile.in: Ditto.
406         * libc/errno/Makefile.in: Ditto.
407         * libc/iconv/Makefile.in: Ditto.
408         * libc/iconv/ccs/Makefile.in: Ditto.
409         * libc/iconv/ccs/binary/Makefile.in: Ditto.
410         * libc/iconv/ces/Makefile.in: Ditto.
411         * libc/iconv/lib/Makefile.in: Ditto.
412         * libc/locale/Makefile.in: Ditto.
413         * libc/machine/Makefile.in: Ditto.
414         * libc/machine/aclocal.m4: Ditto.
415         * libc/machine/configure: Ditto.
416         * libc/machine/a29k/Makefile.in: Ditto.
417         * libc/machine/a29k/configure: Ditto.
418         * libc/machine/arm/Makefile.in: Ditto.
419         * libc/machine/arm/configure: Ditto.
420         * libc/machine/bfin/Makefile.in: Ditto.
421         * libc/machine/bfin/configure: Ditto.
422         * libc/machine/cris/Makefile.in: Ditto.
423         * libc/machine/cris/configure: Ditto.
424         * libc/machine/crx/Makefile.in: Ditto.
425         * libc/machine/crx/configure: Ditto.
426         * libc/machine/d10v/Makefile.in: Ditto.
427         * libc/machine/d10v/configure: Ditto.
428         * libc/machine/d30v/Makefile.in: Ditto.
429         * libc/machine/d30v/configure: Ditto.
430         * libc/machine/fr30/Makefile.in: Ditto.
431         * libc/machine/fr30/configure: Ditto.
432         * libc/machine/frv/Makefile.in: Ditto.
433         * libc/machine/frv/configure: Ditto.
434         * libc/machine/h8300/Makefile.in: Ditto.
435         * libc/machine/h8300/configure: Ditto.
436         * libc/machine/h8500/Makefile.in: Ditto.
437         * libc/machine/h8500/configure: Ditto.
438         * libc/machine/hppa/Makefile.in: Ditto.
439         * libc/machine/hppa/configure: Ditto.
440         * libc/machine/i386/Makefile.in: Ditto.
441         * libc/machine/i386/aclocal.m4: Ditto.
442         * libc/machine/i386/configure: Ditto.
443         * libc/machine/i960/Makefile.in: Ditto.
444         * libc/machine/i960/configure: Ditto.
445         * libc/machine/iq2000/Makefile.in: Ditto.
446         * libc/machine/iq2000/configure: Ditto.
447         * libc/machine/m32c/Makefile.in: Ditto.
448         * libc/machine/m32c/configure: Ditto.
449         * libc/machine/m32r/Makefile.in: Ditto.
450         * libc/machine/m32r/configure: Ditto.
451         * libc/machine/m68hc11/Makefile.in: Ditto.
452         * libc/machine/m68hc11/configure: Ditto.
453         * libc/machine/m68k/Makefile.in: Ditto.
454         * libc/machine/m68k/configure: Ditto.
455         * libc/machine/m88k/Makefile.in: Ditto.
456         * libc/machine/m88k/configure: Ditto.
457         * libc/machine/mep/Makefile.in: Ditto.
458         * libc/machine/mep/configure: Ditto.
459         * libc/machine/mips/Makefile.in: Ditto.
460         * libc/machine/mips/configure: Ditto.
461         * libc/machine/mn10200/Makefile.in: Ditto.
462         * libc/machine/mn10200/configure: Ditto.
463         * libc/machine/mn10300/Makefile.in: Ditto.
464         * libc/machine/mn10300/configure: Ditto.
465         * libc/machine/mt/Makefile.in: Ditto.
466         * libc/machine/mt/configure: Ditto.
467         * libc/machine/necv70/Makefile.in: Ditto.
468         * libc/machine/necv70/configure: Ditto.
469         * libc/machine/powerpc/Makefile.in: Ditto.
470         * libc/machine/powerpc/configure: Ditto.
471         * libc/machine/sh/Makefile.in: Ditto.
472         * libc/machine/sh/configure: Ditto.
473         * libc/machine/sparc/Makefile.in: Ditto.
474         * libc/machine/sparc/configure: Ditto.
475         * libc/machine/spu/Makefile.in: Ditto.
476         * libc/machine/spu/configure: Ditto.
477         * libc/machine/tic4x/Makefile.in: Ditto.
478         * libc/machine/tic4x/configure: Ditto.
479         * libc/machine/tic80/Makefile.in: Ditto.
480         * libc/machine/tic80/configure: Ditto.
481         * libc/machine/v850/Makefile.in: Ditto.
482         * libc/machine/v850/configure: Ditto.
483         * libc/machine/w65/Makefile.in: Ditto.
484         * libc/machine/w65/configure: Ditto.
485         * libc/machine/x86_64/Makefile.in: Ditto.
486         * libc/machine/x86_64/configure: Ditto.
487         * libc/machine/xscale/Makefile.in: Ditto.
488         * libc/machine/xscale/configure: Ditto.
489         * libc/machine/xstormy16/Makefile.in: Ditto.
490         * libc/machine/xstormy16/configure: Ditto.
491         * libc/machine/z8k/Makefile.in: Ditto.
492         * libc/machine/z8k/configure: Ditto.
493         * libc/misc/Makefile.in: Ditto.
494         * libc/posix/Makefile.in: Ditto.
495         * libc/reent/Makefile.in: Ditto.
496         * libc/search/Makefile.in: Ditto.
497         * libc/signal/Makefile.in: Ditto.
498         * libc/stdio/Makefile.in: Ditto.
499         * libc/stdio64/Makefile.in: Ditto.
500         * libc/stdlib/Makefile.in: Ditto.
501         * libc/string/Makefile.in: Ditto.
502         * libc/sys/Makefile.in: Ditto.
503         * libc/sys/aclocal.m4: Ditto.
504         * libc/sys/configure: Ditto.
505         * libc/sys/a29khif/Makefile.in: Ditto.
506         * libc/sys/a29khif/configure: Ditto.
507         * libc/sys/arc/Makefile.in: Ditto.
508         * libc/sys/arc/configure: Ditto.
509         * libc/sys/arm/Makefile.in: Ditto.
510         * libc/sys/arm/configure: Ditto.
511         * libc/sys/d10v/Makefile.in: Ditto.
512         * libc/sys/d10v/configure: Ditto.
513         * libc/sys/decstation/Makefile.in: Ditto.
514         * libc/sys/decstation/configure: Ditto.
515         * libc/sys/h8300hms/Makefile.in: Ditto.
516         * libc/sys/h8300hms/configure: Ditto.
517         * libc/sys/h8500hms/Makefile.in: Ditto.
518         * libc/sys/h8500hms/configure: Ditto.
519         * libc/sys/linux/Makefile.in: Ditto.
520         * libc/sys/linux/aclocal.m4: Ditto.
521         * libc/sys/linux/configure: Ditto.
522         * libc/sys/linux/argp/Makefile.in: Ditto.
523         * libc/sys/linux/cmath/Makefile.in: Ditto.
524         * libc/sys/linux/dl/Makefile.in: Ditto.
525         * libc/sys/linux/iconv/Makefile.in: Ditto.
526         * libc/sys/linux/intl/Makefile.in: Ditto.
527         * libc/sys/linux/linuxthreads/Makefile.in: Ditto.
528         * libc/sys/linux/linuxthreads/aclocal.m4: Ditto.
529         * libc/sys/linux/linuxthreads/configure: Ditto.
530         * libc/sys/linux/linuxthreads/machine/Makefile.in: Ditto.
531         * libc/sys/linux/linuxthreads/machine/aclocal.m4: Ditto.
532         * libc/sys/linux/linuxthreads/machine/configure: Ditto.
533         * libc/sys/linux/linuxthreads/machine/i386/Makefile.in: Ditto.
534         * libc/sys/linux/linuxthreads/machine/i386/aclocal.m4: Ditto.
535         * libc/sys/linux/linuxthreads/machine/i386/configure: Ditto.
536         * libc/sys/linux/machine/Makefile.in: Ditto.
537         * libc/sys/linux/machine/aclocal.m4: Ditto.
538         * libc/sys/linux/machine/configure: Ditto.
539         * libc/sys/linux/machine/i386/Makefile.in: Ditto.
540         * libc/sys/linux/machine/i386/aclocal.m4: Ditto.
541         * libc/sys/linux/machine/i386/configure: Ditto.
542         * libc/sys/linux/net/Makefile.in: Ditto.
543         * libc/sys/linux/stdlib/Makefile.in: Ditto.
544         * libc/sys/m88kbug/Makefile.in: Ditto.
545         * libc/sys/m88kbug/configure: Ditto.
546         * libc/sys/mmixware/Makefile.in: Ditto.
547         * libc/sys/mmixware/configure: Ditto.
548         * libc/sys/netware/Makefile.in: Ditto.
549         * libc/sys/netware/configure: Ditto.
550         * libc/sys/rdos/Makefile.in: Ditto.
551         * libc/sys/rdos/configure: Ditto.
552         * libc/sys/rtems/Makefile.in: Ditto.
553         * libc/sys/rtems/configure: Ditto.
554         * libc/sys/sh/Makefile.in: Ditto.
555         * libc/sys/sh/configure: Ditto.
556         * libc/sys/sparc64/Makefile.in: Ditto.
557         * libc/sys/sparc64/configure: Ditto.
558         * libc/sys/sun4/Makefile.in: Ditto.
559         * libc/sys/sun4/configure: Ditto.
560         * libc/sys/sysmec/Makefile.in: Ditto.
561         * libc/sys/sysmec/configure: Ditto.
562         * libc/sys/sysnec810/Makefile.in: Ditto.
563         * libc/sys/sysnec810/configure: Ditto.
564         * libc/sys/sysnecv850/Makefile.in: Ditto.
565         * libc/sys/sysnecv850/configure: Ditto.
566         * libc/sys/sysvi386/Makefile.in: Ditto.
567         * libc/sys/sysvi386/configure: Ditto.
568         * libc/sys/sysvnecv70/Makefile.in: Ditto.
569         * libc/sys/sysvnecv70/configure: Ditto.
570         * libc/sys/tic80/Makefile.in: Ditto.
571         * libc/sys/tic80/configure: Ditto.
572         * libc/sys/w65/Makefile.in: Ditto.
573         * libc/sys/w65/configure: Ditto.
574         * libc/sys/z8ksim/Makefile.in: Ditto.
575         * libc/sys/z8ksim/configure: Ditto.
576         * libc/syscalls/Makefile.in: Ditto.
577         * libc/time/Makefile.in: Ditto.
578         * libc/unix/Makefile.in: Ditto.
579         * libm/Makefile.in: Ditto.
580         * libm/aclocal.m4: Ditto.
581         * libm/configure: Ditto.
582         * libm/common/Makefile.in: Ditto.
583         * libm/machine/Makefile.in: Ditto.
584         * libm/machine/aclocal.m4: Ditto.
585         * libm/machine/configure: Ditto.
586         * libm/machine/i386/Makefile.in: Ditto.
587         * libm/machine/i386/aclocal.m4: Ditto.
588         * libm/machine/i386/configure: Ditto.
589         * libm/machine/spu/Makefile.in: Ditto.
590         * libm/machine/spu/configure: Ditto.
591         * libm/math/Makefile.in: Ditto.
592         * libm/mathfp/Makefile.in: Ditto.
593
594 2008-09-26  Craig Howland  <howland@LGSInnovations.com>
595
596         * libc/stdlib/getenv_r.c (_getenv_r): Modify to not match if name
597         contains an equal sign.
598
599 2008-09-25  Raphael Derossa Pereira  <raphaelpereira@gmail.com>
600
601         * libc/include/pthread.h[_UNIX98_THREAD_MUTEX_ATTRIBUTES]: Add
602         new pthread_mutexattr_gettype and pthread_mutexattr_settype
603         prototypes.
604         * libc/include/sys/types.h[_UNIX98_THREAD_MUTEX_ATTRIBUTES]: Add
605         new mutex type values.
606         (pthread_mutexattr_t)[_UNIX98_THREAD_MUTEX_ATTRIBUTES]: Add type
607         field.
608
609 2008-09-24  Jeff Johnston  <jjohnstn@redhat.com>
610
611         * libc/stdlib/setenv_r.c (_unsetenv_r): Modify to return -1 only if
612         name is NULL, empty, or contains equal sign.
613
614 2008-09-24  Pawel Veselov  <pawel.veselov@gmail.com>
615
616         Fix setenv/getenv/unsetenv to be OpenGroup compliant:
617         * libc/include/stdlib.h (unsetenv, _unsetenv_r): Redefine with integer
618         return types.
619         * libc/stdlib/getenv_r.c (_findenv_r): Do no special processing with
620         names that contain equal chars.
621         * libc/stdlib/setenv.c: Redefine _unsetenv_r as returning int.
622         * libc/stdlib/setenv_r.c (_setenv_r): Return -1 and set errno to
623         EINVAL if name contains an equal sign.  Do not remove any equal signs
624         from the value.
625         (_unsetenv_r): Modified to return int.  Return -1 and set EINVAL
626         if name contains equal sign.  Return -1 if no variable(s) were found
627         and return 0 otherwise.
628
629 2008-09-19  Eric Blake  <ebb9@byu.net>
630
631         Supply missing POSIX errno values.
632         * libc/include/sys/errno.h (ENOTRECOVERABLE, EOWNERDEAD): Define.
633         * libc/string/strerror.c (strerror): Decode them, and ECANCELED.
634
635 2008-09-10  Ken Werner  <ken.werner@de.ibm.com>
636
637         * libc/machine/spu/strcpy.h: Add missing header.
638         * libc/machine/spu/spu_timer_slih.c: Remove unused Variable.
639         * libm/machine/spu/headers/lgammaf4.h: Add type cast.
640
641 2008-09-08  Jeff Johnston  <jjohnstn@redhat.com>
642
643         * libc/sys/linux/dl/atomicity.h (exchange_and_add): Fix asm
644         statement to use "m" instead of "0".
645         (atomic_add): Ditto.
646         * libc/sys/linux/linuxthreads/spinlock.c (__pthread_release): Ditto. 
647         * libc/sys/linux/net/getaddrinfo.c: Add limit.h include.
648         * libc/sys/linux/stdlib/glob.c: Ditto.
649
650 2008-09-04  Ken Werner  <ken.werner@de.ibm.com>
651
652         * libm/machine/spu/headers/acosd2.h: Duplicated preamble text removed.
653         * libm/machine/spu/headers/acosf4.h: Likewise.
654         * libm/machine/spu/headers/acoshd2.h: Likewise.
655         * libm/machine/spu/headers/acoshf4.h: Likewise.
656         * libm/machine/spu/headers/asind2.h: Likewise.
657         * libm/machine/spu/headers/asinf4.h: Likewise.
658         * libm/machine/spu/headers/asinhd2.h: Likewise.
659         * libm/machine/spu/headers/asinhf4.h: Likewise.
660         * libm/machine/spu/headers/atan2d2.h: Likewise.
661         * libm/machine/spu/headers/atan2f4.h: Likewise.
662         * libm/machine/spu/headers/atand2.h: Likewise.
663         * libm/machine/spu/headers/atanf4.h: Likewise.
664         * libm/machine/spu/headers/atanhd2.h: Likewise.
665         * libm/machine/spu/headers/atanhf4.h: Likewise.
666         * libm/machine/spu/headers/cos_sin.h: Likewise.
667         * libm/machine/spu/headers/cosd2.h: Likewise.
668         * libm/machine/spu/headers/cosf4.h: Likewise.
669         * libm/machine/spu/headers/coshd2.h: Likewise.
670         * libm/machine/spu/headers/coshf4.h: Likewise.
671         * libm/machine/spu/headers/divd2.h: Likewise.
672         * libm/machine/spu/headers/divf4.h: Likewise.
673         * libm/machine/spu/headers/erf_utils.h: Likewise.
674         * libm/machine/spu/headers/erfcd2.h: Likewise.
675         * libm/machine/spu/headers/erfcf4.h: Likewise.
676         * libm/machine/spu/headers/erfd2.h: Likewise.
677         * libm/machine/spu/headers/erff4.h: Likewise.
678         * libm/machine/spu/headers/exp2d2.h: Likewise.
679         * libm/machine/spu/headers/exp2f4.h: Likewise.
680         * libm/machine/spu/headers/expd2.h: Likewise.
681         * libm/machine/spu/headers/expf4.h: Likewise.
682         * libm/machine/spu/headers/expm1d2.h: Likewise.
683         * libm/machine/spu/headers/expm1f4.h: Likewise.
684         * libm/machine/spu/headers/floord2.h: Likewise.
685         * libm/machine/spu/headers/floorf4.h: Likewise.
686         * libm/machine/spu/headers/hypotd2.h: Likewise.
687         * libm/machine/spu/headers/hypotf4.h: Likewise.
688         * libm/machine/spu/headers/isnand2.h: Likewise.
689         * libm/machine/spu/headers/isnanf4.h: Likewise.
690         * libm/machine/spu/headers/ldexpd2.h: Likewise.
691         * libm/machine/spu/headers/ldexpf4.h: Likewise.
692         * libm/machine/spu/headers/lgammad2.h: Likewise.
693         * libm/machine/spu/headers/lgammaf4.h: Likewise.
694         * libm/machine/spu/headers/log10d2.h: Likewise.
695         * libm/machine/spu/headers/log1pd2.h: Likewise.
696         * libm/machine/spu/headers/log1pf4.h: Likewise.
697         * libm/machine/spu/headers/log2d2.h: Likewise.
698         * libm/machine/spu/headers/log2f4.h: Likewise.
699         * libm/machine/spu/headers/logbf4.h: Likewise.
700         * libm/machine/spu/headers/logd2.h: Likewise.
701         * libm/machine/spu/headers/logf4.h: Likewise.
702         * libm/machine/spu/headers/nearbyintf4.h: Likewise.
703         * libm/machine/spu/headers/nextafterd2.h: Likewise.
704         * libm/machine/spu/headers/nextafterf4.h: Likewise.
705         * libm/machine/spu/headers/powd2.h: Likewise.
706         * libm/machine/spu/headers/powf4.h: Likewise.
707         * libm/machine/spu/headers/recipd2.h: Likewise.
708         * libm/machine/spu/headers/recipf4.h: Likewise.
709         * libm/machine/spu/headers/rintf4.h: Likewise.
710         * libm/machine/spu/headers/scalbnf4.h: Likewise.
711         * libm/machine/spu/headers/signbitd2.h: Likewise.
712         * libm/machine/spu/headers/sincosd2.h: Likewise.
713         * libm/machine/spu/headers/sincosf4.h: Likewise.
714         * libm/machine/spu/headers/sind2.h: Likewise.
715         * libm/machine/spu/headers/sinf4.h: Likewise.
716         * libm/machine/spu/headers/sinhd2.h: Likewise.
717         * libm/machine/spu/headers/sinhf4.h: Likewise.
718         * libm/machine/spu/headers/sqrtd2.h: Likewise.
719         * libm/machine/spu/headers/sqrtf4.h: Likewise.
720         * libm/machine/spu/headers/tand2.h: Likewise.
721         * libm/machine/spu/headers/tanf4.h: Likewise.
722         * libm/machine/spu/headers/tanhd2.h: Likewise.
723         * libm/machine/spu/headers/tanhf4.h: Likewise.
724         * libm/machine/spu/headers/tgammad2.h: Likewise.
725         * libm/machine/spu/headers/tgammaf4.h: Likewise.
726         * libm/machine/spu/headers/truncd2.h: Likewise.
727         * libm/machine/spu/headers/truncf4.h: Likewise.
728         * libm/machine/spu/headers/simdmath.h: Likewise.
729
730 2008-09-04  Ken Werner  <ken.werner@de.ibm.com>
731
732         * libm/machine/spu/headers/acoshf4.h: Rebase against current simdmath.
733         * libm/machine/spu/headers/asinhd2.h: Likewise.
734         * libm/machine/spu/headers/atanhd2.h: Likewise.
735         * libm/machine/spu/headers/atanhf4.h: Likewise.
736         * libm/machine/spu/headers/erff4.h: Likewise.
737         * libm/machine/spu/headers/expd2.h: Likewise.
738         * libm/machine/spu/headers/ldexpd2.h: Likewise.
739         * libm/machine/spu/headers/lgammaf4.h: Likewise.
740         * libm/machine/spu/headers/logbf4.h: Likewise.
741         * libm/machine/spu/headers/nextafterd2.h: Likewise.
742         * libm/machine/spu/headers/nextafterf4.h: Likewise.
743         * libm/machine/spu/headers/recipd2.h: Likewise.
744         * libm/machine/spu/headers/simdmath.h: Likewise.
745         * libm/machine/spu/headers/acoshd2.: Likewise.
746
747 2008-09-04  Ken Werner  <ken.werner@de.ibm.com>
748
749         * libm/machine/spu/headers/cbrt.h: cbrt_factors[] declared.
750         * libm/machine/spu/headers/cbrtf.h: Likewise.
751                 
752 2008-09-01  Ken Werner  <ken.werner@de.ibm.com>
753
754         * libc/machine/spu/include/spu_timer.h: spu_timebase function added.
755         * libc/machine/spu/spu_timebase.c: New file.
756         * libc/machine/spu/Makefile.am: Add new file.
757         * libc/machine/spu/Makefile.in: Regenerated.
758                         
759 2008-08-28  Craig Howland  <howland@LGSInnovations.com>
760
761         * libc/time/mktime.c (mktime): Fix tm_isdst value usage (allowing
762         any positive value from user (per std) rather than depending
763         upon 1).
764                 
765 2008-08-28  Corinna Vinschen  <corinna@vinschen.de>
766
767         * libc/stdlib/wcsrtombs.c (_wcsrtombs_r): Optimize condition
768         for accepting a converted character.
769
770 2008-08-27  Sandra Loosemore  <sandra@codesourcery.com>
771
772         * libc/libc.texinfo: Remove "LOCAL KLUGE" that prevents it
773         from building pdfs.
774         * libm/libm.texinfo: Likewise.
775                                 
776 2008-08-27  Corinna Vinschen  <corinna@vinschen.de>
777
778         * libc/stdlib/wcsrtombs.c (_wcsrtombs_r): Fix condition for
779         accepting a converted character and continuing the loop.
780                 
781 2008-07-24  Jeff Johnston  <jjohnstn@redhat.com>
782
783         * libc/include/ctype.h (_ctype_): Restore for C++ backward
784         compatability only.
785
786 2008-07-21  Jeff Johnston  <jjohnstn@redhat.com>
787
788         * libc/ctype/ctype_.c: Add new pointer __ctype_ptr__ which is one
789         less than the old __ctype_ptr.
790         * libc/ctype/isalnum.c: Use __ctype_ptr__.
791         * libc/ctype/isalpha.c: Ditto.
792         * libc/ctype/iscntrl.c: Ditto.
793         * libc/ctype/isdigit.c: Ditto.
794         * libc/ctype/islower.c: Ditto.
795         * libc/ctype/isprint.c: Ditto.
796         * libc/ctype/ispunct.c: Ditto.
797         * libc/ctype/isspace.c: Ditto.
798         * libc/ctype/isupper.c: Ditto.
799         * libc/ctype/isxdigit.c: Ditto.
800         * libc/include/ctype.h: Change ctype macros to use new __ctype_ptr__
801         and add declaration of __ctype_ptr__.  Remove older ctype table pointers
802         from here even though they can still work.
803
804 2008-07-18  Ken Werner  <ken.werner@de.ibm.com>
805
806         * libc/machine/spu/strcpy.h: Fix error in previous patch.
807
808 2008-07-17  Jeff Johnston  <jjohnstn@redhat.com>
809
810         * libc/include/assert.h (__ASSERT_FUNC): Define to __FUNCTION__ when
811         __STDC_VERSION__ < 199901L and __GNUC__ >= 2.
812
813 2008-07-17  Ken Werner  <ken.werner@de.ibm.com>
814
815         * libc/machine/spu/strcpy.h: Pad null bytes if necessary.
816
817 2008-07-08  Kenji Tanaka  <tanaka.ken2@jp.panasonic.com>
818
819         * libc/machine/mn10300/memset.S: Fix bug where return value is
820         incorrectly set if number of bytes set is a multiple of 4.
821
822 2008-07-07  Hans-Peter Nilsson  <hp@axis.com>
823
824         * libc/machine/mips/strncpy.c: Include stdint.h to get uintptr_t.
825         (strncpy): Cast src to uintptr_t before checking alignment with "&".
826
827 2008-07-02  Jeff Johnston  <jjohnstn@redhat.com>
828
829         * libc/argz/argz_count.c: Include stddef.h to get size_t.
830         * libc/argz/argz_extract.c: Ditto.
831         * libc/argz/argz_stringify.c: Ditto.
832         * libc/search/hash.h: Ditto.
833         * libc/sys/linux/include/sched.h: Ditto.
834         * libc/sys/linux/sys/types.h: Ditto.
835
836 2008-07-02  Jeff Johnston  <jjohnstn@redhat.com>
837
838         * libc/machine/mips/strncpy.c (strncpy): Fix logic so unaligned
839         source data is taken care of before loop unrolling.
840
841 2008-06-25  Hans-Peter Nilsson  <hp@axis.com>
842
843         Fix strict-aliasing issues with _strtod_r and Storeinc.
844         * libc/stdlib/strtod.c (_strtod_r): Change local variables aadj,
845         rv, rv0 from double to type U.  Use accessor macros dval, dword0
846         and dword1 for all accesses except for the ULtod call, where rv.i
847         replaces the pointer cast.
848         * libc/stdlib/mprec.h (U): Rename member L to i for easier re-use
849         of access macros.  Tweak comment.
850         Remove #ifdef'd YES_ALIAS code.
851         (dword0, dword1, dval): Define in terms of uncast union member
852         access.  Ditto for _DOUBLE_IS_32BITS variants.
853         (Storeinc): Replace aliasing-flawed microoptimized definition with
854         alternative suggested in comment.  Remove now stale comment.
855
856 2008-06-21  Corinna Vinschen  <corinna@vinschen.de>
857
858         * libc/include/machine/setjmp.h (_longjmp): Define as function on
859         Cygwin.
860         (_setjmp): Ditto.
861
862 2008-06-18  Eric Blake  <ebb9@byu.net>
863
864         Per Posix, strsignal returns non-const char*.
865         * libc/include/string.h (strsignal): Fix return type.
866
867 2008-06-17  Ken Werner  <ken.werner@de.ibm.com>
868
869         * libc/machine/spu/sys/linux_syscalls.h: New file to add Linux syscall
870         support.
871
872 2008-06-16  Ken Werner  <ken.werner@de.ibm.com>
873
874         * libc/machine/spu/sys/dirent.h: Add extern "C" specifier if C++.
875         * libc/machine/spu/sys/sched.h: Likewise.
876         * libc/machine/spu/sys/syscall.h: Likewise.
877         
878 2008-06-16  Ken Werner  <ken.werner@de.ibm.com>
879
880         * libc/machine/spu/mk_syscalls: Provide .type and .size directives
881         in generated assembler files.
882         * libc/machine/spu/fprintf.S: Regenerate.
883         * libc/machine/spu/fscanf.S: Regenerate.
884         * libc/machine/spu/printf.S: Regenerate.
885         * libc/machine/spu/scanf.S: Regenerate.
886         * libc/machine/spu/snprintf.S: Regenerate.
887         * libc/machine/spu/sprintf.S: Regenerate.
888         * libc/machine/spu/sscanf.S: Regenerate.
889         * libc/machine/spu/stack_reg_va.S (__stack_reg_va): Provide .type
890         and .size directives.
891         * libc/machine/spu/setjmp.S (setjmp): Likewise.
892         (longjmp): Likewise.
893         
894 2008-06-11  Jeff Johnston  <jjohnstn@redhat.com>
895
896         * libc/include/machine/_default_types.h: Fix GNUC check to
897         handle 4.0 and greater.
898
899 2008-06-09  Ken Werner  <ken.werner@de.ibm.com>
900
901         * libc/machine/spu/Makefile.am: Add new files.
902         * libc/machine/spu/Makefile.in: Likewise.
903         * libc/machine/spu/include/spu_timer.h: New file to add timer support
904         using interrupts.
905         * libc/machine/spu/spu_clock_stop.c: Likewise.
906         * libc/machine/spu/spu_clock_svcs.c: Likewise.
907         * libc/machine/spu/spu_timer_flih.S: Likewise.
908         * libc/machine/spu/spu_timer_free.c: Likewise.
909         * libc/machine/spu/spu_timer_internal.h: Likewise.
910         * libc/machine/spu/spu_timer_slih.c: Likewise.
911         * libc/machine/spu/spu_timer_slih_reg.c: Likewise.
912         * libc/machine/spu/spu_timer_stop.c: Likewise.
913         * libc/machine/spu/spu_timer_svcs.c: Likewise.
914
915 2008-06-09  Ken Werner  <ken.werner@de.ibm.com>
916
917         * libc/machine/spu/strcat.c: Return value fixed.
918         * libc/machine/spu/strncat.c: Likewise.
919                 
920 2008-05-28  Eric Blake  <ebb9@byu.net>
921
922         Fix bug in previous patch.
923         * libc/machine/i386/memset.S (memset): Mask second arg correctly.
924
925 2008-05-27  Jeff Johnston  <jjohnstn@redhat.com>
926
927         * libc/string/memset.c: Fix documented prototype to remove
928         erroneous const attribute on first parameter.
929
930 2008-05-26  Eric Blake  <ebb9@byu.net>
931
932         Optimize the generic and x86 memchr.
933         * libc/string/memchr.c (memchr) [!__OPTIMIZE_SIZE__]:
934         Pre-align pointer so unaligned searches aren't penalized.
935         * libc/machine/i386/memchr.S (memchr) [!__OPTIMIZE_SIZE__]: Word
936         operations are faster than repnz byte searches.
937
938 2008-05-26  Eric Blake  <ebb9@byu.net>
939
940         Optimize the generic and x86 memset.
941         * libc/string/memset.c (memset) [!__OPTIMIZE_SIZE__]:
942         Pre-align pointer so unaligned stores aren't penalized.
943         * libc/machine/i386/memset.S (memset) [!__OPTIMIZE_SIZE__]:
944         Pre-align pointer so unaligned stores aren't penalized.  Prefer
945         8-byte over 4-byte alignment.  Reduce register pressure.
946
947 2008-05-26  Eric Blake  <ebb9@byu.net>
948
949         Optimize the generic and x86 strlen.
950         * libc/string/strlen.c (strlen) [!__OPTIMIZE_SIZE__]: Pre-align
951         data so unaligned searches aren't penalized.
952         * libc/machine/i386/strlen.S (strlen) [!__OPTIMIZE_SIZE__]:
953         Word operations are faster than repnz byte searches.
954
955 2008-05-23  Corinna Vinschen  <corinna@vinschen.de>
956
957         * libc/include/sys/_default_fcntl.h: Include <sys/time.h> on Cygwin.
958
959 2008-05-22  Jeff Johnston  <jjohnstn@redhat.com>
960
961         * libc/include/sys/reent.h: Add _h_errno field.
962         * libc/sys/linux/libc-symbols.h: Add default stubs for new libc macros
963         now used in net directory.
964         * libc/sys/linux/bits/libc-lock.h: Always define _IO_MTSAFE_IO.
965         * libc/sys/linux/include/hesiod.h: Add needed macros for new code
966         in net directory.
967         * libc/sys/linux/include/netdb.h: Ditto.
968         * libc/sys/linux/include/resolv.h: Ditto.
969         * libc/sys/linux/include/stdint.h: Ditto.
970         * libc/sys/linux/include/arpa/nameser.h: Ditto.
971         * libc/sys/linux/include/net/ethernet.h: Ditto.
972         * libc/sys/linux/include/net/if_ppp.h: Ditto.
973         * libc/sys/linux/include/netinet/if_ether.h: Ditto.
974         * libc/sys/linux/machine/i386/get_clockfreq.c: Remove static memmem.
975         * libc/sys/linux/machine/i386/include/endian.h: Protect macros with
976         flags to avoid duplicate definition.
977         * libc/sys/linux/machine/i386/include/param.h: Ditto.
978         * libc/sys/linux/net/Makefile.am: Modified to account for removed and
979         added files.
980         * libc/sys/linux/net/Makefile.in: Regenerated.
981         * libc/sys/linux/net/base64.c: Replaced with glibc version of code.
982         * libc/sys/linux/net/getaddrinfo.c: Ditto.
983         * libc/sys/linux/net/getnameinfo.c: Ditto.
984         * libc/sys/linux/net/getproto.c: Ditto.
985         * libc/sys/linux/net/getservent.c: Ditto.
986         * libc/sys/linux/net/inet_netof.c: Ditto.
987         * libc/sys/linux/net/inet_lnaof.c: Ditto.
988         * libc/sys/linux/net/ns_name.c: Ditto.
989         * libc/sys/linux/net/ns_netint.c: Ditto.
990         * libc/sys/linux/net/inet_ntoa.c: Ditto.
991         * libc/sys/linux/net/ns_parse.c: Ditto.
992         * libc/sys/linux/net/ns_print.c: Ditto.
993         * libc/sys/linux/net/ns_ttl.c: Ditto.
994         * libc/sys/linux/net/nsap_addr.c: Ditto.
995         * libc/sys/linux/net/rcmd.c: Ditto.
996         * libc/sys/linux/net/res_comp.c: Ditto.
997         * libc/sys/linux/net/res_data.c: Ditto.
998         * libc/sys/linux/net/res_debug.c: Ditto.
999         * libc/sys/linux/net/res_init.c: Ditto.
1000         * libc/sys/linux/net/res_mkquery.c: Ditto.
1001         * libc/sys/linux/net/res_query.c: Ditto.
1002         * libc/sys/linux/net/res_send.c: Ditto.
1003         * libc/sys/linux/net/send.c: Ditto.
1004         * libc/sys/linux/stdlib/collate.c: Ditto.
1005         * libc/sys/linux/sys/ioctl.h: Ditto.
1006         * libc/sys/linux/sys/socket.h: Ditto.
1007         * libc/sys/linux/sys/unistd.h: Ditto.
1008         * libc/sys/linux/iconv/iconvconfig.c: Removed either because no longer
1009         used or because licensing includes advertising clause that cannot be
1010         ignored.
1011         * libc/sys/linux/iconv/strtab.c: Ditto.
1012         * libc/sys/linux/include/libc_private.h: Ditto.
1013         * libc/sys/linux/include/nsswitch.h: Ditto.
1014         * libc/sys/linux/include/net/if_atm.h: Ditto.
1015         * libc/sys/linux/include/net/if_media.h: Ditto.
1016         * libc/sys/linux/include/net/if_pppvar.h: Ditto.
1017         * libc/sys/linux/include/netinet/if_atm.h: Ditto.
1018         * libc/sys/linux/include/netinet/ip_flow.h: Ditto.
1019         * libc/sys/linux/intl/locale.alias: Ditto.
1020         * libc/sys/linux/net/addr2ascii.3: Ditto.
1021         * libc/sys/linux/net/bindresvport.c: Ditto.
1022         * libc/sys/linux/net/byteorder.3: Ditto.
1023         * libc/sys/linux/net/res_config.h: Ditto.
1024         * libc/sys/linux/net/ether_addr.c: Ditto.
1025         * libc/sys/linux/net/ethers.3: Ditto.
1026         * libc/sys/linux/net/getaddrinfo.3: Ditto.
1027         * libc/sys/linux/net/gethostbydns.c: Ditto.
1028         * libc/sys/linux/net/gethostbyht.c: Ditto.
1029         * libc/sys/linux/net/gethostbyname.3: Ditto.
1030         * libc/sys/linux/net/gethostbynis.c: Ditto.
1031         * libc/sys/linux/net/gethostnamadr.c: Ditto.
1032         * libc/sys/linux/net/getifaddrs.3: Ditto.
1033         * libc/sys/linux/net/getifaddrs.c: Ditto.
1034         * libc/sys/linux/net/getipnodebyname.3: Ditto.
1035         * libc/sys/linux/net/getnameinfo.3: Ditto.
1036         * libc/sys/linux/net/getnetbydns.c: Ditto.
1037         * libc/sys/linux/net/getnetbyht.c: Ditto.
1038         * libc/sys/linux/net/getnetbynis.c: Ditto.
1039         * libc/sys/linux/net/getnetent.3: Ditto.
1040         * libc/sys/linux/net/getnetnamadr.c: Ditto.
1041         * libc/sys/linux/net/getprotoent.3: Ditto.
1042         * libc/sys/linux/net/getprotoent.c: Ditto.
1043         * libc/sys/linux/net/getprotoname.c: Ditto.
1044         * libc/sys/linux/net/getservbyname.c: Ditto.
1045         * libc/sys/linux/net/getservbyport.c: Ditto.
1046         * libc/sys/linux/net/getservent.3: Ditto.
1047         * libc/sys/linux/net/herror.c: Ditto.
1048         * libc/sys/linux/net/hesiod.3: Ditto.
1049         * libc/sys/linux/net/hesiod.c: Ditto.
1050         * libc/sys/linux/net/if_indextoname.3: Ditto.
1051         * libc/sys/linux/net/inet.3: Ditto.
1052         * libc/sys/linux/net/inet6_option_space.3: Ditto.
1053         * libc/sys/linux/net/inet6_rthdr_space.3: Ditto.
1054         * libc/sys/linux/net/inet_makeaddr.c: Ditto.
1055         * libc/sys/linux/net/inet_net.3: Ditto.
1056         * libc/sys/linux/net/inet_network.c: Ditto.
1057         * libc/sys/linux/net/innetgr-stub.c: Ditto.
1058         * libc/sys/linux/net/ip6opt.c: Ditto.
1059         * libc/sys/linux/net/iso_addr.3: Ditto.
1060         * libc/sys/linux/net/iso_addr.c: Ditto.
1061         * libc/sys/linux/net/linkaddr.3: Ditto.
1062         * libc/sys/linux/net/linkaddr.c: Ditto.
1063         * libc/sys/linux/net/map_v4v6.c: Ditto.
1064         * libc/sys/linux/net/name6.c: Ditto.
1065         * libc/sys/linux/net/namespace.h: Ditto.
1066         * libc/sys/linux/net/ns.3: Ditto.
1067         * libc/sys/linux/net/ns_addr.c: Ditto.
1068         * libc/sys/linux/net/ns_ntoa.c: Ditto.
1069         * libc/sys/linux/net/nsdispatch.3: Ditto.
1070         * libc/sys/linux/net/nsdispatch.c: Ditto.
1071         * libc/sys/linux/net/nslexer.c: Ditto.
1072         * libc/sys/linux/net/nslexer.l: Ditto.
1073         * libc/sys/linux/net/nsparser.c: Ditto.
1074         * libc/sys/linux/net/nsparser.h: Ditto.
1075         * libc/sys/linux/net/nsparser.y: Ditto.
1076         * libc/sys/linux/net/rcmd.3: Ditto.
1077         * libc/sys/linux/net/rcmdsh.3: Ditto.
1078         * libc/sys/linux/net/res_mkupdate.c: Ditto.
1079         * libc/sys/linux/net/res_update.c: Ditto.
1080         * libc/sys/linux/net/resolver.3: Ditto.
1081         * libc/sys/linux/net/rthdr.c: Ditto.
1082         * libc/sys/linux/net/vars.c: Ditto.
1083         * libc/sys/linux/shlib-compat.h: New file.
1084         * libc/sys/linux/machine/i386/atomic.h: Ditto.
1085         * libc/sys/linux/net/XXX-lookup.c: Ditto.
1086         * libc/sys/linux/net/alias-lookup.c: Ditto.
1087         * libc/sys/linux/net/res_libc.c: Ditto.
1088         * libc/sys/linux/net/aliases.h: Ditto.
1089         * libc/sys/linux/net/check_pf.c: Ditto.
1090         * libc/sys/linux/net/databases.def: Ditto.
1091         * libc/sys/linux/net/digits_dots.c: Ditto.
1092         * libc/sys/linux/net/ether_aton.c: Ditto.
1093         * libc/sys/linux/net/ether_aton_r.c: Ditto.
1094         * libc/sys/linux/net/ether_hton.c: Ditto.
1095         * libc/sys/linux/net/ether_line.c: Ditto.
1096         * libc/sys/linux/net/ether_ntoa.c: Ditto.
1097         * libc/sys/linux/net/ether_ntoa_r.c: Ditto.
1098         * libc/sys/linux/net/ether_ntoh.c: Ditto.
1099         * libc/sys/linux/net/etherent.h: Ditto.
1100         * libc/sys/linux/net/ethers-lookup.c: Ditto.
1101         * libc/sys/linux/net/function.def: Ditto.
1102         * libc/sys/linux/net/getXXbyYY.c: Ditto.
1103         * libc/sys/linux/net/getXXbyYY_r.c: Ditto.
1104         * libc/sys/linux/net/getXXent.c: Ditto.
1105         * libc/sys/linux/net/getXXent_r.c: Ditto.
1106         * libc/sys/linux/net/getaliasent.c: Ditto.
1107         * libc/sys/linux/net/getaliasent_r.c: Ditto.
1108         * libc/sys/linux/net/getaliasname.c: Ditto.
1109         * libc/sys/linux/net/getaliasname_r.c: Ditto.
1110         * libc/sys/linux/net/gethstbyad.c: Ditto.
1111         * libc/sys/linux/net/gethstbyad_r.c: Ditto.
1112         * libc/sys/linux/net/gethstbynm.c: Ditto.
1113         * libc/sys/linux/net/gethstbynm2.c: Ditto.
1114         * libc/sys/linux/net/gethstbynm2_r.c: Ditto.
1115         * libc/sys/linux/net/gethstbynm_r.c: Ditto.
1116         * libc/sys/linux/net/gethstent.c: Ditto.
1117         * libc/sys/linux/net/gethstent_r.c: Ditto.
1118         * libc/sys/linux/net/getnetbyad.c: Ditto.
1119         * libc/sys/linux/net/getnetbyad_r.c: Ditto.
1120         * libc/sys/linux/net/getnetbynm.c: Ditto.
1121         * libc/sys/linux/net/getnetbynm_r.c: Ditto.
1122         * libc/sys/linux/net/getnetent.c: Ditto.
1123         * libc/sys/linux/net/getnetent_r.c: Ditto.
1124         * libc/sys/linux/net/getnetgrent.c: Ditto.
1125         * libc/sys/linux/net/getnetgrent_r.c: Ditto.
1126         * libc/sys/linux/net/getnssent.c: Ditto.
1127         * libc/sys/linux/net/getnssent_r.c: Ditto.
1128         * libc/sys/linux/net/getproto_r.c: Ditto.
1129         * libc/sys/linux/net/getprtent.c: Ditto.
1130         * libc/sys/linux/net/getprtent_r.c: Ditto.
1131         * libc/sys/linux/net/getprtname.c: Ditto.
1132         * libc/sys/linux/net/getprtname_r.c: Ditto.
1133         * libc/sys/linux/net/getrpcbyname.c: Ditto.
1134         * libc/sys/linux/net/getrpcbyname_r.c: Ditto.
1135         * libc/sys/linux/net/getrpcbynumber.c: Ditto.
1136         * libc/sys/linux/net/getrpcbynumber_r.c: Ditto.
1137         * libc/sys/linux/net/getrpcent.c: Ditto.
1138         * libc/sys/linux/net/getrpcent_r.c: Ditto.
1139         * libc/sys/linux/net/getservent_r.c: Ditto.
1140         * libc/sys/linux/net/getsrvbynm.c: Ditto.
1141         * libc/sys/linux/net/getsrvbynm_r.c: Ditto.
1142         * libc/sys/linux/net/getsrvbypt.c: Ditto.
1143         * libc/sys/linux/net/getsrvbypt_r.c: Ditto.
1144         * libc/sys/linux/net/grp-lookup.c: Ditto.
1145         * libc/sys/linux/net/herrno.c: Ditto.
1146         * libc/sys/linux/net/hosts-lookup.c: Ditto.
1147         * libc/sys/linux/net/ifaddrs.h: Ditto.
1148         * libc/sys/linux/net/ifreq.c: Ditto.
1149         * libc/sys/linux/net/ifreq.h: Ditto.
1150         * libc/sys/linux/net/in6_addr.c: Ditto.
1151         * libc/sys/linux/net/inet6_option.c: Ditto.
1152         * libc/sys/linux/net/inet_mkadr.c: Ditto.
1153         * libc/sys/linux/net/inet_net.c: Ditto.
1154         * libc/sys/linux/net/key-lookup.c: Ditto.
1155         * libc/sys/linux/net/local.h: Ditto.
1156         * libc/sys/linux/net/netgroup.h: Ditto.
1157         * libc/sys/linux/net/netgrp-lookup.c: Ditto.
1158         * libc/sys/linux/net/network-lookup.c: Ditto.
1159         * libc/sys/linux/net/not-cancel.h: Ditto.
1160         * libc/sys/linux/net/ns_samedomain.c: Ditto.
1161         * libc/sys/linux/net/nscd-types.h: Ditto.
1162         * libc/sys/linux/net/nss.h: Ditto.
1163         * libc/sys/linux/net/nsswitch.c: Ditto.
1164         * libc/sys/linux/net/nsswitch.h: Ditto.
1165         * libc/sys/linux/net/opensock.c: Ditto.
1166         * libc/sys/linux/net/proto-lookup.c: Ditto.
1167         * libc/sys/linux/net/pwd-lookup.c: Ditto.
1168         * libc/sys/linux/net/res_debug.h: Ditto.
1169         * libc/sys/linux/net/res_hconf.c: Ditto.
1170         * libc/sys/linux/net/res_hconf.h: Ditto.
1171         * libc/sys/linux/net/rexec.c: Ditto.
1172         * libc/sys/linux/net/rpc-lookup.c: Ditto.
1173         * libc/sys/linux/net/ruserpass.c: Ditto.
1174         * libc/sys/linux/net/service-lookup.c: Ditto.
1175         * libc/sys/linux/net/spwd-lookup.c: Ditto.
1176         * libc/sys/linux/net/nscd/nscd-client.h: Ditto.
1177         * libc/sys/linux/net/nscd/nscd_proto.h: Ditto.
1178
1179 2008-05-21  Eric Blake  <ebb9@byu.net>
1180
1181         Optimize the generic strchr.
1182         * libc/string/strchr.c (strchr) [!__OPTIMIZE_SIZE__]: Pre-align
1183         data so unaligned searches aren't penalized.  Special-case
1184         searching for 0.
1185
1186         Optimize strchr for x86.
1187         * libc/machine/i386/strchr.S (strchr) [!__OPTIMIZE_SIZE__]:
1188         Pre-align data so unaligned searches aren't penalized.
1189         Special-case searching for 0.
1190
1191 2008-05-20  Nick Clifton  <nickc@redhat.com>
1192
1193         * libc/sys/sysnecv850/crt0.S (___dso_handle): Define (weak).
1194
1195 2008-05-20  DJ Delorie  <dj@redhat.com>
1196
1197         * libc/sys/sysnecv850/isatty.c (_isatty): Renamed from isatty.
1198
1199 2008-05-14  Jeff Johnston  <jjohnstn@redhat.com>
1200
1201         * libc/include/sys/reent.h: Change _REENT_INIT... macros to
1202         access macro parameter with parentheses around it.
1203
1204 2008-04-26  Mark Mitchell  <mark@codesourcery.com>
1205
1206         * libc/include/stdint.h (SIZE_MIN): Remove.
1207         (SIZE_MAX): Define.
1208         * testsuite/newlib.stdlib/stdlib.exp: New.
1209         * testsuite/newlib.stdlib/size_max.c: Likewise.
1210
1211 2008-04-29  Eric Blake  <ebb9@byu.net>
1212
1213         Fix 2008-04-14 regression in asprintf(ptr,"").
1214         * libc/stdio/asnprintf.c (asnprintf, _asnprintf_r): Avoid stdio
1215         baggage.
1216         * libc/stdio/asniprintf.c (asniprintf, _asniprintf_r): Likewise.
1217         * libc/stdio/asiprintf.c (asiprintf, _asiprintf_r): Likewise.
1218         * libc/stdio/vasniprintf.c (_vasniprintf_r): Likewise.
1219         * libc/stdio/vsnprintf.c (_vsnprintf_r): Likewise.
1220         * libc/stdio/vfprintf.c (_VFPRINTF_R) [STRING_ONLY]: Always malloc
1221         an initial buffer for asprintf.
1222
1223 2008-04-24  Corinna Vinschen  <corinna@vinschen.de>
1224
1225         * libc/include/sys/stat.h: Guard at-functions with !__INSIDE_CYGWIN__.
1226         (fstatat): Fix type of third parameter.
1227
1228 2008-04-25  Nick Clifton  <nickc@redhat.com>
1229
1230         * libc/machine/arm/setjmp.S: Fix thumb2 support.
1231
1232 2008-04-24  Nick Clifton  <nickc@redhat.com>
1233
1234         * libc/include/machine/ieeefp.h: Fix typo: _DOUBLE_IS_32_BITS
1235         should be _DOUBLE_IS_32BITS.
1236
1237 2008-04-24  Corinna Vinschen  <corinna@vinschen.de>
1238
1239         * libc/include/sys/stat.h (UTIME_NOW): Define for Cygwin.
1240         (UTIME_OMIT): Ditto.
1241         (utimensat): Declare for Cygwin.
1242         (futimens): Ditto.
1243
1244 2008-04-23  Ken Werner  <ken.werner@de.ibm.com>
1245
1246         * libc/include/_ansi.h: _LONG_LONG renamed to _LONG_LONG_TYPE.
1247         * libc/include/math.h: Likewise.
1248
1249 2008-04-23  Corinna Vinschen  <corinna@vinschen.de>
1250
1251         * libc/include/stdio.h (renameat): Declare for Cygwin.
1252         (symlinkat): Ditto.
1253         * libc/include/sys/unistd.h (readlink): Align declaration to POSIX.
1254         (faccessat): Declare for Cygwin.
1255         (fchownat): Ditto.
1256         (linkat): Ditto.
1257         (readlinkat): Ditto.
1258         * libc/include/sys/_default_fcntl.h (AT_FDCWD): Define for Cygwin.
1259         (AT_EACCESS): Ditto.
1260         (AT_SYMLINK_NOFOLLOW): Ditto.
1261         (AT_SYMLINK_FOLLOW): Ditto.
1262         (AT_REMOVEDIR): Ditto.
1263         (futimesat): Declare for Cygwin.
1264         (openat): Ditto.
1265         (unlinkat): Ditto.
1266         * libc/include/sys/stat.h (fchmodat): Ditto.
1267         (fstatat): Ditto.
1268         (mkdirat): Ditto.
1269         (mkfifoat): Ditto.
1270         (mknodat): Ditto.
1271
1272 2008-04-22  Nick Clifton  <nickc@redhat.com>
1273
1274         * libc/machine/arm/setjmp.S: Add support for thumb2 multiple
1275         register load/store instructions.
1276
1277 2008-04-16  Patrick Mansfield  <patmans@us.ibm.com>
1278
1279         * libc/machine/spu/sys/errno.h: Use _impure_data, not _reent_data.
1280
1281 2008-04-16  Patrick Mansfield  <patmans@us.ibm.com>
1282
1283         * libc/machine/spu/impure.c: Add missing underscore to impure_data.
1284
1285 2008-04-14  Patrick Mansfield  <patmans@us.ibm.com>
1286
1287         * libc/machine/spu/impure.c: New file, supply a non-static _impure_data.
1288         * libc/machine/spu/Makefile.am: Add new file impure.c.
1289         * libc/machine/spu/Makefile.in: Regenerate.
1290         * libc/machine/spu/sys/errno.h: Define errno to be _reent_data._errno.
1291
1292 2008-04-14  Jeff Johnston  <jjohnstn@redhat.com>
1293
1294         * libc/stdio/Makefile.am: Build vfprintf.c and vfscanf.c with
1295         -DSTRING_ONLY defined with and without -DINTEGER_ONLY defined
1296         to build special versions for sprintf/sscanf family functions.
1297         * libc/stdio/Makefile.in: Regenerated.
1298         * libc/stdio/vfprintf.c[STRING_ONLY][INTEGER_ONLY](_VFPRINTF_R):
1299         Redefine to be _svfiprintf_r which is optimized to work with siprintf
1300         family of functions (i.e. no I/O) and does not support floating-point.
1301         [STRING_ONLY][!INTEGER_ONLY](_VFPRINTF_R): Redefine to be
1302         _svfprintf_r which is optimized to work with sprintf family of
1303         functions and not use I/O.
1304         [STRING_ONLY](__sprint_r): New string only version of static function.
1305         designed to work with sprintf family of functions.
1306         * libc/stdio/vfscanf.c[STRING_ONLY][INTEGER_ONLY](_SVFSCANF_R):
1307         Redefine to be _ssvfiscanf_r which is optimized to work with siscanf
1308         family of functions (i.e. no I/O) and no float-point support.
1309         [STRING_ONLY][!INTEGER_ONLY](_SVFSCANF_R): Redefine to be
1310         __ssvfscanf_r which is optimized to work with sscanf family of
1311         functions and does not require I/O functions.
1312         * libc/stdio/asprintf.c: Call _svfprintf_r instead of _vfprintf_r.
1313         * libc/stdio/snprintf.c: Ditto.
1314         * libc/stdio/sprintf.c: Ditto.
1315         * libc/stdio/vasnprintf.c: Ditto.
1316         * libc/stdio/vasprintf.c: Ditto.
1317         * libc/stdio/siprintf.c: Call _svfiprintf_r instead of _vfiprintf_r.
1318         * libc/stdio/sniprintf.c: Ditto.
1319         * libc/stdio/vasiprintf.c: Ditto.
1320         * libc/stdio/vsiprintf.c: Ditto.
1321         * libc/stdio/vsniprintf.c: Ditto.
1322         * libc/stdio/vsprintf.c: Ditto.
1323         * libc/stdio/local.h: Add prototypes for _svfprintf_r, _svfiprintf_r,
1324         _ssvfscanf_r, and _ssvfiscanf_r.
1325         * libc/stdio/sscanf.c: Call _ssvfscanf_r instead of _svfscanf_r.
1326         * libc/stdio/vsscanf.c: Ditto.
1327         * libc/stdio/siscanf.c: Call _ssvfiscanf_r instead of _svfiscanf_r.
1328         * libc/stdio/vsiscanf.c: Ditto.
1329
1330 2008-04-04  DJ Delorie  <dj@redhat.com>
1331
1332         * libm/machine/spu/configure: Regenerate with autoconf 2.61.
1333         * libc/sys/configure: Regenerate with autoconf 2.61.
1334         * libc/machine/configure: Regenerate with autoconf 2.61.
1335
1336 2008-04-01 Patrick Mansfield <patmans@us.ibm.com>
1337
1338         * libc/machine/spu/memcmp.c: New file for SPU optimized memcmp.
1339         * libc/machine/spu/strncmp.h: New file supply _strncmp_internal.
1340         * libc/machine/spu/Makefile.am: Add memcmp.c.
1341         * libc/machine/spu/Makefile.in: Rebuild.
1342         * libc/machine/spu/strncmp.c: Use _strncmp_internal.
1343
1344 2008-04-01 Patrick Mansfield <patmans@us.ibm.com>
1345
1346         * configure.host: Build SPU with -DREENTRANT_SYSCALLS_PROVIDED and
1347           -DMISSING_SYSCALL_NAMES.
1348
1349 2008-04-01 Patrick Mansfield <patmans@us.ibm.com>
1350
1351         * libc/machine/spu/Makefile.am: Add assert.c.
1352         * libc/machine/spu/Makefile.in: Regenerate.
1353         * libc/machine/spu/assert.c: New file.
1354
1355 2008-03-27 Patrick Mansfield <patmans@us.ibm.com>
1356
1357         * libc/include/reent.h: Define _func_r functions in this file to
1358         func if REENTRANT_SYSCALLS_PROVIDED and MISSING_SYSCALL_NAMES are
1359         defined.
1360
1361 2008-03-27  Corinna Vinschen  <corinna@vinschen.de>
1362
1363         * libc/include/sys/unistd.h: Declare lockf(2) and define lockf
1364         constants when building for Cygwin.
1365
1366 2008-03-11  Jeff Johnston  <jjohnstn@redhat.com>
1367
1368         * libc/stdio/rgetc.c (__srget_r): Invoke CHECK_INIT to ensure
1369         stdin gets resolved properly before refilling.
1370
1371 2008-03-07  Jeff Johnston  <jjohnstn@redhat.com>
1372
1373         * libc/include/getopt.h: Hide newlib extensions under
1374         the __need_getopt_newlib flag.
1375         * libc/stdlib/getopt.c: #define __need_getopt_newlib before including
1376         getopt.h.  Put entire code under !HAVE_GETOPT to support platforms
1377         with their own getopt implementation.
1378         * configure.host: Specify HAVE_GETOPT for x86-linux.
1379
1380 2008-03-07  Jeff Johnston  <jjohnstn@redhat.com>
1381
1382         * libc/include/sys/reent.h(_REENT_SMALL_CHECK_INIT): Specify
1383         this macro completely instead of referring to CHECK_STD_INIT which
1384         is only found in libc/stdio/local.h.
1385         * libc/stdio/dprintf.c: Add include of local.h.
1386         * libc/stdio/vdprintf.c: Ditto.
1387         * libc/stdio/vdiprintf.c: Ditto.
1388
1389 2008-03-04  Eric Blake  <ebb9@byu.net>
1390
1391         Fix strtod("nan()", ptr).
1392         * libc/stdlib/gdtoa-hexnan.c (hexnan): When the optional
1393         n-char-sequence is omitted, still parse the ().
1394
1395 2008-03-03  Eric Blake  <ebb9@byu.net>
1396
1397         Fix ftell bug after ungetc.
1398         * libc/stdio/ftell.c (_ftell_r): Don't flush ungetc buffer on
1399         ftell.
1400         * libc/stdio64/ftello64.c (_ftello64_r): Likewise.
1401         * libc/stdio/fflush.c (_fflush_r): Clear unget buffer when
1402         repositioning underlying fd offset.
1403
1404 2008-03-02  Jeff Johnston  <jjohnstn@redhat.com>
1405
1406         * libc/include/getopt.h (no_argument): Added for glibc compatibility.
1407         (required_argument, optional_argument): Ditto.
1408
1409 2008-02-29  Gregory Pietsch  <gpietsch@comcast.net>
1410
1411         * libc/stdlib/getopt.c (getopt_internal): Rewrite to accept
1412         data area so as to support reentrant calls.  Change all callers
1413         to fill in data area with global values and restore any changes
1414         to the global values after call.
1415         (__getopt_r, __getopt_long_r, __getopt_long_only_r): New routines
1416         to support reentrancy that add a data area argument.
1417         * libc/include/getopt.h: Add new _r routines and provide macros
1418         so they can be called with using double-underscores.
1419
1420 2008-02-21  Eric Blake  <ebb9@byu.net>
1421
1422         Fix strtod("-0x", NULL).
1423         * libc/stdlib/strtod.c (_strtod_r): Fall back to 0 if hex parse
1424         fails.
1425
1426 2008-02-12  Jeff Johnston  <jjohnstn@redhat.com>
1427
1428         * libc/machine/powerpc/vfprintf.c (_VFPRINTF_R): Prepare
1429         for user specifying --disable-newlib-io-long-long on configure.
1430         Call _fflush_r instead of fflush.  For _mbtowc_r, pass the
1431         reentrant pointer passed in rather than _REENT.
1432
1433 2008-02-12  Peter Rosin  <peda@lysator.liu.se>
1434
1435         * libc/stdlib/getopt.c (getopt_internal): Handle optional
1436         arguments better for long options and short options not
1437         appearing as the first option in a sequence.
1438
1439 2008-02-11  Patrick Mansfield  <patmans@us.ibm.com>
1440
1441         * libc/machine/spu/straddr.h: New file, supplies _straddr.
1442         * libc/machine/spu/strcat.c: Use _straddr and _strcpy.
1443         * libc/machine/spu/strcpy.c: Use _strcpy.
1444         * libc/machine/spu/strcpy.h: Supply _strcpy for optimized SPU
1445         str[n]cpy and str[n]cat.
1446         * libc/machine/spu/strncat.c: Use _straddr and _strcpy.
1447         * libc/machine/spu/strncpy.c: Use _strcpy.
1448
1449 2008-02-11  Patrick Mansfield  <patmans@us.ibm.com>
1450
1451         * libc/machine/spu/strlen.c: Remove the len variable and unneeded
1452         calculation of its value.
1453
1454 2008-01-25  Hans-Peter Nilsson  <hp@bitrange.com>
1455
1456         * libc/sys/mmixware/isatty.c (_isatty): Renamed from isatty.
1457         Make ISO C.
1458
1459 2008-01-21  DJ Delorie  <dj@redhat.com>
1460
1461         * libc/sys/sh/syscalls.c (_isatty): New.
1462
1463 2008-01-21  Neal H. Walfield  <neal@gnu.org>
1464
1465         * Makefile.am (crt1.o): Use correct source.
1466         * Makefile.in: Regenerated.
1467
1468 2008-01-15  Eric Blake  <ebb9@byu.net>
1469
1470         * libc/string/Makefile.am (ELIX_2_SOURCES): Fix definition.
1471         * libc/string/Makefile: Regenerate.
1472
1473 2008-01-15  Corinna Vinschen  <corinna@vinschen.de>
1474
1475         * libc/include/machine/setjmp.h (__SIGMASK_FUNC): Define as
1476         pthread_sigmask or sigprocmask depending on _POSIX_THREADS.
1477         (sigsetjmp): Use __SIGMASK_FUNC.
1478         (siglongjmp): Ditto.
1479         (_setjmp): Define as macro.
1480         (_longjmp): Ditto.
1481
1482 2008-01-11  Eric Blake  <ebb9@byu.net>
1483
1484         Make strstr and strcasestr O(n), not O(n^2); add memmem.
1485         * libc/string/str-two-way.h: New file.
1486         * libc/string/memmem.c (memmem): New file.
1487         * libc/include/string.h (memmem): Declare for all platforms.
1488         * libc/string/strstr.c (strstr): Provide O(n) implementation when
1489         not optimizing for space.
1490         * libc/string/strcasestr.c (strcasestr): Likewise.
1491         * libc/string/Makefile.am (ELIX_SOURCES): Rename to...
1492         (ELIX_2_SOURCES): ...this.
1493         (ELIX_4_SOURCES): New category, for memmem.
1494         (lib_a_SOURCES, libstring_la_SOURCES): Build new file.
1495         (CHEWOUT_FILES): Build documentation for memmem.
1496         * libc/string/strings.tex: Include new docs.
1497
1498 2008-01-08  Jeff Johnston  <jjohnstn@redhat.com>
1499
1500         * libc/machine/m68k/memcpy.S: Remove % from register references
1501         as this is already handled by m68kasm.h.
1502         * libc/machine/m68k/memset.S: Ditto.
1503
1504 2008-01-07  Jeff Johnston  <jjohnstn@redhat.com>
1505
1506         * libc/machine/m68k/m68kasm.h: New file.
1507         * libc/machine/m68k/setjmp.S: Remove common definitions and
1508         place in m68kasm.h.  Include "m68kasm.h".
1509         * libc/machine/m68k/memcpy.S: Include "m68kasm.h" and use
1510         SYM() macro when referencing function name.
1511         * libc/machine/m68k/memset.S: Ditto.
1512
1513 2008-01-03  Jeff Johnston  <jjohnstn@redhat.com>
1514
1515         Make isatty syscall handling consistent with other newlib syscalls.
1516
1517         * libc/include/_syslist.h: Add _isatty.
1518         * libc/include/reent.h: Add _isatty_r.
1519         * libc/include/sys/unistd.h: Add _isatty.
1520         * libc/posix/Makefile.am: Add new _isatty.c file.
1521         * libc/posix/Makefile.in: Regenerated.
1522         * libc/posix/_isatty.c: New file.
1523         * libc/posix/isatty.c: Changed to call _isatty().
1524         * libc/reent/Makefile.am: Add new isattyr.c file.
1525         * libc/reent/Makefile.in: Regenerated.
1526         * libc/reent/isattyr.c: New file.
1527         * libc/stdio/freopen.c: Changed to call _isatty_r().
1528         * libc/stdio/makebuf.c: Ditto.
1529         * libc/sys/a29khif/_isatty.S: Change isatty to _isatty.
1530         * libc/sys/arc/isatty.c: Ditto.
1531         * libc/sys/arm/syscalls.c: Ditto.
1532         * libc/sys/d10v/syscalls.c: Ditto.
1533         * libc/sys/h8300hms/syscalls.c: Ditto.
1534         * libc/sys/h8500hms/syscalls.c: Ditto.
1535         * libc/sys/linux/Makefile.am: Add new isatty.c file.
1536         * libc/sys/linux/Makefile.in: Regenerated.
1537         * libc/sys/linux/isatty.c: New file.
1538         * libc/syscalls/Makefile.am: Add new sysisatty.c file.
1539         * libc/syscalls/Makefile.in: Regenerated.
1540         * libc/syscalls/sysisatty.c: New file.
1541
1542 2008-01-02  Jeff Johnston  <jjohnstn@redhat.com>
1543
1544         * libc/syscalls/sysclose.c: Always call reentrant version of the
1545         underlying syscall since one is guaranteed to exist in libc/reent.
1546         * libc/syscalls/sysexecve.c: Ditto.
1547         * libc/syscalls/sysfcntl.c: Ditto.
1548         * libc/syscalls/sysfork.c: Ditto.
1549         * libc/syscalls/sysfstat.c: Ditto.
1550         * libc/syscalls/sysgetpid.c: Ditto.
1551         * libc/syscalls/sysgettod.c: Ditto.
1552         * libc/syscalls/syskill.c: Ditto.
1553         * libc/syscalls/syslink.c: Ditto.
1554         * libc/syscalls/syslseek.c: Ditto.
1555         * libc/syscalls/sysopen.c: Ditto.
1556         * libc/syscalls/sysread.c: Ditto.
1557         * libc/syscalls/syssbrk.c: Ditto.
1558         * libc/syscalls/sysstat.c: Ditto.
1559         * libc/syscalls/systimes.c: Ditto.
1560         * libc/syscalls/sysunlink.c: Ditto.
1561         * libc/syscalls/syswait.c: Ditto.
1562         * libc/syscalls/syswrite.c: Ditto.
1563
1564 2007-12-19  Jeff Johnston  <jjohnstn@redhat.com>
1565
1566         * NEWS: Update with 1.16.0 info.
1567         * README: Ditto.
1568         * acinclude.m4: Change version number to 1.16.0.
1569         * aclocal.m4: Regenerated.
1570         * configure: Ditto.
1571         * doc/aclocal.m4: Ditto.
1572         * doc/configure: Ditto.
1573         * libc/*/aclocal.m4: Ditto.
1574         * libc/*/configure: Ditto.
1575         * libc/libc.texinfo: Ditto.
1576         * libm/*/aclocal.m4: Ditto.
1577         * libm/*/configure: Ditto.
1578         * libm/libm.texinfo: Ditto.
1579         * libc/sys/linux/shared.ld: Add VERS_1.16.
1580
1581 2007-12-19  Jeff Johnston  <jjohnstn@redhat.com>
1582
1583         * libc/string/strcasestr.c: Remove id macro.
1584         * libc/sys/linux/linuxthreads/attr.c: Fix up sched_priority
1585         field reference to be __sched_priority.
1586         * libc/sys/linux/linuxthreads/joinrace.c: Ditto.
1587         * libc/sys/linux/linuxthreads/manager.c: Ditto.
1588         * libc/sys/linux/stdlib/collate.c: Remove id macro.
1589         * libc/sys/linux/stdlib/collcmp.c: Ditto.
1590         * libc/sys/linux/stdlib/engine.c: Ditto.
1591         * libc/sys/linux/stdlib/fnmatch.c: Ditto.
1592         * libc/sys/linux/stdlib/glob.c: Ditto.
1593         * libc/sys/linux/stdlib/reallocf.c: Ditto.
1594         * libc/sys/linux/stdlib/regcomp.c: Ditto.
1595         * libc/sys/linux/stdlib/regerror.c: Ditto.
1596         * libc/sys/linux/stdlib/regexec.c: Ditto.
1597         * libc/sys/linux/stdlib/regfree.c: Ditto.
1598         * libc/sys/linux/sys/cdefs.h: Replace with latest version.
1599         * libc/sys/linux/include/argp.h: Ditto.
1600         * libc/sys/linux/sys/libc-lock.h: New file.
1601         * libc/sys/linux/sys/stdint.h: Ditto.
1602         * libc/sys/linux/include/sched.h: New file.
1603
1604 2007-12-19  Dave Korn  <dave.korn@artimi.com>
1605             Jeff Johnston  <jjohnstn@redhhat.com>
1606
1607         * libc/include/_ansi.h: Add _LONG_LONG definition.
1608         * libc/include/math.h (llrint, llrintf, rintl, lrintl, llrintl): Add
1609         prototypes.
1610         * libc/machine/i386/machine/fastmath.h: Add support for new i386
1611         fast math versions of rint, lrint, and llrint family functions.
1612         * libm/machine/i386/Makefile.am: Add new files.
1613         * libm/machine/i386/Makefile.in: Regenerated.
1614         * libm/machine/i386/f_llrint.c, libm/machine/i386/f_lrint.c,
1615         libm/machine/i386/f_rint.c, libm/machine/i386/f_llrintf.c,
1616         libm/machine/i386/f_lrintf.c, libm/machine/i386/f_rintf.c,
1617         libm/machine/i386/f_llrintl.c, libm/machine/i386/f_lrintl.c,
1618         libm/machine/i386/f_rintl.c:  New files with fast math implementations.
1619
1620 2007-12-19  Jeff Johnston  <jjohnstn@redhat.com>
1621
1622         * libc/include/sys/features.h: Add checks for C90 compilers using
1623         -ansi.
1624
1625 2007-12-19  Corinna Vinschen  <corinna@vinschen.de>
1626
1627         * libc/include/wchar.h: Add prototypes for wcpcpy and wcpncpy.
1628         * libc/string/Makefile.am (ELIX_SOURCES): Add wcpcpy.c and
1629         wcpncpy.c.
1630         (CHEWOUT_FILES): Add wcpcpy.def and wcpncpy.def.
1631         * libc/string/Makefile.in: Regenerate.
1632         * libc/string/wcpcpy.c: New file.
1633         * libc/string/wcpncpy.c: New file.
1634         * libc/string/wcstrings.tex: Add wcpcpy and wcpncpy.
1635
1636 2007-12-19  Corinna Vinschen  <corinna@vinschen.de>
1637
1638         * libc/stdio/vfprintf.c (_VFPRINTF_R): Use correct pointer in call to
1639         _wcsrtombs_r.
1640
1641 2007-11-19  Nick Clifton  <nickc@redhat.com>
1642
1643         * libc/machine/mn10300/Makefile.am (CCASFLAGS): Add -Wa,--gdwarf-2.
1644         * libc/machine/mn10300/Makefile.in: Regenerate.
1645         * libc/machine/mn10300/memchar.S: Remove redundant labels.  Add
1646         .debug_frame section.
1647         * libc/machine/mn10300/memcmp.S: Likewise.
1648         * libc/machine/mn10300/memcpy.S: Likewise.
1649         * libc/machine/mn10300/memset.S: Likewise.
1650         * libc/machine/mn10300/strchr.S: Likewise.
1651         * libc/machine/mn10300/strcmp.S: Likewise.
1652         * libc/machine/mn10300/strcpy.S: Likewise.
1653         * libc/machine/mn10300/strlen.S: Likewise.
1654
1655 2007-11-15  Jeff Johnston  <jjohnstn@redhat.com>
1656
1657         * libc/include/sys/_default_fcntl.h: New header file that
1658         is the default version of sys/fcntl.h.
1659         * libc/include/sys/fcntl.h: Changed to simply include
1660         sys/_default_fcntl.h.
1661         * libc/sys/arm/sys/fcntl.h: New file that includes
1662         sys/_default_fcntl.h and defines O_BINARY.
1663
1664 2007-11-08  Corinna Vinschen  <corinna@vinschen.de>
1665
1666         * libc/include/sys/unistd.h: Remove Cygwin definition of MAXPATHLEN.
1667
1668 2007-11-07  Dave Brolley  <brolley@redhat.com>
1669
1670         * libc/machine/configure: Regenerated to pick up mep-elf changes.
1671
1672         * Contribute mep-elf from Red Hat
1673         2006-10-27  DJ Delorie  <dj@redhat.com>
1674
1675         * libc/include/machine/setjmp.h: Add MeP support.
1676
1677         2003-04-17  DJ Delorie  <dj@redhat.com>
1678
1679         * configure.host (mep-*-*): Support "long long" type.
1680
1681         2001-06-06  DJ Delorie  <dj@redhat.com>
1682
1683         * libc/include/machine/ieeefp.h (mep): Support little endian too.
1684
1685         2001-05-14  DJ Delorie  <dj@redhat.com>
1686
1687         * configure.host: Add mep's machine_dir.
1688         * libc/include/setjmp.h: Add mep support.
1689         * libc/machine/mep: New.
1690         * libc/machine/mep/setjmp.S: New, support mep's setjmp/longjmp.
1691
1692         2001-05-04  DJ Delorie  <dj@redhat.com>
1693
1694         * configure.host: Add mep.
1695         * libc/include/machine/ieeefp.h: Ditto.
1696
1697 2007-10-31  DJ Delorie  <dj@redhat.com>
1698
1699         * libc/signal/signal.c (_raise_r): Don't attempt to initialize the
1700         signal table, just use a default, in case initialization cause
1701         recursion.
1702
1703 2007-10-23  Jeff Johnston  <jjohnstn@redhat.com>
1704
1705         * libc/stdlib/wcstombs_r.c: Add SUSV2 support for calculating
1706         size if output buffer is NULL.
1707
1708 2007-10-17  Jeff Johnston  <jjohnstn@redhat.com>
1709
1710         * libm/mathfp/s_logarithm.c: Fix error introduced by previous
1711         fix when handling negative input values.  Make function
1712         consistent with math directory and glibc version such that
1713         inf and nan values return inf and nan respectively with no
1714         errno setting.
1715         * libm/mathfp/sf_logarithm.c: Ditto.
1716         * libm/math/w_log.c: Set errno to ERANGE when input is 0.0.
1717         * libm/math/wf_log.c: Ditto.
1718         * libm/math/w_log10.c: Ditto.
1719         * libm/math/wf_log10.c: Ditto.
1720
1721 2007-10-17  Jeff Johnston  <jjohnstn@redhat.com>
1722
1723         * libm/mathfp/s_logarithm.c: Fix case where input is 0 to
1724         return -inf.
1725         * libm/mathfp/sf_logarithm.c: Ditto.
1726
1727 2007-10-17  Jeff Johnston  <jjohnstn@redhat.com>
1728
1729         * libc/machine/i386/machine/fastmath.h: New file.
1730
1731 2007-10-13  Eric Blake  <ebb9@byu.net>
1732
1733         * libc/stdio/vfprintf.c (_VFPRINTF_R) [__OPTIMIZE_SIZE__]:
1734         Correctly nest else within conditionals.
1735         Reported by Artur Lipowski.
1736
1737 2007-10-09  Nick Clifton  <nickc@redhat.com>
1738
1739         * libc/sys/linux/dl/do-lookup.h (FCT): Support symbols with
1740         the STT_COMMON type.
1741
1742 2007-10-09  Ben Elliston  <bje@au.ibm.com>
1743
1744         * libm/machine/spu/headers/acosd2.h: Include spu_intrinsics.h
1745         before simdmath.h to get a definition for `vector'.
1746         * libm/machine/spu/headers/asind2.h: Likewise.
1747
1748 2007-09-28  Patrick Mansfield  <patmans@us.ibm.com>
1749
1750         * libm/machine/spu/headers/dom_chkd_less_than.h: New file.
1751         * libm/machine/spu/headers/dom_chkd_negone_one.h: Ditto.
1752         * libm/machine/spu/headers/dom_chkf_less_than.h: Ditto.
1753         * libm/machine/spu/headers/dom_chkf_negone_one.h: Ditto.
1754         * libm/machine/spu/headers/acos.h: Add domain check.
1755         * libm/machine/spu/headers/acosf.h: Ditto.
1756         * libm/machine/spu/headers/acosh.h: Ditto.
1757         * libm/machine/spu/headers/acoshf.h: Ditto.
1758         * libm/machine/spu/headers/asin.h: Ditto.
1759         * libm/machine/spu/headers/asinf.h: Ditto.
1760         * libm/machine/spu/headers/atanh.h: Ditto.
1761         * libm/machine/spu/headers/atanhf.h: Ditto.
1762         * libm/machine/spu/headers/fmod.h: Ditto.
1763         * libm/machine/spu/headers/fmodf.h: Ditto.
1764         * libm/machine/spu/headers/log.h: Ditto.
1765         * libm/machine/spu/headers/log10.h: Ditto.
1766         * libm/machine/spu/headers/log1p.h: Ditto.
1767         * libm/machine/spu/headers/log1pf.h: Ditto.
1768         * libm/machine/spu/headers/log2.h: Ditto.
1769         * libm/machine/spu/headers/log2f.h: Ditto.
1770         * libm/machine/spu/headers/sqrt.h: Ditto.
1771         * libm/machine/spu/headers/sqrtf.h: Ditto.
1772         * libm/machine/spu/headers/tgamma.h: Ditto.
1773         * libm/machine/spu/headers/tgammaf.h: Ditto.
1774
1775 2007-09-28  Patrick Mansfield  <patmans@us.ibm.com>
1776
1777         * libm/machine/spu/Makefile.am: Add new C files.
1778         * libm/machine/spu/Makefile.in: Regenerate.
1779         * libm/machine/spu/headers/acos.h: New file.
1780         * libm/machine/spu/headers/acosd2.h: Ditto.
1781         * libm/machine/spu/headers/acosf.h: Ditto.
1782         * libm/machine/spu/headers/acosf4.h: Ditto.
1783         * libm/machine/spu/headers/acosh.h: Ditto.
1784         * libm/machine/spu/headers/acoshd2.h: Ditto.
1785         * libm/machine/spu/headers/acoshf.h: Ditto.
1786         * libm/machine/spu/headers/acoshf4.h: Ditto.
1787         * libm/machine/spu/headers/asin.h: Ditto.
1788         * libm/machine/spu/headers/asind2.h: Ditto.
1789         * libm/machine/spu/headers/asinf.h: Ditto.
1790         * libm/machine/spu/headers/asinf4.h: Ditto.
1791         * libm/machine/spu/headers/asinh.h: Ditto.
1792         * libm/machine/spu/headers/asinhd2.h: Ditto.
1793         * libm/machine/spu/headers/asinhf.h: Ditto.
1794         * libm/machine/spu/headers/asinhf4.h: Ditto.
1795         * libm/machine/spu/headers/atan.h: Ditto.
1796         * libm/machine/spu/headers/atan2.h: Ditto.
1797         * libm/machine/spu/headers/atan2d2.h: Ditto.
1798         * libm/machine/spu/headers/atan2f.h: Ditto.
1799         * libm/machine/spu/headers/atan2f4.h: Ditto.
1800         * libm/machine/spu/headers/atand2.h: Ditto.
1801         * libm/machine/spu/headers/atanf4.h: Ditto.
1802         * libm/machine/spu/headers/atanh.h: Ditto.
1803         * libm/machine/spu/headers/atanhd2.h: Ditto.
1804         * libm/machine/spu/headers/atanhf.h: Ditto.
1805         * libm/machine/spu/headers/atanhf4.h: Ditto.
1806         * libm/machine/spu/headers/cos.h: Ditto.
1807         * libm/machine/spu/headers/cos_sin.h: Ditto.
1808         * libm/machine/spu/headers/cosd2.h: Ditto.
1809         * libm/machine/spu/headers/cosf.h: Ditto.
1810         * libm/machine/spu/headers/cosf4.h: Ditto.
1811         * libm/machine/spu/headers/cosh.h: Ditto.
1812         * libm/machine/spu/headers/coshd2.h: Ditto.
1813         * libm/machine/spu/headers/coshf.h: Ditto.
1814         * libm/machine/spu/headers/coshf4.h: Ditto.
1815         * libm/machine/spu/headers/divd2.h: Ditto.
1816         * libm/machine/spu/headers/divf4.h: Ditto.
1817         * libm/machine/spu/headers/erf.h: Ditto.
1818         * libm/machine/spu/headers/erf_utils.h: Ditto.
1819         * libm/machine/spu/headers/erfc.h: Ditto.
1820         * libm/machine/spu/headers/erfcd2.h: Ditto.
1821         * libm/machine/spu/headers/erfcf.h: Ditto.
1822         * libm/machine/spu/headers/erfcf4.h: Ditto.
1823         * libm/machine/spu/headers/erfd2.h: Ditto.
1824         * libm/machine/spu/headers/erff.h: Ditto.
1825         * libm/machine/spu/headers/erff4.h: Ditto.
1826         * libm/machine/spu/headers/exp.h: Ditto.
1827         * libm/machine/spu/headers/exp2.h: Ditto.
1828         * libm/machine/spu/headers/exp2d2.h: Ditto.
1829         * libm/machine/spu/headers/exp2f4.h: Ditto.
1830         * libm/machine/spu/headers/expd2.h: Ditto.
1831         * libm/machine/spu/headers/expf4.h: Ditto.
1832         * libm/machine/spu/headers/expm1.h: Ditto.
1833         * libm/machine/spu/headers/expm1d2.h: Ditto.
1834         * libm/machine/spu/headers/expm1f.h: Ditto.
1835         * libm/machine/spu/headers/expm1f4.h: Ditto.
1836         * libm/machine/spu/headers/floord2.h: Ditto.
1837         * libm/machine/spu/headers/floorf4.h: Ditto.
1838         * libm/machine/spu/headers/hypot.h: Ditto.
1839         * libm/machine/spu/headers/hypotd2.h: Ditto.
1840         * libm/machine/spu/headers/hypotf.h: Ditto.
1841         * libm/machine/spu/headers/hypotf4.h: Ditto.
1842         * libm/machine/spu/headers/isnan.h: Ditto.
1843         * libm/machine/spu/headers/isnand2.h: Ditto.
1844         * libm/machine/spu/headers/isnanf.h: Ditto.
1845         * libm/machine/spu/headers/isnanf4.h: Ditto.
1846         * libm/machine/spu/headers/ldexpd2.h: Ditto.
1847         * libm/machine/spu/headers/ldexpf4.h: Ditto.
1848         * libm/machine/spu/headers/lgamma.h: Ditto.
1849         * libm/machine/spu/headers/lgammad2.h: Ditto.
1850         * libm/machine/spu/headers/lgammaf.h: Ditto.
1851         * libm/machine/spu/headers/lgammaf4.h: Ditto.
1852         * libm/machine/spu/headers/log.h: Ditto.
1853         * libm/machine/spu/headers/log10.h: Ditto.
1854         * libm/machine/spu/headers/log10d2.h: Ditto.
1855         * libm/machine/spu/headers/log1p.h: Ditto.
1856         * libm/machine/spu/headers/log1pd2.h: Ditto.
1857         * libm/machine/spu/headers/log1pf.h: Ditto.
1858         * libm/machine/spu/headers/log1pf4.h: Ditto.
1859         * libm/machine/spu/headers/log2.h: Ditto.
1860         * libm/machine/spu/headers/log2d2.h: Ditto.
1861         * libm/machine/spu/headers/log2f4.h: Ditto.
1862         * libm/machine/spu/headers/logbf.h: Ditto.
1863         * libm/machine/spu/headers/logbf4.h: Ditto.
1864         * libm/machine/spu/headers/logd2.h: Ditto.
1865         * libm/machine/spu/headers/logf4.h: Ditto.
1866         * libm/machine/spu/headers/nearbyintf.h: Ditto.
1867         * libm/machine/spu/headers/nearbyintf4.h: Ditto.
1868         * libm/machine/spu/headers/nextafter.h: Ditto.
1869         * libm/machine/spu/headers/nextafterd2.h: Ditto.
1870         * libm/machine/spu/headers/nextafterf.h: Ditto.
1871         * libm/machine/spu/headers/nextafterf4.h: Ditto.
1872         * libm/machine/spu/headers/pow.h: Ditto.
1873         * libm/machine/spu/headers/powd2.h: Ditto.
1874         * libm/machine/spu/headers/powf.h: Ditto.
1875         * libm/machine/spu/headers/powf4.h: Ditto.
1876         * libm/machine/spu/headers/recipd2.h: Ditto.
1877         * libm/machine/spu/headers/recipf4.h: Ditto.
1878         * libm/machine/spu/headers/rintf.h: Ditto.
1879         * libm/machine/spu/headers/rintf4.h: Ditto.
1880         * libm/machine/spu/headers/scalbnf4.h: Ditto.
1881         * libm/machine/spu/headers/signbit.h: Ditto.
1882         * libm/machine/spu/headers/signbitd2.h: Ditto.
1883         * libm/machine/spu/headers/simdmath.h: Ditto.
1884         * libm/machine/spu/headers/sin.h: Ditto.
1885         * libm/machine/spu/headers/sincos.h: Ditto.
1886         * libm/machine/spu/headers/sincosd2.h: Ditto.
1887         * libm/machine/spu/headers/sincosf.h: Ditto.
1888         * libm/machine/spu/headers/sincosf4.h: Ditto.
1889         * libm/machine/spu/headers/sind2.h: Ditto.
1890         * libm/machine/spu/headers/sinf.h: Ditto.
1891         * libm/machine/spu/headers/sinf4.h: Ditto.
1892         * libm/machine/spu/headers/sinh.h: Ditto.
1893         * libm/machine/spu/headers/sinhd2.h: Ditto.
1894         * libm/machine/spu/headers/sinhf.h: Ditto.
1895         * libm/machine/spu/headers/sinhf4.h: Ditto.
1896         * libm/machine/spu/headers/sqrtd2.h: Ditto.
1897         * libm/machine/spu/headers/sqrtf.h: Ditto.
1898         * libm/machine/spu/headers/sqrtf4.h: Ditto.
1899         * libm/machine/spu/headers/tan.h: Ditto.
1900         * libm/machine/spu/headers/tand2.h: Ditto.
1901         * libm/machine/spu/headers/tanf.h: Ditto.
1902         * libm/machine/spu/headers/tanf4.h: Ditto.
1903         * libm/machine/spu/headers/tanh.h: Ditto.
1904         * libm/machine/spu/headers/tanhd2.h: Ditto.
1905         * libm/machine/spu/headers/tanhf.h: Ditto.
1906         * libm/machine/spu/headers/tanhf4.h: Ditto.
1907         * libm/machine/spu/headers/tgamma.h: Ditto.
1908         * libm/machine/spu/headers/tgammad2.h: Ditto.
1909         * libm/machine/spu/headers/tgammaf.h: Ditto.
1910         * libm/machine/spu/headers/tgammaf4.h: Ditto.
1911         * libm/machine/spu/headers/truncd2.h: Ditto.
1912         * libm/machine/spu/headers/truncf4.h: Ditto.
1913         * libm/machine/spu/log2.c: Ditto.
1914         * libm/machine/spu/s_asinh.c: Ditto.
1915         * libm/machine/spu/s_atan.c: Ditto.
1916         * libm/machine/spu/s_cos.c: Ditto.
1917         * libm/machine/spu/s_erf.c: Ditto.
1918         * libm/machine/spu/s_expm1.c: Ditto.
1919         * libm/machine/spu/s_isnan.c: Ditto.
1920         * libm/machine/spu/s_log1p.c: Ditto.
1921         * libm/machine/spu/s_nextafter.c: Ditto.
1922         * libm/machine/spu/s_sin.c: Ditto.
1923         * libm/machine/spu/s_tan.c: Ditto.
1924         * libm/machine/spu/s_tanh.c: Ditto.
1925         * libm/machine/spu/sf_asinh.c: Ditto.
1926         * libm/machine/spu/sf_cos.c: Ditto.
1927         * libm/machine/spu/sf_erf.c: Ditto.
1928         * libm/machine/spu/sf_expm1.c: Ditto.
1929         * libm/machine/spu/sf_log1p.c: Ditto.
1930         * libm/machine/spu/sf_logb.c: Ditto.
1931         * libm/machine/spu/sf_nearbyint.c: Ditto.
1932         * libm/machine/spu/sf_nextafter.c: Ditto.
1933         * libm/machine/spu/sf_rint.c: Ditto.
1934         * libm/machine/spu/sf_sin.c: Ditto.
1935         * libm/machine/spu/sf_tan.c: Ditto.
1936         * libm/machine/spu/sf_tanh.c: Ditto.
1937         * libm/machine/spu/w_acos.c: Ditto.
1938         * libm/machine/spu/w_acosh.c: Ditto.
1939         * libm/machine/spu/w_asin.c: Ditto.
1940         * libm/machine/spu/w_atan2.c: Ditto.
1941         * libm/machine/spu/w_atanh.c: Ditto.
1942         * libm/machine/spu/w_cosh.c: Ditto.
1943         * libm/machine/spu/w_exp.c: Ditto.
1944         * libm/machine/spu/w_exp2.c: Ditto.
1945         * libm/machine/spu/w_hypot.c: Ditto.
1946         * libm/machine/spu/w_lgamma.c: Ditto.
1947         * libm/machine/spu/w_log.c: Ditto.
1948         * libm/machine/spu/w_log10.c: Ditto.
1949         * libm/machine/spu/w_pow.c: Ditto.
1950         * libm/machine/spu/w_sincos.c: Ditto.
1951         * libm/machine/spu/w_sinh.c: Ditto.
1952         * libm/machine/spu/w_tgamma.c: Ditto.
1953         * libm/machine/spu/wf_acos.c: Ditto.
1954         * libm/machine/spu/wf_acosh.c: Ditto.
1955         * libm/machine/spu/wf_asin.c: Ditto.
1956         * libm/machine/spu/wf_atan2.c: Ditto.
1957         * libm/machine/spu/wf_atanh.c: Ditto.
1958         * libm/machine/spu/wf_cosh.c: Ditto.
1959         * libm/machine/spu/wf_hypot.c: Ditto.
1960         * libm/machine/spu/wf_lgamma.c: Ditto.
1961         * libm/machine/spu/wf_pow.c: Ditto.
1962         * libm/machine/spu/wf_sincos.c: Ditto.
1963         * libm/machine/spu/wf_sinh.c: Ditto.
1964         * libm/machine/spu/wf_sqrt.c: Ditto.
1965         * libm/machine/spu/wf_tgamma.c: Ditto.
1966
1967 2007-09-28  Patrick Mansfield  <patmans@us.ibm.com>
1968
1969         * configure.host: Define _POSIX_MODE to match the existing vector
1970         math code, as we don't support the matherr callout.
1971         * libm/machine/spu/Makefile.am: New file.
1972         * libm/machine/spu/Makefile.in: Auto-generated.
1973         * libm/machine/spu/headers/atanf.h: New file.
1974         * libm/machine/spu/headers/cbrt.h: Ditto.
1975         * libm/machine/spu/headers/cbrtf.h: Ditto.
1976         * libm/machine/spu/headers/ceil.h: Ditto.
1977         * libm/machine/spu/headers/ceilf.h: Ditto.
1978         * libm/machine/spu/headers/copysign.h: Ditto.
1979         * libm/machine/spu/headers/copysignf.h: Ditto.
1980         * libm/machine/spu/headers/exp2f.h: Ditto.
1981         * libm/machine/spu/headers/expf.h: Ditto.
1982         * libm/machine/spu/headers/fabs.h: Ditto.
1983         * libm/machine/spu/headers/fabsf.h: Ditto.
1984         * libm/machine/spu/headers/fdim.h: Ditto.
1985         * libm/machine/spu/headers/fdimf.h: Ditto.
1986         * libm/machine/spu/headers/floor.h: Ditto.
1987         * libm/machine/spu/headers/floorf.h: Ditto.
1988         * libm/machine/spu/headers/fma.h: Ditto.
1989         * libm/machine/spu/headers/fmaf.h: Ditto.
1990         * libm/machine/spu/headers/fmax.h: Ditto.
1991         * libm/machine/spu/headers/fmaxf.h: Ditto.
1992         * libm/machine/spu/headers/fmin.h: Ditto.
1993         * libm/machine/spu/headers/fminf.h: Ditto.
1994         * libm/machine/spu/headers/fmod.h: Ditto.
1995         * libm/machine/spu/headers/fmodf.h: Ditto.
1996         * libm/machine/spu/headers/frexp.h: Ditto.
1997         * libm/machine/spu/headers/frexpf.h: Ditto.
1998         * libm/machine/spu/headers/ilogb.h: Ditto.
1999         * libm/machine/spu/headers/ilogbf.h: Ditto.
2000         * libm/machine/spu/headers/ldexp.h: Ditto.
2001         * libm/machine/spu/headers/ldexpf.h: Ditto.
2002         * libm/machine/spu/headers/llrint.h: Ditto.
2003         * libm/machine/spu/headers/llrintf.h: Ditto.
2004         * libm/machine/spu/headers/llround.h: Ditto.
2005         * libm/machine/spu/headers/llroundf.h: Ditto.
2006         * libm/machine/spu/headers/log10f.h: Ditto.
2007         * libm/machine/spu/headers/log2f.h: Ditto.
2008         * libm/machine/spu/headers/logf.h: Ditto.
2009         * libm/machine/spu/headers/lrint.h: Ditto.
2010         * libm/machine/spu/headers/lrintf.h: Ditto.
2011         * libm/machine/spu/headers/lround.h: Ditto.
2012         * libm/machine/spu/headers/lroundf.h: Ditto.
2013         * libm/machine/spu/headers/nearbyint.h: Ditto.
2014         * libm/machine/spu/headers/remainder.h: Ditto.
2015         * libm/machine/spu/headers/remainderf.h: Ditto.
2016         * libm/machine/spu/headers/remquo.h: Ditto.
2017         * libm/machine/spu/headers/remquof.h: Ditto.
2018         * libm/machine/spu/headers/rint.h: Ditto.
2019         * libm/machine/spu/headers/round.h: Ditto.
2020         * libm/machine/spu/headers/roundf.h: Ditto.
2021         * libm/machine/spu/headers/scalbn.h: Ditto.
2022         * libm/machine/spu/headers/scalbnf.h: Ditto.
2023         * libm/machine/spu/headers/sqrt.h: Ditto.
2024         * libm/machine/spu/headers/trunc.h: Ditto.
2025         * libm/machine/spu/headers/truncf.h: Ditto.
2026         * libm/machine/spu/headers/vec_literal.h: Ditto.
2027         * libm/machine/spu/llrint.c: Ditto.
2028         * libm/machine/spu/llrintf.c: Ditto.
2029         * libm/machine/spu/llround.c: Ditto.
2030         * libm/machine/spu/llroundf.c: Ditto.
2031         * libm/machine/spu/log2f.c: Ditto.
2032         * libm/machine/spu/s_cbrt.c: Ditto.
2033         * libm/machine/spu/s_ceil.c: Ditto.
2034         * libm/machine/spu/s_copysign.c: Ditto.
2035         * libm/machine/spu/s_fabs.c: Ditto.
2036         * libm/machine/spu/s_fdim.c: Ditto.
2037         * libm/machine/spu/s_floor.c: Ditto.
2038         * libm/machine/spu/s_fma.c: Ditto.
2039         * libm/machine/spu/s_fmax.c: Ditto.
2040         * libm/machine/spu/s_fmin.c: Ditto.
2041         * libm/machine/spu/s_frexp.c: Ditto.
2042         * libm/machine/spu/s_ilogb.c: Ditto.
2043         * libm/machine/spu/s_ldexp.c: Ditto.
2044         * libm/machine/spu/s_lrint.c: Ditto.
2045         * libm/machine/spu/s_lround.c: Ditto.
2046         * libm/machine/spu/s_nearbyint.c: Ditto.
2047         * libm/machine/spu/s_remquo.c: Ditto.
2048         * libm/machine/spu/s_rint.c: Ditto.
2049         * libm/machine/spu/s_round.c: Ditto.
2050         * libm/machine/spu/s_scalbn.c: Ditto.
2051         * libm/machine/spu/s_trunc.c: Ditto.
2052         * libm/machine/spu/sf_atan.c: Ditto.
2053         * libm/machine/spu/sf_cbrt.c: Ditto.
2054         * libm/machine/spu/sf_ceil.c: Ditto.
2055         * libm/machine/spu/sf_copysign.c: Ditto.
2056         * libm/machine/spu/sf_fabs.c: Ditto.
2057         * libm/machine/spu/sf_fdim.c: Ditto.
2058         * libm/machine/spu/sf_floor.c: Ditto.
2059         * libm/machine/spu/sf_fma.c: Ditto.
2060         * libm/machine/spu/sf_fmax.c: Ditto.
2061         * libm/machine/spu/sf_fmin.c: Ditto.
2062         * libm/machine/spu/sf_frexp.c: Ditto.
2063         * libm/machine/spu/sf_ilogb.c: Ditto.
2064         * libm/machine/spu/sf_ldexp.c: Ditto.
2065         * libm/machine/spu/sf_lrint.c: Ditto.
2066         * libm/machine/spu/sf_lround.c: Ditto.
2067         * libm/machine/spu/sf_remquo.c: Ditto.
2068         * libm/machine/spu/sf_round.c: Ditto.
2069         * libm/machine/spu/sf_scalbn.c: Ditto.
2070         * libm/machine/spu/sf_trunc.c: Ditto.
2071         * libm/machine/spu/w_fmod.c: Ditto.
2072         * libm/machine/spu/w_remainder.c: Ditto.
2073         * libm/machine/spu/w_sqrt.c: Ditto.
2074         * libm/machine/spu/wf_exp.c: Ditto.
2075         * libm/machine/spu/wf_exp2.c: Ditto.
2076         * libm/machine/spu/wf_fmod.c: Ditto.
2077         * libm/machine/spu/wf_log.c: Ditto.
2078         * libm/machine/spu/wf_log10.c: Ditto.
2079         * libm/machine/spu/wf_remainder.c: Ditto.
2080
2081 2007-09-21  Patrick Mansfield  <patmans@us.ibm.com>
2082
2083         * libc/machine/spu/sys/uio.h: New file for readv and writev use.
2084
2085 2007-09-21  Patrick Mansfield  <patmans@us.ibm.com>
2086
2087         * libc/include/sched.h: New file, just include sys/sched.h.
2088         * libc/machine/spu/sys/sched.h: New file, has just sched_yield
2089         prototype.
2090         * libc/machine/spu/sys/utime.h: New file, has utime prototype and
2091         struct utimbuf definition.
2092
2093 2007-09-21  Patrick Mansfield  <patmans@us.ibm.com>
2094
2095         * libc/machine/spu/sys/dirent.h: New file, add prototypes and SPU
2096         specific struct and typedef.
2097
2098 2007-09-18  Patrick Mansfield  <patmans@us.ibm.com>
2099
2100         * libc/include/sys/types.h: Use __dev_t, __uid_t, and __gid_t to
2101         typedef dev_t, gid_t, and uid_t.
2102         * libc/include/sys/_types.h: Move previous dev_t, uid_t and gid_t
2103         types.h code to here, but typedef __dev_t, __uid_t, and __gid_t instead.
2104         Change to lower case for all __foo_t_defined names.
2105         * libc/machine/spu/machine/_types.h: Add SPU specific __dev_t,
2106         __uid_t, and __gid_t making them all four bytes. Change to lower case
2107         for all __foo_t_defined names.
2108
2109 2007-09-18  Jeff Johnston  <jjohnstn@redhat.com>
2110
2111         * libc/reent/renamer.c: New file.
2112         * libc/reent/Makefile.am: Add new file.
2113         * libc/reent/Makefile.in: Regenerated.
2114         * libc/stdio/rename.c: Break out _rename_r code into reent/renamer.c
2115         and add check for rename syscall.
2116
2117 2007-09-17  Eric Blake  <ebb9@byu.net>
2118
2119         Obey POSIX on printf("%.s", (char*)NULL).
2120         * libc/stdio/vfprintf.c (_VFPRINTF_R): Take precision into account
2121         for %s on NULL.  Skip NULL check when optimizing for size.
2122
2123 2007-09-07  Jeff Johnston  <jjohnstn@redhat.com>
2124
2125         * libc/include/sys/_types.h: Protect all types with flag
2126         checks to allow definition in machine/_types.h.
2127
2128 2007-09-07  Jeff Johnston  <jjohnstn@redhat.com>
2129
2130         * libc/sys/linux/sys/_types.h: Add _fpos_t and _fpos64_t
2131         definitions in light of the previous change.
2132
2133 2007-09-07  Patrick Mansfield  <patmans@us.ibm.com>
2134
2135         * libc/include/machine/_default_types.h: New file, contains what
2136         was previously in libc/include/machine/_types.h.
2137         * libc/include/machine/_types.h: Now only includes
2138         machine/_default_types.h.
2139         * libc/include/sys/reent.h: Remove _fpos_t and _fpos64_t.
2140         * libc/include/sys/_types.h: Move _fpos_t and _fpos64_t to here,
2141         with conditional declarations.
2142         * libc/machine/spu/machine/_types.h: New file, add SPU specific
2143         typedefs for _fpos_t and _fpos64_t.
2144
2145 2007-09-07  Jeff Johnston  <jjohnstn@redhat.com>
2146
2147         * libc/include/math.h (_M_LOG2E): Replace with..
2148         (_M_LOG2_E): New macro.
2149         (log2, log2f, M_LOG2_E): Use _M_LOG2_E.
2150
2151 2007-09-06  Brian Dessent  <brian@dessent.net>
2152
2153         * libc/reent/getreent.c: Allow for case where __getreent is
2154         defined as a macro.
2155
2156 2007-09-06  Jeff Johnston  <jjohnstn@redhat.com>
2157
2158         * libc/include/math.h (_M_LOG2E): New log2 of e macro.
2159         (log2): Use _M_LOG2E instead of M_LOG2E.
2160         (log2f): Ditto.
2161         (M_LOG2E): Define to be _M_LOG2E.
2162
2163 2007-09-04  Kazunori Asayama <asayama@sm.sony.co.jp>
2164
2165         * libm/math/wf_tgamma.c: Add missing include.
2166
2167 2007-08-31  Antony King  <antony.king@st.com>
2168
2169         * libc/stdlib/mprec.h [_DOUBLE_IS_32BITS}: Define IEEE_Arith
2170         bits and redefine associated dword0 macro (rvalue issue).
2171         * libc/stdio/vfieeefp.h: Ditto.
2172         * libc/stdlib/strtod.c: Add checks for _DOUBLE_IS_32BITS
2173         to prevent setting dword1 which is an rvalue only.
2174
2175 2007-08-28  Hans Kester  <hans.kester@ellips.nl>
2176
2177         * configure.host: Added support for x86_64.
2178         * libc/include/machine/ieeefp.h: Define __IEEE_LITTLE_ENDIAN for x86_64.
2179         * libc/include/machine/setjmp.h: Define _JBTYPE and _JBLEN for x86_64.
2180         * libc/machine/x86_64/aclocal.m4: Generated.
2181         * libc/machine/x86_64/configure.in: New.
2182         * libc/machine/x86_64/configure: Generated.
2183         * libc/machine/x86_64/Makefile.am: New.
2184         * libc/machine/x86_64/Makefile.in: Generated.
2185         * libc/machine/x86_64/setjmp.S: New.
2186         * libc/machine/x86_64/memcpy.S: New.
2187         * libc/machine/x86_64/memset.S: New.
2188         * libc/machine/configure.in: Added support for x86_64.
2189         * libc/machine/configure: Regenerated.
2190
2191 2007-08-24  Jeff Johnston  <jjohnstn@redhat.com>
2192
2193         * libm/common/sf_lround.c (lroundf): Cast sizeof calculation
2194         to int before comparing it to a signed int value.
2195
2196 2007-08-24  Hans-Peter Nilsson  <hp@axis.com>
2197
2198         * libc/machine/cris/sys/errno.h (ECANCELED, ENOKEY, EKEYEXPIRED)
2199         (EKEYREVOKED, EKEYREJECTED, EOWNERDEAD, ENOTRECOVERABLE, ENOTSUP):
2200         Define.
2201
2202 2007-08-23  Hidetaka Takano  <hidetaka.takano@glb.toshiba.co.jp>
2203
2204         Reduce the memory consumption of variable argument functions
2205         for SPU (cell):
2206         * libc/machine/spu/Makefile.am: Replace printf/scanf family C sources
2207           to assembler sources.
2208         * libc/machine/spu/Makefile.in: Regenerated.
2209         * libc/machine/spu/stdio.c: Add __check_init function wrapping
2210           CHECK_INIT macro to use from assembler routines.
2211         * libc/machine/spu/c99ppe.h: Add definitions for assembler code.
2212         * libc/machine/spu/fiprintf.S: New file.
2213         * libc/machine/spu/fiscanf.S: Ditto.
2214         * libc/machine/spu/fprintf.S: Ditto.
2215         * libc/machine/spu/fscanf.S: Ditto.
2216         * libc/machine/spu/iprintf.S: Ditto.
2217         * libc/machine/spu/iscanf.S: Ditto.
2218         * libc/machine/spu/printf.S: Ditto.
2219         * libc/machine/spu/scanf.S: Ditto.
2220         * libc/machine/spu/siprintf.S: Ditto.
2221         * libc/machine/spu/siscanf.S: Ditto.
2222         * libc/machine/spu/sniprintf.S: Ditto.
2223         * libc/machine/spu/snprintf.S: Ditto.
2224         * libc/machine/spu/sprintf.S: Ditto.
2225         * libc/machine/spu/sscanf.S: Ditto.
2226         * libc/machine/spu/stack_reg_va.S: Ditto.
2227         * libc/machine/spu/syscall.def: Ditto. (for maintenance)
2228         * libc/machine/spu/mk_syscalls: Ditto. (for maintenance)
2229         * libc/machine/spu/fiprintf.c: Removed. (Replaced by .S)
2230         * libc/machine/spu/fiscanf.c: Ditto.
2231         * libc/machine/spu/fprintf.c: Ditto.
2232         * libc/machine/spu/fscanf.c: Ditto.
2233         * libc/machine/spu/iprintf.c: Ditto.
2234         * libc/machine/spu/iscanf.c: Ditto.
2235         * libc/machine/spu/printf.c: Ditto.
2236         * libc/machine/spu/scanf.c: Ditto.
2237         * libc/machine/spu/siprintf.c: Ditto.
2238         * libc/machine/spu/siscanf.c: Ditto.
2239         * libc/machine/spu/sniprintf.c: Ditto.
2240         * libc/machine/spu/snprintf.c: Ditto.
2241         * libc/machine/spu/sprintf.c: Ditto.
2242         * libc/machine/spu/sscanf.c: Ditto.
2243
2244 2007-08-03  Ralf Corsepius  <ralf.corsepius@rtems.org>
2245
2246         * libc/include/tar.h: New.
2247
2248 2007-08-03  Jeff Johnston  <jjohnstn@redhat.com>
2249
2250         * libc/sys/linux/intl/Makefile.am: Change stpcpy reference to
2251         lcl_stpcpy to avoid conflict with new stpcpy.c in libc/string.
2252         * libc/sys/linux/intl/Makefile.in: Regenerated.
2253         * libc/sys/linux/intl/stpcpy.c: Renamed to...
2254         * libc/sys/linux/intl/lcl_stpcpy.c: ..this.
2255
2256 2007-08-02  Eric Blake  <ebb9@byu.net>
2257
2258         Implement fmemopen and open_memstream.
2259         * libc/stdio/fmemopen.c (_fmemopen_r, fmemopen): New file.
2260         * libc/stdio/open_memstream.c (_open_memstream_r, open_memstream):
2261         New file.
2262         * libc/stdio/fopencookie.c (fcwriter): Minor optimization.
2263         * libc/include/stdio.h (dprintf, vdprintf): Group all POSIX 200x
2264         functions together.
2265         (fmemopen, open_memstream): Declare new functions.
2266         * libc/stdio/stdio.tex: Document them.
2267         * libc/stdio/Makefile.am (ELIX_4_SOURCES, CHEWOUT_FILES): Add
2268         fmemopen and open_memstream.
2269         * libc/stdio/Makefile.in: Regenerate.
2270
2271 2007-07-31  Eric Blake  <ebb9@byu.net>
2272
2273         More POSIX stream corner cases.
2274         * libc/stdio/findfp.c (__sinit): Open stderr read/write.
2275         * libc/stdio/fdopen.c (_fdopen_r): Set O_APPEND on fd when
2276         requested.
2277         * libc/stdio64/fdopen64.c (_fdopen64_r): Likewise.
2278
2279 2007-07-18  Eric Blake  <ebb9@byu.net>
2280
2281         Fix 'make info'.
2282         * libc/stdio/stdio.tex: Add missing include.
2283         * libc/stdio/vfprintf.c: Use expected node name.
2284         * libc/stdio/vfscanf.c: Likewise.
2285         * libc/stdio/sscanf.c: Likewise.
2286         * libc/stdio/sprintf.c: Likewise.
2287         * libc/stdio/siscanf.c: Likewise.
2288         * libc/stdio/siprintf.c: Likewise.
2289         * libc/stdio/fopencookie.c: Quote raw {}.
2290         Reported by DJ Delorie.
2291
2292 2007-07-13  Eric Blake  <ebb9@byu.net>
2293
2294         Fix fflush issues.
2295         * libc/stdio/fflush.c (_fflush_r): New function.
2296         (fflush): Fix reentrancy and large offset behavior.
2297         * libc/include/stdio.h (_fflush_r): Add prototype.
2298         * libc/stdio/fclose.c (_fclose_r): All fflush callers changed.
2299         * libc/stdio/freopen.c (_freopen_r): Likewise.
2300         * libc/stdio/fseek.c (_fseek_r): Likewise.
2301         * libc/stdio/ftell.c (_ftell_r): Likewise.
2302         * libc/stdio/fvwrite.c (__sfvwrite_r): Likewise.
2303         * libc/stdio/refill.c (__srefill_r): Likewise.
2304         * libc/stdio/setvbuf.c (setvbuf): Likewise.
2305         * libc/stdio/ungetc.c (_ungetc_r): Likewise.
2306         * libc/stdio/vfprintf.c (__sbprintf): Likewise.
2307         * libc/stdio/wbuf.c (__swbuf_r): Likewise.
2308         * libc/stdio64/freopen64.c (_freopen64_r): Likewise.
2309         * libc/stdio64/fseeko64.c (_fseeko64_r): Likewise.  Defer to
2310         32-bit version if not large file.
2311         * libc/stdio64/ftello64.c (_ftello64_r): Likewise.
2312         * libc/stdio64/tmpfile64.c (_tmpfile64_r): Avoid compile warning.
2313
2314         Documentation updates.
2315         * libc/stdio/ungetc.c: Document ungetc.
2316         * libc/stdio/Makefile.am (CHEWOUT_FILES): Sort, match current list
2317         of files with documentation.
2318         * libc/stdio/Makefile.in: Regenerate.
2319         * libc/stdio/stdio.tex: Sort and update stdio documentation index.
2320
2321 2007-07-11  Jeff Johnston  <jjohnstn@redhat.com>
2322
2323         * libc/include/math.h: Fix so C99 functions/macros are accessible
2324         when -std=c99 is used when compiling and not when using C89.
2325
2326 2007-07-06  Corinna Vinschen  <corinna@vinschen.de>
2327
2328         * libc/include/wchar.h: Declare wcstol, wcstoll, wcstoul,
2329         wcstoull, _wcstol_r, _wcstoll_r, _wcstoul_r and _wcstoull_r.
2330         * libc/stdlib/Makefile.am (GENERAL_SOURCES): Add wcstol.c and wcstoul.c.
2331         (EXTENDED_SOURCES): Add wcstoll.c, wcstoll_r.c, wcstoull.c and
2332         wcstoull_r.c.
2333         (CHEWOUT_FILES): Add .def files accordingly.
2334         * libc/stdlib/Makefile.in: Regenerate.
2335         * libc/stdlib/stdlib.tex: Add documentation links for above functions.
2336         * libc/stdlib/strtoll.c: Fix portability note.
2337         * libc/stdlib/strtoull.c: Ditto.
2338         * libc/stdlib/wcstol.c: New file.
2339         * libc/stdlib/wcstoll.c: New file.
2340         * libc/stdlib/wcstoll_r.c: New file.
2341         * libc/stdlib/wcstoul.c: New file.
2342         * libc/stdlib/wcstoull.c: New file.
2343         * libc/stdlib/wcstoull_r.c: New file.
2344
2345 2007-07-06  Jeff Johnston  <jjohnstn@redhat.com>
2346
2347         * libc/include/sys/time.h (gettimeofday): Change to proper
2348         prototype where second parameter is void *.
2349         * libc/reent/gettimeofdayr.c (_gettimeofday_r): Change prototype
2350         accordingly.
2351         * libc/include/reent.h: Fix prototype for _gettimeofday_r.
2352         * libc/sys/arm/syscalls.c: Fix gettimeofday function signature.
2353         * libc/sys/rdos/gettod.c: Ditto.
2354         * libc/sys/sh/syscalls.c: Ditto.
2355         * libc/time/time.c (time): Change call to _gettimeofday_r
2356         to pass NULL as 2nd argument.
2357
2358 2007-07-06  Jeff Johnston  <jjohnstn@redhat.com>
2359
2360         * libc/sys/linux/intl/dcigettext.c: Define HAVE_STPCPY.
2361         * libc/sys/linux/intl/l10nflist.c: Ditto.
2362
2363 2007-07-04  Corinna Vinschen  <corinna@vinschen.de>
2364
2365         * libc/include/wchar.h: Add prototype for wcsxfrm.
2366         * libc/string/Makefile.am (GENERAL_SOURCES): Add wcsxfrm.c.
2367         (CHEWOUT_FILES): Add wcsxfrm.def.
2368         * libc/string/Makefile.in: Regenerate.
2369         * libc/string/wcsxfrm.c: New file.
2370         * libc/string/wcstrings.tex: Add wcsxfrm.
2371
2372 2007-06-28  Corinna Vinschen  <corinna@vinschen.de>
2373
2374         * libc/include/string.h: Add prototypes for stpcpy and stpncpy.
2375         * libc/string/Makefile.am (ELIX_SOURCES): Add stpcpy.c and
2376         stpncpy.c.
2377         (CHEWOUT_FILES): Add stpcpy.def and stpncpy.def.
2378         * libc/string/Makefile.in: Regenerate.
2379         * libc/string/stpcpy.c: New file.
2380         * libc/string/stpncpy.c: New file.
2381         * libc/string/strings.tex: Add stpcpy and stpncpy.
2382
2383 2007-06-27  Eric Blake  <ebb9@byu.net>
2384
2385         Support __func__ in assert, as required by C99.
2386         * libc/stdlib/assert.c (__assert_func): New function.
2387         (__assert): Use __assert_func.
2388         * libc/include/assert.h (assert) [!NDEBUG]: Use __assert_func when
2389         possible.
2390
2391 2007-06-20  Patrick Mansfield  <patmans@us.ibm.com>
2392
2393         * libc/machine/spu/perror.c: Pass errno as the second argument to
2394         the assist call.
2395
2396 2007-06-20  Patrick Mansfield  <patmans@us.ibm.com>
2397
2398         * libc/include/sys/unistd.h[__SPU__]: Add lockf prototype and related
2399         defines; expose ftruncate, truncate and sync prototypes.
2400
2401 2007-06-20  Patrick Mansfield  <patmans@us.ibm.com>
2402
2403         * libc/include/sys/unistd.h[__SPU__]: Make fchdir prototype visible.
2404         * libc/include/sys/stat.h[__SPU__]: Make mknod and lstat prototypes
2405         visible.
2406
2407 2007-06-15  Patrick Mansfield  <patmans@us.ibm.com>
2408
2409         * libc/machine/spu/Makefile.am: Remove mktemp.c, it was left in
2410         from a dropped patch.
2411         * libc/machine/spu/Makefile.in: Regenerate.
2412
2413 2007-06-13  Patrick Mansfield  <patmans@us.ibm.com>
2414
2415         * libc/machine/spu/creat.c: New file copied from libc/posix/creat.c,
2416         it just calls open with appropriate arguments.
2417         * libc/machine/spu/Makefile.am: Add creat.c.
2418         * libc/machine/spu/Makefile.in: Regenerate.
2419
2420 2007-06-13  Jeff Johnston  <jjohnstn@redhat.com>
2421
2422         * libc/machine/spu/Makefile.am: Re-add back setjmp.S which
2423         I accidentally dropped.
2424         * libc/machine/spu/Makefile.in: Regenerated.
2425
2426 2007-06-13  Patrick Mansfield  <patmans@us.ibm.com>
2427
2428         * libc/include/sys/features.h: Define _POSIX_TIMERS for spu.
2429         * libc/include/sys/unistd.h: Change usleep prototype to Posix
2430         form and move outside of OS flag checks.
2431         * libc/machine/spu/Makefile.am: Add sleep and usleep.
2432         * libc/machine/spu/Makefile.in: Regenerate.
2433         * libc/machine/spu/sleep.c: Copy libc/posix/sleep.c.
2434         * libc/machine/spu/usleep.c: Copy libc/posix/usleep.c.
2435
2436 2007-06-11  Corinna Vinschen  <corinna@vinschen.de>
2437
2438         * libc/include/sys/unistd.h: Declare confstr for Cygwin.
2439         Define confstr constants for Cygwin.  Add comment.
2440
2441 2007-06-10  Hans-Peter Nilsson  <hp@bitrange.com>
2442
2443         * libc/sys/mmixware/access.c (access): Do not try to use a magic
2444         file-handle and a direct syscall, just use _open.
2445         * libc/sys/mmixware/sys/syscall.h (TMPFNO): Remove this magic
2446         file-handle.
2447
2448         * libc/sys/mmixware/_exit.c (_exit): Update comment about
2449         passing on the exit value.
2450
2451 2007-06-08  Jeff Johnston  <jjohnstn@redhat.com>
2452
2453         * libc/string/strcasestr.c: New file.
2454         * libc/include/string.h: Add strcasestr.
2455         * libc/string/strings.tex: Add strcasestr.
2456         * libc/string/Makefile.am: Ditto.
2457         * libc/string/Makefile.in: Regenerated.
2458
2459 2007-06-06  Christian Groessler  <chris@groessler.org>
2460
2461         * libc/stdlib/ldtoa (_ldcheck): Make sure the setting of
2462         rnd is done after the last local variable declaration.
2463
2464 2007-06-06  Jeff Johnston  <jjohnstn@redhat.com>
2465
2466         * libc/stdlib/mprec.h[Just_16]: Make sure that Pack_16 is defined.
2467
2468 2007-06-05  Christian Groessler  <chris@groessler.org>
2469
2470         * libc/argz/argz_insert.c (argz_insert): Move delta variable
2471         declaration to top of function in keeping with C89 standard.
2472
2473 2007-06-04  Eric Blake  <ebb9@byu.net>
2474
2475         Implement funopen, fopencookie.
2476         * libc/include/sys/reent.h (struct __sFILE, struct __sFILE64):
2477         Switch to reentrant callbacks.
2478         * libc/include/stdio.h (funopen): Fix declaration.
2479         (fopencookie): Declare.
2480         * libc/stdio/local.h (__sread, __swrite, __sseek, __sclose)
2481         (__sseek64, __swrite64): Fix prototypes.
2482         [__SCLE]: Pull in setmode declaration.
2483         * libc/stdio/stdio.c (__sread, __swrite, __sseek, __sclose): Fix
2484         reentrancy.
2485         * libc/stdio64/stdio64.c (__sseek64_r, __swrite64_r): Delete.
2486         (__sseek64, __swrite64): Fix reentrancy.
2487         * libc/stdio/fseek.c (_fseek_r): Account for overflow, and fix
2488         reentrancy.
2489         * libc/stdio/ftell.c (_ftell_r): Likewise.
2490         * libc/stdio/flags.c (__sflags): Don't lose __SAPP on "a+".
2491         * libc/stdio/fclose.c (_fclose_r): Fix reentrancy.
2492         * libc/stdio/freopen.c (_freopen_r): Likewise.
2493         * libc/stdio/fvwrite.c (__sfvwrite_r): Likewise.
2494         * libc/stdio/refill.c (__srefill_r): Likewise.
2495         * libc/stdio/siscanf.c (eofread): Likewise.
2496         * libc/stdio/sscanf.c (eofread): Likewise.
2497         * libc/stdio/vsiscanf.c (eofread1): Likewise.
2498         * libc/stdio/vsscanf.c (eofread1): Likewise.
2499         * libc/stdio64/freopen64.c (_freopen64_r): Likewise.
2500         * libc/stdio64/fseeko64.c (_fseeko64_r): Likewise.
2501         * libc/stdio64/ftello64.c (_ftello64_r): Likewise.
2502         * libc/stdio/fflush.c (fflush): Improve reentrancy, although more
2503         could be fixed.
2504         * libc/stdio/fopencookie.c (_fopencookie_r, fopencookie): New file.
2505         * libc/stdio/funopen.c (_funopen_r, funopen): New file.
2506         * libc/stdio/Makefile.am (ELIX_4_SOURCES, CHEWOUT_FILES): Build
2507         new files.
2508         * libc/stdio/Makefile.in: Regenerate.
2509
2510 2007-05-29  Eric Blake  <ebb9@byu.net>
2511
2512         Avoid more compiler warnings.
2513         * libc/stdlib/btowc.c: Add missing header.
2514         * libc/stdlib/getopt.c (getopt_internal): Initialize variable.
2515         * libc/stdlib/system.c (do_system) [__CYGWIN__]: Add declaration.
2516         * libc/stdlib/wctob.c: Add missing header.
2517         * libc/string/strcpy.c (strcpy): Avoid warnings.
2518         * libc/string/strrchr.c (strrchr): Likewise.
2519
2520 2007-05-29  Corinna Vinschen  <corinna@vinschen.de>
2521
2522         * libc/argz/argz_add_sep.c (argz_add_sep): Handle empty string
2523         argument.
2524         * libc/argz/argz_append.c (argz_append): Handle empty buf argument.
2525         * libc/argz/argz_create_sep.c (argz_create_sep): Return (NULL, 0)
2526         on empty input strings.
2527         * libc/argz/argz_extract.c (argz_extract): Check argz_len before
2528         looping through argz.
2529         * libc/argz/argz_stringify.c (argz_stringify): Ditto.
2530
2531 2007-05-27  Brian Dessent  <brian@dessent.net>
2532
2533         * libc/stdio/vfprintf.c (_VFPRINTF_R): Populate 'ox' when
2534         handling %p.
2535
2536 2007-05-25  Eric Blake  <ebb9@byu.net>
2537
2538         * libc/stdio/rewind.c (rewind): Fix regression of 2003-08-22.
2539
2540 2007-05-24  Steve Ellcey  <sje@cup.hp.com>
2541             Charles Wilson  <libtool@cwilson.fastmail.fm>
2542
2543         * libtool.m4: removed
2544         * configure.in: invoke _LD_DECL_SED before conditionally initializing
2545         libtool.  Move AC_PROG_AWK outside conditional.
2546         * libc/sys/linux/configure.in: Ditto.
2547         * libc/sys/linux/linuxthreads/configure.in: Ditto.
2548         * libc/sys/linux/linuxthreads/machine/i386/configure.in: Ditto.
2549         * libc/sys/linux/machine/i386/configure.in: Ditto.
2550
2551         * iconvdata/configure.in: invoke _LD_DECL_SED before conditionally
2552         initializing libtool.
2553         * libc/configure.in: Ditto.
2554         * libc/machine/configure.in: Ditto.
2555         * libc/machine/i386/configure.in: Ditto.
2556         * libc/sys/configure.in: Ditto.
2557         * libc/sys/linux/linuxthreads/machine/configure.in: Ditto.
2558         * libc/sys/linux/machine/configure.in: Ditto.
2559         * libm/configure.in: Ditto.
2560         * libm/machine/configure.in: Ditto.
2561
2562         * Makefile.am: Ensure toplevel is included in ACLOCAL_AMFLAGS.
2563         * doc/Makefile.am: Ditto.
2564         * iconvdata/Makefile.am: Ditto.
2565         * libc/Makefile.am: Ditto.
2566         * libc/machine/Makefile.am: Ditto.
2567         * libc/machine/a29k/Makefile.am: Ditto.
2568         * libc/machine/arm/Makefile.am: Ditto.
2569         * libc/machine/bfin/Makefile.am: Ditto.
2570         * libc/machine/cris/Makefile.am: Ditto.
2571         * libc/machine/crx/Makefile.am: Ditto.
2572         * libc/machine/d10v/Makefile.am: Ditto.
2573         * libc/machine/d30v/Makefile.am: Ditto.
2574         * libc/machine/fr30/Makefile.am: Ditto.
2575         * libc/machine/frv/Makefile.am: Ditto.
2576         * libc/machine/h8300/Makefile.am: Ditto.
2577         * libc/machine/h8500/Makefile.am: Ditto.
2578         * libc/machine/hppa/Makefile.am: Ditto.
2579         * libc/machine/i386/Makefile.am: Ditto.
2580         * libc/machine/i960/Makefile.am: Ditto.
2581         * libc/machine/iq2000/Makefile.am: Ditto.
2582         * libc/machine/m32c/Makefile.am: Ditto.
2583         * libc/machine/m32r/Makefile.am: Ditto.
2584         * libc/machine/m68hc11/Makefile.am: Ditto.
2585         * libc/machine/m68k/Makefile.am: Ditto.
2586         * libc/machine/m88k/Makefile.am: Ditto.
2587         * libc/machine/mips/Makefile.am: Ditto.
2588         * libc/machine/mn10200/Makefile.am: Ditto.
2589         * libc/machine/mn10300/Makefile.am: Ditto.
2590         * libc/machine/mt/Makefile.am: Ditto.
2591         * libc/machine/necv70/Makefile.am: Ditto.
2592         * libc/machine/powerpc/Makefile.am: Ditto.
2593         * libc/machine/sh/Makefile.am: Ditto.
2594         * libc/machine/sparc/Makefile.am: Ditto.
2595         * libc/machine/spu/Makefile.am: Ditto.
2596         * libc/machine/tic4x/Makefile.am: Ditto.
2597         * libc/machine/tic80/Makefile.am: Ditto.
2598         * libc/machine/v850/Makefile.am: Ditto.
2599         * libc/machine/w65/Makefile.am: Ditto.
2600         * libc/machine/xscale/Makefile.am: Ditto.
2601         * libc/machine/xstormy16/Makefile.am: Ditto.
2602         * libc/machine/z8k/Makefile.am: Ditto.
2603         * libc/sys/Makefile.am: Ditto.
2604         * libc/sys/a29khif/Makefile.am: Ditto.
2605         * libc/sys/arc/Makefile.am: Ditto.
2606         * libc/sys/arm/Makefile.am: Ditto.
2607         * libc/sys/d10v/Makefile.am: Ditto.
2608         * libc/sys/decstation/Makefile.am: Ditto.
2609         * libc/sys/h8300hms/Makefile.am: Ditto.
2610         * libc/sys/h8500hms/Makefile.am: Ditto.
2611         * libc/sys/linux/Makefile.am: Ditto.
2612         * libc/sys/linux/linuxthreads/Makefile.am: Ditto.
2613         * libc/sys/linux/linuxthreads/machine/Makefile.am: Ditto.
2614         * libc/sys/linux/linuxthreads/machine/i386/Makefile.am: Ditto.
2615         * libc/sys/linux/machine/Makefile.am: Ditto.
2616         * libc/sys/linux/machine/i386/Makefile.am: Ditto.
2617         * libc/sys/m88kbug/Makefile.am: Ditto.
2618         * libc/sys/mmixware/Makefile.am: Ditto.
2619         * libc/sys/netware/Makefile.am: Ditto.
2620         * libc/sys/rdos/Makefile.am: Ditto.
2621         * libc/sys/rtems/Makefile.am: Ditto.
2622         * libc/sys/sh/Makefile.am: Ditto.
2623         * libc/sys/sparc64/Makefile.am: Ditto.
2624         * libc/sys/sun4/Makefile.am: Ditto.
2625         * libc/sys/sysmec/Makefile.am: Ditto.
2626         * libc/sys/sysnec810/Makefile.am: Ditto.
2627         * libc/sys/sysnecv850/Makefile.am: Ditto.
2628         * libc/sys/sysvi386/Makefile.am: Ditto.
2629         * libc/sys/sysvnecv70/Makefile.am: Ditto.
2630         * libc/sys/tic80/Makefile.am: Ditto.
2631         * libc/sys/w65/Makefile.am: Ditto.
2632         * libc/sys/z8ksim/Makefile.am: Ditto.
2633         * libm/Makefile.am: Ditto.
2634         * libm/machine/Makefile.am: Ditto.
2635         * libm/machine/i386/Makefile.am: Ditto.
2636         * libm/machine/spu/Makefile.am: Ditto.
2637
2638         * aclocal.m4: Regenerate.
2639         * iconvdata/aclocal.m4: Regenerate.
2640         * libc/aclocal.m4: Regenerate.
2641         * libc/machine/aclocal.m4: Regenerate.
2642         * libc/machine/i386/aclocal.m4: Regenerate.
2643         * libc/sys/aclocal.m4: Regenerate.
2644         * libc/sys/linux/aclocal.m4: Regenerate.
2645         * libc/sys/linux/linuxthreads/aclocal.m4: Regenerate.
2646         * libc/sys/linux/linuxthreads/machine/aclocal.m4: Regenerate.
2647         * libc/sys/linux/linuxthreads/machine/i386/aclocal.m4: Regenerate.
2648         * libc/sys/linux/machine/aclocal.m4: Regenerate.
2649         * libc/sys/linux/machine/i386/aclocal.m4: Regenerate.
2650         * libm/aclocal.m4: Regenerate.
2651         * libm/machine/aclocal.m4: Regenerate.
2652         * libm/machine/i386/aclocal.m4: Regenerate.
2653
2654         * Makefile.in: Regenerate.
2655         * doc/Makefile.in: Regenerate.
2656         * iconvdata/Makefile.in: Regenerate.
2657         * libc/Makefile.in: Regenerate.
2658         * libc/argz/Makefile.in: Regenerate.
2659         * libc/ctype/Makefile.in: Regenerate.
2660         * libc/errno/Makefile.in: Regenerate.
2661         * libc/iconv/Makefile.in: Regenerate.
2662         * libc/iconv/ccs/Makefile.in: Regenerate.
2663         * libc/iconv/ccs/binary/Makefile.in: Regenerate.
2664         * libc/iconv/ces/Makefile.in: Regenerate.
2665         * libc/iconv/lib/Makefile.in: Regenerate.
2666         * libc/locale/Makefile.in: Regenerate.
2667         * libc/machine/Makefile.in: Regenerate.
2668         * libc/machine/a29k/Makefile.in: Regenerate.
2669         * libc/machine/arm/Makefile.in: Regenerate.
2670         * libc/machine/bfin/Makefile.in: Regenerate.
2671         * libc/machine/cris/Makefile.in: Regenerate.
2672         * libc/machine/crx/Makefile.in: Regenerate.
2673         * libc/machine/d10v/Makefile.in: Regenerate.
2674         * libc/machine/d30v/Makefile.in: Regenerate.
2675         * libc/machine/fr30/Makefile.in: Regenerate.
2676         * libc/machine/frv/Makefile.in: Regenerate.
2677         * libc/machine/h8300/Makefile.in: Regenerate.
2678         * libc/machine/h8500/Makefile.in: Regenerate.
2679         * libc/machine/hppa/Makefile.in: Regenerate.
2680         * libc/machine/i386/Makefile.in: Regenerate.
2681         * libc/machine/i960/Makefile.in: Regenerate.
2682         * libc/machine/iq2000/Makefile.in: Regenerate.
2683         * libc/machine/m32c/Makefile.in: Regenerate.
2684         * libc/machine/m32r/Makefile.in: Regenerate.
2685         * libc/machine/m68hc11/Makefile.in: Regenerate.
2686         * libc/machine/m68k/Makefile.in: Regenerate.
2687         * libc/machine/m88k/Makefile.in: Regenerate.
2688         * libc/machine/mips/Makefile.in: Regenerate.
2689         * libc/machine/mn10200/Makefile.in: Regenerate.
2690         * libc/machine/mn10300/Makefile.in: Regenerate.
2691         * libc/machine/mt/Makefile.in: Regenerate.
2692         * libc/machine/necv70/Makefile.in: Regenerate.
2693         * libc/machine/powerpc/Makefile.in: Regenerate.
2694         * libc/machine/sh/Makefile.in: Regenerate.
2695         * libc/machine/sparc/Makefile.in: Regenerate.
2696         * libc/machine/spu/Makefile.in: Regenerate.
2697         * libc/machine/tic4x/Makefile.in: Regenerate.
2698         * libc/machine/tic80/Makefile.in: Regenerate.
2699         * libc/machine/v850/Makefile.in: Regenerate.
2700         * libc/machine/w65/Makefile.in: Regenerate.
2701         * libc/machine/xscale/Makefile.in: Regenerate.
2702         * libc/machine/xstormy16/Makefile.in: Regenerate.
2703         * libc/machine/z8k/Makefile.in: Regenerate.
2704         * libc/misc/Makefile.in: Regenerate.
2705         * libc/posix/Makefile.in: Regenerate.
2706         * libc/reent/Makefile.in: Regenerate.
2707         * libc/search/Makefile.in: Regenerate.
2708         * libc/signal/Makefile.in: Regenerate.
2709         * libc/stdio/Makefile.in: Regenerate.
2710         * libc/stdio64/Makefile.in: Regenerate.
2711         * libc/stdlib/Makefile.in: Regenerate.
2712         * libc/string/Makefile.in: Regenerate.
2713         * libc/sys/Makefile.in: Regenerate.
2714         * libc/sys/a29khif/Makefile.in: Regenerate.
2715         * libc/sys/arc/Makefile.in: Regenerate.
2716         * libc/sys/arm/Makefile.in: Regenerate.
2717         * libc/sys/d10v/Makefile.in: Regenerate.
2718         * libc/sys/decstation/Makefile.in: Regenerate.
2719         * libc/sys/h8300hms/Makefile.in: Regenerate.
2720         * libc/sys/h8500hms/Makefile.in: Regenerate.
2721         * libc/sys/linux/Makefile.in: Regenerate.
2722         * libc/sys/linux/argp/Makefile.in: Regenerate.
2723         * libc/sys/linux/cmath/Makefile.in: Regenerate.
2724         * libc/sys/linux/dl/Makefile.in: Regenerate.
2725         * libc/sys/linux/iconv/Makefile.in: Regenerate.
2726         * libc/sys/linux/intl/Makefile.in: Regenerate.
2727         * libc/sys/linux/linuxthreads/Makefile.in: Regenerate.
2728         * libc/sys/linux/linuxthreads/machine/Makefile.in: Regenerate.
2729         * libc/sys/linux/linuxthreads/machine/i386/Makefile.in: Regenerate.
2730         * libc/sys/linux/machine/Makefile.in: Regenerate.
2731         * libc/sys/linux/machine/i386/Makefile.in: Regenerate.
2732         * libc/sys/linux/net/Makefile.in: Regenerate.
2733         * libc/sys/linux/stdlib/Makefile.in: Regenerate.
2734         * libc/sys/m88kbug/Makefile.in: Regenerate.
2735         * libc/sys/mmixware/Makefile.in: Regenerate.
2736         * libc/sys/netware/Makefile.in: Regenerate.
2737         * libc/sys/rdos/Makefile.in: Regenerate.
2738         * libc/sys/rtems/Makefile.in: Regenerate.
2739         * libc/sys/sh/Makefile.in: Regenerate.
2740         * libc/sys/sparc64/Makefile.in: Regenerate.
2741         * libc/sys/sun4/Makefile.in: Regenerate.
2742         * libc/sys/sysmec/Makefile.in: Regenerate.
2743         * libc/sys/sysnec810/Makefile.in: Regenerate.
2744         * libc/sys/sysnecv850/Makefile.in: Regenerate.
2745         * libc/sys/sysvi386/Makefile.in: Regenerate.
2746         * libc/sys/sysvnecv70/Makefile.in: Regenerate.
2747         * libc/sys/tic80/Makefile.in: Regenerate.
2748         * libc/sys/w65/Makefile.in: Regenerate.
2749         * libc/sys/z8ksim/Makefile.in: Regenerate.
2750         * libc/syscalls/Makefile.in: Regenerate.
2751         * libc/time/Makefile.in: Regenerate.
2752         * libc/unix/Makefile.in: Regenerate.
2753         * libm/Makefile.in: Regenerate.
2754         * libm/common/Makefile.in: Regenerate.
2755         * libm/machine/Makefile.in: Regenerate.
2756         * libm/machine/i386/Makefile.in: Regenerate.
2757         * libm/machine/spu/Makefile.in: Regenerate.
2758         * libm/math/Makefile.in: Regenerate.
2759         * libm/mathfp/Makefile.in: Regenerate.
2760
2761         * configure: Regenerate.
2762         * iconvdata/configure: Regenerate.
2763         * libc/configure: Regenerate.
2764         * libc/machine/configure: Regenerate.
2765         * libc/machine/i386/configure: Regenerate.
2766         * libc/sys/configure: Regenerate.
2767         * libc/sys/linux/configure: Regenerate.
2768         * libc/sys/linux/linuxthreads/configure: Regenerate.
2769         * libc/sys/linux/linuxthreads/machine/configure: Regenerate.
2770         * libc/sys/linux/linuxthreads/machine/i386/configure: Regenerate.
2771         * libc/sys/linux/machine/configure: Regenerate.
2772         * libc/sys/linux/machine/i386/configure: Regenerate.
2773         * libm/configure: Regenerate.
2774         * libm/machine/configure: Regenerate.
2775         * libm/machine/i386/configure: Regenerate.
2776
2777 2007-05-23  Eric Blake  <ebb9@byu.net>
2778
2779         * libc/stdio/vfprintf.c (_VFPRINTF_R): Don't truncate %p when
2780         sizeof(void*) is 8 but sizeof(long) is 4.
2781         * libc/stdio/vfscanf.c (__SVFSCANF_R): Likewise.  Fix %i scanning
2782         of "-0x".  Support "-nan" and "inf" for %e.  Audit usage of ungetc
2783         to fix reentrancy and bug on encoding error in multibyte locales.
2784         Always return EOF on read error.
2785
2786 2007-05-23 Patrick Mansfield <patmans@us.ibm.com>
2787
2788         * libc/machine/spu/sys/syscall.h: Update the __send_to_ppe
2789         prototype.
2790         * libc/machine/spu/fclose.c: Use the __send_to_ppe return value
2791         instead of the slot 0 value, remove any now unused variables, and
2792         for some cases, now store the result in an int vs int*.
2793         * libc/machine/spu/feof.c: Ditto.
2794         * libc/machine/spu/ferror.c: Ditto.
2795         * libc/machine/spu/fflush.c: Ditto.
2796         * libc/machine/spu/fgetc.c: Ditto.
2797         * libc/machine/spu/fgetpos.c: Ditto.
2798         * libc/machine/spu/fgets.c: Ditto.
2799         * libc/machine/spu/fileno.c: Ditto.
2800         * libc/machine/spu/fopen.c: Ditto.
2801         * libc/machine/spu/fprintf.c: Ditto.
2802         * libc/machine/spu/fputc.c: Ditto.
2803         * libc/machine/spu/fputs.c: Ditto.
2804         * libc/machine/spu/fread.c: Ditto.
2805         * libc/machine/spu/freopen.c: Ditto.
2806         * libc/machine/spu/fscanf.c: Ditto.
2807         * libc/machine/spu/fseek.c: Ditto.
2808         * libc/machine/spu/fsetpos.c: Ditto.
2809         * libc/machine/spu/ftell.c: Ditto.
2810         * libc/machine/spu/fwrite.c: Ditto.
2811         * libc/machine/spu/getc.c: Ditto.
2812         * libc/machine/spu/getchar.c: Ditto.
2813         * libc/machine/spu/gets.c: Ditto.
2814         * libc/machine/spu/printf.c: Ditto.
2815         * libc/machine/spu/putc.c: Ditto.
2816         * libc/machine/spu/putchar.c: Ditto.
2817         * libc/machine/spu/puts.c: Ditto.
2818         * libc/machine/spu/remove.c: Ditto.
2819         * libc/machine/spu/rename.c: Ditto.
2820         * libc/machine/spu/scanf.c: Ditto.
2821         * libc/machine/spu/setvbuf.c: Ditto.
2822         * libc/machine/spu/snprintf.c: Ditto.
2823         * libc/machine/spu/sprintf.c: Ditto.
2824         * libc/machine/spu/sscanf.c: Ditto.
2825         * libc/machine/spu/tmpfile.c: Ditto.
2826         * libc/machine/spu/tmpnam.c: Ditto.
2827         * libc/machine/spu/ungetc.c: Ditto.
2828         * libc/machine/spu/vfprintf.c: Ditto.
2829         * libc/machine/spu/vfscanf.c: Ditto.
2830         * libc/machine/spu/vprintf.c: Ditto.
2831         * libc/machine/spu/vscanf.c: Ditto.
2832         * libc/machine/spu/vsnprintf.c: Ditto.
2833         * libc/machine/spu/vsprintf.c: Ditto.
2834         * libc/machine/spu/vsscanf.c: Ditto.
2835
2836 2007-05-23  Eric Blake  <ebb9@byu.net>
2837
2838         * libc/stdio/vfscanf.c (__SVFSCANF_R): Support scanf(%1$s).
2839         Avoid warning when !FLOATING_POINT.
2840         * libc/stdio/vfprintf.c (_VFPRINTF_R): Simplify _NO_POS_ARGS
2841         slightly.
2842
2843 2007-05-23  Corinna Vinschen  <vinschen@redhat.com>
2844
2845         * libc/argz/argz_create_sep.c (argz_create_sep): Initialize *argz_len
2846         to zero.
2847         * libc/include/argz.h: Guard against multiple inclusion.  Guard for
2848         use with C++.
2849
2850 2007-05-18  Eric Blake  <ebb9@byu.net>
2851
2852         * libc/stdio/vfprintf.c [_WANT_IO_LONG_LONG]: Allow non-gcc
2853         compilers.
2854         * libc/stdio/vfscanf.c: Likewise.
2855
2856 2007-05-17  Cary R.  <cygcary <at> yahoo.com>
2857
2858         * libm/math/w_atan2.c: Fix atan2 to be consistent with glibc
2859         (atan2(+0,-0), atan2(-0,-0) and atan(-0,+0))
2860         * libm/math/wf_atan2.c: Ditto.
2861
2862 2007-05-17  Yaakov Selkowitz  <yselkowitz <at> users.sourceforge.net>
2863
2864         * libm/common/Makefile.am: Add support for exp10, exp10f,
2865         pow10, and pow10f functions.
2866         * libm/common/Makefile.in: Regenerated.
2867         * libm/common/s_pow10.c: New file.
2868         * libm/common/sf_pow10.c: Ditto.
2869         * libm/common/s_exp10.c: Ditto.
2870         * libm/common/sf_exp10.c: Ditto.
2871         * libc/include/math.h [!pow10]: New pow10 prototype.
2872         [!pow10f]: New pow10f prototype.
2873         [!exp10]: New exp10 prototype.
2874         [!exp10f]: New exp10f prototype.
2875
2876 2007-05-17  Charles Wilson  <cygwin@...>
2877
2878         * stdio/tmpfile.c: Include <sys/stat.h>.
2879         * stdio64/tmpfile64.c: Ditto.
2880
2881 2007-05-16  Eric Blake  <ebb9@byu.net>
2882
2883         Close security hole in tmpfile.
2884         * libc/stdio/tmpfile.c (_tmpfile_r): Avoid window between filename
2885         generation and opening the fd.
2886         * libc/stdio64/tmpfile64.c (_tmpfile64_r): Likewise.
2887
2888         * libc/include/math.h (INFINITY, NAN, FP_ILOGB0, FP_ILOGBNAN)
2889         (MATH_ERRNO, MATH_ERREXCEPT, math_errhandling): Add macros
2890         required by POSIX.
2891         * libc/stdlib/ldtoa.c (USE_INFINITY): Rename from INFINITY, to
2892         avoid clash with <math.h>.
2893
2894         * libc/stdlib/wctomb_r.c (_wctomb_r): Avoid gcc warnings on cygwin.
2895         * libc/search/hash.c (__hash_open): Likewise.
2896
2897 2007-05-14 Eric Blake <ebb9@byu.net>
2898
2899         Reduce stack size of *printf.
2900         * libc/stdio/vfprintf.c (_VFPRINTF_R): Fix use of decimal point
2901         in %f.  Avoid malloc when possible for %S.
2902         (BUF): Improve stack locality by using smaller size.
2903         (MAXEXPLEN, _PRINTF_FLOAT_TYPE): Define.
2904         (exponent): Use smaller stack size.
2905
2906 2007-05-11  Eric Blake  <ebb9@byu.net>
2907
2908         Minimize printf/scanf size on platforms that don't need C99.
2909         * acconfig.h (_WANT_IO_C99_FORMATS): New macro.
2910         * newlib.hin (_WANT_IO_C99_FORMATS): Likewise.
2911         * configure.in (newlib-io-c99-formats): New configure option.
2912         (_WANT_IO_C99_FORMATS): Define appropriately.
2913         * configure.host (*-linux*, cygwin): Default c99-formats to yes.
2914         * libc/stdio/vfprintf.c (_VFPRINTF_R) [!_WANT_IO_C99_FORMATS]:
2915         Cripple ' flag; hh, z, j, t sizes; a, A, F, C, S specifiers.
2916         * libc/stdio/vfscanf.c (_VFSCANF_R) [!_WANT_IO_C99_FORMATS]:
2917         Likewise.
2918         * configure: Regenerate.
2919
2920         * libc/stdio/vfprintf.c (_VFPRINTF_R, cvt, exponent, chclass)
2921         (get_arg): Support '%a' and '%A'.
2922
2923 2007-05-09  Eric Blake  <ebb9@byu.net>
2924
2925         Allow zero size with non-null buf in *asnprintf.
2926         * libc/stdio/asnprintf.c (_asnprintf_r, asnprintf): Avoid free'ing
2927         user's buf.
2928         * libc/stdio/asniprintf.c (_asniprintf_r, asniprintf): Likewise.
2929         * libc/stdio/vasniprintf.c (_vasniprintf_r): Likewise.
2930         * libc/stdio/vasnprintf.c (_vasnprintf_r): Likewise.
2931
2932 2007-05-07  Charles Wilson  <cygwin@...>
2933
2934         * libc/stdio/vfprintf.c: Fix typo in comments that breaks docs.
2935
2936 2007-05-03  Eric Blake  <ebb9@byu.net>
2937
2938         Add support for asnprintf, and improve *printf documentation.
2939         * libc/stdio/Makefile.am (ELIX_SOURCES): Rename...
2940         (ELIX_2_SOURCES): ...to this.
2941         (ELIX_4_SOURCES): Add new variable.  Build asnprintf.
2942         (GENERAL_SOURCES): Move dprintf to ELIX_4_SOURCES.
2943         (CHEWOUT_FILES): Include diprintf in documentation.
2944         * libc/stdio/Makefile.in: Regenerate.
2945         * libc/stdio/diprintf.c: Improve documentation.
2946         * libc/stdio/dprintf.c: Likewise.
2947         * libc/stdio/siprintf.c: Likewise.
2948         * libc/stdio/sprintf.c: Likewise.
2949         * libc/stdio/vfprintf.c: Likewise.
2950         * libc/stdio/viprintf.c: Likewise.
2951         * libc/stdio/vsniprintf.c: Consolidate documentation.
2952         * libc/stdio/asiprintf.c: Refer to documentation.
2953         * libc/stdio/asprintf.c: Likewise.
2954         * libc/stdio/fiprintf.c: Likewise.
2955         * libc/stdio/fprintf.c: Likewise.
2956         * libc/stdio/iprintf.c: Likewise.
2957         * libc/stdio/printf.c: Likewise.
2958         * libc/stdio/sniprintf.c: Likewise.
2959         * libc/stdio/vdiprintf.c: Likewise.
2960         * libc/stdio/vdprintf.c: Likewise.
2961         * libc/stdio/vsiprintf.c: Likewise.
2962         * libc/stdio/fvwrite.c (__sfvwrite_r): Handle asnprintf.
2963         * libc/stdio/asniprintf.c (asniprintf, _asniprintf_r): New file.
2964         * libc/stdio/asnprintf.c (asnprintf, _asnprintf_r): New file.
2965         * libc/stdio/vasniprintf.c (vasniprintf, _vasniprintf_r): New
2966         file.
2967         * libc/stdio/vasnprintf.c (vasnprintf, _vasnprintf_r): New file.
2968         * libc/stdio/vdprintf.c (_vdprintf_r): Rewrite to avoid malloc in
2969         typical case.
2970         * libc/stdio/vdiprintf.c (_vdiprintf_r): Likewise.
2971         * libc/include/stdio.h: Add prototypes for new functions; sort
2972         existing functions.
2973
2974 2007-05-03  Kazu Hirata  <kazu@codesourcery.com>
2975
2976         * libc/machine/m68k/Makefile.am (lib_a_SOURCES): Add memcpy.S
2977         and memset.S.
2978         * libc/machine/m68k/Makefile.in: Regenerate.
2979         * libc/machine/m68k/memcpy.S: Use sub.l followed by dbra.
2980         * libc/machine/m68k/memset.S: Likewise.
2981
2982 2007-05-01  Eric Blake  <ebb9@byu.net>
2983
2984         * libc/stdio64/local64.h: Delete, move contents to...
2985         * libc/stdio/local.h: ...here.
2986         * libc/stdio64/fdopen64.c: Update includes.
2987         * libc/stdio64/fopen64.c: Likewise.
2988         * libc/stdio64/freopen64.c: Likewise.
2989         * libc/stdio64/fseeko64.c: Likewise.
2990         * libc/stdio64/ftello64.c: Likewise.
2991         * libc/stdio/findfp.c (std) [__LARGE64_FILES]: Open stdin, stdout,
2992         and stderr with 64-bit offset.
2993         * libc/stdio/fseek.c (_fseek_r): Avoid compile warning.
2994         * libc/stdio/makebuf.c (__smakebuf_r): Likewise.
2995         * libc/stdio/mktemp.c (_gettemp): Likewise.
2996
2997 2007-05-01  Cary R.  <cygcary <at> yahoo.com>
2998
2999         * libm/math/e_pow.c: Fix to be consistent with glibc with regards
3000         to treatment of NaN and +-inf arguments.
3001         * libm/math/ef_pow.c: Ditto.
3002         * libm/math/w_pow.c: Ditto.
3003         * libm/math/wf_pow.c: Ditto.
3004         * libm/math/w_acos.c: Fix domain errors to return NaN.
3005         * libm/math/w_asin.c: Ditto.
3006         * libm/math/wf_acos.c: Ditto.
3007         * libm/math/wf_asin.c: Ditto.
3008         * libm/math/w_log.c: Fix to return NaN for negative number inputs.
3009         * libm/math/wf_log.c: Ditto.
3010         * libm/math/wf_log10.c: Ditto.
3011         * libm/math/w_log10.c: Ditto.
3012
3013 2007-04-27  Jeff Johnston  <jjohnstn@redhat.com>
3014
3015         * libc/machine/m68k/Makefile.am: Temporarily remove
3016         memcpy.S and memset.S until logic can be confirmed for
3017         !(__mcoldfile__) case.
3018         * libc/machine/m68k/Makefile.in: Regenerated.
3019
3020 2007-04-27  Kazu Hirata  <kazu@codesourcery.com>
3021
3022         * libc/machine/m68k/Makefile.am (lib_a_SOURCES): Add memcpy.S
3023         and memset.S.
3024         * libc/machine/m68k/Makefile.in: Regenerate.
3025         * libc/machine/m68k/memcpy.S, libc/machine/m68k/memset.S: New.
3026
3027 2007-04-26  Patrick Mansfield <patmans@us.ibm.com>
3028
3029         * libc/include/ieeefp.h: use prefixed __ieeefp_ macros that can be
3030         overridden via machine/ieeefp.h.
3031         * libc/include/machine/ieeefp.h: Add SPU specific C99 and ieeefp
3032         macros for isnan and related macros.
3033         * libc/include/math.h: Allow C99 isfinite, isinf, and isnan to be
3034         overridden via machine/ieeefp.h.
3035         * libm/machine/spu/Makefile.am: Add new files.
3036         * libm/machine/spu/Makefile.in: Autogenerate with new files.
3037         * libm/machine/spu/sf_fpclassify.c: Add SPU specific __fpclassifyf.
3038         * libm/machine/spu/sf_finite.c: Add SPU specific finitef.
3039         * libm/machine/spu/sf_isinf.c: Add SPU specific isinff.
3040         * libm/machine/spu/sf_isinff.c: Add SPU specific __isinff.
3041         * libm/machine/spu/sf_isnan.c: Add SPU specific isnanf.
3042         * libm/machine/spu/sf_isnanf.c: Add SPU specific __isnanf.
3043         * libm/machine/spu/sf_nan.c: Add SPU specific nanf.
3044
3045 2007-04-25  Jeff Johnston  <jjohnstn@redhat.com>
3046
3047         * libm/common/s_fpclassify.c (__fpclassifyf): Move this to...
3048         * libm/common/sf_fpclassify.c: ...here.  New file.
3049         * libm/common/Makefile.am: Add sf_fpclassify.c.
3050         * libm/common/Makefile.in: Regenerated.
3051
3052 2007-04-25  Patrick Mansfield <patmans@us.ibm.com>
3053
3054         * libc/machine/spu/sys/errno.h: New file, so spu errno values match
3055         ppu linux values. This file is a copy of the cris/sys/errno.h plus
3056         a few changes (see spu errno.h comments).
3057
3058 2007-04-25  Eric Blake  <ebb9@byu.net>
3059
3060         * libc/stdio/vfprintf.c (get_arg): Support %1$lc.  Simplify types
3061         that promote to int.
3062
3063 2007-04-25  Patrick Mansfield <patmans@us.ibm.com>
3064
3065         * libm/machine/spu/headers/feholdexcept.h: Use *envp not env so
3066         we clear the proper bits in the fpscr, and don't set some random ones.
3067
3068 2007-04-24  Eric Blake  <ebb9@byu.net>
3069
3070         * libc/stdio/vfprintf.c (_VFPRINTF_R): Don't zero pad on infinity
3071         or NaN with %05f.
3072
3073         * libc/stdio/vfprintf.c (_VFPRINTF_R): Avoid multibyte when not
3074         _MB_CAPABLE.
3075
3076         * libc/include/limits.h (NL_ARGMAX): Define a default value.
3077         * libc/stdio/vfprintf.c (MAX_POS_ARGS): Define in terms of
3078         NL_ARGMAX, if present.
3079
3080 2007-04-23  Brian Dessent  <brian@dessent.net>
3081
3082         * libc/stdio/vfprintf.c (_vfprintf_r): When the alternate-form flag
3083         has been specified with types 'f', 'F', 'g', or 'G', ensure the
3084         trailing decimal is printed.
3085
3086 2007-04-23  Ralf Wildenhues  <Ralf.Wildenhues <at> gmx.de>
3087
3088         * confsubdir.m4 (AC_CONFIG_SUBDIRS, _AC_OUTPUT_SUBDIRS): New
3089         file.  Override Autoconf-2.59's version of these macros with
3090         fixed handling of multiple adjacent whitespace in arguments.
3091         * aclocal.m4: Regenerated forcefully.
3092         * configure: Ditto.
3093         * Makefile.in: Ditto.
3094         * libc/*Makefile.in: Ditto.
3095         * libc/*aclocal.m4: Ditto.
3096         * libc/*configure: Ditto.
3097         * libm/*Makefile.in: Ditto.
3098         * libm/*aclocal.m4: Ditto.
3099         * libm/*configure: Ditto.
3100
3101 2007-04-23  Jeff Johnston  <jjohnstn@redhat.com>
3102
3103         * libc/sys/arc/dummy.S: Dummy file to force .S.o suffix rule.
3104         * libc/sys/arc/Makefile.am: Add dummy.S to EXTRA_lib_a_SOURCES
3105         and set lib_a_CCASFLAGS so crto.o will use .S.o default suffix rule.
3106         * libc/sys/arc/Makefile.in: Regenerated.
3107
3108 2007-04-17  Brian Dessent  <brian@dessent.net>
3109
3110         * libc/stdio/sscanf.c: Update documentation comments.
3111         * libc/stdio/vfscanf.c (__SVFSCANF_R): Handle j, t, and z modifiers.
3112
3113 2007-04-12  Eric Blake  <ebb9@byu.net>
3114
3115         * libc/stdio/vfprintf.c (_VFPRINTF_F, cvt): Don't confuse %F with %e.
3116         (chclass): Recognize 'F', 'X', 'n', and not 'W'.
3117         (get_arg): Handle %1$F, %1$n.
3118
3119 2007-04-10  Eric Blake  <ebb9@byu.net>
3120
3121         * libc/include/stdio.h (_ELIDABLE_INLINE): Work even when using
3122         CFLAGS=-O0.
3123
3124 2007-04-09  Eric Blake  <ebb9@byu.net>
3125
3126         * libc/include/stdio.h: Add gcc format attributes to printf and
3127         scanf families.
3128
3129 2007-04-09  Joel Schopp <jschopp@austin.ibm.com>
3130
3131         * libc/machine/spu/strxfrm.c: Fix strxfrm so we still copy data
3132         even if the passed in length n is shorter than the source string.
3133         This matches both the non-spu specific and the glibc strxfrm
3134         behaviour.
3135
3136 2007-04-04  Mark Mitchell  <mark@codesourcery.com>
3137
3138         * libc/stdlib/__call_atexit.c (__call_exitprocs): Handle atexit
3139         functions registering additional atexit functions.
3140
3141         * testsuite/lib/flags.exp (newlib_include_flags): Drop
3142         -I${newlib_dir}.
3143
3144 2007-04-04  Patrick Mansfield <patmans@us.ibm.com>
3145
3146         * libc/machine/spu/sys/syscall.h: New file for __send_to_ppe
3147         prototype.
3148         * libc/machine/spu/c99ppe.h: Remove static version of send_to_ppe.
3149         * libc/machine/spu/clearerr.c: Call __send_to_ppe vs send_to_ppe.
3150         * libc/machine/spu/fclose.c: Ditto.
3151         * libc/machine/spu/feof.c: Ditto.
3152         * libc/machine/spu/ferror.c: Ditto.
3153         * libc/machine/spu/fflush.c: Ditto.
3154         * libc/machine/spu/fgetc.c: Ditto.
3155         * libc/machine/spu/fgetpos.c: Ditto.
3156         * libc/machine/spu/fgets.c: Ditto.
3157         * libc/machine/spu/fileno.c: Ditto.
3158         * libc/machine/spu/fopen.c: Ditto.
3159         * libc/machine/spu/fprintf.c: Ditto.
3160         * libc/machine/spu/fputc.c: Ditto.
3161         * libc/machine/spu/fputs.c: Ditto.
3162         * libc/machine/spu/fread.c: Ditto.
3163         * libc/machine/spu/freopen.c: Ditto.
3164         * libc/machine/spu/fscanf.c: Ditto.
3165         * libc/machine/spu/fseek.c: Ditto.
3166         * libc/machine/spu/fsetpos.c: Ditto.
3167         * libc/machine/spu/ftell.c: Ditto.
3168         * libc/machine/spu/fwrite.c: Ditto.
3169         * libc/machine/spu/getc.c: Ditto.
3170         * libc/machine/spu/getchar.c: Ditto.
3171         * libc/machine/spu/gets.c: Ditto.
3172         * libc/machine/spu/perror.c: Ditto.
3173         * libc/machine/spu/printf.c: Ditto.
3174         * libc/machine/spu/putc.c: Ditto.
3175         * libc/machine/spu/putchar.c: Ditto.
3176         * libc/machine/spu/puts.c: Ditto.
3177         * libc/machine/spu/remove.c: Ditto.
3178         * libc/machine/spu/rename.c: Ditto.
3179         * libc/machine/spu/rewind.c: Ditto.
3180         * libc/machine/spu/scanf.c: Ditto.
3181         * libc/machine/spu/setbuf.c: Ditto.
3182         * libc/machine/spu/setvbuf.c: Ditto.
3183         * libc/machine/spu/snprintf.c: Ditto.
3184         * libc/machine/spu/sprintf.c: Ditto.
3185         * libc/machine/spu/sscanf.c: Ditto.
3186         * libc/machine/spu/tmpfile.c: Ditto.
3187         * libc/machine/spu/tmpnam.c: Ditto.
3188         * libc/machine/spu/ungetc.c: Ditto.
3189         * libc/machine/spu/vfprintf.c: Ditto.
3190         * libc/machine/spu/vfscanf.c: Ditto.
3191         * libc/machine/spu/vprintf.c: Ditto.
3192         * libc/machine/spu/vscanf.c: Ditto.
3193         * libc/machine/spu/vsnprintf.c: Ditto.
3194         * libc/machine/spu/vsprintf.c: Ditto.
3195         * libc/machine/spu/vsscanf.c: Ditto.
3196
3197 2007-04-04  Jeff Johnston  <jjohnstn@redhat.com>
3198
3199         * libc/argz/argz_insert.c: Add stddef.h to get ptrdiff_t type.
3200
3201 2007-04-04  Eric Blake  <ebb9@byu.net>
3202
3203         * libc/stdio/asiprintf.c (_asiprintf_r): Fix reentrancy.
3204         (asiprintf): Avoid overhead.
3205         * libc/stdio/asprintf.c (_asprintf_r): Fix reentrancy.
3206         (asprintf): Avoid overhead.
3207         * libc/stdio/diprintf.c (_diprintf_r, diprintf): New file.
3208         * libc/stdio/dprintf.c (_dprintf_r, dprintf): Use _DEFUN.
3209         * libc/stdio/fiprintf.c (_fiprintf_r): Add reentrant version.
3210         (fiprintf): Avoid overhead.
3211         * libc/stdio/fprintf.c (_fprintf_r): Add reentrant version.
3212         (fprintf): Avoid overhead.
3213         * libc/stdio/iprintf.c (_iprintf_r): Use _DEFUN.
3214         (iprintf): Avoid overhead.
3215         * libc/stdio/printf.c (_printf_r): Use _DEFUN.
3216         (printf): Avoid overhead.
3217         * libc/stdio/vasiprintf.c (vasiprintf): Reduce binary size.
3218         * libc/stdio/vasprintf.c (vasprintf): Reduce binary size.
3219         * libc/stdio/vdiprintf.c (_vdiprintf_r, vdiprintf): New file.
3220         * libc/stdio/vdprintf.c (vdprintf): Avoid overhead.
3221         * libc/stdio/vsiprintf.c (vsiprintf): Reduce binary size.
3222         * libc/stdio/vsniprintf.c (vsniprintf): Reduce binary size.
3223         * libc/stdio/vsnprintf.c (vsnprintf): Reduce binary size.
3224         * libc/stdio/vsprintf.c (vsprintf): Reduce binary size.
3225         * libc/stdio/Makefile.am (GENERAL_SOURCES): Add diprintf.c,
3226         vdiprintf.c.
3227         * libc/include/stdio.h (diprintf, _diprintf_r, vdiprintf)
3228         (_vdiprintf_r, _fiprintf_r, _vfiprintf_r): Add prototypes.
3229
3230 2007-03-30  Dave Korn  <dave.korn@artimi.com>
3231
3232         * libc/include/stdio.h (_ELIDABLE_INLINE):  New macro to conceal
3233         conflicting inline semantics between C99 and GNU89.
3234         (__sgetc_r):  Replace static inline with _ELIDABLE_INLINE to be
3235         compatible with -fkeep-inline-functions usage.
3236         (__sputc_r):  Likewise for consistency even though disabled.
3237
3238 2007-03-29  Nick Clifton  <nickc@redhat.com>
3239
3240         Reflect changes made to generic vfprintf.c:
3241         * libc/machine/powerpc/vfprintf.c (__sprint): Rename to __sprint_r
3242         and add a "struct reent *" argument.
3243         (__sbprintf): Rename to __sbprintf_r, add a "struct reent *"
3244         argument and call _VFPRINTF_R instead of VFPRINTF.
3245         (_VFPRINTF_R): Add data pointer to call to cantwrite().
3246         Fix uses of __sprint() and __sbprintf.
3247
3248 2007-03-20  Nick Clifton  <nickc@redhat.com>
3249
3250         Reflect changes made to generic vfprintf.c:
3251         * libc/machine/powerpc/vfprintf.c (__sprint): Rename to __sprint_r
3252         and add a "struct reent *" argument.
3253         (__sbprintf): Rename to __sbprintf_r, add a "struct reent *"
3254         argument and call _VFPRINTF_R instead of VFPRINTF.
3255         (_VFPRINTF_R): Add data pointer to call to cantwrite().
3256         Fix uses of __sprint() and __sbprintf.
3257
3258 2007-03-16  Charles Wilson  <cygwin@...>
3259
3260         * libc/argz/argz_insert.c: "before" pointer is
3261         invalid after *argz realloc.  Compute offset
3262         between "before" and *argz, and use it after
3263         reallocation instead.
3264
3265 2007-03-16  Eric Blake  <ebb9@byu.net>
3266
3267         * libc/stdio64/fseek064.c (_fseeko64_r): Fix reentrancy.
3268         * libc/stdio64/freopen64.c (_freopen64_r): Ditto.
3269
3270 2007-03-15  Jeff Johnston  <jjohnstn@redhat.com>
3271
3272         * configure.in: Add new --enable-newlib-reent-small option.
3273         * configure: Regenerated.
3274         * acconfig.h: Add _WANT_REENT_SMALL.
3275         * newlib.hin: Regenerated minus PACKAGE macros to add
3276         _WANT_REENT_SMALL macro.
3277         * libc/include/sys/config.h[_WANT_REENT_SMALL]: Set _REENT_SMALL
3278         if not already set.
3279         * libc/stdio/fflush.c[_REENT_SMALL]: Return immediately if
3280         there is no buffer.
3281         * libc/stdio/local.h[_REENT_SMALL]: Fix CHECK_INIT macro to
3282         use reentrant pointer passed in when resetting the file
3283         pointer to one of the std streams.
3284
3285 2007-03-15  Eric Blake  <ebb9@byu.net>
3286
3287         * libc/stdio/local.h (cantwrite, FREEUB, FREELB): Make reentrant.
3288         (__smakebuf): Rename...
3289         (__smakebuf_r): to this.
3290         * libc/stdio/fvwrite.h (__swsetup_r): Rename, from __swsetup.
3291         * libc/stdio/makebuf.c (__smakebuf): Detect failed asprint
3292         allocation, then rename...
3293         (__smakebuf_r): ...to this and fix reentrancy.
3294         * libc/stdio/wsetup.c (__swsetup): Detect failed asprintf
3295         allocation, then rename...
3296         (__swsetup_r): ...to this and fix reentrancy.
3297         * libc/stdio/fseek.c (_fseek_r): Fix reentrancy.
3298         * libc/stdio/refill.c (__srefill_r): Likewise.
3299         * libc/stdio/fclose.c (_fclose_r): Likewise.
3300         * libc/stdio/fread.c (_fread_r): Likewise.
3301         * libc/stdio/freopen.c (_freopen_r): Likewise.
3302         * libc/stdio/wbuf.c (__swbuf_r): Likewise.
3303         * libc/stdio64/fseeko64.c (_fseeko64_r): Likewise.
3304         * libc/stdio/fvwrite.c (__sfvwrite_r): Set errno properly on
3305         failed asprintf allocation, and fix reentrancy.
3306         * libc/stdio/snprintf.c (snprintf, _snprintf_r): Report overflow,
3307         as required by POSIX.
3308         * libc/stdio/sniprintf.c (sniprintf, _sniprintf_r): Likewise.
3309         * libc/stdio/vsnprintf.c (vsnprintf, _vsnprintf_r): Likewise.
3310         * libc/stdio/vsniprintf.c (vsniprintf, _vsniprintf_r): Likewise.
3311
3312 2007-03-12  Eric Blake  <ebb9@byu.net>
3313
3314         * libc/stdio/fvwrite.c (__sfvwrite_r): Fix reentrancy.
3315         * libc/stdio/vasprintf.c (vasprintf, _vasprintf_r): Pass failed
3316         allocation to caller.
3317         * libc/stdio/asprintf.c (_asprintf_r, asprintf): Likewise.
3318         * libc/stdio/asiprintf.c (_asiprintf_r, asiprintf): Likewise.
3319         * libc/stdio/vasiprintf.c (vasiprintf, _vasiprintf_r): Likewise.
3320
3321 2007-02-23  Jeff Johnston  <jjohnstn@redhat.com>
3322
3323         * libm/math/w_pow.c: Fix typo in documentation comment.
3324
3325 2007-02-21  Patrick Mansfield <patmans@us.ibm.com>
3326
3327         * libc/reent/timer.c: Removed (split into two new files).
3328         * libc/reent/timesr.c: New file for _times_r.
3329         * libc/reent/gettimeofdayr.c: New file out _gettimeofday_r.
3330         * reent/Makefile.in: Remove timer.c, add timesr.c and
3331         gettimeofdayr.c.
3332         * libc/reent/Makefile.am: Regenerate.
3333
3334 2007-02-20  Patrick Mansfield <patmans@us.ibm.com>
3335
3336         * configure.host: Build SPU with default_newlib_atexit_dynamic_alloc="no".
3337
3338 2007-02-20  Kazunori Asayama <asayama@sm.sony.co.jp>
3339
3340         * libc/machine/spu/Makefile.am: Add new objects.
3341         * libc/machine/spu/Makefile.in: Regenerated.
3342         * libc/machine/spu/fiprintf.c: New file. Add implementation of
3343         integer-only version.
3344         * libc/machine/spu/fiscanf.c: Ditto.
3345         * libc/machine/spu/iprintf.c: Ditto.
3346         * libc/machine/spu/iscanf.c: Ditto.
3347         * libc/machine/spu/siprintf.c: Ditto.
3348         * libc/machine/spu/siscanf.c: Ditto.
3349         * libc/machine/spu/sniprintf.c: Ditto.
3350         * libc/machine/spu/vfiprintf.c: Ditto.
3351         * libc/machine/spu/vfiscanf.c: Ditto.
3352         * libc/machine/spu/viprintf.c: Ditto.
3353         * libc/machine/spu/viscanf.c: Ditto.
3354         * libc/machine/spu/vsiprintf.c: Ditto.
3355         * libc/machine/spu/vsiscanf.c: Ditto.
3356         * libc/machine/spu/vsniprintf.c: Ditto.
3357         * libc/machine/spu/fprintf.c: Add support for integer-only
3358         version.
3359         * libc/machine/spu/fscanf.c: Ditto.
3360         * libc/machine/spu/printf.c: Ditto.
3361         * libc/machine/spu/scanf.c: Ditto.
3362         * libc/machine/spu/snprintf.c: Ditto.
3363         * libc/machine/spu/sprintf.c: Ditto.
3364         * libc/machine/spu/sscanf.c: Ditto.
3365         * libc/machine/spu/vfprintf.c: Ditto.
3366         * libc/machine/spu/vfscanf.c: Ditto.
3367         * libc/machine/spu/vprintf.c: Ditto.
3368         * libc/machine/spu/vscanf.c: Ditto.
3369         * libc/machine/spu/vsnprintf.c: Ditto.
3370         * libc/machine/spu/vsprintf.c: Ditto.
3371         * libc/machine/spu/vsscanf.c: Ditto.
3372
3373 2007-02-20  Kazunori Asayama <asayama@sm.sony.co.jp>
3374
3375         * libc/include/stdio.h: Add declaration for vsiprintf.
3376
3377 2007-02-14  Patrick Mansfield <patmans@us.ibm.com>
3378
3379         Add a floating point environment for SPU (cell):
3380
3381         * configure.host: add libm_machine_dir=spu.
3382         * libm/machine/configure: Add spu.
3383         * libm/machine/configure.in: regenerated with spu added.
3384         * libc/machine/spu/include/fenv.h: New file.
3385         * libc/machine/spu/sys/fenv.h: Ditto.
3386         * libm/machine/spu/Makefile.am: Ditto.
3387         * libm/machine/spu/Makefile.in: Ditto.
3388         * libm/machine/spu/aclocal.m4: Ditto.
3389         * libm/machine/spu/configure: Ditto.
3390         * libm/machine/spu/configure.in: Ditto.
3391         * libm/machine/spu/fe_dfl_env.c: Ditto.
3392         * libm/machine/spu/feclearexcept.c: Ditto.
3393         * libm/machine/spu/fegetenv.c: Ditto.
3394         * libm/machine/spu/fegetexceptflag.c: Ditto.
3395         * libm/machine/spu/fegetround.c: Ditto.
3396         * libm/machine/spu/feholdexcept.c: Ditto.
3397         * libm/machine/spu/feraiseexcept.c: Ditto.
3398         * libm/machine/spu/fesetenv.c: Ditto.
3399         * libm/machine/spu/fesetexceptflag.c: Ditto.
3400         * libm/machine/spu/fesetround.c: Ditto.
3401         * libm/machine/spu/fetestexcept.c: Ditto.
3402         * libm/machine/spu/feupdateenv.c: Ditto.
3403         * libm/machine/spu/headers/feclearexcept.h: Ditto.
3404         * libm/machine/spu/headers/fefpscr.h: Ditto.
3405         * libm/machine/spu/headers/fegetenv.h: Ditto.
3406         * libm/machine/spu/headers/fegetexceptflag.h: Ditto.
3407         * libm/machine/spu/headers/fegetround.h: Ditto.
3408         * libm/machine/spu/headers/feholdexcept.h: Ditto.
3409         * libm/machine/spu/headers/feraiseexcept.h: Ditto.
3410         * libm/machine/spu/headers/fesetenv.h: Ditto.
3411         * libm/machine/spu/headers/fesetexceptflag.h: Ditto.
3412         * libm/machine/spu/headers/fesetround.h: Ditto.
3413         * libm/machine/spu/headers/fetestexcept.h: Ditto.
3414         * libm/machine/spu/headers/feupdateenv.h: Ditto.
3415
3416 2007-02-14  Corinna Vinschen  <corinna@vinschen.de>
3417
3418         * libc/include/sys/features.h: Add _POSIX_MESSAGE_PASSING for
3419         Cygwin.
3420
3421 2007-02-08  Corinna Vinschen  <corinna@vinschen.de>
3422
3423         * libc/include/sys/features.h: Add _POSIX_SHARED_MEMORY_OBJECTS for
3424         Cygwin.  Fix value of _POSIX_SEMAPHORES.  Fix formatting.
3425
3426 2007-02-07  Corinna Vinschen  <corinna@vinschen.de>
3427
3428         * libc/include/sys/features.h: Add definition of all supported
3429         _POSIX_xxx values for Cygwin.
3430         * libc/include/sys/types.h (pthread_rwlock_t): Omit definition
3431         on Cygwin.
3432         (pthread_rwlockattr_t): Ditto.
3433         * libc/include/sys/unistd.h: Define all _SC_xxx values as
3434         required by SUSv3.  Unify formatting.
3435
3436 2007-02-02  Ralf Corsépius <ralf.corsepius@rtems.org>
3437
3438         * libc/include/sys/errno.h: Add ECANCELED.
3439
3440 2007-02-01  Joel Schopp <jschopp@austin.ibm.com>
3441             Kazunori Asayama <asayama@sm.sony.co.jp>
3442
3443         * libc/machine/spu/Makefile.am: Add objects.
3444         * libc/machine/spu/Makefile.in: Regenerated.
3445         * libc/machine/spu/vsscanf.c: New file. Add a stdio function
3446         implementation.
3447         * libc/machine/spu/snprintf.c: Ditto.
3448         * libc/machine/spu/sprintf.c: Ditto.
3449         * libc/machine/spu/sscanf.c: Ditto.
3450         * libc/machine/spu/remove.c: Ditto.
3451         * libc/machine/spu/rename.c: Ditto.
3452         * libc/machine/spu/tmpnam.c: Ditto.
3453         * libc/machine/spu/vsnprintf.c: Add initialization routine of
3454         stdio stuffs.
3455         * libc/machine/spu/vsprintf.c: Ditto.
3456
3457 2007-02-01  Joel Schopp <jschopp@austin.ibm.com>
3458             Kazunori Asayama <asayama@sm.sony.co.jp>
3459
3460         * configure.host: Enable SPU specific stdio directory.
3461         * libc/machine/spu/Makefile.am: Add objects.
3462         * libc/machine/spu/Makefile.in: Regenerated.
3463         * libc/machine/spu/c99ppe.h: Add macros and function
3464         declarations to initialize SPU specific stdio stuffs.
3465         * libc/machine/spu/stdio.c: Add functions to manage Cell SPU
3466         specific FILE structures.
3467         * libc/machine/spu/perror.c: Add initialization routine of
3468         stdio stuffs.
3469         * libc/machine/spu/printf.c: Ditto.
3470         * libc/machine/spu/putchar.c: Ditto.
3471         * libc/machine/spu/puts.c: Ditto.
3472         * libc/machine/spu/vprintf.c: Ditto.
3473         * libc/machine/spu/clearerr.c: New file. Add a stdio function
3474         implementation.
3475         * libc/machine/spu/feof.c: Ditto.
3476         * libc/machine/spu/ferror.c: Ditto.
3477         * libc/machine/spu/fileno.c: Ditto.
3478         * libc/machine/spu/fopen.c: Ditto.
3479         * libc/machine/spu/fclose.c: Ditto.
3480         * libc/machine/spu/freopen.c: Ditto.
3481         * libc/machine/spu/fflush.c: Ditto.
3482         * libc/machine/spu/fseek.c: Ditto.
3483         * libc/machine/spu/ftell.c: Ditto.
3484         * libc/machine/spu/rewind.c: Ditto.
3485         * libc/machine/spu/fgetpos.c: Ditto.
3486         * libc/machine/spu/fsetpos.c: Ditto.
3487         * libc/machine/spu/fread.c: Ditto.
3488         * libc/machine/spu/fwrite.c: Ditto.
3489         * libc/machine/spu/getc.c: Ditto.
3490         * libc/machine/spu/getchar.c: Ditto.
3491         * libc/machine/spu/gets.c: Ditto.
3492         * libc/machine/spu/fgetc.c: Ditto.
3493         * libc/machine/spu/fgets.c: Ditto.
3494         * libc/machine/spu/ungetc.c: Ditto.
3495         * libc/machine/spu/putc.c: Ditto.
3496         * libc/machine/spu/fputc.c: Ditto.
3497         * libc/machine/spu/fputs.c: Ditto.
3498         * libc/machine/spu/vfprintf.c: Ditto.
3499         * libc/machine/spu/vfscanf.c: Ditto.
3500         * libc/machine/spu/fprintf.c: Ditto.
3501         * libc/machine/spu/fscanf.c: Ditto.
3502         * libc/machine/spu/scanf.c: Ditto.
3503         * libc/machine/spu/vscanf.c: Ditto.
3504         * libc/machine/spu/setbuf.c: Ditto.
3505         * libc/machine/spu/setvbuf.c: Ditto.
3506         * libc/machine/spu/tmpfile.c: Ditto.
3507
3508 2007-02-01  Jeff Johnston  <jjohnstn@redhat.com>
3509
3510         * libc/include/sys/config.h[__SPU__]: Define __CUSTOM_FILE_IO__.
3511         * libc/include/stdio.h[!__CUSTOM_FILE_IO__]: Add flag check
3512         around stdio macros that manipulate fields in the normal file
3513         structure.
3514         * libc/include/sys/reent.h[__CUSTOM_FILE_IO__]: Include
3515         <sys/custom_file.h> to define custom FILE structure.
3516         * libc/include/sys/custom_file.h: New default header file
3517         that generates error if not overridden when __CUSTOM_FILE_IO__ set.
3518         * libc/machine/spu/sys/custom_file.h: New file.
3519
3520 2007-01-31  Kazunori Asayama <asayama@sm.sony.co.jp>
3521
3522         * configure.host: Define stdio directory as a variable.
3523         * libc/Makefile.am: Define stdio related names
3524         as macros.
3525         * libc/configure.in: Add detection routine of stdio directory.
3526         * libc/Makefile.in: Regenerated.
3527         * libc/configure: Ditto.
3528         * libc/argz/Makefile.in: Ditto.
3529         * libc/ctype/Makefile.in: Ditto.
3530         * libc/errno/Makefile.in: Ditto.
3531         * libc/iconv/Makefile.in: Ditto.
3532         * libc/iconv/ccs/Makefile.in: Ditto.
3533         * libc/iconv/ccs/binary/Makefile.in: Ditto.
3534         * libc/iconv/ces/Makefile.in: Ditto.
3535         * libc/iconv/lib/Makefile.in: Ditto.
3536         * libc/locale/Makefile.in: Ditto.
3537         * libc/misc/Makefile.in: Ditto.
3538         * libc/posix/Makefile.in: Ditto.
3539         * libc/reent/Makefile.in: Ditto.
3540         * libc/search/Makefile.in: Ditto.
3541         * libc/signal/Makefile.in: Ditto.
3542         * libc/stdio/Makefile.in: Ditto.
3543         * libc/stdio64/Makefile.in: Ditto.
3544         * libc/stdlib/Makefile.in: Ditto.
3545         * libc/string/Makefile.in: Ditto.
3546         * libc/syscalls/Makefile.in: Ditto.
3547         * libc/time/Makefile.in: Ditto.
3548         * libc/unix/Makefile.in: Ditto.
3549
3550 2007-01-30  Ben Elliston  <bje@au.ibm.com>
3551
3552         * libc/machine/spu/vsnprintf.c (c99_vsnprintf_t): Const-qualify
3553         fmt member.
3554         * libc/machine/spu/printf.c (c99_printf_t): Likewise.
3555         (printf): Pass fmt to va_start to suppress a warning.
3556
3557         * libc/search/hash.c (init_hash): Make `info' parameter const.
3558
3559 2007-01-19  Kazunori Asayama <asayama@sm.sony.co.jp>
3560
3561         * libc/machine/spu/c99ppe.h: Replace vector with __vector.
3562         * libc/machine/spu/vec_literal.h: Ditto.
3563         * libc/machine/spu/strncmp.c: Ditto.
3564
3565 2007-01-15  Joseph Myers  <joseph@codesourcery.com>
3566             Kazu Hirata  <kazu@codesourcery.com>
3567
3568         * libc/machine/powerpc/setjmp.S (setjmp, longjmp): Add support
3569         for E500V1 and E500V2.
3570
3571 2007-01-11  Jeff Johnston  <jjohnstn@redhat.com>
3572
3573         * libm/configure.in: Always configure machine directory.
3574         * libm/Makefile.am: Make machine subdirectory part of SUBDIRS
3575         unconditionally.
3576         * libm/configure: Regenerated.
3577         * libm/Makefile.in: Ditto.
3578         * libm/*/Makefile.in: Ditto.
3579
3580 2007-01-05  Brian Ford  <Brian.Ford@FlightSafety.com>
3581
3582         * configure.host (*-*-cygwin*): Define HAVE_BLKSIZE.
3583
3584 2007-01-02  Ben Elliston  <bje@au.ibm.com>
3585
3586         * doc/makedoc.c: Include <stdlib.h>.
3587         (malloc, realloc): Remove extern declarations.
3588
3589 2006-12-18  Jeff Johnston  <jjohnstn@redhat.com>
3590
3591         * NEWS: Update with 1.15.0 info.
3592         * README: Ditto.
3593         * acinclude.m4: Change version number to 1.15.0.
3594         * aclocal.m4: Regenerated.
3595         * configure: Ditto.
3596         * doc/aclocal.m4: Ditto.
3597         * doc/configure: Ditto.
3598         * libc/*/aclocal.m4: Ditto.
3599         * libc/*/configure: Ditto.
3600         * libc/libc.texinfo: Ditto.
3601         * libm/*/aclocal.m4: Ditto.
3602         * libm/*/configure: Ditto.
3603         * libm/libm.texinfo: Ditto.
3604         * libc/sys/linux/shared.ld: Add VERS_1.15.
3605
3606 2006-12-18  Kazu Hirata  <kazu@codesourcery.com>
3607
3608         Merge from newlib-csl-20060320-branch:
3609         2006-12-01  Nathan Sidwell  <nathan@codesourcery.com>
3610                     Kazu Hirata  <kazu@codesourcery.com>
3611
3612         * configure.host: Recognize fido.
3613
3614 2006-12-18  Joel Schopp <jschopp@austin.ibm.com>
3615
3616         * libc/machine/spu/c99ppe.h: New file
3617         * libc/machine/spu/perror.c: New file to override libc/stdio version.
3618         * libc/machine/spu/printf.c: New file
3619         * libc/machine/spu/putchar.c: New file
3620         * libc/machine/spu/puts.c: New file
3621         * libc/machine/spu/vprintf.c: New file
3622         * libc/machine/spu/vsnprintf.c: New file
3623         * libc/machine/spu/vsprintf.c: New file
3624         * libc/machine/spu/Makefile.am: Add new targets.
3625         * libc/machine/spu/Makefile.in: Regenerated.
3626
3627 2006-12-18  Jeff Johnston  <jjohnstn@redhat.com>
3628
3629         * aclocal.m4 */aclocal.m4: Regenerated using aclocal 1.9.6.
3630         * Makefile.in */Makefile.in: Regenerated using automake 1.9.6.
3631
3632 2006-12-18  Jeff Johnston  <jjohnstn@redhat.com>
3633
3634         * libc/stdlib/mallocr.c (malloc_extend_top): Add patch from
3635         2.6.5 version of Doug Lea's malloc which is the basis of
3636         this code.
3637
3638 2006-12-18  Kazunori Asayama <asayama@sm.sony.co.jp>
3639
3640         * libc/include/machine/setjmp.h[__SPU__]: Replace vector with __vector.
3641
3642 2006-12-14  Jeff Johnston  <jjohnstn@redhat.com>
3643             Eric Blake  <ebb9@byu.net>
3644
3645         * libc/stdio/fflush.c (fflush): On seekable streams, always flush
3646         read but unused data.
3647         * libc/stdio/fclose.c (_fclose_r): Always flush streams, since
3648         even read streams may have side effects that must happen.
3649
3650 2006-12-13  Joel Schopp <jschopp@austin.ibm.com>
3651
3652         * libc/machine/spu/setjmp.S: Fix to handle registers past 115
3653         correctly.
3654
3655 2006-12-13  Joel Schopp <jschopp@austin.ibm.com>
3656
3657         * libc/include/alloca.h: Add undef alloca to work with xlc.
3658
3659 2006-12-12  Joel Schopp <jschopp@austin.ibm.com>
3660
3661         * libc/include/machine/setjmp.h[__SPU__]: Redefine _JBTYPE for
3662         cell spu.
3663
3664 2006-12-04  Kazunori Asayama  <asayama@sm.sony.co.jp>
3665
3666         * libc/machine/spu/strncpy.c: Add padding.
3667
3668 2006-12-04  Kazunori Asayama  <asayama@sm.sony.co.jp>
3669
3670         * testsuite/newlib.string/tstring.c:
3671
3672 2006-12-01  Kazunori Asayama  <asayama@sm.sony.co.jp>
3673
3674         * libc/machine/spu/strchr.c: Fix mask for misaligned string.
3675         * libc/machine/spu/strrchr.c: Ditto.
3676
3677 2006-11-30  Lev Bishop  <lev.bishop@gmail.com>
3678
3679         * libc/include/math.h: Allow C99 functions/macros to be
3680         defined for C++ even when __STRICT_ANSI__.
3681
3682 2006-11-29  Jeff Johnston  <jjohnstn@redhat.com>
3683
3684         * libc/stdio/makebuf.c (__smakebuf): If dealing with
3685         an asprintf-family buffer, make the default initial size 64.
3686
3687 2006-11-29  Eric Blake  <ebb9@byu.net>
3688
3689         * libc/stdio/fvwrite.c (__sfvwrite_r): Avoid off-by-one error in
3690         asprintf, as well as quadratic realloc behavior.
3691
3692 2006-11-29  Kazunori Asayama  <asayama@sm.sony.co.jpi
3693
3694         * libc/machine/spu/memset.c: Fix type of explicit cast.
3695         * libc/machine/spu/strncmp.c: Add explicit cast.
3696         * libc/machine/spu/strrchr.c: Ditto.
3697         * libc/machine/spu/strspn.c: Ditto.
3698
3699 2006-11-22  Luca Barbato  <lu_zero@gentoo.org>
3700
3701         * libc/machine/spu/memcpy.c: Use spu_splats, explicit cast.
3702         * libc/machine/spu/memmove.c: Use spu_splats, explicit cast.
3703         * libc/machine/spu/memset.c: Use spu_splats, remove apple-cast.
3704         * libc/machine/spu/strchr.c: Use spu_splats, remove apple-cast.
3705         * libc/machine/spu/strncat.c: Explicit cast.
3706         * libc/machine/spu/strncmp.c: Use spu_splats.
3707         * libc/machine/spu/strncpy.c: Explicit cast.
3708         * libc/machine/spu/strrchr.c: Use spu_splats.
3709         * libc/machine/spu/strspn.c: Use spu_splats.
3710
3711 2006-11-15  Till Straumann  <strauman@slac.stanford.edu>
3712
3713         * libc/time/tzset_r.c (_tzset_r): Initialize local variable.
3714
3715 2006-11-14  Eric Blake  <ebb9@byu.net>
3716
3717         * libc/stdio/vfprintf.c (_vfprintf_r): Support ' flag.
3718         (chclass): ' is a flag.  j, t, and z are modifiers.
3719
3720 2006-11-08  Jie Zhang  <jie.zhang@analog.com>
3721
3722         * configure.host: Add support for bfin.
3723         * libc/include/machine/ieeefp.h: Define __IEEE_LITTLE_ENDIAN for bfin.
3724         * libc/include/machine/setjmp.h: Define _JBLEN for bfin.
3725         * libc/machine/bfin/aclocal.m4: Generate.
3726         * libc/machine/bfin/configure.in: New.
3727         * libc/machine/bfin/configure: Generate.
3728         * libc/machine/bfin/Makefile.am: New.
3729         * libc/machine/bfin/Makefile.in: Generate.
3730         * libc/machine/bfin/setjmp.S: New.
3731         * libc/machine/bfin/longjmp.S: New.
3732         * libc/machine/configure.in: Add bfin support.
3733         * libc/machine/configure: Generate.
3734
3735 2006-11-07  Corinna Vinschen  <corinna@vinschen.de>
3736
3737         * libc/include/sys/unistd.h (_SC_STREAM_MAX): Define on Cygwin.
3738         (_PC_FILESIZEBITS): Add definition.
3739         (_PC_2_SYMLINKS): Ditto.
3740         (_PC_SYMLINK_MAX): Ditto.
3741
3742 2006-10-27  Joel Schopp  <jschopp@austin.ibm.com>
3743
3744         * libc/machine/spu/memcpy.c: Override generic function with vectorized
3745         version optimized for the cell spu.
3746         * libc/machine/spu/memmove.c: Ditto.
3747         * libc/machine/spu/memset.c: Ditto.
3748         * libc/machine/spu/strcat.c: Ditto.
3749         * libc/machine/spu/strchr.c: Ditto.
3750         * libc/machine/spu/strcmp.c: Ditto.
3751         * libc/machine/spu/strcpy.c: Ditto.
3752         * libc/machine/spu/strcspn.c: Ditto.
3753         * libc/machine/spu/strlen.c: Ditto.
3754         * libc/machine/spu/strncat.c: Ditto.
3755         * libc/machine/spu/strncmp.c: Ditto.
3756         * libc/machine/spu/strncpy.c: Ditto.
3757         * libc/machine/spu/strpbrk.c: Ditto.
3758         * libc/machine/spu/strrchr.c: Ditto.
3759         * libc/machine/spu/strspn.c: Ditto.
3760         * libc/machine/spu/strxfrm.c: Ditto.
3761         * libc/machine/spu/vec_literal.h: Add abstraction of vector literals,
3762         removing altivec style initializers.
3763         * libc/machine/spu/Makefile.am: Add new files to list so they build
3764         * libc/machine/spu/Makefile.in: Regenerate from new Makefile.am
3765
3766 2006-10-27  Jeff Johnston  <jjohnstn@redhat.com>
3767
3768         * README: Add a brief section on how to regenerate
3769         configuration files in newlib.
3770
3771 2006-10-25  Vladimir Prus  <vladimir@codesourcery.com>
3772
3773         * libc/include/math.h: (exception): Add a comment
3774         telling fixincludes that we handle C vs. C++ issue.
3775
3776 2006-10-11  Yang Tse  <yangsita@gmail.com>
3777
3778         * libc/include/machine/setjmp.h: Use __extension__ keyword for gcc's
3779         braced-groups.
3780
3781 2006-10-11  Corinna Vinschen  <corinna@vinschen.de>
3782
3783         * libc/reent/reeent.c (_reclaim_reent): Free _REENT_MP_RESULT.
3784
3785 2006-09-26  Jeff Johnston  <jjohnstn@redhat.com>
3786
3787         * libc/include/stdio.h[_REENT_SMALL]: Do not allow macros
3788         for clearerr, feof, or fileno.
3789         * libc/include/sys/reent.h[_REENT_SMALL](struct _reent): Change
3790         the dummy std stream scheme to use pointers to const external
3791         fake files, one for each standard stream.
3792         * libc/stdio/local.h (CHECK_INIT): Change to take a file pointer
3793         argument.  For _REENT_SMALL, reset the file pointer if it
3794         matches one of the fake std stream pointers.
3795         * libc/stdio/clearerr.c: Fix CHECK_INIT macro to add file pointer
3796         argument.
3797         * libc/stdio/fclose.c: Ditto.
3798         * libc/stdio/feof.c: Ditto.
3799         * libc/stdio/ferror.c: Ditto.
3800         * libc/stdio/fflush.c: Ditto.
3801         * libc/stdio/fgetc.c: Ditto.
3802         * libc/stdio/fgets.c: Ditto.
3803         * libc/stdio/fileno.c: Ditto.
3804         * libc/stdio/findfp.c: Ditto.
3805         * libc/stdio/fputc.c: Ditto.
3806         * libc/stdio/fputs.c: Ditto.
3807         * libc/stdio/fread.c: Ditto.
3808         * libc/stdio/freopen.c: Ditto.
3809         * libc/stdio/fseek.c: Ditto.
3810         * libc/stdio/ftell.c: Ditto.
3811         * libc/stdio/fwrite.c: Ditto.
3812         * libc/stdio/getc.c: Ditto.
3813         * libc/stdio/getdelim.c: Ditto.
3814         * libc/stdio/putc.c: Ditto.
3815         * libc/stdio/refill.c: Ditto.
3816         * libc/stdio/setvbuf.c: Ditto.
3817         * libc/stdio/ungetc.c: Ditto.
3818         * libc/stdio/vfprintf.c: Ditto.
3819         * libc/stdio/vfscanf.c: Ditto.
3820         * libc/stdio/wbuf.c: Ditto.: Ditto.
3821         * libc/stdio/wsetup.c: Ditto.
3822         * libc/stdio64/freopen64.c: Ditto.
3823         * libc/stdio64/fseeko64.c: Ditto.
3824         * libc/stdio64/ftello64.c: Ditto.
3825         * libc/machine/powerpc/vfprintf.c: Ditto.
3826         * libc/machine/powerpc/vfscanf.c: Ditto.
3827
3828 2006-09-22  Paul Brook  <paul@codesourcery.com>
3829
3830         * libc/include/sys/reent.h: Define and use __reent_assert.
3831
3832 2006-09-13  Joel Sherrill <joel@oarcorp.com>
3833
3834         * libc/include/pthread.h: Add pthread barriers,
3835         rwlocks, and spinlocks.  Change const to
3836         _CONST and prefix parameter names with
3837         an underscore.
3838         * libc/include/sys/types.h: Add id and attribute
3839         types for barriers, wrlocks, and spinlocks.
3840         * libc/include/sys/features.h: Enable barriers,
3841         wrlocks, and spinlocks for RTEMS.
3842
3843 2006-09-13  Patrick Mansfield <patmans@us.ibm.com>
3844
3845         * libc/include/math.h: Remove _CONST from _LIB_VERSION, as it is
3846         supposed to be writable.
3847         * libm/common/s_lib_ver.c: Ditto.
3848
3849 2006-09-12  Paul Brook  <paul@codesourcery.com>
3850
3851         * libc/stdlib/rand.c (srand): Add _REENT_CHECK_RAND48.
3852
3853 2006-09-07  Masaki Muranaka  <monaka@monami-software.com>
3854
3855
3856         * libc/machine/xstormy16/Makefile.am:
3857         Add $(lpfx) prefix to LIBADD objects.
3858         lib_a_DEPENDENCIES uses the value of lib_a_LIBADD.
3859         * libc/machine/xstormy16/Makefile.in: Regenerated.
3860
3861 2006-09-06  Eric Blake  <ebb9@byu.net>
3862
3863         * libc/stdio/vfprintf.c (_vfprintf_r, get_arg): Add 'hh', 'j',
3864         't', and 'z' modifiers.
3865
3866 2006-09-01  Kazu Hirata  <kazu@codesourcery.com>
3867
3868         Merge from newlib-csl-20060320-branch:
3869         2006-05-22  Sandra Loosemore <sandra@codesourcery.com>
3870
3871         * configure.host: Tell it we have _rename and _system when
3872         building m68k-unknown-elf.
3873
3874 2006-08-29  Paul Brook  <paul@codesourcery.com>
3875
3876         * libc/include/sys/config.h: Define _REENT_SMALL for Thumb-2.
3877
3878 2006-08-27  Joel Sherrill <joel.sherrill@OARcorp.com>
3879
3880         * libc/sys/rtems/machine/sys/param.h: Conditionalize definition of
3881         BLKDEV_IOSIZE and MAXPHYS so it will fit into small memory targets.
3882         This is needed to build all AVR and H8300 RTEMS multilib variants.
3883
3884 2006-08-23  Kazunori Asayama  <asayama@sm.sony.co.jp>
3885
3886         * libc/machine/configure.in: Add configuration for SPU.
3887         * libc/machine/configure: Regenerated.
3888         * libc/machine/spu/memcpy.c: Include string.h.
3889
3890 2006-08-22  Eric Blake  <ebb9@byu.net>
3891
3892         * libc/posix/popen.c (popen): Don't close output end of pipe in
3893         child if stdout was closed on entry.
3894         [HAVE_FCNTL]: In parent, mark file as close-on-exec, per POSIX.
3895
3896 2006-08-19  Ramana Radhakrishnan  <ramana.r@gmail.com>
3897
3898         * sys/types.h: Correct syntax error caused by missing '\' on #ifdef
3899         line.
3900
3901 2006-08-17  Brian Ford  <Brian.Ford@FlightSafety.com>
3902
3903         * libc/time/gmtime.c: Correct man page; clock is not a
3904         local time and no conversion occurs.
3905
3906 2006-08-16  Joel Schopp  <jschopp@austin.ibm.com>
3907
3908         * configure.host (newlib_cflags) [spu]: Add special compiler
3909         options to reduce size.
3910
3911 2006-08-16  Joel Schopp  <jschopp@austin.ibm.com>
3912
3913         * configure.host: Add spu support.
3914         * libc/include/stdint.h: Ditto.
3915         * libc/include/machine/ieeefp.h: Ditto.
3916         * libc/include/machine/setjmp.h: Ditto.
3917         * libc/include/sys/config.h: Ditto.
3918         * libc/include/sys/types.h: Ditto.
3919         * libc/machine/spu/Makefile.am: New file.
3920         * libc/machine/spu/Makefile.in: Ditto.
3921         * libc/machine/spu/aclocal.m4: Ditto.
3922         * libc/machine/spu/configure: Ditto.
3923         * libc/machine/spu/configure.in: Ditto.
3924         * libc/machine/spu/memcpy.c: Ditto.
3925         * libc/machine/spu/setjmp.S: Ditto.
3926
3927 2006-08-03  J"orn Rennecke  <joern.rennecke@st.com>
3928
3929         * dtoa.c (dtoa_r): Handle the denormalized _DOUBLE_IS_32BITS case
3930         properly.
3931
3932 2006-08-01  Jeff Johnston  <jjohnstn@redhat.com>
3933
3934         * libc/Makefile.am: Add libc_TEXINFOS dependency on
3935         generated .texi files.
3936         * libm/Makefile.am: Add libm_TEXINFOS dependency on
3937         generated .texi files.
3938         * libc/Makefile.in: Regenerated.
3939         * libm/Makefile.in: Ditto.
3940
3941 2006-08-01  Thiemo Seufer  <ths@mips.com>
3942             Nigel Stephens  <nigel@mips.com>
3943
3944         * libc/include/sys/config.h (__ATTRIBUTE_IMPURE_PTR__): For MIPS
3945         define this to force _impure_ptr to live in the .sdata section.
3946
3947 2006-07-31  Jeff Johnston  <jjohnstn@redhat.com>
3948
3949         * acinclude.m4: Check for readelf tool.
3950         * configure.in: Use ${READELF} instead of hard-coding.
3951         * Regenerate all aclocal.m4, Makefile.in, and configure files.
3952
3953 2006-07-31  Jeff Johnston  <jjohnstn@redhat.com>
3954
3955         * libc/sys/linux/mmap.c: Remove include of sys/mman.h
3956         to avoid conflict with newer glibc's revision of mremap.
3957
3958 2006-07-05  Jeff Johnston  <jjohnstn@redhat.com>
3959
3960         * libc/stdlib/mprec.h [_DOUBLE_IS_32BITS]: Turn off C99 hex
3961         floating-point format support.  Also redefine
3962         dword0 and dword1 macros.
3963         * libc/stdlib/strtod.c: Add checks for _DOUBLE_IS_32BITS
3964         to prevent setting dword1 which is an rvalue only.
3965
3966 2006-06-22  Jeff Johnston  <jjohnstn@redhat.com>
3967
3968         * libc/stdlib/Makefile.am: Add new gdtoa routines.
3969         * libc/stdlib/Makefile.in: Regenerated.
3970         * libc/stdlib/gd_qnan.h: New file.
3971         * libc/stdlib/gdtoa-gethex.c: Ditto.
3972         * libc/stdlib/gdtoa-hexnan.c: Ditto.
3973         * libc/stdlib/gdtoa.h: Ditto.
3974         * libc/stdlib/mprec.c: Add new helper routines needed by
3975         the new gdtoa code.
3976         * libc/stdlib/mprec.h: Integrate some defines and prototypes
3977         used by gdtoa routines here.
3978         * libc/stdlib/strtod.c: Rebased on David M. Gay's gdtoa-strtod.c
3979         which adds C99 support such as nan, inf, and hexadecimal input
3980         format.
3981
3982 2006-06-15  Corinna Vinschen  <corinna@vinschen.de>
3983
3984         * libc/include/stdio.h (__sgetc_r): Fix typo.
3985         * libc/stdio/fread.c (_fread_r): Convert crlf calls to crlf_r.
3986         * libc/stdio/rget.c (__srbuf): Reinstantiate.
3987         * libc/stdio/wbuf.c (__swbuf): Ditto.
3988
3989 2006-06-14  Jeff Johnston  <jjohnstn@redhat.com>
3990
3991         * libc/include/stdio.h: Add new reentrant I/O prototypes for
3992         read/write functions.  Change getc/putc macros to have reentrant underlying
3993         macros/functions.  This includes __sgetc_raw_r, __sgetc_r, and __sputc_r.
3994         * libc/stdio/fgetc.c: Fix and/or add reentrant version to call
3995         new reentrant I/O functions/macros for reading/writing.
3996         * libc/stdio/fgets.c: Ditto.
3997         * libc/stdio/fputc.c: Ditto.
3998         * libc/stdio/fputs.c: Ditto.
3999         * libc/stdio/fread.c: Ditto.
4000         * libc/stdio/fseek.c: Ditto.
4001         * libc/stdio64/fseeko64.c: Ditto.
4002         * libc/stdio/fwrite.c: Ditto.
4003         * libc/stdio/getc.c: Ditto.
4004         * libc/stdio/getc_u.c: Ditto.
4005         * libc/stdio/getchar.c: Ditto.
4006         * libc/stdio/getchar_u.c: Ditto.
4007         * libc/stdio/putc.c: Ditto.
4008         * libc/stdio/putc_u.c: Ditto.
4009         * libc/stdio/putchar.c: Ditto.
4010         * libc/stdio/puts.c: Ditto.
4011         * libc/stdio/vfprintf.c: Ditto.
4012         * libc/stdio/vfscanf.c: Ditto.
4013         * libc/stdio/fvwrite.c: Change __sfvwrite into reentrant __sfvwrite_r.
4014         Change all previous callers of __sfvwrite.  Set errno to EBADF and
4015         set error flag on if attempt is made to write to file that does not
4016         allow writing.
4017         * libc/stdio/fvwrite.h: Fix new reentrant prototypes.
4018         * libc/stdio/local.h: Ditto.
4019         * libc/stdio/refill.c: Turn __srefill into reentrant __srefill_r.
4020         Set errno to EBADF and the error flag on if attempt is made to
4021         read unreadable file.  Change all previous callers of __srefill.
4022         * libc/stdio/rget.c
4023         * libc/stdio/wbuf.c: Turn __swbuf into reentrant __swbuf_r.  Change
4024         all previous callers of __swbuf.
4025         * libc/sys/linux/machine/i386/huge_val.h: Ifdef out file contents since
4026         huge value macros are already defined correctly for i386 by <math.h>.
4027
4028 2006-06-13  Sandra Loosemore <sandra@codesourcery.com>
4029
4030         * /libc/sys/arm/syscalls.c (_unlink, isatty, _system, _rename):
4031         Make them do something useful in the ARM_RDI_MONITOR case.
4032
4033 2006-06-07  Fred Fish  <fnf@specifix.com>
4034
4035         * libc/search/hash_bigkey.c (MIN,MAX): Remove
4036         defines that are already supplied by <sys/param.h>.
4037
4038 2006-06-07  Fred Fish  <fnf@specifix.com>
4039
4040         * configure.host: Remove references to HAVE_GETTIMEOFDAY.
4041
4042 2006-06-05  Shaun Jackman  <sjackman@gmail.com>
4043
4044         * libc/posix/Makefile.am (GENERAL_SOURCES): Add sleep.c and
4045         usleep.c.
4046         * libc/posix/Makefile.in: Regenerate.
4047         * libc/posix/sleep.c: New file.
4048         * libc/posix/usleep.c: Ditto.
4049
4050 2006-06-05  Shaun Jackman  <sjackman@gmail.com>
4051
4052         * configure.host (newlib_cflags) [arm, thumb, xscale]:  Remove
4053         -DABORT_PROVIDED flag.
4054         * newlib/libc/sys/arm/syscalls.c (kill, exit): Sync with libgloss.
4055         * newlib/libc/sys/arm/libcfunc.c (abort): Ditto.
4056
4057 2006-06-05  Jeff Johnston  <jjohnstn@redhat.com>
4058
4059         * Makefile.am (AM_MAKEFLAGS): Pass CCASFLAGS.
4060         * Makefile.in: Regenerated.
4061         * libc/machine/sh/Makefile.am (AM_CCASFLAGS): Remove
4062         extraneous CFLAGS reference now that CCASFLAGS are being extended
4063         properly via multilib.
4064         * libc/machine/sh/Makefile.in: Regenerated.
4065
4066 2006-06-02  Shaun Jackman  <sjackman@gmail.com>
4067
4068         * libc/unix/sigset.c: Undefine sigfillset, sigdelset, and
4069         sigismember.
4070
4071 2006-05-23  Jeff Johnston  <jjohnstn@redhat.com>
4072
4073         * libc/misc/dprintf.c: Removed.
4074         * libc/misc/__dprintf.c: Renamed from dprintf.c.
4075         * libc/misc/Makefile.am: Changed appropriately for rename.
4076         * libc/misc/Makefile.in: Regenerated.
4077
4078 2006-05-23  Jeff Johnston  <jjohnstn@redhat.com>
4079
4080         * libc/include/stdio.h: Protect dprintf prototype
4081         with #ifndef dprintf so as to not interfere with
4082         historical code defining their own dprintf macro.
4083
4084 2006-05-18  Jeff Johnston  <jjohnstn@redhat.com>
4085
4086         * libc/include/stdio.h: Add prototypes for fiscanf,
4087         iscanf, and siscanf.
4088
4089 2006-05-11  J"orn Rennecke <joern.rennecke@st.com>
4090
4091         * acinclude.m4 (_NEWLIB_VERSION): Rename to:
4092         (DEF_NEWLIB_VERSION).
4093         * configure.in (_NEWLIB_VERSION): Use NEWLIB_VERSION.
4094         * configure: Regenerate.
4095
4096 2006-05-09  Jeff Johnston  <jjohnstn@redhat.com>
4097
4098         * libc/ctype/Makefile.am: Add $(ELIX_SOURCES) to
4099         lib_a_SOURCES.
4100         * libc/ctype/Makefile.in: Regenerated.
4101
4102 2006-05-09  Kazu Hirata  <kazu@codesourcery.com>
4103
4104         * libc/machine/arm/Makefile.am: Fix a typo.
4105         * libc/machine/arm/Makefile.in: Regenerated.
4106
4107 2006-05-08  J"orn Rennecke <joern.rennecke@st.com>
4108
4109         * libc/machine/sh/Makefile.am (AM_CCASFLAGS): Add $(CFLAGS).
4110         * libc/machine/sh/Makefile.in: Regenerate.
4111
4112 2006-05-03  J"orn Rennecke <joern.rennecke@st.com>
4113
4114         * libc/sys/sh/Makefile.am (AM_CCASFLAGS): Add $(CFLAGS).
4115         * libc/sys/sh/Makefile.in (AM_CCASFLAGS): Likewise.
4116
4117 2006-05-02  Jeff Johnston  <jjohnstn@redhat.com>
4118
4119         * libc/sys/sysnec810/Makefile.am: Specify .S files instead of
4120         .s.
4121         * libc/sys/sysnec810/Makefile.in: Regenerated.
4122         * libc/sys/sysnec810/crt0.S: Renamed from .s file.
4123         * libc/sys/sysnec810/io.S: Ditto.
4124         * libc/sys/sysnec810/crt0.s: Renamed to .S file.
4125         * libc/sys/sysnec810/io.s: Ditto.
4126
4127 2006-05-01  Jeff Johnston  <jjohnstn@redhat.com>
4128
4129         * libc/argz/Makefile.am: Prefix any objects specified with $(lpfx).  If source file can
4130         be specified instead of object, do so.
4131         * libc/ctype/Makefile.am: Ditto.
4132         * libc/iconv/ccs/Makefile.am: Ditto.
4133         * libc/iconv/ces/Makefile.am: Ditto.
4134         * libc/iconv/lib/Makefile.am: Ditto.
4135         * libc/locale/Makefile.am: Ditto.
4136         * libc/posix/Makefile.am: Ditto.
4137         * libc/reent/Makefile.am: Ditto.
4138         * libc/search/Makefile.am: Ditto.
4139         * libc/stdio/Makefile.am: Ditto.
4140         * libc/stdio64/Makefile.am: Ditto.
4141         * libc/stdlib/Makefile.am: Ditto.
4142         * libc/string/Makefile.am: Ditto.
4143         * libc/syscalls/Makefile.am: Ditto.
4144         * libc/unix/Makefile.am: Ditto.
4145         * libc/machine/a29k/Makefile.am: Specify lib_a_CCASFLAGS so .S files will get
4146         prefix added automatically.  Any specified rules must use $(lpfx) for
4147         object file names.
4148         * libc/machine/arm/Makefile.am: Ditto.
4149         * libc/machine/cris/Makefile.am: Ditto.
4150         * libc/machine/crx/Makefile.am: Ditto.
4151         * libc/machine/d10v/Makefile.am: Ditto.
4152         * libc/machine/d30v/Makefile.am: Ditto.
4153         * libc/machine/fr30/Makefile.am: Ditto.
4154         * libc/machine/frv/Makefile.am: Ditto.
4155         * libc/machine/h8300/Makefile.am: Ditto.
4156         * libc/machine/h8500/Makefile.am: Ditto.
4157         * libc/machine/hppa/Makefile.am: Ditto.
4158         * libc/machine/i386/Makefile.am: Ditto.
4159         * libc/machine/i960/Makefile.am: Ditto.
4160         * libc/machine/iq2000/Makefile.am: Ditto.
4161         * libc/machine/m32c/Makefile.am: Ditto.
4162         * libc/machine/m32r/Makefile.am: Ditto.
4163         * libc/machine/m68hc11/Makefile.am: Ditto.
4164         * libc/machine/m68k/Makefile.am: Ditto.
4165         * libc/machine/m88k/Makefile.am: Ditto.
4166         * libc/machine/mips/Makefile.am: Ditto.
4167         * libc/machine/mn10200/Makefile.am: Ditto.
4168         * libc/machine/mn10300/Makefile.am: Ditto.
4169         * libc/machine/mt/Makefile.am: Ditto.
4170         * libc/machine/necv70/Makefile.am: Ditto.
4171         * libc/machine/powerpc/Makefile.am: Ditto.
4172         * libc/machine/sh/Makefile.am: Ditto.
4173         * libc/machine/sh/Makefile.in: Ditto.
4174         * libc/machine/sparc/Makefile.am: Ditto.
4175         * libc/machine/tic4x/Makefile.am: Ditto.
4176         * libc/machine/tic80/Makefile.am: Ditto.
4177         * libc/machine/v850/Makefile.am: Ditto.
4178         * libc/machine/w65/Makefile.am: Ditto.
4179         * libc/machine/xscale/Makefile.am: Ditto.
4180         * libc/machine/xstormy16/Makefile.am: Ditto.
4181         * libc/machine/z8k/Makefile.am: Ditto.
4182         * libc/sys/a29khif/Makefile.am: Ditto.
4183         * libc/sys/arm/Makefile.am: Ditto.
4184         * libc/sys/d10v/Makefile.am: Ditto.
4185         * libc/sys/h8300hms/Makefile.am: Ditto.
4186         * libc/sys/h8500hms/Makefile.am: Ditto.
4187         * libc/sys/linux/Makefile.am: Ditto.
4188         * libc/sys/linux/linuxthreads/Makefile.am: Ditto.
4189         * libc/sys/linux/net/Makefile.am: Ditto.
4190         * libc/sys/linux/stdlib/Makefile.am: Ditto.
4191         * libc/sys/m88kbug/Makefile.am: Ditto.
4192         * libc/sys/mmixware/Makefile.am: Ditto.
4193         * libc/sys/rdos/Makefile.am: Ditto.
4194         * libc/sys/rtems/Makefile.am: Ditto.
4195         * libc/sys/sh/Makefile.am: Ditto.
4196         * libc/sys/sun4/Makefile.am: Ditto.
4197         * libc/sys/sysmec/Makefile.am: Ditto.
4198         * libc/sys/sysnec810/Makefile.am: Ditto.
4199         * libc/sys/sysnecv850/Makefile.am: Ditto.
4200         * libc/sys/sysvi386/Makefile.am: Ditto.
4201         * libc/sys/sysvnecv70/Makefile.am: Ditto.
4202         * libc/sys/tic80/Makefile.am: Ditto.
4203         * libc/sys/w65/Makefile.am: Ditto.
4204         * libc/sys/z8ksim/Makefile.am: Ditto.
4205         * libc/machine/necv70/fastmath.S: Renamed from .s file.
4206         * libc/machine/necv70/setjmp.S: Ditto.
4207         * libc/machine/necv70/fastmath.s: Removed.
4208         * libc/machine/necv70/setjmp.s: Ditto.
4209         * libc/machine/w65/*.S: New files renamed from .s files.
4210         * libc/machine/w65/*.s: Renamed and removed.
4211         * libc/sys/a29khif/*.S: New files renamed from .s files.
4212         * libc/sys/a29khif/*.s: Renamed and removed.
4213         * libc/sys/sysvi386/*.S: New files renamed from .s files.
4214         * libc/sys/sysvi386/*.s: Renamed and removed.
4215         * libc/sys/sysvnecv70/*.S: New files renamed from .s files.
4216         * libc/sys/sysvnecv70/*.s: Renamed and removed.
4217         * libc/*Makefile.in: Regenerated as appropriate.
4218
4219 2006-04-24  DJ Delorie  <dj@redhat.com>
4220
4221         * libc/machine/sh/configure.in: Avoid link tests.
4222         * libc/machine/sh/configure: Regenerate.
4223
4224 2006-04-18  Jeff Johnston  <jjohnstn@redhat.com>
4225
4226         * libc/include/sys/signal.h (sigdelset, sigfillset, sigismember): New macros.
4227         (sigaddset, sigemptyset): Add return code.
4228
4229 2006-04-13  Ralf Corsepius  <ralf.corsepius@rtems.org>
4230
4231         * acinclude.m4: New _NEWLIB_VERSION.
4232         * acinclude.m4(NEWLIB_CONFIGURE): AC_REQUIRE(_NEWLIB_VERSION).
4233         Use AC_CANONICAL_HOST instead of AC_CANONICAL_SYSTEM.
4234         Use new form of AC_INIT_AUTOMAKE.
4235         * configure.in: AC_PREREQ(2.59).
4236         Use autoconf-2.5.x version of AC_INIT.
4237         Use AC_CONFIG_FILES and autoconf-2.5x AC_OUTPUT instead of
4238         autoconf-2.13's AC_OUTPUT.
4239         * libm/configure.in: Ditto.
4240         * libm/machine/configure.in: Ditto.
4241         * libm/machine/i386/configure.in: Ditto.
4242         * libc/configure.in: Ditto.
4243         * libc/machine/a29k/configure.in: Ditto.
4244         * libc/machine/arm/configure.in: Ditto.
4245         * libc/machine/configure.in: Ditto.
4246         * libc/machine/mn10300/configure.in: Ditto.
4247         * libc/machine/powerpc/configure.in: Ditto.
4248         * libc/machine/z8k/configure.in: Ditto.
4249         * libc/machine/h8300/configure.in: Ditto.
4250         * libc/machine/mips/configure.in: Ditto.
4251         * libc/machine/crx/configure.in: Ditto.
4252         * libc/machine/m68hc11/configure.in: Ditto.
4253         * libc/machine/h8500/configure.in: Ditto.
4254         * libc/machine/xscale/configure.in: Ditto.
4255         * libc/machine/d10v/configure.in: Ditto.
4256         * libc/machine/fr30/configure.in: Ditto.
4257         * libc/machine/sh/configure.in: Ditto.
4258         * libc/machine/tic80/configure.in: Ditto.
4259         * libc/machine/m32r/configure.in: Ditto.
4260         * libc/machine/xstormy16/configure.in: Ditto.
4261         * libc/machine/i386/configure.in: Ditto.
4262         * libc/machine/d30v/configure.in: Ditto.
4263         * libc/machine/mn10200/configure.in: Ditto.
4264         * libc/machine/frv/configure.in: Ditto.
4265         * libc/machine/mt/configure.in: Ditto.
4266         * libc/machine/i960/configure.in: Ditto.
4267         * libc/machine/v850/configure.in: Ditto.
4268         * libc/machine/necv70/configure.in: Ditto.
4269         * libc/machine/tic4x/configure.in: Ditto.
4270         * libc/machine/cris/configure.in: Ditto.
4271         * libc/machine/m68k/configure.in: Ditto.
4272         * libc/machine/m32c/configure.in: Ditto.
4273         * libc/machine/hppa/configure.in: Ditto.
4274         * libc/machine/w65/configure.in: Ditto.
4275         * libc/machine/iq2000/configure.in: Ditto.
4276         * libc/machine/sparc/configure.in: Ditto.
4277         * libc/machine/m88k/configure.in: Ditto.
4278         * libc/sys/linux/configure.in: Ditto.
4279         * libc/sys/linux/machine/configure.in: Ditto.
4280         * libc/sys/linux/machine/i386/configure.in: Ditto.
4281         * libc/sys/linux/linuxthreads/configure.in: Ditto.
4282         * libc/sys/linux/linuxthreads/machine/configure.in: Ditto.
4283         * libc/sys/linux/linuxthreads/machine/i386/configure.in: Ditto.
4284         * libc/sys/arm/configure.in: Ditto.
4285         * libc/sys/configure.in: Ditto.
4286         * libc/sys/decstation/configure.in: Ditto.
4287         * libc/sys/a29khif/configure.in: Ditto.
4288         * libc/sys/sysnecv850/configure.in: Ditto.
4289         * libc/sys/d10v/configure.in: Ditto.
4290         * libc/sys/netware/configure.in: Ditto.
4291         * libc/sys/mmixware/configure.in: Ditto.
4292         * libc/sys/h8500hms/configure.in: Ditto.
4293         * libc/sys/sh/configure.in: Ditto.
4294         * libc/sys/tic80/configure.in: Ditto.
4295         * libc/sys/rdos/configure.in: Ditto.
4296         * libc/sys/sysmec/configure.in: Ditto.
4297         * libc/sys/sysvi386/configure.in: Ditto.
4298         * libc/sys/h8300hms/configure.in: Ditto.
4299         * libc/sys/sparc64/configure.in: Ditto.
4300         * libc/sys/arc/configure.in: Ditto.
4301         * libc/sys/sysnec810/configure.in: Ditto.
4302         * libc/sys/m88kbug/configure.in: Ditto.
4303         * libc/sys/sysvnecv70/configure.in: Ditto.
4304         * libc/sys/z8ksim/configure.in: Ditto.
4305         * libc/sys/rtems/configure.in: Ditto.
4306         * libc/sys/w65/configure.in: Ditto.
4307         * libc/sys/sun4/configure.in: Ditto.
4308         * doc/configure.in: Ditto.
4309         * iconvdata/configure.in: Ditto.
4310         * configure.in: Use AC_CONFIG_HEADER instead of AM_CONFIG_HEADER.
4311
4312 2006-04-11  Jeff Johnston  <jjohnstn@redhat.com>
4313
4314         * acinclude.m4: Properly add square brackets for
4315         AC_DEFUN macros.  Rewrite LIB_AC_PROG_CC to remove
4316         macros no longer available.  Add LIB_AM_PROG_AS to
4317         remove prereq of AC_PROG_CC.  Add LIB_AC_PROG_CC_GNU
4318         macro.  Substitute lpfx (library object prefix).
4319         * configure.host: Set lpfx depending on whether
4320         libtool is used or not.
4321         * configure.in: Individually specify libc and libm
4322         to AC_CONFIG_SUBDIRS.  Add square bracket quoting as
4323         necessary.
4324         * Makefile.am: Use $(lpfx) to get object names for
4325         math-library functions that should also be in libc.
4326         * libc/machine/configure.in: Use case statement to determine
4327         AC_CONFIG_SUBDIRS statement.
4328         * libc/sys/linux/linuxthreads/machine/configure.in: Ditto.
4329         * libc/sys/linux/machine/configure.in: Ditto.
4330         * libc/sys/configure.in: Ditto.
4331         * libm/machine/configure.in: Ditto.
4332         * libc/sys/linux/configure.in: Fix up AC_CONFIG_SUBDIRS.
4333         * libm/configure.in: Add AM_CONDITIONAL statement
4334         for HAVE_LIBM_MACHINE_DIR.
4335         * libc/machine/a29k/Makefile.am: Modified to work with
4336         latest automake.  Change includes setting AM_CCASFLAGS
4337         so building .S files will properly pick up flags used
4338         to build C files.
4339         * libc/machine/arm/Makefile.am: Ditto.
4340         * libc/machine/crx/Makefile.am: Ditto.
4341         * libc/machine/d10v/Makefile.am: Ditto.
4342         * libc/machine/d30v/Makefile.am: Ditto.
4343         * libc/machine/fr30/Makefile.am: Ditto.
4344         * libc/machine/frv/Makefile.am: Ditto.
4345         * libc/machine/h8300/Makefile.am: Ditto.
4346         * libc/machine/h8500/Makefile.am: Ditto.
4347         * libc/machine/hppa/Makefile.am: Ditto.
4348         * libc/machine/i386/Makefile.am: Ditto.
4349         * libc/machine/iq2000/Makefile.am: Ditto.
4350         * libc/machine/m32c/Makefile.am: Ditto.
4351         * libc/machine/m32r/Makefile.am: Ditto.
4352         * libc/machine/m68hc11/Makefile.am: Ditto.
4353         * libc/machine/m68k/Makefile.am: Ditto.
4354         * libc/machine/m88k/Makefile.am: Ditto.
4355         * libc/machine/mips/Makefile.am: Ditto.
4356         * libc/machine/mn10200/Makefile.am: Ditto.
4357         * libc/machine/mn10300/Makefile.am: Ditto.
4358         * libc/machine/mt/Makefile.am: Ditto.
4359         * libc/machine/necv70/Makefile.am: Ditto.
4360         * libc/machine/powerpc/Makefile.am: Ditto.
4361         * libc/machine/sh/Makefile.am: Ditto.
4362         * libc/machine/sparc/Makefile.am: Ditto.
4363         * libc/machine/tic4x/Makefile.am: Ditto.
4364         * libc/machine/tic80/Makefile.am: Ditto.
4365         * libc/machine/v850/Makefile.am: Ditto.
4366         * libc/machine/w65/Makefile.am: Ditto.
4367         * libc/machine/xscale/Makefile.am: Ditto.
4368         * libc/machine/xstormy16/Makefile.am: Ditto.
4369         * libc/machine/z8k/Makefile.am: Ditto.
4370         * libc/sys/a29khif/Makefile.am: Ditto.
4371         * libc/sys/arc/Makefile.am: Ditto.
4372         * libc/sys/arm/Makefile.am: Ditto.
4373         * libc/sys/d10v/Makefile.am: Ditto.
4374         * libc/sys/decstation/Makefile.am: Ditto.
4375         * libc/sys/h8300hms/Makefile.am: Ditto.
4376         * libc/sys/h8500hms/Makefile.am: Ditto.
4377         * libc/sys/linux/linuxthreads/machine/i386/Makefile.am: Ditto.
4378         * libc/sys/linux/machine/i386/Makefile.am: Ditto.
4379         * libc/sys/m88kbug/Makefile.am: Ditto.
4380         * libc/sys/mmixware/Makefile.am: Ditto.
4381         * libc/sys/netware/Makefile.am: Ditto.
4382         * libc/sys/rdos/Makefile.am: Ditto.
4383         * libc/sys/rtems/Makefile.am: Ditto.
4384         * libc/sys/sh/Makefile.am: Ditto.
4385         * libc/sys/sparc64/Makefile.am: Ditto.
4386         * libc/sys/sysmec/Makefile.am: Ditto.
4387         * libc/sys/sysnec810/Makefile.am: Ditto.
4388         * libc/sys/sysnecv850/Makefile.am: Ditto.
4389         * libc/sys/sysvi386/Makefile.am: Ditto.
4390         * libc/sys/sysvnecv70/Makefile.am: Ditto.
4391         * libc/sys/tic80/Makefile.am: Ditto.
4392         * libc/sys/w65/Makefile.am: Ditto.
4393         * libc/sys/z8ksim/Makefile.am: Ditto.
4394         * libm/machine/i386/Makefile.am: Ditto.
4395         * libc/sys/arm/Makefile.am: Ditto plus add EXTRA sources including
4396         trap.S so that automake will generate a .S.o suffix rule.
4397         * libc/argz/Makefile.am: Modified to work with
4398         latest automake.  Change includes adding lib_a_CFLAGS
4399         so automake doesn't complain about libtool and non-libtool
4400         libraries sharing objects.
4401         * libc/ctype/Makefile.am: Ditto.
4402         * libc/errno/Makefile.am: Ditto.
4403         * libc/iconv/ccs/Makefile.am: Ditto.
4404         * libc/iconv/ces/Makefile.am: Ditto.
4405         * libc/iconv/lib/Makefile.am: Ditto.
4406         * libc/locale/Makefile.am: Ditto.
4407         * libc/misc/Makefile.am: Ditto.
4408         * libc/posix/Makefile.am: Ditto.
4409         * libc/reent/Makefile.am: Ditto.
4410         * libc/search/Makefile.am: Ditto.
4411         * libc/signal/Makefile.am: Ditto.
4412         * libc/stdio/Makefile.am: Ditto.
4413         * libc/stdio64/Makefile.am: Ditto.
4414         * libc/stdlib/Makefile.am: Ditto.
4415         * libc/string/Makefile.am: Ditto.
4416         * libc/sys/linux/Makefile.am: Ditto.
4417         * libc/sys/linux/argp/Makefile.am: Ditto.
4418         * libc/sys/linux/cmath/Makefile.am: Ditto.
4419         * libc/sys/linux/dl/Makefile.am: Ditto.
4420         * libc/sys/linux/iconv/Makefile.am: Ditto.
4421         * libc/sys/linux/intl/Makefile.am: Ditto.
4422         * libc/sys/linux/linuxthreads/Makefile.am: Ditto.
4423         * libc/sys/linux/net/Makefile.am: Ditto.
4424         * libc/sys/linux/stdlib/Makefile.am: Ditto.
4425         * libc/syscalls/Makefile.am: Ditto.
4426         * libc/time/Makefile.am: Ditto.
4427         * libc/unix/Makefile.am: Ditto.
4428         * libm/Makefile.am: Ditto.
4429         * libm/common/Makefile.am: Ditto.
4430         * libm/math/Makefile.am: Ditto.
4431         * libm/mathfp/Makefile.am: Ditto.
4432         * Regenerate all aclocal.m4, Makefile.in, and configure files.
4433
4434 2006-04-07  Jeff Johnston  <jjohnstn@redhat.com>
4435
4436         * libc/time/time.c (time): Do not check for HAVE_GETTIMEOFDAY
4437         anymore.  Assume there is a gettimeofday syscall.
4438
4439 2006-03-29  Shaun Jackman  <sjackman@gmail.com>
4440
4441         * libc/sys/linux/include/netinet/ip.h: Include netinet/in_systm.h
4442         for the declaration of n_long.
4443
4444 2006-03-29  Shaun Jackman  <sjackman@gmail.com>
4445
4446         * libc/sys/linux/include/net/if.h: Include sys/socket.h for
4447         struct sockaddr.
4448         (IFF_SMART): Replace this define with IFF_NOTRAILERS.
4449         (IFF_CANTCHANGE): Replace IFF_SMART reference with IFF_NOTRAILERS.
4450         (IFF_NOTRAILERS): New define.
4451         (struct ifreq): Add ifru_netmask.
4452         (ifr_netmask): New define.
4453
4454 2006-03-29  Shaun Jackman  <sjackman@gmail.com>
4455
4456         * libc/sys/linux/sys/ioccom.h (ioctl): Change declaration to
4457         match sys/ioctl.h.
4458
4459 2006-03-29  Shaun Jackman  <sjackman@gmail.com>
4460
4461         * libtool.m4: Set lt_cv_deplibs_check_method=pass_all for
4462         linux-newlib libc implementations.
4463
4464 2006-03-29  Eric Blake  <ebb9@byu.net>
4465
4466         * libc/stdio/freopen.c (_freopen_r) [__SCLE]: Fix typo.
4467         * libc/stdio64/freopen64.c (_freopen64_r) [__SCLE]: Likewise.
4468
4469 2006-03-29  Jeff Johnston  <jjohnstn@redhat.com>
4470
4471         * libc/sys/linux/io.c (__mknod): Fix declaration of
4472         syscall to pass a dev_t as third argument rather than
4473         a pointer to dev_t.
4474
4475 2006-03-29  Jeff Johnston  <jjohnstn@redhat.com>
4476
4477         * libc/sys/linux/net/name6.c: Fix struct references.
4478
4479 2006-03-22  Mark Mitchell  <mark@codesourcery.com>
4480
4481         * configure.host: Allow hosts to set the default
4482         newlib_atexit_dynamic_alloc value.
4483         * configure.in: Likewise.
4484         * configure: Regenerated.
4485
4486 2006-03-20  Mark Mitchell  <mark@codesourcery.com>
4487
4488         * acconfig.h (_ATEXIT_DYNAMIC_ALLOC): Undef.
4489         * configure.in (--disable-newlib-atexit-dynamic-alloc): New
4490         option.
4491         * configure: Regenerated.
4492         * newlib.hin: Regenerated.
4493         * libc/stdlib/__atexit.c (__register_exitproc): Don't call malloc
4494         if _ATEXIT_DYNAMIC_ALLOC is undefined.
4495         * libc/stdlib/__call_atexit.c (__call_exitprocs): Don't call free
4496         if _ATEXIT_DYNAMIC_ALLOC is undefined.
4497
4498 2006-03-17  Jeff Johnston  <jjohnstn@redhat.com>
4499
4500         * libc/sys/linux/linuxthreads/config.h: Remove definition
4501         of UINT32_C.
4502
4503 2006-03-15  Jeff Johnston  <jjohnstn@redhat.com>
4504
4505         * libc/stdio/wsetup.c (__swsetup): Don't make a buffer
4506         for a string I/O file that isn't using the asprintf family.
4507
4508 2006-03-07  Eric Blake  <ebb9@byu.net>
4509
4510         * libc/stdio/freopen.c (_freopen_r) [HAVE_FCNTL]: For NULL
4511         filename, allow read-only or write-only FILE atop O_RDWR file
4512         descriptor.
4513         * libc/stdio64/freopen64.c (_freopen64_r) [HAVE_FCNTL]: Likewise.
4514
4515 2006-03-07  Jeff Johnston  <jjohnstn@redhat.com>
4516
4517         * libm/common/sf_isinf.c[_DOUBLE_IS_32BITS]: Undef isinf.
4518         * libm/common/sf_isnan.c[_DOUBLE_IS_32BITS]: Undef isnan.
4519
4520 2006-03-02  Jeff Johnston  <jjohnstn@redhat.com>
4521
4522         * libm/math/math.tex: Fix reference to sisnan.def which
4523         is now in common subdirectory.
4524         * libm/mathfp/mathfp.tex: Ditto.
4525
4526 2006-02-27  Jeff Johnston  <jjohnstn@redhat.com>
4527
4528         * Makefile.am (MATHOBJS_IN_LIBC): Add s_isinfd, sf_isinff,
4529         s_isnand, and sf_isnanf object files.
4530         * Makefile.in: Regenerated.
4531         * libc/include/ieeefp.h: Undef isnan and isinf to avoid
4532         conflict if <math.h> has previously been included.
4533         * libc/include/math.h
4534         * libc/include/math.h: Make isnan and isinf macros to
4535         conform to C99.
4536         (__isinfd, __isinff, __isnand, __isnanf): New functions.
4537         * libm/common/Makefile.am: Add new s_isinfd, s_isnand, sf_isinff,
4538         and sf_isnanf files.  Also support s_isnan, sf_isnan, s_isinf, and
4539         sf_isinf files which have been moved from math/mathfp directories.
4540         * libm/common/Makefile.in: Regenerated.
4541         * libm/common/s_isinfd.c: New file.
4542         * libm/common/s_isnand.c: Ditto.
4543         * libm/common/sf_isinff.c: Ditto.
4544         * libm/common/sf_isnanf.c: Ditto.
4545         * libm/common/s_isinf.c: Moved from libm/math directory.
4546         * libm/common/s_isnan.c: Ditto.
4547         * libm/common/sf_isinf.c: Ditto.
4548         * libm/common/sf_isnan.c: Ditto.
4549         * libm/math/Makefile.am: Remove isinf and isnan family functions
4550         which have been moved into common directory.
4551         * libm/mathfp/Makefile.am: Ditto.
4552         * libm/math/Makefile.in: Regenerated.
4553         * libm/mathfp/Makefile.in: Ditto.
4554         * libm/math/s_isinf.c: Removed.
4555         * libm/math/s_isnan.c: Ditto.
4556         * libm/math/sf_isinf.c: Ditto.
4557         * libm/math/sf_isnan.c: Ditto.
4558         * libm/mathfp/s_isinf.c: Ditto.
4559         * libm/mathfp/s_isnan.c: Ditto.
4560         * libm/mathfp/sf_isinf.c: Ditto.
4561         * libm/mathfp/sf_isnan.c: Ditto.
4562
4563 2006-02-20  Jeff Johnston  <jjohnstn@redhat.com>
4564
4565         * libc/stdio/fflush.c (fflush): For an fflush on a read-only
4566         stream, turn off fseek/rewind optimization as per POSIX/SUSv3.
4567         * libc/stdio/fseek.c (_fseek_r): After a successful unoptimized
4568         seek, turn off the __SNPT no-optimization flag.
4569
4570 2006-02-16  Jeff Johnston  <jjohnstn@redhat.com>
4571
4572         * libc/sys/linux/aio.c: Define _GNU_SOURCE so struct aioinit
4573         will be defined.
4574         * libc/sys/linux/sys/types.h: Move <sys/config.h> ahead of
4575         <features.h> to preset special flags.
4576
4577 2006-02-15  Corinna Vinschen  <corinna@vinschen.de>
4578
4579         * libc/include/sys/time.h (struct timeval): Change member types
4580         according to SUSv3.
4581         * libc/include/sys/types.h (useconds_t): Change to unsigned
4582         according to SUSv3.
4583         (suseconds_t): Define type.
4584
4585 2006-02-13  Jeff Johnston  <jjohnstn@redhat.com>
4586             David Carne  <davidcarne@gmail.com>
4587
4588         * libc/string/strndup_r.c (_strndup_r): Use strnlen logic
4589         instead of strlen to determine number of bytes to copy.
4590         * libc/string/strnlen.c (strnlen): Fix so check for max limit occurs
4591         before looking at storage location.
4592
4593 2006-02-07  Paul Brook  <paul@codesourcery.com>
4594
4595         * libc/machine/arm/setjmp.S: Add Thumb-2 support.
4596         * libc/sys/arm/crt0.S: Add Thumb-2 startup code.
4597         * libc/sys/arm/libcfunc.c (do_AngelSWI): Use AngelSWIInsn.
4598         * libc/sys/arm/swi.h (AngelSWIInsn, AngelSWIAsm): Define.
4599         * libc/sys/arm/trap.S: Disable for Thumb-2.
4600
4601 2006-01-31  Leif Ekblad  <leif@rdos.net>
4602
4603         * configure.host: RDOS support added
4604         * libc/include/sys/config.h: Ditto.
4605         * libc/sys/rdos/Makefile.am, libc/sys/rdos/Makefile.in: New files.
4606         * libc/sys/rdos/aclocal.m4, libc/sys/rdos/chown.c: Ditto.
4607         * libc/sys/rdos/close.c, libc/sys/rdos/config.h: Ditto.
4608         * libc/sys/rdos/configure, libc/sys/rdos/configure.in: Ditto.
4609         * libc/sys/rdos/crt0.S, libc/sys/rdos/execve.c: Ditto.
4610         * libc/sys/rdos/fork.c, libc/sys/rdos/fstat.c: Ditto.
4611         * libc/sys/rdos/getenv.c, libc/sys/rdos/getpid.c: Ditto.
4612         * libc/sys/rdos/gettod.c, libc/sys/rdos/isatty.c: Ditto.
4613         * libc/sys/rdos/kill.c, libc/sys/rdos/link.c: Ditto.
4614         * libc/sys/rdos/lseek.c, libc/sys/rdos/open.c: Ditto.
4615         * libc/sys/rdos/rdos.S, libc/sys/rdos/rdos.h: Ditto.
4616         * libc/sys/rdos/rdoshelp.c, libc/sys/rdos/read.c: Ditto.
4617         * libc/sys/rdos/readlink.c, libc/sys/rdos/sbrk.c: Ditto.
4618         * libc/sys/rdos/stat.c, libc/sys/rdos/symlink.c: Ditto.
4619         * libc/sys/rdos/times.c, libc/sys/rdos/unlink.c: Ditto.
4620         * libc/sys/rdos/user.def, libc/sys/rdos/wait.c: Ditto.
4621         * libc/sys/rdos/write.c: Ditto.
4622
4623 2006-01-24  Jeff Johnston  <jjohnstn@redhat.com>
4624
4625         * acinclude.m4: Add nodefine to AM_INIT_AUTOMAKE macro invocation
4626         so as not to define PACKAGE and VERSION in newlib.h.
4627         * aclocal.m4: Regenerated.
4628         * configure: Ditto.
4629         * newlib.hin: Ditto.
4630
4631 2006-01-20  Jeff Johnston  <jjohnstn@redhat.com>
4632
4633         * acconfig.h: New file to generate newlib.hin from.
4634         * newlib.hin: Regenerated.
4635         * stamp-h.in: Regenerated.
4636         * Makefile.am: Add ACLOCAL_AMFLAGS so aclocal can be
4637         called automatically.
4638         * Makefile.in: Regenerated.
4639         * acinclude.m4: Add proper comment for hack in previous change.
4640         * aclocal.m4 */aclocal.m4: Regenerated.
4641         * configure */configure: Regenerated.
4642
4643 2006-01-11  Jeff Johnston  <jjohnstn@redhat.com>
4644
4645         * acinclude.m4: Add hack to prevent INSTALL in subdirs
4646         from being set to "../".
4647         * Makefile.am: Pass INSTALL in AM_MAKEFLAGS.
4648         * aclocal.m4: Regenerated.
4649         * configure: Ditto.
4650         * Makefile.in: Ditto.
4651         * doc/aclocal.m4: Ditto.
4652         * doc/configure: Ditto.
4653         * iconvdata/aclocal.m4: Ditto.
4654         * iconvdata/configure: Ditto.
4655         * libc/*/aclocal.m4: Ditto.
4656         * libc/*/configure: Ditto.
4657         * libc/libc.texinfo: Ditto.
4658         * libm/*/aclocal.m4: Ditto.
4659         * libm/*/configure: Ditto.
4660
4661 2006-01-10  Eric Blake  <ebb9@byu.net>
4662
4663         * libc/stdio/freopen.c (_freopen_r): Fix use of oflags.
4664         * libc/stdio64/freopen64.c (_freopen64_r): Likewise.
4665
4666 2006-01-10  Jeff Johnston  <jjohnstn@redhat.com>
4667
4668         * libm/mathfp/s_frexp.c: Check for special values on
4669         the original input, not the manipulated output value.
4670         * libm/mathfp/sf_frexp.c: Ditto.
4671         * libm/mathfp/s_atangent.c: Don't use local value branch
4672         when checking for quadrant.
4673         * libm/mathfp/sf_atangent.c: Ditto.
4674
4675 2006-01-09  Jeff Johnston  <jjohnstn@redhat.com>
4676
4677         * libc/stdio/freopen.c: Switch to use isatty instead of _isatty.
4678         * libc/stdio64/freopen64.c: Ditto.
4679
4680 2006-01-09  Eric Blake  <ebb9@byu.net>
4681
4682         * libc/stdio/freopen.c (_freopen_r): Accept NULL filename.
4683         * libc/stdio64/freopen64.c (_freopen64_r): Likewise.
4684
4685 2006-01-06  Jeff Johnston  <jjohnstn@redhat.com>
4686
4687         * libc/sys/linux/include/getopt.h: Add macros needed by
4688         new version of getopt.c in libc/stdlib.
4689
4690 2006-01-04  Gregory Pietsch  <gpietsch@comcast.net>
4691
4692         * libc/stdlib/getopt.c: Replaced with version
4693         that adds getopt_long and getopt_long_only support.
4694         * libc/include/getopt.h: New file.
4695
4696 2005-12-16  Jeff Johnston  <jjohnstn@redhat.com>
4697
4698         * NEWS: Update with 1.14.0 info.
4699         * README: Ditto.
4700         * acinclude.m4: Change version number to 1.14.0.
4701         * aclocal.m4: Regenerated.
4702         * configure: Ditto.
4703         * doc/aclocal.m4: Ditto.
4704         * doc/configure: Ditto.
4705         * libc/*/aclocal.m4: Ditto.
4706         * libc/*/configure: Ditto.
4707         * libc/libc.texinfo: Ditto.
4708         * libm/*/aclocal.m4: Ditto.
4709         * libm/*/configure: Ditto.
4710         * libm/libm.texinfo: Ditto.
4711         * libc/sys/linux/shared.ld: Add VERS_1.14.
4712
4713 2005-12-16  Jeff Johnston  <jjohnstn@redhat.com>
4714
4715         * libc/sys/linux/sys/stat.h: Change *stat64 prototypes to
4716         take a pointer to struct stat64 rather than struct stat.
4717
4718 2005-12-16  Ralf Corsepius <ralf.corsepius@rtems.org>
4719
4720         * libc/include/stdint.h: Prefer long over int for int32_t.
4721         Use __have_long32 to set up int32_t.
4722         * libc/include/inttypes.h: Use "#if xxx" instead of "#ifdef xxx"
4723         (Sync with stdint.h).
4724
4725 2005-12-14  Corinna Vinschen  <corinna@vinschen.de>
4726
4727         * libc/include/sys/fcntl.h: Define O_SYNC unconditionally.  Fix
4728         typo in O_NDELAY comment.
4729
4730 2005-12-13  Nathan Sidwell  <nathan@codesourcery.com>
4731
4732         * libc/include/machine/ieeefp.h (__mt__): Renamed from __ms1__.
4733         * libc/include/machine/setjmp.h (__mt__): Likewise.
4734         * libc/machine/mt/setjmp.S: Rename ms1 reference to mt.
4735         * libc/machine/configure.in: Ditto.
4736
4737 2005-12-12  Nathan Sidwell  <nathan@codesourcery.com>
4738
4739         * configure.host: Replace ms1 arch with mt arch.
4740         * libc/machine/mt: Renamed from ms1 dir.
4741
4742 2005-12-08  Shaun Jackman  <sjackman@gmail.com>
4743
4744         * libc/include/sys/types.h: Remove the ifdef armour around
4745         standard POSIX types.
4746
4747 2005-12-06  Ralf Corsepius <ralf.corsepius@rtems.org>
4748
4749         * libc/sys/rtems/crt0.c: Add rtems_gxx_key_create,
4750         rtems_gxx_key_delete, rtems_gxx_getspecific,
4751         rtems_gxx_setspecific, rtems_gxx_mutex_trylock,
4752         rtems_gxx_recursive_mutex_init, rtems_gxx_recursive_mutex_lock,
4753         rtems_gxx_recursive_mutex_trylock, rtems_gxx_recursive_mutex_unlock.
4754
4755 2005-12-05  Christopher Faylor  <cgf@timesys.com>
4756
4757         * libc/include/stdlib.h: Move cygwin declarations to cygwin-specific
4758         file.  Declare unsetenv and _unsetenv_r when not cygwin.
4759
4760 2005-11-18  Jeff Johnston  <jjohnstn@redhat.com>
4761
4762         * libc/time/strptime.c (strptime): Don't abort for %c and %Z.
4763         Treat %c as "%a %b %e %H:%M:%S %Y" and ignore %Z.
4764
4765 2005-11-18  Christopher Faylor  <cgf@timesys.com>
4766
4767         * include/sys/time.h: Move more cygwin stuff to cygwin-specific header.
4768
4769 2005-11-18  Christopher Faylor  <cgf@timesys.com>
4770
4771         * include/time.h: Remove more cygwin-specific stuff.
4772
4773 2005-11-18  Christopher Faylor  <cgf@timesys.com>
4774
4775         * include/time.h: Move cygwin declarations to cygwin-specific header.
4776         * include/sys/time.h: Rename cygwin include to "sys_time.h".
4777
4778 2005-11-17  Jeff Johnston  <jjohnstn@redhat.com>
4779
4780         * libc/sys/linux/dl/dl-local.h: New file based on old dlfcn.h
4781         in libc/sys/linux/include.
4782         * libc/sys/linux/dl/dlfcn.h: Moved to libc/sys/linux/include.
4783         * libc/sys/linux/dl/ldsodefs.h: Include dl-local.h instead of dlfcn.h.
4784         * libc/sys/linux/include/dlfcn.h: Replaced with dlfcn.h formerly
4785         in libc/sys/linux/dl.
4786
4787 2005-11-11  Christopher Faylor  <cgf@timesys.com>
4788
4789         * libc/include/sys/time.h: For cygwin, use general header rather than
4790         specific "sys/select.h".
4791
4792 2005-11-08  Tom Walsh  <tom@openhardware.net>
4793
4794         * libc/time/tzvars.c: New file.
4795         * libc/time/tzset_r.c: Moved globals into tzvars.c
4796         so other time functions needn't link in __tzset_r and its
4797         dependencies.
4798         * libc/time/Makefile.am: Add the new file.
4799         * libc/time/Makefile.in: Regenerated.
4800
4801 2005-11-08  Christopher Faylor  <cgf@timesys.com>
4802
4803         * libc/include/string.h: Add cygwin-specific function declaration.
4804
4805 2005-11-07  Corinna Vinschen  <corinna@vinschen.de>
4806
4807         * libc/include/ieeefp.h: Add C++ guards.
4808
4809 2005-11-03  Jeff Johnston  <jjohnstn@redhat.com>
4810
4811         * libc/unix/getcwd.c: Don't use non-reentrant syscall names.
4812         * libc/unix/getlogin.c: Ditto.
4813         * libc/unix/getpass.c: Ditto.
4814         * libc/unix/getut.c: Ditto.
4815         * libc/unix/ttyname.c: Ditto.
4816
4817 2005-11-03  Shaun Jackman  <sjackman@gmail.com>
4818
4819         * libc/include/sys/unistd.h (readlink, symlink): Provide these
4820         prototypes by default.
4821         * libc/sys/linux/include/unistd.h (readlink): Remove this
4822         prototype.
4823         * libc/sys/linux/sys/unistd.h (readlink, symlink): New
4824         prototypes.
4825
4826 2005-11-01  Ralf Corsepius <ralf.corsepius@rtems.org>
4827
4828         * libc/include/stdint.h: Cleanup #if vs. #ifdef.
4829
4830 2005-10-31  Darin Johnson  <darin@usa.net>
4831
4832         * libm/mathfp/s_mathcnst.c: Fix endian-ness check to be
4833         correct for constants.
4834
4835 2005-10-28  Bob Wilson  <bob.wilson@acm.org>
4836
4837         * libc/stdio/siprintf.c: Wrap long lines in ANSI_SYNOPSIS.
4838         * libc/stdio/siscanf.c: Likewise.
4839         * libc/stdio/sprintf.c: Likewise.
4840         * libc/stdio/sscanf.c: Likewise.
4841         * libc/stdio/vfprintf.c: Likewise.
4842         * libc/stdio/vfscanf.c: Likewise.
4843         * libc/stdio/viprintf.c: Likewise.
4844         * libc/stdio/viscanf.c: Likewise.
4845
4846 2005-10-28  Bob Wilson  <bob.wilson@acm.org>
4847
4848         * libc/sys.tex (Stubs): Format examples consistently.   Change sbrk
4849         example to use "_end" symbol instead of "end".  Change write  example
4850         to use "outbyte" instead of "writechar".
4851
4852 2005-10-28  Bob Wilson  <bob.wilson@acm.org>
4853
4854         * libc/ctype/ctype.tex: Use hyphens as appropriate, but not  otherwise.
4855         * libc/ctype/islower.c: Likewise.
4856         * libc/ctype/isupper.c: Likewise.
4857         * libc/ctype/iswalnum.c: Likewise.
4858         * libc/ctype/iswalpha.c: Likewise.
4859         * libc/ctype/iswblank.c: Likewise.
4860         * libc/ctype/iswcntrl.c: Likewise.
4861         * libc/ctype/iswdigit.c: Likewise.
4862         * libc/ctype/iswgraph.c: Likewise.
4863         * libc/ctype/iswlower.c: Likewise.
4864         * libc/ctype/iswprint.c: Likewise.
4865         * libc/ctype/iswpunct.c: Likewise.
4866         * libc/ctype/iswspace.c: Likewise.
4867         * libc/ctype/iswupper.c: Likewise.
4868         * libc/ctype/iswxdigit.c: Likewise.
4869         * libc/ctype/tolower.c: Likewise.
4870         * libc/ctype/toupper.c: Likewise.
4871         * libc/ctype/towctrans.c: Likewise.
4872         * libc/ctype/towlower.c: Likewise.
4873         * libc/ctype/towupper.c: Likewise.
4874         * libc/string/strcasecmp.c: Likewise.
4875         * libc/string/strcoll.c: Likewise.
4876         * libc/string/strings.tex: Likewise.
4877         * libc/string/strlwr.c: Likewise.
4878         * libc/string/strncasecmp.c: Likewise.
4879         * libc/string/strupr.c: Likewise.
4880         * libc/string/wcscoll.c: Likewise.
4881         * libc/string/wcslcat.c: Likewise.
4882         * libc/string/wcslcpy.c: Likewise.
4883         * libc/string/wcsnlen.c: Likewise.
4884         * libc/string/wcsstr.c: Likewise.
4885         * libc/string/wcstrings.tex: Likewise.
4886         * libc/string/wmemchr.c: Likewise.
4887         * libc/string/wmemcmp.c: Likewise.
4888         * libc/string/wmemcpy.c: Likewise.
4889         * libc/string/wmemmove.c: Likewise.
4890         * libc/string/wmemset.c: Likewise.
4891
4892 2005-10-28  Bob Wilson  <bob.wilson@acm.org>
4893
4894         * libc/misc/unctrl.c: Replace FUNCTION description.
4895         * libc/signal/signal.c: Remove documentation for raise and  _raise_r.
4896         * libc/stdio/getdelim.c: Fix spelling errors.
4897         * libc/stdio/getw.c: Put RETURNS on a separate line.  Fix  punctuation.
4898         * libc/stdio/putw.c: Likewise.
4899         * libc/stdlib/a64l.c: Fix formatting, spelling and  punctuation in
4900         documentation.
4901         * libc/stdlib/assert.c: Do not capitalize FUNCTION description.
4902         * libc/stdlib/efgcvt.c: Add spaces to FUNCTION description.
4903         * libc/stdlib/envlock.c: Use em-dash in FUNCTION description.
4904         * libc/stdlib/mlock.c: Likewise.
4905         * libc/stdlib/mstats.c: Likewise.
4906         * libc/time/tzlock.c: Likewise.
4907         * libc/stdlib/rand.c: Use "multi-threaded" and "thread-safe"  in NOTES.
4908         * libc/stdlib/rand48.c: Remove extra space in FUNCTION  description
4909         and hyphenate "pseudo-random".
4910         * libc/string/bcmp.c: Remove extra blank lines in  documentation.
4911         * libc/string/strncat.c: Likewise.
4912         * libc/string/memchr.c: Remove extra ">" character in  documentation.
4913         * libc/string/strcspn.c: Use "characters" instead of "chars".
4914         * libc/string/strpbrk.c: Likewise.
4915         * libc/string/strerror_r.c: Capitalize "GNU".
4916         * libc/string/strnlen.c: Likewise.
4917         * libc/string/strtok.c: Fix formatting, spelling and  punctuation in
4918         documentation.  Use "multi-threaded" and "thread-safe" in  NOTES.
4919         * libc/string/wcscat.c: Split PORTABILITY into two paragraphs.
4920         * libc/string/wcschr.c: Likewise.
4921         * libc/string/wcscmp.c: Likewise.
4922         * libc/string/wcscpy.c: Likewise.
4923         * libc/string/wcscspn.c: Likewise.
4924         * libc/string/wcslen.c: Likewise.
4925         * libc/string/wcsncat.c: Likewise.
4926         * libc/string/wcsncmp.c: Likewise.
4927         * libc/string/wcsncpy.c: Likewise.
4928         * libc/string/wcsnlen.c: Likewise.
4929         * libc/string/wcspbrk.c: Likewise.
4930         * libc/string/wcsrchr.c: Likewise.
4931         * libc/string/wcsspn.c: Likewise.
4932         * libc/string/wmemchr.c: Likewise.
4933         * libc/string/wmemcmp.c: Likewise.
4934         * libc/string/wmemcpy.c: Likewise.
4935         * libc/string/wmemset.c: Likewise.
4936         * libc/string/wmemmove.c: Likewise.  Also fix FUNCTION  description.
4937         * libc/string/wcswidth.c: Formatting and punctuation in  documentation.
4938         * libc/string/wcwidth.c: Likewise.
4939         * libm/common/s_modf.c: Remove extra period from documentation.
4940         * libm/math/s_isnan.c: Fix formatting, grammar and  punctuation in
4941         documentation.
4942         * libm/mathfp/s_isnan.c: Likewise.
4943         * libm/math/s_ldexp.c: Fix punctuation.
4944         * libm/mathfp/s_ldexp.c: Likewise.
4945         * libm/math/w_log.c: Likewise.
4946         * libm/mathfp/s_logarithm.c: Likewise.
4947         * libm/math/w_j0.c: Add spaces to FUNCTION description.
4948         * libm/mathfp/w_jn.c: Likewise.
4949
4950 2005-10-26  Shaun Jackman  <sjackman@gmail.com>
4951
4952         * libc/posix/scandir.c (scandir): Update the function
4953         prototype to match the header.
4954         * libc/sys/linux/linuxthreads/bits/libc-lock.h: Remove an
4955         extraneous #endif.
4956         * libc/sys/linux/sys/lock.h: Do not include
4957         machine/weakalias.h, since it's not used by this file.
4958
4959 2005-10-26  Jeff Johnston  <jjohnstn@redhat.com>
4960
4961         * libc/Makefile.am: Reorder SUBLIBS so machine and sys
4962         directories can override properly.
4963
4964 2005-10-20  Jeff Johnston  <jjohnstn@redhat.com>
4965
4966         * libc/include/math.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): When
4967         gcc is 3.3 or greater, use special gcc builtins.
4968
4969 2005-10-20  Corinna Vinschen <corinna@vinschen.de>
4970
4971         * libc/include/sys/time.h: Declare futimes and lutimes for Cygwin.
4972
4973 2005-10-18  Corinna Vinschen <corinna@vinschen.de>
4974
4975         * libc/include/sys/features.h: Define _POSIX_MEMLOCK_RANGE for Cygwin.
4976
4977 2005-10-14  Jeff Johnston  <jjohnstn@redhat.com>
4978
4979         * libc/include/math.h (HUGE_VALF, HUGE_VALL): New.
4980         * libm/common/Makefile.am: Add s_infconst.c support.
4981         * libm/common/Makefile.in: Regenerated.
4982         * libm/common/s_infconst.c: New file with float and
4983         long double infinity support added.
4984         * libm/math/Makefile.am: Remove s_infconst.c support.
4985         * libm/math/Makefile.in: Regenerated.
4986         * libm/math/s_infconst.c: Moved to common directory.
4987         * libm/mathfp/Makefile.am: Remove s_infconst.c support.
4988         * libm/mathfp/Makefile.in: Regenerated.
4989         * libm/mathfp/s_infconst.c: Moved to common directory.
4990
4991 2005-10-14  Jeff Johnston  <jjohnstn@redhat.com>
4992
4993         * libc/sys/linux/net/gethostbydns.c (dprintf): Rename to
4994         dbgprintf to prevent conflict with new dprintf function.
4995
4996 2005-10-14  Jeff Johnston  <jjohnstn@redhat.com>
4997
4998         * libc/stdio/vfprintf.c (_VFPRINTF_R): Fix up "inf" and
4999         "nan" processing for systems that have long double support.
5000
5001 2005-10-14  Jeff Johnston  <jjohnstn@redhat.com>
5002
5003         * libc/sys/linux/sys/types.h (int8_t): Add type.
5004
5005 2005-10-14  Bob Wilson  <bob.wilson@acm.org>
5006
5007         * libm/common/Makefile.am (doc): Do not append to $(TARGETDOC).
5008         * libm/common/Makefile.in: Regenerate.
5009         * libm/common/common.tex: Delete file.
5010         * libm/math/math.tex: Include .def files from common/.
5011         * libm/mathfp/mathfp.tex: Likewise.
5012
5013 2005-10-14  Bob Wilson  <bob.wilson@acm.org>
5014
5015         * libc/libc.texinfo (Top): Surround this node with @ifnottex
5016         instead of @ifinfo.  Update menu to add Introduction and match
5017         SUBDIRS order.
5018         (Introduction): New section.
5019
5020 2005-10-14  Bob Wilson  <bob.wilson@acm.org>
5021
5022         * libc/reent/reent.tex (Reentrancy): Replace "Cygnus C Library"
5023         with "Red Hat newlib C Library".
5024         * libc/sys.tex (Stubs): Likewise.
5025         * libm/math/math.tex (Math): Likewise.
5026         * libm/mathfp/mathfp.tex (Math): Likewise.
5027
5028 2005-10-11  Shaun Jackman  <sjackman@gmail.com>
5029
5030         * libc/include/stdio.h (dprintf): New declaration.
5031         (vdprintf): Ditto.
5032         * libc/stdio/Makefile.am (GENERAL_SOURCES): Add dprintf.c
5033         and vdprintf.c.
5034         * libc/stdio/Makefile.in: Regenerate.
5035         * libc/stdio/dprintf.c: New file.
5036         * libc/stdio/vdprintf.c: New file.
5037         * libc/stdio/stdio.tex (dprintf): New entry.
5038
5039 2005-10-11  David Weatherford  <weath@tensilica.com>
5040
5041         * libc/stdio/vfprintf.c (_VFPRINTF_R): Recognize 'F' format.
5042         Print "inf" and "nan" in lowercase for e/f/g formats and in
5043         uppercase for E/F/G formats.
5044
5045 2005-10-07  Bob Wilson  <bob.wilson@acm.org>
5046
5047         * libc/stdlib/mallocr.c (mALLOc, rEALLOCc, mEMALIGn): Set errno
5048         to ENOMEM on failure.
5049
5050 2005-10-06  Ralf Corsepius <ralf.corsepius@rtems.org>
5051
5052         * libc/include/stdint.h: Add [u]int_fast<N>_t types.
5053
5054 2005-10-04  Ralf Corsepius <ralf.corsepius@rtems.org>
5055
5056         * libc/include/stdint.h: Move magic to set __have_long* to the
5057         beginning.  Use #if __have* instead of #if defined(__have*).
5058         Minor typo fixes.
5059
5060 2005-10-04  James E Wilson  <wilson@specifix.com>
5061
5062         * libc/include/sys/dirent.h (_DIRENT_H_): Delete #include_next.  Add
5063         #error.
5064
5065 2005-10-03  Jeff Johnston  <jjohnstn@redhat.com>
5066
5067         * libc/sys/linux/include/stdint.h: Include <sys/types.h> and
5068         incorporate Ralf's change below.
5069
5070 2005-10-03  Ralf Corsepius <ralf.corsepius@rtems.org>
5071
5072         * libc/include/stdint.h:
5073         Use __INTMAX_TYPE__ to derive intmax_t.
5074         Use __UINTMAX_TYPE__ to derive uintmax_t.
5075         Fix minor typo.
5076
5077 2005-09-27  Ralf Corsepius <ralf.corsepius@rtems.org>
5078
5079         * libc/include/stdint.h: Correct __STDINT_EXP macro incorrectly
5080         handling GCC >= 4.
5081
5082 2005-09-20  Jeff Johnston  <jjohnstn@redhat.com>
5083
5084         * libc/sys/linux/include/stdint.h: Update to match functionality
5085         of generic newlib stdint.h.
5086
5087 2005-09-20  Jeff Johnston  <jjohnstn@redhat.com>
5088
5089         * libc/include/stdint.h (__EXP): Rename to __STDINT_EXP
5090         and do not #undef the macro after it is used.  Fix typos.
5091         Also change 64-bit constants to use the __have_long64 and
5092         __have_longlong64 flags to determine if long or long long
5093         constants should be used.
5094         * libc/include/inttypes.h: Include stddef.h to get wchar_t
5095         type defined.
5096
5097 2005-09-20  Shaun Jackman  <sjackman@gmail.com>
5098
5099         * libc/include/stdint.h: Fix typo in names of
5100         LEAST macros.
5101
5102 2005-09-20  Jeff Johnston  <jjohnstn@redhat.com>
5103
5104         * libc/sys/rtems/include/inttypes.h: Moved to...
5105         * libc/include/inttypes.h: ...here.
5106
5107 2005-09-19  Jeff Johnston  <jjohnstn@redhat.com>
5108
5109         * libc/sys/rtems/include/stdint.h: Moved to...
5110         * libc/include/stdint.h: ...here.
5111
5112 2005-09-08  Jeff Johnston  <jjohnstn@redhat.com>
5113
5114         * Makefile.am: Add include files under bits sub-directory.
5115         * Makefile.in: Regenerated.
5116         * libc/sys/linux/argp/argp-fs-xinl.c: Set __OPTIMIZE__ to
5117         actual value of 1 to be compatible with newer glibc headers.
5118         * libc/sys/linux/sys/cdefs.h: Fix to be compatible with newer
5119         glibc headers.
5120         * libc/sys/linux/sys/dirent.h: Ditto.
5121         * libc/sys/linux/argp/argp-xinl.c: Ditto.
5122         * libc/sys/linux/dl/dl-runtime.c: Make sure fixup and
5123         profile_fixup routines are marked used so they won't be
5124         optimized away.
5125         * libc/sys/linux/dl/dl-cache.c: Don't use weak_extern macro
5126         to mark functions as weak.
5127         * libc/sys/linux/dl/dl-open.c: Ditto.
5128         * libc/sys/linux/iconv/gconv_open.c: Fix to obey new gcc4
5129         rules about lvalues.
5130         * libc/sys/linux/iconv/gconv_simple.c: Ditto.
5131         * libc/sys/linux/linuxthreads/bits/libc-lock.h: Don't use
5132         weak_extern macro to mark functions as weak.  Instead always
5133         use #pragma weak.
5134         * iconvdata/jis0208.h: Fix to work with gcc4.
5135         * libc/sys/linux/dl/dl-load.c: Ditto.
5136         * libc/sys/linux/dl/dl-reloc.c: Ditto.
5137         * libc/sys/linux/dl/do-rel.h: Ditto.
5138         * libc/sys/linux/dl/dynamic-link.h: Ditto.
5139         * libc/sys/linux/include/ltdl.h: Ditto.
5140         * libc/sys/linux/machine/i386/dl-machine.h: Ditto.
5141         * libc/sys/linux/machine/i386/weakalias.h: Ditto.
5142         * libc/sys/linux/net/ns_ntoa.c: Ditto.
5143         * libc/sys/linux/bits/initspin.h: New file.
5144         * libc/sys/linux/bits/libc-lock.h: Ditto.
5145         * libc/sys/linux/bits/pthreadtypes.h: Ditto.
5146         * libc/sys/linux/bits/typesizes.h: Ditto.
5147
5148 2005-09-08  Eric Blake  <ebb9@byu.net>
5149
5150         * libc/argz/argz_insert.c (argz_insert): Don't die with EINVAL when
5151         before is NULL.
5152
5153 2005-09-08  Brian Dessent  <brian@dessent.net>
5154
5155         * sf_lrint.c (lrintf): Mask 'i0' correctly when extracting
5156         mantissa.
5157         * s_lrint.c: Ditto.
5158
5159 2005-09-02  Jeff Johnston  <jjohnstn@redhat.com>
5160
5161         * libc/include/stdio.h: Add prototype for viprintf.
5162
5163 2005-09-01  Jeff Johnston  <jjohnstn@redhat.com>
5164
5165         * libm/mathfp/s_pow.c: (pow): Change code so 0 raised to
5166         any positive power results in 0.
5167         * libm/mathfp/sf_pow.c (powf): Ditto.
5168
5169 2005-08-31  Paul Brook  <paul@codesourcery.com>
5170
5171         * configure.host: Set have_crt0 to no for Arm targts when not
5172         providing syscalls.  Set sys_dir=arm unconditionally.
5173         Default have_crt0 based on sys_dir.
5174         * configure.in: Use have_crt0.
5175         * libc/configure.in: Ditto.
5176         * libc/sys/configure.in: Ditto.
5177         * configure: Regenerate.
5178         * libc/configure: Regenerate.
5179         * libc/sys/configure: Regenerate.
5180         * libc/sys/arm/Makefile.am (lib_a_SOURCES): Add aeabi_atexit.c.
5181         Only build other files when providing syscalls.
5182         * libc/sys/arm/Makefile.in: Regenerate.
5183         * libc/sys/arm/aeabi_atexit.c: New file.
5184
5185 2005-08-26  Christopher Faylor  <cgf@timesys.com>
5186
5187         * libc/include/string.h: Revert previous change.
5188
5189 2005-08-25  Christopher Faylor  <cgf@timesys.com>
5190
5191         * libc/include/string.h: For Cygwin, Define strerror_r as per ISO C.
5192
5193 2005-08-22  Shaun Jackman  <sjackman@gmail.com>
5194
5195         * libc/include/_syslist.h: If HAVE_OPENDIR is not defined,
5196         define _opendir as opendir, _readdir as readdir, and
5197         _closedir as closedir so that the implementations in
5198         libc/posix will be used.
5199
5200 2005-08-10  DJ Delorie  <dj@redhat.com>
5201
5202         * MAINTAINERS (CPU Ports): Add CPU port maintainer section.
5203
5204 2005-08-10  Stephen Huw Clarke  <stephen.clarke@st.com>
5205
5206         * libm/common/sf_fmax.c: Fix to properly handle NaNs.
5207         * libm/common/s_max.c: Ditto.
5208         * libm/common/sf_fmin.c: Ditto.
5209         * libm/common/s_min.c: Ditto.
5210
5211 2005-08-10  DJ Delorie  <dj@redhat.com>
5212
5213         * configure.host: Add m32c support.
5214         * libc/include/machine/ieeefp.h: Likewise.
5215         * libc/include/machine/setjmp.h: Likewise.
5216         * libc/include/sys/config.h: Likewise.
5217         * libc/machine/m32c: New directory, Renesas R8C/M16C/M32C support.
5218         * libc/machine/m32c/aclocal.m4: New file.
5219         * libc/machine/m32c/configure: Ditto.
5220         * libc/machine/m32c/configure.in: Ditto.
5221         * libc/machine/m32c/Makefile.am: Ditto.
5222         * libc/machine/m32c/Makefile.in: Ditto.
5223         * libc/machine/m32c/setjmp.S: Ditto.
5224
5225 2005-08-02  Bob Wilson  <bob.wilson@acm.org>
5226
5227         * libm/math/ef_hypot.c (__ieee754_hypotf): Add missing exponent bias
5228         to the value for 2^126.
5229
5230 2005-07-26  Hans-Peter Nilsson  <hp@bitrange.com>
5231
5232         * libc/machine/cris/libcdtor.c (defaultors): Mark artificially as
5233         used.
5234
5235 2005-07-20  Bob Wilson  <bob.wilson@acm.org>
5236            Darin Petkov <darin@tensilica.com>
5237
5238        * libm/math/ef_atan2.c (pi, pi_lo): Use round-to-nearest value of pi.
5239
5240 2005-07-19  Paul Brook  <paul@codesourcery.com>
5241
5242         * libc/sys/arm/crt0.S: Ensure doubleword stack alignment.
5243
5244 2005-07-18  Joseph S. Myers  <joseph@codesourcery.com>
5245
5246         * testsuite/lib/checkoutput.exp (newlib_check_output): Use test
5247         names after PASS and FAIL which do not depend on source directory
5248         name or on whether test passed or failed.
5249         * testsuite/lib/passfail.exp (newlib_pass_fail): Likewise.
5250
5251 2005-07-08  Ola Hugosson   <Ola.Hugosson@anoto.com>
5252
5253         * libc/string/wcsspn.c (wcsspn): Add missing increment of q.
5254
5255 2005-07-07  Shaun Jackman  <sjackman@gmail.com>
5256
5257         * libc/unix/ttyname.c (ttyname): Avoid calling _closedir
5258         twice for the same directory. _closedir calls free, and freeing
5259         the same pointer twice may cause a crash.
5260
5261 2005-07-06  Aldy Hernandez  <aldyh@redhat.com>
5262
5263         * configure.host: Added entry for ms1*.
5264         * libc/include/machine/ieeefp.h: Handle ms1.
5265         * libc/include/machine/setjmp.h (_JBLEN): Define for ms1.
5266         * libc/machine/ms1/aclocal.m4: New.
5267         * libc/machine/ms1/configure: New.
5268         * libc/machine/ms1/configure.in: New.
5269         * libc/machine/ms1/Makefile.am: New.
5270         * libc/machine/ms1/Makefile.in: New.
5271         * libc/machine/ms1/setjmp.S: New.
5272
5273 2005-07-04  Mark Mitchell  <mark@codesourcery.com>
5274
5275         * Makefile.am (site.exp): Set tmpdir.
5276         * Makefile.in: Regenerated.
5277         * testsuite/lib/checkoutput.exp (newlib_check_output): Put
5278         executables in $tmpdir.
5279         * testsuite/lib/flags.exp (libgloss_link_flags): Use the original
5280         libgloss version if not running in the build directory.
5281         * testsuite/lib/newlib.exp (newlib_init): Put testglue.o in
5282         $tmpdir.
5283         * testsuite/lib/passfail.exp (newlib_pass_fail): Put executables
5284         in $tmpdir.
5285
5286 2005-06-28  Dave Korn  <dave.korn@artimi.com>
5287
5288         * libm/common/s_lrint.c (lrint):  Fix signed-vs-unsigned comparison
5289         and miscalculation caused by fp representation of zero.
5290         * libm/common/sf_lrint.c (lrintf):  Likewise.
5291
5292 2005-06-16  Christopher Faylor  <cgf@timesys.com>
5293
5294         * libc/stdio/vfprintf.c (cvt): Don't rely on pointer aliasing to
5295         determine characteristics of long double.  Use a union instead.
5296         * ldtoa.c (_ldtoa_r): Ditto.
5297         (_ldcheck): Ditto.
5298         (_strtold): Ditto.
5299         (union uconv): New union.
5300
5301 2005-06-03  Jeff Johnston  <jjohnstn@redhat.com>
5302
5303         * libc/stdlib/mallocr.c (MALLOC_COPY): Switch to use memmove
5304         instead of memcpy.
5305
5306 2005-05-12  Jeff Johnston  <jjohnstn@redhat.com>
5307
5308         * configure.host (mn10300-*): Add long long I/O support by default.
5309
5310 2005-05-12  Jeff Johnston  <jjohnstn@redhat.com>
5311
5312         * libc/sys/linux/getpwuid.c: Removed.
5313         * libc/sys/linux/getpwnam.c: Removed.
5314         * libc/sys/linux/getpwent.c: New file containing logic
5315         from files removed above.  This allows overriding of file
5316         in libc/unix.
5317         * libc/sys/linux/Makefile.am: Support changes above.
5318         * libc/sys/linux/Makefile.in: Regenerated.
5319
5320 2005-04-28  Jeff Johnston  <jjohnstn@redhat.com>
5321
5322         * libc/stdio/vfscanf.c (__svfscanf_r): Fix code thinko
5323         when checking for multiple flags.
5324
5325 2005-04-18  Hans-Peter Nilsson  <hp@axis.com>
5326
5327         * configure.host <cris-*-* | crisv32-*-*>: Set
5328         default_newlib_io_long_long="yes".
5329
5330 2005-04-08  Jeff Johnston  <jjohnstn@redhat.com>
5331
5332         * libc/include/libgen.h: New file.
5333
5334 2005-04-08  Shaun Jackman  <sjackman@gmail.com>
5335
5336         * libc/unix/Makefile.am: Add support for basename and dirname.
5337         * libc/unix/Makefile.in: Regenerated.
5338         * libc/unix/basename.c: New file.
5339         * libc/unix/dirname.c: New file.
5340
5341 2005-04-07  Shaun Jackman  <sjackman@gmail.com>
5342
5343         * libc/sys/linux/inode.c (lchown): New function.
5344
5345 2005-04-07  Shaun Jackman  <sjackman@gmail.com>
5346
5347         * libc/unix/Makefile.am (LIB_OBJS): Include all the ELIX objects if no
5348         ELIX level is defined.
5349         * libc/unix/Makefile.in: Regenerated.
5350
5351 2005-04-05  Dave Korn  <dave.korn@artimi.com>
5352
5353         * libc/stdio/vfscanf.c (__svfscanf_r): If an error occurs processing
5354         something that looks like a "NaN", put back the characters processed.
5355
5356 2005-04-01  Corinna Vinschen  <corinna@vinschen.de>
5357
5358         * libc/stdlib/strtod.c (_strtod_r): Never change s00.
5359
5360 2005-03-23  Christopher Faylor  <cgf@timesys.com>
5361
5362         * configure.host: For cygwin, redefine CC with cygwin include directory
5363         first to mimic the behavior of the top-level configury.  Move include
5364         directory out of newlib_cflags.
5365
5366 2005-03-22  Jeff Johnston  <jjohnstn@redhat.com>
5367
5368         * configure.host: For arc, set -DREENTRANT_SYSCALLS_PROVIDED flag on.
5369         * libc/sys/arc/syscalls.c: Change functions to use __errno_r rather
5370         than errno.
5371
5372 2005-03-22  Christopher Faylor  <cgf@timesys.com>
5373
5374         * libc/include/machine/_types.h: Make trivial change to comment to
5375         avoid a spurious warning from gcc.
5376
5377 2005-03-21  Nicholas Wourms  <nwourms@netscape.net>
5378
5379         * libc/stdio/vfprintf.c: Move newlib.h before _WANT_IO_POS_ARGS test,
5380         since _WANT_IO_POS_ARGS is now defined in there.  Remove duplicate
5381         reent.h include.
5382
5383 2005-03-18  Hans-Peter Nilsson  <hp@axis.com>
5384             Corinna Vinschen  <corinna@vinschen.de>
5385
5386         * libc/include/ctype.h: Remove invalid +1 offset from
5387         ctype macro references to __ctype_ptr.
5388         (_ctype_): Move declaration outside #ifndef __cplusplus.
5389
5390 2005-03-18  Corinna Vinschen  <corinna@vinschen.de>
5391
5392         * libc/include/machine/setjmp.h (sigsetjmp): Use GCC extension to
5393         evaluate first parameter only once.
5394         (siglongjmp): Ditto.
5395
5396 2005-03-17  Jeff Johnston  <jjohnstn@redhat.com>
5397
5398         * configure.in: Add new check to see if compiler supports
5399         aliasing of arrays and define _HAVE_ARRAY_ALIASING if true.
5400         * configure: Regenerated.
5401         * Makefile.in: Ditto.
5402         * newlib.hin: Add _HAVE_ARRAY_ALIASING.
5403         * libc/ctype/ctype_.c: Check for _HAVE_ARRAY_ALIASING before
5404         aliasing the _ctype_ array to _ctype_b.
5405         * libc/include/ctype.h: Change macros to use __ctype_ptr.  Mark
5406         _ctype_ as deprecated.
5407
5408 2005-03-17  Hans-Peter Nilsson  <hp@axis.com>
5409
5410         * configure.host (newlib_cflags) <cris-*-*, crisv32-*-*>: Add
5411         -DCOMPACT_CTYPE.
5412
5413 2005-03-06  Ralf Corsepious  <ralf.corsepius@rtems.org>
5414
5415         * libc/sys/rtems/include/inttypes.h: New file.
5416         * libc/sys/rtems/include/stdint.h: Ditto.
5417
5418 2005-03-06  Ralf Corsepious  <ralf.corsepius@rtems.org>
5419
5420         * libc/string/memcmp.c: Fix to avoid pointer signedness warning.
5421
5422 2005-03-06  Ralf Corsepious  <ralf.corsepius@rtems.org>
5423
5424         * libc/include/machine/_types.h: New file.
5425         * libc/include/sys/types.h: Do not check for __rtems__
5426         when including <machine/_types.h>.  Remove some redundant
5427         declarations now that <machine/_types.h> is included.
5428         * libc/sys/rtems/machine/_types.h: Removed.  Replaced with
5429         shared header file.
5430
5431 2005-02-25  Ralf Corsepious  <ralf.corsepius@rtems.org>
5432
5433         * libm/common/fdlibm.h (FLT_UWORD_MAX, FLT_UWORD_HALF_MAX): Add
5434         L qualifier for these long constants.
5435
5436 2005-02-25  Eric Blake  <ebb9@byu.net>
5437
5438         * libc/include/time.h (__tzrule_struct): Make offset long, since
5439         a 16-bit int overflows on a 12-hour offset.
5440         * libc/sys/linux/include/time.h: Ditto.
5441         * libc/time/mktime.c (mktime): Use new type of __tzrule.offset.
5442         * libc/time/mktm_r.c: Ditto.
5443         * libc/time/gettzinfo.c: Ditto.
5444         * libc/time/strftime.c (strftime): Fix '%x' to deal with negative
5445         years.  Fix '%z' to use long, not int.
5446
5447 2005-02-24  Ralf Corsepious  <ralf.corsepius@rtems.org>
5448
5449         * libm/common/s_fpclassify.c: Use __uint32_t instead of int to
5450         manipulate float values in integer form.
5451         * libm/common/sf_round.c: Ditto.
5452
5453 2005-02-24  Ralf Corsepious  <ralf.corsepius@rtems.org>
5454
5455         * libc/include/sys/types.h [__rtems__]: Include new
5456         header file machine/_types.h.
5457         * libc/include/machine/types.h: Ditto.
5458         * libc/sys/rtems/machine/_types.h: New file.
5459
5460 2005-02-23  Corinna Vinschen  <corinna@vinschen.de>
5461
5462         * libc/include/time.h (_timezone): Change to long also for Cygwin.
5463         (timezone): Drop cast from definition.
5464
5465 2005-02-23  Jeff Johnston  <jjohnstn@redhat.com>
5466
5467         * libc/include/time.h [!CYGWIN](_timezone): Change to long.
5468         (__tzrule_type, __tzinfo_type): New types.
5469         (__gettzinfo): New function.
5470         * libc/sys/linux/include/time.h: Ditto.
5471         * libc/time/Makefile.am: Add gettzinfo.c.
5472         * libc/time/Makefile.in: Regenerated.
5473         * libc/time/local.h: Moved __tzrule_type to time.h.
5474         * libc/time/mktime.c: Call __gettzinfo to reference
5475         __tznorth, __tzyear, and __tzrule array.
5476         * libc/time/mktm_r.c: Ditto.
5477         * libc/time/strftime.c: Ditto.
5478         * libc/time/tzset_r.c: Ditto.  Also remove definition
5479         of __tzrule which is now in gettzinfo.c.  Change _timezone
5480         references to not cast to time_t.
5481         * libc/time/gettzinfo.c: New file.
5482
5483 2005-02-23  Corinna Vinschen  <corinna@vinschen.de>
5484
5485         * libc/include/sys/unistd.h: Define getpeereid for Cygwin.
5486
5487 2005-02-22  Corinna Vinschen  <corinna@vinschen.de>
5488
5489         * libc/include/sys/unistd.h: Define fdatasync also for Cygwin.
5490
5491 2005-02-16  Eric Blake  <ebb9@byu.net>
5492
5493         * libc/time/time.tex: Improve the documentation.
5494         * libc/time/strftime.c: Improve the documentation.
5495         (iso_year_adjust): New helper function.
5496         (strftime): Simplify '%E' and '%O'. Change '%c' to use
5497         recursion. Fix '%C', '%y', and '%Y' to deal with years with more
5498         than 4 characters.  Combine '%d' and '%e'. Implement '%D', '%F',
5499         '%g', '%G', '%n', '%R', '%t', '%T', '%u', '%V', '%X', and '%z'.
5500         Avoid core dumps on valid inputs (maxsize == 0, or
5501         tim_p->tm_isdst > 1).
5502
5503 2005-02-08  Corinna Vinschen  <corinna@vinschen.de>
5504
5505         * libc/include/pwd.h (struct passwd): Change pw_uid and pw_gid
5506         members to uid_t and gid_t according to SUSv3.
5507         * libc/include/sys/time.h (utimes):  Change second parameter
5508         to const according to SUSv3.
5509
5510 2005-02-07  Antony King  <antony.king@st.com>
5511
5512         * libc/stdio/clearerr.c (clearerr): Ensure CHECK_INIT() is
5513         called before _flockfile to prevent lock object use before
5514         initialisation. _REENT_SMALL_CHECK_INIT() and CHECK_INIT()
5515         take a struct _reent * instead of a FILE *.
5516         * libc/stdio/fclose.c (_fclose_r): Ditto.
5517         * libc/stdio/feof.c (feof): Ditto.
5518         * libc/stdio/ferror.c (ferror): Ditto.
5519         * libc/stdio/fflush.c (fflush): Ditto.
5520         * libc/stdio/fgetc.c (fgetc): Ditto.
5521         * libc/stdio/fgets.c (fgets): Ditto.
5522         * libc/stdio/fileno.c (fileno): Ditto.
5523         * libc/stdio/fputc.c (fputc): Ditto.
5524         * libc/stdio/fputs.c (fputs): Ditto.
5525         * libc/stdio/fread.c (fread): Ditto.
5526         * libc/stdio/freopen.c (_freopen_r): Ditto.
5527         * libc/stdio/fseek.c (_fseek_r): Ditto.
5528         * libc/stdio/ftell.c (_ftell_r): Ditto.
5529         * libc/stdio/fwrite.c (fwrite): Ditto.
5530         * libc/stdio/getc.c (getc): Ditto.
5531         * libc/stdio/getdelim.c (__getdelim): Ditto.
5532         * libc/stdio/putc.c (putc): Ditto.
5533         * libc/stdio/setvbuf.c (setvbuf): Ditto.
5534         * libc/stdio/ungetc.c (_ungetc_r): Ditto.
5535         * libc/stdio/vfprintf.c (_VFPRINTF_R): Ditto.
5536         * libc/stdio64/freopen64.c (_freopen64_r): Ditto.
5537         * libc/stdio64/fseeko64.c (_fseeko64_r): Ditto.
5538         * libc/stdio64/ftello64.c (_ftello64_r): Ditto.
5539         * libc/stdio/local.h (CHECK_INIT): Argument is now a struct
5540         _reent * instead of a FILE * and so replace incorrect use of
5541         _REENT with argument.
5542         * libc/sys/arm/syscalls.c (CHECK_INIT): Ditto.
5543         * libc/stdio/getchar.c (getchar): _REENT_SMALL_CHECK_INIT() and
5544         CHECK_INIT() take a struct _reent * instead of a FILE *.
5545         * libc/stdio/iprintf.c (iprintf, _iprintf_r): Ditto.
5546         * libc/stdio/iscanf.c (iscanf, _iscanf_r): Ditto.
5547         * libc/stdio/perror.c (perror): Ditto.
5548         * libc/stdio/printf.c (printf, _printf_r): Ditto.
5549         * libc/stdio/putchar.c (putchar): Ditto.
5550         * libc/stdio/puts.c (puts): Ditto.
5551         * libc/stdio/refill.c (__srefill): Ditto.
5552         * libc/stdio/scanf.c (scanf, _scanf_r): Ditto.
5553         * libc/stdio/vfscanf.c (VFSCANF, _VFSCANF_R): Ditto.
5554         * libc/stdio/viprintf.c (viprintf, _viprintf_r): Ditto.
5555         * libc/stdio/viscanf.c (viscanf, _viscanf_r): Ditto.
5556         * libc/stdio/vprintf.c (vprintf, _vprintf_r): Ditto.
5557         * libc/stdio/vscanf.c (vscanf, _vscanf_r): Ditto.
5558         * libc/stdio/wbuf.c (__swbuf): Ditto.
5559         * libc/stdio/wsetup.c (__swsetup): Ditto.
5560         * libc/stdlib/mallocr.c (malloc_stats): Ditto.
5561         * libc/stdlib/mstats.c (_mstats_r): Ditto.
5562         * libc/include/sys/reent.h (_REENT_SMALL_CHECK_INIT): Ditto.
5563         * libc/machine/powerpc/vfscanf.c (vfscanf): Ditto.
5564         * libc/stdio/fgetpos.c (_fgetpos_r): Removed unnecessary calls
5565         to _flockfile and _funlockfile; rely on locking in _ftell_r.
5566         * libc/stdio64/fgetpos64.c (_fgetpos64_r): Ditto (_ftello64_r).
5567         * libc/machine/powerpc/vfprintf.c (__sbprintf): Removed unnecessary
5568         initialision of _data field in FILE structure.
5569         * libc/machine/powerpc/vfprintf.c (VFPRINTF): Added CHECK_INIT() call.
5570
5571 2005-02-07  Jeff Johnston  <jjohnstn@redhat.com>
5572
5573         * libc/stdio/findfp.c (__sinit): Protect with new lock.
5574         (__sinit_lock): New lock.
5575         (__sinit_lock_acquire, __sinit_lock_release): New functions.
5576         * libc/stdio/local.h: Add reference to new __sinit locking
5577         functions.
5578
5579 2005-02-07  Jeff Johnston  <jjohnstn@redhat.com>
5580
5581         * libc/include/math.h (isfinite, isnormal, isunordered): Change
5582         input variable names to avoid mixups with nesting macros.
5583
5584 2005-01-27  Hans-Peter Nilsson  <hp@axis.com>
5585
5586         * configure.host: Add support for cris-*-* and crisv32-*-*.
5587         * libc/include/machine/ieeefp.h: Ditto.
5588         * libc/include/machine/setjmp.h: Ditto.
5589         * libc/machine/cris/configure.in, libc/machine/cris/Makefile.am,
5590         libc/machine/cris/libcdtor.c, libc/machine/cris/setjmp.c,
5591         libc/machine/cris/memmove.c, libc/machine/cris/memcpy.c,
5592         libc/machine/cris/memset.c, libc/machine/cris/include/pthread.h,
5593         libc/machine/cris/sys/signal.h, libc/machine/cris/sys/fcntl.h,
5594         libc/machine/cris/sys/errno.h, libc/machine/cris/aclocal.m4,
5595         libc/machine/cris/configure, libc/machine/cris/Makefile.in: New
5596         files.
5597
5598 2005-01-27  Hans-Peter Nilsson  <hp@axis.com>
5599
5600         * testsuite/newlib.string/memmove1.c: New test.
5601
5602 2005-01-27  Hans-Peter Nilsson  <hp@axis.com>
5603
5604         * testsuite/include/check.h: Include stdlib.h.
5605
5606 2005-01-27  Hans-Peter Nilsson  <hp@axis.com>
5607
5608         * Makefile.am (stmp-targ-include): Support include header files
5609         from machine directories.
5610         (install-data-local): Ditto.
5611         * Makefile.in: Regenerate.
5612
5613 2005-01-24  Jeff Johnston  <jjohnstn@redhat.com>
5614
5615         * libc/include/string.h: Remove Linux-specific declaration of
5616         strsignal and add #include <sys/string.h>.
5617         * libc/include/sys/string.h: New file.
5618         * libc/include/sys/linux/sys/string.h: New file with strsignal
5619         declaration deleted above.
5620
5621 2005-01-20  Jeff Johnston  <jjohnstn@redhat.com>
5622
5623         * libc/time/strftime.c (strftime): Change %r and %x to be compliant
5624         to POSIX standard for "C" locale.  Allow %E and %O modifiers
5625         to be ignored as long as they precede valid specifiers according
5626         to POSIX.
5627
5628 2005-01-19  Shaun Jackman  <sjackman@gmail.com>
5629
5630         * libc/stdlib/setenv_r.c (_setenv_r): Call tzset() if the TZ
5631         environment variable is set.
5632
5633 2005-01-19  Shaun Jackman  <sjackman@gmail.com>
5634
5635         * tzset_r.c (_tzname): Add a comma.
5636
5637 2005-01-18  Aldy Hernandez  <aldyh@redhat.com>
5638
5639         * libc/machine/powerpc/vfprintf.c: Use _REENT when calling
5640         _VFPRINTF_R.
5641
5642 2005-01-07  Paul Brook  <paul@codesourcery.com>
5643
5644         * configure.in: Add test for .init_array.
5645         * configure: Regenerate.
5646         * newlib.hin: Add HAVE_INITFINI_ARRAY.
5647         * libc/misc/Makefile.am: Add init.c
5648         * libc/misc/Makefile.in: Regenerate.
5649         * libc/misc/init.c: New file.
5650         * libc/sys/arm/crt0.S: Call __libc_{init,fini}_array instead of
5651         _init/_fini if they exist.
5652
5653 2005-01-06  Jeff Johnston  <jjohnstn@redhat.com>
5654
5655         * libc/stdlib/strtod.c (_strtod_r): Add NaN support.
5656         * (strtof): Ditto.
5657         * libc/stdio/vfscanf.c (__svfscanf_r): Ditto.
5658         * Makefile.am (MATHOBJS_IN_LIBC): Add s_nan and sf_nan
5659         functions for use by strtod and strtof.
5660         * Makefile.in: Regenerated.
5661
5662 2005-01-06  Hans-Peter Nilsson  <hp@axis.com>
5663
5664         * libc/stdio/ftell.c (ftell_r): Add parenthesis for __SWR
5665         bit-test in combination with NULL test.
5666
5667 2005-01-06  Hans-Peter Nilsson  <hp@axis.com>
5668
5669         * README: Fix typo of LGPL.  Change "license" to "copyright".
5670
5671 2004-12-17  Jeff Johnston  <jjohnstn@redhat.com>
5672
5673         * NEWS: Update with 1.13.0 info.
5674         * README: Ditto.
5675         * acinclude.m4: Change version number to 1.13.0.
5676         * aclocal.m4: Regenerated.
5677         * configure: Ditto.
5678         * doc/aclocal.m4: Ditto.
5679         * doc/configure: Ditto.
5680         * libc/*/aclocal.m4: Ditto.
5681         * libc/*/configure: Ditto.
5682         * libc/libc.texinfo: Ditto.
5683         * libm/*/aclocal.m4: Ditto.
5684         * libm/*/configure: Ditto.
5685         * libm/libm.texinfo: Ditto.
5686         * libc/sys/linux/shared.ld: Add VERS_1.13.
5687
5688 2004-12-17  Christian Groessler  <chris@groessler.org>
5689
5690         * libc/machine/z8k/memcmp.S: New file.
5691         * libc/machine/z8k/memcpy.S: Ditto.
5692         * libc/machine/z8k/memmove.S: Ditto.
5693         * libc/machine/z8k/memset.S: Ditto.
5694         * libc/machine/z8k/Makefile.am: Add new files.
5695         * libc/machine/z8k/Makefile.in: Regenerated.
5696         * libc/machine/z8k/setjmp.S: Fix indirect register usage in Z8002
5697         part.  Implement Z8002 stdcall version.
5698
5699 2004-12-13  Jeff Johnston  <jjohnstn@redhat.com>
5700
5701         * libc/stdio/fread.c (fread): For unbuffered I/O, attempt
5702         a low-level read if we don't get the full amount of bytes so
5703         EOF or error flags will be set.
5704
5705 2004-12-09  Alex Mogilnikov  <alx@intellectronika.ru>
5706
5707         * libc/time/tzset_r (_tzset_r): Properly skip over
5708         '/' when it is detected.
5709
5710 2004-12-08  Alex Mogilnikov  <alx@intellectronika.ru>
5711
5712         * libc/time/tzset_r (_tzset_r): Fix loop.
5713
5714 2004-12-08  Alex Mogilnikov  <alx@intellectronika.ru>
5715
5716         * libc/time/mktm_r (_mktm_r): Fix overflow calculation for
5717         m_day.
5718         (__tzcalc_limits): Fix reference to month array to be zero-based.
5719
5720 2004-12-07  Jeff Johnston  <jjohnstn@redhat.com>
5721
5722         * libc/sys/linux/sys/unistd.h: Add prototypes for ftruncate, truncate,
5723         and usleep.
5724
5725 2004-12-03  Jeff Johnston  <jjohnstn@redhat.com>
5726
5727         * Makefile.am (libc_la_LDFLAGS): Add -lgcc to handle any
5728         libgcc dependencies.
5729         (libm_la_LDFLAGS): Ditto.
5730         * Makefile.in: Regenerated.
5731
5732 2004-12-03  Shaun Jackman  <sjackman@gmail.com>
5733
5734         * libc/sys/linux/linuxthreads/Makefile.am (install-data-local): Fix
5735         our link to use readlink so as to preserve any relative link created
5736         by install-toollibLIBRARIES.
5737         * libc/sys/linux/linuxthreads/Makefile.in: Regenerated.
5738
5739 2004-12-02  Shaun Jackman  <sjackman@gmail.com>
5740
5741         * libc/sys/linux/stdlib/glob.c: Include <sys/types.h> which defines
5742         time_t before including sys/stat.h, which uses it.
5743         * libc/sys/linux/sys/stat.h: Include <sys/types.h> and
5744         <linux/time.h> just prior to definition of __KERNEL__ so as to
5745         allow building on Debian Linux where otherwise, mktime would
5746         be redefined.
5747
5748 2004-11-26  Paul Brook  <paul@codesourcery.com>
5749
5750         * libc/sys/arm/crt0.S (_start): Add .cantunwind annotation.
5751
5752 2004-11-24  Jeff Johnston  <jjohnstn@redhat.com>
5753
5754         * libc/include/stdlib.h (putenv, _putenv_r): Change to remove
5755         const for value string parameter to match Single Unix and glibc.
5756         * libc/stdlib/putenv.c: Ditto.
5757         * libc/stdlib/putenv_r.c: Ditto.
5758
5759 2004-11-24  Jeff Johnston  <jjohnstn@redhat.com>
5760
5761         * libc/stdio/Makefile.am: Fix missing vfscanf.
5762         * libc/stdio/Makefile.in: Regenerated.
5763
5764 2004-11-23  Jeff Johnston  <jjohnstn@redhat.com>
5765
5766         * libc/include/stdio.h: Add new iprintf and iscanf variants.  Also
5767         do some reordering.
5768         * libc/machine/powerpc/vfscanf.c: Remove __sccl function.
5769         * libc/stdio/Makefile.am: Add support for new iprintf and iscanf
5770         family functions.
5771         * libc/stdio/Makefile.in: Regenerated.
5772         * libc/stdio/fiprintf.c: Remove doc to siprintf.c.
5773         * libc/stdio/iprintf.c: Ditto.
5774         * libc/stdio/local.h (__svfiscanf_r): New prototype.
5775         * libc/stdio/siprintf.c: Add docs for various iprintf family functions.
5776         * libc/stdio/sniprintf.c: Move docs to siprintf.c.
5777         * libc/stdio/stdio.tex: Add new functions.
5778         * libc/stdio/vfscanf.c: Split out __sccl function to separate
5779         file and add special name defines so this file can be used
5780         to build vfiscanf.o.
5781         * libc/stdio/asiprintf.c: New file.
5782         * libc/stdio/fiscanf.c: Ditto.
5783         * libc/stdio/iscanf.c: Ditto.
5784         * libc/stdio/sccl.c: Ditto.
5785         * libc/stdio/siscanf.c: Ditto.
5786         * libc/stdio/vasiprintf.c: Ditto.
5787         * libc/stdio/viprintf.c: Ditto.
5788         * libc/stdio/viscanf.c: Ditto.
5789         * libc/stdio/vsiprintf.c: Ditto.
5790         * libc/stdio/vsiscanf.c: Ditto.
5791         * libc/stdio/vsniprintf.c: Ditto.
5792
5793 2004-11-19  Shaun Jackman  <sjackman@gmail.com>
5794
5795         * libc/include/stdio.h: Add sniprintf.
5796         * libc/stdio/Makefile.am: Add sniprintf.c.
5797         * libc/stdio/Makefile.in: Regenerated.
5798         * libc/stdio/sniprintf.c: New file.
5799         * libc/stdio/stdio.tex: Add sniprintf.
5800
5801 2004-11-17  Christopher Faylor  <cgf@timesys.com>
5802
5803         * libc/stdio/refill.c (__srefill): Try again after EOF on Cygwin.  Clear
5804         EOF flag if successful.
5805
5806 2004-10-28  Christopher Faylor  <cgf@timesys.com>
5807
5808         * libc/include/sys/signal.h: Move <signal.h> include to bottom of file
5809         so that all relevant definitions have been performed for use in the
5810         include.
5811
5812 2004-10-26  Jason Tishler  <jason@tishler.net>
5813
5814         * libc/stdio/fread.c (fread): Fix return value for unbuffered
5815         fread.
5816
5817 2004-10-25  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
5818
5819         * libc/include/machine/setjmp.h: Add AVR support.
5820         * libc/sys/rtems/crt0.S [__AVR__]: Add __stack.
5821
5822 2004-10-08  Jeff Johnston  <jjohnstn@redhat.com>
5823
5824         * libc/include/sys/signal.h: If <signal.h> didn't include
5825         this header file, include <signal.h> to account for
5826         applications that take advantage that the two header
5827         files are the same in glibc.
5828
5829 2004-10-05  Tomer Levi  <Tomer.Levi@nsc.com>
5830
5831         * configure.host: Add support for crx.
5832         * libc/include/machine/ieeefp.h: Ditto.
5833         * libc/include/machine/setjmp.h: Ditto.
5834         * libc/machine/crx/Makefile.am: New file.
5835         * libc/machine/crx/configure.in: Ditto.
5836         * libc/machine/crx/setjmp.S: Ditto.
5837         * libc/machine/crx/getenv.c: Ditto.
5838         * libc/machine/crx/aclocal.m4: Generate.
5839         * libc/machine/crx/configure: Ditto.
5840         * libc/machine/crx/Makefile.in: Ditto.
5841         * libc/machine/crx/sys/asm.h: New file.
5842         * libc/machine/crx/sys/libh.h: Ditto.
5843         * libc/machine/crx/sys/syscall.h: Ditto.
5844
5845 2004-10-05  Jeff Johnston  <jjohnstn@redhat.com>
5846
5847         * Makefile.am (stmp-targ-include): Support sys header files
5848         from machine directories.
5849         * Makefile.in: Regenerated.
5850
5851 2004-10-04  Jeff Johnston  <jjohnstn@redhat.com>
5852
5853         * libc/stdio/vfscanf.c (__svfscanf_r): For int conversions,
5854         count skipped zero characters as part of the nread count for %n.
5855         * libc/machine/powerpc/vfscanf.c: Ditto.
5856
5857 2004-09-24  Jeff Johnston  <jjohnstn@redhat.com>
5858
5859         * libc/stdio/local.h: Include <stdlib.h>.
5860
5861 2004-09-24  Corinna Vinschen  <corinna@vinschen.de>
5862
5863         * libc/stdio/fread.c (fread): Include <malloc.h>.
5864
5865 2004-09-22  Jeff Johnston  <jjohnstn@redhat.com>
5866
5867         * libc/stdio/fread.c (fread):  For non-space-optimized case,
5868         add special code for unbuffered files to use user buffer and
5869         only require one low-level system read.
5870
5871 2004-09-21  Ian Lance Taylor  <ian@wasabisystems.com>
5872
5873         * libc/machine/xscale/setjmp.S: New file, copied from
5874         libc/machine/arm/setjmp.S.
5875         * libc/machine/xscale/Makefile.am (lib_a_SOURCES): Add setjmp.S.
5876         * libc/machine/xscale/Makefile.in: Regenerate.
5877
5878 2004-09-16  Antony King  <antony.king@st.com>
5879
5880         * libc/include/sys/lock.h: Replaced empty {} with (0) to conform
5881         with locking API.
5882         * libc/include/sys/stdio.h: (_flockfile)[!_SINGLE_THREAD]: Add
5883         check for__SSTR in _flags and if set, skip lock request.
5884         (_funlockfile)[!SINGLE_THREAD]: Ditto.
5885         * libc/stdio/local.h (CHECK_INIT): Added check that _REENT is
5886         not NULL.
5887         * libc/stdio/siprintf.c (siprintf, _siprintf_r): Added missing
5888         initialisation of _file to -1 in local FILE.
5889         * libc/stdio/snprintf.c (snprintf, _snprintf_r): Ditto.
5890         * libc/stdio/sscanf.c (sscanf, _sscanf_r): Ditto.
5891         * libc/stdio/vsnprintf.c (vsnprintf, _vsnprintf_r): Ditto.
5892         * libc/stdio/vsscanf.c (_vsscanf_r): Ditto.
5893         * libc/stdio/sscanf.c (sscanf, _sscanf_r): Added __SSTR flag to
5894         _flags in local FILE to prevent locking.
5895         * libc/stdio/vsscanf.c (_vsscanf_r): Ditto.
5896
5897 2004-09-16  Antony King  <antony.king@st.com>
5898
5899         * libc/stdio/fwalk.c (_fwalk): Remove check for _GLOBAL_REENT
5900         and only walk the reentrancy parameter.
5901         (_fwalk_reent): Ditto.
5902         * libc/stdlib/exit.c: Remove out of date _REENT_ONLY check.
5903
5904 2004-09-16  Antony King  <antony.king@st.com>
5905
5906         * libc/stdio64/freopen64.c: Remove casting of fp lock to
5907         _LOCK_RECURSIVE_T.
5908
5909 2004-09-16  Antony King  <antony.king@st.com>
5910
5911         * libc/time/tzlock.c: Add default stubs that use generic
5912         locking code.
5913
5914 2004-09-16  Antony King  <antony.king@st.com>
5915
5916         * libc/ctype/ctype.tex: Added missing documentation.
5917         * libc/stdio/stdio.tex Ditto.
5918         * libc/stdlib/stdlib.tex Ditto.
5919         * libc/string/strings.tex Ditto.
5920         * libc/time/time.tex: Ditto.
5921         * libc/stdio/setbuffer.c: Removed setlinebuf documentation.
5922
5923 2004-09-15  Corinna Vinschen  <vinschen@redhat.com>
5924
5925         * libc/reent/impure.c (reent_data): Define as alias to impure_data
5926         when building for Cygwin.
5927         * libc/include/sys/reent.h (_GLOBAL_REENT): Revert definition to
5928         _global_impure_ptr.
5929
5930 2004-09-15  Jeff Johnston  <jjohnstn@redhat.com>
5931
5932         * configure.host: Reverting 2004-09-14 change as fix has occurred on
5933         Cygwin side.
5934         * configure.in: Ditto.
5935         * libc/configure.in: Ditto.
5936         * libc/sys/configure.in: Ditto.
5937         * configure: Ditto.
5938         * libc/configure: Ditto.
5939         * libc/sys/configure: Ditto.
5940         * libc/include/sys/reent.h: Ditto.
5941         * libc/stdlib/__atexit.c: Ditto.
5942         * libc/stdlib/__call_atexit.c: Ditto.
5943         * libc/stdlib/cxa_atexit.c: Ditto.
5944         * libc/stdlib/cxa_finalize.c: Ditto.
5945         * libc/sys/cygwin/Makefile.am: Removed again.
5946         * libc/sys/cygwin/Makefile.in: Ditto.
5947         * libc/sys/cygwin/aclocal.m4: Ditto.
5948         * libc/sys/cygwin/configure: Ditto.
5949         * libc/sys/cygwin/configure.in: Ditto.
5950         * libc/sys/cygwin/dummy.c: Ditto.
5951         * libc/sys/cygwin/sys/reent.h: Ditto.
5952
5953 2004-09-14  Jeff Johnston  <jjohnstn@redhat.com>
5954
5955         * configure.host: Add Cygwin sys directory.
5956         * configure.in: Do not set CRT0 for cygwin.
5957         * libc/configure.in: Ditto.
5958         * libc/sys/configure.in: Ditto.
5959         * configure: Regenerated.
5960         * libc/configure: Ditto.
5961         * libc/sys/configure: Ditto.
5962         * libc/include/sys/reent.h: Add __REENT_HAS_CXA_SUPPORT flag.
5963         * libc/stdlib/__atexit.c: Keep cxa support protected by new
5964         __REENT_HAS_CXA_SUPPORT flag.
5965         * libc/stdlib/__call_atexit.c: Ditto.
5966         * libc/stdlib/cxa_atexit.c: Ditto.
5967         * libc/stdlib/cxa_finalize.c: Ditto.
5968         * libc/sys/cygwin/Makefile.am: New file.
5969         * libc/sys/cygwin/Makefile.in: Ditto.
5970         * libc/sys/cygwin/aclocal.m4: Ditto.
5971         * libc/sys/cygwin/configure: Ditto.
5972         * libc/sys/cygwin/configure.in: Ditto.
5973         * libc/sys/cygwin/dummy.c: Ditto.
5974         * libc/sys/cygwin/sys/reent.h: Ditto.  This file is stabilized
5975         version of reent.h.
5976
5977 2004-09-13 Artem B. Bityuckiy  <dedekind@oktetlabs.ru>
5978
5979         * libc/iconv/iconv.tex: Updated with new content.
5980         * libc/iconv/lib/iconvnls.c: Reference ICONV_DEFAULT_NLSPATH
5981         instead of NLS_DEFAULT_NLSPATH.
5982         * libc/iconv/lib/iconvnls.h: Fix typo.
5983         * libc/include/sys/iconvnls.h: New file.
5984
5985 2004-09-09  Paul Brook  <paul@codesourcery.com>
5986
5987         * libc/include/sys/reent.h (struct _on_exit_args): Add _dso_handle
5988         and _is_cxa.
5989         (struct _atexit): Add _next when _REENT_SMALL.
5990         (struct _reent): Add _atexit0 when _REENT_SMALL.
5991         (_REENT_INIT_PTR): Adjust.
5992         * libc/stdlib/Makefile.am (GENERAL_SOURCES): Add __atexit.c and
5993         __call_exit.c.
5994         (EXTENDED_SOURCES): Add cxa_atexit.c and cxa_finalize.c.
5995         * libc/stdlib/Makefile.in: Regenerate.
5996         * libc/stdlib/__atexit.c: New file.
5997         * libc/stdlib/__call_atexit.c: New file.
5998         * libc/stdlib/atexit.h: Remove old definitions.  Add new.
5999         * libc/stdlib/atexit.c (atexit): Use __register_exitproc.
6000         * libc/stdlib/cxa_atexit.c: New file.
6001         * libc/stdlib/cxa_finalize.c: New file.
6002         * libc/stdlib/exit.c (exit): Use __call_exitprocs.
6003         * libc/stdlib/on_exit.c (on_exit): Use __register_exitproc.
6004         2004-09-09  Jeff Johnston  <jjohnstn@redhat.com>
6005         * libc/reent/reent.c [_REENT_SMALL]: Fix reference to
6006         _on_exit_args_ptr.
6007
6008 2004-08-23  Jeff Johnston  <jjohnstn@redhat.com>
6009
6010         * libc/include/sys/unistd.h (getpass): Change prototype to use
6011         const instead of __const.
6012
6013 2004-08-16  Nathan Sidwell  <nathan@codesourcery.com>
6014
6015         * libc/stdio/vfscanf.c (_NO_LONGLONG): Move out of FLOATING_POINT
6016         #if.
6017
6018 2004-08-12  Jeff Johnston  <jjohnstn@redhat.com>
6019
6020         * libc/sys/linux/sys/types.h (u64): New typedef to allow building
6021         on linux systems with glibc 2.3.3 installed.
6022         * libc/sys/linux/dl/dl-runtime.c: Fix prototypes for fixup and
6023         profile_fixup so newlib can build on fc3 system.
6024
6025 2004-07-30  Alexandre Oliva  <aoliva@redhat.com>
6026
6027         Introduce SH2a support.
6028         2004-03-16  Corinna Vinschen  <vinschen@redhat.com>
6029         * libc/include/machine/ieeefp.h: Define _DOUBLE_IS_32BITS for
6030         __SH2A_SINGLE_ONLY__, too.
6031         * libc/machine/sh/asm.h: Define DELAYED_BRANCHES for __SH2A__, too.
6032         2004-02-24  Corinna Vinschen  <vinschen@redhat.com>
6033         * libc/sys/sh/crt0.S (start_l): Support sh2a-nofpu.  Fix comments.
6034         2004-02-10  DJ Delorie  <dj@redhat.com>
6035         * libc/sys/sh/crt0.S (start_l): Support sh2a.
6036
6037 2004-07-29  Jeff Johnston  <jjohnstn@redhat.com>
6038
6039         * libc/time/strptime.c: Correct full-name of "March" typo.
6040
6041 2004-07-16  Anil Paranjpe  <anilp1@kpitcummins.com>
6042
6043         * configure.host (h8300*-*-*): Default long long printing support.
6044
6045 2004-07-16  Jeff Johnston  <jjohnstn@redhat.com>
6046
6047         * libc/stdio/fvwrite.c (_sfvwrite):  For asprintf family
6048         calls, if realloc fails, free up buffer as it is no longer
6049         used.
6050
6051 2004-07-07  Artem B. Bityuckiy  <dedekind@oktetlabs.ru>
6052
6053         * libc/iconv/iconv.tex: Updated to represent recent changes.
6054         * libc/iconv/lib/iconv.c: Documentation updated.
6055
6056 2004-07-07  Nick Clifton  <nickc@redhat.com>
6057
6058         * configure.host (newlib_cflags): Define PREFER_SIZE_OVER_SPEED
6059         for xStormy16.
6060
6061 2004-07-06  Chris Demetriou  <cgd@broadcom.com>
6062
6063         * configure.host (mips*-*-elf*): Default long long printing
6064         support.
6065
6066 2004-07-05  Jeff Johnston  <jjohnstn@redhat.com>
6067
6068         * libc/Makefile.am (libc.dvi): Add target and specify
6069         same dependencies as libc.info.
6070         * libc/Makefile.in: Regenerated.
6071         * libm/Makefile.am (libm.dvi): Add target and specify
6072         same dependencies as libm.info.
6073         * libm/Makefile.in: Regenerated.
6074
6075 2004-06-29  Artem B. Bityuckiy  <dedekind@oktetlabs.ru>
6076
6077         * acinclude.m4: Move --enable-newlib-iconv option back here.
6078         * configure.in: Remove --enable-newlib-iconv option.  Don't
6079         tie iconv support to --enable-newlib-mb.
6080         * aclocal.m4: Regenerated.
6081         * configure: Ditto.
6082         * doc/aclocal.m4, doc/configure: Ditto.
6083         * iconvdata/aclocal.m4, iconvdata/configure: Ditto.
6084         * libm/*/aclocal.m4: Ditto.
6085         * libm/*/configure: Ditto.
6086         * libc/*/aclocal.m4: Ditto.
6087         * libc/*/configure: Ditto.
6088
6089 2004-06-25  Artem B. Bityuckiy  <dedekind@oktetlabs.ru>
6090
6091         * acinclude.m4: Move iconv options into configure.in.
6092         * aclocal.m4: Regenerated.
6093         * configure: Ditto.
6094         * configure.in: Add iconv options.
6095         * newlib.hin: Add new iconv encodings and remove deleted ones.
6096         * doc/aclocal.m4: Regenerated.
6097         * doc/configure: Ditto.
6098         * iconvdata/aclocal.m4: Ditto.
6099         * iconvdata/configure: Ditto.
6100         * libc/iconv: Design change.  New size-optimized ccs format.
6101         * libc/iconv/AUTHORS: Removed.
6102         * libc/iconv/COPYING: Ditto.
6103         * libc/iconv/README.ORIGINAL: Ditto.
6104         * libc/iconv/README.TODO: Ditto.
6105         * libc/iconv/charset.aliases: Ditto.
6106         * libc/iconv/encoding.aliases: New file.
6107         * libc/iconv/Makefile.am: Updated.
6108         * libc/iconv/Makefile.in: Regenerated.
6109         * libc/iconv/iconv.tex: Updated.
6110         * libc/iconv/ccs/Makefile.am: Ditto.
6111         * libc/iconv/ccs/Makefile.in: Regenerated.
6112         * libc/iconv/ccs/big5.c: Updated.
6113         * libc/iconv/ccs/cns11643_plane1.c: Ditto.
6114         * libc/iconv/ccs/cns11643_plane14.c: Ditto.
6115         * libc/iconv/ccs/cns11643_plane2.c: Ditto.
6116         * libc/iconv/ccs/cp775.c: Ditto.
6117         * libc/iconv/ccs/cp850.c: Ditto.
6118         * libc/iconv/ccs/cp852.c: Ditto.
6119         * libc/iconv/ccs/cp855.c: Ditto.
6120         * libc/iconv/ccs/cp866.c: Ditto.
6121         * libc/iconv/ccs/iso_8859_1.c: Ditto.
6122         * libc/iconv/ccs/README.CCS.SOURCES: Removed.
6123         * libc/iconv/ccs/gb_2312_80.c: Ditto.
6124         * libc/iconv/ccs/iconv_mktbl: Ditto.
6125         * libc/iconv/ccs/jis_x0201.c: Ditto.
6126         * libc/iconv/ccs/jis_x0208_1983.c: Ditto.
6127         * libc/iconv/ccs/shift_jis.c: Ditto.
6128         * libc/iconv/ccs/us_ascii.c: Ditto.
6129         * libc/iconv/ccs/ccs.h: New file.
6130         * libc/iconv/ccs/ccsbi.c: Ditto.
6131         * libc/iconv/ccs/ccsbi.h: Ditto.
6132         * libc/iconv/ccs/ccsnames.h: Ditto.
6133         * libc/iconv/ccs/iso_8859_10.c: Ditto.
6134         * libc/iconv/ccs/iso_8859_11.c: Ditto.
6135         * libc/iconv/ccs/iso_8859_13.c: Ditto.
6136         * libc/iconv/ccs/iso_8859_14.c: Ditto.
6137         * libc/iconv/ccs/iso_8859_3.c: Ditto.
6138         * libc/iconv/ccs/iso_8859_6.c: Ditto.
6139         * libc/iconv/ccs/iso_8859_7.c: Ditto.
6140         * libc/iconv/ccs/iso_8859_8.c: Ditto.
6141         * libc/iconv/ccs/iso_8859_9.c: Ditto.
6142         * libc/iconv/ccs/iso_ir_111.c: Ditto.
6143         * libc/iconv/ccs/jis_x0201_1976.c: Ditto.
6144         * libc/iconv/ccs/jis_x0208_1990.c: Ditto.
6145         * libc/iconv/ccs/koi8_ru.c: Ditto.
6146         * libc/iconv/ccs/koi8_uni.c: Ditto.
6147         * libc/iconv/ccs/mktbl.pl: Ditto.
6148         * libc/iconv/ccs/win_1250.c: Ditto.
6149         * libc/iconv/ccs/win_1251.c: Ditto.
6150         * libc/iconv/ccs/win_1252.c: Ditto.
6151         * libc/iconv/ccs/win_1253.c: Ditto.
6152         * libc/iconv/ccs/win_1254.c: Ditto.
6153         * libc/iconv/ccs/win_1255.c: Ditto.
6154         * libc/iconv/ccs/win_1256.c: Ditto.
6155         * libc/iconv/ccs/win_1257.c: Ditto.
6156         * libc/iconv/ccs/win_1258.c: Ditto.
6157         * libc/iconv/ccs/iso_8859_15.c: Updated.
6158         * libc/iconv/ccs/iso_8859_2.c: Ditto.
6159         * libc/iconv/ccs/iso_8859_4.c: Ditto.
6160         * libc/iconv/ccs/iso_8859_5.c: Ditto.
6161         * libc/iconv/ccs/jis_x0212_1990.c: Ditto.
6162         * libc/iconv/ccs/koi8_r.c: Ditto.
6163         * libc/iconv/ccs/koi8_u.c: Ditto.
6164         * libc/iconv/ccs/ksx1001.c: Ditto.
6165         * libc/iconv/ccs/binary/gb_2312_80.cct: Removed.
6166         * libc/iconv/ccs/binary/jis_x0201.cct: Ditto.
6167         * libc/iconv/ccs/binary/shift_jis.cct: Ditto.
6168         * libc/iconv/ccs/binary/us_ascii.cct: Ditto.
6169         * libc/iconv/ccs/binary/jis_x0208_1983.cct: Ditto.
6170         * libc/iconv/ccs/binary/Makefile.am: Updated.
6171         * libc/iconv/ccs/binary/Makefile.in: Regenerated.
6172         * libc/iconv/ccs/binary/big5.cct: Updated.
6173         * libc/iconv/ccs/binary/cns11643_plane1.cct: Ditto.
6174         * libc/iconv/ccs/binary/cns11643_plane14.cct: Ditto.
6175         * libc/iconv/ccs/binary/cns11643_plane2.cct: Ditto.
6176         * libc/iconv/ccs/binary/cp775.cct: Updated.: Ditto.
6177         * libc/iconv/ccs/binary/cp850.cct: Ditto.: Ditto.
6178         * libc/iconv/ccs/binary/cp852.cct: Ditto.: Ditto.
6179         * libc/iconv/ccs/binary/cp855.cct: Ditto.: Ditto.
6180         * libc/iconv/ccs/binary/cp866.cct: Ditto.: Ditto.
6181         * libc/iconv/ccs/binary/iso_8859_1.cct: Ditto.
6182         * libc/iconv/ccs/binary/iso_8859_15.cct: Ditto.
6183         * libc/iconv/ccs/binary/iso_8859_4.cct: Ditto.
6184         * libc/iconv/ccs/binary/iso_8859_5.cct: Ditto.
6185         * libc/iconv/ccs/binary/iso_8859_2.cct: Ditto.
6186         * libc/iconv/ccs/binary/jis_x0212_1990.cct: Ditto.
6187         * libc/iconv/ccs/binary/koi8_r.cct: Ditto.
6188         * libc/iconv/ccs/binary/koi8_u.cct: Ditto.
6189         * libc/iconv/ccs/binary/ksx1001.cct: Ditto.
6190         * libc/iconv/ccs/binary/iso_8859_10.cct: New file.
6191         * libc/iconv/ccs/binary/iso_8859_11.cct: Ditto.
6192         * libc/iconv/ccs/binary/iso_8859_13.cct: Ditto.
6193         * libc/iconv/ccs/binary/iso_8859_14.cct: Ditto.
6194         * libc/iconv/ccs/binary/iso_8859_3.cct: Ditto.
6195         * libc/iconv/ccs/binary/iso_8859_6.cct: Ditto.
6196         * libc/iconv/ccs/binary/iso_8859_7.cct: Ditto.
6197         * libc/iconv/ccs/binary/iso_8859_8.cct: Ditto.
6198         * libc/iconv/ccs/binary/iso_8859_9.cct: Ditto.
6199         * libc/iconv/ccs/binary/iso_ir_111.cct: Ditto.
6200         * libc/iconv/ccs/binary/jis_x0201_1976.cct: Ditto.
6201         * libc/iconv/ccs/binary/jis_x0208_1990.cct: Ditto.
6202         * libc/iconv/ccs/binary/koi8_ru.cct: Ditto.
6203         * libc/iconv/ccs/binary/koi8_uni.cct: Ditto.
6204         * libc/iconv/ccs/binary/win_1250.cct: Ditto.
6205         * libc/iconv/ccs/binary/win_1251.cct: Ditto.
6206         * libc/iconv/ccs/binary/win_1252.cct: Ditto.
6207         * libc/iconv/ccs/binary/win_1253.cct: Ditto.
6208         * libc/iconv/ccs/binary/win_1254.cct: Ditto.
6209         * libc/iconv/ccs/binary/win_1255.cct: Ditto.
6210         * libc/iconv/ccs/binary/win_1256.cct: Ditto.
6211         * libc/iconv/ccs/binary/win_1257.cct: Ditto.
6212         * libc/iconv/ccs/binary/win_1258.cct: Ditto.
6213         * libc/iconv/ces/Makefile.am: Updated.
6214         * libc/iconv/ces/Makefile.in: Regenerated.
6215         * libc/iconv/ces/ucs-2-internal.c: Updated.
6216         * libc/iconv/ces/ucs-4-internal.c: Ditto.
6217         * libc/iconv/ces/utf-16.c: Ditto.
6218         * libc/iconv/ces/utf-8.c: Ditto.
6219         * libc/iconv/ces/cesbi.c: New file.
6220         * libc/iconv/ces/cesbi.h: Ditto.
6221         * libc/iconv/ces/cesdeps.h: Ditto.
6222         * libc/iconv/ces/euc.c: Ditto.
6223         * libc/iconv/ces/mkdeps.pl: Ditto.
6224         * libc/iconv/ces/table-pcs.c: Ditto.
6225         * libc/iconv/ces/table.c: Ditto.
6226         * libc/iconv/ces/ucs-2.c: Ditto.
6227         * libc/iconv/ces/ucs-4.c: Ditto.
6228         * libc/iconv/ces/us-ascii.c: Ditto.
6229         * libc/iconv/ces/euc-jp.c: Removed.
6230         * libc/iconv/ces/euc-kr.c: Ditto.
6231         * libc/iconv/ces/euc-tw.c: Ditto.
6232         * libc/iconv/ces/gb2312.c: Ditto.
6233         * libc/iconv/ces/iso-10646-ucs-2.: Ditto.c
6234         * libc/iconv/ces/iso-10646-ucs-4.c: Ditto.
6235         * libc/iconv/lib/Makefile.am: Updated.
6236         * libc/iconv/lib/Makefile.in: Regenerated.
6237         * libc/iconv/lib/endian.h: Updated.
6238         * libc/iconv/lib/iconv.c: Ditto.
6239         * libc/iconv/lib/local.h: Ditto.
6240         * libc/iconv/lib/aliases.c: Removed.
6241         * libc/iconv/lib/bialiasesi.c: Ditto.
6242         * libc/iconv/lib/biccs.c: Ditto.
6243         * libc/iconv/lib/bices.c: Ditto.
6244         * libc/iconv/lib/ccs.c: Ditto.
6245         * libc/iconv/lib/ces.c: Ditto.
6246         * libc/iconv/lib/ces_euc.c: Ditto.
6247         * libc/iconv/lib/ces_iso2022.c: Ditto.
6248         * libc/iconv/lib/ces_table.c: Ditto.
6249         * libc/iconv/lib/converter.c: Ditto.
6250         * libc/iconv/lib/deps.h: Ditto.
6251         * libc/iconv/lib/loaddata.c: Ditto.
6252         * libc/iconv/lib/aliasesbi.c: New file.
6253         * libc/iconv/lib/aliasesi.c: Ditto.
6254         * libc/iconv/lib/conv.h: Ditto.
6255         * libc/iconv/lib/encnames.h: Ditto.
6256         * libc/iconv/lib/encoding.deps: Ditto.
6257         * libc/iconv/lib/iconvnls.c: Ditto.
6258         * libc/iconv/lib/iconvnls.h: Ditto.
6259         * libc/iconv/lib/nullconv.c: Ditto.
6260         * libc/iconv/lib/ucsconv.c: Ditto.
6261         * libc/iconv/lib/ucsconv.h: Ditto.
6262         * libc/include/iconv.h: Update copyright.
6263         * libc/*/aclocal.m4: Regenerated.
6264         * libc/*/configure: Ditto.
6265         * libm/*/aclocal.m4: Ditto.
6266         * libm/*/configure: Ditto.
6267
6268 2004-06-22  Alexandre Oliva  <aoliva@redhat.com>
6269
6270         * libc/include/machine/setjmp.h [__H8300__] (_JBTYPE): Define,
6271         instead of typedefing jmp_buf.
6272
6273         2003-07-02  Richard Sandiford  <rsandifo@redhat.com>
6274         * libc/machine/h8300/Makefile.am (lib_a_SOURCES): Add h8sx_strcpy.S.
6275         * libc/machine/h8300/defines.h (LEN): New macro.
6276         * libc/machine/h8300/memcpy.S: Add h8sx version.
6277         * libc/machine/h8300/memset.S: Likewise.
6278         * libc/machine/h8300/strcmp.S: Likewise.
6279         * libc/machine/h8300/setjmp.S: Use h8sx move instructions.
6280         * libc/machine/h8300/h8sx_strcpy.S: New file.
6281         2003-06-30  Richard Sandiford  <rsandifo@redhat.com>
6282         * libc/include/machine/ieeefp.h: Extend __H8300S__ handling to
6283         __H8300SX__.
6284         * libc/include/machine/setjmp.h: Likewise.
6285         * libc/include/sys/config.h: Likewise.
6286         * libc/machine/h8300/defines.h: Likewise.
6287         * libc/machine/h8300/setjmp.S: Likewise.
6288         * libc/machine/h8300/strcmp.S: Likewise.
6289         * libc/sys/h8300hms/close.S: Likewise.
6290         * libc/sys/h8300hms/fstat.S: Likewise.
6291         * libc/sys/h8300hms/lseek.S: Likewise.
6292         * libc/sys/h8300hms/read.S: Likewise.
6293         * libc/sys/h8300hms/write.S: Likewise.
6294         * libc/sys/h8300hms/crt0.S: Likewise.
6295         * libc/machine/h8300/setarch.h: Use .h8300sx or .h8300sxn if
6296         __H8300SX__ is defined.
6297         * libc/sys/h8300hms/setarch.h: Likewise.
6298
6299 2004-06-17  Jeff Johnston  <jjohnstn@redhat.com>
6300
6301         * libc/include/sys/reent.h (_GLOBAL_REENT): Back
6302         out change which set _GLOBAL_REENT to _global_impure_ptr until
6303         we understand why Cygwin breaks because of it.
6304
6305 2004-06-14  Jeff Johnston  <jjohnstn@redhat.com>
6306
6307         * libc/sys/linux/machine/i386/syscall.h: For now, set up
6308         __syscall_return macro for systems with vsyscall.
6309
6310 2004-06-11  Antony King  <antony.king@st.com>
6311
6312         * libc/include/sys/_types.h: Include <sys/lock.h> and change
6313         _flock_t to be of type _LOCK_RECURSIVE_T.
6314         * libc/include/sys/reent.h: (_REENT_INIT): Reformat.
6315         (_REENT_INIT_PTR): Ditto.  Use memset where appropriate.
6316         (_global_impure_ptr): New declaration.
6317         (_GLOBAL_REENT): Change to be _global_impure_ptr.
6318         * libc/include/sys/stdio.h: Include <sys/lock.h> and
6319         <sys/reent.h>.
6320         (_flockfile)[!_SINGLE_THREAD]: Add code for lock call.
6321         (_funlockfile)[!SINGLE_THREAD]: Ditto.
6322         * libc/reent/impure.c: Set _global_impure_ptr to _impure_ptr.
6323         * libc/stdio/fclose.c: Remove casting of fp lock to
6324         _LOCK_RECURSIVE_T.
6325         * libc/stdio/findfp.c: Ditto.
6326         * libc/stdio/fopen.c: Ditto.
6327         * libc/stdio/freopen.c: Ditto.
6328         * libc/stdio/vfprintf.c: Ditto.
6329         * libc/stdio64/fopen64.c: Ditto.
6330         * libc/stdlib/envlock.c: Add default stubs that use generic
6331         locking code.
6332         * libc/stdlib/mlock.c: Ditto.
6333
6334         Jeff Johnston  <jjohnstn@redhat.com>
6335         * libc/sys/linux/sys/_types.h (__flock_mutex_t): New subtype.
6336         (_flock_t): Change to be a struct containing a single member
6337         named mutex which is of type __flock_mutex_t.
6338
6339 2004-06-09  Jeff Johnston  <jjohnstn@redhat.com>
6340
6341         * libc/sys/linux/Makefile.am: Change siglist.inc to be generated
6342         from /usr/include/asm/signal.h instead of kernel sources.  Also
6343         default max to 32 if not found in header file.
6344         * libc/sys/linux/Makefile.in: Regenerated.
6345         * libc/sys/linux/machine/i386/socketcall.h: Fix for Fedora Core 2
6346         systems where __syscall_return is not defined.
6347         * libc/sys/linux/machine/i386/syscall.h: Change for Fedora Core 2
6348         systems to use syscall() function instead of assembler interrupt.
6349
6350 2004-06-09  Toralf Lund  <toralf@procaptura.com>
6351
6352         * libc/sys/arm/setjmp.S, libc/sys/arm/access.c: Move
6353         files from libc/sys/arm to libc/machine/arm.
6354         * libc/machine/arm/Makefile.am, libc/machine/arm/Makefile.in: Add
6355         library build support for files moved from libc/sys/arm.
6356         * libc/sys/arm/Makefile.am, libc/sys/arm/Makefile.in:  Remove
6357         references to access and setjmp.
6358         * configure.host: Add checks for newlib_may_supply_syscalls to
6359         determine whether or not to use sys/arm directory and use
6360         special compiler flags: ARM_RDI_MONITOR and ARM_RDP_MONITOR.
6361
6362 2004-06-02  Jeff Johnston  <jjohnstn@redhat.com>
6363
6364         * libc/stdio/vfscanf.c (__svfscanf_r): For CT_INT conversions,
6365         reset digit flags appropriately after we have discovered "0x".
6366         * libc/machine/powerpc/vfscanf.c (__svfscanf_r): Ditto.
6367
6368 2004-05-27  Jeff Johnston  <jjohnstn@redhat.com>
6369
6370         * libc/stdio/vfprintf.c (_VFPRINTF): Move file locking
6371         from here ...
6372         (_VFPRINTF_R): ... to here so all I/O printf routines
6373         are covered.
6374
6375 2004-05-26  Jeff Johnston  <jjohnstn@redhat.com>
6376
6377         * libc/search/hash_buf.c: Protect MAX and MIN macros from
6378         redefinition.
6379         * libc/search/hash.c: Ditto.
6380
6381 2004-05-25  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
6382
6383         * newlib.hin: (_WANT_IO_POS_ARGS): New define.
6384         (_WANT_IO_LONG_LONG): Ditto.
6385         (_WANT_IO_LONG_DOUBLE): Ditto.
6386         * configure.in: Add new configuration options
6387         --enable-newlib-io-long-long and --enable-newlib-io-long-double
6388         which tie to new defines in newlib.hin.
6389         * configure: Regenerated.
6390         * configure.host: Add checks for new configuration options.  Also
6391         fix up check for --enable-newlib-io-pos-args so configuration
6392         option will override any default for a given platform.
6393         Remove defining compiler flags for the _WANT_IO* options.
6394         * libc/stdio/vfprintf.c: Change to use new newlib.hin defines
6395         instead of looking for old compiler flags.
6396         * libc/stdio/vfscanf.c: Ditto.
6397         * libc/stdio/vfieeefp.h: Ditto.
6398         * libc/machine/powerpc/vfprintf.c: Ditto.
6399         * libc/machine/powerpc/vfscanf.c: Ditto.
6400
6401 2004-05-25  Jeff Johnston  <jjohnstn@redhat.com>
6402
6403         * testsuite/include/check.h: Add include of <stdio.h>.
6404
6405 2004-05-17  Corinna Vinschen  <corinna@vinschen.de>
6406
6407         * libc/include/grp.h: Declare getgrnam_r and getgrgid_r also on Cygwin.
6408
6409 2004-05-11  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
6410
6411         * libc/stdio/vfprintf.c (VFPRINTF_R): Use _free_r instead
6412         of free.
6413
6414 2004-05-07  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
6415
6416         * libc/stdio/iprintf.c (_iprintf_r): Fix old-style argument
6417         list for reentrant pointer.  Call _vfiprintf_r.
6418         * libc/stdio/siprintf.c (_siprintf_r): New function.
6419         * libc/stdio/vfprintf.c (__sbprintf): Add reetrant struct
6420         pointer argument.  Change all callers.  Call _VFPRINTF_R.
6421         * libc/include/stdio.h (_siprintf_r, _vfiprintf_r): New
6422         prototypes.
6423
6424 2004-05-07  Jeff Johnston  <jjohnstn@redhat.com>
6425
6426         * libc/include/sys/param.h: Remove endian info and include
6427         <machine/endian.h> instead.
6428         * libc/include/machine/endian.h: New file.
6429         * libc/include/machine/param.h: Ditto.
6430         * libc/machine/arm/machine/endian.h: Ditto.
6431         * libc/machine/arm/machine/param.h: Ditto.
6432         * libc/sys/arm/sys/param.h: Removed.
6433         * libc/sys/sysvi386/sys/param.h: Ditto.
6434         * libc/sys/rtems/sys/param.h: Modified to include <machine/endian.h>.
6435
6436 2004-05-03  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
6437
6438         * libc/stdio/vfprintf.c (_VFPRINTF_R): Set error flag when
6439         multibyte functions return failure for %C, %S, %lc, and %ls
6440         format specifiers.
6441
6442 2004-05-03  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
6443
6444         * testsuite/include/check.h (CHECK): Add flush of stdout.
6445
6446 2004-05-03  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
6447
6448         * libc/include/stdio.h (_ungetc_r): New prototype.
6449         * libc/stdio/ungetc.c (_ungetc_r): New reentrant function.
6450         (__submore): Add reentrant struct pointer argument.
6451         (ungetc): Change to call _ungetc_r.
6452
6453 2004-04-28  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
6454
6455         * libc/stdio/local.h (_fwalk_reent): Specify prototype of
6456         function pointer argument.
6457         * libc/stdio/fwalk.c (_fwalk, _fwalk_reent): Change prototypes
6458         to specify function pointer arguments.
6459         (__fwalk, __fwalk_reent): Ditto.
6460
6461 2004-04-26  Aldy Hernandez  <aldyh@redhat.com>
6462
6463         * libc/machine/powerpc/vfscanf.c (__svfscanf_r): Fix typo in
6464         CT_INT case.
6465
6466 2004-04-23  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
6467
6468         * configure.in: Define _MB_CAPABLE if mb supported.
6469         * configure: Regenerated.
6470         * configure.host: Remove manual setting of MB_CAPABLE compiler
6471         flag.
6472         * newlib.hin: Add _MB_CAPABLE flag.
6473         * libc/ctype/iswalpha.c, libc/ctype/iswblank.c: Include <newlib.h>
6474         and check for _MB_CAPABLE flag instead of MB_CAPABLE.
6475         * libc/ctype/iswcntrl.c, libc/ctype/iswprint.c: Ditto.
6476         * libc/ctype/iswpunct.c, libc/ctype/iswspace.c: Ditto.
6477         * libc/ctype/jp2uc.c: Ditto.
6478         * libc/ctype/towlower.c, libc/ctype/towupper.c: Ditto.
6479         * libc/locale/locale.c: Ditto
6480         * libc/machine/powerpc/vfscanf.c: Ditto
6481         * libc/stdio/vfprintf.c, libc/stdio/vfscanf.c: Ditto
6482         * libc/stdlib/mblen.c: Ditto
6483         * libc/stdlib/mblen_r.c, libc/stdlib/mbrlen.c: Ditto
6484         * libc/stdlib/mbrtowc.c, libc/stdlib/mbsrtowcs.c: Ditto
6485         * libc/stdlib/mbstowcs.c, libc/stdlib/mbtowc.c: Ditto
6486         * libc/stdlib/mbtowc_r.c, libc/stdlib/wcrtomb.c: Ditto
6487         * libc/stdlib/wcsrtombs.c, libc/stdlib/wcstombs.c: Ditto
6488         * libc/stdlib/wctomb.c, libc/sys/linux/intl/dcigettext.c: Ditto
6489         * libc/sys/linux/intl/explodename.c: Ditto
6490         * libc/sys/linux/intl/finddomain.c: Ditto
6491         * libc/sys/linux/intl/l10nflist.c: Ditto
6492         * libc/sys/linux/intl/loadmsgcat.c: Ditto
6493         * libc/sys/linux/intl/localealias.c: Ditto
6494
6495 2004-04-23  Jeff Johnston  <jjohnstn@redhat.com>
6496
6497         * libc/machine/powerpc/vfscanf.c (NNZDIGITS): New define.
6498         (__svfscanf_r): In integer conversions, leave out leading zeroes
6499         which are not part of a base prefix.
6500         Keep track of width truncation to fit into buf, not counting left-out
6501         zeroes against width till the truncation has been compensated for.
6502         This is based on Joern's patch of 04/21 for libc/stdio/vfscanf.c.
6503
6504 2004-04-23  Jeff Johnston  <jjohnstn@redhat.com>
6505
6506         * libc/include/stdio.h: (_ftell_r, _fseek_r): New prototypes.
6507
6508 2004-04-23  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
6509
6510         * libc/stdio/asprintf.c libc/stdio/clearerr.c,
6511         libc/stdio/fclose.c libc/stdio/fcloseall.c libc/stdio/fdopen.c,
6512         libc/stdio/feof.c libc/stdio/ferror.c libc/stdio/fflush.c,
6513         libc/stdio/fgetc.c libc/stdio/fgetpos.c libc/stdio/fgets.c,
6514         libc/stdio/fileno.c libc/stdio/findfp.c libc/stdio/fiprintf.c,
6515         libc/stdio/flags.c libc/stdio/fopen.c libc/stdio/fprintf.c,
6516         libc/stdio/fputc.c libc/stdio/fputs.c libc/stdio/fread.c,
6517         libc/stdio/freopen.c libc/stdio/fscanf.c libc/stdio/fseek.c,
6518         libc/stdio/fseeko.c libc/stdio/fsetpos.c libc/stdio/ftell.c,
6519         libc/stdio/ftello.c libc/stdio/fvwrite.c libc/stdio/fwalk.c,
6520         libc/stdio/fwrite.c libc/stdio/getc.c libc/stdio/getc_u.c,
6521         libc/stdio/getchar.c libc/stdio/getchar_u.c,
6522         libc/stdio/getdelim.c libc/stdio/getline.c libc/stdio/gets.c,
6523         libc/stdio/getw.c libc/stdio/iprintf.c libc/stdio/local.h,
6524         libc/stdio/makebuf.c libc/stdio/mktemp.c libc/stdio/perror.c,
6525         libc/stdio/printf.c libc/stdio/putc.c libc/stdio/putc_u.c,
6526         libc/stdio/putchar.c libc/stdio/putchar_u.c libc/stdio/puts.c,
6527         libc/stdio/putw.c libc/stdio/refill.c libc/stdio/remove.c,
6528         libc/stdio/rename.c libc/stdio/rewind.c libc/stdio/rget.c,
6529         libc/stdio/scanf.c libc/stdio/setbuf.c libc/stdio/setbuffer.c,
6530         libc/stdio/setlinebuf.c libc/stdio/setvbuf.c,
6531         libc/stdio/siprintf.c libc/stdio/snprintf.c,
6532         libc/stdio/sprintf.c libc/stdio/sscanf.c libc/stdio/stdio.c,
6533         libc/stdio/tmpfile.c libc/stdio/tmpnam.c libc/stdio/ungetc.c,
6534         libc/stdio/vasprintf.c libc/stdio/vfieeefp.h,
6535         libc/stdio/vfprintf.c libc/stdio/vfscanf.c,
6536         libc/stdio/vprintf.c libc/stdio/vscanf.c,
6537         libc/stdio/vsnprintf.c libc/stdio/vsprintf.c,
6538         libc/stdio/vsscanf.c libc/stdio/wbuf.c,
6539         libc/stdio/wsetup.c: Perform minor formatting changes.  Move
6540         copyright notices to top of file, ensure that <_ansi.h> is
6541         included, be consistent with open parentheses, use _DEFUN macro,
6542         include "local.h" where needed, and remove various compiler
6543         warnings.
6544
6545 2004-04-21  J"orn Rennecke <joern.rennecke@superh.com>
6546
6547         * libc/stdio/vfscanf.c (NNZDIGITS): New define.
6548         (__svfscanf_r): In integer conversions, leave out leading zeroes
6549         which are not part of a base prefix.
6550         Keep track of width truncation to fit into buf, not counting left-out
6551         zeroes against width till the truncation has been compensated for.
6552
6553 2004-04-20  Corinna Vinschen  <corinna@vinschen.de>
6554
6555         * libc/include/sys/unistd.h (ttyname_r): Add missing comma.
6556
6557 2004-04-20  Corinna Vinschen  <corinna@vinschen.de>
6558
6559         * libc/include/sys/unistd.h (ttyname_r): Add declaration for Cygwin.
6560
6561 2004-04-10  Corinna Vinschen  <corinna@vinschen.de>
6562
6563         * libc/include/sys/unistd.h (sync): Define void on Cygwin according
6564         to SUSv3.
6565
6566 2004-04-08  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
6567
6568         * libc/stdio/fclose.c (_fclose_r): New function.
6569         * libc/stdio/freopen.c (_freopen_r): Call _fclose_r.
6570         * libc/stdio/fcloseall.c (_fcloseall_r): Call _fwalk_reent.
6571         * libc/stdio64/freopen64.c (_freopen64_r): Use _fclose_r.
6572         * libc/include/stdio.h (_fclose_r): New prototype.
6573         * libc/stdio/fopen.c: Fix typo in comment.
6574
6575 2004-04-08  Jeff Johnston  <jjohnstn@redhat.com>
6576
6577         * libc/stdio/fwalk.c (_fwalk_reent): New version of _fwalk
6578         to handle _r reentrant functions.
6579
6580 2004-04-08  Eric Christopher  <echristo@redhat.com>
6581
6582         * libc/include/machine/setjmp.h: Fix endif locations.
6583
6584 2004-04-01  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
6585
6586         * libc/time/strptime.c: Add standard includes to avoid
6587         warning messages at compilation time.
6588
6589 2004-04-01  Jeff Johnston  <jjohnstn@redhat.com>
6590
6591         * libc/stdio/vfscanf.c (__svfscanf_r): Add locking/unlocking
6592         of file.
6593
6594 2004-03-30  Jeff Johnston  <jjohnstn@redhat.com>
6595
6596         * libc/machine/h8300/Makefile.am: Reformat slightly.
6597         * libc/machine/h8300/Makefile.in: Regenerate.
6598
6599 2004-03-30  Thomas Pfaff  <tpfaff@gmx.net>
6600
6601         * libc/stdio/findfp.c (__fp_lock_all): Add call to
6602         __sfp_lock_acquire.
6603         (__fp_unlock_all): Add call to __sfp_lock_release.
6604
6605 2004-03-25  Thomas Pfaff  <tpfaff@gmx.net>
6606
6607         * libc/stdio/fclose.c (fclose): Protect file pointer list when
6608         releasing a file.
6609          * libc/stdio/fcloseall.c (_fcloseall_r): Close all files via
6610         fwalk.
6611         * libc/stdio/fdopen.c (_fdopen_r): Add calls to
6612         _flockfile/_funlockfile.
6613         * libc/stdio/findfp.c: Move __sfp_lock. Change __sfp_lock type
6614         to recursive.
6615         Change __lock_acquire/__lock_release calls for __sfp_lock to
6616         __sfp_lock_acquire/__sfp_lock_release throughout.
6617         (std): Make sure that file lock is only initialized once.
6618         (__sfp): Move _file initialization. Initialize file lock.
6619         (__sfp_lock_acquire): New function.
6620         (__sfp_lock_release): Ditto.
6621         (__fp_lock_all): Remove __sfp_lock_acquire call.
6622         (__fp_unlock_all): Remove __sfp_lock_release call.
6623         * libc/stdio/fopen.c (_fopen_r): Protect file pointer list.
6624         Add calls to _flockfile/_funlockfile. Remove
6625         __lock_init_recursive call.
6626         * libc/stdio/freopen.c (_freopen_r): Protect file pointer list.
6627         * libc/stdio/fwalk.c (__fwalk): New static function.
6628         (_fwalk): Protect file pointer list. Use __fwalk to walk through
6629         file pointers.
6630         * libc/stdio/local.h: Add defines for
6631         __sfp_lock_acquire/__sfp_lock_release when
6632         single threaded. Add function prototypes otherwise.
6633         * libc/stdio64/fdopen64.c (_fdopen64_r): Add calls to
6634         _flockfile/_funlockfile.
6635         * libc/stdio/fopen64.c (_fopen64_r): Protect file pointer list.
6636         Add calls to _flockfile/_funlockfile. Remove
6637          __lock_init_recursive call.
6638         * libc/stdio/freopen64.c (_freopen64_r): Protect file pointer
6639         list.
6640
6641 2004-03-25  Jeff Johnston  <jjohnstn@redhat.com>
6642
6643         * libc/sys/linux/sys/lock.h: Turn on __USE_GNU flag if not already
6644         defined.  Change __LOCK_RECURSIVE_INIT to be __LOCK_INIT_RECURSIVE.
6645         * libc/sys/linux/dl/dl-support.c: Change __LOCK_RECURSIVE_INIT
6646         to be __LOCK_INIT_RECURSIVE.
6647
6648 2004-03-11  Kazu Hirata  <kazu@cs.umass.edu>
6649
6650         * libc/sys/h8300hms/Makefile.am (lib_a_SOURCES): Replace
6651         _exit.c with _exit.S.
6652         * libc/sys/h8300hms/Makefile.in: Regenerate.
6653         * libc/sys/h8300hms/_exit.c: Remove.
6654         * libc/sys/h8300hms/_exit.S: New.
6655
6656 2004-03-09  Thomas Pfaff  <tpfaff@gmx.net>
6657
6658         * libc/stdio/findfp.c (__sfp): Rename lock to __sfp_lock.
6659         Change __sfp_lock to static global.
6660         (__fp_lock): New static function.
6661         (__fp_unlock): Ditto.
6662         (__fp_lock_all): New function.
6663         (__fp_unlock_all): Ditto.
6664
6665 2004-02-10  Christopher Faylor  <cgf@redhat.com>
6666
6667         * libm/mathfp/er_gamma.c (gamma): Add new non-reentrant function.
6668         * libm/mathfp/er_lgamma.c (lgamma): Ditto.
6669         * libm/mathfp/erf_gamma.c (gammaf): Ditto.
6670         * libm/mathfp/erf_lgamma.c (lgammaf): Ditto.
6671
6672 2004-02-09  Christopher Faylor  <cgf@redhat.com>
6673
6674         * libc/include/time.h (TIMER_RELTIME): New define.
6675
6676 2004-02-09  Jeff Johnston  <jjohnstn@redhat.com>
6677
6678         * libc/stdlib/Makefile.am: Add mallstatsr to LIBADD_OBJS.
6679         * libc/stdlib/Makefile.in: Regenerated.
6680
6681 2004-02-08  Christopher Faylor  <cgf@redhat.com>
6682
6683         * libc/include/sys/features.h: Add _POSIX_TIMERS define for __CYGWIN__.
6684         * libc/include/sys/reent.h (__getreent): Protect against possibly being
6685         defined.
6686         * libc/include/sys/unistd.h (fdatasync): Don't define for __CYGWIN__.
6687
6688 2004-02-05  Paul Brook  <paul@codesourcery.com>
6689
6690         * libc/include/machine/ieeefp.h[__arm__][__VFP_FP__]: Set
6691         IEEE_{BIG,LITTLE} based on __ARMEL__ flag.
6692
6693 2004-02-02  Jeff Johnston  <jjohnstn@redhat.com>
6694
6695         * NEWS: Update with 1.12.0 info.
6696         * README: Ditto.
6697         * acinclude.m4: Change version number to 1.12.0.
6698         * aclocal.m4: Regenerated.
6699         * configure: Ditto.
6700         * doc/aclocal.m4: Ditto.
6701         * doc/configure: Ditto.
6702         * libc/*/aclocal.m4: Ditto.
6703         * libc/*/configure: Ditto.
6704         * libc/libc.texinfo: Ditto.
6705         * libm/*/aclocal.m4: Ditto.
6706         * libm/*/configure: Ditto.
6707         * libm/libm.texinfo: Ditto.
6708         * libc/sys/linux/shared.ld: Add VERS_1.12.
6709
6710 2004-02-02  Joel Sherrill  <joel@oarcorp.com>
6711
6712         * configure.host: Add support for tic4x.
6713         * libc/include/machine/ieeefp.h: Ditto.
6714         * libc/include/machine/setjmp.h: Ditto.
6715         * libc/machine/tic4x/Makefile.am: New file.
6716         * libc/machine/tic4x/configure.in: Ditto.
6717         * libc/machine/tic4x/setjmp.S: Ditto.
6718         * libc/machine/tic4x/aclocal.m4: Generated.
6719         * libc/machine/tic4x/configure: Ditto.
6720         * libc/machine/tic4x/Makefile.in: Ditto.
6721
6722 2004-01-30  Jeff Johnston  <jjohnstn@redhat.com>
6723
6724         * libc/stdio/fwalk.c (_fwalk.c): Don't traverse the
6725         file chain on the passed in reentrancy struct if it
6726         is _GLOBAL_REENT.
6727
6728 2004-01-30  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
6729             Jeff Johnston  <jjohnstn@redhat.com>
6730
6731         * libc/iconv/iconv.tex: Updated with more information.
6732
6733 2004-01-30  Thomas Pfaff  <tpfaff@gmx.net>
6734             Jeff Johnston  <jjohnstn@redhat.com>
6735
6736         * libc/stdio/fwalk.c (_fwalk): Traverse the given reentrancy
6737         struct for std streams and traverse the global reeentrancy
6738         struct for all other streams.
6739
6740 2004-01-27  Jeff Johnston  <jjohnstn@redhat.com>
6741
6742         * libc/stdlib/atexit.c: Protect global atexit list with a
6743         lock when newlib is multithreaded.
6744
6745 2004-01-27  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
6746
6747         * configure.in: Add support to generate iconv converter flags
6748         for newlib.h
6749         * newlib.hin: Add iconv converter flags.
6750         * configure: Regenerated.
6751         * libc/Makefile.in: Ditto.
6752         * libc/configure.in: Moved iconv converter parsing logic to
6753         top level newlib configure.in.
6754         * libc/configure: Regenerated.
6755         * libc/iconv/Makefile.in: Ditto.
6756         * libc/iconv/README.TODO
6757         * libc/iconv/charset.aliases: Remove wrong BE aliases for
6758         UCS2/UCS4/UTF8.
6759         * libc/iconv/ccs/Makefile.am: Remove C flag setting now that
6760         newlib.h can be used.
6761         * libc/iconv/ces/Makefile.am: Ditto.
6762         * libc/iconv/lib/Makefile.am: Ditto.
6763         * libc/iconv/ccs/Makefile.in: Regenerated.
6764         * libc/iconv/ces/Makefile.in: Ditto.
6765         * libc/iconv/lib/Makefile.in: Ditto.
6766         * libc/iconv/ccs/README.CCS.SOURCES: Updated.
6767         * libc/iconv/ccs/iconv_mktbl: Don't write junk strings to binaries.
6768         * libc/iconv/ccs/big5.c: Switch to use new underscored flags
6769         defined in newlib.h.
6770         * libc/iconv/ccs/cns11643_plane1.c: Ditto.
6771         * libc/iconv/ccs/cns11643_plane14.c: Ditto.
6772         * libc/iconv/ccs/cns11643_plane2.c: Ditto.
6773         * libc/iconv/ccs/cp775.c: Ditto.
6774         * libc/iconv/ccs/cp850.c: Ditto.
6775         * libc/iconv/ccs/cp852.c: Ditto.
6776         * libc/iconv/ccs/cp855.c: Ditto.
6777         * libc/iconv/ccs/cp866.c: Ditto.
6778         * libc/iconv/ccs/gb_2312_80.c: Ditto.
6779         * libc/iconv/ccs/iso_8859_1.c: Ditto.
6780         * libc/iconv/ccs/iso_8859_15.c: Ditto.
6781         * libc/iconv/ccs/iso_8859_2.c: Ditto.
6782         * libc/iconv/ccs/iso_8859_4.c: Ditto.
6783         * libc/iconv/ccs/iso_8859_5.c: Ditto.
6784         * libc/iconv/ccs/jis_x0201.c: Ditto.
6785         * libc/iconv/ccs/jis_x0208_1983.c: Ditto.
6786         * libc/iconv/ccs/jis_x0212_1990.c: Ditto.
6787         * libc/iconv/ccs/koi8_r.c: Ditto.
6788         * libc/iconv/ccs/koi8_u.c: Ditto.
6789         * libc/iconv/ccs/ksx1001.c: Ditto.
6790         * libc/iconv/ccs/shift_jis.c: Ditto.
6791         * libc/iconv/ccs/us_ascii.c: Ditto.
6792         * libc/iconv/ccs/binary/big5.cct: Newly generated.
6793         * libc/iconv/ccs/binary/cns11643_plane1.cct: Ditto.
6794         * libc/iconv/ccs/binary/cns11643_plane14.cct: Ditto.
6795         * libc/iconv/ccs/binary/cns11643_plane2.cct: Ditto.
6796         * libc/iconv/ccs/binary/cp775.cct: Ditto.
6797         * libc/iconv/ccs/binary/cp850.cct: Ditto.
6798         * libc/iconv/ccs/binary/cp852.cct: Ditto.
6799         * libc/iconv/ccs/binary/cp855.cct: Ditto.
6800         * libc/iconv/ccs/binary/cp866.cct: Ditto.
6801         * libc/iconv/ccs/binary/gb_2312_80.cct: Ditto.
6802         * libc/iconv/ccs/binary/iso_8859_1.cct: Ditto.
6803         * libc/iconv/ccs/binary/iso_8859_15.cct: Ditto.
6804         * libc/iconv/ccs/binary/iso_8859_2.cct: Ditto.
6805         * libc/iconv/ccs/binary/iso_8859_4.cct: Ditto.
6806         * libc/iconv/ccs/binary/iso_8859_5.cct: Ditto.
6807         * libc/iconv/ccs/binary/jis_x0201.cct: Ditto.
6808         * libc/iconv/ccs/binary/jis_x0208_1983.cct: Ditto.
6809         * libc/iconv/ccs/binary/jis_x0212_1990.cct: Ditto.
6810         * libc/iconv/ccs/binary/koi8_r.cct: Ditto.
6811         * libc/iconv/ccs/binary/koi8_u.cct: Ditto.
6812         * libc/iconv/ccs/binary/ksx1001.cct: Ditto.
6813         * libc/iconv/ccs/binary/shift_jis.cct: Ditto.
6814         * libc/iconv/ccs/binary/us_ascii.cct: Ditto.
6815         * libc/iconv/lib/bialiasesi.c: Sync with charset.aliases.
6816         * libc/iconv/ces/euc-jp.c: Use newlib.h macros.
6817         * libc/iconv/ces/euc-kr.c: Ditto.
6818         * libc/iconv/ces/euc-tw.c: Ditto.
6819         * libc/iconv/ces/gb2312.c: Ditto.
6820         * libc/iconv/ces/iso-10646-ucs-2.c: Ditto.
6821         * libc/iconv/ces/iso-10646-ucs-4.c: Ditto.
6822         * libc/iconv/ces/ucs-2-internal.c: Ditto.
6823         * libc/iconv/ces/ucs-4-internal.c: Ditto.
6824         * libc/iconv/ces/utf-16.c: Ditto.
6825         * libc/iconv/ces/utf-8.c: Ditto.
6826         * libc/iconv/lib/aliases.c: Ditto.
6827         * libc/iconv/lib/biccs.c: Ditto.
6828         * libc/iconv/lib/bices.c: Ditto.
6829         * libc/iconv/lib/ccs.c: Ditto.
6830         * libc/iconv/lib/ces.c: Ditto.
6831         * libc/iconv/lib/ces_euc.c: Ditto.
6832         * libc/iconv/lib/ces_iso2022.c: Ditto.
6833         * libc/iconv/lib/ces_table.c: Ditto.
6834         * libc/iconv/lib/converter.c: Ditto.
6835         * libc/iconv/lib/deps.h: Ditto.
6836         * libc/iconv/lib/endian.h: Ditto.
6837         * libc/iconv/lib/iconv.c: Ditto.
6838         * libc/iconv/lib/loaddata.c: Ditto.
6839         * libc/iconv/lib/local.h: Include newlib.h.
6840         * libc/argz/Makefile.in: Regenerated.
6841         * libc/ctype/Makefile.in: Ditto.
6842         * libc/errno/Makefile.in: Ditto.
6843         * libc/iconv/ccs/binary/Makefile.in: Ditto.
6844         * libc/locale/Makefile.in: Ditto.
6845         * libc/misc/Makefile.in: Ditto.
6846         * libc/posix/Makefile.in: Ditto.
6847         * libc/reent/Makefile.in: Ditto.
6848         * libc/search/Makefile.in: Ditto.
6849         * libc/signal/Makefile.in: Ditto.
6850         * libc/stdio/Makefile.in: Ditto.
6851         * libc/stdio64/Makefile.in: Ditto.
6852         * libc/stdlib/Makefile.in: Ditto.
6853         * libc/string/Makefile.in: Ditto.
6854         * libc/syscalls/Makefile.in: Ditto.
6855         * libc/time/Makefile.in: Ditto.
6856         * libc/unix/Makefile.in: Ditto.
6857         * testsuite/newlib.iconv/iconv.exp: New file.
6858         * testsuite/newlib.iconv/iconvjp.c: Ditto.
6859         * testsuite/newlib.iconv/iconvnm.c: Ditto.
6860         * testsuite/newlib.iconv/iconvru.c: Ditto.
6861
6862 2004-01-23  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
6863
6864         * acinclude.m4 (--enable-newlib-iconv): New configuration option.
6865         (--enable-newlib-builtin-converters): Ditto.
6866         * configure.in: Add code to set _ICONV_ENABLED flag.
6867         Set _MB_LEN_MAX to 1 if not mb enabled.
6868         * configure: Regenerated.
6869         * aclocal.m4: Ditto.
6870         * Makefile.in: Ditto.
6871         * newlib.hin: Add _ICONV_ENABLED flag.
6872         * libc/Makefile.am: Add support for iconv.
6873         * libc/configure.in: Ditto.
6874         * libc/Makefile.in: Regenerated.
6875         * libc/aclocal.m4: Ditto.
6876         * libc/configure: Ditto.
6877         * libc/libc.texinfo: Add iconv documentation.
6878         * libc/iconv/AUTHORS, libc/iconv/COPYING, libc/iconv/Makefile.am,
6879         libc/iconv/Makefile.in, libc/iconv/README.ORIGINAL,
6880         libc/iconv/README.TODO, libc/iconv/charset.aliases,
6881         libc/iconv/iconv.tex, libc/iconv/ccs/Makefile.am,
6882         libc/iconv/ccs/Makefile.in, libc/iconv/ccs/README.CCS.SOURCES,
6883         libc/iconv/ccs/big5.c, libc/iconv/ccs/cns11643_plane1.c,
6884         libc/iconv/ccs/cns11643_plane14.c, libc/iconv/ccs/cns11643_plane2.c,
6885         libc/iconv/ccs/cp775.c, libc/iconv/ccs/cp850.c,
6886         libc/iconv/ccs/cp852.c, libc/iconv/ccs/cp855.c,
6887         libc/iconv/ccs/cp866.c, libc/iconv/ccs/gb_2312_80.c,
6888         libc/iconv/ccs/iconv_mktbl, libc/iconv/ccs/iso_8859_1.c,
6889         libc/iconv/ccs/iso_8859_15.c, libc/iconv/ccs/iso_8859_2.c,
6890         libc/iconv/ccs/iso_8859_4.c, libc/iconv/ccs/iso_8859_5.c,
6891         libc/iconv/ccs/jis_x0201.c, libc/iconv/ccs/jis_x0208_1983.c,
6892         libc/iconv/ccs/jis_x0212_1990.c, libc/iconv/ccs/koi8_r.c,
6893         libc/iconv/ccs/koi8_u.c, libc/iconv/ccs/ksx1001.c,
6894         libc/iconv/ccs/shift_jis.c, libc/iconv/ccs/us_ascii.c,
6895         libc/iconv/ccs/binary/Makefile.am, libc/iconv/ccs/binary/Makefile.in,
6896         libc/iconv/ccs/binary/big5.cct,
6897         libc/iconv/ccs/binary/cns11643_plane1.cct,
6898         libc/iconv/ccs/binary/cns11643_plane14.cct,
6899         libc/iconv/ccs/binary/cns11643_plane2.cct,
6900         libc/iconv/ccs/binary/cp775.cct, libc/iconv/ccs/binary/cp850.cct,
6901         libc/iconv/ccs/binary/cp852.cct, libc/iconv/ccs/binary/cp855.cct,
6902         libc/iconv/ccs/binary/cp866.cct, libc/iconv/ccs/binary/gb_2312_80.cct,
6903         libc/iconv/ccs/binary/iso_8859_1.cct,
6904         libc/iconv/ccs/binary/iso_8859_15.cct,
6905         libc/iconv/ccs/binary/iso_8859_2.cct,
6906         libc/iconv/ccs/binary/iso_8859_4.cct,
6907         libc/iconv/ccs/binary/iso_8859_5.cct,
6908         libc/iconv/ccs/binary/jis_x0201.cct,
6909         libc/iconv/ccs/binary/jis_x0208_1983.cct,
6910         libc/iconv/ccs/binary/jis_x0212_1990.cct,
6911         libc/iconv/ccs/binary/koi8_r.cct, libc/iconv/ccs/binary/koi8_u.cct,
6912         libc/iconv/ccs/binary/ksx1001.cct,
6913         libc/iconv/ccs/binary/shift_jis.cct,
6914         libc/iconv/ccs/binary/us_ascii.cct,
6915         libc/iconv/ces/Makefile.am, libc/iconv/ces/Makefile.in,
6916         libc/iconv/ces/euc-jp.c, libc/iconv/ces/euc-kr.c,
6917         libc/iconv/ces/euc-tw.c, libc/iconv/ces/gb2312.c,
6918         libc/iconv/ces/iso-10646-ucs-2.c, libc/iconv/ces/iso-10646-ucs-4.c,
6919         libc/iconv/ces/ucs-2-internal.c, libc/iconv/ces/ucs-4-internal.c,
6920         libc/iconv/ces/utf-16.c, libc/iconv/ces/utf-8.c,
6921         libc/iconv/lib/Makefile.am, libc/iconv/lib/Makefile.in,
6922         libc/iconv/lib/aliases.c, libc/iconv/lib/bialiasesi.c,
6923         libc/iconv/lib/biccs.c, libc/iconv/lib/bices.c,
6924         libc/iconv/lib/ccs.c, libc/iconv/lib/ces.c,
6925         libc/iconv/lib/ces_euc.c, libc/iconv/lib/ces_iso2022.c,
6926         libc/iconv/lib/ces_table.c, libc/iconv/lib/converter.c,
6927         libc/iconv/lib/deps.h, libc/iconv/lib/endian.h,
6928         libc/iconv/lib/iconv.c, libc/iconv/lib/loaddata.c,
6929         libc/iconv/lib/local.h, libc/include/iconv.h: New files.
6930         * libc/sys/linux/include/iconv.h: Ditto.
6931         * libc/include/sys/_types.h (_iconv_t): Added.
6932         * doc/aclocal.m4: Regenerated.
6933         * doc/configure: Ditto.
6934         * doc/Makefile.in: Ditto.
6935         * iconvdata/Makefile.in: Ditto.
6936         * iconvdata/aclocal.m4: Ditto.
6937         * iconvdata/configure: Ditto.
6938         * libc/*aclocal.m4: Ditto.
6939         * libc/*Makefile.in: Ditto.
6940         * libc/*configure: Ditto.
6941         * libm/*aclocal.m4: Ditto.
6942         * libm/*Makefile.in: Ditto.
6943         * libm/*configure: Ditto.
6944
6945 2004-01-22  Thomas Pfaff  <tpfaff@gmx.net>
6946
6947         * libc/stdio/findfp.c (__sfp): Protect global FILE pointer list
6948         by a lock when newlib is multithreaded.
6949
6950 2004-01-21  Jeff Johnston  <jjohnstn@redhat.com>
6951
6952         * libc/stdlib/mbrtowc.c (_mbrtowc_r): Fix case where s is null
6953         pointer to match C99 spec.
6954         * libc/stdlib/mbsrtowcs.c (_mbsrtowc_r): Fix to ignore len when
6955         dst is NULL.  Also fix to not alter src pointer when dst is NULL
6956         and call _mbrtowc_r instead of _mbtowc_r.
6957         * libc/stdlib/wcsrtombs.c (_wcsrtombs_r): Call _wcrtomb_r instead
6958         of _wctomb_r.
6959
6960 2004-01-19  Thomas Pfaff  <tpfaff@gmx.net>
6961
6962         * libc/stdio/fclose.c (fclose): Release FILE as the last step.
6963         * libc/stdio/freopen.c (freopen): Ditto.
6964
6965 2004-01-16  Christopher Faylor  <cgf@redhat.com>
6966
6967         * libc/stdio/vfprintf.c: Add sys/lock.h include.
6968
6969 2004-01-16  Thomas Pfaff  <tpfaff@gmx.net>
6970
6971         * libc/stdio/findfp.c (__sfp): Remove unnecessary memset.
6972         * libc/stdio/vfprintf.c (__sbprintf): Ditto.
6973         Add calls to __lock_init_recursive and __lock_close_recursive
6974         instead.
6975
6976 2004-01-15  Thomas Pfaff  <tpfaff@gmx.net>
6977
6978         * libc/stdio/fclose.c: Include sys/lock.h.
6979         (fclose): Destroy lock when file is closed.
6980         * libc/stdio/findfp.c (__sfp): Initialize file pointers _lock
6981         member.
6982         * libc/stdio/freopen.c: Include sys/lock.h.
6983         (_freopen_r): Destroy lock when file is closed.
6984         * libc/stdio/vfprintf.c (__sbprintf): Initialize file pointers
6985         _lock member.
6986
6987 2004-01-08  Joel Sherrill  <joel@oarcorp.com>
6988
6989         * libc/ctype/iswctype.c, include/sys/reent.h, libc/stdlib/a64l.c:
6990         Remove warnings.
6991
6992 2004-01-08  Joel Sherrill  <joel@oarcorp.com>
6993
6994         * libc/sys/rtems/sys/queue.h: New file.
6995         * libc/include/sys/signal.h: Reflect renumbering of signals to
6996         fit into 32-bit mask.
6997         * libc/include/sys/unistd.h: Add fdatasync() prototype.
6998         * libc/sys/rtems/crt0.c: Add more symbols which may be implicitly
6999         required.  In particular, add the reentrant variants of libc calls.
7000         * libc/sys/rtems/sys/dirent.h: Add scandir() prototype.
7001
7002 2004-01-06  Mark Mitchell  <mark@codesourcery.com>
7003
7004         * libc/sys/arm/syscalls.c (unistd.h): Include it.
7005         (remap_handle): Use STDIN_FILENO instead of __sfileno(stdin).
7006         Similarly for stdout and stderr.
7007
7008 2004-01-06  Jeff Johnston  <jjohnstn@redhat.com>
7009
7010         * libc/libc.texinfo: Correct escape character for @ sign
7011         so file will be processed by make info.  Update copyright years.
7012         * libm/libm.texinfo: Ditto.
7013
7014 2003-12-05  Jeff Johnston  <jjohnstn@redhat.com>
7015
7016         * libc/include/sys/stat.h: No longer include stat-dj.h.
7017         * libc/include/sys/stat-dj.h: Removed.
7018
7019 2003-12-05  Jeff Johnston  <jjohnstn@redhat.com>
7020
7021         * libc/include/wchar.h: Include <sys/reent.h>.
7022
7023 2003-12-05  Christopher Faylor  <cgf@redhat.com>
7024
7025         * libc/stdlib/mbrlen.c: Change include order to prevent compiler errors
7026         when defining _mbrtowc.
7027         * libc/stdlib/mbsinit.c: Ditto.
7028         * libc/stdlib/mbsrtowcs.c: Ditto.
7029         * libc/stdlib/wcrtomb.c: Ditto.
7030         * libc/stdlib/wcsrtombs.c: Ditto.
7031         * libc/stdlib/wctob.c: Ditto.
7032
7033 2003-12-05  Christopher Faylor  <cgf@redhat.com>
7034
7035         * libc/stdlib/mbrlen.c: Change include order to prevent compiler
7036         errors when defining _mbrtowc.
7037         * libc/stdlib/mbsinit.c: Ditto.
7038         * libc/stdlib/mbsrtowcs.c: Ditto.
7039
7040 2003-12-05  Christopher Faylor  <cgf@redhat.com>
7041
7042         * libc/stdlib/mbrtowc.c: Change include order to prevent compiler
7043         errors when defining _mbrtowc.
7044
7045 2003-12-04  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
7046
7047         * libc/stdio/vfprintf.c (_VFPRINTF_R): Use _r versions
7048         of mb routines for %lc and %ls support.
7049         * libc/stdio/vfscanf.c (_svfscanf_r): Add %lc, %C,
7050         %ls, and %S support.  Remove CYGNUS_NEC markers and
7051         code within.
7052
7053 2003-12-04  Jeff Johnston  <jjohnstn@redhat.com>
7054
7055         * libc/include/wchar.h: Add prototypes for _mbrtowc_r,
7056         _wcrtomb_r, and _wcsrtombs_r.
7057
7058 2003-12-01  Corinna Vinschen  <corinna@vinschen.de>
7059
7060         * libc/include/sys/fcntl.h: Don't define struct flock when on
7061         Cygwin.  This is done in winsup/cygwin/include/cygwin/types.h now.
7062
7063 2003-11-28  Christopher Faylor  <cgf@redhat.com>
7064
7065         * libc/include/sys/signal.h: Use system specific signal file when
7066         building on cygwin.
7067
7068 2003-11-27  Jeff Johnston  <jjohnstn@redhat.com>
7069
7070         * libc/include/stdlib.h (_atoi_r): New prototype.
7071         * libc/stdlib/atoi.c (_atoi_r): New reentrant function.
7072
7073 2003-11-27  Jeff Johnston  <jjohnstn@redhat.com>
7074
7075         * libc/include/stdlib.h (_atoll_r, _atol_r): New prototypes.
7076         * libc/stdlib/atol.c (_atol_r): New reentrant function.
7077         * libc/stdlib/atoll.c (_atoll_r): Ditto.
7078
7079 2003-11-27  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
7080             Jeff Johnston  <jjohnstn@redhat.com>
7081
7082         * libc/include/stdlib.h (lldiv_t): New type.
7083         (atoll, llabs, lldiv): New prototypes.
7084         * libc/stdlib/Makefile.am: Add support for atoll, llabs, and lldiv.
7085         * libc/stdlib/stdlib.tex: Ditto.
7086         * libc/stdlib/Makefile.in: Regenerated.
7087         * libc/stdlib/atoll.c: New file.
7088         * libc/stdlib/llabs.c: Ditto.
7089         * libc/stdlib/lldiv.c: Ditto.
7090
7091 2003-11-26  Corinna Vinschen  <corinna@vinschen.de>
7092
7093         * libc/include/fcntl.h: Declare syscalls only when building newlib.
7094         * libc/include/unistd.h: Ditto.
7095         * libc/include/stat.h: Ditto.  Also declare struct stat64.
7096
7097 2003-11-24  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
7098
7099         * libc/stdio/vfprintf.c (_VFPRINTF_R): Fix check for 'C' format
7100         specifier to use ch instead of *fmt.
7101
7102 2003-11-21  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
7103
7104         * libc/stdio/vfprintf.c (_VFPRINTF_R, get_arg): Move mb-specific
7105         code within checks for MB_CAPABLE.  For non-mb-capable platforms,
7106         use simple byte logic.
7107
7108 2003-11-21  Jeff Johnston  <jjohnstn@redhat.com>
7109
7110         * libc/stdio/vfscanf.c (__svfscanf_r)[!_NO_LONGDBL]: Don't use
7111         _strtold routine for processing floats and doubles since it
7112         is not as fast as _strtod_r.
7113
7114 2003-11-20 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
7115
7116         * libc/machine/h8300/defines.h : Correct pointer register defines
7117         for normal mode.
7118         * libc/machine/h8300/memcpy.S : Use add/sub instead of adds/subs
7119         for normal mode.
7120         * libc/machine/h8300/reg_memcpy.S : Likewise.
7121         * libc/machine/h8300/reg_memset.S : Likewise.
7122         * libc/machine/h8300/strcmp.S : Likewise.
7123
7124 2003-11-19  Nicholas Wourms  <nwourms@netscape.net>
7125
7126         * configure.host: Enable positional arguments for printf
7127         family for Cygwin.
7128         * libc/stdio/vfprintf.c (_VFPRINTF_R): Remove extraneous
7129         pointer reference for quad_ptr_t.
7130
7131 2003-11-19  Jeff Johnston  <jjohnstn@redhat.com>
7132
7133         * libc/stdio/scanf.c: Don't include local.h more than once.
7134
7135 2003-11-18  Corinna Vinschen  <corinna@vinschen.de>
7136
7137         * libc/include/sys/fcntl.h: Declare _open64.
7138         * libc/include/sys/stat.h: Declare _fstat64.
7139         * libc/include/sys/unistd.h: Declare _lseek64.
7140
7141 2003-11-17  Corinna Vinschen  <corinna@vinschen.de>
7142
7143         * libc/include/stdlib.h (getprogname): Declare for Cygwin.
7144         (setprogname): Ditto.
7145
7146 2003-11-10  Jeff Johnston  <jjohnstn@redhat.com>
7147
7148         * libc/machine/powerpc/ufix64toa.c (_ufix64to_r): Fix shifts
7149         to use (Ebits + 1) which accounts for the sign-bit.
7150
7151 2003-11-07  Jeff Johnston  <jjohnstn@redhat.com>
7152
7153         * configure.host: Remove -DLOOSE_KERNEL_NAMES flag for linux
7154         x86 build.
7155         * iconvdata/Makefile.am: Make dependent on newlib's configure.host
7156         and set up default flags to pass to aclocal.
7157         * iconvdata/Makefile.in: Regenerated.
7158         * libc/sys/linux/Makefile.am: Add _ELIX_LEVEL_4 getlogin, getpwnam,
7159         and getpwuid routines.
7160         * libc/sys/linux/Makefile.in: Regenerated.
7161         * libc/sys/linux/getlogin.c: New stub file to allow x86-linux
7162         applications to link with newlib's shared libc library.
7163         * libc/sys/linux/getpwnam.c: Ditto.
7164         * libc/sys/linux/getpwuid.c: Ditto.
7165         * libc/sys/linux/sys/types.h: Include <features.h> and supply types
7166         that were formerly supplied by /usr/include/linux/types.h with
7167         kernel types.
7168         * testsuite/newlib.wctype/twctype.c: Fix testcase to properly
7169         test _ELIX_LEVEL macro.
7170
7171 2003-11-07  Jeff Johnston  <jjohnstn@redhat.com>
7172
7173         * libc/stdio/vfprintf.c (_VFPRINTF_R): Fix typos that should be
7174         referring to _NO_LONGLONG macro.
7175
7176 2003-11-06  Jeff Johnston  <jjohnstn@redhat.com>
7177
7178         * libc/sys/linux/linuxthreads/td_init.c: Replace function name
7179         in LOG() macro so this will compile on gcc 3.4 and up.
7180         * libc/sys/linux/linuxthreads/td_log.c: Ditto.
7181         * libc/sys/linux/linuxthreads/td_ta_clear_event.c: Ditto.
7182         * libc/sys/linux/linuxthreads/td_ta_delete.c: Ditto.
7183         * libc/sys/linux/linuxthreads/td_ta_enable_stats.c: Ditto.
7184         * libc/sys/linux/linuxthreads/td_ta_event_addr.c: Ditto.
7185         * libc/sys/linux/linuxthreads/td_ta_event_getmsg.c: Ditto.
7186         * libc/sys/linux/linuxthreads/td_ta_get_nthreads.c: Ditto.
7187         * libc/sys/linux/linuxthreads/td_ta_get_ph.c: Ditto.
7188         * libc/sys/linux/linuxthreads/td_ta_get_stats.c: Ditto.
7189         * libc/sys/linux/linuxthreads/td_ta_map_id2thr.c: Ditto.
7190         * libc/sys/linux/linuxthreads/td_ta_map_lwp2thr.c: Ditto.
7191         * libc/sys/linux/linuxthreads/td_ta_new.c: Ditto.
7192         * libc/sys/linux/linuxthreads/td_ta_reset_stats.c: Ditto.
7193         * libc/sys/linux/linuxthreads/td_ta_set_event.c: Ditto.
7194         * libc/sys/linux/linuxthreads/td_ta_setconcurrency.c: Ditto.
7195         * libc/sys/linux/linuxthreads/td_ta_thr_iter.c: Ditto.
7196         * libc/sys/linux/linuxthreads/td_ta_tsd_iter.c: Ditto.
7197         * libc/sys/linux/linuxthreads/td_thr_clear_event.c: Ditto.
7198         * libc/sys/linux/linuxthreads/td_thr_dbresume.c: Ditto.
7199         * libc/sys/linux/linuxthreads/td_thr_dbsuspend.c: Ditto.
7200         * libc/sys/linux/linuxthreads/td_thr_event_enable.c: Ditto.
7201         * libc/sys/linux/linuxthreads/td_thr_event_getmsg.c: Ditto.
7202         * libc/sys/linux/linuxthreads/td_thr_get_info.c: Ditto.
7203         * libc/sys/linux/linuxthreads/td_thr_getfpregs.c: Ditto.
7204         * libc/sys/linux/linuxthreads/td_thr_getgregs.c: Ditto.
7205         * libc/sys/linux/linuxthreads/td_thr_getxregs.c: Ditto.
7206         * libc/sys/linux/linuxthreads/td_thr_getxregsize.c: Ditto.
7207         * libc/sys/linux/linuxthreads/td_thr_set_event.c: Ditto.
7208         * libc/sys/linux/linuxthreads/td_thr_setfpregs.c: Ditto.
7209         * libc/sys/linux/linuxthreads/td_thr_setgregs.c: Ditto.
7210         * libc/sys/linux/linuxthreads/td_thr_setprio.c: Ditto.
7211         * libc/sys/linux/linuxthreads/td_thr_setsigpending.c: Ditto.
7212         * libc/sys/linux/linuxthreads/td_thr_setxregs.c: Ditto.
7213         * libc/sys/linux/linuxthreads/td_thr_sigsetmask.c: Ditto.
7214         * libc/sys/linux/linuxthreads/td_thr_tsd.c: Ditto.
7215         * libc/sys/linux/linuxthreads/td_thr_validate.c: Ditto.
7216
7217 2003-11-05  Jeff Johnston  <jjohnstn@redhat.com>
7218             Artem B. Bityuckiy  <abitytsky@softminecorp.com>
7219
7220         * libc/stdio/vfprintf.c (_VFPRINTF_R): Add support for
7221         %ls, %S, %lc, and %C format specifiers.
7222         (get_arg): Ditto.
7223         * libc/stdio/sprintf.c: Add documentation regarding new
7224         format specifiers added in vfprintf.c.
7225
7226 2003-11-05  Jeff Johnston  <jjohnstn@redhat.com>
7227
7228         * libc/stdlib/wcsrtombs.c (_wcsrtombs_r): Numerous fixes
7229         to make code work as specified in standard.
7230
7231 2003-10-23  Jeff Johnston  <jjohnstn@redhat.com>
7232
7233         * configure.in: Use absolute newlib basedir when forming
7234         CC_FOR_NEWLIB include options.
7235         * configure: Regenerated.
7236
7237 2003-10-23  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
7238
7239         * libc/string/wcsnlen.c: New file.
7240         * libc/include/wchar.h: Add wcsnlen prototype.
7241         * libc/string/Makefile.am: Add wcsnlen support.
7242         * libc/string/Makefile.in: Regenerated.
7243         * libc/string/wcstrings.tex: Add wcsnlen documentation.
7244
7245 2003-10-22  Richard Sandiford  <rsandifo@redhat.com>
7246
7247         * libc/stdlib/exit.c (exit): Handle null _GLOBAL_REENT->_atexits.
7248
7249 2003-10-20  Bob Wilson  <bob.wilson@acm.org>
7250
7251         * libc/locale/locale.c: Use double quotes in code.
7252         * libc/locale/locale.tex: Likewise.
7253         * libc/libc.texinfo: Hyphenate "floating-point".
7254         * libc/machine/necv70/necv70.tex: Likewise.
7255         * libc/stdio/sprintf.c: Likewise.
7256         * libc/stdio/sscanf.c: Likewise.
7257         * libc/stdlib/atof.c: Likewise.
7258         * libc/stdlib/ldtoa.c: Fix comment typo.
7259         * libc/stdlib/div.c: Use @ifnottex instead of @ifinfo.
7260         * libc/stdlib/ldiv.c: Likewise.
7261         * libm/common/s_expm1.c: Likewise.
7262         * libm/common/s_ilogb.c: Hyphenate "floating-point".  Use "nonzero".
7263         * libm/common/s_infinity: Hyphenate "double- and single-precision".
7264         * libm/common/s_nan.c: Likewise.  Also correct the FUNCTION summary.
7265         * libm/common/s_nextafter.c: Fix typo.  Hyphenate "double-precision"
7266         and "floating-point".
7267         * libm/common/s_scalbn.c: Correct the FUNCTION summary.
7268         * libm/math/e_pow.c: Fix comment typo.
7269         * libm/math/math.tex: Hyphenate "single-precision" and "floating-point".
7270         * libm/math/s_asinh.c: Use @ifnottex instead of @ifinfo.
7271         * libm/math/s_atan.c: Likewise.
7272         * libm/math/s_frexp.c: Likewise.  Also use "nonzero".
7273         * libm/math/s_isnan.c: Hyphenate "single-precision" and
7274         "floating-point".  Use "nonzero".
7275         * libm/math/s_ldexp.c: Use @ifnottex instead of @ifinfo.
7276         * libm/math/w_acos.c: Likewise.
7277         * libm/math/w_acosh.c: Likewise.
7278         * libm/math/w_asin.c: Likewise.
7279         * libm/math/w_atan2.c: Likewise.
7280         * libm/math/w_atanh.c: Likewise.
7281         * libm/math/w_cosh.c: Likewise.
7282         * libm/math/w_exp.c: Likewise.
7283         * libm/math/w_exp2.c: Likewise.  Add missing @end and missing @tex
7284         version of 2^x in the description.
7285         * libm/math/w_fmod.c: Use @ifnottex instead of @ifinfo.
7286         * libm/math/w_gamma.c: Likewise.
7287         * libm/math/w_hypot.c: Likewise.
7288         * libm/math/w_j0.c: Likewise.
7289         * libm/math/w_sinh.c: Likewise.
7290         * libm/math/w_pow.c: Replace "exp1.0nt" with "exponent".
7291         * libm/mathfp/mathfp.tex: Hyphenate "single-precision" and
7292         "floating-point".
7293         * libm/mathfp/e_acosh.c: Use @ifnottex instead of @ifinfo.
7294         * libm/mathfp/e_atanh.c: Likewise.
7295         * libm/mathfp/e_hypot.c: Likewise.
7296         * libm/mathfp/er_lgamma.c: Likewise.
7297         * libm/mathfp/s_acos.c: Likewise.
7298         * libm/mathfp/s_asine.c: Likewise.
7299         * libm/mathfp/s_asinh.c: Likewise.
7300         * libm/mathfp/s_atan.c: Likewise.
7301         * libm/mathfp/s_atan2.c: Likewise.
7302         * libm/mathfp/s_atangent.c: Likewise.
7303         * libm/mathfp/s_cosh.c: Likewise.
7304         * libm/mathfp/s_exp.c: Likewise.
7305         * libm/mathfp/s_fmod.c: Likewise.
7306         * libm/mathfp/s_frexp.c: Likewise.  Also use "nonzero".
7307         * libm/mathfp/s_isnan.c: Hyphenate "single-precision" and
7308         "floating-point".  Use "nonzero".
7309         * libm/math/s_pow.c: Replace "exp1.0nt" with "exponent".
7310         * libm/mathfp/s_ldexp.c: Use @ifnottex instead of @ifinfo.
7311         * libm/mathfp/s_sineh.c: Likewise.
7312         * libm/mathfp/w_jn.c: Likewise.
7313
7314 2003-10-15  Alexandre Oliva  <aoliva@redhat.com>
7315
7316         * Makefile.am: Add $(MAKE) comments to multido and multiclean
7317         lines, to enable parallel make.
7318         * Makefile.in: Rebuilt.
7319
7320 2003-10-14  Christopher Faylor  <cgf@redhat.com>
7321
7322         * libc/time/clock.c: Clarify documentation of return value when no
7323         measurement is available.
7324
7325 2003-09-29  Ian Lance Taylor  <ian@wasabisystems.com>
7326
7327         * libm/configure.in: Check libm_machine_dir, not machine_dir.
7328         * libm/configure: Regenerate.
7329         * libm/Makefile.in: Ditto.
7330
7331 2003-09-29  J"orn Rennecke <joern.rennecke@superh.com>
7332
7333         * libc/machine/sh/strncpy.S: New file.
7334         * libc/machine/sh/Makefile.am: Add entry & rule for new file.
7335         * libc/machine/sh/Makefile.in: Regenerate.
7336
7337 2003-09-11  James E Wilson  <wilson@specifixinc.com>
7338
7339         * MAINTAINERS: Update my e-mail address.
7340
7341 2003-09-10  Corinna Vinschen  <corinna@vinschen.de>
7342
7343         * libc/include/sys/unistd.h: Declare function daemon for Cygwin.
7344
7345 2003-09-09  Jeff Johnston  <jjohnstn@redhat.com>
7346
7347         * libc/machine/powerpc/fix64.h: Fix typo for _simdldcheck
7348         prototype.
7349         * libc/machine/powerpc/simdldtoa.c: Remove prototype for
7350         _simdldcheck().  Also add unsigned cast for index variable in
7351         for loop using sizeof operators.
7352         * libc/machine/powerpc/strtoufix32.c: Remove unused variable.
7353         * libc/machine/powerpc/strtosfix64.c: Fix call to _simdldcheck.
7354         * libc/machine/powerpc/strtoufix64.c (_strtoufix64_r): Ditto
7355         plus fix shift calculation for determining if there is a
7356         carry from word2.
7357
7358 2003-09-09  Corinna Vinschen  <corinna@vinschen.de>
7359
7360         * libc/include/grp.h: Don't define setgrfile, group_from_gid and
7361         setgroupent for Cygwin.
7362
7363 2003-09-05  Jeff Johnston  <jjohnstn@redhat.com>
7364
7365         * libc/stdlib/exit.c (exit): Setting of struct _atexit ptr p
7366         is different for _REENT_SMALL than when using regular reent
7367         struct.
7368
7369 2003-09-05  Ben Elliston  <bje@wasabisystems.com>
7370
7371         * libc/ctype/wctype.c (_DEFUN): Remove empty default case, as
7372         modern versions of GCC issue a warning.
7373
7374         * libc/machine/xscale/memcmp.c (memcmp): Strip trailing whitespace
7375         after continuation characters that induces a warning from modern
7376         versions of GCC.
7377
7378 2003-09-04  Ben Elliston  <bje@wasabisystems.com>
7379
7380         * libc/stdlib/mstats.c[_ELIX_LEVEL]: Fix guards.  #ifndef FOO ||
7381         FOO >= 2 is invalid; use #if !defined (FOO) || FOO >= 2 instead.
7382
7383 2003-09-02  Thomas Pfaff  <tpfaff@gmx.net>
7384
7385         * libc/stdlib/atexit.c: Rename _REENT to _GLOBAL_REENT throughout.
7386         * libc/stdlib/exit.c : Ditto.
7387         * libc/stdlib/on_exit.c: Ditto.
7388
7389 2003-08-27  Corinna Vinschen  <corinna@vinschen.de>
7390
7391         * libc/include/reent.h: Define stat64 as __stat64 when
7392         compiling newlib for Cygwin.
7393
7394 2003-08-26  Jeff Johnston  <jjohnstn@redhat.com>
7395
7396         * libc/include/sys/stat.h[__CYGWIN__]: Only define stat64 as
7397         __stat64 when compiling newlib.
7398
7399 2003-08-26  Jeff Johnston  <jjohnstn@redhat.com>
7400
7401         * libc/include/stdio.h: Allow the io64 function prototypes for
7402         Cygwin when compiling newlib.
7403         * libc/include/sys/stat.h[__CYGWIN__]: Define stat64 as __stat64
7404         to expose the Cygwin struct __stat64 type.
7405         * libc/stdio64/fseeko64.c: Use _fstat64_r and pass a struct stat64
7406         pointer.
7407         * libc/stdio64/tmpfile64.c(_tmpfile64_r): Call _fopen64_r.
7408
7409 2003-08-23  Christopher Faylor  <cgf@redhat.com>
7410
7411         * libc/stdio64/fseeko64.c (fseeko64_r): Rename second fseeko64_r
7412         definition to fseeko64.
7413
7414 2003-08-22  Jeff Johnston  <jjohnstn@redhat.com>
7415
7416         * libc/include/sys/reent.h: Add _GLOBAL_REENT macro.
7417         * libc/stdio: Globally remove/replace all references to fp->_data.
7418         Replace with _REENT or _GLOBAL_REENT where appropriate.
7419         * libc/stdio/asprintf.c: Ditto.
7420         * libc/stdio/fclose.c: Ditto.
7421         * libc/stdio/fvwrite.c: Ditto.
7422         * libc/stdio/makebuf.c: Ditto.
7423         * libc/stdio/refill.c: Ditto.
7424         * libc/stdio/local.h: Ditto.
7425         * libc/stdio/setvbuf.c: Ditto.
7426         * libc/stdio/sscanf.c: Ditto.
7427         * libc/stdio/stdio.c: Ditto.
7428         * libc/stdio/ungetc.c: Ditto.
7429         * libc/stdio/vfscanf.c: Ditto.
7430         * libc/stdio/vsscanf.c: Ditto.
7431         * libc/stdio/fopen.c: Ditto.  Also use _fseek_r in _fopen_r.
7432         * libc/stdio/vasprintf.c: Ditto.  Also call _vfprintf_r directly.
7433         * libc/stdio/vsnprintf.c: Ditto.
7434         * libc/stdio/vsprintf.c: Ditto.
7435         * libc/stdio/fcloseall.c(fcloseall): Use _GLOBAL_REENT macro
7436         instead of _REENT to walk file list.
7437         * libc/stdio/fflush.c: Ditto.
7438         * libc/stdio/fgetpos.c: Add reentrant version and have regular
7439         version call reentrant version with _REENT argument.
7440         * libc/stdio/fsetpos.c: Ditto.
7441         * libc/stdio/fseek.c: Ditto.
7442         * libc/stdio/fseeko.c: Ditto.
7443         * libc/stdio/ftell.c: Ditto.
7444         * libc/stdio/ftello.c: Ditto.
7445         * libc/stdio/freopen.c: Ditto.
7446         * libc/stdio/findfp.c: Use _GLOBAL_REENT pointer when adding
7447         new files to chain.  Also use _GLOBAL_REENT pointer for
7448         cleaning up.
7449         * libc/stdio/fiprintf.c: Reformatted to minimize duplicate code.
7450         * libc/stdio/siprintf.c: Ditto.
7451         * libc/stdio/iprintf.c: Ditto.
7452         * libc/stdio/fprintf.c: Ditto.
7453         * libc/stdio/printf.c: Ditto.
7454         * libc/stdio/snprintf.c: Call _vfprintf_r directly.
7455         * libc/stdio/sprintf.c: Ditto.
7456         * libc/stdio/vprintf.c: Ditto.  Also add _REENT_ONLY check.
7457         * libc/stdio/rewind.c: Call _fseek_r directly.
7458         * libc/stdio/tmpfile.c: Call _fopen_r and _remove_r directly.
7459         * libc/stdio/vfprintf.c (_VFPRINTF_R): Change _r routines to use
7460         data pointer.
7461         (get_arg): Add extra struct _reent pointer argument.
7462         * libc/stdio64/fgetpos64.c: Add _r versions, remove any reference
7463         to fp->_data.
7464         * libc/stdio64/fopen64.c: Ditto.
7465         * libc/stdio64/freopen64.c: Ditto.
7466         * libc/stdio64/fsetpos64.c: Ditto.
7467         * libc/stdio64/ftello64.c: Ditto.
7468         * libc/stdio64/local64.h: Ditto.
7469         * libc/stdio64/stdio64.c: Ditto.
7470         * libc/stdio64/fseeko64.c: Ditto plus use _fstat_r instead of
7471         _fstat64_r for the meantime.
7472
7473 2003-08-19  Jeff Johnston  <jjohnstn@redhat.com>
7474
7475         * libc/stdlib/mallocr.c (mALLOc, rEALLOc, mEMEALIGn): Enhance
7476         overflow detection.
7477
7478 2003-08-13  Aldy Hernandez  <aldyh@redhat.com>
7479
7480         * libc/machine/powerpc/machine/stdlib.h: Wrap SPE functions in
7481         extern "C".
7482
7483 2003-08-13  Jeff Johnston  <jjohnstn@redhat.com>
7484
7485         * libc/include/math.h: Add prototypes for __signbitf and
7486         __signbitd.
7487
7488 2003-07-31  Jeff Johnston  <jjohnstn@redhat.com>
7489
7490         * libc/ctype/iswalpha.c: Fix calls to __jp2uc to pass the
7491         correct type of conversion when dealing with EUCJP or SJIS.
7492         * libc/ctype/iswblank.c: Ditto.
7493         * libc/ctype/iswcntrl.c: Ditto.
7494         * libc/ctype/iswprint.c: Ditto.
7495         * libc/ctype/iswpunct.c: Ditto.
7496         * libc/ctype/iswspace.c: Ditto.
7497         * libc/ctype/towlower.c: Ditto.
7498         * libc/ctype/towupper.c: Ditto.
7499
7500 2003-07-31  Nick Clifton  <nickc@redhat.com>
7501
7502         * libc/sys/sysnecv850/crt0.S (_start): Allocate 4 slots on stack
7503         before calling main, in case it saves its argument registers.
7504         Remove reference to deleted v850ea port.
7505         * configure.host: Remove reference to deleted v850ea port.
7506         Do not use -mv850 when building for v850e target.  This
7507         prevents the ctbp system register from being initialised.
7508
7509 2003-07-29  Honda Hiroki  <hhonda@ipflex.com>
7510
7511         * libc/stdio/vfprintf.c: Set output size to 1 when
7512         we have %f format with precision 0 and # flag not specified.
7513
7514 2003-07-29  Alexandre Oliva  <aoliva@redhat.com>
7515
7516         * libc/machine/mn10300/setjmp.S: Never emit both .am33 and
7517         .am33_2.
7518
7519 2003-07-25  Christopher Faylor  <cgf@redhat.com>
7520
7521         * libc/stdio64/fdopen64.c: Include sys/lock.h.
7522
7523 2003-07-25  Christopher Faylor  <cgf@redhat.com>
7524
7525         * configure.host: Find cygwin include directory, when appropriate.
7526
7527 2003-07-24  Christopher Faylor  <cgf@redhat.com>
7528
7529         * libc/stdio64/fdopen64.c: New file.
7530         * libc/stdio64/Makefile.am (LIB_OBJS): Add fdopen64.o
7531         * libc/stdio64/Makefile.in: Regenerate.
7532         * libc/include/stdio.h (fdopen64): Define.
7533         * libc/include/stdio.h (_fdopen64_r): Ditto.
7534
7535 2003-07-10  Alexandre Oliva  <aoliva@redhat.com>
7536
7537         2000-04-27  Alexandre Oliva  <aoliva@cygnus.com>
7538         * libc/include/machine/setjmp.h (_JBLEN, AM33/2.0): Set to 26.
7539         * libc/machine/mn10300/setjmp.S (setjmp, longjmp): Save and
7540         restore callee-saved FP registers.
7541
7542 2003-07-10  J"orn Rennecke <joern.rennecke@superh.com>
7543
7544         * libc/include/sys/unistd.h (ftruncate, truncate): Also declare
7545         for __sh__.
7546         * libc/sys/sh/Makefile.am (lib_a_SOURCES): Add ftruncate.c and
7547         truncate.c.
7548         * libc/sys/sh/Makefile.in: Regenerate.
7549         * libc/sys/sh/sys/syscall.h: (SYS_truncate, SYS_ftruncate): Define.
7550         * libc/sys/sh/ftruncate.c: New file.
7551         * libc/sys/sh/truncate.c: Likewise.
7552
7553 2003-07-09  Alexandre Oliva  <aoliva@redhat.com>
7554
7555         * libc/include/math.h (nan, nanf): Update prototype to C99.
7556         * libm/common/s_nan.c (nan): Likewise.
7557         * libm/common/s_nanf.c (nanf, nan): Likewise.
7558         * libc/sys/linux/cmath/math_private.h (nan, nanf): Likewise.
7559
7560 2003-07-07  Jeff Johnston  <jjohnstn@redhat.com>
7561
7562         * libc/include/stdbool.h: Removed as this is defined by gcc.
7563
7564 2003-07-03  Shaun Jackman  <sjackman@pathwayconnect.com>
7565
7566         * libc/include/stdbool.h: New header file defined by C99.
7567
7568 2003-07-02  Jeff Johnston  <jjohnstn@redhat.com>
7569
7570         * libc/include/sys/types.h (int8_t): Make signed.
7571
7572 2003-07-02  Jeff Johnston  <jjohnstn@redhat.com>
7573
7574         * libc/sys/linux/include/mqueue.h: Add include of <sys/fcntl.h>.
7575
7576 2003-06-27  Jose Goncalves  <jose.goncalves@inov.pt>
7577
7578         * libc/sys/linux/mq_open.c (mq_open): Only set created flag
7579         on if we actually created the shared memory file exclusively.
7580
7581 2003-06-27  Joe Vornehm  <joev@mitre.org>
7582
7583         * libm/common/s_fpclassify.c (__fpclassifyf): Fix
7584         comparisons to account for unsigned internal value w.
7585
7586 2003-06-26  Jeff Johnston  <jjohnstn@redhat.com>
7587
7588         * libc/sys/linux/mq_open.c (mq_open): Must allocate rdbuf and
7589         wrbuf for a non-creating open.
7590
7591 2003-06-24  Kazu Hirata  <kazu@cs.umass.edu>
7592
7593         * libc/machine/h8300/setarch.h: New.
7594         * libc/machine/h8300/memcpy.S: Use it.
7595         * libc/machine/h8300/memset.S: Likewise.
7596         * libc/machine/h8300/reg_memcpy.S: Likewise.
7597         * libc/machine/h8300/reg_memset.S: Likewise.
7598         * libc/machine/h8300/setjmp.S: Likewise.
7599         * libc/machine/h8300/strcmp.S: Likewise.
7600
7601 2003-06-24  Richard Sandiford  <rsandifo@redhat.com>
7602
7603         * libc/sys/h8300hms/crt0.S (_start): Fix register sizes in call
7604         to atexit().
7605
7606 2003-06-20  Jeff Johnston  <jjohnstn@redhat.com>
7607
7608         * configure.host (iq2000): Add tabs.
7609
7610 2003-06-20  Jeff Johnston  <jjohnstn@redhat.com>
7611
7612         * libc/include/sys/reent.h (_REENT_INIT_PTR): Fix macros
7613         to handle latest on_exit change.
7614         * libc/sys/linux/Makefile.am: Remove special compilation
7615         for malloc.c and mcheck.c.
7616         * libc/sys/linux/Makefile.in: Regenerated.
7617         * libc/sys/linux/mntent.c: Add definition of _LIBC flag
7618         after including <features.h>.
7619         * libc/sys/linux/mcheck.c: Ditto.
7620         * libc/sys/linux/malloc.c: Ditto plus define _GNU_SOURCE
7621         for <features.h>.
7622         * libc/sys/linux/intl/Makefile.am: Remove -D_LIBC and
7623         add -DNOT_IN_libc to C flags.
7624         * libc/sys/linux/intl/Makefile.in: Regenerated.
7625         * libc/sys/linux/intl/config.h: Add definition of _LIBC.
7626         * libc/sys/linux/linuxthreads/semaphore.h: Include
7627         <bits/pthreadtypes.h>.
7628         * libc/sys/linux/sys/dirent.h: Define _LIBC and NOT_IN_libc after
7629         including <features.h>.
7630         * libc/sys/linux/sys/lock.h: Ditto.
7631
7632 2003-06-11  Nick Clifton  <nickc@redhat.com>
7633
7634         * libc/reent/reent.c (reclaim_reent): Fix typo in code to free
7635         _on_exit_args_ptr.
7636
7637 2003-06-10  Stan Cox  <scox@redhat.com>
7638             Anthony Green  <green@redhat.com>
7639
7640         * configure.host: Add iq2000 support.
7641         * newlib/libc/include/machine/ieeefp.h: Ditto.
7642         * newlib/libc/include/machine/setjmp.h: Ditto.
7643         * libc/machine/iq2000, libc/machine/iq2000/setjmp.S,
7644         libc/machine/iq2000/aclocal.m4, libc/machine/iq2000/configure,
7645         libc/machine/iq2000/configure.in, libc/machine/iq2000/Makefile.am,
7646         libc/machine/iq2000/Makefile.in: New files.
7647
7648 2003-06-10  Richard Sandiford  <rsandifo@redhat.com>
7649
7650         * libc/sys/h8300hms/setarch.h: New file.
7651         * libc/sys/h8300hms/close.S, libc/sys/h8300hms/fstat.S,
7652         libc/sys/h8300hms/lseek.S, libc/sys/h8300hms/open.S,
7653         libc/sys/h8300hms/read.S, libc/sys/h8300hms/stat.S,
7654         libc/sys/h8300hms/write.S, libc/sys/h8300hms/crt0.S: Use it.
7655
7656 2003-06-06  Jeff Johnston  <jjohnstn@redhat.com>
7657
7658         * libc/argz/argz_add.c: Change to use _DEFUN macro for function
7659         definition.
7660         * libc/argz/argz_add_sep.c: Ditto.
7661         * libc/argz/argz_append.c libc/argz/argz_count.c: Ditto.
7662         * libc/argz/argz_create.c libc/argz/argz_create_sep.c: Ditto.
7663         * libc/argz/argz_delete.c libc/argz/argz_extract.c: Ditto.
7664         * libc/argz/argz_insert.c libc/argz/argz_next.c: Ditto.
7665         * libc/argz/argz_replace.c libc/argz/argz_stringify.c: Ditto.
7666         * libc/argz/envz_add.c libc/argz/envz_entry.c: Ditto.
7667         * libc/argz/envz_get.c libc/argz/envz_merge.c: Ditto.
7668         * libc/argz/envz_remove.c libc/argz/envz_strip.c: Ditto.
7669         * libc/locale/nl_langinfo.c libc/misc/ffs.c: Ditto.
7670         * libc/posix/closedir.c libc/posix/creat.c: Ditto.
7671         * libc/posix/execl.c libc/posix/execle.c: Ditto.
7672         * libc/posix/execlp.c libc/posix/execve.c: Ditto.
7673         * libc/posix/isatty.c libc/posix/opendir.c: Ditto.
7674         * libc/posix/popen.c libc/posix/readdir.c: Ditto.
7675         * libc/posix/readdir_r.c libc/posix/rewinddir.c: Ditto.
7676         * libc/posix/scandir.c libc/posix/seekdir.c: Ditto.
7677         * libc/posix/telldir.c libc/search/hcreate.c: Ditto.
7678         * libc/search/tdelete.c libc/search/tdestroy.c: Ditto.
7679         * libc/search/tfind.c libc/search/tsearch.c: Ditto.
7680         * libc/search/twalk.c libc/signal/signal.c: Ditto.
7681
7682 2003-06-05  Nick Clifton  <nickc@redhat.com>
7683
7684         * libc/include/sys/reent.h (struct _on_exit_args): New
7685         structure containing fields used by the on_exit() function.
7686         (struct _atexit): Include struct _on_exit_args.  For
7687         _REENT_SMALL do his via a pointer that is initialised when
7688         needed.
7689         * libc/reent/reent.c (_reclaim_reent): Free the _on_exit_args
7690         structure, if one has been allocated.
7691         * libc/stdlib/atexit.c (atexit): Update indirection to
7692         _fntypes field.
7693         * libc/stdlib/on_exit.c (on_exit): Indirect via the
7694         _on_exit_args structure.  For _REENT_SMALL, allocate a
7695         structure if one does not exist.
7696         * libc/stdlib/exit.c (exit): Indirect via the _on_exit_args
7697         structure.
7698
7699 2003-06-04  Jeff Johnston  <jjohnstn@redhat.com>
7700
7701         * libc/sys/linux/net/Makefile.am: Remove extraneous markers.
7702         * libc/sys/linux/net/Makefile.in: Regenerated.
7703
7704 2003-06-03  Jeff Johnston  <jjohnstn@redhat.com>
7705
7706         * libc/reent/execr.c: Use _DEFUN macro for function declaration.
7707         * libc/reent/fcntlr.c: Ditto.
7708         * libc/reent/fstat64r.c: Ditto.
7709         * libc/reent/linkr.c: Ditto.
7710         * libc/reent/lseek64r.c: Ditto.
7711         * libc/reent/lseekr.c: Ditto.
7712         * libc/reent/openr.c: Ditto.
7713         * libc/reent/readr.c: Ditto.
7714         * libc/reent/reent.c: Ditto.
7715         * libc/reent/sbrkr.c: Ditto.
7716         * libc/reent/signalr.c: Ditto.
7717         * libc/reent/signgam.c: Ditto.
7718         * libc/reent/statr.c: Ditto.
7719         * libc/reent/timer.c: Ditto.
7720         * libc/reent/unlinkr.c: Ditto.
7721         * libc/reent/writer.c: Ditto.
7722         * libc/syscalls/sysclose.c: Ditto.
7723         * libc/syscalls/sysexecve.c: Ditto.
7724         * libc/syscalls/sysfcntl.c: Ditto.
7725         * libc/syscalls/sysfork.c: Ditto.
7726         * libc/syscalls/sysfstat.c: Ditto.
7727         * libc/syscalls/sysgetpid.c: Ditto.
7728         * libc/syscalls/sysgettod.c: Ditto.
7729         * libc/syscalls/syskill.c: Ditto.
7730         * libc/syscalls/syslink.c: Ditto.
7731         * libc/syscalls/syslseek.c: Ditto.
7732         * libc/syscalls/sysopen.c: Ditto.
7733         * libc/syscalls/sysread.c: Ditto.
7734         * libc/syscalls/syssbrk.c: Ditto.
7735         * libc/syscalls/sysstat.c: Ditto.
7736         * libc/syscalls/systimes.c: Ditto.
7737         * libc/syscalls/sysunlink.c: Ditto.
7738         * libc/syscalls/syswait.c: Ditto.
7739         * libc/syscalls/syswrite.c: Ditto.
7740
7741 2003-06-03  Till Straumann  <strauman@SLAC.Stanford.EDU>
7742
7743         * libc/time/tzset_r.c: Change local variables that are
7744         set via sscanf using the %h format specifier to be unsigned short
7745         instead of int.
7746
7747 2003-05-30  Kelley Cook  <kelleycook@wideopenwest.com>
7748
7749         * configure.host:  Allow i[34567]86 variant.
7750         * configure.in: Likewise.
7751         * README: Likewise to the docs.
7752         * configure: Regenerated.
7753         * Makefile.in: Ditto.
7754
7755 2003-05-28  Jeff Johnston  <jjohnstn@redhat.com>
7756             Tom Fitzsimmons  <fitzsim@redhat.com>
7757
7758         * configure.in: Add iconvdata support for x86 linux.
7759         * configure: Regenerated.
7760         * libc/sys/linux/Makefile.am: Add EL/IX level 3 network, dynamic
7761         library, iconv, and linuxthreads support.
7762         * libc/sys/linux/configure.in: Ditto.
7763         * libc/sys/linux/Makefile.in: Regenerated.
7764         * libc/sys/linux/configure: Ditto.
7765         * iconvdata/EUC-JP.irreversible: New file.
7766         * iconvdata/Makefile.am: Ditto.
7767         * iconvdata/Makefile.in: Ditto.
7768         * iconvdata/SJIS.irreversible: Ditto.
7769         * iconvdata/aclocal.m4: Ditto.
7770         * iconvdata/configure: Ditto.
7771         * iconvdata/configure.in: Ditto.
7772         * iconvdata/dummy.c: Ditto.
7773         * iconvdata/euc-jp.c: Ditto.
7774         * iconvdata/gconv-modules: Ditto.
7775         * iconvdata/jis0201.c: Ditto.
7776         * iconvdata/jis0201.h: Ditto.
7777         * iconvdata/jis0208.c: Ditto.
7778         * iconvdata/jis0208.h: Ditto.
7779         * iconvdata/jis0212.c: Ditto.
7780         * iconvdata/jis0212.h: Ditto.
7781         * iconvdata/sjis.c: Ditto.
7782         * libc/include/errno.h: Protect definition of error_t.
7783         * libc/sys/linux/gethostid.c: New file.
7784         * libc/sys/linux/sethostid.c: Ditto.
7785         * libc/sys/linux/dl/Makefile.am: Ditto.
7786         * libc/sys/linux/dl/Makefile.in: Ditto.
7787         * libc/sys/linux/dl/abi-tag.h: Ditto.
7788         * libc/sys/linux/dl/atomicity.h: Ditto.
7789         * libc/sys/linux/dl/dl-addr.c: Ditto.
7790         * libc/sys/linux/dl/dl-cache.c: Ditto.
7791         * libc/sys/linux/dl/dl-cache.h: Ditto.
7792         * libc/sys/linux/dl/dl-close.c: Ditto.
7793         * libc/sys/linux/dl/dl-debug.c: Ditto.
7794         * libc/sys/linux/dl/dl-deps.c: Ditto.
7795         * libc/sys/linux/dl/dl-dst.h: Ditto.
7796         * libc/sys/linux/dl/dl-error.c: Ditto.
7797         * libc/sys/linux/dl/dl-fini.c: Ditto.
7798         * libc/sys/linux/dl/dl-init.c: Ditto.
7799         * libc/sys/linux/dl/dl-iteratephdr.c: Ditto.
7800         * libc/sys/linux/dl/dl-libc.c: Ditto.
7801         * libc/sys/linux/dl/dl-librecon.h: Ditto.
7802         * libc/sys/linux/dl/dl-load.c: Ditto.
7803         * libc/sys/linux/dl/dl-lookup.c: Ditto.
7804         * libc/sys/linux/dl/dl-lookupcfg.h: Ditto.
7805         * libc/sys/linux/dl/dl-minimal.c: Ditto.
7806         * libc/sys/linux/dl/dl-misc.c: Ditto.
7807         * libc/sys/linux/dl/dl-object.c: Ditto.
7808         * libc/sys/linux/dl/dl-open.c: Ditto.
7809         * libc/sys/linux/dl/dl-osinfo.h: Ditto.
7810         * libc/sys/linux/dl/dl-profile.c: Ditto.
7811         * libc/sys/linux/dl/dl-profstub.c: Ditto.
7812         * libc/sys/linux/dl/dl-reloc.c: Ditto.
7813         * libc/sys/linux/dl/dl-runtime.c: Ditto.
7814         * libc/sys/linux/dl/dl-support.c: Ditto.
7815         * libc/sys/linux/dl/dl-sym.c: Ditto.
7816         * libc/sys/linux/dl/dl-version.c: Ditto.
7817         * libc/sys/linux/dl/dlfcn.h: Ditto.
7818         * libc/sys/linux/dl/do-lookup.h: Ditto.
7819         * libc/sys/linux/dl/do-rel.h: Ditto.
7820         * libc/sys/linux/dl/dynamic-link.h: Ditto.
7821         * libc/sys/linux/dl/kernel-features.h: Ditto.
7822         * libc/sys/linux/dl/ldsodefs.h: Ditto.
7823         * libc/sys/linux/dl/libintl.h: Ditto.
7824         * libc/sys/linux/dl/trusted-dirs.h: Ditto.
7825         * libc/sys/linux/dl/unsecvars.h: Ditto.
7826         * libc/sys/linux/iconv/Makefile.am: Ditto.
7827         * libc/sys/linux/iconv/Makefile.in: Ditto.
7828         * libc/sys/linux/iconv/categories.def: Ditto.
7829         * libc/sys/linux/iconv/dummy-repertoire.c: Ditto.
7830         * libc/sys/linux/iconv/gconv.c: Ditto.
7831         * libc/sys/linux/iconv/gconv_builtin.c: Ditto.
7832         * libc/sys/linux/iconv/gconv_builtin.h: Ditto.
7833         * libc/sys/linux/iconv/gconv_cache.c: Ditto.
7834         * libc/sys/linux/iconv/gconv_charset.h: Ditto.
7835         * libc/sys/linux/iconv/gconv_close.c: Ditto.
7836         * libc/sys/linux/iconv/gconv_conf.c: Ditto.
7837         * libc/sys/linux/iconv/gconv_db.c: Ditto.
7838         * libc/sys/linux/iconv/gconv_dl.c: Ditto.
7839         * libc/sys/linux/iconv/gconv_int.h: Ditto.
7840         * libc/sys/linux/iconv/gconv_open.c: Ditto.
7841         * libc/sys/linux/iconv/gconv_simple.c: Ditto.
7842         * libc/sys/linux/iconv/gconv_trans.c: Ditto.
7843         * libc/sys/linux/iconv/hash-string.h: Ditto.
7844         * libc/sys/linux/iconv/iconv.c: Ditto.
7845         * libc/sys/linux/iconv/iconv.h: Ditto.
7846         * libc/sys/linux/iconv/iconv_charmap.c: Ditto.
7847         * libc/sys/linux/iconv/iconv_close.c: Ditto.
7848         * libc/sys/linux/iconv/iconv_open.c: Ditto.
7849         * libc/sys/linux/iconv/iconvconfig.c: Ditto.
7850         * libc/sys/linux/iconv/iconvconfig.h: Ditto.
7851         * libc/sys/linux/iconv/loadinfo.h: Ditto.
7852         * libc/sys/linux/iconv/localeinfo.h: Ditto.
7853         * libc/sys/linux/iconv/loop.c: Ditto.
7854         * libc/sys/linux/iconv/skeleton.c: Ditto.
7855         * libc/sys/linux/iconv/strtab.c: Ditto.
7856         * libc/sys/linux/include/dl-hash.h: Ditto.
7857         * libc/sys/linux/include/dlfcn.h: Ditto.
7858         * libc/sys/linux/include/fnmatch.h: Ditto.
7859         * libc/sys/linux/include/gconv.h: Ditto.
7860         * libc/sys/linux/include/glob.h: Ditto.
7861         * libc/sys/linux/include/hesiod.h: Ditto.
7862         * libc/sys/linux/include/ifaddrs.h: Ditto.
7863         * libc/sys/linux/include/libc_private.h: Ditto.
7864         * libc/sys/linux/include/link.h: Ditto.
7865         * libc/sys/linux/include/namespace.h: Ditto.
7866         * libc/sys/linux/include/netconfig.h: Ditto.
7867         * libc/sys/linux/include/netdb.h: Ditto.
7868         * libc/sys/linux/include/nsswitch.h: Ditto.
7869         * libc/sys/linux/include/regex.h: Ditto.
7870         * libc/sys/linux/include/resolv.h: Ditto.
7871         * libc/sys/linux/include/rune.h: Ditto.
7872         * libc/sys/linux/include/runetype.h: Ditto.
7873         * libc/sys/linux/include/semaphore.h: Ditto.
7874         * libc/sys/linux/include/setlocale.h: Ditto.
7875         * libc/sys/linux/include/un-namespace.h: Ditto.
7876         * libc/sys/linux/include/wordexp.h: Ditto.
7877         * libc/sys/linux/include/arpa/ftp.h: Ditto.
7878         * libc/sys/linux/include/arpa/inet.h: Ditto.
7879         * libc/sys/linux/include/arpa/nameser.h: Ditto.
7880         * libc/sys/linux/include/arpa/nameser_compat.h: Ditto.
7881         * libc/sys/linux/include/arpa/telnet.h: Ditto.
7882         * libc/sys/linux/include/arpa/tftp.h: Ditto.
7883         * libc/sys/linux/include/net/bpf.h: Ditto.
7884         * libc/sys/linux/include/net/bpf_compat.h: Ditto.
7885         * libc/sys/linux/include/net/bpfdesc.h: Ditto.
7886         * libc/sys/linux/include/net/bridge.h: Ditto.
7887         * libc/sys/linux/include/net/ethernet.h: Ditto.
7888         * libc/sys/linux/include/net/fddi.h: Ditto.
7889         * libc/sys/linux/include/net/if.h: Ditto.
7890         * libc/sys/linux/include/net/if_arc.h: Ditto.
7891         * libc/sys/linux/include/net/if_arp.h: Ditto.
7892         * libc/sys/linux/include/net/if_atm.h: Ditto.
7893         * libc/sys/linux/include/net/if_dl.h: Ditto.
7894         * libc/sys/linux/include/net/if_gif.h: Ditto.
7895         * libc/sys/linux/include/net/if_ieee80211.h: Ditto.
7896         * libc/sys/linux/include/net/if_llc.h: Ditto.
7897         * libc/sys/linux/include/net/if_media.h: Ditto.
7898         * libc/sys/linux/include/net/if_mib.h: Ditto.
7899         * libc/sys/linux/include/net/if_ppp.h: Ditto.
7900         * libc/sys/linux/include/net/if_pppvar.h: Ditto.
7901         * libc/sys/linux/include/net/if_slvar.h: Ditto.
7902         * libc/sys/linux/include/net/if_sppp.h: Ditto.
7903         * libc/sys/linux/include/net/if_stf.h: Ditto.
7904         * libc/sys/linux/include/net/if_tap.h: Ditto.
7905         * libc/sys/linux/include/net/if_tapvar.h: Ditto.
7906         * libc/sys/linux/include/net/if_tun.h: Ditto.
7907         * libc/sys/linux/include/net/if_tunvar.h: Ditto.
7908         * libc/sys/linux/include/net/if_types.h: Ditto.
7909         * libc/sys/linux/include/net/if_var.h: Ditto.
7910         * libc/sys/linux/include/net/if_vlan_var.h: Ditto.
7911         * libc/sys/linux/include/net/intrq.h: Ditto.
7912         * libc/sys/linux/include/net/iso88025.h: Ditto.
7913         * libc/sys/linux/include/net/net_osdep.h: Ditto.
7914         * libc/sys/linux/include/net/netisr.h: Ditto.
7915         * libc/sys/linux/include/net/pfil.h: Ditto.
7916         * libc/sys/linux/include/net/pfkeyv2.h: Ditto.
7917         * libc/sys/linux/include/net/ppp_comp.h: Ditto.
7918         * libc/sys/linux/include/net/ppp_defs.h: Ditto.
7919         * libc/sys/linux/include/net/radix.h: Ditto.
7920         * libc/sys/linux/include/net/raw_cb.h: Ditto.
7921         * libc/sys/linux/include/net/route.h: Ditto.
7922         * libc/sys/linux/include/net/slcompress.h: Ditto.
7923         * libc/sys/linux/include/net/slip.h: Ditto.
7924         * libc/sys/linux/include/net/zlib.h: Ditto.
7925         * libc/sys/linux/include/netinet/icmp6.h: Ditto.
7926         * libc/sys/linux/include/netinet/icmp_var.h: Ditto.
7927         * libc/sys/linux/include/netinet/if_atm.h: Ditto.
7928         * libc/sys/linux/include/netinet/if_ether.h: Ditto.
7929         * libc/sys/linux/include/netinet/igmp.h: Ditto.
7930         * libc/sys/linux/include/netinet/igmp_var.h: Ditto.
7931         * libc/sys/linux/include/netinet/in.h: Ditto.
7932         * libc/sys/linux/include/netinet/in_gif.h: Ditto.
7933         * libc/sys/linux/include/netinet/in_pcb.h: Ditto.
7934         * libc/sys/linux/include/netinet/in_systm.h: Ditto.
7935         * libc/sys/linux/include/netinet/in_var.h: Ditto.
7936         * libc/sys/linux/include/netinet/ip.h: Ditto.
7937         * libc/sys/linux/include/netinet/ip6.h: Ditto.
7938         * libc/sys/linux/include/netinet/ip_dummynet.h: Ditto.
7939         * libc/sys/linux/include/netinet/ip_ecn.h: Ditto.
7940         * libc/sys/linux/include/netinet/ip_encap.h: Ditto.
7941         * libc/sys/linux/include/netinet/ip_flow.h: Ditto.
7942         * libc/sys/linux/include/netinet/ip_fw.h: Ditto.
7943         * libc/sys/linux/include/netinet/ip_icmp.h: Ditto.
7944         * libc/sys/linux/include/netinet/ip_mroute.h: Ditto.
7945         * libc/sys/linux/include/netinet/ip_var.h: Ditto.
7946         * libc/sys/linux/include/netinet/ipprotosw.h: Ditto.
7947         * libc/sys/linux/include/netinet/tcp.h: Ditto.
7948         * libc/sys/linux/include/netinet/tcp_debug.h: Ditto.
7949         * libc/sys/linux/include/netinet/tcp_fsm.h: Ditto.
7950         * libc/sys/linux/include/netinet/tcp_seq.h: Ditto.
7951         * libc/sys/linux/include/netinet/tcp_timer.h: Ditto.
7952         * libc/sys/linux/include/netinet/tcp_var.h: Ditto.
7953         * libc/sys/linux/include/netinet/tcpip.h: Ditto.
7954         * libc/sys/linux/include/netinet/udp.h: Ditto.
7955         * libc/sys/linux/include/netinet/udp_var.h: Ditto.
7956         * libc/sys/linux/include/netinet6/ah.h: Ditto.
7957         * libc/sys/linux/include/netinet6/ah6.h: Ditto.
7958         * libc/sys/linux/include/netinet6/esp.h: Ditto.
7959         * libc/sys/linux/include/netinet6/esp6.h: Ditto.
7960         * libc/sys/linux/include/netinet6/esp_rijndael.h: Ditto.
7961         * libc/sys/linux/include/netinet6/icmp6.h: Ditto.
7962         * libc/sys/linux/include/netinet6/in6.h: Ditto.
7963         * libc/sys/linux/include/netinet6/in6_gif.h: Ditto.
7964         * libc/sys/linux/include/netinet6/in6_ifattach.h: Ditto.
7965         * libc/sys/linux/include/netinet6/in6_pcb.h: Ditto.
7966         * libc/sys/linux/include/netinet6/in6_prefix.h: Ditto.
7967         * libc/sys/linux/include/netinet6/in6_var.h: Ditto.
7968         * libc/sys/linux/include/netinet6/ip6.h: Ditto.
7969         * libc/sys/linux/include/netinet6/ip6_ecn.h: Ditto.
7970         * libc/sys/linux/include/netinet6/ip6_fw.h: Ditto.
7971         * libc/sys/linux/include/netinet6/ip6_mroute.h: Ditto.
7972         * libc/sys/linux/include/netinet6/ip6_var.h: Ditto.
7973         * libc/sys/linux/include/netinet6/ip6protosw.h: Ditto.
7974         * libc/sys/linux/include/netinet6/ipcomp.h: Ditto.
7975         * libc/sys/linux/include/netinet6/ipcomp6.h: Ditto.
7976         * libc/sys/linux/include/netinet6/ipsec.h: Ditto.
7977         * libc/sys/linux/include/netinet6/ipsec6.h: Ditto.
7978         * libc/sys/linux/include/netinet6/mld6_var.h: Ditto.
7979         * libc/sys/linux/include/netinet6/nd6.h: Ditto.
7980         * libc/sys/linux/include/netinet6/pim6.h: Ditto.
7981         * libc/sys/linux/include/netinet6/pim6_var.h: Ditto.
7982         * libc/sys/linux/include/netinet6/raw_ip6.h: Ditto.
7983         * libc/sys/linux/include/netinet6/scope6_var.h: Ditto.
7984         * libc/sys/linux/include/netinet6/tcp6_var.h: Ditto.
7985         * libc/sys/linux/include/netinet6/udp6_var.h: Ditto.
7986         * libc/sys/linux/include/netns/idp.h: Ditto.
7987         * libc/sys/linux/include/netns/idp_var.h: Ditto.
7988         * libc/sys/linux/include/netns/ns.h: Ditto.
7989         * libc/sys/linux/include/netns/ns_error.h: Ditto.
7990         * libc/sys/linux/include/netns/ns_if.h: Ditto.
7991         * libc/sys/linux/include/netns/ns_pcb.h: Ditto.
7992         * libc/sys/linux/include/netns/sp.h: Ditto.
7993         * libc/sys/linux/include/netns/spidp.h: Ditto.
7994         * libc/sys/linux/include/netns/spp_debug.h: Ditto.
7995         * libc/sys/linux/include/netns/spp_timer.h: Ditto.
7996         * libc/sys/linux/include/netns/spp_var.h: Ditto.
7997         * libc/sys/linux/include/rpc/Makefile: Ditto.
7998         * libc/sys/linux/include/rpc/auth.h: Ditto.
7999         * libc/sys/linux/include/rpc/auth_des.h: Ditto.
8000         * libc/sys/linux/include/rpc/auth_kerb.h: Ditto.
8001         * libc/sys/linux/include/rpc/auth_unix.h: Ditto.
8002         * libc/sys/linux/include/rpc/clnt.h: Ditto.
8003         * libc/sys/linux/include/rpc/clnt_soc.h: Ditto.
8004         * libc/sys/linux/include/rpc/clnt_stat.h: Ditto.
8005         * libc/sys/linux/include/rpc/des.h: Ditto.
8006         * libc/sys/linux/include/rpc/des_crypt.h: Ditto.
8007         * libc/sys/linux/include/rpc/nettype.h: Ditto.
8008         * libc/sys/linux/include/rpc/pmap_clnt.h: Ditto.
8009         * libc/sys/linux/include/rpc/pmap_prot.h: Ditto.
8010         * libc/sys/linux/include/rpc/pmap_rmt.h: Ditto.
8011         * libc/sys/linux/include/rpc/raw.h: Ditto.
8012         * libc/sys/linux/include/rpc/rpc.h: Ditto.
8013         * libc/sys/linux/include/rpc/rpc_com.h: Ditto.
8014         * libc/sys/linux/include/rpc/rpc_msg.h: Ditto.
8015         * libc/sys/linux/include/rpc/rpcb_clnt.h: Ditto.
8016         * libc/sys/linux/include/rpc/rpcb_prot.h: Ditto.
8017         * libc/sys/linux/include/rpc/rpcb_prot.x: Ditto.
8018         * libc/sys/linux/include/rpc/rpcent.h: Ditto.
8019         * libc/sys/linux/include/rpc/svc.h: Ditto.
8020         * libc/sys/linux/include/rpc/svc_auth.h: Ditto.
8021         * libc/sys/linux/include/rpc/svc_dg.h: Ditto.
8022         * libc/sys/linux/include/rpc/svc_soc.h: Ditto.
8023         * libc/sys/linux/include/rpc/types.h: Ditto.
8024         * libc/sys/linux/include/rpc/xdr.h: Ditto.
8025         * libc/sys/linux/intl/Makefile.am: Ditto.
8026         * libc/sys/linux/intl/Makefile.in: Ditto.
8027         * libc/sys/linux/intl/bindtextdom.c: Ditto.
8028         * libc/sys/linux/intl/catgets.c: Ditto.
8029         * libc/sys/linux/intl/catgetsinfo.h: Ditto.
8030         * libc/sys/linux/intl/config.h: Ditto.
8031         * libc/sys/linux/intl/dcgettext.c: Ditto.
8032         * libc/sys/linux/intl/dcigettext.c: Ditto.
8033         * libc/sys/linux/intl/dcngettext.c: Ditto.
8034         * libc/sys/linux/intl/dgettext.c: Ditto.
8035         * libc/sys/linux/intl/dngettext.c: Ditto.
8036         * libc/sys/linux/intl/explodename.c: Ditto.
8037         * libc/sys/linux/intl/finddomain.c: Ditto.
8038         * libc/sys/linux/intl/gettext.c: Ditto.
8039         * libc/sys/linux/intl/gettext.h: Ditto.
8040         * libc/sys/linux/intl/gettextP.h: Ditto.
8041         * libc/sys/linux/intl/hash-string.h: Ditto.
8042         * libc/sys/linux/intl/l10nflist.c: Ditto.
8043         * libc/sys/linux/intl/loadinfo.h: Ditto.
8044         * libc/sys/linux/intl/loadmsgcat.c: Ditto.
8045         * libc/sys/linux/intl/locale.alias: Ditto.
8046         * libc/sys/linux/intl/localealias.c: Ditto.
8047         * libc/sys/linux/intl/ngettext.c: Ditto.
8048         * libc/sys/linux/intl/open_catalog.c: Ditto.
8049         * libc/sys/linux/intl/plural.c: Ditto.
8050         * libc/sys/linux/intl/plural.y: Ditto.
8051         * libc/sys/linux/intl/stpcpy.c: Ditto.
8052         * libc/sys/linux/intl/textdomain.c: Ditto.
8053         * libc/sys/linux/linuxthreads/LICENSE: Ditto.
8054         * libc/sys/linux/linuxthreads/Makefile.am: Ditto.
8055         * libc/sys/linux/linuxthreads/Makefile.in: Ditto.
8056         * libc/sys/linux/linuxthreads/aclocal.m4: Ditto.
8057         * libc/sys/linux/linuxthreads/attr.c: Ditto.
8058         * libc/sys/linux/linuxthreads/barrier.c: Ditto.
8059         * libc/sys/linux/linuxthreads/bp-sym.h: Ditto.
8060         * libc/sys/linux/linuxthreads/cancel.c: Ditto.
8061         * libc/sys/linux/linuxthreads/condvar.c: Ditto.
8062         * libc/sys/linux/linuxthreads/config.h: Ditto.
8063         * libc/sys/linux/linuxthreads/configure: Ditto.
8064         * libc/sys/linux/linuxthreads/configure.in: Ditto.
8065         * libc/sys/linux/linuxthreads/defs.awk: Ditto.
8066         * libc/sys/linux/linuxthreads/ecmutex.c: Ditto.
8067         * libc/sys/linux/linuxthreads/events.c: Ditto.
8068         * libc/sys/linux/linuxthreads/getcpuclockid.c: Ditto.
8069         * libc/sys/linux/linuxthreads/getreent.c: Ditto.
8070         * libc/sys/linux/linuxthreads/internals.h: Ditto.
8071         * libc/sys/linux/linuxthreads/join.c: Ditto.
8072         * libc/sys/linux/linuxthreads/joinrace.c: Ditto.
8073         * libc/sys/linux/linuxthreads/kernel-features.h: Ditto.
8074         * libc/sys/linux/linuxthreads/libc-internal.h: Ditto.
8075         * libc/sys/linux/linuxthreads/libc-symbols.h: Ditto.
8076         * libc/sys/linux/linuxthreads/linuxthreads.texi: Ditto.
8077         * libc/sys/linux/linuxthreads/lockfile.c: Ditto.
8078         * libc/sys/linux/linuxthreads/manager.c: Ditto.
8079         * libc/sys/linux/linuxthreads/mq_notify.c: Ditto.
8080         * libc/sys/linux/linuxthreads/mutex.c: Ditto.
8081         * libc/sys/linux/linuxthreads/no-tsd.c: Ditto.
8082         * libc/sys/linux/linuxthreads/oldsemaphore.c: Ditto.
8083         * libc/sys/linux/linuxthreads/posix-timer.h: Ditto.
8084         * libc/sys/linux/linuxthreads/prio.c: Ditto.
8085         * libc/sys/linux/linuxthreads/proc_service.h: Ditto.
8086         * libc/sys/linux/linuxthreads/pt-machine.c: Ditto.
8087         * libc/sys/linux/linuxthreads/ptclock_gettime.c: Ditto.
8088         * libc/sys/linux/linuxthreads/ptclock_settime.c: Ditto.
8089         * libc/sys/linux/linuxthreads/ptfork.c: Ditto.
8090         * libc/sys/linux/linuxthreads/pthread.c: Ditto.
8091         * libc/sys/linux/linuxthreads/ptlongjmp.c: Ditto.
8092         * libc/sys/linux/linuxthreads/queue.h: Ditto.
8093         * libc/sys/linux/linuxthreads/reent.c: Ditto.
8094         * libc/sys/linux/linuxthreads/reqsyscalls.c: Ditto.
8095         * libc/sys/linux/linuxthreads/restart.h: Ditto.
8096         * libc/sys/linux/linuxthreads/rwlock.c: Ditto.
8097         * libc/sys/linux/linuxthreads/semaphore.c: Ditto.
8098         * libc/sys/linux/linuxthreads/semaphore.h: Ditto.
8099         * libc/sys/linux/linuxthreads/shlib-compat.h: Ditto.
8100         * libc/sys/linux/linuxthreads/signals.c: Ditto.
8101         * libc/sys/linux/linuxthreads/specific.c: Ditto.
8102         * libc/sys/linux/linuxthreads/spinlock.c: Ditto.
8103         * libc/sys/linux/linuxthreads/spinlock.h: Ditto.
8104         * libc/sys/linux/linuxthreads/sysctl.c: Ditto.
8105         * libc/sys/linux/linuxthreads/td_init.c: Ditto.
8106         * libc/sys/linux/linuxthreads/td_log.c: Ditto.
8107         * libc/sys/linux/linuxthreads/td_symbol_list.c: Ditto.
8108         * libc/sys/linux/linuxthreads/td_ta_clear_event.c: Ditto.
8109         * libc/sys/linux/linuxthreads/td_ta_delete.c: Ditto.
8110         * libc/sys/linux/linuxthreads/td_ta_enable_stats.c: Ditto.
8111         * libc/sys/linux/linuxthreads/td_ta_event_addr.c: Ditto.
8112         * libc/sys/linux/linuxthreads/td_ta_event_getmsg.c: Ditto.
8113         * libc/sys/linux/linuxthreads/td_ta_get_nthreads.c: Ditto.
8114         * libc/sys/linux/linuxthreads/td_ta_get_ph.c: Ditto.
8115         * libc/sys/linux/linuxthreads/td_ta_get_stats.c: Ditto.
8116         * libc/sys/linux/linuxthreads/td_ta_map_id2thr.c: Ditto.
8117         * libc/sys/linux/linuxthreads/td_ta_map_lwp2thr.c: Ditto.
8118         * libc/sys/linux/linuxthreads/td_ta_new.c: Ditto.
8119         * libc/sys/linux/linuxthreads/td_ta_reset_stats.c: Ditto.
8120         * libc/sys/linux/linuxthreads/td_ta_set_event.c: Ditto.
8121         * libc/sys/linux/linuxthreads/td_ta_setconcurrency.c: Ditto.
8122         * libc/sys/linux/linuxthreads/td_ta_thr_iter.c: Ditto.
8123         * libc/sys/linux/linuxthreads/td_ta_tsd_iter.c: Ditto.
8124         * libc/sys/linux/linuxthreads/td_thr_clear_event.c: Ditto.
8125         * libc/sys/linux/linuxthreads/td_thr_dbresume.c: Ditto.
8126         * libc/sys/linux/linuxthreads/td_thr_dbsuspend.c: Ditto.
8127         * libc/sys/linux/linuxthreads/td_thr_event_enable.c: Ditto.
8128         * libc/sys/linux/linuxthreads/td_thr_event_getmsg.c: Ditto.
8129         * libc/sys/linux/linuxthreads/td_thr_get_info.c: Ditto.
8130         * libc/sys/linux/linuxthreads/td_thr_getfpregs.c: Ditto.
8131         * libc/sys/linux/linuxthreads/td_thr_getgregs.c: Ditto.
8132         * libc/sys/linux/linuxthreads/td_thr_getxregs.c: Ditto.
8133         * libc/sys/linux/linuxthreads/td_thr_getxregsize.c: Ditto.
8134         * libc/sys/linux/linuxthreads/td_thr_set_event.c: Ditto.
8135         * libc/sys/linux/linuxthreads/td_thr_setfpregs.c: Ditto.
8136         * libc/sys/linux/linuxthreads/td_thr_setgregs.c: Ditto.
8137         * libc/sys/linux/linuxthreads/td_thr_setprio.c: Ditto.
8138         * libc/sys/linux/linuxthreads/td_thr_setsigpending.c: Ditto.
8139         * libc/sys/linux/linuxthreads/td_thr_setxregs.c: Ditto.
8140         * libc/sys/linux/linuxthreads/td_thr_sigsetmask.c: Ditto.
8141         * libc/sys/linux/linuxthreads/td_thr_tsd.c: Ditto.
8142         * libc/sys/linux/linuxthreads/td_thr_validate.c: Ditto.
8143         * libc/sys/linux/linuxthreads/testrtsig.h: Ditto.
8144         * libc/sys/linux/linuxthreads/thread_db.h: Ditto.
8145         * libc/sys/linux/linuxthreads/thread_dbP.h: Ditto.
8146         * libc/sys/linux/linuxthreads/timer_create.c: Ditto.
8147         * libc/sys/linux/linuxthreads/timer_delete.c: Ditto.
8148         * libc/sys/linux/linuxthreads/timer_getoverr.c: Ditto.
8149         * libc/sys/linux/linuxthreads/timer_gettime.c: Ditto.
8150         * libc/sys/linux/linuxthreads/timer_routines.c: Ditto.
8151         * libc/sys/linux/linuxthreads/timer_settime.c: Ditto.
8152         * libc/sys/linux/linuxthreads/tst-cancel.c: Ditto.
8153         * libc/sys/linux/linuxthreads/tst-context.c: Ditto.
8154         * libc/sys/linux/linuxthreads/tststack.c: Ditto.
8155         * libc/sys/linux/linuxthreads/unload.c: Ditto.
8156         * libc/sys/linux/linuxthreads/weaks.c: Ditto.
8157         * libc/sys/linux/linuxthreads/wrapsyscall.c: Ditto.
8158         * libc/sys/linux/linuxthreads/bits/initspin.h: Ditto.
8159         * libc/sys/linux/linuxthreads/bits/libc-lock.h: Ditto.
8160         * libc/sys/linux/linuxthreads/bits/libc-tsd.h: Ditto.
8161         * libc/sys/linux/linuxthreads/bits/local_lim.h: Ditto.
8162         * libc/sys/linux/linuxthreads/bits/posix_opt.h: Ditto.
8163         * libc/sys/linux/linuxthreads/bits/pthreadtypes.h: Ditto.
8164         * libc/sys/linux/linuxthreads/bits/sigthread.h: Ditto.
8165         * libc/sys/linux/linuxthreads/machine/Makefile.am: Ditto.
8166         * libc/sys/linux/linuxthreads/machine/Makefile.in: Ditto.
8167         * libc/sys/linux/linuxthreads/machine/aclocal.m4: Ditto.
8168         * libc/sys/linux/linuxthreads/machine/configure: Ditto.
8169         * libc/sys/linux/linuxthreads/machine/configure.in: Ditto.
8170         * libc/sys/linux/linuxthreads/machine/generic/generic-sysd: Ditto.ep.h
8171         * libc/sys/linux/linuxthreads/machine/i386/Makefile.am: Ditto.
8172         * libc/sys/linux/linuxthreads/machine/i386/Makefile.in: Ditto.
8173         * libc/sys/linux/linuxthreads/machine/i386/aclocal.m4: Ditto.
8174         * libc/sys/linux/linuxthreads/machine/i386/bp-asm.h: Ditto.
8175         * libc/sys/linux/linuxthreads/machine/i386/clone.S: Ditto.
8176         * libc/sys/linux/linuxthreads/machine/i386/configure: Ditto.
8177         * libc/sys/linux/linuxthreads/machine/i386/configure.in: Ditto.
8178         * libc/sys/linux/linuxthreads/machine/i386/i386-sysdep.S: Ditto.
8179         * libc/sys/linux/linuxthreads/machine/i386/i386-sysdep.h: Ditto.
8180         * libc/sys/linux/linuxthreads/machine/i386/pspinlock.c: Ditto.
8181         * libc/sys/linux/linuxthreads/machine/i386/pt-machine.h: Ditto.
8182         * libc/sys/linux/linuxthreads/machine/i386/sigcontextinfo.h: Ditto.
8183         * libc/sys/linux/linuxthreads/machine/i386/stackinfo.h: Ditto.
8184         * libc/sys/linux/linuxthreads/machine/i386/sysdep.S: Ditto.
8185         * libc/sys/linux/linuxthreads/machine/i386/sysdep.h: Ditto.
8186         * libc/sys/linux/linuxthreads/machine/i386/useldt.h: Ditto.
8187         * libc/sys/linux/machine/i386/dl-machine.h: Ditto.
8188         * libc/sys/linux/net/Makefile.am: Ditto.
8189         * libc/sys/linux/net/Makefile.in: Ditto.
8190         * libc/sys/linux/net/addr2ascii.3: Ditto.
8191         * libc/sys/linux/net/addr2ascii.c: Ditto.
8192         * libc/sys/linux/net/ascii2addr.c: Ditto.
8193         * libc/sys/linux/net/base64.c: Ditto.
8194         * libc/sys/linux/net/bindresvport.c: Ditto.
8195         * libc/sys/linux/net/byteorder.3: Ditto.
8196         * libc/sys/linux/net/ether_addr.c: Ditto.
8197         * libc/sys/linux/net/ethers.3: Ditto.
8198         * libc/sys/linux/net/getaddrinfo.3: Ditto.
8199         * libc/sys/linux/net/getaddrinfo.c: Ditto.
8200         * libc/sys/linux/net/gethostbydns.c: Ditto.
8201         * libc/sys/linux/net/gethostbyht.c: Ditto.
8202         * libc/sys/linux/net/gethostbyname.3: Ditto.
8203         * libc/sys/linux/net/gethostbynis.c: Ditto.
8204         * libc/sys/linux/net/gethostnamadr.c: Ditto.
8205         * libc/sys/linux/net/getifaddrs.3: Ditto.
8206         * libc/sys/linux/net/getifaddrs.c: Ditto.
8207         * libc/sys/linux/net/getipnodebyname.3: Ditto.
8208         * libc/sys/linux/net/getnameinfo.3: Ditto.
8209         * libc/sys/linux/net/getnameinfo.c: Ditto.
8210         * libc/sys/linux/net/getnetbydns.c: Ditto.
8211         * libc/sys/linux/net/getnetbyht.c: Ditto.
8212         * libc/sys/linux/net/getnetbynis.c: Ditto.
8213         * libc/sys/linux/net/getnetent.3: Ditto.
8214         * libc/sys/linux/net/getnetnamadr.c: Ditto.
8215         * libc/sys/linux/net/getproto.c: Ditto.
8216         * libc/sys/linux/net/getprotoent.3: Ditto.
8217         * libc/sys/linux/net/getprotoent.c: Ditto.
8218         * libc/sys/linux/net/getprotoname.c: Ditto.
8219         * libc/sys/linux/net/getservbyname.c: Ditto.
8220         * libc/sys/linux/net/getservbyport.c: Ditto.
8221         * libc/sys/linux/net/getservent.3: Ditto.
8222         * libc/sys/linux/net/getservent.c: Ditto.
8223         * libc/sys/linux/net/herror.c: Ditto.
8224         * libc/sys/linux/net/hesiod.3: Ditto.
8225         * libc/sys/linux/net/hesiod.c: Ditto.
8226         * libc/sys/linux/net/if_indextoname.3: Ditto.
8227         * libc/sys/linux/net/ifname.c: Ditto.
8228         * libc/sys/linux/net/inet.3: Ditto.
8229         * libc/sys/linux/net/inet6_option_s: Ditto.pace.3
8230         * libc/sys/linux/net/inet6_rthdr_space.3: Ditto.
8231         * libc/sys/linux/net/inet_addr.c: Ditto.
8232         * libc/sys/linux/net/inet_lnaof.c: Ditto.
8233         * libc/sys/linux/net/inet_makeaddr.c: Ditto.
8234         * libc/sys/linux/net/inet_net.3: Ditto.
8235         * libc/sys/linux/net/inet_net_ntop.c: Ditto.
8236         * libc/sys/linux/net/inet_net_pton.c: Ditto.
8237         * libc/sys/linux/net/inet_neta.c: Ditto.
8238         * libc/sys/linux/net/inet_netof.c: Ditto.
8239         * libc/sys/linux/net/inet_network.c: Ditto.
8240         * libc/sys/linux/net/inet_ntoa.c: Ditto.
8241         * libc/sys/linux/net/inet_ntop.c: Ditto.
8242         * libc/sys/linux/net/inet_pton.c: Ditto.
8243         * libc/sys/linux/net/innetgr-stub.c: Ditto.
8244         * libc/sys/linux/net/ip6opt.c: Ditto.
8245         * libc/sys/linux/net/iso_addr.3: Ditto.
8246         * libc/sys/linux/net/iso_addr.c: Ditto.
8247         * libc/sys/linux/net/issetugid-stub.c: Ditto.
8248         * libc/sys/linux/net/linkaddr.3: Ditto.
8249         * libc/sys/linux/net/linkaddr.c: Ditto.
8250         * libc/sys/linux/net/map_v4v6.c: Ditto.
8251         * libc/sys/linux/net/name6.c: Ditto.
8252         * libc/sys/linux/net/namespace.h: Ditto.
8253         * libc/sys/linux/net/ns.3: Ditto.
8254         * libc/sys/linux/net/ns_addr.c: Ditto.
8255         * libc/sys/linux/net/ns_name.c: Ditto.
8256         * libc/sys/linux/net/ns_netint.c: Ditto.
8257         * libc/sys/linux/net/ns_ntoa.c: Ditto.
8258         * libc/sys/linux/net/ns_parse.c: Ditto.
8259         * libc/sys/linux/net/ns_print.c: Ditto.
8260         * libc/sys/linux/net/ns_ttl.c: Ditto.
8261         * libc/sys/linux/net/nsap_addr.c: Ditto.
8262         * libc/sys/linux/net/nsdispatch.3: Ditto.
8263         * libc/sys/linux/net/nsdispatch.c: Ditto.
8264         * libc/sys/linux/net/nslexer.c: Ditto.
8265         * libc/sys/linux/net/nslexer.l: Ditto.
8266         * libc/sys/linux/net/nsparser.c: Ditto.
8267         * libc/sys/linux/net/nsparser.h: Ditto.
8268         * libc/sys/linux/net/nsparser.y: Ditto.
8269         * libc/sys/linux/net/rcmd.3: Ditto.
8270         * libc/sys/linux/net/rcmd.c: Ditto.
8271         * libc/sys/linux/net/rcmdsh.3: Ditto.
8272         * libc/sys/linux/net/rcmdsh.c: Ditto.
8273         * libc/sys/linux/net/recv.c: Ditto.
8274         * libc/sys/linux/net/res_comp.c: Ditto.
8275         * libc/sys/linux/net/res_config.h: Ditto.
8276         * libc/sys/linux/net/res_data.c: Ditto.
8277         * libc/sys/linux/net/res_debug.c: Ditto.
8278         * libc/sys/linux/net/res_init.c: Ditto.
8279         * libc/sys/linux/net/res_mkquery.c: Ditto.
8280         * libc/sys/linux/net/res_mkupdate.c: Ditto.
8281         * libc/sys/linux/net/res_query.c: Ditto.
8282         * libc/sys/linux/net/res_send.c: Ditto.
8283         * libc/sys/linux/net/res_update.c: Ditto.
8284         * libc/sys/linux/net/resolver.3: Ditto.
8285         * libc/sys/linux/net/rthdr.c: Ditto.
8286         * libc/sys/linux/net/send.c: Ditto.
8287         * libc/sys/linux/net/un-namespace.h: Ditto.
8288         * libc/sys/linux/net/vars.c: Ditto.
8289         * libc/sys/linux/stdlib/COPYRIGHT: Ditto.
8290         * libc/sys/linux/stdlib/Makefile.am: Ditto.
8291         * libc/sys/linux/stdlib/Makefile.in: Ditto.
8292         * libc/sys/linux/stdlib/cclass.h: Ditto.
8293         * libc/sys/linux/stdlib/cname.h: Ditto.
8294         * libc/sys/linux/stdlib/collate.c: Ditto.
8295         * libc/sys/linux/stdlib/collate.h: Ditto.
8296         * libc/sys/linux/stdlib/collcmp.c: Ditto.
8297         * libc/sys/linux/stdlib/engine.c: Ditto.
8298         * libc/sys/linux/stdlib/fnmatch.3: Ditto.
8299         * libc/sys/linux/stdlib/fnmatch.c: Ditto.
8300         * libc/sys/linux/stdlib/glob.3: Ditto.
8301         * libc/sys/linux/stdlib/glob.c: Ditto.
8302         * libc/sys/linux/stdlib/reallocf.c: Ditto.
8303         * libc/sys/linux/stdlib/regcomp.c: Ditto.
8304         * libc/sys/linux/stdlib/regerror.c: Ditto.
8305         * libc/sys/linux/stdlib/regex.3: Ditto.
8306         * libc/sys/linux/stdlib/regex2.h: Ditto.
8307         * libc/sys/linux/stdlib/regexec.c: Ditto.
8308         * libc/sys/linux/stdlib/regfree.c: Ditto.
8309         * libc/sys/linux/stdlib/utils.h: Ditto.
8310         * libc/sys/linux/stdlib/wordexp.c: Ditto.
8311         * libc/sys/linux/stdlib/wordfree.c: Ditto.
8312         * libc/sys/linux/sys/dlfcn.h: Ditto.
8313         * libc/sys/linux/sys/elfclass.h: Ditto.
8314         * libc/sys/linux/sys/event.h: Ditto.
8315         * libc/sys/linux/sys/ioccom.h: Ditto.
8316         * libc/sys/linux/sys/libc-tsd.h: Ditto.
8317         * libc/sys/linux/sys/link.h: Ditto.
8318         * libc/sys/linux/sys/lock.h: Ditto.
8319         * libc/sys/linux/sys/param.h: Ditto.
8320         * libc/sys/linux/sys/socket.h: Ditto.
8321         * libc/sys/linux/sys/sockio.h: Ditto.
8322
8323 2003-05-28  Dhananjay Deshpande  <dhananjayd@kpitcummins.com>
8324
8325         * newlib/libc/machine/h8300/memcpy.S: Use .h8300hn and .h8300sn for
8326         normal mode
8327         * newlib/libc/machine/h8300/memset.S: Likewise
8328         * newlib/lib/machine/h8300/reg_memcpy.S: Likewise
8329         * newlib/lib/machine/h8300/reg_memset.S: Likewise
8330         * newlib/lib/machine/h8300/setjmp.S: Likewise
8331         * newlib/lib/machine/h8300/strcmp.S: Likewise
8332         * newlib/lib/sys/h8300hms/crt0.S: Likewise
8333
8334 2003-05-13  Corinna Vinschen  <corinna@vinschen.de>
8335
8336         * libc/ctype/ctype_.c: Remove checks for deprecated __CYGWIN32__.
8337         * libc/include/stdio.h: Ditto.
8338         * libc/include/sys/config.h: Ditto.
8339         * libc/stdio/mktemp.c: Ditto.
8340
8341 2003-05-13  Corinna Vinschen  <corinna@vinschen.de>
8342
8343         * libc/locale/ldpart.c (__part_load_locale): Substitute
8344         __CYGWIN_USE_BIG_TYPES__ by __USE_INTERNAL_STAT64.
8345         * libc/search/hash.c (__hash_open): Ditto.
8346         (init_hash): Ditto.
8347         * libc/stdio/fseek.c (fseek): Ditto.
8348         * libc/stdio/makebuf.c (__smakebuf): Ditto.
8349         * libc/stdio/mktemp.c (_gettemp): Ditto.
8350
8351 2003-05-12  Corinna Vinschen  <corinna@vinschen.de>
8352
8353         * libc/include/stdio.h: Change one __CYGWIN__ to __CYGWIN32__.
8354
8355 2003-05-12  Corinna Vinschen  <corinna@vinschen.de>
8356
8357         * configure.host: Accomodate removing the libc/sys/cygwin dir.
8358         * libc/locale/ldpart.c (__part_load_locale): Use 64 bit stat call
8359         if __CYGWIN_USE_BIG_TYPES__ is set.
8360         * libc/search/hash.c (__hash_open): Ditto.
8361         (init_hash): Ditto.
8362         * libc/stdio/fseek.c (fseek): Ditto.
8363         * libc/stdio/makebuf.c (__smakebuf): Ditto.
8364         * libc/stdio/mktemp.c (_gettemp): Ditto.
8365         * libc/sys/cygwin/Makefile.am: Remove.
8366         * libc/sys/cygwin/Makefile.in: Remove.
8367         * libc/sys/cygwin/aclocal.m4: Remove.
8368         * libc/sys/cygwin/configure: Remove.
8369         * libc/sys/cygwin/configure.in: Remove.
8370         * libc/sys/cygwin/crt0.c: Move to winsup/cygwin directory.
8371         * libc/sys/cygwin/sys/dirent.h: Move to winsup/cygwin/include/sys
8372         directory.
8373         * libc/sys/cygwin/sys/param.h: Ditto.
8374         * libc/sys/cygwin/sys/utime.h: Ditto.
8375         * libc/sys/cygwin/sys/utmp.h: Ditto.
8376
8377 2003-05-11  Corinna Vinschen  <corinna@vinschen.de>
8378
8379         * libc/include/sys/types.h: Don't define key_t for Cygwin.
8380
8381 2003-05-10  Christopher Faylor  <cgf@redhat.com>
8382
8383         * libc/sys/cygwin/sys/dirent.h (struct dirent): Accommodate (slightly)
8384         64 bit inodes.
8385
8386 2003-05-09  Corinna Vinschen  <corinna@vinschen.de>
8387
8388         * libc/include/sys/config.h: Remove all Cygwin specific configuration.
8389         Include cygwin/config.h instead.
8390
8391 2003-04-16  Jeff Johnston  <jjohnstn@redhat.com>
8392
8393         * newlib/libc/machine/powerpc (ato*fix*.c,strto*fix*.c): Shield
8394         all code with #ifdef __SPE__ test.
8395         * newlib/libc/machine/powerpc (simdldtoa.c, ufix64toa.c): Ditto.
8396
8397 2003-04-15  Chris January <chris@atomice.net>
8398
8399         * newlib/libc/include/sys/unistd.h: add declaration for gethostid on
8400         Cygwin.
8401
8402 2003-04-09  J"orn Rennecke <joern.rennecke@superh.com>
8403
8404         * libc/machine/sh/memset.S: Avoid clobbering volatile
8405         objects following a tiny to-be-set array in the same quadword.
8406
8407 2001-04-09  Corinna Vinschen  <corinna@vinschen.de>
8408
8409         * libc/include/wchar.h: Add definitions for wcswidth and wcwidth.
8410         * libc/string/Makefile.am: Add wcswidth.c and wcwidth.c
8411         * libc/string/Makefile.in: Regenerated.
8412         * libc/string/wcswidth.c: New file.
8413         * libc/string/wcwidth.c: New file.
8414         * libc/string/wcstrings.tex: Add wcswidth and wcwidth.
8415
8416 Thu Apr  3 14:01:16 2003  J"orn Rennecke <joern.rennecke@superh.com>
8417
8418         * libc/machine/sh/memset.S: Fix problem with alloco region
8419         exceeding destination region for length >= 88 bytes, start
8420         & 0x16 == 0, end & 0x1f == 18.
8421
8422 2001-04-03  Corinna Vinschen  <corinna@vinschen.de>
8423
8424         * libc/string/wcscoll.c: Fix comment.
8425
8426 2001-04-02  Corinna Vinschen  <corinna@vinschen.de>
8427
8428         * libc/include/wchar.h: Add definition for wcscoll.
8429         * libc/string/Makefile.am: Add wcscoll.c.
8430         * libc/string/Makefile.in: Regenerated.
8431         * libc/string/wcscoll.c: New file.
8432         * libc/string/wcstrings.tex: Add wcscoll.
8433
8434 2003-04-01  Corinna Vinschen  <corinna@vinschen.de>
8435
8436         * libc/stdio/sscanf.c: Update flags description.
8437         * libc/stdio/vfscanf.c: Add CHAR flag value to denote 8 bit target
8438         type.
8439         (__svfscanf_r): Add 'hh' and 'll' handling.
8440
8441 2003-04-01  Corinna Vinschen  <corinna@vinschen.de>
8442
8443         * libc/sys/cygwin/sys/dirent.h (struct DIR): Change type of
8444         __d_position member to _off_t.
8445
8446 2003-03-20  Jeff Johnston  <jjohnstn@redhat.com>
8447
8448         * libc/stdio/vfscanf.c (__svfscanf_r): For floating point conversion,
8449         count all characters used to create number against maximum width.
8450         * libc/machine/powerpc/vfscanf.c (__svfscanf_r): Ditto.
8451
8452 2003-03-18  D.Venkatasubramanian  <dvenkat@noida.hcltech.com>
8453
8454         * libc/include/sys/h8300hms/crt0.S[__SIMULATOR__]: Add commandline
8455         support.
8456         * configure.host (h8300*-*-*): Added comment regarding -D__SIMULATOR__
8457         flag to support simulator only extensions.
8458
8459 2003-03-17  Bob Cassels  <bcassels@abinitio.com>
8460
8461         * libc/string/wcschr.c: (wcschr): Look for character first,
8462         then for end of string, so you can do wcschr(x, '\0').
8463
8464 2003-03-10  Corinna Vinschen  <corinna@vinschen.de>
8465
8466         * libc/include/stdio.h: Declare fgetpos, fsetpos, fseeko and ftello
8467         with internal (_fpos_t and _off_t) datatypes when compiling newlib.
8468         * libc/include/sys/unistd.h: Declare _lseek using _off_t.
8469         * libc/reent/lseekr.c (_lseek_r): Use _off_t instead of off_t.
8470         * libc/stdio/fseeko.c (fseeko): Ditto.
8471         * libc/stdio/ftello.c (ftello): Ditto.
8472         * libc/stdio/stdio.c (__swrite): Ditto.
8473         (__sseek): Ditto.
8474         * libc/stdio/fgetpos.c (fgetpos): Use _fpos_t instead of fpos_t.
8475         * libc/stdio/fseek.c (fseek): Ditto.
8476         * libc/stdio/fsetpos.c (fsetpos): Ditto.
8477         * libc/stdio/ftell.c (ftell): Ditto.
8478         * libc/stdio/local.h: Declare __sseek using _off_t.
8479
8480 2003-03-09  Corinna Vinschen  <corinna@vinschen.de>
8481
8482         * libc/reent/lseekr.c (lseek_r): Use _off_t instead of off_t.
8483
8484 2003-03-09  Corinna Vinschen  <corinna@vinschen.de>
8485
8486         * libc/include/sys/config.h: Define __CYGWIN_USE_BIG_TYPES__ for
8487         Cygwin.
8488
8489 2003-03-09  Corinna Vinschen  <corinna@vinschen.de>
8490
8491         * libc/include/pwd.h: Add guards to avoid type clashes when compiling
8492         Cygwin.
8493         * libc/include/sys/stat.h: Ditto.
8494         * libc/include/sys/unistd.h: Ditto.
8495         * libc/sys/cygwin/sys/dirent.h: Ditto.
8496
8497 2003-03-07  Christopher Faylor  <cgf@redhat.com>
8498
8499         * libc/include/sys/unistd.h: Guard getopt.h call to force only
8500         declaration of getopt and avoid getopt_long declaration.
8501         * libc/sys/cygwin/include/unistd.h: Remove.
8502
8503 2003-03-07  Corinna Vinschen  <corinna@vinschen.de>
8504
8505         * configure.host: Define stdio64_dir for Cygwin.
8506         * libc/include/stdio.h: Change definition of fpos_t to fulfill
8507         Cygwin 64bit file access requirements.
8508         Drop definition of f*64() functions when compiled for Cygwin.
8509         * libc/include/sys/config.h: Define __LARGE64_FILES for Cygwin.
8510         * libc/reent/lseek64r.c: Use _off64_t instead of off64_t.
8511         * libc/stdio64/local64.h: Use _fpos64_t instead of fpos64_t.
8512
8513 2003-03-07   Jeff Johnston  <jjohnstn@redhat.com>
8514
8515         * libc/include/sys/reent.h: Remove extraneous _sig_func
8516         declaration.
8517
8518 2003-02-25   D.Venkatasubramanian <dvenkat@noida.hcltech.com>
8519
8520         * libc/sys/h8300hms/Makefile.am: Add support for new files.
8521         * libc/sys/h8300hms/Makefile.in: Regenerated.
8522         * libc/sys/h8300hms/close.S: New file.
8523         * libc/sys/h8300hms/fstat.S: Ditto.
8524         * libc/sys/h8300hms/lseek.S: Ditto.
8525         * libc/sys/h8300hms/open.S: Ditto.
8526         * libc/sys/h8300hms/stat.S: Ditto.
8527         * libc/sys/h8300hms/read.S: New file to replace read.c.
8528         * libc/sys/h8300hms/read.c: Removed.
8529         * libc/sys/h8300hms/syscalls.c: Removed functions _open,
8530         _lseek, _close, _stat, _fstat.
8531         * libc/sys/h8300hms/write.S: New file to replace write.c.
8532         * libc/sys/h8300hms/write.c: Removed.
8533
8534 2003-02-20  Nick Clifton  <nickc@redhat.com>
8535
8536         * Add support for Cirrus Maverick ARM co-processor:
8537
8538         2000-09-13  Aldy Hernandez  <aldyh@redhat.com>
8539
8540                 * libc/include/machine/ieeefp.h: Set IEEE_BIG_ENDIAN or
8541                 IEEE_LITTLE_ENDIAN depending on endian mode (cirrus).
8542
8543         2000-08-11  Aldy Hernandez  <aldyh@redhat.com>
8544
8545                 * configure.host: set sys_dir, syscall_dir, and
8546                 newlib_cflags for ep9312 host.
8547
8548         * configure.host: Restore alpha sorting of entries in case
8549         statements.
8550
8551 2003-02-19  Jeff Johnston  <jjohnstn@redhat.com>
8552
8553         * libc/stdlib/mallocr.c (unlink): Revert 02/18 fix.
8554
8555 2003-02-18  Christian Groessler  <chris@groessler.org>
8556
8557         * libc/machine/z8k/setjmp.S (_setjmp / _longjmp): Fix to
8558         support z8001 segmented mode.
8559
8560 2003-02-18  Earnie Boyd  <earnie@users.sf.net>
8561
8562         * libc/stdlib/mallocr.c (unlink): Don't assign a value to a pointer
8563         with a NULL value.
8564
8565 2003-02-10  Christopher Faylor  <cgf@redhat.com>
8566
8567         * libc/include/sys/types.h: Don't define __MS_types__ for Cygwin.
8568         Don't define some types under cygwin.
8569
8570 2003-02-07  Jeff Johnston  <jjohnstn@redhat.com>
8571
8572         * acinclude.m4 (--disable-newlib-supplied-syscalls): New configuration
8573         option to allow disabling of syscalls being supplied in newlib.
8574         * aclocal.m4: Regenerated.
8575         * configure: Ditto.
8576         * configure.host: Add support of new configuration option and add
8577         -D__NO_SYSCALLS__ if newlib supplied syscalls are disabled.
8578         * doc/aclocal.m4: Regenerated.
8579         * doc/configure: Ditto.
8580         * libc/*aclocal.m4: Ditto.
8581         * libc/*configure: Ditto.
8582         * libm/*aclocal.m4: Ditto.
8583         * libm/*configure: Ditto.
8584         * libc/sys/arm/Makefile.am: Don't build syscalls.o if new option
8585         is disabled.
8586         * libc/sys/arm/Makefile.in: Regenerated.
8587
8588 2003-02-05  Jonathan Larmour  <jifl@eCosCentric.com>
8589
8590         * libc/stdio/vsprintf.c (vsprintf, _vsprintf_r): Set _file fd to
8591         -1 to be sure it cannot later match a valid file fd causing
8592         isatty() to return 1.
8593         * libc/stdio/asprintf.c (asprintf, _asprintf_r): Ditto.
8594         * libc/stdio/sprintf.c (sprintf, _sprintf_r): Ditto.
8595         * libc/stdio/vasprintf.c (vasprintf, _vasprintf_r): Ditto.
8596
8597 2003-02-03  Jeff Johnston  <jjohnstn@redhat.com>
8598
8599         * libc/stdlib/ldtoa.c (_ldtoa_r): Fix code to allocate the format
8600         buffer based on the precision, after we have processed the input value
8601         in a local buffer and know its relative magnitude.
8602
8603 2003-01-31  Michael Snyder  <msnyder@redhat.com>
8604
8605         * libc/sys/h8300hms/_exit.c (_exit, __exit):  Slip a magic cookie
8606         into registers r1 and r2, so that the simulator can distinguish
8607         this trap from a breakpoint trap.  Copied from libgloss.
8608
8609 2003-01-31  Michael Snyder  <msnyder@redhat.com>
8610
8611         * libc/sys/h8300hms/crt0.S (_start): Change local label
8612         from .loop to .Loop, so that ld and gdb will ignore it.
8613
8614 2003-01-29  Jason Tishler  <jason@tishler.net>
8615
8616         * libc/include/time.h: Declare nanosleep() under Cygwin.
8617
8618 2003-01-24  Nick Clifton  <nickc@redhat.com>
8619
8620         * Add sh2e support:
8621
8622         2002-04-02  Alexandre Oliva  <aoliva@redhat.com>
8623
8624                 * libc/machine/sh/asm.h: Added __SH2E__ next to __SH3E__.
8625                 * libc/machine/sh/setjmp.S: Likewise.
8626                 * libc/include/machine/ieeefp.h: Likewise.
8627
8628 2003-01-24  Corinna Vinschen  <corinna@vinschen.de>
8629
8630         * libc/include/sys/unistd.h: Add setregid and setreuid declarations
8631         for Cygwin.
8632
8633 2003-01-21 Anita Kulkarni  <anitak@kpit.com>
8634
8635         * libc/time/difftime.c : Typecast the result to double.
8636
8637 2003-01-20  Christopher Faylor  <cgf@redhat.com>
8638
8639         * libc/include/sys/unistd.h: Add rresvport declaration for cygwin.
8640
8641 2003-01-18  Nick Clifton  <nickc@redhat.com>
8642
8643         * libc/include/machine/ieeefp.h : Define __IEEE_BIG_ENDIAN,
8644         __SMALL_BITFIELDS and _DOUBLE_IS_32BITS for IP2K.
8645
8646 2003-01-16  Joel Sherrill <joel@OARcorp.com>
8647
8648         * libc/sys/rtems/include/limits.h, libc/sys/rtems/sys/param.h,
8649         libc/sys/rtems/sys/syslimits.h: Update to be in sync with what
8650         constants are defined in each file in the shared versions in
8651         libc/include.
8652         * libc/sys/rtems/crt0.c: Define extra symbols on SH and HP-PA to
8653         autoconf can link programs.
8654         * libc/include/machine/types.h: Explicitly specify signed on
8655         intXX_t types to ensure they are signed.
8656
8657 2003-01-14  Christopher Faylor  <cgf@redhat.com>
8658
8659         * libc/time/strftime.c (strftime): Add '%h' and '%l, %k' GNU
8660         extensions.
8661
8662 2003-01-08  Richard Sandiford  <rsandifo@redhat.com>
8663
8664         * configure.host (mips64vr-elf, mips64vrel-elf): New config.
8665
8666 2003-01-07  Charles Wilson  <cwilson@ece.gatech.edu>
8667
8668         * libc/stdio/sprintf.c: fix typo
8669         * libc/stdio/vfprintf.c: fix typo
8670
8671 2003-01-07  Jeff Johnston  <jjohnstn@redhat.com>
8672
8673         * configure.host: Support long double I/O for x86-linux.
8674         * libc/stdlib/ldtoa.c (_ldtoa_r): Fix code to allocate a buffer
8675         large enough to hold formatted result.
8676         * libc/machine/powerpc/simdldtoa.c (_simdldtoa_r): Ditto.
8677
8678 2003-01-06  Charles Wilson  <cwilson@ece.gatech.edu>
8679
8680         * Makefile.am: Add vasprintf.
8681         * Makefile.in: Regenerated.
8682
8683 2003-01-06  Charles Wilson  <cwilson@ece.gatech.edu>
8684
8685         * asprintf.c (_asprintf_r): insure both declarations
8686         are the same.
8687
8688 2002-12-28  Christopher Faylor  <cgf@redhat.com>
8689
8690         * libc/include/sys/unistd.h: Under cygwin, just include getopt.h rather
8691         than defining getopt directly.
8692
8693 2002-12-20  Jeff Johnston  <jjohnstn@redhat.com>
8694
8695         * NEWS: Update with 1.11.0 info.
8696         * README: Ditto.
8697         * acinclude.m4: Change version number to 1.11.0.
8698         * aclocal.m4: Regenerated.
8699         * configure: Ditto.
8700         * doc/aclocal.m4: Ditto.
8701         * doc/configure: Ditto.
8702         * libc/*/aclocal.m4: Ditto.
8703         * libc/*/configure: Ditto.
8704         * libc/libc.texinfo: Ditto.
8705         * libm/*/aclocal.m4: Ditto.
8706         * libm/*/configure: Ditto.
8707         * libm/libm.texinfo: Ditto.
8708         * libc/sys/linux/shared.ld: Add VERS_1.11.
8709
8710 2002-12-20  Jeff Johnston  <jjohnstn@redhat.com>
8711
8712         * libc/machine/i386/f_atan2.S: Change copyright from Cygnus
8713         Solutions to Red Hat Inc.
8714         * libc/machine/i386/f_atan2f.S: Ditto.
8715         * libc/machine/i386/f_exp.c: Ditto.
8716         * libc/machine/i386/f_expf.c: Ditto.
8717         * libc/machine/i386/f_frexp.S: Ditto.
8718         * libc/machine/i386/f_frexpf.S: Ditto.
8719         * libc/machine/i386/f_ldexp.S: Ditto.
8720         * libc/machine/i386/f_ldexpf.S: Ditto.
8721         * libc/machine/i386/f_log.S: Ditto.
8722         * libc/machine/i386/f_log10.S: Ditto.
8723         * libc/machine/i386/f_log10f.S: Ditto.
8724         * libc/machine/i386/f_logf.S: Ditto.
8725         * libc/machine/i386/f_pow.c: Ditto.
8726         * libc/machine/i386/f_powf.c: Ditto.
8727         * libc/machine/i386/f_tan.S: Ditto.
8728         * libc/machine/i386/f_tanf.S: Ditto.
8729         * libc/machine/i386/memchr.S: Ditto.
8730         * libc/machine/i386/memcmp.S: Ditto.
8731         * libc/machine/i386/memcpy.S: Ditto.
8732         * libc/machine/i386/memmove.S: Ditto.
8733         * libc/machine/i386/memset.S: Ditto.
8734         * libc/machine/i386/strchr.S: Ditto.
8735         * libc/machine/i386/strlen.S: Ditto.
8736         * libm/machine/i386/f_atan2.S: Ditto.
8737         * libm/machine/i386/f_atan2f.S: Ditto.
8738         * libm/machine/i386/f_exp.c: Ditto.
8739         * libm/machine/i386/f_expf.c: Ditto.
8740         * libm/machine/i386/f_frexp.S: Ditto.
8741         * libm/machine/i386/f_frexpf.S: Ditto.
8742         * libm/machine/i386/f_ldexp.S: Ditto.
8743         * libm/machine/i386/f_ldexpf.S: Ditto.
8744         * libm/machine/i386/f_log.S: Ditto.
8745         * libm/machine/i386/f_log10.S: Ditto.
8746         * libm/machine/i386/f_log10f.S: Ditto.
8747         * libm/machine/i386/f_logf.S: Ditto.
8748         * libm/machine/i386/f_pow.c: Ditto.
8749         * libm/machine/i386/f_powf.c: Ditto.
8750         * libm/machine/i386/f_tan.S: Ditto.
8751         * libm/machine/i386/f_tanf.S: Ditto.
8752
8753 2002-12-20  Jeff Johnston  <jjohnstn@redhat.com>
8754
8755         * libc/stdlib/environ.c: Update license to Red Hat.
8756         * libc/machine/hppa/setjmp.S: Ditto.
8757         * libm/test/Makefile.in: Ditto.
8758
8759 2002-12-19  Jeff Johnston  <jjohnstn@redhat.com>
8760
8761         * configure.host: Remove references to go32.
8762         * libc/sys/go32/*: Removed.
8763
8764 2002-12-16  Kazu Hirata  <kazu@cs.umass.edu>
8765
8766         * libc/include/sys/config.h: Change setting of INT_MAX
8767         and UINT_MAX, to use __INT_MAX__ for __H8300__, __H8300H__,
8768         __H8300S__.  Also consolidate flag settings for these
8769         platforms.
8770
8771 2002-12-10  Joel Sherrill  <joel@OARcorp.com>
8772
8773         * libc/include/machine/setjmp.h: Make sure _JBLEN is defined
8774         for i386-rtems targets.
8775
8776 2002-12-06  Jeff Johnston  <jjohnstn@redhat.com>
8777
8778         * libc/include/stdlib.h (strtof): New prototype (from C99).
8779         (strtodf): Changed from prototype to macro which redefines
8780         to strtof.
8781         * libc/stdlib/atof.c: Change documentation to refer to strtof
8782         instead of strtodf.
8783         * libc/stdlib/atoff.c (atoff): Change to call strtof instead of
8784         strtodf.
8785         * libc/stdlib/strtod.c (strtodf): Renamed to strtof.
8786         (strtof): New function.
8787         * libm/test/convert.c (test_strtodf): Renamed to test_strtof which
8788         calls strtof.
8789
8790 2002-11-27  Christopher Faylor  <cgf@redhat.com>
8791
8792         * libc/string/memset.c (memset): Fix comment.
8793
8794 2002-11-26  Christopher Faylor  <cgf@redhat.com>
8795
8796         * libc/string/memset.c (memset): Move initialization of 'd' earlier in
8797         function.
8798
8799 2002-11-25  Christopher Faylor  <cgf@redhat.com>
8800
8801         * libc/string/memset.c (memset): Minor optimization: Use new 'd'
8802         variable, introduced below, everywhere.
8803
8804 2002-11-25  Kazu Hirata  <kazu@cs.umass.edu>
8805
8806         * libc/string/memset.c (memset): Make it safe even if
8807         sizeof (int) = 2.
8808
8809 2002-11-22  Joe Buehler  <jbuehler@hekimian.com>
8810
8811         * configure.in: Change check for libc/include in ${CC} to
8812         use an intermediate value so as to work with different shells.
8813         * configure: Regenerated.
8814         * Makefile.in: Ditto.
8815
8816 2002-11-22  Vijay L. Khuspe  <vijayk1@kpit.com>
8817
8818         * libc/sys/h8300hms/read.c: Add support for normal mode
8819         architecture.
8820
8821 2002-11-20  Ryo Tsuruta  <ryo@kitanet.ne.jp>
8822
8823         * libc/machine/h8300/setjmp.S (setjmp, longjmp): Combine common
8824         code for __H8300H__ and __H8300S__.  Also return 32-bit return code
8825         when -mint32 is used.
8826
8827 2002-11-18  Nick Clifton  <nickc@redhat.com>
8828
8829         * libc/sys/arm/crt0.S: Add NULL to end of argv array.
8830
8831 2002-11-14  Jeff Johnston  <jjohnstn@redhat.com>
8832
8833         * testsuite/lib/passfail.exp (newlib_pass_fail): Changed to
8834         only issue one pass/fail message for a compile/link/execute.
8835         * testsuite/newlib.elix/elix.exp: New file.
8836         * testsuite/newlib.elix/tmmap.c: Ditto.
8837
8838 2002-11-06  Christopher Faylor  <cgf@redhat.com>
8839
8840         * libc/stdlib/malign.c: Don't compile if MALLOC_PROVIDED.
8841         * libc/stdlib/mlock.c: Ditto.
8842         * libc/stdlib/msize.c: Ditto.
8843         * libc/stdlib/msize.c: Ditto.
8844         * libc/stdlib/mtrim.c: Ditto.
8845         * libc/stdlib/valloc.c: Ditto.
8846
8847 2002-11-12  Jeff Johnston  <jjohnstn@redhat.com>
8848
8849         * libc/stdlib/ldtoa.c (e64toe): When checking the exponent
8850         for inf/nan, make sure that the check ignores the sign bit.
8851
8852 2002-11-07  Joel Sherrill <joel@OARcorp.com>
8853
8854         * libc/sys/rtems/machine: New directory.
8855         * libc/sys/rtems/machine/limits.h, libc/sys/rtems/machine/param.h,
8856         libc/sys/rtems/sys/param.h, libc/sys/rtems/sys/syslimits.h,
8857         libc/sys/rtems/sys/utime.h: New files added to make *-rtems newlib
8858         targets more BSD like when installed without requiring files to
8859         be overwritten at install point when RTEMS itself is installed.
8860         * Makefile.am: Pick up system dependent machine .h files such as
8861         might be found on a BSD-ish system.
8862         * Makefile.in: Regenerate.
8863         * libc/include/machine/types.h: When on an RTEMS target, define a
8864         few BSD flavor types.
8865
8866 2002-11-06  Sergey Okhapkin  <sos@prospect.com.ru>
8867
8868         * include/utmp.h: Define WTMP_FILE.  Define and use UT_IDLEN.
8869
8870 2002-11-06  Kazuhiro Fujieda  <fujieda@jaist.ac.jp>
8871
8872         * libc/include/wchar.h: Use _{BEGIN,END}_STD_C instead of extern "C".
8873         * libc/include/wctype.h: Ditto.
8874
8875 2002-11-04  Jeff Johnston  <jjohnstn@redhat.com>
8876
8877         * libc/include/wchar.h: Add extern "C" specifier if C++.
8878         * libc/include/wctype.h: Ditto.
8879
8880 2002-10-18  Jeff Johnston  <jjohnstn@redhat.com>
8881
8882         * testsuite/newlib.wctype/tiswctype.c: New test case.
8883         * testsuite/newlib.wctype/twctrans.c: Ditto.
8884
8885 2002-10-18  Jeff Johnston  <jjohnstn@redhat.com>
8886
8887         * libc/sys/linux/machine/i386/include/endian.h: New file.
8888         * libc/sys/linux/machine/i386/include/param.h: Ditto.
8889
8890 2002-10-18  Jeff Johnston  <jjohnstn@redhat.com>
8891
8892         * libm/machine/i386/aclocal.m4: Regenerated.
8893         * libm/machine/i386/configure: Ditto.
8894
8895 2002-10-18  Jeff Johnston  <jjohnstn@redhat.com>
8896
8897         * testsuite/include/check.h: New header file to use with
8898         test cases.
8899         * testsuite/lib/newlib.exp: Add testsuite/include directory
8900         to list of header files to use.
8901         * testsuite/newlib.wctype/twctype.c: New test case for iswctype fns.
8902         * testsuite/newlib.wctype/wctype.exp: New file.
8903
8904 2002-10-11  Graham Stott  <graham.stott@btinternet.com>
8905             Richard Sandiford  <rsandifo@redhat.com>
8906
8907         * libc/include/sys/config.h (SIZE_T_SMALLER_THAN_LONG): Undefine.
8908         * libc/stdlib/mallocr.c (long_sub_size_t): Define in a way that
8909         doesn't require the SIZE_T_SMALLER_THAN_LONG macro.
8910
8911 2002-10-07      Joel Sherrill <joel@OARcorp.com>
8912
8913         * libc/sys/rtems/crt0.c: Add even more symbols so gcc() can link
8914         dummy programs.
8915
8916 2002-10-07      Joel Sherrill <joel@OARcorp.com>
8917
8918         * libc/include/pthread.h: Define PTHREAD_CANCELED.
8919
8920 2002-10-07      Joel Sherrill <joel@OARcorp.com>
8921
8922         * libc/machine/hppa/DEFS.h, libc/machine/hppa/pcc_prefix.s,
8923         libc/machine/hppa/setjmp.S, libc/machine/hppa/DEFS.h: Make this
8924         compile with current GNU tools.
8925
8926 2002-10-07  Jeff Johnston  <jjohnstn@redhat.com>
8927
8928         * Makefile.am: Add EXTRA_DIRS to allow future dependencies on
8929         the build library.
8930         * configure.in: Ditto.
8931         * Makefile.in: Regenerated.
8932         * configure: Ditto.
8933         * libc/sys/linux/Makefile.am: Add EXTRA_SUBDIRS and EXTRA_SUBLIBS
8934         for specifying configured libraries/directories.
8935         * libc/sys/linux/configure.in: Ditto.
8936         * libc/sys/linux/Makefile.in: Regenerated.
8937         * libc/sys/linux/configure: Ditto.
8938
8939 2002-10-03  Jeff Johnston  <jjohnstn@redhat.com>
8940
8941         * libc/include/reent.h: Update documentation at start of file.
8942
8943 2002-09-27  Jim Wilson  <wilson@redhat.com>
8944
8945         * libc/sys/sysnecv850/crt0.S (start): Delete v850 code for initializing
8946         the ctbp register.
8947
8948 2002-09-27  Jeff Johnston  <jjohnstn@redhat.com>
8949
8950         * libc/ctype/jp2uc.c: Change to use multiple arrays in jp2uc.h.
8951         Also convert to EUCJP before using arrays.  For values not in
8952         the conversion arrays, return WEOF.
8953         * libc/ctype/jp2uc.h: Change from one array to a number of
8954         arrays to account for the fact that the originating table
8955         is not contiguous for the input values since some are invalid.
8956
8957 2002-09-24  Jeff Johnston  <jjohnstn@redhat.com>
8958
8959         * libc/time/ctime.c: Fix prototype documentation.
8960
8961 2002-09-24  Corinna Vinschen  <corinna@vinschen.de>
8962
8963         * libc/include/sys/errno.h: Add EOVERFLOW.
8964
8965 2002-09-20  Jeff Johnston  <jjohnstn@redhat.com>
8966
8967         * libc/include/wctype.h: New file.
8968
8969 2002-09-20  Jeff Johnston  <jjohnstn@redhat.com>
8970
8971         * libc/ctype/Makefile.am: Add new files.
8972         * libc/ctype/Makefile.in: Regenerated.
8973         * libc/ctype/ctype.tex: Add new iswxxxx, towxxxx, wctype,
8974         and wctrans functions to documentation index.
8975         * libc/ctype/iswalnum.c: New file.
8976         * libc/ctype/iswalpha.c: Ditto.
8977         * libc/ctype/iswblank.c: Ditto.
8978         * libc/ctype/iswcntrl.c: Ditto.
8979         * libc/ctype/iswctype.c: Ditto.
8980         * libc/ctype/iswdigit.c: Ditto.
8981         * libc/ctype/iswgraph.c: Ditto.
8982         * libc/ctype/iswlower.c: Ditto.
8983         * libc/ctype/iswprint.c: Ditto.
8984         * libc/ctype/iswpunct.c: Ditto.
8985         * libc/ctype/iswspace.c: Ditto.
8986         * libc/ctype/iswupper.c: Ditto.
8987         * libc/ctype/iswxdigit.c: Ditto.
8988         * libc/ctype/jp2uc.c: Ditto.
8989         * libc/ctype/jp2uc.h: Ditto.
8990         * libc/ctype/local.h: Ditto.
8991         * libc/ctype/towctrans.c: Ditto.
8992         * libc/ctype/towlower.c: Ditto.
8993         * libc/ctype/towupper.c: Ditto.
8994         * libc/ctype/utf8alpha.h: Ditto.
8995         * libc/ctype/utf8print.h: Ditto.
8996         * libc/ctype/utf8punct.h: Ditto.
8997         * libc/ctype/wctrans.c: Ditto.
8998         * libc/ctype/wctype.c: Ditto.
8999         * libc/locale/locale.c (__lc_ctype): New external array to
9000         replace static lc_ctype array.
9001         * libc/stdlib/mbtowc_r.c: Use __lc_ctype to check current lc_ctype
9002         rather than reentrancy structure's _current_locale field.
9003         * libc/stdlib/wctomb_r.c: Ditto.
9004
9005 2002-09-20  Jeff Johnston  <jjohnstn@redhat.com>
9006
9007         * configure.host: Minor comment and formatting changes.
9008         * libc/Makefile.am: Add libc_la_DEPENDENCIES.
9009         * libc/Makefile.in: Regenerated.
9010         * libc/include/sys/config.h: Minor format change.
9011
9012 2002-09-19  Jeff Johnston  <jjohnstn@redhat.com>
9013
9014         * libc/syscalls/sysfcntl.c (fcntl): Fix typo in preprocessor
9015         statement comment.
9016
9017 2002-09-19  Jeff Johnston  <jjohnstn@redhat.com>
9018
9019         * libc/posix/opendir.c (opendir): Change code to check
9020         for HAVE_FCNTL before calling fcntl.
9021         * libc/search/hash.c (hash_open): Ditto.
9022         * libc/search/hash_page.c (open_tmp): Ditto.
9023         * libc/reent/Makefile.am: Add fcntlr.c.
9024         * libc/reent/Makefile.in: Regenerated.
9025         * libc/reent/fcntlr.c: New file.
9026         * libc/stdio/fdopen.c (_fdopen_r): Change to call _fcntl_r
9027         instead of _fcntl when HAVE_FCNTL flag is set.
9028         * libc/syscalls/sysfcntl.c (fcntl): Check for HAVE_FCNTL flag
9029         to see if _fcntl or _fcntl_r should be called.  If flag is not
9030         set, default to ENOSYS stub.
9031
9032 2002-09-16  Jeff Johnston  <jjohnstn@redhat.com>
9033
9034         * libc/include/wchar.h (mbstate_t): Change protective flag to
9035         be _MBSTATE_T.
9036         * libc/include/sys/_types.h (_mbstate_t): Remove protective flag.
9037         [__CYGWIN__]: Remove special code that defines mbstate_t and WEOF
9038         for Cygwin.
9039         * libc/sys/linux/sys/_types.h (_mbstate_t): Remove protective flag.
9040
9041 2002-09-11  Jeff Johnston  <jjohnstn@redhat.com>
9042
9043         * acinclude.m4 (enable-newlib-mb): Change check to
9044         default newlib_mb variable to empty string rather than "no".
9045         * configure.host: Remove hard-coding of -DMB_CAPABLE for
9046         x86-linux and Cygwin.  Add code to check for newlib_mb
9047         being unset in which case set to "yes" for x86-linux and
9048         Cygwin.  Change check for newlib_mb being "yes" to allow
9049         for an empty string.
9050         * configure.in (_MB_LEN_MAX): New AC_DEFINE.
9051         * newlib.hin (_MB_LEN_MAX): New define to configure.
9052         * aclocal.m4: Regenerated.
9053         * configure: Ditto.
9054         * libc/include/limits.h: New file.
9055         * libc/sys/linux/include/limits.h: Ditto.
9056         * doc/aclocal.m4 doc/configure libc/aclocal.m4
9057           libc/configure libc/machine/aclocal.m4
9058           libc/machine/configure libc/machine/a29k/aclocal.m4
9059           libc/machine/a29k/configure libc/machine/arm/aclocal.m4
9060           libc/machine/arm/configure libc/machine/d10v/aclocal.m4
9061           libc/machine/d10v/configure libc/machine/d30v/aclocal.m4
9062           libc/machine/d30v/configure libc/machine/fr30/aclocal.m4
9063           libc/machine/fr30/configure libc/machine/frv/aclocal.m4
9064           libc/machine/frv/configure libc/machine/h8300/aclocal.m4
9065           libc/machine/h8300/configure libc/machine/h8500/aclocal.m4
9066           libc/machine/h8500/configure libc/machine/hppa/aclocal.m4
9067           libc/machine/hppa/configure libc/machine/i386/aclocal.m4
9068           libc/machine/i386/configure libc/machine/i960/aclocal.m4
9069           libc/machine/i960/configure libc/machine/m32r/aclocal.m4
9070           libc/machine/m32r/configure libc/machine/m68hc11/aclocal.m4
9071           libc/machine/m68hc11/configure libc/machine/m68k/aclocal.m4
9072           libc/machine/m68k/configure libc/machine/m88k/aclocal.m4
9073           libc/machine/m88k/configure libc/machine/mips/aclocal.m4
9074           libc/machine/mips/configure libc/machine/mn10200/aclocal.m4
9075           libc/machine/mn10200/configure libc/machine/mn10300/aclocal.m4
9076           libc/machine/mn10300/configure libc/machine/necv70/aclocal.m4
9077           libc/machine/necv70/configure libc/machine/powerpc/aclocal.m4
9078           libc/machine/powerpc/configure libc/machine/sh/aclocal.m4
9079           libc/machine/sh/configure libc/machine/sparc/aclocal.m4
9080           libc/machine/sparc/configure libc/machine/tic80/aclocal.m4
9081           libc/machine/tic80/configure libc/machine/v850/aclocal.m4
9082           libc/machine/v850/configure libc/machine/w65/aclocal.m4
9083           libc/machine/w65/configure libc/machine/xscale/aclocal.m4
9084           libc/machine/xscale/configure
9085           libc/machine/xstormy16/aclocal.m4
9086           libc/machine/xstormy16/configure libc/machine/z8k/aclocal.m4
9087           libc/machine/z8k/configure libc/sys/aclocal.m4
9088           libc/sys/configure libc/sys/a29khif/aclocal.m4
9089           libc/sys/a29khif/configure libc/sys/arc/aclocal.m4
9090           libc/sys/arc/configure libc/sys/arm/aclocal.m4
9091           libc/sys/arm/configure libc/sys/cygwin/aclocal.m4
9092           libc/sys/cygwin/configure libc/sys/d10v/aclocal.m4
9093           libc/sys/d10v/configure libc/sys/decstation/aclocal.m4
9094           libc/sys/decstation/configure libc/sys/go32/aclocal.m4
9095           libc/sys/go32/configure libc/sys/h8300hms/aclocal.m4
9096           libc/sys/h8300hms/configure libc/sys/h8500hms/aclocal.m4
9097           libc/sys/h8500hms/configure libc/sys/idt/aclocal.m4
9098           libc/sys/idt/configure libc/sys/linux/aclocal.m4
9099           libc/sys/linux/configure
9100           libc/sys/linux/machine/aclocal.m4
9101           libc/sys/linux/machine/configure
9102           libc/sys/linux/machine/i386/aclocal.m4
9103           libc/sys/linux/machine/i386/configure
9104           libc/sys/m88kbug/aclocal.m4 libc/sys/m88kbug/configure
9105           libc/sys/mmixware/aclocal.m4 libc/sys/mmixware/configure
9106           libc/sys/netware/aclocal.m4 libc/sys/netware/configure
9107           libc/sys/rtems/aclocal.m4 libc/sys/rtems/configure
9108           libc/sys/sh/aclocal.m4 libc/sys/sh/configure
9109           libc/sys/sparc64/aclocal.m4 libc/sys/sparc64/configure
9110           libc/sys/sun4/aclocal.m4 libc/sys/sun4/configure
9111           libc/sys/sysmec/aclocal.m4 libc/sys/sysmec/configure
9112           libc/sys/sysnec810/aclocal.m4 libc/sys/sysnec810/configure
9113           libc/sys/sysnecv850/aclocal.m4 libc/sys/sysnecv850/configure
9114           libc/sys/sysvi386/aclocal.m4 libc/sys/sysvi386/configure
9115           libc/sys/sysvnecv70/aclocal.m4 libc/sys/sysvnecv70/configure
9116           libc/sys/tic80/aclocal.m4 libc/sys/tic80/configure
9117           libc/sys/w65/aclocal.m4 libc/sys/w65/configure
9118           libc/sys/z8ksim/aclocal.m4 libc/sys/z8ksim/configure
9119           libm/aclocal.m4 libm/configure: Regenerated.
9120
9121 2002-09-09  Jeff Johnston  <jjohnstn@redhat.com>
9122
9123         * libc/sys/linux/machine/i386/crt0.c (_start): Remove
9124         code that clears the .bss section.
9125
9126 2002-09-09  Jeff Johnston  <jjohnstn@redhat.com>
9127
9128         * libc/include/sys/_types.h (_mbstate_t): Changed to use
9129         unsigned char internally.
9130         * libc/sys/linux/sys/_types.h: Ditto.
9131         * libc/include/sys/reent.h
9132         * libc/stdlib/mblen.c (mblen): Use function-specific state
9133         value from default reentrancy structure.
9134         * libc/stdlib/mblen_r.c (_mblen_r):  If return code from
9135         _mbtowc_r is less than 0, reset state __count value and
9136         return -1.
9137         * libc/stdlib/mbrlen.c (mbrlen): If the input state pointer
9138         is NULL, use the function-specific pointer provided in the
9139         default reentrancy structure.
9140         * libc/stdlib/mbrtowc.c: Add reentrant form of function.
9141         If input state pointer is NULL, use function-specific area
9142         provided in reentrancy structure.
9143         * libc/stdlib/mbsrtowcs.c: Ditto.
9144         * libc/stdlib/wcrtomb.c: Ditto.
9145         * libc/stdlib/wcsrtombs.c: Ditto.
9146         * libc/stdlib/mbstowcs.c: Reformat.
9147         * libc/stdlib/wcstombs.c: Ditto.
9148         * libc/stdlib/mbstowcs_r.c (_mbstowcs_r): If an error occurs,
9149         reset the state's __count value and return -1.
9150         * libc/stdlib/mbtowc.c: Ditto.
9151         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Add restartable functionality.
9152         If number of bytes is used up before completing a valid multibyte
9153         character, return -2 and save the state.
9154         * libc/stdlib/wctomb_r.c (_wctomb_r): Define __state as __count
9155         and change some __count references to __state for clarity.
9156
9157 2002-09-06  Jeff Johnston  <jjohnstn@redhat.com>
9158
9159         * libc/include/sys/config.h (MB_LEN_MAX): Removed as this
9160         is defined by <limits.h>.
9161
9162 2002-09-05  Kazuhiro Fujieda  <fujieda@jaist.ac.jp>
9163
9164         * libc/include/wchar.h (WCHAR_MAX): Only define if not already
9165         defined.
9166
9167 2002-09-04  Kazuhiro Fujieda  <fujieda@jaist.ac.jp>
9168
9169         * libc/include/sys/config.h: Define accordingly __WCHAR_MAX__.
9170         * libc/include/wchar.h: Define WCHAR_MIN as 0 and WCHAR_MAX as
9171         __WCHAR_MAX__ or 0x7fffffffu.
9172         * libc/string/wcscmp.c: Delete wrong and unnecessary type cast.
9173         * libc/string/wcsncmp.c: Ditto.
9174
9175 2002-09-03  Jeff Johnston  <jjohnstn@redhat.com>
9176
9177         * libc/string/wcschr.c: Add include of <stddef.h>.
9178         * libc/string/wcspbrk.c: Ditto.
9179         * libc/string/wcsrchr.c: Ditto.
9180         * libc/string/wcsstr.c: Ditto.
9181
9182 2002-09-03  Jeff Johnston  <jjohnstn@redhat.com>
9183
9184         * libc/include/sys/_types.h (_flock_t): Added.
9185         * libc/include/sys/lock.h (__lock_try_acquire): New interface.
9186         (__lock_try_acquire_recursive): Ditto.
9187         * libc/include/sys/reent.h (__sFILE, __sFILE64): Add new
9188         _lock field.
9189         * libc/stdio/findfp.c (std)[!__SINGLE_THREAD__]: Initialize _lock
9190         field.
9191         * libc/stdio/fopen.c (_fopen_r)[!__SINGLE_THREAD__]: Ditto.
9192         * libc/stdio64/fopen64.c (_fopen64_r)[!__SINGLE_THREAD__]: Ditto.
9193         * libc/sys/linux/include/time.h (struct timespec): Moved from
9194         <sys/types.h> and added check for __need_timespec flag so type
9195         can be defined by itself.
9196         * libc/sys/linux/sys/_types.h (_flock_t): New type.
9197         * libc/sys/linux/sys/types.h (struct timespec): Moved to
9198         <time.h>.
9199
9200 2002-08-29  Thomas Fitzsimmons  <fitzsim@redhat.com>
9201
9202         * libc/sys/linux/argp: New directory.
9203         * libc/sys/linux/getopt.c: New file.
9204         * libc/sys/linux/getopt1.c: New file.
9205         * libc/sys/linux/getoptlong.c: Remove file.
9206         * libc/sys/linux/include/argp.h: New file.
9207         * libc/sys/linux/Makefile.am: Define argp_dir and ARGP_LIB,
9208         based on ELIX level.
9209         (SUBDIRS): Add argp_dir.
9210         (SUBLIBS): Add ARGP_LIB.
9211         (ELIX_2_OBJS): Add getopt.$(oext), getopt1.$(oext), remove
9212         getopt_long.$(oext).
9213         * libc/sys/linux/configure.in (AC_OUTPUT): Add argp/Makefile.
9214
9215 2002-08-29  Jeff Johnston  <jjohnstn@redhat.com>
9216
9217         * libc/libc.texinfo: Add node reference to wide-character strings.
9218         * libc/string/wcstrings.tex: New file.
9219         * libc/string/strtok_r.c: Remove outdated advertising clause.
9220         * libc/string/Makefile.am (doc): Add wide-character string
9221         chapter to documentation.
9222         * libc/string/Makefile.in: Regenerated.
9223
9224 2002-08-29  Kazuhiro Fujieda  <fujieda@jaist.ac.jp>
9225
9226         * libc/include/wchar.h: Define NULL. Define WEOF more general
9227         way. Declare functions in newlib manner.
9228         * libc/stdlib/Makefile.am: Delete wmem*.c
9229         * libc/stdlib/Makefile.in: Regenerated.
9230         * libc/stdlib/wmemchr.c: Delete.
9231         * libc/stdlib/wmemcmp.c: Ditto.
9232         * libc/stdlib/wmemcpy.c: Ditto.
9233         * libc/stdlib/wmemmove.c: Ditto.
9234         * libc/stdlib/wmemset.c: Ditto.
9235         * libc/string/Makefile.am: Add wmem*.c and wcs*.c.
9236         * libc/string/Makefile.in: Regenerated.
9237         * libc/string/wcscat.c: New file derived from the NetBSD C Library.
9238         * libc/string/wcschr.c: Ditto.
9239         * libc/string/wcscmp.c: Ditto.
9240         * libc/string/wcscpy.c: Ditto.
9241         * libc/string/wcscspn.c: Ditto.
9242         * libc/string/wcslcat.c: Ditto.
9243         * libc/string/wcslcpy.c: Ditto.
9244         * libc/string/wcslen.c: Ditto.
9245         * libc/string/wcsncat.c: Ditto.
9246         * libc/string/wcsncmp.c: Ditto.
9247         * libc/string/wcsncpy.c: Ditto.
9248         * libc/string/wcspbrk.c: Ditto.
9249         * libc/string/wcsrchr.c: Ditto.
9250         * libc/string/wcsspn.c: Ditto.
9251         * libc/string/wcsstr.c: Ditto.
9252         * libc/string/wmemchr.c: Ditto.
9253         * libc/string/wmemcmp.c: Ditto.
9254         * libc/string/wmemcpy.c: Ditto.
9255         * libc/string/wmemmove.c: Ditto.
9256         * libc/string/wmemset.c: Ditto.
9257
9258 2002-08-29  Jeff Johnston  <jjohnstn@redhat.com>
9259
9260         * libc/locale/locale.c (_setlocale_r)[MB_CAPABLE]: Fix so
9261         default locale "" is accepted for LC_CTYPE or LC_MESSAGES
9262         and is treated as if "C" was specified.
9263
9264 2002-08-28  Jeff Johnston  <jjohnstn@redhat.com>
9265
9266         * Makefile.am (install-data-local): Move install of build
9267         newlib.h after installing headers in libc/include so as to
9268         overwrite default newlib.h.
9269         * Makefile.in: Regenerated.
9270
9271 2002-08-28  Jeff Johnston  <jjohnstn@redhat.com>
9272
9273         * libc/include/newlib.h: New file for tools that use newlib
9274         headers but don't build newlib first (e.g. gcc).
9275
9276 2002-08-28  Jeff Johnston  <jjohnstn@redhat.com>
9277
9278         * libc/stdlib/wmemchr.c: Explicitly include <_ansi.h>.
9279         * libc/stdlib/wmemcmp.c: Ditto.
9280         * libc/stdlib/wmemcpy.c: Ditto.
9281         * libc/stdlib/wmemmove.c: Ditto.
9282         * libc/stdlib/wmemset.c: Ditto.
9283
9284 2002-08-27  Egor Duda  <deo@logos-m.ru>
9285
9286         * libc/stdlib/wmemchr.c: New file.
9287         * libc/stdlib/wmemcmp.c: Ditto.
9288         * libc/stdlib/wmemcpy.c: Ditto.
9289         * libc/stdlib/wmemmove.c: Ditto.
9290         * libc/stdlib/wmemset.c: Ditto.
9291         * libc/stdlib/Makefile.am (GENERAL_SOURCES): Add new files.
9292         * configure.host: Default -DMB_CAPABLE for cygwin.
9293         * libc/include/wchar.h: Declare wmemchr(), wmemcmp(), wmemcpy(),
9294         wmemmove() and wmemset().  Add include of <_ansi.h>.
9295         * libc/stdlib/Makefile.in: Regenerate.
9296
9297 2002-08-27  Jeff Johnston  <jjohnstn@redhat.com>
9298
9299         * configure.host: Remove _ELIX_LEVEL flag setting.
9300         * Makefile.am(stmp-targ-include): Copy newlib.h to targ-include.
9301         (install-data-local): Install newlib.h.
9302         * Makefile.in: Regenerated.
9303         * aclocal.m4: Ditto.
9304         * configure: Ditto.
9305         * configure.in: Add AM_CONFIG_HEADER to generate newlib.h based on
9306         newlib.hin.  Add AC_DEFINE_UNQUOTED entries for _ELIX_LEVEL
9307         and _NEWLIB_VERSION to fill in newlib.h header file entries.
9308         In AC_OUTPUT statement, unset ac_file so multilib support does
9309         not use last ac_file temporary used in newlib.h configuration.
9310         * libc/include/_ansi.h: Include <newlib.h>.
9311         * newlib.hin: New template file for newlib.h.
9312         * stamp-h.in: New file.
9313
9314 2002-08-26  Wu Yongwei <adah@netstd.com>
9315
9316         * time.h (timezonevar): Change "#if" to "#ifdef".
9317
9318 2002-08-26  Jeff Johnston  <jjohnstn@redhat.com>
9319
9320         * Makefile.am(LIBC_OBJECTLISTS): Add STDIO64_OBJECTLIST.
9321         * Makefile.in: Regenerated.
9322         * acinclude.m4: Add support for --enable-newlib-elix-level option.
9323         * aclocal.m4: Regenerated.
9324         * configure: Ditto.
9325         * configure.host: Add code to define _ELIX_LEVEL if
9326         --enable-newlib-elix-level option is used.
9327         * configure.in:
9328         * libc/aclocal.m4: Regenerated.
9329         * libc/configure: Ditto.
9330         * libc/argz/Makefile.am: Add EL/IX level checking.
9331         * libc/argz/Makefile.in: Regenerated.
9332         * libc/argz/dummy.c: New file.
9333         * libc/ctype/Makefile.am: Add EL/IX level checking.
9334         * libc/ctype/Makefile.in: Regenerated.
9335         * libc/locale/Makefile.am: Add EL/IX level checking.
9336         * libc/locale/Makefile.in: Regenerated.
9337         * libc/posix/Makefile.am: Add EL/IX level checking.
9338         * libc/posix/Makefile.in: Regenerated.
9339         * libc/posix/telldir.c: Add EL/IX level checking.
9340         * libc/reent/Makefile.am: Ditto.
9341         * libc/reent/fstat64r.c: Ditto.
9342         * libc/reent/lseek64r.c: Ditto.
9343         * libc/reent/open64r.c: Ditto.
9344         * libc/reent/Makefile.in: Regenerated.
9345         * libc/search/Makefile.am: Add EL/IX level checking.
9346         * libc/search/Makefile.in: Regenerated.
9347         * libc/stdio/Makefile.am: Add EL/IX level checking.
9348         * libc/stdio/Makefile.in: Regenerated.
9349         * libc/stdio64/Makefile.am: Add EL/IX level checking.
9350         * libc/stdio64/Makefile.in: Regenerated.
9351         * libc/stdio64/dummy.c: New file.
9352         * libc/stdio64/fgetpos64.c: Fix so _LARGE64_FILES macro is checked
9353         after first include.
9354         * libc/stdio64/fopen64.c: Ditto.
9355         * libc/stdio64/freopen64.c: Ditto.
9356         * libc/stdio64/fseeko64.c: Ditto.
9357         * libc/stdio64/fsetpos64.c: Ditto.
9358         * libc/stdio64/ftello64.c: Ditto.
9359         * libc/stdio64/tmpfile64.c: Ditto.
9360         * libc/stdlib/Makefile.am: Add EL/IX level checking.
9361         * libc/stdlib/Makefile.in: Regenerated.
9362         * libc/stdlib/mstats.c: Add EL/IX level checking.
9363         * libc/string/Makefile.am: Ditto.
9364         * libc/string/Makefile.in: Regenerated.
9365         * libc/sys/linux/Makefile.am: Add EL/IX level checking.
9366         * libc/sys/linux/Makefile.in: Regenerated.
9367         * libc/sys/linux/aclocal.m4: Ditto.
9368         * libc/sys/linux/configure: Ditto.
9369         * libc/sys/linux/aio.c: Add EL/IX level checking.
9370         * libc/sys/linux/ftok.c: Ditto.
9371         * libc/sys/linux/getdate.c: Ditto.
9372         * libc/sys/linux/ids.c: Ditto.
9373         * libc/sys/linux/inode.c: Ditto.
9374         * libc/sys/linux/io.c: Ditto.
9375         * libc/sys/linux/process.c: Ditto.
9376         * libc/sys/linux/resource.c: Ditto.
9377         * libc/sys/linux/sched.c: Ditto.
9378         * libc/sys/linux/sig.c: Ditto.
9379         * libc/sys/linux/termios.c: Ditto.
9380         * libc/sys/linux/wait.c: Ditto plus add __waitpid and
9381         __libc___waitpid weak aliases.
9382         * libc/sys/linux/machine/i386/syscall.h: Add new _base macros
9383         that generate the code for a syscall, but do not create a
9384         weak alias.
9385         * libc/syscalls/Makefile.am: Add EL/IX level checking.
9386         * libc/syscalls/Makefile.in: Regenerated.
9387         * libc/time/tzset_r.c: Change to replace strdup with equivalent
9388         functionality.
9389         * libc/unix/Makefile.am: Add EL/IX level checking.
9390         * libc/unix/Makefile.in: Regenerated.
9391
9392 2002-08-26  Christopher Faylor  <cgf@redhat.com>
9393
9394         * libc/include/malloc.h: On cygwin, define malloc _r functions as
9395         wrapper macros to standard malloc functions.
9396         * libc/include/stdlib.h: Ditto.
9397         * configure.host: Always define MALLOC_PROVIDED on cygwin.
9398
9399 2002-08-22  Thomas Fitzsimmons  <fitzsim@redhat.com>
9400
9401         * libc/include/langinfo.h: New file.
9402         * libc/include/wchar.h: Likewise.
9403         * libc/include/sys/syslimits.h: Likewise.
9404         * libc/locale/fix_grouping.c: Likewise.
9405         * libc/locale/ldpart.c: Likewise.
9406         * libc/locale/ldpart.h: Likewise.
9407         * libc/locale/lmessages.c: Likewise.
9408         * libc/locale/lmessages.h: Likewise.
9409         * libc/locale/lmonetary.c: Likewise.
9410         * libc/locale/lmonetary.h: Likewise.
9411         * libc/locale/lnumeric.c: Likewise.
9412         * libc/locale/lnumeric.h: Likewise.
9413         * libc/locale/nl_langinfo.3: Likewise.
9414         * libc/locale/nl_langinfo.c: Likewise.
9415         * libc/locale/timelocal.c: Likewise.
9416         * libc/locale/timelocal.h: Likewise.
9417         * libc/stdlib/btowc.c: Likewise.
9418         * libc/stdlib/mbrlen.c: Likewise.
9419         * libc/stdlib/mbrtowc.c: Likewise.
9420         * libc/stdlib/mbsinit.c: Likewise.
9421         * libc/stdlib/mbsrtowcs.c: Likewise.
9422         * libc/stdlib/wcrtomb.c: Likewise.
9423         * libc/stdlib/wcsrtombs.c: Likewise.
9424         * libc/stdlib/wctob.c: Likewise.
9425         * libc/sys/linux/prof-freq.c: Likewise.
9426         * libc/sys/linux/profile.c: Likewise.
9427         * libc/sys/linux/machine/i386/dl-procinfo.c: Likewise.
9428         * libc/sys/linux/machine/i386/dl-procinfo.h: Likewise.
9429         * libc/include/stdlib.h: Change re-entrant functions to take
9430         mbstate_t pointers.
9431         * libc/include/sys/_types.h: Define _mbstate_t.
9432         * libc/include/sys/config.h (MB_LEN_MAX): New macro.
9433         * libc/include/sys/errno.h (EILSEQ): New error code.
9434         * libc/include/sys/reent.h: Include wchar.h.  Change reentrant
9435         structure to use mbstate_t.
9436         * libc/locale/Makefile.am (LIB_SOURCES): Add new files.
9437         * libc/machine/powerpc/vfprintf.c: Use mbstate_t.
9438         * libc/machine/powerpc/vfscanf.c: Likewise.
9439         * libc/stdio/getdelim.c: Reallocate buffer only when necessary.
9440         * libc/stdio/vfprintf.c: Likewise.
9441         * libc/stdio/vfscanf.c: Likewise.
9442         * libc/stdlib/Makefile.am (LIB_SOURCES): Add new files.
9443         * libc/stdlib/mblen.c: Use mbstate_t.
9444         * libc/stdlib/mblen_r.c: Likewise.
9445         * libc/stdlib/mbstowcs.c: Likewise.
9446         * libc/stdlib/mbstowcs_r.c: Likewise.
9447         * libc/stdlib/mbtowc.c: Likewise.
9448         * libc/stdlib/mbtowc_r.c: Likewise.
9449         * libc/stdlib/wcstombs.c: Likewise.
9450         * libc/stdlib/wcstombs_r.c: Likewise.
9451         * libc/stdlib/wctomb_r.c: Likewise.
9452         * libc/sys/linux/Makefile.am (LIB_SOURCES): Add prof-freq.c and
9453         profile.c.
9454         * libc/sys/linux/machine/i386/Makefile.am (LIB_SOURCES): Add
9455         dl-procinfo.c.
9456         * libc/sys/linux/sys/errno.h (EILSEQ): New error code.
9457         * libc/sys/linux/sys/types.h (off_t): Define type.
9458         * testsuite/newlib.locale/UTF-8.c: Change locale name from UTF-8
9459         to C-UTF-8.
9460         * testsuite/newlib.locale/UTF-8.exp: Likewise.
9461
9462 2002-08-20  Casper S. Hornstrup  <chorns@users.sourceforge.net>
9463
9464         * libc/stdlib/mallocr.c: #include windows.h on Win32.
9465           (AlignPage): Continue macro on next line.
9466
9467 2002-08-19  Jeff Johnston  <jjohnstn@redhat.com>
9468
9469         * libc/sys/linux/include/pthread.h: New file.
9470
9471 2002-08-19  Jeff Johnston  <jjohnstn@redhat.com>
9472
9473         * libc/include/sys/types.h: Support __need_inttypes macro
9474         that only sets the __intxx and __uintxx types.
9475         * libc/machine/powerpc/Makefile.am: Add stdlib to include directories
9476         to get mprec.h.
9477         * libc/machine/powerpc/Makefile.in: Regenerated.
9478         * libc/machine/powerpc/vfprintf.c: Fix state variable type.
9479         * libc/machine/powerpc/vfscanf.c: Fix state variable type.  Remove
9480         redundant fixed-point conversion prototypes.
9481         * libc/machine/powerpc/machine/stdlib.h[__SPE__]: Include <sys/types.h>
9482         after setting __need_inttypes.
9483
9484 2002-08-18  Christopher Faylor  <cgf@redhat.com>
9485
9486         * libc/include/sys/unistd.h: Add getsid declaration for cygwin.
9487
9488 2002-08-17  Jeff Johnston  <jjohnstn@redhat.com>
9489
9490         * libc/include/sys/config.h[__PPC__][__SPE__]: Set
9491         _LONG_DOUBLE to double.
9492
9493 2002-08-17  Jeff Johnston  <jjohnstn@redhat.com>
9494
9495         * configure.host: Add powerpc*-*-eabispe* configuration.
9496         * libc/machine/powerpc/atosfix16.c: New fixed-point conversion file.
9497         * libc/machine/powerpc/atosfix32.c: Ditto.
9498         * libc/machine/powerpc/atosfix64.c: Ditto.
9499         * libc/machine/powerpc/atoufix16.c: Ditto.
9500         * libc/machine/powerpc/atoufix32.c: Ditto.
9501         * libc/machine/powerpc/atoufix64.c: Ditto.
9502         * libc/machine/powerpc/fix64.h: Ditto.
9503         * libc/machine/powerpc/simdldtoa.c: Ditto.
9504         * libc/machine/powerpc/strtosfix16.c: Ditto.
9505         * libc/machine/powerpc/strtosfix32.c: Ditto.
9506         * libc/machine/powerpc/strtosfix64.c: Ditto.
9507         * libc/machine/powerpc/strtoufix16.c: Ditto.
9508         * libc/machine/powerpc/strtoufix32.c: Ditto.
9509         * libc/machine/powerpc/strtoufix64.c: Ditto.
9510         * libc/machine/powerpc/ufix64toa.c: Ditto.
9511         * libc/machine/powerpc/configure.in: Add check for
9512         powerpc*-eabispe and add fixed-point conversion functions.
9513         * libc/machine/powerpc/configure: Regenerated.
9514         * libc/machine/powerpc/vfprintf.c[__SPE__]: Add support for
9515         %r and %R format specifiers which handle fixed-point data.
9516         * libc/machine/powerpc/vfscanf.c[__SPE__]: Ditto.
9517         * libc/machine/powerpc/machine/stdlib.h[__SPE__]: Add fixed-point
9518         function prototypes.
9519
9520 2002-08-17  Jeff Johnston  <jjohnstn@redhat.com>
9521
9522         *  Makefile.am: Move cmath stuff into libc/sys/linux.
9523         *  Makefile.in: Regenerated.
9524         *  configure.host: Default -DMB_CAPABLE for x86-linux.
9525         *  libc/include/reent.h: Define _sbrk to take signed int argument.
9526         *  libc/include/sys/unistd.h: Ditto for _sbrk_r and sbrk.
9527         *  libc/locale/locale.c[MB_CAPABLE]: Add LC_MESSAGES support and
9528         make locale name checking more efficient.  Also allow "C-ISO-8859-1"
9529         locale for LC_CTYPE and LC_MESSAGES.
9530         *  libc/reent/sbrkr.c: Change prototype to take ptrdiff_t.
9531         *  libc/sys/linux/brk.c: Change sbrk prototype.
9532         *  libc/sys/linux/include/time.h: Remove Cygwin stuff and
9533         include <sys/features.h>.
9534         (CLOCK_THREAD_CPUTIME): Renamed to CLOCK_THREAD_CPUTIME_ID.
9535         (CLOCK_PROCESS_CPUTIME): Renamed to CLOCK_PROCESS_CPUTIME_ID.
9536         *  libc/sys/linux/sys/cdefs.h: Replace with glibc sys/cdefs.h
9537         with a few local additions.
9538         *  libc/sys/linux/sys/features.h: New file.
9539         *  libc/sys/linux/sys/unistd.h: Change _sbrk_r and sbrk prototypes
9540         to take signed argument.
9541         *  libc/syscalls/syssbrk.c: Change sbrk, _sbrk_r, and _sbrk
9542         prototypes to take signed size argument.
9543
9544 2002-08-16  Thomas Fitzsimmons  <fitzsim@redhat.com>
9545
9546         * libc/sys/linux/cmath: New directory.
9547         * libc/sys/linux/include/cmathcalls.h: New file.
9548         * libc/sys/linux/include/complex.h: New file.
9549         * libc/sys/linux/machine/i386/huge_val.h: New file
9550         * libm/math/w_sincos.c: New file
9551         * libm/math/wf_sincos.c: New file
9552         * libm/mathfp/s_sincos.c: New file
9553         * libm/mathfp/sf_sincos.c: New file
9554         * Makefile.am (LIBC_OBJECTLISTS): Add cmath/objectlist.awk.in.
9555         * libc/include/math.h: Add sincos and sincosf declarations.
9556         * libc/sys/linux/Makefile.am (SUBDIRS): Add cmath.
9557         (SUBLIBS): Likewise.
9558         * libc/sys/linux/configure.in (AC_OUTPUT): Add cmath.
9559         * libm/math/Makefile.am (src): Add w_sincos.c.
9560         (fsrc): Add wf_sincos.c.
9561         * libm/mathfp/Makefile.am (src): Add s_sincos.c
9562         (fsrc): Add sf_sincos.c.
9563
9564 2002-08-12  Jeff Johnston  <jjohnstn@redhat.com>
9565
9566         * libc/sys/linux/machine/i386/crt0.c (__bss_start,_end):
9567         Declare as extern chars and use the address operator to
9568         properly use values set in linker script.
9569
9570 2002-08-09  Jason Tishler  <jason@tishler.net>
9571
9572         * libc/stdlib/mallocr.c: Include <limits.h>.
9573         (request2size): Change macro to do
9574         unsigned long comparisons and avoid signed overflow.
9575         (mALLOc): Add overflow check for the number of bytes to allocate.
9576         (rEALLOc): Ditto.
9577
9578 2002-08-09  Jeff Johnston  <jjohnstn@redhat.com>
9579
9580         * configure.host: Add check for --enable-newlib-io-pos-args
9581         and define WANT_IO_POS_ARGS flag if enabled.  Define
9582         the flag by default for x86-linux configurations.
9583         * configure.in: Add support for --enable-newlib-io-pos-args.
9584         * libc/configure.in: Ditto.
9585         * configure: Regenerated.
9586         * libc/configure: Ditto.
9587         * libc/stdio/Makefile.am: Specify -fshort-enums for compiling
9588         vfprintf.c and vfiprintf.c.
9589         * libc/stdio/Makefile.in: Regenerated.
9590         * libc/stdio/vfprintf.c: Add positional argument support that
9591         is enabled by compiling with -DWANT_IO_POS_ARGS.
9592
9593 2002-08-07  Richard Sandiford  <rsandifo@redhat.com>
9594
9595         * libc/include/machine/setjmp.h: For mips, define _JBLEN based
9596         based on __mips_soft_float rather than __mips64.
9597         * libc/machine/mips/setjmp.S: Provide hard and soft float versions
9598         of both 32-bit and 64-bit code.
9599
9600 2002-08-04  Christopher Faylor  <cgf@redhat.com>
9601
9602         * libc/stdio/popen.c (popen): Allow "rb", "rt", "wb", and "wt"
9603         arguments for popen to match similar functionality in fopen.
9604
9605 2002-07-29  Pierre Humblet  <pierre.humblet@ieee.org>
9606
9607         * libc/include/sys/unistd.h: Add setgroups prototype for Cygwin.
9608
9609 2002-07-29  Jeff Johnston  <jjohnstn@redhat.com>
9610
9611         * libc/sys/linux/Makefile.am: Add aio64.c.
9612         * libc/sys/linux/Makefile.in: Regenerated.
9613         * libc/sys/linux/aio.c (aio_init): ENOSYS stub added.
9614         * libc/sys/linux/aio64.c: New file.
9615
9616 2002-07-26  Jeff Johnston  <jjohnstn@redhat.com>
9617
9618         *  libc/include/sys/param.h (MAX, MIN): Added macros.
9619         *  libc/sys/linux/Makefile.am: Add new files.
9620         *  libc/sys/linux/Makefile.in: Regenerated.
9621         *  libc/sys/linux/sys/stat.h: Add *stat64 prototypes.
9622         *  libc/sys/linux/inode.c (fchdir): Added syscall.
9623         *  libc/sys/linux/ftw.c: New file.
9624         *  libc/sys/linux/ftw64.c: Ditto.
9625         *  libc/sys/linux/getwd.c: Ditto.
9626         *  libc/sys/linux/scandir64.c: Ditto.
9627         *  libc/sys/linux/strverscmp.c: Ditto.
9628         *  libc/sys/linux/versionsort.c: Ditto.
9629         *  libc/sys/linux/versionsort64.c: Ditto.
9630
9631 2002-07-26  Jeff Johnston  <jjohnstn@redhat.com>
9632
9633         * libc/string/strings.tex: Fix typo for memccpy.
9634
9635 2002-07-25  Jeff Johnston  <jjohnstn@redhat.com>
9636
9637         * libc/sys/linux/io64.c (truncate64, ftruncate64): Added.
9638         * libc/sys/linux/sys/types.h (off64_t): Definition added.
9639
9640 2002-07-25  Jeff Johnston  <jjohnstn@redhat.com>
9641
9642         * libc/sys/linux/Makefile.am: Add fclean.c.
9643         * libc/sys/linux/Makefile.in: Regenerated.
9644         * libc/sys/linux/fclean.c: New file.
9645
9646 2002-07-25  Jeff Johnston  <jjohnstn@redhat.com>
9647
9648         * libc/sys/linux/Makefile.am: Add confstr.c.
9649         * libc/sys/linux/Makefile.in: Regenerated.
9650         * libc/sys/linux/confstr.c: New file.
9651         * libc/sys/linux/confstr.h: Ditto.
9652         * libc/sys/linux/sys/unistd.h: Include <features.h> and
9653         <bits/environments.h>.
9654
9655 2002-07-25  Jeff Johnston  <jjohnstn@redhat.com>
9656
9657         * libc/sys/linux/config.h (__set_errno): Macro definition removed.
9658         * libc/sys/linux/fpathconf.c (__set_errno): Ditto.
9659         * libc/sys/linux/libc-internal.h (__set_errno): Ditto.
9660         * libc/sys/linux/pathconf.c (__set_errno): Ditto.
9661         * libc/sys/linux/ttyname_r.c (__set_errno): Ditto.
9662         * libc/sys/linux/sys/errno.h (__set_errno): Macro definition added.
9663
9664 2002-07-24  Jeff Johnston  <jjohnstn@redhat.com>
9665
9666         * libc/sys/linux/Makefile.am: Add new files.
9667         * libc/sys/linux/Makefile.in: Regenerated.
9668         * libc/sys/linux/fstab.c: New file.
9669         * libc/sys/linux/fstatvfs.c: Ditto.
9670         * libc/sys/linux/fstatvfs64.c: Ditto.
9671         * libc/sys/linux/internal_statvfs.c: Ditto.
9672         * libc/sys/linux/mntent.c: Ditto.
9673         * libc/sys/linux/mntent_r.c: Ditto.
9674         * libc/sys/linux/statvfs.c: Ditto.
9675         * libc/sys/linux/statvfs64.c: Ditto.
9676         * libc/sys/linux/include/paths.h: Ditto.
9677         * libc/sys/linux/inode.c (statfs, fstatfs): New syscalls
9678         with double-underscore weak-aliases.
9679         * libc/sys/linux/sys/stat.h: Add *stat64 prototypes.
9680
9681 2002-07-24  Jeff Johnston  <jjohnstn@redhat.com>
9682
9683         * libc/include/signal.h (SIG_IGN, SIG_DFL, SIG_ERR): Change
9684         to use _sig_func_ptr type casted constants.
9685         (_sig_func_ptr): Typedef moved to sys/signal.h.
9686         * libc/include/sys/signal.h (_sig_func_ptr): Typedef added.
9687         For __rtems, use POSIX definition, otherwise default to ANSI.
9688         * libc/sys/linux/sys/signal.h (_sig_func_ptr): Typedef added.
9689
9690 2002-07-24  Stephane Carrez  <stcarrez@nerim.fr>
9691
9692         * configure.host: Recognize m6811-elf and m6812-elf targets.
9693         * libc/include/machine/setjmp.h (_JBLEN): Define for 68hc11/68hc12.
9694         * libc/include/machine/ieeefp.h (__IEEE_BIG_ENDIAN): Define for 68HC11.
9695         (_DOUBLE_IS_32BITS): Define when compiling with -fshort-double.
9696         * libc/include/sys/config.h (INT_MAX, UINT_MAX): Define
9697         according to __INT_MAX__.
9698         (_POINTER_INT): Define to short.
9699         * libc/machine/m68hc11/Makefile.am: New file.
9700         * libc/machine/m68hc11/Makefile.in: New file.
9701         * libc/machine/m68hc11/configure.in: New file.
9702         * libc/machine/m68hc11/configure: New file.
9703         * libc/machine/m68hc11/aclocal.m4: New file.
9704         * libc/machine/m68hc11/setjmp.S: New file.
9705
9706 2002-07-23  Jeff Johnston  <jjohnstn@redhat.com>
9707
9708         * libc/include/string.h: Add mempcpy, strndup, and _strndup_r
9709         prototypes.
9710         * libc/stdlib/Makefile.am: Remove strdup.c and strdup_r.c.
9711         * libc/stdlib/Makefile.in: Regenerated.
9712         * libc/stdlib/strdup.c: Removed.
9713         * libc/stdlib/strdup_r.c: Removed.
9714         * libc/string/Makefile.am: Add strdup.c, strdup_r.c, memccpy.c,
9715         mempcpy.c, strndup.c, and strndup_r.c.
9716         * libc/string/Makefile.in: Regenerated.
9717         * libc/string/memccpy.c: New file.
9718         * libc/string/mempcpy.c: Ditto.
9719         * libc/string/strndup.c: Ditto.
9720         * libc/string/strndup_r.c: Ditto.
9721         * libc/string/strdup.c: New file moved from stdlib.
9722         * libc/string/strdup_r.c: Ditto.
9723         * libc/string/strings.tex: Add memccpy and mempcpy documentation.
9724
9725 2002-07-23  Jeff Johnston  <jjohnstn@redhat.com>
9726
9727         * libc/include/stdio.h: Move fcloseall prototype within
9728         #ifndef _REENT_ONLY section.
9729         * libc/sys/linux/Makefile.am: Add new files.
9730         * libc/sys/linux/Makefile.in: Regenerated.
9731         * libc/sys/linux/sys/stdio.h: Add ctermid prototype.
9732         * libc/sys/linux/sys/unistd.h: Add ttyname_r prototype.
9733         * libc/sys/linux/sys/types.h: Add ino64_t type.
9734         * libc/sys/linux/ctermid.c: New file.
9735         * libc/sys/linux/ttyname_r.c: Ditto.
9736         * libc/sys/linux/readdir64.c: Ditto.
9737
9738 2002-07-22  Jeff Johnston  <jjohnstn@redhat.com>
9739
9740         * libc/include/stdio.h (fcloseall, _fcloseall_r): Added prototypes.
9741         * libc/stdio/Makefile.am: Added fcloseall.c support.
9742         * libc/stdio/Makefile.in: Regenerated.
9743         * libc/stdio/fcloseall.c: New file.
9744         * libc/stdio64/Makefile.am: Remove missing .def references.
9745         * libc/stdio64/Makefile.in: Regenerated.
9746
9747 2002-07-22  Jeff Johnston  <jjohnstn@redhat.com>
9748
9749         * libc/machine/powerpc/time.c: Removed..renamed to times.c.
9750         * libc/machine/powerpc/times.c: New file.
9751         * libc/machine/powerpc/Makefile.am: Change time.c to times.c.
9752         * libc/machine/powerpc/Makefile.in: Regenerated.
9753
9754 2002-07-22  Aldy Hernandez  <aldyh@redhat.com>
9755
9756         * libc/machine/powerpc/time.c: New file.
9757         * libc/machine/powerpc/Makefile.am (lib_a_SOURCES): Add
9758         time.c.
9759         * libc/machine/powerpc/Makefile.in: Regenerated.
9760
9761 2002-07-22  Thomas Fitzsimmons  <fitzsim@redhat.com>
9762
9763         * libc/libc.texinfo: Change copyright notices to Red Hat from
9764         Cygnus.
9765         * libm/libm.texinfo: Likewise.
9766         * README: Change docs URL to
9767         http://sources.redhat.com/newlib/docs.html.
9768
9769 2002-07-19  Jeff Johnston  <jjohnstn@redhat.com>
9770
9771         * libc/sys/linux/Makefile.am: Add pathconf.c and fpathconf.c.
9772         * libc/sys/linux/Makefile.in: Regenerated.
9773         * libc/sys/linux/inode.c: Add chmod, fchmod, and chown syscalls.
9774         * libc/sys/linux/io.c: Add ftruncate syscall.
9775         * libc/sys/linux/fpathconf.c: New file.
9776         * libc/sys/linux/pathconf.c: Ditto.
9777         * libc/sys/linux/linux_fsinfo.h: Ditto.
9778         * libc/sys/linux/sys/unistd.h: Ditto.
9779
9780 2002-07-19  Jeff Johnston  <jjohnstn@redhat.com>
9781
9782         * libc/stdio64/Makefile.am: Remove missing files.
9783         * libc/stdio64/Makefile.in: Regenerated.
9784
9785 2002-07-19  Jeff Johnston  <jjohnstn@redhat.com>
9786
9787         * libc/include/sys/config.h[__i386__][__linux__]: Define
9788         _LARGE64FILE_SOURCE to 1.
9789         * libc/sys/linux/Makefile.am: Add getrlimit64.c and setrlimit64.c.
9790         * libc/sys/linux/Makefile.in: Regenerated.
9791         * libc/sys/linux/resource.c: Add __getrlimit and __setrlimit aliases.
9792         * libc/sys/linux/sys/linux_time.h: Protect struct timeval definition.
9793         * libc/sys/linux/sys/resource.h: Include <bits/resource.h> instead
9794         of <linux/resource.h>.
9795         * libc/sys/linux/getrlimit64.c: New file.
9796         * libc/sys/linux/setrlimit64.c: Ditto.
9797
9798 2002-07-19  Thomas Fitzsimmons  <fitzsim@redhat.com>
9799
9800         * libc/argz/argz_replace.c: Include buf_findstr.h.
9801         * libc/argz/buf_findstr.c: Likewise.
9802         * libc/argz/envz_entry.c: Include buf_findstr.h.  Cast return
9803         value to (char *).
9804         * libc/argz/envz_get.c: Likewise.
9805         * libc/include/sys/unistd.h: Add getopt and getsubopt declarations.
9806         * libc/stdlib/Makefile.am (LIB_SOURCES): Add getsubopt.c.
9807         * libc/stdlib/getsubopt.3: New file.
9808         * libc/stdlib/getsubopt.c: New file.
9809         * libc/sys/linux/machine/i386/socketcall.h (__sockcall_base):
9810         Change esp to ebp.
9811
9812 2002-07-17  Jeff Johnston  <jjohnstn@redhat.com>
9813
9814         * configure.host(stdio64_dir): New setting that is used to
9815         enable building of new stdio64 directory.
9816         * libc/Makefile.am[HAVE_STDIO64_DIR]: Add support for
9817         large files.
9818         (stmp-stdio64,stdio64.texi): New targets to optionally add in
9819         stdio64 info to info files.
9820         * libc/Makefile.in: Regenerated.
9821         * libc/configure: Ditto.
9822         * libc/configure.in: Add configuration variables that are set
9823         when stdio64 is selected as subdir in configure.host.
9824         * libc/libc.texinfo: Add optional menu item for Stdio64, based
9825         on whether STDIO64 flag is set or not.
9826         * libc/sys.tex: Add optional stdio64 syscalls based on whether
9827         STDIO64 flag is set or not.
9828         * libc/include/reent.h[__LARGE64_FILES]: Add new stdio64
9829         _r sycall routines.
9830         * libc/include/stdio.h[__LARGE64_FILES]: Add new stdio64 prototypes.
9831         (FILE): Typedef'd to __FILE instead of struct __sFILE directly.
9832         (__SL64): New file flag indicating file is opened via fopen64.
9833         * libc/include/sys/_types.h(_off64_t): Added.
9834         * libc/include/sys/config.h: For x86-linux, define __LARGE64_FILES.
9835         * libc/include/sys/reent.h(struct __sFILE64): New file structure
9836         for 64-bit offset large file support.
9837         (__FILE): New intermediate type either set to struct __sFILE64 or
9838         struct __sFILE, depending on whether __LARGE64_FILES is set or not.
9839         * libc/reent/Makefile.am[HAVE_STDIO64_DIR]: Add new files.
9840         * libc/reent/Makefile.in: Regenerated.
9841         * libc/reent/fstat64r.c: New file.
9842         * libc/reent/lseek64r.c: Ditto.
9843         * libc/reent/open64r.c: Ditto.
9844         * libc/reent/reent.tex: Optionally add stdio64 reentrant syscalls
9845         based on whether STDIO64 flag is set.
9846         * libc/stdio/stdio.tex: Add blank line.
9847         * libc/stdio64/Makefile.am: New file.
9848         * libc/stdio64/Makefile.in: Ditto.
9849         * libc/stdio64/fgetpos64.c: Ditto.
9850         * libc/stdio64/fopen64.: Ditto.
9851         * libc/stdio64/freopen64.c: Ditto.
9852         * libc/stdio64/fseeko64.c: Ditto.
9853         * libc/stdio64/fsetpos64.c: Ditto.
9854         * libc/stdio64/ftello64.c: Ditto.
9855         * libc/stdio64/local64.h: Ditto.
9856         * libc/stdio64/stdio64.c: Ditto.
9857         * libc/stdio64/stdio64.tex: Ditto.
9858         * libc/stdio64/tmpfile64.c: Ditto.
9859         * libc/sys/linux/io64.c: Add weak aliases for lseek64, fstat64, and
9860         open64.
9861
9862 2002-07-16  Jeff Johnston  <jjohnstn@redhat.com>
9863
9864         * libc/Makefile.am (stmp-extra): New target to set makeinfo flag
9865         if LIBC_EXTRA_LIB is present.
9866         * libc/Makefile.in: Regenerated.
9867         * libc/libc.texinfo: Add blank line.
9868         * libc/argz/Makefile.am: Add doc support.
9869         * libc/search/Makefile.am: Ditto.
9870         * libc/argz/Makefile.in: Regenerated.
9871         * libc/search/Makefile.in: Ditto.
9872         * libc/misc/misc.tex: Add ffs function.
9873         * libc/stdio/ftell.c: Fix missing doc delimeter in description.
9874
9875 2002-07-15  Jeff Johnston  <jjohnstn@redhat.com>
9876
9877         * libc/include/sys/config.h[__H8300__]: Replace __SMALL_BITFIELDS
9878         definition that was removed in error.
9879
9880 2002-07-15  Jeff Johnston  <jjohnstn@redhat.com>
9881
9882         * libc/include/machine/ieeefp.h: Change to only define
9883         floating point defines (e.g one of __IEEE_BIG_ENDIAN or
9884         __IEEE_LITTLE_ENDIAN must be defined for each platform).
9885         * libc/include/sys/config.h: Include <machine/ieeefp.h> and
9886         remove redundant floating point definitions.
9887
9888 2002-07-15  Jeff Johnston  <jjohnstn@redhat.com>
9889
9890         * libc/sys/linux/callocr.c: Fix so code references
9891         calloc.
9892
9893 2002-07-15  Jeff Johnston  <jjohnstn@redhat.com>
9894
9895         * libc/sys/linux/Makefile.am: Add new files.
9896         * libc/sys/linux/Makefile.in: Regenerated.
9897         * libc/sys/linux/bp-sym.h: Moved to include directory.
9898         * libc/sys/linux/mmap.c: Add weak aliases: __mmap, __munmap, __mremap.
9899         * libc/sys/linux/inode.c: Set _LIBC to 1.
9900         * libc/sys/linux/mq_close.c: Ditto.
9901         * libc/sys/linux/mq_getattr.c: Ditto.
9902         * libc/sys/linux/mq_open.c: Ditto.
9903         * libc/sys/linux/mq_receive.c: Ditto.
9904         * libc/sys/linux/mq_send.c: Ditto.
9905         * libc/sys/linux/mq_setattr.c: Ditto.
9906         * libc/sys/linux/mq_unlink.c: Ditto.
9907         * libc/sys/linux/calloc.c: New file.
9908         * libc/sys/linux/callocr.c: Ditto.
9909         * libc/sys/linux/cfreer.c: Ditto.
9910         * libc/sys/linux/config.h: Ditto.
9911         * libc/sys/linux/free.c: Ditto.
9912         * libc/sys/linux/freer.c: Ditto.
9913         * libc/sys/linux/msize.c: Ditto.
9914         * libc/sys/linux/msizer.c: Ditto.
9915         * libc/sys/linux/mstats.c: Ditto.
9916         * libc/sys/linux/mtrim.c: Ditto.
9917         * libc/sys/linux/mtrimr.c: Ditto.
9918         * libc/sys/linux/pvallocr.c: Ditto.
9919         * libc/sys/linux/realloc.c: Ditto.
9920         * libc/sys/linux/reallocr.c: Ditto.
9921         * libc/sys/linux/thread-m.h: Ditto.
9922         * libc/sys/linux/vallocr.c: Ditto.
9923         * libc/sys/linux/bp-checks.h: Ditto.
9924         * libc/sys/linux/libc-symbols.h: Ditto.
9925         * libc/sys/linux/libc-tsd.h: Ditto.
9926         * libc/sys/linux/libintl.h: Ditto.
9927         * libc/sys/linux/malign.c: Ditto.
9928         * libc/sys/linux/malignr.c: Ditto.
9929         * libc/sys/linux/mallinfor.c: Ditto.
9930         * libc/sys/linux/malloc.c: Ditto.
9931         * libc/sys/linux/mallocr.c: Ditto.
9932         * libc/sys/linux/malloptr.c: Ditto.
9933         * libc/sys/linux/mallstatsr.c: Ditto.
9934         * libc/sys/linux/mcheck.c: Ditto.
9935         * libc/sys/linux/mhooks.h: Ditto.
9936         * libc/sys/linux/include/bp-sym.h: Ditto.
9937         * libc/sys/linux/include/malloc.h: Ditto.
9938         * libc/sys/linux/include/mcheck.h: Ditto.
9939         * libc/sys/linux/linuxthreads/machine/i386/Makefile.am: Remove
9940         getpagesize.c.
9941         * libc/sys/linux/linuxthreads/machine/i386/Makefile.in: Regenerated.
9942         * libc/sys/linux/linuxthreads/machine/i386/getpagesize.c: Moved.
9943         * libc/sys/linux/machine/i386/getpagesize.c: New file.
9944         * libc/sys/linux/machine/i386/Makefile.am: Add getpagesize.c.
9945         * libc/sys/linux/machine/i386/Makefile.in: Regenerated.
9946         * libc/sys/linux/machine/i386/sysdep.h: New file.
9947         * libc/sys/linux/machine/i386/weakalias.h: Add weak_function support.
9948         * libc/sys/linux/sys/dirent.h: Set _LIBC to 1.
9949         * libc/sys/linux/sys/lock.h: Include <machine/weakalias.h>.
9950
9951 2002-07-12  Jeff Johnston  <jjohnstn@redhat.com>
9952
9953         * libc/sys/linux/include/mqueue.h: Change to use <bits/siginfo.h>
9954         instead of <asm/siginfo.h>.
9955         * libc/sys/linux/sys/signal.h: Change to include various linux
9956         <bits/xxx.h> header files, rather than <linux/signal.h> so as
9957         to work with multiple releases of glibc header files.
9958
9959 2002-07-11  Chris Demetriou  <cgd@broadcom.com>
9960
9961         * testsuite/newlib.search/hsearchtest.c: New file to test
9962         newlib/libc/search.
9963         * testsuite/newlib.search/hsearchtest.exp: Likewise.
9964
9965 2002-07-10  Florian Schrack  <florian.schrack@freenet.de>
9966
9967         * libc/sys/mmixware/read.c: Use SYS_Fgets syscall if dealing with
9968         a terminal.
9969         * libc/sys/mmixware/sys/syscall.h (SYS_Fgets): Definition added.
9970
9971 2002-07-08  Jeff Johnston  <jjohnstn@redhat.com>
9972
9973         * libc/include/math.h (MAXFLOAT): Added.
9974
9975 Mon Jul  8 13:55:23 2002  J"orn Rennecke <joern.rennecke@superh.com>
9976
9977         * libc/machine/sh/Makefile.am (lib_a_SOURCES):
9978         Make strcmp.S unconditional.
9979         * libc/machine/sh/Makefile.in: Regenerate.
9980         * libc/machine/sh/asm.h (DELAYED_BRANCHES, SL): Also for __SH5__ .
9981         * strcmp.S (strcmp): Add SHmedia variant.  Use different registers
9982         for SHcompact.
9983
9984 2002-07-04  Jeff Johnston  <jjohnstn@redhat.com>
9985
9986         * libc/sys/linux/inode.c: Fix utime prototype and add _LIBC
9987         define before including <sys/lock.h>.
9988
9989 2002-07-04  Jeff Johnston  <jjohnstn@redhat.com>
9990
9991         * libc/include/utime.h: Add include of <_ansi.h>.
9992         * libc/sys/linux/Makefile.am: Add utimes.c.
9993         * libc/sys/linux/Makefile.in: Regenerated.
9994         * libc/sys/linux/inode.c(__umask): New static routine.
9995         (umask): Written to use __umask and attempt to thread lock.
9996         (getumask): New function written to use __umask and thread lock.
9997         * libc/sys/linux/utimes.c: New file.
9998         * libc/sys/linux/sys/time.h: Fix utimes prototype.
9999         * libc/sys/linux/sys/utime.h: New file.
10000
10001 2002-07-04  Thomas Fitzsimmons  <fitzsim@redhat.com>
10002
10003         * libtool.m4: New file.
10004         * libc/sys/linux/process.c: Implement vfork in terms of fork,
10005         rather than as a syscall.
10006
10007 2002-07-04  Jeff Johnston  <jjohnstn@redhat.com>
10008
10009         * libc/include/stdio.h: Add new prototypes.
10010         * libc/stdio/Makefile.am: Add fseeko.c and ftello.c.
10011         * libc/stdio/Makefile.in: Regenerated.
10012         * libc/stdio/fseek.c: Add fseeko documentation.
10013         * libc/stdio/ftell.c: Add ftello documentation.
10014         * libc/stdio/fseeko.c: New file.
10015         * libc/stdio/ftello.c: New file.
10016
10017 2002-07-04  Jeff Johnston  <jjohnstn@redhat.com>
10018
10019         * libc/stdio/Makefile.am: Add asprintf.c and vasprintf.c.
10020         * libc/stdio/Makefile.in: Regenerated.
10021         * libc/stdio/asprintf.c: New file.
10022         * libc/stdio/vasprintf.c: Ditto.
10023         * libc/stdio/fvwrite.c: Add code to dynamically reallocate
10024         the buffer for asprintf support.
10025         * libc/stdio/sprintf.c: Add asprintf documentation.
10026         * libc/stdio/vfprintf.c: Add vasprintf documentation.
10027         * libc/include/stdio.h: Add new prototypes.
10028
10029 2002-07-02  Thomas Fitzsimmons  <fitzsim@redhat.com>
10030
10031         * libc/search/hcreate.c: Remove advertising clause from license.
10032         * libc/search/hcreate_r.c: Likewise.
10033
10034 2002-07-02  Chris Demetriou  <cgd@broadcom.com>
10035
10036         * libc/include/sys/config.h (__IEEE_LITTLE_ENDIAN)
10037         (__IEEE_BIG_ENDIAN): Define appropriately for MIPS.
10038         Check that one of them is defined and error out if not.
10039         Add any platforms defined in <machine/ieeefp.h> that are missing.
10040         * libc/search/hash.h (DB_BYTE_ORDER, DB_BIG_ENDIAN)
10041         (DB_LITTLE_ENDIAN): New defines.
10042         * libc/search/hash.c: Replace all incorrect checks for
10043         _IEEE_LITTLE_ENDIAN with tests of BYTE_ORDER, and all uses of
10044         BYTE_ORDER, LITTLE_ENDIAN, and BIG_ENDIAN with DB_* versions.
10045         * libc/search/hash_page.c: Likewise.
10046
10047 2002-06-28  Thomas Fitzsimmons  <fitzsim@redhat.com>
10048
10049         * libm/mathfp/sf_pow.c (powf): Change k from int to float.
10050
10051 2002-06-27  Benjamin Kosnik  <bkoz@redhat.com>
10052
10053         * libc/include/stdio.h: Untangle, add _BEGIN_STD_C and _END_STD_C.
10054         * libc/include/time.h: Same.
10055         * libc/include/string.h: Same.
10056         * libc/include/stdlib.h: Same.
10057         * libc/include/signal.h: Same.
10058         * libc/include/setjmp.h: Same.
10059         * libc/include/math.h: Same.
10060         * libc/include/locale.h: Same.
10061         * libc/include/ctype.h: Same.
10062         * libc/include/machine/setjmp.h: Same.
10063         * libc/include/_ansi.h (_BEGIN_STD_C): Add.
10064         (_END_STD_C): Add.
10065
10066 2002-06-27  Jeff Johnston  <jjohnstn@redhat.com>
10067
10068         * libc/include/sys/_types.h: Define _ssize_t as int if int is
10069         32-bits, otherwise define it as long.
10070         * libc/include/sys/types.h: Include <_ansi.h> and <sys/_types.h>
10071         and define ssize_t as _ssize_t.
10072         * libc/reent/readr.c: Change return type to _ssize_t.
10073         * libc/reent/writer.c: Ditto.
10074         * libc/sys/linux/Makefile.am: Add aio.c.
10075         * libc/sys/linux/Makefile.in: Regenerated.
10076         * libc/sys/linux/aio.c: New file.
10077         * libc/sys/linux/sys/cdefs.h: Add __restrict_arr definition.
10078         * libm/common/fdlibm.h: Undef __P before defining it.
10079
10080 2002-06-27  Thomas Fitzsimmons  <fitzsim@redhat.com>
10081
10082         * libm/mathfp/s_pow.c (pow): Fix checks on variable k.  Add
10083         exponent_is_even_int variable.  Handle case where x is
10084         negative, and y is an odd integer.
10085         * libm/mathfp/sf_pow.c (powf): Likewise.
10086
10087         * libm/mathfp/er_lgamma.c: Remove __kernel references.
10088         * libm/mathfp/erf_lgamma.c: Likewise.
10089         * libm/mathfp/s_tgamma.c: Likewise.
10090         * libm/mathfp/sf_tgamma.c: Likewise.
10091
10092 2002-06-27  Jeff Johnston  <jjohnstn@redhat.com>
10093
10094         * libc/sys/linux/Makefile.am: Add new clock routines.
10095         * libc/sys/linux/Makefile.in: Regenerated.
10096         * libc/sys/linux/clock_getres.c: New file.
10097         * libc/sys/linux/clock_gettime.c: Ditto.
10098         * libc/sys/linux/clock_settime.c: Ditto.
10099         * libc/sys/linux/hp-timing.h: Ditto.
10100         * libc/sys/linux/libc-internal.h: Ditto.
10101         * libc/sys/linux/sysconf.c: Fix typo.
10102         * libc/sys/linux/include/time.h: Add include of <sys/linux_time.h>.
10103         * libc/sys/linux/machine/hp-timing.h: New file.
10104         * libc/sys/linux/machine/i386/Makefile.am: Add new files.
10105         * libc/sys/linux/machine/i386/Makefile.in: Regenerated.
10106         * libc/sys/linux/machine/i386/get_clockfreq.c: New file.
10107         * libc/sys/linux/machine/i386/hp-timing.c: Ditto.
10108         * libc/sys/linux/machine/i386/hp-timing.h: Ditto.
10109         * libc/sys/linux/sys/linux_time.h: New file.
10110         * libc/sys/linux/sys/time.h: Remove include of <linux/time.h> and
10111         replace with <sys/linux_time.h>.
10112
10113 Wed Jun 26 16:33:25 2002  J"orn Rennecke <joern.rennecke@superh.com>
10114
10115         * libc/sys/sh/crt0.S: Remove vestigial .section directive.
10116
10117 2002-06-25  Jeff Johnston  <jjohnstn@redhat.com>
10118
10119         * libc/sys/linux/Makefile.am: Consolidate additional items under
10120         ADD_OBJS.
10121         * libc/sys/linux/Makefile.in: Regenerated.
10122
10123 2002-06-25  Jeff Johnston  <jjohnstn@redhat.com>
10124
10125         * libc/sys/linux/sethostname.c: New file.
10126         * libc/sys/linux/Makefile.am: Add sethostname.c support.
10127         * libc/sys/linux/Makefile.in: Regenerated.
10128
10129 2002-06-24  Thomas Fitzsimmons  <fitzsim@redhat.com>
10130
10131         * libc/search/db_local.h: New file.
10132         * libc/include/db.h: Remove.
10133         * libc/search/Makefile.am (LIB_SOURCES): Add db_local.h.
10134         * libc/search/hash.c (MIN,MAX): Add macros.  Change <db.h> to
10135         "db_local.h".
10136         * libc/search/hash_bigkey.c: Likewise.
10137         * libc/search/hash_buf.c: Likewise.
10138         * libc/search/hash_func.c: Likewise.
10139         * libc/search/hash_log2.c: Likewise.
10140         * libc/search/hash_page.c: Likewise.
10141
10142 2002-06-24  J"orn Rennecke <joern.rennecke@superh.com>
10143
10144         * libc/machine/sh/strlen.S: New file.
10145         * libc/machine/sh/Makefile.am (lib_a_SOURCES): Add rule for it.
10146         * libc/machine/sh/Makefile.am: Regenerate.
10147
10148 2002-06-24  Jeff Johnston  <jjohnstn@redhat.com>
10149
10150         * libc/sys/linux/gethostname.c: Change name to __gethostname and
10151         add gethostname alias.
10152
10153 2002-06-24  Jeff Johnston  <jjohnstn@redhat.com>
10154
10155         * libc/include/math.h: Remove <sys/types.h>.
10156         (__dmath): Use __ULong instead of __uint32_t.
10157         * libc/include/sys/reent.h: If long or int is not 32-bits,
10158         include <sys/types.h> to get definitions for __int32_t and __uint32_t.
10159         * libc/stdlib/mprec.h: Include <sys/types.h> to get integer defs.
10160         * libm/common/fdlibm.h: Ditto.
10161
10162 2002-06-24  Thomas Fitzsimmons  <fitzsim@redhat.com>
10163
10164         * libc/include/ndbm.h: Remove.
10165         * libc/search/ndbm.c: Remove.
10166
10167 2002-06-24  WATANABE Hirofumi <eban@os.rim.or.jp>
10168
10169         * libc/stdio/fseek.c (fseek): Fix braces.
10170
10171 2002-06-21  Corinna Vinschen  <corinna@vinschen.de>
10172
10173         * libc/time/strftime.c (strftime): Add %e format specifier.
10174
10175 2002-06-21  Thomas Fitzsimmons  <fitzsim@redhat.com>
10176
10177         * libc/search/hash.h (LITTLE_ENDIAN, BIG_ENDIAN): Define if not
10178         previously defined.
10179
10180 2002-06-21  Richard Earnshaw  (rearnsha@arm.com)
10181
10182         * libc/sys/arm/sys/param.h (BIG_ENDIAN, LITTLE_ENDIAN): Define.
10183         (BYTE_ORDER): Define as appropriate for the target.
10184
10185 2002-06-21  Jeff Johnston  <jjohnstn@redhat.com>
10186
10187         * libc/include/sys/config.h[__linux__]: Set _READ_WRITE_RETURN_TYPE
10188         to _ssize_t.
10189         * libc/sys/linux/io.c (read, write): Change to return ssize_t.
10190
10191 2002-06-21  Jeff Johnston  <jjohnstn@redhat.com>
10192
10193         * libc/include/stdio.h (__getline, __getdelim): New prototypes.
10194         * libc/include/time.h [HAVE_GETDATE](getdate, getdate_r): Ditto.
10195         [HAVE_GETDATE](getdate_err): New error code.
10196         * libc/stdio/Makefile.am: Add support for getline.c and getdelim.c.
10197         * libc/stdio/Makefile.in: Regenerated.
10198         * libc/stdio/getdelim.c: New file.
10199         * libc/stdio/getline.c: Ditto.
10200         * libc/sys/linux/Makefile.am: Add support for getdate.c, getdate_err.c
10201         and ntp_gettime.c.  Also add AM_CFLAGS to point to libc/stdio.
10202         * libc/sys/linux/Makefile.in: Regenerated.
10203         * libc/sys/linux/getdate.c: New file.
10204         * libc/sys/linux/getdate_err.c: Ditto.
10205         * libc/sys/linux/ntp_gettime.c: Ditto.
10206         * libc/sys/linux/time.c (adjtimex, ntp_adjtime): New functions.
10207         * libc/sys/linux/sys/stdio.h (getline, getdelim): New macros.
10208
10209 2002-06-21  Jeff Johnston  <jjohnstn@redhat.com>
10210
10211         * libc/include/math.h: Add <sys/types.h> to get _uint32_t definition.
10212         * libc/include/machine/types.h: Skip __off_t, __pid_t, and
10213         __loff_t definitions if special _HAVE_SYSTYPES macro defined.
10214         * libc/include/sys/config.h: Removed _uint*, _int* definitions.
10215         * libc/include/sys/param.h: Remove i386 case which is handled
10216         by default case.
10217         (BIG_ENDIAN, LITTLE_ENDIAN): Protect
10218         definitions in case they are already defined.
10219         (BYTE_ORDER): Add default case using _IEEE_BIG_ENDIAN and
10220         _IEEE_LITTLE_ENDIAN flags.
10221         * libc/include/sys/reent.h: Change __uint32_t references to
10222         use _ULong instead.
10223         (_REENT_GETDATE_REENT_P): New macro.
10224         * libc/include/sys/types.h (__int16_t, __uint16_t): Added.
10225         (__int32_t, __uint32_t, __int64_t, __uint64_t): Ditto.
10226         * libc/search/hash.h: Add default setting of BYTE_ORDER,
10227         LITTLE_ENDIAN, and BIG_ENDIAN, if not already defined.
10228         * libc/sys/linux/sys/types.h: Include <sys/_types.h>.  Define
10229         ssize_t based on _ssize_t.  Remove __socklen_t, __uintptr_t,
10230         pid_t, off_t, loff_t, caddr_t, and daddr_t type
10231         definitions which are done by subsequent glibc headers.
10232         Add macro definitions to prevent subsequent header files from
10233         defining pid_t, off_t, ssize_t, and key_t.  Move uintptr_t and
10234         intptr_t to after glibc definitions of types they are based on.
10235
10236 2002-06-21  Jeff Johnston  <jjohnstn@redhat.com>
10237
10238         * libc/include/errno.h: Protect from multiple inclusion.
10239
10240 2002-06-21  Nick Clifton  <nickc@cambridge.redhat.com>
10241
10242         * libc/sys/arm/swi.h (ADP_Stopped_RunTimeError): Set correct value.
10243
10244 2002-06-20  Thomas Fitzsimmons  <fitzsim@redhat.com>
10245
10246         * Makefile.am (LIB_OBJECTLISTS): Add
10247         libc/search/objectlist.awk.in.
10248         * libc/Makefile.am (SUBDIRS): Add search.
10249         (SUBLIBS): Add search/libsearch.la.
10250         * libc/configure.in (AC_OUTPUT): Add search/Makefile.
10251         * libc/search: New directory.
10252         * libc/search/Makefile.am: New file.
10253         * libc/search/extern.h: New file.
10254         * libc/search/hash.c: New file.
10255         * libc/search/hash.h: New file.
10256         * libc/search/hash_bigkey.c: New file.
10257         * libc/search/hash_buf.c: New file.
10258         * libc/search/hash_func.c: New file.
10259         * libc/search/hash_log2.c: New file.
10260         * libc/search/hash_page.c: New file.
10261         * libc/search/hcreate.3: New file.
10262         * libc/search/hcreate.c: New file.
10263         * libc/search/hcreate_r.c: New file.
10264         * libc/search/ndbm.c: New file.
10265         * libc/search/page.h: New file.
10266         * libc/search/tdelete.c: New file.
10267         * libc/search/tdestroy.c: New file.
10268         * libc/search/tfind.c: New file.
10269         * libc/search/tsearch.3: New file.
10270         * libc/search/tsearch.c: New file.
10271         * libc/search/twalk.c: New file.
10272         * libc/include/db.h: New file.
10273         * libc/include/ndbm.h: New file.
10274         * libc/include/search.h: New file.
10275         * libc/include/sys/queue.h: New file.
10276         * libc/include/sys/cdefs.h: New file.
10277         * libc/include/sys/param.h
10278         [__IEEE_LITTLE_ENDIAN,__IEEE_BIG_ENDIAN]: Set BYTE_ORDER to
10279         LITTLE_ENDIAN or BIG_ENDIAN.
10280         * libc/include/sys/errno.h (EFTYPE): New macro.
10281         * libc/search/bsearch.c: Move from libc/stdlib.
10282         * libc/search/qsort.c: Likewise.
10283         * libc/stdlib/Makefile.am (LIB_SOURCES): Remove bsearch.c and
10284         qsort.c.
10285         (CHEWOUT_FILES): Remove bsearch.def and qsort.def.
10286         * libc/stdlib/stdlib.tex: Remove references to bsearch and qsort.
10287
10288 2002-06-19  Jeff Johnston  <jjohnstn@redhat.com>
10289
10290         * libc/sys/linux/Makefile.am: Add support for message queue routines,
10291         ipc routines, and ftok.
10292         * libc/sys/linux/Makefile.in: Regenerated.
10293         * libc/sys/linux/ftok.c: New file.
10294         * libc/sys/linux/ipc.c: Ditto.
10295         * libc/sys/linux/mq_close.c: Ditto.
10296         * libc/sys/linux/mq_getattr.c: Ditto.
10297         * libc/sys/linux/mq_notify.c: Ditto.
10298         * libc/sys/linux/mq_open.c: Ditto.
10299         * libc/sys/linux/mq_receive.c: Ditto.
10300         * libc/sys/linux/mq_send.c: Ditto.
10301         * libc/sys/linux/mq_setattr.c: Ditto.
10302         * libc/sys/linux/mq_unlink.c: Ditto.
10303         * libc/sys/linux/mqlocal.h: Ditto.
10304         * libc/sys/linux/include/mqueue.h: Ditto.
10305         * libc/sys/linux/sys/types.h: Define __gid_t_defined and
10306         __uid_t_defined.
10307
10308 2002-06-19  J"orn Rennecke <joern.rennecke@superh.com>
10309
10310         * libm/common/sf_lround.c (round): Change name to: (lround).
10311         * libm/common/sf_remquo.c (remquo): Pass all arguemnts to
10312         remquof.
10313
10314 2002-06-18  Thomas Fitzsimmons  <fitzsim@redhat.com>
10315
10316         * testsuite/lib/passfail.exp (newlib_pass_fail_all): New
10317         procedure.
10318         (newlib_pass_fail): Change to compile and run only one file.
10319         * testsuite/newlib.locale/locale.exp: Use new
10320         newlib_pass_fail_all procedure.
10321         * testsuite/newlib.string/string.exp: Likewise.
10322
10323 2002-06-18  Dave Brolley  <brolley@redhat.com>
10324
10325         From Catherine Moore, Michael Meissner, Richard Sandiford:
10326         * libc/include/machine/setjmp.h (_JBLEN): Define for __frv__.
10327         (_JBTYPE): Ditto.
10328         * libc/include/sys/config.h (__IEEE_BIG_ENDIAN): Ditto.
10329         (__ATTRIBUTE_IMPURE_PTR__): Ditto.
10330         * libc/include/machine/ieeefp.h (__IEEE_BIG_ENDIAN): Ditto.
10331         * configure.host: Support frv-*-*.
10332         * libc/machine/frv/Makefile.am: New file.
10333         * libc/machine/frv/configure.in: New file.
10334         * libc/machine/frv/setjmp.S: New file.
10335
10336 2002-06-18  Thomas Fitzsimmons  <fitzsim@redhat.com>
10337
10338         * libc/include/ctype.h: Remove isblank macro.
10339
10340         * libc/ctype/Makefile.am (LIB_SOURCES): Add isblank.c.
10341         * libc/ctype/isblank.c: New file.
10342         * libc/include/ctype.h [!__STRICT_ANSI__]: Add isblank
10343         declaration.  Add isblank macro.
10344
10345 2002-06-18  Jeff Johnston  <jjohnstn@redhat.com>
10346
10347         * testsuite/newlib.stdlib/atexit.c: New file.
10348         * testsuite/newlib.stdlib/atexit.exp: Ditto.
10349         * testsuite/newlib.string/tstring.c: Change default start size
10350         to something more reasonable for embedded platforms.
10351
10352 2002-06-14  Thomas Fitzsimmons  <fitzsim@redhat.com>
10353
10354         * libc/sys/linux/sys/errno.h (EFTYPE): Add macro.
10355
10356         * libc/argz: New directory.
10357         * libc/argz/*: New files.
10358         * libc/argz/argz_add.c: New file.
10359         * libc/argz/argz_add_sep.c: New file.
10360         * libc/argz/argz_append.c: New file.
10361         * libc/argz/argz_count.c: New file.
10362         * libc/argz/argz_create.c: New file.
10363         * libc/argz/argz_create_sep.c: New file.
10364         * libc/argz/argz_delete.c: New file.
10365         * libc/argz/argz_extract.c: New file.
10366         * libc/argz/argz_insert.c: New file.
10367         * libc/argz/argz_next.c: New file.
10368         * libc/argz/argz_replace.c: New file.
10369         * libc/argz/argz_stringify.c: New file.
10370         * libc/argz/buf_findstr.c: New file.
10371         * libc/argz/envz_add.c: New file.
10372         * libc/argz/envz_entry.c: New file.
10373         * libc/argz/envz_get.c: New file.
10374         * libc/argz/envz_merge.c: New file.
10375         * libc/argz/envz_remove.c: New file.
10376         * libc/argz/envz_strip.c: New file.
10377         * libc/include/argz.h: New file.
10378         * libc/include/envz.h: New file.
10379         * Makefile.am (LIBC_OBJECTLISTS): Add
10380         libc/argz/objectlist.awk.in.
10381         * libc/Makefile.am (SUBDIRS): Add argz.
10382         (SUBLIBS): Add argz/libargz.la.
10383         * libc/configure.in (AC_OUTPUT): Add argz/Makefile.
10384         * libc/include/errno.h: Add error_t typedef.
10385
10386 2002-06-13  Jeff Johnston  <jjohnstn@redhat.com>
10387
10388         * libc/include/stdlib.h: Add _Exit prototype.
10389         * libc/stdlib/Makefile.am: Add _Exit.c support.
10390         * libc/stdlib/Makefile.in: Ditto.
10391         * libc/stdlib/_Exit.c: New file.
10392
10393 2002-06-13  Stephen L. Moshier  <steve@moshier.net>
10394
10395         * libm/math/e_pow.c (__ieee754_pow): Fix case whereby
10396         x is close to -1.0 and y is very large to use ax (absolute value)
10397         instead of x.
10398         * libm/math/ef_pow.c (__ieee754_powf): Ditto.
10399
10400 Thu Jun 13 19:23:40 2002  J"orn Rennecke <joern.rennecke@superh.com>
10401
10402         * libc/machine/sh/strcpy.S (strcpy, __SHMEDIA__ code):
10403         Fix clobbering bytes before destination if src and dst have same
10404         non-zero misalignment.
10405
10406         * libc/machine/sh/memset.S (memset, __SHMEDIA__ code):
10407         Fixed bug in writing end of set region.
10408
10409 2002-06-10  Christopher Faylor  <cgf@redhat.com>
10410
10411         * libc/include/process.h: Remove cygwin-only sexec* declarations.  Fix
10412         spawnve declaration.
10413
10414 2002-06-06  Thomas Fitzsimmons  <fitzsim@redhat.com>
10415
10416         * libm/common/s_fdim.c: New file.
10417         * libm/common/s_fma.c: Likewise.
10418         * libm/common/s_fmax.c: Likewise.
10419         * libm/common/s_fmin.c: Likewise.
10420         * libm/common/s_fpclassify.c: Likewise.
10421         * libm/common/s_lrint.c: Likewise.
10422         * libm/common/s_lround.c: Likewise.
10423         * libm/common/s_nearbyint.c: Likewise.
10424         * libm/common/s_remquo.c: Likewise.
10425         * libm/common/s_round.c: Likewise.
10426         * libm/common/s_scalbln.c: Likewise.
10427         * libm/common/s_signbit.c: Likewise.
10428         * libm/common/s_trunc.c: Likewise.
10429         * libm/common/sf_fdim.c: Likewise.
10430         * libm/common/sf_fma.c: Likewise.
10431         * libm/common/sf_fmax.c: Likewise.
10432         * libm/common/sf_fmin.c: Likewise.
10433         * libm/common/sf_lrint.c: Likewise.
10434         * libm/common/sf_lround.c: Likewise.
10435         * libm/common/sf_nearbyint.c: Likewise.
10436         * libm/common/sf_remquo.c: Likewise.
10437         * libm/common/sf_round.c: Likewise.
10438         * libm/common/sf_scalbln.c: Likewise.
10439         * libm/common/sf_trunc.c: Likewise.
10440         * libm/math/w_exp2.c: Likewise.
10441         * libm/math/w_tgamma.c: Likewise.
10442         * libm/math/wf_exp2.c: Likewise.
10443         * libm/math/wf_tgamma.c: Likewise.
10444         * libm/mathfp/s_exp2.c: Likewise.
10445         * libm/mathfp/s_tgamma.c: Likewise.
10446         * libm/mathfp/sf_exp2.c: Likewise.
10447         * libm/mathfp/sf_tgamma.c: Likewise.
10448         * libm/math/er_gamma.c: Fix return value.
10449         * libm/math/erf_gamma.c: Likewise.
10450         * libm/mathfp/er_gamma.c: Likewise.
10451         * libm/mathfp/erf_gamma.c: Likewise.
10452         * libc/include/math.h (!__STRICT_ANSI__): Include ISOC99-specific
10453         declarations and macros.
10454         Regenerated all Makefile.in, aclocal.m4 and configure files to
10455         use new libtool macros in top-level libtool.m4
10456
10457 2002-06-05  Jeff Johnston  <jjohnstn@redhat.com>
10458
10459         * libc/include/string.h[__linux__]: Add strsignal prototype.
10460         * libc/include/sys/lock.h: New file with default locking support.
10461         * libc/include/sys/reent.h: Add signal buffer support for strsignal
10462         and psignal.
10463         * libc/posix/Makefile.am: Add support for readdir_r.c.
10464         * libc/posix/Makefile.in: Regenerated.
10465         * libc/posix/closedir.c: Add locking support and hash table cleanup.
10466         * libc/posix/opendir.c: Add lock support.
10467         * libc/posix/readdir.c: Ditto.
10468         * libc/posix/rewinddir.c: Ditto.
10469         * libc/posix/scandir.c: Ditto.
10470         * libc/posix/seekdir.c: Ditto.
10471         * libc/posix/telldir.c: Ditto plus add _cleanupdir routine to
10472         clean up leftover hash table entries.
10473         * libc/posix/readdir_r.c: New file.
10474         * libc/sys/linux/Makefile.am: Add psignal.c and strsignal.c support.
10475         * libc/sys/linux/Makefile.in: Regenerated.
10476         * libc/sys/linux/sys/dirent.h: Add dd_lock to DIR structure.
10477         * libc/sys/linux/sys/signal.h: Add psignal prototype.
10478         * libc/sys/linux/psignal.c: New file.
10479         * libc/sys/linux/strsignal.c: Ditto.
10480
10481 2002-06-03  Corinna Vinschen  <corinna@vinschen.de>
10482
10483         * libc/include/sys/types.h: Don't define dev_t when compiling for
10484         Cygwin.
10485
10486 2002-05-31  Jeff Johnston  <jjohnstn@redhat.com>
10487
10488         * libc/sys/linux/Makefile.am: Add sig.c and sigaction.c.  Also
10489         make siglist.inc dependent on sig.c instead of signal.c.
10490         * libc/sys/linux/Makefile.in: Regenerated.
10491         * libc/sys/linux/sig.c: Rename from signal.c and change code to
10492         use NSIG instead of _NSIG.
10493         * libc/sys/linux/sigaction.c: New file.
10494         * libc/sys/linux/signal.c: Changed to be linux signal() function
10495         so as to override regular newlib default signal.c.
10496         * libc/sys/linux/machine/i386/Makefile.am: Remove sigset.c.
10497         * libc/sys/linux/machine/i386/Makefile.in: Regenerated.
10498         * libc/sys/linux/machine/i386/sigset.c: Moved to linux main directory.
10499         * libc/sys/linux/sigset.c: Moved from machine/i386 directory.
10500         * libc/sys/linux/sys/signal.h: Redefine NSIG to _NSIG and override
10501         default linux sigset_t typedef by defining it equal to __sigset_t.
10502         * libc/unix/sigset.c: Add check so code isn't compiled on systems
10503         with a sigset_t that isn't implemented with a single int.
10504
10505 2002-05-30  Jeff Johnston  <jjohnstn@redhat.com>
10506
10507         * libc/sys/linux/Makefile.am: Add support for new files.
10508         * libc/sys/linux/Makefile.in: Regenerated.
10509         * libc/sys/linux/ids.c: Add __getuid weak alias for getuid.
10510         * libc/sys/linux/signal.c: Change to use real-time syscalls for
10511         sigsuspend, sigprocmask, and sigpending.  Also remove sigaction as
10512         it is in a separate file now.
10513         * libc/sys/linux/machine/i386/Makefile.am
10514         * libc/sys/linux/machine/i386/Makefile.in
10515         * libc/sys/linux/sys/signal.h: Add include of <bits/signum.h>.
10516         * libc/sys/linux/sigaction.c: New file.
10517         * libc/sys/linux/sigqueue.c: Ditto.
10518         * libc/sys/linux/sigwait.c: Ditto.
10519         * libc/sys/linux/machine/i386/sigaction.c: Ditto.
10520         * libc/sys/linux/kernel_sigaction.h: Ditto.
10521
10522 2002-05-28  Jeff Johnston  <jjohnstn@redhat.com>
10523
10524         * libc/sys/linux/Makefile.am: Add support for cfspeed.c and
10525         tcsendbrk.c.
10526         * libc/sys/linux/Makefile.in: Regenerated.
10527         * libc/sys/linux/termios.c: Add tcflow(), tcflush(),
10528         tcgetpgrp(), and tcsetpgrp() functions.
10529         * libc/sys/linux/sys/termios.h: Add include of machine/termios.h
10530         to get __MAX_BAUD rate.
10531         * libc/sys/linux/machine/i386/include/termios.h: New file.
10532         * libc/include/machine/termios.h: Ditto.
10533         * libc/sys/linux/cfspeed.c: Ditto.
10534         * libc/sys/linux/tcsendbrk.c: Ditto.
10535
10536 2002-05-24  Jeff Johnston  <jjohnstn@redhat.com>
10537
10538         * libc/include/string.h: Add strnlen and strerror_r prototypes.
10539         * libc/string/Makefile.am: Add strnlen.c and strerror_r.c support.
10540         * libc/string/Makefile.in: Regenerated.
10541         * libc/string/strerror_r.c: New file.
10542         * libc/string/strnlen.c: New file.
10543         * libc/sys/linux/Makefile.am: Add rename.c.
10544         * libc/sys/linux/Makefile.in: Regenerated.
10545         * libc/sys/linux/rename.c: New file to override default rename.
10546
10547 2002-05-24  Thomas Fitzsimmons  <fitzsim@redhat.com>
10548
10549         * libc/sys/linux/sys/cdefs.h: Add __weak_reference macros.
10550         * libc/sys/linux/sys/time.h: Add conversion macros.
10551         * libc/sys/linux/sys/types.h: Add FD_ macros.  Include <bits/types.h>.
10552         * libc/sys/linux/ids.c: Add setresuid and syslog syscalls.
10553         * libc/sys/linux/gethostname.c: New file.
10554         * libc/sys/linux/seteuid.c: New file.
10555         * libc/sys/linux/sysctl.c: New file.
10556
10557 2002-05-23  Jeff Johnston  <jjohnstn@redhat.com>
10558
10559         * libc/string/Makefile.am: Add support for strsep.c.
10560         * libc/string/Makefile.in: Regenerated.
10561         * libc/string/strsep.c: New file.
10562         * libc/string/strtok.c: Change to call __strtok_r service routine.
10563         * libc/string/strtok_r.c: Add __strtok_r routine which takes
10564         additional flag parameter regarding whether to skip leading delimeters.
10565         Change strtok_r to call __strtok_r.
10566
10567 2002-05-23  Gareth Pearce  <tilps@hotmail.com>
10568
10569         * libc/stdio/Makefile.am: Modify to add setbuffer.c and setlinebuf.c.
10570         * libc/stdio/Makefile.in: Regenerated.
10571         * libc/stdio/setbuffer.c: New file.
10572         * libc/stdio/setlinebuf.c: New file.
10573
10574 2002-05-23  Jeff Johnston  <jjohnstn@redhat.com>
10575
10576         * libc/sys/linux/Makefile.am: Add resource.c.
10577         * libc/sys/linux/Makefile.in: Regenerated.
10578         * libc/sys/linux/resource.c: New file.
10579         * libc/sys/linux/time.c: Add settimeofday, getitimer, and setitimer.
10580         * libc/sys/linux/machine/i386/Makefile.am: Remove syscalls.c.
10581         * libc/sys/linux/machine/i386/Makefile.in: Regenerated.
10582         * libc/sys/linux/machine/i386/syscalls.c: Removed as functions
10583         are now found in libc/sys/linux/resource.c.
10584
10585 2002-05-23  Jeff Johnston  <jjohnstn@redhat.com>
10586
10587         * libc/include/string.h (bcmp, bcopy, bzero): Change prototypes
10588         to use void * pointers and comply with Single Unix spec.
10589         * libc/string/bcmp.c: Change to use void * instead of char *.
10590         * libc/string/bcopy.c: Ditto.
10591         * libc/string/bzero.c: Ditto.
10592
10593 2002-05-22  Jeff Johnston  <jjohnstn@redhat.com>
10594
10595         * libc/sys/linux/shm_open.c: New file.
10596         * libc/sys/linux/shm_unlink.c: Ditto.
10597         * libc/sys/linux/Makefile.am: Add support for shm_open.c and
10598         shm_unlink.c.
10599         * libc/sys/linux/Makefile.in: Regenerated.
10600         * libc/sys/linux/sys/types.h: Add some additional checks to see
10601         if clock_t or time_t is already defined.
10602
10603 2002-05-22  Jeff Johnston  <jjohnstn@redhat.com>
10604
10605         * Makefile.am: Don't pass $toollibdir down directly in
10606         AM_MAKEFLAGS as it causes all multilibs to use the same toollibdir.
10607         Pass it under the name: top_toollibdir.
10608         * Makefile.in: Regenerated.
10609
10610 2002-05-22  Corinna Vinschen  <vinschen@redhat.com>
10611
10612         * libc/include/sys/types.h: Revert previous patch.
10613
10614 2002-05-22  Corinna Vinschen  <vinschen@redhat.com>
10615
10616         * libc/include/sys/types.h: Include cygwin/types.h always under
10617         Cygwin, not only if _POSIX_THREADS is defined.
10618
10619 2002-05-21 Dhananjay Deshpande <dhananjayd@kpit.com>
10620
10621         * configure.host: Specify sys_dir=h8300hms for h8300-*-coff* target.
10622
10623 2002-05-17  Jeff Johnston  <jjohnstn@redhat.com>
10624
10625         * Makefile.am: Copy and install headers from sys/machine/include
10626         directory.  Also pass $toollibdir to lower-level directories.
10627         * Makefile.in: Regenerated.
10628         * libc/include/stdio.h[!_REENT_ONLY]: Change stdin, stdout, and
10629         stderr to use _REENT macro instead of _impure_ptr directly.
10630         * libc/include/sys/config.h[__i386__][__linux__]: Define
10631         __DYNAMIC_REENT__.
10632         * libc/include/sys/reent.h[!_REENT_ONLY]: Change _REENT macro to be
10633         call to __getreent() function if !__SINGLE_THREAD__ and
10634         __DYNAMIC_REENT__ is set.
10635         * libc/reent/Makefile.am: Add support for getreent.c.
10636         * libc/reent/Makefile.in: Regenerated.
10637         * libc/string/strerror.c: Add check if EOPNOTSUPP and ENOTSUP are same.
10638         * libc/sys/linux/Makefile.am: Add support for new files.
10639         * libc/sys/linux/configure.in: Add $EXTRA_DIRS variable.
10640         * libc/sys/linux/Makefile.in: Regenerated.
10641         * libc/sys/linux/configure: Ditto.
10642         * libc/sys/linux/io.c: Add poll syscall.  Also weak-alias
10643         __close, __read, __write, __poll, __open, __lseek, __fcntl from
10644         their __libc_ counterparts.
10645         * libc/sys/linux/io64.c: Add __libc_ prefix to lseek64 and open64
10646         and weak-alias to regular names.
10647         * libc/sys/linux/pread64.c: Rename to __libc_pread64 and weak-alias
10648         to pread64 and __pread64.
10649         * libc/sys/linux/process.c: Weak_alias __libc_getpid to __getpid.
10650         * libc/sys/linux/pwrite64.c: Rename to __libc_pwrite64 and
10651         weak-alias to pwrite64.
10652         * libc/sys/linux/sched.c: Weak-alias __libc_sched_getparam,
10653         __libc_sched_getscheduler, __libc_sched_get_priority_max,
10654         __libc_sched_get_priority_min, and __libc_sched_setschedule to
10655         name with __ instead of __libc_.
10656         * libc/sys/linux/siglongjmp.c: Include <machine/weakalias.h>.
10657         Rename siglongjmp to __libc_siglongjmp and weak-alias to siglongjmp.
10658         Call __libc_longjmp instead of longjmp, from __libc_siglongjmp.
10659         * libc/sys/linux/signal.c: Rename raise to __libc_raise and weak-alias
10660         to raise.
10661         * libc/sys/linux/socket.c: Weak-alias __libc_connect to __connect and
10662         __libc_send to __send.
10663         * libc/sys/linux/time.c: Weak-alias __libc_gettimeofday to
10664         __gettimeofday.
10665         * libc/sys/linux/wait.c: Rename wait to __libc_wait and weak-alias
10666         it to wait.  Rename wait3 to __libc_wait3 and weak-alias it to wait3.
10667         * libc/sys/linux/include/setjmp.h: Use __jmp_buf in sigjmp_buf
10668         type and typedef __jmp_buf to jmp_buf.
10669         * libc/sys/linux/machine/i386/Makefile.am: Add syscalls.c and
10670         setjmp.S.
10671         * libc/sys/linux/machine/i386/Makefile.in: Regenerated.
10672         * libc/sys/linux/machine/i386/crt0.c: Add support to clear .bss
10673         section.
10674         * libc/sys/linux/machine/i386/socketcall.h: Change to use __libc_
10675         prefix for function macros and then use weak_alias() to regular names.
10676         * libc/sys/linux/machine/i386/syscall.h: Ditto.
10677         * libc/sys/linux/sys/errno.h: Define EOPNOTSUP to be ENOTSUP.
10678         * libc/sys/linux/sys/stdio.h: Define _flockfile and _funlockfile
10679         to be flockfile() and funlockfile() respectively.
10680         * libc/sys/linux/sys/types.h
10681         * libc/reent/getreent.c: New file.
10682         * libc/sys/linux/flockfile.c: Ditto.
10683         * libc/sys/linux/funlockfile.c: Ditto.
10684         * libc/sys/linux/getreent.c: Ditto.
10685         * libc/sys/linux/pread.c: Ditto.
10686         * libc/sys/linux/pwrite.c: Ditto.
10687         * libc/sys/linux/raise.c: Ditto.
10688         * libc/sys/linux/system.c: Ditto.
10689         * libc/sys/linux/tcdrain.c: Ditto.
10690         * libc/sys/linux/machine/i386/i386mach.h: Ditto.
10691         * libc/sys/linux/machine/i386/setjmp.S: Ditto.
10692         * libc/sys/linux/machine/i386/syscalls.c: Ditto.
10693         * libc/sys/linux/machine/i386/weakalias.h: Ditto.
10694         * libc/sys/linux/machine/i386/include/setjmp.h: Ditto.
10695
10696 2002-05-14 Dhananjay Deshpande <dhananjayd@kpit.com>
10697
10698         * newlib/libc/sys/h8300hms/Makeile.am (lib_a_SOURCES): Add read.c.
10699         * newlib/libc/sys/h8300hms/read.c: New file.  Magic trap 0xC8 for sim.
10700         * newlib/libc/sys/h8300hms/syscalls.c: Move _read() to read.c.
10701         * newlib/libs/sys/h8300hms/sys/syscall.h: New file.
10702
10703 Thu May 16 17:24:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
10704
10705         * libc/machine/sh/strcpy.S (strcpy): Replace LITTLE_ENDIAN with
10706         __LITTLE_ENDIAN__.  make sure r0 has right value at first loop
10707         exit point.
10708
10709 2002-05-15  Thomas Fitzsimmons  <fitzsim@redhat.com>
10710
10711         * testsuite/lib/newlib.exp: Add newlib_include_flags to compile
10712         options when testing natively on i[3456]86-*-linux.
10713
10714         * testsuite/lib/checkoutput.exp (newlib_check_output): Output
10715         only one pass or fail per test file.  Trim \r's from output
10716         values received from test programs.  Remove support for named
10717         tests.
10718         * testsuite/newlib.locale/UTF-8.exp: Update to support new
10719         newlib_check_output behaviour.
10720         * testsuite/newlib.locale/UTF-8.c: Likewise.
10721
10722 2002-05-15  Jeff Johnston  <jjohnstn@redhat.com>
10723
10724         * libc/include/stdlib.h: Add on_exit prototype.
10725         * libc/include/sys/reent.h (struct _atexit): Add argument array
10726         and bits to track type of exit routine to support both on_exit
10727         and atexit.
10728         (_REENT_INIT_PTR): Add missing fields that won't be zeroed out
10729         by default and change the setting of the atexit structure.
10730         (_REENT_INIT)[!_REENT_SMALL]: Remove extraneous end brace.
10731         * libc/stdlib/on_exit.c: New file.
10732         * libc/stdlib/Makefile.am: Add support for on_exit.
10733         * libc/stdlib/Makefile.in: Regenerated.
10734         * libc/stdlib/atexit.c: Change to initialize types field.
10735         * libc/stdlib/exit.c: Change to look at types field for each
10736         exit routine and either call an atexit-style or an on_exit-style
10737         routine accordingly.
10738
10739 2002-05-13  Jeff Johnston  <jjohnstn@redhat.com>
10740
10741         * libc/machine/powerpc/vfprintf.c(__VFPRINTF_R)[__ALTIVEC__]: Don't
10742         allow v specifier with n or L specifiers.  For vector c format,
10743         move tmp declaration to the top.
10744
10745 2002-05-13  Jeff Johnston  <jjohnstn@redhat.com>
10746
10747         * libc/machine/powerpc/vfprintf.c(__VFPRINTF_R)[__ALTIVEC__]: Restore
10748         the original format specifier when looping for vectors to compensate
10749         for any changes made in vector %g format processing.
10750         Also add syntax checking for various invalid scenarios
10751         involving vector format extensions.
10752         * libc/machine/powerpc/vfscanf.c(__VFSCANF_R)[__ALTIVEC__]: Fix
10753         return code setting for vector formats.  Also treat vector
10754         separator mismatch as a match error instead of an input error.
10755         Perform some syntax checking for vector formats.
10756
10757 2002-05-10  Mark Bradshaw  <bradshaw@staff.crosswalk.com>
10758
10759         * libc/include/string.h (!__STRICT_ANSI__): Add strlcat and strlcpy.
10760         * libc/string/Makefile.am: Add strlcat.c and strlcpy.c.
10761         * libc/string/strlcat.c: New file.
10762         * libc/string/strlcpy.c: New file.
10763
10764 2002-05-10  Jeff Johnston  <jjohnstn@redhat.com>
10765
10766         * libc/string/strchr.c: Fix comment typo.
10767
10768 2002-05-08  Thomas Fitzsimmons  <fitzsim@redhat.com>
10769
10770         * acinclude.m4: Add support for --enable-newlib-multithread.
10771         * configure.host (newlib_cflags): Add -D__SINGLE_THREAD__ if
10772         --enable-newlib-multithread=no.
10773
10774         * libc/stdio/getc_u.c: New file.
10775         * libc/stdio/getchar_u.c: New file.
10776         * libc/stdio/putc_u.c: New file.
10777         * libc/stdio/putchar_u.c: New file.
10778         * libc/include/stdio.h: Add declarations for getc_unlocked,
10779         getchar_unlocked, putc_unlocked and putchar_unlocked.
10780         * libc/stdio/Makefile.am (LIB_SOURCES): Add new files.
10781         (CHEWOUT_FILES): Add new files' .def's.
10782         * libc/stdio/putchar.c (_putchar_r): Replace __sputc with putc.
10783
10784 Wed May  8 17:47:35 2002  J"orn Rennecke <joern.rennecke@superh.com>
10785
10786         * libc/machine/sh/memset.S (memset, __SHMEDIA__ code):
10787         Also handle as single quad word when destination ends at last
10788         byte of first quad word.  Fix byte selection in single quad code.
10789
10790 2002-05-07  Thomas Fitzsimmons  <fitzsim@redhat.com>
10791
10792         * libc/include/sys/stdio.h: New file.
10793         * libc/sys/linux/sys/stdio.h: New file.
10794         * libc/include/stdio.h: Add declarations for flockfile,
10795         ftrylockfile, and funlockfile.  Include <sys/stdio.h>.
10796         * libc/stdio/clearerr.c: Add file locking.
10797         * libc/stdio/fclose.c: Likewise.
10798         * libc/stdio/feof.c: Likewise.
10799         * libc/stdio/ferror.c: Likewise.
10800         * libc/stdio/fflush.c: Likewise.
10801         * libc/stdio/fgetc.c: Likewise.
10802         * libc/stdio/fgetpos.c: Likewise.
10803         * libc/stdio/fgets.c: Likewise.
10804         * libc/stdio/fileno.c: Likewise.
10805         * libc/stdio/fputc.c: Likewise.
10806         * libc/stdio/fputs.c: Likewise.
10807         * libc/stdio/fread.c: Likewise.
10808         * libc/stdio/freopen.c: Likewise.
10809         * libc/stdio/fseek.c: Likewise.
10810         * libc/stdio/ftell.c: Likewise.
10811         * libc/stdio/fwrite.c: Likewise.
10812         * libc/stdio/getc.c: Likewise.
10813         * libc/stdio/putc.c: Likewise.
10814         * libc/stdio/setvbuf.c: Likewise.
10815         * libc/stdio/ungetc.c: Likewise.
10816         * libc/stdio/vfprintf.c: Likewise.
10817
10818 2002-05-06  Jeff Johnston  <jjohnstn@redhat.com>
10819
10820         * libc/machine/powerpc/vfprintf.c[__ALTIVEC__]: Add vector
10821         support for 'p' format.  Fix code to print bytes for vector
10822         integer formats that do not specify 'h' or 'l'.
10823         * libc/machine/powerpc/vfscanf.c[__ALTIVEC__]: Add vector support
10824         for 'p' specifier.  Fix code to scan 16 bytes for vector integer
10825         formats that do not specify 'h' or 'l'.
10826
10827         * libc/include/stdlib.h (a64l, l64a, _l64a_r): Added prototypes.
10828
10829 2002-05-06  Nick Clifton  <nickc@cambridge.redhat.com>
10830
10831         * libc/sys/arm/syscalls.c (_rename): Add parameter names.
10832         (_sbrk): Add cast of return value.
10833
10834 2002-05-06  Jeff Johnston  <jjohnstn@redhat.com>
10835
10836         *  libc/include/sys/reent.h (_l64a_buf): New reentrant area.
10837         (_REENT_L64A_BUF): New macro for accessing area.
10838         *  libc/stdlib/Makefile.am: Add a64l.c and l64a.c.
10839         *  libc/stdlib/Makefile.in: Regenerated.
10840         *  libc/stdlib/a64l.c: New file.
10841         *  libc/stdlib/l64a.c: New file.
10842
10843 2002-05-06  Jeff Johnston  <jjohnstn@redhat.com>
10844
10845         * libc/unix/pread.c: Fix typo for _pread_r.
10846         * libc/unix/pwrite.c: Fix type for _pwrite_r.
10847         * libc/sys/linux/pread64.c: Fix typo for read syscall.
10848         * libc/sys/linux/pwrite64.c: Fix typo for write syscall.
10849
10850 2002-05-03  Christopher Faylor  <cgf@redhat.com>
10851
10852         * libc/include/sys/unistd.h: Define getdomainname under cygwin.
10853
10854 2002-05-03  Thomas Fitzsimmons  <fitzsim@redhat.com>
10855
10856         * configure.in (CC_FOR_NEWLIB): Change -isystem's to -I's.
10857
10858 2002-05-01  Christopher Faylor  <cgf@redhat.com>
10859
10860         * utmp.h: Define more UNIX constants.
10861
10862 2002-05-01  Thomas Fitzsimmons  <fitzsim@redhat.com>
10863
10864         * Makefile.am: Add support for checking multilibs.
10865
10866         * libc/Makefile.am (SUBLIBS): Add LIBC_EXTRA_LIB.
10867         (SUBDEFS): Add LIBC_EXTRA_DEF.
10868         * libc/configure.in (LIBC_EXTRA_LIB): New variable.
10869         (LIBC_EXTRA_DEF): Likewise.
10870         (extra_dir): Likewise.
10871         * libc/machine/xscale/machine: New directory.
10872         * libc/machine/xscale/machine/profile.h: New file.
10873
10874         * Makefile.am (site.exp): Remove newlib_cflags.  Add
10875         multibuildtop.
10876         * testsuite/newlib.locale/UTF-8.c: Change fprintf's to printf's.
10877         * testsuite/lib/flags.exp: New file.
10878         * testsuite/lib/newlib.exp: Load flags.exp.
10879         (newlib_target_compile): Remove libgloss directory references.
10880         (newlib_init): Remove newlib_cflags references.
10881
10882 2002-04-30  Thomas Fitzsimmons  <fitzsim@redhat.com>
10883
10884         * testsuite/lib/newlib.exp (newlib_target_compile): Change
10885         method of finding libgloss_target_dir.
10886
10887         * Makefile.am (site.exp): Change host_alias, host_triplet,
10888         target_alias, target_triplet to refer to gcc's host and target
10889         variables (newlib's build and host variables).
10890         * testsuite/lib/newlib.exp (newlib_init): Change build
10891         references to host references, host references to target
10892         references to reflect Makefile.am changes.
10893         (newlib_target_compile): Likewise.
10894         (newlib_finish): Likewise.
10895
10896 2002-04-29  Jeff Johnston  <jjohnstn@redhat.com>
10897
10898         * libc/sys/linux/io64.c (fstat64, lstat64): New syscalls added.
10899
10900 2002-04-29  Jonathan Larmour  <jlarmour@redhat.com>
10901
10902         * libc/sys/arm/syscalls.c (_rename): New function. Just a stub.
10903         (_system): New function. Ditto.
10904         * libc/stdlib/system.c (_system_r): Call _system if HAVE_SYSTEM.
10905         * configure.host: define HAVE_SYSTEM and HAVE_RENAME for xscale
10906         targets.
10907
10908 2002-04-29  Jeff Johnston  <jjohnstn@redhat.com>
10909
10910         *  libc/include/sys/unistd.h (pread, pwrite): Added prototypes.
10911         *  libc/unix/Makefile.am: Add pread.c and pwrite.c.
10912         *  libc/sys/linux/Makefile.am: Add pread64.c and pwrite64.c.
10913         *  libc/sys/linux/Makefile.in: Regenerated.
10914         *  libc/unix/Makefile.in: Ditto.
10915         *  libc/sys/linux/pread64.c: New file.
10916         *  libc/sys/linux/pwrite64.c: Ditto.
10917         *  libc/unix/pread.c: Ditto.
10918         *  libc/unix/pwrite.c: Ditto.
10919
10920 2002-04-26  Jeff Johnston  <jjohnstn@redhat.com>
10921
10922         *  libc/sys/linux/Makefile.am: Add io64.c.
10923         *  libc/sys/linux/Makefile.in: Regenerated.
10924         *  libc/sys/linux/io.c(mkfifo, fsync, fdatasync): Added syscalls.
10925         *  libc/sys/linux/signal.c (sigwaitinfo, sigtimedwait): Ditto.
10926         *  libc/sys/linux/io64.c: New file.
10927
10928 2002-04-26  Jeff Johnston  <jjohnstn@redhat.com>
10929
10930         * configure.in (CC_FOR_NEWLIB): New variable that
10931         bases on $(CC) and adds targ-include and libc/include as
10932         -isystem directives if they are not already part of $(CC).
10933         * Makefile.am (AM_MAKEFLAGS): Change setting of CC to equal
10934         $(CC_FOR_NEWLIB).
10935         * configure: Regenerated.
10936         * Makefile.in: Ditto.
10937
10938 2002-04-25  Jeff Johnston  <jjohnstn@redhat.com>
10939
10940         *  libc/sys/linux/Makefile.am: Add support for sched.c.
10941         *  libc/sys/linux/Makefile.in: Regenerated.
10942         *  libc/sys/linux/sched.c: New file.
10943         *  libc/sys/linux/sys/types.h: Add struct timespec.
10944
10945 2002-04-25  Thomas Fitzsimmons  <fitzsim@redhat.com>
10946
10947         * configure.in (CC_FOR_BUILD): Set to gcc whether
10948         cross-compiling or not.
10949         (CC): Add -isystem's for targ-include and libc/include when they
10950         do not already appear in CC.
10951
10952 2002-04-24  Thomas Fitzsimmons  <fitzsim@redhat.com>
10953
10954         * Makefile.am (check-DEJAGNU): New target.
10955         (site.exp): Likewise.
10956         * acinclude.m4 (NEWLIB_CONFIGURE): Replace AC_CANONICAL_HOST
10957         with AC_CANONICAL_SYSTEM.  Remove AC_CANONICAL_BUILD.
10958         * libc/locale/locale.c (_setlocale_r): Add UTF-8 support.
10959         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Likewise.
10960         * libc/stdlib/wctomb_r.c (_wctomb_r): Likewise.
10961         * testsuite: New directory.
10962         * testsuite/config: Likewise.
10963         * testsuite/lib: Likewise.
10964         * testsuite/newlib.locale: Likewise.
10965         * testsuite/newlib.string: Likewise.
10966         * testsuite/config/default.exp: New file.
10967         * testsuite/lib/checkoutput.exp: New file.
10968         * testsuite/lib/newlib.exp: New file.
10969         * testsuite/lib/passfail.exp: New file.
10970         * testsuite/newlib.locale/UTF-8.c: New file.
10971         * testsuite/newlib.locale/UTF-8.exp: New file.
10972         * testsuite/newlib.locale/locale.exp: New file.
10973         * testsuite/newlib.string/string.exp: New file.
10974         * testsuite/newlib.string/tstring.c: New file.
10975
10976 2002-04-23  Jeff Johnston  <jjohnstn@redhat.com>
10977
10978         *  libc/include/machine/types.h (__pid_t, __off_t, __loff_t): Added.
10979         *  libc/sys/linux/Makefile.am: Add support for mmap.c.
10980         *  libc/sys/linux/Makefile.in: Regenerated.
10981         *  libc/sys/linux/mmap.c: New file.
10982         *  libc/sys/linux/machine/i386/syscall.h: Add _syscall6 macro.
10983         *  libc/sys/linux/sys/types.h (pid_t, off_t, loff_t): Added.
10984
10985 2002-04-22  Thomas Fitzsimmons  <fitzsim@redhat.com>
10986
10987         * acinclude.m4 (newlib_cflags): Remove include directories that
10988         are already specified in the top-level configure.in's FLAGS_FOR_TARGET.
10989
10990 2002-04-19  Bill Siegmund  <ctc-dsl@pacbell.net>
10991
10992         * libc/machine/xscale/memchr.c: Don't use multi-line strings.
10993         * libc/machine/xscale/memcmp.c: Ditto.
10994         * libc/machine/xscale/memcpy.c: Ditto.
10995         * libc/machine/xscale/memmove.c: Ditto.
10996         * libc/machine/xscale/memset.c: Ditto.
10997         * libc/machine/xscale/strchr.c: Ditto.
10998         * libc/machine/xscale/strcmp.c: Ditto.
10999         * libc/machine/xscale/strcpy.c: Ditto.
11000         * libc/machine/xscale/strlen.c: Ditto.
11001
11002 2002-04-19  Alexandre Oliva  <aoliva@redhat.com>
11003
11004         * libc/include/sys/config.h: Remove include of <limits.h>.
11005         (__INT_MAX__, __LONG_MAX__): Define like GCC's limits.h would
11006         define INT_MAX and LONG_MAX.  Use them in tests.
11007
11008 2002-04-19  Jeff Johnston  <jjohnstn@redhat.com>
11009
11010         *  configure.host: Add support for powerpc-eabialtivec*.
11011         *  libc/include/malloc.h: Add include of <machine/malloc.h>.
11012         *  libc/include/stdlib.h: Add include of <machine/stdlib.h>.
11013         *  libc/include/machine/malloc.h: New file.
11014         *  libc/include/machine/stdlib.h: Ditto.
11015         *  libc/include/machine/setjmp.h: Add support for powerpc altivec.
11016         *  libc/machine/powerpc/Makefile.am: Add conditional objects and
11017         sources based on configuration.
11018         *  libc/machine/powerpc/Makefile.in: Regenerated.
11019         *  libc/machine/powerpc/configure: Ditto.
11020         *  libc/machine/powerpc/configure.in: Add check for
11021         powerpc-eabialtivec* in which case add in additional source files.
11022         *  libc/machine/powerpc/setjmp.S: Add altivec support.
11023         *  libc/machine/powerpc/vec_calloc.c: New file.
11024         *  libc/machine/powerpc/vec_free.c: Ditto.
11025         *  libc/machine/powerpc/vec_malloc.c: Ditto.
11026         *  libc/machine/powerpc/vec_mallocr.c: Ditto.
11027         *  libc/machine/powerpc/vec_realloc.c: Ditto.
11028         *  libc/machine/powerpc/machine/malloc.h: Ditto.
11029         *  libc/machine/powerpc/machine/stdlib.h: Ditto.
11030         *  libc/machine/powerpc/vfprintf.c: New file that is vfprintf.c
11031         with added altivec format specifiers.
11032         *  libc/machine/powerpc/vfscanf.c: New file that is vfscanf.c with
11033         added altivec format specifiers.
11034
11035 2002-04-19      Joel Sherrill <joel@OARcorp.com>
11036
11037         * libs/sys/rtems/crt0.c: Satisfy gcc's references to libc functions
11038         while autoconf is trying to link main(){}.
11039
11040 2002-04-17  Jeff Johnston  <jjohnstn@redhat.com>
11041
11042         * libc/sys/linux/signal.c: Remove include of <bits/sigset.h>.
11043         * libc/sys/linux/sys/signal.h: Add include of <bits/sigset.h>.
11044
11045 2002-04-17  Jeff Johnston  <jjohnstn@redhat.com>
11046
11047         * libc/time/time.tex: Add tzset info.
11048
11049 2002-04-17  Jeff Johnston  <jjohnstn@redhat.com>
11050
11051         * libc/include/time.h (tzset, _tzset_r): Added prototypes.
11052         (strptime): Moved prototype to be within !__STRICT_ANSI__.
11053         (_tzname, _daylight, _timezone): No long __CYGWIN__ only.
11054         (tzname): Defined for all platforms.
11055         (daylight, timezone): Defined only for CYGWIN.
11056         * libc/sys/linux/machine/i386/crt0.c: Add call to tzset() after
11057         environment set up.
11058         * libc/stdlib/setenv_r.c (_setenv_r): Call tzset() if the TZ
11059         environment variable is set.
11060         * libc/time/Makefile.am: Add support for tzset.c, tzlock.c, and
11061         tzset_r.c.
11062         * libc/time/Makefile.in: Regenerated.
11063         * libc/time/gmtime.c (gmtime): Changed to call gmtime_r.
11064         * libc/time/gmtime_r.c (gmtime_r): Changed to call _mktm_r.
11065         * libc/time/lcltime_r.c (lcltime_r): Ditto.
11066         * libc/time/local.h: New local header file.
11067         * libc/time/mktime.c (mktime): Add timezone support.
11068         * libc/time/mktm_r.c: New file which is the common engine
11069         for gmtime_r and lcltime_r.  This code has timezone support.
11070         * libc/time/strftime.c (strftime): Add %Z timezone support.
11071         * libc/time/tzlock.c: New file containing timezone lock stubs.
11072         * libc/time/tzset.c: New file containing tzset() routine.
11073         * libc/time/tzset_r.c: New file containing _tzset_r and
11074         internal routine for calculating timezone changes for specified year.
11075
11076 2002-04-17  Thomas Fitzsimmons  <fitzsim@redhat.com>
11077
11078         * configure.in (CRT0_DIR): Set to libc/.
11079         (CRT1_DIR): Set to ${crt1_dir}/ if crt1_dir is non-empty.
11080         * Makefile.am: Change all occurrences of $(CRT0_DIR)/$(CRT0) to
11081         $(CRT0_DIR)$(CRT0) to prevent make warnings.  Likewise for
11082         $(CRT1_DIR)/$(CRT1).
11083         * libc/machine/xstormy16/Makefile.in: Regenerated.
11084         * libc/machine/xstormy16/aclocal.m4: Regenerated.
11085         * libc/machine/xstormy16/configure: Regenerated.
11086
11087 2002-04-13  Alexandre Oliva  <aoliva@redhat.com>
11088
11089         * libc/stdlib/mallocr.c (malloc_extend_top): If correction sbrk
11090         fails, don't bail out, and try to correct next time.
11091
11092         * libc/include/sys/config.h: Include limits.h.
11093
11094 2002-04-12  Eric Norum  <eric.norum@usask.com>
11095
11096         * libc/sys/rtems/crt0.c (rtems_gxx_mutex_init): Dummy
11097         routine to allow autoconf to determine that building executables
11098         for rtems works.
11099         (rtems_gxx_mutex_lock, rtems_gxx_mutex_unlock): Ditto.
11100         (rtems_gxx_mutex_once): Ditto.
11101
11102 2002-04-09  Tom Rix  <trix@redhat.com>
11103
11104         * libc/include/sys/reent.h (_REENT_INIT_PTR): Fix typo.
11105
11106 2002-04-09  Mark Bradshaw  <bradshaw@staff.crosswalk.com>
11107
11108         * libc/include/time.h: Fix strptime declaration.
11109         * libc/time/Makefile.am: Add strptime.c.
11110         * libc/time/Makefile.in: Regenerated.
11111         * libc/time/strptime.c: New file.
11112
11113 2002-04-08  Jeff Johnston  <jjohnstn@redhat.com>
11114
11115         * libc/sys/linux/include/setjmp.h: Add sigjmp_buf type,
11116         siglongjmp prototype, and sigsetjmp macro definition.
11117         * libc/sys/linux/siglongjmp.c: New file.
11118         * libc/sys/linux/Makefile.am: Add support for siglongjmp.
11119         * libc/sys/linux/Makefile.in: Regenerated.
11120
11121 2002-04-04  Jeff Johnston  <jjohnstn@redhat.com>
11122
11123         * Makefile.am: Add support for installing crt1.o if one exists.
11124         * configure.host: Specify crt1.o for linux.
11125         * configure.in: Expose CRT1 and CRT1_DIR for Makefile.am to use.
11126         * Makefile.in: Regenerated.
11127         * configure: Ditto.
11128         * libc/include/sys/unistd.h (_SC_STREAM_MAX, _SC_PRIORITY_SCHEDULING):
11129         Added for non-Cygwin, non-RTEMS configurations.
11130         * libc/sys/linux/Makefile.am: Add support for crt1 and sysconf.
11131         * libc/sys/linux/Makefile.in: Regenerated.
11132         * libc/sys/linux/crt1.c: New empty file to override one defaulted
11133         by gcc.  This fixes problem with reconfiguring linux newlib build.
11134         * libc/sys/linux/sysconf.c: New file.
11135
11136 2002-04-03  Jeff Johnston  <jjohnstn@redhat.com>
11137
11138         * configure.host: Add support for machine subdirectory of
11139         sys subdirectory.
11140         * configure.in: Add check for sys machine subdirectory.
11141         * Makefile.am: Ditto.
11142         * configure: Regenerated.
11143         * Makefile.in: Ditto.
11144         * libc/sys/linux/crt0.c: Moved to machine/i386 directory.
11145         * libc/sys/linux/sys/syscall.h: Ditto.
11146         * libc/sys/linux/sleep.c: New file.
11147         * libc/sys/linux/socket.c: Ditto.
11148         * libc/sys/linux/sockops.h: Ditto.
11149         * libc/sys/linux/stack.c: Ditto.
11150         * libc/sys/linux/usleep.c: Ditto.
11151         * libc/sys/linux/machine/Makefile.am: Ditto.
11152         * libc/sys/linux/machine/Makefile.in: Ditto.
11153         * libc/sys/linux/machine/aclocal.m4: Ditto.
11154         * libc/sys/linux/machine/configure: Ditto.
11155         * libc/sys/linux/machine/configure.in: Ditto.
11156         * libc/sys/linux/machine/i386/Makefile.am: Ditto.
11157         * libc/sys/linux/machine/i386/Makefile.in: Ditto.
11158         * libc/sys/linux/machine/i386/aclocal.m4: Ditto.
11159         * libc/sys/linux/machine/i386/configure: Ditto.
11160         * libc/sys/linux/machine/i386/configure.in: Ditto.
11161         * libc/sys/linux/machine/i386/crt0.c: Ditto.
11162         * libc/sys/linux/machine/i386/sigset.c: Ditto.
11163         * libc/sys/linux/machine/i386/sigstack.h: Ditto.
11164         * libc/sys/linux/machine/i386/socketcall.h: Ditto.
11165         * libc/sys/linux/machine/i386/syscall.h: Ditto.
11166         * libc/sys/linux/sys/select.h: Ditto.
11167         * libc/sys/linux/configure.in: Add support for machine directory.
11168         * libc/sys/linux/Makefile.am: Ditto plus add new files above.
11169         * libc/sys/linux/Makefile.in: Regenerated.
11170         * libc/sys/linux/configure: Ditto.
11171         * libc/sys/linux/brk.c: Use machine/syscall.h instead of sys/syscall.h.
11172         * libc/sys/linux/inode.c: Ditto.
11173         * libc/sys/linux/linux.c: Ditto.
11174         * libc/sys/linux/process.c: Ditto.
11175         * libc/sys/linux/systat.c: Ditto.
11176         * libc/sys/linux/time.c: Ditto.
11177         * libc/sys/linux/wait.c: Ditto.
11178         * libc/sys/linux/ids.c: Change header plus add setfsgid/setfsuid.
11179         * libc/sys/linux/io.c: Change header plus add readv/writev.
11180         * libc/sys/linux/signal.c: Change header plus change sigsuspend to
11181         use __sigsuspend syscall.
11182         * libc/sys/linux/select.c: Change header plus change select to
11183         use _newselect syscall.
11184         * libc/sys/linux/sys/cdefs.h: Add a number of standard definitions
11185         used by glibc header files.
11186         * libc/sys/linux/sys/types.h: Add __socklen_t and __useconds_t
11187         types.
11188
11189 2002-04-01  Jeff Johnston  <jjohnstn@redhat.com>
11190
11191         * libc/include/sys/reent.h (_REENT_INIT_PTR): New macro for
11192         initializing a struct _reent that has been dynamically allocated.
11193         (_REENT_CHECK_MISC): New macro that checks _misc struct for
11194         _REENT_SMALL and does nothing otherwise.
11195         (_REENT_STRTOK_LAST): New macro for reentrant strtok.
11196         (_REENT_MBLEN_STATE): New macro for reentrant mblen.
11197         (_REENT_MBTOWC_STATE): New macro for reentrant mbtowc.
11198         (_REENT_WCTOMB_STATE): New macro for reentrant wctomb.
11199         [_REENT_SMALL](struct _misc_reent): New structure containing
11200         miscellaneous reentrant areas needed by newlib.
11201         [_REENT_SMALL](struct _reent): Add _misc pointer.
11202         [_REENT_SMALL](_REENT_INIT_MISC): New macro.
11203         * libc/string/strtok (strtok): Change to use _REENT_CHECK_MISC
11204         and _REENT_STRTOK_LAST macros.
11205         * libc/stdlib/mblen (mblen): Change to use _REENT_CHECK_MISC
11206         and _REENT_MBLEN_STATE macros.
11207         * libc/stdlib/mbtowc (mbtowc): Change to use _REENT_CHECK_MISC
11208         and _REENT_MBTOWC_STATE macros.
11209         * libc/stdlib/wctomb (wctomb): Change to use _REENT_CHECK_MISC
11210         and _REENT_WCTOMB_STATE macros.
11211
11212 2002-04-01  Till Straumann <strauman@SLAC.Stanford.EDU>
11213
11214         * libc/stdlib/getenv_r.c (_findenv_r): Add missing ENV_UNLOCK.
11215
11216 Wed Mar 27 07:34:44 2002  Jason Tishler <jason@tishler.net>
11217
11218         * libc/include/sys/features.h (_POSIX_SEMAPHORES): New Cygwin define.
11219
11220 Tue Mar 26 17:17:10 2002  J"orn Rennecke <joern.rennecke@superh.com>
11221
11222         * libc/machine/sh/memcpy.S (Large): Fix alignment rounding.
11223         Store high part of leading bytes too.
11224
11225 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
11226
11227         * libm/math/ef_hypot.c: Increase scale factor to 68.
11228
11229 2002-03-13  Alexandre Oliva  <aoliva@redhat.com>
11230
11231         * libc/machine/mips/strlen.c (strlen) [__mips16]: Fix off-by-two
11232         error.
11233
11234 2002-03-12  Jeff Johnston  <jjohnstn@redhat.com>
11235
11236         * libc/sys/go32/access.c: Change license to relaxed license
11237         used in identical file throughout newlib/libgloss.
11238
11239 2002-03-12  Richard Earnshaw  <rearnsha@arm.com>
11240
11241         * libc/sys/arm/access.c: New file.
11242         * libc/sys/arm/Makefile.am (lib_a_SOURCES): Add access.c.
11243         * libc/sys/arm/Makefile.in: Regenerate.
11244         * libc/sys/arm/syscalls.c (_stat): New function.
11245
11246 2002-03-11  Michael Meissner  <meissner@redhat.com>
11247
11248         * libc/machine/mips/Makefile.am (lib_a_SOURCES): Add Mips specific
11249         variants strlen.c, strcmp.c, strncpy.c, memset.c and memcpy.c.
11250         * libc/machine/mips/Makefile.in: Regenerate.
11251         * libc/machine/mips/memcpy.c: New file, optimized for MIPS.
11252         * libc/machine/mips/memset.c: Dito.
11253         * libc/machine/mips/strcmp.c: Dito.
11254         * libc/machine/mips/strlen.c: Dito.
11255         * libc/machine/mips/strncmp.c: Dito.
11256
11257 2002-03-06  Jeff Johnston  <jjohnstn@redhat.com>
11258
11259         * libc/machine/i386/Makefile.am: Add $(oext) for setjmp
11260         object so it works for shared library or statici library.
11261 2002-04-17  Jeff Johnston  <jjohnstn@redhat.com>
11262
11263         *  libc/include/time.h (tzset, _tzset_r): Added prototypes.
11264         (strptime): Moved prototype to be within !__STRICT_ANSI__.
11265         (_tzname, _daylight, _timezone): No long __CYGWIN__ only.
11266         (tzname): Defined for all platforms.
11267         (daylight, timezone): Defined only for CYGWIN.
11268         *  libc/sys/linux/machine/i386/crt0.c: Add call to tzset() after
11269         environment set up.
11270         * libc/stdlib/setenv_r.c (_setenv_r): Call tzset() if the TZ
11271         environment variable is set.
11272         *  libc/time/Makefile.am: Add support for tzset.c, tzlock.c, and
11273         tzset_r.c.
11274         *  libc/time/Makefile.in: Regenerated.
11275         *  libc/time/gmtime.c (gmtime): Changed to call gmtime_r.
11276         *  libc/time/gmtime_r.c (gmtime_r): Changed to call _mktm_r.
11277         *  libc/time/lcltime_r.c (lcltime_r): Ditto.
11278         *  libc/time/local.h: New local header file.
11279         *  libc/time/mktime.c (mktime): Add timezone support.
11280         *  libc/time/mktm_r.c: New file which is the common engine
11281         for gmtime_r and lcltime_r.  This code has timezone support.
11282         *  libc/time/strftime.c (strftime): Add %Z timezone support.
11283         *  libc/time/tzlock.c: New file containing timezone lock stubs.
11284         *  libc/time/tzset.c: New file containing tzset() routine.
11285         *  libc/time/tzset_r.c: New file containing _tzset_r and
11286         internal routine for calculating timezone changes for specified year.
11287
11288 2002-04-17  Thomas Fitzsimmons  <fitzsim@redhat.com>
11289
11290         * configure.in (CRT0_DIR): Set to libc/.
11291         (CRT1_DIR): Set to ${crt1_dir}/ if crt1_dir is non-empty.
11292         * Makefile.am: Change all occurrences of $(CRT0_DIR)/$(CRT0) to
11293         $(CRT0_DIR)$(CRT0) to prevent make warnings.  Likewise for
11294         $(CRT1_DIR)/$(CRT1).
11295         * libc/machine/xstormy16/Makefile.in: Regenerated.
11296         * libc/machine/xstormy16/aclocal.m4: Regenerated.
11297         * libc/machine/xstormy16/configure: Regenerated.
11298
11299 2002-04-13  Alexandre Oliva  <aoliva@redhat.com>
11300
11301         * libc/stdlib/mallocr.c (malloc_extend_top): If correction sbrk
11302         fails, don't bail out, and try to correct next time.
11303
11304         * libc/include/sys/config.h: Include limits.h.
11305
11306 2002-04-12  Eric Norum  <eric.norum@usask.com>
11307
11308         * libc/sys/rtems/crt0.c (rtems_gxx_mutex_init): Dummy
11309         routine to allow autoconf to determine that building executables
11310         for rtems works.
11311         (rtems_gxx_mutex_lock, rtems_gxx_mutex_unlock): Ditto.
11312         (rtems_gxx_mutex_once): Ditto.
11313
11314 2002-04-09  Tom Rix  <trix@redhat.com>
11315
11316         * libc/include/sys/reent.h (_REENT_INIT_PTR): Fix typo.
11317
11318 2002-04-09  Mark Bradshaw  <bradshaw@staff.crosswalk.com>
11319
11320         * libc/include/time.h: Fix strptime declaration.
11321         * libc/time/Makefile.am: Add strptime.c.
11322         * libc/time/Makefile.in: Regenerated.
11323         * libc/time/strptime.c: New file.
11324
11325 2002-04-08  Jeff Johnston  <jjohnstn@redhat.com>
11326
11327         * libc/sys/linux/include/setjmp.h: Add sigjmp_buf type,
11328         siglongjmp prototype, and sigsetjmp macro definition.
11329         * libc/sys/linux/siglongjmp.c: New file.
11330         * libc/sys/linux/Makefile.am: Add support for siglongjmp.
11331         * libc/sys/linux/Makefile.in: Regenerated.
11332
11333 2002-04-04  Jeff Johnston  <jjohnstn@redhat.com>
11334
11335         * Makefile.am: Add support for installing crt1.o if one exists.
11336         * configure.host: Specify crt1.o for linux.
11337         * configure.in: Expose CRT1 and CRT1_DIR for Makefile.am to use.
11338         * Makefile.in: Regenerated.
11339         * configure: Ditto.
11340         * libc/include/sys/unistd.h (_SC_STREAM_MAX, _SC_PRIORITY_SCHEDULING):
11341         Added for non-Cygwin, non-RTEMS configurations.
11342         * libc/sys/linux/Makefile.am: Add support for crt1 and sysconf.
11343         * libc/sys/linux/Makefile.in: Regenerated.
11344         * libc/sys/linux/crt1.c: New empty file to override one defaulted
11345         by gcc.  This fixes problem with reconfiguring linux newlib build.
11346         * libc/sys/linux/sysconf.c: New file.
11347
11348 2002-04-03  Jeff Johnston  <jjohnstn@redhat.com>
11349
11350         * configure.host: Add support for machine subdirectory of
11351         sys subdirectory.
11352         * configure.in: Add check for sys machine subdirectory.
11353         * Makefile.am: Ditto.
11354         * configure: Regenerated.
11355         * Makefile.in: Ditto.
11356         * libc/sys/linux/crt0.c: Moved to machine/i386 directory.
11357         * libc/sys/linux/sys/syscall.h: Ditto.
11358         * libc/sys/linux/sleep.c: New file.
11359         * libc/sys/linux/socket.c: Ditto.
11360         * libc/sys/linux/sockops.h: Ditto.
11361         * libc/sys/linux/stack.c: Ditto.
11362         * libc/sys/linux/usleep.c: Ditto.
11363         * libc/sys/linux/machine/Makefile.am: Ditto.
11364         * libc/sys/linux/machine/Makefile.in: Ditto.
11365         * libc/sys/linux/machine/aclocal.m4: Ditto.
11366         * libc/sys/linux/machine/configure: Ditto.
11367         * libc/sys/linux/machine/configure.in: Ditto.
11368         * libc/sys/linux/machine/i386/Makefile.am: Ditto.
11369         * libc/sys/linux/machine/i386/Makefile.in: Ditto.
11370         * libc/sys/linux/machine/i386/aclocal.m4: Ditto.
11371         * libc/sys/linux/machine/i386/configure: Ditto.
11372         * libc/sys/linux/machine/i386/configure.in: Ditto.
11373         * libc/sys/linux/machine/i386/crt0.c: Ditto.
11374         * libc/sys/linux/machine/i386/sigset.c: Ditto.
11375         * libc/sys/linux/machine/i386/sigstack.h: Ditto.
11376         * libc/sys/linux/machine/i386/socketcall.h: Ditto.
11377         * libc/sys/linux/machine/i386/syscall.h: Ditto.
11378         * libc/sys/linux/sys/select.h: Ditto.
11379         * libc/sys/linux/configure.in: Add support for machine directory.
11380         * libc/sys/linux/Makefile.am: Ditto plus add new files above.
11381         * libc/sys/linux/Makefile.in: Regenerated.
11382         * libc/sys/linux/configure: Ditto.
11383         * libc/sys/linux/brk.c: Use machine/syscall.h instead of sys/syscall.h.
11384         * libc/sys/linux/inode.c: Ditto.
11385         * libc/sys/linux/linux.c: Ditto.
11386         * libc/sys/linux/process.c: Ditto.
11387         * libc/sys/linux/systat.c: Ditto.
11388         * libc/sys/linux/time.c: Ditto.
11389         * libc/sys/linux/wait.c: Ditto.
11390         * libc/sys/linux/ids.c: Change header plus add setfsgid/setfsuid.
11391         * libc/sys/linux/io.c: Change header plus add readv/writev.
11392         * libc/sys/linux/signal.c: Change header plus change sigsuspend to
11393         use __sigsuspend syscall.
11394         * libc/sys/linux/select.c: Change header plus change select to
11395         use _newselect syscall.
11396         * libc/sys/linux/sys/cdefs.h: Add a number of standard definitions
11397         used by glibc header files.
11398         * libc/sys/linux/sys/types.h: Add __socklen_t and __useconds_t
11399         types.
11400
11401 2002-04-01  Jeff Johnston  <jjohnstn@redhat.com>
11402
11403         * libc/include/sys/reent.h (_REENT_INIT_PTR): New macro for
11404         initializing a struct _reent that has been dynamically allocated.
11405         (_REENT_CHECK_MISC): New macro that checks _misc struct for
11406         _REENT_SMALL and does nothing otherwise.
11407         (_REENT_STRTOK_LAST): New macro for reentrant strtok.
11408         (_REENT_MBLEN_STATE): New macro for reentrant mblen.
11409         (_REENT_MBTOWC_STATE): New macro for reentrant mbtowc.
11410         (_REENT_WCTOMB_STATE): New macro for reentrant wctomb.
11411         [_REENT_SMALL](struct _misc_reent): New structure containing
11412         miscellaneous reentrant areas needed by newlib.
11413         [_REENT_SMALL](struct _reent): Add _misc pointer.
11414         [_REENT_SMALL](_REENT_INIT_MISC): New macro.
11415         * libc/string/strtok (strtok): Change to use _REENT_CHECK_MISC
11416         and _REENT_STRTOK_LAST macros.
11417         * libc/stdlib/mblen (mblen): Change to use _REENT_CHECK_MISC
11418         and _REENT_MBLEN_STATE macros.
11419         * libc/stdlib/mbtowc (mbtowc): Change to use _REENT_CHECK_MISC
11420         and _REENT_MBTOWC_STATE macros.
11421         * libc/stdlib/wctomb (wctomb): Change to use _REENT_CHECK_MISC
11422         and _REENT_WCTOMB_STATE macros.
11423
11424 2002-04-01  Till Straumann <strauman@SLAC.Stanford.EDU>
11425
11426         * libc/stdlib/getenv_r.c (_findenv_r): Add missing ENV_UNLOCK.
11427
11428 Wed Mar 27 07:34:44 2002  Jason Tishler <jason@tishler.net>
11429
11430         * libc/include/sys/features.h (_POSIX_SEMAPHORES): New Cygwin define.
11431
11432 Tue Mar 26 17:17:10 2002  J"orn Rennecke <joern.rennecke@superh.com>
11433
11434         * libc/machine/sh/memcpy.S (Large): Fix alignment rounding.
11435         Store high part of leading bytes too.
11436
11437 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
11438
11439         * libm/math/ef_hypot.c: Increase scale factor to 68.
11440
11441 2002-03-13  Alexandre Oliva  <aoliva@redhat.com>
11442
11443         * libc/machine/mips/strlen.c (strlen) [__mips16]: Fix off-by-two
11444         error.
11445
11446 2002-03-12  Jeff Johnston  <jjohnstn@redhat.com>
11447
11448         * libc/sys/go32/access.c: Change license to relaxed license
11449         used in identical file throughout newlib/libgloss.
11450
11451 2002-03-12  Richard Earnshaw  <rearnsha@arm.com>
11452
11453         * libc/sys/arm/access.c: New file.
11454         * libc/sys/arm/Makefile.am (lib_a_SOURCES): Add access.c.
11455         * libc/sys/arm/Makefile.in: Regenerate.
11456         * libc/sys/arm/syscalls.c (_stat): New function.
11457
11458 2002-03-11  Michael Meissner  <meissner@redhat.com>
11459
11460         * libc/machine/mips/Makefile.am (lib_a_SOURCES): Add Mips specific
11461         variants strlen.c, strcmp.c, strncpy.c, memset.c and memcpy.c.
11462         * libc/machine/mips/Makefile.in: Regenerate.
11463         * libc/machine/mips/memcpy.c: New file, optimized for MIPS.
11464         * libc/machine/mips/memset.c: Dito.
11465         * libc/machine/mips/strcmp.c: Dito.
11466         * libc/machine/mips/strlen.c: Dito.
11467         * libc/machine/mips/strncmp.c: Dito.
11468
11469 2002-03-06  Jeff Johnston  <jjohnstn@redhat.com>
11470
11471         * libc/machine/i386/Makefile.am: Add $(oext) for setjmp
11472         object so it works for shared library or statici library.
11473         * libc/machine/i386/Makefile.in: Regenerated.
11474
11475 Wed Mar  6 10:24:26 2002  J"orn Rennecke <joern.rennecke@superh.com>
11476
11477         * libc/machine/sh/Makefile.am (lib_a_SOURCES, SH64 case):
11478         Add memcpy.S, memset.S and strcpy.S.
11479         * libc/machine/sh/Makefile.in: Regenerate.
11480         * libc/machine/sh/asm.h (_ENTRY): Set SH5 alignment to 8 bytes.
11481         (SHHI, SHLO): Define.
11482         * libc/machine/sh/memset.S: Add code for SH5.
11483         * libc/machine/sh/memset.S: Likewise.
11484         * libc/machine/sh/strcpy.S: Likewise.
11485
11486 2002-02-27  Jeff Johnston  <jjohnstn@redhat.com>
11487
11488         * configure.host: Add check for --disable-newlib-io-float
11489         configuration option and add -DNO_FLOATING_POINT to newlib cflags
11490         if appropriate.
11491         * acinclude.m4: Added --disable-newlib-io-float option.
11492         * aclocal.m4: Regenerated.
11493         * configure: Ditto.
11494         * doc/aclocal.m4 doc/configure libc/aclocal.m4 libc/configure
11495         * libc/*/aclocal.m4 libc/*/configure
11496         * libm/*/aclocal.m4 libm/*/configure: Ditto.
11497         * libc/stdio/vfprintf.c [!INTEGER_ONLY]: Only set FLOATING_POINT
11498         if NO_FLOATING_POINT flag is not defined.
11499
11500 2002-02-25  Jeff Johnston  <jjohnstn@redhat.com>
11501
11502         * libc/include/sys/config.h: Add __extension__ in front of
11503         long long references.
11504
11505 2002-02-23  Corinna Vinschen  <corinna@vinschen.de>
11506
11507         * libc/include/sys/stat.h (_fstat): Don't declare when compiling Cygwin.
11508         (_stat): Ditto.
11509
11510 2002-02-23  Corinna Vinschen  <corinna@vinschen.de>
11511
11512         * libc/sys/cygwin/sys/dirent.h (struct __DIR): Use __off32_t instead
11513         of off_t.
11514
11515 2002-02-20  Nick Clifton  <nickc@cambridge.redhat.com>
11516
11517         * libc/machine/xscale/strchr.c (strchr): Add 'r1' to the list of
11518         clobbered registers.
11519
11520 2002-02-19  Thomas Fitzsimmons  <fitzsim@redhat.com>
11521
11522         * configure.host (newlib_cflags): When host is in m68* add
11523         -DCOMPACT_CTYPE.
11524
11525 2002-02-15  Jeff Johnston  <jjohnstn@redhat.com>
11526
11527         * libc/include/sys/config.h: Add definitions for
11528         __int16_t, __uint16_t, __int64_t, and __uint64_t.
11529
11530 2002-02-12  Hans-Peter Nilsson  <hp@bitrange.com>
11531
11532         * libc/sys/mmixware/link.c: New.
11533         * libc/sys/mmixware/sys/syscall.h (TRAP1i, I3f): Make asm
11534         volatile.
11535         * libc/sys/mmixware/times.c (_times): Renamed from times.
11536         * libc/sys/mmixware/open.c (_open): Attempt to handle O_APPEND
11537         properly by reading previous contents, not through BinaryReadWrite.
11538         * libc/sys/mmixware/Makefile.am (lib_a_SOURCES): Add link.c
11539         * libc/sys/mmixware/Makefile.in: Regenerate.
11540
11541 2002-02-10  Corinna Vinschen  <corinna@vinschen.de>
11542
11543         * libc/include/grp.h: Don't declare group functions when compiling
11544         Cygwin.
11545
11546 2002-02-09  Corinna Vinschen  <corinna@vinschen.de>
11547
11548         * libc/include/grp.h: Include Cygwin specific header.
11549         * libc/include/sys/stat.h: Ditto.  Don't define `struct stat'
11550         when compiling for Cygwin.
11551         * libc/include/sys/types.h: Don't define off_t, uid_t
11552         and gid_t when compiling for Cygwin.
11553
11554 2002-02-08  matthew green  <mrg@redhat.com>
11555
11556         * libc/include/sys/reent.h (_REENT_CHECK_EMERGENCY): Allocate
11557         _REENT_EMERGENCY_SIZE, not sizeof(char *).
11558
11559 2002-02-08  Alexandre Oliva  <aoliva@redhat.com>
11560
11561         Contribute sh64-elf.
11562         2001-03-13  Alexandre Oliva  <aoliva@redhat.com>
11563         * configure.host (newlib_cflags) [sh*-*-*]: Enable long long
11564         support in printf.
11565         2001-01-29  Alexandre Oliva  <aoliva@redhat.com>
11566         * libc/machine/sh/setjmp.S [SH5]: Switch to SHmedia mode before
11567         any labels.
11568         2001-01-24  Alexandre Oliva  <aoliva@redhat.com>
11569         * libc/sys/sh/trap.S (___trap34) [SH5]: Don't trash r2.
11570         2000-12-16  Alexandre Oliva  <aoliva@redhat.com>
11571         * libc/machine/sh/configure.in: Rework conditionals.
11572         * libc/machine/sh/Makefile.am: Likewise.
11573         * libc/machine/sh/configure, libc/machine/sh/Makefile.in: Rebuilt.
11574         2000-12-01  Alexandre Oliva  <aoliva@redhat.com>
11575         * configure.host: Match `sh*'.
11576         * libc/include/machine/setjmp.h: Define for SH5.
11577         * libc/machine/sh/configure.in: Detect SH5.
11578         * libc/machine/sh/configure: Rebuilt.
11579         * libc/machine/sh/Makefile.am: Use only setjmp.S for SH5.
11580         * libc/machine/sh/Makefile.in: Rebuilt.
11581         * libc/machine/sh/asm.h: Adjust for SH5.
11582         * libc/machine/sh/setjmp.S: Implement in SHmedia.
11583         * libc/sys/sh/crt0.S: Likewise.
11584         * libc/sys/sh/trap.S: Likewise.
11585
11586 2002-02-07  Jeff Johnston  <jjohnstn@redhat.com>
11587
11588         * libc/machine/i386/Makefile.am: (mach_add_src): Remove.
11589         (mach_add_obj): Conditionally set to setjmp.o or nothing.
11590         (LIB_SOURCES): Remove $(mach_add_src).
11591         (lib_a_LIBADD, lib_a_DEPENDENCIES): Add and set to $(mach_add_src).
11592         (lib_la_LIBADD, lib_la_DEPENDENCIES): Ditto.
11593         * libc/machine/i386/Makefile.in: Regenerate.
11594
11595 2002-02-05  Manik Raina <manik@cisco.com>
11596
11597         * libc/misc/dprintf.c (parse_number): #if 0 unused function.
11598         * libc/stdlib/ldtoa.c (_ldcheck): Remove unused local variables
11599         s, p, k, and outstr.
11600         * libc/stdlib/dtoa.c (_dtoa_r): Initialize mlo.
11601
11602 2002-02-04  Jeff Johnston  <jjohnstn@redhat.com>
11603
11604         * libc/include/sys/reent.h [(!_REENT_SMALL]: Add
11605         _REENT_CHECK_EMERGENCY macro.
11606
11607 2002-02-03  matthew green  <mrg@redhat.com>
11608
11609         * libc/reent/signgam.c (__signgam): Fix error in previous.
11610
11611 2002-02-02  matthew green  <mrg@redhat.com>
11612
11613         * libc/include/sys/config.h (_REENT_SMALL): Define for Xstormy16.
11614
11615         * libc/reent/reent.c (_reclaim_reent): Clean for _REENT_SMALL case.
11616         * libc/reent/reent.tex: Add blurb about _REENT_SMALL.
11617         * libc/include/sys/reent.h (struct _reent): Completely new version
11618         for _REENT_SMALL.
11619         (_REENT_INIT): New defines, different defintion depending on _REENT_SMALL.
11620         (_REENT_CHECK, _REENT_CHECK_TM): Likewise.
11621         (_REENT_CHECK_ASCTIME_BUF, _REENT_INIT_RAND48): Likewise.
11622         (_REENT_CHECK_RAND48, _REENT_INIT_MP, _REENT_CHECK_MP): Likewise.
11623         (_REENT_CHECK_EMERGENCY, _REENT_SIGNGAM, _REENT_RAND_NEXT): Likewise.
11624         (_REENT_RAND48_SEED, _REENT_RAND48_MULT, _REENT_RAND48_ADD): Likewise.
11625         (_REENT_MP_RESULT, _REENT_MP_RESULT_K, _REENT_MP_P5S): Likewise.
11626         (_REENT_MP_FREELIST, _REENT_ASCTIME_BUF, _REENT_TM): Likewise.
11627         (_REENT_EMERGENCY): Likewise.
11628
11629         * libc/include/sys/reent.h (struct __sFILE_fake): New struct, same as
11630         the start of the real __sFILE, used for stdin, stdout and stderr until
11631         they are setup properly.
11632         (struct __sFILE): Move location of _data in _REENT_SMALL case.
11633         * libc/stdio/findfp.c (__sinit): Rearrange for _REENT_SMALL case by
11634         allocated stdin, stdout and stderr.
11635         * libc/stdio/getchar.c (_getchar_r): Call _REENT_SMALL_CHECK_INIT().
11636         * libc/stdio/iprintf.c (iprintf, _iprintf_r): Likewise.
11637         * libc/stdio/perror.c (_perror_r): Likewise.
11638         * libc/stdio/printf.c (printf, _printf_r): Likewise.
11639         * libc/stdio/putchar.c (_putchar_r): Likewise.
11640         * libc/stdio/puts.c (_puts_r): Likewise.
11641         * libc/stdio/scanf.c (scanf, _scanf_r): Likewise.
11642         * libc/stdio/vprintf.c (vprintf): Likewise.
11643         * libc/stdio/vscanf.c (vscanf, _vscanf_r): Likewise.
11644
11645         * libc/stdio/tmpnam.c (_tmpnam_r): Use _REENT_EMERGENCY().
11646
11647         * libc/reent/reent.c (_wrapup_reent): Adjust for _REENT_SMALL atexit.
11648         * libc/include/sys/reent.h (_atexit): Limit atexit() entries to 32
11649         for _REENT_SMALL.
11650         * libc/stdlib/atexit.c (atexit): Rearrange for _REENT_SMALL case.
11651         * libc/stdlib/exit.c (exit): Rearrange for _REENT_SMALL case.
11652
11653         * libc/include/sys/reent.h (struct _rand48): Keep _rand_next if
11654         _REENT_SMALL.
11655         * libc/stdlib/drand48.c (_drand48_r): Call _REENT_CHECK_RAND48().
11656         * libc/stdlib/lcong48.c (_lcong48_r): Likewise.
11657         * libc/stdlib/lrand48.c (_lrand48_r): Likewise.
11658         * libc/stdlib/mrand48.c (_mrand48_r): Likewise.
11659         * libc/stdlib/rand48.c (__dorand48): Likewise.
11660         * libc/stdlib/seed48.c (_seed48_r): Likewise.
11661         * libc/stdlib/srand48.c (_srand48_r): Likewise.
11662         * libc/stdlib/rand48.h (__rand48_seed, __rand48_mult, __rand48_add): Define
11663         as _REENT_RAND48_SEED(), _REENT_RAND48_MULT() and _REENT_RAND48_ADD().
11664         * libc/stdlib/dtoa.c (_dtoa_r): Call _REENT_CHECK_MP().  Use
11665         _REENT_MP_RESULT() and _REENT_MP_RESULT_K().
11666         * libc/stdlib/ldtoa.c (_ldtoa_r): Likewise.
11667         * libc/stdlib/rand.c (srand): Use _REENT_RAND_NEXT().
11668         * libc/stdlib/rand.c (rand): Likewise.
11669
11670         * libc/stdlib/mallocr.c (malloc_stats): Call _REENT_SMALL_CHECK_INIT().
11671         * libc/stdlib/mstats.c (_mstats_r): Call _REENT_SMALL_CHECK_INIT().
11672
11673         * libc/stdlib/mprec.c (Balloc): Call _REENT_CHECK_MP.  Use
11674         _REENT_MP_FREELIST() and _REENT_MP_P5S.
11675         * libc/include/sys/reent.h (struct _mprec): New structure.
11676
11677         * libc/include/sys/reent.h (struct _reent): Rename _strtok_last to
11678         _unused_strtok_last.
11679         * libc/string/strtok.c (strtok): Use a local static variable.
11680
11681         * libc/include/sys/reent.h (_REENT_ASCTIME_SIZE): New define.
11682         (_REENT_EMERGENCY_SIZE): Likewise.
11683         * libc/time/asctime.c (asctime): Call _REENT_CHECK_ASCTIME_BUF().  Use
11684         _REENT_ASCTIME_BUF().
11685         * libc/time/lcltime.c (localtime): Call _REENT_CHECK_TM().  Use
11686         _REENT_TM().
11687
11688         * libc/include/math.h (__singam_r): Use _REENT_SIGNGAM().
11689         * libc/reent/signgam.c (__signgam): Use _REENT_SIGNGAM().
11690         * libm/math/w_gamma.c (gamma): Use _REENT_SIGNGAM().
11691         * libm/math/w_lgamma.c (lgamma): Use _REENT_SIGNGAM().
11692         * libm/math/wf_gamma.c (gammaf): Use _REENT_SIGNGAM().
11693         * libm/math/wf_lgamma.c (lgammaf): Use _REENT_SIGNGAM().
11694
11695 2002-02-01  Geoffrey Keating  <geoffk@redhat.com>
11696
11697         * configure.host (xstormy16): Don't use the generic malloc.
11698         * libc/machine/xstormy16/Makefile.am: Build tiny-malloc.
11699         * libc/machine/xstormy16/Makefile.in: Regenerate.
11700         * libc/machine/xstormy16/mallocr.c: New file.
11701         * libc/machine/xstormy16/tiny-malloc.c: New file.
11702
11703 2002-01-28  Thomas Fitzsimmons  <fitzsim@redhat.com>
11704
11705         * libc/include/sys/signal.h [__CYGWIN__]: Issue error message
11706         when _CYGWIN_TYPES_H is not defined.
11707
11708 2002-01-24  Thomas Fitzsimmons  <fitzsim@redhat.com>
11709
11710         * libc/include/sys/signal.h: Revert 2002-01-23 change.
11711
11712 2002-01-23  Thomas Fitzsimmons  <fitzsim@redhat.com>
11713
11714         * libc/include/sys/signal.h: Remove pthread_kill declaration
11715         when __CYGWIN__ is defined.
11716
11717 2002-01-18  Mark Bradshaw  <bradshaw@staff.crosswalk.com>
11718
11719         * libc/include/time.h: Add prototype for strptime for Cygwin.
11720
11721 2002-01-17  Nick Clifton  <nickc@cambridge.redhat.com>
11722
11723         * libc/machine/xscale/memset.c (memset): Fix bug when len == 1 and
11724         dst was not word aligned.
11725
11726         * libc/sys/arm/syscalls.c (_sbrk): Return -1 rather than aborting
11727         if too much memory is requested.
11728
11729 2002-01-11 Jeff Johnston  <jjohnstn@redhat.com>
11730
11731         * libc/stdio/vfscanf.c (__svfscanf_r): Change loop that
11732         reads blanks from the input file to break if EOF reached
11733         rather than end processing.
11734
11735 2002-01-07 Jeff Johnston  <jjohnstn@redhat.com>
11736
11737         * MAINTAINERS: Change e-mail addresses to refer to redhat domain.
11738
11739 2002-01-07 Alan Matsuoka <alanm@redhat.com>
11740
11741         * libc/include/machine/ieeefp.h: Configure d10v doubles to
11742         be 32 bits if __DOUBLE__ == 32  otherwise doubles are 64 bits.
11743         libc/include/sys/config.h: Ditto.
11744
11745 2001-12-28  Corinna Vinschen  <corinna@vinschen.de>
11746
11747         * libc/sys/cygwin/sys/utmp.h: Add definition of UTMP_FILE.
11748
11749 2001-12-22  Geoffrey Keating  <geoffk@redhat.com>
11750             Catherine Moore  <clm@redhat.com>
11751             Richard Henderson  <rth@redhat.com>
11752             Corinna Vinschen  <vinschen@redhat.com>
11753
11754         * configure.host: Add support for xstormy16.
11755         * libc/include/machine/ieeefp.h: Add support for xstormy16.
11756         * libc/include/machine/setjmp.h: Add support for xstormy16.
11757         * libc/include/sys/config.h: Add support for xstormy16.
11758         * libc/machine/xstormy16/Makefile.am: New file.
11759         * libc/machine/xstormy16/Makefile.in: New file.
11760         * libc/machine/xstormy16/aclocal.m4: New file.
11761         * libc/machine/xstormy16/configure: New file.
11762         * libc/machine/xstormy16/configure.in: New file.
11763         * libc/machine/xstormy16/setjmp.S: New file.
11764
11765 2001-12-19  Thomas Fitzsimmons  <fitzsim@redhat.com>
11766
11767         * libm/machine/configure.in (HAVE_LIBM_MACHINE_DIR): New conditional.
11768         * libm/machine/Makefile.am [HAVE_LIBM_MACHINE_DIR] (LIBM_MACHLIB): New variable.
11769
11770 2001-12-19  Corinna Vinschen  <corinna@vinschen.de>
11771
11772         * libm/machine/Makefile.am: Change rules to create correct lib.a.
11773         * libm/machine/Makefile.in: Regenerated through automake.
11774
11775 2001-12-18  Thomas Fitzsimmons  <fitzsim@redhat.com>
11776
11777         * Makefile.am (DOCDIR): Force to empty string when doc
11778         directory is not present.
11779
11780 2001-12-18  Thomas Fitzsimmons  <fitzsim@redhat.com>
11781
11782         * libc/machine/i386/f_*: Move to libm/machine/i386.
11783
11784 2001-12-18      Joel Sherrill <joel@OARcorp.com>
11785
11786         * libm/machine/Makefile.am: Add dummy doc stub so
11787         "make info" works.
11788
11789 2001-12-17      Joel Sherrill <joel@OARcorp.com>
11790
11791         * libc/include/sys/types.h (ino_t): RTEMS uses long also.
11792
11793 2001-12-17  Thomas Fitzsimmons  <fitzsim@redhat.com>
11794
11795         * libc/stdlib/Makefile.am (LIB_COMPILE): Change to equal
11796         $(COMPILE) rather than $(CC).
11797         * libc/stdio/Makefile.am (LIB_COMPILE): Likewise.
11798         (vfprintf.$(oext)): Remove $(INCLUDES), made redundant by
11799         $(LIB_COMPILE) change.
11800         (vfiprintf.$(oext)): Likewise.
11801
11802 2001-12-17  Corinna Vinschen  <vinschen@redhat.de>
11803
11804         * libc/sys/cygwin/include/unistd.h: Add __UNISTD_GETOPT_ to allow
11805         conditionalized including of getopt stuff.
11806
11807 2001-12-14  Thomas Fitzsimmons  <fitzsim@redhat.com>
11808
11809         * libc/stdio/Makefile.am (vfprintf.$(oext)): Add $(INCLUDES) to
11810         compile line.
11811         (vfiprintf.$(oext)): Likewise.
11812
11813 2001-12-13  Thomas Fitzsimmons  <fitzsim@redhat.com>
11814
11815         * Makefile.shared: New file.
11816         * libc/sys/linux/shared.ld: New file.
11817         * libm/machine/*: New files.
11818         * libm/machine/i386/*: New files.
11819         * Makefile.am: Add libtool support.  Change math and mathfp
11820         references to variables.
11821         * configure.host: Add variables for libtool support.  Add
11822         libm_machine_dir variable.
11823         * configure.in: Add objectlist variables, for libtool
11824         support.  Add CC_FOR_BUILD tests.
11825         * libc/Makefile.am: Add libtool support.  Change crt0.o
11826         reference to be a variable reference.
11827         * libc/configure.in: Add libtool support.  Change sublib
11828         names to be lib${subdir}.la when using libtool.
11829         * libc/ctype/Makefile.am: Add libtool support.
11830         * libc/errno/Makefile.am: Likewise.
11831         * libc/locale/Makefile.am: Likewise.
11832         * libc/machine/Makefile.am: Likewise.
11833         * libc/machine/configure.in: Likewise.
11834         * libc/machine/i386/Makefile.am: Likewise.
11835         * libc/machine/i386/configure.in: Likewise.
11836         * libc/misc/Makefile.am: Likewise.
11837         * libc/posix/Makefile.am: Likewise.
11838         * libc/reent/Makefile.am: Likewise.
11839         * libc/signal/Makefile.am: Likewise.
11840         * libc/stdio/Makefile.am: Likewise.
11841         * libc/stdlib/Makefile.am: Likewise.
11842         * libc/string/Makefile.am: Likewise.
11843         * libc/sys/Makefile.am: Likewise.
11844         * libc/sys/configure.in: Likewise.
11845         * libc/sys/linux/Makefile.am: Add libtool support.  Change
11846         awk reference to a variable reference.  Change signal.h
11847         reference to a variable reference.
11848         * libc/sys/linux/configure.in: Add libtool support.
11849         * libc/syscalls/Makefile.am: Likewise.
11850         * libc/time/Makefile.am: Likewise.
11851         * libc/unix/Makefile.am: Likewise.
11852         * libm/Makefile.am: Add libtool support.  Change math and
11853         mathfp references to variables.
11854         * libm/configure.in: Add libtool support.  Add
11855         LIBM_MACHINE_LIB variable.
11856         * libm/common/Makefile.am: Add libtool support.
11857         * libm/math/Makefile.am: Likewise.
11858         * libm/mathfp/Makefile.am: Likewise.
11859         Regenerate all Makefile.in, aclocal.m4, and configure.
11860
11861 2001-12-13 Anita Kulkarni <anitak@kpit.com>
11862
11863         * libc/sys/sh/crt0.S: Remove stack symbol definition 0xdeaddead.
11864
11865 2001-12-06  John Peacock <jpeacock@rowman.com>
11866
11867         * libc/include/sys/unistd.h: Correct ualarm declaration.
11868
11869 2001-12-05  Nick Clifton  <nickc@cambridge.redhat.com>
11870
11871         * libc/sys/arm/crt0.S: For __USES_INITFINI__ preserve the argument
11872         vector before calling the initialisation functions.
11873
11874 2001-11-29  Christopher Faylor  <cgf@redhat.com>
11875
11876         * libc/include/dirent.h: Protect against multiple inclusion.
11877
11878 2001-11-27  Christopher Faylor  <cgf@redhat.com>
11879
11880         * libc/include/sys/types.h: Define useconds_t.
11881         * libc/include/sys/ulimit.h: Declare ualarm.
11882
11883 2001-11-21  Christopher Faylor  <cgf@redhat.com>
11884
11885         * libc/sys/cygwin/sys/dirent.h (DIR): Add another internal element.
11886
11887 2001-11-19  Hans-Peter Nilsson  <hp@bitrange.com>
11888
11889         * libc/sys/mmixware/*: Tweak license header in all source files.
11890
11891 2001-11-12  Corinna Vinschen  <vinschen@redhat.com>
11892
11893         * libc/include/alloca.h: Move libc/sys/linux/include/alloca.h
11894         to here.  Rearrange for general inclusion by stdlib.h.
11895         * libc/include/stdlib.h: Include <alloca.h> if __STRICT_ANSI__
11896         isn't defined.
11897         * libc/sys/linux/include/alloca.h: Move to libc/include.
11898
11899 2001-11-12  Anthony Green  <green@redhat.com>
11900
11901         * libc/sys/arm/crt0.S (__stack_base__): New symbol.
11902
11903 2001-11-13  Hans-Peter Nilsson  <hp@bitrange.com>
11904
11905         * libc/sys/mmixware/*: Correct spacing in all source files.
11906         * libc/sys/mmixware/syscall.h: Move misplaced file...
11907         * libc/sys/mmixware/sys/syscall.h: ...here.
11908
11909 2001-11-12  Hans-Peter Nilsson  <hp@bitrange.com>
11910
11911         * libc/include/machine/ieeefp.h: Add support for mmix target.
11912         * libc/include/machine/setjmp.h: Ditto.
11913         * configure.host: Ditto.
11914         * libc/sys/mmixware/Makefile.am, libc/sys/mmixware/_exit.c,
11915         libc/sys/mmixware/access.c, libc/sys/mmixware/aclocal.m4,
11916         libc/sys/mmixware/chmod.c, libc/sys/mmixware/chown.c,
11917         libc/sys/mmixware/close.c, libc/sys/mmixware/configure.in,
11918         libc/sys/mmixware/creat.c, libc/sys/mmixware/crt0.c,
11919         libc/sys/mmixware/execv.c, libc/sys/mmixware/execve.c,
11920         libc/sys/mmixware/fork.c, libc/sys/mmixware/fstat.c,
11921         libc/sys/mmixware/getpid.c, libc/sys/mmixware/gettime.c,
11922         libc/sys/mmixware/isatty.c, libc/sys/mmixware/kill.c,
11923         libc/sys/mmixware/lseek.c, libc/sys/mmixware/open.c,
11924         libc/sys/mmixware/pipe.c, libc/sys/mmixware/read.c,
11925         libc/sys/mmixware/sbrk.c, libc/sys/mmixware/setjmp.S,
11926         libc/sys/mmixware/stat.c, libc/sys/mmixware/sys/syscall.h,
11927         libc/sys/mmixware/time.c, libc/sys/mmixware/times.c,
11928         libc/sys/mmixware/unlink.c, libc/sys/mmixware/utime.c,
11929         libc/sys/mmixware/wait.c, libc/sys/mmixware/write.c: New files.
11930         * libc/sys/mmixware/configure, libc/sys/mmixware/Makefile.in,
11931         libc/sys/mmixware/aclocal.m4: Generate.
11932
11933 2001-11-05  Corinna Vinschen  <corinna@vinschen.de>
11934
11935         * libc/include/sys/unistd.h: Add prototypes for endusershell(),
11936         getusershell(), iruserok(), revoke(), ruserok() and setusershell()
11937         when __CYGWIN__ is defined.
11938         * libc/sys/cygwin/sys/utmp.h: Add prototypes for login_tty() and
11939         logwtmp().
11940
11941 2001-11-01  Arati Dikey  <aratidikey@hotmail.com>
11942
11943         * libm/mathfp/sf_isinf.c (isinff): Change to use _DEFUN macro.
11944         [_DOUBLE_IS_32BITS](isinf): New function that calls isinff.
11945         * libm/mathfp/sf_isnan.c (isnanf): Change to use _DEFUN macro.
11946         [_DOUBLE_IS_32BITS](isnan): New function that calls isnanf.
11947
11948 2001-10-24  Christopher Faylor  <cgf@redhat.com>
11949
11950         * libc/stdio/fseek.c: Reset pointer to buffer base
11951         when forced to seek outside of current buffer contents.
11952         This prevents the code from erroneously thinking there is
11953         anything in the current buffer.
11954
11955 2001-10-22  Geoffrey Keating  <geoffk@redhat.com>
11956
11957         * libc/include/math.h: The C++ standard adds the single-precision
11958         versions of the elementary functions.
11959
11960 2001-10-22  Christopher Faylor  <cgf@redhat.com>
11961
11962         * libc/posix/execvp.c: Remove obsolete CYGWIN32 considerations
11963         throughout.
11964         * signal.h: Change comment to reflect __CYGWIN__ rather than __CYGWIN32__.
11965         * popen.c (popen): Use __CYGWIN_ rather than __CYGWIN32__.
11966         * system.c (_system_r): Ditto.
11967
11968 2001-10-17  Corinna Vinschen  <corinna@vinschen.de>
11969
11970         * libc/include/sys/unistd.h: Add prototype for fchdir() when
11971         __CYGWIN__ or __rtems__ is defined.
11972
11973 2001-10-01  Charles Wilson  <cwilson@ece.gatech.edu>
11974
11975         * libc/include/stdlib.h: add declarations for
11976         _strtoull_r, _strtoll_r, strtoull, and strtoll.
11977         * libc/stdio/local.h: remove declarations of
11978         __strtoull_r and __strtoll_r.
11979         * libc/stdio/vfscanf.c(__svfscanf_r): call
11980         _strtoull_r instead of __strtoull_r. Ditto
11981         _strtoll_r vs. __strtoll_r.
11982         * libc/stdlib/Makefile.am: add new files to
11983         .c list and .def list
11984         * libc/stdlib/Makefile.in: regenerate
11985         * libc/stdlib/strtoll_r.c: rename __strtoll_r
11986         as _strtoll_r
11987         * libc/stdlib/strtoull_r.c: rename __strtoull_r
11988         as _strtoull_r
11989         * libc/stdlib/strtoull.c: new file
11990         * libc/stdlib/strtoll.c: new file
11991
11992 Mon Sep 17 17:29:47 2001  Christopher Faylor <cgf@cygnus.com>
11993
11994         * libc/include/process.h: Add getpid() declaration.
11995
11996 2001-09-14  Nick Clifton  <nickc@cambridge.redhat.com>
11997
11998         * libc/sys/arm/crt0.S: Add calls to _init and _fini (via atexit)
11999         for new style arm/elf ctor/dtor handling.
12000         Minor formatting tidy up.
12001
12002 2001-09-13  Jeff Johnston  <jjohnstn@redhat.com>
12003
12004         * libc/stdlib/Makefile.am: Add support to build strtoll_r.c
12005         and strtoull_r.c.
12006         * libc/stdlib/Makefile.in: Regenerated.
12007         * libc/stdlib/strtoll_r.c: New file.
12008         * libc/stdlib/strtoull_r.c: New file.
12009         * libc/stdio/local.h: Add prototypes for long long string
12010         conversion routines.
12011         * libc/stdio/vfscanf.c (__svfscanf_r): Add optional long long support
12012         tied to %L integer conversion specifier.
12013
12014 Thu Sep 13 08:49:49 2001  Jason Tishler <jason@tishler.net>
12015
12016         * strftime.c (strftime): Fix "%W" implementation to properly handle
12017         Mondays too.
12018
12019 2001-09-07  Jeff Law  <law@redhat.com>
12020
12021         * libc/sys/h8300hms/crt0.S: For H8/300H and H8/S, load address of
12022         __fini with "mov.l" instead of "mov.w".
12023
12024 2001-09-05  Corinna Vinschen  <corinna@vinschen.de>
12025
12026         * libc/sys/cygwin/include/unistd.h: New file, wrapping sys/unistd.h
12027         and getopt.h.
12028
12029 2001-09-04  Jason Merrill  <jason_merrill@redhat.com>
12030
12031         * libc/sys/h8300hms/crt0.S: Support ELF initialization.
12032
12033 2001-09-03  Corinna Vinschen  <corinna@vinschen.de>
12034
12035         * libc/sys/cygwin/sys/dirent.h (struct dirent): Add version number
12036         field.
12037         (__DIRENT_VERSION): New define.
12038
12039 2001-09-03  Corinna Vinschen  <corinna@vinschen.de>
12040
12041         * libc/sys/cygwin/sys/dirent.h (struct dirent): Add `d_fd' member.
12042         Shrink __d_reserved accordingly to keep structure size.
12043         (dirfd): Declare external.
12044
12045 2001-08-29  Joel Sherrill <joel@OARcorp.com>
12046
12047         * libc/include/sys/unistd.h: Prototype chroot() for RTEMS.
12048
12049 2001-08-29  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
12050
12051         * libc/machine/i386/f_atan2.S, libc/machine/i386/f_atan2f.S,
12052           libc/machine/i386/f_exp.c, libc/machine/i386/f_expf.c,
12053           libc/machine/i386/f_frexp.S, libc/machine/i386/f_frexpf.S,
12054           libc/machine/i386/f_ldexp.S, libc/machine/i386/f_ldexpf.S,
12055           libc/machine/i386/f_log.S, libc/machine/i386/f_log10.S,
12056           libc/machine/i386/f_log10f.S, libc/machine/i386/f_logf.S,
12057           libc/machine/i386/f_pow.c, libc/machine/i386/f_powf.c,
12058           libc/machine/i386/f_tan.S, libc/machine/i386/f_tanf.S:
12059         Add conditional compilation to avoid HW FPU instructions
12060         when compiled for soft-float.
12061
12062 2001-08-29  Jeff Johnston  <jjohnstn@redhat.com>
12063
12064         * Makefile.am: Add check for ln failing when creating libg.a
12065         so that cp gets used as a backup.
12066         * Makefile.in: Regenerated.
12067
12068 2001-08-29  Jeff Johnston  <jjohnstn@redhat.com>
12069
12070         * libc/include/sys/reent.h: Add include of <sys/_types.h>.
12071         No longer include time.h.  Add struct __tm to use for
12072         _localtime_buf in the reentrant structure.  Add a
12073         _NULL definition to use in initializing the reentrant struct.
12074         * libc/include/sys/config.h: For CYGWIN32 and RTEMS, change
12075         the _READ_WRITE_RETURN_TYPE to _ssize_t which is found in
12076         <sys/_types.h>.
12077         * libc/include/sys/unistd.h: Include <sys/_types.h>.
12078         * libc/time/lcltime.c (localtime): Cast the reentrant struct
12079         _localtime_buf to be struct tm *.
12080
12081 Wed Aug 29 14:17:38 2001  J"orn Rennecke <amylaar@redhat.com>
12082
12083         * configure.host (h8300-*-elf*, h8500-*-elf*): New cases.
12084         * libc/sys/h8300hms/crt1.c (__main): Don't reference __ctors /
12085         __ctors_end.
12086         * libc/sys/h8300hms/syscalls.c: Include errno.h.
12087         (_unlink): New stub function.
12088
12089 Sat Aug 25 22:22:25 2001  Christopher Faylor <cgf@cygnus.com>
12090
12091         * libc/include/sys/errno.h: Add a cautionary comment.
12092
12093 2001-08-21  Jeff Johnston  <jjohnstn@redhat.com>
12094
12095         * libc/stdlib/mallocr.c [!defined(MALLOC_ALIGNMENT)]: Add conditional
12096         for SIZE_SZ so that alignment ends up a minimum of 8.
12097
12098 Mon Aug 13 22:26:01 2001  Christopher Faylor <cgf@cygnus.com>
12099
12100         * libc/include/machine/setjmp.h: Protect sigsetjmp/siglongjmp macro
12101         arguments.
12102
12103         * libc/include/sys/errno.h: Declare sys_errlist and sys_nerr, under
12104         Cygwin.
12105
12106 2001-08-13  Jeff Johnston  <jjohnstn@redhat.com>
12107
12108         * libc/include/malloc.h (M_MXFAST, M_NLBLKS, M_GRAIN, M_KEEP): New
12109         macro constants for mallopt options.
12110         (M_TRIM_THRESHOLD, M_TOP_PAD, M_MMAP_THRESHOLD, M_MMAP_MAX): Ditto.
12111
12112 2001-08-02  Jeff Johnston  <jjohnstn@redhat.com>
12113
12114         * libc/include/stdio.h (BUFSIZ): Define to __BUFSIZ__ if provided,
12115         otherwise default.
12116
12117 2001-07-12  Aldy Hernandez  <aldyh@redhat.com>
12118
12119         * libc/machine/mips/setjmp.S: Allow mips16 and mips64 to coexist.
12120
12121 2001-06-27  Nick Clifton  <nickc@cambridge.redhat.com>
12122
12123         * libc/include/machine/ieeefp.h (__IEEE_BYTES_LITTLE_ENDIAN):
12124         Define for little endian ARMs.
12125
12126         * libc/stdlib/mprec.h (Storeinc): Use little endian version if
12127         __IEEE_BYTES_LITTLE_ENDIAN is defined.
12128
12129 2001-06-11  Danny Smith  <dannysmith@users.sourceforge.net>
12130
12131         * /libc/include/ctype.h (is* and to* macros): Do not define if C++.
12132
12133 2001-06-11  Egor Duda  <deo@logos-m.ru>
12134
12135         * libc/ctype/ctype_.c: When compiled with gcc on platforms
12136         with signed char, make _ctype_[-128] ... _ctype[-1] refer to
12137         initialized memory region. Platform can define COMPACT_CTYPE
12138         to avoid allocation of the additional 128 bytes of data.
12139         Add pointer to _ctype_ array. Always initialize all _ctype_
12140         array elements.
12141
12142 2001-06-08  Jonathan Larmour  <jlarmour@redhat.com>
12143
12144         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Avoid dereferencing
12145         NULL pointer.
12146
12147 2001-05-28  Nick Clifton  <nickc@cambridge.redhat.com>
12148
12149         * libc/stdio/vfprintf.c (_VFPRINTF_R): Handle printf ("%#.0o",0)
12150
12151 2001-05-25  Nick Clifton  <nickc@cambridge.redhat.com>
12152
12153         * libc/machine/xscale/memcmp.c: Fix bug when both pointers have
12154         matching, non-word alignment, and the length is <= 4 but more than
12155         enough to move them over a word boundary.
12156         Add comments explaining what each instruction does.
12157
12158 Mon May  7 20:39:25 2001  Christopher Faylor <cgf@cygnus.com>
12159
12160         * libc/include/sys/stat.h: Revert March 3, Cygwin change.
12161         * libc/include/sys/unistd.h: Ditto.
12162
12163 2001-05-04  Earnie Boyd  <earnie@users.sourceforge.net>
12164
12165         * libc/string/strrchr.c: Use strchr for the speed improvements.
12166
12167 2001-05-01  Jeff Johnston  <jjohnstn@redhat.com>
12168
12169         * libc/stdio/findfp (__sinit)[HAVE_FCNTL]: For platforms that have
12170         real file systems, let __smakebuf() determine if line buffering
12171         should be used for stdout.
12172
12173 2001-04-27  Jeff Johnston  <jjohnstn@redhat.com>
12174
12175         * libc/stdio/vfscanf.c (__svfscanf_r): Initialize new_exp local var.
12176
12177 2001-04-27  Jeff Johnston  <jjohnstn@redhat.com>
12178
12179         * libc/include/stdlib.h: Add prototype for _strtod_r.
12180
12181 2001-04-24  Charles Wilson  <cwilson@ece.gatech.edu
12182
12183         * libc/stdio/vprintf.c (vprintf): fix signature to use _DEFUN
12184         * libc/stdio/vprintf.c (_vprintf_r): new function
12185         * libc/stdio/vsnprintf.c (vsnprintf): fix signature to use _DEFUN
12186         * libc/stdio/vsnprintf.c (_vsnprintf_r): fix signature to use
12187         _DEFUN, and call _vfprintf_r, not vfprintf.
12188         * libc/stdio/vsprintf.c (vsprintf.c): fix signature to use _DEFUN
12189         * libc/stdio/vsprintf.c (_vsprintf_r): fix signature to use
12190         _DEFUN, and call _vfprintf_r, not vfprintf.
12191
12192 2001-04-22  Earnie Boyd  <earnie@users.sourceforge.net>
12193
12194         * libc/include/sys/unistd.h [X_OK]: Use better protection against
12195         Cygwin X_OK definitions in sys/file.h.
12196
12197 Fri Apr 20 23:17:51 2001  Christopher Faylor <cgf@cygnus.com>
12198
12199         * libc/include/sys/time.h: Define timercmp and other macros for
12200         __CYGWIN__, too.
12201
12202 2001-04-20  Jeff Johnston  <jjohnstn@redhat.com>
12203
12204         * acinclude.m4: Added --enable-malloc-debugging configure flag.
12205         * configure.host: For Cygwin specify -DMALLOC_PROVIDED if
12206         --enable-malloc-debugging selected.
12207         * aclocal.m4 configure: Regenerated.
12208           libm/aclocal.m4 libm/configure: Ditto.
12209         * libc/aclocal.m4 libc/configure: Ditto.
12210         * libc/machine/aclocal.m4 libc/machine/configure: Ditto.
12211         * libc/machine/*/aclocal.m4 libc/machine/*/configure: Ditto.
12212         * libc/sys/aclocal.m4 libc/sys/configure: Ditto.
12213         * libc/sys/*/aclocal.m4 libc/sys/*/configure: Ditto.
12214         * doc/aclocal.m4 doc/configure: Ditto.
12215
12216 2001-04-20  Jeff Johnston  <jjohnstn@redhat.com>
12217
12218         * libc/include/stdio.h[!_REENT_ONLY]: Moved various functions together
12219         into one list.
12220         [!__STRICT_ANSI__]: Moved non-ANSI I/O functions in this list.
12221         (vfscanf, vscanf, vsscanf, _vfscanf_r, _vscanf_r, _vsscanf_r): New
12222         function prototypes.
12223         (_fscanf_r, _sscanf_r): Ditto.
12224         * libc/include/stdlib.h: Added _strtod_r prototype.
12225         * libc/stdio/Makefile.am: Add new v*scanf functions.
12226         * libc/stdio/Makefile.in: Regenerate.
12227         * libc/stdio/fscanf.c: Reorganized so HAVE_STDC only affects prototype
12228         and code is shared.  Added reentrant _fscanf_r which calls __svfscanf_r.
12229         * libc/stdio/scanf.c: Changed to call __svfscanf_r.
12230         * libc/stdio/sscanf.c: Changed documentation to add reentrant routines.
12231         (sscanf): Changed to call __svfscanf_r with _REENT argument.
12232         (_sscanf_r): New routine.
12233         * libc/stdio/local.h: Removed __svfscanf prototype and replaced it
12234         with __svfscanf_r prototype.
12235         * libc/stdio/vfscanf.c (vfscanf, _vfscanf_r: New
12236         routines.
12237         (__svfscanf_r): Reentrant version of __svfscanf which takes reetrancy
12238         structure as argument as calls reentrant versions of helper functions
12239         (e.g. _strtol_r, _strtoul_r). Also replaced calls to atol and atof
12240         to _strtol_r and _strtod_r respectively.
12241         * libc/stdio/vfscanf.c: Also changed __svfscanf to call __svfscanf_r.
12242         * libc/stdlib/strtod.c (strtod): Changed to call _strtod_r with
12243         _REENT argument.
12244         * libc/stdio/vscanf.c: New file.
12245         * libc/stdio/vsscanf.c: Ditto.
12246
12247 2001-04-19  Robert Collins  <rbtcollins@hotmail.com>
12248
12249         * include/time.h[__CYGWIN__]:  Define tzname to _tzname if not defined.
12250         Define daylight to _daylight if it is not defined
12251         Prepare a variable export of timezone based on timezonevariable.
12252         (Cannot be used with the timezone() function.)
12253
12254 2001-04-17  Stephen L. Moshier  <moshier@moshier.ne.mediaone.net>
12255
12256         * newlib/libm/math/ef_asin.c (pio2_hi, pio2_lo, pio4_hi):
12257          Correct the numerical values.
12258
12259 2001-04-13  Robert Collins <rbtcollins@hotmail.com>
12260
12261         * libc/include/sys/unistd.h: Add pthread_atfork (Cygwin only).
12262
12263 Thu Apr 12 23:11:00 2001  Corinna Vinschen <corinna@vinschen.de>
12264
12265         * libc/include/sys/errno.h: Add ECASECLASH to indicate case clash
12266         on case insensitve file systems.
12267
12268 2001-04-12  Robert Collins <rbtcollins@hotmail.com>
12269
12270         * libc/include/sys/features.h: Add appropriate defines for Cygwin
12271         pthread support.
12272         * libc/include/sys/signal.h: Remove unneeded __CYGWIN__ protection.
12273         * libc/include/sys/types.h: Protect __CYGWIN__ from the rtems pthreads
12274         types.  Include <cygwin/types.h> for the cygwin specific typedefs.
12275
12276 2001-04-04  Richard Sandiford  <rsandifo@redhat.com>
12277
12278         * libc/include/machine/ieeefp.h: Comment about new configuration
12279         macros _FLT_LARGEST_EXPONENT_IS_NORMAL and _FLT_NO_DENORMALS.
12280         * libm/common/fdlib.h: Define new macros for testing floats.
12281         * libm/common/sf_*: Use them.
12282         * libm/math/ef_*: Likewise.
12283         * libm/math/sf_*: Likewise.
12284
12285 2001-03-29  Jeff Johnston  <jjohnstn@redhat.com>
12286
12287         * libc/sys/arm/setjmp.S: Added .code 16 specifier for thumb-mode
12288         prolog to by-pass possible assembler error.
12289
12290 2001-03-21  Egor Duda  <deo@logos-m.ru>
12291
12292         Allow building internal stubs for non-reentrant syscalls
12293         if target provides its own malloc
12294         * libc/reent/reent.c (errno): Move definition here.
12295         * libc/reent/sbrkr.c: From here.
12296
12297 2001-03-20  Danny Smith <dannysmith@users.sourceforge.net>
12298
12299         * libc/include/sys/types.h (BSD int typedefs): Guard with
12300         _BSDTYPES_DEFINED rather than _WINSOCK_H.
12301         (fd_set): Add !defined __USE_W32_SOCKETS to guard; define
12302         _SYS_TYPES_FD_SET.
12303         * libc/include/sys/unistd.h (gethostname): Don't declare if defined
12304         (_WINSOCK_H) || defined (__USE_W32_SOCKETS).
12305
12306 Sat Mar 17 18:30:00 2001  Corinna Vinschen <corinna@vinschen.de>
12307
12308         * libc/include/sys/unistd.h: Add _PC_POSIX_PERMISSONS and
12309         _PC_POSIX_SECURITY constants for Cygwin.
12310
12311 Wed Mar 14  9:34:00 2001  Corinna Vinschen <corinna@vinschen.de>
12312
12313         * libc/sys/cygwin/crt0.c: Add copyright hint.
12314         * libc/sys/cygwin/sys/dirent.h: Ditto.
12315         * libc/sys/cygwin/sys/param.h: Ditto.
12316         * libc/sys/cygwin/sys/utime.h: Ditto.
12317         * libc/sys/cygwin/sys/utmp.h: Ditto.
12318
12319 2001-03-13  Alexandre Oliva  <aoliva@redhat.com>
12320
12321         * libc/stdio/vfprintf.c (QUADINT) [_NO_LONGLONG]: Make it
12322         equivalent to LONGINT.
12323
12324 2001-03-08  Richard Sandiford  <rsandifo@redhat.com>
12325
12326         * (libc/include/machine/setjmp.h): Use 23 long long ints for a
12327         jmpbuf on MIPS64 targets.
12328         * (libc/machine/mips/setjmp.S): Add MIPS64 version.
12329
12330 Wed Mar  7 16:02:07 2001  Christopher Faylor <cgf@cygnus.com>
12331
12332         * libc/include/sys/config.h: Use ssize_t for Cygwin read/write
12333           declarations.
12334
12335 Mon Mar  5 21:48:54 2001  J"orn Rennecke <amylaar@redhat.com>
12336
12337         * libc/include/sys/config.h (_READ_WRITE_RETURN_TYPE): Define.
12338         For RTEMS, define to be ssize_t.  Default to int if not defined.
12339         * libc/stdio/sscanf.c (eofread): Return _READ_WRITE_RETURN_TYPE.
12340         * libc/stdio/stdio.c (__sread, __swrite): Likewise.
12341         * libc/stdio/local.h (__sread, __swrite): Likewise.
12342         * libc/include/sys/reent.h (_read, _write): Likewise.
12343         * libc/include/sys/unistd.h (read, write, _read, _write): Likewise.
12344         * libc/syscalls/sysread.c (read): Likewise.
12345         * libc/syscalls/syswrite.c (write): Likewise.
12346
12347 2001-03-05  Jeff Johnston  <jjohnstn@redhat.com>
12348
12349         * libc/time/mktime.c: Add L suffix to _SEC_IN_xxxx constants.
12350
12351 Sat Mar  3 00:34:14 2001  Christopher Faylor <cgf@cygnus.com>
12352
12353         * libc/include/sys/stat.h: Use special defines for executable stat bits
12354         when compiling for Cygwin.
12355         * libc/include/sys/unistd.h: Use special define for X_OK when compiling
12356         for Cygwin.
12357
12358 2001-03-02  Jeff Johnston  <jjohnstn@redhat.com>
12359
12360         * libc/string/strtok.c: Add #undef of __STRICT_ANSI__ so prototype
12361         of strtok_r is always defined.
12362
12363 2001-03-02  Jeff Johnston  <jjohnstn@redhat.com>
12364
12365         * libc/include/machine/ansi.h: New dummy header file.
12366
12367 2001-02-22  Jeff Johnston  <jjohnstn@redhat.com>
12368
12369         * libc/include/machine/setjmp-dj.h: With DJ Delorie's permission,
12370         changed the copyright information to allow free modification of the
12371         file with no reference to "copying.dj".
12372         * libc/include/sys/stat-dj.h: Ditto.
12373         * libc/machine/i386/setjmp.S: Ditto.
12374         * libc/sys/h8300hms/sys/file.h: Ditto.
12375         * libc/sys/sysmec/access.c: Ditto.
12376         * libc/sys/sysnecv850/access.c: Ditto.
12377         * libc/stdio/mktemp.c: Fixed typo for the word copyright.
12378         * libc/stdlib/getenv_r.c: Ditto.
12379         * libc/stdlib/putenv_r.c: Ditto.
12380         * libc/stdlib/setenv_r.c: Ditto.
12381         * libc/stdlib/getenv.c: Removed DJ reference since any possible
12382         modifications will now be in the _r version of this file.
12383         * libc/stdlib/putenv.c: Ditto.
12384         * libc/stdlib/setenv.c: Ditto.
12385         * libc/sys/go32/copying.dj: Removed DJ's address which is no longer
12386         valid.  Added a reference to DJ's web page that contains his address.
12387         * libc/sys/go32/*.s: Removed references to DJ's old address.
12388         * libc/sys/go32/*.c: Ditto.
12389         * libc/sys/go32/*.h: Ditto.
12390         * libc/sys/go32/*.S: Ditto.
12391         * libc/sys/go32/sys/*.h: Ditto.
12392
12393 2001-02-21  Jeff Johnston  <jjohnstn@redhat.com>
12394
12395         * libc/stdio/fdopen.c (fdopen): Protect calls to _fcntl() with
12396         HAVE_FCNTL flag check.
12397         * configure.host: Define HAVE_FCNTL for Cygwin, go32, RTEMS, sparc64,
12398         powerpcle, x86 netware, x86 sco, x86 Linux and Vxworks.
12399
12400 Thu Feb 15 01:39:51 2001  Christopher Faylor <cgf@cygnus.com>
12401
12402         * libc/include/sys/signal.h: Always include sys/types.h under Cygwin.
12403
12404 2001-02-14  Kazuhiro Fujieda  <fujieda@jaist.ac.jp>
12405
12406         * libc/include/stdlib.h: Add declarations of rand48 functions and
12407         their reentrant versions.
12408         * libc/include/sys/reent.h: Move macros from rand48.h. Add
12409         struct _rand48 for shared parameters of rand48 functions.
12410         (struct _reent): Add a variable _r48 of struct _rand48.
12411         (_REENT_INIT): Add _r48 initialization.
12412         * libc/stdlib/Makefile.am (lib_a_SOURCES): Add rand48 functions.
12413         (CHEWOUT_FILES): Add rand48.def.
12414         * libc/stdlib/Makefile.am: Add dependencies for rand48 functions.
12415         * libc/stdlib/Makefile.in: Regenerated.
12416         * libc/stdlib/drand48.c (drand48, _drand48_r): Derived from the
12417         NetBSD C library.
12418         * libc/stdlib/erand48.c (erand48, _erand48_r): Ditto.
12419         * libc/stdlib/jrand48.c (jrand48, _jrand48_r): Ditto.
12420         * libc/stdlib/lcong48.c (lcong48, _lcong48_r): Ditto.
12421         * libc/stdlib/lrand48.c (lrand48, _lrand48_r): Ditto.
12422         * libc/stdlib/mrand48.c (mrand48, _mrand48_r): Ditto.
12423         * libc/stdlib/nrand48.c (nrand48, _nrand48_r): Ditto.
12424         * libc/stdlib/seed48.c (seed48, _seed48_r): Ditto.
12425         * libc/stdlib/srand48.c (srand48, _srand48_r): Ditto.
12426         * libc/stdlib/rand48.c (__dorand48): Ditto.
12427         * libc/stdlib/rand48.h: Ditto, and modify declarations of global
12428         parameters into macros referring them in the reentrant structure.
12429
12430 2001-02-12  Jeff Johnston  <jjohnstn@redhat.com>
12431
12432         * libc/include/sys/stat.h: Add mknod for Cygwin now that
12433         Cygwin definition has correct prototype.
12434
12435 2001-02-08  Jeff Johnston  <jjohnstn@redhat.com>
12436
12437         * libc/include/sys/stat.h: Must revert change for mknod
12438         for CYGWIN until winsup/cygwin/syscalls.cc changes mknod
12439         prototype.
12440
12441 2001-02-08  Jeff Johnston  <jjohnstn@redhat.com>
12442
12443         * libc/include/stdio.h: Revert putw prototype.
12444
12445 2001-02-08  Edward M. Lee  <tailbert@yahoo.com>
12446
12447         * libc/include/grp.h: add prototype for initgroups.
12448         * libc/include/stdio.h: fix prototype for putw.
12449         * libc/include/sys/signal.h: add prototype for killpg.
12450         * libc/include/sys/stat.h: enable mknod/lstat for CYGWIN.
12451         * libc/include/sys/unistd.h: add prototypes for getpgid, setpgrp,
12452         vhangup and remove duplicate sysconf prototype.
12453
12454 2001-02-07  Jeff Johnston  <jjohnstn@redhat.com>
12455
12456         * libc/sys/rtems/sys/types.h: Removed.
12457
12458 2001-02-05  Charles Wilson  <cwilson@ece.gatech.edu>
12459
12460         * libc/include/locale.h: add LC_MESSAGES definition
12461
12462 2001-02-01  Alexandre Oliva  <aoliva@redhat.com>
12463
12464         * libc/sys/sh/sys/syscall.h (SYS_get_argc, SYS_get_argN_len,
12465         SYS_get_argN):
12466         * libc/sys/sh/syscalls.c (__setup_argv_for_main,
12467         __setup_argv_and_call_main): New.
12468
12469 2001-01-31  Jeff Johnston  <jjohnstn@redhat.com>
12470
12471         * libc/include/stdio.h (FILENAME_MAX): Changed to use __FILENAME_MAX__
12472         if defined.
12473         (FOPEN_MAX): Changed to use __FOPEN_MAX__ if defined.
12474         (L_tmpnam): Changed to use __L_tmpnam__ if defined.
12475         * libc/include/sys/config.h: Changed to set __FILENAME_MAX__
12476         appropriately for Cygwin and RTEMS so not to exceed PATH_MAX.
12477
12478 Mon Jan 29 23:03:06 2001  Christopher Faylor <cgf@cygnus.com>
12479
12480         * libc/stdlib/mallocr.c: Undefine windows preprocessor variables when
12481         compiling under Cygwin.
12482
12483 2001-01-29  Jeff Johnston  <jjohnstn@redhat.com>
12484
12485         * libc/include/math.h (signgam): Change to errno-like solution
12486         using a function to return the address of the real signgam.
12487         * libc/reent/signgam.c: New file containing __signgam().
12488         * libc/reent/Makefile.am: Added signgam.c to list of files.
12489         * libc/reent/Makefile.in: Regenerated.
12490
12491 2001-01-25  Alexandre Oliva  <aoliva@redhat.com>
12492
12493         * libc/sys/sh/syscalls.c (_times): New.
12494
12495         * configure.host (sh*-*-*): Add -DHAVE_GETTIMEOFDAY to newlib_cflags.
12496         * libc/sys/sh/syscalls.c (_gettimeofday): New.
12497
12498 2001-01-23  Jeff Johnston  <jjohnstn@redhat.com>
12499
12500         * libc/include/math.h (signgam): Regress previous fix as
12501         it does not handle programs with extern int signgam in them.
12502
12503 2001-01-23  Jeff Johnston  <jjohnstn@redhat.com>
12504
12505         * libc/include/math.h (signgam): Changed to a macro refering to
12506         its location in the reentrant structure.
12507
12508 2001-01-23  Jeff Johnston  <jjohnstn@redhat.com>
12509
12510         * libc/stdio/vfprintf.c (_VFPRINTF_R): Modification to fix
12511         that suppressed . for %.0f, 0.1.  Check now looks if there
12512         are padding zeroes (expt) in addition to any digits (ndig) to
12513         print.
12514
12515 2001-01-18  Jeff Johnston  <jjohnstn@redhat.com>
12516
12517         * libc/sys/arc/Makefile.am: New file.
12518         * libc/sys/arc/Makefile.in: Ditto.
12519         * libc/sys/arc/aclocal.m4: Ditto.
12520         * libc/sys/arc/configure: Ditto.
12521         * libc/sys/arc/configure.in: Ditto.
12522         * libc/sys/arc/crt0.S: Ditto.
12523         * libc/sys/arc/isatty.c: Ditto.
12524         * libc/sys/arc/mem-layout.c: Ditto.
12525         * libc/sys/arc/sbrk.c: Ditto.
12526         * libc/sys/arc/syscalls.c: Ditto.
12527         * libc/sys/arc/sys/syscall.h: Ditto.
12528
12529 Wed Jan 17 23:20:56 2001  Christopher Faylor <cgf@cygnus.com>
12530
12531         * libc/include/sys/unistd.h: Use correct declaration for setdtablesize.
12532
12533 Fri Jan 12 00:34:31 2001  Christopher Faylor <cgf@cygnus.com>
12534
12535         * libc/include/sys/signal.h: Add some SA_* defines for Cygwin.
12536
12537 Thu Jan 11 20:42:06  2001  Earnie Boyd  <earnie_boyd@yahoo.com>
12538
12539         * libc/include/sys/features.h: __CYGWIN__ preferred over __CYGWIN32__
12540
12541 2001-01-09  Nick Clifton  <nickc@redhat.com>
12542
12543         * configure.host (v859): Remove unsupported compiler options.
12544
12545 Fri Jan  5 19:57:00 EST 2001  Aaron J. Grier  <aaron@frye.com>
12546
12547         * src/newlib/configure.host (*-*-rtems*): add printf long long
12548         support for RTEMS.
12549
12550 2000-12-19  Graham Stott <grahams@redhat.com>
12551
12552         * libc/machine/xscale/memcmp.c (memcmp): Add clobber for "lr".
12553
12554 Wed Dec 14  Jeff Johnston  <jjohnstn@redhat.com>
12555
12556         * configure.host: Turn on long double I/O for Cygwin.
12557
12558 Wed Dec 14  Jeff Johnston  <jjohnstn@redhat.com>
12559
12560         * MAINTAINERS: Removed Ranjith.
12561         * NEWS: Updated for 1.9.0.
12562         * README: Updated.
12563         * acinclude.m4: Updated to release 1.9.0.
12564         * aclocal.m4 configure
12565           doc/aclocal.m4 doc/configure libc/aclocal.m4 libc/configure
12566           libc/machine/aclocal.m4 libc/machine/configure
12567           libc/machine/a29k/aclocal.m4 libc/machine/a29k/configure
12568           libc/machine/arm/aclocal.m4 libc/machine/arm/configure
12569           libc/machine/d10v/aclocal.m4 libc/machine/d10v/configure
12570           libc/machine/d30v/aclocal.m4 libc/machine/d30v/configure
12571           libc/machine/fr30/aclocal.m4 libc/machine/fr30/configure
12572           libc/machine/h8300/aclocal.m4 libc/machine/h8300/configure
12573           libc/machine/h8500/aclocal.m4 libc/machine/h8500/configure
12574           libc/machine/hppa/aclocal.m4 libc/machine/hppa/configure
12575           libc/machine/i386/aclocal.m4 libc/machine/i386/configure
12576           libc/machine/i960/aclocal.m4 libc/machine/i960/configure
12577           libc/machine/m32r/aclocal.m4 libc/machine/m32r/configure
12578           libc/machine/m68k/aclocal.m4 libc/machine/m68k/configure
12579           libc/machine/m88k/aclocal.m4 libc/machine/m88k/configure
12580           libc/machine/mips/aclocal.m4 libc/machine/mips/configure
12581           libc/machine/mn10200/aclocal.m4 libc/machine/mn10200/configure
12582           libc/machine/mn10300/aclocal.m4 libc/machine/mn10300/configure
12583           libc/machine/necv70/aclocal.m4 libc/machine/necv70/configure
12584           libc/machine/powerpc/aclocal.m4 libc/machine/powerpc/configure
12585           libc/machine/sh/aclocal.m4 libc/machine/sh/configure
12586           libc/machine/sparc/aclocal.m4 libc/machine/sparc/configure
12587           libc/machine/tic80/aclocal.m4 libc/machine/tic80/configure
12588           libc/machine/v850/aclocal.m4 libc/machine/v850/configure
12589           libc/machine/w65/aclocal.m4 libc/machine/w65/configure
12590           libc/machine/xscale/aclocal.m4 libc/machine/xscale/configure
12591           libc/machine/z8k/aclocal.m4 libc/machine/z8k/configure
12592           libc/sys/aclocal.m4 libc/sys/configure
12593           libc/sys/a29khif/aclocal.m4 libc/sys/a29khif/configure
12594           libc/sys/arm/aclocal.m4 libc/sys/arm/configure
12595           libc/sys/cygwin/aclocal.m4 libc/sys/cygwin/configure
12596           libc/sys/d10v/aclocal.m4 libc/sys/d10v/configure
12597           libc/sys/decstation/aclocal.m4 libc/sys/decstation/configure
12598           libc/sys/go32/aclocal.m4 libc/sys/go32/configure
12599           libc/sys/h8300hms/aclocal.m4 libc/sys/h8300hms/configure
12600           libc/sys/h8500hms/aclocal.m4 libc/sys/h8500hms/configure
12601           libc/sys/linux/aclocal.m4 libc/sys/linux/configure
12602           libc/sys/m88kbug/aclocal.m4 libc/sys/m88kbug/configure
12603           libc/sys/netware/aclocal.m4 libc/sys/netware/configure
12604           libc/sys/rtems/aclocal.m4 libc/sys/rtems/configure
12605           libc/sys/sh/aclocal.m4 libc/sys/sh/configure
12606           libc/sys/sparc64/aclocal.m4 libc/sys/sparc64/configure
12607           libc/sys/sun4/aclocal.m4 libc/sys/sun4/configure
12608           libc/sys/sysmec/aclocal.m4 libc/sys/sysmec/configure
12609           libc/sys/sysnec810/aclocal.m4 libc/sys/sysnec810/configure
12610           libc/sys/sysnecv850/aclocal.m4 libc/sys/sysnecv850/configure
12611           libc/sys/sysvi386/aclocal.m4 libc/sys/sysvi386/configure
12612           libc/sys/sysvnecv70/aclocal.m4 libc/sys/sysvnecv70/configure
12613           libc/sys/tic80/aclocal.m4 libc/sys/tic80/configure
12614           libc/sys/w65/aclocal.m4 libc/sys/w65/configure
12615           libc/sys/z8ksim/aclocal.m4 libc/sys/z8ksim/configure
12616           libm/aclocal.m4 libm/configure: Regenerated.
12617
12618 Wed Dec 13 11:52:00 2000  Corinna Vinschen <vinschen@cygnus.com>
12619
12620         * libc/include/sys/unistd.h: Add declarations for `chroot' and `getwd'
12621         when __CYGWIN__ is defined.
12622
12623 2000-12-13  Jeff Johnston  <jjohnstn@redhat.com>
12624
12625         * libc/stdlib/ldtoa.c (_ldcheck): New routine
12626         that categorizes a long double as NaN, Infinity, or other.
12627         * libc/stdio/vfprintf.c [WANT_IO_LONG_DBL](_VFPRINTF_R): Removed
12628         isinfl and isnanl static routines which were i386-specific.  Changed
12629         calls to the two removed routines to a single _ldcheck call.
12630         * libc/stdio/vfieeefp.h (ldieee): Fixed missing semi-colons.
12631
12632 2000-12-13  Jeff Johnston  <jjohnstn@redhat.com>
12633
12634         * Makefile.am: Fixed install-data-local target to use
12635         $(mkinstalldirs) for the installed header files to ensure
12636         the directories exist before copying.
12637         * Makefile.in: Regenerated.
12638
12639 2000-12-12  Jeff Johnston  <jjohnstn@redhat.com>
12640
12641         * libc/include/sys/unistd.h: Restored Cygwin _SC
12642         constants and moved new constants appropriately
12643         so Cygwin will build.
12644
12645 2000-12-11  Joel Sherrill <joel@OARcorp.com>
12646
12647         * Merge RTEMS specific .h files into main libc/include.
12648         * libc/sys/rtems/include/signal.h: Removed.
12649         * libc/sys/rtems/include/time.h: Removed.
12650         * libc/sys/rtems/sys/features.h: Removed.
12651         * libc/sys/rtems/sys/sched.h: Removed.
12652         * libc/sys/rtems/sys/siginfo.h: Removed.
12653         * libc/sys/rtems/sys/signal.h: Removed.
12654         * libc/sys/rtems/sys/time.h: Removed.
12655         * libc/sys/rtems/sys/times.h: Removed.
12656         definitions for time_t and clock_t since these are
12657         no longer in time.h.
12658         * libc/include/pthread.h: New file.
12659         * libc/include/sys/sched.h: New file.
12660         * libc/include/sys/features.h: New file.
12661         * libc/include/time.h: Removed duplicate definition of clock_t
12662         and time_t, get them from <sys/types.h> instead.  Add prototypes
12663         for POSIX clock and timer functionality.
12664         * libc/sys/linux/sys/types.h: Changed to include
12665         * libc/include/machine/types.h: Add _CLOCKID_T_ and _TIMER_T_.
12666         * libc/include/sys/signal.h: Add more complete set of POSIX
12667         signal functionality including real-time and threaded signals.
12668         * libc/include/sys/types.h: Add clock_t, time_t, struct
12669         timespec, and struct itimerspec.  Centralizing these makes
12670         things cleaner.  RTEMS uses 64-bit dev_t.
12671         Added numerous primitive definitions
12672         for pthreads including macros, pthread_attr_t,
12673         pthread_mutexattr_t, pthread_condattr_t, pthread_key_t,
12674         pthread_once_t, and pthread_t.
12675         * libc/include/sys/unistd.h: Added getlogin_r() prototype.
12676         If RTEMS follow POSIX on read(), write() and sbrk() prototype.
12677         Feature flags removed and moved to new file <sys/features.h>.
12678         Full set of POSIX sysconf() constants
12679
12680 2000-12-08  Werner Almesberger  <Werner.Almesberger@epfl.ch>
12681
12682         * configure.host: Added x86 linux target.
12683         * libc/unix/getpass.c (_PATH_PASSWD, _PASSWORD_LEN): Default
12684         definitions provided if not already defined.
12685         * libc/sys/linux/crt0.c: New file.
12686         * libc/sys/linux/Makefile.am: Ditto.
12687         * libc/sys/linux/Makefile.in: Ditto.
12688         * libc/sys/linux/aclocal.m4: Ditto.
12689         * libc/sys/linux/brk.c: Ditto.
12690         * libc/sys/linux/configure: Ditto.
12691         * libc/sys/linux/configure.in: Ditto.
12692         * libc/sys/linux/getoptlong.c: Ditto.
12693         * libc/sys/linux/ids.c: Ditto.
12694         * libc/sys/linux/inode.c: Ditto.
12695         * libc/sys/linux/io.c: Ditto.
12696         * libc/sys/linux/linux.c: Ditto.
12697         * libc/sys/linux/process.c: Ditto.
12698         * libc/sys/linux/realpath.c: Ditto.
12699         * libc/sys/linux/select.c: Ditto.
12700         * libc/sys/linux/signal.c: Ditto.
12701         * libc/sys/linux/systat.c: Ditto.
12702         * libc/sys/linux/termios.c: Ditto.
12703         * libc/sys/linux/time.c: Ditto.
12704         * libc/sys/linux/wait.c: Ditto.
12705         * libc/sys/linux/include/alloca.h: Ditto.
12706         * libc/sys/linux/include/getopt.h: Ditto.
12707         * libc/sys/linux/include/stdint.h: Ditto.
12708         * libc/sys/linux/include/unistd.h: Ditto.
12709         * libc/sys/linux/sys/cdefs.h: Ditto.
12710         * libc/sys/linux/sys/dirent.h: Ditto.
12711         * libc/sys/linux/sys/errno.h: Ditto.
12712         * libc/sys/linux/sys/fcntl.h: Ditto.
12713         * libc/sys/linux/sys/file.h: Ditto.
12714         * libc/sys/linux/sys/ioctl.h: Ditto.
12715         * libc/sys/linux/sys/resource.h: Ditto.
12716         * libc/sys/linux/sys/signal.h: Ditto.
12717         * libc/sys/linux/sys/stat.h: Ditto.
12718         * libc/sys/linux/sys/syscall.h: Ditto.
12719         * libc/sys/linux/sys/termios.h: Ditto.
12720         * libc/sys/linux/sys/time.h: Ditto.
12721         * libc/sys/linux/sys/types.h: Ditto.
12722         * libc/sys/linux/sys/utmp.h: Ditto.
12723         * libc/sys/linux/sys/utsname.h: Ditto.
12724         * libc/sys/linux/sys/wait.h: Ditto.
12725
12726 2000-12-08  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
12727
12728         * Makefile.am: $(INSTALL), $(INSTALL_DATA), and $(INSTALL_PROGRAM)
12729         can be a relative path to $(top_srcdir)/install.sh so ensure the
12730         autoconf detected settings are properly passed recursively.
12731         Similarly, add AM_MAKEFLAGS to FLAGS_TO_PASS so they also get passed
12732         properly to subdirectories.
12733         * Makefile.in: Regenerated.
12734
12735 2000-12-07  Jay Kulpinski <jskulpin@eng01.gdds.com>
12736
12737         * libc/stdio/vfprintf.c: Minor modification to avoid requiring
12738         a floating point register unless really printing a floating
12739         point number.
12740
12741 2000-12-07  Jeff Johnston  <jjohnstn@redhat.com>
12742
12743         * libc/stdlib/ldtoa.c: Removed include of alloca.h.
12744         Also removed \r's.
12745         (asctoeg): Replaced alloca call with stack array and malloc
12746         when storage exceeds reasonable limit.
12747         (e53toe): Fixed einfin calls missing ldp parameter.
12748         (eiisinf): Hide behind check for LDBL_MANT_DIG == 64.
12749
12750 2000-12-06  Jeff Johnston  <jjohnstn@redhat.com>
12751
12752
12753         * libc/stdio/vfscanf.c: Fix typo for _NO_LONGDBL macro.
12754
12755 2000-12-06  Jeff Johnston  <jjohnstn@redhat.com>
12756
12757         * libc/stdlib/Makefile.am: Added ldtoa.c to list of sources.
12758         * libc/stdlib/Makefile.in: Regenerated.
12759         * libc/stdio/floatio.h: Added suitable MAXEXP for long double.
12760         * libc/stdio/vfieeefp.h: Added long double bit structures.
12761         * libc/stdio/vfprintf.c[WANT_IO_LONG_DBL]: Added long double support.
12762         [WANT_IO_LONG_DBL](isinfl, isnanl): New static long double routines.
12763         (exponent): Changed expbuf to reasonable maximum instead of MAXEXP.
12764         * libc/stdio/vfscanf.c[WANT_IO_LONG_DBL]: Added long double support.
12765         * libc/stdlib/ldtoa.c: New file containing _ldtoa_r and
12766         _strtold routines used for conversions between character
12767         and long double.
12768
12769 Wed Dec  6 12:01:00 2000  Corinna Vinschen <vinschen@cygnus.com>
12770
12771         * libc/include/stdlib.h: Add declarations for `mkstemp' and `mktemp'.
12772
12773 2000-12-04  Joel Sherrill <joel@OARcorp.com>
12774
12775         * libc/include/machine/time.h: RTEMS systems can configure clock
12776         tick rate so use sysconf() to ask.
12777
12778 2000-12-04  Joel Sherrill <joel@OARcorp.com>
12779
12780         * libc/include/sys/times.h: Add reference to POSIX standard.
12781
12782 2000-12-04  Joel Sherrill <joel@OARcorp.com>
12783
12784         * libc/include/sys/time.h: Added BSD timer manipulation macros
12785         used by RTEMS code.
12786
12787 2000-12-04  Joel Sherrill <joel@OARcorp.com>
12788
12789         * libc/sys/rtems/crt0.c: Add stubs for functions implicitly
12790         referenced by code generated by gcc 2.8.1.
12791         (a29k): Add stubs for V_SPILL, V_FILL, V_BSD_OS, V_EPI_OS to
12792         satisfy gcc.
12793
12794 2000-12-04  Joel Sherrill <joel@OARcorp.com>
12795
12796         * libc/stdlib/system.c: Avoid compiling do_system() for RTEMS.
12797
12798 2000-12-04  Joel Sherrill <joel@OARcorp.com>
12799
12800         * libc/include/ieeefp.h: Added entries for OpenCores CPUs.
12801
12802 2000-12-04  Joel Sherrill <joel@OARcorp.com>
12803
12804         * configure.host (or16, or32): New entries for OpenCores
12805         OpenRisc CPUs.
12806         (*-*-rtems*): Add -DNO_EXEC.
12807
12808 2000-12-04  Keith Outwater <vac4050@cae597.rsc.raytheon.com>
12809
12810         * libc/include/sys/errno.h: Added comments on many error numbers.
12811         * libc/string/strerror.c: Added some more strings.
12812
12813 2000-11-30  Jeff Johnston <jjohnstn@redhat.com>
12814
12815         * libc/sys/sh/syscalls.c (_link): New stub.
12816
12817 2000-11-29  Nick Clifton  <nickc@redhat.com>
12818
12819         * configure.host: Add xscale target.
12820         * libc/machine/xscale: New directory.
12821         * libc/machine/xscale/Makefile.am: New file.
12822         * libc/machine/xscale/Makefile.in: New file.
12823         * libc/machine/xscale/aclocal.m4: New file.
12824         * libc/machine/xscale/configure: New file.
12825         * libc/machine/xscale/configure.in: New file.
12826         * libc/machine/xscale/memchr.S: New file.
12827         * libc/machine/xscale/memcmp.S: New file.
12828         * libc/machine/xscale/memcpy.S: New file.
12829         * libc/machine/xscale/memmove.S: New file.
12830         * libc/machine/xscale/memset.S: New file.
12831         * libc/machine/xscale/strchr.S: New file.
12832         * libc/machine/xscale/strcmp.S: New file.
12833         * libc/machine/xscale/strcpy.S: New file.
12834         * libc/machine/xscale/strlen.S: New file.
12835
12836 Sat Nov 25 11:24:00 2000  Corinna Vinschen <vinschen@cygnus.com>
12837
12838         * libc/include/sys/types.h: Change i to `__i' in FD_ZERO macro to
12839         avoid compiler warnings.
12840
12841 2000-11-22  Michael Meissner  <meissner@redhat.com>
12842
12843         * libc/posix/execl.c (execl): Don't reference environ directly,
12844         reference it only via a static pointer to avoid problems with some
12845         shared library systems and with different uses of small data where
12846         the user specifies his own version of environ.
12847         * libc/posix/execv.c (execv): Ditto.
12848         * libc/stdlib/getenv_r.c (_findenv_r): Ditto.
12849         * libc/stdlib/setenv_r.c (_setenv_r,_unsetenv_r): Ditto.
12850         * libc/stdlib/system.c (system, !cygwin32 case): Ditto.
12851
12852         * libc/stdlib/getenv.c (environ): Delete unused reference to
12853         environ.
12854
12855         * libc/stdlib/getenv_r.c: Make initial comment friendlier to emacs
12856         colorization.
12857         * libc/stdlib/system.c: Ditto.
12858
12859 Tue Nov 21 20:32:21 2000  Christopher Faylor <cgf@cygnus.com>
12860
12861         * libc/sys/cygwin/sys/dirent.h: Change definition to avoid necessity of
12862         including windows headers.
12863
12864 2000-11-20  Jeff Johnston  <jjohnstn@redhat.com>
12865
12866         * libc/include/sys/unistd.h: Removed definition of MAXNAMLEN.
12867         * libc/include/dirent.h: Added definition of MAXNAMLEN if
12868         not defined by sys/dirent.h.
12869         * libc/posix/execvp.c: Added include of dirent.h to get
12870         MAXNAMLEN value which used to be in unistd.h.
12871
12872 Mon Nov  6 12:56:00 2000  Corinna Vinschen <vinschen@cygnus.com>
12873
12874         * libc/include/sys/types.h: Change type of i to `size_t' in
12875         FD_ZERO macro to avoid compiler warnings.
12876
12877 Sun Oct 29 20:06:41 2000  Christopher Faylor <cgf@cygnus.com>
12878
12879         * libc/include/stdlib.h: Avoid declaring cfree under Cygwin.
12880         * libc/include/malloc.h: Ditto.  Also remove obsolete declaration.
12881
12882 Tue Oct 24 20:16:00 2000  Corinna Vinschen <vinschen@cygnus.com>
12883
12884         * libc/include/sys/unistd.h: Add defines for sysconf values
12885         _SC_NPROCESSORS_CONF, _SC_NPROCESSORS_ONLN, _SC_PHYS_PAGES and
12886         _SC_AVPHYS_PAGES.
12887
12888 Mon Oct  9 20:26:33 2000  Christopher Faylor <cgf@cygnus.com>
12889
12890         * libc/include/sys/unistd.h: Add getdtablesize and setdtablesize
12891         declarations for __CYGWIN__.
12892
12893 2000-09-19  Geoffrey Keating  <geoffk@cygnus.com>
12894
12895         * libc/signal/signal.c (__sigtramp_r): ISO C requires
12896         case labels to be integral constant expressions, so
12897         use an if/else tree instead.
12898         (_raise_r): Likewise.
12899
12900 2000-09-13  Jeff Johnston  <jjohnstn@redhat.com>
12901
12902         * libc/machine/v850/setjmp.S: Fixed tab problems caused by
12903         clipping patch from e-mail reader.
12904
12905 2000-09-13  Will Cohen  <wcohen@redhat.com>
12906
12907         * libc/machine/v850/setjmp.S (_setjmp): Save r1 rather than r0.
12908         Added return value 0.
12909         (_longjmp): Allow longjmp to return value of second argument
12910         passed to it.
12911
12912 2000-09-06  Jeff Johnston <jjohnstn@redhat.com>
12913
12914         * libc/include/sys/types.h (FD_ZERO): Remove call to bzero and
12915         inline code to prevent having to include another header file.
12916
12917 Wed Sep  6 15:06:40 2000  Christopher Faylor <cgf@cygnus.com>
12918
12919         * Makefile.am: Fix space vs. tab problem in install-data-local.
12920         * Makefile.in: Regenerate.
12921
12922 Wed Sep  6 13:49:51 2000  Christopher Faylor <cgf@cygnus.com>
12923
12924         * libc/include/_ansi.h (_EXFUN): Define specially for __CYGWIN__.
12925         (_EXPARM): New macro for defining a function parameter.
12926         * libc/include/stdlib.h: Use _EXPARM.
12927         * libc/stdlib/mallocr.c: Don't build cfree for Cygwin.
12928
12929 2000-09-05  Manfred Hollstein  <manfredh@redhat.com>
12930
12931         * Makefile.am (install-data-local): Use optional $(DESTDIR) where
12932         required, as documented in the gnu coding standards.
12933         * Makefile.in: Regenerate.
12934
12935 2000-09-05  Jeff Johnston <jjohnstn@redhat.com>
12936
12937         * libc/include/fcntl.h (_FNDELAY): Changed to be _FNONBLOCK to
12938         make O_NDELAY and O_NONBLOCK have the same value.
12939
12940 2000-08-30  Kazu Hirata  <kazu@hxi.com>
12941
12942         * libc/sys/h8300hms/crt0.S: Optimize for both speed and code size.
12943
12944 2000-08-30  Werner Almesberger  <Werner.Almesberger@epfl.ch>
12945
12946         * libc/posix/execve.c: included unistd.h for "_execve" prototype.
12947         * libc/misc/unctrl.c libc/sys/sysvi386/crt0.c (sccsid): changed
12948         "#ifndef lint" to "#if defined(LIBC_SCCS) && !defined(lint)" like
12949         everywhere else.
12950
12951 2000-08-30  Geoffrey Keating  <geoffk@cygnus.com>
12952
12953         * libc/string/swab.c: Specify that it's defined in <unistd.h>.
12954         * libc/include/string.h: Don't include <sys/types.h>,
12955         as it causes really bad namespace pollution.  Don't declare
12956         swab(), it is properly declared in unistd.h.
12957
12958 2000-08-29  Werner Almesberger  <Werner.Almesberger@epfl.ch>
12959
12960         * libc/unix/getpwent.c (getpwnam, getpwuid, getpwent): removed
12961         (broken) support for non-existent /etc/passwd field "comment".
12962
12963 2000-08-27  Werner Almesberger  <Werner.Almesberger@epfl.ch>
12964
12965         * libc/posix/scandir.c (DIRSIZ, scandir): use struct dirent.d_namlen
12966         only if _DIRENT_HAVE_D_NAMLEN is defined.
12967         (alphasort): aligned prototype with
12968         libc/sys/cygwin/sys/dirent.h and simplified function body.
12969         * libc/posix/telldir.c (telldir): changed "telldir" prototype to
12970         long telldir (DIR *) as mentioned in annex B of POSIX.1
12971
12972 2000-08-27  Werner Almesberger  <Werner.Almesberger@epfl.ch>
12973
12974         * libc/machine/i386/i386mach.h: added SOTYPE_FUNCTION to set type
12975         of global entry points if _I386MACH_NEED_SOTYPE_FUNCTION is defined;
12976         Added __CLI and __STI macros (controlled via
12977         _I386MACH_ALLOW_HW_INTERRUPTS macro).
12978         * libc/machine/i386/f_atan2.S libc/machine/i386/f_atan2f.S
12979         libc/machine/i386/f_frexp.S libc/machine/i386/f_frexpf.S
12980         libc/machine/i386/f_ldexp.S libc/machine/i386/f_ldexpf.S
12981         libc/machine/i386/f_log.S libc/machine/i386/f_log10.S
12982         libc/machine/i386/f_log10f.S libc/machine/i386/f_logf.S
12983         libc/machine/i386/f_tan.S libc/machine/i386/f_tanf.S
12984         libc/machine/i386/memchr.S libc/machine/i386/memcmp.S
12985         libc/machine/i386/memcpy.S libc/machine/i386/memmove.S
12986         libc/machine/i386/memset.S libc/machine/i386/setjmp.S
12987         libc/machine/i386/strchr.S libc/machine/i386/strlen.S:
12988         (that's libc/machine/i386/*.S) added SOTYPE_FUNCTION(symbol)
12989         for all global entry points.
12990         * libc/machine/i386/setjmp.S: removed code replicated in
12991         libc/machine/i386/i386mach.h and included i386mach.h instead;
12992         Use __CLI and __STI instead of cli and sti.
12993
12994 2000-08-25  DJ Delorie  <dj@redhat.com>
12995
12996         * libc/include/sys/unistd.h (environ): this one isn't from the
12997         DLL, no __IMPORT
12998
12999 Fri Aug 25 13:37:11 2000  Christopher Faylor <cgf@cygnus.com>
13000
13001         * libc/stdlib/system.c (do_system): Eliminate explicit declaration of
13002         environ when compiling under cygwin since it is already declared in
13003         unistd.h.
13004
13005 2000-08-23  Werner Almesberger  <Werner.Almesberger@epfl.ch>
13006
13007         * libc/stdlib/mprec.c (ulp, b2d, d2b): changed a few expressions
13008         like  x << y-z  to the equivalent  x << (y-z).
13009         (d2b): changed if statements with assignment to perform the
13010         assignment prior to the if check.
13011         * libc/reent/reent.c: included stdlib.h for "_free_r" prototype.
13012         * libc/unix/getpass.c (getpass): moved "echo" assignment out of if.
13013         * libc/unix/ttyname.c: included string.h for "strcpy" prototype.
13014         * libc/unix/getcwd.c (ISDOT): added parentheses to clarify && and ||
13015         precedence.
13016         * libc/include/sys/unistd.h: added "vfork" prototype (for popen.c).
13017         Added "_execve" prototype (for execl.c, execle.c, execv.c, and
13018         execve.c).
13019         * libc/posix/popen.c (popen): added parentheses to clarify && and ||
13020         precedence.
13021         * libm/math/e_cosh.c (__ieee754_cosh): changed parentheses to
13022         clarify && and || precendence (and to remove pascalism).
13023         * libm/math/e_sinh.c (__ieee754_sinh): Ditto.
13024         * libm/math/s_infconst.c: added another pair of braces to all
13025         initializers for __infinity (need three: for __infinity[1] array,
13026         for union __dmath, and for i[2]).
13027
13028 2000-08-23  Werner Almesberger  <Werner.Almesberger@epfl.ch>
13029
13030         * libc/stdlib/abort.c: changed description: uses "raise" instead of
13031         "getpid" and "kill"; added: uses "write" and "_exit".
13032         Also included unistd.h for "_exit" prototype.
13033         * libc/stdlib/system.c: included unistd.h for "execve" prototype,
13034         reent.h for "_fork_r" and "_wait_r" prototypes.
13035         (do_system): changed  extern char *environ[] to POSIX-friendly
13036         extern char **environ.
13037         * libc/stdlib/wctomb_r.c: included string.h for "strlen" and "strcmp"
13038         prototypes.
13039         * libc/stdlib/remove.c: included reent.h for "_unlink_r" prototype.
13040         * libc/reent/execr.c: included sys/wait.h for "wait" prototype.
13041         * libc/reent/fstatr.c: included sys/stat.h for "fstat" prototype.
13042         * libc/reent/openr.c: included fcntl.h for "open" prototype.
13043         * libc/reent/signalr.c: included signal.h for "kill" prototype,
13044         unistd.h for "getpid" prototype.
13045         * libc/reent/statr.c: included sys/stat.h for "stat" prototype.
13046         * libc/reent/timer.c: included sys/time.h for "gettimeofday" prototype.
13047         * libc/unix/getut.c (utmpname): removed local, incorrect "strdup"
13048         prototype.  Also included stdlib.h for "abort", string.h for
13049         "strdup" and "strncmp" prototypes.
13050         * libc/unix/getlogin.c: included string.h for "strncmp", "memset", and
13051         "strncpy", unistd.h for "read" and "close" prototypes.
13052         * libc/posix/execvp.c: included string.h for "strchr", "strlen", and
13053         "strcat" prototypes.
13054
13055 2000-08-23  Werner Almesberger  <Wernen Almesberger@epfl.ch>
13056
13057         * libc/stdio/stdio.c (__swrite): declare "oldmode" only if it's
13058         used later (ifdef __SCLE)
13059         * libc/stdio/vfscanf.c (__svfscanf): declare "state" only if it's
13060         used later (ifdef MB_CAPABLE)
13061         * libc/string/memset.c (memset): removed unused variables "count"
13062         and "unaligned_addr"
13063         * libc/locale/locale.c (_setlocale_r): declare "lc_ctype" and
13064         "last_lc_ctype" only of they're used later (ifdef MB_CAPABLE)
13065         * libc/unix/getpwent.c (getpwnam): removed unused variables "uid"
13066         and "gid"
13067
13068 2000-08-23  Werner Almesberger  <Werner.Almesberger@epfl.ch>
13069
13070         * libc/stdlib/envlock.c: changed documented "__env_lock" and
13071         "__env_unlock" prototype from "void *" or "char *" to
13072         "struct _reent *" to match real function.  Also added include
13073         of envlock.h.
13074         * libc/stdlib/mlock.c: changed documented "__malloc_lock" and
13075         "__malloc_unlock" prototype from "void *" or "char *" to
13076         "struct _reent *" to match real function.
13077         * libc/stdlib/envlock.h: added "__env_lock" and "__env_unlock"
13078         prototypes (for getenv_r.c and setenv_r.c).
13079
13080 2000-08-22  Werner Almesberger  <Werner.Almesberger@epfl.ch>
13081
13082         * libc/unix/getut.c (utmpname): added _CONST to reflect common use
13083         and prototype in cygwin's utmp.h
13084
13085 2000-08-16  Eric Fifer  <efifer@sanwaint.com>
13086
13087         * libc/stdio/vfprintf.c (_vfprintf_r): suppress . with "%.0f", 0.1
13088
13089 2000-08-09  Nick Clifton  <nickc@cygnus.com>
13090
13091         * libc/sys/arm/setjmp.S: Recode to clean up function prologues and
13092         epilogue and to allow the functions to be used in a Thumb based
13093         toolchain.
13094
13095 2000-08-08  Jeff Johnston <jjohnstn@redhat.com>
13096
13097         * libc/stdio/snprintf.c (snprintf, _snprintf_r): Fixed code
13098         so size of 0 results in nothing being written to string.
13099         Also fixed code so that when size is non-zero, there is only
13100         a maximum of size - 1 characters written to the array and
13101         a nul terminator is appended at the end.
13102         * libc/stdio/vsnprintf.c (vsnprintf, _vsnprintf_r): Ditto.
13103
13104 2000-08-01  DJ Delorie  <dj@redhat.com>
13105
13106         * libc/include/sys/config.h: define __IMPORT appropriately
13107         * libc/include/ctype.h (_ctype_): use __IMPORT
13108         * libc/include/math.h (__infinity, signam, _LIB_VERSION): ditto
13109         * libc/include/math.h (__mb_cur_max): ditto
13110         * libc/include/time.h (_timezone, _daylight, _tzname): ditto
13111         * libc/include/unctrl.h (__unctrl, __unctrllen): ditto
13112         * libc/include/errno.h (_sys_errlist, _sys_nerr): ditto
13113         * libc/include/unistd.h (environ): ditto
13114
13115 2000-07-28  Michael Meissner  <meissner@redhat.com>
13116
13117         * libc/include/math.h (__infinity): Declare as an array without
13118         bounds to get around small data support.  Rewrite Cygwin support
13119         to be more general.
13120         * libm/math/s_infconst.c (__infinity): Ditto.
13121         * libm/mathfp/s_infconst.c (__infinity): Ditto.
13122
13123 Thu Jul 27 10:46:01 2000  Christopher Faylor <cgf@cygnus.com>
13124
13125         * libc/include/math.h: Use appropriate dll import linkage for
13126         __infinity under Cygwin.
13127
13128 2000-07-13  DJ Delorie  <dj@cygnus.com>
13129
13130         * libc/stdio/vfprintf.c: pad 0.0 correctly with %e
13131
13132 Wed Jun 28 14:08:00 2000  Keith Walker  <keith.walker@arm.com>
13133
13134         * libc/sys/arm/crt0.S (.LC30): Added missing length parameter
13135         to argument list for AngelSWI_Reason_GetCmdLine.
13136
13137 Tue Jun 27 15:49:00 2000  Marek Michalkiewicz  <marekm@linux.org.pl>
13138
13139         * configure.host: Add support for AVR target.
13140         * libc/include/machine/ieeefp.h: Likewise.
13141         * libc/include/sys/config.h: Likewise.
13142
13143 Thu Jun 22 18:35:00 2000  Ranjith Kumaran  <ranjith@cygnus.com>
13144
13145         * README: Newlib 1.8.2 must be built in a separate directory
13146         than the sources.
13147
13148 Tue Jun 20 14:30:00 2000  Jeff Johnston  <jjohnstn@cygnus.com>
13149
13150         * libc/include/sys/reent.h (_rand_next): Added __extension__
13151         qualifier as long long type is not strict ANSI.
13152         * libc/stdlib/rand.c (rand): Added __extension__ qualifier
13153         to long long constant.
13154
13155 Fri Jun 16 23:02:00 2000  Corinna Vinschen <corinna@vinschen.de>
13156
13157         * libc/include/sys/unistd.h: Add prototypes for `seteuid' and
13158         `setegid' provided by Cygwin.
13159
13160 Thu Jun 15  0:21:00 2000  Corinna Vinschen <corinna@vinschen.de>
13161
13162         * libc/stdio/fdopen.c: Take explicit given bin/textmode into
13163         account for Cygwin.
13164
13165 Fri Jun  9 14:28:00 2000  Jeff Johnston  <jjohnstn@cygnus.com>
13166
13167         * libc/include/sys/reent.h (_rand_next): Changed to
13168         unsigned long long and moved to end of _reent struct in _new union.
13169         (_REENT_INIT): Changed to move _rand_next initialization.
13170         * libc/stdlib/rand.c (rand): Changed to use unsigned long long
13171         linear congruential algorithm that is used by DJGPP.
13172
13173 Thu Jun  8 21:18:00 2000  Ranjith Kumaran  <ranjith@cygnus.com>
13174
13175         * libc/include/stdlib.h: Set RAND_MAX to __RAND_MAX.
13176         * libc/include/sys/config.h: Define __RAND_MAX.
13177
13178 Thu Jun  8 17:54:00 2000  Jeff Johnston  <jjohnstn@cygnus.com>
13179
13180         * libc/stdlib/rand_r.c: New algorithm that meets minimal
13181         standard.
13182
13183 Fri Jun  2 23:02:11 2000  Christopher Faylor <cgf@cygnus.com>
13184
13185         * libc/include/string.h: Work around problem with strsignal and gdb.
13186
13187 Tue May 30 13:13:01 2000  Christopher Faylor <cgf@cygnus.com>
13188
13189         * libc/include/ctype.h: __CYGWIN32__ -> __CYGWIN__
13190         * libc/include/malloc.h: Ditto.
13191         * libc/include/process.h: Ditto.
13192         * libc/include/stdio.h: Ditto.
13193         * libc/include/stdlib.h: Ditto.
13194         * libc/include/time.h: Ditto.
13195         * libc/include/machine/setjmp.h: Ditto.
13196         * libc/include/sys/errno.h: Ditto.
13197         * libc/include/sys/signal.h: Ditto.
13198         * libc/include/sys/stat.h: Ditto.
13199         * libc/include/sys/time.h: Ditto.
13200         * libc/include/sys/unistd.h: Ditto.
13201         * libc/include/string.h: Ditto.  strsignal should return a const char *.
13202
13203 2000-05-26  Marek Michalkiewicz  <marekm@linux.org.pl>
13204
13205         * libm/common/s_expm1.c (expm1): Add curly braces, avoid warnings.
13206         * libm/common/s_log1p.c (log1p): Likewise.
13207         * libm/common/s_scalbn.c (scalbn): Likewise.
13208         * libm/math/e_log.c: Likewise.
13209         * libm/math/e_asin.c: Likewise.
13210         * libm/math/ef_asin.c: Likewise.
13211         * libm/math/e_j0.c (pzero, qzero): Remove redundant test.
13212         * libm/math/e_j1.c (pone, qone): Likewise.
13213         * libm/math/ef_j0.c (pzerof, qzerof): Likewise.
13214         * libm/math/ef_j1.c (ponef, qonef): Likewise.
13215         * libm/mathfp/e_j0.c (pzero, qzero): Likewise.
13216         * libm/mathfp/e_j1.c (pone, qone): Likewise.
13217         * libm/mathfp/ef_j0.c (pzerof, qzerof): Likewise.
13218         * libm/mathfp/ef_j1.c (ponef, qonef): Likewise.
13219
13220 2000-05-19  DJ Delorie  <dj@cygnus.com>
13221
13222         * libc/stdio/stdio.c (__stextmode): new, see if file is text mode
13223         (__sread): always read in binary mode
13224         (__swrite): always write in binary mode
13225         * libc/include/stdio.h: no getc/putc macros for cygwin; causes
13226         compatibility issues with different dll versions
13227         * libc/stdio/fopen.c: use __stextmode
13228         * libc/stdio/fdopen.c: ditto
13229         * libc/stdio/freopen.c: ditto
13230         * libc/stdio/findfp.c: set up __SCLE for std{in,out,err}
13231         * libc/stdio/local.h: declare __stextmode
13232
13233 2000-05-18  DJ Delorie  <dj@cygnus.com>
13234
13235         * libc/stdio/fgets.c (fgets): perform CRLF conversions if __SCLE
13236
13237 Mon May 15 18:54:00 2000  Jeff Johnston  <jjohnstn@cygnus.com>
13238
13239         * libc/include/ctype.h: Changed tolower and toupper macros
13240         to use __extension__ to prevent pedantic warnings.
13241
13242 Mon May 15 14:26:00 2000  Joel Sherrill  <joel@oarcorp.com>
13243
13244         * libc/sys/rtems/sys/time.h: Add macros for manipulating timeval
13245         structures.
13246
13247 Wed May 10 19:24:53 2000  Jim Wilson  <wilson@cygnus.com>
13248
13249         * libc/include/machine/ieeefp.h: Add ia64 support.
13250         * configure.host: Likewise.
13251
13252 Wed May 10 13:52:24 2000  Egor Duda <deo@logos-m.ru>
13253
13254         * libc/time/asctime_r.c (asctime_r): Change output format. Day of
13255         month is now padded with space, not zero.  This now conforms to
13256         ANSI standard.
13257
13258 Wed May 03 17:57:00 2000  Corinna Vinschen <corinna@vinschen.de>
13259
13260         * libc/include/sys/errno.h: Add define for ENOSHARE ("No such
13261         host or network path") used by cygwin. Add some comments.
13262
13263 Tue May 02 23:45:48 2000  DJ Delorie  <dj@cygnus.com>
13264
13265         * libc/include/stdio.h (FILE): define __SCLE for "convert line
13266         endings" for Cygwin.
13267         (__sgetc): convert line endings if needed
13268         (__sputc): ditto
13269         * libc/stdio/fdopen.c (_fdopen_r): Remember if we opened in text mode
13270         * libc/stdio/fopen.c (_fopen_r): ditto
13271         * libc/stdio/freopen.c (freopen): ditto
13272         * libc/stdio/fread.c (fread): perform CRLF conversions if __SCLE
13273         * libc/stdio/fvwrite.c (__sfvwrite): ditto
13274
13275 Thu Apr 27 07:45:48 2000  Alexandre Oliva  <aoliva@cygnus.com>
13276
13277         * libc/machine/mn10300/setjmp.S (setjmp, longjmp): Use
13278         post-increment when it is worth it, spacewise.
13279
13280 Mon Apr 17 12:46:00 2000  Marek Michalkiewicz <marekm@linux.org.pl>
13281
13282         * libc/signal/signal.c (_signal_r) : Removed unused local variable temp.
13283         * libc/stdio/findfp.c (std): Added declaration of flags and file.
13284         * libc/stdio/mktemp.c (_gettemp, _mkstemp_r, mkstemp): Added int
13285         return type.
13286         * libc/stdio/putchar.c (putchar): Added return statement.
13287         * libc/stdio/refill.c (lflush): Added correct parentheses.
13288         * libc/stdio/vfprintf.c (_VFPRINTF_R): Ditto.
13289         * libc/stdio/vfscanf.c (__svfscanf): Changed sprintf call which
13290         prints long value to use l qualifier.
13291         * libc/stdlib/dtoa.c (_dtoa_r): Added parentheses to remove warning
13292         messages and initialized local values: ilim, ilim1, and spec_case.
13293         * libc/stdlib/ecvtbuf.c (print_e): Removed unused variable dp.
13294         * libc/stdlib/mbctype.h (_issjis1, _issjis2): Added parentheses.
13295         * libc/stdlib/mprec.c: Ditto.
13296         * libc/stdlib/setenv_r.c: Ditto.
13297         * libc/stdlib/strtod.c: Ditto.
13298         * libc/stdlib/strtol.c: Ditto.
13299         * libc/stdlib/strtoul.c: Ditto.
13300         * libm/common/sf_expm1.c: Added curly braces to if else clauses.
13301         * libm/common/sf_log1p.c: Ditto.
13302         * libm/common/sf_scalbn.c: Ditto.
13303         * libm/math/ef_log.c: Ditto.
13304
13305 Sun Apr 16 12:45:00 2000  Corinna Vinschen <corinna@vinschen.de>
13306
13307         * libc/posix/execvp.c (execvp): Check path for
13308         trailing slash.
13309
13310 Fri Mar 31 20:39:00 2000  Corinna Vinschen <corinna@vinschen.de>
13311
13312         * libc/include/sys/unistd.h: Add prototypes for
13313         fchmod, fchown, lchown.
13314
13315 Fri Mar 24 15:34:00 2000  Jeff Johnston  <jjohnstn@cygnus.com>
13316
13317         * acinclude.m4: Changed release to 1.8.2.
13318         * aclocal.m4 configure doc/aclocal.m4 doc/configure
13319           libc/aclocal.m4 libc/configure libc/machine/aclocal.m4
13320           libc/machine/configure libc/machine/a29k/aclocal.m4
13321           libc/machine/a29k/configure libc/machine/arm/aclocal.m4
13322           libc/machine/arm/configure libc/machine/d10v/aclocal.m4
13323           libc/machine/d10v/configure libc/machine/d30v/aclocal.m4
13324           libc/machine/d30v/configure libc/machine/fr30/aclocal.m4
13325           libc/machine/fr30/configure libc/machine/h8300/aclocal.m4
13326           libc/machine/h8300/configure libc/machine/h8500/aclocal.m4
13327           libc/machine/h8500/configure libc/machine/hppa/aclocal.m4
13328           libc/machine/hppa/configure libc/machine/i386/aclocal.m4
13329           libc/machine/i386/configure libc/machine/i960/aclocal.m4
13330           libc/machine/i960/configure libc/machine/m32r/aclocal.m4
13331           libc/machine/m32r/configure libc/machine/m68k/aclocal.m4
13332           libc/machine/m68k/configure libc/machine/m88k/aclocal.m4
13333           libc/machine/m88k/configure libc/machine/mips/aclocal.m4
13334           libc/machine/mips/configure libc/machine/mn10200/aclocal.m4
13335           libc/machine/mn10200/configure libc/machine/mn10300/aclocal.m4
13336           libc/machine/mn10300/configure libc/machine/necv70/aclocal.m4
13337           libc/machine/necv70/configure libc/machine/powerpc/aclocal.m4
13338           libc/machine/powerpc/configure libc/machine/sh/aclocal.m4
13339           libc/machine/sh/configure libc/machine/sparc/aclocal.m4
13340           libc/machine/sparc/configure libc/machine/tic80/aclocal.m4
13341           libc/machine/tic80/configure libc/machine/v850/aclocal.m4
13342           libc/machine/v850/configure libc/machine/w65/aclocal.m4
13343           libc/machine/w65/configure libc/machine/z8k/aclocal.m4
13344           libc/machine/z8k/configure libc/sys/aclocal.m4
13345           libc/sys/aclocal.m4 libc/sys/configure
13346           libc/sys/a29khif/aclocal.m4 libc/sys/a29khif/configure
13347           libc/sys/arm/aclocal.m4 libc/sys/arm/configure
13348           libc/sys/cygwin/aclocal.m4 libc/sys/cygwin/configure
13349           libc/sys/d10v/aclocal.m4 libc/sys/d10v/configure
13350           libc/sys/decstation/aclocal.m4 libc/sys/decstation/configure
13351           libc/sys/go32/aclocal.m4 libc/sys/go32/configure
13352           libc/sys/h8300hms/aclocal.m4 libc/sys/h8300hms/configure
13353           libc/sys/h8500hms/aclocal.m4 libc/sys/h8500hms/configure
13354           libc/sys/m88kbug/aclocal.m4 libc/sys/m88kbug/configure
13355           libc/sys/netware/aclocal.m4 libc/sys/netware/configure
13356           libc/sys/rtems/aclocal.m4 libc/sys/rtems/configure
13357           libc/sys/sh/aclocal.m4 libc/sys/sh/configure
13358           libc/sys/sparc64/aclocal.m4 libc/sys/sparc64/configure
13359           libc/sys/sun4/aclocal.m4 libc/sys/sun4/configure
13360           libc/sys/sysmec/aclocal.m4 libc/sys/sysmec/configure
13361           libc/sys/sysnec810/aclocal.m4 libc/sys/sysnec810/configure
13362           libc/sys/sysnecv850/aclocal.m4 libc/sys/sysnecv850/configure
13363           libc/sys/sysvi386/aclocal.m4 libc/sys/sysvi386/configure
13364           libc/sys/sysvnecv70/aclocal.m4 libc/sys/sysvnecv70/configure
13365           libc/sys/tic80/aclocal.m4 libc/sys/tic80/configure
13366           libc/sys/w65/aclocal.m4 libc/sys/w65/configure
13367           libc/sys/z8ksim/aclocal.m4 libc/sys/z8ksim/configure
13368           libm/aclocal.m4 libm/configure: Regenerated.
13369
13370 2000-03-24  Nick Clifton  <nickc@cygnus.com>
13371
13372         * libc/sys/arm/syscalls.c: Fix compile time warnings.
13373         (do_AngelSWI): Add "cc" to list o registers clobbered.
13374
13375 Thu Mar 22 14:57:00 2000  Fernando Nasser <fnasser@redhat.com>
13376
13377         * libc/sys/arm/syscalls.c (do_AngelSWI): Prevent registers with valid
13378         information to be clobbered by an Angel C library support syscall.
13379
13380 Tue Mar 21 19:08:00 2000  Jeff Johnston <jjohnstn@cygnus.com>
13381
13382         * libc/stdlib/envlock.c: Fixed comment typo.
13383
13384 Fri Mar 17 15:37:00 2000  Jeff Johnston <jjohnstn@cygnus.com>
13385
13386         * libc/stdio/vfscanf.c (__svfscanf): Fixed floating point
13387         code to update nread as each character is processed instead
13388         of using buffer contents which throw away leading zeroes.
13389
13390 Mon Mar 13 15:22:00 2000  Sergei Organov <osv@javad.ru>
13391
13392         * libm/mathfp/sf_sqrt.c: Change _DOUBLE_IS_32BITS sqrt call to sqrtf.
13393
13394 Fri Mar 10 16:09:20 2000  Jeff Johnston <jjohnstn@cygnus.com>
13395
13396         * libc/include/string.h: Include <sys/types.h>.
13397
13398 Fri Mar 10 14:53:50 2000  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
13399
13400         * libc/stdio/putw.c (putw): Return 0 on success, to be compliant
13401         with XSH5, not SVID.
13402
13403 Thu Mar  9 17:20:41 2000  Jeff Johnston <jjohnstn@cygnus.com>
13404
13405         * libc/include/string.h: Changed last argument back to ssize_t
13406         to make it compatible with XPG4 definition which is
13407         defined in <unistd.h>.  There is a conflict in the SVID 3
13408         and XPG4 definitions and newlib will settle with XPG4.
13409         * libc/string/swab.c: Ditto.
13410
13411 Wed Mar  8 17:11:41 2000  Jeff Johnston <jjohnstn@cygnus.com>
13412
13413         * libc/include/string.h: Changed last argument to size_t.
13414         * libc/string/swab.c: Changed last argument to size_t.
13415
13416 Wed Mar  8 00:46:41 2000  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
13417
13418         * libc/reent/Makefile.am (lib_a_SOURCES): Added unlinkr.c.
13419         (CHEWOUT_FILES): Added unlinkr.def.
13420         * libc/reent/Makefile.in: Rebuilt.
13421         * libc/sys.tex: Include unlinkr.def.
13422         * libc/reent/linkr.c (_unlink_r): Moved to...
13423         * libc/reent/unlinkr.c: ... new file.
13424
13425 Wed Mar  8 00:43:07 2000  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
13426
13427         * libc/string/Makefile.am (lib_a_SOURCES): Added swab.c.
13428         (CHEWOUT_FILES): Added swab.def.
13429         * libc/string/Makefile.in: Rebuilt.
13430         * libc/string/string.tex: Include swab.def.
13431         * libc/include/string.h (swab): Declare.
13432         * libc/string/swab.c: New file.
13433
13434 Wed Mar  8 00:38:35 2000  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
13435
13436         * libc/stdio/Makefile.am (lib_a_SOURCES): Added getw.c and putw.c.
13437         (CHEWOUT_FILES): Added getw.def and putw.def.
13438         * libc/stdio/Makefile.in: Rebuilt.
13439         * libc/stdio/stdio.tex: Include getw.def and putw.def.
13440         * libc/stdio/getw.c: New file.
13441         * libc/stdio/putw.c: New file.
13442
13443 Fri Feb 25 14:50:50 2000  Jeff Johnston <jjohnstn@cygnus.com>
13444
13445         * libc/stdio/flags.c (__sflags): Added check that mode[1]
13446         is non-null before looking at mode[2].
13447
13448 Thu Feb 24 11:43:00 2000  Ran Cabell <rcabell@norfolk.infi.net>
13449
13450         * libm/mathfp/sf_atan2.c: Fix atan2 typo for _DOUBLE_IS_32_BITS.
13451         * libm/mathfp/sf_atan.c: Ditto.
13452
13453 Thu Feb 24 11:39:00 2000  Joel Sherrill <joel@OARcorp.com>
13454
13455         * libc/include/sys/stat.h: Add RTEMS prototype for lstat.
13456
13457 Tue Feb 22 14:37:00 2000  Ran Cabell <rcabell@norfolk.infi.net>
13458
13459         * libm/mathfp/sf_exp.c: Corrected _DOUBLE_IS_32_BITS to be
13460         _DOUBLE_IS_32BITS.
13461
13462 Mon Feb 21 11:43:50 2000  Jeff Johnston <jjohnstn@cygnus.com>
13463
13464         * libc/stdio/vfprintf.c (VFPRINTF): Added CHECK_INIT
13465         call prior to calling _VFPRINTF_R so reentrant data area is set.
13466         (_VFPRINTF_R): Removed now extraneous CHECK_INIT call.
13467
13468 Thu Feb 17 01:42:50 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
13469
13470         * libc/stdio/vfscanf.c (limits.h): #include.
13471         (MAX_LONG_LEN): #define.
13472         (__svfscanf): Handle floating point numbers with arbitrary amounts
13473         of leading zeroes.
13474
13475 2000-02-15  Nick Clifton  <nickc@cygnus.com>
13476
13477         * libc/sys/arm/syscalls.c (_fstat): Initialise all fields to
13478         zero.  Set the blocksize to 1024/
13479
13480 Thu Jan 20 18:57:00 2000  Fernando Nasser <fnasser@redhat.com>
13481
13482         * setvbuf.c (setvbuf):  Set size to BUFSIZ when passed a zero size
13483         with line buffering.
13484
13485 Mon Jan 10 18:43:00 2000  Jeff Johnston <jjohnstn@cygnus.com>
13486
13487         * acinclude.m4: Changed include directory for winsup headers.
13488         * aclocal.m4 configure libc/aclocal.m4
13489           libc/configure libc/ctype/Makefile.in libc/errno/Makefile.in
13490           libc/locale/Makefile.in libc/machine/aclocal.m4
13491           libc/machine/configure libc/machine/a29k/aclocal.m4
13492           libc/machine/a29k/configure libc/machine/arm/aclocal.m4
13493           libc/machine/arm/configure libc/machine/d10v/aclocal.m4
13494           libc/machine/d10v/configure libc/machine/d30v/aclocal.m4
13495           libc/machine/d30v/configure libc/machine/fr30/aclocal.m4
13496           libc/machine/fr30/configure
13497           libc/machine/h8300/aclocal.m4
13498           libc/machine/h8300/configure libc/machine/h8500/aclocal.m4
13499           libc/machine/h8500/configure libc/machine/hppa/aclocal.m4
13500           libc/machine/hppa/configure libc/machine/i386/aclocal.m4
13501           libc/machine/i386/configure libc/machine/i960/aclocal.m4
13502           libc/machine/i960/configure libc/machine/m32r/aclocal.m4
13503           libc/machine/m32r/configure libc/machine/m68k/aclocal.m4
13504           libc/machine/m68k/configure libc/machine/m88k/aclocal.m4
13505           libc/machine/m88k/configure libc/machine/mips/aclocal.m4
13506           libc/machine/mips/configure libc/machine/mn10200/aclocal.m4
13507           libc/machine/mn10200/configure libc/machine/mn10300/aclocal.m4
13508           libc/machine/mn10300/configure libc/machine/necv70/aclocal.m4
13509           libc/machine/necv70/configure libc/machine/powerpc/aclocal.m4
13510           libc/machine/powerpc/configure
13511           libc/machine/sh/aclocal.m4
13512           libc/machine/sh/configure libc/machine/sparc/aclocal.m4
13513           libc/machine/sparc/configure
13514           libc/machine/tic80/aclocal.m4 libc/machine/tic80/configure
13515           libc/machine/v850/aclocal.m4 libc/machine/v850/configure
13516           libc/machine/w65/aclocal.m4 libc/machine/w65/configure
13517           libc/machine/z8k/aclocal.m4 libc/machine/z8k/configure
13518           libc/misc/Makefile.in libc/posix/Makefile.in
13519           libc/reent/Makefile.in
13520           libc/signal/Makefile.in
13521           libc/string/Makefile.in libc/sys/aclocal.m4 libc/sys/configure
13522           libc/sys/a29khif/aclocal.m4 libc/sys/a29khif/configure
13523           libc/sys/arm/Makefile.in libc/sys/arm/aclocal.m4
13524           libc/sys/arm/configure libc/sys/cygwin/aclocal.m4
13525           libc/sys/cygwin/configure libc/sys/d10v/Makefile.in
13526           libc/sys/d10v/aclocal.m4 libc/sys/d10v/configure
13527           libc/sys/decstation/aclocal.m4 libc/sys/decstation/configure
13528           libc/sys/go32/aclocal.m4 libc/sys/go32/configure
13529           libc/sys/h8300hms/aclocal.m4 libc/sys/h8300hms/configure
13530           libc/sys/h8500hms/aclocal.m4 libc/sys/h8500hms/configure
13531           libc/sys/m88kbug/aclocal.m4 libc/sys/m88kbug/configure
13532           libc/sys/netware/aclocal.m4 libc/sys/netware/configure
13533           libc/sys/rtems/aclocal.m4 libc/sys/rtems/configure
13534           libc/sys/sh/Makefile.in libc/sys/sh/aclocal.m4
13535           libc/sys/sh/configure libc/sys/sparc64/aclocal.m4
13536           libc/sys/sparc64/configure libc/sys/sun4/aclocal.m4
13537           libc/sys/sun4/configure libc/sys/sysmec/aclocal.m4
13538           libc/sys/sysmec/configure libc/sys/sysnec810/aclocal.m4
13539           libc/sys/sysnec810/configure libc/sys/sysnecv850/aclocal.m4
13540           libc/sys/sysnecv850/configure libc/sys/sysvi386/aclocal.m4
13541           libc/sys/sysvi386/configure libc/sys/sysvnecv70/aclocal.m4
13542           libc/sys/sysvnecv70/configure libc/sys/tic80/aclocal.m4
13543           libc/sys/tic80/configure libc/sys/w65/aclocal.m4
13544           libc/sys/w65/configure libc/sys/z8ksim/aclocal.m4
13545           libc/sys/z8ksim/configure libc/syscalls/Makefile.in
13546           libc/time/Makefile.in libc/unix/Makefile.in libm/aclocal.m4
13547           libm/configure: Regenerated.
13548
13549 Mon Jan 10 18:43:46 2000  Jeff Johnston <jjohnstn@cygnus.com>
13550
13551         * libc/stdlib/putenv_r.c (_putenv_r): New file.
13552         * libc/stdlib/strdup_r.c (_strdup_r): New file.
13553         * libc/include/string.h: Added _strdup_r.
13554         * libc/stdlib/putenv.c: Added call to reentrant version.
13555         * libc/stdlib/strdup.c: Ditto.
13556         * libc/stdlib/Makefile.am: Added _putenv_r and _unsetenv_r.
13557         * libc/include/stdlib.h: Ditto.
13558         * libc/stdlib/Makefile.in: Regenerated.
13559         * libc/string/Makefile.in: Regenerated.
13560         * libc/stdlib/setenv.c: Added reentrant version of unsetenv.
13561         * libc/stdlib/setenv_r.c: Added unsetenv_r and changed memory
13562         management calls to reentrant versions.
13563         * libc/stdlib/wcstombs.c: Added #ifndef _REENT_ONLY wrapper.
13564         * libc/stdlib/wctomb.c: Ditto.
13565         * libc/stdlib/mblen.c: Ditto.
13566         * libc/stdlib/mbstowcs.c: Ditto.
13567         * libc/stdlib/mbtowc.c: Ditto.
13568         * libc/stdlib/getenv.c: Ditto.
13569         * libc/reent/reent.tex: Added references to _putenv_r, _setenv_r,
13570         and _strdup_r.
13571
13572 Thu Jan  6 15:33:46 2000  Christopher Faylor <cgf@cygnus.com>
13573
13574         patch from Corinna Vinschen <corinna@vinschen.de>
13575         * libc/sys/cygwin/sys/param.h: Define NGROUP_MAX as 16.
13576
13577 Mon Jan 03 14:36:00 2000  Sergei Organov <osv@javad.ru>
13578
13579         * libm/mathfp/s_atangent.c: Fix exponent calculation.
13580         * libm/mathfp/s_ldexp.c: Ditto.
13581         * libm/mathfp/sf_atangent.c: Ditto.
13582         * libm/mathfp/sf_ldexp.c: Ditto.
13583
13584 Tue Dec 14 5:42:00 1999  Ranjith Kumaran <ranjith@cygnus.com>
13585
13586         * libc/machine/i960/setjmp.S: fix typo leaving .link_pix uncommented
13587         * libc/include/locale.h: define NULL to be 0.
13588
13589 Tue Dec  7 15:41:45 1999  Jim Wilson  <wilson@cygnus.com>
13590
13591         * libc/sys/sh/syscalls.c (stack_ptr): Move definition before first
13592         function.
13593
13594 Wed Dec  1 17:39:29 1999  Jeffrey A Law  (law@cygnus.com)
13595
13596         * libc/machine/mn10300/setjmp.S: Handle am33.
13597
13598 1999-11-26  Nick Clifton  <nickc@cygnus.com>
13599
13600         * libc/sys/arm/syscalls.c: Add function prototypes.
13601         (stack_ptr): Move declaration before function definitions.
13602
13603 Sat Nov 20 17:13:00 1999  Ranjith Kumaran <ranjith@cygnus.com>
13604
13605         * NEWS: Updated version information.
13606         * README: Ditto.
13607
13608 Tue Nov 09 12:19:21 1999  Jeff Johnston <jjohnstn@cygnus.com>
13609
13610         * libc/machine/i386/strchr.S: Fixed alignment test.
13611
13612 Thu Oct 28 05:30:46 1999  Andrew Cagney  <cagney@makita.cygnus.com>
13613
13614         * libc/sys/d10v/crt0.S (_start): Construct a real stack frame.
13615
13616 Thu Oct 28 15:29:11 1999  Andrew Cagney  <cagney@b1.cygnus.com>
13617
13618         * libc/sys/d10v/crt0.S (_start): Initialize both SPI and SPU
13619         ensuring that there is space between the two.
13620
13621 Thu Oct 14 13:39:21 1999  Christopher Faylor <cgf@cygnus.com>
13622
13623         * libc/stdio/flags.c: Conditionalize check for 't' for cygwin case
13624         only.
13625
13626 1999-10-08  Vadim Egorov  <egorovv@1c.ru>
13627
13628         * libc/include/stdlib.h: add ptsname, grantpt, unlockpt to cygwin
13629         section
13630
13631 Sat Oct  2 02:02:00 MEST 1999  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
13632
13633         * libc/machine/sh/asm.h: Added __SH4_SINGLE__ to DELAYED_BRANCHES
13634         * libc/machine/sh/memcpy.S: Fix line wrapping in SL macro
13635
13636 Fri Oct  1 13:17:59 CDT 1999  <joel@OARcorp.com>
13637         * libc/include/grp.h: Added getgrnam_r and getgrgid_r prototypes
13638           per POSIX 1003.1b.
13639         * libc/include/pwd.h: Added getpwnam_r and getpwuid_r prototypes
13640           per POSIX 1003.1b.
13641
13642 1999-09-13  DJ Delorie  <dj@cygnus.com>
13643
13644         * libc/stdio/mktemp.c (_gettemp): on cygwin, check for EACCESS
13645         also.
13646
13647 Thu Sep  9 15:31:00 1999  Jeff Johnston <jjohnstn@cygnus.com>
13648
13649         * setvbuf.c (setvbuf):  When mallocing a buffer of size BUFSIZ,
13650         also note BUFSIZ as its size.
13651
13652 Tue Sep  7 17:15:00 1999  Joel Sherrill <joel@OARcorp.com>
13653
13654         * configure.host: Corrected feature defines for RTEMS.
13655         * libc/include/sys/stat.h: Added protototype for RTEMS mknod.
13656         * libc/include/sys/stat.h: mkfifo() should take const path arg.
13657         * libc/include/sys/unistd.h: pathconf() should take const path arg.
13658           Enabled usleep(), ftruncate(), and truncate() prototypes for RTEMS.
13659           Added defines for _POSIX_JOB_CONTROL, _POSIX_SAVED_IDS, and
13660           _POSIX_VERSION for RTEMS.  Added defines for _PC_ASYNC_IO,
13661           _PC_PRIO_IO, and _PC_SYNC_IO.
13662         * libc/machine/m68k/Makefile.am: Added strcpy.c and strlen.c.
13663         * libc/machine/m68k/Makefile.in: Regenerated.
13664         * libc/machine/m68k/strcpy.c: New file.
13665         * libc/machine/m68k/strlen.c: New file.
13666         * libc/stdio/tmpnam.c: Always make the returned name usable.
13667         * libc/sys/rtems/crt0.c: New version that passes all autoconf tests.
13668         * libc/sys/rtems/sys/dirent.h: New file.
13669         * libc/sys/rtems/sys/types.h: Added dev_t.
13670
13671 Tue Sep  7 17:15:00 1999   Jay Kulpinski <jskulpin@eng01.gdds.com>
13672
13673         * libc/stdlib/mprec.c: Fixed unitialized variable problem.
13674
13675 Fri Sep  3 12:35:20 1999  Jeff Johnston <jjohnstn@cygnus.com>
13676
13677         * libc/stdio/ftell.c (ftell): Backing off Joern's fix and
13678         my patch.
13679
13680 Thu Sep  2 22:05:20 1999  Christopher Faylor <cgf@cygnus.com>
13681
13682         patch from Jeff Johnston <jjohnstn@cygnus.com>
13683         * libc/stdio/ftell.c (ftell): Avoid using buffer position when the
13684         buffer is not in a useful state.
13685
13686 1999-09-01  Nick Clifton  <nickc@cygnus.com>
13687
13688         * libc/sys/arm/syscalls.c (_link): Add stub.
13689
13690 Fri Aug 27 23:09:09 1999  J"orn Rennecke <amylaar@cygnus.co.uk>
13691
13692         * ftell.c (ftell): Use actual position within buffer for text mode.
13693         * findfp.c (std): Initialize ptr->_bf._size.
13694
13695 Wed Aug 18 18:48:02 1999  Christopher Faylor <cgf@cygnus.com>
13696
13697         * libc/include/sys/unistd.h: Add nice() declaration.
13698
13699 1999-08-09  Nick Clifton  <nickc@cygnus.com>
13700
13701         * libc/sys/arm/crt0.S (change_mode): Rename to __change_mode and
13702         declare as a thumb function so that the disassembler will see the
13703         mode change.
13704
13705 Thu Aug  5 17:37:00 1999  Ranjith Kumaran <ranjith@cygnus.com>
13706
13707         * libc/reent/reent.tex: Updated list of reentrant functions.
13708
13709 1999-07-09  Michael Meissner  <meissner@cygnus.com>
13710
13711         * libc/include/stdlib.h (_findenv{,_r}): Add prototypes.
13712
13713 Tue Jul  6 10:46:24 1999  Jeff Johnston <jjohnstn@cygnus.com>
13714
13715         * libc/stdio/sprintf.c: Moved snprintf and _snprintf_r to
13716         separate file.
13717         * libc/stdio/snprintf.c: New file.
13718         * libc/stdio/vsprintf.c: Moved vsnprintf and _vsnprintf_r to
13719         separate file.
13720         * libc/stdio/vsnprintf.c: New file.
13721         * libc/stdio/Makefile.am: Added snprintf.c and vsnprintf.c.
13722         * libc/stdio/Makefile.in: Regenerated.
13723
13724 Mon Jul  5 14:43:24 1999  Christopher Faylor <cgf@cygnus.com>
13725
13726         Patch submitted by Egor Duda <deo@logos-m.ru>:
13727         * libc/include/stdio.h: Add declarations for *nprintf.
13728         * libc/stdio/sprintf.c (snprintf): New function.
13729         (_snprintf_r): New function.
13730         * libc/stdio/vsprintf.c (vsnprintf): New function.
13731         (_vnsprintf_r): New function.
13732
13733 Wed Jun 30 16:36:27 1999  Jeff Johnston  <jjohnstn@cygnus.com>
13734
13735         * libc/Makefile.am (stmp-targetdep): Remove extraneous blank.
13736         * libm/Makefile.am (stmp-targetdep): Ditto.
13737         * libc/Makefile.in: Regenerated.
13738         * libm/Makefile.in: Ditto.
13739
13740 Fri Jun 25 10:49:27 1999  Jeff Johnston  <jjohnstn@cygnus.com>
13741
13742         * libc/Makefile.am (stmp-targetdep): Ignore "." in SUBDIRS.
13743         * libm/Makefile.am (stmp-targetdep): Ditto.
13744         * libc/Makefile.in: Regenerated.
13745         * libm/Makefile.in: Ditto.
13746
13747 Thu June 03 16:25:00 1999  Jeff Johnston <jjohnstn@cygnus.com>
13748
13749         * Makefile.am: Removed dependencies on all-recursive and added "."
13750         to the SUBDIRS list to prevent infinite recursion from occurring.
13751         Also removed any references to EXTRA_DATA.
13752         * libc/Makefile.am: Ditto.
13753         * libc/machine/Makefile.am: Ditto.
13754         * libc/machine/i386/Makefile.am: Ditto.
13755         * libm/Makefile.am: Ditto.
13756         * libc/sys/Makefile.am: Ditto.
13757         * Makefile.in: Regenerated.
13758         * aclocal.m4: Ditto.
13759         * configure: Ditto.
13760         * doc/Makefile.in: Ditto.
13761         * doc/aclocal.m4: Ditto.
13762         * doc/configure: Ditto.
13763         * libc/Makefile.in: Ditto.
13764         * libc/aclocal.m4: Ditto.
13765         * libc/configure: Ditto.
13766         * libc/machine/Makefile.in: Ditto.
13767         * libc/machine/aclocal.m4: Ditto.
13768         * libc/machine/configure: Ditto.
13769         * libc/machine/mn10300/Makefile.in: Ditto.
13770         * libc/machine/mn10300/aclocal.m4: Ditto.
13771         * libc/machine/mn10300/configure: Ditto.
13772         * libc/sys/Makefile.in: Ditto.
13773         * libc/sys/aclocal.m4: Ditto.
13774         * libc/sys/configure: Ditto.
13775         * libm/Makefile.in: Ditto.
13776         * libm/aclocal.m4: Ditto.
13777         * libm/configure: Ditto.
13778
13779 Thu June 03 16:20:00 1999  Ranjith Kumaran <ranjith@cygnus.com>
13780
13781         * libc/include/stdlib/stdlib.tex: Add link to env_lock.
13782
13783 Fri May 28 17:09:00 1999  Ranjith Kumaran <ranjith@cygnus.com>
13784
13785         * libc/include/stdlib.h: Add reentrant routines.
13786         * libc/stdlib/Makefile.am: Add reentrant routines.
13787         * libc/stdlib/Makefile.in: Ditto.
13788         * libc/stdlib/envlock.c: New file.
13789         * libc/stdlib/envlock.h: New file.
13790         * libc/stdlib/getenv.c: Modify to call reentrant routine.
13791         * libc/stdlib/getenv_r.c: New file.
13792         * libc/stdlib/mblen.c: Modify to call reentrant routine.
13793         * libc/stdlib/mblen_r.c: New file.
13794         * libc/stdlib/setenv.c: Modify to call reentrant routine.
13795         * libc/stdlib/setenv_r.c: New file.
13796         * libc/stdlib/stdlib.tex: Add reentrant routines.
13797
13798 Mon May 17 22:01:38 1999  Christopher Faylor <cgf@cygnus.com>
13799
13800         * libc/include/sys/types.h: Define __MS_types__ whenever
13801         cygwin or win32.
13802
13803 Sun May 16 16:02:41 1999  Christopher Faylor <cgf@cygnus.com>
13804
13805         * libc/include/machine/ieeefp.h: Always default to little
13806         endian if Windows, regardless of architecture.
13807         * libc/include/machine/sethmp.h: Define JBLEN if CYGWIN
13808         regardless of architecture.
13809
13810 Mon May  3 11:49:18 1999  Geoffrey Noer  <noer@cygnus.com>
13811
13812         * libc/include/machine/setjmp.h: Accept CYGWIN define, even if
13813         _WIN32 isn't defined.
13814
13815 Mon May  3 11:41:51 1999  Jeff Johnston  <jjohnstn@cygnus.com>
13816
13817         * libm/common/s_rint.c (rint): Add volatile qualifier for
13818         intermediate value w.
13819         * libm/common/sf_rint.c (rintf): Ditto.
13820
13821 Thu Apr 29 20:34:27 1999  Jeff Johnston  <jjohnstn@cygnus.com>
13822
13823         * libc/sys/arm/syscalls.c (remap_handle): Added check to
13824         ensure that std streams are initialized before being referenced.
13825
13826 1999-04-27  Jason Molenda  (jsm@bugshack.cygnus.com)
13827
13828         * README: Update reference to newlib@cygnus.com new
13829         newlib@sourceware.cygnus.com address.
13830
13831 Mon Apr 26 18:17:33 1999  Geoffrey Noer  <noer@cygnus.com>
13832
13833         * libc/include/sys/types.h: Define MS_types if CYGWIN is defined.
13834         * libc/include/sys/fcntl.h: Define _O_BINARY et al if CYGWIN is
13835         defined, even if _WIN32 isn't defined.
13836
13837 Sat Apr 24 19:59:55 1999  Christopher Faylor <cgf@cygnus.com>
13838
13839         * libc/include/sys/fcntl.h: Correct _O_CREATE to _O_CREAT.
13840
13841 Wed Apr 21 18:01:00 1999  Ranjith Kumaran  <ranjith@cygnus.com>
13842
13843         * libc/include/sys/reent.h: Change Long and ULong to __Long and
13844         __ULong.
13845         * libc/stdlib/dtoa.c: Ditto.
13846         * libc/stdlib/mprec.c: Ditto.
13847         * libc/stdlib/mprec.h: Ditto.
13848         * libc/stdlib/strtod.c: Ditto.
13849
13850 1999-04-21  Nick Clifton  <nickc@cygnus.com>
13851
13852         * configure.host (mcore): Remove mcore machine directory.
13853
13854 1999-04-18  Nick Clifton  <nickc@cygnus.com>
13855
13856         * libc/include/machine/ieeefp.h: Add support for mcore target.
13857         * libc/include/machine/setjmp.h: Add support for mcore target.
13858         * configure.host: Add support for mcore target.
13859
13860 1999-04-13  Mark Salter  <msalter@cygnus.com>
13861
13862         * libc/sys/arm/libcfunc.c: Moved isatty to syscall.c
13863         * libc/sys/arm/syscalls.c: Added isatty.
13864
13865 Wed Apr 07 16:06:04 1999  Jeff Johnston  <jjohnstn@cygnus.com>
13866
13867         * libc/stdlib/ecvtbuf.c (fcvtbuf): Fixed code to properly
13868         insert zeroes after significant digits.
13869
13870 Wed Mar 17 22:06:04 1999  Jeff Johnston  <jjohnstn@cygnus.com>
13871
13872         * libc/stdio/vfprintf.c (cvt): Changed floating point
13873         cvt routine to use union used by dtoa to properly determine
13874         if the sign bit is on or not.
13875         * libc/stdio/vfieeefp.h: New file
13876
13877 Wed Mar 17 17:35:04 1999  Jeff Johnston  <jjohnstn@cygnus.com>
13878
13879         * aclocal.m4: Regenerated.
13880         * configure: Regenerated.
13881
13882 Wed Mar 17 16:35:04 1999  Jeff Johnston  <jjohnstn@cygnus.com>
13883
13884         * libc/machine/i386/Makefile.am (lib_a_SOURCES): Added missing
13885         f_tanf reference.
13886         * libc/machine/i386/Makefile.in: Regenerated.
13887
13888 Tue Mar 16 14:56:36 1999  Jeff Johnston  <jjohnstn@cygnus.com>
13889
13890         * acinclude.m4: Changed to work with new automake.
13891         * configure: Regenerated.
13892         * libc/machine/i386/aclocal.m4: Regenerated.
13893         * libc/machine/i386/configure: Regenerated.
13894
13895 Tue Mar 16 13:55:36 1999  Corinna Vinschen  <corinna.vinschen@cityweb.de>
13896
13897         * libc/sys/cygwin/sys/dirent.h: Add additional prototypes
13898         for telldir() and seekdir().  Rename unused structure element
13899         for use with these two routines.
13900
13901 Fri Mar 12 19:11:58 1999  Jeff Johnston  <jjohnstn@cygnus.com>
13902
13903         * libc/time/mktime.c (validate_structure): Multiple fixes to
13904         code to handle cases where input fields are outside valid ranges.
13905         * libc/stdlib/div.c (div): Modified invalid rounding check.
13906         * libc/stdlib/ldiv.c (ldiv): Ditto.
13907
13908 Thu Mar 11 21:32:13 1999  Jeff Johnston  <jjohnstn@cygnus.com>
13909
13910         * libc/machine/i386/memcpy.S: Performance rewrite.
13911         * libc/machine/i386/memmove.S: Ditto.
13912         * libc/machine/i386/i386mach.h: Added more register definitions.
13913         * libc/include/math.h: Include <machine/fastmath.h> if -ffast-math
13914         option used.
13915         * libc/include/machine/fastmath.h: Add definitions for x86
13916         fast-math routines.
13917
13918 Wed Mar 10 17:56:00 1999 Ranjith Kumaran  <ranjith@cygnus.com>
13919
13920         * libc/stdlib/strtod.c: Change from unsigned long to ULong.
13921
13922 Tue Mar  9 14:31:58 1999  Geoffrey Noer  <noer@cygnus.com>
13923
13924         Adjust newlib headers for new Cygwin Win32 API header files:
13925         * libc/include/sys/time.h: Check _WINSOCK_H rather than
13926         _GNU_H_WINDOWS32_SOCKETS.
13927         * libc/include/sys/types.h: Ditto.
13928
13929 Tue Mar 09 15:55:00 1999 Ranjith Kumaran  <ranjith@cygnus.com>
13930
13931         *include/sys/reent.h: Add checks for size of Bigint element Long.
13932         *libc/dtoa.c: Change routines to use generic Long type.
13933         *libc/mprec.c: Change routines to use generic Long type.
13934         *libc/mprec.h: Change routines to use generic Long type.
13935
13936 Tue Mar 02 18:07:49 1999 Ranjith Kumaran  <ranjith@cygnus.com>
13937
13938         * libc/Makefile.am: Add .def files.
13939         * libc/Makefile.in: Regenerate.
13940         * libc/e_acosh.c: Documentation update.
13941         * libc/e_atanh.c: Documentation update.
13942         * libc/e_hypot.c: Documentation update.
13943         * libc/e_remainder.c: Documentation update.
13944         * libc/er_lgamma.c: Documentation update.
13945         * libc/mathfp.tex: Documentation update.
13946         * libc/s_acos.c: Documentation update.
13947         * libc/s_atan.c: Documentation update.
13948         * libc/s_atan2.c: Documentation update.
13949         * libc/s_cosh.c: Documentation update.
13950         * libc/s_fmod.c: Documentation update.
13951         * libc/s_isnan.c: Documentation update.
13952         * libc/s_log10.c: Documentation update.
13953         * libc/s_pow.c: Documentation update.
13954         * libc/w_jn.c: Documentation update.
13955
13956 Sun Feb 28 23:18:49 1999  Geoffrey Noer  <noer@cygnus.com>
13957
13958         * aclocal.m4: Regenerate.
13959         * configure: Regenerate.
13960
13961 Tue Feb 23 13:57:26 1999  Jeff Johnston  <jjohnstn@cygnus.com>
13962
13963         * libc/machine/mn10300/setjmp.S (_longjmp): Fixed longjmp
13964         to return 1 if user specified return code is 0.
13965         * libc/machine/mn10200/setjmp.S (_longjmp): Ditto.
13966
13967 Thu Feb 18 11:13:28 1999  Jeff Johnston  <jjohnstn@cygnus.com>
13968
13969         * libc/machine/mn10200/setjmp.S (_setjmp/_longjmp): Fixed setjmp
13970         to save the return address.  Fixed longjmp to return to the original
13971         calling address of setjmp and to return the user specified return code
13972         rather than default to 1.
13973         * libc/machine/mn10300/setjmp.S (_setjmp/_longjmp): Ditto.
13974
13975 Mon Feb 15 17:48:17 1999  Jeff Johnston  <jjohnstn@cygnus.com>
13976
13977         * libc/stdlib/mprec.h (mult): Define mult to be _multiply instead of _mult.
13978
13979 1999-02-10  Nick Clifton  <nickc@cygnus.com>
13980
13981         * libc/sys/arm/syscalls.c (initialise_monitor_handles): Make block
13982         volatile so that its assignments will not be discarded.
13983
13984 Wed Feb 10 17:19:40 1999  Jeff Johnston  <jjohnstn@cygnus.com>
13985
13986         * libc/include/_ansi.h: Corrected _STRICT_ANSI reference to
13987         be __STRICT_ANSI__ which is generated by compiler.
13988         * libc/include/ctype.h: Ditto.
13989         * libc/include/math.h: Ditto.
13990         * libc/include/stdio.h: Ditto.
13991         * libc/include/stdlib.h: Ditto.
13992         * libc/include/string.h: Ditto.
13993         * libc/include/sys/signal.h: Ditto.
13994
13995 1999-02-08  Nick Clifton  <nickc@cygnus.com>
13996
13997         * configure.host: Add support for StrongARM target.
13998
13999 Fri Feb  5 11:13:14 1999  Jeff Johnston  <jjohnstn@cygnus.com>
14000
14001         * libc/string/strncpy.c (strncpy): Removed redundant code
14002         that was copying bytes if data unaligned.
14003
14004 1999-02-02  Brendan Kehoe  <brendan@cygnus.com>
14005
14006         * libc/stdlib/Makefile.{am,in} (CHEWOUT_FILES): Add mblen.def,
14007         mbstowcs.def, and wcstombs.def.
14008
14009 Sat Jan 30 02:36:33 1999  Christopher Faylor <cgf@cygnus.com>
14010
14011         * libc/include/sys/errno.h: Add Cygwin errno.
14012         * libc/stdio/flags.c: Don't default to O_TEXT if no other flag
14013         is specified.
14014
14015 1999-01-29  Nick Clifton  <nickc@cygnus.com>
14016
14017         * libc/sys/arm/syscalls.c: Move C library functions into seperate
14018         file.
14019
14020         * libc/sys/arm/libcfunc.c: New file containing C library functions
14021         from syscalls.c
14022
14023         * libc/sys/arm/Makefile.am (lib_a_SOURCES): Add libcfuncs.c
14024         * libc/sys/arm/Makefile.in (lib_a_SOURCES): Regenerate.
14025
14026
14027 1999-01-27  Michael Meissner  <meissner@cygnus.com>
14028
14029         * libc/include/machine/setjmp.h (D30V _JBLEN/_JBTYPE): Use double
14030         type, and cut size in half so that the jmp_buf array is guaranteed
14031         to be aligned on a 64-bit boundary.
14032
14033 Mon Jan 25 12:05:38 1999  Jeff Johnston  <jjohnstn@cygnus.com>
14034
14035         * libc/string/strings.tex: Added information about
14036         strcasecmp and strncasecmp.
14037         * libc/stdlib/stdlib.tex: Added missing information
14038         about mblen, mbstowcs, and wcstombs.
14039         * libc/string/strchr.c: Changed how mask is built to use
14040         shift operators so register will be used instead of storage.
14041
14042 1999-01-22  DJ Delorie  <dj@cygnus.com>
14043
14044         * libc/include/stdlib.h: don't use dllimport if we're building
14045         newlib, since it's inside cygwin.dll
14046
14047 Fri Jan 22 14:57:18 1999  Christopher Faylor <cgf@cygnus.com>
14048
14049         * libc/ctype/ctype_.c: Need to use __declspec(dllexport) for
14050         _ctype_ under cygwin.
14051
14052 Fri Jan 22 09:50:19 1999  Christopher Faylor <cgf@cygnus.com>
14053
14054         * include/stdlib.h: Fix typo from previous checkin.
14055
14056 Thu Jan 21 22:42:21 1999  Christopher Faylor <cgf@cygnus.com>
14057
14058         * include/ctype.h: Use __declspec(dllimport) method for exporting
14059         variable from cygwin DLL.
14060         * include/time.h: Ditto.
14061         * sys/errno.h: Ditto.
14062         * include/stdlib.h: Export __mb_cur_max from cygwin DLL.
14063         * libc/locale/locale.c: Use __declspec(dllexport) method for
14064         exporting variable from cygwin DLL.
14065
14066 Sat Jan 16 13:29:54 1999  Christopher Faylor <cgf@cygnus.com>
14067
14068         * libc/stdio/setvbuf.c: Always clean up when _IONBF or possible
14069         access of bogus pointer will result in SIGSEGV.
14070
14071 1999-01-07  Nick Clifton  <nickc@cygnus.com>
14072
14073         * libc/sys/arm/setjmp.S: Use C macros to cope with the possibility
14074         of an underscore prefix to function names.
14075
14076 Fri Jan  8 19:00:07 1999  Jeff Johnston  <jjohnstn@cygnus.com>
14077
14078         * libc/machine/i386/i386mach.h (__REG_PREFIX__): Create new
14079         define __REG_PREFIX__ instead of using __REGISTER_PREFIX__.
14080
14081 1998-12-31  Michael Meissner  <meissner@cygnus.com>
14082
14083         * libc/machine/i386/i386mach.h (__REGISTER_PREFIX__): Only define
14084         to `%' if not already defined.
14085
14086 1998-12-30  Michael Meissner  <meissner@cygnus.com>
14087
14088         * libc/stdio/tmpnam.c (_tempnam_r): Make directory and prefix
14089         arguments const char *, not char *.
14090         * libc/include/stdio.h (_tempnam_r): Ditto.
14091
14092         * libc/include/sys/reent.h (struct _reent): The _sig_func type
14093         points to a function taking an integer, not void.
14094
14095 Tue Dec 29 14:35:53 1998  Christopher Faylor <cgf@cygnus.com>
14096
14097         * configure.host: Add a define for Cygwin builds.
14098         * libc/include/ctype.h: Don't use dll imported variables in newlib.
14099
14100 Mon Dec 28 09:19:56 1998  Christopher Faylor <cgf@cygnus.com>
14101
14102         * libc/include/ctype.h: Define _ctype_ as dll imported variable
14103         for use with Cygwin.
14104         * libc/include/sys/errno.h: Define _sys_errlist and _sys_nerr as
14105         dll imported variables for use with Cygwin.
14106         * libc/ctype/ctype_.c: Undefine _ctype_ in case it has been defined
14107         as a dll imported variable for Cygwin.
14108
14109 Sat Dec 26 00:13:53 1998  Christopher Faylor <cgf@cygnus.com>
14110
14111         * libc/include/sys/unistd.h: Add proto for getpass.
14112
14113 Fri Dec 18 19:28:19 1998  Geoffrey Noer  <noer@cygnus.com>
14114
14115         * libc/sys/cygwin/sys/dirent.h: add protos for scandir and
14116         alphasort.
14117
14118 Fri Dec 18 16:33:25 1998  Geoffrey Noer  <noer@cygnus.com>
14119
14120         * libc/posix/execvp.c (execvp): call cygwin_posix_path_list_p,
14121         not posix_path_list_p.
14122
14123 1998-12-15  Nick Clifton  <nickc@cygnus.com>
14124
14125         * libc/string/memchr.c: Treat 'c' argument as an unsigned byte not
14126         a signed int.
14127
14128 1998-12-13  Nick Clifton  <nickc@cygnus.com>
14129
14130         * libc/include/machine/setjmp.h (_JBLEN): Set to 10.
14131
14132 1998-12-12  Nick Clifton  <nickc@cygnus.com>
14133
14134         * libc/machine/fr30/setjmp.S: New file, supplied by Mark Slater
14135         <msalter@cygnus.com>
14136         * libc/machine/fr30/Makefile.am: Add build of setjmp.S
14137         * libc/machine/fr30/Makefile.in: Regenerated.
14138
14139 1998-12-11  Nick Clifton  <nickc@cygnus.com>
14140
14141         * configure.host: Remove use of libc/sys for FR30 port.
14142         * libc/sys/fr30: Remove directory (replaced by libgloss).
14143
14144 1998-12-10  Ken Raeburn  <raeburn@cygnus.com>
14145
14146         * libc/string/strcat.c (ALIGNED): Sense of result was reversed.
14147         * libc/string/strncat.c (ALIGNED): Ditto.
14148
14149 Wed Dec  9 14:37:57 1998  Geoffrey Noer  <noer@cygnus.com>
14150
14151         * libc/include/sys/time.h: include sys/types.h
14152
14153 Tue Dec  8 15:53:18 1998  Jeff Johnston  <jjohnstn@cygnus.com>
14154
14155         * libc/machine/i386/memcmp.S (memcmp): Fix for unequal
14156         comparison found when checking word at a time.
14157
14158 1998-12-04  Nick Clifton  <nickc@cygnus.com>
14159
14160         * libc/sys/fr30/crt0.s (_start): Initialise frame pointer.
14161
14162 1998-12-03  Nick Clifton  <nickc@cygnus.com>
14163
14164         * libc/sys/fr30/syscalls.c (_times): New function stub.
14165
14166 Thu Dec  3 15:59:19 1998  Jeff Johnston  <jjohnstn@cygnus.com>
14167
14168         * configure.host (mach_add_setjmp): Replaced mach_add_objs
14169         with mach_add_setjmp flag which indicates if setjmp should
14170         be added to the machine directory objects.
14171         * acinclude.m4: Removed reference to mach_add_objs.
14172         * aclocal.m4: Regenerated.
14173         * Makefile.in: Regenerated.
14174         * configure: Regenerated.
14175         * libc/aclocal.m4: Regenerated.
14176         * libc/Makefile.in: Regenerated.
14177         * libc/configure: Regenerated.
14178         * libc/machine/aclocal.m4: Regenerated.
14179         * libc/machine/Makefile.in: Regenerated.
14180         * libc/machine/configure: Regenerated.
14181         * libc/machine/i386/aclocal.m4: Regenerated.
14182         * libc/machine/i386/Makefile.am: Altered to selectively add
14183         setjmp.S to the src files list.
14184         * libc/machine/i386/Makefile.in: Regenerated.
14185         * libc/machine/i386/configure.in: Altered to test mach_add_setjmp.
14186         * libc/machine/i386/configure: Regenerated.
14187
14188 1998-12-02  Nick Clifton  <nickc@cygnus.com>
14189
14190         * libc/sys/fr30/crt0.s (_start): Fix function names.
14191
14192         * libc/machine/fr30: New directory
14193         * libc/machine/fr30/Makefile.am: New file.
14194         * libc/machine/fr30/Makefile.in: New generated file.
14195         * libc/machine/fr30/configure.in: New file.
14196         * libc/machine/fr30/configure: New generated file.
14197         * libc/machine/fr30/aclocal.m4: New generated file.
14198         * libc/sys/fr30/Makefile.am: New file.
14199         * libc/sys/fr30/Makefile.in: New generated file.
14200         * libc/sys/fr30/configure.in: New file.
14201         * libc/sys/fr30/configure: New generated file.
14202         * libc/sys/fr30/syscalls.c: New file.
14203
14204 Tue Dec  1 16:28:56 1998  Geoffrey Noer  <noer@cygnus.com>
14205
14206         * libc/sys/cygwin/sys/utmp.h: new file, moved from winsup/include.
14207
14208 1998-12-01  Ken Raeburn  <raeburn@cygnus.com>
14209
14210         * libc/time/strftime.c (strftime): Also handle %y for years before
14211         1900.
14212
14213 Tue Dec  1 13:26:07 1998  Christopher Faylor <cgf@cygnus.com>
14214
14215         * libc/string/strcasecmp.c (strcasecmp): Adhere to standard
14216         UNIX convention.  Perform tolower on characters before comparing
14217         them rather than use toupper.
14218         * libc/string/strncasecmp.c (strncasecmp): Ditto.
14219
14220 Mon Nov 30 16:24:19 1998  Jeff Johnston  <jjohnstn@cygnus.com>
14221
14222         * configure.host: Added using i386 machine directory
14223         for all x86 cross-compiler and configuring
14224         which added object files to use via new "mach_add_objs" variable.
14225         * configure: Regenerated.
14226         * libc/configure: Regenerated.
14227         * libc/Makefile.in: Regenerated.
14228         * libc/aclocal.m4: Regenerated.
14229         * libc/ctype/Makefile.in: Regenerated.
14230         * libc/errno/Makefile.in: Regenerated.
14231         * libc/locale/Makefile.in: Regenerated.
14232         * libc/machine/Makefile.in: Regenerated.
14233         * libc/machine/aclocal.m4: Regenerated.
14234         * libc/machine/configure: Regenerated.
14235         * libc/posix/Makefile.in: Regenerated.
14236         * libc/reent/Makefile.in: Regenerated.
14237         * libc/signal/Makefile.in: Regenerated.
14238         * libc/stdio/Makefile.in: Regenerated.
14239         * libc/stdlib/Makefile.in: Regenerated.
14240         * libc/string/Makefile.in: Regenerated.
14241         * libc/string/memmove.c: Optimized code to use memcpy
14242         logic when performing a non-destructive copy.
14243         * libc/string/strncmp.c: Altered code to allow building
14244         optimized for size or speed.
14245         * libc/syscalls/Makefile.in: Regenerated.
14246         * libc/time/Makefile.in: Regenerated.
14247         * libc/unix/Makefile.in: Regenerated.
14248         * libc/machine/i386/Makefile.am: Added new files and reference
14249         to "mach_add_objs" to indicate optional object files.
14250         * libc/machine/i386/Makefile.in: Regenerated.
14251         * libc/machine/i386/aclocal.m4: Regenerated.
14252         * libc/machine/i386/configure: Regenerated.
14253         * libc/machine/i386/memchr.S: New file that implements
14254         function in Intel assembler.
14255         * libc/machine/i386/memcmp.S: ditto.
14256         * libc/machine/i386/memcpy.S: ditto.
14257         * libc/machine/i386/memmove.S: ditto.
14258         * libc/machine/i386/memset.S: ditto.
14259         * libc/machine/i386/strchr.S: ditto.
14260         * libc/machine/i386/strlen.S: ditto.
14261         * libc/machine/i386/f_atan2.S: New file that implements
14262         fast version of math function to be used by compiler when
14263         --ffast_math compile option is used.
14264         * libc/machine/i386/f_atan2f.S: ditto.
14265         * libc/machine/i386/f_exp.c: ditto.
14266         * libc/machine/i386/f_expf.c: ditto.
14267         * libc/machine/i386/f_frexp.S: ditto.
14268         * libc/machine/i386/f_frexpf.S: ditto.
14269         * libc/machine/i386/f_ldexp.S: ditto.
14270         * libc/machine/i386/f_ldexpf.S: ditto.
14271         * libc/machine/i386/f_log.S: ditto.
14272         * libc/machine/i386/f_logf.S: ditto.
14273         * libc/machine/i386/f_log10.S: ditto.
14274         * libc/machine/i386/f_log10f.S: ditto.
14275         * libc/machine/i386/f_math.h: New file.
14276         * libc/machine/i386/f_pow.c: ditto.
14277         * libc/machine/i386/f_powf.S: ditto.
14278         * libc/machine/i386/f_tan.S: ditto.
14279         * libc/machine/i386/f_tan.S: ditto.
14280         * libc/machine/i386/i386mach.h: New file.
14281
14282 Mon Nov 30 13:02:17 1998  Christopher Faylor <cgf@cygnus.com>
14283
14284         patch from Mumit Khan <khan@xraylith.wisc.edu>
14285         * libc/include/stdio.h (tempnam): Add prototype.
14286         * libc/stdio/tmpnam.c (_tempnam_r): Handle NULL prefix.
14287         (tempnam): Adhere to prototype.
14288
14289 Thu Nov 26 00:21:32 1998  Christopher Faylor <cgf@cygnus.com>
14290
14291         * Makefile.am: Add default for AR_FLAGS.
14292         * Makefile.in: Regenerate.
14293
14294 Tue Nov 24 18:48:56 1998  Geoffrey Noer  <noer@cygnus.com>
14295
14296         * libc/include/time.h: move __cplusplus wrapper after includes
14297         * libc/include/sys/time.h: ditto.  If Cygwin, include
14298         sys/select.h.
14299         * libc/include/sys/types.h: lose "32" in comment about Cygwin.
14300
14301 1998-11-23  Ken Raeburn  <raeburn@cygnus.com>
14302
14303         * libc/time/strftime.c (strftime): Handle %y after year 2000.
14304
14305 Wed Nov 18 12:22:41 1998  Nick Clifton  <nickc@cygnus.com>
14306
14307         * libc/sys/fr30/crt0.s (_start): Switch over to using int #9 as
14308         abnormnal end-of-crt0 marker.
14309
14310 Tue Nov 17 16:27:58 1998  Nick Clifton  <nickc@cygnus.com>
14311
14312         * libc/sys/fr30/crt0.s: New file/directory.
14313         * libc/include/machine/setjmp.h: Add FR30 target.
14314         * libc/include/machine/ieeefp.h: Add FR30 target.
14315         * configure.host: Add FR30 target.
14316
14317 Mon Nov  16 23:15:00 1998  Ranjith Kumaran <ranjith@cygnus.com>
14318
14319         * libm/math: Files that are duplicated in common directory removed.
14320         * libm/math/fdlibm.h: Removed.
14321         * libm/math/s_cbrt.c: Removed.
14322         * libm/math/s_copysign.c: Removed.
14323         * libm/math/s_expm1.c: Removed.
14324         * libm/math/s_finite.c: Removed.
14325         * libm/math/s_ilogb.c: Removed.
14326         * libm/math/s_infinity.c: Removed.
14327         * libm/math/s_lib_ver.c: Removed.
14328         * libm/math/s_log1p.c: Removed.
14329         * libm/math/s_logb.c: Removed.
14330         * libm/math/s_matherr.c: Removed.
14331         * libm/math/s_modf.c: Removed.
14332         * libm/math/s_nan.c: Removed.
14333         * libm/math/s_nextafter.c: Removed.
14334         * libm/math/s_rint.c: Removed.
14335         * libm/math/s_scalbn.c: Removed.
14336         * libm/math/sf_cbrt.c: Removed.
14337         * libm/math/sf_copysign.c: Removed.
14338         * libm/math/sf_expm1.c: Removed.
14339         * libm/math/sf_finite.c: Removed.
14340         * libm/math/sf_ilogb.c: Removed.
14341         * libm/math/sf_infinity.c: Removed.
14342         * libm/math/sf_log1p.c: Removed.
14343         * libm/math/sf_logb.c: Removed.
14344         * libm/math/sf_modf.c: Removed.
14345         * libm/math/sf_nan.c: Removed.
14346         * libm/math/sf_nextafter.c: Removed.
14347         * libm/math/sf_rint.c: Removed.
14348         * libm/math/sf_scalbn.c: Removed.
14349         * libm/math/Makefile.am: Removed references to deleted files (above).
14350         * libm/math/Makefile.in: Regenerated.
14351         * libm/Makefile.am: Added common directory to math.
14352         * libm/Makefile.in: Regenerated.
14353
14354 Mon Nov  2 23:12:00 1998  Ranjith Kumaran <ranjith@cygnus.com>
14355
14356         * libm/mathfp: Add non-ANSI functions.
14357         * libm/mathfp/e_acosh.c acosh(): New file.
14358         * libm/mathfp/e_atanh.c atanh(): New file.
14359         * libm/mathfp/e_hypot.c hypot(): New file.
14360         * libm/mathfp/e_j0.c j0(): New file.
14361         * libm/mathfp/e_j1.c j1(): New file.
14362         * libm/mathfp/e_remainder.c remainder(): New file.
14363         * libm/mathfp/e_scalb.c scalb(): New file.
14364         * libm/mathfp/ef_acosh.c acoshf(): New file.
14365         * libm/mathfp/ef_atanh.c atanhf(): New file.
14366         * libm/mathfp/ef_hypot.c hypotf(): New file.
14367         * libm/mathfp/ef_j0.c j0f(): New file.
14368         * libm/mathfp/ef_j1.c j1f(): New file.
14369         * libm/mathfp/ef_remainder.c remainderf(): New file.
14370         * libm/mathfp/ef_scalb.c scalbf(): New file.
14371         * libm/mathfp/er_gamma.c gamma_r: New file.
14372         * libm/mathfp/er_lgamma.c lgamma_r(): New file.
14373         * libm/mathfp/erf_gamma.c gamma_rf(): New file.
14374         * libm/mathfp/erf_lgamma.c lgamma_rf(): New file.
14375         * libm/mathfp/w_cabs.c cabs(): New file.
14376         * libm/mathfp/w_drem.c drem(): New file.
14377         * libm/mathfp/w_jn.c jn(): New file.
14378         * libm/mathfp/wf_cabs.c cabsf(): New file.
14379         * libm/mathfp/wf_drem.c dremf(): New file.
14380         * libm/mathfp/wf_jn.c jnf(): New file.
14381
14382 Mon Nov  2 16:43:18 1998  Geoffrey Noer  <noer@cygnus.com>
14383
14384         * libc/sys/cygwin32: remove directory and contents
14385         * libc/sys/cygwin: and add back, losing the "32".
14386         * configure.host: check for cygwin* instead of cygwin32.
14387         * acinclude.m4: ditto.
14388         * aclocal.m4: regenerate with aclocal
14389         * configure: regenerate with autoconf
14390
14391 Tue Oct 20 17:28:28 1998  Geoffrey Noer  <noer@cygnus.com>
14392
14393         * libc/stdio/tmpnam.c (_tempnam_r): not enough memory allocated
14394         for length
14395
14396 Tue Oct 20 18:49:05 1998  Jeff Johnston  <jjohnstn@cygnus.com>
14397
14398         * libc/include/sys/reent.h (struct _reent): Added variables _rand_next, _strtok_last,
14399         _asctime_buf, _localtime_buf and _gamma_signgam to struct reent
14400         to make rand/srand, strtok, asctime, localtime, w_gamma,
14401         w_lgamma, wf_gamma, and wf_lgamma reentrant.  Included
14402         time.h to bring in struct tm definition.
14403         * libc/stdlib/rand.c (rand, srand): Don't emit functions 'rand' and 'srand' if
14404         '_REENT_ONLY' is set. Used variable '_rand_next' from struct reent.
14405         * libc/stdlib/strtok.c (strtok): Used variable '_strtok_last' from struct reent
14406         instead of static variable.
14407         * libc/stdlib/asctime.c (asctime): Used variable '_asctime_buf' from
14408         struct reent instead of static variable.
14409         * libc/stdlib/lcltime.c (localtime): Used variable '_localtime_buf' from
14410         struct reent instead of static variable.
14411         * libm/math/Makefile.am: Removed s_signgam.o.
14412         * libm/math/Makefile.in: Regenerated.
14413         * libm/math/w_gamma.c (gamma): Used variable '_gamma_signgam' from
14414         struct reent instead of global variable 'signgam'.
14415         * libm/math/w_lgamma.c (lgamma): Likewise.
14416         * libm/math/wf_gamma.c (gammaf): Likewise.
14417         * libm/math/wf_lgamma.c (lgammaf): Likewise.
14418         * libm/math/s_signgam.c: Removed.
14419         * libc/include/unctrl.h: Defined arrays __unctrl and __unctrllen
14420         to be const.
14421         * libc/misc/unctrl.c: Defined arrays __unctrl and __unctrllen
14422         to be const.
14423         * libc/reent/Makefile.am: Added dependence for impure.o on impure.c and
14424         libc/include/reent.h.
14425         * libc/reent/Makefile.in: Regenerated.
14426         * libc/stdio/vfprintf.c (_vfprintf_r): Defined arrays 'blanks' and 'zeroes'
14427         to be const.
14428         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Defined arrays 'JIS_state_table' and
14429         'JIS_action_table' to be const.
14430         * libm/math/s_lib_ver.c: define variable _LIB_VERSION to be const.
14431
14432 Mon Oct 12 00:26:33 1998  Christopher Faylor <cgf@cygnus.com>
14433
14434         * acinclude.m4:  $with_target_subdir should default to '.'
14435         or confusion results when configuring in same directory as sources.
14436         * Regenerate all aclocal.m4 and configure files.
14437
14438 Fri Oct  9 16:27:36 1998  Jeff Johnston  <jjohnstn@cygnus.com>
14439
14440         * libc/stdlib/mallocr.c: Added 16 byte alignment support which
14441         can be set by defining MALLOC_ALIGNMENT=16.  Also added support
14442         for platforms where sizeof(size_t) < sizeof(long) via
14443         SIZE_T_SMALLER_THAN_LONG macro.
14444
14445 Wed Oct  7 14:02:40 1998  Jeff Johnston  <jjohnstn@cygnus.com>
14446
14447         * libc/include/time.h (CLOCKS_PER_SEC): Change CLOCKS_PER_SEC
14448         to refer to _CLOCKS_PER_SEC_ and added including <machine/time.h>
14449         which sets _CLOCKS_PER_SEC_ for selected machines.
14450         * libc/include/machine/time.h: New file.
14451
14452 Tue Oct  6 16:08:05 1998  Jeff Johnston  <jjohnstn@cygnus.com>
14453
14454         * libc/syscalls/sysexecve.c: New file.
14455         * libc/syscalls/sysgettod.c: New file.
14456         * libc/syscalls/systimes.c: New file.
14457         * libc/syscalls/Makefile.am: Added new objects.
14458         * libc/syscalls/Makefile.in: Regenerated.
14459         * libc/include/_syslist.h (_execve): Moved define in file.
14460         * libc/include/reent.h:  Added _execve_r declaration.
14461         * libc/Makefile.in: Regenerated.
14462         * libc/ctype/Makefile.in: Regenerated.
14463         * libc/errno/Makefile.in: Regenerated.
14464         * libc/locale/Makefile.in: Regenerated.
14465         * libc/machine/Makefile.in: Regenerated.
14466         * libc/misc/Makefile.in: Regenerated.
14467         * libc/posix/Makefile.in: Regenerated.
14468         * libc/reent/Makefile.in: Regenerated.
14469         * libc/reent/execr.c (_execve_r): Added _execve_r function.
14470         * libc/signal/Makefile.in: Regenerated.
14471         * libc/stdio/Makefile.in: Regenerated.
14472         * libc/time/Makefile.in: Regenerated.
14473         * libc/unix/Makefile.in: Regenerated.
14474         * libm/mathfp/Makefile.in: Regenerated.
14475
14476 Tue Oct  6 14:14:05 1998  Jeff Johnston  <jjohnstn@cygnus.com>
14477
14478         * libc/string/Makefile.in: Regenerated.
14479         * libc/string/memchr.c (memchr): Moved code to reduce object size.
14480         * libc/string/memcpy.c (memcpy): Ditto.
14481         * libc/string/memcmp.c (memcmp): Ditto.
14482         * libc/string/memset.c (memset): Ditto.
14483         * libc/string/strchr.c (strchr): Ditto.
14484         * libc/string/strcmp.c (strcmp): Ditto.
14485         * libc/string/strcpy.c (strcpy): Ditto.
14486         * libc/string/strlen.c (strlen): Ditto.
14487
14488 Tue Oct  6 13:58:05 1998  Jeff Johnston  <jjohnstn@cygnus.com>
14489
14490         * libm/acinclude.m4: Removed since newlib/acinclude.m4 can be used
14491         to generate aclocal.m4.
14492         * libm/Makefile.in: Regenerated.
14493         * libm/aclocal.m4: Regenerated.
14494         * libm/configure: Regenerated.
14495         * libm/math/Makefile.in: Regenerated.
14496         * libm/mathfp/Makefile.in: Regenerated.
14497
14498 1998-09-25  Mark Salter  <msalter@cygnus.com>
14499
14500         * libc/include/machine/setjmp.h: Fixed test for mn10300 and mn10200
14501         by adding leading and trailing underscores to symbol names.
14502
14503 Tue Sep 22 15:33:41 1998  Christopher Faylor <cgf@cygnus.com>
14504
14505         * Makefile.in: Add default for AR_FLAGS.
14506
14507 Tue Sep 22 15:02:49 1998  Christopher Faylor <cgf@cygnus.com>
14508
14509         patch from ian@airs.com (Ian Taylor):
14510         * acinclude.m4: Run AC_CANONICAL_BUILD explicitly before
14511         NEWLIB_CONFIGURE so AC_CANONICAL_HOST will be run before it
14512         is needed for detecting the build machine.  Required for
14513         cygwin native builds.
14514
14515         * Regenerate all aclocal.m4 and configure files.
14516
14517 Mon Sep 21 14:44:16 1998  Nick Clifton  <nickc@cygnus.com>
14518
14519         * libc/sys/arm/crt0.S: Prepend a period to all local labels that
14520         used to start with LC.
14521
14522 Thu Sep 17 18:18:11 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
14523
14524         * libc/machine/sh/setjmp.S (setjmp): Handle __SH4* like __SH3E__ .
14525         (longjmp): Likewise.
14526
14527 Thu Sep 17 16:25:33 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
14528
14529         * libc/machine/sh/memset.S (memset): Move copy from r4 to r4 before
14530         the test for small number of bytes.
14531
14532 Thu Sep 10 11:40:00 1998  Ranjith Kumaran <ranjith@cygnus.com>
14533
14534         * Makefile.am: Add --enable-newlib-hw-fp check.  This builds the new
14535         math library that uses floating point algorithms instead of the old
14536         libm.
14537         * Makefile.in: Regenerate with automake version 1.3b.
14538         * configure: Rebuild.
14539         * libm/Makefile.in: Regenerate with automake version 1.3b.
14540         * libm/aclocal.m4: Regenerate.
14541         * libm/configure: Rebuild.
14542         * libm/configure.in: Add newlib_hw_fp definition and mathfp directory.
14543         * libm/acinclude.m4: Define macros for configure.in.
14544         * libm/config.h.in: Generate.
14545         * libm/mathfp/Makefile.am: New file.
14546         * libm/mathfp/Makefile.in: Generate.
14547         * libm/mathfp/s_acos.c (acos): New file.
14548         * libm/mathfp/s_asin.c (asin): New file.
14549         * libm/mathfp/s_asine.c (asine): New file.
14550         * libm/mathfp/s_atan.c (atan): New file.
14551         * libm/mathfp/s_atan2.c (atan2): New file.
14552         * libm/mathfp/s_atangent.c (atangent): New file.
14553         * libm/mathfp/s_ceil.c (ceil): New file.
14554         * libm/mathfp/s_copysign.c (copysign): New file.
14555         * libm/mathfp/s_cos.c (cos): New file.
14556         * libm/mathfp/s_cosh.c (cosh): New file.
14557         * libm/mathfp/s_exp.c (exp): New file.
14558         * libm/mathfp/s_fabs.c (fabs): New file.
14559         * libm/mathfp/s_finite.c (finite): New file.
14560         * libm/mathfp/s_floor.c (floor): New file.
14561         * libm/mathfp/s_fmod.c (fmod): New file.
14562         * libm/mathfp/s_frexp.c (frexp): New file.
14563         * libm/mathfp/s_infconst.c: New file.
14564         * libm/mathfp/s_isinf (isinf).c: New file.
14565         * libm/mathfp/s_isnan.c (isnan): New file.
14566         * libm/mathfp/s_ispos.c (ispos): New file.
14567         * libm/mathfp/s_ldexp.c (ldexp): New file.
14568         * libm/mathfp/s_log.c (log): New file.
14569         * libm/mathfp/s_log10.c (log10): New file.
14570         * libm/mathfp/s_logarithm.c (logarithm): New file.
14571         * libm/mathfp/s_mathcnst.c: New file.
14572         * libm/mathfp/s_modf (modf).c: New file.
14573         * libm/mathfp/s_numtest.c (numtest): New file.
14574         * libm/mathfp/s_pow.c (pow): New file.
14575         * libm/mathfp/s_scalbn.c (scalbn): New file.
14576         * libm/mathfp/s_sin (sin).c: New file.
14577         * libm/mathfp/s_sine.c (sine): New file.
14578         * libm/mathfp/s_sineh.c (sineh): New file.
14579         * libm/mathfp/s_sinf.c (sinf): New file.
14580         * libm/mathfp/s_sinh.c (sinh): New file.
14581         * libm/mathfp/s_sqrt.c (sqrt): New file.
14582         * libm/mathfp/s_tan.c (tan): New file.
14583         * libm/mathfp/s_tanh.c (tanh): New file.
14584         * libm/mathfp/sf_acos.c (acosf): New file.
14585         * libm/mathfp/sf_asin.c (asinf): New file.
14586         * libm/mathfp/sf_asine.c (asinef): New file.
14587         * libm/mathfp/sf_atan.c (atanf): New file.
14588         * libm/mathfp/sf_atan2.c (atan2f): New file.
14589         * libm/mathfp/sf_atangent.c (atangent): New file.
14590         * libm/mathfp/sf_ceil.c (ceilf): New file.
14591         * libm/mathfp/sf_copysign.c (copysignf): New file.
14592         * libm/mathfp/sf_cos.c (cosf): New file.
14593         * libm/mathfp/sf_cosh.c (coshf): New file.
14594         * libm/mathfp/sf_exp.c (expf): New file.
14595         * libm/mathfp/sf_fabs.c (fabsf): New file.
14596         * libm/mathfp/sf_finite.c (finitef): New file.
14597         * libm/mathfp/sf_floor.c (floorf): New file.
14598         * libm/mathfp/sf_fmod.c (fmodf): New file.
14599         * libm/mathfp/sf_frexp.c (frexpf): New file.
14600         * libm/mathfp/sf_isinf.c (isinff): New file.
14601         * libm/mathfp/sf_isnan.c (isnanf): New file.
14602         * libm/mathfp/sf_ispos.c (isposf): New file.
14603         * libm/mathfp/sf_ldexp.c (ldexpf): New file.
14604         * libm/mathfp/sf_log.c (logf): New file.
14605         * libm/mathfp/sf_log10.c (log10f): New file.
14606         * libm/mathfp/sf_logarithm.c (logarithmf): New file.
14607         * libm/mathfp/sf_modf.c (modff): New file.
14608         * libm/mathfp/sf_numtest.c (numtestf): New file.
14609         * libm/mathfp/sf_pow.c (powf): New file.
14610         * libm/mathfp/sf_scalbn.c (scalbnf): New file.
14611         * libm/mathfp/sf_sin.c (sinf): New file.
14612         * libm/mathfp/sf_sine.c (sinef): New file.
14613         * libm/mathfp/sf_sineh.c (sinehf): New file.
14614         * libm/mathfp/sf_sinh.c (sinhf): New file.
14615         * libm/mathfp/sf_sqrt.c (sqrtf): New file.
14616         * libm/mathfp/sf_tan.c (tanf): New file.
14617         * libm/mathfp/sf_tanh.c (tanhf): New file.
14618         * libm/mathfp/zmath.h: New file.
14619
14620 Wed Sep  2 02:49:03 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
14621
14622         * libc/machine/sh/strcmp.S (L_char_loop): Re-load r0 at loop
14623         exit if it has been overwritten by pre-fetching in delay slot.
14624
14625 1998-09-01  Michael Meissner  <meissner@cygnus.com>
14626
14627         * Makefile.am (tooldir): Add in host_alias, so that multilib
14628         libraries are installed in the directory the compiler looks in.
14629         * Makefile.in: Regenerate.
14630
14631         * libc/stdlib/Makefile.in: Regenerate with automake version 1.3b.
14632
14633 Mon Aug 31 11:39:31 1998  Jeff Johnston  <jjohnstn@cygnus.com>
14634
14635         * libc/machine/mn10300/memcpy.S (_memcpy): Move alignment test
14636         ahead of test for number of bytes being moved.
14637
14638 Thu Aug 27 14:07:53 1998  Christopher Faylor <cgf@cygnus.com>
14639
14640         * libc/include/sys/unistd.h: Nothing special needed for
14641         _exit under cygwin.
14642
14643 Wed Aug 26 15:05:21 1998  Nick Clifton  <nickc@cygnus.com>
14644
14645         * libc/sys/arm/syscalls.c (_sbrk): Rename '_end' to 'end' to
14646         conform to user label naming conventions.
14647
14648 Mon Aug 24 14:46:19 1998  Geoffrey Noer <noer@cygnus.com>
14649
14650         * libc/sys/cygwin32/sys/utime.h: variable names in
14651         protos should start with two leading underscores
14652         * libc/include/string.h: ditto
14653         * libc/include/sys/signal.h: ditto
14654         * libc/include/sys/stat.h: ditto
14655         * libc/include/sys/time.h: ditto
14656         * libc/include/sys/unistd.h: ditto
14657         * libc/include/ctype.h: ditto
14658         * libc/include/stdlib.h: ditto
14659         * libc/include/sys/reent.h: struct _atexit function ptr takes a
14660         void, same with _sig_func.
14661
14662 Fri Aug 21 14:44:14 1998  Jeff Johnston  <jjohnstn@cygnus.com>
14663
14664         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Added preprocessor checks
14665         for MB_CAPABLE to reduce code size when newlib is not configured
14666         with --enable-newlib-mb.
14667         * libc/stdlib/Makefile.am: Specified -fshort-enums when building
14668         mbtowc_r.o to minimize size.
14669         * libc/stdlib/Makefile.in: Rebuild.
14670
14671 Wed Aug 19 16:20:13 1998  Jim Wilson  <wilson@cygnus.com>
14672
14673         * libc/sys/sparc64/Makefile.am (.S_r.o, .c_r.o): Change -DREENTRANT
14674         to -DREENT.
14675         * libc/sys/sparc64/Makefile.in: Rebuild.
14676
14677 Tue Aug 18 22:38:29 1998  Ian Lance Taylor  <ian@cygnus.com>
14678
14679         * Makefile.am (MAKEOVERRIDES): Define.
14680         * Makefile.in: Rebuild.
14681
14682 Tue Aug 18 12:38:47 1998  Jim Wilson  <wilson@cygnus.com>
14683
14684         * libc/sys/sparc64/sys/stat.h (stat): Add const.
14685
14686 Mon Aug 17 22:27:06 1998  Ian Lance Taylor  <ian@cygnus.com>
14687
14688         * acinclude.m4 (NEWLIB_CONFIGURE): Use top_builddir in
14689         newlib_cflags when looking for targ-include.
14690         * */aclocal.m4, */configure: Rebuild.
14691
14692 Fri Jul 31 10:57:42 1998  Catherine Moore  <clm@cygnus.com>
14693
14694         * libc/sys/arm/syscalls.c (_sbrk): Change "__end__"
14695         to "_end".
14696
14697 Wed Jul 29 00:02:01 1998  Mark Alexander  <marka@cygnus.com>
14698
14699         * libc/include/sys/config.h: Define __IEEE_LITTLE_ENDIAN
14700         on SPARCs with little-endian data.
14701         * libc/include/machine/ieeefp.h: Ditto.
14702
14703 Wed Jul 22 18:00:10 1998  Ian Lance Taylor  <ian@cygnus.com>
14704
14705         * acinclude.m4: Handle a relative srcdir correctly when setting
14706         newlib_cflags.
14707         * */aclocal.m4, */configure: Rebuild.
14708
14709 Wed Jul 22 17:11:33 1998  Jeff Johnston  <jjohnstn@cygnus.com>
14710
14711         * libm/math/wrf_lgamma.c (lgammaf_r): Initialize exc.err to 0 and
14712         also set exc.arg1, exc.arg2 appropriately in case matherr is supplied.
14713         * libm/math/wrf_gamma.c (gammaf_r): ditto
14714         * libm/math/wr_lgamma.c (lgamma_r): ditto
14715         * libm/math/wr_gamma.c (gamma_r): ditto
14716         * libm/math/wf_sqrt.c (sqrtf): ditto
14717         * libm/math/wf_sinh.c (sinhf): ditto
14718         * libm/math/wf_scalb.c (scalbf): ditto
14719         * libm/math/wf_remainder.c (remainderf): ditto
14720         * libm/math/wf_pow.c (powf): ditto
14721         * libm/math/wf_log10.c (log10f): ditto
14722         * libm/math/wf_log.c (logf): ditto
14723         * libm/math/wf_lgamma.c (lgammaf): ditto
14724         * libm/math/wf_jn.c (jnf, ynf): ditto
14725         * libm/math/wf_j1.c (j1f, y1f): ditto
14726         * libm/math/wf_j0.c (j0f, y0f): ditto
14727         * libm/math/wf_hypot.c (hypotf): ditto
14728         * libm/math/wf_gamma.c (gammaf): ditto
14729         * libm/math/wf_fmod.c (fmodf): ditto
14730         * libm/math/wf_exp.c (expf): ditto
14731         * libm/math/wf_cosh.c (coshf): ditto
14732         * libm/math/wf_atanh.c (atanhf): ditto
14733         * libm/math/wf_atan2f.c (atan2f): ditto
14734         * libm/math/wf_asin.c (asinf): ditto
14735         * libm/math/wf_acosh.c (acoshf): ditto
14736         * libm/math/wf_acos.c (acosf): ditto
14737         * libm/math/w_sqrt.c (sqrt): ditto
14738         * libm/math/w_sinh.c (sinh): ditto
14739         * libm/math/w_scalb.c (scalb): ditto
14740         * libm/math/w_remainder.c (remainder): ditto
14741         * libm/math/w_pow.c (pow): ditto
14742         * libm/math/w_log10.c (log10): ditto
14743         * libm/math/w_log.c (log): ditto
14744         * libm/math/w_lgamma.c (lgamma): ditto
14745         * libm/math/w_jn.c (jn, yn): ditto
14746         * libm/math/w_j1.c (j1, y1): ditto
14747         * libm/math/w_j0.c (j0, y0): ditto
14748         * libm/math/w_hypot.c (hypot): ditto
14749         * libm/math/w_gamma.c (gamma): ditto
14750         * libm/math/w_fmod.c (fmod): ditto
14751         * libm/math/w_exp.c (exp): ditto
14752         * libm/math/w_cosh.c (cosh): ditto
14753         * libm/math/w_atanh.c (atanh): ditto
14754         * libm/math/w_atan2f.c (atan2): ditto
14755         * libm/math/w_asin.c (asin): ditto
14756         * libm/math/w_acosh.c (acosh): ditto
14757         * libm/math/w_acos.c (acos): ditto
14758
14759 Tue Jul 21 12:34:54 1998  Ian Lance Taylor  <ian@cygnus.com>
14760
14761         * libm/math/Makefile.am (src): Add w_cabs.c and w_drem.c.
14762         (fsrc): Add wf_cabs.c and wf_drem.c.
14763         * libm/math/Makefile.in: Rebuild.
14764
14765         * Makefile.am (AM_MAKEFLAGS): Add CFLAGS_FOR_BUILD.  Remove some
14766         unused directory variables.  Remove duplicate CFLAGS.
14767         * Makefile.in: Rebuild.
14768
14769         * doc/Makefile.am ($(MKDOC)): Don't use $(CFLAGS) when building
14770         with $(CC_FOR_BUILD).
14771         (makedoc.o): Likewise.
14772         * doc/Makefile.in: Rebuild.
14773
14774         * libc/sys/cygwin32/Makefile.am (EXTRA_LIBRARIES): Define, to
14775         force a definition of COMPILE.
14776         (libfoo_a_SOURCES): Define.
14777         * libc/sys/cygwin32/Makefile.in: Rebuild.
14778         * libc/sys/tic80/Makefile.am (EXTRA_LIBRARIES): Define, to
14779         force a definition of COMPILE.
14780         (libfoo_a_SOURCES): Define.
14781         * libc/sys/tic80/Makefile.in: Rebuild.
14782
14783 Mon Jul 20 20:49:24 1998  Christopher Faylor <cgf@cygnus.com>
14784
14785         * libc/include/sys/fcntl.h: Add O_NOINHERIT, Win32-specific
14786         flag.
14787
14788 Fri Jul 17 16:13:16 1998  Ian Lance Taylor  <ian@cygnus.com>
14789
14790         * Build using autoconf and automake.  Added many Makefile.am and
14791         configure.in files, plus generated files.  Old configure.in files
14792         and all old Makefile.in files completely replaced.  Removed
14793         host/any.  Added acinclude.m4 and configure.host.
14794
14795 Sat Jul 11 18:14:49 1998  Felix Lee  <flee@cygnus.com>
14796
14797         * libc/stdio/vfprintf.c: enable long long support, sometimes.
14798         * configure.in (*-*-cygwin32): add -DWANT_PRINTF_LONG_LONG.
14799
14800 Tue Jul  7 01:51:55 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
14801
14802         * libc/machine/sh/strcmp.S, libc/machine/sh/strcpy.S: New files.
14803         * libc/machine/sh/Makefile.in: Add rules for new files.
14804
14805 Tue Jul  7 01:40:55 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
14806
14807         * libc/machine/sh/asm.h (SL, DELAYED_BRANCHES): Define.
14808         * libc/machine/sh/memset.S (memset): Remove uses of dt; shorten code.
14809         * libc/machine/sh/memcpy.S (SL, DELAYED_BRANCHES): Don't define.
14810
14811 Thu Jul  2 10:33:16 1998  Nick Clifton  <nickc@cygnus.com>
14812
14813         * libc/sys/arm/syscalls.c (_exit): Add comment, noting that exit
14814         code is ignored.
14815
14816 Wed Jun 24 13:56:54 1998  Jeff Johnston  <jjohnstn@cygnus.com>
14817
14818         * libc/stdio/tmpnam.c (_tmpnam_r): Changed routine to use
14819         internal static buffer when s is NULL, as prescribed by ANSI.
14820
14821 1998-06-22  Vladimir N. Makarov  <vmakarov@cygnus.com>
14822
14823         * libc/sys/h8300hms/Makefile.in (OFILES): malloc.o has been
14824         removed.
14825         * libc/sys/h8300hms/malloc.c: has been removed.  Now malloc.c from
14826         libc/stdlib will be used for h8300hms.
14827
14828 Thu Jun 18 16:56:05 1998  Jeff Johnston  <jjohnstn@cygnus.com>
14829
14830         * libc/machine/mn10300/strlen.S (_strlen): New optimized assembler
14831         version that can be built either for speed or size.
14832         * libc/machine/mn10300/memset.S (_memset): ditto
14833         * libc/machine/mn10300/memchr.S (_memchr): ditto
14834         * libc/machine/mn10300/memcpy.S (_memcpy): ditto
14835         * libc/machine/mn10300/memcmp.S (_memcmp): ditto
14836         * libc/machine/mn10300/strchr.S (_strchr): ditto
14837         * libc/machine/mn10300/strcmp.S (_strcmp): ditto
14838         * libc/machine/mn10300/strcpy.S (_strcpy): ditto
14839         * libc/machine/mn10300/Makefile.in: Added entries for
14840         memchr.o, memcmp.o, memcpy.o, memset.o, strchr.o,
14841         strcmp.o, strcpy.o, and strlen.o.
14842
14843 Wed Jun 17 12:50:26 1998  Mark Alexander  <marka@cygnus.com>
14844
14845         * configure.in: Don't use libc/sys/sysmec for MN10200; it's
14846         been replaced with libgloss/mn10200.
14847
14848 Fri Jun 12 14:34:39 1998  Michael Meissner  <meissner@cygnus.com>
14849
14850         * libc/string/strchr.c (strchr): Make s a constant pointer to
14851         avoid warning.
14852
14853 Tue Jun  9 16:29:30 1998  Jason Molenda  (crash@bugshack.cygnus.com)
14854
14855         * configure.in (target == arm* or thumb*): Define ARM_RDI_MONITOR
14856         instead of ARM_RDP_MONITOR (sys/libc/arm/crt0.S to assume Angel
14857         board SWIs instead of Demon board SWIs).
14858
14859 Thu Jun  4 12:16:46 1998  Michael Meissner  <meissner@cygnus.com>
14860
14861         * libc/string/strncat.c (strncat):  Make -Os act the same as
14862         PREFER_SIZE_OVER_SPEED being defined.
14863
14864 Wed Jun  3 17:52:33 1998  Michael Meissner  <meissner@cygnus.com>
14865
14866         * libc/string/memchr.c (memchr): Make -Os act the same as
14867         PREFER_SIZE_OVER_SPEED being defined.
14868         * libc/string/memcmp.c (memcmp): Ditto.
14869         * libc/string/memcpy.c (memcpy): Ditto.
14870         * libc/string/memset.c (memset): Ditto.
14871         * libc/string/strcat.c (strcat): Ditto.
14872         * libc/string/strchr.c (strchr): Ditto.
14873         * libc/string/strcmp.c (strcmp): Ditto.
14874         * libc/string/strcpy.c (strcpy): Ditto.
14875         * libc/string/strlen.c (strlen): Ditto.
14876         * libc/string/strncat.c (strncat): Ditto.
14877         * libc/string/strncmp.c (strncmp): Ditto.
14878         * libc/string/strncpy.c (strncpy): Ditto.
14879
14880 Mon Jun  1 15:25:07 1998  Geoffrey Noer  <noer@cygnus.com>
14881
14882         * libc/include/sys/itimer.h: remove
14883         * libc/include/sys/time.h: itimer stuff should be here
14884
14885 Mon Jun  1 16:31:29 1998  Jeff Johnston  <jjohnstn@cygnus.com>
14886
14887         * libc/stdio/vfprintf.c (cvt): Changed code to look at sign
14888         bit instead of comparing to 0 so -0.0 can be printed correctly.
14889
14890 Sat May 30 09:33:51 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
14891
14892         * libc/stdlib/mprec.c (b2d): Inilialize d in non-VAX case too.
14893
14894 Fri May 29 22:25:10 1998  Geoffrey Noer  <noer@cygnus.com>
14895
14896         * libc/include/sys/unistd.h: fix sync() proto
14897         * libc/include/sys/fcntl.h: remove _close which is already
14898         defined in unistd.h.
14899         * libc/include/sys/time.h: add getitimer proto
14900
14901 Fri May 29 16:10:28 1998  Geoffrey Noer  <noer@cygnus.com>
14902
14903         * libc/string/strchr.c: convert arg to unsigned char
14904         * libc/include/stdlib.h: add protos for random, srandom
14905         * libc/include/sys/stat.h: add lstat proto
14906         * libc/include/sys/time.h: add setitimer proto
14907         * libc/include/sys/unistd.h: add readlink, symlink protos
14908         * libc/include/process.h: instead of including windows.h and using
14909         HANDLEs in sexec protos, just use void *s.  Need to include
14910         sys/types.h.
14911
14912 Fri May 29 03:04:29 1998  Geoffrey Noer  <noer@cygnus.com>
14913
14914         * libc/include/sys/fcntl.h: add _close proto for Cygwin32
14915
14916 Thu May 28 16:34:21 1998  Geoffrey Noer  <noer@cygnus.com>
14917
14918         * libc/include/process.h: add secure exec protos
14919
14920 Wed May 27 13:54:51 1998  Jeffrey A Law  (law@cygnus.com)
14921
14922         * libc/stdlib/dtoa.c (_dtoa_r): Use "double_union" for variables
14923         which are accessed as both doubles and integers.
14924         * libc/stdlib/mprec.c (ulp, b2d, ratio): Likewise.
14925         * libc/stdlib/strtod.c (_strtod_r): Likewise.
14926         * libc/stdlib/mprec.h: Add "union double_union" and change
14927         word0/word1 macros to use it.
14928
14929 Tue May 26 18:04:21 1998  Geoffrey Noer  <noer@cygnus.com>
14930
14931         * libc/include/sys/signal.h: add __cplusplus wrapper
14932
14933 Tue May 26 15:10:22 1998  Geoffrey Noer  <noer@cygnus.com>
14934
14935         * libc/include/sys/utime.h: new generic file that gets replaced by
14936         libc/sys/SYSDIR/sys/utime.h on systems that support the utime
14937         function.
14938         * sys/cygwin32/sys/utime.h: use _EXFUN in utime proto
14939         * libc/include/time.h: remove duplicate utime proto
14940         * libc/include/utime.h: add comment
14941
14942 Sun May 24 23:56:20 1998  Christopher Faylor <cgf@cygnus.com>
14943
14944         * libc/include/sys/time.h: Add missing include to
14945         allow use of _EXFUN.  Remove times function that is
14946         already defined in times.h.
14947
14948 Sun May 24 01:32:14 1998  Christopher Faylor <cgf@cygnus.com>
14949
14950         * libc/include/time.h: Fix typo in tzset.
14951
14952 Fri May 22 17:00:48 1998  Geoffrey Noer  <noer@cygnus.com>
14953
14954         * libc/include/sys/time.h: add missing Cygwin32 function protos
14955         * libc/include/sys/unistd.h: ditto
14956         * libc/include/time.h: ditto
14957
14958 Wed May 20 20:35:11 1998  Geoffrey Noer  <noer@cygnus.com>
14959
14960         * libc/sys/cygwin32/sys/param.h: add protected NULL def, remove
14961         FIXME.
14962         * libc/include/sys/types.h: add a new __MS_types__ section
14963         to define vm_offset_t, vm_size_t, int32_t et al, register_t,
14964         __BIT_TYPES_DEFINED__.
14965
14966 Wed May 20 18:49:21 1998  Geoffrey Noer  <noer@cygnus.com>
14967
14968         * libc/sys/cygwin32/sys/param.h: move here from winsup/include/sys
14969         since it overrides the one in libc/include/sys.  Also, start
14970         including types.h.
14971
14972 Wed May 20 14:45:40 1998  Geoffrey Noer  <noer@cygnus.com>
14973
14974         * libm/math/Makefile.in: add s_signgam.o to obj list
14975
14976 Tue May 19 11:57:11 1998  Jeff Johnston  <jjohnstn@cygnus.com>
14977
14978         * libc/include/sys/reent.h (_REENT_INIT): Initialize current locale to "C".
14979
14980 Mon May 18 22:36:12 1998  Christopher Faylor <cgf@cygnus.com>
14981
14982         * libc/include/sys/signal.h: cygwin32 exports sig{empty,add}set,
14983         so don't use defines.
14984
14985 Mon May 18 19:01:02 1998  Michael Meissner  <meissner@cygnus.com>
14986
14987         * libc/sys/d10v/crt0.S: Use correct stab for 16-bit ints.
14988
14989 Sun May 17 18:40:32 1998  Frank Ch. Eigler  <fche@cygnus.com>
14990
14991         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Accept a NULL
14992         _current_locale as default locale.
14993
14994 Sat May 16 21:59:59 1998  Bob Manson  <manson@charmed.cygnus.com>
14995
14996         * libc/stdlib/mallocr.c (mALLOc): Add explicit tests for
14997         insufficient space in a chunk.
14998
14999 Tue May 12 14:41:01 1998  Jeff Johnston  <jjohnstn@cygnus.com>
15000
15001         * configure.in (links): Added check for --enable-newlib-mb configure
15002         option which defines the MB_CAPABLE macro.
15003         * libc/locale/locale.c (_setlocale_r): Added support for setting
15004         LC_CTYPE to "C-JIS", "C-SJIS" or "C-EUCJP", when MB_CAPABLE is
15005         defined.
15006         * libc/stdlib/mbtowc_r.c (_mbtowc_r): New function _mbtowc_r that
15007         implements mbtowc() with multibyte support for JIS, SJIS, and EUC-JP.
15008         * libc/stdlib/wctomb_r.c (_wctomb_r): New function _wctomb_r that
15009         implements wctomb() with multibyte support for JIS, SJIS, and EUC-JP.
15010         * libc/stdlib/mbstowcs_r.c (_mbstowcs_r): New function _mbstowcs_r that
15011         implements mbstowcs() with multibyte support for JIS, SJIS, and EUC-JP.
15012         * libc/stdlib/wcstombs_r.c (_wcstombs_r): New function _wcstomb_r that implements
15013         wcstombs() with multibyte support for JIS, SJIS, and EUC-JP.
15014         * libc/stdlib/Makefile.in: Added new multibyte
15015         routines: _mbtowc_r(), _wctomb_r(), _mbstowcs_r(), and _wcstombs_r().
15016         * libc/include/stdlib.h: Added declarations of _mbtowc_r(), _wctomb_r(),
15017         _mbstowcs_r(), and _wcstombs_r().
15018         * libc/stdlib/mbctype.h: New internal header file that contains macros to test
15019         for JIS, SJIS, and EUC-JP characters.
15020         * libc/stdlib/mblen.c (mblen): Added code to call _mbtowc_r() if
15021         MB_CAPABLE defined.
15022         * libc/stdlib/mbtowc.c (mbtowc): Added code to call _mbtowc_r() if
15023         MB_CAPABLE defined.
15024         * libc/stdlib/wctomb.c (wctomb): Added code to call _wctomb_r() if
15025         MB_CAPABLE defined.
15026         * libc/stdlib/mbstowcs.c (mbstowcs): Added code to call _mbstowcs_r()
15027         if MB_CAPABLE defined.
15028         * libc/stdlib/wcstombs.c (wcstombs): Added code to call _wcstombs_r()
15029         if MB_CAPABLE defined.
15030         * libc/stdio/vfscanf.c (__svfscanf): Added multibyte tolerance
15031         to the format string processing when MB_CAPABLE.
15032         * libc/stdio/vfprintf.c (_VFPRINTF_R): Changed mbtowc() call to
15033         call _mbtowc_r().
15034
15035 Tue May  5 16:07:23 1998  Nick Clifton  <nickc@cygnus.com>
15036
15037         The following modifications are courtesy of Anthony Thompson,
15038         athompson@cambridge.arm.com:
15039         * libc/sys/arm/syscalls.c: Initialise and track stdin/out/err for
15040         boith RDI and RDP monitors.
15041         * libc/sys/arm/crt0.S: Call initialise_monitor_handles() for both
15042         RDI and RDP monitors.
15043
15044 Wed Apr 29 15:22:15 1998  Jeff Johnston  <jjohnstn@cygnus.com>
15045
15046         * configure.in (links): Added -DHAVE_GETTIMEOFDAY for arm and thumb.
15047         * libc/sys/arm/syscalls.c (_gettimeofday _times): Added functions.
15048         (_swiopen): Fixed open flags to treat write with append as just append.
15049         (_swilseek): Fixed lseek support to properly handle offsets from SEEK_END.
15050         * libc/sys/arm/sys/param.h: New file to override param.h for ARM.
15051
15052 Fri Apr 24 18:00:09 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
15053
15054         * libc/machine/sh/memcpy.S (L_odddst, big endian version):
15055         When needing to transfer an initial 2-byte-word, store as
15056         two single bytes.
15057
15058 Wed Apr 22 17:56:03 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
15059
15060         * libc/sys/sh/crt0.S (start): Handle __SH4_SINGLE_ONLY__ like
15061         __SH3E__ .
15062         * libc/machine/sh/memcpy.S (DELAYED_BRANCHES, SL): Likewise.
15063         * libc/include/machine/ieeefp.h (_DOUBLE_IS_32BITS): Likewise.
15064
15065 Wed Apr 22 12:28:03 1998  Michael Meissner  <meissner@cygnus.com>
15066
15067         * configure.in (target_cflags): If --enable-target-optspace, use
15068         -Os to compile newlib rather than -O2.  Default to using -Os for
15069         d10v, d30v and m32r if --{enable,disable}-target-optspace is not
15070         used.
15071
15072 Tue Apr 21 23:13:34 1998  Geoffrey Noer  <noer@cygnus.com>
15073
15074         * libc/include/machine/setjmp.h: change sigsetjmp and
15075         siglongjmp definitions to use an array instead of a struct
15076         for __CYGWIN32__
15077
15078 Tue Apr 14 11:47:47 1998  Doug Evans  <devans@canuck.cygnus.com>
15079
15080         * libc/reent/impure.c (__ATTRIBUTE_IMPURE_DATA__): Fix spelling.
15081
15082 Mon Apr  6 15:05:08 1998  Jonathan Larmour  <jlarmour@cygnus.co.uk>
15083
15084         * libc/string/strxfrm.c: fix to get correct return value
15085
15086 Wed Apr  1 16:09:05 1998  Nick Clifton  <nickc@cygnus.com>
15087
15088         * libc/sys/arm/crt0.S: Set top of RAM to be 0x800000 for PE
15089         builds.  Make mode change labels global so that they will be seen
15090         by the debugger.
15091
15092 Wed Mar 18 09:45:10 1998  Nick Clifton  <nickc@cygnus.com>
15093
15094         * configure.in (links): Do not use ARM debiugging protocols for PE
15095         builds.
15096
15097         * libc/sys/arm/syscalls.c (_sbrk): Add "_sbrk: " to error
15098         message.
15099
15100 Fri Mar 13 11:24:34 1998  Jeff Johnston  <jjohnstn@cygnus.com>
15101
15102         * libc/stdio/findfp.c (__sinit): Made stdout default to
15103         line buffered mode as defined by ANSI.
15104
15105 Tue Mar 10 11:41:26 1997  Bob Manson  <manson@charmed.cygnus.com>
15106
15107         * libc/include/sys/itimer.h: New file.
15108
15109         * libc/signal/signal.c (__sigtramp_r,__sigtramp): New functions.
15110
15111 Mon Mar  9 14:19:26 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
15112
15113         * libc/machine/sh/memcpy.S: (_memcpy): Fix for execute/memcpy-1.c
15114         failure.
15115
15116 Fri Feb 27 13:56:10 1998  Michael Meissner  <meissner@cygnus.com>
15117
15118         * libc/machine/d30v/setjmp.S (longjmp): Fix order of parallel
15119         insns.
15120
15121 Wed Feb 25 09:29:54 1998  Nick Clifton  <nickc@cygnus.com>
15122
15123         * libc/sys/arm/syscalls.c (_open): Add varags to conform to prototype.
15124
15125 Tue Feb 24 18:00:13 1998  Michael Meissner  <meissner@cygnus.com>
15126
15127         * libc/machine/d30v/{setjmp.S,Makefile.in}: New files for D30V
15128         support.
15129
15130         * libc/include/machine/setjmp.h: Add D30V support.
15131
15132         * configure.in (d30v-*): Add d30v machine directory.
15133
15134 Mon Feb 23 09:32:58 1998  Mark Alexander  <marka@cygnus.com>
15135
15136         * configure.in: Don't use libc/sys/sysmec for MN10300; it's
15137         been replaced with libgloss/mn10300.
15138
15139 Sat Feb 21 17:44:43 1998  Geoffrey Noer  <noer@cygnus.com>
15140
15141         * libc/stdlib/mallocr.c: remove __malloc_copy routine now that
15142         it is no longer needed.
15143
15144 Thu Feb 19 16:15:10 1998  Geoffrey Noer  <noer@cygnus.com>
15145
15146         * libc/include/sys/signal.h: add sigpause proto for Cygwin32
15147
15148 Wed Feb 18 23:51:08 1998  Geoffrey Noer  <noer@cygnus.com>
15149
15150         * libc/stdio/fdopen.c (fdopen): Make all writes go to the end of
15151         the file when O_APPEND is set, wherever the EOF happens to be at
15152         that time.
15153
15154 Wed Feb 18 23:25:02 1998  Geoffrey Noer  <noer@cygnus.com>
15155
15156         patch from cgf@bbc.com (Christopher Faylor):
15157         * libc/stdio/freopen.c (freopen): Conform to standard UNIX
15158         convention of closing fp prior to attempting to open the file
15159         argument.  This allows correct operation when reopening
15160         stdin/stdout/stderr.  Replaces last freopen.c patch.
15161
15162 Wed Feb 18 16:27:40 1998  Geoffrey Noer  <noer@cygnus.com>
15163
15164         patch from cgf@bbc.com (Christopher Faylor):
15165         * libc/stdio/freopen.c: freopen was not preserving the fd
15166         of the stream being operated on.  This confuses programs that
15167         expect that the handles for stdout and stderr will be 1 and 2.
15168
15169 Mon Feb 16 23:34:07 1998  Andrew Cagney  <cagney@b1.cygnus.com>
15170
15171         * libc/sys/d10v/crt0.S (_start): Set PSW{SW} - select SPU.
15172
15173 Thu Feb 12 15:09:20 1998  Ranjith Kumaran <ranjith@cygnus.com>
15174
15175         * libc/sys/go32/longjmp.S: Fix longjmp to not return 0.
15176
15177 Wed Feb 11 17:50:45 1998  Jeff Johnston  <jjohnstn@cygnus.com>
15178
15179         * libc/machine/powerpc/setjmp.S (setjmp, longjmp): Alignment code
15180         altered to not use a branch.  Also added hint that last
15181         bclr in longjmp will likely result in branch.
15182
15183
15184 Mon Feb  9 03:44:02 1998  Geoffrey Noer  <noer@cygnus.com>
15185
15186         * libc/sys/cygwin32/crt0.c: add missing args to main() extern
15187
15188 Fri Feb  6 16:32:32 1998  Nick Clifton  <nickc@cygnus.com>
15189
15190         * libc/sys/sysnecv850/crt0.S (_start): Initialise _ctbp even for
15191         v850 builds.
15192
15193         * configure.in: Add -msmall-sld to target_cflags for v850 builds.
15194
15195 Wed Feb  4 16:56:20 1998  Jeff Johnston  <jjohnstn@cygnus.com>
15196
15197         * libc/machine/powerpc/setjmp.S (longjmp): Fixed code
15198         that loads FR14 to specify offset of 8 rather than 4
15199         so it loads from offset 96 (where setjmp stored it).
15200
15201 Tue Feb  3 18:08:34 1998  Jeff Johnston  <jjohnstn@cygnus.com>
15202
15203         * libc/machine/sh/memcpy.S: (_memcpy): Update to
15204         latest version supplied by customer.
15205         * libc/machine/sh/memset.S (_memset): Ditto.
15206
15207 Mon Feb  2 16:20:39 1998  Nick Clifton  <nickc@cygnus.com>
15208
15209         * libc/sys/sysnecv850/Makefile.in (OFILES): Add link.o (for
15210         PR14730).
15211
15212 Mon Feb  2 15:13:26 1998  Geoffrey Noer  <noer@cygnus.com>
15213
15214         * libc/include/string.h: remove redefinition of ffs
15215
15216 Wed Jan 28 13:30:14 1998  Geoffrey Noer  <noer@cygnus.com>
15217
15218         * libc/include/sys/signal.h: include _ansi.h so _EXFUN is
15219         defined
15220
15221 Wed Jan 28 10:38:34 1998  Jeff Johnston  <jjohnstn@cygnus.com>
15222
15223         * libc/machine/tic80/setjmp.S: Adding _setjmp to allow
15224         TI Libraries to link to libc.a
15225
15226 Sat Jan 24 10:15:56 1998  Michael Meissner  <meissner@cygnus.com>
15227
15228         * libc/include/sys/fcntl.h (_open,_fcntl): Add prototypes.
15229         * libc/include/sys/stat.h (_{,f}stat): Ditto.
15230         * libc/include/sys/wait.h (_wait): Ditto.
15231         * libc/include/sys/unistd.h (_close,_fork,_getpid): Ditto.
15232         (_link,_lseek,_read,_sbrk,_unlink,_write): Ditto.
15233
15234 Fri Jan 23 11:32:10 1998  Michael Meissner  <meissner@cygnus.com>
15235
15236         * libc/machine/d10v/setjmp.S: Change to new ABI.  Add simple
15237         minded stabs so function name shows up when running the simulator
15238         with -t.
15239         * libc/sys/d10v/{crt0,trap}.S: Ditto.
15240
15241 Thu Jan 22 15:57:14 1998  Fred Fish  <fnf@cygnus.com>
15242
15243         * libc/sys/d10v/trap.S: Change syscalls to use trap 15.
15244         * libc/sys/d10v/crt0.S: Use R6 where we used to use R2.
15245         Use R5 where we used to use R3.
15246
15247 Wed Jan 21 14:22:23 1998  Bill Moyer <billm@cygnus.com>
15248
15249         * libc/stdlib/getopt.c (getopt): replaced __progname
15250         with nargv[0] to improve portability to imbedded systems.
15251
15252 Thu Jan 15 12:32:38 1998  Nick Clifton  <nickc@cygnus.com>
15253
15254         * libc/sys/arm/syscalls.c (initialise_angel_handles): Applied
15255         patch supplied by Tont.Thompson@arm.com to fix the creation of the
15256         stdout file.
15257
15258 Wed Jan 14 13:00:19 1998  Ian Lance Taylor  <ian@cygnus.com>
15259
15260         * libc/stdio/tmpnam.c (worker): Generate a different file name
15261         each time.
15262
15263         * libc/posix/popen.c (popen): If __CYGWIN32__, and execing /bin/sh
15264         fails, try an execlp for sh.
15265
15266         * host/any (INCLUDES): If target_os is cygwin32, then add a -I
15267         option for the winsup include directory.
15268
15269 Wed Jan  7 17:02:58 1998  Nick Clifton  <nickc@cygnus.com>
15270
15271         * libc/sys/arm/syscalls.c: Applied patches for Angel based remote
15272         debugging interface from Tony.Thompson@arm.com.
15273
15274         * libc/sys/arm/crt0.S (_mainCRTStartup): ditto.
15275         * libc/sys/arm/swi.h: ditto.
15276
15277 Tue Jan  6 14:15:10 1998  Geoffrey Noer  <noer@cygnus.com>
15278
15279         * libc/sys/cygwin32/sys/dirent.h: add __d_dirhash field to
15280         DIR struct used for readdir hashes.
15281
15282 Thu Jan  1 11:22:22 1998  Jeffrey A Law  (law@cygnus.com)
15283
15284         * libc/string/strchr.c: Use "unsigned chars" as necessary.
15285
15286 Wed Dec 31 04:25:30 1997  Jeffrey A Law  (law@cygnus.com)
15287
15288         * libc/stdlib/mallocr.c (idx2binblock): Don't lose on 16bit
15289         integer targets.
15290
15291 Sat Dec 13 15:11:06 1997  Ian Lance Taylor  <ian@cygnus.com>
15292
15293         * libc/stdlib/mallocr.c (__malloc_copy): New function, compiled if
15294         INTERNAL_NEWLIB and __CYGWIN32__ and DEFINE_MALLOC.
15295         * libc/include/malloc.h: Add extern "C" if __cplusplus.
15296         (__malloc_copy): Declare.
15297
15298 Wed Dec 10 12:15:54 1997  Ian Lance Taylor  <ian@cygnus.com>
15299
15300         * libc/stdlib/mallocr.c: If INTERNAL_NEWLIB, include
15301         <sys/config.h>.
15302         (POINTER_UINT): Define.
15303         (DEFAULT_TRIM_THRESHOLD): Mark constants as long.
15304         (MALLOC_ALIGNMENT): Don't define if already defined.
15305         (malloc_extend_top): Cast pointers to POINTER_UINT, not unsigned
15306         long.
15307
15308 Tue Dec  9 19:23:42 1997  Michael Meissner  <meissner@cygnus.com>
15309
15310         * libc/string/memset.c (memset): Fiddle with code so that the long
15311         value being stored is not a stack value.  Unroll storing longs 4
15312         times.
15313
15314 Tue Dec  9 14:13:18 1997  Jeff Johnston  <jjohnstn@cygnus.com>
15315
15316         * Reduce code size for libm modules.
15317         * libm/math/w_sqrt.c (sqrt): Remove call to kernel_standard
15318         and simply move code into sqrt.
15319         * libm/math/wrf_lgamma.c (lgammaf_r): Likewise.
15320         * libm/math/wr_lgamma.c (lgamma_r): Likewise.
15321         * libm/math/wrf_gamma.c (gammaf_r): Likewise.
15322         * libm/math/wr_gamma.c (gamma_r): Likewise.
15323         * libm/math/wf_sinh.c (sinfh): Likewise.
15324         * libm/math/w_sinh.c (sinh): Likewise.
15325         * libm/math/wf_scalb.c (scalbf): Likewise.
15326         * libm/math/w_scalb.c (scalb): Likewise.
15327         * libm/math/wf_remainder.c (remainderf): Likewise.
15328         * libm/math/w_remainder.c (remainder): Likewise.
15329         * libm/math/wf_pow.c (powf): Likewise.
15330         * libm/math/w_pow.c (pow): Likewise.
15331         * libm/math/wf_log10.c (log10f): Likewise.
15332         * libm/math/w_log10.c (log10): Likewise.
15333         * libm/math/wf_log.c (logf): Likewise.
15334         * libm/math/w_log.c (log): Likewise.
15335         * libm/math/w_lgamma.c (lgamma): Likewise.
15336         * libm/math/wf_lgamma.c (lgammaf): Likewise.
15337         * libm/math/wf_jn.c (jnf): Likewise.
15338         * libm/math/w_jn.c (jn): Likewise.
15339         * libm/math/wf_j1.c (j1f): Likewise.
15340         * libm/math/w_j1.c (j1): Likewise.
15341         * libm/math/wf_j0.c (j0f): Likewise.
15342         * libm/math/w_j0.c (j0): Likewise.
15343         * libm/math/wf_hypot.c (hypotf): Likewise.
15344         * libm/math/w_hypot.c (hypot): Likewise.
15345         * libm/math/wf_gamma.c (gammaf): Likewise.
15346         * libm/math/w_gamma.c (gamma): Likewise.
15347         * libm/math/wf_fmod.c (fmodf): Likewise.
15348         * libm/math/w_fmod.c (fmod): Likewise.
15349         * libm/math/wf_exp.c (expf): Likewise.
15350         * libm/math/w_exp.c (exp): Likewise.
15351         * libm/math/wf_cosh.c (coshf): Likewise.
15352         * libm/math/w_cosh.c (cosh): Likewise.
15353         * libm/math/wf_atanh.c (atanhf): Likewise.
15354         * libm/math/w_atanh.c (atanh): Likewise.
15355         * libm/math/wf_atan2.c (atan2f): Likewise.
15356         * libm/math/w_atan2.c (atan2): Likewise.
15357         * libm/math/wf_asin.c (asinf): Likewise.
15358         * libm/math/w_asin.c (asin): Likewise.
15359         * libm/math/wf_acosh.c (acoshf): Likewise.
15360         * libm/math/w_acosh.c (acosh): Likewise.
15361         * libm/math/wf_acos.c (asocf): Likewise.
15362         * libm/math/w_acos.c (acos): Likewise.
15363         * libm/math/wf_sqrt.c (sqrtf): Likewise.
15364         * libm/math/k_standard.c (_k_standard): Don't require SVID behavior
15365         for embedded systems.
15366
15367 Mon Dec  8 12:12:58 1997  Ian Lance Taylor  <ian@cygnus.com>
15368
15369         * libc/stdlib/mallocr.c (malloc_extend_top): Add patch from Doug
15370         Lea in case of a foreign sbrk.
15371
15372 Fri Dec  5 23:27:28 1997  Ian Lance Taylor  <ian@cygnus.com>
15373
15374         Incorporate Doug Lea's malloc:
15375         * libc/stdlib/mallocr.c: Completely replaced.
15376         * libc/stdlib/malloc.c: Document malloc_usable_size and memalign.
15377         (realloc): Remove.
15378         * libc/stdlib/calloc.c (calloc): Just call _calloc_r.
15379         * libc/stdlib/mstats.c: Document mallinfo, malloc_stats, and
15380         mallopt.
15381         (mallinfo, malloc_stats, mallopt): New functions.
15382         (_mstats_r): Just call _malloc_stats_r.
15383         * libc/stdlib/malign.c: New file.
15384         * libc/stdlib/mlock.c: New file.
15385         * libc/stdlib/msize.c: New file.
15386         * libc/stdlib/mtrim.c: New file.
15387         * libc/stdlib/realloc.c: New file.
15388         * libc/stdlib/valloc.c: New file.
15389         * libc/stdlib/malloc.h: Remove.
15390         * libc/stdlib/callocr.c: Remove.
15391         * libc/stdlib/Makefile.in (OFILES): Add cfreer.o, freer.o,
15392         malign.o, malignr.o, mallinfor.o, malloptr.o, mallstatsr.o,
15393         mlock.o, msize.o, msizer.o, mtrim.o, pvallocr.o, realloc.o,
15394         reallocr.o, valloc.o, vallocr.o.
15395         (CHEWOUT_FILES): Add mlock.def, mstats.def.
15396         (MALLOC_CFLAGS): New variable.
15397         (mallocr.o): New target, build from mallocr.c.
15398         (freer.o, reallocr.o, callocr.o, cfreer.o, malignr.o): Likewise.
15399         (vallocr.o, pvallocr.o, mallinfor.o, mallstatsr.o): Likewise.
15400         (msizer.o, malloptr.o): Likewise.
15401         (malign.o, mlock.o, msize.o, mtrim.o, realloc.o): New targets.
15402         (valloc.o): New target.
15403         * libc/stdlib/stdlib.tex: Include mlock.def and mstats.def.
15404         * libc/include/malloc.h: Declare struct mallinfo, and new
15405         routines.
15406         * libc/include/stdlib.h (cfree): Correct declaration.
15407
15408 Tue Dec  2 10:12:16 1997  Nick Clifton  <nickc@cygnus.com>
15409
15410         * libc/include/machine/setjmp.h: Add support for Thumb target.
15411
15412         * libc/include/machine/ieeefp.h: Add support for Thumb target.
15413
15414         * configure.in (links): Add support for Thumb target.
15415
15416 Wed Nov 26 09:56:17 1997  Nick Clifton  <nickc@cygnus.com>
15417
15418         * libc/sys/arm/setjmp.S: Updated with version from branch.
15419
15420 Thu Nov 20 01:21:43 1997  Geoffrey Noer  <noer@cygnus.com>
15421
15422         * libc/include/stdio.h: add POSIX-required define L_ctermid
15423         for ctermid
15424
15425 Wed Nov 19 16:11:40 1997  Michael Meissner  <meissner@cygnus.com>
15426
15427         * configure.in (d30v-*-*): Define ABORT_MESSAGE, SMALL_MEMORY, in
15428         addition to MISSING_SYSCALL_NAMES.
15429
15430 Mon Nov 17 20:05:05 1997  J"orn Rennecke <amylaar@cygnus.co.uk>
15431
15432         * libc/include/sys/config.h: (UINT_MAX, for D10V):  Make unsigned.
15433
15434 Mon Nov 10 22:26:55 1997  Geoffrey Noer  <noer@cygnus.com>
15435
15436         * libc/include/string.h: change strsignal proto to return
15437         a char *.  This eliminates compile problems in gdb resulting
15438         from gdb's definition of strsignal in defs.h.
15439
15440 Mon Nov 10 17:11:08 1997  Geoffrey Noer  <noer@cygnus.com>
15441
15442         * libc/sys/cygwin32/sys/utime.h: new (moved here from
15443         winsup/include) so as not to conflict with the one in
15444         libc/include.
15445         * libc/include/string.h: add protos for strsignal, strtosigno
15446
15447 Mon Nov 10 13:49:54 1997  Michael Meissner  <meissner@cygnus.com>
15448
15449         * libc/include/sys/config.h: Define __IEEE_BIG_ENDIAN if d30v.
15450
15451         * configure.in (d30v-*-*): Add configuration.
15452
15453 Thu Oct 30 14:01:23 1997  Nick Clifton  <nickc@cygnus.com>
15454
15455         * configure.in (links): Add -DARM_RD[P|I]_MONITOR to target_cflags
15456         to select which kind of debug monitor is in use for an ARM target.
15457
15458         * libc/sys/arm/crt0.S: New version: Supports Thumb startups and
15459         Angel and Demon debug monitors.  Part of this code was supplied by
15460         Tony Thompson at ARM: athompso@arm.com.
15461
15462 Fri Oct 24 18:57:05 1997  Jeffrey A Law  (law@cygnus.com)
15463
15464         * strncat.c (strncat): Don't call strncpy; strncay has the wrong
15465         semantics when the count is greater than the length of the second
15466         source string.
15467
15468 Thu Oct 23 01:37:41 1997  Geoffrey Noer  <noer@cygnus.com>
15469
15470         * libc/include/sys/signal.h: reorder CYGWIN32 signal numbers
15471         * libc/include/sys/unistd.h: add protos for usleep, truncate,
15472         truncate and ftruncate take off_t, not size_t
15473
15474 Tue Oct 21 18:42:00 1997  Jim Wilson  <wilson@cygnus.com>
15475
15476         * libc/string/strcat.c (strcat): Add missing comment end.
15477         * libc/string/strncat.c (strncat): Likewise.
15478
15479 Tue Oct 21 17:23:34 1997  Nick Clifton  <nickc@cygnus.com>
15480
15481         * configure.in (links): Define PREFER_SIZE_OVER_SPEED for v850
15482         targets.
15483         * libc/string/{memchr.c, memcmp.c, memcpy.c}:   Add space
15484         optimised version which is selected if PREFER_SIZE_OVER_SPEED is
15485         defined.
15486         * libc/string/{memset.c, strcat.c, strchr.c}: Likewise.
15487         * libc/string/{strcmp.c, strcpy.c, strlen.c}: Likewise.
15488         * libc/string/{strncat.c, strncmp.c, strncpy.c}: Likewise.
15489
15490 Mon Oct 13 15:12:35 1997  Ian Lance Taylor  <ian@cygnus.com>
15491
15492         * libc/include/sys/param.h (BIG_ENDIAN): Define if __i386__.
15493         (LITTLE_ENDIAN, BYTE_ORDER): Likewise.
15494
15495 Thu Oct  9 13:54:44 1997  Doug Evans  <dje@canuck.cygnus.com>
15496
15497         * libc/machine/i386/setjmp.S: New file.
15498         * libc/machine/i386/Makefile.in: Delete COPYOFILES.
15499         (OFILES): Add setjmp.o.
15500         (setjmp.o): Add rule for.
15501         * configure.in: Don't set machine_dir for *-*-{go32,sco*,cygwin32}.
15502
15503 Tue Oct  7 14:01:29 1997 Bill Moyer     (billm@cygnus.com)
15504                          Jeffrey A Law  (law@cygnus.com)
15505
15506         * libc/string/{memchr.c, memcmp.c, memcpy.c}: Reimplement to run faster.
15507         * libc/string/{memset.c, strcat.c, strchr.c}: Likewise.
15508         * libc/string/{strcmp.c, strcpy.c, strlen.c}: Likewise.
15509         * libc/string/{strncat.c, strncmp.c, strncpy.c}: Likewise.
15510
15511 Mon Oct  6 14:07:59 1997  Nick Clifton  <nickc@cygnus.com>
15512
15513         * libc/sys/sysnecv850/Makefile.in (crt0.o trap.o): Explicit
15514         rules.
15515
15516         * libc/include/sys/config.h: Use __v850 to select v850
15517         endianness.
15518
15519         * libc/include/machine/setjmp.h: Use __v850 to select v850 jump
15520         buffer size.
15521
15522         * libc/include/machine/ieeefp.h: Use __v850 to select v850
15523         endianness.
15524
15525 Thu Sep 25 14:11:37 1997  Geoffrey Noer  <noer@cygnus.com>
15526
15527         * libc/stdlib/setenv.c: change unsetenv definition to match
15528         style of setenv (with _DEFUN).  The string should be a const.
15529         * libc/include/stdlib.h: unsetenv proto should return void.
15530
15531 Tue Sep 23 18:17:20 1997  Geoffrey Noer  <noer@cygnus.com>
15532
15533         * libc/include/stdlib.h: define unsetenv proto for __CYGWIN32__
15534
15535 Thu Sep 18 12:50:15 1997  Angela Marie Thomas (angela@cygnus.com)
15536
15537         * libc/stdio/glue.h: remove.
15538         * libc/stdio/findfp.c, libc/stdio/fwalk.c: remove #include "glue.h"
15539         * libc/stdio/Makefile.in: remove glue.h dependencies
15540
15541 Wed Sep 17 17:42:27 1997  Nick Clifton  <nickc@cygnus.com>
15542
15543         * libc/sys/sysnecv850/crt0.S: Created V850e version.
15544
15545 Tue Sep  9 10:40:57 1997  Doug Evans  <dje@canuck.cygnus.com>
15546
15547         * configure.in (target_cpu): Add `arc'.
15548
15549 Tue Sep  9 10:40:42 1997  Joel Sherrill  <joel@OARcorp.com>
15550
15551         * newlib/configure.in (*-*-rtems*): Add -DSIGNAL_PROVIDED and
15552           -DREENTRANT_SYSCALLS_PROVIDED to the target_cflags.
15553         * newlib/libc/include/sys/errno.h: Add ENOTSUP.
15554         * newlib/libc/reent/reent.c: Add _wrapup_reent.
15555         * newlib/libc/sys/rtems/sys/types.h: Avoid redefinitions for go32.
15556
15557 Sun Sep  7 16:41:41 1997  Gavin Koch  <gavin@cygnus.com>
15558
15559         * libc/machine/mips/setjmp.S: Handle mips16 builds.
15560
15561 Thu Aug 21 20:05:38 1997  Ian Lance Taylor  <ian@cygnus.com>
15562
15563         * libc/include/stdio.h (siprintf): Declare.
15564
15565 Mon Aug 18 11:19:13 1997  Nick Clifton  <nickc@cygnus.com>
15566
15567         * libc/sys/sysnecv850/Makefile.in (.c.o): Add rule that includes
15568         TARGET_CFLAGS and NEWLIB_FLAGS.
15569
15570 Mon Aug 18 11:15:43 1997  Nick Clifton  <nickc@cygnus.com>
15571
15572         * configure.in (links): Add support for v850ea target.
15573
15574 Mon Aug 18 11:15:43 1997  Nick Clifton  <nickc@cygnus.com>
15575
15576         * configure.in (links): Add support for v850e target.
15577
15578 Wed Aug 13 19:16:54 1997  Nick Clifton  <nickc@cygnus.com>
15579
15580         * libc/sys/sysnecv850/crt0.S: Remove initial setting of r0 to 0.
15581
15582 Mon Aug 11 15:49:54 1997  Doug Evans  <dje@canuck.cygnus.com>
15583
15584         * configure.in (arc-*-*): Add support for.
15585         * libc/include/machine/ieeefp.h (__arc__): Add support for the ARC.
15586
15587 Fri Jul 25 17:37:41 1997  J"orn Rennecke <amylaar@cygnus.co.uk>
15588
15589         * libc/sys/sh/crt0.S (start): Add fpscr initialization for SH4.
15590
15591 Thu Jul 24 18:32:17 1997  Geoffrey Noer  <noer@cygnus.com>
15592
15593         * libc/stdlib/bsearch.c (bsearch): remove last unneeded
15594         comparison which accesses invalid memory when the key is
15595         larger than the last member of the array.
15596         * libc/include/machine/setjmp.h: add sigsetjmp, siglongjmp
15597         for CYGWIN32
15598         * libc/include/sys/unistd.h: add _POSIX defines for CYGWIN32
15599
15600 Tue Jul 22 16:03:06 1997  Ian Lance Taylor  <ian@cygnus.com>
15601
15602         * libc/include/stdlib.h (realpath): Declare if __CYGWIN32__ and
15603         not _STRICT_ANSI.
15604
15605 Thu Jul 10 15:11:52 1997  Doug Evans  <dje@canuck.cygnus.com>
15606
15607         * libm/math/k_standard.c (__kernel_standard): Call fflush(stdout)
15608         ifndef _USE_WRITE, instead of ifdef _USE_WRITE.
15609
15610 Thu Jul 10 16:00:09 1997  Mike Meissner  <meissner@cygnus.com>
15611
15612         * libc/machine/tic80/setjmp.S (setjmp,longjmp): Use ld.d and st.d
15613         to load/store memory.
15614
15615 Mon Jul  7 17:38:17 1997  Ian Lance Taylor  <ian@cygnus.com>
15616
15617         * libc/include/sys/fcntl.h: Define _O_* symbols with leading
15618         underscores if _WIN32.
15619
15620 Wed Jul  2 10:07:20 1997  Doug Evans  <dje@canuck.cygnus.com>
15621
15622         * libm/math/k_standard.c (__kernel_standard): Delete reentrancy
15623         support ifdef _USE_WRITE missed in last change.
15624         From Anders Blomdell <anders.blomdell@control.lth.se>.
15625
15626 Wed Jun 25 10:18:49 1997  Doug Evans  <dje@canuck.cygnus.com>
15627
15628         * libc/stdio/tmpnam.c (worker): Handle _open_r being stubbed out.
15629         (_tmpnam_r, _tempnam_r): Update.
15630
15631 Wed Jun 25 00:16:55 1997  Mark Alexander  <marka@cygnus.com>
15632
15633         * libc/machine/sparc/setjmp.S: New file.
15634         * libc/machine/sparc/Makefile.in: Add setjmp.
15635         * libc/include/machine/setjmp.h: Increase jmpbuf size for sparc.
15636
15637 Tue Jun 24 23:27:38 1997  Mark Alexander  <marka@cygnus.com>
15638
15639         * libc/include/machine/setjmp.h: Use __TIC80__ instead of __tic80__.
15640
15641 Tue Jun 24 14:53:40 1997  Doug Evans  <dje@canuck.cygnus.com>
15642
15643         From Joel Sherrill <joel@oarcorp.com>.
15644         * libc/stdlib/getenv.c (_findenv): Avoid dereferencing null `environ'.
15645
15646         Add rtems support.  From Joel Sherrill <joel@oarcorp.com>.
15647         * configure.in: Recognize *-*-rtems*.
15648         * libc/sys/rtems/{Makefile.in,crt0.c,dummysys.c}: New files.
15649         * libc/sys/rtems/sys/{features.h,sched.h,siginfo.h,signal.h,
15650         time.h,times.h,types.h}: New files.
15651         * libc/sys/rtems/include/{limits.h,signal.h,time.h}. New files.
15652
15653 Fri Jun 20 11:13:16 1997  Geoffrey Noer  <noer@cygnus.com>
15654
15655         patch from sos@prospect.com.ru (Sergey Okhapkin):
15656         * include/sys/wait.h: correct operator precidence bug
15657         in WIFSIGNALED
15658
15659 Wed Jun 18 22:08:27 1997  Geoffrey Noer  <noer@cygnus.com>
15660
15661         * libc/include/stdlib.h: remove unsetenv proto since it conflicts
15662         with newlib's unsetenv function
15663         * libc/sys/cygwin32/sys: new directory for includes
15664         * libc/sys/cygwin32/sys/dirent.h: move cygwin32's dirent.h
15665         here from winsup/include/sys
15666
15667 Mon Jun 16 21:02:22 1997  Geoffrey Noer  <noer@cygnus.com>
15668
15669         * libc/include/sys/unistd.h: _exit should only be
15670         labelled noreturn when not __CYGWIN32__
15671         * libc/include/stdlib.h: for __CYGWIN32__, add proto for unsetenv
15672         * libc/include/sys/signal.h: add SIGIO to _WIN32 list and
15673         increment NSIG
15674
15675 Thu Jun 12 18:52:41 1997  Ian Lance Taylor  <ian@cygnus.com>
15676
15677         * libc/include/sys/time.h: Only define timeval and timezone if
15678         _GNU_H_WINDOWS32_SOCKETS is not defined.
15679         * libc/include/sys/stat.h: If _WIN32, define _S_IFMT, etc.
15680
15681 Wed Jun 11 09:46:26 1997  Jeffrey A Law  (law@cygnus.com)
15682
15683         * libc/machine/mn10200/setjmp.S: Implement setjmp/longjmp
15684         * libc/machine/mn10300/setjmp.S: Likewise.
15685
15686         * libc/sys/sysmec/crt0.S: Use "call" instead of "calls" for
15687         the mn10300 (more relaxing opportunities).
15688
15689 Tue Jun 10 17:24:45 1997  Mike Meissner  <meissner@cygnus.com>
15690
15691         * configure.in (powerpc*-*-{eabi,elf,linux,rtems,sysv,solaris}):
15692         Build libraries with -mstrict-align.
15693
15694 Fri Jun  6 14:07:59 1997  Ian Lance Taylor  <ian@cygnus.com>
15695
15696         * libc/string/strlwr.c: New file.
15697         * libc/string/strupr.c: New file.
15698         * libc/include/string.h: Declare strlwr and strupr.
15699         * libc/string/Makefile.in (OFILES): Add strlwr.o and strupr.o.
15700         (CHEWOUT_FILES): Add strlwr.def and strupr.def.
15701         (strlwr.o, strupr.o): New targets.
15702         * libc/string/strings.tex: Include strlwr and strupr docs.
15703
15704         * libc/include/sys/types.h: Don't define u_char, et. al., if
15705         _GNU_H_WINDOWS32_SOCKETS is defined.  Likewise for fd_set,
15706         et. al.  Make FD_SETSIZE default 64 rather than 60.  Define
15707         _types_fd_set rather than fd_set, and define fd_set as a macro.
15708
15709         * libc/include/malloc.h: New file.
15710
15711         * libc/include/string.h: Define strcmpi, stricmp, strncmpi, and
15712         strnicmp if they are not already defined.
15713
15714         * libc/include/time.h: If __CYGWIN32__, declare tzset and define
15715         _timezone, _daylight, and _tzname.
15716
15717 Wed Jun  4 12:51:16 1997  Doug Evans  <dje@canuck.cygnus.com>
15718
15719         * configure.in: Sort all configuration tables.
15720
15721         From Joel Sherrill <joel@oarcorp.com>
15722         * Makefile.in (stmp-targ-include): Copy $(sys_dir)/include/*.h.
15723
15724 Tue Jun  3 14:47:46 1997  Ian Lance Taylor  <ian@cygnus.com>
15725
15726         * libc/include/sys/signal.h: Don't include <sys/types.h>.  Just
15727         use int when declaring kill.
15728
15729         * libc/include/sys/timeb.h: New file.
15730
15731 Mon Jun  2 12:06:58 1997  Geoffrey Noer  <noer@cirdan.cygnus.com>
15732
15733         * libc/include/sys/time.h: add itimer support for Cygwin32
15734
15735 Mon May 19 11:56:46 1997  Mike Meissner  <meissner@cygnus.com>
15736
15737         * libc/stdlib/abort.c (abort): If ABORT_MESSAGE is defined, write
15738         out a message that abort was called to stderr.
15739
15740 Fri May 16 15:02:59 1997  Bob Manson  <manson@charmed.cygnus.com>
15741
15742         * libc/sys/sysmec/fstat.c (_fstat): Set st_blksize to 4096
15743         so that libio doesn't freak.
15744
15745         * libc/sys/sysmec/sbrk.c (_sbrk): The argument is a size_t, not
15746         int.
15747
15748         * libc/stdlib/mallocr.c (_morecore_r): Use size_t for
15749         memory sizes, not int.
15750
15751 Wed May 14 21:16:58 1997  Bob Manson  <manson@charmed.cygnus.com>
15752
15753         * libm/math/ef_hypot.c: Use long constants where
15754         appropriate.
15755         * libm/math/ef_sqrt.c: Ditto.
15756
15757         * libc/sys/sysmec/times.c(_times): Change to times.
15758
15759         * libc/sys/sysmec/read.c(_read): The third argument is
15760         size_t.
15761         * libc/sys/sysmec/write.c (_write): Ditto.
15762
15763         * libc/sys/sysmec/lseek.c: Include unistd.h for off_t.
15764         (_lseek): It's off_t for the second argument.
15765
15766 Wed May 14 15:23:36 1997  Mike Meissner  <meissner@cygnus.com>
15767
15768         * libc/include/sys/config.h (__IEEE_LITTLE_ENDIAN): Define here,
15769         as well as machine/ieeefp.h.
15770
15771 Thu May  8 15:47:25 1997  Geoffrey Noer  <noer@cygnus.com>
15772
15773         * libc/include/sys/signal.h: add signal protos for winsup
15774         functions (when __CYGWIN32__), include types.h
15775         * libc/include/sys/types.h: Change __go32_types__ internal
15776         define to __MS_types__ since it's used for more than just
15777         GO32 configs.  Define this if GO32, __MSDOS__, or _WIN32 are
15778         defined.
15779         * libc/include/sys/unistd.h: add ftruncate proto for
15780         winsup functions (when __CYGWIN32__)
15781
15782 Fri Apr 25 10:10:16 1997  Doug Evans  <dje@canuck.cygnus.com>
15783
15784         * libc/sys/h8300hms/sbrk.c (stack_ptr): Add definition.
15785
15786 Thu Apr 24 15:46:51 1997  Mike Stump  <mrs@cygnus.com>
15787
15788         * libc/include/machine/setjmp.h: Add tic80 support.
15789         * libc/machine/tic80/setjmp.S: Likewise.
15790
15791 Tue Apr 22 16:54:40 1997  Geoffrey Noer  <noer@pizza.cygnus.com>
15792
15793         * libc/sys/cygwin32/crt0.c: Add reference to main() so we can
15794         link programs from libraries only (such as in the X11
15795         distribution)
15796
15797 Mon Apr 21 15:02:12 1997  Fred Fish  <fnf@cygnus.com>
15798
15799         * libc/sys/arm/syscalls.c (signal): Remove stub, signal()
15800         supplied elsewhere in newlib.
15801
15802 Mon Apr 14 16:25:55 1997  Ian Lance Taylor  <ian@cygnus.com>
15803
15804         * Makefile.in (INSTALL): Change install.sh to install-sh.
15805
15806 Fri Apr 11 17:04:02 1997  Jason Molenda  (crash@godzilla.cygnus.co.jp)
15807
15808         * README: update WWW address for on-line documentation.
15809
15810 Wed Apr  9 00:38:13 1997  Geoffrey Noer  <noer@cygnus.com>
15811
15812         * libc/include/sys/signal.h: for _WIN32, define SIGCONT and
15813         increment NSIG
15814
15815 Mon Apr  7 23:54:00 1997  Jeffrey A Law  (law@cygnus.com)
15816
15817         * libc/sys/sysmec/crt0.S: Update for new calling conventions on the
15818         mn10300.
15819         * libc/sys/sysmec/trap.S: Don't compare a register to itself.
15820
15821 Tue Mar 25 08:47:43 1997  Jeffrey A Law  (law@cygnus.com)
15822
15823         * libc/sys/arm/syscalls.c: Fix/add stack/heap collision detection.
15824         * libc/sys/d10v/syscalls.c: Likewise.
15825         * libc/sys/h8300hms/sbrk.c: Likewise.
15826         * libc/sys/h8500hms/syscalls.c: Likewise.
15827         * libc/sys/m88kbug/syscalls.c: Likewise.
15828         * libc/sys/sh/syscalls.c: Likewise.
15829         * libc/sys/sysmec/sbrk.c: Likewise.
15830         * libc/sys/sysnecv850/sbrk.c: Likewise.
15831         * libc/sys/w65/syscalls.c: Likewise.
15832         * libc/sys.tex: Update sbrk sample code to include stack/heap collision.
15833
15834 Tue Mar 18 14:14:34 1997  Jeffrey A Law  (law@cygnus.com)
15835
15836         * libc/sys/sysmec/trap.S: Use "syscall" to trigger an
15837         emulated syscall instead of "trap".
15838
15839 Fri Mar 14 11:26:13 1997  Michael Meissner  <meissner@cygnus.com>
15840
15841         * libc/sys/d10v/trap.S (__trap0): Use trap 15 for system calls,
15842         not trap 0.
15843
15844 Sun Mar  9 23:27:04 1997  Doug Evans  <dje@seba.cygnus.com>
15845
15846         * configure.in (m32r-*-*): Add -msdata=sdata to target_cflags.
15847
15848 Sat Mar  8 09:05:01 1997  Fred Fish  <fnf@cygnus.com>
15849
15850         * libc/machine/arm/Makefile.in: Fix comment, is for "arm"
15851         not "sh".
15852         * libc/machine/m32r/Makefile.in: Fix comment, is for "m32r"
15853         not "d10v".
15854         * libc/sys/tic80/crt0.c: New file for TIc80.
15855         * libc/sys/tic80/Makefile.in: New file for TIc80.
15856         * libc/machine/tic80/Makefile.in: New file for TIc80.
15857
15858 Wed Mar  5 11:32:12 1997  J.T. Conklin  <jtc@cygnus.com>
15859
15860         * libc/machine/sh/memcpy.S: New file.
15861         * libc/machine/sh/memset.S: New file.
15862         * libc/machine/sh/Makefile.in (OFILES): Add memcpy.o and memset.o
15863
15864 Thu Feb 27 16:27:55 1997  Fred Fish  <fnf@cygnus.com>
15865
15866         * libc/include/machine/ieeefp.h (_IEEE_LITTLE_ENDIAN): Define
15867         for TIc80.
15868
15869 Wed Feb 26 13:43:39 1997  Jeffrey A Law  (law@cygnus.com)
15870
15871         * libc/sys/sysmec/crt0.S: Handle new calling conventions for
15872         the mn10200.
15873
15874 Wed Feb 26 07:11:03 1997  Michael Meissner  <meissner@cygnus.com>
15875
15876         * libc/machine/powerpc/setjmp.S (longjmp): Correct return status
15877         (patch from andrew@pogo.WV.TEK.COM).
15878
15879 Fri Feb 14 11:49:28 1997  Doug Evans  <dje@canuck.cygnus.com>
15880
15881         * libc/machine/m32r/setjmp.S (setjmp): Save r12.
15882         (longjmp): Restore r12. Fix code that handles returning 1 if passed 0.
15883
15884 Mon Feb 10 10:02:34 1997  Fred Fish  <fnf@cygnus.com>
15885
15886         * configure.in:  Add cases for "tic80" to set machine_dir,
15887         sys_dir, and syscall_dir.
15888
15889 Sun Feb  2 17:57:15 1997  Geoffrey Noer  <noer@cygnus.com>
15890
15891         * libc/sys/cygwin32/crt0.c: initialize floating pt registers
15892
15893 Wed Jan 29 15:57:38 1997  Geoffrey Noer  <noer@cygnus.com>
15894
15895         * libc/include/math.h: avoid conflicts with ANSI C++ <exception>
15896
15897 Mon Jan 27 12:50:01 1997  Doug Evans  <dje@seba.cygnus.com>
15898
15899         * libc/machine/m32r/setjmp.S: Use proper comment delimiter.
15900         Use proper constant prefix.
15901
15902 Fri Jan 24 10:59:04 1997  Jeffrey A Law  (law@cygnus.com)
15903
15904         * libc/sys/sysmec/*.c: Don't cast args to syscall to integers,
15905         that loses on the mn10200 where ints and pointers are different
15906         sizes.
15907
15908 Tue Jan 14 13:29:55 PST 1997  Jeremy Allison <jra@cygnus.com>
15909
15910         * configure.in: Added -DSIGNAL_PROVIDED to cygwin32
15911         target as signal is provided in winsup.
15912
15913 Tue Jan 14 11:10:13 1997  Jeremy Allison <jra@cygnus.com>
15914
15915         * libc/include/sys/process.h: Corrected const definitions
15916         in spawn functions. Added cwait.
15917
15918 Thu Jan  2 12:22:41 1997  Jeffrey A Law  (law@cygnus.com)
15919
15920         * libc/include/machine/ieeefp.h: mn10200 uses 16bit ints and 32bit
15921         doubles.
15922         * libc/include/sys/config.h: Similarly.
15923
15924 Tue Dec 31 18:36:14 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
15925
15926         * configure.in (sparc-sun-sunos*): Add -DSIGNAL_PROVIDED to the
15927         target_cflags.
15928         (i[3456]86-*-sco*): Ditto.
15929
15930         * libc/signal/Makefile.in (OFILES): Add signal.o.
15931         (CFILES): Add signal.c.
15932
15933         * libc/signal/raise.c (_raise_r): Only compile code if
15934         SIGNAL_PROVIDED is defined.
15935
15936         * libc/signal/signal.c: Redo whole file so that it works with
15937         current newlib.  Use _kill_r if no signal handler provided.
15938
15939         * libc/sys/{go32,sparc64,sysmec}/Makefile.in: Delete raise and
15940         signal stubs.
15941         * libc/sys/sysvnecv70/Makefile.in: Ditto.
15942         * libc/sys/sysnecv850/Makefile.in: Ditto.
15943
15944         * libc/sys/{go32,sparc64}/signal.c: Delete, stub no longer used.
15945         * libc/sys/sysmec/{raise,signal}.c: Ditto.
15946         * libc/sys/sysvnecv70/signal.s: Ditto.
15947         * libc/sys/sysnecv850/raise.c: Ditto.
15948
15949         * libc/sys/sysnecv850/kill.c (_kill): Encode signal # so that
15950         simulator and debugger can tell the difference between a signal
15951         being raised and an exit system call.
15952
15953         * NEWS: Document software signals being provided.
15954
15955 Mon Dec 23 11:54:19 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
15956
15957         * libc/reent/impure.c (_REENT_ATTR): Delete in favor of
15958         __ATTRIBUTE_IMPURE_PTR__.  Move PowerPC definition to
15959         include/sys/config.h.
15960         (impure_data): Use __ATTRIBUTE_IMPURE_DATA__ for attributes.
15961         Change from 'inpure_data'.
15962         (_impure_ptr): Use __ATTRIBUTE_IMPURE_PTR__ for attributes.  Use
15963         &impure_data, not &inpure_data.
15964
15965         * libc/include/sys/config.h (__ATTRIBUTE_IMPURE_PTR__): If PowerPC
15966         and and System V ABI, define so that _impure_ptr lives in the
15967         .sdata section.
15968
15969 Sun Dec 22 23:33:05 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
15970
15971         * libc/include/sys/reent.h (__ATTRIBUTE_IMPURE_PTR__): Define as
15972         nothing if not defined.
15973         (_impure_ptr): Use __ATTRIBUTRE_IMPURE_PTR__, so a machine can set
15974         its attributes.
15975
15976         * libc/include/sys/config.h (__ATTRIBUTE_IMPURE_PTR__):
15977
15978 Wed Dec 18 10:12:04 1996  Jeffrey A Law  (law@cygnus.com)
15979
15980         * libc/sys/sysmec/crt0.S: Fix mn10200 stuff.
15981         * libc/sys/sysmec/trap.s: Handle mn10200 too.
15982         * libc/machine/mn10200/setjmp.S: Fix mn10200 stuff.
15983
15984 Mon Dec 16 10:05:36 1996  Jeffrey A Law  (law@cygnus.com)
15985
15986         * libc/sys/sysmec/crt0.S: Handle mn10200 too.
15987
15988 Fri Dec 13 11:05:20 1996  Jeremy Allison <jra@cygnus.com>
15989
15990         * libc/include/sys/errno.h: Added net errno's.
15991
15992 Wed Dec 11 16:24:25 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
15993
15994         * libc/misc/ffs.c: New file to support ffs function for GCC test
15995         gcc.c-torture/execute/960909-1.c.
15996
15997         * libc/misc/Makefile.in ({O,CHEWOUT_}FILES): Add ffs.
15998
15999 Sat Dec  7 10:12:37 1996  Jeffrey A Law  (law@cygnus.com)
16000
16001         * libc/sys/sysmec/crt0.S: Handle underscore prefix.
16002         * libc/sys/sysmec/trap.S: Likewise.
16003
16004 Fri Dec  6 15:08:49 1996  Jim Wilson  <wilson@cygnus.com>
16005
16006         * configure.in (mips*vr4300*-*-*): Delete use of sys/vr4300.
16007         * libc/sys/vr4300/{Makefile.in,crt0.S,syscalls.c}: Delete.
16008
16009 Wed Dec  4 16:25:27 1996  Jeffrey A Law  (law@cygnus.com)
16010
16011         * libc/sys/sysmec/signal.c: Dummy file.
16012         * libc/sys/sysmec/Makefile.in: Build it.
16013
16014 Wed Nov 27 13:10:18 1996  Ian Lance Taylor  <ian@cygnus.com>
16015
16016         * libc/machine/mips/machine/regdef.h: Define pc as $pc for
16017         mips16.
16018
16019 Mon Nov 25 09:58:28 1996  Jeffrey A Law  (law@cygnus.com)
16020
16021         * libc/sys/sysmec/{crt0.S,trap0.S}: Actually try to implement
16022         c-startup and simulator traps.
16023
16024
16025         * libc/sys/sysmec/crt0.S: Remove bogus '_' symbol prefixing
16026         * libc/sys/sysmec/trap0.S: Likewise.
16027
16028 Sat Nov 23 09:01:03 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
16029
16030         * libc/stdlib/mallocr.c (ROUND_TO): If SMALL_MEMORY, set to 0x7 to
16031         round to double word alignment.
16032         (_morecore_r): Combine rounding up pointers to both ROUND_TO and 8
16033         byte alignment.
16034
16035         * libc/include/sys/config.h (__IEEE_BIG_ENDIAN): Define if d10v.
16036
16037         * libc/sys/d10v/syscalls.c (_sbrk): Add better checks for running
16038         out of memory.
16039
16040 Mon Nov 18 13:08:26 1996  Jeffrey A Law  (law@cygnus.com)
16041
16042         * configure.in: Handle mn10200 and mn10300.
16043         * libc/include/machine/{ieeefp.h,setjmp.h}: Likewise.
16044         * libc/include/sys/config.h: Likewise.
16045         * libc/sys/sysmec: New directory for mec stuff.
16046         * libc/machine/mn10300: New directory for mn10300 stuff.
16047         * libc/machine/mn10200: Similarly for mn10200 stuff.
16048
16049 Fri Nov 15 16:41:41 1996  Doug Evans  <dje@canuck.cygnus.com>
16050
16051         * libc/sys/arm/crt0.S: Use .text, not .section .text.
16052         * libc/sys/arm/syscalls.c: Rewrite to set errno properly.
16053
16054         * libc/include/sys/types.h (_ST_INT32): New macro, local to file.
16055         (nlink_t): Change type from unsigned int to unsigned short.
16056         (mode_t): Ensure size is 32 bits even if int is 16.
16057         * libc/include/sys/stat.h (st_nlink): Change type to nlink_t.
16058         (st_spare[123]): Change type from int to long.
16059
16060 Fri Nov 15 11:41:50 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
16061
16062         * libc/sys/d10v/syscalls.c (_sbrk): Align initial heap_end to 8
16063         byte boundary.
16064
16065         * configure.in (d10v*): Define SMALL_MEMORY.
16066
16067 Mon Nov 11 10:30:44 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
16068
16069         * configure.in (powerpc*-{eabi,elf,linux,rtem,sysv,solaris}*): Add
16070         -mrelocatable-lib and -mno-eabi flags.
16071
16072 Mon Nov 11 09:01:39 1996  Jeffrey A Law  (law@cygnus.com)
16073
16074         * libc/machine/h8300/memcpy.S: Fix comments to reflect reality.
16075         Fix handling of mis-aligned source operand when both the
16076         destination & length are properly aligned.
16077
16078 Wed Oct 30 09:41:11 1996  Jeffrey A Law  (law@cygnus.com)
16079
16080         * libc/sys/sysnecv850/Makefile.in (OFILES): Add
16081         times.o, time.o and gettime.o
16082         * libc/sys/sysnecv850/{time.c, times.c, gettime.c}: New files.
16083         * libc/sys/sysnecv850/sys/syscall.h: Add SYS_times and
16084         SYS_gettimeofday.
16085
16086 Tue Oct 29 13:40:09 1996  Jeffrey A Law  (law@cygnus.com)
16087
16088         * libc/sys/sysnecv850/Makefile.in (OFILES): Add access.o
16089         * libc/sys/sysnecv850/access.c: New file.
16090
16091 Mon Oct 21 19:47:02 1996  Ian Lance Taylor  <ian@cygnus.com>
16092
16093         * libc/sys/vr4300/Makefile.in (clean): Remove $(OFILES).
16094
16095         * libc/stdlib/mprec.h (word0, word1): Use __uint32_t, not unsigned
16096         long.
16097
16098 Mon Oct 21 14:43:07 1996  Jeffrey A Law  (law@cygnus.com)
16099
16100         * libc/sys/sysnecv850/crt0.S: Initialize ep and gp registers.
16101
16102 Thu Oct 17 11:47:16 1996  Doug Evans  <dje@seba.cygnus.com>
16103
16104         * libc/include/machine/{ieeefp.h,setjmp.h}: Add m32r support.
16105         * libc/include/sys/config.h: Add m32r support.
16106
16107 Wed Oct 16 23:08:05 1996  Jeffrey A Law  (law@cygnus.com)
16108
16109         * libc/sys/sysnecv850/v850.ld: Remove.  It doesn't belong
16110         here.
16111
16112 Wed Oct 16 21:18:07 1996  Mark Alexander  <marka@cygnus.com>
16113
16114         * libc/include/machine/setjmp.h: Add D10v support.
16115
16116 Tue Oct 15 22:28:26 1996  Jeffrey A Law  (law@cygnus.com)
16117
16118         * configure.in: Configure the "libc/syscalls" directory for
16119         the v850.
16120
16121         * libc/sys/sysnecv850/{close.c, execve.c, fork.c}: Add missing '_'.
16122         * libc/sys/sysnecv850/{fstat.c, getpid.c, kill.c}: Likewise.
16123         * libc/sys/sysnecv850/{lseek.c, open.c, read.c}: Likewise.
16124         * libc/sys/sysnecv850/{sbrk.c, stat.c, unlink.c}: Likewise.
16125         * libc/sys/sysnecv850/{wait.c, write.c}: Likewise.
16126
16127 Tue Oct 15 16:24:39 1996  Stu Grossman  (grossman@critters.cygnus.com)
16128
16129         * libc/sys/sysnecv850/crt0.S (start):  Allocate spill space on
16130         stack for args for main and other routines.  Zero out args for
16131         main.
16132
16133         * libc/sys/sysnecv850/v850.ld:  New.  Linker script to layout memory
16134         correctly.
16135
16136 Tue Oct 15 11:51:42 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
16137
16138         * libc/stdio/findfp.c (std): Remove extraneous ';' after
16139         function.
16140
16141         * libc/sys/d10v/sys/syscall.h (SYS_kill): Add.
16142
16143         * libc/sys/d10v/{syscalls.c,trap.S} (_kill,_getpid): Make these
16144         real system calls now.
16145
16146         * libc/stdio/setvbuf (setvbuf): Cast pointers to _POINTER_INT
16147         before casting them to int.
16148         * libc/stdio/tmpnam.c (_tempnam_r): Ditto.
16149
16150         * libc/stdlib/mallocr.c (_morecore_r): Use _POINTER_INT when
16151         aligning pointer.
16152         * libc/string/memset.c (memset): Ditto.
16153
16154         * libc/stdio/vfscanf.c (__svfscanf): When converting to pointer,
16155         first convert ints to _POINTER_INT to eliminate GCC warning.
16156
16157         * libc/stdio/vfprintf.c (_vfprintf_r): Use _POINTER_INT when
16158         processing %p.
16159
16160         * libm/math/ef_scalb.c (__ieee754_scalbf): Cut down range to 32000
16161         from 65000 if ints are only 16 bits.
16162
16163         * libm/math/sf_scalbn.c (scalbnf): Cut down overflow test to 30000
16164         from 50000 if ints are only 16 bits.
16165
16166         * libc/include/sys/config.h (_POINTER_INT): New macro, to give an
16167         int type that is the same size as a pointer.
16168
16169         * libc/misc/dprintf.c (__dprintf): Use _POINTER_INT when
16170         processing %p.
16171         (get_number): Explicitly cast number to long before shifting by 16
16172         or 24, in case ints are short.
16173
16174         * libc/include/sys/config.h (_POINTER_INT): Define as short.
16175
16176 Wed Oct  9 16:54:32 1996  Jeremy Allison <jra@cygnus.com>
16177
16178         * libc/string.h: Added ffs, removed swab.
16179         * libc/sys/errno.h: Added EOPNOTSUPP.
16180         * libc/sys/unistd.h: Added swab.
16181
16182 Thu Oct  3 17:08:50 1996  Jeremy Allison <jra@cygnus.com>
16183
16184         * libc/include/sys/stat.h: Added fchmod.
16185         * libc/include/sys/unistd.h: Added fsync.
16186
16187 Tue Oct  1 17:34:08 1996  Jeremy Allison <jra@cygnus.com>
16188
16189         * libc/include/sys/errno.h: Added defines for EPFNOSUPPORT (96)
16190         and ECONNRESET (104) for cygwin32.
16191
16192 Tue Oct  1 16:24:05 1996  Gavin Koch  <gavin@cygnus.com>
16193
16194         * libc/sys/sysnecv850/_exit.c: added _do_dtors to
16195         do the static destructors.
16196
16197 Mon Sep 30 15:59:05 1996  Stu Grossman  (grossman@critters.cygnus.com)
16198
16199         * libc/sys/sysnecv850/trap.S:  Change I/O to use trap 31.
16200
16201 Mon Sep 30 12:02:50 1996  Doug Evans  <dje@canuck.cygnus.com>
16202
16203         * libc/machine/m32r/{Makefile.in,setjmp.S}: New files.
16204         * configure.in: Recognize m32r-*-*.
16205
16206 Mon Sep 30 00:34:41 1996  James G. Smith  <jsmith@cygnus.co.uk>
16207
16208         * libc/sys/arm/trap.S (__rt_stkovf_split_big,
16209         __rt_stkovf_split_small): Added default software stack overflow
16210         handlers, which just call SWI_Exit.
16211         * libc/sys/arm/crt0.S (_mainCRTStartup): Simple software stack
16212         limit initialisation.
16213
16214 Fri Sep 27 13:08:03 1996  Mark Alexander  <marka@cygnus.com>
16215
16216         * libc/sys/d10v/{trap.S,sys/syscall.h}: Add time() function.
16217
16218 Fri Sep 27 12:32:00 1996  Jeremy Allison <jra@cygnus.com>
16219
16220         * libc/include/sys/types.h: Added ssize_t definition.
16221
16222 Wed Sep 25 14:52:18 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
16223
16224         * libc/machine/d10v/setjmp.S: Use ';' for comments.
16225         * libc/sys/d10v/{crt0.S,trap.S}: Ditto.
16226
16227         * libc/machine/d10v/setjmp.S (longjmp): Use exef0t || instead of
16228         branch around a single ldi instruction.
16229
16230         * libc/sys/d10v/crt0.S (_start): Use auto-increment to zero bss.
16231         Call exit, instead of just issuing a stop instruction.
16232
16233 Sun Sep 22 17:26:55 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
16234
16235         * libc/sys/d10v/{trap.S,syscalls.c}: Add -mint32 support.
16236
16237 Fri Sep 20 13:23:12 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
16238
16239         * libc/stdlib/mprec.h: Explicitly declare all large constants as
16240         longs, and then cast them to __uint32_t.
16241
16242         * libc/include/sys/config.h: Protect against multiple inclusions.
16243
16244 Tue Sep 17 13:10:33 1996  Mark Alexander  <marka@cygnus.com>
16245
16246         * configure.in (d10v*): Set syscall_dir.
16247
16248 Sun Sep 15 10:41:59 1996  Mark Alexander  <marka@cygnus.com>
16249
16250         * libc/sys/d10v/crt0.S: Set stack pointer.
16251
16252 Thu Sep 12 13:02:38 1996  Mark Alexander  <marka@cygnus.com>
16253
16254         * libc/sys/d10v/{trap.S, syscalls.c}: Rewrite most system calls
16255         in assembly for efficiency.  Change calling convention to allow
16256         long ints to be returned.
16257
16258 Wed Sep 11 10:28:18 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
16259
16260         * libc/machine/v850/Makefile.in (setjmp.o): Fix dependency.
16261
16262 Thu Sep  5 19:23:06 1996  Doug Evans  <dje@canuck.cygnus.com>
16263
16264         * libc/posix/execvp.c (execvp): Don't search PATH if file has '/'.
16265         Handle empty entries in $PATH.
16266
16267 Tue Sep 03 18:15:02 1996  Mark Alexander  <marka@cygnus.com>
16268
16269         * libc/machine/d10v/setjmp.S: Make it really work.
16270
16271 Tue Sep  3 12:16:26 1996  Ian Lance Taylor  <ian@cygnus.com>
16272
16273         * libc/sys/sh/crt0.S: If __ELF__, use ELF section attributes for
16274         the .stack section.
16275
16276 Tue Sep  3 10:08:45 1996  Jeffrey A Law  (law@cygnus.com)
16277
16278         * sys/sysnecv850/sys/file.h: Remove.
16279         * sys/sysnecv850/sys/syscall.h: New file.
16280         * sys/sysnecv850/{misc.c,syscalls.c,malloc.c}: Deleted.
16281         * sys/sysnecv850/{chmod.c, chown.c, close.c, creat.c} New files.
16282         * sys/sysnecv850/{execv.c, execve.c, fork.c, fstat.c} New files.
16283         * sys/sysnecv850/{getpid.c, isatty.c, kill.c, lseek.c} New files.
16284         * sys/sysnecv850/{open.c, pipe.c, raise.c, read.c} New files.
16285         * sys/sysnecv850/{stat.c, unlink.c, utime.c, wait.c} New files.
16286         * sys/sysnec850/trap.S: New file.
16287         * sys/sysnecv850/{_exit.c, write.c}: Use new TRAP0 mechanism for
16288         syscalls.
16289         * sys/sysnecv850/crt0.S: Use cmp/bl, not tst/bz.
16290         * sys/sysnec850/sbrk.c: New version.
16291
16292 Sun Sep  1 20:08:27 1996  Jeffrey A Law  (law@cygnus.com)
16293
16294         * sys/sysnecv850/crt0.S: Fix order of comparison args.  Loop
16295         as long as r6 is less than r7.
16296
16297 Sun Sep  1 13:54:19 1996  Ian Lance Taylor  <ian@cygnus.com>
16298
16299         * Makefile.in (mostlyclean): Separate from clean target.  Don't
16300         remove *.a or targ-include.
16301         * libc/machine/sparc/Makefile.in (mostlyclean): New target.
16302
16303 Sun Sep  1 11:35:26 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
16304
16305         * libc/include/machine/ieeefp.h (_DOUBLE_IS_32BITS): Define for
16306         d10v.
16307         (__SMALL_BITFIELDS): Ditto.
16308
16309         * libc/include/sys/config.h (_DOUBLE_IS_32BITS): Define for d10v.
16310
16311 Sat Aug 31 16:42:36 1996  Jeffrey A Law  (law@cygnus.com)
16312
16313         * libc/sys/sysnecv850/misc.c (raise, getpid, kill): Remove '_'
16314         prefix.
16315
16316         * libc/sys/sysnecv850/sbrk.c (sbrk): Remove '_' prefix.
16317         * libc/sys/sysnecv850/syscalls.c (read, lseek, close): Likewise.
16318         * libc/sys/sysnecv850/syscalls.c (fstat, open, close): Likewise.
16319         * libc/sys/sysnecv850/write.c (write): Likewise.
16320
16321         * libc/sys/sysnecv850/crt0.S: Don't try to zero out an empty
16322         .bss.
16323
16324 Fri Aug 30 11:18:45 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
16325
16326         * libc/include/sys/config.h: Define INT_MAX, UINT_MAX
16327         appropriately for D10V, depending on -mint16/-mint32.
16328
16329 Thu Aug 29 16:09:37 1996  Mark Alexander  <marka@cygnus.com>
16330
16331         * configure.in: Add cases for D10V.
16332
16333 Thu Aug 29 17:03:23 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
16334
16335         * configure.in (i[345]86-*-*): Recognize i686 for pentium pro.
16336
16337 Wed Aug 28 21:05:52 1996  Jeffrey A Law  (law@cygnus.com)
16338
16339         * libc/include/machine/ieeefp.h: Fix typo.
16340
16341 Wed Aug 28 19:47:55 1996  Mark Alexander  <marka@cygnus.com>
16342
16343         * libc/sys/d10v: New directory for D10V stuff.
16344         * libc/include/machine/ieeefp.h: Add D10V defines.
16345
16346 Mon Aug 26 13:34:58 1996  Doug Evans  <dje@canuck.cygnus.com>
16347
16348         * libc/include/sys/errno.h: Add winsup/include/sys/errno.h values:
16349         ELOOP, ENOBUFS, EAFNOSUPPORT, EPROTOTYPE, ENOTSOCK, ENOPROTOOPT,
16350         ESHUTDOWN, ECONNREFUSED, EADDRINUSE, ECONNABORTED, EWOULDBLOCK.
16351         * libc/string/strerror.c (strerror): Add them.
16352
16353 Thu Aug 22 16:38:19 1996  Jeffrey A Law  (law@cygnus.com)
16354
16355         * libc/sys/sysnecv850: New directory for v850 stuff.
16356
16357         * libc/machine/v850: New directory for v850 stuff.
16358         * libc/machine/v850/setjmp.S: setjmp/longjmp support.
16359
16360         * configure.in: Add support for the v850.
16361
16362         * libc/include/machine/ieeefp.h: Add v850 defines.
16363         * libc/include/machine/setjmp.h: Likewise.
16364         * libc/include/sys/config.h: Add v850 defines.
16365
16366 Sat Aug 17 04:06:36 1996  Geoffrey Noer  <noer@cygnus.com>
16367
16368         * libc/include/machine/ieeefp.h
16369         * libc/include/machine/setjmp.h
16370         * libc/include/sys/fcntl.h
16371         * libc/include/sys/signal.h
16372         * libc/include/sys/types.h
16373         * libc/stdlib/system.c:
16374         Fix preprocessor defines to match new scheme (_WIN32 for WIN32
16375         API availability, __CYGWIN32__ for cygwin32 environment specific).
16376
16377 Thu Aug 15 17:09:21 1996  Geoffrey Noer  <noer@cygnus.com>
16378
16379         * libc/include/stdlib.h: add multibyte character functions.  Add
16380         __eprintf for assert.
16381
16382 Thu Aug 15 11:15:40 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
16383
16384         * libc/stdlib/malloc.h (MALLOC_ALIGNMENT): Use either pointer
16385         arithmetic or __alignof__ to properly get the alignment, instead
16386         of hardwiring it to 4.
16387
16388 Wed Aug 14 23:43:28 1996  Geoffrey Noer  <noer@cygnus.com>
16389
16390         * libc/stdio/fseek.c: add fflush call to adjust seek offset
16391         on append stream (fix from NetBSD sources), adjust curoff offset
16392         for ungetc's benefit.
16393         * libc/stdio/ftell.c: adjust curoff offset for ungetc's benefit.
16394         * libc/stdio/rewind.c: replace code with up to date NetBSD
16395         code to undo hacks made to work around above problem of not
16396         having fflush call mentioned above
16397
16398 Fri Aug  2 18:28:07 1996  J.T. Conklin  <jtc@rtl.cygnus.com>
16399
16400         * libc/reent/{closer.c, execr.c, fstatr.c, linkr.c, lseekr.c,
16401         openr.c, readr.c, sbrkr.c, signalr.c, statr.c, timer.c, writer.c}:
16402         Partially revert last changes.  The thread specific errno is set
16403         iff if the underlying syscall fails and the global errno is not
16404         zero.
16405
16406 Fri Jul 19 11:41:52 1996  J.T. Conklin  <jtc@rtl.cygnus.com>
16407
16408         * libc/reent/filer.c: Removed files, all functions have split out
16409         into their own files.
16410         * libc/reent/{closer.c, lseekr.c, openr.c, readr.c, writer.c}:
16411         New files containing functions formally in filer.c
16412         * libc/reent/Makefile.in: Updated for above change.
16413
16414         * libc/reent/execr.c (_fork_r, _wait_r): Set errno if underlying
16415         syscall fails, not if errno is changed.
16416         * libc/reent/filer.c (_open_r, _close_r, _lseek_r, _read_r,
16417         _write_r): Likewise.
16418         * libc/reent/fstatr.c (_fstat_r): Likewise.
16419         * libc/reent/linkr.c (_link_r, _unlink_r): Likewise.
16420         * libc/reent/sbrkr.c (_sbrk_r): Likewise.
16421         * libc/reent/signalr.c (_kill_r): Likewise.
16422         * libc/reent/statr.c (_stat_r): Likewise.
16423         * libc/reent/timer.c (_gettimeofday_r): Likewise.
16424
16425         * libc/reent/{execr.c, filer.c, fstatr.c, linkr.c, sbrkr.c,
16426         signalr.c, statr.c, timer.c} (errno): declare extern rather
16427         than as a common.
16428
16429         * libc/stdio/vfprintf.c (__sbprintf): Use the VFPRINTF macro
16430         instead of calling vfprintf so that i*printf will not require
16431         floating point support code.
16432
16433 Mon Jul 15 16:50:59 1996  Doug Evans  <dje@canuck.cygnus.com>
16434
16435         * libc/posix/execvp.c (execvp): Use posix_path_list_p to determine
16436         path delimiter.
16437         * libc/include/sys/unistd.h (_SC_PATH_RULES): Delete.
16438         (_PATH_RULES_{UNKNOWN,WIN32,POSIX}): Delete.
16439
16440 Thu Jul 11 14:34:14 1996  Geoffrey Noer  <noer@cygnus.com>
16441
16442         * libc/include/signal.h: _sig_func_ptr function takes an int
16443         * libc/include/sys/signal.h: sa_handler function takes an int
16444
16445 Tue Jul  9 21:22:32 1996  Jeffrey A Law  (law@cygnus.com)
16446
16447         * libc/include/machine/ieeefp.h: Simplify H8/S support.
16448         * libc/include/sys/config.h: Add missing H8/S conditional.
16449
16450 Sun Jun 30 12:05:46 1996  Doug Evans  <dje@canuck.cygnus.com>
16451
16452         * libc/include/sys/unistd.h (MAXPATHLEN): Add cygwin32 value.
16453
16454 Wed Jun 26 09:57:54 1996  Jeffrey A Law  (law@cygnus.com)
16455
16456         * libc/include/machine/setjmp.h: Handle H8/S.
16457         * libc/include/machine/ieeefp.h: Likewise.
16458         * libc/include/sys/config.h: Likewise.
16459         * libc/machine/h8300/{defines.h, memcpy.S, memset.S}: Likewise.
16460         * libc/machine/h8300/{reg_memcpy.S, reg_memset.S}: Likewise.
16461         * libc/machine/h8300/{strcmp.S, setjmp.S}: Likewise.
16462         * libc/sys/h8300hms/crt0.S: Likewise.
16463
16464 Tue Jun 25 23:15:45 1996  Jason Molenda  (crash@godzilla.cygnus.co.jp)
16465
16466         * Makefile.in (datadir): Set to $(prefix)/share.
16467         (oldincludedir, docdir): Removed.
16468         * doc/Makefile.in (datadir): Set to $(prefix)/share.
16469         (oldincludedir, docdir): Removed.
16470         * libc/Makefile.in (datadir): Set to $(prefix)/share.
16471         (oldincludedir, docdir): Removed.
16472         * libm/Makefile.in (datadir): Set to $(prefix)/share.
16473         (oldincludedir, docdir): Removed.
16474
16475 Fri Jun 21 19:24:41 1996  Ian Lance Taylor  <ian@cygnus.com>
16476
16477         * libc/include/sys/reent.h (_REENT_INIT): Update for change to
16478         _reent struct.
16479
16480 Wed Jun 19 14:00:09 1996  Doug Evans  <dje@canuck.cygnus.com>
16481
16482         * libc/posix/execvp.c: Delete _WIN32 support.  For __CYGWIN32__
16483         fetch current path rules with sysconf and handler posix/win32
16484         appropriately.
16485
16486         * libc/include/sys/unistd.h (_PATH_RULES{,_POSIX,_WIN32}): Define.
16487
16488         * libc/include/process.h: Prepend '_' to P_{WAIT,NOWAIT,OVERLAY}.
16489         (WAIT_CHILD): Always define.
16490
16491 Sat Jun 15 17:50:42 1996  Ian Lance Taylor  <ian@cygnus.com>
16492
16493         * libc/stdlib/eprintf.c: New file.
16494         * libc/stdlib/Makefile.in (OFILES): Add eprintf.o.
16495         (eprintf.o): New target.
16496
16497 Thu Jun 13 16:44:32 1996  Doug Evans  <dje@canuck.cygnus.com>
16498
16499         * libc/sys/cygwin32/crt0.c (__cygwin_crt0_bp): New global.
16500         (mainCRTStartup): Do int3 if __cygwin_crt0_bp non-zero.
16501
16502 Thu Jun 13 17:45:17 1996  Mike Meissner  <meissner@rtl.cygnus.com>
16503
16504         * libc/include/machine/ieeefp.h: Add support for AIX and Windows
16505         NT in PowerPC endianess cases.
16506
16507 Tue Jun 11 12:26:28 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
16508
16509         * libc/include/machine/ieeefp.h: Clean up PowerPC endianess.
16510
16511 Thu Jun  6 11:34:20 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
16512
16513         * libc/string/strtok.c: Fix doc typo.
16514
16515 Mon Jun  3 11:30:00 1996  J.T. Conklin  <jtc@rtl.cygnus.com>
16516
16517         * libc/include/sys/reent.h (struct _reent): Removed _asctime,
16518         _next, _scanpoint, _signgam fields.
16519
16520         * libc/include/stdlib.h (rand_r): Added new declaration.
16521         (_rand_r, _srand_r): Removed declarations.
16522         * libc/stdlib/rand.c (_rand_r, _srand_r): Removed, these functions
16523         have been made obsolete by rand_r.
16524         * libc/stdlib/rand_r.c: New file, rand_r function as specified
16525         by POSIX.1c.
16526
16527         * libc/string/strtok.c: Update documentation to describe
16528         strtok_r().
16529
16530 Sat Jun  1 23:50:39 1996  Michael Meissner  <meissner@cygnus.com>
16531
16532         * libc/include/sys/stat.h (stat structure): Use the expanded stat
16533         structure on Solaris, and PowerPC systems even though __svr4__ is
16534         defined.
16535
16536 Tue May 28 13:02:42 1996  Doug Evans  <dje@canuck.cygnus.com>
16537
16538         * libc/sys/go32/sys/errno.h (ENOSYS,ESPIPE): Keep values <= 255.
16539
16540 Fri May 17 10:34:44 1996  Ian Lance Taylor  <ian@cygnus.com>
16541
16542         * host/any: Use ../.. rather than .. to get to the main build
16543         directory.  This matches the current layout of the build
16544         directory.
16545
16546 Wed May 15 15:52:27 1996  Jeffrey A Law  (law@cygnus.com)
16547
16548         * libc/machine/h8300/__main.S: Delete.  No longer needed.
16549         * libc/machine/h8300/Makefile.in: Corresponding changes.
16550         * libc/sys/h8300hms/crt1.c: New file.
16551         * libc/sys/h8300hms/Makefile.in: Corresponding changes.
16552         * libc/sys/h8300hms/crt0.s: Call __main.
16553
16554         * libc/sys/h8300hms/crt0.S: Use temporary label names
16555         for branch targets.
16556
16557 Mon May 13 14:26:30 1996  Doug Evans  <dje@canuck.cygnus.com>
16558
16559         * libc/stdio/fopen.c (_fopen_r): Fix arguments to fseek.
16560
16561 Fri May  3 16:38:23 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
16562
16563         * libc/reent/impure.c (_impure_ptr): Force the impure pointer into
16564         .sdata on the PowerPC so that we can link newlib with code
16565         compiled with -msdata.
16566
16567 Mon Apr 29 21:38:02 1996  Doug Evans  <dje@canuck.cygnus.com>
16568
16569         * libc/sys/arm/syscalls.c (_sbrk): Rename end to __end__.
16570
16571 Thu Apr 25 06:38:59 1996  Michael Meissner  <meissner@cygnus.com>
16572
16573         * libc/sys/cygwin32/crt0.c (mainCRTStartup): On PowerPC, set the
16574         exception handler to __cygwin_exception_handler.
16575
16576 Tue Apr 23 15:14:20 1996  Ian Lance Taylor  <ian@cygnus.com>
16577
16578         * libc/include/machine/setjmp.h: Check _AM29K, not ___AM29K__.
16579
16580 Sun Apr 21 12:11:51 1996  Doug Evans  <dje@blues.cygnus.com>
16581
16582         * libm/math/Makefile.in ({w,wf}_cabs.o,{w,wf}_drem.o): Add rule for
16583         SunOS VPATH.
16584         * libc/stdlib/Makefile.in (atoff.o,atol.o,mblen.o,mbstowcs.o,
16585         wcstombs.o): Likewise.
16586
16587 Thu Apr 18 12:37:01 1996  Doug Evans  <dje@canuck.cygnus.com>
16588
16589         * libc/stdlib/environ.c (initial_env): New static local.
16590         (environ): Point to `initial_env'.
16591
16592         * libc/include/machine/setjmp.h: Clean up.
16593         (__H8300H__,__PPC__): Define _JBTYPE.
16594         (__arm__): Provide entry for.
16595         (sigjmp_buf): Delete.
16596         (jmp_buf): Use _JBTYPE if defined, otherwise int.
16597
16598 Thu Apr 18 12:10:52 1996  Jeffrey A Law  (law@cygnus.com)
16599
16600         * libc/machine/h8300/strcmp.S: Sign extend the result to
16601         32bits so we don't lose with -mint32.
16602
16603 Sun Apr 14 19:59:52 1996  Doug Evans  <dje@canuck.cygnus.com>
16604
16605         * libc/sys/go32/sys/errno.h: New file.
16606         * libc/sys/go32/Makefile.in (stat.o): Depend on stat.c.
16607         * libc/sys/go32/gerrno.s (syscall_error): Call __errno to get
16608         errno's address (make compatible with rest of newlib).
16609         * libc/sys/go32/stat.c (fixinode): Set errno upon failure.
16610         * libc/string/strerror.c (strerror): Surround each case with #ifdef.
16611
16612 Thu Mar 28 13:44:42 1996  Doug Evans  <dje@canuck.cygnus.com>
16613
16614         * libc/machine/sparc/{scan.c,shuffle.c}: New files.
16615         * libc/machine/sparc/Makefile.in: Build them.
16616         * libc/machine/sparc/machine/sparclet.h: New file.
16617
16618 Mon Mar 25 15:29:14 1996  J.T. Conklin  <jtc@rtl.cygnus.com>
16619
16620         * libc/machine/sh/asm.h: New file.
16621         * libc/machine/sh/setjmp.S: Only save clobbered registers.  Added
16622         support for SH3e's FP registers.  Use asm.h.
16623
16624 Mon Mar 25 11:59:23 1996  Jeffrey A Law  (law@cygnus.com)
16625
16626         * libc/stdio/vfprintf.c (cvt): Accept a reent structure
16627         as first argument.  Call _dtoa_r and pass the reent structure
16628         instead of calling __dtoa.
16629
16630 Fri Mar 22 13:59:37 1996  Jeffrey A Law  (law@cygnus.com)
16631
16632         * libc/include/sys/config.h: Define DOUBLE_IS_32BITS for
16633         the h8300, h8500, and others.  Add comments for some rather
16634         dubious code.
16635
16636 Thu Mar 14 18:04:43 1996  Ian Lance Taylor  <ian@cygnus.com>
16637
16638         * Makefile.in (check): Check that testsuite exists before cd.
16639
16640 Tue Mar 12 11:46:47 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
16641
16642         * libc/include/string.h (strsep): Correct prototype.
16643
16644 Mon Mar 11 09:55:19 1996  Doug Evans  <dje@charmed.cygnus.com>
16645
16646         * libc/sys/h8300/_exit.c (_exit,__exit): Set r0 to 0 before `sleep'.
16647         * libc/sys/h8300/misc.c (_kill): Set r0 to indicate abort and `sleep'.
16648         * libc/sys/h8300/crt0.S (_start): Call exit instead of `sleep'.
16649
16650 Wed Mar  6 11:51:55 1996  Doug Evans  <dje@charmed.cygnus.com>
16651
16652         * libc/posix/{creat.c,isatty.c}: New files.
16653         * libc/posix/Makefile.in (OFILES): Add creat.o, isatty.o.
16654
16655         * libc/sys/sparc64/crt0.S (environ): Delete.
16656         (.LHaveBias): Renamed from HaveBias.
16657
16658 Thu Feb 15 10:48:37 1996  Doug Evans  <dje@charmed.cygnus.com>
16659
16660         * libc/stdlib/mallocr.c (etext): Move decl inside ifdef WARN_VLIMIT.
16661         (_morecore_r): Delete SBRK_IS_ALLOC support.
16662
16663 Tue Feb 13 09:44:09 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
16664
16665         * libc/sys/cygwin32/Makefile.in (lib.a): Make lib.a with a dummy
16666         module rather than touch, so we don't get warning messages when
16667         all of the libraries are combined into libc.a.
16668
16669 Tue Feb 13 06:32:07 1996  Doug Evans  <dje@charmed.cygnus.com>
16670
16671         * libc/sys/sparclite/{Makefile.in,crt0.s}: Deleted.
16672         crt0.s replaced by version in libgloss.
16673
16674 Mon Feb  5 15:17:51 1996  J.T. Conklin  <jtc@rtl.cygnus.com>
16675
16676         * libc/reent/Makefile.in (OFILES): Add impure.o.
16677         * libc/reent/impure.o: New file, define initial reentrancy struct.
16678         * libc/reent/reent.c: Remove above definition.
16679
16680         * libm/math/sf_asinh.c: Fix typo.
16681
16682         * Makefile.in (MATHOBJS_IN_LIBC): Removed sr_ldexp.o and
16683         srf_ldexp.o.
16684
16685         * libm/libm.texinfo: Change documentation to reflect changes
16686         in reentrancy model.
16687         * libm/math/w_gamma.c: Likewise.
16688
16689 Wed Jan 31 18:49:45 1996  Steve Chamberlain  <sac@slash.cygnus.com>
16690
16691         * configure.in (*-*-cygwin32): New.
16692         (*-*-win32): Deleted.
16693         * libc/sys/win32 renamed libc/sys/cygwin32.
16694
16695 Tue Jan 30 22:09:03 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
16696
16697         * libc/include/sys/file.h: New include file.
16698
16699 Fri Jan 26 15:52:54 1996  Steve Chamberlain  <sac@slash.cygnus.com>
16700
16701         * libc/include/machine/setjmp.h: Increase size of PPC jmp_buf.
16702
16703 Tue Jan 23 17:49:16 1996  Steve Chamberlain  <sac@slash.cygnus.com>
16704
16705         * libc/include/sys/wait.h (WIFSIGNALED): Fix.
16706
16707 Tue Jan 16 09:28:10 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
16708
16709         * doc/makedoc.c (realloc): Declare at file scope.
16710         (catchar): Not here.
16711
16712 Wed Dec 27 15:45:23 1995  Doug Evans  <dje@canuck.cygnus.com>
16713
16714         * Makefile.in (VERSION): Update to 1.7.0.
16715         * {libc,libm}/Makefile.in (VERSION): Likewise.
16716         * configure.in: Minor clean up of multilib stuff.
16717
16718         From David Johnson <davidj@ICSI.Berkeley.EDU>
16719         * {libc,libm}/Makefile.in (lib[cm].a): Delete library first.
16720
16721         * libc/stdlib/environ.c: New file.
16722         * libc/stdlib/Makefile.in (OFILES): Build it.
16723         * libc/sys/h8500hms/crt0.c (environ): Deleted.
16724         * libc/sys/m88kbug/crt0.c (environ): Deleted.
16725         * libc/sys/z8ksim/crt0.c (environ): Deleted.
16726         * libc/sys/netware/environ.c: Deleted.
16727
16728 Tue Dec 19 15:24:46 1995  Kim Knuttila  <krk@cygnus.com>
16729
16730         * configure.in (links): set sys_dir, posix_dir, syscall_dir
16731
16732 Wed Dec 13 04:16:25 1995  Michael Meissner  <meissner@wogglebug.tiac.net>
16733
16734         * doc/makedoc.c (init_string_with_size,nextword): Move malloc
16735         declaration out to external scope and declare it PTR, not char *.
16736
16737 Mon Dec 11 17:35:12 1995  steve chamberlain  <sac@slash.cygnus.com>
16738
16739         * libc/include/sys/unistd.h (getpagesize): New declaration.
16740         (_SC_PAGESIZE): New definition.
16741         * libc/include/time.h (CLK_TCK): Defined as CLOCKS_PER_SEC.
16742         * libc/configure.in (i[345]86-*-win32): Remove -DNO_FORK.
16743
16744 Fri Dec  1 16:48:46 1995  James G. Smith  <jsmith@cygnus.co.uk>
16745
16746         * libc/sys/vr4300/syscalls.c (sbrk): Fixed memory
16747         addressing. System call returns size, not (last address + 1).
16748
16749 Thu Nov 30 15:05:26 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
16750
16751         * libm/math/*.c: Removed _foo_r() reentrancy API.
16752         * libc/include/math.h: Removed _foo_r prototypes and macros.
16753
16754         * libm/math/*.c: On systems with IEEE single precision "doubles"
16755         move foo() -> foof() wrapper code from the files that implement
16756         the standard IEEE double precision functions to the files that
16757         implement IEEE single precision functions. (ie. On those systems
16758         sin is moved from s_sin.c to sf_sin.c).  There should eventually
16759         be use of a C extension (like gcc's alias attribute) so that the
16760         wrappers are not needed at all.
16761
16762         * libc/sys/sysnec810/sbrk.c: Cast &end to char * to get around
16763         strict NEC V810 compiler.
16764         * libc/misc/dprintf.c (getnumber): Cast char * to unsigned char *
16765         for same reason.
16766
16767 Wed Nov 29 14:25:05 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
16768
16769         * libc/stdlib/strtol.c (_strtol_r): Replaced with implementation
16770         from NetBSD C library.
16771         * libc/stdlib/strtoul.c (_strtoul_r): Likewise.
16772
16773         * libc/stdlib/assert.c (__assert): Renamed from __assertfail
16774         and adapted from implementation I wrote for NetBSD C library.
16775         The difference is __assert doesn't take a format argument,
16776         so that there won't be multiple copies of the same string
16777         constant in the executable if assertions are enabled in
16778         more than one source module.
16779         * libc/include/assert.h (assert): Changed to call __assert.
16780
16781 Tue Nov 28 16:54:26 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
16782
16783         * libc/stdlib/strtod.c (_strtod_r): Changed to not assign to
16784         word1 on systems with 32 bit doubles.
16785         * libc/stdlib/qsort.c (qsort): Cast some void *'s to char *'s
16786         so that we can do arithmetic on them.
16787         * libc/misc/dprintf.c: Changed to support stdarg.h for ANSI
16788         compilers.
16789
16790 Tue Nov 28 16:03:32 1995  Doug Evans  <dje@canuck.cygnus.com>
16791
16792         * libc/sys/arm/crt0.S: Zero bss.
16793
16794 Fri Nov 24 16:09:23 1995  Doug Evans  <dje@deneb.cygnus.com>
16795
16796         * libc/include/unctrl.h: New file.
16797         * libc/misc/{Makefile.in,dprintf.c,unctrl.c,misc.tex}: New files.
16798         * configure.in (subdirs): Add libc/misc.
16799         * libc/Makefile.in (SUBDIRS): Add misc.
16800         (SUBLIBS): Add misc/lib.a.
16801
16802         * libc/include/sys/reent.h (struct _reent): Make __sf last member.
16803
16804 Wed Nov 22 19:49:47 1995  Doug Evans  <dje@deneb.cygnus.com>
16805
16806         * libc/stdio/vfprintf.c (__sbprintf): Init fake._data.
16807         (_vfprintf_r): Call CHECK_INIT.
16808
16809 Tue Nov 14 02:52:12 1995  Doug Evans  <dje@canuck.cygnus.com>
16810
16811         * Makefile.in (MULTITOP): Delete.
16812         (MULTISRCTOP, MULTIBUILDTOP): Add.
16813         * configure.in: Delete call to cfg-ml-com.in.  Call config-ml.in
16814         instead of cfg-ml-pos.in.
16815
16816 Wed Nov  8 01:24:08 1995  James G. Smith  <jsmith@pasanda.cygnus.co.uk>
16817
16818         * libc/sys/vr4300/syscalls.c: Added clean version of sbrk().
16819         * libc/sys/vr4300/crt0.S: Cleaned up. Added check for FPU
16820         presence.
16821
16822 Thu Nov  2 22:25:06 1995  Michael Meissner  <meissner@tiktok.cygnus.com>
16823
16824         * libc/string/strtok.c: Include string.h to pick up strtok_r
16825         prototype.
16826
16827 Wed Nov  1 18:54:11 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
16828
16829         * libc/string/strtok.c: include <_ansi.h>.
16830         * libc/time/asctime_r.c: `reresult' -> `result'.
16831
16832 Wed Nov  1 14:35:52 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
16833
16834         * libc/time/{ctime.c, gmtime.c, lcltime.c}: Wrap functions
16835         in #ifndef _REENT_ONLY ... #endif conditional.
16836
16837         * libc/include/string.h (_strtok_r): Remove declaration.
16838         * libc/include/time.h (_asctime_r): Remove declaration.
16839         * libc/string/strtok.c (_strtok_r): Removed.
16840         * libc/time/asctime.c (_asctime_r): Removed.
16841
16842         * libc/string/Makefile.in (OFILES): Add new object.
16843         * libc/string/strtok_r.c: New file.  strtok_r function as
16844         specified by POSIX.1c, adapted from strtok implementation
16845         from NetBSD C library.
16846         * libc/string/strtok.c (strtok): Reimplemented in terms of
16847         strtok_r.
16848
16849         * libc/time/Makefile.in (OFILES): Add new objects.
16850         * libc/time/{asctime_r.c, ctime_r.c, gmtime_r.c, lcltime_r.c}:
16851         New files, reentrant time functions specified by POSIX.1c.
16852         * libc/time/{asctime.c, ctime.c, gmtime.c, lcltime.c}: Non-
16853         reentrant time functions re-written in terms of reentrant
16854         functions.
16855         * libc/time/lcltime.c: Renamed from localtime.c
16856
16857         * libc/include/time.h: Add prototypes for asctime_r, ctime_r,
16858         gmtime_r, and localtime_r.
16859
16860 Sat Oct 28 14:34:31 1995  steve chamberlain  <sac@slash.cygnus.com>
16861
16862         * libc/sys/win32/crt0.c (mainCRTStartup): Call cygwin_crt0.
16863         * libc/include/sys/unistd.h (getlogin): Revert change of
16864         Oct 19.
16865         * libc/include/sys/signal.h (sigprocmask): Change prototype
16866         so it compiles with c++.
16867
16868 Wed Oct 25 15:43:18 1995  Michael Meissner  <meissner@cygnus.com>
16869
16870         * libc/include/machine/setjmp.h (PowerPC _JBLEN): Consider it a
16871         PowerPC if __PPC__ is defined.  Bump jump_buf length to 62 ints,
16872         to give some room in case we need to align the jmp_buf.
16873
16874         * libc/machine/powerpc/setjmp.S (setjmp, longjmp): Rewrite to use
16875         the new ppc-asm.h include file the compiler provides to specify
16876         function prologue/epilogue.  Eliminate saves of the xer and ctr
16877         registers, which are volatile.  Before starting to save registers,
16878         align to 8 byte boundary.
16879
16880 Mon Oct 23 11:20:51 1995  James G. Smith  <jsmith@pasanda.cygnus.co.uk>
16881
16882         * libc/sys/vr4300/syscalls.c: Added empty kill() function,
16883         referenced by standard libraries.
16884
16885 Thu Oct 19 21:39:47 1995  Fred Fish  <fnf@cygnus.com>
16886
16887         * libc/unix/Makefile.in, libc/string/Makefile.in,
16888         libc/stdio/Makefile.in, libc/reent/Makefile.in,
16889         libc/posix/Makefile.in:
16890         Remove tabs from otherwise empty line.  Confuses some
16891         older non-GNU versions of "make".
16892
16893 Thu Oct 19 16:32:17 1995  steve chamberlain  <sac@slash.cygnus.com>
16894
16895         * libc/sys/unistd.h (getlogin): Returns const char *.
16896
16897 Wed Oct 18 12:57:50 1995  steve chamberlain  <sac@slash.cygnus.com>
16898
16899         * libc/include/fcntl.h (O_BINARY, O_TEXT): New.
16900         * libc/include/errno.h: Moved into and include...
16901         * libc/include/sys/errno.h: New file.
16902         * libc/include/sys/wait.h: New file.
16903         * libc/stdio/rename.c (_rename_r): Use _rename system call if available.
16904         * libc/sys/win32/*: Moved out.
16905         * libc/sys/win32/crt0.c: Rewritten to cope with shared library.
16906         * configure.in (i[345]86-*-win32): HAVE_RENAME
16907
16908 Wed Oct 18 09:58:27 1995  Brendan Kehoe  <brendan@lisa.cygnus.com>
16909
16910         * libc/unix/sigset.c (sigemptyset, sigaddset): Prefix #undef to
16911         avoid macro expansion for these two names.
16912
16913 Tue Oct 17 08:45:33 1995  Doug Evans  <dje@canuck.cygnus.com>
16914
16915         * libc/machine/h8500/psi.S: r6 renamed to fp.
16916
16917 Sun Oct 15 12:58:10 1995  Michael Meissner  <meissner@wogglebug.tiac.net>
16918
16919         * configure.in (powerpc*): No longer need to define
16920         NO_LONGLONG_POINTERS to supress warnings.
16921
16922 Sat Oct 14 12:55:08 1995  Jim Wilson  <wilson@chestnut.cygnus.com>
16923
16924         * libc/reent/reent.c (_reclaim_reent): Call cleanup indirectly
16925         through PTR instead of directly.
16926
16927         * libc/sys/sh/crt0.S: Clean up formatting.  Delete unused
16928         non-standard constructor support.
16929
16930 Thu Oct 12 11:39:42 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
16931
16932         * libc/stdlib/dtoa.c (_dtoa_r): Set result pointer to the
16933         address of the Bigint instead of the address of its _x field,
16934         as the size the result buffer was calculated accordingly.
16935         Fix from Jim Wilson <wilson@chestnut@cygnus.com>.
16936
16937         * libc/stdlib/{div.c, ldiv.c}: Replaced with implementation
16938         from NetBSD C library.  No longer special cases division by
16939         zero (which needs to be done by the application anyway), but
16940         it doesn't need to call abs() (or labs()) four times either.
16941
16942         * libc/stdlib/qsort.c: Replaced with implementation from
16943         NetBSD C library.
16944
16945 Tue Oct 10 14:01:10 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
16946
16947         * libc/stdio/vfprintf.c: Replaced with implementation from
16948         NetBSD C library (which is derived from the 4.4BSD C library).
16949         * libc/stdio/cvt.c: Removed.
16950         * libc/stdio/Makefile: Updated.
16951
16952 Tue Oct 10 12:15:23 1995  steve chamberlain  <sac@slash.cygnus.com>
16953
16954         * libc/sys/win32/syscalls.c (rename): New.
16955         * libc/sys/win32/include/winkernel.h (MoveFileExA): New.
16956
16957 Fri Oct  6 12:18:43 1995  Jim Wilson  <wilson@chestnut.cygnus.com>
16958
16959         * libc/machine/sh/Makefile.in (setjmp.o): Depend on setjmp.S.
16960         * libc/machine/sh/setjmp.S: Rename from setjmp.s.
16961
16962         * libc/sys/sh/Makefile.in (OFILES, all): Delete setjmp.o.
16963         (setjmp.o): Delete rule to build setjmp.o.
16964         * libc/sys/sh/setjmp.S: Delete file.
16965
16966 Fri Oct  6 11:19:05 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
16967
16968         * libc/stdlib/mprec.c (d2b): Added support for _DOUBLE_IS_32BITS.
16969         * libc/stdlib/mprec.h: Fixed constants used for IEEE single float
16970         format.  Added #defines to map d2b, i2b, low0bits, lshift, mult,
16971         pow5mult and s2b to identifiers with leading underscores.
16972         * libc/stdlib/Makefile.in: Add mprec.h as a dependency to dtoa.o,
16973         ecvtbuf.o, mprec.o and strtod.o.  Sort dependencies.
16974
16975 Thu Oct  5 17:27:30 1995  steve chamberlain  <sac@slash.cygnus.com>
16976
16977         * libc/sys/posix/popen.c (sys/types.h): Include.
16978
16979 Thu Oct  5 16:33:01 1995  Doug Evans  <dje@canuck.cygnus.com>
16980
16981         * libc/sys/win32/syscalls.h (fhandler): New struct.
16982         (__lookup_fhandler, __lookup_fhandler_hook): Declare.
16983         (__fhandler_normal): Declare.
16984         (hinfo): New member op_handlers.
16985         * libc/sys/win32/syscalls.c (__read): Don't validate fd.
16986         (__write): Likewise.
16987         (_read, _write, _open, _close, _lseek): Validate fd here.
16988         Move file type specific stuff to foo_normal.
16989         (read_normal, write_normal, open_normal, close_normal, lseek_normal):
16990         New functions.
16991         (__lookup_fhandler): New function.
16992         (__lookup_fhandler_hook, __fhandler_normal): New variables.
16993
16994         From anders.blomdell@control.lth.se (Anders Blomdell)
16995         * libc/sys/win32/crt0.c (vfork_init): Unset __FD_TABLE__.
16996         Don't touch standard handles.
16997         * libc/sys/win32/spawn.c (_spawn): Use STARTF_USESTDHANDLES.
16998         (_execve): Only create __FD_TABLE__ if necessary.
16999         * libc/sys/win32/include/winkernel.h (STARTF_*): Define.
17000
17001 Thu Oct  5 14:25:14 1995  steve chamberlain  <sac@slash.cygnus.com>
17002
17003         * libc/sys/win32/sys/termios.h (FLUSHO): New.
17004         * libc/sys/win32/include/win*.h: Moved a load of prototypes around.
17005         * libc/sys/win32/pipe.c (_fctnl): Ignore F_SETFL without errors.
17006         * libc/sys/win32/exception.c (ehandler3): set strace when a signal
17007         without a handler is received.
17008         * libc/sys/win32/Makefile.in: Remove --nodelete.
17009         * libc/sys/win32/resouce.c (gettimeofday): New.
17010         * libc/sys/win32/syscalls.c (path_to_real_path): New.
17011         * libc/sys/win32/syscalls.h (include/wincon.h): Don't include.
17012
17013 Wed Oct  4 13:10:35 1995  Doug Evans  <dje@canuck.cygnus.com>
17014
17015         * libc/sys/win32/dirsearch.c (opendir): stat real path name.
17016         Don't append "/*" to search pattern if trailing '/' already there,
17017         append "*".
17018         * libc/sys/win32/spawn.c (_spawn): CreateProcess doesn't seem to
17019         like /'s, convert them to \'s.  Handle //<drive>/ path names.
17020         Add space for quoted \'s in arg string.  Print translated prog name
17021         and original prog name.
17022         (_execve): Handle parent doing exec a teensy bit better.
17023         * libc/sys/win32/syscalls.h (__path_to_real_path): Update prototype.
17024         * libc/sys/win32/syscalls.c (__path_to_real_path): Don't assume
17025         path needs conversion, handle both cases.  Delete `const' from result.
17026         (hash_path_name): New function.
17027         (_open): Call it.
17028         (_stat): Likewise.  Fill in more fields for directories.
17029         * libc/sys/win32/wait.c (_wait): Explicitly pass -1 to waitpid.
17030         (wait_for_any): Fix trace message.
17031         (waitpid): Explicitly test for intpid == 0.
17032
17033         From anders.blomdell@control.lth.se (Anders Blomdell)
17034         * libc/sys/win32/spawn.c (__vfork_get_empty_entry): zero fill result
17035         so `next' is valid.
17036
17037 Sat Sep 30 15:00:15 1995  Jason Molenda  (crash@phyeaux.cygnus.com)
17038
17039         * libc/sys/win32/spawn.c (_spawn): Make quoting rules more
17040         complicated.
17041
17042 Sat Sep 30 10:25:57 1995  Jason Molenda    (crash@phydeaux.cygnus.com)
17043
17044         * libc/include/_ansi.h: set _HAVE_STDC if __STDC__ is defined
17045         at all, not just == 1.
17046         * libm/math/wf_acos.c (acosf): check for _HAVE_STDC, not __STDC__.
17047
17048 Sat Sep 30 04:30:09 1995  Jason Molenda   (crash@phydeaux.cygnus.com)
17049
17050         * libc/sys/win32/include/winbase.h: include <wintypes.h> and <winnt.h>
17051         * libc/sys/win32/include/wintypes.h: include <winnt.h>
17052         * libc/sys/win32/include/winnt.h: avoid multiple inclusion of this
17053         file.
17054
17055 Fri Sep 29 01:49:17 1995  steve chamberlain  <sac@slash.cygnus.com>
17056
17057         * libc/sys/syscalls.c (getcwd): Fix off by one error.
17058
17059         * libc/sys/signal.c (sleep): Fill it in.
17060         * libc/sys/termios.c (tcflush): Use PurgeComm
17061         (tcsetattr): Set some more of the bits.
17062         * libc/sys/include/winkernel.h: Add PurgeComm and Sleep.
17063
17064 Fri Sep 29 04:33:53 1995  Doug Evans  <dje@deneb.cygnus.com>
17065
17066         * libc/sys/arm/crt0.S (fp): Initialize to 0.
17067         Conditionally include .idata$3 stuff ifdef __pe__.
17068
17069 Fri Sep 29 01:49:17 1995  steve chamberlain  <sac@slash.cygnus.com>
17070
17071         * libc/sys/win32/crt0.c (hmap_init): Call __init_hinfo.
17072         * libc/sys/win32/pipe.c (pipe): Ditto.
17073         * libc/sys/win32/syscalls.c (__read):  Use new vtime and vmin fields.
17074         * libc/sys/win32/syscalls.h (hinfo): vtime, vmin are new.
17075         * libc/sys/win32/termios.c (tcsetattr): Init new fields.
17076         (tcgetattr): Contents are new.
17077         * libc/sys/win32/include/winkernel.h (DCB): New.
17078         (GetCommState, SetCommState): New.
17079
17080 Thu Sep 28 16:29:09 1995  Doug Evans  <dje@deneb.cygnus.com>
17081
17082         * libc/sys/arm/crt0.S (_start): Define.
17083
17084 Thu Sep 28 12:26:45 1995  steve chamberlain  <sac@slash.cygnus.com>
17085
17086         * libc/sys/arm/crt0.S: Move stack to top of RAM on PIE board.
17087         * libc/sys/arm/syscalls.c (_read, _write): Use the SWI properly.
17088
17089         * libc/sys/win32/sysconf.c: New
17090         * libc/sys/win32/sys/winadvapi.h: New
17091         * libc/sys/win32/syscalls.h (hinfo): Added timeout_len, w_binary, r_binary.
17092         * libc/sys/win32/crt0.c (hmap_init): Initialize new fields.
17093         * libc/sys/win32/pipe.c (pipe): Ditto.
17094         * libc/sys/win32/signal.c (_raise): New.
17095         (_kill): Moved from spawn.c
17096         * libc/sys/win32/spawn.c (kill): Moved to signal.c
17097         * libc/sys/win32/syscalls.c (__read): Use new fields.
17098         (_open): Ditto.
17099         * libc/sys/win32/termios.c (tcflush, tcsetattr, tcgetattr): Fill in.
17100         * libc/sys/win32/exceptions.c (__stack_trace): Keep going for longer.
17101         * libc/include/sys/unistd.h (rmdir): Takes const path.
17102         * libc/include/sys/stat.h (mkdir): Takes const path.
17103         * libc/include/sys/signal.h (SIGTTOU, SIGTTIN): New for win32.
17104
17105 Thu Sep 28 10:11:27 1995  Doug Evans  <dje@canuck.cygnus.com>
17106
17107         * libc/sys/win32/spawn.c (_spawn): Fix quoting.
17108
17109         Add support for specifying paths as //<drive>/foo/bar.
17110         * libc/sys/win32/syscalls.h (__path_needs_conversion_p): Declare.
17111         (__path_to_real_path): Declare.
17112         (PATH_TO_REAL_PATH): New macro.
17113         * libc/sys/win32/syscalls.c (__win32_pid_to_posix_pid): Minor cleanup.
17114         (__path_needs_conversion_p, __path_to_real_path): New functions.
17115         (_open): Fix test for error return from CreateFileA.
17116         Handle new path syntax.
17117         (_link, mkdir, rmdir, getcwd, chdir, stat): Handle new path syntax.
17118         * libc/sys/win32/dirsearch.c (opendir): Likewise.
17119
17120 Wed Sep 27 16:36:46 1995  steve chamberlain  <sac@slash.cygnus.com>
17121
17122         * libc/sys/win32/include/*.h: Reorganized
17123         * libc/sys/win32/include/WINREADME: New.
17124         * libc/sys/win32/Makefile.in (DLLS): Build version.a.
17125         * libc/sys/win32/*.c: Fix for new include scheme.
17126         * libc/sys/win32/crt0.c (__this_uinfo_buf, __this_uinfo): New.
17127         * libc/sys/win32/getlogin.c (getlogin): Use uinfo.
17128         * libc/sys/win32/passwd.c (*): Fix.
17129         * libc/sys/win32/syscalls.c (get[e|][g|u]id): Use passwd info.
17130         (_stat): Get directory owner and permissions right.
17131         * libc/sys/win32/syscalls.h (uinfo): New.
17132         * libc/sys/win32/version.def: Remove leading underscores.
17133
17134 Tue Sep 26 18:18:47 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
17135
17136         * libc/sys/win32/key.c: include "include/wincon.h".
17137
17138 Tue Sep 26 07:21:48 1995  steve chamberlain  <sac@slash.cygnus.com>
17139
17140         * libc/sys/win32/{key, stubs}.c: New.
17141         * libc/sys/win32/Makefile: Adjust to cope.
17142         * libc/sys/win32/crt0.c (vfork_init_first): Cope with -ve pids.
17143         (environ_init): Change env names to upper case.
17144         * libc/sys/win32/dirsearch.c (readdir): Don't fill in inode number.
17145         * libc/sys/win32/passwd.c (*): Fill in the functions.
17146         * libc/sys/win32/pipe.c (_fcntl): F_GETFL returns O_RDWR.
17147         * libc/sys/win32/spawn.c (_spawn): Cope with -ve pids.
17148         * libc/sys/win32/syscalls.c (__win32_pid_to_posix_pid): New function.
17149         (_open): Initialze hmap->execable_p too.
17150         * libc/sys/win32/syscalls.c (getuid, getgid, geteuid, getegid): Return from macros.
17151         (_fstat): Fill in permissions.
17152         * libc/sys/win32/syscalls.h (hinfo): Add execable_p.
17153
17154 Fri Sep 22 13:47:27 1995  Doug Evans  <dje@canuck.cygnus.com>
17155
17156         * configure.in (cfg-ml-com.in invocation): Use ${with_multilib_top}
17157         if defined.
17158         (cfg-ml-pos.in invocation): Likewise.
17159
17160 Fri Sep 22 11:43:44 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
17161
17162         * Makefile.in (MATHOBJS_IN_LIBC): Added s_isinf.o, sf_isinf.o,
17163         s_isnan.o and sf_isnan.o.
17164
17165 Wed Sep 20 14:50:19 1995  Ian Lance Taylor  <ian@cygnus.com>
17166
17167         * All Makefile.in files: added maintainer-clean target as a
17168         synonym for realclean.
17169
17170 Wed Sep 20 11:02:50 1995  Jeff Law  (law@snake.cs.utah.edu)
17171
17172         * libc/include/machine/setjmp.h: Add hppa support.
17173         * libc/machine/hppa/setjmp.S: New file with setjmp/longjmp
17174         support.
17175         * libc/machine/hppa/Makefile.in: Related changes.
17176
17177 Tue Sep 19 12:09:01 1995  J.T. Conklin  <jtc@blues.cygnus.com>
17178
17179         * configure.in (machine_dir): Don't set for v810-*-*.
17180
17181 Fri Sep 15 20:22:08 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
17182
17183         * libc/sys/win32/crt0.c (passover): Change to handle MKS quoting
17184         conventions correctly.
17185
17186 Thu Sep 14 13:37:22 1995  J.T. Conklin  <jtc@blues.cygnus.com>
17187
17188         * libc/stdio/puts.c: Update documentation of return value to match
17189         ANSI standard.
17190
17191 Thu Sep 14 01:52:37 1995  Doug Evans  <dje@canuck.cygnus.com>
17192
17193         Fix file descriptor inheritance.
17194         * libc/sys/win32/syscalls.h (CHILD_P): Define again.
17195         (NOT_OPEN_FD): Fix.
17196         * libc/sys/win32/spawn.c (vfork0): Only create inheritable handle if
17197         close-on-exec flag not set.  Initialize child's entire fd table.
17198         * libc/sys/win32/syscalls.c (_open): Only create inheritable handle if
17199         CHILD_P.
17200         * libc/sys/win32/pipe.c (pipe): Only create new handle as inheritable
17201         if CHILD_P.  Initialize entire hmap entry.
17202         (dup): Only create new handle as inheritable if CHILD_P.
17203         (dup2): Likewise.  Properly initialize hmap entry.
17204
17205         * libc/sys/win32/spawn.c (_execve): Don't pass _P_SEARCH_PATH to
17206         _spawn.
17207         (_exit): Use CHILD_P.
17208         * libc/sys/win32/syscalls.c (_fstat): Fix call to memset.
17209         (_stat): Likewise.
17210
17211 Mon Sep 11 23:09:39 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
17212
17213         * libc/sys/win32/crt0.c (passover): fix up the state table.
17214         * libc/posix/popen.c: Added.
17215         * libc/posix/Makefile.in: compile popen.c.
17216
17217 Mon Sep 11 11:43:38 1995  J.T. Conklin  <jtc@cygnus.com>
17218
17219         * libc/include/machine/ieeefp.h: On the h8/300, h8/300h and
17220         h8/500 define _DOUBLE_IS_32BITS.
17221
17222 Sat Sep  9 17:55:54 1995  Doug Evans  <dje@canuck.cygnus.com>
17223
17224         Get vfork/exec/spawn/cwait/wait working again.
17225         * libc/sys/win32/syscalls.h (VFORK_NEWBORN_PSEUDO_PID): Define.
17226         (procinfo): New member vfork_level.
17227         * libc/sys/win32/crt0.c (__vfork_next_pid): Delete.
17228         (vfork_init_first): Use GetCurrentProcessId to get pid.
17229         Initialize vfork_level.
17230         (vfork_init): Delete __PID__.
17231         (environ_init): New function.  Undo patch of Aug 19, Posix says
17232         environment variables are case sensitive.
17233         (mainCRTStartup): Call it.
17234         * libc/sys/win32/spawn.c (__vfork_next_pid): Delete.
17235         (my_longjump: Make static.
17236         (_spawn): New argument `h'.  Delete setting of __PID__.
17237         Delete local `idx'.  Look for chars that need quotes, rather than
17238         ones that don't.  Set handle of created process in `h'.
17239         Result is process id if created task.
17240         (allocate_spawn_entry): New function.
17241         (spawnvp, spawnv): Call it.  Store handle and pid in procinfo entry.
17242         (_execve): Set __FD_TABLE__ before spawning child.
17243         Scan our fd table when passing fds, not our parent's.
17244         Store handle and pid in procinfo entry.
17245         (vfork0): Ensure strace message always printed.
17246         Set child pid to VFORK_NEWBORN_PSEUDO_PID.
17247         (vfork): Don't clobber result of vfork0.
17248         * libc/sys/win32/wait.c (cwait): Fix non-error result (is pid).
17249         (wait_for_any): Ignore processes in state FORK_STATE_VFORK_0.
17250
17251         * libc/sys/win32/syscalls.h (procinfo): New members `handle_valid_p'
17252         and `exit_code'.
17253         * libc/sys/win32/spawn.c (allocate_spawn_entry): Initialize them.
17254         (vfork0): Likewise.  Distinguish children, grandchildren, etc. by
17255         adding vfork level to pseudo-pid.
17256         (vfork1): If not root, set state back to FORK_STATE_VFORK_0.
17257         (spawnvp, spawnv, _execve): Set handle_valid_p if success.
17258         (_exit): If child, set exit code.
17259         (__vfork_record_death): Only close process handle if valid.
17260         * libc/sys/win32/wait.c (wait_for_single): Watch for children that
17261         didn't exec.
17262         (wait_for_any): Likewise.  Start scan after root entry.
17263
17264 Fri Sep  8 18:48:02 1995  Jason Molenda   (crash@phydeaux.cygnus.com)
17265
17266         * libc/include/sys/types.h (off_t): off_t back to 32 bits.
17267         * libc/include/sys/_types.h (_off_t): _off_t back to 32 bits.
17268         * libc/sys/win32/syscalls.c (_fstat): st_size is lower 32-bits
17269         of actual file length.
17270
17271         * libc/sys/win32/sys/wait.h: include <sys/types.h>.
17272         * libc/include/paths.h: _PATH_BSHELL added.
17273         * libc/include/sys/unistd.h: define STDIN_FILENO, STDOUT_FILENO,
17274         and STDERR_FILENO.
17275
17276 Thu Sep  7 21:02:22 1995  Jason Molenda   (crash@phydeaux.cygnus.com)
17277
17278         * libc/include/ar.h: Added.
17279         * libc/include/sys/types.h: ino_t goes back to 32-bits.
17280         * libc/sys/win32/syscalls.h (hinfo): added .namehash field.
17281         * libc/sys/win32/syscalls.c (_open): compute .namehash based
17282         on filename.
17283         (_fstat): use .namehash for inode number of the fd.
17284
17285 Thu Sep  7 12:57:19 1995  steve chamberlain  <sac@slash.cygnus.com>
17286
17287         * libc/sys/win32/{console,ioctl,pipe,spawn,syscalls,wait}.? (*):
17288          Change hinfo to __this_procinfo.
17289         * libc/sys/win32/crt0.c: Remove procinfo_list.
17290
17291 Wed Sep  6 18:38:26 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
17292
17293         * libc/include/sys/types.h (ino_t): Define ino_t correctly for
17294         win32 environment.
17295
17296 Wed Sep  6 18:09:29 1995  Jason Molenda   (crash@phydeaux.cygnus.com)
17297
17298         * libc/sys/win32/include/grp.h: Removed.
17299         * libc/sys/include/grp.h: Added.
17300         * libc/sys/win32/grp.c: Include <grp.h>.
17301
17302 Wed Sep  6 16:52:48 1995  steve chamberlain  <sac@slash.cygnus.com>
17303
17304         * libc/include/sys/signal.h (__need_MAX_SIGNALS): Removed.
17305         (sigset_t, sigaction, SIG_SETMASK, SIG_BLOCK, SIG_UNBLOCK):
17306         Defined for all but strict ANSI.
17307         * libc/include/sys/reent.h (__need_MAX_SIGNALS): Removed.
17308         * libc/include/machine/setjmp.h: Get win32 _JBLEN right.
17309         * libc/signal/signal.c (_signal_r): Changed from using
17310         _MAX_SIGNALS to NSIG.
17311         * libc/sys/win32/crt0.c (__current_pid, __parent_hmap, __child_hmap,
17312          __hmap): Deleted.
17313         (__strace, __vfork_next_pid): New.
17314         (__exe_suffix): Default to 1.
17315         (passover, table): Understand quoted arguments.
17316         (vfork_init_first): New.
17317         (vfork_init): Initialize new process structure.
17318         (mainCRTStartup): Pass environ to main.
17319         * exceptions.c (__sig_mask): New
17320         (ehandler3): Ignore signals in mask.
17321         (really_exit): Remove CHILD_P test.
17322         * pipe.c (pipe, dup, dup2): Use new process and file structure.
17323         * resource.c (getrusage): Ditto.
17324         * signal.c (sigprocmask): New.
17325         * spawn.c (*): Rewritten.
17326         * syscalls.c (*): Use new process and file structure.
17327         (find_unused_handle): New.
17328         * syscalls.h (MAX_HANDLES): Deleted.
17329         (hinfo): Removed child_created_p.
17330         (MAX_CHILDREN): Deleted.
17331         (vfork_jmp_info, procinfo): New.
17332         * wait.c (*): Mostly new.
17333         * sys/strace.h (_STRACE_PARANOID): New.
17334         * sys/param.h: New file.
17335
17336 Wed Sep  6 17:03:53 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
17337
17338         * libc/include/sys/stat.h: add S_BLKSIZE.
17339         * libc/include/sys/_types.h: _off_t is a 64-bit type under win32.
17340         * libc/include/sys/types.h: define off_t and ino_t to be 64 bit
17341         types under win32.
17342         (mode_t): add a #else to avoid multiple definitons.
17343
17344         * libc/sys/win32/Makefile.in: add grp.c.
17345         * libc/sys/win32/grp.c: include grp.h correctly.
17346         * libc/sys/win32/syscalls.c (_fstat): set almost all of the fields
17347         of the st structure with real information.
17348         * libc/sys/win32 (dirent): d_ino is of type ino_t.
17349
17350 Wed Sep  6 10:41:34 1995  Doug Evans  <dje@canuck.cygnus.com>
17351
17352         * libc/include/sys/types.h (mode_t): Correct for svr4 sparc's
17353         and (maybe) sparc64.
17354         (nlink_t): Provide typedef.
17355
17356 Tue Sep  5 18:46:05 1995  Jason Molenda   (crash@phydeaux.cygnus.com)
17357
17358         * libc/sys/win32/grp.c: New file.
17359         * libc/sys/win32/include/grp.h: New file.
17360
17361 Tue Sep  5 13:47:27 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
17362
17363         * libc/include/machine/ieeefp.h: Added whitespace to make this
17364         file easier to maintain.
17365         On the sh, define either __IEEE_BIG_ENDIAN or __IEEE_LITTLE_ENDIAN
17366         depending on the value of __LITTLE_ENDIAN__.
17367         On the sh3e, define _DOUBLE_IS_32BITS.
17368
17369 Fri Sep  1 15:35:18 1995  James G. Smith  <jsmith@beauty.cygnus.com>
17370
17371         * libc/sys/vr4300/syscalls.c: Added missing support
17372         routines. _raise() and getpid().
17373
17374 Fri Sep  1 14:12:48 1995  James G. Smith  <jsmith@rtl.cygnus.com>
17375
17376         * configure.in (mips*vr4300*-*-elf): Fixed silly mistake
17377
17378 Fri Sep  1 08:42:11 1995  James G. Smith  <jsmith@beauty.cygnus.com>
17379
17380         * configure.in (mips*vr4300*-idt-*) Add support for RISQ monitor
17381         and VR4300 processor.
17382         * libc/sys/vr4300: Add directory.
17383         * libc/sys/vr4300/{Makefile.in, crt0.S, syscalls.c}: Add SIM
17384         monitor run-time support.
17385
17386 Thu Aug 31 09:16:52 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
17387
17388         * libc/stdlib/Makefile.in (CHEWOUT_FILES): Removed atol.def.
17389         * libc/stdlib/stdlib.tex: Don't include atol.def.
17390
17391 Wed Aug 30 20:38:28 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
17392
17393         * libc/sys/win32/uname.c (uname): hardcode processor as `i386'.
17394
17395 Wed Aug 30 10:48:08 1995  steve chamberlain  <sac@slash.cygnus.com>
17396
17397         * libc/ctype/Makefile.in: Fill in _to* dependencies.
17398
17399 Tue Aug 29 17:14:29 1995  steve chamberlain  <sac@slash.cygnus.com>
17400
17401         * libc/sys/win32/{dirsearch.c,sys/dirent.h}: Fix namespace problems.
17402         * libc/sys/win32/sys/dirent.h (struct dirent): Added d_ino.
17403         * libc/sys/win32/strace.c (__sys_printf): Increase size of buffer.
17404         * libc/sys/win32/smallprint.c (__small_vsprintf): Remove debug.
17405         * libc/sys/win32/dirsearch.c (readdir): Set d_ino.
17406
17407 Tue Aug 29 19:00:09 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
17408
17409         * libc/stdlib/atol.c (atol): DEFUN -> _DEFUN.
17410
17411 Tue Aug 29 16:08:09 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
17412
17413         * libc/stdlib/Makefile.in (OFILES): Added atoff.o and atol.o.
17414         * libc/stdlib/atoff.c: New file.
17415         * libc/stdlib/atof.c (atoff): Moved to atoff.c.
17416         * libc/stdlib/atoi.c (atol): Removed.
17417         * libc/stdlib/atol.c: Removed duplicate documentation.
17418
17419         * libc/include/ctype.h (_tolower, _toupper): Moved inside
17420         #ifndef _STRICT_ANSI conditional.
17421         * libc/ctype/Makefile.in (OFILES): Added _tolower.o and _toupper.o
17422         * libc/ctype/_tolower.c: New file.
17423         * libc/ctype/_toupper.c: New file.
17424         * libc/ctype/tolower.c (_tolower): Moved to _tolower.c.
17425         * libc/ctype/toupper.c (_toupper): Moved to _toupper.c.
17426         * libc/ctype/toascii.c (_toascii): Removed.
17427
17428 Tue Aug 29 12:17:32 1995  Doug Evans  <dje@canuck.cygnus.com>
17429
17430         * libc/sys/sparc64/sys/types.h: Deleted.
17431
17432 Mon Aug 28 22:06:08 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
17433
17434         * libc/sys/win32/uname.c (uname): change `Windows/NT' to `Windows_NT'
17435         and recognize Windows_95 systems.
17436
17437 Mon Aug 28 19:50:54 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
17438
17439         * libc/sys/win32/crt0.c (vfork_init, hmap_init): standard I/O fds
17440         and passed fds should be opened in text mode.
17441
17442 Mon Aug 28 18:51:22 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
17443
17444         * libc/sys/win32/crt0.c (vfork_init): mark passed fds as used
17445         in __hmap, set to binary mode by default.
17446
17447 Tue Aug 22 14:12:37 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
17448
17449         * libc/sys/sh/syscalls.c: Updated all functions to call __trap34.
17450         * libc/sys/sh/trap.S (__trap34): Renamed from __trap3.  Use trap
17451         vector 34.
17452
17453 Sat Aug 19 18:25:37 1995  steve chamberlain  <sac@slash.cygnus.com>
17454
17455         * Makefile.in (install): Install all libraries found in the
17456         top level.  If there's a sys/<type>/include directory,
17457         install those headers into include.
17458
17459         * libc/sys/win32/kernel.def351: Delete
17460         * libc/sys/win32/{comctl32.def, comdlg32.def, ctl3d32.def,
17461         glaux.def, glu32.def, largeint.def, libc.def, libcmt.def,
17462         lz32.def, mgmtapi.def, mpr.def, msacm32.def, msvcrt.def,
17463         nddeapi.def, netapi32.def, odbc32.def, odbccp32.def, oldnames.def,
17464         ole32.def, oleaut32.def, opengl32.def, rasapi32.def, rpcndr.def,
17465         rpcns4.def, rpcrt4.def, scrnsave.def, shell32.def, snmp.def,
17466         uuid.def, vdmdbg.def, version.def, vfw32.def, win32spl.def,
17467         winmm.def, winspool.def, winstrm.def, wsock32.def}: New.
17468
17469         * libc/sys/win32/Makefile.in: Update for new files and new dlltool options.
17470         * libc/sys/win32/crt0.c: Force all env names to upper case.
17471         * libc/sys/win32/sys/win*.h -> libc/sys/win32/include
17472         * libc/sys/win32/*.c: Headers have moved.
17473         * libs/sys/win32/*.[ch]: Test for open_p rather than BAD_HANDLE,
17474         __vfork_child_idx is now __vfork_child_ptr.
17475
17476         * posix/execvp (execvp): Don't crash if no PATH envname.
17477
17478 Fri Aug 18 12:22:59 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
17479
17480         * libc/include/sys/reent.h (_Bigint): Removed _reclaim field.
17481         * libc/reent/reent.c (_reclaim_reent): Free Bigint's by going
17482         through the _freelist instead of through the _reclaim list.
17483         * libc/stdlib/mprec.c (_Balloc): Don't put new node on _reclaim list.
17484         * libc/stdlib/mprec.c (_Bcopy): Make like version in master dtoa.c
17485         sources.
17486
17487 Thu Aug 17 11:03:27 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
17488
17489         * libc/machine/h8500/setjmp.S: New file.
17490         * libc/include/machine/setjmp.h: Updated for H8/500.
17491
17492 Wed Aug 16 16:19:11 1995  steve chamberlain  <sac@slash.cygnus.com>
17493
17494         * libc/sys/win32/syscalls.c (_open): More stracing.
17495         (_stat): Open the file in O_BINARY.
17496
17497 Wed Aug 16 15:49:01 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
17498
17499         * libc/machine/h8300/setjmp.S: New file.
17500         * libc/include/machine/setjmp.h: Updated for H8/300 and H8/300H.
17501
17502 Tue Aug 15 10:31:09 1995  Doug Evans  <dje@canuck.cygnus.com>
17503
17504         * libc/sys/win32/crt0.c (__exe_suffix): New global.
17505         (mainCRTStartup): Set __exe_suffix from LIBC_EXE_SUFFIX.
17506         * libc/sys/win32/spawn.c (_spawn): Add .exe suffix based on
17507         __exe_suffix.  Free fd_tab after setting env variable.
17508         (spawnv,_execve): Update.
17509         * libc/sys/win32/syscalls.h (__exe_suffix): Declare.
17510         * libc/sys/win32/smallprint.c (puts,putn): New (static) functions.
17511         (__small_vfprintf): New function.
17512         * libc/sys/win32/strace.c (__sys_printf): Call __small_vfprintf.
17513         * libc/sys/win32/wait.c (cwait): Validate argument.
17514
17515         * libc/sys/win32/syscalls.c (queue_file_deletion): Add trace message.
17516         (process_deletion_queue): Likewise.
17517
17518         * libc/sys/win32/Makefile.in (lib.a): Don't call $(RANLIB).
17519
17520 Mon Aug 14 10:14:10 1995  steve chamberlain  <sac@slash.cygnus.com>
17521
17522         * libc/sys/win32: Copyrights and gratuitous indenting.
17523
17524 Mon Aug 14 01:32:58 1995  Doug Evans  <dje@canuck.cygnus.com>
17525
17526         * libc/sys/win32/syscalls.c (queue_file_deletion): Finish.
17527         (process_deletion_queue): Likewise.
17528         (__close_all_files): New function.
17529         (_close): Only queue file deletion if really a file.
17530         * libc/sys/win32/spawn.c (_spawn): Only ensure .exe suffix if
17531         _P_APPEND_EXE.
17532         (_exit): Call __close_all_files.
17533
17534         * libc/stdlib/system.c: #include <errno.h>.
17535         (_system_r): Fix results in -DNO_EXEC case.
17536
17537         * libc/sys/win32/sys/dirent.h (DIR): New member __d_dirname.
17538         Reorganize structure.
17539         * libc/sys/win32/dirsearch.c (opendir): Use stat to determine
17540         if argument is valid.  Save directory name in DIR.  malloc space
17541         for dirent struct separately.
17542         * libc/sys/win32/syscalls.c (stat): Fix test for directory.
17543
17544         * libc/include/errno.h (ENAMETOOLONG): Define.
17545         * libc/string/strerror.c (strerror): Reword ENFILE.
17546         Add ENOSYS, ENMFILE, ENOTEMPTY, ENAMETOOLONG.
17547
17548 Sun Aug 13 22:42:25 1995  Doug Evans  <dje@canuck.cygnus.com>
17549
17550         * libc/sys/win32/crt0.c (__progname): New global.
17551         (mainCRTStartup): Support strace=bitmask,filename.
17552         * libc/sys/win32/dirsearch.c (all fns): Add trace messages.
17553         * libc/sys/win32/syscalls.c (_write): Print parent trace message
17554         if error.
17555         (getcwd): Handle len too small.  Convert '\\' to '/'.
17556         * libc/sys/win32/sys/fcntl.h (O_RDWR): = O_RDONLY|O_WRONLY.
17557         Add prototypes for open, creat, fcntl.
17558         (O_APPEND): Change value to conform to Microsoft's value.
17559         * libc/sys/win32/sys/strace.h (_STRACE): Protect in do/while.
17560
17561         * libc/stdlib/getopt.c: New file.
17562         * libc/stdlib/Makefile.in: Build it.
17563
17564 Sat Aug 12 12:17:14 1995  Doug Evans  <dje@canuck.cygnus.com>
17565
17566         * libc/posix/execvp.c (execvp): Watch for DOS drives ifdef _WIN32.
17567         Fix scanning of $PATH.
17568         * libc/posix/exec*.c: Call _execve, not execve.
17569         * libc/posix/execve.c: New file.
17570         * libc/posix/Makefile.in (OFILES): Add execve.o.
17571
17572         * libc/sys/win32/sys/strace.h (_STRACE_ALL, _STRACE_UHOH,
17573         _STRACE_STARTUP, _STRACE_SYSCALL): More bit masks of things to trace.
17574         (_STRACE): If level==0, always print.  Handle new bit mask scheme.
17575         * libc/sys/win32/crt0.c: Update _STRACE calls.
17576         * libc/sys/win32/{pipe.c,resource.c,spawn.c,syscalls.c,wait.c}: Ditto.
17577
17578         * libc/sys/win32/smallprint.c (rn): Fix digit list.
17579
17580         * libc/sys/win32/syscalls.c (__really_exit): Move from here,
17581         * libc/sys/win32/exceptions.c (really_exit): to here. Avoid recursion.
17582         * libc/sys/win32/spawn.c (spawnvp): Pass `prog' as image name.
17583         Print __seterrno trace message first.
17584         (_execve): Renamed from execve.
17585         (vfork): Update __strace usage.
17586         (__vfork_child_pid): Deleted.
17587         (__vfork_children, __vfork_child_idx): New globals.
17588         (_spawnvp): New function.
17589         (spawnvp, spawnv, _execve): Call _spawnvp.
17590         (init_child): Record child in __vfork_children.
17591         (__vfork_get_entry, __vfork_record_death): New functions.
17592         * libc/sys/win32/crt0.c (mainCRTStartup): Initialize __vfork_children.
17593         * libc/sys/win32/kernel32.def (WaitForMultipleObjects): Define.
17594         * libc/sys/win32/syscalls.h (CHILD_P): New macro.  All files updated.
17595         (MAX_CHILDREN, CHILD_INTERIM_PID): Define.
17596         (children): New typedef.
17597         (__vfork_children,__vfork_child_idx): Declare.
17598         (__vfork_get_entry,__vfork_record_death): Declare.
17599         * libc/sys/win32/wait.c (wait_for_single,wait_for_any): New functions.
17600         (waitpid): Handle pid == -1.
17601         * libc/sys/win32/sys/wintypes.h (WaitForMultipleObjects): Declare.
17602         * configure.in (i386-win32): Add -DNO_FORK.
17603         * libc/syscalls/sysfork.c (fork): Don't define for NO_FORK.
17604         * libc/reent/execr.c (_fork_r): Likewise.
17605         * libc/stdlib/system.c (do_system): New function.
17606         If WIN32, try to get shell path from $SH_PATH, use vfork.
17607         (_system_r): Return 1 for (s == NULL) if WIN32 or unix,
17608         otherwise return 0.
17609
17610 Sat Aug 12 11:08:00 1995  steve chamberlain  <sac@slash.cygnus.com>
17611
17612         * libc/stdlib/{mallocr.c, mstats.c}: Move mstats from mallocr to mstats.c.
17613         * libc/sys/win32/fcntl.h: Don't include self.
17614         * libc/sys/win32/sys/strace.h (_STRACE_WM, _strace_wm): New.
17615         * libc/sys/win32/sys/winbase.h: (GetUserName) New.
17616         * libc/sys/win32/sys/wincon.h (HANDLER_ROUTINE): Define correctly.
17617         * libc/sys/win32/sys/wintypes.h (GetFileType, GetCurrentProcess, CloseHandle,
17618         SetFilePointer, CreateFileA, GetFileInformationByHandle, GetStdHandle):
17619         Correct prototypes.
17620         * libc/sys/win32/strace.c: New file.
17621         * libc/sys/win32/smallprint.c: New file.
17622         * libc/sys/win32/crt0.c (func): Delete.
17623         (mainCRTStartup): Fix alloca usage.  Set handles explictly.
17624         * libc/sys/win32/dirsearch.c: Clean up handle usage, fix calls to __seterrno.
17625         * libc/sys/win32/exceptions.c: Lint.
17626         * libc/sys/win32/{ioctl.c, pipe.c, resource.c, spawn.c, cwait.c, syscalls.c}:
17627         Clean up handle usage.
17628         * libc/sys/win32/syscalls.c (__sys_printf): Moved into strace.c
17629         (open.c): Default file type is text.
17630         * libc/sys/win32/uname.c (uname): Use __small_sprintf.
17631         * libc/sys/win32/advapi32.def: New
17632
17633 Fri Aug 11 17:11:52 1995  Doug Evans  <dje@canuck.cygnus.com>
17634
17635         * configure.in (posix_dir, libc_posix_lib): New variables.
17636         Define LIBC_POSIX_LIB in makefile to be $libc_posix_lib.
17637         (i[345]86-*-win32): Define posix_dir.
17638         Delete -DNO_EXEC.  Define -DHAVE_OPENDIR.
17639         (if unix_dir): Fix typo.
17640         * libc/posix/{Makefile.in,closedir,opendir,readdir,rewinddir,
17641         scandir,seekdir,telldir}: New files.
17642         * libc/posix/{execl.c,execle.c,execlp.c,execv.c,execvp.c}: Move here
17643         from libc/unix.
17644         * libc/Makefile.in (LIBC_POSIX_LIB): Define.
17645         (SUBDIRS): Add posix.
17646         (SUBLIBS): Add $(LIBC_POSIX_LIB).
17647
17648         * libc/include/sys/signal.h (SIGCHLD): Add for _WIN32.
17649         (NSIG): Increase to 21.
17650         * libc/include/sys/unistd.h (pid_t): Move from here,
17651         * libc/include/sys/types.h (pid_t): to here.
17652
17653         * libc/sys/win32/syscalls.h: #include "sys/strace.h".
17654         (__ptrace): Delete.
17655         (hinfo): New members close_exec_p, child_created_p.
17656         (struct exception_list): Define.
17657         (__hmap): Redefine as pointer to table.
17658         (__parent_hmap, __child_hmap): New globals.
17659         (__set_errno, __really_exit): Declare.
17660         (__vfork_child_pid): Declare.
17661         * libc/sys/win32/crt0.c (__strace, __trace_file): New global.
17662         (__orig_stdin, __orig_stdout, __orig_stderr): New globals.
17663         (__parent_hmap, __child_hmap): New globals.
17664         (__hmap): Redefine as pointer to active map.
17665         (__get_console): New function.
17666         (mainCRTStartup): Change leading '=' in environ vars to '!'.
17667         (env __FD_TABLE__): Watch for this and initialize our fd/handle
17668         mapping table from it if defined.
17669         (argv, envp): Dump if __strace >= 4.
17670         (main): Call here.
17671         * libc/sys/win32/exceptions.c (myp): Redefine.
17672         (__syscalls_b): Delete.
17673         (__stack_trace): New function.
17674         (ehandler3): Update to use _STRACE.  Print stack trace.
17675         Call __really_exit instead of exit.
17676         (init_exceptions): Delete args argc,argv.  New arg mine.
17677         * libc/sys/win32/kernel32.def (CreatePipe, DuplicateHandle, FindClose,
17678         FindFirstFileA, FindNextFileA, GetComputerNameA,
17679         GetEnvironmentVariableA, ReadFile, SetEnvironmentVariableA): Define.
17680         * libc/sys/win32/signal.c (signal): Validate arg.
17681         (alarm, sleep): Define as stubs for now.
17682         * libc/sys/win32/syscalls.c (all fns): Update to use _STRACE.
17683         (__syscalls_b, errno): Delete.
17684         (__vfork_child_pid, __vfork_jmp_buf): New globals.
17685         (__seterrno): Handle more errors.
17686         (__sys_printf): Renamed from _ptrace.
17687         (__really_exit): New function.
17688         (queue_file_deletion, process_deletion_queue): New functions.
17689         (__resume_parent): New function.
17690         (_unlink): Handle trying to delete open file.
17691         (__totime_t): Renamed from totime_t.
17692         (setsid, __read, __write): New functions.
17693         (cwait, spawnvp, R, D, getrusage, _execve, _fork, _wait): Delete.
17694         * libc/sys/win32/{dirsearch.c,getlogin.c,misc.c,resource.c,passwd.c,
17695         times.c,spawn.c,pipe.c,wait.c,termios.c,ioctl.c,uname.c}: New files.
17696         * libc/sys/win32/console.c: Update to new definition of __hmap.
17697         * libc/sys/win32/Makefile.in: Build new files.
17698         * libc/sys/win32/sys/{dirent.h,winerror.h,wait.h,termios.h}: New files.
17699         * libc/sys/win32/sys/{ioctl.h,utsname.h}: New files.
17700         * libc/sys/win32/sys/strace.h: Renamed from ptrace.h.
17701         * libc/sys/win32/sys/wintypes.h (GetCurrentDirectoryA): Fix prototype.
17702
17703 Thu Aug 10 16:32:52 1995  Doug Evans  <dje@canuck.cygnus.com>
17704
17705         * libc/sys/h8500hms/misc.c (kill): Handle SIGABRT.
17706
17707 Thu Aug 10 12:07:38 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
17708
17709         * libc/stdlib/{dtoa.c, strtod.c}: Merged assorted changes that
17710         have been made to the master dtoa.c sources (from netlib.att.com)
17711         since they were integrated into newlib in early 1992.  Fixes
17712         problems with storage leaks and handling of numbers with very
17713         negative exponents.
17714
17715 Wed Aug  9 14:18:39 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
17716
17717         * Makefile.in (all): set rootpre and srcrootpre before calling
17718         sub-makes.
17719
17720 Tue Aug  8 17:20:45 1995  steve chamberlain  <sac@slash.cygnus.com>
17721
17722         * libc/sys/win32/crt0.c: Change __hmap usage.
17723         * libc/sys/win32/exceptions.c: Use _ptrace call.
17724         * libc/sys/win32/syscalls.c: Use _ptrace call.
17725         (read, write): Cope with DOS style CRLF when in TEXT mode.
17726         * libc/sys/win32/syscalls.h: Declare hinfo struct.
17727         * libc/sys/win32/user32.def: Get DefWindowProc arg list right.
17728         * libc/sys/win32/sys/fcntl.h, ptrace.h: New.
17729         * libc/sys/win32/sys/windows.h: Fill in rest of messages.
17730         * libc/sys/win32/sys/wintypes.h: Fix attribute syntax.
17731
17732 Mon Aug  7 13:04:54 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
17733
17734         * libc/include/math.h (cabs, cabsf, drem, dremf): New declarations.
17735
17736         * libm/math/{w_cabs.c, wf_cabs.c, w_drem.c, wf_drem.c}: New files,
17737         wrappers for hypot() and remainder() for BSD libm compatibility.
17738         These are public domain implementations written by me for the
17739         NetBSD libm some time ago.  Note cabs() is required by ucbtest.
17740         * libm/math/Makefile.in (obj): Added w_cabs.o and w_drem.o.
17741         (fobj): Added wf_cabs.o and wf_drem.o.
17742
17743 Thu Aug  3 08:13:05 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
17744
17745         * libc/sys/h8500hms/misc.c: New file.
17746         * libc/sys/h8500hms/Makefile.in (OFILES): Add misc.o.
17747
17748 Wed Aug  2 16:46:27 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
17749
17750         * libc/time/localtime.c (localtime): Fix problem with leap year
17751         handling.  Stole algorithm from Arthur David Olson's tz code.
17752
17753 Mon Jul 31 10:21:54 1995  steve chamberlain  <sac@slash.cygnus.com>
17754
17755         * configure.in: (z8k-*sim): Renamed z8k-*-coff.
17756
17757         * libc/sys/z8ksim/glue.c (_getpid, _kill): New
17758         (_exit): Use argument.
17759
17760 Fri Jul 28 15:17:04 1995  Doug Evans  <dje@canuck.cygnus.com>
17761
17762         * libc/sys/win32/sys/winbase.h (_WINBASE_H): Define.
17763
17764 Wed Jul 26 16:24:19 1995  steve chamberlain  <sac@slash.cygnus.com>
17765
17766         * libc/sys/sh/trap.S (perrno): Align correctly. (pr 7532)
17767
17768 Mon Jul 24 13:42:52 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
17769
17770         * configure.in (sparc*): Add -DMALLOC_ALIGNMENT=8 to
17771         target_cflags.
17772
17773 Mon Jul 24 11:42:07 1995  steve chamberlain  <sac@slash.cygnus.com>
17774
17775         * libc/sys/win32/crt0.c (mainCRTStartup):  Look for
17776         ptrace with case insensitivity
17777         * libc/sys/win32/{user32.def, gdi32.def, exceptions.c, screen.c,
17778         sys/winbase.h,  sys/windows.h, sys/wintypes.h, sys/winuser.h}:
17779         New files.
17780
17781 Fri Jul 21 11:22:26 1995  Doug Evans  <dje@canuck.cygnus.com>
17782
17783         * Makefile.in: Multilib support moved to ../cfg-ml-{com,pos}.in.
17784         (MULTITOP, MULTIDIRS, MULTISUBDIR, MULTIDO, MULTICLEAN): New variables.
17785         (all, install, *clean): Use new multilib support.
17786         * configure.in: Multilib support moved to ../cfg-ml-{com,pos}.in.
17787
17788 Fri Jul 21 07:11:42 1995  steve chamberlain  <sac@slash.cygnus.com>
17789
17790         * libc/include/sys/signal.h (__WIN32__): New.
17791
17792         * configure.in (i386-*-win32): Remobe SBRK_IS_ALLOC.
17793
17794         * libc/stdlib/mprec.c (Balloc): Fix trampling problem.
17795         (ulp, b2d): Handle 32 bit doubles.
17796         * libc/stdlib/mprec.h:  Handle 32 bit doubles.
17797         * libc/stdlib/strtod.c (_strtod_r): Ditto.
17798
17799 Fri Jul 14 08:24:58 1995  steve chamberlain  <sac@slash.cygnus.com>
17800
17801         from medp@primag.co.uk:
17802         * libc/stdio/setvbuf.c (setvbuf): Fix line buffering on
17803         dynamically allocated buffers.
17804
17805 Thu Jul 20 10:11:03 1995  Fred Fish  <fnf@fishbowl>
17806
17807         * libc/include/sys/unistd.h (_exit):  Add _ATTRIBUTE ((noreturn)).
17808         * libc/stdlib/exit.c (unistd.h):  Include to pick up _exit() declaration.
17809
17810 Thu Jul 20 10:16:25 1995  Michael Meissner  <meissner@tiktok.cygnus.com>
17811
17812         * configure.in (powerpc): Fix previous fix.
17813
17814 Wed Jul 19 14:08:55 1995  Michael Meissner  <meissner@tiktok.cygnus.com>
17815
17816         * configure.in (powerpc-*eabiaix*): Update PowerPC multilib
17817         directories for this target.
17818
17819 Wed Jul 19 00:34:30 1995  Jeffrey A. Law  <law@rtl.cygnus.com>
17820
17821         * configure.in (hppa): Add machine_dir definition.
17822         * libc/machine/hppa: New directory with PA specific implementations
17823         of the basic memory/string functions.
17824
17825 Tue Jul 18 21:16:00 1995  Michael Meissner  <meissner@tiktok.cygnus.com>
17826
17827         * configure.in: Update current PowerPC multilib directories.
17828         Split big and little endian configurations.
17829
17830 Tue Jul 18 11:55:33 1995  Ian Lance Taylor  <ian@cygnus.com>
17831
17832         * configure.in: Add --enable-single-float option to configure to
17833         control use of MIPS single-float directories.  Default to yes.
17834
17835         * Makefile.in (all): Don't recurse into multilib directory if it
17836         does not exist.
17837
17838 Mon Jul 17 15:51:30 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
17839
17840         * libc/sys/sh/syscalls.c: Fix typo.
17841
17842 Mon Jul  3 14:38:52 1995  Steve Chamberlain  <sac@slash.cygnus.com>
17843
17844         * Makefile.in, libc/Makefile.in, libc/sys/Makefile.in:
17845         Pass down DLLTOOL.
17846         * libc/include/process.h: Define WAIT_CHILD.
17847         * libc/include/types.h: Get sizes right for win32.
17848         * configure.in (i386-*-pe): Becomes i386-win32.
17849         * libc/sys/win32/{crt0.c, kernel32.def, longjmp.c, setjmp.c, syscalls.c
17850         wintypes.h,sys/file.h,sys/resource.h}: Second pass.
17851         * libc/stdlib/mallocr.c: Don't round up memory block if SBRK_IS_ALLOC
17852         is defined.
17853
17854 Wed Jun 28 18:34:54 1995  Steve Chamberlain  <sac@slash.cygnus.com>
17855
17856         * configure.in (i[345]86-*-pe):  New target (NT).
17857         * host/any: DLLTOOL new.
17858         * libc/sys/win32/{crt0.c, kernel32.def, longjmp.c, setjmp.c, syscalls.c
17859         wintypes.h,sys/file.h,sys/resource.h}: Preliminary support for
17860         WIN32 (just enough to cross host the comp-tools).
17861
17862 Thu Jun 22 11:45:18 1995  Doug Evans  <dje@canuck.cygnus.com>
17863
17864         * libc/machine/h8300/{cmpsi.S,ucmpsi.S,divhi3.S,mulhi3.S,mulsi3.S}:
17865         Deleted.  These files live in gcc/config/h8300/lib1funcs.asm now.
17866
17867 Mon Jun 19 11:40:40 1995  Doug Evans  <dje@canuck.cygnus.com>
17868
17869         * libc/include/machine/ieeefp.h (arm): Change to always be
17870         __IEEE_BIG_ENDIAN (even on little endian ARM's).
17871
17872 Thu Jun  8 14:22:28 1995  Steve Chamberlain  <sac@slash.cygnus.com>
17873
17874         * libc/sys/crt0.S: Initialze sp, and call exit after main.
17875         * libc/sys/syscalls.c (abort): New.
17876         * configure.in (arm): Define ABORT_PROVIDED.
17877
17878 Wed Jun  7 14:04:35 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
17879
17880         * configure.in (powerpc): Define multidirs.
17881
17882 Mon Jun  5 16:10:13 1995  Doug Evans  <dje@canuck.cygnus.com>
17883
17884         * libc/sys/arm/crt0.S: Add __USER_LABEL_PREFIX__ support.
17885
17886 Thu Jun  1 10:51:47 1995  Sean Eric Fagan <sef@cygnus.com>
17887
17888         * configure.in (sparclite): Delete target_cflags.  Define multidirs.
17889
17890 Wed May 24 14:23:25 1995  Steve Chamberlain  <sac@slash.cygnus.com>
17891
17892         * configure.in, libc/include/machine/ieeefp.h: Modified
17893         for arm:
17894         libc/machine/arm/*, libc/sys/arm/*: New
17895
17896 Tue May 23 13:53:07 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
17897
17898         * libc/include/machine/ieeefp.h: Use __PPC__ instead of
17899           __powerpc__ when determining endianness.
17900
17901 Wed May 10 07:55:56 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
17902
17903         * configure.in (m68*): Add multidir for the m68332.
17904
17905         * host/any (CC): Fix typo in last change.
17906
17907 Fri Apr 14 22:20:31 1995  Ken Raeburn  <raeburn@cujo.cygnus.com>
17908
17909         * libc/include/sys/config.h: Test __m68k__ instead of __m68000__
17910         when determining endianness.
17911         * libc/include/machine/ieeefp.h: Ditto.
17912         * libc/machine/m68k/setjmp.S: Use '&' instead of '#' for immediate
17913         operands.
17914
17915 Fri Apr 14 14:14:29 1995  Doug Evans  <dje@chestnut.cygnus.com>
17916
17917         * libc/include/errno.h (ENOTEMPTY): Define.
17918
17919 Thu Apr  6 12:21:20 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
17920
17921         * configure.in (sparc-sun-sunos*): Add -DMALLOC_ALIGNMENT=8 to
17922           target_cflags.
17923
17924         * libc/sys/sun4/Makefile.in (COPYOFILES): Added rem.o, multiply.o,
17925           and umultiply.o.
17926
17927         * libc/stdio/tmpnam.c (worker): Unconditionally increment count
17928           instead of only when open succeeds.  ANSI requires that multiple
17929           calls to tmpnam() result in different files.
17930
17931         * libc/sys/sun4/Makefile.in (COPYRENAMEOFILES): New macro, list of
17932           objects pulled in from /lib/libc.a that must be renamed before
17933           being pulled into newlib.  /lib/libc.a's div.o conflicted with
17934           newlib's file with the same name.
17935
17936         * libc/stdlib/ldiv.c (ldiv): Call labs() instead of abs().
17937
17938         * host/any (CC, AS, AR, RANLIB): Changed so that executables in
17939           the build tree will only be used if the executables are present
17940           (instead of just the Makefiles).
17941
17942         * libc/include/stdlib.h (mblen, mbtowc, wctomb, mbstowcs,
17943           wcstombs): Define.
17944         * libc/stdlib/{mblen.c, mbstowcs.c, wcstombs.c}: New files, null
17945           versions of these functions that I orignally wrote for the
17946           NetBSD C library.
17947         * libc/stdlib/{mbtowc.c, wctomb.c}: Replaced functions with
17948           versions I wrote for NetBSD.
17949
17950 Wed Mar 29 12:42:42 1995  Kung Hsu  <kung@mexican.cygnus.com>
17951
17952         * libc/sys/sparclite/Makefile.in: add crt0.s and make info.
17953         * libc/sys/sparclite/crt0.s: ditto.
17954
17955 Tue Mar 28 20:28:03 1995  Rob Savoye  <rob@rtl.cygnus.com>
17956
17957         * configure.in: Add soft-float for proelf.
17958
17959 Mon Mar 27 12:07:56 1995  Steve Chamberlain  <sac@bang.hack.com>
17960
17961         * libc/stdlib/mprec.h (Bcopy): Copy the right number
17962         of bytes.
17963
17964 Mon Mar 27 11:24:22 1995  Doug Evans  <dje@chestnut.cygnus.com>
17965
17966         * Makefile.in (all): Depend on `force'.
17967         * configure.in (syscall_dir): Renamed from fake_sys_dir.
17968         (libc_syscall_lib): Renamed from libc_fake_sys_lib.
17969         (LIBC_SYSCALL_LIB): Renamed from LIBC_FAKE_SYS_LIB.
17970         * libc/Makefile.in: Likewise.
17971         * libc/include/reent.h: Update syscall references.
17972         (_fcntl_r): Add prototype.
17973         * libc/syscalls/*.c #include <reent.h>.
17974         (*) Call reentrant version if REENTRANT_SYSCALLS_PROVIDED.
17975
17976 Mon Mar 20 16:57:39 1995  Doug Evans  <dje@deneb.cygnus.com>
17977
17978         * libc/include/sys/stat-dj.h (S_ISBLK): Define.
17979         (S_ISCHR, S_ISDIR, S_ISFIFO, S_ISREG): Define.
17980         * libc/include/sys/stat.h (stat-dj.h): Include ifdef MSDOS.
17981         (time.h, sys/types.h): Always include (even if MSDOS).
17982         (stat): Fix prototype.
17983
17984 Fri Mar 10 11:30:38 1995  Ian Lance Taylor  <ian@cygnus.com>
17985
17986         * configure.in (i[345]86-*-go32): Compile with -DNO_EXEC.
17987
17988 Mon Feb 27 18:00:39 1995  Jim Wilson  <wilson@chestnut.cygnus.com>
17989
17990         * libc/machine/h8500/psi.S (EXTPSIHI_RN_SN): Ifdef out.
17991
17992 Mon Feb 13 16:10:03 1995  Ian Lance Taylor  <ian@cygnus.com>
17993
17994         * libc/include/regdef.h: New file.
17995         * libc/machine/mips/machine/regdef.h: New file.
17996
17997 Mon Feb  6 15:24:29 1995  Doug Evans  <dje@canuck.cygnus.com>
17998
17999         * libc/sys/sparc64/sys/fcntl.h (open): Add ellipsis.
18000
18001 Fri Jan 27 13:52:10 1995  Steve Chamberlain  <sac@splat>
18002
18003         * libc/sys/sh/crt0.S: Pass main's return to exit.
18004         * libc/sys/sh/trap.S: Put errno in the right place.
18005
18006 Tue Jan 24 18:57:56 1995  Ian Lance Taylor  <ian@sanguine.cygnus.com>
18007
18008         * libm/math/e_rem_pio2.c (__ieee754_rem_pio2): Integrate change
18009         from fdlibm 5.2: handle |x| < 3pi/4 more efficiently.
18010         * libm/math/ef_rem_pio2.c: Likewise.
18011         * libm/math/e_log10.c: Remove unused static one.
18012         * libm/math/ef_log10.c: Likewise.
18013         * libm/math/s_frexp.c: Likewise.
18014         * libm/math/sf_frexp.c: Likewise.
18015
18016 Sun Jan 22 21:26:14 1995  Steve Chamberlain  <sac@splat>
18017
18018         * libc/sys/go32/Makefile.in, clock.S, dir.c, setjmp.S, stat.c,
18019         longjmp.S: Upgraded.
18020         * libc/sys/go32/sys/setjmp.h: Upgraded.
18021         * libc/sys/go32/sys/go32.h, dpmi.h: New files.
18022
18023 Fri Jan 20 18:33:18 1995  Ian Lance Taylor  <ian@sanguine.cygnus.com>
18024
18025         * configure.in: Add many entries to multidirs for mips targets.
18026
18027 Wed Jan 18 10:19:25 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
18028
18029         * libm/math/e_jn.c (__ieee754_yn): Integrate change from fdlibm
18030           5.2 which fixes bug where jn(-1,x) is three times larger than
18031           the actual answer.
18032         * libm/math/ef_jn.c (__ieee754_ynf): Likewise.
18033
18034 Sun Jan 15 21:48:58 1995  Steve Chamberlain  <sac@splat>
18035
18036         * libc/sys/w65/sys/syscalls.h: New file
18037         * libc/include/machine/ieeefp.h: W65 support.
18038         * libc/include/sys/config.h: Ditto.
18039         * libc/machine/w65/Makefile.in, cmpsi, divsi3, lshrhi.s, mulsi3.c,
18040         sdivhi3.s, smulhi3.s, udivhi3.s, umodhi3.s: New files.
18041         * libc/sys/w65/Makefile.in, crt0.c, syscalls.c, trap.c: New files.
18042
18043 Wed Jan 11 15:59:01 1995  Ian Lance Taylor  <ian@sanguine.cygnus.com>
18044
18045         * libc/sys/Makefile.in (lib.a, crt0.o): Depend upon subs.
18046
18047 Tue Jan  3 15:57:03 1995  Rob Savoye  <rob@darkstar.cygnus.com>
18048
18049         * Makefile.in, configure.in: Remove any references to the old
18050         "stub" dir.
18051
18052 Thu Dec 22 10:42:08 1994  Ian Lance Taylor  <ian@sanguine.cygnus.com>
18053
18054         * libc/syscalls/sysopen.c: Write _HAVE_STDC version of open, which
18055         uses ... in prototype.
18056
18057
18058 Wed Nov 30 08:39:42 1994  Ian Lance Taylor  <ian@rtl.cygnus.com>
18059
18060         * libc/sys/a29khif/sys/libconfig.h: Remove.
18061         * libc/sys/go32/sys/libconfig.h: Remove.
18062         * libc/sys/sun4/sys/libconfig.h: Remove.
18063         * libc/sys/sysvi386/sys/libconfig.h: Remove.
18064         * libc/sys/sysvnecv70/sys/libconfig.h: Remove.
18065         * libc/sys/sparc64/sys/libconfig.h: Remove.
18066
18067         * libc/include/_ansi.h (_FLOAT_ARG, _FLOAT_RET): Don't define.
18068         * libc/include/sys/config.h (_FLOAT_ARG, _FLOAT_RET): Likewise.
18069         * libc/include/math.h: Change all uses of _FLOAT_RET and
18070         _FLOAT_ARG to float.
18071         * libm/test/math.c: Likewise.
18072         * testsuite/libm.sac/math.c: Likewise.
18073         * testsuite/libm.sac/working/math.c: Likewise.
18074
18075 Wed Nov 23 22:39:28 1994  Steve Chamberlain  (sac@jonny.cygnus.com)
18076
18077         * libc/sys/sh/trap.s,crt0.s,setjmp.s: Renamed with .S so that
18078         gcc calls gas with endian option.
18079         * configure.in (sh): Build little endian version too.
18080
18081 Wed Nov 16 18:21:45 1994  Ian Lance Taylor  <ian@sanguine.cygnus.com>
18082
18083         * configure.in: Configure big and little endian versions for MIPS
18084         targets.
18085
18086 Sat Nov 12 21:12:51 1994  Doug Evans  <dje@canuck.cygnus.com>
18087
18088         * libc/include/limits.h: Deleted.
18089         * libc/include/machine/limits.h: Deleted.
18090
18091 Thu Nov 10 15:32:44 1994  Rob Savoye  <rob@rtl.cygnus.com>
18092
18093         * ChangeLog: Remove stub directory. This has all been rewritten
18094         and moved to devo/libgloss.
18095
18096 Thu Sep 29 18:31:04 1994  Ian Lance Taylor  <ian@sanguine.cygnus.com>
18097
18098         * Makefile.in (dvi): Add to info target, use $@ in sub make.
18099         (docs): Merge into info target.
18100         * libm/Makefile.in (dvi): Add $(srcdir).
18101         * libm/math/Makefile.in (chobjs): Remove underscores from file
18102         names.  Texinfo doesn't like them.
18103         (wacos.def, ...): Add explicit targets for all .def files.
18104         * libm/math/math.tex: Remove underscores from @include file names.
18105         * doc/Makefile.in (dvi): Add dummy target.
18106         * testsuite/Makefile.in (dvi): Add dummy target.
18107
18108 Mon Sep 26 21:17:46 1994  Doug Evans  (dje@canuck.cygnus.com)
18109
18110         * Makefile.in (VERSION): Define.  For net newlib releases.
18111
18112 Thu Sep 22 19:01:26 1994  Doug Evans  (dje@canuck.cygnus.com)
18113
18114         * README: New file.
18115
18116 Mon Sep 19 16:35:23 1994  Jim Wilson  (wilson@sphagnum.cygnus.com)
18117
18118         * libc/stdlib/ecvtbuf.c (_gcvt): Undo last change.
18119
18120 Mon Sep 19 11:44:23 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
18121
18122         * libc/stdlib/setenv.c (_findenv): Declare.
18123
18124         * libc/include/sys/fcntl.h: Fix declarations of open, creat, and
18125         fcntl to not use _EXFUN, and change string parameters to open and
18126         creat to be ``const char *''.
18127         * libc/sys/sparc64/sys/fcntl.h: Likewise.
18128         * libc/sys/sparc64/creat.c (creat): Make PATH const.
18129         * libc/syscalls/sysopen.c: Include <fcntl.h>.
18130         (open) Make _FILE const.
18131         * libc/sys/z8ksim/glue.c (_open): Make BUF const.
18132         (_creat): Make PATH const.
18133         * libc/sys/h8300hms/syscalls.c (_open): Make PATH const.
18134         * libc/sys/h8500hms/syscalls.c (_open): Likewise.
18135         * libc/sys/m88kbug/syscalls.c (open): Likewise.
18136         * libc/sys/sh/syscalls.c (_open): Likewise.
18137         * stub/shared/glue.c (open): Make BUF const.
18138         * stub/ex93x/syscalls.c (open): Make FILENAME const.
18139
18140 Thu Sep  8 16:39:12 1994  Steve Chamberlain  (sac@jonny.cygnus.com)
18141
18142         * libc/include/errno.h: Add ENMFILE
18143         * libc/include/sys/config.h: Support Z8000.
18144         * libc/include/sys/signal.h: New signals for go32.
18145         * libc/machine/h8500/psi.S (__addpsir0r0): New function
18146         * libc/machine/h8500/cmpsi.S (__ucmppsi2): New function
18147         * libc/machine/sh/sdivsi3.s (__sdivsi3): Rewritten.
18148         * libc/stdlib/mallocr.c (_morecore_r): Minimum chunk
18149         size is variable, depending upon CHUNK_POWER.
18150         * libc/sys/go32/*.c: Upgrade to new go32 stuff.
18151
18152 Sun Sep  4 17:42:43 1994  Jim Wilson  (wilson@sphagnum.cygnus.com)
18153
18154         * libc/stdlib/ecvtbuf.c (_gcvt): Output '-' for negative numbers.
18155
18156 Fri Sep  2 10:56:01 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
18157
18158         * libc/include/_ansi.h (_PARAMS): Don't define if already defined.
18159
18160 Wed Aug 24 11:11:03 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
18161
18162         * configure.in: Change i[34]86 to i[345]86.
18163
18164         * libc/include/math.h: Don't define HUGE_VAL if it is already
18165         defined.
18166
18167 Wed Aug 17 15:18:02 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
18168
18169         * testsuite/libm.sac/test_erfc.c: Correct some result values.
18170         * testsuite/libm.sac/test_gammaf.c: Likewise.
18171         * testsuite/libm.sac/test_sin.c: Likewise.
18172         * testsuite/libm.sac/test_tanh.c: Likewise.
18173
18174 Tue Aug 16 16:12:53 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
18175
18176         * libc/include/machine/ieeefp.h: Don't try set endianness if it is
18177         already set.  Define typedefs __int32_t and __uint32_t.
18178         * libc/include/math.h: Include <machine/ieeefp.h>.
18179         (union __dmath): Use __uint32_t.
18180         * libm/math/fdlibm.h, libm/math/*.c: Use __int32_t and __uint32_t
18181         instead of int and unsigned int.
18182
18183 Thu Aug 11 15:16:09 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
18184
18185         Replace the math library with the SunPRO fdlibm package.
18186         * libm/math: Completely changed all files.
18187         * libm/ieeefp: Remove contents and directory.
18188         * libm/Makefile.in (LIBM_FP_LIB): Remove.
18189         (SUBDIRS): Just set to math/lib.a.
18190         * libm/libm.texinfo: Updated for new library.
18191         * libc/include/math.h: Extensive changes for new math library.
18192         * libc/include/ieeefp.h (isnanf, isinff, finitef): Change argument
18193         from _FLOAT_ARG to float.
18194         (maxpowtwo, maxpowtwof): Don't declare.
18195         * configure.in (fp_dir): Removed; was always ieeefp anyhow.
18196         (libm_fp_lib): Removed.
18197         * Makefile.in (MATHOBJS_IN_LIBC): Updated with new file names.
18198         * testsuite/libm.paranoia/Makefile.in (check): Correct --srcdir
18199         argument to ${RUNTEST}.
18200         * testsuite/libm.sac/Makefile.in (LOCAL_CFLAGS): Define.
18201         (.c.o): New rule.
18202         (RUNTESTFLAGS): Set CC and CFLAGS.
18203         (TESTS): Remove test_log2 and test_log2f.
18204         (${TESTS}): Pass ${LOCAL_CFLAGS}, not ${CFLAGS}.
18205         * testsuite/libm.sac/math.c (run_vector_1): Use float, not
18206         _FLOAT_ARG, for single precision argument type.
18207         * testsuite/libm.sac/sac.exp: Treat an error in bit 63 as an
18208         expected failure.  Close the input pipe.
18209         * testsuite/libm.sac/test.c (test_sok, test_iok, test_scok):
18210         Correct misspelling of inaccurate.
18211         (test_mok): Use ``inaccurate'', not ``wrong''.
18212         * testsuite/libm.sac/{test_acos.c, test_acosh.c, test_asin.c,
18213         test_asinh.c, test_atan.c, test_atanh.c, test_ceil.c,
18214         test_ceilf.c, test_cos.c, test_cosh.c, test_erf.c, test_erf.c,
18215         test_fabs.c, test_floor.c, test_floorf.c, test_fmod.c,
18216         test_fmodf.c, test_gamma.c, test_log1p.c, test_log1pf.c,
18217         test_yn.c): Correct many result values.  Many are still wrong.
18218
18219         * libc/stdlib/ecvtbuf.c (print_e): If _dtoa_r sets decpt to 9999,
18220         just copy the string.
18221         (_gcvt): Always return the buffer.
18222
18223 Tue Aug  9 13:43:23 1994  J.T. Conklin  (jtc@phishhead.cygnus.com)
18224
18225         * bcopy.c: fixed documentation, bcopy was not specified by ANSI.
18226
18227 Wed Aug  3 05:39:41 1994  D. V. Henkel-Wallace  (gumby@cygnus.com)
18228
18229         * libc/include/sys/reent.h: (struct _Bigint): add _reclaim
18230         structure.
18231         (struct _reent): add _p5s, _cvtlen, _cvtbuf.
18232         (_reclaim_reent): declare new entry point.
18233         * libc/reent/reent.c (cleanup_glue, _reclaim_reent): new
18234         functions.
18235
18236         * libc/stdlib/mprec.c (Balloc): Keep track of every struct bigint
18237         ever allocated, so that we can later reclaim them all.
18238         (pow5mult): make reentrant.
18239
18240         * libc/stdlib/ecvtbuf.c (fcvtbuf, ecvtbuf): extend these functions
18241         so that when given NULL as a buffer, return a pointer to static
18242         space in the rent structure.  This is not documented behaviour;
18243         it's only to support ecvt and fcvt, which aren't ANSI anyway.
18244         * libc/stdlib/efgcvt.c (fcvt, ecvt) Use new functionality (and
18245         therefore become reentrant).
18246
18247         * libc/stdlib/dtoastub.c: remove spurious inclusion of mprec.h.
18248
18249 Mon Aug  1 16:52:24 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
18250
18251         * libc/include/machine/ieeefp.h: Check _AM29K, not ___AM29K__.
18252
18253 Thu Jul 28 15:40:21 1994  J.T. Conklin  (jtc@phishhead.cygnus.com)
18254
18255         * Makefile.in: Make link to libg.a after libc.a; this is needed
18256           for the testsuites to build executables when everything comes
18257           from the tree.
18258
18259 Mon Jun 27 17:14:29 1994  Bill Cox  (bill@rtl.cygnus.com)
18260
18261         * libc/Makefile.in: Add a VERSION variable so we can keep track.
18262         * libm/Makefile.in: Add a VERSION variable so we can keep track.
18263
18264 Wed Jun 22 10:26:00 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
18265
18266         * libc/include/stdio.h: Use __VALIST, not va_list.
18267
18268 Tue May 17 15:43:28 1994  Bill Cox  (bill@rtl.cygnus.com)
18269
18270         * testsuite/config/unix-libm.exp, testsuite/lib/libm.exp,
18271         testsuite/libm.sac/execute.exp:
18272           Replace error proc calls with perror calls.
18273
18274 Wed May 11 09:25:28 1994  Doug Evans  (dje@canuck.cygnus.com)
18275
18276         * libc/include/*.h: #include "_ansi.h" instead of <_ansi.h>.
18277         * libc/include/time.h: #define NULL as 0L.
18278
18279 Mon May  9 18:41:20 1994  Doug Evans  (dje@canuck.cygnus.com)
18280
18281         * host/any (INCLUDES): Delete -I of gcc/include, gcc -B takes
18282         care of it.
18283
18284 Mon May  9 18:39:39 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
18285
18286         * libc/include/sys/signal.h: Check for __GO32__, not __i386__ and
18287         not __unix__.
18288
18289 Sat May  7 17:07:36 1994  Steve Chamberlain  (sac@cygnus.com)
18290
18291         * configure.in (TARGET_CFLAGS): Set -O2 as default.
18292         (z8k-*-*): Use syscalls fake sys dir.
18293         * libc/sys/z8k/glue.c: Rename syscalls.
18294         * libc/sys/go32/Makefile.in: Use new routines.
18295         * libc/machine/Makefile.in: Fix typo in ln stuff.
18296
18297 Thu May  5 13:47:48 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
18298
18299         * Makefile.in (libm.a, crt0.o): Use cp if ln fails.
18300         * libc/Makefile.in (crt0.o): Likewise.
18301         * libc/machine/Makefile.in (lib.a): Likewise.
18302         * libc/sys/Makefile.in (lib.a, crt0.o): Likewise.
18303
18304         All Makefile.in files: Added mostlyclean, realclean and distclean
18305         targets.
18306
18307         * Makefile.in: Don't bother to unexport XTRAFLAGS or
18308         XTRAFLAGS_FOR_TARGET, since they are no longer passed down from
18309         the top level Makefile.
18310
18311 Tue Apr 26 15:10:34 1994  Doug Evans  (dje@canuck.cygnus.com)
18312
18313         * libc/sys/sparc64/sys/stat.h: New file.
18314         * libc/sys/sparc64/sys/time.h: New file.
18315         * libc/sys/sparc64/sys/types.h: New file.
18316
18317 Fri Apr 22 12:58:24 1994  Stan Shebs  (shebs@andros.cygnus.com)
18318
18319         * stub/ex93x/crt0.s (start): Add code to clear bss.
18320
18321 Wed Apr 13 10:34:58 1994  Doug Evans  (dje@canuck.cygnus.com)
18322
18323         * libc/include/sys/types.h (time_t): Properly protect inside
18324         #ifndef __time_t_defined.
18325
18326         * libc/stdio/fileno.c: New file.
18327         * libc/stdio/Makefile.in (OFILES, CHEWOUT_FILES): Add fileno.
18328         (fileno.o): Add dependency.
18329         * libc/include/stdio.h (__sgetc): Rename never to _never.
18330         (fileno macro): Disable, needs to do CHECK_INIT first.
18331
18332 Mon Apr 11 17:37:09 1994  Bill Cox  (bill@rtl.cygnus.com)
18333
18334         * testsuite/Makefile.in (EXPECT, RUNTEST): Set these for the check
18335         goal.
18336
18337         * testsuite/Makefile.in (check): Set TCL_LIBRARY for runtest.
18338         * testsuite/libm.paranoia/Makefile.in (check): Set TCL_LIBRARY for
18339         runtest.
18340         * testsuite/libm.sac/Makefile.in (check): Set TCL_LIBRARY for
18341         runtest.
18342
18343 Sat Apr  9 16:18:09 1994  Doug Evans  (dje@cygnus.com)
18344
18345         * libc/sys/sparc64/sys/fcntl.h: New file, define solaris versions
18346         of the various constants.
18347
18348 Thu Apr  7 21:19:07 1994  Mark Eichin  (eichin@cygnus.com)
18349
18350         * libc/include/math.h: #ifndef __math_68881 around things which
18351         conflict with the (gcc-provided) inline functions in
18352         gcc/ginclude/math-68881.h.
18353
18354 Thu Apr  7 02:50:43 1994  Doug Evans  (dje@cygnus.com)
18355
18356         * libc/include/_syslist.h (_gettimeofday): Define.
18357         (_times): Ditto.
18358         * libc/include/reent.h: #include <machine/types.h> to get _CLOCK_T_.
18359         (struct tms, timeval, timezone): Declare.
18360         (_gettimeofday_r, _times_r): Declare.
18361         * libc/include/time.h (_CLOCK_T_): Don't #undef.  Remove
18362         #ifdef _CLOCK_T_ surrounding definition of clock_t.
18363         (time_t): Add multiple definition protection, __time_t_defined.
18364         * libc/include/sys/time.h: Don't #include <time.h>.
18365         Always define struct timezone (remove #ifndef _TIME_H_).
18366         * libc/include/sys/times.h (_CLOCK_T_): Don't #undef.  Remove
18367         #ifdef _CLOCK_T_ surrounding definition of clock_t.
18368         * libc/reent/Makefile.in (OFILES): Add timer.o.
18369         (CHEWOUT_FILES): Add timer.def.  Add timer.o/timer.c dependence.
18370         * libc/reent/timer.c: New file.
18371         * libc/time/clock.c: #include <reent.h>.
18372         (clock): Call _times_r instead of times.
18373         * libc/time/time.c (HAVE_GETTIMEOFDAY): Renamed from
18374         HAVE_GET_TIME_OF_DAY.
18375         Add comment regarding supporting OS routine(s) required (for docs).
18376         #include <reent.h>.
18377         (time): Call _gettimeofday_r instead of gettimeofday.
18378         * libc/time/asctime.c: Fix comment regarding supporting OS routines.
18379         * libc/time/ctime.c: Ditto.
18380         * libc/time/strftime.c: Ditto.
18381         * libc/sys/sparc64/Makefile.in (TEMPLATE_SFILES): Remove gettimeofday.
18382         (TEMPLATE_SFILES_R): Define here.  Also define times.
18383         Add times_r.o/times.S dependence.
18384         (time2.c, junk.c): Deleted.
18385         * libc/sys/sparc64/time2.c: Deleted.
18386         * configure.in (sparc64-*-*): Define HAVE_GETTIMEOFDAY.
18387
18388         * libc/stdio/mktemp.c (_getpid_r): Renamed from _getpid.
18389         * libc/stdio/tmpnam.c (_getpid_r): Ditto.
18390         * libc/sys/sparc64/junk.c: Deleted.
18391
18392 Mon Mar 21 16:51:03 1994  Doug Evans  (dje@canuck.cygnus.com)
18393
18394         * libc/sys/sparc64/Makefile.in: Add times syscall.
18395         * libc/sys/sparc64/crt0.S: Handle stack bias at run time so we can
18396         be used with and without it.  Add comment clarifying Medium/Anywhere
18397         model requirements.
18398         * libc/sys/sparc64/sigsetjmp.S (setjmp, longjmp): Add svr4 support.
18399         * libc/sys/sparc64/sys/syscall.h (SYS_times): Define for sunos4
18400         even if obsolete.
18401
18402 Sun Mar 20 15:51:47 1994  Doug Evans  (dje@cygnus.com)
18403
18404         * configure.in (target_cflags): Move init.
18405         (sparc64-*-*): Define HAVE_BLKSIZE.
18406
18407 Wed Mar  9 10:44:52 1994  Doug Evans  (dje@canuck.cygnus.com)
18408
18409         * libc/include/sys/_types.h: New file.
18410         * libc/include/reent.h: #include it.
18411         Add comment describing REENTRANT_SYSCALLS_PROVIDED and
18412         MISSING_SYSCALL_NAMES.
18413         Sort syscalls.
18414         * libc/include/_syslist.h: Remove _raise.
18415         * libc/reent/signalr.c: New file.
18416         * libc/reent/Makefile.in: Compile it.
18417         * libc/signal/signal.c: Only use ifdef SIMULATED_SIGNALS.
18418         Add doc for raise and _raise_r.
18419         * libc/signal/raise.c: Only use ifndef SIMULATED_SIGNALS.
18420         (raise): Call _raise_r.
18421         (_raise_r): Call _getpid_r and _kill_r.
18422         * libc/stdlib/abort.c: Remove inclusion of stdio.h and _syslist.h.
18423         (abort): Loop forever calling raise and _exit.
18424
18425 Mon Mar  7 14:40:08 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
18426
18427         * configure.in: Remove extraneous echo.
18428
18429 Thu Mar  3 12:14:22 1994  Doug Evans  (dje@canuck.cygnus.com)
18430
18431         * libc/sys/sparc64/sys/dirent.h (MAXNAMLEN): #undef to avoid
18432         collision with unistd.h, and fix for svr4.
18433
18434 Wed Mar  2 13:55:25 1994  Doug Evans  (dje@canuck.cygnus.com)
18435
18436         * libc/stdio/local.h (_llicvt): Declare.
18437         (CVT_BUF_SIZE): Define (and buffer size from 512 to 128).
18438         * libc/stdio/cvt.c: Include "local.h" to get CVT_BUF_SIZE.
18439         (_llicvt): Define.
18440         (_sicvt): Fix function header (`value' is short).
18441         * libc/stdio/vfprintf.c (_vfprintf_r): Use CVT_BUF_SIZE.
18442         Add printing of long long's support.
18443         Add printing of 8 byte pointer support.
18444
18445 Fri Feb 11 21:52:11 1994  Steve Chamberlain  (sac@sphagnum.cygnus.com)
18446
18447         * libc/sys/sh/syscalls.c (pipe, execv, wait, fork, utime, chown,
18448         stat, chmod): New hooks.
18449         (sbrk): Abort if stack and heap collide.
18450         * libc/machine/sh/udivsi3, libc/machine/sh/sdivsi3 Modified to
18451         shortcut when given small args.
18452         * libc/machine/sh/setjmp.s: Rewritten.
18453         * libc/machine/sh/strcmp.s (strcmp): New function takes advantage
18454         of cmp/str instruction.
18455
18456 Wed Feb  9 15:12:35 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
18457
18458         * configure.in: Accept powerpc* as a CPU type, using fp_dir ieeefp
18459         and machine_dir powerpc.
18460         * libc/include/machine/setjmp.h, libc/include/machine/ieeefp.h:
18461         Add cases for __powerpc__.
18462         * libc/machine/powerpc/Makefile.in, libc/machine/powerpc/setjmp.S:
18463         New files.
18464
18465         * libc/include/stdio.h (_iprintf_r): Declare correctly.
18466
18467 Thu Jan 27 10:36:27 1994  Steve Chamberlain  (sac@cygnus.com)
18468
18469         * libc/stdlib/callocr.c: New file with _calloc_r in it.
18470         * libc/stdlib/calloc.c (calloc_r): Now in callocr.c
18471
18472 Thu Jan 20 15:14:37 1994  Doug Evans  (dje@canuck.cygnus.com)
18473
18474         * libc/stdlib/ecvtbuf.c (print_f): Remove local "done".
18475         (print_e): More comments to describe args, etc.
18476         "type" arg may now be 'g' or 'G' for %g/G format --> remove
18477         trailing blanks.
18478         (_gcvt): Remove locals decpt, sign, end, p, done.
18479         More comments for print_e invocation.
18480         Pass "type" to print_e as is (g/G).
18481
18482 Wed Jan 19 16:34:18 1994  Rob Savoye  (rob@darkstar.cygnus.com)
18483
18484         * stub/shared/m68k-crt0.S: Changed so it compiles (and runs) on a
18485         stock m68000.
18486
18487 Mon Jan 17 15:41:53 1994  Doug Evans  (dje@canuck.cygnus.com)
18488
18489         * libc/stdlib/mallocr.c (_morecore_r): Fix aligning of pointer so it
18490         works with any sized pointer, including ones bigger than ints and
18491         longs.
18492
18493 Thu Jan  6 14:53:21 1994  Doug Evans  (dje@canuck.cygnus.com)
18494
18495         * libc/sys/sparc64/{time2.c,utime.S,utime2.c}: New files.
18496
18497 Sat Dec 11 16:17:20 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
18498
18499         * libc/include/stdlib.h (_calloc_r): Add prototype.
18500         * libc/machine/h8500/negsi2.c: New file.
18501         * libc/machine/h8500/divsi3.c: Prevent overflow when dividing v
18502         large unsigned numbers.
18503         * libc/machine/h8500/cmpsi.c: Add cmppsi.
18504         * libc/stdlib/mallocr.c (morecore_r): Fix aligning pointers so it
18505         works when sizeof(size_t) != sizeof(char *).
18506         * libc/stdlib/mprec.c (Balloc): Call calloc rather than malloc to
18507         get play area
18508         * libc/stdlib/mprec.h: Define Just_16 if generating for z8000.
18509
18510 Mon Dec  6 15:59:53 1993  Doug Evans  (dje@rtl.cygnus.com)
18511
18512         * libc/include/assert.h (assert): Handle -traditional.
18513
18514 Tue Nov 16 15:49:24 1993  Mark Eichin  (eichin@cygnus.com)
18515
18516         * Makefile.in: added ; after every "fi" and "done" that wasn't at
18517         the end of a line (ie. anything before a backslash continuation)
18518         so that bash handles them.
18519
18520 Tue Nov 16 12:31:57 1993  david d `zoo' zuhn  (zoo@rtl.cygnus.com)
18521
18522         * libc/sys/go32/lstat.s: new file, copied from stat.s and renamed
18523         stat to lstat
18524
18525 Mon Nov 15 15:50:43 1993  Steve Chamberlain  (sac@jonny.cygnus.com)
18526
18527         * libc/sys/sh/crt0.s, libc/sys/sh/trap.s,
18528         libc/machine/sh/sdivsi3.s, libc/machine/sh/setjmp.s,
18529         libc/machine/sh/udivsi3.s: Use new calling convention.
18530
18531 Mon Nov 15 15:25:38 1993  Mark Eichin  (eichin@cygnus.com)
18532
18533         * libc/include/sys/unistd.h, libc/include/sys/stat.h: ANSI-fy
18534         chmod, access, chdir, chown by making _path const. Also fix _amode
18535         param of access.
18536
18537 Fri Nov 12 20:25:28 1993  Mark Eichin  (eichin@cygnus.com)
18538
18539         * libc/sys/a29khif/_tmpnam.s (_tmpnam): renamed function to
18540         _khif_tmpnam, because it doesn't comply with ANSI but may be
18541         useful anyway. Real tmpnam was already in libc/stdio, and was
18542         colliding with this one (pr 2176.)
18543         * libc/sys/a29khif/stubs.s (tmpnam): removed tmpnam. This file is
18544         the wrong idea anyhow.
18545
18546 Mon Nov  8 07:50:16 1993  Doug Evans  (dje@canuck.cygnus.com)
18547
18548         * configure.in: Remove h8300h, we have multilib now.
18549
18550 Fri Nov  5 12:37:27 1993  Mark Eichin  (eichin@cygnus.com)
18551
18552         * libc/string/strcasecmp.c, libc/string/strncasecmp.c: new
18553         functions, to get preference over the ones in libiberty (since we
18554         provide correct declarations in <string.h>.
18555         * libc/string/Makefile.in: add support for strncasecmp,
18556         strcasecmp.
18557
18558 Fri Nov  5 09:05:45 1993  D. V. Henkel-Wallace  (gumby@blues.cygnus.com)
18559
18560         * Change netware config not to look for cpu explicitly.
18561
18562 Thu Nov  4 14:21:25 1993  Doug Evans  (dje@canuck.cygnus.com)
18563
18564         * libc/sys/sparc64/{creat.c,junk.c}: New files.
18565         * libc/sys/sparc64/Makefile.in: Add dependencies.
18566
18567 Wed Nov  3 10:42:49 1993  Doug Evans  (dje@canuck.cygnus.com)
18568
18569         * configure.in: Clean up v9 a bit, new "os" aoutv8.
18570
18571 Tue Nov  2 10:00:44 1993  D. V. Henkel-Wallace  (gumby@cygnus.com)
18572
18573         * libc/include/sys/reent.h: make structure smaller by allocating
18574         some stuff when needed.
18575         * libc/signal/signal.c: allocate as needed
18576         * libc/stdio/findfp.c,stdio/local.h: ditto
18577         * libc/stdlib/mprec.c: ditto
18578
18579         * libc/time/localtime.c: don't return a dangling stack ptr.
18580
18581 Wed Sep 29 20:42:34 1993  Rob Savoye  (rob@darkstar.cygnus.com)
18582
18583         * stub/mvme135/crt0.S, stub/mvme135/glue.c: Moved to stub/generic.
18584
18585 Wed Sep 29 16:27:49 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
18586
18587         * libc/include/stdio.h (__sputc): comment out static inline which
18588           confuses coff toolchains.
18589
18590 Thu Sep  2 16:31:36 1993  Mark Eichin  (eichin@cygnus.com)
18591
18592         * libc/sys/a29khif/{_close.s, _fstat.s, _lseek.s, _sbrk.s,
18593         _write.s, getpid.c, kill.c, read.s}:
18594         * libc/sys/a29khif/stubs.s: eliminated stubs that already go
18595         through the syscalls directory.
18596
18597 Fri Oct 29 13:59:58 1993  Jeffrey Wheat  (cassidy@cygnus.com)
18598
18599         * configure.in: fixed double quote gotcha.
18600
18601 Wed Oct 27 15:27:09 1993  Rob Savoye  (rob@darkstar.cygnus.com)
18602
18603         * stub/ex931: stub library for sparclite board.
18604         * stub/idp: Renamed from mc68ec. Added contructor table
18605         stuff to linker script.
18606         * stub/mvme135: Renamed from m68kmvme. Added contructor table
18607         stuff to linker script.
18608
18609 Tue Oct 26 17:01:23 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
18610
18611         * configure.in: Configure testsuites only if they exist.
18612
18613 Tue Oct 26 12:37:11 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
18614
18615         * configure.in: Don't set machine_dir for i386 until there is
18616         something in libc/machine/i386 to compile.  For i[34]86-*-netware*
18617         use sys/netware, don't use signal, define NO_EXEC, ABORT_PROVIDED,
18618         CLOCK_PROVIDED and MALLOC_PROVIDED.
18619
18620         * libc/sys/netware: New directory.  Contains simplistic and
18621         probably incorrect stubs for NetWare.  Should be enough to load
18622         the library.
18623         * libc/sys/netware/crt0.c, libc/sys/netware/environ.c,
18624         libc/sys/netware/getpid.c, libc/sys/netware/link.c: New NetWare
18625         stub files.
18626
18627         * libc/reent/execr.c: Don't use if NO_EXEC is defined.
18628         * libc/reent/sbrkr.c: Don't use if MALLOC_PROVIDED is defined.
18629         * libc/stdlib/abort.c: Don't use if ABORT_PROVIDED is defined.
18630         * libc/time/clock.c: Don't use if CLOCK_PROVIDED is defined.
18631
18632 Mon Oct 25 16:48:08 1993  Roland H. Pesch  (pesch@cygnus.com)
18633
18634         * testsuite/Makefile.in: add "docs" dummy target for consistency
18635         with rest of newlib; turn "info" and "install-info" into dummy
18636         targets, since they wouldn't have worked.  (Depended on
18637         nonexistent "doc" subdir.)
18638
18639 Fri Oct 22 20:37:32 1993  david d `zoo' zuhn  (zoo@rtl.cygnus.com)
18640
18641         * configure.in: handle mips* instead of mips
18642
18643 Thu Oct 21 08:57:24 1993  Ian Lance Taylor  (ian@cygnus.com)
18644
18645         * libc/include/sys/dirent.h: New file.  If it is not overridden by
18646         a version of libc/sys/*/sys/dirent.h, it includes the next
18647         <dirent.h> file in case there is one lurking somewhere.
18648
18649 Fri Oct 15 14:17:40 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
18650
18651         * libc/stdlib/strtoul.c (_strtoul_r): Several changes for ANSI
18652         compliance, namely: Accept a minus sign.  Consider a single 0 with
18653         a radix of 0 as being a conversion.  Determine overflow correctly.
18654         If an overflow occurs, set *ptr to the end of the number, not the
18655         middle.
18656         * lib/stdlib/strtol.c (_strtol_r): Determine overflow correctly.
18657
18658 Thu Oct 14 21:49:52 1993  Doug Evans  (dje@canuck.cygnus.com)
18659
18660         * libc/machine/h8300/divsi3.S (divmodsi4): Fix h8300h case.
18661
18662 Fri Oct  1 17:17:34 1993  Doug Evans  (dje@canuck.cygnus.com)
18663
18664         * Makefile.in (INSTALL): Use $srcrootpre.
18665         (crt0.o): Replace $< with $(CRT0_DIR)/$(CRT0), Sun make
18666         can't handle it.
18667         * libc/Makefile.in (crt0.o): Spell out $<, Sun make can't handle
18668         it.
18669         * libc/sys/Makefile.in (crt0.o, lib.a): Ditto.
18670         * stub/Makefile.in (crt0.o, TARGETLIB): Ditto.
18671         * libc/sys/sparc64/Makefile.in (isatty.o): Sun VPATH lossage.
18672         * libm/math/Makefile.in (matherr.o): Ditto.
18673
18674 Thu Sep 30 11:09:17 1993  Steve Chamberlain  (sac@phydeaux.cygnus.com)
18675
18676         * configure.in: Build multidirs for z8k.
18677         * libc/include/stdlib.h (_strtoul_r): add prototype.
18678         * libc/include/machine/limits.h: Get INT_MIN right for all the z8k family.
18679         * libc/include/machine/setjmp.h: Add for z8k.
18680         * libc/machine/z8k/{mulsi.o, udivsi3.o, umodsi3.o, modsi3.o} obsolete.
18681         * libc/sys/z8ksim/glue.c: tidy up.
18682
18683 Mon Sep 20 14:04:46 1993  Doug Evans  (dje@canuck.cygnus.com)
18684
18685         * libc/unix/{execl.c execle.c execlp.c execv.c execvp.c}:
18686         New files.  Requires execve system call.
18687         * libc/unix/Makefile.in: Use them.
18688         * libc/sys/sparc64/{execl.c execle.c execlp.c execv.c execvp.c}:
18689         Deleted, moved to libc/unix.
18690         * libc/sys/sparc64/Makefile.in: Remove them.
18691
18692 Mon Sep 20 10:38:32 1993  Doug Evans  (dje@canuck.cygnus.com)
18693
18694         * libc/sys/sparc64/{template.S template_r.S}: New files.
18695         * libc/sys/sparc64/Makefile.in: Build source for trivial syscalls
18696         from templates.
18697         * libc/sys/sparc64/{chdir.S chmod.S close.S dup.S fcntl.S
18698         fork.S fstat.S lseek.S link.S mkdir.S open.S pipe.S read.S rmdir.S
18699         umask.S unlink.S wait4.S write.S}: Removed, now built from
18700         templates.
18701
18702 Sun Sep 19 14:52:57 1993  Doug Evans  (dje@canuck.cygnus.com)
18703
18704         * libc/time/time.c: #include <_ansi.h>.
18705
18706 Sun Sep 19 13:43:25 1993  Doug Evans  (dje@canuck.cygnus.com)
18707
18708         * configure.in (sparc64-*-*): Remove -D__SIZE_TYPE__.
18709
18710 Mon Sep 13 13:52:16 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
18711
18712         * configure.in: match m8* rather than m88k so that m88110 is
18713           recognized as well.
18714
18715 Tue Sep  7 12:19:32 1993  Doug Evans  (dje@canuck.cygnus.com)
18716
18717         * libc/sys/h8300hms/{Makefile.in, _exit.c, misc.c}:
18718         Renamed exit.c to _exit.c to avoid collision with stdlib/exit.c.
18719         misc.c: New file.
18720
18721         * configure.in: Add multilib support to h8300.
18722
18723 Mon Sep  6 14:07:06 1993  Doug Evans  (dje@canuck.cygnus.com)
18724
18725         * libc/stdlib/abort.c (abort): Remove _VOLATILE from return type.
18726         * libc/include/_ansi.h (_ATTRIBUTE): New macro for __attribute__.
18727         * libc/include/stdlib.h (exit, abort): Add noreturn attribute.
18728
18729 Mon Sep  6 14:24:18 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
18730
18731         * configure.in: Corrected multidirs for sparc target.
18732
18733 Mon Aug 30 15:56:44 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
18734
18735         Support for building newlib multiple times with different
18736         compilation flags.
18737         * configure.in: Only configure doc at top level.  Set multidirs
18738         when appropriate for target, unless not at top level.  If
18739         multidirs is set, independently configure each subdirectory.
18740         Adjust TOP, MULTIDIRS and MULTISUBDIR appropriately in Makefile.
18741         * Makefile.in (MULTIDIRS, MULTISUBDIR): New variables,
18742         automagically set by configure.in.
18743         (all): If MULTIDIRS is set, build multiple copies of libraries.
18744         (install): If MULTIDIRS is set, install multiple copies of
18745         libraries.  Install in $(tooldir)/lib/$(MULTISUBDIR).  If
18746         MULTISUBDIR is set, don't bother to install header files.
18747         * host/any (INCLUDES, CHEW): Use $(SRCTOP) rather than $(TOP) from
18748         ${srcrootpre}.
18749         * stub/configure.in: Set MULTISUBDIR appropriately.
18750         * stub/Makefile.in (install): Install in
18751         $(tooldir)/lib/$(MULTISUBDIR).
18752         * All Makefile.in files: Define SRCTOP as well as TOP.
18753
18754 Mon Aug 30 10:34:24 1993  Doug Evans  (dje@canuck.cygnus.com)
18755
18756         * libc/machine/h8300/{mulhi3.S, divhi3.S}: Comment out if h8300h.
18757         * libc/machine/h8300/{mulsi3.S, divsi3.S}: Add h8300h support.
18758
18759 Thu Aug 26 19:38:12 1993  Doug Evans  (dje@canuck.cygnus.com)
18760
18761         * libc/sys/h8300hms/exit.c (_exit): New function.
18762
18763 Wed Aug 25 16:31:48 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
18764
18765         * configure.in: recognize m88110.
18766
18767 Fri Aug 20 16:46:23 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
18768
18769         * libc/sys/m88kbug/crt0.c: pretty up, remove extraneous comments,
18770           prototype main and call with args.
18771
18772 Fri Jul 30 16:52:47 1993  K. Richard Pixley  (rich@cygnus.com)
18773
18774         First real try at system traps for m88k-bug.
18775         * libc/sys/m88kbug/syscalls.c: many changes.  Convert from stubs
18776           to real trap calls.
18777         * libc/sys/m88kbug/sys/systraps.h: new file.
18778
18779 Tue Jul 27 16:31:16 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
18780
18781         Patches to fix info building when target does not use sys
18782         directory.
18783         * libc/Makefile.in (targetdep.tex): add sys.tex separately.
18784         * libc/sys.tex, libc/sys/sys.tex: moved from libc/sys/sys.tex to
18785           libc/sys.tex.
18786         * libc/sys/Makefile.in (doc): do nothing.
18787
18788 Mon Jul 26 17:08:11 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
18789
18790         * libc/Makefile.in (CRT0): new macro.
18791           (all): depend on $(CRT0) rather than crt0.o.
18792
18793         * configure.in: fix libc_sys_dir -> libc_sys_lib thinko.
18794           do not default crt0, instead, set crt0 and crt0_dir based on
18795           sys_dir and stub_dir.
18796
18797         * Makefile.in (CRT0_DIR): new macro.
18798           (all): depend on $(CRT0) rather than crt0.o which may not exist.
18799           (crt0.o): depend on $(CRT0_DIR)/$(CRT0) rather than simply
18800           $(CRT0).
18801           ($(CRT0)): recur by cd'ing into $(CRT0_DIR).
18802
18803 Sun Jul 25 17:51:51 MDT 1993  Jeffrey Wheat  (cassidy@cygnus.com)
18804
18805         * testsuite/lib/libm.exp:
18806                 added code to support compiling and linking of tests for
18807                 libm.sac (paranoia to be added next) and processing the
18808                 pass or failure of the tests.
18809
18810         * testsuite/config/unix-libm.exp:
18811                 platform specific proc's for dealing with compiler, linker
18812                 and the way we execute and process the test results.
18813
18814         * testsuite/libm.sac/execute.exp:
18815                 generic framework for the sac tests. the config and lib
18816                 expect code for specific platforms tie it all together.
18817
18818         * testsuite/libm.sac/test_is.c:
18819                 changed the output of the test to be consistant with the
18820                 other tests. parsing of pass nad fail messages is now fixed.
18821
18822 Fri Jul 23 19:20:07 1993  Per Bothner  (bothner@kalessin)
18823
18824         * libc/include/{assert.h, ctype.h, dirent.h, errno.h, fastmath.h,
18825         locale.h, math.h, pwd.h, reent.h, setjmp.h, signal.h, stdio.h,
18826         stdlib.h, string.h, termios.h, time.h, utime.h, utmp.h}: For C++:
18827         #ifdef __cplusplus, surround by extern ""C { ... }.
18828         * libc/include/assert.h:  Do *not* protect assert.h against
18829         multiple inclusion!  Also, #undef it before #define, to allow
18830         redefinition.
18831         * libc/include/stdio.h (getlogin, cuserid):  Removed.  These
18832         should be only in unistd.h.
18833
18834         * libc/include/sys/{fcntl.h, reent.h, stat.h, time.h, times.h,
18835         unistd.h}: For C++: #ifdef __cplusplus, surround by extern ""C {
18836         ... }.
18837
18838 Fri Jul 23 10:15:33 1993  Doug Evans  (dje@canuck.cygnus.com)
18839
18840         * libc/machine/sparc/Makefile.in: Must create a library, even
18841         if empty.
18842
18843 Wed Jul 21 16:00:37 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
18844
18845         * configure.in: set machine_dir for m88k.  edit crt0 definition
18846           into makefiles.
18847
18848         * Makefile.in, libc/Makefile.in (crt0): pull up from lower directories.
18849
18850         * libc/Makefile.in (all): also build crt0.o.
18851
18852         * libc/machine/i386/Makefile.in, libc/machine/sparc/Makefile.in,
18853           libc/machine/z8k/Makefile.in, libm/Makefile.in (clean): no need
18854           to remove CRT0.
18855
18856         * libc/machine/m88k/Makefile.in (TOP, TARGETLIB): removed.
18857           (all): reworked to build in place.
18858           (clean): remove lib.a
18859           (Makefile): remove redundant ./, call $(SHELL) rather than sh.
18860
18861         * libc/sys/m88kbug/crt0.c (start): renamed to _start.
18862           (_start): key off edata rather than _start_bss.
18863
18864 Wed Jul 21 14:29:47 1993  david d `zoo' zuhn  (zoo@cygnus.com)
18865
18866         * libc/include/sys/unistd.h, libc/include/reent.h,
18867         libc/reent/sbrkr.c: change sbrk to return void* instead of char*.
18868
18869 Tue Jul 20 13:19:18 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
18870
18871         * libm/Makefile.in, libc/Makefile.in ($(SUBDIRS)): dollar escape a dollar sign.
18872
18873         * Makefile.in (libc.a): break into two rules, one for libc.a and
18874           one for libc/libc.a.  Force subdirs current before rebuilding
18875           library.
18876           (libm.a): break into two rules, one for libm.a and one for
18877           libm/libm.a.  Force subdirs current before rebuilding library.
18878
18879         * libc/Makefile.in (SUBLIBS): fix typo.
18880
18881         * libc/sys/Makefile.in (all): force descent into subdirs, then
18882           rebuild library iff out of of date.
18883
18884 Fri Jul 16 17:47:57 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
18885
18886         Rework so that library is built and then finished rather than
18887         being built on each invocation of make.
18888
18889         * host/any (machine_dir, sys_dir, signal_dir): these are not
18890           shared and have been moved to their associated Makefile.in's.
18891           (AR_FLAGS): switch to qc which is faster.
18892         * configure.in: no longer assign machine_dir for m88k.  set
18893           stub_dir, stub_lib, & crt0 for m68k*-unknown-{aout,coff}.  If
18894           stub_dir set, then add to configdirs.  add comment about silly
18895           configuration.
18896           (configdirs): drop stub.  It will be added only
18897           when needed.
18898           (libm_fp_lib, libc_unix_lib, libc_signal_lib, libc_machine_lib,
18899           libc_sys_dir, fake_sys_dir, libc_fake_sys_lib, stub_dir,
18900           stub_lib, crt0): new variables for tailoring lower level
18901           makefiles.  Assign accordingly and edit into makefiles.
18902         * libm/Makefile.in: updated copyright.
18903           (TARGETLIB): removed.
18904           (FLAGS_TO_PASS): removed TARGETLIB, machine_dir, sys_dir.
18905           (SUBDIRS): removed TARGETDEP_DIRS.
18906           (LIBM_FP_LIB, SUBLIBS): new macros.
18907           (all): reworked.
18908           (force): new target to force rebuilds.
18909           (Makefile): call $(SHELL) rather than sh.  drop redundant ./
18910         * libc/sys/a29khif/Makefile.in, libc/sys/decstation/Makefile.in,
18911           libc/sys/go32/Makefile.in, libc/sys/h8300hms/Makefile.in,
18912           libc/sys/h8500hms/Makefile.in, libc/sys/m88kbug/Makefile.in,
18913           libc/sys/sh/Makefile.in, libc/sys/sparc64/Makefile.in,
18914           libc/sys/sun4/Makefile.in, libc/sys/sysvi386/Makefile.in,
18915           libc/sys/sysvnecv70/Makefile.in, libc/sys/z8ksim/Makefile.in,
18916           stub/m68kmvme/Makefile.in: updated copyright.
18917           (TARGETLIB, TARGETCRT0, CRT0): macros removed.
18918           (all): reworked.  made this the default rule.
18919           (clean): also remove lib.a.
18920           (Makefile): call $(SHELL) rather than sh.  drop redundant ./
18921         * stub/Makefile.in: updated copyright.
18922           (TARGETLIB, TARGETCRT0, CRT0, TOP): removed.
18923           (stub_lib): new macro.
18924           (FLAGS_TO_PASS): removed TARGETLIB, stub_dir, TARGETCRT0.  Added
18925           RANLIB.
18926           (all): reworked.
18927           (clean, install): assume stub_dir exists.
18928           (Makefile): depend on configure.in.  call $(SHELL) rather than
18929           sh.  drop redundant ./
18930         * stub/configure.in (stublib): new macro, assign it, edit it into
18931           makefiles.
18932         * Makefile, libc/Makefile.in, doc/Makefile.in, libc/sys/Makefile.in:
18933           updated copyright.
18934           (all): reworked.
18935           (Makefile): call $(SHELL) rather than sh.  drop redundant ./
18936         * libc/Makefile.in (TARGETCRT0): removed.
18937           (FLAGS_TO_PASS): dropped TARGETLIB, machine_dir, sys_dir,
18938           TARGETCRT0.
18939           (SUBDIRS): drop TARGETDEP_DIRS.
18940           (LIBC_SIGNAL_LIB, LIBC_SYS_LIB, LIBC_MACHINE_LIB, LIBC_UNIX_LIB,
18941           LIBC_FAKE_SYS_LIB, SUBLIBS): new macros for configuration.
18942           (force): new target to force rebuilds.
18943         * libc/sys/Makefile.in (TARGETCRT0, sys_dir): removed.
18944           (FLAGS_TO_PASS): TARGETLIB, machine_dir, sys_dir, TARGETCRT0
18945           removed.
18946           (clean): assume sys_dir always exists.
18947         * libm/test/Makefile.in (Makefile): call $(SHELL) rather than sh.
18948           drop redundant ./
18949         * libc/ctype/Makefile.in, libc/errno/Makefile.in,
18950           libc/locale/Makefile.in, libc/machine/Makefile.in,
18951           libc/machine/a29k/Makefile.in, libc/machine/h8300/Makefile.in,
18952           libc/machine/h8500/Makefile.in, libc/machine/i386/Makefile.in,
18953           libc/machine/i960/Makefile.in, libc/machine/m68k/Makefile.in,
18954           libc/machine/mips/Makefile.in, libc/machine/necv70/Makefile.in,
18955           libc/machine/sh/Makefile.in, libc/machine/sparc/Makefile.in,
18956           libc/machine/z8k/Makefile.in, libc/reent/Makefile.in,
18957           libc/signal/Makefile.in, libc/stdio/Makefile.in,
18958           libc/stdlib/Makefile.in, libc/string/Makefile.in,
18959           libc/sys/Makefile.in, libc/syscalls/Makefile.in,
18960           libc/time/Makefile.in, libc/unix/Makefile.in,
18961           libm/ieeefp/Makefile.in, libm/math/Makefile.in: updated copyright.
18962           (TARGETLIB): removed.
18963           (all): reworked.
18964           (clean): also remove lib.a.
18965           (Makefile): call $(SHELL) rather than sh.  drop redundant ./
18966         * Makefile.in: (machine_dir, sys_dir, stub_dir, stub_lib, CRT0):
18967           new macros.
18968           (SUBDIRS): moved to follow frag inclusion, change stub to
18969           stub_dir.
18970           (FLAGS_TO_PASS): removed machine_dir, sys_dir, signal_dir which
18971           are now set in the libc Makefile.
18972         * libc/machine/Makefile.in (TARGETCRT0, machine_dir): removed.
18973           (FLAGS_TO_PASS): removed TARGETLIB, machine_dir, sys_dir,
18974           TARGETCRT0.
18975           (force): new target to force rebuilds.
18976         * stub/configure.in: determine and set stub_lib for for Makefile.
18977
18978 Thu Jul 15 12:01:27 1993  Doug Evans  (dje@canuck.cygnus.com)
18979
18980         * libc/sys/h8300hms/Makefile.in: Make `all' the default target.
18981         crt0.s renamed to crt0.S.
18982         * libc/sys/h8300hms/crt0.S: Add h8/300h support.
18983
18984         * libc/machine/h8300/Makefile.in: Make `all' the default target.
18985         * libc/machine/h8300/{cmpsi.S,ucmpsi.S}: #ifdef out entire file if
18986         h8300h.
18987         * libc/machine/h8300/defines.h: Add macros to handle pointers for
18988         h8300 (16 bits) and h8300h (32 bits).
18989         * libc/machine/h8300/{divsi3.S,mulsi3.S,memcpy.S,memset.S,
18990         reg_memcpy.S,reg_memset.S,strcmp.S}: Add h8300h support.
18991
18992 Thu Jul 15 10:13:29 1993  Ian Lance Taylor  (ian@cygnus.com)
18993
18994         * libc/machine/m88k/setjmp.S, Makefile.in: New files; a simple
18995         implementation of setjmp and longjmp for the m88k.
18996         * libc/include/machine/setjmp.h: Added __m88000__ case.
18997
18998 Wed Jul 14 10:10:30 1993  Doug Evans  (dje@canuck.cygnus.com)
18999
19000         * configure.in: Recognize h8300h as variant of h8300.
19001
19002 Tue Jul 13 12:24:11 1993  Steve Chamberlain  (sac@phydeaux.cygnus.com)
19003
19004         * libc/include/sys/unistd.h (read, write): get prototypes right.
19005         (sbrk): New prototype.
19006         * libc/reent/sbrkr.c (sbrkr): Use correct sbrk prototype.
19007         * libc/stdio/local.h: Include unistd.h.
19008         * libc/machine/h8300/syscalls.c: Names have changed.
19009
19010 Mon Jul 12 18:08:42 1993  K. Richard Pixley  (rich@cygnus.com)
19011
19012         * configure.in: add sys_dir assignment for m88k-bug.
19013
19014 Thu Jul  8 09:16:21 1993  Doug Evans  (dje@canuck.cygnus.com)
19015
19016         * libc/sys/sparc64/sys/syscallasm.h: New macros to handle either
19017         a.out or elf.
19018         * libc/sys/sparc64: all *.S files: Use new macros.
19019         * libc/sys/sparc64/isatty.c: New file.
19020         * libc/sys/sparc64/Makefile.in: Stop using /lib/libc.a for
19021         functions beyond what newlib provides.
19022
19023 Thu Jul  8 09:11:28 1993  Doug Evans  (dje@canuck.cygnus.com)
19024
19025         * libc/include/sys/stat.h: Move st_atime so not doubly defined for
19026         svr4.
19027
19028 Thu Jul  8 09:09:16 1993  Doug Evans  (dje@canuck.cygnus.com)
19029
19030         * libc/include/machine/ieeefp.h: Add support for h8/300h.
19031
19032 Fri Jul  2 10:11:20 1993  K. Richard Pixley  (rich@cygnus.com)
19033
19034         * configure.in: add m88k.
19035         * libc/include/machine/ieeefp.h: add case for m88k.  Also add
19036         sanity check so no one else need ever chase what I did to find
19037         this.
19038
19039         * libm/math/Makefile.in (FAKEC): added atanf.c log1pf.c scalbnf.c.
19040
19041 Fri Jul  2 09:15:21 1993  Ian Lance Taylor  (ian@cygnus.com)
19042
19043         * doc/makedoc.c: Include <ctype.h>.
19044
19045 Wed Jun 30 09:35:06 1993  Doug Evans  (dje@canuck.cygnus.com)
19046
19047         * libc/Makefile.in (FLAGS_TO_PASS): Add TARGET_ASFLAGS.
19048         * libc/sys/Makefile.in (FLAGS_TO_PASS): Add TARGET_ASFLAGS.
19049         * libc/machine/Makefile.in (FLAGS_TO_PASS): Add TARGET_ASFLAGS.
19050
19051         * libm/test/Makefile.in (all): Link with ../../lib[cm].a.
19052
19053 Sun Jun 27 17:05:20 1993  Doug Evans  (dje@sphagnum.cygnus.com)
19054
19055         * libc/include/errno.h (ENOSYS): Added.
19056
19057         * libc/unix/getpwd.c (getcwd): Fix typo (_up -> up).
19058
19059 Mon Jun 21 09:03:32 1993  Steve Chamberlain  (sac@phydeaux.cygnus.com)
19060
19061         * libc/stdio/fflush.c (fflush): Check for reent struct
19062         initialization.
19063         * libc/stdio/fdopen.c (fdopen): Avoid namespace conflict.
19064
19065 Fri Jun 18 16:06:05 1993  Mark Eichin  (eichin@rtl.cygnus.com)
19066
19067         * libc/stdlib/dtoastub.c: new file -- move user callable "dtoa"
19068         out of dtoa.c so it doesn't pollute the namespace.
19069         * libc/include/_syslist.h: new file -- mappings from _function to
19070         function, for systems where we can't win (by default, all of them,
19071         until we start updating system calls.)
19072         * libc/syscalls: new directory -- stubs for exporting _function
19073         names as unmodified function names.
19074         * libc/configure.in: add MISSING_SYSCALL_NAMES to enable
19075         _syslist.h on all platforms by default, but put hooks in for
19076         fake_sys_dir so we can include it when we've renamed the system
19077         calls.
19078         * libc/reent/execr.c libc/reent/filer.c libc/reent/fstatr.c
19079         libc/reent/linkr.c libc/reent/sbrkr.c libc/reent/statr.c
19080         libc/signal/raise.c libc/signal/signal.c libc/stdio/fdopen.c
19081         libc/stdio/mktemp.c libc/stdio/tmpnam.c libc/stdlib/abort.c
19082         libc/stdlib/system.c libc/unix/getcwd.c libc/unix/getlogin.c
19083         libc/unix/getpass.c libc/unix/getut.c libc/unix/ttyname.c: change
19084         non ANSI functions to call _function.
19085
19086 Wed Jun  9 09:48:26 1993  Ian Lance Taylor  (ian@cygnus.com)
19087
19088         * libc/stdlib/strtoul.c (_strtoul_r): Handle leading 0 correctly
19089         when base 16 is specified.  Don't accept non-digits if radix > 10.
19090
19091 Thu Jun  3 10:01:15 1993  Doug Evans  (dje@canuck.cygnus.com)
19092
19093         * libc/include/math.h: Rename xxx_r fns to _xxx_r.
19094
19095 Wed Jun  2 16:54:16 1993  Jim Wilson  (wilson@sphagnum.cygnus.com)
19096
19097         * libc/include/sys/stat.h: Surround text after #endif with
19098         comments.
19099
19100 Wed Jun  2 12:47:32 1993  Ian Lance Taylor  (ian@cygnus.com)
19101
19102         * libc/stdlib/mallocr.c: If MALLOC_PROVIDED is defined, just make
19103         _malloc_r, _realloc_r, and free_r call the corresponding
19104         non-reentrant functions.
19105
19106         * libm/math/modf.c (modf): We now take the address of ipart, so
19107         don't make it a register variable.
19108
19109 Tue Jun  1 18:25:54 1993  Doug Evans  (dje@canuck.cygnus.com)
19110
19111         * libm/math/*: Rename all xxx_r fns to _xxx_r.
19112
19113 Wed May 26 22:06:35 1993  Roland H. Pesch  (pesch@cygnus.com)
19114
19115         * libc/libc.texinfo and embedded docn throughout: formatting
19116         improvements, minor rephrasing for clarity, and improved
19117         reentrancy docn.
19118
19119 Sun May 23 17:29:49 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
19120
19121         * libm/ieeefp/infinity.c (maxpowtwof): Fix initialzation bug.
19122
19123         * libc/stdio/cvt.c (_licvt): Print the right value on machines
19124         where sizeof(int) != sizeof(long).
19125
19126 Fri May 21 22:09:32 1993  Roland H. Pesch  (pesch@fowanton.cygnus.com)
19127
19128         * libc/reent/execr.c, libc/reent/filer.c, libc/reent/linkr.c,
19129         libc/reent/sbrkr.c, libc/reent/statr.c, libc/stdio/tmpnam.c,
19130         libc/stdlib/atol.c, libc/stdlib/rand.c, libc/string/strpbrk.c,
19131         libc/string/strspn.c, libm/ieeefp/isnan.c, libm/math/bessel.c,
19132         libm/math/matherr.c: changes for better docn formatting (info).
19133
19134         * libc/libc.texinfo, libc/ctype/ctype.tex, libc/locale/locale/tex,
19135         libc/reent/reent.tex, libc/signal/signal.tex,
19136         libc/stdio/stdio.tex, libc/stdlib/stdlib.tex,
19137         libc/string/strings.tex, libc/sys/sys.tex, libc/time/time.tex,
19138         libm/libm.texinfo, libm/ieeefp/ieeefp.tex, libm/math/math.tex: use
19139         makeinfo node defaulting to get better Info file node structure.
19140         (Requires recent sac change to doc/makedoc.c and doc/doc.str.)
19141         Also include a few formerly missing sections (subroutines).
19142
19143         * doc/doc.str: delete fossil expansion for "func"
19144
19145         * default.menu, no-signal.menu: delete.
19146
19147         * Makefile.in, libc/Makefile.in, configure.in, host/any: simplify
19148         method used to adjust doc for missing "signals" chapter when
19149         signal_dir is empty.
19150
19151 Thu May 20 21:38:37 MDT 1993  Jeffrey Wheat  (cassidy@cygnus.com)
19152
19153         * configure.in: added testsuite/libm.sac
19154
19155 Wed May 19 14:52:34 1993  Doug Evans  (dje@thepub.cygnus.com)
19156
19157         * libc/sys/sparc64/crt0.S: Set %g4 to 0 (to test Medium/Anywhere
19158         code model).
19159
19160 Tue May 18 13:17:21 1993  Ian Lance Taylor  (ian@cygnus.com)
19161
19162         * libm/Makefile.in: Use $(MAKE) rather than make, and define
19163         MAKEOVERRIDES to be empty.
19164
19165 Mon May 17 08:42:44 1993  Ian Lance Taylor  (ian@cygnus.com)
19166
19167         * configure.in: Don't build mips-*-* with -msoft-float, since that
19168         makes it incompatible with hard floating point.
19169
19170 Mon May 17 00:03:35 MDT 1993  Jeffrey Wheat  (cassidy@cygnus.com)
19171
19172         * Makefile.in: added recursive 'make check'
19173
19174 Thu May 13 16:24:18 MDT 1993  Jeffrey Wheat  (cassidy@cygnus.com)
19175
19176         * configure.in: added ./testsuite ./testsuite/libm.paranoia
19177         * ./testsuite/Makefile.in: created
19178         * ./testsuite/libm.paranoia: paranoia tests added
19179
19180 Thu May 13 10:30:24 1993  Ian Lance Taylor  (ian@cygnus.com)
19181
19182         * configure.in: For mips-*-* set machine_dir to mips.
19183
19184         * libc/machine/mips: New directory.
19185         * libc/machine/mips/Makefile.in: New file.
19186         * libc/machine/mips/setjmp.S: New file; simplistic MIPS version of
19187         setjmp and longjmp.
19188         * libc/include/machine/setjmp.h: Added __mips__ case.
19189
19190         * libc/machine/lmips: Removed unused and useless directory.
19191
19192 Mon May  3 10:22:31 1993  Ian Lance Taylor  (ian@cygnus.com)
19193
19194         * configure.in: Accept i486-*-sco* as well as i386-*-sco*.
19195
19196 Thu Apr 15 15:16:44 1993  Doug Evans  (dje@canuck.cygnus.com)
19197
19198         * libc/sys/sparc64/crt0.S: Add comment (%g1 contains atexit arg at
19199         start up).
19200
19201 Fri Apr  9 13:32:26 1993  Ian Lance Taylor  (ian@cygnus.com)
19202
19203         * libc/include/machine/setjmp-dj.h: Use _SETJMP_DJ_H rather than
19204         SETJMP_H.
19205
19206 Thu Apr  8 10:07:18 1993  Doug Evans  (dje@canuck.cygnus.com)
19207
19208         * libm/test/convert.c: structure member errno -> errno_val.
19209         Must include <errno.h> to use errno, it's a macro now.
19210         * libm/test/math.c: Ditto.
19211         * libm/test/math2.c: Include errno.h.
19212         * libm/test/string.c: Ditto.
19213         * libm/test/test.h: structure member errno -> errno_val.
19214         Remove extern int errno decl.
19215
19216 Thu Apr  8 07:56:33 1993  Ian Lance Taylor  (ian@cygnus.com)
19217
19218         * libc/stdio/Makefile.in: Added dependencies on local header
19219         files.
19220         * libc/stdio/std.h, libc/stdio/vfprintf.h: Removed unused header
19221         files.
19222
19223 Wed Apr  7 16:19:32 1993  Ian Lance Taylor  (ian@cygnus.com)
19224
19225         * libc/include/machine/ieeefp.h: Added __MIPSEB__ case.
19226
19227 Wed Apr  7 10:55:21 1993  Doug Evans  (dje@canuck.cygnus.com)
19228
19229         * libc/stdio/siprintf.c libc/stdio/sscanf.c libc/stdio/vsprintf.c:
19230         Initialize _data.
19231
19232         * libc/stdio/vfprintf.c: No need to declare _icvt, _licvt, _sicvt.
19233         * libc/stdio/local.h: Add prototype for _licvt.
19234
19235         * libc/stdio/ungetc.c (__submore): Use _malloc_r,_realloc_r
19236         instead of malloc,reealloc.
19237
19238         * libc/stdlib/local.h: New file.
19239         * libc/stdlib/efgcvt.c: #include local.h.
19240         (gcvt): Fix call to _gcvt.
19241         * libc/stdlib/ecvtbuf.c: #include local.h.
19242
19243         * libc/stdlib/Makefile.in: new files mallocr.c mstats.c.
19244         * libc/stdlib/mallocr.c mstats.c malloc.h: New files.
19245         * libc/stdlib/malloc.c: main routines moved to mallocr.c.
19246
19247         * libc/stdlib/atexit.c: moved global data to struct _reent.
19248         * libc/stdlib/exit.c: use struct _atexit in struct _reent.
19249
19250         * libc/reent/reent.c (inpure_data): _REENT_INIT macro modified.
19251
19252 Wed Apr  7 09:41:50 1993  Doug Evans  (dje@canuck.cygnus.com)
19253
19254         * libc/include/sys/reent.h: Stuff required by ANSI headers moved
19255         here from ../reent.h.
19256
19257 Tue Apr  6 12:56:01 1993  Ian Lance Taylor  (ian@cygnus.com)
19258
19259         * Makefile.in (MATHOBJS_IN_LIBC): List of object files which
19260         should be provided in both libc.a and libm.a.
19261         (libc.a): Depend on targ-include and libm.a.  Copy
19262         $(MATHOBJS_IN_LIBC) from libm.a to libc.a.
19263         (libm.a): Depend on targ-include.
19264         * configure.in (subdirs): Removed libc/math.
19265
19266 Mon Apr  5 10:18:16 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
19267
19268         * libm/ieeefp/infinity.c (maxpowtwo): Fix initialization bug.
19269
19270 Sat Apr  3 11:06:07 1993  Doug Evans  (dje@canuck.cygnus.com)
19271
19272         * libc/include/{errno.h, math.h, stdio.h, stdlib.h}: Use
19273         sys/reent.h instead of reent.h.
19274         * libc/include/reent.h: Split into two parts: stuff needed by ANSI
19275         headers moved to sys/reent.h.
19276         * libc/include/signal.h: _MAX_SIGNALS moved to sys/signal.h.
19277         * libc/include/sys/signal.h: Define _MAX_SIGNALS if
19278         __need__MAX_SIGNALS defined.
19279         * libc/include/stdio.h: struct __sFILE moved to sys/reent.h.
19280         std{in,out,err} refer to new _std{in,out,err} members.
19281
19282 Fri Apr  2 11:27:12 1993  Doug Evans  (dje@canuck.cygnus.com)
19283
19284         * libc/include/sys/signal.h: #define _SYS_SIGNAL_H for general
19285         case.
19286
19287 Fri Apr  2 09:41:10 1993  Doug Evans  (dje@canuck.cygnus.com)
19288
19289         * libc/sys/sparc64/execve.S (execve): Insert nop in delay slot,
19290         rather than whatever macro seterrno() has.
19291
19292 Thu Apr  1 16:47:08 1993  Doug Evans  (dje@canuck.cygnus.com)
19293
19294         * libc/locale/locale.c: Reentrant routines _r_xxx renamed to
19295         _xxx_r.  struct reent_struct renamed to struct _reent for ANSI.
19296
19297         * libc/include/machine/fastmath.h: Use _HAVE_STDC instead of
19298         __STDC__.
19299
19300         * libc/reent/{execr.c, filer.c, fstatr.c, linkr.c, reent.c,
19301         reent.tex, sbrkr.c, statr.c}: _r_xxx reentrant routines renamed to
19302         _xxx_r.  struct reent_struct renamed to struct _reent for ANSI.
19303
19304         * libc/signal/signal.c: Reentrant routines _r_xxx renamed to
19305         _xxx_r.  struct reent_struct renamed to struct _reent for ANSI.
19306
19307         * libc/stdio/{fclose.c, fdopen.c, findfp.c, fiprintf.c, flags.c,
19308         fopen.c, fprintf.c, freopen.c, fscanf.c, fseek.c, ftell.c,
19309         fwalk.c, getchar.c, gets.c, iprintf.c, local.h, makebuf.c,
19310         mktemp.c, perror.c, printf.c, putchar.c, puts.c, refill.c,
19311         remove.c, rename.c, scanf.c, setvbuf.c, siprintf.c, sprintf.c,
19312         sscanf.c, stdio.c, tmpfile.c, tmpnam.c, vfprintf.c, vfprintf.h,
19313         vfscanf.c, vprintf.c, vsprintf.c}: Reentrant routines _r_xxx
19314         renamed to _xxx_r.  struct reent_struct renamed to struct _reent
19315         for ANSI.  structure members given leading "_" for ANSI.  Use
19316         _HAVE_STDC instead of __STDC__ and _HAVE_STDARG.
19317
19318         * libc/stdlib/{__adjust.c, calloc.c, dtoa.c, ecvtbuf.c, malloc.c,
19319         mprec.c, mprec.h, rand.c, std.h, strtod.c, strtol.c, strtoul.c,
19320         system.c}: Reentrant routines _r_xxx renamed to _xxx_r.  struct
19321         reent_struct renamed to struct _reent for ANSI.
19322         Structure members given leading "_" for ANSI.
19323         _CONST --> const in prototypes.
19324         Use _HAVE_STDC instead of __STDC__.
19325
19326         * libc/string/strtok.c: Reentrant routines _r_xxx renamed to
19327         _xxx_r.
19328         struct reent_struct renamed to struct _reent for ANSI.
19329         Structure members given leading "_" for ANSI.
19330
19331         * libc/time/asctime.c: Reentrant routines _r_xxx renamed to
19332         _xxx_r.
19333         struct reent_struct renamed to struct _reent for ANSI.
19334
19335         * libm/math/{acos.h, acosh.h, asin.c, asinh.h, atanh.h, bessel.h,
19336         cbrt.h, cosh.h, erf.c, erf.h, error.c, exp.c, fmod.c, frexp.h,
19337         gamma.h, hypot.h, ldexp.c, log.h, log10.c, log1p.c log2.c,
19338         mathimpl.h, pow.c, remainder.c, sincos.c, sinh.h, sqrt.h, tan.c,
19339         tanh.h}: struct reent_struct renamed to struct _reent for ANSI.
19340
19341         * libc/include/{_ansi.h, ctype.h, math.h, reent.h, locale.h,
19342         signal.h, stdio.h, stdlib.h, string.h, time.h}:
19343         Use _HAVE_STDC instead of __STDC__ and _HAVE_STDARG.
19344         #ifndef _STRICT_ANSI non-ANSI routines.
19345         Reentrant routines renamed from _r_xxx to _xxx_r.
19346         No need to use _STRICT_ANSI on _xxx_r reentrant routines.
19347         Use _STRICT_ANSI instead of __STRICT_ANSI, _ANSI_SOURCE, etc.
19348         Clean up namespace (structure members have leading "_").
19349         struct reent_struct renamed to struct _reent for ANSI compliance.
19350         _CONST --> const in function prototypes.
19351
19352         * libc/include/string.h: Add NULL and size_t.
19353
19354         * libc/sys/sparc64/Makefile.in: New syscall routines for link,
19355         unlink, wait, wait4. Reentrant syscall routines close, fork,
19356         fstat, link, lseek, open, read, sbrk, stat, unlink, wait, wait4,
19357         write.
19358         * libc/sys/sparc64/cerror.S (cerror_r): New routine.
19359         * libc/sys/sparc64/{close.S, fork.S, fstat.S, link.S, lseek.S,
19360         open.S, read.S, sbrk.S, stat.S, unlink.S, wait.S, wait4.S,
19361         write.S}: Define reentrant versions.
19362         * libc/sys/sparc64/sys/syscallasm.h (defsyscall_r): New macro for
19363         reentrant syscalls.
19364
19365         * libc/sys/sparc64/crt0.S (start): Fix initialization of environ.
19366
19367         * libc/include/stdlib.h (RAND_MAX): Fix value.
19368
19369 Thu Apr  1 12:28:30 1993  Ian Lance Taylor  (ian@cygnus.com)
19370
19371         * libc/sys/a29khif/_main.c: Removed unnecessary file.
19372         * libc/sys/a29khif/Makefile.in (OFILES): Removed _main.c, moved
19373         VPATH support targets after all: target.
19374
19375         * stub/mvme135/mvme.S: Renamed exceptionhandler to
19376         exceptionHandler, which is what mvme135-stub.c expects.
19377
19378 Wed Mar 31 17:42:03 1993  Doug Evans  (dje@cygnus.com)
19379
19380         * libc/stdio/tmpnam.c (worker): Fix test for _r_open() failure.
19381
19382         * libc/unix/getpass.c (getpass): Use stdin,stderr instead of
19383         def_stdin/def_stderr (latter removed from stdio.h to make it ANSI
19384         compliant).
19385
19386 Tue Mar 30 09:58:21 1993  Doug Evans  (dje@canuck.cygnus.com)
19387
19388         * libc/reent/execr.c (_r_wait): Re-order args to make reent_struct
19389         first.
19390         libc/reent/filer.c (_r_open, _r_close, _r_lseek, _r_read,
19391         _r_write): Ditto.
19392         libc/reent/fstatr.c (_r_fstat): Ditto.
19393         libc/reent/linkr.c (_r_link, _r_unlink): Ditto.
19394         libc/reent/sbrkr.c (_r_sbrk): Ditto.
19395         libc/reent/statr.c (_r_stat): Ditto.
19396
19397         * libc/stdio/fopen.c (_r_fopen): Re-order args to _r_open.
19398         * libc/stdio/freopen.c (freopen): Ditto for _r_open, _r_free.
19399         * libc/stdio/fseek.c (fseek): Ditto for _r_fseek.
19400         * libc/stdio/makebuf.c (__smakebuf): Ditto for _r_fstat.
19401         * libc/stdio/mktemp.c (_gettemp): Ditto for _r_stat, _r_open.
19402         * libc/stdio/remove.c (_r_remove): Ditto for _r_unlink.
19403         * libc/stdio/rename.c (_r_rename): Ditto for _r_link, _r_unlink.
19404         * libc/stdio/stdio.c (__sread): Ditto for _r_read.
19405         (__swrite): Ditto for _r_lseek, _r_write.
19406         (__sseek): Ditto for _r_lseek.
19407         (__close): Ditto for _r_close.
19408         * libc/stdio/tmpnam.c (worker): Ditto for _r_open, _r_close.
19409
19410         * libc/stdlib/malloc.c (_r_morecore): Re-order args to _r_sbrk.
19411         * libc/stdlib/system.c (_r_system): Ditto for _r_wait.
19412
19413         * libc/include/reent.h: Re-order arguments to _r_xxx syscall fns
19414         to make reent_struct the first argument (and thus consistent with
19415         the rest of newlib).
19416
19417         * stub/mvme135/mvme135-stub.c (initializeRemcomErrorFrame): Remove
19418         reference to __STDC__.
19419
19420 Mon Mar 29 12:34:32 1993  Doug Evans  (dje@canuck.cygnus.com)
19421
19422         * libc/stdlib/exit.c (exit): Use _REENT->__cleanup instead of
19423         global __cleanup.
19424
19425 Wed Mar 24 11:54:35 1993  Doug Evans  (dje@canuck.cygnus.com)
19426
19427         * libc/stdio/freopen.c (freopen): Ensure stdio is initialized
19428         first.
19429         libc/stdio/fclose.c (fclose): Ditto.
19430
19431 Tue Mar 23 01:26:52 1993  Doug Evans  (dje@rtl.cygnus.com)
19432
19433         * Run through indent and rename reentrant routines for ANSI.
19434         libc/stdio/{clearerr.c cvt.c fclose.c fdopen.c feof.c ferror.c
19435         fflush.c fgetc.c fgetpos.c fgets.c findfp.c fiprintf.c flags.c
19436         fopen.c fprintf.c fputc.c fputs.c fread.c freopen.c fscanf.c
19437         fseek.c fsetpos.c ftell.c fvwrite.c fwalk.c fwrite.c getc.c
19438         getchar.c gets.c iprintf.c makebuf.c mktemp.c perror.c printf.c
19439         putc.c putchar.c puts.c refill.c remove.c rename.c rewind.c rget.c
19440         scanf.c setbuf.c setvbuf.c siprintf.c sprintf.c sscanf.c stdio.c
19441         tmpfile.c tmpnam.c ungetc.c vfprintf.c vfscanf.c vprintf.c
19442         vsprintf.c wbuf.c wsetup.c local.h}
19443
19444         * libc/locale/locale.c: Reformat and rename for ANSI, GNU style.
19445
19446         * Run through indent and rename xxx_r fns to _r_xxx for ANSI.
19447         libc/stdlib/{__adjust.c __exp10.c __ten_mu.c abort.c abs.c
19448         assert.c atexit.c atof.c atoi.c atol.c bsearch.c calloc.c div.c
19449         dtoa.c ecvtbuf.c efgcvt.c exit.c getenv.c labs.c ldiv.c malloc.c
19450         mbtowc.c mprec.c putenv.c qsort.c rand.c setenv.c strdup.c
19451         strtod.c strtol.c strtoul.c system.c wctomb.c mprec.h}
19452
19453         * Run through indent.
19454         libc/string/{bcmp.c bcopy.c bzero.c index.c memchr.c memcmp.c
19455         memcpy.c memmove.c memset.c rindex.c strcat.c strchr.c strcmp.c
19456         strcoll.c strcpy.c strcspn.c strerror.c strlen.c strncat.c
19457         strncmp.c strncpy.c strpbrk.c strrchr.c strspn.c strstr.c strtok.c
19458         strxfrm.c}
19459
19460         * libc/time/{asctime.c clock.c ctime.c difftime.c gmtime.c
19461         localtime.c mktime.c strftime.c time.c}:
19462         Run through indent and rename xxx_r (reentrant) fns to _r_xxx for ANSI.
19463
19464         * Reformatting + renaming (for ANSI, GNU style, consistency).
19465         libc/include/{_ansi.h, assert.h, ctype.h, errno.h, fastmath.h,
19466         ieeefp.h, locale.h, math.h, paths.h, pwd.h, reent.h, setjmp.h,
19467         signal.h, stdio.h, stdlib.h, string.h, time.h, unistd.h}
19468
19469 Fri Mar 19 11:28:01 1993  Doug Evans  (dje@cygnus.com)
19470
19471         * libc/include/stdio.h (stdin_r): Fix.
19472
19473 Fri Mar 19 09:43:48 1993  Ian Lance Taylor  (ian@cygnus.com)
19474
19475         * Makefile.in: Unexport some variables to keep GNU make from
19476         putting them in the environment and using up needed ARG_MAX space
19477         (a hack is used to let this work with older makes as well).
19478
19479 Tue Mar 16 15:11:08 1993  Ian Lance Taylor  (ian@cygnus.com)
19480
19481         * Makefile.in: Use $(MAKE) rather than make.
19482         (MAKEOVERRIDES): Define to be empty.
19483         (FLAGS_TO_PASS): Don't pass down LD (it's not used).
19484         (libc.a, libm.a): Depend on targ-include.
19485         * host/any (LD): Don't define.
19486         (INCLUDES): Use targ-include.
19487         * stub/Makefile.in (MAKEOVERRIDES): Define to be empty.
19488         (FLAGS_TO_PASS): Don't pass down LD (it's not used).
19489         * libc/Makefile.in: Use $(MAKE) rather than make.
19490         (MAKEOVERRIDES): Define to be empty.
19491         (FLAGS_TO_PASS): Don't pass LD (it's not used).
19492         (all): Rewrote to be slightly smaller.
19493         * libc/machine/Makefile.in, libc/sys/Makefile.in (MAKEOVERRIDES):
19494         Define to be empty.
19495         (FLAGS_TO_PASS): Don't pass LD (it's not used).
19496         * libm/Makefile.in (FLAGS_TO_PASS): Don't pass LD (it's not used).
19497
19498 Mon Mar 15 08:45:41 1993  Ian Lance Taylor  (ian@cygnus.com)
19499
19500         * libc/sys/go32/gerrno.s: Renamed from errno.s to avoid conflict
19501         with errno/errno.c.
19502
19503 Fri Mar 12 09:46:54 1993  Ian Lance Taylor  (ian@cygnus.com)
19504
19505         * Changes for reentrancy.
19506         libc/stdio/fdopen.c, libc/stdio/freopen.c, libc/stdio/perror.c:
19507         Use ptr->_errno, not errno.
19508         libc/stdio/mktemp.c (mkstemp_r, mktemp_r): New functions.
19509         libc/stdio/remove.c (remove_r): New function.
19510         libc/stdio/rename.c (rename_r): New function.
19511         libc/stdio/fopen.c, libc/stdio/freopen.c, libc/stdio/fseek.c,
19512         libc/stdio/makebuf.c, libc/stdio/mktemp.c, libc/stdio/remove.c,
19513         libc/stdio/rename.c, libc/stdio/stdio.c, libc/stdio/tmpnam.c: Use
19514         reentrant versions of system calls.
19515         libc/stdio/gets.c: Call getchar_f, not nonexistent getchar_r.
19516         libc/stdio/scanf.c: Use stdin_r, not nonexistent stdin_n.
19517         libc/stdio/tmpfile.c: Use tmpnam_f, not nonexistent tmpnam_r.
19518         libc/stdio/findfp.c: Include <string.h>.
19519         libc/stdio/fread.c, libc/stdio/rget.c, libc/stdio/scanf.c: Include
19520         "local.h".
19521         libc/stdio/wbuf.c: Include "fvwrite.h"
19522
19523         * libc/stdlib/{dtoa.c, ecvtbuf.c, mprec.c, strtod.c}: Include
19524         <string.h>.
19525         libc/stdlib/malloc.c: Call sbrk_r rather than sbrk.
19526         (NULL): Don't define if already defined.
19527         libc/stdlib/system.c: Call reentrant versions of system calls.
19528         (system_r): New function.
19529
19530         * Changes for reentrancy.
19531         libc/include/_ansi.h (_PARAMS): New macro.
19532         libc/include/errno.h: Define errno as a macro that calls __errno.
19533         (__errno_r): New macro for reentrant code.
19534         libc/include/math.h: Include reent.h.  Declare many reentrant
19535         functions.
19536         (signgam): Now a macro, not a variable.
19537         (struct exception): Added err field.
19538         libc/include/reent.h: Don't declare __sglue.  Added function
19539         declarations.
19540         (struct reent_struct): Moved errno to beginning.  Added _signgam.
19541         libc/include/stdio.h, libc/include/stdlib.h: Added function
19542         declarations.
19543
19544         * More reentrancy hacking.
19545         libc/errno/errno.c (__errno): New function.
19546         libc/reent/execr.c, libc/reent/filer.c, libc/reent/fstatr.c,
19547         libc/reent/linkr.c, libc/reent/sbrkr.c, libc/reent/statr.c: New
19548         files.
19549
19550         * Added many new reentrant functions to libm/math/*.
19551         libm/math/error.c (__matherror): Added reent_struct pointer
19552         argument. Changed all callers.
19553         libm/math/gamma.c (signgam): Removed. Set ptr->_signgam, instead.
19554         libm/math/exp.h, libm/math/pow.h, libm/math/sincos.h,
19555         libm/math/tan.h: Removed obsolete unused header files.
19556
19557         * libc/sys/a29khif/stubs.s: Use register lr0, not v0.
19558
19559         * libc/sys/sun/Makefile.in (COPYOFILES): Don't pull in errno.o.
19560
19561 Mon Mar  8 16:43:43 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
19562
19563         * libc/sys/a29khif/stubs.s: clobber safe register, and fill all
19564         delay slots.
19565
19566 Tue Mar  2 14:47:00 1993  Jeffrey Osier      (jeffrey@fowanton.cygnus.com)
19567
19568         * libc/libc.texinfo:  comment out reentrancy chapter (duh)
19569
19570 Tue Mar  2 14:34:16 1993  Jeffrey Osier      (jeffrey@fowanton.cygnus.com)
19571
19572         * libc/reent/reent.tex:  New file.  (text from
19573         newlib/libc/libc.texinfo)
19574         * libc/stdio/tmpnam.c:  fixed doc typo
19575         * libc/stdlib/rand.c:   fixed doc typo
19576
19577 Tue Mar  2 14:34:16 1993  Jeffrey Osier      (jeffrey@fowanton.cygnus.com)
19578
19579         * libc/reent/reent.tex:  New file.  (text from
19580         newlib/libc/libc.texinfo)
19581
19582 Fri Feb 26 12:20:54 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
19583
19584         support for reentrancy
19585         * libc/reent/reent.c, libc/reent/Makefile.in, libc/reent/reent.c:
19586         new files
19587         * libc/errno/errno.c, libc/include/ieeefp.h,
19588         libc/include/locale.h, libc/include/reent.h,
19589         libc/include/signal.h, libc/include/stdio.h,
19590         libc/include/stdlib.h, libc/include/string.h, libc/include/time.h,
19591         libc/signal/signal.c libc/stdio/cvt.c, libc/stdio/fclose.c,
19592         libc/stdio/fdopen.c, libc/stdio/fflush.c, libc/stdio/fgets.c,
19593         libc/stdio/findfp.c, libc/stdio/flags.c, libc/stdio/fopen.c,
19594         libc/stdio/fputc.c, libc/stdio/freopen.c, libc/stdio/fseek.c,
19595         libc/stdio/ftell.c, libc/stdio/fwalk.c, libc/stdio/getchar.c,
19596         libc/stdio/gets.c, libc/stdio/glue.h, libc/stdio/iprintf.c,
19597         libc/stdio/local.h, libc/stdio/makebuf.c, libc/stdio/perror.c,
19598         libc/stdio/printf.c, libc/stdio/putchar.c, libc/stdio/puts.c,
19599         libc/stdio/refill.c, libc/stdio/scanf.c, libc/stdio/setvbuf.c,
19600         libc/stdio/sprintf.c, libc/stdio/tmpfile.c, libc/stdio/tmpnam.c,
19601         libc/stdio/ungetc.c, libc/stdio/vfprintf.c, libc/stdio/vfprintf.h,
19602         libc/stdio/vfscanf.c, libc/stdio/vprintf.c, libc/stdio/wsetup.c,
19603         libc/stdlib/__adjust.c, libc/stdlib/__exp10.c,
19604         libc/stdlib/assert.c, libc/stdlib/atexit.c, libc/stdlib/atol.c,
19605         libc/stdlib/dtoa.c, libc/stdlib/ecvtbuf.c, libc/stdlib/malloc.c,
19606         libc/stdlib/mprec.c, libc/stdlib/mprec.h, libc/stdlib/rand.c,
19607         libc/stdlib/setenv.c, libc/stdlib/std.h, libc/stdlib/strtod.c,
19608         libc/stdlib/strtol.c, libc/stdlib/strtoul.c, libc/string/strtok.c,
19609         libc/time/asctime.c, libc/time/localtime.c, libc/time/mktime.c,
19610         libc/time/strftime.c: modify to provide reentracy.
19611
19612         new routines:
19613         strtok_r, asctime_r, fdopen_r, _cleanup_r, fopen_r, iprintf_r,
19614         perror_r, printf_r, putchar_r, puts_r, scanf_r, sprintf_r,
19615         tmpfile_r, vfiprintf_r, vfprintf_r, strtod_r, dtoa_r, rand_r,
19616         srand_r, strtoul_r,strtol_r, free_r, malloc_r, morecore_r,
19617         mstats_r, realloc_r, localeconv_r, setlocale_r
19618
19619 Wed Feb 17 20:17:15 1993  Mark Eichin  (eichin@cygnus.com)
19620
19621         * libc/include/machine/ieeefp.h, libc/include/machine/setjmp.h,
19622         libc/include/sys/config.h, libc/include/sys/signal.h,
19623         libc/include/sys/stat.h, libc/include/sys/types.h: For compiler
19624         provided macros (such as m68000), use the ansi version
19625         (__m68000__) so that the library can be used with code compiled
19626         -ansi. In particular, m68000, mc68000, _AM29K, i386, MIPSEL, unix,
19627         and sparc.
19628
19629 Wed Feb 17 13:01:34 1993  Jim Wilson  (wilson@sphagnum.cygnus.com)
19630
19631         * configure.in (sparc*): Don't set -fsoft-float for sparc
19632         configurations.  Do set -fsoft-float for sparclite configurations.
19633
19634 Fri Feb 12 16:25:52 1993  Roland H. Pesch  (pesch@fowanton.cygnus.com)
19635
19636         * default.menu, no-signal.menu: alternate forms of libc main menu
19637           (in newlib rather than newlib/libc due to configuration restrictions)
19638
19639         * configure.in: select one of the two menus above, link to
19640         libc.menu
19641
19642         * libc/libc.texinfo: include menu from separate file
19643
19644 Fri Feb 12 12:50:06 1993  Ian Lance Taylor  (ian@cygnus.com)
19645
19646         * Makefile.in (FLAGS_TO_PASS): Put INSTALL back in.
19647         (info): Split long shell command in half.
19648         * libc/Makefile.in (info, targetdep.tex): Don't pass everything to
19649         sub-makes, just CHEW and TARGETDOC.
19650         (targetdep.tex): Removed now special handling of sys and machine
19651         subdirectories, made obsolete some time ago.
19652         * libc/machine/Makefile.in (doc): Don't pass everything to
19653         sub-make, just CHEW and TARGETDOC.
19654         (Makefile): New target.
19655         * libc/sys/Makefile.in (Makefile): New target.
19656
19657 Thu Feb 11 15:25:15 1993  Ian Lance Taylor  (ian@cygnus.com)
19658
19659         * Makefile.in (here and most subdirectories): Only pass down CHEW
19660         and TARGETDOC when making info, not for other targets.
19661
19662         * Makefile.in (here and most subdirectories), host/any: Use $(AR)
19663         $(AR_FLAGS) rather than $(ARUPDATE).
19664
19665 Wed Feb 10 11:57:52 1993  Ian Lance Taylor  (ian@cygnus.com)
19666
19667         * Try to reduce command line length:
19668         * Makefile.in (FLAGS_TO_PASS): don't pass down exec_prefix,
19669         CC_FOR_BUILD, CFLAGS_FOR_BUILD, INSTALL or CHEW.
19670         (info, docs): pass CC_FOR_BUILD and CFLAGS_FOR_BUILD to doc.
19671         (info): Pass CHEW to other subdirs.
19672
19673 Tue Feb  9 14:01:42 1993  Mark Eichin  (eichin@cygnus.com)
19674
19675         * configure.in: add signal_dir, like unix_dir, but by default it
19676         is set to "signal" so that a29khif can turn it off (since a29khif
19677         has raise() as part of machine-specific signal.s.)
19678
19679 Fri Jan 15 12:09:50 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
19680
19681         * libc/sys/config.h, libc/machine/ieeefp.h: add Z8000 support
19682         * libc/stdio/Makefile.in: pass CFLAGS so vfiprintf.c gets built
19683         correctly.
19684         * libc/stdio/fdopen.c, libc/stdio/fgets.c, libc/stdio/fscanf.c,
19685         libc/stdio/vfprintf: type lint.
19686         * libc/sys/z8ksim/crt0.c (start): Z8001/Z8002 independent
19687         initialzation code.
19688         * libc/sys/z8ksim/glue.c: Z8001/Z8002 clean system calls.
19689
19690 Tue Dec 29 10:15:33 1992  Ian Lance Taylor  (ian@cygnus.com)
19691
19692         * stub/mvme135/mvme135-asm.S: new file.
19693         stub/mvme135mvme135-stub.c: moved all assembler routines into
19694         mvme135-asm.S.
19695         stub/mvme135/Makefile.in: build mvme135-stub.o.
19696
19697 Mon Dec 28 12:40:43 1992  Ian Lance Taylor  (ian@cygnus.com)
19698
19699         * Makefile.in: don't pass down $(CPP); use $(CC) -E in
19700         sub-Makefiles instead, to try to avoid line length limitations.
19701
19702 Mon Dec 21 18:36:13 1992  Per Bothner  (bothner@rtl.cygnus.com)
19703
19704         * libc/include/unistd.h (read, write):  Use void* instead of
19705         char*.
19706
19707 Thu Dec 17 13:49:46 1992  Mark Eichin  (eichin@cygnus.com)
19708
19709         * stub/go32/resetpc: sample script to send a reset packet to the
19710         stub
19711
19712         * stub/go32/I386STUB.C: new file, gdb/i386stub.c modified for the
19713         DOS environment, which compiles with Turbo C.
19714
19715         * stub/go32/DSER32.LNK: new file, linker commands for serial
19716         remote stub.
19717
19718         * stub/go32/CONTROL.C: turn off debug_mode, add CYGNUS tag line to
19719         start up message to identify version; call set_debug_traps.
19720
19721         * stub/go32/DEBUG.C: turn off debug_mode (so stub doesn't need any
19722         keyboard interaction); call handle_exception() in go_til_stop,
19723         rather than return, so that the remote stub gets control.
19724
19725         * stub/go32/MAKEFILE: fixed to actually use DOS commands (del and
19726         rename, rather than mv), set flags that work with current Turbo C,
19727         including using the /3 flag; also, add commands to build dser32.
19728
19729         * stub/go32/DEBUG32.LNK, stub/go32/GO32.LNK: fix paths to match
19730         default Turbo C installation (\tc rather than \usr)
19731
19732         * stub/go32/MONO.C (printf): current Turbo C uses "..." instead of
19733         "&..."
19734
19735 Mon Dec 14 09:37:33 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
19736
19737         * libc/include/math.h: added _DOUBLE_IS_32BITS checks
19738
19739 Thu Nov 12 22:31:04 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
19740
19741         * libc/stdio/cvt.c (licvt): new function to convert ints when
19742         sizeof(int) != sizeof(long).
19743
19744         * libc/include/stdio.h: added prototype for iprintf.
19745         * libc/include/machine/limits.h machine/ieeefp.h: z8k stuff
19746
19747 Tue Nov 10 12:18:12 1992  Ian Lance Taylor  (ian@cygnus.com)
19748
19749         * libc/machine/m68k/setjmp.S: use __USER_LABEL_PREFIX__ and
19750         __REGISTER_PREFIX__.
19751
19752 Mon Nov  2 13:50:14 1992  Ian Lance Taylor  (ian@cygnus.com)
19753
19754         * libc/sys/m68kbare: moved into stub directory.
19755
19756 Mon Nov  2 13:40:42 1992  Ian Lance Taylor  (ian@cygnus.com)
19757
19758         * configure.in, Makefile.in: created new directory stub, to hold
19759         sample code for specific targets.
19760
19761 Wed Oct 28 02:19:55 1992  Mark Eichin  (eichin@cygnus.com)
19762
19763         * restored libc/sys/go32/sys/fcntl.h, to override incorrect values
19764         in the unified libc/include/sys/fcntl.h.
19765
19766 Wed Oct 21 13:55:58 1992  Doug Evans  (dje@rtl.cygnus.com)
19767
19768         * libc/stdlib/ecvtbuf.c: (print_f,_gcvt): printf("%f", 0.01)
19769         printed .01, not 0.01.
19770
19771 Mon Oct 19 11:05:55 1992  Ian Lance Taylor  (ian@cygnus.com)
19772
19773         * configure.in: compile with -m68000 for m68* targets.
19774
19775 Sun Oct 18 05:29:05 1992  Mark Eichin  (eichin@cygnus.com)
19776
19777         * libm/math/remainder.c (remainder): document the svr4 and sunos
19778         references used to construct the function.
19779
19780 Sat Oct 17 21:46:16 1992  Mark Eichin  (eichin@cygnus.com)
19781
19782         * libm/math/remainder.c (rint, remainder): fix old typos.
19783         * libm/math/Makefile.in: actually build remainder.c (functions
19784         rint and remainder, from SysVr4 Programmer's Guide floor(3m) man
19785         page.)
19786
19787 Thu Oct 15 07:48:05 1992  Ian Lance Taylor  (ian@cygnus.com)
19788
19789         * libc/string/bcopy.c: BSD version works on overlapping strings,
19790         so ours should too.
19791
19792         * libc/stdlib/system.c: always invoke /bin/sh, not getenv
19793         ("SHELL").
19794
19795 Wed Oct 14 11:07:11 1992  Ian Lance Taylor  (ian@cygnus.com)
19796
19797         * Makefile.in (docs): new target.
19798
19799 Wed Oct 14 07:44:25 1992  Ian Lance Taylor  (ian@cygnus.com)
19800
19801         * libc/include/sys/times.h: define clock_t as required by POSIX.
19802         libc/include/time.h: protect clock_t from multiple definitions.
19803
19804 Wed Oct  7 11:02:21 1992  Mark Eichin  (eichin at tweedledumber.cygnus.com)
19805
19806         * libm/math/sqrt.h (sqrt): actually, the final version of fp-bit
19807         does not need more than the original three iterations to get
19808         within 1 ulp. (Paranoia tests for rounding to better than that,
19809         but further iterations *don't* help, only more subtle changes
19810         can.)
19811
19812 Tue Oct  6 09:22:12 1992  Ian Lance Taylor  (ian@cygnus.com)
19813
19814         * libc/sys/vxworks68, libc/sys/vxworks960: removed, since they
19815         were doing nothing useful.
19816
19817 Tue Oct  6 08:48:13 1992  Ian Lance Taylor  (ian@cygnus.com)
19818
19819         * configure.in: define MALLOC_PROVIDED for vxworks targets;
19820         removed sys_dir settings of vxworks68 and vxworks960.
19821         host/any: don't pass -nostdinc to gcc, since newlib no longer
19822         provides all required header files.
19823
19824         * libc/stdlib/malloc.c: only compile this file if MALLOC_PROVIDED
19825         is not defined; this provides a hook for VxWorks.
19826
19827 Mon Oct  5 03:44:57 1992  Mark Eichin  (eichin at tweedledumber.cygnus.com)
19828
19829         * libc/stdio/setvbuf.c (setvbuf): while ANSI does say to malloc a
19830         buffer if buf is NULL, don't do it here -- it is already being
19831         done by makebuf elsewhere in stdio.
19832
19833 Fri Oct  2 13:12:07 1992  Ian Lance Taylor  (ian@cygnus.com)
19834
19835         * libc/sys/a29khif/Makefile.in: assemble Steve's list of stubs so
19836         that C programs can call functions without using initial
19837         underscores.
19838
19839 Thu Oct  1 09:37:47 1992  Ian Lance Taylor  (ian@cygnus.com)
19840
19841         * libc/stdlib/abort.c (abort): call exit, in case kill returns.
19842
19843 Wed Sep 30 08:22:18 1992  Ian Lance Taylor  (ian@cygnus.com)
19844
19845         * configure.in: set TARGET_CFLAGS for certain CPU types to
19846         -msoft-float.
19847
19848 Tue Sep 29 21:09:32 1992  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
19849
19850         * libc/sys/m68kbare/glue.c: use <_ansi.h> instead of <ansidecl.h>
19851
19852 Mon Sep 28 14:58:44 1992  Ian Lance Taylor  (ian@cygnus.com)
19853
19854         * configure.in: added sys_dir m68kbare for m68k*-unknown-aout and
19855         m68k*-unknown-coff.
19856
19857 Fri Sep 25 08:33:21 1992  Ian Lance Taylor  (ian@cygnus.com)
19858
19859         * libc/include/stdio.h: define __need___va_list before including
19860         <stdarg.h>, to avoid defining va_arg, et. al.
19861
19862 Tue Sep 22 13:47:00 1992  Ian Lance Taylor  (ian@cygnus.com)
19863
19864         * libc/sys/Makefile.in: handle the case of an empty $(sys_dir)
19865         (don't cd to the user's home directory).
19866
19867         * libc/Makefile.in: replaced all instances of $(MAKE) with make.
19868         In general this is the wrong thing to do, but I can't get around
19869         GNU make's insistence on passing command line arguments any other
19870         way.
19871
19872 Tue Sep 22 10:12:44 1992  Ian Lance Taylor  (ian@cygnus.com)
19873
19874         * configure.in: always configure the libc/sys directory, since it
19875         now provides a required documentation file.
19876
19877         * Makefile.in: replaced all instances of $(MAKE) with make.  In
19878         general this is the wrong thing to do, but I can't get around GNU
19879         make's insistence on passing command line arguments any other way.
19880
19881 Mon Sep 21 22:42:26 1992  Ian Lance Taylor  (ian@tweedledumbest.cygnus.com)
19882
19883         * libc/stdlib/ecvtbuf.c (_gcvt): string for 0 was not null
19884         terminated.
19885
19886         * libc/stdio/local.h: include <stdarg.h> to define va_list.
19887         libc/stdio/vsprintf.c: include <stdarg.h> rather than <varargs.h>.
19888
19889         * libc/include/float.h, libc/include/stdarg.h,
19890         libc/include/stddef.h, libc/include/varargs.h: removed; use gcc
19891         versions instead.
19892         libc/include/stdio.h: get size_t from <stddef.h>, and va_list from
19893         <stdarg.h>, not from <machine/types.h>.  Protect definition of
19894         NULL.
19895         libc/include/time.h: get size_t from stddef.h.  Protect definition
19896         of NULL.
19897         libc/include/machine/limits.h: override gcc <limits.h> by defining
19898         _LIMITS_H___.  Don't define CLK_TCK.  Copied in gcc <limits.h> to
19899         get correct INT_MIN and LONG_LONG values.
19900         libc/include/machine/types.h: don't define ptrdiff_t, wchar_t,
19901         size_t or va_list at all; they're now gotten from stddef.h
19902         instead.
19903         libc/include/machine/varargs.h: removed; use gcc version instead.
19904         libc/include/sys/types.h: explicitly include <machine/types.h>.
19905
19906         * libm/math/sqrt.h: using the fp-bit routines appears to require
19907         more iterations.
19908
19909         * Makefile.in, host/any: let system include files override machine
19910         include files.
19911
19912 Sat Sep 19 21:10:06 1992  Mark Eichin  (eichin at tweedledumber.cygnus.com)
19913
19914         * libc/include/machine/types.h: allow __*_TYPE__ from cpp to
19915         override _*_T_ definitions defaulted here.
19916
19917 Tue Sep 15 11:14:46 1992  Ian Lance Taylor  (ian@cygnus.com)
19918
19919         * Makefile.in (install): install the include files in
19920         $(tooldir)/include, not $(exec_prefix)/include.
19921
19922 Fri Sep 11 15:48:43 1992  Ian Lance Taylor  (ian@cygnus.com)
19923
19924         * Makefile.in (install): fixed typo, and changed install to not
19925         force rebuild of libc.a and libm.a.
19926
19927 Thu Sep 10 10:46:09 1992  Ian Lance Taylor  (ian@cygnus.com)
19928
19929         * libc/sys/a29khif/*: Changed all .include's to include
19930         sys/sysmac.h, not plain sysmac.h.  The header files live in sys so
19931         that they will be installed for the user.
19932
19933         * Makefile.in (all): create targ-include, a directory holding the
19934         machine and system specific header files during the build.
19935         (install): fixed installation of machine and system specific
19936         header files.
19937
19938         * Makefile.in: fixed comment.
19939         host/any: change .s.o rule to use $(AS) rather than $(CC), so that
19940         we can pass $(INCLUDES) to it.
19941
19942 Thu Sep 10 10:13:13 1992  Ian Lance Taylor  (ian@cygnus.com)
19943
19944         * libc/include/sys/param.h: new generic file, which may be
19945         overridden for specific systems.
19946
19947         * libc/include/sys/signal.h: define all ANSI signal names, and
19948         NSIG (which is not ANSI) for a29k.
19949
19950 Tue Sep  8 09:04:30 1992  Ian Lance Taylor  (ian@cygnus.com)
19951
19952         * Makefile.in: don't pass down arguments the lower level makes
19953         will not need.
19954         * libc/Makefile.in: recurse directly, rather than using subdir_do,
19955         in hopes of avoiding argument length limits.
19956         * libm/Makefile.in: recurse directly, rather using subdir_do, in
19957         hopes of avoiding argument length limits.
19958
19959 Tue Sep  8 08:27:22 1992  Ian Lance Taylor  (ian@cygnus.com)
19960
19961         * libc/include/sys/fcntl.h: include <sys/types.h> to ensure that
19962         mode_t is defined.
19963
19964 Mon Sep  7 14:02:07 1992  Ian Lance Taylor  (ian@cygnus.com)
19965
19966         * Fixed make info and make install-info for newlib, changing most
19967         Makefile.in and several *.tex files.  Moved doc directory from
19968         libc to top level.
19969
19970         * libc/time/mktime.c (_DAYS_IN_MONTH): actually, not const.
19971         Should be rewritten.
19972
19973         * libc/string/strings.tex: renamed node index to node index
19974         function, so that it does not conflict with the top level index
19975         node.
19976
19977         * libc/include/sys/config.h: define __IEEE_BIG_ENDIAN for h8300.
19978
19979 Fri Sep  4 02:34:06 1992  Ian Lance Taylor  (ian@cygnus.com)
19980
19981         * Overhauled general configuration for newlib.  Eliminated all
19982         target dependent Makefile fragments.  Create libraries in newlib
19983         rather than newlib/libc and newlib/libm.  Use CC, et. al., rather
19984         than CROSS_CC, et. al.  Broke make docs; will fix later.
19985
19986         * libc/time/localtime.c (_DAYS_IN_MONTH): actually, not const.
19987         Should be rewritten.
19988
19989 Tue Sep  1 15:21:14 1992  Ian Lance Taylor  (ian@cygnus.com)
19990
19991         * libc/configure.in: cleaned up somewhat; switch on ${target}
19992         rather than ${target_alias}.
19993         * libm/configure.in: cleaned up somewhat; switch on ${target}
19994         rather than ${target_alias}.
19995
19996         * libc/ctype/ctype_.c: marked _ctype_ array _CONST.
19997         * libc/include/ctype.h: marked _ctype_ as _CONST.
19998
19999         * libc/locale/locale.c (lconv, localeconv): marked static lconv as
20000         _CONST.
20001
20002         * libc/stdio/cvt.c, libc/stdio/findfp.c (__sfmoreglue),
20003         libc/stdio/vfscanf.c (__svfscanf): made static variables const.
20004         libc/stdio/gets.c (gets): removed non-ANSI warning message.
20005         libc/stdio/tmpnam.c (tmpnam): removed unneeded filename variable.
20006
20007         * libc/stdlib/mprec.h, libc/stdlib/mprec.c (pow5mult, tens,
20008         bigtens, tinytens): marked arrays _CONST.
20009         libc/stdlib/qsort.c (swap): if __GNUC__, use _builtin_alloca
20010         rather than a static variable.
20011
20012         * libc/time/asctime.c (asctime), libc/time/localtime.c
20013         (_DAYS_IN_MONTH), libc/time/mktime.c (_DAYS_IN_MONTH,
20014         _DAYS_BEFORE_MONTH), libc/time/strftime.c (dname_len, dname,
20015         mname_len, mname): Marked static arrays _CONST.
20016
20017         * libm/math/gamma.h: made local variables non-static.
20018
20019         * libm/math/acos.h, libm/math/bessel.c, libm/math/erf.c,
20020         libm/math/exp.c, libm/math/gamma.h: marked static arrays as
20021         _CONST.
20022
20023         * libm/math/constants.c: removed file, because the constants it
20024         defined were never referenced.
20025         libm/math/Makefile.in: removed references to constants.c.
20026         libm/math/mathimpl.h: removed declarations of constants.
20027
20028 Wed Aug 26 21:09:06 1992  Ian Lance Taylor  (ian@cygnus.com)
20029
20030         * libc/include/machine/varargs.h: only call __builtin_saveregs if
20031         it is sensibly defined in libgcc2.  Checks preprocessor defines,
20032         which is not a good solution.
20033
20034         * libm/sqrt.c: sqrt(Infinity) should not be a domain error.
20035
20036         * libm/frexp.c: handle denormalized numbers as arguments.
20037
20038         * libm/math/Makefile.in: added some dependencies for .c files
20039         which include local .h files.
20040
20041 Mon Aug 24 12:57:58 1992  Ian Lance Taylor  (ian@cygnus.com)
20042
20043         * libc/configure.in: set target_alias for OSE*.  Replace
20044         target_makefile_frag if it is blank.
20045
20046         * libc/Makefile.in: make sure everything is passed to subsidiary
20047         makes; create all directories when installing.
20048
20049         * libm/ieeefp/Makefile.in, libm/math/Makefile.in: use
20050         CROSS_ARUPDATE instead of AR.
20051
20052         * libm/configure.in: set target_alias for OSE*.  Replace
20053         target_makefile_frag if it is blank.
20054
20055         * libm/Makefile.in: make sure everything is passed to subsidiary
20056         makes; create all directories when installing.
20057
20058 Thu Aug 20 15:11:51 1992  Mark Eichin  (eichin@cygnus.com)
20059
20060         * add following change from libc copy.
20061
20062 Wed Aug 19 18:54:49 1992  Roland H. Pesch  (pesch@fowanton.cygnus.com)
20063
20064         * libc/libc.texinfo: make copyright disclaimers appear on back of
20065         title page; make format of same slightly less ugly; avoid using
20066         underbars in section headings (avoids nasty texinfo bug in table
20067         of contents).
20068
20069         * libc/ctype/tolower.c, libc/ctype/toupper.c: (doc changes in
20070           comments only) avoid using underbars in section headings
20071
20072         * libc/ieeefp/ieeefp.tex: include doc from fpsticky, infinity,
20073           isnan ieeefp/fpmask.c, ieeefp/fpround.c, ieeefp/fpsticky.c (doc
20074           changes in comments only): shorten headings ieeefp/infinity.c,
20075           ieeefp/isnan.c: (doc, comments only) more informative headings
20076
20077         * libc/math/bessel.c: (doc, comments only) shorten heading
20078
20079         * libc/stdlib/efgcvt.c, libc/stdlib/mbtowc.c, libc/stdlib/wctomb.c
20080         (doc, comments only) shorten headings
20081
20082         * libc/time/localtime.c (doc, comments only): shorten headings
20083
20084         * libm/ieeefp/ieeefp.tex: include doc from fpsticky, infinity,
20085           isnan
20086           libm/ieeefp/fpmask.c, libm/ieeefp/fpround.c,
20087           libm/ieeefp/fpsticky.c (doc changes in comments only): shorten
20088           headings
20089           libm/ieeefp/infinity.c, libm/ieeefp/isnan.c: (doc, comments
20090           only) more informative headings
20091         * libm/math/bessel.c: (doc, comments only) shorten heading
20092
20093 Wed Aug 19 07:06:37 1992  Mark Eichin  (eichin at tweedledumber.cygnus.com)
20094
20095         * .../Makefile.in: use CROSS_ARUPDATE consistently.
20096         * config/*.mt: define CROSS_AR as well as CROSS_ARUPDATE
20097         * config/*.mt: define CROSS_CPP based on CROSS_CC, not /lib/cpp.
20098         * .../Makefile.in: get rid of .c.o rule - if TOP is correctly
20099         defined, the one from the .mt file will be correct.
20100         * libc/include/machine, libc/include/sys: created, and populated
20101         with common files from machine/*/machine. ifdefs were used for
20102         most, typically by handling exceptions first and then filling in
20103         defaults. Files with D.J. Delorie copyright #included rather than
20104         copied. Most files in include/sys really were the same in the
20105         original.
20106         * libc/include/...: cleaned up use of _EXFUN.
20107         * libc/stdlib/mprec.c: mprec.h doesn't get installed, so include
20108         it with double quotes, not angles.
20109
20110 Mon Aug 10 11:43:20 1992  Ian Lance Taylor  (ian@dumbest.cygnus.com)
20111
20112         * libc/Makefile.in: always create installation directories.
20113
20114 Sun Aug  9 22:45:48 1992  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
20115
20116         * libc/configure.in: handle host properly (using canonical
20117         triples), better error message for the case of target not found
20118
20119 Thu May 28 01:56:37 1992  Michael Tiemann  (tiemann@rtl.cygnus.com)
20120
20121         * libc/Makefile.in (insincdir): Ensure this directory exists
20122         before attempting installation.
20123
20124 Fri May  1 18:16:42 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
20125
20126         * libc/stdlib/assert.c: now calls abort like it should
20127         * libc/sys/a29khif: many many patches for 29khif work
20128         * libc/machine/i386: gnulib2 expanded there.
20129
20130 Tue Apr 28 19:08:37 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
20131
20132         Added accurate fp conversion routines to stdlib, moved dcvt from
20133         stdio to stdlib and called it ecvtbuf:
20134         * libc/stdlib/mprec.c, mprec.h: new files for multiprec arithmetic
20135         * libc/stdlib/Makefile.in, efgcvt.c, strtod.c: modified to use new
20136         routines
20137         * libc/libc.texinfo: Modifed to include the copyright info from
20138         the mprec files
20139         * libc/stdlib/efgcvt.c: now xref to ecvtbuf in stdlib.
20140         * libc/test/ : many vector which tested for the implementation
20141         defined returns of strange conversion requests have been updated
20142         to relflect the new implementation
20143
20144 Mon Apr 27 13:41:33 1992  Roland H. Pesch  (pesch@fowanton.cygnus.com)
20145
20146         * libc/libc.texinfo: new chapter on variable arg lists
20147         (stdarg.h/varargs.h)
20148         * libc/libc.texinfo: new title
20149         * libc/time/gmtime.c, libc/time/localtime./c, libc/time/mktime.c:
20150         (doc only) shorter headings for better formatting.
20151
20152 Fri Apr 24 11:26:48 1992  Roland H. Pesch  (pesch@fowanton.cygnus.com)
20153
20154         * libc/libc.texinfo: three more info menu entries
20155         * libc/locale/locale.tex: new chapter
20156         * libc/locale/locale.c: new doc for setlocale, localeconv
20157         * libc/locale/Makefile.in: use new locale doc
20158         * libc/signal/signal.tex: new chapter
20159         * libc/signal/raise.c, libc/signal/signal.c: new doc
20160         * libc/signal/Makefile.in: use new doc
20161         * libc/time/time.tex: new chapter
20162         * libc/time/asctime.c libc/time/clock.c libc/time/ctime.c
20163         libc/time/difftime.c libc/time/gmtime.c libc/time/localtime.c
20164         libc/time/mktime.c libc/time/strftime.c libc/time/time.c: new doc
20165         * libc/time/Makefile.in: use new doc
20166
20167 Tue Apr 21 14:48:50 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
20168
20169         * libm/math/log1p.c: split to use the new function way of float
20170         function definition. math/log1p.h deleted
20171         * libm/math/scalb.c: obsolete and deleted
20172         * libm/math/scalbn.c: created from part log1p.c
20173         * libm/math/Makefile.in: know about log1p and scalbn
20174
20175 Tue Apr 21 12:32:21 1992  Roland H. Pesch  (pesch@fowanton.cygnus.com)
20176
20177         * libc/ctype/isupper.c: revise doc;
20178           libc/ctype/ctype.tex: use doc from isupper.c
20179
20180         * libc/string/bzero.c: new doc
20181
20182 Mon Apr 20 14:19:42 1992  Roland H. Pesch  (pesch@fowanton.cygnus.com)
20183
20184         * libc/stdlib/system.c, libc/stdlib/exit.c, libc/stdlib/abort.c:
20185         new doc
20186         * libc/stdlib/Makefile.in: extract new doc
20187         * libc/stdlib/stdlib.tex: use new doc
20188
20189         * libc/string/strerror.c: expanded doc.
20190
20191         * libc/stdio/Makefile.in: extract doc from more files
20192         * libc/stdio/fopen.c, libc/stdio/perror.c, libc/stdio/remove.c,
20193         libc/stdio/rename.c, libc/stdio/rewind.c, libc/stdio/setbuf.c,
20194         libc/stdio/setvbuf.c, libc/stdio/sprintf.c, libc/stdio/tmpfile.c,
20195         libc/stdio/tmpnam.c, libc/stdio/vfprintf.c, libc/stdio/vprintf.c,
20196         libc/stdio/vsprintf.c: new doc
20197         * libc/stdio/stdio.tex: use new doc
20198
20199 Mon Apr 20 09:38:17 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
20200
20201         * libc/config/ebmon29k: added CROSS_CPP rule and other fixes
20202         * libc/include/ieeefp.h: fixed ansi conflict with isnanf, isinff,
20203         finitef functions.
20204         * libc/sys/a29khif/sys/*.h: ansidecl.h was renamed to _ansi.h some
20205         time ago.
20206
20207         * libc/stdio/stdio.h: added P_tmpdir for /tmp (SVID thing)
20208         * libc/stdio/setbuf.c: added ansi style definition.
20209         * libc/stdio/setvbuf.c: added ansi definition, now mallocs own
20210         buffer if none provided.
20211         * libc/stdio/tmpfile.c: lint
20212         * libc/stdio/tmpnam.c (worker): created. (tmpnam): mallocs buffer
20213         rather than using static, also make sure file isn't already
20214         present.  Uses P_tmpdir. (tempnam): rewritten to use new
20215         subroutine, and uses P_tmpdir.
20216         * libc/stdio/siprintf.c: created
20217
20218 Mon Apr 13 09:12:58 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
20219
20220         Release 1.03 for NEC, major mods. Main differences from release
20221         1.02::
20222
20223         More tests in test/:
20224         * jn_vec.c, jnf_vec.c, yn_vec.c, ynf_vec.c, log2_vec.c,
20225         log2f_vec.c, atan2_vec.c, atan2f_vec.c: new test vectors.
20226         * test_ieee.c: tests for ieee flags & masks - get/set rounding,
20227         get/set mask, get/set sticky and get/set roundtoi.  Tests
20228         that setting the bits changes the way arithmetic is done.
20229         * string.c: added test to make sure memcmp does it with unsigned
20230         chars.
20231         * test.c: cleaned up and removed lint.
20232         * sprint_vec, sprint_ivec.c, convert.c, conv_vec.c, iconf_vec.c,
20233         dvec.c: tests for string to value conversions,  sprintf, scanf,
20234         atof, atoff, strtod, strtodf, atoi, atol, strtol, ecvtbuf, ecvt,
20235         ecvtf,  fcvtbuf, fcvt, fcvtf, gcvt, gcvtf.  Some attention paid to
20236         rounding in sprintf too.
20237         * test_is.c: tests for  isalnum, isalpha, isascii, iscntrl,
20238         isdigit, isgraph, islower, isprint, ispunct, isspace, isupper,
20239         isxdigit, toascii, tolower, toupper, _tolower, _toupper in macro
20240         and function form.
20241         * math2.c: test for frexp, frexpf, ldexp, ldexpf, modf modff, pow,
20242         powf
20243
20244         In the library:
20245         * libc/stdlib/div.c, libc/stdlib/ldiv.c, libc/stdlib/strtod.c,
20246         libc/stdlib/strtol.c, libc/stdlib/stroul.c, libc/stdlib/abs.c,
20247         libc/stdlib/bsearch.c, libc/stdlib/calloc.c, libc/stdlib/getenv.c,
20248         libc/stdlib/labs.c, libc/stdlib/malloc.c: new documentation
20249         * libc/stdlib/efgcvt.c: rewritten to use new _dcvt routines rather
20250         than sprintf.
20251         * libc/stdio/dcvt.c: rewritten to make more useful elsewhere.
20252         * Method of producting float versions of double functions has
20253         changed, functions will be modified gradually. So far:
20254         libm/math/exp.c, libm/math/pow.c, libm/math/modf.c,
20255         libm/math/sincos.c, libm/math/fmod.c, libm/math/tan.c have been
20256         altered
20257         * libc/string/memcmp.c: now uses unsigned chars
20258         * libc/string/bcmp.c, libc/string/strcpy.c,
20259         libc/stsring/strxfrm.c: fixed doc
20260         * libc/sys/sysvnecv70.tex: fix example of sbrk code
20261 \f
20262 Local Variables:
20263 version-control: never
20264 End: