OSDN Git Service

2002-08-17 Jeff Johnston <jjohnstn@redhat.com>
[pf3gnuchains/pf3gnuchains4x.git] / newlib / ChangeLog
1 2002-08-17  Jeff Johnston  <jjohnstn@redhat.com>
2
3         * libc/include/sys/config.h[__PPC__][__SPE__]: Set
4         _LONG_DOUBLE to double.
5
6 2002-08-17  Jeff Johnston  <jjohnstn@redhat.com>
7
8         * configure.host: Add powerpc*-*-eabispe* configuration.
9         * libc/machine/powerpc/atosfix16.c: New fixed-point conversion file.
10         * libc/machine/powerpc/atosfix32.c: Ditto.
11         * libc/machine/powerpc/atosfix64.c: Ditto.
12         * libc/machine/powerpc/atoufix16.c: Ditto.
13         * libc/machine/powerpc/atoufix32.c: Ditto.
14         * libc/machine/powerpc/atoufix64.c: Ditto.
15         * libc/machine/powerpc/fix64.h: Ditto.
16         * libc/machine/powerpc/simdldtoa.c: Ditto.
17         * libc/machine/powerpc/strtosfix16.c: Ditto.
18         * libc/machine/powerpc/strtosfix32.c: Ditto.
19         * libc/machine/powerpc/strtosfix64.c: Ditto.
20         * libc/machine/powerpc/strtoufix16.c: Ditto.
21         * libc/machine/powerpc/strtoufix32.c: Ditto.
22         * libc/machine/powerpc/strtoufix64.c: Ditto.
23         * libc/machine/powerpc/ufix64toa.c: Ditto.
24         * libc/machine/powerpc/configure.in: Add check for
25         powerpc*-eabispe and add fixed-point conversion functions.
26         * libc/machine/powerpc/configure: Regenerated.
27         * libc/machine/powerpc/vfprintf.c[__SPE__]: Add support for
28         %r and %R format specifiers which handle fixed-point data.
29         * libc/machine/powerpc/vfscanf.c[__SPE__]: Ditto.
30         * libc/machine/powerpc/machine/stdlib.h[__SPE__]: Add fixed-point
31         function prototypes.
32
33 2002-08-17  Jeff Johnston  <jjohnstn@redhat.com>
34
35         *  Makefile.am: Move cmath stuff into libc/sys/linux.
36         *  Makefile.in: Regenerated.
37         *  configure.host: Default -DMB_CAPABLE for x86-linux.
38         *  libc/include/reent.h: Define _sbrk to take signed int argument.
39         *  libc/include/sys/unistd.h: Ditto for _sbrk_r and sbrk.
40         *  libc/locale/locale.c[MB_CAPABLE]: Add LC_MESSAGES support and 
41         make locale name checking more efficient.  Also allow "C-ISO-8859-1" 
42         locale for LC_CTYPE and LC_MESSAGES.
43         *  libc/reent/sbrkr.c: Change prototype to take ptrdiff_t.
44         *  libc/sys/linux/brk.c: Change sbrk prototype.
45         *  libc/sys/linux/include/time.h: Remove Cygwin stuff and
46         include <sys/features.h>.
47         (CLOCK_THREAD_CPUTIME): Renamed to CLOCK_THREAD_CPUTIME_ID.
48         (CLOCK_PROCESS_CPUTIME): Renamed to CLOCK_PROCESS_CPUTIME_ID.
49         *  libc/sys/linux/sys/cdefs.h: Replace with glibc sys/cdefs.h
50         with a few local additions.
51         *  libc/sys/linux/sys/features.h: New file.
52         *  libc/sys/linux/sys/unistd.h: Change _sbrk_r and sbrk prototypes
53         to take signed argument.
54         *  libc/syscalls/syssbrk.c: Change sbrk, _sbrk_r, and _sbrk
55         prototypes to take signed size argument.
56
57 2002-08-16  Thomas Fitzsimmons  <fitzsim@redhat.com>
58
59         * libc/sys/linux/cmath: New directory.
60         * libc/sys/linux/include/cmathcalls.h: New file.
61         * libc/sys/linux/include/complex.h: New file.
62         * libc/sys/linux/machine/i386/huge_val.h: New file
63         * libm/math/w_sincos.c: New file
64         * libm/math/wf_sincos.c: New file
65         * libm/mathfp/s_sincos.c: New file
66         * libm/mathfp/sf_sincos.c: New file
67         * Makefile.am (LIBC_OBJECTLISTS): Add cmath/objectlist.awk.in.
68         * libc/include/math.h: Add sincos and sincosf declarations.
69         * libc/sys/linux/Makefile.am (SUBDIRS): Add cmath.
70         (SUBLIBS): Likewise.
71         * libc/sys/linux/configure.in (AC_OUTPUT): Add cmath.
72         * libm/math/Makefile.am (src): Add w_sincos.c.
73         (fsrc): Add wf_sincos.c.
74         * libm/mathfp/Makefile.am (src): Add s_sincos.c
75         (fsrc): Add sf_sincos.c.
76
77 2002-08-12  Jeff Johnston  <jjohnstn@redhat.com>
78
79         * libc/sys/linux/machine/i386/crt0.c (__bss_start,_end):
80         Declare as extern chars and use the address operator to
81         properly use values set in linker script.
82
83 2002-08-09  Jason Tishler  <jason@tishler.net>
84
85         * libc/stdlib/mallocr.c: Include <limits.h>.
86         (request2size): Change macro to do
87         unsigned long comparisons and avoid signed overflow.
88         (mALLOc): Add overflow check for the number of bytes to allocate.
89         (rEALLOc): Ditto.
90
91 2002-08-09  Jeff Johnston  <jjohnstn@redhat.com>
92
93         * configure.host: Add check for --enable-newlib-io-pos-args
94         and define WANT_IO_POS_ARGS flag if enabled.  Define
95         the flag by default for x86-linux configurations.
96         * configure.in: Add support for --enable-newlib-io-pos-args.
97         * libc/configure.in: Ditto.
98         * configure: Regenerated.
99         * libc/configure: Ditto.
100         * libc/stdio/Makefile.am: Specify -fshort-enums for compiling
101         vfprintf.c and vfiprintf.c.
102         * libc/stdio/Makefile.in: Regenerated.
103         * libc/stdio/vfprintf.c: Add positional argument support that
104         is enabled by compiling with -DWANT_IO_POS_ARGS.
105
106 2002-08-07  Richard Sandiford  <rsandifo@redhat.com>
107
108         * libc/include/machine/setjmp.h: For mips, define _JBLEN based
109         based on __mips_soft_float rather than __mips64.
110         * libc/machine/mips/setjmp.S: Provide hard and soft float versions
111         of both 32-bit and 64-bit code.
112
113 2002-08-04  Christopher Faylor  <cgf@redhat.com>
114
115         * libc/stdio/popen.c (popen): Allow "rb", "rt", "wb", and "wt"
116         arguments for popen to match similar functionality in fopen.
117
118 2002-07-29  Pierre Humblet  <pierre.humblet@ieee.org>
119
120         * libc/include/sys/unistd.h: Add setgroups prototype for Cygwin.
121
122 2002-07-29  Jeff Johnston  <jjohnstn@redhat.com>
123
124         * libc/sys/linux/Makefile.am: Add aio64.c. 
125         * libc/sys/linux/Makefile.in: Regenerated.
126         * libc/sys/linux/aio.c (aio_init): ENOSYS stub added.
127         * libc/sys/linux/aio64.c: New file.
128
129 2002-07-26  Jeff Johnston  <jjohnstn@redhat.com>
130
131         *  libc/include/sys/param.h (MAX, MIN): Added macros.
132         *  libc/sys/linux/Makefile.am: Add new files.
133         *  libc/sys/linux/Makefile.in: Regenerated.
134         *  libc/sys/linux/sys/stat.h: Add *stat64 prototypes.
135         *  libc/sys/linux/inode.c (fchdir): Added syscall.
136         *  libc/sys/linux/ftw.c: New file.
137         *  libc/sys/linux/ftw64.c: Ditto.
138         *  libc/sys/linux/getwd.c: Ditto.
139         *  libc/sys/linux/scandir64.c: Ditto.
140         *  libc/sys/linux/strverscmp.c: Ditto.
141         *  libc/sys/linux/versionsort.c: Ditto.
142         *  libc/sys/linux/versionsort64.c: Ditto.
143
144 2002-07-26  Jeff Johnston  <jjohnstn@redhat.com>
145
146         * libc/string/strings.tex: Fix typo for memccpy.
147
148 2002-07-25  Jeff Johnston  <jjohnstn@redhat.com>
149
150         * libc/sys/linux/io64.c (truncate64, ftruncate64): Added.
151         * libc/sys/linux/sys/types.h (off64_t): Definition added.
152
153 2002-07-25  Jeff Johnston  <jjohnstn@redhat.com>
154
155         * libc/sys/linux/Makefile.am: Add fclean.c.
156         * libc/sys/linux/Makefile.in: Regenerated.
157         * libc/sys/linux/fclean.c: New file.
158
159 2002-07-25  Jeff Johnston  <jjohnstn@redhat.com>
160
161         * libc/sys/linux/Makefile.am: Add confstr.c.
162         * libc/sys/linux/Makefile.in: Regenerated.
163         * libc/sys/linux/confstr.c: New file.
164         * libc/sys/linux/confstr.h: Ditto.
165         * libc/sys/linux/sys/unistd.h: Include <features.h> and
166         <bits/environments.h>.
167
168 2002-07-25  Jeff Johnston  <jjohnstn@redhat.com>
169
170         * libc/sys/linux/config.h (__set_errno): Macro definition removed.
171         * libc/sys/linux/fpathconf.c (__set_errno): Ditto.
172         * libc/sys/linux/libc-internal.h (__set_errno): Ditto.
173         * libc/sys/linux/pathconf.c (__set_errno): Ditto.
174         * libc/sys/linux/ttyname_r.c (__set_errno): Ditto.
175         * libc/sys/linux/sys/errno.h (__set_errno): Macro definition added.
176
177 2002-07-24  Jeff Johnston  <jjohnstn@redhat.com>
178
179         * libc/sys/linux/Makefile.am: Add new files.
180         * libc/sys/linux/Makefile.in: Regenerated.
181         * libc/sys/linux/fstab.c: New file.
182         * libc/sys/linux/fstatvfs.c: Ditto.
183         * libc/sys/linux/fstatvfs64.c: Ditto.
184         * libc/sys/linux/internal_statvfs.c: Ditto.
185         * libc/sys/linux/mntent.c: Ditto.
186         * libc/sys/linux/mntent_r.c: Ditto.
187         * libc/sys/linux/statvfs.c: Ditto.
188         * libc/sys/linux/statvfs64.c: Ditto.
189         * libc/sys/linux/include/paths.h: Ditto.
190         * libc/sys/linux/inode.c (statfs, fstatfs): New syscalls
191         with double-underscore weak-aliases.
192         * libc/sys/linux/sys/stat.h: Add *stat64 prototypes.
193
194 2002-07-24  Jeff Johnston  <jjohnstn@redhat.com>
195
196         * libc/include/signal.h (SIG_IGN, SIG_DFL, SIG_ERR): Change
197         to use _sig_func_ptr type casted constants.
198         (_sig_func_ptr): Typedef moved to sys/signal.h.
199         * libc/include/sys/signal.h (_sig_func_ptr): Typedef added.
200         For __rtems, use POSIX definition, otherwise default to ANSI.
201         * libc/sys/linux/sys/signal.h (_sig_func_ptr): Typedef added.
202
203 2002-07-24  Stephane Carrez  <stcarrez@nerim.fr>
204
205         * configure.host: Recognize m6811-elf and m6812-elf targets.
206         * libc/include/machine/setjmp.h (_JBLEN): Define for 68hc11/68hc12.
207         * libc/include/machine/ieeefp.h (__IEEE_BIG_ENDIAN): Define for 68HC11.
208         (_DOUBLE_IS_32BITS): Define when compiling with -fshort-double.
209         * libc/include/sys/config.h (INT_MAX, UINT_MAX): Define
210         according to __INT_MAX__.
211         (_POINTER_INT): Define to short.
212         * libc/machine/m68hc11/Makefile.am: New file.
213         * libc/machine/m68hc11/Makefile.in: New file.
214         * libc/machine/m68hc11/configure.in: New file.
215         * libc/machine/m68hc11/configure: New file.
216         * libc/machine/m68hc11/aclocal.m4: New file.
217         * libc/machine/m68hc11/setjmp.S: New file.
218
219 2002-07-23  Jeff Johnston  <jjohnstn@redhat.com>
220
221         * libc/include/string.h: Add mempcpy, strndup, and _strndup_r
222         prototypes.
223         * libc/stdlib/Makefile.am: Remove strdup.c and strdup_r.c.
224         * libc/stdlib/Makefile.in: Regenerated.
225         * libc/stdlib/strdup.c: Removed.
226         * libc/stdlib/strdup_r.c: Removed.
227         * libc/string/Makefile.am: Add strdup.c, strdup_r.c, memccpy.c,
228         mempcpy.c, strndup.c, and strndup_r.c.
229         * libc/string/Makefile.in: Regenerated.
230         * libc/string/memccpy.c: New file.
231         * libc/string/mempcpy.c: Ditto.
232         * libc/string/strndup.c: Ditto.
233         * libc/string/strndup_r.c: Ditto.
234         * libc/string/strdup.c: New file moved from stdlib.
235         * libc/string/strdup_r.c: Ditto.
236         * libc/string/strings.tex: Add memccpy and mempcpy documentation.
237
238 2002-07-23  Jeff Johnston  <jjohnstn@redhat.com>
239
240         * libc/include/stdio.h: Move fcloseall prototype within
241         #ifndef _REENT_ONLY section.
242         * libc/sys/linux/Makefile.am: Add new files.
243         * libc/sys/linux/Makefile.in: Regenerated.
244         * libc/sys/linux/sys/stdio.h: Add ctermid prototype.
245         * libc/sys/linux/sys/unistd.h: Add ttyname_r prototype.
246         * libc/sys/linux/sys/types.h: Add ino64_t type.
247         * libc/sys/linux/ctermid.c: New file.
248         * libc/sys/linux/ttyname_r.c: Ditto.
249         * libc/sys/linux/readdir64.c: Ditto.
250
251 2002-07-22  Jeff Johnston  <jjohnstn@redhat.com>
252
253         * libc/include/stdio.h (fcloseall, _fcloseall_r): Added prototypes.
254         * libc/stdio/Makefile.am: Added fcloseall.c support.
255         * libc/stdio/Makefile.in: Regenerated.
256         * libc/stdio/fcloseall.c: New file.
257         * libc/stdio64/Makefile.am: Remove missing .def references.
258         * libc/stdio64/Makefile.in: Regenerated.
259
260 2002-07-22  Jeff Johnston  <jjohnstn@redhat.com>
261
262         * libc/machine/powerpc/time.c: Removed..renamed to times.c.
263         * libc/machine/powerpc/times.c: New file.
264         * libc/machine/powerpc/Makefile.am: Change time.c to times.c.
265         * libc/machine/powerpc/Makefile.in: Regenerated.
266
267 2002-07-22  Aldy Hernandez  <aldyh@redhat.com>
268
269         * libc/machine/powerpc/time.c: New file.
270         * libc/machine/powerpc/Makefile.am (lib_a_SOURCES): Add
271         time.c.
272         * libc/machine/powerpc/Makefile.in: Regenerated.
273
274 2002-07-22  Thomas Fitzsimmons  <fitzsim@redhat.com>
275
276         * libc/libc.texinfo: Change copyright notices to Red Hat from
277         Cygnus.
278         * libm/libm.texinfo: Likewise.
279         * README: Change docs URL to
280         http://sources.redhat.com/newlib/docs.html.
281
282 2002-07-19  Jeff Johnston  <jjohnstn@redhat.com>
283
284         * libc/sys/linux/Makefile.am: Add pathconf.c and fpathconf.c.
285         * libc/sys/linux/Makefile.in: Regenerated.
286         * libc/sys/linux/inode.c: Add chmod, fchmod, and chown syscalls.
287         * libc/sys/linux/io.c: Add ftruncate syscall.
288         * libc/sys/linux/fpathconf.c: New file.
289         * libc/sys/linux/pathconf.c: Ditto.
290         * libc/sys/linux/linux_fsinfo.h: Ditto.
291         * libc/sys/linux/sys/unistd.h: Ditto.
292
293 2002-07-19  Jeff Johnston  <jjohnstn@redhat.com>
294
295         * libc/stdio64/Makefile.am: Remove missing files.
296         * libc/stdio64/Makefile.in: Regenerated.
297
298 2002-07-19  Jeff Johnston  <jjohnstn@redhat.com>
299
300         * libc/include/sys/config.h[__i386__][__linux__]: Define
301         _LARGE64FILE_SOURCE to 1.
302         * libc/sys/linux/Makefile.am: Add getrlimit64.c and setrlimit64.c.
303         * libc/sys/linux/Makefile.in: Regenerated.
304         * libc/sys/linux/resource.c: Add __getrlimit and __setrlimit aliases.
305         * libc/sys/linux/sys/linux_time.h: Protect struct timeval definition.
306         * libc/sys/linux/sys/resource.h: Include <bits/resource.h> instead
307         of <linux/resource.h>.
308         * libc/sys/linux/getrlimit64.c: New file.
309         * libc/sys/linux/setrlimit64.c: Ditto.
310
311 2002-07-19  Thomas Fitzsimmons  <fitzsim@redhat.com>
312
313         * libc/argz/argz_replace.c: Include buf_findstr.h.
314         * libc/argz/buf_findstr.c: Likewise.
315         * libc/argz/envz_entry.c: Include buf_findstr.h.  Cast return
316         value to (char *).
317         * libc/argz/envz_get.c: Likewise.
318         * libc/include/sys/unistd.h: Add getopt and getsubopt declarations.
319         * libc/stdlib/Makefile.am (LIB_SOURCES): Add getsubopt.c.
320         * libc/stdlib/getsubopt.3: New file.
321         * libc/stdlib/getsubopt.c: New file.
322         * libc/sys/linux/machine/i386/socketcall.h (__sockcall_base):
323         Change esp to ebp.
324
325 2002-07-17  Jeff Johnston  <jjohnstn@redhat.com>
326
327         * configure.host(stdio64_dir): New setting that is used to
328         enable building of new stdio64 directory.
329         * libc/Makefile.am[HAVE_STDIO64_DIR]: Add support for
330         large files.
331         (stmp-stdio64,stdio64.texi): New targets to optionally add in
332         stdio64 info to info files.
333         * libc/Makefile.in: Regenerated.
334         * libc/configure: Ditto.
335         * libc/configure.in: Add configuration variables that are set
336         when stdio64 is selected as subdir in configure.host.
337         * libc/libc.texinfo: Add optional menu item for Stdio64, based
338         on whether STDIO64 flag is set or not.
339         * libc/sys.tex: Add optional stdio64 syscalls based on whether
340         STDIO64 flag is set or not.
341         * libc/include/reent.h[__LARGE64_FILES]: Add new stdio64
342         _r sycall routines.
343         * libc/include/stdio.h[__LARGE64_FILES]: Add new stdio64 prototypes.
344         (FILE): Typedef'd to __FILE instead of struct __sFILE directly.
345         (__SL64): New file flag indicating file is opened via fopen64.
346         * libc/include/sys/_types.h(_off64_t): Added.
347         * libc/include/sys/config.h: For x86-linux, define __LARGE64_FILES.
348         * libc/include/sys/reent.h(struct __sFILE64): New file structure
349         for 64-bit offset large file support.
350         (__FILE): New intermediate type either set to struct __sFILE64 or
351         struct __sFILE, depending on whether __LARGE64_FILES is set or not.
352         * libc/reent/Makefile.am[HAVE_STDIO64_DIR]: Add new files.
353         * libc/reent/Makefile.in: Regenerated.
354         * libc/reent/fstat64r.c: New file.
355         * libc/reent/lseek64r.c: Ditto.
356         * libc/reent/open64r.c: Ditto.
357         * libc/reent/reent.tex: Optionally add stdio64 reentrant syscalls
358         based on whether STDIO64 flag is set. 
359         * libc/stdio/stdio.tex: Add blank line.
360         * libc/stdio64/Makefile.am: New file.
361         * libc/stdio64/Makefile.in: Ditto.
362         * libc/stdio64/fgetpos64.c: Ditto.
363         * libc/stdio64/fopen64.: Ditto.
364         * libc/stdio64/freopen64.c: Ditto.
365         * libc/stdio64/fseeko64.c: Ditto.
366         * libc/stdio64/fsetpos64.c: Ditto.
367         * libc/stdio64/ftello64.c: Ditto.
368         * libc/stdio64/local64.h: Ditto.
369         * libc/stdio64/stdio64.c: Ditto.
370         * libc/stdio64/stdio64.tex: Ditto.
371         * libc/stdio64/tmpfile64.c: Ditto.
372         * libc/sys/linux/io64.c: Add weak aliases for lseek64, fstat64, and
373         open64.
374
375 2002-07-16  Jeff Johnston  <jjohnstn@redhat.com>
376
377         * libc/Makefile.am (stmp-extra): New target to set makeinfo flag
378         if LIBC_EXTRA_LIB is present.
379         * libc/Makefile.in: Regenerated.
380         * libc/libc.texinfo: Add blank line.
381         * libc/argz/Makefile.am: Add doc support.
382         * libc/search/Makefile.am: Ditto.
383         * libc/argz/Makefile.in: Regenerated.
384         * libc/search/Makefile.in: Ditto.
385         * libc/misc/misc.tex: Add ffs function.
386         * libc/stdio/ftell.c: Fix missing doc delimeter in description.
387
388 2002-07-15  Jeff Johnston  <jjohnstn@redhat.com>
389
390         * libc/include/sys/config.h[__H8300__]: Replace __SMALL_BITFIELDS
391         definition that was removed in error.
392
393 2002-07-15  Jeff Johnston  <jjohnstn@redhat.com>
394
395         * libc/include/machine/ieeefp.h: Change to only define
396         floating point defines (e.g one of __IEEE_BIG_ENDIAN or 
397         __IEEE_LITTLE_ENDIAN must be defined for each platform).
398         * libc/include/sys/config.h: Include <machine/ieeefp.h> and
399         remove redundant floating point definitions.
400
401 2002-07-15  Jeff Johnston  <jjohnstn@redhat.com>
402
403         * libc/sys/linux/callocr.c: Fix so code references
404         calloc.
405
406 2002-07-15  Jeff Johnston  <jjohnstn@redhat.com>
407
408         * libc/sys/linux/Makefile.am: Add new files.
409         * libc/sys/linux/Makefile.in: Regenerated.
410         * libc/sys/linux/bp-sym.h: Moved to include directory.
411         * libc/sys/linux/mmap.c: Add weak aliases: __mmap, __munmap, __mremap.
412         * libc/sys/linux/inode.c: Set _LIBC to 1.
413         * libc/sys/linux/mq_close.c: Ditto.
414         * libc/sys/linux/mq_getattr.c: Ditto.
415         * libc/sys/linux/mq_open.c: Ditto.
416         * libc/sys/linux/mq_receive.c: Ditto.
417         * libc/sys/linux/mq_send.c: Ditto.
418         * libc/sys/linux/mq_setattr.c: Ditto.
419         * libc/sys/linux/mq_unlink.c: Ditto.
420         * libc/sys/linux/calloc.c: New file.
421         * libc/sys/linux/callocr.c: Ditto.
422         * libc/sys/linux/cfreer.c: Ditto.
423         * libc/sys/linux/config.h: Ditto.
424         * libc/sys/linux/free.c: Ditto.
425         * libc/sys/linux/freer.c: Ditto.
426         * libc/sys/linux/msize.c: Ditto.
427         * libc/sys/linux/msizer.c: Ditto.
428         * libc/sys/linux/mstats.c: Ditto.
429         * libc/sys/linux/mtrim.c: Ditto.
430         * libc/sys/linux/mtrimr.c: Ditto.
431         * libc/sys/linux/pvallocr.c: Ditto.
432         * libc/sys/linux/realloc.c: Ditto.
433         * libc/sys/linux/reallocr.c: Ditto.
434         * libc/sys/linux/thread-m.h: Ditto.
435         * libc/sys/linux/vallocr.c: Ditto.
436         * libc/sys/linux/bp-checks.h: Ditto.
437         * libc/sys/linux/libc-symbols.h: Ditto.
438         * libc/sys/linux/libc-tsd.h: Ditto.
439         * libc/sys/linux/libintl.h: Ditto.
440         * libc/sys/linux/malign.c: Ditto.
441         * libc/sys/linux/malignr.c: Ditto.
442         * libc/sys/linux/mallinfor.c: Ditto.
443         * libc/sys/linux/malloc.c: Ditto.
444         * libc/sys/linux/mallocr.c: Ditto.
445         * libc/sys/linux/malloptr.c: Ditto.
446         * libc/sys/linux/mallstatsr.c: Ditto.
447         * libc/sys/linux/mcheck.c: Ditto.
448         * libc/sys/linux/mhooks.h: Ditto.
449         * libc/sys/linux/include/bp-sym.h: Ditto.
450         * libc/sys/linux/include/malloc.h: Ditto.
451         * libc/sys/linux/include/mcheck.h: Ditto.
452         * libc/sys/linux/linuxthreads/machine/i386/Makefile.am: Remove
453         getpagesize.c.
454         * libc/sys/linux/linuxthreads/machine/i386/Makefile.in: Regenerated.
455         * libc/sys/linux/linuxthreads/machine/i386/getpagesize.c: Moved.
456         * libc/sys/linux/machine/i386/getpagesize.c: New file.
457         * libc/sys/linux/machine/i386/Makefile.am: Add getpagesize.c.
458         * libc/sys/linux/machine/i386/Makefile.in: Regenerated.
459         * libc/sys/linux/machine/i386/sysdep.h: New file.
460         * libc/sys/linux/machine/i386/weakalias.h: Add weak_function support.
461         * libc/sys/linux/sys/dirent.h: Set _LIBC to 1.
462         * libc/sys/linux/sys/lock.h: Include <machine/weakalias.h>.
463
464 2002-07-12  Jeff Johnston  <jjohnstn@redhat.com>
465
466         * libc/sys/linux/include/mqueue.h: Change to use <bits/siginfo.h>
467         instead of <asm/siginfo.h>.
468         * libc/sys/linux/sys/signal.h: Change to include various linux
469         <bits/xxx.h> header files, rather than <linux/signal.h> so as
470         to work with multiple releases of glibc header files.
471
472 2002-07-11  Chris Demetriou  <cgd@broadcom.com>
473
474         * testsuite/newlib.search/hsearchtest.c: New file to test
475         newlib/libc/search.
476         * testsuite/newlib.search/hsearchtest.exp: Likewise.
477
478 2002-07-10  Florian Schrack  <florian.schrack@freenet.de>
479
480         * libc/sys/mmixware/read.c: Use SYS_Fgets syscall if dealing with
481         a terminal.
482         * libc/sys/mmixware/sys/syscall.h (SYS_Fgets): Definition added.
483
484 2002-07-08  Jeff Johnston  <jjohnstn@redhat.com>
485
486         * libc/include/math.h (MAXFLOAT): Added.
487
488 Mon Jul  8 13:55:23 2002  J"orn Rennecke <joern.rennecke@superh.com>
489
490         * libc/machine/sh/Makefile.am (lib_a_SOURCES):
491         Make strcmp.S unconditional.
492         * libc/machine/sh/Makefile.in: Regenerate.
493         * libc/machine/sh/asm.h (DELAYED_BRANCHES, SL): Also for __SH5__ .
494         * strcmp.S (strcmp): Add SHmedia variant.  Use different registers
495         for SHcompact.
496
497 2002-07-04  Jeff Johnston  <jjohnstn@redhat.com>
498
499         * libc/sys/linux/inode.c: Fix utime prototype and add _LIBC
500         define before including <sys/lock.h>.
501
502 2002-07-04  Jeff Johnston  <jjohnstn@redhat.com>
503
504         * libc/include/utime.h: Add include of <_ansi.h>.
505         * libc/sys/linux/Makefile.am: Add utimes.c.
506         * libc/sys/linux/Makefile.in: Regenerated.
507         * libc/sys/linux/inode.c(__umask): New static routine.
508         (umask): Written to use __umask and attempt to thread lock.
509         (getumask): New function written to use __umask and thread lock.
510         * libc/sys/linux/utimes.c: New file.
511         * libc/sys/linux/sys/time.h: Fix utimes prototype.
512         * libc/sys/linux/sys/utime.h: New file.
513
514 2002-07-04  Thomas Fitzsimmons  <fitzsim@redhat.com>
515
516         * libtool.m4: New file.
517         * libc/sys/linux/process.c: Implement vfork in terms of fork,
518         rather than as a syscall.
519
520 2002-07-04  Jeff Johnston  <jjohnstn@redhat.com>
521
522         * libc/include/stdio.h: Add new prototypes.
523         * libc/stdio/Makefile.am: Add fseeko.c and ftello.c.
524         * libc/stdio/Makefile.in: Regenerated.
525         * libc/stdio/fseek.c: Add fseeko documentation.
526         * libc/stdio/ftell.c: Add ftello documentation.
527         * libc/stdio/fseeko.c: New file.
528         * libc/stdio/ftello.c: New file.
529
530 2002-07-04  Jeff Johnston  <jjohnstn@redhat.com>
531
532         * libc/stdio/Makefile.am: Add asprintf.c and vasprintf.c.
533         * libc/stdio/Makefile.in: Regenerated.
534         * libc/stdio/asprintf.c: New file.
535         * libc/stdio/vasprintf.c: Ditto.
536         * libc/stdio/fvwrite.c: Add code to dynamically reallocate
537         the buffer for asprintf support.
538         * libc/stdio/sprintf.c: Add asprintf documentation.
539         * libc/stdio/vfprintf.c: Add vasprintf documentation.
540         * libc/include/stdio.h: Add new prototypes.
541
542 2002-07-02  Thomas Fitzsimmons  <fitzsim@redhat.com>
543
544         * libc/search/hcreate.c: Remove advertising clause from license.
545         * libc/search/hcreate_r.c: Likewise.
546
547 2002-07-02  Chris Demetriou  <cgd@broadcom.com>
548
549         * libc/include/sys/config.h (__IEEE_LITTLE_ENDIAN)
550         (__IEEE_BIG_ENDIAN): Define appropriately for MIPS.
551         Check that one of them is defined and error out if not.
552         Add any platforms defined in <machine/ieeefp.h> that are missing.
553         * libc/search/hash.h (DB_BYTE_ORDER, DB_BIG_ENDIAN)
554         (DB_LITTLE_ENDIAN): New defines.
555         * libc/search/hash.c: Replace all incorrect checks for
556         _IEEE_LITTLE_ENDIAN with tests of BYTE_ORDER, and all uses of
557         BYTE_ORDER, LITTLE_ENDIAN, and BIG_ENDIAN with DB_* versions.
558         * libc/search/hash_page.c: Likewise.
559
560 2002-06-28  Thomas Fitzsimmons  <fitzsim@redhat.com>
561
562         * libm/mathfp/sf_pow.c (powf): Change k from int to float.
563
564 2002-06-27  Benjamin Kosnik  <bkoz@redhat.com>
565
566         * libc/include/stdio.h: Untangle, add _BEGIN_STD_C and _END_STD_C.
567         * libc/include/time.h: Same.
568         * libc/include/string.h: Same.
569         * libc/include/stdlib.h: Same.
570         * libc/include/signal.h: Same.
571         * libc/include/setjmp.h: Same.
572         * libc/include/math.h: Same.
573         * libc/include/locale.h: Same.
574         * libc/include/ctype.h: Same.
575         * libc/include/machine/setjmp.h: Same.
576         * libc/include/_ansi.h (_BEGIN_STD_C): Add.
577         (_END_STD_C): Add.
578
579 2002-06-27  Jeff Johnston  <jjohnstn@redhat.com>
580
581         * libc/include/sys/_types.h: Define _ssize_t as int if int is
582         32-bits, otherwise define it as long.
583         * libc/include/sys/types.h: Include <_ansi.h> and <sys/_types.h>
584         and define ssize_t as _ssize_t.
585         * libc/reent/readr.c: Change return type to _ssize_t.
586         * libc/reent/writer.c: Ditto.
587         * libc/sys/linux/Makefile.am: Add aio.c.
588         * libc/sys/linux/Makefile.in: Regenerated.
589         * libc/sys/linux/aio.c: New file.
590         * libc/sys/linux/sys/cdefs.h: Add __restrict_arr definition.
591         * libm/common/fdlibm.h: Undef __P before defining it.
592
593 2002-06-27  Thomas Fitzsimmons  <fitzsim@redhat.com>
594
595         * libm/mathfp/s_pow.c (pow): Fix checks on variable k.  Add
596         exponent_is_even_int variable.  Handle case where x is
597         negative, and y is an odd integer.
598         * libm/mathfp/sf_pow.c (powf): Likewise.
599
600         * libm/mathfp/er_lgamma.c: Remove __kernel references.
601         * libm/mathfp/erf_lgamma.c: Likewise.
602         * libm/mathfp/s_tgamma.c: Likewise.
603         * libm/mathfp/sf_tgamma.c: Likewise.
604
605 2002-06-27  Jeff Johnston  <jjohnstn@redhat.com>
606
607         * libc/sys/linux/Makefile.am: Add new clock routines.
608         * libc/sys/linux/Makefile.in: Regenerated.
609         * libc/sys/linux/clock_getres.c: New file.
610         * libc/sys/linux/clock_gettime.c: Ditto.
611         * libc/sys/linux/clock_settime.c: Ditto.
612         * libc/sys/linux/hp-timing.h: Ditto.
613         * libc/sys/linux/libc-internal.h: Ditto.
614         * libc/sys/linux/sysconf.c: Fix typo.
615         * libc/sys/linux/include/time.h: Add include of <sys/linux_time.h>.
616         * libc/sys/linux/machine/hp-timing.h: New file.
617         * libc/sys/linux/machine/i386/Makefile.am: Add new files.
618         * libc/sys/linux/machine/i386/Makefile.in: Regenerated.
619         * libc/sys/linux/machine/i386/get_clockfreq.c: New file.
620         * libc/sys/linux/machine/i386/hp-timing.c: Ditto.
621         * libc/sys/linux/machine/i386/hp-timing.h: Ditto.
622         * libc/sys/linux/sys/linux_time.h: New file.
623         * libc/sys/linux/sys/time.h: Remove include of <linux/time.h> and
624         replace with <sys/linux_time.h>.
625
626 Wed Jun 26 16:33:25 2002  J"orn Rennecke <joern.rennecke@superh.com>
627
628         * libc/sys/sh/crt0.S: Remove vestigial .section directive.
629
630 2002-06-25  Jeff Johnston  <jjohnstn@redhat.com>
631
632         * libc/sys/linux/Makefile.am: Consolidate additional items under
633         ADD_OBJS.
634         * libc/sys/linux/Makefile.in: Regenerated.
635
636 2002-06-25  Jeff Johnston  <jjohnstn@redhat.com>
637
638         * libc/sys/linux/sethostname.c: New file.
639         * libc/sys/linux/Makefile.am: Add sethostname.c support.
640         * libc/sys/linux/Makefile.in: Regenerated.
641
642 2002-06-24  Thomas Fitzsimmons  <fitzsim@redhat.com>
643
644         * libc/search/db_local.h: New file.
645         * libc/include/db.h: Remove.
646         * libc/search/Makefile.am (LIB_SOURCES): Add db_local.h.
647         * libc/search/hash.c (MIN,MAX): Add macros.  Change <db.h> to
648         "db_local.h".
649         * libc/search/hash_bigkey.c: Likewise.
650         * libc/search/hash_buf.c: Likewise.
651         * libc/search/hash_func.c: Likewise.
652         * libc/search/hash_log2.c: Likewise.
653         * libc/search/hash_page.c: Likewise.
654
655 2002-06-24  J"orn Rennecke <joern.rennecke@superh.com>
656
657         * libc/machine/sh/strlen.S: New file.
658         * libc/machine/sh/Makefile.am (lib_a_SOURCES): Add rule for it.
659         * libc/machine/sh/Makefile.am: Regenerate.
660
661 2002-06-24  Jeff Johnston  <jjohnstn@redhat.com>
662
663         * libc/sys/linux/gethostname.c: Change name to __gethostname and
664         add gethostname alias.
665
666 2002-06-24  Jeff Johnston  <jjohnstn@redhat.com>
667
668         * libc/include/math.h: Remove <sys/types.h>.
669         (__dmath): Use __ULong instead of __uint32_t.
670         * libc/include/sys/reent.h: If long or int is not 32-bits,
671         include <sys/types.h> to get definitions for __int32_t and __uint32_t.
672         * libc/stdlib/mprec.h: Include <sys/types.h> to get integer defs.
673         * libm/common/fdlibm.h: Ditto.
674
675 2002-06-24  Thomas Fitzsimmons  <fitzsim@redhat.com>
676
677         * libc/include/ndbm.h: Remove.
678         * libc/search/ndbm.c: Remove.
679
680 2002-06-24  WATANABE Hirofumi <eban@os.rim.or.jp>
681
682         * libc/stdio/fseek.c (fseek): Fix braces.
683
684 2002-06-21  Corinna Vinschen  <corinna@vinschen.de>
685
686         * libc/time/strftime.c (strftime): Add %e format specifier.
687
688 2002-06-21  Thomas Fitzsimmons  <fitzsim@redhat.com>
689
690         * libc/search/hash.h (LITTLE_ENDIAN, BIG_ENDIAN): Define if not
691         previously defined.
692
693 2002-06-21  Richard Earnshaw  (rearnsha@arm.com)
694
695         * libc/sys/arm/sys/param.h (BIG_ENDIAN, LITTLE_ENDIAN): Define.
696         (BYTE_ORDER): Define as appropriate for the target.
697
698 2002-06-21  Jeff Johnston  <jjohnstn@redhat.com>
699
700         * libc/include/sys/config.h[__linux__]: Set _READ_WRITE_RETURN_TYPE
701         to _ssize_t.
702         * libc/sys/linux/io.c (read, write): Change to return ssize_t.
703
704 2002-06-21  Jeff Johnston  <jjohnstn@redhat.com>
705
706         * libc/include/stdio.h (__getline, __getdelim): New prototypes.
707         * libc/include/time.h [HAVE_GETDATE](getdate, getdate_r): Ditto.
708         [HAVE_GETDATE](getdate_err): New error code.
709         * libc/stdio/Makefile.am: Add support for getline.c and getdelim.c.
710         * libc/stdio/Makefile.in: Regenerated.
711         * libc/stdio/getdelim.c: New file.
712         * libc/stdio/getline.c: Ditto.
713         * libc/sys/linux/Makefile.am: Add support for getdate.c, getdate_err.c
714         and ntp_gettime.c.  Also add AM_CFLAGS to point to libc/stdio.
715         * libc/sys/linux/Makefile.in: Regenerated.
716         * libc/sys/linux/getdate.c: New file.
717         * libc/sys/linux/getdate_err.c: Ditto.
718         * libc/sys/linux/ntp_gettime.c: Ditto.
719         * libc/sys/linux/time.c (adjtimex, ntp_adjtime): New functions.
720         * libc/sys/linux/sys/stdio.h (getline, getdelim): New macros.
721
722 2002-06-21  Jeff Johnston  <jjohnstn@redhat.com>
723
724         * libc/include/math.h: Add <sys/types.h> to get _uint32_t definition.
725         * libc/include/machine/types.h: Skip __off_t, __pid_t, and
726         __loff_t definitions if special _HAVE_SYSTYPES macro defined.
727         * libc/include/sys/config.h: Removed _uint*, _int* definitions.
728         * libc/include/sys/param.h: Remove i386 case which is handled
729         by default case.
730         (BIG_ENDIAN, LITTLE_ENDIAN): Protect
731         definitions in case they are already defined.
732         (BYTE_ORDER): Add default case using _IEEE_BIG_ENDIAN and
733         _IEEE_LITTLE_ENDIAN flags.
734         * libc/include/sys/reent.h: Change __uint32_t references to
735         use _ULong instead.
736         (_REENT_GETDATE_REENT_P): New macro.
737         * libc/include/sys/types.h (__int16_t, __uint16_t): Added.
738         (__int32_t, __uint32_t, __int64_t, __uint64_t): Ditto.
739         * libc/search/hash.h: Add default setting of BYTE_ORDER,
740         LITTLE_ENDIAN, and BIG_ENDIAN, if not already defined.
741         * libc/sys/linux/sys/types.h: Include <sys/_types.h>.  Define
742         ssize_t based on _ssize_t.  Remove __socklen_t, __uintptr_t,
743         pid_t, off_t, loff_t, caddr_t, and daddr_t type
744         definitions which are done by subsequent glibc headers.
745         Add macro definitions to prevent subsequent header files from
746         defining pid_t, off_t, ssize_t, and key_t.  Move uintptr_t and
747         intptr_t to after glibc definitions of types they are based on.
748
749 2002-06-21  Jeff Johnston  <jjohnstn@redhat.com>
750
751         * libc/include/errno.h: Protect from multiple inclusion.
752
753 2002-06-21  Nick Clifton  <nickc@cambridge.redhat.com>
754
755         * libc/sys/arm/swi.h (ADP_Stopped_RunTimeError): Set correct value.
756
757 2002-06-20  Thomas Fitzsimmons  <fitzsim@redhat.com>
758
759         * Makefile.am (LIB_OBJECTLISTS): Add
760         libc/search/objectlist.awk.in.
761         * libc/Makefile.am (SUBDIRS): Add search.
762         (SUBLIBS): Add search/libsearch.la.
763         * libc/configure.in (AC_OUTPUT): Add search/Makefile.
764         * libc/search: New directory.
765         * libc/search/Makefile.am: New file.
766         * libc/search/extern.h: New file.
767         * libc/search/hash.c: New file.
768         * libc/search/hash.h: New file.
769         * libc/search/hash_bigkey.c: New file.
770         * libc/search/hash_buf.c: New file.
771         * libc/search/hash_func.c: New file.
772         * libc/search/hash_log2.c: New file.
773         * libc/search/hash_page.c: New file.
774         * libc/search/hcreate.3: New file.
775         * libc/search/hcreate.c: New file.
776         * libc/search/hcreate_r.c: New file.
777         * libc/search/ndbm.c: New file.
778         * libc/search/page.h: New file.
779         * libc/search/tdelete.c: New file.
780         * libc/search/tdestroy.c: New file.
781         * libc/search/tfind.c: New file.
782         * libc/search/tsearch.3: New file.
783         * libc/search/tsearch.c: New file.
784         * libc/search/twalk.c: New file.
785         * libc/include/db.h: New file.
786         * libc/include/ndbm.h: New file.
787         * libc/include/search.h: New file.
788         * libc/include/sys/queue.h: New file.
789         * libc/include/sys/cdefs.h: New file.
790         * libc/include/sys/param.h
791         [__IEEE_LITTLE_ENDIAN,__IEEE_BIG_ENDIAN]: Set BYTE_ORDER to
792         LITTLE_ENDIAN or BIG_ENDIAN.
793         * libc/include/sys/errno.h (EFTYPE): New macro.
794         * libc/search/bsearch.c: Move from libc/stdlib.
795         * libc/search/qsort.c: Likewise.
796         * libc/stdlib/Makefile.am (LIB_SOURCES): Remove bsearch.c and
797         qsort.c.
798         (CHEWOUT_FILES): Remove bsearch.def and qsort.def.
799         * libc/stdlib/stdlib.tex: Remove references to bsearch and qsort.
800
801 2002-06-19  Jeff Johnston  <jjohnstn@redhat.com>
802
803         * libc/sys/linux/Makefile.am: Add support for message queue routines,
804         ipc routines, and ftok.
805         * libc/sys/linux/Makefile.in: Regenerated.
806         * libc/sys/linux/ftok.c: New file.
807         * libc/sys/linux/ipc.c: Ditto.
808         * libc/sys/linux/mq_close.c: Ditto.
809         * libc/sys/linux/mq_getattr.c: Ditto.
810         * libc/sys/linux/mq_notify.c: Ditto.
811         * libc/sys/linux/mq_open.c: Ditto.
812         * libc/sys/linux/mq_receive.c: Ditto.
813         * libc/sys/linux/mq_send.c: Ditto.
814         * libc/sys/linux/mq_setattr.c: Ditto.
815         * libc/sys/linux/mq_unlink.c: Ditto.
816         * libc/sys/linux/mqlocal.h: Ditto.
817         * libc/sys/linux/include/mqueue.h: Ditto.
818         * libc/sys/linux/sys/types.h: Define __gid_t_defined and
819         __uid_t_defined.
820
821 2002-06-19  J"orn Rennecke <joern.rennecke@superh.com>
822
823         * libm/common/sf_lround.c (round): Change name to: (lround).
824         * libm/common/sf_remquo.c (remquo): Pass all arguemnts to
825         remquof.
826
827 2002-06-18  Thomas Fitzsimmons  <fitzsim@redhat.com>
828
829         * testsuite/lib/passfail.exp (newlib_pass_fail_all): New
830         procedure.
831         (newlib_pass_fail): Change to compile and run only one file.
832         * testsuite/newlib.locale/locale.exp: Use new
833         newlib_pass_fail_all procedure.
834         * testsuite/newlib.string/string.exp: Likewise.
835
836 2002-06-18  Dave Brolley  <brolley@redhat.com>
837
838         From Catherine Moore, Michael Meissner, Richard Sandiford:
839         * libc/include/machine/setjmp.h (_JBLEN): Define for __frv__.
840         (_JBTYPE): Ditto.
841         * libc/include/sys/config.h (__IEEE_BIG_ENDIAN): Ditto.
842         (__ATTRIBUTE_IMPURE_PTR__): Ditto.
843         * libc/include/machine/ieeefp.h (__IEEE_BIG_ENDIAN): Ditto.
844         * configure.host: Support frv-*-*.
845         * libc/machine/frv/Makefile.am: New file.
846         * libc/machine/frv/configure.in: New file.
847         * libc/machine/frv/setjmp.S: New file.
848
849 2002-06-18  Thomas Fitzsimmons  <fitzsim@redhat.com>
850
851         * libc/include/ctype.h: Remove isblank macro.
852
853         * libc/ctype/Makefile.am (LIB_SOURCES): Add isblank.c.
854         * libc/ctype/isblank.c: New file.
855         * libc/include/ctype.h [!__STRICT_ANSI__]: Add isblank
856         declaration.  Add isblank macro.
857
858 2002-06-18  Jeff Johnston  <jjohnstn@redhat.com>
859
860         * testsuite/newlib.stdlib/atexit.c: New file.
861         * testsuite/newlib.stdlib/atexit.exp: Ditto.
862         * testsuite/newlib.string/tstring.c: Change default start size
863         to something more reasonable for embedded platforms.
864
865 2002-06-14  Thomas Fitzsimmons  <fitzsim@redhat.com>
866
867         * libc/sys/linux/sys/errno.h (EFTYPE): Add macro.
868
869         * libc/argz: New directory.
870         * libc/argz/*: New files.
871         * libc/argz/argz_add.c: New file.
872         * libc/argz/argz_add_sep.c: New file.
873         * libc/argz/argz_append.c: New file.
874         * libc/argz/argz_count.c: New file.
875         * libc/argz/argz_create.c: New file.
876         * libc/argz/argz_create_sep.c: New file.
877         * libc/argz/argz_delete.c: New file.
878         * libc/argz/argz_extract.c: New file.
879         * libc/argz/argz_insert.c: New file.
880         * libc/argz/argz_next.c: New file.
881         * libc/argz/argz_replace.c: New file.
882         * libc/argz/argz_stringify.c: New file.
883         * libc/argz/buf_findstr.c: New file.
884         * libc/argz/envz_add.c: New file.
885         * libc/argz/envz_entry.c: New file.
886         * libc/argz/envz_get.c: New file.
887         * libc/argz/envz_merge.c: New file.
888         * libc/argz/envz_remove.c: New file.
889         * libc/argz/envz_strip.c: New file.
890         * libc/include/argz.h: New file.
891         * libc/include/envz.h: New file.
892         * Makefile.am (LIBC_OBJECTLISTS): Add
893         libc/argz/objectlist.awk.in.
894         * libc/Makefile.am (SUBDIRS): Add argz.
895         (SUBLIBS): Add argz/libargz.la.
896         * libc/configure.in (AC_OUTPUT): Add argz/Makefile.
897         * libc/include/errno.h: Add error_t typedef.
898
899 2002-06-13  Jeff Johnston  <jjohnstn@redhat.com>
900
901         * libc/include/stdlib.h: Add _Exit prototype.
902         * libc/stdlib/Makefile.am: Add _Exit.c support.
903         * libc/stdlib/Makefile.in: Ditto.
904         * libc/stdlib/_Exit.c: New file.
905
906 2002-06-13  Stephen L. Moshier  <steve@moshier.net>
907
908         * libm/math/e_pow.c (__ieee754_pow): Fix case whereby
909         x is close to -1.0 and y is very large to use ax (absolute value)
910         instead of x.
911         * libm/math/ef_pow.c (__ieee754_powf): Ditto.
912
913 Thu Jun 13 19:23:40 2002  J"orn Rennecke <joern.rennecke@superh.com>
914
915         * libc/machine/sh/strcpy.S (strcpy, __SHMEDIA__ code):
916         Fix clobbering bytes before destination if src and dst have same
917         non-zero misalignment.
918
919         * libc/machine/sh/memset.S (memset, __SHMEDIA__ code):
920         Fixed bug in writing end of set region.
921
922 2002-06-10  Christopher Faylor  <cgf@redhat.com>
923
924         * libc/include/process.h: Remove cygwin-only sexec* declarations.  Fix
925         spawnve declaration.
926
927 2002-06-06  Thomas Fitzsimmons  <fitzsim@redhat.com>
928
929         * libm/common/s_fdim.c: New file.
930         * libm/common/s_fma.c: Likewise.
931         * libm/common/s_fmax.c: Likewise.
932         * libm/common/s_fmin.c: Likewise.
933         * libm/common/s_fpclassify.c: Likewise.
934         * libm/common/s_lrint.c: Likewise.
935         * libm/common/s_lround.c: Likewise.
936         * libm/common/s_nearbyint.c: Likewise.
937         * libm/common/s_remquo.c: Likewise.
938         * libm/common/s_round.c: Likewise.
939         * libm/common/s_scalbln.c: Likewise.
940         * libm/common/s_signbit.c: Likewise.
941         * libm/common/s_trunc.c: Likewise.
942         * libm/common/sf_fdim.c: Likewise.
943         * libm/common/sf_fma.c: Likewise.
944         * libm/common/sf_fmax.c: Likewise.
945         * libm/common/sf_fmin.c: Likewise.
946         * libm/common/sf_lrint.c: Likewise.
947         * libm/common/sf_lround.c: Likewise.
948         * libm/common/sf_nearbyint.c: Likewise.
949         * libm/common/sf_remquo.c: Likewise.
950         * libm/common/sf_round.c: Likewise.
951         * libm/common/sf_scalbln.c: Likewise.
952         * libm/common/sf_trunc.c: Likewise.
953         * libm/math/w_exp2.c: Likewise.
954         * libm/math/w_tgamma.c: Likewise.
955         * libm/math/wf_exp2.c: Likewise.
956         * libm/math/wf_tgamma.c: Likewise.
957         * libm/mathfp/s_exp2.c: Likewise.
958         * libm/mathfp/s_tgamma.c: Likewise.
959         * libm/mathfp/sf_exp2.c: Likewise.
960         * libm/mathfp/sf_tgamma.c: Likewise.
961         * libm/math/er_gamma.c: Fix return value.
962         * libm/math/erf_gamma.c: Likewise.
963         * libm/mathfp/er_gamma.c: Likewise.
964         * libm/mathfp/erf_gamma.c: Likewise.
965         * libc/include/math.h (!__STRICT_ANSI__): Include ISOC99-specific
966         declarations and macros.
967         Regenerated all Makefile.in, aclocal.m4 and configure files to
968         use new libtool macros in top-level libtool.m4
969
970 2002-06-05  Jeff Johnston  <jjohnstn@redhat.com>
971
972         * libc/include/string.h[__linux__]: Add strsignal prototype.
973         * libc/include/sys/lock.h: New file with default locking support.
974         * libc/include/sys/reent.h: Add signal buffer support for strsignal
975         and psignal.
976         * libc/posix/Makefile.am: Add support for readdir_r.c.
977         * libc/posix/Makefile.in: Regenerated.
978         * libc/posix/closedir.c: Add locking support and hash table cleanup.
979         * libc/posix/opendir.c: Add lock support.
980         * libc/posix/readdir.c: Ditto.
981         * libc/posix/rewinddir.c: Ditto.
982         * libc/posix/scandir.c: Ditto.
983         * libc/posix/seekdir.c: Ditto.
984         * libc/posix/telldir.c: Ditto plus add _cleanupdir routine to
985         clean up leftover hash table entries.
986         * libc/posix/readdir_r.c: New file.
987         * libc/sys/linux/Makefile.am: Add psignal.c and strsignal.c support.
988         * libc/sys/linux/Makefile.in: Regenerated.
989         * libc/sys/linux/sys/dirent.h: Add dd_lock to DIR structure.
990         * libc/sys/linux/sys/signal.h: Add psignal prototype.
991         * libc/sys/linux/psignal.c: New file.
992         * libc/sys/linux/strsignal.c: Ditto.
993
994 2002-06-03  Corinna Vinschen  <corinna@vinschen.de>
995
996         * libc/include/sys/types.h: Don't define dev_t when compiling for
997         Cygwin.
998
999 2002-05-31  Jeff Johnston  <jjohnstn@redhat.com>
1000
1001         * libc/sys/linux/Makefile.am: Add sig.c and sigaction.c.  Also
1002         make siglist.inc dependent on sig.c instead of signal.c.
1003         * libc/sys/linux/Makefile.in: Regenerated.
1004         * libc/sys/linux/sig.c: Rename from signal.c and change code to
1005         use NSIG instead of _NSIG. 
1006         * libc/sys/linux/sigaction.c: New file.
1007         * libc/sys/linux/signal.c: Changed to be linux signal() function
1008         so as to override regular newlib default signal.c.
1009         * libc/sys/linux/machine/i386/Makefile.am: Remove sigset.c.
1010         * libc/sys/linux/machine/i386/Makefile.in: Regenerated.
1011         * libc/sys/linux/machine/i386/sigset.c: Moved to linux main directory.
1012         * libc/sys/linux/sigset.c: Moved from machine/i386 directory.
1013         * libc/sys/linux/sys/signal.h: Redefine NSIG to _NSIG and override
1014         default linux sigset_t typedef by defining it equal to __sigset_t.
1015         * libc/unix/sigset.c: Add check so code isn't compiled on systems
1016         with a sigset_t that isn't implemented with a single int.
1017
1018 2002-05-30  Jeff Johnston  <jjohnstn@redhat.com>
1019
1020         * libc/sys/linux/Makefile.am: Add support for new files.
1021         * libc/sys/linux/Makefile.in: Regenerated.
1022         * libc/sys/linux/ids.c: Add __getuid weak alias for getuid.
1023         * libc/sys/linux/signal.c: Change to use real-time syscalls for
1024         sigsuspend, sigprocmask, and sigpending.  Also remove sigaction as
1025         it is in a separate file now.
1026         * libc/sys/linux/machine/i386/Makefile.am
1027         * libc/sys/linux/machine/i386/Makefile.in
1028         * libc/sys/linux/sys/signal.h: Add include of <bits/signum.h>.
1029         * libc/sys/linux/sigaction.c: New file.
1030         * libc/sys/linux/sigqueue.c: Ditto.
1031         * libc/sys/linux/sigwait.c: Ditto.
1032         * libc/sys/linux/machine/i386/sigaction.c: Ditto.
1033         * libc/sys/linux/kernel_sigaction.h: Ditto.
1034
1035 2002-05-28  Jeff Johnston  <jjohnstn@redhat.com>
1036
1037         * libc/sys/linux/Makefile.am: Add support for cfspeed.c and
1038         tcsendbrk.c.
1039         * libc/sys/linux/Makefile.in: Regenerated.
1040         * libc/sys/linux/termios.c: Add tcflow(), tcflush(),
1041         tcgetpgrp(), and tcsetpgrp() functions.
1042         * libc/sys/linux/sys/termios.h: Add include of machine/termios.h
1043         to get __MAX_BAUD rate.
1044         * libc/sys/linux/machine/i386/include/termios.h: New file.
1045         * libc/include/machine/termios.h: Ditto.
1046         * libc/sys/linux/cfspeed.c: Ditto.
1047         * libc/sys/linux/tcsendbrk.c: Ditto.
1048
1049 2002-05-24  Jeff Johnston  <jjohnstn@redhat.com>
1050
1051         * libc/include/string.h: Add strnlen and strerror_r prototypes.
1052         * libc/string/Makefile.am: Add strnlen.c and strerror_r.c support.
1053         * libc/string/Makefile.in: Regenerated.
1054         * libc/string/strerror_r.c: New file.
1055         * libc/string/strnlen.c: New file.
1056         * libc/sys/linux/Makefile.am: Add rename.c.
1057         * libc/sys/linux/Makefile.in: Regenerated.
1058         * libc/sys/linux/rename.c: New file to override default rename.
1059
1060 2002-05-24  Thomas Fitzsimmons  <fitzsim@redhat.com>
1061
1062         * libc/sys/linux/sys/cdefs.h: Add __weak_reference macros.
1063         * libc/sys/linux/sys/time.h: Add conversion macros.
1064         * libc/sys/linux/sys/types.h: Add FD_ macros.  Include <bits/types.h>.
1065         * libc/sys/linux/ids.c: Add setresuid and syslog syscalls.
1066         * libc/sys/linux/gethostname.c: New file.
1067         * libc/sys/linux/seteuid.c: New file.
1068         * libc/sys/linux/sysctl.c: New file.
1069         
1070 2002-05-23  Jeff Johnston  <jjohnstn@redhat.com>
1071
1072         * libc/string/Makefile.am: Add support for strsep.c.
1073         * libc/string/Makefile.in: Regenerated.
1074         * libc/string/strsep.c: New file.
1075         * libc/string/strtok.c: Change to call __strtok_r service routine.
1076         * libc/string/strtok_r.c: Add __strtok_r routine which takes
1077         additional flag parameter regarding whether to skip leading delimeters.
1078         Change strtok_r to call __strtok_r.
1079
1080 2002-05-23  Gareth Pearce  <tilps@hotmail.com>
1081
1082         * libc/stdio/Makefile.am: Modify to add setbuffer.c and setlinebuf.c.
1083         * libc/stdio/Makefile.in: Regenerated.
1084         * libc/stdio/setbuffer.c: New file.
1085         * libc/stdio/setlinebuf.c: New file.
1086
1087 2002-05-23  Jeff Johnston  <jjohnstn@redhat.com>
1088
1089         * libc/sys/linux/Makefile.am: Add resource.c.
1090         * libc/sys/linux/Makefile.in: Regenerated.
1091         * libc/sys/linux/resource.c: New file.
1092         * libc/sys/linux/time.c: Add settimeofday, getitimer, and setitimer.
1093         * libc/sys/linux/machine/i386/Makefile.am: Remove syscalls.c.
1094         * libc/sys/linux/machine/i386/Makefile.in: Regenerated.
1095         * libc/sys/linux/machine/i386/syscalls.c: Removed as functions
1096         are now found in libc/sys/linux/resource.c.
1097
1098 2002-05-23  Jeff Johnston  <jjohnstn@redhat.com>
1099
1100         * libc/include/string.h (bcmp, bcopy, bzero): Change prototypes
1101         to use void * pointers and comply with Single Unix spec.
1102         * libc/string/bcmp.c: Change to use void * instead of char *.
1103         * libc/string/bcopy.c: Ditto.
1104         * libc/string/bzero.c: Ditto.
1105
1106 2002-05-22  Jeff Johnston  <jjohnstn@redhat.com>
1107
1108         * libc/sys/linux/shm_open.c: New file.
1109         * libc/sys/linux/shm_unlink.c: Ditto.
1110         * libc/sys/linux/Makefile.am: Add support for shm_open.c and
1111         shm_unlink.c.
1112         * libc/sys/linux/Makefile.in: Regenerated.
1113         * libc/sys/linux/sys/types.h: Add some additional checks to see
1114         if clock_t or time_t is already defined.
1115
1116 2002-05-22  Jeff Johnston  <jjohnstn@redhat.com>
1117
1118         * Makefile.am: Don't pass $toollibdir down directly in
1119         AM_MAKEFLAGS as it causes all multilibs to use the same toollibdir.
1120         Pass it under the name: top_toollibdir.
1121         * Makefile.in: Regenerated.
1122
1123 2002-05-22  Corinna Vinschen  <vinschen@redhat.com>
1124
1125         * libc/include/sys/types.h: Revert previous patch.
1126
1127 2002-05-22  Corinna Vinschen  <vinschen@redhat.com>
1128
1129         * libc/include/sys/types.h: Include cygwin/types.h always under
1130         Cygwin, not only if _POSIX_THREADS is defined.
1131
1132 2002-05-21 Dhananjay Deshpande <dhananjayd@kpit.com>
1133
1134         * configure.host: Specify sys_dir=h8300hms for h8300-*-coff* target.
1135
1136 2002-05-17  Jeff Johnston  <jjohnstn@redhat.com>
1137
1138         * Makefile.am: Copy and install headers from sys/machine/include
1139         directory.  Also pass $toollibdir to lower-level directories.
1140         * Makefile.in: Regenerated.
1141         * libc/include/stdio.h[!_REENT_ONLY]: Change stdin, stdout, and 
1142         stderr to use _REENT macro instead of _impure_ptr directly.
1143         * libc/include/sys/config.h[__i386__][__linux__]: Define
1144         __DYNAMIC_REENT__.
1145         * libc/include/sys/reent.h[!_REENT_ONLY]: Change _REENT macro to be 
1146         call to __getreent() function if !__SINGLE_THREAD__ and
1147         __DYNAMIC_REENT__ is set.
1148         * libc/reent/Makefile.am: Add support for getreent.c.
1149         * libc/reent/Makefile.in: Regenerated.
1150         * libc/string/strerror.c: Add check if EOPNOTSUPP and ENOTSUP are same.
1151         * libc/sys/linux/Makefile.am: Add support for new files.
1152         * libc/sys/linux/configure.in: Add $EXTRA_DIRS variable.
1153         * libc/sys/linux/Makefile.in: Regenerated.
1154         * libc/sys/linux/configure: Ditto.
1155         * libc/sys/linux/io.c: Add poll syscall.  Also weak-alias
1156         __close, __read, __write, __poll, __open, __lseek, __fcntl from
1157         their __libc_ counterparts.
1158         * libc/sys/linux/io64.c: Add __libc_ prefix to lseek64 and open64
1159         and weak-alias to regular names.
1160         * libc/sys/linux/pread64.c: Rename to __libc_pread64 and weak-alias
1161         to pread64 and __pread64.
1162         * libc/sys/linux/process.c: Weak_alias __libc_getpid to __getpid.
1163         * libc/sys/linux/pwrite64.c: Rename to __libc_pwrite64 and
1164         weak-alias to pwrite64.
1165         * libc/sys/linux/sched.c: Weak-alias __libc_sched_getparam,
1166         __libc_sched_getscheduler, __libc_sched_get_priority_max,
1167         __libc_sched_get_priority_min, and __libc_sched_setschedule to
1168         name with __ instead of __libc_. 
1169         * libc/sys/linux/siglongjmp.c: Include <machine/weakalias.h>.
1170         Rename siglongjmp to __libc_siglongjmp and weak-alias to siglongjmp.
1171         Call __libc_longjmp instead of longjmp, from __libc_siglongjmp.
1172         * libc/sys/linux/signal.c: Rename raise to __libc_raise and weak-alias
1173         to raise.
1174         * libc/sys/linux/socket.c: Weak-alias __libc_connect to __connect and
1175         __libc_send to __send.
1176         * libc/sys/linux/time.c: Weak-alias __libc_gettimeofday to
1177         __gettimeofday.
1178         * libc/sys/linux/wait.c: Rename wait to __libc_wait and weak-alias
1179         it to wait.  Rename wait3 to __libc_wait3 and weak-alias it to wait3.
1180         * libc/sys/linux/include/setjmp.h: Use __jmp_buf in sigjmp_buf
1181         type and typedef __jmp_buf to jmp_buf.
1182         * libc/sys/linux/machine/i386/Makefile.am: Add syscalls.c and
1183         setjmp.S.
1184         * libc/sys/linux/machine/i386/Makefile.in: Regenerated.
1185         * libc/sys/linux/machine/i386/crt0.c: Add support to clear .bss
1186         section.
1187         * libc/sys/linux/machine/i386/socketcall.h: Change to use __libc_
1188         prefix for function macros and then use weak_alias() to regular names.
1189         * libc/sys/linux/machine/i386/syscall.h: Ditto.
1190         * libc/sys/linux/sys/errno.h: Define EOPNOTSUP to be ENOTSUP.
1191         * libc/sys/linux/sys/stdio.h: Define _flockfile and _funlockfile
1192         to be flockfile() and funlockfile() respectively.
1193         * libc/sys/linux/sys/types.h
1194         * libc/reent/getreent.c: New file.
1195         * libc/sys/linux/flockfile.c: Ditto.
1196         * libc/sys/linux/funlockfile.c: Ditto.
1197         * libc/sys/linux/getreent.c: Ditto.
1198         * libc/sys/linux/pread.c: Ditto.
1199         * libc/sys/linux/pwrite.c: Ditto.
1200         * libc/sys/linux/raise.c: Ditto.
1201         * libc/sys/linux/system.c: Ditto.
1202         * libc/sys/linux/tcdrain.c: Ditto.
1203         * libc/sys/linux/machine/i386/i386mach.h: Ditto.
1204         * libc/sys/linux/machine/i386/setjmp.S: Ditto.
1205         * libc/sys/linux/machine/i386/syscalls.c: Ditto.
1206         * libc/sys/linux/machine/i386/weakalias.h: Ditto.
1207         * libc/sys/linux/machine/i386/include/setjmp.h: Ditto.
1208
1209 2002-05-14 Dhananjay Deshpande <dhananjayd@kpit.com>
1210
1211         * newlib/libc/sys/h8300hms/Makeile.am (lib_a_SOURCES): Add read.c.
1212         * newlib/libc/sys/h8300hms/read.c: New file.  Magic trap 0xC8 for sim.
1213         * newlib/libc/sys/h8300hms/syscalls.c: Move _read() to read.c.
1214         * newlib/libs/sys/h8300hms/sys/syscall.h: New file.
1215
1216 Thu May 16 17:24:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
1217
1218         * libc/machine/sh/strcpy.S (strcpy): Replace LITTLE_ENDIAN with
1219         __LITTLE_ENDIAN__.  make sure r0 has right value at first loop
1220         exit point.
1221
1222 2002-05-15  Thomas Fitzsimmons  <fitzsim@redhat.com>
1223
1224         * testsuite/lib/newlib.exp: Add newlib_include_flags to compile
1225         options when testing natively on i[3456]86-*-linux.
1226
1227         * testsuite/lib/checkoutput.exp (newlib_check_output): Output
1228         only one pass or fail per test file.  Trim \r's from output
1229         values received from test programs.  Remove support for named
1230         tests.
1231         * testsuite/newlib.locale/UTF-8.exp: Update to support new
1232         newlib_check_output behaviour.
1233         * testsuite/newlib.locale/UTF-8.c: Likewise.
1234
1235 2002-05-15  Jeff Johnston  <jjohnstn@redhat.com>
1236
1237         * libc/include/stdlib.h: Add on_exit prototype.
1238         * libc/include/sys/reent.h (struct _atexit): Add argument array
1239         and bits to track type of exit routine to support both on_exit
1240         and atexit.
1241         (_REENT_INIT_PTR): Add missing fields that won't be zeroed out
1242         by default and change the setting of the atexit structure.
1243         (_REENT_INIT)[!_REENT_SMALL]: Remove extraneous end brace.
1244         * libc/stdlib/on_exit.c: New file.
1245         * libc/stdlib/Makefile.am: Add support for on_exit.
1246         * libc/stdlib/Makefile.in: Regenerated.
1247         * libc/stdlib/atexit.c: Change to initialize types field.
1248         * libc/stdlib/exit.c: Change to look at types field for each
1249         exit routine and either call an atexit-style or an on_exit-style
1250         routine accordingly.
1251
1252 2002-05-13  Jeff Johnston  <jjohnstn@redhat.com>
1253
1254         * libc/machine/powerpc/vfprintf.c(__VFPRINTF_R)[__ALTIVEC__]: Don't
1255         allow v specifier with n or L specifiers.  For vector c format,
1256         move tmp declaration to the top.
1257
1258 2002-05-13  Jeff Johnston  <jjohnstn@redhat.com>
1259
1260         * libc/machine/powerpc/vfprintf.c(__VFPRINTF_R)[__ALTIVEC__]: Restore
1261         the original format specifier when looping for vectors to compensate
1262         for any changes made in vector %g format processing.
1263         Also add syntax checking for various invalid scenarios
1264         involving vector format extensions.
1265         * libc/machine/powerpc/vfscanf.c(__VFSCANF_R)[__ALTIVEC__]: Fix
1266         return code setting for vector formats.  Also treat vector
1267         separator mismatch as a match error instead of an input error.
1268         Perform some syntax checking for vector formats.
1269
1270 2002-05-10  Mark Bradshaw  <bradshaw@staff.crosswalk.com>
1271
1272         * libc/include/string.h (!__STRICT_ANSI__): Add strlcat and strlcpy.
1273         * libc/string/Makefile.am: Add strlcat.c and strlcpy.c.
1274         * libc/string/strlcat.c: New file.
1275         * libc/string/strlcpy.c: New file.
1276
1277 2002-05-10  Jeff Johnston  <jjohnstn@redhat.com>
1278
1279         * libc/string/strchr.c: Fix comment typo.
1280
1281 2002-05-08  Thomas Fitzsimmons  <fitzsim@redhat.com>
1282
1283         * acinclude.m4: Add support for --enable-newlib-multithread.
1284         * configure.host (newlib_cflags): Add -D__SINGLE_THREAD__ if
1285         --enable-newlib-multithread=no.
1286
1287         * libc/stdio/getc_u.c: New file.
1288         * libc/stdio/getchar_u.c: New file.
1289         * libc/stdio/putc_u.c: New file.
1290         * libc/stdio/putchar_u.c: New file.
1291         * libc/include/stdio.h: Add declarations for getc_unlocked,
1292         getchar_unlocked, putc_unlocked and putchar_unlocked.
1293         * libc/stdio/Makefile.am (LIB_SOURCES): Add new files.
1294         (CHEWOUT_FILES): Add new files' .def's.
1295         * libc/stdio/putchar.c (_putchar_r): Replace __sputc with putc.
1296
1297 Wed May  8 17:47:35 2002  J"orn Rennecke <joern.rennecke@superh.com>
1298
1299         * libc/machine/sh/memset.S (memset, __SHMEDIA__ code):
1300         Also handle as single quad word when destination ends at last
1301         byte of first quad word.  Fix byte selection in single quad code.
1302
1303 2002-05-07  Thomas Fitzsimmons  <fitzsim@redhat.com>
1304
1305         * libc/include/sys/stdio.h: New file.
1306         * libc/sys/linux/sys/stdio.h: New file.
1307         * libc/include/stdio.h: Add declarations for flockfile,
1308         ftrylockfile, and funlockfile.  Include <sys/stdio.h>.
1309         * libc/stdio/clearerr.c: Add file locking.
1310         * libc/stdio/fclose.c: Likewise.
1311         * libc/stdio/feof.c: Likewise.
1312         * libc/stdio/ferror.c: Likewise.
1313         * libc/stdio/fflush.c: Likewise.
1314         * libc/stdio/fgetc.c: Likewise.
1315         * libc/stdio/fgetpos.c: Likewise.
1316         * libc/stdio/fgets.c: Likewise.
1317         * libc/stdio/fileno.c: Likewise.
1318         * libc/stdio/fputc.c: Likewise.
1319         * libc/stdio/fputs.c: Likewise.
1320         * libc/stdio/fread.c: Likewise.
1321         * libc/stdio/freopen.c: Likewise.
1322         * libc/stdio/fseek.c: Likewise.
1323         * libc/stdio/ftell.c: Likewise.
1324         * libc/stdio/fwrite.c: Likewise.
1325         * libc/stdio/getc.c: Likewise.
1326         * libc/stdio/putc.c: Likewise.
1327         * libc/stdio/setvbuf.c: Likewise.
1328         * libc/stdio/ungetc.c: Likewise.
1329         * libc/stdio/vfprintf.c: Likewise.
1330
1331 2002-05-06  Jeff Johnston  <jjohnstn@redhat.com>
1332
1333         * libc/machine/powerpc/vfprintf.c[__ALTIVEC__]: Add vector
1334         support for 'p' format.  Fix code to print bytes for vector
1335         integer formats that do not specify 'h' or 'l'.
1336         * libc/machine/powerpc/vfscanf.c[__ALTIVEC__]: Add vector support
1337         for 'p' specifier.  Fix code to scan 16 bytes for vector integer
1338         formats that do not specify 'h' or 'l'.
1339
1340         * libc/include/stdlib.h (a64l, l64a, _l64a_r): Added prototypes.
1341
1342 2002-05-06  Nick Clifton  <nickc@cambridge.redhat.com>
1343
1344         * libc/sys/arm/syscalls.c (_rename): Add parameter names.
1345         (_sbrk): Add cast of return value.
1346
1347 2002-05-06  Jeff Johnston  <jjohnstn@redhat.com>
1348
1349         *  libc/include/sys/reent.h (_l64a_buf): New reentrant area.
1350         (_REENT_L64A_BUF): New macro for accessing area.
1351         *  libc/stdlib/Makefile.am: Add a64l.c and l64a.c.
1352         *  libc/stdlib/Makefile.in: Regenerated.
1353         *  libc/stdlib/a64l.c: New file.
1354         *  libc/stdlib/l64a.c: New file.
1355
1356 2002-05-06  Jeff Johnston  <jjohnstn@redhat.com>
1357
1358         * libc/unix/pread.c: Fix typo for _pread_r.
1359         * libc/unix/pwrite.c: Fix type for _pwrite_r.
1360         * libc/sys/linux/pread64.c: Fix typo for read syscall.
1361         * libc/sys/linux/pwrite64.c: Fix typo for write syscall.
1362
1363 2002-05-03  Christopher Faylor  <cgf@redhat.com>
1364
1365         * libc/include/sys/unistd.h: Define getdomainname under cygwin.
1366
1367 2002-05-03  Thomas Fitzsimmons  <fitzsim@redhat.com>
1368
1369         * configure.in (CC_FOR_NEWLIB): Change -isystem's to -I's.
1370
1371 2002-05-01  Christopher Faylor  <cgf@redhat.com>
1372
1373         * utmp.h: Define more UNIX constants.
1374
1375 2002-05-01  Thomas Fitzsimmons  <fitzsim@redhat.com>
1376
1377         * Makefile.am: Add support for checking multilibs.
1378
1379         * libc/Makefile.am (SUBLIBS): Add LIBC_EXTRA_LIB.
1380         (SUBDEFS): Add LIBC_EXTRA_DEF.
1381         * libc/configure.in (LIBC_EXTRA_LIB): New variable.
1382         (LIBC_EXTRA_DEF): Likewise.
1383         (extra_dir): Likewise.
1384         * libc/machine/xscale/machine: New directory.
1385         * libc/machine/xscale/machine/profile.h: New file.
1386
1387         * Makefile.am (site.exp): Remove newlib_cflags.  Add
1388         multibuildtop.
1389         * testsuite/newlib.locale/UTF-8.c: Change fprintf's to printf's.
1390         * testsuite/lib/flags.exp: New file.
1391         * testsuite/lib/newlib.exp: Load flags.exp.
1392         (newlib_target_compile): Remove libgloss directory references.
1393         (newlib_init): Remove newlib_cflags references.
1394
1395 2002-04-30  Thomas Fitzsimmons  <fitzsim@redhat.com>
1396
1397         * testsuite/lib/newlib.exp (newlib_target_compile): Change
1398         method of finding libgloss_target_dir.
1399
1400         * Makefile.am (site.exp): Change host_alias, host_triplet,
1401         target_alias, target_triplet to refer to gcc's host and target
1402         variables (newlib's build and host variables).
1403         * testsuite/lib/newlib.exp (newlib_init): Change build
1404         references to host references, host references to target
1405         references to reflect Makefile.am changes.
1406         (newlib_target_compile): Likewise.
1407         (newlib_finish): Likewise.
1408
1409 2002-04-29  Jeff Johnston  <jjohnstn@redhat.com>
1410
1411         * libc/sys/linux/io64.c (fstat64, lstat64): New syscalls added.
1412
1413 2002-04-29  Jonathan Larmour  <jlarmour@redhat.com>
1414
1415         * libc/sys/arm/syscalls.c (_rename): New function. Just a stub.
1416         (_system): New function. Ditto.
1417         * libc/stdlib/system.c (_system_r): Call _system if HAVE_SYSTEM.
1418         * configure.host: define HAVE_SYSTEM and HAVE_RENAME for xscale
1419         targets.
1420
1421 2002-04-29  Jeff Johnston  <jjohnstn@redhat.com>
1422
1423         *  libc/include/sys/unistd.h (pread, pwrite): Added prototypes.
1424         *  libc/unix/Makefile.am: Add pread.c and pwrite.c.
1425         *  libc/sys/linux/Makefile.am: Add pread64.c and pwrite64.c.
1426         *  libc/sys/linux/Makefile.in: Regenerated.
1427         *  libc/unix/Makefile.in: Ditto.
1428         *  libc/sys/linux/pread64.c: New file.
1429         *  libc/sys/linux/pwrite64.c: Ditto.
1430         *  libc/unix/pread.c: Ditto.
1431         *  libc/unix/pwrite.c: Ditto.
1432
1433 2002-04-26  Jeff Johnston  <jjohnstn@redhat.com>
1434
1435         *  libc/sys/linux/Makefile.am: Add io64.c.
1436         *  libc/sys/linux/Makefile.in: Regenerated.
1437         *  libc/sys/linux/io.c(mkfifo, fsync, fdatasync): Added syscalls.
1438         *  libc/sys/linux/signal.c (sigwaitinfo, sigtimedwait): Ditto. 
1439         *  libc/sys/linux/io64.c: New file.
1440
1441 2002-04-26  Jeff Johnston  <jjohnstn@redhat.com>
1442
1443         * configure.in (CC_FOR_NEWLIB): New variable that
1444         bases on $(CC) and adds targ-include and libc/include as
1445         -isystem directives if they are not already part of $(CC).
1446         * Makefile.am (AM_MAKEFLAGS): Change setting of CC to equal
1447         $(CC_FOR_NEWLIB).
1448         * configure: Regenerated.
1449         * Makefile.in: Ditto.
1450
1451 2002-04-25  Jeff Johnston  <jjohnstn@redhat.com>
1452
1453         *  libc/sys/linux/Makefile.am: Add support for sched.c.
1454         *  libc/sys/linux/Makefile.in: Regenerated.
1455         *  libc/sys/linux/sched.c: New file.
1456         *  libc/sys/linux/sys/types.h: Add struct timespec.
1457
1458 2002-04-25  Thomas Fitzsimmons  <fitzsim@redhat.com>
1459
1460         * configure.in (CC_FOR_BUILD): Set to gcc whether
1461         cross-compiling or not.
1462         (CC): Add -isystem's for targ-include and libc/include when they
1463         do not already appear in CC.
1464
1465 2002-04-24  Thomas Fitzsimmons  <fitzsim@redhat.com>
1466
1467         * Makefile.am (check-DEJAGNU): New target.
1468         (site.exp): Likewise.
1469         * acinclude.m4 (NEWLIB_CONFIGURE): Replace AC_CANONICAL_HOST
1470         with AC_CANONICAL_SYSTEM.  Remove AC_CANONICAL_BUILD.
1471         * libc/locale/locale.c (_setlocale_r): Add UTF-8 support.
1472         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Likewise.
1473         * libc/stdlib/wctomb_r.c (_wctomb_r): Likewise.
1474         * testsuite: New directory.
1475         * testsuite/config: Likewise.
1476         * testsuite/lib: Likewise.
1477         * testsuite/newlib.locale: Likewise.
1478         * testsuite/newlib.string: Likewise.
1479         * testsuite/config/default.exp: New file.
1480         * testsuite/lib/checkoutput.exp: New file.
1481         * testsuite/lib/newlib.exp: New file.
1482         * testsuite/lib/passfail.exp: New file.
1483         * testsuite/newlib.locale/UTF-8.c: New file.
1484         * testsuite/newlib.locale/UTF-8.exp: New file.
1485         * testsuite/newlib.locale/locale.exp: New file.
1486         * testsuite/newlib.string/string.exp: New file.
1487         * testsuite/newlib.string/tstring.c: New file.
1488
1489 2002-04-23  Jeff Johnston  <jjohnstn@redhat.com>
1490
1491         *  libc/include/machine/types.h (__pid_t, __off_t, __loff_t): Added.
1492         *  libc/sys/linux/Makefile.am: Add support for mmap.c.
1493         *  libc/sys/linux/Makefile.in: Regenerated.
1494         *  libc/sys/linux/mmap.c: New file.
1495         *  libc/sys/linux/machine/i386/syscall.h: Add _syscall6 macro.
1496         *  libc/sys/linux/sys/types.h (pid_t, off_t, loff_t): Added.
1497
1498 2002-04-22  Thomas Fitzsimmons  <fitzsim@redhat.com>
1499
1500         * acinclude.m4 (newlib_cflags): Remove include directories that
1501         are already specified in the top-level configure.in's FLAGS_FOR_TARGET.
1502
1503 2002-04-19  Bill Siegmund  <ctc-dsl@pacbell.net>
1504
1505         * libc/machine/xscale/memchr.c: Don't use multi-line strings.
1506         * libc/machine/xscale/memcmp.c: Ditto.
1507         * libc/machine/xscale/memcpy.c: Ditto.
1508         * libc/machine/xscale/memmove.c: Ditto.
1509         * libc/machine/xscale/memset.c: Ditto.
1510         * libc/machine/xscale/strchr.c: Ditto.
1511         * libc/machine/xscale/strcmp.c: Ditto.
1512         * libc/machine/xscale/strcpy.c: Ditto.
1513         * libc/machine/xscale/strlen.c: Ditto.
1514
1515 2002-04-19  Alexandre Oliva  <aoliva@redhat.com>
1516
1517         * libc/include/sys/config.h: Remove include of <limits.h>.
1518         (__INT_MAX__, __LONG_MAX__): Define like GCC's limits.h would
1519         define INT_MAX and LONG_MAX.  Use them in tests.
1520
1521 2002-04-19  Jeff Johnston  <jjohnstn@redhat.com>
1522
1523         *  configure.host: Add support for powerpc-eabialtivec*.
1524         *  libc/include/malloc.h: Add include of <machine/malloc.h>.
1525         *  libc/include/stdlib.h: Add include of <machine/stdlib.h>.
1526         *  libc/include/machine/malloc.h: New file.
1527         *  libc/include/machine/stdlib.h: Ditto.
1528         *  libc/include/machine/setjmp.h: Add support for powerpc altivec.
1529         *  libc/machine/powerpc/Makefile.am: Add conditional objects and
1530         sources based on configuration.
1531         *  libc/machine/powerpc/Makefile.in: Regenerated.
1532         *  libc/machine/powerpc/configure: Ditto.
1533         *  libc/machine/powerpc/configure.in: Add check for
1534         powerpc-eabialtivec* in which case add in additional source files.
1535         *  libc/machine/powerpc/setjmp.S: Add altivec support.
1536         *  libc/machine/powerpc/vec_calloc.c: New file.
1537         *  libc/machine/powerpc/vec_free.c: Ditto.
1538         *  libc/machine/powerpc/vec_malloc.c: Ditto.
1539         *  libc/machine/powerpc/vec_mallocr.c: Ditto.
1540         *  libc/machine/powerpc/vec_realloc.c: Ditto.
1541         *  libc/machine/powerpc/machine/malloc.h: Ditto.
1542         *  libc/machine/powerpc/machine/stdlib.h: Ditto.
1543         *  libc/machine/powerpc/vfprintf.c: New file that is vfprintf.c
1544         with added altivec format specifiers.
1545         *  libc/machine/powerpc/vfscanf.c: New file that is vfscanf.c with
1546         added altivec format specifiers.
1547
1548 2002-04-19      Joel Sherrill <joel@OARcorp.com>
1549
1550         * libs/sys/rtems/crt0.c: Satisfy gcc's references to libc functions
1551         while autoconf is trying to link main(){}.
1552
1553 2002-04-17  Jeff Johnston  <jjohnstn@redhat.com>
1554
1555         * libc/sys/linux/signal.c: Remove include of <bits/sigset.h>.
1556         * libc/sys/linux/sys/signal.h: Add include of <bits/sigset.h>.
1557
1558 2002-04-17  Jeff Johnston  <jjohnstn@redhat.com>
1559
1560         * libc/time/time.tex: Add tzset info.
1561
1562 2002-04-17  Jeff Johnston  <jjohnstn@redhat.com>
1563
1564         * libc/include/time.h (tzset, _tzset_r): Added prototypes.
1565         (strptime): Moved prototype to be within !__STRICT_ANSI__.
1566         (_tzname, _daylight, _timezone): No long __CYGWIN__ only.
1567         (tzname): Defined for all platforms.
1568         (daylight, timezone): Defined only for CYGWIN.
1569         * libc/sys/linux/machine/i386/crt0.c: Add call to tzset() after
1570         environment set up.
1571         * libc/stdlib/setenv_r.c (_setenv_r): Call tzset() if the TZ
1572         environment variable is set.
1573         * libc/time/Makefile.am: Add support for tzset.c, tzlock.c, and
1574         tzset_r.c.
1575         * libc/time/Makefile.in: Regenerated.
1576         * libc/time/gmtime.c (gmtime): Changed to call gmtime_r.
1577         * libc/time/gmtime_r.c (gmtime_r): Changed to call _mktm_r.
1578         * libc/time/lcltime_r.c (lcltime_r): Ditto.
1579         * libc/time/local.h: New local header file.
1580         * libc/time/mktime.c (mktime): Add timezone support.
1581         * libc/time/mktm_r.c: New file which is the common engine
1582         for gmtime_r and lcltime_r.  This code has timezone support.
1583         * libc/time/strftime.c (strftime): Add %Z timezone support.
1584         * libc/time/tzlock.c: New file containing timezone lock stubs.
1585         * libc/time/tzset.c: New file containing tzset() routine.
1586         * libc/time/tzset_r.c: New file containing _tzset_r and
1587         internal routine for calculating timezone changes for specified year.
1588
1589 2002-04-17  Thomas Fitzsimmons  <fitzsim@redhat.com>
1590
1591         * configure.in (CRT0_DIR): Set to libc/.
1592         (CRT1_DIR): Set to ${crt1_dir}/ if crt1_dir is non-empty.
1593         * Makefile.am: Change all occurrences of $(CRT0_DIR)/$(CRT0) to
1594         $(CRT0_DIR)$(CRT0) to prevent make warnings.  Likewise for
1595         $(CRT1_DIR)/$(CRT1).
1596         * libc/machine/xstormy16/Makefile.in: Regenerated.
1597         * libc/machine/xstormy16/aclocal.m4: Regenerated.
1598         * libc/machine/xstormy16/configure: Regenerated.
1599
1600 2002-04-13  Alexandre Oliva  <aoliva@redhat.com>
1601
1602         * libc/stdlib/mallocr.c (malloc_extend_top): If correction sbrk
1603         fails, don't bail out, and try to correct next time.
1604
1605         * libc/include/sys/config.h: Include limits.h.
1606
1607 2002-04-12  Eric Norum  <eric.norum@usask.com>
1608
1609         * libc/sys/rtems/crt0.c (rtems_gxx_mutex_init): Dummy
1610         routine to allow autoconf to determine that building executables
1611         for rtems works.
1612         (rtems_gxx_mutex_lock, rtems_gxx_mutex_unlock): Ditto.
1613         (rtems_gxx_mutex_once): Ditto.
1614
1615 2002-04-09  Tom Rix  <trix@redhat.com>
1616
1617         * libc/include/sys/reent.h (_REENT_INIT_PTR): Fix typo.
1618
1619 2002-04-09  Mark Bradshaw  <bradshaw@staff.crosswalk.com>
1620
1621         * libc/include/time.h: Fix strptime declaration.
1622         * libc/time/Makefile.am: Add strptime.c.
1623         * libc/time/Makefile.in: Regenerated.
1624         * libc/time/strptime.c: New file.
1625
1626 2002-04-08  Jeff Johnston  <jjohnstn@redhat.com>
1627
1628         * libc/sys/linux/include/setjmp.h: Add sigjmp_buf type,
1629         siglongjmp prototype, and sigsetjmp macro definition.
1630         * libc/sys/linux/siglongjmp.c: New file.
1631         * libc/sys/linux/Makefile.am: Add support for siglongjmp.
1632         * libc/sys/linux/Makefile.in: Regenerated.
1633
1634 2002-04-04  Jeff Johnston  <jjohnstn@redhat.com>
1635
1636         * Makefile.am: Add support for installing crt1.o if one exists.
1637         * configure.host: Specify crt1.o for linux.
1638         * configure.in: Expose CRT1 and CRT1_DIR for Makefile.am to use.
1639         * Makefile.in: Regenerated.
1640         * configure: Ditto.
1641         * libc/include/sys/unistd.h (_SC_STREAM_MAX, _SC_PRIORITY_SCHEDULING):
1642         Added for non-Cygwin, non-RTEMS configurations.
1643         * libc/sys/linux/Makefile.am: Add support for crt1 and sysconf.
1644         * libc/sys/linux/Makefile.in: Regenerated.
1645         * libc/sys/linux/crt1.c: New empty file to override one defaulted
1646         by gcc.  This fixes problem with reconfiguring linux newlib build.
1647         * libc/sys/linux/sysconf.c: New file.
1648
1649 2002-04-03  Jeff Johnston  <jjohnstn@redhat.com>
1650
1651         * configure.host: Add support for machine subdirectory of
1652         sys subdirectory.
1653         * configure.in: Add check for sys machine subdirectory.
1654         * Makefile.am: Ditto.
1655         * configure: Regenerated.
1656         * Makefile.in: Ditto.
1657         * libc/sys/linux/crt0.c: Moved to machine/i386 directory.
1658         * libc/sys/linux/sys/syscall.h: Ditto.
1659         * libc/sys/linux/sleep.c: New file.
1660         * libc/sys/linux/socket.c: Ditto.
1661         * libc/sys/linux/sockops.h: Ditto.
1662         * libc/sys/linux/stack.c: Ditto.
1663         * libc/sys/linux/usleep.c: Ditto.
1664         * libc/sys/linux/machine/Makefile.am: Ditto.
1665         * libc/sys/linux/machine/Makefile.in: Ditto.
1666         * libc/sys/linux/machine/aclocal.m4: Ditto.
1667         * libc/sys/linux/machine/configure: Ditto.
1668         * libc/sys/linux/machine/configure.in: Ditto.
1669         * libc/sys/linux/machine/i386/Makefile.am: Ditto.
1670         * libc/sys/linux/machine/i386/Makefile.in: Ditto.
1671         * libc/sys/linux/machine/i386/aclocal.m4: Ditto.
1672         * libc/sys/linux/machine/i386/configure: Ditto.
1673         * libc/sys/linux/machine/i386/configure.in: Ditto.
1674         * libc/sys/linux/machine/i386/crt0.c: Ditto.
1675         * libc/sys/linux/machine/i386/sigset.c: Ditto.
1676         * libc/sys/linux/machine/i386/sigstack.h: Ditto.
1677         * libc/sys/linux/machine/i386/socketcall.h: Ditto.
1678         * libc/sys/linux/machine/i386/syscall.h: Ditto.
1679         * libc/sys/linux/sys/select.h: Ditto.
1680         * libc/sys/linux/configure.in: Add support for machine directory.
1681         * libc/sys/linux/Makefile.am: Ditto plus add new files above.
1682         * libc/sys/linux/Makefile.in: Regenerated.
1683         * libc/sys/linux/configure: Ditto.
1684         * libc/sys/linux/brk.c: Use machine/syscall.h instead of sys/syscall.h.
1685         * libc/sys/linux/inode.c: Ditto.
1686         * libc/sys/linux/linux.c: Ditto.
1687         * libc/sys/linux/process.c: Ditto.
1688         * libc/sys/linux/systat.c: Ditto.
1689         * libc/sys/linux/time.c: Ditto.
1690         * libc/sys/linux/wait.c: Ditto.
1691         * libc/sys/linux/ids.c: Change header plus add setfsgid/setfsuid.
1692         * libc/sys/linux/io.c: Change header plus add readv/writev.
1693         * libc/sys/linux/signal.c: Change header plus change sigsuspend to
1694         use __sigsuspend syscall.
1695         * libc/sys/linux/select.c: Change header plus change select to
1696         use _newselect syscall.
1697         * libc/sys/linux/sys/cdefs.h: Add a number of standard definitions
1698         used by glibc header files.
1699         * libc/sys/linux/sys/types.h: Add __socklen_t and __useconds_t
1700         types.
1701
1702 2002-04-01  Jeff Johnston  <jjohnstn@redhat.com>
1703
1704         * libc/include/sys/reent.h (_REENT_INIT_PTR): New macro for
1705         initializing a struct _reent that has been dynamically allocated.
1706         (_REENT_CHECK_MISC): New macro that checks _misc struct for
1707         _REENT_SMALL and does nothing otherwise.
1708         (_REENT_STRTOK_LAST): New macro for reentrant strtok.
1709         (_REENT_MBLEN_STATE): New macro for reentrant mblen.
1710         (_REENT_MBTOWC_STATE): New macro for reentrant mbtowc.
1711         (_REENT_WCTOMB_STATE): New macro for reentrant wctomb.
1712         [_REENT_SMALL](struct _misc_reent): New structure containing
1713         miscellaneous reentrant areas needed by newlib.
1714         [_REENT_SMALL](struct _reent): Add _misc pointer.
1715         [_REENT_SMALL](_REENT_INIT_MISC): New macro.
1716         * libc/string/strtok (strtok): Change to use _REENT_CHECK_MISC
1717         and _REENT_STRTOK_LAST macros.
1718         * libc/stdlib/mblen (mblen): Change to use _REENT_CHECK_MISC
1719         and _REENT_MBLEN_STATE macros.
1720         * libc/stdlib/mbtowc (mbtowc): Change to use _REENT_CHECK_MISC
1721         and _REENT_MBTOWC_STATE macros.
1722         * libc/stdlib/wctomb (wctomb): Change to use _REENT_CHECK_MISC
1723         and _REENT_WCTOMB_STATE macros.
1724
1725 2002-04-01  Till Straumann <strauman@SLAC.Stanford.EDU>
1726
1727         * libc/stdlib/getenv_r.c (_findenv_r): Add missing ENV_UNLOCK.
1728
1729 Wed Mar 27 07:34:44 2002  Jason Tishler <jason@tishler.net>
1730
1731         * libc/include/sys/features.h (_POSIX_SEMAPHORES): New Cygwin define.
1732
1733 Tue Mar 26 17:17:10 2002  J"orn Rennecke <joern.rennecke@superh.com>
1734
1735         * libc/machine/sh/memcpy.S (Large): Fix alignment rounding.
1736         Store high part of leading bytes too.
1737
1738 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
1739
1740         * libm/math/ef_hypot.c: Increase scale factor to 68.
1741
1742 2002-03-13  Alexandre Oliva  <aoliva@redhat.com>
1743
1744         * libc/machine/mips/strlen.c (strlen) [__mips16]: Fix off-by-two
1745         error.
1746
1747 2002-03-12  Jeff Johnston  <jjohnstn@redhat.com>
1748
1749         * libc/sys/go32/access.c: Change license to relaxed license
1750         used in identical file throughout newlib/libgloss.
1751
1752 2002-03-12  Richard Earnshaw  <rearnsha@arm.com>
1753
1754         * libc/sys/arm/access.c: New file.
1755         * libc/sys/arm/Makefile.am (lib_a_SOURCES): Add access.c.
1756         * libc/sys/arm/Makefile.in: Regenerate.
1757         * libc/sys/arm/syscalls.c (_stat): New function.
1758
1759 2002-03-11  Michael Meissner  <meissner@redhat.com>
1760
1761         * libc/machine/mips/Makefile.am (lib_a_SOURCES): Add Mips specific
1762         variants strlen.c, strcmp.c, strncpy.c, memset.c and memcpy.c.
1763         * libc/machine/mips/Makefile.in: Regenerate.
1764         * libc/machine/mips/memcpy.c: New file, optimized for MIPS.
1765         * libc/machine/mips/memset.c: Dito.
1766         * libc/machine/mips/strcmp.c: Dito.
1767         * libc/machine/mips/strlen.c: Dito.
1768         * libc/machine/mips/strncmp.c: Dito.
1769
1770 2002-03-06  Jeff Johnston  <jjohnstn@redhat.com>
1771
1772         * libc/machine/i386/Makefile.am: Add $(oext) for setjmp
1773         object so it works for shared library or statici library.
1774 2002-04-17  Jeff Johnston  <jjohnstn@redhat.com>
1775
1776         *  libc/include/time.h (tzset, _tzset_r): Added prototypes.
1777         (strptime): Moved prototype to be within !__STRICT_ANSI__.
1778         (_tzname, _daylight, _timezone): No long __CYGWIN__ only.
1779         (tzname): Defined for all platforms.
1780         (daylight, timezone): Defined only for CYGWIN.
1781         *  libc/sys/linux/machine/i386/crt0.c: Add call to tzset() after
1782         environment set up.
1783         * libc/stdlib/setenv_r.c (_setenv_r): Call tzset() if the TZ
1784         environment variable is set.
1785         *  libc/time/Makefile.am: Add support for tzset.c, tzlock.c, and
1786         tzset_r.c.
1787         *  libc/time/Makefile.in: Regenerated.
1788         *  libc/time/gmtime.c (gmtime): Changed to call gmtime_r.
1789         *  libc/time/gmtime_r.c (gmtime_r): Changed to call _mktm_r.
1790         *  libc/time/lcltime_r.c (lcltime_r): Ditto.
1791         *  libc/time/local.h: New local header file.
1792         *  libc/time/mktime.c (mktime): Add timezone support.
1793         *  libc/time/mktm_r.c: New file which is the common engine
1794         for gmtime_r and lcltime_r.  This code has timezone support.
1795         *  libc/time/strftime.c (strftime): Add %Z timezone support.
1796         *  libc/time/tzlock.c: New file containing timezone lock stubs.
1797         *  libc/time/tzset.c: New file containing tzset() routine.
1798         *  libc/time/tzset_r.c: New file containing _tzset_r and
1799         internal routine for calculating timezone changes for specified year.
1800
1801 2002-04-17  Thomas Fitzsimmons  <fitzsim@redhat.com>
1802
1803         * configure.in (CRT0_DIR): Set to libc/.
1804         (CRT1_DIR): Set to ${crt1_dir}/ if crt1_dir is non-empty.
1805         * Makefile.am: Change all occurrences of $(CRT0_DIR)/$(CRT0) to
1806         $(CRT0_DIR)$(CRT0) to prevent make warnings.  Likewise for
1807         $(CRT1_DIR)/$(CRT1).
1808         * libc/machine/xstormy16/Makefile.in: Regenerated.
1809         * libc/machine/xstormy16/aclocal.m4: Regenerated.
1810         * libc/machine/xstormy16/configure: Regenerated.
1811
1812 2002-04-13  Alexandre Oliva  <aoliva@redhat.com>
1813
1814         * libc/stdlib/mallocr.c (malloc_extend_top): If correction sbrk
1815         fails, don't bail out, and try to correct next time.
1816
1817         * libc/include/sys/config.h: Include limits.h.
1818
1819 2002-04-12  Eric Norum  <eric.norum@usask.com>
1820
1821         * libc/sys/rtems/crt0.c (rtems_gxx_mutex_init): Dummy
1822         routine to allow autoconf to determine that building executables
1823         for rtems works.
1824         (rtems_gxx_mutex_lock, rtems_gxx_mutex_unlock): Ditto.
1825         (rtems_gxx_mutex_once): Ditto.
1826
1827 2002-04-09  Tom Rix  <trix@redhat.com>
1828
1829         * libc/include/sys/reent.h (_REENT_INIT_PTR): Fix typo.
1830
1831 2002-04-09  Mark Bradshaw  <bradshaw@staff.crosswalk.com>
1832
1833         * libc/include/time.h: Fix strptime declaration.
1834         * libc/time/Makefile.am: Add strptime.c.
1835         * libc/time/Makefile.in: Regenerated.
1836         * libc/time/strptime.c: New file.
1837
1838 2002-04-08  Jeff Johnston  <jjohnstn@redhat.com>
1839
1840         * libc/sys/linux/include/setjmp.h: Add sigjmp_buf type,
1841         siglongjmp prototype, and sigsetjmp macro definition.
1842         * libc/sys/linux/siglongjmp.c: New file.
1843         * libc/sys/linux/Makefile.am: Add support for siglongjmp.
1844         * libc/sys/linux/Makefile.in: Regenerated.
1845
1846 2002-04-04  Jeff Johnston  <jjohnstn@redhat.com>
1847
1848         * Makefile.am: Add support for installing crt1.o if one exists.
1849         * configure.host: Specify crt1.o for linux.
1850         * configure.in: Expose CRT1 and CRT1_DIR for Makefile.am to use.
1851         * Makefile.in: Regenerated.
1852         * configure: Ditto.
1853         * libc/include/sys/unistd.h (_SC_STREAM_MAX, _SC_PRIORITY_SCHEDULING):
1854         Added for non-Cygwin, non-RTEMS configurations.
1855         * libc/sys/linux/Makefile.am: Add support for crt1 and sysconf.
1856         * libc/sys/linux/Makefile.in: Regenerated.
1857         * libc/sys/linux/crt1.c: New empty file to override one defaulted
1858         by gcc.  This fixes problem with reconfiguring linux newlib build.
1859         * libc/sys/linux/sysconf.c: New file.
1860
1861 2002-04-03  Jeff Johnston  <jjohnstn@redhat.com>
1862
1863         * configure.host: Add support for machine subdirectory of
1864         sys subdirectory.
1865         * configure.in: Add check for sys machine subdirectory.
1866         * Makefile.am: Ditto.
1867         * configure: Regenerated.
1868         * Makefile.in: Ditto.
1869         * libc/sys/linux/crt0.c: Moved to machine/i386 directory.
1870         * libc/sys/linux/sys/syscall.h: Ditto.
1871         * libc/sys/linux/sleep.c: New file.
1872         * libc/sys/linux/socket.c: Ditto.
1873         * libc/sys/linux/sockops.h: Ditto.
1874         * libc/sys/linux/stack.c: Ditto.
1875         * libc/sys/linux/usleep.c: Ditto.
1876         * libc/sys/linux/machine/Makefile.am: Ditto.
1877         * libc/sys/linux/machine/Makefile.in: Ditto.
1878         * libc/sys/linux/machine/aclocal.m4: Ditto.
1879         * libc/sys/linux/machine/configure: Ditto.
1880         * libc/sys/linux/machine/configure.in: Ditto.
1881         * libc/sys/linux/machine/i386/Makefile.am: Ditto.
1882         * libc/sys/linux/machine/i386/Makefile.in: Ditto.
1883         * libc/sys/linux/machine/i386/aclocal.m4: Ditto.
1884         * libc/sys/linux/machine/i386/configure: Ditto.
1885         * libc/sys/linux/machine/i386/configure.in: Ditto.
1886         * libc/sys/linux/machine/i386/crt0.c: Ditto.
1887         * libc/sys/linux/machine/i386/sigset.c: Ditto.
1888         * libc/sys/linux/machine/i386/sigstack.h: Ditto.
1889         * libc/sys/linux/machine/i386/socketcall.h: Ditto.
1890         * libc/sys/linux/machine/i386/syscall.h: Ditto.
1891         * libc/sys/linux/sys/select.h: Ditto.
1892         * libc/sys/linux/configure.in: Add support for machine directory.
1893         * libc/sys/linux/Makefile.am: Ditto plus add new files above.
1894         * libc/sys/linux/Makefile.in: Regenerated.
1895         * libc/sys/linux/configure: Ditto.
1896         * libc/sys/linux/brk.c: Use machine/syscall.h instead of sys/syscall.h.
1897         * libc/sys/linux/inode.c: Ditto.
1898         * libc/sys/linux/linux.c: Ditto.
1899         * libc/sys/linux/process.c: Ditto.
1900         * libc/sys/linux/systat.c: Ditto.
1901         * libc/sys/linux/time.c: Ditto.
1902         * libc/sys/linux/wait.c: Ditto.
1903         * libc/sys/linux/ids.c: Change header plus add setfsgid/setfsuid.
1904         * libc/sys/linux/io.c: Change header plus add readv/writev.
1905         * libc/sys/linux/signal.c: Change header plus change sigsuspend to
1906         use __sigsuspend syscall.
1907         * libc/sys/linux/select.c: Change header plus change select to
1908         use _newselect syscall.
1909         * libc/sys/linux/sys/cdefs.h: Add a number of standard definitions
1910         used by glibc header files.
1911         * libc/sys/linux/sys/types.h: Add __socklen_t and __useconds_t
1912         types.
1913
1914 2002-04-01  Jeff Johnston  <jjohnstn@redhat.com>
1915
1916         * libc/include/sys/reent.h (_REENT_INIT_PTR): New macro for
1917         initializing a struct _reent that has been dynamically allocated.
1918         (_REENT_CHECK_MISC): New macro that checks _misc struct for
1919         _REENT_SMALL and does nothing otherwise.
1920         (_REENT_STRTOK_LAST): New macro for reentrant strtok.
1921         (_REENT_MBLEN_STATE): New macro for reentrant mblen.
1922         (_REENT_MBTOWC_STATE): New macro for reentrant mbtowc.
1923         (_REENT_WCTOMB_STATE): New macro for reentrant wctomb.
1924         [_REENT_SMALL](struct _misc_reent): New structure containing
1925         miscellaneous reentrant areas needed by newlib.
1926         [_REENT_SMALL](struct _reent): Add _misc pointer.
1927         [_REENT_SMALL](_REENT_INIT_MISC): New macro.
1928         * libc/string/strtok (strtok): Change to use _REENT_CHECK_MISC
1929         and _REENT_STRTOK_LAST macros.
1930         * libc/stdlib/mblen (mblen): Change to use _REENT_CHECK_MISC
1931         and _REENT_MBLEN_STATE macros.
1932         * libc/stdlib/mbtowc (mbtowc): Change to use _REENT_CHECK_MISC
1933         and _REENT_MBTOWC_STATE macros.
1934         * libc/stdlib/wctomb (wctomb): Change to use _REENT_CHECK_MISC
1935         and _REENT_WCTOMB_STATE macros.
1936
1937 2002-04-01  Till Straumann <strauman@SLAC.Stanford.EDU>
1938
1939         * libc/stdlib/getenv_r.c (_findenv_r): Add missing ENV_UNLOCK.
1940
1941 Wed Mar 27 07:34:44 2002  Jason Tishler <jason@tishler.net>
1942
1943         * libc/include/sys/features.h (_POSIX_SEMAPHORES): New Cygwin define.
1944
1945 Tue Mar 26 17:17:10 2002  J"orn Rennecke <joern.rennecke@superh.com>
1946
1947         * libc/machine/sh/memcpy.S (Large): Fix alignment rounding.
1948         Store high part of leading bytes too.
1949
1950 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
1951
1952         * libm/math/ef_hypot.c: Increase scale factor to 68.
1953
1954 2002-03-13  Alexandre Oliva  <aoliva@redhat.com>
1955
1956         * libc/machine/mips/strlen.c (strlen) [__mips16]: Fix off-by-two
1957         error.
1958
1959 2002-03-12  Jeff Johnston  <jjohnstn@redhat.com>
1960
1961         * libc/sys/go32/access.c: Change license to relaxed license
1962         used in identical file throughout newlib/libgloss.
1963
1964 2002-03-12  Richard Earnshaw  <rearnsha@arm.com>
1965
1966         * libc/sys/arm/access.c: New file.
1967         * libc/sys/arm/Makefile.am (lib_a_SOURCES): Add access.c.
1968         * libc/sys/arm/Makefile.in: Regenerate.
1969         * libc/sys/arm/syscalls.c (_stat): New function.
1970
1971 2002-03-11  Michael Meissner  <meissner@redhat.com>
1972
1973         * libc/machine/mips/Makefile.am (lib_a_SOURCES): Add Mips specific
1974         variants strlen.c, strcmp.c, strncpy.c, memset.c and memcpy.c.
1975         * libc/machine/mips/Makefile.in: Regenerate.
1976         * libc/machine/mips/memcpy.c: New file, optimized for MIPS.
1977         * libc/machine/mips/memset.c: Dito.
1978         * libc/machine/mips/strcmp.c: Dito.
1979         * libc/machine/mips/strlen.c: Dito.
1980         * libc/machine/mips/strncmp.c: Dito.
1981
1982 2002-03-06  Jeff Johnston  <jjohnstn@redhat.com>
1983
1984         * libc/machine/i386/Makefile.am: Add $(oext) for setjmp
1985         object so it works for shared library or statici library.
1986         * libc/machine/i386/Makefile.in: Regenerated.
1987
1988 Wed Mar  6 10:24:26 2002  J"orn Rennecke <joern.rennecke@superh.com>
1989
1990         * libc/machine/sh/Makefile.am (lib_a_SOURCES, SH64 case):
1991         Add memcpy.S, memset.S and strcpy.S.
1992         * libc/machine/sh/Makefile.in: Regenerate.
1993         * libc/machine/sh/asm.h (_ENTRY): Set SH5 alignment to 8 bytes.
1994         (SHHI, SHLO): Define.
1995         * libc/machine/sh/memset.S: Add code for SH5.
1996         * libc/machine/sh/memset.S: Likewise.
1997         * libc/machine/sh/strcpy.S: Likewise.
1998
1999 2002-02-27  Jeff Johnston  <jjohnstn@redhat.com>
2000
2001         * configure.host: Add check for --disable-newlib-io-float
2002         configuration option and add -DNO_FLOATING_POINT to newlib cflags
2003         if appropriate.
2004         * acinclude.m4: Added --disable-newlib-io-float option.
2005         * aclocal.m4: Regenerated.
2006         * configure: Ditto.
2007         * doc/aclocal.m4 doc/configure libc/aclocal.m4 libc/configure
2008         * libc/*/aclocal.m4 libc/*/configure 
2009         * libm/*/aclocal.m4 libm/*/configure: Ditto.
2010         * libc/stdio/vfprintf.c [!INTEGER_ONLY]: Only set FLOATING_POINT
2011         if NO_FLOATING_POINT flag is not defined.
2012
2013 2002-02-25  Jeff Johnston  <jjohnstn@redhat.com>
2014
2015         * libc/include/sys/config.h: Add __extension__ in front of
2016         long long references.
2017
2018 2002-02-23  Corinna Vinschen  <corinna@vinschen.de>
2019
2020         * libc/include/sys/stat.h (_fstat): Don't declare when compiling Cygwin.
2021         (_stat): Ditto.
2022
2023 2002-02-23  Corinna Vinschen  <corinna@vinschen.de>
2024
2025         * libc/sys/cygwin/sys/dirent.h (struct __DIR): Use __off32_t instead
2026         of off_t.
2027
2028 2002-02-20  Nick Clifton  <nickc@cambridge.redhat.com>
2029
2030         * libc/machine/xscale/strchr.c (strchr): Add 'r1' to the list of
2031         clobbered registers.
2032
2033 2002-02-19  Thomas Fitzsimmons  <fitzsim@redhat.com>
2034
2035         * configure.host (newlib_cflags): When host is in m68* add
2036         -DCOMPACT_CTYPE.
2037
2038 2002-02-15  Jeff Johnston  <jjohnstn@redhat.com>
2039
2040         * libc/include/sys/config.h: Add definitions for
2041         __int16_t, __uint16_t, __int64_t, and __uint64_t.
2042
2043 2002-02-12  Hans-Peter Nilsson  <hp@bitrange.com>
2044
2045         * libc/sys/mmixware/link.c: New.
2046         * libc/sys/mmixware/sys/syscall.h (TRAP1i, I3f): Make asm
2047         volatile.
2048         * libc/sys/mmixware/times.c (_times): Renamed from times.
2049         * libc/sys/mmixware/open.c (_open): Attempt to handle O_APPEND
2050         properly by reading previous contents, not through BinaryReadWrite.
2051         * libc/sys/mmixware/Makefile.am (lib_a_SOURCES): Add link.c
2052         * libc/sys/mmixware/Makefile.in: Regenerate.
2053
2054 2002-02-10  Corinna Vinschen  <corinna@vinschen.de>
2055
2056         * libc/include/grp.h: Don't declare group functions when compiling
2057         Cygwin.
2058
2059 2002-02-09  Corinna Vinschen  <corinna@vinschen.de>
2060
2061         * libc/include/grp.h: Include Cygwin specific header.
2062         * libc/include/sys/stat.h: Ditto.  Don't define `struct stat'
2063         when compiling for Cygwin.
2064         * libc/include/sys/types.h: Don't define off_t, uid_t
2065         and gid_t when compiling for Cygwin.
2066
2067 2002-02-08  matthew green  <mrg@redhat.com>
2068
2069         * libc/include/sys/reent.h (_REENT_CHECK_EMERGENCY): Allocate
2070         _REENT_EMERGENCY_SIZE, not sizeof(char *).
2071
2072 2002-02-08  Alexandre Oliva  <aoliva@redhat.com>
2073
2074         Contribute sh64-elf.
2075         2001-03-13  Alexandre Oliva  <aoliva@redhat.com>
2076         * configure.host (newlib_cflags) [sh*-*-*]: Enable long long
2077         support in printf.
2078         2001-01-29  Alexandre Oliva  <aoliva@redhat.com>
2079         * libc/machine/sh/setjmp.S [SH5]: Switch to SHmedia mode before
2080         any labels.
2081         2001-01-24  Alexandre Oliva  <aoliva@redhat.com>
2082         * libc/sys/sh/trap.S (___trap34) [SH5]: Don't trash r2.
2083         2000-12-16  Alexandre Oliva  <aoliva@redhat.com>
2084         * libc/machine/sh/configure.in: Rework conditionals.
2085         * libc/machine/sh/Makefile.am: Likewise.
2086         * libc/machine/sh/configure, libc/machine/sh/Makefile.in: Rebuilt.
2087         2000-12-01  Alexandre Oliva  <aoliva@redhat.com>
2088         * configure.host: Match `sh*'.
2089         * libc/include/machine/setjmp.h: Define for SH5.
2090         * libc/machine/sh/configure.in: Detect SH5.
2091         * libc/machine/sh/configure: Rebuilt.
2092         * libc/machine/sh/Makefile.am: Use only setjmp.S for SH5.
2093         * libc/machine/sh/Makefile.in: Rebuilt.
2094         * libc/machine/sh/asm.h: Adjust for SH5.
2095         * libc/machine/sh/setjmp.S: Implement in SHmedia.
2096         * libc/sys/sh/crt0.S: Likewise.
2097         * libc/sys/sh/trap.S: Likewise.
2098
2099 2002-02-07  Jeff Johnston  <jjohnstn@redhat.com>
2100
2101         * libc/machine/i386/Makefile.am: (mach_add_src): Remove.
2102         (mach_add_obj): Conditionally set to setjmp.o or nothing.
2103         (LIB_SOURCES): Remove $(mach_add_src).
2104         (lib_a_LIBADD, lib_a_DEPENDENCIES): Add and set to $(mach_add_src).
2105         (lib_la_LIBADD, lib_la_DEPENDENCIES): Ditto.
2106         * libc/machine/i386/Makefile.in: Regenerate.
2107
2108 2002-02-05  Manik Raina <manik@cisco.com>
2109
2110         * libc/misc/dprintf.c (parse_number): #if 0 unused function.
2111         * libc/stdlib/ldtoa.c (_ldcheck): Remove unused local variables
2112         s, p, k, and outstr.
2113         * libc/stdlib/dtoa.c (_dtoa_r): Initialize mlo.
2114
2115 2002-02-04  Jeff Johnston  <jjohnstn@redhat.com>
2116
2117         * libc/include/sys/reent.h [(!_REENT_SMALL]: Add
2118         _REENT_CHECK_EMERGENCY macro.
2119
2120 2002-02-03  matthew green  <mrg@redhat.com>
2121
2122         * libc/reent/signgam.c (__signgam): Fix error in previous.
2123
2124 2002-02-02  matthew green  <mrg@redhat.com>
2125
2126         * libc/include/sys/config.h (_REENT_SMALL): Define for Xstormy16.
2127
2128         * libc/reent/reent.c (_reclaim_reent): Clean for _REENT_SMALL case.
2129         * libc/reent/reent.tex: Add blurb about _REENT_SMALL.
2130         * libc/include/sys/reent.h (struct _reent): Completely new version
2131         for _REENT_SMALL.
2132         (_REENT_INIT): New defines, different defintion depending on _REENT_SMALL.
2133         (_REENT_CHECK, _REENT_CHECK_TM): Likewise.
2134         (_REENT_CHECK_ASCTIME_BUF, _REENT_INIT_RAND48): Likewise.
2135         (_REENT_CHECK_RAND48, _REENT_INIT_MP, _REENT_CHECK_MP): Likewise.
2136         (_REENT_CHECK_EMERGENCY, _REENT_SIGNGAM, _REENT_RAND_NEXT): Likewise.
2137         (_REENT_RAND48_SEED, _REENT_RAND48_MULT, _REENT_RAND48_ADD): Likewise.
2138         (_REENT_MP_RESULT, _REENT_MP_RESULT_K, _REENT_MP_P5S): Likewise.
2139         (_REENT_MP_FREELIST, _REENT_ASCTIME_BUF, _REENT_TM): Likewise.
2140         (_REENT_EMERGENCY): Likewise.
2141
2142         * libc/include/sys/reent.h (struct __sFILE_fake): New struct, same as
2143         the start of the real __sFILE, used for stdin, stdout and stderr until
2144         they are setup properly.
2145         (struct __sFILE): Move location of _data in _REENT_SMALL case.
2146         * libc/stdio/findfp.c (__sinit): Rearrange for _REENT_SMALL case by
2147         allocated stdin, stdout and stderr.
2148         * libc/stdio/getchar.c (_getchar_r): Call _REENT_SMALL_CHECK_INIT().
2149         * libc/stdio/iprintf.c (iprintf, _iprintf_r): Likewise.
2150         * libc/stdio/perror.c (_perror_r): Likewise.
2151         * libc/stdio/printf.c (printf, _printf_r): Likewise.
2152         * libc/stdio/putchar.c (_putchar_r): Likewise.
2153         * libc/stdio/puts.c (_puts_r): Likewise.
2154         * libc/stdio/scanf.c (scanf, _scanf_r): Likewise.
2155         * libc/stdio/vprintf.c (vprintf): Likewise.
2156         * libc/stdio/vscanf.c (vscanf, _vscanf_r): Likewise.
2157
2158         * libc/stdio/tmpnam.c (_tmpnam_r): Use _REENT_EMERGENCY().
2159
2160         * libc/reent/reent.c (_wrapup_reent): Adjust for _REENT_SMALL atexit.
2161         * libc/include/sys/reent.h (_atexit): Limit atexit() entries to 32
2162         for _REENT_SMALL.
2163         * libc/stdlib/atexit.c (atexit): Rearrange for _REENT_SMALL case.
2164         * libc/stdlib/exit.c (exit): Rearrange for _REENT_SMALL case.
2165
2166         * libc/include/sys/reent.h (struct _rand48): Keep _rand_next if
2167         _REENT_SMALL.
2168         * libc/stdlib/drand48.c (_drand48_r): Call _REENT_CHECK_RAND48().
2169         * libc/stdlib/lcong48.c (_lcong48_r): Likewise.
2170         * libc/stdlib/lrand48.c (_lrand48_r): Likewise.
2171         * libc/stdlib/mrand48.c (_mrand48_r): Likewise.
2172         * libc/stdlib/rand48.c (__dorand48): Likewise.
2173         * libc/stdlib/seed48.c (_seed48_r): Likewise.
2174         * libc/stdlib/srand48.c (_srand48_r): Likewise.
2175         * libc/stdlib/rand48.h (__rand48_seed, __rand48_mult, __rand48_add): Define
2176         as _REENT_RAND48_SEED(), _REENT_RAND48_MULT() and _REENT_RAND48_ADD().
2177         * libc/stdlib/dtoa.c (_dtoa_r): Call _REENT_CHECK_MP().  Use
2178         _REENT_MP_RESULT() and _REENT_MP_RESULT_K().
2179         * libc/stdlib/ldtoa.c (_ldtoa_r): Likewise.
2180         * libc/stdlib/rand.c (srand): Use _REENT_RAND_NEXT().
2181         * libc/stdlib/rand.c (rand): Likewise.
2182
2183         * libc/stdlib/mallocr.c (malloc_stats): Call _REENT_SMALL_CHECK_INIT().
2184         * libc/stdlib/mstats.c (_mstats_r): Call _REENT_SMALL_CHECK_INIT().
2185
2186         * libc/stdlib/mprec.c (Balloc): Call _REENT_CHECK_MP.  Use
2187         _REENT_MP_FREELIST() and _REENT_MP_P5S.
2188         * libc/include/sys/reent.h (struct _mprec): New structure.
2189
2190         * libc/include/sys/reent.h (struct _reent): Rename _strtok_last to
2191         _unused_strtok_last.
2192         * libc/string/strtok.c (strtok): Use a local static variable.
2193
2194         * libc/include/sys/reent.h (_REENT_ASCTIME_SIZE): New define.
2195         (_REENT_EMERGENCY_SIZE): Likewise.
2196         * libc/time/asctime.c (asctime): Call _REENT_CHECK_ASCTIME_BUF().  Use
2197         _REENT_ASCTIME_BUF().
2198         * libc/time/lcltime.c (localtime): Call _REENT_CHECK_TM().  Use
2199         _REENT_TM().
2200
2201         * libc/include/math.h (__singam_r): Use _REENT_SIGNGAM().
2202         * libc/reent/signgam.c (__signgam): Use _REENT_SIGNGAM().
2203         * libm/math/w_gamma.c (gamma): Use _REENT_SIGNGAM().
2204         * libm/math/w_lgamma.c (lgamma): Use _REENT_SIGNGAM().
2205         * libm/math/wf_gamma.c (gammaf): Use _REENT_SIGNGAM().
2206         * libm/math/wf_lgamma.c (lgammaf): Use _REENT_SIGNGAM().
2207
2208 2002-02-01  Geoffrey Keating  <geoffk@redhat.com>
2209
2210         * configure.host (xstormy16): Don't use the generic malloc.
2211         * libc/machine/xstormy16/Makefile.am: Build tiny-malloc.
2212         * libc/machine/xstormy16/Makefile.in: Regenerate.
2213         * libc/machine/xstormy16/mallocr.c: New file.
2214         * libc/machine/xstormy16/tiny-malloc.c: New file.
2215
2216 2002-01-28  Thomas Fitzsimmons  <fitzsim@redhat.com>
2217
2218         * libc/include/sys/signal.h [__CYGWIN__]: Issue error message
2219         when _CYGWIN_TYPES_H is not defined.
2220
2221 2002-01-24  Thomas Fitzsimmons  <fitzsim@redhat.com>
2222
2223         * libc/include/sys/signal.h: Revert 2002-01-23 change.
2224
2225 2002-01-23  Thomas Fitzsimmons  <fitzsim@redhat.com>
2226
2227         * libc/include/sys/signal.h: Remove pthread_kill declaration
2228         when __CYGWIN__ is defined.
2229
2230 2002-01-18  Mark Bradshaw  <bradshaw@staff.crosswalk.com>
2231
2232         * libc/include/time.h: Add prototype for strptime for Cygwin.
2233
2234 2002-01-17  Nick Clifton  <nickc@cambridge.redhat.com>
2235
2236         * libc/machine/xscale/memset.c (memset): Fix bug when len == 1 and
2237         dst was not word aligned.
2238
2239         * libc/sys/arm/syscalls.c (_sbrk): Return -1 rather than aborting
2240         if too much memory is requested.
2241
2242 2002-01-11 Jeff Johnston  <jjohnstn@redhat.com>
2243
2244         * libc/stdio/vfscanf.c (__svfscanf_r): Change loop that
2245         reads blanks from the input file to break if EOF reached
2246         rather than end processing.
2247
2248 2002-01-07 Jeff Johnston  <jjohnstn@redhat.com>
2249
2250         * MAINTAINERS: Change e-mail addresses to refer to redhat domain.
2251
2252 2002-01-07 Alan Matsuoka <alanm@redhat.com>
2253
2254         * libc/include/machine/ieeefp.h: Configure d10v doubles to
2255         be 32 bits if __DOUBLE__ == 32  otherwise doubles are 64 bits.
2256         libc/include/sys/config.h: Ditto.
2257
2258 2001-12-28  Corinna Vinschen  <corinna@vinschen.de>
2259
2260         * libc/sys/cygwin/sys/utmp.h: Add definition of UTMP_FILE.
2261
2262 2001-12-22  Geoffrey Keating  <geoffk@redhat.com>
2263             Catherine Moore  <clm@redhat.com>
2264             Richard Henderson  <rth@redhat.com>
2265             Corinna Vinschen  <vinschen@redhat.com>
2266
2267         * configure.host: Add support for xstormy16.
2268         * libc/include/machine/ieeefp.h: Add support for xstormy16.
2269         * libc/include/machine/setjmp.h: Add support for xstormy16.
2270         * libc/include/sys/config.h: Add support for xstormy16.
2271         * libc/machine/xstormy16/Makefile.am: New file.
2272         * libc/machine/xstormy16/Makefile.in: New file.
2273         * libc/machine/xstormy16/aclocal.m4: New file.
2274         * libc/machine/xstormy16/configure: New file.
2275         * libc/machine/xstormy16/configure.in: New file.
2276         * libc/machine/xstormy16/setjmp.S: New file.
2277
2278 2001-12-19  Thomas Fitzsimmons  <fitzsim@redhat.com>
2279
2280         * libm/machine/configure.in (HAVE_LIBM_MACHINE_DIR): New conditional.
2281         * libm/machine/Makefile.am [HAVE_LIBM_MACHINE_DIR] (LIBM_MACHLIB): New variable.
2282
2283 2001-12-19  Corinna Vinschen  <corinna@vinschen.de>
2284
2285         * libm/machine/Makefile.am: Change rules to create correct lib.a.
2286         * libm/machine/Makefile.in: Regenerated through automake.
2287
2288 2001-12-18  Thomas Fitzsimmons  <fitzsim@redhat.com>
2289
2290         * Makefile.am (DOCDIR): Force to empty string when doc
2291         directory is not present.
2292
2293 2001-12-18  Thomas Fitzsimmons  <fitzsim@redhat.com>
2294
2295         * libc/machine/i386/f_*: Move to libm/machine/i386.
2296
2297 2001-12-18      Joel Sherrill <joel@OARcorp.com>
2298
2299         * libm/machine/Makefile.am: Add dummy doc stub so
2300         "make info" works.
2301
2302 2001-12-17      Joel Sherrill <joel@OARcorp.com>
2303
2304         * libc/include/sys/types.h (ino_t): RTEMS uses long also.
2305
2306 2001-12-17  Thomas Fitzsimmons  <fitzsim@redhat.com>
2307
2308         * libc/stdlib/Makefile.am (LIB_COMPILE): Change to equal
2309         $(COMPILE) rather than $(CC).
2310         * libc/stdio/Makefile.am (LIB_COMPILE): Likewise.
2311         (vfprintf.$(oext)): Remove $(INCLUDES), made redundant by
2312         $(LIB_COMPILE) change.
2313         (vfiprintf.$(oext)): Likewise.
2314
2315 2001-12-17  Corinna Vinschen  <vinschen@redhat.de>
2316
2317         * libc/sys/cygwin/include/unistd.h: Add __UNISTD_GETOPT_ to allow
2318         conditionalized including of getopt stuff.
2319
2320 2001-12-14  Thomas Fitzsimmons  <fitzsim@redhat.com>
2321
2322         * libc/stdio/Makefile.am (vfprintf.$(oext)): Add $(INCLUDES) to
2323         compile line.
2324         (vfiprintf.$(oext)): Likewise.
2325
2326 2001-12-13  Thomas Fitzsimmons  <fitzsim@redhat.com>
2327
2328         * Makefile.shared: New file.
2329         * libc/sys/linux/shared.ld: New file.
2330         * libm/machine/*: New files.
2331         * libm/machine/i386/*: New files.
2332         * Makefile.am: Add libtool support.  Change math and mathfp
2333         references to variables.
2334         * configure.host: Add variables for libtool support.  Add
2335         libm_machine_dir variable.
2336         * configure.in: Add objectlist variables, for libtool
2337         support.  Add CC_FOR_BUILD tests.
2338         * libc/Makefile.am: Add libtool support.  Change crt0.o
2339         reference to be a variable reference.
2340         * libc/configure.in: Add libtool support.  Change sublib
2341         names to be lib${subdir}.la when using libtool.
2342         * libc/ctype/Makefile.am: Add libtool support.
2343         * libc/errno/Makefile.am: Likewise.
2344         * libc/locale/Makefile.am: Likewise.
2345         * libc/machine/Makefile.am: Likewise.
2346         * libc/machine/configure.in: Likewise.
2347         * libc/machine/i386/Makefile.am: Likewise.
2348         * libc/machine/i386/configure.in: Likewise.
2349         * libc/misc/Makefile.am: Likewise.
2350         * libc/posix/Makefile.am: Likewise.
2351         * libc/reent/Makefile.am: Likewise.
2352         * libc/signal/Makefile.am: Likewise.
2353         * libc/stdio/Makefile.am: Likewise.
2354         * libc/stdlib/Makefile.am: Likewise.
2355         * libc/string/Makefile.am: Likewise.
2356         * libc/sys/Makefile.am: Likewise.
2357         * libc/sys/configure.in: Likewise.
2358         * libc/sys/linux/Makefile.am: Add libtool support.  Change
2359         awk reference to a variable reference.  Change signal.h
2360         reference to a variable reference.
2361         * libc/sys/linux/configure.in: Add libtool support.
2362         * libc/syscalls/Makefile.am: Likewise.
2363         * libc/time/Makefile.am: Likewise.
2364         * libc/unix/Makefile.am: Likewise.
2365         * libm/Makefile.am: Add libtool support.  Change math and
2366         mathfp references to variables.
2367         * libm/configure.in: Add libtool support.  Add
2368         LIBM_MACHINE_LIB variable.
2369         * libm/common/Makefile.am: Add libtool support.
2370         * libm/math/Makefile.am: Likewise.
2371         * libm/mathfp/Makefile.am: Likewise.
2372         Regenerate all Makefile.in, aclocal.m4, and configure.
2373
2374 2001-12-13 Anita Kulkarni <anitak@kpit.com>
2375
2376         * libc/sys/sh/crt0.S: Remove stack symbol definition 0xdeaddead.
2377
2378 2001-12-06  John Peacock <jpeacock@rowman.com>
2379
2380         * libc/include/sys/unistd.h: Correct ualarm declaration.
2381
2382 2001-12-05  Nick Clifton  <nickc@cambridge.redhat.com>
2383
2384         * libc/sys/arm/crt0.S: For __USES_INITFINI__ preserve the argument
2385         vector before calling the initialisation functions.
2386
2387 2001-11-29  Christopher Faylor  <cgf@redhat.com>
2388
2389         * libc/include/dirent.h: Protect against multiple inclusion.
2390
2391 2001-11-27  Christopher Faylor  <cgf@redhat.com>
2392
2393         * libc/include/sys/types.h: Define useconds_t.
2394         * libc/include/sys/ulimit.h: Declare ualarm.
2395
2396 2001-11-21  Christopher Faylor  <cgf@redhat.com>
2397
2398         * libc/sys/cygwin/sys/dirent.h (DIR): Add another internal element.
2399
2400 2001-11-19  Hans-Peter Nilsson  <hp@bitrange.com>
2401
2402         * libc/sys/mmixware/*: Tweak license header in all source files.
2403
2404 2001-11-12  Corinna Vinschen  <vinschen@redhat.com>
2405
2406         * libc/include/alloca.h: Move libc/sys/linux/include/alloca.h
2407         to here.  Rearrange for general inclusion by stdlib.h.
2408         * libc/include/stdlib.h: Include <alloca.h> if __STRICT_ANSI__
2409         isn't defined.
2410         * libc/sys/linux/include/alloca.h: Move to libc/include.
2411
2412 2001-11-12  Anthony Green  <green@redhat.com>
2413
2414         * libc/sys/arm/crt0.S (__stack_base__): New symbol.
2415
2416 2001-11-13  Hans-Peter Nilsson  <hp@bitrange.com>
2417
2418         * libc/sys/mmixware/*: Correct spacing in all source files.
2419         * libc/sys/mmixware/syscall.h: Move misplaced file...
2420         * libc/sys/mmixware/sys/syscall.h: ...here.
2421
2422 2001-11-12  Hans-Peter Nilsson  <hp@bitrange.com>
2423
2424         * libc/include/machine/ieeefp.h: Add support for mmix target.
2425         * libc/include/machine/setjmp.h: Ditto.
2426         * configure.host: Ditto.
2427         * libc/sys/mmixware/Makefile.am, libc/sys/mmixware/_exit.c,
2428         libc/sys/mmixware/access.c, libc/sys/mmixware/aclocal.m4,
2429         libc/sys/mmixware/chmod.c, libc/sys/mmixware/chown.c,
2430         libc/sys/mmixware/close.c, libc/sys/mmixware/configure.in,
2431         libc/sys/mmixware/creat.c, libc/sys/mmixware/crt0.c,
2432         libc/sys/mmixware/execv.c, libc/sys/mmixware/execve.c,
2433         libc/sys/mmixware/fork.c, libc/sys/mmixware/fstat.c,
2434         libc/sys/mmixware/getpid.c, libc/sys/mmixware/gettime.c,
2435         libc/sys/mmixware/isatty.c, libc/sys/mmixware/kill.c,
2436         libc/sys/mmixware/lseek.c, libc/sys/mmixware/open.c,
2437         libc/sys/mmixware/pipe.c, libc/sys/mmixware/read.c,
2438         libc/sys/mmixware/sbrk.c, libc/sys/mmixware/setjmp.S,
2439         libc/sys/mmixware/stat.c, libc/sys/mmixware/sys/syscall.h,
2440         libc/sys/mmixware/time.c, libc/sys/mmixware/times.c,
2441         libc/sys/mmixware/unlink.c, libc/sys/mmixware/utime.c,
2442         libc/sys/mmixware/wait.c, libc/sys/mmixware/write.c: New files.
2443         * libc/sys/mmixware/configure, libc/sys/mmixware/Makefile.in,
2444         libc/sys/mmixware/aclocal.m4: Generate.
2445
2446 2001-11-05  Corinna Vinschen  <corinna@vinschen.de>
2447
2448         * libc/include/sys/unistd.h: Add prototypes for endusershell(),
2449         getusershell(), iruserok(), revoke(), ruserok() and setusershell()
2450         when __CYGWIN__ is defined.
2451         * libc/sys/cygwin/sys/utmp.h: Add prototypes for login_tty() and
2452         logwtmp().
2453
2454 2001-11-01  Arati Dikey  <aratidikey@hotmail.com>
2455
2456         * libm/mathfp/sf_isinf.c (isinff): Change to use _DEFUN macro.
2457         [_DOUBLE_IS_32BITS](isinf): New function that calls isinff.
2458         * libm/mathfp/sf_isnan.c (isnanf): Change to use _DEFUN macro.
2459         [_DOUBLE_IS_32BITS](isnan): New function that calls isnanf.
2460
2461 2001-10-24  Christopher Faylor  <cgf@redhat.com>
2462
2463         * libc/stdio/fseek.c: Reset pointer to buffer base
2464         when forced to seek outside of current buffer contents.
2465         This prevents the code from erroneously thinking there is
2466         anything in the current buffer.
2467
2468 2001-10-22  Geoffrey Keating  <geoffk@redhat.com>
2469
2470         * libc/include/math.h: The C++ standard adds the single-precision
2471         versions of the elementary functions.
2472
2473 2001-10-22  Christopher Faylor  <cgf@redhat.com>
2474
2475         * libc/posix/execvp.c: Remove obsolete CYGWIN32 considerations
2476         throughout.
2477         * signal.h: Change comment to reflect __CYGWIN__ rather than __CYGWIN32__.
2478         * popen.c (popen): Use __CYGWIN_ rather than __CYGWIN32__.
2479         * system.c (_system_r): Ditto.
2480
2481 2001-10-17  Corinna Vinschen  <corinna@vinschen.de>
2482
2483         * libc/include/sys/unistd.h: Add prototype for fchdir() when
2484         __CYGWIN__ or __rtems__ is defined.
2485
2486 2001-10-01  Charles Wilson  <cwilson@ece.gatech.edu>
2487
2488         * libc/include/stdlib.h: add declarations for
2489         _strtoull_r, _strtoll_r, strtoull, and strtoll.
2490         * libc/stdio/local.h: remove declarations of
2491         __strtoull_r and __strtoll_r.
2492         * libc/stdio/vfscanf.c(__svfscanf_r): call
2493         _strtoull_r instead of __strtoull_r. Ditto
2494         _strtoll_r vs. __strtoll_r.
2495         * libc/stdlib/Makefile.am: add new files to
2496         .c list and .def list
2497         * libc/stdlib/Makefile.in: regenerate
2498         * libc/stdlib/strtoll_r.c: rename __strtoll_r
2499         as _strtoll_r
2500         * libc/stdlib/strtoull_r.c: rename __strtoull_r
2501         as _strtoull_r
2502         * libc/stdlib/strtoull.c: new file
2503         * libc/stdlib/strtoll.c: new file
2504
2505 Mon Sep 17 17:29:47 2001  Christopher Faylor <cgf@cygnus.com>
2506
2507         * libc/include/process.h: Add getpid() declaration.
2508
2509 2001-09-14  Nick Clifton  <nickc@cambridge.redhat.com>
2510
2511         * libc/sys/arm/crt0.S: Add calls to _init and _fini (via atexit)
2512         for new style arm/elf ctor/dtor handling.
2513         Minor formatting tidy up.
2514
2515 2001-09-13  Jeff Johnston  <jjohnstn@redhat.com>
2516
2517         * libc/stdlib/Makefile.am: Add support to build strtoll_r.c
2518         and strtoull_r.c.
2519         * libc/stdlib/Makefile.in: Regenerated.
2520         * libc/stdlib/strtoll_r.c: New file.
2521         * libc/stdlib/strtoull_r.c: New file.
2522         * libc/stdio/local.h: Add prototypes for long long string
2523         conversion routines.
2524         * libc/stdio/vfscanf.c (__svfscanf_r): Add optional long long support
2525         tied to %L integer conversion specifier.
2526
2527 Thu Sep 13 08:49:49 2001  Jason Tishler <jason@tishler.net>
2528
2529         * strftime.c (strftime): Fix "%W" implementation to properly handle
2530         Mondays too.
2531
2532 2001-09-07  Jeff Law  <law@redhat.com>
2533
2534         * libc/sys/h8300hms/crt0.S: For H8/300H and H8/S, load address of
2535         __fini with "mov.l" instead of "mov.w".
2536
2537 2001-09-05  Corinna Vinschen  <corinna@vinschen.de>
2538
2539         * libc/sys/cygwin/include/unistd.h: New file, wrapping sys/unistd.h
2540         and getopt.h.
2541
2542 2001-09-04  Jason Merrill  <jason_merrill@redhat.com>
2543
2544         * libc/sys/h8300hms/crt0.S: Support ELF initialization.
2545
2546 2001-09-03  Corinna Vinschen  <corinna@vinschen.de>
2547
2548         * libc/sys/cygwin/sys/dirent.h (struct dirent): Add version number
2549         field.
2550         (__DIRENT_VERSION): New define.
2551
2552 2001-09-03  Corinna Vinschen  <corinna@vinschen.de>
2553
2554         * libc/sys/cygwin/sys/dirent.h (struct dirent): Add `d_fd' member.
2555         Shrink __d_reserved accordingly to keep structure size.
2556         (dirfd): Declare external.
2557
2558 2001-08-29  Joel Sherrill <joel@OARcorp.com>
2559
2560         * libc/include/sys/unistd.h: Prototype chroot() for RTEMS.
2561
2562 2001-08-29  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
2563
2564         * libc/machine/i386/f_atan2.S, libc/machine/i386/f_atan2f.S,
2565           libc/machine/i386/f_exp.c, libc/machine/i386/f_expf.c,
2566           libc/machine/i386/f_frexp.S, libc/machine/i386/f_frexpf.S,
2567           libc/machine/i386/f_ldexp.S, libc/machine/i386/f_ldexpf.S,
2568           libc/machine/i386/f_log.S, libc/machine/i386/f_log10.S,
2569           libc/machine/i386/f_log10f.S, libc/machine/i386/f_logf.S,
2570           libc/machine/i386/f_pow.c, libc/machine/i386/f_powf.c,
2571           libc/machine/i386/f_tan.S, libc/machine/i386/f_tanf.S:
2572         Add conditional compilation to avoid HW FPU instructions
2573         when compiled for soft-float.
2574
2575 2001-08-29  Jeff Johnston  <jjohnstn@redhat.com>
2576
2577         * Makefile.am: Add check for ln failing when creating libg.a
2578         so that cp gets used as a backup.
2579         * Makefile.in: Regenerated.
2580
2581 2001-08-29  Jeff Johnston  <jjohnstn@redhat.com>
2582
2583         * libc/include/sys/reent.h: Add include of <sys/_types.h>.
2584         No longer include time.h.  Add struct __tm to use for
2585         _localtime_buf in the reentrant structure.  Add a
2586         _NULL definition to use in initializing the reentrant struct.
2587         * libc/include/sys/config.h: For CYGWIN32 and RTEMS, change
2588         the _READ_WRITE_RETURN_TYPE to _ssize_t which is found in
2589         <sys/_types.h>.
2590         * libc/include/sys/unistd.h: Include <sys/_types.h>.
2591         * libc/time/lcltime.c (localtime): Cast the reentrant struct
2592         _localtime_buf to be struct tm *.
2593
2594 Wed Aug 29 14:17:38 2001  J"orn Rennecke <amylaar@redhat.com>
2595
2596         * configure.host (h8300-*-elf*, h8500-*-elf*): New cases.
2597         * libc/sys/h8300hms/crt1.c (__main): Don't reference __ctors /
2598         __ctors_end.
2599         * libc/sys/h8300hms/syscalls.c: Include errno.h.
2600         (_unlink): New stub function.
2601
2602 Sat Aug 25 22:22:25 2001  Christopher Faylor <cgf@cygnus.com>
2603
2604         * libc/include/sys/errno.h: Add a cautionary comment.
2605
2606 2001-08-21  Jeff Johnston  <jjohnstn@redhat.com>
2607
2608         * libc/stdlib/mallocr.c [!defined(MALLOC_ALIGNMENT)]: Add conditional
2609         for SIZE_SZ so that alignment ends up a minimum of 8.
2610
2611 Mon Aug 13 22:26:01 2001  Christopher Faylor <cgf@cygnus.com>
2612
2613         * libc/include/machine/setjmp.h: Protect sigsetjmp/siglongjmp macro
2614         arguments.
2615
2616         * libc/include/sys/errno.h: Declare sys_errlist and sys_nerr, under
2617         Cygwin.
2618
2619 2001-08-13  Jeff Johnston  <jjohnstn@redhat.com>
2620
2621         * libc/include/malloc.h (M_MXFAST, M_NLBLKS, M_GRAIN, M_KEEP): New
2622         macro constants for mallopt options.
2623         (M_TRIM_THRESHOLD, M_TOP_PAD, M_MMAP_THRESHOLD, M_MMAP_MAX): Ditto.
2624
2625 2001-08-02  Jeff Johnston  <jjohnstn@redhat.com>
2626
2627         * libc/include/stdio.h (BUFSIZ): Define to __BUFSIZ__ if provided,
2628         otherwise default.
2629
2630 2001-07-12  Aldy Hernandez  <aldyh@redhat.com>
2631
2632         * libc/machine/mips/setjmp.S: Allow mips16 and mips64 to coexist.
2633
2634 2001-06-27  Nick Clifton  <nickc@cambridge.redhat.com>
2635
2636         * libc/include/machine/ieeefp.h (__IEEE_BYTES_LITTLE_ENDIAN):
2637         Define for little endian ARMs.
2638
2639         * libc/stdlib/mprec.h (Storeinc): Use little endian version if
2640         __IEEE_BYTES_LITTLE_ENDIAN is defined.
2641
2642 2001-06-11  Danny Smith  <dannysmith@users.sourceforge.net>
2643
2644         * /libc/include/ctype.h (is* and to* macros): Do not define if C++.
2645
2646 2001-06-11  Egor Duda  <deo@logos-m.ru>
2647
2648         * libc/ctype/ctype_.c: When compiled with gcc on platforms
2649         with signed char, make _ctype_[-128] ... _ctype[-1] refer to
2650         initialized memory region. Platform can define COMPACT_CTYPE
2651         to avoid allocation of the additional 128 bytes of data.
2652         Add pointer to _ctype_ array. Always initialize all _ctype_
2653         array elements.
2654
2655 2001-06-08  Jonathan Larmour  <jlarmour@redhat.com>
2656
2657         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Avoid dereferencing
2658         NULL pointer.
2659
2660 2001-05-28  Nick Clifton  <nickc@cambridge.redhat.com>
2661
2662         * libc/stdio/vfprintf.c (_VFPRINTF_R): Handle printf ("%#.0o",0)
2663
2664 2001-05-25  Nick Clifton  <nickc@cambridge.redhat.com>
2665
2666         * libc/machine/xscale/memcmp.c: Fix bug when both pointers have
2667         matching, non-word alignment, and the length is <= 4 but more than
2668         enough to move them over a word boundary.
2669         Add comments explaining what each instruction does.
2670
2671 Mon May  7 20:39:25 2001  Christopher Faylor <cgf@cygnus.com>
2672
2673         * libc/include/sys/stat.h: Revert March 3, Cygwin change.
2674         * libc/include/sys/unistd.h: Ditto.
2675
2676 2001-05-04  Earnie Boyd  <earnie@users.sourceforge.net>
2677
2678         * libc/string/strrchr.c: Use strchr for the speed improvements.
2679
2680 2001-05-01  Jeff Johnston  <jjohnstn@redhat.com>
2681
2682         * libc/stdio/findfp (__sinit)[HAVE_FCNTL]: For platforms that have
2683         real file systems, let __smakebuf() determine if line buffering
2684         should be used for stdout.
2685
2686 2001-04-27  Jeff Johnston  <jjohnstn@redhat.com>
2687
2688         * libc/stdio/vfscanf.c (__svfscanf_r): Initialize new_exp local var.
2689
2690 2001-04-27  Jeff Johnston  <jjohnstn@redhat.com>
2691
2692         * libc/include/stdlib.h: Add prototype for _strtod_r.
2693
2694 2001-04-24  Charles Wilson  <cwilson@ece.gatech.edu
2695
2696         * libc/stdio/vprintf.c (vprintf): fix signature to use _DEFUN
2697         * libc/stdio/vprintf.c (_vprintf_r): new function
2698         * libc/stdio/vsnprintf.c (vsnprintf): fix signature to use _DEFUN
2699         * libc/stdio/vsnprintf.c (_vsnprintf_r): fix signature to use
2700         _DEFUN, and call _vfprintf_r, not vfprintf.
2701         * libc/stdio/vsprintf.c (vsprintf.c): fix signature to use _DEFUN
2702         * libc/stdio/vsprintf.c (_vsprintf_r): fix signature to use
2703         _DEFUN, and call _vfprintf_r, not vfprintf.
2704
2705 2001-04-22  Earnie Boyd  <earnie@users.sourceforge.net>
2706   
2707         * libc/include/sys/unistd.h [X_OK]: Use better protection against
2708         Cygwin X_OK definitions in sys/file.h.
2709
2710 Fri Apr 20 23:17:51 2001  Christopher Faylor <cgf@cygnus.com>
2711
2712         * libc/include/sys/time.h: Define timercmp and other macros for
2713         __CYGWIN__, too.
2714
2715 2001-04-20  Jeff Johnston  <jjohnstn@redhat.com>
2716         
2717         * acinclude.m4: Added --enable-malloc-debugging configure flag.
2718         * configure.host: For Cygwin specify -DMALLOC_PROVIDED if
2719         --enable-malloc-debugging selected.
2720         * aclocal.m4 configure: Regenerated.
2721           libm/aclocal.m4 libm/configure: Ditto.
2722         * libc/aclocal.m4 libc/configure: Ditto.
2723         * libc/machine/aclocal.m4 libc/machine/configure: Ditto.
2724         * libc/machine/*/aclocal.m4 libc/machine/*/configure: Ditto.
2725         * libc/sys/aclocal.m4 libc/sys/configure: Ditto.
2726         * libc/sys/*/aclocal.m4 libc/sys/*/configure: Ditto.
2727         * doc/aclocal.m4 doc/configure: Ditto.
2728
2729 2001-04-20  Jeff Johnston  <jjohnstn@redhat.com>
2730
2731         * libc/include/stdio.h[!_REENT_ONLY]: Moved various functions together
2732         into one list.
2733         [!__STRICT_ANSI__]: Moved non-ANSI I/O functions in this list.
2734         (vfscanf, vscanf, vsscanf, _vfscanf_r, _vscanf_r, _vsscanf_r): New
2735         function prototypes.
2736         (_fscanf_r, _sscanf_r): Ditto.
2737         * libc/include/stdlib.h: Added _strtod_r prototype.
2738         * libc/stdio/Makefile.am: Add new v*scanf functions.
2739         * libc/stdio/Makefile.in: Regenerate.
2740         * libc/stdio/fscanf.c: Reorganized so HAVE_STDC only affects prototype
2741         and code is shared.  Added reentrant _fscanf_r which calls __svfscanf_r.
2742         * libc/stdio/scanf.c: Changed to call __svfscanf_r.
2743         * libc/stdio/sscanf.c: Changed documentation to add reentrant routines.
2744         (sscanf): Changed to call __svfscanf_r with _REENT argument.
2745         (_sscanf_r): New routine.
2746         * libc/stdio/local.h: Removed __svfscanf prototype and replaced it
2747         with __svfscanf_r prototype.
2748         * libc/stdio/vfscanf.c (vfscanf, _vfscanf_r: New
2749         routines.
2750         (__svfscanf_r): Reentrant version of __svfscanf which takes reetrancy
2751         structure as argument as calls reentrant versions of helper functions
2752         (e.g. _strtol_r, _strtoul_r). Also replaced calls to atol and atof
2753         to _strtol_r and _strtod_r respectively.
2754         * libc/stdio/vfscanf.c: Also changed __svfscanf to call __svfscanf_r.
2755         * libc/stdlib/strtod.c (strtod): Changed to call _strtod_r with
2756         _REENT argument.
2757         * libc/stdio/vscanf.c: New file.
2758         * libc/stdio/vsscanf.c: Ditto.
2759
2760 2001-04-19  Robert Collins  <rbtcollins@hotmail.com>
2761
2762         * include/time.h[__CYGWIN__]:  Define tzname to _tzname if not defined.
2763         Define daylight to _daylight if it is not defined
2764         Prepare a variable export of timezone based on timezonevariable. 
2765         (Cannot be used with the timezone() function.)
2766
2767 2001-04-17  Stephen L. Moshier  <moshier@moshier.ne.mediaone.net>
2768
2769         * newlib/libm/math/ef_asin.c (pio2_hi, pio2_lo, pio4_hi):
2770          Correct the numerical values.
2771
2772 2001-04-13  Robert Collins <rbtcollins@hotmail.com>
2773
2774         * libc/include/sys/unistd.h: Add pthread_atfork (Cygwin only).
2775
2776 Thu Apr 12 23:11:00 2001  Corinna Vinschen <corinna@vinschen.de>
2777
2778         * libc/include/sys/errno.h: Add ECASECLASH to indicate case clash
2779         on case insensitve file systems.
2780
2781 2001-04-12  Robert Collins <rbtcollins@hotmail.com>
2782
2783         * libc/include/sys/features.h: Add appropriate defines for Cygwin
2784         pthread support.
2785         * libc/include/sys/signal.h: Remove unneeded __CYGWIN__ protection.
2786         * libc/include/sys/types.h: Protect __CYGWIN__ from the rtems pthreads
2787         types.  Include <cygwin/types.h> for the cygwin specific typedefs.
2788
2789 2001-04-04  Richard Sandiford  <rsandifo@redhat.com>
2790
2791         * libc/include/machine/ieeefp.h: Comment about new configuration
2792         macros _FLT_LARGEST_EXPONENT_IS_NORMAL and _FLT_NO_DENORMALS.
2793         * libm/common/fdlib.h: Define new macros for testing floats.
2794         * libm/common/sf_*: Use them.
2795         * libm/math/ef_*: Likewise.
2796         * libm/math/sf_*: Likewise.
2797
2798 2001-03-29  Jeff Johnston  <jjohnstn@redhat.com>
2799
2800         * libc/sys/arm/setjmp.S: Added .code 16 specifier for thumb-mode
2801         prolog to by-pass possible assembler error.
2802
2803 2001-03-21  Egor Duda  <deo@logos-m.ru>
2804
2805         Allow building internal stubs for non-reentrant syscalls
2806         if target provides its own malloc
2807         * libc/reent/reent.c (errno): Move definition here.
2808         * libc/reent/sbrkr.c: From here.
2809
2810 2001-03-20  Danny Smith <dannysmith@users.sourceforge.net>
2811
2812         * libc/include/sys/types.h (BSD int typedefs): Guard with
2813         _BSDTYPES_DEFINED rather than _WINSOCK_H.
2814         (fd_set): Add !defined __USE_W32_SOCKETS to guard; define
2815         _SYS_TYPES_FD_SET.
2816         * libc/include/sys/unistd.h (gethostname): Don't declare if defined
2817         (_WINSOCK_H) || defined (__USE_W32_SOCKETS).
2818
2819 Sat Mar 17 18:30:00 2001  Corinna Vinschen <corinna@vinschen.de>
2820
2821         * libc/include/sys/unistd.h: Add _PC_POSIX_PERMISSONS and
2822         _PC_POSIX_SECURITY constants for Cygwin.
2823
2824 Wed Mar 14  9:34:00 2001  Corinna Vinschen <corinna@vinschen.de>
2825
2826         * libc/sys/cygwin/crt0.c: Add copyright hint.
2827         * libc/sys/cygwin/sys/dirent.h: Ditto.
2828         * libc/sys/cygwin/sys/param.h: Ditto.
2829         * libc/sys/cygwin/sys/utime.h: Ditto.
2830         * libc/sys/cygwin/sys/utmp.h: Ditto.
2831
2832 2001-03-13  Alexandre Oliva  <aoliva@redhat.com>
2833
2834         * libc/stdio/vfprintf.c (QUADINT) [_NO_LONGLONG]: Make it
2835         equivalent to LONGINT.
2836
2837 2001-03-08  Richard Sandiford  <rsandifo@redhat.com>
2838
2839         * (libc/include/machine/setjmp.h): Use 23 long long ints for a
2840         jmpbuf on MIPS64 targets.
2841         * (libc/machine/mips/setjmp.S): Add MIPS64 version.
2842
2843 Wed Mar  7 16:02:07 2001  Christopher Faylor <cgf@cygnus.com>
2844
2845         * libc/include/sys/config.h: Use ssize_t for Cygwin read/write 
2846           declarations.
2847
2848 Mon Mar  5 21:48:54 2001  J"orn Rennecke <amylaar@redhat.com>
2849
2850         * libc/include/sys/config.h (_READ_WRITE_RETURN_TYPE): Define.
2851         For RTEMS, define to be ssize_t.  Default to int if not defined.
2852         * libc/stdio/sscanf.c (eofread): Return _READ_WRITE_RETURN_TYPE.
2853         * libc/stdio/stdio.c (__sread, __swrite): Likewise.
2854         * libc/stdio/local.h (__sread, __swrite): Likewise.
2855         * libc/include/sys/reent.h (_read, _write): Likewise.
2856         * libc/include/sys/unistd.h (read, write, _read, _write): Likewise.
2857         * libc/syscalls/sysread.c (read): Likewise.
2858         * libc/syscalls/syswrite.c (write): Likewise.
2859
2860 2001-03-05  Jeff Johnston  <jjohnstn@redhat.com>
2861
2862         * libc/time/mktime.c: Add L suffix to _SEC_IN_xxxx constants.
2863
2864 Sat Mar  3 00:34:14 2001  Christopher Faylor <cgf@cygnus.com>
2865
2866         * libc/include/sys/stat.h: Use special defines for executable stat bits
2867         when compiling for Cygwin.
2868         * libc/include/sys/unistd.h: Use special define for X_OK when compiling
2869         for Cygwin.
2870
2871 2001-03-02  Jeff Johnston  <jjohnstn@redhat.com>
2872
2873         * libc/string/strtok.c: Add #undef of __STRICT_ANSI__ so prototype
2874         of strtok_r is always defined.
2875
2876 2001-03-02  Jeff Johnston  <jjohnstn@redhat.com>
2877
2878         * libc/include/machine/ansi.h: New dummy header file.
2879
2880 2001-02-22  Jeff Johnston  <jjohnstn@redhat.com>
2881
2882         * libc/include/machine/setjmp-dj.h: With DJ Delorie's permission,
2883         changed the copyright information to allow free modification of the
2884         file with no reference to "copying.dj".
2885         * libc/include/sys/stat-dj.h: Ditto.
2886         * libc/machine/i386/setjmp.S: Ditto.
2887         * libc/sys/h8300hms/sys/file.h: Ditto.
2888         * libc/sys/sysmec/access.c: Ditto.
2889         * libc/sys/sysnecv850/access.c: Ditto.
2890         * libc/stdio/mktemp.c: Fixed typo for the word copyright.
2891         * libc/stdlib/getenv_r.c: Ditto.
2892         * libc/stdlib/putenv_r.c: Ditto.
2893         * libc/stdlib/setenv_r.c: Ditto.
2894         * libc/stdlib/getenv.c: Removed DJ reference since any possible
2895         modifications will now be in the _r version of this file.
2896         * libc/stdlib/putenv.c: Ditto.
2897         * libc/stdlib/setenv.c: Ditto.
2898         * libc/sys/go32/copying.dj: Removed DJ's address which is no longer
2899         valid.  Added a reference to DJ's web page that contains his address.
2900         * libc/sys/go32/*.s: Removed references to DJ's old address.
2901         * libc/sys/go32/*.c: Ditto.
2902         * libc/sys/go32/*.h: Ditto.
2903         * libc/sys/go32/*.S: Ditto.
2904         * libc/sys/go32/sys/*.h: Ditto.
2905
2906 2001-02-21  Jeff Johnston  <jjohnstn@redhat.com>
2907
2908         * libc/stdio/fdopen.c (fdopen): Protect calls to _fcntl() with
2909         HAVE_FCNTL flag check.
2910         * configure.host: Define HAVE_FCNTL for Cygwin, go32, RTEMS, sparc64,
2911         powerpcle, x86 netware, x86 sco, x86 Linux and Vxworks.
2912
2913 Thu Feb 15 01:39:51 2001  Christopher Faylor <cgf@cygnus.com>
2914
2915         * libc/include/sys/signal.h: Always include sys/types.h under Cygwin.
2916
2917 2001-02-14  Kazuhiro Fujieda  <fujieda@jaist.ac.jp>
2918
2919         * libc/include/stdlib.h: Add declarations of rand48 functions and
2920         their reentrant versions.
2921         * libc/include/sys/reent.h: Move macros from rand48.h. Add
2922         struct _rand48 for shared parameters of rand48 functions.
2923         (struct _reent): Add a variable _r48 of struct _rand48.
2924         (_REENT_INIT): Add _r48 initialization.
2925         * libc/stdlib/Makefile.am (lib_a_SOURCES): Add rand48 functions.
2926         (CHEWOUT_FILES): Add rand48.def.
2927         * libc/stdlib/Makefile.am: Add dependencies for rand48 functions.
2928         * libc/stdlib/Makefile.in: Regenerated.
2929         * libc/stdlib/drand48.c (drand48, _drand48_r): Derived from the
2930         NetBSD C library.
2931         * libc/stdlib/erand48.c (erand48, _erand48_r): Ditto.
2932         * libc/stdlib/jrand48.c (jrand48, _jrand48_r): Ditto.
2933         * libc/stdlib/lcong48.c (lcong48, _lcong48_r): Ditto.
2934         * libc/stdlib/lrand48.c (lrand48, _lrand48_r): Ditto.
2935         * libc/stdlib/mrand48.c (mrand48, _mrand48_r): Ditto.
2936         * libc/stdlib/nrand48.c (nrand48, _nrand48_r): Ditto.
2937         * libc/stdlib/seed48.c (seed48, _seed48_r): Ditto.
2938         * libc/stdlib/srand48.c (srand48, _srand48_r): Ditto.
2939         * libc/stdlib/rand48.c (__dorand48): Ditto.
2940         * libc/stdlib/rand48.h: Ditto, and modify declarations of global
2941         parameters into macros referring them in the reentrant structure.
2942
2943 2001-02-12  Jeff Johnston  <jjohnstn@redhat.com>
2944
2945         * libc/include/sys/stat.h: Add mknod for Cygwin now that
2946         Cygwin definition has correct prototype.
2947
2948 2001-02-08  Jeff Johnston  <jjohnstn@redhat.com>
2949
2950         * libc/include/sys/stat.h: Must revert change for mknod
2951         for CYGWIN until winsup/cygwin/syscalls.cc changes mknod
2952         prototype.
2953
2954 2001-02-08  Jeff Johnston  <jjohnstn@redhat.com>
2955
2956         * libc/include/stdio.h: Revert putw prototype.
2957
2958 2001-02-08  Edward M. Lee  <tailbert@yahoo.com>
2959
2960         * libc/include/grp.h: add prototype for initgroups.
2961         * libc/include/stdio.h: fix prototype for putw.
2962         * libc/include/sys/signal.h: add prototype for killpg.
2963         * libc/include/sys/stat.h: enable mknod/lstat for CYGWIN.
2964         * libc/include/sys/unistd.h: add prototypes for getpgid, setpgrp,
2965         vhangup and remove duplicate sysconf prototype.
2966
2967 2001-02-07  Jeff Johnston  <jjohnstn@redhat.com>
2968
2969         * libc/sys/rtems/sys/types.h: Removed.
2970
2971 2001-02-05  Charles Wilson  <cwilson@ece.gatech.edu>
2972
2973         * libc/include/locale.h: add LC_MESSAGES definition
2974
2975 2001-02-01  Alexandre Oliva  <aoliva@redhat.com>
2976
2977         * libc/sys/sh/sys/syscall.h (SYS_get_argc, SYS_get_argN_len,
2978         SYS_get_argN):
2979         * libc/sys/sh/syscalls.c (__setup_argv_for_main,
2980         __setup_argv_and_call_main): New.
2981
2982 2001-01-31  Jeff Johnston  <jjohnstn@redhat.com>
2983
2984         * libc/include/stdio.h (FILENAME_MAX): Changed to use __FILENAME_MAX__
2985         if defined.
2986         (FOPEN_MAX): Changed to use __FOPEN_MAX__ if defined.
2987         (L_tmpnam): Changed to use __L_tmpnam__ if defined.
2988         * libc/include/sys/config.h: Changed to set __FILENAME_MAX__
2989         appropriately for Cygwin and RTEMS so not to exceed PATH_MAX.
2990
2991 Mon Jan 29 23:03:06 2001  Christopher Faylor <cgf@cygnus.com>
2992
2993         * libc/stdlib/mallocr.c: Undefine windows preprocessor variables when
2994         compiling under Cygwin.
2995
2996 2001-01-29  Jeff Johnston  <jjohnstn@redhat.com>
2997
2998         * libc/include/math.h (signgam): Change to errno-like solution
2999         using a function to return the address of the real signgam.
3000         * libc/reent/signgam.c: New file containing __signgam().
3001         * libc/reent/Makefile.am: Added signgam.c to list of files.
3002         * libc/reent/Makefile.in: Regenerated.
3003
3004 2001-01-25  Alexandre Oliva  <aoliva@redhat.com>
3005
3006         * libc/sys/sh/syscalls.c (_times): New.
3007
3008         * configure.host (sh*-*-*): Add -DHAVE_GETTIMEOFDAY to newlib_cflags.
3009         * libc/sys/sh/syscalls.c (_gettimeofday): New.
3010
3011 2001-01-23  Jeff Johnston  <jjohnstn@redhat.com>
3012
3013         * libc/include/math.h (signgam): Regress previous fix as
3014         it does not handle programs with extern int signgam in them.
3015
3016 2001-01-23  Jeff Johnston  <jjohnstn@redhat.com>
3017
3018         * libc/include/math.h (signgam): Changed to a macro refering to
3019         its location in the reentrant structure.
3020
3021 2001-01-23  Jeff Johnston  <jjohnstn@redhat.com>
3022
3023         * libc/stdio/vfprintf.c (_VFPRINTF_R): Modification to fix
3024         that suppressed . for %.0f, 0.1.  Check now looks if there
3025         are padding zeroes (expt) in addition to any digits (ndig) to
3026         print.
3027
3028 2001-01-18  Jeff Johnston  <jjohnstn@redhat.com>
3029
3030         * libc/sys/arc/Makefile.am: New file.
3031         * libc/sys/arc/Makefile.in: Ditto.
3032         * libc/sys/arc/aclocal.m4: Ditto.
3033         * libc/sys/arc/configure: Ditto.
3034         * libc/sys/arc/configure.in: Ditto.
3035         * libc/sys/arc/crt0.S: Ditto.
3036         * libc/sys/arc/isatty.c: Ditto.
3037         * libc/sys/arc/mem-layout.c: Ditto.
3038         * libc/sys/arc/sbrk.c: Ditto.
3039         * libc/sys/arc/syscalls.c: Ditto.
3040         * libc/sys/arc/sys/syscall.h: Ditto.
3041
3042 Wed Jan 17 23:20:56 2001  Christopher Faylor <cgf@cygnus.com>
3043
3044         * libc/include/sys/unistd.h: Use correct declaration for setdtablesize.
3045
3046 Fri Jan 12 00:34:31 2001  Christopher Faylor <cgf@cygnus.com>
3047
3048         * libc/include/sys/signal.h: Add some SA_* defines for Cygwin.
3049
3050 Thu Jan 11 20:42:06  2001  Earnie Boyd  <earnie_boyd@yahoo.com>
3051
3052         * libc/include/sys/features.h: __CYGWIN__ preferred over __CYGWIN32__
3053
3054 2001-01-09  Nick Clifton  <nickc@redhat.com>
3055
3056         * configure.host (v859): Remove unsupported compiler options.
3057
3058 Fri Jan  5 19:57:00 EST 2001  Aaron J. Grier  <aaron@frye.com>
3059
3060         * src/newlib/configure.host (*-*-rtems*): add printf long long
3061         support for RTEMS.
3062
3063 2000-12-19  Graham Stott <grahams@redhat.com>
3064
3065         * libc/machine/xscale/memcmp.c (memcmp): Add clobber for "lr".
3066
3067 Wed Dec 14  Jeff Johnston  <jjohnstn@redhat.com>
3068
3069         * configure.host: Turn on long double I/O for Cygwin.
3070
3071 Wed Dec 14  Jeff Johnston  <jjohnstn@redhat.com>
3072
3073         * MAINTAINERS: Removed Ranjith.
3074         * NEWS: Updated for 1.9.0.
3075         * README: Updated.
3076         * acinclude.m4: Updated to release 1.9.0.
3077         * aclocal.m4 configure
3078           doc/aclocal.m4 doc/configure libc/aclocal.m4 libc/configure
3079           libc/machine/aclocal.m4 libc/machine/configure
3080           libc/machine/a29k/aclocal.m4 libc/machine/a29k/configure
3081           libc/machine/arm/aclocal.m4 libc/machine/arm/configure
3082           libc/machine/d10v/aclocal.m4 libc/machine/d10v/configure
3083           libc/machine/d30v/aclocal.m4 libc/machine/d30v/configure
3084           libc/machine/fr30/aclocal.m4 libc/machine/fr30/configure
3085           libc/machine/h8300/aclocal.m4 libc/machine/h8300/configure
3086           libc/machine/h8500/aclocal.m4 libc/machine/h8500/configure
3087           libc/machine/hppa/aclocal.m4 libc/machine/hppa/configure
3088           libc/machine/i386/aclocal.m4 libc/machine/i386/configure
3089           libc/machine/i960/aclocal.m4 libc/machine/i960/configure
3090           libc/machine/m32r/aclocal.m4 libc/machine/m32r/configure
3091           libc/machine/m68k/aclocal.m4 libc/machine/m68k/configure
3092           libc/machine/m88k/aclocal.m4 libc/machine/m88k/configure
3093           libc/machine/mips/aclocal.m4 libc/machine/mips/configure
3094           libc/machine/mn10200/aclocal.m4 libc/machine/mn10200/configure
3095           libc/machine/mn10300/aclocal.m4 libc/machine/mn10300/configure
3096           libc/machine/necv70/aclocal.m4 libc/machine/necv70/configure
3097           libc/machine/powerpc/aclocal.m4 libc/machine/powerpc/configure
3098           libc/machine/sh/aclocal.m4 libc/machine/sh/configure
3099           libc/machine/sparc/aclocal.m4 libc/machine/sparc/configure
3100           libc/machine/tic80/aclocal.m4 libc/machine/tic80/configure
3101           libc/machine/v850/aclocal.m4 libc/machine/v850/configure
3102           libc/machine/w65/aclocal.m4 libc/machine/w65/configure
3103           libc/machine/xscale/aclocal.m4 libc/machine/xscale/configure
3104           libc/machine/z8k/aclocal.m4 libc/machine/z8k/configure
3105           libc/sys/aclocal.m4 libc/sys/configure
3106           libc/sys/a29khif/aclocal.m4 libc/sys/a29khif/configure
3107           libc/sys/arm/aclocal.m4 libc/sys/arm/configure
3108           libc/sys/cygwin/aclocal.m4 libc/sys/cygwin/configure
3109           libc/sys/d10v/aclocal.m4 libc/sys/d10v/configure
3110           libc/sys/decstation/aclocal.m4 libc/sys/decstation/configure
3111           libc/sys/go32/aclocal.m4 libc/sys/go32/configure
3112           libc/sys/h8300hms/aclocal.m4 libc/sys/h8300hms/configure
3113           libc/sys/h8500hms/aclocal.m4 libc/sys/h8500hms/configure
3114           libc/sys/linux/aclocal.m4 libc/sys/linux/configure
3115           libc/sys/m88kbug/aclocal.m4 libc/sys/m88kbug/configure
3116           libc/sys/netware/aclocal.m4 libc/sys/netware/configure
3117           libc/sys/rtems/aclocal.m4 libc/sys/rtems/configure
3118           libc/sys/sh/aclocal.m4 libc/sys/sh/configure
3119           libc/sys/sparc64/aclocal.m4 libc/sys/sparc64/configure
3120           libc/sys/sun4/aclocal.m4 libc/sys/sun4/configure
3121           libc/sys/sysmec/aclocal.m4 libc/sys/sysmec/configure
3122           libc/sys/sysnec810/aclocal.m4 libc/sys/sysnec810/configure
3123           libc/sys/sysnecv850/aclocal.m4 libc/sys/sysnecv850/configure
3124           libc/sys/sysvi386/aclocal.m4 libc/sys/sysvi386/configure
3125           libc/sys/sysvnecv70/aclocal.m4 libc/sys/sysvnecv70/configure
3126           libc/sys/tic80/aclocal.m4 libc/sys/tic80/configure
3127           libc/sys/w65/aclocal.m4 libc/sys/w65/configure
3128           libc/sys/z8ksim/aclocal.m4 libc/sys/z8ksim/configure
3129           libm/aclocal.m4 libm/configure: Regenerated.
3130
3131 Wed Dec 13 11:52:00 2000  Corinna Vinschen <vinschen@cygnus.com>
3132
3133         * libc/include/sys/unistd.h: Add declarations for `chroot' and `getwd'
3134         when __CYGWIN__ is defined.
3135
3136 2000-12-13  Jeff Johnston  <jjohnstn@redhat.com>
3137
3138         * libc/stdlib/ldtoa.c (_ldcheck): New routine
3139         that categorizes a long double as NaN, Infinity, or other.
3140         * libc/stdio/vfprintf.c [WANT_IO_LONG_DBL](_VFPRINTF_R): Removed 
3141         isinfl and isnanl static routines which were i386-specific.  Changed 
3142         calls to the two removed routines to a single _ldcheck call.
3143         * libc/stdio/vfieeefp.h (ldieee): Fixed missing semi-colons.
3144
3145 2000-12-13  Jeff Johnston  <jjohnstn@redhat.com>
3146
3147         * Makefile.am: Fixed install-data-local target to use
3148         $(mkinstalldirs) for the installed header files to ensure
3149         the directories exist before copying.
3150         * Makefile.in: Regenerated.
3151
3152 2000-12-12  Jeff Johnston  <jjohnstn@redhat.com>
3153
3154         * libc/include/sys/unistd.h: Restored Cygwin _SC
3155         constants and moved new constants appropriately
3156         so Cygwin will build.
3157
3158 2000-12-11  Joel Sherrill <joel@OARcorp.com>
3159
3160         * Merge RTEMS specific .h files into main libc/include.
3161         * libc/sys/rtems/include/signal.h: Removed.
3162         * libc/sys/rtems/include/time.h: Removed.
3163         * libc/sys/rtems/sys/features.h: Removed.
3164         * libc/sys/rtems/sys/sched.h: Removed.
3165         * libc/sys/rtems/sys/siginfo.h: Removed.
3166         * libc/sys/rtems/sys/signal.h: Removed.
3167         * libc/sys/rtems/sys/time.h: Removed.
3168         * libc/sys/rtems/sys/times.h: Removed.
3169         definitions for time_t and clock_t since these are
3170         no longer in time.h.
3171         * libc/include/pthread.h: New file.
3172         * libc/include/sys/sched.h: New file.
3173         * libc/include/sys/features.h: New file.
3174         * libc/include/time.h: Removed duplicate definition of clock_t
3175         and time_t, get them from <sys/types.h> instead.  Add prototypes
3176         for POSIX clock and timer functionality.
3177         * libc/sys/linux/sys/types.h: Changed to include
3178         * libc/include/machine/types.h: Add _CLOCKID_T_ and _TIMER_T_.
3179         * libc/include/sys/signal.h: Add more complete set of POSIX
3180         signal functionality including real-time and threaded signals.
3181         * libc/include/sys/types.h: Add clock_t, time_t, struct
3182         timespec, and struct itimerspec.  Centralizing these makes 
3183         things cleaner.  RTEMS uses 64-bit dev_t.
3184         Added numerous primitive definitions
3185         for pthreads including macros, pthread_attr_t,
3186         pthread_mutexattr_t, pthread_condattr_t, pthread_key_t, 
3187         pthread_once_t, and pthread_t.
3188         * libc/include/sys/unistd.h: Added getlogin_r() prototype.
3189         If RTEMS follow POSIX on read(), write() and sbrk() prototype.
3190         Feature flags removed and moved to new file <sys/features.h>.
3191         Full set of POSIX sysconf() constants
3192
3193 2000-12-08  Werner Almesberger  <Werner.Almesberger@epfl.ch>
3194
3195         * configure.host: Added x86 linux target.
3196         * libc/unix/getpass.c (_PATH_PASSWD, _PASSWORD_LEN): Default
3197         definitions provided if not already defined.
3198         * libc/sys/linux/crt0.c: New file.
3199         * libc/sys/linux/Makefile.am: Ditto.
3200         * libc/sys/linux/Makefile.in: Ditto.
3201         * libc/sys/linux/aclocal.m4: Ditto.
3202         * libc/sys/linux/brk.c: Ditto.
3203         * libc/sys/linux/configure: Ditto.
3204         * libc/sys/linux/configure.in: Ditto.
3205         * libc/sys/linux/getoptlong.c: Ditto.
3206         * libc/sys/linux/ids.c: Ditto.
3207         * libc/sys/linux/inode.c: Ditto.
3208         * libc/sys/linux/io.c: Ditto.
3209         * libc/sys/linux/linux.c: Ditto.
3210         * libc/sys/linux/process.c: Ditto.
3211         * libc/sys/linux/realpath.c: Ditto.
3212         * libc/sys/linux/select.c: Ditto.
3213         * libc/sys/linux/signal.c: Ditto.
3214         * libc/sys/linux/systat.c: Ditto.
3215         * libc/sys/linux/termios.c: Ditto.
3216         * libc/sys/linux/time.c: Ditto.
3217         * libc/sys/linux/wait.c: Ditto.
3218         * libc/sys/linux/include/alloca.h: Ditto.
3219         * libc/sys/linux/include/getopt.h: Ditto.
3220         * libc/sys/linux/include/stdint.h: Ditto.
3221         * libc/sys/linux/include/unistd.h: Ditto.
3222         * libc/sys/linux/sys/cdefs.h: Ditto.
3223         * libc/sys/linux/sys/dirent.h: Ditto.
3224         * libc/sys/linux/sys/errno.h: Ditto.
3225         * libc/sys/linux/sys/fcntl.h: Ditto.
3226         * libc/sys/linux/sys/file.h: Ditto.
3227         * libc/sys/linux/sys/ioctl.h: Ditto.
3228         * libc/sys/linux/sys/resource.h: Ditto.
3229         * libc/sys/linux/sys/signal.h: Ditto.
3230         * libc/sys/linux/sys/stat.h: Ditto.
3231         * libc/sys/linux/sys/syscall.h: Ditto.
3232         * libc/sys/linux/sys/termios.h: Ditto.
3233         * libc/sys/linux/sys/time.h: Ditto.
3234         * libc/sys/linux/sys/types.h: Ditto.
3235         * libc/sys/linux/sys/utmp.h: Ditto.
3236         * libc/sys/linux/sys/utsname.h: Ditto.
3237         * libc/sys/linux/sys/wait.h: Ditto.
3238
3239 2000-12-08  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
3240
3241         * Makefile.am: $(INSTALL), $(INSTALL_DATA), and $(INSTALL_PROGRAM)  
3242         can be a relative path to $(top_srcdir)/install.sh so ensure the
3243         autoconf detected settings are properly passed recursively.
3244         Similarly, add AM_MAKEFLAGS to FLAGS_TO_PASS so they also get passed
3245         properly to subdirectories.
3246         * Makefile.in: Regenerated.
3247
3248 2000-12-07  Jay Kulpinski <jskulpin@eng01.gdds.com>
3249
3250         * libc/stdio/vfprintf.c: Minor modification to avoid requiring
3251         a floating point register unless really printing a floating
3252         point number.
3253
3254 2000-12-07  Jeff Johnston  <jjohnstn@redhat.com>
3255
3256         * libc/stdlib/ldtoa.c: Removed include of alloca.h.
3257         Also removed \r's.
3258         (asctoeg): Replaced alloca call with stack array and malloc
3259         when storage exceeds reasonable limit.
3260         (e53toe): Fixed einfin calls missing ldp parameter.
3261         (eiisinf): Hide behind check for LDBL_MANT_DIG == 64.
3262
3263 2000-12-06  Jeff Johnston  <jjohnstn@redhat.com>
3264
3265
3266         * libc/stdio/vfscanf.c: Fix typo for _NO_LONGDBL macro.
3267
3268 2000-12-06  Jeff Johnston  <jjohnstn@redhat.com>
3269
3270         * libc/stdlib/Makefile.am: Added ldtoa.c to list of sources.
3271         * libc/stdlib/Makefile.in: Regenerated.
3272         * libc/stdio/floatio.h: Added suitable MAXEXP for long double.
3273         * libc/stdio/vfieeefp.h: Added long double bit structures.
3274         * libc/stdio/vfprintf.c[WANT_IO_LONG_DBL]: Added long double support.
3275         [WANT_IO_LONG_DBL](isinfl, isnanl): New static long double routines.
3276         (exponent): Changed expbuf to reasonable maximum instead of MAXEXP.
3277         * libc/stdio/vfscanf.c[WANT_IO_LONG_DBL]: Added long double support.
3278         * libc/stdlib/ldtoa.c: New file containing _ldtoa_r and
3279         _strtold routines used for conversions between character
3280         and long double.
3281
3282 Wed Dec  6 12:01:00 2000  Corinna Vinschen <vinschen@cygnus.com>
3283
3284         * libc/include/stdlib.h: Add declarations for `mkstemp' and `mktemp'.
3285
3286 2000-12-04  Joel Sherrill <joel@OARcorp.com>
3287
3288         * libc/include/machine/time.h: RTEMS systems can configure clock
3289         tick rate so use sysconf() to ask.
3290
3291 2000-12-04  Joel Sherrill <joel@OARcorp.com>
3292
3293         * libc/include/sys/times.h: Add reference to POSIX standard.
3294
3295 2000-12-04  Joel Sherrill <joel@OARcorp.com>
3296
3297         * libc/include/sys/time.h: Added BSD timer manipulation macros
3298         used by RTEMS code.
3299
3300 2000-12-04  Joel Sherrill <joel@OARcorp.com>
3301
3302         * libc/sys/rtems/crt0.c: Add stubs for functions implicitly
3303         referenced by code generated by gcc 2.8.1.
3304         (a29k): Add stubs for V_SPILL, V_FILL, V_BSD_OS, V_EPI_OS to 
3305         satisfy gcc.
3306
3307 2000-12-04  Joel Sherrill <joel@OARcorp.com>
3308
3309         * libc/stdlib/system.c: Avoid compiling do_system() for RTEMS.
3310
3311 2000-12-04  Joel Sherrill <joel@OARcorp.com>
3312
3313         * libc/include/ieeefp.h: Added entries for OpenCores CPUs.
3314
3315 2000-12-04  Joel Sherrill <joel@OARcorp.com>
3316
3317         * configure.host (or16, or32): New entries for OpenCores
3318         OpenRisc CPUs.
3319         (*-*-rtems*): Add -DNO_EXEC.
3320
3321 2000-12-04  Keith Outwater <vac4050@cae597.rsc.raytheon.com>
3322
3323         * libc/include/sys/errno.h: Added comments on many error numbers.
3324         * libc/string/strerror.c: Added some more strings.
3325
3326 2000-11-30  Jeff Johnston <jjohnstn@redhat.com>
3327
3328         * libc/sys/sh/syscalls.c (_link): New stub.
3329
3330 2000-11-29  Nick Clifton  <nickc@redhat.com>
3331
3332         * configure.host: Add xscale target.
3333         * libc/machine/xscale: New directory.
3334         * libc/machine/xscale/Makefile.am: New file.
3335         * libc/machine/xscale/Makefile.in: New file.
3336         * libc/machine/xscale/aclocal.m4: New file.
3337         * libc/machine/xscale/configure: New file.
3338         * libc/machine/xscale/configure.in: New file.
3339         * libc/machine/xscale/memchr.S: New file.
3340         * libc/machine/xscale/memcmp.S: New file.
3341         * libc/machine/xscale/memcpy.S: New file.
3342         * libc/machine/xscale/memmove.S: New file.
3343         * libc/machine/xscale/memset.S: New file.
3344         * libc/machine/xscale/strchr.S: New file.
3345         * libc/machine/xscale/strcmp.S: New file.
3346         * libc/machine/xscale/strcpy.S: New file.
3347         * libc/machine/xscale/strlen.S: New file.
3348
3349 Sat Nov 25 11:24:00 2000  Corinna Vinschen <vinschen@cygnus.com>
3350
3351         * libc/include/sys/types.h: Change i to `__i' in FD_ZERO macro to
3352         avoid compiler warnings.
3353
3354 2000-11-22  Michael Meissner  <meissner@redhat.com>
3355
3356         * libc/posix/execl.c (execl): Don't reference environ directly,
3357         reference it only via a static pointer to avoid problems with some
3358         shared library systems and with different uses of small data where
3359         the user specifies his own version of environ.
3360         * libc/posix/execv.c (execv): Ditto.
3361         * libc/stdlib/getenv_r.c (_findenv_r): Ditto.
3362         * libc/stdlib/setenv_r.c (_setenv_r,_unsetenv_r): Ditto.
3363         * libc/stdlib/system.c (system, !cygwin32 case): Ditto.
3364
3365         * libc/stdlib/getenv.c (environ): Delete unused reference to
3366         environ.
3367
3368         * libc/stdlib/getenv_r.c: Make initial comment friendlier to emacs
3369         colorization.
3370         * libc/stdlib/system.c: Ditto.
3371
3372 Tue Nov 21 20:32:21 2000  Christopher Faylor <cgf@cygnus.com>
3373
3374         * libc/sys/cygwin/sys/dirent.h: Change definition to avoid necessity of
3375         including windows headers.
3376
3377 2000-11-20  Jeff Johnston  <jjohnstn@redhat.com>
3378
3379         * libc/include/sys/unistd.h: Removed definition of MAXNAMLEN.
3380         * libc/include/dirent.h: Added definition of MAXNAMLEN if
3381         not defined by sys/dirent.h.
3382         * libc/posix/execvp.c: Added include of dirent.h to get
3383         MAXNAMLEN value which used to be in unistd.h.
3384
3385 Mon Nov  6 12:56:00 2000  Corinna Vinschen <vinschen@cygnus.com>
3386
3387         * libc/include/sys/types.h: Change type of i to `size_t' in
3388         FD_ZERO macro to avoid compiler warnings.
3389
3390 Sun Oct 29 20:06:41 2000  Christopher Faylor <cgf@cygnus.com>
3391
3392         * libc/include/stdlib.h: Avoid declaring cfree under Cygwin.
3393         * libc/include/malloc.h: Ditto.  Also remove obsolete declaration.
3394
3395 Tue Oct 24 20:16:00 2000  Corinna Vinschen <vinschen@cygnus.com>
3396
3397         * libc/include/sys/unistd.h: Add defines for sysconf values
3398         _SC_NPROCESSORS_CONF, _SC_NPROCESSORS_ONLN, _SC_PHYS_PAGES and
3399         _SC_AVPHYS_PAGES.
3400
3401 Mon Oct  9 20:26:33 2000  Christopher Faylor <cgf@cygnus.com>
3402
3403         * libc/include/sys/unistd.h: Add getdtablesize and setdtablesize
3404         declarations for __CYGWIN__.
3405
3406 2000-09-19  Geoffrey Keating  <geoffk@cygnus.com>
3407
3408         * libc/signal/signal.c (__sigtramp_r): ISO C requires
3409         case labels to be integral constant expressions, so
3410         use an if/else tree instead.
3411         (_raise_r): Likewise.
3412
3413 2000-09-13  Jeff Johnston  <jjohnstn@redhat.com>
3414
3415         * libc/machine/v850/setjmp.S: Fixed tab problems caused by
3416         clipping patch from e-mail reader.
3417
3418 2000-09-13  Will Cohen  <wcohen@redhat.com>
3419
3420         * libc/machine/v850/setjmp.S (_setjmp): Save r1 rather than r0.
3421         Added return value 0.
3422         (_longjmp): Allow longjmp to return value of second argument
3423         passed to it.
3424
3425 2000-09-06  Jeff Johnston <jjohnstn@redhat.com>
3426
3427         * libc/include/sys/types.h (FD_ZERO): Remove call to bzero and
3428         inline code to prevent having to include another header file.
3429
3430 Wed Sep  6 15:06:40 2000  Christopher Faylor <cgf@cygnus.com>
3431
3432         * Makefile.am: Fix space vs. tab problem in install-data-local.
3433         * Makefile.in: Regenerate.
3434
3435 Wed Sep  6 13:49:51 2000  Christopher Faylor <cgf@cygnus.com>
3436
3437         * libc/include/_ansi.h (_EXFUN): Define specially for __CYGWIN__.
3438         (_EXPARM): New macro for defining a function parameter.
3439         * libc/include/stdlib.h: Use _EXPARM.
3440         * libc/stdlib/mallocr.c: Don't build cfree for Cygwin.
3441
3442 2000-09-05  Manfred Hollstein  <manfredh@redhat.com>
3443
3444         * Makefile.am (install-data-local): Use optional $(DESTDIR) where
3445         required, as documented in the gnu coding standards.
3446         * Makefile.in: Regenerate.
3447
3448 2000-09-05  Jeff Johnston <jjohnstn@redhat.com>
3449
3450         * libc/include/fcntl.h (_FNDELAY): Changed to be _FNONBLOCK to
3451         make O_NDELAY and O_NONBLOCK have the same value.
3452
3453 2000-08-30  Kazu Hirata  <kazu@hxi.com>
3454
3455         * libc/sys/h8300hms/crt0.S: Optimize for both speed and code size.
3456
3457 2000-08-30  Werner Almesberger  <Werner.Almesberger@epfl.ch>
3458
3459         * libc/posix/execve.c: included unistd.h for "_execve" prototype.
3460         * libc/misc/unctrl.c libc/sys/sysvi386/crt0.c (sccsid): changed
3461         "#ifndef lint" to "#if defined(LIBC_SCCS) && !defined(lint)" like
3462         everywhere else.
3463
3464 2000-08-30  Geoffrey Keating  <geoffk@cygnus.com>
3465
3466         * libc/string/swab.c: Specify that it's defined in <unistd.h>.
3467         * libc/include/string.h: Don't include <sys/types.h>,
3468         as it causes really bad namespace pollution.  Don't declare
3469         swab(), it is properly declared in unistd.h.
3470
3471 2000-08-29  Werner Almesberger  <Werner.Almesberger@epfl.ch>
3472
3473         * libc/unix/getpwent.c (getpwnam, getpwuid, getpwent): removed
3474         (broken) support for non-existent /etc/passwd field "comment".
3475
3476 2000-08-27  Werner Almesberger  <Werner.Almesberger@epfl.ch>
3477
3478         * libc/posix/scandir.c (DIRSIZ, scandir): use struct dirent.d_namlen
3479         only if _DIRENT_HAVE_D_NAMLEN is defined.
3480         (alphasort): aligned prototype with
3481         libc/sys/cygwin/sys/dirent.h and simplified function body.
3482         * libc/posix/telldir.c (telldir): changed "telldir" prototype to
3483         long telldir (DIR *) as mentioned in annex B of POSIX.1
3484
3485 2000-08-27  Werner Almesberger  <Werner.Almesberger@epfl.ch>
3486
3487         * libc/machine/i386/i386mach.h: added SOTYPE_FUNCTION to set type
3488         of global entry points if _I386MACH_NEED_SOTYPE_FUNCTION is defined;
3489         Added __CLI and __STI macros (controlled via
3490         _I386MACH_ALLOW_HW_INTERRUPTS macro).
3491         * libc/machine/i386/f_atan2.S libc/machine/i386/f_atan2f.S
3492         libc/machine/i386/f_frexp.S libc/machine/i386/f_frexpf.S
3493         libc/machine/i386/f_ldexp.S libc/machine/i386/f_ldexpf.S
3494         libc/machine/i386/f_log.S libc/machine/i386/f_log10.S
3495         libc/machine/i386/f_log10f.S libc/machine/i386/f_logf.S
3496         libc/machine/i386/f_tan.S libc/machine/i386/f_tanf.S
3497         libc/machine/i386/memchr.S libc/machine/i386/memcmp.S
3498         libc/machine/i386/memcpy.S libc/machine/i386/memmove.S
3499         libc/machine/i386/memset.S libc/machine/i386/setjmp.S
3500         libc/machine/i386/strchr.S libc/machine/i386/strlen.S:
3501         (that's libc/machine/i386/*.S) added SOTYPE_FUNCTION(symbol)
3502         for all global entry points.
3503         * libc/machine/i386/setjmp.S: removed code replicated in
3504         libc/machine/i386/i386mach.h and included i386mach.h instead;
3505         Use __CLI and __STI instead of cli and sti.
3506
3507 2000-08-25  DJ Delorie  <dj@redhat.com>
3508
3509         * libc/include/sys/unistd.h (environ): this one isn't from the
3510         DLL, no __IMPORT
3511
3512 Fri Aug 25 13:37:11 2000  Christopher Faylor <cgf@cygnus.com>
3513
3514         * libc/stdlib/system.c (do_system): Eliminate explicit declaration of
3515         environ when compiling under cygwin since it is already declared in
3516         unistd.h.
3517
3518 2000-08-23  Werner Almesberger  <Werner.Almesberger@epfl.ch>
3519
3520         * libc/stdlib/mprec.c (ulp, b2d, d2b): changed a few expressions
3521         like  x << y-z  to the equivalent  x << (y-z).
3522         (d2b): changed if statements with assignment to perform the
3523         assignment prior to the if check.
3524         * libc/reent/reent.c: included stdlib.h for "_free_r" prototype.
3525         * libc/unix/getpass.c (getpass): moved "echo" assignment out of if.
3526         * libc/unix/ttyname.c: included string.h for "strcpy" prototype.
3527         * libc/unix/getcwd.c (ISDOT): added parentheses to clarify && and ||
3528         precedence.
3529         * libc/include/sys/unistd.h: added "vfork" prototype (for popen.c).
3530         Added "_execve" prototype (for execl.c, execle.c, execv.c, and 
3531         execve.c).
3532         * libc/posix/popen.c (popen): added parentheses to clarify && and ||
3533         precedence.
3534         * libm/math/e_cosh.c (__ieee754_cosh): changed parentheses to
3535         clarify && and || precendence (and to remove pascalism).
3536         * libm/math/e_sinh.c (__ieee754_sinh): Ditto.
3537         * libm/math/s_infconst.c: added another pair of braces to all
3538         initializers for __infinity (need three: for __infinity[1] array,
3539         for union __dmath, and for i[2]).
3540
3541 2000-08-23  Werner Almesberger  <Werner.Almesberger@epfl.ch>
3542
3543         * libc/stdlib/abort.c: changed description: uses "raise" instead of
3544         "getpid" and "kill"; added: uses "write" and "_exit".
3545         Also included unistd.h for "_exit" prototype.
3546         * libc/stdlib/system.c: included unistd.h for "execve" prototype,
3547         reent.h for "_fork_r" and "_wait_r" prototypes.
3548         (do_system): changed  extern char *environ[] to POSIX-friendly 
3549         extern char **environ.
3550         * libc/stdlib/wctomb_r.c: included string.h for "strlen" and "strcmp"
3551         prototypes.
3552         * libc/stdlib/remove.c: included reent.h for "_unlink_r" prototype.
3553         * libc/reent/execr.c: included sys/wait.h for "wait" prototype.
3554         * libc/reent/fstatr.c: included sys/stat.h for "fstat" prototype.
3555         * libc/reent/openr.c: included fcntl.h for "open" prototype.
3556         * libc/reent/signalr.c: included signal.h for "kill" prototype,
3557         unistd.h for "getpid" prototype.
3558         * libc/reent/statr.c: included sys/stat.h for "stat" prototype.
3559         * libc/reent/timer.c: included sys/time.h for "gettimeofday" prototype.
3560         * libc/unix/getut.c (utmpname): removed local, incorrect "strdup"
3561         prototype.  Also included stdlib.h for "abort", string.h for
3562         "strdup" and "strncmp" prototypes.
3563         * libc/unix/getlogin.c: included string.h for "strncmp", "memset", and
3564         "strncpy", unistd.h for "read" and "close" prototypes.
3565         * libc/posix/execvp.c: included string.h for "strchr", "strlen", and
3566         "strcat" prototypes.
3567
3568 2000-08-23  Werner Almesberger  <Wernen Almesberger@epfl.ch>
3569
3570         * libc/stdio/stdio.c (__swrite): declare "oldmode" only if it's
3571         used later (ifdef __SCLE)
3572         * libc/stdio/vfscanf.c (__svfscanf): declare "state" only if it's
3573         used later (ifdef MB_CAPABLE)
3574         * libc/string/memset.c (memset): removed unused variables "count"
3575         and "unaligned_addr"
3576         * libc/locale/locale.c (_setlocale_r): declare "lc_ctype" and
3577         "last_lc_ctype" only of they're used later (ifdef MB_CAPABLE)
3578         * libc/unix/getpwent.c (getpwnam): removed unused variables "uid"
3579         and "gid"
3580
3581 2000-08-23  Werner Almesberger  <Werner.Almesberger@epfl.ch>
3582
3583         * libc/stdlib/envlock.c: changed documented "__env_lock" and
3584         "__env_unlock" prototype from "void *" or "char *" to
3585         "struct _reent *" to match real function.  Also added include
3586         of envlock.h.
3587         * libc/stdlib/mlock.c: changed documented "__malloc_lock" and
3588         "__malloc_unlock" prototype from "void *" or "char *" to
3589         "struct _reent *" to match real function.
3590         * libc/stdlib/envlock.h: added "__env_lock" and "__env_unlock"
3591         prototypes (for getenv_r.c and setenv_r.c).
3592
3593 2000-08-22  Werner Almesberger  <Werner.Almesberger@epfl.ch>
3594
3595         * libc/unix/getut.c (utmpname): added _CONST to reflect common use
3596         and prototype in cygwin's utmp.h
3597
3598 2000-08-16  Eric Fifer  <efifer@sanwaint.com>
3599
3600         * libc/stdio/vfprintf.c (_vfprintf_r): suppress . with "%.0f", 0.1
3601
3602 2000-08-09  Nick Clifton  <nickc@cygnus.com>
3603
3604         * libc/sys/arm/setjmp.S: Recode to clean up function prologues and
3605         epilogue and to allow the functions to be used in a Thumb based
3606         toolchain.
3607
3608 2000-08-08  Jeff Johnston <jjohnstn@redhat.com>
3609
3610         * libc/stdio/snprintf.c (snprintf, _snprintf_r): Fixed code
3611         so size of 0 results in nothing being written to string.
3612         Also fixed code so that when size is non-zero, there is only
3613         a maximum of size - 1 characters written to the array and
3614         a nul terminator is appended at the end.
3615         * libc/stdio/vsnprintf.c (vsnprintf, _vsnprintf_r): Ditto.
3616
3617 2000-08-01  DJ Delorie  <dj@redhat.com>
3618
3619         * libc/include/sys/config.h: define __IMPORT appropriately
3620         * libc/include/ctype.h (_ctype_): use __IMPORT
3621         * libc/include/math.h (__infinity, signam, _LIB_VERSION): ditto
3622         * libc/include/math.h (__mb_cur_max): ditto
3623         * libc/include/time.h (_timezone, _daylight, _tzname): ditto
3624         * libc/include/unctrl.h (__unctrl, __unctrllen): ditto
3625         * libc/include/errno.h (_sys_errlist, _sys_nerr): ditto
3626         * libc/include/unistd.h (environ): ditto
3627
3628 2000-07-28  Michael Meissner  <meissner@redhat.com>
3629
3630         * libc/include/math.h (__infinity): Declare as an array without
3631         bounds to get around small data support.  Rewrite Cygwin support
3632         to be more general.
3633         * libm/math/s_infconst.c (__infinity): Ditto.
3634         * libm/mathfp/s_infconst.c (__infinity): Ditto.
3635
3636 Thu Jul 27 10:46:01 2000  Christopher Faylor <cgf@cygnus.com>
3637
3638         * libc/include/math.h: Use appropriate dll import linkage for
3639         __infinity under Cygwin.
3640
3641 2000-07-13  DJ Delorie  <dj@cygnus.com>
3642
3643         * libc/stdio/vfprintf.c: pad 0.0 correctly with %e
3644
3645 Wed Jun 28 14:08:00 2000  Keith Walker  <keith.walker@arm.com>
3646
3647         * libc/sys/arm/crt0.S (.LC30): Added missing length parameter
3648         to argument list for AngelSWI_Reason_GetCmdLine.
3649
3650 Tue Jun 27 15:49:00 2000  Marek Michalkiewicz  <marekm@linux.org.pl>
3651
3652         * configure.host: Add support for AVR target.
3653         * libc/include/machine/ieeefp.h: Likewise.
3654         * libc/include/sys/config.h: Likewise.
3655
3656 Thu Jun 22 18:35:00 2000  Ranjith Kumaran  <ranjith@cygnus.com>
3657
3658         * README: Newlib 1.8.2 must be built in a separate directory
3659         than the sources.
3660
3661 Tue Jun 20 14:30:00 2000  Jeff Johnston  <jjohnstn@cygnus.com>
3662
3663         * libc/include/sys/reent.h (_rand_next): Added __extension__
3664         qualifier as long long type is not strict ANSI.
3665         * libc/stdlib/rand.c (rand): Added __extension__ qualifier
3666         to long long constant.
3667
3668 Fri Jun 16 23:02:00 2000  Corinna Vinschen <corinna@vinschen.de>
3669
3670         * libc/include/sys/unistd.h: Add prototypes for `seteuid' and
3671         `setegid' provided by Cygwin.
3672
3673 Thu Jun 15  0:21:00 2000  Corinna Vinschen <corinna@vinschen.de>
3674
3675         * libc/stdio/fdopen.c: Take explicit given bin/textmode into
3676         account for Cygwin.
3677
3678 Fri Jun  9 14:28:00 2000  Jeff Johnston  <jjohnstn@cygnus.com>
3679
3680         * libc/include/sys/reent.h (_rand_next): Changed to
3681         unsigned long long and moved to end of _reent struct in _new union.
3682         (_REENT_INIT): Changed to move _rand_next initialization.
3683         * libc/stdlib/rand.c (rand): Changed to use unsigned long long
3684         linear congruential algorithm that is used by DJGPP.
3685
3686 Thu Jun  8 21:18:00 2000  Ranjith Kumaran  <ranjith@cygnus.com>
3687
3688         * libc/include/stdlib.h: Set RAND_MAX to __RAND_MAX.
3689         * libc/include/sys/config.h: Define __RAND_MAX.
3690
3691 Thu Jun  8 17:54:00 2000  Jeff Johnston  <jjohnstn@cygnus.com>
3692
3693         * libc/stdlib/rand_r.c: New algorithm that meets minimal
3694         standard.
3695
3696 Fri Jun  2 23:02:11 2000  Christopher Faylor <cgf@cygnus.com>
3697
3698         * libc/include/string.h: Work around problem with strsignal and gdb.
3699
3700 Tue May 30 13:13:01 2000  Christopher Faylor <cgf@cygnus.com>
3701
3702         * libc/include/ctype.h: __CYGWIN32__ -> __CYGWIN__
3703         * libc/include/malloc.h: Ditto.
3704         * libc/include/process.h: Ditto.
3705         * libc/include/stdio.h: Ditto.
3706         * libc/include/stdlib.h: Ditto.
3707         * libc/include/time.h: Ditto.
3708         * libc/include/machine/setjmp.h: Ditto.
3709         * libc/include/sys/errno.h: Ditto.
3710         * libc/include/sys/signal.h: Ditto.
3711         * libc/include/sys/stat.h: Ditto.
3712         * libc/include/sys/time.h: Ditto.
3713         * libc/include/sys/unistd.h: Ditto.
3714         * libc/include/string.h: Ditto.  strsignal should return a const char *.
3715
3716 2000-05-26  Marek Michalkiewicz  <marekm@linux.org.pl>
3717
3718         * libm/common/s_expm1.c (expm1): Add curly braces, avoid warnings.
3719         * libm/common/s_log1p.c (log1p): Likewise.
3720         * libm/common/s_scalbn.c (scalbn): Likewise.
3721         * libm/math/e_log.c: Likewise.
3722         * libm/math/e_asin.c: Likewise.
3723         * libm/math/ef_asin.c: Likewise.
3724         * libm/math/e_j0.c (pzero, qzero): Remove redundant test.
3725         * libm/math/e_j1.c (pone, qone): Likewise.
3726         * libm/math/ef_j0.c (pzerof, qzerof): Likewise.
3727         * libm/math/ef_j1.c (ponef, qonef): Likewise.
3728         * libm/mathfp/e_j0.c (pzero, qzero): Likewise.
3729         * libm/mathfp/e_j1.c (pone, qone): Likewise.
3730         * libm/mathfp/ef_j0.c (pzerof, qzerof): Likewise.
3731         * libm/mathfp/ef_j1.c (ponef, qonef): Likewise.
3732
3733 2000-05-19  DJ Delorie  <dj@cygnus.com>
3734
3735         * libc/stdio/stdio.c (__stextmode): new, see if file is text mode
3736         (__sread): always read in binary mode
3737         (__swrite): always write in binary mode
3738         * libc/include/stdio.h: no getc/putc macros for cygwin; causes
3739         compatibility issues with different dll versions
3740         * libc/stdio/fopen.c: use __stextmode
3741         * libc/stdio/fdopen.c: ditto
3742         * libc/stdio/freopen.c: ditto
3743         * libc/stdio/findfp.c: set up __SCLE for std{in,out,err}
3744         * libc/stdio/local.h: declare __stextmode
3745         
3746 2000-05-18  DJ Delorie  <dj@cygnus.com>
3747
3748         * libc/stdio/fgets.c (fgets): perform CRLF conversions if __SCLE
3749         
3750 Mon May 15 18:54:00 2000  Jeff Johnston  <jjohnstn@cygnus.com>
3751
3752         * libc/include/ctype.h: Changed tolower and toupper macros
3753         to use __extension__ to prevent pedantic warnings.
3754
3755 Mon May 15 14:26:00 2000  Joel Sherrill  <joel@oarcorp.com>
3756
3757         * libc/sys/rtems/sys/time.h: Add macros for manipulating timeval
3758         structures.
3759
3760 Wed May 10 19:24:53 2000  Jim Wilson  <wilson@cygnus.com>
3761
3762         * libc/include/machine/ieeefp.h: Add ia64 support.
3763         * configure.host: Likewise.
3764
3765 Wed May 10 13:52:24 2000  Egor Duda <deo@logos-m.ru>
3766
3767         * libc/time/asctime_r.c (asctime_r): Change output format. Day of
3768         month is now padded with space, not zero.  This now conforms to
3769         ANSI standard.
3770
3771 Wed May 03 17:57:00 2000  Corinna Vinschen <corinna@vinschen.de>
3772
3773         * libc/include/sys/errno.h: Add define for ENOSHARE ("No such
3774         host or network path") used by cygwin. Add some comments.
3775
3776 Tue May 02 23:45:48 2000  DJ Delorie  <dj@cygnus.com>
3777
3778         * libc/include/stdio.h (FILE): define __SCLE for "convert line
3779         endings" for Cygwin.
3780         (__sgetc): convert line endings if needed
3781         (__sputc): ditto
3782         * libc/stdio/fdopen.c (_fdopen_r): Remember if we opened in text mode
3783         * libc/stdio/fopen.c (_fopen_r): ditto
3784         * libc/stdio/freopen.c (freopen): ditto
3785         * libc/stdio/fread.c (fread): perform CRLF conversions if __SCLE
3786         * libc/stdio/fvwrite.c (__sfvwrite): ditto
3787
3788 Thu Apr 27 07:45:48 2000  Alexandre Oliva  <aoliva@cygnus.com>
3789
3790         * libc/machine/mn10300/setjmp.S (setjmp, longjmp): Use
3791         post-increment when it is worth it, spacewise.
3792
3793 Mon Apr 17 12:46:00 2000  Marek Michalkiewicz <marekm@linux.org.pl>
3794
3795         * libc/signal/signal.c (_signal_r) : Removed unused local variable temp.
3796         * libc/stdio/findfp.c (std): Added declaration of flags and file.
3797         * libc/stdio/mktemp.c (_gettemp, _mkstemp_r, mkstemp): Added int 
3798         return type.
3799         * libc/stdio/putchar.c (putchar): Added return statement.
3800         * libc/stdio/refill.c (lflush): Added correct parentheses.
3801         * libc/stdio/vfprintf.c (_VFPRINTF_R): Ditto.
3802         * libc/stdio/vfscanf.c (__svfscanf): Changed sprintf call which 
3803         prints long value to use l qualifier.
3804         * libc/stdlib/dtoa.c (_dtoa_r): Added parentheses to remove warning
3805         messages and initialized local values: ilim, ilim1, and spec_case.
3806         * libc/stdlib/ecvtbuf.c (print_e): Removed unused variable dp.
3807         * libc/stdlib/mbctype.h (_issjis1, _issjis2): Added parentheses.
3808         * libc/stdlib/mprec.c: Ditto.
3809         * libc/stdlib/setenv_r.c: Ditto.
3810         * libc/stdlib/strtod.c: Ditto.
3811         * libc/stdlib/strtol.c: Ditto.
3812         * libc/stdlib/strtoul.c: Ditto.
3813         * libm/common/sf_expm1.c: Added curly braces to if else clauses.
3814         * libm/common/sf_log1p.c: Ditto.
3815         * libm/common/sf_scalbn.c: Ditto.
3816         * libm/math/ef_log.c: Ditto.
3817
3818 Sun Apr 16 12:45:00 2000  Corinna Vinschen <corinna@vinschen.de>
3819
3820         * libc/posix/execvp.c (execvp): Check path for
3821         trailing slash.
3822
3823 Fri Mar 31 20:39:00 2000  Corinna Vinschen <corinna@vinschen.de>
3824
3825         * libc/include/sys/unistd.h: Add prototypes for
3826         fchmod, fchown, lchown.
3827
3828 Fri Mar 24 15:34:00 2000  Jeff Johnston  <jjohnstn@cygnus.com>
3829
3830         * acinclude.m4: Changed release to 1.8.2.
3831         * aclocal.m4 configure doc/aclocal.m4 doc/configure
3832           libc/aclocal.m4 libc/configure libc/machine/aclocal.m4
3833           libc/machine/configure libc/machine/a29k/aclocal.m4
3834           libc/machine/a29k/configure libc/machine/arm/aclocal.m4
3835           libc/machine/arm/configure libc/machine/d10v/aclocal.m4
3836           libc/machine/d10v/configure libc/machine/d30v/aclocal.m4
3837           libc/machine/d30v/configure libc/machine/fr30/aclocal.m4
3838           libc/machine/fr30/configure libc/machine/h8300/aclocal.m4
3839           libc/machine/h8300/configure libc/machine/h8500/aclocal.m4
3840           libc/machine/h8500/configure libc/machine/hppa/aclocal.m4
3841           libc/machine/hppa/configure libc/machine/i386/aclocal.m4
3842           libc/machine/i386/configure libc/machine/i960/aclocal.m4
3843           libc/machine/i960/configure libc/machine/m32r/aclocal.m4
3844           libc/machine/m32r/configure libc/machine/m68k/aclocal.m4
3845           libc/machine/m68k/configure libc/machine/m88k/aclocal.m4
3846           libc/machine/m88k/configure libc/machine/mips/aclocal.m4
3847           libc/machine/mips/configure libc/machine/mn10200/aclocal.m4
3848           libc/machine/mn10200/configure libc/machine/mn10300/aclocal.m4
3849           libc/machine/mn10300/configure libc/machine/necv70/aclocal.m4
3850           libc/machine/necv70/configure libc/machine/powerpc/aclocal.m4
3851           libc/machine/powerpc/configure libc/machine/sh/aclocal.m4
3852           libc/machine/sh/configure libc/machine/sparc/aclocal.m4
3853           libc/machine/sparc/configure libc/machine/tic80/aclocal.m4
3854           libc/machine/tic80/configure libc/machine/v850/aclocal.m4
3855           libc/machine/v850/configure libc/machine/w65/aclocal.m4
3856           libc/machine/w65/configure libc/machine/z8k/aclocal.m4
3857           libc/machine/z8k/configure libc/sys/aclocal.m4
3858           libc/sys/aclocal.m4 libc/sys/configure
3859           libc/sys/a29khif/aclocal.m4 libc/sys/a29khif/configure
3860           libc/sys/arm/aclocal.m4 libc/sys/arm/configure
3861           libc/sys/cygwin/aclocal.m4 libc/sys/cygwin/configure
3862           libc/sys/d10v/aclocal.m4 libc/sys/d10v/configure
3863           libc/sys/decstation/aclocal.m4 libc/sys/decstation/configure
3864           libc/sys/go32/aclocal.m4 libc/sys/go32/configure
3865           libc/sys/h8300hms/aclocal.m4 libc/sys/h8300hms/configure
3866           libc/sys/h8500hms/aclocal.m4 libc/sys/h8500hms/configure
3867           libc/sys/m88kbug/aclocal.m4 libc/sys/m88kbug/configure
3868           libc/sys/netware/aclocal.m4 libc/sys/netware/configure
3869           libc/sys/rtems/aclocal.m4 libc/sys/rtems/configure
3870           libc/sys/sh/aclocal.m4 libc/sys/sh/configure
3871           libc/sys/sparc64/aclocal.m4 libc/sys/sparc64/configure
3872           libc/sys/sun4/aclocal.m4 libc/sys/sun4/configure
3873           libc/sys/sysmec/aclocal.m4 libc/sys/sysmec/configure
3874           libc/sys/sysnec810/aclocal.m4 libc/sys/sysnec810/configure
3875           libc/sys/sysnecv850/aclocal.m4 libc/sys/sysnecv850/configure
3876           libc/sys/sysvi386/aclocal.m4 libc/sys/sysvi386/configure
3877           libc/sys/sysvnecv70/aclocal.m4 libc/sys/sysvnecv70/configure
3878           libc/sys/tic80/aclocal.m4 libc/sys/tic80/configure
3879           libc/sys/w65/aclocal.m4 libc/sys/w65/configure
3880           libc/sys/z8ksim/aclocal.m4 libc/sys/z8ksim/configure
3881           libm/aclocal.m4 libm/configure: Regenerated.
3882
3883 2000-03-24  Nick Clifton  <nickc@cygnus.com>
3884
3885         * libc/sys/arm/syscalls.c: Fix compile time warnings.
3886         (do_AngelSWI): Add "cc" to list o registers clobbered.
3887
3888 Thu Mar 22 14:57:00 2000  Fernando Nasser <fnasser@redhat.com>
3889
3890         * libc/sys/arm/syscalls.c (do_AngelSWI): Prevent registers with valid
3891         information to be clobbered by an Angel C library support syscall. 
3892
3893 Tue Mar 21 19:08:00 2000  Jeff Johnston <jjohnstn@cygnus.com>
3894
3895         * libc/stdlib/envlock.c: Fixed comment typo.
3896
3897 Fri Mar 17 15:37:00 2000  Jeff Johnston <jjohnstn@cygnus.com>
3898
3899         * libc/stdio/vfscanf.c (__svfscanf): Fixed floating point
3900         code to update nread as each character is processed instead
3901         of using buffer contents which throw away leading zeroes.
3902
3903 Mon Mar 13 15:22:00 2000  Sergei Organov <osv@javad.ru>
3904
3905         * libm/mathfp/sf_sqrt.c: Change _DOUBLE_IS_32BITS sqrt call to sqrtf.
3906
3907 Fri Mar 10 16:09:20 2000  Jeff Johnston <jjohnstn@cygnus.com>
3908
3909         * libc/include/string.h: Include <sys/types.h>.
3910
3911 Fri Mar 10 14:53:50 2000  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
3912
3913         * libc/stdio/putw.c (putw): Return 0 on success, to be compliant
3914         with XSH5, not SVID.
3915
3916 Thu Mar  9 17:20:41 2000  Jeff Johnston <jjohnstn@cygnus.com>
3917
3918         * libc/include/string.h: Changed last argument back to ssize_t
3919         to make it compatible with XPG4 definition which is 
3920         defined in <unistd.h>.  There is a conflict in the SVID 3
3921         and XPG4 definitions and newlib will settle with XPG4.
3922         * libc/string/swab.c: Ditto.
3923
3924 Wed Mar  8 17:11:41 2000  Jeff Johnston <jjohnstn@cygnus.com>
3925
3926         * libc/include/string.h: Changed last argument to size_t.
3927         * libc/string/swab.c: Changed last argument to size_t.
3928
3929 Wed Mar  8 00:46:41 2000  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
3930
3931         * libc/reent/Makefile.am (lib_a_SOURCES): Added unlinkr.c.
3932         (CHEWOUT_FILES): Added unlinkr.def.
3933         * libc/reent/Makefile.in: Rebuilt.
3934         * libc/sys.tex: Include unlinkr.def.
3935         * libc/reent/linkr.c (_unlink_r): Moved to...
3936         * libc/reent/unlinkr.c: ... new file.
3937
3938 Wed Mar  8 00:43:07 2000  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
3939
3940         * libc/string/Makefile.am (lib_a_SOURCES): Added swab.c.
3941         (CHEWOUT_FILES): Added swab.def.
3942         * libc/string/Makefile.in: Rebuilt.
3943         * libc/string/string.tex: Include swab.def.
3944         * libc/include/string.h (swab): Declare.
3945         * libc/string/swab.c: New file.
3946
3947 Wed Mar  8 00:38:35 2000  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
3948
3949         * libc/stdio/Makefile.am (lib_a_SOURCES): Added getw.c and putw.c.
3950         (CHEWOUT_FILES): Added getw.def and putw.def.
3951         * libc/stdio/Makefile.in: Rebuilt.
3952         * libc/stdio/stdio.tex: Include getw.def and putw.def.
3953         * libc/stdio/getw.c: New file.
3954         * libc/stdio/putw.c: New file.
3955
3956 Fri Feb 25 14:50:50 2000  Jeff Johnston <jjohnstn@cygnus.com>
3957
3958         * libc/stdio/flags.c (__sflags): Added check that mode[1]
3959         is non-null before looking at mode[2].
3960
3961 Thu Feb 24 11:43:00 2000  Ran Cabell <rcabell@norfolk.infi.net>
3962
3963         * libm/mathfp/sf_atan2.c: Fix atan2 typo for _DOUBLE_IS_32_BITS.
3964         * libm/mathfp/sf_atan.c: Ditto.
3965
3966 Thu Feb 24 11:39:00 2000  Joel Sherrill <joel@OARcorp.com>
3967
3968         * libc/include/sys/stat.h: Add RTEMS prototype for lstat.
3969
3970 Tue Feb 22 14:37:00 2000  Ran Cabell <rcabell@norfolk.infi.net>
3971
3972         * libm/mathfp/sf_exp.c: Corrected _DOUBLE_IS_32_BITS to be
3973         _DOUBLE_IS_32BITS.
3974
3975 Mon Feb 21 11:43:50 2000  Jeff Johnston <jjohnstn@cygnus.com>
3976
3977         * libc/stdio/vfprintf.c (VFPRINTF): Added CHECK_INIT
3978         call prior to calling _VFPRINTF_R so reentrant data area is set.
3979         (_VFPRINTF_R): Removed now extraneous CHECK_INIT call.
3980
3981 Thu Feb 17 01:42:50 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
3982
3983         * libc/stdio/vfscanf.c (limits.h): #include.
3984         (MAX_LONG_LEN): #define.
3985         (__svfscanf): Handle floating point numbers with arbitrary amounts
3986         of leading zeroes.
3987
3988 2000-02-15  Nick Clifton  <nickc@cygnus.com>
3989
3990         * libc/sys/arm/syscalls.c (_fstat): Initialise all fields to
3991         zero.  Set the blocksize to 1024/
3992
3993 Thu Jan 20 18:57:00 2000  Fernando Nasser <fnasser@redhat.com>
3994
3995         * setvbuf.c (setvbuf):  Set size to BUFSIZ when passed a zero size
3996         with line buffering.
3997
3998 Mon Jan 10 18:43:00 2000  Jeff Johnston <jjohnstn@cygnus.com>
3999
4000         * acinclude.m4: Changed include directory for winsup headers. 
4001         * aclocal.m4 configure libc/aclocal.m4
4002           libc/configure libc/ctype/Makefile.in libc/errno/Makefile.in
4003           libc/locale/Makefile.in libc/machine/aclocal.m4
4004           libc/machine/configure libc/machine/a29k/aclocal.m4
4005           libc/machine/a29k/configure libc/machine/arm/aclocal.m4
4006           libc/machine/arm/configure libc/machine/d10v/aclocal.m4
4007           libc/machine/d10v/configure libc/machine/d30v/aclocal.m4
4008           libc/machine/d30v/configure libc/machine/fr30/aclocal.m4
4009           libc/machine/fr30/configure
4010           libc/machine/h8300/aclocal.m4
4011           libc/machine/h8300/configure libc/machine/h8500/aclocal.m4
4012           libc/machine/h8500/configure libc/machine/hppa/aclocal.m4
4013           libc/machine/hppa/configure libc/machine/i386/aclocal.m4
4014           libc/machine/i386/configure libc/machine/i960/aclocal.m4
4015           libc/machine/i960/configure libc/machine/m32r/aclocal.m4
4016           libc/machine/m32r/configure libc/machine/m68k/aclocal.m4
4017           libc/machine/m68k/configure libc/machine/m88k/aclocal.m4
4018           libc/machine/m88k/configure libc/machine/mips/aclocal.m4
4019           libc/machine/mips/configure libc/machine/mn10200/aclocal.m4
4020           libc/machine/mn10200/configure libc/machine/mn10300/aclocal.m4
4021           libc/machine/mn10300/configure libc/machine/necv70/aclocal.m4
4022           libc/machine/necv70/configure libc/machine/powerpc/aclocal.m4
4023           libc/machine/powerpc/configure 
4024           libc/machine/sh/aclocal.m4
4025           libc/machine/sh/configure libc/machine/sparc/aclocal.m4
4026           libc/machine/sparc/configure
4027           libc/machine/tic80/aclocal.m4 libc/machine/tic80/configure
4028           libc/machine/v850/aclocal.m4 libc/machine/v850/configure
4029           libc/machine/w65/aclocal.m4 libc/machine/w65/configure
4030           libc/machine/z8k/aclocal.m4 libc/machine/z8k/configure
4031           libc/misc/Makefile.in libc/posix/Makefile.in
4032           libc/reent/Makefile.in 
4033           libc/signal/Makefile.in
4034           libc/string/Makefile.in libc/sys/aclocal.m4 libc/sys/configure
4035           libc/sys/a29khif/aclocal.m4 libc/sys/a29khif/configure
4036           libc/sys/arm/Makefile.in libc/sys/arm/aclocal.m4
4037           libc/sys/arm/configure libc/sys/cygwin/aclocal.m4
4038           libc/sys/cygwin/configure libc/sys/d10v/Makefile.in
4039           libc/sys/d10v/aclocal.m4 libc/sys/d10v/configure
4040           libc/sys/decstation/aclocal.m4 libc/sys/decstation/configure
4041           libc/sys/go32/aclocal.m4 libc/sys/go32/configure
4042           libc/sys/h8300hms/aclocal.m4 libc/sys/h8300hms/configure
4043           libc/sys/h8500hms/aclocal.m4 libc/sys/h8500hms/configure
4044           libc/sys/m88kbug/aclocal.m4 libc/sys/m88kbug/configure
4045           libc/sys/netware/aclocal.m4 libc/sys/netware/configure
4046           libc/sys/rtems/aclocal.m4 libc/sys/rtems/configure
4047           libc/sys/sh/Makefile.in libc/sys/sh/aclocal.m4
4048           libc/sys/sh/configure libc/sys/sparc64/aclocal.m4
4049           libc/sys/sparc64/configure libc/sys/sun4/aclocal.m4
4050           libc/sys/sun4/configure libc/sys/sysmec/aclocal.m4
4051           libc/sys/sysmec/configure libc/sys/sysnec810/aclocal.m4
4052           libc/sys/sysnec810/configure libc/sys/sysnecv850/aclocal.m4
4053           libc/sys/sysnecv850/configure libc/sys/sysvi386/aclocal.m4
4054           libc/sys/sysvi386/configure libc/sys/sysvnecv70/aclocal.m4
4055           libc/sys/sysvnecv70/configure libc/sys/tic80/aclocal.m4
4056           libc/sys/tic80/configure libc/sys/w65/aclocal.m4
4057           libc/sys/w65/configure libc/sys/z8ksim/aclocal.m4
4058           libc/sys/z8ksim/configure libc/syscalls/Makefile.in
4059           libc/time/Makefile.in libc/unix/Makefile.in libm/aclocal.m4
4060           libm/configure: Regenerated.
4061
4062 Mon Jan 10 18:43:46 2000  Jeff Johnston <jjohnstn@cygnus.com>
4063
4064         * libc/stdlib/putenv_r.c (_putenv_r): New file.
4065         * libc/stdlib/strdup_r.c (_strdup_r): New file.
4066         * libc/include/string.h: Added _strdup_r.
4067         * libc/stdlib/putenv.c: Added call to reentrant version. 
4068         * libc/stdlib/strdup.c: Ditto.
4069         * libc/stdlib/Makefile.am: Added _putenv_r and _unsetenv_r.
4070         * libc/include/stdlib.h: Ditto.
4071         * libc/stdlib/Makefile.in: Regenerated. 
4072         * libc/string/Makefile.in: Regenerated.
4073         * libc/stdlib/setenv.c: Added reentrant version of unsetenv.
4074         * libc/stdlib/setenv_r.c: Added unsetenv_r and changed memory
4075         management calls to reentrant versions.
4076         * libc/stdlib/wcstombs.c: Added #ifndef _REENT_ONLY wrapper.
4077         * libc/stdlib/wctomb.c: Ditto.
4078         * libc/stdlib/mblen.c: Ditto.
4079         * libc/stdlib/mbstowcs.c: Ditto.
4080         * libc/stdlib/mbtowc.c: Ditto. 
4081         * libc/stdlib/getenv.c: Ditto.
4082         * libc/reent/reent.tex: Added references to _putenv_r, _setenv_r,
4083         and _strdup_r.
4084
4085 Thu Jan  6 15:33:46 2000  Christopher Faylor <cgf@cygnus.com>
4086
4087         patch from Corinna Vinschen <corinna@vinschen.de>
4088         * libc/sys/cygwin/sys/param.h: Define NGROUP_MAX as 16.
4089
4090 Mon Jan 03 14:36:00 2000  Sergei Organov <osv@javad.ru>
4091
4092         * libm/mathfp/s_atangent.c: Fix exponent calculation.
4093         * libm/mathfp/s_ldexp.c: Ditto.
4094         * libm/mathfp/sf_atangent.c: Ditto.
4095         * libm/mathfp/sf_ldexp.c: Ditto.
4096
4097 Tue Dec 14 5:42:00 1999  Ranjith Kumaran <ranjith@cygnus.com>
4098
4099         * libc/machine/i960/setjmp.S: fix typo leaving .link_pix uncommented
4100         * libc/include/locale.h: define NULL to be 0.
4101
4102 Tue Dec  7 15:41:45 1999  Jim Wilson  <wilson@cygnus.com>
4103
4104         * libc/sys/sh/syscalls.c (stack_ptr): Move definition before first
4105         function.
4106
4107 Wed Dec  1 17:39:29 1999  Jeffrey A Law  (law@cygnus.com)
4108
4109         * libc/machine/mn10300/setjmp.S: Handle am33.
4110
4111 1999-11-26  Nick Clifton  <nickc@cygnus.com>
4112
4113         * libc/sys/arm/syscalls.c: Add function prototypes.
4114         (stack_ptr): Move declaration before function definitions.
4115
4116 Sat Nov 20 17:13:00 1999  Ranjith Kumaran <ranjith@cygnus.com>
4117
4118         * NEWS: Updated version information.
4119         * README: Ditto.
4120
4121 Tue Nov 09 12:19:21 1999  Jeff Johnston <jjohnstn@cygnus.com>
4122
4123         * libc/machine/i386/strchr.S: Fixed alignment test.
4124
4125 Thu Oct 28 05:30:46 1999  Andrew Cagney  <cagney@makita.cygnus.com>
4126
4127         * libc/sys/d10v/crt0.S (_start): Construct a real stack frame.
4128
4129 Thu Oct 28 15:29:11 1999  Andrew Cagney  <cagney@b1.cygnus.com>
4130
4131         * libc/sys/d10v/crt0.S (_start): Initialize both SPI and SPU
4132         ensuring that there is space between the two.
4133
4134 Thu Oct 14 13:39:21 1999  Christopher Faylor <cgf@cygnus.com>
4135
4136         * libc/stdio/flags.c: Conditionalize check for 't' for cygwin case
4137         only.
4138
4139 1999-10-08  Vadim Egorov  <egorovv@1c.ru>
4140
4141         * libc/include/stdlib.h: add ptsname, grantpt, unlockpt to cygwin
4142         section
4143
4144 Sat Oct  2 02:02:00 MEST 1999  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
4145
4146         * libc/machine/sh/asm.h: Added __SH4_SINGLE__ to DELAYED_BRANCHES
4147         * libc/machine/sh/memcpy.S: Fix line wrapping in SL macro
4148
4149 Fri Oct  1 13:17:59 CDT 1999  <joel@OARcorp.com>
4150         * libc/include/grp.h: Added getgrnam_r and getgrgid_r prototypes
4151           per POSIX 1003.1b.
4152         * libc/include/pwd.h: Added getpwnam_r and getpwuid_r prototypes
4153           per POSIX 1003.1b.
4154
4155 1999-09-13  DJ Delorie  <dj@cygnus.com>
4156
4157         * libc/stdio/mktemp.c (_gettemp): on cygwin, check for EACCESS
4158         also.
4159
4160 Thu Sep  9 15:31:00 1999  Jeff Johnston <jjohnstn@cygnus.com>
4161
4162         * setvbuf.c (setvbuf):  When mallocing a buffer of size BUFSIZ,
4163         also note BUFSIZ as its size.
4164
4165 Tue Sep  7 17:15:00 1999  Joel Sherrill <joel@OARcorp.com>
4166
4167         * configure.host: Corrected feature defines for RTEMS.
4168         * libc/include/sys/stat.h: Added protototype for RTEMS mknod.
4169         * libc/include/sys/stat.h: mkfifo() should take const path arg.
4170         * libc/include/sys/unistd.h: pathconf() should take const path arg.
4171           Enabled usleep(), ftruncate(), and truncate() prototypes for RTEMS.
4172           Added defines for _POSIX_JOB_CONTROL, _POSIX_SAVED_IDS, and
4173           _POSIX_VERSION for RTEMS.  Added defines for _PC_ASYNC_IO,
4174           _PC_PRIO_IO, and _PC_SYNC_IO.
4175         * libc/machine/m68k/Makefile.am: Added strcpy.c and strlen.c.
4176         * libc/machine/m68k/Makefile.in: Regenerated.
4177         * libc/machine/m68k/strcpy.c: New file.
4178         * libc/machine/m68k/strlen.c: New file.
4179         * libc/stdio/tmpnam.c: Always make the returned name usable.
4180         * libc/sys/rtems/crt0.c: New version that passes all autoconf tests.
4181         * libc/sys/rtems/sys/dirent.h: New file.
4182         * libc/sys/rtems/sys/types.h: Added dev_t.
4183
4184 Tue Sep  7 17:15:00 1999   Jay Kulpinski <jskulpin@eng01.gdds.com>
4185
4186         * libc/stdlib/mprec.c: Fixed unitialized variable problem.
4187
4188 Fri Sep  3 12:35:20 1999  Jeff Johnston <jjohnstn@cygnus.com>
4189
4190         * libc/stdio/ftell.c (ftell): Backing off Joern's fix and
4191         my patch.
4192
4193 Thu Sep  2 22:05:20 1999  Christopher Faylor <cgf@cygnus.com>
4194
4195         patch from Jeff Johnston <jjohnstn@cygnus.com>
4196         * libc/stdio/ftell.c (ftell): Avoid using buffer position when the
4197         buffer is not in a useful state.
4198
4199 1999-09-01  Nick Clifton  <nickc@cygnus.com>
4200
4201         * libc/sys/arm/syscalls.c (_link): Add stub.
4202
4203 Fri Aug 27 23:09:09 1999  J"orn Rennecke <amylaar@cygnus.co.uk>
4204
4205         * ftell.c (ftell): Use actual position within buffer for text mode.
4206         * findfp.c (std): Initialize ptr->_bf._size.
4207
4208 Wed Aug 18 18:48:02 1999  Christopher Faylor <cgf@cygnus.com>
4209
4210         * libc/include/sys/unistd.h: Add nice() declaration.
4211
4212 1999-08-09  Nick Clifton  <nickc@cygnus.com>
4213
4214         * libc/sys/arm/crt0.S (change_mode): Rename to __change_mode and
4215         declare as a thumb function so that the disassembler will see the
4216         mode change.
4217
4218 Thu Aug  5 17:37:00 1999  Ranjith Kumaran <ranjith@cygnus.com>
4219
4220         * libc/reent/reent.tex: Updated list of reentrant functions.
4221
4222 1999-07-09  Michael Meissner  <meissner@cygnus.com>
4223
4224         * libc/include/stdlib.h (_findenv{,_r}): Add prototypes.
4225         
4226 Tue Jul  6 10:46:24 1999  Jeff Johnston <jjohnstn@cygnus.com>
4227
4228         * libc/stdio/sprintf.c: Moved snprintf and _snprintf_r to
4229         separate file.
4230         * libc/stdio/snprintf.c: New file.
4231         * libc/stdio/vsprintf.c: Moved vsnprintf and _vsnprintf_r to
4232         separate file.
4233         * libc/stdio/vsnprintf.c: New file.
4234         * libc/stdio/Makefile.am: Added snprintf.c and vsnprintf.c.
4235         * libc/stdio/Makefile.in: Regenerated.
4236
4237 Mon Jul  5 14:43:24 1999  Christopher Faylor <cgf@cygnus.com>
4238
4239         Patch submitted by Egor Duda <deo@logos-m.ru>:
4240         * libc/include/stdio.h: Add declarations for *nprintf.
4241         * libc/stdio/sprintf.c (snprintf): New function.
4242         (_snprintf_r): New function.
4243         * libc/stdio/vsprintf.c (vsnprintf): New function.
4244         (_vnsprintf_r): New function.
4245
4246 Wed Jun 30 16:36:27 1999  Jeff Johnston  <jjohnstn@cygnus.com>
4247
4248         * libc/Makefile.am (stmp-targetdep): Remove extraneous blank.
4249         * libm/Makefile.am (stmp-targetdep): Ditto.
4250         * libc/Makefile.in: Regenerated.
4251         * libm/Makefile.in: Ditto.
4252
4253 Fri Jun 25 10:49:27 1999  Jeff Johnston  <jjohnstn@cygnus.com>
4254
4255         * libc/Makefile.am (stmp-targetdep): Ignore "." in SUBDIRS.
4256         * libm/Makefile.am (stmp-targetdep): Ditto.
4257         * libc/Makefile.in: Regenerated.
4258         * libm/Makefile.in: Ditto.
4259
4260 Thu June 03 16:25:00 1999  Jeff Johnston <jjohnstn@cygnus.com>
4261
4262         * Makefile.am: Removed dependencies on all-recursive and added "."
4263         to the SUBDIRS list to prevent infinite recursion from occurring.
4264         Also removed any references to EXTRA_DATA.
4265         * libc/Makefile.am: Ditto.
4266         * libc/machine/Makefile.am: Ditto.
4267         * libc/machine/i386/Makefile.am: Ditto.
4268         * libm/Makefile.am: Ditto.
4269         * libc/sys/Makefile.am: Ditto.
4270         * Makefile.in: Regenerated.
4271         * aclocal.m4: Ditto.
4272         * configure: Ditto.
4273         * doc/Makefile.in: Ditto.
4274         * doc/aclocal.m4: Ditto.
4275         * doc/configure: Ditto.
4276         * libc/Makefile.in: Ditto.
4277         * libc/aclocal.m4: Ditto.
4278         * libc/configure: Ditto.
4279         * libc/machine/Makefile.in: Ditto.
4280         * libc/machine/aclocal.m4: Ditto.
4281         * libc/machine/configure: Ditto.
4282         * libc/machine/mn10300/Makefile.in: Ditto.
4283         * libc/machine/mn10300/aclocal.m4: Ditto.
4284         * libc/machine/mn10300/configure: Ditto.
4285         * libc/sys/Makefile.in: Ditto.
4286         * libc/sys/aclocal.m4: Ditto.
4287         * libc/sys/configure: Ditto.
4288         * libm/Makefile.in: Ditto.
4289         * libm/aclocal.m4: Ditto.
4290         * libm/configure: Ditto.
4291
4292 Thu June 03 16:20:00 1999  Ranjith Kumaran <ranjith@cygnus.com>
4293
4294         * libc/include/stdlib/stdlib.tex: Add link to env_lock.
4295
4296 Fri May 28 17:09:00 1999  Ranjith Kumaran <ranjith@cygnus.com>
4297
4298         * libc/include/stdlib.h: Add reentrant routines.
4299         * libc/stdlib/Makefile.am: Add reentrant routines.
4300         * libc/stdlib/Makefile.in: Ditto.
4301         * libc/stdlib/envlock.c: New file.
4302         * libc/stdlib/envlock.h: New file.
4303         * libc/stdlib/getenv.c: Modify to call reentrant routine.
4304         * libc/stdlib/getenv_r.c: New file.
4305         * libc/stdlib/mblen.c: Modify to call reentrant routine.
4306         * libc/stdlib/mblen_r.c: New file.
4307         * libc/stdlib/setenv.c: Modify to call reentrant routine.
4308         * libc/stdlib/setenv_r.c: New file.
4309         * libc/stdlib/stdlib.tex: Add reentrant routines.
4310
4311 Mon May 17 22:01:38 1999  Christopher Faylor <cgf@cygnus.com>
4312
4313         * libc/include/sys/types.h: Define __MS_types__ whenever
4314         cygwin or win32.
4315
4316 Sun May 16 16:02:41 1999  Christopher Faylor <cgf@cygnus.com>
4317
4318         * libc/include/machine/ieeefp.h: Always default to little
4319         endian if Windows, regardless of architecture.
4320         * libc/include/machine/sethmp.h: Define JBLEN if CYGWIN
4321         regardless of architecture.
4322
4323 Mon May  3 11:49:18 1999  Geoffrey Noer  <noer@cygnus.com>
4324
4325         * libc/include/machine/setjmp.h: Accept CYGWIN define, even if
4326         _WIN32 isn't defined.
4327
4328 Mon May  3 11:41:51 1999  Jeff Johnston  <jjohnstn@cygnus.com>
4329
4330         * libm/common/s_rint.c (rint): Add volatile qualifier for
4331         intermediate value w.
4332         * libm/common/sf_rint.c (rintf): Ditto.
4333
4334 Thu Apr 29 20:34:27 1999  Jeff Johnston  <jjohnstn@cygnus.com>
4335
4336         * libc/sys/arm/syscalls.c (remap_handle): Added check to
4337         ensure that std streams are initialized before being referenced.
4338
4339 1999-04-27  Jason Molenda  (jsm@bugshack.cygnus.com)
4340
4341         * README: Update reference to newlib@cygnus.com new
4342         newlib@sourceware.cygnus.com address.
4343
4344 Mon Apr 26 18:17:33 1999  Geoffrey Noer  <noer@cygnus.com>
4345
4346         * libc/include/sys/types.h: Define MS_types if CYGWIN is defined.
4347         * libc/include/sys/fcntl.h: Define _O_BINARY et al if CYGWIN is
4348         defined, even if _WIN32 isn't defined.
4349
4350 Sat Apr 24 19:59:55 1999  Christopher Faylor <cgf@cygnus.com>
4351
4352         * libc/include/sys/fcntl.h: Correct _O_CREATE to _O_CREAT.
4353
4354 Wed Apr 21 18:01:00 1999  Ranjith Kumaran  <ranjith@cygnus.com>
4355
4356         * libc/include/sys/reent.h: Change Long and ULong to __Long and
4357         __ULong.
4358         * libc/stdlib/dtoa.c: Ditto.
4359         * libc/stdlib/mprec.c: Ditto.
4360         * libc/stdlib/mprec.h: Ditto.
4361         * libc/stdlib/strtod.c: Ditto.
4362
4363 1999-04-21  Nick Clifton  <nickc@cygnus.com>
4364
4365         * configure.host (mcore): Remove mcore machine directory.
4366
4367 1999-04-18  Nick Clifton  <nickc@cygnus.com>
4368
4369         * libc/include/machine/ieeefp.h: Add support for mcore target.
4370         * libc/include/machine/setjmp.h: Add support for mcore target.
4371         * configure.host: Add support for mcore target.
4372
4373 1999-04-13  Mark Salter  <msalter@cygnus.com>
4374
4375         * libc/sys/arm/libcfunc.c: Moved isatty to syscall.c
4376         * libc/sys/arm/syscalls.c: Added isatty.
4377
4378 Wed Apr 07 16:06:04 1999  Jeff Johnston  <jjohnstn@cygnus.com>
4379
4380         * libc/stdlib/ecvtbuf.c (fcvtbuf): Fixed code to properly
4381         insert zeroes after significant digits.
4382
4383 Wed Mar 17 22:06:04 1999  Jeff Johnston  <jjohnstn@cygnus.com>
4384         
4385         * libc/stdio/vfprintf.c (cvt): Changed floating point
4386         cvt routine to use union used by dtoa to properly determine
4387         if the sign bit is on or not.
4388         * libc/stdio/vfieeefp.h: New file
4389         
4390 Wed Mar 17 17:35:04 1999  Jeff Johnston  <jjohnstn@cygnus.com>
4391
4392         * aclocal.m4: Regenerated.
4393         * configure: Regenerated.
4394
4395 Wed Mar 17 16:35:04 1999  Jeff Johnston  <jjohnstn@cygnus.com>
4396
4397         * libc/machine/i386/Makefile.am (lib_a_SOURCES): Added missing
4398         f_tanf reference.
4399         * libc/machine/i386/Makefile.in: Regenerated.
4400
4401 Tue Mar 16 14:56:36 1999  Jeff Johnston  <jjohnstn@cygnus.com>
4402
4403         * acinclude.m4: Changed to work with new automake.
4404         * configure: Regenerated.
4405         * libc/machine/i386/aclocal.m4: Regenerated.
4406         * libc/machine/i386/configure: Regenerated.
4407
4408 Tue Mar 16 13:55:36 1999  Corinna Vinschen  <corinna.vinschen@cityweb.de>
4409
4410         * libc/sys/cygwin/sys/dirent.h: Add additional prototypes
4411         for telldir() and seekdir().  Rename unused structure element
4412         for use with these two routines.
4413
4414 Fri Mar 12 19:11:58 1999  Jeff Johnston  <jjohnstn@cygnus.com>
4415
4416         * libc/time/mktime.c (validate_structure): Multiple fixes to
4417         code to handle cases where input fields are outside valid ranges.
4418         * libc/stdlib/div.c (div): Modified invalid rounding check.
4419         * libc/stdlib/ldiv.c (ldiv): Ditto.
4420
4421 Thu Mar 11 21:32:13 1999  Jeff Johnston  <jjohnstn@cygnus.com>
4422
4423         * libc/machine/i386/memcpy.S: Performance rewrite.
4424         * libc/machine/i386/memmove.S: Ditto.
4425         * libc/machine/i386/i386mach.h: Added more register definitions.
4426         * libc/include/math.h: Include <machine/fastmath.h> if -ffast-math
4427         option used.
4428         * libc/include/machine/fastmath.h: Add definitions for x86
4429         fast-math routines.
4430
4431 Wed Mar 10 17:56:00 1999 Ranjith Kumaran  <ranjith@cygnus.com>
4432
4433         * libc/stdlib/strtod.c: Change from unsigned long to ULong.
4434
4435 Tue Mar  9 14:31:58 1999  Geoffrey Noer  <noer@cygnus.com>
4436
4437         Adjust newlib headers for new Cygwin Win32 API header files:
4438         * libc/include/sys/time.h: Check _WINSOCK_H rather than
4439         _GNU_H_WINDOWS32_SOCKETS.
4440         * libc/include/sys/types.h: Ditto.
4441
4442 Tue Mar 09 15:55:00 1999 Ranjith Kumaran  <ranjith@cygnus.com>
4443
4444         *include/sys/reent.h: Add checks for size of Bigint element Long.
4445         *libc/dtoa.c: Change routines to use generic Long type.
4446         *libc/mprec.c: Change routines to use generic Long type.
4447         *libc/mprec.h: Change routines to use generic Long type.
4448
4449 Tue Mar 02 18:07:49 1999 Ranjith Kumaran  <ranjith@cygnus.com>
4450
4451         * libc/Makefile.am: Add .def files.
4452         * libc/Makefile.in: Regenerate.
4453         * libc/e_acosh.c: Documentation update.
4454         * libc/e_atanh.c: Documentation update.
4455         * libc/e_hypot.c: Documentation update.
4456         * libc/e_remainder.c: Documentation update.
4457         * libc/er_lgamma.c: Documentation update.
4458         * libc/mathfp.tex: Documentation update.
4459         * libc/s_acos.c: Documentation update.
4460         * libc/s_atan.c: Documentation update.
4461         * libc/s_atan2.c: Documentation update.
4462         * libc/s_cosh.c: Documentation update.
4463         * libc/s_fmod.c: Documentation update.
4464         * libc/s_isnan.c: Documentation update.
4465         * libc/s_log10.c: Documentation update.
4466         * libc/s_pow.c: Documentation update.
4467         * libc/w_jn.c: Documentation update.
4468
4469 Sun Feb 28 23:18:49 1999  Geoffrey Noer  <noer@cygnus.com>
4470
4471         * aclocal.m4: Regenerate.
4472         * configure: Regenerate.
4473
4474 Tue Feb 23 13:57:26 1999  Jeff Johnston  <jjohnstn@cygnus.com>
4475
4476         * libc/machine/mn10300/setjmp.S (_longjmp): Fixed longjmp
4477         to return 1 if user specified return code is 0.
4478         * libc/machine/mn10200/setjmp.S (_longjmp): Ditto.
4479
4480 Thu Feb 18 11:13:28 1999  Jeff Johnston  <jjohnstn@cygnus.com>
4481
4482         * libc/machine/mn10200/setjmp.S (_setjmp/_longjmp): Fixed setjmp
4483         to save the return address.  Fixed longjmp to return to the original
4484         calling address of setjmp and to return the user specified return code
4485         rather than default to 1.
4486         * libc/machine/mn10300/setjmp.S (_setjmp/_longjmp): Ditto.
4487
4488 Mon Feb 15 17:48:17 1999  Jeff Johnston  <jjohnstn@cygnus.com>
4489
4490         * libc/stdlib/mprec.h (mult): Define mult to be _multiply instead of _mult.
4491
4492 1999-02-10  Nick Clifton  <nickc@cygnus.com>
4493
4494         * libc/sys/arm/syscalls.c (initialise_monitor_handles): Make block
4495         volatile so that its assignments will not be discarded.
4496
4497 Wed Feb 10 17:19:40 1999  Jeff Johnston  <jjohnstn@cygnus.com>
4498
4499         * libc/include/_ansi.h: Corrected _STRICT_ANSI reference to
4500         be __STRICT_ANSI__ which is generated by compiler.
4501         * libc/include/ctype.h: Ditto.
4502         * libc/include/math.h: Ditto.
4503         * libc/include/stdio.h: Ditto.
4504         * libc/include/stdlib.h: Ditto.
4505         * libc/include/string.h: Ditto.
4506         * libc/include/sys/signal.h: Ditto.
4507
4508 1999-02-08  Nick Clifton  <nickc@cygnus.com>
4509
4510         * configure.host: Add support for StrongARM target.
4511
4512 Fri Feb  5 11:13:14 1999  Jeff Johnston  <jjohnstn@cygnus.com>
4513
4514         * libc/string/strncpy.c (strncpy): Removed redundant code
4515         that was copying bytes if data unaligned.
4516
4517 1999-02-02  Brendan Kehoe  <brendan@cygnus.com>
4518
4519         * libc/stdlib/Makefile.{am,in} (CHEWOUT_FILES): Add mblen.def,
4520         mbstowcs.def, and wcstombs.def.
4521
4522 Sat Jan 30 02:36:33 1999  Christopher Faylor <cgf@cygnus.com>
4523
4524         * libc/include/sys/errno.h: Add Cygwin errno.
4525         * libc/stdio/flags.c: Don't default to O_TEXT if no other flag
4526         is specified.
4527
4528 1999-01-29  Nick Clifton  <nickc@cygnus.com>
4529
4530         * libc/sys/arm/syscalls.c: Move C library functions into seperate
4531         file.
4532         
4533         * libc/sys/arm/libcfunc.c: New file containing C library functions
4534         from syscalls.c
4535
4536         * libc/sys/arm/Makefile.am (lib_a_SOURCES): Add libcfuncs.c
4537         * libc/sys/arm/Makefile.in (lib_a_SOURCES): Regenerate.
4538
4539
4540 1999-01-27  Michael Meissner  <meissner@cygnus.com>
4541
4542         * libc/include/machine/setjmp.h (D30V _JBLEN/_JBTYPE): Use double
4543         type, and cut size in half so that the jmp_buf array is guaranteed
4544         to be aligned on a 64-bit boundary.
4545
4546 Mon Jan 25 12:05:38 1999  Jeff Johnston  <jjohnstn@cygnus.com>
4547
4548         * libc/string/strings.tex: Added information about
4549         strcasecmp and strncasecmp.
4550         * libc/stdlib/stdlib.tex: Added missing information
4551         about mblen, mbstowcs, and wcstombs.
4552         * libc/string/strchr.c: Changed how mask is built to use
4553         shift operators so register will be used instead of storage.
4554
4555 1999-01-22  DJ Delorie  <dj@cygnus.com>
4556
4557         * libc/include/stdlib.h: don't use dllimport if we're building
4558         newlib, since it's inside cygwin.dll
4559
4560 Fri Jan 22 14:57:18 1999  Christopher Faylor <cgf@cygnus.com>
4561
4562         * libc/ctype/ctype_.c: Need to use __declspec(dllexport) for
4563         _ctype_ under cygwin.
4564
4565 Fri Jan 22 09:50:19 1999  Christopher Faylor <cgf@cygnus.com>
4566
4567         * include/stdlib.h: Fix typo from previous checkin.
4568
4569 Thu Jan 21 22:42:21 1999  Christopher Faylor <cgf@cygnus.com>
4570
4571         * include/ctype.h: Use __declspec(dllimport) method for exporting
4572         variable from cygwin DLL.
4573         * include/time.h: Ditto.
4574         * sys/errno.h: Ditto.
4575         * include/stdlib.h: Export __mb_cur_max from cygwin DLL.
4576         * libc/locale/locale.c: Use __declspec(dllexport) method for
4577         exporting variable from cygwin DLL.
4578
4579 Sat Jan 16 13:29:54 1999  Christopher Faylor <cgf@cygnus.com>
4580
4581         * libc/stdio/setvbuf.c: Always clean up when _IONBF or possible
4582         access of bogus pointer will result in SIGSEGV.
4583
4584 1999-01-07  Nick Clifton  <nickc@cygnus.com>
4585
4586         * libc/sys/arm/setjmp.S: Use C macros to cope with the possibility
4587         of an underscore prefix to function names.
4588
4589 Fri Jan  8 19:00:07 1999  Jeff Johnston  <jjohnstn@cygnus.com>
4590
4591         * libc/machine/i386/i386mach.h (__REG_PREFIX__): Create new
4592         define __REG_PREFIX__ instead of using __REGISTER_PREFIX__.
4593
4594 1998-12-31  Michael Meissner  <meissner@cygnus.com>
4595
4596         * libc/machine/i386/i386mach.h (__REGISTER_PREFIX__): Only define
4597         to `%' if not already defined.
4598
4599 1998-12-30  Michael Meissner  <meissner@cygnus.com>
4600
4601         * libc/stdio/tmpnam.c (_tempnam_r): Make directory and prefix
4602         arguments const char *, not char *.
4603         * libc/include/stdio.h (_tempnam_r): Ditto.
4604
4605         * libc/include/sys/reent.h (struct _reent): The _sig_func type
4606         points to a function taking an integer, not void.
4607
4608 Tue Dec 29 14:35:53 1998  Christopher Faylor <cgf@cygnus.com>
4609
4610         * configure.host: Add a define for Cygwin builds.
4611         * libc/include/ctype.h: Don't use dll imported variables in newlib.
4612
4613 Mon Dec 28 09:19:56 1998  Christopher Faylor <cgf@cygnus.com>
4614
4615         * libc/include/ctype.h: Define _ctype_ as dll imported variable
4616         for use with Cygwin.
4617         * libc/include/sys/errno.h: Define _sys_errlist and _sys_nerr as
4618         dll imported variables for use with Cygwin.
4619         * libc/ctype/ctype_.c: Undefine _ctype_ in case it has been defined
4620         as a dll imported variable for Cygwin.
4621
4622 Sat Dec 26 00:13:53 1998  Christopher Faylor <cgf@cygnus.com>
4623
4624         * libc/include/sys/unistd.h: Add proto for getpass.
4625
4626 Fri Dec 18 19:28:19 1998  Geoffrey Noer  <noer@cygnus.com>
4627
4628         * libc/sys/cygwin/sys/dirent.h: add protos for scandir and
4629         alphasort.
4630
4631 Fri Dec 18 16:33:25 1998  Geoffrey Noer  <noer@cygnus.com>
4632
4633         * libc/posix/execvp.c (execvp): call cygwin_posix_path_list_p,
4634         not posix_path_list_p.
4635
4636 1998-12-15  Nick Clifton  <nickc@cygnus.com>
4637
4638         * libc/string/memchr.c: Treat 'c' argument as an unsigned byte not
4639         a signed int.
4640
4641 1998-12-13  Nick Clifton  <nickc@cygnus.com>
4642
4643         * libc/include/machine/setjmp.h (_JBLEN): Set to 10.
4644
4645 1998-12-12  Nick Clifton  <nickc@cygnus.com>
4646
4647         * libc/machine/fr30/setjmp.S: New file, supplied by Mark Slater
4648         <msalter@cygnus.com>
4649         * libc/machine/fr30/Makefile.am: Add build of setjmp.S
4650         * libc/machine/fr30/Makefile.in: Regenerated.
4651
4652 1998-12-11  Nick Clifton  <nickc@cygnus.com>
4653
4654         * configure.host: Remove use of libc/sys for FR30 port.
4655         * libc/sys/fr30: Remove directory (replaced by libgloss).
4656
4657 1998-12-10  Ken Raeburn  <raeburn@cygnus.com>
4658
4659         * libc/string/strcat.c (ALIGNED): Sense of result was reversed.
4660         * libc/string/strncat.c (ALIGNED): Ditto.
4661
4662 Wed Dec  9 14:37:57 1998  Geoffrey Noer  <noer@cygnus.com>
4663
4664         * libc/include/sys/time.h: include sys/types.h
4665
4666 Tue Dec  8 15:53:18 1998  Jeff Johnston  <jjohnstn@cygnus.com>
4667
4668         * libc/machine/i386/memcmp.S (memcmp): Fix for unequal
4669         comparison found when checking word at a time.
4670
4671 1998-12-04  Nick Clifton  <nickc@cygnus.com>
4672
4673         * libc/sys/fr30/crt0.s (_start): Initialise frame pointer.
4674
4675 1998-12-03  Nick Clifton  <nickc@cygnus.com>
4676
4677         * libc/sys/fr30/syscalls.c (_times): New function stub.
4678
4679 Thu Dec  3 15:59:19 1998  Jeff Johnston  <jjohnstn@cygnus.com>
4680
4681         * configure.host (mach_add_setjmp): Replaced mach_add_objs
4682         with mach_add_setjmp flag which indicates if setjmp should
4683         be added to the machine directory objects.
4684         * acinclude.m4: Removed reference to mach_add_objs.
4685         * aclocal.m4: Regenerated.
4686         * Makefile.in: Regenerated.
4687         * configure: Regenerated.
4688         * libc/aclocal.m4: Regenerated.
4689         * libc/Makefile.in: Regenerated.
4690         * libc/configure: Regenerated.
4691         * libc/machine/aclocal.m4: Regenerated.
4692         * libc/machine/Makefile.in: Regenerated.
4693         * libc/machine/configure: Regenerated.
4694         * libc/machine/i386/aclocal.m4: Regenerated.
4695         * libc/machine/i386/Makefile.am: Altered to selectively add
4696         setjmp.S to the src files list.
4697         * libc/machine/i386/Makefile.in: Regenerated.
4698         * libc/machine/i386/configure.in: Altered to test mach_add_setjmp.
4699         * libc/machine/i386/configure: Regenerated.
4700
4701 1998-12-02  Nick Clifton  <nickc@cygnus.com>
4702
4703         * libc/sys/fr30/crt0.s (_start): Fix function names.
4704
4705         * libc/machine/fr30: New directory
4706         * libc/machine/fr30/Makefile.am: New file.
4707         * libc/machine/fr30/Makefile.in: New generated file.
4708         * libc/machine/fr30/configure.in: New file.
4709         * libc/machine/fr30/configure: New generated file.
4710         * libc/machine/fr30/aclocal.m4: New generated file.
4711         * libc/sys/fr30/Makefile.am: New file.
4712         * libc/sys/fr30/Makefile.in: New generated file.
4713         * libc/sys/fr30/configure.in: New file.
4714         * libc/sys/fr30/configure: New generated file.
4715         * libc/sys/fr30/syscalls.c: New file.
4716
4717 Tue Dec  1 16:28:56 1998  Geoffrey Noer  <noer@cygnus.com>
4718
4719         * libc/sys/cygwin/sys/utmp.h: new file, moved from winsup/include.
4720
4721 1998-12-01  Ken Raeburn  <raeburn@cygnus.com>
4722
4723         * libc/time/strftime.c (strftime): Also handle %y for years before
4724         1900.
4725
4726 Tue Dec  1 13:26:07 1998  Christopher Faylor <cgf@cygnus.com>
4727
4728         * libc/string/strcasecmp.c (strcasecmp): Adhere to standard
4729         UNIX convention.  Perform tolower on characters before comparing
4730         them rather than use toupper.
4731         * libc/string/strncasecmp.c (strncasecmp): Ditto.
4732
4733 Mon Nov 30 16:24:19 1998  Jeff Johnston  <jjohnstn@cygnus.com>
4734         
4735         * configure.host: Added using i386 machine directory
4736         for all x86 cross-compiler and configuring
4737         which added object files to use via new "mach_add_objs" variable.
4738         * configure: Regenerated.
4739         * libc/configure: Regenerated.
4740         * libc/Makefile.in: Regenerated.
4741         * libc/aclocal.m4: Regenerated.
4742         * libc/ctype/Makefile.in: Regenerated.
4743         * libc/errno/Makefile.in: Regenerated.
4744         * libc/locale/Makefile.in: Regenerated.
4745         * libc/machine/Makefile.in: Regenerated.
4746         * libc/machine/aclocal.m4: Regenerated.
4747         * libc/machine/configure: Regenerated.
4748         * libc/posix/Makefile.in: Regenerated.
4749         * libc/reent/Makefile.in: Regenerated.
4750         * libc/signal/Makefile.in: Regenerated.
4751         * libc/stdio/Makefile.in: Regenerated.
4752         * libc/stdlib/Makefile.in: Regenerated.
4753         * libc/string/Makefile.in: Regenerated.
4754         * libc/string/memmove.c: Optimized code to use memcpy
4755         logic when performing a non-destructive copy.
4756         * libc/string/strncmp.c: Altered code to allow building
4757         optimized for size or speed.
4758         * libc/syscalls/Makefile.in: Regenerated.
4759         * libc/time/Makefile.in: Regenerated.
4760         * libc/unix/Makefile.in: Regenerated.
4761         * libc/machine/i386/Makefile.am: Added new files and reference
4762         to "mach_add_objs" to indicate optional object files.
4763         * libc/machine/i386/Makefile.in: Regenerated.
4764         * libc/machine/i386/aclocal.m4: Regenerated.
4765         * libc/machine/i386/configure: Regenerated.
4766         * libc/machine/i386/memchr.S: New file that implements
4767         function in Intel assembler.
4768         * libc/machine/i386/memcmp.S: ditto.
4769         * libc/machine/i386/memcpy.S: ditto.
4770         * libc/machine/i386/memmove.S: ditto.
4771         * libc/machine/i386/memset.S: ditto.
4772         * libc/machine/i386/strchr.S: ditto.
4773         * libc/machine/i386/strlen.S: ditto.
4774         * libc/machine/i386/f_atan2.S: New file that implements
4775         fast version of math function to be used by compiler when
4776         --ffast_math compile option is used.
4777         * libc/machine/i386/f_atan2f.S: ditto.
4778         * libc/machine/i386/f_exp.c: ditto.
4779         * libc/machine/i386/f_expf.c: ditto.
4780         * libc/machine/i386/f_frexp.S: ditto.
4781         * libc/machine/i386/f_frexpf.S: ditto.
4782         * libc/machine/i386/f_ldexp.S: ditto.
4783         * libc/machine/i386/f_ldexpf.S: ditto.
4784         * libc/machine/i386/f_log.S: ditto.
4785         * libc/machine/i386/f_logf.S: ditto.
4786         * libc/machine/i386/f_log10.S: ditto.
4787         * libc/machine/i386/f_log10f.S: ditto.
4788         * libc/machine/i386/f_math.h: New file.
4789         * libc/machine/i386/f_pow.c: ditto.
4790         * libc/machine/i386/f_powf.S: ditto.
4791         * libc/machine/i386/f_tan.S: ditto.
4792         * libc/machine/i386/f_tan.S: ditto.
4793         * libc/machine/i386/i386mach.h: New file.
4794
4795 Mon Nov 30 13:02:17 1998  Christopher Faylor <cgf@cygnus.com>
4796
4797         patch from Mumit Khan <khan@xraylith.wisc.edu>
4798         * libc/include/stdio.h (tempnam): Add prototype.
4799         * libc/stdio/tmpnam.c (_tempnam_r): Handle NULL prefix.
4800         (tempnam): Adhere to prototype.
4801
4802 Thu Nov 26 00:21:32 1998  Christopher Faylor <cgf@cygnus.com>
4803
4804         * Makefile.am: Add default for AR_FLAGS.
4805         * Makefile.in: Regenerate.
4806
4807 Tue Nov 24 18:48:56 1998  Geoffrey Noer  <noer@cygnus.com>
4808
4809         * libc/include/time.h: move __cplusplus wrapper after includes
4810         * libc/include/sys/time.h: ditto.  If Cygwin, include
4811         sys/select.h.
4812         * libc/include/sys/types.h: lose "32" in comment about Cygwin.
4813
4814 1998-11-23  Ken Raeburn  <raeburn@cygnus.com>
4815
4816         * libc/time/strftime.c (strftime): Handle %y after year 2000.
4817
4818 Wed Nov 18 12:22:41 1998  Nick Clifton  <nickc@cygnus.com>
4819
4820         * libc/sys/fr30/crt0.s (_start): Switch over to using int #9 as
4821         abnormnal end-of-crt0 marker.
4822
4823 Tue Nov 17 16:27:58 1998  Nick Clifton  <nickc@cygnus.com>
4824
4825         * libc/sys/fr30/crt0.s: New file/directory.
4826         * libc/include/machine/setjmp.h: Add FR30 target.
4827         * libc/include/machine/ieeefp.h: Add FR30 target.
4828         * configure.host: Add FR30 target.
4829
4830 Mon Nov  16 23:15:00 1998  Ranjith Kumaran <ranjith@cygnus.com>
4831
4832         * libm/math: Files that are duplicated in common directory removed.
4833         * libm/math/fdlibm.h: Removed.
4834         * libm/math/s_cbrt.c: Removed.
4835         * libm/math/s_copysign.c: Removed.
4836         * libm/math/s_expm1.c: Removed.
4837         * libm/math/s_finite.c: Removed.
4838         * libm/math/s_ilogb.c: Removed.
4839         * libm/math/s_infinity.c: Removed.
4840         * libm/math/s_lib_ver.c: Removed.
4841         * libm/math/s_log1p.c: Removed.
4842         * libm/math/s_logb.c: Removed.
4843         * libm/math/s_matherr.c: Removed.
4844         * libm/math/s_modf.c: Removed.
4845         * libm/math/s_nan.c: Removed.
4846         * libm/math/s_nextafter.c: Removed.
4847         * libm/math/s_rint.c: Removed.
4848         * libm/math/s_scalbn.c: Removed.
4849         * libm/math/sf_cbrt.c: Removed.
4850         * libm/math/sf_copysign.c: Removed.
4851         * libm/math/sf_expm1.c: Removed.
4852         * libm/math/sf_finite.c: Removed.
4853         * libm/math/sf_ilogb.c: Removed.
4854         * libm/math/sf_infinity.c: Removed.
4855         * libm/math/sf_log1p.c: Removed.
4856         * libm/math/sf_logb.c: Removed.
4857         * libm/math/sf_modf.c: Removed.
4858         * libm/math/sf_nan.c: Removed.
4859         * libm/math/sf_nextafter.c: Removed.
4860         * libm/math/sf_rint.c: Removed.
4861         * libm/math/sf_scalbn.c: Removed.
4862         * libm/math/Makefile.am: Removed references to deleted files (above).
4863         * libm/math/Makefile.in: Regenerated.
4864         * libm/Makefile.am: Added common directory to math.
4865         * libm/Makefile.in: Regenerated.
4866
4867 Mon Nov  2 23:12:00 1998  Ranjith Kumaran <ranjith@cygnus.com>
4868
4869         * libm/mathfp: Add non-ANSI functions.
4870         * libm/mathfp/e_acosh.c acosh(): New file.
4871         * libm/mathfp/e_atanh.c atanh(): New file.
4872         * libm/mathfp/e_hypot.c hypot(): New file.
4873         * libm/mathfp/e_j0.c j0(): New file.
4874         * libm/mathfp/e_j1.c j1(): New file.
4875         * libm/mathfp/e_remainder.c remainder(): New file.
4876         * libm/mathfp/e_scalb.c scalb(): New file.
4877         * libm/mathfp/ef_acosh.c acoshf(): New file.
4878         * libm/mathfp/ef_atanh.c atanhf(): New file.
4879         * libm/mathfp/ef_hypot.c hypotf(): New file.
4880         * libm/mathfp/ef_j0.c j0f(): New file.
4881         * libm/mathfp/ef_j1.c j1f(): New file.
4882         * libm/mathfp/ef_remainder.c remainderf(): New file.
4883         * libm/mathfp/ef_scalb.c scalbf(): New file.
4884         * libm/mathfp/er_gamma.c gamma_r: New file.
4885         * libm/mathfp/er_lgamma.c lgamma_r(): New file.
4886         * libm/mathfp/erf_gamma.c gamma_rf(): New file.
4887         * libm/mathfp/erf_lgamma.c lgamma_rf(): New file.
4888         * libm/mathfp/w_cabs.c cabs(): New file.
4889         * libm/mathfp/w_drem.c drem(): New file.
4890         * libm/mathfp/w_jn.c jn(): New file.
4891         * libm/mathfp/wf_cabs.c cabsf(): New file.
4892         * libm/mathfp/wf_drem.c dremf(): New file.
4893         * libm/mathfp/wf_jn.c jnf(): New file.
4894
4895 Mon Nov  2 16:43:18 1998  Geoffrey Noer  <noer@cygnus.com>
4896
4897         * libc/sys/cygwin32: remove directory and contents
4898         * libc/sys/cygwin: and add back, losing the "32".
4899         * configure.host: check for cygwin* instead of cygwin32.
4900         * acinclude.m4: ditto.
4901         * aclocal.m4: regenerate with aclocal
4902         * configure: regenerate with autoconf
4903
4904 Tue Oct 20 17:28:28 1998  Geoffrey Noer  <noer@cygnus.com>
4905
4906         * libc/stdio/tmpnam.c (_tempnam_r): not enough memory allocated
4907         for length
4908
4909 Tue Oct 20 18:49:05 1998  Jeff Johnston  <jjohnstn@cygnus.com>
4910
4911         * libc/include/sys/reent.h (struct _reent): Added variables _rand_next, _strtok_last,
4912         _asctime_buf, _localtime_buf and _gamma_signgam to struct reent
4913         to make rand/srand, strtok, asctime, localtime, w_gamma,
4914         w_lgamma, wf_gamma, and wf_lgamma reentrant.  Included
4915         time.h to bring in struct tm definition.
4916         * libc/stdlib/rand.c (rand, srand): Don't emit functions 'rand' and 'srand' if
4917         '_REENT_ONLY' is set. Used variable '_rand_next' from struct reent.
4918         * libc/stdlib/strtok.c (strtok): Used variable '_strtok_last' from struct reent
4919         instead of static variable.
4920         * libc/stdlib/asctime.c (asctime): Used variable '_asctime_buf' from
4921         struct reent instead of static variable.
4922         * libc/stdlib/lcltime.c (localtime): Used variable '_localtime_buf' from
4923         struct reent instead of static variable.
4924         * libm/math/Makefile.am: Removed s_signgam.o.
4925         * libm/math/Makefile.in: Regenerated.
4926         * libm/math/w_gamma.c (gamma): Used variable '_gamma_signgam' from
4927         struct reent instead of global variable 'signgam'.
4928         * libm/math/w_lgamma.c (lgamma): Likewise.
4929         * libm/math/wf_gamma.c (gammaf): Likewise.
4930         * libm/math/wf_lgamma.c (lgammaf): Likewise.
4931         * libm/math/s_signgam.c: Removed.
4932         * libc/include/unctrl.h: Defined arrays __unctrl and __unctrllen
4933         to be const.
4934         * libc/misc/unctrl.c: Defined arrays __unctrl and __unctrllen
4935         to be const.
4936         * libc/reent/Makefile.am: Added dependence for impure.o on impure.c and
4937         libc/include/reent.h.
4938         * libc/reent/Makefile.in: Regenerated.
4939         * libc/stdio/vfprintf.c (_vfprintf_r): Defined arrays 'blanks' and 'zeroes'
4940         to be const.
4941         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Defined arrays 'JIS_state_table' and
4942         'JIS_action_table' to be const.
4943         * libm/math/s_lib_ver.c: define variable _LIB_VERSION to be const.
4944
4945 Mon Oct 12 00:26:33 1998  Christopher Faylor <cgf@cygnus.com>
4946
4947         * acinclude.m4:  $with_target_subdir should default to '.'
4948         or confusion results when configuring in same directory as sources.
4949         * Regenerate all aclocal.m4 and configure files.
4950
4951 Fri Oct  9 16:27:36 1998  Jeff Johnston  <jjohnstn@cygnus.com>
4952
4953         * libc/stdlib/mallocr.c: Added 16 byte alignment support which
4954         can be set by defining MALLOC_ALIGNMENT=16.  Also added support
4955         for platforms where sizeof(size_t) < sizeof(long) via
4956         SIZE_T_SMALLER_THAN_LONG macro.
4957         
4958 Wed Oct  7 14:02:40 1998  Jeff Johnston  <jjohnstn@cygnus.com>
4959
4960         * libc/include/time.h (CLOCKS_PER_SEC): Change CLOCKS_PER_SEC
4961         to refer to _CLOCKS_PER_SEC_ and added including <machine/time.h>
4962         which sets _CLOCKS_PER_SEC_ for selected machines.
4963         * libc/include/machine/time.h: New file.
4964
4965 Tue Oct  6 16:08:05 1998  Jeff Johnston  <jjohnstn@cygnus.com>
4966
4967         * libc/syscalls/sysexecve.c: New file.
4968         * libc/syscalls/sysgettod.c: New file.
4969         * libc/syscalls/systimes.c: New file.
4970         * libc/syscalls/Makefile.am: Added new objects.
4971         * libc/syscalls/Makefile.in: Regenerated.
4972         * libc/include/_syslist.h (_execve): Moved define in file.
4973         * libc/include/reent.h:  Added _execve_r declaration.
4974         * libc/Makefile.in: Regenerated.
4975         * libc/ctype/Makefile.in: Regenerated.
4976         * libc/errno/Makefile.in: Regenerated.
4977         * libc/locale/Makefile.in: Regenerated.
4978         * libc/machine/Makefile.in: Regenerated.
4979         * libc/misc/Makefile.in: Regenerated.
4980         * libc/posix/Makefile.in: Regenerated.
4981         * libc/reent/Makefile.in: Regenerated.
4982         * libc/reent/execr.c (_execve_r): Added _execve_r function.
4983         * libc/signal/Makefile.in: Regenerated.
4984         * libc/stdio/Makefile.in: Regenerated.
4985         * libc/time/Makefile.in: Regenerated.
4986         * libc/unix/Makefile.in: Regenerated.
4987         * libm/mathfp/Makefile.in: Regenerated.
4988
4989 Tue Oct  6 14:14:05 1998  Jeff Johnston  <jjohnstn@cygnus.com>
4990
4991         * libc/string/Makefile.in: Regenerated.
4992         * libc/string/memchr.c (memchr): Moved code to reduce object size.
4993         * libc/string/memcpy.c (memcpy): Ditto.
4994         * libc/string/memcmp.c (memcmp): Ditto.
4995         * libc/string/memset.c (memset): Ditto.
4996         * libc/string/strchr.c (strchr): Ditto.
4997         * libc/string/strcmp.c (strcmp): Ditto.
4998         * libc/string/strcpy.c (strcpy): Ditto.
4999         * libc/string/strlen.c (strlen): Ditto.
5000
5001 Tue Oct  6 13:58:05 1998  Jeff Johnston  <jjohnstn@cygnus.com>
5002
5003         * libm/acinclude.m4: Removed since newlib/acinclude.m4 can be used
5004         to generate aclocal.m4.
5005         * libm/Makefile.in: Regenerated.
5006         * libm/aclocal.m4: Regenerated.
5007         * libm/configure: Regenerated.
5008         * libm/math/Makefile.in: Regenerated.
5009         * libm/mathfp/Makefile.in: Regenerated.
5010
5011 1998-09-25  Mark Salter  <msalter@cygnus.com>
5012
5013         * libc/include/machine/setjmp.h: Fixed test for mn10300 and mn10200
5014         by adding leading and trailing underscores to symbol names.
5015
5016 Tue Sep 22 15:33:41 1998  Christopher Faylor <cgf@cygnus.com>
5017
5018         * Makefile.in: Add default for AR_FLAGS.
5019
5020 Tue Sep 22 15:02:49 1998  Christopher Faylor <cgf@cygnus.com>
5021
5022         patch from ian@airs.com (Ian Taylor):
5023         * acinclude.m4: Run AC_CANONICAL_BUILD explicitly before
5024         NEWLIB_CONFIGURE so AC_CANONICAL_HOST will be run before it
5025         is needed for detecting the build machine.  Required for
5026         cygwin native builds.
5027
5028         * Regenerate all aclocal.m4 and configure files.
5029
5030 Mon Sep 21 14:44:16 1998  Nick Clifton  <nickc@cygnus.com>
5031
5032         * libc/sys/arm/crt0.S: Prepend a period to all local labels that
5033         used to start with LC.
5034
5035 Thu Sep 17 18:18:11 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
5036
5037         * libc/machine/sh/setjmp.S (setjmp): Handle __SH4* like __SH3E__ .
5038         (longjmp): Likewise.
5039
5040 Thu Sep 17 16:25:33 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
5041
5042         * libc/machine/sh/memset.S (memset): Move copy from r4 to r4 before
5043         the test for small number of bytes.
5044
5045 Thu Sep 10 11:40:00 1998  Ranjith Kumaran <ranjith@cygnus.com>
5046
5047         * Makefile.am: Add --enable-newlib-hw-fp check.  This builds the new
5048         math library that uses floating point algorithms instead of the old
5049         libm.
5050         * Makefile.in: Regenerate with automake version 1.3b.
5051         * configure: Rebuild.
5052         * libm/Makefile.in: Regenerate with automake version 1.3b.
5053         * libm/aclocal.m4: Regenerate.
5054         * libm/configure: Rebuild.
5055         * libm/configure.in: Add newlib_hw_fp definition and mathfp directory.
5056         * libm/acinclude.m4: Define macros for configure.in.
5057         * libm/config.h.in: Generate.
5058         * libm/mathfp/Makefile.am: New file.
5059         * libm/mathfp/Makefile.in: Generate.
5060         * libm/mathfp/s_acos.c (acos): New file.
5061         * libm/mathfp/s_asin.c (asin): New file.
5062         * libm/mathfp/s_asine.c (asine): New file.
5063         * libm/mathfp/s_atan.c (atan): New file.
5064         * libm/mathfp/s_atan2.c (atan2): New file.
5065         * libm/mathfp/s_atangent.c (atangent): New file.
5066         * libm/mathfp/s_ceil.c (ceil): New file.
5067         * libm/mathfp/s_copysign.c (copysign): New file.
5068         * libm/mathfp/s_cos.c (cos): New file.
5069         * libm/mathfp/s_cosh.c (cosh): New file.
5070         * libm/mathfp/s_exp.c (exp): New file.
5071         * libm/mathfp/s_fabs.c (fabs): New file.
5072         * libm/mathfp/s_finite.c (finite): New file.
5073         * libm/mathfp/s_floor.c (floor): New file.
5074         * libm/mathfp/s_fmod.c (fmod): New file.
5075         * libm/mathfp/s_frexp.c (frexp): New file.
5076         * libm/mathfp/s_infconst.c: New file.
5077         * libm/mathfp/s_isinf (isinf).c: New file.
5078         * libm/mathfp/s_isnan.c (isnan): New file.
5079         * libm/mathfp/s_ispos.c (ispos): New file.
5080         * libm/mathfp/s_ldexp.c (ldexp): New file.
5081         * libm/mathfp/s_log.c (log): New file.
5082         * libm/mathfp/s_log10.c (log10): New file.
5083         * libm/mathfp/s_logarithm.c (logarithm): New file.
5084         * libm/mathfp/s_mathcnst.c: New file.
5085         * libm/mathfp/s_modf (modf).c: New file.
5086         * libm/mathfp/s_numtest.c (numtest): New file.
5087         * libm/mathfp/s_pow.c (pow): New file.
5088         * libm/mathfp/s_scalbn.c (scalbn): New file.
5089         * libm/mathfp/s_sin (sin).c: New file.
5090         * libm/mathfp/s_sine.c (sine): New file.
5091         * libm/mathfp/s_sineh.c (sineh): New file.
5092         * libm/mathfp/s_sinf.c (sinf): New file.
5093         * libm/mathfp/s_sinh.c (sinh): New file.
5094         * libm/mathfp/s_sqrt.c (sqrt): New file.
5095         * libm/mathfp/s_tan.c (tan): New file.
5096         * libm/mathfp/s_tanh.c (tanh): New file.
5097         * libm/mathfp/sf_acos.c (acosf): New file.
5098         * libm/mathfp/sf_asin.c (asinf): New file.
5099         * libm/mathfp/sf_asine.c (asinef): New file.
5100         * libm/mathfp/sf_atan.c (atanf): New file.
5101         * libm/mathfp/sf_atan2.c (atan2f): New file.
5102         * libm/mathfp/sf_atangent.c (atangent): New file.
5103         * libm/mathfp/sf_ceil.c (ceilf): New file.
5104         * libm/mathfp/sf_copysign.c (copysignf): New file.
5105         * libm/mathfp/sf_cos.c (cosf): New file.
5106         * libm/mathfp/sf_cosh.c (coshf): New file.
5107         * libm/mathfp/sf_exp.c (expf): New file.
5108         * libm/mathfp/sf_fabs.c (fabsf): New file.
5109         * libm/mathfp/sf_finite.c (finitef): New file.
5110         * libm/mathfp/sf_floor.c (floorf): New file.
5111         * libm/mathfp/sf_fmod.c (fmodf): New file.
5112         * libm/mathfp/sf_frexp.c (frexpf): New file.
5113         * libm/mathfp/sf_isinf.c (isinff): New file.
5114         * libm/mathfp/sf_isnan.c (isnanf): New file.
5115         * libm/mathfp/sf_ispos.c (isposf): New file.
5116         * libm/mathfp/sf_ldexp.c (ldexpf): New file.
5117         * libm/mathfp/sf_log.c (logf): New file.
5118         * libm/mathfp/sf_log10.c (log10f): New file.
5119         * libm/mathfp/sf_logarithm.c (logarithmf): New file.
5120         * libm/mathfp/sf_modf.c (modff): New file.
5121         * libm/mathfp/sf_numtest.c (numtestf): New file.
5122         * libm/mathfp/sf_pow.c (powf): New file.
5123         * libm/mathfp/sf_scalbn.c (scalbnf): New file.
5124         * libm/mathfp/sf_sin.c (sinf): New file.
5125         * libm/mathfp/sf_sine.c (sinef): New file.
5126         * libm/mathfp/sf_sineh.c (sinehf): New file.
5127         * libm/mathfp/sf_sinh.c (sinhf): New file.
5128         * libm/mathfp/sf_sqrt.c (sqrtf): New file.
5129         * libm/mathfp/sf_tan.c (tanf): New file.
5130         * libm/mathfp/sf_tanh.c (tanhf): New file.
5131         * libm/mathfp/zmath.h: New file.
5132
5133 Wed Sep  2 02:49:03 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
5134
5135         * libc/machine/sh/strcmp.S (L_char_loop): Re-load r0 at loop
5136         exit if it has been overwritten by pre-fetching in delay slot.
5137
5138 1998-09-01  Michael Meissner  <meissner@cygnus.com>
5139
5140         * Makefile.am (tooldir): Add in host_alias, so that multilib
5141         libraries are installed in the directory the compiler looks in.
5142         * Makefile.in: Regenerate.
5143
5144         * libc/stdlib/Makefile.in: Regenerate with automake version 1.3b.
5145
5146 Mon Aug 31 11:39:31 1998  Jeff Johnston  <jjohnstn@cygnus.com>
5147
5148         * libc/machine/mn10300/memcpy.S (_memcpy): Move alignment test
5149         ahead of test for number of bytes being moved.
5150
5151 Thu Aug 27 14:07:53 1998  Christopher Faylor <cgf@cygnus.com>
5152
5153         * libc/include/sys/unistd.h: Nothing special needed for
5154         _exit under cygwin.
5155
5156 Wed Aug 26 15:05:21 1998  Nick Clifton  <nickc@cygnus.com>
5157
5158         * libc/sys/arm/syscalls.c (_sbrk): Rename '_end' to 'end' to
5159         conform to user label naming conventions. 
5160
5161 Mon Aug 24 14:46:19 1998  Geoffrey Noer <noer@cygnus.com>
5162
5163         * libc/sys/cygwin32/sys/utime.h: variable names in
5164         protos should start with two leading underscores
5165         * libc/include/string.h: ditto
5166         * libc/include/sys/signal.h: ditto
5167         * libc/include/sys/stat.h: ditto
5168         * libc/include/sys/time.h: ditto
5169         * libc/include/sys/unistd.h: ditto
5170         * libc/include/ctype.h: ditto
5171         * libc/include/stdlib.h: ditto
5172         * libc/include/sys/reent.h: struct _atexit function ptr takes a
5173         void, same with _sig_func.
5174
5175 Fri Aug 21 14:44:14 1998  Jeff Johnston  <jjohnstn@cygnus.com>
5176
5177         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Added preprocessor checks
5178         for MB_CAPABLE to reduce code size when newlib is not configured
5179         with --enable-newlib-mb.
5180         * libc/stdlib/Makefile.am: Specified -fshort-enums when building
5181         mbtowc_r.o to minimize size.
5182         * libc/stdlib/Makefile.in: Rebuild.
5183         
5184 Wed Aug 19 16:20:13 1998  Jim Wilson  <wilson@cygnus.com>
5185
5186         * libc/sys/sparc64/Makefile.am (.S_r.o, .c_r.o): Change -DREENTRANT
5187         to -DREENT.
5188         * libc/sys/sparc64/Makefile.in: Rebuild.
5189         
5190 Tue Aug 18 22:38:29 1998  Ian Lance Taylor  <ian@cygnus.com>
5191
5192         * Makefile.am (MAKEOVERRIDES): Define.
5193         * Makefile.in: Rebuild.
5194
5195 Tue Aug 18 12:38:47 1998  Jim Wilson  <wilson@cygnus.com>
5196
5197         * libc/sys/sparc64/sys/stat.h (stat): Add const.
5198
5199 Mon Aug 17 22:27:06 1998  Ian Lance Taylor  <ian@cygnus.com>
5200
5201         * acinclude.m4 (NEWLIB_CONFIGURE): Use top_builddir in
5202         newlib_cflags when looking for targ-include.
5203         * */aclocal.m4, */configure: Rebuild.
5204
5205 Fri Jul 31 10:57:42 1998  Catherine Moore  <clm@cygnus.com>
5206
5207         * libc/sys/arm/syscalls.c (_sbrk): Change "__end__"
5208         to "_end".
5209
5210 Wed Jul 29 00:02:01 1998  Mark Alexander  <marka@cygnus.com>
5211
5212         * libc/include/sys/config.h: Define __IEEE_LITTLE_ENDIAN
5213         on SPARCs with little-endian data.
5214         * libc/include/machine/ieeefp.h: Ditto.
5215
5216 Wed Jul 22 18:00:10 1998  Ian Lance Taylor  <ian@cygnus.com>
5217
5218         * acinclude.m4: Handle a relative srcdir correctly when setting
5219         newlib_cflags.
5220         * */aclocal.m4, */configure: Rebuild.
5221
5222 Wed Jul 22 17:11:33 1998  Jeff Johnston  <jjohnstn@cygnus.com>
5223
5224         * libm/math/wrf_lgamma.c (lgammaf_r): Initialize exc.err to 0 and
5225         also set exc.arg1, exc.arg2 appropriately in case matherr is supplied.
5226         * libm/math/wrf_gamma.c (gammaf_r): ditto 
5227         * libm/math/wr_lgamma.c (lgamma_r): ditto 
5228         * libm/math/wr_gamma.c (gamma_r): ditto 
5229         * libm/math/wf_sqrt.c (sqrtf): ditto 
5230         * libm/math/wf_sinh.c (sinhf): ditto 
5231         * libm/math/wf_scalb.c (scalbf): ditto 
5232         * libm/math/wf_remainder.c (remainderf): ditto 
5233         * libm/math/wf_pow.c (powf): ditto 
5234         * libm/math/wf_log10.c (log10f): ditto 
5235         * libm/math/wf_log.c (logf): ditto 
5236         * libm/math/wf_lgamma.c (lgammaf): ditto 
5237         * libm/math/wf_jn.c (jnf, ynf): ditto 
5238         * libm/math/wf_j1.c (j1f, y1f): ditto 
5239         * libm/math/wf_j0.c (j0f, y0f): ditto 
5240         * libm/math/wf_hypot.c (hypotf): ditto 
5241         * libm/math/wf_gamma.c (gammaf): ditto 
5242         * libm/math/wf_fmod.c (fmodf): ditto 
5243         * libm/math/wf_exp.c (expf): ditto 
5244         * libm/math/wf_cosh.c (coshf): ditto 
5245         * libm/math/wf_atanh.c (atanhf): ditto 
5246         * libm/math/wf_atan2f.c (atan2f): ditto 
5247         * libm/math/wf_asin.c (asinf): ditto 
5248         * libm/math/wf_acosh.c (acoshf): ditto 
5249         * libm/math/wf_acos.c (acosf): ditto 
5250         * libm/math/w_sqrt.c (sqrt): ditto 
5251         * libm/math/w_sinh.c (sinh): ditto 
5252         * libm/math/w_scalb.c (scalb): ditto 
5253         * libm/math/w_remainder.c (remainder): ditto 
5254         * libm/math/w_pow.c (pow): ditto 
5255         * libm/math/w_log10.c (log10): ditto 
5256         * libm/math/w_log.c (log): ditto 
5257         * libm/math/w_lgamma.c (lgamma): ditto 
5258         * libm/math/w_jn.c (jn, yn): ditto 
5259         * libm/math/w_j1.c (j1, y1): ditto 
5260         * libm/math/w_j0.c (j0, y0): ditto 
5261         * libm/math/w_hypot.c (hypot): ditto 
5262         * libm/math/w_gamma.c (gamma): ditto 
5263         * libm/math/w_fmod.c (fmod): ditto 
5264         * libm/math/w_exp.c (exp): ditto 
5265         * libm/math/w_cosh.c (cosh): ditto 
5266         * libm/math/w_atanh.c (atanh): ditto 
5267         * libm/math/w_atan2f.c (atan2): ditto 
5268         * libm/math/w_asin.c (asin): ditto 
5269         * libm/math/w_acosh.c (acosh): ditto 
5270         * libm/math/w_acos.c (acos): ditto 
5271
5272 Tue Jul 21 12:34:54 1998  Ian Lance Taylor  <ian@cygnus.com>
5273
5274         * libm/math/Makefile.am (src): Add w_cabs.c and w_drem.c.
5275         (fsrc): Add wf_cabs.c and wf_drem.c.
5276         * libm/math/Makefile.in: Rebuild.
5277
5278         * Makefile.am (AM_MAKEFLAGS): Add CFLAGS_FOR_BUILD.  Remove some
5279         unused directory variables.  Remove duplicate CFLAGS.
5280         * Makefile.in: Rebuild.
5281
5282         * doc/Makefile.am ($(MKDOC)): Don't use $(CFLAGS) when building
5283         with $(CC_FOR_BUILD).
5284         (makedoc.o): Likewise.
5285         * doc/Makefile.in: Rebuild.
5286
5287         * libc/sys/cygwin32/Makefile.am (EXTRA_LIBRARIES): Define, to
5288         force a definition of COMPILE.
5289         (libfoo_a_SOURCES): Define.
5290         * libc/sys/cygwin32/Makefile.in: Rebuild.
5291         * libc/sys/tic80/Makefile.am (EXTRA_LIBRARIES): Define, to
5292         force a definition of COMPILE.
5293         (libfoo_a_SOURCES): Define.
5294         * libc/sys/tic80/Makefile.in: Rebuild.
5295
5296 Mon Jul 20 20:49:24 1998  Christopher Faylor <cgf@cygnus.com>
5297
5298         * libc/include/sys/fcntl.h: Add O_NOINHERIT, Win32-specific
5299         flag.
5300
5301 Fri Jul 17 16:13:16 1998  Ian Lance Taylor  <ian@cygnus.com>
5302
5303         * Build using autoconf and automake.  Added many Makefile.am and
5304         configure.in files, plus generated files.  Old configure.in files
5305         and all old Makefile.in files completely replaced.  Removed
5306         host/any.  Added acinclude.m4 and configure.host.
5307
5308 Sat Jul 11 18:14:49 1998  Felix Lee  <flee@cygnus.com>
5309
5310         * libc/stdio/vfprintf.c: enable long long support, sometimes.
5311         * configure.in (*-*-cygwin32): add -DWANT_PRINTF_LONG_LONG.
5312
5313 Tue Jul  7 01:51:55 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
5314
5315         * libc/machine/sh/strcmp.S, libc/machine/sh/strcpy.S: New files.
5316         * libc/machine/sh/Makefile.in: Add rules for new files.
5317
5318 Tue Jul  7 01:40:55 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
5319
5320         * libc/machine/sh/asm.h (SL, DELAYED_BRANCHES): Define.
5321         * libc/machine/sh/memset.S (memset): Remove uses of dt; shorten code.
5322         * libc/machine/sh/memcpy.S (SL, DELAYED_BRANCHES): Don't define.
5323
5324 Thu Jul  2 10:33:16 1998  Nick Clifton  <nickc@cygnus.com>
5325
5326         * libc/sys/arm/syscalls.c (_exit): Add comment, noting that exit
5327         code is ignored.
5328
5329 Wed Jun 24 13:56:54 1998  Jeff Johnston  <jjohnstn@cygnus.com>
5330
5331         * libc/stdio/tmpnam.c (_tmpnam_r): Changed routine to use
5332         internal static buffer when s is NULL, as prescribed by ANSI.
5333
5334 1998-06-22  Vladimir N. Makarov  <vmakarov@cygnus.com>
5335
5336         * libc/sys/h8300hms/Makefile.in (OFILES): malloc.o has been
5337         removed.
5338         * libc/sys/h8300hms/malloc.c: has been removed.  Now malloc.c from
5339         libc/stdlib will be used for h8300hms.
5340         
5341 Thu Jun 18 16:56:05 1998  Jeff Johnston  <jjohnstn@cygnus.com>
5342
5343         * libc/machine/mn10300/strlen.S (_strlen): New optimized assembler
5344         version that can be built either for speed or size.
5345         * libc/machine/mn10300/memset.S (_memset): ditto
5346         * libc/machine/mn10300/memchr.S (_memchr): ditto
5347         * libc/machine/mn10300/memcpy.S (_memcpy): ditto
5348         * libc/machine/mn10300/memcmp.S (_memcmp): ditto
5349         * libc/machine/mn10300/strchr.S (_strchr): ditto
5350         * libc/machine/mn10300/strcmp.S (_strcmp): ditto
5351         * libc/machine/mn10300/strcpy.S (_strcpy): ditto
5352         * libc/machine/mn10300/Makefile.in: Added entries for
5353         memchr.o, memcmp.o, memcpy.o, memset.o, strchr.o, 
5354         strcmp.o, strcpy.o, and strlen.o.
5355
5356 Wed Jun 17 12:50:26 1998  Mark Alexander  <marka@cygnus.com>
5357
5358         * configure.in: Don't use libc/sys/sysmec for MN10200; it's
5359         been replaced with libgloss/mn10200.
5360
5361 Fri Jun 12 14:34:39 1998  Michael Meissner  <meissner@cygnus.com>
5362
5363         * libc/string/strchr.c (strchr): Make s a constant pointer to
5364         avoid warning.
5365
5366 Tue Jun  9 16:29:30 1998  Jason Molenda  (crash@bugshack.cygnus.com)
5367
5368         * configure.in (target == arm* or thumb*): Define ARM_RDI_MONITOR
5369         instead of ARM_RDP_MONITOR (sys/libc/arm/crt0.S to assume Angel
5370         board SWIs instead of Demon board SWIs).
5371
5372 Thu Jun  4 12:16:46 1998  Michael Meissner  <meissner@cygnus.com>
5373
5374         * libc/string/strncat.c (strncat):  Make -Os act the same as
5375         PREFER_SIZE_OVER_SPEED being defined.
5376
5377 Wed Jun  3 17:52:33 1998  Michael Meissner  <meissner@cygnus.com>
5378
5379         * libc/string/memchr.c (memchr): Make -Os act the same as
5380         PREFER_SIZE_OVER_SPEED being defined.
5381         * libc/string/memcmp.c (memcmp): Ditto.
5382         * libc/string/memcpy.c (memcpy): Ditto.
5383         * libc/string/memset.c (memset): Ditto.
5384         * libc/string/strcat.c (strcat): Ditto.
5385         * libc/string/strchr.c (strchr): Ditto.
5386         * libc/string/strcmp.c (strcmp): Ditto.
5387         * libc/string/strcpy.c (strcpy): Ditto.
5388         * libc/string/strlen.c (strlen): Ditto.
5389         * libc/string/strncat.c (strncat): Ditto.
5390         * libc/string/strncmp.c (strncmp): Ditto.
5391         * libc/string/strncpy.c (strncpy): Ditto.
5392
5393 Mon Jun  1 15:25:07 1998  Geoffrey Noer  <noer@cygnus.com>
5394
5395         * libc/include/sys/itimer.h: remove
5396         * libc/include/sys/time.h: itimer stuff should be here
5397
5398 Mon Jun  1 16:31:29 1998  Jeff Johnston  <jjohnstn@cygnus.com>
5399
5400         * libc/stdio/vfprintf.c (cvt): Changed code to look at sign
5401         bit instead of comparing to 0 so -0.0 can be printed correctly.
5402
5403 Sat May 30 09:33:51 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
5404
5405         * libc/stdlib/mprec.c (b2d): Inilialize d in non-VAX case too.
5406
5407 Fri May 29 22:25:10 1998  Geoffrey Noer  <noer@cygnus.com>
5408
5409         * libc/include/sys/unistd.h: fix sync() proto
5410         * libc/include/sys/fcntl.h: remove _close which is already
5411         defined in unistd.h.
5412         * libc/include/sys/time.h: add getitimer proto
5413
5414 Fri May 29 16:10:28 1998  Geoffrey Noer  <noer@cygnus.com>
5415
5416         * libc/string/strchr.c: convert arg to unsigned char
5417         * libc/include/stdlib.h: add protos for random, srandom
5418         * libc/include/sys/stat.h: add lstat proto
5419         * libc/include/sys/time.h: add setitimer proto
5420         * libc/include/sys/unistd.h: add readlink, symlink protos
5421         * libc/include/process.h: instead of including windows.h and using
5422         HANDLEs in sexec protos, just use void *s.  Need to include
5423         sys/types.h.
5424
5425 Fri May 29 03:04:29 1998  Geoffrey Noer  <noer@cygnus.com>
5426
5427         * libc/include/sys/fcntl.h: add _close proto for Cygwin32
5428
5429 Thu May 28 16:34:21 1998  Geoffrey Noer  <noer@cygnus.com>
5430
5431         * libc/include/process.h: add secure exec protos
5432
5433 Wed May 27 13:54:51 1998  Jeffrey A Law  (law@cygnus.com)
5434
5435         * libc/stdlib/dtoa.c (_dtoa_r): Use "double_union" for variables
5436         which are accessed as both doubles and integers.
5437         * libc/stdlib/mprec.c (ulp, b2d, ratio): Likewise.
5438         * libc/stdlib/strtod.c (_strtod_r): Likewise.
5439         * libc/stdlib/mprec.h: Add "union double_union" and change
5440         word0/word1 macros to use it.
5441
5442 Tue May 26 18:04:21 1998  Geoffrey Noer  <noer@cygnus.com>
5443
5444         * libc/include/sys/signal.h: add __cplusplus wrapper
5445
5446 Tue May 26 15:10:22 1998  Geoffrey Noer  <noer@cygnus.com>
5447
5448         * libc/include/sys/utime.h: new generic file that gets replaced by
5449         libc/sys/SYSDIR/sys/utime.h on systems that support the utime
5450         function.
5451         * sys/cygwin32/sys/utime.h: use _EXFUN in utime proto
5452         * libc/include/time.h: remove duplicate utime proto
5453         * libc/include/utime.h: add comment
5454
5455 Sun May 24 23:56:20 1998  Christopher Faylor <cgf@cygnus.com>
5456
5457         * libc/include/sys/time.h: Add missing include to
5458         allow use of _EXFUN.  Remove times function that is
5459         already defined in times.h.
5460
5461 Sun May 24 01:32:14 1998  Christopher Faylor <cgf@cygnus.com>
5462
5463         * libc/include/time.h: Fix typo in tzset.
5464
5465 Fri May 22 17:00:48 1998  Geoffrey Noer  <noer@cygnus.com>
5466
5467         * libc/include/sys/time.h: add missing Cygwin32 function protos
5468         * libc/include/sys/unistd.h: ditto
5469         * libc/include/time.h: ditto
5470
5471 Wed May 20 20:35:11 1998  Geoffrey Noer  <noer@cygnus.com>
5472
5473         * libc/sys/cygwin32/sys/param.h: add protected NULL def, remove
5474         FIXME.
5475         * libc/include/sys/types.h: add a new __MS_types__ section
5476         to define vm_offset_t, vm_size_t, int32_t et al, register_t,
5477         __BIT_TYPES_DEFINED__.
5478
5479 Wed May 20 18:49:21 1998  Geoffrey Noer  <noer@cygnus.com>
5480
5481         * libc/sys/cygwin32/sys/param.h: move here from winsup/include/sys
5482         since it overrides the one in libc/include/sys.  Also, start
5483         including types.h.
5484
5485 Wed May 20 14:45:40 1998  Geoffrey Noer  <noer@cygnus.com>
5486
5487         * libm/math/Makefile.in: add s_signgam.o to obj list
5488
5489 Tue May 19 11:57:11 1998  Jeff Johnston  <jjohnstn@cygnus.com>
5490
5491         * libc/include/sys/reent.h (_REENT_INIT): Initialize current locale to "C".
5492
5493 Mon May 18 22:36:12 1998  Christopher Faylor <cgf@cygnus.com>
5494
5495         * libc/include/sys/signal.h: cygwin32 exports sig{empty,add}set,
5496         so don't use defines.
5497
5498 Mon May 18 19:01:02 1998  Michael Meissner  <meissner@cygnus.com>
5499
5500         * libc/sys/d10v/crt0.S: Use correct stab for 16-bit ints.
5501
5502 Sun May 17 18:40:32 1998  Frank Ch. Eigler  <fche@cygnus.com>
5503
5504         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Accept a NULL
5505         _current_locale as default locale.
5506
5507 Sat May 16 21:59:59 1998  Bob Manson  <manson@charmed.cygnus.com>
5508
5509         * libc/stdlib/mallocr.c (mALLOc): Add explicit tests for
5510         insufficient space in a chunk.
5511
5512 Tue May 12 14:41:01 1998  Jeff Johnston  <jjohnstn@cygnus.com>
5513
5514         * configure.in (links): Added check for --enable-newlib-mb configure
5515         option which defines the MB_CAPABLE macro.
5516         * libc/locale/locale.c (_setlocale_r): Added support for setting
5517         LC_CTYPE to "C-JIS", "C-SJIS" or "C-EUCJP", when MB_CAPABLE is
5518         defined.
5519         * libc/stdlib/mbtowc_r.c (_mbtowc_r): New function _mbtowc_r that
5520         implements mbtowc() with multibyte support for JIS, SJIS, and EUC-JP.
5521         * libc/stdlib/wctomb_r.c (_wctomb_r): New function _wctomb_r that
5522         implements wctomb() with multibyte support for JIS, SJIS, and EUC-JP.
5523         * libc/stdlib/mbstowcs_r.c (_mbstowcs_r): New function _mbstowcs_r that
5524         implements mbstowcs() with multibyte support for JIS, SJIS, and EUC-JP.
5525         * libc/stdlib/wcstombs_r.c (_wcstombs_r): New function _wcstomb_r that implements
5526         wcstombs() with multibyte support for JIS, SJIS, and EUC-JP.
5527         * libc/stdlib/Makefile.in: Added new multibyte
5528         routines: _mbtowc_r(), _wctomb_r(), _mbstowcs_r(), and _wcstombs_r().
5529         * libc/include/stdlib.h: Added declarations of _mbtowc_r(), _wctomb_r(),
5530         _mbstowcs_r(), and _wcstombs_r().
5531         * libc/stdlib/mbctype.h: New internal header file that contains macros to test
5532         for JIS, SJIS, and EUC-JP characters.
5533         * libc/stdlib/mblen.c (mblen): Added code to call _mbtowc_r() if
5534         MB_CAPABLE defined.
5535         * libc/stdlib/mbtowc.c (mbtowc): Added code to call _mbtowc_r() if
5536         MB_CAPABLE defined.
5537         * libc/stdlib/wctomb.c (wctomb): Added code to call _wctomb_r() if
5538         MB_CAPABLE defined.
5539         * libc/stdlib/mbstowcs.c (mbstowcs): Added code to call _mbstowcs_r()
5540         if MB_CAPABLE defined.
5541         * libc/stdlib/wcstombs.c (wcstombs): Added code to call _wcstombs_r()
5542         if MB_CAPABLE defined.
5543         * libc/stdio/vfscanf.c (__svfscanf): Added multibyte tolerance
5544         to the format string processing when MB_CAPABLE.
5545         * libc/stdio/vfprintf.c (_VFPRINTF_R): Changed mbtowc() call to
5546         call _mbtowc_r().
5547
5548 Tue May  5 16:07:23 1998  Nick Clifton  <nickc@cygnus.com>
5549
5550         The following modifications are courtesy of Anthony Thompson,
5551         athompson@cambridge.arm.com:
5552         * libc/sys/arm/syscalls.c: Initialise and track stdin/out/err for
5553         boith RDI and RDP monitors.
5554         * libc/sys/arm/crt0.S: Call initialise_monitor_handles() for both
5555         RDI and RDP monitors.
5556
5557 Wed Apr 29 15:22:15 1998  Jeff Johnston  <jjohnstn@cygnus.com>
5558
5559         * configure.in (links): Added -DHAVE_GETTIMEOFDAY for arm and thumb.
5560         * libc/sys/arm/syscalls.c (_gettimeofday _times): Added functions.
5561         (_swiopen): Fixed open flags to treat write with append as just append.
5562         (_swilseek): Fixed lseek support to properly handle offsets from SEEK_END.
5563         * libc/sys/arm/sys/param.h: New file to override param.h for ARM.
5564
5565 Fri Apr 24 18:00:09 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
5566
5567         * libc/machine/sh/memcpy.S (L_odddst, big endian version):
5568         When needing to transfer an initial 2-byte-word, store as
5569         two single bytes.
5570
5571 Wed Apr 22 17:56:03 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
5572
5573         * libc/sys/sh/crt0.S (start): Handle __SH4_SINGLE_ONLY__ like
5574         __SH3E__ .
5575         * libc/machine/sh/memcpy.S (DELAYED_BRANCHES, SL): Likewise.
5576         * libc/include/machine/ieeefp.h (_DOUBLE_IS_32BITS): Likewise.
5577
5578 Wed Apr 22 12:28:03 1998  Michael Meissner  <meissner@cygnus.com>
5579
5580         * configure.in (target_cflags): If --enable-target-optspace, use
5581         -Os to compile newlib rather than -O2.  Default to using -Os for
5582         d10v, d30v and m32r if --{enable,disable}-target-optspace is not
5583         used.
5584
5585 Tue Apr 21 23:13:34 1998  Geoffrey Noer  <noer@cygnus.com>
5586
5587         * libc/include/machine/setjmp.h: change sigsetjmp and
5588         siglongjmp definitions to use an array instead of a struct
5589         for __CYGWIN32__
5590
5591 Tue Apr 14 11:47:47 1998  Doug Evans  <devans@canuck.cygnus.com>
5592
5593         * libc/reent/impure.c (__ATTRIBUTE_IMPURE_DATA__): Fix spelling.
5594
5595 Mon Apr  6 15:05:08 1998  Jonathan Larmour  <jlarmour@cygnus.co.uk>
5596
5597         * libc/string/strxfrm.c: fix to get correct return value
5598
5599 Wed Apr  1 16:09:05 1998  Nick Clifton  <nickc@cygnus.com>
5600
5601         * libc/sys/arm/crt0.S: Set top of RAM to be 0x800000 for PE
5602         builds.  Make mode change labels global so that they will be seen
5603         by the debugger.
5604
5605 Wed Mar 18 09:45:10 1998  Nick Clifton  <nickc@cygnus.com>
5606
5607         * configure.in (links): Do not use ARM debiugging protocols for PE
5608         builds.
5609
5610         * libc/sys/arm/syscalls.c (_sbrk): Add "_sbrk: " to error
5611         message. 
5612
5613 Fri Mar 13 11:24:34 1998  Jeff Johnston  <jjohnstn@cygnus.com>
5614
5615         * libc/stdio/findfp.c (__sinit): Made stdout default to
5616         line buffered mode as defined by ANSI.
5617
5618 Tue Mar 10 11:41:26 1997  Bob Manson  <manson@charmed.cygnus.com>
5619
5620         * libc/include/sys/itimer.h: New file.
5621
5622         * libc/signal/signal.c (__sigtramp_r,__sigtramp): New functions.
5623
5624 Mon Mar  9 14:19:26 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
5625
5626         * libc/machine/sh/memcpy.S: (_memcpy): Fix for execute/memcpy-1.c
5627         failure.
5628
5629 Fri Feb 27 13:56:10 1998  Michael Meissner  <meissner@cygnus.com>
5630
5631         * libc/machine/d30v/setjmp.S (longjmp): Fix order of parallel
5632         insns.
5633
5634 Wed Feb 25 09:29:54 1998  Nick Clifton  <nickc@cygnus.com>
5635
5636         * libc/sys/arm/syscalls.c (_open): Add varags to conform to prototype.
5637
5638 Tue Feb 24 18:00:13 1998  Michael Meissner  <meissner@cygnus.com>
5639
5640         * libc/machine/d30v/{setjmp.S,Makefile.in}: New files for D30V
5641         support.
5642
5643         * libc/include/machine/setjmp.h: Add D30V support.
5644
5645         * configure.in (d30v-*): Add d30v machine directory.
5646
5647 Mon Feb 23 09:32:58 1998  Mark Alexander  <marka@cygnus.com>
5648
5649         * configure.in: Don't use libc/sys/sysmec for MN10300; it's
5650         been replaced with libgloss/mn10300.
5651
5652 Sat Feb 21 17:44:43 1998  Geoffrey Noer  <noer@cygnus.com>
5653
5654         * libc/stdlib/mallocr.c: remove __malloc_copy routine now that
5655         it is no longer needed.
5656
5657 Thu Feb 19 16:15:10 1998  Geoffrey Noer  <noer@cygnus.com>
5658
5659         * libc/include/sys/signal.h: add sigpause proto for Cygwin32
5660
5661 Wed Feb 18 23:51:08 1998  Geoffrey Noer  <noer@cygnus.com>
5662
5663         * libc/stdio/fdopen.c (fdopen): Make all writes go to the end of
5664         the file when O_APPEND is set, wherever the EOF happens to be at
5665         that time. 
5666
5667 Wed Feb 18 23:25:02 1998  Geoffrey Noer  <noer@cygnus.com>
5668         
5669         patch from cgf@bbc.com (Christopher Faylor):
5670         * libc/stdio/freopen.c (freopen): Conform to standard UNIX
5671         convention of closing fp prior to attempting to open the file
5672         argument.  This allows correct operation when reopening
5673         stdin/stdout/stderr.  Replaces last freopen.c patch.
5674
5675 Wed Feb 18 16:27:40 1998  Geoffrey Noer  <noer@cygnus.com>
5676
5677         patch from cgf@bbc.com (Christopher Faylor):
5678         * libc/stdio/freopen.c: freopen was not preserving the fd
5679         of the stream being operated on.  This confuses programs that
5680         expect that the handles for stdout and stderr will be 1 and 2.
5681
5682 Mon Feb 16 23:34:07 1998  Andrew Cagney  <cagney@b1.cygnus.com>
5683
5684         * libc/sys/d10v/crt0.S (_start): Set PSW{SW} - select SPU.
5685
5686 Thu Feb 12 15:09:20 1998  Ranjith Kumaran <ranjith@cygnus.com>
5687
5688         * libc/sys/go32/longjmp.S: Fix longjmp to not return 0.
5689
5690 Wed Feb 11 17:50:45 1998  Jeff Johnston  <jjohnstn@cygnus.com>
5691
5692         * libc/machine/powerpc/setjmp.S (setjmp, longjmp): Alignment code
5693         altered to not use a branch.  Also added hint that last
5694         bclr in longjmp will likely result in branch.
5695         
5696
5697 Mon Feb  9 03:44:02 1998  Geoffrey Noer  <noer@cygnus.com>
5698
5699         * libc/sys/cygwin32/crt0.c: add missing args to main() extern
5700
5701 Fri Feb  6 16:32:32 1998  Nick Clifton  <nickc@cygnus.com>
5702
5703         * libc/sys/sysnecv850/crt0.S (_start): Initialise _ctbp even for
5704         v850 builds.
5705
5706         * configure.in: Add -msmall-sld to target_cflags for v850 builds. 
5707
5708 Wed Feb  4 16:56:20 1998  Jeff Johnston  <jjohnstn@cygnus.com>
5709
5710         * libc/machine/powerpc/setjmp.S (longjmp): Fixed code
5711         that loads FR14 to specify offset of 8 rather than 4
5712         so it loads from offset 96 (where setjmp stored it).
5713
5714 Tue Feb  3 18:08:34 1998  Jeff Johnston  <jjohnstn@cygnus.com>
5715
5716         * libc/machine/sh/memcpy.S: (_memcpy): Update to
5717         latest version supplied by customer.
5718         * libc/machine/sh/memset.S (_memset): Ditto.
5719
5720 Mon Feb  2 16:20:39 1998  Nick Clifton  <nickc@cygnus.com>
5721
5722         * libc/sys/sysnecv850/Makefile.in (OFILES): Add link.o (for
5723         PR14730). 
5724
5725 Mon Feb  2 15:13:26 1998  Geoffrey Noer  <noer@cygnus.com>
5726
5727         * libc/include/string.h: remove redefinition of ffs
5728
5729 Wed Jan 28 13:30:14 1998  Geoffrey Noer  <noer@cygnus.com>
5730
5731         * libc/include/sys/signal.h: include _ansi.h so _EXFUN is
5732         defined
5733
5734 Wed Jan 28 10:38:34 1998  Jeff Johnston  <jjohnstn@cygnus.com>
5735
5736         * libc/machine/tic80/setjmp.S: Adding _setjmp to allow
5737         TI Libraries to link to libc.a
5738         
5739 Sat Jan 24 10:15:56 1998  Michael Meissner  <meissner@cygnus.com>
5740
5741         * libc/include/sys/fcntl.h (_open,_fcntl): Add prototypes.
5742         * libc/include/sys/stat.h (_{,f}stat): Ditto.
5743         * libc/include/sys/wait.h (_wait): Ditto.
5744         * libc/include/sys/unistd.h (_close,_fork,_getpid): Ditto.
5745         (_link,_lseek,_read,_sbrk,_unlink,_write): Ditto.
5746
5747 Fri Jan 23 11:32:10 1998  Michael Meissner  <meissner@cygnus.com>
5748
5749         * libc/machine/d10v/setjmp.S: Change to new ABI.  Add simple
5750         minded stabs so function name shows up when running the simulator
5751         with -t.
5752         * libc/sys/d10v/{crt0,trap}.S: Ditto.
5753
5754 Thu Jan 22 15:57:14 1998  Fred Fish  <fnf@cygnus.com>
5755
5756         * libc/sys/d10v/trap.S: Change syscalls to use trap 15. 
5757         * libc/sys/d10v/crt0.S: Use R6 where we used to use R2.
5758         Use R5 where we used to use R3.
5759         
5760 Wed Jan 21 14:22:23 1998  Bill Moyer <billm@cygnus.com>
5761
5762         * libc/stdlib/getopt.c (getopt): replaced __progname
5763         with nargv[0] to improve portability to imbedded systems.
5764
5765 Thu Jan 15 12:32:38 1998  Nick Clifton  <nickc@cygnus.com>
5766
5767         * libc/sys/arm/syscalls.c (initialise_angel_handles): Applied
5768         patch supplied by Tont.Thompson@arm.com to fix the creation of the
5769         stdout file.
5770
5771 Wed Jan 14 13:00:19 1998  Ian Lance Taylor  <ian@cygnus.com>
5772
5773         * libc/stdio/tmpnam.c (worker): Generate a different file name
5774         each time.
5775
5776         * libc/posix/popen.c (popen): If __CYGWIN32__, and execing /bin/sh
5777         fails, try an execlp for sh.
5778
5779         * host/any (INCLUDES): If target_os is cygwin32, then add a -I
5780         option for the winsup include directory.
5781
5782 Wed Jan  7 17:02:58 1998  Nick Clifton  <nickc@cygnus.com>
5783
5784         * libc/sys/arm/syscalls.c: Applied patches for Angel based remote
5785         debugging interface from Tony.Thompson@arm.com.
5786         
5787         * libc/sys/arm/crt0.S (_mainCRTStartup): ditto.
5788         * libc/sys/arm/swi.h: ditto.
5789
5790 Tue Jan  6 14:15:10 1998  Geoffrey Noer  <noer@cygnus.com>
5791
5792         * libc/sys/cygwin32/sys/dirent.h: add __d_dirhash field to
5793         DIR struct used for readdir hashes.
5794
5795 Thu Jan  1 11:22:22 1998  Jeffrey A Law  (law@cygnus.com)
5796
5797         * libc/string/strchr.c: Use "unsigned chars" as necessary.
5798
5799 Wed Dec 31 04:25:30 1997  Jeffrey A Law  (law@cygnus.com)
5800
5801         * libc/stdlib/mallocr.c (idx2binblock): Don't lose on 16bit
5802         integer targets.
5803
5804 Sat Dec 13 15:11:06 1997  Ian Lance Taylor  <ian@cygnus.com>
5805
5806         * libc/stdlib/mallocr.c (__malloc_copy): New function, compiled if
5807         INTERNAL_NEWLIB and __CYGWIN32__ and DEFINE_MALLOC.
5808         * libc/include/malloc.h: Add extern "C" if __cplusplus.
5809         (__malloc_copy): Declare.
5810
5811 Wed Dec 10 12:15:54 1997  Ian Lance Taylor  <ian@cygnus.com>
5812
5813         * libc/stdlib/mallocr.c: If INTERNAL_NEWLIB, include
5814         <sys/config.h>.
5815         (POINTER_UINT): Define.
5816         (DEFAULT_TRIM_THRESHOLD): Mark constants as long.
5817         (MALLOC_ALIGNMENT): Don't define if already defined.
5818         (malloc_extend_top): Cast pointers to POINTER_UINT, not unsigned
5819         long.
5820
5821 Tue Dec  9 19:23:42 1997  Michael Meissner  <meissner@cygnus.com>
5822
5823         * libc/string/memset.c (memset): Fiddle with code so that the long
5824         value being stored is not a stack value.  Unroll storing longs 4
5825         times.
5826
5827 Tue Dec  9 14:13:18 1997  Jeff Johnston  <jjohnstn@cygnus.com>
5828
5829         * Reduce code size for libm modules.
5830         * libm/math/w_sqrt.c (sqrt): Remove call to kernel_standard
5831         and simply move code into sqrt.
5832         * libm/math/wrf_lgamma.c (lgammaf_r): Likewise.
5833         * libm/math/wr_lgamma.c (lgamma_r): Likewise.
5834         * libm/math/wrf_gamma.c (gammaf_r): Likewise.
5835         * libm/math/wr_gamma.c (gamma_r): Likewise.
5836         * libm/math/wf_sinh.c (sinfh): Likewise.
5837         * libm/math/w_sinh.c (sinh): Likewise.
5838         * libm/math/wf_scalb.c (scalbf): Likewise.
5839         * libm/math/w_scalb.c (scalb): Likewise.
5840         * libm/math/wf_remainder.c (remainderf): Likewise.
5841         * libm/math/w_remainder.c (remainder): Likewise.
5842         * libm/math/wf_pow.c (powf): Likewise.
5843         * libm/math/w_pow.c (pow): Likewise.
5844         * libm/math/wf_log10.c (log10f): Likewise.
5845         * libm/math/w_log10.c (log10): Likewise.
5846         * libm/math/wf_log.c (logf): Likewise.
5847         * libm/math/w_log.c (log): Likewise.
5848         * libm/math/w_lgamma.c (lgamma): Likewise.
5849         * libm/math/wf_lgamma.c (lgammaf): Likewise.
5850         * libm/math/wf_jn.c (jnf): Likewise.
5851         * libm/math/w_jn.c (jn): Likewise.
5852         * libm/math/wf_j1.c (j1f): Likewise.
5853         * libm/math/w_j1.c (j1): Likewise.
5854         * libm/math/wf_j0.c (j0f): Likewise.
5855         * libm/math/w_j0.c (j0): Likewise.
5856         * libm/math/wf_hypot.c (hypotf): Likewise.
5857         * libm/math/w_hypot.c (hypot): Likewise.
5858         * libm/math/wf_gamma.c (gammaf): Likewise.
5859         * libm/math/w_gamma.c (gamma): Likewise.
5860         * libm/math/wf_fmod.c (fmodf): Likewise.
5861         * libm/math/w_fmod.c (fmod): Likewise.
5862         * libm/math/wf_exp.c (expf): Likewise.
5863         * libm/math/w_exp.c (exp): Likewise.
5864         * libm/math/wf_cosh.c (coshf): Likewise.
5865         * libm/math/w_cosh.c (cosh): Likewise.
5866         * libm/math/wf_atanh.c (atanhf): Likewise.
5867         * libm/math/w_atanh.c (atanh): Likewise.
5868         * libm/math/wf_atan2.c (atan2f): Likewise.
5869         * libm/math/w_atan2.c (atan2): Likewise.
5870         * libm/math/wf_asin.c (asinf): Likewise.
5871         * libm/math/w_asin.c (asin): Likewise.
5872         * libm/math/wf_acosh.c (acoshf): Likewise.
5873         * libm/math/w_acosh.c (acosh): Likewise.
5874         * libm/math/wf_acos.c (asocf): Likewise.
5875         * libm/math/w_acos.c (acos): Likewise.
5876         * libm/math/wf_sqrt.c (sqrtf): Likewise.
5877         * libm/math/k_standard.c (_k_standard): Don't require SVID behavior
5878         for embedded systems.
5879
5880 Mon Dec  8 12:12:58 1997  Ian Lance Taylor  <ian@cygnus.com>
5881
5882         * libc/stdlib/mallocr.c (malloc_extend_top): Add patch from Doug
5883         Lea in case of a foreign sbrk.
5884
5885 Fri Dec  5 23:27:28 1997  Ian Lance Taylor  <ian@cygnus.com>
5886
5887         Incorporate Doug Lea's malloc:
5888         * libc/stdlib/mallocr.c: Completely replaced.
5889         * libc/stdlib/malloc.c: Document malloc_usable_size and memalign.
5890         (realloc): Remove.
5891         * libc/stdlib/calloc.c (calloc): Just call _calloc_r.
5892         * libc/stdlib/mstats.c: Document mallinfo, malloc_stats, and
5893         mallopt.
5894         (mallinfo, malloc_stats, mallopt): New functions.
5895         (_mstats_r): Just call _malloc_stats_r.
5896         * libc/stdlib/malign.c: New file.
5897         * libc/stdlib/mlock.c: New file.
5898         * libc/stdlib/msize.c: New file.
5899         * libc/stdlib/mtrim.c: New file.
5900         * libc/stdlib/realloc.c: New file.
5901         * libc/stdlib/valloc.c: New file.
5902         * libc/stdlib/malloc.h: Remove.
5903         * libc/stdlib/callocr.c: Remove.
5904         * libc/stdlib/Makefile.in (OFILES): Add cfreer.o, freer.o,
5905         malign.o, malignr.o, mallinfor.o, malloptr.o, mallstatsr.o,
5906         mlock.o, msize.o, msizer.o, mtrim.o, pvallocr.o, realloc.o,
5907         reallocr.o, valloc.o, vallocr.o.
5908         (CHEWOUT_FILES): Add mlock.def, mstats.def.
5909         (MALLOC_CFLAGS): New variable.
5910         (mallocr.o): New target, build from mallocr.c.
5911         (freer.o, reallocr.o, callocr.o, cfreer.o, malignr.o): Likewise.
5912         (vallocr.o, pvallocr.o, mallinfor.o, mallstatsr.o): Likewise.
5913         (msizer.o, malloptr.o): Likewise.
5914         (malign.o, mlock.o, msize.o, mtrim.o, realloc.o): New targets.
5915         (valloc.o): New target.
5916         * libc/stdlib/stdlib.tex: Include mlock.def and mstats.def.
5917         * libc/include/malloc.h: Declare struct mallinfo, and new
5918         routines.
5919         * libc/include/stdlib.h (cfree): Correct declaration.
5920
5921 Tue Dec  2 10:12:16 1997  Nick Clifton  <nickc@cygnus.com>
5922
5923         * libc/include/machine/setjmp.h: Add support for Thumb target.
5924
5925         * libc/include/machine/ieeefp.h: Add support for Thumb target.
5926
5927         * configure.in (links): Add support for Thumb target.
5928
5929 Wed Nov 26 09:56:17 1997  Nick Clifton  <nickc@cygnus.com>
5930
5931         * libc/sys/arm/setjmp.S: Updated with version from branch.
5932
5933 Thu Nov 20 01:21:43 1997  Geoffrey Noer  <noer@cygnus.com>
5934
5935         * libc/include/stdio.h: add POSIX-required define L_ctermid
5936         for ctermid
5937
5938 Wed Nov 19 16:11:40 1997  Michael Meissner  <meissner@cygnus.com>
5939
5940         * configure.in (d30v-*-*): Define ABORT_MESSAGE, SMALL_MEMORY, in
5941         addition to MISSING_SYSCALL_NAMES.
5942
5943 Mon Nov 17 20:05:05 1997  J"orn Rennecke <amylaar@cygnus.co.uk>
5944
5945         * libc/include/sys/config.h: (UINT_MAX, for D10V):  Make unsigned.
5946
5947 Mon Nov 10 22:26:55 1997  Geoffrey Noer  <noer@cygnus.com>
5948
5949         * libc/include/string.h: change strsignal proto to return
5950         a char *.  This eliminates compile problems in gdb resulting
5951         from gdb's definition of strsignal in defs.h.
5952
5953 Mon Nov 10 17:11:08 1997  Geoffrey Noer  <noer@cygnus.com>
5954
5955         * libc/sys/cygwin32/sys/utime.h: new (moved here from
5956         winsup/include) so as not to conflict with the one in
5957         libc/include.
5958         * libc/include/string.h: add protos for strsignal, strtosigno
5959
5960 Mon Nov 10 13:49:54 1997  Michael Meissner  <meissner@cygnus.com>
5961
5962         * libc/include/sys/config.h: Define __IEEE_BIG_ENDIAN if d30v.
5963
5964         * configure.in (d30v-*-*): Add configuration.
5965
5966 Thu Oct 30 14:01:23 1997  Nick Clifton  <nickc@cygnus.com>
5967
5968         * configure.in (links): Add -DARM_RD[P|I]_MONITOR to target_cflags
5969         to select which kind of debug monitor is in use for an ARM target.
5970
5971         * libc/sys/arm/crt0.S: New version: Supports Thumb startups and
5972         Angel and Demon debug monitors.  Part of this code was supplied by
5973         Tony Thompson at ARM: athompso@arm.com.
5974
5975 Fri Oct 24 18:57:05 1997  Jeffrey A Law  (law@cygnus.com)
5976
5977         * strncat.c (strncat): Don't call strncpy; strncay has the wrong
5978         semantics when the count is greater than the length of the second
5979         source string.
5980
5981 Thu Oct 23 01:37:41 1997  Geoffrey Noer  <noer@cygnus.com>
5982
5983         * libc/include/sys/signal.h: reorder CYGWIN32 signal numbers
5984         * libc/include/sys/unistd.h: add protos for usleep, truncate,
5985         truncate and ftruncate take off_t, not size_t
5986
5987 Tue Oct 21 18:42:00 1997  Jim Wilson  <wilson@cygnus.com>
5988
5989         * libc/string/strcat.c (strcat): Add missing comment end.
5990         * libc/string/strncat.c (strncat): Likewise.
5991
5992 Tue Oct 21 17:23:34 1997  Nick Clifton  <nickc@cygnus.com>
5993
5994         * configure.in (links): Define PREFER_SIZE_OVER_SPEED for v850
5995         targets. 
5996         * libc/string/{memchr.c, memcmp.c, memcpy.c}:   Add space
5997         optimised version which is selected if PREFER_SIZE_OVER_SPEED is
5998         defined.  
5999         * libc/string/{memset.c, strcat.c, strchr.c}: Likewise.
6000         * libc/string/{strcmp.c, strcpy.c, strlen.c}: Likewise.
6001         * libc/string/{strncat.c, strncmp.c, strncpy.c}: Likewise.
6002
6003 Mon Oct 13 15:12:35 1997  Ian Lance Taylor  <ian@cygnus.com>
6004
6005         * libc/include/sys/param.h (BIG_ENDIAN): Define if __i386__.
6006         (LITTLE_ENDIAN, BYTE_ORDER): Likewise.
6007
6008 Thu Oct  9 13:54:44 1997  Doug Evans  <dje@canuck.cygnus.com>
6009
6010         * libc/machine/i386/setjmp.S: New file.
6011         * libc/machine/i386/Makefile.in: Delete COPYOFILES.
6012         (OFILES): Add setjmp.o.
6013         (setjmp.o): Add rule for.
6014         * configure.in: Don't set machine_dir for *-*-{go32,sco*,cygwin32}.
6015
6016 Tue Oct  7 14:01:29 1997 Bill Moyer     (billm@cygnus.com)
6017                          Jeffrey A Law  (law@cygnus.com)
6018
6019         * libc/string/{memchr.c, memcmp.c, memcpy.c}: Reimplement to run faster.
6020         * libc/string/{memset.c, strcat.c, strchr.c}: Likewise.
6021         * libc/string/{strcmp.c, strcpy.c, strlen.c}: Likewise.
6022         * libc/string/{strncat.c, strncmp.c, strncpy.c}: Likewise.
6023
6024 Mon Oct  6 14:07:59 1997  Nick Clifton  <nickc@cygnus.com>
6025
6026         * libc/sys/sysnecv850/Makefile.in (crt0.o trap.o): Explicit
6027         rules. 
6028
6029         * libc/include/sys/config.h: Use __v850 to select v850
6030         endianness. 
6031
6032         * libc/include/machine/setjmp.h: Use __v850 to select v850 jump
6033         buffer size.
6034
6035         * libc/include/machine/ieeefp.h: Use __v850 to select v850
6036         endianness. 
6037
6038 Thu Sep 25 14:11:37 1997  Geoffrey Noer  <noer@cygnus.com>
6039
6040         * libc/stdlib/setenv.c: change unsetenv definition to match
6041         style of setenv (with _DEFUN).  The string should be a const.
6042         * libc/include/stdlib.h: unsetenv proto should return void.
6043
6044 Tue Sep 23 18:17:20 1997  Geoffrey Noer  <noer@cygnus.com>
6045
6046         * libc/include/stdlib.h: define unsetenv proto for __CYGWIN32__
6047
6048 Thu Sep 18 12:50:15 1997  Angela Marie Thomas (angela@cygnus.com)
6049
6050         * libc/stdio/glue.h: remove.
6051         * libc/stdio/findfp.c, libc/stdio/fwalk.c: remove #include "glue.h"
6052         * libc/stdio/Makefile.in: remove glue.h dependencies
6053
6054 Wed Sep 17 17:42:27 1997  Nick Clifton  <nickc@cygnus.com>
6055
6056         * libc/sys/sysnecv850/crt0.S: Created V850e version.
6057         
6058 Tue Sep  9 10:40:57 1997  Doug Evans  <dje@canuck.cygnus.com>
6059
6060         * configure.in (target_cpu): Add `arc'.
6061
6062 Tue Sep  9 10:40:42 1997  Joel Sherrill  <joel@OARcorp.com>
6063
6064         * newlib/configure.in (*-*-rtems*): Add -DSIGNAL_PROVIDED and 
6065           -DREENTRANT_SYSCALLS_PROVIDED to the target_cflags.
6066         * newlib/libc/include/sys/errno.h: Add ENOTSUP.
6067         * newlib/libc/reent/reent.c: Add _wrapup_reent.
6068         * newlib/libc/sys/rtems/sys/types.h: Avoid redefinitions for go32.
6069
6070 Sun Sep  7 16:41:41 1997  Gavin Koch  <gavin@cygnus.com>
6071
6072         * libc/machine/mips/setjmp.S: Handle mips16 builds.
6073
6074 Thu Aug 21 20:05:38 1997  Ian Lance Taylor  <ian@cygnus.com>
6075
6076         * libc/include/stdio.h (siprintf): Declare.
6077
6078 Mon Aug 18 11:19:13 1997  Nick Clifton  <nickc@cygnus.com>
6079
6080         * libc/sys/sysnecv850/Makefile.in (.c.o): Add rule that includes
6081         TARGET_CFLAGS and NEWLIB_FLAGS.
6082
6083 Mon Aug 18 11:15:43 1997  Nick Clifton  <nickc@cygnus.com>
6084
6085         * configure.in (links): Add support for v850ea target.
6086
6087 Mon Aug 18 11:15:43 1997  Nick Clifton  <nickc@cygnus.com>
6088
6089         * configure.in (links): Add support for v850e target.
6090
6091 Wed Aug 13 19:16:54 1997  Nick Clifton  <nickc@cygnus.com>
6092
6093         * libc/sys/sysnecv850/crt0.S: Remove initial setting of r0 to 0.
6094
6095 Mon Aug 11 15:49:54 1997  Doug Evans  <dje@canuck.cygnus.com>
6096
6097         * configure.in (arc-*-*): Add support for.
6098         * libc/include/machine/ieeefp.h (__arc__): Add support for the ARC.
6099
6100 Fri Jul 25 17:37:41 1997  J"orn Rennecke <amylaar@cygnus.co.uk>
6101
6102         * libc/sys/sh/crt0.S (start): Add fpscr initialization for SH4.
6103
6104 Thu Jul 24 18:32:17 1997  Geoffrey Noer  <noer@cygnus.com>
6105
6106         * libc/stdlib/bsearch.c (bsearch): remove last unneeded
6107         comparison which accesses invalid memory when the key is
6108         larger than the last member of the array.
6109         * libc/include/machine/setjmp.h: add sigsetjmp, siglongjmp
6110         for CYGWIN32
6111         * libc/include/sys/unistd.h: add _POSIX defines for CYGWIN32
6112
6113 Tue Jul 22 16:03:06 1997  Ian Lance Taylor  <ian@cygnus.com>
6114
6115         * libc/include/stdlib.h (realpath): Declare if __CYGWIN32__ and
6116         not _STRICT_ANSI.
6117
6118 Thu Jul 10 15:11:52 1997  Doug Evans  <dje@canuck.cygnus.com>
6119
6120         * libm/math/k_standard.c (__kernel_standard): Call fflush(stdout)
6121         ifndef _USE_WRITE, instead of ifdef _USE_WRITE.
6122
6123 Thu Jul 10 16:00:09 1997  Mike Meissner  <meissner@cygnus.com>
6124
6125         * libc/machine/tic80/setjmp.S (setjmp,longjmp): Use ld.d and st.d
6126         to load/store memory.
6127
6128 Mon Jul  7 17:38:17 1997  Ian Lance Taylor  <ian@cygnus.com>
6129
6130         * libc/include/sys/fcntl.h: Define _O_* symbols with leading
6131         underscores if _WIN32.
6132
6133 Wed Jul  2 10:07:20 1997  Doug Evans  <dje@canuck.cygnus.com>
6134
6135         * libm/math/k_standard.c (__kernel_standard): Delete reentrancy
6136         support ifdef _USE_WRITE missed in last change.
6137         From Anders Blomdell <anders.blomdell@control.lth.se>.
6138
6139 Wed Jun 25 10:18:49 1997  Doug Evans  <dje@canuck.cygnus.com>
6140
6141         * libc/stdio/tmpnam.c (worker): Handle _open_r being stubbed out.
6142         (_tmpnam_r, _tempnam_r): Update.
6143
6144 Wed Jun 25 00:16:55 1997  Mark Alexander  <marka@cygnus.com>
6145
6146         * libc/machine/sparc/setjmp.S: New file.
6147         * libc/machine/sparc/Makefile.in: Add setjmp.
6148         * libc/include/machine/setjmp.h: Increase jmpbuf size for sparc.
6149
6150 Tue Jun 24 23:27:38 1997  Mark Alexander  <marka@cygnus.com>
6151
6152         * libc/include/machine/setjmp.h: Use __TIC80__ instead of __tic80__.
6153
6154 Tue Jun 24 14:53:40 1997  Doug Evans  <dje@canuck.cygnus.com>
6155
6156         From Joel Sherrill <joel@oarcorp.com>.
6157         * libc/stdlib/getenv.c (_findenv): Avoid dereferencing null `environ'.
6158
6159         Add rtems support.  From Joel Sherrill <joel@oarcorp.com>.
6160         * configure.in: Recognize *-*-rtems*.
6161         * libc/sys/rtems/{Makefile.in,crt0.c,dummysys.c}: New files.
6162         * libc/sys/rtems/sys/{features.h,sched.h,siginfo.h,signal.h,
6163         time.h,times.h,types.h}: New files.
6164         * libc/sys/rtems/include/{limits.h,signal.h,time.h}. New files.
6165
6166 Fri Jun 20 11:13:16 1997  Geoffrey Noer  <noer@cygnus.com>
6167
6168         patch from sos@prospect.com.ru (Sergey Okhapkin):
6169         * include/sys/wait.h: correct operator precidence bug
6170         in WIFSIGNALED
6171
6172 Wed Jun 18 22:08:27 1997  Geoffrey Noer  <noer@cygnus.com>
6173
6174         * libc/include/stdlib.h: remove unsetenv proto since it conflicts
6175         with newlib's unsetenv function
6176         * libc/sys/cygwin32/sys: new directory for includes
6177         * libc/sys/cygwin32/sys/dirent.h: move cygwin32's dirent.h
6178         here from winsup/include/sys
6179
6180 Mon Jun 16 21:02:22 1997  Geoffrey Noer  <noer@cygnus.com>
6181
6182         * libc/include/sys/unistd.h: _exit should only be
6183         labelled noreturn when not __CYGWIN32__
6184         * libc/include/stdlib.h: for __CYGWIN32__, add proto for unsetenv
6185         * libc/include/sys/signal.h: add SIGIO to _WIN32 list and
6186         increment NSIG
6187
6188 Thu Jun 12 18:52:41 1997  Ian Lance Taylor  <ian@cygnus.com>
6189
6190         * libc/include/sys/time.h: Only define timeval and timezone if
6191         _GNU_H_WINDOWS32_SOCKETS is not defined.
6192         * libc/include/sys/stat.h: If _WIN32, define _S_IFMT, etc.
6193
6194 Wed Jun 11 09:46:26 1997  Jeffrey A Law  (law@cygnus.com)
6195
6196         * libc/machine/mn10200/setjmp.S: Implement setjmp/longjmp
6197         * libc/machine/mn10300/setjmp.S: Likewise.
6198
6199         * libc/sys/sysmec/crt0.S: Use "call" instead of "calls" for
6200         the mn10300 (more relaxing opportunities).
6201
6202 Tue Jun 10 17:24:45 1997  Mike Meissner  <meissner@cygnus.com>
6203
6204         * configure.in (powerpc*-*-{eabi,elf,linux,rtems,sysv,solaris}):
6205         Build libraries with -mstrict-align.
6206
6207 Fri Jun  6 14:07:59 1997  Ian Lance Taylor  <ian@cygnus.com>
6208
6209         * libc/string/strlwr.c: New file.
6210         * libc/string/strupr.c: New file.
6211         * libc/include/string.h: Declare strlwr and strupr.
6212         * libc/string/Makefile.in (OFILES): Add strlwr.o and strupr.o.
6213         (CHEWOUT_FILES): Add strlwr.def and strupr.def.
6214         (strlwr.o, strupr.o): New targets.
6215         * libc/string/strings.tex: Include strlwr and strupr docs.
6216
6217         * libc/include/sys/types.h: Don't define u_char, et. al., if
6218         _GNU_H_WINDOWS32_SOCKETS is defined.  Likewise for fd_set,
6219         et. al.  Make FD_SETSIZE default 64 rather than 60.  Define
6220         _types_fd_set rather than fd_set, and define fd_set as a macro.
6221
6222         * libc/include/malloc.h: New file.
6223
6224         * libc/include/string.h: Define strcmpi, stricmp, strncmpi, and
6225         strnicmp if they are not already defined.
6226
6227         * libc/include/time.h: If __CYGWIN32__, declare tzset and define
6228         _timezone, _daylight, and _tzname.
6229
6230 Wed Jun  4 12:51:16 1997  Doug Evans  <dje@canuck.cygnus.com>
6231
6232         * configure.in: Sort all configuration tables.
6233
6234         From Joel Sherrill <joel@oarcorp.com>
6235         * Makefile.in (stmp-targ-include): Copy $(sys_dir)/include/*.h.
6236
6237 Tue Jun  3 14:47:46 1997  Ian Lance Taylor  <ian@cygnus.com>
6238
6239         * libc/include/sys/signal.h: Don't include <sys/types.h>.  Just
6240         use int when declaring kill.
6241
6242         * libc/include/sys/timeb.h: New file.
6243
6244 Mon Jun  2 12:06:58 1997  Geoffrey Noer  <noer@cirdan.cygnus.com>
6245
6246         * libc/include/sys/time.h: add itimer support for Cygwin32
6247
6248 Mon May 19 11:56:46 1997  Mike Meissner  <meissner@cygnus.com>
6249
6250         * libc/stdlib/abort.c (abort): If ABORT_MESSAGE is defined, write
6251         out a message that abort was called to stderr.
6252
6253 Fri May 16 15:02:59 1997  Bob Manson  <manson@charmed.cygnus.com>
6254
6255         * libc/sys/sysmec/fstat.c (_fstat): Set st_blksize to 4096
6256         so that libio doesn't freak.
6257
6258         * libc/sys/sysmec/sbrk.c (_sbrk): The argument is a size_t, not
6259         int.
6260
6261         * libc/stdlib/mallocr.c (_morecore_r): Use size_t for
6262         memory sizes, not int.
6263
6264 Wed May 14 21:16:58 1997  Bob Manson  <manson@charmed.cygnus.com>
6265
6266         * libm/math/ef_hypot.c: Use long constants where
6267         appropriate.
6268         * libm/math/ef_sqrt.c: Ditto.
6269
6270         * libc/sys/sysmec/times.c(_times): Change to times.
6271
6272         * libc/sys/sysmec/read.c(_read): The third argument is
6273         size_t.
6274         * libc/sys/sysmec/write.c (_write): Ditto.
6275
6276         * libc/sys/sysmec/lseek.c: Include unistd.h for off_t.
6277         (_lseek): It's off_t for the second argument.
6278
6279 Wed May 14 15:23:36 1997  Mike Meissner  <meissner@cygnus.com>
6280
6281         * libc/include/sys/config.h (__IEEE_LITTLE_ENDIAN): Define here,
6282         as well as machine/ieeefp.h.
6283
6284 Thu May  8 15:47:25 1997  Geoffrey Noer  <noer@cygnus.com>
6285
6286         * libc/include/sys/signal.h: add signal protos for winsup
6287         functions (when __CYGWIN32__), include types.h
6288         * libc/include/sys/types.h: Change __go32_types__ internal
6289         define to __MS_types__ since it's used for more than just
6290         GO32 configs.  Define this if GO32, __MSDOS__, or _WIN32 are
6291         defined.
6292         * libc/include/sys/unistd.h: add ftruncate proto for
6293         winsup functions (when __CYGWIN32__)
6294
6295 Fri Apr 25 10:10:16 1997  Doug Evans  <dje@canuck.cygnus.com>
6296
6297         * libc/sys/h8300hms/sbrk.c (stack_ptr): Add definition.
6298
6299 Thu Apr 24 15:46:51 1997  Mike Stump  <mrs@cygnus.com>
6300
6301         * libc/include/machine/setjmp.h: Add tic80 support.
6302         * libc/machine/tic80/setjmp.S: Likewise.
6303
6304 Tue Apr 22 16:54:40 1997  Geoffrey Noer  <noer@pizza.cygnus.com>
6305
6306         * libc/sys/cygwin32/crt0.c: Add reference to main() so we can
6307         link programs from libraries only (such as in the X11
6308         distribution)
6309
6310 Mon Apr 21 15:02:12 1997  Fred Fish  <fnf@cygnus.com>
6311
6312         * libc/sys/arm/syscalls.c (signal): Remove stub, signal()
6313         supplied elsewhere in newlib.
6314
6315 Mon Apr 14 16:25:55 1997  Ian Lance Taylor  <ian@cygnus.com>
6316
6317         * Makefile.in (INSTALL): Change install.sh to install-sh.
6318
6319 Fri Apr 11 17:04:02 1997  Jason Molenda  (crash@godzilla.cygnus.co.jp)
6320
6321         * README: update WWW address for on-line documentation.
6322
6323 Wed Apr  9 00:38:13 1997  Geoffrey Noer  <noer@cygnus.com>
6324
6325         * libc/include/sys/signal.h: for _WIN32, define SIGCONT and
6326         increment NSIG
6327
6328 Mon Apr  7 23:54:00 1997  Jeffrey A Law  (law@cygnus.com)
6329
6330         * libc/sys/sysmec/crt0.S: Update for new calling conventions on the
6331         mn10300.
6332         * libc/sys/sysmec/trap.S: Don't compare a register to itself.
6333
6334 Tue Mar 25 08:47:43 1997  Jeffrey A Law  (law@cygnus.com)
6335
6336         * libc/sys/arm/syscalls.c: Fix/add stack/heap collision detection.
6337         * libc/sys/d10v/syscalls.c: Likewise.
6338         * libc/sys/h8300hms/sbrk.c: Likewise.
6339         * libc/sys/h8500hms/syscalls.c: Likewise.
6340         * libc/sys/m88kbug/syscalls.c: Likewise.
6341         * libc/sys/sh/syscalls.c: Likewise.
6342         * libc/sys/sysmec/sbrk.c: Likewise.
6343         * libc/sys/sysnecv850/sbrk.c: Likewise.
6344         * libc/sys/w65/syscalls.c: Likewise.
6345         * libc/sys.tex: Update sbrk sample code to include stack/heap collision.
6346
6347 Tue Mar 18 14:14:34 1997  Jeffrey A Law  (law@cygnus.com)
6348
6349         * libc/sys/sysmec/trap.S: Use "syscall" to trigger an
6350         emulated syscall instead of "trap".
6351
6352 Fri Mar 14 11:26:13 1997  Michael Meissner  <meissner@cygnus.com>
6353
6354         * libc/sys/d10v/trap.S (__trap0): Use trap 15 for system calls,
6355         not trap 0.
6356
6357 Sun Mar  9 23:27:04 1997  Doug Evans  <dje@seba.cygnus.com>
6358
6359         * configure.in (m32r-*-*): Add -msdata=sdata to target_cflags.
6360
6361 Sat Mar  8 09:05:01 1997  Fred Fish  <fnf@cygnus.com>
6362
6363         * libc/machine/arm/Makefile.in: Fix comment, is for "arm"
6364         not "sh".
6365         * libc/machine/m32r/Makefile.in: Fix comment, is for "m32r"
6366         not "d10v".
6367         * libc/sys/tic80/crt0.c: New file for TIc80.
6368         * libc/sys/tic80/Makefile.in: New file for TIc80.
6369         * libc/machine/tic80/Makefile.in: New file for TIc80.
6370
6371 Wed Mar  5 11:32:12 1997  J.T. Conklin  <jtc@cygnus.com>
6372
6373         * libc/machine/sh/memcpy.S: New file.
6374         * libc/machine/sh/memset.S: New file.
6375         * libc/machine/sh/Makefile.in (OFILES): Add memcpy.o and memset.o
6376
6377 Thu Feb 27 16:27:55 1997  Fred Fish  <fnf@cygnus.com>
6378
6379         * libc/include/machine/ieeefp.h (_IEEE_LITTLE_ENDIAN): Define
6380         for TIc80.
6381
6382 Wed Feb 26 13:43:39 1997  Jeffrey A Law  (law@cygnus.com)
6383
6384         * libc/sys/sysmec/crt0.S: Handle new calling conventions for
6385         the mn10200.
6386
6387 Wed Feb 26 07:11:03 1997  Michael Meissner  <meissner@cygnus.com>
6388
6389         * libc/machine/powerpc/setjmp.S (longjmp): Correct return status
6390         (patch from andrew@pogo.WV.TEK.COM).
6391
6392 Fri Feb 14 11:49:28 1997  Doug Evans  <dje@canuck.cygnus.com>
6393
6394         * libc/machine/m32r/setjmp.S (setjmp): Save r12.
6395         (longjmp): Restore r12. Fix code that handles returning 1 if passed 0.
6396
6397 Mon Feb 10 10:02:34 1997  Fred Fish  <fnf@cygnus.com>
6398
6399         * configure.in:  Add cases for "tic80" to set machine_dir,
6400         sys_dir, and syscall_dir.
6401
6402 Sun Feb  2 17:57:15 1997  Geoffrey Noer  <noer@cygnus.com>
6403
6404         * libc/sys/cygwin32/crt0.c: initialize floating pt registers
6405
6406 Wed Jan 29 15:57:38 1997  Geoffrey Noer  <noer@cygnus.com>
6407
6408         * libc/include/math.h: avoid conflicts with ANSI C++ <exception>
6409
6410 Mon Jan 27 12:50:01 1997  Doug Evans  <dje@seba.cygnus.com>
6411
6412         * libc/machine/m32r/setjmp.S: Use proper comment delimiter.
6413         Use proper constant prefix.
6414
6415 Fri Jan 24 10:59:04 1997  Jeffrey A Law  (law@cygnus.com)
6416
6417         * libc/sys/sysmec/*.c: Don't cast args to syscall to integers,
6418         that loses on the mn10200 where ints and pointers are different
6419         sizes.
6420
6421 Tue Jan 14 13:29:55 PST 1997  Jeremy Allison <jra@cygnus.com>
6422
6423         * configure.in: Added -DSIGNAL_PROVIDED to cygwin32
6424         target as signal is provided in winsup.
6425
6426 Tue Jan 14 11:10:13 1997  Jeremy Allison <jra@cygnus.com>
6427
6428         * libc/include/sys/process.h: Corrected const definitions
6429         in spawn functions. Added cwait.
6430
6431 Thu Jan  2 12:22:41 1997  Jeffrey A Law  (law@cygnus.com)
6432
6433         * libc/include/machine/ieeefp.h: mn10200 uses 16bit ints and 32bit
6434         doubles.
6435         * libc/include/sys/config.h: Similarly.
6436
6437 Tue Dec 31 18:36:14 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
6438
6439         * configure.in (sparc-sun-sunos*): Add -DSIGNAL_PROVIDED to the
6440         target_cflags.
6441         (i[3456]86-*-sco*): Ditto.
6442
6443         * libc/signal/Makefile.in (OFILES): Add signal.o.
6444         (CFILES): Add signal.c.
6445
6446         * libc/signal/raise.c (_raise_r): Only compile code if
6447         SIGNAL_PROVIDED is defined.
6448
6449         * libc/signal/signal.c: Redo whole file so that it works with
6450         current newlib.  Use _kill_r if no signal handler provided.
6451
6452         * libc/sys/{go32,sparc64,sysmec}/Makefile.in: Delete raise and
6453         signal stubs.
6454         * libc/sys/sysvnecv70/Makefile.in: Ditto.
6455         * libc/sys/sysnecv850/Makefile.in: Ditto.
6456
6457         * libc/sys/{go32,sparc64}/signal.c: Delete, stub no longer used.
6458         * libc/sys/sysmec/{raise,signal}.c: Ditto.
6459         * libc/sys/sysvnecv70/signal.s: Ditto.
6460         * libc/sys/sysnecv850/raise.c: Ditto.
6461
6462         * libc/sys/sysnecv850/kill.c (_kill): Encode signal # so that
6463         simulator and debugger can tell the difference between a signal
6464         being raised and an exit system call.
6465
6466         * NEWS: Document software signals being provided.
6467
6468 Mon Dec 23 11:54:19 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
6469
6470         * libc/reent/impure.c (_REENT_ATTR): Delete in favor of
6471         __ATTRIBUTE_IMPURE_PTR__.  Move PowerPC definition to
6472         include/sys/config.h.
6473         (impure_data): Use __ATTRIBUTE_IMPURE_DATA__ for attributes.
6474         Change from 'inpure_data'.
6475         (_impure_ptr): Use __ATTRIBUTE_IMPURE_PTR__ for attributes.  Use
6476         &impure_data, not &inpure_data.
6477
6478         * libc/include/sys/config.h (__ATTRIBUTE_IMPURE_PTR__): If PowerPC
6479         and and System V ABI, define so that _impure_ptr lives in the
6480         .sdata section.
6481
6482 Sun Dec 22 23:33:05 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
6483
6484         * libc/include/sys/reent.h (__ATTRIBUTE_IMPURE_PTR__): Define as
6485         nothing if not defined.
6486         (_impure_ptr): Use __ATTRIBUTRE_IMPURE_PTR__, so a machine can set
6487         its attributes.
6488
6489         * libc/include/sys/config.h (__ATTRIBUTE_IMPURE_PTR__): 
6490
6491 Wed Dec 18 10:12:04 1996  Jeffrey A Law  (law@cygnus.com)
6492
6493         * libc/sys/sysmec/crt0.S: Fix mn10200 stuff.
6494         * libc/sys/sysmec/trap.s: Handle mn10200 too.
6495         * libc/machine/mn10200/setjmp.S: Fix mn10200 stuff.
6496
6497 Mon Dec 16 10:05:36 1996  Jeffrey A Law  (law@cygnus.com)
6498
6499         * libc/sys/sysmec/crt0.S: Handle mn10200 too.
6500
6501 Fri Dec 13 11:05:20 1996  Jeremy Allison <jra@cygnus.com>
6502
6503         * libc/include/sys/errno.h: Added net errno's.
6504
6505 Wed Dec 11 16:24:25 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
6506
6507         * libc/misc/ffs.c: New file to support ffs function for GCC test
6508         gcc.c-torture/execute/960909-1.c.
6509
6510         * libc/misc/Makefile.in ({O,CHEWOUT_}FILES): Add ffs.
6511
6512 Sat Dec  7 10:12:37 1996  Jeffrey A Law  (law@cygnus.com)
6513
6514         * libc/sys/sysmec/crt0.S: Handle underscore prefix.
6515         * libc/sys/sysmec/trap.S: Likewise.
6516
6517 Fri Dec  6 15:08:49 1996  Jim Wilson  <wilson@cygnus.com>
6518
6519         * configure.in (mips*vr4300*-*-*): Delete use of sys/vr4300.
6520         * libc/sys/vr4300/{Makefile.in,crt0.S,syscalls.c}: Delete.
6521
6522 Wed Dec  4 16:25:27 1996  Jeffrey A Law  (law@cygnus.com)
6523
6524         * libc/sys/sysmec/signal.c: Dummy file.
6525         * libc/sys/sysmec/Makefile.in: Build it.
6526
6527 Wed Nov 27 13:10:18 1996  Ian Lance Taylor  <ian@cygnus.com>
6528
6529         * libc/machine/mips/machine/regdef.h: Define pc as $pc for
6530         mips16.
6531
6532 Mon Nov 25 09:58:28 1996  Jeffrey A Law  (law@cygnus.com)
6533
6534         * libc/sys/sysmec/{crt0.S,trap0.S}: Actually try to implement
6535         c-startup and simulator traps.
6536
6537
6538         * libc/sys/sysmec/crt0.S: Remove bogus '_' symbol prefixing
6539         * libc/sys/sysmec/trap0.S: Likewise.
6540
6541 Sat Nov 23 09:01:03 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
6542
6543         * libc/stdlib/mallocr.c (ROUND_TO): If SMALL_MEMORY, set to 0x7 to
6544         round to double word alignment.
6545         (_morecore_r): Combine rounding up pointers to both ROUND_TO and 8
6546         byte alignment.
6547
6548         * libc/include/sys/config.h (__IEEE_BIG_ENDIAN): Define if d10v.
6549
6550         * libc/sys/d10v/syscalls.c (_sbrk): Add better checks for running
6551         out of memory.
6552
6553 Mon Nov 18 13:08:26 1996  Jeffrey A Law  (law@cygnus.com)
6554
6555         * configure.in: Handle mn10200 and mn10300.
6556         * libc/include/machine/{ieeefp.h,setjmp.h}: Likewise.
6557         * libc/include/sys/config.h: Likewise.
6558         * libc/sys/sysmec: New directory for mec stuff.
6559         * libc/machine/mn10300: New directory for mn10300 stuff.
6560         * libc/machine/mn10200: Similarly for mn10200 stuff.
6561
6562 Fri Nov 15 16:41:41 1996  Doug Evans  <dje@canuck.cygnus.com>
6563
6564         * libc/sys/arm/crt0.S: Use .text, not .section .text.
6565         * libc/sys/arm/syscalls.c: Rewrite to set errno properly.
6566
6567         * libc/include/sys/types.h (_ST_INT32): New macro, local to file.
6568         (nlink_t): Change type from unsigned int to unsigned short.
6569         (mode_t): Ensure size is 32 bits even if int is 16.
6570         * libc/include/sys/stat.h (st_nlink): Change type to nlink_t.
6571         (st_spare[123]): Change type from int to long.
6572
6573 Fri Nov 15 11:41:50 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
6574
6575         * libc/sys/d10v/syscalls.c (_sbrk): Align initial heap_end to 8
6576         byte boundary.
6577
6578         * configure.in (d10v*): Define SMALL_MEMORY.
6579
6580 Mon Nov 11 10:30:44 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
6581
6582         * configure.in (powerpc*-{eabi,elf,linux,rtem,sysv,solaris}*): Add
6583         -mrelocatable-lib and -mno-eabi flags.
6584
6585 Mon Nov 11 09:01:39 1996  Jeffrey A Law  (law@cygnus.com)
6586
6587         * libc/machine/h8300/memcpy.S: Fix comments to reflect reality.
6588         Fix handling of mis-aligned source operand when both the
6589         destination & length are properly aligned.
6590         
6591 Wed Oct 30 09:41:11 1996  Jeffrey A Law  (law@cygnus.com)
6592
6593         * libc/sys/sysnecv850/Makefile.in (OFILES): Add
6594         times.o, time.o and gettime.o
6595         * libc/sys/sysnecv850/{time.c, times.c, gettime.c}: New files.
6596         * libc/sys/sysnecv850/sys/syscall.h: Add SYS_times and
6597         SYS_gettimeofday.
6598
6599 Tue Oct 29 13:40:09 1996  Jeffrey A Law  (law@cygnus.com)
6600
6601         * libc/sys/sysnecv850/Makefile.in (OFILES): Add access.o
6602         * libc/sys/sysnecv850/access.c: New file.
6603
6604 Mon Oct 21 19:47:02 1996  Ian Lance Taylor  <ian@cygnus.com>
6605
6606         * libc/sys/vr4300/Makefile.in (clean): Remove $(OFILES).
6607
6608         * libc/stdlib/mprec.h (word0, word1): Use __uint32_t, not unsigned
6609         long.
6610
6611 Mon Oct 21 14:43:07 1996  Jeffrey A Law  (law@cygnus.com)
6612
6613         * libc/sys/sysnecv850/crt0.S: Initialize ep and gp registers.
6614
6615 Thu Oct 17 11:47:16 1996  Doug Evans  <dje@seba.cygnus.com>
6616
6617         * libc/include/machine/{ieeefp.h,setjmp.h}: Add m32r support.
6618         * libc/include/sys/config.h: Add m32r support.
6619
6620 Wed Oct 16 23:08:05 1996  Jeffrey A Law  (law@cygnus.com)
6621
6622         * libc/sys/sysnecv850/v850.ld: Remove.  It doesn't belong
6623         here.
6624
6625 Wed Oct 16 21:18:07 1996  Mark Alexander  <marka@cygnus.com>
6626
6627         * libc/include/machine/setjmp.h: Add D10v support.
6628
6629 Tue Oct 15 22:28:26 1996  Jeffrey A Law  (law@cygnus.com)
6630
6631         * configure.in: Configure the "libc/syscalls" directory for
6632         the v850.
6633
6634         * libc/sys/sysnecv850/{close.c, execve.c, fork.c}: Add missing '_'.
6635         * libc/sys/sysnecv850/{fstat.c, getpid.c, kill.c}: Likewise.
6636         * libc/sys/sysnecv850/{lseek.c, open.c, read.c}: Likewise.
6637         * libc/sys/sysnecv850/{sbrk.c, stat.c, unlink.c}: Likewise.
6638         * libc/sys/sysnecv850/{wait.c, write.c}: Likewise.
6639
6640 Tue Oct 15 16:24:39 1996  Stu Grossman  (grossman@critters.cygnus.com)
6641
6642         * libc/sys/sysnecv850/crt0.S (start):  Allocate spill space on
6643         stack for args for main and other routines.  Zero out args for
6644         main.
6645
6646         * libc/sys/sysnecv850/v850.ld:  New.  Linker script to layout memory
6647         correctly.
6648
6649 Tue Oct 15 11:51:42 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
6650
6651         * libc/stdio/findfp.c (std): Remove extraneous ';' after
6652         function.
6653
6654         * libc/sys/d10v/sys/syscall.h (SYS_kill): Add.
6655
6656         * libc/sys/d10v/{syscalls.c,trap.S} (_kill,_getpid): Make these
6657         real system calls now.
6658
6659         * libc/stdio/setvbuf (setvbuf): Cast pointers to _POINTER_INT
6660         before casting them to int.
6661         * libc/stdio/tmpnam.c (_tempnam_r): Ditto.
6662
6663         * libc/stdlib/mallocr.c (_morecore_r): Use _POINTER_INT when
6664         aligning pointer.
6665         * libc/string/memset.c (memset): Ditto.
6666         
6667         * libc/stdio/vfscanf.c (__svfscanf): When converting to pointer,
6668         first convert ints to _POINTER_INT to eliminate GCC warning.
6669
6670         * libc/stdio/vfprintf.c (_vfprintf_r): Use _POINTER_INT when
6671         processing %p.
6672
6673         * libm/math/ef_scalb.c (__ieee754_scalbf): Cut down range to 32000
6674         from 65000 if ints are only 16 bits.
6675
6676         * libm/math/sf_scalbn.c (scalbnf): Cut down overflow test to 30000
6677         from 50000 if ints are only 16 bits.
6678
6679         * libc/include/sys/config.h (_POINTER_INT): New macro, to give an
6680         int type that is the same size as a pointer.
6681
6682         * libc/misc/dprintf.c (__dprintf): Use _POINTER_INT when
6683         processing %p.
6684         (get_number): Explicitly cast number to long before shifting by 16
6685         or 24, in case ints are short.
6686
6687         * libc/include/sys/config.h (_POINTER_INT): Define as short.
6688
6689 Wed Oct  9 16:54:32 1996  Jeremy Allison <jra@cygnus.com>
6690
6691         * libc/string.h: Added ffs, removed swab.
6692         * libc/sys/errno.h: Added EOPNOTSUPP.
6693         * libc/sys/unistd.h: Added swab.
6694
6695 Thu Oct  3 17:08:50 1996  Jeremy Allison <jra@cygnus.com>
6696
6697         * libc/include/sys/stat.h: Added fchmod.
6698         * libc/include/sys/unistd.h: Added fsync.
6699
6700 Tue Oct  1 17:34:08 1996  Jeremy Allison <jra@cygnus.com>
6701
6702         * libc/include/sys/errno.h: Added defines for EPFNOSUPPORT (96)
6703         and ECONNRESET (104) for cygwin32.
6704
6705 Tue Oct  1 16:24:05 1996  Gavin Koch  <gavin@cygnus.com>
6706
6707         * libc/sys/sysnecv850/_exit.c: added _do_dtors to
6708         do the static destructors.
6709         
6710 Mon Sep 30 15:59:05 1996  Stu Grossman  (grossman@critters.cygnus.com)
6711
6712         * libc/sys/sysnecv850/trap.S:  Change I/O to use trap 31.
6713
6714 Mon Sep 30 12:02:50 1996  Doug Evans  <dje@canuck.cygnus.com>
6715
6716         * libc/machine/m32r/{Makefile.in,setjmp.S}: New files.
6717         * configure.in: Recognize m32r-*-*.
6718
6719 Mon Sep 30 00:34:41 1996  James G. Smith  <jsmith@cygnus.co.uk>
6720
6721         * libc/sys/arm/trap.S (__rt_stkovf_split_big,
6722         __rt_stkovf_split_small): Added default software stack overflow
6723         handlers, which just call SWI_Exit.
6724         * libc/sys/arm/crt0.S (_mainCRTStartup): Simple software stack
6725         limit initialisation.
6726
6727 Fri Sep 27 13:08:03 1996  Mark Alexander  <marka@cygnus.com>
6728
6729         * libc/sys/d10v/{trap.S,sys/syscall.h}: Add time() function.
6730
6731 Fri Sep 27 12:32:00 1996  Jeremy Allison <jra@cygnus.com>
6732
6733         * libc/include/sys/types.h: Added ssize_t definition.
6734         
6735 Wed Sep 25 14:52:18 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
6736
6737         * libc/machine/d10v/setjmp.S: Use ';' for comments.
6738         * libc/sys/d10v/{crt0.S,trap.S}: Ditto.
6739
6740         * libc/machine/d10v/setjmp.S (longjmp): Use exef0t || instead of
6741         branch around a single ldi instruction.
6742
6743         * libc/sys/d10v/crt0.S (_start): Use auto-increment to zero bss.
6744         Call exit, instead of just issuing a stop instruction.
6745
6746 Sun Sep 22 17:26:55 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
6747
6748         * libc/sys/d10v/{trap.S,syscalls.c}: Add -mint32 support.
6749
6750 Fri Sep 20 13:23:12 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
6751
6752         * libc/stdlib/mprec.h: Explicitly declare all large constants as
6753         longs, and then cast them to __uint32_t.
6754
6755         * libc/include/sys/config.h: Protect against multiple inclusions.
6756
6757 Tue Sep 17 13:10:33 1996  Mark Alexander  <marka@cygnus.com>
6758
6759         * configure.in (d10v*): Set syscall_dir.
6760
6761 Sun Sep 15 10:41:59 1996  Mark Alexander  <marka@cygnus.com>
6762
6763         * libc/sys/d10v/crt0.S: Set stack pointer.
6764
6765 Thu Sep 12 13:02:38 1996  Mark Alexander  <marka@cygnus.com>
6766
6767         * libc/sys/d10v/{trap.S, syscalls.c}: Rewrite most system calls
6768         in assembly for efficiency.  Change calling convention to allow
6769         long ints to be returned.
6770
6771 Wed Sep 11 10:28:18 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
6772
6773         * libc/machine/v850/Makefile.in (setjmp.o): Fix dependency.
6774
6775 Thu Sep  5 19:23:06 1996  Doug Evans  <dje@canuck.cygnus.com>
6776
6777         * libc/posix/execvp.c (execvp): Don't search PATH if file has '/'.
6778         Handle empty entries in $PATH.
6779
6780 Tue Sep 03 18:15:02 1996  Mark Alexander  <marka@cygnus.com>
6781
6782         * libc/machine/d10v/setjmp.S: Make it really work.
6783
6784 Tue Sep  3 12:16:26 1996  Ian Lance Taylor  <ian@cygnus.com>
6785
6786         * libc/sys/sh/crt0.S: If __ELF__, use ELF section attributes for
6787         the .stack section.
6788
6789 Tue Sep  3 10:08:45 1996  Jeffrey A Law  (law@cygnus.com)
6790
6791         * sys/sysnecv850/sys/file.h: Remove.
6792         * sys/sysnecv850/sys/syscall.h: New file.
6793         * sys/sysnecv850/{misc.c,syscalls.c,malloc.c}: Deleted.
6794         * sys/sysnecv850/{chmod.c, chown.c, close.c, creat.c} New files.
6795         * sys/sysnecv850/{execv.c, execve.c, fork.c, fstat.c} New files.
6796         * sys/sysnecv850/{getpid.c, isatty.c, kill.c, lseek.c} New files.
6797         * sys/sysnecv850/{open.c, pipe.c, raise.c, read.c} New files.
6798         * sys/sysnecv850/{stat.c, unlink.c, utime.c, wait.c} New files.
6799         * sys/sysnec850/trap.S: New file.
6800         * sys/sysnecv850/{_exit.c, write.c}: Use new TRAP0 mechanism for
6801         syscalls.
6802         * sys/sysnecv850/crt0.S: Use cmp/bl, not tst/bz.
6803         * sys/sysnec850/sbrk.c: New version.
6804
6805 Sun Sep  1 20:08:27 1996  Jeffrey A Law  (law@cygnus.com)
6806
6807         * sys/sysnecv850/crt0.S: Fix order of comparison args.  Loop
6808         as long as r6 is less than r7.
6809
6810 Sun Sep  1 13:54:19 1996  Ian Lance Taylor  <ian@cygnus.com>
6811
6812         * Makefile.in (mostlyclean): Separate from clean target.  Don't
6813         remove *.a or targ-include.
6814         * libc/machine/sparc/Makefile.in (mostlyclean): New target.
6815
6816 Sun Sep  1 11:35:26 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
6817
6818         * libc/include/machine/ieeefp.h (_DOUBLE_IS_32BITS): Define for
6819         d10v.
6820         (__SMALL_BITFIELDS): Ditto.
6821
6822         * libc/include/sys/config.h (_DOUBLE_IS_32BITS): Define for d10v.
6823
6824 Sat Aug 31 16:42:36 1996  Jeffrey A Law  (law@cygnus.com)
6825
6826         * libc/sys/sysnecv850/misc.c (raise, getpid, kill): Remove '_'
6827         prefix.
6828
6829         * libc/sys/sysnecv850/sbrk.c (sbrk): Remove '_' prefix.
6830         * libc/sys/sysnecv850/syscalls.c (read, lseek, close): Likewise.
6831         * libc/sys/sysnecv850/syscalls.c (fstat, open, close): Likewise.
6832         * libc/sys/sysnecv850/write.c (write): Likewise.
6833
6834         * libc/sys/sysnecv850/crt0.S: Don't try to zero out an empty
6835         .bss.
6836
6837 Fri Aug 30 11:18:45 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
6838
6839         * libc/include/sys/config.h: Define INT_MAX, UINT_MAX
6840         appropriately for D10V, depending on -mint16/-mint32.
6841
6842 Thu Aug 29 16:09:37 1996  Mark Alexander  <marka@cygnus.com>
6843
6844         * configure.in: Add cases for D10V.
6845
6846 Thu Aug 29 17:03:23 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
6847
6848         * configure.in (i[345]86-*-*): Recognize i686 for pentium pro.
6849
6850 Wed Aug 28 21:05:52 1996  Jeffrey A Law  (law@cygnus.com)
6851
6852         * libc/include/machine/ieeefp.h: Fix typo.
6853
6854 Wed Aug 28 19:47:55 1996  Mark Alexander  <marka@cygnus.com>
6855
6856         * libc/sys/d10v: New directory for D10V stuff.
6857         * libc/include/machine/ieeefp.h: Add D10V defines.
6858
6859 Mon Aug 26 13:34:58 1996  Doug Evans  <dje@canuck.cygnus.com>
6860
6861         * libc/include/sys/errno.h: Add winsup/include/sys/errno.h values:
6862         ELOOP, ENOBUFS, EAFNOSUPPORT, EPROTOTYPE, ENOTSOCK, ENOPROTOOPT,
6863         ESHUTDOWN, ECONNREFUSED, EADDRINUSE, ECONNABORTED, EWOULDBLOCK.
6864         * libc/string/strerror.c (strerror): Add them.
6865
6866 Thu Aug 22 16:38:19 1996  Jeffrey A Law  (law@cygnus.com)
6867
6868         * libc/sys/sysnecv850: New directory for v850 stuff.
6869
6870         * libc/machine/v850: New directory for v850 stuff.
6871         * libc/machine/v850/setjmp.S: setjmp/longjmp support.
6872
6873         * configure.in: Add support for the v850.
6874
6875         * libc/include/machine/ieeefp.h: Add v850 defines.
6876         * libc/include/machine/setjmp.h: Likewise.
6877         * libc/include/sys/config.h: Add v850 defines.
6878
6879 Sat Aug 17 04:06:36 1996  Geoffrey Noer  <noer@cygnus.com>
6880
6881         * libc/include/machine/ieeefp.h
6882         * libc/include/machine/setjmp.h
6883         * libc/include/sys/fcntl.h
6884         * libc/include/sys/signal.h
6885         * libc/include/sys/types.h
6886         * libc/stdlib/system.c:
6887         Fix preprocessor defines to match new scheme (_WIN32 for WIN32
6888         API availability, __CYGWIN32__ for cygwin32 environment specific).
6889
6890 Thu Aug 15 17:09:21 1996  Geoffrey Noer  <noer@cygnus.com>
6891
6892         * libc/include/stdlib.h: add multibyte character functions.  Add
6893         __eprintf for assert.
6894
6895 Thu Aug 15 11:15:40 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
6896
6897         * libc/stdlib/malloc.h (MALLOC_ALIGNMENT): Use either pointer
6898         arithmetic or __alignof__ to properly get the alignment, instead
6899         of hardwiring it to 4.
6900
6901 Wed Aug 14 23:43:28 1996  Geoffrey Noer  <noer@cygnus.com>
6902
6903         * libc/stdio/fseek.c: add fflush call to adjust seek offset
6904         on append stream (fix from NetBSD sources), adjust curoff offset
6905         for ungetc's benefit.
6906         * libc/stdio/ftell.c: adjust curoff offset for ungetc's benefit.
6907         * libc/stdio/rewind.c: replace code with up to date NetBSD
6908         code to undo hacks made to work around above problem of not
6909         having fflush call mentioned above
6910
6911 Fri Aug  2 18:28:07 1996  J.T. Conklin  <jtc@rtl.cygnus.com>
6912
6913         * libc/reent/{closer.c, execr.c, fstatr.c, linkr.c, lseekr.c,
6914         openr.c, readr.c, sbrkr.c, signalr.c, statr.c, timer.c, writer.c}:
6915         Partially revert last changes.  The thread specific errno is set
6916         iff if the underlying syscall fails and the global errno is not
6917         zero.
6918
6919 Fri Jul 19 11:41:52 1996  J.T. Conklin  <jtc@rtl.cygnus.com>
6920
6921         * libc/reent/filer.c: Removed files, all functions have split out
6922         into their own files.
6923         * libc/reent/{closer.c, lseekr.c, openr.c, readr.c, writer.c}: 
6924         New files containing functions formally in filer.c
6925         * libc/reent/Makefile.in: Updated for above change.
6926
6927         * libc/reent/execr.c (_fork_r, _wait_r): Set errno if underlying
6928         syscall fails, not if errno is changed.
6929         * libc/reent/filer.c (_open_r, _close_r, _lseek_r, _read_r, 
6930         _write_r): Likewise.
6931         * libc/reent/fstatr.c (_fstat_r): Likewise.
6932         * libc/reent/linkr.c (_link_r, _unlink_r): Likewise.
6933         * libc/reent/sbrkr.c (_sbrk_r): Likewise.
6934         * libc/reent/signalr.c (_kill_r): Likewise.
6935         * libc/reent/statr.c (_stat_r): Likewise.
6936         * libc/reent/timer.c (_gettimeofday_r): Likewise.
6937
6938         * libc/reent/{execr.c, filer.c, fstatr.c, linkr.c, sbrkr.c,
6939         signalr.c, statr.c, timer.c} (errno): declare extern rather
6940         than as a common.
6941
6942         * libc/stdio/vfprintf.c (__sbprintf): Use the VFPRINTF macro
6943         instead of calling vfprintf so that i*printf will not require
6944         floating point support code.
6945         
6946 Mon Jul 15 16:50:59 1996  Doug Evans  <dje@canuck.cygnus.com>
6947
6948         * libc/posix/execvp.c (execvp): Use posix_path_list_p to determine
6949         path delimiter.
6950         * libc/include/sys/unistd.h (_SC_PATH_RULES): Delete.
6951         (_PATH_RULES_{UNKNOWN,WIN32,POSIX}): Delete.
6952
6953 Thu Jul 11 14:34:14 1996  Geoffrey Noer  <noer@cygnus.com>
6954
6955         * libc/include/signal.h: _sig_func_ptr function takes an int
6956         * libc/include/sys/signal.h: sa_handler function takes an int
6957
6958 Tue Jul  9 21:22:32 1996  Jeffrey A Law  (law@cygnus.com)
6959
6960         * libc/include/machine/ieeefp.h: Simplify H8/S support.
6961         * libc/include/sys/config.h: Add missing H8/S conditional.
6962
6963 Sun Jun 30 12:05:46 1996  Doug Evans  <dje@canuck.cygnus.com>
6964
6965         * libc/include/sys/unistd.h (MAXPATHLEN): Add cygwin32 value.
6966
6967 Wed Jun 26 09:57:54 1996  Jeffrey A Law  (law@cygnus.com)
6968
6969         * libc/include/machine/setjmp.h: Handle H8/S.
6970         * libc/include/machine/ieeefp.h: Likewise.
6971         * libc/include/sys/config.h: Likewise.
6972         * libc/machine/h8300/{defines.h, memcpy.S, memset.S}: Likewise.
6973         * libc/machine/h8300/{reg_memcpy.S, reg_memset.S}: Likewise.
6974         * libc/machine/h8300/{strcmp.S, setjmp.S}: Likewise.
6975         * libc/sys/h8300hms/crt0.S: Likewise.
6976
6977 Tue Jun 25 23:15:45 1996  Jason Molenda  (crash@godzilla.cygnus.co.jp)
6978
6979         * Makefile.in (datadir): Set to $(prefix)/share.
6980         (oldincludedir, docdir): Removed.
6981         * doc/Makefile.in (datadir): Set to $(prefix)/share.
6982         (oldincludedir, docdir): Removed.
6983         * libc/Makefile.in (datadir): Set to $(prefix)/share.
6984         (oldincludedir, docdir): Removed.
6985         * libm/Makefile.in (datadir): Set to $(prefix)/share.
6986         (oldincludedir, docdir): Removed.
6987
6988 Fri Jun 21 19:24:41 1996  Ian Lance Taylor  <ian@cygnus.com>
6989
6990         * libc/include/sys/reent.h (_REENT_INIT): Update for change to
6991         _reent struct.
6992
6993 Wed Jun 19 14:00:09 1996  Doug Evans  <dje@canuck.cygnus.com>
6994
6995         * libc/posix/execvp.c: Delete _WIN32 support.  For __CYGWIN32__
6996         fetch current path rules with sysconf and handler posix/win32
6997         appropriately.
6998
6999         * libc/include/sys/unistd.h (_PATH_RULES{,_POSIX,_WIN32}): Define.
7000
7001         * libc/include/process.h: Prepend '_' to P_{WAIT,NOWAIT,OVERLAY}.
7002         (WAIT_CHILD): Always define.
7003
7004 Sat Jun 15 17:50:42 1996  Ian Lance Taylor  <ian@cygnus.com>
7005
7006         * libc/stdlib/eprintf.c: New file.
7007         * libc/stdlib/Makefile.in (OFILES): Add eprintf.o.
7008         (eprintf.o): New target.
7009
7010 Thu Jun 13 16:44:32 1996  Doug Evans  <dje@canuck.cygnus.com>
7011
7012         * libc/sys/cygwin32/crt0.c (__cygwin_crt0_bp): New global.
7013         (mainCRTStartup): Do int3 if __cygwin_crt0_bp non-zero.
7014
7015 Thu Jun 13 17:45:17 1996  Mike Meissner  <meissner@rtl.cygnus.com>
7016
7017         * libc/include/machine/ieeefp.h: Add support for AIX and Windows
7018         NT in PowerPC endianess cases.
7019
7020 Tue Jun 11 12:26:28 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
7021
7022         * libc/include/machine/ieeefp.h: Clean up PowerPC endianess.
7023
7024 Thu Jun  6 11:34:20 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
7025
7026         * libc/string/strtok.c: Fix doc typo.
7027
7028 Mon Jun  3 11:30:00 1996  J.T. Conklin  <jtc@rtl.cygnus.com>
7029
7030         * libc/include/sys/reent.h (struct _reent): Removed _asctime,
7031         _next, _scanpoint, _signgam fields.
7032
7033         * libc/include/stdlib.h (rand_r): Added new declaration.
7034         (_rand_r, _srand_r): Removed declarations.
7035         * libc/stdlib/rand.c (_rand_r, _srand_r): Removed, these functions
7036         have been made obsolete by rand_r.
7037         * libc/stdlib/rand_r.c: New file, rand_r function as specified
7038         by POSIX.1c.
7039         
7040         * libc/string/strtok.c: Update documentation to describe
7041         strtok_r().
7042
7043 Sat Jun  1 23:50:39 1996  Michael Meissner  <meissner@cygnus.com>
7044
7045         * libc/include/sys/stat.h (stat structure): Use the expanded stat
7046         structure on Solaris, and PowerPC systems even though __svr4__ is
7047         defined.
7048
7049 Tue May 28 13:02:42 1996  Doug Evans  <dje@canuck.cygnus.com>
7050
7051         * libc/sys/go32/sys/errno.h (ENOSYS,ESPIPE): Keep values <= 255.
7052
7053 Fri May 17 10:34:44 1996  Ian Lance Taylor  <ian@cygnus.com>
7054
7055         * host/any: Use ../.. rather than .. to get to the main build
7056         directory.  This matches the current layout of the build
7057         directory.
7058
7059 Wed May 15 15:52:27 1996  Jeffrey A Law  (law@cygnus.com)
7060
7061         * libc/machine/h8300/__main.S: Delete.  No longer needed.
7062         * libc/machine/h8300/Makefile.in: Corresponding changes.
7063         * libc/sys/h8300hms/crt1.c: New file.
7064         * libc/sys/h8300hms/Makefile.in: Corresponding changes.
7065         * libc/sys/h8300hms/crt0.s: Call __main.
7066
7067         * libc/sys/h8300hms/crt0.S: Use temporary label names
7068         for branch targets.
7069
7070 Mon May 13 14:26:30 1996  Doug Evans  <dje@canuck.cygnus.com>
7071
7072         * libc/stdio/fopen.c (_fopen_r): Fix arguments to fseek.
7073
7074 Fri May  3 16:38:23 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
7075
7076         * libc/reent/impure.c (_impure_ptr): Force the impure pointer into
7077         .sdata on the PowerPC so that we can link newlib with code
7078         compiled with -msdata.
7079
7080 Mon Apr 29 21:38:02 1996  Doug Evans  <dje@canuck.cygnus.com>
7081
7082         * libc/sys/arm/syscalls.c (_sbrk): Rename end to __end__.
7083
7084 Thu Apr 25 06:38:59 1996  Michael Meissner  <meissner@cygnus.com>
7085
7086         * libc/sys/cygwin32/crt0.c (mainCRTStartup): On PowerPC, set the
7087         exception handler to __cygwin_exception_handler.
7088
7089 Tue Apr 23 15:14:20 1996  Ian Lance Taylor  <ian@cygnus.com>
7090
7091         * libc/include/machine/setjmp.h: Check _AM29K, not ___AM29K__.
7092
7093 Sun Apr 21 12:11:51 1996  Doug Evans  <dje@blues.cygnus.com>
7094
7095         * libm/math/Makefile.in ({w,wf}_cabs.o,{w,wf}_drem.o): Add rule for
7096         SunOS VPATH.
7097         * libc/stdlib/Makefile.in (atoff.o,atol.o,mblen.o,mbstowcs.o,
7098         wcstombs.o): Likewise.
7099
7100 Thu Apr 18 12:37:01 1996  Doug Evans  <dje@canuck.cygnus.com>
7101
7102         * libc/stdlib/environ.c (initial_env): New static local.
7103         (environ): Point to `initial_env'.
7104
7105         * libc/include/machine/setjmp.h: Clean up.
7106         (__H8300H__,__PPC__): Define _JBTYPE.
7107         (__arm__): Provide entry for.
7108         (sigjmp_buf): Delete.
7109         (jmp_buf): Use _JBTYPE if defined, otherwise int.
7110
7111 Thu Apr 18 12:10:52 1996  Jeffrey A Law  (law@cygnus.com)
7112
7113         * libc/machine/h8300/strcmp.S: Sign extend the result to
7114         32bits so we don't lose with -mint32.
7115
7116 Sun Apr 14 19:59:52 1996  Doug Evans  <dje@canuck.cygnus.com>
7117
7118         * libc/sys/go32/sys/errno.h: New file.
7119         * libc/sys/go32/Makefile.in (stat.o): Depend on stat.c.
7120         * libc/sys/go32/gerrno.s (syscall_error): Call __errno to get
7121         errno's address (make compatible with rest of newlib).
7122         * libc/sys/go32/stat.c (fixinode): Set errno upon failure.
7123         * libc/string/strerror.c (strerror): Surround each case with #ifdef.
7124
7125 Thu Mar 28 13:44:42 1996  Doug Evans  <dje@canuck.cygnus.com>
7126
7127         * libc/machine/sparc/{scan.c,shuffle.c}: New files.
7128         * libc/machine/sparc/Makefile.in: Build them.
7129         * libc/machine/sparc/machine/sparclet.h: New file.
7130
7131 Mon Mar 25 15:29:14 1996  J.T. Conklin  <jtc@rtl.cygnus.com>
7132
7133         * libc/machine/sh/asm.h: New file.
7134         * libc/machine/sh/setjmp.S: Only save clobbered registers.  Added
7135         support for SH3e's FP registers.  Use asm.h.
7136
7137 Mon Mar 25 11:59:23 1996  Jeffrey A Law  (law@cygnus.com)
7138
7139         * libc/stdio/vfprintf.c (cvt): Accept a reent structure
7140         as first argument.  Call _dtoa_r and pass the reent structure
7141         instead of calling __dtoa.
7142
7143 Fri Mar 22 13:59:37 1996  Jeffrey A Law  (law@cygnus.com)
7144
7145         * libc/include/sys/config.h: Define DOUBLE_IS_32BITS for
7146         the h8300, h8500, and others.  Add comments for some rather
7147         dubious code.
7148
7149 Thu Mar 14 18:04:43 1996  Ian Lance Taylor  <ian@cygnus.com>
7150
7151         * Makefile.in (check): Check that testsuite exists before cd.
7152
7153 Tue Mar 12 11:46:47 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
7154
7155         * libc/include/string.h (strsep): Correct prototype.
7156
7157 Mon Mar 11 09:55:19 1996  Doug Evans  <dje@charmed.cygnus.com>
7158
7159         * libc/sys/h8300/_exit.c (_exit,__exit): Set r0 to 0 before `sleep'.
7160         * libc/sys/h8300/misc.c (_kill): Set r0 to indicate abort and `sleep'.
7161         * libc/sys/h8300/crt0.S (_start): Call exit instead of `sleep'.
7162
7163 Wed Mar  6 11:51:55 1996  Doug Evans  <dje@charmed.cygnus.com>
7164
7165         * libc/posix/{creat.c,isatty.c}: New files.
7166         * libc/posix/Makefile.in (OFILES): Add creat.o, isatty.o.
7167
7168         * libc/sys/sparc64/crt0.S (environ): Delete.
7169         (.LHaveBias): Renamed from HaveBias.
7170
7171 Thu Feb 15 10:48:37 1996  Doug Evans  <dje@charmed.cygnus.com>
7172
7173         * libc/stdlib/mallocr.c (etext): Move decl inside ifdef WARN_VLIMIT.
7174         (_morecore_r): Delete SBRK_IS_ALLOC support.
7175
7176 Tue Feb 13 09:44:09 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
7177
7178         * libc/sys/cygwin32/Makefile.in (lib.a): Make lib.a with a dummy
7179         module rather than touch, so we don't get warning messages when
7180         all of the libraries are combined into libc.a.
7181
7182 Tue Feb 13 06:32:07 1996  Doug Evans  <dje@charmed.cygnus.com>
7183
7184         * libc/sys/sparclite/{Makefile.in,crt0.s}: Deleted.
7185         crt0.s replaced by version in libgloss.
7186
7187 Mon Feb  5 15:17:51 1996  J.T. Conklin  <jtc@rtl.cygnus.com>
7188
7189         * libc/reent/Makefile.in (OFILES): Add impure.o.
7190         * libc/reent/impure.o: New file, define initial reentrancy struct.
7191         * libc/reent/reent.c: Remove above definition.
7192
7193         * libm/math/sf_asinh.c: Fix typo.
7194
7195         * Makefile.in (MATHOBJS_IN_LIBC): Removed sr_ldexp.o and
7196         srf_ldexp.o.
7197         
7198         * libm/libm.texinfo: Change documentation to reflect changes
7199         in reentrancy model.
7200         * libm/math/w_gamma.c: Likewise.
7201
7202 Wed Jan 31 18:49:45 1996  Steve Chamberlain  <sac@slash.cygnus.com>
7203
7204         * configure.in (*-*-cygwin32): New.
7205         (*-*-win32): Deleted.
7206         * libc/sys/win32 renamed libc/sys/cygwin32.
7207
7208 Tue Jan 30 22:09:03 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
7209
7210         * libc/include/sys/file.h: New include file.
7211
7212 Fri Jan 26 15:52:54 1996  Steve Chamberlain  <sac@slash.cygnus.com>
7213
7214         * libc/include/machine/setjmp.h: Increase size of PPC jmp_buf.
7215
7216 Tue Jan 23 17:49:16 1996  Steve Chamberlain  <sac@slash.cygnus.com>
7217
7218         * libc/include/sys/wait.h (WIFSIGNALED): Fix.
7219
7220 Tue Jan 16 09:28:10 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
7221
7222         * doc/makedoc.c (realloc): Declare at file scope.
7223         (catchar): Not here.
7224
7225 Wed Dec 27 15:45:23 1995  Doug Evans  <dje@canuck.cygnus.com>
7226
7227         * Makefile.in (VERSION): Update to 1.7.0.
7228         * {libc,libm}/Makefile.in (VERSION): Likewise.
7229         * configure.in: Minor clean up of multilib stuff.
7230
7231         From David Johnson <davidj@ICSI.Berkeley.EDU>
7232         * {libc,libm}/Makefile.in (lib[cm].a): Delete library first.
7233
7234         * libc/stdlib/environ.c: New file.
7235         * libc/stdlib/Makefile.in (OFILES): Build it.
7236         * libc/sys/h8500hms/crt0.c (environ): Deleted.
7237         * libc/sys/m88kbug/crt0.c (environ): Deleted.
7238         * libc/sys/z8ksim/crt0.c (environ): Deleted.
7239         * libc/sys/netware/environ.c: Deleted.
7240
7241 Tue Dec 19 15:24:46 1995  Kim Knuttila  <krk@cygnus.com>
7242
7243         * configure.in (links): set sys_dir, posix_dir, syscall_dir
7244
7245 Wed Dec 13 04:16:25 1995  Michael Meissner  <meissner@wogglebug.tiac.net>
7246
7247         * doc/makedoc.c (init_string_with_size,nextword): Move malloc
7248         declaration out to external scope and declare it PTR, not char *.
7249
7250 Mon Dec 11 17:35:12 1995  steve chamberlain  <sac@slash.cygnus.com>
7251
7252         * libc/include/sys/unistd.h (getpagesize): New declaration.
7253         (_SC_PAGESIZE): New definition.
7254         * libc/include/time.h (CLK_TCK): Defined as CLOCKS_PER_SEC.
7255         * libc/configure.in (i[345]86-*-win32): Remove -DNO_FORK.
7256
7257 Fri Dec  1 16:48:46 1995  James G. Smith  <jsmith@cygnus.co.uk>
7258
7259         * libc/sys/vr4300/syscalls.c (sbrk): Fixed memory
7260         addressing. System call returns size, not (last address + 1).
7261
7262 Thu Nov 30 15:05:26 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
7263
7264         * libm/math/*.c: Removed _foo_r() reentrancy API.
7265         * libc/include/math.h: Removed _foo_r prototypes and macros.
7266
7267         * libm/math/*.c: On systems with IEEE single precision "doubles" 
7268         move foo() -> foof() wrapper code from the files that implement
7269         the standard IEEE double precision functions to the files that 
7270         implement IEEE single precision functions. (ie. On those systems
7271         sin is moved from s_sin.c to sf_sin.c).  There should eventually
7272         be use of a C extension (like gcc's alias attribute) so that the
7273         wrappers are not needed at all.
7274
7275         * libc/sys/sysnec810/sbrk.c: Cast &end to char * to get around
7276         strict NEC V810 compiler.
7277         * libc/misc/dprintf.c (getnumber): Cast char * to unsigned char *
7278         for same reason.
7279
7280 Wed Nov 29 14:25:05 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
7281
7282         * libc/stdlib/strtol.c (_strtol_r): Replaced with implementation
7283         from NetBSD C library.
7284         * libc/stdlib/strtoul.c (_strtoul_r): Likewise.
7285
7286         * libc/stdlib/assert.c (__assert): Renamed from __assertfail 
7287         and adapted from implementation I wrote for NetBSD C library.
7288         The difference is __assert doesn't take a format argument,
7289         so that there won't be multiple copies of the same string
7290         constant in the executable if assertions are enabled in
7291         more than one source module.
7292         * libc/include/assert.h (assert): Changed to call __assert.
7293
7294 Tue Nov 28 16:54:26 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
7295
7296         * libc/stdlib/strtod.c (_strtod_r): Changed to not assign to
7297         word1 on systems with 32 bit doubles.
7298         * libc/stdlib/qsort.c (qsort): Cast some void *'s to char *'s
7299         so that we can do arithmetic on them.
7300         * libc/misc/dprintf.c: Changed to support stdarg.h for ANSI
7301         compilers.
7302         
7303 Tue Nov 28 16:03:32 1995  Doug Evans  <dje@canuck.cygnus.com>
7304
7305         * libc/sys/arm/crt0.S: Zero bss.
7306
7307 Fri Nov 24 16:09:23 1995  Doug Evans  <dje@deneb.cygnus.com>
7308
7309         * libc/include/unctrl.h: New file.
7310         * libc/misc/{Makefile.in,dprintf.c,unctrl.c,misc.tex}: New files.
7311         * configure.in (subdirs): Add libc/misc.
7312         * libc/Makefile.in (SUBDIRS): Add misc.
7313         (SUBLIBS): Add misc/lib.a.
7314
7315         * libc/include/sys/reent.h (struct _reent): Make __sf last member.
7316
7317 Wed Nov 22 19:49:47 1995  Doug Evans  <dje@deneb.cygnus.com>
7318
7319         * libc/stdio/vfprintf.c (__sbprintf): Init fake._data.
7320         (_vfprintf_r): Call CHECK_INIT.
7321
7322 Tue Nov 14 02:52:12 1995  Doug Evans  <dje@canuck.cygnus.com>
7323
7324         * Makefile.in (MULTITOP): Delete.
7325         (MULTISRCTOP, MULTIBUILDTOP): Add.
7326         * configure.in: Delete call to cfg-ml-com.in.  Call config-ml.in
7327         instead of cfg-ml-pos.in.
7328
7329 Wed Nov  8 01:24:08 1995  James G. Smith  <jsmith@pasanda.cygnus.co.uk>
7330
7331         * libc/sys/vr4300/syscalls.c: Added clean version of sbrk().
7332         * libc/sys/vr4300/crt0.S: Cleaned up. Added check for FPU
7333         presence.
7334
7335 Thu Nov  2 22:25:06 1995  Michael Meissner  <meissner@tiktok.cygnus.com>
7336
7337         * libc/string/strtok.c: Include string.h to pick up strtok_r
7338         prototype.
7339
7340 Wed Nov  1 18:54:11 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
7341
7342         * libc/string/strtok.c: include <_ansi.h>.
7343         * libc/time/asctime_r.c: `reresult' -> `result'.
7344
7345 Wed Nov  1 14:35:52 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
7346
7347         * libc/time/{ctime.c, gmtime.c, lcltime.c}: Wrap functions
7348         in #ifndef _REENT_ONLY ... #endif conditional.
7349
7350         * libc/include/string.h (_strtok_r): Remove declaration.
7351         * libc/include/time.h (_asctime_r): Remove declaration.
7352         * libc/string/strtok.c (_strtok_r): Removed.
7353         * libc/time/asctime.c (_asctime_r): Removed.
7354
7355         * libc/string/Makefile.in (OFILES): Add new object.
7356         * libc/string/strtok_r.c: New file.  strtok_r function as
7357         specified by POSIX.1c, adapted from strtok implementation 
7358         from NetBSD C library.
7359         * libc/string/strtok.c (strtok): Reimplemented in terms of 
7360         strtok_r.
7361
7362         * libc/time/Makefile.in (OFILES): Add new objects.
7363         * libc/time/{asctime_r.c, ctime_r.c, gmtime_r.c, lcltime_r.c}:
7364         New files, reentrant time functions specified by POSIX.1c.
7365         * libc/time/{asctime.c, ctime.c, gmtime.c, lcltime.c}: Non-
7366         reentrant time functions re-written in terms of reentrant 
7367         functions.
7368         * libc/time/lcltime.c: Renamed from localtime.c
7369
7370         * libc/include/time.h: Add prototypes for asctime_r, ctime_r,
7371         gmtime_r, and localtime_r.
7372
7373 Sat Oct 28 14:34:31 1995  steve chamberlain  <sac@slash.cygnus.com>
7374
7375         * libc/sys/win32/crt0.c (mainCRTStartup): Call cygwin_crt0.
7376         * libc/include/sys/unistd.h (getlogin): Revert change of
7377         Oct 19.
7378         * libc/include/sys/signal.h (sigprocmask): Change prototype
7379         so it compiles with c++.
7380
7381 Wed Oct 25 15:43:18 1995  Michael Meissner  <meissner@cygnus.com>
7382
7383         * libc/include/machine/setjmp.h (PowerPC _JBLEN): Consider it a
7384         PowerPC if __PPC__ is defined.  Bump jump_buf length to 62 ints,
7385         to give some room in case we need to align the jmp_buf.
7386         
7387         * libc/machine/powerpc/setjmp.S (setjmp, longjmp): Rewrite to use
7388         the new ppc-asm.h include file the compiler provides to specify
7389         function prologue/epilogue.  Eliminate saves of the xer and ctr
7390         registers, which are volatile.  Before starting to save registers,
7391         align to 8 byte boundary.
7392
7393 Mon Oct 23 11:20:51 1995  James G. Smith  <jsmith@pasanda.cygnus.co.uk>
7394
7395         * libc/sys/vr4300/syscalls.c: Added empty kill() function,
7396         referenced by standard libraries.
7397
7398 Thu Oct 19 21:39:47 1995  Fred Fish  <fnf@cygnus.com>
7399         
7400         * libc/unix/Makefile.in, libc/string/Makefile.in,
7401         libc/stdio/Makefile.in, libc/reent/Makefile.in,
7402         libc/posix/Makefile.in:
7403         Remove tabs from otherwise empty line.  Confuses some
7404         older non-GNU versions of "make".
7405
7406 Thu Oct 19 16:32:17 1995  steve chamberlain  <sac@slash.cygnus.com>
7407
7408         * libc/sys/unistd.h (getlogin): Returns const char *.
7409
7410 Wed Oct 18 12:57:50 1995  steve chamberlain  <sac@slash.cygnus.com>
7411
7412         * libc/include/fcntl.h (O_BINARY, O_TEXT): New.
7413         * libc/include/errno.h: Moved into and include...
7414         * libc/include/sys/errno.h: New file.
7415         * libc/include/sys/wait.h: New file.
7416         * libc/stdio/rename.c (_rename_r): Use _rename system call if available.
7417         * libc/sys/win32/*: Moved out.
7418         * libc/sys/win32/crt0.c: Rewritten to cope with shared library.
7419         * configure.in (i[345]86-*-win32): HAVE_RENAME
7420
7421 Wed Oct 18 09:58:27 1995  Brendan Kehoe  <brendan@lisa.cygnus.com>
7422
7423         * libc/unix/sigset.c (sigemptyset, sigaddset): Prefix #undef to
7424         avoid macro expansion for these two names.
7425
7426 Tue Oct 17 08:45:33 1995  Doug Evans  <dje@canuck.cygnus.com>
7427
7428         * libc/machine/h8500/psi.S: r6 renamed to fp.
7429
7430 Sun Oct 15 12:58:10 1995  Michael Meissner  <meissner@wogglebug.tiac.net>
7431
7432         * configure.in (powerpc*): No longer need to define
7433         NO_LONGLONG_POINTERS to supress warnings.
7434
7435 Sat Oct 14 12:55:08 1995  Jim Wilson  <wilson@chestnut.cygnus.com>
7436
7437         * libc/reent/reent.c (_reclaim_reent): Call cleanup indirectly
7438         through PTR instead of directly.
7439
7440         * libc/sys/sh/crt0.S: Clean up formatting.  Delete unused
7441         non-standard constructor support.
7442
7443 Thu Oct 12 11:39:42 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
7444
7445         * libc/stdlib/dtoa.c (_dtoa_r): Set result pointer to the
7446         address of the Bigint instead of the address of its _x field,
7447         as the size the result buffer was calculated accordingly.  
7448         Fix from Jim Wilson <wilson@chestnut@cygnus.com>.
7449
7450         * libc/stdlib/{div.c, ldiv.c}: Replaced with implementation
7451         from NetBSD C library.  No longer special cases division by 
7452         zero (which needs to be done by the application anyway), but
7453         it doesn't need to call abs() (or labs()) four times either.
7454         
7455         * libc/stdlib/qsort.c: Replaced with implementation from 
7456         NetBSD C library.
7457
7458 Tue Oct 10 14:01:10 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
7459
7460         * libc/stdio/vfprintf.c: Replaced with implementation from
7461         NetBSD C library (which is derived from the 4.4BSD C library).
7462         * libc/stdio/cvt.c: Removed.
7463         * libc/stdio/Makefile: Updated.
7464         
7465 Tue Oct 10 12:15:23 1995  steve chamberlain  <sac@slash.cygnus.com>
7466
7467         * libc/sys/win32/syscalls.c (rename): New.
7468         * libc/sys/win32/include/winkernel.h (MoveFileExA): New.
7469
7470 Fri Oct  6 12:18:43 1995  Jim Wilson  <wilson@chestnut.cygnus.com>
7471
7472         * libc/machine/sh/Makefile.in (setjmp.o): Depend on setjmp.S.
7473         * libc/machine/sh/setjmp.S: Rename from setjmp.s.
7474
7475         * libc/sys/sh/Makefile.in (OFILES, all): Delete setjmp.o.
7476         (setjmp.o): Delete rule to build setjmp.o.
7477         * libc/sys/sh/setjmp.S: Delete file.
7478
7479 Fri Oct  6 11:19:05 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
7480
7481         * libc/stdlib/mprec.c (d2b): Added support for _DOUBLE_IS_32BITS.
7482         * libc/stdlib/mprec.h: Fixed constants used for IEEE single float
7483         format.  Added #defines to map d2b, i2b, low0bits, lshift, mult,
7484         pow5mult and s2b to identifiers with leading underscores.
7485         * libc/stdlib/Makefile.in: Add mprec.h as a dependency to dtoa.o,
7486         ecvtbuf.o, mprec.o and strtod.o.  Sort dependencies.
7487
7488 Thu Oct  5 17:27:30 1995  steve chamberlain  <sac@slash.cygnus.com>
7489
7490         * libc/sys/posix/popen.c (sys/types.h): Include.
7491
7492 Thu Oct  5 16:33:01 1995  Doug Evans  <dje@canuck.cygnus.com>
7493
7494         * libc/sys/win32/syscalls.h (fhandler): New struct.
7495         (__lookup_fhandler, __lookup_fhandler_hook): Declare.
7496         (__fhandler_normal): Declare.
7497         (hinfo): New member op_handlers.
7498         * libc/sys/win32/syscalls.c (__read): Don't validate fd.
7499         (__write): Likewise.
7500         (_read, _write, _open, _close, _lseek): Validate fd here.
7501         Move file type specific stuff to foo_normal.
7502         (read_normal, write_normal, open_normal, close_normal, lseek_normal):
7503         New functions.
7504         (__lookup_fhandler): New function.
7505         (__lookup_fhandler_hook, __fhandler_normal): New variables.
7506
7507         From anders.blomdell@control.lth.se (Anders Blomdell)
7508         * libc/sys/win32/crt0.c (vfork_init): Unset __FD_TABLE__.
7509         Don't touch standard handles.
7510         * libc/sys/win32/spawn.c (_spawn): Use STARTF_USESTDHANDLES.
7511         (_execve): Only create __FD_TABLE__ if necessary.
7512         * libc/sys/win32/include/winkernel.h (STARTF_*): Define.
7513
7514 Thu Oct  5 14:25:14 1995  steve chamberlain  <sac@slash.cygnus.com>
7515
7516         * libc/sys/win32/sys/termios.h (FLUSHO): New.
7517         * libc/sys/win32/include/win*.h: Moved a load of prototypes around.
7518         * libc/sys/win32/pipe.c (_fctnl): Ignore F_SETFL without errors.
7519         * libc/sys/win32/exception.c (ehandler3): set strace when a signal
7520         without a handler is received.
7521         * libc/sys/win32/Makefile.in: Remove --nodelete.
7522         * libc/sys/win32/resouce.c (gettimeofday): New.
7523         * libc/sys/win32/syscalls.c (path_to_real_path): New.
7524         * libc/sys/win32/syscalls.h (include/wincon.h): Don't include.
7525
7526 Wed Oct  4 13:10:35 1995  Doug Evans  <dje@canuck.cygnus.com>
7527
7528         * libc/sys/win32/dirsearch.c (opendir): stat real path name.
7529         Don't append "/*" to search pattern if trailing '/' already there,
7530         append "*".
7531         * libc/sys/win32/spawn.c (_spawn): CreateProcess doesn't seem to
7532         like /'s, convert them to \'s.  Handle //<drive>/ path names.
7533         Add space for quoted \'s in arg string.  Print translated prog name
7534         and original prog name.
7535         (_execve): Handle parent doing exec a teensy bit better.
7536         * libc/sys/win32/syscalls.h (__path_to_real_path): Update prototype.
7537         * libc/sys/win32/syscalls.c (__path_to_real_path): Don't assume
7538         path needs conversion, handle both cases.  Delete `const' from result.
7539         (hash_path_name): New function.
7540         (_open): Call it.
7541         (_stat): Likewise.  Fill in more fields for directories.
7542         * libc/sys/win32/wait.c (_wait): Explicitly pass -1 to waitpid.
7543         (wait_for_any): Fix trace message.
7544         (waitpid): Explicitly test for intpid == 0.
7545
7546         From anders.blomdell@control.lth.se (Anders Blomdell)
7547         * libc/sys/win32/spawn.c (__vfork_get_empty_entry): zero fill result
7548         so `next' is valid.
7549
7550 Sat Sep 30 15:00:15 1995  Jason Molenda  (crash@phyeaux.cygnus.com)
7551
7552         * libc/sys/win32/spawn.c (_spawn): Make quoting rules more
7553         complicated.
7554
7555 Sat Sep 30 10:25:57 1995  Jason Molenda    (crash@phydeaux.cygnus.com)
7556
7557         * libc/include/_ansi.h: set _HAVE_STDC if __STDC__ is defined
7558         at all, not just == 1.
7559         * libm/math/wf_acos.c (acosf): check for _HAVE_STDC, not __STDC__.
7560
7561 Sat Sep 30 04:30:09 1995  Jason Molenda   (crash@phydeaux.cygnus.com)
7562
7563         * libc/sys/win32/include/winbase.h: include <wintypes.h> and <winnt.h>
7564         * libc/sys/win32/include/wintypes.h: include <winnt.h>
7565         * libc/sys/win32/include/winnt.h: avoid multiple inclusion of this
7566         file.
7567
7568 Fri Sep 29 01:49:17 1995  steve chamberlain  <sac@slash.cygnus.com>
7569
7570         * libc/sys/syscalls.c (getcwd): Fix off by one error.
7571
7572         * libc/sys/signal.c (sleep): Fill it in.
7573         * libc/sys/termios.c (tcflush): Use PurgeComm
7574         (tcsetattr): Set some more of the bits.
7575         * libc/sys/include/winkernel.h: Add PurgeComm and Sleep.
7576
7577 Fri Sep 29 04:33:53 1995  Doug Evans  <dje@deneb.cygnus.com>
7578
7579         * libc/sys/arm/crt0.S (fp): Initialize to 0.
7580         Conditionally include .idata$3 stuff ifdef __pe__.
7581
7582 Fri Sep 29 01:49:17 1995  steve chamberlain  <sac@slash.cygnus.com>
7583
7584         * libc/sys/win32/crt0.c (hmap_init): Call __init_hinfo.
7585         * libc/sys/win32/pipe.c (pipe): Ditto.
7586         * libc/sys/win32/syscalls.c (__read):  Use new vtime and vmin fields.
7587         * libc/sys/win32/syscalls.h (hinfo): vtime, vmin are new.
7588         * libc/sys/win32/termios.c (tcsetattr): Init new fields.
7589         (tcgetattr): Contents are new.
7590         * libc/sys/win32/include/winkernel.h (DCB): New.
7591         (GetCommState, SetCommState): New.
7592
7593 Thu Sep 28 16:29:09 1995  Doug Evans  <dje@deneb.cygnus.com>
7594
7595         * libc/sys/arm/crt0.S (_start): Define.
7596
7597 Thu Sep 28 12:26:45 1995  steve chamberlain  <sac@slash.cygnus.com>
7598
7599         * libc/sys/arm/crt0.S: Move stack to top of RAM on PIE board.
7600         * libc/sys/arm/syscalls.c (_read, _write): Use the SWI properly.
7601
7602         * libc/sys/win32/sysconf.c: New
7603         * libc/sys/win32/sys/winadvapi.h: New
7604         * libc/sys/win32/syscalls.h (hinfo): Added timeout_len, w_binary, r_binary.
7605         * libc/sys/win32/crt0.c (hmap_init): Initialize new fields.
7606         * libc/sys/win32/pipe.c (pipe): Ditto.
7607         * libc/sys/win32/signal.c (_raise): New.
7608         (_kill): Moved from spawn.c
7609         * libc/sys/win32/spawn.c (kill): Moved to signal.c
7610         * libc/sys/win32/syscalls.c (__read): Use new fields.
7611         (_open): Ditto.
7612         * libc/sys/win32/termios.c (tcflush, tcsetattr, tcgetattr): Fill in.
7613         * libc/sys/win32/exceptions.c (__stack_trace): Keep going for longer.
7614         * libc/include/sys/unistd.h (rmdir): Takes const path.
7615         * libc/include/sys/stat.h (mkdir): Takes const path.
7616         * libc/include/sys/signal.h (SIGTTOU, SIGTTIN): New for win32.
7617
7618 Thu Sep 28 10:11:27 1995  Doug Evans  <dje@canuck.cygnus.com>
7619
7620         * libc/sys/win32/spawn.c (_spawn): Fix quoting.
7621
7622         Add support for specifying paths as //<drive>/foo/bar.
7623         * libc/sys/win32/syscalls.h (__path_needs_conversion_p): Declare.
7624         (__path_to_real_path): Declare.
7625         (PATH_TO_REAL_PATH): New macro.
7626         * libc/sys/win32/syscalls.c (__win32_pid_to_posix_pid): Minor cleanup.
7627         (__path_needs_conversion_p, __path_to_real_path): New functions.
7628         (_open): Fix test for error return from CreateFileA.
7629         Handle new path syntax.
7630         (_link, mkdir, rmdir, getcwd, chdir, stat): Handle new path syntax.
7631         * libc/sys/win32/dirsearch.c (opendir): Likewise.
7632
7633 Wed Sep 27 16:36:46 1995  steve chamberlain  <sac@slash.cygnus.com>
7634
7635         * libc/sys/win32/include/*.h: Reorganized
7636         * libc/sys/win32/include/WINREADME: New.
7637         * libc/sys/win32/Makefile.in (DLLS): Build version.a.
7638         * libc/sys/win32/*.c: Fix for new include scheme.
7639         * libc/sys/win32/crt0.c (__this_uinfo_buf, __this_uinfo): New.
7640         * libc/sys/win32/getlogin.c (getlogin): Use uinfo.
7641         * libc/sys/win32/passwd.c (*): Fix.
7642         * libc/sys/win32/syscalls.c (get[e|][g|u]id): Use passwd info.
7643         (_stat): Get directory owner and permissions right.
7644         * libc/sys/win32/syscalls.h (uinfo): New.
7645         * libc/sys/win32/version.def: Remove leading underscores.
7646
7647 Tue Sep 26 18:18:47 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
7648
7649         * libc/sys/win32/key.c: include "include/wincon.h".
7650
7651 Tue Sep 26 07:21:48 1995  steve chamberlain  <sac@slash.cygnus.com>
7652
7653         * libc/sys/win32/{key, stubs}.c: New.
7654         * libc/sys/win32/Makefile: Adjust to cope.
7655         * libc/sys/win32/crt0.c (vfork_init_first): Cope with -ve pids.
7656         (environ_init): Change env names to upper case.
7657         * libc/sys/win32/dirsearch.c (readdir): Don't fill in inode number.
7658         * libc/sys/win32/passwd.c (*): Fill in the functions.
7659         * libc/sys/win32/pipe.c (_fcntl): F_GETFL returns O_RDWR.
7660         * libc/sys/win32/spawn.c (_spawn): Cope with -ve pids.
7661         * libc/sys/win32/syscalls.c (__win32_pid_to_posix_pid): New function.
7662         (_open): Initialze hmap->execable_p too.
7663         * libc/sys/win32/syscalls.c (getuid, getgid, geteuid, getegid): Return from macros.
7664         (_fstat): Fill in permissions.
7665         * libc/sys/win32/syscalls.h (hinfo): Add execable_p.
7666
7667 Fri Sep 22 13:47:27 1995  Doug Evans  <dje@canuck.cygnus.com>
7668
7669         * configure.in (cfg-ml-com.in invocation): Use ${with_multilib_top}
7670         if defined.
7671         (cfg-ml-pos.in invocation): Likewise.
7672
7673 Fri Sep 22 11:43:44 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
7674
7675         * Makefile.in (MATHOBJS_IN_LIBC): Added s_isinf.o, sf_isinf.o,
7676         s_isnan.o and sf_isnan.o.
7677
7678 Wed Sep 20 14:50:19 1995  Ian Lance Taylor  <ian@cygnus.com>
7679
7680         * All Makefile.in files: added maintainer-clean target as a
7681         synonym for realclean.
7682
7683 Wed Sep 20 11:02:50 1995  Jeff Law  (law@snake.cs.utah.edu)
7684
7685         * libc/include/machine/setjmp.h: Add hppa support.
7686         * libc/machine/hppa/setjmp.S: New file with setjmp/longjmp
7687         support.
7688         * libc/machine/hppa/Makefile.in: Related changes.
7689
7690 Tue Sep 19 12:09:01 1995  J.T. Conklin  <jtc@blues.cygnus.com>
7691
7692         * configure.in (machine_dir): Don't set for v810-*-*.
7693
7694 Fri Sep 15 20:22:08 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
7695
7696         * libc/sys/win32/crt0.c (passover): Change to handle MKS quoting
7697         conventions correctly.
7698
7699 Thu Sep 14 13:37:22 1995  J.T. Conklin  <jtc@blues.cygnus.com>
7700
7701         * libc/stdio/puts.c: Update documentation of return value to match
7702         ANSI standard.
7703
7704 Thu Sep 14 01:52:37 1995  Doug Evans  <dje@canuck.cygnus.com>
7705
7706         Fix file descriptor inheritance.
7707         * libc/sys/win32/syscalls.h (CHILD_P): Define again.
7708         (NOT_OPEN_FD): Fix.
7709         * libc/sys/win32/spawn.c (vfork0): Only create inheritable handle if
7710         close-on-exec flag not set.  Initialize child's entire fd table.
7711         * libc/sys/win32/syscalls.c (_open): Only create inheritable handle if
7712         CHILD_P.
7713         * libc/sys/win32/pipe.c (pipe): Only create new handle as inheritable
7714         if CHILD_P.  Initialize entire hmap entry.
7715         (dup): Only create new handle as inheritable if CHILD_P.
7716         (dup2): Likewise.  Properly initialize hmap entry.
7717
7718         * libc/sys/win32/spawn.c (_execve): Don't pass _P_SEARCH_PATH to
7719         _spawn.
7720         (_exit): Use CHILD_P.
7721         * libc/sys/win32/syscalls.c (_fstat): Fix call to memset.
7722         (_stat): Likewise.
7723
7724 Mon Sep 11 23:09:39 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
7725
7726         * libc/sys/win32/crt0.c (passover): fix up the state table.
7727         * libc/posix/popen.c: Added.
7728         * libc/posix/Makefile.in: compile popen.c.
7729         
7730 Mon Sep 11 11:43:38 1995  J.T. Conklin  <jtc@cygnus.com>
7731
7732         * libc/include/machine/ieeefp.h: On the h8/300, h8/300h and
7733         h8/500 define _DOUBLE_IS_32BITS.
7734
7735 Sat Sep  9 17:55:54 1995  Doug Evans  <dje@canuck.cygnus.com>
7736
7737         Get vfork/exec/spawn/cwait/wait working again.
7738         * libc/sys/win32/syscalls.h (VFORK_NEWBORN_PSEUDO_PID): Define.
7739         (procinfo): New member vfork_level.
7740         * libc/sys/win32/crt0.c (__vfork_next_pid): Delete.
7741         (vfork_init_first): Use GetCurrentProcessId to get pid.
7742         Initialize vfork_level.
7743         (vfork_init): Delete __PID__.
7744         (environ_init): New function.  Undo patch of Aug 19, Posix says
7745         environment variables are case sensitive.
7746         (mainCRTStartup): Call it.
7747         * libc/sys/win32/spawn.c (__vfork_next_pid): Delete.
7748         (my_longjump: Make static.
7749         (_spawn): New argument `h'.  Delete setting of __PID__.
7750         Delete local `idx'.  Look for chars that need quotes, rather than
7751         ones that don't.  Set handle of created process in `h'.
7752         Result is process id if created task.
7753         (allocate_spawn_entry): New function.
7754         (spawnvp, spawnv): Call it.  Store handle and pid in procinfo entry.
7755         (_execve): Set __FD_TABLE__ before spawning child.
7756         Scan our fd table when passing fds, not our parent's.
7757         Store handle and pid in procinfo entry.
7758         (vfork0): Ensure strace message always printed.
7759         Set child pid to VFORK_NEWBORN_PSEUDO_PID.
7760         (vfork): Don't clobber result of vfork0.
7761         * libc/sys/win32/wait.c (cwait): Fix non-error result (is pid).
7762         (wait_for_any): Ignore processes in state FORK_STATE_VFORK_0.
7763
7764         * libc/sys/win32/syscalls.h (procinfo): New members `handle_valid_p'
7765         and `exit_code'.
7766         * libc/sys/win32/spawn.c (allocate_spawn_entry): Initialize them.
7767         (vfork0): Likewise.  Distinguish children, grandchildren, etc. by
7768         adding vfork level to pseudo-pid.  
7769         (vfork1): If not root, set state back to FORK_STATE_VFORK_0.
7770         (spawnvp, spawnv, _execve): Set handle_valid_p if success.
7771         (_exit): If child, set exit code.
7772         (__vfork_record_death): Only close process handle if valid.
7773         * libc/sys/win32/wait.c (wait_for_single): Watch for children that
7774         didn't exec.
7775         (wait_for_any): Likewise.  Start scan after root entry.
7776
7777 Fri Sep  8 18:48:02 1995  Jason Molenda   (crash@phydeaux.cygnus.com)
7778
7779         * libc/include/sys/types.h (off_t): off_t back to 32 bits.
7780         * libc/include/sys/_types.h (_off_t): _off_t back to 32 bits.
7781         * libc/sys/win32/syscalls.c (_fstat): st_size is lower 32-bits
7782         of actual file length.
7783
7784         * libc/sys/win32/sys/wait.h: include <sys/types.h>.
7785         * libc/include/paths.h: _PATH_BSHELL added.
7786         * libc/include/sys/unistd.h: define STDIN_FILENO, STDOUT_FILENO,
7787         and STDERR_FILENO.
7788
7789 Thu Sep  7 21:02:22 1995  Jason Molenda   (crash@phydeaux.cygnus.com)
7790
7791         * libc/include/ar.h: Added.
7792         * libc/include/sys/types.h: ino_t goes back to 32-bits.
7793         * libc/sys/win32/syscalls.h (hinfo): added .namehash field.
7794         * libc/sys/win32/syscalls.c (_open): compute .namehash based
7795         on filename.
7796         (_fstat): use .namehash for inode number of the fd.
7797
7798 Thu Sep  7 12:57:19 1995  steve chamberlain  <sac@slash.cygnus.com>
7799
7800         * libc/sys/win32/{console,ioctl,pipe,spawn,syscalls,wait}.? (*):
7801          Change hinfo to __this_procinfo.
7802         * libc/sys/win32/crt0.c: Remove procinfo_list.
7803
7804 Wed Sep  6 18:38:26 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
7805
7806         * libc/include/sys/types.h (ino_t): Define ino_t correctly for
7807         win32 environment.
7808
7809 Wed Sep  6 18:09:29 1995  Jason Molenda   (crash@phydeaux.cygnus.com)
7810
7811         * libc/sys/win32/include/grp.h: Removed.
7812         * libc/sys/include/grp.h: Added.
7813         * libc/sys/win32/grp.c: Include <grp.h>.
7814
7815 Wed Sep  6 16:52:48 1995  steve chamberlain  <sac@slash.cygnus.com>
7816
7817         * libc/include/sys/signal.h (__need_MAX_SIGNALS): Removed.
7818         (sigset_t, sigaction, SIG_SETMASK, SIG_BLOCK, SIG_UNBLOCK):
7819         Defined for all but strict ANSI.
7820         * libc/include/sys/reent.h (__need_MAX_SIGNALS): Removed.
7821         * libc/include/machine/setjmp.h: Get win32 _JBLEN right.
7822         * libc/signal/signal.c (_signal_r): Changed from using
7823         _MAX_SIGNALS to NSIG.  
7824         * libc/sys/win32/crt0.c (__current_pid, __parent_hmap, __child_hmap,
7825          __hmap): Deleted.
7826         (__strace, __vfork_next_pid): New.
7827         (__exe_suffix): Default to 1.
7828         (passover, table): Understand quoted arguments.
7829         (vfork_init_first): New.
7830         (vfork_init): Initialize new process structure.
7831         (mainCRTStartup): Pass environ to main.
7832         * exceptions.c (__sig_mask): New
7833         (ehandler3): Ignore signals in mask.
7834         (really_exit): Remove CHILD_P test.
7835         * pipe.c (pipe, dup, dup2): Use new process and file structure.
7836         * resource.c (getrusage): Ditto.
7837         * signal.c (sigprocmask): New.
7838         * spawn.c (*): Rewritten.
7839         * syscalls.c (*): Use new process and file structure.
7840         (find_unused_handle): New.
7841         * syscalls.h (MAX_HANDLES): Deleted.
7842         (hinfo): Removed child_created_p.
7843         (MAX_CHILDREN): Deleted.
7844         (vfork_jmp_info, procinfo): New.
7845         * wait.c (*): Mostly new.
7846         * sys/strace.h (_STRACE_PARANOID): New.
7847         * sys/param.h: New file.
7848
7849 Wed Sep  6 17:03:53 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
7850
7851         * libc/include/sys/stat.h: add S_BLKSIZE.
7852         * libc/include/sys/_types.h: _off_t is a 64-bit type under win32.
7853         * libc/include/sys/types.h: define off_t and ino_t to be 64 bit
7854         types under win32.
7855         (mode_t): add a #else to avoid multiple definitons.
7856
7857         * libc/sys/win32/Makefile.in: add grp.c.
7858         * libc/sys/win32/grp.c: include grp.h correctly.
7859         * libc/sys/win32/syscalls.c (_fstat): set almost all of the fields
7860         of the st structure with real information.
7861         * libc/sys/win32 (dirent): d_ino is of type ino_t.
7862
7863 Wed Sep  6 10:41:34 1995  Doug Evans  <dje@canuck.cygnus.com>
7864
7865         * libc/include/sys/types.h (mode_t): Correct for svr4 sparc's
7866         and (maybe) sparc64.
7867         (nlink_t): Provide typedef.
7868
7869 Tue Sep  5 18:46:05 1995  Jason Molenda   (crash@phydeaux.cygnus.com)
7870
7871         * libc/sys/win32/grp.c: New file.
7872         * libc/sys/win32/include/grp.h: New file.
7873
7874 Tue Sep  5 13:47:27 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
7875
7876         * libc/include/machine/ieeefp.h: Added whitespace to make this
7877         file easier to maintain.
7878         On the sh, define either __IEEE_BIG_ENDIAN or __IEEE_LITTLE_ENDIAN
7879         depending on the value of __LITTLE_ENDIAN__.
7880         On the sh3e, define _DOUBLE_IS_32BITS.
7881         
7882 Fri Sep  1 15:35:18 1995  James G. Smith  <jsmith@beauty.cygnus.com>
7883
7884         * libc/sys/vr4300/syscalls.c: Added missing support
7885         routines. _raise() and getpid().
7886
7887 Fri Sep  1 14:12:48 1995  James G. Smith  <jsmith@rtl.cygnus.com>
7888
7889         * configure.in (mips*vr4300*-*-elf): Fixed silly mistake
7890
7891 Fri Sep  1 08:42:11 1995  James G. Smith  <jsmith@beauty.cygnus.com>
7892
7893         * configure.in (mips*vr4300*-idt-*) Add support for RISQ monitor
7894         and VR4300 processor.
7895         * libc/sys/vr4300: Add directory.
7896         * libc/sys/vr4300/{Makefile.in, crt0.S, syscalls.c}: Add SIM
7897         monitor run-time support.
7898
7899 Thu Aug 31 09:16:52 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
7900
7901         * libc/stdlib/Makefile.in (CHEWOUT_FILES): Removed atol.def.
7902         * libc/stdlib/stdlib.tex: Don't include atol.def.
7903
7904 Wed Aug 30 20:38:28 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
7905
7906         * libc/sys/win32/uname.c (uname): hardcode processor as `i386'.
7907
7908 Wed Aug 30 10:48:08 1995  steve chamberlain  <sac@slash.cygnus.com>
7909
7910         * libc/ctype/Makefile.in: Fill in _to* dependencies.
7911
7912 Tue Aug 29 17:14:29 1995  steve chamberlain  <sac@slash.cygnus.com>
7913
7914         * libc/sys/win32/{dirsearch.c,sys/dirent.h}: Fix namespace problems.
7915         * libc/sys/win32/sys/dirent.h (struct dirent): Added d_ino.
7916         * libc/sys/win32/strace.c (__sys_printf): Increase size of buffer.
7917         * libc/sys/win32/smallprint.c (__small_vsprintf): Remove debug.
7918         * libc/sys/win32/dirsearch.c (readdir): Set d_ino.
7919
7920 Tue Aug 29 19:00:09 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
7921
7922         * libc/stdlib/atol.c (atol): DEFUN -> _DEFUN.
7923
7924 Tue Aug 29 16:08:09 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
7925
7926         * libc/stdlib/Makefile.in (OFILES): Added atoff.o and atol.o.
7927         * libc/stdlib/atoff.c: New file.
7928         * libc/stdlib/atof.c (atoff): Moved to atoff.c.
7929         * libc/stdlib/atoi.c (atol): Removed.
7930         * libc/stdlib/atol.c: Removed duplicate documentation.
7931
7932         * libc/include/ctype.h (_tolower, _toupper): Moved inside
7933         #ifndef _STRICT_ANSI conditional.
7934         * libc/ctype/Makefile.in (OFILES): Added _tolower.o and _toupper.o
7935         * libc/ctype/_tolower.c: New file.
7936         * libc/ctype/_toupper.c: New file.
7937         * libc/ctype/tolower.c (_tolower): Moved to _tolower.c.
7938         * libc/ctype/toupper.c (_toupper): Moved to _toupper.c.
7939         * libc/ctype/toascii.c (_toascii): Removed.
7940
7941 Tue Aug 29 12:17:32 1995  Doug Evans  <dje@canuck.cygnus.com>
7942
7943         * libc/sys/sparc64/sys/types.h: Deleted.
7944
7945 Mon Aug 28 22:06:08 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
7946
7947         * libc/sys/win32/uname.c (uname): change `Windows/NT' to `Windows_NT'
7948         and recognize Windows_95 systems.
7949
7950 Mon Aug 28 19:50:54 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
7951
7952         * libc/sys/win32/crt0.c (vfork_init, hmap_init): standard I/O fds
7953         and passed fds should be opened in text mode.
7954
7955 Mon Aug 28 18:51:22 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
7956
7957         * libc/sys/win32/crt0.c (vfork_init): mark passed fds as used
7958         in __hmap, set to binary mode by default.
7959
7960 Tue Aug 22 14:12:37 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
7961
7962         * libc/sys/sh/syscalls.c: Updated all functions to call __trap34.
7963         * libc/sys/sh/trap.S (__trap34): Renamed from __trap3.  Use trap
7964         vector 34.
7965
7966 Sat Aug 19 18:25:37 1995  steve chamberlain  <sac@slash.cygnus.com>
7967
7968         * Makefile.in (install): Install all libraries found in the
7969         top level.  If there's a sys/<type>/include directory,
7970         install those headers into include.
7971
7972         * libc/sys/win32/kernel.def351: Delete
7973         * libc/sys/win32/{comctl32.def, comdlg32.def, ctl3d32.def,
7974         glaux.def, glu32.def, largeint.def, libc.def, libcmt.def,
7975         lz32.def, mgmtapi.def, mpr.def, msacm32.def, msvcrt.def,
7976         nddeapi.def, netapi32.def, odbc32.def, odbccp32.def, oldnames.def,
7977         ole32.def, oleaut32.def, opengl32.def, rasapi32.def, rpcndr.def,
7978         rpcns4.def, rpcrt4.def, scrnsave.def, shell32.def, snmp.def,
7979         uuid.def, vdmdbg.def, version.def, vfw32.def, win32spl.def,
7980         winmm.def, winspool.def, winstrm.def, wsock32.def}: New.
7981
7982         * libc/sys/win32/Makefile.in: Update for new files and new dlltool options.
7983         * libc/sys/win32/crt0.c: Force all env names to upper case.
7984         * libc/sys/win32/sys/win*.h -> libc/sys/win32/include
7985         * libc/sys/win32/*.c: Headers have moved.
7986         * libs/sys/win32/*.[ch]: Test for open_p rather than BAD_HANDLE,
7987         __vfork_child_idx is now __vfork_child_ptr.
7988
7989         * posix/execvp (execvp): Don't crash if no PATH envname.
7990
7991 Fri Aug 18 12:22:59 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
7992
7993         * libc/include/sys/reent.h (_Bigint): Removed _reclaim field.
7994         * libc/reent/reent.c (_reclaim_reent): Free Bigint's by going
7995         through the _freelist instead of through the _reclaim list.
7996         * libc/stdlib/mprec.c (_Balloc): Don't put new node on _reclaim list.
7997         * libc/stdlib/mprec.c (_Bcopy): Make like version in master dtoa.c
7998         sources.
7999
8000 Thu Aug 17 11:03:27 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
8001
8002         * libc/machine/h8500/setjmp.S: New file.
8003         * libc/include/machine/setjmp.h: Updated for H8/500.
8004
8005 Wed Aug 16 16:19:11 1995  steve chamberlain  <sac@slash.cygnus.com>
8006
8007         * libc/sys/win32/syscalls.c (_open): More stracing.
8008         (_stat): Open the file in O_BINARY.
8009
8010 Wed Aug 16 15:49:01 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
8011
8012         * libc/machine/h8300/setjmp.S: New file.
8013         * libc/include/machine/setjmp.h: Updated for H8/300 and H8/300H.
8014
8015 Tue Aug 15 10:31:09 1995  Doug Evans  <dje@canuck.cygnus.com>
8016
8017         * libc/sys/win32/crt0.c (__exe_suffix): New global.
8018         (mainCRTStartup): Set __exe_suffix from LIBC_EXE_SUFFIX.
8019         * libc/sys/win32/spawn.c (_spawn): Add .exe suffix based on
8020         __exe_suffix.  Free fd_tab after setting env variable.
8021         (spawnv,_execve): Update.
8022         * libc/sys/win32/syscalls.h (__exe_suffix): Declare.
8023         * libc/sys/win32/smallprint.c (puts,putn): New (static) functions.
8024         (__small_vfprintf): New function.
8025         * libc/sys/win32/strace.c (__sys_printf): Call __small_vfprintf.
8026         * libc/sys/win32/wait.c (cwait): Validate argument.
8027
8028         * libc/sys/win32/syscalls.c (queue_file_deletion): Add trace message.
8029         (process_deletion_queue): Likewise.
8030
8031         * libc/sys/win32/Makefile.in (lib.a): Don't call $(RANLIB).
8032
8033 Mon Aug 14 10:14:10 1995  steve chamberlain  <sac@slash.cygnus.com>
8034
8035         * libc/sys/win32: Copyrights and gratuitous indenting.
8036
8037 Mon Aug 14 01:32:58 1995  Doug Evans  <dje@canuck.cygnus.com>
8038
8039         * libc/sys/win32/syscalls.c (queue_file_deletion): Finish.
8040         (process_deletion_queue): Likewise.
8041         (__close_all_files): New function.
8042         (_close): Only queue file deletion if really a file.
8043         * libc/sys/win32/spawn.c (_spawn): Only ensure .exe suffix if
8044         _P_APPEND_EXE.
8045         (_exit): Call __close_all_files.
8046
8047         * libc/stdlib/system.c: #include <errno.h>.
8048         (_system_r): Fix results in -DNO_EXEC case.
8049
8050         * libc/sys/win32/sys/dirent.h (DIR): New member __d_dirname.
8051         Reorganize structure.
8052         * libc/sys/win32/dirsearch.c (opendir): Use stat to determine
8053         if argument is valid.  Save directory name in DIR.  malloc space
8054         for dirent struct separately.
8055         * libc/sys/win32/syscalls.c (stat): Fix test for directory.
8056
8057         * libc/include/errno.h (ENAMETOOLONG): Define.
8058         * libc/string/strerror.c (strerror): Reword ENFILE.
8059         Add ENOSYS, ENMFILE, ENOTEMPTY, ENAMETOOLONG.
8060
8061 Sun Aug 13 22:42:25 1995  Doug Evans  <dje@canuck.cygnus.com>
8062
8063         * libc/sys/win32/crt0.c (__progname): New global.
8064         (mainCRTStartup): Support strace=bitmask,filename.
8065         * libc/sys/win32/dirsearch.c (all fns): Add trace messages.
8066         * libc/sys/win32/syscalls.c (_write): Print parent trace message
8067         if error.
8068         (getcwd): Handle len too small.  Convert '\\' to '/'.
8069         * libc/sys/win32/sys/fcntl.h (O_RDWR): = O_RDONLY|O_WRONLY.
8070         Add prototypes for open, creat, fcntl.
8071         (O_APPEND): Change value to conform to Microsoft's value.
8072         * libc/sys/win32/sys/strace.h (_STRACE): Protect in do/while.
8073
8074         * libc/stdlib/getopt.c: New file.
8075         * libc/stdlib/Makefile.in: Build it.
8076
8077 Sat Aug 12 12:17:14 1995  Doug Evans  <dje@canuck.cygnus.com>
8078
8079         * libc/posix/execvp.c (execvp): Watch for DOS drives ifdef _WIN32.
8080         Fix scanning of $PATH.
8081         * libc/posix/exec*.c: Call _execve, not execve.
8082         * libc/posix/execve.c: New file.
8083         * libc/posix/Makefile.in (OFILES): Add execve.o.
8084
8085         * libc/sys/win32/sys/strace.h (_STRACE_ALL, _STRACE_UHOH,
8086         _STRACE_STARTUP, _STRACE_SYSCALL): More bit masks of things to trace.
8087         (_STRACE): If level==0, always print.  Handle new bit mask scheme.
8088         * libc/sys/win32/crt0.c: Update _STRACE calls.
8089         * libc/sys/win32/{pipe.c,resource.c,spawn.c,syscalls.c,wait.c}: Ditto.
8090
8091         * libc/sys/win32/smallprint.c (rn): Fix digit list.
8092
8093         * libc/sys/win32/syscalls.c (__really_exit): Move from here,
8094         * libc/sys/win32/exceptions.c (really_exit): to here. Avoid recursion.
8095         * libc/sys/win32/spawn.c (spawnvp): Pass `prog' as image name.
8096         Print __seterrno trace message first.
8097         (_execve): Renamed from execve.
8098         (vfork): Update __strace usage.
8099         (__vfork_child_pid): Deleted.
8100         (__vfork_children, __vfork_child_idx): New globals.
8101         (_spawnvp): New function.
8102         (spawnvp, spawnv, _execve): Call _spawnvp.
8103         (init_child): Record child in __vfork_children.
8104         (__vfork_get_entry, __vfork_record_death): New functions.
8105         * libc/sys/win32/crt0.c (mainCRTStartup): Initialize __vfork_children.
8106         * libc/sys/win32/kernel32.def (WaitForMultipleObjects): Define.
8107         * libc/sys/win32/syscalls.h (CHILD_P): New macro.  All files updated.
8108         (MAX_CHILDREN, CHILD_INTERIM_PID): Define.
8109         (children): New typedef.
8110         (__vfork_children,__vfork_child_idx): Declare.
8111         (__vfork_get_entry,__vfork_record_death): Declare.
8112         * libc/sys/win32/wait.c (wait_for_single,wait_for_any): New functions.
8113         (waitpid): Handle pid == -1.
8114         * libc/sys/win32/sys/wintypes.h (WaitForMultipleObjects): Declare.
8115         * configure.in (i386-win32): Add -DNO_FORK.
8116         * libc/syscalls/sysfork.c (fork): Don't define for NO_FORK.
8117         * libc/reent/execr.c (_fork_r): Likewise.
8118         * libc/stdlib/system.c (do_system): New function.
8119         If WIN32, try to get shell path from $SH_PATH, use vfork.
8120         (_system_r): Return 1 for (s == NULL) if WIN32 or unix,
8121         otherwise return 0.
8122
8123 Sat Aug 12 11:08:00 1995  steve chamberlain  <sac@slash.cygnus.com>
8124
8125         * libc/stdlib/{mallocr.c, mstats.c}: Move mstats from mallocr to mstats.c.
8126         * libc/sys/win32/fcntl.h: Don't include self.
8127         * libc/sys/win32/sys/strace.h (_STRACE_WM, _strace_wm): New.
8128         * libc/sys/win32/sys/winbase.h: (GetUserName) New.
8129         * libc/sys/win32/sys/wincon.h (HANDLER_ROUTINE): Define correctly.
8130         * libc/sys/win32/sys/wintypes.h (GetFileType, GetCurrentProcess, CloseHandle,
8131         SetFilePointer, CreateFileA, GetFileInformationByHandle, GetStdHandle):
8132         Correct prototypes.
8133         * libc/sys/win32/strace.c: New file.
8134         * libc/sys/win32/smallprint.c: New file.
8135         * libc/sys/win32/crt0.c (func): Delete.
8136         (mainCRTStartup): Fix alloca usage.  Set handles explictly.
8137         * libc/sys/win32/dirsearch.c: Clean up handle usage, fix calls to __seterrno.
8138         * libc/sys/win32/exceptions.c: Lint.
8139         * libc/sys/win32/{ioctl.c, pipe.c, resource.c, spawn.c, cwait.c, syscalls.c}:
8140         Clean up handle usage.
8141         * libc/sys/win32/syscalls.c (__sys_printf): Moved into strace.c
8142         (open.c): Default file type is text.
8143         * libc/sys/win32/uname.c (uname): Use __small_sprintf.
8144         * libc/sys/win32/advapi32.def: New      
8145
8146 Fri Aug 11 17:11:52 1995  Doug Evans  <dje@canuck.cygnus.com>
8147
8148         * configure.in (posix_dir, libc_posix_lib): New variables.
8149         Define LIBC_POSIX_LIB in makefile to be $libc_posix_lib.
8150         (i[345]86-*-win32): Define posix_dir.
8151         Delete -DNO_EXEC.  Define -DHAVE_OPENDIR.
8152         (if unix_dir): Fix typo.
8153         * libc/posix/{Makefile.in,closedir,opendir,readdir,rewinddir,
8154         scandir,seekdir,telldir}: New files.
8155         * libc/posix/{execl.c,execle.c,execlp.c,execv.c,execvp.c}: Move here
8156         from libc/unix.
8157         * libc/Makefile.in (LIBC_POSIX_LIB): Define.
8158         (SUBDIRS): Add posix.
8159         (SUBLIBS): Add $(LIBC_POSIX_LIB).
8160
8161         * libc/include/sys/signal.h (SIGCHLD): Add for _WIN32.
8162         (NSIG): Increase to 21.
8163         * libc/include/sys/unistd.h (pid_t): Move from here,
8164         * libc/include/sys/types.h (pid_t): to here.
8165
8166         * libc/sys/win32/syscalls.h: #include "sys/strace.h".
8167         (__ptrace): Delete.
8168         (hinfo): New members close_exec_p, child_created_p.
8169         (struct exception_list): Define.
8170         (__hmap): Redefine as pointer to table.
8171         (__parent_hmap, __child_hmap): New globals.
8172         (__set_errno, __really_exit): Declare.
8173         (__vfork_child_pid): Declare.
8174         * libc/sys/win32/crt0.c (__strace, __trace_file): New global.
8175         (__orig_stdin, __orig_stdout, __orig_stderr): New globals.
8176         (__parent_hmap, __child_hmap): New globals.
8177         (__hmap): Redefine as pointer to active map.
8178         (__get_console): New function.
8179         (mainCRTStartup): Change leading '=' in environ vars to '!'.
8180         (env __FD_TABLE__): Watch for this and initialize our fd/handle
8181         mapping table from it if defined.
8182         (argv, envp): Dump if __strace >= 4.
8183         (main): Call here.
8184         * libc/sys/win32/exceptions.c (myp): Redefine.
8185         (__syscalls_b): Delete.
8186         (__stack_trace): New function.
8187         (ehandler3): Update to use _STRACE.  Print stack trace.
8188         Call __really_exit instead of exit.
8189         (init_exceptions): Delete args argc,argv.  New arg mine.
8190         * libc/sys/win32/kernel32.def (CreatePipe, DuplicateHandle, FindClose,
8191         FindFirstFileA, FindNextFileA, GetComputerNameA,
8192         GetEnvironmentVariableA, ReadFile, SetEnvironmentVariableA): Define.
8193         * libc/sys/win32/signal.c (signal): Validate arg.
8194         (alarm, sleep): Define as stubs for now.
8195         * libc/sys/win32/syscalls.c (all fns): Update to use _STRACE.
8196         (__syscalls_b, errno): Delete.
8197         (__vfork_child_pid, __vfork_jmp_buf): New globals.
8198         (__seterrno): Handle more errors.
8199         (__sys_printf): Renamed from _ptrace.
8200         (__really_exit): New function.
8201         (queue_file_deletion, process_deletion_queue): New functions.
8202         (__resume_parent): New function.
8203         (_unlink): Handle trying to delete open file.
8204         (__totime_t): Renamed from totime_t.
8205         (setsid, __read, __write): New functions.
8206         (cwait, spawnvp, R, D, getrusage, _execve, _fork, _wait): Delete.
8207         * libc/sys/win32/{dirsearch.c,getlogin.c,misc.c,resource.c,passwd.c,
8208         times.c,spawn.c,pipe.c,wait.c,termios.c,ioctl.c,uname.c}: New files.
8209         * libc/sys/win32/console.c: Update to new definition of __hmap.
8210         * libc/sys/win32/Makefile.in: Build new files.
8211         * libc/sys/win32/sys/{dirent.h,winerror.h,wait.h,termios.h}: New files.
8212         * libc/sys/win32/sys/{ioctl.h,utsname.h}: New files.
8213         * libc/sys/win32/sys/strace.h: Renamed from ptrace.h.
8214         * libc/sys/win32/sys/wintypes.h (GetCurrentDirectoryA): Fix prototype.
8215
8216 Thu Aug 10 16:32:52 1995  Doug Evans  <dje@canuck.cygnus.com>
8217
8218         * libc/sys/h8500hms/misc.c (kill): Handle SIGABRT.
8219
8220 Thu Aug 10 12:07:38 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
8221
8222         * libc/stdlib/{dtoa.c, strtod.c}: Merged assorted changes that
8223         have been made to the master dtoa.c sources (from netlib.att.com)
8224         since they were integrated into newlib in early 1992.  Fixes
8225         problems with storage leaks and handling of numbers with very
8226         negative exponents.
8227         
8228 Wed Aug  9 14:18:39 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
8229
8230         * Makefile.in (all): set rootpre and srcrootpre before calling
8231         sub-makes.
8232
8233 Tue Aug  8 17:20:45 1995  steve chamberlain  <sac@slash.cygnus.com>
8234
8235         * libc/sys/win32/crt0.c: Change __hmap usage.
8236         * libc/sys/win32/exceptions.c: Use _ptrace call.
8237         * libc/sys/win32/syscalls.c: Use _ptrace call.
8238         (read, write): Cope with DOS style CRLF when in TEXT mode.
8239         * libc/sys/win32/syscalls.h: Declare hinfo struct.
8240         * libc/sys/win32/user32.def: Get DefWindowProc arg list right.
8241         * libc/sys/win32/sys/fcntl.h, ptrace.h: New.
8242         * libc/sys/win32/sys/windows.h: Fill in rest of messages.
8243         * libc/sys/win32/sys/wintypes.h: Fix attribute syntax.
8244
8245 Mon Aug  7 13:04:54 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
8246
8247         * libc/include/math.h (cabs, cabsf, drem, dremf): New declarations.
8248
8249         * libm/math/{w_cabs.c, wf_cabs.c, w_drem.c, wf_drem.c}: New files,
8250         wrappers for hypot() and remainder() for BSD libm compatibility.
8251         These are public domain implementations written by me for the
8252         NetBSD libm some time ago.  Note cabs() is required by ucbtest.
8253         * libm/math/Makefile.in (obj): Added w_cabs.o and w_drem.o.
8254         (fobj): Added wf_cabs.o and wf_drem.o.
8255
8256 Thu Aug  3 08:13:05 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
8257
8258         * libc/sys/h8500hms/misc.c: New file.
8259         * libc/sys/h8500hms/Makefile.in (OFILES): Add misc.o.
8260
8261 Wed Aug  2 16:46:27 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
8262
8263         * libc/time/localtime.c (localtime): Fix problem with leap year
8264         handling.  Stole algorithm from Arthur David Olson's tz code.
8265         
8266 Mon Jul 31 10:21:54 1995  steve chamberlain  <sac@slash.cygnus.com>
8267
8268         * configure.in: (z8k-*sim): Renamed z8k-*-coff.
8269
8270         * libc/sys/z8ksim/glue.c (_getpid, _kill): New
8271         (_exit): Use argument.
8272
8273 Fri Jul 28 15:17:04 1995  Doug Evans  <dje@canuck.cygnus.com>
8274
8275         * libc/sys/win32/sys/winbase.h (_WINBASE_H): Define.
8276
8277 Wed Jul 26 16:24:19 1995  steve chamberlain  <sac@slash.cygnus.com>
8278
8279         * libc/sys/sh/trap.S (perrno): Align correctly. (pr 7532)
8280
8281 Mon Jul 24 13:42:52 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
8282
8283         * configure.in (sparc*): Add -DMALLOC_ALIGNMENT=8 to
8284         target_cflags.
8285
8286 Mon Jul 24 11:42:07 1995  steve chamberlain  <sac@slash.cygnus.com>
8287
8288         * libc/sys/win32/crt0.c (mainCRTStartup):  Look for
8289         ptrace with case insensitivity
8290         * libc/sys/win32/{user32.def, gdi32.def, exceptions.c, screen.c,
8291         sys/winbase.h,  sys/windows.h, sys/wintypes.h, sys/winuser.h}:
8292         New files.
8293
8294 Fri Jul 21 11:22:26 1995  Doug Evans  <dje@canuck.cygnus.com>
8295
8296         * Makefile.in: Multilib support moved to ../cfg-ml-{com,pos}.in.
8297         (MULTITOP, MULTIDIRS, MULTISUBDIR, MULTIDO, MULTICLEAN): New variables.
8298         (all, install, *clean): Use new multilib support.
8299         * configure.in: Multilib support moved to ../cfg-ml-{com,pos}.in.
8300
8301 Fri Jul 21 07:11:42 1995  steve chamberlain  <sac@slash.cygnus.com>
8302
8303         * libc/include/sys/signal.h (__WIN32__): New.
8304
8305         * configure.in (i386-*-win32): Remobe SBRK_IS_ALLOC.
8306
8307         * libc/stdlib/mprec.c (Balloc): Fix trampling problem.
8308         (ulp, b2d): Handle 32 bit doubles.
8309         * libc/stdlib/mprec.h:  Handle 32 bit doubles.
8310         * libc/stdlib/strtod.c (_strtod_r): Ditto.
8311
8312 Fri Jul 14 08:24:58 1995  steve chamberlain  <sac@slash.cygnus.com>
8313
8314         from medp@primag.co.uk:
8315         * libc/stdio/setvbuf.c (setvbuf): Fix line buffering on
8316         dynamically allocated buffers.
8317
8318 Thu Jul 20 10:11:03 1995  Fred Fish  <fnf@fishbowl>
8319
8320         * libc/include/sys/unistd.h (_exit):  Add _ATTRIBUTE ((noreturn)).
8321         * libc/stdlib/exit.c (unistd.h):  Include to pick up _exit() declaration.
8322
8323 Thu Jul 20 10:16:25 1995  Michael Meissner  <meissner@tiktok.cygnus.com>
8324
8325         * configure.in (powerpc): Fix previous fix.
8326
8327 Wed Jul 19 14:08:55 1995  Michael Meissner  <meissner@tiktok.cygnus.com>
8328
8329         * configure.in (powerpc-*eabiaix*): Update PowerPC multilib
8330         directories for this target.
8331
8332 Wed Jul 19 00:34:30 1995  Jeffrey A. Law  <law@rtl.cygnus.com>
8333
8334         * configure.in (hppa): Add machine_dir definition.
8335         * libc/machine/hppa: New directory with PA specific implementations
8336         of the basic memory/string functions.
8337
8338 Tue Jul 18 21:16:00 1995  Michael Meissner  <meissner@tiktok.cygnus.com>
8339
8340         * configure.in: Update current PowerPC multilib directories.
8341         Split big and little endian configurations.
8342
8343 Tue Jul 18 11:55:33 1995  Ian Lance Taylor  <ian@cygnus.com>
8344
8345         * configure.in: Add --enable-single-float option to configure to
8346         control use of MIPS single-float directories.  Default to yes.
8347
8348         * Makefile.in (all): Don't recurse into multilib directory if it
8349         does not exist.
8350
8351 Mon Jul 17 15:51:30 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
8352
8353         * libc/sys/sh/syscalls.c: Fix typo.
8354
8355 Mon Jul  3 14:38:52 1995  Steve Chamberlain  <sac@slash.cygnus.com>
8356
8357         * Makefile.in, libc/Makefile.in, libc/sys/Makefile.in:
8358         Pass down DLLTOOL.
8359         * libc/include/process.h: Define WAIT_CHILD.
8360         * libc/include/types.h: Get sizes right for win32.
8361         * configure.in (i386-*-pe): Becomes i386-win32.
8362         * libc/sys/win32/{crt0.c, kernel32.def, longjmp.c, setjmp.c, syscalls.c
8363         wintypes.h,sys/file.h,sys/resource.h}: Second pass.
8364         * libc/stdlib/mallocr.c: Don't round up memory block if SBRK_IS_ALLOC
8365         is defined.
8366
8367 Wed Jun 28 18:34:54 1995  Steve Chamberlain  <sac@slash.cygnus.com>
8368
8369         * configure.in (i[345]86-*-pe):  New target (NT).
8370         * host/any: DLLTOOL new.
8371         * libc/sys/win32/{crt0.c, kernel32.def, longjmp.c, setjmp.c, syscalls.c
8372         wintypes.h,sys/file.h,sys/resource.h}: Preliminary support for
8373         WIN32 (just enough to cross host the comp-tools).
8374
8375 Thu Jun 22 11:45:18 1995  Doug Evans  <dje@canuck.cygnus.com>
8376
8377         * libc/machine/h8300/{cmpsi.S,ucmpsi.S,divhi3.S,mulhi3.S,mulsi3.S}:
8378         Deleted.  These files live in gcc/config/h8300/lib1funcs.asm now.
8379
8380 Mon Jun 19 11:40:40 1995  Doug Evans  <dje@canuck.cygnus.com>
8381
8382         * libc/include/machine/ieeefp.h (arm): Change to always be
8383         __IEEE_BIG_ENDIAN (even on little endian ARM's).
8384
8385 Thu Jun  8 14:22:28 1995  Steve Chamberlain  <sac@slash.cygnus.com>
8386
8387         * libc/sys/crt0.S: Initialze sp, and call exit after main.
8388         * libc/sys/syscalls.c (abort): New.
8389         * configure.in (arm): Define ABORT_PROVIDED.
8390
8391 Wed Jun  7 14:04:35 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
8392
8393         * configure.in (powerpc): Define multidirs.
8394
8395 Mon Jun  5 16:10:13 1995  Doug Evans  <dje@canuck.cygnus.com>
8396
8397         * libc/sys/arm/crt0.S: Add __USER_LABEL_PREFIX__ support.
8398
8399 Thu Jun  1 10:51:47 1995  Sean Eric Fagan <sef@cygnus.com>
8400
8401         * configure.in (sparclite): Delete target_cflags.  Define multidirs.
8402
8403 Wed May 24 14:23:25 1995  Steve Chamberlain  <sac@slash.cygnus.com>
8404
8405         * configure.in, libc/include/machine/ieeefp.h: Modified
8406         for arm:
8407         libc/machine/arm/*, libc/sys/arm/*: New
8408
8409 Tue May 23 13:53:07 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
8410
8411         * libc/include/machine/ieeefp.h: Use __PPC__ instead of
8412           __powerpc__ when determining endianness.
8413
8414 Wed May 10 07:55:56 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
8415
8416         * configure.in (m68*): Add multidir for the m68332.
8417
8418         * host/any (CC): Fix typo in last change.
8419
8420 Fri Apr 14 22:20:31 1995  Ken Raeburn  <raeburn@cujo.cygnus.com>
8421
8422         * libc/include/sys/config.h: Test __m68k__ instead of __m68000__
8423         when determining endianness.
8424         * libc/include/machine/ieeefp.h: Ditto.
8425         * libc/machine/m68k/setjmp.S: Use '&' instead of '#' for immediate
8426         operands.
8427
8428 Fri Apr 14 14:14:29 1995  Doug Evans  <dje@chestnut.cygnus.com>
8429
8430         * libc/include/errno.h (ENOTEMPTY): Define.
8431
8432 Thu Apr  6 12:21:20 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
8433
8434         * configure.in (sparc-sun-sunos*): Add -DMALLOC_ALIGNMENT=8 to
8435           target_cflags.
8436
8437         * libc/sys/sun4/Makefile.in (COPYOFILES): Added rem.o, multiply.o,
8438           and umultiply.o.
8439
8440         * libc/stdio/tmpnam.c (worker): Unconditionally increment count
8441           instead of only when open succeeds.  ANSI requires that multiple
8442           calls to tmpnam() result in different files.
8443
8444         * libc/sys/sun4/Makefile.in (COPYRENAMEOFILES): New macro, list of
8445           objects pulled in from /lib/libc.a that must be renamed before
8446           being pulled into newlib.  /lib/libc.a's div.o conflicted with
8447           newlib's file with the same name.
8448
8449         * libc/stdlib/ldiv.c (ldiv): Call labs() instead of abs().
8450
8451         * host/any (CC, AS, AR, RANLIB): Changed so that executables in
8452           the build tree will only be used if the executables are present
8453           (instead of just the Makefiles).
8454
8455         * libc/include/stdlib.h (mblen, mbtowc, wctomb, mbstowcs,
8456           wcstombs): Define.
8457         * libc/stdlib/{mblen.c, mbstowcs.c, wcstombs.c}: New files, null
8458           versions of these functions that I orignally wrote for the
8459           NetBSD C library.
8460         * libc/stdlib/{mbtowc.c, wctomb.c}: Replaced functions with
8461           versions I wrote for NetBSD.
8462
8463 Wed Mar 29 12:42:42 1995  Kung Hsu  <kung@mexican.cygnus.com>
8464
8465         * libc/sys/sparclite/Makefile.in: add crt0.s and make info.
8466         * libc/sys/sparclite/crt0.s: ditto.
8467
8468 Tue Mar 28 20:28:03 1995  Rob Savoye  <rob@rtl.cygnus.com>
8469
8470         * configure.in: Add soft-float for proelf.
8471
8472 Mon Mar 27 12:07:56 1995  Steve Chamberlain  <sac@bang.hack.com>
8473
8474         * libc/stdlib/mprec.h (Bcopy): Copy the right number
8475         of bytes.
8476
8477 Mon Mar 27 11:24:22 1995  Doug Evans  <dje@chestnut.cygnus.com>
8478
8479         * Makefile.in (all): Depend on `force'.
8480         * configure.in (syscall_dir): Renamed from fake_sys_dir.
8481         (libc_syscall_lib): Renamed from libc_fake_sys_lib.
8482         (LIBC_SYSCALL_LIB): Renamed from LIBC_FAKE_SYS_LIB.
8483         * libc/Makefile.in: Likewise.
8484         * libc/include/reent.h: Update syscall references.
8485         (_fcntl_r): Add prototype.
8486         * libc/syscalls/*.c #include <reent.h>.
8487         (*) Call reentrant version if REENTRANT_SYSCALLS_PROVIDED.
8488
8489 Mon Mar 20 16:57:39 1995  Doug Evans  <dje@deneb.cygnus.com>
8490
8491         * libc/include/sys/stat-dj.h (S_ISBLK): Define.
8492         (S_ISCHR, S_ISDIR, S_ISFIFO, S_ISREG): Define.
8493         * libc/include/sys/stat.h (stat-dj.h): Include ifdef MSDOS.
8494         (time.h, sys/types.h): Always include (even if MSDOS).
8495         (stat): Fix prototype.
8496
8497 Fri Mar 10 11:30:38 1995  Ian Lance Taylor  <ian@cygnus.com>
8498
8499         * configure.in (i[345]86-*-go32): Compile with -DNO_EXEC.
8500
8501 Mon Feb 27 18:00:39 1995  Jim Wilson  <wilson@chestnut.cygnus.com>
8502
8503         * libc/machine/h8500/psi.S (EXTPSIHI_RN_SN): Ifdef out.
8504
8505 Mon Feb 13 16:10:03 1995  Ian Lance Taylor  <ian@cygnus.com>
8506
8507         * libc/include/regdef.h: New file.
8508         * libc/machine/mips/machine/regdef.h: New file.
8509
8510 Mon Feb  6 15:24:29 1995  Doug Evans  <dje@canuck.cygnus.com>
8511
8512         * libc/sys/sparc64/sys/fcntl.h (open): Add ellipsis.
8513
8514 Fri Jan 27 13:52:10 1995  Steve Chamberlain  <sac@splat>
8515
8516         * libc/sys/sh/crt0.S: Pass main's return to exit.
8517         * libc/sys/sh/trap.S: Put errno in the right place.
8518
8519 Tue Jan 24 18:57:56 1995  Ian Lance Taylor  <ian@sanguine.cygnus.com>
8520
8521         * libm/math/e_rem_pio2.c (__ieee754_rem_pio2): Integrate change
8522         from fdlibm 5.2: handle |x| < 3pi/4 more efficiently.
8523         * libm/math/ef_rem_pio2.c: Likewise.
8524         * libm/math/e_log10.c: Remove unused static one.
8525         * libm/math/ef_log10.c: Likewise.
8526         * libm/math/s_frexp.c: Likewise.
8527         * libm/math/sf_frexp.c: Likewise.
8528
8529 Sun Jan 22 21:26:14 1995  Steve Chamberlain  <sac@splat>
8530
8531         * libc/sys/go32/Makefile.in, clock.S, dir.c, setjmp.S, stat.c,
8532         longjmp.S: Upgraded.
8533         * libc/sys/go32/sys/setjmp.h: Upgraded.
8534         * libc/sys/go32/sys/go32.h, dpmi.h: New files.
8535
8536 Fri Jan 20 18:33:18 1995  Ian Lance Taylor  <ian@sanguine.cygnus.com>
8537
8538         * configure.in: Add many entries to multidirs for mips targets.
8539
8540 Wed Jan 18 10:19:25 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
8541
8542         * libm/math/e_jn.c (__ieee754_yn): Integrate change from fdlibm
8543           5.2 which fixes bug where jn(-1,x) is three times larger than
8544           the actual answer.
8545         * libm/math/ef_jn.c (__ieee754_ynf): Likewise.
8546
8547 Sun Jan 15 21:48:58 1995  Steve Chamberlain  <sac@splat>
8548
8549         * libc/sys/w65/sys/syscalls.h: New file
8550         * libc/include/machine/ieeefp.h: W65 support.
8551         * libc/include/sys/config.h: Ditto.
8552         * libc/machine/w65/Makefile.in, cmpsi, divsi3, lshrhi.s, mulsi3.c,
8553         sdivhi3.s, smulhi3.s, udivhi3.s, umodhi3.s: New files.
8554         * libc/sys/w65/Makefile.in, crt0.c, syscalls.c, trap.c: New files.
8555
8556 Wed Jan 11 15:59:01 1995  Ian Lance Taylor  <ian@sanguine.cygnus.com>
8557
8558         * libc/sys/Makefile.in (lib.a, crt0.o): Depend upon subs.
8559
8560 Tue Jan  3 15:57:03 1995  Rob Savoye  <rob@darkstar.cygnus.com>
8561
8562         * Makefile.in, configure.in: Remove any references to the old
8563         "stub" dir.
8564
8565 Thu Dec 22 10:42:08 1994  Ian Lance Taylor  <ian@sanguine.cygnus.com>
8566
8567         * libc/syscalls/sysopen.c: Write _HAVE_STDC version of open, which
8568         uses ... in prototype.
8569
8570
8571 Wed Nov 30 08:39:42 1994  Ian Lance Taylor  <ian@rtl.cygnus.com>
8572
8573         * libc/sys/a29khif/sys/libconfig.h: Remove.
8574         * libc/sys/go32/sys/libconfig.h: Remove.
8575         * libc/sys/sun4/sys/libconfig.h: Remove.
8576         * libc/sys/sysvi386/sys/libconfig.h: Remove.
8577         * libc/sys/sysvnecv70/sys/libconfig.h: Remove.
8578         * libc/sys/sparc64/sys/libconfig.h: Remove.
8579
8580         * libc/include/_ansi.h (_FLOAT_ARG, _FLOAT_RET): Don't define.
8581         * libc/include/sys/config.h (_FLOAT_ARG, _FLOAT_RET): Likewise.
8582         * libc/include/math.h: Change all uses of _FLOAT_RET and
8583         _FLOAT_ARG to float.
8584         * libm/test/math.c: Likewise.
8585         * testsuite/libm.sac/math.c: Likewise.
8586         * testsuite/libm.sac/working/math.c: Likewise.
8587
8588 Wed Nov 23 22:39:28 1994  Steve Chamberlain  (sac@jonny.cygnus.com)
8589
8590         * libc/sys/sh/trap.s,crt0.s,setjmp.s: Renamed with .S so that
8591         gcc calls gas with endian option.
8592         * configure.in (sh): Build little endian version too.
8593
8594 Wed Nov 16 18:21:45 1994  Ian Lance Taylor  <ian@sanguine.cygnus.com>
8595
8596         * configure.in: Configure big and little endian versions for MIPS
8597         targets.
8598
8599 Sat Nov 12 21:12:51 1994  Doug Evans  <dje@canuck.cygnus.com>
8600
8601         * libc/include/limits.h: Deleted.
8602         * libc/include/machine/limits.h: Deleted.
8603
8604 Thu Nov 10 15:32:44 1994  Rob Savoye  <rob@rtl.cygnus.com>
8605
8606         * ChangeLog: Remove stub directory. This has all been rewritten
8607         and moved to devo/libgloss.
8608
8609 Thu Sep 29 18:31:04 1994  Ian Lance Taylor  <ian@sanguine.cygnus.com>
8610
8611         * Makefile.in (dvi): Add to info target, use $@ in sub make.
8612         (docs): Merge into info target.
8613         * libm/Makefile.in (dvi): Add $(srcdir).
8614         * libm/math/Makefile.in (chobjs): Remove underscores from file
8615         names.  Texinfo doesn't like them.
8616         (wacos.def, ...): Add explicit targets for all .def files.
8617         * libm/math/math.tex: Remove underscores from @include file names.
8618         * doc/Makefile.in (dvi): Add dummy target.
8619         * testsuite/Makefile.in (dvi): Add dummy target.
8620
8621 Mon Sep 26 21:17:46 1994  Doug Evans  (dje@canuck.cygnus.com)
8622
8623         * Makefile.in (VERSION): Define.  For net newlib releases.
8624
8625 Thu Sep 22 19:01:26 1994  Doug Evans  (dje@canuck.cygnus.com)
8626
8627         * README: New file.
8628
8629 Mon Sep 19 16:35:23 1994  Jim Wilson  (wilson@sphagnum.cygnus.com)
8630
8631         * libc/stdlib/ecvtbuf.c (_gcvt): Undo last change.
8632
8633 Mon Sep 19 11:44:23 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
8634
8635         * libc/stdlib/setenv.c (_findenv): Declare.
8636
8637         * libc/include/sys/fcntl.h: Fix declarations of open, creat, and
8638         fcntl to not use _EXFUN, and change string parameters to open and
8639         creat to be ``const char *''.
8640         * libc/sys/sparc64/sys/fcntl.h: Likewise.
8641         * libc/sys/sparc64/creat.c (creat): Make PATH const.
8642         * libc/syscalls/sysopen.c: Include <fcntl.h>.
8643         (open) Make _FILE const.
8644         * libc/sys/z8ksim/glue.c (_open): Make BUF const.
8645         (_creat): Make PATH const.
8646         * libc/sys/h8300hms/syscalls.c (_open): Make PATH const.
8647         * libc/sys/h8500hms/syscalls.c (_open): Likewise.
8648         * libc/sys/m88kbug/syscalls.c (open): Likewise.
8649         * libc/sys/sh/syscalls.c (_open): Likewise.
8650         * stub/shared/glue.c (open): Make BUF const.
8651         * stub/ex93x/syscalls.c (open): Make FILENAME const.
8652
8653 Thu Sep  8 16:39:12 1994  Steve Chamberlain  (sac@jonny.cygnus.com)
8654
8655         * libc/include/errno.h: Add ENMFILE
8656         * libc/include/sys/config.h: Support Z8000.
8657         * libc/include/sys/signal.h: New signals for go32.
8658         * libc/machine/h8500/psi.S (__addpsir0r0): New function
8659         * libc/machine/h8500/cmpsi.S (__ucmppsi2): New function
8660         * libc/machine/sh/sdivsi3.s (__sdivsi3): Rewritten.
8661         * libc/stdlib/mallocr.c (_morecore_r): Minimum chunk
8662         size is variable, depending upon CHUNK_POWER.
8663         * libc/sys/go32/*.c: Upgrade to new go32 stuff.
8664
8665 Sun Sep  4 17:42:43 1994  Jim Wilson  (wilson@sphagnum.cygnus.com)
8666
8667         * libc/stdlib/ecvtbuf.c (_gcvt): Output '-' for negative numbers.
8668
8669 Fri Sep  2 10:56:01 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
8670
8671         * libc/include/_ansi.h (_PARAMS): Don't define if already defined.
8672
8673 Wed Aug 24 11:11:03 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
8674
8675         * configure.in: Change i[34]86 to i[345]86.
8676
8677         * libc/include/math.h: Don't define HUGE_VAL if it is already
8678         defined.
8679
8680 Wed Aug 17 15:18:02 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
8681
8682         * testsuite/libm.sac/test_erfc.c: Correct some result values.
8683         * testsuite/libm.sac/test_gammaf.c: Likewise.
8684         * testsuite/libm.sac/test_sin.c: Likewise.
8685         * testsuite/libm.sac/test_tanh.c: Likewise.
8686
8687 Tue Aug 16 16:12:53 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
8688
8689         * libc/include/machine/ieeefp.h: Don't try set endianness if it is
8690         already set.  Define typedefs __int32_t and __uint32_t.
8691         * libc/include/math.h: Include <machine/ieeefp.h>.
8692         (union __dmath): Use __uint32_t.
8693         * libm/math/fdlibm.h, libm/math/*.c: Use __int32_t and __uint32_t
8694         instead of int and unsigned int.
8695
8696 Thu Aug 11 15:16:09 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
8697
8698         Replace the math library with the SunPRO fdlibm package.
8699         * libm/math: Completely changed all files.
8700         * libm/ieeefp: Remove contents and directory.
8701         * libm/Makefile.in (LIBM_FP_LIB): Remove.
8702         (SUBDIRS): Just set to math/lib.a.
8703         * libm/libm.texinfo: Updated for new library.
8704         * libc/include/math.h: Extensive changes for new math library.
8705         * libc/include/ieeefp.h (isnanf, isinff, finitef): Change argument
8706         from _FLOAT_ARG to float.
8707         (maxpowtwo, maxpowtwof): Don't declare.
8708         * configure.in (fp_dir): Removed; was always ieeefp anyhow.
8709         (libm_fp_lib): Removed.
8710         * Makefile.in (MATHOBJS_IN_LIBC): Updated with new file names.
8711         * testsuite/libm.paranoia/Makefile.in (check): Correct --srcdir
8712         argument to ${RUNTEST}.
8713         * testsuite/libm.sac/Makefile.in (LOCAL_CFLAGS): Define.
8714         (.c.o): New rule.
8715         (RUNTESTFLAGS): Set CC and CFLAGS.
8716         (TESTS): Remove test_log2 and test_log2f.
8717         (${TESTS}): Pass ${LOCAL_CFLAGS}, not ${CFLAGS}.
8718         * testsuite/libm.sac/math.c (run_vector_1): Use float, not
8719         _FLOAT_ARG, for single precision argument type.
8720         * testsuite/libm.sac/sac.exp: Treat an error in bit 63 as an
8721         expected failure.  Close the input pipe.
8722         * testsuite/libm.sac/test.c (test_sok, test_iok, test_scok):
8723         Correct misspelling of inaccurate.
8724         (test_mok): Use ``inaccurate'', not ``wrong''.
8725         * testsuite/libm.sac/{test_acos.c, test_acosh.c, test_asin.c,
8726         test_asinh.c, test_atan.c, test_atanh.c, test_ceil.c,
8727         test_ceilf.c, test_cos.c, test_cosh.c, test_erf.c, test_erf.c,
8728         test_fabs.c, test_floor.c, test_floorf.c, test_fmod.c,
8729         test_fmodf.c, test_gamma.c, test_log1p.c, test_log1pf.c,
8730         test_yn.c): Correct many result values.  Many are still wrong.
8731
8732         * libc/stdlib/ecvtbuf.c (print_e): If _dtoa_r sets decpt to 9999,
8733         just copy the string.
8734         (_gcvt): Always return the buffer.
8735
8736 Tue Aug  9 13:43:23 1994  J.T. Conklin  (jtc@phishhead.cygnus.com)
8737
8738         * bcopy.c: fixed documentation, bcopy was not specified by ANSI.
8739
8740 Wed Aug  3 05:39:41 1994  D. V. Henkel-Wallace  (gumby@cygnus.com)
8741
8742         * libc/include/sys/reent.h: (struct _Bigint): add _reclaim
8743         structure.
8744         (struct _reent): add _p5s, _cvtlen, _cvtbuf.
8745         (_reclaim_reent): declare new entry point.
8746         * libc/reent/reent.c (cleanup_glue, _reclaim_reent): new
8747         functions.
8748
8749         * libc/stdlib/mprec.c (Balloc): Keep track of every struct bigint
8750         ever allocated, so that we can later reclaim them all.
8751         (pow5mult): make reentrant.
8752
8753         * libc/stdlib/ecvtbuf.c (fcvtbuf, ecvtbuf): extend these functions
8754         so that when given NULL as a buffer, return a pointer to static
8755         space in the rent structure.  This is not documented behaviour;
8756         it's only to support ecvt and fcvt, which aren't ANSI anyway.
8757         * libc/stdlib/efgcvt.c (fcvt, ecvt) Use new functionality (and
8758         therefore become reentrant).
8759         
8760         * libc/stdlib/dtoastub.c: remove spurious inclusion of mprec.h.
8761
8762 Mon Aug  1 16:52:24 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
8763
8764         * libc/include/machine/ieeefp.h: Check _AM29K, not ___AM29K__.
8765
8766 Thu Jul 28 15:40:21 1994  J.T. Conklin  (jtc@phishhead.cygnus.com)
8767
8768         * Makefile.in: Make link to libg.a after libc.a; this is needed
8769           for the testsuites to build executables when everything comes
8770           from the tree.
8771
8772 Mon Jun 27 17:14:29 1994  Bill Cox  (bill@rtl.cygnus.com)
8773
8774         * libc/Makefile.in: Add a VERSION variable so we can keep track.
8775         * libm/Makefile.in: Add a VERSION variable so we can keep track.
8776
8777 Wed Jun 22 10:26:00 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
8778
8779         * libc/include/stdio.h: Use __VALIST, not va_list.
8780
8781 Tue May 17 15:43:28 1994  Bill Cox  (bill@rtl.cygnus.com)
8782
8783         * testsuite/config/unix-libm.exp, testsuite/lib/libm.exp,
8784         testsuite/libm.sac/execute.exp:
8785           Replace error proc calls with perror calls.
8786
8787 Wed May 11 09:25:28 1994  Doug Evans  (dje@canuck.cygnus.com)
8788
8789         * libc/include/*.h: #include "_ansi.h" instead of <_ansi.h>.
8790         * libc/include/time.h: #define NULL as 0L.
8791
8792 Mon May  9 18:41:20 1994  Doug Evans  (dje@canuck.cygnus.com)
8793
8794         * host/any (INCLUDES): Delete -I of gcc/include, gcc -B takes
8795         care of it.
8796
8797 Mon May  9 18:39:39 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
8798
8799         * libc/include/sys/signal.h: Check for __GO32__, not __i386__ and
8800         not __unix__.
8801
8802 Sat May  7 17:07:36 1994  Steve Chamberlain  (sac@cygnus.com)
8803
8804         * configure.in (TARGET_CFLAGS): Set -O2 as default.
8805         (z8k-*-*): Use syscalls fake sys dir.
8806         * libc/sys/z8k/glue.c: Rename syscalls.
8807         * libc/sys/go32/Makefile.in: Use new routines.
8808         * libc/machine/Makefile.in: Fix typo in ln stuff.
8809
8810 Thu May  5 13:47:48 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
8811
8812         * Makefile.in (libm.a, crt0.o): Use cp if ln fails.
8813         * libc/Makefile.in (crt0.o): Likewise.
8814         * libc/machine/Makefile.in (lib.a): Likewise.
8815         * libc/sys/Makefile.in (lib.a, crt0.o): Likewise.
8816
8817         All Makefile.in files: Added mostlyclean, realclean and distclean
8818         targets.
8819
8820         * Makefile.in: Don't bother to unexport XTRAFLAGS or
8821         XTRAFLAGS_FOR_TARGET, since they are no longer passed down from
8822         the top level Makefile.
8823
8824 Tue Apr 26 15:10:34 1994  Doug Evans  (dje@canuck.cygnus.com)
8825
8826         * libc/sys/sparc64/sys/stat.h: New file.
8827         * libc/sys/sparc64/sys/time.h: New file.
8828         * libc/sys/sparc64/sys/types.h: New file.
8829
8830 Fri Apr 22 12:58:24 1994  Stan Shebs  (shebs@andros.cygnus.com)
8831
8832         * stub/ex93x/crt0.s (start): Add code to clear bss.
8833
8834 Wed Apr 13 10:34:58 1994  Doug Evans  (dje@canuck.cygnus.com)
8835
8836         * libc/include/sys/types.h (time_t): Properly protect inside
8837         #ifndef __time_t_defined.
8838
8839         * libc/stdio/fileno.c: New file.
8840         * libc/stdio/Makefile.in (OFILES, CHEWOUT_FILES): Add fileno.
8841         (fileno.o): Add dependency.
8842         * libc/include/stdio.h (__sgetc): Rename never to _never.
8843         (fileno macro): Disable, needs to do CHECK_INIT first.
8844
8845 Mon Apr 11 17:37:09 1994  Bill Cox  (bill@rtl.cygnus.com)
8846
8847         * testsuite/Makefile.in (EXPECT, RUNTEST): Set these for the check
8848         goal.
8849
8850         * testsuite/Makefile.in (check): Set TCL_LIBRARY for runtest.
8851         * testsuite/libm.paranoia/Makefile.in (check): Set TCL_LIBRARY for
8852         runtest.
8853         * testsuite/libm.sac/Makefile.in (check): Set TCL_LIBRARY for
8854         runtest.
8855
8856 Sat Apr  9 16:18:09 1994  Doug Evans  (dje@cygnus.com)
8857
8858         * libc/sys/sparc64/sys/fcntl.h: New file, define solaris versions
8859         of the various constants.
8860
8861 Thu Apr  7 21:19:07 1994  Mark Eichin  (eichin@cygnus.com)
8862
8863         * libc/include/math.h: #ifndef __math_68881 around things which
8864         conflict with the (gcc-provided) inline functions in
8865         gcc/ginclude/math-68881.h.
8866
8867 Thu Apr  7 02:50:43 1994  Doug Evans  (dje@cygnus.com)
8868
8869         * libc/include/_syslist.h (_gettimeofday): Define.
8870         (_times): Ditto.
8871         * libc/include/reent.h: #include <machine/types.h> to get _CLOCK_T_.
8872         (struct tms, timeval, timezone): Declare.
8873         (_gettimeofday_r, _times_r): Declare.
8874         * libc/include/time.h (_CLOCK_T_): Don't #undef.  Remove
8875         #ifdef _CLOCK_T_ surrounding definition of clock_t.
8876         (time_t): Add multiple definition protection, __time_t_defined.
8877         * libc/include/sys/time.h: Don't #include <time.h>.
8878         Always define struct timezone (remove #ifndef _TIME_H_).
8879         * libc/include/sys/times.h (_CLOCK_T_): Don't #undef.  Remove
8880         #ifdef _CLOCK_T_ surrounding definition of clock_t.
8881         * libc/reent/Makefile.in (OFILES): Add timer.o.
8882         (CHEWOUT_FILES): Add timer.def.  Add timer.o/timer.c dependence.
8883         * libc/reent/timer.c: New file.
8884         * libc/time/clock.c: #include <reent.h>.
8885         (clock): Call _times_r instead of times.
8886         * libc/time/time.c (HAVE_GETTIMEOFDAY): Renamed from
8887         HAVE_GET_TIME_OF_DAY.
8888         Add comment regarding supporting OS routine(s) required (for docs).
8889         #include <reent.h>.
8890         (time): Call _gettimeofday_r instead of gettimeofday.
8891         * libc/time/asctime.c: Fix comment regarding supporting OS routines.
8892         * libc/time/ctime.c: Ditto.
8893         * libc/time/strftime.c: Ditto.
8894         * libc/sys/sparc64/Makefile.in (TEMPLATE_SFILES): Remove gettimeofday.
8895         (TEMPLATE_SFILES_R): Define here.  Also define times.
8896         Add times_r.o/times.S dependence.
8897         (time2.c, junk.c): Deleted.
8898         * libc/sys/sparc64/time2.c: Deleted.
8899         * configure.in (sparc64-*-*): Define HAVE_GETTIMEOFDAY.
8900
8901         * libc/stdio/mktemp.c (_getpid_r): Renamed from _getpid.
8902         * libc/stdio/tmpnam.c (_getpid_r): Ditto.
8903         * libc/sys/sparc64/junk.c: Deleted.
8904
8905 Mon Mar 21 16:51:03 1994  Doug Evans  (dje@canuck.cygnus.com)
8906
8907         * libc/sys/sparc64/Makefile.in: Add times syscall.
8908         * libc/sys/sparc64/crt0.S: Handle stack bias at run time so we can
8909         be used with and without it.  Add comment clarifying Medium/Anywhere
8910         model requirements.
8911         * libc/sys/sparc64/sigsetjmp.S (setjmp, longjmp): Add svr4 support.
8912         * libc/sys/sparc64/sys/syscall.h (SYS_times): Define for sunos4
8913         even if obsolete.
8914
8915 Sun Mar 20 15:51:47 1994  Doug Evans  (dje@cygnus.com)
8916
8917         * configure.in (target_cflags): Move init.
8918         (sparc64-*-*): Define HAVE_BLKSIZE.
8919
8920 Wed Mar  9 10:44:52 1994  Doug Evans  (dje@canuck.cygnus.com)
8921
8922         * libc/include/sys/_types.h: New file.
8923         * libc/include/reent.h: #include it.
8924         Add comment describing REENTRANT_SYSCALLS_PROVIDED and
8925         MISSING_SYSCALL_NAMES.
8926         Sort syscalls.
8927         * libc/include/_syslist.h: Remove _raise.
8928         * libc/reent/signalr.c: New file.
8929         * libc/reent/Makefile.in: Compile it.
8930         * libc/signal/signal.c: Only use ifdef SIMULATED_SIGNALS.
8931         Add doc for raise and _raise_r.
8932         * libc/signal/raise.c: Only use ifndef SIMULATED_SIGNALS.
8933         (raise): Call _raise_r.
8934         (_raise_r): Call _getpid_r and _kill_r.
8935         * libc/stdlib/abort.c: Remove inclusion of stdio.h and _syslist.h.
8936         (abort): Loop forever calling raise and _exit.
8937
8938 Mon Mar  7 14:40:08 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
8939
8940         * configure.in: Remove extraneous echo.
8941
8942 Thu Mar  3 12:14:22 1994  Doug Evans  (dje@canuck.cygnus.com)
8943
8944         * libc/sys/sparc64/sys/dirent.h (MAXNAMLEN): #undef to avoid
8945         collision with unistd.h, and fix for svr4.
8946
8947 Wed Mar  2 13:55:25 1994  Doug Evans  (dje@canuck.cygnus.com)
8948
8949         * libc/stdio/local.h (_llicvt): Declare.
8950         (CVT_BUF_SIZE): Define (and buffer size from 512 to 128).
8951         * libc/stdio/cvt.c: Include "local.h" to get CVT_BUF_SIZE.
8952         (_llicvt): Define.
8953         (_sicvt): Fix function header (`value' is short).
8954         * libc/stdio/vfprintf.c (_vfprintf_r): Use CVT_BUF_SIZE.
8955         Add printing of long long's support.
8956         Add printing of 8 byte pointer support.
8957
8958 Fri Feb 11 21:52:11 1994  Steve Chamberlain  (sac@sphagnum.cygnus.com)
8959
8960         * libc/sys/sh/syscalls.c (pipe, execv, wait, fork, utime, chown,
8961         stat, chmod): New hooks. 
8962         (sbrk): Abort if stack and heap collide.
8963         * libc/machine/sh/udivsi3, libc/machine/sh/sdivsi3 Modified to
8964         shortcut when given small args.
8965         * libc/machine/sh/setjmp.s: Rewritten.
8966         * libc/machine/sh/strcmp.s (strcmp): New function takes advantage
8967         of cmp/str instruction.
8968
8969 Wed Feb  9 15:12:35 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
8970
8971         * configure.in: Accept powerpc* as a CPU type, using fp_dir ieeefp
8972         and machine_dir powerpc.
8973         * libc/include/machine/setjmp.h, libc/include/machine/ieeefp.h:
8974         Add cases for __powerpc__.
8975         * libc/machine/powerpc/Makefile.in, libc/machine/powerpc/setjmp.S:
8976         New files.
8977
8978         * libc/include/stdio.h (_iprintf_r): Declare correctly.
8979
8980 Thu Jan 27 10:36:27 1994  Steve Chamberlain  (sac@cygnus.com)
8981
8982         * libc/stdlib/callocr.c: New file with _calloc_r in it.
8983         * libc/stdlib/calloc.c (calloc_r): Now in callocr.c
8984
8985 Thu Jan 20 15:14:37 1994  Doug Evans  (dje@canuck.cygnus.com)
8986
8987         * libc/stdlib/ecvtbuf.c (print_f): Remove local "done".
8988         (print_e): More comments to describe args, etc.
8989         "type" arg may now be 'g' or 'G' for %g/G format --> remove
8990         trailing blanks.
8991         (_gcvt): Remove locals decpt, sign, end, p, done.
8992         More comments for print_e invocation.
8993         Pass "type" to print_e as is (g/G).
8994
8995 Wed Jan 19 16:34:18 1994  Rob Savoye  (rob@darkstar.cygnus.com)
8996
8997         * stub/shared/m68k-crt0.S: Changed so it compiles (and runs) on a
8998         stock m68000. 
8999
9000 Mon Jan 17 15:41:53 1994  Doug Evans  (dje@canuck.cygnus.com)
9001
9002         * libc/stdlib/mallocr.c (_morecore_r): Fix aligning of pointer so it
9003         works with any sized pointer, including ones bigger than ints and
9004         longs.
9005
9006 Thu Jan  6 14:53:21 1994  Doug Evans  (dje@canuck.cygnus.com)
9007
9008         * libc/sys/sparc64/{time2.c,utime.S,utime2.c}: New files.
9009
9010 Sat Dec 11 16:17:20 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
9011
9012         * libc/include/stdlib.h (_calloc_r): Add prototype.
9013         * libc/machine/h8500/negsi2.c: New file.
9014         * libc/machine/h8500/divsi3.c: Prevent overflow when dividing v
9015         large unsigned numbers.
9016         * libc/machine/h8500/cmpsi.c: Add cmppsi.
9017         * libc/stdlib/mallocr.c (morecore_r): Fix aligning pointers so it
9018         works when sizeof(size_t) != sizeof(char *).
9019         * libc/stdlib/mprec.c (Balloc): Call calloc rather than malloc to
9020         get play area
9021         * libc/stdlib/mprec.h: Define Just_16 if generating for z8000.
9022
9023 Mon Dec  6 15:59:53 1993  Doug Evans  (dje@rtl.cygnus.com)
9024
9025         * libc/include/assert.h (assert): Handle -traditional.
9026
9027 Tue Nov 16 15:49:24 1993  Mark Eichin  (eichin@cygnus.com)
9028
9029         * Makefile.in: added ; after every "fi" and "done" that wasn't at
9030         the end of a line (ie. anything before a backslash continuation)
9031         so that bash handles them.
9032
9033 Tue Nov 16 12:31:57 1993  david d `zoo' zuhn  (zoo@rtl.cygnus.com)
9034
9035         * libc/sys/go32/lstat.s: new file, copied from stat.s and renamed
9036         stat to lstat
9037
9038 Mon Nov 15 15:50:43 1993  Steve Chamberlain  (sac@jonny.cygnus.com)
9039
9040         * libc/sys/sh/crt0.s, libc/sys/sh/trap.s,
9041         libc/machine/sh/sdivsi3.s, libc/machine/sh/setjmp.s,
9042         libc/machine/sh/udivsi3.s: Use new calling convention.
9043
9044 Mon Nov 15 15:25:38 1993  Mark Eichin  (eichin@cygnus.com)
9045
9046         * libc/include/sys/unistd.h, libc/include/sys/stat.h: ANSI-fy
9047         chmod, access, chdir, chown by making _path const. Also fix _amode
9048         param of access.
9049
9050 Fri Nov 12 20:25:28 1993  Mark Eichin  (eichin@cygnus.com)
9051
9052         * libc/sys/a29khif/_tmpnam.s (_tmpnam): renamed function to
9053         _khif_tmpnam, because it doesn't comply with ANSI but may be
9054         useful anyway. Real tmpnam was already in libc/stdio, and was
9055         colliding with this one (pr 2176.) 
9056         * libc/sys/a29khif/stubs.s (tmpnam): removed tmpnam. This file is
9057         the wrong idea anyhow.
9058
9059 Mon Nov  8 07:50:16 1993  Doug Evans  (dje@canuck.cygnus.com)
9060
9061         * configure.in: Remove h8300h, we have multilib now.
9062
9063 Fri Nov  5 12:37:27 1993  Mark Eichin  (eichin@cygnus.com)
9064
9065         * libc/string/strcasecmp.c, libc/string/strncasecmp.c: new
9066         functions, to get preference over the ones in libiberty (since we
9067         provide correct declarations in <string.h>.
9068         * libc/string/Makefile.in: add support for strncasecmp,
9069         strcasecmp.
9070
9071 Fri Nov  5 09:05:45 1993  D. V. Henkel-Wallace  (gumby@blues.cygnus.com)
9072
9073         * Change netware config not to look for cpu explicitly.
9074
9075 Thu Nov  4 14:21:25 1993  Doug Evans  (dje@canuck.cygnus.com)
9076
9077         * libc/sys/sparc64/{creat.c,junk.c}: New files.
9078         * libc/sys/sparc64/Makefile.in: Add dependencies.
9079
9080 Wed Nov  3 10:42:49 1993  Doug Evans  (dje@canuck.cygnus.com)
9081
9082         * configure.in: Clean up v9 a bit, new "os" aoutv8.
9083
9084 Tue Nov  2 10:00:44 1993  D. V. Henkel-Wallace  (gumby@cygnus.com)
9085
9086         * libc/include/sys/reent.h: make structure smaller by allocating
9087         some stuff when needed.
9088         * libc/signal/signal.c: allocate as needed
9089         * libc/stdio/findfp.c,stdio/local.h: ditto
9090         * libc/stdlib/mprec.c: ditto
9091
9092         * libc/time/localtime.c: don't return a dangling stack ptr.
9093
9094 Wed Sep 29 20:42:34 1993  Rob Savoye  (rob@darkstar.cygnus.com)
9095
9096         * stub/mvme135/crt0.S, stub/mvme135/glue.c: Moved to stub/generic.
9097
9098 Wed Sep 29 16:27:49 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
9099
9100         * libc/include/stdio.h (__sputc): comment out static inline which
9101           confuses coff toolchains.
9102
9103 Thu Sep  2 16:31:36 1993  Mark Eichin  (eichin@cygnus.com)
9104
9105         * libc/sys/a29khif/{_close.s, _fstat.s, _lseek.s, _sbrk.s,
9106         _write.s, getpid.c, kill.c, read.s}:
9107         * libc/sys/a29khif/stubs.s: eliminated stubs that already go
9108         through the syscalls directory.
9109
9110 Fri Oct 29 13:59:58 1993  Jeffrey Wheat  (cassidy@cygnus.com)
9111
9112         * configure.in: fixed double quote gotcha.
9113
9114 Wed Oct 27 15:27:09 1993  Rob Savoye  (rob@darkstar.cygnus.com)
9115
9116         * stub/ex931: stub library for sparclite board.
9117         * stub/idp: Renamed from mc68ec. Added contructor table
9118         stuff to linker script.
9119         * stub/mvme135: Renamed from m68kmvme. Added contructor table
9120         stuff to linker script.
9121
9122 Tue Oct 26 17:01:23 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
9123
9124         * configure.in: Configure testsuites only if they exist.
9125
9126 Tue Oct 26 12:37:11 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
9127
9128         * configure.in: Don't set machine_dir for i386 until there is
9129         something in libc/machine/i386 to compile.  For i[34]86-*-netware*
9130         use sys/netware, don't use signal, define NO_EXEC, ABORT_PROVIDED,
9131         CLOCK_PROVIDED and MALLOC_PROVIDED.
9132
9133         * libc/sys/netware: New directory.  Contains simplistic and
9134         probably incorrect stubs for NetWare.  Should be enough to load
9135         the library.
9136         * libc/sys/netware/crt0.c, libc/sys/netware/environ.c,
9137         libc/sys/netware/getpid.c, libc/sys/netware/link.c: New NetWare
9138         stub files.
9139
9140         * libc/reent/execr.c: Don't use if NO_EXEC is defined.
9141         * libc/reent/sbrkr.c: Don't use if MALLOC_PROVIDED is defined.
9142         * libc/stdlib/abort.c: Don't use if ABORT_PROVIDED is defined.
9143         * libc/time/clock.c: Don't use if CLOCK_PROVIDED is defined.
9144
9145 Mon Oct 25 16:48:08 1993  Roland H. Pesch  (pesch@cygnus.com)
9146
9147         * testsuite/Makefile.in: add "docs" dummy target for consistency
9148         with rest of newlib; turn "info" and "install-info" into dummy
9149         targets, since they wouldn't have worked.  (Depended on
9150         nonexistent "doc" subdir.)
9151
9152 Fri Oct 22 20:37:32 1993  david d `zoo' zuhn  (zoo@rtl.cygnus.com)
9153
9154         * configure.in: handle mips* instead of mips
9155
9156 Thu Oct 21 08:57:24 1993  Ian Lance Taylor  (ian@cygnus.com)
9157
9158         * libc/include/sys/dirent.h: New file.  If it is not overridden by
9159         a version of libc/sys/*/sys/dirent.h, it includes the next
9160         <dirent.h> file in case there is one lurking somewhere.
9161
9162 Fri Oct 15 14:17:40 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
9163
9164         * libc/stdlib/strtoul.c (_strtoul_r): Several changes for ANSI
9165         compliance, namely: Accept a minus sign.  Consider a single 0 with
9166         a radix of 0 as being a conversion.  Determine overflow correctly.
9167         If an overflow occurs, set *ptr to the end of the number, not the
9168         middle.
9169         * lib/stdlib/strtol.c (_strtol_r): Determine overflow correctly.
9170
9171 Thu Oct 14 21:49:52 1993  Doug Evans  (dje@canuck.cygnus.com)
9172
9173         * libc/machine/h8300/divsi3.S (divmodsi4): Fix h8300h case.
9174
9175 Fri Oct  1 17:17:34 1993  Doug Evans  (dje@canuck.cygnus.com)
9176
9177         * Makefile.in (INSTALL): Use $srcrootpre.
9178         (crt0.o): Replace $< with $(CRT0_DIR)/$(CRT0), Sun make
9179         can't handle it.
9180         * libc/Makefile.in (crt0.o): Spell out $<, Sun make can't handle
9181         it.
9182         * libc/sys/Makefile.in (crt0.o, lib.a): Ditto.
9183         * stub/Makefile.in (crt0.o, TARGETLIB): Ditto.
9184         * libc/sys/sparc64/Makefile.in (isatty.o): Sun VPATH lossage.
9185         * libm/math/Makefile.in (matherr.o): Ditto.
9186
9187 Thu Sep 30 11:09:17 1993  Steve Chamberlain  (sac@phydeaux.cygnus.com)
9188
9189         * configure.in: Build multidirs for z8k.
9190         * libc/include/stdlib.h (_strtoul_r): add prototype.
9191         * libc/include/machine/limits.h: Get INT_MIN right for all the z8k family.
9192         * libc/include/machine/setjmp.h: Add for z8k.
9193         * libc/machine/z8k/{mulsi.o, udivsi3.o, umodsi3.o, modsi3.o} obsolete.
9194         * libc/sys/z8ksim/glue.c: tidy up.
9195
9196 Mon Sep 20 14:04:46 1993  Doug Evans  (dje@canuck.cygnus.com)
9197
9198         * libc/unix/{execl.c execle.c execlp.c execv.c execvp.c}:
9199         New files.  Requires execve system call.
9200         * libc/unix/Makefile.in: Use them.
9201         * libc/sys/sparc64/{execl.c execle.c execlp.c execv.c execvp.c}:
9202         Deleted, moved to libc/unix.
9203         * libc/sys/sparc64/Makefile.in: Remove them.
9204
9205 Mon Sep 20 10:38:32 1993  Doug Evans  (dje@canuck.cygnus.com)
9206
9207         * libc/sys/sparc64/{template.S template_r.S}: New files.
9208         * libc/sys/sparc64/Makefile.in: Build source for trivial syscalls
9209         from templates.
9210         * libc/sys/sparc64/{chdir.S chmod.S close.S dup.S fcntl.S
9211         fork.S fstat.S lseek.S link.S mkdir.S open.S pipe.S read.S rmdir.S
9212         umask.S unlink.S wait4.S write.S}: Removed, now built from
9213         templates.
9214
9215 Sun Sep 19 14:52:57 1993  Doug Evans  (dje@canuck.cygnus.com)
9216
9217         * libc/time/time.c: #include <_ansi.h>.
9218
9219 Sun Sep 19 13:43:25 1993  Doug Evans  (dje@canuck.cygnus.com)
9220
9221         * configure.in (sparc64-*-*): Remove -D__SIZE_TYPE__.
9222
9223 Mon Sep 13 13:52:16 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
9224
9225         * configure.in: match m8* rather than m88k so that m88110 is
9226           recognized as well.
9227
9228 Tue Sep  7 12:19:32 1993  Doug Evans  (dje@canuck.cygnus.com)
9229
9230         * libc/sys/h8300hms/{Makefile.in, _exit.c, misc.c}:
9231         Renamed exit.c to _exit.c to avoid collision with stdlib/exit.c.
9232         misc.c: New file.
9233
9234         * configure.in: Add multilib support to h8300.
9235
9236 Mon Sep  6 14:07:06 1993  Doug Evans  (dje@canuck.cygnus.com)
9237
9238         * libc/stdlib/abort.c (abort): Remove _VOLATILE from return type.
9239         * libc/include/_ansi.h (_ATTRIBUTE): New macro for __attribute__.
9240         * libc/include/stdlib.h (exit, abort): Add noreturn attribute.
9241
9242 Mon Sep  6 14:24:18 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
9243
9244         * configure.in: Corrected multidirs for sparc target.
9245
9246 Mon Aug 30 15:56:44 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
9247
9248         Support for building newlib multiple times with different
9249         compilation flags.
9250         * configure.in: Only configure doc at top level.  Set multidirs
9251         when appropriate for target, unless not at top level.  If
9252         multidirs is set, independently configure each subdirectory.
9253         Adjust TOP, MULTIDIRS and MULTISUBDIR appropriately in Makefile.
9254         * Makefile.in (MULTIDIRS, MULTISUBDIR): New variables,
9255         automagically set by configure.in.
9256         (all): If MULTIDIRS is set, build multiple copies of libraries.
9257         (install): If MULTIDIRS is set, install multiple copies of
9258         libraries.  Install in $(tooldir)/lib/$(MULTISUBDIR).  If
9259         MULTISUBDIR is set, don't bother to install header files.
9260         * host/any (INCLUDES, CHEW): Use $(SRCTOP) rather than $(TOP) from
9261         ${srcrootpre}.
9262         * stub/configure.in: Set MULTISUBDIR appropriately.
9263         * stub/Makefile.in (install): Install in
9264         $(tooldir)/lib/$(MULTISUBDIR).
9265         * All Makefile.in files: Define SRCTOP as well as TOP.
9266
9267 Mon Aug 30 10:34:24 1993  Doug Evans  (dje@canuck.cygnus.com)
9268
9269         * libc/machine/h8300/{mulhi3.S, divhi3.S}: Comment out if h8300h.
9270         * libc/machine/h8300/{mulsi3.S, divsi3.S}: Add h8300h support.
9271
9272 Thu Aug 26 19:38:12 1993  Doug Evans  (dje@canuck.cygnus.com)
9273
9274         * libc/sys/h8300hms/exit.c (_exit): New function.
9275
9276 Wed Aug 25 16:31:48 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
9277
9278         * configure.in: recognize m88110.
9279
9280 Fri Aug 20 16:46:23 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
9281
9282         * libc/sys/m88kbug/crt0.c: pretty up, remove extraneous comments,
9283           prototype main and call with args.
9284
9285 Fri Jul 30 16:52:47 1993  K. Richard Pixley  (rich@cygnus.com)
9286
9287         First real try at system traps for m88k-bug.
9288         * libc/sys/m88kbug/syscalls.c: many changes.  Convert from stubs
9289           to real trap calls.
9290         * libc/sys/m88kbug/sys/systraps.h: new file.
9291
9292 Tue Jul 27 16:31:16 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
9293
9294         Patches to fix info building when target does not use sys
9295         directory.
9296         * libc/Makefile.in (targetdep.tex): add sys.tex separately.
9297         * libc/sys.tex, libc/sys/sys.tex: moved from libc/sys/sys.tex to
9298           libc/sys.tex.
9299         * libc/sys/Makefile.in (doc): do nothing.
9300
9301 Mon Jul 26 17:08:11 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
9302
9303         * libc/Makefile.in (CRT0): new macro.
9304           (all): depend on $(CRT0) rather than crt0.o.
9305
9306         * configure.in: fix libc_sys_dir -> libc_sys_lib thinko.
9307           do not default crt0, instead, set crt0 and crt0_dir based on
9308           sys_dir and stub_dir.
9309
9310         * Makefile.in (CRT0_DIR): new macro.
9311           (all): depend on $(CRT0) rather than crt0.o which may not exist.
9312           (crt0.o): depend on $(CRT0_DIR)/$(CRT0) rather than simply
9313           $(CRT0).
9314           ($(CRT0)): recur by cd'ing into $(CRT0_DIR).
9315
9316 Sun Jul 25 17:51:51 MDT 1993  Jeffrey Wheat  (cassidy@cygnus.com)
9317
9318         * testsuite/lib/libm.exp: 
9319                 added code to support compiling and linking of tests for 
9320                 libm.sac (paranoia to be added next) and processing the 
9321                 pass or failure of the tests.
9322
9323         * testsuite/config/unix-libm.exp:
9324                 platform specific proc's for dealing with compiler, linker
9325                 and the way we execute and process the test results.
9326
9327         * testsuite/libm.sac/execute.exp:
9328                 generic framework for the sac tests. the config and lib 
9329                 expect code for specific platforms tie it all together.
9330
9331         * testsuite/libm.sac/test_is.c:
9332                 changed the output of the test to be consistant with the
9333                 other tests. parsing of pass nad fail messages is now fixed.
9334
9335 Fri Jul 23 19:20:07 1993  Per Bothner  (bothner@kalessin)
9336
9337         * libc/include/{assert.h, ctype.h, dirent.h, errno.h, fastmath.h,
9338         locale.h, math.h, pwd.h, reent.h, setjmp.h, signal.h, stdio.h,
9339         stdlib.h, string.h, termios.h, time.h, utime.h, utmp.h}: For C++:
9340         #ifdef __cplusplus, surround by extern ""C { ... }.
9341         * libc/include/assert.h:  Do *not* protect assert.h against
9342         multiple inclusion!  Also, #undef it before #define, to allow
9343         redefinition.
9344         * libc/include/stdio.h (getlogin, cuserid):  Removed.  These
9345         should be only in unistd.h.
9346
9347         * libc/include/sys/{fcntl.h, reent.h, stat.h, time.h, times.h,
9348         unistd.h}: For C++: #ifdef __cplusplus, surround by extern ""C {
9349         ... }.
9350
9351 Fri Jul 23 10:15:33 1993  Doug Evans  (dje@canuck.cygnus.com)
9352
9353         * libc/machine/sparc/Makefile.in: Must create a library, even
9354         if empty.
9355
9356 Wed Jul 21 16:00:37 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
9357
9358         * configure.in: set machine_dir for m88k.  edit crt0 definition
9359           into makefiles.
9360
9361         * Makefile.in, libc/Makefile.in (crt0): pull up from lower directories.
9362
9363         * libc/Makefile.in (all): also build crt0.o.
9364
9365         * libc/machine/i386/Makefile.in, libc/machine/sparc/Makefile.in,
9366           libc/machine/z8k/Makefile.in, libm/Makefile.in (clean): no need
9367           to remove CRT0.
9368
9369         * libc/machine/m88k/Makefile.in (TOP, TARGETLIB): removed.
9370           (all): reworked to build in place.
9371           (clean): remove lib.a
9372           (Makefile): remove redundant ./, call $(SHELL) rather than sh.
9373
9374         * libc/sys/m88kbug/crt0.c (start): renamed to _start.
9375           (_start): key off edata rather than _start_bss.
9376
9377 Wed Jul 21 14:29:47 1993  david d `zoo' zuhn  (zoo@cygnus.com)
9378
9379         * libc/include/sys/unistd.h, libc/include/reent.h,
9380         libc/reent/sbrkr.c: change sbrk to return void* instead of char*.
9381
9382 Tue Jul 20 13:19:18 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
9383
9384         * libm/Makefile.in, libc/Makefile.in ($(SUBDIRS)): dollar escape a dollar sign.
9385
9386         * Makefile.in (libc.a): break into two rules, one for libc.a and
9387           one for libc/libc.a.  Force subdirs current before rebuilding
9388           library.
9389           (libm.a): break into two rules, one for libm.a and one for
9390           libm/libm.a.  Force subdirs current before rebuilding library.
9391
9392         * libc/Makefile.in (SUBLIBS): fix typo.
9393
9394         * libc/sys/Makefile.in (all): force descent into subdirs, then
9395           rebuild library iff out of of date.
9396
9397 Fri Jul 16 17:47:57 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
9398
9399         Rework so that library is built and then finished rather than
9400         being built on each invocation of make.
9401
9402         * host/any (machine_dir, sys_dir, signal_dir): these are not
9403           shared and have been moved to their associated Makefile.in's.
9404           (AR_FLAGS): switch to qc which is faster.
9405         * configure.in: no longer assign machine_dir for m88k.  set
9406           stub_dir, stub_lib, & crt0 for m68k*-unknown-{aout,coff}.  If
9407           stub_dir set, then add to configdirs.  add comment about silly
9408           configuration.
9409           (configdirs): drop stub.  It will be added only
9410           when needed.
9411           (libm_fp_lib, libc_unix_lib, libc_signal_lib, libc_machine_lib,
9412           libc_sys_dir, fake_sys_dir, libc_fake_sys_lib, stub_dir,
9413           stub_lib, crt0): new variables for tailoring lower level
9414           makefiles.  Assign accordingly and edit into makefiles.
9415         * libm/Makefile.in: updated copyright.
9416           (TARGETLIB): removed.
9417           (FLAGS_TO_PASS): removed TARGETLIB, machine_dir, sys_dir.
9418           (SUBDIRS): removed TARGETDEP_DIRS.
9419           (LIBM_FP_LIB, SUBLIBS): new macros.
9420           (all): reworked.
9421           (force): new target to force rebuilds.
9422           (Makefile): call $(SHELL) rather than sh.  drop redundant ./
9423         * libc/sys/a29khif/Makefile.in, libc/sys/decstation/Makefile.in,
9424           libc/sys/go32/Makefile.in, libc/sys/h8300hms/Makefile.in,
9425           libc/sys/h8500hms/Makefile.in, libc/sys/m88kbug/Makefile.in,
9426           libc/sys/sh/Makefile.in, libc/sys/sparc64/Makefile.in,
9427           libc/sys/sun4/Makefile.in, libc/sys/sysvi386/Makefile.in,
9428           libc/sys/sysvnecv70/Makefile.in, libc/sys/z8ksim/Makefile.in,
9429           stub/m68kmvme/Makefile.in: updated copyright.
9430           (TARGETLIB, TARGETCRT0, CRT0): macros removed.
9431           (all): reworked.  made this the default rule.
9432           (clean): also remove lib.a.
9433           (Makefile): call $(SHELL) rather than sh.  drop redundant ./
9434         * stub/Makefile.in: updated copyright.
9435           (TARGETLIB, TARGETCRT0, CRT0, TOP): removed.
9436           (stub_lib): new macro.
9437           (FLAGS_TO_PASS): removed TARGETLIB, stub_dir, TARGETCRT0.  Added
9438           RANLIB.
9439           (all): reworked.
9440           (clean, install): assume stub_dir exists.
9441           (Makefile): depend on configure.in.  call $(SHELL) rather than
9442           sh.  drop redundant ./
9443         * stub/configure.in (stublib): new macro, assign it, edit it into
9444           makefiles.
9445         * Makefile, libc/Makefile.in, doc/Makefile.in, libc/sys/Makefile.in:
9446           updated copyright.
9447           (all): reworked.
9448           (Makefile): call $(SHELL) rather than sh.  drop redundant ./
9449         * libc/Makefile.in (TARGETCRT0): removed.
9450           (FLAGS_TO_PASS): dropped TARGETLIB, machine_dir, sys_dir,
9451           TARGETCRT0.
9452           (SUBDIRS): drop TARGETDEP_DIRS.
9453           (LIBC_SIGNAL_LIB, LIBC_SYS_LIB, LIBC_MACHINE_LIB, LIBC_UNIX_LIB,
9454           LIBC_FAKE_SYS_LIB, SUBLIBS): new macros for configuration.
9455           (force): new target to force rebuilds.
9456         * libc/sys/Makefile.in (TARGETCRT0, sys_dir): removed.
9457           (FLAGS_TO_PASS): TARGETLIB, machine_dir, sys_dir, TARGETCRT0
9458           removed.
9459           (clean): assume sys_dir always exists.
9460         * libm/test/Makefile.in (Makefile): call $(SHELL) rather than sh.
9461           drop redundant ./
9462         * libc/ctype/Makefile.in, libc/errno/Makefile.in,
9463           libc/locale/Makefile.in, libc/machine/Makefile.in,
9464           libc/machine/a29k/Makefile.in, libc/machine/h8300/Makefile.in,
9465           libc/machine/h8500/Makefile.in, libc/machine/i386/Makefile.in,
9466           libc/machine/i960/Makefile.in, libc/machine/m68k/Makefile.in,
9467           libc/machine/mips/Makefile.in, libc/machine/necv70/Makefile.in,
9468           libc/machine/sh/Makefile.in, libc/machine/sparc/Makefile.in,
9469           libc/machine/z8k/Makefile.in, libc/reent/Makefile.in,
9470           libc/signal/Makefile.in, libc/stdio/Makefile.in,
9471           libc/stdlib/Makefile.in, libc/string/Makefile.in,
9472           libc/sys/Makefile.in, libc/syscalls/Makefile.in,
9473           libc/time/Makefile.in, libc/unix/Makefile.in,
9474           libm/ieeefp/Makefile.in, libm/math/Makefile.in: updated copyright.
9475           (TARGETLIB): removed.
9476           (all): reworked.
9477           (clean): also remove lib.a.
9478           (Makefile): call $(SHELL) rather than sh.  drop redundant ./
9479         * Makefile.in: (machine_dir, sys_dir, stub_dir, stub_lib, CRT0):
9480           new macros.
9481           (SUBDIRS): moved to follow frag inclusion, change stub to
9482           stub_dir.
9483           (FLAGS_TO_PASS): removed machine_dir, sys_dir, signal_dir which
9484           are now set in the libc Makefile.
9485         * libc/machine/Makefile.in (TARGETCRT0, machine_dir): removed.
9486           (FLAGS_TO_PASS): removed TARGETLIB, machine_dir, sys_dir,
9487           TARGETCRT0.
9488           (force): new target to force rebuilds.
9489         * stub/configure.in: determine and set stub_lib for for Makefile.
9490
9491 Thu Jul 15 12:01:27 1993  Doug Evans  (dje@canuck.cygnus.com)
9492
9493         * libc/sys/h8300hms/Makefile.in: Make `all' the default target.
9494         crt0.s renamed to crt0.S.
9495         * libc/sys/h8300hms/crt0.S: Add h8/300h support.
9496
9497         * libc/machine/h8300/Makefile.in: Make `all' the default target.
9498         * libc/machine/h8300/{cmpsi.S,ucmpsi.S}: #ifdef out entire file if
9499         h8300h.
9500         * libc/machine/h8300/defines.h: Add macros to handle pointers for
9501         h8300 (16 bits) and h8300h (32 bits).
9502         * libc/machine/h8300/{divsi3.S,mulsi3.S,memcpy.S,memset.S,
9503         reg_memcpy.S,reg_memset.S,strcmp.S}: Add h8300h support.
9504
9505 Thu Jul 15 10:13:29 1993  Ian Lance Taylor  (ian@cygnus.com)
9506
9507         * libc/machine/m88k/setjmp.S, Makefile.in: New files; a simple
9508         implementation of setjmp and longjmp for the m88k.
9509         * libc/include/machine/setjmp.h: Added __m88000__ case.
9510
9511 Wed Jul 14 10:10:30 1993  Doug Evans  (dje@canuck.cygnus.com)
9512
9513         * configure.in: Recognize h8300h as variant of h8300.
9514
9515 Tue Jul 13 12:24:11 1993  Steve Chamberlain  (sac@phydeaux.cygnus.com)
9516
9517         * libc/include/sys/unistd.h (read, write): get prototypes right.
9518         (sbrk): New prototype.
9519         * libc/reent/sbrkr.c (sbrkr): Use correct sbrk prototype.
9520         * libc/stdio/local.h: Include unistd.h.
9521         * libc/machine/h8300/syscalls.c: Names have changed.
9522
9523 Mon Jul 12 18:08:42 1993  K. Richard Pixley  (rich@cygnus.com)
9524
9525         * configure.in: add sys_dir assignment for m88k-bug.
9526
9527 Thu Jul  8 09:16:21 1993  Doug Evans  (dje@canuck.cygnus.com)
9528
9529         * libc/sys/sparc64/sys/syscallasm.h: New macros to handle either
9530         a.out or elf.
9531         * libc/sys/sparc64: all *.S files: Use new macros.
9532         * libc/sys/sparc64/isatty.c: New file.
9533         * libc/sys/sparc64/Makefile.in: Stop using /lib/libc.a for
9534         functions beyond what newlib provides.
9535
9536 Thu Jul  8 09:11:28 1993  Doug Evans  (dje@canuck.cygnus.com)
9537
9538         * libc/include/sys/stat.h: Move st_atime so not doubly defined for
9539         svr4.
9540
9541 Thu Jul  8 09:09:16 1993  Doug Evans  (dje@canuck.cygnus.com)
9542
9543         * libc/include/machine/ieeefp.h: Add support for h8/300h.
9544
9545 Fri Jul  2 10:11:20 1993  K. Richard Pixley  (rich@cygnus.com)
9546
9547         * configure.in: add m88k.
9548         * libc/include/machine/ieeefp.h: add case for m88k.  Also add
9549         sanity check so no one else need ever chase what I did to find
9550         this.
9551
9552         * libm/math/Makefile.in (FAKEC): added atanf.c log1pf.c scalbnf.c.
9553
9554 Fri Jul  2 09:15:21 1993  Ian Lance Taylor  (ian@cygnus.com)
9555
9556         * doc/makedoc.c: Include <ctype.h>.
9557
9558 Wed Jun 30 09:35:06 1993  Doug Evans  (dje@canuck.cygnus.com)
9559
9560         * libc/Makefile.in (FLAGS_TO_PASS): Add TARGET_ASFLAGS.
9561         * libc/sys/Makefile.in (FLAGS_TO_PASS): Add TARGET_ASFLAGS.
9562         * libc/machine/Makefile.in (FLAGS_TO_PASS): Add TARGET_ASFLAGS.
9563
9564         * libm/test/Makefile.in (all): Link with ../../lib[cm].a.
9565
9566 Sun Jun 27 17:05:20 1993  Doug Evans  (dje@sphagnum.cygnus.com)
9567
9568         * libc/include/errno.h (ENOSYS): Added.
9569
9570         * libc/unix/getpwd.c (getcwd): Fix typo (_up -> up).
9571
9572 Mon Jun 21 09:03:32 1993  Steve Chamberlain  (sac@phydeaux.cygnus.com)
9573
9574         * libc/stdio/fflush.c (fflush): Check for reent struct
9575         initialization.
9576         * libc/stdio/fdopen.c (fdopen): Avoid namespace conflict.
9577
9578 Fri Jun 18 16:06:05 1993  Mark Eichin  (eichin@rtl.cygnus.com)
9579
9580         * libc/stdlib/dtoastub.c: new file -- move user callable "dtoa"
9581         out of dtoa.c so it doesn't pollute the namespace.
9582         * libc/include/_syslist.h: new file -- mappings from _function to
9583         function, for systems where we can't win (by default, all of them,
9584         until we start updating system calls.)
9585         * libc/syscalls: new directory -- stubs for exporting _function
9586         names as unmodified function names.
9587         * libc/configure.in: add MISSING_SYSCALL_NAMES to enable
9588         _syslist.h on all platforms by default, but put hooks in for
9589         fake_sys_dir so we can include it when we've renamed the system
9590         calls.
9591         * libc/reent/execr.c libc/reent/filer.c libc/reent/fstatr.c
9592         libc/reent/linkr.c libc/reent/sbrkr.c libc/reent/statr.c
9593         libc/signal/raise.c libc/signal/signal.c libc/stdio/fdopen.c
9594         libc/stdio/mktemp.c libc/stdio/tmpnam.c libc/stdlib/abort.c
9595         libc/stdlib/system.c libc/unix/getcwd.c libc/unix/getlogin.c
9596         libc/unix/getpass.c libc/unix/getut.c libc/unix/ttyname.c: change
9597         non ANSI functions to call _function.
9598
9599 Wed Jun  9 09:48:26 1993  Ian Lance Taylor  (ian@cygnus.com)
9600
9601         * libc/stdlib/strtoul.c (_strtoul_r): Handle leading 0 correctly
9602         when base 16 is specified.  Don't accept non-digits if radix > 10.
9603
9604 Thu Jun  3 10:01:15 1993  Doug Evans  (dje@canuck.cygnus.com)
9605
9606         * libc/include/math.h: Rename xxx_r fns to _xxx_r.
9607
9608 Wed Jun  2 16:54:16 1993  Jim Wilson  (wilson@sphagnum.cygnus.com)
9609
9610         * libc/include/sys/stat.h: Surround text after #endif with
9611         comments.
9612
9613 Wed Jun  2 12:47:32 1993  Ian Lance Taylor  (ian@cygnus.com)
9614
9615         * libc/stdlib/mallocr.c: If MALLOC_PROVIDED is defined, just make
9616         _malloc_r, _realloc_r, and free_r call the corresponding
9617         non-reentrant functions.
9618
9619         * libm/math/modf.c (modf): We now take the address of ipart, so
9620         don't make it a register variable.
9621
9622 Tue Jun  1 18:25:54 1993  Doug Evans  (dje@canuck.cygnus.com)
9623
9624         * libm/math/*: Rename all xxx_r fns to _xxx_r.
9625
9626 Wed May 26 22:06:35 1993  Roland H. Pesch  (pesch@cygnus.com)
9627
9628         * libc/libc.texinfo and embedded docn throughout: formatting
9629         improvements, minor rephrasing for clarity, and improved
9630         reentrancy docn.
9631
9632 Sun May 23 17:29:49 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
9633
9634         * libm/ieeefp/infinity.c (maxpowtwof): Fix initialzation bug.
9635
9636         * libc/stdio/cvt.c (_licvt): Print the right value on machines
9637         where sizeof(int) != sizeof(long).
9638
9639 Fri May 21 22:09:32 1993  Roland H. Pesch  (pesch@fowanton.cygnus.com)
9640
9641         * libc/reent/execr.c, libc/reent/filer.c, libc/reent/linkr.c,
9642         libc/reent/sbrkr.c, libc/reent/statr.c, libc/stdio/tmpnam.c,
9643         libc/stdlib/atol.c, libc/stdlib/rand.c, libc/string/strpbrk.c,
9644         libc/string/strspn.c, libm/ieeefp/isnan.c, libm/math/bessel.c,
9645         libm/math/matherr.c: changes for better docn formatting (info).
9646
9647         * libc/libc.texinfo, libc/ctype/ctype.tex, libc/locale/locale/tex,
9648         libc/reent/reent.tex, libc/signal/signal.tex,
9649         libc/stdio/stdio.tex, libc/stdlib/stdlib.tex,
9650         libc/string/strings.tex, libc/sys/sys.tex, libc/time/time.tex,
9651         libm/libm.texinfo, libm/ieeefp/ieeefp.tex, libm/math/math.tex: use
9652         makeinfo node defaulting to get better Info file node structure.
9653         (Requires recent sac change to doc/makedoc.c and doc/doc.str.)
9654         Also include a few formerly missing sections (subroutines).
9655
9656         * doc/doc.str: delete fossil expansion for "func"
9657
9658         * default.menu, no-signal.menu: delete.
9659
9660         * Makefile.in, libc/Makefile.in, configure.in, host/any: simplify
9661         method used to adjust doc for missing "signals" chapter when 
9662         signal_dir is empty.
9663
9664 Thu May 20 21:38:37 MDT 1993  Jeffrey Wheat  (cassidy@cygnus.com)
9665
9666         * configure.in: added testsuite/libm.sac
9667
9668 Wed May 19 14:52:34 1993  Doug Evans  (dje@thepub.cygnus.com)
9669
9670         * libc/sys/sparc64/crt0.S: Set %g4 to 0 (to test Medium/Anywhere
9671         code model).
9672
9673 Tue May 18 13:17:21 1993  Ian Lance Taylor  (ian@cygnus.com)
9674
9675         * libm/Makefile.in: Use $(MAKE) rather than make, and define
9676         MAKEOVERRIDES to be empty.
9677
9678 Mon May 17 08:42:44 1993  Ian Lance Taylor  (ian@cygnus.com)
9679
9680         * configure.in: Don't build mips-*-* with -msoft-float, since that
9681         makes it incompatible with hard floating point.
9682
9683 Mon May 17 00:03:35 MDT 1993  Jeffrey Wheat  (cassidy@cygnus.com)
9684
9685         * Makefile.in: added recursive 'make check'
9686
9687 Thu May 13 16:24:18 MDT 1993  Jeffrey Wheat  (cassidy@cygnus.com)
9688
9689         * configure.in: added ./testsuite ./testsuite/libm.paranoia
9690         * ./testsuite/Makefile.in: created
9691         * ./testsuite/libm.paranoia: paranoia tests added
9692
9693 Thu May 13 10:30:24 1993  Ian Lance Taylor  (ian@cygnus.com)
9694
9695         * configure.in: For mips-*-* set machine_dir to mips.
9696
9697         * libc/machine/mips: New directory.
9698         * libc/machine/mips/Makefile.in: New file.
9699         * libc/machine/mips/setjmp.S: New file; simplistic MIPS version of
9700         setjmp and longjmp.
9701         * libc/include/machine/setjmp.h: Added __mips__ case.
9702
9703         * libc/machine/lmips: Removed unused and useless directory.
9704
9705 Mon May  3 10:22:31 1993  Ian Lance Taylor  (ian@cygnus.com)
9706
9707         * configure.in: Accept i486-*-sco* as well as i386-*-sco*.
9708
9709 Thu Apr 15 15:16:44 1993  Doug Evans  (dje@canuck.cygnus.com)
9710
9711         * libc/sys/sparc64/crt0.S: Add comment (%g1 contains atexit arg at
9712         start up).
9713
9714 Fri Apr  9 13:32:26 1993  Ian Lance Taylor  (ian@cygnus.com)
9715
9716         * libc/include/machine/setjmp-dj.h: Use _SETJMP_DJ_H rather than
9717         SETJMP_H.
9718
9719 Thu Apr  8 10:07:18 1993  Doug Evans  (dje@canuck.cygnus.com)
9720
9721         * libm/test/convert.c: structure member errno -> errno_val.
9722         Must include <errno.h> to use errno, it's a macro now.
9723         * libm/test/math.c: Ditto.
9724         * libm/test/math2.c: Include errno.h.
9725         * libm/test/string.c: Ditto.
9726         * libm/test/test.h: structure member errno -> errno_val.
9727         Remove extern int errno decl.
9728
9729 Thu Apr  8 07:56:33 1993  Ian Lance Taylor  (ian@cygnus.com)
9730
9731         * libc/stdio/Makefile.in: Added dependencies on local header
9732         files.
9733         * libc/stdio/std.h, libc/stdio/vfprintf.h: Removed unused header
9734         files.
9735
9736 Wed Apr  7 16:19:32 1993  Ian Lance Taylor  (ian@cygnus.com)
9737
9738         * libc/include/machine/ieeefp.h: Added __MIPSEB__ case.
9739
9740 Wed Apr  7 10:55:21 1993  Doug Evans  (dje@canuck.cygnus.com)
9741
9742         * libc/stdio/siprintf.c libc/stdio/sscanf.c libc/stdio/vsprintf.c:
9743         Initialize _data.
9744
9745         * libc/stdio/vfprintf.c: No need to declare _icvt, _licvt, _sicvt.
9746         * libc/stdio/local.h: Add prototype for _licvt.
9747
9748         * libc/stdio/ungetc.c (__submore): Use _malloc_r,_realloc_r
9749         instead of malloc,reealloc.
9750
9751         * libc/stdlib/local.h: New file.
9752         * libc/stdlib/efgcvt.c: #include local.h.
9753         (gcvt): Fix call to _gcvt.
9754         * libc/stdlib/ecvtbuf.c: #include local.h.
9755
9756         * libc/stdlib/Makefile.in: new files mallocr.c mstats.c.
9757         * libc/stdlib/mallocr.c mstats.c malloc.h: New files.
9758         * libc/stdlib/malloc.c: main routines moved to mallocr.c.
9759
9760         * libc/stdlib/atexit.c: moved global data to struct _reent.
9761         * libc/stdlib/exit.c: use struct _atexit in struct _reent.
9762
9763         * libc/reent/reent.c (inpure_data): _REENT_INIT macro modified.
9764
9765 Wed Apr  7 09:41:50 1993  Doug Evans  (dje@canuck.cygnus.com)
9766
9767         * libc/include/sys/reent.h: Stuff required by ANSI headers moved
9768         here from ../reent.h.
9769
9770 Tue Apr  6 12:56:01 1993  Ian Lance Taylor  (ian@cygnus.com)
9771
9772         * Makefile.in (MATHOBJS_IN_LIBC): List of object files which
9773         should be provided in both libc.a and libm.a.
9774         (libc.a): Depend on targ-include and libm.a.  Copy
9775         $(MATHOBJS_IN_LIBC) from libm.a to libc.a.
9776         (libm.a): Depend on targ-include.
9777         * configure.in (subdirs): Removed libc/math.
9778
9779 Mon Apr  5 10:18:16 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
9780
9781         * libm/ieeefp/infinity.c (maxpowtwo): Fix initialization bug.
9782
9783 Sat Apr  3 11:06:07 1993  Doug Evans  (dje@canuck.cygnus.com)
9784
9785         * libc/include/{errno.h, math.h, stdio.h, stdlib.h}: Use
9786         sys/reent.h instead of reent.h.
9787         * libc/include/reent.h: Split into two parts: stuff needed by ANSI
9788         headers moved to sys/reent.h.  
9789         * libc/include/signal.h: _MAX_SIGNALS moved to sys/signal.h.
9790         * libc/include/sys/signal.h: Define _MAX_SIGNALS if
9791         __need__MAX_SIGNALS defined.
9792         * libc/include/stdio.h: struct __sFILE moved to sys/reent.h.
9793         std{in,out,err} refer to new _std{in,out,err} members.
9794
9795 Fri Apr  2 11:27:12 1993  Doug Evans  (dje@canuck.cygnus.com)
9796
9797         * libc/include/sys/signal.h: #define _SYS_SIGNAL_H for general
9798         case.
9799
9800 Fri Apr  2 09:41:10 1993  Doug Evans  (dje@canuck.cygnus.com)
9801
9802         * libc/sys/sparc64/execve.S (execve): Insert nop in delay slot,
9803         rather than whatever macro seterrno() has.
9804
9805 Thu Apr  1 16:47:08 1993  Doug Evans  (dje@canuck.cygnus.com)
9806
9807         * libc/locale/locale.c: Reentrant routines _r_xxx renamed to
9808         _xxx_r.  struct reent_struct renamed to struct _reent for ANSI.
9809
9810         * libc/include/machine/fastmath.h: Use _HAVE_STDC instead of
9811         __STDC__.
9812
9813         * libc/reent/{execr.c, filer.c, fstatr.c, linkr.c, reent.c,
9814         reent.tex, sbrkr.c, statr.c}: _r_xxx reentrant routines renamed to
9815         _xxx_r.  struct reent_struct renamed to struct _reent for ANSI.
9816
9817         * libc/signal/signal.c: Reentrant routines _r_xxx renamed to
9818         _xxx_r.  struct reent_struct renamed to struct _reent for ANSI.
9819
9820         * libc/stdio/{fclose.c, fdopen.c, findfp.c, fiprintf.c, flags.c,
9821         fopen.c, fprintf.c, freopen.c, fscanf.c, fseek.c, ftell.c,
9822         fwalk.c, getchar.c, gets.c, iprintf.c, local.h, makebuf.c,
9823         mktemp.c, perror.c, printf.c, putchar.c, puts.c, refill.c,
9824         remove.c, rename.c, scanf.c, setvbuf.c, siprintf.c, sprintf.c,
9825         sscanf.c, stdio.c, tmpfile.c, tmpnam.c, vfprintf.c, vfprintf.h,
9826         vfscanf.c, vprintf.c, vsprintf.c}: Reentrant routines _r_xxx
9827         renamed to _xxx_r.  struct reent_struct renamed to struct _reent
9828         for ANSI.  structure members given leading "_" for ANSI.  Use
9829         _HAVE_STDC instead of __STDC__ and _HAVE_STDARG.
9830
9831         * libc/stdlib/{__adjust.c, calloc.c, dtoa.c, ecvtbuf.c, malloc.c,
9832         mprec.c, mprec.h, rand.c, std.h, strtod.c, strtol.c, strtoul.c,
9833         system.c}: Reentrant routines _r_xxx renamed to _xxx_r.  struct
9834         reent_struct renamed to struct _reent for ANSI.
9835         Structure members given leading "_" for ANSI.
9836         _CONST --> const in prototypes.
9837         Use _HAVE_STDC instead of __STDC__.
9838
9839         * libc/string/strtok.c: Reentrant routines _r_xxx renamed to
9840         _xxx_r.
9841         struct reent_struct renamed to struct _reent for ANSI.
9842         Structure members given leading "_" for ANSI.
9843
9844         * libc/time/asctime.c: Reentrant routines _r_xxx renamed to
9845         _xxx_r.
9846         struct reent_struct renamed to struct _reent for ANSI.
9847
9848         * libm/math/{acos.h, acosh.h, asin.c, asinh.h, atanh.h, bessel.h,
9849         cbrt.h, cosh.h, erf.c, erf.h, error.c, exp.c, fmod.c, frexp.h,
9850         gamma.h, hypot.h, ldexp.c, log.h, log10.c, log1p.c log2.c,
9851         mathimpl.h, pow.c, remainder.c, sincos.c, sinh.h, sqrt.h, tan.c,
9852         tanh.h}: struct reent_struct renamed to struct _reent for ANSI.
9853
9854         * libc/include/{_ansi.h, ctype.h, math.h, reent.h, locale.h,
9855         signal.h, stdio.h, stdlib.h, string.h, time.h}:
9856         Use _HAVE_STDC instead of __STDC__ and _HAVE_STDARG.
9857         #ifndef _STRICT_ANSI non-ANSI routines.
9858         Reentrant routines renamed from _r_xxx to _xxx_r.
9859         No need to use _STRICT_ANSI on _xxx_r reentrant routines.
9860         Use _STRICT_ANSI instead of __STRICT_ANSI, _ANSI_SOURCE, etc.
9861         Clean up namespace (structure members have leading "_").
9862         struct reent_struct renamed to struct _reent for ANSI compliance.
9863         _CONST --> const in function prototypes.
9864
9865         * libc/include/string.h: Add NULL and size_t.
9866
9867         * libc/sys/sparc64/Makefile.in: New syscall routines for link,
9868         unlink, wait, wait4. Reentrant syscall routines close, fork,
9869         fstat, link, lseek, open, read, sbrk, stat, unlink, wait, wait4,
9870         write.
9871         * libc/sys/sparc64/cerror.S (cerror_r): New routine.
9872         * libc/sys/sparc64/{close.S, fork.S, fstat.S, link.S, lseek.S,
9873         open.S, read.S, sbrk.S, stat.S, unlink.S, wait.S, wait4.S,
9874         write.S}: Define reentrant versions.
9875         * libc/sys/sparc64/sys/syscallasm.h (defsyscall_r): New macro for
9876         reentrant syscalls.
9877
9878         * libc/sys/sparc64/crt0.S (start): Fix initialization of environ.
9879
9880         * libc/include/stdlib.h (RAND_MAX): Fix value.
9881
9882 Thu Apr  1 12:28:30 1993  Ian Lance Taylor  (ian@cygnus.com)
9883
9884         * libc/sys/a29khif/_main.c: Removed unnecessary file.
9885         * libc/sys/a29khif/Makefile.in (OFILES): Removed _main.c, moved
9886         VPATH support targets after all: target.
9887
9888         * stub/mvme135/mvme.S: Renamed exceptionhandler to
9889         exceptionHandler, which is what mvme135-stub.c expects.
9890
9891 Wed Mar 31 17:42:03 1993  Doug Evans  (dje@cygnus.com)
9892
9893         * libc/stdio/tmpnam.c (worker): Fix test for _r_open() failure.
9894
9895         * libc/unix/getpass.c (getpass): Use stdin,stderr instead of
9896         def_stdin/def_stderr (latter removed from stdio.h to make it ANSI
9897         compliant).
9898
9899 Tue Mar 30 09:58:21 1993  Doug Evans  (dje@canuck.cygnus.com)
9900
9901         * libc/reent/execr.c (_r_wait): Re-order args to make reent_struct
9902         first.
9903         libc/reent/filer.c (_r_open, _r_close, _r_lseek, _r_read,
9904         _r_write): Ditto.
9905         libc/reent/fstatr.c (_r_fstat): Ditto.
9906         libc/reent/linkr.c (_r_link, _r_unlink): Ditto.
9907         libc/reent/sbrkr.c (_r_sbrk): Ditto.
9908         libc/reent/statr.c (_r_stat): Ditto.
9909
9910         * libc/stdio/fopen.c (_r_fopen): Re-order args to _r_open.
9911         * libc/stdio/freopen.c (freopen): Ditto for _r_open, _r_free.
9912         * libc/stdio/fseek.c (fseek): Ditto for _r_fseek.
9913         * libc/stdio/makebuf.c (__smakebuf): Ditto for _r_fstat.
9914         * libc/stdio/mktemp.c (_gettemp): Ditto for _r_stat, _r_open.
9915         * libc/stdio/remove.c (_r_remove): Ditto for _r_unlink.
9916         * libc/stdio/rename.c (_r_rename): Ditto for _r_link, _r_unlink.
9917         * libc/stdio/stdio.c (__sread): Ditto for _r_read.
9918         (__swrite): Ditto for _r_lseek, _r_write.
9919         (__sseek): Ditto for _r_lseek.
9920         (__close): Ditto for _r_close.
9921         * libc/stdio/tmpnam.c (worker): Ditto for _r_open, _r_close.
9922
9923         * libc/stdlib/malloc.c (_r_morecore): Re-order args to _r_sbrk.
9924         * libc/stdlib/system.c (_r_system): Ditto for _r_wait.
9925
9926         * libc/include/reent.h: Re-order arguments to _r_xxx syscall fns
9927         to make reent_struct the first argument (and thus consistent with
9928         the rest of newlib).
9929
9930         * stub/mvme135/mvme135-stub.c (initializeRemcomErrorFrame): Remove
9931         reference to __STDC__.
9932
9933 Mon Mar 29 12:34:32 1993  Doug Evans  (dje@canuck.cygnus.com)
9934
9935         * libc/stdlib/exit.c (exit): Use _REENT->__cleanup instead of
9936         global __cleanup.
9937
9938 Wed Mar 24 11:54:35 1993  Doug Evans  (dje@canuck.cygnus.com)
9939
9940         * libc/stdio/freopen.c (freopen): Ensure stdio is initialized
9941         first.
9942         libc/stdio/fclose.c (fclose): Ditto.
9943
9944 Tue Mar 23 01:26:52 1993  Doug Evans  (dje@rtl.cygnus.com)
9945
9946         * Run through indent and rename reentrant routines for ANSI.
9947         libc/stdio/{clearerr.c cvt.c fclose.c fdopen.c feof.c ferror.c
9948         fflush.c fgetc.c fgetpos.c fgets.c findfp.c fiprintf.c flags.c
9949         fopen.c fprintf.c fputc.c fputs.c fread.c freopen.c fscanf.c
9950         fseek.c fsetpos.c ftell.c fvwrite.c fwalk.c fwrite.c getc.c
9951         getchar.c gets.c iprintf.c makebuf.c mktemp.c perror.c printf.c
9952         putc.c putchar.c puts.c refill.c remove.c rename.c rewind.c rget.c
9953         scanf.c setbuf.c setvbuf.c siprintf.c sprintf.c sscanf.c stdio.c
9954         tmpfile.c tmpnam.c ungetc.c vfprintf.c vfscanf.c vprintf.c
9955         vsprintf.c wbuf.c wsetup.c local.h}
9956
9957         * libc/locale/locale.c: Reformat and rename for ANSI, GNU style.
9958
9959         * Run through indent and rename xxx_r fns to _r_xxx for ANSI.
9960         libc/stdlib/{__adjust.c __exp10.c __ten_mu.c abort.c abs.c
9961         assert.c atexit.c atof.c atoi.c atol.c bsearch.c calloc.c div.c
9962         dtoa.c ecvtbuf.c efgcvt.c exit.c getenv.c labs.c ldiv.c malloc.c
9963         mbtowc.c mprec.c putenv.c qsort.c rand.c setenv.c strdup.c
9964         strtod.c strtol.c strtoul.c system.c wctomb.c mprec.h}
9965
9966         * Run through indent.
9967         libc/string/{bcmp.c bcopy.c bzero.c index.c memchr.c memcmp.c
9968         memcpy.c memmove.c memset.c rindex.c strcat.c strchr.c strcmp.c
9969         strcoll.c strcpy.c strcspn.c strerror.c strlen.c strncat.c
9970         strncmp.c strncpy.c strpbrk.c strrchr.c strspn.c strstr.c strtok.c
9971         strxfrm.c}
9972
9973         * libc/time/{asctime.c clock.c ctime.c difftime.c gmtime.c
9974         localtime.c mktime.c strftime.c time.c}:
9975         Run through indent and rename xxx_r (reentrant) fns to _r_xxx for ANSI.
9976
9977         * Reformatting + renaming (for ANSI, GNU style, consistency).
9978         libc/include/{_ansi.h, assert.h, ctype.h, errno.h, fastmath.h,
9979         ieeefp.h, locale.h, math.h, paths.h, pwd.h, reent.h, setjmp.h,
9980         signal.h, stdio.h, stdlib.h, string.h, time.h, unistd.h}
9981
9982 Fri Mar 19 11:28:01 1993  Doug Evans  (dje@cygnus.com)
9983
9984         * libc/include/stdio.h (stdin_r): Fix.
9985
9986 Fri Mar 19 09:43:48 1993  Ian Lance Taylor  (ian@cygnus.com)
9987
9988         * Makefile.in: Unexport some variables to keep GNU make from
9989         putting them in the environment and using up needed ARG_MAX space
9990         (a hack is used to let this work with older makes as well).
9991
9992 Tue Mar 16 15:11:08 1993  Ian Lance Taylor  (ian@cygnus.com)
9993
9994         * Makefile.in: Use $(MAKE) rather than make.
9995         (MAKEOVERRIDES): Define to be empty.
9996         (FLAGS_TO_PASS): Don't pass down LD (it's not used).
9997         (libc.a, libm.a): Depend on targ-include.
9998         * host/any (LD): Don't define.
9999         (INCLUDES): Use targ-include.   
10000         * stub/Makefile.in (MAKEOVERRIDES): Define to be empty.
10001         (FLAGS_TO_PASS): Don't pass down LD (it's not used).
10002         * libc/Makefile.in: Use $(MAKE) rather than make.
10003         (MAKEOVERRIDES): Define to be empty.
10004         (FLAGS_TO_PASS): Don't pass LD (it's not used).
10005         (all): Rewrote to be slightly smaller.
10006         * libc/machine/Makefile.in, libc/sys/Makefile.in (MAKEOVERRIDES):
10007         Define to be empty.
10008         (FLAGS_TO_PASS): Don't pass LD (it's not used).
10009         * libm/Makefile.in (FLAGS_TO_PASS): Don't pass LD (it's not used).
10010
10011 Mon Mar 15 08:45:41 1993  Ian Lance Taylor  (ian@cygnus.com)
10012
10013         * libc/sys/go32/gerrno.s: Renamed from errno.s to avoid conflict
10014         with errno/errno.c.
10015
10016 Fri Mar 12 09:46:54 1993  Ian Lance Taylor  (ian@cygnus.com)
10017
10018         * Changes for reentrancy.
10019         libc/stdio/fdopen.c, libc/stdio/freopen.c, libc/stdio/perror.c:
10020         Use ptr->_errno, not errno.
10021         libc/stdio/mktemp.c (mkstemp_r, mktemp_r): New functions.
10022         libc/stdio/remove.c (remove_r): New function.
10023         libc/stdio/rename.c (rename_r): New function.
10024         libc/stdio/fopen.c, libc/stdio/freopen.c, libc/stdio/fseek.c,
10025         libc/stdio/makebuf.c, libc/stdio/mktemp.c, libc/stdio/remove.c,
10026         libc/stdio/rename.c, libc/stdio/stdio.c, libc/stdio/tmpnam.c: Use
10027         reentrant versions of system calls.
10028         libc/stdio/gets.c: Call getchar_f, not nonexistent getchar_r.
10029         libc/stdio/scanf.c: Use stdin_r, not nonexistent stdin_n.
10030         libc/stdio/tmpfile.c: Use tmpnam_f, not nonexistent tmpnam_r.
10031         libc/stdio/findfp.c: Include <string.h>.
10032         libc/stdio/fread.c, libc/stdio/rget.c, libc/stdio/scanf.c: Include
10033         "local.h".
10034         libc/stdio/wbuf.c: Include "fvwrite.h"
10035
10036         * libc/stdlib/{dtoa.c, ecvtbuf.c, mprec.c, strtod.c}: Include
10037         <string.h>.
10038         libc/stdlib/malloc.c: Call sbrk_r rather than sbrk.
10039         (NULL): Don't define if already defined.
10040         libc/stdlib/system.c: Call reentrant versions of system calls.
10041         (system_r): New function.
10042
10043         * Changes for reentrancy.
10044         libc/include/_ansi.h (_PARAMS): New macro.
10045         libc/include/errno.h: Define errno as a macro that calls __errno.
10046         (__errno_r): New macro for reentrant code.
10047         libc/include/math.h: Include reent.h.  Declare many reentrant
10048         functions.
10049         (signgam): Now a macro, not a variable.
10050         (struct exception): Added err field.
10051         libc/include/reent.h: Don't declare __sglue.  Added function
10052         declarations.
10053         (struct reent_struct): Moved errno to beginning.  Added _signgam.
10054         libc/include/stdio.h, libc/include/stdlib.h: Added function
10055         declarations.
10056
10057         * More reentrancy hacking.
10058         libc/errno/errno.c (__errno): New function.
10059         libc/reent/execr.c, libc/reent/filer.c, libc/reent/fstatr.c,
10060         libc/reent/linkr.c, libc/reent/sbrkr.c, libc/reent/statr.c: New
10061         files.
10062         
10063         * Added many new reentrant functions to libm/math/*.
10064         libm/math/error.c (__matherror): Added reent_struct pointer
10065         argument. Changed all callers.
10066         libm/math/gamma.c (signgam): Removed. Set ptr->_signgam, instead.
10067         libm/math/exp.h, libm/math/pow.h, libm/math/sincos.h,
10068         libm/math/tan.h: Removed obsolete unused header files.
10069
10070         * libc/sys/a29khif/stubs.s: Use register lr0, not v0.
10071
10072         * libc/sys/sun/Makefile.in (COPYOFILES): Don't pull in errno.o.
10073
10074 Mon Mar  8 16:43:43 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
10075
10076         * libc/sys/a29khif/stubs.s: clobber safe register, and fill all
10077         delay slots.
10078
10079 Tue Mar  2 14:47:00 1993  Jeffrey Osier      (jeffrey@fowanton.cygnus.com)
10080
10081         * libc/libc.texinfo:  comment out reentrancy chapter (duh)
10082
10083 Tue Mar  2 14:34:16 1993  Jeffrey Osier      (jeffrey@fowanton.cygnus.com)
10084
10085         * libc/reent/reent.tex:  New file.  (text from
10086         newlib/libc/libc.texinfo)
10087         * libc/stdio/tmpnam.c:  fixed doc typo
10088         * libc/stdlib/rand.c:   fixed doc typo
10089
10090 Tue Mar  2 14:34:16 1993  Jeffrey Osier      (jeffrey@fowanton.cygnus.com)
10091
10092         * libc/reent/reent.tex:  New file.  (text from
10093         newlib/libc/libc.texinfo)
10094
10095 Fri Feb 26 12:20:54 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
10096
10097         support for reentrancy
10098         * libc/reent/reent.c, libc/reent/Makefile.in, libc/reent/reent.c:
10099         new files
10100         * libc/errno/errno.c, libc/include/ieeefp.h,
10101         libc/include/locale.h, libc/include/reent.h,
10102         libc/include/signal.h, libc/include/stdio.h,
10103         libc/include/stdlib.h, libc/include/string.h, libc/include/time.h,
10104         libc/signal/signal.c libc/stdio/cvt.c, libc/stdio/fclose.c,
10105         libc/stdio/fdopen.c, libc/stdio/fflush.c, libc/stdio/fgets.c,
10106         libc/stdio/findfp.c, libc/stdio/flags.c, libc/stdio/fopen.c,
10107         libc/stdio/fputc.c, libc/stdio/freopen.c, libc/stdio/fseek.c,
10108         libc/stdio/ftell.c, libc/stdio/fwalk.c, libc/stdio/getchar.c,
10109         libc/stdio/gets.c, libc/stdio/glue.h, libc/stdio/iprintf.c,
10110         libc/stdio/local.h, libc/stdio/makebuf.c, libc/stdio/perror.c,
10111         libc/stdio/printf.c, libc/stdio/putchar.c, libc/stdio/puts.c,
10112         libc/stdio/refill.c, libc/stdio/scanf.c, libc/stdio/setvbuf.c,
10113         libc/stdio/sprintf.c, libc/stdio/tmpfile.c, libc/stdio/tmpnam.c,
10114         libc/stdio/ungetc.c, libc/stdio/vfprintf.c, libc/stdio/vfprintf.h,
10115         libc/stdio/vfscanf.c, libc/stdio/vprintf.c, libc/stdio/wsetup.c,
10116         libc/stdlib/__adjust.c, libc/stdlib/__exp10.c,
10117         libc/stdlib/assert.c, libc/stdlib/atexit.c, libc/stdlib/atol.c,
10118         libc/stdlib/dtoa.c, libc/stdlib/ecvtbuf.c, libc/stdlib/malloc.c,
10119         libc/stdlib/mprec.c, libc/stdlib/mprec.h, libc/stdlib/rand.c,
10120         libc/stdlib/setenv.c, libc/stdlib/std.h, libc/stdlib/strtod.c,
10121         libc/stdlib/strtol.c, libc/stdlib/strtoul.c, libc/string/strtok.c,
10122         libc/time/asctime.c, libc/time/localtime.c, libc/time/mktime.c,
10123         libc/time/strftime.c: modify to provide reentracy.
10124
10125         new routines:
10126         strtok_r, asctime_r, fdopen_r, _cleanup_r, fopen_r, iprintf_r,
10127         perror_r, printf_r, putchar_r, puts_r, scanf_r, sprintf_r,
10128         tmpfile_r, vfiprintf_r, vfprintf_r, strtod_r, dtoa_r, rand_r,
10129         srand_r, strtoul_r,strtol_r, free_r, malloc_r, morecore_r,
10130         mstats_r, realloc_r, localeconv_r, setlocale_r
10131
10132 Wed Feb 17 20:17:15 1993  Mark Eichin  (eichin@cygnus.com)
10133
10134         * libc/include/machine/ieeefp.h, libc/include/machine/setjmp.h,
10135         libc/include/sys/config.h, libc/include/sys/signal.h,
10136         libc/include/sys/stat.h, libc/include/sys/types.h: For compiler
10137         provided macros (such as m68000), use the ansi version
10138         (__m68000__) so that the library can be used with code compiled
10139         -ansi. In particular, m68000, mc68000, _AM29K, i386, MIPSEL, unix,
10140         and sparc.
10141
10142 Wed Feb 17 13:01:34 1993  Jim Wilson  (wilson@sphagnum.cygnus.com)
10143
10144         * configure.in (sparc*): Don't set -fsoft-float for sparc
10145         configurations.  Do set -fsoft-float for sparclite configurations.
10146
10147 Fri Feb 12 16:25:52 1993  Roland H. Pesch  (pesch@fowanton.cygnus.com)
10148
10149         * default.menu, no-signal.menu: alternate forms of libc main menu
10150           (in newlib rather than newlib/libc due to configuration restrictions)
10151
10152         * configure.in: select one of the two menus above, link to
10153         libc.menu
10154
10155         * libc/libc.texinfo: include menu from separate file
10156
10157 Fri Feb 12 12:50:06 1993  Ian Lance Taylor  (ian@cygnus.com)
10158
10159         * Makefile.in (FLAGS_TO_PASS): Put INSTALL back in.
10160         (info): Split long shell command in half.
10161         * libc/Makefile.in (info, targetdep.tex): Don't pass everything to
10162         sub-makes, just CHEW and TARGETDOC. 
10163         (targetdep.tex): Removed now special handling of sys and machine
10164         subdirectories, made obsolete some time ago.
10165         * libc/machine/Makefile.in (doc): Don't pass everything to
10166         sub-make, just CHEW and TARGETDOC.
10167         (Makefile): New target.
10168         * libc/sys/Makefile.in (Makefile): New target.
10169
10170 Thu Feb 11 15:25:15 1993  Ian Lance Taylor  (ian@cygnus.com)
10171
10172         * Makefile.in (here and most subdirectories): Only pass down CHEW
10173         and TARGETDOC when making info, not for other targets.
10174
10175         * Makefile.in (here and most subdirectories), host/any: Use $(AR)
10176         $(AR_FLAGS) rather than $(ARUPDATE).
10177
10178 Wed Feb 10 11:57:52 1993  Ian Lance Taylor  (ian@cygnus.com)
10179
10180         * Try to reduce command line length:
10181         * Makefile.in (FLAGS_TO_PASS): don't pass down exec_prefix,
10182         CC_FOR_BUILD, CFLAGS_FOR_BUILD, INSTALL or CHEW.
10183         (info, docs): pass CC_FOR_BUILD and CFLAGS_FOR_BUILD to doc.
10184         (info): Pass CHEW to other subdirs.
10185
10186 Tue Feb  9 14:01:42 1993  Mark Eichin  (eichin@cygnus.com)
10187
10188         * configure.in: add signal_dir, like unix_dir, but by default it
10189         is set to "signal" so that a29khif can turn it off (since a29khif
10190         has raise() as part of machine-specific signal.s.)
10191
10192 Fri Jan 15 12:09:50 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
10193
10194         * libc/sys/config.h, libc/machine/ieeefp.h: add Z8000 support
10195         * libc/stdio/Makefile.in: pass CFLAGS so vfiprintf.c gets built
10196         correctly.
10197         * libc/stdio/fdopen.c, libc/stdio/fgets.c, libc/stdio/fscanf.c,
10198         libc/stdio/vfprintf: type lint.
10199         * libc/sys/z8ksim/crt0.c (start): Z8001/Z8002 independent
10200         initialzation code.
10201         * libc/sys/z8ksim/glue.c: Z8001/Z8002 clean system calls.
10202
10203 Tue Dec 29 10:15:33 1992  Ian Lance Taylor  (ian@cygnus.com)
10204
10205         * stub/mvme135/mvme135-asm.S: new file.
10206         stub/mvme135mvme135-stub.c: moved all assembler routines into
10207         mvme135-asm.S.
10208         stub/mvme135/Makefile.in: build mvme135-stub.o.
10209
10210 Mon Dec 28 12:40:43 1992  Ian Lance Taylor  (ian@cygnus.com)
10211
10212         * Makefile.in: don't pass down $(CPP); use $(CC) -E in
10213         sub-Makefiles instead, to try to avoid line length limitations.
10214
10215 Mon Dec 21 18:36:13 1992  Per Bothner  (bothner@rtl.cygnus.com)
10216
10217         * libc/include/unistd.h (read, write):  Use void* instead of
10218         char*.
10219
10220 Thu Dec 17 13:49:46 1992  Mark Eichin  (eichin@cygnus.com)
10221
10222         * stub/go32/resetpc: sample script to send a reset packet to the
10223         stub
10224
10225         * stub/go32/I386STUB.C: new file, gdb/i386stub.c modified for the
10226         DOS environment, which compiles with Turbo C.
10227
10228         * stub/go32/DSER32.LNK: new file, linker commands for serial
10229         remote stub.
10230
10231         * stub/go32/CONTROL.C: turn off debug_mode, add CYGNUS tag line to
10232         start up message to identify version; call set_debug_traps.
10233
10234         * stub/go32/DEBUG.C: turn off debug_mode (so stub doesn't need any
10235         keyboard interaction); call handle_exception() in go_til_stop,
10236         rather than return, so that the remote stub gets control.
10237
10238         * stub/go32/MAKEFILE: fixed to actually use DOS commands (del and
10239         rename, rather than mv), set flags that work with current Turbo C,
10240         including using the /3 flag; also, add commands to build dser32.
10241
10242         * stub/go32/DEBUG32.LNK, stub/go32/GO32.LNK: fix paths to match
10243         default Turbo C installation (\tc rather than \usr)
10244
10245         * stub/go32/MONO.C (printf): current Turbo C uses "..." instead of
10246         "&..."
10247
10248 Mon Dec 14 09:37:33 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
10249
10250         * libc/include/math.h: added _DOUBLE_IS_32BITS checks
10251
10252 Thu Nov 12 22:31:04 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
10253
10254         * libc/stdio/cvt.c (licvt): new function to convert ints when
10255         sizeof(int) != sizeof(long).
10256
10257         * libc/include/stdio.h: added prototype for iprintf.
10258         * libc/include/machine/limits.h machine/ieeefp.h: z8k stuff
10259
10260 Tue Nov 10 12:18:12 1992  Ian Lance Taylor  (ian@cygnus.com)
10261
10262         * libc/machine/m68k/setjmp.S: use __USER_LABEL_PREFIX__ and
10263         __REGISTER_PREFIX__.
10264
10265 Mon Nov  2 13:50:14 1992  Ian Lance Taylor  (ian@cygnus.com)
10266
10267         * libc/sys/m68kbare: moved into stub directory.
10268
10269 Mon Nov  2 13:40:42 1992  Ian Lance Taylor  (ian@cygnus.com)
10270
10271         * configure.in, Makefile.in: created new directory stub, to hold
10272         sample code for specific targets.
10273
10274 Wed Oct 28 02:19:55 1992  Mark Eichin  (eichin@cygnus.com)
10275
10276         * restored libc/sys/go32/sys/fcntl.h, to override incorrect values
10277         in the unified libc/include/sys/fcntl.h.
10278
10279 Wed Oct 21 13:55:58 1992  Doug Evans  (dje@rtl.cygnus.com)
10280
10281         * libc/stdlib/ecvtbuf.c: (print_f,_gcvt): printf("%f", 0.01)
10282         printed .01, not 0.01.
10283
10284 Mon Oct 19 11:05:55 1992  Ian Lance Taylor  (ian@cygnus.com)
10285
10286         * configure.in: compile with -m68000 for m68* targets.
10287
10288 Sun Oct 18 05:29:05 1992  Mark Eichin  (eichin@cygnus.com)
10289
10290         * libm/math/remainder.c (remainder): document the svr4 and sunos
10291         references used to construct the function.
10292
10293 Sat Oct 17 21:46:16 1992  Mark Eichin  (eichin@cygnus.com)
10294
10295         * libm/math/remainder.c (rint, remainder): fix old typos.
10296         * libm/math/Makefile.in: actually build remainder.c (functions
10297         rint and remainder, from SysVr4 Programmer's Guide floor(3m) man
10298         page.)
10299
10300 Thu Oct 15 07:48:05 1992  Ian Lance Taylor  (ian@cygnus.com)
10301
10302         * libc/string/bcopy.c: BSD version works on overlapping strings,
10303         so ours should too.
10304
10305         * libc/stdlib/system.c: always invoke /bin/sh, not getenv
10306         ("SHELL").
10307
10308 Wed Oct 14 11:07:11 1992  Ian Lance Taylor  (ian@cygnus.com)
10309
10310         * Makefile.in (docs): new target.
10311
10312 Wed Oct 14 07:44:25 1992  Ian Lance Taylor  (ian@cygnus.com)
10313
10314         * libc/include/sys/times.h: define clock_t as required by POSIX.
10315         libc/include/time.h: protect clock_t from multiple definitions.
10316
10317 Wed Oct  7 11:02:21 1992  Mark Eichin  (eichin at tweedledumber.cygnus.com)
10318
10319         * libm/math/sqrt.h (sqrt): actually, the final version of fp-bit
10320         does not need more than the original three iterations to get
10321         within 1 ulp. (Paranoia tests for rounding to better than that,
10322         but further iterations *don't* help, only more subtle changes
10323         can.)
10324
10325 Tue Oct  6 09:22:12 1992  Ian Lance Taylor  (ian@cygnus.com)
10326
10327         * libc/sys/vxworks68, libc/sys/vxworks960: removed, since they
10328         were doing nothing useful.
10329
10330 Tue Oct  6 08:48:13 1992  Ian Lance Taylor  (ian@cygnus.com)
10331
10332         * configure.in: define MALLOC_PROVIDED for vxworks targets;
10333         removed sys_dir settings of vxworks68 and vxworks960.
10334         host/any: don't pass -nostdinc to gcc, since newlib no longer
10335         provides all required header files.
10336
10337         * libc/stdlib/malloc.c: only compile this file if MALLOC_PROVIDED
10338         is not defined; this provides a hook for VxWorks.
10339
10340 Mon Oct  5 03:44:57 1992  Mark Eichin  (eichin at tweedledumber.cygnus.com)
10341
10342         * libc/stdio/setvbuf.c (setvbuf): while ANSI does say to malloc a
10343         buffer if buf is NULL, don't do it here -- it is already being
10344         done by makebuf elsewhere in stdio.
10345
10346 Fri Oct  2 13:12:07 1992  Ian Lance Taylor  (ian@cygnus.com)
10347
10348         * libc/sys/a29khif/Makefile.in: assemble Steve's list of stubs so
10349         that C programs can call functions without using initial
10350         underscores.
10351
10352 Thu Oct  1 09:37:47 1992  Ian Lance Taylor  (ian@cygnus.com)
10353
10354         * libc/stdlib/abort.c (abort): call exit, in case kill returns.
10355
10356 Wed Sep 30 08:22:18 1992  Ian Lance Taylor  (ian@cygnus.com)
10357
10358         * configure.in: set TARGET_CFLAGS for certain CPU types to
10359         -msoft-float.
10360
10361 Tue Sep 29 21:09:32 1992  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
10362
10363         * libc/sys/m68kbare/glue.c: use <_ansi.h> instead of <ansidecl.h>
10364
10365 Mon Sep 28 14:58:44 1992  Ian Lance Taylor  (ian@cygnus.com)
10366
10367         * configure.in: added sys_dir m68kbare for m68k*-unknown-aout and
10368         m68k*-unknown-coff.
10369
10370 Fri Sep 25 08:33:21 1992  Ian Lance Taylor  (ian@cygnus.com)
10371
10372         * libc/include/stdio.h: define __need___va_list before including
10373         <stdarg.h>, to avoid defining va_arg, et. al.
10374
10375 Tue Sep 22 13:47:00 1992  Ian Lance Taylor  (ian@cygnus.com)
10376
10377         * libc/sys/Makefile.in: handle the case of an empty $(sys_dir)
10378         (don't cd to the user's home directory).
10379
10380         * libc/Makefile.in: replaced all instances of $(MAKE) with make.
10381         In general this is the wrong thing to do, but I can't get around
10382         GNU make's insistence on passing command line arguments any other
10383         way.
10384
10385 Tue Sep 22 10:12:44 1992  Ian Lance Taylor  (ian@cygnus.com)
10386
10387         * configure.in: always configure the libc/sys directory, since it
10388         now provides a required documentation file.
10389
10390         * Makefile.in: replaced all instances of $(MAKE) with make.  In
10391         general this is the wrong thing to do, but I can't get around GNU
10392         make's insistence on passing command line arguments any other way.
10393
10394 Mon Sep 21 22:42:26 1992  Ian Lance Taylor  (ian@tweedledumbest.cygnus.com)
10395
10396         * libc/stdlib/ecvtbuf.c (_gcvt): string for 0 was not null
10397         terminated.
10398
10399         * libc/stdio/local.h: include <stdarg.h> to define va_list.
10400         libc/stdio/vsprintf.c: include <stdarg.h> rather than <varargs.h>.
10401
10402         * libc/include/float.h, libc/include/stdarg.h,
10403         libc/include/stddef.h, libc/include/varargs.h: removed; use gcc
10404         versions instead.
10405         libc/include/stdio.h: get size_t from <stddef.h>, and va_list from
10406         <stdarg.h>, not from <machine/types.h>.  Protect definition of
10407         NULL.
10408         libc/include/time.h: get size_t from stddef.h.  Protect definition
10409         of NULL.
10410         libc/include/machine/limits.h: override gcc <limits.h> by defining
10411         _LIMITS_H___.  Don't define CLK_TCK.  Copied in gcc <limits.h> to
10412         get correct INT_MIN and LONG_LONG values.
10413         libc/include/machine/types.h: don't define ptrdiff_t, wchar_t,
10414         size_t or va_list at all; they're now gotten from stddef.h
10415         instead.
10416         libc/include/machine/varargs.h: removed; use gcc version instead.
10417         libc/include/sys/types.h: explicitly include <machine/types.h>.
10418
10419         * libm/math/sqrt.h: using the fp-bit routines appears to require
10420         more iterations.
10421
10422         * Makefile.in, host/any: let system include files override machine
10423         include files.
10424
10425 Sat Sep 19 21:10:06 1992  Mark Eichin  (eichin at tweedledumber.cygnus.com)
10426
10427         * libc/include/machine/types.h: allow __*_TYPE__ from cpp to
10428         override _*_T_ definitions defaulted here.
10429
10430 Tue Sep 15 11:14:46 1992  Ian Lance Taylor  (ian@cygnus.com)
10431
10432         * Makefile.in (install): install the include files in
10433         $(tooldir)/include, not $(exec_prefix)/include.
10434
10435 Fri Sep 11 15:48:43 1992  Ian Lance Taylor  (ian@cygnus.com)
10436
10437         * Makefile.in (install): fixed typo, and changed install to not
10438         force rebuild of libc.a and libm.a.
10439
10440 Thu Sep 10 10:46:09 1992  Ian Lance Taylor  (ian@cygnus.com)
10441
10442         * libc/sys/a29khif/*: Changed all .include's to include
10443         sys/sysmac.h, not plain sysmac.h.  The header files live in sys so
10444         that they will be installed for the user.
10445
10446         * Makefile.in (all): create targ-include, a directory holding the
10447         machine and system specific header files during the build.
10448         (install): fixed installation of machine and system specific
10449         header files.
10450
10451         * Makefile.in: fixed comment.
10452         host/any: change .s.o rule to use $(AS) rather than $(CC), so that
10453         we can pass $(INCLUDES) to it.
10454
10455 Thu Sep 10 10:13:13 1992  Ian Lance Taylor  (ian@cygnus.com)
10456
10457         * libc/include/sys/param.h: new generic file, which may be
10458         overridden for specific systems.
10459
10460         * libc/include/sys/signal.h: define all ANSI signal names, and
10461         NSIG (which is not ANSI) for a29k.
10462
10463 Tue Sep  8 09:04:30 1992  Ian Lance Taylor  (ian@cygnus.com)
10464
10465         * Makefile.in: don't pass down arguments the lower level makes
10466         will not need.
10467         * libc/Makefile.in: recurse directly, rather than using subdir_do,
10468         in hopes of avoiding argument length limits.
10469         * libm/Makefile.in: recurse directly, rather using subdir_do, in
10470         hopes of avoiding argument length limits.
10471
10472 Tue Sep  8 08:27:22 1992  Ian Lance Taylor  (ian@cygnus.com)
10473
10474         * libc/include/sys/fcntl.h: include <sys/types.h> to ensure that
10475         mode_t is defined.
10476
10477 Mon Sep  7 14:02:07 1992  Ian Lance Taylor  (ian@cygnus.com)
10478
10479         * Fixed make info and make install-info for newlib, changing most
10480         Makefile.in and several *.tex files.  Moved doc directory from
10481         libc to top level.
10482
10483         * libc/time/mktime.c (_DAYS_IN_MONTH): actually, not const.
10484         Should be rewritten.
10485
10486         * libc/string/strings.tex: renamed node index to node index
10487         function, so that it does not conflict with the top level index
10488         node.
10489
10490         * libc/include/sys/config.h: define __IEEE_BIG_ENDIAN for h8300.
10491
10492 Fri Sep  4 02:34:06 1992  Ian Lance Taylor  (ian@cygnus.com)
10493
10494         * Overhauled general configuration for newlib.  Eliminated all
10495         target dependent Makefile fragments.  Create libraries in newlib
10496         rather than newlib/libc and newlib/libm.  Use CC, et. al., rather
10497         than CROSS_CC, et. al.  Broke make docs; will fix later.
10498
10499         * libc/time/localtime.c (_DAYS_IN_MONTH): actually, not const.
10500         Should be rewritten.
10501
10502 Tue Sep  1 15:21:14 1992  Ian Lance Taylor  (ian@cygnus.com)
10503
10504         * libc/configure.in: cleaned up somewhat; switch on ${target}
10505         rather than ${target_alias}.
10506         * libm/configure.in: cleaned up somewhat; switch on ${target}
10507         rather than ${target_alias}.
10508
10509         * libc/ctype/ctype_.c: marked _ctype_ array _CONST.
10510         * libc/include/ctype.h: marked _ctype_ as _CONST.
10511
10512         * libc/locale/locale.c (lconv, localeconv): marked static lconv as
10513         _CONST.
10514
10515         * libc/stdio/cvt.c, libc/stdio/findfp.c (__sfmoreglue),
10516         libc/stdio/vfscanf.c (__svfscanf): made static variables const.
10517         libc/stdio/gets.c (gets): removed non-ANSI warning message.
10518         libc/stdio/tmpnam.c (tmpnam): removed unneeded filename variable.
10519
10520         * libc/stdlib/mprec.h, libc/stdlib/mprec.c (pow5mult, tens,
10521         bigtens, tinytens): marked arrays _CONST.
10522         libc/stdlib/qsort.c (swap): if __GNUC__, use _builtin_alloca
10523         rather than a static variable.
10524
10525         * libc/time/asctime.c (asctime), libc/time/localtime.c
10526         (_DAYS_IN_MONTH), libc/time/mktime.c (_DAYS_IN_MONTH,
10527         _DAYS_BEFORE_MONTH), libc/time/strftime.c (dname_len, dname,
10528         mname_len, mname): Marked static arrays _CONST.
10529
10530         * libm/math/gamma.h: made local variables non-static.
10531
10532         * libm/math/acos.h, libm/math/bessel.c, libm/math/erf.c,
10533         libm/math/exp.c, libm/math/gamma.h: marked static arrays as
10534         _CONST.
10535
10536         * libm/math/constants.c: removed file, because the constants it
10537         defined were never referenced.
10538         libm/math/Makefile.in: removed references to constants.c.
10539         libm/math/mathimpl.h: removed declarations of constants.
10540
10541 Wed Aug 26 21:09:06 1992  Ian Lance Taylor  (ian@cygnus.com)
10542
10543         * libc/include/machine/varargs.h: only call __builtin_saveregs if
10544         it is sensibly defined in libgcc2.  Checks preprocessor defines,
10545         which is not a good solution.
10546
10547         * libm/sqrt.c: sqrt(Infinity) should not be a domain error.
10548
10549         * libm/frexp.c: handle denormalized numbers as arguments.
10550
10551         * libm/math/Makefile.in: added some dependencies for .c files
10552         which include local .h files.
10553
10554 Mon Aug 24 12:57:58 1992  Ian Lance Taylor  (ian@cygnus.com)
10555
10556         * libc/configure.in: set target_alias for OSE*.  Replace
10557         target_makefile_frag if it is blank.
10558
10559         * libc/Makefile.in: make sure everything is passed to subsidiary
10560         makes; create all directories when installing.
10561
10562         * libm/ieeefp/Makefile.in, libm/math/Makefile.in: use
10563         CROSS_ARUPDATE instead of AR.
10564
10565         * libm/configure.in: set target_alias for OSE*.  Replace
10566         target_makefile_frag if it is blank.
10567
10568         * libm/Makefile.in: make sure everything is passed to subsidiary
10569         makes; create all directories when installing.
10570
10571 Thu Aug 20 15:11:51 1992  Mark Eichin  (eichin@cygnus.com)
10572
10573         * add following change from libc copy.
10574
10575 Wed Aug 19 18:54:49 1992  Roland H. Pesch  (pesch@fowanton.cygnus.com)
10576
10577         * libc/libc.texinfo: make copyright disclaimers appear on back of
10578         title page; make format of same slightly less ugly; avoid using
10579         underbars in section headings (avoids nasty texinfo bug in table
10580         of contents).
10581
10582         * libc/ctype/tolower.c, libc/ctype/toupper.c: (doc changes in
10583           comments only) avoid using underbars in section headings
10584
10585         * libc/ieeefp/ieeefp.tex: include doc from fpsticky, infinity,
10586           isnan ieeefp/fpmask.c, ieeefp/fpround.c, ieeefp/fpsticky.c (doc
10587           changes in comments only): shorten headings ieeefp/infinity.c,
10588           ieeefp/isnan.c: (doc, comments only) more informative headings
10589
10590         * libc/math/bessel.c: (doc, comments only) shorten heading
10591
10592         * libc/stdlib/efgcvt.c, libc/stdlib/mbtowc.c, libc/stdlib/wctomb.c
10593         (doc, comments only) shorten headings
10594
10595         * libc/time/localtime.c (doc, comments only): shorten headings
10596
10597         * libm/ieeefp/ieeefp.tex: include doc from fpsticky, infinity,
10598           isnan
10599           libm/ieeefp/fpmask.c, libm/ieeefp/fpround.c,
10600           libm/ieeefp/fpsticky.c (doc changes in comments only): shorten
10601           headings
10602           libm/ieeefp/infinity.c, libm/ieeefp/isnan.c: (doc, comments
10603           only) more informative headings
10604         * libm/math/bessel.c: (doc, comments only) shorten heading
10605
10606 Wed Aug 19 07:06:37 1992  Mark Eichin  (eichin at tweedledumber.cygnus.com)
10607
10608         * .../Makefile.in: use CROSS_ARUPDATE consistently.
10609         * config/*.mt: define CROSS_AR as well as CROSS_ARUPDATE
10610         * config/*.mt: define CROSS_CPP based on CROSS_CC, not /lib/cpp.
10611         * .../Makefile.in: get rid of .c.o rule - if TOP is correctly
10612         defined, the one from the .mt file will be correct.
10613         * libc/include/machine, libc/include/sys: created, and populated
10614         with common files from machine/*/machine. ifdefs were used for
10615         most, typically by handling exceptions first and then filling in
10616         defaults. Files with D.J. Delorie copyright #included rather than
10617         copied. Most files in include/sys really were the same in the
10618         original.
10619         * libc/include/...: cleaned up use of _EXFUN.
10620         * libc/stdlib/mprec.c: mprec.h doesn't get installed, so include
10621         it with double quotes, not angles.
10622
10623 Mon Aug 10 11:43:20 1992  Ian Lance Taylor  (ian@dumbest.cygnus.com)
10624
10625         * libc/Makefile.in: always create installation directories.
10626
10627 Sun Aug  9 22:45:48 1992  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
10628
10629         * libc/configure.in: handle host properly (using canonical
10630         triples), better error message for the case of target not found
10631
10632 Thu May 28 01:56:37 1992  Michael Tiemann  (tiemann@rtl.cygnus.com)
10633
10634         * libc/Makefile.in (insincdir): Ensure this directory exists
10635         before attempting installation.
10636
10637 Fri May  1 18:16:42 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
10638
10639         * libc/stdlib/assert.c: now calls abort like it should
10640         * libc/sys/a29khif: many many patches for 29khif work
10641         * libc/machine/i386: gnulib2 expanded there.
10642
10643 Tue Apr 28 19:08:37 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
10644
10645         Added accurate fp conversion routines to stdlib, moved dcvt from
10646         stdio to stdlib and called it ecvtbuf:
10647         * libc/stdlib/mprec.c, mprec.h: new files for multiprec arithmetic
10648         * libc/stdlib/Makefile.in, efgcvt.c, strtod.c: modified to use new
10649         routines
10650         * libc/libc.texinfo: Modifed to include the copyright info from
10651         the mprec files
10652         * libc/stdlib/efgcvt.c: now xref to ecvtbuf in stdlib.
10653         * libc/test/ : many vector which tested for the implementation
10654         defined returns of strange conversion requests have been updated
10655         to relflect the new implementation
10656
10657 Mon Apr 27 13:41:33 1992  Roland H. Pesch  (pesch@fowanton.cygnus.com)
10658
10659         * libc/libc.texinfo: new chapter on variable arg lists
10660         (stdarg.h/varargs.h)
10661         * libc/libc.texinfo: new title
10662         * libc/time/gmtime.c, libc/time/localtime./c, libc/time/mktime.c:
10663         (doc only) shorter headings for better formatting.
10664
10665 Fri Apr 24 11:26:48 1992  Roland H. Pesch  (pesch@fowanton.cygnus.com)
10666
10667         * libc/libc.texinfo: three more info menu entries
10668         * libc/locale/locale.tex: new chapter
10669         * libc/locale/locale.c: new doc for setlocale, localeconv
10670         * libc/locale/Makefile.in: use new locale doc
10671         * libc/signal/signal.tex: new chapter
10672         * libc/signal/raise.c, libc/signal/signal.c: new doc
10673         * libc/signal/Makefile.in: use new doc
10674         * libc/time/time.tex: new chapter
10675         * libc/time/asctime.c libc/time/clock.c libc/time/ctime.c
10676         libc/time/difftime.c libc/time/gmtime.c libc/time/localtime.c
10677         libc/time/mktime.c libc/time/strftime.c libc/time/time.c: new doc
10678         * libc/time/Makefile.in: use new doc
10679
10680 Tue Apr 21 14:48:50 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
10681
10682         * libm/math/log1p.c: split to use the new function way of float
10683         function definition. math/log1p.h deleted
10684         * libm/math/scalb.c: obsolete and deleted
10685         * libm/math/scalbn.c: created from part log1p.c
10686         * libm/math/Makefile.in: know about log1p and scalbn
10687
10688 Tue Apr 21 12:32:21 1992  Roland H. Pesch  (pesch@fowanton.cygnus.com)
10689
10690         * libc/ctype/isupper.c: revise doc;
10691           libc/ctype/ctype.tex: use doc from isupper.c
10692
10693         * libc/string/bzero.c: new doc
10694
10695 Mon Apr 20 14:19:42 1992  Roland H. Pesch  (pesch@fowanton.cygnus.com)
10696
10697         * libc/stdlib/system.c, libc/stdlib/exit.c, libc/stdlib/abort.c:
10698         new doc
10699         * libc/stdlib/Makefile.in: extract new doc
10700         * libc/stdlib/stdlib.tex: use new doc
10701
10702         * libc/string/strerror.c: expanded doc.
10703
10704         * libc/stdio/Makefile.in: extract doc from more files
10705         * libc/stdio/fopen.c, libc/stdio/perror.c, libc/stdio/remove.c,
10706         libc/stdio/rename.c, libc/stdio/rewind.c, libc/stdio/setbuf.c,
10707         libc/stdio/setvbuf.c, libc/stdio/sprintf.c, libc/stdio/tmpfile.c,
10708         libc/stdio/tmpnam.c, libc/stdio/vfprintf.c, libc/stdio/vprintf.c,
10709         libc/stdio/vsprintf.c: new doc
10710         * libc/stdio/stdio.tex: use new doc
10711
10712 Mon Apr 20 09:38:17 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
10713
10714         * libc/config/ebmon29k: added CROSS_CPP rule and other fixes
10715         * libc/include/ieeefp.h: fixed ansi conflict with isnanf, isinff,
10716         finitef functions.
10717         * libc/sys/a29khif/sys/*.h: ansidecl.h was renamed to _ansi.h some
10718         time ago.
10719
10720         * libc/stdio/stdio.h: added P_tmpdir for /tmp (SVID thing)
10721         * libc/stdio/setbuf.c: added ansi style definition.
10722         * libc/stdio/setvbuf.c: added ansi definition, now mallocs own
10723         buffer if none provided.
10724         * libc/stdio/tmpfile.c: lint
10725         * libc/stdio/tmpnam.c (worker): created. (tmpnam): mallocs buffer
10726         rather than using static, also make sure file isn't already
10727         present.  Uses P_tmpdir. (tempnam): rewritten to use new
10728         subroutine, and uses P_tmpdir.
10729         * libc/stdio/siprintf.c: created
10730
10731 Mon Apr 13 09:12:58 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
10732
10733         Release 1.03 for NEC, major mods. Main differences from release
10734         1.02::
10735
10736         More tests in test/:
10737         * jn_vec.c, jnf_vec.c, yn_vec.c, ynf_vec.c, log2_vec.c,
10738         log2f_vec.c, atan2_vec.c, atan2f_vec.c: new test vectors.
10739         * test_ieee.c: tests for ieee flags & masks - get/set rounding,
10740         get/set mask, get/set sticky and get/set roundtoi.  Tests
10741         that setting the bits changes the way arithmetic is done.
10742         * string.c: added test to make sure memcmp does it with unsigned
10743         chars.
10744         * test.c: cleaned up and removed lint.
10745         * sprint_vec, sprint_ivec.c, convert.c, conv_vec.c, iconf_vec.c,
10746         dvec.c: tests for string to value conversions,  sprintf, scanf,
10747         atof, atoff, strtod, strtodf, atoi, atol, strtol, ecvtbuf, ecvt,
10748         ecvtf,  fcvtbuf, fcvt, fcvtf, gcvt, gcvtf.  Some attention paid to
10749         rounding in sprintf too.
10750         * test_is.c: tests for  isalnum, isalpha, isascii, iscntrl,
10751         isdigit, isgraph, islower, isprint, ispunct, isspace, isupper,
10752         isxdigit, toascii, tolower, toupper, _tolower, _toupper in macro
10753         and function form.
10754         * math2.c: test for frexp, frexpf, ldexp, ldexpf, modf modff, pow,
10755         powf
10756
10757         In the library:
10758         * libc/stdlib/div.c, libc/stdlib/ldiv.c, libc/stdlib/strtod.c,
10759         libc/stdlib/strtol.c, libc/stdlib/stroul.c, libc/stdlib/abs.c,
10760         libc/stdlib/bsearch.c, libc/stdlib/calloc.c, libc/stdlib/getenv.c,
10761         libc/stdlib/labs.c, libc/stdlib/malloc.c: new documentation
10762         * libc/stdlib/efgcvt.c: rewritten to use new _dcvt routines rather
10763         than sprintf.
10764         * libc/stdio/dcvt.c: rewritten to make more useful elsewhere. 
10765         * Method of producting float versions of double functions has
10766         changed, functions will be modified gradually. So far:
10767         libm/math/exp.c, libm/math/pow.c, libm/math/modf.c,
10768         libm/math/sincos.c, libm/math/fmod.c, libm/math/tan.c have been
10769         altered
10770         * libc/string/memcmp.c: now uses unsigned chars
10771         * libc/string/bcmp.c, libc/string/strcpy.c,
10772         libc/stsring/strxfrm.c: fixed doc
10773         * libc/sys/sysvnecv70.tex: fix example of sbrk code
10774 \f
10775 Local Variables:
10776 version-control: never
10777 End: