OSDN Git Service

2002-08-12 Jeff Johnston <jjohnstn@redhat.com>
[pf3gnuchains/pf3gnuchains4x.git] / newlib / ChangeLog
1 2002-08-12  Jeff Johnston  <jjohnstn@redhat.com>
2
3         * libc/sys/linux/machine/i386/crt0.c (__bss_start,_end):
4         Declare as extern chars and use the address operator to
5         properly use values set in linker script.
6
7 2002-08-09  Jason Tishler  <jason@tishler.net>
8
9         * libc/stdlib/mallocr.c: Include <limits.h>.
10         (request2size): Change macro to do
11         unsigned long comparisons and avoid signed overflow.
12         (mALLOc): Add overflow check for the number of bytes to allocate.
13         (rEALLOc): Ditto.
14
15 2002-08-09  Jeff Johnston  <jjohnstn@redhat.com>
16
17         * configure.host: Add check for --enable-newlib-io-pos-args
18         and define WANT_IO_POS_ARGS flag if enabled.  Define
19         the flag by default for x86-linux configurations.
20         * configure.in: Add support for --enable-newlib-io-pos-args.
21         * libc/configure.in: Ditto.
22         * configure: Regenerated.
23         * libc/configure: Ditto.
24         * libc/stdio/Makefile.am: Specify -fshort-enums for compiling
25         vfprintf.c and vfiprintf.c.
26         * libc/stdio/Makefile.in: Regenerated.
27         * libc/stdio/vfprintf.c: Add positional argument support that
28         is enabled by compiling with -DWANT_IO_POS_ARGS.
29
30 2002-08-07  Richard Sandiford  <rsandifo@redhat.com>
31
32         * libc/include/machine/setjmp.h: For mips, define _JBLEN based
33         based on __mips_soft_float rather than __mips64.
34         * libc/machine/mips/setjmp.S: Provide hard and soft float versions
35         of both 32-bit and 64-bit code.
36
37 2002-08-04  Christopher Faylor  <cgf@redhat.com>
38
39         * libc/stdio/popen.c (popen): Allow "rb", "rt", "wb", and "wt"
40         arguments for popen to match similar functionality in fopen.
41
42 2002-07-29  Pierre Humblet  <pierre.humblet@ieee.org>
43
44         * libc/include/sys/unistd.h: Add setgroups prototype for Cygwin.
45
46 2002-07-29  Jeff Johnston  <jjohnstn@redhat.com>
47
48         * libc/sys/linux/Makefile.am: Add aio64.c. 
49         * libc/sys/linux/Makefile.in: Regenerated.
50         * libc/sys/linux/aio.c (aio_init): ENOSYS stub added.
51         * libc/sys/linux/aio64.c: New file.
52
53 2002-07-26  Jeff Johnston  <jjohnstn@redhat.com>
54
55         *  libc/include/sys/param.h (MAX, MIN): Added macros.
56         *  libc/sys/linux/Makefile.am: Add new files.
57         *  libc/sys/linux/Makefile.in: Regenerated.
58         *  libc/sys/linux/sys/stat.h: Add *stat64 prototypes.
59         *  libc/sys/linux/inode.c (fchdir): Added syscall.
60         *  libc/sys/linux/ftw.c: New file.
61         *  libc/sys/linux/ftw64.c: Ditto.
62         *  libc/sys/linux/getwd.c: Ditto.
63         *  libc/sys/linux/scandir64.c: Ditto.
64         *  libc/sys/linux/strverscmp.c: Ditto.
65         *  libc/sys/linux/versionsort.c: Ditto.
66         *  libc/sys/linux/versionsort64.c: Ditto.
67
68 2002-07-26  Jeff Johnston  <jjohnstn@redhat.com>
69
70         * libc/string/strings.tex: Fix typo for memccpy.
71
72 2002-07-25  Jeff Johnston  <jjohnstn@redhat.com>
73
74         * libc/sys/linux/io64.c (truncate64, ftruncate64): Added.
75         * libc/sys/linux/sys/types.h (off64_t): Definition added.
76
77 2002-07-25  Jeff Johnston  <jjohnstn@redhat.com>
78
79         * libc/sys/linux/Makefile.am: Add fclean.c.
80         * libc/sys/linux/Makefile.in: Regenerated.
81         * libc/sys/linux/fclean.c: New file.
82
83 2002-07-25  Jeff Johnston  <jjohnstn@redhat.com>
84
85         * libc/sys/linux/Makefile.am: Add confstr.c.
86         * libc/sys/linux/Makefile.in: Regenerated.
87         * libc/sys/linux/confstr.c: New file.
88         * libc/sys/linux/confstr.h: Ditto.
89         * libc/sys/linux/sys/unistd.h: Include <features.h> and
90         <bits/environments.h>.
91
92 2002-07-25  Jeff Johnston  <jjohnstn@redhat.com>
93
94         * libc/sys/linux/config.h (__set_errno): Macro definition removed.
95         * libc/sys/linux/fpathconf.c (__set_errno): Ditto.
96         * libc/sys/linux/libc-internal.h (__set_errno): Ditto.
97         * libc/sys/linux/pathconf.c (__set_errno): Ditto.
98         * libc/sys/linux/ttyname_r.c (__set_errno): Ditto.
99         * libc/sys/linux/sys/errno.h (__set_errno): Macro definition added.
100
101 2002-07-24  Jeff Johnston  <jjohnstn@redhat.com>
102
103         * libc/sys/linux/Makefile.am: Add new files.
104         * libc/sys/linux/Makefile.in: Regenerated.
105         * libc/sys/linux/fstab.c: New file.
106         * libc/sys/linux/fstatvfs.c: Ditto.
107         * libc/sys/linux/fstatvfs64.c: Ditto.
108         * libc/sys/linux/internal_statvfs.c: Ditto.
109         * libc/sys/linux/mntent.c: Ditto.
110         * libc/sys/linux/mntent_r.c: Ditto.
111         * libc/sys/linux/statvfs.c: Ditto.
112         * libc/sys/linux/statvfs64.c: Ditto.
113         * libc/sys/linux/include/paths.h: Ditto.
114         * libc/sys/linux/inode.c (statfs, fstatfs): New syscalls
115         with double-underscore weak-aliases.
116         * libc/sys/linux/sys/stat.h: Add *stat64 prototypes.
117
118 2002-07-24  Jeff Johnston  <jjohnstn@redhat.com>
119
120         * libc/include/signal.h (SIG_IGN, SIG_DFL, SIG_ERR): Change
121         to use _sig_func_ptr type casted constants.
122         (_sig_func_ptr): Typedef moved to sys/signal.h.
123         * libc/include/sys/signal.h (_sig_func_ptr): Typedef added.
124         For __rtems, use POSIX definition, otherwise default to ANSI.
125         * libc/sys/linux/sys/signal.h (_sig_func_ptr): Typedef added.
126
127 2002-07-24  Stephane Carrez  <stcarrez@nerim.fr>
128
129         * configure.host: Recognize m6811-elf and m6812-elf targets.
130         * libc/include/machine/setjmp.h (_JBLEN): Define for 68hc11/68hc12.
131         * libc/include/machine/ieeefp.h (__IEEE_BIG_ENDIAN): Define for 68HC11.
132         (_DOUBLE_IS_32BITS): Define when compiling with -fshort-double.
133         * libc/include/sys/config.h (INT_MAX, UINT_MAX): Define
134         according to __INT_MAX__.
135         (_POINTER_INT): Define to short.
136         * libc/machine/m68hc11/Makefile.am: New file.
137         * libc/machine/m68hc11/Makefile.in: New file.
138         * libc/machine/m68hc11/configure.in: New file.
139         * libc/machine/m68hc11/configure: New file.
140         * libc/machine/m68hc11/aclocal.m4: New file.
141         * libc/machine/m68hc11/setjmp.S: New file.
142
143 2002-07-23  Jeff Johnston  <jjohnstn@redhat.com>
144
145         * libc/include/string.h: Add mempcpy, strndup, and _strndup_r
146         prototypes.
147         * libc/stdlib/Makefile.am: Remove strdup.c and strdup_r.c.
148         * libc/stdlib/Makefile.in: Regenerated.
149         * libc/stdlib/strdup.c: Removed.
150         * libc/stdlib/strdup_r.c: Removed.
151         * libc/string/Makefile.am: Add strdup.c, strdup_r.c, memccpy.c,
152         mempcpy.c, strndup.c, and strndup_r.c.
153         * libc/string/Makefile.in: Regenerated.
154         * libc/string/memccpy.c: New file.
155         * libc/string/mempcpy.c: Ditto.
156         * libc/string/strndup.c: Ditto.
157         * libc/string/strndup_r.c: Ditto.
158         * libc/string/strdup.c: New file moved from stdlib.
159         * libc/string/strdup_r.c: Ditto.
160         * libc/string/strings.tex: Add memccpy and mempcpy documentation.
161
162 2002-07-23  Jeff Johnston  <jjohnstn@redhat.com>
163
164         * libc/include/stdio.h: Move fcloseall prototype within
165         #ifndef _REENT_ONLY section.
166         * libc/sys/linux/Makefile.am: Add new files.
167         * libc/sys/linux/Makefile.in: Regenerated.
168         * libc/sys/linux/sys/stdio.h: Add ctermid prototype.
169         * libc/sys/linux/sys/unistd.h: Add ttyname_r prototype.
170         * libc/sys/linux/sys/types.h: Add ino64_t type.
171         * libc/sys/linux/ctermid.c: New file.
172         * libc/sys/linux/ttyname_r.c: Ditto.
173         * libc/sys/linux/readdir64.c: Ditto.
174
175 2002-07-22  Jeff Johnston  <jjohnstn@redhat.com>
176
177         * libc/include/stdio.h (fcloseall, _fcloseall_r): Added prototypes.
178         * libc/stdio/Makefile.am: Added fcloseall.c support.
179         * libc/stdio/Makefile.in: Regenerated.
180         * libc/stdio/fcloseall.c: New file.
181         * libc/stdio64/Makefile.am: Remove missing .def references.
182         * libc/stdio64/Makefile.in: Regenerated.
183
184 2002-07-22  Jeff Johnston  <jjohnstn@redhat.com>
185
186         * libc/machine/powerpc/time.c: Removed..renamed to times.c.
187         * libc/machine/powerpc/times.c: New file.
188         * libc/machine/powerpc/Makefile.am: Change time.c to times.c.
189         * libc/machine/powerpc/Makefile.in: Regenerated.
190
191 2002-07-22  Aldy Hernandez  <aldyh@redhat.com>
192
193         * libc/machine/powerpc/time.c: New file.
194         * libc/machine/powerpc/Makefile.am (lib_a_SOURCES): Add
195         time.c.
196         * libc/machine/powerpc/Makefile.in: Regenerated.
197
198 2002-07-22  Thomas Fitzsimmons  <fitzsim@redhat.com>
199
200         * libc/libc.texinfo: Change copyright notices to Red Hat from
201         Cygnus.
202         * libm/libm.texinfo: Likewise.
203         * README: Change docs URL to
204         http://sources.redhat.com/newlib/docs.html.
205
206 2002-07-19  Jeff Johnston  <jjohnstn@redhat.com>
207
208         * libc/sys/linux/Makefile.am: Add pathconf.c and fpathconf.c.
209         * libc/sys/linux/Makefile.in: Regenerated.
210         * libc/sys/linux/inode.c: Add chmod, fchmod, and chown syscalls.
211         * libc/sys/linux/io.c: Add ftruncate syscall.
212         * libc/sys/linux/fpathconf.c: New file.
213         * libc/sys/linux/pathconf.c: Ditto.
214         * libc/sys/linux/linux_fsinfo.h: Ditto.
215         * libc/sys/linux/sys/unistd.h: Ditto.
216
217 2002-07-19  Jeff Johnston  <jjohnstn@redhat.com>
218
219         * libc/stdio64/Makefile.am: Remove missing files.
220         * libc/stdio64/Makefile.in: Regenerated.
221
222 2002-07-19  Jeff Johnston  <jjohnstn@redhat.com>
223
224         * libc/include/sys/config.h[__i386__][__linux__]: Define
225         _LARGE64FILE_SOURCE to 1.
226         * libc/sys/linux/Makefile.am: Add getrlimit64.c and setrlimit64.c.
227         * libc/sys/linux/Makefile.in: Regenerated.
228         * libc/sys/linux/resource.c: Add __getrlimit and __setrlimit aliases.
229         * libc/sys/linux/sys/linux_time.h: Protect struct timeval definition.
230         * libc/sys/linux/sys/resource.h: Include <bits/resource.h> instead
231         of <linux/resource.h>.
232         * libc/sys/linux/getrlimit64.c: New file.
233         * libc/sys/linux/setrlimit64.c: Ditto.
234
235 2002-07-19  Thomas Fitzsimmons  <fitzsim@redhat.com>
236
237         * libc/argz/argz_replace.c: Include buf_findstr.h.
238         * libc/argz/buf_findstr.c: Likewise.
239         * libc/argz/envz_entry.c: Include buf_findstr.h.  Cast return
240         value to (char *).
241         * libc/argz/envz_get.c: Likewise.
242         * libc/include/sys/unistd.h: Add getopt and getsubopt declarations.
243         * libc/stdlib/Makefile.am (LIB_SOURCES): Add getsubopt.c.
244         * libc/stdlib/getsubopt.3: New file.
245         * libc/stdlib/getsubopt.c: New file.
246         * libc/sys/linux/machine/i386/socketcall.h (__sockcall_base):
247         Change esp to ebp.
248
249 2002-07-17  Jeff Johnston  <jjohnstn@redhat.com>
250
251         * configure.host(stdio64_dir): New setting that is used to
252         enable building of new stdio64 directory.
253         * libc/Makefile.am[HAVE_STDIO64_DIR]: Add support for
254         large files.
255         (stmp-stdio64,stdio64.texi): New targets to optionally add in
256         stdio64 info to info files.
257         * libc/Makefile.in: Regenerated.
258         * libc/configure: Ditto.
259         * libc/configure.in: Add configuration variables that are set
260         when stdio64 is selected as subdir in configure.host.
261         * libc/libc.texinfo: Add optional menu item for Stdio64, based
262         on whether STDIO64 flag is set or not.
263         * libc/sys.tex: Add optional stdio64 syscalls based on whether
264         STDIO64 flag is set or not.
265         * libc/include/reent.h[__LARGE64_FILES]: Add new stdio64
266         _r sycall routines.
267         * libc/include/stdio.h[__LARGE64_FILES]: Add new stdio64 prototypes.
268         (FILE): Typedef'd to __FILE instead of struct __sFILE directly.
269         (__SL64): New file flag indicating file is opened via fopen64.
270         * libc/include/sys/_types.h(_off64_t): Added.
271         * libc/include/sys/config.h: For x86-linux, define __LARGE64_FILES.
272         * libc/include/sys/reent.h(struct __sFILE64): New file structure
273         for 64-bit offset large file support.
274         (__FILE): New intermediate type either set to struct __sFILE64 or
275         struct __sFILE, depending on whether __LARGE64_FILES is set or not.
276         * libc/reent/Makefile.am[HAVE_STDIO64_DIR]: Add new files.
277         * libc/reent/Makefile.in: Regenerated.
278         * libc/reent/fstat64r.c: New file.
279         * libc/reent/lseek64r.c: Ditto.
280         * libc/reent/open64r.c: Ditto.
281         * libc/reent/reent.tex: Optionally add stdio64 reentrant syscalls
282         based on whether STDIO64 flag is set. 
283         * libc/stdio/stdio.tex: Add blank line.
284         * libc/stdio64/Makefile.am: New file.
285         * libc/stdio64/Makefile.in: Ditto.
286         * libc/stdio64/fgetpos64.c: Ditto.
287         * libc/stdio64/fopen64.: Ditto.
288         * libc/stdio64/freopen64.c: Ditto.
289         * libc/stdio64/fseeko64.c: Ditto.
290         * libc/stdio64/fsetpos64.c: Ditto.
291         * libc/stdio64/ftello64.c: Ditto.
292         * libc/stdio64/local64.h: Ditto.
293         * libc/stdio64/stdio64.c: Ditto.
294         * libc/stdio64/stdio64.tex: Ditto.
295         * libc/stdio64/tmpfile64.c: Ditto.
296         * libc/sys/linux/io64.c: Add weak aliases for lseek64, fstat64, and
297         open64.
298
299 2002-07-16  Jeff Johnston  <jjohnstn@redhat.com>
300
301         * libc/Makefile.am (stmp-extra): New target to set makeinfo flag
302         if LIBC_EXTRA_LIB is present.
303         * libc/Makefile.in: Regenerated.
304         * libc/libc.texinfo: Add blank line.
305         * libc/argz/Makefile.am: Add doc support.
306         * libc/search/Makefile.am: Ditto.
307         * libc/argz/Makefile.in: Regenerated.
308         * libc/search/Makefile.in: Ditto.
309         * libc/misc/misc.tex: Add ffs function.
310         * libc/stdio/ftell.c: Fix missing doc delimeter in description.
311
312 2002-07-15  Jeff Johnston  <jjohnstn@redhat.com>
313
314         * libc/include/sys/config.h[__H8300__]: Replace __SMALL_BITFIELDS
315         definition that was removed in error.
316
317 2002-07-15  Jeff Johnston  <jjohnstn@redhat.com>
318
319         * libc/include/machine/ieeefp.h: Change to only define
320         floating point defines (e.g one of __IEEE_BIG_ENDIAN or 
321         __IEEE_LITTLE_ENDIAN must be defined for each platform).
322         * libc/include/sys/config.h: Include <machine/ieeefp.h> and
323         remove redundant floating point definitions.
324
325 2002-07-15  Jeff Johnston  <jjohnstn@redhat.com>
326
327         * libc/sys/linux/callocr.c: Fix so code references
328         calloc.
329
330 2002-07-15  Jeff Johnston  <jjohnstn@redhat.com>
331
332         * libc/sys/linux/Makefile.am: Add new files.
333         * libc/sys/linux/Makefile.in: Regenerated.
334         * libc/sys/linux/bp-sym.h: Moved to include directory.
335         * libc/sys/linux/mmap.c: Add weak aliases: __mmap, __munmap, __mremap.
336         * libc/sys/linux/inode.c: Set _LIBC to 1.
337         * libc/sys/linux/mq_close.c: Ditto.
338         * libc/sys/linux/mq_getattr.c: Ditto.
339         * libc/sys/linux/mq_open.c: Ditto.
340         * libc/sys/linux/mq_receive.c: Ditto.
341         * libc/sys/linux/mq_send.c: Ditto.
342         * libc/sys/linux/mq_setattr.c: Ditto.
343         * libc/sys/linux/mq_unlink.c: Ditto.
344         * libc/sys/linux/calloc.c: New file.
345         * libc/sys/linux/callocr.c: Ditto.
346         * libc/sys/linux/cfreer.c: Ditto.
347         * libc/sys/linux/config.h: Ditto.
348         * libc/sys/linux/free.c: Ditto.
349         * libc/sys/linux/freer.c: Ditto.
350         * libc/sys/linux/msize.c: Ditto.
351         * libc/sys/linux/msizer.c: Ditto.
352         * libc/sys/linux/mstats.c: Ditto.
353         * libc/sys/linux/mtrim.c: Ditto.
354         * libc/sys/linux/mtrimr.c: Ditto.
355         * libc/sys/linux/pvallocr.c: Ditto.
356         * libc/sys/linux/realloc.c: Ditto.
357         * libc/sys/linux/reallocr.c: Ditto.
358         * libc/sys/linux/thread-m.h: Ditto.
359         * libc/sys/linux/vallocr.c: Ditto.
360         * libc/sys/linux/bp-checks.h: Ditto.
361         * libc/sys/linux/libc-symbols.h: Ditto.
362         * libc/sys/linux/libc-tsd.h: Ditto.
363         * libc/sys/linux/libintl.h: Ditto.
364         * libc/sys/linux/malign.c: Ditto.
365         * libc/sys/linux/malignr.c: Ditto.
366         * libc/sys/linux/mallinfor.c: Ditto.
367         * libc/sys/linux/malloc.c: Ditto.
368         * libc/sys/linux/mallocr.c: Ditto.
369         * libc/sys/linux/malloptr.c: Ditto.
370         * libc/sys/linux/mallstatsr.c: Ditto.
371         * libc/sys/linux/mcheck.c: Ditto.
372         * libc/sys/linux/mhooks.h: Ditto.
373         * libc/sys/linux/include/bp-sym.h: Ditto.
374         * libc/sys/linux/include/malloc.h: Ditto.
375         * libc/sys/linux/include/mcheck.h: Ditto.
376         * libc/sys/linux/linuxthreads/machine/i386/Makefile.am: Remove
377         getpagesize.c.
378         * libc/sys/linux/linuxthreads/machine/i386/Makefile.in: Regenerated.
379         * libc/sys/linux/linuxthreads/machine/i386/getpagesize.c: Moved.
380         * libc/sys/linux/machine/i386/getpagesize.c: New file.
381         * libc/sys/linux/machine/i386/Makefile.am: Add getpagesize.c.
382         * libc/sys/linux/machine/i386/Makefile.in: Regenerated.
383         * libc/sys/linux/machine/i386/sysdep.h: New file.
384         * libc/sys/linux/machine/i386/weakalias.h: Add weak_function support.
385         * libc/sys/linux/sys/dirent.h: Set _LIBC to 1.
386         * libc/sys/linux/sys/lock.h: Include <machine/weakalias.h>.
387
388 2002-07-12  Jeff Johnston  <jjohnstn@redhat.com>
389
390         * libc/sys/linux/include/mqueue.h: Change to use <bits/siginfo.h>
391         instead of <asm/siginfo.h>.
392         * libc/sys/linux/sys/signal.h: Change to include various linux
393         <bits/xxx.h> header files, rather than <linux/signal.h> so as
394         to work with multiple releases of glibc header files.
395
396 2002-07-11  Chris Demetriou  <cgd@broadcom.com>
397
398         * testsuite/newlib.search/hsearchtest.c: New file to test
399         newlib/libc/search.
400         * testsuite/newlib.search/hsearchtest.exp: Likewise.
401
402 2002-07-10  Florian Schrack  <florian.schrack@freenet.de>
403
404         * libc/sys/mmixware/read.c: Use SYS_Fgets syscall if dealing with
405         a terminal.
406         * libc/sys/mmixware/sys/syscall.h (SYS_Fgets): Definition added.
407
408 2002-07-08  Jeff Johnston  <jjohnstn@redhat.com>
409
410         * libc/include/math.h (MAXFLOAT): Added.
411
412 Mon Jul  8 13:55:23 2002  J"orn Rennecke <joern.rennecke@superh.com>
413
414         * libc/machine/sh/Makefile.am (lib_a_SOURCES):
415         Make strcmp.S unconditional.
416         * libc/machine/sh/Makefile.in: Regenerate.
417         * libc/machine/sh/asm.h (DELAYED_BRANCHES, SL): Also for __SH5__ .
418         * strcmp.S (strcmp): Add SHmedia variant.  Use different registers
419         for SHcompact.
420
421 2002-07-04  Jeff Johnston  <jjohnstn@redhat.com>
422
423         * libc/sys/linux/inode.c: Fix utime prototype and add _LIBC
424         define before including <sys/lock.h>.
425
426 2002-07-04  Jeff Johnston  <jjohnstn@redhat.com>
427
428         * libc/include/utime.h: Add include of <_ansi.h>.
429         * libc/sys/linux/Makefile.am: Add utimes.c.
430         * libc/sys/linux/Makefile.in: Regenerated.
431         * libc/sys/linux/inode.c(__umask): New static routine.
432         (umask): Written to use __umask and attempt to thread lock.
433         (getumask): New function written to use __umask and thread lock.
434         * libc/sys/linux/utimes.c: New file.
435         * libc/sys/linux/sys/time.h: Fix utimes prototype.
436         * libc/sys/linux/sys/utime.h: New file.
437
438 2002-07-04  Thomas Fitzsimmons  <fitzsim@redhat.com>
439
440         * libtool.m4: New file.
441         * libc/sys/linux/process.c: Implement vfork in terms of fork,
442         rather than as a syscall.
443
444 2002-07-04  Jeff Johnston  <jjohnstn@redhat.com>
445
446         * libc/include/stdio.h: Add new prototypes.
447         * libc/stdio/Makefile.am: Add fseeko.c and ftello.c.
448         * libc/stdio/Makefile.in: Regenerated.
449         * libc/stdio/fseek.c: Add fseeko documentation.
450         * libc/stdio/ftell.c: Add ftello documentation.
451         * libc/stdio/fseeko.c: New file.
452         * libc/stdio/ftello.c: New file.
453
454 2002-07-04  Jeff Johnston  <jjohnstn@redhat.com>
455
456         * libc/stdio/Makefile.am: Add asprintf.c and vasprintf.c.
457         * libc/stdio/Makefile.in: Regenerated.
458         * libc/stdio/asprintf.c: New file.
459         * libc/stdio/vasprintf.c: Ditto.
460         * libc/stdio/fvwrite.c: Add code to dynamically reallocate
461         the buffer for asprintf support.
462         * libc/stdio/sprintf.c: Add asprintf documentation.
463         * libc/stdio/vfprintf.c: Add vasprintf documentation.
464         * libc/include/stdio.h: Add new prototypes.
465
466 2002-07-02  Thomas Fitzsimmons  <fitzsim@redhat.com>
467
468         * libc/search/hcreate.c: Remove advertising clause from license.
469         * libc/search/hcreate_r.c: Likewise.
470
471 2002-07-02  Chris Demetriou  <cgd@broadcom.com>
472
473         * libc/include/sys/config.h (__IEEE_LITTLE_ENDIAN)
474         (__IEEE_BIG_ENDIAN): Define appropriately for MIPS.
475         Check that one of them is defined and error out if not.
476         Add any platforms defined in <machine/ieeefp.h> that are missing.
477         * libc/search/hash.h (DB_BYTE_ORDER, DB_BIG_ENDIAN)
478         (DB_LITTLE_ENDIAN): New defines.
479         * libc/search/hash.c: Replace all incorrect checks for
480         _IEEE_LITTLE_ENDIAN with tests of BYTE_ORDER, and all uses of
481         BYTE_ORDER, LITTLE_ENDIAN, and BIG_ENDIAN with DB_* versions.
482         * libc/search/hash_page.c: Likewise.
483
484 2002-06-28  Thomas Fitzsimmons  <fitzsim@redhat.com>
485
486         * libm/mathfp/sf_pow.c (powf): Change k from int to float.
487
488 2002-06-27  Benjamin Kosnik  <bkoz@redhat.com>
489
490         * libc/include/stdio.h: Untangle, add _BEGIN_STD_C and _END_STD_C.
491         * libc/include/time.h: Same.
492         * libc/include/string.h: Same.
493         * libc/include/stdlib.h: Same.
494         * libc/include/signal.h: Same.
495         * libc/include/setjmp.h: Same.
496         * libc/include/math.h: Same.
497         * libc/include/locale.h: Same.
498         * libc/include/ctype.h: Same.
499         * libc/include/machine/setjmp.h: Same.
500         * libc/include/_ansi.h (_BEGIN_STD_C): Add.
501         (_END_STD_C): Add.
502
503 2002-06-27  Jeff Johnston  <jjohnstn@redhat.com>
504
505         * libc/include/sys/_types.h: Define _ssize_t as int if int is
506         32-bits, otherwise define it as long.
507         * libc/include/sys/types.h: Include <_ansi.h> and <sys/_types.h>
508         and define ssize_t as _ssize_t.
509         * libc/reent/readr.c: Change return type to _ssize_t.
510         * libc/reent/writer.c: Ditto.
511         * libc/sys/linux/Makefile.am: Add aio.c.
512         * libc/sys/linux/Makefile.in: Regenerated.
513         * libc/sys/linux/aio.c: New file.
514         * libc/sys/linux/sys/cdefs.h: Add __restrict_arr definition.
515         * libm/common/fdlibm.h: Undef __P before defining it.
516
517 2002-06-27  Thomas Fitzsimmons  <fitzsim@redhat.com>
518
519         * libm/mathfp/s_pow.c (pow): Fix checks on variable k.  Add
520         exponent_is_even_int variable.  Handle case where x is
521         negative, and y is an odd integer.
522         * libm/mathfp/sf_pow.c (powf): Likewise.
523
524         * libm/mathfp/er_lgamma.c: Remove __kernel references.
525         * libm/mathfp/erf_lgamma.c: Likewise.
526         * libm/mathfp/s_tgamma.c: Likewise.
527         * libm/mathfp/sf_tgamma.c: Likewise.
528
529 2002-06-27  Jeff Johnston  <jjohnstn@redhat.com>
530
531         * libc/sys/linux/Makefile.am: Add new clock routines.
532         * libc/sys/linux/Makefile.in: Regenerated.
533         * libc/sys/linux/clock_getres.c: New file.
534         * libc/sys/linux/clock_gettime.c: Ditto.
535         * libc/sys/linux/clock_settime.c: Ditto.
536         * libc/sys/linux/hp-timing.h: Ditto.
537         * libc/sys/linux/libc-internal.h: Ditto.
538         * libc/sys/linux/sysconf.c: Fix typo.
539         * libc/sys/linux/include/time.h: Add include of <sys/linux_time.h>.
540         * libc/sys/linux/machine/hp-timing.h: New file.
541         * libc/sys/linux/machine/i386/Makefile.am: Add new files.
542         * libc/sys/linux/machine/i386/Makefile.in: Regenerated.
543         * libc/sys/linux/machine/i386/get_clockfreq.c: New file.
544         * libc/sys/linux/machine/i386/hp-timing.c: Ditto.
545         * libc/sys/linux/machine/i386/hp-timing.h: Ditto.
546         * libc/sys/linux/sys/linux_time.h: New file.
547         * libc/sys/linux/sys/time.h: Remove include of <linux/time.h> and
548         replace with <sys/linux_time.h>.
549
550 Wed Jun 26 16:33:25 2002  J"orn Rennecke <joern.rennecke@superh.com>
551
552         * libc/sys/sh/crt0.S: Remove vestigial .section directive.
553
554 2002-06-25  Jeff Johnston  <jjohnstn@redhat.com>
555
556         * libc/sys/linux/Makefile.am: Consolidate additional items under
557         ADD_OBJS.
558         * libc/sys/linux/Makefile.in: Regenerated.
559
560 2002-06-25  Jeff Johnston  <jjohnstn@redhat.com>
561
562         * libc/sys/linux/sethostname.c: New file.
563         * libc/sys/linux/Makefile.am: Add sethostname.c support.
564         * libc/sys/linux/Makefile.in: Regenerated.
565
566 2002-06-24  Thomas Fitzsimmons  <fitzsim@redhat.com>
567
568         * libc/search/db_local.h: New file.
569         * libc/include/db.h: Remove.
570         * libc/search/Makefile.am (LIB_SOURCES): Add db_local.h.
571         * libc/search/hash.c (MIN,MAX): Add macros.  Change <db.h> to
572         "db_local.h".
573         * libc/search/hash_bigkey.c: Likewise.
574         * libc/search/hash_buf.c: Likewise.
575         * libc/search/hash_func.c: Likewise.
576         * libc/search/hash_log2.c: Likewise.
577         * libc/search/hash_page.c: Likewise.
578
579 2002-06-24  J"orn Rennecke <joern.rennecke@superh.com>
580
581         * libc/machine/sh/strlen.S: New file.
582         * libc/machine/sh/Makefile.am (lib_a_SOURCES): Add rule for it.
583         * libc/machine/sh/Makefile.am: Regenerate.
584
585 2002-06-24  Jeff Johnston  <jjohnstn@redhat.com>
586
587         * libc/sys/linux/gethostname.c: Change name to __gethostname and
588         add gethostname alias.
589
590 2002-06-24  Jeff Johnston  <jjohnstn@redhat.com>
591
592         * libc/include/math.h: Remove <sys/types.h>.
593         (__dmath): Use __ULong instead of __uint32_t.
594         * libc/include/sys/reent.h: If long or int is not 32-bits,
595         include <sys/types.h> to get definitions for __int32_t and __uint32_t.
596         * libc/stdlib/mprec.h: Include <sys/types.h> to get integer defs.
597         * libm/common/fdlibm.h: Ditto.
598
599 2002-06-24  Thomas Fitzsimmons  <fitzsim@redhat.com>
600
601         * libc/include/ndbm.h: Remove.
602         * libc/search/ndbm.c: Remove.
603
604 2002-06-24  WATANABE Hirofumi <eban@os.rim.or.jp>
605
606         * libc/stdio/fseek.c (fseek): Fix braces.
607
608 2002-06-21  Corinna Vinschen  <corinna@vinschen.de>
609
610         * libc/time/strftime.c (strftime): Add %e format specifier.
611
612 2002-06-21  Thomas Fitzsimmons  <fitzsim@redhat.com>
613
614         * libc/search/hash.h (LITTLE_ENDIAN, BIG_ENDIAN): Define if not
615         previously defined.
616
617 2002-06-21  Richard Earnshaw  (rearnsha@arm.com)
618
619         * libc/sys/arm/sys/param.h (BIG_ENDIAN, LITTLE_ENDIAN): Define.
620         (BYTE_ORDER): Define as appropriate for the target.
621
622 2002-06-21  Jeff Johnston  <jjohnstn@redhat.com>
623
624         * libc/include/sys/config.h[__linux__]: Set _READ_WRITE_RETURN_TYPE
625         to _ssize_t.
626         * libc/sys/linux/io.c (read, write): Change to return ssize_t.
627
628 2002-06-21  Jeff Johnston  <jjohnstn@redhat.com>
629
630         * libc/include/stdio.h (__getline, __getdelim): New prototypes.
631         * libc/include/time.h [HAVE_GETDATE](getdate, getdate_r): Ditto.
632         [HAVE_GETDATE](getdate_err): New error code.
633         * libc/stdio/Makefile.am: Add support for getline.c and getdelim.c.
634         * libc/stdio/Makefile.in: Regenerated.
635         * libc/stdio/getdelim.c: New file.
636         * libc/stdio/getline.c: Ditto.
637         * libc/sys/linux/Makefile.am: Add support for getdate.c, getdate_err.c
638         and ntp_gettime.c.  Also add AM_CFLAGS to point to libc/stdio.
639         * libc/sys/linux/Makefile.in: Regenerated.
640         * libc/sys/linux/getdate.c: New file.
641         * libc/sys/linux/getdate_err.c: Ditto.
642         * libc/sys/linux/ntp_gettime.c: Ditto.
643         * libc/sys/linux/time.c (adjtimex, ntp_adjtime): New functions.
644         * libc/sys/linux/sys/stdio.h (getline, getdelim): New macros.
645
646 2002-06-21  Jeff Johnston  <jjohnstn@redhat.com>
647
648         * libc/include/math.h: Add <sys/types.h> to get _uint32_t definition.
649         * libc/include/machine/types.h: Skip __off_t, __pid_t, and
650         __loff_t definitions if special _HAVE_SYSTYPES macro defined.
651         * libc/include/sys/config.h: Removed _uint*, _int* definitions.
652         * libc/include/sys/param.h: Remove i386 case which is handled
653         by default case.
654         (BIG_ENDIAN, LITTLE_ENDIAN): Protect
655         definitions in case they are already defined.
656         (BYTE_ORDER): Add default case using _IEEE_BIG_ENDIAN and
657         _IEEE_LITTLE_ENDIAN flags.
658         * libc/include/sys/reent.h: Change __uint32_t references to
659         use _ULong instead.
660         (_REENT_GETDATE_REENT_P): New macro.
661         * libc/include/sys/types.h (__int16_t, __uint16_t): Added.
662         (__int32_t, __uint32_t, __int64_t, __uint64_t): Ditto.
663         * libc/search/hash.h: Add default setting of BYTE_ORDER,
664         LITTLE_ENDIAN, and BIG_ENDIAN, if not already defined.
665         * libc/sys/linux/sys/types.h: Include <sys/_types.h>.  Define
666         ssize_t based on _ssize_t.  Remove __socklen_t, __uintptr_t,
667         pid_t, off_t, loff_t, caddr_t, and daddr_t type
668         definitions which are done by subsequent glibc headers.
669         Add macro definitions to prevent subsequent header files from
670         defining pid_t, off_t, ssize_t, and key_t.  Move uintptr_t and
671         intptr_t to after glibc definitions of types they are based on.
672
673 2002-06-21  Jeff Johnston  <jjohnstn@redhat.com>
674
675         * libc/include/errno.h: Protect from multiple inclusion.
676
677 2002-06-21  Nick Clifton  <nickc@cambridge.redhat.com>
678
679         * libc/sys/arm/swi.h (ADP_Stopped_RunTimeError): Set correct value.
680
681 2002-06-20  Thomas Fitzsimmons  <fitzsim@redhat.com>
682
683         * Makefile.am (LIB_OBJECTLISTS): Add
684         libc/search/objectlist.awk.in.
685         * libc/Makefile.am (SUBDIRS): Add search.
686         (SUBLIBS): Add search/libsearch.la.
687         * libc/configure.in (AC_OUTPUT): Add search/Makefile.
688         * libc/search: New directory.
689         * libc/search/Makefile.am: New file.
690         * libc/search/extern.h: New file.
691         * libc/search/hash.c: New file.
692         * libc/search/hash.h: New file.
693         * libc/search/hash_bigkey.c: New file.
694         * libc/search/hash_buf.c: New file.
695         * libc/search/hash_func.c: New file.
696         * libc/search/hash_log2.c: New file.
697         * libc/search/hash_page.c: New file.
698         * libc/search/hcreate.3: New file.
699         * libc/search/hcreate.c: New file.
700         * libc/search/hcreate_r.c: New file.
701         * libc/search/ndbm.c: New file.
702         * libc/search/page.h: New file.
703         * libc/search/tdelete.c: New file.
704         * libc/search/tdestroy.c: New file.
705         * libc/search/tfind.c: New file.
706         * libc/search/tsearch.3: New file.
707         * libc/search/tsearch.c: New file.
708         * libc/search/twalk.c: New file.
709         * libc/include/db.h: New file.
710         * libc/include/ndbm.h: New file.
711         * libc/include/search.h: New file.
712         * libc/include/sys/queue.h: New file.
713         * libc/include/sys/cdefs.h: New file.
714         * libc/include/sys/param.h
715         [__IEEE_LITTLE_ENDIAN,__IEEE_BIG_ENDIAN]: Set BYTE_ORDER to
716         LITTLE_ENDIAN or BIG_ENDIAN.
717         * libc/include/sys/errno.h (EFTYPE): New macro.
718         * libc/search/bsearch.c: Move from libc/stdlib.
719         * libc/search/qsort.c: Likewise.
720         * libc/stdlib/Makefile.am (LIB_SOURCES): Remove bsearch.c and
721         qsort.c.
722         (CHEWOUT_FILES): Remove bsearch.def and qsort.def.
723         * libc/stdlib/stdlib.tex: Remove references to bsearch and qsort.
724
725 2002-06-19  Jeff Johnston  <jjohnstn@redhat.com>
726
727         * libc/sys/linux/Makefile.am: Add support for message queue routines,
728         ipc routines, and ftok.
729         * libc/sys/linux/Makefile.in: Regenerated.
730         * libc/sys/linux/ftok.c: New file.
731         * libc/sys/linux/ipc.c: Ditto.
732         * libc/sys/linux/mq_close.c: Ditto.
733         * libc/sys/linux/mq_getattr.c: Ditto.
734         * libc/sys/linux/mq_notify.c: Ditto.
735         * libc/sys/linux/mq_open.c: Ditto.
736         * libc/sys/linux/mq_receive.c: Ditto.
737         * libc/sys/linux/mq_send.c: Ditto.
738         * libc/sys/linux/mq_setattr.c: Ditto.
739         * libc/sys/linux/mq_unlink.c: Ditto.
740         * libc/sys/linux/mqlocal.h: Ditto.
741         * libc/sys/linux/include/mqueue.h: Ditto.
742         * libc/sys/linux/sys/types.h: Define __gid_t_defined and
743         __uid_t_defined.
744
745 2002-06-19  J"orn Rennecke <joern.rennecke@superh.com>
746
747         * libm/common/sf_lround.c (round): Change name to: (lround).
748         * libm/common/sf_remquo.c (remquo): Pass all arguemnts to
749         remquof.
750
751 2002-06-18  Thomas Fitzsimmons  <fitzsim@redhat.com>
752
753         * testsuite/lib/passfail.exp (newlib_pass_fail_all): New
754         procedure.
755         (newlib_pass_fail): Change to compile and run only one file.
756         * testsuite/newlib.locale/locale.exp: Use new
757         newlib_pass_fail_all procedure.
758         * testsuite/newlib.string/string.exp: Likewise.
759
760 2002-06-18  Dave Brolley  <brolley@redhat.com>
761
762         From Catherine Moore, Michael Meissner, Richard Sandiford:
763         * libc/include/machine/setjmp.h (_JBLEN): Define for __frv__.
764         (_JBTYPE): Ditto.
765         * libc/include/sys/config.h (__IEEE_BIG_ENDIAN): Ditto.
766         (__ATTRIBUTE_IMPURE_PTR__): Ditto.
767         * libc/include/machine/ieeefp.h (__IEEE_BIG_ENDIAN): Ditto.
768         * configure.host: Support frv-*-*.
769         * libc/machine/frv/Makefile.am: New file.
770         * libc/machine/frv/configure.in: New file.
771         * libc/machine/frv/setjmp.S: New file.
772
773 2002-06-18  Thomas Fitzsimmons  <fitzsim@redhat.com>
774
775         * libc/include/ctype.h: Remove isblank macro.
776
777         * libc/ctype/Makefile.am (LIB_SOURCES): Add isblank.c.
778         * libc/ctype/isblank.c: New file.
779         * libc/include/ctype.h [!__STRICT_ANSI__]: Add isblank
780         declaration.  Add isblank macro.
781
782 2002-06-18  Jeff Johnston  <jjohnstn@redhat.com>
783
784         * testsuite/newlib.stdlib/atexit.c: New file.
785         * testsuite/newlib.stdlib/atexit.exp: Ditto.
786         * testsuite/newlib.string/tstring.c: Change default start size
787         to something more reasonable for embedded platforms.
788
789 2002-06-14  Thomas Fitzsimmons  <fitzsim@redhat.com>
790
791         * libc/sys/linux/sys/errno.h (EFTYPE): Add macro.
792
793         * libc/argz: New directory.
794         * libc/argz/*: New files.
795         * libc/argz/argz_add.c: New file.
796         * libc/argz/argz_add_sep.c: New file.
797         * libc/argz/argz_append.c: New file.
798         * libc/argz/argz_count.c: New file.
799         * libc/argz/argz_create.c: New file.
800         * libc/argz/argz_create_sep.c: New file.
801         * libc/argz/argz_delete.c: New file.
802         * libc/argz/argz_extract.c: New file.
803         * libc/argz/argz_insert.c: New file.
804         * libc/argz/argz_next.c: New file.
805         * libc/argz/argz_replace.c: New file.
806         * libc/argz/argz_stringify.c: New file.
807         * libc/argz/buf_findstr.c: New file.
808         * libc/argz/envz_add.c: New file.
809         * libc/argz/envz_entry.c: New file.
810         * libc/argz/envz_get.c: New file.
811         * libc/argz/envz_merge.c: New file.
812         * libc/argz/envz_remove.c: New file.
813         * libc/argz/envz_strip.c: New file.
814         * libc/include/argz.h: New file.
815         * libc/include/envz.h: New file.
816         * Makefile.am (LIBC_OBJECTLISTS): Add
817         libc/argz/objectlist.awk.in.
818         * libc/Makefile.am (SUBDIRS): Add argz.
819         (SUBLIBS): Add argz/libargz.la.
820         * libc/configure.in (AC_OUTPUT): Add argz/Makefile.
821         * libc/include/errno.h: Add error_t typedef.
822
823 2002-06-13  Jeff Johnston  <jjohnstn@redhat.com>
824
825         * libc/include/stdlib.h: Add _Exit prototype.
826         * libc/stdlib/Makefile.am: Add _Exit.c support.
827         * libc/stdlib/Makefile.in: Ditto.
828         * libc/stdlib/_Exit.c: New file.
829
830 2002-06-13  Stephen L. Moshier  <steve@moshier.net>
831
832         * libm/math/e_pow.c (__ieee754_pow): Fix case whereby
833         x is close to -1.0 and y is very large to use ax (absolute value)
834         instead of x.
835         * libm/math/ef_pow.c (__ieee754_powf): Ditto.
836
837 Thu Jun 13 19:23:40 2002  J"orn Rennecke <joern.rennecke@superh.com>
838
839         * libc/machine/sh/strcpy.S (strcpy, __SHMEDIA__ code):
840         Fix clobbering bytes before destination if src and dst have same
841         non-zero misalignment.
842
843         * libc/machine/sh/memset.S (memset, __SHMEDIA__ code):
844         Fixed bug in writing end of set region.
845
846 2002-06-10  Christopher Faylor  <cgf@redhat.com>
847
848         * libc/include/process.h: Remove cygwin-only sexec* declarations.  Fix
849         spawnve declaration.
850
851 2002-06-06  Thomas Fitzsimmons  <fitzsim@redhat.com>
852
853         * libm/common/s_fdim.c: New file.
854         * libm/common/s_fma.c: Likewise.
855         * libm/common/s_fmax.c: Likewise.
856         * libm/common/s_fmin.c: Likewise.
857         * libm/common/s_fpclassify.c: Likewise.
858         * libm/common/s_lrint.c: Likewise.
859         * libm/common/s_lround.c: Likewise.
860         * libm/common/s_nearbyint.c: Likewise.
861         * libm/common/s_remquo.c: Likewise.
862         * libm/common/s_round.c: Likewise.
863         * libm/common/s_scalbln.c: Likewise.
864         * libm/common/s_signbit.c: Likewise.
865         * libm/common/s_trunc.c: Likewise.
866         * libm/common/sf_fdim.c: Likewise.
867         * libm/common/sf_fma.c: Likewise.
868         * libm/common/sf_fmax.c: Likewise.
869         * libm/common/sf_fmin.c: Likewise.
870         * libm/common/sf_lrint.c: Likewise.
871         * libm/common/sf_lround.c: Likewise.
872         * libm/common/sf_nearbyint.c: Likewise.
873         * libm/common/sf_remquo.c: Likewise.
874         * libm/common/sf_round.c: Likewise.
875         * libm/common/sf_scalbln.c: Likewise.
876         * libm/common/sf_trunc.c: Likewise.
877         * libm/math/w_exp2.c: Likewise.
878         * libm/math/w_tgamma.c: Likewise.
879         * libm/math/wf_exp2.c: Likewise.
880         * libm/math/wf_tgamma.c: Likewise.
881         * libm/mathfp/s_exp2.c: Likewise.
882         * libm/mathfp/s_tgamma.c: Likewise.
883         * libm/mathfp/sf_exp2.c: Likewise.
884         * libm/mathfp/sf_tgamma.c: Likewise.
885         * libm/math/er_gamma.c: Fix return value.
886         * libm/math/erf_gamma.c: Likewise.
887         * libm/mathfp/er_gamma.c: Likewise.
888         * libm/mathfp/erf_gamma.c: Likewise.
889         * libc/include/math.h (!__STRICT_ANSI__): Include ISOC99-specific
890         declarations and macros.
891         Regenerated all Makefile.in, aclocal.m4 and configure files to
892         use new libtool macros in top-level libtool.m4
893
894 2002-06-05  Jeff Johnston  <jjohnstn@redhat.com>
895
896         * libc/include/string.h[__linux__]: Add strsignal prototype.
897         * libc/include/sys/lock.h: New file with default locking support.
898         * libc/include/sys/reent.h: Add signal buffer support for strsignal
899         and psignal.
900         * libc/posix/Makefile.am: Add support for readdir_r.c.
901         * libc/posix/Makefile.in: Regenerated.
902         * libc/posix/closedir.c: Add locking support and hash table cleanup.
903         * libc/posix/opendir.c: Add lock support.
904         * libc/posix/readdir.c: Ditto.
905         * libc/posix/rewinddir.c: Ditto.
906         * libc/posix/scandir.c: Ditto.
907         * libc/posix/seekdir.c: Ditto.
908         * libc/posix/telldir.c: Ditto plus add _cleanupdir routine to
909         clean up leftover hash table entries.
910         * libc/posix/readdir_r.c: New file.
911         * libc/sys/linux/Makefile.am: Add psignal.c and strsignal.c support.
912         * libc/sys/linux/Makefile.in: Regenerated.
913         * libc/sys/linux/sys/dirent.h: Add dd_lock to DIR structure.
914         * libc/sys/linux/sys/signal.h: Add psignal prototype.
915         * libc/sys/linux/psignal.c: New file.
916         * libc/sys/linux/strsignal.c: Ditto.
917
918 2002-06-03  Corinna Vinschen  <corinna@vinschen.de>
919
920         * libc/include/sys/types.h: Don't define dev_t when compiling for
921         Cygwin.
922
923 2002-05-31  Jeff Johnston  <jjohnstn@redhat.com>
924
925         * libc/sys/linux/Makefile.am: Add sig.c and sigaction.c.  Also
926         make siglist.inc dependent on sig.c instead of signal.c.
927         * libc/sys/linux/Makefile.in: Regenerated.
928         * libc/sys/linux/sig.c: Rename from signal.c and change code to
929         use NSIG instead of _NSIG. 
930         * libc/sys/linux/sigaction.c: New file.
931         * libc/sys/linux/signal.c: Changed to be linux signal() function
932         so as to override regular newlib default signal.c.
933         * libc/sys/linux/machine/i386/Makefile.am: Remove sigset.c.
934         * libc/sys/linux/machine/i386/Makefile.in: Regenerated.
935         * libc/sys/linux/machine/i386/sigset.c: Moved to linux main directory.
936         * libc/sys/linux/sigset.c: Moved from machine/i386 directory.
937         * libc/sys/linux/sys/signal.h: Redefine NSIG to _NSIG and override
938         default linux sigset_t typedef by defining it equal to __sigset_t.
939         * libc/unix/sigset.c: Add check so code isn't compiled on systems
940         with a sigset_t that isn't implemented with a single int.
941
942 2002-05-30  Jeff Johnston  <jjohnstn@redhat.com>
943
944         * libc/sys/linux/Makefile.am: Add support for new files.
945         * libc/sys/linux/Makefile.in: Regenerated.
946         * libc/sys/linux/ids.c: Add __getuid weak alias for getuid.
947         * libc/sys/linux/signal.c: Change to use real-time syscalls for
948         sigsuspend, sigprocmask, and sigpending.  Also remove sigaction as
949         it is in a separate file now.
950         * libc/sys/linux/machine/i386/Makefile.am
951         * libc/sys/linux/machine/i386/Makefile.in
952         * libc/sys/linux/sys/signal.h: Add include of <bits/signum.h>.
953         * libc/sys/linux/sigaction.c: New file.
954         * libc/sys/linux/sigqueue.c: Ditto.
955         * libc/sys/linux/sigwait.c: Ditto.
956         * libc/sys/linux/machine/i386/sigaction.c: Ditto.
957         * libc/sys/linux/kernel_sigaction.h: Ditto.
958
959 2002-05-28  Jeff Johnston  <jjohnstn@redhat.com>
960
961         * libc/sys/linux/Makefile.am: Add support for cfspeed.c and
962         tcsendbrk.c.
963         * libc/sys/linux/Makefile.in: Regenerated.
964         * libc/sys/linux/termios.c: Add tcflow(), tcflush(),
965         tcgetpgrp(), and tcsetpgrp() functions.
966         * libc/sys/linux/sys/termios.h: Add include of machine/termios.h
967         to get __MAX_BAUD rate.
968         * libc/sys/linux/machine/i386/include/termios.h: New file.
969         * libc/include/machine/termios.h: Ditto.
970         * libc/sys/linux/cfspeed.c: Ditto.
971         * libc/sys/linux/tcsendbrk.c: Ditto.
972
973 2002-05-24  Jeff Johnston  <jjohnstn@redhat.com>
974
975         * libc/include/string.h: Add strnlen and strerror_r prototypes.
976         * libc/string/Makefile.am: Add strnlen.c and strerror_r.c support.
977         * libc/string/Makefile.in: Regenerated.
978         * libc/string/strerror_r.c: New file.
979         * libc/string/strnlen.c: New file.
980         * libc/sys/linux/Makefile.am: Add rename.c.
981         * libc/sys/linux/Makefile.in: Regenerated.
982         * libc/sys/linux/rename.c: New file to override default rename.
983
984 2002-05-24  Thomas Fitzsimmons  <fitzsim@redhat.com>
985
986         * libc/sys/linux/sys/cdefs.h: Add __weak_reference macros.
987         * libc/sys/linux/sys/time.h: Add conversion macros.
988         * libc/sys/linux/sys/types.h: Add FD_ macros.  Include <bits/types.h>.
989         * libc/sys/linux/ids.c: Add setresuid and syslog syscalls.
990         * libc/sys/linux/gethostname.c: New file.
991         * libc/sys/linux/seteuid.c: New file.
992         * libc/sys/linux/sysctl.c: New file.
993         
994 2002-05-23  Jeff Johnston  <jjohnstn@redhat.com>
995
996         * libc/string/Makefile.am: Add support for strsep.c.
997         * libc/string/Makefile.in: Regenerated.
998         * libc/string/strsep.c: New file.
999         * libc/string/strtok.c: Change to call __strtok_r service routine.
1000         * libc/string/strtok_r.c: Add __strtok_r routine which takes
1001         additional flag parameter regarding whether to skip leading delimeters.
1002         Change strtok_r to call __strtok_r.
1003
1004 2002-05-23  Gareth Pearce  <tilps@hotmail.com>
1005
1006         * libc/stdio/Makefile.am: Modify to add setbuffer.c and setlinebuf.c.
1007         * libc/stdio/Makefile.in: Regenerated.
1008         * libc/stdio/setbuffer.c: New file.
1009         * libc/stdio/setlinebuf.c: New file.
1010
1011 2002-05-23  Jeff Johnston  <jjohnstn@redhat.com>
1012
1013         * libc/sys/linux/Makefile.am: Add resource.c.
1014         * libc/sys/linux/Makefile.in: Regenerated.
1015         * libc/sys/linux/resource.c: New file.
1016         * libc/sys/linux/time.c: Add settimeofday, getitimer, and setitimer.
1017         * libc/sys/linux/machine/i386/Makefile.am: Remove syscalls.c.
1018         * libc/sys/linux/machine/i386/Makefile.in: Regenerated.
1019         * libc/sys/linux/machine/i386/syscalls.c: Removed as functions
1020         are now found in libc/sys/linux/resource.c.
1021
1022 2002-05-23  Jeff Johnston  <jjohnstn@redhat.com>
1023
1024         * libc/include/string.h (bcmp, bcopy, bzero): Change prototypes
1025         to use void * pointers and comply with Single Unix spec.
1026         * libc/string/bcmp.c: Change to use void * instead of char *.
1027         * libc/string/bcopy.c: Ditto.
1028         * libc/string/bzero.c: Ditto.
1029
1030 2002-05-22  Jeff Johnston  <jjohnstn@redhat.com>
1031
1032         * libc/sys/linux/shm_open.c: New file.
1033         * libc/sys/linux/shm_unlink.c: Ditto.
1034         * libc/sys/linux/Makefile.am: Add support for shm_open.c and
1035         shm_unlink.c.
1036         * libc/sys/linux/Makefile.in: Regenerated.
1037         * libc/sys/linux/sys/types.h: Add some additional checks to see
1038         if clock_t or time_t is already defined.
1039
1040 2002-05-22  Jeff Johnston  <jjohnstn@redhat.com>
1041
1042         * Makefile.am: Don't pass $toollibdir down directly in
1043         AM_MAKEFLAGS as it causes all multilibs to use the same toollibdir.
1044         Pass it under the name: top_toollibdir.
1045         * Makefile.in: Regenerated.
1046
1047 2002-05-22  Corinna Vinschen  <vinschen@redhat.com>
1048
1049         * libc/include/sys/types.h: Revert previous patch.
1050
1051 2002-05-22  Corinna Vinschen  <vinschen@redhat.com>
1052
1053         * libc/include/sys/types.h: Include cygwin/types.h always under
1054         Cygwin, not only if _POSIX_THREADS is defined.
1055
1056 2002-05-21 Dhananjay Deshpande <dhananjayd@kpit.com>
1057
1058         * configure.host: Specify sys_dir=h8300hms for h8300-*-coff* target.
1059
1060 2002-05-17  Jeff Johnston  <jjohnstn@redhat.com>
1061
1062         * Makefile.am: Copy and install headers from sys/machine/include
1063         directory.  Also pass $toollibdir to lower-level directories.
1064         * Makefile.in: Regenerated.
1065         * libc/include/stdio.h[!_REENT_ONLY]: Change stdin, stdout, and 
1066         stderr to use _REENT macro instead of _impure_ptr directly.
1067         * libc/include/sys/config.h[__i386__][__linux__]: Define
1068         __DYNAMIC_REENT__.
1069         * libc/include/sys/reent.h[!_REENT_ONLY]: Change _REENT macro to be 
1070         call to __getreent() function if !__SINGLE_THREAD__ and
1071         __DYNAMIC_REENT__ is set.
1072         * libc/reent/Makefile.am: Add support for getreent.c.
1073         * libc/reent/Makefile.in: Regenerated.
1074         * libc/string/strerror.c: Add check if EOPNOTSUPP and ENOTSUP are same.
1075         * libc/sys/linux/Makefile.am: Add support for new files.
1076         * libc/sys/linux/configure.in: Add $EXTRA_DIRS variable.
1077         * libc/sys/linux/Makefile.in: Regenerated.
1078         * libc/sys/linux/configure: Ditto.
1079         * libc/sys/linux/io.c: Add poll syscall.  Also weak-alias
1080         __close, __read, __write, __poll, __open, __lseek, __fcntl from
1081         their __libc_ counterparts.
1082         * libc/sys/linux/io64.c: Add __libc_ prefix to lseek64 and open64
1083         and weak-alias to regular names.
1084         * libc/sys/linux/pread64.c: Rename to __libc_pread64 and weak-alias
1085         to pread64 and __pread64.
1086         * libc/sys/linux/process.c: Weak_alias __libc_getpid to __getpid.
1087         * libc/sys/linux/pwrite64.c: Rename to __libc_pwrite64 and
1088         weak-alias to pwrite64.
1089         * libc/sys/linux/sched.c: Weak-alias __libc_sched_getparam,
1090         __libc_sched_getscheduler, __libc_sched_get_priority_max,
1091         __libc_sched_get_priority_min, and __libc_sched_setschedule to
1092         name with __ instead of __libc_. 
1093         * libc/sys/linux/siglongjmp.c: Include <machine/weakalias.h>.
1094         Rename siglongjmp to __libc_siglongjmp and weak-alias to siglongjmp.
1095         Call __libc_longjmp instead of longjmp, from __libc_siglongjmp.
1096         * libc/sys/linux/signal.c: Rename raise to __libc_raise and weak-alias
1097         to raise.
1098         * libc/sys/linux/socket.c: Weak-alias __libc_connect to __connect and
1099         __libc_send to __send.
1100         * libc/sys/linux/time.c: Weak-alias __libc_gettimeofday to
1101         __gettimeofday.
1102         * libc/sys/linux/wait.c: Rename wait to __libc_wait and weak-alias
1103         it to wait.  Rename wait3 to __libc_wait3 and weak-alias it to wait3.
1104         * libc/sys/linux/include/setjmp.h: Use __jmp_buf in sigjmp_buf
1105         type and typedef __jmp_buf to jmp_buf.
1106         * libc/sys/linux/machine/i386/Makefile.am: Add syscalls.c and
1107         setjmp.S.
1108         * libc/sys/linux/machine/i386/Makefile.in: Regenerated.
1109         * libc/sys/linux/machine/i386/crt0.c: Add support to clear .bss
1110         section.
1111         * libc/sys/linux/machine/i386/socketcall.h: Change to use __libc_
1112         prefix for function macros and then use weak_alias() to regular names.
1113         * libc/sys/linux/machine/i386/syscall.h: Ditto.
1114         * libc/sys/linux/sys/errno.h: Define EOPNOTSUP to be ENOTSUP.
1115         * libc/sys/linux/sys/stdio.h: Define _flockfile and _funlockfile
1116         to be flockfile() and funlockfile() respectively.
1117         * libc/sys/linux/sys/types.h
1118         * libc/reent/getreent.c: New file.
1119         * libc/sys/linux/flockfile.c: Ditto.
1120         * libc/sys/linux/funlockfile.c: Ditto.
1121         * libc/sys/linux/getreent.c: Ditto.
1122         * libc/sys/linux/pread.c: Ditto.
1123         * libc/sys/linux/pwrite.c: Ditto.
1124         * libc/sys/linux/raise.c: Ditto.
1125         * libc/sys/linux/system.c: Ditto.
1126         * libc/sys/linux/tcdrain.c: Ditto.
1127         * libc/sys/linux/machine/i386/i386mach.h: Ditto.
1128         * libc/sys/linux/machine/i386/setjmp.S: Ditto.
1129         * libc/sys/linux/machine/i386/syscalls.c: Ditto.
1130         * libc/sys/linux/machine/i386/weakalias.h: Ditto.
1131         * libc/sys/linux/machine/i386/include/setjmp.h: Ditto.
1132
1133 2002-05-14 Dhananjay Deshpande <dhananjayd@kpit.com>
1134
1135         * newlib/libc/sys/h8300hms/Makeile.am (lib_a_SOURCES): Add read.c.
1136         * newlib/libc/sys/h8300hms/read.c: New file.  Magic trap 0xC8 for sim.
1137         * newlib/libc/sys/h8300hms/syscalls.c: Move _read() to read.c.
1138         * newlib/libs/sys/h8300hms/sys/syscall.h: New file.
1139
1140 Thu May 16 17:24:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
1141
1142         * libc/machine/sh/strcpy.S (strcpy): Replace LITTLE_ENDIAN with
1143         __LITTLE_ENDIAN__.  make sure r0 has right value at first loop
1144         exit point.
1145
1146 2002-05-15  Thomas Fitzsimmons  <fitzsim@redhat.com>
1147
1148         * testsuite/lib/newlib.exp: Add newlib_include_flags to compile
1149         options when testing natively on i[3456]86-*-linux.
1150
1151         * testsuite/lib/checkoutput.exp (newlib_check_output): Output
1152         only one pass or fail per test file.  Trim \r's from output
1153         values received from test programs.  Remove support for named
1154         tests.
1155         * testsuite/newlib.locale/UTF-8.exp: Update to support new
1156         newlib_check_output behaviour.
1157         * testsuite/newlib.locale/UTF-8.c: Likewise.
1158
1159 2002-05-15  Jeff Johnston  <jjohnstn@redhat.com>
1160
1161         * libc/include/stdlib.h: Add on_exit prototype.
1162         * libc/include/sys/reent.h (struct _atexit): Add argument array
1163         and bits to track type of exit routine to support both on_exit
1164         and atexit.
1165         (_REENT_INIT_PTR): Add missing fields that won't be zeroed out
1166         by default and change the setting of the atexit structure.
1167         (_REENT_INIT)[!_REENT_SMALL]: Remove extraneous end brace.
1168         * libc/stdlib/on_exit.c: New file.
1169         * libc/stdlib/Makefile.am: Add support for on_exit.
1170         * libc/stdlib/Makefile.in: Regenerated.
1171         * libc/stdlib/atexit.c: Change to initialize types field.
1172         * libc/stdlib/exit.c: Change to look at types field for each
1173         exit routine and either call an atexit-style or an on_exit-style
1174         routine accordingly.
1175
1176 2002-05-13  Jeff Johnston  <jjohnstn@redhat.com>
1177
1178         * libc/machine/powerpc/vfprintf.c(__VFPRINTF_R)[__ALTIVEC__]: Don't
1179         allow v specifier with n or L specifiers.  For vector c format,
1180         move tmp declaration to the top.
1181
1182 2002-05-13  Jeff Johnston  <jjohnstn@redhat.com>
1183
1184         * libc/machine/powerpc/vfprintf.c(__VFPRINTF_R)[__ALTIVEC__]: Restore
1185         the original format specifier when looping for vectors to compensate
1186         for any changes made in vector %g format processing.
1187         Also add syntax checking for various invalid scenarios
1188         involving vector format extensions.
1189         * libc/machine/powerpc/vfscanf.c(__VFSCANF_R)[__ALTIVEC__]: Fix
1190         return code setting for vector formats.  Also treat vector
1191         separator mismatch as a match error instead of an input error.
1192         Perform some syntax checking for vector formats.
1193
1194 2002-05-10  Mark Bradshaw  <bradshaw@staff.crosswalk.com>
1195
1196         * libc/include/string.h (!__STRICT_ANSI__): Add strlcat and strlcpy.
1197         * libc/string/Makefile.am: Add strlcat.c and strlcpy.c.
1198         * libc/string/strlcat.c: New file.
1199         * libc/string/strlcpy.c: New file.
1200
1201 2002-05-10  Jeff Johnston  <jjohnstn@redhat.com>
1202
1203         * libc/string/strchr.c: Fix comment typo.
1204
1205 2002-05-08  Thomas Fitzsimmons  <fitzsim@redhat.com>
1206
1207         * acinclude.m4: Add support for --enable-newlib-multithread.
1208         * configure.host (newlib_cflags): Add -D__SINGLE_THREAD__ if
1209         --enable-newlib-multithread=no.
1210
1211         * libc/stdio/getc_u.c: New file.
1212         * libc/stdio/getchar_u.c: New file.
1213         * libc/stdio/putc_u.c: New file.
1214         * libc/stdio/putchar_u.c: New file.
1215         * libc/include/stdio.h: Add declarations for getc_unlocked,
1216         getchar_unlocked, putc_unlocked and putchar_unlocked.
1217         * libc/stdio/Makefile.am (LIB_SOURCES): Add new files.
1218         (CHEWOUT_FILES): Add new files' .def's.
1219         * libc/stdio/putchar.c (_putchar_r): Replace __sputc with putc.
1220
1221 Wed May  8 17:47:35 2002  J"orn Rennecke <joern.rennecke@superh.com>
1222
1223         * libc/machine/sh/memset.S (memset, __SHMEDIA__ code):
1224         Also handle as single quad word when destination ends at last
1225         byte of first quad word.  Fix byte selection in single quad code.
1226
1227 2002-05-07  Thomas Fitzsimmons  <fitzsim@redhat.com>
1228
1229         * libc/include/sys/stdio.h: New file.
1230         * libc/sys/linux/sys/stdio.h: New file.
1231         * libc/include/stdio.h: Add declarations for flockfile,
1232         ftrylockfile, and funlockfile.  Include <sys/stdio.h>.
1233         * libc/stdio/clearerr.c: Add file locking.
1234         * libc/stdio/fclose.c: Likewise.
1235         * libc/stdio/feof.c: Likewise.
1236         * libc/stdio/ferror.c: Likewise.
1237         * libc/stdio/fflush.c: Likewise.
1238         * libc/stdio/fgetc.c: Likewise.
1239         * libc/stdio/fgetpos.c: Likewise.
1240         * libc/stdio/fgets.c: Likewise.
1241         * libc/stdio/fileno.c: Likewise.
1242         * libc/stdio/fputc.c: Likewise.
1243         * libc/stdio/fputs.c: Likewise.
1244         * libc/stdio/fread.c: Likewise.
1245         * libc/stdio/freopen.c: Likewise.
1246         * libc/stdio/fseek.c: Likewise.
1247         * libc/stdio/ftell.c: Likewise.
1248         * libc/stdio/fwrite.c: Likewise.
1249         * libc/stdio/getc.c: Likewise.
1250         * libc/stdio/putc.c: Likewise.
1251         * libc/stdio/setvbuf.c: Likewise.
1252         * libc/stdio/ungetc.c: Likewise.
1253         * libc/stdio/vfprintf.c: Likewise.
1254
1255 2002-05-06  Jeff Johnston  <jjohnstn@redhat.com>
1256
1257         * libc/machine/powerpc/vfprintf.c[__ALTIVEC__]: Add vector
1258         support for 'p' format.  Fix code to print bytes for vector
1259         integer formats that do not specify 'h' or 'l'.
1260         * libc/machine/powerpc/vfscanf.c[__ALTIVEC__]: Add vector support
1261         for 'p' specifier.  Fix code to scan 16 bytes for vector integer
1262         formats that do not specify 'h' or 'l'.
1263
1264         * libc/include/stdlib.h (a64l, l64a, _l64a_r): Added prototypes.
1265
1266 2002-05-06  Nick Clifton  <nickc@cambridge.redhat.com>
1267
1268         * libc/sys/arm/syscalls.c (_rename): Add parameter names.
1269         (_sbrk): Add cast of return value.
1270
1271 2002-05-06  Jeff Johnston  <jjohnstn@redhat.com>
1272
1273         *  libc/include/sys/reent.h (_l64a_buf): New reentrant area.
1274         (_REENT_L64A_BUF): New macro for accessing area.
1275         *  libc/stdlib/Makefile.am: Add a64l.c and l64a.c.
1276         *  libc/stdlib/Makefile.in: Regenerated.
1277         *  libc/stdlib/a64l.c: New file.
1278         *  libc/stdlib/l64a.c: New file.
1279
1280 2002-05-06  Jeff Johnston  <jjohnstn@redhat.com>
1281
1282         * libc/unix/pread.c: Fix typo for _pread_r.
1283         * libc/unix/pwrite.c: Fix type for _pwrite_r.
1284         * libc/sys/linux/pread64.c: Fix typo for read syscall.
1285         * libc/sys/linux/pwrite64.c: Fix typo for write syscall.
1286
1287 2002-05-03  Christopher Faylor  <cgf@redhat.com>
1288
1289         * libc/include/sys/unistd.h: Define getdomainname under cygwin.
1290
1291 2002-05-03  Thomas Fitzsimmons  <fitzsim@redhat.com>
1292
1293         * configure.in (CC_FOR_NEWLIB): Change -isystem's to -I's.
1294
1295 2002-05-01  Christopher Faylor  <cgf@redhat.com>
1296
1297         * utmp.h: Define more UNIX constants.
1298
1299 2002-05-01  Thomas Fitzsimmons  <fitzsim@redhat.com>
1300
1301         * Makefile.am: Add support for checking multilibs.
1302
1303         * libc/Makefile.am (SUBLIBS): Add LIBC_EXTRA_LIB.
1304         (SUBDEFS): Add LIBC_EXTRA_DEF.
1305         * libc/configure.in (LIBC_EXTRA_LIB): New variable.
1306         (LIBC_EXTRA_DEF): Likewise.
1307         (extra_dir): Likewise.
1308         * libc/machine/xscale/machine: New directory.
1309         * libc/machine/xscale/machine/profile.h: New file.
1310
1311         * Makefile.am (site.exp): Remove newlib_cflags.  Add
1312         multibuildtop.
1313         * testsuite/newlib.locale/UTF-8.c: Change fprintf's to printf's.
1314         * testsuite/lib/flags.exp: New file.
1315         * testsuite/lib/newlib.exp: Load flags.exp.
1316         (newlib_target_compile): Remove libgloss directory references.
1317         (newlib_init): Remove newlib_cflags references.
1318
1319 2002-04-30  Thomas Fitzsimmons  <fitzsim@redhat.com>
1320
1321         * testsuite/lib/newlib.exp (newlib_target_compile): Change
1322         method of finding libgloss_target_dir.
1323
1324         * Makefile.am (site.exp): Change host_alias, host_triplet,
1325         target_alias, target_triplet to refer to gcc's host and target
1326         variables (newlib's build and host variables).
1327         * testsuite/lib/newlib.exp (newlib_init): Change build
1328         references to host references, host references to target
1329         references to reflect Makefile.am changes.
1330         (newlib_target_compile): Likewise.
1331         (newlib_finish): Likewise.
1332
1333 2002-04-29  Jeff Johnston  <jjohnstn@redhat.com>
1334
1335         * libc/sys/linux/io64.c (fstat64, lstat64): New syscalls added.
1336
1337 2002-04-29  Jonathan Larmour  <jlarmour@redhat.com>
1338
1339         * libc/sys/arm/syscalls.c (_rename): New function. Just a stub.
1340         (_system): New function. Ditto.
1341         * libc/stdlib/system.c (_system_r): Call _system if HAVE_SYSTEM.
1342         * configure.host: define HAVE_SYSTEM and HAVE_RENAME for xscale
1343         targets.
1344
1345 2002-04-29  Jeff Johnston  <jjohnstn@redhat.com>
1346
1347         *  libc/include/sys/unistd.h (pread, pwrite): Added prototypes.
1348         *  libc/unix/Makefile.am: Add pread.c and pwrite.c.
1349         *  libc/sys/linux/Makefile.am: Add pread64.c and pwrite64.c.
1350         *  libc/sys/linux/Makefile.in: Regenerated.
1351         *  libc/unix/Makefile.in: Ditto.
1352         *  libc/sys/linux/pread64.c: New file.
1353         *  libc/sys/linux/pwrite64.c: Ditto.
1354         *  libc/unix/pread.c: Ditto.
1355         *  libc/unix/pwrite.c: Ditto.
1356
1357 2002-04-26  Jeff Johnston  <jjohnstn@redhat.com>
1358
1359         *  libc/sys/linux/Makefile.am: Add io64.c.
1360         *  libc/sys/linux/Makefile.in: Regenerated.
1361         *  libc/sys/linux/io.c(mkfifo, fsync, fdatasync): Added syscalls.
1362         *  libc/sys/linux/signal.c (sigwaitinfo, sigtimedwait): Ditto. 
1363         *  libc/sys/linux/io64.c: New file.
1364
1365 2002-04-26  Jeff Johnston  <jjohnstn@redhat.com>
1366
1367         * configure.in (CC_FOR_NEWLIB): New variable that
1368         bases on $(CC) and adds targ-include and libc/include as
1369         -isystem directives if they are not already part of $(CC).
1370         * Makefile.am (AM_MAKEFLAGS): Change setting of CC to equal
1371         $(CC_FOR_NEWLIB).
1372         * configure: Regenerated.
1373         * Makefile.in: Ditto.
1374
1375 2002-04-25  Jeff Johnston  <jjohnstn@redhat.com>
1376
1377         *  libc/sys/linux/Makefile.am: Add support for sched.c.
1378         *  libc/sys/linux/Makefile.in: Regenerated.
1379         *  libc/sys/linux/sched.c: New file.
1380         *  libc/sys/linux/sys/types.h: Add struct timespec.
1381
1382 2002-04-25  Thomas Fitzsimmons  <fitzsim@redhat.com>
1383
1384         * configure.in (CC_FOR_BUILD): Set to gcc whether
1385         cross-compiling or not.
1386         (CC): Add -isystem's for targ-include and libc/include when they
1387         do not already appear in CC.
1388
1389 2002-04-24  Thomas Fitzsimmons  <fitzsim@redhat.com>
1390
1391         * Makefile.am (check-DEJAGNU): New target.
1392         (site.exp): Likewise.
1393         * acinclude.m4 (NEWLIB_CONFIGURE): Replace AC_CANONICAL_HOST
1394         with AC_CANONICAL_SYSTEM.  Remove AC_CANONICAL_BUILD.
1395         * libc/locale/locale.c (_setlocale_r): Add UTF-8 support.
1396         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Likewise.
1397         * libc/stdlib/wctomb_r.c (_wctomb_r): Likewise.
1398         * testsuite: New directory.
1399         * testsuite/config: Likewise.
1400         * testsuite/lib: Likewise.
1401         * testsuite/newlib.locale: Likewise.
1402         * testsuite/newlib.string: Likewise.
1403         * testsuite/config/default.exp: New file.
1404         * testsuite/lib/checkoutput.exp: New file.
1405         * testsuite/lib/newlib.exp: New file.
1406         * testsuite/lib/passfail.exp: New file.
1407         * testsuite/newlib.locale/UTF-8.c: New file.
1408         * testsuite/newlib.locale/UTF-8.exp: New file.
1409         * testsuite/newlib.locale/locale.exp: New file.
1410         * testsuite/newlib.string/string.exp: New file.
1411         * testsuite/newlib.string/tstring.c: New file.
1412
1413 2002-04-23  Jeff Johnston  <jjohnstn@redhat.com>
1414
1415         *  libc/include/machine/types.h (__pid_t, __off_t, __loff_t): Added.
1416         *  libc/sys/linux/Makefile.am: Add support for mmap.c.
1417         *  libc/sys/linux/Makefile.in: Regenerated.
1418         *  libc/sys/linux/mmap.c: New file.
1419         *  libc/sys/linux/machine/i386/syscall.h: Add _syscall6 macro.
1420         *  libc/sys/linux/sys/types.h (pid_t, off_t, loff_t): Added.
1421
1422 2002-04-22  Thomas Fitzsimmons  <fitzsim@redhat.com>
1423
1424         * acinclude.m4 (newlib_cflags): Remove include directories that
1425         are already specified in the top-level configure.in's FLAGS_FOR_TARGET.
1426
1427 2002-04-19  Bill Siegmund  <ctc-dsl@pacbell.net>
1428
1429         * libc/machine/xscale/memchr.c: Don't use multi-line strings.
1430         * libc/machine/xscale/memcmp.c: Ditto.
1431         * libc/machine/xscale/memcpy.c: Ditto.
1432         * libc/machine/xscale/memmove.c: Ditto.
1433         * libc/machine/xscale/memset.c: Ditto.
1434         * libc/machine/xscale/strchr.c: Ditto.
1435         * libc/machine/xscale/strcmp.c: Ditto.
1436         * libc/machine/xscale/strcpy.c: Ditto.
1437         * libc/machine/xscale/strlen.c: Ditto.
1438
1439 2002-04-19  Alexandre Oliva  <aoliva@redhat.com>
1440
1441         * libc/include/sys/config.h: Remove include of <limits.h>.
1442         (__INT_MAX__, __LONG_MAX__): Define like GCC's limits.h would
1443         define INT_MAX and LONG_MAX.  Use them in tests.
1444
1445 2002-04-19  Jeff Johnston  <jjohnstn@redhat.com>
1446
1447         *  configure.host: Add support for powerpc-eabialtivec*.
1448         *  libc/include/malloc.h: Add include of <machine/malloc.h>.
1449         *  libc/include/stdlib.h: Add include of <machine/stdlib.h>.
1450         *  libc/include/machine/malloc.h: New file.
1451         *  libc/include/machine/stdlib.h: Ditto.
1452         *  libc/include/machine/setjmp.h: Add support for powerpc altivec.
1453         *  libc/machine/powerpc/Makefile.am: Add conditional objects and
1454         sources based on configuration.
1455         *  libc/machine/powerpc/Makefile.in: Regenerated.
1456         *  libc/machine/powerpc/configure: Ditto.
1457         *  libc/machine/powerpc/configure.in: Add check for
1458         powerpc-eabialtivec* in which case add in additional source files.
1459         *  libc/machine/powerpc/setjmp.S: Add altivec support.
1460         *  libc/machine/powerpc/vec_calloc.c: New file.
1461         *  libc/machine/powerpc/vec_free.c: Ditto.
1462         *  libc/machine/powerpc/vec_malloc.c: Ditto.
1463         *  libc/machine/powerpc/vec_mallocr.c: Ditto.
1464         *  libc/machine/powerpc/vec_realloc.c: Ditto.
1465         *  libc/machine/powerpc/machine/malloc.h: Ditto.
1466         *  libc/machine/powerpc/machine/stdlib.h: Ditto.
1467         *  libc/machine/powerpc/vfprintf.c: New file that is vfprintf.c
1468         with added altivec format specifiers.
1469         *  libc/machine/powerpc/vfscanf.c: New file that is vfscanf.c with
1470         added altivec format specifiers.
1471
1472 2002-04-19      Joel Sherrill <joel@OARcorp.com>
1473
1474         * libs/sys/rtems/crt0.c: Satisfy gcc's references to libc functions
1475         while autoconf is trying to link main(){}.
1476
1477 2002-04-17  Jeff Johnston  <jjohnstn@redhat.com>
1478
1479         * libc/sys/linux/signal.c: Remove include of <bits/sigset.h>.
1480         * libc/sys/linux/sys/signal.h: Add include of <bits/sigset.h>.
1481
1482 2002-04-17  Jeff Johnston  <jjohnstn@redhat.com>
1483
1484         * libc/time/time.tex: Add tzset info.
1485
1486 2002-04-17  Jeff Johnston  <jjohnstn@redhat.com>
1487
1488         * libc/include/time.h (tzset, _tzset_r): Added prototypes.
1489         (strptime): Moved prototype to be within !__STRICT_ANSI__.
1490         (_tzname, _daylight, _timezone): No long __CYGWIN__ only.
1491         (tzname): Defined for all platforms.
1492         (daylight, timezone): Defined only for CYGWIN.
1493         * libc/sys/linux/machine/i386/crt0.c: Add call to tzset() after
1494         environment set up.
1495         * libc/stdlib/setenv_r.c (_setenv_r): Call tzset() if the TZ
1496         environment variable is set.
1497         * libc/time/Makefile.am: Add support for tzset.c, tzlock.c, and
1498         tzset_r.c.
1499         * libc/time/Makefile.in: Regenerated.
1500         * libc/time/gmtime.c (gmtime): Changed to call gmtime_r.
1501         * libc/time/gmtime_r.c (gmtime_r): Changed to call _mktm_r.
1502         * libc/time/lcltime_r.c (lcltime_r): Ditto.
1503         * libc/time/local.h: New local header file.
1504         * libc/time/mktime.c (mktime): Add timezone support.
1505         * libc/time/mktm_r.c: New file which is the common engine
1506         for gmtime_r and lcltime_r.  This code has timezone support.
1507         * libc/time/strftime.c (strftime): Add %Z timezone support.
1508         * libc/time/tzlock.c: New file containing timezone lock stubs.
1509         * libc/time/tzset.c: New file containing tzset() routine.
1510         * libc/time/tzset_r.c: New file containing _tzset_r and
1511         internal routine for calculating timezone changes for specified year.
1512
1513 2002-04-17  Thomas Fitzsimmons  <fitzsim@redhat.com>
1514
1515         * configure.in (CRT0_DIR): Set to libc/.
1516         (CRT1_DIR): Set to ${crt1_dir}/ if crt1_dir is non-empty.
1517         * Makefile.am: Change all occurrences of $(CRT0_DIR)/$(CRT0) to
1518         $(CRT0_DIR)$(CRT0) to prevent make warnings.  Likewise for
1519         $(CRT1_DIR)/$(CRT1).
1520         * libc/machine/xstormy16/Makefile.in: Regenerated.
1521         * libc/machine/xstormy16/aclocal.m4: Regenerated.
1522         * libc/machine/xstormy16/configure: Regenerated.
1523
1524 2002-04-13  Alexandre Oliva  <aoliva@redhat.com>
1525
1526         * libc/stdlib/mallocr.c (malloc_extend_top): If correction sbrk
1527         fails, don't bail out, and try to correct next time.
1528
1529         * libc/include/sys/config.h: Include limits.h.
1530
1531 2002-04-12  Eric Norum  <eric.norum@usask.com>
1532
1533         * libc/sys/rtems/crt0.c (rtems_gxx_mutex_init): Dummy
1534         routine to allow autoconf to determine that building executables
1535         for rtems works.
1536         (rtems_gxx_mutex_lock, rtems_gxx_mutex_unlock): Ditto.
1537         (rtems_gxx_mutex_once): Ditto.
1538
1539 2002-04-09  Tom Rix  <trix@redhat.com>
1540
1541         * libc/include/sys/reent.h (_REENT_INIT_PTR): Fix typo.
1542
1543 2002-04-09  Mark Bradshaw  <bradshaw@staff.crosswalk.com>
1544
1545         * libc/include/time.h: Fix strptime declaration.
1546         * libc/time/Makefile.am: Add strptime.c.
1547         * libc/time/Makefile.in: Regenerated.
1548         * libc/time/strptime.c: New file.
1549
1550 2002-04-08  Jeff Johnston  <jjohnstn@redhat.com>
1551
1552         * libc/sys/linux/include/setjmp.h: Add sigjmp_buf type,
1553         siglongjmp prototype, and sigsetjmp macro definition.
1554         * libc/sys/linux/siglongjmp.c: New file.
1555         * libc/sys/linux/Makefile.am: Add support for siglongjmp.
1556         * libc/sys/linux/Makefile.in: Regenerated.
1557
1558 2002-04-04  Jeff Johnston  <jjohnstn@redhat.com>
1559
1560         * Makefile.am: Add support for installing crt1.o if one exists.
1561         * configure.host: Specify crt1.o for linux.
1562         * configure.in: Expose CRT1 and CRT1_DIR for Makefile.am to use.
1563         * Makefile.in: Regenerated.
1564         * configure: Ditto.
1565         * libc/include/sys/unistd.h (_SC_STREAM_MAX, _SC_PRIORITY_SCHEDULING):
1566         Added for non-Cygwin, non-RTEMS configurations.
1567         * libc/sys/linux/Makefile.am: Add support for crt1 and sysconf.
1568         * libc/sys/linux/Makefile.in: Regenerated.
1569         * libc/sys/linux/crt1.c: New empty file to override one defaulted
1570         by gcc.  This fixes problem with reconfiguring linux newlib build.
1571         * libc/sys/linux/sysconf.c: New file.
1572
1573 2002-04-03  Jeff Johnston  <jjohnstn@redhat.com>
1574
1575         * configure.host: Add support for machine subdirectory of
1576         sys subdirectory.
1577         * configure.in: Add check for sys machine subdirectory.
1578         * Makefile.am: Ditto.
1579         * configure: Regenerated.
1580         * Makefile.in: Ditto.
1581         * libc/sys/linux/crt0.c: Moved to machine/i386 directory.
1582         * libc/sys/linux/sys/syscall.h: Ditto.
1583         * libc/sys/linux/sleep.c: New file.
1584         * libc/sys/linux/socket.c: Ditto.
1585         * libc/sys/linux/sockops.h: Ditto.
1586         * libc/sys/linux/stack.c: Ditto.
1587         * libc/sys/linux/usleep.c: Ditto.
1588         * libc/sys/linux/machine/Makefile.am: Ditto.
1589         * libc/sys/linux/machine/Makefile.in: Ditto.
1590         * libc/sys/linux/machine/aclocal.m4: Ditto.
1591         * libc/sys/linux/machine/configure: Ditto.
1592         * libc/sys/linux/machine/configure.in: Ditto.
1593         * libc/sys/linux/machine/i386/Makefile.am: Ditto.
1594         * libc/sys/linux/machine/i386/Makefile.in: Ditto.
1595         * libc/sys/linux/machine/i386/aclocal.m4: Ditto.
1596         * libc/sys/linux/machine/i386/configure: Ditto.
1597         * libc/sys/linux/machine/i386/configure.in: Ditto.
1598         * libc/sys/linux/machine/i386/crt0.c: Ditto.
1599         * libc/sys/linux/machine/i386/sigset.c: Ditto.
1600         * libc/sys/linux/machine/i386/sigstack.h: Ditto.
1601         * libc/sys/linux/machine/i386/socketcall.h: Ditto.
1602         * libc/sys/linux/machine/i386/syscall.h: Ditto.
1603         * libc/sys/linux/sys/select.h: Ditto.
1604         * libc/sys/linux/configure.in: Add support for machine directory.
1605         * libc/sys/linux/Makefile.am: Ditto plus add new files above.
1606         * libc/sys/linux/Makefile.in: Regenerated.
1607         * libc/sys/linux/configure: Ditto.
1608         * libc/sys/linux/brk.c: Use machine/syscall.h instead of sys/syscall.h.
1609         * libc/sys/linux/inode.c: Ditto.
1610         * libc/sys/linux/linux.c: Ditto.
1611         * libc/sys/linux/process.c: Ditto.
1612         * libc/sys/linux/systat.c: Ditto.
1613         * libc/sys/linux/time.c: Ditto.
1614         * libc/sys/linux/wait.c: Ditto.
1615         * libc/sys/linux/ids.c: Change header plus add setfsgid/setfsuid.
1616         * libc/sys/linux/io.c: Change header plus add readv/writev.
1617         * libc/sys/linux/signal.c: Change header plus change sigsuspend to
1618         use __sigsuspend syscall.
1619         * libc/sys/linux/select.c: Change header plus change select to
1620         use _newselect syscall.
1621         * libc/sys/linux/sys/cdefs.h: Add a number of standard definitions
1622         used by glibc header files.
1623         * libc/sys/linux/sys/types.h: Add __socklen_t and __useconds_t
1624         types.
1625
1626 2002-04-01  Jeff Johnston  <jjohnstn@redhat.com>
1627
1628         * libc/include/sys/reent.h (_REENT_INIT_PTR): New macro for
1629         initializing a struct _reent that has been dynamically allocated.
1630         (_REENT_CHECK_MISC): New macro that checks _misc struct for
1631         _REENT_SMALL and does nothing otherwise.
1632         (_REENT_STRTOK_LAST): New macro for reentrant strtok.
1633         (_REENT_MBLEN_STATE): New macro for reentrant mblen.
1634         (_REENT_MBTOWC_STATE): New macro for reentrant mbtowc.
1635         (_REENT_WCTOMB_STATE): New macro for reentrant wctomb.
1636         [_REENT_SMALL](struct _misc_reent): New structure containing
1637         miscellaneous reentrant areas needed by newlib.
1638         [_REENT_SMALL](struct _reent): Add _misc pointer.
1639         [_REENT_SMALL](_REENT_INIT_MISC): New macro.
1640         * libc/string/strtok (strtok): Change to use _REENT_CHECK_MISC
1641         and _REENT_STRTOK_LAST macros.
1642         * libc/stdlib/mblen (mblen): Change to use _REENT_CHECK_MISC
1643         and _REENT_MBLEN_STATE macros.
1644         * libc/stdlib/mbtowc (mbtowc): Change to use _REENT_CHECK_MISC
1645         and _REENT_MBTOWC_STATE macros.
1646         * libc/stdlib/wctomb (wctomb): Change to use _REENT_CHECK_MISC
1647         and _REENT_WCTOMB_STATE macros.
1648
1649 2002-04-01  Till Straumann <strauman@SLAC.Stanford.EDU>
1650
1651         * libc/stdlib/getenv_r.c (_findenv_r): Add missing ENV_UNLOCK.
1652
1653 Wed Mar 27 07:34:44 2002  Jason Tishler <jason@tishler.net>
1654
1655         * libc/include/sys/features.h (_POSIX_SEMAPHORES): New Cygwin define.
1656
1657 Tue Mar 26 17:17:10 2002  J"orn Rennecke <joern.rennecke@superh.com>
1658
1659         * libc/machine/sh/memcpy.S (Large): Fix alignment rounding.
1660         Store high part of leading bytes too.
1661
1662 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
1663
1664         * libm/math/ef_hypot.c: Increase scale factor to 68.
1665
1666 2002-03-13  Alexandre Oliva  <aoliva@redhat.com>
1667
1668         * libc/machine/mips/strlen.c (strlen) [__mips16]: Fix off-by-two
1669         error.
1670
1671 2002-03-12  Jeff Johnston  <jjohnstn@redhat.com>
1672
1673         * libc/sys/go32/access.c: Change license to relaxed license
1674         used in identical file throughout newlib/libgloss.
1675
1676 2002-03-12  Richard Earnshaw  <rearnsha@arm.com>
1677
1678         * libc/sys/arm/access.c: New file.
1679         * libc/sys/arm/Makefile.am (lib_a_SOURCES): Add access.c.
1680         * libc/sys/arm/Makefile.in: Regenerate.
1681         * libc/sys/arm/syscalls.c (_stat): New function.
1682
1683 2002-03-11  Michael Meissner  <meissner@redhat.com>
1684
1685         * libc/machine/mips/Makefile.am (lib_a_SOURCES): Add Mips specific
1686         variants strlen.c, strcmp.c, strncpy.c, memset.c and memcpy.c.
1687         * libc/machine/mips/Makefile.in: Regenerate.
1688         * libc/machine/mips/memcpy.c: New file, optimized for MIPS.
1689         * libc/machine/mips/memset.c: Dito.
1690         * libc/machine/mips/strcmp.c: Dito.
1691         * libc/machine/mips/strlen.c: Dito.
1692         * libc/machine/mips/strncmp.c: Dito.
1693
1694 2002-03-06  Jeff Johnston  <jjohnstn@redhat.com>
1695
1696         * libc/machine/i386/Makefile.am: Add $(oext) for setjmp
1697         object so it works for shared library or statici library.
1698 2002-04-17  Jeff Johnston  <jjohnstn@redhat.com>
1699
1700         *  libc/include/time.h (tzset, _tzset_r): Added prototypes.
1701         (strptime): Moved prototype to be within !__STRICT_ANSI__.
1702         (_tzname, _daylight, _timezone): No long __CYGWIN__ only.
1703         (tzname): Defined for all platforms.
1704         (daylight, timezone): Defined only for CYGWIN.
1705         *  libc/sys/linux/machine/i386/crt0.c: Add call to tzset() after
1706         environment set up.
1707         * libc/stdlib/setenv_r.c (_setenv_r): Call tzset() if the TZ
1708         environment variable is set.
1709         *  libc/time/Makefile.am: Add support for tzset.c, tzlock.c, and
1710         tzset_r.c.
1711         *  libc/time/Makefile.in: Regenerated.
1712         *  libc/time/gmtime.c (gmtime): Changed to call gmtime_r.
1713         *  libc/time/gmtime_r.c (gmtime_r): Changed to call _mktm_r.
1714         *  libc/time/lcltime_r.c (lcltime_r): Ditto.
1715         *  libc/time/local.h: New local header file.
1716         *  libc/time/mktime.c (mktime): Add timezone support.
1717         *  libc/time/mktm_r.c: New file which is the common engine
1718         for gmtime_r and lcltime_r.  This code has timezone support.
1719         *  libc/time/strftime.c (strftime): Add %Z timezone support.
1720         *  libc/time/tzlock.c: New file containing timezone lock stubs.
1721         *  libc/time/tzset.c: New file containing tzset() routine.
1722         *  libc/time/tzset_r.c: New file containing _tzset_r and
1723         internal routine for calculating timezone changes for specified year.
1724
1725 2002-04-17  Thomas Fitzsimmons  <fitzsim@redhat.com>
1726
1727         * configure.in (CRT0_DIR): Set to libc/.
1728         (CRT1_DIR): Set to ${crt1_dir}/ if crt1_dir is non-empty.
1729         * Makefile.am: Change all occurrences of $(CRT0_DIR)/$(CRT0) to
1730         $(CRT0_DIR)$(CRT0) to prevent make warnings.  Likewise for
1731         $(CRT1_DIR)/$(CRT1).
1732         * libc/machine/xstormy16/Makefile.in: Regenerated.
1733         * libc/machine/xstormy16/aclocal.m4: Regenerated.
1734         * libc/machine/xstormy16/configure: Regenerated.
1735
1736 2002-04-13  Alexandre Oliva  <aoliva@redhat.com>
1737
1738         * libc/stdlib/mallocr.c (malloc_extend_top): If correction sbrk
1739         fails, don't bail out, and try to correct next time.
1740
1741         * libc/include/sys/config.h: Include limits.h.
1742
1743 2002-04-12  Eric Norum  <eric.norum@usask.com>
1744
1745         * libc/sys/rtems/crt0.c (rtems_gxx_mutex_init): Dummy
1746         routine to allow autoconf to determine that building executables
1747         for rtems works.
1748         (rtems_gxx_mutex_lock, rtems_gxx_mutex_unlock): Ditto.
1749         (rtems_gxx_mutex_once): Ditto.
1750
1751 2002-04-09  Tom Rix  <trix@redhat.com>
1752
1753         * libc/include/sys/reent.h (_REENT_INIT_PTR): Fix typo.
1754
1755 2002-04-09  Mark Bradshaw  <bradshaw@staff.crosswalk.com>
1756
1757         * libc/include/time.h: Fix strptime declaration.
1758         * libc/time/Makefile.am: Add strptime.c.
1759         * libc/time/Makefile.in: Regenerated.
1760         * libc/time/strptime.c: New file.
1761
1762 2002-04-08  Jeff Johnston  <jjohnstn@redhat.com>
1763
1764         * libc/sys/linux/include/setjmp.h: Add sigjmp_buf type,
1765         siglongjmp prototype, and sigsetjmp macro definition.
1766         * libc/sys/linux/siglongjmp.c: New file.
1767         * libc/sys/linux/Makefile.am: Add support for siglongjmp.
1768         * libc/sys/linux/Makefile.in: Regenerated.
1769
1770 2002-04-04  Jeff Johnston  <jjohnstn@redhat.com>
1771
1772         * Makefile.am: Add support for installing crt1.o if one exists.
1773         * configure.host: Specify crt1.o for linux.
1774         * configure.in: Expose CRT1 and CRT1_DIR for Makefile.am to use.
1775         * Makefile.in: Regenerated.
1776         * configure: Ditto.
1777         * libc/include/sys/unistd.h (_SC_STREAM_MAX, _SC_PRIORITY_SCHEDULING):
1778         Added for non-Cygwin, non-RTEMS configurations.
1779         * libc/sys/linux/Makefile.am: Add support for crt1 and sysconf.
1780         * libc/sys/linux/Makefile.in: Regenerated.
1781         * libc/sys/linux/crt1.c: New empty file to override one defaulted
1782         by gcc.  This fixes problem with reconfiguring linux newlib build.
1783         * libc/sys/linux/sysconf.c: New file.
1784
1785 2002-04-03  Jeff Johnston  <jjohnstn@redhat.com>
1786
1787         * configure.host: Add support for machine subdirectory of
1788         sys subdirectory.
1789         * configure.in: Add check for sys machine subdirectory.
1790         * Makefile.am: Ditto.
1791         * configure: Regenerated.
1792         * Makefile.in: Ditto.
1793         * libc/sys/linux/crt0.c: Moved to machine/i386 directory.
1794         * libc/sys/linux/sys/syscall.h: Ditto.
1795         * libc/sys/linux/sleep.c: New file.
1796         * libc/sys/linux/socket.c: Ditto.
1797         * libc/sys/linux/sockops.h: Ditto.
1798         * libc/sys/linux/stack.c: Ditto.
1799         * libc/sys/linux/usleep.c: Ditto.
1800         * libc/sys/linux/machine/Makefile.am: Ditto.
1801         * libc/sys/linux/machine/Makefile.in: Ditto.
1802         * libc/sys/linux/machine/aclocal.m4: Ditto.
1803         * libc/sys/linux/machine/configure: Ditto.
1804         * libc/sys/linux/machine/configure.in: Ditto.
1805         * libc/sys/linux/machine/i386/Makefile.am: Ditto.
1806         * libc/sys/linux/machine/i386/Makefile.in: Ditto.
1807         * libc/sys/linux/machine/i386/aclocal.m4: Ditto.
1808         * libc/sys/linux/machine/i386/configure: Ditto.
1809         * libc/sys/linux/machine/i386/configure.in: Ditto.
1810         * libc/sys/linux/machine/i386/crt0.c: Ditto.
1811         * libc/sys/linux/machine/i386/sigset.c: Ditto.
1812         * libc/sys/linux/machine/i386/sigstack.h: Ditto.
1813         * libc/sys/linux/machine/i386/socketcall.h: Ditto.
1814         * libc/sys/linux/machine/i386/syscall.h: Ditto.
1815         * libc/sys/linux/sys/select.h: Ditto.
1816         * libc/sys/linux/configure.in: Add support for machine directory.
1817         * libc/sys/linux/Makefile.am: Ditto plus add new files above.
1818         * libc/sys/linux/Makefile.in: Regenerated.
1819         * libc/sys/linux/configure: Ditto.
1820         * libc/sys/linux/brk.c: Use machine/syscall.h instead of sys/syscall.h.
1821         * libc/sys/linux/inode.c: Ditto.
1822         * libc/sys/linux/linux.c: Ditto.
1823         * libc/sys/linux/process.c: Ditto.
1824         * libc/sys/linux/systat.c: Ditto.
1825         * libc/sys/linux/time.c: Ditto.
1826         * libc/sys/linux/wait.c: Ditto.
1827         * libc/sys/linux/ids.c: Change header plus add setfsgid/setfsuid.
1828         * libc/sys/linux/io.c: Change header plus add readv/writev.
1829         * libc/sys/linux/signal.c: Change header plus change sigsuspend to
1830         use __sigsuspend syscall.
1831         * libc/sys/linux/select.c: Change header plus change select to
1832         use _newselect syscall.
1833         * libc/sys/linux/sys/cdefs.h: Add a number of standard definitions
1834         used by glibc header files.
1835         * libc/sys/linux/sys/types.h: Add __socklen_t and __useconds_t
1836         types.
1837
1838 2002-04-01  Jeff Johnston  <jjohnstn@redhat.com>
1839
1840         * libc/include/sys/reent.h (_REENT_INIT_PTR): New macro for
1841         initializing a struct _reent that has been dynamically allocated.
1842         (_REENT_CHECK_MISC): New macro that checks _misc struct for
1843         _REENT_SMALL and does nothing otherwise.
1844         (_REENT_STRTOK_LAST): New macro for reentrant strtok.
1845         (_REENT_MBLEN_STATE): New macro for reentrant mblen.
1846         (_REENT_MBTOWC_STATE): New macro for reentrant mbtowc.
1847         (_REENT_WCTOMB_STATE): New macro for reentrant wctomb.
1848         [_REENT_SMALL](struct _misc_reent): New structure containing
1849         miscellaneous reentrant areas needed by newlib.
1850         [_REENT_SMALL](struct _reent): Add _misc pointer.
1851         [_REENT_SMALL](_REENT_INIT_MISC): New macro.
1852         * libc/string/strtok (strtok): Change to use _REENT_CHECK_MISC
1853         and _REENT_STRTOK_LAST macros.
1854         * libc/stdlib/mblen (mblen): Change to use _REENT_CHECK_MISC
1855         and _REENT_MBLEN_STATE macros.
1856         * libc/stdlib/mbtowc (mbtowc): Change to use _REENT_CHECK_MISC
1857         and _REENT_MBTOWC_STATE macros.
1858         * libc/stdlib/wctomb (wctomb): Change to use _REENT_CHECK_MISC
1859         and _REENT_WCTOMB_STATE macros.
1860
1861 2002-04-01  Till Straumann <strauman@SLAC.Stanford.EDU>
1862
1863         * libc/stdlib/getenv_r.c (_findenv_r): Add missing ENV_UNLOCK.
1864
1865 Wed Mar 27 07:34:44 2002  Jason Tishler <jason@tishler.net>
1866
1867         * libc/include/sys/features.h (_POSIX_SEMAPHORES): New Cygwin define.
1868
1869 Tue Mar 26 17:17:10 2002  J"orn Rennecke <joern.rennecke@superh.com>
1870
1871         * libc/machine/sh/memcpy.S (Large): Fix alignment rounding.
1872         Store high part of leading bytes too.
1873
1874 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
1875
1876         * libm/math/ef_hypot.c: Increase scale factor to 68.
1877
1878 2002-03-13  Alexandre Oliva  <aoliva@redhat.com>
1879
1880         * libc/machine/mips/strlen.c (strlen) [__mips16]: Fix off-by-two
1881         error.
1882
1883 2002-03-12  Jeff Johnston  <jjohnstn@redhat.com>
1884
1885         * libc/sys/go32/access.c: Change license to relaxed license
1886         used in identical file throughout newlib/libgloss.
1887
1888 2002-03-12  Richard Earnshaw  <rearnsha@arm.com>
1889
1890         * libc/sys/arm/access.c: New file.
1891         * libc/sys/arm/Makefile.am (lib_a_SOURCES): Add access.c.
1892         * libc/sys/arm/Makefile.in: Regenerate.
1893         * libc/sys/arm/syscalls.c (_stat): New function.
1894
1895 2002-03-11  Michael Meissner  <meissner@redhat.com>
1896
1897         * libc/machine/mips/Makefile.am (lib_a_SOURCES): Add Mips specific
1898         variants strlen.c, strcmp.c, strncpy.c, memset.c and memcpy.c.
1899         * libc/machine/mips/Makefile.in: Regenerate.
1900         * libc/machine/mips/memcpy.c: New file, optimized for MIPS.
1901         * libc/machine/mips/memset.c: Dito.
1902         * libc/machine/mips/strcmp.c: Dito.
1903         * libc/machine/mips/strlen.c: Dito.
1904         * libc/machine/mips/strncmp.c: Dito.
1905
1906 2002-03-06  Jeff Johnston  <jjohnstn@redhat.com>
1907
1908         * libc/machine/i386/Makefile.am: Add $(oext) for setjmp
1909         object so it works for shared library or statici library.
1910         * libc/machine/i386/Makefile.in: Regenerated.
1911
1912 Wed Mar  6 10:24:26 2002  J"orn Rennecke <joern.rennecke@superh.com>
1913
1914         * libc/machine/sh/Makefile.am (lib_a_SOURCES, SH64 case):
1915         Add memcpy.S, memset.S and strcpy.S.
1916         * libc/machine/sh/Makefile.in: Regenerate.
1917         * libc/machine/sh/asm.h (_ENTRY): Set SH5 alignment to 8 bytes.
1918         (SHHI, SHLO): Define.
1919         * libc/machine/sh/memset.S: Add code for SH5.
1920         * libc/machine/sh/memset.S: Likewise.
1921         * libc/machine/sh/strcpy.S: Likewise.
1922
1923 2002-02-27  Jeff Johnston  <jjohnstn@redhat.com>
1924
1925         * configure.host: Add check for --disable-newlib-io-float
1926         configuration option and add -DNO_FLOATING_POINT to newlib cflags
1927         if appropriate.
1928         * acinclude.m4: Added --disable-newlib-io-float option.
1929         * aclocal.m4: Regenerated.
1930         * configure: Ditto.
1931         * doc/aclocal.m4 doc/configure libc/aclocal.m4 libc/configure
1932         * libc/*/aclocal.m4 libc/*/configure 
1933         * libm/*/aclocal.m4 libm/*/configure: Ditto.
1934         * libc/stdio/vfprintf.c [!INTEGER_ONLY]: Only set FLOATING_POINT
1935         if NO_FLOATING_POINT flag is not defined.
1936
1937 2002-02-25  Jeff Johnston  <jjohnstn@redhat.com>
1938
1939         * libc/include/sys/config.h: Add __extension__ in front of
1940         long long references.
1941
1942 2002-02-23  Corinna Vinschen  <corinna@vinschen.de>
1943
1944         * libc/include/sys/stat.h (_fstat): Don't declare when compiling Cygwin.
1945         (_stat): Ditto.
1946
1947 2002-02-23  Corinna Vinschen  <corinna@vinschen.de>
1948
1949         * libc/sys/cygwin/sys/dirent.h (struct __DIR): Use __off32_t instead
1950         of off_t.
1951
1952 2002-02-20  Nick Clifton  <nickc@cambridge.redhat.com>
1953
1954         * libc/machine/xscale/strchr.c (strchr): Add 'r1' to the list of
1955         clobbered registers.
1956
1957 2002-02-19  Thomas Fitzsimmons  <fitzsim@redhat.com>
1958
1959         * configure.host (newlib_cflags): When host is in m68* add
1960         -DCOMPACT_CTYPE.
1961
1962 2002-02-15  Jeff Johnston  <jjohnstn@redhat.com>
1963
1964         * libc/include/sys/config.h: Add definitions for
1965         __int16_t, __uint16_t, __int64_t, and __uint64_t.
1966
1967 2002-02-12  Hans-Peter Nilsson  <hp@bitrange.com>
1968
1969         * libc/sys/mmixware/link.c: New.
1970         * libc/sys/mmixware/sys/syscall.h (TRAP1i, I3f): Make asm
1971         volatile.
1972         * libc/sys/mmixware/times.c (_times): Renamed from times.
1973         * libc/sys/mmixware/open.c (_open): Attempt to handle O_APPEND
1974         properly by reading previous contents, not through BinaryReadWrite.
1975         * libc/sys/mmixware/Makefile.am (lib_a_SOURCES): Add link.c
1976         * libc/sys/mmixware/Makefile.in: Regenerate.
1977
1978 2002-02-10  Corinna Vinschen  <corinna@vinschen.de>
1979
1980         * libc/include/grp.h: Don't declare group functions when compiling
1981         Cygwin.
1982
1983 2002-02-09  Corinna Vinschen  <corinna@vinschen.de>
1984
1985         * libc/include/grp.h: Include Cygwin specific header.
1986         * libc/include/sys/stat.h: Ditto.  Don't define `struct stat'
1987         when compiling for Cygwin.
1988         * libc/include/sys/types.h: Don't define off_t, uid_t
1989         and gid_t when compiling for Cygwin.
1990
1991 2002-02-08  matthew green  <mrg@redhat.com>
1992
1993         * libc/include/sys/reent.h (_REENT_CHECK_EMERGENCY): Allocate
1994         _REENT_EMERGENCY_SIZE, not sizeof(char *).
1995
1996 2002-02-08  Alexandre Oliva  <aoliva@redhat.com>
1997
1998         Contribute sh64-elf.
1999         2001-03-13  Alexandre Oliva  <aoliva@redhat.com>
2000         * configure.host (newlib_cflags) [sh*-*-*]: Enable long long
2001         support in printf.
2002         2001-01-29  Alexandre Oliva  <aoliva@redhat.com>
2003         * libc/machine/sh/setjmp.S [SH5]: Switch to SHmedia mode before
2004         any labels.
2005         2001-01-24  Alexandre Oliva  <aoliva@redhat.com>
2006         * libc/sys/sh/trap.S (___trap34) [SH5]: Don't trash r2.
2007         2000-12-16  Alexandre Oliva  <aoliva@redhat.com>
2008         * libc/machine/sh/configure.in: Rework conditionals.
2009         * libc/machine/sh/Makefile.am: Likewise.
2010         * libc/machine/sh/configure, libc/machine/sh/Makefile.in: Rebuilt.
2011         2000-12-01  Alexandre Oliva  <aoliva@redhat.com>
2012         * configure.host: Match `sh*'.
2013         * libc/include/machine/setjmp.h: Define for SH5.
2014         * libc/machine/sh/configure.in: Detect SH5.
2015         * libc/machine/sh/configure: Rebuilt.
2016         * libc/machine/sh/Makefile.am: Use only setjmp.S for SH5.
2017         * libc/machine/sh/Makefile.in: Rebuilt.
2018         * libc/machine/sh/asm.h: Adjust for SH5.
2019         * libc/machine/sh/setjmp.S: Implement in SHmedia.
2020         * libc/sys/sh/crt0.S: Likewise.
2021         * libc/sys/sh/trap.S: Likewise.
2022
2023 2002-02-07  Jeff Johnston  <jjohnstn@redhat.com>
2024
2025         * libc/machine/i386/Makefile.am: (mach_add_src): Remove.
2026         (mach_add_obj): Conditionally set to setjmp.o or nothing.
2027         (LIB_SOURCES): Remove $(mach_add_src).
2028         (lib_a_LIBADD, lib_a_DEPENDENCIES): Add and set to $(mach_add_src).
2029         (lib_la_LIBADD, lib_la_DEPENDENCIES): Ditto.
2030         * libc/machine/i386/Makefile.in: Regenerate.
2031
2032 2002-02-05  Manik Raina <manik@cisco.com>
2033
2034         * libc/misc/dprintf.c (parse_number): #if 0 unused function.
2035         * libc/stdlib/ldtoa.c (_ldcheck): Remove unused local variables
2036         s, p, k, and outstr.
2037         * libc/stdlib/dtoa.c (_dtoa_r): Initialize mlo.
2038
2039 2002-02-04  Jeff Johnston  <jjohnstn@redhat.com>
2040
2041         * libc/include/sys/reent.h [(!_REENT_SMALL]: Add
2042         _REENT_CHECK_EMERGENCY macro.
2043
2044 2002-02-03  matthew green  <mrg@redhat.com>
2045
2046         * libc/reent/signgam.c (__signgam): Fix error in previous.
2047
2048 2002-02-02  matthew green  <mrg@redhat.com>
2049
2050         * libc/include/sys/config.h (_REENT_SMALL): Define for Xstormy16.
2051
2052         * libc/reent/reent.c (_reclaim_reent): Clean for _REENT_SMALL case.
2053         * libc/reent/reent.tex: Add blurb about _REENT_SMALL.
2054         * libc/include/sys/reent.h (struct _reent): Completely new version
2055         for _REENT_SMALL.
2056         (_REENT_INIT): New defines, different defintion depending on _REENT_SMALL.
2057         (_REENT_CHECK, _REENT_CHECK_TM): Likewise.
2058         (_REENT_CHECK_ASCTIME_BUF, _REENT_INIT_RAND48): Likewise.
2059         (_REENT_CHECK_RAND48, _REENT_INIT_MP, _REENT_CHECK_MP): Likewise.
2060         (_REENT_CHECK_EMERGENCY, _REENT_SIGNGAM, _REENT_RAND_NEXT): Likewise.
2061         (_REENT_RAND48_SEED, _REENT_RAND48_MULT, _REENT_RAND48_ADD): Likewise.
2062         (_REENT_MP_RESULT, _REENT_MP_RESULT_K, _REENT_MP_P5S): Likewise.
2063         (_REENT_MP_FREELIST, _REENT_ASCTIME_BUF, _REENT_TM): Likewise.
2064         (_REENT_EMERGENCY): Likewise.
2065
2066         * libc/include/sys/reent.h (struct __sFILE_fake): New struct, same as
2067         the start of the real __sFILE, used for stdin, stdout and stderr until
2068         they are setup properly.
2069         (struct __sFILE): Move location of _data in _REENT_SMALL case.
2070         * libc/stdio/findfp.c (__sinit): Rearrange for _REENT_SMALL case by
2071         allocated stdin, stdout and stderr.
2072         * libc/stdio/getchar.c (_getchar_r): Call _REENT_SMALL_CHECK_INIT().
2073         * libc/stdio/iprintf.c (iprintf, _iprintf_r): Likewise.
2074         * libc/stdio/perror.c (_perror_r): Likewise.
2075         * libc/stdio/printf.c (printf, _printf_r): Likewise.
2076         * libc/stdio/putchar.c (_putchar_r): Likewise.
2077         * libc/stdio/puts.c (_puts_r): Likewise.
2078         * libc/stdio/scanf.c (scanf, _scanf_r): Likewise.
2079         * libc/stdio/vprintf.c (vprintf): Likewise.
2080         * libc/stdio/vscanf.c (vscanf, _vscanf_r): Likewise.
2081
2082         * libc/stdio/tmpnam.c (_tmpnam_r): Use _REENT_EMERGENCY().
2083
2084         * libc/reent/reent.c (_wrapup_reent): Adjust for _REENT_SMALL atexit.
2085         * libc/include/sys/reent.h (_atexit): Limit atexit() entries to 32
2086         for _REENT_SMALL.
2087         * libc/stdlib/atexit.c (atexit): Rearrange for _REENT_SMALL case.
2088         * libc/stdlib/exit.c (exit): Rearrange for _REENT_SMALL case.
2089
2090         * libc/include/sys/reent.h (struct _rand48): Keep _rand_next if
2091         _REENT_SMALL.
2092         * libc/stdlib/drand48.c (_drand48_r): Call _REENT_CHECK_RAND48().
2093         * libc/stdlib/lcong48.c (_lcong48_r): Likewise.
2094         * libc/stdlib/lrand48.c (_lrand48_r): Likewise.
2095         * libc/stdlib/mrand48.c (_mrand48_r): Likewise.
2096         * libc/stdlib/rand48.c (__dorand48): Likewise.
2097         * libc/stdlib/seed48.c (_seed48_r): Likewise.
2098         * libc/stdlib/srand48.c (_srand48_r): Likewise.
2099         * libc/stdlib/rand48.h (__rand48_seed, __rand48_mult, __rand48_add): Define
2100         as _REENT_RAND48_SEED(), _REENT_RAND48_MULT() and _REENT_RAND48_ADD().
2101         * libc/stdlib/dtoa.c (_dtoa_r): Call _REENT_CHECK_MP().  Use
2102         _REENT_MP_RESULT() and _REENT_MP_RESULT_K().
2103         * libc/stdlib/ldtoa.c (_ldtoa_r): Likewise.
2104         * libc/stdlib/rand.c (srand): Use _REENT_RAND_NEXT().
2105         * libc/stdlib/rand.c (rand): Likewise.
2106
2107         * libc/stdlib/mallocr.c (malloc_stats): Call _REENT_SMALL_CHECK_INIT().
2108         * libc/stdlib/mstats.c (_mstats_r): Call _REENT_SMALL_CHECK_INIT().
2109
2110         * libc/stdlib/mprec.c (Balloc): Call _REENT_CHECK_MP.  Use
2111         _REENT_MP_FREELIST() and _REENT_MP_P5S.
2112         * libc/include/sys/reent.h (struct _mprec): New structure.
2113
2114         * libc/include/sys/reent.h (struct _reent): Rename _strtok_last to
2115         _unused_strtok_last.
2116         * libc/string/strtok.c (strtok): Use a local static variable.
2117
2118         * libc/include/sys/reent.h (_REENT_ASCTIME_SIZE): New define.
2119         (_REENT_EMERGENCY_SIZE): Likewise.
2120         * libc/time/asctime.c (asctime): Call _REENT_CHECK_ASCTIME_BUF().  Use
2121         _REENT_ASCTIME_BUF().
2122         * libc/time/lcltime.c (localtime): Call _REENT_CHECK_TM().  Use
2123         _REENT_TM().
2124
2125         * libc/include/math.h (__singam_r): Use _REENT_SIGNGAM().
2126         * libc/reent/signgam.c (__signgam): Use _REENT_SIGNGAM().
2127         * libm/math/w_gamma.c (gamma): Use _REENT_SIGNGAM().
2128         * libm/math/w_lgamma.c (lgamma): Use _REENT_SIGNGAM().
2129         * libm/math/wf_gamma.c (gammaf): Use _REENT_SIGNGAM().
2130         * libm/math/wf_lgamma.c (lgammaf): Use _REENT_SIGNGAM().
2131
2132 2002-02-01  Geoffrey Keating  <geoffk@redhat.com>
2133
2134         * configure.host (xstormy16): Don't use the generic malloc.
2135         * libc/machine/xstormy16/Makefile.am: Build tiny-malloc.
2136         * libc/machine/xstormy16/Makefile.in: Regenerate.
2137         * libc/machine/xstormy16/mallocr.c: New file.
2138         * libc/machine/xstormy16/tiny-malloc.c: New file.
2139
2140 2002-01-28  Thomas Fitzsimmons  <fitzsim@redhat.com>
2141
2142         * libc/include/sys/signal.h [__CYGWIN__]: Issue error message
2143         when _CYGWIN_TYPES_H is not defined.
2144
2145 2002-01-24  Thomas Fitzsimmons  <fitzsim@redhat.com>
2146
2147         * libc/include/sys/signal.h: Revert 2002-01-23 change.
2148
2149 2002-01-23  Thomas Fitzsimmons  <fitzsim@redhat.com>
2150
2151         * libc/include/sys/signal.h: Remove pthread_kill declaration
2152         when __CYGWIN__ is defined.
2153
2154 2002-01-18  Mark Bradshaw  <bradshaw@staff.crosswalk.com>
2155
2156         * libc/include/time.h: Add prototype for strptime for Cygwin.
2157
2158 2002-01-17  Nick Clifton  <nickc@cambridge.redhat.com>
2159
2160         * libc/machine/xscale/memset.c (memset): Fix bug when len == 1 and
2161         dst was not word aligned.
2162
2163         * libc/sys/arm/syscalls.c (_sbrk): Return -1 rather than aborting
2164         if too much memory is requested.
2165
2166 2002-01-11 Jeff Johnston  <jjohnstn@redhat.com>
2167
2168         * libc/stdio/vfscanf.c (__svfscanf_r): Change loop that
2169         reads blanks from the input file to break if EOF reached
2170         rather than end processing.
2171
2172 2002-01-07 Jeff Johnston  <jjohnstn@redhat.com>
2173
2174         * MAINTAINERS: Change e-mail addresses to refer to redhat domain.
2175
2176 2002-01-07 Alan Matsuoka <alanm@redhat.com>
2177
2178         * libc/include/machine/ieeefp.h: Configure d10v doubles to
2179         be 32 bits if __DOUBLE__ == 32  otherwise doubles are 64 bits.
2180         libc/include/sys/config.h: Ditto.
2181
2182 2001-12-28  Corinna Vinschen  <corinna@vinschen.de>
2183
2184         * libc/sys/cygwin/sys/utmp.h: Add definition of UTMP_FILE.
2185
2186 2001-12-22  Geoffrey Keating  <geoffk@redhat.com>
2187             Catherine Moore  <clm@redhat.com>
2188             Richard Henderson  <rth@redhat.com>
2189             Corinna Vinschen  <vinschen@redhat.com>
2190
2191         * configure.host: Add support for xstormy16.
2192         * libc/include/machine/ieeefp.h: Add support for xstormy16.
2193         * libc/include/machine/setjmp.h: Add support for xstormy16.
2194         * libc/include/sys/config.h: Add support for xstormy16.
2195         * libc/machine/xstormy16/Makefile.am: New file.
2196         * libc/machine/xstormy16/Makefile.in: New file.
2197         * libc/machine/xstormy16/aclocal.m4: New file.
2198         * libc/machine/xstormy16/configure: New file.
2199         * libc/machine/xstormy16/configure.in: New file.
2200         * libc/machine/xstormy16/setjmp.S: New file.
2201
2202 2001-12-19  Thomas Fitzsimmons  <fitzsim@redhat.com>
2203
2204         * libm/machine/configure.in (HAVE_LIBM_MACHINE_DIR): New conditional.
2205         * libm/machine/Makefile.am [HAVE_LIBM_MACHINE_DIR] (LIBM_MACHLIB): New variable.
2206
2207 2001-12-19  Corinna Vinschen  <corinna@vinschen.de>
2208
2209         * libm/machine/Makefile.am: Change rules to create correct lib.a.
2210         * libm/machine/Makefile.in: Regenerated through automake.
2211
2212 2001-12-18  Thomas Fitzsimmons  <fitzsim@redhat.com>
2213
2214         * Makefile.am (DOCDIR): Force to empty string when doc
2215         directory is not present.
2216
2217 2001-12-18  Thomas Fitzsimmons  <fitzsim@redhat.com>
2218
2219         * libc/machine/i386/f_*: Move to libm/machine/i386.
2220
2221 2001-12-18      Joel Sherrill <joel@OARcorp.com>
2222
2223         * libm/machine/Makefile.am: Add dummy doc stub so
2224         "make info" works.
2225
2226 2001-12-17      Joel Sherrill <joel@OARcorp.com>
2227
2228         * libc/include/sys/types.h (ino_t): RTEMS uses long also.
2229
2230 2001-12-17  Thomas Fitzsimmons  <fitzsim@redhat.com>
2231
2232         * libc/stdlib/Makefile.am (LIB_COMPILE): Change to equal
2233         $(COMPILE) rather than $(CC).
2234         * libc/stdio/Makefile.am (LIB_COMPILE): Likewise.
2235         (vfprintf.$(oext)): Remove $(INCLUDES), made redundant by
2236         $(LIB_COMPILE) change.
2237         (vfiprintf.$(oext)): Likewise.
2238
2239 2001-12-17  Corinna Vinschen  <vinschen@redhat.de>
2240
2241         * libc/sys/cygwin/include/unistd.h: Add __UNISTD_GETOPT_ to allow
2242         conditionalized including of getopt stuff.
2243
2244 2001-12-14  Thomas Fitzsimmons  <fitzsim@redhat.com>
2245
2246         * libc/stdio/Makefile.am (vfprintf.$(oext)): Add $(INCLUDES) to
2247         compile line.
2248         (vfiprintf.$(oext)): Likewise.
2249
2250 2001-12-13  Thomas Fitzsimmons  <fitzsim@redhat.com>
2251
2252         * Makefile.shared: New file.
2253         * libc/sys/linux/shared.ld: New file.
2254         * libm/machine/*: New files.
2255         * libm/machine/i386/*: New files.
2256         * Makefile.am: Add libtool support.  Change math and mathfp
2257         references to variables.
2258         * configure.host: Add variables for libtool support.  Add
2259         libm_machine_dir variable.
2260         * configure.in: Add objectlist variables, for libtool
2261         support.  Add CC_FOR_BUILD tests.
2262         * libc/Makefile.am: Add libtool support.  Change crt0.o
2263         reference to be a variable reference.
2264         * libc/configure.in: Add libtool support.  Change sublib
2265         names to be lib${subdir}.la when using libtool.
2266         * libc/ctype/Makefile.am: Add libtool support.
2267         * libc/errno/Makefile.am: Likewise.
2268         * libc/locale/Makefile.am: Likewise.
2269         * libc/machine/Makefile.am: Likewise.
2270         * libc/machine/configure.in: Likewise.
2271         * libc/machine/i386/Makefile.am: Likewise.
2272         * libc/machine/i386/configure.in: Likewise.
2273         * libc/misc/Makefile.am: Likewise.
2274         * libc/posix/Makefile.am: Likewise.
2275         * libc/reent/Makefile.am: Likewise.
2276         * libc/signal/Makefile.am: Likewise.
2277         * libc/stdio/Makefile.am: Likewise.
2278         * libc/stdlib/Makefile.am: Likewise.
2279         * libc/string/Makefile.am: Likewise.
2280         * libc/sys/Makefile.am: Likewise.
2281         * libc/sys/configure.in: Likewise.
2282         * libc/sys/linux/Makefile.am: Add libtool support.  Change
2283         awk reference to a variable reference.  Change signal.h
2284         reference to a variable reference.
2285         * libc/sys/linux/configure.in: Add libtool support.
2286         * libc/syscalls/Makefile.am: Likewise.
2287         * libc/time/Makefile.am: Likewise.
2288         * libc/unix/Makefile.am: Likewise.
2289         * libm/Makefile.am: Add libtool support.  Change math and
2290         mathfp references to variables.
2291         * libm/configure.in: Add libtool support.  Add
2292         LIBM_MACHINE_LIB variable.
2293         * libm/common/Makefile.am: Add libtool support.
2294         * libm/math/Makefile.am: Likewise.
2295         * libm/mathfp/Makefile.am: Likewise.
2296         Regenerate all Makefile.in, aclocal.m4, and configure.
2297
2298 2001-12-13 Anita Kulkarni <anitak@kpit.com>
2299
2300         * libc/sys/sh/crt0.S: Remove stack symbol definition 0xdeaddead.
2301
2302 2001-12-06  John Peacock <jpeacock@rowman.com>
2303
2304         * libc/include/sys/unistd.h: Correct ualarm declaration.
2305
2306 2001-12-05  Nick Clifton  <nickc@cambridge.redhat.com>
2307
2308         * libc/sys/arm/crt0.S: For __USES_INITFINI__ preserve the argument
2309         vector before calling the initialisation functions.
2310
2311 2001-11-29  Christopher Faylor  <cgf@redhat.com>
2312
2313         * libc/include/dirent.h: Protect against multiple inclusion.
2314
2315 2001-11-27  Christopher Faylor  <cgf@redhat.com>
2316
2317         * libc/include/sys/types.h: Define useconds_t.
2318         * libc/include/sys/ulimit.h: Declare ualarm.
2319
2320 2001-11-21  Christopher Faylor  <cgf@redhat.com>
2321
2322         * libc/sys/cygwin/sys/dirent.h (DIR): Add another internal element.
2323
2324 2001-11-19  Hans-Peter Nilsson  <hp@bitrange.com>
2325
2326         * libc/sys/mmixware/*: Tweak license header in all source files.
2327
2328 2001-11-12  Corinna Vinschen  <vinschen@redhat.com>
2329
2330         * libc/include/alloca.h: Move libc/sys/linux/include/alloca.h
2331         to here.  Rearrange for general inclusion by stdlib.h.
2332         * libc/include/stdlib.h: Include <alloca.h> if __STRICT_ANSI__
2333         isn't defined.
2334         * libc/sys/linux/include/alloca.h: Move to libc/include.
2335
2336 2001-11-12  Anthony Green  <green@redhat.com>
2337
2338         * libc/sys/arm/crt0.S (__stack_base__): New symbol.
2339
2340 2001-11-13  Hans-Peter Nilsson  <hp@bitrange.com>
2341
2342         * libc/sys/mmixware/*: Correct spacing in all source files.
2343         * libc/sys/mmixware/syscall.h: Move misplaced file...
2344         * libc/sys/mmixware/sys/syscall.h: ...here.
2345
2346 2001-11-12  Hans-Peter Nilsson  <hp@bitrange.com>
2347
2348         * libc/include/machine/ieeefp.h: Add support for mmix target.
2349         * libc/include/machine/setjmp.h: Ditto.
2350         * configure.host: Ditto.
2351         * libc/sys/mmixware/Makefile.am, libc/sys/mmixware/_exit.c,
2352         libc/sys/mmixware/access.c, libc/sys/mmixware/aclocal.m4,
2353         libc/sys/mmixware/chmod.c, libc/sys/mmixware/chown.c,
2354         libc/sys/mmixware/close.c, libc/sys/mmixware/configure.in,
2355         libc/sys/mmixware/creat.c, libc/sys/mmixware/crt0.c,
2356         libc/sys/mmixware/execv.c, libc/sys/mmixware/execve.c,
2357         libc/sys/mmixware/fork.c, libc/sys/mmixware/fstat.c,
2358         libc/sys/mmixware/getpid.c, libc/sys/mmixware/gettime.c,
2359         libc/sys/mmixware/isatty.c, libc/sys/mmixware/kill.c,
2360         libc/sys/mmixware/lseek.c, libc/sys/mmixware/open.c,
2361         libc/sys/mmixware/pipe.c, libc/sys/mmixware/read.c,
2362         libc/sys/mmixware/sbrk.c, libc/sys/mmixware/setjmp.S,
2363         libc/sys/mmixware/stat.c, libc/sys/mmixware/sys/syscall.h,
2364         libc/sys/mmixware/time.c, libc/sys/mmixware/times.c,
2365         libc/sys/mmixware/unlink.c, libc/sys/mmixware/utime.c,
2366         libc/sys/mmixware/wait.c, libc/sys/mmixware/write.c: New files.
2367         * libc/sys/mmixware/configure, libc/sys/mmixware/Makefile.in,
2368         libc/sys/mmixware/aclocal.m4: Generate.
2369
2370 2001-11-05  Corinna Vinschen  <corinna@vinschen.de>
2371
2372         * libc/include/sys/unistd.h: Add prototypes for endusershell(),
2373         getusershell(), iruserok(), revoke(), ruserok() and setusershell()
2374         when __CYGWIN__ is defined.
2375         * libc/sys/cygwin/sys/utmp.h: Add prototypes for login_tty() and
2376         logwtmp().
2377
2378 2001-11-01  Arati Dikey  <aratidikey@hotmail.com>
2379
2380         * libm/mathfp/sf_isinf.c (isinff): Change to use _DEFUN macro.
2381         [_DOUBLE_IS_32BITS](isinf): New function that calls isinff.
2382         * libm/mathfp/sf_isnan.c (isnanf): Change to use _DEFUN macro.
2383         [_DOUBLE_IS_32BITS](isnan): New function that calls isnanf.
2384
2385 2001-10-24  Christopher Faylor  <cgf@redhat.com>
2386
2387         * libc/stdio/fseek.c: Reset pointer to buffer base
2388         when forced to seek outside of current buffer contents.
2389         This prevents the code from erroneously thinking there is
2390         anything in the current buffer.
2391
2392 2001-10-22  Geoffrey Keating  <geoffk@redhat.com>
2393
2394         * libc/include/math.h: The C++ standard adds the single-precision
2395         versions of the elementary functions.
2396
2397 2001-10-22  Christopher Faylor  <cgf@redhat.com>
2398
2399         * libc/posix/execvp.c: Remove obsolete CYGWIN32 considerations
2400         throughout.
2401         * signal.h: Change comment to reflect __CYGWIN__ rather than __CYGWIN32__.
2402         * popen.c (popen): Use __CYGWIN_ rather than __CYGWIN32__.
2403         * system.c (_system_r): Ditto.
2404
2405 2001-10-17  Corinna Vinschen  <corinna@vinschen.de>
2406
2407         * libc/include/sys/unistd.h: Add prototype for fchdir() when
2408         __CYGWIN__ or __rtems__ is defined.
2409
2410 2001-10-01  Charles Wilson  <cwilson@ece.gatech.edu>
2411
2412         * libc/include/stdlib.h: add declarations for
2413         _strtoull_r, _strtoll_r, strtoull, and strtoll.
2414         * libc/stdio/local.h: remove declarations of
2415         __strtoull_r and __strtoll_r.
2416         * libc/stdio/vfscanf.c(__svfscanf_r): call
2417         _strtoull_r instead of __strtoull_r. Ditto
2418         _strtoll_r vs. __strtoll_r.
2419         * libc/stdlib/Makefile.am: add new files to
2420         .c list and .def list
2421         * libc/stdlib/Makefile.in: regenerate
2422         * libc/stdlib/strtoll_r.c: rename __strtoll_r
2423         as _strtoll_r
2424         * libc/stdlib/strtoull_r.c: rename __strtoull_r
2425         as _strtoull_r
2426         * libc/stdlib/strtoull.c: new file
2427         * libc/stdlib/strtoll.c: new file
2428
2429 Mon Sep 17 17:29:47 2001  Christopher Faylor <cgf@cygnus.com>
2430
2431         * libc/include/process.h: Add getpid() declaration.
2432
2433 2001-09-14  Nick Clifton  <nickc@cambridge.redhat.com>
2434
2435         * libc/sys/arm/crt0.S: Add calls to _init and _fini (via atexit)
2436         for new style arm/elf ctor/dtor handling.
2437         Minor formatting tidy up.
2438
2439 2001-09-13  Jeff Johnston  <jjohnstn@redhat.com>
2440
2441         * libc/stdlib/Makefile.am: Add support to build strtoll_r.c
2442         and strtoull_r.c.
2443         * libc/stdlib/Makefile.in: Regenerated.
2444         * libc/stdlib/strtoll_r.c: New file.
2445         * libc/stdlib/strtoull_r.c: New file.
2446         * libc/stdio/local.h: Add prototypes for long long string
2447         conversion routines.
2448         * libc/stdio/vfscanf.c (__svfscanf_r): Add optional long long support
2449         tied to %L integer conversion specifier.
2450
2451 Thu Sep 13 08:49:49 2001  Jason Tishler <jason@tishler.net>
2452
2453         * strftime.c (strftime): Fix "%W" implementation to properly handle
2454         Mondays too.
2455
2456 2001-09-07  Jeff Law  <law@redhat.com>
2457
2458         * libc/sys/h8300hms/crt0.S: For H8/300H and H8/S, load address of
2459         __fini with "mov.l" instead of "mov.w".
2460
2461 2001-09-05  Corinna Vinschen  <corinna@vinschen.de>
2462
2463         * libc/sys/cygwin/include/unistd.h: New file, wrapping sys/unistd.h
2464         and getopt.h.
2465
2466 2001-09-04  Jason Merrill  <jason_merrill@redhat.com>
2467
2468         * libc/sys/h8300hms/crt0.S: Support ELF initialization.
2469
2470 2001-09-03  Corinna Vinschen  <corinna@vinschen.de>
2471
2472         * libc/sys/cygwin/sys/dirent.h (struct dirent): Add version number
2473         field.
2474         (__DIRENT_VERSION): New define.
2475
2476 2001-09-03  Corinna Vinschen  <corinna@vinschen.de>
2477
2478         * libc/sys/cygwin/sys/dirent.h (struct dirent): Add `d_fd' member.
2479         Shrink __d_reserved accordingly to keep structure size.
2480         (dirfd): Declare external.
2481
2482 2001-08-29  Joel Sherrill <joel@OARcorp.com>
2483
2484         * libc/include/sys/unistd.h: Prototype chroot() for RTEMS.
2485
2486 2001-08-29  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
2487
2488         * libc/machine/i386/f_atan2.S, libc/machine/i386/f_atan2f.S,
2489           libc/machine/i386/f_exp.c, libc/machine/i386/f_expf.c,
2490           libc/machine/i386/f_frexp.S, libc/machine/i386/f_frexpf.S,
2491           libc/machine/i386/f_ldexp.S, libc/machine/i386/f_ldexpf.S,
2492           libc/machine/i386/f_log.S, libc/machine/i386/f_log10.S,
2493           libc/machine/i386/f_log10f.S, libc/machine/i386/f_logf.S,
2494           libc/machine/i386/f_pow.c, libc/machine/i386/f_powf.c,
2495           libc/machine/i386/f_tan.S, libc/machine/i386/f_tanf.S:
2496         Add conditional compilation to avoid HW FPU instructions
2497         when compiled for soft-float.
2498
2499 2001-08-29  Jeff Johnston  <jjohnstn@redhat.com>
2500
2501         * Makefile.am: Add check for ln failing when creating libg.a
2502         so that cp gets used as a backup.
2503         * Makefile.in: Regenerated.
2504
2505 2001-08-29  Jeff Johnston  <jjohnstn@redhat.com>
2506
2507         * libc/include/sys/reent.h: Add include of <sys/_types.h>.
2508         No longer include time.h.  Add struct __tm to use for
2509         _localtime_buf in the reentrant structure.  Add a
2510         _NULL definition to use in initializing the reentrant struct.
2511         * libc/include/sys/config.h: For CYGWIN32 and RTEMS, change
2512         the _READ_WRITE_RETURN_TYPE to _ssize_t which is found in
2513         <sys/_types.h>.
2514         * libc/include/sys/unistd.h: Include <sys/_types.h>.
2515         * libc/time/lcltime.c (localtime): Cast the reentrant struct
2516         _localtime_buf to be struct tm *.
2517
2518 Wed Aug 29 14:17:38 2001  J"orn Rennecke <amylaar@redhat.com>
2519
2520         * configure.host (h8300-*-elf*, h8500-*-elf*): New cases.
2521         * libc/sys/h8300hms/crt1.c (__main): Don't reference __ctors /
2522         __ctors_end.
2523         * libc/sys/h8300hms/syscalls.c: Include errno.h.
2524         (_unlink): New stub function.
2525
2526 Sat Aug 25 22:22:25 2001  Christopher Faylor <cgf@cygnus.com>
2527
2528         * libc/include/sys/errno.h: Add a cautionary comment.
2529
2530 2001-08-21  Jeff Johnston  <jjohnstn@redhat.com>
2531
2532         * libc/stdlib/mallocr.c [!defined(MALLOC_ALIGNMENT)]: Add conditional
2533         for SIZE_SZ so that alignment ends up a minimum of 8.
2534
2535 Mon Aug 13 22:26:01 2001  Christopher Faylor <cgf@cygnus.com>
2536
2537         * libc/include/machine/setjmp.h: Protect sigsetjmp/siglongjmp macro
2538         arguments.
2539
2540         * libc/include/sys/errno.h: Declare sys_errlist and sys_nerr, under
2541         Cygwin.
2542
2543 2001-08-13  Jeff Johnston  <jjohnstn@redhat.com>
2544
2545         * libc/include/malloc.h (M_MXFAST, M_NLBLKS, M_GRAIN, M_KEEP): New
2546         macro constants for mallopt options.
2547         (M_TRIM_THRESHOLD, M_TOP_PAD, M_MMAP_THRESHOLD, M_MMAP_MAX): Ditto.
2548
2549 2001-08-02  Jeff Johnston  <jjohnstn@redhat.com>
2550
2551         * libc/include/stdio.h (BUFSIZ): Define to __BUFSIZ__ if provided,
2552         otherwise default.
2553
2554 2001-07-12  Aldy Hernandez  <aldyh@redhat.com>
2555
2556         * libc/machine/mips/setjmp.S: Allow mips16 and mips64 to coexist.
2557
2558 2001-06-27  Nick Clifton  <nickc@cambridge.redhat.com>
2559
2560         * libc/include/machine/ieeefp.h (__IEEE_BYTES_LITTLE_ENDIAN):
2561         Define for little endian ARMs.
2562
2563         * libc/stdlib/mprec.h (Storeinc): Use little endian version if
2564         __IEEE_BYTES_LITTLE_ENDIAN is defined.
2565
2566 2001-06-11  Danny Smith  <dannysmith@users.sourceforge.net>
2567
2568         * /libc/include/ctype.h (is* and to* macros): Do not define if C++.
2569
2570 2001-06-11  Egor Duda  <deo@logos-m.ru>
2571
2572         * libc/ctype/ctype_.c: When compiled with gcc on platforms
2573         with signed char, make _ctype_[-128] ... _ctype[-1] refer to
2574         initialized memory region. Platform can define COMPACT_CTYPE
2575         to avoid allocation of the additional 128 bytes of data.
2576         Add pointer to _ctype_ array. Always initialize all _ctype_
2577         array elements.
2578
2579 2001-06-08  Jonathan Larmour  <jlarmour@redhat.com>
2580
2581         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Avoid dereferencing
2582         NULL pointer.
2583
2584 2001-05-28  Nick Clifton  <nickc@cambridge.redhat.com>
2585
2586         * libc/stdio/vfprintf.c (_VFPRINTF_R): Handle printf ("%#.0o",0)
2587
2588 2001-05-25  Nick Clifton  <nickc@cambridge.redhat.com>
2589
2590         * libc/machine/xscale/memcmp.c: Fix bug when both pointers have
2591         matching, non-word alignment, and the length is <= 4 but more than
2592         enough to move them over a word boundary.
2593         Add comments explaining what each instruction does.
2594
2595 Mon May  7 20:39:25 2001  Christopher Faylor <cgf@cygnus.com>
2596
2597         * libc/include/sys/stat.h: Revert March 3, Cygwin change.
2598         * libc/include/sys/unistd.h: Ditto.
2599
2600 2001-05-04  Earnie Boyd  <earnie@users.sourceforge.net>
2601
2602         * libc/string/strrchr.c: Use strchr for the speed improvements.
2603
2604 2001-05-01  Jeff Johnston  <jjohnstn@redhat.com>
2605
2606         * libc/stdio/findfp (__sinit)[HAVE_FCNTL]: For platforms that have
2607         real file systems, let __smakebuf() determine if line buffering
2608         should be used for stdout.
2609
2610 2001-04-27  Jeff Johnston  <jjohnstn@redhat.com>
2611
2612         * libc/stdio/vfscanf.c (__svfscanf_r): Initialize new_exp local var.
2613
2614 2001-04-27  Jeff Johnston  <jjohnstn@redhat.com>
2615
2616         * libc/include/stdlib.h: Add prototype for _strtod_r.
2617
2618 2001-04-24  Charles Wilson  <cwilson@ece.gatech.edu
2619
2620         * libc/stdio/vprintf.c (vprintf): fix signature to use _DEFUN
2621         * libc/stdio/vprintf.c (_vprintf_r): new function
2622         * libc/stdio/vsnprintf.c (vsnprintf): fix signature to use _DEFUN
2623         * libc/stdio/vsnprintf.c (_vsnprintf_r): fix signature to use
2624         _DEFUN, and call _vfprintf_r, not vfprintf.
2625         * libc/stdio/vsprintf.c (vsprintf.c): fix signature to use _DEFUN
2626         * libc/stdio/vsprintf.c (_vsprintf_r): fix signature to use
2627         _DEFUN, and call _vfprintf_r, not vfprintf.
2628
2629 2001-04-22  Earnie Boyd  <earnie@users.sourceforge.net>
2630   
2631         * libc/include/sys/unistd.h [X_OK]: Use better protection against
2632         Cygwin X_OK definitions in sys/file.h.
2633
2634 Fri Apr 20 23:17:51 2001  Christopher Faylor <cgf@cygnus.com>
2635
2636         * libc/include/sys/time.h: Define timercmp and other macros for
2637         __CYGWIN__, too.
2638
2639 2001-04-20  Jeff Johnston  <jjohnstn@redhat.com>
2640         
2641         * acinclude.m4: Added --enable-malloc-debugging configure flag.
2642         * configure.host: For Cygwin specify -DMALLOC_PROVIDED if
2643         --enable-malloc-debugging selected.
2644         * aclocal.m4 configure: Regenerated.
2645           libm/aclocal.m4 libm/configure: Ditto.
2646         * libc/aclocal.m4 libc/configure: Ditto.
2647         * libc/machine/aclocal.m4 libc/machine/configure: Ditto.
2648         * libc/machine/*/aclocal.m4 libc/machine/*/configure: Ditto.
2649         * libc/sys/aclocal.m4 libc/sys/configure: Ditto.
2650         * libc/sys/*/aclocal.m4 libc/sys/*/configure: Ditto.
2651         * doc/aclocal.m4 doc/configure: Ditto.
2652
2653 2001-04-20  Jeff Johnston  <jjohnstn@redhat.com>
2654
2655         * libc/include/stdio.h[!_REENT_ONLY]: Moved various functions together
2656         into one list.
2657         [!__STRICT_ANSI__]: Moved non-ANSI I/O functions in this list.
2658         (vfscanf, vscanf, vsscanf, _vfscanf_r, _vscanf_r, _vsscanf_r): New
2659         function prototypes.
2660         (_fscanf_r, _sscanf_r): Ditto.
2661         * libc/include/stdlib.h: Added _strtod_r prototype.
2662         * libc/stdio/Makefile.am: Add new v*scanf functions.
2663         * libc/stdio/Makefile.in: Regenerate.
2664         * libc/stdio/fscanf.c: Reorganized so HAVE_STDC only affects prototype
2665         and code is shared.  Added reentrant _fscanf_r which calls __svfscanf_r.
2666         * libc/stdio/scanf.c: Changed to call __svfscanf_r.
2667         * libc/stdio/sscanf.c: Changed documentation to add reentrant routines.
2668         (sscanf): Changed to call __svfscanf_r with _REENT argument.
2669         (_sscanf_r): New routine.
2670         * libc/stdio/local.h: Removed __svfscanf prototype and replaced it
2671         with __svfscanf_r prototype.
2672         * libc/stdio/vfscanf.c (vfscanf, _vfscanf_r: New
2673         routines.
2674         (__svfscanf_r): Reentrant version of __svfscanf which takes reetrancy
2675         structure as argument as calls reentrant versions of helper functions
2676         (e.g. _strtol_r, _strtoul_r). Also replaced calls to atol and atof
2677         to _strtol_r and _strtod_r respectively.
2678         * libc/stdio/vfscanf.c: Also changed __svfscanf to call __svfscanf_r.
2679         * libc/stdlib/strtod.c (strtod): Changed to call _strtod_r with
2680         _REENT argument.
2681         * libc/stdio/vscanf.c: New file.
2682         * libc/stdio/vsscanf.c: Ditto.
2683
2684 2001-04-19  Robert Collins  <rbtcollins@hotmail.com>
2685
2686         * include/time.h[__CYGWIN__]:  Define tzname to _tzname if not defined.
2687         Define daylight to _daylight if it is not defined
2688         Prepare a variable export of timezone based on timezonevariable. 
2689         (Cannot be used with the timezone() function.)
2690
2691 2001-04-17  Stephen L. Moshier  <moshier@moshier.ne.mediaone.net>
2692
2693         * newlib/libm/math/ef_asin.c (pio2_hi, pio2_lo, pio4_hi):
2694          Correct the numerical values.
2695
2696 2001-04-13  Robert Collins <rbtcollins@hotmail.com>
2697
2698         * libc/include/sys/unistd.h: Add pthread_atfork (Cygwin only).
2699
2700 Thu Apr 12 23:11:00 2001  Corinna Vinschen <corinna@vinschen.de>
2701
2702         * libc/include/sys/errno.h: Add ECASECLASH to indicate case clash
2703         on case insensitve file systems.
2704
2705 2001-04-12  Robert Collins <rbtcollins@hotmail.com>
2706
2707         * libc/include/sys/features.h: Add appropriate defines for Cygwin
2708         pthread support.
2709         * libc/include/sys/signal.h: Remove unneeded __CYGWIN__ protection.
2710         * libc/include/sys/types.h: Protect __CYGWIN__ from the rtems pthreads
2711         types.  Include <cygwin/types.h> for the cygwin specific typedefs.
2712
2713 2001-04-04  Richard Sandiford  <rsandifo@redhat.com>
2714
2715         * libc/include/machine/ieeefp.h: Comment about new configuration
2716         macros _FLT_LARGEST_EXPONENT_IS_NORMAL and _FLT_NO_DENORMALS.
2717         * libm/common/fdlib.h: Define new macros for testing floats.
2718         * libm/common/sf_*: Use them.
2719         * libm/math/ef_*: Likewise.
2720         * libm/math/sf_*: Likewise.
2721
2722 2001-03-29  Jeff Johnston  <jjohnstn@redhat.com>
2723
2724         * libc/sys/arm/setjmp.S: Added .code 16 specifier for thumb-mode
2725         prolog to by-pass possible assembler error.
2726
2727 2001-03-21  Egor Duda  <deo@logos-m.ru>
2728
2729         Allow building internal stubs for non-reentrant syscalls
2730         if target provides its own malloc
2731         * libc/reent/reent.c (errno): Move definition here.
2732         * libc/reent/sbrkr.c: From here.
2733
2734 2001-03-20  Danny Smith <dannysmith@users.sourceforge.net>
2735
2736         * libc/include/sys/types.h (BSD int typedefs): Guard with
2737         _BSDTYPES_DEFINED rather than _WINSOCK_H.
2738         (fd_set): Add !defined __USE_W32_SOCKETS to guard; define
2739         _SYS_TYPES_FD_SET.
2740         * libc/include/sys/unistd.h (gethostname): Don't declare if defined
2741         (_WINSOCK_H) || defined (__USE_W32_SOCKETS).
2742
2743 Sat Mar 17 18:30:00 2001  Corinna Vinschen <corinna@vinschen.de>
2744
2745         * libc/include/sys/unistd.h: Add _PC_POSIX_PERMISSONS and
2746         _PC_POSIX_SECURITY constants for Cygwin.
2747
2748 Wed Mar 14  9:34:00 2001  Corinna Vinschen <corinna@vinschen.de>
2749
2750         * libc/sys/cygwin/crt0.c: Add copyright hint.
2751         * libc/sys/cygwin/sys/dirent.h: Ditto.
2752         * libc/sys/cygwin/sys/param.h: Ditto.
2753         * libc/sys/cygwin/sys/utime.h: Ditto.
2754         * libc/sys/cygwin/sys/utmp.h: Ditto.
2755
2756 2001-03-13  Alexandre Oliva  <aoliva@redhat.com>
2757
2758         * libc/stdio/vfprintf.c (QUADINT) [_NO_LONGLONG]: Make it
2759         equivalent to LONGINT.
2760
2761 2001-03-08  Richard Sandiford  <rsandifo@redhat.com>
2762
2763         * (libc/include/machine/setjmp.h): Use 23 long long ints for a
2764         jmpbuf on MIPS64 targets.
2765         * (libc/machine/mips/setjmp.S): Add MIPS64 version.
2766
2767 Wed Mar  7 16:02:07 2001  Christopher Faylor <cgf@cygnus.com>
2768
2769         * libc/include/sys/config.h: Use ssize_t for Cygwin read/write 
2770           declarations.
2771
2772 Mon Mar  5 21:48:54 2001  J"orn Rennecke <amylaar@redhat.com>
2773
2774         * libc/include/sys/config.h (_READ_WRITE_RETURN_TYPE): Define.
2775         For RTEMS, define to be ssize_t.  Default to int if not defined.
2776         * libc/stdio/sscanf.c (eofread): Return _READ_WRITE_RETURN_TYPE.
2777         * libc/stdio/stdio.c (__sread, __swrite): Likewise.
2778         * libc/stdio/local.h (__sread, __swrite): Likewise.
2779         * libc/include/sys/reent.h (_read, _write): Likewise.
2780         * libc/include/sys/unistd.h (read, write, _read, _write): Likewise.
2781         * libc/syscalls/sysread.c (read): Likewise.
2782         * libc/syscalls/syswrite.c (write): Likewise.
2783
2784 2001-03-05  Jeff Johnston  <jjohnstn@redhat.com>
2785
2786         * libc/time/mktime.c: Add L suffix to _SEC_IN_xxxx constants.
2787
2788 Sat Mar  3 00:34:14 2001  Christopher Faylor <cgf@cygnus.com>
2789
2790         * libc/include/sys/stat.h: Use special defines for executable stat bits
2791         when compiling for Cygwin.
2792         * libc/include/sys/unistd.h: Use special define for X_OK when compiling
2793         for Cygwin.
2794
2795 2001-03-02  Jeff Johnston  <jjohnstn@redhat.com>
2796
2797         * libc/string/strtok.c: Add #undef of __STRICT_ANSI__ so prototype
2798         of strtok_r is always defined.
2799
2800 2001-03-02  Jeff Johnston  <jjohnstn@redhat.com>
2801
2802         * libc/include/machine/ansi.h: New dummy header file.
2803
2804 2001-02-22  Jeff Johnston  <jjohnstn@redhat.com>
2805
2806         * libc/include/machine/setjmp-dj.h: With DJ Delorie's permission,
2807         changed the copyright information to allow free modification of the
2808         file with no reference to "copying.dj".
2809         * libc/include/sys/stat-dj.h: Ditto.
2810         * libc/machine/i386/setjmp.S: Ditto.
2811         * libc/sys/h8300hms/sys/file.h: Ditto.
2812         * libc/sys/sysmec/access.c: Ditto.
2813         * libc/sys/sysnecv850/access.c: Ditto.
2814         * libc/stdio/mktemp.c: Fixed typo for the word copyright.
2815         * libc/stdlib/getenv_r.c: Ditto.
2816         * libc/stdlib/putenv_r.c: Ditto.
2817         * libc/stdlib/setenv_r.c: Ditto.
2818         * libc/stdlib/getenv.c: Removed DJ reference since any possible
2819         modifications will now be in the _r version of this file.
2820         * libc/stdlib/putenv.c: Ditto.
2821         * libc/stdlib/setenv.c: Ditto.
2822         * libc/sys/go32/copying.dj: Removed DJ's address which is no longer
2823         valid.  Added a reference to DJ's web page that contains his address.
2824         * libc/sys/go32/*.s: Removed references to DJ's old address.
2825         * libc/sys/go32/*.c: Ditto.
2826         * libc/sys/go32/*.h: Ditto.
2827         * libc/sys/go32/*.S: Ditto.
2828         * libc/sys/go32/sys/*.h: Ditto.
2829
2830 2001-02-21  Jeff Johnston  <jjohnstn@redhat.com>
2831
2832         * libc/stdio/fdopen.c (fdopen): Protect calls to _fcntl() with
2833         HAVE_FCNTL flag check.
2834         * configure.host: Define HAVE_FCNTL for Cygwin, go32, RTEMS, sparc64,
2835         powerpcle, x86 netware, x86 sco, x86 Linux and Vxworks.
2836
2837 Thu Feb 15 01:39:51 2001  Christopher Faylor <cgf@cygnus.com>
2838
2839         * libc/include/sys/signal.h: Always include sys/types.h under Cygwin.
2840
2841 2001-02-14  Kazuhiro Fujieda  <fujieda@jaist.ac.jp>
2842
2843         * libc/include/stdlib.h: Add declarations of rand48 functions and
2844         their reentrant versions.
2845         * libc/include/sys/reent.h: Move macros from rand48.h. Add
2846         struct _rand48 for shared parameters of rand48 functions.
2847         (struct _reent): Add a variable _r48 of struct _rand48.
2848         (_REENT_INIT): Add _r48 initialization.
2849         * libc/stdlib/Makefile.am (lib_a_SOURCES): Add rand48 functions.
2850         (CHEWOUT_FILES): Add rand48.def.
2851         * libc/stdlib/Makefile.am: Add dependencies for rand48 functions.
2852         * libc/stdlib/Makefile.in: Regenerated.
2853         * libc/stdlib/drand48.c (drand48, _drand48_r): Derived from the
2854         NetBSD C library.
2855         * libc/stdlib/erand48.c (erand48, _erand48_r): Ditto.
2856         * libc/stdlib/jrand48.c (jrand48, _jrand48_r): Ditto.
2857         * libc/stdlib/lcong48.c (lcong48, _lcong48_r): Ditto.
2858         * libc/stdlib/lrand48.c (lrand48, _lrand48_r): Ditto.
2859         * libc/stdlib/mrand48.c (mrand48, _mrand48_r): Ditto.
2860         * libc/stdlib/nrand48.c (nrand48, _nrand48_r): Ditto.
2861         * libc/stdlib/seed48.c (seed48, _seed48_r): Ditto.
2862         * libc/stdlib/srand48.c (srand48, _srand48_r): Ditto.
2863         * libc/stdlib/rand48.c (__dorand48): Ditto.
2864         * libc/stdlib/rand48.h: Ditto, and modify declarations of global
2865         parameters into macros referring them in the reentrant structure.
2866
2867 2001-02-12  Jeff Johnston  <jjohnstn@redhat.com>
2868
2869         * libc/include/sys/stat.h: Add mknod for Cygwin now that
2870         Cygwin definition has correct prototype.
2871
2872 2001-02-08  Jeff Johnston  <jjohnstn@redhat.com>
2873
2874         * libc/include/sys/stat.h: Must revert change for mknod
2875         for CYGWIN until winsup/cygwin/syscalls.cc changes mknod
2876         prototype.
2877
2878 2001-02-08  Jeff Johnston  <jjohnstn@redhat.com>
2879
2880         * libc/include/stdio.h: Revert putw prototype.
2881
2882 2001-02-08  Edward M. Lee  <tailbert@yahoo.com>
2883
2884         * libc/include/grp.h: add prototype for initgroups.
2885         * libc/include/stdio.h: fix prototype for putw.
2886         * libc/include/sys/signal.h: add prototype for killpg.
2887         * libc/include/sys/stat.h: enable mknod/lstat for CYGWIN.
2888         * libc/include/sys/unistd.h: add prototypes for getpgid, setpgrp,
2889         vhangup and remove duplicate sysconf prototype.
2890
2891 2001-02-07  Jeff Johnston  <jjohnstn@redhat.com>
2892
2893         * libc/sys/rtems/sys/types.h: Removed.
2894
2895 2001-02-05  Charles Wilson  <cwilson@ece.gatech.edu>
2896
2897         * libc/include/locale.h: add LC_MESSAGES definition
2898
2899 2001-02-01  Alexandre Oliva  <aoliva@redhat.com>
2900
2901         * libc/sys/sh/sys/syscall.h (SYS_get_argc, SYS_get_argN_len,
2902         SYS_get_argN):
2903         * libc/sys/sh/syscalls.c (__setup_argv_for_main,
2904         __setup_argv_and_call_main): New.
2905
2906 2001-01-31  Jeff Johnston  <jjohnstn@redhat.com>
2907
2908         * libc/include/stdio.h (FILENAME_MAX): Changed to use __FILENAME_MAX__
2909         if defined.
2910         (FOPEN_MAX): Changed to use __FOPEN_MAX__ if defined.
2911         (L_tmpnam): Changed to use __L_tmpnam__ if defined.
2912         * libc/include/sys/config.h: Changed to set __FILENAME_MAX__
2913         appropriately for Cygwin and RTEMS so not to exceed PATH_MAX.
2914
2915 Mon Jan 29 23:03:06 2001  Christopher Faylor <cgf@cygnus.com>
2916
2917         * libc/stdlib/mallocr.c: Undefine windows preprocessor variables when
2918         compiling under Cygwin.
2919
2920 2001-01-29  Jeff Johnston  <jjohnstn@redhat.com>
2921
2922         * libc/include/math.h (signgam): Change to errno-like solution
2923         using a function to return the address of the real signgam.
2924         * libc/reent/signgam.c: New file containing __signgam().
2925         * libc/reent/Makefile.am: Added signgam.c to list of files.
2926         * libc/reent/Makefile.in: Regenerated.
2927
2928 2001-01-25  Alexandre Oliva  <aoliva@redhat.com>
2929
2930         * libc/sys/sh/syscalls.c (_times): New.
2931
2932         * configure.host (sh*-*-*): Add -DHAVE_GETTIMEOFDAY to newlib_cflags.
2933         * libc/sys/sh/syscalls.c (_gettimeofday): New.
2934
2935 2001-01-23  Jeff Johnston  <jjohnstn@redhat.com>
2936
2937         * libc/include/math.h (signgam): Regress previous fix as
2938         it does not handle programs with extern int signgam in them.
2939
2940 2001-01-23  Jeff Johnston  <jjohnstn@redhat.com>
2941
2942         * libc/include/math.h (signgam): Changed to a macro refering to
2943         its location in the reentrant structure.
2944
2945 2001-01-23  Jeff Johnston  <jjohnstn@redhat.com>
2946
2947         * libc/stdio/vfprintf.c (_VFPRINTF_R): Modification to fix
2948         that suppressed . for %.0f, 0.1.  Check now looks if there
2949         are padding zeroes (expt) in addition to any digits (ndig) to
2950         print.
2951
2952 2001-01-18  Jeff Johnston  <jjohnstn@redhat.com>
2953
2954         * libc/sys/arc/Makefile.am: New file.
2955         * libc/sys/arc/Makefile.in: Ditto.
2956         * libc/sys/arc/aclocal.m4: Ditto.
2957         * libc/sys/arc/configure: Ditto.
2958         * libc/sys/arc/configure.in: Ditto.
2959         * libc/sys/arc/crt0.S: Ditto.
2960         * libc/sys/arc/isatty.c: Ditto.
2961         * libc/sys/arc/mem-layout.c: Ditto.
2962         * libc/sys/arc/sbrk.c: Ditto.
2963         * libc/sys/arc/syscalls.c: Ditto.
2964         * libc/sys/arc/sys/syscall.h: Ditto.
2965
2966 Wed Jan 17 23:20:56 2001  Christopher Faylor <cgf@cygnus.com>
2967
2968         * libc/include/sys/unistd.h: Use correct declaration for setdtablesize.
2969
2970 Fri Jan 12 00:34:31 2001  Christopher Faylor <cgf@cygnus.com>
2971
2972         * libc/include/sys/signal.h: Add some SA_* defines for Cygwin.
2973
2974 Thu Jan 11 20:42:06  2001  Earnie Boyd  <earnie_boyd@yahoo.com>
2975
2976         * libc/include/sys/features.h: __CYGWIN__ preferred over __CYGWIN32__
2977
2978 2001-01-09  Nick Clifton  <nickc@redhat.com>
2979
2980         * configure.host (v859): Remove unsupported compiler options.
2981
2982 Fri Jan  5 19:57:00 EST 2001  Aaron J. Grier  <aaron@frye.com>
2983
2984         * src/newlib/configure.host (*-*-rtems*): add printf long long
2985         support for RTEMS.
2986
2987 2000-12-19  Graham Stott <grahams@redhat.com>
2988
2989         * libc/machine/xscale/memcmp.c (memcmp): Add clobber for "lr".
2990
2991 Wed Dec 14  Jeff Johnston  <jjohnstn@redhat.com>
2992
2993         * configure.host: Turn on long double I/O for Cygwin.
2994
2995 Wed Dec 14  Jeff Johnston  <jjohnstn@redhat.com>
2996
2997         * MAINTAINERS: Removed Ranjith.
2998         * NEWS: Updated for 1.9.0.
2999         * README: Updated.
3000         * acinclude.m4: Updated to release 1.9.0.
3001         * aclocal.m4 configure
3002           doc/aclocal.m4 doc/configure libc/aclocal.m4 libc/configure
3003           libc/machine/aclocal.m4 libc/machine/configure
3004           libc/machine/a29k/aclocal.m4 libc/machine/a29k/configure
3005           libc/machine/arm/aclocal.m4 libc/machine/arm/configure
3006           libc/machine/d10v/aclocal.m4 libc/machine/d10v/configure
3007           libc/machine/d30v/aclocal.m4 libc/machine/d30v/configure
3008           libc/machine/fr30/aclocal.m4 libc/machine/fr30/configure
3009           libc/machine/h8300/aclocal.m4 libc/machine/h8300/configure
3010           libc/machine/h8500/aclocal.m4 libc/machine/h8500/configure
3011           libc/machine/hppa/aclocal.m4 libc/machine/hppa/configure
3012           libc/machine/i386/aclocal.m4 libc/machine/i386/configure
3013           libc/machine/i960/aclocal.m4 libc/machine/i960/configure
3014           libc/machine/m32r/aclocal.m4 libc/machine/m32r/configure
3015           libc/machine/m68k/aclocal.m4 libc/machine/m68k/configure
3016           libc/machine/m88k/aclocal.m4 libc/machine/m88k/configure
3017           libc/machine/mips/aclocal.m4 libc/machine/mips/configure
3018           libc/machine/mn10200/aclocal.m4 libc/machine/mn10200/configure
3019           libc/machine/mn10300/aclocal.m4 libc/machine/mn10300/configure
3020           libc/machine/necv70/aclocal.m4 libc/machine/necv70/configure
3021           libc/machine/powerpc/aclocal.m4 libc/machine/powerpc/configure
3022           libc/machine/sh/aclocal.m4 libc/machine/sh/configure
3023           libc/machine/sparc/aclocal.m4 libc/machine/sparc/configure
3024           libc/machine/tic80/aclocal.m4 libc/machine/tic80/configure
3025           libc/machine/v850/aclocal.m4 libc/machine/v850/configure
3026           libc/machine/w65/aclocal.m4 libc/machine/w65/configure
3027           libc/machine/xscale/aclocal.m4 libc/machine/xscale/configure
3028           libc/machine/z8k/aclocal.m4 libc/machine/z8k/configure
3029           libc/sys/aclocal.m4 libc/sys/configure
3030           libc/sys/a29khif/aclocal.m4 libc/sys/a29khif/configure
3031           libc/sys/arm/aclocal.m4 libc/sys/arm/configure
3032           libc/sys/cygwin/aclocal.m4 libc/sys/cygwin/configure
3033           libc/sys/d10v/aclocal.m4 libc/sys/d10v/configure
3034           libc/sys/decstation/aclocal.m4 libc/sys/decstation/configure
3035           libc/sys/go32/aclocal.m4 libc/sys/go32/configure
3036           libc/sys/h8300hms/aclocal.m4 libc/sys/h8300hms/configure
3037           libc/sys/h8500hms/aclocal.m4 libc/sys/h8500hms/configure
3038           libc/sys/linux/aclocal.m4 libc/sys/linux/configure
3039           libc/sys/m88kbug/aclocal.m4 libc/sys/m88kbug/configure
3040           libc/sys/netware/aclocal.m4 libc/sys/netware/configure
3041           libc/sys/rtems/aclocal.m4 libc/sys/rtems/configure
3042           libc/sys/sh/aclocal.m4 libc/sys/sh/configure
3043           libc/sys/sparc64/aclocal.m4 libc/sys/sparc64/configure
3044           libc/sys/sun4/aclocal.m4 libc/sys/sun4/configure
3045           libc/sys/sysmec/aclocal.m4 libc/sys/sysmec/configure
3046           libc/sys/sysnec810/aclocal.m4 libc/sys/sysnec810/configure
3047           libc/sys/sysnecv850/aclocal.m4 libc/sys/sysnecv850/configure
3048           libc/sys/sysvi386/aclocal.m4 libc/sys/sysvi386/configure
3049           libc/sys/sysvnecv70/aclocal.m4 libc/sys/sysvnecv70/configure
3050           libc/sys/tic80/aclocal.m4 libc/sys/tic80/configure
3051           libc/sys/w65/aclocal.m4 libc/sys/w65/configure
3052           libc/sys/z8ksim/aclocal.m4 libc/sys/z8ksim/configure
3053           libm/aclocal.m4 libm/configure: Regenerated.
3054
3055 Wed Dec 13 11:52:00 2000  Corinna Vinschen <vinschen@cygnus.com>
3056
3057         * libc/include/sys/unistd.h: Add declarations for `chroot' and `getwd'
3058         when __CYGWIN__ is defined.
3059
3060 2000-12-13  Jeff Johnston  <jjohnstn@redhat.com>
3061
3062         * libc/stdlib/ldtoa.c (_ldcheck): New routine
3063         that categorizes a long double as NaN, Infinity, or other.
3064         * libc/stdio/vfprintf.c [WANT_IO_LONG_DBL](_VFPRINTF_R): Removed 
3065         isinfl and isnanl static routines which were i386-specific.  Changed 
3066         calls to the two removed routines to a single _ldcheck call.
3067         * libc/stdio/vfieeefp.h (ldieee): Fixed missing semi-colons.
3068
3069 2000-12-13  Jeff Johnston  <jjohnstn@redhat.com>
3070
3071         * Makefile.am: Fixed install-data-local target to use
3072         $(mkinstalldirs) for the installed header files to ensure
3073         the directories exist before copying.
3074         * Makefile.in: Regenerated.
3075
3076 2000-12-12  Jeff Johnston  <jjohnstn@redhat.com>
3077
3078         * libc/include/sys/unistd.h: Restored Cygwin _SC
3079         constants and moved new constants appropriately
3080         so Cygwin will build.
3081
3082 2000-12-11  Joel Sherrill <joel@OARcorp.com>
3083
3084         * Merge RTEMS specific .h files into main libc/include.
3085         * libc/sys/rtems/include/signal.h: Removed.
3086         * libc/sys/rtems/include/time.h: Removed.
3087         * libc/sys/rtems/sys/features.h: Removed.
3088         * libc/sys/rtems/sys/sched.h: Removed.
3089         * libc/sys/rtems/sys/siginfo.h: Removed.
3090         * libc/sys/rtems/sys/signal.h: Removed.
3091         * libc/sys/rtems/sys/time.h: Removed.
3092         * libc/sys/rtems/sys/times.h: Removed.
3093         definitions for time_t and clock_t since these are
3094         no longer in time.h.
3095         * libc/include/pthread.h: New file.
3096         * libc/include/sys/sched.h: New file.
3097         * libc/include/sys/features.h: New file.
3098         * libc/include/time.h: Removed duplicate definition of clock_t
3099         and time_t, get them from <sys/types.h> instead.  Add prototypes
3100         for POSIX clock and timer functionality.
3101         * libc/sys/linux/sys/types.h: Changed to include
3102         * libc/include/machine/types.h: Add _CLOCKID_T_ and _TIMER_T_.
3103         * libc/include/sys/signal.h: Add more complete set of POSIX
3104         signal functionality including real-time and threaded signals.
3105         * libc/include/sys/types.h: Add clock_t, time_t, struct
3106         timespec, and struct itimerspec.  Centralizing these makes 
3107         things cleaner.  RTEMS uses 64-bit dev_t.
3108         Added numerous primitive definitions
3109         for pthreads including macros, pthread_attr_t,
3110         pthread_mutexattr_t, pthread_condattr_t, pthread_key_t, 
3111         pthread_once_t, and pthread_t.
3112         * libc/include/sys/unistd.h: Added getlogin_r() prototype.
3113         If RTEMS follow POSIX on read(), write() and sbrk() prototype.
3114         Feature flags removed and moved to new file <sys/features.h>.
3115         Full set of POSIX sysconf() constants
3116
3117 2000-12-08  Werner Almesberger  <Werner.Almesberger@epfl.ch>
3118
3119         * configure.host: Added x86 linux target.
3120         * libc/unix/getpass.c (_PATH_PASSWD, _PASSWORD_LEN): Default
3121         definitions provided if not already defined.
3122         * libc/sys/linux/crt0.c: New file.
3123         * libc/sys/linux/Makefile.am: Ditto.
3124         * libc/sys/linux/Makefile.in: Ditto.
3125         * libc/sys/linux/aclocal.m4: Ditto.
3126         * libc/sys/linux/brk.c: Ditto.
3127         * libc/sys/linux/configure: Ditto.
3128         * libc/sys/linux/configure.in: Ditto.
3129         * libc/sys/linux/getoptlong.c: Ditto.
3130         * libc/sys/linux/ids.c: Ditto.
3131         * libc/sys/linux/inode.c: Ditto.
3132         * libc/sys/linux/io.c: Ditto.
3133         * libc/sys/linux/linux.c: Ditto.
3134         * libc/sys/linux/process.c: Ditto.
3135         * libc/sys/linux/realpath.c: Ditto.
3136         * libc/sys/linux/select.c: Ditto.
3137         * libc/sys/linux/signal.c: Ditto.
3138         * libc/sys/linux/systat.c: Ditto.
3139         * libc/sys/linux/termios.c: Ditto.
3140         * libc/sys/linux/time.c: Ditto.
3141         * libc/sys/linux/wait.c: Ditto.
3142         * libc/sys/linux/include/alloca.h: Ditto.
3143         * libc/sys/linux/include/getopt.h: Ditto.
3144         * libc/sys/linux/include/stdint.h: Ditto.
3145         * libc/sys/linux/include/unistd.h: Ditto.
3146         * libc/sys/linux/sys/cdefs.h: Ditto.
3147         * libc/sys/linux/sys/dirent.h: Ditto.
3148         * libc/sys/linux/sys/errno.h: Ditto.
3149         * libc/sys/linux/sys/fcntl.h: Ditto.
3150         * libc/sys/linux/sys/file.h: Ditto.
3151         * libc/sys/linux/sys/ioctl.h: Ditto.
3152         * libc/sys/linux/sys/resource.h: Ditto.
3153         * libc/sys/linux/sys/signal.h: Ditto.
3154         * libc/sys/linux/sys/stat.h: Ditto.
3155         * libc/sys/linux/sys/syscall.h: Ditto.
3156         * libc/sys/linux/sys/termios.h: Ditto.
3157         * libc/sys/linux/sys/time.h: Ditto.
3158         * libc/sys/linux/sys/types.h: Ditto.
3159         * libc/sys/linux/sys/utmp.h: Ditto.
3160         * libc/sys/linux/sys/utsname.h: Ditto.
3161         * libc/sys/linux/sys/wait.h: Ditto.
3162
3163 2000-12-08  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
3164
3165         * Makefile.am: $(INSTALL), $(INSTALL_DATA), and $(INSTALL_PROGRAM)  
3166         can be a relative path to $(top_srcdir)/install.sh so ensure the
3167         autoconf detected settings are properly passed recursively.
3168         Similarly, add AM_MAKEFLAGS to FLAGS_TO_PASS so they also get passed
3169         properly to subdirectories.
3170         * Makefile.in: Regenerated.
3171
3172 2000-12-07  Jay Kulpinski <jskulpin@eng01.gdds.com>
3173
3174         * libc/stdio/vfprintf.c: Minor modification to avoid requiring
3175         a floating point register unless really printing a floating
3176         point number.
3177
3178 2000-12-07  Jeff Johnston  <jjohnstn@redhat.com>
3179
3180         * libc/stdlib/ldtoa.c: Removed include of alloca.h.
3181         Also removed \r's.
3182         (asctoeg): Replaced alloca call with stack array and malloc
3183         when storage exceeds reasonable limit.
3184         (e53toe): Fixed einfin calls missing ldp parameter.
3185         (eiisinf): Hide behind check for LDBL_MANT_DIG == 64.
3186
3187 2000-12-06  Jeff Johnston  <jjohnstn@redhat.com>
3188
3189
3190         * libc/stdio/vfscanf.c: Fix typo for _NO_LONGDBL macro.
3191
3192 2000-12-06  Jeff Johnston  <jjohnstn@redhat.com>
3193
3194         * libc/stdlib/Makefile.am: Added ldtoa.c to list of sources.
3195         * libc/stdlib/Makefile.in: Regenerated.
3196         * libc/stdio/floatio.h: Added suitable MAXEXP for long double.
3197         * libc/stdio/vfieeefp.h: Added long double bit structures.
3198         * libc/stdio/vfprintf.c[WANT_IO_LONG_DBL]: Added long double support.
3199         [WANT_IO_LONG_DBL](isinfl, isnanl): New static long double routines.
3200         (exponent): Changed expbuf to reasonable maximum instead of MAXEXP.
3201         * libc/stdio/vfscanf.c[WANT_IO_LONG_DBL]: Added long double support.
3202         * libc/stdlib/ldtoa.c: New file containing _ldtoa_r and
3203         _strtold routines used for conversions between character
3204         and long double.
3205
3206 Wed Dec  6 12:01:00 2000  Corinna Vinschen <vinschen@cygnus.com>
3207
3208         * libc/include/stdlib.h: Add declarations for `mkstemp' and `mktemp'.
3209
3210 2000-12-04  Joel Sherrill <joel@OARcorp.com>
3211
3212         * libc/include/machine/time.h: RTEMS systems can configure clock
3213         tick rate so use sysconf() to ask.
3214
3215 2000-12-04  Joel Sherrill <joel@OARcorp.com>
3216
3217         * libc/include/sys/times.h: Add reference to POSIX standard.
3218
3219 2000-12-04  Joel Sherrill <joel@OARcorp.com>
3220
3221         * libc/include/sys/time.h: Added BSD timer manipulation macros
3222         used by RTEMS code.
3223
3224 2000-12-04  Joel Sherrill <joel@OARcorp.com>
3225
3226         * libc/sys/rtems/crt0.c: Add stubs for functions implicitly
3227         referenced by code generated by gcc 2.8.1.
3228         (a29k): Add stubs for V_SPILL, V_FILL, V_BSD_OS, V_EPI_OS to 
3229         satisfy gcc.
3230
3231 2000-12-04  Joel Sherrill <joel@OARcorp.com>
3232
3233         * libc/stdlib/system.c: Avoid compiling do_system() for RTEMS.
3234
3235 2000-12-04  Joel Sherrill <joel@OARcorp.com>
3236
3237         * libc/include/ieeefp.h: Added entries for OpenCores CPUs.
3238
3239 2000-12-04  Joel Sherrill <joel@OARcorp.com>
3240
3241         * configure.host (or16, or32): New entries for OpenCores
3242         OpenRisc CPUs.
3243         (*-*-rtems*): Add -DNO_EXEC.
3244
3245 2000-12-04  Keith Outwater <vac4050@cae597.rsc.raytheon.com>
3246
3247         * libc/include/sys/errno.h: Added comments on many error numbers.
3248         * libc/string/strerror.c: Added some more strings.
3249
3250 2000-11-30  Jeff Johnston <jjohnstn@redhat.com>
3251
3252         * libc/sys/sh/syscalls.c (_link): New stub.
3253
3254 2000-11-29  Nick Clifton  <nickc@redhat.com>
3255
3256         * configure.host: Add xscale target.
3257         * libc/machine/xscale: New directory.
3258         * libc/machine/xscale/Makefile.am: New file.
3259         * libc/machine/xscale/Makefile.in: New file.
3260         * libc/machine/xscale/aclocal.m4: New file.
3261         * libc/machine/xscale/configure: New file.
3262         * libc/machine/xscale/configure.in: New file.
3263         * libc/machine/xscale/memchr.S: New file.
3264         * libc/machine/xscale/memcmp.S: New file.
3265         * libc/machine/xscale/memcpy.S: New file.
3266         * libc/machine/xscale/memmove.S: New file.
3267         * libc/machine/xscale/memset.S: New file.
3268         * libc/machine/xscale/strchr.S: New file.
3269         * libc/machine/xscale/strcmp.S: New file.
3270         * libc/machine/xscale/strcpy.S: New file.
3271         * libc/machine/xscale/strlen.S: New file.
3272
3273 Sat Nov 25 11:24:00 2000  Corinna Vinschen <vinschen@cygnus.com>
3274
3275         * libc/include/sys/types.h: Change i to `__i' in FD_ZERO macro to
3276         avoid compiler warnings.
3277
3278 2000-11-22  Michael Meissner  <meissner@redhat.com>
3279
3280         * libc/posix/execl.c (execl): Don't reference environ directly,
3281         reference it only via a static pointer to avoid problems with some
3282         shared library systems and with different uses of small data where
3283         the user specifies his own version of environ.
3284         * libc/posix/execv.c (execv): Ditto.
3285         * libc/stdlib/getenv_r.c (_findenv_r): Ditto.
3286         * libc/stdlib/setenv_r.c (_setenv_r,_unsetenv_r): Ditto.
3287         * libc/stdlib/system.c (system, !cygwin32 case): Ditto.
3288
3289         * libc/stdlib/getenv.c (environ): Delete unused reference to
3290         environ.
3291
3292         * libc/stdlib/getenv_r.c: Make initial comment friendlier to emacs
3293         colorization.
3294         * libc/stdlib/system.c: Ditto.
3295
3296 Tue Nov 21 20:32:21 2000  Christopher Faylor <cgf@cygnus.com>
3297
3298         * libc/sys/cygwin/sys/dirent.h: Change definition to avoid necessity of
3299         including windows headers.
3300
3301 2000-11-20  Jeff Johnston  <jjohnstn@redhat.com>
3302
3303         * libc/include/sys/unistd.h: Removed definition of MAXNAMLEN.
3304         * libc/include/dirent.h: Added definition of MAXNAMLEN if
3305         not defined by sys/dirent.h.
3306         * libc/posix/execvp.c: Added include of dirent.h to get
3307         MAXNAMLEN value which used to be in unistd.h.
3308
3309 Mon Nov  6 12:56:00 2000  Corinna Vinschen <vinschen@cygnus.com>
3310
3311         * libc/include/sys/types.h: Change type of i to `size_t' in
3312         FD_ZERO macro to avoid compiler warnings.
3313
3314 Sun Oct 29 20:06:41 2000  Christopher Faylor <cgf@cygnus.com>
3315
3316         * libc/include/stdlib.h: Avoid declaring cfree under Cygwin.
3317         * libc/include/malloc.h: Ditto.  Also remove obsolete declaration.
3318
3319 Tue Oct 24 20:16:00 2000  Corinna Vinschen <vinschen@cygnus.com>
3320
3321         * libc/include/sys/unistd.h: Add defines for sysconf values
3322         _SC_NPROCESSORS_CONF, _SC_NPROCESSORS_ONLN, _SC_PHYS_PAGES and
3323         _SC_AVPHYS_PAGES.
3324
3325 Mon Oct  9 20:26:33 2000  Christopher Faylor <cgf@cygnus.com>
3326
3327         * libc/include/sys/unistd.h: Add getdtablesize and setdtablesize
3328         declarations for __CYGWIN__.
3329
3330 2000-09-19  Geoffrey Keating  <geoffk@cygnus.com>
3331
3332         * libc/signal/signal.c (__sigtramp_r): ISO C requires
3333         case labels to be integral constant expressions, so
3334         use an if/else tree instead.
3335         (_raise_r): Likewise.
3336
3337 2000-09-13  Jeff Johnston  <jjohnstn@redhat.com>
3338
3339         * libc/machine/v850/setjmp.S: Fixed tab problems caused by
3340         clipping patch from e-mail reader.
3341
3342 2000-09-13  Will Cohen  <wcohen@redhat.com>
3343
3344         * libc/machine/v850/setjmp.S (_setjmp): Save r1 rather than r0.
3345         Added return value 0.
3346         (_longjmp): Allow longjmp to return value of second argument
3347         passed to it.
3348
3349 2000-09-06  Jeff Johnston <jjohnstn@redhat.com>
3350
3351         * libc/include/sys/types.h (FD_ZERO): Remove call to bzero and
3352         inline code to prevent having to include another header file.
3353
3354 Wed Sep  6 15:06:40 2000  Christopher Faylor <cgf@cygnus.com>
3355
3356         * Makefile.am: Fix space vs. tab problem in install-data-local.
3357         * Makefile.in: Regenerate.
3358
3359 Wed Sep  6 13:49:51 2000  Christopher Faylor <cgf@cygnus.com>
3360
3361         * libc/include/_ansi.h (_EXFUN): Define specially for __CYGWIN__.
3362         (_EXPARM): New macro for defining a function parameter.
3363         * libc/include/stdlib.h: Use _EXPARM.
3364         * libc/stdlib/mallocr.c: Don't build cfree for Cygwin.
3365
3366 2000-09-05  Manfred Hollstein  <manfredh@redhat.com>
3367
3368         * Makefile.am (install-data-local): Use optional $(DESTDIR) where
3369         required, as documented in the gnu coding standards.
3370         * Makefile.in: Regenerate.
3371
3372 2000-09-05  Jeff Johnston <jjohnstn@redhat.com>
3373
3374         * libc/include/fcntl.h (_FNDELAY): Changed to be _FNONBLOCK to
3375         make O_NDELAY and O_NONBLOCK have the same value.
3376
3377 2000-08-30  Kazu Hirata  <kazu@hxi.com>
3378
3379         * libc/sys/h8300hms/crt0.S: Optimize for both speed and code size.
3380
3381 2000-08-30  Werner Almesberger  <Werner.Almesberger@epfl.ch>
3382
3383         * libc/posix/execve.c: included unistd.h for "_execve" prototype.
3384         * libc/misc/unctrl.c libc/sys/sysvi386/crt0.c (sccsid): changed
3385         "#ifndef lint" to "#if defined(LIBC_SCCS) && !defined(lint)" like
3386         everywhere else.
3387
3388 2000-08-30  Geoffrey Keating  <geoffk@cygnus.com>
3389
3390         * libc/string/swab.c: Specify that it's defined in <unistd.h>.
3391         * libc/include/string.h: Don't include <sys/types.h>,
3392         as it causes really bad namespace pollution.  Don't declare
3393         swab(), it is properly declared in unistd.h.
3394
3395 2000-08-29  Werner Almesberger  <Werner.Almesberger@epfl.ch>
3396
3397         * libc/unix/getpwent.c (getpwnam, getpwuid, getpwent): removed
3398         (broken) support for non-existent /etc/passwd field "comment".
3399
3400 2000-08-27  Werner Almesberger  <Werner.Almesberger@epfl.ch>
3401
3402         * libc/posix/scandir.c (DIRSIZ, scandir): use struct dirent.d_namlen
3403         only if _DIRENT_HAVE_D_NAMLEN is defined.
3404         (alphasort): aligned prototype with
3405         libc/sys/cygwin/sys/dirent.h and simplified function body.
3406         * libc/posix/telldir.c (telldir): changed "telldir" prototype to
3407         long telldir (DIR *) as mentioned in annex B of POSIX.1
3408
3409 2000-08-27  Werner Almesberger  <Werner.Almesberger@epfl.ch>
3410
3411         * libc/machine/i386/i386mach.h: added SOTYPE_FUNCTION to set type
3412         of global entry points if _I386MACH_NEED_SOTYPE_FUNCTION is defined;
3413         Added __CLI and __STI macros (controlled via
3414         _I386MACH_ALLOW_HW_INTERRUPTS macro).
3415         * libc/machine/i386/f_atan2.S libc/machine/i386/f_atan2f.S
3416         libc/machine/i386/f_frexp.S libc/machine/i386/f_frexpf.S
3417         libc/machine/i386/f_ldexp.S libc/machine/i386/f_ldexpf.S
3418         libc/machine/i386/f_log.S libc/machine/i386/f_log10.S
3419         libc/machine/i386/f_log10f.S libc/machine/i386/f_logf.S
3420         libc/machine/i386/f_tan.S libc/machine/i386/f_tanf.S
3421         libc/machine/i386/memchr.S libc/machine/i386/memcmp.S
3422         libc/machine/i386/memcpy.S libc/machine/i386/memmove.S
3423         libc/machine/i386/memset.S libc/machine/i386/setjmp.S
3424         libc/machine/i386/strchr.S libc/machine/i386/strlen.S:
3425         (that's libc/machine/i386/*.S) added SOTYPE_FUNCTION(symbol)
3426         for all global entry points.
3427         * libc/machine/i386/setjmp.S: removed code replicated in
3428         libc/machine/i386/i386mach.h and included i386mach.h instead;
3429         Use __CLI and __STI instead of cli and sti.
3430
3431 2000-08-25  DJ Delorie  <dj@redhat.com>
3432
3433         * libc/include/sys/unistd.h (environ): this one isn't from the
3434         DLL, no __IMPORT
3435
3436 Fri Aug 25 13:37:11 2000  Christopher Faylor <cgf@cygnus.com>
3437
3438         * libc/stdlib/system.c (do_system): Eliminate explicit declaration of
3439         environ when compiling under cygwin since it is already declared in
3440         unistd.h.
3441
3442 2000-08-23  Werner Almesberger  <Werner.Almesberger@epfl.ch>
3443
3444         * libc/stdlib/mprec.c (ulp, b2d, d2b): changed a few expressions
3445         like  x << y-z  to the equivalent  x << (y-z).
3446         (d2b): changed if statements with assignment to perform the
3447         assignment prior to the if check.
3448         * libc/reent/reent.c: included stdlib.h for "_free_r" prototype.
3449         * libc/unix/getpass.c (getpass): moved "echo" assignment out of if.
3450         * libc/unix/ttyname.c: included string.h for "strcpy" prototype.
3451         * libc/unix/getcwd.c (ISDOT): added parentheses to clarify && and ||
3452         precedence.
3453         * libc/include/sys/unistd.h: added "vfork" prototype (for popen.c).
3454         Added "_execve" prototype (for execl.c, execle.c, execv.c, and 
3455         execve.c).
3456         * libc/posix/popen.c (popen): added parentheses to clarify && and ||
3457         precedence.
3458         * libm/math/e_cosh.c (__ieee754_cosh): changed parentheses to
3459         clarify && and || precendence (and to remove pascalism).
3460         * libm/math/e_sinh.c (__ieee754_sinh): Ditto.
3461         * libm/math/s_infconst.c: added another pair of braces to all
3462         initializers for __infinity (need three: for __infinity[1] array,
3463         for union __dmath, and for i[2]).
3464
3465 2000-08-23  Werner Almesberger  <Werner.Almesberger@epfl.ch>
3466
3467         * libc/stdlib/abort.c: changed description: uses "raise" instead of
3468         "getpid" and "kill"; added: uses "write" and "_exit".
3469         Also included unistd.h for "_exit" prototype.
3470         * libc/stdlib/system.c: included unistd.h for "execve" prototype,
3471         reent.h for "_fork_r" and "_wait_r" prototypes.
3472         (do_system): changed  extern char *environ[] to POSIX-friendly 
3473         extern char **environ.
3474         * libc/stdlib/wctomb_r.c: included string.h for "strlen" and "strcmp"
3475         prototypes.
3476         * libc/stdlib/remove.c: included reent.h for "_unlink_r" prototype.
3477         * libc/reent/execr.c: included sys/wait.h for "wait" prototype.
3478         * libc/reent/fstatr.c: included sys/stat.h for "fstat" prototype.
3479         * libc/reent/openr.c: included fcntl.h for "open" prototype.
3480         * libc/reent/signalr.c: included signal.h for "kill" prototype,
3481         unistd.h for "getpid" prototype.
3482         * libc/reent/statr.c: included sys/stat.h for "stat" prototype.
3483         * libc/reent/timer.c: included sys/time.h for "gettimeofday" prototype.
3484         * libc/unix/getut.c (utmpname): removed local, incorrect "strdup"
3485         prototype.  Also included stdlib.h for "abort", string.h for
3486         "strdup" and "strncmp" prototypes.
3487         * libc/unix/getlogin.c: included string.h for "strncmp", "memset", and
3488         "strncpy", unistd.h for "read" and "close" prototypes.
3489         * libc/posix/execvp.c: included string.h for "strchr", "strlen", and
3490         "strcat" prototypes.
3491
3492 2000-08-23  Werner Almesberger  <Wernen Almesberger@epfl.ch>
3493
3494         * libc/stdio/stdio.c (__swrite): declare "oldmode" only if it's
3495         used later (ifdef __SCLE)
3496         * libc/stdio/vfscanf.c (__svfscanf): declare "state" only if it's
3497         used later (ifdef MB_CAPABLE)
3498         * libc/string/memset.c (memset): removed unused variables "count"
3499         and "unaligned_addr"
3500         * libc/locale/locale.c (_setlocale_r): declare "lc_ctype" and
3501         "last_lc_ctype" only of they're used later (ifdef MB_CAPABLE)
3502         * libc/unix/getpwent.c (getpwnam): removed unused variables "uid"
3503         and "gid"
3504
3505 2000-08-23  Werner Almesberger  <Werner.Almesberger@epfl.ch>
3506
3507         * libc/stdlib/envlock.c: changed documented "__env_lock" and
3508         "__env_unlock" prototype from "void *" or "char *" to
3509         "struct _reent *" to match real function.  Also added include
3510         of envlock.h.
3511         * libc/stdlib/mlock.c: changed documented "__malloc_lock" and
3512         "__malloc_unlock" prototype from "void *" or "char *" to
3513         "struct _reent *" to match real function.
3514         * libc/stdlib/envlock.h: added "__env_lock" and "__env_unlock"
3515         prototypes (for getenv_r.c and setenv_r.c).
3516
3517 2000-08-22  Werner Almesberger  <Werner.Almesberger@epfl.ch>
3518
3519         * libc/unix/getut.c (utmpname): added _CONST to reflect common use
3520         and prototype in cygwin's utmp.h
3521
3522 2000-08-16  Eric Fifer  <efifer@sanwaint.com>
3523
3524         * libc/stdio/vfprintf.c (_vfprintf_r): suppress . with "%.0f", 0.1
3525
3526 2000-08-09  Nick Clifton  <nickc@cygnus.com>
3527
3528         * libc/sys/arm/setjmp.S: Recode to clean up function prologues and
3529         epilogue and to allow the functions to be used in a Thumb based
3530         toolchain.
3531
3532 2000-08-08  Jeff Johnston <jjohnstn@redhat.com>
3533
3534         * libc/stdio/snprintf.c (snprintf, _snprintf_r): Fixed code
3535         so size of 0 results in nothing being written to string.
3536         Also fixed code so that when size is non-zero, there is only
3537         a maximum of size - 1 characters written to the array and
3538         a nul terminator is appended at the end.
3539         * libc/stdio/vsnprintf.c (vsnprintf, _vsnprintf_r): Ditto.
3540
3541 2000-08-01  DJ Delorie  <dj@redhat.com>
3542
3543         * libc/include/sys/config.h: define __IMPORT appropriately
3544         * libc/include/ctype.h (_ctype_): use __IMPORT
3545         * libc/include/math.h (__infinity, signam, _LIB_VERSION): ditto
3546         * libc/include/math.h (__mb_cur_max): ditto
3547         * libc/include/time.h (_timezone, _daylight, _tzname): ditto
3548         * libc/include/unctrl.h (__unctrl, __unctrllen): ditto
3549         * libc/include/errno.h (_sys_errlist, _sys_nerr): ditto
3550         * libc/include/unistd.h (environ): ditto
3551
3552 2000-07-28  Michael Meissner  <meissner@redhat.com>
3553
3554         * libc/include/math.h (__infinity): Declare as an array without
3555         bounds to get around small data support.  Rewrite Cygwin support
3556         to be more general.
3557         * libm/math/s_infconst.c (__infinity): Ditto.
3558         * libm/mathfp/s_infconst.c (__infinity): Ditto.
3559
3560 Thu Jul 27 10:46:01 2000  Christopher Faylor <cgf@cygnus.com>
3561
3562         * libc/include/math.h: Use appropriate dll import linkage for
3563         __infinity under Cygwin.
3564
3565 2000-07-13  DJ Delorie  <dj@cygnus.com>
3566
3567         * libc/stdio/vfprintf.c: pad 0.0 correctly with %e
3568
3569 Wed Jun 28 14:08:00 2000  Keith Walker  <keith.walker@arm.com>
3570
3571         * libc/sys/arm/crt0.S (.LC30): Added missing length parameter
3572         to argument list for AngelSWI_Reason_GetCmdLine.
3573
3574 Tue Jun 27 15:49:00 2000  Marek Michalkiewicz  <marekm@linux.org.pl>
3575
3576         * configure.host: Add support for AVR target.
3577         * libc/include/machine/ieeefp.h: Likewise.
3578         * libc/include/sys/config.h: Likewise.
3579
3580 Thu Jun 22 18:35:00 2000  Ranjith Kumaran  <ranjith@cygnus.com>
3581
3582         * README: Newlib 1.8.2 must be built in a separate directory
3583         than the sources.
3584
3585 Tue Jun 20 14:30:00 2000  Jeff Johnston  <jjohnstn@cygnus.com>
3586
3587         * libc/include/sys/reent.h (_rand_next): Added __extension__
3588         qualifier as long long type is not strict ANSI.
3589         * libc/stdlib/rand.c (rand): Added __extension__ qualifier
3590         to long long constant.
3591
3592 Fri Jun 16 23:02:00 2000  Corinna Vinschen <corinna@vinschen.de>
3593
3594         * libc/include/sys/unistd.h: Add prototypes for `seteuid' and
3595         `setegid' provided by Cygwin.
3596
3597 Thu Jun 15  0:21:00 2000  Corinna Vinschen <corinna@vinschen.de>
3598
3599         * libc/stdio/fdopen.c: Take explicit given bin/textmode into
3600         account for Cygwin.
3601
3602 Fri Jun  9 14:28:00 2000  Jeff Johnston  <jjohnstn@cygnus.com>
3603
3604         * libc/include/sys/reent.h (_rand_next): Changed to
3605         unsigned long long and moved to end of _reent struct in _new union.
3606         (_REENT_INIT): Changed to move _rand_next initialization.
3607         * libc/stdlib/rand.c (rand): Changed to use unsigned long long
3608         linear congruential algorithm that is used by DJGPP.
3609
3610 Thu Jun  8 21:18:00 2000  Ranjith Kumaran  <ranjith@cygnus.com>
3611
3612         * libc/include/stdlib.h: Set RAND_MAX to __RAND_MAX.
3613         * libc/include/sys/config.h: Define __RAND_MAX.
3614
3615 Thu Jun  8 17:54:00 2000  Jeff Johnston  <jjohnstn@cygnus.com>
3616
3617         * libc/stdlib/rand_r.c: New algorithm that meets minimal
3618         standard.
3619
3620 Fri Jun  2 23:02:11 2000  Christopher Faylor <cgf@cygnus.com>
3621
3622         * libc/include/string.h: Work around problem with strsignal and gdb.
3623
3624 Tue May 30 13:13:01 2000  Christopher Faylor <cgf@cygnus.com>
3625
3626         * libc/include/ctype.h: __CYGWIN32__ -> __CYGWIN__
3627         * libc/include/malloc.h: Ditto.
3628         * libc/include/process.h: Ditto.
3629         * libc/include/stdio.h: Ditto.
3630         * libc/include/stdlib.h: Ditto.
3631         * libc/include/time.h: Ditto.
3632         * libc/include/machine/setjmp.h: Ditto.
3633         * libc/include/sys/errno.h: Ditto.
3634         * libc/include/sys/signal.h: Ditto.
3635         * libc/include/sys/stat.h: Ditto.
3636         * libc/include/sys/time.h: Ditto.
3637         * libc/include/sys/unistd.h: Ditto.
3638         * libc/include/string.h: Ditto.  strsignal should return a const char *.
3639
3640 2000-05-26  Marek Michalkiewicz  <marekm@linux.org.pl>
3641
3642         * libm/common/s_expm1.c (expm1): Add curly braces, avoid warnings.
3643         * libm/common/s_log1p.c (log1p): Likewise.
3644         * libm/common/s_scalbn.c (scalbn): Likewise.
3645         * libm/math/e_log.c: Likewise.
3646         * libm/math/e_asin.c: Likewise.
3647         * libm/math/ef_asin.c: Likewise.
3648         * libm/math/e_j0.c (pzero, qzero): Remove redundant test.
3649         * libm/math/e_j1.c (pone, qone): Likewise.
3650         * libm/math/ef_j0.c (pzerof, qzerof): Likewise.
3651         * libm/math/ef_j1.c (ponef, qonef): Likewise.
3652         * libm/mathfp/e_j0.c (pzero, qzero): Likewise.
3653         * libm/mathfp/e_j1.c (pone, qone): Likewise.
3654         * libm/mathfp/ef_j0.c (pzerof, qzerof): Likewise.
3655         * libm/mathfp/ef_j1.c (ponef, qonef): Likewise.
3656
3657 2000-05-19  DJ Delorie  <dj@cygnus.com>
3658
3659         * libc/stdio/stdio.c (__stextmode): new, see if file is text mode
3660         (__sread): always read in binary mode
3661         (__swrite): always write in binary mode
3662         * libc/include/stdio.h: no getc/putc macros for cygwin; causes
3663         compatibility issues with different dll versions
3664         * libc/stdio/fopen.c: use __stextmode
3665         * libc/stdio/fdopen.c: ditto
3666         * libc/stdio/freopen.c: ditto
3667         * libc/stdio/findfp.c: set up __SCLE for std{in,out,err}
3668         * libc/stdio/local.h: declare __stextmode
3669         
3670 2000-05-18  DJ Delorie  <dj@cygnus.com>
3671
3672         * libc/stdio/fgets.c (fgets): perform CRLF conversions if __SCLE
3673         
3674 Mon May 15 18:54:00 2000  Jeff Johnston  <jjohnstn@cygnus.com>
3675
3676         * libc/include/ctype.h: Changed tolower and toupper macros
3677         to use __extension__ to prevent pedantic warnings.
3678
3679 Mon May 15 14:26:00 2000  Joel Sherrill  <joel@oarcorp.com>
3680
3681         * libc/sys/rtems/sys/time.h: Add macros for manipulating timeval
3682         structures.
3683
3684 Wed May 10 19:24:53 2000  Jim Wilson  <wilson@cygnus.com>
3685
3686         * libc/include/machine/ieeefp.h: Add ia64 support.
3687         * configure.host: Likewise.
3688
3689 Wed May 10 13:52:24 2000  Egor Duda <deo@logos-m.ru>
3690
3691         * libc/time/asctime_r.c (asctime_r): Change output format. Day of
3692         month is now padded with space, not zero.  This now conforms to
3693         ANSI standard.
3694
3695 Wed May 03 17:57:00 2000  Corinna Vinschen <corinna@vinschen.de>
3696
3697         * libc/include/sys/errno.h: Add define for ENOSHARE ("No such
3698         host or network path") used by cygwin. Add some comments.
3699
3700 Tue May 02 23:45:48 2000  DJ Delorie  <dj@cygnus.com>
3701
3702         * libc/include/stdio.h (FILE): define __SCLE for "convert line
3703         endings" for Cygwin.
3704         (__sgetc): convert line endings if needed
3705         (__sputc): ditto
3706         * libc/stdio/fdopen.c (_fdopen_r): Remember if we opened in text mode
3707         * libc/stdio/fopen.c (_fopen_r): ditto
3708         * libc/stdio/freopen.c (freopen): ditto
3709         * libc/stdio/fread.c (fread): perform CRLF conversions if __SCLE
3710         * libc/stdio/fvwrite.c (__sfvwrite): ditto
3711
3712 Thu Apr 27 07:45:48 2000  Alexandre Oliva  <aoliva@cygnus.com>
3713
3714         * libc/machine/mn10300/setjmp.S (setjmp, longjmp): Use
3715         post-increment when it is worth it, spacewise.
3716
3717 Mon Apr 17 12:46:00 2000  Marek Michalkiewicz <marekm@linux.org.pl>
3718
3719         * libc/signal/signal.c (_signal_r) : Removed unused local variable temp.
3720         * libc/stdio/findfp.c (std): Added declaration of flags and file.
3721         * libc/stdio/mktemp.c (_gettemp, _mkstemp_r, mkstemp): Added int 
3722         return type.
3723         * libc/stdio/putchar.c (putchar): Added return statement.
3724         * libc/stdio/refill.c (lflush): Added correct parentheses.
3725         * libc/stdio/vfprintf.c (_VFPRINTF_R): Ditto.
3726         * libc/stdio/vfscanf.c (__svfscanf): Changed sprintf call which 
3727         prints long value to use l qualifier.
3728         * libc/stdlib/dtoa.c (_dtoa_r): Added parentheses to remove warning
3729         messages and initialized local values: ilim, ilim1, and spec_case.
3730         * libc/stdlib/ecvtbuf.c (print_e): Removed unused variable dp.
3731         * libc/stdlib/mbctype.h (_issjis1, _issjis2): Added parentheses.
3732         * libc/stdlib/mprec.c: Ditto.
3733         * libc/stdlib/setenv_r.c: Ditto.
3734         * libc/stdlib/strtod.c: Ditto.
3735         * libc/stdlib/strtol.c: Ditto.
3736         * libc/stdlib/strtoul.c: Ditto.
3737         * libm/common/sf_expm1.c: Added curly braces to if else clauses.
3738         * libm/common/sf_log1p.c: Ditto.
3739         * libm/common/sf_scalbn.c: Ditto.
3740         * libm/math/ef_log.c: Ditto.
3741
3742 Sun Apr 16 12:45:00 2000  Corinna Vinschen <corinna@vinschen.de>
3743
3744         * libc/posix/execvp.c (execvp): Check path for
3745         trailing slash.
3746
3747 Fri Mar 31 20:39:00 2000  Corinna Vinschen <corinna@vinschen.de>
3748
3749         * libc/include/sys/unistd.h: Add prototypes for
3750         fchmod, fchown, lchown.
3751
3752 Fri Mar 24 15:34:00 2000  Jeff Johnston  <jjohnstn@cygnus.com>
3753
3754         * acinclude.m4: Changed release to 1.8.2.
3755         * aclocal.m4 configure doc/aclocal.m4 doc/configure
3756           libc/aclocal.m4 libc/configure libc/machine/aclocal.m4
3757           libc/machine/configure libc/machine/a29k/aclocal.m4
3758           libc/machine/a29k/configure libc/machine/arm/aclocal.m4
3759           libc/machine/arm/configure libc/machine/d10v/aclocal.m4
3760           libc/machine/d10v/configure libc/machine/d30v/aclocal.m4
3761           libc/machine/d30v/configure libc/machine/fr30/aclocal.m4
3762           libc/machine/fr30/configure libc/machine/h8300/aclocal.m4
3763           libc/machine/h8300/configure libc/machine/h8500/aclocal.m4
3764           libc/machine/h8500/configure libc/machine/hppa/aclocal.m4
3765           libc/machine/hppa/configure libc/machine/i386/aclocal.m4
3766           libc/machine/i386/configure libc/machine/i960/aclocal.m4
3767           libc/machine/i960/configure libc/machine/m32r/aclocal.m4
3768           libc/machine/m32r/configure libc/machine/m68k/aclocal.m4
3769           libc/machine/m68k/configure libc/machine/m88k/aclocal.m4
3770           libc/machine/m88k/configure libc/machine/mips/aclocal.m4
3771           libc/machine/mips/configure libc/machine/mn10200/aclocal.m4
3772           libc/machine/mn10200/configure libc/machine/mn10300/aclocal.m4
3773           libc/machine/mn10300/configure libc/machine/necv70/aclocal.m4
3774           libc/machine/necv70/configure libc/machine/powerpc/aclocal.m4
3775           libc/machine/powerpc/configure libc/machine/sh/aclocal.m4
3776           libc/machine/sh/configure libc/machine/sparc/aclocal.m4
3777           libc/machine/sparc/configure libc/machine/tic80/aclocal.m4
3778           libc/machine/tic80/configure libc/machine/v850/aclocal.m4
3779           libc/machine/v850/configure libc/machine/w65/aclocal.m4
3780           libc/machine/w65/configure libc/machine/z8k/aclocal.m4
3781           libc/machine/z8k/configure libc/sys/aclocal.m4
3782           libc/sys/aclocal.m4 libc/sys/configure
3783           libc/sys/a29khif/aclocal.m4 libc/sys/a29khif/configure
3784           libc/sys/arm/aclocal.m4 libc/sys/arm/configure
3785           libc/sys/cygwin/aclocal.m4 libc/sys/cygwin/configure
3786           libc/sys/d10v/aclocal.m4 libc/sys/d10v/configure
3787           libc/sys/decstation/aclocal.m4 libc/sys/decstation/configure
3788           libc/sys/go32/aclocal.m4 libc/sys/go32/configure
3789           libc/sys/h8300hms/aclocal.m4 libc/sys/h8300hms/configure
3790           libc/sys/h8500hms/aclocal.m4 libc/sys/h8500hms/configure
3791           libc/sys/m88kbug/aclocal.m4 libc/sys/m88kbug/configure
3792           libc/sys/netware/aclocal.m4 libc/sys/netware/configure
3793           libc/sys/rtems/aclocal.m4 libc/sys/rtems/configure
3794           libc/sys/sh/aclocal.m4 libc/sys/sh/configure
3795           libc/sys/sparc64/aclocal.m4 libc/sys/sparc64/configure
3796           libc/sys/sun4/aclocal.m4 libc/sys/sun4/configure
3797           libc/sys/sysmec/aclocal.m4 libc/sys/sysmec/configure
3798           libc/sys/sysnec810/aclocal.m4 libc/sys/sysnec810/configure
3799           libc/sys/sysnecv850/aclocal.m4 libc/sys/sysnecv850/configure
3800           libc/sys/sysvi386/aclocal.m4 libc/sys/sysvi386/configure
3801           libc/sys/sysvnecv70/aclocal.m4 libc/sys/sysvnecv70/configure
3802           libc/sys/tic80/aclocal.m4 libc/sys/tic80/configure
3803           libc/sys/w65/aclocal.m4 libc/sys/w65/configure
3804           libc/sys/z8ksim/aclocal.m4 libc/sys/z8ksim/configure
3805           libm/aclocal.m4 libm/configure: Regenerated.
3806
3807 2000-03-24  Nick Clifton  <nickc@cygnus.com>
3808
3809         * libc/sys/arm/syscalls.c: Fix compile time warnings.
3810         (do_AngelSWI): Add "cc" to list o registers clobbered.
3811
3812 Thu Mar 22 14:57:00 2000  Fernando Nasser <fnasser@redhat.com>
3813
3814         * libc/sys/arm/syscalls.c (do_AngelSWI): Prevent registers with valid
3815         information to be clobbered by an Angel C library support syscall. 
3816
3817 Tue Mar 21 19:08:00 2000  Jeff Johnston <jjohnstn@cygnus.com>
3818
3819         * libc/stdlib/envlock.c: Fixed comment typo.
3820
3821 Fri Mar 17 15:37:00 2000  Jeff Johnston <jjohnstn@cygnus.com>
3822
3823         * libc/stdio/vfscanf.c (__svfscanf): Fixed floating point
3824         code to update nread as each character is processed instead
3825         of using buffer contents which throw away leading zeroes.
3826
3827 Mon Mar 13 15:22:00 2000  Sergei Organov <osv@javad.ru>
3828
3829         * libm/mathfp/sf_sqrt.c: Change _DOUBLE_IS_32BITS sqrt call to sqrtf.
3830
3831 Fri Mar 10 16:09:20 2000  Jeff Johnston <jjohnstn@cygnus.com>
3832
3833         * libc/include/string.h: Include <sys/types.h>.
3834
3835 Fri Mar 10 14:53:50 2000  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
3836
3837         * libc/stdio/putw.c (putw): Return 0 on success, to be compliant
3838         with XSH5, not SVID.
3839
3840 Thu Mar  9 17:20:41 2000  Jeff Johnston <jjohnstn@cygnus.com>
3841
3842         * libc/include/string.h: Changed last argument back to ssize_t
3843         to make it compatible with XPG4 definition which is 
3844         defined in <unistd.h>.  There is a conflict in the SVID 3
3845         and XPG4 definitions and newlib will settle with XPG4.
3846         * libc/string/swab.c: Ditto.
3847
3848 Wed Mar  8 17:11:41 2000  Jeff Johnston <jjohnstn@cygnus.com>
3849
3850         * libc/include/string.h: Changed last argument to size_t.
3851         * libc/string/swab.c: Changed last argument to size_t.
3852
3853 Wed Mar  8 00:46:41 2000  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
3854
3855         * libc/reent/Makefile.am (lib_a_SOURCES): Added unlinkr.c.
3856         (CHEWOUT_FILES): Added unlinkr.def.
3857         * libc/reent/Makefile.in: Rebuilt.
3858         * libc/sys.tex: Include unlinkr.def.
3859         * libc/reent/linkr.c (_unlink_r): Moved to...
3860         * libc/reent/unlinkr.c: ... new file.
3861
3862 Wed Mar  8 00:43:07 2000  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
3863
3864         * libc/string/Makefile.am (lib_a_SOURCES): Added swab.c.
3865         (CHEWOUT_FILES): Added swab.def.
3866         * libc/string/Makefile.in: Rebuilt.
3867         * libc/string/string.tex: Include swab.def.
3868         * libc/include/string.h (swab): Declare.
3869         * libc/string/swab.c: New file.
3870
3871 Wed Mar  8 00:38:35 2000  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
3872
3873         * libc/stdio/Makefile.am (lib_a_SOURCES): Added getw.c and putw.c.
3874         (CHEWOUT_FILES): Added getw.def and putw.def.
3875         * libc/stdio/Makefile.in: Rebuilt.
3876         * libc/stdio/stdio.tex: Include getw.def and putw.def.
3877         * libc/stdio/getw.c: New file.
3878         * libc/stdio/putw.c: New file.
3879
3880 Fri Feb 25 14:50:50 2000  Jeff Johnston <jjohnstn@cygnus.com>
3881
3882         * libc/stdio/flags.c (__sflags): Added check that mode[1]
3883         is non-null before looking at mode[2].
3884
3885 Thu Feb 24 11:43:00 2000  Ran Cabell <rcabell@norfolk.infi.net>
3886
3887         * libm/mathfp/sf_atan2.c: Fix atan2 typo for _DOUBLE_IS_32_BITS.
3888         * libm/mathfp/sf_atan.c: Ditto.
3889
3890 Thu Feb 24 11:39:00 2000  Joel Sherrill <joel@OARcorp.com>
3891
3892         * libc/include/sys/stat.h: Add RTEMS prototype for lstat.
3893
3894 Tue Feb 22 14:37:00 2000  Ran Cabell <rcabell@norfolk.infi.net>
3895
3896         * libm/mathfp/sf_exp.c: Corrected _DOUBLE_IS_32_BITS to be
3897         _DOUBLE_IS_32BITS.
3898
3899 Mon Feb 21 11:43:50 2000  Jeff Johnston <jjohnstn@cygnus.com>
3900
3901         * libc/stdio/vfprintf.c (VFPRINTF): Added CHECK_INIT
3902         call prior to calling _VFPRINTF_R so reentrant data area is set.
3903         (_VFPRINTF_R): Removed now extraneous CHECK_INIT call.
3904
3905 Thu Feb 17 01:42:50 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
3906
3907         * libc/stdio/vfscanf.c (limits.h): #include.
3908         (MAX_LONG_LEN): #define.
3909         (__svfscanf): Handle floating point numbers with arbitrary amounts
3910         of leading zeroes.
3911
3912 2000-02-15  Nick Clifton  <nickc@cygnus.com>
3913
3914         * libc/sys/arm/syscalls.c (_fstat): Initialise all fields to
3915         zero.  Set the blocksize to 1024/
3916
3917 Thu Jan 20 18:57:00 2000  Fernando Nasser <fnasser@redhat.com>
3918
3919         * setvbuf.c (setvbuf):  Set size to BUFSIZ when passed a zero size
3920         with line buffering.
3921
3922 Mon Jan 10 18:43:00 2000  Jeff Johnston <jjohnstn@cygnus.com>
3923
3924         * acinclude.m4: Changed include directory for winsup headers. 
3925         * aclocal.m4 configure libc/aclocal.m4
3926           libc/configure libc/ctype/Makefile.in libc/errno/Makefile.in
3927           libc/locale/Makefile.in libc/machine/aclocal.m4
3928           libc/machine/configure libc/machine/a29k/aclocal.m4
3929           libc/machine/a29k/configure libc/machine/arm/aclocal.m4
3930           libc/machine/arm/configure libc/machine/d10v/aclocal.m4
3931           libc/machine/d10v/configure libc/machine/d30v/aclocal.m4
3932           libc/machine/d30v/configure libc/machine/fr30/aclocal.m4
3933           libc/machine/fr30/configure
3934           libc/machine/h8300/aclocal.m4
3935           libc/machine/h8300/configure libc/machine/h8500/aclocal.m4
3936           libc/machine/h8500/configure libc/machine/hppa/aclocal.m4
3937           libc/machine/hppa/configure libc/machine/i386/aclocal.m4
3938           libc/machine/i386/configure libc/machine/i960/aclocal.m4
3939           libc/machine/i960/configure libc/machine/m32r/aclocal.m4
3940           libc/machine/m32r/configure libc/machine/m68k/aclocal.m4
3941           libc/machine/m68k/configure libc/machine/m88k/aclocal.m4
3942           libc/machine/m88k/configure libc/machine/mips/aclocal.m4
3943           libc/machine/mips/configure libc/machine/mn10200/aclocal.m4
3944           libc/machine/mn10200/configure libc/machine/mn10300/aclocal.m4
3945           libc/machine/mn10300/configure libc/machine/necv70/aclocal.m4
3946           libc/machine/necv70/configure libc/machine/powerpc/aclocal.m4
3947           libc/machine/powerpc/configure 
3948           libc/machine/sh/aclocal.m4
3949           libc/machine/sh/configure libc/machine/sparc/aclocal.m4
3950           libc/machine/sparc/configure
3951           libc/machine/tic80/aclocal.m4 libc/machine/tic80/configure
3952           libc/machine/v850/aclocal.m4 libc/machine/v850/configure
3953           libc/machine/w65/aclocal.m4 libc/machine/w65/configure
3954           libc/machine/z8k/aclocal.m4 libc/machine/z8k/configure
3955           libc/misc/Makefile.in libc/posix/Makefile.in
3956           libc/reent/Makefile.in 
3957           libc/signal/Makefile.in
3958           libc/string/Makefile.in libc/sys/aclocal.m4 libc/sys/configure
3959           libc/sys/a29khif/aclocal.m4 libc/sys/a29khif/configure
3960           libc/sys/arm/Makefile.in libc/sys/arm/aclocal.m4
3961           libc/sys/arm/configure libc/sys/cygwin/aclocal.m4
3962           libc/sys/cygwin/configure libc/sys/d10v/Makefile.in
3963           libc/sys/d10v/aclocal.m4 libc/sys/d10v/configure
3964           libc/sys/decstation/aclocal.m4 libc/sys/decstation/configure
3965           libc/sys/go32/aclocal.m4 libc/sys/go32/configure
3966           libc/sys/h8300hms/aclocal.m4 libc/sys/h8300hms/configure
3967           libc/sys/h8500hms/aclocal.m4 libc/sys/h8500hms/configure
3968           libc/sys/m88kbug/aclocal.m4 libc/sys/m88kbug/configure
3969           libc/sys/netware/aclocal.m4 libc/sys/netware/configure
3970           libc/sys/rtems/aclocal.m4 libc/sys/rtems/configure
3971           libc/sys/sh/Makefile.in libc/sys/sh/aclocal.m4
3972           libc/sys/sh/configure libc/sys/sparc64/aclocal.m4
3973           libc/sys/sparc64/configure libc/sys/sun4/aclocal.m4
3974           libc/sys/sun4/configure libc/sys/sysmec/aclocal.m4
3975           libc/sys/sysmec/configure libc/sys/sysnec810/aclocal.m4
3976           libc/sys/sysnec810/configure libc/sys/sysnecv850/aclocal.m4
3977           libc/sys/sysnecv850/configure libc/sys/sysvi386/aclocal.m4
3978           libc/sys/sysvi386/configure libc/sys/sysvnecv70/aclocal.m4
3979           libc/sys/sysvnecv70/configure libc/sys/tic80/aclocal.m4
3980           libc/sys/tic80/configure libc/sys/w65/aclocal.m4
3981           libc/sys/w65/configure libc/sys/z8ksim/aclocal.m4
3982           libc/sys/z8ksim/configure libc/syscalls/Makefile.in
3983           libc/time/Makefile.in libc/unix/Makefile.in libm/aclocal.m4
3984           libm/configure: Regenerated.
3985
3986 Mon Jan 10 18:43:46 2000  Jeff Johnston <jjohnstn@cygnus.com>
3987
3988         * libc/stdlib/putenv_r.c (_putenv_r): New file.
3989         * libc/stdlib/strdup_r.c (_strdup_r): New file.
3990         * libc/include/string.h: Added _strdup_r.
3991         * libc/stdlib/putenv.c: Added call to reentrant version. 
3992         * libc/stdlib/strdup.c: Ditto.
3993         * libc/stdlib/Makefile.am: Added _putenv_r and _unsetenv_r.
3994         * libc/include/stdlib.h: Ditto.
3995         * libc/stdlib/Makefile.in: Regenerated. 
3996         * libc/string/Makefile.in: Regenerated.
3997         * libc/stdlib/setenv.c: Added reentrant version of unsetenv.
3998         * libc/stdlib/setenv_r.c: Added unsetenv_r and changed memory
3999         management calls to reentrant versions.
4000         * libc/stdlib/wcstombs.c: Added #ifndef _REENT_ONLY wrapper.
4001         * libc/stdlib/wctomb.c: Ditto.
4002         * libc/stdlib/mblen.c: Ditto.
4003         * libc/stdlib/mbstowcs.c: Ditto.
4004         * libc/stdlib/mbtowc.c: Ditto. 
4005         * libc/stdlib/getenv.c: Ditto.
4006         * libc/reent/reent.tex: Added references to _putenv_r, _setenv_r,
4007         and _strdup_r.
4008
4009 Thu Jan  6 15:33:46 2000  Christopher Faylor <cgf@cygnus.com>
4010
4011         patch from Corinna Vinschen <corinna@vinschen.de>
4012         * libc/sys/cygwin/sys/param.h: Define NGROUP_MAX as 16.
4013
4014 Mon Jan 03 14:36:00 2000  Sergei Organov <osv@javad.ru>
4015
4016         * libm/mathfp/s_atangent.c: Fix exponent calculation.
4017         * libm/mathfp/s_ldexp.c: Ditto.
4018         * libm/mathfp/sf_atangent.c: Ditto.
4019         * libm/mathfp/sf_ldexp.c: Ditto.
4020
4021 Tue Dec 14 5:42:00 1999  Ranjith Kumaran <ranjith@cygnus.com>
4022
4023         * libc/machine/i960/setjmp.S: fix typo leaving .link_pix uncommented
4024         * libc/include/locale.h: define NULL to be 0.
4025
4026 Tue Dec  7 15:41:45 1999  Jim Wilson  <wilson@cygnus.com>
4027
4028         * libc/sys/sh/syscalls.c (stack_ptr): Move definition before first
4029         function.
4030
4031 Wed Dec  1 17:39:29 1999  Jeffrey A Law  (law@cygnus.com)
4032
4033         * libc/machine/mn10300/setjmp.S: Handle am33.
4034
4035 1999-11-26  Nick Clifton  <nickc@cygnus.com>
4036
4037         * libc/sys/arm/syscalls.c: Add function prototypes.
4038         (stack_ptr): Move declaration before function definitions.
4039
4040 Sat Nov 20 17:13:00 1999  Ranjith Kumaran <ranjith@cygnus.com>
4041
4042         * NEWS: Updated version information.
4043         * README: Ditto.
4044
4045 Tue Nov 09 12:19:21 1999  Jeff Johnston <jjohnstn@cygnus.com>
4046
4047         * libc/machine/i386/strchr.S: Fixed alignment test.
4048
4049 Thu Oct 28 05:30:46 1999  Andrew Cagney  <cagney@makita.cygnus.com>
4050
4051         * libc/sys/d10v/crt0.S (_start): Construct a real stack frame.
4052
4053 Thu Oct 28 15:29:11 1999  Andrew Cagney  <cagney@b1.cygnus.com>
4054
4055         * libc/sys/d10v/crt0.S (_start): Initialize both SPI and SPU
4056         ensuring that there is space between the two.
4057
4058 Thu Oct 14 13:39:21 1999  Christopher Faylor <cgf@cygnus.com>
4059
4060         * libc/stdio/flags.c: Conditionalize check for 't' for cygwin case
4061         only.
4062
4063 1999-10-08  Vadim Egorov  <egorovv@1c.ru>
4064
4065         * libc/include/stdlib.h: add ptsname, grantpt, unlockpt to cygwin
4066         section
4067
4068 Sat Oct  2 02:02:00 MEST 1999  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
4069
4070         * libc/machine/sh/asm.h: Added __SH4_SINGLE__ to DELAYED_BRANCHES
4071         * libc/machine/sh/memcpy.S: Fix line wrapping in SL macro
4072
4073 Fri Oct  1 13:17:59 CDT 1999  <joel@OARcorp.com>
4074         * libc/include/grp.h: Added getgrnam_r and getgrgid_r prototypes
4075           per POSIX 1003.1b.
4076         * libc/include/pwd.h: Added getpwnam_r and getpwuid_r prototypes
4077           per POSIX 1003.1b.
4078
4079 1999-09-13  DJ Delorie  <dj@cygnus.com>
4080
4081         * libc/stdio/mktemp.c (_gettemp): on cygwin, check for EACCESS
4082         also.
4083
4084 Thu Sep  9 15:31:00 1999  Jeff Johnston <jjohnstn@cygnus.com>
4085
4086         * setvbuf.c (setvbuf):  When mallocing a buffer of size BUFSIZ,
4087         also note BUFSIZ as its size.
4088
4089 Tue Sep  7 17:15:00 1999  Joel Sherrill <joel@OARcorp.com>
4090
4091         * configure.host: Corrected feature defines for RTEMS.
4092         * libc/include/sys/stat.h: Added protototype for RTEMS mknod.
4093         * libc/include/sys/stat.h: mkfifo() should take const path arg.
4094         * libc/include/sys/unistd.h: pathconf() should take const path arg.
4095           Enabled usleep(), ftruncate(), and truncate() prototypes for RTEMS.
4096           Added defines for _POSIX_JOB_CONTROL, _POSIX_SAVED_IDS, and
4097           _POSIX_VERSION for RTEMS.  Added defines for _PC_ASYNC_IO,
4098           _PC_PRIO_IO, and _PC_SYNC_IO.
4099         * libc/machine/m68k/Makefile.am: Added strcpy.c and strlen.c.
4100         * libc/machine/m68k/Makefile.in: Regenerated.
4101         * libc/machine/m68k/strcpy.c: New file.
4102         * libc/machine/m68k/strlen.c: New file.
4103         * libc/stdio/tmpnam.c: Always make the returned name usable.
4104         * libc/sys/rtems/crt0.c: New version that passes all autoconf tests.
4105         * libc/sys/rtems/sys/dirent.h: New file.
4106         * libc/sys/rtems/sys/types.h: Added dev_t.
4107
4108 Tue Sep  7 17:15:00 1999   Jay Kulpinski <jskulpin@eng01.gdds.com>
4109
4110         * libc/stdlib/mprec.c: Fixed unitialized variable problem.
4111
4112 Fri Sep  3 12:35:20 1999  Jeff Johnston <jjohnstn@cygnus.com>
4113
4114         * libc/stdio/ftell.c (ftell): Backing off Joern's fix and
4115         my patch.
4116
4117 Thu Sep  2 22:05:20 1999  Christopher Faylor <cgf@cygnus.com>
4118
4119         patch from Jeff Johnston <jjohnstn@cygnus.com>
4120         * libc/stdio/ftell.c (ftell): Avoid using buffer position when the
4121         buffer is not in a useful state.
4122
4123 1999-09-01  Nick Clifton  <nickc@cygnus.com>
4124
4125         * libc/sys/arm/syscalls.c (_link): Add stub.
4126
4127 Fri Aug 27 23:09:09 1999  J"orn Rennecke <amylaar@cygnus.co.uk>
4128
4129         * ftell.c (ftell): Use actual position within buffer for text mode.
4130         * findfp.c (std): Initialize ptr->_bf._size.
4131
4132 Wed Aug 18 18:48:02 1999  Christopher Faylor <cgf@cygnus.com>
4133
4134         * libc/include/sys/unistd.h: Add nice() declaration.
4135
4136 1999-08-09  Nick Clifton  <nickc@cygnus.com>
4137
4138         * libc/sys/arm/crt0.S (change_mode): Rename to __change_mode and
4139         declare as a thumb function so that the disassembler will see the
4140         mode change.
4141
4142 Thu Aug  5 17:37:00 1999  Ranjith Kumaran <ranjith@cygnus.com>
4143
4144         * libc/reent/reent.tex: Updated list of reentrant functions.
4145
4146 1999-07-09  Michael Meissner  <meissner@cygnus.com>
4147
4148         * libc/include/stdlib.h (_findenv{,_r}): Add prototypes.
4149         
4150 Tue Jul  6 10:46:24 1999  Jeff Johnston <jjohnstn@cygnus.com>
4151
4152         * libc/stdio/sprintf.c: Moved snprintf and _snprintf_r to
4153         separate file.
4154         * libc/stdio/snprintf.c: New file.
4155         * libc/stdio/vsprintf.c: Moved vsnprintf and _vsnprintf_r to
4156         separate file.
4157         * libc/stdio/vsnprintf.c: New file.
4158         * libc/stdio/Makefile.am: Added snprintf.c and vsnprintf.c.
4159         * libc/stdio/Makefile.in: Regenerated.
4160
4161 Mon Jul  5 14:43:24 1999  Christopher Faylor <cgf@cygnus.com>
4162
4163         Patch submitted by Egor Duda <deo@logos-m.ru>:
4164         * libc/include/stdio.h: Add declarations for *nprintf.
4165         * libc/stdio/sprintf.c (snprintf): New function.
4166         (_snprintf_r): New function.
4167         * libc/stdio/vsprintf.c (vsnprintf): New function.
4168         (_vnsprintf_r): New function.
4169
4170 Wed Jun 30 16:36:27 1999  Jeff Johnston  <jjohnstn@cygnus.com>
4171
4172         * libc/Makefile.am (stmp-targetdep): Remove extraneous blank.
4173         * libm/Makefile.am (stmp-targetdep): Ditto.
4174         * libc/Makefile.in: Regenerated.
4175         * libm/Makefile.in: Ditto.
4176
4177 Fri Jun 25 10:49:27 1999  Jeff Johnston  <jjohnstn@cygnus.com>
4178
4179         * libc/Makefile.am (stmp-targetdep): Ignore "." in SUBDIRS.
4180         * libm/Makefile.am (stmp-targetdep): Ditto.
4181         * libc/Makefile.in: Regenerated.
4182         * libm/Makefile.in: Ditto.
4183
4184 Thu June 03 16:25:00 1999  Jeff Johnston <jjohnstn@cygnus.com>
4185
4186         * Makefile.am: Removed dependencies on all-recursive and added "."
4187         to the SUBDIRS list to prevent infinite recursion from occurring.
4188         Also removed any references to EXTRA_DATA.
4189         * libc/Makefile.am: Ditto.
4190         * libc/machine/Makefile.am: Ditto.
4191         * libc/machine/i386/Makefile.am: Ditto.
4192         * libm/Makefile.am: Ditto.
4193         * libc/sys/Makefile.am: Ditto.
4194         * Makefile.in: Regenerated.
4195         * aclocal.m4: Ditto.
4196         * configure: Ditto.
4197         * doc/Makefile.in: Ditto.
4198         * doc/aclocal.m4: Ditto.
4199         * doc/configure: Ditto.
4200         * libc/Makefile.in: Ditto.
4201         * libc/aclocal.m4: Ditto.
4202         * libc/configure: Ditto.
4203         * libc/machine/Makefile.in: Ditto.
4204         * libc/machine/aclocal.m4: Ditto.
4205         * libc/machine/configure: Ditto.
4206         * libc/machine/mn10300/Makefile.in: Ditto.
4207         * libc/machine/mn10300/aclocal.m4: Ditto.
4208         * libc/machine/mn10300/configure: Ditto.
4209         * libc/sys/Makefile.in: Ditto.
4210         * libc/sys/aclocal.m4: Ditto.
4211         * libc/sys/configure: Ditto.
4212         * libm/Makefile.in: Ditto.
4213         * libm/aclocal.m4: Ditto.
4214         * libm/configure: Ditto.
4215
4216 Thu June 03 16:20:00 1999  Ranjith Kumaran <ranjith@cygnus.com>
4217
4218         * libc/include/stdlib/stdlib.tex: Add link to env_lock.
4219
4220 Fri May 28 17:09:00 1999  Ranjith Kumaran <ranjith@cygnus.com>
4221
4222         * libc/include/stdlib.h: Add reentrant routines.
4223         * libc/stdlib/Makefile.am: Add reentrant routines.
4224         * libc/stdlib/Makefile.in: Ditto.
4225         * libc/stdlib/envlock.c: New file.
4226         * libc/stdlib/envlock.h: New file.
4227         * libc/stdlib/getenv.c: Modify to call reentrant routine.
4228         * libc/stdlib/getenv_r.c: New file.
4229         * libc/stdlib/mblen.c: Modify to call reentrant routine.
4230         * libc/stdlib/mblen_r.c: New file.
4231         * libc/stdlib/setenv.c: Modify to call reentrant routine.
4232         * libc/stdlib/setenv_r.c: New file.
4233         * libc/stdlib/stdlib.tex: Add reentrant routines.
4234
4235 Mon May 17 22:01:38 1999  Christopher Faylor <cgf@cygnus.com>
4236
4237         * libc/include/sys/types.h: Define __MS_types__ whenever
4238         cygwin or win32.
4239
4240 Sun May 16 16:02:41 1999  Christopher Faylor <cgf@cygnus.com>
4241
4242         * libc/include/machine/ieeefp.h: Always default to little
4243         endian if Windows, regardless of architecture.
4244         * libc/include/machine/sethmp.h: Define JBLEN if CYGWIN
4245         regardless of architecture.
4246
4247 Mon May  3 11:49:18 1999  Geoffrey Noer  <noer@cygnus.com>
4248
4249         * libc/include/machine/setjmp.h: Accept CYGWIN define, even if
4250         _WIN32 isn't defined.
4251
4252 Mon May  3 11:41:51 1999  Jeff Johnston  <jjohnstn@cygnus.com>
4253
4254         * libm/common/s_rint.c (rint): Add volatile qualifier for
4255         intermediate value w.
4256         * libm/common/sf_rint.c (rintf): Ditto.
4257
4258 Thu Apr 29 20:34:27 1999  Jeff Johnston  <jjohnstn@cygnus.com>
4259
4260         * libc/sys/arm/syscalls.c (remap_handle): Added check to
4261         ensure that std streams are initialized before being referenced.
4262
4263 1999-04-27  Jason Molenda  (jsm@bugshack.cygnus.com)
4264
4265         * README: Update reference to newlib@cygnus.com new
4266         newlib@sourceware.cygnus.com address.
4267
4268 Mon Apr 26 18:17:33 1999  Geoffrey Noer  <noer@cygnus.com>
4269
4270         * libc/include/sys/types.h: Define MS_types if CYGWIN is defined.
4271         * libc/include/sys/fcntl.h: Define _O_BINARY et al if CYGWIN is
4272         defined, even if _WIN32 isn't defined.
4273
4274 Sat Apr 24 19:59:55 1999  Christopher Faylor <cgf@cygnus.com>
4275
4276         * libc/include/sys/fcntl.h: Correct _O_CREATE to _O_CREAT.
4277
4278 Wed Apr 21 18:01:00 1999  Ranjith Kumaran  <ranjith@cygnus.com>
4279
4280         * libc/include/sys/reent.h: Change Long and ULong to __Long and
4281         __ULong.
4282         * libc/stdlib/dtoa.c: Ditto.
4283         * libc/stdlib/mprec.c: Ditto.
4284         * libc/stdlib/mprec.h: Ditto.
4285         * libc/stdlib/strtod.c: Ditto.
4286
4287 1999-04-21  Nick Clifton  <nickc@cygnus.com>
4288
4289         * configure.host (mcore): Remove mcore machine directory.
4290
4291 1999-04-18  Nick Clifton  <nickc@cygnus.com>
4292
4293         * libc/include/machine/ieeefp.h: Add support for mcore target.
4294         * libc/include/machine/setjmp.h: Add support for mcore target.
4295         * configure.host: Add support for mcore target.
4296
4297 1999-04-13  Mark Salter  <msalter@cygnus.com>
4298
4299         * libc/sys/arm/libcfunc.c: Moved isatty to syscall.c
4300         * libc/sys/arm/syscalls.c: Added isatty.
4301
4302 Wed Apr 07 16:06:04 1999  Jeff Johnston  <jjohnstn@cygnus.com>
4303
4304         * libc/stdlib/ecvtbuf.c (fcvtbuf): Fixed code to properly
4305         insert zeroes after significant digits.
4306
4307 Wed Mar 17 22:06:04 1999  Jeff Johnston  <jjohnstn@cygnus.com>
4308         
4309         * libc/stdio/vfprintf.c (cvt): Changed floating point
4310         cvt routine to use union used by dtoa to properly determine
4311         if the sign bit is on or not.
4312         * libc/stdio/vfieeefp.h: New file
4313         
4314 Wed Mar 17 17:35:04 1999  Jeff Johnston  <jjohnstn@cygnus.com>
4315
4316         * aclocal.m4: Regenerated.
4317         * configure: Regenerated.
4318
4319 Wed Mar 17 16:35:04 1999  Jeff Johnston  <jjohnstn@cygnus.com>
4320
4321         * libc/machine/i386/Makefile.am (lib_a_SOURCES): Added missing
4322         f_tanf reference.
4323         * libc/machine/i386/Makefile.in: Regenerated.
4324
4325 Tue Mar 16 14:56:36 1999  Jeff Johnston  <jjohnstn@cygnus.com>
4326
4327         * acinclude.m4: Changed to work with new automake.
4328         * configure: Regenerated.
4329         * libc/machine/i386/aclocal.m4: Regenerated.
4330         * libc/machine/i386/configure: Regenerated.
4331
4332 Tue Mar 16 13:55:36 1999  Corinna Vinschen  <corinna.vinschen@cityweb.de>
4333
4334         * libc/sys/cygwin/sys/dirent.h: Add additional prototypes
4335         for telldir() and seekdir().  Rename unused structure element
4336         for use with these two routines.
4337
4338 Fri Mar 12 19:11:58 1999  Jeff Johnston  <jjohnstn@cygnus.com>
4339
4340         * libc/time/mktime.c (validate_structure): Multiple fixes to
4341         code to handle cases where input fields are outside valid ranges.
4342         * libc/stdlib/div.c (div): Modified invalid rounding check.
4343         * libc/stdlib/ldiv.c (ldiv): Ditto.
4344
4345 Thu Mar 11 21:32:13 1999  Jeff Johnston  <jjohnstn@cygnus.com>
4346
4347         * libc/machine/i386/memcpy.S: Performance rewrite.
4348         * libc/machine/i386/memmove.S: Ditto.
4349         * libc/machine/i386/i386mach.h: Added more register definitions.
4350         * libc/include/math.h: Include <machine/fastmath.h> if -ffast-math
4351         option used.
4352         * libc/include/machine/fastmath.h: Add definitions for x86
4353         fast-math routines.
4354
4355 Wed Mar 10 17:56:00 1999 Ranjith Kumaran  <ranjith@cygnus.com>
4356
4357         * libc/stdlib/strtod.c: Change from unsigned long to ULong.
4358
4359 Tue Mar  9 14:31:58 1999  Geoffrey Noer  <noer@cygnus.com>
4360
4361         Adjust newlib headers for new Cygwin Win32 API header files:
4362         * libc/include/sys/time.h: Check _WINSOCK_H rather than
4363         _GNU_H_WINDOWS32_SOCKETS.
4364         * libc/include/sys/types.h: Ditto.
4365
4366 Tue Mar 09 15:55:00 1999 Ranjith Kumaran  <ranjith@cygnus.com>
4367
4368         *include/sys/reent.h: Add checks for size of Bigint element Long.
4369         *libc/dtoa.c: Change routines to use generic Long type.
4370         *libc/mprec.c: Change routines to use generic Long type.
4371         *libc/mprec.h: Change routines to use generic Long type.
4372
4373 Tue Mar 02 18:07:49 1999 Ranjith Kumaran  <ranjith@cygnus.com>
4374
4375         * libc/Makefile.am: Add .def files.
4376         * libc/Makefile.in: Regenerate.
4377         * libc/e_acosh.c: Documentation update.
4378         * libc/e_atanh.c: Documentation update.
4379         * libc/e_hypot.c: Documentation update.
4380         * libc/e_remainder.c: Documentation update.
4381         * libc/er_lgamma.c: Documentation update.
4382         * libc/mathfp.tex: Documentation update.
4383         * libc/s_acos.c: Documentation update.
4384         * libc/s_atan.c: Documentation update.
4385         * libc/s_atan2.c: Documentation update.
4386         * libc/s_cosh.c: Documentation update.
4387         * libc/s_fmod.c: Documentation update.
4388         * libc/s_isnan.c: Documentation update.
4389         * libc/s_log10.c: Documentation update.
4390         * libc/s_pow.c: Documentation update.
4391         * libc/w_jn.c: Documentation update.
4392
4393 Sun Feb 28 23:18:49 1999  Geoffrey Noer  <noer@cygnus.com>
4394
4395         * aclocal.m4: Regenerate.
4396         * configure: Regenerate.
4397
4398 Tue Feb 23 13:57:26 1999  Jeff Johnston  <jjohnstn@cygnus.com>
4399
4400         * libc/machine/mn10300/setjmp.S (_longjmp): Fixed longjmp
4401         to return 1 if user specified return code is 0.
4402         * libc/machine/mn10200/setjmp.S (_longjmp): Ditto.
4403
4404 Thu Feb 18 11:13:28 1999  Jeff Johnston  <jjohnstn@cygnus.com>
4405
4406         * libc/machine/mn10200/setjmp.S (_setjmp/_longjmp): Fixed setjmp
4407         to save the return address.  Fixed longjmp to return to the original
4408         calling address of setjmp and to return the user specified return code
4409         rather than default to 1.
4410         * libc/machine/mn10300/setjmp.S (_setjmp/_longjmp): Ditto.
4411
4412 Mon Feb 15 17:48:17 1999  Jeff Johnston  <jjohnstn@cygnus.com>
4413
4414         * libc/stdlib/mprec.h (mult): Define mult to be _multiply instead of _mult.
4415
4416 1999-02-10  Nick Clifton  <nickc@cygnus.com>
4417
4418         * libc/sys/arm/syscalls.c (initialise_monitor_handles): Make block
4419         volatile so that its assignments will not be discarded.
4420
4421 Wed Feb 10 17:19:40 1999  Jeff Johnston  <jjohnstn@cygnus.com>
4422
4423         * libc/include/_ansi.h: Corrected _STRICT_ANSI reference to
4424         be __STRICT_ANSI__ which is generated by compiler.
4425         * libc/include/ctype.h: Ditto.
4426         * libc/include/math.h: Ditto.
4427         * libc/include/stdio.h: Ditto.
4428         * libc/include/stdlib.h: Ditto.
4429         * libc/include/string.h: Ditto.
4430         * libc/include/sys/signal.h: Ditto.
4431
4432 1999-02-08  Nick Clifton  <nickc@cygnus.com>
4433
4434         * configure.host: Add support for StrongARM target.
4435
4436 Fri Feb  5 11:13:14 1999  Jeff Johnston  <jjohnstn@cygnus.com>
4437
4438         * libc/string/strncpy.c (strncpy): Removed redundant code
4439         that was copying bytes if data unaligned.
4440
4441 1999-02-02  Brendan Kehoe  <brendan@cygnus.com>
4442
4443         * libc/stdlib/Makefile.{am,in} (CHEWOUT_FILES): Add mblen.def,
4444         mbstowcs.def, and wcstombs.def.
4445
4446 Sat Jan 30 02:36:33 1999  Christopher Faylor <cgf@cygnus.com>
4447
4448         * libc/include/sys/errno.h: Add Cygwin errno.
4449         * libc/stdio/flags.c: Don't default to O_TEXT if no other flag
4450         is specified.
4451
4452 1999-01-29  Nick Clifton  <nickc@cygnus.com>
4453
4454         * libc/sys/arm/syscalls.c: Move C library functions into seperate
4455         file.
4456         
4457         * libc/sys/arm/libcfunc.c: New file containing C library functions
4458         from syscalls.c
4459
4460         * libc/sys/arm/Makefile.am (lib_a_SOURCES): Add libcfuncs.c
4461         * libc/sys/arm/Makefile.in (lib_a_SOURCES): Regenerate.
4462
4463
4464 1999-01-27  Michael Meissner  <meissner@cygnus.com>
4465
4466         * libc/include/machine/setjmp.h (D30V _JBLEN/_JBTYPE): Use double
4467         type, and cut size in half so that the jmp_buf array is guaranteed
4468         to be aligned on a 64-bit boundary.
4469
4470 Mon Jan 25 12:05:38 1999  Jeff Johnston  <jjohnstn@cygnus.com>
4471
4472         * libc/string/strings.tex: Added information about
4473         strcasecmp and strncasecmp.
4474         * libc/stdlib/stdlib.tex: Added missing information
4475         about mblen, mbstowcs, and wcstombs.
4476         * libc/string/strchr.c: Changed how mask is built to use
4477         shift operators so register will be used instead of storage.
4478
4479 1999-01-22  DJ Delorie  <dj@cygnus.com>
4480
4481         * libc/include/stdlib.h: don't use dllimport if we're building
4482         newlib, since it's inside cygwin.dll
4483
4484 Fri Jan 22 14:57:18 1999  Christopher Faylor <cgf@cygnus.com>
4485
4486         * libc/ctype/ctype_.c: Need to use __declspec(dllexport) for
4487         _ctype_ under cygwin.
4488
4489 Fri Jan 22 09:50:19 1999  Christopher Faylor <cgf@cygnus.com>
4490
4491         * include/stdlib.h: Fix typo from previous checkin.
4492
4493 Thu Jan 21 22:42:21 1999  Christopher Faylor <cgf@cygnus.com>
4494
4495         * include/ctype.h: Use __declspec(dllimport) method for exporting
4496         variable from cygwin DLL.
4497         * include/time.h: Ditto.
4498         * sys/errno.h: Ditto.
4499         * include/stdlib.h: Export __mb_cur_max from cygwin DLL.
4500         * libc/locale/locale.c: Use __declspec(dllexport) method for
4501         exporting variable from cygwin DLL.
4502
4503 Sat Jan 16 13:29:54 1999  Christopher Faylor <cgf@cygnus.com>
4504
4505         * libc/stdio/setvbuf.c: Always clean up when _IONBF or possible
4506         access of bogus pointer will result in SIGSEGV.
4507
4508 1999-01-07  Nick Clifton  <nickc@cygnus.com>
4509
4510         * libc/sys/arm/setjmp.S: Use C macros to cope with the possibility
4511         of an underscore prefix to function names.
4512
4513 Fri Jan  8 19:00:07 1999  Jeff Johnston  <jjohnstn@cygnus.com>
4514
4515         * libc/machine/i386/i386mach.h (__REG_PREFIX__): Create new
4516         define __REG_PREFIX__ instead of using __REGISTER_PREFIX__.
4517
4518 1998-12-31  Michael Meissner  <meissner@cygnus.com>
4519
4520         * libc/machine/i386/i386mach.h (__REGISTER_PREFIX__): Only define
4521         to `%' if not already defined.
4522
4523 1998-12-30  Michael Meissner  <meissner@cygnus.com>
4524
4525         * libc/stdio/tmpnam.c (_tempnam_r): Make directory and prefix
4526         arguments const char *, not char *.
4527         * libc/include/stdio.h (_tempnam_r): Ditto.
4528
4529         * libc/include/sys/reent.h (struct _reent): The _sig_func type
4530         points to a function taking an integer, not void.
4531
4532 Tue Dec 29 14:35:53 1998  Christopher Faylor <cgf@cygnus.com>
4533
4534         * configure.host: Add a define for Cygwin builds.
4535         * libc/include/ctype.h: Don't use dll imported variables in newlib.
4536
4537 Mon Dec 28 09:19:56 1998  Christopher Faylor <cgf@cygnus.com>
4538
4539         * libc/include/ctype.h: Define _ctype_ as dll imported variable
4540         for use with Cygwin.
4541         * libc/include/sys/errno.h: Define _sys_errlist and _sys_nerr as
4542         dll imported variables for use with Cygwin.
4543         * libc/ctype/ctype_.c: Undefine _ctype_ in case it has been defined
4544         as a dll imported variable for Cygwin.
4545
4546 Sat Dec 26 00:13:53 1998  Christopher Faylor <cgf@cygnus.com>
4547
4548         * libc/include/sys/unistd.h: Add proto for getpass.
4549
4550 Fri Dec 18 19:28:19 1998  Geoffrey Noer  <noer@cygnus.com>
4551
4552         * libc/sys/cygwin/sys/dirent.h: add protos for scandir and
4553         alphasort.
4554
4555 Fri Dec 18 16:33:25 1998  Geoffrey Noer  <noer@cygnus.com>
4556
4557         * libc/posix/execvp.c (execvp): call cygwin_posix_path_list_p,
4558         not posix_path_list_p.
4559
4560 1998-12-15  Nick Clifton  <nickc@cygnus.com>
4561
4562         * libc/string/memchr.c: Treat 'c' argument as an unsigned byte not
4563         a signed int.
4564
4565 1998-12-13  Nick Clifton  <nickc@cygnus.com>
4566
4567         * libc/include/machine/setjmp.h (_JBLEN): Set to 10.
4568
4569 1998-12-12  Nick Clifton  <nickc@cygnus.com>
4570
4571         * libc/machine/fr30/setjmp.S: New file, supplied by Mark Slater
4572         <msalter@cygnus.com>
4573         * libc/machine/fr30/Makefile.am: Add build of setjmp.S
4574         * libc/machine/fr30/Makefile.in: Regenerated.
4575
4576 1998-12-11  Nick Clifton  <nickc@cygnus.com>
4577
4578         * configure.host: Remove use of libc/sys for FR30 port.
4579         * libc/sys/fr30: Remove directory (replaced by libgloss).
4580
4581 1998-12-10  Ken Raeburn  <raeburn@cygnus.com>
4582
4583         * libc/string/strcat.c (ALIGNED): Sense of result was reversed.
4584         * libc/string/strncat.c (ALIGNED): Ditto.
4585
4586 Wed Dec  9 14:37:57 1998  Geoffrey Noer  <noer@cygnus.com>
4587
4588         * libc/include/sys/time.h: include sys/types.h
4589
4590 Tue Dec  8 15:53:18 1998  Jeff Johnston  <jjohnstn@cygnus.com>
4591
4592         * libc/machine/i386/memcmp.S (memcmp): Fix for unequal
4593         comparison found when checking word at a time.
4594
4595 1998-12-04  Nick Clifton  <nickc@cygnus.com>
4596
4597         * libc/sys/fr30/crt0.s (_start): Initialise frame pointer.
4598
4599 1998-12-03  Nick Clifton  <nickc@cygnus.com>
4600
4601         * libc/sys/fr30/syscalls.c (_times): New function stub.
4602
4603 Thu Dec  3 15:59:19 1998  Jeff Johnston  <jjohnstn@cygnus.com>
4604
4605         * configure.host (mach_add_setjmp): Replaced mach_add_objs
4606         with mach_add_setjmp flag which indicates if setjmp should
4607         be added to the machine directory objects.
4608         * acinclude.m4: Removed reference to mach_add_objs.
4609         * aclocal.m4: Regenerated.
4610         * Makefile.in: Regenerated.
4611         * configure: Regenerated.
4612         * libc/aclocal.m4: Regenerated.
4613         * libc/Makefile.in: Regenerated.
4614         * libc/configure: Regenerated.
4615         * libc/machine/aclocal.m4: Regenerated.
4616         * libc/machine/Makefile.in: Regenerated.
4617         * libc/machine/configure: Regenerated.
4618         * libc/machine/i386/aclocal.m4: Regenerated.
4619         * libc/machine/i386/Makefile.am: Altered to selectively add
4620         setjmp.S to the src files list.
4621         * libc/machine/i386/Makefile.in: Regenerated.
4622         * libc/machine/i386/configure.in: Altered to test mach_add_setjmp.
4623         * libc/machine/i386/configure: Regenerated.
4624
4625 1998-12-02  Nick Clifton  <nickc@cygnus.com>
4626
4627         * libc/sys/fr30/crt0.s (_start): Fix function names.
4628
4629         * libc/machine/fr30: New directory
4630         * libc/machine/fr30/Makefile.am: New file.
4631         * libc/machine/fr30/Makefile.in: New generated file.
4632         * libc/machine/fr30/configure.in: New file.
4633         * libc/machine/fr30/configure: New generated file.
4634         * libc/machine/fr30/aclocal.m4: New generated file.
4635         * libc/sys/fr30/Makefile.am: New file.
4636         * libc/sys/fr30/Makefile.in: New generated file.
4637         * libc/sys/fr30/configure.in: New file.
4638         * libc/sys/fr30/configure: New generated file.
4639         * libc/sys/fr30/syscalls.c: New file.
4640
4641 Tue Dec  1 16:28:56 1998  Geoffrey Noer  <noer@cygnus.com>
4642
4643         * libc/sys/cygwin/sys/utmp.h: new file, moved from winsup/include.
4644
4645 1998-12-01  Ken Raeburn  <raeburn@cygnus.com>
4646
4647         * libc/time/strftime.c (strftime): Also handle %y for years before
4648         1900.
4649
4650 Tue Dec  1 13:26:07 1998  Christopher Faylor <cgf@cygnus.com>
4651
4652         * libc/string/strcasecmp.c (strcasecmp): Adhere to standard
4653         UNIX convention.  Perform tolower on characters before comparing
4654         them rather than use toupper.
4655         * libc/string/strncasecmp.c (strncasecmp): Ditto.
4656
4657 Mon Nov 30 16:24:19 1998  Jeff Johnston  <jjohnstn@cygnus.com>
4658         
4659         * configure.host: Added using i386 machine directory
4660         for all x86 cross-compiler and configuring
4661         which added object files to use via new "mach_add_objs" variable.
4662         * configure: Regenerated.
4663         * libc/configure: Regenerated.
4664         * libc/Makefile.in: Regenerated.
4665         * libc/aclocal.m4: Regenerated.
4666         * libc/ctype/Makefile.in: Regenerated.
4667         * libc/errno/Makefile.in: Regenerated.
4668         * libc/locale/Makefile.in: Regenerated.
4669         * libc/machine/Makefile.in: Regenerated.
4670         * libc/machine/aclocal.m4: Regenerated.
4671         * libc/machine/configure: Regenerated.
4672         * libc/posix/Makefile.in: Regenerated.
4673         * libc/reent/Makefile.in: Regenerated.
4674         * libc/signal/Makefile.in: Regenerated.
4675         * libc/stdio/Makefile.in: Regenerated.
4676         * libc/stdlib/Makefile.in: Regenerated.
4677         * libc/string/Makefile.in: Regenerated.
4678         * libc/string/memmove.c: Optimized code to use memcpy
4679         logic when performing a non-destructive copy.
4680         * libc/string/strncmp.c: Altered code to allow building
4681         optimized for size or speed.
4682         * libc/syscalls/Makefile.in: Regenerated.
4683         * libc/time/Makefile.in: Regenerated.
4684         * libc/unix/Makefile.in: Regenerated.
4685         * libc/machine/i386/Makefile.am: Added new files and reference
4686         to "mach_add_objs" to indicate optional object files.
4687         * libc/machine/i386/Makefile.in: Regenerated.
4688         * libc/machine/i386/aclocal.m4: Regenerated.
4689         * libc/machine/i386/configure: Regenerated.
4690         * libc/machine/i386/memchr.S: New file that implements
4691         function in Intel assembler.
4692         * libc/machine/i386/memcmp.S: ditto.
4693         * libc/machine/i386/memcpy.S: ditto.
4694         * libc/machine/i386/memmove.S: ditto.
4695         * libc/machine/i386/memset.S: ditto.
4696         * libc/machine/i386/strchr.S: ditto.
4697         * libc/machine/i386/strlen.S: ditto.
4698         * libc/machine/i386/f_atan2.S: New file that implements
4699         fast version of math function to be used by compiler when
4700         --ffast_math compile option is used.
4701         * libc/machine/i386/f_atan2f.S: ditto.
4702         * libc/machine/i386/f_exp.c: ditto.
4703         * libc/machine/i386/f_expf.c: ditto.
4704         * libc/machine/i386/f_frexp.S: ditto.
4705         * libc/machine/i386/f_frexpf.S: ditto.
4706         * libc/machine/i386/f_ldexp.S: ditto.
4707         * libc/machine/i386/f_ldexpf.S: ditto.
4708         * libc/machine/i386/f_log.S: ditto.
4709         * libc/machine/i386/f_logf.S: ditto.
4710         * libc/machine/i386/f_log10.S: ditto.
4711         * libc/machine/i386/f_log10f.S: ditto.
4712         * libc/machine/i386/f_math.h: New file.
4713         * libc/machine/i386/f_pow.c: ditto.
4714         * libc/machine/i386/f_powf.S: ditto.
4715         * libc/machine/i386/f_tan.S: ditto.
4716         * libc/machine/i386/f_tan.S: ditto.
4717         * libc/machine/i386/i386mach.h: New file.
4718
4719 Mon Nov 30 13:02:17 1998  Christopher Faylor <cgf@cygnus.com>
4720
4721         patch from Mumit Khan <khan@xraylith.wisc.edu>
4722         * libc/include/stdio.h (tempnam): Add prototype.
4723         * libc/stdio/tmpnam.c (_tempnam_r): Handle NULL prefix.
4724         (tempnam): Adhere to prototype.
4725
4726 Thu Nov 26 00:21:32 1998  Christopher Faylor <cgf@cygnus.com>
4727
4728         * Makefile.am: Add default for AR_FLAGS.
4729         * Makefile.in: Regenerate.
4730
4731 Tue Nov 24 18:48:56 1998  Geoffrey Noer  <noer@cygnus.com>
4732
4733         * libc/include/time.h: move __cplusplus wrapper after includes
4734         * libc/include/sys/time.h: ditto.  If Cygwin, include
4735         sys/select.h.
4736         * libc/include/sys/types.h: lose "32" in comment about Cygwin.
4737
4738 1998-11-23  Ken Raeburn  <raeburn@cygnus.com>
4739
4740         * libc/time/strftime.c (strftime): Handle %y after year 2000.
4741
4742 Wed Nov 18 12:22:41 1998  Nick Clifton  <nickc@cygnus.com>
4743
4744         * libc/sys/fr30/crt0.s (_start): Switch over to using int #9 as
4745         abnormnal end-of-crt0 marker.
4746
4747 Tue Nov 17 16:27:58 1998  Nick Clifton  <nickc@cygnus.com>
4748
4749         * libc/sys/fr30/crt0.s: New file/directory.
4750         * libc/include/machine/setjmp.h: Add FR30 target.
4751         * libc/include/machine/ieeefp.h: Add FR30 target.
4752         * configure.host: Add FR30 target.
4753
4754 Mon Nov  16 23:15:00 1998  Ranjith Kumaran <ranjith@cygnus.com>
4755
4756         * libm/math: Files that are duplicated in common directory removed.
4757         * libm/math/fdlibm.h: Removed.
4758         * libm/math/s_cbrt.c: Removed.
4759         * libm/math/s_copysign.c: Removed.
4760         * libm/math/s_expm1.c: Removed.
4761         * libm/math/s_finite.c: Removed.
4762         * libm/math/s_ilogb.c: Removed.
4763         * libm/math/s_infinity.c: Removed.
4764         * libm/math/s_lib_ver.c: Removed.
4765         * libm/math/s_log1p.c: Removed.
4766         * libm/math/s_logb.c: Removed.
4767         * libm/math/s_matherr.c: Removed.
4768         * libm/math/s_modf.c: Removed.
4769         * libm/math/s_nan.c: Removed.
4770         * libm/math/s_nextafter.c: Removed.
4771         * libm/math/s_rint.c: Removed.
4772         * libm/math/s_scalbn.c: Removed.
4773         * libm/math/sf_cbrt.c: Removed.
4774         * libm/math/sf_copysign.c: Removed.
4775         * libm/math/sf_expm1.c: Removed.
4776         * libm/math/sf_finite.c: Removed.
4777         * libm/math/sf_ilogb.c: Removed.
4778         * libm/math/sf_infinity.c: Removed.
4779         * libm/math/sf_log1p.c: Removed.
4780         * libm/math/sf_logb.c: Removed.
4781         * libm/math/sf_modf.c: Removed.
4782         * libm/math/sf_nan.c: Removed.
4783         * libm/math/sf_nextafter.c: Removed.
4784         * libm/math/sf_rint.c: Removed.
4785         * libm/math/sf_scalbn.c: Removed.
4786         * libm/math/Makefile.am: Removed references to deleted files (above).
4787         * libm/math/Makefile.in: Regenerated.
4788         * libm/Makefile.am: Added common directory to math.
4789         * libm/Makefile.in: Regenerated.
4790
4791 Mon Nov  2 23:12:00 1998  Ranjith Kumaran <ranjith@cygnus.com>
4792
4793         * libm/mathfp: Add non-ANSI functions.
4794         * libm/mathfp/e_acosh.c acosh(): New file.
4795         * libm/mathfp/e_atanh.c atanh(): New file.
4796         * libm/mathfp/e_hypot.c hypot(): New file.
4797         * libm/mathfp/e_j0.c j0(): New file.
4798         * libm/mathfp/e_j1.c j1(): New file.
4799         * libm/mathfp/e_remainder.c remainder(): New file.
4800         * libm/mathfp/e_scalb.c scalb(): New file.
4801         * libm/mathfp/ef_acosh.c acoshf(): New file.
4802         * libm/mathfp/ef_atanh.c atanhf(): New file.
4803         * libm/mathfp/ef_hypot.c hypotf(): New file.
4804         * libm/mathfp/ef_j0.c j0f(): New file.
4805         * libm/mathfp/ef_j1.c j1f(): New file.
4806         * libm/mathfp/ef_remainder.c remainderf(): New file.
4807         * libm/mathfp/ef_scalb.c scalbf(): New file.
4808         * libm/mathfp/er_gamma.c gamma_r: New file.
4809         * libm/mathfp/er_lgamma.c lgamma_r(): New file.
4810         * libm/mathfp/erf_gamma.c gamma_rf(): New file.
4811         * libm/mathfp/erf_lgamma.c lgamma_rf(): New file.
4812         * libm/mathfp/w_cabs.c cabs(): New file.
4813         * libm/mathfp/w_drem.c drem(): New file.
4814         * libm/mathfp/w_jn.c jn(): New file.
4815         * libm/mathfp/wf_cabs.c cabsf(): New file.
4816         * libm/mathfp/wf_drem.c dremf(): New file.
4817         * libm/mathfp/wf_jn.c jnf(): New file.
4818
4819 Mon Nov  2 16:43:18 1998  Geoffrey Noer  <noer@cygnus.com>
4820
4821         * libc/sys/cygwin32: remove directory and contents
4822         * libc/sys/cygwin: and add back, losing the "32".
4823         * configure.host: check for cygwin* instead of cygwin32.
4824         * acinclude.m4: ditto.
4825         * aclocal.m4: regenerate with aclocal
4826         * configure: regenerate with autoconf
4827
4828 Tue Oct 20 17:28:28 1998  Geoffrey Noer  <noer@cygnus.com>
4829
4830         * libc/stdio/tmpnam.c (_tempnam_r): not enough memory allocated
4831         for length
4832
4833 Tue Oct 20 18:49:05 1998  Jeff Johnston  <jjohnstn@cygnus.com>
4834
4835         * libc/include/sys/reent.h (struct _reent): Added variables _rand_next, _strtok_last,
4836         _asctime_buf, _localtime_buf and _gamma_signgam to struct reent
4837         to make rand/srand, strtok, asctime, localtime, w_gamma,
4838         w_lgamma, wf_gamma, and wf_lgamma reentrant.  Included
4839         time.h to bring in struct tm definition.
4840         * libc/stdlib/rand.c (rand, srand): Don't emit functions 'rand' and 'srand' if
4841         '_REENT_ONLY' is set. Used variable '_rand_next' from struct reent.
4842         * libc/stdlib/strtok.c (strtok): Used variable '_strtok_last' from struct reent
4843         instead of static variable.
4844         * libc/stdlib/asctime.c (asctime): Used variable '_asctime_buf' from
4845         struct reent instead of static variable.
4846         * libc/stdlib/lcltime.c (localtime): Used variable '_localtime_buf' from
4847         struct reent instead of static variable.
4848         * libm/math/Makefile.am: Removed s_signgam.o.
4849         * libm/math/Makefile.in: Regenerated.
4850         * libm/math/w_gamma.c (gamma): Used variable '_gamma_signgam' from
4851         struct reent instead of global variable 'signgam'.
4852         * libm/math/w_lgamma.c (lgamma): Likewise.
4853         * libm/math/wf_gamma.c (gammaf): Likewise.
4854         * libm/math/wf_lgamma.c (lgammaf): Likewise.
4855         * libm/math/s_signgam.c: Removed.
4856         * libc/include/unctrl.h: Defined arrays __unctrl and __unctrllen
4857         to be const.
4858         * libc/misc/unctrl.c: Defined arrays __unctrl and __unctrllen
4859         to be const.
4860         * libc/reent/Makefile.am: Added dependence for impure.o on impure.c and
4861         libc/include/reent.h.
4862         * libc/reent/Makefile.in: Regenerated.
4863         * libc/stdio/vfprintf.c (_vfprintf_r): Defined arrays 'blanks' and 'zeroes'
4864         to be const.
4865         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Defined arrays 'JIS_state_table' and
4866         'JIS_action_table' to be const.
4867         * libm/math/s_lib_ver.c: define variable _LIB_VERSION to be const.
4868
4869 Mon Oct 12 00:26:33 1998  Christopher Faylor <cgf@cygnus.com>
4870
4871         * acinclude.m4:  $with_target_subdir should default to '.'
4872         or confusion results when configuring in same directory as sources.
4873         * Regenerate all aclocal.m4 and configure files.
4874
4875 Fri Oct  9 16:27:36 1998  Jeff Johnston  <jjohnstn@cygnus.com>
4876
4877         * libc/stdlib/mallocr.c: Added 16 byte alignment support which
4878         can be set by defining MALLOC_ALIGNMENT=16.  Also added support
4879         for platforms where sizeof(size_t) < sizeof(long) via
4880         SIZE_T_SMALLER_THAN_LONG macro.
4881         
4882 Wed Oct  7 14:02:40 1998  Jeff Johnston  <jjohnstn@cygnus.com>
4883
4884         * libc/include/time.h (CLOCKS_PER_SEC): Change CLOCKS_PER_SEC
4885         to refer to _CLOCKS_PER_SEC_ and added including <machine/time.h>
4886         which sets _CLOCKS_PER_SEC_ for selected machines.
4887         * libc/include/machine/time.h: New file.
4888
4889 Tue Oct  6 16:08:05 1998  Jeff Johnston  <jjohnstn@cygnus.com>
4890
4891         * libc/syscalls/sysexecve.c: New file.
4892         * libc/syscalls/sysgettod.c: New file.
4893         * libc/syscalls/systimes.c: New file.
4894         * libc/syscalls/Makefile.am: Added new objects.
4895         * libc/syscalls/Makefile.in: Regenerated.
4896         * libc/include/_syslist.h (_execve): Moved define in file.
4897         * libc/include/reent.h:  Added _execve_r declaration.
4898         * libc/Makefile.in: Regenerated.
4899         * libc/ctype/Makefile.in: Regenerated.
4900         * libc/errno/Makefile.in: Regenerated.
4901         * libc/locale/Makefile.in: Regenerated.
4902         * libc/machine/Makefile.in: Regenerated.
4903         * libc/misc/Makefile.in: Regenerated.
4904         * libc/posix/Makefile.in: Regenerated.
4905         * libc/reent/Makefile.in: Regenerated.
4906         * libc/reent/execr.c (_execve_r): Added _execve_r function.
4907         * libc/signal/Makefile.in: Regenerated.
4908         * libc/stdio/Makefile.in: Regenerated.
4909         * libc/time/Makefile.in: Regenerated.
4910         * libc/unix/Makefile.in: Regenerated.
4911         * libm/mathfp/Makefile.in: Regenerated.
4912
4913 Tue Oct  6 14:14:05 1998  Jeff Johnston  <jjohnstn@cygnus.com>
4914
4915         * libc/string/Makefile.in: Regenerated.
4916         * libc/string/memchr.c (memchr): Moved code to reduce object size.
4917         * libc/string/memcpy.c (memcpy): Ditto.
4918         * libc/string/memcmp.c (memcmp): Ditto.
4919         * libc/string/memset.c (memset): Ditto.
4920         * libc/string/strchr.c (strchr): Ditto.
4921         * libc/string/strcmp.c (strcmp): Ditto.
4922         * libc/string/strcpy.c (strcpy): Ditto.
4923         * libc/string/strlen.c (strlen): Ditto.
4924
4925 Tue Oct  6 13:58:05 1998  Jeff Johnston  <jjohnstn@cygnus.com>
4926
4927         * libm/acinclude.m4: Removed since newlib/acinclude.m4 can be used
4928         to generate aclocal.m4.
4929         * libm/Makefile.in: Regenerated.
4930         * libm/aclocal.m4: Regenerated.
4931         * libm/configure: Regenerated.
4932         * libm/math/Makefile.in: Regenerated.
4933         * libm/mathfp/Makefile.in: Regenerated.
4934
4935 1998-09-25  Mark Salter  <msalter@cygnus.com>
4936
4937         * libc/include/machine/setjmp.h: Fixed test for mn10300 and mn10200
4938         by adding leading and trailing underscores to symbol names.
4939
4940 Tue Sep 22 15:33:41 1998  Christopher Faylor <cgf@cygnus.com>
4941
4942         * Makefile.in: Add default for AR_FLAGS.
4943
4944 Tue Sep 22 15:02:49 1998  Christopher Faylor <cgf@cygnus.com>
4945
4946         patch from ian@airs.com (Ian Taylor):
4947         * acinclude.m4: Run AC_CANONICAL_BUILD explicitly before
4948         NEWLIB_CONFIGURE so AC_CANONICAL_HOST will be run before it
4949         is needed for detecting the build machine.  Required for
4950         cygwin native builds.
4951
4952         * Regenerate all aclocal.m4 and configure files.
4953
4954 Mon Sep 21 14:44:16 1998  Nick Clifton  <nickc@cygnus.com>
4955
4956         * libc/sys/arm/crt0.S: Prepend a period to all local labels that
4957         used to start with LC.
4958
4959 Thu Sep 17 18:18:11 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
4960
4961         * libc/machine/sh/setjmp.S (setjmp): Handle __SH4* like __SH3E__ .
4962         (longjmp): Likewise.
4963
4964 Thu Sep 17 16:25:33 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
4965
4966         * libc/machine/sh/memset.S (memset): Move copy from r4 to r4 before
4967         the test for small number of bytes.
4968
4969 Thu Sep 10 11:40:00 1998  Ranjith Kumaran <ranjith@cygnus.com>
4970
4971         * Makefile.am: Add --enable-newlib-hw-fp check.  This builds the new
4972         math library that uses floating point algorithms instead of the old
4973         libm.
4974         * Makefile.in: Regenerate with automake version 1.3b.
4975         * configure: Rebuild.
4976         * libm/Makefile.in: Regenerate with automake version 1.3b.
4977         * libm/aclocal.m4: Regenerate.
4978         * libm/configure: Rebuild.
4979         * libm/configure.in: Add newlib_hw_fp definition and mathfp directory.
4980         * libm/acinclude.m4: Define macros for configure.in.
4981         * libm/config.h.in: Generate.
4982         * libm/mathfp/Makefile.am: New file.
4983         * libm/mathfp/Makefile.in: Generate.
4984         * libm/mathfp/s_acos.c (acos): New file.
4985         * libm/mathfp/s_asin.c (asin): New file.
4986         * libm/mathfp/s_asine.c (asine): New file.
4987         * libm/mathfp/s_atan.c (atan): New file.
4988         * libm/mathfp/s_atan2.c (atan2): New file.
4989         * libm/mathfp/s_atangent.c (atangent): New file.
4990         * libm/mathfp/s_ceil.c (ceil): New file.
4991         * libm/mathfp/s_copysign.c (copysign): New file.
4992         * libm/mathfp/s_cos.c (cos): New file.
4993         * libm/mathfp/s_cosh.c (cosh): New file.
4994         * libm/mathfp/s_exp.c (exp): New file.
4995         * libm/mathfp/s_fabs.c (fabs): New file.
4996         * libm/mathfp/s_finite.c (finite): New file.
4997         * libm/mathfp/s_floor.c (floor): New file.
4998         * libm/mathfp/s_fmod.c (fmod): New file.
4999         * libm/mathfp/s_frexp.c (frexp): New file.
5000         * libm/mathfp/s_infconst.c: New file.
5001         * libm/mathfp/s_isinf (isinf).c: New file.
5002         * libm/mathfp/s_isnan.c (isnan): New file.
5003         * libm/mathfp/s_ispos.c (ispos): New file.
5004         * libm/mathfp/s_ldexp.c (ldexp): New file.
5005         * libm/mathfp/s_log.c (log): New file.
5006         * libm/mathfp/s_log10.c (log10): New file.
5007         * libm/mathfp/s_logarithm.c (logarithm): New file.
5008         * libm/mathfp/s_mathcnst.c: New file.
5009         * libm/mathfp/s_modf (modf).c: New file.
5010         * libm/mathfp/s_numtest.c (numtest): New file.
5011         * libm/mathfp/s_pow.c (pow): New file.
5012         * libm/mathfp/s_scalbn.c (scalbn): New file.
5013         * libm/mathfp/s_sin (sin).c: New file.
5014         * libm/mathfp/s_sine.c (sine): New file.
5015         * libm/mathfp/s_sineh.c (sineh): New file.
5016         * libm/mathfp/s_sinf.c (sinf): New file.
5017         * libm/mathfp/s_sinh.c (sinh): New file.
5018         * libm/mathfp/s_sqrt.c (sqrt): New file.
5019         * libm/mathfp/s_tan.c (tan): New file.
5020         * libm/mathfp/s_tanh.c (tanh): New file.
5021         * libm/mathfp/sf_acos.c (acosf): New file.
5022         * libm/mathfp/sf_asin.c (asinf): New file.
5023         * libm/mathfp/sf_asine.c (asinef): New file.
5024         * libm/mathfp/sf_atan.c (atanf): New file.
5025         * libm/mathfp/sf_atan2.c (atan2f): New file.
5026         * libm/mathfp/sf_atangent.c (atangent): New file.
5027         * libm/mathfp/sf_ceil.c (ceilf): New file.
5028         * libm/mathfp/sf_copysign.c (copysignf): New file.
5029         * libm/mathfp/sf_cos.c (cosf): New file.
5030         * libm/mathfp/sf_cosh.c (coshf): New file.
5031         * libm/mathfp/sf_exp.c (expf): New file.
5032         * libm/mathfp/sf_fabs.c (fabsf): New file.
5033         * libm/mathfp/sf_finite.c (finitef): New file.
5034         * libm/mathfp/sf_floor.c (floorf): New file.
5035         * libm/mathfp/sf_fmod.c (fmodf): New file.
5036         * libm/mathfp/sf_frexp.c (frexpf): New file.
5037         * libm/mathfp/sf_isinf.c (isinff): New file.
5038         * libm/mathfp/sf_isnan.c (isnanf): New file.
5039         * libm/mathfp/sf_ispos.c (isposf): New file.
5040         * libm/mathfp/sf_ldexp.c (ldexpf): New file.
5041         * libm/mathfp/sf_log.c (logf): New file.
5042         * libm/mathfp/sf_log10.c (log10f): New file.
5043         * libm/mathfp/sf_logarithm.c (logarithmf): New file.
5044         * libm/mathfp/sf_modf.c (modff): New file.
5045         * libm/mathfp/sf_numtest.c (numtestf): New file.
5046         * libm/mathfp/sf_pow.c (powf): New file.
5047         * libm/mathfp/sf_scalbn.c (scalbnf): New file.
5048         * libm/mathfp/sf_sin.c (sinf): New file.
5049         * libm/mathfp/sf_sine.c (sinef): New file.
5050         * libm/mathfp/sf_sineh.c (sinehf): New file.
5051         * libm/mathfp/sf_sinh.c (sinhf): New file.
5052         * libm/mathfp/sf_sqrt.c (sqrtf): New file.
5053         * libm/mathfp/sf_tan.c (tanf): New file.
5054         * libm/mathfp/sf_tanh.c (tanhf): New file.
5055         * libm/mathfp/zmath.h: New file.
5056
5057 Wed Sep  2 02:49:03 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
5058
5059         * libc/machine/sh/strcmp.S (L_char_loop): Re-load r0 at loop
5060         exit if it has been overwritten by pre-fetching in delay slot.
5061
5062 1998-09-01  Michael Meissner  <meissner@cygnus.com>
5063
5064         * Makefile.am (tooldir): Add in host_alias, so that multilib
5065         libraries are installed in the directory the compiler looks in.
5066         * Makefile.in: Regenerate.
5067
5068         * libc/stdlib/Makefile.in: Regenerate with automake version 1.3b.
5069
5070 Mon Aug 31 11:39:31 1998  Jeff Johnston  <jjohnstn@cygnus.com>
5071
5072         * libc/machine/mn10300/memcpy.S (_memcpy): Move alignment test
5073         ahead of test for number of bytes being moved.
5074
5075 Thu Aug 27 14:07:53 1998  Christopher Faylor <cgf@cygnus.com>
5076
5077         * libc/include/sys/unistd.h: Nothing special needed for
5078         _exit under cygwin.
5079
5080 Wed Aug 26 15:05:21 1998  Nick Clifton  <nickc@cygnus.com>
5081
5082         * libc/sys/arm/syscalls.c (_sbrk): Rename '_end' to 'end' to
5083         conform to user label naming conventions. 
5084
5085 Mon Aug 24 14:46:19 1998  Geoffrey Noer <noer@cygnus.com>
5086
5087         * libc/sys/cygwin32/sys/utime.h: variable names in
5088         protos should start with two leading underscores
5089         * libc/include/string.h: ditto
5090         * libc/include/sys/signal.h: ditto
5091         * libc/include/sys/stat.h: ditto
5092         * libc/include/sys/time.h: ditto
5093         * libc/include/sys/unistd.h: ditto
5094         * libc/include/ctype.h: ditto
5095         * libc/include/stdlib.h: ditto
5096         * libc/include/sys/reent.h: struct _atexit function ptr takes a
5097         void, same with _sig_func.
5098
5099 Fri Aug 21 14:44:14 1998  Jeff Johnston  <jjohnstn@cygnus.com>
5100
5101         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Added preprocessor checks
5102         for MB_CAPABLE to reduce code size when newlib is not configured
5103         with --enable-newlib-mb.
5104         * libc/stdlib/Makefile.am: Specified -fshort-enums when building
5105         mbtowc_r.o to minimize size.
5106         * libc/stdlib/Makefile.in: Rebuild.
5107         
5108 Wed Aug 19 16:20:13 1998  Jim Wilson  <wilson@cygnus.com>
5109
5110         * libc/sys/sparc64/Makefile.am (.S_r.o, .c_r.o): Change -DREENTRANT
5111         to -DREENT.
5112         * libc/sys/sparc64/Makefile.in: Rebuild.
5113         
5114 Tue Aug 18 22:38:29 1998  Ian Lance Taylor  <ian@cygnus.com>
5115
5116         * Makefile.am (MAKEOVERRIDES): Define.
5117         * Makefile.in: Rebuild.
5118
5119 Tue Aug 18 12:38:47 1998  Jim Wilson  <wilson@cygnus.com>
5120
5121         * libc/sys/sparc64/sys/stat.h (stat): Add const.
5122
5123 Mon Aug 17 22:27:06 1998  Ian Lance Taylor  <ian@cygnus.com>
5124
5125         * acinclude.m4 (NEWLIB_CONFIGURE): Use top_builddir in
5126         newlib_cflags when looking for targ-include.
5127         * */aclocal.m4, */configure: Rebuild.
5128
5129 Fri Jul 31 10:57:42 1998  Catherine Moore  <clm@cygnus.com>
5130
5131         * libc/sys/arm/syscalls.c (_sbrk): Change "__end__"
5132         to "_end".
5133
5134 Wed Jul 29 00:02:01 1998  Mark Alexander  <marka@cygnus.com>
5135
5136         * libc/include/sys/config.h: Define __IEEE_LITTLE_ENDIAN
5137         on SPARCs with little-endian data.
5138         * libc/include/machine/ieeefp.h: Ditto.
5139
5140 Wed Jul 22 18:00:10 1998  Ian Lance Taylor  <ian@cygnus.com>
5141
5142         * acinclude.m4: Handle a relative srcdir correctly when setting
5143         newlib_cflags.
5144         * */aclocal.m4, */configure: Rebuild.
5145
5146 Wed Jul 22 17:11:33 1998  Jeff Johnston  <jjohnstn@cygnus.com>
5147
5148         * libm/math/wrf_lgamma.c (lgammaf_r): Initialize exc.err to 0 and
5149         also set exc.arg1, exc.arg2 appropriately in case matherr is supplied.
5150         * libm/math/wrf_gamma.c (gammaf_r): ditto 
5151         * libm/math/wr_lgamma.c (lgamma_r): ditto 
5152         * libm/math/wr_gamma.c (gamma_r): ditto 
5153         * libm/math/wf_sqrt.c (sqrtf): ditto 
5154         * libm/math/wf_sinh.c (sinhf): ditto 
5155         * libm/math/wf_scalb.c (scalbf): ditto 
5156         * libm/math/wf_remainder.c (remainderf): ditto 
5157         * libm/math/wf_pow.c (powf): ditto 
5158         * libm/math/wf_log10.c (log10f): ditto 
5159         * libm/math/wf_log.c (logf): ditto 
5160         * libm/math/wf_lgamma.c (lgammaf): ditto 
5161         * libm/math/wf_jn.c (jnf, ynf): ditto 
5162         * libm/math/wf_j1.c (j1f, y1f): ditto 
5163         * libm/math/wf_j0.c (j0f, y0f): ditto 
5164         * libm/math/wf_hypot.c (hypotf): ditto 
5165         * libm/math/wf_gamma.c (gammaf): ditto 
5166         * libm/math/wf_fmod.c (fmodf): ditto 
5167         * libm/math/wf_exp.c (expf): ditto 
5168         * libm/math/wf_cosh.c (coshf): ditto 
5169         * libm/math/wf_atanh.c (atanhf): ditto 
5170         * libm/math/wf_atan2f.c (atan2f): ditto 
5171         * libm/math/wf_asin.c (asinf): ditto 
5172         * libm/math/wf_acosh.c (acoshf): ditto 
5173         * libm/math/wf_acos.c (acosf): ditto 
5174         * libm/math/w_sqrt.c (sqrt): ditto 
5175         * libm/math/w_sinh.c (sinh): ditto 
5176         * libm/math/w_scalb.c (scalb): ditto 
5177         * libm/math/w_remainder.c (remainder): ditto 
5178         * libm/math/w_pow.c (pow): ditto 
5179         * libm/math/w_log10.c (log10): ditto 
5180         * libm/math/w_log.c (log): ditto 
5181         * libm/math/w_lgamma.c (lgamma): ditto 
5182         * libm/math/w_jn.c (jn, yn): ditto 
5183         * libm/math/w_j1.c (j1, y1): ditto 
5184         * libm/math/w_j0.c (j0, y0): ditto 
5185         * libm/math/w_hypot.c (hypot): ditto 
5186         * libm/math/w_gamma.c (gamma): ditto 
5187         * libm/math/w_fmod.c (fmod): ditto 
5188         * libm/math/w_exp.c (exp): ditto 
5189         * libm/math/w_cosh.c (cosh): ditto 
5190         * libm/math/w_atanh.c (atanh): ditto 
5191         * libm/math/w_atan2f.c (atan2): ditto 
5192         * libm/math/w_asin.c (asin): ditto 
5193         * libm/math/w_acosh.c (acosh): ditto 
5194         * libm/math/w_acos.c (acos): ditto 
5195
5196 Tue Jul 21 12:34:54 1998  Ian Lance Taylor  <ian@cygnus.com>
5197
5198         * libm/math/Makefile.am (src): Add w_cabs.c and w_drem.c.
5199         (fsrc): Add wf_cabs.c and wf_drem.c.
5200         * libm/math/Makefile.in: Rebuild.
5201
5202         * Makefile.am (AM_MAKEFLAGS): Add CFLAGS_FOR_BUILD.  Remove some
5203         unused directory variables.  Remove duplicate CFLAGS.
5204         * Makefile.in: Rebuild.
5205
5206         * doc/Makefile.am ($(MKDOC)): Don't use $(CFLAGS) when building
5207         with $(CC_FOR_BUILD).
5208         (makedoc.o): Likewise.
5209         * doc/Makefile.in: Rebuild.
5210
5211         * libc/sys/cygwin32/Makefile.am (EXTRA_LIBRARIES): Define, to
5212         force a definition of COMPILE.
5213         (libfoo_a_SOURCES): Define.
5214         * libc/sys/cygwin32/Makefile.in: Rebuild.
5215         * libc/sys/tic80/Makefile.am (EXTRA_LIBRARIES): Define, to
5216         force a definition of COMPILE.
5217         (libfoo_a_SOURCES): Define.
5218         * libc/sys/tic80/Makefile.in: Rebuild.
5219
5220 Mon Jul 20 20:49:24 1998  Christopher Faylor <cgf@cygnus.com>
5221
5222         * libc/include/sys/fcntl.h: Add O_NOINHERIT, Win32-specific
5223         flag.
5224
5225 Fri Jul 17 16:13:16 1998  Ian Lance Taylor  <ian@cygnus.com>
5226
5227         * Build using autoconf and automake.  Added many Makefile.am and
5228         configure.in files, plus generated files.  Old configure.in files
5229         and all old Makefile.in files completely replaced.  Removed
5230         host/any.  Added acinclude.m4 and configure.host.
5231
5232 Sat Jul 11 18:14:49 1998  Felix Lee  <flee@cygnus.com>
5233
5234         * libc/stdio/vfprintf.c: enable long long support, sometimes.
5235         * configure.in (*-*-cygwin32): add -DWANT_PRINTF_LONG_LONG.
5236
5237 Tue Jul  7 01:51:55 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
5238
5239         * libc/machine/sh/strcmp.S, libc/machine/sh/strcpy.S: New files.
5240         * libc/machine/sh/Makefile.in: Add rules for new files.
5241
5242 Tue Jul  7 01:40:55 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
5243
5244         * libc/machine/sh/asm.h (SL, DELAYED_BRANCHES): Define.
5245         * libc/machine/sh/memset.S (memset): Remove uses of dt; shorten code.
5246         * libc/machine/sh/memcpy.S (SL, DELAYED_BRANCHES): Don't define.
5247
5248 Thu Jul  2 10:33:16 1998  Nick Clifton  <nickc@cygnus.com>
5249
5250         * libc/sys/arm/syscalls.c (_exit): Add comment, noting that exit
5251         code is ignored.
5252
5253 Wed Jun 24 13:56:54 1998  Jeff Johnston  <jjohnstn@cygnus.com>
5254
5255         * libc/stdio/tmpnam.c (_tmpnam_r): Changed routine to use
5256         internal static buffer when s is NULL, as prescribed by ANSI.
5257
5258 1998-06-22  Vladimir N. Makarov  <vmakarov@cygnus.com>
5259
5260         * libc/sys/h8300hms/Makefile.in (OFILES): malloc.o has been
5261         removed.
5262         * libc/sys/h8300hms/malloc.c: has been removed.  Now malloc.c from
5263         libc/stdlib will be used for h8300hms.
5264         
5265 Thu Jun 18 16:56:05 1998  Jeff Johnston  <jjohnstn@cygnus.com>
5266
5267         * libc/machine/mn10300/strlen.S (_strlen): New optimized assembler
5268         version that can be built either for speed or size.
5269         * libc/machine/mn10300/memset.S (_memset): ditto
5270         * libc/machine/mn10300/memchr.S (_memchr): ditto
5271         * libc/machine/mn10300/memcpy.S (_memcpy): ditto
5272         * libc/machine/mn10300/memcmp.S (_memcmp): ditto
5273         * libc/machine/mn10300/strchr.S (_strchr): ditto
5274         * libc/machine/mn10300/strcmp.S (_strcmp): ditto
5275         * libc/machine/mn10300/strcpy.S (_strcpy): ditto
5276         * libc/machine/mn10300/Makefile.in: Added entries for
5277         memchr.o, memcmp.o, memcpy.o, memset.o, strchr.o, 
5278         strcmp.o, strcpy.o, and strlen.o.
5279
5280 Wed Jun 17 12:50:26 1998  Mark Alexander  <marka@cygnus.com>
5281
5282         * configure.in: Don't use libc/sys/sysmec for MN10200; it's
5283         been replaced with libgloss/mn10200.
5284
5285 Fri Jun 12 14:34:39 1998  Michael Meissner  <meissner@cygnus.com>
5286
5287         * libc/string/strchr.c (strchr): Make s a constant pointer to
5288         avoid warning.
5289
5290 Tue Jun  9 16:29:30 1998  Jason Molenda  (crash@bugshack.cygnus.com)
5291
5292         * configure.in (target == arm* or thumb*): Define ARM_RDI_MONITOR
5293         instead of ARM_RDP_MONITOR (sys/libc/arm/crt0.S to assume Angel
5294         board SWIs instead of Demon board SWIs).
5295
5296 Thu Jun  4 12:16:46 1998  Michael Meissner  <meissner@cygnus.com>
5297
5298         * libc/string/strncat.c (strncat):  Make -Os act the same as
5299         PREFER_SIZE_OVER_SPEED being defined.
5300
5301 Wed Jun  3 17:52:33 1998  Michael Meissner  <meissner@cygnus.com>
5302
5303         * libc/string/memchr.c (memchr): Make -Os act the same as
5304         PREFER_SIZE_OVER_SPEED being defined.
5305         * libc/string/memcmp.c (memcmp): Ditto.
5306         * libc/string/memcpy.c (memcpy): Ditto.
5307         * libc/string/memset.c (memset): Ditto.
5308         * libc/string/strcat.c (strcat): Ditto.
5309         * libc/string/strchr.c (strchr): Ditto.
5310         * libc/string/strcmp.c (strcmp): Ditto.
5311         * libc/string/strcpy.c (strcpy): Ditto.
5312         * libc/string/strlen.c (strlen): Ditto.
5313         * libc/string/strncat.c (strncat): Ditto.
5314         * libc/string/strncmp.c (strncmp): Ditto.
5315         * libc/string/strncpy.c (strncpy): Ditto.
5316
5317 Mon Jun  1 15:25:07 1998  Geoffrey Noer  <noer@cygnus.com>
5318
5319         * libc/include/sys/itimer.h: remove
5320         * libc/include/sys/time.h: itimer stuff should be here
5321
5322 Mon Jun  1 16:31:29 1998  Jeff Johnston  <jjohnstn@cygnus.com>
5323
5324         * libc/stdio/vfprintf.c (cvt): Changed code to look at sign
5325         bit instead of comparing to 0 so -0.0 can be printed correctly.
5326
5327 Sat May 30 09:33:51 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
5328
5329         * libc/stdlib/mprec.c (b2d): Inilialize d in non-VAX case too.
5330
5331 Fri May 29 22:25:10 1998  Geoffrey Noer  <noer@cygnus.com>
5332
5333         * libc/include/sys/unistd.h: fix sync() proto
5334         * libc/include/sys/fcntl.h: remove _close which is already
5335         defined in unistd.h.
5336         * libc/include/sys/time.h: add getitimer proto
5337
5338 Fri May 29 16:10:28 1998  Geoffrey Noer  <noer@cygnus.com>
5339
5340         * libc/string/strchr.c: convert arg to unsigned char
5341         * libc/include/stdlib.h: add protos for random, srandom
5342         * libc/include/sys/stat.h: add lstat proto
5343         * libc/include/sys/time.h: add setitimer proto
5344         * libc/include/sys/unistd.h: add readlink, symlink protos
5345         * libc/include/process.h: instead of including windows.h and using
5346         HANDLEs in sexec protos, just use void *s.  Need to include
5347         sys/types.h.
5348
5349 Fri May 29 03:04:29 1998  Geoffrey Noer  <noer@cygnus.com>
5350
5351         * libc/include/sys/fcntl.h: add _close proto for Cygwin32
5352
5353 Thu May 28 16:34:21 1998  Geoffrey Noer  <noer@cygnus.com>
5354
5355         * libc/include/process.h: add secure exec protos
5356
5357 Wed May 27 13:54:51 1998  Jeffrey A Law  (law@cygnus.com)
5358
5359         * libc/stdlib/dtoa.c (_dtoa_r): Use "double_union" for variables
5360         which are accessed as both doubles and integers.
5361         * libc/stdlib/mprec.c (ulp, b2d, ratio): Likewise.
5362         * libc/stdlib/strtod.c (_strtod_r): Likewise.
5363         * libc/stdlib/mprec.h: Add "union double_union" and change
5364         word0/word1 macros to use it.
5365
5366 Tue May 26 18:04:21 1998  Geoffrey Noer  <noer@cygnus.com>
5367
5368         * libc/include/sys/signal.h: add __cplusplus wrapper
5369
5370 Tue May 26 15:10:22 1998  Geoffrey Noer  <noer@cygnus.com>
5371
5372         * libc/include/sys/utime.h: new generic file that gets replaced by
5373         libc/sys/SYSDIR/sys/utime.h on systems that support the utime
5374         function.
5375         * sys/cygwin32/sys/utime.h: use _EXFUN in utime proto
5376         * libc/include/time.h: remove duplicate utime proto
5377         * libc/include/utime.h: add comment
5378
5379 Sun May 24 23:56:20 1998  Christopher Faylor <cgf@cygnus.com>
5380
5381         * libc/include/sys/time.h: Add missing include to
5382         allow use of _EXFUN.  Remove times function that is
5383         already defined in times.h.
5384
5385 Sun May 24 01:32:14 1998  Christopher Faylor <cgf@cygnus.com>
5386
5387         * libc/include/time.h: Fix typo in tzset.
5388
5389 Fri May 22 17:00:48 1998  Geoffrey Noer  <noer@cygnus.com>
5390
5391         * libc/include/sys/time.h: add missing Cygwin32 function protos
5392         * libc/include/sys/unistd.h: ditto
5393         * libc/include/time.h: ditto
5394
5395 Wed May 20 20:35:11 1998  Geoffrey Noer  <noer@cygnus.com>
5396
5397         * libc/sys/cygwin32/sys/param.h: add protected NULL def, remove
5398         FIXME.
5399         * libc/include/sys/types.h: add a new __MS_types__ section
5400         to define vm_offset_t, vm_size_t, int32_t et al, register_t,
5401         __BIT_TYPES_DEFINED__.
5402
5403 Wed May 20 18:49:21 1998  Geoffrey Noer  <noer@cygnus.com>
5404
5405         * libc/sys/cygwin32/sys/param.h: move here from winsup/include/sys
5406         since it overrides the one in libc/include/sys.  Also, start
5407         including types.h.
5408
5409 Wed May 20 14:45:40 1998  Geoffrey Noer  <noer@cygnus.com>
5410
5411         * libm/math/Makefile.in: add s_signgam.o to obj list
5412
5413 Tue May 19 11:57:11 1998  Jeff Johnston  <jjohnstn@cygnus.com>
5414
5415         * libc/include/sys/reent.h (_REENT_INIT): Initialize current locale to "C".
5416
5417 Mon May 18 22:36:12 1998  Christopher Faylor <cgf@cygnus.com>
5418
5419         * libc/include/sys/signal.h: cygwin32 exports sig{empty,add}set,
5420         so don't use defines.
5421
5422 Mon May 18 19:01:02 1998  Michael Meissner  <meissner@cygnus.com>
5423
5424         * libc/sys/d10v/crt0.S: Use correct stab for 16-bit ints.
5425
5426 Sun May 17 18:40:32 1998  Frank Ch. Eigler  <fche@cygnus.com>
5427
5428         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Accept a NULL
5429         _current_locale as default locale.
5430
5431 Sat May 16 21:59:59 1998  Bob Manson  <manson@charmed.cygnus.com>
5432
5433         * libc/stdlib/mallocr.c (mALLOc): Add explicit tests for
5434         insufficient space in a chunk.
5435
5436 Tue May 12 14:41:01 1998  Jeff Johnston  <jjohnstn@cygnus.com>
5437
5438         * configure.in (links): Added check for --enable-newlib-mb configure
5439         option which defines the MB_CAPABLE macro.
5440         * libc/locale/locale.c (_setlocale_r): Added support for setting
5441         LC_CTYPE to "C-JIS", "C-SJIS" or "C-EUCJP", when MB_CAPABLE is
5442         defined.
5443         * libc/stdlib/mbtowc_r.c (_mbtowc_r): New function _mbtowc_r that
5444         implements mbtowc() with multibyte support for JIS, SJIS, and EUC-JP.
5445         * libc/stdlib/wctomb_r.c (_wctomb_r): New function _wctomb_r that
5446         implements wctomb() with multibyte support for JIS, SJIS, and EUC-JP.
5447         * libc/stdlib/mbstowcs_r.c (_mbstowcs_r): New function _mbstowcs_r that
5448         implements mbstowcs() with multibyte support for JIS, SJIS, and EUC-JP.
5449         * libc/stdlib/wcstombs_r.c (_wcstombs_r): New function _wcstomb_r that implements
5450         wcstombs() with multibyte support for JIS, SJIS, and EUC-JP.
5451         * libc/stdlib/Makefile.in: Added new multibyte
5452         routines: _mbtowc_r(), _wctomb_r(), _mbstowcs_r(), and _wcstombs_r().
5453         * libc/include/stdlib.h: Added declarations of _mbtowc_r(), _wctomb_r(),
5454         _mbstowcs_r(), and _wcstombs_r().
5455         * libc/stdlib/mbctype.h: New internal header file that contains macros to test
5456         for JIS, SJIS, and EUC-JP characters.
5457         * libc/stdlib/mblen.c (mblen): Added code to call _mbtowc_r() if
5458         MB_CAPABLE defined.
5459         * libc/stdlib/mbtowc.c (mbtowc): Added code to call _mbtowc_r() if
5460         MB_CAPABLE defined.
5461         * libc/stdlib/wctomb.c (wctomb): Added code to call _wctomb_r() if
5462         MB_CAPABLE defined.
5463         * libc/stdlib/mbstowcs.c (mbstowcs): Added code to call _mbstowcs_r()
5464         if MB_CAPABLE defined.
5465         * libc/stdlib/wcstombs.c (wcstombs): Added code to call _wcstombs_r()
5466         if MB_CAPABLE defined.
5467         * libc/stdio/vfscanf.c (__svfscanf): Added multibyte tolerance
5468         to the format string processing when MB_CAPABLE.
5469         * libc/stdio/vfprintf.c (_VFPRINTF_R): Changed mbtowc() call to
5470         call _mbtowc_r().
5471
5472 Tue May  5 16:07:23 1998  Nick Clifton  <nickc@cygnus.com>
5473
5474         The following modifications are courtesy of Anthony Thompson,
5475         athompson@cambridge.arm.com:
5476         * libc/sys/arm/syscalls.c: Initialise and track stdin/out/err for
5477         boith RDI and RDP monitors.
5478         * libc/sys/arm/crt0.S: Call initialise_monitor_handles() for both
5479         RDI and RDP monitors.
5480
5481 Wed Apr 29 15:22:15 1998  Jeff Johnston  <jjohnstn@cygnus.com>
5482
5483         * configure.in (links): Added -DHAVE_GETTIMEOFDAY for arm and thumb.
5484         * libc/sys/arm/syscalls.c (_gettimeofday _times): Added functions.
5485         (_swiopen): Fixed open flags to treat write with append as just append.
5486         (_swilseek): Fixed lseek support to properly handle offsets from SEEK_END.
5487         * libc/sys/arm/sys/param.h: New file to override param.h for ARM.
5488
5489 Fri Apr 24 18:00:09 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
5490
5491         * libc/machine/sh/memcpy.S (L_odddst, big endian version):
5492         When needing to transfer an initial 2-byte-word, store as
5493         two single bytes.
5494
5495 Wed Apr 22 17:56:03 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
5496
5497         * libc/sys/sh/crt0.S (start): Handle __SH4_SINGLE_ONLY__ like
5498         __SH3E__ .
5499         * libc/machine/sh/memcpy.S (DELAYED_BRANCHES, SL): Likewise.
5500         * libc/include/machine/ieeefp.h (_DOUBLE_IS_32BITS): Likewise.
5501
5502 Wed Apr 22 12:28:03 1998  Michael Meissner  <meissner@cygnus.com>
5503
5504         * configure.in (target_cflags): If --enable-target-optspace, use
5505         -Os to compile newlib rather than -O2.  Default to using -Os for
5506         d10v, d30v and m32r if --{enable,disable}-target-optspace is not
5507         used.
5508
5509 Tue Apr 21 23:13:34 1998  Geoffrey Noer  <noer@cygnus.com>
5510
5511         * libc/include/machine/setjmp.h: change sigsetjmp and
5512         siglongjmp definitions to use an array instead of a struct
5513         for __CYGWIN32__
5514
5515 Tue Apr 14 11:47:47 1998  Doug Evans  <devans@canuck.cygnus.com>
5516
5517         * libc/reent/impure.c (__ATTRIBUTE_IMPURE_DATA__): Fix spelling.
5518
5519 Mon Apr  6 15:05:08 1998  Jonathan Larmour  <jlarmour@cygnus.co.uk>
5520
5521         * libc/string/strxfrm.c: fix to get correct return value
5522
5523 Wed Apr  1 16:09:05 1998  Nick Clifton  <nickc@cygnus.com>
5524
5525         * libc/sys/arm/crt0.S: Set top of RAM to be 0x800000 for PE
5526         builds.  Make mode change labels global so that they will be seen
5527         by the debugger.
5528
5529 Wed Mar 18 09:45:10 1998  Nick Clifton  <nickc@cygnus.com>
5530
5531         * configure.in (links): Do not use ARM debiugging protocols for PE
5532         builds.
5533
5534         * libc/sys/arm/syscalls.c (_sbrk): Add "_sbrk: " to error
5535         message. 
5536
5537 Fri Mar 13 11:24:34 1998  Jeff Johnston  <jjohnstn@cygnus.com>
5538
5539         * libc/stdio/findfp.c (__sinit): Made stdout default to
5540         line buffered mode as defined by ANSI.
5541
5542 Tue Mar 10 11:41:26 1997  Bob Manson  <manson@charmed.cygnus.com>
5543
5544         * libc/include/sys/itimer.h: New file.
5545
5546         * libc/signal/signal.c (__sigtramp_r,__sigtramp): New functions.
5547
5548 Mon Mar  9 14:19:26 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
5549
5550         * libc/machine/sh/memcpy.S: (_memcpy): Fix for execute/memcpy-1.c
5551         failure.
5552
5553 Fri Feb 27 13:56:10 1998  Michael Meissner  <meissner@cygnus.com>
5554
5555         * libc/machine/d30v/setjmp.S (longjmp): Fix order of parallel
5556         insns.
5557
5558 Wed Feb 25 09:29:54 1998  Nick Clifton  <nickc@cygnus.com>
5559
5560         * libc/sys/arm/syscalls.c (_open): Add varags to conform to prototype.
5561
5562 Tue Feb 24 18:00:13 1998  Michael Meissner  <meissner@cygnus.com>
5563
5564         * libc/machine/d30v/{setjmp.S,Makefile.in}: New files for D30V
5565         support.
5566
5567         * libc/include/machine/setjmp.h: Add D30V support.
5568
5569         * configure.in (d30v-*): Add d30v machine directory.
5570
5571 Mon Feb 23 09:32:58 1998  Mark Alexander  <marka@cygnus.com>
5572
5573         * configure.in: Don't use libc/sys/sysmec for MN10300; it's
5574         been replaced with libgloss/mn10300.
5575
5576 Sat Feb 21 17:44:43 1998  Geoffrey Noer  <noer@cygnus.com>
5577
5578         * libc/stdlib/mallocr.c: remove __malloc_copy routine now that
5579         it is no longer needed.
5580
5581 Thu Feb 19 16:15:10 1998  Geoffrey Noer  <noer@cygnus.com>
5582
5583         * libc/include/sys/signal.h: add sigpause proto for Cygwin32
5584
5585 Wed Feb 18 23:51:08 1998  Geoffrey Noer  <noer@cygnus.com>
5586
5587         * libc/stdio/fdopen.c (fdopen): Make all writes go to the end of
5588         the file when O_APPEND is set, wherever the EOF happens to be at
5589         that time. 
5590
5591 Wed Feb 18 23:25:02 1998  Geoffrey Noer  <noer@cygnus.com>
5592         
5593         patch from cgf@bbc.com (Christopher Faylor):
5594         * libc/stdio/freopen.c (freopen): Conform to standard UNIX
5595         convention of closing fp prior to attempting to open the file
5596         argument.  This allows correct operation when reopening
5597         stdin/stdout/stderr.  Replaces last freopen.c patch.
5598
5599 Wed Feb 18 16:27:40 1998  Geoffrey Noer  <noer@cygnus.com>
5600
5601         patch from cgf@bbc.com (Christopher Faylor):
5602         * libc/stdio/freopen.c: freopen was not preserving the fd
5603         of the stream being operated on.  This confuses programs that
5604         expect that the handles for stdout and stderr will be 1 and 2.
5605
5606 Mon Feb 16 23:34:07 1998  Andrew Cagney  <cagney@b1.cygnus.com>
5607
5608         * libc/sys/d10v/crt0.S (_start): Set PSW{SW} - select SPU.
5609
5610 Thu Feb 12 15:09:20 1998  Ranjith Kumaran <ranjith@cygnus.com>
5611
5612         * libc/sys/go32/longjmp.S: Fix longjmp to not return 0.
5613
5614 Wed Feb 11 17:50:45 1998  Jeff Johnston  <jjohnstn@cygnus.com>
5615
5616         * libc/machine/powerpc/setjmp.S (setjmp, longjmp): Alignment code
5617         altered to not use a branch.  Also added hint that last
5618         bclr in longjmp will likely result in branch.
5619         
5620
5621 Mon Feb  9 03:44:02 1998  Geoffrey Noer  <noer@cygnus.com>
5622
5623         * libc/sys/cygwin32/crt0.c: add missing args to main() extern
5624
5625 Fri Feb  6 16:32:32 1998  Nick Clifton  <nickc@cygnus.com>
5626
5627         * libc/sys/sysnecv850/crt0.S (_start): Initialise _ctbp even for
5628         v850 builds.
5629
5630         * configure.in: Add -msmall-sld to target_cflags for v850 builds. 
5631
5632 Wed Feb  4 16:56:20 1998  Jeff Johnston  <jjohnstn@cygnus.com>
5633
5634         * libc/machine/powerpc/setjmp.S (longjmp): Fixed code
5635         that loads FR14 to specify offset of 8 rather than 4
5636         so it loads from offset 96 (where setjmp stored it).
5637
5638 Tue Feb  3 18:08:34 1998  Jeff Johnston  <jjohnstn@cygnus.com>
5639
5640         * libc/machine/sh/memcpy.S: (_memcpy): Update to
5641         latest version supplied by customer.
5642         * libc/machine/sh/memset.S (_memset): Ditto.
5643
5644 Mon Feb  2 16:20:39 1998  Nick Clifton  <nickc@cygnus.com>
5645
5646         * libc/sys/sysnecv850/Makefile.in (OFILES): Add link.o (for
5647         PR14730). 
5648
5649 Mon Feb  2 15:13:26 1998  Geoffrey Noer  <noer@cygnus.com>
5650
5651         * libc/include/string.h: remove redefinition of ffs
5652
5653 Wed Jan 28 13:30:14 1998  Geoffrey Noer  <noer@cygnus.com>
5654
5655         * libc/include/sys/signal.h: include _ansi.h so _EXFUN is
5656         defined
5657
5658 Wed Jan 28 10:38:34 1998  Jeff Johnston  <jjohnstn@cygnus.com>
5659
5660         * libc/machine/tic80/setjmp.S: Adding _setjmp to allow
5661         TI Libraries to link to libc.a
5662         
5663 Sat Jan 24 10:15:56 1998  Michael Meissner  <meissner@cygnus.com>
5664
5665         * libc/include/sys/fcntl.h (_open,_fcntl): Add prototypes.
5666         * libc/include/sys/stat.h (_{,f}stat): Ditto.
5667         * libc/include/sys/wait.h (_wait): Ditto.
5668         * libc/include/sys/unistd.h (_close,_fork,_getpid): Ditto.
5669         (_link,_lseek,_read,_sbrk,_unlink,_write): Ditto.
5670
5671 Fri Jan 23 11:32:10 1998  Michael Meissner  <meissner@cygnus.com>
5672
5673         * libc/machine/d10v/setjmp.S: Change to new ABI.  Add simple
5674         minded stabs so function name shows up when running the simulator
5675         with -t.
5676         * libc/sys/d10v/{crt0,trap}.S: Ditto.
5677
5678 Thu Jan 22 15:57:14 1998  Fred Fish  <fnf@cygnus.com>
5679
5680         * libc/sys/d10v/trap.S: Change syscalls to use trap 15. 
5681         * libc/sys/d10v/crt0.S: Use R6 where we used to use R2.
5682         Use R5 where we used to use R3.
5683         
5684 Wed Jan 21 14:22:23 1998  Bill Moyer <billm@cygnus.com>
5685
5686         * libc/stdlib/getopt.c (getopt): replaced __progname
5687         with nargv[0] to improve portability to imbedded systems.
5688
5689 Thu Jan 15 12:32:38 1998  Nick Clifton  <nickc@cygnus.com>
5690
5691         * libc/sys/arm/syscalls.c (initialise_angel_handles): Applied
5692         patch supplied by Tont.Thompson@arm.com to fix the creation of the
5693         stdout file.
5694
5695 Wed Jan 14 13:00:19 1998  Ian Lance Taylor  <ian@cygnus.com>
5696
5697         * libc/stdio/tmpnam.c (worker): Generate a different file name
5698         each time.
5699
5700         * libc/posix/popen.c (popen): If __CYGWIN32__, and execing /bin/sh
5701         fails, try an execlp for sh.
5702
5703         * host/any (INCLUDES): If target_os is cygwin32, then add a -I
5704         option for the winsup include directory.
5705
5706 Wed Jan  7 17:02:58 1998  Nick Clifton  <nickc@cygnus.com>
5707
5708         * libc/sys/arm/syscalls.c: Applied patches for Angel based remote
5709         debugging interface from Tony.Thompson@arm.com.
5710         
5711         * libc/sys/arm/crt0.S (_mainCRTStartup): ditto.
5712         * libc/sys/arm/swi.h: ditto.
5713
5714 Tue Jan  6 14:15:10 1998  Geoffrey Noer  <noer@cygnus.com>
5715
5716         * libc/sys/cygwin32/sys/dirent.h: add __d_dirhash field to
5717         DIR struct used for readdir hashes.
5718
5719 Thu Jan  1 11:22:22 1998  Jeffrey A Law  (law@cygnus.com)
5720
5721         * libc/string/strchr.c: Use "unsigned chars" as necessary.
5722
5723 Wed Dec 31 04:25:30 1997  Jeffrey A Law  (law@cygnus.com)
5724
5725         * libc/stdlib/mallocr.c (idx2binblock): Don't lose on 16bit
5726         integer targets.
5727
5728 Sat Dec 13 15:11:06 1997  Ian Lance Taylor  <ian@cygnus.com>
5729
5730         * libc/stdlib/mallocr.c (__malloc_copy): New function, compiled if
5731         INTERNAL_NEWLIB and __CYGWIN32__ and DEFINE_MALLOC.
5732         * libc/include/malloc.h: Add extern "C" if __cplusplus.
5733         (__malloc_copy): Declare.
5734
5735 Wed Dec 10 12:15:54 1997  Ian Lance Taylor  <ian@cygnus.com>
5736
5737         * libc/stdlib/mallocr.c: If INTERNAL_NEWLIB, include
5738         <sys/config.h>.
5739         (POINTER_UINT): Define.
5740         (DEFAULT_TRIM_THRESHOLD): Mark constants as long.
5741         (MALLOC_ALIGNMENT): Don't define if already defined.
5742         (malloc_extend_top): Cast pointers to POINTER_UINT, not unsigned
5743         long.
5744
5745 Tue Dec  9 19:23:42 1997  Michael Meissner  <meissner@cygnus.com>
5746
5747         * libc/string/memset.c (memset): Fiddle with code so that the long
5748         value being stored is not a stack value.  Unroll storing longs 4
5749         times.
5750
5751 Tue Dec  9 14:13:18 1997  Jeff Johnston  <jjohnstn@cygnus.com>
5752
5753         * Reduce code size for libm modules.
5754         * libm/math/w_sqrt.c (sqrt): Remove call to kernel_standard
5755         and simply move code into sqrt.
5756         * libm/math/wrf_lgamma.c (lgammaf_r): Likewise.
5757         * libm/math/wr_lgamma.c (lgamma_r): Likewise.
5758         * libm/math/wrf_gamma.c (gammaf_r): Likewise.
5759         * libm/math/wr_gamma.c (gamma_r): Likewise.
5760         * libm/math/wf_sinh.c (sinfh): Likewise.
5761         * libm/math/w_sinh.c (sinh): Likewise.
5762         * libm/math/wf_scalb.c (scalbf): Likewise.
5763         * libm/math/w_scalb.c (scalb): Likewise.
5764         * libm/math/wf_remainder.c (remainderf): Likewise.
5765         * libm/math/w_remainder.c (remainder): Likewise.
5766         * libm/math/wf_pow.c (powf): Likewise.
5767         * libm/math/w_pow.c (pow): Likewise.
5768         * libm/math/wf_log10.c (log10f): Likewise.
5769         * libm/math/w_log10.c (log10): Likewise.
5770         * libm/math/wf_log.c (logf): Likewise.
5771         * libm/math/w_log.c (log): Likewise.
5772         * libm/math/w_lgamma.c (lgamma): Likewise.
5773         * libm/math/wf_lgamma.c (lgammaf): Likewise.
5774         * libm/math/wf_jn.c (jnf): Likewise.
5775         * libm/math/w_jn.c (jn): Likewise.
5776         * libm/math/wf_j1.c (j1f): Likewise.
5777         * libm/math/w_j1.c (j1): Likewise.
5778         * libm/math/wf_j0.c (j0f): Likewise.
5779         * libm/math/w_j0.c (j0): Likewise.
5780         * libm/math/wf_hypot.c (hypotf): Likewise.
5781         * libm/math/w_hypot.c (hypot): Likewise.
5782         * libm/math/wf_gamma.c (gammaf): Likewise.
5783         * libm/math/w_gamma.c (gamma): Likewise.
5784         * libm/math/wf_fmod.c (fmodf): Likewise.
5785         * libm/math/w_fmod.c (fmod): Likewise.
5786         * libm/math/wf_exp.c (expf): Likewise.
5787         * libm/math/w_exp.c (exp): Likewise.
5788         * libm/math/wf_cosh.c (coshf): Likewise.
5789         * libm/math/w_cosh.c (cosh): Likewise.
5790         * libm/math/wf_atanh.c (atanhf): Likewise.
5791         * libm/math/w_atanh.c (atanh): Likewise.
5792         * libm/math/wf_atan2.c (atan2f): Likewise.
5793         * libm/math/w_atan2.c (atan2): Likewise.
5794         * libm/math/wf_asin.c (asinf): Likewise.
5795         * libm/math/w_asin.c (asin): Likewise.
5796         * libm/math/wf_acosh.c (acoshf): Likewise.
5797         * libm/math/w_acosh.c (acosh): Likewise.
5798         * libm/math/wf_acos.c (asocf): Likewise.
5799         * libm/math/w_acos.c (acos): Likewise.
5800         * libm/math/wf_sqrt.c (sqrtf): Likewise.
5801         * libm/math/k_standard.c (_k_standard): Don't require SVID behavior
5802         for embedded systems.
5803
5804 Mon Dec  8 12:12:58 1997  Ian Lance Taylor  <ian@cygnus.com>
5805
5806         * libc/stdlib/mallocr.c (malloc_extend_top): Add patch from Doug
5807         Lea in case of a foreign sbrk.
5808
5809 Fri Dec  5 23:27:28 1997  Ian Lance Taylor  <ian@cygnus.com>
5810
5811         Incorporate Doug Lea's malloc:
5812         * libc/stdlib/mallocr.c: Completely replaced.
5813         * libc/stdlib/malloc.c: Document malloc_usable_size and memalign.
5814         (realloc): Remove.
5815         * libc/stdlib/calloc.c (calloc): Just call _calloc_r.
5816         * libc/stdlib/mstats.c: Document mallinfo, malloc_stats, and
5817         mallopt.
5818         (mallinfo, malloc_stats, mallopt): New functions.
5819         (_mstats_r): Just call _malloc_stats_r.
5820         * libc/stdlib/malign.c: New file.
5821         * libc/stdlib/mlock.c: New file.
5822         * libc/stdlib/msize.c: New file.
5823         * libc/stdlib/mtrim.c: New file.
5824         * libc/stdlib/realloc.c: New file.
5825         * libc/stdlib/valloc.c: New file.
5826         * libc/stdlib/malloc.h: Remove.
5827         * libc/stdlib/callocr.c: Remove.
5828         * libc/stdlib/Makefile.in (OFILES): Add cfreer.o, freer.o,
5829         malign.o, malignr.o, mallinfor.o, malloptr.o, mallstatsr.o,
5830         mlock.o, msize.o, msizer.o, mtrim.o, pvallocr.o, realloc.o,
5831         reallocr.o, valloc.o, vallocr.o.
5832         (CHEWOUT_FILES): Add mlock.def, mstats.def.
5833         (MALLOC_CFLAGS): New variable.
5834         (mallocr.o): New target, build from mallocr.c.
5835         (freer.o, reallocr.o, callocr.o, cfreer.o, malignr.o): Likewise.
5836         (vallocr.o, pvallocr.o, mallinfor.o, mallstatsr.o): Likewise.
5837         (msizer.o, malloptr.o): Likewise.
5838         (malign.o, mlock.o, msize.o, mtrim.o, realloc.o): New targets.
5839         (valloc.o): New target.
5840         * libc/stdlib/stdlib.tex: Include mlock.def and mstats.def.
5841         * libc/include/malloc.h: Declare struct mallinfo, and new
5842         routines.
5843         * libc/include/stdlib.h (cfree): Correct declaration.
5844
5845 Tue Dec  2 10:12:16 1997  Nick Clifton  <nickc@cygnus.com>
5846
5847         * libc/include/machine/setjmp.h: Add support for Thumb target.
5848
5849         * libc/include/machine/ieeefp.h: Add support for Thumb target.
5850
5851         * configure.in (links): Add support for Thumb target.
5852
5853 Wed Nov 26 09:56:17 1997  Nick Clifton  <nickc@cygnus.com>
5854
5855         * libc/sys/arm/setjmp.S: Updated with version from branch.
5856
5857 Thu Nov 20 01:21:43 1997  Geoffrey Noer  <noer@cygnus.com>
5858
5859         * libc/include/stdio.h: add POSIX-required define L_ctermid
5860         for ctermid
5861
5862 Wed Nov 19 16:11:40 1997  Michael Meissner  <meissner@cygnus.com>
5863
5864         * configure.in (d30v-*-*): Define ABORT_MESSAGE, SMALL_MEMORY, in
5865         addition to MISSING_SYSCALL_NAMES.
5866
5867 Mon Nov 17 20:05:05 1997  J"orn Rennecke <amylaar@cygnus.co.uk>
5868
5869         * libc/include/sys/config.h: (UINT_MAX, for D10V):  Make unsigned.
5870
5871 Mon Nov 10 22:26:55 1997  Geoffrey Noer  <noer@cygnus.com>
5872
5873         * libc/include/string.h: change strsignal proto to return
5874         a char *.  This eliminates compile problems in gdb resulting
5875         from gdb's definition of strsignal in defs.h.
5876
5877 Mon Nov 10 17:11:08 1997  Geoffrey Noer  <noer@cygnus.com>
5878
5879         * libc/sys/cygwin32/sys/utime.h: new (moved here from
5880         winsup/include) so as not to conflict with the one in
5881         libc/include.
5882         * libc/include/string.h: add protos for strsignal, strtosigno
5883
5884 Mon Nov 10 13:49:54 1997  Michael Meissner  <meissner@cygnus.com>
5885
5886         * libc/include/sys/config.h: Define __IEEE_BIG_ENDIAN if d30v.
5887
5888         * configure.in (d30v-*-*): Add configuration.
5889
5890 Thu Oct 30 14:01:23 1997  Nick Clifton  <nickc@cygnus.com>
5891
5892         * configure.in (links): Add -DARM_RD[P|I]_MONITOR to target_cflags
5893         to select which kind of debug monitor is in use for an ARM target.
5894
5895         * libc/sys/arm/crt0.S: New version: Supports Thumb startups and
5896         Angel and Demon debug monitors.  Part of this code was supplied by
5897         Tony Thompson at ARM: athompso@arm.com.
5898
5899 Fri Oct 24 18:57:05 1997  Jeffrey A Law  (law@cygnus.com)
5900
5901         * strncat.c (strncat): Don't call strncpy; strncay has the wrong
5902         semantics when the count is greater than the length of the second
5903         source string.
5904
5905 Thu Oct 23 01:37:41 1997  Geoffrey Noer  <noer@cygnus.com>
5906
5907         * libc/include/sys/signal.h: reorder CYGWIN32 signal numbers
5908         * libc/include/sys/unistd.h: add protos for usleep, truncate,
5909         truncate and ftruncate take off_t, not size_t
5910
5911 Tue Oct 21 18:42:00 1997  Jim Wilson  <wilson@cygnus.com>
5912
5913         * libc/string/strcat.c (strcat): Add missing comment end.
5914         * libc/string/strncat.c (strncat): Likewise.
5915
5916 Tue Oct 21 17:23:34 1997  Nick Clifton  <nickc@cygnus.com>
5917
5918         * configure.in (links): Define PREFER_SIZE_OVER_SPEED for v850
5919         targets. 
5920         * libc/string/{memchr.c, memcmp.c, memcpy.c}:   Add space
5921         optimised version which is selected if PREFER_SIZE_OVER_SPEED is
5922         defined.  
5923         * libc/string/{memset.c, strcat.c, strchr.c}: Likewise.
5924         * libc/string/{strcmp.c, strcpy.c, strlen.c}: Likewise.
5925         * libc/string/{strncat.c, strncmp.c, strncpy.c}: Likewise.
5926
5927 Mon Oct 13 15:12:35 1997  Ian Lance Taylor  <ian@cygnus.com>
5928
5929         * libc/include/sys/param.h (BIG_ENDIAN): Define if __i386__.
5930         (LITTLE_ENDIAN, BYTE_ORDER): Likewise.
5931
5932 Thu Oct  9 13:54:44 1997  Doug Evans  <dje@canuck.cygnus.com>
5933
5934         * libc/machine/i386/setjmp.S: New file.
5935         * libc/machine/i386/Makefile.in: Delete COPYOFILES.
5936         (OFILES): Add setjmp.o.
5937         (setjmp.o): Add rule for.
5938         * configure.in: Don't set machine_dir for *-*-{go32,sco*,cygwin32}.
5939
5940 Tue Oct  7 14:01:29 1997 Bill Moyer     (billm@cygnus.com)
5941                          Jeffrey A Law  (law@cygnus.com)
5942
5943         * libc/string/{memchr.c, memcmp.c, memcpy.c}: Reimplement to run faster.
5944         * libc/string/{memset.c, strcat.c, strchr.c}: Likewise.
5945         * libc/string/{strcmp.c, strcpy.c, strlen.c}: Likewise.
5946         * libc/string/{strncat.c, strncmp.c, strncpy.c}: Likewise.
5947
5948 Mon Oct  6 14:07:59 1997  Nick Clifton  <nickc@cygnus.com>
5949
5950         * libc/sys/sysnecv850/Makefile.in (crt0.o trap.o): Explicit
5951         rules. 
5952
5953         * libc/include/sys/config.h: Use __v850 to select v850
5954         endianness. 
5955
5956         * libc/include/machine/setjmp.h: Use __v850 to select v850 jump
5957         buffer size.
5958
5959         * libc/include/machine/ieeefp.h: Use __v850 to select v850
5960         endianness. 
5961
5962 Thu Sep 25 14:11:37 1997  Geoffrey Noer  <noer@cygnus.com>
5963
5964         * libc/stdlib/setenv.c: change unsetenv definition to match
5965         style of setenv (with _DEFUN).  The string should be a const.
5966         * libc/include/stdlib.h: unsetenv proto should return void.
5967
5968 Tue Sep 23 18:17:20 1997  Geoffrey Noer  <noer@cygnus.com>
5969
5970         * libc/include/stdlib.h: define unsetenv proto for __CYGWIN32__
5971
5972 Thu Sep 18 12:50:15 1997  Angela Marie Thomas (angela@cygnus.com)
5973
5974         * libc/stdio/glue.h: remove.
5975         * libc/stdio/findfp.c, libc/stdio/fwalk.c: remove #include "glue.h"
5976         * libc/stdio/Makefile.in: remove glue.h dependencies
5977
5978 Wed Sep 17 17:42:27 1997  Nick Clifton  <nickc@cygnus.com>
5979
5980         * libc/sys/sysnecv850/crt0.S: Created V850e version.
5981         
5982 Tue Sep  9 10:40:57 1997  Doug Evans  <dje@canuck.cygnus.com>
5983
5984         * configure.in (target_cpu): Add `arc'.
5985
5986 Tue Sep  9 10:40:42 1997  Joel Sherrill  <joel@OARcorp.com>
5987
5988         * newlib/configure.in (*-*-rtems*): Add -DSIGNAL_PROVIDED and 
5989           -DREENTRANT_SYSCALLS_PROVIDED to the target_cflags.
5990         * newlib/libc/include/sys/errno.h: Add ENOTSUP.
5991         * newlib/libc/reent/reent.c: Add _wrapup_reent.
5992         * newlib/libc/sys/rtems/sys/types.h: Avoid redefinitions for go32.
5993
5994 Sun Sep  7 16:41:41 1997  Gavin Koch  <gavin@cygnus.com>
5995
5996         * libc/machine/mips/setjmp.S: Handle mips16 builds.
5997
5998 Thu Aug 21 20:05:38 1997  Ian Lance Taylor  <ian@cygnus.com>
5999
6000         * libc/include/stdio.h (siprintf): Declare.
6001
6002 Mon Aug 18 11:19:13 1997  Nick Clifton  <nickc@cygnus.com>
6003
6004         * libc/sys/sysnecv850/Makefile.in (.c.o): Add rule that includes
6005         TARGET_CFLAGS and NEWLIB_FLAGS.
6006
6007 Mon Aug 18 11:15:43 1997  Nick Clifton  <nickc@cygnus.com>
6008
6009         * configure.in (links): Add support for v850ea target.
6010
6011 Mon Aug 18 11:15:43 1997  Nick Clifton  <nickc@cygnus.com>
6012
6013         * configure.in (links): Add support for v850e target.
6014
6015 Wed Aug 13 19:16:54 1997  Nick Clifton  <nickc@cygnus.com>
6016
6017         * libc/sys/sysnecv850/crt0.S: Remove initial setting of r0 to 0.
6018
6019 Mon Aug 11 15:49:54 1997  Doug Evans  <dje@canuck.cygnus.com>
6020
6021         * configure.in (arc-*-*): Add support for.
6022         * libc/include/machine/ieeefp.h (__arc__): Add support for the ARC.
6023
6024 Fri Jul 25 17:37:41 1997  J"orn Rennecke <amylaar@cygnus.co.uk>
6025
6026         * libc/sys/sh/crt0.S (start): Add fpscr initialization for SH4.
6027
6028 Thu Jul 24 18:32:17 1997  Geoffrey Noer  <noer@cygnus.com>
6029
6030         * libc/stdlib/bsearch.c (bsearch): remove last unneeded
6031         comparison which accesses invalid memory when the key is
6032         larger than the last member of the array.
6033         * libc/include/machine/setjmp.h: add sigsetjmp, siglongjmp
6034         for CYGWIN32
6035         * libc/include/sys/unistd.h: add _POSIX defines for CYGWIN32
6036
6037 Tue Jul 22 16:03:06 1997  Ian Lance Taylor  <ian@cygnus.com>
6038
6039         * libc/include/stdlib.h (realpath): Declare if __CYGWIN32__ and
6040         not _STRICT_ANSI.
6041
6042 Thu Jul 10 15:11:52 1997  Doug Evans  <dje@canuck.cygnus.com>
6043
6044         * libm/math/k_standard.c (__kernel_standard): Call fflush(stdout)
6045         ifndef _USE_WRITE, instead of ifdef _USE_WRITE.
6046
6047 Thu Jul 10 16:00:09 1997  Mike Meissner  <meissner@cygnus.com>
6048
6049         * libc/machine/tic80/setjmp.S (setjmp,longjmp): Use ld.d and st.d
6050         to load/store memory.
6051
6052 Mon Jul  7 17:38:17 1997  Ian Lance Taylor  <ian@cygnus.com>
6053
6054         * libc/include/sys/fcntl.h: Define _O_* symbols with leading
6055         underscores if _WIN32.
6056
6057 Wed Jul  2 10:07:20 1997  Doug Evans  <dje@canuck.cygnus.com>
6058
6059         * libm/math/k_standard.c (__kernel_standard): Delete reentrancy
6060         support ifdef _USE_WRITE missed in last change.
6061         From Anders Blomdell <anders.blomdell@control.lth.se>.
6062
6063 Wed Jun 25 10:18:49 1997  Doug Evans  <dje@canuck.cygnus.com>
6064
6065         * libc/stdio/tmpnam.c (worker): Handle _open_r being stubbed out.
6066         (_tmpnam_r, _tempnam_r): Update.
6067
6068 Wed Jun 25 00:16:55 1997  Mark Alexander  <marka@cygnus.com>
6069
6070         * libc/machine/sparc/setjmp.S: New file.
6071         * libc/machine/sparc/Makefile.in: Add setjmp.
6072         * libc/include/machine/setjmp.h: Increase jmpbuf size for sparc.
6073
6074 Tue Jun 24 23:27:38 1997  Mark Alexander  <marka@cygnus.com>
6075
6076         * libc/include/machine/setjmp.h: Use __TIC80__ instead of __tic80__.
6077
6078 Tue Jun 24 14:53:40 1997  Doug Evans  <dje@canuck.cygnus.com>
6079
6080         From Joel Sherrill <joel@oarcorp.com>.
6081         * libc/stdlib/getenv.c (_findenv): Avoid dereferencing null `environ'.
6082
6083         Add rtems support.  From Joel Sherrill <joel@oarcorp.com>.
6084         * configure.in: Recognize *-*-rtems*.
6085         * libc/sys/rtems/{Makefile.in,crt0.c,dummysys.c}: New files.
6086         * libc/sys/rtems/sys/{features.h,sched.h,siginfo.h,signal.h,
6087         time.h,times.h,types.h}: New files.
6088         * libc/sys/rtems/include/{limits.h,signal.h,time.h}. New files.
6089
6090 Fri Jun 20 11:13:16 1997  Geoffrey Noer  <noer@cygnus.com>
6091
6092         patch from sos@prospect.com.ru (Sergey Okhapkin):
6093         * include/sys/wait.h: correct operator precidence bug
6094         in WIFSIGNALED
6095
6096 Wed Jun 18 22:08:27 1997  Geoffrey Noer  <noer@cygnus.com>
6097
6098         * libc/include/stdlib.h: remove unsetenv proto since it conflicts
6099         with newlib's unsetenv function
6100         * libc/sys/cygwin32/sys: new directory for includes
6101         * libc/sys/cygwin32/sys/dirent.h: move cygwin32's dirent.h
6102         here from winsup/include/sys
6103
6104 Mon Jun 16 21:02:22 1997  Geoffrey Noer  <noer@cygnus.com>
6105
6106         * libc/include/sys/unistd.h: _exit should only be
6107         labelled noreturn when not __CYGWIN32__
6108         * libc/include/stdlib.h: for __CYGWIN32__, add proto for unsetenv
6109         * libc/include/sys/signal.h: add SIGIO to _WIN32 list and
6110         increment NSIG
6111
6112 Thu Jun 12 18:52:41 1997  Ian Lance Taylor  <ian@cygnus.com>
6113
6114         * libc/include/sys/time.h: Only define timeval and timezone if
6115         _GNU_H_WINDOWS32_SOCKETS is not defined.
6116         * libc/include/sys/stat.h: If _WIN32, define _S_IFMT, etc.
6117
6118 Wed Jun 11 09:46:26 1997  Jeffrey A Law  (law@cygnus.com)
6119
6120         * libc/machine/mn10200/setjmp.S: Implement setjmp/longjmp
6121         * libc/machine/mn10300/setjmp.S: Likewise.
6122
6123         * libc/sys/sysmec/crt0.S: Use "call" instead of "calls" for
6124         the mn10300 (more relaxing opportunities).
6125
6126 Tue Jun 10 17:24:45 1997  Mike Meissner  <meissner@cygnus.com>
6127
6128         * configure.in (powerpc*-*-{eabi,elf,linux,rtems,sysv,solaris}):
6129         Build libraries with -mstrict-align.
6130
6131 Fri Jun  6 14:07:59 1997  Ian Lance Taylor  <ian@cygnus.com>
6132
6133         * libc/string/strlwr.c: New file.
6134         * libc/string/strupr.c: New file.
6135         * libc/include/string.h: Declare strlwr and strupr.
6136         * libc/string/Makefile.in (OFILES): Add strlwr.o and strupr.o.
6137         (CHEWOUT_FILES): Add strlwr.def and strupr.def.
6138         (strlwr.o, strupr.o): New targets.
6139         * libc/string/strings.tex: Include strlwr and strupr docs.
6140
6141         * libc/include/sys/types.h: Don't define u_char, et. al., if
6142         _GNU_H_WINDOWS32_SOCKETS is defined.  Likewise for fd_set,
6143         et. al.  Make FD_SETSIZE default 64 rather than 60.  Define
6144         _types_fd_set rather than fd_set, and define fd_set as a macro.
6145
6146         * libc/include/malloc.h: New file.
6147
6148         * libc/include/string.h: Define strcmpi, stricmp, strncmpi, and
6149         strnicmp if they are not already defined.
6150
6151         * libc/include/time.h: If __CYGWIN32__, declare tzset and define
6152         _timezone, _daylight, and _tzname.
6153
6154 Wed Jun  4 12:51:16 1997  Doug Evans  <dje@canuck.cygnus.com>
6155
6156         * configure.in: Sort all configuration tables.
6157
6158         From Joel Sherrill <joel@oarcorp.com>
6159         * Makefile.in (stmp-targ-include): Copy $(sys_dir)/include/*.h.
6160
6161 Tue Jun  3 14:47:46 1997  Ian Lance Taylor  <ian@cygnus.com>
6162
6163         * libc/include/sys/signal.h: Don't include <sys/types.h>.  Just
6164         use int when declaring kill.
6165
6166         * libc/include/sys/timeb.h: New file.
6167
6168 Mon Jun  2 12:06:58 1997  Geoffrey Noer  <noer@cirdan.cygnus.com>
6169
6170         * libc/include/sys/time.h: add itimer support for Cygwin32
6171
6172 Mon May 19 11:56:46 1997  Mike Meissner  <meissner@cygnus.com>
6173
6174         * libc/stdlib/abort.c (abort): If ABORT_MESSAGE is defined, write
6175         out a message that abort was called to stderr.
6176
6177 Fri May 16 15:02:59 1997  Bob Manson  <manson@charmed.cygnus.com>
6178
6179         * libc/sys/sysmec/fstat.c (_fstat): Set st_blksize to 4096
6180         so that libio doesn't freak.
6181
6182         * libc/sys/sysmec/sbrk.c (_sbrk): The argument is a size_t, not
6183         int.
6184
6185         * libc/stdlib/mallocr.c (_morecore_r): Use size_t for
6186         memory sizes, not int.
6187
6188 Wed May 14 21:16:58 1997  Bob Manson  <manson@charmed.cygnus.com>
6189
6190         * libm/math/ef_hypot.c: Use long constants where
6191         appropriate.
6192         * libm/math/ef_sqrt.c: Ditto.
6193
6194         * libc/sys/sysmec/times.c(_times): Change to times.
6195
6196         * libc/sys/sysmec/read.c(_read): The third argument is
6197         size_t.
6198         * libc/sys/sysmec/write.c (_write): Ditto.
6199
6200         * libc/sys/sysmec/lseek.c: Include unistd.h for off_t.
6201         (_lseek): It's off_t for the second argument.
6202
6203 Wed May 14 15:23:36 1997  Mike Meissner  <meissner@cygnus.com>
6204
6205         * libc/include/sys/config.h (__IEEE_LITTLE_ENDIAN): Define here,
6206         as well as machine/ieeefp.h.
6207
6208 Thu May  8 15:47:25 1997  Geoffrey Noer  <noer@cygnus.com>
6209
6210         * libc/include/sys/signal.h: add signal protos for winsup
6211         functions (when __CYGWIN32__), include types.h
6212         * libc/include/sys/types.h: Change __go32_types__ internal
6213         define to __MS_types__ since it's used for more than just
6214         GO32 configs.  Define this if GO32, __MSDOS__, or _WIN32 are
6215         defined.
6216         * libc/include/sys/unistd.h: add ftruncate proto for
6217         winsup functions (when __CYGWIN32__)
6218
6219 Fri Apr 25 10:10:16 1997  Doug Evans  <dje@canuck.cygnus.com>
6220
6221         * libc/sys/h8300hms/sbrk.c (stack_ptr): Add definition.
6222
6223 Thu Apr 24 15:46:51 1997  Mike Stump  <mrs@cygnus.com>
6224
6225         * libc/include/machine/setjmp.h: Add tic80 support.
6226         * libc/machine/tic80/setjmp.S: Likewise.
6227
6228 Tue Apr 22 16:54:40 1997  Geoffrey Noer  <noer@pizza.cygnus.com>
6229
6230         * libc/sys/cygwin32/crt0.c: Add reference to main() so we can
6231         link programs from libraries only (such as in the X11
6232         distribution)
6233
6234 Mon Apr 21 15:02:12 1997  Fred Fish  <fnf@cygnus.com>
6235
6236         * libc/sys/arm/syscalls.c (signal): Remove stub, signal()
6237         supplied elsewhere in newlib.
6238
6239 Mon Apr 14 16:25:55 1997  Ian Lance Taylor  <ian@cygnus.com>
6240
6241         * Makefile.in (INSTALL): Change install.sh to install-sh.
6242
6243 Fri Apr 11 17:04:02 1997  Jason Molenda  (crash@godzilla.cygnus.co.jp)
6244
6245         * README: update WWW address for on-line documentation.
6246
6247 Wed Apr  9 00:38:13 1997  Geoffrey Noer  <noer@cygnus.com>
6248
6249         * libc/include/sys/signal.h: for _WIN32, define SIGCONT and
6250         increment NSIG
6251
6252 Mon Apr  7 23:54:00 1997  Jeffrey A Law  (law@cygnus.com)
6253
6254         * libc/sys/sysmec/crt0.S: Update for new calling conventions on the
6255         mn10300.
6256         * libc/sys/sysmec/trap.S: Don't compare a register to itself.
6257
6258 Tue Mar 25 08:47:43 1997  Jeffrey A Law  (law@cygnus.com)
6259
6260         * libc/sys/arm/syscalls.c: Fix/add stack/heap collision detection.
6261         * libc/sys/d10v/syscalls.c: Likewise.
6262         * libc/sys/h8300hms/sbrk.c: Likewise.
6263         * libc/sys/h8500hms/syscalls.c: Likewise.
6264         * libc/sys/m88kbug/syscalls.c: Likewise.
6265         * libc/sys/sh/syscalls.c: Likewise.
6266         * libc/sys/sysmec/sbrk.c: Likewise.
6267         * libc/sys/sysnecv850/sbrk.c: Likewise.
6268         * libc/sys/w65/syscalls.c: Likewise.
6269         * libc/sys.tex: Update sbrk sample code to include stack/heap collision.
6270
6271 Tue Mar 18 14:14:34 1997  Jeffrey A Law  (law@cygnus.com)
6272
6273         * libc/sys/sysmec/trap.S: Use "syscall" to trigger an
6274         emulated syscall instead of "trap".
6275
6276 Fri Mar 14 11:26:13 1997  Michael Meissner  <meissner@cygnus.com>
6277
6278         * libc/sys/d10v/trap.S (__trap0): Use trap 15 for system calls,
6279         not trap 0.
6280
6281 Sun Mar  9 23:27:04 1997  Doug Evans  <dje@seba.cygnus.com>
6282
6283         * configure.in (m32r-*-*): Add -msdata=sdata to target_cflags.
6284
6285 Sat Mar  8 09:05:01 1997  Fred Fish  <fnf@cygnus.com>
6286
6287         * libc/machine/arm/Makefile.in: Fix comment, is for "arm"
6288         not "sh".
6289         * libc/machine/m32r/Makefile.in: Fix comment, is for "m32r"
6290         not "d10v".
6291         * libc/sys/tic80/crt0.c: New file for TIc80.
6292         * libc/sys/tic80/Makefile.in: New file for TIc80.
6293         * libc/machine/tic80/Makefile.in: New file for TIc80.
6294
6295 Wed Mar  5 11:32:12 1997  J.T. Conklin  <jtc@cygnus.com>
6296
6297         * libc/machine/sh/memcpy.S: New file.
6298         * libc/machine/sh/memset.S: New file.
6299         * libc/machine/sh/Makefile.in (OFILES): Add memcpy.o and memset.o
6300
6301 Thu Feb 27 16:27:55 1997  Fred Fish  <fnf@cygnus.com>
6302
6303         * libc/include/machine/ieeefp.h (_IEEE_LITTLE_ENDIAN): Define
6304         for TIc80.
6305
6306 Wed Feb 26 13:43:39 1997  Jeffrey A Law  (law@cygnus.com)
6307
6308         * libc/sys/sysmec/crt0.S: Handle new calling conventions for
6309         the mn10200.
6310
6311 Wed Feb 26 07:11:03 1997  Michael Meissner  <meissner@cygnus.com>
6312
6313         * libc/machine/powerpc/setjmp.S (longjmp): Correct return status
6314         (patch from andrew@pogo.WV.TEK.COM).
6315
6316 Fri Feb 14 11:49:28 1997  Doug Evans  <dje@canuck.cygnus.com>
6317
6318         * libc/machine/m32r/setjmp.S (setjmp): Save r12.
6319         (longjmp): Restore r12. Fix code that handles returning 1 if passed 0.
6320
6321 Mon Feb 10 10:02:34 1997  Fred Fish  <fnf@cygnus.com>
6322
6323         * configure.in:  Add cases for "tic80" to set machine_dir,
6324         sys_dir, and syscall_dir.
6325
6326 Sun Feb  2 17:57:15 1997  Geoffrey Noer  <noer@cygnus.com>
6327
6328         * libc/sys/cygwin32/crt0.c: initialize floating pt registers
6329
6330 Wed Jan 29 15:57:38 1997  Geoffrey Noer  <noer@cygnus.com>
6331
6332         * libc/include/math.h: avoid conflicts with ANSI C++ <exception>
6333
6334 Mon Jan 27 12:50:01 1997  Doug Evans  <dje@seba.cygnus.com>
6335
6336         * libc/machine/m32r/setjmp.S: Use proper comment delimiter.
6337         Use proper constant prefix.
6338
6339 Fri Jan 24 10:59:04 1997  Jeffrey A Law  (law@cygnus.com)
6340
6341         * libc/sys/sysmec/*.c: Don't cast args to syscall to integers,
6342         that loses on the mn10200 where ints and pointers are different
6343         sizes.
6344
6345 Tue Jan 14 13:29:55 PST 1997  Jeremy Allison <jra@cygnus.com>
6346
6347         * configure.in: Added -DSIGNAL_PROVIDED to cygwin32
6348         target as signal is provided in winsup.
6349
6350 Tue Jan 14 11:10:13 1997  Jeremy Allison <jra@cygnus.com>
6351
6352         * libc/include/sys/process.h: Corrected const definitions
6353         in spawn functions. Added cwait.
6354
6355 Thu Jan  2 12:22:41 1997  Jeffrey A Law  (law@cygnus.com)
6356
6357         * libc/include/machine/ieeefp.h: mn10200 uses 16bit ints and 32bit
6358         doubles.
6359         * libc/include/sys/config.h: Similarly.
6360
6361 Tue Dec 31 18:36:14 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
6362
6363         * configure.in (sparc-sun-sunos*): Add -DSIGNAL_PROVIDED to the
6364         target_cflags.
6365         (i[3456]86-*-sco*): Ditto.
6366
6367         * libc/signal/Makefile.in (OFILES): Add signal.o.
6368         (CFILES): Add signal.c.
6369
6370         * libc/signal/raise.c (_raise_r): Only compile code if
6371         SIGNAL_PROVIDED is defined.
6372
6373         * libc/signal/signal.c: Redo whole file so that it works with
6374         current newlib.  Use _kill_r if no signal handler provided.
6375
6376         * libc/sys/{go32,sparc64,sysmec}/Makefile.in: Delete raise and
6377         signal stubs.
6378         * libc/sys/sysvnecv70/Makefile.in: Ditto.
6379         * libc/sys/sysnecv850/Makefile.in: Ditto.
6380
6381         * libc/sys/{go32,sparc64}/signal.c: Delete, stub no longer used.
6382         * libc/sys/sysmec/{raise,signal}.c: Ditto.
6383         * libc/sys/sysvnecv70/signal.s: Ditto.
6384         * libc/sys/sysnecv850/raise.c: Ditto.
6385
6386         * libc/sys/sysnecv850/kill.c (_kill): Encode signal # so that
6387         simulator and debugger can tell the difference between a signal
6388         being raised and an exit system call.
6389
6390         * NEWS: Document software signals being provided.
6391
6392 Mon Dec 23 11:54:19 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
6393
6394         * libc/reent/impure.c (_REENT_ATTR): Delete in favor of
6395         __ATTRIBUTE_IMPURE_PTR__.  Move PowerPC definition to
6396         include/sys/config.h.
6397         (impure_data): Use __ATTRIBUTE_IMPURE_DATA__ for attributes.
6398         Change from 'inpure_data'.
6399         (_impure_ptr): Use __ATTRIBUTE_IMPURE_PTR__ for attributes.  Use
6400         &impure_data, not &inpure_data.
6401
6402         * libc/include/sys/config.h (__ATTRIBUTE_IMPURE_PTR__): If PowerPC
6403         and and System V ABI, define so that _impure_ptr lives in the
6404         .sdata section.
6405
6406 Sun Dec 22 23:33:05 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
6407
6408         * libc/include/sys/reent.h (__ATTRIBUTE_IMPURE_PTR__): Define as
6409         nothing if not defined.
6410         (_impure_ptr): Use __ATTRIBUTRE_IMPURE_PTR__, so a machine can set
6411         its attributes.
6412
6413         * libc/include/sys/config.h (__ATTRIBUTE_IMPURE_PTR__): 
6414
6415 Wed Dec 18 10:12:04 1996  Jeffrey A Law  (law@cygnus.com)
6416
6417         * libc/sys/sysmec/crt0.S: Fix mn10200 stuff.
6418         * libc/sys/sysmec/trap.s: Handle mn10200 too.
6419         * libc/machine/mn10200/setjmp.S: Fix mn10200 stuff.
6420
6421 Mon Dec 16 10:05:36 1996  Jeffrey A Law  (law@cygnus.com)
6422
6423         * libc/sys/sysmec/crt0.S: Handle mn10200 too.
6424
6425 Fri Dec 13 11:05:20 1996  Jeremy Allison <jra@cygnus.com>
6426
6427         * libc/include/sys/errno.h: Added net errno's.
6428
6429 Wed Dec 11 16:24:25 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
6430
6431         * libc/misc/ffs.c: New file to support ffs function for GCC test
6432         gcc.c-torture/execute/960909-1.c.
6433
6434         * libc/misc/Makefile.in ({O,CHEWOUT_}FILES): Add ffs.
6435
6436 Sat Dec  7 10:12:37 1996  Jeffrey A Law  (law@cygnus.com)
6437
6438         * libc/sys/sysmec/crt0.S: Handle underscore prefix.
6439         * libc/sys/sysmec/trap.S: Likewise.
6440
6441 Fri Dec  6 15:08:49 1996  Jim Wilson  <wilson@cygnus.com>
6442
6443         * configure.in (mips*vr4300*-*-*): Delete use of sys/vr4300.
6444         * libc/sys/vr4300/{Makefile.in,crt0.S,syscalls.c}: Delete.
6445
6446 Wed Dec  4 16:25:27 1996  Jeffrey A Law  (law@cygnus.com)
6447
6448         * libc/sys/sysmec/signal.c: Dummy file.
6449         * libc/sys/sysmec/Makefile.in: Build it.
6450
6451 Wed Nov 27 13:10:18 1996  Ian Lance Taylor  <ian@cygnus.com>
6452
6453         * libc/machine/mips/machine/regdef.h: Define pc as $pc for
6454         mips16.
6455
6456 Mon Nov 25 09:58:28 1996  Jeffrey A Law  (law@cygnus.com)
6457
6458         * libc/sys/sysmec/{crt0.S,trap0.S}: Actually try to implement
6459         c-startup and simulator traps.
6460
6461
6462         * libc/sys/sysmec/crt0.S: Remove bogus '_' symbol prefixing
6463         * libc/sys/sysmec/trap0.S: Likewise.
6464
6465 Sat Nov 23 09:01:03 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
6466
6467         * libc/stdlib/mallocr.c (ROUND_TO): If SMALL_MEMORY, set to 0x7 to
6468         round to double word alignment.
6469         (_morecore_r): Combine rounding up pointers to both ROUND_TO and 8
6470         byte alignment.
6471
6472         * libc/include/sys/config.h (__IEEE_BIG_ENDIAN): Define if d10v.
6473
6474         * libc/sys/d10v/syscalls.c (_sbrk): Add better checks for running
6475         out of memory.
6476
6477 Mon Nov 18 13:08:26 1996  Jeffrey A Law  (law@cygnus.com)
6478
6479         * configure.in: Handle mn10200 and mn10300.
6480         * libc/include/machine/{ieeefp.h,setjmp.h}: Likewise.
6481         * libc/include/sys/config.h: Likewise.
6482         * libc/sys/sysmec: New directory for mec stuff.
6483         * libc/machine/mn10300: New directory for mn10300 stuff.
6484         * libc/machine/mn10200: Similarly for mn10200 stuff.
6485
6486 Fri Nov 15 16:41:41 1996  Doug Evans  <dje@canuck.cygnus.com>
6487
6488         * libc/sys/arm/crt0.S: Use .text, not .section .text.
6489         * libc/sys/arm/syscalls.c: Rewrite to set errno properly.
6490
6491         * libc/include/sys/types.h (_ST_INT32): New macro, local to file.
6492         (nlink_t): Change type from unsigned int to unsigned short.
6493         (mode_t): Ensure size is 32 bits even if int is 16.
6494         * libc/include/sys/stat.h (st_nlink): Change type to nlink_t.
6495         (st_spare[123]): Change type from int to long.
6496
6497 Fri Nov 15 11:41:50 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
6498
6499         * libc/sys/d10v/syscalls.c (_sbrk): Align initial heap_end to 8
6500         byte boundary.
6501
6502         * configure.in (d10v*): Define SMALL_MEMORY.
6503
6504 Mon Nov 11 10:30:44 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
6505
6506         * configure.in (powerpc*-{eabi,elf,linux,rtem,sysv,solaris}*): Add
6507         -mrelocatable-lib and -mno-eabi flags.
6508
6509 Mon Nov 11 09:01:39 1996  Jeffrey A Law  (law@cygnus.com)
6510
6511         * libc/machine/h8300/memcpy.S: Fix comments to reflect reality.
6512         Fix handling of mis-aligned source operand when both the
6513         destination & length are properly aligned.
6514         
6515 Wed Oct 30 09:41:11 1996  Jeffrey A Law  (law@cygnus.com)
6516
6517         * libc/sys/sysnecv850/Makefile.in (OFILES): Add
6518         times.o, time.o and gettime.o
6519         * libc/sys/sysnecv850/{time.c, times.c, gettime.c}: New files.
6520         * libc/sys/sysnecv850/sys/syscall.h: Add SYS_times and
6521         SYS_gettimeofday.
6522
6523 Tue Oct 29 13:40:09 1996  Jeffrey A Law  (law@cygnus.com)
6524
6525         * libc/sys/sysnecv850/Makefile.in (OFILES): Add access.o
6526         * libc/sys/sysnecv850/access.c: New file.
6527
6528 Mon Oct 21 19:47:02 1996  Ian Lance Taylor  <ian@cygnus.com>
6529
6530         * libc/sys/vr4300/Makefile.in (clean): Remove $(OFILES).
6531
6532         * libc/stdlib/mprec.h (word0, word1): Use __uint32_t, not unsigned
6533         long.
6534
6535 Mon Oct 21 14:43:07 1996  Jeffrey A Law  (law@cygnus.com)
6536
6537         * libc/sys/sysnecv850/crt0.S: Initialize ep and gp registers.
6538
6539 Thu Oct 17 11:47:16 1996  Doug Evans  <dje@seba.cygnus.com>
6540
6541         * libc/include/machine/{ieeefp.h,setjmp.h}: Add m32r support.
6542         * libc/include/sys/config.h: Add m32r support.
6543
6544 Wed Oct 16 23:08:05 1996  Jeffrey A Law  (law@cygnus.com)
6545
6546         * libc/sys/sysnecv850/v850.ld: Remove.  It doesn't belong
6547         here.
6548
6549 Wed Oct 16 21:18:07 1996  Mark Alexander  <marka@cygnus.com>
6550
6551         * libc/include/machine/setjmp.h: Add D10v support.
6552
6553 Tue Oct 15 22:28:26 1996  Jeffrey A Law  (law@cygnus.com)
6554
6555         * configure.in: Configure the "libc/syscalls" directory for
6556         the v850.
6557
6558         * libc/sys/sysnecv850/{close.c, execve.c, fork.c}: Add missing '_'.
6559         * libc/sys/sysnecv850/{fstat.c, getpid.c, kill.c}: Likewise.
6560         * libc/sys/sysnecv850/{lseek.c, open.c, read.c}: Likewise.
6561         * libc/sys/sysnecv850/{sbrk.c, stat.c, unlink.c}: Likewise.
6562         * libc/sys/sysnecv850/{wait.c, write.c}: Likewise.
6563
6564 Tue Oct 15 16:24:39 1996  Stu Grossman  (grossman@critters.cygnus.com)
6565
6566         * libc/sys/sysnecv850/crt0.S (start):  Allocate spill space on
6567         stack for args for main and other routines.  Zero out args for
6568         main.
6569
6570         * libc/sys/sysnecv850/v850.ld:  New.  Linker script to layout memory
6571         correctly.
6572
6573 Tue Oct 15 11:51:42 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
6574
6575         * libc/stdio/findfp.c (std): Remove extraneous ';' after
6576         function.
6577
6578         * libc/sys/d10v/sys/syscall.h (SYS_kill): Add.
6579
6580         * libc/sys/d10v/{syscalls.c,trap.S} (_kill,_getpid): Make these
6581         real system calls now.
6582
6583         * libc/stdio/setvbuf (setvbuf): Cast pointers to _POINTER_INT
6584         before casting them to int.
6585         * libc/stdio/tmpnam.c (_tempnam_r): Ditto.
6586
6587         * libc/stdlib/mallocr.c (_morecore_r): Use _POINTER_INT when
6588         aligning pointer.
6589         * libc/string/memset.c (memset): Ditto.
6590         
6591         * libc/stdio/vfscanf.c (__svfscanf): When converting to pointer,
6592         first convert ints to _POINTER_INT to eliminate GCC warning.
6593
6594         * libc/stdio/vfprintf.c (_vfprintf_r): Use _POINTER_INT when
6595         processing %p.
6596
6597         * libm/math/ef_scalb.c (__ieee754_scalbf): Cut down range to 32000
6598         from 65000 if ints are only 16 bits.
6599
6600         * libm/math/sf_scalbn.c (scalbnf): Cut down overflow test to 30000
6601         from 50000 if ints are only 16 bits.
6602
6603         * libc/include/sys/config.h (_POINTER_INT): New macro, to give an
6604         int type that is the same size as a pointer.
6605
6606         * libc/misc/dprintf.c (__dprintf): Use _POINTER_INT when
6607         processing %p.
6608         (get_number): Explicitly cast number to long before shifting by 16
6609         or 24, in case ints are short.
6610
6611         * libc/include/sys/config.h (_POINTER_INT): Define as short.
6612
6613 Wed Oct  9 16:54:32 1996  Jeremy Allison <jra@cygnus.com>
6614
6615         * libc/string.h: Added ffs, removed swab.
6616         * libc/sys/errno.h: Added EOPNOTSUPP.
6617         * libc/sys/unistd.h: Added swab.
6618
6619 Thu Oct  3 17:08:50 1996  Jeremy Allison <jra@cygnus.com>
6620
6621         * libc/include/sys/stat.h: Added fchmod.
6622         * libc/include/sys/unistd.h: Added fsync.
6623
6624 Tue Oct  1 17:34:08 1996  Jeremy Allison <jra@cygnus.com>
6625
6626         * libc/include/sys/errno.h: Added defines for EPFNOSUPPORT (96)
6627         and ECONNRESET (104) for cygwin32.
6628
6629 Tue Oct  1 16:24:05 1996  Gavin Koch  <gavin@cygnus.com>
6630
6631         * libc/sys/sysnecv850/_exit.c: added _do_dtors to
6632         do the static destructors.
6633         
6634 Mon Sep 30 15:59:05 1996  Stu Grossman  (grossman@critters.cygnus.com)
6635
6636         * libc/sys/sysnecv850/trap.S:  Change I/O to use trap 31.
6637
6638 Mon Sep 30 12:02:50 1996  Doug Evans  <dje@canuck.cygnus.com>
6639
6640         * libc/machine/m32r/{Makefile.in,setjmp.S}: New files.
6641         * configure.in: Recognize m32r-*-*.
6642
6643 Mon Sep 30 00:34:41 1996  James G. Smith  <jsmith@cygnus.co.uk>
6644
6645         * libc/sys/arm/trap.S (__rt_stkovf_split_big,
6646         __rt_stkovf_split_small): Added default software stack overflow
6647         handlers, which just call SWI_Exit.
6648         * libc/sys/arm/crt0.S (_mainCRTStartup): Simple software stack
6649         limit initialisation.
6650
6651 Fri Sep 27 13:08:03 1996  Mark Alexander  <marka@cygnus.com>
6652
6653         * libc/sys/d10v/{trap.S,sys/syscall.h}: Add time() function.
6654
6655 Fri Sep 27 12:32:00 1996  Jeremy Allison <jra@cygnus.com>
6656
6657         * libc/include/sys/types.h: Added ssize_t definition.
6658         
6659 Wed Sep 25 14:52:18 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
6660
6661         * libc/machine/d10v/setjmp.S: Use ';' for comments.
6662         * libc/sys/d10v/{crt0.S,trap.S}: Ditto.
6663
6664         * libc/machine/d10v/setjmp.S (longjmp): Use exef0t || instead of
6665         branch around a single ldi instruction.
6666
6667         * libc/sys/d10v/crt0.S (_start): Use auto-increment to zero bss.
6668         Call exit, instead of just issuing a stop instruction.
6669
6670 Sun Sep 22 17:26:55 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
6671
6672         * libc/sys/d10v/{trap.S,syscalls.c}: Add -mint32 support.
6673
6674 Fri Sep 20 13:23:12 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
6675
6676         * libc/stdlib/mprec.h: Explicitly declare all large constants as
6677         longs, and then cast them to __uint32_t.
6678
6679         * libc/include/sys/config.h: Protect against multiple inclusions.
6680
6681 Tue Sep 17 13:10:33 1996  Mark Alexander  <marka@cygnus.com>
6682
6683         * configure.in (d10v*): Set syscall_dir.
6684
6685 Sun Sep 15 10:41:59 1996  Mark Alexander  <marka@cygnus.com>
6686
6687         * libc/sys/d10v/crt0.S: Set stack pointer.
6688
6689 Thu Sep 12 13:02:38 1996  Mark Alexander  <marka@cygnus.com>
6690
6691         * libc/sys/d10v/{trap.S, syscalls.c}: Rewrite most system calls
6692         in assembly for efficiency.  Change calling convention to allow
6693         long ints to be returned.
6694
6695 Wed Sep 11 10:28:18 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
6696
6697         * libc/machine/v850/Makefile.in (setjmp.o): Fix dependency.
6698
6699 Thu Sep  5 19:23:06 1996  Doug Evans  <dje@canuck.cygnus.com>
6700
6701         * libc/posix/execvp.c (execvp): Don't search PATH if file has '/'.
6702         Handle empty entries in $PATH.
6703
6704 Tue Sep 03 18:15:02 1996  Mark Alexander  <marka@cygnus.com>
6705
6706         * libc/machine/d10v/setjmp.S: Make it really work.
6707
6708 Tue Sep  3 12:16:26 1996  Ian Lance Taylor  <ian@cygnus.com>
6709
6710         * libc/sys/sh/crt0.S: If __ELF__, use ELF section attributes for
6711         the .stack section.
6712
6713 Tue Sep  3 10:08:45 1996  Jeffrey A Law  (law@cygnus.com)
6714
6715         * sys/sysnecv850/sys/file.h: Remove.
6716         * sys/sysnecv850/sys/syscall.h: New file.
6717         * sys/sysnecv850/{misc.c,syscalls.c,malloc.c}: Deleted.
6718         * sys/sysnecv850/{chmod.c, chown.c, close.c, creat.c} New files.
6719         * sys/sysnecv850/{execv.c, execve.c, fork.c, fstat.c} New files.
6720         * sys/sysnecv850/{getpid.c, isatty.c, kill.c, lseek.c} New files.
6721         * sys/sysnecv850/{open.c, pipe.c, raise.c, read.c} New files.
6722         * sys/sysnecv850/{stat.c, unlink.c, utime.c, wait.c} New files.
6723         * sys/sysnec850/trap.S: New file.
6724         * sys/sysnecv850/{_exit.c, write.c}: Use new TRAP0 mechanism for
6725         syscalls.
6726         * sys/sysnecv850/crt0.S: Use cmp/bl, not tst/bz.
6727         * sys/sysnec850/sbrk.c: New version.
6728
6729 Sun Sep  1 20:08:27 1996  Jeffrey A Law  (law@cygnus.com)
6730
6731         * sys/sysnecv850/crt0.S: Fix order of comparison args.  Loop
6732         as long as r6 is less than r7.
6733
6734 Sun Sep  1 13:54:19 1996  Ian Lance Taylor  <ian@cygnus.com>
6735
6736         * Makefile.in (mostlyclean): Separate from clean target.  Don't
6737         remove *.a or targ-include.
6738         * libc/machine/sparc/Makefile.in (mostlyclean): New target.
6739
6740 Sun Sep  1 11:35:26 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
6741
6742         * libc/include/machine/ieeefp.h (_DOUBLE_IS_32BITS): Define for
6743         d10v.
6744         (__SMALL_BITFIELDS): Ditto.
6745
6746         * libc/include/sys/config.h (_DOUBLE_IS_32BITS): Define for d10v.
6747
6748 Sat Aug 31 16:42:36 1996  Jeffrey A Law  (law@cygnus.com)
6749
6750         * libc/sys/sysnecv850/misc.c (raise, getpid, kill): Remove '_'
6751         prefix.
6752
6753         * libc/sys/sysnecv850/sbrk.c (sbrk): Remove '_' prefix.
6754         * libc/sys/sysnecv850/syscalls.c (read, lseek, close): Likewise.
6755         * libc/sys/sysnecv850/syscalls.c (fstat, open, close): Likewise.
6756         * libc/sys/sysnecv850/write.c (write): Likewise.
6757
6758         * libc/sys/sysnecv850/crt0.S: Don't try to zero out an empty
6759         .bss.
6760
6761 Fri Aug 30 11:18:45 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
6762
6763         * libc/include/sys/config.h: Define INT_MAX, UINT_MAX
6764         appropriately for D10V, depending on -mint16/-mint32.
6765
6766 Thu Aug 29 16:09:37 1996  Mark Alexander  <marka@cygnus.com>
6767
6768         * configure.in: Add cases for D10V.
6769
6770 Thu Aug 29 17:03:23 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
6771
6772         * configure.in (i[345]86-*-*): Recognize i686 for pentium pro.
6773
6774 Wed Aug 28 21:05:52 1996  Jeffrey A Law  (law@cygnus.com)
6775
6776         * libc/include/machine/ieeefp.h: Fix typo.
6777
6778 Wed Aug 28 19:47:55 1996  Mark Alexander  <marka@cygnus.com>
6779
6780         * libc/sys/d10v: New directory for D10V stuff.
6781         * libc/include/machine/ieeefp.h: Add D10V defines.
6782
6783 Mon Aug 26 13:34:58 1996  Doug Evans  <dje@canuck.cygnus.com>
6784
6785         * libc/include/sys/errno.h: Add winsup/include/sys/errno.h values:
6786         ELOOP, ENOBUFS, EAFNOSUPPORT, EPROTOTYPE, ENOTSOCK, ENOPROTOOPT,
6787         ESHUTDOWN, ECONNREFUSED, EADDRINUSE, ECONNABORTED, EWOULDBLOCK.
6788         * libc/string/strerror.c (strerror): Add them.
6789
6790 Thu Aug 22 16:38:19 1996  Jeffrey A Law  (law@cygnus.com)
6791
6792         * libc/sys/sysnecv850: New directory for v850 stuff.
6793
6794         * libc/machine/v850: New directory for v850 stuff.
6795         * libc/machine/v850/setjmp.S: setjmp/longjmp support.
6796
6797         * configure.in: Add support for the v850.
6798
6799         * libc/include/machine/ieeefp.h: Add v850 defines.
6800         * libc/include/machine/setjmp.h: Likewise.
6801         * libc/include/sys/config.h: Add v850 defines.
6802
6803 Sat Aug 17 04:06:36 1996  Geoffrey Noer  <noer@cygnus.com>
6804
6805         * libc/include/machine/ieeefp.h
6806         * libc/include/machine/setjmp.h
6807         * libc/include/sys/fcntl.h
6808         * libc/include/sys/signal.h
6809         * libc/include/sys/types.h
6810         * libc/stdlib/system.c:
6811         Fix preprocessor defines to match new scheme (_WIN32 for WIN32
6812         API availability, __CYGWIN32__ for cygwin32 environment specific).
6813
6814 Thu Aug 15 17:09:21 1996  Geoffrey Noer  <noer@cygnus.com>
6815
6816         * libc/include/stdlib.h: add multibyte character functions.  Add
6817         __eprintf for assert.
6818
6819 Thu Aug 15 11:15:40 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
6820
6821         * libc/stdlib/malloc.h (MALLOC_ALIGNMENT): Use either pointer
6822         arithmetic or __alignof__ to properly get the alignment, instead
6823         of hardwiring it to 4.
6824
6825 Wed Aug 14 23:43:28 1996  Geoffrey Noer  <noer@cygnus.com>
6826
6827         * libc/stdio/fseek.c: add fflush call to adjust seek offset
6828         on append stream (fix from NetBSD sources), adjust curoff offset
6829         for ungetc's benefit.
6830         * libc/stdio/ftell.c: adjust curoff offset for ungetc's benefit.
6831         * libc/stdio/rewind.c: replace code with up to date NetBSD
6832         code to undo hacks made to work around above problem of not
6833         having fflush call mentioned above
6834
6835 Fri Aug  2 18:28:07 1996  J.T. Conklin  <jtc@rtl.cygnus.com>
6836
6837         * libc/reent/{closer.c, execr.c, fstatr.c, linkr.c, lseekr.c,
6838         openr.c, readr.c, sbrkr.c, signalr.c, statr.c, timer.c, writer.c}:
6839         Partially revert last changes.  The thread specific errno is set
6840         iff if the underlying syscall fails and the global errno is not
6841         zero.
6842
6843 Fri Jul 19 11:41:52 1996  J.T. Conklin  <jtc@rtl.cygnus.com>
6844
6845         * libc/reent/filer.c: Removed files, all functions have split out
6846         into their own files.
6847         * libc/reent/{closer.c, lseekr.c, openr.c, readr.c, writer.c}: 
6848         New files containing functions formally in filer.c
6849         * libc/reent/Makefile.in: Updated for above change.
6850
6851         * libc/reent/execr.c (_fork_r, _wait_r): Set errno if underlying
6852         syscall fails, not if errno is changed.
6853         * libc/reent/filer.c (_open_r, _close_r, _lseek_r, _read_r, 
6854         _write_r): Likewise.
6855         * libc/reent/fstatr.c (_fstat_r): Likewise.
6856         * libc/reent/linkr.c (_link_r, _unlink_r): Likewise.
6857         * libc/reent/sbrkr.c (_sbrk_r): Likewise.
6858         * libc/reent/signalr.c (_kill_r): Likewise.
6859         * libc/reent/statr.c (_stat_r): Likewise.
6860         * libc/reent/timer.c (_gettimeofday_r): Likewise.
6861
6862         * libc/reent/{execr.c, filer.c, fstatr.c, linkr.c, sbrkr.c,
6863         signalr.c, statr.c, timer.c} (errno): declare extern rather
6864         than as a common.
6865
6866         * libc/stdio/vfprintf.c (__sbprintf): Use the VFPRINTF macro
6867         instead of calling vfprintf so that i*printf will not require
6868         floating point support code.
6869         
6870 Mon Jul 15 16:50:59 1996  Doug Evans  <dje@canuck.cygnus.com>
6871
6872         * libc/posix/execvp.c (execvp): Use posix_path_list_p to determine
6873         path delimiter.
6874         * libc/include/sys/unistd.h (_SC_PATH_RULES): Delete.
6875         (_PATH_RULES_{UNKNOWN,WIN32,POSIX}): Delete.
6876
6877 Thu Jul 11 14:34:14 1996  Geoffrey Noer  <noer@cygnus.com>
6878
6879         * libc/include/signal.h: _sig_func_ptr function takes an int
6880         * libc/include/sys/signal.h: sa_handler function takes an int
6881
6882 Tue Jul  9 21:22:32 1996  Jeffrey A Law  (law@cygnus.com)
6883
6884         * libc/include/machine/ieeefp.h: Simplify H8/S support.
6885         * libc/include/sys/config.h: Add missing H8/S conditional.
6886
6887 Sun Jun 30 12:05:46 1996  Doug Evans  <dje@canuck.cygnus.com>
6888
6889         * libc/include/sys/unistd.h (MAXPATHLEN): Add cygwin32 value.
6890
6891 Wed Jun 26 09:57:54 1996  Jeffrey A Law  (law@cygnus.com)
6892
6893         * libc/include/machine/setjmp.h: Handle H8/S.
6894         * libc/include/machine/ieeefp.h: Likewise.
6895         * libc/include/sys/config.h: Likewise.
6896         * libc/machine/h8300/{defines.h, memcpy.S, memset.S}: Likewise.
6897         * libc/machine/h8300/{reg_memcpy.S, reg_memset.S}: Likewise.
6898         * libc/machine/h8300/{strcmp.S, setjmp.S}: Likewise.
6899         * libc/sys/h8300hms/crt0.S: Likewise.
6900
6901 Tue Jun 25 23:15:45 1996  Jason Molenda  (crash@godzilla.cygnus.co.jp)
6902
6903         * Makefile.in (datadir): Set to $(prefix)/share.
6904         (oldincludedir, docdir): Removed.
6905         * doc/Makefile.in (datadir): Set to $(prefix)/share.
6906         (oldincludedir, docdir): Removed.
6907         * libc/Makefile.in (datadir): Set to $(prefix)/share.
6908         (oldincludedir, docdir): Removed.
6909         * libm/Makefile.in (datadir): Set to $(prefix)/share.
6910         (oldincludedir, docdir): Removed.
6911
6912 Fri Jun 21 19:24:41 1996  Ian Lance Taylor  <ian@cygnus.com>
6913
6914         * libc/include/sys/reent.h (_REENT_INIT): Update for change to
6915         _reent struct.
6916
6917 Wed Jun 19 14:00:09 1996  Doug Evans  <dje@canuck.cygnus.com>
6918
6919         * libc/posix/execvp.c: Delete _WIN32 support.  For __CYGWIN32__
6920         fetch current path rules with sysconf and handler posix/win32
6921         appropriately.
6922
6923         * libc/include/sys/unistd.h (_PATH_RULES{,_POSIX,_WIN32}): Define.
6924
6925         * libc/include/process.h: Prepend '_' to P_{WAIT,NOWAIT,OVERLAY}.
6926         (WAIT_CHILD): Always define.
6927
6928 Sat Jun 15 17:50:42 1996  Ian Lance Taylor  <ian@cygnus.com>
6929
6930         * libc/stdlib/eprintf.c: New file.
6931         * libc/stdlib/Makefile.in (OFILES): Add eprintf.o.
6932         (eprintf.o): New target.
6933
6934 Thu Jun 13 16:44:32 1996  Doug Evans  <dje@canuck.cygnus.com>
6935
6936         * libc/sys/cygwin32/crt0.c (__cygwin_crt0_bp): New global.
6937         (mainCRTStartup): Do int3 if __cygwin_crt0_bp non-zero.
6938
6939 Thu Jun 13 17:45:17 1996  Mike Meissner  <meissner@rtl.cygnus.com>
6940
6941         * libc/include/machine/ieeefp.h: Add support for AIX and Windows
6942         NT in PowerPC endianess cases.
6943
6944 Tue Jun 11 12:26:28 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
6945
6946         * libc/include/machine/ieeefp.h: Clean up PowerPC endianess.
6947
6948 Thu Jun  6 11:34:20 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
6949
6950         * libc/string/strtok.c: Fix doc typo.
6951
6952 Mon Jun  3 11:30:00 1996  J.T. Conklin  <jtc@rtl.cygnus.com>
6953
6954         * libc/include/sys/reent.h (struct _reent): Removed _asctime,
6955         _next, _scanpoint, _signgam fields.
6956
6957         * libc/include/stdlib.h (rand_r): Added new declaration.
6958         (_rand_r, _srand_r): Removed declarations.
6959         * libc/stdlib/rand.c (_rand_r, _srand_r): Removed, these functions
6960         have been made obsolete by rand_r.
6961         * libc/stdlib/rand_r.c: New file, rand_r function as specified
6962         by POSIX.1c.
6963         
6964         * libc/string/strtok.c: Update documentation to describe
6965         strtok_r().
6966
6967 Sat Jun  1 23:50:39 1996  Michael Meissner  <meissner@cygnus.com>
6968
6969         * libc/include/sys/stat.h (stat structure): Use the expanded stat
6970         structure on Solaris, and PowerPC systems even though __svr4__ is
6971         defined.
6972
6973 Tue May 28 13:02:42 1996  Doug Evans  <dje@canuck.cygnus.com>
6974
6975         * libc/sys/go32/sys/errno.h (ENOSYS,ESPIPE): Keep values <= 255.
6976
6977 Fri May 17 10:34:44 1996  Ian Lance Taylor  <ian@cygnus.com>
6978
6979         * host/any: Use ../.. rather than .. to get to the main build
6980         directory.  This matches the current layout of the build
6981         directory.
6982
6983 Wed May 15 15:52:27 1996  Jeffrey A Law  (law@cygnus.com)
6984
6985         * libc/machine/h8300/__main.S: Delete.  No longer needed.
6986         * libc/machine/h8300/Makefile.in: Corresponding changes.
6987         * libc/sys/h8300hms/crt1.c: New file.
6988         * libc/sys/h8300hms/Makefile.in: Corresponding changes.
6989         * libc/sys/h8300hms/crt0.s: Call __main.
6990
6991         * libc/sys/h8300hms/crt0.S: Use temporary label names
6992         for branch targets.
6993
6994 Mon May 13 14:26:30 1996  Doug Evans  <dje@canuck.cygnus.com>
6995
6996         * libc/stdio/fopen.c (_fopen_r): Fix arguments to fseek.
6997
6998 Fri May  3 16:38:23 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
6999
7000         * libc/reent/impure.c (_impure_ptr): Force the impure pointer into
7001         .sdata on the PowerPC so that we can link newlib with code
7002         compiled with -msdata.
7003
7004 Mon Apr 29 21:38:02 1996  Doug Evans  <dje@canuck.cygnus.com>
7005
7006         * libc/sys/arm/syscalls.c (_sbrk): Rename end to __end__.
7007
7008 Thu Apr 25 06:38:59 1996  Michael Meissner  <meissner@cygnus.com>
7009
7010         * libc/sys/cygwin32/crt0.c (mainCRTStartup): On PowerPC, set the
7011         exception handler to __cygwin_exception_handler.
7012
7013 Tue Apr 23 15:14:20 1996  Ian Lance Taylor  <ian@cygnus.com>
7014
7015         * libc/include/machine/setjmp.h: Check _AM29K, not ___AM29K__.
7016
7017 Sun Apr 21 12:11:51 1996  Doug Evans  <dje@blues.cygnus.com>
7018
7019         * libm/math/Makefile.in ({w,wf}_cabs.o,{w,wf}_drem.o): Add rule for
7020         SunOS VPATH.
7021         * libc/stdlib/Makefile.in (atoff.o,atol.o,mblen.o,mbstowcs.o,
7022         wcstombs.o): Likewise.
7023
7024 Thu Apr 18 12:37:01 1996  Doug Evans  <dje@canuck.cygnus.com>
7025
7026         * libc/stdlib/environ.c (initial_env): New static local.
7027         (environ): Point to `initial_env'.
7028
7029         * libc/include/machine/setjmp.h: Clean up.
7030         (__H8300H__,__PPC__): Define _JBTYPE.
7031         (__arm__): Provide entry for.
7032         (sigjmp_buf): Delete.
7033         (jmp_buf): Use _JBTYPE if defined, otherwise int.
7034
7035 Thu Apr 18 12:10:52 1996  Jeffrey A Law  (law@cygnus.com)
7036
7037         * libc/machine/h8300/strcmp.S: Sign extend the result to
7038         32bits so we don't lose with -mint32.
7039
7040 Sun Apr 14 19:59:52 1996  Doug Evans  <dje@canuck.cygnus.com>
7041
7042         * libc/sys/go32/sys/errno.h: New file.
7043         * libc/sys/go32/Makefile.in (stat.o): Depend on stat.c.
7044         * libc/sys/go32/gerrno.s (syscall_error): Call __errno to get
7045         errno's address (make compatible with rest of newlib).
7046         * libc/sys/go32/stat.c (fixinode): Set errno upon failure.
7047         * libc/string/strerror.c (strerror): Surround each case with #ifdef.
7048
7049 Thu Mar 28 13:44:42 1996  Doug Evans  <dje@canuck.cygnus.com>
7050
7051         * libc/machine/sparc/{scan.c,shuffle.c}: New files.
7052         * libc/machine/sparc/Makefile.in: Build them.
7053         * libc/machine/sparc/machine/sparclet.h: New file.
7054
7055 Mon Mar 25 15:29:14 1996  J.T. Conklin  <jtc@rtl.cygnus.com>
7056
7057         * libc/machine/sh/asm.h: New file.
7058         * libc/machine/sh/setjmp.S: Only save clobbered registers.  Added
7059         support for SH3e's FP registers.  Use asm.h.
7060
7061 Mon Mar 25 11:59:23 1996  Jeffrey A Law  (law@cygnus.com)
7062
7063         * libc/stdio/vfprintf.c (cvt): Accept a reent structure
7064         as first argument.  Call _dtoa_r and pass the reent structure
7065         instead of calling __dtoa.
7066
7067 Fri Mar 22 13:59:37 1996  Jeffrey A Law  (law@cygnus.com)
7068
7069         * libc/include/sys/config.h: Define DOUBLE_IS_32BITS for
7070         the h8300, h8500, and others.  Add comments for some rather
7071         dubious code.
7072
7073 Thu Mar 14 18:04:43 1996  Ian Lance Taylor  <ian@cygnus.com>
7074
7075         * Makefile.in (check): Check that testsuite exists before cd.
7076
7077 Tue Mar 12 11:46:47 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
7078
7079         * libc/include/string.h (strsep): Correct prototype.
7080
7081 Mon Mar 11 09:55:19 1996  Doug Evans  <dje@charmed.cygnus.com>
7082
7083         * libc/sys/h8300/_exit.c (_exit,__exit): Set r0 to 0 before `sleep'.
7084         * libc/sys/h8300/misc.c (_kill): Set r0 to indicate abort and `sleep'.
7085         * libc/sys/h8300/crt0.S (_start): Call exit instead of `sleep'.
7086
7087 Wed Mar  6 11:51:55 1996  Doug Evans  <dje@charmed.cygnus.com>
7088
7089         * libc/posix/{creat.c,isatty.c}: New files.
7090         * libc/posix/Makefile.in (OFILES): Add creat.o, isatty.o.
7091
7092         * libc/sys/sparc64/crt0.S (environ): Delete.
7093         (.LHaveBias): Renamed from HaveBias.
7094
7095 Thu Feb 15 10:48:37 1996  Doug Evans  <dje@charmed.cygnus.com>
7096
7097         * libc/stdlib/mallocr.c (etext): Move decl inside ifdef WARN_VLIMIT.
7098         (_morecore_r): Delete SBRK_IS_ALLOC support.
7099
7100 Tue Feb 13 09:44:09 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
7101
7102         * libc/sys/cygwin32/Makefile.in (lib.a): Make lib.a with a dummy
7103         module rather than touch, so we don't get warning messages when
7104         all of the libraries are combined into libc.a.
7105
7106 Tue Feb 13 06:32:07 1996  Doug Evans  <dje@charmed.cygnus.com>
7107
7108         * libc/sys/sparclite/{Makefile.in,crt0.s}: Deleted.
7109         crt0.s replaced by version in libgloss.
7110
7111 Mon Feb  5 15:17:51 1996  J.T. Conklin  <jtc@rtl.cygnus.com>
7112
7113         * libc/reent/Makefile.in (OFILES): Add impure.o.
7114         * libc/reent/impure.o: New file, define initial reentrancy struct.
7115         * libc/reent/reent.c: Remove above definition.
7116
7117         * libm/math/sf_asinh.c: Fix typo.
7118
7119         * Makefile.in (MATHOBJS_IN_LIBC): Removed sr_ldexp.o and
7120         srf_ldexp.o.
7121         
7122         * libm/libm.texinfo: Change documentation to reflect changes
7123         in reentrancy model.
7124         * libm/math/w_gamma.c: Likewise.
7125
7126 Wed Jan 31 18:49:45 1996  Steve Chamberlain  <sac@slash.cygnus.com>
7127
7128         * configure.in (*-*-cygwin32): New.
7129         (*-*-win32): Deleted.
7130         * libc/sys/win32 renamed libc/sys/cygwin32.
7131
7132 Tue Jan 30 22:09:03 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
7133
7134         * libc/include/sys/file.h: New include file.
7135
7136 Fri Jan 26 15:52:54 1996  Steve Chamberlain  <sac@slash.cygnus.com>
7137
7138         * libc/include/machine/setjmp.h: Increase size of PPC jmp_buf.
7139
7140 Tue Jan 23 17:49:16 1996  Steve Chamberlain  <sac@slash.cygnus.com>
7141
7142         * libc/include/sys/wait.h (WIFSIGNALED): Fix.
7143
7144 Tue Jan 16 09:28:10 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
7145
7146         * doc/makedoc.c (realloc): Declare at file scope.
7147         (catchar): Not here.
7148
7149 Wed Dec 27 15:45:23 1995  Doug Evans  <dje@canuck.cygnus.com>
7150
7151         * Makefile.in (VERSION): Update to 1.7.0.
7152         * {libc,libm}/Makefile.in (VERSION): Likewise.
7153         * configure.in: Minor clean up of multilib stuff.
7154
7155         From David Johnson <davidj@ICSI.Berkeley.EDU>
7156         * {libc,libm}/Makefile.in (lib[cm].a): Delete library first.
7157
7158         * libc/stdlib/environ.c: New file.
7159         * libc/stdlib/Makefile.in (OFILES): Build it.
7160         * libc/sys/h8500hms/crt0.c (environ): Deleted.
7161         * libc/sys/m88kbug/crt0.c (environ): Deleted.
7162         * libc/sys/z8ksim/crt0.c (environ): Deleted.
7163         * libc/sys/netware/environ.c: Deleted.
7164
7165 Tue Dec 19 15:24:46 1995  Kim Knuttila  <krk@cygnus.com>
7166
7167         * configure.in (links): set sys_dir, posix_dir, syscall_dir
7168
7169 Wed Dec 13 04:16:25 1995  Michael Meissner  <meissner@wogglebug.tiac.net>
7170
7171         * doc/makedoc.c (init_string_with_size,nextword): Move malloc
7172         declaration out to external scope and declare it PTR, not char *.
7173
7174 Mon Dec 11 17:35:12 1995  steve chamberlain  <sac@slash.cygnus.com>
7175
7176         * libc/include/sys/unistd.h (getpagesize): New declaration.
7177         (_SC_PAGESIZE): New definition.
7178         * libc/include/time.h (CLK_TCK): Defined as CLOCKS_PER_SEC.
7179         * libc/configure.in (i[345]86-*-win32): Remove -DNO_FORK.
7180
7181 Fri Dec  1 16:48:46 1995  James G. Smith  <jsmith@cygnus.co.uk>
7182
7183         * libc/sys/vr4300/syscalls.c (sbrk): Fixed memory
7184         addressing. System call returns size, not (last address + 1).
7185
7186 Thu Nov 30 15:05:26 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
7187
7188         * libm/math/*.c: Removed _foo_r() reentrancy API.
7189         * libc/include/math.h: Removed _foo_r prototypes and macros.
7190
7191         * libm/math/*.c: On systems with IEEE single precision "doubles" 
7192         move foo() -> foof() wrapper code from the files that implement
7193         the standard IEEE double precision functions to the files that 
7194         implement IEEE single precision functions. (ie. On those systems
7195         sin is moved from s_sin.c to sf_sin.c).  There should eventually
7196         be use of a C extension (like gcc's alias attribute) so that the
7197         wrappers are not needed at all.
7198
7199         * libc/sys/sysnec810/sbrk.c: Cast &end to char * to get around
7200         strict NEC V810 compiler.
7201         * libc/misc/dprintf.c (getnumber): Cast char * to unsigned char *
7202         for same reason.
7203
7204 Wed Nov 29 14:25:05 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
7205
7206         * libc/stdlib/strtol.c (_strtol_r): Replaced with implementation
7207         from NetBSD C library.
7208         * libc/stdlib/strtoul.c (_strtoul_r): Likewise.
7209
7210         * libc/stdlib/assert.c (__assert): Renamed from __assertfail 
7211         and adapted from implementation I wrote for NetBSD C library.
7212         The difference is __assert doesn't take a format argument,
7213         so that there won't be multiple copies of the same string
7214         constant in the executable if assertions are enabled in
7215         more than one source module.
7216         * libc/include/assert.h (assert): Changed to call __assert.
7217
7218 Tue Nov 28 16:54:26 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
7219
7220         * libc/stdlib/strtod.c (_strtod_r): Changed to not assign to
7221         word1 on systems with 32 bit doubles.
7222         * libc/stdlib/qsort.c (qsort): Cast some void *'s to char *'s
7223         so that we can do arithmetic on them.
7224         * libc/misc/dprintf.c: Changed to support stdarg.h for ANSI
7225         compilers.
7226         
7227 Tue Nov 28 16:03:32 1995  Doug Evans  <dje@canuck.cygnus.com>
7228
7229         * libc/sys/arm/crt0.S: Zero bss.
7230
7231 Fri Nov 24 16:09:23 1995  Doug Evans  <dje@deneb.cygnus.com>
7232
7233         * libc/include/unctrl.h: New file.
7234         * libc/misc/{Makefile.in,dprintf.c,unctrl.c,misc.tex}: New files.
7235         * configure.in (subdirs): Add libc/misc.
7236         * libc/Makefile.in (SUBDIRS): Add misc.
7237         (SUBLIBS): Add misc/lib.a.
7238
7239         * libc/include/sys/reent.h (struct _reent): Make __sf last member.
7240
7241 Wed Nov 22 19:49:47 1995  Doug Evans  <dje@deneb.cygnus.com>
7242
7243         * libc/stdio/vfprintf.c (__sbprintf): Init fake._data.
7244         (_vfprintf_r): Call CHECK_INIT.
7245
7246 Tue Nov 14 02:52:12 1995  Doug Evans  <dje@canuck.cygnus.com>
7247
7248         * Makefile.in (MULTITOP): Delete.
7249         (MULTISRCTOP, MULTIBUILDTOP): Add.
7250         * configure.in: Delete call to cfg-ml-com.in.  Call config-ml.in
7251         instead of cfg-ml-pos.in.
7252
7253 Wed Nov  8 01:24:08 1995  James G. Smith  <jsmith@pasanda.cygnus.co.uk>
7254
7255         * libc/sys/vr4300/syscalls.c: Added clean version of sbrk().
7256         * libc/sys/vr4300/crt0.S: Cleaned up. Added check for FPU
7257         presence.
7258
7259 Thu Nov  2 22:25:06 1995  Michael Meissner  <meissner@tiktok.cygnus.com>
7260
7261         * libc/string/strtok.c: Include string.h to pick up strtok_r
7262         prototype.
7263
7264 Wed Nov  1 18:54:11 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
7265
7266         * libc/string/strtok.c: include <_ansi.h>.
7267         * libc/time/asctime_r.c: `reresult' -> `result'.
7268
7269 Wed Nov  1 14:35:52 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
7270
7271         * libc/time/{ctime.c, gmtime.c, lcltime.c}: Wrap functions
7272         in #ifndef _REENT_ONLY ... #endif conditional.
7273
7274         * libc/include/string.h (_strtok_r): Remove declaration.
7275         * libc/include/time.h (_asctime_r): Remove declaration.
7276         * libc/string/strtok.c (_strtok_r): Removed.
7277         * libc/time/asctime.c (_asctime_r): Removed.
7278
7279         * libc/string/Makefile.in (OFILES): Add new object.
7280         * libc/string/strtok_r.c: New file.  strtok_r function as
7281         specified by POSIX.1c, adapted from strtok implementation 
7282         from NetBSD C library.
7283         * libc/string/strtok.c (strtok): Reimplemented in terms of 
7284         strtok_r.
7285
7286         * libc/time/Makefile.in (OFILES): Add new objects.
7287         * libc/time/{asctime_r.c, ctime_r.c, gmtime_r.c, lcltime_r.c}:
7288         New files, reentrant time functions specified by POSIX.1c.
7289         * libc/time/{asctime.c, ctime.c, gmtime.c, lcltime.c}: Non-
7290         reentrant time functions re-written in terms of reentrant 
7291         functions.
7292         * libc/time/lcltime.c: Renamed from localtime.c
7293
7294         * libc/include/time.h: Add prototypes for asctime_r, ctime_r,
7295         gmtime_r, and localtime_r.
7296
7297 Sat Oct 28 14:34:31 1995  steve chamberlain  <sac@slash.cygnus.com>
7298
7299         * libc/sys/win32/crt0.c (mainCRTStartup): Call cygwin_crt0.
7300         * libc/include/sys/unistd.h (getlogin): Revert change of
7301         Oct 19.
7302         * libc/include/sys/signal.h (sigprocmask): Change prototype
7303         so it compiles with c++.
7304
7305 Wed Oct 25 15:43:18 1995  Michael Meissner  <meissner@cygnus.com>
7306
7307         * libc/include/machine/setjmp.h (PowerPC _JBLEN): Consider it a
7308         PowerPC if __PPC__ is defined.  Bump jump_buf length to 62 ints,
7309         to give some room in case we need to align the jmp_buf.
7310         
7311         * libc/machine/powerpc/setjmp.S (setjmp, longjmp): Rewrite to use
7312         the new ppc-asm.h include file the compiler provides to specify
7313         function prologue/epilogue.  Eliminate saves of the xer and ctr
7314         registers, which are volatile.  Before starting to save registers,
7315         align to 8 byte boundary.
7316
7317 Mon Oct 23 11:20:51 1995  James G. Smith  <jsmith@pasanda.cygnus.co.uk>
7318
7319         * libc/sys/vr4300/syscalls.c: Added empty kill() function,
7320         referenced by standard libraries.
7321
7322 Thu Oct 19 21:39:47 1995  Fred Fish  <fnf@cygnus.com>
7323         
7324         * libc/unix/Makefile.in, libc/string/Makefile.in,
7325         libc/stdio/Makefile.in, libc/reent/Makefile.in,
7326         libc/posix/Makefile.in:
7327         Remove tabs from otherwise empty line.  Confuses some
7328         older non-GNU versions of "make".
7329
7330 Thu Oct 19 16:32:17 1995  steve chamberlain  <sac@slash.cygnus.com>
7331
7332         * libc/sys/unistd.h (getlogin): Returns const char *.
7333
7334 Wed Oct 18 12:57:50 1995  steve chamberlain  <sac@slash.cygnus.com>
7335
7336         * libc/include/fcntl.h (O_BINARY, O_TEXT): New.
7337         * libc/include/errno.h: Moved into and include...
7338         * libc/include/sys/errno.h: New file.
7339         * libc/include/sys/wait.h: New file.
7340         * libc/stdio/rename.c (_rename_r): Use _rename system call if available.
7341         * libc/sys/win32/*: Moved out.
7342         * libc/sys/win32/crt0.c: Rewritten to cope with shared library.
7343         * configure.in (i[345]86-*-win32): HAVE_RENAME
7344
7345 Wed Oct 18 09:58:27 1995  Brendan Kehoe  <brendan@lisa.cygnus.com>
7346
7347         * libc/unix/sigset.c (sigemptyset, sigaddset): Prefix #undef to
7348         avoid macro expansion for these two names.
7349
7350 Tue Oct 17 08:45:33 1995  Doug Evans  <dje@canuck.cygnus.com>
7351
7352         * libc/machine/h8500/psi.S: r6 renamed to fp.
7353
7354 Sun Oct 15 12:58:10 1995  Michael Meissner  <meissner@wogglebug.tiac.net>
7355
7356         * configure.in (powerpc*): No longer need to define
7357         NO_LONGLONG_POINTERS to supress warnings.
7358
7359 Sat Oct 14 12:55:08 1995  Jim Wilson  <wilson@chestnut.cygnus.com>
7360
7361         * libc/reent/reent.c (_reclaim_reent): Call cleanup indirectly
7362         through PTR instead of directly.
7363
7364         * libc/sys/sh/crt0.S: Clean up formatting.  Delete unused
7365         non-standard constructor support.
7366
7367 Thu Oct 12 11:39:42 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
7368
7369         * libc/stdlib/dtoa.c (_dtoa_r): Set result pointer to the
7370         address of the Bigint instead of the address of its _x field,
7371         as the size the result buffer was calculated accordingly.  
7372         Fix from Jim Wilson <wilson@chestnut@cygnus.com>.
7373
7374         * libc/stdlib/{div.c, ldiv.c}: Replaced with implementation
7375         from NetBSD C library.  No longer special cases division by 
7376         zero (which needs to be done by the application anyway), but
7377         it doesn't need to call abs() (or labs()) four times either.
7378         
7379         * libc/stdlib/qsort.c: Replaced with implementation from 
7380         NetBSD C library.
7381
7382 Tue Oct 10 14:01:10 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
7383
7384         * libc/stdio/vfprintf.c: Replaced with implementation from
7385         NetBSD C library (which is derived from the 4.4BSD C library).
7386         * libc/stdio/cvt.c: Removed.
7387         * libc/stdio/Makefile: Updated.
7388         
7389 Tue Oct 10 12:15:23 1995  steve chamberlain  <sac@slash.cygnus.com>
7390
7391         * libc/sys/win32/syscalls.c (rename): New.
7392         * libc/sys/win32/include/winkernel.h (MoveFileExA): New.
7393
7394 Fri Oct  6 12:18:43 1995  Jim Wilson  <wilson@chestnut.cygnus.com>
7395
7396         * libc/machine/sh/Makefile.in (setjmp.o): Depend on setjmp.S.
7397         * libc/machine/sh/setjmp.S: Rename from setjmp.s.
7398
7399         * libc/sys/sh/Makefile.in (OFILES, all): Delete setjmp.o.
7400         (setjmp.o): Delete rule to build setjmp.o.
7401         * libc/sys/sh/setjmp.S: Delete file.
7402
7403 Fri Oct  6 11:19:05 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
7404
7405         * libc/stdlib/mprec.c (d2b): Added support for _DOUBLE_IS_32BITS.
7406         * libc/stdlib/mprec.h: Fixed constants used for IEEE single float
7407         format.  Added #defines to map d2b, i2b, low0bits, lshift, mult,
7408         pow5mult and s2b to identifiers with leading underscores.
7409         * libc/stdlib/Makefile.in: Add mprec.h as a dependency to dtoa.o,
7410         ecvtbuf.o, mprec.o and strtod.o.  Sort dependencies.
7411
7412 Thu Oct  5 17:27:30 1995  steve chamberlain  <sac@slash.cygnus.com>
7413
7414         * libc/sys/posix/popen.c (sys/types.h): Include.
7415
7416 Thu Oct  5 16:33:01 1995  Doug Evans  <dje@canuck.cygnus.com>
7417
7418         * libc/sys/win32/syscalls.h (fhandler): New struct.
7419         (__lookup_fhandler, __lookup_fhandler_hook): Declare.
7420         (__fhandler_normal): Declare.
7421         (hinfo): New member op_handlers.
7422         * libc/sys/win32/syscalls.c (__read): Don't validate fd.
7423         (__write): Likewise.
7424         (_read, _write, _open, _close, _lseek): Validate fd here.
7425         Move file type specific stuff to foo_normal.
7426         (read_normal, write_normal, open_normal, close_normal, lseek_normal):
7427         New functions.
7428         (__lookup_fhandler): New function.
7429         (__lookup_fhandler_hook, __fhandler_normal): New variables.
7430
7431         From anders.blomdell@control.lth.se (Anders Blomdell)
7432         * libc/sys/win32/crt0.c (vfork_init): Unset __FD_TABLE__.
7433         Don't touch standard handles.
7434         * libc/sys/win32/spawn.c (_spawn): Use STARTF_USESTDHANDLES.
7435         (_execve): Only create __FD_TABLE__ if necessary.
7436         * libc/sys/win32/include/winkernel.h (STARTF_*): Define.
7437
7438 Thu Oct  5 14:25:14 1995  steve chamberlain  <sac@slash.cygnus.com>
7439
7440         * libc/sys/win32/sys/termios.h (FLUSHO): New.
7441         * libc/sys/win32/include/win*.h: Moved a load of prototypes around.
7442         * libc/sys/win32/pipe.c (_fctnl): Ignore F_SETFL without errors.
7443         * libc/sys/win32/exception.c (ehandler3): set strace when a signal
7444         without a handler is received.
7445         * libc/sys/win32/Makefile.in: Remove --nodelete.
7446         * libc/sys/win32/resouce.c (gettimeofday): New.
7447         * libc/sys/win32/syscalls.c (path_to_real_path): New.
7448         * libc/sys/win32/syscalls.h (include/wincon.h): Don't include.
7449
7450 Wed Oct  4 13:10:35 1995  Doug Evans  <dje@canuck.cygnus.com>
7451
7452         * libc/sys/win32/dirsearch.c (opendir): stat real path name.
7453         Don't append "/*" to search pattern if trailing '/' already there,
7454         append "*".
7455         * libc/sys/win32/spawn.c (_spawn): CreateProcess doesn't seem to
7456         like /'s, convert them to \'s.  Handle //<drive>/ path names.
7457         Add space for quoted \'s in arg string.  Print translated prog name
7458         and original prog name.
7459         (_execve): Handle parent doing exec a teensy bit better.
7460         * libc/sys/win32/syscalls.h (__path_to_real_path): Update prototype.
7461         * libc/sys/win32/syscalls.c (__path_to_real_path): Don't assume
7462         path needs conversion, handle both cases.  Delete `const' from result.
7463         (hash_path_name): New function.
7464         (_open): Call it.
7465         (_stat): Likewise.  Fill in more fields for directories.
7466         * libc/sys/win32/wait.c (_wait): Explicitly pass -1 to waitpid.
7467         (wait_for_any): Fix trace message.
7468         (waitpid): Explicitly test for intpid == 0.
7469
7470         From anders.blomdell@control.lth.se (Anders Blomdell)
7471         * libc/sys/win32/spawn.c (__vfork_get_empty_entry): zero fill result
7472         so `next' is valid.
7473
7474 Sat Sep 30 15:00:15 1995  Jason Molenda  (crash@phyeaux.cygnus.com)
7475
7476         * libc/sys/win32/spawn.c (_spawn): Make quoting rules more
7477         complicated.
7478
7479 Sat Sep 30 10:25:57 1995  Jason Molenda    (crash@phydeaux.cygnus.com)
7480
7481         * libc/include/_ansi.h: set _HAVE_STDC if __STDC__ is defined
7482         at all, not just == 1.
7483         * libm/math/wf_acos.c (acosf): check for _HAVE_STDC, not __STDC__.
7484
7485 Sat Sep 30 04:30:09 1995  Jason Molenda   (crash@phydeaux.cygnus.com)
7486
7487         * libc/sys/win32/include/winbase.h: include <wintypes.h> and <winnt.h>
7488         * libc/sys/win32/include/wintypes.h: include <winnt.h>
7489         * libc/sys/win32/include/winnt.h: avoid multiple inclusion of this
7490         file.
7491
7492 Fri Sep 29 01:49:17 1995  steve chamberlain  <sac@slash.cygnus.com>
7493
7494         * libc/sys/syscalls.c (getcwd): Fix off by one error.
7495
7496         * libc/sys/signal.c (sleep): Fill it in.
7497         * libc/sys/termios.c (tcflush): Use PurgeComm
7498         (tcsetattr): Set some more of the bits.
7499         * libc/sys/include/winkernel.h: Add PurgeComm and Sleep.
7500
7501 Fri Sep 29 04:33:53 1995  Doug Evans  <dje@deneb.cygnus.com>
7502
7503         * libc/sys/arm/crt0.S (fp): Initialize to 0.
7504         Conditionally include .idata$3 stuff ifdef __pe__.
7505
7506 Fri Sep 29 01:49:17 1995  steve chamberlain  <sac@slash.cygnus.com>
7507
7508         * libc/sys/win32/crt0.c (hmap_init): Call __init_hinfo.
7509         * libc/sys/win32/pipe.c (pipe): Ditto.
7510         * libc/sys/win32/syscalls.c (__read):  Use new vtime and vmin fields.
7511         * libc/sys/win32/syscalls.h (hinfo): vtime, vmin are new.
7512         * libc/sys/win32/termios.c (tcsetattr): Init new fields.
7513         (tcgetattr): Contents are new.
7514         * libc/sys/win32/include/winkernel.h (DCB): New.
7515         (GetCommState, SetCommState): New.
7516
7517 Thu Sep 28 16:29:09 1995  Doug Evans  <dje@deneb.cygnus.com>
7518
7519         * libc/sys/arm/crt0.S (_start): Define.
7520
7521 Thu Sep 28 12:26:45 1995  steve chamberlain  <sac@slash.cygnus.com>
7522
7523         * libc/sys/arm/crt0.S: Move stack to top of RAM on PIE board.
7524         * libc/sys/arm/syscalls.c (_read, _write): Use the SWI properly.
7525
7526         * libc/sys/win32/sysconf.c: New
7527         * libc/sys/win32/sys/winadvapi.h: New
7528         * libc/sys/win32/syscalls.h (hinfo): Added timeout_len, w_binary, r_binary.
7529         * libc/sys/win32/crt0.c (hmap_init): Initialize new fields.
7530         * libc/sys/win32/pipe.c (pipe): Ditto.
7531         * libc/sys/win32/signal.c (_raise): New.
7532         (_kill): Moved from spawn.c
7533         * libc/sys/win32/spawn.c (kill): Moved to signal.c
7534         * libc/sys/win32/syscalls.c (__read): Use new fields.
7535         (_open): Ditto.
7536         * libc/sys/win32/termios.c (tcflush, tcsetattr, tcgetattr): Fill in.
7537         * libc/sys/win32/exceptions.c (__stack_trace): Keep going for longer.
7538         * libc/include/sys/unistd.h (rmdir): Takes const path.
7539         * libc/include/sys/stat.h (mkdir): Takes const path.
7540         * libc/include/sys/signal.h (SIGTTOU, SIGTTIN): New for win32.
7541
7542 Thu Sep 28 10:11:27 1995  Doug Evans  <dje@canuck.cygnus.com>
7543
7544         * libc/sys/win32/spawn.c (_spawn): Fix quoting.
7545
7546         Add support for specifying paths as //<drive>/foo/bar.
7547         * libc/sys/win32/syscalls.h (__path_needs_conversion_p): Declare.
7548         (__path_to_real_path): Declare.
7549         (PATH_TO_REAL_PATH): New macro.
7550         * libc/sys/win32/syscalls.c (__win32_pid_to_posix_pid): Minor cleanup.
7551         (__path_needs_conversion_p, __path_to_real_path): New functions.
7552         (_open): Fix test for error return from CreateFileA.
7553         Handle new path syntax.
7554         (_link, mkdir, rmdir, getcwd, chdir, stat): Handle new path syntax.
7555         * libc/sys/win32/dirsearch.c (opendir): Likewise.
7556
7557 Wed Sep 27 16:36:46 1995  steve chamberlain  <sac@slash.cygnus.com>
7558
7559         * libc/sys/win32/include/*.h: Reorganized
7560         * libc/sys/win32/include/WINREADME: New.
7561         * libc/sys/win32/Makefile.in (DLLS): Build version.a.
7562         * libc/sys/win32/*.c: Fix for new include scheme.
7563         * libc/sys/win32/crt0.c (__this_uinfo_buf, __this_uinfo): New.
7564         * libc/sys/win32/getlogin.c (getlogin): Use uinfo.
7565         * libc/sys/win32/passwd.c (*): Fix.
7566         * libc/sys/win32/syscalls.c (get[e|][g|u]id): Use passwd info.
7567         (_stat): Get directory owner and permissions right.
7568         * libc/sys/win32/syscalls.h (uinfo): New.
7569         * libc/sys/win32/version.def: Remove leading underscores.
7570
7571 Tue Sep 26 18:18:47 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
7572
7573         * libc/sys/win32/key.c: include "include/wincon.h".
7574
7575 Tue Sep 26 07:21:48 1995  steve chamberlain  <sac@slash.cygnus.com>
7576
7577         * libc/sys/win32/{key, stubs}.c: New.
7578         * libc/sys/win32/Makefile: Adjust to cope.
7579         * libc/sys/win32/crt0.c (vfork_init_first): Cope with -ve pids.
7580         (environ_init): Change env names to upper case.
7581         * libc/sys/win32/dirsearch.c (readdir): Don't fill in inode number.
7582         * libc/sys/win32/passwd.c (*): Fill in the functions.
7583         * libc/sys/win32/pipe.c (_fcntl): F_GETFL returns O_RDWR.
7584         * libc/sys/win32/spawn.c (_spawn): Cope with -ve pids.
7585         * libc/sys/win32/syscalls.c (__win32_pid_to_posix_pid): New function.
7586         (_open): Initialze hmap->execable_p too.
7587         * libc/sys/win32/syscalls.c (getuid, getgid, geteuid, getegid): Return from macros.
7588         (_fstat): Fill in permissions.
7589         * libc/sys/win32/syscalls.h (hinfo): Add execable_p.
7590
7591 Fri Sep 22 13:47:27 1995  Doug Evans  <dje@canuck.cygnus.com>
7592
7593         * configure.in (cfg-ml-com.in invocation): Use ${with_multilib_top}
7594         if defined.
7595         (cfg-ml-pos.in invocation): Likewise.
7596
7597 Fri Sep 22 11:43:44 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
7598
7599         * Makefile.in (MATHOBJS_IN_LIBC): Added s_isinf.o, sf_isinf.o,
7600         s_isnan.o and sf_isnan.o.
7601
7602 Wed Sep 20 14:50:19 1995  Ian Lance Taylor  <ian@cygnus.com>
7603
7604         * All Makefile.in files: added maintainer-clean target as a
7605         synonym for realclean.
7606
7607 Wed Sep 20 11:02:50 1995  Jeff Law  (law@snake.cs.utah.edu)
7608
7609         * libc/include/machine/setjmp.h: Add hppa support.
7610         * libc/machine/hppa/setjmp.S: New file with setjmp/longjmp
7611         support.
7612         * libc/machine/hppa/Makefile.in: Related changes.
7613
7614 Tue Sep 19 12:09:01 1995  J.T. Conklin  <jtc@blues.cygnus.com>
7615
7616         * configure.in (machine_dir): Don't set for v810-*-*.
7617
7618 Fri Sep 15 20:22:08 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
7619
7620         * libc/sys/win32/crt0.c (passover): Change to handle MKS quoting
7621         conventions correctly.
7622
7623 Thu Sep 14 13:37:22 1995  J.T. Conklin  <jtc@blues.cygnus.com>
7624
7625         * libc/stdio/puts.c: Update documentation of return value to match
7626         ANSI standard.
7627
7628 Thu Sep 14 01:52:37 1995  Doug Evans  <dje@canuck.cygnus.com>
7629
7630         Fix file descriptor inheritance.
7631         * libc/sys/win32/syscalls.h (CHILD_P): Define again.
7632         (NOT_OPEN_FD): Fix.
7633         * libc/sys/win32/spawn.c (vfork0): Only create inheritable handle if
7634         close-on-exec flag not set.  Initialize child's entire fd table.
7635         * libc/sys/win32/syscalls.c (_open): Only create inheritable handle if
7636         CHILD_P.
7637         * libc/sys/win32/pipe.c (pipe): Only create new handle as inheritable
7638         if CHILD_P.  Initialize entire hmap entry.
7639         (dup): Only create new handle as inheritable if CHILD_P.
7640         (dup2): Likewise.  Properly initialize hmap entry.
7641
7642         * libc/sys/win32/spawn.c (_execve): Don't pass _P_SEARCH_PATH to
7643         _spawn.
7644         (_exit): Use CHILD_P.
7645         * libc/sys/win32/syscalls.c (_fstat): Fix call to memset.
7646         (_stat): Likewise.
7647
7648 Mon Sep 11 23:09:39 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
7649
7650         * libc/sys/win32/crt0.c (passover): fix up the state table.
7651         * libc/posix/popen.c: Added.
7652         * libc/posix/Makefile.in: compile popen.c.
7653         
7654 Mon Sep 11 11:43:38 1995  J.T. Conklin  <jtc@cygnus.com>
7655
7656         * libc/include/machine/ieeefp.h: On the h8/300, h8/300h and
7657         h8/500 define _DOUBLE_IS_32BITS.
7658
7659 Sat Sep  9 17:55:54 1995  Doug Evans  <dje@canuck.cygnus.com>
7660
7661         Get vfork/exec/spawn/cwait/wait working again.
7662         * libc/sys/win32/syscalls.h (VFORK_NEWBORN_PSEUDO_PID): Define.
7663         (procinfo): New member vfork_level.
7664         * libc/sys/win32/crt0.c (__vfork_next_pid): Delete.
7665         (vfork_init_first): Use GetCurrentProcessId to get pid.
7666         Initialize vfork_level.
7667         (vfork_init): Delete __PID__.
7668         (environ_init): New function.  Undo patch of Aug 19, Posix says
7669         environment variables are case sensitive.
7670         (mainCRTStartup): Call it.
7671         * libc/sys/win32/spawn.c (__vfork_next_pid): Delete.
7672         (my_longjump: Make static.
7673         (_spawn): New argument `h'.  Delete setting of __PID__.
7674         Delete local `idx'.  Look for chars that need quotes, rather than
7675         ones that don't.  Set handle of created process in `h'.
7676         Result is process id if created task.
7677         (allocate_spawn_entry): New function.
7678         (spawnvp, spawnv): Call it.  Store handle and pid in procinfo entry.
7679         (_execve): Set __FD_TABLE__ before spawning child.
7680         Scan our fd table when passing fds, not our parent's.
7681         Store handle and pid in procinfo entry.
7682         (vfork0): Ensure strace message always printed.
7683         Set child pid to VFORK_NEWBORN_PSEUDO_PID.
7684         (vfork): Don't clobber result of vfork0.
7685         * libc/sys/win32/wait.c (cwait): Fix non-error result (is pid).
7686         (wait_for_any): Ignore processes in state FORK_STATE_VFORK_0.
7687
7688         * libc/sys/win32/syscalls.h (procinfo): New members `handle_valid_p'
7689         and `exit_code'.
7690         * libc/sys/win32/spawn.c (allocate_spawn_entry): Initialize them.
7691         (vfork0): Likewise.  Distinguish children, grandchildren, etc. by
7692         adding vfork level to pseudo-pid.  
7693         (vfork1): If not root, set state back to FORK_STATE_VFORK_0.
7694         (spawnvp, spawnv, _execve): Set handle_valid_p if success.
7695         (_exit): If child, set exit code.
7696         (__vfork_record_death): Only close process handle if valid.
7697         * libc/sys/win32/wait.c (wait_for_single): Watch for children that
7698         didn't exec.
7699         (wait_for_any): Likewise.  Start scan after root entry.
7700
7701 Fri Sep  8 18:48:02 1995  Jason Molenda   (crash@phydeaux.cygnus.com)
7702
7703         * libc/include/sys/types.h (off_t): off_t back to 32 bits.
7704         * libc/include/sys/_types.h (_off_t): _off_t back to 32 bits.
7705         * libc/sys/win32/syscalls.c (_fstat): st_size is lower 32-bits
7706         of actual file length.
7707
7708         * libc/sys/win32/sys/wait.h: include <sys/types.h>.
7709         * libc/include/paths.h: _PATH_BSHELL added.
7710         * libc/include/sys/unistd.h: define STDIN_FILENO, STDOUT_FILENO,
7711         and STDERR_FILENO.
7712
7713 Thu Sep  7 21:02:22 1995  Jason Molenda   (crash@phydeaux.cygnus.com)
7714
7715         * libc/include/ar.h: Added.
7716         * libc/include/sys/types.h: ino_t goes back to 32-bits.
7717         * libc/sys/win32/syscalls.h (hinfo): added .namehash field.
7718         * libc/sys/win32/syscalls.c (_open): compute .namehash based
7719         on filename.
7720         (_fstat): use .namehash for inode number of the fd.
7721
7722 Thu Sep  7 12:57:19 1995  steve chamberlain  <sac@slash.cygnus.com>
7723
7724         * libc/sys/win32/{console,ioctl,pipe,spawn,syscalls,wait}.? (*):
7725          Change hinfo to __this_procinfo.
7726         * libc/sys/win32/crt0.c: Remove procinfo_list.
7727
7728 Wed Sep  6 18:38:26 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
7729
7730         * libc/include/sys/types.h (ino_t): Define ino_t correctly for
7731         win32 environment.
7732
7733 Wed Sep  6 18:09:29 1995  Jason Molenda   (crash@phydeaux.cygnus.com)
7734
7735         * libc/sys/win32/include/grp.h: Removed.
7736         * libc/sys/include/grp.h: Added.
7737         * libc/sys/win32/grp.c: Include <grp.h>.
7738
7739 Wed Sep  6 16:52:48 1995  steve chamberlain  <sac@slash.cygnus.com>
7740
7741         * libc/include/sys/signal.h (__need_MAX_SIGNALS): Removed.
7742         (sigset_t, sigaction, SIG_SETMASK, SIG_BLOCK, SIG_UNBLOCK):
7743         Defined for all but strict ANSI.
7744         * libc/include/sys/reent.h (__need_MAX_SIGNALS): Removed.
7745         * libc/include/machine/setjmp.h: Get win32 _JBLEN right.
7746         * libc/signal/signal.c (_signal_r): Changed from using
7747         _MAX_SIGNALS to NSIG.  
7748         * libc/sys/win32/crt0.c (__current_pid, __parent_hmap, __child_hmap,
7749          __hmap): Deleted.
7750         (__strace, __vfork_next_pid): New.
7751         (__exe_suffix): Default to 1.
7752         (passover, table): Understand quoted arguments.
7753         (vfork_init_first): New.
7754         (vfork_init): Initialize new process structure.
7755         (mainCRTStartup): Pass environ to main.
7756         * exceptions.c (__sig_mask): New
7757         (ehandler3): Ignore signals in mask.
7758         (really_exit): Remove CHILD_P test.
7759         * pipe.c (pipe, dup, dup2): Use new process and file structure.
7760         * resource.c (getrusage): Ditto.
7761         * signal.c (sigprocmask): New.
7762         * spawn.c (*): Rewritten.
7763         * syscalls.c (*): Use new process and file structure.
7764         (find_unused_handle): New.
7765         * syscalls.h (MAX_HANDLES): Deleted.
7766         (hinfo): Removed child_created_p.
7767         (MAX_CHILDREN): Deleted.
7768         (vfork_jmp_info, procinfo): New.
7769         * wait.c (*): Mostly new.
7770         * sys/strace.h (_STRACE_PARANOID): New.
7771         * sys/param.h: New file.
7772
7773 Wed Sep  6 17:03:53 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
7774
7775         * libc/include/sys/stat.h: add S_BLKSIZE.
7776         * libc/include/sys/_types.h: _off_t is a 64-bit type under win32.
7777         * libc/include/sys/types.h: define off_t and ino_t to be 64 bit
7778         types under win32.
7779         (mode_t): add a #else to avoid multiple definitons.
7780
7781         * libc/sys/win32/Makefile.in: add grp.c.
7782         * libc/sys/win32/grp.c: include grp.h correctly.
7783         * libc/sys/win32/syscalls.c (_fstat): set almost all of the fields
7784         of the st structure with real information.
7785         * libc/sys/win32 (dirent): d_ino is of type ino_t.
7786
7787 Wed Sep  6 10:41:34 1995  Doug Evans  <dje@canuck.cygnus.com>
7788
7789         * libc/include/sys/types.h (mode_t): Correct for svr4 sparc's
7790         and (maybe) sparc64.
7791         (nlink_t): Provide typedef.
7792
7793 Tue Sep  5 18:46:05 1995  Jason Molenda   (crash@phydeaux.cygnus.com)
7794
7795         * libc/sys/win32/grp.c: New file.
7796         * libc/sys/win32/include/grp.h: New file.
7797
7798 Tue Sep  5 13:47:27 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
7799
7800         * libc/include/machine/ieeefp.h: Added whitespace to make this
7801         file easier to maintain.
7802         On the sh, define either __IEEE_BIG_ENDIAN or __IEEE_LITTLE_ENDIAN
7803         depending on the value of __LITTLE_ENDIAN__.
7804         On the sh3e, define _DOUBLE_IS_32BITS.
7805         
7806 Fri Sep  1 15:35:18 1995  James G. Smith  <jsmith@beauty.cygnus.com>
7807
7808         * libc/sys/vr4300/syscalls.c: Added missing support
7809         routines. _raise() and getpid().
7810
7811 Fri Sep  1 14:12:48 1995  James G. Smith  <jsmith@rtl.cygnus.com>
7812
7813         * configure.in (mips*vr4300*-*-elf): Fixed silly mistake
7814
7815 Fri Sep  1 08:42:11 1995  James G. Smith  <jsmith@beauty.cygnus.com>
7816
7817         * configure.in (mips*vr4300*-idt-*) Add support for RISQ monitor
7818         and VR4300 processor.
7819         * libc/sys/vr4300: Add directory.
7820         * libc/sys/vr4300/{Makefile.in, crt0.S, syscalls.c}: Add SIM
7821         monitor run-time support.
7822
7823 Thu Aug 31 09:16:52 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
7824
7825         * libc/stdlib/Makefile.in (CHEWOUT_FILES): Removed atol.def.
7826         * libc/stdlib/stdlib.tex: Don't include atol.def.
7827
7828 Wed Aug 30 20:38:28 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
7829
7830         * libc/sys/win32/uname.c (uname): hardcode processor as `i386'.
7831
7832 Wed Aug 30 10:48:08 1995  steve chamberlain  <sac@slash.cygnus.com>
7833
7834         * libc/ctype/Makefile.in: Fill in _to* dependencies.
7835
7836 Tue Aug 29 17:14:29 1995  steve chamberlain  <sac@slash.cygnus.com>
7837
7838         * libc/sys/win32/{dirsearch.c,sys/dirent.h}: Fix namespace problems.
7839         * libc/sys/win32/sys/dirent.h (struct dirent): Added d_ino.
7840         * libc/sys/win32/strace.c (__sys_printf): Increase size of buffer.
7841         * libc/sys/win32/smallprint.c (__small_vsprintf): Remove debug.
7842         * libc/sys/win32/dirsearch.c (readdir): Set d_ino.
7843
7844 Tue Aug 29 19:00:09 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
7845
7846         * libc/stdlib/atol.c (atol): DEFUN -> _DEFUN.
7847
7848 Tue Aug 29 16:08:09 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
7849
7850         * libc/stdlib/Makefile.in (OFILES): Added atoff.o and atol.o.
7851         * libc/stdlib/atoff.c: New file.
7852         * libc/stdlib/atof.c (atoff): Moved to atoff.c.
7853         * libc/stdlib/atoi.c (atol): Removed.
7854         * libc/stdlib/atol.c: Removed duplicate documentation.
7855
7856         * libc/include/ctype.h (_tolower, _toupper): Moved inside
7857         #ifndef _STRICT_ANSI conditional.
7858         * libc/ctype/Makefile.in (OFILES): Added _tolower.o and _toupper.o
7859         * libc/ctype/_tolower.c: New file.
7860         * libc/ctype/_toupper.c: New file.
7861         * libc/ctype/tolower.c (_tolower): Moved to _tolower.c.
7862         * libc/ctype/toupper.c (_toupper): Moved to _toupper.c.
7863         * libc/ctype/toascii.c (_toascii): Removed.
7864
7865 Tue Aug 29 12:17:32 1995  Doug Evans  <dje@canuck.cygnus.com>
7866
7867         * libc/sys/sparc64/sys/types.h: Deleted.
7868
7869 Mon Aug 28 22:06:08 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
7870
7871         * libc/sys/win32/uname.c (uname): change `Windows/NT' to `Windows_NT'
7872         and recognize Windows_95 systems.
7873
7874 Mon Aug 28 19:50:54 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
7875
7876         * libc/sys/win32/crt0.c (vfork_init, hmap_init): standard I/O fds
7877         and passed fds should be opened in text mode.
7878
7879 Mon Aug 28 18:51:22 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
7880
7881         * libc/sys/win32/crt0.c (vfork_init): mark passed fds as used
7882         in __hmap, set to binary mode by default.
7883
7884 Tue Aug 22 14:12:37 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
7885
7886         * libc/sys/sh/syscalls.c: Updated all functions to call __trap34.
7887         * libc/sys/sh/trap.S (__trap34): Renamed from __trap3.  Use trap
7888         vector 34.
7889
7890 Sat Aug 19 18:25:37 1995  steve chamberlain  <sac@slash.cygnus.com>
7891
7892         * Makefile.in (install): Install all libraries found in the
7893         top level.  If there's a sys/<type>/include directory,
7894         install those headers into include.
7895
7896         * libc/sys/win32/kernel.def351: Delete
7897         * libc/sys/win32/{comctl32.def, comdlg32.def, ctl3d32.def,
7898         glaux.def, glu32.def, largeint.def, libc.def, libcmt.def,
7899         lz32.def, mgmtapi.def, mpr.def, msacm32.def, msvcrt.def,
7900         nddeapi.def, netapi32.def, odbc32.def, odbccp32.def, oldnames.def,
7901         ole32.def, oleaut32.def, opengl32.def, rasapi32.def, rpcndr.def,
7902         rpcns4.def, rpcrt4.def, scrnsave.def, shell32.def, snmp.def,
7903         uuid.def, vdmdbg.def, version.def, vfw32.def, win32spl.def,
7904         winmm.def, winspool.def, winstrm.def, wsock32.def}: New.
7905
7906         * libc/sys/win32/Makefile.in: Update for new files and new dlltool options.
7907         * libc/sys/win32/crt0.c: Force all env names to upper case.
7908         * libc/sys/win32/sys/win*.h -> libc/sys/win32/include
7909         * libc/sys/win32/*.c: Headers have moved.
7910         * libs/sys/win32/*.[ch]: Test for open_p rather than BAD_HANDLE,
7911         __vfork_child_idx is now __vfork_child_ptr.
7912
7913         * posix/execvp (execvp): Don't crash if no PATH envname.
7914
7915 Fri Aug 18 12:22:59 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
7916
7917         * libc/include/sys/reent.h (_Bigint): Removed _reclaim field.
7918         * libc/reent/reent.c (_reclaim_reent): Free Bigint's by going
7919         through the _freelist instead of through the _reclaim list.
7920         * libc/stdlib/mprec.c (_Balloc): Don't put new node on _reclaim list.
7921         * libc/stdlib/mprec.c (_Bcopy): Make like version in master dtoa.c
7922         sources.
7923
7924 Thu Aug 17 11:03:27 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
7925
7926         * libc/machine/h8500/setjmp.S: New file.
7927         * libc/include/machine/setjmp.h: Updated for H8/500.
7928
7929 Wed Aug 16 16:19:11 1995  steve chamberlain  <sac@slash.cygnus.com>
7930
7931         * libc/sys/win32/syscalls.c (_open): More stracing.
7932         (_stat): Open the file in O_BINARY.
7933
7934 Wed Aug 16 15:49:01 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
7935
7936         * libc/machine/h8300/setjmp.S: New file.
7937         * libc/include/machine/setjmp.h: Updated for H8/300 and H8/300H.
7938
7939 Tue Aug 15 10:31:09 1995  Doug Evans  <dje@canuck.cygnus.com>
7940
7941         * libc/sys/win32/crt0.c (__exe_suffix): New global.
7942         (mainCRTStartup): Set __exe_suffix from LIBC_EXE_SUFFIX.
7943         * libc/sys/win32/spawn.c (_spawn): Add .exe suffix based on
7944         __exe_suffix.  Free fd_tab after setting env variable.
7945         (spawnv,_execve): Update.
7946         * libc/sys/win32/syscalls.h (__exe_suffix): Declare.
7947         * libc/sys/win32/smallprint.c (puts,putn): New (static) functions.
7948         (__small_vfprintf): New function.
7949         * libc/sys/win32/strace.c (__sys_printf): Call __small_vfprintf.
7950         * libc/sys/win32/wait.c (cwait): Validate argument.
7951
7952         * libc/sys/win32/syscalls.c (queue_file_deletion): Add trace message.
7953         (process_deletion_queue): Likewise.
7954
7955         * libc/sys/win32/Makefile.in (lib.a): Don't call $(RANLIB).
7956
7957 Mon Aug 14 10:14:10 1995  steve chamberlain  <sac@slash.cygnus.com>
7958
7959         * libc/sys/win32: Copyrights and gratuitous indenting.
7960
7961 Mon Aug 14 01:32:58 1995  Doug Evans  <dje@canuck.cygnus.com>
7962
7963         * libc/sys/win32/syscalls.c (queue_file_deletion): Finish.
7964         (process_deletion_queue): Likewise.
7965         (__close_all_files): New function.
7966         (_close): Only queue file deletion if really a file.
7967         * libc/sys/win32/spawn.c (_spawn): Only ensure .exe suffix if
7968         _P_APPEND_EXE.
7969         (_exit): Call __close_all_files.
7970
7971         * libc/stdlib/system.c: #include <errno.h>.
7972         (_system_r): Fix results in -DNO_EXEC case.
7973
7974         * libc/sys/win32/sys/dirent.h (DIR): New member __d_dirname.
7975         Reorganize structure.
7976         * libc/sys/win32/dirsearch.c (opendir): Use stat to determine
7977         if argument is valid.  Save directory name in DIR.  malloc space
7978         for dirent struct separately.
7979         * libc/sys/win32/syscalls.c (stat): Fix test for directory.
7980
7981         * libc/include/errno.h (ENAMETOOLONG): Define.
7982         * libc/string/strerror.c (strerror): Reword ENFILE.
7983         Add ENOSYS, ENMFILE, ENOTEMPTY, ENAMETOOLONG.
7984
7985 Sun Aug 13 22:42:25 1995  Doug Evans  <dje@canuck.cygnus.com>
7986
7987         * libc/sys/win32/crt0.c (__progname): New global.
7988         (mainCRTStartup): Support strace=bitmask,filename.
7989         * libc/sys/win32/dirsearch.c (all fns): Add trace messages.
7990         * libc/sys/win32/syscalls.c (_write): Print parent trace message
7991         if error.
7992         (getcwd): Handle len too small.  Convert '\\' to '/'.
7993         * libc/sys/win32/sys/fcntl.h (O_RDWR): = O_RDONLY|O_WRONLY.
7994         Add prototypes for open, creat, fcntl.
7995         (O_APPEND): Change value to conform to Microsoft's value.
7996         * libc/sys/win32/sys/strace.h (_STRACE): Protect in do/while.
7997
7998         * libc/stdlib/getopt.c: New file.
7999         * libc/stdlib/Makefile.in: Build it.
8000
8001 Sat Aug 12 12:17:14 1995  Doug Evans  <dje@canuck.cygnus.com>
8002
8003         * libc/posix/execvp.c (execvp): Watch for DOS drives ifdef _WIN32.
8004         Fix scanning of $PATH.
8005         * libc/posix/exec*.c: Call _execve, not execve.
8006         * libc/posix/execve.c: New file.
8007         * libc/posix/Makefile.in (OFILES): Add execve.o.
8008
8009         * libc/sys/win32/sys/strace.h (_STRACE_ALL, _STRACE_UHOH,
8010         _STRACE_STARTUP, _STRACE_SYSCALL): More bit masks of things to trace.
8011         (_STRACE): If level==0, always print.  Handle new bit mask scheme.
8012         * libc/sys/win32/crt0.c: Update _STRACE calls.
8013         * libc/sys/win32/{pipe.c,resource.c,spawn.c,syscalls.c,wait.c}: Ditto.
8014
8015         * libc/sys/win32/smallprint.c (rn): Fix digit list.
8016
8017         * libc/sys/win32/syscalls.c (__really_exit): Move from here,
8018         * libc/sys/win32/exceptions.c (really_exit): to here. Avoid recursion.
8019         * libc/sys/win32/spawn.c (spawnvp): Pass `prog' as image name.
8020         Print __seterrno trace message first.
8021         (_execve): Renamed from execve.
8022         (vfork): Update __strace usage.
8023         (__vfork_child_pid): Deleted.
8024         (__vfork_children, __vfork_child_idx): New globals.
8025         (_spawnvp): New function.
8026         (spawnvp, spawnv, _execve): Call _spawnvp.
8027         (init_child): Record child in __vfork_children.
8028         (__vfork_get_entry, __vfork_record_death): New functions.
8029         * libc/sys/win32/crt0.c (mainCRTStartup): Initialize __vfork_children.
8030         * libc/sys/win32/kernel32.def (WaitForMultipleObjects): Define.
8031         * libc/sys/win32/syscalls.h (CHILD_P): New macro.  All files updated.
8032         (MAX_CHILDREN, CHILD_INTERIM_PID): Define.
8033         (children): New typedef.
8034         (__vfork_children,__vfork_child_idx): Declare.
8035         (__vfork_get_entry,__vfork_record_death): Declare.
8036         * libc/sys/win32/wait.c (wait_for_single,wait_for_any): New functions.
8037         (waitpid): Handle pid == -1.
8038         * libc/sys/win32/sys/wintypes.h (WaitForMultipleObjects): Declare.
8039         * configure.in (i386-win32): Add -DNO_FORK.
8040         * libc/syscalls/sysfork.c (fork): Don't define for NO_FORK.
8041         * libc/reent/execr.c (_fork_r): Likewise.
8042         * libc/stdlib/system.c (do_system): New function.
8043         If WIN32, try to get shell path from $SH_PATH, use vfork.
8044         (_system_r): Return 1 for (s == NULL) if WIN32 or unix,
8045         otherwise return 0.
8046
8047 Sat Aug 12 11:08:00 1995  steve chamberlain  <sac@slash.cygnus.com>
8048
8049         * libc/stdlib/{mallocr.c, mstats.c}: Move mstats from mallocr to mstats.c.
8050         * libc/sys/win32/fcntl.h: Don't include self.
8051         * libc/sys/win32/sys/strace.h (_STRACE_WM, _strace_wm): New.
8052         * libc/sys/win32/sys/winbase.h: (GetUserName) New.
8053         * libc/sys/win32/sys/wincon.h (HANDLER_ROUTINE): Define correctly.
8054         * libc/sys/win32/sys/wintypes.h (GetFileType, GetCurrentProcess, CloseHandle,
8055         SetFilePointer, CreateFileA, GetFileInformationByHandle, GetStdHandle):
8056         Correct prototypes.
8057         * libc/sys/win32/strace.c: New file.
8058         * libc/sys/win32/smallprint.c: New file.
8059         * libc/sys/win32/crt0.c (func): Delete.
8060         (mainCRTStartup): Fix alloca usage.  Set handles explictly.
8061         * libc/sys/win32/dirsearch.c: Clean up handle usage, fix calls to __seterrno.
8062         * libc/sys/win32/exceptions.c: Lint.
8063         * libc/sys/win32/{ioctl.c, pipe.c, resource.c, spawn.c, cwait.c, syscalls.c}:
8064         Clean up handle usage.
8065         * libc/sys/win32/syscalls.c (__sys_printf): Moved into strace.c
8066         (open.c): Default file type is text.
8067         * libc/sys/win32/uname.c (uname): Use __small_sprintf.
8068         * libc/sys/win32/advapi32.def: New      
8069
8070 Fri Aug 11 17:11:52 1995  Doug Evans  <dje@canuck.cygnus.com>
8071
8072         * configure.in (posix_dir, libc_posix_lib): New variables.
8073         Define LIBC_POSIX_LIB in makefile to be $libc_posix_lib.
8074         (i[345]86-*-win32): Define posix_dir.
8075         Delete -DNO_EXEC.  Define -DHAVE_OPENDIR.
8076         (if unix_dir): Fix typo.
8077         * libc/posix/{Makefile.in,closedir,opendir,readdir,rewinddir,
8078         scandir,seekdir,telldir}: New files.
8079         * libc/posix/{execl.c,execle.c,execlp.c,execv.c,execvp.c}: Move here
8080         from libc/unix.
8081         * libc/Makefile.in (LIBC_POSIX_LIB): Define.
8082         (SUBDIRS): Add posix.
8083         (SUBLIBS): Add $(LIBC_POSIX_LIB).
8084
8085         * libc/include/sys/signal.h (SIGCHLD): Add for _WIN32.
8086         (NSIG): Increase to 21.
8087         * libc/include/sys/unistd.h (pid_t): Move from here,
8088         * libc/include/sys/types.h (pid_t): to here.
8089
8090         * libc/sys/win32/syscalls.h: #include "sys/strace.h".
8091         (__ptrace): Delete.
8092         (hinfo): New members close_exec_p, child_created_p.
8093         (struct exception_list): Define.
8094         (__hmap): Redefine as pointer to table.
8095         (__parent_hmap, __child_hmap): New globals.
8096         (__set_errno, __really_exit): Declare.
8097         (__vfork_child_pid): Declare.
8098         * libc/sys/win32/crt0.c (__strace, __trace_file): New global.
8099         (__orig_stdin, __orig_stdout, __orig_stderr): New globals.
8100         (__parent_hmap, __child_hmap): New globals.
8101         (__hmap): Redefine as pointer to active map.
8102         (__get_console): New function.
8103         (mainCRTStartup): Change leading '=' in environ vars to '!'.
8104         (env __FD_TABLE__): Watch for this and initialize our fd/handle
8105         mapping table from it if defined.
8106         (argv, envp): Dump if __strace >= 4.
8107         (main): Call here.
8108         * libc/sys/win32/exceptions.c (myp): Redefine.
8109         (__syscalls_b): Delete.
8110         (__stack_trace): New function.
8111         (ehandler3): Update to use _STRACE.  Print stack trace.
8112         Call __really_exit instead of exit.
8113         (init_exceptions): Delete args argc,argv.  New arg mine.
8114         * libc/sys/win32/kernel32.def (CreatePipe, DuplicateHandle, FindClose,
8115         FindFirstFileA, FindNextFileA, GetComputerNameA,
8116         GetEnvironmentVariableA, ReadFile, SetEnvironmentVariableA): Define.
8117         * libc/sys/win32/signal.c (signal): Validate arg.
8118         (alarm, sleep): Define as stubs for now.
8119         * libc/sys/win32/syscalls.c (all fns): Update to use _STRACE.
8120         (__syscalls_b, errno): Delete.
8121         (__vfork_child_pid, __vfork_jmp_buf): New globals.
8122         (__seterrno): Handle more errors.
8123         (__sys_printf): Renamed from _ptrace.
8124         (__really_exit): New function.
8125         (queue_file_deletion, process_deletion_queue): New functions.
8126         (__resume_parent): New function.
8127         (_unlink): Handle trying to delete open file.
8128         (__totime_t): Renamed from totime_t.
8129         (setsid, __read, __write): New functions.
8130         (cwait, spawnvp, R, D, getrusage, _execve, _fork, _wait): Delete.
8131         * libc/sys/win32/{dirsearch.c,getlogin.c,misc.c,resource.c,passwd.c,
8132         times.c,spawn.c,pipe.c,wait.c,termios.c,ioctl.c,uname.c}: New files.
8133         * libc/sys/win32/console.c: Update to new definition of __hmap.
8134         * libc/sys/win32/Makefile.in: Build new files.
8135         * libc/sys/win32/sys/{dirent.h,winerror.h,wait.h,termios.h}: New files.
8136         * libc/sys/win32/sys/{ioctl.h,utsname.h}: New files.
8137         * libc/sys/win32/sys/strace.h: Renamed from ptrace.h.
8138         * libc/sys/win32/sys/wintypes.h (GetCurrentDirectoryA): Fix prototype.
8139
8140 Thu Aug 10 16:32:52 1995  Doug Evans  <dje@canuck.cygnus.com>
8141
8142         * libc/sys/h8500hms/misc.c (kill): Handle SIGABRT.
8143
8144 Thu Aug 10 12:07:38 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
8145
8146         * libc/stdlib/{dtoa.c, strtod.c}: Merged assorted changes that
8147         have been made to the master dtoa.c sources (from netlib.att.com)
8148         since they were integrated into newlib in early 1992.  Fixes
8149         problems with storage leaks and handling of numbers with very
8150         negative exponents.
8151         
8152 Wed Aug  9 14:18:39 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
8153
8154         * Makefile.in (all): set rootpre and srcrootpre before calling
8155         sub-makes.
8156
8157 Tue Aug  8 17:20:45 1995  steve chamberlain  <sac@slash.cygnus.com>
8158
8159         * libc/sys/win32/crt0.c: Change __hmap usage.
8160         * libc/sys/win32/exceptions.c: Use _ptrace call.
8161         * libc/sys/win32/syscalls.c: Use _ptrace call.
8162         (read, write): Cope with DOS style CRLF when in TEXT mode.
8163         * libc/sys/win32/syscalls.h: Declare hinfo struct.
8164         * libc/sys/win32/user32.def: Get DefWindowProc arg list right.
8165         * libc/sys/win32/sys/fcntl.h, ptrace.h: New.
8166         * libc/sys/win32/sys/windows.h: Fill in rest of messages.
8167         * libc/sys/win32/sys/wintypes.h: Fix attribute syntax.
8168
8169 Mon Aug  7 13:04:54 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
8170
8171         * libc/include/math.h (cabs, cabsf, drem, dremf): New declarations.
8172
8173         * libm/math/{w_cabs.c, wf_cabs.c, w_drem.c, wf_drem.c}: New files,
8174         wrappers for hypot() and remainder() for BSD libm compatibility.
8175         These are public domain implementations written by me for the
8176         NetBSD libm some time ago.  Note cabs() is required by ucbtest.
8177         * libm/math/Makefile.in (obj): Added w_cabs.o and w_drem.o.
8178         (fobj): Added wf_cabs.o and wf_drem.o.
8179
8180 Thu Aug  3 08:13:05 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
8181
8182         * libc/sys/h8500hms/misc.c: New file.
8183         * libc/sys/h8500hms/Makefile.in (OFILES): Add misc.o.
8184
8185 Wed Aug  2 16:46:27 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
8186
8187         * libc/time/localtime.c (localtime): Fix problem with leap year
8188         handling.  Stole algorithm from Arthur David Olson's tz code.
8189         
8190 Mon Jul 31 10:21:54 1995  steve chamberlain  <sac@slash.cygnus.com>
8191
8192         * configure.in: (z8k-*sim): Renamed z8k-*-coff.
8193
8194         * libc/sys/z8ksim/glue.c (_getpid, _kill): New
8195         (_exit): Use argument.
8196
8197 Fri Jul 28 15:17:04 1995  Doug Evans  <dje@canuck.cygnus.com>
8198
8199         * libc/sys/win32/sys/winbase.h (_WINBASE_H): Define.
8200
8201 Wed Jul 26 16:24:19 1995  steve chamberlain  <sac@slash.cygnus.com>
8202
8203         * libc/sys/sh/trap.S (perrno): Align correctly. (pr 7532)
8204
8205 Mon Jul 24 13:42:52 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
8206
8207         * configure.in (sparc*): Add -DMALLOC_ALIGNMENT=8 to
8208         target_cflags.
8209
8210 Mon Jul 24 11:42:07 1995  steve chamberlain  <sac@slash.cygnus.com>
8211
8212         * libc/sys/win32/crt0.c (mainCRTStartup):  Look for
8213         ptrace with case insensitivity
8214         * libc/sys/win32/{user32.def, gdi32.def, exceptions.c, screen.c,
8215         sys/winbase.h,  sys/windows.h, sys/wintypes.h, sys/winuser.h}:
8216         New files.
8217
8218 Fri Jul 21 11:22:26 1995  Doug Evans  <dje@canuck.cygnus.com>
8219
8220         * Makefile.in: Multilib support moved to ../cfg-ml-{com,pos}.in.
8221         (MULTITOP, MULTIDIRS, MULTISUBDIR, MULTIDO, MULTICLEAN): New variables.
8222         (all, install, *clean): Use new multilib support.
8223         * configure.in: Multilib support moved to ../cfg-ml-{com,pos}.in.
8224
8225 Fri Jul 21 07:11:42 1995  steve chamberlain  <sac@slash.cygnus.com>
8226
8227         * libc/include/sys/signal.h (__WIN32__): New.
8228
8229         * configure.in (i386-*-win32): Remobe SBRK_IS_ALLOC.
8230
8231         * libc/stdlib/mprec.c (Balloc): Fix trampling problem.
8232         (ulp, b2d): Handle 32 bit doubles.
8233         * libc/stdlib/mprec.h:  Handle 32 bit doubles.
8234         * libc/stdlib/strtod.c (_strtod_r): Ditto.
8235
8236 Fri Jul 14 08:24:58 1995  steve chamberlain  <sac@slash.cygnus.com>
8237
8238         from medp@primag.co.uk:
8239         * libc/stdio/setvbuf.c (setvbuf): Fix line buffering on
8240         dynamically allocated buffers.
8241
8242 Thu Jul 20 10:11:03 1995  Fred Fish  <fnf@fishbowl>
8243
8244         * libc/include/sys/unistd.h (_exit):  Add _ATTRIBUTE ((noreturn)).
8245         * libc/stdlib/exit.c (unistd.h):  Include to pick up _exit() declaration.
8246
8247 Thu Jul 20 10:16:25 1995  Michael Meissner  <meissner@tiktok.cygnus.com>
8248
8249         * configure.in (powerpc): Fix previous fix.
8250
8251 Wed Jul 19 14:08:55 1995  Michael Meissner  <meissner@tiktok.cygnus.com>
8252
8253         * configure.in (powerpc-*eabiaix*): Update PowerPC multilib
8254         directories for this target.
8255
8256 Wed Jul 19 00:34:30 1995  Jeffrey A. Law  <law@rtl.cygnus.com>
8257
8258         * configure.in (hppa): Add machine_dir definition.
8259         * libc/machine/hppa: New directory with PA specific implementations
8260         of the basic memory/string functions.
8261
8262 Tue Jul 18 21:16:00 1995  Michael Meissner  <meissner@tiktok.cygnus.com>
8263
8264         * configure.in: Update current PowerPC multilib directories.
8265         Split big and little endian configurations.
8266
8267 Tue Jul 18 11:55:33 1995  Ian Lance Taylor  <ian@cygnus.com>
8268
8269         * configure.in: Add --enable-single-float option to configure to
8270         control use of MIPS single-float directories.  Default to yes.
8271
8272         * Makefile.in (all): Don't recurse into multilib directory if it
8273         does not exist.
8274
8275 Mon Jul 17 15:51:30 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
8276
8277         * libc/sys/sh/syscalls.c: Fix typo.
8278
8279 Mon Jul  3 14:38:52 1995  Steve Chamberlain  <sac@slash.cygnus.com>
8280
8281         * Makefile.in, libc/Makefile.in, libc/sys/Makefile.in:
8282         Pass down DLLTOOL.
8283         * libc/include/process.h: Define WAIT_CHILD.
8284         * libc/include/types.h: Get sizes right for win32.
8285         * configure.in (i386-*-pe): Becomes i386-win32.
8286         * libc/sys/win32/{crt0.c, kernel32.def, longjmp.c, setjmp.c, syscalls.c
8287         wintypes.h,sys/file.h,sys/resource.h}: Second pass.
8288         * libc/stdlib/mallocr.c: Don't round up memory block if SBRK_IS_ALLOC
8289         is defined.
8290
8291 Wed Jun 28 18:34:54 1995  Steve Chamberlain  <sac@slash.cygnus.com>
8292
8293         * configure.in (i[345]86-*-pe):  New target (NT).
8294         * host/any: DLLTOOL new.
8295         * libc/sys/win32/{crt0.c, kernel32.def, longjmp.c, setjmp.c, syscalls.c
8296         wintypes.h,sys/file.h,sys/resource.h}: Preliminary support for
8297         WIN32 (just enough to cross host the comp-tools).
8298
8299 Thu Jun 22 11:45:18 1995  Doug Evans  <dje@canuck.cygnus.com>
8300
8301         * libc/machine/h8300/{cmpsi.S,ucmpsi.S,divhi3.S,mulhi3.S,mulsi3.S}:
8302         Deleted.  These files live in gcc/config/h8300/lib1funcs.asm now.
8303
8304 Mon Jun 19 11:40:40 1995  Doug Evans  <dje@canuck.cygnus.com>
8305
8306         * libc/include/machine/ieeefp.h (arm): Change to always be
8307         __IEEE_BIG_ENDIAN (even on little endian ARM's).
8308
8309 Thu Jun  8 14:22:28 1995  Steve Chamberlain  <sac@slash.cygnus.com>
8310
8311         * libc/sys/crt0.S: Initialze sp, and call exit after main.
8312         * libc/sys/syscalls.c (abort): New.
8313         * configure.in (arm): Define ABORT_PROVIDED.
8314
8315 Wed Jun  7 14:04:35 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
8316
8317         * configure.in (powerpc): Define multidirs.
8318
8319 Mon Jun  5 16:10:13 1995  Doug Evans  <dje@canuck.cygnus.com>
8320
8321         * libc/sys/arm/crt0.S: Add __USER_LABEL_PREFIX__ support.
8322
8323 Thu Jun  1 10:51:47 1995  Sean Eric Fagan <sef@cygnus.com>
8324
8325         * configure.in (sparclite): Delete target_cflags.  Define multidirs.
8326
8327 Wed May 24 14:23:25 1995  Steve Chamberlain  <sac@slash.cygnus.com>
8328
8329         * configure.in, libc/include/machine/ieeefp.h: Modified
8330         for arm:
8331         libc/machine/arm/*, libc/sys/arm/*: New
8332
8333 Tue May 23 13:53:07 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
8334
8335         * libc/include/machine/ieeefp.h: Use __PPC__ instead of
8336           __powerpc__ when determining endianness.
8337
8338 Wed May 10 07:55:56 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
8339
8340         * configure.in (m68*): Add multidir for the m68332.
8341
8342         * host/any (CC): Fix typo in last change.
8343
8344 Fri Apr 14 22:20:31 1995  Ken Raeburn  <raeburn@cujo.cygnus.com>
8345
8346         * libc/include/sys/config.h: Test __m68k__ instead of __m68000__
8347         when determining endianness.
8348         * libc/include/machine/ieeefp.h: Ditto.
8349         * libc/machine/m68k/setjmp.S: Use '&' instead of '#' for immediate
8350         operands.
8351
8352 Fri Apr 14 14:14:29 1995  Doug Evans  <dje@chestnut.cygnus.com>
8353
8354         * libc/include/errno.h (ENOTEMPTY): Define.
8355
8356 Thu Apr  6 12:21:20 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
8357
8358         * configure.in (sparc-sun-sunos*): Add -DMALLOC_ALIGNMENT=8 to
8359           target_cflags.
8360
8361         * libc/sys/sun4/Makefile.in (COPYOFILES): Added rem.o, multiply.o,
8362           and umultiply.o.
8363
8364         * libc/stdio/tmpnam.c (worker): Unconditionally increment count
8365           instead of only when open succeeds.  ANSI requires that multiple
8366           calls to tmpnam() result in different files.
8367
8368         * libc/sys/sun4/Makefile.in (COPYRENAMEOFILES): New macro, list of
8369           objects pulled in from /lib/libc.a that must be renamed before
8370           being pulled into newlib.  /lib/libc.a's div.o conflicted with
8371           newlib's file with the same name.
8372
8373         * libc/stdlib/ldiv.c (ldiv): Call labs() instead of abs().
8374
8375         * host/any (CC, AS, AR, RANLIB): Changed so that executables in
8376           the build tree will only be used if the executables are present
8377           (instead of just the Makefiles).
8378
8379         * libc/include/stdlib.h (mblen, mbtowc, wctomb, mbstowcs,
8380           wcstombs): Define.
8381         * libc/stdlib/{mblen.c, mbstowcs.c, wcstombs.c}: New files, null
8382           versions of these functions that I orignally wrote for the
8383           NetBSD C library.
8384         * libc/stdlib/{mbtowc.c, wctomb.c}: Replaced functions with
8385           versions I wrote for NetBSD.
8386
8387 Wed Mar 29 12:42:42 1995  Kung Hsu  <kung@mexican.cygnus.com>
8388
8389         * libc/sys/sparclite/Makefile.in: add crt0.s and make info.
8390         * libc/sys/sparclite/crt0.s: ditto.
8391
8392 Tue Mar 28 20:28:03 1995  Rob Savoye  <rob@rtl.cygnus.com>
8393
8394         * configure.in: Add soft-float for proelf.
8395
8396 Mon Mar 27 12:07:56 1995  Steve Chamberlain  <sac@bang.hack.com>
8397
8398         * libc/stdlib/mprec.h (Bcopy): Copy the right number
8399         of bytes.
8400
8401 Mon Mar 27 11:24:22 1995  Doug Evans  <dje@chestnut.cygnus.com>
8402
8403         * Makefile.in (all): Depend on `force'.
8404         * configure.in (syscall_dir): Renamed from fake_sys_dir.
8405         (libc_syscall_lib): Renamed from libc_fake_sys_lib.
8406         (LIBC_SYSCALL_LIB): Renamed from LIBC_FAKE_SYS_LIB.
8407         * libc/Makefile.in: Likewise.
8408         * libc/include/reent.h: Update syscall references.
8409         (_fcntl_r): Add prototype.
8410         * libc/syscalls/*.c #include <reent.h>.
8411         (*) Call reentrant version if REENTRANT_SYSCALLS_PROVIDED.
8412
8413 Mon Mar 20 16:57:39 1995  Doug Evans  <dje@deneb.cygnus.com>
8414
8415         * libc/include/sys/stat-dj.h (S_ISBLK): Define.
8416         (S_ISCHR, S_ISDIR, S_ISFIFO, S_ISREG): Define.
8417         * libc/include/sys/stat.h (stat-dj.h): Include ifdef MSDOS.
8418         (time.h, sys/types.h): Always include (even if MSDOS).
8419         (stat): Fix prototype.
8420
8421 Fri Mar 10 11:30:38 1995  Ian Lance Taylor  <ian@cygnus.com>
8422
8423         * configure.in (i[345]86-*-go32): Compile with -DNO_EXEC.
8424
8425 Mon Feb 27 18:00:39 1995  Jim Wilson  <wilson@chestnut.cygnus.com>
8426
8427         * libc/machine/h8500/psi.S (EXTPSIHI_RN_SN): Ifdef out.
8428
8429 Mon Feb 13 16:10:03 1995  Ian Lance Taylor  <ian@cygnus.com>
8430
8431         * libc/include/regdef.h: New file.
8432         * libc/machine/mips/machine/regdef.h: New file.
8433
8434 Mon Feb  6 15:24:29 1995  Doug Evans  <dje@canuck.cygnus.com>
8435
8436         * libc/sys/sparc64/sys/fcntl.h (open): Add ellipsis.
8437
8438 Fri Jan 27 13:52:10 1995  Steve Chamberlain  <sac@splat>
8439
8440         * libc/sys/sh/crt0.S: Pass main's return to exit.
8441         * libc/sys/sh/trap.S: Put errno in the right place.
8442
8443 Tue Jan 24 18:57:56 1995  Ian Lance Taylor  <ian@sanguine.cygnus.com>
8444
8445         * libm/math/e_rem_pio2.c (__ieee754_rem_pio2): Integrate change
8446         from fdlibm 5.2: handle |x| < 3pi/4 more efficiently.
8447         * libm/math/ef_rem_pio2.c: Likewise.
8448         * libm/math/e_log10.c: Remove unused static one.
8449         * libm/math/ef_log10.c: Likewise.
8450         * libm/math/s_frexp.c: Likewise.
8451         * libm/math/sf_frexp.c: Likewise.
8452
8453 Sun Jan 22 21:26:14 1995  Steve Chamberlain  <sac@splat>
8454
8455         * libc/sys/go32/Makefile.in, clock.S, dir.c, setjmp.S, stat.c,
8456         longjmp.S: Upgraded.
8457         * libc/sys/go32/sys/setjmp.h: Upgraded.
8458         * libc/sys/go32/sys/go32.h, dpmi.h: New files.
8459
8460 Fri Jan 20 18:33:18 1995  Ian Lance Taylor  <ian@sanguine.cygnus.com>
8461
8462         * configure.in: Add many entries to multidirs for mips targets.
8463
8464 Wed Jan 18 10:19:25 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
8465
8466         * libm/math/e_jn.c (__ieee754_yn): Integrate change from fdlibm
8467           5.2 which fixes bug where jn(-1,x) is three times larger than
8468           the actual answer.
8469         * libm/math/ef_jn.c (__ieee754_ynf): Likewise.
8470
8471 Sun Jan 15 21:48:58 1995  Steve Chamberlain  <sac@splat>
8472
8473         * libc/sys/w65/sys/syscalls.h: New file
8474         * libc/include/machine/ieeefp.h: W65 support.
8475         * libc/include/sys/config.h: Ditto.
8476         * libc/machine/w65/Makefile.in, cmpsi, divsi3, lshrhi.s, mulsi3.c,
8477         sdivhi3.s, smulhi3.s, udivhi3.s, umodhi3.s: New files.
8478         * libc/sys/w65/Makefile.in, crt0.c, syscalls.c, trap.c: New files.
8479
8480 Wed Jan 11 15:59:01 1995  Ian Lance Taylor  <ian@sanguine.cygnus.com>
8481
8482         * libc/sys/Makefile.in (lib.a, crt0.o): Depend upon subs.
8483
8484 Tue Jan  3 15:57:03 1995  Rob Savoye  <rob@darkstar.cygnus.com>
8485
8486         * Makefile.in, configure.in: Remove any references to the old
8487         "stub" dir.
8488
8489 Thu Dec 22 10:42:08 1994  Ian Lance Taylor  <ian@sanguine.cygnus.com>
8490
8491         * libc/syscalls/sysopen.c: Write _HAVE_STDC version of open, which
8492         uses ... in prototype.
8493
8494
8495 Wed Nov 30 08:39:42 1994  Ian Lance Taylor  <ian@rtl.cygnus.com>
8496
8497         * libc/sys/a29khif/sys/libconfig.h: Remove.
8498         * libc/sys/go32/sys/libconfig.h: Remove.
8499         * libc/sys/sun4/sys/libconfig.h: Remove.
8500         * libc/sys/sysvi386/sys/libconfig.h: Remove.
8501         * libc/sys/sysvnecv70/sys/libconfig.h: Remove.
8502         * libc/sys/sparc64/sys/libconfig.h: Remove.
8503
8504         * libc/include/_ansi.h (_FLOAT_ARG, _FLOAT_RET): Don't define.
8505         * libc/include/sys/config.h (_FLOAT_ARG, _FLOAT_RET): Likewise.
8506         * libc/include/math.h: Change all uses of _FLOAT_RET and
8507         _FLOAT_ARG to float.
8508         * libm/test/math.c: Likewise.
8509         * testsuite/libm.sac/math.c: Likewise.
8510         * testsuite/libm.sac/working/math.c: Likewise.
8511
8512 Wed Nov 23 22:39:28 1994  Steve Chamberlain  (sac@jonny.cygnus.com)
8513
8514         * libc/sys/sh/trap.s,crt0.s,setjmp.s: Renamed with .S so that
8515         gcc calls gas with endian option.
8516         * configure.in (sh): Build little endian version too.
8517
8518 Wed Nov 16 18:21:45 1994  Ian Lance Taylor  <ian@sanguine.cygnus.com>
8519
8520         * configure.in: Configure big and little endian versions for MIPS
8521         targets.
8522
8523 Sat Nov 12 21:12:51 1994  Doug Evans  <dje@canuck.cygnus.com>
8524
8525         * libc/include/limits.h: Deleted.
8526         * libc/include/machine/limits.h: Deleted.
8527
8528 Thu Nov 10 15:32:44 1994  Rob Savoye  <rob@rtl.cygnus.com>
8529
8530         * ChangeLog: Remove stub directory. This has all been rewritten
8531         and moved to devo/libgloss.
8532
8533 Thu Sep 29 18:31:04 1994  Ian Lance Taylor  <ian@sanguine.cygnus.com>
8534
8535         * Makefile.in (dvi): Add to info target, use $@ in sub make.
8536         (docs): Merge into info target.
8537         * libm/Makefile.in (dvi): Add $(srcdir).
8538         * libm/math/Makefile.in (chobjs): Remove underscores from file
8539         names.  Texinfo doesn't like them.
8540         (wacos.def, ...): Add explicit targets for all .def files.
8541         * libm/math/math.tex: Remove underscores from @include file names.
8542         * doc/Makefile.in (dvi): Add dummy target.
8543         * testsuite/Makefile.in (dvi): Add dummy target.
8544
8545 Mon Sep 26 21:17:46 1994  Doug Evans  (dje@canuck.cygnus.com)
8546
8547         * Makefile.in (VERSION): Define.  For net newlib releases.
8548
8549 Thu Sep 22 19:01:26 1994  Doug Evans  (dje@canuck.cygnus.com)
8550
8551         * README: New file.
8552
8553 Mon Sep 19 16:35:23 1994  Jim Wilson  (wilson@sphagnum.cygnus.com)
8554
8555         * libc/stdlib/ecvtbuf.c (_gcvt): Undo last change.
8556
8557 Mon Sep 19 11:44:23 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
8558
8559         * libc/stdlib/setenv.c (_findenv): Declare.
8560
8561         * libc/include/sys/fcntl.h: Fix declarations of open, creat, and
8562         fcntl to not use _EXFUN, and change string parameters to open and
8563         creat to be ``const char *''.
8564         * libc/sys/sparc64/sys/fcntl.h: Likewise.
8565         * libc/sys/sparc64/creat.c (creat): Make PATH const.
8566         * libc/syscalls/sysopen.c: Include <fcntl.h>.
8567         (open) Make _FILE const.
8568         * libc/sys/z8ksim/glue.c (_open): Make BUF const.
8569         (_creat): Make PATH const.
8570         * libc/sys/h8300hms/syscalls.c (_open): Make PATH const.
8571         * libc/sys/h8500hms/syscalls.c (_open): Likewise.
8572         * libc/sys/m88kbug/syscalls.c (open): Likewise.
8573         * libc/sys/sh/syscalls.c (_open): Likewise.
8574         * stub/shared/glue.c (open): Make BUF const.
8575         * stub/ex93x/syscalls.c (open): Make FILENAME const.
8576
8577 Thu Sep  8 16:39:12 1994  Steve Chamberlain  (sac@jonny.cygnus.com)
8578
8579         * libc/include/errno.h: Add ENMFILE
8580         * libc/include/sys/config.h: Support Z8000.
8581         * libc/include/sys/signal.h: New signals for go32.
8582         * libc/machine/h8500/psi.S (__addpsir0r0): New function
8583         * libc/machine/h8500/cmpsi.S (__ucmppsi2): New function
8584         * libc/machine/sh/sdivsi3.s (__sdivsi3): Rewritten.
8585         * libc/stdlib/mallocr.c (_morecore_r): Minimum chunk
8586         size is variable, depending upon CHUNK_POWER.
8587         * libc/sys/go32/*.c: Upgrade to new go32 stuff.
8588
8589 Sun Sep  4 17:42:43 1994  Jim Wilson  (wilson@sphagnum.cygnus.com)
8590
8591         * libc/stdlib/ecvtbuf.c (_gcvt): Output '-' for negative numbers.
8592
8593 Fri Sep  2 10:56:01 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
8594
8595         * libc/include/_ansi.h (_PARAMS): Don't define if already defined.
8596
8597 Wed Aug 24 11:11:03 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
8598
8599         * configure.in: Change i[34]86 to i[345]86.
8600
8601         * libc/include/math.h: Don't define HUGE_VAL if it is already
8602         defined.
8603
8604 Wed Aug 17 15:18:02 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
8605
8606         * testsuite/libm.sac/test_erfc.c: Correct some result values.
8607         * testsuite/libm.sac/test_gammaf.c: Likewise.
8608         * testsuite/libm.sac/test_sin.c: Likewise.
8609         * testsuite/libm.sac/test_tanh.c: Likewise.
8610
8611 Tue Aug 16 16:12:53 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
8612
8613         * libc/include/machine/ieeefp.h: Don't try set endianness if it is
8614         already set.  Define typedefs __int32_t and __uint32_t.
8615         * libc/include/math.h: Include <machine/ieeefp.h>.
8616         (union __dmath): Use __uint32_t.
8617         * libm/math/fdlibm.h, libm/math/*.c: Use __int32_t and __uint32_t
8618         instead of int and unsigned int.
8619
8620 Thu Aug 11 15:16:09 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
8621
8622         Replace the math library with the SunPRO fdlibm package.
8623         * libm/math: Completely changed all files.
8624         * libm/ieeefp: Remove contents and directory.
8625         * libm/Makefile.in (LIBM_FP_LIB): Remove.
8626         (SUBDIRS): Just set to math/lib.a.
8627         * libm/libm.texinfo: Updated for new library.
8628         * libc/include/math.h: Extensive changes for new math library.
8629         * libc/include/ieeefp.h (isnanf, isinff, finitef): Change argument
8630         from _FLOAT_ARG to float.
8631         (maxpowtwo, maxpowtwof): Don't declare.
8632         * configure.in (fp_dir): Removed; was always ieeefp anyhow.
8633         (libm_fp_lib): Removed.
8634         * Makefile.in (MATHOBJS_IN_LIBC): Updated with new file names.
8635         * testsuite/libm.paranoia/Makefile.in (check): Correct --srcdir
8636         argument to ${RUNTEST}.
8637         * testsuite/libm.sac/Makefile.in (LOCAL_CFLAGS): Define.
8638         (.c.o): New rule.
8639         (RUNTESTFLAGS): Set CC and CFLAGS.
8640         (TESTS): Remove test_log2 and test_log2f.
8641         (${TESTS}): Pass ${LOCAL_CFLAGS}, not ${CFLAGS}.
8642         * testsuite/libm.sac/math.c (run_vector_1): Use float, not
8643         _FLOAT_ARG, for single precision argument type.
8644         * testsuite/libm.sac/sac.exp: Treat an error in bit 63 as an
8645         expected failure.  Close the input pipe.
8646         * testsuite/libm.sac/test.c (test_sok, test_iok, test_scok):
8647         Correct misspelling of inaccurate.
8648         (test_mok): Use ``inaccurate'', not ``wrong''.
8649         * testsuite/libm.sac/{test_acos.c, test_acosh.c, test_asin.c,
8650         test_asinh.c, test_atan.c, test_atanh.c, test_ceil.c,
8651         test_ceilf.c, test_cos.c, test_cosh.c, test_erf.c, test_erf.c,
8652         test_fabs.c, test_floor.c, test_floorf.c, test_fmod.c,
8653         test_fmodf.c, test_gamma.c, test_log1p.c, test_log1pf.c,
8654         test_yn.c): Correct many result values.  Many are still wrong.
8655
8656         * libc/stdlib/ecvtbuf.c (print_e): If _dtoa_r sets decpt to 9999,
8657         just copy the string.
8658         (_gcvt): Always return the buffer.
8659
8660 Tue Aug  9 13:43:23 1994  J.T. Conklin  (jtc@phishhead.cygnus.com)
8661
8662         * bcopy.c: fixed documentation, bcopy was not specified by ANSI.
8663
8664 Wed Aug  3 05:39:41 1994  D. V. Henkel-Wallace  (gumby@cygnus.com)
8665
8666         * libc/include/sys/reent.h: (struct _Bigint): add _reclaim
8667         structure.
8668         (struct _reent): add _p5s, _cvtlen, _cvtbuf.
8669         (_reclaim_reent): declare new entry point.
8670         * libc/reent/reent.c (cleanup_glue, _reclaim_reent): new
8671         functions.
8672
8673         * libc/stdlib/mprec.c (Balloc): Keep track of every struct bigint
8674         ever allocated, so that we can later reclaim them all.
8675         (pow5mult): make reentrant.
8676
8677         * libc/stdlib/ecvtbuf.c (fcvtbuf, ecvtbuf): extend these functions
8678         so that when given NULL as a buffer, return a pointer to static
8679         space in the rent structure.  This is not documented behaviour;
8680         it's only to support ecvt and fcvt, which aren't ANSI anyway.
8681         * libc/stdlib/efgcvt.c (fcvt, ecvt) Use new functionality (and
8682         therefore become reentrant).
8683         
8684         * libc/stdlib/dtoastub.c: remove spurious inclusion of mprec.h.
8685
8686 Mon Aug  1 16:52:24 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
8687
8688         * libc/include/machine/ieeefp.h: Check _AM29K, not ___AM29K__.
8689
8690 Thu Jul 28 15:40:21 1994  J.T. Conklin  (jtc@phishhead.cygnus.com)
8691
8692         * Makefile.in: Make link to libg.a after libc.a; this is needed
8693           for the testsuites to build executables when everything comes
8694           from the tree.
8695
8696 Mon Jun 27 17:14:29 1994  Bill Cox  (bill@rtl.cygnus.com)
8697
8698         * libc/Makefile.in: Add a VERSION variable so we can keep track.
8699         * libm/Makefile.in: Add a VERSION variable so we can keep track.
8700
8701 Wed Jun 22 10:26:00 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
8702
8703         * libc/include/stdio.h: Use __VALIST, not va_list.
8704
8705 Tue May 17 15:43:28 1994  Bill Cox  (bill@rtl.cygnus.com)
8706
8707         * testsuite/config/unix-libm.exp, testsuite/lib/libm.exp,
8708         testsuite/libm.sac/execute.exp:
8709           Replace error proc calls with perror calls.
8710
8711 Wed May 11 09:25:28 1994  Doug Evans  (dje@canuck.cygnus.com)
8712
8713         * libc/include/*.h: #include "_ansi.h" instead of <_ansi.h>.
8714         * libc/include/time.h: #define NULL as 0L.
8715
8716 Mon May  9 18:41:20 1994  Doug Evans  (dje@canuck.cygnus.com)
8717
8718         * host/any (INCLUDES): Delete -I of gcc/include, gcc -B takes
8719         care of it.
8720
8721 Mon May  9 18:39:39 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
8722
8723         * libc/include/sys/signal.h: Check for __GO32__, not __i386__ and
8724         not __unix__.
8725
8726 Sat May  7 17:07:36 1994  Steve Chamberlain  (sac@cygnus.com)
8727
8728         * configure.in (TARGET_CFLAGS): Set -O2 as default.
8729         (z8k-*-*): Use syscalls fake sys dir.
8730         * libc/sys/z8k/glue.c: Rename syscalls.
8731         * libc/sys/go32/Makefile.in: Use new routines.
8732         * libc/machine/Makefile.in: Fix typo in ln stuff.
8733
8734 Thu May  5 13:47:48 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
8735
8736         * Makefile.in (libm.a, crt0.o): Use cp if ln fails.
8737         * libc/Makefile.in (crt0.o): Likewise.
8738         * libc/machine/Makefile.in (lib.a): Likewise.
8739         * libc/sys/Makefile.in (lib.a, crt0.o): Likewise.
8740
8741         All Makefile.in files: Added mostlyclean, realclean and distclean
8742         targets.
8743
8744         * Makefile.in: Don't bother to unexport XTRAFLAGS or
8745         XTRAFLAGS_FOR_TARGET, since they are no longer passed down from
8746         the top level Makefile.
8747
8748 Tue Apr 26 15:10:34 1994  Doug Evans  (dje@canuck.cygnus.com)
8749
8750         * libc/sys/sparc64/sys/stat.h: New file.
8751         * libc/sys/sparc64/sys/time.h: New file.
8752         * libc/sys/sparc64/sys/types.h: New file.
8753
8754 Fri Apr 22 12:58:24 1994  Stan Shebs  (shebs@andros.cygnus.com)
8755
8756         * stub/ex93x/crt0.s (start): Add code to clear bss.
8757
8758 Wed Apr 13 10:34:58 1994  Doug Evans  (dje@canuck.cygnus.com)
8759
8760         * libc/include/sys/types.h (time_t): Properly protect inside
8761         #ifndef __time_t_defined.
8762
8763         * libc/stdio/fileno.c: New file.
8764         * libc/stdio/Makefile.in (OFILES, CHEWOUT_FILES): Add fileno.
8765         (fileno.o): Add dependency.
8766         * libc/include/stdio.h (__sgetc): Rename never to _never.
8767         (fileno macro): Disable, needs to do CHECK_INIT first.
8768
8769 Mon Apr 11 17:37:09 1994  Bill Cox  (bill@rtl.cygnus.com)
8770
8771         * testsuite/Makefile.in (EXPECT, RUNTEST): Set these for the check
8772         goal.
8773
8774         * testsuite/Makefile.in (check): Set TCL_LIBRARY for runtest.
8775         * testsuite/libm.paranoia/Makefile.in (check): Set TCL_LIBRARY for
8776         runtest.
8777         * testsuite/libm.sac/Makefile.in (check): Set TCL_LIBRARY for
8778         runtest.
8779
8780 Sat Apr  9 16:18:09 1994  Doug Evans  (dje@cygnus.com)
8781
8782         * libc/sys/sparc64/sys/fcntl.h: New file, define solaris versions
8783         of the various constants.
8784
8785 Thu Apr  7 21:19:07 1994  Mark Eichin  (eichin@cygnus.com)
8786
8787         * libc/include/math.h: #ifndef __math_68881 around things which
8788         conflict with the (gcc-provided) inline functions in
8789         gcc/ginclude/math-68881.h.
8790
8791 Thu Apr  7 02:50:43 1994  Doug Evans  (dje@cygnus.com)
8792
8793         * libc/include/_syslist.h (_gettimeofday): Define.
8794         (_times): Ditto.
8795         * libc/include/reent.h: #include <machine/types.h> to get _CLOCK_T_.
8796         (struct tms, timeval, timezone): Declare.
8797         (_gettimeofday_r, _times_r): Declare.
8798         * libc/include/time.h (_CLOCK_T_): Don't #undef.  Remove
8799         #ifdef _CLOCK_T_ surrounding definition of clock_t.
8800         (time_t): Add multiple definition protection, __time_t_defined.
8801         * libc/include/sys/time.h: Don't #include <time.h>.
8802         Always define struct timezone (remove #ifndef _TIME_H_).
8803         * libc/include/sys/times.h (_CLOCK_T_): Don't #undef.  Remove
8804         #ifdef _CLOCK_T_ surrounding definition of clock_t.
8805         * libc/reent/Makefile.in (OFILES): Add timer.o.
8806         (CHEWOUT_FILES): Add timer.def.  Add timer.o/timer.c dependence.
8807         * libc/reent/timer.c: New file.
8808         * libc/time/clock.c: #include <reent.h>.
8809         (clock): Call _times_r instead of times.
8810         * libc/time/time.c (HAVE_GETTIMEOFDAY): Renamed from
8811         HAVE_GET_TIME_OF_DAY.
8812         Add comment regarding supporting OS routine(s) required (for docs).
8813         #include <reent.h>.
8814         (time): Call _gettimeofday_r instead of gettimeofday.
8815         * libc/time/asctime.c: Fix comment regarding supporting OS routines.
8816         * libc/time/ctime.c: Ditto.
8817         * libc/time/strftime.c: Ditto.
8818         * libc/sys/sparc64/Makefile.in (TEMPLATE_SFILES): Remove gettimeofday.
8819         (TEMPLATE_SFILES_R): Define here.  Also define times.
8820         Add times_r.o/times.S dependence.
8821         (time2.c, junk.c): Deleted.
8822         * libc/sys/sparc64/time2.c: Deleted.
8823         * configure.in (sparc64-*-*): Define HAVE_GETTIMEOFDAY.
8824
8825         * libc/stdio/mktemp.c (_getpid_r): Renamed from _getpid.
8826         * libc/stdio/tmpnam.c (_getpid_r): Ditto.
8827         * libc/sys/sparc64/junk.c: Deleted.
8828
8829 Mon Mar 21 16:51:03 1994  Doug Evans  (dje@canuck.cygnus.com)
8830
8831         * libc/sys/sparc64/Makefile.in: Add times syscall.
8832         * libc/sys/sparc64/crt0.S: Handle stack bias at run time so we can
8833         be used with and without it.  Add comment clarifying Medium/Anywhere
8834         model requirements.
8835         * libc/sys/sparc64/sigsetjmp.S (setjmp, longjmp): Add svr4 support.
8836         * libc/sys/sparc64/sys/syscall.h (SYS_times): Define for sunos4
8837         even if obsolete.
8838
8839 Sun Mar 20 15:51:47 1994  Doug Evans  (dje@cygnus.com)
8840
8841         * configure.in (target_cflags): Move init.
8842         (sparc64-*-*): Define HAVE_BLKSIZE.
8843
8844 Wed Mar  9 10:44:52 1994  Doug Evans  (dje@canuck.cygnus.com)
8845
8846         * libc/include/sys/_types.h: New file.
8847         * libc/include/reent.h: #include it.
8848         Add comment describing REENTRANT_SYSCALLS_PROVIDED and
8849         MISSING_SYSCALL_NAMES.
8850         Sort syscalls.
8851         * libc/include/_syslist.h: Remove _raise.
8852         * libc/reent/signalr.c: New file.
8853         * libc/reent/Makefile.in: Compile it.
8854         * libc/signal/signal.c: Only use ifdef SIMULATED_SIGNALS.
8855         Add doc for raise and _raise_r.
8856         * libc/signal/raise.c: Only use ifndef SIMULATED_SIGNALS.
8857         (raise): Call _raise_r.
8858         (_raise_r): Call _getpid_r and _kill_r.
8859         * libc/stdlib/abort.c: Remove inclusion of stdio.h and _syslist.h.
8860         (abort): Loop forever calling raise and _exit.
8861
8862 Mon Mar  7 14:40:08 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
8863
8864         * configure.in: Remove extraneous echo.
8865
8866 Thu Mar  3 12:14:22 1994  Doug Evans  (dje@canuck.cygnus.com)
8867
8868         * libc/sys/sparc64/sys/dirent.h (MAXNAMLEN): #undef to avoid
8869         collision with unistd.h, and fix for svr4.
8870
8871 Wed Mar  2 13:55:25 1994  Doug Evans  (dje@canuck.cygnus.com)
8872
8873         * libc/stdio/local.h (_llicvt): Declare.
8874         (CVT_BUF_SIZE): Define (and buffer size from 512 to 128).
8875         * libc/stdio/cvt.c: Include "local.h" to get CVT_BUF_SIZE.
8876         (_llicvt): Define.
8877         (_sicvt): Fix function header (`value' is short).
8878         * libc/stdio/vfprintf.c (_vfprintf_r): Use CVT_BUF_SIZE.
8879         Add printing of long long's support.
8880         Add printing of 8 byte pointer support.
8881
8882 Fri Feb 11 21:52:11 1994  Steve Chamberlain  (sac@sphagnum.cygnus.com)
8883
8884         * libc/sys/sh/syscalls.c (pipe, execv, wait, fork, utime, chown,
8885         stat, chmod): New hooks. 
8886         (sbrk): Abort if stack and heap collide.
8887         * libc/machine/sh/udivsi3, libc/machine/sh/sdivsi3 Modified to
8888         shortcut when given small args.
8889         * libc/machine/sh/setjmp.s: Rewritten.
8890         * libc/machine/sh/strcmp.s (strcmp): New function takes advantage
8891         of cmp/str instruction.
8892
8893 Wed Feb  9 15:12:35 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
8894
8895         * configure.in: Accept powerpc* as a CPU type, using fp_dir ieeefp
8896         and machine_dir powerpc.
8897         * libc/include/machine/setjmp.h, libc/include/machine/ieeefp.h:
8898         Add cases for __powerpc__.
8899         * libc/machine/powerpc/Makefile.in, libc/machine/powerpc/setjmp.S:
8900         New files.
8901
8902         * libc/include/stdio.h (_iprintf_r): Declare correctly.
8903
8904 Thu Jan 27 10:36:27 1994  Steve Chamberlain  (sac@cygnus.com)
8905
8906         * libc/stdlib/callocr.c: New file with _calloc_r in it.
8907         * libc/stdlib/calloc.c (calloc_r): Now in callocr.c
8908
8909 Thu Jan 20 15:14:37 1994  Doug Evans  (dje@canuck.cygnus.com)
8910
8911         * libc/stdlib/ecvtbuf.c (print_f): Remove local "done".
8912         (print_e): More comments to describe args, etc.
8913         "type" arg may now be 'g' or 'G' for %g/G format --> remove
8914         trailing blanks.
8915         (_gcvt): Remove locals decpt, sign, end, p, done.
8916         More comments for print_e invocation.
8917         Pass "type" to print_e as is (g/G).
8918
8919 Wed Jan 19 16:34:18 1994  Rob Savoye  (rob@darkstar.cygnus.com)
8920
8921         * stub/shared/m68k-crt0.S: Changed so it compiles (and runs) on a
8922         stock m68000. 
8923
8924 Mon Jan 17 15:41:53 1994  Doug Evans  (dje@canuck.cygnus.com)
8925
8926         * libc/stdlib/mallocr.c (_morecore_r): Fix aligning of pointer so it
8927         works with any sized pointer, including ones bigger than ints and
8928         longs.
8929
8930 Thu Jan  6 14:53:21 1994  Doug Evans  (dje@canuck.cygnus.com)
8931
8932         * libc/sys/sparc64/{time2.c,utime.S,utime2.c}: New files.
8933
8934 Sat Dec 11 16:17:20 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
8935
8936         * libc/include/stdlib.h (_calloc_r): Add prototype.
8937         * libc/machine/h8500/negsi2.c: New file.
8938         * libc/machine/h8500/divsi3.c: Prevent overflow when dividing v
8939         large unsigned numbers.
8940         * libc/machine/h8500/cmpsi.c: Add cmppsi.
8941         * libc/stdlib/mallocr.c (morecore_r): Fix aligning pointers so it
8942         works when sizeof(size_t) != sizeof(char *).
8943         * libc/stdlib/mprec.c (Balloc): Call calloc rather than malloc to
8944         get play area
8945         * libc/stdlib/mprec.h: Define Just_16 if generating for z8000.
8946
8947 Mon Dec  6 15:59:53 1993  Doug Evans  (dje@rtl.cygnus.com)
8948
8949         * libc/include/assert.h (assert): Handle -traditional.
8950
8951 Tue Nov 16 15:49:24 1993  Mark Eichin  (eichin@cygnus.com)
8952
8953         * Makefile.in: added ; after every "fi" and "done" that wasn't at
8954         the end of a line (ie. anything before a backslash continuation)
8955         so that bash handles them.
8956
8957 Tue Nov 16 12:31:57 1993  david d `zoo' zuhn  (zoo@rtl.cygnus.com)
8958
8959         * libc/sys/go32/lstat.s: new file, copied from stat.s and renamed
8960         stat to lstat
8961
8962 Mon Nov 15 15:50:43 1993  Steve Chamberlain  (sac@jonny.cygnus.com)
8963
8964         * libc/sys/sh/crt0.s, libc/sys/sh/trap.s,
8965         libc/machine/sh/sdivsi3.s, libc/machine/sh/setjmp.s,
8966         libc/machine/sh/udivsi3.s: Use new calling convention.
8967
8968 Mon Nov 15 15:25:38 1993  Mark Eichin  (eichin@cygnus.com)
8969
8970         * libc/include/sys/unistd.h, libc/include/sys/stat.h: ANSI-fy
8971         chmod, access, chdir, chown by making _path const. Also fix _amode
8972         param of access.
8973
8974 Fri Nov 12 20:25:28 1993  Mark Eichin  (eichin@cygnus.com)
8975
8976         * libc/sys/a29khif/_tmpnam.s (_tmpnam): renamed function to
8977         _khif_tmpnam, because it doesn't comply with ANSI but may be
8978         useful anyway. Real tmpnam was already in libc/stdio, and was
8979         colliding with this one (pr 2176.) 
8980         * libc/sys/a29khif/stubs.s (tmpnam): removed tmpnam. This file is
8981         the wrong idea anyhow.
8982
8983 Mon Nov  8 07:50:16 1993  Doug Evans  (dje@canuck.cygnus.com)
8984
8985         * configure.in: Remove h8300h, we have multilib now.
8986
8987 Fri Nov  5 12:37:27 1993  Mark Eichin  (eichin@cygnus.com)
8988
8989         * libc/string/strcasecmp.c, libc/string/strncasecmp.c: new
8990         functions, to get preference over the ones in libiberty (since we
8991         provide correct declarations in <string.h>.
8992         * libc/string/Makefile.in: add support for strncasecmp,
8993         strcasecmp.
8994
8995 Fri Nov  5 09:05:45 1993  D. V. Henkel-Wallace  (gumby@blues.cygnus.com)
8996
8997         * Change netware config not to look for cpu explicitly.
8998
8999 Thu Nov  4 14:21:25 1993  Doug Evans  (dje@canuck.cygnus.com)
9000
9001         * libc/sys/sparc64/{creat.c,junk.c}: New files.
9002         * libc/sys/sparc64/Makefile.in: Add dependencies.
9003
9004 Wed Nov  3 10:42:49 1993  Doug Evans  (dje@canuck.cygnus.com)
9005
9006         * configure.in: Clean up v9 a bit, new "os" aoutv8.
9007
9008 Tue Nov  2 10:00:44 1993  D. V. Henkel-Wallace  (gumby@cygnus.com)
9009
9010         * libc/include/sys/reent.h: make structure smaller by allocating
9011         some stuff when needed.
9012         * libc/signal/signal.c: allocate as needed
9013         * libc/stdio/findfp.c,stdio/local.h: ditto
9014         * libc/stdlib/mprec.c: ditto
9015
9016         * libc/time/localtime.c: don't return a dangling stack ptr.
9017
9018 Wed Sep 29 20:42:34 1993  Rob Savoye  (rob@darkstar.cygnus.com)
9019
9020         * stub/mvme135/crt0.S, stub/mvme135/glue.c: Moved to stub/generic.
9021
9022 Wed Sep 29 16:27:49 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
9023
9024         * libc/include/stdio.h (__sputc): comment out static inline which
9025           confuses coff toolchains.
9026
9027 Thu Sep  2 16:31:36 1993  Mark Eichin  (eichin@cygnus.com)
9028
9029         * libc/sys/a29khif/{_close.s, _fstat.s, _lseek.s, _sbrk.s,
9030         _write.s, getpid.c, kill.c, read.s}:
9031         * libc/sys/a29khif/stubs.s: eliminated stubs that already go
9032         through the syscalls directory.
9033
9034 Fri Oct 29 13:59:58 1993  Jeffrey Wheat  (cassidy@cygnus.com)
9035
9036         * configure.in: fixed double quote gotcha.
9037
9038 Wed Oct 27 15:27:09 1993  Rob Savoye  (rob@darkstar.cygnus.com)
9039
9040         * stub/ex931: stub library for sparclite board.
9041         * stub/idp: Renamed from mc68ec. Added contructor table
9042         stuff to linker script.
9043         * stub/mvme135: Renamed from m68kmvme. Added contructor table
9044         stuff to linker script.
9045
9046 Tue Oct 26 17:01:23 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
9047
9048         * configure.in: Configure testsuites only if they exist.
9049
9050 Tue Oct 26 12:37:11 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
9051
9052         * configure.in: Don't set machine_dir for i386 until there is
9053         something in libc/machine/i386 to compile.  For i[34]86-*-netware*
9054         use sys/netware, don't use signal, define NO_EXEC, ABORT_PROVIDED,
9055         CLOCK_PROVIDED and MALLOC_PROVIDED.
9056
9057         * libc/sys/netware: New directory.  Contains simplistic and
9058         probably incorrect stubs for NetWare.  Should be enough to load
9059         the library.
9060         * libc/sys/netware/crt0.c, libc/sys/netware/environ.c,
9061         libc/sys/netware/getpid.c, libc/sys/netware/link.c: New NetWare
9062         stub files.
9063
9064         * libc/reent/execr.c: Don't use if NO_EXEC is defined.
9065         * libc/reent/sbrkr.c: Don't use if MALLOC_PROVIDED is defined.
9066         * libc/stdlib/abort.c: Don't use if ABORT_PROVIDED is defined.
9067         * libc/time/clock.c: Don't use if CLOCK_PROVIDED is defined.
9068
9069 Mon Oct 25 16:48:08 1993  Roland H. Pesch  (pesch@cygnus.com)
9070
9071         * testsuite/Makefile.in: add "docs" dummy target for consistency
9072         with rest of newlib; turn "info" and "install-info" into dummy
9073         targets, since they wouldn't have worked.  (Depended on
9074         nonexistent "doc" subdir.)
9075
9076 Fri Oct 22 20:37:32 1993  david d `zoo' zuhn  (zoo@rtl.cygnus.com)
9077
9078         * configure.in: handle mips* instead of mips
9079
9080 Thu Oct 21 08:57:24 1993  Ian Lance Taylor  (ian@cygnus.com)
9081
9082         * libc/include/sys/dirent.h: New file.  If it is not overridden by
9083         a version of libc/sys/*/sys/dirent.h, it includes the next
9084         <dirent.h> file in case there is one lurking somewhere.
9085
9086 Fri Oct 15 14:17:40 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
9087
9088         * libc/stdlib/strtoul.c (_strtoul_r): Several changes for ANSI
9089         compliance, namely: Accept a minus sign.  Consider a single 0 with
9090         a radix of 0 as being a conversion.  Determine overflow correctly.
9091         If an overflow occurs, set *ptr to the end of the number, not the
9092         middle.
9093         * lib/stdlib/strtol.c (_strtol_r): Determine overflow correctly.
9094
9095 Thu Oct 14 21:49:52 1993  Doug Evans  (dje@canuck.cygnus.com)
9096
9097         * libc/machine/h8300/divsi3.S (divmodsi4): Fix h8300h case.
9098
9099 Fri Oct  1 17:17:34 1993  Doug Evans  (dje@canuck.cygnus.com)
9100
9101         * Makefile.in (INSTALL): Use $srcrootpre.
9102         (crt0.o): Replace $< with $(CRT0_DIR)/$(CRT0), Sun make
9103         can't handle it.
9104         * libc/Makefile.in (crt0.o): Spell out $<, Sun make can't handle
9105         it.
9106         * libc/sys/Makefile.in (crt0.o, lib.a): Ditto.
9107         * stub/Makefile.in (crt0.o, TARGETLIB): Ditto.
9108         * libc/sys/sparc64/Makefile.in (isatty.o): Sun VPATH lossage.
9109         * libm/math/Makefile.in (matherr.o): Ditto.
9110
9111 Thu Sep 30 11:09:17 1993  Steve Chamberlain  (sac@phydeaux.cygnus.com)
9112
9113         * configure.in: Build multidirs for z8k.
9114         * libc/include/stdlib.h (_strtoul_r): add prototype.
9115         * libc/include/machine/limits.h: Get INT_MIN right for all the z8k family.
9116         * libc/include/machine/setjmp.h: Add for z8k.
9117         * libc/machine/z8k/{mulsi.o, udivsi3.o, umodsi3.o, modsi3.o} obsolete.
9118         * libc/sys/z8ksim/glue.c: tidy up.
9119
9120 Mon Sep 20 14:04:46 1993  Doug Evans  (dje@canuck.cygnus.com)
9121
9122         * libc/unix/{execl.c execle.c execlp.c execv.c execvp.c}:
9123         New files.  Requires execve system call.
9124         * libc/unix/Makefile.in: Use them.
9125         * libc/sys/sparc64/{execl.c execle.c execlp.c execv.c execvp.c}:
9126         Deleted, moved to libc/unix.
9127         * libc/sys/sparc64/Makefile.in: Remove them.
9128
9129 Mon Sep 20 10:38:32 1993  Doug Evans  (dje@canuck.cygnus.com)
9130
9131         * libc/sys/sparc64/{template.S template_r.S}: New files.
9132         * libc/sys/sparc64/Makefile.in: Build source for trivial syscalls
9133         from templates.
9134         * libc/sys/sparc64/{chdir.S chmod.S close.S dup.S fcntl.S
9135         fork.S fstat.S lseek.S link.S mkdir.S open.S pipe.S read.S rmdir.S
9136         umask.S unlink.S wait4.S write.S}: Removed, now built from
9137         templates.
9138
9139 Sun Sep 19 14:52:57 1993  Doug Evans  (dje@canuck.cygnus.com)
9140
9141         * libc/time/time.c: #include <_ansi.h>.
9142
9143 Sun Sep 19 13:43:25 1993  Doug Evans  (dje@canuck.cygnus.com)
9144
9145         * configure.in (sparc64-*-*): Remove -D__SIZE_TYPE__.
9146
9147 Mon Sep 13 13:52:16 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
9148
9149         * configure.in: match m8* rather than m88k so that m88110 is
9150           recognized as well.
9151
9152 Tue Sep  7 12:19:32 1993  Doug Evans  (dje@canuck.cygnus.com)
9153
9154         * libc/sys/h8300hms/{Makefile.in, _exit.c, misc.c}:
9155         Renamed exit.c to _exit.c to avoid collision with stdlib/exit.c.
9156         misc.c: New file.
9157
9158         * configure.in: Add multilib support to h8300.
9159
9160 Mon Sep  6 14:07:06 1993  Doug Evans  (dje@canuck.cygnus.com)
9161
9162         * libc/stdlib/abort.c (abort): Remove _VOLATILE from return type.
9163         * libc/include/_ansi.h (_ATTRIBUTE): New macro for __attribute__.
9164         * libc/include/stdlib.h (exit, abort): Add noreturn attribute.
9165
9166 Mon Sep  6 14:24:18 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
9167
9168         * configure.in: Corrected multidirs for sparc target.
9169
9170 Mon Aug 30 15:56:44 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
9171
9172         Support for building newlib multiple times with different
9173         compilation flags.
9174         * configure.in: Only configure doc at top level.  Set multidirs
9175         when appropriate for target, unless not at top level.  If
9176         multidirs is set, independently configure each subdirectory.
9177         Adjust TOP, MULTIDIRS and MULTISUBDIR appropriately in Makefile.
9178         * Makefile.in (MULTIDIRS, MULTISUBDIR): New variables,
9179         automagically set by configure.in.
9180         (all): If MULTIDIRS is set, build multiple copies of libraries.
9181         (install): If MULTIDIRS is set, install multiple copies of
9182         libraries.  Install in $(tooldir)/lib/$(MULTISUBDIR).  If
9183         MULTISUBDIR is set, don't bother to install header files.
9184         * host/any (INCLUDES, CHEW): Use $(SRCTOP) rather than $(TOP) from
9185         ${srcrootpre}.
9186         * stub/configure.in: Set MULTISUBDIR appropriately.
9187         * stub/Makefile.in (install): Install in
9188         $(tooldir)/lib/$(MULTISUBDIR).
9189         * All Makefile.in files: Define SRCTOP as well as TOP.
9190
9191 Mon Aug 30 10:34:24 1993  Doug Evans  (dje@canuck.cygnus.com)
9192
9193         * libc/machine/h8300/{mulhi3.S, divhi3.S}: Comment out if h8300h.
9194         * libc/machine/h8300/{mulsi3.S, divsi3.S}: Add h8300h support.
9195
9196 Thu Aug 26 19:38:12 1993  Doug Evans  (dje@canuck.cygnus.com)
9197
9198         * libc/sys/h8300hms/exit.c (_exit): New function.
9199
9200 Wed Aug 25 16:31:48 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
9201
9202         * configure.in: recognize m88110.
9203
9204 Fri Aug 20 16:46:23 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
9205
9206         * libc/sys/m88kbug/crt0.c: pretty up, remove extraneous comments,
9207           prototype main and call with args.
9208
9209 Fri Jul 30 16:52:47 1993  K. Richard Pixley  (rich@cygnus.com)
9210
9211         First real try at system traps for m88k-bug.
9212         * libc/sys/m88kbug/syscalls.c: many changes.  Convert from stubs
9213           to real trap calls.
9214         * libc/sys/m88kbug/sys/systraps.h: new file.
9215
9216 Tue Jul 27 16:31:16 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
9217
9218         Patches to fix info building when target does not use sys
9219         directory.
9220         * libc/Makefile.in (targetdep.tex): add sys.tex separately.
9221         * libc/sys.tex, libc/sys/sys.tex: moved from libc/sys/sys.tex to
9222           libc/sys.tex.
9223         * libc/sys/Makefile.in (doc): do nothing.
9224
9225 Mon Jul 26 17:08:11 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
9226
9227         * libc/Makefile.in (CRT0): new macro.
9228           (all): depend on $(CRT0) rather than crt0.o.
9229
9230         * configure.in: fix libc_sys_dir -> libc_sys_lib thinko.
9231           do not default crt0, instead, set crt0 and crt0_dir based on
9232           sys_dir and stub_dir.
9233
9234         * Makefile.in (CRT0_DIR): new macro.
9235           (all): depend on $(CRT0) rather than crt0.o which may not exist.
9236           (crt0.o): depend on $(CRT0_DIR)/$(CRT0) rather than simply
9237           $(CRT0).
9238           ($(CRT0)): recur by cd'ing into $(CRT0_DIR).
9239
9240 Sun Jul 25 17:51:51 MDT 1993  Jeffrey Wheat  (cassidy@cygnus.com)
9241
9242         * testsuite/lib/libm.exp: 
9243                 added code to support compiling and linking of tests for 
9244                 libm.sac (paranoia to be added next) and processing the 
9245                 pass or failure of the tests.
9246
9247         * testsuite/config/unix-libm.exp:
9248                 platform specific proc's for dealing with compiler, linker
9249                 and the way we execute and process the test results.
9250
9251         * testsuite/libm.sac/execute.exp:
9252                 generic framework for the sac tests. the config and lib 
9253                 expect code for specific platforms tie it all together.
9254
9255         * testsuite/libm.sac/test_is.c:
9256                 changed the output of the test to be consistant with the
9257                 other tests. parsing of pass nad fail messages is now fixed.
9258
9259 Fri Jul 23 19:20:07 1993  Per Bothner  (bothner@kalessin)
9260
9261         * libc/include/{assert.h, ctype.h, dirent.h, errno.h, fastmath.h,
9262         locale.h, math.h, pwd.h, reent.h, setjmp.h, signal.h, stdio.h,
9263         stdlib.h, string.h, termios.h, time.h, utime.h, utmp.h}: For C++:
9264         #ifdef __cplusplus, surround by extern ""C { ... }.
9265         * libc/include/assert.h:  Do *not* protect assert.h against
9266         multiple inclusion!  Also, #undef it before #define, to allow
9267         redefinition.
9268         * libc/include/stdio.h (getlogin, cuserid):  Removed.  These
9269         should be only in unistd.h.
9270
9271         * libc/include/sys/{fcntl.h, reent.h, stat.h, time.h, times.h,
9272         unistd.h}: For C++: #ifdef __cplusplus, surround by extern ""C {
9273         ... }.
9274
9275 Fri Jul 23 10:15:33 1993  Doug Evans  (dje@canuck.cygnus.com)
9276
9277         * libc/machine/sparc/Makefile.in: Must create a library, even
9278         if empty.
9279
9280 Wed Jul 21 16:00:37 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
9281
9282         * configure.in: set machine_dir for m88k.  edit crt0 definition
9283           into makefiles.
9284
9285         * Makefile.in, libc/Makefile.in (crt0): pull up from lower directories.
9286
9287         * libc/Makefile.in (all): also build crt0.o.
9288
9289         * libc/machine/i386/Makefile.in, libc/machine/sparc/Makefile.in,
9290           libc/machine/z8k/Makefile.in, libm/Makefile.in (clean): no need
9291           to remove CRT0.
9292
9293         * libc/machine/m88k/Makefile.in (TOP, TARGETLIB): removed.
9294           (all): reworked to build in place.
9295           (clean): remove lib.a
9296           (Makefile): remove redundant ./, call $(SHELL) rather than sh.
9297
9298         * libc/sys/m88kbug/crt0.c (start): renamed to _start.
9299           (_start): key off edata rather than _start_bss.
9300
9301 Wed Jul 21 14:29:47 1993  david d `zoo' zuhn  (zoo@cygnus.com)
9302
9303         * libc/include/sys/unistd.h, libc/include/reent.h,
9304         libc/reent/sbrkr.c: change sbrk to return void* instead of char*.
9305
9306 Tue Jul 20 13:19:18 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
9307
9308         * libm/Makefile.in, libc/Makefile.in ($(SUBDIRS)): dollar escape a dollar sign.
9309
9310         * Makefile.in (libc.a): break into two rules, one for libc.a and
9311           one for libc/libc.a.  Force subdirs current before rebuilding
9312           library.
9313           (libm.a): break into two rules, one for libm.a and one for
9314           libm/libm.a.  Force subdirs current before rebuilding library.
9315
9316         * libc/Makefile.in (SUBLIBS): fix typo.
9317
9318         * libc/sys/Makefile.in (all): force descent into subdirs, then
9319           rebuild library iff out of of date.
9320
9321 Fri Jul 16 17:47:57 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
9322
9323         Rework so that library is built and then finished rather than
9324         being built on each invocation of make.
9325
9326         * host/any (machine_dir, sys_dir, signal_dir): these are not
9327           shared and have been moved to their associated Makefile.in's.
9328           (AR_FLAGS): switch to qc which is faster.
9329         * configure.in: no longer assign machine_dir for m88k.  set
9330           stub_dir, stub_lib, & crt0 for m68k*-unknown-{aout,coff}.  If
9331           stub_dir set, then add to configdirs.  add comment about silly
9332           configuration.
9333           (configdirs): drop stub.  It will be added only
9334           when needed.
9335           (libm_fp_lib, libc_unix_lib, libc_signal_lib, libc_machine_lib,
9336           libc_sys_dir, fake_sys_dir, libc_fake_sys_lib, stub_dir,
9337           stub_lib, crt0): new variables for tailoring lower level
9338           makefiles.  Assign accordingly and edit into makefiles.
9339         * libm/Makefile.in: updated copyright.
9340           (TARGETLIB): removed.
9341           (FLAGS_TO_PASS): removed TARGETLIB, machine_dir, sys_dir.
9342           (SUBDIRS): removed TARGETDEP_DIRS.
9343           (LIBM_FP_LIB, SUBLIBS): new macros.
9344           (all): reworked.
9345           (force): new target to force rebuilds.
9346           (Makefile): call $(SHELL) rather than sh.  drop redundant ./
9347         * libc/sys/a29khif/Makefile.in, libc/sys/decstation/Makefile.in,
9348           libc/sys/go32/Makefile.in, libc/sys/h8300hms/Makefile.in,
9349           libc/sys/h8500hms/Makefile.in, libc/sys/m88kbug/Makefile.in,
9350           libc/sys/sh/Makefile.in, libc/sys/sparc64/Makefile.in,
9351           libc/sys/sun4/Makefile.in, libc/sys/sysvi386/Makefile.in,
9352           libc/sys/sysvnecv70/Makefile.in, libc/sys/z8ksim/Makefile.in,
9353           stub/m68kmvme/Makefile.in: updated copyright.
9354           (TARGETLIB, TARGETCRT0, CRT0): macros removed.
9355           (all): reworked.  made this the default rule.
9356           (clean): also remove lib.a.
9357           (Makefile): call $(SHELL) rather than sh.  drop redundant ./
9358         * stub/Makefile.in: updated copyright.
9359           (TARGETLIB, TARGETCRT0, CRT0, TOP): removed.
9360           (stub_lib): new macro.
9361           (FLAGS_TO_PASS): removed TARGETLIB, stub_dir, TARGETCRT0.  Added
9362           RANLIB.
9363           (all): reworked.
9364           (clean, install): assume stub_dir exists.
9365           (Makefile): depend on configure.in.  call $(SHELL) rather than
9366           sh.  drop redundant ./
9367         * stub/configure.in (stublib): new macro, assign it, edit it into
9368           makefiles.
9369         * Makefile, libc/Makefile.in, doc/Makefile.in, libc/sys/Makefile.in:
9370           updated copyright.
9371           (all): reworked.
9372           (Makefile): call $(SHELL) rather than sh.  drop redundant ./
9373         * libc/Makefile.in (TARGETCRT0): removed.
9374           (FLAGS_TO_PASS): dropped TARGETLIB, machine_dir, sys_dir,
9375           TARGETCRT0.
9376           (SUBDIRS): drop TARGETDEP_DIRS.
9377           (LIBC_SIGNAL_LIB, LIBC_SYS_LIB, LIBC_MACHINE_LIB, LIBC_UNIX_LIB,
9378           LIBC_FAKE_SYS_LIB, SUBLIBS): new macros for configuration.
9379           (force): new target to force rebuilds.
9380         * libc/sys/Makefile.in (TARGETCRT0, sys_dir): removed.
9381           (FLAGS_TO_PASS): TARGETLIB, machine_dir, sys_dir, TARGETCRT0
9382           removed.
9383           (clean): assume sys_dir always exists.
9384         * libm/test/Makefile.in (Makefile): call $(SHELL) rather than sh.
9385           drop redundant ./
9386         * libc/ctype/Makefile.in, libc/errno/Makefile.in,
9387           libc/locale/Makefile.in, libc/machine/Makefile.in,
9388           libc/machine/a29k/Makefile.in, libc/machine/h8300/Makefile.in,
9389           libc/machine/h8500/Makefile.in, libc/machine/i386/Makefile.in,
9390           libc/machine/i960/Makefile.in, libc/machine/m68k/Makefile.in,
9391           libc/machine/mips/Makefile.in, libc/machine/necv70/Makefile.in,
9392           libc/machine/sh/Makefile.in, libc/machine/sparc/Makefile.in,
9393           libc/machine/z8k/Makefile.in, libc/reent/Makefile.in,
9394           libc/signal/Makefile.in, libc/stdio/Makefile.in,
9395           libc/stdlib/Makefile.in, libc/string/Makefile.in,
9396           libc/sys/Makefile.in, libc/syscalls/Makefile.in,
9397           libc/time/Makefile.in, libc/unix/Makefile.in,
9398           libm/ieeefp/Makefile.in, libm/math/Makefile.in: updated copyright.
9399           (TARGETLIB): removed.
9400           (all): reworked.
9401           (clean): also remove lib.a.
9402           (Makefile): call $(SHELL) rather than sh.  drop redundant ./
9403         * Makefile.in: (machine_dir, sys_dir, stub_dir, stub_lib, CRT0):
9404           new macros.
9405           (SUBDIRS): moved to follow frag inclusion, change stub to
9406           stub_dir.
9407           (FLAGS_TO_PASS): removed machine_dir, sys_dir, signal_dir which
9408           are now set in the libc Makefile.
9409         * libc/machine/Makefile.in (TARGETCRT0, machine_dir): removed.
9410           (FLAGS_TO_PASS): removed TARGETLIB, machine_dir, sys_dir,
9411           TARGETCRT0.
9412           (force): new target to force rebuilds.
9413         * stub/configure.in: determine and set stub_lib for for Makefile.
9414
9415 Thu Jul 15 12:01:27 1993  Doug Evans  (dje@canuck.cygnus.com)
9416
9417         * libc/sys/h8300hms/Makefile.in: Make `all' the default target.
9418         crt0.s renamed to crt0.S.
9419         * libc/sys/h8300hms/crt0.S: Add h8/300h support.
9420
9421         * libc/machine/h8300/Makefile.in: Make `all' the default target.
9422         * libc/machine/h8300/{cmpsi.S,ucmpsi.S}: #ifdef out entire file if
9423         h8300h.
9424         * libc/machine/h8300/defines.h: Add macros to handle pointers for
9425         h8300 (16 bits) and h8300h (32 bits).
9426         * libc/machine/h8300/{divsi3.S,mulsi3.S,memcpy.S,memset.S,
9427         reg_memcpy.S,reg_memset.S,strcmp.S}: Add h8300h support.
9428
9429 Thu Jul 15 10:13:29 1993  Ian Lance Taylor  (ian@cygnus.com)
9430
9431         * libc/machine/m88k/setjmp.S, Makefile.in: New files; a simple
9432         implementation of setjmp and longjmp for the m88k.
9433         * libc/include/machine/setjmp.h: Added __m88000__ case.
9434
9435 Wed Jul 14 10:10:30 1993  Doug Evans  (dje@canuck.cygnus.com)
9436
9437         * configure.in: Recognize h8300h as variant of h8300.
9438
9439 Tue Jul 13 12:24:11 1993  Steve Chamberlain  (sac@phydeaux.cygnus.com)
9440
9441         * libc/include/sys/unistd.h (read, write): get prototypes right.
9442         (sbrk): New prototype.
9443         * libc/reent/sbrkr.c (sbrkr): Use correct sbrk prototype.
9444         * libc/stdio/local.h: Include unistd.h.
9445         * libc/machine/h8300/syscalls.c: Names have changed.
9446
9447 Mon Jul 12 18:08:42 1993  K. Richard Pixley  (rich@cygnus.com)
9448
9449         * configure.in: add sys_dir assignment for m88k-bug.
9450
9451 Thu Jul  8 09:16:21 1993  Doug Evans  (dje@canuck.cygnus.com)
9452
9453         * libc/sys/sparc64/sys/syscallasm.h: New macros to handle either
9454         a.out or elf.
9455         * libc/sys/sparc64: all *.S files: Use new macros.
9456         * libc/sys/sparc64/isatty.c: New file.
9457         * libc/sys/sparc64/Makefile.in: Stop using /lib/libc.a for
9458         functions beyond what newlib provides.
9459
9460 Thu Jul  8 09:11:28 1993  Doug Evans  (dje@canuck.cygnus.com)
9461
9462         * libc/include/sys/stat.h: Move st_atime so not doubly defined for
9463         svr4.
9464
9465 Thu Jul  8 09:09:16 1993  Doug Evans  (dje@canuck.cygnus.com)
9466
9467         * libc/include/machine/ieeefp.h: Add support for h8/300h.
9468
9469 Fri Jul  2 10:11:20 1993  K. Richard Pixley  (rich@cygnus.com)
9470
9471         * configure.in: add m88k.
9472         * libc/include/machine/ieeefp.h: add case for m88k.  Also add
9473         sanity check so no one else need ever chase what I did to find
9474         this.
9475
9476         * libm/math/Makefile.in (FAKEC): added atanf.c log1pf.c scalbnf.c.
9477
9478 Fri Jul  2 09:15:21 1993  Ian Lance Taylor  (ian@cygnus.com)
9479
9480         * doc/makedoc.c: Include <ctype.h>.
9481
9482 Wed Jun 30 09:35:06 1993  Doug Evans  (dje@canuck.cygnus.com)
9483
9484         * libc/Makefile.in (FLAGS_TO_PASS): Add TARGET_ASFLAGS.
9485         * libc/sys/Makefile.in (FLAGS_TO_PASS): Add TARGET_ASFLAGS.
9486         * libc/machine/Makefile.in (FLAGS_TO_PASS): Add TARGET_ASFLAGS.
9487
9488         * libm/test/Makefile.in (all): Link with ../../lib[cm].a.
9489
9490 Sun Jun 27 17:05:20 1993  Doug Evans  (dje@sphagnum.cygnus.com)
9491
9492         * libc/include/errno.h (ENOSYS): Added.
9493
9494         * libc/unix/getpwd.c (getcwd): Fix typo (_up -> up).
9495
9496 Mon Jun 21 09:03:32 1993  Steve Chamberlain  (sac@phydeaux.cygnus.com)
9497
9498         * libc/stdio/fflush.c (fflush): Check for reent struct
9499         initialization.
9500         * libc/stdio/fdopen.c (fdopen): Avoid namespace conflict.
9501
9502 Fri Jun 18 16:06:05 1993  Mark Eichin  (eichin@rtl.cygnus.com)
9503
9504         * libc/stdlib/dtoastub.c: new file -- move user callable "dtoa"
9505         out of dtoa.c so it doesn't pollute the namespace.
9506         * libc/include/_syslist.h: new file -- mappings from _function to
9507         function, for systems where we can't win (by default, all of them,
9508         until we start updating system calls.)
9509         * libc/syscalls: new directory -- stubs for exporting _function
9510         names as unmodified function names.
9511         * libc/configure.in: add MISSING_SYSCALL_NAMES to enable
9512         _syslist.h on all platforms by default, but put hooks in for
9513         fake_sys_dir so we can include it when we've renamed the system
9514         calls.
9515         * libc/reent/execr.c libc/reent/filer.c libc/reent/fstatr.c
9516         libc/reent/linkr.c libc/reent/sbrkr.c libc/reent/statr.c
9517         libc/signal/raise.c libc/signal/signal.c libc/stdio/fdopen.c
9518         libc/stdio/mktemp.c libc/stdio/tmpnam.c libc/stdlib/abort.c
9519         libc/stdlib/system.c libc/unix/getcwd.c libc/unix/getlogin.c
9520         libc/unix/getpass.c libc/unix/getut.c libc/unix/ttyname.c: change
9521         non ANSI functions to call _function.
9522
9523 Wed Jun  9 09:48:26 1993  Ian Lance Taylor  (ian@cygnus.com)
9524
9525         * libc/stdlib/strtoul.c (_strtoul_r): Handle leading 0 correctly
9526         when base 16 is specified.  Don't accept non-digits if radix > 10.
9527
9528 Thu Jun  3 10:01:15 1993  Doug Evans  (dje@canuck.cygnus.com)
9529
9530         * libc/include/math.h: Rename xxx_r fns to _xxx_r.
9531
9532 Wed Jun  2 16:54:16 1993  Jim Wilson  (wilson@sphagnum.cygnus.com)
9533
9534         * libc/include/sys/stat.h: Surround text after #endif with
9535         comments.
9536
9537 Wed Jun  2 12:47:32 1993  Ian Lance Taylor  (ian@cygnus.com)
9538
9539         * libc/stdlib/mallocr.c: If MALLOC_PROVIDED is defined, just make
9540         _malloc_r, _realloc_r, and free_r call the corresponding
9541         non-reentrant functions.
9542
9543         * libm/math/modf.c (modf): We now take the address of ipart, so
9544         don't make it a register variable.
9545
9546 Tue Jun  1 18:25:54 1993  Doug Evans  (dje@canuck.cygnus.com)
9547
9548         * libm/math/*: Rename all xxx_r fns to _xxx_r.
9549
9550 Wed May 26 22:06:35 1993  Roland H. Pesch  (pesch@cygnus.com)
9551
9552         * libc/libc.texinfo and embedded docn throughout: formatting
9553         improvements, minor rephrasing for clarity, and improved
9554         reentrancy docn.
9555
9556 Sun May 23 17:29:49 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
9557
9558         * libm/ieeefp/infinity.c (maxpowtwof): Fix initialzation bug.
9559
9560         * libc/stdio/cvt.c (_licvt): Print the right value on machines
9561         where sizeof(int) != sizeof(long).
9562
9563 Fri May 21 22:09:32 1993  Roland H. Pesch  (pesch@fowanton.cygnus.com)
9564
9565         * libc/reent/execr.c, libc/reent/filer.c, libc/reent/linkr.c,
9566         libc/reent/sbrkr.c, libc/reent/statr.c, libc/stdio/tmpnam.c,
9567         libc/stdlib/atol.c, libc/stdlib/rand.c, libc/string/strpbrk.c,
9568         libc/string/strspn.c, libm/ieeefp/isnan.c, libm/math/bessel.c,
9569         libm/math/matherr.c: changes for better docn formatting (info).
9570
9571         * libc/libc.texinfo, libc/ctype/ctype.tex, libc/locale/locale/tex,
9572         libc/reent/reent.tex, libc/signal/signal.tex,
9573         libc/stdio/stdio.tex, libc/stdlib/stdlib.tex,
9574         libc/string/strings.tex, libc/sys/sys.tex, libc/time/time.tex,
9575         libm/libm.texinfo, libm/ieeefp/ieeefp.tex, libm/math/math.tex: use
9576         makeinfo node defaulting to get better Info file node structure.
9577         (Requires recent sac change to doc/makedoc.c and doc/doc.str.)
9578         Also include a few formerly missing sections (subroutines).
9579
9580         * doc/doc.str: delete fossil expansion for "func"
9581
9582         * default.menu, no-signal.menu: delete.
9583
9584         * Makefile.in, libc/Makefile.in, configure.in, host/any: simplify
9585         method used to adjust doc for missing "signals" chapter when 
9586         signal_dir is empty.
9587
9588 Thu May 20 21:38:37 MDT 1993  Jeffrey Wheat  (cassidy@cygnus.com)
9589
9590         * configure.in: added testsuite/libm.sac
9591
9592 Wed May 19 14:52:34 1993  Doug Evans  (dje@thepub.cygnus.com)
9593
9594         * libc/sys/sparc64/crt0.S: Set %g4 to 0 (to test Medium/Anywhere
9595         code model).
9596
9597 Tue May 18 13:17:21 1993  Ian Lance Taylor  (ian@cygnus.com)
9598
9599         * libm/Makefile.in: Use $(MAKE) rather than make, and define
9600         MAKEOVERRIDES to be empty.
9601
9602 Mon May 17 08:42:44 1993  Ian Lance Taylor  (ian@cygnus.com)
9603
9604         * configure.in: Don't build mips-*-* with -msoft-float, since that
9605         makes it incompatible with hard floating point.
9606
9607 Mon May 17 00:03:35 MDT 1993  Jeffrey Wheat  (cassidy@cygnus.com)
9608
9609         * Makefile.in: added recursive 'make check'
9610
9611 Thu May 13 16:24:18 MDT 1993  Jeffrey Wheat  (cassidy@cygnus.com)
9612
9613         * configure.in: added ./testsuite ./testsuite/libm.paranoia
9614         * ./testsuite/Makefile.in: created
9615         * ./testsuite/libm.paranoia: paranoia tests added
9616
9617 Thu May 13 10:30:24 1993  Ian Lance Taylor  (ian@cygnus.com)
9618
9619         * configure.in: For mips-*-* set machine_dir to mips.
9620
9621         * libc/machine/mips: New directory.
9622         * libc/machine/mips/Makefile.in: New file.
9623         * libc/machine/mips/setjmp.S: New file; simplistic MIPS version of
9624         setjmp and longjmp.
9625         * libc/include/machine/setjmp.h: Added __mips__ case.
9626
9627         * libc/machine/lmips: Removed unused and useless directory.
9628
9629 Mon May  3 10:22:31 1993  Ian Lance Taylor  (ian@cygnus.com)
9630
9631         * configure.in: Accept i486-*-sco* as well as i386-*-sco*.
9632
9633 Thu Apr 15 15:16:44 1993  Doug Evans  (dje@canuck.cygnus.com)
9634
9635         * libc/sys/sparc64/crt0.S: Add comment (%g1 contains atexit arg at
9636         start up).
9637
9638 Fri Apr  9 13:32:26 1993  Ian Lance Taylor  (ian@cygnus.com)
9639
9640         * libc/include/machine/setjmp-dj.h: Use _SETJMP_DJ_H rather than
9641         SETJMP_H.
9642
9643 Thu Apr  8 10:07:18 1993  Doug Evans  (dje@canuck.cygnus.com)
9644
9645         * libm/test/convert.c: structure member errno -> errno_val.
9646         Must include <errno.h> to use errno, it's a macro now.
9647         * libm/test/math.c: Ditto.
9648         * libm/test/math2.c: Include errno.h.
9649         * libm/test/string.c: Ditto.
9650         * libm/test/test.h: structure member errno -> errno_val.
9651         Remove extern int errno decl.
9652
9653 Thu Apr  8 07:56:33 1993  Ian Lance Taylor  (ian@cygnus.com)
9654
9655         * libc/stdio/Makefile.in: Added dependencies on local header
9656         files.
9657         * libc/stdio/std.h, libc/stdio/vfprintf.h: Removed unused header
9658         files.
9659
9660 Wed Apr  7 16:19:32 1993  Ian Lance Taylor  (ian@cygnus.com)
9661
9662         * libc/include/machine/ieeefp.h: Added __MIPSEB__ case.
9663
9664 Wed Apr  7 10:55:21 1993  Doug Evans  (dje@canuck.cygnus.com)
9665
9666         * libc/stdio/siprintf.c libc/stdio/sscanf.c libc/stdio/vsprintf.c:
9667         Initialize _data.
9668
9669         * libc/stdio/vfprintf.c: No need to declare _icvt, _licvt, _sicvt.
9670         * libc/stdio/local.h: Add prototype for _licvt.
9671
9672         * libc/stdio/ungetc.c (__submore): Use _malloc_r,_realloc_r
9673         instead of malloc,reealloc.
9674
9675         * libc/stdlib/local.h: New file.
9676         * libc/stdlib/efgcvt.c: #include local.h.
9677         (gcvt): Fix call to _gcvt.
9678         * libc/stdlib/ecvtbuf.c: #include local.h.
9679
9680         * libc/stdlib/Makefile.in: new files mallocr.c mstats.c.
9681         * libc/stdlib/mallocr.c mstats.c malloc.h: New files.
9682         * libc/stdlib/malloc.c: main routines moved to mallocr.c.
9683
9684         * libc/stdlib/atexit.c: moved global data to struct _reent.
9685         * libc/stdlib/exit.c: use struct _atexit in struct _reent.
9686
9687         * libc/reent/reent.c (inpure_data): _REENT_INIT macro modified.
9688
9689 Wed Apr  7 09:41:50 1993  Doug Evans  (dje@canuck.cygnus.com)
9690
9691         * libc/include/sys/reent.h: Stuff required by ANSI headers moved
9692         here from ../reent.h.
9693
9694 Tue Apr  6 12:56:01 1993  Ian Lance Taylor  (ian@cygnus.com)
9695
9696         * Makefile.in (MATHOBJS_IN_LIBC): List of object files which
9697         should be provided in both libc.a and libm.a.
9698         (libc.a): Depend on targ-include and libm.a.  Copy
9699         $(MATHOBJS_IN_LIBC) from libm.a to libc.a.
9700         (libm.a): Depend on targ-include.
9701         * configure.in (subdirs): Removed libc/math.
9702
9703 Mon Apr  5 10:18:16 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
9704
9705         * libm/ieeefp/infinity.c (maxpowtwo): Fix initialization bug.
9706
9707 Sat Apr  3 11:06:07 1993  Doug Evans  (dje@canuck.cygnus.com)
9708
9709         * libc/include/{errno.h, math.h, stdio.h, stdlib.h}: Use
9710         sys/reent.h instead of reent.h.
9711         * libc/include/reent.h: Split into two parts: stuff needed by ANSI
9712         headers moved to sys/reent.h.  
9713         * libc/include/signal.h: _MAX_SIGNALS moved to sys/signal.h.
9714         * libc/include/sys/signal.h: Define _MAX_SIGNALS if
9715         __need__MAX_SIGNALS defined.
9716         * libc/include/stdio.h: struct __sFILE moved to sys/reent.h.
9717         std{in,out,err} refer to new _std{in,out,err} members.
9718
9719 Fri Apr  2 11:27:12 1993  Doug Evans  (dje@canuck.cygnus.com)
9720
9721         * libc/include/sys/signal.h: #define _SYS_SIGNAL_H for general
9722         case.
9723
9724 Fri Apr  2 09:41:10 1993  Doug Evans  (dje@canuck.cygnus.com)
9725
9726         * libc/sys/sparc64/execve.S (execve): Insert nop in delay slot,
9727         rather than whatever macro seterrno() has.
9728
9729 Thu Apr  1 16:47:08 1993  Doug Evans  (dje@canuck.cygnus.com)
9730
9731         * libc/locale/locale.c: Reentrant routines _r_xxx renamed to
9732         _xxx_r.  struct reent_struct renamed to struct _reent for ANSI.
9733
9734         * libc/include/machine/fastmath.h: Use _HAVE_STDC instead of
9735         __STDC__.
9736
9737         * libc/reent/{execr.c, filer.c, fstatr.c, linkr.c, reent.c,
9738         reent.tex, sbrkr.c, statr.c}: _r_xxx reentrant routines renamed to
9739         _xxx_r.  struct reent_struct renamed to struct _reent for ANSI.
9740
9741         * libc/signal/signal.c: Reentrant routines _r_xxx renamed to
9742         _xxx_r.  struct reent_struct renamed to struct _reent for ANSI.
9743
9744         * libc/stdio/{fclose.c, fdopen.c, findfp.c, fiprintf.c, flags.c,
9745         fopen.c, fprintf.c, freopen.c, fscanf.c, fseek.c, ftell.c,
9746         fwalk.c, getchar.c, gets.c, iprintf.c, local.h, makebuf.c,
9747         mktemp.c, perror.c, printf.c, putchar.c, puts.c, refill.c,
9748         remove.c, rename.c, scanf.c, setvbuf.c, siprintf.c, sprintf.c,
9749         sscanf.c, stdio.c, tmpfile.c, tmpnam.c, vfprintf.c, vfprintf.h,
9750         vfscanf.c, vprintf.c, vsprintf.c}: Reentrant routines _r_xxx
9751         renamed to _xxx_r.  struct reent_struct renamed to struct _reent
9752         for ANSI.  structure members given leading "_" for ANSI.  Use
9753         _HAVE_STDC instead of __STDC__ and _HAVE_STDARG.
9754
9755         * libc/stdlib/{__adjust.c, calloc.c, dtoa.c, ecvtbuf.c, malloc.c,
9756         mprec.c, mprec.h, rand.c, std.h, strtod.c, strtol.c, strtoul.c,
9757         system.c}: Reentrant routines _r_xxx renamed to _xxx_r.  struct
9758         reent_struct renamed to struct _reent for ANSI.
9759         Structure members given leading "_" for ANSI.
9760         _CONST --> const in prototypes.
9761         Use _HAVE_STDC instead of __STDC__.
9762
9763         * libc/string/strtok.c: Reentrant routines _r_xxx renamed to
9764         _xxx_r.
9765         struct reent_struct renamed to struct _reent for ANSI.
9766         Structure members given leading "_" for ANSI.
9767
9768         * libc/time/asctime.c: Reentrant routines _r_xxx renamed to
9769         _xxx_r.
9770         struct reent_struct renamed to struct _reent for ANSI.
9771
9772         * libm/math/{acos.h, acosh.h, asin.c, asinh.h, atanh.h, bessel.h,
9773         cbrt.h, cosh.h, erf.c, erf.h, error.c, exp.c, fmod.c, frexp.h,
9774         gamma.h, hypot.h, ldexp.c, log.h, log10.c, log1p.c log2.c,
9775         mathimpl.h, pow.c, remainder.c, sincos.c, sinh.h, sqrt.h, tan.c,
9776         tanh.h}: struct reent_struct renamed to struct _reent for ANSI.
9777
9778         * libc/include/{_ansi.h, ctype.h, math.h, reent.h, locale.h,
9779         signal.h, stdio.h, stdlib.h, string.h, time.h}:
9780         Use _HAVE_STDC instead of __STDC__ and _HAVE_STDARG.
9781         #ifndef _STRICT_ANSI non-ANSI routines.
9782         Reentrant routines renamed from _r_xxx to _xxx_r.
9783         No need to use _STRICT_ANSI on _xxx_r reentrant routines.
9784         Use _STRICT_ANSI instead of __STRICT_ANSI, _ANSI_SOURCE, etc.
9785         Clean up namespace (structure members have leading "_").
9786         struct reent_struct renamed to struct _reent for ANSI compliance.
9787         _CONST --> const in function prototypes.
9788
9789         * libc/include/string.h: Add NULL and size_t.
9790
9791         * libc/sys/sparc64/Makefile.in: New syscall routines for link,
9792         unlink, wait, wait4. Reentrant syscall routines close, fork,
9793         fstat, link, lseek, open, read, sbrk, stat, unlink, wait, wait4,
9794         write.
9795         * libc/sys/sparc64/cerror.S (cerror_r): New routine.
9796         * libc/sys/sparc64/{close.S, fork.S, fstat.S, link.S, lseek.S,
9797         open.S, read.S, sbrk.S, stat.S, unlink.S, wait.S, wait4.S,
9798         write.S}: Define reentrant versions.
9799         * libc/sys/sparc64/sys/syscallasm.h (defsyscall_r): New macro for
9800         reentrant syscalls.
9801
9802         * libc/sys/sparc64/crt0.S (start): Fix initialization of environ.
9803
9804         * libc/include/stdlib.h (RAND_MAX): Fix value.
9805
9806 Thu Apr  1 12:28:30 1993  Ian Lance Taylor  (ian@cygnus.com)
9807
9808         * libc/sys/a29khif/_main.c: Removed unnecessary file.
9809         * libc/sys/a29khif/Makefile.in (OFILES): Removed _main.c, moved
9810         VPATH support targets after all: target.
9811
9812         * stub/mvme135/mvme.S: Renamed exceptionhandler to
9813         exceptionHandler, which is what mvme135-stub.c expects.
9814
9815 Wed Mar 31 17:42:03 1993  Doug Evans  (dje@cygnus.com)
9816
9817         * libc/stdio/tmpnam.c (worker): Fix test for _r_open() failure.
9818
9819         * libc/unix/getpass.c (getpass): Use stdin,stderr instead of
9820         def_stdin/def_stderr (latter removed from stdio.h to make it ANSI
9821         compliant).
9822
9823 Tue Mar 30 09:58:21 1993  Doug Evans  (dje@canuck.cygnus.com)
9824
9825         * libc/reent/execr.c (_r_wait): Re-order args to make reent_struct
9826         first.
9827         libc/reent/filer.c (_r_open, _r_close, _r_lseek, _r_read,
9828         _r_write): Ditto.
9829         libc/reent/fstatr.c (_r_fstat): Ditto.
9830         libc/reent/linkr.c (_r_link, _r_unlink): Ditto.
9831         libc/reent/sbrkr.c (_r_sbrk): Ditto.
9832         libc/reent/statr.c (_r_stat): Ditto.
9833
9834         * libc/stdio/fopen.c (_r_fopen): Re-order args to _r_open.
9835         * libc/stdio/freopen.c (freopen): Ditto for _r_open, _r_free.
9836         * libc/stdio/fseek.c (fseek): Ditto for _r_fseek.
9837         * libc/stdio/makebuf.c (__smakebuf): Ditto for _r_fstat.
9838         * libc/stdio/mktemp.c (_gettemp): Ditto for _r_stat, _r_open.
9839         * libc/stdio/remove.c (_r_remove): Ditto for _r_unlink.
9840         * libc/stdio/rename.c (_r_rename): Ditto for _r_link, _r_unlink.
9841         * libc/stdio/stdio.c (__sread): Ditto for _r_read.
9842         (__swrite): Ditto for _r_lseek, _r_write.
9843         (__sseek): Ditto for _r_lseek.
9844         (__close): Ditto for _r_close.
9845         * libc/stdio/tmpnam.c (worker): Ditto for _r_open, _r_close.
9846
9847         * libc/stdlib/malloc.c (_r_morecore): Re-order args to _r_sbrk.
9848         * libc/stdlib/system.c (_r_system): Ditto for _r_wait.
9849
9850         * libc/include/reent.h: Re-order arguments to _r_xxx syscall fns
9851         to make reent_struct the first argument (and thus consistent with
9852         the rest of newlib).
9853
9854         * stub/mvme135/mvme135-stub.c (initializeRemcomErrorFrame): Remove
9855         reference to __STDC__.
9856
9857 Mon Mar 29 12:34:32 1993  Doug Evans  (dje@canuck.cygnus.com)
9858
9859         * libc/stdlib/exit.c (exit): Use _REENT->__cleanup instead of
9860         global __cleanup.
9861
9862 Wed Mar 24 11:54:35 1993  Doug Evans  (dje@canuck.cygnus.com)
9863
9864         * libc/stdio/freopen.c (freopen): Ensure stdio is initialized
9865         first.
9866         libc/stdio/fclose.c (fclose): Ditto.
9867
9868 Tue Mar 23 01:26:52 1993  Doug Evans  (dje@rtl.cygnus.com)
9869
9870         * Run through indent and rename reentrant routines for ANSI.
9871         libc/stdio/{clearerr.c cvt.c fclose.c fdopen.c feof.c ferror.c
9872         fflush.c fgetc.c fgetpos.c fgets.c findfp.c fiprintf.c flags.c
9873         fopen.c fprintf.c fputc.c fputs.c fread.c freopen.c fscanf.c
9874         fseek.c fsetpos.c ftell.c fvwrite.c fwalk.c fwrite.c getc.c
9875         getchar.c gets.c iprintf.c makebuf.c mktemp.c perror.c printf.c
9876         putc.c putchar.c puts.c refill.c remove.c rename.c rewind.c rget.c
9877         scanf.c setbuf.c setvbuf.c siprintf.c sprintf.c sscanf.c stdio.c
9878         tmpfile.c tmpnam.c ungetc.c vfprintf.c vfscanf.c vprintf.c
9879         vsprintf.c wbuf.c wsetup.c local.h}
9880
9881         * libc/locale/locale.c: Reformat and rename for ANSI, GNU style.
9882
9883         * Run through indent and rename xxx_r fns to _r_xxx for ANSI.
9884         libc/stdlib/{__adjust.c __exp10.c __ten_mu.c abort.c abs.c
9885         assert.c atexit.c atof.c atoi.c atol.c bsearch.c calloc.c div.c
9886         dtoa.c ecvtbuf.c efgcvt.c exit.c getenv.c labs.c ldiv.c malloc.c
9887         mbtowc.c mprec.c putenv.c qsort.c rand.c setenv.c strdup.c
9888         strtod.c strtol.c strtoul.c system.c wctomb.c mprec.h}
9889
9890         * Run through indent.
9891         libc/string/{bcmp.c bcopy.c bzero.c index.c memchr.c memcmp.c
9892         memcpy.c memmove.c memset.c rindex.c strcat.c strchr.c strcmp.c
9893         strcoll.c strcpy.c strcspn.c strerror.c strlen.c strncat.c
9894         strncmp.c strncpy.c strpbrk.c strrchr.c strspn.c strstr.c strtok.c
9895         strxfrm.c}
9896
9897         * libc/time/{asctime.c clock.c ctime.c difftime.c gmtime.c
9898         localtime.c mktime.c strftime.c time.c}:
9899         Run through indent and rename xxx_r (reentrant) fns to _r_xxx for ANSI.
9900
9901         * Reformatting + renaming (for ANSI, GNU style, consistency).
9902         libc/include/{_ansi.h, assert.h, ctype.h, errno.h, fastmath.h,
9903         ieeefp.h, locale.h, math.h, paths.h, pwd.h, reent.h, setjmp.h,
9904         signal.h, stdio.h, stdlib.h, string.h, time.h, unistd.h}
9905
9906 Fri Mar 19 11:28:01 1993  Doug Evans  (dje@cygnus.com)
9907
9908         * libc/include/stdio.h (stdin_r): Fix.
9909
9910 Fri Mar 19 09:43:48 1993  Ian Lance Taylor  (ian@cygnus.com)
9911
9912         * Makefile.in: Unexport some variables to keep GNU make from
9913         putting them in the environment and using up needed ARG_MAX space
9914         (a hack is used to let this work with older makes as well).
9915
9916 Tue Mar 16 15:11:08 1993  Ian Lance Taylor  (ian@cygnus.com)
9917
9918         * Makefile.in: Use $(MAKE) rather than make.
9919         (MAKEOVERRIDES): Define to be empty.
9920         (FLAGS_TO_PASS): Don't pass down LD (it's not used).
9921         (libc.a, libm.a): Depend on targ-include.
9922         * host/any (LD): Don't define.
9923         (INCLUDES): Use targ-include.   
9924         * stub/Makefile.in (MAKEOVERRIDES): Define to be empty.
9925         (FLAGS_TO_PASS): Don't pass down LD (it's not used).
9926         * libc/Makefile.in: Use $(MAKE) rather than make.
9927         (MAKEOVERRIDES): Define to be empty.
9928         (FLAGS_TO_PASS): Don't pass LD (it's not used).
9929         (all): Rewrote to be slightly smaller.
9930         * libc/machine/Makefile.in, libc/sys/Makefile.in (MAKEOVERRIDES):
9931         Define to be empty.
9932         (FLAGS_TO_PASS): Don't pass LD (it's not used).
9933         * libm/Makefile.in (FLAGS_TO_PASS): Don't pass LD (it's not used).
9934
9935 Mon Mar 15 08:45:41 1993  Ian Lance Taylor  (ian@cygnus.com)
9936
9937         * libc/sys/go32/gerrno.s: Renamed from errno.s to avoid conflict
9938         with errno/errno.c.
9939
9940 Fri Mar 12 09:46:54 1993  Ian Lance Taylor  (ian@cygnus.com)
9941
9942         * Changes for reentrancy.
9943         libc/stdio/fdopen.c, libc/stdio/freopen.c, libc/stdio/perror.c:
9944         Use ptr->_errno, not errno.
9945         libc/stdio/mktemp.c (mkstemp_r, mktemp_r): New functions.
9946         libc/stdio/remove.c (remove_r): New function.
9947         libc/stdio/rename.c (rename_r): New function.
9948         libc/stdio/fopen.c, libc/stdio/freopen.c, libc/stdio/fseek.c,
9949         libc/stdio/makebuf.c, libc/stdio/mktemp.c, libc/stdio/remove.c,
9950         libc/stdio/rename.c, libc/stdio/stdio.c, libc/stdio/tmpnam.c: Use
9951         reentrant versions of system calls.
9952         libc/stdio/gets.c: Call getchar_f, not nonexistent getchar_r.
9953         libc/stdio/scanf.c: Use stdin_r, not nonexistent stdin_n.
9954         libc/stdio/tmpfile.c: Use tmpnam_f, not nonexistent tmpnam_r.
9955         libc/stdio/findfp.c: Include <string.h>.
9956         libc/stdio/fread.c, libc/stdio/rget.c, libc/stdio/scanf.c: Include
9957         "local.h".
9958         libc/stdio/wbuf.c: Include "fvwrite.h"
9959
9960         * libc/stdlib/{dtoa.c, ecvtbuf.c, mprec.c, strtod.c}: Include
9961         <string.h>.
9962         libc/stdlib/malloc.c: Call sbrk_r rather than sbrk.
9963         (NULL): Don't define if already defined.
9964         libc/stdlib/system.c: Call reentrant versions of system calls.
9965         (system_r): New function.
9966
9967         * Changes for reentrancy.
9968         libc/include/_ansi.h (_PARAMS): New macro.
9969         libc/include/errno.h: Define errno as a macro that calls __errno.
9970         (__errno_r): New macro for reentrant code.
9971         libc/include/math.h: Include reent.h.  Declare many reentrant
9972         functions.
9973         (signgam): Now a macro, not a variable.
9974         (struct exception): Added err field.
9975         libc/include/reent.h: Don't declare __sglue.  Added function
9976         declarations.
9977         (struct reent_struct): Moved errno to beginning.  Added _signgam.
9978         libc/include/stdio.h, libc/include/stdlib.h: Added function
9979         declarations.
9980
9981         * More reentrancy hacking.
9982         libc/errno/errno.c (__errno): New function.
9983         libc/reent/execr.c, libc/reent/filer.c, libc/reent/fstatr.c,
9984         libc/reent/linkr.c, libc/reent/sbrkr.c, libc/reent/statr.c: New
9985         files.
9986         
9987         * Added many new reentrant functions to libm/math/*.
9988         libm/math/error.c (__matherror): Added reent_struct pointer
9989         argument. Changed all callers.
9990         libm/math/gamma.c (signgam): Removed. Set ptr->_signgam, instead.
9991         libm/math/exp.h, libm/math/pow.h, libm/math/sincos.h,
9992         libm/math/tan.h: Removed obsolete unused header files.
9993
9994         * libc/sys/a29khif/stubs.s: Use register lr0, not v0.
9995
9996         * libc/sys/sun/Makefile.in (COPYOFILES): Don't pull in errno.o.
9997
9998 Mon Mar  8 16:43:43 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
9999
10000         * libc/sys/a29khif/stubs.s: clobber safe register, and fill all
10001         delay slots.
10002
10003 Tue Mar  2 14:47:00 1993  Jeffrey Osier      (jeffrey@fowanton.cygnus.com)
10004
10005         * libc/libc.texinfo:  comment out reentrancy chapter (duh)
10006
10007 Tue Mar  2 14:34:16 1993  Jeffrey Osier      (jeffrey@fowanton.cygnus.com)
10008
10009         * libc/reent/reent.tex:  New file.  (text from
10010         newlib/libc/libc.texinfo)
10011         * libc/stdio/tmpnam.c:  fixed doc typo
10012         * libc/stdlib/rand.c:   fixed doc typo
10013
10014 Tue Mar  2 14:34:16 1993  Jeffrey Osier      (jeffrey@fowanton.cygnus.com)
10015
10016         * libc/reent/reent.tex:  New file.  (text from
10017         newlib/libc/libc.texinfo)
10018
10019 Fri Feb 26 12:20:54 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
10020
10021         support for reentrancy
10022         * libc/reent/reent.c, libc/reent/Makefile.in, libc/reent/reent.c:
10023         new files
10024         * libc/errno/errno.c, libc/include/ieeefp.h,
10025         libc/include/locale.h, libc/include/reent.h,
10026         libc/include/signal.h, libc/include/stdio.h,
10027         libc/include/stdlib.h, libc/include/string.h, libc/include/time.h,
10028         libc/signal/signal.c libc/stdio/cvt.c, libc/stdio/fclose.c,
10029         libc/stdio/fdopen.c, libc/stdio/fflush.c, libc/stdio/fgets.c,
10030         libc/stdio/findfp.c, libc/stdio/flags.c, libc/stdio/fopen.c,
10031         libc/stdio/fputc.c, libc/stdio/freopen.c, libc/stdio/fseek.c,
10032         libc/stdio/ftell.c, libc/stdio/fwalk.c, libc/stdio/getchar.c,
10033         libc/stdio/gets.c, libc/stdio/glue.h, libc/stdio/iprintf.c,
10034         libc/stdio/local.h, libc/stdio/makebuf.c, libc/stdio/perror.c,
10035         libc/stdio/printf.c, libc/stdio/putchar.c, libc/stdio/puts.c,
10036         libc/stdio/refill.c, libc/stdio/scanf.c, libc/stdio/setvbuf.c,
10037         libc/stdio/sprintf.c, libc/stdio/tmpfile.c, libc/stdio/tmpnam.c,
10038         libc/stdio/ungetc.c, libc/stdio/vfprintf.c, libc/stdio/vfprintf.h,
10039         libc/stdio/vfscanf.c, libc/stdio/vprintf.c, libc/stdio/wsetup.c,
10040         libc/stdlib/__adjust.c, libc/stdlib/__exp10.c,
10041         libc/stdlib/assert.c, libc/stdlib/atexit.c, libc/stdlib/atol.c,
10042         libc/stdlib/dtoa.c, libc/stdlib/ecvtbuf.c, libc/stdlib/malloc.c,
10043         libc/stdlib/mprec.c, libc/stdlib/mprec.h, libc/stdlib/rand.c,
10044         libc/stdlib/setenv.c, libc/stdlib/std.h, libc/stdlib/strtod.c,
10045         libc/stdlib/strtol.c, libc/stdlib/strtoul.c, libc/string/strtok.c,
10046         libc/time/asctime.c, libc/time/localtime.c, libc/time/mktime.c,
10047         libc/time/strftime.c: modify to provide reentracy.
10048
10049         new routines:
10050         strtok_r, asctime_r, fdopen_r, _cleanup_r, fopen_r, iprintf_r,
10051         perror_r, printf_r, putchar_r, puts_r, scanf_r, sprintf_r,
10052         tmpfile_r, vfiprintf_r, vfprintf_r, strtod_r, dtoa_r, rand_r,
10053         srand_r, strtoul_r,strtol_r, free_r, malloc_r, morecore_r,
10054         mstats_r, realloc_r, localeconv_r, setlocale_r
10055
10056 Wed Feb 17 20:17:15 1993  Mark Eichin  (eichin@cygnus.com)
10057
10058         * libc/include/machine/ieeefp.h, libc/include/machine/setjmp.h,
10059         libc/include/sys/config.h, libc/include/sys/signal.h,
10060         libc/include/sys/stat.h, libc/include/sys/types.h: For compiler
10061         provided macros (such as m68000), use the ansi version
10062         (__m68000__) so that the library can be used with code compiled
10063         -ansi. In particular, m68000, mc68000, _AM29K, i386, MIPSEL, unix,
10064         and sparc.
10065
10066 Wed Feb 17 13:01:34 1993  Jim Wilson  (wilson@sphagnum.cygnus.com)
10067
10068         * configure.in (sparc*): Don't set -fsoft-float for sparc
10069         configurations.  Do set -fsoft-float for sparclite configurations.
10070
10071 Fri Feb 12 16:25:52 1993  Roland H. Pesch  (pesch@fowanton.cygnus.com)
10072
10073         * default.menu, no-signal.menu: alternate forms of libc main menu
10074           (in newlib rather than newlib/libc due to configuration restrictions)
10075
10076         * configure.in: select one of the two menus above, link to
10077         libc.menu
10078
10079         * libc/libc.texinfo: include menu from separate file
10080
10081 Fri Feb 12 12:50:06 1993  Ian Lance Taylor  (ian@cygnus.com)
10082
10083         * Makefile.in (FLAGS_TO_PASS): Put INSTALL back in.
10084         (info): Split long shell command in half.
10085         * libc/Makefile.in (info, targetdep.tex): Don't pass everything to
10086         sub-makes, just CHEW and TARGETDOC. 
10087         (targetdep.tex): Removed now special handling of sys and machine
10088         subdirectories, made obsolete some time ago.
10089         * libc/machine/Makefile.in (doc): Don't pass everything to
10090         sub-make, just CHEW and TARGETDOC.
10091         (Makefile): New target.
10092         * libc/sys/Makefile.in (Makefile): New target.
10093
10094 Thu Feb 11 15:25:15 1993  Ian Lance Taylor  (ian@cygnus.com)
10095
10096         * Makefile.in (here and most subdirectories): Only pass down CHEW
10097         and TARGETDOC when making info, not for other targets.
10098
10099         * Makefile.in (here and most subdirectories), host/any: Use $(AR)
10100         $(AR_FLAGS) rather than $(ARUPDATE).
10101
10102 Wed Feb 10 11:57:52 1993  Ian Lance Taylor  (ian@cygnus.com)
10103
10104         * Try to reduce command line length:
10105         * Makefile.in (FLAGS_TO_PASS): don't pass down exec_prefix,
10106         CC_FOR_BUILD, CFLAGS_FOR_BUILD, INSTALL or CHEW.
10107         (info, docs): pass CC_FOR_BUILD and CFLAGS_FOR_BUILD to doc.
10108         (info): Pass CHEW to other subdirs.
10109
10110 Tue Feb  9 14:01:42 1993  Mark Eichin  (eichin@cygnus.com)
10111
10112         * configure.in: add signal_dir, like unix_dir, but by default it
10113         is set to "signal" so that a29khif can turn it off (since a29khif
10114         has raise() as part of machine-specific signal.s.)
10115
10116 Fri Jan 15 12:09:50 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
10117
10118         * libc/sys/config.h, libc/machine/ieeefp.h: add Z8000 support
10119         * libc/stdio/Makefile.in: pass CFLAGS so vfiprintf.c gets built
10120         correctly.
10121         * libc/stdio/fdopen.c, libc/stdio/fgets.c, libc/stdio/fscanf.c,
10122         libc/stdio/vfprintf: type lint.
10123         * libc/sys/z8ksim/crt0.c (start): Z8001/Z8002 independent
10124         initialzation code.
10125         * libc/sys/z8ksim/glue.c: Z8001/Z8002 clean system calls.
10126
10127 Tue Dec 29 10:15:33 1992  Ian Lance Taylor  (ian@cygnus.com)
10128
10129         * stub/mvme135/mvme135-asm.S: new file.
10130         stub/mvme135mvme135-stub.c: moved all assembler routines into
10131         mvme135-asm.S.
10132         stub/mvme135/Makefile.in: build mvme135-stub.o.
10133
10134 Mon Dec 28 12:40:43 1992  Ian Lance Taylor  (ian@cygnus.com)
10135
10136         * Makefile.in: don't pass down $(CPP); use $(CC) -E in
10137         sub-Makefiles instead, to try to avoid line length limitations.
10138
10139 Mon Dec 21 18:36:13 1992  Per Bothner  (bothner@rtl.cygnus.com)
10140
10141         * libc/include/unistd.h (read, write):  Use void* instead of
10142         char*.
10143
10144 Thu Dec 17 13:49:46 1992  Mark Eichin  (eichin@cygnus.com)
10145
10146         * stub/go32/resetpc: sample script to send a reset packet to the
10147         stub
10148
10149         * stub/go32/I386STUB.C: new file, gdb/i386stub.c modified for the
10150         DOS environment, which compiles with Turbo C.
10151
10152         * stub/go32/DSER32.LNK: new file, linker commands for serial
10153         remote stub.
10154
10155         * stub/go32/CONTROL.C: turn off debug_mode, add CYGNUS tag line to
10156         start up message to identify version; call set_debug_traps.
10157
10158         * stub/go32/DEBUG.C: turn off debug_mode (so stub doesn't need any
10159         keyboard interaction); call handle_exception() in go_til_stop,
10160         rather than return, so that the remote stub gets control.
10161
10162         * stub/go32/MAKEFILE: fixed to actually use DOS commands (del and
10163         rename, rather than mv), set flags that work with current Turbo C,
10164         including using the /3 flag; also, add commands to build dser32.
10165
10166         * stub/go32/DEBUG32.LNK, stub/go32/GO32.LNK: fix paths to match
10167         default Turbo C installation (\tc rather than \usr)
10168
10169         * stub/go32/MONO.C (printf): current Turbo C uses "..." instead of
10170         "&..."
10171
10172 Mon Dec 14 09:37:33 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
10173
10174         * libc/include/math.h: added _DOUBLE_IS_32BITS checks
10175
10176 Thu Nov 12 22:31:04 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
10177
10178         * libc/stdio/cvt.c (licvt): new function to convert ints when
10179         sizeof(int) != sizeof(long).
10180
10181         * libc/include/stdio.h: added prototype for iprintf.
10182         * libc/include/machine/limits.h machine/ieeefp.h: z8k stuff
10183
10184 Tue Nov 10 12:18:12 1992  Ian Lance Taylor  (ian@cygnus.com)
10185
10186         * libc/machine/m68k/setjmp.S: use __USER_LABEL_PREFIX__ and
10187         __REGISTER_PREFIX__.
10188
10189 Mon Nov  2 13:50:14 1992  Ian Lance Taylor  (ian@cygnus.com)
10190
10191         * libc/sys/m68kbare: moved into stub directory.
10192
10193 Mon Nov  2 13:40:42 1992  Ian Lance Taylor  (ian@cygnus.com)
10194
10195         * configure.in, Makefile.in: created new directory stub, to hold
10196         sample code for specific targets.
10197
10198 Wed Oct 28 02:19:55 1992  Mark Eichin  (eichin@cygnus.com)
10199
10200         * restored libc/sys/go32/sys/fcntl.h, to override incorrect values
10201         in the unified libc/include/sys/fcntl.h.
10202
10203 Wed Oct 21 13:55:58 1992  Doug Evans  (dje@rtl.cygnus.com)
10204
10205         * libc/stdlib/ecvtbuf.c: (print_f,_gcvt): printf("%f", 0.01)
10206         printed .01, not 0.01.
10207
10208 Mon Oct 19 11:05:55 1992  Ian Lance Taylor  (ian@cygnus.com)
10209
10210         * configure.in: compile with -m68000 for m68* targets.
10211
10212 Sun Oct 18 05:29:05 1992  Mark Eichin  (eichin@cygnus.com)
10213
10214         * libm/math/remainder.c (remainder): document the svr4 and sunos
10215         references used to construct the function.
10216
10217 Sat Oct 17 21:46:16 1992  Mark Eichin  (eichin@cygnus.com)
10218
10219         * libm/math/remainder.c (rint, remainder): fix old typos.
10220         * libm/math/Makefile.in: actually build remainder.c (functions
10221         rint and remainder, from SysVr4 Programmer's Guide floor(3m) man
10222         page.)
10223
10224 Thu Oct 15 07:48:05 1992  Ian Lance Taylor  (ian@cygnus.com)
10225
10226         * libc/string/bcopy.c: BSD version works on overlapping strings,
10227         so ours should too.
10228
10229         * libc/stdlib/system.c: always invoke /bin/sh, not getenv
10230         ("SHELL").
10231
10232 Wed Oct 14 11:07:11 1992  Ian Lance Taylor  (ian@cygnus.com)
10233
10234         * Makefile.in (docs): new target.
10235
10236 Wed Oct 14 07:44:25 1992  Ian Lance Taylor  (ian@cygnus.com)
10237
10238         * libc/include/sys/times.h: define clock_t as required by POSIX.
10239         libc/include/time.h: protect clock_t from multiple definitions.
10240
10241 Wed Oct  7 11:02:21 1992  Mark Eichin  (eichin at tweedledumber.cygnus.com)
10242
10243         * libm/math/sqrt.h (sqrt): actually, the final version of fp-bit
10244         does not need more than the original three iterations to get
10245         within 1 ulp. (Paranoia tests for rounding to better than that,
10246         but further iterations *don't* help, only more subtle changes
10247         can.)
10248
10249 Tue Oct  6 09:22:12 1992  Ian Lance Taylor  (ian@cygnus.com)
10250
10251         * libc/sys/vxworks68, libc/sys/vxworks960: removed, since they
10252         were doing nothing useful.
10253
10254 Tue Oct  6 08:48:13 1992  Ian Lance Taylor  (ian@cygnus.com)
10255
10256         * configure.in: define MALLOC_PROVIDED for vxworks targets;
10257         removed sys_dir settings of vxworks68 and vxworks960.
10258         host/any: don't pass -nostdinc to gcc, since newlib no longer
10259         provides all required header files.
10260
10261         * libc/stdlib/malloc.c: only compile this file if MALLOC_PROVIDED
10262         is not defined; this provides a hook for VxWorks.
10263
10264 Mon Oct  5 03:44:57 1992  Mark Eichin  (eichin at tweedledumber.cygnus.com)
10265
10266         * libc/stdio/setvbuf.c (setvbuf): while ANSI does say to malloc a
10267         buffer if buf is NULL, don't do it here -- it is already being
10268         done by makebuf elsewhere in stdio.
10269
10270 Fri Oct  2 13:12:07 1992  Ian Lance Taylor  (ian@cygnus.com)
10271
10272         * libc/sys/a29khif/Makefile.in: assemble Steve's list of stubs so
10273         that C programs can call functions without using initial
10274         underscores.
10275
10276 Thu Oct  1 09:37:47 1992  Ian Lance Taylor  (ian@cygnus.com)
10277
10278         * libc/stdlib/abort.c (abort): call exit, in case kill returns.
10279
10280 Wed Sep 30 08:22:18 1992  Ian Lance Taylor  (ian@cygnus.com)
10281
10282         * configure.in: set TARGET_CFLAGS for certain CPU types to
10283         -msoft-float.
10284
10285 Tue Sep 29 21:09:32 1992  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
10286
10287         * libc/sys/m68kbare/glue.c: use <_ansi.h> instead of <ansidecl.h>
10288
10289 Mon Sep 28 14:58:44 1992  Ian Lance Taylor  (ian@cygnus.com)
10290
10291         * configure.in: added sys_dir m68kbare for m68k*-unknown-aout and
10292         m68k*-unknown-coff.
10293
10294 Fri Sep 25 08:33:21 1992  Ian Lance Taylor  (ian@cygnus.com)
10295
10296         * libc/include/stdio.h: define __need___va_list before including
10297         <stdarg.h>, to avoid defining va_arg, et. al.
10298
10299 Tue Sep 22 13:47:00 1992  Ian Lance Taylor  (ian@cygnus.com)
10300
10301         * libc/sys/Makefile.in: handle the case of an empty $(sys_dir)
10302         (don't cd to the user's home directory).
10303
10304         * libc/Makefile.in: replaced all instances of $(MAKE) with make.
10305         In general this is the wrong thing to do, but I can't get around
10306         GNU make's insistence on passing command line arguments any other
10307         way.
10308
10309 Tue Sep 22 10:12:44 1992  Ian Lance Taylor  (ian@cygnus.com)
10310
10311         * configure.in: always configure the libc/sys directory, since it
10312         now provides a required documentation file.
10313
10314         * Makefile.in: replaced all instances of $(MAKE) with make.  In
10315         general this is the wrong thing to do, but I can't get around GNU
10316         make's insistence on passing command line arguments any other way.
10317
10318 Mon Sep 21 22:42:26 1992  Ian Lance Taylor  (ian@tweedledumbest.cygnus.com)
10319
10320         * libc/stdlib/ecvtbuf.c (_gcvt): string for 0 was not null
10321         terminated.
10322
10323         * libc/stdio/local.h: include <stdarg.h> to define va_list.
10324         libc/stdio/vsprintf.c: include <stdarg.h> rather than <varargs.h>.
10325
10326         * libc/include/float.h, libc/include/stdarg.h,
10327         libc/include/stddef.h, libc/include/varargs.h: removed; use gcc
10328         versions instead.
10329         libc/include/stdio.h: get size_t from <stddef.h>, and va_list from
10330         <stdarg.h>, not from <machine/types.h>.  Protect definition of
10331         NULL.
10332         libc/include/time.h: get size_t from stddef.h.  Protect definition
10333         of NULL.
10334         libc/include/machine/limits.h: override gcc <limits.h> by defining
10335         _LIMITS_H___.  Don't define CLK_TCK.  Copied in gcc <limits.h> to
10336         get correct INT_MIN and LONG_LONG values.
10337         libc/include/machine/types.h: don't define ptrdiff_t, wchar_t,
10338         size_t or va_list at all; they're now gotten from stddef.h
10339         instead.
10340         libc/include/machine/varargs.h: removed; use gcc version instead.
10341         libc/include/sys/types.h: explicitly include <machine/types.h>.
10342
10343         * libm/math/sqrt.h: using the fp-bit routines appears to require
10344         more iterations.
10345
10346         * Makefile.in, host/any: let system include files override machine
10347         include files.
10348
10349 Sat Sep 19 21:10:06 1992  Mark Eichin  (eichin at tweedledumber.cygnus.com)
10350
10351         * libc/include/machine/types.h: allow __*_TYPE__ from cpp to
10352         override _*_T_ definitions defaulted here.
10353
10354 Tue Sep 15 11:14:46 1992  Ian Lance Taylor  (ian@cygnus.com)
10355
10356         * Makefile.in (install): install the include files in
10357         $(tooldir)/include, not $(exec_prefix)/include.
10358
10359 Fri Sep 11 15:48:43 1992  Ian Lance Taylor  (ian@cygnus.com)
10360
10361         * Makefile.in (install): fixed typo, and changed install to not
10362         force rebuild of libc.a and libm.a.
10363
10364 Thu Sep 10 10:46:09 1992  Ian Lance Taylor  (ian@cygnus.com)
10365
10366         * libc/sys/a29khif/*: Changed all .include's to include
10367         sys/sysmac.h, not plain sysmac.h.  The header files live in sys so
10368         that they will be installed for the user.
10369
10370         * Makefile.in (all): create targ-include, a directory holding the
10371         machine and system specific header files during the build.
10372         (install): fixed installation of machine and system specific
10373         header files.
10374
10375         * Makefile.in: fixed comment.
10376         host/any: change .s.o rule to use $(AS) rather than $(CC), so that
10377         we can pass $(INCLUDES) to it.
10378
10379 Thu Sep 10 10:13:13 1992  Ian Lance Taylor  (ian@cygnus.com)
10380
10381         * libc/include/sys/param.h: new generic file, which may be
10382         overridden for specific systems.
10383
10384         * libc/include/sys/signal.h: define all ANSI signal names, and
10385         NSIG (which is not ANSI) for a29k.
10386
10387 Tue Sep  8 09:04:30 1992  Ian Lance Taylor  (ian@cygnus.com)
10388
10389         * Makefile.in: don't pass down arguments the lower level makes
10390         will not need.
10391         * libc/Makefile.in: recurse directly, rather than using subdir_do,
10392         in hopes of avoiding argument length limits.
10393         * libm/Makefile.in: recurse directly, rather using subdir_do, in
10394         hopes of avoiding argument length limits.
10395
10396 Tue Sep  8 08:27:22 1992  Ian Lance Taylor  (ian@cygnus.com)
10397
10398         * libc/include/sys/fcntl.h: include <sys/types.h> to ensure that
10399         mode_t is defined.
10400
10401 Mon Sep  7 14:02:07 1992  Ian Lance Taylor  (ian@cygnus.com)
10402
10403         * Fixed make info and make install-info for newlib, changing most
10404         Makefile.in and several *.tex files.  Moved doc directory from
10405         libc to top level.
10406
10407         * libc/time/mktime.c (_DAYS_IN_MONTH): actually, not const.
10408         Should be rewritten.
10409
10410         * libc/string/strings.tex: renamed node index to node index
10411         function, so that it does not conflict with the top level index
10412         node.
10413
10414         * libc/include/sys/config.h: define __IEEE_BIG_ENDIAN for h8300.
10415
10416 Fri Sep  4 02:34:06 1992  Ian Lance Taylor  (ian@cygnus.com)
10417
10418         * Overhauled general configuration for newlib.  Eliminated all
10419         target dependent Makefile fragments.  Create libraries in newlib
10420         rather than newlib/libc and newlib/libm.  Use CC, et. al., rather
10421         than CROSS_CC, et. al.  Broke make docs; will fix later.
10422
10423         * libc/time/localtime.c (_DAYS_IN_MONTH): actually, not const.
10424         Should be rewritten.
10425
10426 Tue Sep  1 15:21:14 1992  Ian Lance Taylor  (ian@cygnus.com)
10427
10428         * libc/configure.in: cleaned up somewhat; switch on ${target}
10429         rather than ${target_alias}.
10430         * libm/configure.in: cleaned up somewhat; switch on ${target}
10431         rather than ${target_alias}.
10432
10433         * libc/ctype/ctype_.c: marked _ctype_ array _CONST.
10434         * libc/include/ctype.h: marked _ctype_ as _CONST.
10435
10436         * libc/locale/locale.c (lconv, localeconv): marked static lconv as
10437         _CONST.
10438
10439         * libc/stdio/cvt.c, libc/stdio/findfp.c (__sfmoreglue),
10440         libc/stdio/vfscanf.c (__svfscanf): made static variables const.
10441         libc/stdio/gets.c (gets): removed non-ANSI warning message.
10442         libc/stdio/tmpnam.c (tmpnam): removed unneeded filename variable.
10443
10444         * libc/stdlib/mprec.h, libc/stdlib/mprec.c (pow5mult, tens,
10445         bigtens, tinytens): marked arrays _CONST.
10446         libc/stdlib/qsort.c (swap): if __GNUC__, use _builtin_alloca
10447         rather than a static variable.
10448
10449         * libc/time/asctime.c (asctime), libc/time/localtime.c
10450         (_DAYS_IN_MONTH), libc/time/mktime.c (_DAYS_IN_MONTH,
10451         _DAYS_BEFORE_MONTH), libc/time/strftime.c (dname_len, dname,
10452         mname_len, mname): Marked static arrays _CONST.
10453
10454         * libm/math/gamma.h: made local variables non-static.
10455
10456         * libm/math/acos.h, libm/math/bessel.c, libm/math/erf.c,
10457         libm/math/exp.c, libm/math/gamma.h: marked static arrays as
10458         _CONST.
10459
10460         * libm/math/constants.c: removed file, because the constants it
10461         defined were never referenced.
10462         libm/math/Makefile.in: removed references to constants.c.
10463         libm/math/mathimpl.h: removed declarations of constants.
10464
10465 Wed Aug 26 21:09:06 1992  Ian Lance Taylor  (ian@cygnus.com)
10466
10467         * libc/include/machine/varargs.h: only call __builtin_saveregs if
10468         it is sensibly defined in libgcc2.  Checks preprocessor defines,
10469         which is not a good solution.
10470
10471         * libm/sqrt.c: sqrt(Infinity) should not be a domain error.
10472
10473         * libm/frexp.c: handle denormalized numbers as arguments.
10474
10475         * libm/math/Makefile.in: added some dependencies for .c files
10476         which include local .h files.
10477
10478 Mon Aug 24 12:57:58 1992  Ian Lance Taylor  (ian@cygnus.com)
10479
10480         * libc/configure.in: set target_alias for OSE*.  Replace
10481         target_makefile_frag if it is blank.
10482
10483         * libc/Makefile.in: make sure everything is passed to subsidiary
10484         makes; create all directories when installing.
10485
10486         * libm/ieeefp/Makefile.in, libm/math/Makefile.in: use
10487         CROSS_ARUPDATE instead of AR.
10488
10489         * libm/configure.in: set target_alias for OSE*.  Replace
10490         target_makefile_frag if it is blank.
10491
10492         * libm/Makefile.in: make sure everything is passed to subsidiary
10493         makes; create all directories when installing.
10494
10495 Thu Aug 20 15:11:51 1992  Mark Eichin  (eichin@cygnus.com)
10496
10497         * add following change from libc copy.
10498
10499 Wed Aug 19 18:54:49 1992  Roland H. Pesch  (pesch@fowanton.cygnus.com)
10500
10501         * libc/libc.texinfo: make copyright disclaimers appear on back of
10502         title page; make format of same slightly less ugly; avoid using
10503         underbars in section headings (avoids nasty texinfo bug in table
10504         of contents).
10505
10506         * libc/ctype/tolower.c, libc/ctype/toupper.c: (doc changes in
10507           comments only) avoid using underbars in section headings
10508
10509         * libc/ieeefp/ieeefp.tex: include doc from fpsticky, infinity,
10510           isnan ieeefp/fpmask.c, ieeefp/fpround.c, ieeefp/fpsticky.c (doc
10511           changes in comments only): shorten headings ieeefp/infinity.c,
10512           ieeefp/isnan.c: (doc, comments only) more informative headings
10513
10514         * libc/math/bessel.c: (doc, comments only) shorten heading
10515
10516         * libc/stdlib/efgcvt.c, libc/stdlib/mbtowc.c, libc/stdlib/wctomb.c
10517         (doc, comments only) shorten headings
10518
10519         * libc/time/localtime.c (doc, comments only): shorten headings
10520
10521         * libm/ieeefp/ieeefp.tex: include doc from fpsticky, infinity,
10522           isnan
10523           libm/ieeefp/fpmask.c, libm/ieeefp/fpround.c,
10524           libm/ieeefp/fpsticky.c (doc changes in comments only): shorten
10525           headings
10526           libm/ieeefp/infinity.c, libm/ieeefp/isnan.c: (doc, comments
10527           only) more informative headings
10528         * libm/math/bessel.c: (doc, comments only) shorten heading
10529
10530 Wed Aug 19 07:06:37 1992  Mark Eichin  (eichin at tweedledumber.cygnus.com)
10531
10532         * .../Makefile.in: use CROSS_ARUPDATE consistently.
10533         * config/*.mt: define CROSS_AR as well as CROSS_ARUPDATE
10534         * config/*.mt: define CROSS_CPP based on CROSS_CC, not /lib/cpp.
10535         * .../Makefile.in: get rid of .c.o rule - if TOP is correctly
10536         defined, the one from the .mt file will be correct.
10537         * libc/include/machine, libc/include/sys: created, and populated
10538         with common files from machine/*/machine. ifdefs were used for
10539         most, typically by handling exceptions first and then filling in
10540         defaults. Files with D.J. Delorie copyright #included rather than
10541         copied. Most files in include/sys really were the same in the
10542         original.
10543         * libc/include/...: cleaned up use of _EXFUN.
10544         * libc/stdlib/mprec.c: mprec.h doesn't get installed, so include
10545         it with double quotes, not angles.
10546
10547 Mon Aug 10 11:43:20 1992  Ian Lance Taylor  (ian@dumbest.cygnus.com)
10548
10549         * libc/Makefile.in: always create installation directories.
10550
10551 Sun Aug  9 22:45:48 1992  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
10552
10553         * libc/configure.in: handle host properly (using canonical
10554         triples), better error message for the case of target not found
10555
10556 Thu May 28 01:56:37 1992  Michael Tiemann  (tiemann@rtl.cygnus.com)
10557
10558         * libc/Makefile.in (insincdir): Ensure this directory exists
10559         before attempting installation.
10560
10561 Fri May  1 18:16:42 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
10562
10563         * libc/stdlib/assert.c: now calls abort like it should
10564         * libc/sys/a29khif: many many patches for 29khif work
10565         * libc/machine/i386: gnulib2 expanded there.
10566
10567 Tue Apr 28 19:08:37 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
10568
10569         Added accurate fp conversion routines to stdlib, moved dcvt from
10570         stdio to stdlib and called it ecvtbuf:
10571         * libc/stdlib/mprec.c, mprec.h: new files for multiprec arithmetic
10572         * libc/stdlib/Makefile.in, efgcvt.c, strtod.c: modified to use new
10573         routines
10574         * libc/libc.texinfo: Modifed to include the copyright info from
10575         the mprec files
10576         * libc/stdlib/efgcvt.c: now xref to ecvtbuf in stdlib.
10577         * libc/test/ : many vector which tested for the implementation
10578         defined returns of strange conversion requests have been updated
10579         to relflect the new implementation
10580
10581 Mon Apr 27 13:41:33 1992  Roland H. Pesch  (pesch@fowanton.cygnus.com)
10582
10583         * libc/libc.texinfo: new chapter on variable arg lists
10584         (stdarg.h/varargs.h)
10585         * libc/libc.texinfo: new title
10586         * libc/time/gmtime.c, libc/time/localtime./c, libc/time/mktime.c:
10587         (doc only) shorter headings for better formatting.
10588
10589 Fri Apr 24 11:26:48 1992  Roland H. Pesch  (pesch@fowanton.cygnus.com)
10590
10591         * libc/libc.texinfo: three more info menu entries
10592         * libc/locale/locale.tex: new chapter
10593         * libc/locale/locale.c: new doc for setlocale, localeconv
10594         * libc/locale/Makefile.in: use new locale doc
10595         * libc/signal/signal.tex: new chapter
10596         * libc/signal/raise.c, libc/signal/signal.c: new doc
10597         * libc/signal/Makefile.in: use new doc
10598         * libc/time/time.tex: new chapter
10599         * libc/time/asctime.c libc/time/clock.c libc/time/ctime.c
10600         libc/time/difftime.c libc/time/gmtime.c libc/time/localtime.c
10601         libc/time/mktime.c libc/time/strftime.c libc/time/time.c: new doc
10602         * libc/time/Makefile.in: use new doc
10603
10604 Tue Apr 21 14:48:50 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
10605
10606         * libm/math/log1p.c: split to use the new function way of float
10607         function definition. math/log1p.h deleted
10608         * libm/math/scalb.c: obsolete and deleted
10609         * libm/math/scalbn.c: created from part log1p.c
10610         * libm/math/Makefile.in: know about log1p and scalbn
10611
10612 Tue Apr 21 12:32:21 1992  Roland H. Pesch  (pesch@fowanton.cygnus.com)
10613
10614         * libc/ctype/isupper.c: revise doc;
10615           libc/ctype/ctype.tex: use doc from isupper.c
10616
10617         * libc/string/bzero.c: new doc
10618
10619 Mon Apr 20 14:19:42 1992  Roland H. Pesch  (pesch@fowanton.cygnus.com)
10620
10621         * libc/stdlib/system.c, libc/stdlib/exit.c, libc/stdlib/abort.c:
10622         new doc
10623         * libc/stdlib/Makefile.in: extract new doc
10624         * libc/stdlib/stdlib.tex: use new doc
10625
10626         * libc/string/strerror.c: expanded doc.
10627
10628         * libc/stdio/Makefile.in: extract doc from more files
10629         * libc/stdio/fopen.c, libc/stdio/perror.c, libc/stdio/remove.c,
10630         libc/stdio/rename.c, libc/stdio/rewind.c, libc/stdio/setbuf.c,
10631         libc/stdio/setvbuf.c, libc/stdio/sprintf.c, libc/stdio/tmpfile.c,
10632         libc/stdio/tmpnam.c, libc/stdio/vfprintf.c, libc/stdio/vprintf.c,
10633         libc/stdio/vsprintf.c: new doc
10634         * libc/stdio/stdio.tex: use new doc
10635
10636 Mon Apr 20 09:38:17 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
10637
10638         * libc/config/ebmon29k: added CROSS_CPP rule and other fixes
10639         * libc/include/ieeefp.h: fixed ansi conflict with isnanf, isinff,
10640         finitef functions.
10641         * libc/sys/a29khif/sys/*.h: ansidecl.h was renamed to _ansi.h some
10642         time ago.
10643
10644         * libc/stdio/stdio.h: added P_tmpdir for /tmp (SVID thing)
10645         * libc/stdio/setbuf.c: added ansi style definition.
10646         * libc/stdio/setvbuf.c: added ansi definition, now mallocs own
10647         buffer if none provided.
10648         * libc/stdio/tmpfile.c: lint
10649         * libc/stdio/tmpnam.c (worker): created. (tmpnam): mallocs buffer
10650         rather than using static, also make sure file isn't already
10651         present.  Uses P_tmpdir. (tempnam): rewritten to use new
10652         subroutine, and uses P_tmpdir.
10653         * libc/stdio/siprintf.c: created
10654
10655 Mon Apr 13 09:12:58 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
10656
10657         Release 1.03 for NEC, major mods. Main differences from release
10658         1.02::
10659
10660         More tests in test/:
10661         * jn_vec.c, jnf_vec.c, yn_vec.c, ynf_vec.c, log2_vec.c,
10662         log2f_vec.c, atan2_vec.c, atan2f_vec.c: new test vectors.
10663         * test_ieee.c: tests for ieee flags & masks - get/set rounding,
10664         get/set mask, get/set sticky and get/set roundtoi.  Tests
10665         that setting the bits changes the way arithmetic is done.
10666         * string.c: added test to make sure memcmp does it with unsigned
10667         chars.
10668         * test.c: cleaned up and removed lint.
10669         * sprint_vec, sprint_ivec.c, convert.c, conv_vec.c, iconf_vec.c,
10670         dvec.c: tests for string to value conversions,  sprintf, scanf,
10671         atof, atoff, strtod, strtodf, atoi, atol, strtol, ecvtbuf, ecvt,
10672         ecvtf,  fcvtbuf, fcvt, fcvtf, gcvt, gcvtf.  Some attention paid to
10673         rounding in sprintf too.
10674         * test_is.c: tests for  isalnum, isalpha, isascii, iscntrl,
10675         isdigit, isgraph, islower, isprint, ispunct, isspace, isupper,
10676         isxdigit, toascii, tolower, toupper, _tolower, _toupper in macro
10677         and function form.
10678         * math2.c: test for frexp, frexpf, ldexp, ldexpf, modf modff, pow,
10679         powf
10680
10681         In the library:
10682         * libc/stdlib/div.c, libc/stdlib/ldiv.c, libc/stdlib/strtod.c,
10683         libc/stdlib/strtol.c, libc/stdlib/stroul.c, libc/stdlib/abs.c,
10684         libc/stdlib/bsearch.c, libc/stdlib/calloc.c, libc/stdlib/getenv.c,
10685         libc/stdlib/labs.c, libc/stdlib/malloc.c: new documentation
10686         * libc/stdlib/efgcvt.c: rewritten to use new _dcvt routines rather
10687         than sprintf.
10688         * libc/stdio/dcvt.c: rewritten to make more useful elsewhere. 
10689         * Method of producting float versions of double functions has
10690         changed, functions will be modified gradually. So far:
10691         libm/math/exp.c, libm/math/pow.c, libm/math/modf.c,
10692         libm/math/sincos.c, libm/math/fmod.c, libm/math/tan.c have been
10693         altered
10694         * libc/string/memcmp.c: now uses unsigned chars
10695         * libc/string/bcmp.c, libc/string/strcpy.c,
10696         libc/stsring/strxfrm.c: fixed doc
10697         * libc/sys/sysvnecv70.tex: fix example of sbrk code
10698 \f
10699 Local Variables:
10700 version-control: never
10701 End: