1 2002-06-21 Nick Clifton <nickc@cambridge.redhat.com>
3 * libc/sys/arm/swi.h (ADP_Stopped_RunTimeError): Set correct value.
5 2002-06-20 Thomas Fitzsimmons <fitzsim@redhat.com>
7 * Makefile.am (LIB_OBJECTLISTS): Add
8 libc/search/objectlist.awk.in.
9 * libc/Makefile.am (SUBDIRS): Add search.
10 (SUBLIBS): Add search/libsearch.la.
11 * libc/configure.in (AC_OUTPUT): Add search/Makefile.
12 * libc/search: New directory.
13 * libc/search/Makefile.am: New file.
14 * libc/search/extern.h: New file.
15 * libc/search/hash.c: New file.
16 * libc/search/hash.h: New file.
17 * libc/search/hash_bigkey.c: New file.
18 * libc/search/hash_buf.c: New file.
19 * libc/search/hash_func.c: New file.
20 * libc/search/hash_log2.c: New file.
21 * libc/search/hash_page.c: New file.
22 * libc/search/hcreate.3: New file.
23 * libc/search/hcreate.c: New file.
24 * libc/search/hcreate.c~: New file.
25 * libc/search/hcreate_r.c: New file.
26 * libc/search/ndbm.c: New file.
27 * libc/search/page.h: New file.
28 * libc/search/tdelete.c: New file.
29 * libc/search/tdestroy.c: New file.
30 * libc/search/tfind.c: New file.
31 * libc/search/tsearch.3: New file.
32 * libc/search/tsearch.c: New file.
33 * libc/search/twalk.c: New file.
34 * libc/include/db.h: New file.
35 * libc/include/ndbm.h: New file.
36 * libc/include/search.h: New file.
37 * libc/include/sys/queue.h: New file.
38 * libc/include/sys/cdefs.h: New file.
39 * libc/include/sys/param.h
40 [__IEEE_LITTLE_ENDIAN,__IEEE_BIG_ENDIAN]: Set BYTE_ORDER to
41 LITTLE_ENDIAN or BIG_ENDIAN.
42 * libc/include/sys/errno.h (EFTYPE): New macro.
43 * libc/search/bsearch.c: Move from libc/stdlib.
44 * libc/search/qsort.c: Likewise.
45 * libc/stdlib/Makefile.am (LIB_SOURCES): Remove bsearch.c and
47 (CHEWOUT_FILES): Remove bsearch.def and qsort.def.
48 * libc/stdlib/stdlib.tex: Remove references to bsearch and qsort.
50 2002-06-19 Jeff Johnston <jjohnstn@redhat.com>
52 * libc/sys/linux/Makefile.am: Add support for message queue routines,
53 ipc routines, and ftok.
54 * libc/sys/linux/Makefile.in: Regenerated.
55 * libc/sys/linux/ftok.c: New file.
56 * libc/sys/linux/ipc.c: Ditto.
57 * libc/sys/linux/mq_close.c: Ditto.
58 * libc/sys/linux/mq_getattr.c: Ditto.
59 * libc/sys/linux/mq_notify.c: Ditto.
60 * libc/sys/linux/mq_open.c: Ditto.
61 * libc/sys/linux/mq_receive.c: Ditto.
62 * libc/sys/linux/mq_send.c: Ditto.
63 * libc/sys/linux/mq_setattr.c: Ditto.
64 * libc/sys/linux/mq_unlink.c: Ditto.
65 * libc/sys/linux/mqlocal.h: Ditto.
66 * libc/sys/linux/include/mqueue.h: Ditto.
67 * libc/sys/linux/sys/types.h: Define __gid_t_defined and
70 2002-06-19 J"orn Rennecke <joern.rennecke@superh.com>
72 * libm/common/sf_lround.c (round): Change name to: (lround).
73 * libm/common/sf_remquo.c (remquo): Pass all arguemnts to
76 2002-06-18 Thomas Fitzsimmons <fitzsim@redhat.com>
78 * testsuite/lib/passfail.exp (newlib_pass_fail_all): New
80 (newlib_pass_fail): Change to compile and run only one file.
81 * testsuite/newlib.locale/locale.exp: Use new
82 newlib_pass_fail_all procedure.
83 * testsuite/newlib.string/string.exp: Likewise.
85 2002-06-18 Dave Brolley <brolley@redhat.com>
87 From Catherine Moore, Michael Meissner, Richard Sandiford:
88 * libc/include/machine/setjmp.h (_JBLEN): Define for __frv__.
90 * libc/include/sys/config.h (__IEEE_BIG_ENDIAN): Ditto.
91 (__ATTRIBUTE_IMPURE_PTR__): Ditto.
92 * libc/include/machine/ieeefp.h (__IEEE_BIG_ENDIAN): Ditto.
93 * configure.host: Support frv-*-*.
94 * libc/machine/frv/Makefile.am: New file.
95 * libc/machine/frv/configure.in: New file.
96 * libc/machine/frv/setjmp.S: New file.
98 2002-06-18 Thomas Fitzsimmons <fitzsim@redhat.com>
100 * libc/include/ctype.h: Remove isblank macro.
102 * libc/ctype/Makefile.am (LIB_SOURCES): Add isblank.c.
103 * libc/ctype/isblank.c: New file.
104 * libc/include/ctype.h [!__STRICT_ANSI__]: Add isblank
105 declaration. Add isblank macro.
107 2002-06-18 Jeff Johnston <jjohnstn@redhat.com>
109 * testsuite/newlib.stdlib/atexit.c: New file.
110 * testsuite/newlib.stdlib/atexit.exp: Ditto.
111 * testsuite/newlib.string/tstring.c: Change default start size
112 to something more reasonable for embedded platforms.
114 2002-06-14 Thomas Fitzsimmons <fitzsim@redhat.com>
116 * libc/sys/linux/sys/errno.h (EFTYPE): Add macro.
118 * libc/argz: New directory.
119 * libc/argz/*: New files.
120 * libc/argz/argz_add.c: New file.
121 * libc/argz/argz_add_sep.c: New file.
122 * libc/argz/argz_append.c: New file.
123 * libc/argz/argz_count.c: New file.
124 * libc/argz/argz_create.c: New file.
125 * libc/argz/argz_create_sep.c: New file.
126 * libc/argz/argz_delete.c: New file.
127 * libc/argz/argz_extract.c: New file.
128 * libc/argz/argz_insert.c: New file.
129 * libc/argz/argz_next.c: New file.
130 * libc/argz/argz_replace.c: New file.
131 * libc/argz/argz_stringify.c: New file.
132 * libc/argz/buf_findstr.c: New file.
133 * libc/argz/envz_add.c: New file.
134 * libc/argz/envz_entry.c: New file.
135 * libc/argz/envz_get.c: New file.
136 * libc/argz/envz_merge.c: New file.
137 * libc/argz/envz_remove.c: New file.
138 * libc/argz/envz_strip.c: New file.
139 * libc/include/argz.h: New file.
140 * libc/include/envz.h: New file.
141 * Makefile.am (LIBC_OBJECTLISTS): Add
142 libc/argz/objectlist.awk.in.
143 * libc/Makefile.am (SUBDIRS): Add argz.
144 (SUBLIBS): Add argz/libargz.la.
145 * libc/configure.in (AC_OUTPUT): Add argz/Makefile.
146 * libc/include/errno.h: Add error_t typedef.
148 2002-06-13 Jeff Johnston <jjohnstn@redhat.com>
150 * libc/include/stdlib.h: Add _Exit prototype.
151 * libc/stdlib/Makefile.am: Add _Exit.c support.
152 * libc/stdlib/Makefile.in: Ditto.
153 * libc/stdlib/_Exit.c: New file.
155 2002-06-13 Stephen L. Moshier <steve@moshier.net>
157 * libm/math/e_pow.c (__ieee754_pow): Fix case whereby
158 x is close to -1.0 and y is very large to use ax (absolute value)
160 * libm/math/ef_pow.c (__ieee754_powf): Ditto.
162 Thu Jun 13 19:23:40 2002 J"orn Rennecke <joern.rennecke@superh.com>
164 * libc/machine/sh/strcpy.S (strcpy, __SHMEDIA__ code):
165 Fix clobbering bytes before destination if src and dst have same
166 non-zero misalignment.
168 * libc/machine/sh/memset.S (memset, __SHMEDIA__ code):
169 Fixed bug in writing end of set region.
171 2002-06-10 Christopher Faylor <cgf@redhat.com>
173 * libc/include/process.h: Remove cygwin-only sexec* declarations. Fix
176 2002-06-06 Thomas Fitzsimmons <fitzsim@redhat.com>
178 * libm/common/s_fdim.c: New file.
179 * libm/common/s_fma.c: Likewise.
180 * libm/common/s_fmax.c: Likewise.
181 * libm/common/s_fmin.c: Likewise.
182 * libm/common/s_fpclassify.c: Likewise.
183 * libm/common/s_lrint.c: Likewise.
184 * libm/common/s_lround.c: Likewise.
185 * libm/common/s_nearbyint.c: Likewise.
186 * libm/common/s_remquo.c: Likewise.
187 * libm/common/s_round.c: Likewise.
188 * libm/common/s_scalbln.c: Likewise.
189 * libm/common/s_signbit.c: Likewise.
190 * libm/common/s_trunc.c: Likewise.
191 * libm/common/sf_fdim.c: Likewise.
192 * libm/common/sf_fma.c: Likewise.
193 * libm/common/sf_fmax.c: Likewise.
194 * libm/common/sf_fmin.c: Likewise.
195 * libm/common/sf_lrint.c: Likewise.
196 * libm/common/sf_lround.c: Likewise.
197 * libm/common/sf_nearbyint.c: Likewise.
198 * libm/common/sf_remquo.c: Likewise.
199 * libm/common/sf_round.c: Likewise.
200 * libm/common/sf_scalbln.c: Likewise.
201 * libm/common/sf_trunc.c: Likewise.
202 * libm/math/w_exp2.c: Likewise.
203 * libm/math/w_tgamma.c: Likewise.
204 * libm/math/wf_exp2.c: Likewise.
205 * libm/math/wf_tgamma.c: Likewise.
206 * libm/mathfp/s_exp2.c: Likewise.
207 * libm/mathfp/s_tgamma.c: Likewise.
208 * libm/mathfp/sf_exp2.c: Likewise.
209 * libm/mathfp/sf_tgamma.c: Likewise.
210 * libm/math/er_gamma.c: Fix return value.
211 * libm/math/erf_gamma.c: Likewise.
212 * libm/mathfp/er_gamma.c: Likewise.
213 * libm/mathfp/erf_gamma.c: Likewise.
214 * libc/include/math.h (!__STRICT_ANSI__): Include ISOC99-specific
215 declarations and macros.
216 Regenerated all Makefile.in, aclocal.m4 and configure files to
217 use new libtool macros in top-level libtool.m4
219 2002-06-05 Jeff Johnston <jjohnstn@redhat.com>
221 * libc/include/string.h[__linux__]: Add strsignal prototype.
222 * libc/include/sys/lock.h: New file with default locking support.
223 * libc/include/sys/reent.h: Add signal buffer support for strsignal
225 * libc/posix/Makefile.am: Add support for readdir_r.c.
226 * libc/posix/Makefile.in: Regenerated.
227 * libc/posix/closedir.c: Add locking support and hash table cleanup.
228 * libc/posix/opendir.c: Add lock support.
229 * libc/posix/readdir.c: Ditto.
230 * libc/posix/rewinddir.c: Ditto.
231 * libc/posix/scandir.c: Ditto.
232 * libc/posix/seekdir.c: Ditto.
233 * libc/posix/telldir.c: Ditto plus add _cleanupdir routine to
234 clean up leftover hash table entries.
235 * libc/posix/readdir_r.c: New file.
236 * libc/sys/linux/Makefile.am: Add psignal.c and strsignal.c support.
237 * libc/sys/linux/Makefile.in: Regenerated.
238 * libc/sys/linux/sys/dirent.h: Add dd_lock to DIR structure.
239 * libc/sys/linux/sys/signal.h: Add psignal prototype.
240 * libc/sys/linux/psignal.c: New file.
241 * libc/sys/linux/strsignal.c: Ditto.
243 2002-06-03 Corinna Vinschen <corinna@vinschen.de>
245 * libc/include/sys/types.h: Don't define dev_t when compiling for
248 2002-05-31 Jeff Johnston <jjohnstn@redhat.com>
250 * libc/sys/linux/Makefile.am: Add sig.c and sigaction.c. Also
251 make siglist.inc dependent on sig.c instead of signal.c.
252 * libc/sys/linux/Makefile.in: Regenerated.
253 * libc/sys/linux/sig.c: Rename from signal.c and change code to
254 use NSIG instead of _NSIG.
255 * libc/sys/linux/sigaction.c: New file.
256 * libc/sys/linux/signal.c: Changed to be linux signal() function
257 so as to override regular newlib default signal.c.
258 * libc/sys/linux/machine/i386/Makefile.am: Remove sigset.c.
259 * libc/sys/linux/machine/i386/Makefile.in: Regenerated.
260 * libc/sys/linux/machine/i386/sigset.c: Moved to linux main directory.
261 * libc/sys/linux/sigset.c: Moved from machine/i386 directory.
262 * libc/sys/linux/sys/signal.h: Redefine NSIG to _NSIG and override
263 default linux sigset_t typedef by defining it equal to __sigset_t.
264 * libc/unix/sigset.c: Add check so code isn't compiled on systems
265 with a sigset_t that isn't implemented with a single int.
267 2002-05-30 Jeff Johnston <jjohnstn@redhat.com>
269 * libc/sys/linux/Makefile.am: Add support for new files.
270 * libc/sys/linux/Makefile.in: Regenerated.
271 * libc/sys/linux/ids.c: Add __getuid weak alias for getuid.
272 * libc/sys/linux/signal.c: Change to use real-time syscalls for
273 sigsuspend, sigprocmask, and sigpending. Also remove sigaction as
274 it is in a separate file now.
275 * libc/sys/linux/machine/i386/Makefile.am
276 * libc/sys/linux/machine/i386/Makefile.in
277 * libc/sys/linux/sys/signal.h: Add include of <bits/signum.h>.
278 * libc/sys/linux/sigaction.c: New file.
279 * libc/sys/linux/sigqueue.c: Ditto.
280 * libc/sys/linux/sigwait.c: Ditto.
281 * libc/sys/linux/machine/i386/sigaction.c: Ditto.
282 * libc/sys/linux/kernel_sigaction.h: Ditto.
284 2002-05-28 Jeff Johnston <jjohnstn@redhat.com>
286 * libc/sys/linux/Makefile.am: Add support for cfspeed.c and
288 * libc/sys/linux/Makefile.in: Regenerated.
289 * libc/sys/linux/termios.c: Add tcflow(), tcflush(),
290 tcgetpgrp(), and tcsetpgrp() functions.
291 * libc/sys/linux/sys/termios.h: Add include of machine/termios.h
292 to get __MAX_BAUD rate.
293 * libc/sys/linux/machine/i386/include/termios.h: New file.
294 * libc/include/machine/termios.h: Ditto.
295 * libc/sys/linux/cfspeed.c: Ditto.
296 * libc/sys/linux/tcsendbrk.c: Ditto.
298 2002-05-24 Jeff Johnston <jjohnstn@redhat.com>
300 * libc/include/string.h: Add strnlen and strerror_r prototypes.
301 * libc/string/Makefile.am: Add strnlen.c and strerror_r.c support.
302 * libc/string/Makefile.in: Regenerated.
303 * libc/string/strerror_r.c: New file.
304 * libc/string/strnlen.c: New file.
305 * libc/sys/linux/Makefile.am: Add rename.c.
306 * libc/sys/linux/Makefile.in: Regenerated.
307 * libc/sys/linux/rename.c: New file to override default rename.
309 2002-05-24 Thomas Fitzsimmons <fitzsim@redhat.com>
311 * libc/sys/linux/sys/cdefs.h: Add __weak_reference macros.
312 * libc/sys/linux/sys/time.h: Add conversion macros.
313 * libc/sys/linux/sys/types.h: Add FD_ macros. Include <bits/types.h>.
314 * libc/sys/linux/ids.c: Add setresuid and syslog syscalls.
315 * libc/sys/linux/gethostname.c: New file.
316 * libc/sys/linux/seteuid.c: New file.
317 * libc/sys/linux/sysctl.c: New file.
319 2002-05-23 Jeff Johnston <jjohnstn@redhat.com>
321 * libc/string/Makefile.am: Add support for strsep.c.
322 * libc/string/Makefile.in: Regenerated.
323 * libc/string/strsep.c: New file.
324 * libc/string/strtok.c: Change to call __strtok_r service routine.
325 * libc/string/strtok_r.c: Add __strtok_r routine which takes
326 additional flag parameter regarding whether to skip leading delimeters.
327 Change strtok_r to call __strtok_r.
329 2002-05-23 Gareth Pearce <tilps@hotmail.com>
331 * libc/stdio/Makefile.am: Modify to add setbuffer.c and setlinebuf.c.
332 * libc/stdio/Makefile.in: Regenerated.
333 * libc/stdio/setbuffer.c: New file.
334 * libc/stdio/setlinebuf.c: New file.
336 2002-05-23 Jeff Johnston <jjohnstn@redhat.com>
338 * libc/sys/linux/Makefile.am: Add resource.c.
339 * libc/sys/linux/Makefile.in: Regenerated.
340 * libc/sys/linux/resource.c: New file.
341 * libc/sys/linux/time.c: Add settimeofday, getitimer, and setitimer.
342 * libc/sys/linux/machine/i386/Makefile.am: Remove syscalls.c.
343 * libc/sys/linux/machine/i386/Makefile.in: Regenerated.
344 * libc/sys/linux/machine/i386/syscalls.c: Removed as functions
345 are now found in libc/sys/linux/resource.c.
347 2002-05-23 Jeff Johnston <jjohnstn@redhat.com>
349 * libc/include/string.h (bcmp, bcopy, bzero): Change prototypes
350 to use void * pointers and comply with Single Unix spec.
351 * libc/string/bcmp.c: Change to use void * instead of char *.
352 * libc/string/bcopy.c: Ditto.
353 * libc/string/bzero.c: Ditto.
355 2002-05-22 Jeff Johnston <jjohnstn@redhat.com>
357 * libc/sys/linux/shm_open.c: New file.
358 * libc/sys/linux/shm_unlink.c: Ditto.
359 * libc/sys/linux/Makefile.am: Add support for shm_open.c and
361 * libc/sys/linux/Makefile.in: Regenerated.
362 * libc/sys/linux/sys/types.h: Add some additional checks to see
363 if clock_t or time_t is already defined.
365 2002-05-22 Jeff Johnston <jjohnstn@redhat.com>
367 * Makefile.am: Don't pass $toollibdir down directly in
368 AM_MAKEFLAGS as it causes all multilibs to use the same toollibdir.
369 Pass it under the name: top_toollibdir.
370 * Makefile.in: Regenerated.
372 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
374 * libc/include/sys/types.h: Revert previous patch.
376 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
378 * libc/include/sys/types.h: Include cygwin/types.h always under
379 Cygwin, not only if _POSIX_THREADS is defined.
381 2002-05-21 Dhananjay Deshpande <dhananjayd@kpit.com>
383 * configure.host: Specify sys_dir=h8300hms for h8300-*-coff* target.
385 2002-05-17 Jeff Johnston <jjohnstn@redhat.com>
387 * Makefile.am: Copy and install headers from sys/machine/include
388 directory. Also pass $toollibdir to lower-level directories.
389 * Makefile.in: Regenerated.
390 * libc/include/stdio.h[!_REENT_ONLY]: Change stdin, stdout, and
391 stderr to use _REENT macro instead of _impure_ptr directly.
392 * libc/include/sys/config.h[__i386__][__linux__]: Define
394 * libc/include/sys/reent.h[!_REENT_ONLY]: Change _REENT macro to be
395 call to __getreent() function if !__SINGLE_THREAD__ and
396 __DYNAMIC_REENT__ is set.
397 * libc/reent/Makefile.am: Add support for getreent.c.
398 * libc/reent/Makefile.in: Regenerated.
399 * libc/string/strerror.c: Add check if EOPNOTSUPP and ENOTSUP are same.
400 * libc/sys/linux/Makefile.am: Add support for new files.
401 * libc/sys/linux/configure.in: Add $EXTRA_DIRS variable.
402 * libc/sys/linux/Makefile.in: Regenerated.
403 * libc/sys/linux/configure: Ditto.
404 * libc/sys/linux/io.c: Add poll syscall. Also weak-alias
405 __close, __read, __write, __poll, __open, __lseek, __fcntl from
406 their __libc_ counterparts.
407 * libc/sys/linux/io64.c: Add __libc_ prefix to lseek64 and open64
408 and weak-alias to regular names.
409 * libc/sys/linux/pread64.c: Rename to __libc_pread64 and weak-alias
410 to pread64 and __pread64.
411 * libc/sys/linux/process.c: Weak_alias __libc_getpid to __getpid.
412 * libc/sys/linux/pwrite64.c: Rename to __libc_pwrite64 and
413 weak-alias to pwrite64.
414 * libc/sys/linux/sched.c: Weak-alias __libc_sched_getparam,
415 __libc_sched_getscheduler, __libc_sched_get_priority_max,
416 __libc_sched_get_priority_min, and __libc_sched_setschedule to
417 name with __ instead of __libc_.
418 * libc/sys/linux/siglongjmp.c: Include <machine/weakalias.h>.
419 Rename siglongjmp to __libc_siglongjmp and weak-alias to siglongjmp.
420 Call __libc_longjmp instead of longjmp, from __libc_siglongjmp.
421 * libc/sys/linux/signal.c: Rename raise to __libc_raise and weak-alias
423 * libc/sys/linux/socket.c: Weak-alias __libc_connect to __connect and
424 __libc_send to __send.
425 * libc/sys/linux/time.c: Weak-alias __libc_gettimeofday to
427 * libc/sys/linux/wait.c: Rename wait to __libc_wait and weak-alias
428 it to wait. Rename wait3 to __libc_wait3 and weak-alias it to wait3.
429 * libc/sys/linux/include/setjmp.h: Use __jmp_buf in sigjmp_buf
430 type and typedef __jmp_buf to jmp_buf.
431 * libc/sys/linux/machine/i386/Makefile.am: Add syscalls.c and
433 * libc/sys/linux/machine/i386/Makefile.in: Regenerated.
434 * libc/sys/linux/machine/i386/crt0.c: Add support to clear .bss
436 * libc/sys/linux/machine/i386/socketcall.h: Change to use __libc_
437 prefix for function macros and then use weak_alias() to regular names.
438 * libc/sys/linux/machine/i386/syscall.h: Ditto.
439 * libc/sys/linux/sys/errno.h: Define EOPNOTSUP to be ENOTSUP.
440 * libc/sys/linux/sys/stdio.h: Define _flockfile and _funlockfile
441 to be flockfile() and funlockfile() respectively.
442 * libc/sys/linux/sys/types.h
443 * libc/reent/getreent.c: New file.
444 * libc/sys/linux/flockfile.c: Ditto.
445 * libc/sys/linux/funlockfile.c: Ditto.
446 * libc/sys/linux/getreent.c: Ditto.
447 * libc/sys/linux/pread.c: Ditto.
448 * libc/sys/linux/pwrite.c: Ditto.
449 * libc/sys/linux/raise.c: Ditto.
450 * libc/sys/linux/system.c: Ditto.
451 * libc/sys/linux/tcdrain.c: Ditto.
452 * libc/sys/linux/machine/i386/i386mach.h: Ditto.
453 * libc/sys/linux/machine/i386/setjmp.S: Ditto.
454 * libc/sys/linux/machine/i386/syscalls.c: Ditto.
455 * libc/sys/linux/machine/i386/weakalias.h: Ditto.
456 * libc/sys/linux/machine/i386/include/setjmp.h: Ditto.
458 2002-05-14 Dhananjay Deshpande <dhananjayd@kpit.com>
460 * newlib/libc/sys/h8300hms/Makeile.am (lib_a_SOURCES): Add read.c.
461 * newlib/libc/sys/h8300hms/read.c: New file. Magic trap 0xC8 for sim.
462 * newlib/libc/sys/h8300hms/syscalls.c: Move _read() to read.c.
463 * newlib/libs/sys/h8300hms/sys/syscall.h: New file.
465 Thu May 16 17:24:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
467 * libc/machine/sh/strcpy.S (strcpy): Replace LITTLE_ENDIAN with
468 __LITTLE_ENDIAN__. make sure r0 has right value at first loop
471 2002-05-15 Thomas Fitzsimmons <fitzsim@redhat.com>
473 * testsuite/lib/newlib.exp: Add newlib_include_flags to compile
474 options when testing natively on i[3456]86-*-linux.
476 * testsuite/lib/checkoutput.exp (newlib_check_output): Output
477 only one pass or fail per test file. Trim \r's from output
478 values received from test programs. Remove support for named
480 * testsuite/newlib.locale/UTF-8.exp: Update to support new
481 newlib_check_output behaviour.
482 * testsuite/newlib.locale/UTF-8.c: Likewise.
484 2002-05-15 Jeff Johnston <jjohnstn@redhat.com>
486 * libc/include/stdlib.h: Add on_exit prototype.
487 * libc/include/sys/reent.h (struct _atexit): Add argument array
488 and bits to track type of exit routine to support both on_exit
490 (_REENT_INIT_PTR): Add missing fields that won't be zeroed out
491 by default and change the setting of the atexit structure.
492 (_REENT_INIT)[!_REENT_SMALL]: Remove extraneous end brace.
493 * libc/stdlib/on_exit.c: New file.
494 * libc/stdlib/Makefile.am: Add support for on_exit.
495 * libc/stdlib/Makefile.in: Regenerated.
496 * libc/stdlib/atexit.c: Change to initialize types field.
497 * libc/stdlib/exit.c: Change to look at types field for each
498 exit routine and either call an atexit-style or an on_exit-style
501 2002-05-13 Jeff Johnston <jjohnstn@redhat.com>
503 * libc/machine/powerpc/vfprintf.c(__VFPRINTF_R)[__ALTIVEC__]: Don't
504 allow v specifier with n or L specifiers. For vector c format,
505 move tmp declaration to the top.
507 2002-05-13 Jeff Johnston <jjohnstn@redhat.com>
509 * libc/machine/powerpc/vfprintf.c(__VFPRINTF_R)[__ALTIVEC__]: Restore
510 the original format specifier when looping for vectors to compensate
511 for any changes made in vector %g format processing.
512 Also add syntax checking for various invalid scenarios
513 involving vector format extensions.
514 * libc/machine/powerpc/vfscanf.c(__VFSCANF_R)[__ALTIVEC__]: Fix
515 return code setting for vector formats. Also treat vector
516 separator mismatch as a match error instead of an input error.
517 Perform some syntax checking for vector formats.
519 2002-05-10 Mark Bradshaw <bradshaw@staff.crosswalk.com>
521 * libc/include/string.h (!__STRICT_ANSI__): Add strlcat and strlcpy.
522 * libc/string/Makefile.am: Add strlcat.c and strlcpy.c.
523 * libc/string/strlcat.c: New file.
524 * libc/string/strlcpy.c: New file.
526 2002-05-10 Jeff Johnston <jjohnstn@redhat.com>
528 * libc/string/strchr.c: Fix comment typo.
530 2002-05-08 Thomas Fitzsimmons <fitzsim@redhat.com>
532 * acinclude.m4: Add support for --enable-newlib-multithread.
533 * configure.host (newlib_cflags): Add -D__SINGLE_THREAD__ if
534 --enable-newlib-multithread=no.
536 * libc/stdio/getc_u.c: New file.
537 * libc/stdio/getchar_u.c: New file.
538 * libc/stdio/putc_u.c: New file.
539 * libc/stdio/putchar_u.c: New file.
540 * libc/include/stdio.h: Add declarations for getc_unlocked,
541 getchar_unlocked, putc_unlocked and putchar_unlocked.
542 * libc/stdio/Makefile.am (LIB_SOURCES): Add new files.
543 (CHEWOUT_FILES): Add new files' .def's.
544 * libc/stdio/putchar.c (_putchar_r): Replace __sputc with putc.
546 Wed May 8 17:47:35 2002 J"orn Rennecke <joern.rennecke@superh.com>
548 * libc/machine/sh/memset.S (memset, __SHMEDIA__ code):
549 Also handle as single quad word when destination ends at last
550 byte of first quad word. Fix byte selection in single quad code.
552 2002-05-07 Thomas Fitzsimmons <fitzsim@redhat.com>
554 * libc/include/sys/stdio.h: New file.
555 * libc/sys/linux/sys/stdio.h: New file.
556 * libc/include/stdio.h: Add declarations for flockfile,
557 ftrylockfile, and funlockfile. Include <sys/stdio.h>.
558 * libc/stdio/clearerr.c: Add file locking.
559 * libc/stdio/fclose.c: Likewise.
560 * libc/stdio/feof.c: Likewise.
561 * libc/stdio/ferror.c: Likewise.
562 * libc/stdio/fflush.c: Likewise.
563 * libc/stdio/fgetc.c: Likewise.
564 * libc/stdio/fgetpos.c: Likewise.
565 * libc/stdio/fgets.c: Likewise.
566 * libc/stdio/fileno.c: Likewise.
567 * libc/stdio/fputc.c: Likewise.
568 * libc/stdio/fputs.c: Likewise.
569 * libc/stdio/fread.c: Likewise.
570 * libc/stdio/freopen.c: Likewise.
571 * libc/stdio/fseek.c: Likewise.
572 * libc/stdio/ftell.c: Likewise.
573 * libc/stdio/fwrite.c: Likewise.
574 * libc/stdio/getc.c: Likewise.
575 * libc/stdio/putc.c: Likewise.
576 * libc/stdio/setvbuf.c: Likewise.
577 * libc/stdio/ungetc.c: Likewise.
578 * libc/stdio/vfprintf.c: Likewise.
580 2002-05-06 Jeff Johnston <jjohnstn@redhat.com>
582 * libc/machine/powerpc/vfprintf.c[__ALTIVEC__]: Add vector
583 support for 'p' format. Fix code to print bytes for vector
584 integer formats that do not specify 'h' or 'l'.
585 * libc/machine/powerpc/vfscanf.c[__ALTIVEC__]: Add vector support
586 for 'p' specifier. Fix code to scan 16 bytes for vector integer
587 formats that do not specify 'h' or 'l'.
589 * libc/include/stdlib.h (a64l, l64a, _l64a_r): Added prototypes.
591 2002-05-06 Nick Clifton <nickc@cambridge.redhat.com>
593 * libc/sys/arm/syscalls.c (_rename): Add parameter names.
594 (_sbrk): Add cast of return value.
596 2002-05-06 Jeff Johnston <jjohnstn@redhat.com>
598 * libc/include/sys/reent.h (_l64a_buf): New reentrant area.
599 (_REENT_L64A_BUF): New macro for accessing area.
600 * libc/stdlib/Makefile.am: Add a64l.c and l64a.c.
601 * libc/stdlib/Makefile.in: Regenerated.
602 * libc/stdlib/a64l.c: New file.
603 * libc/stdlib/l64a.c: New file.
605 2002-05-06 Jeff Johnston <jjohnstn@redhat.com>
607 * libc/unix/pread.c: Fix typo for _pread_r.
608 * libc/unix/pwrite.c: Fix type for _pwrite_r.
609 * libc/sys/linux/pread64.c: Fix typo for read syscall.
610 * libc/sys/linux/pwrite64.c: Fix typo for write syscall.
612 2002-05-03 Christopher Faylor <cgf@redhat.com>
614 * libc/include/sys/unistd.h: Define getdomainname under cygwin.
616 2002-05-03 Thomas Fitzsimmons <fitzsim@redhat.com>
618 * configure.in (CC_FOR_NEWLIB): Change -isystem's to -I's.
620 2002-05-01 Christopher Faylor <cgf@redhat.com>
622 * utmp.h: Define more UNIX constants.
624 2002-05-01 Thomas Fitzsimmons <fitzsim@redhat.com>
626 * Makefile.am: Add support for checking multilibs.
628 * libc/Makefile.am (SUBLIBS): Add LIBC_EXTRA_LIB.
629 (SUBDEFS): Add LIBC_EXTRA_DEF.
630 * libc/configure.in (LIBC_EXTRA_LIB): New variable.
631 (LIBC_EXTRA_DEF): Likewise.
632 (extra_dir): Likewise.
633 * libc/machine/xscale/machine: New directory.
634 * libc/machine/xscale/machine/profile.h: New file.
636 * Makefile.am (site.exp): Remove newlib_cflags. Add
638 * testsuite/newlib.locale/UTF-8.c: Change fprintf's to printf's.
639 * testsuite/lib/flags.exp: New file.
640 * testsuite/lib/newlib.exp: Load flags.exp.
641 (newlib_target_compile): Remove libgloss directory references.
642 (newlib_init): Remove newlib_cflags references.
644 2002-04-30 Thomas Fitzsimmons <fitzsim@redhat.com>
646 * testsuite/lib/newlib.exp (newlib_target_compile): Change
647 method of finding libgloss_target_dir.
649 * Makefile.am (site.exp): Change host_alias, host_triplet,
650 target_alias, target_triplet to refer to gcc's host and target
651 variables (newlib's build and host variables).
652 * testsuite/lib/newlib.exp (newlib_init): Change build
653 references to host references, host references to target
654 references to reflect Makefile.am changes.
655 (newlib_target_compile): Likewise.
656 (newlib_finish): Likewise.
658 2002-04-29 Jeff Johnston <jjohnstn@redhat.com>
660 * libc/sys/linux/io64.c (fstat64, lstat64): New syscalls added.
662 2002-04-29 Jonathan Larmour <jlarmour@redhat.com>
664 * libc/sys/arm/syscalls.c (_rename): New function. Just a stub.
665 (_system): New function. Ditto.
666 * libc/stdlib/system.c (_system_r): Call _system if HAVE_SYSTEM.
667 * configure.host: define HAVE_SYSTEM and HAVE_RENAME for xscale
670 2002-04-29 Jeff Johnston <jjohnstn@redhat.com>
672 * libc/include/sys/unistd.h (pread, pwrite): Added prototypes.
673 * libc/unix/Makefile.am: Add pread.c and pwrite.c.
674 * libc/sys/linux/Makefile.am: Add pread64.c and pwrite64.c.
675 * libc/sys/linux/Makefile.in: Regenerated.
676 * libc/unix/Makefile.in: Ditto.
677 * libc/sys/linux/pread64.c: New file.
678 * libc/sys/linux/pwrite64.c: Ditto.
679 * libc/unix/pread.c: Ditto.
680 * libc/unix/pwrite.c: Ditto.
682 2002-04-26 Jeff Johnston <jjohnstn@redhat.com>
684 * libc/sys/linux/Makefile.am: Add io64.c.
685 * libc/sys/linux/Makefile.in: Regenerated.
686 * libc/sys/linux/io.c(mkfifo, fsync, fdatasync): Added syscalls.
687 * libc/sys/linux/signal.c (sigwaitinfo, sigtimedwait): Ditto.
688 * libc/sys/linux/io64.c: New file.
690 2002-04-26 Jeff Johnston <jjohnstn@redhat.com>
692 * configure.in (CC_FOR_NEWLIB): New variable that
693 bases on $(CC) and adds targ-include and libc/include as
694 -isystem directives if they are not already part of $(CC).
695 * Makefile.am (AM_MAKEFLAGS): Change setting of CC to equal
697 * configure: Regenerated.
698 * Makefile.in: Ditto.
700 2002-04-25 Jeff Johnston <jjohnstn@redhat.com>
702 * libc/sys/linux/Makefile.am: Add support for sched.c.
703 * libc/sys/linux/Makefile.in: Regenerated.
704 * libc/sys/linux/sched.c: New file.
705 * libc/sys/linux/sys/types.h: Add struct timespec.
707 2002-04-25 Thomas Fitzsimmons <fitzsim@redhat.com>
709 * configure.in (CC_FOR_BUILD): Set to gcc whether
710 cross-compiling or not.
711 (CC): Add -isystem's for targ-include and libc/include when they
712 do not already appear in CC.
714 2002-04-24 Thomas Fitzsimmons <fitzsim@redhat.com>
716 * Makefile.am (check-DEJAGNU): New target.
717 (site.exp): Likewise.
718 * acinclude.m4 (NEWLIB_CONFIGURE): Replace AC_CANONICAL_HOST
719 with AC_CANONICAL_SYSTEM. Remove AC_CANONICAL_BUILD.
720 * libc/locale/locale.c (_setlocale_r): Add UTF-8 support.
721 * libc/stdlib/mbtowc_r.c (_mbtowc_r): Likewise.
722 * libc/stdlib/wctomb_r.c (_wctomb_r): Likewise.
723 * testsuite: New directory.
724 * testsuite/config: Likewise.
725 * testsuite/lib: Likewise.
726 * testsuite/newlib.locale: Likewise.
727 * testsuite/newlib.string: Likewise.
728 * testsuite/config/default.exp: New file.
729 * testsuite/lib/checkoutput.exp: New file.
730 * testsuite/lib/newlib.exp: New file.
731 * testsuite/lib/passfail.exp: New file.
732 * testsuite/newlib.locale/UTF-8.c: New file.
733 * testsuite/newlib.locale/UTF-8.exp: New file.
734 * testsuite/newlib.locale/locale.exp: New file.
735 * testsuite/newlib.string/string.exp: New file.
736 * testsuite/newlib.string/tstring.c: New file.
738 2002-04-23 Jeff Johnston <jjohnstn@redhat.com>
740 * libc/include/machine/types.h (__pid_t, __off_t, __loff_t): Added.
741 * libc/sys/linux/Makefile.am: Add support for mmap.c.
742 * libc/sys/linux/Makefile.in: Regenerated.
743 * libc/sys/linux/mmap.c: New file.
744 * libc/sys/linux/machine/i386/syscall.h: Add _syscall6 macro.
745 * libc/sys/linux/sys/types.h (pid_t, off_t, loff_t): Added.
747 2002-04-22 Thomas Fitzsimmons <fitzsim@redhat.com>
749 * acinclude.m4 (newlib_cflags): Remove include directories that
750 are already specified in the top-level configure.in's FLAGS_FOR_TARGET.
752 2002-04-19 Bill Siegmund <ctc-dsl@pacbell.net>
754 * libc/machine/xscale/memchr.c: Don't use multi-line strings.
755 * libc/machine/xscale/memcmp.c: Ditto.
756 * libc/machine/xscale/memcpy.c: Ditto.
757 * libc/machine/xscale/memmove.c: Ditto.
758 * libc/machine/xscale/memset.c: Ditto.
759 * libc/machine/xscale/strchr.c: Ditto.
760 * libc/machine/xscale/strcmp.c: Ditto.
761 * libc/machine/xscale/strcpy.c: Ditto.
762 * libc/machine/xscale/strlen.c: Ditto.
764 2002-04-19 Alexandre Oliva <aoliva@redhat.com>
766 * libc/include/sys/config.h: Remove include of <limits.h>.
767 (__INT_MAX__, __LONG_MAX__): Define like GCC's limits.h would
768 define INT_MAX and LONG_MAX. Use them in tests.
770 2002-04-19 Jeff Johnston <jjohnstn@redhat.com>
772 * configure.host: Add support for powerpc-eabialtivec*.
773 * libc/include/malloc.h: Add include of <machine/malloc.h>.
774 * libc/include/stdlib.h: Add include of <machine/stdlib.h>.
775 * libc/include/machine/malloc.h: New file.
776 * libc/include/machine/stdlib.h: Ditto.
777 * libc/include/machine/setjmp.h: Add support for powerpc altivec.
778 * libc/machine/powerpc/Makefile.am: Add conditional objects and
779 sources based on configuration.
780 * libc/machine/powerpc/Makefile.in: Regenerated.
781 * libc/machine/powerpc/configure: Ditto.
782 * libc/machine/powerpc/configure.in: Add check for
783 powerpc-eabialtivec* in which case add in additional source files.
784 * libc/machine/powerpc/setjmp.S: Add altivec support.
785 * libc/machine/powerpc/vec_calloc.c: New file.
786 * libc/machine/powerpc/vec_free.c: Ditto.
787 * libc/machine/powerpc/vec_malloc.c: Ditto.
788 * libc/machine/powerpc/vec_mallocr.c: Ditto.
789 * libc/machine/powerpc/vec_realloc.c: Ditto.
790 * libc/machine/powerpc/machine/malloc.h: Ditto.
791 * libc/machine/powerpc/machine/stdlib.h: Ditto.
792 * libc/machine/powerpc/vfprintf.c: New file that is vfprintf.c
793 with added altivec format specifiers.
794 * libc/machine/powerpc/vfscanf.c: New file that is vfscanf.c with
795 added altivec format specifiers.
797 2002-04-19 Joel Sherrill <joel@OARcorp.com>
799 * libs/sys/rtems/crt0.c: Satisfy gcc's references to libc functions
800 while autoconf is trying to link main(){}.
802 2002-04-17 Jeff Johnston <jjohnstn@redhat.com>
804 * libc/sys/linux/signal.c: Remove include of <bits/sigset.h>.
805 * libc/sys/linux/sys/signal.h: Add include of <bits/sigset.h>.
807 2002-04-17 Jeff Johnston <jjohnstn@redhat.com>
809 * libc/time/time.tex: Add tzset info.
811 2002-04-17 Jeff Johnston <jjohnstn@redhat.com>
813 * libc/include/time.h (tzset, _tzset_r): Added prototypes.
814 (strptime): Moved prototype to be within !__STRICT_ANSI__.
815 (_tzname, _daylight, _timezone): No long __CYGWIN__ only.
816 (tzname): Defined for all platforms.
817 (daylight, timezone): Defined only for CYGWIN.
818 * libc/sys/linux/machine/i386/crt0.c: Add call to tzset() after
820 * libc/stdlib/setenv_r.c (_setenv_r): Call tzset() if the TZ
821 environment variable is set.
822 * libc/time/Makefile.am: Add support for tzset.c, tzlock.c, and
824 * libc/time/Makefile.in: Regenerated.
825 * libc/time/gmtime.c (gmtime): Changed to call gmtime_r.
826 * libc/time/gmtime_r.c (gmtime_r): Changed to call _mktm_r.
827 * libc/time/lcltime_r.c (lcltime_r): Ditto.
828 * libc/time/local.h: New local header file.
829 * libc/time/mktime.c (mktime): Add timezone support.
830 * libc/time/mktm_r.c: New file which is the common engine
831 for gmtime_r and lcltime_r. This code has timezone support.
832 * libc/time/strftime.c (strftime): Add %Z timezone support.
833 * libc/time/tzlock.c: New file containing timezone lock stubs.
834 * libc/time/tzset.c: New file containing tzset() routine.
835 * libc/time/tzset_r.c: New file containing _tzset_r and
836 internal routine for calculating timezone changes for specified year.
838 2002-04-17 Thomas Fitzsimmons <fitzsim@redhat.com>
840 * configure.in (CRT0_DIR): Set to libc/.
841 (CRT1_DIR): Set to ${crt1_dir}/ if crt1_dir is non-empty.
842 * Makefile.am: Change all occurrences of $(CRT0_DIR)/$(CRT0) to
843 $(CRT0_DIR)$(CRT0) to prevent make warnings. Likewise for
845 * libc/machine/xstormy16/Makefile.in: Regenerated.
846 * libc/machine/xstormy16/aclocal.m4: Regenerated.
847 * libc/machine/xstormy16/configure: Regenerated.
849 2002-04-13 Alexandre Oliva <aoliva@redhat.com>
851 * libc/stdlib/mallocr.c (malloc_extend_top): If correction sbrk
852 fails, don't bail out, and try to correct next time.
854 * libc/include/sys/config.h: Include limits.h.
856 2002-04-12 Eric Norum <eric.norum@usask.com>
858 * libc/sys/rtems/crt0.c (rtems_gxx_mutex_init): Dummy
859 routine to allow autoconf to determine that building executables
861 (rtems_gxx_mutex_lock, rtems_gxx_mutex_unlock): Ditto.
862 (rtems_gxx_mutex_once): Ditto.
864 2002-04-09 Tom Rix <trix@redhat.com>
866 * libc/include/sys/reent.h (_REENT_INIT_PTR): Fix typo.
868 2002-04-09 Mark Bradshaw <bradshaw@staff.crosswalk.com>
870 * libc/include/time.h: Fix strptime declaration.
871 * libc/time/Makefile.am: Add strptime.c.
872 * libc/time/Makefile.in: Regenerated.
873 * libc/time/strptime.c: New file.
875 2002-04-08 Jeff Johnston <jjohnstn@redhat.com>
877 * libc/sys/linux/include/setjmp.h: Add sigjmp_buf type,
878 siglongjmp prototype, and sigsetjmp macro definition.
879 * libc/sys/linux/siglongjmp.c: New file.
880 * libc/sys/linux/Makefile.am: Add support for siglongjmp.
881 * libc/sys/linux/Makefile.in: Regenerated.
883 2002-04-04 Jeff Johnston <jjohnstn@redhat.com>
885 * Makefile.am: Add support for installing crt1.o if one exists.
886 * configure.host: Specify crt1.o for linux.
887 * configure.in: Expose CRT1 and CRT1_DIR for Makefile.am to use.
888 * Makefile.in: Regenerated.
890 * libc/include/sys/unistd.h (_SC_STREAM_MAX, _SC_PRIORITY_SCHEDULING):
891 Added for non-Cygwin, non-RTEMS configurations.
892 * libc/sys/linux/Makefile.am: Add support for crt1 and sysconf.
893 * libc/sys/linux/Makefile.in: Regenerated.
894 * libc/sys/linux/crt1.c: New empty file to override one defaulted
895 by gcc. This fixes problem with reconfiguring linux newlib build.
896 * libc/sys/linux/sysconf.c: New file.
898 2002-04-03 Jeff Johnston <jjohnstn@redhat.com>
900 * configure.host: Add support for machine subdirectory of
902 * configure.in: Add check for sys machine subdirectory.
903 * Makefile.am: Ditto.
904 * configure: Regenerated.
905 * Makefile.in: Ditto.
906 * libc/sys/linux/crt0.c: Moved to machine/i386 directory.
907 * libc/sys/linux/sys/syscall.h: Ditto.
908 * libc/sys/linux/sleep.c: New file.
909 * libc/sys/linux/socket.c: Ditto.
910 * libc/sys/linux/sockops.h: Ditto.
911 * libc/sys/linux/stack.c: Ditto.
912 * libc/sys/linux/usleep.c: Ditto.
913 * libc/sys/linux/machine/Makefile.am: Ditto.
914 * libc/sys/linux/machine/Makefile.in: Ditto.
915 * libc/sys/linux/machine/aclocal.m4: Ditto.
916 * libc/sys/linux/machine/configure: Ditto.
917 * libc/sys/linux/machine/configure.in: Ditto.
918 * libc/sys/linux/machine/i386/Makefile.am: Ditto.
919 * libc/sys/linux/machine/i386/Makefile.in: Ditto.
920 * libc/sys/linux/machine/i386/aclocal.m4: Ditto.
921 * libc/sys/linux/machine/i386/configure: Ditto.
922 * libc/sys/linux/machine/i386/configure.in: Ditto.
923 * libc/sys/linux/machine/i386/crt0.c: Ditto.
924 * libc/sys/linux/machine/i386/sigset.c: Ditto.
925 * libc/sys/linux/machine/i386/sigstack.h: Ditto.
926 * libc/sys/linux/machine/i386/socketcall.h: Ditto.
927 * libc/sys/linux/machine/i386/syscall.h: Ditto.
928 * libc/sys/linux/sys/select.h: Ditto.
929 * libc/sys/linux/configure.in: Add support for machine directory.
930 * libc/sys/linux/Makefile.am: Ditto plus add new files above.
931 * libc/sys/linux/Makefile.in: Regenerated.
932 * libc/sys/linux/configure: Ditto.
933 * libc/sys/linux/brk.c: Use machine/syscall.h instead of sys/syscall.h.
934 * libc/sys/linux/inode.c: Ditto.
935 * libc/sys/linux/linux.c: Ditto.
936 * libc/sys/linux/process.c: Ditto.
937 * libc/sys/linux/systat.c: Ditto.
938 * libc/sys/linux/time.c: Ditto.
939 * libc/sys/linux/wait.c: Ditto.
940 * libc/sys/linux/ids.c: Change header plus add setfsgid/setfsuid.
941 * libc/sys/linux/io.c: Change header plus add readv/writev.
942 * libc/sys/linux/signal.c: Change header plus change sigsuspend to
943 use __sigsuspend syscall.
944 * libc/sys/linux/select.c: Change header plus change select to
945 use _newselect syscall.
946 * libc/sys/linux/sys/cdefs.h: Add a number of standard definitions
947 used by glibc header files.
948 * libc/sys/linux/sys/types.h: Add __socklen_t and __useconds_t
951 2002-04-01 Jeff Johnston <jjohnstn@redhat.com>
953 * libc/include/sys/reent.h (_REENT_INIT_PTR): New macro for
954 initializing a struct _reent that has been dynamically allocated.
955 (_REENT_CHECK_MISC): New macro that checks _misc struct for
956 _REENT_SMALL and does nothing otherwise.
957 (_REENT_STRTOK_LAST): New macro for reentrant strtok.
958 (_REENT_MBLEN_STATE): New macro for reentrant mblen.
959 (_REENT_MBTOWC_STATE): New macro for reentrant mbtowc.
960 (_REENT_WCTOMB_STATE): New macro for reentrant wctomb.
961 [_REENT_SMALL](struct _misc_reent): New structure containing
962 miscellaneous reentrant areas needed by newlib.
963 [_REENT_SMALL](struct _reent): Add _misc pointer.
964 [_REENT_SMALL](_REENT_INIT_MISC): New macro.
965 * libc/string/strtok (strtok): Change to use _REENT_CHECK_MISC
966 and _REENT_STRTOK_LAST macros.
967 * libc/stdlib/mblen (mblen): Change to use _REENT_CHECK_MISC
968 and _REENT_MBLEN_STATE macros.
969 * libc/stdlib/mbtowc (mbtowc): Change to use _REENT_CHECK_MISC
970 and _REENT_MBTOWC_STATE macros.
971 * libc/stdlib/wctomb (wctomb): Change to use _REENT_CHECK_MISC
972 and _REENT_WCTOMB_STATE macros.
974 2002-04-01 Till Straumann <strauman@SLAC.Stanford.EDU>
976 * libc/stdlib/getenv_r.c (_findenv_r): Add missing ENV_UNLOCK.
978 Wed Mar 27 07:34:44 2002 Jason Tishler <jason@tishler.net>
980 * libc/include/sys/features.h (_POSIX_SEMAPHORES): New Cygwin define.
982 Tue Mar 26 17:17:10 2002 J"orn Rennecke <joern.rennecke@superh.com>
984 * libc/machine/sh/memcpy.S (Large): Fix alignment rounding.
985 Store high part of leading bytes too.
987 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
989 * libm/math/ef_hypot.c: Increase scale factor to 68.
991 2002-03-13 Alexandre Oliva <aoliva@redhat.com>
993 * libc/machine/mips/strlen.c (strlen) [__mips16]: Fix off-by-two
996 2002-03-12 Jeff Johnston <jjohnstn@redhat.com>
998 * libc/sys/go32/access.c: Change license to relaxed license
999 used in identical file throughout newlib/libgloss.
1001 2002-03-12 Richard Earnshaw <rearnsha@arm.com>
1003 * libc/sys/arm/access.c: New file.
1004 * libc/sys/arm/Makefile.am (lib_a_SOURCES): Add access.c.
1005 * libc/sys/arm/Makefile.in: Regenerate.
1006 * libc/sys/arm/syscalls.c (_stat): New function.
1008 2002-03-11 Michael Meissner <meissner@redhat.com>
1010 * libc/machine/mips/Makefile.am (lib_a_SOURCES): Add Mips specific
1011 variants strlen.c, strcmp.c, strncpy.c, memset.c and memcpy.c.
1012 * libc/machine/mips/Makefile.in: Regenerate.
1013 * libc/machine/mips/memcpy.c: New file, optimized for MIPS.
1014 * libc/machine/mips/memset.c: Dito.
1015 * libc/machine/mips/strcmp.c: Dito.
1016 * libc/machine/mips/strlen.c: Dito.
1017 * libc/machine/mips/strncmp.c: Dito.
1019 2002-03-06 Jeff Johnston <jjohnstn@redhat.com>
1021 * libc/machine/i386/Makefile.am: Add $(oext) for setjmp
1022 object so it works for shared library or statici library.
1023 2002-04-17 Jeff Johnston <jjohnstn@redhat.com>
1025 * libc/include/time.h (tzset, _tzset_r): Added prototypes.
1026 (strptime): Moved prototype to be within !__STRICT_ANSI__.
1027 (_tzname, _daylight, _timezone): No long __CYGWIN__ only.
1028 (tzname): Defined for all platforms.
1029 (daylight, timezone): Defined only for CYGWIN.
1030 * libc/sys/linux/machine/i386/crt0.c: Add call to tzset() after
1032 * libc/stdlib/setenv_r.c (_setenv_r): Call tzset() if the TZ
1033 environment variable is set.
1034 * libc/time/Makefile.am: Add support for tzset.c, tzlock.c, and
1036 * libc/time/Makefile.in: Regenerated.
1037 * libc/time/gmtime.c (gmtime): Changed to call gmtime_r.
1038 * libc/time/gmtime_r.c (gmtime_r): Changed to call _mktm_r.
1039 * libc/time/lcltime_r.c (lcltime_r): Ditto.
1040 * libc/time/local.h: New local header file.
1041 * libc/time/mktime.c (mktime): Add timezone support.
1042 * libc/time/mktm_r.c: New file which is the common engine
1043 for gmtime_r and lcltime_r. This code has timezone support.
1044 * libc/time/strftime.c (strftime): Add %Z timezone support.
1045 * libc/time/tzlock.c: New file containing timezone lock stubs.
1046 * libc/time/tzset.c: New file containing tzset() routine.
1047 * libc/time/tzset_r.c: New file containing _tzset_r and
1048 internal routine for calculating timezone changes for specified year.
1050 2002-04-17 Thomas Fitzsimmons <fitzsim@redhat.com>
1052 * configure.in (CRT0_DIR): Set to libc/.
1053 (CRT1_DIR): Set to ${crt1_dir}/ if crt1_dir is non-empty.
1054 * Makefile.am: Change all occurrences of $(CRT0_DIR)/$(CRT0) to
1055 $(CRT0_DIR)$(CRT0) to prevent make warnings. Likewise for
1056 $(CRT1_DIR)/$(CRT1).
1057 * libc/machine/xstormy16/Makefile.in: Regenerated.
1058 * libc/machine/xstormy16/aclocal.m4: Regenerated.
1059 * libc/machine/xstormy16/configure: Regenerated.
1061 2002-04-13 Alexandre Oliva <aoliva@redhat.com>
1063 * libc/stdlib/mallocr.c (malloc_extend_top): If correction sbrk
1064 fails, don't bail out, and try to correct next time.
1066 * libc/include/sys/config.h: Include limits.h.
1068 2002-04-12 Eric Norum <eric.norum@usask.com>
1070 * libc/sys/rtems/crt0.c (rtems_gxx_mutex_init): Dummy
1071 routine to allow autoconf to determine that building executables
1073 (rtems_gxx_mutex_lock, rtems_gxx_mutex_unlock): Ditto.
1074 (rtems_gxx_mutex_once): Ditto.
1076 2002-04-09 Tom Rix <trix@redhat.com>
1078 * libc/include/sys/reent.h (_REENT_INIT_PTR): Fix typo.
1080 2002-04-09 Mark Bradshaw <bradshaw@staff.crosswalk.com>
1082 * libc/include/time.h: Fix strptime declaration.
1083 * libc/time/Makefile.am: Add strptime.c.
1084 * libc/time/Makefile.in: Regenerated.
1085 * libc/time/strptime.c: New file.
1087 2002-04-08 Jeff Johnston <jjohnstn@redhat.com>
1089 * libc/sys/linux/include/setjmp.h: Add sigjmp_buf type,
1090 siglongjmp prototype, and sigsetjmp macro definition.
1091 * libc/sys/linux/siglongjmp.c: New file.
1092 * libc/sys/linux/Makefile.am: Add support for siglongjmp.
1093 * libc/sys/linux/Makefile.in: Regenerated.
1095 2002-04-04 Jeff Johnston <jjohnstn@redhat.com>
1097 * Makefile.am: Add support for installing crt1.o if one exists.
1098 * configure.host: Specify crt1.o for linux.
1099 * configure.in: Expose CRT1 and CRT1_DIR for Makefile.am to use.
1100 * Makefile.in: Regenerated.
1102 * libc/include/sys/unistd.h (_SC_STREAM_MAX, _SC_PRIORITY_SCHEDULING):
1103 Added for non-Cygwin, non-RTEMS configurations.
1104 * libc/sys/linux/Makefile.am: Add support for crt1 and sysconf.
1105 * libc/sys/linux/Makefile.in: Regenerated.
1106 * libc/sys/linux/crt1.c: New empty file to override one defaulted
1107 by gcc. This fixes problem with reconfiguring linux newlib build.
1108 * libc/sys/linux/sysconf.c: New file.
1110 2002-04-03 Jeff Johnston <jjohnstn@redhat.com>
1112 * configure.host: Add support for machine subdirectory of
1114 * configure.in: Add check for sys machine subdirectory.
1115 * Makefile.am: Ditto.
1116 * configure: Regenerated.
1117 * Makefile.in: Ditto.
1118 * libc/sys/linux/crt0.c: Moved to machine/i386 directory.
1119 * libc/sys/linux/sys/syscall.h: Ditto.
1120 * libc/sys/linux/sleep.c: New file.
1121 * libc/sys/linux/socket.c: Ditto.
1122 * libc/sys/linux/sockops.h: Ditto.
1123 * libc/sys/linux/stack.c: Ditto.
1124 * libc/sys/linux/usleep.c: Ditto.
1125 * libc/sys/linux/machine/Makefile.am: Ditto.
1126 * libc/sys/linux/machine/Makefile.in: Ditto.
1127 * libc/sys/linux/machine/aclocal.m4: Ditto.
1128 * libc/sys/linux/machine/configure: Ditto.
1129 * libc/sys/linux/machine/configure.in: Ditto.
1130 * libc/sys/linux/machine/i386/Makefile.am: Ditto.
1131 * libc/sys/linux/machine/i386/Makefile.in: Ditto.
1132 * libc/sys/linux/machine/i386/aclocal.m4: Ditto.
1133 * libc/sys/linux/machine/i386/configure: Ditto.
1134 * libc/sys/linux/machine/i386/configure.in: Ditto.
1135 * libc/sys/linux/machine/i386/crt0.c: Ditto.
1136 * libc/sys/linux/machine/i386/sigset.c: Ditto.
1137 * libc/sys/linux/machine/i386/sigstack.h: Ditto.
1138 * libc/sys/linux/machine/i386/socketcall.h: Ditto.
1139 * libc/sys/linux/machine/i386/syscall.h: Ditto.
1140 * libc/sys/linux/sys/select.h: Ditto.
1141 * libc/sys/linux/configure.in: Add support for machine directory.
1142 * libc/sys/linux/Makefile.am: Ditto plus add new files above.
1143 * libc/sys/linux/Makefile.in: Regenerated.
1144 * libc/sys/linux/configure: Ditto.
1145 * libc/sys/linux/brk.c: Use machine/syscall.h instead of sys/syscall.h.
1146 * libc/sys/linux/inode.c: Ditto.
1147 * libc/sys/linux/linux.c: Ditto.
1148 * libc/sys/linux/process.c: Ditto.
1149 * libc/sys/linux/systat.c: Ditto.
1150 * libc/sys/linux/time.c: Ditto.
1151 * libc/sys/linux/wait.c: Ditto.
1152 * libc/sys/linux/ids.c: Change header plus add setfsgid/setfsuid.
1153 * libc/sys/linux/io.c: Change header plus add readv/writev.
1154 * libc/sys/linux/signal.c: Change header plus change sigsuspend to
1155 use __sigsuspend syscall.
1156 * libc/sys/linux/select.c: Change header plus change select to
1157 use _newselect syscall.
1158 * libc/sys/linux/sys/cdefs.h: Add a number of standard definitions
1159 used by glibc header files.
1160 * libc/sys/linux/sys/types.h: Add __socklen_t and __useconds_t
1163 2002-04-01 Jeff Johnston <jjohnstn@redhat.com>
1165 * libc/include/sys/reent.h (_REENT_INIT_PTR): New macro for
1166 initializing a struct _reent that has been dynamically allocated.
1167 (_REENT_CHECK_MISC): New macro that checks _misc struct for
1168 _REENT_SMALL and does nothing otherwise.
1169 (_REENT_STRTOK_LAST): New macro for reentrant strtok.
1170 (_REENT_MBLEN_STATE): New macro for reentrant mblen.
1171 (_REENT_MBTOWC_STATE): New macro for reentrant mbtowc.
1172 (_REENT_WCTOMB_STATE): New macro for reentrant wctomb.
1173 [_REENT_SMALL](struct _misc_reent): New structure containing
1174 miscellaneous reentrant areas needed by newlib.
1175 [_REENT_SMALL](struct _reent): Add _misc pointer.
1176 [_REENT_SMALL](_REENT_INIT_MISC): New macro.
1177 * libc/string/strtok (strtok): Change to use _REENT_CHECK_MISC
1178 and _REENT_STRTOK_LAST macros.
1179 * libc/stdlib/mblen (mblen): Change to use _REENT_CHECK_MISC
1180 and _REENT_MBLEN_STATE macros.
1181 * libc/stdlib/mbtowc (mbtowc): Change to use _REENT_CHECK_MISC
1182 and _REENT_MBTOWC_STATE macros.
1183 * libc/stdlib/wctomb (wctomb): Change to use _REENT_CHECK_MISC
1184 and _REENT_WCTOMB_STATE macros.
1186 2002-04-01 Till Straumann <strauman@SLAC.Stanford.EDU>
1188 * libc/stdlib/getenv_r.c (_findenv_r): Add missing ENV_UNLOCK.
1190 Wed Mar 27 07:34:44 2002 Jason Tishler <jason@tishler.net>
1192 * libc/include/sys/features.h (_POSIX_SEMAPHORES): New Cygwin define.
1194 Tue Mar 26 17:17:10 2002 J"orn Rennecke <joern.rennecke@superh.com>
1196 * libc/machine/sh/memcpy.S (Large): Fix alignment rounding.
1197 Store high part of leading bytes too.
1199 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
1201 * libm/math/ef_hypot.c: Increase scale factor to 68.
1203 2002-03-13 Alexandre Oliva <aoliva@redhat.com>
1205 * libc/machine/mips/strlen.c (strlen) [__mips16]: Fix off-by-two
1208 2002-03-12 Jeff Johnston <jjohnstn@redhat.com>
1210 * libc/sys/go32/access.c: Change license to relaxed license
1211 used in identical file throughout newlib/libgloss.
1213 2002-03-12 Richard Earnshaw <rearnsha@arm.com>
1215 * libc/sys/arm/access.c: New file.
1216 * libc/sys/arm/Makefile.am (lib_a_SOURCES): Add access.c.
1217 * libc/sys/arm/Makefile.in: Regenerate.
1218 * libc/sys/arm/syscalls.c (_stat): New function.
1220 2002-03-11 Michael Meissner <meissner@redhat.com>
1222 * libc/machine/mips/Makefile.am (lib_a_SOURCES): Add Mips specific
1223 variants strlen.c, strcmp.c, strncpy.c, memset.c and memcpy.c.
1224 * libc/machine/mips/Makefile.in: Regenerate.
1225 * libc/machine/mips/memcpy.c: New file, optimized for MIPS.
1226 * libc/machine/mips/memset.c: Dito.
1227 * libc/machine/mips/strcmp.c: Dito.
1228 * libc/machine/mips/strlen.c: Dito.
1229 * libc/machine/mips/strncmp.c: Dito.
1231 2002-03-06 Jeff Johnston <jjohnstn@redhat.com>
1233 * libc/machine/i386/Makefile.am: Add $(oext) for setjmp
1234 object so it works for shared library or statici library.
1235 * libc/machine/i386/Makefile.in: Regenerated.
1237 Wed Mar 6 10:24:26 2002 J"orn Rennecke <joern.rennecke@superh.com>
1239 * libc/machine/sh/Makefile.am (lib_a_SOURCES, SH64 case):
1240 Add memcpy.S, memset.S and strcpy.S.
1241 * libc/machine/sh/Makefile.in: Regenerate.
1242 * libc/machine/sh/asm.h (_ENTRY): Set SH5 alignment to 8 bytes.
1243 (SHHI, SHLO): Define.
1244 * libc/machine/sh/memset.S: Add code for SH5.
1245 * libc/machine/sh/memset.S: Likewise.
1246 * libc/machine/sh/strcpy.S: Likewise.
1248 2002-02-27 Jeff Johnston <jjohnstn@redhat.com>
1250 * configure.host: Add check for --disable-newlib-io-float
1251 configuration option and add -DNO_FLOATING_POINT to newlib cflags
1253 * acinclude.m4: Added --disable-newlib-io-float option.
1254 * aclocal.m4: Regenerated.
1256 * doc/aclocal.m4 doc/configure libc/aclocal.m4 libc/configure
1257 * libc/*/aclocal.m4 libc/*/configure
1258 * libm/*/aclocal.m4 libm/*/configure: Ditto.
1259 * libc/stdio/vfprintf.c [!INTEGER_ONLY]: Only set FLOATING_POINT
1260 if NO_FLOATING_POINT flag is not defined.
1262 2002-02-25 Jeff Johnston <jjohnstn@redhat.com>
1264 * libc/include/sys/config.h: Add __extension__ in front of
1265 long long references.
1267 2002-02-23 Corinna Vinschen <corinna@vinschen.de>
1269 * libc/include/sys/stat.h (_fstat): Don't declare when compiling Cygwin.
1272 2002-02-23 Corinna Vinschen <corinna@vinschen.de>
1274 * libc/sys/cygwin/sys/dirent.h (struct __DIR): Use __off32_t instead
1277 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
1279 * libc/machine/xscale/strchr.c (strchr): Add 'r1' to the list of
1280 clobbered registers.
1282 2002-02-19 Thomas Fitzsimmons <fitzsim@redhat.com>
1284 * configure.host (newlib_cflags): When host is in m68* add
1287 2002-02-15 Jeff Johnston <jjohnstn@redhat.com>
1289 * libc/include/sys/config.h: Add definitions for
1290 __int16_t, __uint16_t, __int64_t, and __uint64_t.
1292 2002-02-12 Hans-Peter Nilsson <hp@bitrange.com>
1294 * libc/sys/mmixware/link.c: New.
1295 * libc/sys/mmixware/sys/syscall.h (TRAP1i, I3f): Make asm
1297 * libc/sys/mmixware/times.c (_times): Renamed from times.
1298 * libc/sys/mmixware/open.c (_open): Attempt to handle O_APPEND
1299 properly by reading previous contents, not through BinaryReadWrite.
1300 * libc/sys/mmixware/Makefile.am (lib_a_SOURCES): Add link.c
1301 * libc/sys/mmixware/Makefile.in: Regenerate.
1303 2002-02-10 Corinna Vinschen <corinna@vinschen.de>
1305 * libc/include/grp.h: Don't declare group functions when compiling
1308 2002-02-09 Corinna Vinschen <corinna@vinschen.de>
1310 * libc/include/grp.h: Include Cygwin specific header.
1311 * libc/include/sys/stat.h: Ditto. Don't define `struct stat'
1312 when compiling for Cygwin.
1313 * libc/include/sys/types.h: Don't define off_t, uid_t
1314 and gid_t when compiling for Cygwin.
1316 2002-02-08 matthew green <mrg@redhat.com>
1318 * libc/include/sys/reent.h (_REENT_CHECK_EMERGENCY): Allocate
1319 _REENT_EMERGENCY_SIZE, not sizeof(char *).
1321 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
1323 Contribute sh64-elf.
1324 2001-03-13 Alexandre Oliva <aoliva@redhat.com>
1325 * configure.host (newlib_cflags) [sh*-*-*]: Enable long long
1327 2001-01-29 Alexandre Oliva <aoliva@redhat.com>
1328 * libc/machine/sh/setjmp.S [SH5]: Switch to SHmedia mode before
1330 2001-01-24 Alexandre Oliva <aoliva@redhat.com>
1331 * libc/sys/sh/trap.S (___trap34) [SH5]: Don't trash r2.
1332 2000-12-16 Alexandre Oliva <aoliva@redhat.com>
1333 * libc/machine/sh/configure.in: Rework conditionals.
1334 * libc/machine/sh/Makefile.am: Likewise.
1335 * libc/machine/sh/configure, libc/machine/sh/Makefile.in: Rebuilt.
1336 2000-12-01 Alexandre Oliva <aoliva@redhat.com>
1337 * configure.host: Match `sh*'.
1338 * libc/include/machine/setjmp.h: Define for SH5.
1339 * libc/machine/sh/configure.in: Detect SH5.
1340 * libc/machine/sh/configure: Rebuilt.
1341 * libc/machine/sh/Makefile.am: Use only setjmp.S for SH5.
1342 * libc/machine/sh/Makefile.in: Rebuilt.
1343 * libc/machine/sh/asm.h: Adjust for SH5.
1344 * libc/machine/sh/setjmp.S: Implement in SHmedia.
1345 * libc/sys/sh/crt0.S: Likewise.
1346 * libc/sys/sh/trap.S: Likewise.
1348 2002-02-07 Jeff Johnston <jjohnstn@redhat.com>
1350 * libc/machine/i386/Makefile.am: (mach_add_src): Remove.
1351 (mach_add_obj): Conditionally set to setjmp.o or nothing.
1352 (LIB_SOURCES): Remove $(mach_add_src).
1353 (lib_a_LIBADD, lib_a_DEPENDENCIES): Add and set to $(mach_add_src).
1354 (lib_la_LIBADD, lib_la_DEPENDENCIES): Ditto.
1355 * libc/machine/i386/Makefile.in: Regenerate.
1357 2002-02-05 Manik Raina <manik@cisco.com>
1359 * libc/misc/dprintf.c (parse_number): #if 0 unused function.
1360 * libc/stdlib/ldtoa.c (_ldcheck): Remove unused local variables
1361 s, p, k, and outstr.
1362 * libc/stdlib/dtoa.c (_dtoa_r): Initialize mlo.
1364 2002-02-04 Jeff Johnston <jjohnstn@redhat.com>
1366 * libc/include/sys/reent.h [(!_REENT_SMALL]: Add
1367 _REENT_CHECK_EMERGENCY macro.
1369 2002-02-03 matthew green <mrg@redhat.com>
1371 * libc/reent/signgam.c (__signgam): Fix error in previous.
1373 2002-02-02 matthew green <mrg@redhat.com>
1375 * libc/include/sys/config.h (_REENT_SMALL): Define for Xstormy16.
1377 * libc/reent/reent.c (_reclaim_reent): Clean for _REENT_SMALL case.
1378 * libc/reent/reent.tex: Add blurb about _REENT_SMALL.
1379 * libc/include/sys/reent.h (struct _reent): Completely new version
1381 (_REENT_INIT): New defines, different defintion depending on _REENT_SMALL.
1382 (_REENT_CHECK, _REENT_CHECK_TM): Likewise.
1383 (_REENT_CHECK_ASCTIME_BUF, _REENT_INIT_RAND48): Likewise.
1384 (_REENT_CHECK_RAND48, _REENT_INIT_MP, _REENT_CHECK_MP): Likewise.
1385 (_REENT_CHECK_EMERGENCY, _REENT_SIGNGAM, _REENT_RAND_NEXT): Likewise.
1386 (_REENT_RAND48_SEED, _REENT_RAND48_MULT, _REENT_RAND48_ADD): Likewise.
1387 (_REENT_MP_RESULT, _REENT_MP_RESULT_K, _REENT_MP_P5S): Likewise.
1388 (_REENT_MP_FREELIST, _REENT_ASCTIME_BUF, _REENT_TM): Likewise.
1389 (_REENT_EMERGENCY): Likewise.
1391 * libc/include/sys/reent.h (struct __sFILE_fake): New struct, same as
1392 the start of the real __sFILE, used for stdin, stdout and stderr until
1393 they are setup properly.
1394 (struct __sFILE): Move location of _data in _REENT_SMALL case.
1395 * libc/stdio/findfp.c (__sinit): Rearrange for _REENT_SMALL case by
1396 allocated stdin, stdout and stderr.
1397 * libc/stdio/getchar.c (_getchar_r): Call _REENT_SMALL_CHECK_INIT().
1398 * libc/stdio/iprintf.c (iprintf, _iprintf_r): Likewise.
1399 * libc/stdio/perror.c (_perror_r): Likewise.
1400 * libc/stdio/printf.c (printf, _printf_r): Likewise.
1401 * libc/stdio/putchar.c (_putchar_r): Likewise.
1402 * libc/stdio/puts.c (_puts_r): Likewise.
1403 * libc/stdio/scanf.c (scanf, _scanf_r): Likewise.
1404 * libc/stdio/vprintf.c (vprintf): Likewise.
1405 * libc/stdio/vscanf.c (vscanf, _vscanf_r): Likewise.
1407 * libc/stdio/tmpnam.c (_tmpnam_r): Use _REENT_EMERGENCY().
1409 * libc/reent/reent.c (_wrapup_reent): Adjust for _REENT_SMALL atexit.
1410 * libc/include/sys/reent.h (_atexit): Limit atexit() entries to 32
1412 * libc/stdlib/atexit.c (atexit): Rearrange for _REENT_SMALL case.
1413 * libc/stdlib/exit.c (exit): Rearrange for _REENT_SMALL case.
1415 * libc/include/sys/reent.h (struct _rand48): Keep _rand_next if
1417 * libc/stdlib/drand48.c (_drand48_r): Call _REENT_CHECK_RAND48().
1418 * libc/stdlib/lcong48.c (_lcong48_r): Likewise.
1419 * libc/stdlib/lrand48.c (_lrand48_r): Likewise.
1420 * libc/stdlib/mrand48.c (_mrand48_r): Likewise.
1421 * libc/stdlib/rand48.c (__dorand48): Likewise.
1422 * libc/stdlib/seed48.c (_seed48_r): Likewise.
1423 * libc/stdlib/srand48.c (_srand48_r): Likewise.
1424 * libc/stdlib/rand48.h (__rand48_seed, __rand48_mult, __rand48_add): Define
1425 as _REENT_RAND48_SEED(), _REENT_RAND48_MULT() and _REENT_RAND48_ADD().
1426 * libc/stdlib/dtoa.c (_dtoa_r): Call _REENT_CHECK_MP(). Use
1427 _REENT_MP_RESULT() and _REENT_MP_RESULT_K().
1428 * libc/stdlib/ldtoa.c (_ldtoa_r): Likewise.
1429 * libc/stdlib/rand.c (srand): Use _REENT_RAND_NEXT().
1430 * libc/stdlib/rand.c (rand): Likewise.
1432 * libc/stdlib/mallocr.c (malloc_stats): Call _REENT_SMALL_CHECK_INIT().
1433 * libc/stdlib/mstats.c (_mstats_r): Call _REENT_SMALL_CHECK_INIT().
1435 * libc/stdlib/mprec.c (Balloc): Call _REENT_CHECK_MP. Use
1436 _REENT_MP_FREELIST() and _REENT_MP_P5S.
1437 * libc/include/sys/reent.h (struct _mprec): New structure.
1439 * libc/include/sys/reent.h (struct _reent): Rename _strtok_last to
1440 _unused_strtok_last.
1441 * libc/string/strtok.c (strtok): Use a local static variable.
1443 * libc/include/sys/reent.h (_REENT_ASCTIME_SIZE): New define.
1444 (_REENT_EMERGENCY_SIZE): Likewise.
1445 * libc/time/asctime.c (asctime): Call _REENT_CHECK_ASCTIME_BUF(). Use
1446 _REENT_ASCTIME_BUF().
1447 * libc/time/lcltime.c (localtime): Call _REENT_CHECK_TM(). Use
1450 * libc/include/math.h (__singam_r): Use _REENT_SIGNGAM().
1451 * libc/reent/signgam.c (__signgam): Use _REENT_SIGNGAM().
1452 * libm/math/w_gamma.c (gamma): Use _REENT_SIGNGAM().
1453 * libm/math/w_lgamma.c (lgamma): Use _REENT_SIGNGAM().
1454 * libm/math/wf_gamma.c (gammaf): Use _REENT_SIGNGAM().
1455 * libm/math/wf_lgamma.c (lgammaf): Use _REENT_SIGNGAM().
1457 2002-02-01 Geoffrey Keating <geoffk@redhat.com>
1459 * configure.host (xstormy16): Don't use the generic malloc.
1460 * libc/machine/xstormy16/Makefile.am: Build tiny-malloc.
1461 * libc/machine/xstormy16/Makefile.in: Regenerate.
1462 * libc/machine/xstormy16/mallocr.c: New file.
1463 * libc/machine/xstormy16/tiny-malloc.c: New file.
1465 2002-01-28 Thomas Fitzsimmons <fitzsim@redhat.com>
1467 * libc/include/sys/signal.h [__CYGWIN__]: Issue error message
1468 when _CYGWIN_TYPES_H is not defined.
1470 2002-01-24 Thomas Fitzsimmons <fitzsim@redhat.com>
1472 * libc/include/sys/signal.h: Revert 2002-01-23 change.
1474 2002-01-23 Thomas Fitzsimmons <fitzsim@redhat.com>
1476 * libc/include/sys/signal.h: Remove pthread_kill declaration
1477 when __CYGWIN__ is defined.
1479 2002-01-18 Mark Bradshaw <bradshaw@staff.crosswalk.com>
1481 * libc/include/time.h: Add prototype for strptime for Cygwin.
1483 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
1485 * libc/machine/xscale/memset.c (memset): Fix bug when len == 1 and
1486 dst was not word aligned.
1488 * libc/sys/arm/syscalls.c (_sbrk): Return -1 rather than aborting
1489 if too much memory is requested.
1491 2002-01-11 Jeff Johnston <jjohnstn@redhat.com>
1493 * libc/stdio/vfscanf.c (__svfscanf_r): Change loop that
1494 reads blanks from the input file to break if EOF reached
1495 rather than end processing.
1497 2002-01-07 Jeff Johnston <jjohnstn@redhat.com>
1499 * MAINTAINERS: Change e-mail addresses to refer to redhat domain.
1501 2002-01-07 Alan Matsuoka <alanm@redhat.com>
1503 * libc/include/machine/ieeefp.h: Configure d10v doubles to
1504 be 32 bits if __DOUBLE__ == 32 otherwise doubles are 64 bits.
1505 libc/include/sys/config.h: Ditto.
1507 2001-12-28 Corinna Vinschen <corinna@vinschen.de>
1509 * libc/sys/cygwin/sys/utmp.h: Add definition of UTMP_FILE.
1511 2001-12-22 Geoffrey Keating <geoffk@redhat.com>
1512 Catherine Moore <clm@redhat.com>
1513 Richard Henderson <rth@redhat.com>
1514 Corinna Vinschen <vinschen@redhat.com>
1516 * configure.host: Add support for xstormy16.
1517 * libc/include/machine/ieeefp.h: Add support for xstormy16.
1518 * libc/include/machine/setjmp.h: Add support for xstormy16.
1519 * libc/include/sys/config.h: Add support for xstormy16.
1520 * libc/machine/xstormy16/Makefile.am: New file.
1521 * libc/machine/xstormy16/Makefile.in: New file.
1522 * libc/machine/xstormy16/aclocal.m4: New file.
1523 * libc/machine/xstormy16/configure: New file.
1524 * libc/machine/xstormy16/configure.in: New file.
1525 * libc/machine/xstormy16/setjmp.S: New file.
1527 2001-12-19 Thomas Fitzsimmons <fitzsim@redhat.com>
1529 * libm/machine/configure.in (HAVE_LIBM_MACHINE_DIR): New conditional.
1530 * libm/machine/Makefile.am [HAVE_LIBM_MACHINE_DIR] (LIBM_MACHLIB): New variable.
1532 2001-12-19 Corinna Vinschen <corinna@vinschen.de>
1534 * libm/machine/Makefile.am: Change rules to create correct lib.a.
1535 * libm/machine/Makefile.in: Regenerated through automake.
1537 2001-12-18 Thomas Fitzsimmons <fitzsim@redhat.com>
1539 * Makefile.am (DOCDIR): Force to empty string when doc
1540 directory is not present.
1542 2001-12-18 Thomas Fitzsimmons <fitzsim@redhat.com>
1544 * libc/machine/i386/f_*: Move to libm/machine/i386.
1546 2001-12-18 Joel Sherrill <joel@OARcorp.com>
1548 * libm/machine/Makefile.am: Add dummy doc stub so
1551 2001-12-17 Joel Sherrill <joel@OARcorp.com>
1553 * libc/include/sys/types.h (ino_t): RTEMS uses long also.
1555 2001-12-17 Thomas Fitzsimmons <fitzsim@redhat.com>
1557 * libc/stdlib/Makefile.am (LIB_COMPILE): Change to equal
1558 $(COMPILE) rather than $(CC).
1559 * libc/stdio/Makefile.am (LIB_COMPILE): Likewise.
1560 (vfprintf.$(oext)): Remove $(INCLUDES), made redundant by
1561 $(LIB_COMPILE) change.
1562 (vfiprintf.$(oext)): Likewise.
1564 2001-12-17 Corinna Vinschen <vinschen@redhat.de>
1566 * libc/sys/cygwin/include/unistd.h: Add __UNISTD_GETOPT_ to allow
1567 conditionalized including of getopt stuff.
1569 2001-12-14 Thomas Fitzsimmons <fitzsim@redhat.com>
1571 * libc/stdio/Makefile.am (vfprintf.$(oext)): Add $(INCLUDES) to
1573 (vfiprintf.$(oext)): Likewise.
1575 2001-12-13 Thomas Fitzsimmons <fitzsim@redhat.com>
1577 * Makefile.shared: New file.
1578 * libc/sys/linux/shared.ld: New file.
1579 * libm/machine/*: New files.
1580 * libm/machine/i386/*: New files.
1581 * Makefile.am: Add libtool support. Change math and mathfp
1582 references to variables.
1583 * configure.host: Add variables for libtool support. Add
1584 libm_machine_dir variable.
1585 * configure.in: Add objectlist variables, for libtool
1586 support. Add CC_FOR_BUILD tests.
1587 * libc/Makefile.am: Add libtool support. Change crt0.o
1588 reference to be a variable reference.
1589 * libc/configure.in: Add libtool support. Change sublib
1590 names to be lib${subdir}.la when using libtool.
1591 * libc/ctype/Makefile.am: Add libtool support.
1592 * libc/errno/Makefile.am: Likewise.
1593 * libc/locale/Makefile.am: Likewise.
1594 * libc/machine/Makefile.am: Likewise.
1595 * libc/machine/configure.in: Likewise.
1596 * libc/machine/i386/Makefile.am: Likewise.
1597 * libc/machine/i386/configure.in: Likewise.
1598 * libc/misc/Makefile.am: Likewise.
1599 * libc/posix/Makefile.am: Likewise.
1600 * libc/reent/Makefile.am: Likewise.
1601 * libc/signal/Makefile.am: Likewise.
1602 * libc/stdio/Makefile.am: Likewise.
1603 * libc/stdlib/Makefile.am: Likewise.
1604 * libc/string/Makefile.am: Likewise.
1605 * libc/sys/Makefile.am: Likewise.
1606 * libc/sys/configure.in: Likewise.
1607 * libc/sys/linux/Makefile.am: Add libtool support. Change
1608 awk reference to a variable reference. Change signal.h
1609 reference to a variable reference.
1610 * libc/sys/linux/configure.in: Add libtool support.
1611 * libc/syscalls/Makefile.am: Likewise.
1612 * libc/time/Makefile.am: Likewise.
1613 * libc/unix/Makefile.am: Likewise.
1614 * libm/Makefile.am: Add libtool support. Change math and
1615 mathfp references to variables.
1616 * libm/configure.in: Add libtool support. Add
1617 LIBM_MACHINE_LIB variable.
1618 * libm/common/Makefile.am: Add libtool support.
1619 * libm/math/Makefile.am: Likewise.
1620 * libm/mathfp/Makefile.am: Likewise.
1621 Regenerate all Makefile.in, aclocal.m4, and configure.
1623 2001-12-13 Anita Kulkarni <anitak@kpit.com>
1625 * libc/sys/sh/crt0.S: Remove stack symbol definition 0xdeaddead.
1627 2001-12-06 John Peacock <jpeacock@rowman.com>
1629 * libc/include/sys/unistd.h: Correct ualarm declaration.
1631 2001-12-05 Nick Clifton <nickc@cambridge.redhat.com>
1633 * libc/sys/arm/crt0.S: For __USES_INITFINI__ preserve the argument
1634 vector before calling the initialisation functions.
1636 2001-11-29 Christopher Faylor <cgf@redhat.com>
1638 * libc/include/dirent.h: Protect against multiple inclusion.
1640 2001-11-27 Christopher Faylor <cgf@redhat.com>
1642 * libc/include/sys/types.h: Define useconds_t.
1643 * libc/include/sys/ulimit.h: Declare ualarm.
1645 2001-11-21 Christopher Faylor <cgf@redhat.com>
1647 * libc/sys/cygwin/sys/dirent.h (DIR): Add another internal element.
1649 2001-11-19 Hans-Peter Nilsson <hp@bitrange.com>
1651 * libc/sys/mmixware/*: Tweak license header in all source files.
1653 2001-11-12 Corinna Vinschen <vinschen@redhat.com>
1655 * libc/include/alloca.h: Move libc/sys/linux/include/alloca.h
1656 to here. Rearrange for general inclusion by stdlib.h.
1657 * libc/include/stdlib.h: Include <alloca.h> if __STRICT_ANSI__
1659 * libc/sys/linux/include/alloca.h: Move to libc/include.
1661 2001-11-12 Anthony Green <green@redhat.com>
1663 * libc/sys/arm/crt0.S (__stack_base__): New symbol.
1665 2001-11-13 Hans-Peter Nilsson <hp@bitrange.com>
1667 * libc/sys/mmixware/*: Correct spacing in all source files.
1668 * libc/sys/mmixware/syscall.h: Move misplaced file...
1669 * libc/sys/mmixware/sys/syscall.h: ...here.
1671 2001-11-12 Hans-Peter Nilsson <hp@bitrange.com>
1673 * libc/include/machine/ieeefp.h: Add support for mmix target.
1674 * libc/include/machine/setjmp.h: Ditto.
1675 * configure.host: Ditto.
1676 * libc/sys/mmixware/Makefile.am, libc/sys/mmixware/_exit.c,
1677 libc/sys/mmixware/access.c, libc/sys/mmixware/aclocal.m4,
1678 libc/sys/mmixware/chmod.c, libc/sys/mmixware/chown.c,
1679 libc/sys/mmixware/close.c, libc/sys/mmixware/configure.in,
1680 libc/sys/mmixware/creat.c, libc/sys/mmixware/crt0.c,
1681 libc/sys/mmixware/execv.c, libc/sys/mmixware/execve.c,
1682 libc/sys/mmixware/fork.c, libc/sys/mmixware/fstat.c,
1683 libc/sys/mmixware/getpid.c, libc/sys/mmixware/gettime.c,
1684 libc/sys/mmixware/isatty.c, libc/sys/mmixware/kill.c,
1685 libc/sys/mmixware/lseek.c, libc/sys/mmixware/open.c,
1686 libc/sys/mmixware/pipe.c, libc/sys/mmixware/read.c,
1687 libc/sys/mmixware/sbrk.c, libc/sys/mmixware/setjmp.S,
1688 libc/sys/mmixware/stat.c, libc/sys/mmixware/sys/syscall.h,
1689 libc/sys/mmixware/time.c, libc/sys/mmixware/times.c,
1690 libc/sys/mmixware/unlink.c, libc/sys/mmixware/utime.c,
1691 libc/sys/mmixware/wait.c, libc/sys/mmixware/write.c: New files.
1692 * libc/sys/mmixware/configure, libc/sys/mmixware/Makefile.in,
1693 libc/sys/mmixware/aclocal.m4: Generate.
1695 2001-11-05 Corinna Vinschen <corinna@vinschen.de>
1697 * libc/include/sys/unistd.h: Add prototypes for endusershell(),
1698 getusershell(), iruserok(), revoke(), ruserok() and setusershell()
1699 when __CYGWIN__ is defined.
1700 * libc/sys/cygwin/sys/utmp.h: Add prototypes for login_tty() and
1703 2001-11-01 Arati Dikey <aratidikey@hotmail.com>
1705 * libm/mathfp/sf_isinf.c (isinff): Change to use _DEFUN macro.
1706 [_DOUBLE_IS_32BITS](isinf): New function that calls isinff.
1707 * libm/mathfp/sf_isnan.c (isnanf): Change to use _DEFUN macro.
1708 [_DOUBLE_IS_32BITS](isnan): New function that calls isnanf.
1710 2001-10-24 Christopher Faylor <cgf@redhat.com>
1712 * libc/stdio/fseek.c: Reset pointer to buffer base
1713 when forced to seek outside of current buffer contents.
1714 This prevents the code from erroneously thinking there is
1715 anything in the current buffer.
1717 2001-10-22 Geoffrey Keating <geoffk@redhat.com>
1719 * libc/include/math.h: The C++ standard adds the single-precision
1720 versions of the elementary functions.
1722 2001-10-22 Christopher Faylor <cgf@redhat.com>
1724 * libc/posix/execvp.c: Remove obsolete CYGWIN32 considerations
1726 * signal.h: Change comment to reflect __CYGWIN__ rather than __CYGWIN32__.
1727 * popen.c (popen): Use __CYGWIN_ rather than __CYGWIN32__.
1728 * system.c (_system_r): Ditto.
1730 2001-10-17 Corinna Vinschen <corinna@vinschen.de>
1732 * libc/include/sys/unistd.h: Add prototype for fchdir() when
1733 __CYGWIN__ or __rtems__ is defined.
1735 2001-10-01 Charles Wilson <cwilson@ece.gatech.edu>
1737 * libc/include/stdlib.h: add declarations for
1738 _strtoull_r, _strtoll_r, strtoull, and strtoll.
1739 * libc/stdio/local.h: remove declarations of
1740 __strtoull_r and __strtoll_r.
1741 * libc/stdio/vfscanf.c(__svfscanf_r): call
1742 _strtoull_r instead of __strtoull_r. Ditto
1743 _strtoll_r vs. __strtoll_r.
1744 * libc/stdlib/Makefile.am: add new files to
1745 .c list and .def list
1746 * libc/stdlib/Makefile.in: regenerate
1747 * libc/stdlib/strtoll_r.c: rename __strtoll_r
1749 * libc/stdlib/strtoull_r.c: rename __strtoull_r
1751 * libc/stdlib/strtoull.c: new file
1752 * libc/stdlib/strtoll.c: new file
1754 Mon Sep 17 17:29:47 2001 Christopher Faylor <cgf@cygnus.com>
1756 * libc/include/process.h: Add getpid() declaration.
1758 2001-09-14 Nick Clifton <nickc@cambridge.redhat.com>
1760 * libc/sys/arm/crt0.S: Add calls to _init and _fini (via atexit)
1761 for new style arm/elf ctor/dtor handling.
1762 Minor formatting tidy up.
1764 2001-09-13 Jeff Johnston <jjohnstn@redhat.com>
1766 * libc/stdlib/Makefile.am: Add support to build strtoll_r.c
1768 * libc/stdlib/Makefile.in: Regenerated.
1769 * libc/stdlib/strtoll_r.c: New file.
1770 * libc/stdlib/strtoull_r.c: New file.
1771 * libc/stdio/local.h: Add prototypes for long long string
1772 conversion routines.
1773 * libc/stdio/vfscanf.c (__svfscanf_r): Add optional long long support
1774 tied to %L integer conversion specifier.
1776 Thu Sep 13 08:49:49 2001 Jason Tishler <jason@tishler.net>
1778 * strftime.c (strftime): Fix "%W" implementation to properly handle
1781 2001-09-07 Jeff Law <law@redhat.com>
1783 * libc/sys/h8300hms/crt0.S: For H8/300H and H8/S, load address of
1784 __fini with "mov.l" instead of "mov.w".
1786 2001-09-05 Corinna Vinschen <corinna@vinschen.de>
1788 * libc/sys/cygwin/include/unistd.h: New file, wrapping sys/unistd.h
1791 2001-09-04 Jason Merrill <jason_merrill@redhat.com>
1793 * libc/sys/h8300hms/crt0.S: Support ELF initialization.
1795 2001-09-03 Corinna Vinschen <corinna@vinschen.de>
1797 * libc/sys/cygwin/sys/dirent.h (struct dirent): Add version number
1799 (__DIRENT_VERSION): New define.
1801 2001-09-03 Corinna Vinschen <corinna@vinschen.de>
1803 * libc/sys/cygwin/sys/dirent.h (struct dirent): Add `d_fd' member.
1804 Shrink __d_reserved accordingly to keep structure size.
1805 (dirfd): Declare external.
1807 2001-08-29 Joel Sherrill <joel@OARcorp.com>
1809 * libc/include/sys/unistd.h: Prototype chroot() for RTEMS.
1811 2001-08-29 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
1813 * libc/machine/i386/f_atan2.S, libc/machine/i386/f_atan2f.S,
1814 libc/machine/i386/f_exp.c, libc/machine/i386/f_expf.c,
1815 libc/machine/i386/f_frexp.S, libc/machine/i386/f_frexpf.S,
1816 libc/machine/i386/f_ldexp.S, libc/machine/i386/f_ldexpf.S,
1817 libc/machine/i386/f_log.S, libc/machine/i386/f_log10.S,
1818 libc/machine/i386/f_log10f.S, libc/machine/i386/f_logf.S,
1819 libc/machine/i386/f_pow.c, libc/machine/i386/f_powf.c,
1820 libc/machine/i386/f_tan.S, libc/machine/i386/f_tanf.S:
1821 Add conditional compilation to avoid HW FPU instructions
1822 when compiled for soft-float.
1824 2001-08-29 Jeff Johnston <jjohnstn@redhat.com>
1826 * Makefile.am: Add check for ln failing when creating libg.a
1827 so that cp gets used as a backup.
1828 * Makefile.in: Regenerated.
1830 2001-08-29 Jeff Johnston <jjohnstn@redhat.com>
1832 * libc/include/sys/reent.h: Add include of <sys/_types.h>.
1833 No longer include time.h. Add struct __tm to use for
1834 _localtime_buf in the reentrant structure. Add a
1835 _NULL definition to use in initializing the reentrant struct.
1836 * libc/include/sys/config.h: For CYGWIN32 and RTEMS, change
1837 the _READ_WRITE_RETURN_TYPE to _ssize_t which is found in
1839 * libc/include/sys/unistd.h: Include <sys/_types.h>.
1840 * libc/time/lcltime.c (localtime): Cast the reentrant struct
1841 _localtime_buf to be struct tm *.
1843 Wed Aug 29 14:17:38 2001 J"orn Rennecke <amylaar@redhat.com>
1845 * configure.host (h8300-*-elf*, h8500-*-elf*): New cases.
1846 * libc/sys/h8300hms/crt1.c (__main): Don't reference __ctors /
1848 * libc/sys/h8300hms/syscalls.c: Include errno.h.
1849 (_unlink): New stub function.
1851 Sat Aug 25 22:22:25 2001 Christopher Faylor <cgf@cygnus.com>
1853 * libc/include/sys/errno.h: Add a cautionary comment.
1855 2001-08-21 Jeff Johnston <jjohnstn@redhat.com>
1857 * libc/stdlib/mallocr.c [!defined(MALLOC_ALIGNMENT)]: Add conditional
1858 for SIZE_SZ so that alignment ends up a minimum of 8.
1860 Mon Aug 13 22:26:01 2001 Christopher Faylor <cgf@cygnus.com>
1862 * libc/include/machine/setjmp.h: Protect sigsetjmp/siglongjmp macro
1865 * libc/include/sys/errno.h: Declare sys_errlist and sys_nerr, under
1868 2001-08-13 Jeff Johnston <jjohnstn@redhat.com>
1870 * libc/include/malloc.h (M_MXFAST, M_NLBLKS, M_GRAIN, M_KEEP): New
1871 macro constants for mallopt options.
1872 (M_TRIM_THRESHOLD, M_TOP_PAD, M_MMAP_THRESHOLD, M_MMAP_MAX): Ditto.
1874 2001-08-02 Jeff Johnston <jjohnstn@redhat.com>
1876 * libc/include/stdio.h (BUFSIZ): Define to __BUFSIZ__ if provided,
1879 2001-07-12 Aldy Hernandez <aldyh@redhat.com>
1881 * libc/machine/mips/setjmp.S: Allow mips16 and mips64 to coexist.
1883 2001-06-27 Nick Clifton <nickc@cambridge.redhat.com>
1885 * libc/include/machine/ieeefp.h (__IEEE_BYTES_LITTLE_ENDIAN):
1886 Define for little endian ARMs.
1888 * libc/stdlib/mprec.h (Storeinc): Use little endian version if
1889 __IEEE_BYTES_LITTLE_ENDIAN is defined.
1891 2001-06-11 Danny Smith <dannysmith@users.sourceforge.net>
1893 * /libc/include/ctype.h (is* and to* macros): Do not define if C++.
1895 2001-06-11 Egor Duda <deo@logos-m.ru>
1897 * libc/ctype/ctype_.c: When compiled with gcc on platforms
1898 with signed char, make _ctype_[-128] ... _ctype[-1] refer to
1899 initialized memory region. Platform can define COMPACT_CTYPE
1900 to avoid allocation of the additional 128 bytes of data.
1901 Add pointer to _ctype_ array. Always initialize all _ctype_
1904 2001-06-08 Jonathan Larmour <jlarmour@redhat.com>
1906 * libc/stdlib/mbtowc_r.c (_mbtowc_r): Avoid dereferencing
1909 2001-05-28 Nick Clifton <nickc@cambridge.redhat.com>
1911 * libc/stdio/vfprintf.c (_VFPRINTF_R): Handle printf ("%#.0o",0)
1913 2001-05-25 Nick Clifton <nickc@cambridge.redhat.com>
1915 * libc/machine/xscale/memcmp.c: Fix bug when both pointers have
1916 matching, non-word alignment, and the length is <= 4 but more than
1917 enough to move them over a word boundary.
1918 Add comments explaining what each instruction does.
1920 Mon May 7 20:39:25 2001 Christopher Faylor <cgf@cygnus.com>
1922 * libc/include/sys/stat.h: Revert March 3, Cygwin change.
1923 * libc/include/sys/unistd.h: Ditto.
1925 2001-05-04 Earnie Boyd <earnie@users.sourceforge.net>
1927 * libc/string/strrchr.c: Use strchr for the speed improvements.
1929 2001-05-01 Jeff Johnston <jjohnstn@redhat.com>
1931 * libc/stdio/findfp (__sinit)[HAVE_FCNTL]: For platforms that have
1932 real file systems, let __smakebuf() determine if line buffering
1933 should be used for stdout.
1935 2001-04-27 Jeff Johnston <jjohnstn@redhat.com>
1937 * libc/stdio/vfscanf.c (__svfscanf_r): Initialize new_exp local var.
1939 2001-04-27 Jeff Johnston <jjohnstn@redhat.com>
1941 * libc/include/stdlib.h: Add prototype for _strtod_r.
1943 2001-04-24 Charles Wilson <cwilson@ece.gatech.edu
1945 * libc/stdio/vprintf.c (vprintf): fix signature to use _DEFUN
1946 * libc/stdio/vprintf.c (_vprintf_r): new function
1947 * libc/stdio/vsnprintf.c (vsnprintf): fix signature to use _DEFUN
1948 * libc/stdio/vsnprintf.c (_vsnprintf_r): fix signature to use
1949 _DEFUN, and call _vfprintf_r, not vfprintf.
1950 * libc/stdio/vsprintf.c (vsprintf.c): fix signature to use _DEFUN
1951 * libc/stdio/vsprintf.c (_vsprintf_r): fix signature to use
1952 _DEFUN, and call _vfprintf_r, not vfprintf.
1954 2001-04-22 Earnie Boyd <earnie@users.sourceforge.net>
1956 * libc/include/sys/unistd.h [X_OK]: Use better protection against
1957 Cygwin X_OK definitions in sys/file.h.
1959 Fri Apr 20 23:17:51 2001 Christopher Faylor <cgf@cygnus.com>
1961 * libc/include/sys/time.h: Define timercmp and other macros for
1964 2001-04-20 Jeff Johnston <jjohnstn@redhat.com>
1966 * acinclude.m4: Added --enable-malloc-debugging configure flag.
1967 * configure.host: For Cygwin specify -DMALLOC_PROVIDED if
1968 --enable-malloc-debugging selected.
1969 * aclocal.m4 configure: Regenerated.
1970 libm/aclocal.m4 libm/configure: Ditto.
1971 * libc/aclocal.m4 libc/configure: Ditto.
1972 * libc/machine/aclocal.m4 libc/machine/configure: Ditto.
1973 * libc/machine/*/aclocal.m4 libc/machine/*/configure: Ditto.
1974 * libc/sys/aclocal.m4 libc/sys/configure: Ditto.
1975 * libc/sys/*/aclocal.m4 libc/sys/*/configure: Ditto.
1976 * doc/aclocal.m4 doc/configure: Ditto.
1978 2001-04-20 Jeff Johnston <jjohnstn@redhat.com>
1980 * libc/include/stdio.h[!_REENT_ONLY]: Moved various functions together
1982 [!__STRICT_ANSI__]: Moved non-ANSI I/O functions in this list.
1983 (vfscanf, vscanf, vsscanf, _vfscanf_r, _vscanf_r, _vsscanf_r): New
1984 function prototypes.
1985 (_fscanf_r, _sscanf_r): Ditto.
1986 * libc/include/stdlib.h: Added _strtod_r prototype.
1987 * libc/stdio/Makefile.am: Add new v*scanf functions.
1988 * libc/stdio/Makefile.in: Regenerate.
1989 * libc/stdio/fscanf.c: Reorganized so HAVE_STDC only affects prototype
1990 and code is shared. Added reentrant _fscanf_r which calls __svfscanf_r.
1991 * libc/stdio/scanf.c: Changed to call __svfscanf_r.
1992 * libc/stdio/sscanf.c: Changed documentation to add reentrant routines.
1993 (sscanf): Changed to call __svfscanf_r with _REENT argument.
1994 (_sscanf_r): New routine.
1995 * libc/stdio/local.h: Removed __svfscanf prototype and replaced it
1996 with __svfscanf_r prototype.
1997 * libc/stdio/vfscanf.c (vfscanf, _vfscanf_r: New
1999 (__svfscanf_r): Reentrant version of __svfscanf which takes reetrancy
2000 structure as argument as calls reentrant versions of helper functions
2001 (e.g. _strtol_r, _strtoul_r). Also replaced calls to atol and atof
2002 to _strtol_r and _strtod_r respectively.
2003 * libc/stdio/vfscanf.c: Also changed __svfscanf to call __svfscanf_r.
2004 * libc/stdlib/strtod.c (strtod): Changed to call _strtod_r with
2006 * libc/stdio/vscanf.c: New file.
2007 * libc/stdio/vsscanf.c: Ditto.
2009 2001-04-19 Robert Collins <rbtcollins@hotmail.com>
2011 * include/time.h[__CYGWIN__]: Define tzname to _tzname if not defined.
2012 Define daylight to _daylight if it is not defined
2013 Prepare a variable export of timezone based on timezonevariable.
2014 (Cannot be used with the timezone() function.)
2016 2001-04-17 Stephen L. Moshier <moshier@moshier.ne.mediaone.net>
2018 * newlib/libm/math/ef_asin.c (pio2_hi, pio2_lo, pio4_hi):
2019 Correct the numerical values.
2021 2001-04-13 Robert Collins <rbtcollins@hotmail.com>
2023 * libc/include/sys/unistd.h: Add pthread_atfork (Cygwin only).
2025 Thu Apr 12 23:11:00 2001 Corinna Vinschen <corinna@vinschen.de>
2027 * libc/include/sys/errno.h: Add ECASECLASH to indicate case clash
2028 on case insensitve file systems.
2030 2001-04-12 Robert Collins <rbtcollins@hotmail.com>
2032 * libc/include/sys/features.h: Add appropriate defines for Cygwin
2034 * libc/include/sys/signal.h: Remove unneeded __CYGWIN__ protection.
2035 * libc/include/sys/types.h: Protect __CYGWIN__ from the rtems pthreads
2036 types. Include <cygwin/types.h> for the cygwin specific typedefs.
2038 2001-04-04 Richard Sandiford <rsandifo@redhat.com>
2040 * libc/include/machine/ieeefp.h: Comment about new configuration
2041 macros _FLT_LARGEST_EXPONENT_IS_NORMAL and _FLT_NO_DENORMALS.
2042 * libm/common/fdlib.h: Define new macros for testing floats.
2043 * libm/common/sf_*: Use them.
2044 * libm/math/ef_*: Likewise.
2045 * libm/math/sf_*: Likewise.
2047 2001-03-29 Jeff Johnston <jjohnstn@redhat.com>
2049 * libc/sys/arm/setjmp.S: Added .code 16 specifier for thumb-mode
2050 prolog to by-pass possible assembler error.
2052 2001-03-21 Egor Duda <deo@logos-m.ru>
2054 Allow building internal stubs for non-reentrant syscalls
2055 if target provides its own malloc
2056 * libc/reent/reent.c (errno): Move definition here.
2057 * libc/reent/sbrkr.c: From here.
2059 2001-03-20 Danny Smith <dannysmith@users.sourceforge.net>
2061 * libc/include/sys/types.h (BSD int typedefs): Guard with
2062 _BSDTYPES_DEFINED rather than _WINSOCK_H.
2063 (fd_set): Add !defined __USE_W32_SOCKETS to guard; define
2065 * libc/include/sys/unistd.h (gethostname): Don't declare if defined
2066 (_WINSOCK_H) || defined (__USE_W32_SOCKETS).
2068 Sat Mar 17 18:30:00 2001 Corinna Vinschen <corinna@vinschen.de>
2070 * libc/include/sys/unistd.h: Add _PC_POSIX_PERMISSONS and
2071 _PC_POSIX_SECURITY constants for Cygwin.
2073 Wed Mar 14 9:34:00 2001 Corinna Vinschen <corinna@vinschen.de>
2075 * libc/sys/cygwin/crt0.c: Add copyright hint.
2076 * libc/sys/cygwin/sys/dirent.h: Ditto.
2077 * libc/sys/cygwin/sys/param.h: Ditto.
2078 * libc/sys/cygwin/sys/utime.h: Ditto.
2079 * libc/sys/cygwin/sys/utmp.h: Ditto.
2081 2001-03-13 Alexandre Oliva <aoliva@redhat.com>
2083 * libc/stdio/vfprintf.c (QUADINT) [_NO_LONGLONG]: Make it
2084 equivalent to LONGINT.
2086 2001-03-08 Richard Sandiford <rsandifo@redhat.com>
2088 * (libc/include/machine/setjmp.h): Use 23 long long ints for a
2089 jmpbuf on MIPS64 targets.
2090 * (libc/machine/mips/setjmp.S): Add MIPS64 version.
2092 Wed Mar 7 16:02:07 2001 Christopher Faylor <cgf@cygnus.com>
2094 * libc/include/sys/config.h: Use ssize_t for Cygwin read/write
2097 Mon Mar 5 21:48:54 2001 J"orn Rennecke <amylaar@redhat.com>
2099 * libc/include/sys/config.h (_READ_WRITE_RETURN_TYPE): Define.
2100 For RTEMS, define to be ssize_t. Default to int if not defined.
2101 * libc/stdio/sscanf.c (eofread): Return _READ_WRITE_RETURN_TYPE.
2102 * libc/stdio/stdio.c (__sread, __swrite): Likewise.
2103 * libc/stdio/local.h (__sread, __swrite): Likewise.
2104 * libc/include/sys/reent.h (_read, _write): Likewise.
2105 * libc/include/sys/unistd.h (read, write, _read, _write): Likewise.
2106 * libc/syscalls/sysread.c (read): Likewise.
2107 * libc/syscalls/syswrite.c (write): Likewise.
2109 2001-03-05 Jeff Johnston <jjohnstn@redhat.com>
2111 * libc/time/mktime.c: Add L suffix to _SEC_IN_xxxx constants.
2113 Sat Mar 3 00:34:14 2001 Christopher Faylor <cgf@cygnus.com>
2115 * libc/include/sys/stat.h: Use special defines for executable stat bits
2116 when compiling for Cygwin.
2117 * libc/include/sys/unistd.h: Use special define for X_OK when compiling
2120 2001-03-02 Jeff Johnston <jjohnstn@redhat.com>
2122 * libc/string/strtok.c: Add #undef of __STRICT_ANSI__ so prototype
2123 of strtok_r is always defined.
2125 2001-03-02 Jeff Johnston <jjohnstn@redhat.com>
2127 * libc/include/machine/ansi.h: New dummy header file.
2129 2001-02-22 Jeff Johnston <jjohnstn@redhat.com>
2131 * libc/include/machine/setjmp-dj.h: With DJ Delorie's permission,
2132 changed the copyright information to allow free modification of the
2133 file with no reference to "copying.dj".
2134 * libc/include/sys/stat-dj.h: Ditto.
2135 * libc/machine/i386/setjmp.S: Ditto.
2136 * libc/sys/h8300hms/sys/file.h: Ditto.
2137 * libc/sys/sysmec/access.c: Ditto.
2138 * libc/sys/sysnecv850/access.c: Ditto.
2139 * libc/stdio/mktemp.c: Fixed typo for the word copyright.
2140 * libc/stdlib/getenv_r.c: Ditto.
2141 * libc/stdlib/putenv_r.c: Ditto.
2142 * libc/stdlib/setenv_r.c: Ditto.
2143 * libc/stdlib/getenv.c: Removed DJ reference since any possible
2144 modifications will now be in the _r version of this file.
2145 * libc/stdlib/putenv.c: Ditto.
2146 * libc/stdlib/setenv.c: Ditto.
2147 * libc/sys/go32/copying.dj: Removed DJ's address which is no longer
2148 valid. Added a reference to DJ's web page that contains his address.
2149 * libc/sys/go32/*.s: Removed references to DJ's old address.
2150 * libc/sys/go32/*.c: Ditto.
2151 * libc/sys/go32/*.h: Ditto.
2152 * libc/sys/go32/*.S: Ditto.
2153 * libc/sys/go32/sys/*.h: Ditto.
2155 2001-02-21 Jeff Johnston <jjohnstn@redhat.com>
2157 * libc/stdio/fdopen.c (fdopen): Protect calls to _fcntl() with
2158 HAVE_FCNTL flag check.
2159 * configure.host: Define HAVE_FCNTL for Cygwin, go32, RTEMS, sparc64,
2160 powerpcle, x86 netware, x86 sco, x86 Linux and Vxworks.
2162 Thu Feb 15 01:39:51 2001 Christopher Faylor <cgf@cygnus.com>
2164 * libc/include/sys/signal.h: Always include sys/types.h under Cygwin.
2166 2001-02-14 Kazuhiro Fujieda <fujieda@jaist.ac.jp>
2168 * libc/include/stdlib.h: Add declarations of rand48 functions and
2169 their reentrant versions.
2170 * libc/include/sys/reent.h: Move macros from rand48.h. Add
2171 struct _rand48 for shared parameters of rand48 functions.
2172 (struct _reent): Add a variable _r48 of struct _rand48.
2173 (_REENT_INIT): Add _r48 initialization.
2174 * libc/stdlib/Makefile.am (lib_a_SOURCES): Add rand48 functions.
2175 (CHEWOUT_FILES): Add rand48.def.
2176 * libc/stdlib/Makefile.am: Add dependencies for rand48 functions.
2177 * libc/stdlib/Makefile.in: Regenerated.
2178 * libc/stdlib/drand48.c (drand48, _drand48_r): Derived from the
2180 * libc/stdlib/erand48.c (erand48, _erand48_r): Ditto.
2181 * libc/stdlib/jrand48.c (jrand48, _jrand48_r): Ditto.
2182 * libc/stdlib/lcong48.c (lcong48, _lcong48_r): Ditto.
2183 * libc/stdlib/lrand48.c (lrand48, _lrand48_r): Ditto.
2184 * libc/stdlib/mrand48.c (mrand48, _mrand48_r): Ditto.
2185 * libc/stdlib/nrand48.c (nrand48, _nrand48_r): Ditto.
2186 * libc/stdlib/seed48.c (seed48, _seed48_r): Ditto.
2187 * libc/stdlib/srand48.c (srand48, _srand48_r): Ditto.
2188 * libc/stdlib/rand48.c (__dorand48): Ditto.
2189 * libc/stdlib/rand48.h: Ditto, and modify declarations of global
2190 parameters into macros referring them in the reentrant structure.
2192 2001-02-12 Jeff Johnston <jjohnstn@redhat.com>
2194 * libc/include/sys/stat.h: Add mknod for Cygwin now that
2195 Cygwin definition has correct prototype.
2197 2001-02-08 Jeff Johnston <jjohnstn@redhat.com>
2199 * libc/include/sys/stat.h: Must revert change for mknod
2200 for CYGWIN until winsup/cygwin/syscalls.cc changes mknod
2203 2001-02-08 Jeff Johnston <jjohnstn@redhat.com>
2205 * libc/include/stdio.h: Revert putw prototype.
2207 2001-02-08 Edward M. Lee <tailbert@yahoo.com>
2209 * libc/include/grp.h: add prototype for initgroups.
2210 * libc/include/stdio.h: fix prototype for putw.
2211 * libc/include/sys/signal.h: add prototype for killpg.
2212 * libc/include/sys/stat.h: enable mknod/lstat for CYGWIN.
2213 * libc/include/sys/unistd.h: add prototypes for getpgid, setpgrp,
2214 vhangup and remove duplicate sysconf prototype.
2216 2001-02-07 Jeff Johnston <jjohnstn@redhat.com>
2218 * libc/sys/rtems/sys/types.h: Removed.
2220 2001-02-05 Charles Wilson <cwilson@ece.gatech.edu>
2222 * libc/include/locale.h: add LC_MESSAGES definition
2224 2001-02-01 Alexandre Oliva <aoliva@redhat.com>
2226 * libc/sys/sh/sys/syscall.h (SYS_get_argc, SYS_get_argN_len,
2228 * libc/sys/sh/syscalls.c (__setup_argv_for_main,
2229 __setup_argv_and_call_main): New.
2231 2001-01-31 Jeff Johnston <jjohnstn@redhat.com>
2233 * libc/include/stdio.h (FILENAME_MAX): Changed to use __FILENAME_MAX__
2235 (FOPEN_MAX): Changed to use __FOPEN_MAX__ if defined.
2236 (L_tmpnam): Changed to use __L_tmpnam__ if defined.
2237 * libc/include/sys/config.h: Changed to set __FILENAME_MAX__
2238 appropriately for Cygwin and RTEMS so not to exceed PATH_MAX.
2240 Mon Jan 29 23:03:06 2001 Christopher Faylor <cgf@cygnus.com>
2242 * libc/stdlib/mallocr.c: Undefine windows preprocessor variables when
2243 compiling under Cygwin.
2245 2001-01-29 Jeff Johnston <jjohnstn@redhat.com>
2247 * libc/include/math.h (signgam): Change to errno-like solution
2248 using a function to return the address of the real signgam.
2249 * libc/reent/signgam.c: New file containing __signgam().
2250 * libc/reent/Makefile.am: Added signgam.c to list of files.
2251 * libc/reent/Makefile.in: Regenerated.
2253 2001-01-25 Alexandre Oliva <aoliva@redhat.com>
2255 * libc/sys/sh/syscalls.c (_times): New.
2257 * configure.host (sh*-*-*): Add -DHAVE_GETTIMEOFDAY to newlib_cflags.
2258 * libc/sys/sh/syscalls.c (_gettimeofday): New.
2260 2001-01-23 Jeff Johnston <jjohnstn@redhat.com>
2262 * libc/include/math.h (signgam): Regress previous fix as
2263 it does not handle programs with extern int signgam in them.
2265 2001-01-23 Jeff Johnston <jjohnstn@redhat.com>
2267 * libc/include/math.h (signgam): Changed to a macro refering to
2268 its location in the reentrant structure.
2270 2001-01-23 Jeff Johnston <jjohnstn@redhat.com>
2272 * libc/stdio/vfprintf.c (_VFPRINTF_R): Modification to fix
2273 that suppressed . for %.0f, 0.1. Check now looks if there
2274 are padding zeroes (expt) in addition to any digits (ndig) to
2277 2001-01-18 Jeff Johnston <jjohnstn@redhat.com>
2279 * libc/sys/arc/Makefile.am: New file.
2280 * libc/sys/arc/Makefile.in: Ditto.
2281 * libc/sys/arc/aclocal.m4: Ditto.
2282 * libc/sys/arc/configure: Ditto.
2283 * libc/sys/arc/configure.in: Ditto.
2284 * libc/sys/arc/crt0.S: Ditto.
2285 * libc/sys/arc/isatty.c: Ditto.
2286 * libc/sys/arc/mem-layout.c: Ditto.
2287 * libc/sys/arc/sbrk.c: Ditto.
2288 * libc/sys/arc/syscalls.c: Ditto.
2289 * libc/sys/arc/sys/syscall.h: Ditto.
2291 Wed Jan 17 23:20:56 2001 Christopher Faylor <cgf@cygnus.com>
2293 * libc/include/sys/unistd.h: Use correct declaration for setdtablesize.
2295 Fri Jan 12 00:34:31 2001 Christopher Faylor <cgf@cygnus.com>
2297 * libc/include/sys/signal.h: Add some SA_* defines for Cygwin.
2299 Thu Jan 11 20:42:06 2001 Earnie Boyd <earnie_boyd@yahoo.com>
2301 * libc/include/sys/features.h: __CYGWIN__ preferred over __CYGWIN32__
2303 2001-01-09 Nick Clifton <nickc@redhat.com>
2305 * configure.host (v859): Remove unsupported compiler options.
2307 Fri Jan 5 19:57:00 EST 2001 Aaron J. Grier <aaron@frye.com>
2309 * src/newlib/configure.host (*-*-rtems*): add printf long long
2312 2000-12-19 Graham Stott <grahams@redhat.com>
2314 * libc/machine/xscale/memcmp.c (memcmp): Add clobber for "lr".
2316 Wed Dec 14 Jeff Johnston <jjohnstn@redhat.com>
2318 * configure.host: Turn on long double I/O for Cygwin.
2320 Wed Dec 14 Jeff Johnston <jjohnstn@redhat.com>
2322 * MAINTAINERS: Removed Ranjith.
2323 * NEWS: Updated for 1.9.0.
2325 * acinclude.m4: Updated to release 1.9.0.
2326 * aclocal.m4 configure
2327 doc/aclocal.m4 doc/configure libc/aclocal.m4 libc/configure
2328 libc/machine/aclocal.m4 libc/machine/configure
2329 libc/machine/a29k/aclocal.m4 libc/machine/a29k/configure
2330 libc/machine/arm/aclocal.m4 libc/machine/arm/configure
2331 libc/machine/d10v/aclocal.m4 libc/machine/d10v/configure
2332 libc/machine/d30v/aclocal.m4 libc/machine/d30v/configure
2333 libc/machine/fr30/aclocal.m4 libc/machine/fr30/configure
2334 libc/machine/h8300/aclocal.m4 libc/machine/h8300/configure
2335 libc/machine/h8500/aclocal.m4 libc/machine/h8500/configure
2336 libc/machine/hppa/aclocal.m4 libc/machine/hppa/configure
2337 libc/machine/i386/aclocal.m4 libc/machine/i386/configure
2338 libc/machine/i960/aclocal.m4 libc/machine/i960/configure
2339 libc/machine/m32r/aclocal.m4 libc/machine/m32r/configure
2340 libc/machine/m68k/aclocal.m4 libc/machine/m68k/configure
2341 libc/machine/m88k/aclocal.m4 libc/machine/m88k/configure
2342 libc/machine/mips/aclocal.m4 libc/machine/mips/configure
2343 libc/machine/mn10200/aclocal.m4 libc/machine/mn10200/configure
2344 libc/machine/mn10300/aclocal.m4 libc/machine/mn10300/configure
2345 libc/machine/necv70/aclocal.m4 libc/machine/necv70/configure
2346 libc/machine/powerpc/aclocal.m4 libc/machine/powerpc/configure
2347 libc/machine/sh/aclocal.m4 libc/machine/sh/configure
2348 libc/machine/sparc/aclocal.m4 libc/machine/sparc/configure
2349 libc/machine/tic80/aclocal.m4 libc/machine/tic80/configure
2350 libc/machine/v850/aclocal.m4 libc/machine/v850/configure
2351 libc/machine/w65/aclocal.m4 libc/machine/w65/configure
2352 libc/machine/xscale/aclocal.m4 libc/machine/xscale/configure
2353 libc/machine/z8k/aclocal.m4 libc/machine/z8k/configure
2354 libc/sys/aclocal.m4 libc/sys/configure
2355 libc/sys/a29khif/aclocal.m4 libc/sys/a29khif/configure
2356 libc/sys/arm/aclocal.m4 libc/sys/arm/configure
2357 libc/sys/cygwin/aclocal.m4 libc/sys/cygwin/configure
2358 libc/sys/d10v/aclocal.m4 libc/sys/d10v/configure
2359 libc/sys/decstation/aclocal.m4 libc/sys/decstation/configure
2360 libc/sys/go32/aclocal.m4 libc/sys/go32/configure
2361 libc/sys/h8300hms/aclocal.m4 libc/sys/h8300hms/configure
2362 libc/sys/h8500hms/aclocal.m4 libc/sys/h8500hms/configure
2363 libc/sys/linux/aclocal.m4 libc/sys/linux/configure
2364 libc/sys/m88kbug/aclocal.m4 libc/sys/m88kbug/configure
2365 libc/sys/netware/aclocal.m4 libc/sys/netware/configure
2366 libc/sys/rtems/aclocal.m4 libc/sys/rtems/configure
2367 libc/sys/sh/aclocal.m4 libc/sys/sh/configure
2368 libc/sys/sparc64/aclocal.m4 libc/sys/sparc64/configure
2369 libc/sys/sun4/aclocal.m4 libc/sys/sun4/configure
2370 libc/sys/sysmec/aclocal.m4 libc/sys/sysmec/configure
2371 libc/sys/sysnec810/aclocal.m4 libc/sys/sysnec810/configure
2372 libc/sys/sysnecv850/aclocal.m4 libc/sys/sysnecv850/configure
2373 libc/sys/sysvi386/aclocal.m4 libc/sys/sysvi386/configure
2374 libc/sys/sysvnecv70/aclocal.m4 libc/sys/sysvnecv70/configure
2375 libc/sys/tic80/aclocal.m4 libc/sys/tic80/configure
2376 libc/sys/w65/aclocal.m4 libc/sys/w65/configure
2377 libc/sys/z8ksim/aclocal.m4 libc/sys/z8ksim/configure
2378 libm/aclocal.m4 libm/configure: Regenerated.
2380 Wed Dec 13 11:52:00 2000 Corinna Vinschen <vinschen@cygnus.com>
2382 * libc/include/sys/unistd.h: Add declarations for `chroot' and `getwd'
2383 when __CYGWIN__ is defined.
2385 2000-12-13 Jeff Johnston <jjohnstn@redhat.com>
2387 * libc/stdlib/ldtoa.c (_ldcheck): New routine
2388 that categorizes a long double as NaN, Infinity, or other.
2389 * libc/stdio/vfprintf.c [WANT_IO_LONG_DBL](_VFPRINTF_R): Removed
2390 isinfl and isnanl static routines which were i386-specific. Changed
2391 calls to the two removed routines to a single _ldcheck call.
2392 * libc/stdio/vfieeefp.h (ldieee): Fixed missing semi-colons.
2394 2000-12-13 Jeff Johnston <jjohnstn@redhat.com>
2396 * Makefile.am: Fixed install-data-local target to use
2397 $(mkinstalldirs) for the installed header files to ensure
2398 the directories exist before copying.
2399 * Makefile.in: Regenerated.
2401 2000-12-12 Jeff Johnston <jjohnstn@redhat.com>
2403 * libc/include/sys/unistd.h: Restored Cygwin _SC
2404 constants and moved new constants appropriately
2405 so Cygwin will build.
2407 2000-12-11 Joel Sherrill <joel@OARcorp.com>
2409 * Merge RTEMS specific .h files into main libc/include.
2410 * libc/sys/rtems/include/signal.h: Removed.
2411 * libc/sys/rtems/include/time.h: Removed.
2412 * libc/sys/rtems/sys/features.h: Removed.
2413 * libc/sys/rtems/sys/sched.h: Removed.
2414 * libc/sys/rtems/sys/siginfo.h: Removed.
2415 * libc/sys/rtems/sys/signal.h: Removed.
2416 * libc/sys/rtems/sys/time.h: Removed.
2417 * libc/sys/rtems/sys/times.h: Removed.
2418 definitions for time_t and clock_t since these are
2419 no longer in time.h.
2420 * libc/include/pthread.h: New file.
2421 * libc/include/sys/sched.h: New file.
2422 * libc/include/sys/features.h: New file.
2423 * libc/include/time.h: Removed duplicate definition of clock_t
2424 and time_t, get them from <sys/types.h> instead. Add prototypes
2425 for POSIX clock and timer functionality.
2426 * libc/sys/linux/sys/types.h: Changed to include
2427 * libc/include/machine/types.h: Add _CLOCKID_T_ and _TIMER_T_.
2428 * libc/include/sys/signal.h: Add more complete set of POSIX
2429 signal functionality including real-time and threaded signals.
2430 * libc/include/sys/types.h: Add clock_t, time_t, struct
2431 timespec, and struct itimerspec. Centralizing these makes
2432 things cleaner. RTEMS uses 64-bit dev_t.
2433 Added numerous primitive definitions
2434 for pthreads including macros, pthread_attr_t,
2435 pthread_mutexattr_t, pthread_condattr_t, pthread_key_t,
2436 pthread_once_t, and pthread_t.
2437 * libc/include/sys/unistd.h: Added getlogin_r() prototype.
2438 If RTEMS follow POSIX on read(), write() and sbrk() prototype.
2439 Feature flags removed and moved to new file <sys/features.h>.
2440 Full set of POSIX sysconf() constants
2442 2000-12-08 Werner Almesberger <Werner.Almesberger@epfl.ch>
2444 * configure.host: Added x86 linux target.
2445 * libc/unix/getpass.c (_PATH_PASSWD, _PASSWORD_LEN): Default
2446 definitions provided if not already defined.
2447 * libc/sys/linux/crt0.c: New file.
2448 * libc/sys/linux/Makefile.am: Ditto.
2449 * libc/sys/linux/Makefile.in: Ditto.
2450 * libc/sys/linux/aclocal.m4: Ditto.
2451 * libc/sys/linux/brk.c: Ditto.
2452 * libc/sys/linux/configure: Ditto.
2453 * libc/sys/linux/configure.in: Ditto.
2454 * libc/sys/linux/getoptlong.c: Ditto.
2455 * libc/sys/linux/ids.c: Ditto.
2456 * libc/sys/linux/inode.c: Ditto.
2457 * libc/sys/linux/io.c: Ditto.
2458 * libc/sys/linux/linux.c: Ditto.
2459 * libc/sys/linux/process.c: Ditto.
2460 * libc/sys/linux/realpath.c: Ditto.
2461 * libc/sys/linux/select.c: Ditto.
2462 * libc/sys/linux/signal.c: Ditto.
2463 * libc/sys/linux/systat.c: Ditto.
2464 * libc/sys/linux/termios.c: Ditto.
2465 * libc/sys/linux/time.c: Ditto.
2466 * libc/sys/linux/wait.c: Ditto.
2467 * libc/sys/linux/include/alloca.h: Ditto.
2468 * libc/sys/linux/include/getopt.h: Ditto.
2469 * libc/sys/linux/include/stdint.h: Ditto.
2470 * libc/sys/linux/include/unistd.h: Ditto.
2471 * libc/sys/linux/sys/cdefs.h: Ditto.
2472 * libc/sys/linux/sys/dirent.h: Ditto.
2473 * libc/sys/linux/sys/errno.h: Ditto.
2474 * libc/sys/linux/sys/fcntl.h: Ditto.
2475 * libc/sys/linux/sys/file.h: Ditto.
2476 * libc/sys/linux/sys/ioctl.h: Ditto.
2477 * libc/sys/linux/sys/resource.h: Ditto.
2478 * libc/sys/linux/sys/signal.h: Ditto.
2479 * libc/sys/linux/sys/stat.h: Ditto.
2480 * libc/sys/linux/sys/syscall.h: Ditto.
2481 * libc/sys/linux/sys/termios.h: Ditto.
2482 * libc/sys/linux/sys/time.h: Ditto.
2483 * libc/sys/linux/sys/types.h: Ditto.
2484 * libc/sys/linux/sys/utmp.h: Ditto.
2485 * libc/sys/linux/sys/utsname.h: Ditto.
2486 * libc/sys/linux/sys/wait.h: Ditto.
2488 2000-12-08 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
2490 * Makefile.am: $(INSTALL), $(INSTALL_DATA), and $(INSTALL_PROGRAM)
2491 can be a relative path to $(top_srcdir)/install.sh so ensure the
2492 autoconf detected settings are properly passed recursively.
2493 Similarly, add AM_MAKEFLAGS to FLAGS_TO_PASS so they also get passed
2494 properly to subdirectories.
2495 * Makefile.in: Regenerated.
2497 2000-12-07 Jay Kulpinski <jskulpin@eng01.gdds.com>
2499 * libc/stdio/vfprintf.c: Minor modification to avoid requiring
2500 a floating point register unless really printing a floating
2503 2000-12-07 Jeff Johnston <jjohnstn@redhat.com>
2505 * libc/stdlib/ldtoa.c: Removed include of alloca.h.
2507 (asctoeg): Replaced alloca call with stack array and malloc
2508 when storage exceeds reasonable limit.
2509 (e53toe): Fixed einfin calls missing ldp parameter.
2510 (eiisinf): Hide behind check for LDBL_MANT_DIG == 64.
2512 2000-12-06 Jeff Johnston <jjohnstn@redhat.com>
2515 * libc/stdio/vfscanf.c: Fix typo for _NO_LONGDBL macro.
2517 2000-12-06 Jeff Johnston <jjohnstn@redhat.com>
2519 * libc/stdlib/Makefile.am: Added ldtoa.c to list of sources.
2520 * libc/stdlib/Makefile.in: Regenerated.
2521 * libc/stdio/floatio.h: Added suitable MAXEXP for long double.
2522 * libc/stdio/vfieeefp.h: Added long double bit structures.
2523 * libc/stdio/vfprintf.c[WANT_IO_LONG_DBL]: Added long double support.
2524 [WANT_IO_LONG_DBL](isinfl, isnanl): New static long double routines.
2525 (exponent): Changed expbuf to reasonable maximum instead of MAXEXP.
2526 * libc/stdio/vfscanf.c[WANT_IO_LONG_DBL]: Added long double support.
2527 * libc/stdlib/ldtoa.c: New file containing _ldtoa_r and
2528 _strtold routines used for conversions between character
2531 Wed Dec 6 12:01:00 2000 Corinna Vinschen <vinschen@cygnus.com>
2533 * libc/include/stdlib.h: Add declarations for `mkstemp' and `mktemp'.
2535 2000-12-04 Joel Sherrill <joel@OARcorp.com>
2537 * libc/include/machine/time.h: RTEMS systems can configure clock
2538 tick rate so use sysconf() to ask.
2540 2000-12-04 Joel Sherrill <joel@OARcorp.com>
2542 * libc/include/sys/times.h: Add reference to POSIX standard.
2544 2000-12-04 Joel Sherrill <joel@OARcorp.com>
2546 * libc/include/sys/time.h: Added BSD timer manipulation macros
2549 2000-12-04 Joel Sherrill <joel@OARcorp.com>
2551 * libc/sys/rtems/crt0.c: Add stubs for functions implicitly
2552 referenced by code generated by gcc 2.8.1.
2553 (a29k): Add stubs for V_SPILL, V_FILL, V_BSD_OS, V_EPI_OS to
2556 2000-12-04 Joel Sherrill <joel@OARcorp.com>
2558 * libc/stdlib/system.c: Avoid compiling do_system() for RTEMS.
2560 2000-12-04 Joel Sherrill <joel@OARcorp.com>
2562 * libc/include/ieeefp.h: Added entries for OpenCores CPUs.
2564 2000-12-04 Joel Sherrill <joel@OARcorp.com>
2566 * configure.host (or16, or32): New entries for OpenCores
2568 (*-*-rtems*): Add -DNO_EXEC.
2570 2000-12-04 Keith Outwater <vac4050@cae597.rsc.raytheon.com>
2572 * libc/include/sys/errno.h: Added comments on many error numbers.
2573 * libc/string/strerror.c: Added some more strings.
2575 2000-11-30 Jeff Johnston <jjohnstn@redhat.com>
2577 * libc/sys/sh/syscalls.c (_link): New stub.
2579 2000-11-29 Nick Clifton <nickc@redhat.com>
2581 * configure.host: Add xscale target.
2582 * libc/machine/xscale: New directory.
2583 * libc/machine/xscale/Makefile.am: New file.
2584 * libc/machine/xscale/Makefile.in: New file.
2585 * libc/machine/xscale/aclocal.m4: New file.
2586 * libc/machine/xscale/configure: New file.
2587 * libc/machine/xscale/configure.in: New file.
2588 * libc/machine/xscale/memchr.S: New file.
2589 * libc/machine/xscale/memcmp.S: New file.
2590 * libc/machine/xscale/memcpy.S: New file.
2591 * libc/machine/xscale/memmove.S: New file.
2592 * libc/machine/xscale/memset.S: New file.
2593 * libc/machine/xscale/strchr.S: New file.
2594 * libc/machine/xscale/strcmp.S: New file.
2595 * libc/machine/xscale/strcpy.S: New file.
2596 * libc/machine/xscale/strlen.S: New file.
2598 Sat Nov 25 11:24:00 2000 Corinna Vinschen <vinschen@cygnus.com>
2600 * libc/include/sys/types.h: Change i to `__i' in FD_ZERO macro to
2601 avoid compiler warnings.
2603 2000-11-22 Michael Meissner <meissner@redhat.com>
2605 * libc/posix/execl.c (execl): Don't reference environ directly,
2606 reference it only via a static pointer to avoid problems with some
2607 shared library systems and with different uses of small data where
2608 the user specifies his own version of environ.
2609 * libc/posix/execv.c (execv): Ditto.
2610 * libc/stdlib/getenv_r.c (_findenv_r): Ditto.
2611 * libc/stdlib/setenv_r.c (_setenv_r,_unsetenv_r): Ditto.
2612 * libc/stdlib/system.c (system, !cygwin32 case): Ditto.
2614 * libc/stdlib/getenv.c (environ): Delete unused reference to
2617 * libc/stdlib/getenv_r.c: Make initial comment friendlier to emacs
2619 * libc/stdlib/system.c: Ditto.
2621 Tue Nov 21 20:32:21 2000 Christopher Faylor <cgf@cygnus.com>
2623 * libc/sys/cygwin/sys/dirent.h: Change definition to avoid necessity of
2624 including windows headers.
2626 2000-11-20 Jeff Johnston <jjohnstn@redhat.com>
2628 * libc/include/sys/unistd.h: Removed definition of MAXNAMLEN.
2629 * libc/include/dirent.h: Added definition of MAXNAMLEN if
2630 not defined by sys/dirent.h.
2631 * libc/posix/execvp.c: Added include of dirent.h to get
2632 MAXNAMLEN value which used to be in unistd.h.
2634 Mon Nov 6 12:56:00 2000 Corinna Vinschen <vinschen@cygnus.com>
2636 * libc/include/sys/types.h: Change type of i to `size_t' in
2637 FD_ZERO macro to avoid compiler warnings.
2639 Sun Oct 29 20:06:41 2000 Christopher Faylor <cgf@cygnus.com>
2641 * libc/include/stdlib.h: Avoid declaring cfree under Cygwin.
2642 * libc/include/malloc.h: Ditto. Also remove obsolete declaration.
2644 Tue Oct 24 20:16:00 2000 Corinna Vinschen <vinschen@cygnus.com>
2646 * libc/include/sys/unistd.h: Add defines for sysconf values
2647 _SC_NPROCESSORS_CONF, _SC_NPROCESSORS_ONLN, _SC_PHYS_PAGES and
2650 Mon Oct 9 20:26:33 2000 Christopher Faylor <cgf@cygnus.com>
2652 * libc/include/sys/unistd.h: Add getdtablesize and setdtablesize
2653 declarations for __CYGWIN__.
2655 2000-09-19 Geoffrey Keating <geoffk@cygnus.com>
2657 * libc/signal/signal.c (__sigtramp_r): ISO C requires
2658 case labels to be integral constant expressions, so
2659 use an if/else tree instead.
2660 (_raise_r): Likewise.
2662 2000-09-13 Jeff Johnston <jjohnstn@redhat.com>
2664 * libc/machine/v850/setjmp.S: Fixed tab problems caused by
2665 clipping patch from e-mail reader.
2667 2000-09-13 Will Cohen <wcohen@redhat.com>
2669 * libc/machine/v850/setjmp.S (_setjmp): Save r1 rather than r0.
2670 Added return value 0.
2671 (_longjmp): Allow longjmp to return value of second argument
2674 2000-09-06 Jeff Johnston <jjohnstn@redhat.com>
2676 * libc/include/sys/types.h (FD_ZERO): Remove call to bzero and
2677 inline code to prevent having to include another header file.
2679 Wed Sep 6 15:06:40 2000 Christopher Faylor <cgf@cygnus.com>
2681 * Makefile.am: Fix space vs. tab problem in install-data-local.
2682 * Makefile.in: Regenerate.
2684 Wed Sep 6 13:49:51 2000 Christopher Faylor <cgf@cygnus.com>
2686 * libc/include/_ansi.h (_EXFUN): Define specially for __CYGWIN__.
2687 (_EXPARM): New macro for defining a function parameter.
2688 * libc/include/stdlib.h: Use _EXPARM.
2689 * libc/stdlib/mallocr.c: Don't build cfree for Cygwin.
2691 2000-09-05 Manfred Hollstein <manfredh@redhat.com>
2693 * Makefile.am (install-data-local): Use optional $(DESTDIR) where
2694 required, as documented in the gnu coding standards.
2695 * Makefile.in: Regenerate.
2697 2000-09-05 Jeff Johnston <jjohnstn@redhat.com>
2699 * libc/include/fcntl.h (_FNDELAY): Changed to be _FNONBLOCK to
2700 make O_NDELAY and O_NONBLOCK have the same value.
2702 2000-08-30 Kazu Hirata <kazu@hxi.com>
2704 * libc/sys/h8300hms/crt0.S: Optimize for both speed and code size.
2706 2000-08-30 Werner Almesberger <Werner.Almesberger@epfl.ch>
2708 * libc/posix/execve.c: included unistd.h for "_execve" prototype.
2709 * libc/misc/unctrl.c libc/sys/sysvi386/crt0.c (sccsid): changed
2710 "#ifndef lint" to "#if defined(LIBC_SCCS) && !defined(lint)" like
2713 2000-08-30 Geoffrey Keating <geoffk@cygnus.com>
2715 * libc/string/swab.c: Specify that it's defined in <unistd.h>.
2716 * libc/include/string.h: Don't include <sys/types.h>,
2717 as it causes really bad namespace pollution. Don't declare
2718 swab(), it is properly declared in unistd.h.
2720 2000-08-29 Werner Almesberger <Werner.Almesberger@epfl.ch>
2722 * libc/unix/getpwent.c (getpwnam, getpwuid, getpwent): removed
2723 (broken) support for non-existent /etc/passwd field "comment".
2725 2000-08-27 Werner Almesberger <Werner.Almesberger@epfl.ch>
2727 * libc/posix/scandir.c (DIRSIZ, scandir): use struct dirent.d_namlen
2728 only if _DIRENT_HAVE_D_NAMLEN is defined.
2729 (alphasort): aligned prototype with
2730 libc/sys/cygwin/sys/dirent.h and simplified function body.
2731 * libc/posix/telldir.c (telldir): changed "telldir" prototype to
2732 long telldir (DIR *) as mentioned in annex B of POSIX.1
2734 2000-08-27 Werner Almesberger <Werner.Almesberger@epfl.ch>
2736 * libc/machine/i386/i386mach.h: added SOTYPE_FUNCTION to set type
2737 of global entry points if _I386MACH_NEED_SOTYPE_FUNCTION is defined;
2738 Added __CLI and __STI macros (controlled via
2739 _I386MACH_ALLOW_HW_INTERRUPTS macro).
2740 * libc/machine/i386/f_atan2.S libc/machine/i386/f_atan2f.S
2741 libc/machine/i386/f_frexp.S libc/machine/i386/f_frexpf.S
2742 libc/machine/i386/f_ldexp.S libc/machine/i386/f_ldexpf.S
2743 libc/machine/i386/f_log.S libc/machine/i386/f_log10.S
2744 libc/machine/i386/f_log10f.S libc/machine/i386/f_logf.S
2745 libc/machine/i386/f_tan.S libc/machine/i386/f_tanf.S
2746 libc/machine/i386/memchr.S libc/machine/i386/memcmp.S
2747 libc/machine/i386/memcpy.S libc/machine/i386/memmove.S
2748 libc/machine/i386/memset.S libc/machine/i386/setjmp.S
2749 libc/machine/i386/strchr.S libc/machine/i386/strlen.S:
2750 (that's libc/machine/i386/*.S) added SOTYPE_FUNCTION(symbol)
2751 for all global entry points.
2752 * libc/machine/i386/setjmp.S: removed code replicated in
2753 libc/machine/i386/i386mach.h and included i386mach.h instead;
2754 Use __CLI and __STI instead of cli and sti.
2756 2000-08-25 DJ Delorie <dj@redhat.com>
2758 * libc/include/sys/unistd.h (environ): this one isn't from the
2761 Fri Aug 25 13:37:11 2000 Christopher Faylor <cgf@cygnus.com>
2763 * libc/stdlib/system.c (do_system): Eliminate explicit declaration of
2764 environ when compiling under cygwin since it is already declared in
2767 2000-08-23 Werner Almesberger <Werner.Almesberger@epfl.ch>
2769 * libc/stdlib/mprec.c (ulp, b2d, d2b): changed a few expressions
2770 like x << y-z to the equivalent x << (y-z).
2771 (d2b): changed if statements with assignment to perform the
2772 assignment prior to the if check.
2773 * libc/reent/reent.c: included stdlib.h for "_free_r" prototype.
2774 * libc/unix/getpass.c (getpass): moved "echo" assignment out of if.
2775 * libc/unix/ttyname.c: included string.h for "strcpy" prototype.
2776 * libc/unix/getcwd.c (ISDOT): added parentheses to clarify && and ||
2778 * libc/include/sys/unistd.h: added "vfork" prototype (for popen.c).
2779 Added "_execve" prototype (for execl.c, execle.c, execv.c, and
2781 * libc/posix/popen.c (popen): added parentheses to clarify && and ||
2783 * libm/math/e_cosh.c (__ieee754_cosh): changed parentheses to
2784 clarify && and || precendence (and to remove pascalism).
2785 * libm/math/e_sinh.c (__ieee754_sinh): Ditto.
2786 * libm/math/s_infconst.c: added another pair of braces to all
2787 initializers for __infinity (need three: for __infinity[1] array,
2788 for union __dmath, and for i[2]).
2790 2000-08-23 Werner Almesberger <Werner.Almesberger@epfl.ch>
2792 * libc/stdlib/abort.c: changed description: uses "raise" instead of
2793 "getpid" and "kill"; added: uses "write" and "_exit".
2794 Also included unistd.h for "_exit" prototype.
2795 * libc/stdlib/system.c: included unistd.h for "execve" prototype,
2796 reent.h for "_fork_r" and "_wait_r" prototypes.
2797 (do_system): changed extern char *environ[] to POSIX-friendly
2798 extern char **environ.
2799 * libc/stdlib/wctomb_r.c: included string.h for "strlen" and "strcmp"
2801 * libc/stdlib/remove.c: included reent.h for "_unlink_r" prototype.
2802 * libc/reent/execr.c: included sys/wait.h for "wait" prototype.
2803 * libc/reent/fstatr.c: included sys/stat.h for "fstat" prototype.
2804 * libc/reent/openr.c: included fcntl.h for "open" prototype.
2805 * libc/reent/signalr.c: included signal.h for "kill" prototype,
2806 unistd.h for "getpid" prototype.
2807 * libc/reent/statr.c: included sys/stat.h for "stat" prototype.
2808 * libc/reent/timer.c: included sys/time.h for "gettimeofday" prototype.
2809 * libc/unix/getut.c (utmpname): removed local, incorrect "strdup"
2810 prototype. Also included stdlib.h for "abort", string.h for
2811 "strdup" and "strncmp" prototypes.
2812 * libc/unix/getlogin.c: included string.h for "strncmp", "memset", and
2813 "strncpy", unistd.h for "read" and "close" prototypes.
2814 * libc/posix/execvp.c: included string.h for "strchr", "strlen", and
2815 "strcat" prototypes.
2817 2000-08-23 Werner Almesberger <Wernen Almesberger@epfl.ch>
2819 * libc/stdio/stdio.c (__swrite): declare "oldmode" only if it's
2820 used later (ifdef __SCLE)
2821 * libc/stdio/vfscanf.c (__svfscanf): declare "state" only if it's
2822 used later (ifdef MB_CAPABLE)
2823 * libc/string/memset.c (memset): removed unused variables "count"
2824 and "unaligned_addr"
2825 * libc/locale/locale.c (_setlocale_r): declare "lc_ctype" and
2826 "last_lc_ctype" only of they're used later (ifdef MB_CAPABLE)
2827 * libc/unix/getpwent.c (getpwnam): removed unused variables "uid"
2830 2000-08-23 Werner Almesberger <Werner.Almesberger@epfl.ch>
2832 * libc/stdlib/envlock.c: changed documented "__env_lock" and
2833 "__env_unlock" prototype from "void *" or "char *" to
2834 "struct _reent *" to match real function. Also added include
2836 * libc/stdlib/mlock.c: changed documented "__malloc_lock" and
2837 "__malloc_unlock" prototype from "void *" or "char *" to
2838 "struct _reent *" to match real function.
2839 * libc/stdlib/envlock.h: added "__env_lock" and "__env_unlock"
2840 prototypes (for getenv_r.c and setenv_r.c).
2842 2000-08-22 Werner Almesberger <Werner.Almesberger@epfl.ch>
2844 * libc/unix/getut.c (utmpname): added _CONST to reflect common use
2845 and prototype in cygwin's utmp.h
2847 2000-08-16 Eric Fifer <efifer@sanwaint.com>
2849 * libc/stdio/vfprintf.c (_vfprintf_r): suppress . with "%.0f", 0.1
2851 2000-08-09 Nick Clifton <nickc@cygnus.com>
2853 * libc/sys/arm/setjmp.S: Recode to clean up function prologues and
2854 epilogue and to allow the functions to be used in a Thumb based
2857 2000-08-08 Jeff Johnston <jjohnstn@redhat.com>
2859 * libc/stdio/snprintf.c (snprintf, _snprintf_r): Fixed code
2860 so size of 0 results in nothing being written to string.
2861 Also fixed code so that when size is non-zero, there is only
2862 a maximum of size - 1 characters written to the array and
2863 a nul terminator is appended at the end.
2864 * libc/stdio/vsnprintf.c (vsnprintf, _vsnprintf_r): Ditto.
2866 2000-08-01 DJ Delorie <dj@redhat.com>
2868 * libc/include/sys/config.h: define __IMPORT appropriately
2869 * libc/include/ctype.h (_ctype_): use __IMPORT
2870 * libc/include/math.h (__infinity, signam, _LIB_VERSION): ditto
2871 * libc/include/math.h (__mb_cur_max): ditto
2872 * libc/include/time.h (_timezone, _daylight, _tzname): ditto
2873 * libc/include/unctrl.h (__unctrl, __unctrllen): ditto
2874 * libc/include/errno.h (_sys_errlist, _sys_nerr): ditto
2875 * libc/include/unistd.h (environ): ditto
2877 2000-07-28 Michael Meissner <meissner@redhat.com>
2879 * libc/include/math.h (__infinity): Declare as an array without
2880 bounds to get around small data support. Rewrite Cygwin support
2882 * libm/math/s_infconst.c (__infinity): Ditto.
2883 * libm/mathfp/s_infconst.c (__infinity): Ditto.
2885 Thu Jul 27 10:46:01 2000 Christopher Faylor <cgf@cygnus.com>
2887 * libc/include/math.h: Use appropriate dll import linkage for
2888 __infinity under Cygwin.
2890 2000-07-13 DJ Delorie <dj@cygnus.com>
2892 * libc/stdio/vfprintf.c: pad 0.0 correctly with %e
2894 Wed Jun 28 14:08:00 2000 Keith Walker <keith.walker@arm.com>
2896 * libc/sys/arm/crt0.S (.LC30): Added missing length parameter
2897 to argument list for AngelSWI_Reason_GetCmdLine.
2899 Tue Jun 27 15:49:00 2000 Marek Michalkiewicz <marekm@linux.org.pl>
2901 * configure.host: Add support for AVR target.
2902 * libc/include/machine/ieeefp.h: Likewise.
2903 * libc/include/sys/config.h: Likewise.
2905 Thu Jun 22 18:35:00 2000 Ranjith Kumaran <ranjith@cygnus.com>
2907 * README: Newlib 1.8.2 must be built in a separate directory
2910 Tue Jun 20 14:30:00 2000 Jeff Johnston <jjohnstn@cygnus.com>
2912 * libc/include/sys/reent.h (_rand_next): Added __extension__
2913 qualifier as long long type is not strict ANSI.
2914 * libc/stdlib/rand.c (rand): Added __extension__ qualifier
2915 to long long constant.
2917 Fri Jun 16 23:02:00 2000 Corinna Vinschen <corinna@vinschen.de>
2919 * libc/include/sys/unistd.h: Add prototypes for `seteuid' and
2920 `setegid' provided by Cygwin.
2922 Thu Jun 15 0:21:00 2000 Corinna Vinschen <corinna@vinschen.de>
2924 * libc/stdio/fdopen.c: Take explicit given bin/textmode into
2927 Fri Jun 9 14:28:00 2000 Jeff Johnston <jjohnstn@cygnus.com>
2929 * libc/include/sys/reent.h (_rand_next): Changed to
2930 unsigned long long and moved to end of _reent struct in _new union.
2931 (_REENT_INIT): Changed to move _rand_next initialization.
2932 * libc/stdlib/rand.c (rand): Changed to use unsigned long long
2933 linear congruential algorithm that is used by DJGPP.
2935 Thu Jun 8 21:18:00 2000 Ranjith Kumaran <ranjith@cygnus.com>
2937 * libc/include/stdlib.h: Set RAND_MAX to __RAND_MAX.
2938 * libc/include/sys/config.h: Define __RAND_MAX.
2940 Thu Jun 8 17:54:00 2000 Jeff Johnston <jjohnstn@cygnus.com>
2942 * libc/stdlib/rand_r.c: New algorithm that meets minimal
2945 Fri Jun 2 23:02:11 2000 Christopher Faylor <cgf@cygnus.com>
2947 * libc/include/string.h: Work around problem with strsignal and gdb.
2949 Tue May 30 13:13:01 2000 Christopher Faylor <cgf@cygnus.com>
2951 * libc/include/ctype.h: __CYGWIN32__ -> __CYGWIN__
2952 * libc/include/malloc.h: Ditto.
2953 * libc/include/process.h: Ditto.
2954 * libc/include/stdio.h: Ditto.
2955 * libc/include/stdlib.h: Ditto.
2956 * libc/include/time.h: Ditto.
2957 * libc/include/machine/setjmp.h: Ditto.
2958 * libc/include/sys/errno.h: Ditto.
2959 * libc/include/sys/signal.h: Ditto.
2960 * libc/include/sys/stat.h: Ditto.
2961 * libc/include/sys/time.h: Ditto.
2962 * libc/include/sys/unistd.h: Ditto.
2963 * libc/include/string.h: Ditto. strsignal should return a const char *.
2965 2000-05-26 Marek Michalkiewicz <marekm@linux.org.pl>
2967 * libm/common/s_expm1.c (expm1): Add curly braces, avoid warnings.
2968 * libm/common/s_log1p.c (log1p): Likewise.
2969 * libm/common/s_scalbn.c (scalbn): Likewise.
2970 * libm/math/e_log.c: Likewise.
2971 * libm/math/e_asin.c: Likewise.
2972 * libm/math/ef_asin.c: Likewise.
2973 * libm/math/e_j0.c (pzero, qzero): Remove redundant test.
2974 * libm/math/e_j1.c (pone, qone): Likewise.
2975 * libm/math/ef_j0.c (pzerof, qzerof): Likewise.
2976 * libm/math/ef_j1.c (ponef, qonef): Likewise.
2977 * libm/mathfp/e_j0.c (pzero, qzero): Likewise.
2978 * libm/mathfp/e_j1.c (pone, qone): Likewise.
2979 * libm/mathfp/ef_j0.c (pzerof, qzerof): Likewise.
2980 * libm/mathfp/ef_j1.c (ponef, qonef): Likewise.
2982 2000-05-19 DJ Delorie <dj@cygnus.com>
2984 * libc/stdio/stdio.c (__stextmode): new, see if file is text mode
2985 (__sread): always read in binary mode
2986 (__swrite): always write in binary mode
2987 * libc/include/stdio.h: no getc/putc macros for cygwin; causes
2988 compatibility issues with different dll versions
2989 * libc/stdio/fopen.c: use __stextmode
2990 * libc/stdio/fdopen.c: ditto
2991 * libc/stdio/freopen.c: ditto
2992 * libc/stdio/findfp.c: set up __SCLE for std{in,out,err}
2993 * libc/stdio/local.h: declare __stextmode
2995 2000-05-18 DJ Delorie <dj@cygnus.com>
2997 * libc/stdio/fgets.c (fgets): perform CRLF conversions if __SCLE
2999 Mon May 15 18:54:00 2000 Jeff Johnston <jjohnstn@cygnus.com>
3001 * libc/include/ctype.h: Changed tolower and toupper macros
3002 to use __extension__ to prevent pedantic warnings.
3004 Mon May 15 14:26:00 2000 Joel Sherrill <joel@oarcorp.com>
3006 * libc/sys/rtems/sys/time.h: Add macros for manipulating timeval
3009 Wed May 10 19:24:53 2000 Jim Wilson <wilson@cygnus.com>
3011 * libc/include/machine/ieeefp.h: Add ia64 support.
3012 * configure.host: Likewise.
3014 Wed May 10 13:52:24 2000 Egor Duda <deo@logos-m.ru>
3016 * libc/time/asctime_r.c (asctime_r): Change output format. Day of
3017 month is now padded with space, not zero. This now conforms to
3020 Wed May 03 17:57:00 2000 Corinna Vinschen <corinna@vinschen.de>
3022 * libc/include/sys/errno.h: Add define for ENOSHARE ("No such
3023 host or network path") used by cygwin. Add some comments.
3025 Tue May 02 23:45:48 2000 DJ Delorie <dj@cygnus.com>
3027 * libc/include/stdio.h (FILE): define __SCLE for "convert line
3028 endings" for Cygwin.
3029 (__sgetc): convert line endings if needed
3031 * libc/stdio/fdopen.c (_fdopen_r): Remember if we opened in text mode
3032 * libc/stdio/fopen.c (_fopen_r): ditto
3033 * libc/stdio/freopen.c (freopen): ditto
3034 * libc/stdio/fread.c (fread): perform CRLF conversions if __SCLE
3035 * libc/stdio/fvwrite.c (__sfvwrite): ditto
3037 Thu Apr 27 07:45:48 2000 Alexandre Oliva <aoliva@cygnus.com>
3039 * libc/machine/mn10300/setjmp.S (setjmp, longjmp): Use
3040 post-increment when it is worth it, spacewise.
3042 Mon Apr 17 12:46:00 2000 Marek Michalkiewicz <marekm@linux.org.pl>
3044 * libc/signal/signal.c (_signal_r) : Removed unused local variable temp.
3045 * libc/stdio/findfp.c (std): Added declaration of flags and file.
3046 * libc/stdio/mktemp.c (_gettemp, _mkstemp_r, mkstemp): Added int
3048 * libc/stdio/putchar.c (putchar): Added return statement.
3049 * libc/stdio/refill.c (lflush): Added correct parentheses.
3050 * libc/stdio/vfprintf.c (_VFPRINTF_R): Ditto.
3051 * libc/stdio/vfscanf.c (__svfscanf): Changed sprintf call which
3052 prints long value to use l qualifier.
3053 * libc/stdlib/dtoa.c (_dtoa_r): Added parentheses to remove warning
3054 messages and initialized local values: ilim, ilim1, and spec_case.
3055 * libc/stdlib/ecvtbuf.c (print_e): Removed unused variable dp.
3056 * libc/stdlib/mbctype.h (_issjis1, _issjis2): Added parentheses.
3057 * libc/stdlib/mprec.c: Ditto.
3058 * libc/stdlib/setenv_r.c: Ditto.
3059 * libc/stdlib/strtod.c: Ditto.
3060 * libc/stdlib/strtol.c: Ditto.
3061 * libc/stdlib/strtoul.c: Ditto.
3062 * libm/common/sf_expm1.c: Added curly braces to if else clauses.
3063 * libm/common/sf_log1p.c: Ditto.
3064 * libm/common/sf_scalbn.c: Ditto.
3065 * libm/math/ef_log.c: Ditto.
3067 Sun Apr 16 12:45:00 2000 Corinna Vinschen <corinna@vinschen.de>
3069 * libc/posix/execvp.c (execvp): Check path for
3072 Fri Mar 31 20:39:00 2000 Corinna Vinschen <corinna@vinschen.de>
3074 * libc/include/sys/unistd.h: Add prototypes for
3075 fchmod, fchown, lchown.
3077 Fri Mar 24 15:34:00 2000 Jeff Johnston <jjohnstn@cygnus.com>
3079 * acinclude.m4: Changed release to 1.8.2.
3080 * aclocal.m4 configure doc/aclocal.m4 doc/configure
3081 libc/aclocal.m4 libc/configure libc/machine/aclocal.m4
3082 libc/machine/configure libc/machine/a29k/aclocal.m4
3083 libc/machine/a29k/configure libc/machine/arm/aclocal.m4
3084 libc/machine/arm/configure libc/machine/d10v/aclocal.m4
3085 libc/machine/d10v/configure libc/machine/d30v/aclocal.m4
3086 libc/machine/d30v/configure libc/machine/fr30/aclocal.m4
3087 libc/machine/fr30/configure libc/machine/h8300/aclocal.m4
3088 libc/machine/h8300/configure libc/machine/h8500/aclocal.m4
3089 libc/machine/h8500/configure libc/machine/hppa/aclocal.m4
3090 libc/machine/hppa/configure libc/machine/i386/aclocal.m4
3091 libc/machine/i386/configure libc/machine/i960/aclocal.m4
3092 libc/machine/i960/configure libc/machine/m32r/aclocal.m4
3093 libc/machine/m32r/configure libc/machine/m68k/aclocal.m4
3094 libc/machine/m68k/configure libc/machine/m88k/aclocal.m4
3095 libc/machine/m88k/configure libc/machine/mips/aclocal.m4
3096 libc/machine/mips/configure libc/machine/mn10200/aclocal.m4
3097 libc/machine/mn10200/configure libc/machine/mn10300/aclocal.m4
3098 libc/machine/mn10300/configure libc/machine/necv70/aclocal.m4
3099 libc/machine/necv70/configure libc/machine/powerpc/aclocal.m4
3100 libc/machine/powerpc/configure libc/machine/sh/aclocal.m4
3101 libc/machine/sh/configure libc/machine/sparc/aclocal.m4
3102 libc/machine/sparc/configure libc/machine/tic80/aclocal.m4
3103 libc/machine/tic80/configure libc/machine/v850/aclocal.m4
3104 libc/machine/v850/configure libc/machine/w65/aclocal.m4
3105 libc/machine/w65/configure libc/machine/z8k/aclocal.m4
3106 libc/machine/z8k/configure libc/sys/aclocal.m4
3107 libc/sys/aclocal.m4 libc/sys/configure
3108 libc/sys/a29khif/aclocal.m4 libc/sys/a29khif/configure
3109 libc/sys/arm/aclocal.m4 libc/sys/arm/configure
3110 libc/sys/cygwin/aclocal.m4 libc/sys/cygwin/configure
3111 libc/sys/d10v/aclocal.m4 libc/sys/d10v/configure
3112 libc/sys/decstation/aclocal.m4 libc/sys/decstation/configure
3113 libc/sys/go32/aclocal.m4 libc/sys/go32/configure
3114 libc/sys/h8300hms/aclocal.m4 libc/sys/h8300hms/configure
3115 libc/sys/h8500hms/aclocal.m4 libc/sys/h8500hms/configure
3116 libc/sys/m88kbug/aclocal.m4 libc/sys/m88kbug/configure
3117 libc/sys/netware/aclocal.m4 libc/sys/netware/configure
3118 libc/sys/rtems/aclocal.m4 libc/sys/rtems/configure
3119 libc/sys/sh/aclocal.m4 libc/sys/sh/configure
3120 libc/sys/sparc64/aclocal.m4 libc/sys/sparc64/configure
3121 libc/sys/sun4/aclocal.m4 libc/sys/sun4/configure
3122 libc/sys/sysmec/aclocal.m4 libc/sys/sysmec/configure
3123 libc/sys/sysnec810/aclocal.m4 libc/sys/sysnec810/configure
3124 libc/sys/sysnecv850/aclocal.m4 libc/sys/sysnecv850/configure
3125 libc/sys/sysvi386/aclocal.m4 libc/sys/sysvi386/configure
3126 libc/sys/sysvnecv70/aclocal.m4 libc/sys/sysvnecv70/configure
3127 libc/sys/tic80/aclocal.m4 libc/sys/tic80/configure
3128 libc/sys/w65/aclocal.m4 libc/sys/w65/configure
3129 libc/sys/z8ksim/aclocal.m4 libc/sys/z8ksim/configure
3130 libm/aclocal.m4 libm/configure: Regenerated.
3132 2000-03-24 Nick Clifton <nickc@cygnus.com>
3134 * libc/sys/arm/syscalls.c: Fix compile time warnings.
3135 (do_AngelSWI): Add "cc" to list o registers clobbered.
3137 Thu Mar 22 14:57:00 2000 Fernando Nasser <fnasser@redhat.com>
3139 * libc/sys/arm/syscalls.c (do_AngelSWI): Prevent registers with valid
3140 information to be clobbered by an Angel C library support syscall.
3142 Tue Mar 21 19:08:00 2000 Jeff Johnston <jjohnstn@cygnus.com>
3144 * libc/stdlib/envlock.c: Fixed comment typo.
3146 Fri Mar 17 15:37:00 2000 Jeff Johnston <jjohnstn@cygnus.com>
3148 * libc/stdio/vfscanf.c (__svfscanf): Fixed floating point
3149 code to update nread as each character is processed instead
3150 of using buffer contents which throw away leading zeroes.
3152 Mon Mar 13 15:22:00 2000 Sergei Organov <osv@javad.ru>
3154 * libm/mathfp/sf_sqrt.c: Change _DOUBLE_IS_32BITS sqrt call to sqrtf.
3156 Fri Mar 10 16:09:20 2000 Jeff Johnston <jjohnstn@cygnus.com>
3158 * libc/include/string.h: Include <sys/types.h>.
3160 Fri Mar 10 14:53:50 2000 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
3162 * libc/stdio/putw.c (putw): Return 0 on success, to be compliant
3163 with XSH5, not SVID.
3165 Thu Mar 9 17:20:41 2000 Jeff Johnston <jjohnstn@cygnus.com>
3167 * libc/include/string.h: Changed last argument back to ssize_t
3168 to make it compatible with XPG4 definition which is
3169 defined in <unistd.h>. There is a conflict in the SVID 3
3170 and XPG4 definitions and newlib will settle with XPG4.
3171 * libc/string/swab.c: Ditto.
3173 Wed Mar 8 17:11:41 2000 Jeff Johnston <jjohnstn@cygnus.com>
3175 * libc/include/string.h: Changed last argument to size_t.
3176 * libc/string/swab.c: Changed last argument to size_t.
3178 Wed Mar 8 00:46:41 2000 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
3180 * libc/reent/Makefile.am (lib_a_SOURCES): Added unlinkr.c.
3181 (CHEWOUT_FILES): Added unlinkr.def.
3182 * libc/reent/Makefile.in: Rebuilt.
3183 * libc/sys.tex: Include unlinkr.def.
3184 * libc/reent/linkr.c (_unlink_r): Moved to...
3185 * libc/reent/unlinkr.c: ... new file.
3187 Wed Mar 8 00:43:07 2000 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
3189 * libc/string/Makefile.am (lib_a_SOURCES): Added swab.c.
3190 (CHEWOUT_FILES): Added swab.def.
3191 * libc/string/Makefile.in: Rebuilt.
3192 * libc/string/string.tex: Include swab.def.
3193 * libc/include/string.h (swab): Declare.
3194 * libc/string/swab.c: New file.
3196 Wed Mar 8 00:38:35 2000 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
3198 * libc/stdio/Makefile.am (lib_a_SOURCES): Added getw.c and putw.c.
3199 (CHEWOUT_FILES): Added getw.def and putw.def.
3200 * libc/stdio/Makefile.in: Rebuilt.
3201 * libc/stdio/stdio.tex: Include getw.def and putw.def.
3202 * libc/stdio/getw.c: New file.
3203 * libc/stdio/putw.c: New file.
3205 Fri Feb 25 14:50:50 2000 Jeff Johnston <jjohnstn@cygnus.com>
3207 * libc/stdio/flags.c (__sflags): Added check that mode[1]
3208 is non-null before looking at mode[2].
3210 Thu Feb 24 11:43:00 2000 Ran Cabell <rcabell@norfolk.infi.net>
3212 * libm/mathfp/sf_atan2.c: Fix atan2 typo for _DOUBLE_IS_32_BITS.
3213 * libm/mathfp/sf_atan.c: Ditto.
3215 Thu Feb 24 11:39:00 2000 Joel Sherrill <joel@OARcorp.com>
3217 * libc/include/sys/stat.h: Add RTEMS prototype for lstat.
3219 Tue Feb 22 14:37:00 2000 Ran Cabell <rcabell@norfolk.infi.net>
3221 * libm/mathfp/sf_exp.c: Corrected _DOUBLE_IS_32_BITS to be
3224 Mon Feb 21 11:43:50 2000 Jeff Johnston <jjohnstn@cygnus.com>
3226 * libc/stdio/vfprintf.c (VFPRINTF): Added CHECK_INIT
3227 call prior to calling _VFPRINTF_R so reentrant data area is set.
3228 (_VFPRINTF_R): Removed now extraneous CHECK_INIT call.
3230 Thu Feb 17 01:42:50 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
3232 * libc/stdio/vfscanf.c (limits.h): #include.
3233 (MAX_LONG_LEN): #define.
3234 (__svfscanf): Handle floating point numbers with arbitrary amounts
3237 2000-02-15 Nick Clifton <nickc@cygnus.com>
3239 * libc/sys/arm/syscalls.c (_fstat): Initialise all fields to
3240 zero. Set the blocksize to 1024/
3242 Thu Jan 20 18:57:00 2000 Fernando Nasser <fnasser@redhat.com>
3244 * setvbuf.c (setvbuf): Set size to BUFSIZ when passed a zero size
3245 with line buffering.
3247 Mon Jan 10 18:43:00 2000 Jeff Johnston <jjohnstn@cygnus.com>
3249 * acinclude.m4: Changed include directory for winsup headers.
3250 * aclocal.m4 configure libc/aclocal.m4
3251 libc/configure libc/ctype/Makefile.in libc/errno/Makefile.in
3252 libc/locale/Makefile.in libc/machine/aclocal.m4
3253 libc/machine/configure libc/machine/a29k/aclocal.m4
3254 libc/machine/a29k/configure libc/machine/arm/aclocal.m4
3255 libc/machine/arm/configure libc/machine/d10v/aclocal.m4
3256 libc/machine/d10v/configure libc/machine/d30v/aclocal.m4
3257 libc/machine/d30v/configure libc/machine/fr30/aclocal.m4
3258 libc/machine/fr30/configure
3259 libc/machine/h8300/aclocal.m4
3260 libc/machine/h8300/configure libc/machine/h8500/aclocal.m4
3261 libc/machine/h8500/configure libc/machine/hppa/aclocal.m4
3262 libc/machine/hppa/configure libc/machine/i386/aclocal.m4
3263 libc/machine/i386/configure libc/machine/i960/aclocal.m4
3264 libc/machine/i960/configure libc/machine/m32r/aclocal.m4
3265 libc/machine/m32r/configure libc/machine/m68k/aclocal.m4
3266 libc/machine/m68k/configure libc/machine/m88k/aclocal.m4
3267 libc/machine/m88k/configure libc/machine/mips/aclocal.m4
3268 libc/machine/mips/configure libc/machine/mn10200/aclocal.m4
3269 libc/machine/mn10200/configure libc/machine/mn10300/aclocal.m4
3270 libc/machine/mn10300/configure libc/machine/necv70/aclocal.m4
3271 libc/machine/necv70/configure libc/machine/powerpc/aclocal.m4
3272 libc/machine/powerpc/configure
3273 libc/machine/sh/aclocal.m4
3274 libc/machine/sh/configure libc/machine/sparc/aclocal.m4
3275 libc/machine/sparc/configure
3276 libc/machine/tic80/aclocal.m4 libc/machine/tic80/configure
3277 libc/machine/v850/aclocal.m4 libc/machine/v850/configure
3278 libc/machine/w65/aclocal.m4 libc/machine/w65/configure
3279 libc/machine/z8k/aclocal.m4 libc/machine/z8k/configure
3280 libc/misc/Makefile.in libc/posix/Makefile.in
3281 libc/reent/Makefile.in
3282 libc/signal/Makefile.in
3283 libc/string/Makefile.in libc/sys/aclocal.m4 libc/sys/configure
3284 libc/sys/a29khif/aclocal.m4 libc/sys/a29khif/configure
3285 libc/sys/arm/Makefile.in libc/sys/arm/aclocal.m4
3286 libc/sys/arm/configure libc/sys/cygwin/aclocal.m4
3287 libc/sys/cygwin/configure libc/sys/d10v/Makefile.in
3288 libc/sys/d10v/aclocal.m4 libc/sys/d10v/configure
3289 libc/sys/decstation/aclocal.m4 libc/sys/decstation/configure
3290 libc/sys/go32/aclocal.m4 libc/sys/go32/configure
3291 libc/sys/h8300hms/aclocal.m4 libc/sys/h8300hms/configure
3292 libc/sys/h8500hms/aclocal.m4 libc/sys/h8500hms/configure
3293 libc/sys/m88kbug/aclocal.m4 libc/sys/m88kbug/configure
3294 libc/sys/netware/aclocal.m4 libc/sys/netware/configure
3295 libc/sys/rtems/aclocal.m4 libc/sys/rtems/configure
3296 libc/sys/sh/Makefile.in libc/sys/sh/aclocal.m4
3297 libc/sys/sh/configure libc/sys/sparc64/aclocal.m4
3298 libc/sys/sparc64/configure libc/sys/sun4/aclocal.m4
3299 libc/sys/sun4/configure libc/sys/sysmec/aclocal.m4
3300 libc/sys/sysmec/configure libc/sys/sysnec810/aclocal.m4
3301 libc/sys/sysnec810/configure libc/sys/sysnecv850/aclocal.m4
3302 libc/sys/sysnecv850/configure libc/sys/sysvi386/aclocal.m4
3303 libc/sys/sysvi386/configure libc/sys/sysvnecv70/aclocal.m4
3304 libc/sys/sysvnecv70/configure libc/sys/tic80/aclocal.m4
3305 libc/sys/tic80/configure libc/sys/w65/aclocal.m4
3306 libc/sys/w65/configure libc/sys/z8ksim/aclocal.m4
3307 libc/sys/z8ksim/configure libc/syscalls/Makefile.in
3308 libc/time/Makefile.in libc/unix/Makefile.in libm/aclocal.m4
3309 libm/configure: Regenerated.
3311 Mon Jan 10 18:43:46 2000 Jeff Johnston <jjohnstn@cygnus.com>
3313 * libc/stdlib/putenv_r.c (_putenv_r): New file.
3314 * libc/stdlib/strdup_r.c (_strdup_r): New file.
3315 * libc/include/string.h: Added _strdup_r.
3316 * libc/stdlib/putenv.c: Added call to reentrant version.
3317 * libc/stdlib/strdup.c: Ditto.
3318 * libc/stdlib/Makefile.am: Added _putenv_r and _unsetenv_r.
3319 * libc/include/stdlib.h: Ditto.
3320 * libc/stdlib/Makefile.in: Regenerated.
3321 * libc/string/Makefile.in: Regenerated.
3322 * libc/stdlib/setenv.c: Added reentrant version of unsetenv.
3323 * libc/stdlib/setenv_r.c: Added unsetenv_r and changed memory
3324 management calls to reentrant versions.
3325 * libc/stdlib/wcstombs.c: Added #ifndef _REENT_ONLY wrapper.
3326 * libc/stdlib/wctomb.c: Ditto.
3327 * libc/stdlib/mblen.c: Ditto.
3328 * libc/stdlib/mbstowcs.c: Ditto.
3329 * libc/stdlib/mbtowc.c: Ditto.
3330 * libc/stdlib/getenv.c: Ditto.
3331 * libc/reent/reent.tex: Added references to _putenv_r, _setenv_r,
3334 Thu Jan 6 15:33:46 2000 Christopher Faylor <cgf@cygnus.com>
3336 patch from Corinna Vinschen <corinna@vinschen.de>
3337 * libc/sys/cygwin/sys/param.h: Define NGROUP_MAX as 16.
3339 Mon Jan 03 14:36:00 2000 Sergei Organov <osv@javad.ru>
3341 * libm/mathfp/s_atangent.c: Fix exponent calculation.
3342 * libm/mathfp/s_ldexp.c: Ditto.
3343 * libm/mathfp/sf_atangent.c: Ditto.
3344 * libm/mathfp/sf_ldexp.c: Ditto.
3346 Tue Dec 14 5:42:00 1999 Ranjith Kumaran <ranjith@cygnus.com>
3348 * libc/machine/i960/setjmp.S: fix typo leaving .link_pix uncommented
3349 * libc/include/locale.h: define NULL to be 0.
3351 Tue Dec 7 15:41:45 1999 Jim Wilson <wilson@cygnus.com>
3353 * libc/sys/sh/syscalls.c (stack_ptr): Move definition before first
3356 Wed Dec 1 17:39:29 1999 Jeffrey A Law (law@cygnus.com)
3358 * libc/machine/mn10300/setjmp.S: Handle am33.
3360 1999-11-26 Nick Clifton <nickc@cygnus.com>
3362 * libc/sys/arm/syscalls.c: Add function prototypes.
3363 (stack_ptr): Move declaration before function definitions.
3365 Sat Nov 20 17:13:00 1999 Ranjith Kumaran <ranjith@cygnus.com>
3367 * NEWS: Updated version information.
3370 Tue Nov 09 12:19:21 1999 Jeff Johnston <jjohnstn@cygnus.com>
3372 * libc/machine/i386/strchr.S: Fixed alignment test.
3374 Thu Oct 28 05:30:46 1999 Andrew Cagney <cagney@makita.cygnus.com>
3376 * libc/sys/d10v/crt0.S (_start): Construct a real stack frame.
3378 Thu Oct 28 15:29:11 1999 Andrew Cagney <cagney@b1.cygnus.com>
3380 * libc/sys/d10v/crt0.S (_start): Initialize both SPI and SPU
3381 ensuring that there is space between the two.
3383 Thu Oct 14 13:39:21 1999 Christopher Faylor <cgf@cygnus.com>
3385 * libc/stdio/flags.c: Conditionalize check for 't' for cygwin case
3388 1999-10-08 Vadim Egorov <egorovv@1c.ru>
3390 * libc/include/stdlib.h: add ptsname, grantpt, unlockpt to cygwin
3393 Sat Oct 2 02:02:00 MEST 1999 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
3395 * libc/machine/sh/asm.h: Added __SH4_SINGLE__ to DELAYED_BRANCHES
3396 * libc/machine/sh/memcpy.S: Fix line wrapping in SL macro
3398 Fri Oct 1 13:17:59 CDT 1999 <joel@OARcorp.com>
3399 * libc/include/grp.h: Added getgrnam_r and getgrgid_r prototypes
3401 * libc/include/pwd.h: Added getpwnam_r and getpwuid_r prototypes
3404 1999-09-13 DJ Delorie <dj@cygnus.com>
3406 * libc/stdio/mktemp.c (_gettemp): on cygwin, check for EACCESS
3409 Thu Sep 9 15:31:00 1999 Jeff Johnston <jjohnstn@cygnus.com>
3411 * setvbuf.c (setvbuf): When mallocing a buffer of size BUFSIZ,
3412 also note BUFSIZ as its size.
3414 Tue Sep 7 17:15:00 1999 Joel Sherrill <joel@OARcorp.com>
3416 * configure.host: Corrected feature defines for RTEMS.
3417 * libc/include/sys/stat.h: Added protototype for RTEMS mknod.
3418 * libc/include/sys/stat.h: mkfifo() should take const path arg.
3419 * libc/include/sys/unistd.h: pathconf() should take const path arg.
3420 Enabled usleep(), ftruncate(), and truncate() prototypes for RTEMS.
3421 Added defines for _POSIX_JOB_CONTROL, _POSIX_SAVED_IDS, and
3422 _POSIX_VERSION for RTEMS. Added defines for _PC_ASYNC_IO,
3423 _PC_PRIO_IO, and _PC_SYNC_IO.
3424 * libc/machine/m68k/Makefile.am: Added strcpy.c and strlen.c.
3425 * libc/machine/m68k/Makefile.in: Regenerated.
3426 * libc/machine/m68k/strcpy.c: New file.
3427 * libc/machine/m68k/strlen.c: New file.
3428 * libc/stdio/tmpnam.c: Always make the returned name usable.
3429 * libc/sys/rtems/crt0.c: New version that passes all autoconf tests.
3430 * libc/sys/rtems/sys/dirent.h: New file.
3431 * libc/sys/rtems/sys/types.h: Added dev_t.
3433 Tue Sep 7 17:15:00 1999 Jay Kulpinski <jskulpin@eng01.gdds.com>
3435 * libc/stdlib/mprec.c: Fixed unitialized variable problem.
3437 Fri Sep 3 12:35:20 1999 Jeff Johnston <jjohnstn@cygnus.com>
3439 * libc/stdio/ftell.c (ftell): Backing off Joern's fix and
3442 Thu Sep 2 22:05:20 1999 Christopher Faylor <cgf@cygnus.com>
3444 patch from Jeff Johnston <jjohnstn@cygnus.com>
3445 * libc/stdio/ftell.c (ftell): Avoid using buffer position when the
3446 buffer is not in a useful state.
3448 1999-09-01 Nick Clifton <nickc@cygnus.com>
3450 * libc/sys/arm/syscalls.c (_link): Add stub.
3452 Fri Aug 27 23:09:09 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
3454 * ftell.c (ftell): Use actual position within buffer for text mode.
3455 * findfp.c (std): Initialize ptr->_bf._size.
3457 Wed Aug 18 18:48:02 1999 Christopher Faylor <cgf@cygnus.com>
3459 * libc/include/sys/unistd.h: Add nice() declaration.
3461 1999-08-09 Nick Clifton <nickc@cygnus.com>
3463 * libc/sys/arm/crt0.S (change_mode): Rename to __change_mode and
3464 declare as a thumb function so that the disassembler will see the
3467 Thu Aug 5 17:37:00 1999 Ranjith Kumaran <ranjith@cygnus.com>
3469 * libc/reent/reent.tex: Updated list of reentrant functions.
3471 1999-07-09 Michael Meissner <meissner@cygnus.com>
3473 * libc/include/stdlib.h (_findenv{,_r}): Add prototypes.
3475 Tue Jul 6 10:46:24 1999 Jeff Johnston <jjohnstn@cygnus.com>
3477 * libc/stdio/sprintf.c: Moved snprintf and _snprintf_r to
3479 * libc/stdio/snprintf.c: New file.
3480 * libc/stdio/vsprintf.c: Moved vsnprintf and _vsnprintf_r to
3482 * libc/stdio/vsnprintf.c: New file.
3483 * libc/stdio/Makefile.am: Added snprintf.c and vsnprintf.c.
3484 * libc/stdio/Makefile.in: Regenerated.
3486 Mon Jul 5 14:43:24 1999 Christopher Faylor <cgf@cygnus.com>
3488 Patch submitted by Egor Duda <deo@logos-m.ru>:
3489 * libc/include/stdio.h: Add declarations for *nprintf.
3490 * libc/stdio/sprintf.c (snprintf): New function.
3491 (_snprintf_r): New function.
3492 * libc/stdio/vsprintf.c (vsnprintf): New function.
3493 (_vnsprintf_r): New function.
3495 Wed Jun 30 16:36:27 1999 Jeff Johnston <jjohnstn@cygnus.com>
3497 * libc/Makefile.am (stmp-targetdep): Remove extraneous blank.
3498 * libm/Makefile.am (stmp-targetdep): Ditto.
3499 * libc/Makefile.in: Regenerated.
3500 * libm/Makefile.in: Ditto.
3502 Fri Jun 25 10:49:27 1999 Jeff Johnston <jjohnstn@cygnus.com>
3504 * libc/Makefile.am (stmp-targetdep): Ignore "." in SUBDIRS.
3505 * libm/Makefile.am (stmp-targetdep): Ditto.
3506 * libc/Makefile.in: Regenerated.
3507 * libm/Makefile.in: Ditto.
3509 Thu June 03 16:25:00 1999 Jeff Johnston <jjohnstn@cygnus.com>
3511 * Makefile.am: Removed dependencies on all-recursive and added "."
3512 to the SUBDIRS list to prevent infinite recursion from occurring.
3513 Also removed any references to EXTRA_DATA.
3514 * libc/Makefile.am: Ditto.
3515 * libc/machine/Makefile.am: Ditto.
3516 * libc/machine/i386/Makefile.am: Ditto.
3517 * libm/Makefile.am: Ditto.
3518 * libc/sys/Makefile.am: Ditto.
3519 * Makefile.in: Regenerated.
3520 * aclocal.m4: Ditto.
3522 * doc/Makefile.in: Ditto.
3523 * doc/aclocal.m4: Ditto.
3524 * doc/configure: Ditto.
3525 * libc/Makefile.in: Ditto.
3526 * libc/aclocal.m4: Ditto.
3527 * libc/configure: Ditto.
3528 * libc/machine/Makefile.in: Ditto.
3529 * libc/machine/aclocal.m4: Ditto.
3530 * libc/machine/configure: Ditto.
3531 * libc/machine/mn10300/Makefile.in: Ditto.
3532 * libc/machine/mn10300/aclocal.m4: Ditto.
3533 * libc/machine/mn10300/configure: Ditto.
3534 * libc/sys/Makefile.in: Ditto.
3535 * libc/sys/aclocal.m4: Ditto.
3536 * libc/sys/configure: Ditto.
3537 * libm/Makefile.in: Ditto.
3538 * libm/aclocal.m4: Ditto.
3539 * libm/configure: Ditto.
3541 Thu June 03 16:20:00 1999 Ranjith Kumaran <ranjith@cygnus.com>
3543 * libc/include/stdlib/stdlib.tex: Add link to env_lock.
3545 Fri May 28 17:09:00 1999 Ranjith Kumaran <ranjith@cygnus.com>
3547 * libc/include/stdlib.h: Add reentrant routines.
3548 * libc/stdlib/Makefile.am: Add reentrant routines.
3549 * libc/stdlib/Makefile.in: Ditto.
3550 * libc/stdlib/envlock.c: New file.
3551 * libc/stdlib/envlock.h: New file.
3552 * libc/stdlib/getenv.c: Modify to call reentrant routine.
3553 * libc/stdlib/getenv_r.c: New file.
3554 * libc/stdlib/mblen.c: Modify to call reentrant routine.
3555 * libc/stdlib/mblen_r.c: New file.
3556 * libc/stdlib/setenv.c: Modify to call reentrant routine.
3557 * libc/stdlib/setenv_r.c: New file.
3558 * libc/stdlib/stdlib.tex: Add reentrant routines.
3560 Mon May 17 22:01:38 1999 Christopher Faylor <cgf@cygnus.com>
3562 * libc/include/sys/types.h: Define __MS_types__ whenever
3565 Sun May 16 16:02:41 1999 Christopher Faylor <cgf@cygnus.com>
3567 * libc/include/machine/ieeefp.h: Always default to little
3568 endian if Windows, regardless of architecture.
3569 * libc/include/machine/sethmp.h: Define JBLEN if CYGWIN
3570 regardless of architecture.
3572 Mon May 3 11:49:18 1999 Geoffrey Noer <noer@cygnus.com>
3574 * libc/include/machine/setjmp.h: Accept CYGWIN define, even if
3575 _WIN32 isn't defined.
3577 Mon May 3 11:41:51 1999 Jeff Johnston <jjohnstn@cygnus.com>
3579 * libm/common/s_rint.c (rint): Add volatile qualifier for
3580 intermediate value w.
3581 * libm/common/sf_rint.c (rintf): Ditto.
3583 Thu Apr 29 20:34:27 1999 Jeff Johnston <jjohnstn@cygnus.com>
3585 * libc/sys/arm/syscalls.c (remap_handle): Added check to
3586 ensure that std streams are initialized before being referenced.
3588 1999-04-27 Jason Molenda (jsm@bugshack.cygnus.com)
3590 * README: Update reference to newlib@cygnus.com new
3591 newlib@sourceware.cygnus.com address.
3593 Mon Apr 26 18:17:33 1999 Geoffrey Noer <noer@cygnus.com>
3595 * libc/include/sys/types.h: Define MS_types if CYGWIN is defined.
3596 * libc/include/sys/fcntl.h: Define _O_BINARY et al if CYGWIN is
3597 defined, even if _WIN32 isn't defined.
3599 Sat Apr 24 19:59:55 1999 Christopher Faylor <cgf@cygnus.com>
3601 * libc/include/sys/fcntl.h: Correct _O_CREATE to _O_CREAT.
3603 Wed Apr 21 18:01:00 1999 Ranjith Kumaran <ranjith@cygnus.com>
3605 * libc/include/sys/reent.h: Change Long and ULong to __Long and
3607 * libc/stdlib/dtoa.c: Ditto.
3608 * libc/stdlib/mprec.c: Ditto.
3609 * libc/stdlib/mprec.h: Ditto.
3610 * libc/stdlib/strtod.c: Ditto.
3612 1999-04-21 Nick Clifton <nickc@cygnus.com>
3614 * configure.host (mcore): Remove mcore machine directory.
3616 1999-04-18 Nick Clifton <nickc@cygnus.com>
3618 * libc/include/machine/ieeefp.h: Add support for mcore target.
3619 * libc/include/machine/setjmp.h: Add support for mcore target.
3620 * configure.host: Add support for mcore target.
3622 1999-04-13 Mark Salter <msalter@cygnus.com>
3624 * libc/sys/arm/libcfunc.c: Moved isatty to syscall.c
3625 * libc/sys/arm/syscalls.c: Added isatty.
3627 Wed Apr 07 16:06:04 1999 Jeff Johnston <jjohnstn@cygnus.com>
3629 * libc/stdlib/ecvtbuf.c (fcvtbuf): Fixed code to properly
3630 insert zeroes after significant digits.
3632 Wed Mar 17 22:06:04 1999 Jeff Johnston <jjohnstn@cygnus.com>
3634 * libc/stdio/vfprintf.c (cvt): Changed floating point
3635 cvt routine to use union used by dtoa to properly determine
3636 if the sign bit is on or not.
3637 * libc/stdio/vfieeefp.h: New file
3639 Wed Mar 17 17:35:04 1999 Jeff Johnston <jjohnstn@cygnus.com>
3641 * aclocal.m4: Regenerated.
3642 * configure: Regenerated.
3644 Wed Mar 17 16:35:04 1999 Jeff Johnston <jjohnstn@cygnus.com>
3646 * libc/machine/i386/Makefile.am (lib_a_SOURCES): Added missing
3648 * libc/machine/i386/Makefile.in: Regenerated.
3650 Tue Mar 16 14:56:36 1999 Jeff Johnston <jjohnstn@cygnus.com>
3652 * acinclude.m4: Changed to work with new automake.
3653 * configure: Regenerated.
3654 * libc/machine/i386/aclocal.m4: Regenerated.
3655 * libc/machine/i386/configure: Regenerated.
3657 Tue Mar 16 13:55:36 1999 Corinna Vinschen <corinna.vinschen@cityweb.de>
3659 * libc/sys/cygwin/sys/dirent.h: Add additional prototypes
3660 for telldir() and seekdir(). Rename unused structure element
3661 for use with these two routines.
3663 Fri Mar 12 19:11:58 1999 Jeff Johnston <jjohnstn@cygnus.com>
3665 * libc/time/mktime.c (validate_structure): Multiple fixes to
3666 code to handle cases where input fields are outside valid ranges.
3667 * libc/stdlib/div.c (div): Modified invalid rounding check.
3668 * libc/stdlib/ldiv.c (ldiv): Ditto.
3670 Thu Mar 11 21:32:13 1999 Jeff Johnston <jjohnstn@cygnus.com>
3672 * libc/machine/i386/memcpy.S: Performance rewrite.
3673 * libc/machine/i386/memmove.S: Ditto.
3674 * libc/machine/i386/i386mach.h: Added more register definitions.
3675 * libc/include/math.h: Include <machine/fastmath.h> if -ffast-math
3677 * libc/include/machine/fastmath.h: Add definitions for x86
3680 Wed Mar 10 17:56:00 1999 Ranjith Kumaran <ranjith@cygnus.com>
3682 * libc/stdlib/strtod.c: Change from unsigned long to ULong.
3684 Tue Mar 9 14:31:58 1999 Geoffrey Noer <noer@cygnus.com>
3686 Adjust newlib headers for new Cygwin Win32 API header files:
3687 * libc/include/sys/time.h: Check _WINSOCK_H rather than
3688 _GNU_H_WINDOWS32_SOCKETS.
3689 * libc/include/sys/types.h: Ditto.
3691 Tue Mar 09 15:55:00 1999 Ranjith Kumaran <ranjith@cygnus.com>
3693 *include/sys/reent.h: Add checks for size of Bigint element Long.
3694 *libc/dtoa.c: Change routines to use generic Long type.
3695 *libc/mprec.c: Change routines to use generic Long type.
3696 *libc/mprec.h: Change routines to use generic Long type.
3698 Tue Mar 02 18:07:49 1999 Ranjith Kumaran <ranjith@cygnus.com>
3700 * libc/Makefile.am: Add .def files.
3701 * libc/Makefile.in: Regenerate.
3702 * libc/e_acosh.c: Documentation update.
3703 * libc/e_atanh.c: Documentation update.
3704 * libc/e_hypot.c: Documentation update.
3705 * libc/e_remainder.c: Documentation update.
3706 * libc/er_lgamma.c: Documentation update.
3707 * libc/mathfp.tex: Documentation update.
3708 * libc/s_acos.c: Documentation update.
3709 * libc/s_atan.c: Documentation update.
3710 * libc/s_atan2.c: Documentation update.
3711 * libc/s_cosh.c: Documentation update.
3712 * libc/s_fmod.c: Documentation update.
3713 * libc/s_isnan.c: Documentation update.
3714 * libc/s_log10.c: Documentation update.
3715 * libc/s_pow.c: Documentation update.
3716 * libc/w_jn.c: Documentation update.
3718 Sun Feb 28 23:18:49 1999 Geoffrey Noer <noer@cygnus.com>
3720 * aclocal.m4: Regenerate.
3721 * configure: Regenerate.
3723 Tue Feb 23 13:57:26 1999 Jeff Johnston <jjohnstn@cygnus.com>
3725 * libc/machine/mn10300/setjmp.S (_longjmp): Fixed longjmp
3726 to return 1 if user specified return code is 0.
3727 * libc/machine/mn10200/setjmp.S (_longjmp): Ditto.
3729 Thu Feb 18 11:13:28 1999 Jeff Johnston <jjohnstn@cygnus.com>
3731 * libc/machine/mn10200/setjmp.S (_setjmp/_longjmp): Fixed setjmp
3732 to save the return address. Fixed longjmp to return to the original
3733 calling address of setjmp and to return the user specified return code
3734 rather than default to 1.
3735 * libc/machine/mn10300/setjmp.S (_setjmp/_longjmp): Ditto.
3737 Mon Feb 15 17:48:17 1999 Jeff Johnston <jjohnstn@cygnus.com>
3739 * libc/stdlib/mprec.h (mult): Define mult to be _multiply instead of _mult.
3741 1999-02-10 Nick Clifton <nickc@cygnus.com>
3743 * libc/sys/arm/syscalls.c (initialise_monitor_handles): Make block
3744 volatile so that its assignments will not be discarded.
3746 Wed Feb 10 17:19:40 1999 Jeff Johnston <jjohnstn@cygnus.com>
3748 * libc/include/_ansi.h: Corrected _STRICT_ANSI reference to
3749 be __STRICT_ANSI__ which is generated by compiler.
3750 * libc/include/ctype.h: Ditto.
3751 * libc/include/math.h: Ditto.
3752 * libc/include/stdio.h: Ditto.
3753 * libc/include/stdlib.h: Ditto.
3754 * libc/include/string.h: Ditto.
3755 * libc/include/sys/signal.h: Ditto.
3757 1999-02-08 Nick Clifton <nickc@cygnus.com>
3759 * configure.host: Add support for StrongARM target.
3761 Fri Feb 5 11:13:14 1999 Jeff Johnston <jjohnstn@cygnus.com>
3763 * libc/string/strncpy.c (strncpy): Removed redundant code
3764 that was copying bytes if data unaligned.
3766 1999-02-02 Brendan Kehoe <brendan@cygnus.com>
3768 * libc/stdlib/Makefile.{am,in} (CHEWOUT_FILES): Add mblen.def,
3769 mbstowcs.def, and wcstombs.def.
3771 Sat Jan 30 02:36:33 1999 Christopher Faylor <cgf@cygnus.com>
3773 * libc/include/sys/errno.h: Add Cygwin errno.
3774 * libc/stdio/flags.c: Don't default to O_TEXT if no other flag
3777 1999-01-29 Nick Clifton <nickc@cygnus.com>
3779 * libc/sys/arm/syscalls.c: Move C library functions into seperate
3782 * libc/sys/arm/libcfunc.c: New file containing C library functions
3785 * libc/sys/arm/Makefile.am (lib_a_SOURCES): Add libcfuncs.c
3786 * libc/sys/arm/Makefile.in (lib_a_SOURCES): Regenerate.
3789 1999-01-27 Michael Meissner <meissner@cygnus.com>
3791 * libc/include/machine/setjmp.h (D30V _JBLEN/_JBTYPE): Use double
3792 type, and cut size in half so that the jmp_buf array is guaranteed
3793 to be aligned on a 64-bit boundary.
3795 Mon Jan 25 12:05:38 1999 Jeff Johnston <jjohnstn@cygnus.com>
3797 * libc/string/strings.tex: Added information about
3798 strcasecmp and strncasecmp.
3799 * libc/stdlib/stdlib.tex: Added missing information
3800 about mblen, mbstowcs, and wcstombs.
3801 * libc/string/strchr.c: Changed how mask is built to use
3802 shift operators so register will be used instead of storage.
3804 1999-01-22 DJ Delorie <dj@cygnus.com>
3806 * libc/include/stdlib.h: don't use dllimport if we're building
3807 newlib, since it's inside cygwin.dll
3809 Fri Jan 22 14:57:18 1999 Christopher Faylor <cgf@cygnus.com>
3811 * libc/ctype/ctype_.c: Need to use __declspec(dllexport) for
3812 _ctype_ under cygwin.
3814 Fri Jan 22 09:50:19 1999 Christopher Faylor <cgf@cygnus.com>
3816 * include/stdlib.h: Fix typo from previous checkin.
3818 Thu Jan 21 22:42:21 1999 Christopher Faylor <cgf@cygnus.com>
3820 * include/ctype.h: Use __declspec(dllimport) method for exporting
3821 variable from cygwin DLL.
3822 * include/time.h: Ditto.
3823 * sys/errno.h: Ditto.
3824 * include/stdlib.h: Export __mb_cur_max from cygwin DLL.
3825 * libc/locale/locale.c: Use __declspec(dllexport) method for
3826 exporting variable from cygwin DLL.
3828 Sat Jan 16 13:29:54 1999 Christopher Faylor <cgf@cygnus.com>
3830 * libc/stdio/setvbuf.c: Always clean up when _IONBF or possible
3831 access of bogus pointer will result in SIGSEGV.
3833 1999-01-07 Nick Clifton <nickc@cygnus.com>
3835 * libc/sys/arm/setjmp.S: Use C macros to cope with the possibility
3836 of an underscore prefix to function names.
3838 Fri Jan 8 19:00:07 1999 Jeff Johnston <jjohnstn@cygnus.com>
3840 * libc/machine/i386/i386mach.h (__REG_PREFIX__): Create new
3841 define __REG_PREFIX__ instead of using __REGISTER_PREFIX__.
3843 1998-12-31 Michael Meissner <meissner@cygnus.com>
3845 * libc/machine/i386/i386mach.h (__REGISTER_PREFIX__): Only define
3846 to `%' if not already defined.
3848 1998-12-30 Michael Meissner <meissner@cygnus.com>
3850 * libc/stdio/tmpnam.c (_tempnam_r): Make directory and prefix
3851 arguments const char *, not char *.
3852 * libc/include/stdio.h (_tempnam_r): Ditto.
3854 * libc/include/sys/reent.h (struct _reent): The _sig_func type
3855 points to a function taking an integer, not void.
3857 Tue Dec 29 14:35:53 1998 Christopher Faylor <cgf@cygnus.com>
3859 * configure.host: Add a define for Cygwin builds.
3860 * libc/include/ctype.h: Don't use dll imported variables in newlib.
3862 Mon Dec 28 09:19:56 1998 Christopher Faylor <cgf@cygnus.com>
3864 * libc/include/ctype.h: Define _ctype_ as dll imported variable
3865 for use with Cygwin.
3866 * libc/include/sys/errno.h: Define _sys_errlist and _sys_nerr as
3867 dll imported variables for use with Cygwin.
3868 * libc/ctype/ctype_.c: Undefine _ctype_ in case it has been defined
3869 as a dll imported variable for Cygwin.
3871 Sat Dec 26 00:13:53 1998 Christopher Faylor <cgf@cygnus.com>
3873 * libc/include/sys/unistd.h: Add proto for getpass.
3875 Fri Dec 18 19:28:19 1998 Geoffrey Noer <noer@cygnus.com>
3877 * libc/sys/cygwin/sys/dirent.h: add protos for scandir and
3880 Fri Dec 18 16:33:25 1998 Geoffrey Noer <noer@cygnus.com>
3882 * libc/posix/execvp.c (execvp): call cygwin_posix_path_list_p,
3883 not posix_path_list_p.
3885 1998-12-15 Nick Clifton <nickc@cygnus.com>
3887 * libc/string/memchr.c: Treat 'c' argument as an unsigned byte not
3890 1998-12-13 Nick Clifton <nickc@cygnus.com>
3892 * libc/include/machine/setjmp.h (_JBLEN): Set to 10.
3894 1998-12-12 Nick Clifton <nickc@cygnus.com>
3896 * libc/machine/fr30/setjmp.S: New file, supplied by Mark Slater
3897 <msalter@cygnus.com>
3898 * libc/machine/fr30/Makefile.am: Add build of setjmp.S
3899 * libc/machine/fr30/Makefile.in: Regenerated.
3901 1998-12-11 Nick Clifton <nickc@cygnus.com>
3903 * configure.host: Remove use of libc/sys for FR30 port.
3904 * libc/sys/fr30: Remove directory (replaced by libgloss).
3906 1998-12-10 Ken Raeburn <raeburn@cygnus.com>
3908 * libc/string/strcat.c (ALIGNED): Sense of result was reversed.
3909 * libc/string/strncat.c (ALIGNED): Ditto.
3911 Wed Dec 9 14:37:57 1998 Geoffrey Noer <noer@cygnus.com>
3913 * libc/include/sys/time.h: include sys/types.h
3915 Tue Dec 8 15:53:18 1998 Jeff Johnston <jjohnstn@cygnus.com>
3917 * libc/machine/i386/memcmp.S (memcmp): Fix for unequal
3918 comparison found when checking word at a time.
3920 1998-12-04 Nick Clifton <nickc@cygnus.com>
3922 * libc/sys/fr30/crt0.s (_start): Initialise frame pointer.
3924 1998-12-03 Nick Clifton <nickc@cygnus.com>
3926 * libc/sys/fr30/syscalls.c (_times): New function stub.
3928 Thu Dec 3 15:59:19 1998 Jeff Johnston <jjohnstn@cygnus.com>
3930 * configure.host (mach_add_setjmp): Replaced mach_add_objs
3931 with mach_add_setjmp flag which indicates if setjmp should
3932 be added to the machine directory objects.
3933 * acinclude.m4: Removed reference to mach_add_objs.
3934 * aclocal.m4: Regenerated.
3935 * Makefile.in: Regenerated.
3936 * configure: Regenerated.
3937 * libc/aclocal.m4: Regenerated.
3938 * libc/Makefile.in: Regenerated.
3939 * libc/configure: Regenerated.
3940 * libc/machine/aclocal.m4: Regenerated.
3941 * libc/machine/Makefile.in: Regenerated.
3942 * libc/machine/configure: Regenerated.
3943 * libc/machine/i386/aclocal.m4: Regenerated.
3944 * libc/machine/i386/Makefile.am: Altered to selectively add
3945 setjmp.S to the src files list.
3946 * libc/machine/i386/Makefile.in: Regenerated.
3947 * libc/machine/i386/configure.in: Altered to test mach_add_setjmp.
3948 * libc/machine/i386/configure: Regenerated.
3950 1998-12-02 Nick Clifton <nickc@cygnus.com>
3952 * libc/sys/fr30/crt0.s (_start): Fix function names.
3954 * libc/machine/fr30: New directory
3955 * libc/machine/fr30/Makefile.am: New file.
3956 * libc/machine/fr30/Makefile.in: New generated file.
3957 * libc/machine/fr30/configure.in: New file.
3958 * libc/machine/fr30/configure: New generated file.
3959 * libc/machine/fr30/aclocal.m4: New generated file.
3960 * libc/sys/fr30/Makefile.am: New file.
3961 * libc/sys/fr30/Makefile.in: New generated file.
3962 * libc/sys/fr30/configure.in: New file.
3963 * libc/sys/fr30/configure: New generated file.
3964 * libc/sys/fr30/syscalls.c: New file.
3966 Tue Dec 1 16:28:56 1998 Geoffrey Noer <noer@cygnus.com>
3968 * libc/sys/cygwin/sys/utmp.h: new file, moved from winsup/include.
3970 1998-12-01 Ken Raeburn <raeburn@cygnus.com>
3972 * libc/time/strftime.c (strftime): Also handle %y for years before
3975 Tue Dec 1 13:26:07 1998 Christopher Faylor <cgf@cygnus.com>
3977 * libc/string/strcasecmp.c (strcasecmp): Adhere to standard
3978 UNIX convention. Perform tolower on characters before comparing
3979 them rather than use toupper.
3980 * libc/string/strncasecmp.c (strncasecmp): Ditto.
3982 Mon Nov 30 16:24:19 1998 Jeff Johnston <jjohnstn@cygnus.com>
3984 * configure.host: Added using i386 machine directory
3985 for all x86 cross-compiler and configuring
3986 which added object files to use via new "mach_add_objs" variable.
3987 * configure: Regenerated.
3988 * libc/configure: Regenerated.
3989 * libc/Makefile.in: Regenerated.
3990 * libc/aclocal.m4: Regenerated.
3991 * libc/ctype/Makefile.in: Regenerated.
3992 * libc/errno/Makefile.in: Regenerated.
3993 * libc/locale/Makefile.in: Regenerated.
3994 * libc/machine/Makefile.in: Regenerated.
3995 * libc/machine/aclocal.m4: Regenerated.
3996 * libc/machine/configure: Regenerated.
3997 * libc/posix/Makefile.in: Regenerated.
3998 * libc/reent/Makefile.in: Regenerated.
3999 * libc/signal/Makefile.in: Regenerated.
4000 * libc/stdio/Makefile.in: Regenerated.
4001 * libc/stdlib/Makefile.in: Regenerated.
4002 * libc/string/Makefile.in: Regenerated.
4003 * libc/string/memmove.c: Optimized code to use memcpy
4004 logic when performing a non-destructive copy.
4005 * libc/string/strncmp.c: Altered code to allow building
4006 optimized for size or speed.
4007 * libc/syscalls/Makefile.in: Regenerated.
4008 * libc/time/Makefile.in: Regenerated.
4009 * libc/unix/Makefile.in: Regenerated.
4010 * libc/machine/i386/Makefile.am: Added new files and reference
4011 to "mach_add_objs" to indicate optional object files.
4012 * libc/machine/i386/Makefile.in: Regenerated.
4013 * libc/machine/i386/aclocal.m4: Regenerated.
4014 * libc/machine/i386/configure: Regenerated.
4015 * libc/machine/i386/memchr.S: New file that implements
4016 function in Intel assembler.
4017 * libc/machine/i386/memcmp.S: ditto.
4018 * libc/machine/i386/memcpy.S: ditto.
4019 * libc/machine/i386/memmove.S: ditto.
4020 * libc/machine/i386/memset.S: ditto.
4021 * libc/machine/i386/strchr.S: ditto.
4022 * libc/machine/i386/strlen.S: ditto.
4023 * libc/machine/i386/f_atan2.S: New file that implements
4024 fast version of math function to be used by compiler when
4025 --ffast_math compile option is used.
4026 * libc/machine/i386/f_atan2f.S: ditto.
4027 * libc/machine/i386/f_exp.c: ditto.
4028 * libc/machine/i386/f_expf.c: ditto.
4029 * libc/machine/i386/f_frexp.S: ditto.
4030 * libc/machine/i386/f_frexpf.S: ditto.
4031 * libc/machine/i386/f_ldexp.S: ditto.
4032 * libc/machine/i386/f_ldexpf.S: ditto.
4033 * libc/machine/i386/f_log.S: ditto.
4034 * libc/machine/i386/f_logf.S: ditto.
4035 * libc/machine/i386/f_log10.S: ditto.
4036 * libc/machine/i386/f_log10f.S: ditto.
4037 * libc/machine/i386/f_math.h: New file.
4038 * libc/machine/i386/f_pow.c: ditto.
4039 * libc/machine/i386/f_powf.S: ditto.
4040 * libc/machine/i386/f_tan.S: ditto.
4041 * libc/machine/i386/f_tan.S: ditto.
4042 * libc/machine/i386/i386mach.h: New file.
4044 Mon Nov 30 13:02:17 1998 Christopher Faylor <cgf@cygnus.com>
4046 patch from Mumit Khan <khan@xraylith.wisc.edu>
4047 * libc/include/stdio.h (tempnam): Add prototype.
4048 * libc/stdio/tmpnam.c (_tempnam_r): Handle NULL prefix.
4049 (tempnam): Adhere to prototype.
4051 Thu Nov 26 00:21:32 1998 Christopher Faylor <cgf@cygnus.com>
4053 * Makefile.am: Add default for AR_FLAGS.
4054 * Makefile.in: Regenerate.
4056 Tue Nov 24 18:48:56 1998 Geoffrey Noer <noer@cygnus.com>
4058 * libc/include/time.h: move __cplusplus wrapper after includes
4059 * libc/include/sys/time.h: ditto. If Cygwin, include
4061 * libc/include/sys/types.h: lose "32" in comment about Cygwin.
4063 1998-11-23 Ken Raeburn <raeburn@cygnus.com>
4065 * libc/time/strftime.c (strftime): Handle %y after year 2000.
4067 Wed Nov 18 12:22:41 1998 Nick Clifton <nickc@cygnus.com>
4069 * libc/sys/fr30/crt0.s (_start): Switch over to using int #9 as
4070 abnormnal end-of-crt0 marker.
4072 Tue Nov 17 16:27:58 1998 Nick Clifton <nickc@cygnus.com>
4074 * libc/sys/fr30/crt0.s: New file/directory.
4075 * libc/include/machine/setjmp.h: Add FR30 target.
4076 * libc/include/machine/ieeefp.h: Add FR30 target.
4077 * configure.host: Add FR30 target.
4079 Mon Nov 16 23:15:00 1998 Ranjith Kumaran <ranjith@cygnus.com>
4081 * libm/math: Files that are duplicated in common directory removed.
4082 * libm/math/fdlibm.h: Removed.
4083 * libm/math/s_cbrt.c: Removed.
4084 * libm/math/s_copysign.c: Removed.
4085 * libm/math/s_expm1.c: Removed.
4086 * libm/math/s_finite.c: Removed.
4087 * libm/math/s_ilogb.c: Removed.
4088 * libm/math/s_infinity.c: Removed.
4089 * libm/math/s_lib_ver.c: Removed.
4090 * libm/math/s_log1p.c: Removed.
4091 * libm/math/s_logb.c: Removed.
4092 * libm/math/s_matherr.c: Removed.
4093 * libm/math/s_modf.c: Removed.
4094 * libm/math/s_nan.c: Removed.
4095 * libm/math/s_nextafter.c: Removed.
4096 * libm/math/s_rint.c: Removed.
4097 * libm/math/s_scalbn.c: Removed.
4098 * libm/math/sf_cbrt.c: Removed.
4099 * libm/math/sf_copysign.c: Removed.
4100 * libm/math/sf_expm1.c: Removed.
4101 * libm/math/sf_finite.c: Removed.
4102 * libm/math/sf_ilogb.c: Removed.
4103 * libm/math/sf_infinity.c: Removed.
4104 * libm/math/sf_log1p.c: Removed.
4105 * libm/math/sf_logb.c: Removed.
4106 * libm/math/sf_modf.c: Removed.
4107 * libm/math/sf_nan.c: Removed.
4108 * libm/math/sf_nextafter.c: Removed.
4109 * libm/math/sf_rint.c: Removed.
4110 * libm/math/sf_scalbn.c: Removed.
4111 * libm/math/Makefile.am: Removed references to deleted files (above).
4112 * libm/math/Makefile.in: Regenerated.
4113 * libm/Makefile.am: Added common directory to math.
4114 * libm/Makefile.in: Regenerated.
4116 Mon Nov 2 23:12:00 1998 Ranjith Kumaran <ranjith@cygnus.com>
4118 * libm/mathfp: Add non-ANSI functions.
4119 * libm/mathfp/e_acosh.c acosh(): New file.
4120 * libm/mathfp/e_atanh.c atanh(): New file.
4121 * libm/mathfp/e_hypot.c hypot(): New file.
4122 * libm/mathfp/e_j0.c j0(): New file.
4123 * libm/mathfp/e_j1.c j1(): New file.
4124 * libm/mathfp/e_remainder.c remainder(): New file.
4125 * libm/mathfp/e_scalb.c scalb(): New file.
4126 * libm/mathfp/ef_acosh.c acoshf(): New file.
4127 * libm/mathfp/ef_atanh.c atanhf(): New file.
4128 * libm/mathfp/ef_hypot.c hypotf(): New file.
4129 * libm/mathfp/ef_j0.c j0f(): New file.
4130 * libm/mathfp/ef_j1.c j1f(): New file.
4131 * libm/mathfp/ef_remainder.c remainderf(): New file.
4132 * libm/mathfp/ef_scalb.c scalbf(): New file.
4133 * libm/mathfp/er_gamma.c gamma_r: New file.
4134 * libm/mathfp/er_lgamma.c lgamma_r(): New file.
4135 * libm/mathfp/erf_gamma.c gamma_rf(): New file.
4136 * libm/mathfp/erf_lgamma.c lgamma_rf(): New file.
4137 * libm/mathfp/w_cabs.c cabs(): New file.
4138 * libm/mathfp/w_drem.c drem(): New file.
4139 * libm/mathfp/w_jn.c jn(): New file.
4140 * libm/mathfp/wf_cabs.c cabsf(): New file.
4141 * libm/mathfp/wf_drem.c dremf(): New file.
4142 * libm/mathfp/wf_jn.c jnf(): New file.
4144 Mon Nov 2 16:43:18 1998 Geoffrey Noer <noer@cygnus.com>
4146 * libc/sys/cygwin32: remove directory and contents
4147 * libc/sys/cygwin: and add back, losing the "32".
4148 * configure.host: check for cygwin* instead of cygwin32.
4149 * acinclude.m4: ditto.
4150 * aclocal.m4: regenerate with aclocal
4151 * configure: regenerate with autoconf
4153 Tue Oct 20 17:28:28 1998 Geoffrey Noer <noer@cygnus.com>
4155 * libc/stdio/tmpnam.c (_tempnam_r): not enough memory allocated
4158 Tue Oct 20 18:49:05 1998 Jeff Johnston <jjohnstn@cygnus.com>
4160 * libc/include/sys/reent.h (struct _reent): Added variables _rand_next, _strtok_last,
4161 _asctime_buf, _localtime_buf and _gamma_signgam to struct reent
4162 to make rand/srand, strtok, asctime, localtime, w_gamma,
4163 w_lgamma, wf_gamma, and wf_lgamma reentrant. Included
4164 time.h to bring in struct tm definition.
4165 * libc/stdlib/rand.c (rand, srand): Don't emit functions 'rand' and 'srand' if
4166 '_REENT_ONLY' is set. Used variable '_rand_next' from struct reent.
4167 * libc/stdlib/strtok.c (strtok): Used variable '_strtok_last' from struct reent
4168 instead of static variable.
4169 * libc/stdlib/asctime.c (asctime): Used variable '_asctime_buf' from
4170 struct reent instead of static variable.
4171 * libc/stdlib/lcltime.c (localtime): Used variable '_localtime_buf' from
4172 struct reent instead of static variable.
4173 * libm/math/Makefile.am: Removed s_signgam.o.
4174 * libm/math/Makefile.in: Regenerated.
4175 * libm/math/w_gamma.c (gamma): Used variable '_gamma_signgam' from
4176 struct reent instead of global variable 'signgam'.
4177 * libm/math/w_lgamma.c (lgamma): Likewise.
4178 * libm/math/wf_gamma.c (gammaf): Likewise.
4179 * libm/math/wf_lgamma.c (lgammaf): Likewise.
4180 * libm/math/s_signgam.c: Removed.
4181 * libc/include/unctrl.h: Defined arrays __unctrl and __unctrllen
4183 * libc/misc/unctrl.c: Defined arrays __unctrl and __unctrllen
4185 * libc/reent/Makefile.am: Added dependence for impure.o on impure.c and
4186 libc/include/reent.h.
4187 * libc/reent/Makefile.in: Regenerated.
4188 * libc/stdio/vfprintf.c (_vfprintf_r): Defined arrays 'blanks' and 'zeroes'
4190 * libc/stdlib/mbtowc_r.c (_mbtowc_r): Defined arrays 'JIS_state_table' and
4191 'JIS_action_table' to be const.
4192 * libm/math/s_lib_ver.c: define variable _LIB_VERSION to be const.
4194 Mon Oct 12 00:26:33 1998 Christopher Faylor <cgf@cygnus.com>
4196 * acinclude.m4: $with_target_subdir should default to '.'
4197 or confusion results when configuring in same directory as sources.
4198 * Regenerate all aclocal.m4 and configure files.
4200 Fri Oct 9 16:27:36 1998 Jeff Johnston <jjohnstn@cygnus.com>
4202 * libc/stdlib/mallocr.c: Added 16 byte alignment support which
4203 can be set by defining MALLOC_ALIGNMENT=16. Also added support
4204 for platforms where sizeof(size_t) < sizeof(long) via
4205 SIZE_T_SMALLER_THAN_LONG macro.
4207 Wed Oct 7 14:02:40 1998 Jeff Johnston <jjohnstn@cygnus.com>
4209 * libc/include/time.h (CLOCKS_PER_SEC): Change CLOCKS_PER_SEC
4210 to refer to _CLOCKS_PER_SEC_ and added including <machine/time.h>
4211 which sets _CLOCKS_PER_SEC_ for selected machines.
4212 * libc/include/machine/time.h: New file.
4214 Tue Oct 6 16:08:05 1998 Jeff Johnston <jjohnstn@cygnus.com>
4216 * libc/syscalls/sysexecve.c: New file.
4217 * libc/syscalls/sysgettod.c: New file.
4218 * libc/syscalls/systimes.c: New file.
4219 * libc/syscalls/Makefile.am: Added new objects.
4220 * libc/syscalls/Makefile.in: Regenerated.
4221 * libc/include/_syslist.h (_execve): Moved define in file.
4222 * libc/include/reent.h: Added _execve_r declaration.
4223 * libc/Makefile.in: Regenerated.
4224 * libc/ctype/Makefile.in: Regenerated.
4225 * libc/errno/Makefile.in: Regenerated.
4226 * libc/locale/Makefile.in: Regenerated.
4227 * libc/machine/Makefile.in: Regenerated.
4228 * libc/misc/Makefile.in: Regenerated.
4229 * libc/posix/Makefile.in: Regenerated.
4230 * libc/reent/Makefile.in: Regenerated.
4231 * libc/reent/execr.c (_execve_r): Added _execve_r function.
4232 * libc/signal/Makefile.in: Regenerated.
4233 * libc/stdio/Makefile.in: Regenerated.
4234 * libc/time/Makefile.in: Regenerated.
4235 * libc/unix/Makefile.in: Regenerated.
4236 * libm/mathfp/Makefile.in: Regenerated.
4238 Tue Oct 6 14:14:05 1998 Jeff Johnston <jjohnstn@cygnus.com>
4240 * libc/string/Makefile.in: Regenerated.
4241 * libc/string/memchr.c (memchr): Moved code to reduce object size.
4242 * libc/string/memcpy.c (memcpy): Ditto.
4243 * libc/string/memcmp.c (memcmp): Ditto.
4244 * libc/string/memset.c (memset): Ditto.
4245 * libc/string/strchr.c (strchr): Ditto.
4246 * libc/string/strcmp.c (strcmp): Ditto.
4247 * libc/string/strcpy.c (strcpy): Ditto.
4248 * libc/string/strlen.c (strlen): Ditto.
4250 Tue Oct 6 13:58:05 1998 Jeff Johnston <jjohnstn@cygnus.com>
4252 * libm/acinclude.m4: Removed since newlib/acinclude.m4 can be used
4253 to generate aclocal.m4.
4254 * libm/Makefile.in: Regenerated.
4255 * libm/aclocal.m4: Regenerated.
4256 * libm/configure: Regenerated.
4257 * libm/math/Makefile.in: Regenerated.
4258 * libm/mathfp/Makefile.in: Regenerated.
4260 1998-09-25 Mark Salter <msalter@cygnus.com>
4262 * libc/include/machine/setjmp.h: Fixed test for mn10300 and mn10200
4263 by adding leading and trailing underscores to symbol names.
4265 Tue Sep 22 15:33:41 1998 Christopher Faylor <cgf@cygnus.com>
4267 * Makefile.in: Add default for AR_FLAGS.
4269 Tue Sep 22 15:02:49 1998 Christopher Faylor <cgf@cygnus.com>
4271 patch from ian@airs.com (Ian Taylor):
4272 * acinclude.m4: Run AC_CANONICAL_BUILD explicitly before
4273 NEWLIB_CONFIGURE so AC_CANONICAL_HOST will be run before it
4274 is needed for detecting the build machine. Required for
4275 cygwin native builds.
4277 * Regenerate all aclocal.m4 and configure files.
4279 Mon Sep 21 14:44:16 1998 Nick Clifton <nickc@cygnus.com>
4281 * libc/sys/arm/crt0.S: Prepend a period to all local labels that
4282 used to start with LC.
4284 Thu Sep 17 18:18:11 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
4286 * libc/machine/sh/setjmp.S (setjmp): Handle __SH4* like __SH3E__ .
4287 (longjmp): Likewise.
4289 Thu Sep 17 16:25:33 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
4291 * libc/machine/sh/memset.S (memset): Move copy from r4 to r4 before
4292 the test for small number of bytes.
4294 Thu Sep 10 11:40:00 1998 Ranjith Kumaran <ranjith@cygnus.com>
4296 * Makefile.am: Add --enable-newlib-hw-fp check. This builds the new
4297 math library that uses floating point algorithms instead of the old
4299 * Makefile.in: Regenerate with automake version 1.3b.
4300 * configure: Rebuild.
4301 * libm/Makefile.in: Regenerate with automake version 1.3b.
4302 * libm/aclocal.m4: Regenerate.
4303 * libm/configure: Rebuild.
4304 * libm/configure.in: Add newlib_hw_fp definition and mathfp directory.
4305 * libm/acinclude.m4: Define macros for configure.in.
4306 * libm/config.h.in: Generate.
4307 * libm/mathfp/Makefile.am: New file.
4308 * libm/mathfp/Makefile.in: Generate.
4309 * libm/mathfp/s_acos.c (acos): New file.
4310 * libm/mathfp/s_asin.c (asin): New file.
4311 * libm/mathfp/s_asine.c (asine): New file.
4312 * libm/mathfp/s_atan.c (atan): New file.
4313 * libm/mathfp/s_atan2.c (atan2): New file.
4314 * libm/mathfp/s_atangent.c (atangent): New file.
4315 * libm/mathfp/s_ceil.c (ceil): New file.
4316 * libm/mathfp/s_copysign.c (copysign): New file.
4317 * libm/mathfp/s_cos.c (cos): New file.
4318 * libm/mathfp/s_cosh.c (cosh): New file.
4319 * libm/mathfp/s_exp.c (exp): New file.
4320 * libm/mathfp/s_fabs.c (fabs): New file.
4321 * libm/mathfp/s_finite.c (finite): New file.
4322 * libm/mathfp/s_floor.c (floor): New file.
4323 * libm/mathfp/s_fmod.c (fmod): New file.
4324 * libm/mathfp/s_frexp.c (frexp): New file.
4325 * libm/mathfp/s_infconst.c: New file.
4326 * libm/mathfp/s_isinf (isinf).c: New file.
4327 * libm/mathfp/s_isnan.c (isnan): New file.
4328 * libm/mathfp/s_ispos.c (ispos): New file.
4329 * libm/mathfp/s_ldexp.c (ldexp): New file.
4330 * libm/mathfp/s_log.c (log): New file.
4331 * libm/mathfp/s_log10.c (log10): New file.
4332 * libm/mathfp/s_logarithm.c (logarithm): New file.
4333 * libm/mathfp/s_mathcnst.c: New file.
4334 * libm/mathfp/s_modf (modf).c: New file.
4335 * libm/mathfp/s_numtest.c (numtest): New file.
4336 * libm/mathfp/s_pow.c (pow): New file.
4337 * libm/mathfp/s_scalbn.c (scalbn): New file.
4338 * libm/mathfp/s_sin (sin).c: New file.
4339 * libm/mathfp/s_sine.c (sine): New file.
4340 * libm/mathfp/s_sineh.c (sineh): New file.
4341 * libm/mathfp/s_sinf.c (sinf): New file.
4342 * libm/mathfp/s_sinh.c (sinh): New file.
4343 * libm/mathfp/s_sqrt.c (sqrt): New file.
4344 * libm/mathfp/s_tan.c (tan): New file.
4345 * libm/mathfp/s_tanh.c (tanh): New file.
4346 * libm/mathfp/sf_acos.c (acosf): New file.
4347 * libm/mathfp/sf_asin.c (asinf): New file.
4348 * libm/mathfp/sf_asine.c (asinef): New file.
4349 * libm/mathfp/sf_atan.c (atanf): New file.
4350 * libm/mathfp/sf_atan2.c (atan2f): New file.
4351 * libm/mathfp/sf_atangent.c (atangent): New file.
4352 * libm/mathfp/sf_ceil.c (ceilf): New file.
4353 * libm/mathfp/sf_copysign.c (copysignf): New file.
4354 * libm/mathfp/sf_cos.c (cosf): New file.
4355 * libm/mathfp/sf_cosh.c (coshf): New file.
4356 * libm/mathfp/sf_exp.c (expf): New file.
4357 * libm/mathfp/sf_fabs.c (fabsf): New file.
4358 * libm/mathfp/sf_finite.c (finitef): New file.
4359 * libm/mathfp/sf_floor.c (floorf): New file.
4360 * libm/mathfp/sf_fmod.c (fmodf): New file.
4361 * libm/mathfp/sf_frexp.c (frexpf): New file.
4362 * libm/mathfp/sf_isinf.c (isinff): New file.
4363 * libm/mathfp/sf_isnan.c (isnanf): New file.
4364 * libm/mathfp/sf_ispos.c (isposf): New file.
4365 * libm/mathfp/sf_ldexp.c (ldexpf): New file.
4366 * libm/mathfp/sf_log.c (logf): New file.
4367 * libm/mathfp/sf_log10.c (log10f): New file.
4368 * libm/mathfp/sf_logarithm.c (logarithmf): New file.
4369 * libm/mathfp/sf_modf.c (modff): New file.
4370 * libm/mathfp/sf_numtest.c (numtestf): New file.
4371 * libm/mathfp/sf_pow.c (powf): New file.
4372 * libm/mathfp/sf_scalbn.c (scalbnf): New file.
4373 * libm/mathfp/sf_sin.c (sinf): New file.
4374 * libm/mathfp/sf_sine.c (sinef): New file.
4375 * libm/mathfp/sf_sineh.c (sinehf): New file.
4376 * libm/mathfp/sf_sinh.c (sinhf): New file.
4377 * libm/mathfp/sf_sqrt.c (sqrtf): New file.
4378 * libm/mathfp/sf_tan.c (tanf): New file.
4379 * libm/mathfp/sf_tanh.c (tanhf): New file.
4380 * libm/mathfp/zmath.h: New file.
4382 Wed Sep 2 02:49:03 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
4384 * libc/machine/sh/strcmp.S (L_char_loop): Re-load r0 at loop
4385 exit if it has been overwritten by pre-fetching in delay slot.
4387 1998-09-01 Michael Meissner <meissner@cygnus.com>
4389 * Makefile.am (tooldir): Add in host_alias, so that multilib
4390 libraries are installed in the directory the compiler looks in.
4391 * Makefile.in: Regenerate.
4393 * libc/stdlib/Makefile.in: Regenerate with automake version 1.3b.
4395 Mon Aug 31 11:39:31 1998 Jeff Johnston <jjohnstn@cygnus.com>
4397 * libc/machine/mn10300/memcpy.S (_memcpy): Move alignment test
4398 ahead of test for number of bytes being moved.
4400 Thu Aug 27 14:07:53 1998 Christopher Faylor <cgf@cygnus.com>
4402 * libc/include/sys/unistd.h: Nothing special needed for
4405 Wed Aug 26 15:05:21 1998 Nick Clifton <nickc@cygnus.com>
4407 * libc/sys/arm/syscalls.c (_sbrk): Rename '_end' to 'end' to
4408 conform to user label naming conventions.
4410 Mon Aug 24 14:46:19 1998 Geoffrey Noer <noer@cygnus.com>
4412 * libc/sys/cygwin32/sys/utime.h: variable names in
4413 protos should start with two leading underscores
4414 * libc/include/string.h: ditto
4415 * libc/include/sys/signal.h: ditto
4416 * libc/include/sys/stat.h: ditto
4417 * libc/include/sys/time.h: ditto
4418 * libc/include/sys/unistd.h: ditto
4419 * libc/include/ctype.h: ditto
4420 * libc/include/stdlib.h: ditto
4421 * libc/include/sys/reent.h: struct _atexit function ptr takes a
4422 void, same with _sig_func.
4424 Fri Aug 21 14:44:14 1998 Jeff Johnston <jjohnstn@cygnus.com>
4426 * libc/stdlib/mbtowc_r.c (_mbtowc_r): Added preprocessor checks
4427 for MB_CAPABLE to reduce code size when newlib is not configured
4428 with --enable-newlib-mb.
4429 * libc/stdlib/Makefile.am: Specified -fshort-enums when building
4430 mbtowc_r.o to minimize size.
4431 * libc/stdlib/Makefile.in: Rebuild.
4433 Wed Aug 19 16:20:13 1998 Jim Wilson <wilson@cygnus.com>
4435 * libc/sys/sparc64/Makefile.am (.S_r.o, .c_r.o): Change -DREENTRANT
4437 * libc/sys/sparc64/Makefile.in: Rebuild.
4439 Tue Aug 18 22:38:29 1998 Ian Lance Taylor <ian@cygnus.com>
4441 * Makefile.am (MAKEOVERRIDES): Define.
4442 * Makefile.in: Rebuild.
4444 Tue Aug 18 12:38:47 1998 Jim Wilson <wilson@cygnus.com>
4446 * libc/sys/sparc64/sys/stat.h (stat): Add const.
4448 Mon Aug 17 22:27:06 1998 Ian Lance Taylor <ian@cygnus.com>
4450 * acinclude.m4 (NEWLIB_CONFIGURE): Use top_builddir in
4451 newlib_cflags when looking for targ-include.
4452 * */aclocal.m4, */configure: Rebuild.
4454 Fri Jul 31 10:57:42 1998 Catherine Moore <clm@cygnus.com>
4456 * libc/sys/arm/syscalls.c (_sbrk): Change "__end__"
4459 Wed Jul 29 00:02:01 1998 Mark Alexander <marka@cygnus.com>
4461 * libc/include/sys/config.h: Define __IEEE_LITTLE_ENDIAN
4462 on SPARCs with little-endian data.
4463 * libc/include/machine/ieeefp.h: Ditto.
4465 Wed Jul 22 18:00:10 1998 Ian Lance Taylor <ian@cygnus.com>
4467 * acinclude.m4: Handle a relative srcdir correctly when setting
4469 * */aclocal.m4, */configure: Rebuild.
4471 Wed Jul 22 17:11:33 1998 Jeff Johnston <jjohnstn@cygnus.com>
4473 * libm/math/wrf_lgamma.c (lgammaf_r): Initialize exc.err to 0 and
4474 also set exc.arg1, exc.arg2 appropriately in case matherr is supplied.
4475 * libm/math/wrf_gamma.c (gammaf_r): ditto
4476 * libm/math/wr_lgamma.c (lgamma_r): ditto
4477 * libm/math/wr_gamma.c (gamma_r): ditto
4478 * libm/math/wf_sqrt.c (sqrtf): ditto
4479 * libm/math/wf_sinh.c (sinhf): ditto
4480 * libm/math/wf_scalb.c (scalbf): ditto
4481 * libm/math/wf_remainder.c (remainderf): ditto
4482 * libm/math/wf_pow.c (powf): ditto
4483 * libm/math/wf_log10.c (log10f): ditto
4484 * libm/math/wf_log.c (logf): ditto
4485 * libm/math/wf_lgamma.c (lgammaf): ditto
4486 * libm/math/wf_jn.c (jnf, ynf): ditto
4487 * libm/math/wf_j1.c (j1f, y1f): ditto
4488 * libm/math/wf_j0.c (j0f, y0f): ditto
4489 * libm/math/wf_hypot.c (hypotf): ditto
4490 * libm/math/wf_gamma.c (gammaf): ditto
4491 * libm/math/wf_fmod.c (fmodf): ditto
4492 * libm/math/wf_exp.c (expf): ditto
4493 * libm/math/wf_cosh.c (coshf): ditto
4494 * libm/math/wf_atanh.c (atanhf): ditto
4495 * libm/math/wf_atan2f.c (atan2f): ditto
4496 * libm/math/wf_asin.c (asinf): ditto
4497 * libm/math/wf_acosh.c (acoshf): ditto
4498 * libm/math/wf_acos.c (acosf): ditto
4499 * libm/math/w_sqrt.c (sqrt): ditto
4500 * libm/math/w_sinh.c (sinh): ditto
4501 * libm/math/w_scalb.c (scalb): ditto
4502 * libm/math/w_remainder.c (remainder): ditto
4503 * libm/math/w_pow.c (pow): ditto
4504 * libm/math/w_log10.c (log10): ditto
4505 * libm/math/w_log.c (log): ditto
4506 * libm/math/w_lgamma.c (lgamma): ditto
4507 * libm/math/w_jn.c (jn, yn): ditto
4508 * libm/math/w_j1.c (j1, y1): ditto
4509 * libm/math/w_j0.c (j0, y0): ditto
4510 * libm/math/w_hypot.c (hypot): ditto
4511 * libm/math/w_gamma.c (gamma): ditto
4512 * libm/math/w_fmod.c (fmod): ditto
4513 * libm/math/w_exp.c (exp): ditto
4514 * libm/math/w_cosh.c (cosh): ditto
4515 * libm/math/w_atanh.c (atanh): ditto
4516 * libm/math/w_atan2f.c (atan2): ditto
4517 * libm/math/w_asin.c (asin): ditto
4518 * libm/math/w_acosh.c (acosh): ditto
4519 * libm/math/w_acos.c (acos): ditto
4521 Tue Jul 21 12:34:54 1998 Ian Lance Taylor <ian@cygnus.com>
4523 * libm/math/Makefile.am (src): Add w_cabs.c and w_drem.c.
4524 (fsrc): Add wf_cabs.c and wf_drem.c.
4525 * libm/math/Makefile.in: Rebuild.
4527 * Makefile.am (AM_MAKEFLAGS): Add CFLAGS_FOR_BUILD. Remove some
4528 unused directory variables. Remove duplicate CFLAGS.
4529 * Makefile.in: Rebuild.
4531 * doc/Makefile.am ($(MKDOC)): Don't use $(CFLAGS) when building
4532 with $(CC_FOR_BUILD).
4533 (makedoc.o): Likewise.
4534 * doc/Makefile.in: Rebuild.
4536 * libc/sys/cygwin32/Makefile.am (EXTRA_LIBRARIES): Define, to
4537 force a definition of COMPILE.
4538 (libfoo_a_SOURCES): Define.
4539 * libc/sys/cygwin32/Makefile.in: Rebuild.
4540 * libc/sys/tic80/Makefile.am (EXTRA_LIBRARIES): Define, to
4541 force a definition of COMPILE.
4542 (libfoo_a_SOURCES): Define.
4543 * libc/sys/tic80/Makefile.in: Rebuild.
4545 Mon Jul 20 20:49:24 1998 Christopher Faylor <cgf@cygnus.com>
4547 * libc/include/sys/fcntl.h: Add O_NOINHERIT, Win32-specific
4550 Fri Jul 17 16:13:16 1998 Ian Lance Taylor <ian@cygnus.com>
4552 * Build using autoconf and automake. Added many Makefile.am and
4553 configure.in files, plus generated files. Old configure.in files
4554 and all old Makefile.in files completely replaced. Removed
4555 host/any. Added acinclude.m4 and configure.host.
4557 Sat Jul 11 18:14:49 1998 Felix Lee <flee@cygnus.com>
4559 * libc/stdio/vfprintf.c: enable long long support, sometimes.
4560 * configure.in (*-*-cygwin32): add -DWANT_PRINTF_LONG_LONG.
4562 Tue Jul 7 01:51:55 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
4564 * libc/machine/sh/strcmp.S, libc/machine/sh/strcpy.S: New files.
4565 * libc/machine/sh/Makefile.in: Add rules for new files.
4567 Tue Jul 7 01:40:55 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
4569 * libc/machine/sh/asm.h (SL, DELAYED_BRANCHES): Define.
4570 * libc/machine/sh/memset.S (memset): Remove uses of dt; shorten code.
4571 * libc/machine/sh/memcpy.S (SL, DELAYED_BRANCHES): Don't define.
4573 Thu Jul 2 10:33:16 1998 Nick Clifton <nickc@cygnus.com>
4575 * libc/sys/arm/syscalls.c (_exit): Add comment, noting that exit
4578 Wed Jun 24 13:56:54 1998 Jeff Johnston <jjohnstn@cygnus.com>
4580 * libc/stdio/tmpnam.c (_tmpnam_r): Changed routine to use
4581 internal static buffer when s is NULL, as prescribed by ANSI.
4583 1998-06-22 Vladimir N. Makarov <vmakarov@cygnus.com>
4585 * libc/sys/h8300hms/Makefile.in (OFILES): malloc.o has been
4587 * libc/sys/h8300hms/malloc.c: has been removed. Now malloc.c from
4588 libc/stdlib will be used for h8300hms.
4590 Thu Jun 18 16:56:05 1998 Jeff Johnston <jjohnstn@cygnus.com>
4592 * libc/machine/mn10300/strlen.S (_strlen): New optimized assembler
4593 version that can be built either for speed or size.
4594 * libc/machine/mn10300/memset.S (_memset): ditto
4595 * libc/machine/mn10300/memchr.S (_memchr): ditto
4596 * libc/machine/mn10300/memcpy.S (_memcpy): ditto
4597 * libc/machine/mn10300/memcmp.S (_memcmp): ditto
4598 * libc/machine/mn10300/strchr.S (_strchr): ditto
4599 * libc/machine/mn10300/strcmp.S (_strcmp): ditto
4600 * libc/machine/mn10300/strcpy.S (_strcpy): ditto
4601 * libc/machine/mn10300/Makefile.in: Added entries for
4602 memchr.o, memcmp.o, memcpy.o, memset.o, strchr.o,
4603 strcmp.o, strcpy.o, and strlen.o.
4605 Wed Jun 17 12:50:26 1998 Mark Alexander <marka@cygnus.com>
4607 * configure.in: Don't use libc/sys/sysmec for MN10200; it's
4608 been replaced with libgloss/mn10200.
4610 Fri Jun 12 14:34:39 1998 Michael Meissner <meissner@cygnus.com>
4612 * libc/string/strchr.c (strchr): Make s a constant pointer to
4615 Tue Jun 9 16:29:30 1998 Jason Molenda (crash@bugshack.cygnus.com)
4617 * configure.in (target == arm* or thumb*): Define ARM_RDI_MONITOR
4618 instead of ARM_RDP_MONITOR (sys/libc/arm/crt0.S to assume Angel
4619 board SWIs instead of Demon board SWIs).
4621 Thu Jun 4 12:16:46 1998 Michael Meissner <meissner@cygnus.com>
4623 * libc/string/strncat.c (strncat): Make -Os act the same as
4624 PREFER_SIZE_OVER_SPEED being defined.
4626 Wed Jun 3 17:52:33 1998 Michael Meissner <meissner@cygnus.com>
4628 * libc/string/memchr.c (memchr): Make -Os act the same as
4629 PREFER_SIZE_OVER_SPEED being defined.
4630 * libc/string/memcmp.c (memcmp): Ditto.
4631 * libc/string/memcpy.c (memcpy): Ditto.
4632 * libc/string/memset.c (memset): Ditto.
4633 * libc/string/strcat.c (strcat): Ditto.
4634 * libc/string/strchr.c (strchr): Ditto.
4635 * libc/string/strcmp.c (strcmp): Ditto.
4636 * libc/string/strcpy.c (strcpy): Ditto.
4637 * libc/string/strlen.c (strlen): Ditto.
4638 * libc/string/strncat.c (strncat): Ditto.
4639 * libc/string/strncmp.c (strncmp): Ditto.
4640 * libc/string/strncpy.c (strncpy): Ditto.
4642 Mon Jun 1 15:25:07 1998 Geoffrey Noer <noer@cygnus.com>
4644 * libc/include/sys/itimer.h: remove
4645 * libc/include/sys/time.h: itimer stuff should be here
4647 Mon Jun 1 16:31:29 1998 Jeff Johnston <jjohnstn@cygnus.com>
4649 * libc/stdio/vfprintf.c (cvt): Changed code to look at sign
4650 bit instead of comparing to 0 so -0.0 can be printed correctly.
4652 Sat May 30 09:33:51 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
4654 * libc/stdlib/mprec.c (b2d): Inilialize d in non-VAX case too.
4656 Fri May 29 22:25:10 1998 Geoffrey Noer <noer@cygnus.com>
4658 * libc/include/sys/unistd.h: fix sync() proto
4659 * libc/include/sys/fcntl.h: remove _close which is already
4660 defined in unistd.h.
4661 * libc/include/sys/time.h: add getitimer proto
4663 Fri May 29 16:10:28 1998 Geoffrey Noer <noer@cygnus.com>
4665 * libc/string/strchr.c: convert arg to unsigned char
4666 * libc/include/stdlib.h: add protos for random, srandom
4667 * libc/include/sys/stat.h: add lstat proto
4668 * libc/include/sys/time.h: add setitimer proto
4669 * libc/include/sys/unistd.h: add readlink, symlink protos
4670 * libc/include/process.h: instead of including windows.h and using
4671 HANDLEs in sexec protos, just use void *s. Need to include
4674 Fri May 29 03:04:29 1998 Geoffrey Noer <noer@cygnus.com>
4676 * libc/include/sys/fcntl.h: add _close proto for Cygwin32
4678 Thu May 28 16:34:21 1998 Geoffrey Noer <noer@cygnus.com>
4680 * libc/include/process.h: add secure exec protos
4682 Wed May 27 13:54:51 1998 Jeffrey A Law (law@cygnus.com)
4684 * libc/stdlib/dtoa.c (_dtoa_r): Use "double_union" for variables
4685 which are accessed as both doubles and integers.
4686 * libc/stdlib/mprec.c (ulp, b2d, ratio): Likewise.
4687 * libc/stdlib/strtod.c (_strtod_r): Likewise.
4688 * libc/stdlib/mprec.h: Add "union double_union" and change
4689 word0/word1 macros to use it.
4691 Tue May 26 18:04:21 1998 Geoffrey Noer <noer@cygnus.com>
4693 * libc/include/sys/signal.h: add __cplusplus wrapper
4695 Tue May 26 15:10:22 1998 Geoffrey Noer <noer@cygnus.com>
4697 * libc/include/sys/utime.h: new generic file that gets replaced by
4698 libc/sys/SYSDIR/sys/utime.h on systems that support the utime
4700 * sys/cygwin32/sys/utime.h: use _EXFUN in utime proto
4701 * libc/include/time.h: remove duplicate utime proto
4702 * libc/include/utime.h: add comment
4704 Sun May 24 23:56:20 1998 Christopher Faylor <cgf@cygnus.com>
4706 * libc/include/sys/time.h: Add missing include to
4707 allow use of _EXFUN. Remove times function that is
4708 already defined in times.h.
4710 Sun May 24 01:32:14 1998 Christopher Faylor <cgf@cygnus.com>
4712 * libc/include/time.h: Fix typo in tzset.
4714 Fri May 22 17:00:48 1998 Geoffrey Noer <noer@cygnus.com>
4716 * libc/include/sys/time.h: add missing Cygwin32 function protos
4717 * libc/include/sys/unistd.h: ditto
4718 * libc/include/time.h: ditto
4720 Wed May 20 20:35:11 1998 Geoffrey Noer <noer@cygnus.com>
4722 * libc/sys/cygwin32/sys/param.h: add protected NULL def, remove
4724 * libc/include/sys/types.h: add a new __MS_types__ section
4725 to define vm_offset_t, vm_size_t, int32_t et al, register_t,
4726 __BIT_TYPES_DEFINED__.
4728 Wed May 20 18:49:21 1998 Geoffrey Noer <noer@cygnus.com>
4730 * libc/sys/cygwin32/sys/param.h: move here from winsup/include/sys
4731 since it overrides the one in libc/include/sys. Also, start
4734 Wed May 20 14:45:40 1998 Geoffrey Noer <noer@cygnus.com>
4736 * libm/math/Makefile.in: add s_signgam.o to obj list
4738 Tue May 19 11:57:11 1998 Jeff Johnston <jjohnstn@cygnus.com>
4740 * libc/include/sys/reent.h (_REENT_INIT): Initialize current locale to "C".
4742 Mon May 18 22:36:12 1998 Christopher Faylor <cgf@cygnus.com>
4744 * libc/include/sys/signal.h: cygwin32 exports sig{empty,add}set,
4745 so don't use defines.
4747 Mon May 18 19:01:02 1998 Michael Meissner <meissner@cygnus.com>
4749 * libc/sys/d10v/crt0.S: Use correct stab for 16-bit ints.
4751 Sun May 17 18:40:32 1998 Frank Ch. Eigler <fche@cygnus.com>
4753 * libc/stdlib/mbtowc_r.c (_mbtowc_r): Accept a NULL
4754 _current_locale as default locale.
4756 Sat May 16 21:59:59 1998 Bob Manson <manson@charmed.cygnus.com>
4758 * libc/stdlib/mallocr.c (mALLOc): Add explicit tests for
4759 insufficient space in a chunk.
4761 Tue May 12 14:41:01 1998 Jeff Johnston <jjohnstn@cygnus.com>
4763 * configure.in (links): Added check for --enable-newlib-mb configure
4764 option which defines the MB_CAPABLE macro.
4765 * libc/locale/locale.c (_setlocale_r): Added support for setting
4766 LC_CTYPE to "C-JIS", "C-SJIS" or "C-EUCJP", when MB_CAPABLE is
4768 * libc/stdlib/mbtowc_r.c (_mbtowc_r): New function _mbtowc_r that
4769 implements mbtowc() with multibyte support for JIS, SJIS, and EUC-JP.
4770 * libc/stdlib/wctomb_r.c (_wctomb_r): New function _wctomb_r that
4771 implements wctomb() with multibyte support for JIS, SJIS, and EUC-JP.
4772 * libc/stdlib/mbstowcs_r.c (_mbstowcs_r): New function _mbstowcs_r that
4773 implements mbstowcs() with multibyte support for JIS, SJIS, and EUC-JP.
4774 * libc/stdlib/wcstombs_r.c (_wcstombs_r): New function _wcstomb_r that implements
4775 wcstombs() with multibyte support for JIS, SJIS, and EUC-JP.
4776 * libc/stdlib/Makefile.in: Added new multibyte
4777 routines: _mbtowc_r(), _wctomb_r(), _mbstowcs_r(), and _wcstombs_r().
4778 * libc/include/stdlib.h: Added declarations of _mbtowc_r(), _wctomb_r(),
4779 _mbstowcs_r(), and _wcstombs_r().
4780 * libc/stdlib/mbctype.h: New internal header file that contains macros to test
4781 for JIS, SJIS, and EUC-JP characters.
4782 * libc/stdlib/mblen.c (mblen): Added code to call _mbtowc_r() if
4784 * libc/stdlib/mbtowc.c (mbtowc): Added code to call _mbtowc_r() if
4786 * libc/stdlib/wctomb.c (wctomb): Added code to call _wctomb_r() if
4788 * libc/stdlib/mbstowcs.c (mbstowcs): Added code to call _mbstowcs_r()
4789 if MB_CAPABLE defined.
4790 * libc/stdlib/wcstombs.c (wcstombs): Added code to call _wcstombs_r()
4791 if MB_CAPABLE defined.
4792 * libc/stdio/vfscanf.c (__svfscanf): Added multibyte tolerance
4793 to the format string processing when MB_CAPABLE.
4794 * libc/stdio/vfprintf.c (_VFPRINTF_R): Changed mbtowc() call to
4797 Tue May 5 16:07:23 1998 Nick Clifton <nickc@cygnus.com>
4799 The following modifications are courtesy of Anthony Thompson,
4800 athompson@cambridge.arm.com:
4801 * libc/sys/arm/syscalls.c: Initialise and track stdin/out/err for
4802 boith RDI and RDP monitors.
4803 * libc/sys/arm/crt0.S: Call initialise_monitor_handles() for both
4804 RDI and RDP monitors.
4806 Wed Apr 29 15:22:15 1998 Jeff Johnston <jjohnstn@cygnus.com>
4808 * configure.in (links): Added -DHAVE_GETTIMEOFDAY for arm and thumb.
4809 * libc/sys/arm/syscalls.c (_gettimeofday _times): Added functions.
4810 (_swiopen): Fixed open flags to treat write with append as just append.
4811 (_swilseek): Fixed lseek support to properly handle offsets from SEEK_END.
4812 * libc/sys/arm/sys/param.h: New file to override param.h for ARM.
4814 Fri Apr 24 18:00:09 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
4816 * libc/machine/sh/memcpy.S (L_odddst, big endian version):
4817 When needing to transfer an initial 2-byte-word, store as
4820 Wed Apr 22 17:56:03 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
4822 * libc/sys/sh/crt0.S (start): Handle __SH4_SINGLE_ONLY__ like
4824 * libc/machine/sh/memcpy.S (DELAYED_BRANCHES, SL): Likewise.
4825 * libc/include/machine/ieeefp.h (_DOUBLE_IS_32BITS): Likewise.
4827 Wed Apr 22 12:28:03 1998 Michael Meissner <meissner@cygnus.com>
4829 * configure.in (target_cflags): If --enable-target-optspace, use
4830 -Os to compile newlib rather than -O2. Default to using -Os for
4831 d10v, d30v and m32r if --{enable,disable}-target-optspace is not
4834 Tue Apr 21 23:13:34 1998 Geoffrey Noer <noer@cygnus.com>
4836 * libc/include/machine/setjmp.h: change sigsetjmp and
4837 siglongjmp definitions to use an array instead of a struct
4840 Tue Apr 14 11:47:47 1998 Doug Evans <devans@canuck.cygnus.com>
4842 * libc/reent/impure.c (__ATTRIBUTE_IMPURE_DATA__): Fix spelling.
4844 Mon Apr 6 15:05:08 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
4846 * libc/string/strxfrm.c: fix to get correct return value
4848 Wed Apr 1 16:09:05 1998 Nick Clifton <nickc@cygnus.com>
4850 * libc/sys/arm/crt0.S: Set top of RAM to be 0x800000 for PE
4851 builds. Make mode change labels global so that they will be seen
4854 Wed Mar 18 09:45:10 1998 Nick Clifton <nickc@cygnus.com>
4856 * configure.in (links): Do not use ARM debiugging protocols for PE
4859 * libc/sys/arm/syscalls.c (_sbrk): Add "_sbrk: " to error
4862 Fri Mar 13 11:24:34 1998 Jeff Johnston <jjohnstn@cygnus.com>
4864 * libc/stdio/findfp.c (__sinit): Made stdout default to
4865 line buffered mode as defined by ANSI.
4867 Tue Mar 10 11:41:26 1997 Bob Manson <manson@charmed.cygnus.com>
4869 * libc/include/sys/itimer.h: New file.
4871 * libc/signal/signal.c (__sigtramp_r,__sigtramp): New functions.
4873 Mon Mar 9 14:19:26 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
4875 * libc/machine/sh/memcpy.S: (_memcpy): Fix for execute/memcpy-1.c
4878 Fri Feb 27 13:56:10 1998 Michael Meissner <meissner@cygnus.com>
4880 * libc/machine/d30v/setjmp.S (longjmp): Fix order of parallel
4883 Wed Feb 25 09:29:54 1998 Nick Clifton <nickc@cygnus.com>
4885 * libc/sys/arm/syscalls.c (_open): Add varags to conform to prototype.
4887 Tue Feb 24 18:00:13 1998 Michael Meissner <meissner@cygnus.com>
4889 * libc/machine/d30v/{setjmp.S,Makefile.in}: New files for D30V
4892 * libc/include/machine/setjmp.h: Add D30V support.
4894 * configure.in (d30v-*): Add d30v machine directory.
4896 Mon Feb 23 09:32:58 1998 Mark Alexander <marka@cygnus.com>
4898 * configure.in: Don't use libc/sys/sysmec for MN10300; it's
4899 been replaced with libgloss/mn10300.
4901 Sat Feb 21 17:44:43 1998 Geoffrey Noer <noer@cygnus.com>
4903 * libc/stdlib/mallocr.c: remove __malloc_copy routine now that
4904 it is no longer needed.
4906 Thu Feb 19 16:15:10 1998 Geoffrey Noer <noer@cygnus.com>
4908 * libc/include/sys/signal.h: add sigpause proto for Cygwin32
4910 Wed Feb 18 23:51:08 1998 Geoffrey Noer <noer@cygnus.com>
4912 * libc/stdio/fdopen.c (fdopen): Make all writes go to the end of
4913 the file when O_APPEND is set, wherever the EOF happens to be at
4916 Wed Feb 18 23:25:02 1998 Geoffrey Noer <noer@cygnus.com>
4918 patch from cgf@bbc.com (Christopher Faylor):
4919 * libc/stdio/freopen.c (freopen): Conform to standard UNIX
4920 convention of closing fp prior to attempting to open the file
4921 argument. This allows correct operation when reopening
4922 stdin/stdout/stderr. Replaces last freopen.c patch.
4924 Wed Feb 18 16:27:40 1998 Geoffrey Noer <noer@cygnus.com>
4926 patch from cgf@bbc.com (Christopher Faylor):
4927 * libc/stdio/freopen.c: freopen was not preserving the fd
4928 of the stream being operated on. This confuses programs that
4929 expect that the handles for stdout and stderr will be 1 and 2.
4931 Mon Feb 16 23:34:07 1998 Andrew Cagney <cagney@b1.cygnus.com>
4933 * libc/sys/d10v/crt0.S (_start): Set PSW{SW} - select SPU.
4935 Thu Feb 12 15:09:20 1998 Ranjith Kumaran <ranjith@cygnus.com>
4937 * libc/sys/go32/longjmp.S: Fix longjmp to not return 0.
4939 Wed Feb 11 17:50:45 1998 Jeff Johnston <jjohnstn@cygnus.com>
4941 * libc/machine/powerpc/setjmp.S (setjmp, longjmp): Alignment code
4942 altered to not use a branch. Also added hint that last
4943 bclr in longjmp will likely result in branch.
4946 Mon Feb 9 03:44:02 1998 Geoffrey Noer <noer@cygnus.com>
4948 * libc/sys/cygwin32/crt0.c: add missing args to main() extern
4950 Fri Feb 6 16:32:32 1998 Nick Clifton <nickc@cygnus.com>
4952 * libc/sys/sysnecv850/crt0.S (_start): Initialise _ctbp even for
4955 * configure.in: Add -msmall-sld to target_cflags for v850 builds.
4957 Wed Feb 4 16:56:20 1998 Jeff Johnston <jjohnstn@cygnus.com>
4959 * libc/machine/powerpc/setjmp.S (longjmp): Fixed code
4960 that loads FR14 to specify offset of 8 rather than 4
4961 so it loads from offset 96 (where setjmp stored it).
4963 Tue Feb 3 18:08:34 1998 Jeff Johnston <jjohnstn@cygnus.com>
4965 * libc/machine/sh/memcpy.S: (_memcpy): Update to
4966 latest version supplied by customer.
4967 * libc/machine/sh/memset.S (_memset): Ditto.
4969 Mon Feb 2 16:20:39 1998 Nick Clifton <nickc@cygnus.com>
4971 * libc/sys/sysnecv850/Makefile.in (OFILES): Add link.o (for
4974 Mon Feb 2 15:13:26 1998 Geoffrey Noer <noer@cygnus.com>
4976 * libc/include/string.h: remove redefinition of ffs
4978 Wed Jan 28 13:30:14 1998 Geoffrey Noer <noer@cygnus.com>
4980 * libc/include/sys/signal.h: include _ansi.h so _EXFUN is
4983 Wed Jan 28 10:38:34 1998 Jeff Johnston <jjohnstn@cygnus.com>
4985 * libc/machine/tic80/setjmp.S: Adding _setjmp to allow
4986 TI Libraries to link to libc.a
4988 Sat Jan 24 10:15:56 1998 Michael Meissner <meissner@cygnus.com>
4990 * libc/include/sys/fcntl.h (_open,_fcntl): Add prototypes.
4991 * libc/include/sys/stat.h (_{,f}stat): Ditto.
4992 * libc/include/sys/wait.h (_wait): Ditto.
4993 * libc/include/sys/unistd.h (_close,_fork,_getpid): Ditto.
4994 (_link,_lseek,_read,_sbrk,_unlink,_write): Ditto.
4996 Fri Jan 23 11:32:10 1998 Michael Meissner <meissner@cygnus.com>
4998 * libc/machine/d10v/setjmp.S: Change to new ABI. Add simple
4999 minded stabs so function name shows up when running the simulator
5001 * libc/sys/d10v/{crt0,trap}.S: Ditto.
5003 Thu Jan 22 15:57:14 1998 Fred Fish <fnf@cygnus.com>
5005 * libc/sys/d10v/trap.S: Change syscalls to use trap 15.
5006 * libc/sys/d10v/crt0.S: Use R6 where we used to use R2.
5007 Use R5 where we used to use R3.
5009 Wed Jan 21 14:22:23 1998 Bill Moyer <billm@cygnus.com>
5011 * libc/stdlib/getopt.c (getopt): replaced __progname
5012 with nargv[0] to improve portability to imbedded systems.
5014 Thu Jan 15 12:32:38 1998 Nick Clifton <nickc@cygnus.com>
5016 * libc/sys/arm/syscalls.c (initialise_angel_handles): Applied
5017 patch supplied by Tont.Thompson@arm.com to fix the creation of the
5020 Wed Jan 14 13:00:19 1998 Ian Lance Taylor <ian@cygnus.com>
5022 * libc/stdio/tmpnam.c (worker): Generate a different file name
5025 * libc/posix/popen.c (popen): If __CYGWIN32__, and execing /bin/sh
5026 fails, try an execlp for sh.
5028 * host/any (INCLUDES): If target_os is cygwin32, then add a -I
5029 option for the winsup include directory.
5031 Wed Jan 7 17:02:58 1998 Nick Clifton <nickc@cygnus.com>
5033 * libc/sys/arm/syscalls.c: Applied patches for Angel based remote
5034 debugging interface from Tony.Thompson@arm.com.
5036 * libc/sys/arm/crt0.S (_mainCRTStartup): ditto.
5037 * libc/sys/arm/swi.h: ditto.
5039 Tue Jan 6 14:15:10 1998 Geoffrey Noer <noer@cygnus.com>
5041 * libc/sys/cygwin32/sys/dirent.h: add __d_dirhash field to
5042 DIR struct used for readdir hashes.
5044 Thu Jan 1 11:22:22 1998 Jeffrey A Law (law@cygnus.com)
5046 * libc/string/strchr.c: Use "unsigned chars" as necessary.
5048 Wed Dec 31 04:25:30 1997 Jeffrey A Law (law@cygnus.com)
5050 * libc/stdlib/mallocr.c (idx2binblock): Don't lose on 16bit
5053 Sat Dec 13 15:11:06 1997 Ian Lance Taylor <ian@cygnus.com>
5055 * libc/stdlib/mallocr.c (__malloc_copy): New function, compiled if
5056 INTERNAL_NEWLIB and __CYGWIN32__ and DEFINE_MALLOC.
5057 * libc/include/malloc.h: Add extern "C" if __cplusplus.
5058 (__malloc_copy): Declare.
5060 Wed Dec 10 12:15:54 1997 Ian Lance Taylor <ian@cygnus.com>
5062 * libc/stdlib/mallocr.c: If INTERNAL_NEWLIB, include
5064 (POINTER_UINT): Define.
5065 (DEFAULT_TRIM_THRESHOLD): Mark constants as long.
5066 (MALLOC_ALIGNMENT): Don't define if already defined.
5067 (malloc_extend_top): Cast pointers to POINTER_UINT, not unsigned
5070 Tue Dec 9 19:23:42 1997 Michael Meissner <meissner@cygnus.com>
5072 * libc/string/memset.c (memset): Fiddle with code so that the long
5073 value being stored is not a stack value. Unroll storing longs 4
5076 Tue Dec 9 14:13:18 1997 Jeff Johnston <jjohnstn@cygnus.com>
5078 * Reduce code size for libm modules.
5079 * libm/math/w_sqrt.c (sqrt): Remove call to kernel_standard
5080 and simply move code into sqrt.
5081 * libm/math/wrf_lgamma.c (lgammaf_r): Likewise.
5082 * libm/math/wr_lgamma.c (lgamma_r): Likewise.
5083 * libm/math/wrf_gamma.c (gammaf_r): Likewise.
5084 * libm/math/wr_gamma.c (gamma_r): Likewise.
5085 * libm/math/wf_sinh.c (sinfh): Likewise.
5086 * libm/math/w_sinh.c (sinh): Likewise.
5087 * libm/math/wf_scalb.c (scalbf): Likewise.
5088 * libm/math/w_scalb.c (scalb): Likewise.
5089 * libm/math/wf_remainder.c (remainderf): Likewise.
5090 * libm/math/w_remainder.c (remainder): Likewise.
5091 * libm/math/wf_pow.c (powf): Likewise.
5092 * libm/math/w_pow.c (pow): Likewise.
5093 * libm/math/wf_log10.c (log10f): Likewise.
5094 * libm/math/w_log10.c (log10): Likewise.
5095 * libm/math/wf_log.c (logf): Likewise.
5096 * libm/math/w_log.c (log): Likewise.
5097 * libm/math/w_lgamma.c (lgamma): Likewise.
5098 * libm/math/wf_lgamma.c (lgammaf): Likewise.
5099 * libm/math/wf_jn.c (jnf): Likewise.
5100 * libm/math/w_jn.c (jn): Likewise.
5101 * libm/math/wf_j1.c (j1f): Likewise.
5102 * libm/math/w_j1.c (j1): Likewise.
5103 * libm/math/wf_j0.c (j0f): Likewise.
5104 * libm/math/w_j0.c (j0): Likewise.
5105 * libm/math/wf_hypot.c (hypotf): Likewise.
5106 * libm/math/w_hypot.c (hypot): Likewise.
5107 * libm/math/wf_gamma.c (gammaf): Likewise.
5108 * libm/math/w_gamma.c (gamma): Likewise.
5109 * libm/math/wf_fmod.c (fmodf): Likewise.
5110 * libm/math/w_fmod.c (fmod): Likewise.
5111 * libm/math/wf_exp.c (expf): Likewise.
5112 * libm/math/w_exp.c (exp): Likewise.
5113 * libm/math/wf_cosh.c (coshf): Likewise.
5114 * libm/math/w_cosh.c (cosh): Likewise.
5115 * libm/math/wf_atanh.c (atanhf): Likewise.
5116 * libm/math/w_atanh.c (atanh): Likewise.
5117 * libm/math/wf_atan2.c (atan2f): Likewise.
5118 * libm/math/w_atan2.c (atan2): Likewise.
5119 * libm/math/wf_asin.c (asinf): Likewise.
5120 * libm/math/w_asin.c (asin): Likewise.
5121 * libm/math/wf_acosh.c (acoshf): Likewise.
5122 * libm/math/w_acosh.c (acosh): Likewise.
5123 * libm/math/wf_acos.c (asocf): Likewise.
5124 * libm/math/w_acos.c (acos): Likewise.
5125 * libm/math/wf_sqrt.c (sqrtf): Likewise.
5126 * libm/math/k_standard.c (_k_standard): Don't require SVID behavior
5127 for embedded systems.
5129 Mon Dec 8 12:12:58 1997 Ian Lance Taylor <ian@cygnus.com>
5131 * libc/stdlib/mallocr.c (malloc_extend_top): Add patch from Doug
5132 Lea in case of a foreign sbrk.
5134 Fri Dec 5 23:27:28 1997 Ian Lance Taylor <ian@cygnus.com>
5136 Incorporate Doug Lea's malloc:
5137 * libc/stdlib/mallocr.c: Completely replaced.
5138 * libc/stdlib/malloc.c: Document malloc_usable_size and memalign.
5140 * libc/stdlib/calloc.c (calloc): Just call _calloc_r.
5141 * libc/stdlib/mstats.c: Document mallinfo, malloc_stats, and
5143 (mallinfo, malloc_stats, mallopt): New functions.
5144 (_mstats_r): Just call _malloc_stats_r.
5145 * libc/stdlib/malign.c: New file.
5146 * libc/stdlib/mlock.c: New file.
5147 * libc/stdlib/msize.c: New file.
5148 * libc/stdlib/mtrim.c: New file.
5149 * libc/stdlib/realloc.c: New file.
5150 * libc/stdlib/valloc.c: New file.
5151 * libc/stdlib/malloc.h: Remove.
5152 * libc/stdlib/callocr.c: Remove.
5153 * libc/stdlib/Makefile.in (OFILES): Add cfreer.o, freer.o,
5154 malign.o, malignr.o, mallinfor.o, malloptr.o, mallstatsr.o,
5155 mlock.o, msize.o, msizer.o, mtrim.o, pvallocr.o, realloc.o,
5156 reallocr.o, valloc.o, vallocr.o.
5157 (CHEWOUT_FILES): Add mlock.def, mstats.def.
5158 (MALLOC_CFLAGS): New variable.
5159 (mallocr.o): New target, build from mallocr.c.
5160 (freer.o, reallocr.o, callocr.o, cfreer.o, malignr.o): Likewise.
5161 (vallocr.o, pvallocr.o, mallinfor.o, mallstatsr.o): Likewise.
5162 (msizer.o, malloptr.o): Likewise.
5163 (malign.o, mlock.o, msize.o, mtrim.o, realloc.o): New targets.
5164 (valloc.o): New target.
5165 * libc/stdlib/stdlib.tex: Include mlock.def and mstats.def.
5166 * libc/include/malloc.h: Declare struct mallinfo, and new
5168 * libc/include/stdlib.h (cfree): Correct declaration.
5170 Tue Dec 2 10:12:16 1997 Nick Clifton <nickc@cygnus.com>
5172 * libc/include/machine/setjmp.h: Add support for Thumb target.
5174 * libc/include/machine/ieeefp.h: Add support for Thumb target.
5176 * configure.in (links): Add support for Thumb target.
5178 Wed Nov 26 09:56:17 1997 Nick Clifton <nickc@cygnus.com>
5180 * libc/sys/arm/setjmp.S: Updated with version from branch.
5182 Thu Nov 20 01:21:43 1997 Geoffrey Noer <noer@cygnus.com>
5184 * libc/include/stdio.h: add POSIX-required define L_ctermid
5187 Wed Nov 19 16:11:40 1997 Michael Meissner <meissner@cygnus.com>
5189 * configure.in (d30v-*-*): Define ABORT_MESSAGE, SMALL_MEMORY, in
5190 addition to MISSING_SYSCALL_NAMES.
5192 Mon Nov 17 20:05:05 1997 J"orn Rennecke <amylaar@cygnus.co.uk>
5194 * libc/include/sys/config.h: (UINT_MAX, for D10V): Make unsigned.
5196 Mon Nov 10 22:26:55 1997 Geoffrey Noer <noer@cygnus.com>
5198 * libc/include/string.h: change strsignal proto to return
5199 a char *. This eliminates compile problems in gdb resulting
5200 from gdb's definition of strsignal in defs.h.
5202 Mon Nov 10 17:11:08 1997 Geoffrey Noer <noer@cygnus.com>
5204 * libc/sys/cygwin32/sys/utime.h: new (moved here from
5205 winsup/include) so as not to conflict with the one in
5207 * libc/include/string.h: add protos for strsignal, strtosigno
5209 Mon Nov 10 13:49:54 1997 Michael Meissner <meissner@cygnus.com>
5211 * libc/include/sys/config.h: Define __IEEE_BIG_ENDIAN if d30v.
5213 * configure.in (d30v-*-*): Add configuration.
5215 Thu Oct 30 14:01:23 1997 Nick Clifton <nickc@cygnus.com>
5217 * configure.in (links): Add -DARM_RD[P|I]_MONITOR to target_cflags
5218 to select which kind of debug monitor is in use for an ARM target.
5220 * libc/sys/arm/crt0.S: New version: Supports Thumb startups and
5221 Angel and Demon debug monitors. Part of this code was supplied by
5222 Tony Thompson at ARM: athompso@arm.com.
5224 Fri Oct 24 18:57:05 1997 Jeffrey A Law (law@cygnus.com)
5226 * strncat.c (strncat): Don't call strncpy; strncay has the wrong
5227 semantics when the count is greater than the length of the second
5230 Thu Oct 23 01:37:41 1997 Geoffrey Noer <noer@cygnus.com>
5232 * libc/include/sys/signal.h: reorder CYGWIN32 signal numbers
5233 * libc/include/sys/unistd.h: add protos for usleep, truncate,
5234 truncate and ftruncate take off_t, not size_t
5236 Tue Oct 21 18:42:00 1997 Jim Wilson <wilson@cygnus.com>
5238 * libc/string/strcat.c (strcat): Add missing comment end.
5239 * libc/string/strncat.c (strncat): Likewise.
5241 Tue Oct 21 17:23:34 1997 Nick Clifton <nickc@cygnus.com>
5243 * configure.in (links): Define PREFER_SIZE_OVER_SPEED for v850
5245 * libc/string/{memchr.c, memcmp.c, memcpy.c}: Add space
5246 optimised version which is selected if PREFER_SIZE_OVER_SPEED is
5248 * libc/string/{memset.c, strcat.c, strchr.c}: Likewise.
5249 * libc/string/{strcmp.c, strcpy.c, strlen.c}: Likewise.
5250 * libc/string/{strncat.c, strncmp.c, strncpy.c}: Likewise.
5252 Mon Oct 13 15:12:35 1997 Ian Lance Taylor <ian@cygnus.com>
5254 * libc/include/sys/param.h (BIG_ENDIAN): Define if __i386__.
5255 (LITTLE_ENDIAN, BYTE_ORDER): Likewise.
5257 Thu Oct 9 13:54:44 1997 Doug Evans <dje@canuck.cygnus.com>
5259 * libc/machine/i386/setjmp.S: New file.
5260 * libc/machine/i386/Makefile.in: Delete COPYOFILES.
5261 (OFILES): Add setjmp.o.
5262 (setjmp.o): Add rule for.
5263 * configure.in: Don't set machine_dir for *-*-{go32,sco*,cygwin32}.
5265 Tue Oct 7 14:01:29 1997 Bill Moyer (billm@cygnus.com)
5266 Jeffrey A Law (law@cygnus.com)
5268 * libc/string/{memchr.c, memcmp.c, memcpy.c}: Reimplement to run faster.
5269 * libc/string/{memset.c, strcat.c, strchr.c}: Likewise.
5270 * libc/string/{strcmp.c, strcpy.c, strlen.c}: Likewise.
5271 * libc/string/{strncat.c, strncmp.c, strncpy.c}: Likewise.
5273 Mon Oct 6 14:07:59 1997 Nick Clifton <nickc@cygnus.com>
5275 * libc/sys/sysnecv850/Makefile.in (crt0.o trap.o): Explicit
5278 * libc/include/sys/config.h: Use __v850 to select v850
5281 * libc/include/machine/setjmp.h: Use __v850 to select v850 jump
5284 * libc/include/machine/ieeefp.h: Use __v850 to select v850
5287 Thu Sep 25 14:11:37 1997 Geoffrey Noer <noer@cygnus.com>
5289 * libc/stdlib/setenv.c: change unsetenv definition to match
5290 style of setenv (with _DEFUN). The string should be a const.
5291 * libc/include/stdlib.h: unsetenv proto should return void.
5293 Tue Sep 23 18:17:20 1997 Geoffrey Noer <noer@cygnus.com>
5295 * libc/include/stdlib.h: define unsetenv proto for __CYGWIN32__
5297 Thu Sep 18 12:50:15 1997 Angela Marie Thomas (angela@cygnus.com)
5299 * libc/stdio/glue.h: remove.
5300 * libc/stdio/findfp.c, libc/stdio/fwalk.c: remove #include "glue.h"
5301 * libc/stdio/Makefile.in: remove glue.h dependencies
5303 Wed Sep 17 17:42:27 1997 Nick Clifton <nickc@cygnus.com>
5305 * libc/sys/sysnecv850/crt0.S: Created V850e version.
5307 Tue Sep 9 10:40:57 1997 Doug Evans <dje@canuck.cygnus.com>
5309 * configure.in (target_cpu): Add `arc'.
5311 Tue Sep 9 10:40:42 1997 Joel Sherrill <joel@OARcorp.com>
5313 * newlib/configure.in (*-*-rtems*): Add -DSIGNAL_PROVIDED and
5314 -DREENTRANT_SYSCALLS_PROVIDED to the target_cflags.
5315 * newlib/libc/include/sys/errno.h: Add ENOTSUP.
5316 * newlib/libc/reent/reent.c: Add _wrapup_reent.
5317 * newlib/libc/sys/rtems/sys/types.h: Avoid redefinitions for go32.
5319 Sun Sep 7 16:41:41 1997 Gavin Koch <gavin@cygnus.com>
5321 * libc/machine/mips/setjmp.S: Handle mips16 builds.
5323 Thu Aug 21 20:05:38 1997 Ian Lance Taylor <ian@cygnus.com>
5325 * libc/include/stdio.h (siprintf): Declare.
5327 Mon Aug 18 11:19:13 1997 Nick Clifton <nickc@cygnus.com>
5329 * libc/sys/sysnecv850/Makefile.in (.c.o): Add rule that includes
5330 TARGET_CFLAGS and NEWLIB_FLAGS.
5332 Mon Aug 18 11:15:43 1997 Nick Clifton <nickc@cygnus.com>
5334 * configure.in (links): Add support for v850ea target.
5336 Mon Aug 18 11:15:43 1997 Nick Clifton <nickc@cygnus.com>
5338 * configure.in (links): Add support for v850e target.
5340 Wed Aug 13 19:16:54 1997 Nick Clifton <nickc@cygnus.com>
5342 * libc/sys/sysnecv850/crt0.S: Remove initial setting of r0 to 0.
5344 Mon Aug 11 15:49:54 1997 Doug Evans <dje@canuck.cygnus.com>
5346 * configure.in (arc-*-*): Add support for.
5347 * libc/include/machine/ieeefp.h (__arc__): Add support for the ARC.
5349 Fri Jul 25 17:37:41 1997 J"orn Rennecke <amylaar@cygnus.co.uk>
5351 * libc/sys/sh/crt0.S (start): Add fpscr initialization for SH4.
5353 Thu Jul 24 18:32:17 1997 Geoffrey Noer <noer@cygnus.com>
5355 * libc/stdlib/bsearch.c (bsearch): remove last unneeded
5356 comparison which accesses invalid memory when the key is
5357 larger than the last member of the array.
5358 * libc/include/machine/setjmp.h: add sigsetjmp, siglongjmp
5360 * libc/include/sys/unistd.h: add _POSIX defines for CYGWIN32
5362 Tue Jul 22 16:03:06 1997 Ian Lance Taylor <ian@cygnus.com>
5364 * libc/include/stdlib.h (realpath): Declare if __CYGWIN32__ and
5367 Thu Jul 10 15:11:52 1997 Doug Evans <dje@canuck.cygnus.com>
5369 * libm/math/k_standard.c (__kernel_standard): Call fflush(stdout)
5370 ifndef _USE_WRITE, instead of ifdef _USE_WRITE.
5372 Thu Jul 10 16:00:09 1997 Mike Meissner <meissner@cygnus.com>
5374 * libc/machine/tic80/setjmp.S (setjmp,longjmp): Use ld.d and st.d
5375 to load/store memory.
5377 Mon Jul 7 17:38:17 1997 Ian Lance Taylor <ian@cygnus.com>
5379 * libc/include/sys/fcntl.h: Define _O_* symbols with leading
5380 underscores if _WIN32.
5382 Wed Jul 2 10:07:20 1997 Doug Evans <dje@canuck.cygnus.com>
5384 * libm/math/k_standard.c (__kernel_standard): Delete reentrancy
5385 support ifdef _USE_WRITE missed in last change.
5386 From Anders Blomdell <anders.blomdell@control.lth.se>.
5388 Wed Jun 25 10:18:49 1997 Doug Evans <dje@canuck.cygnus.com>
5390 * libc/stdio/tmpnam.c (worker): Handle _open_r being stubbed out.
5391 (_tmpnam_r, _tempnam_r): Update.
5393 Wed Jun 25 00:16:55 1997 Mark Alexander <marka@cygnus.com>
5395 * libc/machine/sparc/setjmp.S: New file.
5396 * libc/machine/sparc/Makefile.in: Add setjmp.
5397 * libc/include/machine/setjmp.h: Increase jmpbuf size for sparc.
5399 Tue Jun 24 23:27:38 1997 Mark Alexander <marka@cygnus.com>
5401 * libc/include/machine/setjmp.h: Use __TIC80__ instead of __tic80__.
5403 Tue Jun 24 14:53:40 1997 Doug Evans <dje@canuck.cygnus.com>
5405 From Joel Sherrill <joel@oarcorp.com>.
5406 * libc/stdlib/getenv.c (_findenv): Avoid dereferencing null `environ'.
5408 Add rtems support. From Joel Sherrill <joel@oarcorp.com>.
5409 * configure.in: Recognize *-*-rtems*.
5410 * libc/sys/rtems/{Makefile.in,crt0.c,dummysys.c}: New files.
5411 * libc/sys/rtems/sys/{features.h,sched.h,siginfo.h,signal.h,
5412 time.h,times.h,types.h}: New files.
5413 * libc/sys/rtems/include/{limits.h,signal.h,time.h}. New files.
5415 Fri Jun 20 11:13:16 1997 Geoffrey Noer <noer@cygnus.com>
5417 patch from sos@prospect.com.ru (Sergey Okhapkin):
5418 * include/sys/wait.h: correct operator precidence bug
5421 Wed Jun 18 22:08:27 1997 Geoffrey Noer <noer@cygnus.com>
5423 * libc/include/stdlib.h: remove unsetenv proto since it conflicts
5424 with newlib's unsetenv function
5425 * libc/sys/cygwin32/sys: new directory for includes
5426 * libc/sys/cygwin32/sys/dirent.h: move cygwin32's dirent.h
5427 here from winsup/include/sys
5429 Mon Jun 16 21:02:22 1997 Geoffrey Noer <noer@cygnus.com>
5431 * libc/include/sys/unistd.h: _exit should only be
5432 labelled noreturn when not __CYGWIN32__
5433 * libc/include/stdlib.h: for __CYGWIN32__, add proto for unsetenv
5434 * libc/include/sys/signal.h: add SIGIO to _WIN32 list and
5437 Thu Jun 12 18:52:41 1997 Ian Lance Taylor <ian@cygnus.com>
5439 * libc/include/sys/time.h: Only define timeval and timezone if
5440 _GNU_H_WINDOWS32_SOCKETS is not defined.
5441 * libc/include/sys/stat.h: If _WIN32, define _S_IFMT, etc.
5443 Wed Jun 11 09:46:26 1997 Jeffrey A Law (law@cygnus.com)
5445 * libc/machine/mn10200/setjmp.S: Implement setjmp/longjmp
5446 * libc/machine/mn10300/setjmp.S: Likewise.
5448 * libc/sys/sysmec/crt0.S: Use "call" instead of "calls" for
5449 the mn10300 (more relaxing opportunities).
5451 Tue Jun 10 17:24:45 1997 Mike Meissner <meissner@cygnus.com>
5453 * configure.in (powerpc*-*-{eabi,elf,linux,rtems,sysv,solaris}):
5454 Build libraries with -mstrict-align.
5456 Fri Jun 6 14:07:59 1997 Ian Lance Taylor <ian@cygnus.com>
5458 * libc/string/strlwr.c: New file.
5459 * libc/string/strupr.c: New file.
5460 * libc/include/string.h: Declare strlwr and strupr.
5461 * libc/string/Makefile.in (OFILES): Add strlwr.o and strupr.o.
5462 (CHEWOUT_FILES): Add strlwr.def and strupr.def.
5463 (strlwr.o, strupr.o): New targets.
5464 * libc/string/strings.tex: Include strlwr and strupr docs.
5466 * libc/include/sys/types.h: Don't define u_char, et. al., if
5467 _GNU_H_WINDOWS32_SOCKETS is defined. Likewise for fd_set,
5468 et. al. Make FD_SETSIZE default 64 rather than 60. Define
5469 _types_fd_set rather than fd_set, and define fd_set as a macro.
5471 * libc/include/malloc.h: New file.
5473 * libc/include/string.h: Define strcmpi, stricmp, strncmpi, and
5474 strnicmp if they are not already defined.
5476 * libc/include/time.h: If __CYGWIN32__, declare tzset and define
5477 _timezone, _daylight, and _tzname.
5479 Wed Jun 4 12:51:16 1997 Doug Evans <dje@canuck.cygnus.com>
5481 * configure.in: Sort all configuration tables.
5483 From Joel Sherrill <joel@oarcorp.com>
5484 * Makefile.in (stmp-targ-include): Copy $(sys_dir)/include/*.h.
5486 Tue Jun 3 14:47:46 1997 Ian Lance Taylor <ian@cygnus.com>
5488 * libc/include/sys/signal.h: Don't include <sys/types.h>. Just
5489 use int when declaring kill.
5491 * libc/include/sys/timeb.h: New file.
5493 Mon Jun 2 12:06:58 1997 Geoffrey Noer <noer@cirdan.cygnus.com>
5495 * libc/include/sys/time.h: add itimer support for Cygwin32
5497 Mon May 19 11:56:46 1997 Mike Meissner <meissner@cygnus.com>
5499 * libc/stdlib/abort.c (abort): If ABORT_MESSAGE is defined, write
5500 out a message that abort was called to stderr.
5502 Fri May 16 15:02:59 1997 Bob Manson <manson@charmed.cygnus.com>
5504 * libc/sys/sysmec/fstat.c (_fstat): Set st_blksize to 4096
5505 so that libio doesn't freak.
5507 * libc/sys/sysmec/sbrk.c (_sbrk): The argument is a size_t, not
5510 * libc/stdlib/mallocr.c (_morecore_r): Use size_t for
5511 memory sizes, not int.
5513 Wed May 14 21:16:58 1997 Bob Manson <manson@charmed.cygnus.com>
5515 * libm/math/ef_hypot.c: Use long constants where
5517 * libm/math/ef_sqrt.c: Ditto.
5519 * libc/sys/sysmec/times.c(_times): Change to times.
5521 * libc/sys/sysmec/read.c(_read): The third argument is
5523 * libc/sys/sysmec/write.c (_write): Ditto.
5525 * libc/sys/sysmec/lseek.c: Include unistd.h for off_t.
5526 (_lseek): It's off_t for the second argument.
5528 Wed May 14 15:23:36 1997 Mike Meissner <meissner@cygnus.com>
5530 * libc/include/sys/config.h (__IEEE_LITTLE_ENDIAN): Define here,
5531 as well as machine/ieeefp.h.
5533 Thu May 8 15:47:25 1997 Geoffrey Noer <noer@cygnus.com>
5535 * libc/include/sys/signal.h: add signal protos for winsup
5536 functions (when __CYGWIN32__), include types.h
5537 * libc/include/sys/types.h: Change __go32_types__ internal
5538 define to __MS_types__ since it's used for more than just
5539 GO32 configs. Define this if GO32, __MSDOS__, or _WIN32 are
5541 * libc/include/sys/unistd.h: add ftruncate proto for
5542 winsup functions (when __CYGWIN32__)
5544 Fri Apr 25 10:10:16 1997 Doug Evans <dje@canuck.cygnus.com>
5546 * libc/sys/h8300hms/sbrk.c (stack_ptr): Add definition.
5548 Thu Apr 24 15:46:51 1997 Mike Stump <mrs@cygnus.com>
5550 * libc/include/machine/setjmp.h: Add tic80 support.
5551 * libc/machine/tic80/setjmp.S: Likewise.
5553 Tue Apr 22 16:54:40 1997 Geoffrey Noer <noer@pizza.cygnus.com>
5555 * libc/sys/cygwin32/crt0.c: Add reference to main() so we can
5556 link programs from libraries only (such as in the X11
5559 Mon Apr 21 15:02:12 1997 Fred Fish <fnf@cygnus.com>
5561 * libc/sys/arm/syscalls.c (signal): Remove stub, signal()
5562 supplied elsewhere in newlib.
5564 Mon Apr 14 16:25:55 1997 Ian Lance Taylor <ian@cygnus.com>
5566 * Makefile.in (INSTALL): Change install.sh to install-sh.
5568 Fri Apr 11 17:04:02 1997 Jason Molenda (crash@godzilla.cygnus.co.jp)
5570 * README: update WWW address for on-line documentation.
5572 Wed Apr 9 00:38:13 1997 Geoffrey Noer <noer@cygnus.com>
5574 * libc/include/sys/signal.h: for _WIN32, define SIGCONT and
5577 Mon Apr 7 23:54:00 1997 Jeffrey A Law (law@cygnus.com)
5579 * libc/sys/sysmec/crt0.S: Update for new calling conventions on the
5581 * libc/sys/sysmec/trap.S: Don't compare a register to itself.
5583 Tue Mar 25 08:47:43 1997 Jeffrey A Law (law@cygnus.com)
5585 * libc/sys/arm/syscalls.c: Fix/add stack/heap collision detection.
5586 * libc/sys/d10v/syscalls.c: Likewise.
5587 * libc/sys/h8300hms/sbrk.c: Likewise.
5588 * libc/sys/h8500hms/syscalls.c: Likewise.
5589 * libc/sys/m88kbug/syscalls.c: Likewise.
5590 * libc/sys/sh/syscalls.c: Likewise.
5591 * libc/sys/sysmec/sbrk.c: Likewise.
5592 * libc/sys/sysnecv850/sbrk.c: Likewise.
5593 * libc/sys/w65/syscalls.c: Likewise.
5594 * libc/sys.tex: Update sbrk sample code to include stack/heap collision.
5596 Tue Mar 18 14:14:34 1997 Jeffrey A Law (law@cygnus.com)
5598 * libc/sys/sysmec/trap.S: Use "syscall" to trigger an
5599 emulated syscall instead of "trap".
5601 Fri Mar 14 11:26:13 1997 Michael Meissner <meissner@cygnus.com>
5603 * libc/sys/d10v/trap.S (__trap0): Use trap 15 for system calls,
5606 Sun Mar 9 23:27:04 1997 Doug Evans <dje@seba.cygnus.com>
5608 * configure.in (m32r-*-*): Add -msdata=sdata to target_cflags.
5610 Sat Mar 8 09:05:01 1997 Fred Fish <fnf@cygnus.com>
5612 * libc/machine/arm/Makefile.in: Fix comment, is for "arm"
5614 * libc/machine/m32r/Makefile.in: Fix comment, is for "m32r"
5616 * libc/sys/tic80/crt0.c: New file for TIc80.
5617 * libc/sys/tic80/Makefile.in: New file for TIc80.
5618 * libc/machine/tic80/Makefile.in: New file for TIc80.
5620 Wed Mar 5 11:32:12 1997 J.T. Conklin <jtc@cygnus.com>
5622 * libc/machine/sh/memcpy.S: New file.
5623 * libc/machine/sh/memset.S: New file.
5624 * libc/machine/sh/Makefile.in (OFILES): Add memcpy.o and memset.o
5626 Thu Feb 27 16:27:55 1997 Fred Fish <fnf@cygnus.com>
5628 * libc/include/machine/ieeefp.h (_IEEE_LITTLE_ENDIAN): Define
5631 Wed Feb 26 13:43:39 1997 Jeffrey A Law (law@cygnus.com)
5633 * libc/sys/sysmec/crt0.S: Handle new calling conventions for
5636 Wed Feb 26 07:11:03 1997 Michael Meissner <meissner@cygnus.com>
5638 * libc/machine/powerpc/setjmp.S (longjmp): Correct return status
5639 (patch from andrew@pogo.WV.TEK.COM).
5641 Fri Feb 14 11:49:28 1997 Doug Evans <dje@canuck.cygnus.com>
5643 * libc/machine/m32r/setjmp.S (setjmp): Save r12.
5644 (longjmp): Restore r12. Fix code that handles returning 1 if passed 0.
5646 Mon Feb 10 10:02:34 1997 Fred Fish <fnf@cygnus.com>
5648 * configure.in: Add cases for "tic80" to set machine_dir,
5649 sys_dir, and syscall_dir.
5651 Sun Feb 2 17:57:15 1997 Geoffrey Noer <noer@cygnus.com>
5653 * libc/sys/cygwin32/crt0.c: initialize floating pt registers
5655 Wed Jan 29 15:57:38 1997 Geoffrey Noer <noer@cygnus.com>
5657 * libc/include/math.h: avoid conflicts with ANSI C++ <exception>
5659 Mon Jan 27 12:50:01 1997 Doug Evans <dje@seba.cygnus.com>
5661 * libc/machine/m32r/setjmp.S: Use proper comment delimiter.
5662 Use proper constant prefix.
5664 Fri Jan 24 10:59:04 1997 Jeffrey A Law (law@cygnus.com)
5666 * libc/sys/sysmec/*.c: Don't cast args to syscall to integers,
5667 that loses on the mn10200 where ints and pointers are different
5670 Tue Jan 14 13:29:55 PST 1997 Jeremy Allison <jra@cygnus.com>
5672 * configure.in: Added -DSIGNAL_PROVIDED to cygwin32
5673 target as signal is provided in winsup.
5675 Tue Jan 14 11:10:13 1997 Jeremy Allison <jra@cygnus.com>
5677 * libc/include/sys/process.h: Corrected const definitions
5678 in spawn functions. Added cwait.
5680 Thu Jan 2 12:22:41 1997 Jeffrey A Law (law@cygnus.com)
5682 * libc/include/machine/ieeefp.h: mn10200 uses 16bit ints and 32bit
5684 * libc/include/sys/config.h: Similarly.
5686 Tue Dec 31 18:36:14 1996 Michael Meissner <meissner@tiktok.cygnus.com>
5688 * configure.in (sparc-sun-sunos*): Add -DSIGNAL_PROVIDED to the
5690 (i[3456]86-*-sco*): Ditto.
5692 * libc/signal/Makefile.in (OFILES): Add signal.o.
5693 (CFILES): Add signal.c.
5695 * libc/signal/raise.c (_raise_r): Only compile code if
5696 SIGNAL_PROVIDED is defined.
5698 * libc/signal/signal.c: Redo whole file so that it works with
5699 current newlib. Use _kill_r if no signal handler provided.
5701 * libc/sys/{go32,sparc64,sysmec}/Makefile.in: Delete raise and
5703 * libc/sys/sysvnecv70/Makefile.in: Ditto.
5704 * libc/sys/sysnecv850/Makefile.in: Ditto.
5706 * libc/sys/{go32,sparc64}/signal.c: Delete, stub no longer used.
5707 * libc/sys/sysmec/{raise,signal}.c: Ditto.
5708 * libc/sys/sysvnecv70/signal.s: Ditto.
5709 * libc/sys/sysnecv850/raise.c: Ditto.
5711 * libc/sys/sysnecv850/kill.c (_kill): Encode signal # so that
5712 simulator and debugger can tell the difference between a signal
5713 being raised and an exit system call.
5715 * NEWS: Document software signals being provided.
5717 Mon Dec 23 11:54:19 1996 Michael Meissner <meissner@tiktok.cygnus.com>
5719 * libc/reent/impure.c (_REENT_ATTR): Delete in favor of
5720 __ATTRIBUTE_IMPURE_PTR__. Move PowerPC definition to
5721 include/sys/config.h.
5722 (impure_data): Use __ATTRIBUTE_IMPURE_DATA__ for attributes.
5723 Change from 'inpure_data'.
5724 (_impure_ptr): Use __ATTRIBUTE_IMPURE_PTR__ for attributes. Use
5725 &impure_data, not &inpure_data.
5727 * libc/include/sys/config.h (__ATTRIBUTE_IMPURE_PTR__): If PowerPC
5728 and and System V ABI, define so that _impure_ptr lives in the
5731 Sun Dec 22 23:33:05 1996 Michael Meissner <meissner@tiktok.cygnus.com>
5733 * libc/include/sys/reent.h (__ATTRIBUTE_IMPURE_PTR__): Define as
5734 nothing if not defined.
5735 (_impure_ptr): Use __ATTRIBUTRE_IMPURE_PTR__, so a machine can set
5738 * libc/include/sys/config.h (__ATTRIBUTE_IMPURE_PTR__):
5740 Wed Dec 18 10:12:04 1996 Jeffrey A Law (law@cygnus.com)
5742 * libc/sys/sysmec/crt0.S: Fix mn10200 stuff.
5743 * libc/sys/sysmec/trap.s: Handle mn10200 too.
5744 * libc/machine/mn10200/setjmp.S: Fix mn10200 stuff.
5746 Mon Dec 16 10:05:36 1996 Jeffrey A Law (law@cygnus.com)
5748 * libc/sys/sysmec/crt0.S: Handle mn10200 too.
5750 Fri Dec 13 11:05:20 1996 Jeremy Allison <jra@cygnus.com>
5752 * libc/include/sys/errno.h: Added net errno's.
5754 Wed Dec 11 16:24:25 1996 Michael Meissner <meissner@tiktok.cygnus.com>
5756 * libc/misc/ffs.c: New file to support ffs function for GCC test
5757 gcc.c-torture/execute/960909-1.c.
5759 * libc/misc/Makefile.in ({O,CHEWOUT_}FILES): Add ffs.
5761 Sat Dec 7 10:12:37 1996 Jeffrey A Law (law@cygnus.com)
5763 * libc/sys/sysmec/crt0.S: Handle underscore prefix.
5764 * libc/sys/sysmec/trap.S: Likewise.
5766 Fri Dec 6 15:08:49 1996 Jim Wilson <wilson@cygnus.com>
5768 * configure.in (mips*vr4300*-*-*): Delete use of sys/vr4300.
5769 * libc/sys/vr4300/{Makefile.in,crt0.S,syscalls.c}: Delete.
5771 Wed Dec 4 16:25:27 1996 Jeffrey A Law (law@cygnus.com)
5773 * libc/sys/sysmec/signal.c: Dummy file.
5774 * libc/sys/sysmec/Makefile.in: Build it.
5776 Wed Nov 27 13:10:18 1996 Ian Lance Taylor <ian@cygnus.com>
5778 * libc/machine/mips/machine/regdef.h: Define pc as $pc for
5781 Mon Nov 25 09:58:28 1996 Jeffrey A Law (law@cygnus.com)
5783 * libc/sys/sysmec/{crt0.S,trap0.S}: Actually try to implement
5784 c-startup and simulator traps.
5787 * libc/sys/sysmec/crt0.S: Remove bogus '_' symbol prefixing
5788 * libc/sys/sysmec/trap0.S: Likewise.
5790 Sat Nov 23 09:01:03 1996 Michael Meissner <meissner@tiktok.cygnus.com>
5792 * libc/stdlib/mallocr.c (ROUND_TO): If SMALL_MEMORY, set to 0x7 to
5793 round to double word alignment.
5794 (_morecore_r): Combine rounding up pointers to both ROUND_TO and 8
5797 * libc/include/sys/config.h (__IEEE_BIG_ENDIAN): Define if d10v.
5799 * libc/sys/d10v/syscalls.c (_sbrk): Add better checks for running
5802 Mon Nov 18 13:08:26 1996 Jeffrey A Law (law@cygnus.com)
5804 * configure.in: Handle mn10200 and mn10300.
5805 * libc/include/machine/{ieeefp.h,setjmp.h}: Likewise.
5806 * libc/include/sys/config.h: Likewise.
5807 * libc/sys/sysmec: New directory for mec stuff.
5808 * libc/machine/mn10300: New directory for mn10300 stuff.
5809 * libc/machine/mn10200: Similarly for mn10200 stuff.
5811 Fri Nov 15 16:41:41 1996 Doug Evans <dje@canuck.cygnus.com>
5813 * libc/sys/arm/crt0.S: Use .text, not .section .text.
5814 * libc/sys/arm/syscalls.c: Rewrite to set errno properly.
5816 * libc/include/sys/types.h (_ST_INT32): New macro, local to file.
5817 (nlink_t): Change type from unsigned int to unsigned short.
5818 (mode_t): Ensure size is 32 bits even if int is 16.
5819 * libc/include/sys/stat.h (st_nlink): Change type to nlink_t.
5820 (st_spare[123]): Change type from int to long.
5822 Fri Nov 15 11:41:50 1996 Michael Meissner <meissner@tiktok.cygnus.com>
5824 * libc/sys/d10v/syscalls.c (_sbrk): Align initial heap_end to 8
5827 * configure.in (d10v*): Define SMALL_MEMORY.
5829 Mon Nov 11 10:30:44 1996 Michael Meissner <meissner@tiktok.cygnus.com>
5831 * configure.in (powerpc*-{eabi,elf,linux,rtem,sysv,solaris}*): Add
5832 -mrelocatable-lib and -mno-eabi flags.
5834 Mon Nov 11 09:01:39 1996 Jeffrey A Law (law@cygnus.com)
5836 * libc/machine/h8300/memcpy.S: Fix comments to reflect reality.
5837 Fix handling of mis-aligned source operand when both the
5838 destination & length are properly aligned.
5840 Wed Oct 30 09:41:11 1996 Jeffrey A Law (law@cygnus.com)
5842 * libc/sys/sysnecv850/Makefile.in (OFILES): Add
5843 times.o, time.o and gettime.o
5844 * libc/sys/sysnecv850/{time.c, times.c, gettime.c}: New files.
5845 * libc/sys/sysnecv850/sys/syscall.h: Add SYS_times and
5848 Tue Oct 29 13:40:09 1996 Jeffrey A Law (law@cygnus.com)
5850 * libc/sys/sysnecv850/Makefile.in (OFILES): Add access.o
5851 * libc/sys/sysnecv850/access.c: New file.
5853 Mon Oct 21 19:47:02 1996 Ian Lance Taylor <ian@cygnus.com>
5855 * libc/sys/vr4300/Makefile.in (clean): Remove $(OFILES).
5857 * libc/stdlib/mprec.h (word0, word1): Use __uint32_t, not unsigned
5860 Mon Oct 21 14:43:07 1996 Jeffrey A Law (law@cygnus.com)
5862 * libc/sys/sysnecv850/crt0.S: Initialize ep and gp registers.
5864 Thu Oct 17 11:47:16 1996 Doug Evans <dje@seba.cygnus.com>
5866 * libc/include/machine/{ieeefp.h,setjmp.h}: Add m32r support.
5867 * libc/include/sys/config.h: Add m32r support.
5869 Wed Oct 16 23:08:05 1996 Jeffrey A Law (law@cygnus.com)
5871 * libc/sys/sysnecv850/v850.ld: Remove. It doesn't belong
5874 Wed Oct 16 21:18:07 1996 Mark Alexander <marka@cygnus.com>
5876 * libc/include/machine/setjmp.h: Add D10v support.
5878 Tue Oct 15 22:28:26 1996 Jeffrey A Law (law@cygnus.com)
5880 * configure.in: Configure the "libc/syscalls" directory for
5883 * libc/sys/sysnecv850/{close.c, execve.c, fork.c}: Add missing '_'.
5884 * libc/sys/sysnecv850/{fstat.c, getpid.c, kill.c}: Likewise.
5885 * libc/sys/sysnecv850/{lseek.c, open.c, read.c}: Likewise.
5886 * libc/sys/sysnecv850/{sbrk.c, stat.c, unlink.c}: Likewise.
5887 * libc/sys/sysnecv850/{wait.c, write.c}: Likewise.
5889 Tue Oct 15 16:24:39 1996 Stu Grossman (grossman@critters.cygnus.com)
5891 * libc/sys/sysnecv850/crt0.S (start): Allocate spill space on
5892 stack for args for main and other routines. Zero out args for
5895 * libc/sys/sysnecv850/v850.ld: New. Linker script to layout memory
5898 Tue Oct 15 11:51:42 1996 Michael Meissner <meissner@tiktok.cygnus.com>
5900 * libc/stdio/findfp.c (std): Remove extraneous ';' after
5903 * libc/sys/d10v/sys/syscall.h (SYS_kill): Add.
5905 * libc/sys/d10v/{syscalls.c,trap.S} (_kill,_getpid): Make these
5906 real system calls now.
5908 * libc/stdio/setvbuf (setvbuf): Cast pointers to _POINTER_INT
5909 before casting them to int.
5910 * libc/stdio/tmpnam.c (_tempnam_r): Ditto.
5912 * libc/stdlib/mallocr.c (_morecore_r): Use _POINTER_INT when
5914 * libc/string/memset.c (memset): Ditto.
5916 * libc/stdio/vfscanf.c (__svfscanf): When converting to pointer,
5917 first convert ints to _POINTER_INT to eliminate GCC warning.
5919 * libc/stdio/vfprintf.c (_vfprintf_r): Use _POINTER_INT when
5922 * libm/math/ef_scalb.c (__ieee754_scalbf): Cut down range to 32000
5923 from 65000 if ints are only 16 bits.
5925 * libm/math/sf_scalbn.c (scalbnf): Cut down overflow test to 30000
5926 from 50000 if ints are only 16 bits.
5928 * libc/include/sys/config.h (_POINTER_INT): New macro, to give an
5929 int type that is the same size as a pointer.
5931 * libc/misc/dprintf.c (__dprintf): Use _POINTER_INT when
5933 (get_number): Explicitly cast number to long before shifting by 16
5934 or 24, in case ints are short.
5936 * libc/include/sys/config.h (_POINTER_INT): Define as short.
5938 Wed Oct 9 16:54:32 1996 Jeremy Allison <jra@cygnus.com>
5940 * libc/string.h: Added ffs, removed swab.
5941 * libc/sys/errno.h: Added EOPNOTSUPP.
5942 * libc/sys/unistd.h: Added swab.
5944 Thu Oct 3 17:08:50 1996 Jeremy Allison <jra@cygnus.com>
5946 * libc/include/sys/stat.h: Added fchmod.
5947 * libc/include/sys/unistd.h: Added fsync.
5949 Tue Oct 1 17:34:08 1996 Jeremy Allison <jra@cygnus.com>
5951 * libc/include/sys/errno.h: Added defines for EPFNOSUPPORT (96)
5952 and ECONNRESET (104) for cygwin32.
5954 Tue Oct 1 16:24:05 1996 Gavin Koch <gavin@cygnus.com>
5956 * libc/sys/sysnecv850/_exit.c: added _do_dtors to
5957 do the static destructors.
5959 Mon Sep 30 15:59:05 1996 Stu Grossman (grossman@critters.cygnus.com)
5961 * libc/sys/sysnecv850/trap.S: Change I/O to use trap 31.
5963 Mon Sep 30 12:02:50 1996 Doug Evans <dje@canuck.cygnus.com>
5965 * libc/machine/m32r/{Makefile.in,setjmp.S}: New files.
5966 * configure.in: Recognize m32r-*-*.
5968 Mon Sep 30 00:34:41 1996 James G. Smith <jsmith@cygnus.co.uk>
5970 * libc/sys/arm/trap.S (__rt_stkovf_split_big,
5971 __rt_stkovf_split_small): Added default software stack overflow
5972 handlers, which just call SWI_Exit.
5973 * libc/sys/arm/crt0.S (_mainCRTStartup): Simple software stack
5974 limit initialisation.
5976 Fri Sep 27 13:08:03 1996 Mark Alexander <marka@cygnus.com>
5978 * libc/sys/d10v/{trap.S,sys/syscall.h}: Add time() function.
5980 Fri Sep 27 12:32:00 1996 Jeremy Allison <jra@cygnus.com>
5982 * libc/include/sys/types.h: Added ssize_t definition.
5984 Wed Sep 25 14:52:18 1996 Michael Meissner <meissner@tiktok.cygnus.com>
5986 * libc/machine/d10v/setjmp.S: Use ';' for comments.
5987 * libc/sys/d10v/{crt0.S,trap.S}: Ditto.
5989 * libc/machine/d10v/setjmp.S (longjmp): Use exef0t || instead of
5990 branch around a single ldi instruction.
5992 * libc/sys/d10v/crt0.S (_start): Use auto-increment to zero bss.
5993 Call exit, instead of just issuing a stop instruction.
5995 Sun Sep 22 17:26:55 1996 Michael Meissner <meissner@tiktok.cygnus.com>
5997 * libc/sys/d10v/{trap.S,syscalls.c}: Add -mint32 support.
5999 Fri Sep 20 13:23:12 1996 Michael Meissner <meissner@tiktok.cygnus.com>
6001 * libc/stdlib/mprec.h: Explicitly declare all large constants as
6002 longs, and then cast them to __uint32_t.
6004 * libc/include/sys/config.h: Protect against multiple inclusions.
6006 Tue Sep 17 13:10:33 1996 Mark Alexander <marka@cygnus.com>
6008 * configure.in (d10v*): Set syscall_dir.
6010 Sun Sep 15 10:41:59 1996 Mark Alexander <marka@cygnus.com>
6012 * libc/sys/d10v/crt0.S: Set stack pointer.
6014 Thu Sep 12 13:02:38 1996 Mark Alexander <marka@cygnus.com>
6016 * libc/sys/d10v/{trap.S, syscalls.c}: Rewrite most system calls
6017 in assembly for efficiency. Change calling convention to allow
6018 long ints to be returned.
6020 Wed Sep 11 10:28:18 1996 Michael Meissner <meissner@tiktok.cygnus.com>
6022 * libc/machine/v850/Makefile.in (setjmp.o): Fix dependency.
6024 Thu Sep 5 19:23:06 1996 Doug Evans <dje@canuck.cygnus.com>
6026 * libc/posix/execvp.c (execvp): Don't search PATH if file has '/'.
6027 Handle empty entries in $PATH.
6029 Tue Sep 03 18:15:02 1996 Mark Alexander <marka@cygnus.com>
6031 * libc/machine/d10v/setjmp.S: Make it really work.
6033 Tue Sep 3 12:16:26 1996 Ian Lance Taylor <ian@cygnus.com>
6035 * libc/sys/sh/crt0.S: If __ELF__, use ELF section attributes for
6038 Tue Sep 3 10:08:45 1996 Jeffrey A Law (law@cygnus.com)
6040 * sys/sysnecv850/sys/file.h: Remove.
6041 * sys/sysnecv850/sys/syscall.h: New file.
6042 * sys/sysnecv850/{misc.c,syscalls.c,malloc.c}: Deleted.
6043 * sys/sysnecv850/{chmod.c, chown.c, close.c, creat.c} New files.
6044 * sys/sysnecv850/{execv.c, execve.c, fork.c, fstat.c} New files.
6045 * sys/sysnecv850/{getpid.c, isatty.c, kill.c, lseek.c} New files.
6046 * sys/sysnecv850/{open.c, pipe.c, raise.c, read.c} New files.
6047 * sys/sysnecv850/{stat.c, unlink.c, utime.c, wait.c} New files.
6048 * sys/sysnec850/trap.S: New file.
6049 * sys/sysnecv850/{_exit.c, write.c}: Use new TRAP0 mechanism for
6051 * sys/sysnecv850/crt0.S: Use cmp/bl, not tst/bz.
6052 * sys/sysnec850/sbrk.c: New version.
6054 Sun Sep 1 20:08:27 1996 Jeffrey A Law (law@cygnus.com)
6056 * sys/sysnecv850/crt0.S: Fix order of comparison args. Loop
6057 as long as r6 is less than r7.
6059 Sun Sep 1 13:54:19 1996 Ian Lance Taylor <ian@cygnus.com>
6061 * Makefile.in (mostlyclean): Separate from clean target. Don't
6062 remove *.a or targ-include.
6063 * libc/machine/sparc/Makefile.in (mostlyclean): New target.
6065 Sun Sep 1 11:35:26 1996 Michael Meissner <meissner@tiktok.cygnus.com>
6067 * libc/include/machine/ieeefp.h (_DOUBLE_IS_32BITS): Define for
6069 (__SMALL_BITFIELDS): Ditto.
6071 * libc/include/sys/config.h (_DOUBLE_IS_32BITS): Define for d10v.
6073 Sat Aug 31 16:42:36 1996 Jeffrey A Law (law@cygnus.com)
6075 * libc/sys/sysnecv850/misc.c (raise, getpid, kill): Remove '_'
6078 * libc/sys/sysnecv850/sbrk.c (sbrk): Remove '_' prefix.
6079 * libc/sys/sysnecv850/syscalls.c (read, lseek, close): Likewise.
6080 * libc/sys/sysnecv850/syscalls.c (fstat, open, close): Likewise.
6081 * libc/sys/sysnecv850/write.c (write): Likewise.
6083 * libc/sys/sysnecv850/crt0.S: Don't try to zero out an empty
6086 Fri Aug 30 11:18:45 1996 Michael Meissner <meissner@tiktok.cygnus.com>
6088 * libc/include/sys/config.h: Define INT_MAX, UINT_MAX
6089 appropriately for D10V, depending on -mint16/-mint32.
6091 Thu Aug 29 16:09:37 1996 Mark Alexander <marka@cygnus.com>
6093 * configure.in: Add cases for D10V.
6095 Thu Aug 29 17:03:23 1996 Michael Meissner <meissner@tiktok.cygnus.com>
6097 * configure.in (i[345]86-*-*): Recognize i686 for pentium pro.
6099 Wed Aug 28 21:05:52 1996 Jeffrey A Law (law@cygnus.com)
6101 * libc/include/machine/ieeefp.h: Fix typo.
6103 Wed Aug 28 19:47:55 1996 Mark Alexander <marka@cygnus.com>
6105 * libc/sys/d10v: New directory for D10V stuff.
6106 * libc/include/machine/ieeefp.h: Add D10V defines.
6108 Mon Aug 26 13:34:58 1996 Doug Evans <dje@canuck.cygnus.com>
6110 * libc/include/sys/errno.h: Add winsup/include/sys/errno.h values:
6111 ELOOP, ENOBUFS, EAFNOSUPPORT, EPROTOTYPE, ENOTSOCK, ENOPROTOOPT,
6112 ESHUTDOWN, ECONNREFUSED, EADDRINUSE, ECONNABORTED, EWOULDBLOCK.
6113 * libc/string/strerror.c (strerror): Add them.
6115 Thu Aug 22 16:38:19 1996 Jeffrey A Law (law@cygnus.com)
6117 * libc/sys/sysnecv850: New directory for v850 stuff.
6119 * libc/machine/v850: New directory for v850 stuff.
6120 * libc/machine/v850/setjmp.S: setjmp/longjmp support.
6122 * configure.in: Add support for the v850.
6124 * libc/include/machine/ieeefp.h: Add v850 defines.
6125 * libc/include/machine/setjmp.h: Likewise.
6126 * libc/include/sys/config.h: Add v850 defines.
6128 Sat Aug 17 04:06:36 1996 Geoffrey Noer <noer@cygnus.com>
6130 * libc/include/machine/ieeefp.h
6131 * libc/include/machine/setjmp.h
6132 * libc/include/sys/fcntl.h
6133 * libc/include/sys/signal.h
6134 * libc/include/sys/types.h
6135 * libc/stdlib/system.c:
6136 Fix preprocessor defines to match new scheme (_WIN32 for WIN32
6137 API availability, __CYGWIN32__ for cygwin32 environment specific).
6139 Thu Aug 15 17:09:21 1996 Geoffrey Noer <noer@cygnus.com>
6141 * libc/include/stdlib.h: add multibyte character functions. Add
6142 __eprintf for assert.
6144 Thu Aug 15 11:15:40 1996 Michael Meissner <meissner@tiktok.cygnus.com>
6146 * libc/stdlib/malloc.h (MALLOC_ALIGNMENT): Use either pointer
6147 arithmetic or __alignof__ to properly get the alignment, instead
6148 of hardwiring it to 4.
6150 Wed Aug 14 23:43:28 1996 Geoffrey Noer <noer@cygnus.com>
6152 * libc/stdio/fseek.c: add fflush call to adjust seek offset
6153 on append stream (fix from NetBSD sources), adjust curoff offset
6154 for ungetc's benefit.
6155 * libc/stdio/ftell.c: adjust curoff offset for ungetc's benefit.
6156 * libc/stdio/rewind.c: replace code with up to date NetBSD
6157 code to undo hacks made to work around above problem of not
6158 having fflush call mentioned above
6160 Fri Aug 2 18:28:07 1996 J.T. Conklin <jtc@rtl.cygnus.com>
6162 * libc/reent/{closer.c, execr.c, fstatr.c, linkr.c, lseekr.c,
6163 openr.c, readr.c, sbrkr.c, signalr.c, statr.c, timer.c, writer.c}:
6164 Partially revert last changes. The thread specific errno is set
6165 iff if the underlying syscall fails and the global errno is not
6168 Fri Jul 19 11:41:52 1996 J.T. Conklin <jtc@rtl.cygnus.com>
6170 * libc/reent/filer.c: Removed files, all functions have split out
6171 into their own files.
6172 * libc/reent/{closer.c, lseekr.c, openr.c, readr.c, writer.c}:
6173 New files containing functions formally in filer.c
6174 * libc/reent/Makefile.in: Updated for above change.
6176 * libc/reent/execr.c (_fork_r, _wait_r): Set errno if underlying
6177 syscall fails, not if errno is changed.
6178 * libc/reent/filer.c (_open_r, _close_r, _lseek_r, _read_r,
6179 _write_r): Likewise.
6180 * libc/reent/fstatr.c (_fstat_r): Likewise.
6181 * libc/reent/linkr.c (_link_r, _unlink_r): Likewise.
6182 * libc/reent/sbrkr.c (_sbrk_r): Likewise.
6183 * libc/reent/signalr.c (_kill_r): Likewise.
6184 * libc/reent/statr.c (_stat_r): Likewise.
6185 * libc/reent/timer.c (_gettimeofday_r): Likewise.
6187 * libc/reent/{execr.c, filer.c, fstatr.c, linkr.c, sbrkr.c,
6188 signalr.c, statr.c, timer.c} (errno): declare extern rather
6191 * libc/stdio/vfprintf.c (__sbprintf): Use the VFPRINTF macro
6192 instead of calling vfprintf so that i*printf will not require
6193 floating point support code.
6195 Mon Jul 15 16:50:59 1996 Doug Evans <dje@canuck.cygnus.com>
6197 * libc/posix/execvp.c (execvp): Use posix_path_list_p to determine
6199 * libc/include/sys/unistd.h (_SC_PATH_RULES): Delete.
6200 (_PATH_RULES_{UNKNOWN,WIN32,POSIX}): Delete.
6202 Thu Jul 11 14:34:14 1996 Geoffrey Noer <noer@cygnus.com>
6204 * libc/include/signal.h: _sig_func_ptr function takes an int
6205 * libc/include/sys/signal.h: sa_handler function takes an int
6207 Tue Jul 9 21:22:32 1996 Jeffrey A Law (law@cygnus.com)
6209 * libc/include/machine/ieeefp.h: Simplify H8/S support.
6210 * libc/include/sys/config.h: Add missing H8/S conditional.
6212 Sun Jun 30 12:05:46 1996 Doug Evans <dje@canuck.cygnus.com>
6214 * libc/include/sys/unistd.h (MAXPATHLEN): Add cygwin32 value.
6216 Wed Jun 26 09:57:54 1996 Jeffrey A Law (law@cygnus.com)
6218 * libc/include/machine/setjmp.h: Handle H8/S.
6219 * libc/include/machine/ieeefp.h: Likewise.
6220 * libc/include/sys/config.h: Likewise.
6221 * libc/machine/h8300/{defines.h, memcpy.S, memset.S}: Likewise.
6222 * libc/machine/h8300/{reg_memcpy.S, reg_memset.S}: Likewise.
6223 * libc/machine/h8300/{strcmp.S, setjmp.S}: Likewise.
6224 * libc/sys/h8300hms/crt0.S: Likewise.
6226 Tue Jun 25 23:15:45 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
6228 * Makefile.in (datadir): Set to $(prefix)/share.
6229 (oldincludedir, docdir): Removed.
6230 * doc/Makefile.in (datadir): Set to $(prefix)/share.
6231 (oldincludedir, docdir): Removed.
6232 * libc/Makefile.in (datadir): Set to $(prefix)/share.
6233 (oldincludedir, docdir): Removed.
6234 * libm/Makefile.in (datadir): Set to $(prefix)/share.
6235 (oldincludedir, docdir): Removed.
6237 Fri Jun 21 19:24:41 1996 Ian Lance Taylor <ian@cygnus.com>
6239 * libc/include/sys/reent.h (_REENT_INIT): Update for change to
6242 Wed Jun 19 14:00:09 1996 Doug Evans <dje@canuck.cygnus.com>
6244 * libc/posix/execvp.c: Delete _WIN32 support. For __CYGWIN32__
6245 fetch current path rules with sysconf and handler posix/win32
6248 * libc/include/sys/unistd.h (_PATH_RULES{,_POSIX,_WIN32}): Define.
6250 * libc/include/process.h: Prepend '_' to P_{WAIT,NOWAIT,OVERLAY}.
6251 (WAIT_CHILD): Always define.
6253 Sat Jun 15 17:50:42 1996 Ian Lance Taylor <ian@cygnus.com>
6255 * libc/stdlib/eprintf.c: New file.
6256 * libc/stdlib/Makefile.in (OFILES): Add eprintf.o.
6257 (eprintf.o): New target.
6259 Thu Jun 13 16:44:32 1996 Doug Evans <dje@canuck.cygnus.com>
6261 * libc/sys/cygwin32/crt0.c (__cygwin_crt0_bp): New global.
6262 (mainCRTStartup): Do int3 if __cygwin_crt0_bp non-zero.
6264 Thu Jun 13 17:45:17 1996 Mike Meissner <meissner@rtl.cygnus.com>
6266 * libc/include/machine/ieeefp.h: Add support for AIX and Windows
6267 NT in PowerPC endianess cases.
6269 Tue Jun 11 12:26:28 1996 Michael Meissner <meissner@tiktok.cygnus.com>
6271 * libc/include/machine/ieeefp.h: Clean up PowerPC endianess.
6273 Thu Jun 6 11:34:20 1996 Michael Meissner <meissner@tiktok.cygnus.com>
6275 * libc/string/strtok.c: Fix doc typo.
6277 Mon Jun 3 11:30:00 1996 J.T. Conklin <jtc@rtl.cygnus.com>
6279 * libc/include/sys/reent.h (struct _reent): Removed _asctime,
6280 _next, _scanpoint, _signgam fields.
6282 * libc/include/stdlib.h (rand_r): Added new declaration.
6283 (_rand_r, _srand_r): Removed declarations.
6284 * libc/stdlib/rand.c (_rand_r, _srand_r): Removed, these functions
6285 have been made obsolete by rand_r.
6286 * libc/stdlib/rand_r.c: New file, rand_r function as specified
6289 * libc/string/strtok.c: Update documentation to describe
6292 Sat Jun 1 23:50:39 1996 Michael Meissner <meissner@cygnus.com>
6294 * libc/include/sys/stat.h (stat structure): Use the expanded stat
6295 structure on Solaris, and PowerPC systems even though __svr4__ is
6298 Tue May 28 13:02:42 1996 Doug Evans <dje@canuck.cygnus.com>
6300 * libc/sys/go32/sys/errno.h (ENOSYS,ESPIPE): Keep values <= 255.
6302 Fri May 17 10:34:44 1996 Ian Lance Taylor <ian@cygnus.com>
6304 * host/any: Use ../.. rather than .. to get to the main build
6305 directory. This matches the current layout of the build
6308 Wed May 15 15:52:27 1996 Jeffrey A Law (law@cygnus.com)
6310 * libc/machine/h8300/__main.S: Delete. No longer needed.
6311 * libc/machine/h8300/Makefile.in: Corresponding changes.
6312 * libc/sys/h8300hms/crt1.c: New file.
6313 * libc/sys/h8300hms/Makefile.in: Corresponding changes.
6314 * libc/sys/h8300hms/crt0.s: Call __main.
6316 * libc/sys/h8300hms/crt0.S: Use temporary label names
6319 Mon May 13 14:26:30 1996 Doug Evans <dje@canuck.cygnus.com>
6321 * libc/stdio/fopen.c (_fopen_r): Fix arguments to fseek.
6323 Fri May 3 16:38:23 1996 Michael Meissner <meissner@tiktok.cygnus.com>
6325 * libc/reent/impure.c (_impure_ptr): Force the impure pointer into
6326 .sdata on the PowerPC so that we can link newlib with code
6327 compiled with -msdata.
6329 Mon Apr 29 21:38:02 1996 Doug Evans <dje@canuck.cygnus.com>
6331 * libc/sys/arm/syscalls.c (_sbrk): Rename end to __end__.
6333 Thu Apr 25 06:38:59 1996 Michael Meissner <meissner@cygnus.com>
6335 * libc/sys/cygwin32/crt0.c (mainCRTStartup): On PowerPC, set the
6336 exception handler to __cygwin_exception_handler.
6338 Tue Apr 23 15:14:20 1996 Ian Lance Taylor <ian@cygnus.com>
6340 * libc/include/machine/setjmp.h: Check _AM29K, not ___AM29K__.
6342 Sun Apr 21 12:11:51 1996 Doug Evans <dje@blues.cygnus.com>
6344 * libm/math/Makefile.in ({w,wf}_cabs.o,{w,wf}_drem.o): Add rule for
6346 * libc/stdlib/Makefile.in (atoff.o,atol.o,mblen.o,mbstowcs.o,
6347 wcstombs.o): Likewise.
6349 Thu Apr 18 12:37:01 1996 Doug Evans <dje@canuck.cygnus.com>
6351 * libc/stdlib/environ.c (initial_env): New static local.
6352 (environ): Point to `initial_env'.
6354 * libc/include/machine/setjmp.h: Clean up.
6355 (__H8300H__,__PPC__): Define _JBTYPE.
6356 (__arm__): Provide entry for.
6357 (sigjmp_buf): Delete.
6358 (jmp_buf): Use _JBTYPE if defined, otherwise int.
6360 Thu Apr 18 12:10:52 1996 Jeffrey A Law (law@cygnus.com)
6362 * libc/machine/h8300/strcmp.S: Sign extend the result to
6363 32bits so we don't lose with -mint32.
6365 Sun Apr 14 19:59:52 1996 Doug Evans <dje@canuck.cygnus.com>
6367 * libc/sys/go32/sys/errno.h: New file.
6368 * libc/sys/go32/Makefile.in (stat.o): Depend on stat.c.
6369 * libc/sys/go32/gerrno.s (syscall_error): Call __errno to get
6370 errno's address (make compatible with rest of newlib).
6371 * libc/sys/go32/stat.c (fixinode): Set errno upon failure.
6372 * libc/string/strerror.c (strerror): Surround each case with #ifdef.
6374 Thu Mar 28 13:44:42 1996 Doug Evans <dje@canuck.cygnus.com>
6376 * libc/machine/sparc/{scan.c,shuffle.c}: New files.
6377 * libc/machine/sparc/Makefile.in: Build them.
6378 * libc/machine/sparc/machine/sparclet.h: New file.
6380 Mon Mar 25 15:29:14 1996 J.T. Conklin <jtc@rtl.cygnus.com>
6382 * libc/machine/sh/asm.h: New file.
6383 * libc/machine/sh/setjmp.S: Only save clobbered registers. Added
6384 support for SH3e's FP registers. Use asm.h.
6386 Mon Mar 25 11:59:23 1996 Jeffrey A Law (law@cygnus.com)
6388 * libc/stdio/vfprintf.c (cvt): Accept a reent structure
6389 as first argument. Call _dtoa_r and pass the reent structure
6390 instead of calling __dtoa.
6392 Fri Mar 22 13:59:37 1996 Jeffrey A Law (law@cygnus.com)
6394 * libc/include/sys/config.h: Define DOUBLE_IS_32BITS for
6395 the h8300, h8500, and others. Add comments for some rather
6398 Thu Mar 14 18:04:43 1996 Ian Lance Taylor <ian@cygnus.com>
6400 * Makefile.in (check): Check that testsuite exists before cd.
6402 Tue Mar 12 11:46:47 1996 Michael Meissner <meissner@tiktok.cygnus.com>
6404 * libc/include/string.h (strsep): Correct prototype.
6406 Mon Mar 11 09:55:19 1996 Doug Evans <dje@charmed.cygnus.com>
6408 * libc/sys/h8300/_exit.c (_exit,__exit): Set r0 to 0 before `sleep'.
6409 * libc/sys/h8300/misc.c (_kill): Set r0 to indicate abort and `sleep'.
6410 * libc/sys/h8300/crt0.S (_start): Call exit instead of `sleep'.
6412 Wed Mar 6 11:51:55 1996 Doug Evans <dje@charmed.cygnus.com>
6414 * libc/posix/{creat.c,isatty.c}: New files.
6415 * libc/posix/Makefile.in (OFILES): Add creat.o, isatty.o.
6417 * libc/sys/sparc64/crt0.S (environ): Delete.
6418 (.LHaveBias): Renamed from HaveBias.
6420 Thu Feb 15 10:48:37 1996 Doug Evans <dje@charmed.cygnus.com>
6422 * libc/stdlib/mallocr.c (etext): Move decl inside ifdef WARN_VLIMIT.
6423 (_morecore_r): Delete SBRK_IS_ALLOC support.
6425 Tue Feb 13 09:44:09 1996 Michael Meissner <meissner@tiktok.cygnus.com>
6427 * libc/sys/cygwin32/Makefile.in (lib.a): Make lib.a with a dummy
6428 module rather than touch, so we don't get warning messages when
6429 all of the libraries are combined into libc.a.
6431 Tue Feb 13 06:32:07 1996 Doug Evans <dje@charmed.cygnus.com>
6433 * libc/sys/sparclite/{Makefile.in,crt0.s}: Deleted.
6434 crt0.s replaced by version in libgloss.
6436 Mon Feb 5 15:17:51 1996 J.T. Conklin <jtc@rtl.cygnus.com>
6438 * libc/reent/Makefile.in (OFILES): Add impure.o.
6439 * libc/reent/impure.o: New file, define initial reentrancy struct.
6440 * libc/reent/reent.c: Remove above definition.
6442 * libm/math/sf_asinh.c: Fix typo.
6444 * Makefile.in (MATHOBJS_IN_LIBC): Removed sr_ldexp.o and
6447 * libm/libm.texinfo: Change documentation to reflect changes
6448 in reentrancy model.
6449 * libm/math/w_gamma.c: Likewise.
6451 Wed Jan 31 18:49:45 1996 Steve Chamberlain <sac@slash.cygnus.com>
6453 * configure.in (*-*-cygwin32): New.
6454 (*-*-win32): Deleted.
6455 * libc/sys/win32 renamed libc/sys/cygwin32.
6457 Tue Jan 30 22:09:03 1996 Michael Meissner <meissner@tiktok.cygnus.com>
6459 * libc/include/sys/file.h: New include file.
6461 Fri Jan 26 15:52:54 1996 Steve Chamberlain <sac@slash.cygnus.com>
6463 * libc/include/machine/setjmp.h: Increase size of PPC jmp_buf.
6465 Tue Jan 23 17:49:16 1996 Steve Chamberlain <sac@slash.cygnus.com>
6467 * libc/include/sys/wait.h (WIFSIGNALED): Fix.
6469 Tue Jan 16 09:28:10 1996 Michael Meissner <meissner@tiktok.cygnus.com>
6471 * doc/makedoc.c (realloc): Declare at file scope.
6472 (catchar): Not here.
6474 Wed Dec 27 15:45:23 1995 Doug Evans <dje@canuck.cygnus.com>
6476 * Makefile.in (VERSION): Update to 1.7.0.
6477 * {libc,libm}/Makefile.in (VERSION): Likewise.
6478 * configure.in: Minor clean up of multilib stuff.
6480 From David Johnson <davidj@ICSI.Berkeley.EDU>
6481 * {libc,libm}/Makefile.in (lib[cm].a): Delete library first.
6483 * libc/stdlib/environ.c: New file.
6484 * libc/stdlib/Makefile.in (OFILES): Build it.
6485 * libc/sys/h8500hms/crt0.c (environ): Deleted.
6486 * libc/sys/m88kbug/crt0.c (environ): Deleted.
6487 * libc/sys/z8ksim/crt0.c (environ): Deleted.
6488 * libc/sys/netware/environ.c: Deleted.
6490 Tue Dec 19 15:24:46 1995 Kim Knuttila <krk@cygnus.com>
6492 * configure.in (links): set sys_dir, posix_dir, syscall_dir
6494 Wed Dec 13 04:16:25 1995 Michael Meissner <meissner@wogglebug.tiac.net>
6496 * doc/makedoc.c (init_string_with_size,nextword): Move malloc
6497 declaration out to external scope and declare it PTR, not char *.
6499 Mon Dec 11 17:35:12 1995 steve chamberlain <sac@slash.cygnus.com>
6501 * libc/include/sys/unistd.h (getpagesize): New declaration.
6502 (_SC_PAGESIZE): New definition.
6503 * libc/include/time.h (CLK_TCK): Defined as CLOCKS_PER_SEC.
6504 * libc/configure.in (i[345]86-*-win32): Remove -DNO_FORK.
6506 Fri Dec 1 16:48:46 1995 James G. Smith <jsmith@cygnus.co.uk>
6508 * libc/sys/vr4300/syscalls.c (sbrk): Fixed memory
6509 addressing. System call returns size, not (last address + 1).
6511 Thu Nov 30 15:05:26 1995 J.T. Conklin <jtc@rtl.cygnus.com>
6513 * libm/math/*.c: Removed _foo_r() reentrancy API.
6514 * libc/include/math.h: Removed _foo_r prototypes and macros.
6516 * libm/math/*.c: On systems with IEEE single precision "doubles"
6517 move foo() -> foof() wrapper code from the files that implement
6518 the standard IEEE double precision functions to the files that
6519 implement IEEE single precision functions. (ie. On those systems
6520 sin is moved from s_sin.c to sf_sin.c). There should eventually
6521 be use of a C extension (like gcc's alias attribute) so that the
6522 wrappers are not needed at all.
6524 * libc/sys/sysnec810/sbrk.c: Cast &end to char * to get around
6525 strict NEC V810 compiler.
6526 * libc/misc/dprintf.c (getnumber): Cast char * to unsigned char *
6529 Wed Nov 29 14:25:05 1995 J.T. Conklin <jtc@rtl.cygnus.com>
6531 * libc/stdlib/strtol.c (_strtol_r): Replaced with implementation
6532 from NetBSD C library.
6533 * libc/stdlib/strtoul.c (_strtoul_r): Likewise.
6535 * libc/stdlib/assert.c (__assert): Renamed from __assertfail
6536 and adapted from implementation I wrote for NetBSD C library.
6537 The difference is __assert doesn't take a format argument,
6538 so that there won't be multiple copies of the same string
6539 constant in the executable if assertions are enabled in
6540 more than one source module.
6541 * libc/include/assert.h (assert): Changed to call __assert.
6543 Tue Nov 28 16:54:26 1995 J.T. Conklin <jtc@rtl.cygnus.com>
6545 * libc/stdlib/strtod.c (_strtod_r): Changed to not assign to
6546 word1 on systems with 32 bit doubles.
6547 * libc/stdlib/qsort.c (qsort): Cast some void *'s to char *'s
6548 so that we can do arithmetic on them.
6549 * libc/misc/dprintf.c: Changed to support stdarg.h for ANSI
6552 Tue Nov 28 16:03:32 1995 Doug Evans <dje@canuck.cygnus.com>
6554 * libc/sys/arm/crt0.S: Zero bss.
6556 Fri Nov 24 16:09:23 1995 Doug Evans <dje@deneb.cygnus.com>
6558 * libc/include/unctrl.h: New file.
6559 * libc/misc/{Makefile.in,dprintf.c,unctrl.c,misc.tex}: New files.
6560 * configure.in (subdirs): Add libc/misc.
6561 * libc/Makefile.in (SUBDIRS): Add misc.
6562 (SUBLIBS): Add misc/lib.a.
6564 * libc/include/sys/reent.h (struct _reent): Make __sf last member.
6566 Wed Nov 22 19:49:47 1995 Doug Evans <dje@deneb.cygnus.com>
6568 * libc/stdio/vfprintf.c (__sbprintf): Init fake._data.
6569 (_vfprintf_r): Call CHECK_INIT.
6571 Tue Nov 14 02:52:12 1995 Doug Evans <dje@canuck.cygnus.com>
6573 * Makefile.in (MULTITOP): Delete.
6574 (MULTISRCTOP, MULTIBUILDTOP): Add.
6575 * configure.in: Delete call to cfg-ml-com.in. Call config-ml.in
6576 instead of cfg-ml-pos.in.
6578 Wed Nov 8 01:24:08 1995 James G. Smith <jsmith@pasanda.cygnus.co.uk>
6580 * libc/sys/vr4300/syscalls.c: Added clean version of sbrk().
6581 * libc/sys/vr4300/crt0.S: Cleaned up. Added check for FPU
6584 Thu Nov 2 22:25:06 1995 Michael Meissner <meissner@tiktok.cygnus.com>
6586 * libc/string/strtok.c: Include string.h to pick up strtok_r
6589 Wed Nov 1 18:54:11 1995 Jason Molenda (crash@phydeaux.cygnus.com)
6591 * libc/string/strtok.c: include <_ansi.h>.
6592 * libc/time/asctime_r.c: `reresult' -> `result'.
6594 Wed Nov 1 14:35:52 1995 J.T. Conklin <jtc@rtl.cygnus.com>
6596 * libc/time/{ctime.c, gmtime.c, lcltime.c}: Wrap functions
6597 in #ifndef _REENT_ONLY ... #endif conditional.
6599 * libc/include/string.h (_strtok_r): Remove declaration.
6600 * libc/include/time.h (_asctime_r): Remove declaration.
6601 * libc/string/strtok.c (_strtok_r): Removed.
6602 * libc/time/asctime.c (_asctime_r): Removed.
6604 * libc/string/Makefile.in (OFILES): Add new object.
6605 * libc/string/strtok_r.c: New file. strtok_r function as
6606 specified by POSIX.1c, adapted from strtok implementation
6607 from NetBSD C library.
6608 * libc/string/strtok.c (strtok): Reimplemented in terms of
6611 * libc/time/Makefile.in (OFILES): Add new objects.
6612 * libc/time/{asctime_r.c, ctime_r.c, gmtime_r.c, lcltime_r.c}:
6613 New files, reentrant time functions specified by POSIX.1c.
6614 * libc/time/{asctime.c, ctime.c, gmtime.c, lcltime.c}: Non-
6615 reentrant time functions re-written in terms of reentrant
6617 * libc/time/lcltime.c: Renamed from localtime.c
6619 * libc/include/time.h: Add prototypes for asctime_r, ctime_r,
6620 gmtime_r, and localtime_r.
6622 Sat Oct 28 14:34:31 1995 steve chamberlain <sac@slash.cygnus.com>
6624 * libc/sys/win32/crt0.c (mainCRTStartup): Call cygwin_crt0.
6625 * libc/include/sys/unistd.h (getlogin): Revert change of
6627 * libc/include/sys/signal.h (sigprocmask): Change prototype
6628 so it compiles with c++.
6630 Wed Oct 25 15:43:18 1995 Michael Meissner <meissner@cygnus.com>
6632 * libc/include/machine/setjmp.h (PowerPC _JBLEN): Consider it a
6633 PowerPC if __PPC__ is defined. Bump jump_buf length to 62 ints,
6634 to give some room in case we need to align the jmp_buf.
6636 * libc/machine/powerpc/setjmp.S (setjmp, longjmp): Rewrite to use
6637 the new ppc-asm.h include file the compiler provides to specify
6638 function prologue/epilogue. Eliminate saves of the xer and ctr
6639 registers, which are volatile. Before starting to save registers,
6640 align to 8 byte boundary.
6642 Mon Oct 23 11:20:51 1995 James G. Smith <jsmith@pasanda.cygnus.co.uk>
6644 * libc/sys/vr4300/syscalls.c: Added empty kill() function,
6645 referenced by standard libraries.
6647 Thu Oct 19 21:39:47 1995 Fred Fish <fnf@cygnus.com>
6649 * libc/unix/Makefile.in, libc/string/Makefile.in,
6650 libc/stdio/Makefile.in, libc/reent/Makefile.in,
6651 libc/posix/Makefile.in:
6652 Remove tabs from otherwise empty line. Confuses some
6653 older non-GNU versions of "make".
6655 Thu Oct 19 16:32:17 1995 steve chamberlain <sac@slash.cygnus.com>
6657 * libc/sys/unistd.h (getlogin): Returns const char *.
6659 Wed Oct 18 12:57:50 1995 steve chamberlain <sac@slash.cygnus.com>
6661 * libc/include/fcntl.h (O_BINARY, O_TEXT): New.
6662 * libc/include/errno.h: Moved into and include...
6663 * libc/include/sys/errno.h: New file.
6664 * libc/include/sys/wait.h: New file.
6665 * libc/stdio/rename.c (_rename_r): Use _rename system call if available.
6666 * libc/sys/win32/*: Moved out.
6667 * libc/sys/win32/crt0.c: Rewritten to cope with shared library.
6668 * configure.in (i[345]86-*-win32): HAVE_RENAME
6670 Wed Oct 18 09:58:27 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
6672 * libc/unix/sigset.c (sigemptyset, sigaddset): Prefix #undef to
6673 avoid macro expansion for these two names.
6675 Tue Oct 17 08:45:33 1995 Doug Evans <dje@canuck.cygnus.com>
6677 * libc/machine/h8500/psi.S: r6 renamed to fp.
6679 Sun Oct 15 12:58:10 1995 Michael Meissner <meissner@wogglebug.tiac.net>
6681 * configure.in (powerpc*): No longer need to define
6682 NO_LONGLONG_POINTERS to supress warnings.
6684 Sat Oct 14 12:55:08 1995 Jim Wilson <wilson@chestnut.cygnus.com>
6686 * libc/reent/reent.c (_reclaim_reent): Call cleanup indirectly
6687 through PTR instead of directly.
6689 * libc/sys/sh/crt0.S: Clean up formatting. Delete unused
6690 non-standard constructor support.
6692 Thu Oct 12 11:39:42 1995 J.T. Conklin <jtc@rtl.cygnus.com>
6694 * libc/stdlib/dtoa.c (_dtoa_r): Set result pointer to the
6695 address of the Bigint instead of the address of its _x field,
6696 as the size the result buffer was calculated accordingly.
6697 Fix from Jim Wilson <wilson@chestnut@cygnus.com>.
6699 * libc/stdlib/{div.c, ldiv.c}: Replaced with implementation
6700 from NetBSD C library. No longer special cases division by
6701 zero (which needs to be done by the application anyway), but
6702 it doesn't need to call abs() (or labs()) four times either.
6704 * libc/stdlib/qsort.c: Replaced with implementation from
6707 Tue Oct 10 14:01:10 1995 J.T. Conklin <jtc@rtl.cygnus.com>
6709 * libc/stdio/vfprintf.c: Replaced with implementation from
6710 NetBSD C library (which is derived from the 4.4BSD C library).
6711 * libc/stdio/cvt.c: Removed.
6712 * libc/stdio/Makefile: Updated.
6714 Tue Oct 10 12:15:23 1995 steve chamberlain <sac@slash.cygnus.com>
6716 * libc/sys/win32/syscalls.c (rename): New.
6717 * libc/sys/win32/include/winkernel.h (MoveFileExA): New.
6719 Fri Oct 6 12:18:43 1995 Jim Wilson <wilson@chestnut.cygnus.com>
6721 * libc/machine/sh/Makefile.in (setjmp.o): Depend on setjmp.S.
6722 * libc/machine/sh/setjmp.S: Rename from setjmp.s.
6724 * libc/sys/sh/Makefile.in (OFILES, all): Delete setjmp.o.
6725 (setjmp.o): Delete rule to build setjmp.o.
6726 * libc/sys/sh/setjmp.S: Delete file.
6728 Fri Oct 6 11:19:05 1995 J.T. Conklin <jtc@rtl.cygnus.com>
6730 * libc/stdlib/mprec.c (d2b): Added support for _DOUBLE_IS_32BITS.
6731 * libc/stdlib/mprec.h: Fixed constants used for IEEE single float
6732 format. Added #defines to map d2b, i2b, low0bits, lshift, mult,
6733 pow5mult and s2b to identifiers with leading underscores.
6734 * libc/stdlib/Makefile.in: Add mprec.h as a dependency to dtoa.o,
6735 ecvtbuf.o, mprec.o and strtod.o. Sort dependencies.
6737 Thu Oct 5 17:27:30 1995 steve chamberlain <sac@slash.cygnus.com>
6739 * libc/sys/posix/popen.c (sys/types.h): Include.
6741 Thu Oct 5 16:33:01 1995 Doug Evans <dje@canuck.cygnus.com>
6743 * libc/sys/win32/syscalls.h (fhandler): New struct.
6744 (__lookup_fhandler, __lookup_fhandler_hook): Declare.
6745 (__fhandler_normal): Declare.
6746 (hinfo): New member op_handlers.
6747 * libc/sys/win32/syscalls.c (__read): Don't validate fd.
6748 (__write): Likewise.
6749 (_read, _write, _open, _close, _lseek): Validate fd here.
6750 Move file type specific stuff to foo_normal.
6751 (read_normal, write_normal, open_normal, close_normal, lseek_normal):
6753 (__lookup_fhandler): New function.
6754 (__lookup_fhandler_hook, __fhandler_normal): New variables.
6756 From anders.blomdell@control.lth.se (Anders Blomdell)
6757 * libc/sys/win32/crt0.c (vfork_init): Unset __FD_TABLE__.
6758 Don't touch standard handles.
6759 * libc/sys/win32/spawn.c (_spawn): Use STARTF_USESTDHANDLES.
6760 (_execve): Only create __FD_TABLE__ if necessary.
6761 * libc/sys/win32/include/winkernel.h (STARTF_*): Define.
6763 Thu Oct 5 14:25:14 1995 steve chamberlain <sac@slash.cygnus.com>
6765 * libc/sys/win32/sys/termios.h (FLUSHO): New.
6766 * libc/sys/win32/include/win*.h: Moved a load of prototypes around.
6767 * libc/sys/win32/pipe.c (_fctnl): Ignore F_SETFL without errors.
6768 * libc/sys/win32/exception.c (ehandler3): set strace when a signal
6769 without a handler is received.
6770 * libc/sys/win32/Makefile.in: Remove --nodelete.
6771 * libc/sys/win32/resouce.c (gettimeofday): New.
6772 * libc/sys/win32/syscalls.c (path_to_real_path): New.
6773 * libc/sys/win32/syscalls.h (include/wincon.h): Don't include.
6775 Wed Oct 4 13:10:35 1995 Doug Evans <dje@canuck.cygnus.com>
6777 * libc/sys/win32/dirsearch.c (opendir): stat real path name.
6778 Don't append "/*" to search pattern if trailing '/' already there,
6780 * libc/sys/win32/spawn.c (_spawn): CreateProcess doesn't seem to
6781 like /'s, convert them to \'s. Handle //<drive>/ path names.
6782 Add space for quoted \'s in arg string. Print translated prog name
6783 and original prog name.
6784 (_execve): Handle parent doing exec a teensy bit better.
6785 * libc/sys/win32/syscalls.h (__path_to_real_path): Update prototype.
6786 * libc/sys/win32/syscalls.c (__path_to_real_path): Don't assume
6787 path needs conversion, handle both cases. Delete `const' from result.
6788 (hash_path_name): New function.
6790 (_stat): Likewise. Fill in more fields for directories.
6791 * libc/sys/win32/wait.c (_wait): Explicitly pass -1 to waitpid.
6792 (wait_for_any): Fix trace message.
6793 (waitpid): Explicitly test for intpid == 0.
6795 From anders.blomdell@control.lth.se (Anders Blomdell)
6796 * libc/sys/win32/spawn.c (__vfork_get_empty_entry): zero fill result
6799 Sat Sep 30 15:00:15 1995 Jason Molenda (crash@phyeaux.cygnus.com)
6801 * libc/sys/win32/spawn.c (_spawn): Make quoting rules more
6804 Sat Sep 30 10:25:57 1995 Jason Molenda (crash@phydeaux.cygnus.com)
6806 * libc/include/_ansi.h: set _HAVE_STDC if __STDC__ is defined
6807 at all, not just == 1.
6808 * libm/math/wf_acos.c (acosf): check for _HAVE_STDC, not __STDC__.
6810 Sat Sep 30 04:30:09 1995 Jason Molenda (crash@phydeaux.cygnus.com)
6812 * libc/sys/win32/include/winbase.h: include <wintypes.h> and <winnt.h>
6813 * libc/sys/win32/include/wintypes.h: include <winnt.h>
6814 * libc/sys/win32/include/winnt.h: avoid multiple inclusion of this
6817 Fri Sep 29 01:49:17 1995 steve chamberlain <sac@slash.cygnus.com>
6819 * libc/sys/syscalls.c (getcwd): Fix off by one error.
6821 * libc/sys/signal.c (sleep): Fill it in.
6822 * libc/sys/termios.c (tcflush): Use PurgeComm
6823 (tcsetattr): Set some more of the bits.
6824 * libc/sys/include/winkernel.h: Add PurgeComm and Sleep.
6826 Fri Sep 29 04:33:53 1995 Doug Evans <dje@deneb.cygnus.com>
6828 * libc/sys/arm/crt0.S (fp): Initialize to 0.
6829 Conditionally include .idata$3 stuff ifdef __pe__.
6831 Fri Sep 29 01:49:17 1995 steve chamberlain <sac@slash.cygnus.com>
6833 * libc/sys/win32/crt0.c (hmap_init): Call __init_hinfo.
6834 * libc/sys/win32/pipe.c (pipe): Ditto.
6835 * libc/sys/win32/syscalls.c (__read): Use new vtime and vmin fields.
6836 * libc/sys/win32/syscalls.h (hinfo): vtime, vmin are new.
6837 * libc/sys/win32/termios.c (tcsetattr): Init new fields.
6838 (tcgetattr): Contents are new.
6839 * libc/sys/win32/include/winkernel.h (DCB): New.
6840 (GetCommState, SetCommState): New.
6842 Thu Sep 28 16:29:09 1995 Doug Evans <dje@deneb.cygnus.com>
6844 * libc/sys/arm/crt0.S (_start): Define.
6846 Thu Sep 28 12:26:45 1995 steve chamberlain <sac@slash.cygnus.com>
6848 * libc/sys/arm/crt0.S: Move stack to top of RAM on PIE board.
6849 * libc/sys/arm/syscalls.c (_read, _write): Use the SWI properly.
6851 * libc/sys/win32/sysconf.c: New
6852 * libc/sys/win32/sys/winadvapi.h: New
6853 * libc/sys/win32/syscalls.h (hinfo): Added timeout_len, w_binary, r_binary.
6854 * libc/sys/win32/crt0.c (hmap_init): Initialize new fields.
6855 * libc/sys/win32/pipe.c (pipe): Ditto.
6856 * libc/sys/win32/signal.c (_raise): New.
6857 (_kill): Moved from spawn.c
6858 * libc/sys/win32/spawn.c (kill): Moved to signal.c
6859 * libc/sys/win32/syscalls.c (__read): Use new fields.
6861 * libc/sys/win32/termios.c (tcflush, tcsetattr, tcgetattr): Fill in.
6862 * libc/sys/win32/exceptions.c (__stack_trace): Keep going for longer.
6863 * libc/include/sys/unistd.h (rmdir): Takes const path.
6864 * libc/include/sys/stat.h (mkdir): Takes const path.
6865 * libc/include/sys/signal.h (SIGTTOU, SIGTTIN): New for win32.
6867 Thu Sep 28 10:11:27 1995 Doug Evans <dje@canuck.cygnus.com>
6869 * libc/sys/win32/spawn.c (_spawn): Fix quoting.
6871 Add support for specifying paths as //<drive>/foo/bar.
6872 * libc/sys/win32/syscalls.h (__path_needs_conversion_p): Declare.
6873 (__path_to_real_path): Declare.
6874 (PATH_TO_REAL_PATH): New macro.
6875 * libc/sys/win32/syscalls.c (__win32_pid_to_posix_pid): Minor cleanup.
6876 (__path_needs_conversion_p, __path_to_real_path): New functions.
6877 (_open): Fix test for error return from CreateFileA.
6878 Handle new path syntax.
6879 (_link, mkdir, rmdir, getcwd, chdir, stat): Handle new path syntax.
6880 * libc/sys/win32/dirsearch.c (opendir): Likewise.
6882 Wed Sep 27 16:36:46 1995 steve chamberlain <sac@slash.cygnus.com>
6884 * libc/sys/win32/include/*.h: Reorganized
6885 * libc/sys/win32/include/WINREADME: New.
6886 * libc/sys/win32/Makefile.in (DLLS): Build version.a.
6887 * libc/sys/win32/*.c: Fix for new include scheme.
6888 * libc/sys/win32/crt0.c (__this_uinfo_buf, __this_uinfo): New.
6889 * libc/sys/win32/getlogin.c (getlogin): Use uinfo.
6890 * libc/sys/win32/passwd.c (*): Fix.
6891 * libc/sys/win32/syscalls.c (get[e|][g|u]id): Use passwd info.
6892 (_stat): Get directory owner and permissions right.
6893 * libc/sys/win32/syscalls.h (uinfo): New.
6894 * libc/sys/win32/version.def: Remove leading underscores.
6896 Tue Sep 26 18:18:47 1995 Jason Molenda (crash@phydeaux.cygnus.com)
6898 * libc/sys/win32/key.c: include "include/wincon.h".
6900 Tue Sep 26 07:21:48 1995 steve chamberlain <sac@slash.cygnus.com>
6902 * libc/sys/win32/{key, stubs}.c: New.
6903 * libc/sys/win32/Makefile: Adjust to cope.
6904 * libc/sys/win32/crt0.c (vfork_init_first): Cope with -ve pids.
6905 (environ_init): Change env names to upper case.
6906 * libc/sys/win32/dirsearch.c (readdir): Don't fill in inode number.
6907 * libc/sys/win32/passwd.c (*): Fill in the functions.
6908 * libc/sys/win32/pipe.c (_fcntl): F_GETFL returns O_RDWR.
6909 * libc/sys/win32/spawn.c (_spawn): Cope with -ve pids.
6910 * libc/sys/win32/syscalls.c (__win32_pid_to_posix_pid): New function.
6911 (_open): Initialze hmap->execable_p too.
6912 * libc/sys/win32/syscalls.c (getuid, getgid, geteuid, getegid): Return from macros.
6913 (_fstat): Fill in permissions.
6914 * libc/sys/win32/syscalls.h (hinfo): Add execable_p.
6916 Fri Sep 22 13:47:27 1995 Doug Evans <dje@canuck.cygnus.com>
6918 * configure.in (cfg-ml-com.in invocation): Use ${with_multilib_top}
6920 (cfg-ml-pos.in invocation): Likewise.
6922 Fri Sep 22 11:43:44 1995 J.T. Conklin <jtc@rtl.cygnus.com>
6924 * Makefile.in (MATHOBJS_IN_LIBC): Added s_isinf.o, sf_isinf.o,
6925 s_isnan.o and sf_isnan.o.
6927 Wed Sep 20 14:50:19 1995 Ian Lance Taylor <ian@cygnus.com>
6929 * All Makefile.in files: added maintainer-clean target as a
6930 synonym for realclean.
6932 Wed Sep 20 11:02:50 1995 Jeff Law (law@snake.cs.utah.edu)
6934 * libc/include/machine/setjmp.h: Add hppa support.
6935 * libc/machine/hppa/setjmp.S: New file with setjmp/longjmp
6937 * libc/machine/hppa/Makefile.in: Related changes.
6939 Tue Sep 19 12:09:01 1995 J.T. Conklin <jtc@blues.cygnus.com>
6941 * configure.in (machine_dir): Don't set for v810-*-*.
6943 Fri Sep 15 20:22:08 1995 Jason Molenda (crash@phydeaux.cygnus.com)
6945 * libc/sys/win32/crt0.c (passover): Change to handle MKS quoting
6946 conventions correctly.
6948 Thu Sep 14 13:37:22 1995 J.T. Conklin <jtc@blues.cygnus.com>
6950 * libc/stdio/puts.c: Update documentation of return value to match
6953 Thu Sep 14 01:52:37 1995 Doug Evans <dje@canuck.cygnus.com>
6955 Fix file descriptor inheritance.
6956 * libc/sys/win32/syscalls.h (CHILD_P): Define again.
6958 * libc/sys/win32/spawn.c (vfork0): Only create inheritable handle if
6959 close-on-exec flag not set. Initialize child's entire fd table.
6960 * libc/sys/win32/syscalls.c (_open): Only create inheritable handle if
6962 * libc/sys/win32/pipe.c (pipe): Only create new handle as inheritable
6963 if CHILD_P. Initialize entire hmap entry.
6964 (dup): Only create new handle as inheritable if CHILD_P.
6965 (dup2): Likewise. Properly initialize hmap entry.
6967 * libc/sys/win32/spawn.c (_execve): Don't pass _P_SEARCH_PATH to
6969 (_exit): Use CHILD_P.
6970 * libc/sys/win32/syscalls.c (_fstat): Fix call to memset.
6973 Mon Sep 11 23:09:39 1995 Jason Molenda (crash@phydeaux.cygnus.com)
6975 * libc/sys/win32/crt0.c (passover): fix up the state table.
6976 * libc/posix/popen.c: Added.
6977 * libc/posix/Makefile.in: compile popen.c.
6979 Mon Sep 11 11:43:38 1995 J.T. Conklin <jtc@cygnus.com>
6981 * libc/include/machine/ieeefp.h: On the h8/300, h8/300h and
6982 h8/500 define _DOUBLE_IS_32BITS.
6984 Sat Sep 9 17:55:54 1995 Doug Evans <dje@canuck.cygnus.com>
6986 Get vfork/exec/spawn/cwait/wait working again.
6987 * libc/sys/win32/syscalls.h (VFORK_NEWBORN_PSEUDO_PID): Define.
6988 (procinfo): New member vfork_level.
6989 * libc/sys/win32/crt0.c (__vfork_next_pid): Delete.
6990 (vfork_init_first): Use GetCurrentProcessId to get pid.
6991 Initialize vfork_level.
6992 (vfork_init): Delete __PID__.
6993 (environ_init): New function. Undo patch of Aug 19, Posix says
6994 environment variables are case sensitive.
6995 (mainCRTStartup): Call it.
6996 * libc/sys/win32/spawn.c (__vfork_next_pid): Delete.
6997 (my_longjump: Make static.
6998 (_spawn): New argument `h'. Delete setting of __PID__.
6999 Delete local `idx'. Look for chars that need quotes, rather than
7000 ones that don't. Set handle of created process in `h'.
7001 Result is process id if created task.
7002 (allocate_spawn_entry): New function.
7003 (spawnvp, spawnv): Call it. Store handle and pid in procinfo entry.
7004 (_execve): Set __FD_TABLE__ before spawning child.
7005 Scan our fd table when passing fds, not our parent's.
7006 Store handle and pid in procinfo entry.
7007 (vfork0): Ensure strace message always printed.
7008 Set child pid to VFORK_NEWBORN_PSEUDO_PID.
7009 (vfork): Don't clobber result of vfork0.
7010 * libc/sys/win32/wait.c (cwait): Fix non-error result (is pid).
7011 (wait_for_any): Ignore processes in state FORK_STATE_VFORK_0.
7013 * libc/sys/win32/syscalls.h (procinfo): New members `handle_valid_p'
7015 * libc/sys/win32/spawn.c (allocate_spawn_entry): Initialize them.
7016 (vfork0): Likewise. Distinguish children, grandchildren, etc. by
7017 adding vfork level to pseudo-pid.
7018 (vfork1): If not root, set state back to FORK_STATE_VFORK_0.
7019 (spawnvp, spawnv, _execve): Set handle_valid_p if success.
7020 (_exit): If child, set exit code.
7021 (__vfork_record_death): Only close process handle if valid.
7022 * libc/sys/win32/wait.c (wait_for_single): Watch for children that
7024 (wait_for_any): Likewise. Start scan after root entry.
7026 Fri Sep 8 18:48:02 1995 Jason Molenda (crash@phydeaux.cygnus.com)
7028 * libc/include/sys/types.h (off_t): off_t back to 32 bits.
7029 * libc/include/sys/_types.h (_off_t): _off_t back to 32 bits.
7030 * libc/sys/win32/syscalls.c (_fstat): st_size is lower 32-bits
7031 of actual file length.
7033 * libc/sys/win32/sys/wait.h: include <sys/types.h>.
7034 * libc/include/paths.h: _PATH_BSHELL added.
7035 * libc/include/sys/unistd.h: define STDIN_FILENO, STDOUT_FILENO,
7038 Thu Sep 7 21:02:22 1995 Jason Molenda (crash@phydeaux.cygnus.com)
7040 * libc/include/ar.h: Added.
7041 * libc/include/sys/types.h: ino_t goes back to 32-bits.
7042 * libc/sys/win32/syscalls.h (hinfo): added .namehash field.
7043 * libc/sys/win32/syscalls.c (_open): compute .namehash based
7045 (_fstat): use .namehash for inode number of the fd.
7047 Thu Sep 7 12:57:19 1995 steve chamberlain <sac@slash.cygnus.com>
7049 * libc/sys/win32/{console,ioctl,pipe,spawn,syscalls,wait}.? (*):
7050 Change hinfo to __this_procinfo.
7051 * libc/sys/win32/crt0.c: Remove procinfo_list.
7053 Wed Sep 6 18:38:26 1995 Jason Molenda (crash@phydeaux.cygnus.com)
7055 * libc/include/sys/types.h (ino_t): Define ino_t correctly for
7058 Wed Sep 6 18:09:29 1995 Jason Molenda (crash@phydeaux.cygnus.com)
7060 * libc/sys/win32/include/grp.h: Removed.
7061 * libc/sys/include/grp.h: Added.
7062 * libc/sys/win32/grp.c: Include <grp.h>.
7064 Wed Sep 6 16:52:48 1995 steve chamberlain <sac@slash.cygnus.com>
7066 * libc/include/sys/signal.h (__need_MAX_SIGNALS): Removed.
7067 (sigset_t, sigaction, SIG_SETMASK, SIG_BLOCK, SIG_UNBLOCK):
7068 Defined for all but strict ANSI.
7069 * libc/include/sys/reent.h (__need_MAX_SIGNALS): Removed.
7070 * libc/include/machine/setjmp.h: Get win32 _JBLEN right.
7071 * libc/signal/signal.c (_signal_r): Changed from using
7072 _MAX_SIGNALS to NSIG.
7073 * libc/sys/win32/crt0.c (__current_pid, __parent_hmap, __child_hmap,
7075 (__strace, __vfork_next_pid): New.
7076 (__exe_suffix): Default to 1.
7077 (passover, table): Understand quoted arguments.
7078 (vfork_init_first): New.
7079 (vfork_init): Initialize new process structure.
7080 (mainCRTStartup): Pass environ to main.
7081 * exceptions.c (__sig_mask): New
7082 (ehandler3): Ignore signals in mask.
7083 (really_exit): Remove CHILD_P test.
7084 * pipe.c (pipe, dup, dup2): Use new process and file structure.
7085 * resource.c (getrusage): Ditto.
7086 * signal.c (sigprocmask): New.
7087 * spawn.c (*): Rewritten.
7088 * syscalls.c (*): Use new process and file structure.
7089 (find_unused_handle): New.
7090 * syscalls.h (MAX_HANDLES): Deleted.
7091 (hinfo): Removed child_created_p.
7092 (MAX_CHILDREN): Deleted.
7093 (vfork_jmp_info, procinfo): New.
7094 * wait.c (*): Mostly new.
7095 * sys/strace.h (_STRACE_PARANOID): New.
7096 * sys/param.h: New file.
7098 Wed Sep 6 17:03:53 1995 Jason Molenda (crash@phydeaux.cygnus.com)
7100 * libc/include/sys/stat.h: add S_BLKSIZE.
7101 * libc/include/sys/_types.h: _off_t is a 64-bit type under win32.
7102 * libc/include/sys/types.h: define off_t and ino_t to be 64 bit
7104 (mode_t): add a #else to avoid multiple definitons.
7106 * libc/sys/win32/Makefile.in: add grp.c.
7107 * libc/sys/win32/grp.c: include grp.h correctly.
7108 * libc/sys/win32/syscalls.c (_fstat): set almost all of the fields
7109 of the st structure with real information.
7110 * libc/sys/win32 (dirent): d_ino is of type ino_t.
7112 Wed Sep 6 10:41:34 1995 Doug Evans <dje@canuck.cygnus.com>
7114 * libc/include/sys/types.h (mode_t): Correct for svr4 sparc's
7115 and (maybe) sparc64.
7116 (nlink_t): Provide typedef.
7118 Tue Sep 5 18:46:05 1995 Jason Molenda (crash@phydeaux.cygnus.com)
7120 * libc/sys/win32/grp.c: New file.
7121 * libc/sys/win32/include/grp.h: New file.
7123 Tue Sep 5 13:47:27 1995 J.T. Conklin <jtc@rtl.cygnus.com>
7125 * libc/include/machine/ieeefp.h: Added whitespace to make this
7126 file easier to maintain.
7127 On the sh, define either __IEEE_BIG_ENDIAN or __IEEE_LITTLE_ENDIAN
7128 depending on the value of __LITTLE_ENDIAN__.
7129 On the sh3e, define _DOUBLE_IS_32BITS.
7131 Fri Sep 1 15:35:18 1995 James G. Smith <jsmith@beauty.cygnus.com>
7133 * libc/sys/vr4300/syscalls.c: Added missing support
7134 routines. _raise() and getpid().
7136 Fri Sep 1 14:12:48 1995 James G. Smith <jsmith@rtl.cygnus.com>
7138 * configure.in (mips*vr4300*-*-elf): Fixed silly mistake
7140 Fri Sep 1 08:42:11 1995 James G. Smith <jsmith@beauty.cygnus.com>
7142 * configure.in (mips*vr4300*-idt-*) Add support for RISQ monitor
7143 and VR4300 processor.
7144 * libc/sys/vr4300: Add directory.
7145 * libc/sys/vr4300/{Makefile.in, crt0.S, syscalls.c}: Add SIM
7146 monitor run-time support.
7148 Thu Aug 31 09:16:52 1995 J.T. Conklin <jtc@rtl.cygnus.com>
7150 * libc/stdlib/Makefile.in (CHEWOUT_FILES): Removed atol.def.
7151 * libc/stdlib/stdlib.tex: Don't include atol.def.
7153 Wed Aug 30 20:38:28 1995 Jason Molenda (crash@phydeaux.cygnus.com)
7155 * libc/sys/win32/uname.c (uname): hardcode processor as `i386'.
7157 Wed Aug 30 10:48:08 1995 steve chamberlain <sac@slash.cygnus.com>
7159 * libc/ctype/Makefile.in: Fill in _to* dependencies.
7161 Tue Aug 29 17:14:29 1995 steve chamberlain <sac@slash.cygnus.com>
7163 * libc/sys/win32/{dirsearch.c,sys/dirent.h}: Fix namespace problems.
7164 * libc/sys/win32/sys/dirent.h (struct dirent): Added d_ino.
7165 * libc/sys/win32/strace.c (__sys_printf): Increase size of buffer.
7166 * libc/sys/win32/smallprint.c (__small_vsprintf): Remove debug.
7167 * libc/sys/win32/dirsearch.c (readdir): Set d_ino.
7169 Tue Aug 29 19:00:09 1995 Jason Molenda (crash@phydeaux.cygnus.com)
7171 * libc/stdlib/atol.c (atol): DEFUN -> _DEFUN.
7173 Tue Aug 29 16:08:09 1995 J.T. Conklin <jtc@rtl.cygnus.com>
7175 * libc/stdlib/Makefile.in (OFILES): Added atoff.o and atol.o.
7176 * libc/stdlib/atoff.c: New file.
7177 * libc/stdlib/atof.c (atoff): Moved to atoff.c.
7178 * libc/stdlib/atoi.c (atol): Removed.
7179 * libc/stdlib/atol.c: Removed duplicate documentation.
7181 * libc/include/ctype.h (_tolower, _toupper): Moved inside
7182 #ifndef _STRICT_ANSI conditional.
7183 * libc/ctype/Makefile.in (OFILES): Added _tolower.o and _toupper.o
7184 * libc/ctype/_tolower.c: New file.
7185 * libc/ctype/_toupper.c: New file.
7186 * libc/ctype/tolower.c (_tolower): Moved to _tolower.c.
7187 * libc/ctype/toupper.c (_toupper): Moved to _toupper.c.
7188 * libc/ctype/toascii.c (_toascii): Removed.
7190 Tue Aug 29 12:17:32 1995 Doug Evans <dje@canuck.cygnus.com>
7192 * libc/sys/sparc64/sys/types.h: Deleted.
7194 Mon Aug 28 22:06:08 1995 Jason Molenda (crash@phydeaux.cygnus.com)
7196 * libc/sys/win32/uname.c (uname): change `Windows/NT' to `Windows_NT'
7197 and recognize Windows_95 systems.
7199 Mon Aug 28 19:50:54 1995 Jason Molenda (crash@phydeaux.cygnus.com)
7201 * libc/sys/win32/crt0.c (vfork_init, hmap_init): standard I/O fds
7202 and passed fds should be opened in text mode.
7204 Mon Aug 28 18:51:22 1995 Jason Molenda (crash@phydeaux.cygnus.com)
7206 * libc/sys/win32/crt0.c (vfork_init): mark passed fds as used
7207 in __hmap, set to binary mode by default.
7209 Tue Aug 22 14:12:37 1995 J.T. Conklin <jtc@rtl.cygnus.com>
7211 * libc/sys/sh/syscalls.c: Updated all functions to call __trap34.
7212 * libc/sys/sh/trap.S (__trap34): Renamed from __trap3. Use trap
7215 Sat Aug 19 18:25:37 1995 steve chamberlain <sac@slash.cygnus.com>
7217 * Makefile.in (install): Install all libraries found in the
7218 top level. If there's a sys/<type>/include directory,
7219 install those headers into include.
7221 * libc/sys/win32/kernel.def351: Delete
7222 * libc/sys/win32/{comctl32.def, comdlg32.def, ctl3d32.def,
7223 glaux.def, glu32.def, largeint.def, libc.def, libcmt.def,
7224 lz32.def, mgmtapi.def, mpr.def, msacm32.def, msvcrt.def,
7225 nddeapi.def, netapi32.def, odbc32.def, odbccp32.def, oldnames.def,
7226 ole32.def, oleaut32.def, opengl32.def, rasapi32.def, rpcndr.def,
7227 rpcns4.def, rpcrt4.def, scrnsave.def, shell32.def, snmp.def,
7228 uuid.def, vdmdbg.def, version.def, vfw32.def, win32spl.def,
7229 winmm.def, winspool.def, winstrm.def, wsock32.def}: New.
7231 * libc/sys/win32/Makefile.in: Update for new files and new dlltool options.
7232 * libc/sys/win32/crt0.c: Force all env names to upper case.
7233 * libc/sys/win32/sys/win*.h -> libc/sys/win32/include
7234 * libc/sys/win32/*.c: Headers have moved.
7235 * libs/sys/win32/*.[ch]: Test for open_p rather than BAD_HANDLE,
7236 __vfork_child_idx is now __vfork_child_ptr.
7238 * posix/execvp (execvp): Don't crash if no PATH envname.
7240 Fri Aug 18 12:22:59 1995 J.T. Conklin <jtc@rtl.cygnus.com>
7242 * libc/include/sys/reent.h (_Bigint): Removed _reclaim field.
7243 * libc/reent/reent.c (_reclaim_reent): Free Bigint's by going
7244 through the _freelist instead of through the _reclaim list.
7245 * libc/stdlib/mprec.c (_Balloc): Don't put new node on _reclaim list.
7246 * libc/stdlib/mprec.c (_Bcopy): Make like version in master dtoa.c
7249 Thu Aug 17 11:03:27 1995 J.T. Conklin <jtc@rtl.cygnus.com>
7251 * libc/machine/h8500/setjmp.S: New file.
7252 * libc/include/machine/setjmp.h: Updated for H8/500.
7254 Wed Aug 16 16:19:11 1995 steve chamberlain <sac@slash.cygnus.com>
7256 * libc/sys/win32/syscalls.c (_open): More stracing.
7257 (_stat): Open the file in O_BINARY.
7259 Wed Aug 16 15:49:01 1995 J.T. Conklin <jtc@rtl.cygnus.com>
7261 * libc/machine/h8300/setjmp.S: New file.
7262 * libc/include/machine/setjmp.h: Updated for H8/300 and H8/300H.
7264 Tue Aug 15 10:31:09 1995 Doug Evans <dje@canuck.cygnus.com>
7266 * libc/sys/win32/crt0.c (__exe_suffix): New global.
7267 (mainCRTStartup): Set __exe_suffix from LIBC_EXE_SUFFIX.
7268 * libc/sys/win32/spawn.c (_spawn): Add .exe suffix based on
7269 __exe_suffix. Free fd_tab after setting env variable.
7270 (spawnv,_execve): Update.
7271 * libc/sys/win32/syscalls.h (__exe_suffix): Declare.
7272 * libc/sys/win32/smallprint.c (puts,putn): New (static) functions.
7273 (__small_vfprintf): New function.
7274 * libc/sys/win32/strace.c (__sys_printf): Call __small_vfprintf.
7275 * libc/sys/win32/wait.c (cwait): Validate argument.
7277 * libc/sys/win32/syscalls.c (queue_file_deletion): Add trace message.
7278 (process_deletion_queue): Likewise.
7280 * libc/sys/win32/Makefile.in (lib.a): Don't call $(RANLIB).
7282 Mon Aug 14 10:14:10 1995 steve chamberlain <sac@slash.cygnus.com>
7284 * libc/sys/win32: Copyrights and gratuitous indenting.
7286 Mon Aug 14 01:32:58 1995 Doug Evans <dje@canuck.cygnus.com>
7288 * libc/sys/win32/syscalls.c (queue_file_deletion): Finish.
7289 (process_deletion_queue): Likewise.
7290 (__close_all_files): New function.
7291 (_close): Only queue file deletion if really a file.
7292 * libc/sys/win32/spawn.c (_spawn): Only ensure .exe suffix if
7294 (_exit): Call __close_all_files.
7296 * libc/stdlib/system.c: #include <errno.h>.
7297 (_system_r): Fix results in -DNO_EXEC case.
7299 * libc/sys/win32/sys/dirent.h (DIR): New member __d_dirname.
7300 Reorganize structure.
7301 * libc/sys/win32/dirsearch.c (opendir): Use stat to determine
7302 if argument is valid. Save directory name in DIR. malloc space
7303 for dirent struct separately.
7304 * libc/sys/win32/syscalls.c (stat): Fix test for directory.
7306 * libc/include/errno.h (ENAMETOOLONG): Define.
7307 * libc/string/strerror.c (strerror): Reword ENFILE.
7308 Add ENOSYS, ENMFILE, ENOTEMPTY, ENAMETOOLONG.
7310 Sun Aug 13 22:42:25 1995 Doug Evans <dje@canuck.cygnus.com>
7312 * libc/sys/win32/crt0.c (__progname): New global.
7313 (mainCRTStartup): Support strace=bitmask,filename.
7314 * libc/sys/win32/dirsearch.c (all fns): Add trace messages.
7315 * libc/sys/win32/syscalls.c (_write): Print parent trace message
7317 (getcwd): Handle len too small. Convert '\\' to '/'.
7318 * libc/sys/win32/sys/fcntl.h (O_RDWR): = O_RDONLY|O_WRONLY.
7319 Add prototypes for open, creat, fcntl.
7320 (O_APPEND): Change value to conform to Microsoft's value.
7321 * libc/sys/win32/sys/strace.h (_STRACE): Protect in do/while.
7323 * libc/stdlib/getopt.c: New file.
7324 * libc/stdlib/Makefile.in: Build it.
7326 Sat Aug 12 12:17:14 1995 Doug Evans <dje@canuck.cygnus.com>
7328 * libc/posix/execvp.c (execvp): Watch for DOS drives ifdef _WIN32.
7329 Fix scanning of $PATH.
7330 * libc/posix/exec*.c: Call _execve, not execve.
7331 * libc/posix/execve.c: New file.
7332 * libc/posix/Makefile.in (OFILES): Add execve.o.
7334 * libc/sys/win32/sys/strace.h (_STRACE_ALL, _STRACE_UHOH,
7335 _STRACE_STARTUP, _STRACE_SYSCALL): More bit masks of things to trace.
7336 (_STRACE): If level==0, always print. Handle new bit mask scheme.
7337 * libc/sys/win32/crt0.c: Update _STRACE calls.
7338 * libc/sys/win32/{pipe.c,resource.c,spawn.c,syscalls.c,wait.c}: Ditto.
7340 * libc/sys/win32/smallprint.c (rn): Fix digit list.
7342 * libc/sys/win32/syscalls.c (__really_exit): Move from here,
7343 * libc/sys/win32/exceptions.c (really_exit): to here. Avoid recursion.
7344 * libc/sys/win32/spawn.c (spawnvp): Pass `prog' as image name.
7345 Print __seterrno trace message first.
7346 (_execve): Renamed from execve.
7347 (vfork): Update __strace usage.
7348 (__vfork_child_pid): Deleted.
7349 (__vfork_children, __vfork_child_idx): New globals.
7350 (_spawnvp): New function.
7351 (spawnvp, spawnv, _execve): Call _spawnvp.
7352 (init_child): Record child in __vfork_children.
7353 (__vfork_get_entry, __vfork_record_death): New functions.
7354 * libc/sys/win32/crt0.c (mainCRTStartup): Initialize __vfork_children.
7355 * libc/sys/win32/kernel32.def (WaitForMultipleObjects): Define.
7356 * libc/sys/win32/syscalls.h (CHILD_P): New macro. All files updated.
7357 (MAX_CHILDREN, CHILD_INTERIM_PID): Define.
7358 (children): New typedef.
7359 (__vfork_children,__vfork_child_idx): Declare.
7360 (__vfork_get_entry,__vfork_record_death): Declare.
7361 * libc/sys/win32/wait.c (wait_for_single,wait_for_any): New functions.
7362 (waitpid): Handle pid == -1.
7363 * libc/sys/win32/sys/wintypes.h (WaitForMultipleObjects): Declare.
7364 * configure.in (i386-win32): Add -DNO_FORK.
7365 * libc/syscalls/sysfork.c (fork): Don't define for NO_FORK.
7366 * libc/reent/execr.c (_fork_r): Likewise.
7367 * libc/stdlib/system.c (do_system): New function.
7368 If WIN32, try to get shell path from $SH_PATH, use vfork.
7369 (_system_r): Return 1 for (s == NULL) if WIN32 or unix,
7372 Sat Aug 12 11:08:00 1995 steve chamberlain <sac@slash.cygnus.com>
7374 * libc/stdlib/{mallocr.c, mstats.c}: Move mstats from mallocr to mstats.c.
7375 * libc/sys/win32/fcntl.h: Don't include self.
7376 * libc/sys/win32/sys/strace.h (_STRACE_WM, _strace_wm): New.
7377 * libc/sys/win32/sys/winbase.h: (GetUserName) New.
7378 * libc/sys/win32/sys/wincon.h (HANDLER_ROUTINE): Define correctly.
7379 * libc/sys/win32/sys/wintypes.h (GetFileType, GetCurrentProcess, CloseHandle,
7380 SetFilePointer, CreateFileA, GetFileInformationByHandle, GetStdHandle):
7382 * libc/sys/win32/strace.c: New file.
7383 * libc/sys/win32/smallprint.c: New file.
7384 * libc/sys/win32/crt0.c (func): Delete.
7385 (mainCRTStartup): Fix alloca usage. Set handles explictly.
7386 * libc/sys/win32/dirsearch.c: Clean up handle usage, fix calls to __seterrno.
7387 * libc/sys/win32/exceptions.c: Lint.
7388 * libc/sys/win32/{ioctl.c, pipe.c, resource.c, spawn.c, cwait.c, syscalls.c}:
7389 Clean up handle usage.
7390 * libc/sys/win32/syscalls.c (__sys_printf): Moved into strace.c
7391 (open.c): Default file type is text.
7392 * libc/sys/win32/uname.c (uname): Use __small_sprintf.
7393 * libc/sys/win32/advapi32.def: New
7395 Fri Aug 11 17:11:52 1995 Doug Evans <dje@canuck.cygnus.com>
7397 * configure.in (posix_dir, libc_posix_lib): New variables.
7398 Define LIBC_POSIX_LIB in makefile to be $libc_posix_lib.
7399 (i[345]86-*-win32): Define posix_dir.
7400 Delete -DNO_EXEC. Define -DHAVE_OPENDIR.
7401 (if unix_dir): Fix typo.
7402 * libc/posix/{Makefile.in,closedir,opendir,readdir,rewinddir,
7403 scandir,seekdir,telldir}: New files.
7404 * libc/posix/{execl.c,execle.c,execlp.c,execv.c,execvp.c}: Move here
7406 * libc/Makefile.in (LIBC_POSIX_LIB): Define.
7407 (SUBDIRS): Add posix.
7408 (SUBLIBS): Add $(LIBC_POSIX_LIB).
7410 * libc/include/sys/signal.h (SIGCHLD): Add for _WIN32.
7411 (NSIG): Increase to 21.
7412 * libc/include/sys/unistd.h (pid_t): Move from here,
7413 * libc/include/sys/types.h (pid_t): to here.
7415 * libc/sys/win32/syscalls.h: #include "sys/strace.h".
7417 (hinfo): New members close_exec_p, child_created_p.
7418 (struct exception_list): Define.
7419 (__hmap): Redefine as pointer to table.
7420 (__parent_hmap, __child_hmap): New globals.
7421 (__set_errno, __really_exit): Declare.
7422 (__vfork_child_pid): Declare.
7423 * libc/sys/win32/crt0.c (__strace, __trace_file): New global.
7424 (__orig_stdin, __orig_stdout, __orig_stderr): New globals.
7425 (__parent_hmap, __child_hmap): New globals.
7426 (__hmap): Redefine as pointer to active map.
7427 (__get_console): New function.
7428 (mainCRTStartup): Change leading '=' in environ vars to '!'.
7429 (env __FD_TABLE__): Watch for this and initialize our fd/handle
7430 mapping table from it if defined.
7431 (argv, envp): Dump if __strace >= 4.
7433 * libc/sys/win32/exceptions.c (myp): Redefine.
7434 (__syscalls_b): Delete.
7435 (__stack_trace): New function.
7436 (ehandler3): Update to use _STRACE. Print stack trace.
7437 Call __really_exit instead of exit.
7438 (init_exceptions): Delete args argc,argv. New arg mine.
7439 * libc/sys/win32/kernel32.def (CreatePipe, DuplicateHandle, FindClose,
7440 FindFirstFileA, FindNextFileA, GetComputerNameA,
7441 GetEnvironmentVariableA, ReadFile, SetEnvironmentVariableA): Define.
7442 * libc/sys/win32/signal.c (signal): Validate arg.
7443 (alarm, sleep): Define as stubs for now.
7444 * libc/sys/win32/syscalls.c (all fns): Update to use _STRACE.
7445 (__syscalls_b, errno): Delete.
7446 (__vfork_child_pid, __vfork_jmp_buf): New globals.
7447 (__seterrno): Handle more errors.
7448 (__sys_printf): Renamed from _ptrace.
7449 (__really_exit): New function.
7450 (queue_file_deletion, process_deletion_queue): New functions.
7451 (__resume_parent): New function.
7452 (_unlink): Handle trying to delete open file.
7453 (__totime_t): Renamed from totime_t.
7454 (setsid, __read, __write): New functions.
7455 (cwait, spawnvp, R, D, getrusage, _execve, _fork, _wait): Delete.
7456 * libc/sys/win32/{dirsearch.c,getlogin.c,misc.c,resource.c,passwd.c,
7457 times.c,spawn.c,pipe.c,wait.c,termios.c,ioctl.c,uname.c}: New files.
7458 * libc/sys/win32/console.c: Update to new definition of __hmap.
7459 * libc/sys/win32/Makefile.in: Build new files.
7460 * libc/sys/win32/sys/{dirent.h,winerror.h,wait.h,termios.h}: New files.
7461 * libc/sys/win32/sys/{ioctl.h,utsname.h}: New files.
7462 * libc/sys/win32/sys/strace.h: Renamed from ptrace.h.
7463 * libc/sys/win32/sys/wintypes.h (GetCurrentDirectoryA): Fix prototype.
7465 Thu Aug 10 16:32:52 1995 Doug Evans <dje@canuck.cygnus.com>
7467 * libc/sys/h8500hms/misc.c (kill): Handle SIGABRT.
7469 Thu Aug 10 12:07:38 1995 J.T. Conklin <jtc@rtl.cygnus.com>
7471 * libc/stdlib/{dtoa.c, strtod.c}: Merged assorted changes that
7472 have been made to the master dtoa.c sources (from netlib.att.com)
7473 since they were integrated into newlib in early 1992. Fixes
7474 problems with storage leaks and handling of numbers with very
7477 Wed Aug 9 14:18:39 1995 J.T. Conklin <jtc@rtl.cygnus.com>
7479 * Makefile.in (all): set rootpre and srcrootpre before calling
7482 Tue Aug 8 17:20:45 1995 steve chamberlain <sac@slash.cygnus.com>
7484 * libc/sys/win32/crt0.c: Change __hmap usage.
7485 * libc/sys/win32/exceptions.c: Use _ptrace call.
7486 * libc/sys/win32/syscalls.c: Use _ptrace call.
7487 (read, write): Cope with DOS style CRLF when in TEXT mode.
7488 * libc/sys/win32/syscalls.h: Declare hinfo struct.
7489 * libc/sys/win32/user32.def: Get DefWindowProc arg list right.
7490 * libc/sys/win32/sys/fcntl.h, ptrace.h: New.
7491 * libc/sys/win32/sys/windows.h: Fill in rest of messages.
7492 * libc/sys/win32/sys/wintypes.h: Fix attribute syntax.
7494 Mon Aug 7 13:04:54 1995 J.T. Conklin <jtc@rtl.cygnus.com>
7496 * libc/include/math.h (cabs, cabsf, drem, dremf): New declarations.
7498 * libm/math/{w_cabs.c, wf_cabs.c, w_drem.c, wf_drem.c}: New files,
7499 wrappers for hypot() and remainder() for BSD libm compatibility.
7500 These are public domain implementations written by me for the
7501 NetBSD libm some time ago. Note cabs() is required by ucbtest.
7502 * libm/math/Makefile.in (obj): Added w_cabs.o and w_drem.o.
7503 (fobj): Added wf_cabs.o and wf_drem.o.
7505 Thu Aug 3 08:13:05 1995 J.T. Conklin <jtc@rtl.cygnus.com>
7507 * libc/sys/h8500hms/misc.c: New file.
7508 * libc/sys/h8500hms/Makefile.in (OFILES): Add misc.o.
7510 Wed Aug 2 16:46:27 1995 J.T. Conklin <jtc@rtl.cygnus.com>
7512 * libc/time/localtime.c (localtime): Fix problem with leap year
7513 handling. Stole algorithm from Arthur David Olson's tz code.
7515 Mon Jul 31 10:21:54 1995 steve chamberlain <sac@slash.cygnus.com>
7517 * configure.in: (z8k-*sim): Renamed z8k-*-coff.
7519 * libc/sys/z8ksim/glue.c (_getpid, _kill): New
7520 (_exit): Use argument.
7522 Fri Jul 28 15:17:04 1995 Doug Evans <dje@canuck.cygnus.com>
7524 * libc/sys/win32/sys/winbase.h (_WINBASE_H): Define.
7526 Wed Jul 26 16:24:19 1995 steve chamberlain <sac@slash.cygnus.com>
7528 * libc/sys/sh/trap.S (perrno): Align correctly. (pr 7532)
7530 Mon Jul 24 13:42:52 1995 J.T. Conklin <jtc@rtl.cygnus.com>
7532 * configure.in (sparc*): Add -DMALLOC_ALIGNMENT=8 to
7535 Mon Jul 24 11:42:07 1995 steve chamberlain <sac@slash.cygnus.com>
7537 * libc/sys/win32/crt0.c (mainCRTStartup): Look for
7538 ptrace with case insensitivity
7539 * libc/sys/win32/{user32.def, gdi32.def, exceptions.c, screen.c,
7540 sys/winbase.h, sys/windows.h, sys/wintypes.h, sys/winuser.h}:
7543 Fri Jul 21 11:22:26 1995 Doug Evans <dje@canuck.cygnus.com>
7545 * Makefile.in: Multilib support moved to ../cfg-ml-{com,pos}.in.
7546 (MULTITOP, MULTIDIRS, MULTISUBDIR, MULTIDO, MULTICLEAN): New variables.
7547 (all, install, *clean): Use new multilib support.
7548 * configure.in: Multilib support moved to ../cfg-ml-{com,pos}.in.
7550 Fri Jul 21 07:11:42 1995 steve chamberlain <sac@slash.cygnus.com>
7552 * libc/include/sys/signal.h (__WIN32__): New.
7554 * configure.in (i386-*-win32): Remobe SBRK_IS_ALLOC.
7556 * libc/stdlib/mprec.c (Balloc): Fix trampling problem.
7557 (ulp, b2d): Handle 32 bit doubles.
7558 * libc/stdlib/mprec.h: Handle 32 bit doubles.
7559 * libc/stdlib/strtod.c (_strtod_r): Ditto.
7561 Fri Jul 14 08:24:58 1995 steve chamberlain <sac@slash.cygnus.com>
7563 from medp@primag.co.uk:
7564 * libc/stdio/setvbuf.c (setvbuf): Fix line buffering on
7565 dynamically allocated buffers.
7567 Thu Jul 20 10:11:03 1995 Fred Fish <fnf@fishbowl>
7569 * libc/include/sys/unistd.h (_exit): Add _ATTRIBUTE ((noreturn)).
7570 * libc/stdlib/exit.c (unistd.h): Include to pick up _exit() declaration.
7572 Thu Jul 20 10:16:25 1995 Michael Meissner <meissner@tiktok.cygnus.com>
7574 * configure.in (powerpc): Fix previous fix.
7576 Wed Jul 19 14:08:55 1995 Michael Meissner <meissner@tiktok.cygnus.com>
7578 * configure.in (powerpc-*eabiaix*): Update PowerPC multilib
7579 directories for this target.
7581 Wed Jul 19 00:34:30 1995 Jeffrey A. Law <law@rtl.cygnus.com>
7583 * configure.in (hppa): Add machine_dir definition.
7584 * libc/machine/hppa: New directory with PA specific implementations
7585 of the basic memory/string functions.
7587 Tue Jul 18 21:16:00 1995 Michael Meissner <meissner@tiktok.cygnus.com>
7589 * configure.in: Update current PowerPC multilib directories.
7590 Split big and little endian configurations.
7592 Tue Jul 18 11:55:33 1995 Ian Lance Taylor <ian@cygnus.com>
7594 * configure.in: Add --enable-single-float option to configure to
7595 control use of MIPS single-float directories. Default to yes.
7597 * Makefile.in (all): Don't recurse into multilib directory if it
7600 Mon Jul 17 15:51:30 1995 J.T. Conklin <jtc@rtl.cygnus.com>
7602 * libc/sys/sh/syscalls.c: Fix typo.
7604 Mon Jul 3 14:38:52 1995 Steve Chamberlain <sac@slash.cygnus.com>
7606 * Makefile.in, libc/Makefile.in, libc/sys/Makefile.in:
7608 * libc/include/process.h: Define WAIT_CHILD.
7609 * libc/include/types.h: Get sizes right for win32.
7610 * configure.in (i386-*-pe): Becomes i386-win32.
7611 * libc/sys/win32/{crt0.c, kernel32.def, longjmp.c, setjmp.c, syscalls.c
7612 wintypes.h,sys/file.h,sys/resource.h}: Second pass.
7613 * libc/stdlib/mallocr.c: Don't round up memory block if SBRK_IS_ALLOC
7616 Wed Jun 28 18:34:54 1995 Steve Chamberlain <sac@slash.cygnus.com>
7618 * configure.in (i[345]86-*-pe): New target (NT).
7619 * host/any: DLLTOOL new.
7620 * libc/sys/win32/{crt0.c, kernel32.def, longjmp.c, setjmp.c, syscalls.c
7621 wintypes.h,sys/file.h,sys/resource.h}: Preliminary support for
7622 WIN32 (just enough to cross host the comp-tools).
7624 Thu Jun 22 11:45:18 1995 Doug Evans <dje@canuck.cygnus.com>
7626 * libc/machine/h8300/{cmpsi.S,ucmpsi.S,divhi3.S,mulhi3.S,mulsi3.S}:
7627 Deleted. These files live in gcc/config/h8300/lib1funcs.asm now.
7629 Mon Jun 19 11:40:40 1995 Doug Evans <dje@canuck.cygnus.com>
7631 * libc/include/machine/ieeefp.h (arm): Change to always be
7632 __IEEE_BIG_ENDIAN (even on little endian ARM's).
7634 Thu Jun 8 14:22:28 1995 Steve Chamberlain <sac@slash.cygnus.com>
7636 * libc/sys/crt0.S: Initialze sp, and call exit after main.
7637 * libc/sys/syscalls.c (abort): New.
7638 * configure.in (arm): Define ABORT_PROVIDED.
7640 Wed Jun 7 14:04:35 1995 J.T. Conklin <jtc@rtl.cygnus.com>
7642 * configure.in (powerpc): Define multidirs.
7644 Mon Jun 5 16:10:13 1995 Doug Evans <dje@canuck.cygnus.com>
7646 * libc/sys/arm/crt0.S: Add __USER_LABEL_PREFIX__ support.
7648 Thu Jun 1 10:51:47 1995 Sean Eric Fagan <sef@cygnus.com>
7650 * configure.in (sparclite): Delete target_cflags. Define multidirs.
7652 Wed May 24 14:23:25 1995 Steve Chamberlain <sac@slash.cygnus.com>
7654 * configure.in, libc/include/machine/ieeefp.h: Modified
7656 libc/machine/arm/*, libc/sys/arm/*: New
7658 Tue May 23 13:53:07 1995 J.T. Conklin <jtc@rtl.cygnus.com>
7660 * libc/include/machine/ieeefp.h: Use __PPC__ instead of
7661 __powerpc__ when determining endianness.
7663 Wed May 10 07:55:56 1995 J.T. Conklin <jtc@rtl.cygnus.com>
7665 * configure.in (m68*): Add multidir for the m68332.
7667 * host/any (CC): Fix typo in last change.
7669 Fri Apr 14 22:20:31 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
7671 * libc/include/sys/config.h: Test __m68k__ instead of __m68000__
7672 when determining endianness.
7673 * libc/include/machine/ieeefp.h: Ditto.
7674 * libc/machine/m68k/setjmp.S: Use '&' instead of '#' for immediate
7677 Fri Apr 14 14:14:29 1995 Doug Evans <dje@chestnut.cygnus.com>
7679 * libc/include/errno.h (ENOTEMPTY): Define.
7681 Thu Apr 6 12:21:20 1995 J.T. Conklin <jtc@rtl.cygnus.com>
7683 * configure.in (sparc-sun-sunos*): Add -DMALLOC_ALIGNMENT=8 to
7686 * libc/sys/sun4/Makefile.in (COPYOFILES): Added rem.o, multiply.o,
7689 * libc/stdio/tmpnam.c (worker): Unconditionally increment count
7690 instead of only when open succeeds. ANSI requires that multiple
7691 calls to tmpnam() result in different files.
7693 * libc/sys/sun4/Makefile.in (COPYRENAMEOFILES): New macro, list of
7694 objects pulled in from /lib/libc.a that must be renamed before
7695 being pulled into newlib. /lib/libc.a's div.o conflicted with
7696 newlib's file with the same name.
7698 * libc/stdlib/ldiv.c (ldiv): Call labs() instead of abs().
7700 * host/any (CC, AS, AR, RANLIB): Changed so that executables in
7701 the build tree will only be used if the executables are present
7702 (instead of just the Makefiles).
7704 * libc/include/stdlib.h (mblen, mbtowc, wctomb, mbstowcs,
7706 * libc/stdlib/{mblen.c, mbstowcs.c, wcstombs.c}: New files, null
7707 versions of these functions that I orignally wrote for the
7709 * libc/stdlib/{mbtowc.c, wctomb.c}: Replaced functions with
7710 versions I wrote for NetBSD.
7712 Wed Mar 29 12:42:42 1995 Kung Hsu <kung@mexican.cygnus.com>
7714 * libc/sys/sparclite/Makefile.in: add crt0.s and make info.
7715 * libc/sys/sparclite/crt0.s: ditto.
7717 Tue Mar 28 20:28:03 1995 Rob Savoye <rob@rtl.cygnus.com>
7719 * configure.in: Add soft-float for proelf.
7721 Mon Mar 27 12:07:56 1995 Steve Chamberlain <sac@bang.hack.com>
7723 * libc/stdlib/mprec.h (Bcopy): Copy the right number
7726 Mon Mar 27 11:24:22 1995 Doug Evans <dje@chestnut.cygnus.com>
7728 * Makefile.in (all): Depend on `force'.
7729 * configure.in (syscall_dir): Renamed from fake_sys_dir.
7730 (libc_syscall_lib): Renamed from libc_fake_sys_lib.
7731 (LIBC_SYSCALL_LIB): Renamed from LIBC_FAKE_SYS_LIB.
7732 * libc/Makefile.in: Likewise.
7733 * libc/include/reent.h: Update syscall references.
7734 (_fcntl_r): Add prototype.
7735 * libc/syscalls/*.c #include <reent.h>.
7736 (*) Call reentrant version if REENTRANT_SYSCALLS_PROVIDED.
7738 Mon Mar 20 16:57:39 1995 Doug Evans <dje@deneb.cygnus.com>
7740 * libc/include/sys/stat-dj.h (S_ISBLK): Define.
7741 (S_ISCHR, S_ISDIR, S_ISFIFO, S_ISREG): Define.
7742 * libc/include/sys/stat.h (stat-dj.h): Include ifdef MSDOS.
7743 (time.h, sys/types.h): Always include (even if MSDOS).
7744 (stat): Fix prototype.
7746 Fri Mar 10 11:30:38 1995 Ian Lance Taylor <ian@cygnus.com>
7748 * configure.in (i[345]86-*-go32): Compile with -DNO_EXEC.
7750 Mon Feb 27 18:00:39 1995 Jim Wilson <wilson@chestnut.cygnus.com>
7752 * libc/machine/h8500/psi.S (EXTPSIHI_RN_SN): Ifdef out.
7754 Mon Feb 13 16:10:03 1995 Ian Lance Taylor <ian@cygnus.com>
7756 * libc/include/regdef.h: New file.
7757 * libc/machine/mips/machine/regdef.h: New file.
7759 Mon Feb 6 15:24:29 1995 Doug Evans <dje@canuck.cygnus.com>
7761 * libc/sys/sparc64/sys/fcntl.h (open): Add ellipsis.
7763 Fri Jan 27 13:52:10 1995 Steve Chamberlain <sac@splat>
7765 * libc/sys/sh/crt0.S: Pass main's return to exit.
7766 * libc/sys/sh/trap.S: Put errno in the right place.
7768 Tue Jan 24 18:57:56 1995 Ian Lance Taylor <ian@sanguine.cygnus.com>
7770 * libm/math/e_rem_pio2.c (__ieee754_rem_pio2): Integrate change
7771 from fdlibm 5.2: handle |x| < 3pi/4 more efficiently.
7772 * libm/math/ef_rem_pio2.c: Likewise.
7773 * libm/math/e_log10.c: Remove unused static one.
7774 * libm/math/ef_log10.c: Likewise.
7775 * libm/math/s_frexp.c: Likewise.
7776 * libm/math/sf_frexp.c: Likewise.
7778 Sun Jan 22 21:26:14 1995 Steve Chamberlain <sac@splat>
7780 * libc/sys/go32/Makefile.in, clock.S, dir.c, setjmp.S, stat.c,
7781 longjmp.S: Upgraded.
7782 * libc/sys/go32/sys/setjmp.h: Upgraded.
7783 * libc/sys/go32/sys/go32.h, dpmi.h: New files.
7785 Fri Jan 20 18:33:18 1995 Ian Lance Taylor <ian@sanguine.cygnus.com>
7787 * configure.in: Add many entries to multidirs for mips targets.
7789 Wed Jan 18 10:19:25 1995 J.T. Conklin <jtc@rtl.cygnus.com>
7791 * libm/math/e_jn.c (__ieee754_yn): Integrate change from fdlibm
7792 5.2 which fixes bug where jn(-1,x) is three times larger than
7794 * libm/math/ef_jn.c (__ieee754_ynf): Likewise.
7796 Sun Jan 15 21:48:58 1995 Steve Chamberlain <sac@splat>
7798 * libc/sys/w65/sys/syscalls.h: New file
7799 * libc/include/machine/ieeefp.h: W65 support.
7800 * libc/include/sys/config.h: Ditto.
7801 * libc/machine/w65/Makefile.in, cmpsi, divsi3, lshrhi.s, mulsi3.c,
7802 sdivhi3.s, smulhi3.s, udivhi3.s, umodhi3.s: New files.
7803 * libc/sys/w65/Makefile.in, crt0.c, syscalls.c, trap.c: New files.
7805 Wed Jan 11 15:59:01 1995 Ian Lance Taylor <ian@sanguine.cygnus.com>
7807 * libc/sys/Makefile.in (lib.a, crt0.o): Depend upon subs.
7809 Tue Jan 3 15:57:03 1995 Rob Savoye <rob@darkstar.cygnus.com>
7811 * Makefile.in, configure.in: Remove any references to the old
7814 Thu Dec 22 10:42:08 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
7816 * libc/syscalls/sysopen.c: Write _HAVE_STDC version of open, which
7817 uses ... in prototype.
7820 Wed Nov 30 08:39:42 1994 Ian Lance Taylor <ian@rtl.cygnus.com>
7822 * libc/sys/a29khif/sys/libconfig.h: Remove.
7823 * libc/sys/go32/sys/libconfig.h: Remove.
7824 * libc/sys/sun4/sys/libconfig.h: Remove.
7825 * libc/sys/sysvi386/sys/libconfig.h: Remove.
7826 * libc/sys/sysvnecv70/sys/libconfig.h: Remove.
7827 * libc/sys/sparc64/sys/libconfig.h: Remove.
7829 * libc/include/_ansi.h (_FLOAT_ARG, _FLOAT_RET): Don't define.
7830 * libc/include/sys/config.h (_FLOAT_ARG, _FLOAT_RET): Likewise.
7831 * libc/include/math.h: Change all uses of _FLOAT_RET and
7832 _FLOAT_ARG to float.
7833 * libm/test/math.c: Likewise.
7834 * testsuite/libm.sac/math.c: Likewise.
7835 * testsuite/libm.sac/working/math.c: Likewise.
7837 Wed Nov 23 22:39:28 1994 Steve Chamberlain (sac@jonny.cygnus.com)
7839 * libc/sys/sh/trap.s,crt0.s,setjmp.s: Renamed with .S so that
7840 gcc calls gas with endian option.
7841 * configure.in (sh): Build little endian version too.
7843 Wed Nov 16 18:21:45 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
7845 * configure.in: Configure big and little endian versions for MIPS
7848 Sat Nov 12 21:12:51 1994 Doug Evans <dje@canuck.cygnus.com>
7850 * libc/include/limits.h: Deleted.
7851 * libc/include/machine/limits.h: Deleted.
7853 Thu Nov 10 15:32:44 1994 Rob Savoye <rob@rtl.cygnus.com>
7855 * ChangeLog: Remove stub directory. This has all been rewritten
7856 and moved to devo/libgloss.
7858 Thu Sep 29 18:31:04 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
7860 * Makefile.in (dvi): Add to info target, use $@ in sub make.
7861 (docs): Merge into info target.
7862 * libm/Makefile.in (dvi): Add $(srcdir).
7863 * libm/math/Makefile.in (chobjs): Remove underscores from file
7864 names. Texinfo doesn't like them.
7865 (wacos.def, ...): Add explicit targets for all .def files.
7866 * libm/math/math.tex: Remove underscores from @include file names.
7867 * doc/Makefile.in (dvi): Add dummy target.
7868 * testsuite/Makefile.in (dvi): Add dummy target.
7870 Mon Sep 26 21:17:46 1994 Doug Evans (dje@canuck.cygnus.com)
7872 * Makefile.in (VERSION): Define. For net newlib releases.
7874 Thu Sep 22 19:01:26 1994 Doug Evans (dje@canuck.cygnus.com)
7878 Mon Sep 19 16:35:23 1994 Jim Wilson (wilson@sphagnum.cygnus.com)
7880 * libc/stdlib/ecvtbuf.c (_gcvt): Undo last change.
7882 Mon Sep 19 11:44:23 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
7884 * libc/stdlib/setenv.c (_findenv): Declare.
7886 * libc/include/sys/fcntl.h: Fix declarations of open, creat, and
7887 fcntl to not use _EXFUN, and change string parameters to open and
7888 creat to be ``const char *''.
7889 * libc/sys/sparc64/sys/fcntl.h: Likewise.
7890 * libc/sys/sparc64/creat.c (creat): Make PATH const.
7891 * libc/syscalls/sysopen.c: Include <fcntl.h>.
7892 (open) Make _FILE const.
7893 * libc/sys/z8ksim/glue.c (_open): Make BUF const.
7894 (_creat): Make PATH const.
7895 * libc/sys/h8300hms/syscalls.c (_open): Make PATH const.
7896 * libc/sys/h8500hms/syscalls.c (_open): Likewise.
7897 * libc/sys/m88kbug/syscalls.c (open): Likewise.
7898 * libc/sys/sh/syscalls.c (_open): Likewise.
7899 * stub/shared/glue.c (open): Make BUF const.
7900 * stub/ex93x/syscalls.c (open): Make FILENAME const.
7902 Thu Sep 8 16:39:12 1994 Steve Chamberlain (sac@jonny.cygnus.com)
7904 * libc/include/errno.h: Add ENMFILE
7905 * libc/include/sys/config.h: Support Z8000.
7906 * libc/include/sys/signal.h: New signals for go32.
7907 * libc/machine/h8500/psi.S (__addpsir0r0): New function
7908 * libc/machine/h8500/cmpsi.S (__ucmppsi2): New function
7909 * libc/machine/sh/sdivsi3.s (__sdivsi3): Rewritten.
7910 * libc/stdlib/mallocr.c (_morecore_r): Minimum chunk
7911 size is variable, depending upon CHUNK_POWER.
7912 * libc/sys/go32/*.c: Upgrade to new go32 stuff.
7914 Sun Sep 4 17:42:43 1994 Jim Wilson (wilson@sphagnum.cygnus.com)
7916 * libc/stdlib/ecvtbuf.c (_gcvt): Output '-' for negative numbers.
7918 Fri Sep 2 10:56:01 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
7920 * libc/include/_ansi.h (_PARAMS): Don't define if already defined.
7922 Wed Aug 24 11:11:03 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
7924 * configure.in: Change i[34]86 to i[345]86.
7926 * libc/include/math.h: Don't define HUGE_VAL if it is already
7929 Wed Aug 17 15:18:02 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
7931 * testsuite/libm.sac/test_erfc.c: Correct some result values.
7932 * testsuite/libm.sac/test_gammaf.c: Likewise.
7933 * testsuite/libm.sac/test_sin.c: Likewise.
7934 * testsuite/libm.sac/test_tanh.c: Likewise.
7936 Tue Aug 16 16:12:53 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
7938 * libc/include/machine/ieeefp.h: Don't try set endianness if it is
7939 already set. Define typedefs __int32_t and __uint32_t.
7940 * libc/include/math.h: Include <machine/ieeefp.h>.
7941 (union __dmath): Use __uint32_t.
7942 * libm/math/fdlibm.h, libm/math/*.c: Use __int32_t and __uint32_t
7943 instead of int and unsigned int.
7945 Thu Aug 11 15:16:09 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
7947 Replace the math library with the SunPRO fdlibm package.
7948 * libm/math: Completely changed all files.
7949 * libm/ieeefp: Remove contents and directory.
7950 * libm/Makefile.in (LIBM_FP_LIB): Remove.
7951 (SUBDIRS): Just set to math/lib.a.
7952 * libm/libm.texinfo: Updated for new library.
7953 * libc/include/math.h: Extensive changes for new math library.
7954 * libc/include/ieeefp.h (isnanf, isinff, finitef): Change argument
7955 from _FLOAT_ARG to float.
7956 (maxpowtwo, maxpowtwof): Don't declare.
7957 * configure.in (fp_dir): Removed; was always ieeefp anyhow.
7958 (libm_fp_lib): Removed.
7959 * Makefile.in (MATHOBJS_IN_LIBC): Updated with new file names.
7960 * testsuite/libm.paranoia/Makefile.in (check): Correct --srcdir
7961 argument to ${RUNTEST}.
7962 * testsuite/libm.sac/Makefile.in (LOCAL_CFLAGS): Define.
7964 (RUNTESTFLAGS): Set CC and CFLAGS.
7965 (TESTS): Remove test_log2 and test_log2f.
7966 (${TESTS}): Pass ${LOCAL_CFLAGS}, not ${CFLAGS}.
7967 * testsuite/libm.sac/math.c (run_vector_1): Use float, not
7968 _FLOAT_ARG, for single precision argument type.
7969 * testsuite/libm.sac/sac.exp: Treat an error in bit 63 as an
7970 expected failure. Close the input pipe.
7971 * testsuite/libm.sac/test.c (test_sok, test_iok, test_scok):
7972 Correct misspelling of inaccurate.
7973 (test_mok): Use ``inaccurate'', not ``wrong''.
7974 * testsuite/libm.sac/{test_acos.c, test_acosh.c, test_asin.c,
7975 test_asinh.c, test_atan.c, test_atanh.c, test_ceil.c,
7976 test_ceilf.c, test_cos.c, test_cosh.c, test_erf.c, test_erf.c,
7977 test_fabs.c, test_floor.c, test_floorf.c, test_fmod.c,
7978 test_fmodf.c, test_gamma.c, test_log1p.c, test_log1pf.c,
7979 test_yn.c): Correct many result values. Many are still wrong.
7981 * libc/stdlib/ecvtbuf.c (print_e): If _dtoa_r sets decpt to 9999,
7982 just copy the string.
7983 (_gcvt): Always return the buffer.
7985 Tue Aug 9 13:43:23 1994 J.T. Conklin (jtc@phishhead.cygnus.com)
7987 * bcopy.c: fixed documentation, bcopy was not specified by ANSI.
7989 Wed Aug 3 05:39:41 1994 D. V. Henkel-Wallace (gumby@cygnus.com)
7991 * libc/include/sys/reent.h: (struct _Bigint): add _reclaim
7993 (struct _reent): add _p5s, _cvtlen, _cvtbuf.
7994 (_reclaim_reent): declare new entry point.
7995 * libc/reent/reent.c (cleanup_glue, _reclaim_reent): new
7998 * libc/stdlib/mprec.c (Balloc): Keep track of every struct bigint
7999 ever allocated, so that we can later reclaim them all.
8000 (pow5mult): make reentrant.
8002 * libc/stdlib/ecvtbuf.c (fcvtbuf, ecvtbuf): extend these functions
8003 so that when given NULL as a buffer, return a pointer to static
8004 space in the rent structure. This is not documented behaviour;
8005 it's only to support ecvt and fcvt, which aren't ANSI anyway.
8006 * libc/stdlib/efgcvt.c (fcvt, ecvt) Use new functionality (and
8007 therefore become reentrant).
8009 * libc/stdlib/dtoastub.c: remove spurious inclusion of mprec.h.
8011 Mon Aug 1 16:52:24 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
8013 * libc/include/machine/ieeefp.h: Check _AM29K, not ___AM29K__.
8015 Thu Jul 28 15:40:21 1994 J.T. Conklin (jtc@phishhead.cygnus.com)
8017 * Makefile.in: Make link to libg.a after libc.a; this is needed
8018 for the testsuites to build executables when everything comes
8021 Mon Jun 27 17:14:29 1994 Bill Cox (bill@rtl.cygnus.com)
8023 * libc/Makefile.in: Add a VERSION variable so we can keep track.
8024 * libm/Makefile.in: Add a VERSION variable so we can keep track.
8026 Wed Jun 22 10:26:00 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
8028 * libc/include/stdio.h: Use __VALIST, not va_list.
8030 Tue May 17 15:43:28 1994 Bill Cox (bill@rtl.cygnus.com)
8032 * testsuite/config/unix-libm.exp, testsuite/lib/libm.exp,
8033 testsuite/libm.sac/execute.exp:
8034 Replace error proc calls with perror calls.
8036 Wed May 11 09:25:28 1994 Doug Evans (dje@canuck.cygnus.com)
8038 * libc/include/*.h: #include "_ansi.h" instead of <_ansi.h>.
8039 * libc/include/time.h: #define NULL as 0L.
8041 Mon May 9 18:41:20 1994 Doug Evans (dje@canuck.cygnus.com)
8043 * host/any (INCLUDES): Delete -I of gcc/include, gcc -B takes
8046 Mon May 9 18:39:39 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8048 * libc/include/sys/signal.h: Check for __GO32__, not __i386__ and
8051 Sat May 7 17:07:36 1994 Steve Chamberlain (sac@cygnus.com)
8053 * configure.in (TARGET_CFLAGS): Set -O2 as default.
8054 (z8k-*-*): Use syscalls fake sys dir.
8055 * libc/sys/z8k/glue.c: Rename syscalls.
8056 * libc/sys/go32/Makefile.in: Use new routines.
8057 * libc/machine/Makefile.in: Fix typo in ln stuff.
8059 Thu May 5 13:47:48 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8061 * Makefile.in (libm.a, crt0.o): Use cp if ln fails.
8062 * libc/Makefile.in (crt0.o): Likewise.
8063 * libc/machine/Makefile.in (lib.a): Likewise.
8064 * libc/sys/Makefile.in (lib.a, crt0.o): Likewise.
8066 All Makefile.in files: Added mostlyclean, realclean and distclean
8069 * Makefile.in: Don't bother to unexport XTRAFLAGS or
8070 XTRAFLAGS_FOR_TARGET, since they are no longer passed down from
8071 the top level Makefile.
8073 Tue Apr 26 15:10:34 1994 Doug Evans (dje@canuck.cygnus.com)
8075 * libc/sys/sparc64/sys/stat.h: New file.
8076 * libc/sys/sparc64/sys/time.h: New file.
8077 * libc/sys/sparc64/sys/types.h: New file.
8079 Fri Apr 22 12:58:24 1994 Stan Shebs (shebs@andros.cygnus.com)
8081 * stub/ex93x/crt0.s (start): Add code to clear bss.
8083 Wed Apr 13 10:34:58 1994 Doug Evans (dje@canuck.cygnus.com)
8085 * libc/include/sys/types.h (time_t): Properly protect inside
8086 #ifndef __time_t_defined.
8088 * libc/stdio/fileno.c: New file.
8089 * libc/stdio/Makefile.in (OFILES, CHEWOUT_FILES): Add fileno.
8090 (fileno.o): Add dependency.
8091 * libc/include/stdio.h (__sgetc): Rename never to _never.
8092 (fileno macro): Disable, needs to do CHECK_INIT first.
8094 Mon Apr 11 17:37:09 1994 Bill Cox (bill@rtl.cygnus.com)
8096 * testsuite/Makefile.in (EXPECT, RUNTEST): Set these for the check
8099 * testsuite/Makefile.in (check): Set TCL_LIBRARY for runtest.
8100 * testsuite/libm.paranoia/Makefile.in (check): Set TCL_LIBRARY for
8102 * testsuite/libm.sac/Makefile.in (check): Set TCL_LIBRARY for
8105 Sat Apr 9 16:18:09 1994 Doug Evans (dje@cygnus.com)
8107 * libc/sys/sparc64/sys/fcntl.h: New file, define solaris versions
8108 of the various constants.
8110 Thu Apr 7 21:19:07 1994 Mark Eichin (eichin@cygnus.com)
8112 * libc/include/math.h: #ifndef __math_68881 around things which
8113 conflict with the (gcc-provided) inline functions in
8114 gcc/ginclude/math-68881.h.
8116 Thu Apr 7 02:50:43 1994 Doug Evans (dje@cygnus.com)
8118 * libc/include/_syslist.h (_gettimeofday): Define.
8120 * libc/include/reent.h: #include <machine/types.h> to get _CLOCK_T_.
8121 (struct tms, timeval, timezone): Declare.
8122 (_gettimeofday_r, _times_r): Declare.
8123 * libc/include/time.h (_CLOCK_T_): Don't #undef. Remove
8124 #ifdef _CLOCK_T_ surrounding definition of clock_t.
8125 (time_t): Add multiple definition protection, __time_t_defined.
8126 * libc/include/sys/time.h: Don't #include <time.h>.
8127 Always define struct timezone (remove #ifndef _TIME_H_).
8128 * libc/include/sys/times.h (_CLOCK_T_): Don't #undef. Remove
8129 #ifdef _CLOCK_T_ surrounding definition of clock_t.
8130 * libc/reent/Makefile.in (OFILES): Add timer.o.
8131 (CHEWOUT_FILES): Add timer.def. Add timer.o/timer.c dependence.
8132 * libc/reent/timer.c: New file.
8133 * libc/time/clock.c: #include <reent.h>.
8134 (clock): Call _times_r instead of times.
8135 * libc/time/time.c (HAVE_GETTIMEOFDAY): Renamed from
8136 HAVE_GET_TIME_OF_DAY.
8137 Add comment regarding supporting OS routine(s) required (for docs).
8139 (time): Call _gettimeofday_r instead of gettimeofday.
8140 * libc/time/asctime.c: Fix comment regarding supporting OS routines.
8141 * libc/time/ctime.c: Ditto.
8142 * libc/time/strftime.c: Ditto.
8143 * libc/sys/sparc64/Makefile.in (TEMPLATE_SFILES): Remove gettimeofday.
8144 (TEMPLATE_SFILES_R): Define here. Also define times.
8145 Add times_r.o/times.S dependence.
8146 (time2.c, junk.c): Deleted.
8147 * libc/sys/sparc64/time2.c: Deleted.
8148 * configure.in (sparc64-*-*): Define HAVE_GETTIMEOFDAY.
8150 * libc/stdio/mktemp.c (_getpid_r): Renamed from _getpid.
8151 * libc/stdio/tmpnam.c (_getpid_r): Ditto.
8152 * libc/sys/sparc64/junk.c: Deleted.
8154 Mon Mar 21 16:51:03 1994 Doug Evans (dje@canuck.cygnus.com)
8156 * libc/sys/sparc64/Makefile.in: Add times syscall.
8157 * libc/sys/sparc64/crt0.S: Handle stack bias at run time so we can
8158 be used with and without it. Add comment clarifying Medium/Anywhere
8160 * libc/sys/sparc64/sigsetjmp.S (setjmp, longjmp): Add svr4 support.
8161 * libc/sys/sparc64/sys/syscall.h (SYS_times): Define for sunos4
8164 Sun Mar 20 15:51:47 1994 Doug Evans (dje@cygnus.com)
8166 * configure.in (target_cflags): Move init.
8167 (sparc64-*-*): Define HAVE_BLKSIZE.
8169 Wed Mar 9 10:44:52 1994 Doug Evans (dje@canuck.cygnus.com)
8171 * libc/include/sys/_types.h: New file.
8172 * libc/include/reent.h: #include it.
8173 Add comment describing REENTRANT_SYSCALLS_PROVIDED and
8174 MISSING_SYSCALL_NAMES.
8176 * libc/include/_syslist.h: Remove _raise.
8177 * libc/reent/signalr.c: New file.
8178 * libc/reent/Makefile.in: Compile it.
8179 * libc/signal/signal.c: Only use ifdef SIMULATED_SIGNALS.
8180 Add doc for raise and _raise_r.
8181 * libc/signal/raise.c: Only use ifndef SIMULATED_SIGNALS.
8182 (raise): Call _raise_r.
8183 (_raise_r): Call _getpid_r and _kill_r.
8184 * libc/stdlib/abort.c: Remove inclusion of stdio.h and _syslist.h.
8185 (abort): Loop forever calling raise and _exit.
8187 Mon Mar 7 14:40:08 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8189 * configure.in: Remove extraneous echo.
8191 Thu Mar 3 12:14:22 1994 Doug Evans (dje@canuck.cygnus.com)
8193 * libc/sys/sparc64/sys/dirent.h (MAXNAMLEN): #undef to avoid
8194 collision with unistd.h, and fix for svr4.
8196 Wed Mar 2 13:55:25 1994 Doug Evans (dje@canuck.cygnus.com)
8198 * libc/stdio/local.h (_llicvt): Declare.
8199 (CVT_BUF_SIZE): Define (and buffer size from 512 to 128).
8200 * libc/stdio/cvt.c: Include "local.h" to get CVT_BUF_SIZE.
8202 (_sicvt): Fix function header (`value' is short).
8203 * libc/stdio/vfprintf.c (_vfprintf_r): Use CVT_BUF_SIZE.
8204 Add printing of long long's support.
8205 Add printing of 8 byte pointer support.
8207 Fri Feb 11 21:52:11 1994 Steve Chamberlain (sac@sphagnum.cygnus.com)
8209 * libc/sys/sh/syscalls.c (pipe, execv, wait, fork, utime, chown,
8210 stat, chmod): New hooks.
8211 (sbrk): Abort if stack and heap collide.
8212 * libc/machine/sh/udivsi3, libc/machine/sh/sdivsi3 Modified to
8213 shortcut when given small args.
8214 * libc/machine/sh/setjmp.s: Rewritten.
8215 * libc/machine/sh/strcmp.s (strcmp): New function takes advantage
8216 of cmp/str instruction.
8218 Wed Feb 9 15:12:35 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8220 * configure.in: Accept powerpc* as a CPU type, using fp_dir ieeefp
8221 and machine_dir powerpc.
8222 * libc/include/machine/setjmp.h, libc/include/machine/ieeefp.h:
8223 Add cases for __powerpc__.
8224 * libc/machine/powerpc/Makefile.in, libc/machine/powerpc/setjmp.S:
8227 * libc/include/stdio.h (_iprintf_r): Declare correctly.
8229 Thu Jan 27 10:36:27 1994 Steve Chamberlain (sac@cygnus.com)
8231 * libc/stdlib/callocr.c: New file with _calloc_r in it.
8232 * libc/stdlib/calloc.c (calloc_r): Now in callocr.c
8234 Thu Jan 20 15:14:37 1994 Doug Evans (dje@canuck.cygnus.com)
8236 * libc/stdlib/ecvtbuf.c (print_f): Remove local "done".
8237 (print_e): More comments to describe args, etc.
8238 "type" arg may now be 'g' or 'G' for %g/G format --> remove
8240 (_gcvt): Remove locals decpt, sign, end, p, done.
8241 More comments for print_e invocation.
8242 Pass "type" to print_e as is (g/G).
8244 Wed Jan 19 16:34:18 1994 Rob Savoye (rob@darkstar.cygnus.com)
8246 * stub/shared/m68k-crt0.S: Changed so it compiles (and runs) on a
8249 Mon Jan 17 15:41:53 1994 Doug Evans (dje@canuck.cygnus.com)
8251 * libc/stdlib/mallocr.c (_morecore_r): Fix aligning of pointer so it
8252 works with any sized pointer, including ones bigger than ints and
8255 Thu Jan 6 14:53:21 1994 Doug Evans (dje@canuck.cygnus.com)
8257 * libc/sys/sparc64/{time2.c,utime.S,utime2.c}: New files.
8259 Sat Dec 11 16:17:20 1993 Steve Chamberlain (sac@thepub.cygnus.com)
8261 * libc/include/stdlib.h (_calloc_r): Add prototype.
8262 * libc/machine/h8500/negsi2.c: New file.
8263 * libc/machine/h8500/divsi3.c: Prevent overflow when dividing v
8264 large unsigned numbers.
8265 * libc/machine/h8500/cmpsi.c: Add cmppsi.
8266 * libc/stdlib/mallocr.c (morecore_r): Fix aligning pointers so it
8267 works when sizeof(size_t) != sizeof(char *).
8268 * libc/stdlib/mprec.c (Balloc): Call calloc rather than malloc to
8270 * libc/stdlib/mprec.h: Define Just_16 if generating for z8000.
8272 Mon Dec 6 15:59:53 1993 Doug Evans (dje@rtl.cygnus.com)
8274 * libc/include/assert.h (assert): Handle -traditional.
8276 Tue Nov 16 15:49:24 1993 Mark Eichin (eichin@cygnus.com)
8278 * Makefile.in: added ; after every "fi" and "done" that wasn't at
8279 the end of a line (ie. anything before a backslash continuation)
8280 so that bash handles them.
8282 Tue Nov 16 12:31:57 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
8284 * libc/sys/go32/lstat.s: new file, copied from stat.s and renamed
8287 Mon Nov 15 15:50:43 1993 Steve Chamberlain (sac@jonny.cygnus.com)
8289 * libc/sys/sh/crt0.s, libc/sys/sh/trap.s,
8290 libc/machine/sh/sdivsi3.s, libc/machine/sh/setjmp.s,
8291 libc/machine/sh/udivsi3.s: Use new calling convention.
8293 Mon Nov 15 15:25:38 1993 Mark Eichin (eichin@cygnus.com)
8295 * libc/include/sys/unistd.h, libc/include/sys/stat.h: ANSI-fy
8296 chmod, access, chdir, chown by making _path const. Also fix _amode
8299 Fri Nov 12 20:25:28 1993 Mark Eichin (eichin@cygnus.com)
8301 * libc/sys/a29khif/_tmpnam.s (_tmpnam): renamed function to
8302 _khif_tmpnam, because it doesn't comply with ANSI but may be
8303 useful anyway. Real tmpnam was already in libc/stdio, and was
8304 colliding with this one (pr 2176.)
8305 * libc/sys/a29khif/stubs.s (tmpnam): removed tmpnam. This file is
8306 the wrong idea anyhow.
8308 Mon Nov 8 07:50:16 1993 Doug Evans (dje@canuck.cygnus.com)
8310 * configure.in: Remove h8300h, we have multilib now.
8312 Fri Nov 5 12:37:27 1993 Mark Eichin (eichin@cygnus.com)
8314 * libc/string/strcasecmp.c, libc/string/strncasecmp.c: new
8315 functions, to get preference over the ones in libiberty (since we
8316 provide correct declarations in <string.h>.
8317 * libc/string/Makefile.in: add support for strncasecmp,
8320 Fri Nov 5 09:05:45 1993 D. V. Henkel-Wallace (gumby@blues.cygnus.com)
8322 * Change netware config not to look for cpu explicitly.
8324 Thu Nov 4 14:21:25 1993 Doug Evans (dje@canuck.cygnus.com)
8326 * libc/sys/sparc64/{creat.c,junk.c}: New files.
8327 * libc/sys/sparc64/Makefile.in: Add dependencies.
8329 Wed Nov 3 10:42:49 1993 Doug Evans (dje@canuck.cygnus.com)
8331 * configure.in: Clean up v9 a bit, new "os" aoutv8.
8333 Tue Nov 2 10:00:44 1993 D. V. Henkel-Wallace (gumby@cygnus.com)
8335 * libc/include/sys/reent.h: make structure smaller by allocating
8336 some stuff when needed.
8337 * libc/signal/signal.c: allocate as needed
8338 * libc/stdio/findfp.c,stdio/local.h: ditto
8339 * libc/stdlib/mprec.c: ditto
8341 * libc/time/localtime.c: don't return a dangling stack ptr.
8343 Wed Sep 29 20:42:34 1993 Rob Savoye (rob@darkstar.cygnus.com)
8345 * stub/mvme135/crt0.S, stub/mvme135/glue.c: Moved to stub/generic.
8347 Wed Sep 29 16:27:49 1993 K. Richard Pixley (rich@sendai.cygnus.com)
8349 * libc/include/stdio.h (__sputc): comment out static inline which
8350 confuses coff toolchains.
8352 Thu Sep 2 16:31:36 1993 Mark Eichin (eichin@cygnus.com)
8354 * libc/sys/a29khif/{_close.s, _fstat.s, _lseek.s, _sbrk.s,
8355 _write.s, getpid.c, kill.c, read.s}:
8356 * libc/sys/a29khif/stubs.s: eliminated stubs that already go
8357 through the syscalls directory.
8359 Fri Oct 29 13:59:58 1993 Jeffrey Wheat (cassidy@cygnus.com)
8361 * configure.in: fixed double quote gotcha.
8363 Wed Oct 27 15:27:09 1993 Rob Savoye (rob@darkstar.cygnus.com)
8365 * stub/ex931: stub library for sparclite board.
8366 * stub/idp: Renamed from mc68ec. Added contructor table
8367 stuff to linker script.
8368 * stub/mvme135: Renamed from m68kmvme. Added contructor table
8369 stuff to linker script.
8371 Tue Oct 26 17:01:23 1993 K. Richard Pixley (rich@sendai.cygnus.com)
8373 * configure.in: Configure testsuites only if they exist.
8375 Tue Oct 26 12:37:11 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8377 * configure.in: Don't set machine_dir for i386 until there is
8378 something in libc/machine/i386 to compile. For i[34]86-*-netware*
8379 use sys/netware, don't use signal, define NO_EXEC, ABORT_PROVIDED,
8380 CLOCK_PROVIDED and MALLOC_PROVIDED.
8382 * libc/sys/netware: New directory. Contains simplistic and
8383 probably incorrect stubs for NetWare. Should be enough to load
8385 * libc/sys/netware/crt0.c, libc/sys/netware/environ.c,
8386 libc/sys/netware/getpid.c, libc/sys/netware/link.c: New NetWare
8389 * libc/reent/execr.c: Don't use if NO_EXEC is defined.
8390 * libc/reent/sbrkr.c: Don't use if MALLOC_PROVIDED is defined.
8391 * libc/stdlib/abort.c: Don't use if ABORT_PROVIDED is defined.
8392 * libc/time/clock.c: Don't use if CLOCK_PROVIDED is defined.
8394 Mon Oct 25 16:48:08 1993 Roland H. Pesch (pesch@cygnus.com)
8396 * testsuite/Makefile.in: add "docs" dummy target for consistency
8397 with rest of newlib; turn "info" and "install-info" into dummy
8398 targets, since they wouldn't have worked. (Depended on
8399 nonexistent "doc" subdir.)
8401 Fri Oct 22 20:37:32 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
8403 * configure.in: handle mips* instead of mips
8405 Thu Oct 21 08:57:24 1993 Ian Lance Taylor (ian@cygnus.com)
8407 * libc/include/sys/dirent.h: New file. If it is not overridden by
8408 a version of libc/sys/*/sys/dirent.h, it includes the next
8409 <dirent.h> file in case there is one lurking somewhere.
8411 Fri Oct 15 14:17:40 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8413 * libc/stdlib/strtoul.c (_strtoul_r): Several changes for ANSI
8414 compliance, namely: Accept a minus sign. Consider a single 0 with
8415 a radix of 0 as being a conversion. Determine overflow correctly.
8416 If an overflow occurs, set *ptr to the end of the number, not the
8418 * lib/stdlib/strtol.c (_strtol_r): Determine overflow correctly.
8420 Thu Oct 14 21:49:52 1993 Doug Evans (dje@canuck.cygnus.com)
8422 * libc/machine/h8300/divsi3.S (divmodsi4): Fix h8300h case.
8424 Fri Oct 1 17:17:34 1993 Doug Evans (dje@canuck.cygnus.com)
8426 * Makefile.in (INSTALL): Use $srcrootpre.
8427 (crt0.o): Replace $< with $(CRT0_DIR)/$(CRT0), Sun make
8429 * libc/Makefile.in (crt0.o): Spell out $<, Sun make can't handle
8431 * libc/sys/Makefile.in (crt0.o, lib.a): Ditto.
8432 * stub/Makefile.in (crt0.o, TARGETLIB): Ditto.
8433 * libc/sys/sparc64/Makefile.in (isatty.o): Sun VPATH lossage.
8434 * libm/math/Makefile.in (matherr.o): Ditto.
8436 Thu Sep 30 11:09:17 1993 Steve Chamberlain (sac@phydeaux.cygnus.com)
8438 * configure.in: Build multidirs for z8k.
8439 * libc/include/stdlib.h (_strtoul_r): add prototype.
8440 * libc/include/machine/limits.h: Get INT_MIN right for all the z8k family.
8441 * libc/include/machine/setjmp.h: Add for z8k.
8442 * libc/machine/z8k/{mulsi.o, udivsi3.o, umodsi3.o, modsi3.o} obsolete.
8443 * libc/sys/z8ksim/glue.c: tidy up.
8445 Mon Sep 20 14:04:46 1993 Doug Evans (dje@canuck.cygnus.com)
8447 * libc/unix/{execl.c execle.c execlp.c execv.c execvp.c}:
8448 New files. Requires execve system call.
8449 * libc/unix/Makefile.in: Use them.
8450 * libc/sys/sparc64/{execl.c execle.c execlp.c execv.c execvp.c}:
8451 Deleted, moved to libc/unix.
8452 * libc/sys/sparc64/Makefile.in: Remove them.
8454 Mon Sep 20 10:38:32 1993 Doug Evans (dje@canuck.cygnus.com)
8456 * libc/sys/sparc64/{template.S template_r.S}: New files.
8457 * libc/sys/sparc64/Makefile.in: Build source for trivial syscalls
8459 * libc/sys/sparc64/{chdir.S chmod.S close.S dup.S fcntl.S
8460 fork.S fstat.S lseek.S link.S mkdir.S open.S pipe.S read.S rmdir.S
8461 umask.S unlink.S wait4.S write.S}: Removed, now built from
8464 Sun Sep 19 14:52:57 1993 Doug Evans (dje@canuck.cygnus.com)
8466 * libc/time/time.c: #include <_ansi.h>.
8468 Sun Sep 19 13:43:25 1993 Doug Evans (dje@canuck.cygnus.com)
8470 * configure.in (sparc64-*-*): Remove -D__SIZE_TYPE__.
8472 Mon Sep 13 13:52:16 1993 K. Richard Pixley (rich@sendai.cygnus.com)
8474 * configure.in: match m8* rather than m88k so that m88110 is
8477 Tue Sep 7 12:19:32 1993 Doug Evans (dje@canuck.cygnus.com)
8479 * libc/sys/h8300hms/{Makefile.in, _exit.c, misc.c}:
8480 Renamed exit.c to _exit.c to avoid collision with stdlib/exit.c.
8483 * configure.in: Add multilib support to h8300.
8485 Mon Sep 6 14:07:06 1993 Doug Evans (dje@canuck.cygnus.com)
8487 * libc/stdlib/abort.c (abort): Remove _VOLATILE from return type.
8488 * libc/include/_ansi.h (_ATTRIBUTE): New macro for __attribute__.
8489 * libc/include/stdlib.h (exit, abort): Add noreturn attribute.
8491 Mon Sep 6 14:24:18 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8493 * configure.in: Corrected multidirs for sparc target.
8495 Mon Aug 30 15:56:44 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8497 Support for building newlib multiple times with different
8499 * configure.in: Only configure doc at top level. Set multidirs
8500 when appropriate for target, unless not at top level. If
8501 multidirs is set, independently configure each subdirectory.
8502 Adjust TOP, MULTIDIRS and MULTISUBDIR appropriately in Makefile.
8503 * Makefile.in (MULTIDIRS, MULTISUBDIR): New variables,
8504 automagically set by configure.in.
8505 (all): If MULTIDIRS is set, build multiple copies of libraries.
8506 (install): If MULTIDIRS is set, install multiple copies of
8507 libraries. Install in $(tooldir)/lib/$(MULTISUBDIR). If
8508 MULTISUBDIR is set, don't bother to install header files.
8509 * host/any (INCLUDES, CHEW): Use $(SRCTOP) rather than $(TOP) from
8511 * stub/configure.in: Set MULTISUBDIR appropriately.
8512 * stub/Makefile.in (install): Install in
8513 $(tooldir)/lib/$(MULTISUBDIR).
8514 * All Makefile.in files: Define SRCTOP as well as TOP.
8516 Mon Aug 30 10:34:24 1993 Doug Evans (dje@canuck.cygnus.com)
8518 * libc/machine/h8300/{mulhi3.S, divhi3.S}: Comment out if h8300h.
8519 * libc/machine/h8300/{mulsi3.S, divsi3.S}: Add h8300h support.
8521 Thu Aug 26 19:38:12 1993 Doug Evans (dje@canuck.cygnus.com)
8523 * libc/sys/h8300hms/exit.c (_exit): New function.
8525 Wed Aug 25 16:31:48 1993 K. Richard Pixley (rich@sendai.cygnus.com)
8527 * configure.in: recognize m88110.
8529 Fri Aug 20 16:46:23 1993 K. Richard Pixley (rich@sendai.cygnus.com)
8531 * libc/sys/m88kbug/crt0.c: pretty up, remove extraneous comments,
8532 prototype main and call with args.
8534 Fri Jul 30 16:52:47 1993 K. Richard Pixley (rich@cygnus.com)
8536 First real try at system traps for m88k-bug.
8537 * libc/sys/m88kbug/syscalls.c: many changes. Convert from stubs
8539 * libc/sys/m88kbug/sys/systraps.h: new file.
8541 Tue Jul 27 16:31:16 1993 K. Richard Pixley (rich@sendai.cygnus.com)
8543 Patches to fix info building when target does not use sys
8545 * libc/Makefile.in (targetdep.tex): add sys.tex separately.
8546 * libc/sys.tex, libc/sys/sys.tex: moved from libc/sys/sys.tex to
8548 * libc/sys/Makefile.in (doc): do nothing.
8550 Mon Jul 26 17:08:11 1993 K. Richard Pixley (rich@sendai.cygnus.com)
8552 * libc/Makefile.in (CRT0): new macro.
8553 (all): depend on $(CRT0) rather than crt0.o.
8555 * configure.in: fix libc_sys_dir -> libc_sys_lib thinko.
8556 do not default crt0, instead, set crt0 and crt0_dir based on
8557 sys_dir and stub_dir.
8559 * Makefile.in (CRT0_DIR): new macro.
8560 (all): depend on $(CRT0) rather than crt0.o which may not exist.
8561 (crt0.o): depend on $(CRT0_DIR)/$(CRT0) rather than simply
8563 ($(CRT0)): recur by cd'ing into $(CRT0_DIR).
8565 Sun Jul 25 17:51:51 MDT 1993 Jeffrey Wheat (cassidy@cygnus.com)
8567 * testsuite/lib/libm.exp:
8568 added code to support compiling and linking of tests for
8569 libm.sac (paranoia to be added next) and processing the
8570 pass or failure of the tests.
8572 * testsuite/config/unix-libm.exp:
8573 platform specific proc's for dealing with compiler, linker
8574 and the way we execute and process the test results.
8576 * testsuite/libm.sac/execute.exp:
8577 generic framework for the sac tests. the config and lib
8578 expect code for specific platforms tie it all together.
8580 * testsuite/libm.sac/test_is.c:
8581 changed the output of the test to be consistant with the
8582 other tests. parsing of pass nad fail messages is now fixed.
8584 Fri Jul 23 19:20:07 1993 Per Bothner (bothner@kalessin)
8586 * libc/include/{assert.h, ctype.h, dirent.h, errno.h, fastmath.h,
8587 locale.h, math.h, pwd.h, reent.h, setjmp.h, signal.h, stdio.h,
8588 stdlib.h, string.h, termios.h, time.h, utime.h, utmp.h}: For C++:
8589 #ifdef __cplusplus, surround by extern ""C { ... }.
8590 * libc/include/assert.h: Do *not* protect assert.h against
8591 multiple inclusion! Also, #undef it before #define, to allow
8593 * libc/include/stdio.h (getlogin, cuserid): Removed. These
8594 should be only in unistd.h.
8596 * libc/include/sys/{fcntl.h, reent.h, stat.h, time.h, times.h,
8597 unistd.h}: For C++: #ifdef __cplusplus, surround by extern ""C {
8600 Fri Jul 23 10:15:33 1993 Doug Evans (dje@canuck.cygnus.com)
8602 * libc/machine/sparc/Makefile.in: Must create a library, even
8605 Wed Jul 21 16:00:37 1993 K. Richard Pixley (rich@sendai.cygnus.com)
8607 * configure.in: set machine_dir for m88k. edit crt0 definition
8610 * Makefile.in, libc/Makefile.in (crt0): pull up from lower directories.
8612 * libc/Makefile.in (all): also build crt0.o.
8614 * libc/machine/i386/Makefile.in, libc/machine/sparc/Makefile.in,
8615 libc/machine/z8k/Makefile.in, libm/Makefile.in (clean): no need
8618 * libc/machine/m88k/Makefile.in (TOP, TARGETLIB): removed.
8619 (all): reworked to build in place.
8620 (clean): remove lib.a
8621 (Makefile): remove redundant ./, call $(SHELL) rather than sh.
8623 * libc/sys/m88kbug/crt0.c (start): renamed to _start.
8624 (_start): key off edata rather than _start_bss.
8626 Wed Jul 21 14:29:47 1993 david d `zoo' zuhn (zoo@cygnus.com)
8628 * libc/include/sys/unistd.h, libc/include/reent.h,
8629 libc/reent/sbrkr.c: change sbrk to return void* instead of char*.
8631 Tue Jul 20 13:19:18 1993 K. Richard Pixley (rich@sendai.cygnus.com)
8633 * libm/Makefile.in, libc/Makefile.in ($(SUBDIRS)): dollar escape a dollar sign.
8635 * Makefile.in (libc.a): break into two rules, one for libc.a and
8636 one for libc/libc.a. Force subdirs current before rebuilding
8638 (libm.a): break into two rules, one for libm.a and one for
8639 libm/libm.a. Force subdirs current before rebuilding library.
8641 * libc/Makefile.in (SUBLIBS): fix typo.
8643 * libc/sys/Makefile.in (all): force descent into subdirs, then
8644 rebuild library iff out of of date.
8646 Fri Jul 16 17:47:57 1993 K. Richard Pixley (rich@sendai.cygnus.com)
8648 Rework so that library is built and then finished rather than
8649 being built on each invocation of make.
8651 * host/any (machine_dir, sys_dir, signal_dir): these are not
8652 shared and have been moved to their associated Makefile.in's.
8653 (AR_FLAGS): switch to qc which is faster.
8654 * configure.in: no longer assign machine_dir for m88k. set
8655 stub_dir, stub_lib, & crt0 for m68k*-unknown-{aout,coff}. If
8656 stub_dir set, then add to configdirs. add comment about silly
8658 (configdirs): drop stub. It will be added only
8660 (libm_fp_lib, libc_unix_lib, libc_signal_lib, libc_machine_lib,
8661 libc_sys_dir, fake_sys_dir, libc_fake_sys_lib, stub_dir,
8662 stub_lib, crt0): new variables for tailoring lower level
8663 makefiles. Assign accordingly and edit into makefiles.
8664 * libm/Makefile.in: updated copyright.
8665 (TARGETLIB): removed.
8666 (FLAGS_TO_PASS): removed TARGETLIB, machine_dir, sys_dir.
8667 (SUBDIRS): removed TARGETDEP_DIRS.
8668 (LIBM_FP_LIB, SUBLIBS): new macros.
8670 (force): new target to force rebuilds.
8671 (Makefile): call $(SHELL) rather than sh. drop redundant ./
8672 * libc/sys/a29khif/Makefile.in, libc/sys/decstation/Makefile.in,
8673 libc/sys/go32/Makefile.in, libc/sys/h8300hms/Makefile.in,
8674 libc/sys/h8500hms/Makefile.in, libc/sys/m88kbug/Makefile.in,
8675 libc/sys/sh/Makefile.in, libc/sys/sparc64/Makefile.in,
8676 libc/sys/sun4/Makefile.in, libc/sys/sysvi386/Makefile.in,
8677 libc/sys/sysvnecv70/Makefile.in, libc/sys/z8ksim/Makefile.in,
8678 stub/m68kmvme/Makefile.in: updated copyright.
8679 (TARGETLIB, TARGETCRT0, CRT0): macros removed.
8680 (all): reworked. made this the default rule.
8681 (clean): also remove lib.a.
8682 (Makefile): call $(SHELL) rather than sh. drop redundant ./
8683 * stub/Makefile.in: updated copyright.
8684 (TARGETLIB, TARGETCRT0, CRT0, TOP): removed.
8685 (stub_lib): new macro.
8686 (FLAGS_TO_PASS): removed TARGETLIB, stub_dir, TARGETCRT0. Added
8689 (clean, install): assume stub_dir exists.
8690 (Makefile): depend on configure.in. call $(SHELL) rather than
8691 sh. drop redundant ./
8692 * stub/configure.in (stublib): new macro, assign it, edit it into
8694 * Makefile, libc/Makefile.in, doc/Makefile.in, libc/sys/Makefile.in:
8697 (Makefile): call $(SHELL) rather than sh. drop redundant ./
8698 * libc/Makefile.in (TARGETCRT0): removed.
8699 (FLAGS_TO_PASS): dropped TARGETLIB, machine_dir, sys_dir,
8701 (SUBDIRS): drop TARGETDEP_DIRS.
8702 (LIBC_SIGNAL_LIB, LIBC_SYS_LIB, LIBC_MACHINE_LIB, LIBC_UNIX_LIB,
8703 LIBC_FAKE_SYS_LIB, SUBLIBS): new macros for configuration.
8704 (force): new target to force rebuilds.
8705 * libc/sys/Makefile.in (TARGETCRT0, sys_dir): removed.
8706 (FLAGS_TO_PASS): TARGETLIB, machine_dir, sys_dir, TARGETCRT0
8708 (clean): assume sys_dir always exists.
8709 * libm/test/Makefile.in (Makefile): call $(SHELL) rather than sh.
8711 * libc/ctype/Makefile.in, libc/errno/Makefile.in,
8712 libc/locale/Makefile.in, libc/machine/Makefile.in,
8713 libc/machine/a29k/Makefile.in, libc/machine/h8300/Makefile.in,
8714 libc/machine/h8500/Makefile.in, libc/machine/i386/Makefile.in,
8715 libc/machine/i960/Makefile.in, libc/machine/m68k/Makefile.in,
8716 libc/machine/mips/Makefile.in, libc/machine/necv70/Makefile.in,
8717 libc/machine/sh/Makefile.in, libc/machine/sparc/Makefile.in,
8718 libc/machine/z8k/Makefile.in, libc/reent/Makefile.in,
8719 libc/signal/Makefile.in, libc/stdio/Makefile.in,
8720 libc/stdlib/Makefile.in, libc/string/Makefile.in,
8721 libc/sys/Makefile.in, libc/syscalls/Makefile.in,
8722 libc/time/Makefile.in, libc/unix/Makefile.in,
8723 libm/ieeefp/Makefile.in, libm/math/Makefile.in: updated copyright.
8724 (TARGETLIB): removed.
8726 (clean): also remove lib.a.
8727 (Makefile): call $(SHELL) rather than sh. drop redundant ./
8728 * Makefile.in: (machine_dir, sys_dir, stub_dir, stub_lib, CRT0):
8730 (SUBDIRS): moved to follow frag inclusion, change stub to
8732 (FLAGS_TO_PASS): removed machine_dir, sys_dir, signal_dir which
8733 are now set in the libc Makefile.
8734 * libc/machine/Makefile.in (TARGETCRT0, machine_dir): removed.
8735 (FLAGS_TO_PASS): removed TARGETLIB, machine_dir, sys_dir,
8737 (force): new target to force rebuilds.
8738 * stub/configure.in: determine and set stub_lib for for Makefile.
8740 Thu Jul 15 12:01:27 1993 Doug Evans (dje@canuck.cygnus.com)
8742 * libc/sys/h8300hms/Makefile.in: Make `all' the default target.
8743 crt0.s renamed to crt0.S.
8744 * libc/sys/h8300hms/crt0.S: Add h8/300h support.
8746 * libc/machine/h8300/Makefile.in: Make `all' the default target.
8747 * libc/machine/h8300/{cmpsi.S,ucmpsi.S}: #ifdef out entire file if
8749 * libc/machine/h8300/defines.h: Add macros to handle pointers for
8750 h8300 (16 bits) and h8300h (32 bits).
8751 * libc/machine/h8300/{divsi3.S,mulsi3.S,memcpy.S,memset.S,
8752 reg_memcpy.S,reg_memset.S,strcmp.S}: Add h8300h support.
8754 Thu Jul 15 10:13:29 1993 Ian Lance Taylor (ian@cygnus.com)
8756 * libc/machine/m88k/setjmp.S, Makefile.in: New files; a simple
8757 implementation of setjmp and longjmp for the m88k.
8758 * libc/include/machine/setjmp.h: Added __m88000__ case.
8760 Wed Jul 14 10:10:30 1993 Doug Evans (dje@canuck.cygnus.com)
8762 * configure.in: Recognize h8300h as variant of h8300.
8764 Tue Jul 13 12:24:11 1993 Steve Chamberlain (sac@phydeaux.cygnus.com)
8766 * libc/include/sys/unistd.h (read, write): get prototypes right.
8767 (sbrk): New prototype.
8768 * libc/reent/sbrkr.c (sbrkr): Use correct sbrk prototype.
8769 * libc/stdio/local.h: Include unistd.h.
8770 * libc/machine/h8300/syscalls.c: Names have changed.
8772 Mon Jul 12 18:08:42 1993 K. Richard Pixley (rich@cygnus.com)
8774 * configure.in: add sys_dir assignment for m88k-bug.
8776 Thu Jul 8 09:16:21 1993 Doug Evans (dje@canuck.cygnus.com)
8778 * libc/sys/sparc64/sys/syscallasm.h: New macros to handle either
8780 * libc/sys/sparc64: all *.S files: Use new macros.
8781 * libc/sys/sparc64/isatty.c: New file.
8782 * libc/sys/sparc64/Makefile.in: Stop using /lib/libc.a for
8783 functions beyond what newlib provides.
8785 Thu Jul 8 09:11:28 1993 Doug Evans (dje@canuck.cygnus.com)
8787 * libc/include/sys/stat.h: Move st_atime so not doubly defined for
8790 Thu Jul 8 09:09:16 1993 Doug Evans (dje@canuck.cygnus.com)
8792 * libc/include/machine/ieeefp.h: Add support for h8/300h.
8794 Fri Jul 2 10:11:20 1993 K. Richard Pixley (rich@cygnus.com)
8796 * configure.in: add m88k.
8797 * libc/include/machine/ieeefp.h: add case for m88k. Also add
8798 sanity check so no one else need ever chase what I did to find
8801 * libm/math/Makefile.in (FAKEC): added atanf.c log1pf.c scalbnf.c.
8803 Fri Jul 2 09:15:21 1993 Ian Lance Taylor (ian@cygnus.com)
8805 * doc/makedoc.c: Include <ctype.h>.
8807 Wed Jun 30 09:35:06 1993 Doug Evans (dje@canuck.cygnus.com)
8809 * libc/Makefile.in (FLAGS_TO_PASS): Add TARGET_ASFLAGS.
8810 * libc/sys/Makefile.in (FLAGS_TO_PASS): Add TARGET_ASFLAGS.
8811 * libc/machine/Makefile.in (FLAGS_TO_PASS): Add TARGET_ASFLAGS.
8813 * libm/test/Makefile.in (all): Link with ../../lib[cm].a.
8815 Sun Jun 27 17:05:20 1993 Doug Evans (dje@sphagnum.cygnus.com)
8817 * libc/include/errno.h (ENOSYS): Added.
8819 * libc/unix/getpwd.c (getcwd): Fix typo (_up -> up).
8821 Mon Jun 21 09:03:32 1993 Steve Chamberlain (sac@phydeaux.cygnus.com)
8823 * libc/stdio/fflush.c (fflush): Check for reent struct
8825 * libc/stdio/fdopen.c (fdopen): Avoid namespace conflict.
8827 Fri Jun 18 16:06:05 1993 Mark Eichin (eichin@rtl.cygnus.com)
8829 * libc/stdlib/dtoastub.c: new file -- move user callable "dtoa"
8830 out of dtoa.c so it doesn't pollute the namespace.
8831 * libc/include/_syslist.h: new file -- mappings from _function to
8832 function, for systems where we can't win (by default, all of them,
8833 until we start updating system calls.)
8834 * libc/syscalls: new directory -- stubs for exporting _function
8835 names as unmodified function names.
8836 * libc/configure.in: add MISSING_SYSCALL_NAMES to enable
8837 _syslist.h on all platforms by default, but put hooks in for
8838 fake_sys_dir so we can include it when we've renamed the system
8840 * libc/reent/execr.c libc/reent/filer.c libc/reent/fstatr.c
8841 libc/reent/linkr.c libc/reent/sbrkr.c libc/reent/statr.c
8842 libc/signal/raise.c libc/signal/signal.c libc/stdio/fdopen.c
8843 libc/stdio/mktemp.c libc/stdio/tmpnam.c libc/stdlib/abort.c
8844 libc/stdlib/system.c libc/unix/getcwd.c libc/unix/getlogin.c
8845 libc/unix/getpass.c libc/unix/getut.c libc/unix/ttyname.c: change
8846 non ANSI functions to call _function.
8848 Wed Jun 9 09:48:26 1993 Ian Lance Taylor (ian@cygnus.com)
8850 * libc/stdlib/strtoul.c (_strtoul_r): Handle leading 0 correctly
8851 when base 16 is specified. Don't accept non-digits if radix > 10.
8853 Thu Jun 3 10:01:15 1993 Doug Evans (dje@canuck.cygnus.com)
8855 * libc/include/math.h: Rename xxx_r fns to _xxx_r.
8857 Wed Jun 2 16:54:16 1993 Jim Wilson (wilson@sphagnum.cygnus.com)
8859 * libc/include/sys/stat.h: Surround text after #endif with
8862 Wed Jun 2 12:47:32 1993 Ian Lance Taylor (ian@cygnus.com)
8864 * libc/stdlib/mallocr.c: If MALLOC_PROVIDED is defined, just make
8865 _malloc_r, _realloc_r, and free_r call the corresponding
8866 non-reentrant functions.
8868 * libm/math/modf.c (modf): We now take the address of ipart, so
8869 don't make it a register variable.
8871 Tue Jun 1 18:25:54 1993 Doug Evans (dje@canuck.cygnus.com)
8873 * libm/math/*: Rename all xxx_r fns to _xxx_r.
8875 Wed May 26 22:06:35 1993 Roland H. Pesch (pesch@cygnus.com)
8877 * libc/libc.texinfo and embedded docn throughout: formatting
8878 improvements, minor rephrasing for clarity, and improved
8881 Sun May 23 17:29:49 1993 Steve Chamberlain (sac@thepub.cygnus.com)
8883 * libm/ieeefp/infinity.c (maxpowtwof): Fix initialzation bug.
8885 * libc/stdio/cvt.c (_licvt): Print the right value on machines
8886 where sizeof(int) != sizeof(long).
8888 Fri May 21 22:09:32 1993 Roland H. Pesch (pesch@fowanton.cygnus.com)
8890 * libc/reent/execr.c, libc/reent/filer.c, libc/reent/linkr.c,
8891 libc/reent/sbrkr.c, libc/reent/statr.c, libc/stdio/tmpnam.c,
8892 libc/stdlib/atol.c, libc/stdlib/rand.c, libc/string/strpbrk.c,
8893 libc/string/strspn.c, libm/ieeefp/isnan.c, libm/math/bessel.c,
8894 libm/math/matherr.c: changes for better docn formatting (info).
8896 * libc/libc.texinfo, libc/ctype/ctype.tex, libc/locale/locale/tex,
8897 libc/reent/reent.tex, libc/signal/signal.tex,
8898 libc/stdio/stdio.tex, libc/stdlib/stdlib.tex,
8899 libc/string/strings.tex, libc/sys/sys.tex, libc/time/time.tex,
8900 libm/libm.texinfo, libm/ieeefp/ieeefp.tex, libm/math/math.tex: use
8901 makeinfo node defaulting to get better Info file node structure.
8902 (Requires recent sac change to doc/makedoc.c and doc/doc.str.)
8903 Also include a few formerly missing sections (subroutines).
8905 * doc/doc.str: delete fossil expansion for "func"
8907 * default.menu, no-signal.menu: delete.
8909 * Makefile.in, libc/Makefile.in, configure.in, host/any: simplify
8910 method used to adjust doc for missing "signals" chapter when
8911 signal_dir is empty.
8913 Thu May 20 21:38:37 MDT 1993 Jeffrey Wheat (cassidy@cygnus.com)
8915 * configure.in: added testsuite/libm.sac
8917 Wed May 19 14:52:34 1993 Doug Evans (dje@thepub.cygnus.com)
8919 * libc/sys/sparc64/crt0.S: Set %g4 to 0 (to test Medium/Anywhere
8922 Tue May 18 13:17:21 1993 Ian Lance Taylor (ian@cygnus.com)
8924 * libm/Makefile.in: Use $(MAKE) rather than make, and define
8925 MAKEOVERRIDES to be empty.
8927 Mon May 17 08:42:44 1993 Ian Lance Taylor (ian@cygnus.com)
8929 * configure.in: Don't build mips-*-* with -msoft-float, since that
8930 makes it incompatible with hard floating point.
8932 Mon May 17 00:03:35 MDT 1993 Jeffrey Wheat (cassidy@cygnus.com)
8934 * Makefile.in: added recursive 'make check'
8936 Thu May 13 16:24:18 MDT 1993 Jeffrey Wheat (cassidy@cygnus.com)
8938 * configure.in: added ./testsuite ./testsuite/libm.paranoia
8939 * ./testsuite/Makefile.in: created
8940 * ./testsuite/libm.paranoia: paranoia tests added
8942 Thu May 13 10:30:24 1993 Ian Lance Taylor (ian@cygnus.com)
8944 * configure.in: For mips-*-* set machine_dir to mips.
8946 * libc/machine/mips: New directory.
8947 * libc/machine/mips/Makefile.in: New file.
8948 * libc/machine/mips/setjmp.S: New file; simplistic MIPS version of
8950 * libc/include/machine/setjmp.h: Added __mips__ case.
8952 * libc/machine/lmips: Removed unused and useless directory.
8954 Mon May 3 10:22:31 1993 Ian Lance Taylor (ian@cygnus.com)
8956 * configure.in: Accept i486-*-sco* as well as i386-*-sco*.
8958 Thu Apr 15 15:16:44 1993 Doug Evans (dje@canuck.cygnus.com)
8960 * libc/sys/sparc64/crt0.S: Add comment (%g1 contains atexit arg at
8963 Fri Apr 9 13:32:26 1993 Ian Lance Taylor (ian@cygnus.com)
8965 * libc/include/machine/setjmp-dj.h: Use _SETJMP_DJ_H rather than
8968 Thu Apr 8 10:07:18 1993 Doug Evans (dje@canuck.cygnus.com)
8970 * libm/test/convert.c: structure member errno -> errno_val.
8971 Must include <errno.h> to use errno, it's a macro now.
8972 * libm/test/math.c: Ditto.
8973 * libm/test/math2.c: Include errno.h.
8974 * libm/test/string.c: Ditto.
8975 * libm/test/test.h: structure member errno -> errno_val.
8976 Remove extern int errno decl.
8978 Thu Apr 8 07:56:33 1993 Ian Lance Taylor (ian@cygnus.com)
8980 * libc/stdio/Makefile.in: Added dependencies on local header
8982 * libc/stdio/std.h, libc/stdio/vfprintf.h: Removed unused header
8985 Wed Apr 7 16:19:32 1993 Ian Lance Taylor (ian@cygnus.com)
8987 * libc/include/machine/ieeefp.h: Added __MIPSEB__ case.
8989 Wed Apr 7 10:55:21 1993 Doug Evans (dje@canuck.cygnus.com)
8991 * libc/stdio/siprintf.c libc/stdio/sscanf.c libc/stdio/vsprintf.c:
8994 * libc/stdio/vfprintf.c: No need to declare _icvt, _licvt, _sicvt.
8995 * libc/stdio/local.h: Add prototype for _licvt.
8997 * libc/stdio/ungetc.c (__submore): Use _malloc_r,_realloc_r
8998 instead of malloc,reealloc.
9000 * libc/stdlib/local.h: New file.
9001 * libc/stdlib/efgcvt.c: #include local.h.
9002 (gcvt): Fix call to _gcvt.
9003 * libc/stdlib/ecvtbuf.c: #include local.h.
9005 * libc/stdlib/Makefile.in: new files mallocr.c mstats.c.
9006 * libc/stdlib/mallocr.c mstats.c malloc.h: New files.
9007 * libc/stdlib/malloc.c: main routines moved to mallocr.c.
9009 * libc/stdlib/atexit.c: moved global data to struct _reent.
9010 * libc/stdlib/exit.c: use struct _atexit in struct _reent.
9012 * libc/reent/reent.c (inpure_data): _REENT_INIT macro modified.
9014 Wed Apr 7 09:41:50 1993 Doug Evans (dje@canuck.cygnus.com)
9016 * libc/include/sys/reent.h: Stuff required by ANSI headers moved
9017 here from ../reent.h.
9019 Tue Apr 6 12:56:01 1993 Ian Lance Taylor (ian@cygnus.com)
9021 * Makefile.in (MATHOBJS_IN_LIBC): List of object files which
9022 should be provided in both libc.a and libm.a.
9023 (libc.a): Depend on targ-include and libm.a. Copy
9024 $(MATHOBJS_IN_LIBC) from libm.a to libc.a.
9025 (libm.a): Depend on targ-include.
9026 * configure.in (subdirs): Removed libc/math.
9028 Mon Apr 5 10:18:16 1993 Steve Chamberlain (sac@thepub.cygnus.com)
9030 * libm/ieeefp/infinity.c (maxpowtwo): Fix initialization bug.
9032 Sat Apr 3 11:06:07 1993 Doug Evans (dje@canuck.cygnus.com)
9034 * libc/include/{errno.h, math.h, stdio.h, stdlib.h}: Use
9035 sys/reent.h instead of reent.h.
9036 * libc/include/reent.h: Split into two parts: stuff needed by ANSI
9037 headers moved to sys/reent.h.
9038 * libc/include/signal.h: _MAX_SIGNALS moved to sys/signal.h.
9039 * libc/include/sys/signal.h: Define _MAX_SIGNALS if
9040 __need__MAX_SIGNALS defined.
9041 * libc/include/stdio.h: struct __sFILE moved to sys/reent.h.
9042 std{in,out,err} refer to new _std{in,out,err} members.
9044 Fri Apr 2 11:27:12 1993 Doug Evans (dje@canuck.cygnus.com)
9046 * libc/include/sys/signal.h: #define _SYS_SIGNAL_H for general
9049 Fri Apr 2 09:41:10 1993 Doug Evans (dje@canuck.cygnus.com)
9051 * libc/sys/sparc64/execve.S (execve): Insert nop in delay slot,
9052 rather than whatever macro seterrno() has.
9054 Thu Apr 1 16:47:08 1993 Doug Evans (dje@canuck.cygnus.com)
9056 * libc/locale/locale.c: Reentrant routines _r_xxx renamed to
9057 _xxx_r. struct reent_struct renamed to struct _reent for ANSI.
9059 * libc/include/machine/fastmath.h: Use _HAVE_STDC instead of
9062 * libc/reent/{execr.c, filer.c, fstatr.c, linkr.c, reent.c,
9063 reent.tex, sbrkr.c, statr.c}: _r_xxx reentrant routines renamed to
9064 _xxx_r. struct reent_struct renamed to struct _reent for ANSI.
9066 * libc/signal/signal.c: Reentrant routines _r_xxx renamed to
9067 _xxx_r. struct reent_struct renamed to struct _reent for ANSI.
9069 * libc/stdio/{fclose.c, fdopen.c, findfp.c, fiprintf.c, flags.c,
9070 fopen.c, fprintf.c, freopen.c, fscanf.c, fseek.c, ftell.c,
9071 fwalk.c, getchar.c, gets.c, iprintf.c, local.h, makebuf.c,
9072 mktemp.c, perror.c, printf.c, putchar.c, puts.c, refill.c,
9073 remove.c, rename.c, scanf.c, setvbuf.c, siprintf.c, sprintf.c,
9074 sscanf.c, stdio.c, tmpfile.c, tmpnam.c, vfprintf.c, vfprintf.h,
9075 vfscanf.c, vprintf.c, vsprintf.c}: Reentrant routines _r_xxx
9076 renamed to _xxx_r. struct reent_struct renamed to struct _reent
9077 for ANSI. structure members given leading "_" for ANSI. Use
9078 _HAVE_STDC instead of __STDC__ and _HAVE_STDARG.
9080 * libc/stdlib/{__adjust.c, calloc.c, dtoa.c, ecvtbuf.c, malloc.c,
9081 mprec.c, mprec.h, rand.c, std.h, strtod.c, strtol.c, strtoul.c,
9082 system.c}: Reentrant routines _r_xxx renamed to _xxx_r. struct
9083 reent_struct renamed to struct _reent for ANSI.
9084 Structure members given leading "_" for ANSI.
9085 _CONST --> const in prototypes.
9086 Use _HAVE_STDC instead of __STDC__.
9088 * libc/string/strtok.c: Reentrant routines _r_xxx renamed to
9090 struct reent_struct renamed to struct _reent for ANSI.
9091 Structure members given leading "_" for ANSI.
9093 * libc/time/asctime.c: Reentrant routines _r_xxx renamed to
9095 struct reent_struct renamed to struct _reent for ANSI.
9097 * libm/math/{acos.h, acosh.h, asin.c, asinh.h, atanh.h, bessel.h,
9098 cbrt.h, cosh.h, erf.c, erf.h, error.c, exp.c, fmod.c, frexp.h,
9099 gamma.h, hypot.h, ldexp.c, log.h, log10.c, log1p.c log2.c,
9100 mathimpl.h, pow.c, remainder.c, sincos.c, sinh.h, sqrt.h, tan.c,
9101 tanh.h}: struct reent_struct renamed to struct _reent for ANSI.
9103 * libc/include/{_ansi.h, ctype.h, math.h, reent.h, locale.h,
9104 signal.h, stdio.h, stdlib.h, string.h, time.h}:
9105 Use _HAVE_STDC instead of __STDC__ and _HAVE_STDARG.
9106 #ifndef _STRICT_ANSI non-ANSI routines.
9107 Reentrant routines renamed from _r_xxx to _xxx_r.
9108 No need to use _STRICT_ANSI on _xxx_r reentrant routines.
9109 Use _STRICT_ANSI instead of __STRICT_ANSI, _ANSI_SOURCE, etc.
9110 Clean up namespace (structure members have leading "_").
9111 struct reent_struct renamed to struct _reent for ANSI compliance.
9112 _CONST --> const in function prototypes.
9114 * libc/include/string.h: Add NULL and size_t.
9116 * libc/sys/sparc64/Makefile.in: New syscall routines for link,
9117 unlink, wait, wait4. Reentrant syscall routines close, fork,
9118 fstat, link, lseek, open, read, sbrk, stat, unlink, wait, wait4,
9120 * libc/sys/sparc64/cerror.S (cerror_r): New routine.
9121 * libc/sys/sparc64/{close.S, fork.S, fstat.S, link.S, lseek.S,
9122 open.S, read.S, sbrk.S, stat.S, unlink.S, wait.S, wait4.S,
9123 write.S}: Define reentrant versions.
9124 * libc/sys/sparc64/sys/syscallasm.h (defsyscall_r): New macro for
9127 * libc/sys/sparc64/crt0.S (start): Fix initialization of environ.
9129 * libc/include/stdlib.h (RAND_MAX): Fix value.
9131 Thu Apr 1 12:28:30 1993 Ian Lance Taylor (ian@cygnus.com)
9133 * libc/sys/a29khif/_main.c: Removed unnecessary file.
9134 * libc/sys/a29khif/Makefile.in (OFILES): Removed _main.c, moved
9135 VPATH support targets after all: target.
9137 * stub/mvme135/mvme.S: Renamed exceptionhandler to
9138 exceptionHandler, which is what mvme135-stub.c expects.
9140 Wed Mar 31 17:42:03 1993 Doug Evans (dje@cygnus.com)
9142 * libc/stdio/tmpnam.c (worker): Fix test for _r_open() failure.
9144 * libc/unix/getpass.c (getpass): Use stdin,stderr instead of
9145 def_stdin/def_stderr (latter removed from stdio.h to make it ANSI
9148 Tue Mar 30 09:58:21 1993 Doug Evans (dje@canuck.cygnus.com)
9150 * libc/reent/execr.c (_r_wait): Re-order args to make reent_struct
9152 libc/reent/filer.c (_r_open, _r_close, _r_lseek, _r_read,
9154 libc/reent/fstatr.c (_r_fstat): Ditto.
9155 libc/reent/linkr.c (_r_link, _r_unlink): Ditto.
9156 libc/reent/sbrkr.c (_r_sbrk): Ditto.
9157 libc/reent/statr.c (_r_stat): Ditto.
9159 * libc/stdio/fopen.c (_r_fopen): Re-order args to _r_open.
9160 * libc/stdio/freopen.c (freopen): Ditto for _r_open, _r_free.
9161 * libc/stdio/fseek.c (fseek): Ditto for _r_fseek.
9162 * libc/stdio/makebuf.c (__smakebuf): Ditto for _r_fstat.
9163 * libc/stdio/mktemp.c (_gettemp): Ditto for _r_stat, _r_open.
9164 * libc/stdio/remove.c (_r_remove): Ditto for _r_unlink.
9165 * libc/stdio/rename.c (_r_rename): Ditto for _r_link, _r_unlink.
9166 * libc/stdio/stdio.c (__sread): Ditto for _r_read.
9167 (__swrite): Ditto for _r_lseek, _r_write.
9168 (__sseek): Ditto for _r_lseek.
9169 (__close): Ditto for _r_close.
9170 * libc/stdio/tmpnam.c (worker): Ditto for _r_open, _r_close.
9172 * libc/stdlib/malloc.c (_r_morecore): Re-order args to _r_sbrk.
9173 * libc/stdlib/system.c (_r_system): Ditto for _r_wait.
9175 * libc/include/reent.h: Re-order arguments to _r_xxx syscall fns
9176 to make reent_struct the first argument (and thus consistent with
9177 the rest of newlib).
9179 * stub/mvme135/mvme135-stub.c (initializeRemcomErrorFrame): Remove
9180 reference to __STDC__.
9182 Mon Mar 29 12:34:32 1993 Doug Evans (dje@canuck.cygnus.com)
9184 * libc/stdlib/exit.c (exit): Use _REENT->__cleanup instead of
9187 Wed Mar 24 11:54:35 1993 Doug Evans (dje@canuck.cygnus.com)
9189 * libc/stdio/freopen.c (freopen): Ensure stdio is initialized
9191 libc/stdio/fclose.c (fclose): Ditto.
9193 Tue Mar 23 01:26:52 1993 Doug Evans (dje@rtl.cygnus.com)
9195 * Run through indent and rename reentrant routines for ANSI.
9196 libc/stdio/{clearerr.c cvt.c fclose.c fdopen.c feof.c ferror.c
9197 fflush.c fgetc.c fgetpos.c fgets.c findfp.c fiprintf.c flags.c
9198 fopen.c fprintf.c fputc.c fputs.c fread.c freopen.c fscanf.c
9199 fseek.c fsetpos.c ftell.c fvwrite.c fwalk.c fwrite.c getc.c
9200 getchar.c gets.c iprintf.c makebuf.c mktemp.c perror.c printf.c
9201 putc.c putchar.c puts.c refill.c remove.c rename.c rewind.c rget.c
9202 scanf.c setbuf.c setvbuf.c siprintf.c sprintf.c sscanf.c stdio.c
9203 tmpfile.c tmpnam.c ungetc.c vfprintf.c vfscanf.c vprintf.c
9204 vsprintf.c wbuf.c wsetup.c local.h}
9206 * libc/locale/locale.c: Reformat and rename for ANSI, GNU style.
9208 * Run through indent and rename xxx_r fns to _r_xxx for ANSI.
9209 libc/stdlib/{__adjust.c __exp10.c __ten_mu.c abort.c abs.c
9210 assert.c atexit.c atof.c atoi.c atol.c bsearch.c calloc.c div.c
9211 dtoa.c ecvtbuf.c efgcvt.c exit.c getenv.c labs.c ldiv.c malloc.c
9212 mbtowc.c mprec.c putenv.c qsort.c rand.c setenv.c strdup.c
9213 strtod.c strtol.c strtoul.c system.c wctomb.c mprec.h}
9215 * Run through indent.
9216 libc/string/{bcmp.c bcopy.c bzero.c index.c memchr.c memcmp.c
9217 memcpy.c memmove.c memset.c rindex.c strcat.c strchr.c strcmp.c
9218 strcoll.c strcpy.c strcspn.c strerror.c strlen.c strncat.c
9219 strncmp.c strncpy.c strpbrk.c strrchr.c strspn.c strstr.c strtok.c
9222 * libc/time/{asctime.c clock.c ctime.c difftime.c gmtime.c
9223 localtime.c mktime.c strftime.c time.c}:
9224 Run through indent and rename xxx_r (reentrant) fns to _r_xxx for ANSI.
9226 * Reformatting + renaming (for ANSI, GNU style, consistency).
9227 libc/include/{_ansi.h, assert.h, ctype.h, errno.h, fastmath.h,
9228 ieeefp.h, locale.h, math.h, paths.h, pwd.h, reent.h, setjmp.h,
9229 signal.h, stdio.h, stdlib.h, string.h, time.h, unistd.h}
9231 Fri Mar 19 11:28:01 1993 Doug Evans (dje@cygnus.com)
9233 * libc/include/stdio.h (stdin_r): Fix.
9235 Fri Mar 19 09:43:48 1993 Ian Lance Taylor (ian@cygnus.com)
9237 * Makefile.in: Unexport some variables to keep GNU make from
9238 putting them in the environment and using up needed ARG_MAX space
9239 (a hack is used to let this work with older makes as well).
9241 Tue Mar 16 15:11:08 1993 Ian Lance Taylor (ian@cygnus.com)
9243 * Makefile.in: Use $(MAKE) rather than make.
9244 (MAKEOVERRIDES): Define to be empty.
9245 (FLAGS_TO_PASS): Don't pass down LD (it's not used).
9246 (libc.a, libm.a): Depend on targ-include.
9247 * host/any (LD): Don't define.
9248 (INCLUDES): Use targ-include.
9249 * stub/Makefile.in (MAKEOVERRIDES): Define to be empty.
9250 (FLAGS_TO_PASS): Don't pass down LD (it's not used).
9251 * libc/Makefile.in: Use $(MAKE) rather than make.
9252 (MAKEOVERRIDES): Define to be empty.
9253 (FLAGS_TO_PASS): Don't pass LD (it's not used).
9254 (all): Rewrote to be slightly smaller.
9255 * libc/machine/Makefile.in, libc/sys/Makefile.in (MAKEOVERRIDES):
9257 (FLAGS_TO_PASS): Don't pass LD (it's not used).
9258 * libm/Makefile.in (FLAGS_TO_PASS): Don't pass LD (it's not used).
9260 Mon Mar 15 08:45:41 1993 Ian Lance Taylor (ian@cygnus.com)
9262 * libc/sys/go32/gerrno.s: Renamed from errno.s to avoid conflict
9265 Fri Mar 12 09:46:54 1993 Ian Lance Taylor (ian@cygnus.com)
9267 * Changes for reentrancy.
9268 libc/stdio/fdopen.c, libc/stdio/freopen.c, libc/stdio/perror.c:
9269 Use ptr->_errno, not errno.
9270 libc/stdio/mktemp.c (mkstemp_r, mktemp_r): New functions.
9271 libc/stdio/remove.c (remove_r): New function.
9272 libc/stdio/rename.c (rename_r): New function.
9273 libc/stdio/fopen.c, libc/stdio/freopen.c, libc/stdio/fseek.c,
9274 libc/stdio/makebuf.c, libc/stdio/mktemp.c, libc/stdio/remove.c,
9275 libc/stdio/rename.c, libc/stdio/stdio.c, libc/stdio/tmpnam.c: Use
9276 reentrant versions of system calls.
9277 libc/stdio/gets.c: Call getchar_f, not nonexistent getchar_r.
9278 libc/stdio/scanf.c: Use stdin_r, not nonexistent stdin_n.
9279 libc/stdio/tmpfile.c: Use tmpnam_f, not nonexistent tmpnam_r.
9280 libc/stdio/findfp.c: Include <string.h>.
9281 libc/stdio/fread.c, libc/stdio/rget.c, libc/stdio/scanf.c: Include
9283 libc/stdio/wbuf.c: Include "fvwrite.h"
9285 * libc/stdlib/{dtoa.c, ecvtbuf.c, mprec.c, strtod.c}: Include
9287 libc/stdlib/malloc.c: Call sbrk_r rather than sbrk.
9288 (NULL): Don't define if already defined.
9289 libc/stdlib/system.c: Call reentrant versions of system calls.
9290 (system_r): New function.
9292 * Changes for reentrancy.
9293 libc/include/_ansi.h (_PARAMS): New macro.
9294 libc/include/errno.h: Define errno as a macro that calls __errno.
9295 (__errno_r): New macro for reentrant code.
9296 libc/include/math.h: Include reent.h. Declare many reentrant
9298 (signgam): Now a macro, not a variable.
9299 (struct exception): Added err field.
9300 libc/include/reent.h: Don't declare __sglue. Added function
9302 (struct reent_struct): Moved errno to beginning. Added _signgam.
9303 libc/include/stdio.h, libc/include/stdlib.h: Added function
9306 * More reentrancy hacking.
9307 libc/errno/errno.c (__errno): New function.
9308 libc/reent/execr.c, libc/reent/filer.c, libc/reent/fstatr.c,
9309 libc/reent/linkr.c, libc/reent/sbrkr.c, libc/reent/statr.c: New
9312 * Added many new reentrant functions to libm/math/*.
9313 libm/math/error.c (__matherror): Added reent_struct pointer
9314 argument. Changed all callers.
9315 libm/math/gamma.c (signgam): Removed. Set ptr->_signgam, instead.
9316 libm/math/exp.h, libm/math/pow.h, libm/math/sincos.h,
9317 libm/math/tan.h: Removed obsolete unused header files.
9319 * libc/sys/a29khif/stubs.s: Use register lr0, not v0.
9321 * libc/sys/sun/Makefile.in (COPYOFILES): Don't pull in errno.o.
9323 Mon Mar 8 16:43:43 1993 Steve Chamberlain (sac@thepub.cygnus.com)
9325 * libc/sys/a29khif/stubs.s: clobber safe register, and fill all
9328 Tue Mar 2 14:47:00 1993 Jeffrey Osier (jeffrey@fowanton.cygnus.com)
9330 * libc/libc.texinfo: comment out reentrancy chapter (duh)
9332 Tue Mar 2 14:34:16 1993 Jeffrey Osier (jeffrey@fowanton.cygnus.com)
9334 * libc/reent/reent.tex: New file. (text from
9335 newlib/libc/libc.texinfo)
9336 * libc/stdio/tmpnam.c: fixed doc typo
9337 * libc/stdlib/rand.c: fixed doc typo
9339 Tue Mar 2 14:34:16 1993 Jeffrey Osier (jeffrey@fowanton.cygnus.com)
9341 * libc/reent/reent.tex: New file. (text from
9342 newlib/libc/libc.texinfo)
9344 Fri Feb 26 12:20:54 1993 Steve Chamberlain (sac@thepub.cygnus.com)
9346 support for reentrancy
9347 * libc/reent/reent.c, libc/reent/Makefile.in, libc/reent/reent.c:
9349 * libc/errno/errno.c, libc/include/ieeefp.h,
9350 libc/include/locale.h, libc/include/reent.h,
9351 libc/include/signal.h, libc/include/stdio.h,
9352 libc/include/stdlib.h, libc/include/string.h, libc/include/time.h,
9353 libc/signal/signal.c libc/stdio/cvt.c, libc/stdio/fclose.c,
9354 libc/stdio/fdopen.c, libc/stdio/fflush.c, libc/stdio/fgets.c,
9355 libc/stdio/findfp.c, libc/stdio/flags.c, libc/stdio/fopen.c,
9356 libc/stdio/fputc.c, libc/stdio/freopen.c, libc/stdio/fseek.c,
9357 libc/stdio/ftell.c, libc/stdio/fwalk.c, libc/stdio/getchar.c,
9358 libc/stdio/gets.c, libc/stdio/glue.h, libc/stdio/iprintf.c,
9359 libc/stdio/local.h, libc/stdio/makebuf.c, libc/stdio/perror.c,
9360 libc/stdio/printf.c, libc/stdio/putchar.c, libc/stdio/puts.c,
9361 libc/stdio/refill.c, libc/stdio/scanf.c, libc/stdio/setvbuf.c,
9362 libc/stdio/sprintf.c, libc/stdio/tmpfile.c, libc/stdio/tmpnam.c,
9363 libc/stdio/ungetc.c, libc/stdio/vfprintf.c, libc/stdio/vfprintf.h,
9364 libc/stdio/vfscanf.c, libc/stdio/vprintf.c, libc/stdio/wsetup.c,
9365 libc/stdlib/__adjust.c, libc/stdlib/__exp10.c,
9366 libc/stdlib/assert.c, libc/stdlib/atexit.c, libc/stdlib/atol.c,
9367 libc/stdlib/dtoa.c, libc/stdlib/ecvtbuf.c, libc/stdlib/malloc.c,
9368 libc/stdlib/mprec.c, libc/stdlib/mprec.h, libc/stdlib/rand.c,
9369 libc/stdlib/setenv.c, libc/stdlib/std.h, libc/stdlib/strtod.c,
9370 libc/stdlib/strtol.c, libc/stdlib/strtoul.c, libc/string/strtok.c,
9371 libc/time/asctime.c, libc/time/localtime.c, libc/time/mktime.c,
9372 libc/time/strftime.c: modify to provide reentracy.
9375 strtok_r, asctime_r, fdopen_r, _cleanup_r, fopen_r, iprintf_r,
9376 perror_r, printf_r, putchar_r, puts_r, scanf_r, sprintf_r,
9377 tmpfile_r, vfiprintf_r, vfprintf_r, strtod_r, dtoa_r, rand_r,
9378 srand_r, strtoul_r,strtol_r, free_r, malloc_r, morecore_r,
9379 mstats_r, realloc_r, localeconv_r, setlocale_r
9381 Wed Feb 17 20:17:15 1993 Mark Eichin (eichin@cygnus.com)
9383 * libc/include/machine/ieeefp.h, libc/include/machine/setjmp.h,
9384 libc/include/sys/config.h, libc/include/sys/signal.h,
9385 libc/include/sys/stat.h, libc/include/sys/types.h: For compiler
9386 provided macros (such as m68000), use the ansi version
9387 (__m68000__) so that the library can be used with code compiled
9388 -ansi. In particular, m68000, mc68000, _AM29K, i386, MIPSEL, unix,
9391 Wed Feb 17 13:01:34 1993 Jim Wilson (wilson@sphagnum.cygnus.com)
9393 * configure.in (sparc*): Don't set -fsoft-float for sparc
9394 configurations. Do set -fsoft-float for sparclite configurations.
9396 Fri Feb 12 16:25:52 1993 Roland H. Pesch (pesch@fowanton.cygnus.com)
9398 * default.menu, no-signal.menu: alternate forms of libc main menu
9399 (in newlib rather than newlib/libc due to configuration restrictions)
9401 * configure.in: select one of the two menus above, link to
9404 * libc/libc.texinfo: include menu from separate file
9406 Fri Feb 12 12:50:06 1993 Ian Lance Taylor (ian@cygnus.com)
9408 * Makefile.in (FLAGS_TO_PASS): Put INSTALL back in.
9409 (info): Split long shell command in half.
9410 * libc/Makefile.in (info, targetdep.tex): Don't pass everything to
9411 sub-makes, just CHEW and TARGETDOC.
9412 (targetdep.tex): Removed now special handling of sys and machine
9413 subdirectories, made obsolete some time ago.
9414 * libc/machine/Makefile.in (doc): Don't pass everything to
9415 sub-make, just CHEW and TARGETDOC.
9416 (Makefile): New target.
9417 * libc/sys/Makefile.in (Makefile): New target.
9419 Thu Feb 11 15:25:15 1993 Ian Lance Taylor (ian@cygnus.com)
9421 * Makefile.in (here and most subdirectories): Only pass down CHEW
9422 and TARGETDOC when making info, not for other targets.
9424 * Makefile.in (here and most subdirectories), host/any: Use $(AR)
9425 $(AR_FLAGS) rather than $(ARUPDATE).
9427 Wed Feb 10 11:57:52 1993 Ian Lance Taylor (ian@cygnus.com)
9429 * Try to reduce command line length:
9430 * Makefile.in (FLAGS_TO_PASS): don't pass down exec_prefix,
9431 CC_FOR_BUILD, CFLAGS_FOR_BUILD, INSTALL or CHEW.
9432 (info, docs): pass CC_FOR_BUILD and CFLAGS_FOR_BUILD to doc.
9433 (info): Pass CHEW to other subdirs.
9435 Tue Feb 9 14:01:42 1993 Mark Eichin (eichin@cygnus.com)
9437 * configure.in: add signal_dir, like unix_dir, but by default it
9438 is set to "signal" so that a29khif can turn it off (since a29khif
9439 has raise() as part of machine-specific signal.s.)
9441 Fri Jan 15 12:09:50 1993 Steve Chamberlain (sac@thepub.cygnus.com)
9443 * libc/sys/config.h, libc/machine/ieeefp.h: add Z8000 support
9444 * libc/stdio/Makefile.in: pass CFLAGS so vfiprintf.c gets built
9446 * libc/stdio/fdopen.c, libc/stdio/fgets.c, libc/stdio/fscanf.c,
9447 libc/stdio/vfprintf: type lint.
9448 * libc/sys/z8ksim/crt0.c (start): Z8001/Z8002 independent
9450 * libc/sys/z8ksim/glue.c: Z8001/Z8002 clean system calls.
9452 Tue Dec 29 10:15:33 1992 Ian Lance Taylor (ian@cygnus.com)
9454 * stub/mvme135/mvme135-asm.S: new file.
9455 stub/mvme135mvme135-stub.c: moved all assembler routines into
9457 stub/mvme135/Makefile.in: build mvme135-stub.o.
9459 Mon Dec 28 12:40:43 1992 Ian Lance Taylor (ian@cygnus.com)
9461 * Makefile.in: don't pass down $(CPP); use $(CC) -E in
9462 sub-Makefiles instead, to try to avoid line length limitations.
9464 Mon Dec 21 18:36:13 1992 Per Bothner (bothner@rtl.cygnus.com)
9466 * libc/include/unistd.h (read, write): Use void* instead of
9469 Thu Dec 17 13:49:46 1992 Mark Eichin (eichin@cygnus.com)
9471 * stub/go32/resetpc: sample script to send a reset packet to the
9474 * stub/go32/I386STUB.C: new file, gdb/i386stub.c modified for the
9475 DOS environment, which compiles with Turbo C.
9477 * stub/go32/DSER32.LNK: new file, linker commands for serial
9480 * stub/go32/CONTROL.C: turn off debug_mode, add CYGNUS tag line to
9481 start up message to identify version; call set_debug_traps.
9483 * stub/go32/DEBUG.C: turn off debug_mode (so stub doesn't need any
9484 keyboard interaction); call handle_exception() in go_til_stop,
9485 rather than return, so that the remote stub gets control.
9487 * stub/go32/MAKEFILE: fixed to actually use DOS commands (del and
9488 rename, rather than mv), set flags that work with current Turbo C,
9489 including using the /3 flag; also, add commands to build dser32.
9491 * stub/go32/DEBUG32.LNK, stub/go32/GO32.LNK: fix paths to match
9492 default Turbo C installation (\tc rather than \usr)
9494 * stub/go32/MONO.C (printf): current Turbo C uses "..." instead of
9497 Mon Dec 14 09:37:33 1992 Steve Chamberlain (sac@thepub.cygnus.com)
9499 * libc/include/math.h: added _DOUBLE_IS_32BITS checks
9501 Thu Nov 12 22:31:04 1992 Steve Chamberlain (sac@thepub.cygnus.com)
9503 * libc/stdio/cvt.c (licvt): new function to convert ints when
9504 sizeof(int) != sizeof(long).
9506 * libc/include/stdio.h: added prototype for iprintf.
9507 * libc/include/machine/limits.h machine/ieeefp.h: z8k stuff
9509 Tue Nov 10 12:18:12 1992 Ian Lance Taylor (ian@cygnus.com)
9511 * libc/machine/m68k/setjmp.S: use __USER_LABEL_PREFIX__ and
9512 __REGISTER_PREFIX__.
9514 Mon Nov 2 13:50:14 1992 Ian Lance Taylor (ian@cygnus.com)
9516 * libc/sys/m68kbare: moved into stub directory.
9518 Mon Nov 2 13:40:42 1992 Ian Lance Taylor (ian@cygnus.com)
9520 * configure.in, Makefile.in: created new directory stub, to hold
9521 sample code for specific targets.
9523 Wed Oct 28 02:19:55 1992 Mark Eichin (eichin@cygnus.com)
9525 * restored libc/sys/go32/sys/fcntl.h, to override incorrect values
9526 in the unified libc/include/sys/fcntl.h.
9528 Wed Oct 21 13:55:58 1992 Doug Evans (dje@rtl.cygnus.com)
9530 * libc/stdlib/ecvtbuf.c: (print_f,_gcvt): printf("%f", 0.01)
9531 printed .01, not 0.01.
9533 Mon Oct 19 11:05:55 1992 Ian Lance Taylor (ian@cygnus.com)
9535 * configure.in: compile with -m68000 for m68* targets.
9537 Sun Oct 18 05:29:05 1992 Mark Eichin (eichin@cygnus.com)
9539 * libm/math/remainder.c (remainder): document the svr4 and sunos
9540 references used to construct the function.
9542 Sat Oct 17 21:46:16 1992 Mark Eichin (eichin@cygnus.com)
9544 * libm/math/remainder.c (rint, remainder): fix old typos.
9545 * libm/math/Makefile.in: actually build remainder.c (functions
9546 rint and remainder, from SysVr4 Programmer's Guide floor(3m) man
9549 Thu Oct 15 07:48:05 1992 Ian Lance Taylor (ian@cygnus.com)
9551 * libc/string/bcopy.c: BSD version works on overlapping strings,
9554 * libc/stdlib/system.c: always invoke /bin/sh, not getenv
9557 Wed Oct 14 11:07:11 1992 Ian Lance Taylor (ian@cygnus.com)
9559 * Makefile.in (docs): new target.
9561 Wed Oct 14 07:44:25 1992 Ian Lance Taylor (ian@cygnus.com)
9563 * libc/include/sys/times.h: define clock_t as required by POSIX.
9564 libc/include/time.h: protect clock_t from multiple definitions.
9566 Wed Oct 7 11:02:21 1992 Mark Eichin (eichin at tweedledumber.cygnus.com)
9568 * libm/math/sqrt.h (sqrt): actually, the final version of fp-bit
9569 does not need more than the original three iterations to get
9570 within 1 ulp. (Paranoia tests for rounding to better than that,
9571 but further iterations *don't* help, only more subtle changes
9574 Tue Oct 6 09:22:12 1992 Ian Lance Taylor (ian@cygnus.com)
9576 * libc/sys/vxworks68, libc/sys/vxworks960: removed, since they
9577 were doing nothing useful.
9579 Tue Oct 6 08:48:13 1992 Ian Lance Taylor (ian@cygnus.com)
9581 * configure.in: define MALLOC_PROVIDED for vxworks targets;
9582 removed sys_dir settings of vxworks68 and vxworks960.
9583 host/any: don't pass -nostdinc to gcc, since newlib no longer
9584 provides all required header files.
9586 * libc/stdlib/malloc.c: only compile this file if MALLOC_PROVIDED
9587 is not defined; this provides a hook for VxWorks.
9589 Mon Oct 5 03:44:57 1992 Mark Eichin (eichin at tweedledumber.cygnus.com)
9591 * libc/stdio/setvbuf.c (setvbuf): while ANSI does say to malloc a
9592 buffer if buf is NULL, don't do it here -- it is already being
9593 done by makebuf elsewhere in stdio.
9595 Fri Oct 2 13:12:07 1992 Ian Lance Taylor (ian@cygnus.com)
9597 * libc/sys/a29khif/Makefile.in: assemble Steve's list of stubs so
9598 that C programs can call functions without using initial
9601 Thu Oct 1 09:37:47 1992 Ian Lance Taylor (ian@cygnus.com)
9603 * libc/stdlib/abort.c (abort): call exit, in case kill returns.
9605 Wed Sep 30 08:22:18 1992 Ian Lance Taylor (ian@cygnus.com)
9607 * configure.in: set TARGET_CFLAGS for certain CPU types to
9610 Tue Sep 29 21:09:32 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
9612 * libc/sys/m68kbare/glue.c: use <_ansi.h> instead of <ansidecl.h>
9614 Mon Sep 28 14:58:44 1992 Ian Lance Taylor (ian@cygnus.com)
9616 * configure.in: added sys_dir m68kbare for m68k*-unknown-aout and
9619 Fri Sep 25 08:33:21 1992 Ian Lance Taylor (ian@cygnus.com)
9621 * libc/include/stdio.h: define __need___va_list before including
9622 <stdarg.h>, to avoid defining va_arg, et. al.
9624 Tue Sep 22 13:47:00 1992 Ian Lance Taylor (ian@cygnus.com)
9626 * libc/sys/Makefile.in: handle the case of an empty $(sys_dir)
9627 (don't cd to the user's home directory).
9629 * libc/Makefile.in: replaced all instances of $(MAKE) with make.
9630 In general this is the wrong thing to do, but I can't get around
9631 GNU make's insistence on passing command line arguments any other
9634 Tue Sep 22 10:12:44 1992 Ian Lance Taylor (ian@cygnus.com)
9636 * configure.in: always configure the libc/sys directory, since it
9637 now provides a required documentation file.
9639 * Makefile.in: replaced all instances of $(MAKE) with make. In
9640 general this is the wrong thing to do, but I can't get around GNU
9641 make's insistence on passing command line arguments any other way.
9643 Mon Sep 21 22:42:26 1992 Ian Lance Taylor (ian@tweedledumbest.cygnus.com)
9645 * libc/stdlib/ecvtbuf.c (_gcvt): string for 0 was not null
9648 * libc/stdio/local.h: include <stdarg.h> to define va_list.
9649 libc/stdio/vsprintf.c: include <stdarg.h> rather than <varargs.h>.
9651 * libc/include/float.h, libc/include/stdarg.h,
9652 libc/include/stddef.h, libc/include/varargs.h: removed; use gcc
9654 libc/include/stdio.h: get size_t from <stddef.h>, and va_list from
9655 <stdarg.h>, not from <machine/types.h>. Protect definition of
9657 libc/include/time.h: get size_t from stddef.h. Protect definition
9659 libc/include/machine/limits.h: override gcc <limits.h> by defining
9660 _LIMITS_H___. Don't define CLK_TCK. Copied in gcc <limits.h> to
9661 get correct INT_MIN and LONG_LONG values.
9662 libc/include/machine/types.h: don't define ptrdiff_t, wchar_t,
9663 size_t or va_list at all; they're now gotten from stddef.h
9665 libc/include/machine/varargs.h: removed; use gcc version instead.
9666 libc/include/sys/types.h: explicitly include <machine/types.h>.
9668 * libm/math/sqrt.h: using the fp-bit routines appears to require
9671 * Makefile.in, host/any: let system include files override machine
9674 Sat Sep 19 21:10:06 1992 Mark Eichin (eichin at tweedledumber.cygnus.com)
9676 * libc/include/machine/types.h: allow __*_TYPE__ from cpp to
9677 override _*_T_ definitions defaulted here.
9679 Tue Sep 15 11:14:46 1992 Ian Lance Taylor (ian@cygnus.com)
9681 * Makefile.in (install): install the include files in
9682 $(tooldir)/include, not $(exec_prefix)/include.
9684 Fri Sep 11 15:48:43 1992 Ian Lance Taylor (ian@cygnus.com)
9686 * Makefile.in (install): fixed typo, and changed install to not
9687 force rebuild of libc.a and libm.a.
9689 Thu Sep 10 10:46:09 1992 Ian Lance Taylor (ian@cygnus.com)
9691 * libc/sys/a29khif/*: Changed all .include's to include
9692 sys/sysmac.h, not plain sysmac.h. The header files live in sys so
9693 that they will be installed for the user.
9695 * Makefile.in (all): create targ-include, a directory holding the
9696 machine and system specific header files during the build.
9697 (install): fixed installation of machine and system specific
9700 * Makefile.in: fixed comment.
9701 host/any: change .s.o rule to use $(AS) rather than $(CC), so that
9702 we can pass $(INCLUDES) to it.
9704 Thu Sep 10 10:13:13 1992 Ian Lance Taylor (ian@cygnus.com)
9706 * libc/include/sys/param.h: new generic file, which may be
9707 overridden for specific systems.
9709 * libc/include/sys/signal.h: define all ANSI signal names, and
9710 NSIG (which is not ANSI) for a29k.
9712 Tue Sep 8 09:04:30 1992 Ian Lance Taylor (ian@cygnus.com)
9714 * Makefile.in: don't pass down arguments the lower level makes
9716 * libc/Makefile.in: recurse directly, rather than using subdir_do,
9717 in hopes of avoiding argument length limits.
9718 * libm/Makefile.in: recurse directly, rather using subdir_do, in
9719 hopes of avoiding argument length limits.
9721 Tue Sep 8 08:27:22 1992 Ian Lance Taylor (ian@cygnus.com)
9723 * libc/include/sys/fcntl.h: include <sys/types.h> to ensure that
9726 Mon Sep 7 14:02:07 1992 Ian Lance Taylor (ian@cygnus.com)
9728 * Fixed make info and make install-info for newlib, changing most
9729 Makefile.in and several *.tex files. Moved doc directory from
9732 * libc/time/mktime.c (_DAYS_IN_MONTH): actually, not const.
9733 Should be rewritten.
9735 * libc/string/strings.tex: renamed node index to node index
9736 function, so that it does not conflict with the top level index
9739 * libc/include/sys/config.h: define __IEEE_BIG_ENDIAN for h8300.
9741 Fri Sep 4 02:34:06 1992 Ian Lance Taylor (ian@cygnus.com)
9743 * Overhauled general configuration for newlib. Eliminated all
9744 target dependent Makefile fragments. Create libraries in newlib
9745 rather than newlib/libc and newlib/libm. Use CC, et. al., rather
9746 than CROSS_CC, et. al. Broke make docs; will fix later.
9748 * libc/time/localtime.c (_DAYS_IN_MONTH): actually, not const.
9749 Should be rewritten.
9751 Tue Sep 1 15:21:14 1992 Ian Lance Taylor (ian@cygnus.com)
9753 * libc/configure.in: cleaned up somewhat; switch on ${target}
9754 rather than ${target_alias}.
9755 * libm/configure.in: cleaned up somewhat; switch on ${target}
9756 rather than ${target_alias}.
9758 * libc/ctype/ctype_.c: marked _ctype_ array _CONST.
9759 * libc/include/ctype.h: marked _ctype_ as _CONST.
9761 * libc/locale/locale.c (lconv, localeconv): marked static lconv as
9764 * libc/stdio/cvt.c, libc/stdio/findfp.c (__sfmoreglue),
9765 libc/stdio/vfscanf.c (__svfscanf): made static variables const.
9766 libc/stdio/gets.c (gets): removed non-ANSI warning message.
9767 libc/stdio/tmpnam.c (tmpnam): removed unneeded filename variable.
9769 * libc/stdlib/mprec.h, libc/stdlib/mprec.c (pow5mult, tens,
9770 bigtens, tinytens): marked arrays _CONST.
9771 libc/stdlib/qsort.c (swap): if __GNUC__, use _builtin_alloca
9772 rather than a static variable.
9774 * libc/time/asctime.c (asctime), libc/time/localtime.c
9775 (_DAYS_IN_MONTH), libc/time/mktime.c (_DAYS_IN_MONTH,
9776 _DAYS_BEFORE_MONTH), libc/time/strftime.c (dname_len, dname,
9777 mname_len, mname): Marked static arrays _CONST.
9779 * libm/math/gamma.h: made local variables non-static.
9781 * libm/math/acos.h, libm/math/bessel.c, libm/math/erf.c,
9782 libm/math/exp.c, libm/math/gamma.h: marked static arrays as
9785 * libm/math/constants.c: removed file, because the constants it
9786 defined were never referenced.
9787 libm/math/Makefile.in: removed references to constants.c.
9788 libm/math/mathimpl.h: removed declarations of constants.
9790 Wed Aug 26 21:09:06 1992 Ian Lance Taylor (ian@cygnus.com)
9792 * libc/include/machine/varargs.h: only call __builtin_saveregs if
9793 it is sensibly defined in libgcc2. Checks preprocessor defines,
9794 which is not a good solution.
9796 * libm/sqrt.c: sqrt(Infinity) should not be a domain error.
9798 * libm/frexp.c: handle denormalized numbers as arguments.
9800 * libm/math/Makefile.in: added some dependencies for .c files
9801 which include local .h files.
9803 Mon Aug 24 12:57:58 1992 Ian Lance Taylor (ian@cygnus.com)
9805 * libc/configure.in: set target_alias for OSE*. Replace
9806 target_makefile_frag if it is blank.
9808 * libc/Makefile.in: make sure everything is passed to subsidiary
9809 makes; create all directories when installing.
9811 * libm/ieeefp/Makefile.in, libm/math/Makefile.in: use
9812 CROSS_ARUPDATE instead of AR.
9814 * libm/configure.in: set target_alias for OSE*. Replace
9815 target_makefile_frag if it is blank.
9817 * libm/Makefile.in: make sure everything is passed to subsidiary
9818 makes; create all directories when installing.
9820 Thu Aug 20 15:11:51 1992 Mark Eichin (eichin@cygnus.com)
9822 * add following change from libc copy.
9824 Wed Aug 19 18:54:49 1992 Roland H. Pesch (pesch@fowanton.cygnus.com)
9826 * libc/libc.texinfo: make copyright disclaimers appear on back of
9827 title page; make format of same slightly less ugly; avoid using
9828 underbars in section headings (avoids nasty texinfo bug in table
9831 * libc/ctype/tolower.c, libc/ctype/toupper.c: (doc changes in
9832 comments only) avoid using underbars in section headings
9834 * libc/ieeefp/ieeefp.tex: include doc from fpsticky, infinity,
9835 isnan ieeefp/fpmask.c, ieeefp/fpround.c, ieeefp/fpsticky.c (doc
9836 changes in comments only): shorten headings ieeefp/infinity.c,
9837 ieeefp/isnan.c: (doc, comments only) more informative headings
9839 * libc/math/bessel.c: (doc, comments only) shorten heading
9841 * libc/stdlib/efgcvt.c, libc/stdlib/mbtowc.c, libc/stdlib/wctomb.c
9842 (doc, comments only) shorten headings
9844 * libc/time/localtime.c (doc, comments only): shorten headings
9846 * libm/ieeefp/ieeefp.tex: include doc from fpsticky, infinity,
9848 libm/ieeefp/fpmask.c, libm/ieeefp/fpround.c,
9849 libm/ieeefp/fpsticky.c (doc changes in comments only): shorten
9851 libm/ieeefp/infinity.c, libm/ieeefp/isnan.c: (doc, comments
9852 only) more informative headings
9853 * libm/math/bessel.c: (doc, comments only) shorten heading
9855 Wed Aug 19 07:06:37 1992 Mark Eichin (eichin at tweedledumber.cygnus.com)
9857 * .../Makefile.in: use CROSS_ARUPDATE consistently.
9858 * config/*.mt: define CROSS_AR as well as CROSS_ARUPDATE
9859 * config/*.mt: define CROSS_CPP based on CROSS_CC, not /lib/cpp.
9860 * .../Makefile.in: get rid of .c.o rule - if TOP is correctly
9861 defined, the one from the .mt file will be correct.
9862 * libc/include/machine, libc/include/sys: created, and populated
9863 with common files from machine/*/machine. ifdefs were used for
9864 most, typically by handling exceptions first and then filling in
9865 defaults. Files with D.J. Delorie copyright #included rather than
9866 copied. Most files in include/sys really were the same in the
9868 * libc/include/...: cleaned up use of _EXFUN.
9869 * libc/stdlib/mprec.c: mprec.h doesn't get installed, so include
9870 it with double quotes, not angles.
9872 Mon Aug 10 11:43:20 1992 Ian Lance Taylor (ian@dumbest.cygnus.com)
9874 * libc/Makefile.in: always create installation directories.
9876 Sun Aug 9 22:45:48 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
9878 * libc/configure.in: handle host properly (using canonical
9879 triples), better error message for the case of target not found
9881 Thu May 28 01:56:37 1992 Michael Tiemann (tiemann@rtl.cygnus.com)
9883 * libc/Makefile.in (insincdir): Ensure this directory exists
9884 before attempting installation.
9886 Fri May 1 18:16:42 1992 Steve Chamberlain (sac@thepub.cygnus.com)
9888 * libc/stdlib/assert.c: now calls abort like it should
9889 * libc/sys/a29khif: many many patches for 29khif work
9890 * libc/machine/i386: gnulib2 expanded there.
9892 Tue Apr 28 19:08:37 1992 Steve Chamberlain (sac@thepub.cygnus.com)
9894 Added accurate fp conversion routines to stdlib, moved dcvt from
9895 stdio to stdlib and called it ecvtbuf:
9896 * libc/stdlib/mprec.c, mprec.h: new files for multiprec arithmetic
9897 * libc/stdlib/Makefile.in, efgcvt.c, strtod.c: modified to use new
9899 * libc/libc.texinfo: Modifed to include the copyright info from
9901 * libc/stdlib/efgcvt.c: now xref to ecvtbuf in stdlib.
9902 * libc/test/ : many vector which tested for the implementation
9903 defined returns of strange conversion requests have been updated
9904 to relflect the new implementation
9906 Mon Apr 27 13:41:33 1992 Roland H. Pesch (pesch@fowanton.cygnus.com)
9908 * libc/libc.texinfo: new chapter on variable arg lists
9909 (stdarg.h/varargs.h)
9910 * libc/libc.texinfo: new title
9911 * libc/time/gmtime.c, libc/time/localtime./c, libc/time/mktime.c:
9912 (doc only) shorter headings for better formatting.
9914 Fri Apr 24 11:26:48 1992 Roland H. Pesch (pesch@fowanton.cygnus.com)
9916 * libc/libc.texinfo: three more info menu entries
9917 * libc/locale/locale.tex: new chapter
9918 * libc/locale/locale.c: new doc for setlocale, localeconv
9919 * libc/locale/Makefile.in: use new locale doc
9920 * libc/signal/signal.tex: new chapter
9921 * libc/signal/raise.c, libc/signal/signal.c: new doc
9922 * libc/signal/Makefile.in: use new doc
9923 * libc/time/time.tex: new chapter
9924 * libc/time/asctime.c libc/time/clock.c libc/time/ctime.c
9925 libc/time/difftime.c libc/time/gmtime.c libc/time/localtime.c
9926 libc/time/mktime.c libc/time/strftime.c libc/time/time.c: new doc
9927 * libc/time/Makefile.in: use new doc
9929 Tue Apr 21 14:48:50 1992 Steve Chamberlain (sac@thepub.cygnus.com)
9931 * libm/math/log1p.c: split to use the new function way of float
9932 function definition. math/log1p.h deleted
9933 * libm/math/scalb.c: obsolete and deleted
9934 * libm/math/scalbn.c: created from part log1p.c
9935 * libm/math/Makefile.in: know about log1p and scalbn
9937 Tue Apr 21 12:32:21 1992 Roland H. Pesch (pesch@fowanton.cygnus.com)
9939 * libc/ctype/isupper.c: revise doc;
9940 libc/ctype/ctype.tex: use doc from isupper.c
9942 * libc/string/bzero.c: new doc
9944 Mon Apr 20 14:19:42 1992 Roland H. Pesch (pesch@fowanton.cygnus.com)
9946 * libc/stdlib/system.c, libc/stdlib/exit.c, libc/stdlib/abort.c:
9948 * libc/stdlib/Makefile.in: extract new doc
9949 * libc/stdlib/stdlib.tex: use new doc
9951 * libc/string/strerror.c: expanded doc.
9953 * libc/stdio/Makefile.in: extract doc from more files
9954 * libc/stdio/fopen.c, libc/stdio/perror.c, libc/stdio/remove.c,
9955 libc/stdio/rename.c, libc/stdio/rewind.c, libc/stdio/setbuf.c,
9956 libc/stdio/setvbuf.c, libc/stdio/sprintf.c, libc/stdio/tmpfile.c,
9957 libc/stdio/tmpnam.c, libc/stdio/vfprintf.c, libc/stdio/vprintf.c,
9958 libc/stdio/vsprintf.c: new doc
9959 * libc/stdio/stdio.tex: use new doc
9961 Mon Apr 20 09:38:17 1992 Steve Chamberlain (sac@thepub.cygnus.com)
9963 * libc/config/ebmon29k: added CROSS_CPP rule and other fixes
9964 * libc/include/ieeefp.h: fixed ansi conflict with isnanf, isinff,
9966 * libc/sys/a29khif/sys/*.h: ansidecl.h was renamed to _ansi.h some
9969 * libc/stdio/stdio.h: added P_tmpdir for /tmp (SVID thing)
9970 * libc/stdio/setbuf.c: added ansi style definition.
9971 * libc/stdio/setvbuf.c: added ansi definition, now mallocs own
9972 buffer if none provided.
9973 * libc/stdio/tmpfile.c: lint
9974 * libc/stdio/tmpnam.c (worker): created. (tmpnam): mallocs buffer
9975 rather than using static, also make sure file isn't already
9976 present. Uses P_tmpdir. (tempnam): rewritten to use new
9977 subroutine, and uses P_tmpdir.
9978 * libc/stdio/siprintf.c: created
9980 Mon Apr 13 09:12:58 1992 Steve Chamberlain (sac@thepub.cygnus.com)
9982 Release 1.03 for NEC, major mods. Main differences from release
9985 More tests in test/:
9986 * jn_vec.c, jnf_vec.c, yn_vec.c, ynf_vec.c, log2_vec.c,
9987 log2f_vec.c, atan2_vec.c, atan2f_vec.c: new test vectors.
9988 * test_ieee.c: tests for ieee flags & masks - get/set rounding,
9989 get/set mask, get/set sticky and get/set roundtoi. Tests
9990 that setting the bits changes the way arithmetic is done.
9991 * string.c: added test to make sure memcmp does it with unsigned
9993 * test.c: cleaned up and removed lint.
9994 * sprint_vec, sprint_ivec.c, convert.c, conv_vec.c, iconf_vec.c,
9995 dvec.c: tests for string to value conversions, sprintf, scanf,
9996 atof, atoff, strtod, strtodf, atoi, atol, strtol, ecvtbuf, ecvt,
9997 ecvtf, fcvtbuf, fcvt, fcvtf, gcvt, gcvtf. Some attention paid to
9998 rounding in sprintf too.
9999 * test_is.c: tests for isalnum, isalpha, isascii, iscntrl,
10000 isdigit, isgraph, islower, isprint, ispunct, isspace, isupper,
10001 isxdigit, toascii, tolower, toupper, _tolower, _toupper in macro
10003 * math2.c: test for frexp, frexpf, ldexp, ldexpf, modf modff, pow,
10007 * libc/stdlib/div.c, libc/stdlib/ldiv.c, libc/stdlib/strtod.c,
10008 libc/stdlib/strtol.c, libc/stdlib/stroul.c, libc/stdlib/abs.c,
10009 libc/stdlib/bsearch.c, libc/stdlib/calloc.c, libc/stdlib/getenv.c,
10010 libc/stdlib/labs.c, libc/stdlib/malloc.c: new documentation
10011 * libc/stdlib/efgcvt.c: rewritten to use new _dcvt routines rather
10013 * libc/stdio/dcvt.c: rewritten to make more useful elsewhere.
10014 * Method of producting float versions of double functions has
10015 changed, functions will be modified gradually. So far:
10016 libm/math/exp.c, libm/math/pow.c, libm/math/modf.c,
10017 libm/math/sincos.c, libm/math/fmod.c, libm/math/tan.c have been
10019 * libc/string/memcmp.c: now uses unsigned chars
10020 * libc/string/bcmp.c, libc/string/strcpy.c,
10021 libc/stsring/strxfrm.c: fixed doc
10022 * libc/sys/sysvnecv70.tex: fix example of sbrk code
10025 version-control: never