]> sourceware.org Git - newlib-cygwin.git/blob - newlib/ChangeLog
2007-07-11 Jeff Johnston <jjohnstn@redhat.com>
[newlib-cygwin.git] / newlib / ChangeLog
1 2007-07-11 Jeff Johnston <jjohnstn@redhat.com>
2
3 * libc/include/math.h: Fix so C99 functions/macros are accessible
4 when -std=c99 is used when compiling and not when using C89.
5
6 2007-07-06 Corinna Vinschen <corinna@vinschen.de>
7
8 * libc/include/wchar.h: Declare wcstol, wcstoll, wcstoul,
9 wcstoull, _wcstol_r, _wcstoll_r, _wcstoul_r and _wcstoull_r.
10 * libc/stdlib/Makefile.am (GENERAL_SOURCES): Add wcstol.c and wcstoul.c.
11 (EXTENDED_SOURCES): Add wcstoll.c, wcstoll_r.c, wcstoull.c and
12 wcstoull_r.c.
13 (CHEWOUT_FILES): Add .def files accordingly.
14 * libc/stdlib/Makefile.in: Regenerate.
15 * libc/stdlib/stdlib.tex: Add documentation links for above functions.
16 * libc/stdlib/strtoll.c: Fix portability note.
17 * libc/stdlib/strtoull.c: Ditto.
18 * libc/stdlib/wcstol.c: New file.
19 * libc/stdlib/wcstoll.c: New file.
20 * libc/stdlib/wcstoll_r.c: New file.
21 * libc/stdlib/wcstoul.c: New file.
22 * libc/stdlib/wcstoull.c: New file.
23 * libc/stdlib/wcstoull_r.c: New file.
24
25 2007-07-06 Jeff Johnston <jjohnstn@redhat.com>
26
27 * libc/include/sys/time.h (gettimeofday): Change to proper
28 prototype where second parameter is void *.
29 * libc/reent/gettimeofdayr.c (_gettimeofday_r): Change prototype
30 accordingly.
31 * libc/include/reent.h: Fix prototype for _gettimeofday_r.
32 * libc/sys/arm/syscalls.c: Fix gettimeofday function signature.
33 * libc/sys/rdos/gettod.c: Ditto.
34 * libc/sys/sh/syscalls.c: Ditto.
35 * libc/time/time.c (time): Change call to _gettimeofday_r
36 to pass NULL as 2nd argument.
37
38 2007-07-06 Jeff Johnston <jjohnstn@redhat.com>
39
40 * libc/sys/linux/intl/dcigettext.c: Define HAVE_STPCPY.
41 * libc/sys/linux/intl/l10nflist.c: Ditto.
42
43 2007-07-04 Corinna Vinschen <corinna@vinschen.de>
44
45 * libc/include/wchar.h: Add prototype for wcsxfrm.
46 * libc/string/Makefile.am (GENERAL_SOURCES): Add wcsxfrm.c.
47 (CHEWOUT_FILES): Add wcsxfrm.def.
48 * libc/string/Makefile.in: Regenerate.
49 * libc/string/wcsxfrm.c: New file.
50 * libc/string/wcstrings.tex: Add wcsxfrm.
51
52 2007-06-28 Corinna Vinschen <corinna@vinschen.de>
53
54 * libc/include/string.h: Add prototypes for stpcpy and stpncpy.
55 * libc/string/Makefile.am (ELIX_SOURCES): Add stpcpy.c and
56 stpncpy.c.
57 (CHEWOUT_FILES): Add stpcpy.def and stpncpy.def.
58 * libc/string/Makefile.in: Regenerate.
59 * libc/string/stpcpy.c: New file.
60 * libc/string/stpncpy.c: New file.
61 * libc/string/strings.tex: Add stpcpy and stpncpy.
62
63 2007-06-27 Eric Blake <ebb9@byu.net>
64
65 Support __func__ in assert, as required by C99.
66 * libc/stdlib/assert.c (__assert_func): New function.
67 (__assert): Use __assert_func.
68 * libc/include/assert.h (assert) [!NDEBUG]: Use __assert_func when
69 possible.
70
71 2007-06-20 Patrick Mansfield <patmans@us.ibm.com>
72
73 * libc/machine/spu/perror.c: Pass errno as the second argument to
74 the assist call.
75
76 2007-06-20 Patrick Mansfield <patmans@us.ibm.com>
77
78 * libc/include/sys/unistd.h[__SPU__]: Add lockf prototype and related
79 defines; expose ftruncate, truncate and sync prototypes.
80
81 2007-06-20 Patrick Mansfield <patmans@us.ibm.com>
82
83 * libc/include/sys/unistd.h[__SPU__]: Make fchdir prototype visible.
84 * libc/include/sys/stat.h[__SPU__]: Make mknod and lstat prototypes
85 visible.
86
87 2007-06-15 Patrick Mansfield <patmans@us.ibm.com>
88
89 * libc/machine/spu/Makefile.am: Remove mktemp.c, it was left in
90 from a dropped patch.
91 * libc/machine/spu/Makefile.in: Regenerate.
92
93 2007-06-13 Patrick Mansfield <patmans@us.ibm.com>
94
95 * libc/machine/spu/creat.c: New file copied from libc/posix/creat.c,
96 it just calls open with appropriate arguments.
97 * libc/machine/spu/Makefile.am: Add creat.c.
98 * libc/machine/spu/Makefile.in: Regenerate.
99
100 2007-06-13 Jeff Johnston <jjohnstn@redhat.com>
101
102 * libc/machine/spu/Makefile.am: Re-add back setjmp.S which
103 I accidentally dropped.
104 * libc/machine/spu/Makefile.in: Regenerated.
105
106 2007-06-13 Patrick Mansfield <patmans@us.ibm.com>
107
108 * libc/include/sys/features.h: Define _POSIX_TIMERS for spu.
109 * libc/include/sys/unistd.h: Change usleep prototype to Posix
110 form and move outside of OS flag checks.
111 * libc/machine/spu/Makefile.am: Add sleep and usleep.
112 * libc/machine/spu/Makefile.in: Regenerate.
113 * libc/machine/spu/sleep.c: Copy libc/posix/sleep.c.
114 * libc/machine/spu/usleep.c: Copy libc/posix/usleep.c.
115
116 2007-06-11 Corinna Vinschen <corinna@vinschen.de>
117
118 * libc/include/sys/unistd.h: Declare confstr for Cygwin.
119 Define confstr constants for Cygwin. Add comment.
120
121 2007-06-10 Hans-Peter Nilsson <hp@bitrange.com>
122
123 * libc/sys/mmixware/access.c (access): Do not try to use a magic
124 file-handle and a direct syscall, just use _open.
125 * libc/sys/mmixware/sys/syscall.h (TMPFNO): Remove this magic
126 file-handle.
127
128 * libc/sys/mmixware/_exit.c (_exit): Update comment about
129 passing on the exit value.
130
131 2007-06-08 Jeff Johnston <jjohnstn@redhat.com>
132
133 * libc/string/strcasestr.c: New file.
134 * libc/include/string.h: Add strcasestr.
135 * libc/string/strings.tex: Add strcasestr.
136 * libc/string/Makefile.am: Ditto.
137 * libc/string/Makefile.in: Regenerated.
138
139 2007-06-06 Christian Groessler <chris@groessler.org>
140
141 * libc/stdlib/ldtoa (_ldcheck): Make sure the setting of
142 rnd is done after the last local variable declaration.
143
144 2007-06-06 Jeff Johnston <jjohnstn@redhat.com>
145
146 * libc/stdlib/mprec.h[Just_16]: Make sure that Pack_16 is defined.
147
148 2007-06-05 Christian Groessler <chris@groessler.org>
149
150 * libc/argz/argz_insert.c (argz_insert): Move delta variable
151 declaration to top of function in keeping with C89 standard.
152
153 2007-06-04 Eric Blake <ebb9@byu.net>
154
155 Implement funopen, fopencookie.
156 * libc/include/sys/reent.h (struct __sFILE, struct __sFILE64):
157 Switch to reentrant callbacks.
158 * libc/include/stdio.h (funopen): Fix declaration.
159 (fopencookie): Declare.
160 * libc/stdio/local.h (__sread, __swrite, __sseek, __sclose)
161 (__sseek64, __swrite64): Fix prototypes.
162 [__SCLE]: Pull in setmode declaration.
163 * libc/stdio/stdio.c (__sread, __swrite, __sseek, __sclose): Fix
164 reentrancy.
165 * libc/stdio64/stdio64.c (__sseek64_r, __swrite64_r): Delete.
166 (__sseek64, __swrite64): Fix reentrancy.
167 * libc/stdio/fseek.c (_fseek_r): Account for overflow, and fix
168 reentrancy.
169 * libc/stdio/ftell.c (_ftell_r): Likewise.
170 * libc/stdio/flags.c (__sflags): Don't lose __SAPP on "a+".
171 * libc/stdio/fclose.c (_fclose_r): Fix reentrancy.
172 * libc/stdio/freopen.c (_freopen_r): Likewise.
173 * libc/stdio/fvwrite.c (__sfvwrite_r): Likewise.
174 * libc/stdio/refill.c (__srefill_r): Likewise.
175 * libc/stdio/siscanf.c (eofread): Likewise.
176 * libc/stdio/sscanf.c (eofread): Likewise.
177 * libc/stdio/vsiscanf.c (eofread1): Likewise.
178 * libc/stdio/vsscanf.c (eofread1): Likewise.
179 * libc/stdio64/freopen64.c (_freopen64_r): Likewise.
180 * libc/stdio64/fseeko64.c (_fseeko64_r): Likewise.
181 * libc/stdio64/ftello64.c (_ftello64_r): Likewise.
182 * libc/stdio/fflush.c (fflush): Improve reentrancy, although more
183 could be fixed.
184 * libc/stdio/fopencookie.c (_fopencookie_r, fopencookie): New file.
185 * libc/stdio/funopen.c (_funopen_r, funopen): New file.
186 * libc/stdio/Makefile.am (ELIX_4_SOURCES, CHEWOUT_FILES): Build
187 new files.
188 * libc/stdio/Makefile.in: Regenerate.
189
190 2007-05-29 Eric Blake <ebb9@byu.net>
191
192 Avoid more compiler warnings.
193 * libc/stdlib/btowc.c: Add missing header.
194 * libc/stdlib/getopt.c (getopt_internal): Initialize variable.
195 * libc/stdlib/system.c (do_system) [__CYGWIN__]: Add declaration.
196 * libc/stdlib/wctob.c: Add missing header.
197 * libc/string/strcpy.c (strcpy): Avoid warnings.
198 * libc/string/strrchr.c (strrchr): Likewise.
199
200 2007-05-29 Corinna Vinschen <corinna@vinschen.de>
201
202 * libc/argz/argz_add_sep.c (argz_add_sep): Handle empty string
203 argument.
204 * libc/argz/argz_append.c (argz_append): Handle empty buf argument.
205 * libc/argz/argz_create_sep.c (argz_create_sep): Return (NULL, 0)
206 on empty input strings.
207 * libc/argz/argz_extract.c (argz_extract): Check argz_len before
208 looping through argz.
209 * libc/argz/argz_stringify.c (argz_stringify): Ditto.
210
211 2007-05-27 Brian Dessent <brian@dessent.net>
212
213 * libc/stdio/vfprintf.c (_VFPRINTF_R): Populate 'ox' when
214 handling %p.
215
216 2007-05-25 Eric Blake <ebb9@byu.net>
217
218 * libc/stdio/rewind.c (rewind): Fix regression of 2003-08-22.
219
220 2007-05-24 Steve Ellcey <sje@cup.hp.com>
221 Charles Wilson <libtool@cwilson.fastmail.fm>
222
223 * libtool.m4: removed
224 * configure.in: invoke _LD_DECL_SED before conditionally initializing
225 libtool. Move AC_PROG_AWK outside conditional.
226 * libc/sys/linux/configure.in: Ditto.
227 * libc/sys/linux/linuxthreads/configure.in: Ditto.
228 * libc/sys/linux/linuxthreads/machine/i386/configure.in: Ditto.
229 * libc/sys/linux/machine/i386/configure.in: Ditto.
230
231 * iconvdata/configure.in: invoke _LD_DECL_SED before conditionally
232 initializing libtool.
233 * libc/configure.in: Ditto.
234 * libc/machine/configure.in: Ditto.
235 * libc/machine/i386/configure.in: Ditto.
236 * libc/sys/configure.in: Ditto.
237 * libc/sys/linux/linuxthreads/machine/configure.in: Ditto.
238 * libc/sys/linux/machine/configure.in: Ditto.
239 * libm/configure.in: Ditto.
240 * libm/machine/configure.in: Ditto.
241
242 * Makefile.am: Ensure toplevel is included in ACLOCAL_AMFLAGS.
243 * doc/Makefile.am: Ditto.
244 * iconvdata/Makefile.am: Ditto.
245 * libc/Makefile.am: Ditto.
246 * libc/machine/Makefile.am: Ditto.
247 * libc/machine/a29k/Makefile.am: Ditto.
248 * libc/machine/arm/Makefile.am: Ditto.
249 * libc/machine/bfin/Makefile.am: Ditto.
250 * libc/machine/cris/Makefile.am: Ditto.
251 * libc/machine/crx/Makefile.am: Ditto.
252 * libc/machine/d10v/Makefile.am: Ditto.
253 * libc/machine/d30v/Makefile.am: Ditto.
254 * libc/machine/fr30/Makefile.am: Ditto.
255 * libc/machine/frv/Makefile.am: Ditto.
256 * libc/machine/h8300/Makefile.am: Ditto.
257 * libc/machine/h8500/Makefile.am: Ditto.
258 * libc/machine/hppa/Makefile.am: Ditto.
259 * libc/machine/i386/Makefile.am: Ditto.
260 * libc/machine/i960/Makefile.am: Ditto.
261 * libc/machine/iq2000/Makefile.am: Ditto.
262 * libc/machine/m32c/Makefile.am: Ditto.
263 * libc/machine/m32r/Makefile.am: Ditto.
264 * libc/machine/m68hc11/Makefile.am: Ditto.
265 * libc/machine/m68k/Makefile.am: Ditto.
266 * libc/machine/m88k/Makefile.am: Ditto.
267 * libc/machine/mips/Makefile.am: Ditto.
268 * libc/machine/mn10200/Makefile.am: Ditto.
269 * libc/machine/mn10300/Makefile.am: Ditto.
270 * libc/machine/mt/Makefile.am: Ditto.
271 * libc/machine/necv70/Makefile.am: Ditto.
272 * libc/machine/powerpc/Makefile.am: Ditto.
273 * libc/machine/sh/Makefile.am: Ditto.
274 * libc/machine/sparc/Makefile.am: Ditto.
275 * libc/machine/spu/Makefile.am: Ditto.
276 * libc/machine/tic4x/Makefile.am: Ditto.
277 * libc/machine/tic80/Makefile.am: Ditto.
278 * libc/machine/v850/Makefile.am: Ditto.
279 * libc/machine/w65/Makefile.am: Ditto.
280 * libc/machine/xscale/Makefile.am: Ditto.
281 * libc/machine/xstormy16/Makefile.am: Ditto.
282 * libc/machine/z8k/Makefile.am: Ditto.
283 * libc/sys/Makefile.am: Ditto.
284 * libc/sys/a29khif/Makefile.am: Ditto.
285 * libc/sys/arc/Makefile.am: Ditto.
286 * libc/sys/arm/Makefile.am: Ditto.
287 * libc/sys/d10v/Makefile.am: Ditto.
288 * libc/sys/decstation/Makefile.am: Ditto.
289 * libc/sys/h8300hms/Makefile.am: Ditto.
290 * libc/sys/h8500hms/Makefile.am: Ditto.
291 * libc/sys/linux/Makefile.am: Ditto.
292 * libc/sys/linux/linuxthreads/Makefile.am: Ditto.
293 * libc/sys/linux/linuxthreads/machine/Makefile.am: Ditto.
294 * libc/sys/linux/linuxthreads/machine/i386/Makefile.am: Ditto.
295 * libc/sys/linux/machine/Makefile.am: Ditto.
296 * libc/sys/linux/machine/i386/Makefile.am: Ditto.
297 * libc/sys/m88kbug/Makefile.am: Ditto.
298 * libc/sys/mmixware/Makefile.am: Ditto.
299 * libc/sys/netware/Makefile.am: Ditto.
300 * libc/sys/rdos/Makefile.am: Ditto.
301 * libc/sys/rtems/Makefile.am: Ditto.
302 * libc/sys/sh/Makefile.am: Ditto.
303 * libc/sys/sparc64/Makefile.am: Ditto.
304 * libc/sys/sun4/Makefile.am: Ditto.
305 * libc/sys/sysmec/Makefile.am: Ditto.
306 * libc/sys/sysnec810/Makefile.am: Ditto.
307 * libc/sys/sysnecv850/Makefile.am: Ditto.
308 * libc/sys/sysvi386/Makefile.am: Ditto.
309 * libc/sys/sysvnecv70/Makefile.am: Ditto.
310 * libc/sys/tic80/Makefile.am: Ditto.
311 * libc/sys/w65/Makefile.am: Ditto.
312 * libc/sys/z8ksim/Makefile.am: Ditto.
313 * libm/Makefile.am: Ditto.
314 * libm/machine/Makefile.am: Ditto.
315 * libm/machine/i386/Makefile.am: Ditto.
316 * libm/machine/spu/Makefile.am: Ditto.
317
318 * aclocal.m4: Regenerate.
319 * iconvdata/aclocal.m4: Regenerate.
320 * libc/aclocal.m4: Regenerate.
321 * libc/machine/aclocal.m4: Regenerate.
322 * libc/machine/i386/aclocal.m4: Regenerate.
323 * libc/sys/aclocal.m4: Regenerate.
324 * libc/sys/linux/aclocal.m4: Regenerate.
325 * libc/sys/linux/linuxthreads/aclocal.m4: Regenerate.
326 * libc/sys/linux/linuxthreads/machine/aclocal.m4: Regenerate.
327 * libc/sys/linux/linuxthreads/machine/i386/aclocal.m4: Regenerate.
328 * libc/sys/linux/machine/aclocal.m4: Regenerate.
329 * libc/sys/linux/machine/i386/aclocal.m4: Regenerate.
330 * libm/aclocal.m4: Regenerate.
331 * libm/machine/aclocal.m4: Regenerate.
332 * libm/machine/i386/aclocal.m4: Regenerate.
333
334 * Makefile.in: Regenerate.
335 * doc/Makefile.in: Regenerate.
336 * iconvdata/Makefile.in: Regenerate.
337 * libc/Makefile.in: Regenerate.
338 * libc/argz/Makefile.in: Regenerate.
339 * libc/ctype/Makefile.in: Regenerate.
340 * libc/errno/Makefile.in: Regenerate.
341 * libc/iconv/Makefile.in: Regenerate.
342 * libc/iconv/ccs/Makefile.in: Regenerate.
343 * libc/iconv/ccs/binary/Makefile.in: Regenerate.
344 * libc/iconv/ces/Makefile.in: Regenerate.
345 * libc/iconv/lib/Makefile.in: Regenerate.
346 * libc/locale/Makefile.in: Regenerate.
347 * libc/machine/Makefile.in: Regenerate.
348 * libc/machine/a29k/Makefile.in: Regenerate.
349 * libc/machine/arm/Makefile.in: Regenerate.
350 * libc/machine/bfin/Makefile.in: Regenerate.
351 * libc/machine/cris/Makefile.in: Regenerate.
352 * libc/machine/crx/Makefile.in: Regenerate.
353 * libc/machine/d10v/Makefile.in: Regenerate.
354 * libc/machine/d30v/Makefile.in: Regenerate.
355 * libc/machine/fr30/Makefile.in: Regenerate.
356 * libc/machine/frv/Makefile.in: Regenerate.
357 * libc/machine/h8300/Makefile.in: Regenerate.
358 * libc/machine/h8500/Makefile.in: Regenerate.
359 * libc/machine/hppa/Makefile.in: Regenerate.
360 * libc/machine/i386/Makefile.in: Regenerate.
361 * libc/machine/i960/Makefile.in: Regenerate.
362 * libc/machine/iq2000/Makefile.in: Regenerate.
363 * libc/machine/m32c/Makefile.in: Regenerate.
364 * libc/machine/m32r/Makefile.in: Regenerate.
365 * libc/machine/m68hc11/Makefile.in: Regenerate.
366 * libc/machine/m68k/Makefile.in: Regenerate.
367 * libc/machine/m88k/Makefile.in: Regenerate.
368 * libc/machine/mips/Makefile.in: Regenerate.
369 * libc/machine/mn10200/Makefile.in: Regenerate.
370 * libc/machine/mn10300/Makefile.in: Regenerate.
371 * libc/machine/mt/Makefile.in: Regenerate.
372 * libc/machine/necv70/Makefile.in: Regenerate.
373 * libc/machine/powerpc/Makefile.in: Regenerate.
374 * libc/machine/sh/Makefile.in: Regenerate.
375 * libc/machine/sparc/Makefile.in: Regenerate.
376 * libc/machine/spu/Makefile.in: Regenerate.
377 * libc/machine/tic4x/Makefile.in: Regenerate.
378 * libc/machine/tic80/Makefile.in: Regenerate.
379 * libc/machine/v850/Makefile.in: Regenerate.
380 * libc/machine/w65/Makefile.in: Regenerate.
381 * libc/machine/xscale/Makefile.in: Regenerate.
382 * libc/machine/xstormy16/Makefile.in: Regenerate.
383 * libc/machine/z8k/Makefile.in: Regenerate.
384 * libc/misc/Makefile.in: Regenerate.
385 * libc/posix/Makefile.in: Regenerate.
386 * libc/reent/Makefile.in: Regenerate.
387 * libc/search/Makefile.in: Regenerate.
388 * libc/signal/Makefile.in: Regenerate.
389 * libc/stdio/Makefile.in: Regenerate.
390 * libc/stdio64/Makefile.in: Regenerate.
391 * libc/stdlib/Makefile.in: Regenerate.
392 * libc/string/Makefile.in: Regenerate.
393 * libc/sys/Makefile.in: Regenerate.
394 * libc/sys/a29khif/Makefile.in: Regenerate.
395 * libc/sys/arc/Makefile.in: Regenerate.
396 * libc/sys/arm/Makefile.in: Regenerate.
397 * libc/sys/d10v/Makefile.in: Regenerate.
398 * libc/sys/decstation/Makefile.in: Regenerate.
399 * libc/sys/h8300hms/Makefile.in: Regenerate.
400 * libc/sys/h8500hms/Makefile.in: Regenerate.
401 * libc/sys/linux/Makefile.in: Regenerate.
402 * libc/sys/linux/argp/Makefile.in: Regenerate.
403 * libc/sys/linux/cmath/Makefile.in: Regenerate.
404 * libc/sys/linux/dl/Makefile.in: Regenerate.
405 * libc/sys/linux/iconv/Makefile.in: Regenerate.
406 * libc/sys/linux/intl/Makefile.in: Regenerate.
407 * libc/sys/linux/linuxthreads/Makefile.in: Regenerate.
408 * libc/sys/linux/linuxthreads/machine/Makefile.in: Regenerate.
409 * libc/sys/linux/linuxthreads/machine/i386/Makefile.in: Regenerate.
410 * libc/sys/linux/machine/Makefile.in: Regenerate.
411 * libc/sys/linux/machine/i386/Makefile.in: Regenerate.
412 * libc/sys/linux/net/Makefile.in: Regenerate.
413 * libc/sys/linux/stdlib/Makefile.in: Regenerate.
414 * libc/sys/m88kbug/Makefile.in: Regenerate.
415 * libc/sys/mmixware/Makefile.in: Regenerate.
416 * libc/sys/netware/Makefile.in: Regenerate.
417 * libc/sys/rdos/Makefile.in: Regenerate.
418 * libc/sys/rtems/Makefile.in: Regenerate.
419 * libc/sys/sh/Makefile.in: Regenerate.
420 * libc/sys/sparc64/Makefile.in: Regenerate.
421 * libc/sys/sun4/Makefile.in: Regenerate.
422 * libc/sys/sysmec/Makefile.in: Regenerate.
423 * libc/sys/sysnec810/Makefile.in: Regenerate.
424 * libc/sys/sysnecv850/Makefile.in: Regenerate.
425 * libc/sys/sysvi386/Makefile.in: Regenerate.
426 * libc/sys/sysvnecv70/Makefile.in: Regenerate.
427 * libc/sys/tic80/Makefile.in: Regenerate.
428 * libc/sys/w65/Makefile.in: Regenerate.
429 * libc/sys/z8ksim/Makefile.in: Regenerate.
430 * libc/syscalls/Makefile.in: Regenerate.
431 * libc/time/Makefile.in: Regenerate.
432 * libc/unix/Makefile.in: Regenerate.
433 * libm/Makefile.in: Regenerate.
434 * libm/common/Makefile.in: Regenerate.
435 * libm/machine/Makefile.in: Regenerate.
436 * libm/machine/i386/Makefile.in: Regenerate.
437 * libm/machine/spu/Makefile.in: Regenerate.
438 * libm/math/Makefile.in: Regenerate.
439 * libm/mathfp/Makefile.in: Regenerate.
440
441 * configure: Regenerate.
442 * iconvdata/configure: Regenerate.
443 * libc/configure: Regenerate.
444 * libc/machine/configure: Regenerate.
445 * libc/machine/i386/configure: Regenerate.
446 * libc/sys/configure: Regenerate.
447 * libc/sys/linux/configure: Regenerate.
448 * libc/sys/linux/linuxthreads/configure: Regenerate.
449 * libc/sys/linux/linuxthreads/machine/configure: Regenerate.
450 * libc/sys/linux/linuxthreads/machine/i386/configure: Regenerate.
451 * libc/sys/linux/machine/configure: Regenerate.
452 * libc/sys/linux/machine/i386/configure: Regenerate.
453 * libm/configure: Regenerate.
454 * libm/machine/configure: Regenerate.
455 * libm/machine/i386/configure: Regenerate.
456
457 2007-05-23 Eric Blake <ebb9@byu.net>
458
459 * libc/stdio/vfprintf.c (_VFPRINTF_R): Don't truncate %p when
460 sizeof(void*) is 8 but sizeof(long) is 4.
461 * libc/stdio/vfscanf.c (__SVFSCANF_R): Likewise. Fix %i scanning
462 of "-0x". Support "-nan" and "inf" for %e. Audit usage of ungetc
463 to fix reentrancy and bug on encoding error in multibyte locales.
464 Always return EOF on read error.
465
466 2007-05-23 Patrick Mansfield <patmans@us.ibm.com>
467
468 * libc/machine/spu/sys/syscall.h: Update the __send_to_ppe
469 prototype.
470 * libc/machine/spu/fclose.c: Use the __send_to_ppe return value
471 instead of the slot 0 value, remove any now unused variables, and
472 for some cases, now store the result in an int vs int*.
473 * libc/machine/spu/feof.c: Ditto.
474 * libc/machine/spu/ferror.c: Ditto.
475 * libc/machine/spu/fflush.c: Ditto.
476 * libc/machine/spu/fgetc.c: Ditto.
477 * libc/machine/spu/fgetpos.c: Ditto.
478 * libc/machine/spu/fgets.c: Ditto.
479 * libc/machine/spu/fileno.c: Ditto.
480 * libc/machine/spu/fopen.c: Ditto.
481 * libc/machine/spu/fprintf.c: Ditto.
482 * libc/machine/spu/fputc.c: Ditto.
483 * libc/machine/spu/fputs.c: Ditto.
484 * libc/machine/spu/fread.c: Ditto.
485 * libc/machine/spu/freopen.c: Ditto.
486 * libc/machine/spu/fscanf.c: Ditto.
487 * libc/machine/spu/fseek.c: Ditto.
488 * libc/machine/spu/fsetpos.c: Ditto.
489 * libc/machine/spu/ftell.c: Ditto.
490 * libc/machine/spu/fwrite.c: Ditto.
491 * libc/machine/spu/getc.c: Ditto.
492 * libc/machine/spu/getchar.c: Ditto.
493 * libc/machine/spu/gets.c: Ditto.
494 * libc/machine/spu/printf.c: Ditto.
495 * libc/machine/spu/putc.c: Ditto.
496 * libc/machine/spu/putchar.c: Ditto.
497 * libc/machine/spu/puts.c: Ditto.
498 * libc/machine/spu/remove.c: Ditto.
499 * libc/machine/spu/rename.c: Ditto.
500 * libc/machine/spu/scanf.c: Ditto.
501 * libc/machine/spu/setvbuf.c: Ditto.
502 * libc/machine/spu/snprintf.c: Ditto.
503 * libc/machine/spu/sprintf.c: Ditto.
504 * libc/machine/spu/sscanf.c: Ditto.
505 * libc/machine/spu/tmpfile.c: Ditto.
506 * libc/machine/spu/tmpnam.c: Ditto.
507 * libc/machine/spu/ungetc.c: Ditto.
508 * libc/machine/spu/vfprintf.c: Ditto.
509 * libc/machine/spu/vfscanf.c: Ditto.
510 * libc/machine/spu/vprintf.c: Ditto.
511 * libc/machine/spu/vscanf.c: Ditto.
512 * libc/machine/spu/vsnprintf.c: Ditto.
513 * libc/machine/spu/vsprintf.c: Ditto.
514 * libc/machine/spu/vsscanf.c: Ditto.
515
516 2007-05-23 Eric Blake <ebb9@byu.net>
517
518 * libc/stdio/vfscanf.c (__SVFSCANF_R): Support scanf(%1$s).
519 Avoid warning when !FLOATING_POINT.
520 * libc/stdio/vfprintf.c (_VFPRINTF_R): Simplify _NO_POS_ARGS
521 slightly.
522
523 2007-05-23 Corinna Vinschen <vinschen@redhat.com>
524
525 * libc/argz/argz_create_sep.c (argz_create_sep): Initialize *argz_len
526 to zero.
527 * libc/include/argz.h: Guard against multiple inclusion. Guard for
528 use with C++.
529
530 2007-05-18 Eric Blake <ebb9@byu.net>
531
532 * libc/stdio/vfprintf.c [_WANT_IO_LONG_LONG]: Allow non-gcc
533 compilers.
534 * libc/stdio/vfscanf.c: Likewise.
535
536 2007-05-17 Cary R. <cygcary <at> yahoo.com>
537
538 * libm/math/w_atan2.c: Fix atan2 to be consistent with glibc
539 (atan2(+0,-0), atan2(-0,-0) and atan(-0,+0))
540 * libm/math/wf_atan2.c: Ditto.
541
542 2007-05-17 Yaakov Selkowitz <yselkowitz <at> users.sourceforge.net>
543
544 * libm/common/Makefile.am: Add support for exp10, exp10f,
545 pow10, and pow10f functions.
546 * libm/common/Makefile.in: Regenerated.
547 * libm/common/s_pow10.c: New file.
548 * libm/common/sf_pow10.c: Ditto.
549 * libm/common/s_exp10.c: Ditto.
550 * libm/common/sf_exp10.c: Ditto.
551 * libc/include/math.h [!pow10]: New pow10 prototype.
552 [!pow10f]: New pow10f prototype.
553 [!exp10]: New exp10 prototype.
554 [!exp10f]: New exp10f prototype.
555
556 2007-05-17 Charles Wilson <cygwin@...>
557
558 * stdio/tmpfile.c: Include <sys/stat.h>.
559 * stdio64/tmpfile64.c: Ditto.
560
561 2007-05-16 Eric Blake <ebb9@byu.net>
562
563 Close security hole in tmpfile.
564 * libc/stdio/tmpfile.c (_tmpfile_r): Avoid window between filename
565 generation and opening the fd.
566 * libc/stdio64/tmpfile64.c (_tmpfile64_r): Likewise.
567
568 * libc/include/math.h (INFINITY, NAN, FP_ILOGB0, FP_ILOGBNAN)
569 (MATH_ERRNO, MATH_ERREXCEPT, math_errhandling): Add macros
570 required by POSIX.
571 * libc/stdlib/ldtoa.c (USE_INFINITY): Rename from INFINITY, to
572 avoid clash with <math.h>.
573
574 * libc/stdlib/wctomb_r.c (_wctomb_r): Avoid gcc warnings on cygwin.
575 * libc/search/hash.c (__hash_open): Likewise.
576
577 2007-05-14 Eric Blake <ebb9@byu.net>
578
579 Reduce stack size of *printf.
580 * libc/stdio/vfprintf.c (_VFPRINTF_R): Fix use of decimal point
581 in %f. Avoid malloc when possible for %S.
582 (BUF): Improve stack locality by using smaller size.
583 (MAXEXPLEN, _PRINTF_FLOAT_TYPE): Define.
584 (exponent): Use smaller stack size.
585
586 2007-05-11 Eric Blake <ebb9@byu.net>
587
588 Minimize printf/scanf size on platforms that don't need C99.
589 * acconfig.h (_WANT_IO_C99_FORMATS): New macro.
590 * newlib.hin (_WANT_IO_C99_FORMATS): Likewise.
591 * configure.in (newlib-io-c99-formats): New configure option.
592 (_WANT_IO_C99_FORMATS): Define appropriately.
593 * configure.host (*-linux*, cygwin): Default c99-formats to yes.
594 * libc/stdio/vfprintf.c (_VFPRINTF_R) [!_WANT_IO_C99_FORMATS]:
595 Cripple ' flag; hh, z, j, t sizes; a, A, F, C, S specifiers.
596 * libc/stdio/vfscanf.c (_VFSCANF_R) [!_WANT_IO_C99_FORMATS]:
597 Likewise.
598 * configure: Regenerate.
599
600 * libc/stdio/vfprintf.c (_VFPRINTF_R, cvt, exponent, chclass)
601 (get_arg): Support '%a' and '%A'.
602
603 2007-05-09 Eric Blake <ebb9@byu.net>
604
605 Allow zero size with non-null buf in *asnprintf.
606 * libc/stdio/asnprintf.c (_asnprintf_r, asnprintf): Avoid free'ing
607 user's buf.
608 * libc/stdio/asniprintf.c (_asniprintf_r, asniprintf): Likewise.
609 * libc/stdio/vasniprintf.c (_vasniprintf_r): Likewise.
610 * libc/stdio/vasnprintf.c (_vasnprintf_r): Likewise.
611
612 2007-05-07 Charles Wilson <cygwin@...>
613
614 * libc/stdio/vfprintf.c: Fix typo in comments that breaks docs.
615
616 2007-05-03 Eric Blake <ebb9@byu.net>
617
618 Add support for asnprintf, and improve *printf documentation.
619 * libc/stdio/Makefile.am (ELIX_SOURCES): Rename...
620 (ELIX_2_SOURCES): ...to this.
621 (ELIX_4_SOURCES): Add new variable. Build asnprintf.
622 (GENERAL_SOURCES): Move dprintf to ELIX_4_SOURCES.
623 (CHEWOUT_FILES): Include diprintf in documentation.
624 * libc/stdio/Makefile.in: Regenerate.
625 * libc/stdio/diprintf.c: Improve documentation.
626 * libc/stdio/dprintf.c: Likewise.
627 * libc/stdio/siprintf.c: Likewise.
628 * libc/stdio/sprintf.c: Likewise.
629 * libc/stdio/vfprintf.c: Likewise.
630 * libc/stdio/viprintf.c: Likewise.
631 * libc/stdio/vsniprintf.c: Consolidate documentation.
632 * libc/stdio/asiprintf.c: Refer to documentation.
633 * libc/stdio/asprintf.c: Likewise.
634 * libc/stdio/fiprintf.c: Likewise.
635 * libc/stdio/fprintf.c: Likewise.
636 * libc/stdio/iprintf.c: Likewise.
637 * libc/stdio/printf.c: Likewise.
638 * libc/stdio/sniprintf.c: Likewise.
639 * libc/stdio/vdiprintf.c: Likewise.
640 * libc/stdio/vdprintf.c: Likewise.
641 * libc/stdio/vsiprintf.c: Likewise.
642 * libc/stdio/fvwrite.c (__sfvwrite_r): Handle asnprintf.
643 * libc/stdio/asniprintf.c (asniprintf, _asniprintf_r): New file.
644 * libc/stdio/asnprintf.c (asnprintf, _asnprintf_r): New file.
645 * libc/stdio/vasniprintf.c (vasniprintf, _vasniprintf_r): New
646 file.
647 * libc/stdio/vasnprintf.c (vasnprintf, _vasnprintf_r): New file.
648 * libc/stdio/vdprintf.c (_vdprintf_r): Rewrite to avoid malloc in
649 typical case.
650 * libc/stdio/vdiprintf.c (_vdiprintf_r): Likewise.
651 * libc/include/stdio.h: Add prototypes for new functions; sort
652 existing functions.
653
654 2007-05-03 Kazu Hirata <kazu@codesourcery.com>
655
656 * libc/machine/m68k/Makefile.am (lib_a_SOURCES): Add memcpy.S
657 and memset.S.
658 * libc/machine/m68k/Makefile.in: Regenerate.
659 * libc/machine/m68k/memcpy.S: Use sub.l followed by dbra.
660 * libc/machine/m68k/memset.S: Likewise.
661
662 2007-05-01 Eric Blake <ebb9@byu.net>
663
664 * libc/stdio64/local64.h: Delete, move contents to...
665 * libc/stdio/local.h: ...here.
666 * libc/stdio64/fdopen64.c: Update includes.
667 * libc/stdio64/fopen64.c: Likewise.
668 * libc/stdio64/freopen64.c: Likewise.
669 * libc/stdio64/fseeko64.c: Likewise.
670 * libc/stdio64/ftello64.c: Likewise.
671 * libc/stdio/findfp.c (std) [__LARGE64_FILES]: Open stdin, stdout,
672 and stderr with 64-bit offset.
673 * libc/stdio/fseek.c (_fseek_r): Avoid compile warning.
674 * libc/stdio/makebuf.c (__smakebuf_r): Likewise.
675 * libc/stdio/mktemp.c (_gettemp): Likewise.
676
677 2007-05-01 Cary R. <cygcary <at> yahoo.com>
678
679 * libm/math/e_pow.c: Fix to be consistent with glibc with regards
680 to treatment of NaN and +-inf arguments.
681 * libm/math/ef_pow.c: Ditto.
682 * libm/math/w_pow.c: Ditto.
683 * libm/math/wf_pow.c: Ditto.
684 * libm/math/w_acos.c: Fix domain errors to return NaN.
685 * libm/math/w_asin.c: Ditto.
686 * libm/math/wf_acos.c: Ditto.
687 * libm/math/wf_asin.c: Ditto.
688 * libm/math/w_log.c: Fix to return NaN for negative number inputs.
689 * libm/math/wf_log.c: Ditto.
690 * libm/math/wf_log10.c: Ditto.
691 * libm/math/w_log10.c: Ditto.
692
693 2007-04-27 Jeff Johnston <jjohnstn@redhat.com>
694
695 * libc/machine/m68k/Makefile.am: Temporarily remove
696 memcpy.S and memset.S until logic can be confirmed for
697 !(__mcoldfile__) case.
698 * libc/machine/m68k/Makefile.in: Regenerated.
699
700 2007-04-27 Kazu Hirata <kazu@codesourcery.com>
701
702 * libc/machine/m68k/Makefile.am (lib_a_SOURCES): Add memcpy.S
703 and memset.S.
704 * libc/machine/m68k/Makefile.in: Regenerate.
705 * libc/machine/m68k/memcpy.S, libc/machine/m68k/memset.S: New.
706
707 2007-04-26 Patrick Mansfield <patmans@us.ibm.com>
708
709 * libc/include/ieeefp.h: use prefixed __ieeefp_ macros that can be
710 overridden via machine/ieeefp.h.
711 * libc/include/machine/ieeefp.h: Add SPU specific C99 and ieeefp
712 macros for isnan and related macros.
713 * libc/include/math.h: Allow C99 isfinite, isinf, and isnan to be
714 overridden via machine/ieeefp.h.
715 * libm/machine/spu/Makefile.am: Add new files.
716 * libm/machine/spu/Makefile.in: Autogenerate with new files.
717 * libm/machine/spu/sf_fpclassify.c: Add SPU specific __fpclassifyf.
718 * libm/machine/spu/sf_finite.c: Add SPU specific finitef.
719 * libm/machine/spu/sf_isinf.c: Add SPU specific isinff.
720 * libm/machine/spu/sf_isinff.c: Add SPU specific __isinff.
721 * libm/machine/spu/sf_isnan.c: Add SPU specific isnanf.
722 * libm/machine/spu/sf_isnanf.c: Add SPU specific __isnanf.
723 * libm/machine/spu/sf_nan.c: Add SPU specific nanf.
724
725 2007-04-25 Jeff Johnston <jjohnstn@redhat.com>
726
727 * libm/common/s_fpclassify.c (__fpclassifyf): Move this to...
728 * libm/common/sf_fpclassify.c: ...here. New file.
729 * libm/common/Makefile.am: Add sf_fpclassify.c.
730 * libm/common/Makefile.in: Regenerated.
731
732 2007-04-25 Patrick Mansfield <patmans@us.ibm.com>
733
734 * libc/machine/spu/sys/errno.h: New file, so spu errno values match
735 ppu linux values. This file is a copy of the cris/sys/errno.h plus
736 a few changes (see spu errno.h comments).
737
738 2007-04-25 Eric Blake <ebb9@byu.net>
739
740 * libc/stdio/vfprintf.c (get_arg): Support %1$lc. Simplify types
741 that promote to int.
742
743 2007-04-25 Patrick Mansfield <patmans@us.ibm.com>
744
745 * libm/machine/spu/headers/feholdexcept.h: Use *envp not env so
746 we clear the proper bits in the fpscr, and don't set some random ones.
747
748 2007-04-24 Eric Blake <ebb9@byu.net>
749
750 * libc/stdio/vfprintf.c (_VFPRINTF_R): Don't zero pad on infinity
751 or NaN with %05f.
752
753 * libc/stdio/vfprintf.c (_VFPRINTF_R): Avoid multibyte when not
754 _MB_CAPABLE.
755
756 * libc/include/limits.h (NL_ARGMAX): Define a default value.
757 * libc/stdio/vfprintf.c (MAX_POS_ARGS): Define in terms of
758 NL_ARGMAX, if present.
759
760 2007-04-23 Brian Dessent <brian@dessent.net>
761
762 * libc/stdio/vfprintf.c (_vfprintf_r): When the alternate-form flag
763 has been specified with types 'f', 'F', 'g', or 'G', ensure the
764 trailing decimal is printed.
765
766 2007-04-23 Ralf Wildenhues <Ralf.Wildenhues <at> gmx.de>
767
768 * confsubdir.m4 (AC_CONFIG_SUBDIRS, _AC_OUTPUT_SUBDIRS): New
769 file. Override Autoconf-2.59's version of these macros with
770 fixed handling of multiple adjacent whitespace in arguments.
771 * aclocal.m4: Regenerated forcefully.
772 * configure: Ditto.
773 * Makefile.in: Ditto.
774 * libc/*Makefile.in: Ditto.
775 * libc/*aclocal.m4: Ditto.
776 * libc/*configure: Ditto.
777 * libm/*Makefile.in: Ditto.
778 * libm/*aclocal.m4: Ditto.
779 * libm/*configure: Ditto.
780
781 2007-04-23 Jeff Johnston <jjohnstn@redhat.com>
782
783 * libc/sys/arc/dummy.S: Dummy file to force .S.o suffix rule.
784 * libc/sys/arc/Makefile.am: Add dummy.S to EXTRA_lib_a_SOURCES
785 and set lib_a_CCASFLAGS so crto.o will use .S.o default suffix rule.
786 * libc/sys/arc/Makefile.in: Regenerated.
787
788 2007-04-17 Brian Dessent <brian@dessent.net>
789
790 * libc/stdio/sscanf.c: Update documentation comments.
791 * libc/stdio/vfscanf.c (__SVFSCANF_R): Handle j, t, and z modifiers.
792
793 2007-04-12 Eric Blake <ebb9@byu.net>
794
795 * libc/stdio/vfprintf.c (_VFPRINTF_F, cvt): Don't confuse %F with %e.
796 (chclass): Recognize 'F', 'X', 'n', and not 'W'.
797 (get_arg): Handle %1$F, %1$n.
798
799 2007-04-10 Eric Blake <ebb9@byu.net>
800
801 * libc/include/stdio.h (_ELIDABLE_INLINE): Work even when using
802 CFLAGS=-O0.
803
804 2007-04-09 Eric Blake <ebb9@byu.net>
805
806 * libc/include/stdio.h: Add gcc format attributes to printf and
807 scanf families.
808
809 2007-04-09 Joel Schopp <jschopp@austin.ibm.com>
810
811 * libc/machine/spu/strxfrm.c: Fix strxfrm so we still copy data
812 even if the passed in length n is shorter than the source string.
813 This matches both the non-spu specific and the glibc strxfrm
814 behaviour.
815
816 2007-04-04 Mark Mitchell <mark@codesourcery.com>
817
818 * libc/stdlib/__call_atexit.c (__call_exitprocs): Handle atexit
819 functions registering additional atexit functions.
820
821 * testsuite/lib/flags.exp (newlib_include_flags): Drop
822 -I${newlib_dir}.
823
824 2007-04-04 Patrick Mansfield <patmans@us.ibm.com>
825
826 * libc/machine/spu/sys/syscall.h: New file for __send_to_ppe
827 prototype.
828 * libc/machine/spu/c99ppe.h: Remove static version of send_to_ppe.
829 * libc/machine/spu/clearerr.c: Call __send_to_ppe vs send_to_ppe.
830 * libc/machine/spu/fclose.c: Ditto.
831 * libc/machine/spu/feof.c: Ditto.
832 * libc/machine/spu/ferror.c: Ditto.
833 * libc/machine/spu/fflush.c: Ditto.
834 * libc/machine/spu/fgetc.c: Ditto.
835 * libc/machine/spu/fgetpos.c: Ditto.
836 * libc/machine/spu/fgets.c: Ditto.
837 * libc/machine/spu/fileno.c: Ditto.
838 * libc/machine/spu/fopen.c: Ditto.
839 * libc/machine/spu/fprintf.c: Ditto.
840 * libc/machine/spu/fputc.c: Ditto.
841 * libc/machine/spu/fputs.c: Ditto.
842 * libc/machine/spu/fread.c: Ditto.
843 * libc/machine/spu/freopen.c: Ditto.
844 * libc/machine/spu/fscanf.c: Ditto.
845 * libc/machine/spu/fseek.c: Ditto.
846 * libc/machine/spu/fsetpos.c: Ditto.
847 * libc/machine/spu/ftell.c: Ditto.
848 * libc/machine/spu/fwrite.c: Ditto.
849 * libc/machine/spu/getc.c: Ditto.
850 * libc/machine/spu/getchar.c: Ditto.
851 * libc/machine/spu/gets.c: Ditto.
852 * libc/machine/spu/perror.c: Ditto.
853 * libc/machine/spu/printf.c: Ditto.
854 * libc/machine/spu/putc.c: Ditto.
855 * libc/machine/spu/putchar.c: Ditto.
856 * libc/machine/spu/puts.c: Ditto.
857 * libc/machine/spu/remove.c: Ditto.
858 * libc/machine/spu/rename.c: Ditto.
859 * libc/machine/spu/rewind.c: Ditto.
860 * libc/machine/spu/scanf.c: Ditto.
861 * libc/machine/spu/setbuf.c: Ditto.
862 * libc/machine/spu/setvbuf.c: Ditto.
863 * libc/machine/spu/snprintf.c: Ditto.
864 * libc/machine/spu/sprintf.c: Ditto.
865 * libc/machine/spu/sscanf.c: Ditto.
866 * libc/machine/spu/tmpfile.c: Ditto.
867 * libc/machine/spu/tmpnam.c: Ditto.
868 * libc/machine/spu/ungetc.c: Ditto.
869 * libc/machine/spu/vfprintf.c: Ditto.
870 * libc/machine/spu/vfscanf.c: Ditto.
871 * libc/machine/spu/vprintf.c: Ditto.
872 * libc/machine/spu/vscanf.c: Ditto.
873 * libc/machine/spu/vsnprintf.c: Ditto.
874 * libc/machine/spu/vsprintf.c: Ditto.
875 * libc/machine/spu/vsscanf.c: Ditto.
876
877 2007-04-04 Jeff Johnston <jjohnstn@redhat.com>
878
879 * libc/argz/argz_insert.c: Add stddef.h to get ptrdiff_t type.
880
881 2007-04-04 Eric Blake <ebb9@byu.net>
882
883 * libc/stdio/asiprintf.c (_asiprintf_r): Fix reentrancy.
884 (asiprintf): Avoid overhead.
885 * libc/stdio/asprintf.c (_asprintf_r): Fix reentrancy.
886 (asprintf): Avoid overhead.
887 * libc/stdio/diprintf.c (_diprintf_r, diprintf): New file.
888 * libc/stdio/dprintf.c (_dprintf_r, dprintf): Use _DEFUN.
889 * libc/stdio/fiprintf.c (_fiprintf_r): Add reentrant version.
890 (fiprintf): Avoid overhead.
891 * libc/stdio/fprintf.c (_fprintf_r): Add reentrant version.
892 (fprintf): Avoid overhead.
893 * libc/stdio/iprintf.c (_iprintf_r): Use _DEFUN.
894 (iprintf): Avoid overhead.
895 * libc/stdio/printf.c (_printf_r): Use _DEFUN.
896 (printf): Avoid overhead.
897 * libc/stdio/vasiprintf.c (vasiprintf): Reduce binary size.
898 * libc/stdio/vasprintf.c (vasprintf): Reduce binary size.
899 * libc/stdio/vdiprintf.c (_vdiprintf_r, vdiprintf): New file.
900 * libc/stdio/vdprintf.c (vdprintf): Avoid overhead.
901 * libc/stdio/vsiprintf.c (vsiprintf): Reduce binary size.
902 * libc/stdio/vsniprintf.c (vsniprintf): Reduce binary size.
903 * libc/stdio/vsnprintf.c (vsnprintf): Reduce binary size.
904 * libc/stdio/vsprintf.c (vsprintf): Reduce binary size.
905 * libc/stdio/Makefile.am (GENERAL_SOURCES): Add diprintf.c,
906 vdiprintf.c.
907 * libc/include/stdio.h (diprintf, _diprintf_r, vdiprintf)
908 (_vdiprintf_r, _fiprintf_r, _vfiprintf_r): Add prototypes.
909
910 2007-03-30 Dave Korn <dave.korn@artimi.com>
911
912 * libc/include/stdio.h (_ELIDABLE_INLINE): New macro to conceal
913 conflicting inline semantics between C99 and GNU89.
914 (__sgetc_r): Replace static inline with _ELIDABLE_INLINE to be
915 compatible with -fkeep-inline-functions usage.
916 (__sputc_r): Likewise for consistency even though disabled.
917
918 2007-03-29 Nick Clifton <nickc@redhat.com>
919
920 Reflect changes made to generic vfprintf.c:
921 * libc/machine/powerpc/vfprintf.c (__sprint): Rename to __sprint_r
922 and add a "struct reent *" argument.
923 (__sbprintf): Rename to __sbprintf_r, add a "struct reent *"
924 argument and call _VFPRINTF_R instead of VFPRINTF.
925 (_VFPRINTF_R): Add data pointer to call to cantwrite().
926 Fix uses of __sprint() and __sbprintf.
927
928 2007-03-20 Nick Clifton <nickc@redhat.com>
929
930 Reflect changes made to generic vfprintf.c:
931 * libc/machine/powerpc/vfprintf.c (__sprint): Rename to __sprint_r
932 and add a "struct reent *" argument.
933 (__sbprintf): Rename to __sbprintf_r, add a "struct reent *"
934 argument and call _VFPRINTF_R instead of VFPRINTF.
935 (_VFPRINTF_R): Add data pointer to call to cantwrite().
936 Fix uses of __sprint() and __sbprintf.
937
938 2007-03-16 Charles Wilson <cygwin@...>
939
940 * libc/argz/argz_insert.c: "before" pointer is
941 invalid after *argz realloc. Compute offset
942 between "before" and *argz, and use it after
943 reallocation instead.
944
945 2007-03-16 Eric Blake <ebb9@byu.net>
946
947 * libc/stdio64/fseek064.c (_fseeko64_r): Fix reentrancy.
948 * libc/stdio64/freopen64.c (_freopen64_r): Ditto.
949
950 2007-03-15 Jeff Johnston <jjohnstn@redhat.com>
951
952 * configure.in: Add new --enable-newlib-reent-small option.
953 * configure: Regenerated.
954 * acconfig.h: Add _WANT_REENT_SMALL.
955 * newlib.hin: Regenerated minus PACKAGE macros to add
956 _WANT_REENT_SMALL macro.
957 * libc/include/sys/config.h[_WANT_REENT_SMALL]: Set _REENT_SMALL
958 if not already set.
959 * libc/stdio/fflush.c[_REENT_SMALL]: Return immediately if
960 there is no buffer.
961 * libc/stdio/local.h[_REENT_SMALL]: Fix CHECK_INIT macro to
962 use reentrant pointer passed in when resetting the file
963 pointer to one of the std streams.
964
965 2007-03-15 Eric Blake <ebb9@byu.net>
966
967 * libc/stdio/local.h (cantwrite, FREEUB, FREELB): Make reentrant.
968 (__smakebuf): Rename...
969 (__smakebuf_r): to this.
970 * libc/stdio/fvwrite.h (__swsetup_r): Rename, from __swsetup.
971 * libc/stdio/makebuf.c (__smakebuf): Detect failed asprint
972 allocation, then rename...
973 (__smakebuf_r): ...to this and fix reentrancy.
974 * libc/stdio/wsetup.c (__swsetup): Detect failed asprintf
975 allocation, then rename...
976 (__swsetup_r): ...to this and fix reentrancy.
977 * libc/stdio/fseek.c (_fseek_r): Fix reentrancy.
978 * libc/stdio/refill.c (__srefill_r): Likewise.
979 * libc/stdio/fclose.c (_fclose_r): Likewise.
980 * libc/stdio/fread.c (_fread_r): Likewise.
981 * libc/stdio/freopen.c (_freopen_r): Likewise.
982 * libc/stdio/wbuf.c (__swbuf_r): Likewise.
983 * libc/stdio64/fseeko64.c (_fseeko64_r): Likewise.
984 * libc/stdio/fvwrite.c (__sfvwrite_r): Set errno properly on
985 failed asprintf allocation, and fix reentrancy.
986 * libc/stdio/snprintf.c (snprintf, _snprintf_r): Report overflow,
987 as required by POSIX.
988 * libc/stdio/sniprintf.c (sniprintf, _sniprintf_r): Likewise.
989 * libc/stdio/vsnprintf.c (vsnprintf, _vsnprintf_r): Likewise.
990 * libc/stdio/vsniprintf.c (vsniprintf, _vsniprintf_r): Likewise.
991
992 2007-03-12 Eric Blake <ebb9@byu.net>
993
994 * libc/stdio/fvwrite.c (__sfvwrite_r): Fix reentrancy.
995 * libc/stdio/vasprintf.c (vasprintf, _vasprintf_r): Pass failed
996 allocation to caller.
997 * libc/stdio/asprintf.c (_asprintf_r, asprintf): Likewise.
998 * libc/stdio/asiprintf.c (_asiprintf_r, asiprintf): Likewise.
999 * libc/stdio/vasiprintf.c (vasiprintf, _vasiprintf_r): Likewise.
1000
1001 2007-02-23 Jeff Johnston <jjohnstn@redhat.com>
1002
1003 * libm/math/w_pow.c: Fix typo in documentation comment.
1004
1005 2007-02-21 Patrick Mansfield <patmans@us.ibm.com>
1006
1007 * libc/reent/timer.c: Removed (split into two new files).
1008 * libc/reent/timesr.c: New file for _times_r.
1009 * libc/reent/gettimeofdayr.c: New file out _gettimeofday_r.
1010 * reent/Makefile.in: Remove timer.c, add timesr.c and
1011 gettimeofdayr.c.
1012 * libc/reent/Makefile.am: Regenerate.
1013
1014 2007-02-20 Patrick Mansfield <patmans@us.ibm.com>
1015
1016 * configure.host: Build SPU with default_newlib_atexit_dynamic_alloc="no".
1017
1018 2007-02-20 Kazunori Asayama <asayama@sm.sony.co.jp>
1019
1020 * libc/machine/spu/Makefile.am: Add new objects.
1021 * libc/machine/spu/Makefile.in: Regenerated.
1022 * libc/machine/spu/fiprintf.c: New file. Add implementation of
1023 integer-only version.
1024 * libc/machine/spu/fiscanf.c: Ditto.
1025 * libc/machine/spu/iprintf.c: Ditto.
1026 * libc/machine/spu/iscanf.c: Ditto.
1027 * libc/machine/spu/siprintf.c: Ditto.
1028 * libc/machine/spu/siscanf.c: Ditto.
1029 * libc/machine/spu/sniprintf.c: Ditto.
1030 * libc/machine/spu/vfiprintf.c: Ditto.
1031 * libc/machine/spu/vfiscanf.c: Ditto.
1032 * libc/machine/spu/viprintf.c: Ditto.
1033 * libc/machine/spu/viscanf.c: Ditto.
1034 * libc/machine/spu/vsiprintf.c: Ditto.
1035 * libc/machine/spu/vsiscanf.c: Ditto.
1036 * libc/machine/spu/vsniprintf.c: Ditto.
1037 * libc/machine/spu/fprintf.c: Add support for integer-only
1038 version.
1039 * libc/machine/spu/fscanf.c: Ditto.
1040 * libc/machine/spu/printf.c: Ditto.
1041 * libc/machine/spu/scanf.c: Ditto.
1042 * libc/machine/spu/snprintf.c: Ditto.
1043 * libc/machine/spu/sprintf.c: Ditto.
1044 * libc/machine/spu/sscanf.c: Ditto.
1045 * libc/machine/spu/vfprintf.c: Ditto.
1046 * libc/machine/spu/vfscanf.c: Ditto.
1047 * libc/machine/spu/vprintf.c: Ditto.
1048 * libc/machine/spu/vscanf.c: Ditto.
1049 * libc/machine/spu/vsnprintf.c: Ditto.
1050 * libc/machine/spu/vsprintf.c: Ditto.
1051 * libc/machine/spu/vsscanf.c: Ditto.
1052
1053 2007-02-20 Kazunori Asayama <asayama@sm.sony.co.jp>
1054
1055 * libc/include/stdio.h: Add declaration for vsiprintf.
1056
1057 2007-02-14 Patrick Mansfield <patmans@us.ibm.com>
1058
1059 Add a floating point environment for SPU (cell):
1060
1061 * configure.host: add libm_machine_dir=spu.
1062 * libm/machine/configure: Add spu.
1063 * libm/machine/configure.in: regenerated with spu added.
1064 * libc/machine/spu/include/fenv.h: New file.
1065 * libc/machine/spu/sys/fenv.h: Ditto.
1066 * libm/machine/spu/Makefile.am: Ditto.
1067 * libm/machine/spu/Makefile.in: Ditto.
1068 * libm/machine/spu/aclocal.m4: Ditto.
1069 * libm/machine/spu/configure: Ditto.
1070 * libm/machine/spu/configure.in: Ditto.
1071 * libm/machine/spu/fe_dfl_env.c: Ditto.
1072 * libm/machine/spu/feclearexcept.c: Ditto.
1073 * libm/machine/spu/fegetenv.c: Ditto.
1074 * libm/machine/spu/fegetexceptflag.c: Ditto.
1075 * libm/machine/spu/fegetround.c: Ditto.
1076 * libm/machine/spu/feholdexcept.c: Ditto.
1077 * libm/machine/spu/feraiseexcept.c: Ditto.
1078 * libm/machine/spu/fesetenv.c: Ditto.
1079 * libm/machine/spu/fesetexceptflag.c: Ditto.
1080 * libm/machine/spu/fesetround.c: Ditto.
1081 * libm/machine/spu/fetestexcept.c: Ditto.
1082 * libm/machine/spu/feupdateenv.c: Ditto.
1083 * libm/machine/spu/headers/feclearexcept.h: Ditto.
1084 * libm/machine/spu/headers/fefpscr.h: Ditto.
1085 * libm/machine/spu/headers/fegetenv.h: Ditto.
1086 * libm/machine/spu/headers/fegetexceptflag.h: Ditto.
1087 * libm/machine/spu/headers/fegetround.h: Ditto.
1088 * libm/machine/spu/headers/feholdexcept.h: Ditto.
1089 * libm/machine/spu/headers/feraiseexcept.h: Ditto.
1090 * libm/machine/spu/headers/fesetenv.h: Ditto.
1091 * libm/machine/spu/headers/fesetexceptflag.h: Ditto.
1092 * libm/machine/spu/headers/fesetround.h: Ditto.
1093 * libm/machine/spu/headers/fetestexcept.h: Ditto.
1094 * libm/machine/spu/headers/feupdateenv.h: Ditto.
1095
1096 2007-02-14 Corinna Vinschen <corinna@vinschen.de>
1097
1098 * libc/include/sys/features.h: Add _POSIX_MESSAGE_PASSING for
1099 Cygwin.
1100
1101 2007-02-08 Corinna Vinschen <corinna@vinschen.de>
1102
1103 * libc/include/sys/features.h: Add _POSIX_SHARED_MEMORY_OBJECTS for
1104 Cygwin. Fix value of _POSIX_SEMAPHORES. Fix formatting.
1105
1106 2007-02-07 Corinna Vinschen <corinna@vinschen.de>
1107
1108 * libc/include/sys/features.h: Add definition of all supported
1109 _POSIX_xxx values for Cygwin.
1110 * libc/include/sys/types.h (pthread_rwlock_t): Omit definition
1111 on Cygwin.
1112 (pthread_rwlockattr_t): Ditto.
1113 * libc/include/sys/unistd.h: Define all _SC_xxx values as
1114 required by SUSv3. Unify formatting.
1115
1116 2007-02-02 Ralf Corsépius <ralf.corsepius@rtems.org>
1117
1118 * libc/include/sys/errno.h: Add ECANCELED.
1119
1120 2007-02-01 Joel Schopp <jschopp@austin.ibm.com>
1121 Kazunori Asayama <asayama@sm.sony.co.jp>
1122
1123 * libc/machine/spu/Makefile.am: Add objects.
1124 * libc/machine/spu/Makefile.in: Regenerated.
1125 * libc/machine/spu/vsscanf.c: New file. Add a stdio function
1126 implementation.
1127 * libc/machine/spu/snprintf.c: Ditto.
1128 * libc/machine/spu/sprintf.c: Ditto.
1129 * libc/machine/spu/sscanf.c: Ditto.
1130 * libc/machine/spu/remove.c: Ditto.
1131 * libc/machine/spu/rename.c: Ditto.
1132 * libc/machine/spu/tmpnam.c: Ditto.
1133 * libc/machine/spu/vsnprintf.c: Add initialization routine of
1134 stdio stuffs.
1135 * libc/machine/spu/vsprintf.c: Ditto.
1136
1137 2007-02-01 Joel Schopp <jschopp@austin.ibm.com>
1138 Kazunori Asayama <asayama@sm.sony.co.jp>
1139
1140 * configure.host: Enable SPU specific stdio directory.
1141 * libc/machine/spu/Makefile.am: Add objects.
1142 * libc/machine/spu/Makefile.in: Regenerated.
1143 * libc/machine/spu/c99ppe.h: Add macros and function
1144 declarations to initialize SPU specific stdio stuffs.
1145 * libc/machine/spu/stdio.c: Add functions to manage Cell SPU
1146 specific FILE structures.
1147 * libc/machine/spu/perror.c: Add initialization routine of
1148 stdio stuffs.
1149 * libc/machine/spu/printf.c: Ditto.
1150 * libc/machine/spu/putchar.c: Ditto.
1151 * libc/machine/spu/puts.c: Ditto.
1152 * libc/machine/spu/vprintf.c: Ditto.
1153 * libc/machine/spu/clearerr.c: New file. Add a stdio function
1154 implementation.
1155 * libc/machine/spu/feof.c: Ditto.
1156 * libc/machine/spu/ferror.c: Ditto.
1157 * libc/machine/spu/fileno.c: Ditto.
1158 * libc/machine/spu/fopen.c: Ditto.
1159 * libc/machine/spu/fclose.c: Ditto.
1160 * libc/machine/spu/freopen.c: Ditto.
1161 * libc/machine/spu/fflush.c: Ditto.
1162 * libc/machine/spu/fseek.c: Ditto.
1163 * libc/machine/spu/ftell.c: Ditto.
1164 * libc/machine/spu/rewind.c: Ditto.
1165 * libc/machine/spu/fgetpos.c: Ditto.
1166 * libc/machine/spu/fsetpos.c: Ditto.
1167 * libc/machine/spu/fread.c: Ditto.
1168 * libc/machine/spu/fwrite.c: Ditto.
1169 * libc/machine/spu/getc.c: Ditto.
1170 * libc/machine/spu/getchar.c: Ditto.
1171 * libc/machine/spu/gets.c: Ditto.
1172 * libc/machine/spu/fgetc.c: Ditto.
1173 * libc/machine/spu/fgets.c: Ditto.
1174 * libc/machine/spu/ungetc.c: Ditto.
1175 * libc/machine/spu/putc.c: Ditto.
1176 * libc/machine/spu/fputc.c: Ditto.
1177 * libc/machine/spu/fputs.c: Ditto.
1178 * libc/machine/spu/vfprintf.c: Ditto.
1179 * libc/machine/spu/vfscanf.c: Ditto.
1180 * libc/machine/spu/fprintf.c: Ditto.
1181 * libc/machine/spu/fscanf.c: Ditto.
1182 * libc/machine/spu/scanf.c: Ditto.
1183 * libc/machine/spu/vscanf.c: Ditto.
1184 * libc/machine/spu/setbuf.c: Ditto.
1185 * libc/machine/spu/setvbuf.c: Ditto.
1186 * libc/machine/spu/tmpfile.c: Ditto.
1187
1188 2007-02-01 Jeff Johnston <jjohnstn@redhat.com>
1189
1190 * libc/include/sys/config.h[__SPU__]: Define __CUSTOM_FILE_IO__.
1191 * libc/include/stdio.h[!__CUSTOM_FILE_IO__]: Add flag check
1192 around stdio macros that manipulate fields in the normal file
1193 structure.
1194 * libc/include/sys/reent.h[__CUSTOM_FILE_IO__]: Include
1195 <sys/custom_file.h> to define custom FILE structure.
1196 * libc/include/sys/custom_file.h: New default header file
1197 that generates error if not overridden when __CUSTOM_FILE_IO__ set.
1198 * libc/machine/spu/sys/custom_file.h: New file.
1199
1200 2007-01-31 Kazunori Asayama <asayama@sm.sony.co.jp>
1201
1202 * configure.host: Define stdio directory as a variable.
1203 * libc/Makefile.am: Define stdio related names
1204 as macros.
1205 * libc/configure.in: Add detection routine of stdio directory.
1206 * libc/Makefile.in: Regenerated.
1207 * libc/configure: Ditto.
1208 * libc/argz/Makefile.in: Ditto.
1209 * libc/ctype/Makefile.in: Ditto.
1210 * libc/errno/Makefile.in: Ditto.
1211 * libc/iconv/Makefile.in: Ditto.
1212 * libc/iconv/ccs/Makefile.in: Ditto.
1213 * libc/iconv/ccs/binary/Makefile.in: Ditto.
1214 * libc/iconv/ces/Makefile.in: Ditto.
1215 * libc/iconv/lib/Makefile.in: Ditto.
1216 * libc/locale/Makefile.in: Ditto.
1217 * libc/misc/Makefile.in: Ditto.
1218 * libc/posix/Makefile.in: Ditto.
1219 * libc/reent/Makefile.in: Ditto.
1220 * libc/search/Makefile.in: Ditto.
1221 * libc/signal/Makefile.in: Ditto.
1222 * libc/stdio/Makefile.in: Ditto.
1223 * libc/stdio64/Makefile.in: Ditto.
1224 * libc/stdlib/Makefile.in: Ditto.
1225 * libc/string/Makefile.in: Ditto.
1226 * libc/syscalls/Makefile.in: Ditto.
1227 * libc/time/Makefile.in: Ditto.
1228 * libc/unix/Makefile.in: Ditto.
1229
1230 2007-01-30 Ben Elliston <bje@au.ibm.com>
1231
1232 * libc/machine/spu/vsnprintf.c (c99_vsnprintf_t): Const-qualify
1233 fmt member.
1234 * libc/machine/spu/printf.c (c99_printf_t): Likewise.
1235 (printf): Pass fmt to va_start to suppress a warning.
1236
1237 * libc/search/hash.c (init_hash): Make `info' parameter const.
1238
1239 2007-01-19 Kazunori Asayama <asayama@sm.sony.co.jp>
1240
1241 * libc/machine/spu/c99ppe.h: Replace vector with __vector.
1242 * libc/machine/spu/vec_literal.h: Ditto.
1243 * libc/machine/spu/strncmp.c: Ditto.
1244
1245 2007-01-15 Joseph Myers <joseph@codesourcery.com>
1246 Kazu Hirata <kazu@codesourcery.com>
1247
1248 * libc/machine/powerpc/setjmp.S (setjmp, longjmp): Add support
1249 for E500V1 and E500V2.
1250
1251 2007-01-11 Jeff Johnston <jjohnstn@redhat.com>
1252
1253 * libm/configure.in: Always configure machine directory.
1254 * libm/Makefile.am: Make machine subdirectory part of SUBDIRS
1255 unconditionally.
1256 * libm/configure: Regenerated.
1257 * libm/Makefile.in: Ditto.
1258 * libm/*/Makefile.in: Ditto.
1259
1260 2007-01-05 Brian Ford <Brian.Ford@FlightSafety.com>
1261
1262 * configure.host (*-*-cygwin*): Define HAVE_BLKSIZE.
1263
1264 2007-01-02 Ben Elliston <bje@au.ibm.com>
1265
1266 * doc/makedoc.c: Include <stdlib.h>.
1267 (malloc, realloc): Remove extern declarations.
1268
1269 2005-12-18 Jeff Johnston <jjohnstn@redhat.com>
1270
1271 * NEWS: Update with 1.15.0 info.
1272 * README: Ditto.
1273 * acinclude.m4: Change version number to 1.15.0.
1274 * aclocal.m4: Regenerated.
1275 * configure: Ditto.
1276 * doc/aclocal.m4: Ditto.
1277 * doc/configure: Ditto.
1278 * libc/*/aclocal.m4: Ditto.
1279 * libc/*/configure: Ditto.
1280 * libc/libc.texinfo: Ditto.
1281 * libm/*/aclocal.m4: Ditto.
1282 * libm/*/configure: Ditto.
1283 * libm/libm.texinfo: Ditto.
1284 * libc/sys/linux/shared.ld: Add VERS_1.15.
1285
1286 2006-12-18 Kazu Hirata <kazu@codesourcery.com>
1287
1288 Merge from newlib-csl-20060320-branch:
1289 2006-12-01 Nathan Sidwell <nathan@codesourcery.com>
1290 Kazu Hirata <kazu@codesourcery.com>
1291
1292 * configure.host: Recognize fido.
1293
1294 2006-12-18 Joel Schopp <jschopp@austin.ibm.com>
1295
1296 * libc/machine/spu/c99ppe.h: New file
1297 * libc/machine/spu/perror.c: New file to override libc/stdio version.
1298 * libc/machine/spu/printf.c: New file
1299 * libc/machine/spu/putchar.c: New file
1300 * libc/machine/spu/puts.c: New file
1301 * libc/machine/spu/vprintf.c: New file
1302 * libc/machine/spu/vsnprintf.c: New file
1303 * libc/machine/spu/vsprintf.c: New file
1304 * libc/machine/spu/Makefile.am: Add new targets.
1305 * libc/machine/spu/Makefile.in: Regenerated.
1306
1307 2006-12-18 Jeff Johnston <jjohnstn@redhat.com>
1308
1309 * aclocal.m4 */aclocal.m4: Regenerated using aclocal 1.9.6.
1310 * Makefile.in */Makefile.in: Regenerated using automake 1.9.6.
1311
1312 2006-12-18 Jeff Johnston <jjohnstn@redhat.com>
1313
1314 * libc/stdlib/mallocr.c (malloc_extend_top): Add patch from
1315 2.6.5 version of Doug Lea's malloc which is the basis of
1316 this code.
1317
1318 2006-12-18 Kazunori Asayama <asayama@sm.sony.co.jp>
1319
1320 * libc/include/machine/setjmp.h[__SPU__]: Replace vector with __vector.
1321
1322 2006-12-14 Jeff Johnston <jjohnstn@redhat.com>
1323 Eric Blake <ebb9@byu.net>
1324
1325 * libc/stdio/fflush.c (fflush): On seekable streams, always flush
1326 read but unused data.
1327 * libc/stdio/fclose.c (_fclose_r): Always flush streams, since
1328 even read streams may have side effects that must happen.
1329
1330 2006-12-13 Joel Schopp <jschopp@austin.ibm.com>
1331
1332 * libc/machine/spu/setjmp.S: Fix to handle registers past 115
1333 correctly.
1334
1335 2006-12-13 Joel Schopp <jschopp@austin.ibm.com>
1336
1337 * libc/include/alloca.h: Add undef alloca to work with xlc.
1338
1339 2006-12-12 Joel Schopp <jschopp@austin.ibm.com>
1340
1341 * libc/include/machine/setjmp.h[__SPU__]: Redefine _JBTYPE for
1342 cell spu.
1343
1344 2006-12-04 Kazunori Asayama <asayama@sm.sony.co.jp>
1345
1346 * libc/machine/spu/strncpy.c: Add padding.
1347
1348 2006-12-04 Kazunori Asayama <asayama@sm.sony.co.jp>
1349
1350 * testsuite/newlib.string/tstring.c:
1351
1352 2006-12-01 Kazunori Asayama <asayama@sm.sony.co.jp>
1353
1354 * libc/machine/spu/strchr.c: Fix mask for misaligned string.
1355 * libc/machine/spu/strrchr.c: Ditto.
1356
1357 2006-11-30 Lev Bishop <lev.bishop@gmail.com>
1358
1359 * libc/include/math.h: Allow C99 functions/macros to be
1360 defined for C++ even when __STRICT_ANSI__.
1361
1362 2006-11-29 Jeff Johnston <jjohnstn@redhat.com>
1363
1364 * libc/stdio/makebuf.c (__smakebuf): If dealing with
1365 an asprintf-family buffer, make the default initial size 64.
1366
1367 2006-11-29 Eric Blake <ebb9@byu.net>
1368
1369 * libc/stdio/fvwrite.c (__sfvwrite_r): Avoid off-by-one error in
1370 asprintf, as well as quadratic realloc behavior.
1371
1372 2006-11-29 Kazunori Asayama <asayama@sm.sony.co.jpi
1373
1374 * libc/machine/spu/memset.c: Fix type of explicit cast.
1375 * libc/machine/spu/strncmp.c: Add explicit cast.
1376 * libc/machine/spu/strrchr.c: Ditto.
1377 * libc/machine/spu/strspn.c: Ditto.
1378
1379 2006-11-22 Luca Barbato <lu_zero@gentoo.org>
1380
1381 * libc/machine/spu/memcpy.c: Use spu_splats, explicit cast.
1382 * libc/machine/spu/memmove.c: Use spu_splats, explicit cast.
1383 * libc/machine/spu/memset.c: Use spu_splats, remove apple-cast.
1384 * libc/machine/spu/strchr.c: Use spu_splats, remove apple-cast.
1385 * libc/machine/spu/strncat.c: Explicit cast.
1386 * libc/machine/spu/strncmp.c: Use spu_splats.
1387 * libc/machine/spu/strncpy.c: Explicit cast.
1388 * libc/machine/spu/strrchr.c: Use spu_splats.
1389 * libc/machine/spu/strspn.c: Use spu_splats.
1390
1391 2006-11-15 Till Straumann <strauman@slac.stanford.edu>
1392
1393 * libc/time/tzset_r.c (_tzset_r): Initialize local variable.
1394
1395 2006-11-14 Eric Blake <ebb9@byu.net>
1396
1397 * libc/stdio/vfprintf.c (_vfprintf_r): Support ' flag.
1398 (chclass): ' is a flag. j, t, and z are modifiers.
1399
1400 2006-11-08 Jie Zhang <jie.zhang@analog.com>
1401
1402 * configure.host: Add support for bfin.
1403 * libc/include/machine/ieeefp.h: Define __IEEE_LITTLE_ENDIAN for bfin.
1404 * libc/include/machine/setjmp.h: Define _JBLEN for bfin.
1405 * libc/machine/bfin/aclocal.m4: Generate.
1406 * libc/machine/bfin/configure.in: New.
1407 * libc/machine/bfin/configure: Generate.
1408 * libc/machine/bfin/Makefile.am: New.
1409 * libc/machine/bfin/Makefile.in: Generate.
1410 * libc/machine/bfin/setjmp.S: New.
1411 * libc/machine/bfin/longjmp.S: New.
1412 * libc/machine/configure.in: Add bfin support.
1413 * libc/machine/configure: Generate.
1414
1415 2006-11-07 Corinna Vinschen <corinna@vinschen.de>
1416
1417 * libc/include/sys/unistd.h (_SC_STREAM_MAX): Define on Cygwin.
1418 (_PC_FILESIZEBITS): Add definition.
1419 (_PC_2_SYMLINKS): Ditto.
1420 (_PC_SYMLINK_MAX): Ditto.
1421
1422 2006-10-27 Joel Schopp <jschopp@austin.ibm.com>
1423
1424 * libc/machine/spu/memcpy.c: Override generic function with vectorized
1425 version optimized for the cell spu.
1426 * libc/machine/spu/memmove.c: Ditto.
1427 * libc/machine/spu/memset.c: Ditto.
1428 * libc/machine/spu/strcat.c: Ditto.
1429 * libc/machine/spu/strchr.c: Ditto.
1430 * libc/machine/spu/strcmp.c: Ditto.
1431 * libc/machine/spu/strcpy.c: Ditto.
1432 * libc/machine/spu/strcspn.c: Ditto.
1433 * libc/machine/spu/strlen.c: Ditto.
1434 * libc/machine/spu/strncat.c: Ditto.
1435 * libc/machine/spu/strncmp.c: Ditto.
1436 * libc/machine/spu/strncpy.c: Ditto.
1437 * libc/machine/spu/strpbrk.c: Ditto.
1438 * libc/machine/spu/strrchr.c: Ditto.
1439 * libc/machine/spu/strspn.c: Ditto.
1440 * libc/machine/spu/strxfrm.c: Ditto.
1441 * libc/machine/spu/vec_literal.h: Add abstraction of vector literals,
1442 removing altivec style initializers.
1443 * libc/machine/spu/Makefile.am: Add new files to list so they build
1444 * libc/machine/spu/Makefile.in: Regenerate from new Makefile.am
1445
1446 2006-10-27 Jeff Johnston <jjohnstn@redhat.com>
1447
1448 * README: Add a brief section on how to regenerate
1449 configuration files in newlib.
1450
1451 2006-10-25 Vladimir Prus <vladimir@codesourcery.com>
1452
1453 * libc/include/math.h: (exception): Add a comment
1454 telling fixincludes that we handle C vs. C++ issue.
1455
1456 2006-10-11 Yang Tse <yangsita@gmail.com>
1457
1458 * libc/include/machine/setjmp.h: Use __extension__ keyword for gcc's
1459 braced-groups.
1460
1461 2006-10-11 Corinna Vinschen <corinna@vinschen.de>
1462
1463 * libc/reent/reeent.c (_reclaim_reent): Free _REENT_MP_RESULT.
1464
1465 2006-09-26 Jeff Johnston <jjohnstn@redhat.com>
1466
1467 * libc/include/stdio.h[_REENT_SMALL]: Do not allow macros
1468 for clearerr, feof, or fileno.
1469 * libc/include/sys/reent.h[_REENT_SMALL](struct _reent): Change
1470 the dummy std stream scheme to use pointers to const external
1471 fake files, one for each standard stream.
1472 * libc/stdio/local.h (CHECK_INIT): Change to take a file pointer
1473 argument. For _REENT_SMALL, reset the file pointer if it
1474 matches one of the fake std stream pointers.
1475 * libc/stdio/clearerr.c: Fix CHECK_INIT macro to add file pointer
1476 argument.
1477 * libc/stdio/fclose.c: Ditto.
1478 * libc/stdio/feof.c: Ditto.
1479 * libc/stdio/ferror.c: Ditto.
1480 * libc/stdio/fflush.c: Ditto.
1481 * libc/stdio/fgetc.c: Ditto.
1482 * libc/stdio/fgets.c: Ditto.
1483 * libc/stdio/fileno.c: Ditto.
1484 * libc/stdio/findfp.c: Ditto.
1485 * libc/stdio/fputc.c: Ditto.
1486 * libc/stdio/fputs.c: Ditto.
1487 * libc/stdio/fread.c: Ditto.
1488 * libc/stdio/freopen.c: Ditto.
1489 * libc/stdio/fseek.c: Ditto.
1490 * libc/stdio/ftell.c: Ditto.
1491 * libc/stdio/fwrite.c: Ditto.
1492 * libc/stdio/getc.c: Ditto.
1493 * libc/stdio/getdelim.c: Ditto.
1494 * libc/stdio/putc.c: Ditto.
1495 * libc/stdio/refill.c: Ditto.
1496 * libc/stdio/setvbuf.c: Ditto.
1497 * libc/stdio/ungetc.c: Ditto.
1498 * libc/stdio/vfprintf.c: Ditto.
1499 * libc/stdio/vfscanf.c: Ditto.
1500 * libc/stdio/wbuf.c: Ditto.: Ditto.
1501 * libc/stdio/wsetup.c: Ditto.
1502 * libc/stdio64/freopen64.c: Ditto.
1503 * libc/stdio64/fseeko64.c: Ditto.
1504 * libc/stdio64/ftello64.c: Ditto.
1505 * libc/machine/powerpc/vfprintf.c: Ditto.
1506 * libc/machine/powerpc/vfscanf.c: Ditto.
1507
1508 2006-09-22 Paul Brook <paul@codesourcery.com>
1509
1510 * libc/include/sys/reent.h: Define and use __reent_assert.
1511
1512 2006-09-13 Joel Sherrill <joel@oarcorp.com>
1513
1514 * libc/include/pthread.h: Add pthread barriers,
1515 rwlocks, and spinlocks. Change const to
1516 _CONST and prefix parameter names with
1517 an underscore.
1518 * libc/include/sys/types.h: Add id and attribute
1519 types for barriers, wrlocks, and spinlocks.
1520 * libc/include/sys/features.h: Enable barriers,
1521 wrlocks, and spinlocks for RTEMS.
1522
1523 2006-09-13 Patrick Mansfield <patmans@us.ibm.com>
1524
1525 * libc/include/math.h: Remove _CONST from _LIB_VERSION, as it is
1526 supposed to be writable.
1527 * libm/common/s_lib_ver.c: Ditto.
1528
1529 2006-09-12 Paul Brook <paul@codesourcery.com>
1530
1531 * libc/stdlib/rand.c (srand): Add _REENT_CHECK_RAND48.
1532
1533 2006-09-07 Masaki Muranaka <monaka@monami-software.com>
1534
1535
1536 * libc/machine/xstormy16/Makefile.am:
1537 Add $(lpfx) prefix to LIBADD objects.
1538 lib_a_DEPENDENCIES uses the value of lib_a_LIBADD.
1539 * libc/machine/xstormy16/Makefile.in: Regenerated.
1540
1541 2006-09-06 Eric Blake <ebb9@byu.net>
1542
1543 * libc/stdio/vfprintf.c (_vfprintf_r, get_arg): Add 'hh', 'j',
1544 't', and 'z' modifiers.
1545
1546 2006-09-01 Kazu Hirata <kazu@codesourcery.com>
1547
1548 Merge from newlib-csl-20060320-branch:
1549 2006-05-22 Sandra Loosemore <sandra@codesourcery.com>
1550
1551 * configure.host: Tell it we have _rename and _system when
1552 building m68k-unknown-elf.
1553
1554 2006-08-29 Paul Brook <paul@codesourcery.com>
1555
1556 * libc/include/sys/config.h: Define _REENT_SMALL for Thumb-2.
1557
1558 2006-08-27 Joel Sherrill <joel.sherrill@OARcorp.com>
1559
1560 * libc/sys/rtems/machine/sys/param.h: Conditionalize definition of
1561 BLKDEV_IOSIZE and MAXPHYS so it will fit into small memory targets.
1562 This is needed to build all AVR and H8300 RTEMS multilib variants.
1563
1564 2006-08-23 Kazunori Asayama <asayama@sm.sony.co.jp>
1565
1566 * libc/machine/configure.in: Add configuration for SPU.
1567 * libc/machine/configure: Regenerated.
1568 * libc/machine/spu/memcpy.c: Include string.h.
1569
1570 2006-08-22 Eric Blake <ebb9@byu.net>
1571
1572 * libc/posix/popen.c (popen): Don't close output end of pipe in
1573 child if stdout was closed on entry.
1574 [HAVE_FCNTL]: In parent, mark file as close-on-exec, per POSIX.
1575
1576 2006-08-19 Ramana Radhakrishnan <ramana.r@gmail.com>
1577
1578 * sys/types.h: Correct syntax error caused by missing '\' on #ifdef
1579 line.
1580
1581 2006-08-17 Brian Ford <Brian.Ford@FlightSafety.com>
1582
1583 * libc/time/gmtime.c: Correct man page; clock is not a
1584 local time and no conversion occurs.
1585
1586 2006-08-16 Joel Schopp <jschopp@austin.ibm.com>
1587
1588 * configure.host (newlib_cflags) [spu]: Add special compiler
1589 options to reduce size.
1590
1591 2006-08-16 Joel Schopp <jschopp@austin.ibm.com>
1592
1593 * configure.host: Add spu support.
1594 * libc/include/stdint.h: Ditto.
1595 * libc/include/machine/ieeefp.h: Ditto.
1596 * libc/include/machine/setjmp.h: Ditto.
1597 * libc/include/sys/config.h: Ditto.
1598 * libc/include/sys/types.h: Ditto.
1599 * libc/machine/spu/Makefile.am: New file.
1600 * libc/machine/spu/Makefile.in: Ditto.
1601 * libc/machine/spu/aclocal.m4: Ditto.
1602 * libc/machine/spu/configure: Ditto.
1603 * libc/machine/spu/configure.in: Ditto.
1604 * libc/machine/spu/memcpy.c: Ditto.
1605 * libc/machine/spu/setjmp.S: Ditto.
1606
1607 2006-08-03 J"orn Rennecke <joern.rennecke@st.com>
1608
1609 * dtoa.c (dtoa_r): Handle the denormalized _DOUBLE_IS_32BITS case
1610 properly.
1611
1612 2006-08-01 Jeff Johnston <jjohnstn@redhat.com>
1613
1614 * libc/Makefile.am: Add libc_TEXINFOS dependency on
1615 generated .texi files.
1616 * libm/Makefile.am: Add libm_TEXINFOS dependency on
1617 generated .texi files.
1618 * libc/Makefile.in: Regenerated.
1619 * libm/Makefile.in: Ditto.
1620
1621 2006-08-01 Thiemo Seufer <ths@mips.com>
1622 Nigel Stephens <nigel@mips.com>
1623
1624 * libc/include/sys/config.h (__ATTRIBUTE_IMPURE_PTR__): For MIPS
1625 define this to force _impure_ptr to live in the .sdata section.
1626
1627 2006-07-31 Jeff Johnston <jjohnstn@redhat.com>
1628
1629 * acinclude.m4: Check for readelf tool.
1630 * configure.in: Use ${READELF} instead of hard-coding.
1631 * Regenerate all aclocal.m4, Makefile.in, and configure files.
1632
1633 2006-07-31 Jeff Johnston <jjohnstn@redhat.com>
1634
1635 * libc/sys/linux/mmap.c: Remove include of sys/mman.h
1636 to avoid conflict with newer glibc's revision of mremap.
1637
1638 2006-07-05 Jeff Johnston <jjohnstn@redhat.com>
1639
1640 * libc/stdlib/mprec.h [_DOUBLE_IS_32BITS]: Turn off C99 hex
1641 floating-point format support. Also redefine
1642 dword0 and dword1 macros.
1643 * libc/stdlib/strtod.c: Add checks for _DOUBLE_IS_32BITS
1644 to prevent setting dword1 which is an rvalue only.
1645
1646 2006-06-22 Jeff Johnston <jjohnstn@redhat.com>
1647
1648 * libc/stdlib/Makefile.am: Add new gdtoa routines.
1649 * libc/stdlib/Makefile.in: Regenerated.
1650 * libc/stdlib/gd_qnan.h: New file.
1651 * libc/stdlib/gdtoa-gethex.c: Ditto.
1652 * libc/stdlib/gdtoa-hexnan.c: Ditto.
1653 * libc/stdlib/gdtoa.h: Ditto.
1654 * libc/stdlib/mprec.c: Add new helper routines needed by
1655 the new gdtoa code.
1656 * libc/stdlib/mprec.h: Integrate some defines and prototypes
1657 used by gdtoa routines here.
1658 * libc/stdlib/strtod.c: Rebased on David M. Gay's gdtoa-strtod.c
1659 which adds C99 support such as nan, inf, and hexadecimal input
1660 format.
1661
1662 2006-06-15 Corinna Vinschen <corinna@vinschen.de>
1663
1664 * libc/include/stdio.h (__sgetc_r): Fix typo.
1665 * libc/stdio/fread.c (_fread_r): Convert crlf calls to crlf_r.
1666 * libc/stdio/rget.c (__srbuf): Reinstantiate.
1667 * libc/stdio/wbuf.c (__swbuf): Ditto.
1668
1669 2006-06-14 Jeff Johnston <jjohnstn@redhat.com>
1670
1671 * libc/include/stdio.h: Add new reentrant I/O prototypes for
1672 read/write functions. Change getc/putc macros to have reentrant underlying
1673 macros/functions. This includes __sgetc_raw_r, __sgetc_r, and __sputc_r.
1674 * libc/stdio/fgetc.c: Fix and/or add reentrant version to call
1675 new reentrant I/O functions/macros for reading/writing.
1676 * libc/stdio/fgets.c: Ditto.
1677 * libc/stdio/fputc.c: Ditto.
1678 * libc/stdio/fputs.c: Ditto.
1679 * libc/stdio/fread.c: Ditto.
1680 * libc/stdio/fseek.c: Ditto.
1681 * libc/stdio64/fseeko64.c: Ditto.
1682 * libc/stdio/fwrite.c: Ditto.
1683 * libc/stdio/getc.c: Ditto.
1684 * libc/stdio/getc_u.c: Ditto.
1685 * libc/stdio/getchar.c: Ditto.
1686 * libc/stdio/getchar_u.c: Ditto.
1687 * libc/stdio/putc.c: Ditto.
1688 * libc/stdio/putc_u.c: Ditto.
1689 * libc/stdio/putchar.c: Ditto.
1690 * libc/stdio/puts.c: Ditto.
1691 * libc/stdio/vfprintf.c: Ditto.
1692 * libc/stdio/vfscanf.c: Ditto.
1693 * libc/stdio/fvwrite.c: Change __sfvwrite into reentrant __sfvwrite_r.
1694 Change all previous callers of __sfvwrite. Set errno to EBADF and
1695 set error flag on if attempt is made to write to file that does not
1696 allow writing.
1697 * libc/stdio/fvwrite.h: Fix new reentrant prototypes.
1698 * libc/stdio/local.h: Ditto.
1699 * libc/stdio/refill.c: Turn __srefill into reentrant __srefill_r.
1700 Set errno to EBADF and the error flag on if attempt is made to
1701 read unreadable file. Change all previous callers of __srefill.
1702 * libc/stdio/rget.c
1703 * libc/stdio/wbuf.c: Turn __swbuf into reentrant __swbuf_r. Change
1704 all previous callers of __swbuf.
1705 * libc/sys/linux/machine/i386/huge_val.h: Ifdef out file contents since
1706 huge value macros are already defined correctly for i386 by <math.h>.
1707
1708 2006-06-13 Sandra Loosemore <sandra@codesourcery.com>
1709
1710 * /libc/sys/arm/syscalls.c (_unlink, isatty, _system, _rename):
1711 Make them do something useful in the ARM_RDI_MONITOR case.
1712
1713 2006-06-07 Fred Fish <fnf@specifix.com>
1714
1715 * libc/search/hash_bigkey.c (MIN,MAX): Remove
1716 defines that are already supplied by <sys/param.h>.
1717
1718 2006-06-07 Fred Fish <fnf@specifix.com>
1719
1720 * configure.host: Remove references to HAVE_GETTIMEOFDAY.
1721
1722 2006-06-05 Shaun Jackman <sjackman@gmail.com>
1723
1724 * libc/posix/Makefile.am (GENERAL_SOURCES): Add sleep.c and
1725 usleep.c.
1726 * libc/posix/Makefile.in: Regenerate.
1727 * libc/posix/sleep.c: New file.
1728 * libc/posix/usleep.c: Ditto.
1729
1730 2006-06-05 Shaun Jackman <sjackman@gmail.com>
1731
1732 * configure.host (newlib_cflags) [arm, thumb, xscale]: Remove
1733 -DABORT_PROVIDED flag.
1734 * newlib/libc/sys/arm/syscalls.c (kill, exit): Sync with libgloss.
1735 * newlib/libc/sys/arm/libcfunc.c (abort): Ditto.
1736
1737 2006-06-05 Jeff Johnston <jjohnstn@redhat.com>
1738
1739 * Makefile.am (AM_MAKEFLAGS): Pass CCASFLAGS.
1740 * Makefile.in: Regenerated.
1741 * libc/machine/sh/Makefile.am (AM_CCASFLAGS): Remove
1742 extraneous CFLAGS reference now that CCASFLAGS are being extended
1743 properly via multilib.
1744 * libc/machine/sh/Makefile.in: Regenerated.
1745
1746 2006-06-02 Shaun Jackman <sjackman@gmail.com>
1747
1748 * libc/unix/sigset.c: Undefine sigfillset, sigdelset, and
1749 sigismember.
1750
1751 2006-05-23 Jeff Johnston <jjohnstn@redhat.com>
1752
1753 * libc/misc/dprintf.c: Removed.
1754 * libc/misc/__dprintf.c: Renamed from dprintf.c.
1755 * libc/misc/Makefile.am: Changed appropriately for rename.
1756 * libc/misc/Makefile.in: Regenerated.
1757
1758 2006-05-23 Jeff Johnston <jjohnstn@redhat.com>
1759
1760 * libc/include/stdio.h: Protect dprintf prototype
1761 with #ifndef dprintf so as to not interfere with
1762 historical code defining their own dprintf macro.
1763
1764 2006-05-18 Jeff Johnston <jjohnstn@redhat.com>
1765
1766 * libc/include/stdio.h: Add prototypes for fiscanf,
1767 iscanf, and siscanf.
1768
1769 2006-05-11 J"orn Rennecke <joern.rennecke@st.com>
1770
1771 * acinclude.m4 (_NEWLIB_VERSION): Rename to:
1772 (DEF_NEWLIB_VERSION).
1773 * configure.in (_NEWLIB_VERSION): Use NEWLIB_VERSION.
1774 * configure: Regenerate.
1775
1776 2006-05-09 Jeff Johnston <jjohnstn@redhat.com>
1777
1778 * libc/ctype/Makefile.am: Add $(ELIX_SOURCES) to
1779 lib_a_SOURCES.
1780 * libc/ctype/Makefile.in: Regenerated.
1781
1782 2006-05-09 Kazu Hirata <kazu@codesourcery.com>
1783
1784 * libc/machine/arm/Makefile.am: Fix a typo.
1785 * libc/machine/arm/Makefile.in: Regenerated.
1786
1787 2006-05-08 J"orn Rennecke <joern.rennecke@st.com>
1788
1789 * libc/machine/sh/Makefile.am (AM_CCASFLAGS): Add $(CFLAGS).
1790 * libc/machine/sh/Makefile.in: Regenerate.
1791
1792 2006-05-03 J"orn Rennecke <joern.rennecke@st.com>
1793
1794 * libc/sys/sh/Makefile.am (AM_CCASFLAGS): Add $(CFLAGS).
1795 * libc/sys/sh/Makefile.in (AM_CCASFLAGS): Likewise.
1796
1797 2006-05-02 Jeff Johnston <jjohnstn@redhat.com>
1798
1799 * libc/sys/sysnec810/Makefile.am: Specify .S files instead of
1800 .s.
1801 * libc/sys/sysnec810/Makefile.in: Regenerated.
1802 * libc/sys/sysnec810/crt0.S: Renamed from .s file.
1803 * libc/sys/sysnec810/io.S: Ditto.
1804 * libc/sys/sysnec810/crt0.s: Renamed to .S file.
1805 * libc/sys/sysnec810/io.s: Ditto.
1806
1807 2006-05-01 Jeff Johnston <jjohnstn@redhat.com>
1808
1809 * libc/argz/Makefile.am: Prefix any objects specified with $(lpfx). If source file can
1810 be specified instead of object, do so.
1811 * libc/ctype/Makefile.am: Ditto.
1812 * libc/iconv/ccs/Makefile.am: Ditto.
1813 * libc/iconv/ces/Makefile.am: Ditto.
1814 * libc/iconv/lib/Makefile.am: Ditto.
1815 * libc/locale/Makefile.am: Ditto.
1816 * libc/posix/Makefile.am: Ditto.
1817 * libc/reent/Makefile.am: Ditto.
1818 * libc/search/Makefile.am: Ditto.
1819 * libc/stdio/Makefile.am: Ditto.
1820 * libc/stdio64/Makefile.am: Ditto.
1821 * libc/stdlib/Makefile.am: Ditto.
1822 * libc/string/Makefile.am: Ditto.
1823 * libc/syscalls/Makefile.am: Ditto.
1824 * libc/unix/Makefile.am: Ditto.
1825 * libc/machine/a29k/Makefile.am: Specify lib_a_CCASFLAGS so .S files will get
1826 prefix added automatically. Any specified rules must use $(lpfx) for
1827 object file names.
1828 * libc/machine/arm/Makefile.am: Ditto.
1829 * libc/machine/cris/Makefile.am: Ditto.
1830 * libc/machine/crx/Makefile.am: Ditto.
1831 * libc/machine/d10v/Makefile.am: Ditto.
1832 * libc/machine/d30v/Makefile.am: Ditto.
1833 * libc/machine/fr30/Makefile.am: Ditto.
1834 * libc/machine/frv/Makefile.am: Ditto.
1835 * libc/machine/h8300/Makefile.am: Ditto.
1836 * libc/machine/h8500/Makefile.am: Ditto.
1837 * libc/machine/hppa/Makefile.am: Ditto.
1838 * libc/machine/i386/Makefile.am: Ditto.
1839 * libc/machine/i960/Makefile.am: Ditto.
1840 * libc/machine/iq2000/Makefile.am: Ditto.
1841 * libc/machine/m32c/Makefile.am: Ditto.
1842 * libc/machine/m32r/Makefile.am: Ditto.
1843 * libc/machine/m68hc11/Makefile.am: Ditto.
1844 * libc/machine/m68k/Makefile.am: Ditto.
1845 * libc/machine/m88k/Makefile.am: Ditto.
1846 * libc/machine/mips/Makefile.am: Ditto.
1847 * libc/machine/mn10200/Makefile.am: Ditto.
1848 * libc/machine/mn10300/Makefile.am: Ditto.
1849 * libc/machine/mt/Makefile.am: Ditto.
1850 * libc/machine/necv70/Makefile.am: Ditto.
1851 * libc/machine/powerpc/Makefile.am: Ditto.
1852 * libc/machine/sh/Makefile.am: Ditto.
1853 * libc/machine/sh/Makefile.in: Ditto.
1854 * libc/machine/sparc/Makefile.am: Ditto.
1855 * libc/machine/tic4x/Makefile.am: Ditto.
1856 * libc/machine/tic80/Makefile.am: Ditto.
1857 * libc/machine/v850/Makefile.am: Ditto.
1858 * libc/machine/w65/Makefile.am: Ditto.
1859 * libc/machine/xscale/Makefile.am: Ditto.
1860 * libc/machine/xstormy16/Makefile.am: Ditto.
1861 * libc/machine/z8k/Makefile.am: Ditto.
1862 * libc/sys/a29khif/Makefile.am: Ditto.
1863 * libc/sys/arm/Makefile.am: Ditto.
1864 * libc/sys/d10v/Makefile.am: Ditto.
1865 * libc/sys/h8300hms/Makefile.am: Ditto.
1866 * libc/sys/h8500hms/Makefile.am: Ditto.
1867 * libc/sys/linux/Makefile.am: Ditto.
1868 * libc/sys/linux/linuxthreads/Makefile.am: Ditto.
1869 * libc/sys/linux/net/Makefile.am: Ditto.
1870 * libc/sys/linux/stdlib/Makefile.am: Ditto.
1871 * libc/sys/m88kbug/Makefile.am: Ditto.
1872 * libc/sys/mmixware/Makefile.am: Ditto.
1873 * libc/sys/rdos/Makefile.am: Ditto.
1874 * libc/sys/rtems/Makefile.am: Ditto.
1875 * libc/sys/sh/Makefile.am: Ditto.
1876 * libc/sys/sun4/Makefile.am: Ditto.
1877 * libc/sys/sysmec/Makefile.am: Ditto.
1878 * libc/sys/sysnec810/Makefile.am: Ditto.
1879 * libc/sys/sysnecv850/Makefile.am: Ditto.
1880 * libc/sys/sysvi386/Makefile.am: Ditto.
1881 * libc/sys/sysvnecv70/Makefile.am: Ditto.
1882 * libc/sys/tic80/Makefile.am: Ditto.
1883 * libc/sys/w65/Makefile.am: Ditto.
1884 * libc/sys/z8ksim/Makefile.am: Ditto.
1885 * libc/machine/necv70/fastmath.S: Renamed from .s file.
1886 * libc/machine/necv70/setjmp.S: Ditto.
1887 * libc/machine/necv70/fastmath.s: Removed.
1888 * libc/machine/necv70/setjmp.s: Ditto.
1889 * libc/machine/w65/*.S: New files renamed from .s files.
1890 * libc/machine/w65/*.s: Renamed and removed.
1891 * libc/sys/a29khif/*.S: New files renamed from .s files.
1892 * libc/sys/a29khif/*.s: Renamed and removed.
1893 * libc/sys/sysvi386/*.S: New files renamed from .s files.
1894 * libc/sys/sysvi386/*.s: Renamed and removed.
1895 * libc/sys/sysvnecv70/*.S: New files renamed from .s files.
1896 * libc/sys/sysvnecv70/*.s: Renamed and removed.
1897 * libc/*Makefile.in: Regenerated as appropriate.
1898
1899 2006-04-24 DJ Delorie <dj@redhat.com>
1900
1901 * libc/machine/sh/configure.in: Avoid link tests.
1902 * libc/machine/sh/configure: Regenerate.
1903
1904 2006-04-18 Jeff Johnston <jjohnstn@redhat.com>
1905
1906 * libc/include/sys/signal.h (sigdelset, sigfillset, sigismember): New macros.
1907 (sigaddset, sigemptyset): Add return code.
1908
1909 2006-04-13 Ralf Corsepius <ralf.corsepius@rtems.org>
1910
1911 * acinclude.m4: New _NEWLIB_VERSION.
1912 * acinclude.m4(NEWLIB_CONFIGURE): AC_REQUIRE(_NEWLIB_VERSION).
1913 Use AC_CANONICAL_HOST instead of AC_CANONICAL_SYSTEM.
1914 Use new form of AC_INIT_AUTOMAKE.
1915 * configure.in: AC_PREREQ(2.59).
1916 Use autoconf-2.5.x version of AC_INIT.
1917 Use AC_CONFIG_FILES and autoconf-2.5x AC_OUTPUT instead of
1918 autoconf-2.13's AC_OUTPUT.
1919 * libm/configure.in: Ditto.
1920 * libm/machine/configure.in: Ditto.
1921 * libm/machine/i386/configure.in: Ditto.
1922 * libc/configure.in: Ditto.
1923 * libc/machine/a29k/configure.in: Ditto.
1924 * libc/machine/arm/configure.in: Ditto.
1925 * libc/machine/configure.in: Ditto.
1926 * libc/machine/mn10300/configure.in: Ditto.
1927 * libc/machine/powerpc/configure.in: Ditto.
1928 * libc/machine/z8k/configure.in: Ditto.
1929 * libc/machine/h8300/configure.in: Ditto.
1930 * libc/machine/mips/configure.in: Ditto.
1931 * libc/machine/crx/configure.in: Ditto.
1932 * libc/machine/m68hc11/configure.in: Ditto.
1933 * libc/machine/h8500/configure.in: Ditto.
1934 * libc/machine/xscale/configure.in: Ditto.
1935 * libc/machine/d10v/configure.in: Ditto.
1936 * libc/machine/fr30/configure.in: Ditto.
1937 * libc/machine/sh/configure.in: Ditto.
1938 * libc/machine/tic80/configure.in: Ditto.
1939 * libc/machine/m32r/configure.in: Ditto.
1940 * libc/machine/xstormy16/configure.in: Ditto.
1941 * libc/machine/i386/configure.in: Ditto.
1942 * libc/machine/d30v/configure.in: Ditto.
1943 * libc/machine/mn10200/configure.in: Ditto.
1944 * libc/machine/frv/configure.in: Ditto.
1945 * libc/machine/mt/configure.in: Ditto.
1946 * libc/machine/i960/configure.in: Ditto.
1947 * libc/machine/v850/configure.in: Ditto.
1948 * libc/machine/necv70/configure.in: Ditto.
1949 * libc/machine/tic4x/configure.in: Ditto.
1950 * libc/machine/cris/configure.in: Ditto.
1951 * libc/machine/m68k/configure.in: Ditto.
1952 * libc/machine/m32c/configure.in: Ditto.
1953 * libc/machine/hppa/configure.in: Ditto.
1954 * libc/machine/w65/configure.in: Ditto.
1955 * libc/machine/iq2000/configure.in: Ditto.
1956 * libc/machine/sparc/configure.in: Ditto.
1957 * libc/machine/m88k/configure.in: Ditto.
1958 * libc/sys/linux/configure.in: Ditto.
1959 * libc/sys/linux/machine/configure.in: Ditto.
1960 * libc/sys/linux/machine/i386/configure.in: Ditto.
1961 * libc/sys/linux/linuxthreads/configure.in: Ditto.
1962 * libc/sys/linux/linuxthreads/machine/configure.in: Ditto.
1963 * libc/sys/linux/linuxthreads/machine/i386/configure.in: Ditto.
1964 * libc/sys/arm/configure.in: Ditto.
1965 * libc/sys/configure.in: Ditto.
1966 * libc/sys/decstation/configure.in: Ditto.
1967 * libc/sys/a29khif/configure.in: Ditto.
1968 * libc/sys/sysnecv850/configure.in: Ditto.
1969 * libc/sys/d10v/configure.in: Ditto.
1970 * libc/sys/netware/configure.in: Ditto.
1971 * libc/sys/mmixware/configure.in: Ditto.
1972 * libc/sys/h8500hms/configure.in: Ditto.
1973 * libc/sys/sh/configure.in: Ditto.
1974 * libc/sys/tic80/configure.in: Ditto.
1975 * libc/sys/rdos/configure.in: Ditto.
1976 * libc/sys/sysmec/configure.in: Ditto.
1977 * libc/sys/sysvi386/configure.in: Ditto.
1978 * libc/sys/h8300hms/configure.in: Ditto.
1979 * libc/sys/sparc64/configure.in: Ditto.
1980 * libc/sys/arc/configure.in: Ditto.
1981 * libc/sys/sysnec810/configure.in: Ditto.
1982 * libc/sys/m88kbug/configure.in: Ditto.
1983 * libc/sys/sysvnecv70/configure.in: Ditto.
1984 * libc/sys/z8ksim/configure.in: Ditto.
1985 * libc/sys/rtems/configure.in: Ditto.
1986 * libc/sys/w65/configure.in: Ditto.
1987 * libc/sys/sun4/configure.in: Ditto.
1988 * doc/configure.in: Ditto.
1989 * iconvdata/configure.in: Ditto.
1990 * configure.in: Use AC_CONFIG_HEADER instead of AM_CONFIG_HEADER.
1991
1992 2006-04-11 Jeff Johnston <jjohnstn@redhat.com>
1993
1994 * acinclude.m4: Properly add square brackets for
1995 AC_DEFUN macros. Rewrite LIB_AC_PROG_CC to remove
1996 macros no longer available. Add LIB_AM_PROG_AS to
1997 remove prereq of AC_PROG_CC. Add LIB_AC_PROG_CC_GNU
1998 macro. Substitute lpfx (library object prefix).
1999 * configure.host: Set lpfx depending on whether
2000 libtool is used or not.
2001 * configure.in: Individually specify libc and libm
2002 to AC_CONFIG_SUBDIRS. Add square bracket quoting as
2003 necessary.
2004 * Makefile.am: Use $(lpfx) to get object names for
2005 math-library functions that should also be in libc.
2006 * libc/machine/configure.in: Use case statement to determine
2007 AC_CONFIG_SUBDIRS statement.
2008 * libc/sys/linux/linuxthreads/machine/configure.in: Ditto.
2009 * libc/sys/linux/machine/configure.in: Ditto.
2010 * libc/sys/configure.in: Ditto.
2011 * libm/machine/configure.in: Ditto.
2012 * libc/sys/linux/configure.in: Fix up AC_CONFIG_SUBDIRS.
2013 * libm/configure.in: Add AM_CONDITIONAL statement
2014 for HAVE_LIBM_MACHINE_DIR.
2015 * libc/machine/a29k/Makefile.am: Modified to work with
2016 latest automake. Change includes setting AM_CCASFLAGS
2017 so building .S files will properly pick up flags used
2018 to build C files.
2019 * libc/machine/arm/Makefile.am: Ditto.
2020 * libc/machine/crx/Makefile.am: Ditto.
2021 * libc/machine/d10v/Makefile.am: Ditto.
2022 * libc/machine/d30v/Makefile.am: Ditto.
2023 * libc/machine/fr30/Makefile.am: Ditto.
2024 * libc/machine/frv/Makefile.am: Ditto.
2025 * libc/machine/h8300/Makefile.am: Ditto.
2026 * libc/machine/h8500/Makefile.am: Ditto.
2027 * libc/machine/hppa/Makefile.am: Ditto.
2028 * libc/machine/i386/Makefile.am: Ditto.
2029 * libc/machine/iq2000/Makefile.am: Ditto.
2030 * libc/machine/m32c/Makefile.am: Ditto.
2031 * libc/machine/m32r/Makefile.am: Ditto.
2032 * libc/machine/m68hc11/Makefile.am: Ditto.
2033 * libc/machine/m68k/Makefile.am: Ditto.
2034 * libc/machine/m88k/Makefile.am: Ditto.
2035 * libc/machine/mips/Makefile.am: Ditto.
2036 * libc/machine/mn10200/Makefile.am: Ditto.
2037 * libc/machine/mn10300/Makefile.am: Ditto.
2038 * libc/machine/mt/Makefile.am: Ditto.
2039 * libc/machine/necv70/Makefile.am: Ditto.
2040 * libc/machine/powerpc/Makefile.am: Ditto.
2041 * libc/machine/sh/Makefile.am: Ditto.
2042 * libc/machine/sparc/Makefile.am: Ditto.
2043 * libc/machine/tic4x/Makefile.am: Ditto.
2044 * libc/machine/tic80/Makefile.am: Ditto.
2045 * libc/machine/v850/Makefile.am: Ditto.
2046 * libc/machine/w65/Makefile.am: Ditto.
2047 * libc/machine/xscale/Makefile.am: Ditto.
2048 * libc/machine/xstormy16/Makefile.am: Ditto.
2049 * libc/machine/z8k/Makefile.am: Ditto.
2050 * libc/sys/a29khif/Makefile.am: Ditto.
2051 * libc/sys/arc/Makefile.am: Ditto.
2052 * libc/sys/arm/Makefile.am: Ditto.
2053 * libc/sys/d10v/Makefile.am: Ditto.
2054 * libc/sys/decstation/Makefile.am: Ditto.
2055 * libc/sys/h8300hms/Makefile.am: Ditto.
2056 * libc/sys/h8500hms/Makefile.am: Ditto.
2057 * libc/sys/linux/linuxthreads/machine/i386/Makefile.am: Ditto.
2058 * libc/sys/linux/machine/i386/Makefile.am: Ditto.
2059 * libc/sys/m88kbug/Makefile.am: Ditto.
2060 * libc/sys/mmixware/Makefile.am: Ditto.
2061 * libc/sys/netware/Makefile.am: Ditto.
2062 * libc/sys/rdos/Makefile.am: Ditto.
2063 * libc/sys/rtems/Makefile.am: Ditto.
2064 * libc/sys/sh/Makefile.am: Ditto.
2065 * libc/sys/sparc64/Makefile.am: Ditto.
2066 * libc/sys/sysmec/Makefile.am: Ditto.
2067 * libc/sys/sysnec810/Makefile.am: Ditto.
2068 * libc/sys/sysnecv850/Makefile.am: Ditto.
2069 * libc/sys/sysvi386/Makefile.am: Ditto.
2070 * libc/sys/sysvnecv70/Makefile.am: Ditto.
2071 * libc/sys/tic80/Makefile.am: Ditto.
2072 * libc/sys/w65/Makefile.am: Ditto.
2073 * libc/sys/z8ksim/Makefile.am: Ditto.
2074 * libm/machine/i386/Makefile.am: Ditto.
2075 * libc/sys/arm/Makefile.am: Ditto plus add EXTRA sources including
2076 trap.S so that automake will generate a .S.o suffix rule.
2077 * libc/argz/Makefile.am: Modified to work with
2078 latest automake. Change includes adding lib_a_CFLAGS
2079 so automake doesn't complain about libtool and non-libtool
2080 libraries sharing objects.
2081 * libc/ctype/Makefile.am: Ditto.
2082 * libc/errno/Makefile.am: Ditto.
2083 * libc/iconv/ccs/Makefile.am: Ditto.
2084 * libc/iconv/ces/Makefile.am: Ditto.
2085 * libc/iconv/lib/Makefile.am: Ditto.
2086 * libc/locale/Makefile.am: Ditto.
2087 * libc/misc/Makefile.am: Ditto.
2088 * libc/posix/Makefile.am: Ditto.
2089 * libc/reent/Makefile.am: Ditto.
2090 * libc/search/Makefile.am: Ditto.
2091 * libc/signal/Makefile.am: Ditto.
2092 * libc/stdio/Makefile.am: Ditto.
2093 * libc/stdio64/Makefile.am: Ditto.
2094 * libc/stdlib/Makefile.am: Ditto.
2095 * libc/string/Makefile.am: Ditto.
2096 * libc/sys/linux/Makefile.am: Ditto.
2097 * libc/sys/linux/argp/Makefile.am: Ditto.
2098 * libc/sys/linux/cmath/Makefile.am: Ditto.
2099 * libc/sys/linux/dl/Makefile.am: Ditto.
2100 * libc/sys/linux/iconv/Makefile.am: Ditto.
2101 * libc/sys/linux/intl/Makefile.am: Ditto.
2102 * libc/sys/linux/linuxthreads/Makefile.am: Ditto.
2103 * libc/sys/linux/net/Makefile.am: Ditto.
2104 * libc/sys/linux/stdlib/Makefile.am: Ditto.
2105 * libc/syscalls/Makefile.am: Ditto.
2106 * libc/time/Makefile.am: Ditto.
2107 * libc/unix/Makefile.am: Ditto.
2108 * libm/Makefile.am: Ditto.
2109 * libm/common/Makefile.am: Ditto.
2110 * libm/math/Makefile.am: Ditto.
2111 * libm/mathfp/Makefile.am: Ditto.
2112 * Regenerate all aclocal.m4, Makefile.in, and configure files.
2113
2114 2006-04-07 Jeff Johnston <jjohnstn@redhat.com>
2115
2116 * libc/time/time.c (time): Do not check for HAVE_GETTIMEOFDAY
2117 anymore. Assume there is a gettimeofday syscall.
2118
2119 2006-03-29 Shaun Jackman <sjackman@gmail.com>
2120
2121 * libc/sys/linux/include/netinet/ip.h: Include netinet/in_systm.h
2122 for the declaration of n_long.
2123
2124 2006-03-29 Shaun Jackman <sjackman@gmail.com>
2125
2126 * libc/sys/linux/include/net/if.h: Include sys/socket.h for
2127 struct sockaddr.
2128 (IFF_SMART): Replace this define with IFF_NOTRAILERS.
2129 (IFF_CANTCHANGE): Replace IFF_SMART reference with IFF_NOTRAILERS.
2130 (IFF_NOTRAILERS): New define.
2131 (struct ifreq): Add ifru_netmask.
2132 (ifr_netmask): New define.
2133
2134 2006-03-29 Shaun Jackman <sjackman@gmail.com>
2135
2136 * libc/sys/linux/sys/ioccom.h (ioctl): Change declaration to
2137 match sys/ioctl.h.
2138
2139 2006-03-29 Shaun Jackman <sjackman@gmail.com>
2140
2141 * libtool.m4: Set lt_cv_deplibs_check_method=pass_all for
2142 linux-newlib libc implementations.
2143
2144 2006-03-29 Eric Blake <ebb9@byu.net>
2145
2146 * libc/stdio/freopen.c (_freopen_r) [__SCLE]: Fix typo.
2147 * libc/stdio64/freopen64.c (_freopen64_r) [__SCLE]: Likewise.
2148
2149 2006-03-29 Jeff Johnston <jjohnstn@redhat.com>
2150
2151 * libc/sys/linux/io.c (__mknod): Fix declaration of
2152 syscall to pass a dev_t as third argument rather than
2153 a pointer to dev_t.
2154
2155 2006-03-29 Jeff Johnston <jjohnstn@redhat.com>
2156
2157 * libc/sys/linux/net/name6.c: Fix struct references.
2158
2159 2006-03-22 Mark Mitchell <mark@codesourcery.com>
2160
2161 * configure.host: Allow hosts to set the default
2162 newlib_atexit_dynamic_alloc value.
2163 * configure.in: Likewise.
2164 * configure: Regenerated.
2165
2166 2006-03-20 Mark Mitchell <mark@codesourcery.com>
2167
2168 * acconfig.h (_ATEXIT_DYNAMIC_ALLOC): Undef.
2169 * configure.in (--disable-newlib-atexit-dynamic-alloc): New
2170 option.
2171 * configure: Regenerated.
2172 * newlib.hin: Regenerated.
2173 * libc/stdlib/__atexit.c (__register_exitproc): Don't call malloc
2174 if _ATEXIT_DYNAMIC_ALLOC is undefined.
2175 * libc/stdlib/__call_atexit.c (__call_exitprocs): Don't call free
2176 if _ATEXIT_DYNAMIC_ALLOC is undefined.
2177
2178 2006-03-17 Jeff Johnston <jjohnstn@redhat.com>
2179
2180 * libc/sys/linux/linuxthreads/config.h: Remove definition
2181 of UINT32_C.
2182
2183 2006-03-15 Jeff Johnston <jjohnstn@redhat.com>
2184
2185 * libc/stdio/wsetup.c (__swsetup): Don't make a buffer
2186 for a string I/O file that isn't using the asprintf family.
2187
2188 2006-03-07 Eric Blake <ebb9@byu.net>
2189
2190 * libc/stdio/freopen.c (_freopen_r) [HAVE_FCNTL]: For NULL
2191 filename, allow read-only or write-only FILE atop O_RDWR file
2192 descriptor.
2193 * libc/stdio64/freopen64.c (_freopen64_r) [HAVE_FCNTL]: Likewise.
2194
2195 2006-03-07 Jeff Johnston <jjohnstn@redhat.com>
2196
2197 * libm/common/sf_isinf.c[_DOUBLE_IS_32BITS]: Undef isinf.
2198 * libm/common/sf_isnan.c[_DOUBLE_IS_32BITS]: Undef isnan.
2199
2200 2006-03-02 Jeff Johnston <jjohnstn@redhat.com>
2201
2202 * libm/math/math.tex: Fix reference to sisnan.def which
2203 is now in common subdirectory.
2204 * libm/mathfp/mathfp.tex: Ditto.
2205
2206 2006-02-27 Jeff Johnston <jjohnstn@redhat.com>
2207
2208 * Makefile.am (MATHOBJS_IN_LIBC): Add s_isinfd, sf_isinff,
2209 s_isnand, and sf_isnanf object files.
2210 * Makefile.in: Regenerated.
2211 * libc/include/ieeefp.h: Undef isnan and isinf to avoid
2212 conflict if <math.h> has previously been included.
2213 * libc/include/math.h
2214 * libc/include/math.h: Make isnan and isinf macros to
2215 conform to C99.
2216 (__isinfd, __isinff, __isnand, __isnanf): New functions.
2217 * libm/common/Makefile.am: Add new s_isinfd, s_isnand, sf_isinff,
2218 and sf_isnanf files. Also support s_isnan, sf_isnan, s_isinf, and
2219 sf_isinf files which have been moved from math/mathfp directories.
2220 * libm/common/Makefile.in: Regenerated.
2221 * libm/common/s_isinfd.c: New file.
2222 * libm/common/s_isnand.c: Ditto.
2223 * libm/common/sf_isinff.c: Ditto.
2224 * libm/common/sf_isnanf.c: Ditto.
2225 * libm/common/s_isinf.c: Moved from libm/math directory.
2226 * libm/common/s_isnan.c: Ditto.
2227 * libm/common/sf_isinf.c: Ditto.
2228 * libm/common/sf_isnan.c: Ditto.
2229 * libm/math/Makefile.am: Remove isinf and isnan family functions
2230 which have been moved into common directory.
2231 * libm/mathfp/Makefile.am: Ditto.
2232 * libm/math/Makefile.in: Regenerated.
2233 * libm/mathfp/Makefile.in: Ditto.
2234 * libm/math/s_isinf.c: Removed.
2235 * libm/math/s_isnan.c: Ditto.
2236 * libm/math/sf_isinf.c: Ditto.
2237 * libm/math/sf_isnan.c: Ditto.
2238 * libm/mathfp/s_isinf.c: Ditto.
2239 * libm/mathfp/s_isnan.c: Ditto.
2240 * libm/mathfp/sf_isinf.c: Ditto.
2241 * libm/mathfp/sf_isnan.c: Ditto.
2242
2243 2006-02-20 Jeff Johnston <jjohnstn@redhat.com>
2244
2245 * libc/stdio/fflush.c (fflush): For an fflush on a read-only
2246 stream, turn off fseek/rewind optimization as per POSIX/SUSv3.
2247 * libc/stdio/fseek.c (_fseek_r): After a successful unoptimized
2248 seek, turn off the __SNPT no-optimization flag.
2249
2250 2006-02-16 Jeff Johnston <jjohnstn@redhat.com>
2251
2252 * libc/sys/linux/aio.c: Define _GNU_SOURCE so struct aioinit
2253 will be defined.
2254 * libc/sys/linux/sys/types.h: Move <sys/config.h> ahead of
2255 <features.h> to preset special flags.
2256
2257 2006-02-15 Corinna Vinschen <corinna@vinschen.de>
2258
2259 * libc/include/sys/time.h (struct timeval): Change member types
2260 according to SUSv3.
2261 * libc/include/sys/types.h (useconds_t): Change to unsigned
2262 according to SUSv3.
2263 (suseconds_t): Define type.
2264
2265 2006-02-13 Jeff Johnston <jjohnstn@redhat.com>
2266 David Carne <davidcarne@gmail.com>
2267
2268 * libc/string/strndup_r.c (_strndup_r): Use strnlen logic
2269 instead of strlen to determine number of bytes to copy.
2270 * libc/string/strnlen.c (strnlen): Fix so check for max limit occurs
2271 before looking at storage location.
2272
2273 2006-02-07 Paul Brook <paul@codesourcery.com>
2274
2275 * libc/machine/arm/setjmp.S: Add Thumb-2 support.
2276 * libc/sys/arm/crt0.S: Add Thumb-2 startup code.
2277 * libc/sys/arm/libcfunc.c (do_AngelSWI): Use AngelSWIInsn.
2278 * libc/sys/arm/swi.h (AngelSWIInsn, AngelSWIAsm): Define.
2279 * libc/sys/arm/trap.S: Disable for Thumb-2.
2280
2281 2006-01-31 Leif Ekblad <leif@rdos.net>
2282
2283 * configure.host: RDOS support added
2284 * libc/include/sys/config.h: Ditto.
2285 * libc/sys/rdos/Makefile.am, libc/sys/rdos/Makefile.in: New files.
2286 * libc/sys/rdos/aclocal.m4, libc/sys/rdos/chown.c: Ditto.
2287 * libc/sys/rdos/close.c, libc/sys/rdos/config.h: Ditto.
2288 * libc/sys/rdos/configure, libc/sys/rdos/configure.in: Ditto.
2289 * libc/sys/rdos/crt0.S, libc/sys/rdos/execve.c: Ditto.
2290 * libc/sys/rdos/fork.c, libc/sys/rdos/fstat.c: Ditto.
2291 * libc/sys/rdos/getenv.c, libc/sys/rdos/getpid.c: Ditto.
2292 * libc/sys/rdos/gettod.c, libc/sys/rdos/isatty.c: Ditto.
2293 * libc/sys/rdos/kill.c, libc/sys/rdos/link.c: Ditto.
2294 * libc/sys/rdos/lseek.c, libc/sys/rdos/open.c: Ditto.
2295 * libc/sys/rdos/rdos.S, libc/sys/rdos/rdos.h: Ditto.
2296 * libc/sys/rdos/rdoshelp.c, libc/sys/rdos/read.c: Ditto.
2297 * libc/sys/rdos/readlink.c, libc/sys/rdos/sbrk.c: Ditto.
2298 * libc/sys/rdos/stat.c, libc/sys/rdos/symlink.c: Ditto.
2299 * libc/sys/rdos/times.c, libc/sys/rdos/unlink.c: Ditto.
2300 * libc/sys/rdos/user.def, libc/sys/rdos/wait.c: Ditto.
2301 * libc/sys/rdos/write.c: Ditto.
2302
2303 2006-01-24 Jeff Johnston <jjohnstn@redhat.com>
2304
2305 * acinclude.m4: Add nodefine to AM_INIT_AUTOMAKE macro invocation
2306 so as not to define PACKAGE and VERSION in newlib.h.
2307 * aclocal.m4: Regenerated.
2308 * configure: Ditto.
2309 * newlib.hin: Ditto.
2310
2311 2006-01-20 Jeff Johnston <jjohnstn@redhat.com>
2312
2313 * acconfig.h: New file to generate newlib.hin from.
2314 * newlib.hin: Regenerated.
2315 * stamp-h.in: Regenerated.
2316 * Makefile.am: Add ACLOCAL_AMFLAGS so aclocal can be
2317 called automatically.
2318 * Makefile.in: Regenerated.
2319 * acinclude.m4: Add proper comment for hack in previous change.
2320 * aclocal.m4 */aclocal.m4: Regenerated.
2321 * configure */configure: Regenerated.
2322
2323 2006-01-11 Jeff Johnston <jjohnstn@redhat.com>
2324
2325 * acinclude.m4: Add hack to prevent INSTALL in subdirs
2326 from being set to "../".
2327 * Makefile.am: Pass INSTALL in AM_MAKEFLAGS.
2328 * aclocal.m4: Regenerated.
2329 * configure: Ditto.
2330 * Makefile.in: Ditto.
2331 * doc/aclocal.m4: Ditto.
2332 * doc/configure: Ditto.
2333 * iconvdata/aclocal.m4: Ditto.
2334 * iconvdata/configure: Ditto.
2335 * libc/*/aclocal.m4: Ditto.
2336 * libc/*/configure: Ditto.
2337 * libc/libc.texinfo: Ditto.
2338 * libm/*/aclocal.m4: Ditto.
2339 * libm/*/configure: Ditto.
2340
2341 2006-01-10 Eric Blake <ebb9@byu.net>
2342
2343 * libc/stdio/freopen.c (_freopen_r): Fix use of oflags.
2344 * libc/stdio64/freopen64.c (_freopen64_r): Likewise.
2345
2346 2006-01-10 Jeff Johnston <jjohnstn@redhat.com>
2347
2348 * libm/mathfp/s_frexp.c: Check for special values on
2349 the original input, not the manipulated output value.
2350 * libm/mathfp/sf_frexp.c: Ditto.
2351 * libm/mathfp/s_atangent.c: Don't use local value branch
2352 when checking for quadrant.
2353 * libm/mathfp/sf_atangent.c: Ditto.
2354
2355 2006-01-09 Jeff Johnston <jjohnstn@redhat.com>
2356
2357 * libc/stdio/freopen.c: Switch to use isatty instead of _isatty.
2358 * libc/stdio64/freopen64.c: Ditto.
2359
2360 2006-01-09 Eric Blake <ebb9@byu.net>
2361
2362 * libc/stdio/freopen.c (_freopen_r): Accept NULL filename.
2363 * libc/stdio64/freopen64.c (_freopen64_r): Likewise.
2364
2365 2006-01-06 Jeff Johnston <jjohnstn@redhat.com>
2366
2367 * libc/sys/linux/include/getopt.h: Add macros needed by
2368 new version of getopt.c in libc/stdlib.
2369
2370 2006-01-04 Gregory Pietsch <gpietsch@comcast.net>
2371
2372 * libc/stdlib/getopt.c: Replaced with version
2373 that adds getopt_long and getopt_long_only support.
2374 * libc/include/getopt.h: New file.
2375
2376 2005-12-16 Jeff Johnston <jjohnstn@redhat.com>
2377
2378 * NEWS: Update with 1.14.0 info.
2379 * README: Ditto.
2380 * acinclude.m4: Change version number to 1.14.0.
2381 * aclocal.m4: Regenerated.
2382 * configure: Ditto.
2383 * doc/aclocal.m4: Ditto.
2384 * doc/configure: Ditto.
2385 * libc/*/aclocal.m4: Ditto.
2386 * libc/*/configure: Ditto.
2387 * libc/libc.texinfo: Ditto.
2388 * libm/*/aclocal.m4: Ditto.
2389 * libm/*/configure: Ditto.
2390 * libm/libm.texinfo: Ditto.
2391 * libc/sys/linux/shared.ld: Add VERS_1.14.
2392
2393 2005-12-16 Jeff Johnston <jjohnstn@redhat.com>
2394
2395 * libc/sys/linux/sys/stat.h: Change *stat64 prototypes to
2396 take a pointer to struct stat64 rather than struct stat.
2397
2398 2005-12-16 Ralf Corsepius <ralf.corsepius@rtems.org>
2399
2400 * libc/include/stdint.h: Prefer long over int for int32_t.
2401 Use __have_long32 to set up int32_t.
2402 * libc/include/inttypes.h: Use "#if xxx" instead of "#ifdef xxx"
2403 (Sync with stdint.h).
2404
2405 2005-12-14 Corinna Vinschen <corinna@vinschen.de>
2406
2407 * libc/include/sys/fcntl.h: Define O_SYNC unconditionally. Fix
2408 typo in O_NDELAY comment.
2409
2410 2005-12-13 Nathan Sidwell <nathan@codesourcery.com>
2411
2412 * libc/include/machine/ieeefp.h (__mt__): Renamed from __ms1__.
2413 * libc/include/machine/setjmp.h (__mt__): Likewise.
2414 * libc/machine/mt/setjmp.S: Rename ms1 reference to mt.
2415 * libc/machine/configure.in: Ditto.
2416
2417 2005-12-12 Nathan Sidwell <nathan@codesourcery.com>
2418
2419 * configure.host: Replace ms1 arch with mt arch.
2420 * libc/machine/mt: Renamed from ms1 dir.
2421
2422 2005-12-08 Shaun Jackman <sjackman@gmail.com>
2423
2424 * libc/include/sys/types.h: Remove the ifdef armour around
2425 standard POSIX types.
2426
2427 2005-12-06 Ralf Corsepius <ralf.corsepius@rtems.org>
2428
2429 * libc/sys/rtems/crt0.c: Add rtems_gxx_key_create,
2430 rtems_gxx_key_delete, rtems_gxx_getspecific,
2431 rtems_gxx_setspecific, rtems_gxx_mutex_trylock,
2432 rtems_gxx_recursive_mutex_init, rtems_gxx_recursive_mutex_lock,
2433 rtems_gxx_recursive_mutex_trylock, rtems_gxx_recursive_mutex_unlock.
2434
2435 2005-12-05 Christopher Faylor <cgf@timesys.com>
2436
2437 * libc/include/stdlib.h: Move cygwin declarations to cygwin-specific
2438 file. Declare unsetenv and _unsetenv_r when not cygwin.
2439
2440 2005-11-18 Jeff Johnston <jjohnstn@redhat.com>
2441
2442 * libc/time/strptime.c (strptime): Don't abort for %c and %Z.
2443 Treat %c as "%a %b %e %H:%M:%S %Y" and ignore %Z.
2444
2445 2005-11-18 Christopher Faylor <cgf@timesys.com>
2446
2447 * include/sys/time.h: Move more cygwin stuff to cygwin-specific header.
2448
2449 2005-11-18 Christopher Faylor <cgf@timesys.com>
2450
2451 * include/time.h: Remove more cygwin-specific stuff.
2452
2453 2005-11-18 Christopher Faylor <cgf@timesys.com>
2454
2455 * include/time.h: Move cygwin declarations to cygwin-specific header.
2456 * include/sys/time.h: Rename cygwin include to "sys_time.h".
2457
2458 2005-11-17 Jeff Johnston <jjohnstn@redhat.com>
2459
2460 * libc/sys/linux/dl/dl-local.h: New file based on old dlfcn.h
2461 in libc/sys/linux/include.
2462 * libc/sys/linux/dl/dlfcn.h: Moved to libc/sys/linux/include.
2463 * libc/sys/linux/dl/ldsodefs.h: Include dl-local.h instead of dlfcn.h.
2464 * libc/sys/linux/include/dlfcn.h: Replaced with dlfcn.h formerly
2465 in libc/sys/linux/dl.
2466
2467 2005-11-11 Christopher Faylor <cgf@timesys.com>
2468
2469 * libc/include/sys/time.h: For cygwin, use general header rather than
2470 specific "sys/select.h".
2471
2472 2005-11-08 Tom Walsh <tom@openhardware.net>
2473
2474 * libc/time/tzvars.c: New file.
2475 * libc/time/tzset_r.c: Moved globals into tzvars.c
2476 so other time functions needn't link in __tzset_r and its
2477 dependencies.
2478 * libc/time/Makefile.am: Add the new file.
2479 * libc/time/Makefile.in: Regenerated.
2480
2481 2005-11-08 Christopher Faylor <cgf@timesys.com>
2482
2483 * libc/include/string.h: Add cygwin-specific function declaration.
2484
2485 2005-11-07 Corinna Vinschen <corinna@vinschen.de>
2486
2487 * libc/include/ieeefp.h: Add C++ guards.
2488
2489 2005-11-03 Jeff Johnston <jjohnstn@redhat.com>
2490
2491 * libc/unix/getcwd.c: Don't use non-reentrant syscall names.
2492 * libc/unix/getlogin.c: Ditto.
2493 * libc/unix/getpass.c: Ditto.
2494 * libc/unix/getut.c: Ditto.
2495 * libc/unix/ttyname.c: Ditto.
2496
2497 2005-11-03 Shaun Jackman <sjackman@gmail.com>
2498
2499 * libc/include/sys/unistd.h (readlink, symlink): Provide these
2500 prototypes by default.
2501 * libc/sys/linux/include/unistd.h (readlink): Remove this
2502 prototype.
2503 * libc/sys/linux/sys/unistd.h (readlink, symlink): New
2504 prototypes.
2505
2506 2005-11-01 Ralf Corsepius <ralf.corsepius@rtems.org>
2507
2508 * libc/include/stdint.h: Cleanup #if vs. #ifdef.
2509
2510 2005-10-31 Darin Johnson <darin@usa.net>
2511
2512 * libm/mathfp/s_mathcnst.c: Fix endian-ness check to be
2513 correct for constants.
2514
2515 2005-10-28 Bob Wilson <bob.wilson@acm.org>
2516
2517 * libc/stdio/siprintf.c: Wrap long lines in ANSI_SYNOPSIS.
2518 * libc/stdio/siscanf.c: Likewise.
2519 * libc/stdio/sprintf.c: Likewise.
2520 * libc/stdio/sscanf.c: Likewise.
2521 * libc/stdio/vfprintf.c: Likewise.
2522 * libc/stdio/vfscanf.c: Likewise.
2523 * libc/stdio/viprintf.c: Likewise.
2524 * libc/stdio/viscanf.c: Likewise.
2525
2526 2005-10-28 Bob Wilson <bob.wilson@acm.org>
2527
2528 * libc/sys.tex (Stubs): Format examples consistently. Change sbrk
2529 example to use "_end" symbol instead of "end". Change write example
2530 to use "outbyte" instead of "writechar".
2531
2532 2005-10-28 Bob Wilson <bob.wilson@acm.org>
2533
2534 * libc/ctype/ctype.tex: Use hyphens as appropriate, but not otherwise.
2535 * libc/ctype/islower.c: Likewise.
2536 * libc/ctype/isupper.c: Likewise.
2537 * libc/ctype/iswalnum.c: Likewise.
2538 * libc/ctype/iswalpha.c: Likewise.
2539 * libc/ctype/iswblank.c: Likewise.
2540 * libc/ctype/iswcntrl.c: Likewise.
2541 * libc/ctype/iswdigit.c: Likewise.
2542 * libc/ctype/iswgraph.c: Likewise.
2543 * libc/ctype/iswlower.c: Likewise.
2544 * libc/ctype/iswprint.c: Likewise.
2545 * libc/ctype/iswpunct.c: Likewise.
2546 * libc/ctype/iswspace.c: Likewise.
2547 * libc/ctype/iswupper.c: Likewise.
2548 * libc/ctype/iswxdigit.c: Likewise.
2549 * libc/ctype/tolower.c: Likewise.
2550 * libc/ctype/toupper.c: Likewise.
2551 * libc/ctype/towctrans.c: Likewise.
2552 * libc/ctype/towlower.c: Likewise.
2553 * libc/ctype/towupper.c: Likewise.
2554 * libc/string/strcasecmp.c: Likewise.
2555 * libc/string/strcoll.c: Likewise.
2556 * libc/string/strings.tex: Likewise.
2557 * libc/string/strlwr.c: Likewise.
2558 * libc/string/strncasecmp.c: Likewise.
2559 * libc/string/strupr.c: Likewise.
2560 * libc/string/wcscoll.c: Likewise.
2561 * libc/string/wcslcat.c: Likewise.
2562 * libc/string/wcslcpy.c: Likewise.
2563 * libc/string/wcsnlen.c: Likewise.
2564 * libc/string/wcsstr.c: Likewise.
2565 * libc/string/wcstrings.tex: Likewise.
2566 * libc/string/wmemchr.c: Likewise.
2567 * libc/string/wmemcmp.c: Likewise.
2568 * libc/string/wmemcpy.c: Likewise.
2569 * libc/string/wmemmove.c: Likewise.
2570 * libc/string/wmemset.c: Likewise.
2571
2572 2005-10-28 Bob Wilson <bob.wilson@acm.org>
2573
2574 * libc/misc/unctrl.c: Replace FUNCTION description.
2575 * libc/signal/signal.c: Remove documentation for raise and _raise_r.
2576 * libc/stdio/getdelim.c: Fix spelling errors.
2577 * libc/stdio/getw.c: Put RETURNS on a separate line. Fix punctuation.
2578 * libc/stdio/putw.c: Likewise.
2579 * libc/stdlib/a64l.c: Fix formatting, spelling and punctuation in
2580 documentation.
2581 * libc/stdlib/assert.c: Do not capitalize FUNCTION description.
2582 * libc/stdlib/efgcvt.c: Add spaces to FUNCTION description.
2583 * libc/stdlib/envlock.c: Use em-dash in FUNCTION description.
2584 * libc/stdlib/mlock.c: Likewise.
2585 * libc/stdlib/mstats.c: Likewise.
2586 * libc/time/tzlock.c: Likewise.
2587 * libc/stdlib/rand.c: Use "multi-threaded" and "thread-safe" in NOTES.
2588 * libc/stdlib/rand48.c: Remove extra space in FUNCTION description
2589 and hyphenate "pseudo-random".
2590 * libc/string/bcmp.c: Remove extra blank lines in documentation.
2591 * libc/string/strncat.c: Likewise.
2592 * libc/string/memchr.c: Remove extra ">" character in documentation.
2593 * libc/string/strcspn.c: Use "characters" instead of "chars".
2594 * libc/string/strpbrk.c: Likewise.
2595 * libc/string/strerror_r.c: Capitalize "GNU".
2596 * libc/string/strnlen.c: Likewise.
2597 * libc/string/strtok.c: Fix formatting, spelling and punctuation in
2598 documentation. Use "multi-threaded" and "thread-safe" in NOTES.
2599 * libc/string/wcscat.c: Split PORTABILITY into two paragraphs.
2600 * libc/string/wcschr.c: Likewise.
2601 * libc/string/wcscmp.c: Likewise.
2602 * libc/string/wcscpy.c: Likewise.
2603 * libc/string/wcscspn.c: Likewise.
2604 * libc/string/wcslen.c: Likewise.
2605 * libc/string/wcsncat.c: Likewise.
2606 * libc/string/wcsncmp.c: Likewise.
2607 * libc/string/wcsncpy.c: Likewise.
2608 * libc/string/wcsnlen.c: Likewise.
2609 * libc/string/wcspbrk.c: Likewise.
2610 * libc/string/wcsrchr.c: Likewise.
2611 * libc/string/wcsspn.c: Likewise.
2612 * libc/string/wmemchr.c: Likewise.
2613 * libc/string/wmemcmp.c: Likewise.
2614 * libc/string/wmemcpy.c: Likewise.
2615 * libc/string/wmemset.c: Likewise.
2616 * libc/string/wmemmove.c: Likewise. Also fix FUNCTION description.
2617 * libc/string/wcswidth.c: Formatting and punctuation in documentation.
2618 * libc/string/wcwidth.c: Likewise.
2619 * libm/common/s_modf.c: Remove extra period from documentation.
2620 * libm/math/s_isnan.c: Fix formatting, grammar and punctuation in
2621 documentation.
2622 * libm/mathfp/s_isnan.c: Likewise.
2623 * libm/math/s_ldexp.c: Fix punctuation.
2624 * libm/mathfp/s_ldexp.c: Likewise.
2625 * libm/math/w_log.c: Likewise.
2626 * libm/mathfp/s_logarithm.c: Likewise.
2627 * libm/math/w_j0.c: Add spaces to FUNCTION description.
2628 * libm/mathfp/w_jn.c: Likewise.
2629
2630 2005-10-26 Shaun Jackman <sjackman@gmail.com>
2631
2632 * libc/posix/scandir.c (scandir): Update the function
2633 prototype to match the header.
2634 * libc/sys/linux/linuxthreads/bits/libc-lock.h: Remove an
2635 extraneous #endif.
2636 * libc/sys/linux/sys/lock.h: Do not include
2637 machine/weakalias.h, since it's not used by this file.
2638
2639 2005-10-26 Jeff Johnston <jjohnstn@redhat.com>
2640
2641 * libc/Makefile.am: Reorder SUBLIBS so machine and sys
2642 directories can override properly.
2643
2644 2005-10-20 Jeff Johnston <jjohnstn@redhat.com>
2645
2646 * libc/include/math.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): When
2647 gcc is 3.3 or greater, use special gcc builtins.
2648
2649 2005-10-20 Corinna Vinschen <corinna@vinschen.de>
2650
2651 * libc/include/sys/time.h: Declare futimes and lutimes for Cygwin.
2652
2653 2005-10-18 Corinna Vinschen <corinna@vinschen.de>
2654
2655 * libc/include/sys/features.h: Define _POSIX_MEMLOCK_RANGE for Cygwin.
2656
2657 2005-10-14 Jeff Johnston <jjohnstn@redhat.com>
2658
2659 * libc/include/math.h (HUGE_VALF, HUGE_VALL): New.
2660 * libm/common/Makefile.am: Add s_infconst.c support.
2661 * libm/common/Makefile.in: Regenerated.
2662 * libm/common/s_infconst.c: New file with float and
2663 long double infinity support added.
2664 * libm/math/Makefile.am: Remove s_infconst.c support.
2665 * libm/math/Makefile.in: Regenerated.
2666 * libm/math/s_infconst.c: Moved to common directory.
2667 * libm/mathfp/Makefile.am: Remove s_infconst.c support.
2668 * libm/mathfp/Makefile.in: Regenerated.
2669 * libm/mathfp/s_infconst.c: Moved to common directory.
2670
2671 2005-10-14 Jeff Johnston <jjohnstn@redhat.com>
2672
2673 * libc/sys/linux/net/gethostbydns.c (dprintf): Rename to
2674 dbgprintf to prevent conflict with new dprintf function.
2675
2676 2005-10-14 Jeff Johnston <jjohnstn@redhat.com>
2677
2678 * libc/stdio/vfprintf.c (_VFPRINTF_R): Fix up "inf" and
2679 "nan" processing for systems that have long double support.
2680
2681 2005-10-14 Jeff Johnston <jjohnstn@redhat.com>
2682
2683 * libc/sys/linux/sys/types.h (int8_t): Add type.
2684
2685 2005-10-14 Bob Wilson <bob.wilson@acm.org>
2686
2687 * libm/common/Makefile.am (doc): Do not append to $(TARGETDOC).
2688 * libm/common/Makefile.in: Regenerate.
2689 * libm/common/common.tex: Delete file.
2690 * libm/math/math.tex: Include .def files from common/.
2691 * libm/mathfp/mathfp.tex: Likewise.
2692
2693 2005-10-14 Bob Wilson <bob.wilson@acm.org>
2694
2695 * libc/libc.texinfo (Top): Surround this node with @ifnottex
2696 instead of @ifinfo. Update menu to add Introduction and match
2697 SUBDIRS order.
2698 (Introduction): New section.
2699
2700 2005-10-14 Bob Wilson <bob.wilson@acm.org>
2701
2702 * libc/reent/reent.tex (Reentrancy): Replace "Cygnus C Library"
2703 with "Red Hat newlib C Library".
2704 * libc/sys.tex (Stubs): Likewise.
2705 * libm/math/math.tex (Math): Likewise.
2706 * libm/mathfp/mathfp.tex (Math): Likewise.
2707
2708 2005-10-11 Shaun Jackman <sjackman@gmail.com>
2709
2710 * libc/include/stdio.h (dprintf): New declaration.
2711 (vdprintf): Ditto.
2712 * libc/stdio/Makefile.am (GENERAL_SOURCES): Add dprintf.c
2713 and vdprintf.c.
2714 * libc/stdio/Makefile.in: Regenerate.
2715 * libc/stdio/dprintf.c: New file.
2716 * libc/stdio/vdprintf.c: New file.
2717 * libc/stdio/stdio.tex (dprintf): New entry.
2718
2719 2005-10-11 David Weatherford <weath@tensilica.com>
2720
2721 * libc/stdio/vfprintf.c (_VFPRINTF_R): Recognize 'F' format.
2722 Print "inf" and "nan" in lowercase for e/f/g formats and in
2723 uppercase for E/F/G formats.
2724
2725 2005-10-07 Bob Wilson <bob.wilson@acm.org>
2726
2727 * libc/stdlib/mallocr.c (mALLOc, rEALLOCc, mEMALIGn): Set errno
2728 to ENOMEM on failure.
2729
2730 2005-10-06 Ralf Corsepius <ralf.corsepius@rtems.org>
2731
2732 * libc/include/stdint.h: Add [u]int_fast<N>_t types.
2733
2734 2005-10-04 Ralf Corsepius <ralf.corsepius@rtems.org>
2735
2736 * libc/include/stdint.h: Move magic to set __have_long* to the
2737 beginning. Use #if __have* instead of #if defined(__have*).
2738 Minor typo fixes.
2739
2740 2005-10-04 James E Wilson <wilson@specifix.com>
2741
2742 * libc/include/sys/dirent.h (_DIRENT_H_): Delete #include_next. Add
2743 #error.
2744
2745 2005-10-03 Jeff Johnston <jjohnstn@redhat.com>
2746
2747 * libc/sys/linux/include/stdint.h: Include <sys/types.h> and
2748 incorporate Ralf's change below.
2749
2750 2005-10-03 Ralf Corsepius <ralf.corsepius@rtems.org>
2751
2752 * libc/include/stdint.h:
2753 Use __INTMAX_TYPE__ to derive intmax_t.
2754 Use __UINTMAX_TYPE__ to derive uintmax_t.
2755 Fix minor typo.
2756
2757 2005-09-27 Ralf Corsepius <ralf.corsepius@rtems.org>
2758
2759 * libc/include/stdint.h: Correct __STDINT_EXP macro incorrectly
2760 handling GCC >= 4.
2761
2762 2005-09-20 Jeff Johnston <jjohnstn@redhat.com>
2763
2764 * libc/sys/linux/include/stdint.h: Update to match functionality
2765 of generic newlib stdint.h.
2766
2767 2005-09-20 Jeff Johnston <jjohnstn@redhat.com>
2768
2769 * libc/include/stdint.h (__EXP): Rename to __STDINT_EXP
2770 and do not #undef the macro after it is used. Fix typos.
2771 Also change 64-bit constants to use the __have_long64 and
2772 __have_longlong64 flags to determine if long or long long
2773 constants should be used.
2774 * libc/include/inttypes.h: Include stddef.h to get wchar_t
2775 type defined.
2776
2777 2005-09-20 Shaun Jackman <sjackman@gmail.com>
2778
2779 * libc/include/stdint.h: Fix typo in names of
2780 LEAST macros.
2781
2782 2005-09-20 Jeff Johnston <jjohnstn@redhat.com>
2783
2784 * libc/sys/rtems/include/inttypes.h: Moved to...
2785 * libc/include/inttypes.h: ...here.
2786
2787 2005-09-19 Jeff Johnston <jjohnstn@redhat.com>
2788
2789 * libc/sys/rtems/include/stdint.h: Moved to...
2790 * libc/include/stdint.h: ...here.
2791
2792 2005-09-08 Jeff Johnston <jjohnstn@redhat.com>
2793
2794 * Makefile.am: Add include files under bits sub-directory.
2795 * Makefile.in: Regenerated.
2796 * libc/sys/linux/argp/argp-fs-xinl.c: Set __OPTIMIZE__ to
2797 actual value of 1 to be compatible with newer glibc headers.
2798 * libc/sys/linux/sys/cdefs.h: Fix to be compatible with newer
2799 glibc headers.
2800 * libc/sys/linux/sys/dirent.h: Ditto.
2801 * libc/sys/linux/argp/argp-xinl.c: Ditto.
2802 * libc/sys/linux/dl/dl-runtime.c: Make sure fixup and
2803 profile_fixup routines are marked used so they won't be
2804 optimized away.
2805 * libc/sys/linux/dl/dl-cache.c: Don't use weak_extern macro
2806 to mark functions as weak.
2807 * libc/sys/linux/dl/dl-open.c: Ditto.
2808 * libc/sys/linux/iconv/gconv_open.c: Fix to obey new gcc4
2809 rules about lvalues.
2810 * libc/sys/linux/iconv/gconv_simple.c: Ditto.
2811 * libc/sys/linux/linuxthreads/bits/libc-lock.h: Don't use
2812 weak_extern macro to mark functions as weak. Instead always
2813 use #pragma weak.
2814 * iconvdata/jis0208.h: Fix to work with gcc4.
2815 * libc/sys/linux/dl/dl-load.c: Ditto.
2816 * libc/sys/linux/dl/dl-reloc.c: Ditto.
2817 * libc/sys/linux/dl/do-rel.h: Ditto.
2818 * libc/sys/linux/dl/dynamic-link.h: Ditto.
2819 * libc/sys/linux/include/ltdl.h: Ditto.
2820 * libc/sys/linux/machine/i386/dl-machine.h: Ditto.
2821 * libc/sys/linux/machine/i386/weakalias.h: Ditto.
2822 * libc/sys/linux/net/ns_ntoa.c: Ditto.
2823 * libc/sys/linux/bits/initspin.h: New file.
2824 * libc/sys/linux/bits/libc-lock.h: Ditto.
2825 * libc/sys/linux/bits/pthreadtypes.h: Ditto.
2826 * libc/sys/linux/bits/typesizes.h: Ditto.
2827
2828 2005-09-08 Eric Blake <ebb9@byu.net>
2829
2830 * libc/argz/argz_insert.c (argz_insert): Don't die with EINVAL when
2831 before is NULL.
2832
2833 2005-09-08 Brian Dessent <brian@dessent.net>
2834
2835 * sf_lrint.c (lrintf): Mask 'i0' correctly when extracting
2836 mantissa.
2837 * s_lrint.c: Ditto.
2838
2839 2005-09-02 Jeff Johnston <jjohnstn@redhat.com>
2840
2841 * libc/include/stdio.h: Add prototype for viprintf.
2842
2843 2005-09-01 Jeff Johnston <jjohnstn@redhat.com>
2844
2845 * libm/mathfp/s_pow.c: (pow): Change code so 0 raised to
2846 any positive power results in 0.
2847 * libm/mathfp/sf_pow.c (powf): Ditto.
2848
2849 2005-08-31 Paul Brook <paul@codesourcery.com>
2850
2851 * configure.host: Set have_crt0 to no for Arm targts when not
2852 providing syscalls. Set sys_dir=arm unconditionally.
2853 Default have_crt0 based on sys_dir.
2854 * configure.in: Use have_crt0.
2855 * libc/configure.in: Ditto.
2856 * libc/sys/configure.in: Ditto.
2857 * configure: Regenerate.
2858 * libc/configure: Regenerate.
2859 * libc/sys/configure: Regenerate.
2860 * libc/sys/arm/Makefile.am (lib_a_SOURCES): Add aeabi_atexit.c.
2861 Only build other files when providing syscalls.
2862 * libc/sys/arm/Makefile.in: Regenerate.
2863 * libc/sys/arm/aeabi_atexit.c: New file.
2864
2865 2005-08-26 Christopher Faylor <cgf@timesys.com>
2866
2867 * libc/include/string.h: Revert previous change.
2868
2869 2005-08-25 Christopher Faylor <cgf@timesys.com>
2870
2871 * libc/include/string.h: For Cygwin, Define strerror_r as per ISO C.
2872
2873 2005-08-22 Shaun Jackman <sjackman@gmail.com>
2874
2875 * libc/include/_syslist.h: If HAVE_OPENDIR is not defined,
2876 define _opendir as opendir, _readdir as readdir, and
2877 _closedir as closedir so that the implementations in
2878 libc/posix will be used.
2879
2880 2005-08-10 DJ Delorie <dj@redhat.com>
2881
2882 * MAINTAINERS (CPU Ports): Add CPU port maintainer section.
2883
2884 2005-08-10 Stephen Huw Clarke <stephen.clarke@st.com>
2885
2886 * libm/common/sf_fmax.c: Fix to properly handle NaNs.
2887 * libm/common/s_max.c: Ditto.
2888 * libm/common/sf_fmin.c: Ditto.
2889 * libm/common/s_min.c: Ditto.
2890
2891 2005-08-10 DJ Delorie <dj@redhat.com>
2892
2893 * configure.host: Add m32c support.
2894 * libc/include/machine/ieeefp.h: Likewise.
2895 * libc/include/machine/setjmp.h: Likewise.
2896 * libc/include/sys/config.h: Likewise.
2897 * libc/machine/m32c: New directory, Renesas R8C/M16C/M32C support.
2898 * libc/machine/m32c/aclocal.m4: New file.
2899 * libc/machine/m32c/configure: Ditto.
2900 * libc/machine/m32c/configure.in: Ditto.
2901 * libc/machine/m32c/Makefile.am: Ditto.
2902 * libc/machine/m32c/Makefile.in: Ditto.
2903 * libc/machine/m32c/setjmp.S: Ditto.
2904
2905 2005-08-02 Bob Wilson <bob.wilson@acm.org>
2906
2907 * libm/math/ef_hypot.c (__ieee754_hypotf): Add missing exponent bias
2908 to the value for 2^126.
2909
2910 2005-07-26 Hans-Peter Nilsson <hp@bitrange.com>
2911
2912 * libc/machine/cris/libcdtor.c (defaultors): Mark artificially as
2913 used.
2914
2915 2005-07-20 Bob Wilson <bob.wilson@acm.org>
2916 Darin Petkov <darin@tensilica.com>
2917
2918 * libm/math/ef_atan2.c (pi, pi_lo): Use round-to-nearest value of pi.
2919
2920 2005-07-19 Paul Brook <paul@codesourcery.com>
2921
2922 * libc/sys/arm/crt0.S: Ensure doubleword stack alignment.
2923
2924 2005-07-18 Joseph S. Myers <joseph@codesourcery.com>
2925
2926 * testsuite/lib/checkoutput.exp (newlib_check_output): Use test
2927 names after PASS and FAIL which do not depend on source directory
2928 name or on whether test passed or failed.
2929 * testsuite/lib/passfail.exp (newlib_pass_fail): Likewise.
2930
2931 2005-07-08 Ola Hugosson <Ola.Hugosson@anoto.com>
2932
2933 * libc/string/wcsspn.c (wcsspn): Add missing increment of q.
2934
2935 2005-07-07 Shaun Jackman <sjackman@gmail.com>
2936
2937 * libc/unix/ttyname.c (ttyname): Avoid calling _closedir
2938 twice for the same directory. _closedir calls free, and freeing
2939 the same pointer twice may cause a crash.
2940
2941 2005-07-06 Aldy Hernandez <aldyh@redhat.com>
2942
2943 * configure.host: Added entry for ms1*.
2944 * libc/include/machine/ieeefp.h: Handle ms1.
2945 * libc/include/machine/setjmp.h (_JBLEN): Define for ms1.
2946 * libc/machine/ms1/aclocal.m4: New.
2947 * libc/machine/ms1/configure: New.
2948 * libc/machine/ms1/configure.in: New.
2949 * libc/machine/ms1/Makefile.am: New.
2950 * libc/machine/ms1/Makefile.in: New.
2951 * libc/machine/ms1/setjmp.S: New.
2952
2953 2005-07-04 Mark Mitchell <mark@codesourcery.com>
2954
2955 * Makefile.am (site.exp): Set tmpdir.
2956 * Makefile.in: Regenerated.
2957 * testsuite/lib/checkoutput.exp (newlib_check_output): Put
2958 executables in $tmpdir.
2959 * testsuite/lib/flags.exp (libgloss_link_flags): Use the original
2960 libgloss version if not running in the build directory.
2961 * testsuite/lib/newlib.exp (newlib_init): Put testglue.o in
2962 $tmpdir.
2963 * testsuite/lib/passfail.exp (newlib_pass_fail): Put executables
2964 in $tmpdir.
2965
2966 2005-06-28 Dave Korn <dave.korn@artimi.com>
2967
2968 * libm/common/s_lrint.c (lrint): Fix signed-vs-unsigned comparison
2969 and miscalculation caused by fp representation of zero.
2970 * libm/common/sf_lrint.c (lrintf): Likewise.
2971
2972 2005-06-16 Christopher Faylor <cgf@timesys.com>
2973
2974 * libc/stdio/vfprintf.c (cvt): Don't rely on pointer aliasing to
2975 determine characteristics of long double. Use a union instead.
2976 * ldtoa.c (_ldtoa_r): Ditto.
2977 (_ldcheck): Ditto.
2978 (_strtold): Ditto.
2979 (union uconv): New union.
2980
2981 2005-06-03 Jeff Johnston <jjohnstn@redhat.com>
2982
2983 * libc/stdlib/mallocr.c (MALLOC_COPY): Switch to use memmove
2984 instead of memcpy.
2985
2986 2005-05-12 Jeff Johnston <jjohnstn@redhat.com>
2987
2988 * configure.host (mn10300-*): Add long long I/O support by default.
2989
2990 2005-05-12 Jeff Johnston <jjohnstn@redhat.com>
2991
2992 * libc/sys/linux/getpwuid.c: Removed.
2993 * libc/sys/linux/getpwnam.c: Removed.
2994 * libc/sys/linux/getpwent.c: New file containing logic
2995 from files removed above. This allows overriding of file
2996 in libc/unix.
2997 * libc/sys/linux/Makefile.am: Support changes above.
2998 * libc/sys/linux/Makefile.in: Regenerated.
2999
3000 2005-04-28 Jeff Johnston <jjohnstn@redhat.com>
3001
3002 * libc/stdio/vfscanf.c (__svfscanf_r): Fix code thinko
3003 when checking for multiple flags.
3004
3005 2005-04-18 Hans-Peter Nilsson <hp@axis.com>
3006
3007 * configure.host <cris-*-* | crisv32-*-*>: Set
3008 default_newlib_io_long_long="yes".
3009
3010 2005-04-08 Jeff Johnston <jjohnstn@redhat.com>
3011
3012 * libc/include/libgen.h: New file.
3013
3014 2005-04-08 Shaun Jackman <sjackman@gmail.com>
3015
3016 * libc/unix/Makefile.am: Add support for basename and dirname.
3017 * libc/unix/Makefile.in: Regenerated.
3018 * libc/unix/basename.c: New file.
3019 * libc/unix/dirname.c: New file.
3020
3021 2005-04-07 Shaun Jackman <sjackman@gmail.com>
3022
3023 * libc/sys/linux/inode.c (lchown): New function.
3024
3025 2005-04-07 Shaun Jackman <sjackman@gmail.com>
3026
3027 * libc/unix/Makefile.am (LIB_OBJS): Include all the ELIX objects if no
3028 ELIX level is defined.
3029 * libc/unix/Makefile.in: Regenerated.
3030
3031 2005-04-05 Dave Korn <dave.korn@artimi.com>
3032
3033 * libc/stdio/vfscanf.c (__svfscanf_r): If an error occurs processing
3034 something that looks like a "NaN", put back the characters processed.
3035
3036 2005-04-01 Corinna Vinschen <corinna@vinschen.de>
3037
3038 * libc/stdlib/strtod.c (_strtod_r): Never change s00.
3039
3040 2005-03-23 Christopher Faylor <cgf@timesys.com>
3041
3042 * configure.host: For cygwin, redefine CC with cygwin include directory
3043 first to mimic the behavior of the top-level configury. Move include
3044 directory out of newlib_cflags.
3045
3046 2005-03-22 Jeff Johnston <jjohnstn@redhat.com>
3047
3048 * configure.host: For arc, set -DREENTRANT_SYSCALLS_PROVIDED flag on.
3049 * libc/sys/arc/syscalls.c: Change functions to use __errno_r rather
3050 than errno.
3051
3052 2005-03-22 Christopher Faylor <cgf@timesys.com>
3053
3054 * libc/include/machine/_types.h: Make trivial change to comment to
3055 avoid a spurious warning from gcc.
3056
3057 2005-03-21 Nicholas Wourms <nwourms@netscape.net>
3058
3059 * libc/stdio/vfprintf.c: Move newlib.h before _WANT_IO_POS_ARGS test,
3060 since _WANT_IO_POS_ARGS is now defined in there. Remove duplicate
3061 reent.h include.
3062
3063 2005-03-18 Hans-Peter Nilsson <hp@axis.com>
3064 Corinna Vinschen <corinna@vinschen.de>
3065
3066 * libc/include/ctype.h: Remove invalid +1 offset from
3067 ctype macro references to __ctype_ptr.
3068 (_ctype_): Move declaration outside #ifndef __cplusplus.
3069
3070 2005-03-18 Corinna Vinschen <corinna@vinschen.de>
3071
3072 * libc/include/machine/setjmp.h (sigsetjmp): Use GCC extension to
3073 evaluate first parameter only once.
3074 (siglongjmp): Ditto.
3075
3076 2005-03-17 Jeff Johnston <jjohnstn@redhat.com>
3077
3078 * configure.in: Add new check to see if compiler supports
3079 aliasing of arrays and define _HAVE_ARRAY_ALIASING if true.
3080 * configure: Regenerated.
3081 * Makefile.in: Ditto.
3082 * newlib.hin: Add _HAVE_ARRAY_ALIASING.
3083 * libc/ctype/ctype_.c: Check for _HAVE_ARRAY_ALIASING before
3084 aliasing the _ctype_ array to _ctype_b.
3085 * libc/include/ctype.h: Change macros to use __ctype_ptr. Mark
3086 _ctype_ as deprecated.
3087
3088 2005-03-17 Hans-Peter Nilsson <hp@axis.com>
3089
3090 * configure.host (newlib_cflags) <cris-*-*, crisv32-*-*>: Add
3091 -DCOMPACT_CTYPE.
3092
3093 2005-03-06 Ralf Corsepious <ralf.corsepius@rtems.org>
3094
3095 * libc/sys/rtems/include/inttypes.h: New file.
3096 * libc/sys/rtems/include/stdint.h: Ditto.
3097
3098 2005-03-06 Ralf Corsepious <ralf.corsepius@rtems.org>
3099
3100 * libc/string/memcmp.c: Fix to avoid pointer signedness warning.
3101
3102 2005-03-06 Ralf Corsepious <ralf.corsepius@rtems.org>
3103
3104 * libc/include/machine/_types.h: New file.
3105 * libc/include/sys/types.h: Do not check for __rtems__
3106 when including <machine/_types.h>. Remove some redundant
3107 declarations now that <machine/_types.h> is included.
3108 * libc/sys/rtems/machine/_types.h: Removed. Replaced with
3109 shared header file.
3110
3111 2005-02-25 Ralf Corsepious <ralf.corsepius@rtems.org>
3112
3113 * libm/common/fdlibm.h (FLT_UWORD_MAX, FLT_UWORD_HALF_MAX): Add
3114 L qualifier for these long constants.
3115
3116 2005-02-25 Eric Blake <ebb9@byu.net>
3117
3118 * libc/include/time.h (__tzrule_struct): Make offset long, since
3119 a 16-bit int overflows on a 12-hour offset.
3120 * libc/sys/linux/include/time.h: Ditto.
3121 * libc/time/mktime.c (mktime): Use new type of __tzrule.offset.
3122 * libc/time/mktm_r.c: Ditto.
3123 * libc/time/gettzinfo.c: Ditto.
3124 * libc/time/strftime.c (strftime): Fix '%x' to deal with negative
3125 years. Fix '%z' to use long, not int.
3126
3127 2005-02-24 Ralf Corsepious <ralf.corsepius@rtems.org>
3128
3129 * libm/common/s_fpclassify.c: Use __uint32_t instead of int to
3130 manipulate float values in integer form.
3131 * libm/common/sf_round.c: Ditto.
3132
3133 2005-02-24 Ralf Corsepious <ralf.corsepius@rtems.org>
3134
3135 * libc/include/sys/types.h [__rtems__]: Include new
3136 header file machine/_types.h.
3137 * libc/include/machine/types.h: Ditto.
3138 * libc/sys/rtems/machine/_types.h: New file.
3139
3140 2005-02-23 Corinna Vinschen <corinna@vinschen.de>
3141
3142 * libc/include/time.h (_timezone): Change to long also for Cygwin.
3143 (timezone): Drop cast from definition.
3144
3145 2005-02-23 Jeff Johnston <jjohnstn@redhat.com>
3146
3147 * libc/include/time.h [!CYGWIN](_timezone): Change to long.
3148 (__tzrule_type, __tzinfo_type): New types.
3149 (__gettzinfo): New function.
3150 * libc/sys/linux/include/time.h: Ditto.
3151 * libc/time/Makefile.am: Add gettzinfo.c.
3152 * libc/time/Makefile.in: Regenerated.
3153 * libc/time/local.h: Moved __tzrule_type to time.h.
3154 * libc/time/mktime.c: Call __gettzinfo to reference
3155 __tznorth, __tzyear, and __tzrule array.
3156 * libc/time/mktm_r.c: Ditto.
3157 * libc/time/strftime.c: Ditto.
3158 * libc/time/tzset_r.c: Ditto. Also remove definition
3159 of __tzrule which is now in gettzinfo.c. Change _timezone
3160 references to not cast to time_t.
3161 * libc/time/gettzinfo.c: New file.
3162
3163 2005-02-23 Corinna Vinschen <corinna@vinschen.de>
3164
3165 * libc/include/sys/unistd.h: Define getpeereid for Cygwin.
3166
3167 2005-02-22 Corinna Vinschen <corinna@vinschen.de>
3168
3169 * libc/include/sys/unistd.h: Define fdatasync also for Cygwin.
3170
3171 2005-02-16 Eric Blake <ebb9@byu.net>
3172
3173 * libc/time/time.tex: Improve the documentation.
3174 * libc/time/strftime.c: Improve the documentation.
3175 (iso_year_adjust): New helper function.
3176 (strftime): Simplify '%E' and '%O'. Change '%c' to use
3177 recursion. Fix '%C', '%y', and '%Y' to deal with years with more
3178 than 4 characters. Combine '%d' and '%e'. Implement '%D', '%F',
3179 '%g', '%G', '%n', '%R', '%t', '%T', '%u', '%V', '%X', and '%z'.
3180 Avoid core dumps on valid inputs (maxsize == 0, or
3181 tim_p->tm_isdst > 1).
3182
3183 2005-02-08 Corinna Vinschen <corinna@vinschen.de>
3184
3185 * libc/include/pwd.h (struct passwd): Change pw_uid and pw_gid
3186 members to uid_t and gid_t according to SUSv3.
3187 * libc/include/sys/time.h (utimes): Change second parameter
3188 to const according to SUSv3.
3189
3190 2005-02-07 Antony King <antony.king@st.com>
3191
3192 * libc/stdio/clearerr.c (clearerr): Ensure CHECK_INIT() is
3193 called before _flockfile to prevent lock object use before
3194 initialisation. _REENT_SMALL_CHECK_INIT() and CHECK_INIT()
3195 take a struct _reent * instead of a FILE *.
3196 * libc/stdio/fclose.c (_fclose_r): Ditto.
3197 * libc/stdio/feof.c (feof): Ditto.
3198 * libc/stdio/ferror.c (ferror): Ditto.
3199 * libc/stdio/fflush.c (fflush): Ditto.
3200 * libc/stdio/fgetc.c (fgetc): Ditto.
3201 * libc/stdio/fgets.c (fgets): Ditto.
3202 * libc/stdio/fileno.c (fileno): Ditto.
3203 * libc/stdio/fputc.c (fputc): Ditto.
3204 * libc/stdio/fputs.c (fputs): Ditto.
3205 * libc/stdio/fread.c (fread): Ditto.
3206 * libc/stdio/freopen.c (_freopen_r): Ditto.
3207 * libc/stdio/fseek.c (_fseek_r): Ditto.
3208 * libc/stdio/ftell.c (_ftell_r): Ditto.
3209 * libc/stdio/fwrite.c (fwrite): Ditto.
3210 * libc/stdio/getc.c (getc): Ditto.
3211 * libc/stdio/getdelim.c (__getdelim): Ditto.
3212 * libc/stdio/putc.c (putc): Ditto.
3213 * libc/stdio/setvbuf.c (setvbuf): Ditto.
3214 * libc/stdio/ungetc.c (_ungetc_r): Ditto.
3215 * libc/stdio/vfprintf.c (_VFPRINTF_R): Ditto.
3216 * libc/stdio64/freopen64.c (_freopen64_r): Ditto.
3217 * libc/stdio64/fseeko64.c (_fseeko64_r): Ditto.
3218 * libc/stdio64/ftello64.c (_ftello64_r): Ditto.
3219 * libc/stdio/local.h (CHECK_INIT): Argument is now a struct
3220 _reent * instead of a FILE * and so replace incorrect use of
3221 _REENT with argument.
3222 * libc/sys/arm/syscalls.c (CHECK_INIT): Ditto.
3223 * libc/stdio/getchar.c (getchar): _REENT_SMALL_CHECK_INIT() and
3224 CHECK_INIT() take a struct _reent * instead of a FILE *.
3225 * libc/stdio/iprintf.c (iprintf, _iprintf_r): Ditto.
3226 * libc/stdio/iscanf.c (iscanf, _iscanf_r): Ditto.
3227 * libc/stdio/perror.c (perror): Ditto.
3228 * libc/stdio/printf.c (printf, _printf_r): Ditto.
3229 * libc/stdio/putchar.c (putchar): Ditto.
3230 * libc/stdio/puts.c (puts): Ditto.
3231 * libc/stdio/refill.c (__srefill): Ditto.
3232 * libc/stdio/scanf.c (scanf, _scanf_r): Ditto.
3233 * libc/stdio/vfscanf.c (VFSCANF, _VFSCANF_R): Ditto.
3234 * libc/stdio/viprintf.c (viprintf, _viprintf_r): Ditto.
3235 * libc/stdio/viscanf.c (viscanf, _viscanf_r): Ditto.
3236 * libc/stdio/vprintf.c (vprintf, _vprintf_r): Ditto.
3237 * libc/stdio/vscanf.c (vscanf, _vscanf_r): Ditto.
3238 * libc/stdio/wbuf.c (__swbuf): Ditto.
3239 * libc/stdio/wsetup.c (__swsetup): Ditto.
3240 * libc/stdlib/mallocr.c (malloc_stats): Ditto.
3241 * libc/stdlib/mstats.c (_mstats_r): Ditto.
3242 * libc/include/sys/reent.h (_REENT_SMALL_CHECK_INIT): Ditto.
3243 * libc/machine/powerpc/vfscanf.c (vfscanf): Ditto.
3244 * libc/stdio/fgetpos.c (_fgetpos_r): Removed unnecessary calls
3245 to _flockfile and _funlockfile; rely on locking in _ftell_r.
3246 * libc/stdio64/fgetpos64.c (_fgetpos64_r): Ditto (_ftello64_r).
3247 * libc/machine/powerpc/vfprintf.c (__sbprintf): Removed unnecessary
3248 initialision of _data field in FILE structure.
3249 * libc/machine/powerpc/vfprintf.c (VFPRINTF): Added CHECK_INIT() call.
3250
3251 2005-02-07 Jeff Johnston <jjohnstn@redhat.com>
3252
3253 * libc/stdio/findfp.c (__sinit): Protect with new lock.
3254 (__sinit_lock): New lock.
3255 (__sinit_lock_acquire, __sinit_lock_release): New functions.
3256 * libc/stdio/local.h: Add reference to new __sinit locking
3257 functions.
3258
3259 2005-02-07 Jeff Johnston <jjohnstn@redhat.com>
3260
3261 * libc/include/math.h (isfinite, isnormal, isunordered): Change
3262 input variable names to avoid mixups with nesting macros.
3263
3264 2005-01-27 Hans-Peter Nilsson <hp@axis.com>
3265
3266 * configure.host: Add support for cris-*-* and crisv32-*-*.
3267 * libc/include/machine/ieeefp.h: Ditto.
3268 * libc/include/machine/setjmp.h: Ditto.
3269 * libc/machine/cris/configure.in, libc/machine/cris/Makefile.am,
3270 libc/machine/cris/libcdtor.c, libc/machine/cris/setjmp.c,
3271 libc/machine/cris/memmove.c, libc/machine/cris/memcpy.c,
3272 libc/machine/cris/memset.c, libc/machine/cris/include/pthread.h,
3273 libc/machine/cris/sys/signal.h, libc/machine/cris/sys/fcntl.h,
3274 libc/machine/cris/sys/errno.h, libc/machine/cris/aclocal.m4,
3275 libc/machine/cris/configure, libc/machine/cris/Makefile.in: New
3276 files.
3277
3278 2005-01-27 Hans-Peter Nilsson <hp@axis.com>
3279
3280 * testsuite/newlib.string/memmove1.c: New test.
3281
3282 2005-01-27 Hans-Peter Nilsson <hp@axis.com>
3283
3284 * testsuite/include/check.h: Include stdlib.h.
3285
3286 2005-01-27 Hans-Peter Nilsson <hp@axis.com>
3287
3288 * Makefile.am (stmp-targ-include): Support include header files
3289 from machine directories.
3290 (install-data-local): Ditto.
3291 * Makefile.in: Regenerate.
3292
3293 2005-01-24 Jeff Johnston <jjohnstn@redhat.com>
3294
3295 * libc/include/string.h: Remove Linux-specific declaration of
3296 strsignal and add #include <sys/string.h>.
3297 * libc/include/sys/string.h: New file.
3298 * libc/include/sys/linux/sys/string.h: New file with strsignal
3299 declaration deleted above.
3300
3301 2005-01-20 Jeff Johnston <jjohnstn@redhat.com>
3302
3303 * libc/time/strftime.c (strftime): Change %r and %x to be compliant
3304 to POSIX standard for "C" locale. Allow %E and %O modifiers
3305 to be ignored as long as they precede valid specifiers according
3306 to POSIX.
3307
3308 2005-01-19 Shaun Jackman <sjackman@gmail.com>
3309
3310 * libc/stdlib/setenv_r.c (_setenv_r): Call tzset() if the TZ
3311 environment variable is set.
3312
3313 2005-01-19 Shaun Jackman <sjackman@gmail.com>
3314
3315 * tzset_r.c (_tzname): Add a comma.
3316
3317 2005-01-18 Aldy Hernandez <aldyh@redhat.com>
3318
3319 * libc/machine/powerpc/vfprintf.c: Use _REENT when calling
3320 _VFPRINTF_R.
3321
3322 2005-01-07 Paul Brook <paul@codesourcery.com>
3323
3324 * configure.in: Add test for .init_array.
3325 * configure: Regenerate.
3326 * newlib.hin: Add HAVE_INITFINI_ARRAY.
3327 * libc/misc/Makefile.am: Add init.c
3328 * libc/misc/Makefile.in: Regenerate.
3329 * libc/misc/init.c: New file.
3330 * libc/sys/arm/crt0.S: Call __libc_{init,fini}_array instead of
3331 _init/_fini if they exist.
3332
3333 2005-01-06 Jeff Johnston <jjohnstn@redhat.com>
3334
3335 * libc/stdlib/strtod.c (_strtod_r): Add NaN support.
3336 * (strtof): Ditto.
3337 * libc/stdio/vfscanf.c (__svfscanf_r): Ditto.
3338 * Makefile.am (MATHOBJS_IN_LIBC): Add s_nan and sf_nan
3339 functions for use by strtod and strtof.
3340 * Makefile.in: Regenerated.
3341
3342 2005-01-06 Hans-Peter Nilsson <hp@axis.com>
3343
3344 * libc/stdio/ftell.c (ftell_r): Add parenthesis for __SWR
3345 bit-test in combination with NULL test.
3346
3347 2005-01-06 Hans-Peter Nilsson <hp@axis.com>
3348
3349 * README: Fix typo of LGPL. Change "license" to "copyright".
3350
3351 2004-12-17 Jeff Johnston <jjohnstn@redhat.com>
3352
3353 * NEWS: Update with 1.13.0 info.
3354 * README: Ditto.
3355 * acinclude.m4: Change version number to 1.13.0.
3356 * aclocal.m4: Regenerated.
3357 * configure: Ditto.
3358 * doc/aclocal.m4: Ditto.
3359 * doc/configure: Ditto.
3360 * libc/*/aclocal.m4: Ditto.
3361 * libc/*/configure: Ditto.
3362 * libc/libc.texinfo: Ditto.
3363 * libm/*/aclocal.m4: Ditto.
3364 * libm/*/configure: Ditto.
3365 * libm/libm.texinfo: Ditto.
3366 * libc/sys/linux/shared.ld: Add VERS_1.13.
3367
3368 2004-12-17 Christian Groessler <chris@groessler.org>
3369
3370 * libc/machine/z8k/memcmp.S: New file.
3371 * libc/machine/z8k/memcpy.S: Ditto.
3372 * libc/machine/z8k/memmove.S: Ditto.
3373 * libc/machine/z8k/memset.S: Ditto.
3374 * libc/machine/z8k/Makefile.am: Add new files.
3375 * libc/machine/z8k/Makefile.in: Regenerated.
3376 * libc/machine/z8k/setjmp.S: Fix indirect register usage in Z8002
3377 part. Implement Z8002 stdcall version.
3378
3379 2004-12-13 Jeff Johnston <jjohnstn@redhat.com>
3380
3381 * libc/stdio/fread.c (fread): For unbuffered I/O, attempt
3382 a low-level read if we don't get the full amount of bytes so
3383 EOF or error flags will be set.
3384
3385 2004-12-09 Alex Mogilnikov <alx@intellectronika.ru>
3386
3387 * libc/time/tzset_r (_tzset_r): Properly skip over
3388 '/' when it is detected.
3389
3390 2004-12-08 Alex Mogilnikov <alx@intellectronika.ru>
3391
3392 * libc/time/tzset_r (_tzset_r): Fix loop.
3393
3394 2004-12-08 Alex Mogilnikov <alx@intellectronika.ru>
3395
3396 * libc/time/mktm_r (_mktm_r): Fix overflow calculation for
3397 m_day.
3398 (__tzcalc_limits): Fix reference to month array to be zero-based.
3399
3400 2004-12-07 Jeff Johnston <jjohnstn@redhat.com>
3401
3402 * libc/sys/linux/sys/unistd.h: Add prototypes for ftruncate, truncate,
3403 and usleep.
3404
3405 2004-12-03 Jeff Johnston <jjohnstn@redhat.com>
3406
3407 * Makefile.am (libc_la_LDFLAGS): Add -lgcc to handle any
3408 libgcc dependencies.
3409 (libm_la_LDFLAGS): Ditto.
3410 * Makefile.in: Regenerated.
3411
3412 2004-12-03 Shaun Jackman <sjackman@gmail.com>
3413
3414 * libc/sys/linux/linuxthreads/Makefile.am (install-data-local): Fix
3415 our link to use readlink so as to preserve any relative link created
3416 by install-toollibLIBRARIES.
3417 * libc/sys/linux/linuxthreads/Makefile.in: Regenerated.
3418
3419 2004-12-02 Shaun Jackman <sjackman@gmail.com>
3420
3421 * libc/sys/linux/stdlib/glob.c: Include <sys/types.h> which defines
3422 time_t before including sys/stat.h, which uses it.
3423 * libc/sys/linux/sys/stat.h: Include <sys/types.h> and
3424 <linux/time.h> just prior to definition of __KERNEL__ so as to
3425 allow building on Debian Linux where otherwise, mktime would
3426 be redefined.
3427
3428 2004-11-26 Paul Brook <paul@codesourcery.com>
3429
3430 * libc/sys/arm/crt0.S (_start): Add .cantunwind annotation.
3431
3432 2004-11-24 Jeff Johnston <jjohnstn@redhat.com>
3433
3434 * libc/include/stdlib.h (putenv, _putenv_r): Change to remove
3435 const for value string parameter to match Single Unix and glibc.
3436 * libc/stdlib/putenv.c: Ditto.
3437 * libc/stdlib/putenv_r.c: Ditto.
3438
3439 2004-11-24 Jeff Johnston <jjohnstn@redhat.com>
3440
3441 * libc/stdio/Makefile.am: Fix missing vfscanf.
3442 * libc/stdio/Makefile.in: Regenerated.
3443
3444 2004-11-23 Jeff Johnston <jjohnstn@redhat.com>
3445
3446 * libc/include/stdio.h: Add new iprintf and iscanf variants. Also
3447 do some reordering.
3448 * libc/machine/powerpc/vfscanf.c: Remove __sccl function.
3449 * libc/stdio/Makefile.am: Add support for new iprintf and iscanf
3450 family functions.
3451 * libc/stdio/Makefile.in: Regenerated.
3452 * libc/stdio/fiprintf.c: Remove doc to siprintf.c.
3453 * libc/stdio/iprintf.c: Ditto.
3454 * libc/stdio/local.h (__svfiscanf_r): New prototype.
3455 * libc/stdio/siprintf.c: Add docs for various iprintf family functions.
3456 * libc/stdio/sniprintf.c: Move docs to siprintf.c.
3457 * libc/stdio/stdio.tex: Add new functions.
3458 * libc/stdio/vfscanf.c: Split out __sccl function to separate
3459 file and add special name defines so this file can be used
3460 to build vfiscanf.o.
3461 * libc/stdio/asiprintf.c: New file.
3462 * libc/stdio/fiscanf.c: Ditto.
3463 * libc/stdio/iscanf.c: Ditto.
3464 * libc/stdio/sccl.c: Ditto.
3465 * libc/stdio/siscanf.c: Ditto.
3466 * libc/stdio/vasiprintf.c: Ditto.
3467 * libc/stdio/viprintf.c: Ditto.
3468 * libc/stdio/viscanf.c: Ditto.
3469 * libc/stdio/vsiprintf.c: Ditto.
3470 * libc/stdio/vsiscanf.c: Ditto.
3471 * libc/stdio/vsniprintf.c: Ditto.
3472
3473 2004-11-19 Shaun Jackman <sjackman@gmail.com>
3474
3475 * libc/include/stdio.h: Add sniprintf.
3476 * libc/stdio/Makefile.am: Add sniprintf.c.
3477 * libc/stdio/Makefile.in: Regenerated.
3478 * libc/stdio/sniprintf.c: New file.
3479 * libc/stdio/stdio.tex: Add sniprintf.
3480
3481 2004-11-17 Christopher Faylor <cgf@timesys.com>
3482
3483 * libc/stdio/refill.c (__srefill): Try again after EOF on Cygwin. Clear
3484 EOF flag if successful.
3485
3486 2004-10-28 Christopher Faylor <cgf@timesys.com>
3487
3488 * libc/include/sys/signal.h: Move <signal.h> include to bottom of file
3489 so that all relevant definitions have been performed for use in the
3490 include.
3491
3492 2004-10-26 Jason Tishler <jason@tishler.net>
3493
3494 * libc/stdio/fread.c (fread): Fix return value for unbuffered
3495 fread.
3496
3497 2004-10-25 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
3498
3499 * libc/include/machine/setjmp.h: Add AVR support.
3500 * libc/sys/rtems/crt0.S [__AVR__]: Add __stack.
3501
3502 2004-10-08 Jeff Johnston <jjohnstn@redhat.com>
3503
3504 * libc/include/sys/signal.h: If <signal.h> didn't include
3505 this header file, include <signal.h> to account for
3506 applications that take advantage that the two header
3507 files are the same in glibc.
3508
3509 2004-10-05 Tomer Levi <Tomer.Levi@nsc.com>
3510
3511 * configure.host: Add support for crx.
3512 * libc/include/machine/ieeefp.h: Ditto.
3513 * libc/include/machine/setjmp.h: Ditto.
3514 * libc/machine/crx/Makefile.am: New file.
3515 * libc/machine/crx/configure.in: Ditto.
3516 * libc/machine/crx/setjmp.S: Ditto.
3517 * libc/machine/crx/getenv.c: Ditto.
3518 * libc/machine/crx/aclocal.m4: Generate.
3519 * libc/machine/crx/configure: Ditto.
3520 * libc/machine/crx/Makefile.in: Ditto.
3521 * libc/machine/crx/sys/asm.h: New file.
3522 * libc/machine/crx/sys/libh.h: Ditto.
3523 * libc/machine/crx/sys/syscall.h: Ditto.
3524
3525 2004-10-05 Jeff Johnston <jjohnstn@redhat.com>
3526
3527 * Makefile.am (stmp-targ-include): Support sys header files
3528 from machine directories.
3529 * Makefile.in: Regenerated.
3530
3531 2004-10-04 Jeff Johnston <jjohnstn@redhat.com>
3532
3533 * libc/stdio/vfscanf.c (__svfscanf_r): For int conversions,
3534 count skipped zero characters as part of the nread count for %n.
3535 * libc/machine/powerpc/vfscanf.c: Ditto.
3536
3537 2004-09-24 Jeff Johnston <jjohnstn@redhat.com>
3538
3539 * libc/stdio/local.h: Include <stdlib.h>.
3540
3541 2004-09-24 Corinna Vinschen <corinna@vinschen.de>
3542
3543 * libc/stdio/fread.c (fread): Include <malloc.h>.
3544
3545 2004-09-22 Jeff Johnston <jjohnstn@redhat.com>
3546
3547 * libc/stdio/fread.c (fread): For non-space-optimized case,
3548 add special code for unbuffered files to use user buffer and
3549 only require one low-level system read.
3550
3551 2004-09-21 Ian Lance Taylor <ian@wasabisystems.com>
3552
3553 * libc/machine/xscale/setjmp.S: New file, copied from
3554 libc/machine/arm/setjmp.S.
3555 * libc/machine/xscale/Makefile.am (lib_a_SOURCES): Add setjmp.S.
3556 * libc/machine/xscale/Makefile.in: Regenerate.
3557
3558 2004-09-16 Antony King <antony.king@st.com>
3559
3560 * libc/include/sys/lock.h: Replaced empty {} with (0) to conform
3561 with locking API.
3562 * libc/include/sys/stdio.h: (_flockfile)[!_SINGLE_THREAD]: Add
3563 check for__SSTR in _flags and if set, skip lock request.
3564 (_funlockfile)[!SINGLE_THREAD]: Ditto.
3565 * libc/stdio/local.h (CHECK_INIT): Added check that _REENT is
3566 not NULL.
3567 * libc/stdio/siprintf.c (siprintf, _siprintf_r): Added missing
3568 initialisation of _file to -1 in local FILE.
3569 * libc/stdio/snprintf.c (snprintf, _snprintf_r): Ditto.
3570 * libc/stdio/sscanf.c (sscanf, _sscanf_r): Ditto.
3571 * libc/stdio/vsnprintf.c (vsnprintf, _vsnprintf_r): Ditto.
3572 * libc/stdio/vsscanf.c (_vsscanf_r): Ditto.
3573 * libc/stdio/sscanf.c (sscanf, _sscanf_r): Added __SSTR flag to
3574 _flags in local FILE to prevent locking.
3575 * libc/stdio/vsscanf.c (_vsscanf_r): Ditto.
3576
3577 2004-09-16 Antony King <antony.king@st.com>
3578
3579 * libc/stdio/fwalk.c (_fwalk): Remove check for _GLOBAL_REENT
3580 and only walk the reentrancy parameter.
3581 (_fwalk_reent): Ditto.
3582 * libc/stdlib/exit.c: Remove out of date _REENT_ONLY check.
3583
3584 2004-09-16 Antony King <antony.king@st.com>
3585
3586 * libc/stdio64/freopen64.c: Remove casting of fp lock to
3587 _LOCK_RECURSIVE_T.
3588
3589 2004-09-16 Antony King <antony.king@st.com>
3590
3591 * libc/time/tzlock.c: Add default stubs that use generic
3592 locking code.
3593
3594 2004-09-16 Antony King <antony.king@st.com>
3595
3596 * libc/ctype/ctype.tex: Added missing documentation.
3597 * libc/stdio/stdio.tex Ditto.
3598 * libc/stdlib/stdlib.tex Ditto.
3599 * libc/string/strings.tex Ditto.
3600 * libc/time/time.tex: Ditto.
3601 * libc/stdio/setbuffer.c: Removed setlinebuf documentation.
3602
3603 2004-09-15 Corinna Vinschen <vinschen@redhat.com>
3604
3605 * libc/reent/impure.c (reent_data): Define as alias to impure_data
3606 when building for Cygwin.
3607 * libc/include/sys/reent.h (_GLOBAL_REENT): Revert definition to
3608 _global_impure_ptr.
3609
3610 2004-09-15 Jeff Johnston <jjohnstn@redhat.com>
3611
3612 * configure.host: Reverting 2004-09-14 change as fix has occurred on
3613 Cygwin side.
3614 * configure.in: Ditto.
3615 * libc/configure.in: Ditto.
3616 * libc/sys/configure.in: Ditto.
3617 * configure: Ditto.
3618 * libc/configure: Ditto.
3619 * libc/sys/configure: Ditto.
3620 * libc/include/sys/reent.h: Ditto.
3621 * libc/stdlib/__atexit.c: Ditto.
3622 * libc/stdlib/__call_atexit.c: Ditto.
3623 * libc/stdlib/cxa_atexit.c: Ditto.
3624 * libc/stdlib/cxa_finalize.c: Ditto.
3625 * libc/sys/cygwin/Makefile.am: Removed again.
3626 * libc/sys/cygwin/Makefile.in: Ditto.
3627 * libc/sys/cygwin/aclocal.m4: Ditto.
3628 * libc/sys/cygwin/configure: Ditto.
3629 * libc/sys/cygwin/configure.in: Ditto.
3630 * libc/sys/cygwin/dummy.c: Ditto.
3631 * libc/sys/cygwin/sys/reent.h: Ditto.
3632
3633 2004-09-14 Jeff Johnston <jjohnstn@redhat.com>
3634
3635 * configure.host: Add Cygwin sys directory.
3636 * configure.in: Do not set CRT0 for cygwin.
3637 * libc/configure.in: Ditto.
3638 * libc/sys/configure.in: Ditto.
3639 * configure: Regenerated.
3640 * libc/configure: Ditto.
3641 * libc/sys/configure: Ditto.
3642 * libc/include/sys/reent.h: Add __REENT_HAS_CXA_SUPPORT flag.
3643 * libc/stdlib/__atexit.c: Keep cxa support protected by new
3644 __REENT_HAS_CXA_SUPPORT flag.
3645 * libc/stdlib/__call_atexit.c: Ditto.
3646 * libc/stdlib/cxa_atexit.c: Ditto.
3647 * libc/stdlib/cxa_finalize.c: Ditto.
3648 * libc/sys/cygwin/Makefile.am: New file.
3649 * libc/sys/cygwin/Makefile.in: Ditto.
3650 * libc/sys/cygwin/aclocal.m4: Ditto.
3651 * libc/sys/cygwin/configure: Ditto.
3652 * libc/sys/cygwin/configure.in: Ditto.
3653 * libc/sys/cygwin/dummy.c: Ditto.
3654 * libc/sys/cygwin/sys/reent.h: Ditto. This file is stabilized
3655 version of reent.h.
3656
3657 2004-09-13 Artem B. Bityuckiy <dedekind@oktetlabs.ru>
3658
3659 * libc/iconv/iconv.tex: Updated with new content.
3660 * libc/iconv/lib/iconvnls.c: Reference ICONV_DEFAULT_NLSPATH
3661 instead of NLS_DEFAULT_NLSPATH.
3662 * libc/iconv/lib/iconvnls.h: Fix typo.
3663 * libc/include/sys/iconvnls.h: New file.
3664
3665 2004-09-09 Paul Brook <paul@codesourcery.com>
3666
3667 * libc/include/sys/reent.h (struct _on_exit_args): Add _dso_handle
3668 and _is_cxa.
3669 (struct _atexit): Add _next when _REENT_SMALL.
3670 (struct _reent): Add _atexit0 when _REENT_SMALL.
3671 (_REENT_INIT_PTR): Adjust.
3672 * libc/stdlib/Makefile.am (GENERAL_SOURCES): Add __atexit.c and
3673 __call_exit.c.
3674 (EXTENDED_SOURCES): Add cxa_atexit.c and cxa_finalize.c.
3675 * libc/stdlib/Makefile.in: Regenerate.
3676 * libc/stdlib/__atexit.c: New file.
3677 * libc/stdlib/__call_atexit.c: New file.
3678 * libc/stdlib/atexit.h: Remove old definitions. Add new.
3679 * libc/stdlib/atexit.c (atexit): Use __register_exitproc.
3680 * libc/stdlib/cxa_atexit.c: New file.
3681 * libc/stdlib/cxa_finalize.c: New file.
3682 * libc/stdlib/exit.c (exit): Use __call_exitprocs.
3683 * libc/stdlib/on_exit.c (on_exit): Use __register_exitproc.
3684 2004-09-09 Jeff Johnston <jjohnstn@redhat.com>
3685 * libc/reent/reent.c [_REENT_SMALL]: Fix reference to
3686 _on_exit_args_ptr.
3687
3688 2004-08-23 Jeff Johnston <jjohnstn@redhat.com>
3689
3690 * libc/include/sys/unistd.h (getpass): Change prototype to use
3691 const instead of __const.
3692
3693 2004-08-16 Nathan Sidwell <nathan@codesourcery.com>
3694
3695 * libc/stdio/vfscanf.c (_NO_LONGLONG): Move out of FLOATING_POINT
3696 #if.
3697
3698 2004-08-12 Jeff Johnston <jjohnstn@redhat.com>
3699
3700 * libc/sys/linux/sys/types.h (u64): New typedef to allow building
3701 on linux systems with glibc 2.3.3 installed.
3702 * libc/sys/linux/dl/dl-runtime.c: Fix prototypes for fixup and
3703 profile_fixup so newlib can build on fc3 system.
3704
3705 2004-07-30 Alexandre Oliva <aoliva@redhat.com>
3706
3707 Introduce SH2a support.
3708 2004-03-16 Corinna Vinschen <vinschen@redhat.com>
3709 * libc/include/machine/ieeefp.h: Define _DOUBLE_IS_32BITS for
3710 __SH2A_SINGLE_ONLY__, too.
3711 * libc/machine/sh/asm.h: Define DELAYED_BRANCHES for __SH2A__, too.
3712 2004-02-24 Corinna Vinschen <vinschen@redhat.com>
3713 * libc/sys/sh/crt0.S (start_l): Support sh2a-nofpu. Fix comments.
3714 2004-02-10 DJ Delorie <dj@redhat.com>
3715 * libc/sys/sh/crt0.S (start_l): Support sh2a.
3716
3717 2004-07-29 Jeff Johnston <jjohnstn@redhat.com>
3718
3719 * libc/time/strptime.c: Correct full-name of "March" typo.
3720
3721 2004-07-16 Anil Paranjpe <anilp1@kpitcummins.com>
3722
3723 * configure.host (h8300*-*-*): Default long long printing support.
3724
3725 2004-07-16 Jeff Johnston <jjohnstn@redhat.com>
3726
3727 * libc/stdio/fvwrite.c (_sfvwrite): For asprintf family
3728 calls, if realloc fails, free up buffer as it is no longer
3729 used.
3730
3731 2004-07-07 Artem B. Bityuckiy <dedekind@oktetlabs.ru>
3732
3733 * libc/iconv/iconv.tex: Updated to represent recent changes.
3734 * libc/iconv/lib/iconv.c: Documentation updated.
3735
3736 2004-07-07 Nick Clifton <nickc@redhat.com>
3737
3738 * configure.host (newlib_cflags): Define PREFER_SIZE_OVER_SPEED
3739 for xStormy16.
3740
3741 2004-07-06 Chris Demetriou <cgd@broadcom.com>
3742
3743 * configure.host (mips*-*-elf*): Default long long printing
3744 support.
3745
3746 2004-07-05 Jeff Johnston <jjohnstn@redhat.com>
3747
3748 * libc/Makefile.am (libc.dvi): Add target and specify
3749 same dependencies as libc.info.
3750 * libc/Makefile.in: Regenerated.
3751 * libm/Makefile.am (libm.dvi): Add target and specify
3752 same dependencies as libm.info.
3753 * libm/Makefile.in: Regenerated.
3754
3755 2004-06-29 Artem B. Bityuckiy <dedekind@oktetlabs.ru>
3756
3757 * acinclude.m4: Move --enable-newlib-iconv option back here.
3758 * configure.in: Remove --enable-newlib-iconv option. Don't
3759 tie iconv support to --enable-newlib-mb.
3760 * aclocal.m4: Regenerated.
3761 * configure: Ditto.
3762 * doc/aclocal.m4, doc/configure: Ditto.
3763 * iconvdata/aclocal.m4, iconvdata/configure: Ditto.
3764 * libm/*/aclocal.m4: Ditto.
3765 * libm/*/configure: Ditto.
3766 * libc/*/aclocal.m4: Ditto.
3767 * libc/*/configure: Ditto.
3768
3769 2004-06-25 Artem B. Bityuckiy <dedekind@oktetlabs.ru>
3770
3771 * acinclude.m4: Move iconv options into configure.in.
3772 * aclocal.m4: Regenerated.
3773 * configure: Ditto.
3774 * configure.in: Add iconv options.
3775 * newlib.hin: Add new iconv encodings and remove deleted ones.
3776 * doc/aclocal.m4: Regenerated.
3777 * doc/configure: Ditto.
3778 * iconvdata/aclocal.m4: Ditto.
3779 * iconvdata/configure: Ditto.
3780 * libc/iconv: Design change. New size-optimized ccs format.
3781 * libc/iconv/AUTHORS: Removed.
3782 * libc/iconv/COPYING: Ditto.
3783 * libc/iconv/README.ORIGINAL: Ditto.
3784 * libc/iconv/README.TODO: Ditto.
3785 * libc/iconv/charset.aliases: Ditto.
3786 * libc/iconv/encoding.aliases: New file.
3787 * libc/iconv/Makefile.am: Updated.
3788 * libc/iconv/Makefile.in: Regenerated.
3789 * libc/iconv/iconv.tex: Updated.
3790 * libc/iconv/ccs/Makefile.am: Ditto.
3791 * libc/iconv/ccs/Makefile.in: Regenerated.
3792 * libc/iconv/ccs/big5.c: Updated.
3793 * libc/iconv/ccs/cns11643_plane1.c: Ditto.
3794 * libc/iconv/ccs/cns11643_plane14.c: Ditto.
3795 * libc/iconv/ccs/cns11643_plane2.c: Ditto.
3796 * libc/iconv/ccs/cp775.c: Ditto.
3797 * libc/iconv/ccs/cp850.c: Ditto.
3798 * libc/iconv/ccs/cp852.c: Ditto.
3799 * libc/iconv/ccs/cp855.c: Ditto.
3800 * libc/iconv/ccs/cp866.c: Ditto.
3801 * libc/iconv/ccs/iso_8859_1.c: Ditto.
3802 * libc/iconv/ccs/README.CCS.SOURCES: Removed.
3803 * libc/iconv/ccs/gb_2312_80.c: Ditto.
3804 * libc/iconv/ccs/iconv_mktbl: Ditto.
3805 * libc/iconv/ccs/jis_x0201.c: Ditto.
3806 * libc/iconv/ccs/jis_x0208_1983.c: Ditto.
3807 * libc/iconv/ccs/shift_jis.c: Ditto.
3808 * libc/iconv/ccs/us_ascii.c: Ditto.
3809 * libc/iconv/ccs/ccs.h: New file.
3810 * libc/iconv/ccs/ccsbi.c: Ditto.
3811 * libc/iconv/ccs/ccsbi.h: Ditto.
3812 * libc/iconv/ccs/ccsnames.h: Ditto.
3813 * libc/iconv/ccs/iso_8859_10.c: Ditto.
3814 * libc/iconv/ccs/iso_8859_11.c: Ditto.
3815 * libc/iconv/ccs/iso_8859_13.c: Ditto.
3816 * libc/iconv/ccs/iso_8859_14.c: Ditto.
3817 * libc/iconv/ccs/iso_8859_3.c: Ditto.
3818 * libc/iconv/ccs/iso_8859_6.c: Ditto.
3819 * libc/iconv/ccs/iso_8859_7.c: Ditto.
3820 * libc/iconv/ccs/iso_8859_8.c: Ditto.
3821 * libc/iconv/ccs/iso_8859_9.c: Ditto.
3822 * libc/iconv/ccs/iso_ir_111.c: Ditto.
3823 * libc/iconv/ccs/jis_x0201_1976.c: Ditto.
3824 * libc/iconv/ccs/jis_x0208_1990.c: Ditto.
3825 * libc/iconv/ccs/koi8_ru.c: Ditto.
3826 * libc/iconv/ccs/koi8_uni.c: Ditto.
3827 * libc/iconv/ccs/mktbl.pl: Ditto.
3828 * libc/iconv/ccs/win_1250.c: Ditto.
3829 * libc/iconv/ccs/win_1251.c: Ditto.
3830 * libc/iconv/ccs/win_1252.c: Ditto.
3831 * libc/iconv/ccs/win_1253.c: Ditto.
3832 * libc/iconv/ccs/win_1254.c: Ditto.
3833 * libc/iconv/ccs/win_1255.c: Ditto.
3834 * libc/iconv/ccs/win_1256.c: Ditto.
3835 * libc/iconv/ccs/win_1257.c: Ditto.
3836 * libc/iconv/ccs/win_1258.c: Ditto.
3837 * libc/iconv/ccs/iso_8859_15.c: Updated.
3838 * libc/iconv/ccs/iso_8859_2.c: Ditto.
3839 * libc/iconv/ccs/iso_8859_4.c: Ditto.
3840 * libc/iconv/ccs/iso_8859_5.c: Ditto.
3841 * libc/iconv/ccs/jis_x0212_1990.c: Ditto.
3842 * libc/iconv/ccs/koi8_r.c: Ditto.
3843 * libc/iconv/ccs/koi8_u.c: Ditto.
3844 * libc/iconv/ccs/ksx1001.c: Ditto.
3845 * libc/iconv/ccs/binary/gb_2312_80.cct: Removed.
3846 * libc/iconv/ccs/binary/jis_x0201.cct: Ditto.
3847 * libc/iconv/ccs/binary/shift_jis.cct: Ditto.
3848 * libc/iconv/ccs/binary/us_ascii.cct: Ditto.
3849 * libc/iconv/ccs/binary/jis_x0208_1983.cct: Ditto.
3850 * libc/iconv/ccs/binary/Makefile.am: Updated.
3851 * libc/iconv/ccs/binary/Makefile.in: Regenerated.
3852 * libc/iconv/ccs/binary/big5.cct: Updated.
3853 * libc/iconv/ccs/binary/cns11643_plane1.cct: Ditto.
3854 * libc/iconv/ccs/binary/cns11643_plane14.cct: Ditto.
3855 * libc/iconv/ccs/binary/cns11643_plane2.cct: Ditto.
3856 * libc/iconv/ccs/binary/cp775.cct: Updated.: Ditto.
3857 * libc/iconv/ccs/binary/cp850.cct: Ditto.: Ditto.
3858 * libc/iconv/ccs/binary/cp852.cct: Ditto.: Ditto.
3859 * libc/iconv/ccs/binary/cp855.cct: Ditto.: Ditto.
3860 * libc/iconv/ccs/binary/cp866.cct: Ditto.: Ditto.
3861 * libc/iconv/ccs/binary/iso_8859_1.cct: Ditto.
3862 * libc/iconv/ccs/binary/iso_8859_15.cct: Ditto.
3863 * libc/iconv/ccs/binary/iso_8859_4.cct: Ditto.
3864 * libc/iconv/ccs/binary/iso_8859_5.cct: Ditto.
3865 * libc/iconv/ccs/binary/iso_8859_2.cct: Ditto.
3866 * libc/iconv/ccs/binary/jis_x0212_1990.cct: Ditto.
3867 * libc/iconv/ccs/binary/koi8_r.cct: Ditto.
3868 * libc/iconv/ccs/binary/koi8_u.cct: Ditto.
3869 * libc/iconv/ccs/binary/ksx1001.cct: Ditto.
3870 * libc/iconv/ccs/binary/iso_8859_10.cct: New file.
3871 * libc/iconv/ccs/binary/iso_8859_11.cct: Ditto.
3872 * libc/iconv/ccs/binary/iso_8859_13.cct: Ditto.
3873 * libc/iconv/ccs/binary/iso_8859_14.cct: Ditto.
3874 * libc/iconv/ccs/binary/iso_8859_3.cct: Ditto.
3875 * libc/iconv/ccs/binary/iso_8859_6.cct: Ditto.
3876 * libc/iconv/ccs/binary/iso_8859_7.cct: Ditto.
3877 * libc/iconv/ccs/binary/iso_8859_8.cct: Ditto.
3878 * libc/iconv/ccs/binary/iso_8859_9.cct: Ditto.
3879 * libc/iconv/ccs/binary/iso_ir_111.cct: Ditto.
3880 * libc/iconv/ccs/binary/jis_x0201_1976.cct: Ditto.
3881 * libc/iconv/ccs/binary/jis_x0208_1990.cct: Ditto.
3882 * libc/iconv/ccs/binary/koi8_ru.cct: Ditto.
3883 * libc/iconv/ccs/binary/koi8_uni.cct: Ditto.
3884 * libc/iconv/ccs/binary/win_1250.cct: Ditto.
3885 * libc/iconv/ccs/binary/win_1251.cct: Ditto.
3886 * libc/iconv/ccs/binary/win_1252.cct: Ditto.
3887 * libc/iconv/ccs/binary/win_1253.cct: Ditto.
3888 * libc/iconv/ccs/binary/win_1254.cct: Ditto.
3889 * libc/iconv/ccs/binary/win_1255.cct: Ditto.
3890 * libc/iconv/ccs/binary/win_1256.cct: Ditto.
3891 * libc/iconv/ccs/binary/win_1257.cct: Ditto.
3892 * libc/iconv/ccs/binary/win_1258.cct: Ditto.
3893 * libc/iconv/ces/Makefile.am: Updated.
3894 * libc/iconv/ces/Makefile.in: Regenerated.
3895 * libc/iconv/ces/ucs-2-internal.c: Updated.
3896 * libc/iconv/ces/ucs-4-internal.c: Ditto.
3897 * libc/iconv/ces/utf-16.c: Ditto.
3898 * libc/iconv/ces/utf-8.c: Ditto.
3899 * libc/iconv/ces/cesbi.c: New file.
3900 * libc/iconv/ces/cesbi.h: Ditto.
3901 * libc/iconv/ces/cesdeps.h: Ditto.
3902 * libc/iconv/ces/euc.c: Ditto.
3903 * libc/iconv/ces/mkdeps.pl: Ditto.
3904 * libc/iconv/ces/table-pcs.c: Ditto.
3905 * libc/iconv/ces/table.c: Ditto.
3906 * libc/iconv/ces/ucs-2.c: Ditto.
3907 * libc/iconv/ces/ucs-4.c: Ditto.
3908 * libc/iconv/ces/us-ascii.c: Ditto.
3909 * libc/iconv/ces/euc-jp.c: Removed.
3910 * libc/iconv/ces/euc-kr.c: Ditto.
3911 * libc/iconv/ces/euc-tw.c: Ditto.
3912 * libc/iconv/ces/gb2312.c: Ditto.
3913 * libc/iconv/ces/iso-10646-ucs-2.: Ditto.c
3914 * libc/iconv/ces/iso-10646-ucs-4.c: Ditto.
3915 * libc/iconv/lib/Makefile.am: Updated.
3916 * libc/iconv/lib/Makefile.in: Regenerated.
3917 * libc/iconv/lib/endian.h: Updated.
3918 * libc/iconv/lib/iconv.c: Ditto.
3919 * libc/iconv/lib/local.h: Ditto.
3920 * libc/iconv/lib/aliases.c: Removed.
3921 * libc/iconv/lib/bialiasesi.c: Ditto.
3922 * libc/iconv/lib/biccs.c: Ditto.
3923 * libc/iconv/lib/bices.c: Ditto.
3924 * libc/iconv/lib/ccs.c: Ditto.
3925 * libc/iconv/lib/ces.c: Ditto.
3926 * libc/iconv/lib/ces_euc.c: Ditto.
3927 * libc/iconv/lib/ces_iso2022.c: Ditto.
3928 * libc/iconv/lib/ces_table.c: Ditto.
3929 * libc/iconv/lib/converter.c: Ditto.
3930 * libc/iconv/lib/deps.h: Ditto.
3931 * libc/iconv/lib/loaddata.c: Ditto.
3932 * libc/iconv/lib/aliasesbi.c: New file.
3933 * libc/iconv/lib/aliasesi.c: Ditto.
3934 * libc/iconv/lib/conv.h: Ditto.
3935 * libc/iconv/lib/encnames.h: Ditto.
3936 * libc/iconv/lib/encoding.deps: Ditto.
3937 * libc/iconv/lib/iconvnls.c: Ditto.
3938 * libc/iconv/lib/iconvnls.h: Ditto.
3939 * libc/iconv/lib/nullconv.c: Ditto.
3940 * libc/iconv/lib/ucsconv.c: Ditto.
3941 * libc/iconv/lib/ucsconv.h: Ditto.
3942 * libc/include/iconv.h: Update copyright.
3943 * libc/*/aclocal.m4: Regenerated.
3944 * libc/*/configure: Ditto.
3945 * libm/*/aclocal.m4: Ditto.
3946 * libm/*/configure: Ditto.
3947
3948 2004-06-22 Alexandre Oliva <aoliva@redhat.com>
3949
3950 * libc/include/machine/setjmp.h [__H8300__] (_JBTYPE): Define,
3951 instead of typedefing jmp_buf.
3952
3953 2003-07-02 Richard Sandiford <rsandifo@redhat.com>
3954 * libc/machine/h8300/Makefile.am (lib_a_SOURCES): Add h8sx_strcpy.S.
3955 * libc/machine/h8300/defines.h (LEN): New macro.
3956 * libc/machine/h8300/memcpy.S: Add h8sx version.
3957 * libc/machine/h8300/memset.S: Likewise.
3958 * libc/machine/h8300/strcmp.S: Likewise.
3959 * libc/machine/h8300/setjmp.S: Use h8sx move instructions.
3960 * libc/machine/h8300/h8sx_strcpy.S: New file.
3961 2003-06-30 Richard Sandiford <rsandifo@redhat.com>
3962 * libc/include/machine/ieeefp.h: Extend __H8300S__ handling to
3963 __H8300SX__.
3964 * libc/include/machine/setjmp.h: Likewise.
3965 * libc/include/sys/config.h: Likewise.
3966 * libc/machine/h8300/defines.h: Likewise.
3967 * libc/machine/h8300/setjmp.S: Likewise.
3968 * libc/machine/h8300/strcmp.S: Likewise.
3969 * libc/sys/h8300hms/close.S: Likewise.
3970 * libc/sys/h8300hms/fstat.S: Likewise.
3971 * libc/sys/h8300hms/lseek.S: Likewise.
3972 * libc/sys/h8300hms/read.S: Likewise.
3973 * libc/sys/h8300hms/write.S: Likewise.
3974 * libc/sys/h8300hms/crt0.S: Likewise.
3975 * libc/machine/h8300/setarch.h: Use .h8300sx or .h8300sxn if
3976 __H8300SX__ is defined.
3977 * libc/sys/h8300hms/setarch.h: Likewise.
3978
3979 2004-06-17 Jeff Johnston <jjohnstn@redhat.com>
3980
3981 * libc/include/sys/reent.h (_GLOBAL_REENT): Back
3982 out change which set _GLOBAL_REENT to _global_impure_ptr until
3983 we understand why Cygwin breaks because of it.
3984
3985 2004-06-14 Jeff Johnston <jjohnstn@redhat.com>
3986
3987 * libc/sys/linux/machine/i386/syscall.h: For now, set up
3988 __syscall_return macro for systems with vsyscall.
3989
3990 2004-06-11 Antony King <antony.king@st.com>
3991
3992 * libc/include/sys/_types.h: Include <sys/lock.h> and change
3993 _flock_t to be of type _LOCK_RECURSIVE_T.
3994 * libc/include/sys/reent.h: (_REENT_INIT): Reformat.
3995 (_REENT_INIT_PTR): Ditto. Use memset where appropriate.
3996 (_global_impure_ptr): New declaration.
3997 (_GLOBAL_REENT): Change to be _global_impure_ptr.
3998 * libc/include/sys/stdio.h: Include <sys/lock.h> and
3999 <sys/reent.h>.
4000 (_flockfile)[!_SINGLE_THREAD]: Add code for lock call.
4001 (_funlockfile)[!SINGLE_THREAD]: Ditto.
4002 * libc/reent/impure.c: Set _global_impure_ptr to _impure_ptr.
4003 * libc/stdio/fclose.c: Remove casting of fp lock to
4004 _LOCK_RECURSIVE_T.
4005 * libc/stdio/findfp.c: Ditto.
4006 * libc/stdio/fopen.c: Ditto.
4007 * libc/stdio/freopen.c: Ditto.
4008 * libc/stdio/vfprintf.c: Ditto.
4009 * libc/stdio64/fopen64.c: Ditto.
4010 * libc/stdlib/envlock.c: Add default stubs that use generic
4011 locking code.
4012 * libc/stdlib/mlock.c: Ditto.
4013
4014 Jeff Johnston <jjohnstn@redhat.com>
4015 * libc/sys/linux/sys/_types.h (__flock_mutex_t): New subtype.
4016 (_flock_t): Change to be a struct containing a single member
4017 named mutex which is of type __flock_mutex_t.
4018
4019 2004-06-09 Jeff Johnston <jjohnstn@redhat.com>
4020
4021 * libc/sys/linux/Makefile.am: Change siglist.inc to be generated
4022 from /usr/include/asm/signal.h instead of kernel sources. Also
4023 default max to 32 if not found in header file.
4024 * libc/sys/linux/Makefile.in: Regenerated.
4025 * libc/sys/linux/machine/i386/socketcall.h: Fix for Fedora Core 2
4026 systems where __syscall_return is not defined.
4027 * libc/sys/linux/machine/i386/syscall.h: Change for Fedora Core 2
4028 systems to use syscall() function instead of assembler interrupt.
4029
4030 2004-06-09 Toralf Lund <toralf@procaptura.com>
4031
4032 * libc/sys/arm/setjmp.S, libc/sys/arm/access.c: Move
4033 files from libc/sys/arm to libc/machine/arm.
4034 * libc/machine/arm/Makefile.am, libc/machine/arm/Makefile.in: Add
4035 library build support for files moved from libc/sys/arm.
4036 * libc/sys/arm/Makefile.am, libc/sys/arm/Makefile.in: Remove
4037 references to access and setjmp.
4038 * configure.host: Add checks for newlib_may_supply_syscalls to
4039 determine whether or not to use sys/arm directory and use
4040 special compiler flags: ARM_RDI_MONITOR and ARM_RDP_MONITOR.
4041
4042 2004-06-02 Jeff Johnston <jjohnstn@redhat.com>
4043
4044 * libc/stdio/vfscanf.c (__svfscanf_r): For CT_INT conversions,
4045 reset digit flags appropriately after we have discovered "0x".
4046 * libc/machine/powerpc/vfscanf.c (__svfscanf_r): Ditto.
4047
4048 2004-05-27 Jeff Johnston <jjohnstn@redhat.com>
4049
4050 * libc/stdio/vfprintf.c (_VFPRINTF): Move file locking
4051 from here ...
4052 (_VFPRINTF_R): ... to here so all I/O printf routines
4053 are covered.
4054
4055 2004-05-26 Jeff Johnston <jjohnstn@redhat.com>
4056
4057 * libc/search/hash_buf.c: Protect MAX and MIN macros from
4058 redefinition.
4059 * libc/search/hash.c: Ditto.
4060
4061 2004-05-25 Artem B. Bityuckiy <abitytsky@softminecorp.com>
4062
4063 * newlib.hin: (_WANT_IO_POS_ARGS): New define.
4064 (_WANT_IO_LONG_LONG): Ditto.
4065 (_WANT_IO_LONG_DOUBLE): Ditto.
4066 * configure.in: Add new configuration options
4067 --enable-newlib-io-long-long and --enable-newlib-io-long-double
4068 which tie to new defines in newlib.hin.
4069 * configure: Regenerated.
4070 * configure.host: Add checks for new configuration options. Also
4071 fix up check for --enable-newlib-io-pos-args so configuration
4072 option will override any default for a given platform.
4073 Remove defining compiler flags for the _WANT_IO* options.
4074 * libc/stdio/vfprintf.c: Change to use new newlib.hin defines
4075 instead of looking for old compiler flags.
4076 * libc/stdio/vfscanf.c: Ditto.
4077 * libc/stdio/vfieeefp.h: Ditto.
4078 * libc/machine/powerpc/vfprintf.c: Ditto.
4079 * libc/machine/powerpc/vfscanf.c: Ditto.
4080
4081 2004-05-25 Jeff Johnston <jjohnstn@redhat.com>
4082
4083 * testsuite/include/check.h: Add include of <stdio.h>.
4084
4085 2004-05-17 Corinna Vinschen <corinna@vinschen.de>
4086
4087 * libc/include/grp.h: Declare getgrnam_r and getgrgid_r also on Cygwin.
4088
4089 2004-05-11 Artem B. Bityuckiy <abitytsky@softminecorp.com>
4090
4091 * libc/stdio/vfprintf.c (VFPRINTF_R): Use _free_r instead
4092 of free.
4093
4094 2004-05-07 Artem B. Bityuckiy <abitytsky@softminecorp.com>
4095
4096 * libc/stdio/iprintf.c (_iprintf_r): Fix old-style argument
4097 list for reentrant pointer. Call _vfiprintf_r.
4098 * libc/stdio/siprintf.c (_siprintf_r): New function.
4099 * libc/stdio/vfprintf.c (__sbprintf): Add reetrant struct
4100 pointer argument. Change all callers. Call _VFPRINTF_R.
4101 * libc/include/stdio.h (_siprintf_r, _vfiprintf_r): New
4102 prototypes.
4103
4104 2004-05-07 Jeff Johnston <jjohnstn@redhat.com>
4105
4106 * libc/include/sys/param.h: Remove endian info and include
4107 <machine/endian.h> instead.
4108 * libc/include/machine/endian.h: New file.
4109 * libc/include/machine/param.h: Ditto.
4110 * libc/machine/arm/machine/endian.h: Ditto.
4111 * libc/machine/arm/machine/param.h: Ditto.
4112 * libc/sys/arm/sys/param.h: Removed.
4113 * libc/sys/sysvi386/sys/param.h: Ditto.
4114 * libc/sys/rtems/sys/param.h: Modified to include <machine/endian.h>.
4115
4116 2004-05-03 Artem B. Bityuckiy <abitytsky@softminecorp.com>
4117
4118 * libc/stdio/vfprintf.c (_VFPRINTF_R): Set error flag when
4119 multibyte functions return failure for %C, %S, %lc, and %ls
4120 format specifiers.
4121
4122 2004-05-03 Artem B. Bityuckiy <abitytsky@softminecorp.com>
4123
4124 * testsuite/include/check.h (CHECK): Add flush of stdout.
4125
4126 2004-05-03 Artem B. Bityuckiy <abitytsky@softminecorp.com>
4127
4128 * libc/include/stdio.h (_ungetc_r): New prototype.
4129 * libc/stdio/ungetc.c (_ungetc_r): New reentrant function.
4130 (__submore): Add reentrant struct pointer argument.
4131 (ungetc): Change to call _ungetc_r.
4132
4133 2004-04-28 Artem B. Bityuckiy <abitytsky@softminecorp.com>
4134
4135 * libc/stdio/local.h (_fwalk_reent): Specify prototype of
4136 function pointer argument.
4137 * libc/stdio/fwalk.c (_fwalk, _fwalk_reent): Change prototypes
4138 to specify function pointer arguments.
4139 (__fwalk, __fwalk_reent): Ditto.
4140
4141 2004-04-26 Aldy Hernandez <aldyh@redhat.com>
4142
4143 * libc/machine/powerpc/vfscanf.c (__svfscanf_r): Fix typo in
4144 CT_INT case.
4145
4146 2004-04-23 Artem B. Bityuckiy <abitytsky@softminecorp.com>
4147
4148 * configure.in: Define _MB_CAPABLE if mb supported.
4149 * configure: Regenerated.
4150 * configure.host: Remove manual setting of MB_CAPABLE compiler
4151 flag.
4152 * newlib.hin: Add _MB_CAPABLE flag.
4153 * libc/ctype/iswalpha.c, libc/ctype/iswblank.c: Include <newlib.h>
4154 and check for _MB_CAPABLE flag instead of MB_CAPABLE.
4155 * libc/ctype/iswcntrl.c, libc/ctype/iswprint.c: Ditto.
4156 * libc/ctype/iswpunct.c, libc/ctype/iswspace.c: Ditto.
4157 * libc/ctype/jp2uc.c: Ditto.
4158 * libc/ctype/towlower.c, libc/ctype/towupper.c: Ditto.
4159 * libc/locale/locale.c: Ditto
4160 * libc/machine/powerpc/vfscanf.c: Ditto
4161 * libc/stdio/vfprintf.c, libc/stdio/vfscanf.c: Ditto
4162 * libc/stdlib/mblen.c: Ditto
4163 * libc/stdlib/mblen_r.c, libc/stdlib/mbrlen.c: Ditto
4164 * libc/stdlib/mbrtowc.c, libc/stdlib/mbsrtowcs.c: Ditto
4165 * libc/stdlib/mbstowcs.c, libc/stdlib/mbtowc.c: Ditto
4166 * libc/stdlib/mbtowc_r.c, libc/stdlib/wcrtomb.c: Ditto
4167 * libc/stdlib/wcsrtombs.c, libc/stdlib/wcstombs.c: Ditto
4168 * libc/stdlib/wctomb.c, libc/sys/linux/intl/dcigettext.c: Ditto
4169 * libc/sys/linux/intl/explodename.c: Ditto
4170 * libc/sys/linux/intl/finddomain.c: Ditto
4171 * libc/sys/linux/intl/l10nflist.c: Ditto
4172 * libc/sys/linux/intl/loadmsgcat.c: Ditto
4173 * libc/sys/linux/intl/localealias.c: Ditto
4174
4175 2004-04-23 Jeff Johnston <jjohnstn@redhat.com>
4176
4177 * libc/machine/powerpc/vfscanf.c (NNZDIGITS): New define.
4178 (__svfscanf_r): In integer conversions, leave out leading zeroes
4179 which are not part of a base prefix.
4180 Keep track of width truncation to fit into buf, not counting left-out
4181 zeroes against width till the truncation has been compensated for.
4182 This is based on Joern's patch of 04/21 for libc/stdio/vfscanf.c.
4183
4184 2004-04-23 Jeff Johnston <jjohnstn@redhat.com>
4185
4186 * libc/include/stdio.h: (_ftell_r, _fseek_r): New prototypes.
4187
4188 2004-04-23 Artem B. Bityuckiy <abitytsky@softminecorp.com>
4189
4190 * libc/stdio/asprintf.c libc/stdio/clearerr.c,
4191 libc/stdio/fclose.c libc/stdio/fcloseall.c libc/stdio/fdopen.c,
4192 libc/stdio/feof.c libc/stdio/ferror.c libc/stdio/fflush.c,
4193 libc/stdio/fgetc.c libc/stdio/fgetpos.c libc/stdio/fgets.c,
4194 libc/stdio/fileno.c libc/stdio/findfp.c libc/stdio/fiprintf.c,
4195 libc/stdio/flags.c libc/stdio/fopen.c libc/stdio/fprintf.c,
4196 libc/stdio/fputc.c libc/stdio/fputs.c libc/stdio/fread.c,
4197 libc/stdio/freopen.c libc/stdio/fscanf.c libc/stdio/fseek.c,
4198 libc/stdio/fseeko.c libc/stdio/fsetpos.c libc/stdio/ftell.c,
4199 libc/stdio/ftello.c libc/stdio/fvwrite.c libc/stdio/fwalk.c,
4200 libc/stdio/fwrite.c libc/stdio/getc.c libc/stdio/getc_u.c,
4201 libc/stdio/getchar.c libc/stdio/getchar_u.c,
4202 libc/stdio/getdelim.c libc/stdio/getline.c libc/stdio/gets.c,
4203 libc/stdio/getw.c libc/stdio/iprintf.c libc/stdio/local.h,
4204 libc/stdio/makebuf.c libc/stdio/mktemp.c libc/stdio/perror.c,
4205 libc/stdio/printf.c libc/stdio/putc.c libc/stdio/putc_u.c,
4206 libc/stdio/putchar.c libc/stdio/putchar_u.c libc/stdio/puts.c,
4207 libc/stdio/putw.c libc/stdio/refill.c libc/stdio/remove.c,
4208 libc/stdio/rename.c libc/stdio/rewind.c libc/stdio/rget.c,
4209 libc/stdio/scanf.c libc/stdio/setbuf.c libc/stdio/setbuffer.c,
4210 libc/stdio/setlinebuf.c libc/stdio/setvbuf.c,
4211 libc/stdio/siprintf.c libc/stdio/snprintf.c,
4212 libc/stdio/sprintf.c libc/stdio/sscanf.c libc/stdio/stdio.c,
4213 libc/stdio/tmpfile.c libc/stdio/tmpnam.c libc/stdio/ungetc.c,
4214 libc/stdio/vasprintf.c libc/stdio/vfieeefp.h,
4215 libc/stdio/vfprintf.c libc/stdio/vfscanf.c,
4216 libc/stdio/vprintf.c libc/stdio/vscanf.c,
4217 libc/stdio/vsnprintf.c libc/stdio/vsprintf.c,
4218 libc/stdio/vsscanf.c libc/stdio/wbuf.c,
4219 libc/stdio/wsetup.c: Perform minor formatting changes. Move
4220 copyright notices to top of file, ensure that <_ansi.h> is
4221 included, be consistent with open parentheses, use _DEFUN macro,
4222 include "local.h" where needed, and remove various compiler
4223 warnings.
4224
4225 2004-04-21 J"orn Rennecke <joern.rennecke@superh.com>
4226
4227 * libc/stdio/vfscanf.c (NNZDIGITS): New define.
4228 (__svfscanf_r): In integer conversions, leave out leading zeroes
4229 which are not part of a base prefix.
4230 Keep track of width truncation to fit into buf, not counting left-out
4231 zeroes against width till the truncation has been compensated for.
4232
4233 2004-04-20 Corinna Vinschen <corinna@vinschen.de>
4234
4235 * libc/include/sys/unistd.h (ttyname_r): Add missing comma.
4236
4237 2004-04-20 Corinna Vinschen <corinna@vinschen.de>
4238
4239 * libc/include/sys/unistd.h (ttyname_r): Add declaration for Cygwin.
4240
4241 2004-04-10 Corinna Vinschen <corinna@vinschen.de>
4242
4243 * libc/include/sys/unistd.h (sync): Define void on Cygwin according
4244 to SUSv3.
4245
4246 2004-04-08 Artem B. Bityuckiy <abitytsky@softminecorp.com>
4247
4248 * libc/stdio/fclose.c (_fclose_r): New function.
4249 * libc/stdio/freopen.c (_freopen_r): Call _fclose_r.
4250 * libc/stdio/fcloseall.c (_fcloseall_r): Call _fwalk_reent.
4251 * libc/stdio64/freopen64.c (_freopen64_r): Use _fclose_r.
4252 * libc/include/stdio.h (_fclose_r): New prototype.
4253 * libc/stdio/fopen.c: Fix typo in comment.
4254
4255 2004-04-08 Jeff Johnston <jjohnstn@redhat.com>
4256
4257 * libc/stdio/fwalk.c (_fwalk_reent): New version of _fwalk
4258 to handle _r reentrant functions.
4259
4260 2004-04-08 Eric Christopher <echristo@redhat.com>
4261
4262 * libc/include/machine/setjmp.h: Fix endif locations.
4263
4264 2004-04-01 Artem B. Bityuckiy <abitytsky@softminecorp.com>
4265
4266 * libc/time/strptime.c: Add standard includes to avoid
4267 warning messages at compilation time.
4268
4269 2004-04-01 Jeff Johnston <jjohnstn@redhat.com>
4270
4271 * libc/stdio/vfscanf.c (__svfscanf_r): Add locking/unlocking
4272 of file.
4273
4274 2004-03-30 Jeff Johnston <jjohnstn@redhat.com>
4275
4276 * libc/machine/h8300/Makefile.am: Reformat slightly.
4277 * libc/machine/h8300/Makefile.in: Regenerate.
4278
4279 2004-03-30 Thomas Pfaff <tpfaff@gmx.net>
4280
4281 * libc/stdio/findfp.c (__fp_lock_all): Add call to
4282 __sfp_lock_acquire.
4283 (__fp_unlock_all): Add call to __sfp_lock_release.
4284
4285 2004-03-25 Thomas Pfaff <tpfaff@gmx.net>
4286
4287 * libc/stdio/fclose.c (fclose): Protect file pointer list when
4288 releasing a file.
4289 * libc/stdio/fcloseall.c (_fcloseall_r): Close all files via
4290 fwalk.
4291 * libc/stdio/fdopen.c (_fdopen_r): Add calls to
4292 _flockfile/_funlockfile.
4293 * libc/stdio/findfp.c: Move __sfp_lock. Change __sfp_lock type
4294 to recursive.
4295 Change __lock_acquire/__lock_release calls for __sfp_lock to
4296 __sfp_lock_acquire/__sfp_lock_release throughout.
4297 (std): Make sure that file lock is only initialized once.
4298 (__sfp): Move _file initialization. Initialize file lock.
4299 (__sfp_lock_acquire): New function.
4300 (__sfp_lock_release): Ditto.
4301 (__fp_lock_all): Remove __sfp_lock_acquire call.
4302 (__fp_unlock_all): Remove __sfp_lock_release call.
4303 * libc/stdio/fopen.c (_fopen_r): Protect file pointer list.
4304 Add calls to _flockfile/_funlockfile. Remove
4305 __lock_init_recursive call.
4306 * libc/stdio/freopen.c (_freopen_r): Protect file pointer list.
4307 * libc/stdio/fwalk.c (__fwalk): New static function.
4308 (_fwalk): Protect file pointer list. Use __fwalk to walk through
4309 file pointers.
4310 * libc/stdio/local.h: Add defines for
4311 __sfp_lock_acquire/__sfp_lock_release when
4312 single threaded. Add function prototypes otherwise.
4313 * libc/stdio64/fdopen64.c (_fdopen64_r): Add calls to
4314 _flockfile/_funlockfile.
4315 * libc/stdio/fopen64.c (_fopen64_r): Protect file pointer list.
4316 Add calls to _flockfile/_funlockfile. Remove
4317 __lock_init_recursive call.
4318 * libc/stdio/freopen64.c (_freopen64_r): Protect file pointer
4319 list.
4320
4321 2004-03-25 Jeff Johnston <jjohnstn@redhat.com>
4322
4323 * libc/sys/linux/sys/lock.h: Turn on __USE_GNU flag if not already
4324 defined. Change __LOCK_RECURSIVE_INIT to be __LOCK_INIT_RECURSIVE.
4325 * libc/sys/linux/dl/dl-support.c: Change __LOCK_RECURSIVE_INIT
4326 to be __LOCK_INIT_RECURSIVE.
4327
4328 2004-03-11 Kazu Hirata <kazu@cs.umass.edu>
4329
4330 * libc/sys/h8300hms/Makefile.am (lib_a_SOURCES): Replace
4331 _exit.c with _exit.S.
4332 * libc/sys/h8300hms/Makefile.in: Regenerate.
4333 * libc/sys/h8300hms/_exit.c: Remove.
4334 * libc/sys/h8300hms/_exit.S: New.
4335
4336 2004-03-09 Thomas Pfaff <tpfaff@gmx.net>
4337
4338 * libc/stdio/findfp.c (__sfp): Rename lock to __sfp_lock.
4339 Change __sfp_lock to static global.
4340 (__fp_lock): New static function.
4341 (__fp_unlock): Ditto.
4342 (__fp_lock_all): New function.
4343 (__fp_unlock_all): Ditto.
4344
4345 2004-02-10 Christopher Faylor <cgf@redhat.com>
4346
4347 * libm/mathfp/er_gamma.c (gamma): Add new non-reentrant function.
4348 * libm/mathfp/er_lgamma.c (lgamma): Ditto.
4349 * libm/mathfp/erf_gamma.c (gammaf): Ditto.
4350 * libm/mathfp/erf_lgamma.c (lgammaf): Ditto.
4351
4352 2004-02-09 Christopher Faylor <cgf@redhat.com>
4353
4354 * libc/include/time.h (TIMER_RELTIME): New define.
4355
4356 2004-02-09 Jeff Johnston <jjohnstn@redhat.com>
4357
4358 * libc/stdlib/Makefile.am: Add mallstatsr to LIBADD_OBJS.
4359 * libc/stdlib/Makefile.in: Regenerated.
4360
4361 2004-02-08 Christopher Faylor <cgf@redhat.com>
4362
4363 * libc/include/sys/features.h: Add _POSIX_TIMERS define for __CYGWIN__.
4364 * libc/include/sys/reent.h (__getreent): Protect against possibly being
4365 defined.
4366 * libc/include/sys/unistd.h (fdatasync): Don't define for __CYGWIN__.
4367
4368 2004-02-05 Paul Brook <paul@codesourcery.com>
4369
4370 * libc/include/machine/ieeefp.h[__arm__][__VFP_FP__]: Set
4371 IEEE_{BIG,LITTLE} based on __ARMEL__ flag.
4372
4373 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
4374
4375 * NEWS: Update with 1.12.0 info.
4376 * README: Ditto.
4377 * acinclude.m4: Change version number to 1.12.0.
4378 * aclocal.m4: Regenerated.
4379 * configure: Ditto.
4380 * doc/aclocal.m4: Ditto.
4381 * doc/configure: Ditto.
4382 * libc/*/aclocal.m4: Ditto.
4383 * libc/*/configure: Ditto.
4384 * libc/libc.texinfo: Ditto.
4385 * libm/*/aclocal.m4: Ditto.
4386 * libm/*/configure: Ditto.
4387 * libm/libm.texinfo: Ditto.
4388 * libc/sys/linux/shared.ld: Add VERS_1.12.
4389
4390 2004-02-02 Joel Sherrill <joel@oarcorp.com>
4391
4392 * configure.host: Add support for tic4x.
4393 * libc/include/machine/ieeefp.h: Ditto.
4394 * libc/include/machine/setjmp.h: Ditto.
4395 * libc/machine/tic4x/Makefile.am: New file.
4396 * libc/machine/tic4x/configure.in: Ditto.
4397 * libc/machine/tic4x/setjmp.S: Ditto.
4398 * libc/machine/tic4x/aclocal.m4: Generated.
4399 * libc/machine/tic4x/configure: Ditto.
4400 * libc/machine/tic4x/Makefile.in: Ditto.
4401
4402 2004-01-30 Jeff Johnston <jjohnstn@redhat.com>
4403
4404 * libc/stdio/fwalk.c (_fwalk.c): Don't traverse the
4405 file chain on the passed in reentrancy struct if it
4406 is _GLOBAL_REENT.
4407
4408 2004-01-30 Artem B. Bityuckiy <abitytsky@softminecorp.com>
4409 Jeff Johnston <jjohnstn@redhat.com>
4410
4411 * libc/iconv/iconv.tex: Updated with more information.
4412
4413 2004-01-30 Thomas Pfaff <tpfaff@gmx.net>
4414 Jeff Johnston <jjohnstn@redhat.com>
4415
4416 * libc/stdio/fwalk.c (_fwalk): Traverse the given reentrancy
4417 struct for std streams and traverse the global reeentrancy
4418 struct for all other streams.
4419
4420 2004-01-27 Jeff Johnston <jjohnstn@redhat.com>
4421
4422 * libc/stdlib/atexit.c: Protect global atexit list with a
4423 lock when newlib is multithreaded.
4424
4425 2004-01-27 Artem B. Bityuckiy <abitytsky@softminecorp.com>
4426
4427 * configure.in: Add support to generate iconv converter flags
4428 for newlib.h
4429 * newlib.hin: Add iconv converter flags.
4430 * configure: Regenerated.
4431 * libc/Makefile.in: Ditto.
4432 * libc/configure.in: Moved iconv converter parsing logic to
4433 top level newlib configure.in.
4434 * libc/configure: Regenerated.
4435 * libc/iconv/Makefile.in: Ditto.
4436 * libc/iconv/README.TODO
4437 * libc/iconv/charset.aliases: Remove wrong BE aliases for
4438 UCS2/UCS4/UTF8.
4439 * libc/iconv/ccs/Makefile.am: Remove C flag setting now that
4440 newlib.h can be used.
4441 * libc/iconv/ces/Makefile.am: Ditto.
4442 * libc/iconv/lib/Makefile.am: Ditto.
4443 * libc/iconv/ccs/Makefile.in: Regenerated.
4444 * libc/iconv/ces/Makefile.in: Ditto.
4445 * libc/iconv/lib/Makefile.in: Ditto.
4446 * libc/iconv/ccs/README.CCS.SOURCES: Updated.
4447 * libc/iconv/ccs/iconv_mktbl: Don't write junk strings to binaries.
4448 * libc/iconv/ccs/big5.c: Switch to use new underscored flags
4449 defined in newlib.h.
4450 * libc/iconv/ccs/cns11643_plane1.c: Ditto.
4451 * libc/iconv/ccs/cns11643_plane14.c: Ditto.
4452 * libc/iconv/ccs/cns11643_plane2.c: Ditto.
4453 * libc/iconv/ccs/cp775.c: Ditto.
4454 * libc/iconv/ccs/cp850.c: Ditto.
4455 * libc/iconv/ccs/cp852.c: Ditto.
4456 * libc/iconv/ccs/cp855.c: Ditto.
4457 * libc/iconv/ccs/cp866.c: Ditto.
4458 * libc/iconv/ccs/gb_2312_80.c: Ditto.
4459 * libc/iconv/ccs/iso_8859_1.c: Ditto.
4460 * libc/iconv/ccs/iso_8859_15.c: Ditto.
4461 * libc/iconv/ccs/iso_8859_2.c: Ditto.
4462 * libc/iconv/ccs/iso_8859_4.c: Ditto.
4463 * libc/iconv/ccs/iso_8859_5.c: Ditto.
4464 * libc/iconv/ccs/jis_x0201.c: Ditto.
4465 * libc/iconv/ccs/jis_x0208_1983.c: Ditto.
4466 * libc/iconv/ccs/jis_x0212_1990.c: Ditto.
4467 * libc/iconv/ccs/koi8_r.c: Ditto.
4468 * libc/iconv/ccs/koi8_u.c: Ditto.
4469 * libc/iconv/ccs/ksx1001.c: Ditto.
4470 * libc/iconv/ccs/shift_jis.c: Ditto.
4471 * libc/iconv/ccs/us_ascii.c: Ditto.
4472 * libc/iconv/ccs/binary/big5.cct: Newly generated.
4473 * libc/iconv/ccs/binary/cns11643_plane1.cct: Ditto.
4474 * libc/iconv/ccs/binary/cns11643_plane14.cct: Ditto.
4475 * libc/iconv/ccs/binary/cns11643_plane2.cct: Ditto.
4476 * libc/iconv/ccs/binary/cp775.cct: Ditto.
4477 * libc/iconv/ccs/binary/cp850.cct: Ditto.
4478 * libc/iconv/ccs/binary/cp852.cct: Ditto.
4479 * libc/iconv/ccs/binary/cp855.cct: Ditto.
4480 * libc/iconv/ccs/binary/cp866.cct: Ditto.
4481 * libc/iconv/ccs/binary/gb_2312_80.cct: Ditto.
4482 * libc/iconv/ccs/binary/iso_8859_1.cct: Ditto.
4483 * libc/iconv/ccs/binary/iso_8859_15.cct: Ditto.
4484 * libc/iconv/ccs/binary/iso_8859_2.cct: Ditto.
4485 * libc/iconv/ccs/binary/iso_8859_4.cct: Ditto.
4486 * libc/iconv/ccs/binary/iso_8859_5.cct: Ditto.
4487 * libc/iconv/ccs/binary/jis_x0201.cct: Ditto.
4488 * libc/iconv/ccs/binary/jis_x0208_1983.cct: Ditto.
4489 * libc/iconv/ccs/binary/jis_x0212_1990.cct: Ditto.
4490 * libc/iconv/ccs/binary/koi8_r.cct: Ditto.
4491 * libc/iconv/ccs/binary/koi8_u.cct: Ditto.
4492 * libc/iconv/ccs/binary/ksx1001.cct: Ditto.
4493 * libc/iconv/ccs/binary/shift_jis.cct: Ditto.
4494 * libc/iconv/ccs/binary/us_ascii.cct: Ditto.
4495 * libc/iconv/lib/bialiasesi.c: Sync with charset.aliases.
4496 * libc/iconv/ces/euc-jp.c: Use newlib.h macros.
4497 * libc/iconv/ces/euc-kr.c: Ditto.
4498 * libc/iconv/ces/euc-tw.c: Ditto.
4499 * libc/iconv/ces/gb2312.c: Ditto.
4500 * libc/iconv/ces/iso-10646-ucs-2.c: Ditto.
4501 * libc/iconv/ces/iso-10646-ucs-4.c: Ditto.
4502 * libc/iconv/ces/ucs-2-internal.c: Ditto.
4503 * libc/iconv/ces/ucs-4-internal.c: Ditto.
4504 * libc/iconv/ces/utf-16.c: Ditto.
4505 * libc/iconv/ces/utf-8.c: Ditto.
4506 * libc/iconv/lib/aliases.c: Ditto.
4507 * libc/iconv/lib/biccs.c: Ditto.
4508 * libc/iconv/lib/bices.c: Ditto.
4509 * libc/iconv/lib/ccs.c: Ditto.
4510 * libc/iconv/lib/ces.c: Ditto.
4511 * libc/iconv/lib/ces_euc.c: Ditto.
4512 * libc/iconv/lib/ces_iso2022.c: Ditto.
4513 * libc/iconv/lib/ces_table.c: Ditto.
4514 * libc/iconv/lib/converter.c: Ditto.
4515 * libc/iconv/lib/deps.h: Ditto.
4516 * libc/iconv/lib/endian.h: Ditto.
4517 * libc/iconv/lib/iconv.c: Ditto.
4518 * libc/iconv/lib/loaddata.c: Ditto.
4519 * libc/iconv/lib/local.h: Include newlib.h.
4520 * libc/argz/Makefile.in: Regenerated.
4521 * libc/ctype/Makefile.in: Ditto.
4522 * libc/errno/Makefile.in: Ditto.
4523 * libc/iconv/ccs/binary/Makefile.in: Ditto.
4524 * libc/locale/Makefile.in: Ditto.
4525 * libc/misc/Makefile.in: Ditto.
4526 * libc/posix/Makefile.in: Ditto.
4527 * libc/reent/Makefile.in: Ditto.
4528 * libc/search/Makefile.in: Ditto.
4529 * libc/signal/Makefile.in: Ditto.
4530 * libc/stdio/Makefile.in: Ditto.
4531 * libc/stdio64/Makefile.in: Ditto.
4532 * libc/stdlib/Makefile.in: Ditto.
4533 * libc/string/Makefile.in: Ditto.
4534 * libc/syscalls/Makefile.in: Ditto.
4535 * libc/time/Makefile.in: Ditto.
4536 * libc/unix/Makefile.in: Ditto.
4537 * testsuite/newlib.iconv/iconv.exp: New file.
4538 * testsuite/newlib.iconv/iconvjp.c: Ditto.
4539 * testsuite/newlib.iconv/iconvnm.c: Ditto.
4540 * testsuite/newlib.iconv/iconvru.c: Ditto.
4541
4542 2004-01-23 Artem B. Bityuckiy <abitytsky@softminecorp.com>
4543
4544 * acinclude.m4 (--enable-newlib-iconv): New configuration option.
4545 (--enable-newlib-builtin-converters): Ditto.
4546 * configure.in: Add code to set _ICONV_ENABLED flag.
4547 Set _MB_LEN_MAX to 1 if not mb enabled.
4548 * configure: Regenerated.
4549 * aclocal.m4: Ditto.
4550 * Makefile.in: Ditto.
4551 * newlib.hin: Add _ICONV_ENABLED flag.
4552 * libc/Makefile.am: Add support for iconv.
4553 * libc/configure.in: Ditto.
4554 * libc/Makefile.in: Regenerated.
4555 * libc/aclocal.m4: Ditto.
4556 * libc/configure: Ditto.
4557 * libc/libc.texinfo: Add iconv documentation.
4558 * libc/iconv/AUTHORS, libc/iconv/COPYING, libc/iconv/Makefile.am,
4559 libc/iconv/Makefile.in, libc/iconv/README.ORIGINAL,
4560 libc/iconv/README.TODO, libc/iconv/charset.aliases,
4561 libc/iconv/iconv.tex, libc/iconv/ccs/Makefile.am,
4562 libc/iconv/ccs/Makefile.in, libc/iconv/ccs/README.CCS.SOURCES,
4563 libc/iconv/ccs/big5.c, libc/iconv/ccs/cns11643_plane1.c,
4564 libc/iconv/ccs/cns11643_plane14.c, libc/iconv/ccs/cns11643_plane2.c,
4565 libc/iconv/ccs/cp775.c, libc/iconv/ccs/cp850.c,
4566 libc/iconv/ccs/cp852.c, libc/iconv/ccs/cp855.c,
4567 libc/iconv/ccs/cp866.c, libc/iconv/ccs/gb_2312_80.c,
4568 libc/iconv/ccs/iconv_mktbl, libc/iconv/ccs/iso_8859_1.c,
4569 libc/iconv/ccs/iso_8859_15.c, libc/iconv/ccs/iso_8859_2.c,
4570 libc/iconv/ccs/iso_8859_4.c, libc/iconv/ccs/iso_8859_5.c,
4571 libc/iconv/ccs/jis_x0201.c, libc/iconv/ccs/jis_x0208_1983.c,
4572 libc/iconv/ccs/jis_x0212_1990.c, libc/iconv/ccs/koi8_r.c,
4573 libc/iconv/ccs/koi8_u.c, libc/iconv/ccs/ksx1001.c,
4574 libc/iconv/ccs/shift_jis.c, libc/iconv/ccs/us_ascii.c,
4575 libc/iconv/ccs/binary/Makefile.am, libc/iconv/ccs/binary/Makefile.in,
4576 libc/iconv/ccs/binary/big5.cct,
4577 libc/iconv/ccs/binary/cns11643_plane1.cct,
4578 libc/iconv/ccs/binary/cns11643_plane14.cct,
4579 libc/iconv/ccs/binary/cns11643_plane2.cct,
4580 libc/iconv/ccs/binary/cp775.cct, libc/iconv/ccs/binary/cp850.cct,
4581 libc/iconv/ccs/binary/cp852.cct, libc/iconv/ccs/binary/cp855.cct,
4582 libc/iconv/ccs/binary/cp866.cct, libc/iconv/ccs/binary/gb_2312_80.cct,
4583 libc/iconv/ccs/binary/iso_8859_1.cct,
4584 libc/iconv/ccs/binary/iso_8859_15.cct,
4585 libc/iconv/ccs/binary/iso_8859_2.cct,
4586 libc/iconv/ccs/binary/iso_8859_4.cct,
4587 libc/iconv/ccs/binary/iso_8859_5.cct,
4588 libc/iconv/ccs/binary/jis_x0201.cct,
4589 libc/iconv/ccs/binary/jis_x0208_1983.cct,
4590 libc/iconv/ccs/binary/jis_x0212_1990.cct,
4591 libc/iconv/ccs/binary/koi8_r.cct, libc/iconv/ccs/binary/koi8_u.cct,
4592 libc/iconv/ccs/binary/ksx1001.cct,
4593 libc/iconv/ccs/binary/shift_jis.cct,
4594 libc/iconv/ccs/binary/us_ascii.cct,
4595 libc/iconv/ces/Makefile.am, libc/iconv/ces/Makefile.in,
4596 libc/iconv/ces/euc-jp.c, libc/iconv/ces/euc-kr.c,
4597 libc/iconv/ces/euc-tw.c, libc/iconv/ces/gb2312.c,
4598 libc/iconv/ces/iso-10646-ucs-2.c, libc/iconv/ces/iso-10646-ucs-4.c,
4599 libc/iconv/ces/ucs-2-internal.c, libc/iconv/ces/ucs-4-internal.c,
4600 libc/iconv/ces/utf-16.c, libc/iconv/ces/utf-8.c,
4601 libc/iconv/lib/Makefile.am, libc/iconv/lib/Makefile.in,
4602 libc/iconv/lib/aliases.c, libc/iconv/lib/bialiasesi.c,
4603 libc/iconv/lib/biccs.c, libc/iconv/lib/bices.c,
4604 libc/iconv/lib/ccs.c, libc/iconv/lib/ces.c,
4605 libc/iconv/lib/ces_euc.c, libc/iconv/lib/ces_iso2022.c,
4606 libc/iconv/lib/ces_table.c, libc/iconv/lib/converter.c,
4607 libc/iconv/lib/deps.h, libc/iconv/lib/endian.h,
4608 libc/iconv/lib/iconv.c, libc/iconv/lib/loaddata.c,
4609 libc/iconv/lib/local.h, libc/include/iconv.h: New files.
4610 * libc/sys/linux/include/iconv.h: Ditto.
4611 * libc/include/sys/_types.h (_iconv_t): Added.
4612 * doc/aclocal.m4: Regenerated.
4613 * doc/configure: Ditto.
4614 * doc/Makefile.in: Ditto.
4615 * iconvdata/Makefile.in: Ditto.
4616 * iconvdata/aclocal.m4: Ditto.
4617 * iconvdata/configure: Ditto.
4618 * libc/*aclocal.m4: Ditto.
4619 * libc/*Makefile.in: Ditto.
4620 * libc/*configure: Ditto.
4621 * libm/*aclocal.m4: Ditto.
4622 * libm/*Makefile.in: Ditto.
4623 * libm/*configure: Ditto.
4624
4625 2004-01-22 Thomas Pfaff <tpfaff@gmx.net>
4626
4627 * libc/stdio/findfp.c (__sfp): Protect global FILE pointer list
4628 by a lock when newlib is multithreaded.
4629
4630 2004-01-21 Jeff Johnston <jjohnstn@redhat.com>
4631
4632 * libc/stdlib/mbrtowc.c (_mbrtowc_r): Fix case where s is null
4633 pointer to match C99 spec.
4634 * libc/stdlib/mbsrtowcs.c (_mbsrtowc_r): Fix to ignore len when
4635 dst is NULL. Also fix to not alter src pointer when dst is NULL
4636 and call _mbrtowc_r instead of _mbtowc_r.
4637 * libc/stdlib/wcsrtombs.c (_wcsrtombs_r): Call _wcrtomb_r instead
4638 of _wctomb_r.
4639
4640 2004-01-19 Thomas Pfaff <tpfaff@gmx.net>
4641
4642 * libc/stdio/fclose.c (fclose): Release FILE as the last step.
4643 * libc/stdio/freopen.c (freopen): Ditto.
4644
4645 2004-01-16 Christopher Faylor <cgf@redhat.com>
4646
4647 * libc/stdio/vfprintf.c: Add sys/lock.h include.
4648
4649 2004-01-16 Thomas Pfaff <tpfaff@gmx.net>
4650
4651 * libc/stdio/findfp.c (__sfp): Remove unnecessary memset.
4652 * libc/stdio/vfprintf.c (__sbprintf): Ditto.
4653 Add calls to __lock_init_recursive and __lock_close_recursive
4654 instead.
4655
4656 2004-01-15 Thomas Pfaff <tpfaff@gmx.net>
4657
4658 * libc/stdio/fclose.c: Include sys/lock.h.
4659 (fclose): Destroy lock when file is closed.
4660 * libc/stdio/findfp.c (__sfp): Initialize file pointers _lock
4661 member.
4662 * libc/stdio/freopen.c: Include sys/lock.h.
4663 (_freopen_r): Destroy lock when file is closed.
4664 * libc/stdio/vfprintf.c (__sbprintf): Initialize file pointers
4665 _lock member.
4666
4667 2004-01-08 Joel Sherrill <joel@oarcorp.com>
4668
4669 * libc/ctype/iswctype.c, include/sys/reent.h, libc/stdlib/a64l.c:
4670 Remove warnings.
4671
4672 2004-01-08 Joel Sherrill <joel@oarcorp.com>
4673
4674 * libc/sys/rtems/sys/queue.h: New file.
4675 * libc/include/sys/signal.h: Reflect renumbering of signals to
4676 fit into 32-bit mask.
4677 * libc/include/sys/unistd.h: Add fdatasync() prototype.
4678 * libc/sys/rtems/crt0.c: Add more symbols which may be implicitly
4679 required. In particular, add the reentrant variants of libc calls.
4680 * libc/sys/rtems/sys/dirent.h: Add scandir() prototype.
4681
4682 2004-01-06 Mark Mitchell <mark@codesourcery.com>
4683
4684 * libc/sys/arm/syscalls.c (unistd.h): Include it.
4685 (remap_handle): Use STDIN_FILENO instead of __sfileno(stdin).
4686 Similarly for stdout and stderr.
4687
4688 2004-01-06 Jeff Johnston <jjohnstn@redhat.com>
4689
4690 * libc/libc.texinfo: Correct escape character for @ sign
4691 so file will be processed by make info. Update copyright years.
4692 * libm/libm.texinfo: Ditto.
4693
4694 2003-12-05 Jeff Johnston <jjohnstn@redhat.com>
4695
4696 * libc/include/sys/stat.h: No longer include stat-dj.h.
4697 * libc/include/sys/stat-dj.h: Removed.
4698
4699 2003-12-05 Jeff Johnston <jjohnstn@redhat.com>
4700
4701 * libc/include/wchar.h: Include <sys/reent.h>.
4702
4703 2003-12-05 Christopher Faylor <cgf@redhat.com>
4704
4705 * libc/stdlib/mbrlen.c: Change include order to prevent compiler errors
4706 when defining _mbrtowc.
4707 * libc/stdlib/mbsinit.c: Ditto.
4708 * libc/stdlib/mbsrtowcs.c: Ditto.
4709 * libc/stdlib/wcrtomb.c: Ditto.
4710 * libc/stdlib/wcsrtombs.c: Ditto.
4711 * libc/stdlib/wctob.c: Ditto.
4712
4713 2003-12-05 Christopher Faylor <cgf@redhat.com>
4714
4715 * libc/stdlib/mbrlen.c: Change include order to prevent compiler
4716 errors when defining _mbrtowc.
4717 * libc/stdlib/mbsinit.c: Ditto.
4718 * libc/stdlib/mbsrtowcs.c: Ditto.
4719
4720 2003-12-05 Christopher Faylor <cgf@redhat.com>
4721
4722 * libc/stdlib/mbrtowc.c: Change include order to prevent compiler
4723 errors when defining _mbrtowc.
4724
4725 2003-12-04 Artem B. Bityuckiy <abitytsky@softminecorp.com>
4726
4727 * libc/stdio/vfprintf.c (_VFPRINTF_R): Use _r versions
4728 of mb routines for %lc and %ls support.
4729 * libc/stdio/vfscanf.c (_svfscanf_r): Add %lc, %C,
4730 %ls, and %S support. Remove CYGNUS_NEC markers and
4731 code within.
4732
4733 2003-12-04 Jeff Johnston <jjohnstn@redhat.com>
4734
4735 * libc/include/wchar.h: Add prototypes for _mbrtowc_r,
4736 _wcrtomb_r, and _wcsrtombs_r.
4737
4738 2003-12-01 Corinna Vinschen <corinna@vinschen.de>
4739
4740 * libc/include/sys/fcntl.h: Don't define struct flock when on
4741 Cygwin. This is done in winsup/cygwin/include/cygwin/types.h now.
4742
4743 2003-11-28 Christopher Faylor <cgf@redhat.com>
4744
4745 * libc/include/sys/signal.h: Use system specific signal file when
4746 building on cygwin.
4747
4748 2003-11-27 Jeff Johnston <jjohnstn@redhat.com>
4749
4750 * libc/include/stdlib.h (_atoi_r): New prototype.
4751 * libc/stdlib/atoi.c (_atoi_r): New reentrant function.
4752
4753 2003-11-27 Jeff Johnston <jjohnstn@redhat.com>
4754
4755 * libc/include/stdlib.h (_atoll_r, _atol_r): New prototypes.
4756 * libc/stdlib/atol.c (_atol_r): New reentrant function.
4757 * libc/stdlib/atoll.c (_atoll_r): Ditto.
4758
4759 2003-11-27 Artem B. Bityuckiy <abitytsky@softminecorp.com>
4760 Jeff Johnston <jjohnstn@redhat.com>
4761
4762 * libc/include/stdlib.h (lldiv_t): New type.
4763 (atoll, llabs, lldiv): New prototypes.
4764 * libc/stdlib/Makefile.am: Add support for atoll, llabs, and lldiv.
4765 * libc/stdlib/stdlib.tex: Ditto.
4766 * libc/stdlib/Makefile.in: Regenerated.
4767 * libc/stdlib/atoll.c: New file.
4768 * libc/stdlib/llabs.c: Ditto.
4769 * libc/stdlib/lldiv.c: Ditto.
4770
4771 2003-11-26 Corinna Vinschen <corinna@vinschen.de>
4772
4773 * libc/include/fcntl.h: Declare syscalls only when building newlib.
4774 * libc/include/unistd.h: Ditto.
4775 * libc/include/stat.h: Ditto. Also declare struct stat64.
4776
4777 2003-11-24 Artem B. Bityuckiy <abitytsky@softminecorp.com>
4778
4779 * libc/stdio/vfprintf.c (_VFPRINTF_R): Fix check for 'C' format
4780 specifier to use ch instead of *fmt.
4781
4782 2003-11-21 Artem B. Bityuckiy <abitytsky@softminecorp.com>
4783
4784 * libc/stdio/vfprintf.c (_VFPRINTF_R, get_arg): Move mb-specific
4785 code within checks for MB_CAPABLE. For non-mb-capable platforms,
4786 use simple byte logic.
4787
4788 2003-11-21 Jeff Johnston <jjohnstn@redhat.com>
4789
4790 * libc/stdio/vfscanf.c (__svfscanf_r)[!_NO_LONGDBL]: Don't use
4791 _strtold routine for processing floats and doubles since it
4792 is not as fast as _strtod_r.
4793
4794 2003-11-20 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
4795
4796 * libc/machine/h8300/defines.h : Correct pointer register defines
4797 for normal mode.
4798 * libc/machine/h8300/memcpy.S : Use add/sub instead of adds/subs
4799 for normal mode.
4800 * libc/machine/h8300/reg_memcpy.S : Likewise.
4801 * libc/machine/h8300/reg_memset.S : Likewise.
4802 * libc/machine/h8300/strcmp.S : Likewise.
4803
4804 2003-11-19 Nicholas Wourms <nwourms@netscape.net>
4805
4806 * configure.host: Enable positional arguments for printf
4807 family for Cygwin.
4808 * libc/stdio/vfprintf.c (_VFPRINTF_R): Remove extraneous
4809 pointer reference for quad_ptr_t.
4810
4811 2003-11-19 Jeff Johnston <jjohnstn@redhat.com>
4812
4813 * libc/stdio/scanf.c: Don't include local.h more than once.
4814
4815 2003-11-18 Corinna Vinschen <corinna@vinschen.de>
4816
4817 * libc/include/sys/fcntl.h: Declare _open64.
4818 * libc/include/sys/stat.h: Declare _fstat64.
4819 * libc/include/sys/unistd.h: Declare _lseek64.
4820
4821 2003-11-17 Corinna Vinschen <corinna@vinschen.de>
4822
4823 * libc/include/stdlib.h (getprogname): Declare for Cygwin.
4824 (setprogname): Ditto.
4825
4826 2003-11-10 Jeff Johnston <jjohnstn@redhat.com>
4827
4828 * libc/machine/powerpc/ufix64toa.c (_ufix64to_r): Fix shifts
4829 to use (Ebits + 1) which accounts for the sign-bit.
4830
4831 2003-11-07 Jeff Johnston <jjohnstn@redhat.com>
4832
4833 * configure.host: Remove -DLOOSE_KERNEL_NAMES flag for linux
4834 x86 build.
4835 * iconvdata/Makefile.am: Make dependent on newlib's configure.host
4836 and set up default flags to pass to aclocal.
4837 * iconvdata/Makefile.in: Regenerated.
4838 * libc/sys/linux/Makefile.am: Add _ELIX_LEVEL_4 getlogin, getpwnam,
4839 and getpwuid routines.
4840 * libc/sys/linux/Makefile.in: Regenerated.
4841 * libc/sys/linux/getlogin.c: New stub file to allow x86-linux
4842 applications to link with newlib's shared libc library.
4843 * libc/sys/linux/getpwnam.c: Ditto.
4844 * libc/sys/linux/getpwuid.c: Ditto.
4845 * libc/sys/linux/sys/types.h: Include <features.h> and supply types
4846 that were formerly supplied by /usr/include/linux/types.h with
4847 kernel types.
4848 * testsuite/newlib.wctype/twctype.c: Fix testcase to properly
4849 test _ELIX_LEVEL macro.
4850
4851 2003-11-07 Jeff Johnston <jjohnstn@redhat.com>
4852
4853 * libc/stdio/vfprintf.c (_VFPRINTF_R): Fix typos that should be
4854 referring to _NO_LONGLONG macro.
4855
4856 2003-11-06 Jeff Johnston <jjohnstn@redhat.com>
4857
4858 * libc/sys/linux/linuxthreads/td_init.c: Replace function name
4859 in LOG() macro so this will compile on gcc 3.4 and up.
4860 * libc/sys/linux/linuxthreads/td_log.c: Ditto.
4861 * libc/sys/linux/linuxthreads/td_ta_clear_event.c: Ditto.
4862 * libc/sys/linux/linuxthreads/td_ta_delete.c: Ditto.
4863 * libc/sys/linux/linuxthreads/td_ta_enable_stats.c: Ditto.
4864 * libc/sys/linux/linuxthreads/td_ta_event_addr.c: Ditto.
4865 * libc/sys/linux/linuxthreads/td_ta_event_getmsg.c: Ditto.
4866 * libc/sys/linux/linuxthreads/td_ta_get_nthreads.c: Ditto.
4867 * libc/sys/linux/linuxthreads/td_ta_get_ph.c: Ditto.
4868 * libc/sys/linux/linuxthreads/td_ta_get_stats.c: Ditto.
4869 * libc/sys/linux/linuxthreads/td_ta_map_id2thr.c: Ditto.
4870 * libc/sys/linux/linuxthreads/td_ta_map_lwp2thr.c: Ditto.
4871 * libc/sys/linux/linuxthreads/td_ta_new.c: Ditto.
4872 * libc/sys/linux/linuxthreads/td_ta_reset_stats.c: Ditto.
4873 * libc/sys/linux/linuxthreads/td_ta_set_event.c: Ditto.
4874 * libc/sys/linux/linuxthreads/td_ta_setconcurrency.c: Ditto.
4875 * libc/sys/linux/linuxthreads/td_ta_thr_iter.c: Ditto.
4876 * libc/sys/linux/linuxthreads/td_ta_tsd_iter.c: Ditto.
4877 * libc/sys/linux/linuxthreads/td_thr_clear_event.c: Ditto.
4878 * libc/sys/linux/linuxthreads/td_thr_dbresume.c: Ditto.
4879 * libc/sys/linux/linuxthreads/td_thr_dbsuspend.c: Ditto.
4880 * libc/sys/linux/linuxthreads/td_thr_event_enable.c: Ditto.
4881 * libc/sys/linux/linuxthreads/td_thr_event_getmsg.c: Ditto.
4882 * libc/sys/linux/linuxthreads/td_thr_get_info.c: Ditto.
4883 * libc/sys/linux/linuxthreads/td_thr_getfpregs.c: Ditto.
4884 * libc/sys/linux/linuxthreads/td_thr_getgregs.c: Ditto.
4885 * libc/sys/linux/linuxthreads/td_thr_getxregs.c: Ditto.
4886 * libc/sys/linux/linuxthreads/td_thr_getxregsize.c: Ditto.
4887 * libc/sys/linux/linuxthreads/td_thr_set_event.c: Ditto.
4888 * libc/sys/linux/linuxthreads/td_thr_setfpregs.c: Ditto.
4889 * libc/sys/linux/linuxthreads/td_thr_setgregs.c: Ditto.
4890 * libc/sys/linux/linuxthreads/td_thr_setprio.c: Ditto.
4891 * libc/sys/linux/linuxthreads/td_thr_setsigpending.c: Ditto.
4892 * libc/sys/linux/linuxthreads/td_thr_setxregs.c: Ditto.
4893 * libc/sys/linux/linuxthreads/td_thr_sigsetmask.c: Ditto.
4894 * libc/sys/linux/linuxthreads/td_thr_tsd.c: Ditto.
4895 * libc/sys/linux/linuxthreads/td_thr_validate.c: Ditto.
4896
4897 2003-11-05 Jeff Johnston <jjohnstn@redhat.com>
4898 Artem B. Bityuckiy <abitytsky@softminecorp.com>
4899
4900 * libc/stdio/vfprintf.c (_VFPRINTF_R): Add support for
4901 %ls, %S, %lc, and %C format specifiers.
4902 (get_arg): Ditto.
4903 * libc/stdio/sprintf.c: Add documentation regarding new
4904 format specifiers added in vfprintf.c.
4905
4906 2003-11-05 Jeff Johnston <jjohnstn@redhat.com>
4907
4908 * libc/stdlib/wcsrtombs.c (_wcsrtombs_r): Numerous fixes
4909 to make code work as specified in standard.
4910
4911 2003-10-23 Jeff Johnston <jjohnstn@redhat.com>
4912
4913 * configure.in: Use absolute newlib basedir when forming
4914 CC_FOR_NEWLIB include options.
4915 * configure: Regenerated.
4916
4917 2003-10-23 Artem B. Bityuckiy <abitytsky@softminecorp.com>
4918
4919 * libc/string/wcsnlen.c: New file.
4920 * libc/include/wchar.h: Add wcsnlen prototype.
4921 * libc/string/Makefile.am: Add wcsnlen support.
4922 * libc/string/Makefile.in: Regenerated.
4923 * libc/string/wcstrings.tex: Add wcsnlen documentation.
4924
4925 2003-10-22 Richard Sandiford <rsandifo@redhat.com>
4926
4927 * libc/stdlib/exit.c (exit): Handle null _GLOBAL_REENT->_atexits.
4928
4929 2003-10-20 Bob Wilson <bob.wilson@acm.org>
4930
4931 * libc/locale/locale.c: Use double quotes in code.
4932 * libc/locale/locale.tex: Likewise.
4933 * libc/libc.texinfo: Hyphenate "floating-point".
4934 * libc/machine/necv70/necv70.tex: Likewise.
4935 * libc/stdio/sprintf.c: Likewise.
4936 * libc/stdio/sscanf.c: Likewise.
4937 * libc/stdlib/atof.c: Likewise.
4938 * libc/stdlib/ldtoa.c: Fix comment typo.
4939 * libc/stdlib/div.c: Use @ifnottex instead of @ifinfo.
4940 * libc/stdlib/ldiv.c: Likewise.
4941 * libm/common/s_expm1.c: Likewise.
4942 * libm/common/s_ilogb.c: Hyphenate "floating-point". Use "nonzero".
4943 * libm/common/s_infinity: Hyphenate "double- and single-precision".
4944 * libm/common/s_nan.c: Likewise. Also correct the FUNCTION summary.
4945 * libm/common/s_nextafter.c: Fix typo. Hyphenate "double-precision"
4946 and "floating-point".
4947 * libm/common/s_scalbn.c: Correct the FUNCTION summary.
4948 * libm/math/e_pow.c: Fix comment typo.
4949 * libm/math/math.tex: Hyphenate "single-precision" and "floating-point".
4950 * libm/math/s_asinh.c: Use @ifnottex instead of @ifinfo.
4951 * libm/math/s_atan.c: Likewise.
4952 * libm/math/s_frexp.c: Likewise. Also use "nonzero".
4953 * libm/math/s_isnan.c: Hyphenate "single-precision" and
4954 "floating-point". Use "nonzero".
4955 * libm/math/s_ldexp.c: Use @ifnottex instead of @ifinfo.
4956 * libm/math/w_acos.c: Likewise.
4957 * libm/math/w_acosh.c: Likewise.
4958 * libm/math/w_asin.c: Likewise.
4959 * libm/math/w_atan2.c: Likewise.
4960 * libm/math/w_atanh.c: Likewise.
4961 * libm/math/w_cosh.c: Likewise.
4962 * libm/math/w_exp.c: Likewise.
4963 * libm/math/w_exp2.c: Likewise. Add missing @end and missing @tex
4964 version of 2^x in the description.
4965 * libm/math/w_fmod.c: Use @ifnottex instead of @ifinfo.
4966 * libm/math/w_gamma.c: Likewise.
4967 * libm/math/w_hypot.c: Likewise.
4968 * libm/math/w_j0.c: Likewise.
4969 * libm/math/w_sinh.c: Likewise.
4970 * libm/math/w_pow.c: Replace "exp1.0nt" with "exponent".
4971 * libm/mathfp/mathfp.tex: Hyphenate "single-precision" and
4972 "floating-point".
4973 * libm/mathfp/e_acosh.c: Use @ifnottex instead of @ifinfo.
4974 * libm/mathfp/e_atanh.c: Likewise.
4975 * libm/mathfp/e_hypot.c: Likewise.
4976 * libm/mathfp/er_lgamma.c: Likewise.
4977 * libm/mathfp/s_acos.c: Likewise.
4978 * libm/mathfp/s_asine.c: Likewise.
4979 * libm/mathfp/s_asinh.c: Likewise.
4980 * libm/mathfp/s_atan.c: Likewise.
4981 * libm/mathfp/s_atan2.c: Likewise.
4982 * libm/mathfp/s_atangent.c: Likewise.
4983 * libm/mathfp/s_cosh.c: Likewise.
4984 * libm/mathfp/s_exp.c: Likewise.
4985 * libm/mathfp/s_fmod.c: Likewise.
4986 * libm/mathfp/s_frexp.c: Likewise. Also use "nonzero".
4987 * libm/mathfp/s_isnan.c: Hyphenate "single-precision" and
4988 "floating-point". Use "nonzero".
4989 * libm/math/s_pow.c: Replace "exp1.0nt" with "exponent".
4990 * libm/mathfp/s_ldexp.c: Use @ifnottex instead of @ifinfo.
4991 * libm/mathfp/s_sineh.c: Likewise.
4992 * libm/mathfp/w_jn.c: Likewise.
4993
4994 2003-10-15 Alexandre Oliva <aoliva@redhat.com>
4995
4996 * Makefile.am: Add $(MAKE) comments to multido and multiclean
4997 lines, to enable parallel make.
4998 * Makefile.in: Rebuilt.
4999
5000 2003-10-14 Christopher Faylor <cgf@redhat.com>
5001
5002 * libc/time/clock.c: Clarify documentation of return value when no
5003 measurement is available.
5004
5005 2003-09-29 Ian Lance Taylor <ian@wasabisystems.com>
5006
5007 * libm/configure.in: Check libm_machine_dir, not machine_dir.
5008 * libm/configure: Regenerate.
5009 * libm/Makefile.in: Ditto.
5010
5011 2003-09-29 J"orn Rennecke <joern.rennecke@superh.com>
5012
5013 * libc/machine/sh/strncpy.S: New file.
5014 * libc/machine/sh/Makefile.am: Add entry & rule for new file.
5015 * libc/machine/sh/Makefile.in: Regenerate.
5016
5017 2003-09-11 James E Wilson <wilson@specifixinc.com>
5018
5019 * MAINTAINERS: Update my e-mail address.
5020
5021 2003-09-10 Corinna Vinschen <corinna@vinschen.de>
5022
5023 * libc/include/sys/unistd.h: Declare function daemon for Cygwin.
5024
5025 2003-09-09 Jeff Johnston <jjohnstn@redhat.com>
5026
5027 * libc/machine/powerpc/fix64.h: Fix typo for _simdldcheck
5028 prototype.
5029 * libc/machine/powerpc/simdldtoa.c: Remove prototype for
5030 _simdldcheck(). Also add unsigned cast for index variable in
5031 for loop using sizeof operators.
5032 * libc/machine/powerpc/strtoufix32.c: Remove unused variable.
5033 * libc/machine/powerpc/strtosfix64.c: Fix call to _simdldcheck.
5034 * libc/machine/powerpc/strtoufix64.c (_strtoufix64_r): Ditto
5035 plus fix shift calculation for determining if there is a
5036 carry from word2.
5037
5038 2003-09-09 Corinna Vinschen <corinna@vinschen.de>
5039
5040 * libc/include/grp.h: Don't define setgrfile, group_from_gid and
5041 setgroupent for Cygwin.
5042
5043 2003-09-05 Jeff Johnston <jjohnstn@redhat.com>
5044
5045 * libc/stdlib/exit.c (exit): Setting of struct _atexit ptr p
5046 is different for _REENT_SMALL than when using regular reent
5047 struct.
5048
5049 2003-09-05 Ben Elliston <bje@wasabisystems.com>
5050
5051 * libc/ctype/wctype.c (_DEFUN): Remove empty default case, as
5052 modern versions of GCC issue a warning.
5053
5054 * libc/machine/xscale/memcmp.c (memcmp): Strip trailing whitespace
5055 after continuation characters that induces a warning from modern
5056 versions of GCC.
5057
5058 2003-09-04 Ben Elliston <bje@wasabisystems.com>
5059
5060 * libc/stdlib/mstats.c[_ELIX_LEVEL]: Fix guards. #ifndef FOO ||
5061 FOO >= 2 is invalid; use #if !defined (FOO) || FOO >= 2 instead.
5062
5063 2003-09-02 Thomas Pfaff <tpfaff@gmx.net>
5064
5065 * libc/stdlib/atexit.c: Rename _REENT to _GLOBAL_REENT throughout.
5066 * libc/stdlib/exit.c : Ditto.
5067 * libc/stdlib/on_exit.c: Ditto.
5068
5069 2003-08-27 Corinna Vinschen <corinna@vinschen.de>
5070
5071 * libc/include/reent.h: Define stat64 as __stat64 when
5072 compiling newlib for Cygwin.
5073
5074 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
5075
5076 * libc/include/sys/stat.h[__CYGWIN__]: Only define stat64 as
5077 __stat64 when compiling newlib.
5078
5079 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
5080
5081 * libc/include/stdio.h: Allow the io64 function prototypes for
5082 Cygwin when compiling newlib.
5083 * libc/include/sys/stat.h[__CYGWIN__]: Define stat64 as __stat64
5084 to expose the Cygwin struct __stat64 type.
5085 * libc/stdio64/fseeko64.c: Use _fstat64_r and pass a struct stat64
5086 pointer.
5087 * libc/stdio64/tmpfile64.c(_tmpfile64_r): Call _fopen64_r.
5088
5089 2003-08-23 Christopher Faylor <cgf@redhat.com>
5090
5091 * libc/stdio64/fseeko64.c (fseeko64_r): Rename second fseeko64_r
5092 definition to fseeko64.
5093
5094 2003-08-22 Jeff Johnston <jjohnstn@redhat.com>
5095
5096 * libc/include/sys/reent.h: Add _GLOBAL_REENT macro.
5097 * libc/stdio: Globally remove/replace all references to fp->_data.
5098 Replace with _REENT or _GLOBAL_REENT where appropriate.
5099 * libc/stdio/asprintf.c: Ditto.
5100 * libc/stdio/fclose.c: Ditto.
5101 * libc/stdio/fvwrite.c: Ditto.
5102 * libc/stdio/makebuf.c: Ditto.
5103 * libc/stdio/refill.c: Ditto.
5104 * libc/stdio/local.h: Ditto.
5105 * libc/stdio/setvbuf.c: Ditto.
5106 * libc/stdio/sscanf.c: Ditto.
5107 * libc/stdio/stdio.c: Ditto.
5108 * libc/stdio/ungetc.c: Ditto.
5109 * libc/stdio/vfscanf.c: Ditto.
5110 * libc/stdio/vsscanf.c: Ditto.
5111 * libc/stdio/fopen.c: Ditto. Also use _fseek_r in _fopen_r.
5112 * libc/stdio/vasprintf.c: Ditto. Also call _vfprintf_r directly.
5113 * libc/stdio/vsnprintf.c: Ditto.
5114 * libc/stdio/vsprintf.c: Ditto.
5115 * libc/stdio/fcloseall.c(fcloseall): Use _GLOBAL_REENT macro
5116 instead of _REENT to walk file list.
5117 * libc/stdio/fflush.c: Ditto.
5118 * libc/stdio/fgetpos.c: Add reentrant version and have regular
5119 version call reentrant version with _REENT argument.
5120 * libc/stdio/fsetpos.c: Ditto.
5121 * libc/stdio/fseek.c: Ditto.
5122 * libc/stdio/fseeko.c: Ditto.
5123 * libc/stdio/ftell.c: Ditto.
5124 * libc/stdio/ftello.c: Ditto.
5125 * libc/stdio/freopen.c: Ditto.
5126 * libc/stdio/findfp.c: Use _GLOBAL_REENT pointer when adding
5127 new files to chain. Also use _GLOBAL_REENT pointer for
5128 cleaning up.
5129 * libc/stdio/fiprintf.c: Reformatted to minimize duplicate code.
5130 * libc/stdio/siprintf.c: Ditto.
5131 * libc/stdio/iprintf.c: Ditto.
5132 * libc/stdio/fprintf.c: Ditto.
5133 * libc/stdio/printf.c: Ditto.
5134 * libc/stdio/snprintf.c: Call _vfprintf_r directly.
5135 * libc/stdio/sprintf.c: Ditto.
5136 * libc/stdio/vprintf.c: Ditto. Also add _REENT_ONLY check.
5137 * libc/stdio/rewind.c: Call _fseek_r directly.
5138 * libc/stdio/tmpfile.c: Call _fopen_r and _remove_r directly.
5139 * libc/stdio/vfprintf.c (_VFPRINTF_R): Change _r routines to use
5140 data pointer.
5141 (get_arg): Add extra struct _reent pointer argument.
5142 * libc/stdio64/fgetpos64.c: Add _r versions, remove any reference
5143 to fp->_data.
5144 * libc/stdio64/fopen64.c: Ditto.
5145 * libc/stdio64/freopen64.c: Ditto.
5146 * libc/stdio64/fsetpos64.c: Ditto.
5147 * libc/stdio64/ftello64.c: Ditto.
5148 * libc/stdio64/local64.h: Ditto.
5149 * libc/stdio64/stdio64.c: Ditto.
5150 * libc/stdio64/fseeko64.c: Ditto plus use _fstat_r instead of
5151 _fstat64_r for the meantime.
5152
5153 2003-08-19 Jeff Johnston <jjohnstn@redhat.com>
5154
5155 * libc/stdlib/mallocr.c (mALLOc, rEALLOc, mEMEALIGn): Enhance
5156 overflow detection.
5157
5158 2003-08-13 Aldy Hernandez <aldyh@redhat.com>
5159
5160 * libc/machine/powerpc/machine/stdlib.h: Wrap SPE functions in
5161 extern "C".
5162
5163 2003-08-13 Jeff Johnston <jjohnstn@redhat.com>
5164
5165 * libc/include/math.h: Add prototypes for __signbitf and
5166 __signbitd.
5167
5168 2003-07-31 Jeff Johnston <jjohnstn@redhat.com>
5169
5170 * libc/ctype/iswalpha.c: Fix calls to __jp2uc to pass the
5171 correct type of conversion when dealing with EUCJP or SJIS.
5172 * libc/ctype/iswblank.c: Ditto.
5173 * libc/ctype/iswcntrl.c: Ditto.
5174 * libc/ctype/iswprint.c: Ditto.
5175 * libc/ctype/iswpunct.c: Ditto.
5176 * libc/ctype/iswspace.c: Ditto.
5177 * libc/ctype/towlower.c: Ditto.
5178 * libc/ctype/towupper.c: Ditto.
5179
5180 2003-07-31 Nick Clifton <nickc@redhat.com>
5181
5182 * libc/sys/sysnecv850/crt0.S (_start): Allocate 4 slots on stack
5183 before calling main, in case it saves its argument registers.
5184 Remove reference to deleted v850ea port.
5185 * configure.host: Remove reference to deleted v850ea port.
5186 Do not use -mv850 when building for v850e target. This
5187 prevents the ctbp system register from being initialised.
5188
5189 2003-07-29 Honda Hiroki <hhonda@ipflex.com>
5190
5191 * libc/stdio/vfprintf.c: Set output size to 1 when
5192 we have %f format with precision 0 and # flag not specified.
5193
5194 2003-07-29 Alexandre Oliva <aoliva@redhat.com>
5195
5196 * libc/machine/mn10300/setjmp.S: Never emit both .am33 and
5197 .am33_2.
5198
5199 2003-07-25 Christopher Faylor <cgf@redhat.com>
5200
5201 * libc/stdio64/fdopen64.c: Include sys/lock.h.
5202
5203 2003-07-25 Christopher Faylor <cgf@redhat.com>
5204
5205 * configure.host: Find cygwin include directory, when appropriate.
5206
5207 2003-07-24 Christopher Faylor <cgf@redhat.com>
5208
5209 * libc/stdio64/fdopen64.c: New file.
5210 * libc/stdio64/Makefile.am (LIB_OBJS): Add fdopen64.o
5211 * libc/stdio64/Makefile.in: Regenerate.
5212 * libc/include/stdio.h (fdopen64): Define.
5213 * libc/include/stdio.h (_fdopen64_r): Ditto.
5214
5215 2003-07-10 Alexandre Oliva <aoliva@redhat.com>
5216
5217 2000-04-27 Alexandre Oliva <aoliva@cygnus.com>
5218 * libc/include/machine/setjmp.h (_JBLEN, AM33/2.0): Set to 26.
5219 * libc/machine/mn10300/setjmp.S (setjmp, longjmp): Save and
5220 restore callee-saved FP registers.
5221
5222 2003-07-10 J"orn Rennecke <joern.rennecke@superh.com>
5223
5224 * libc/include/sys/unistd.h (ftruncate, truncate): Also declare
5225 for __sh__.
5226 * libc/sys/sh/Makefile.am (lib_a_SOURCES): Add ftruncate.c and
5227 truncate.c.
5228 * libc/sys/sh/Makefile.in: Regenerate.
5229 * libc/sys/sh/sys/syscall.h: (SYS_truncate, SYS_ftruncate): Define.
5230 * libc/sys/sh/ftruncate.c: New file.
5231 * libc/sys/sh/truncate.c: Likewise.
5232
5233 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
5234
5235 * libc/include/math.h (nan, nanf): Update prototype to C99.
5236 * libm/common/s_nan.c (nan): Likewise.
5237 * libm/common/s_nanf.c (nanf, nan): Likewise.
5238 * libc/sys/linux/cmath/math_private.h (nan, nanf): Likewise.
5239
5240 2003-07-07 Jeff Johnston <jjohnstn@redhat.com>
5241
5242 * libc/include/stdbool.h: Removed as this is defined by gcc.
5243
5244 2003-07-03 Shaun Jackman <sjackman@pathwayconnect.com>
5245
5246 * libc/include/stdbool.h: New header file defined by C99.
5247
5248 2003-07-02 Jeff Johnston <jjohnstn@redhat.com>
5249
5250 * libc/include/sys/types.h (int8_t): Make signed.
5251
5252 2003-07-02 Jeff Johnston <jjohnstn@redhat.com>
5253
5254 * libc/sys/linux/include/mqueue.h: Add include of <sys/fcntl.h>.
5255
5256 2003-06-27 Jose Goncalves <jose.goncalves@inov.pt>
5257
5258 * libc/sys/linux/mq_open.c (mq_open): Only set created flag
5259 on if we actually created the shared memory file exclusively.
5260
5261 2003-06-27 Joe Vornehm <joev@mitre.org>
5262
5263 * libm/common/s_fpclassify.c (__fpclassifyf): Fix
5264 comparisons to account for unsigned internal value w.
5265
5266 2003-06-26 Jeff Johnston <jjohnstn@redhat.com>
5267
5268 * libc/sys/linux/mq_open.c (mq_open): Must allocate rdbuf and
5269 wrbuf for a non-creating open.
5270
5271 2003-06-24 Kazu Hirata <kazu@cs.umass.edu>
5272
5273 * libc/machine/h8300/setarch.h: New.
5274 * libc/machine/h8300/memcpy.S: Use it.
5275 * libc/machine/h8300/memset.S: Likewise.
5276 * libc/machine/h8300/reg_memcpy.S: Likewise.
5277 * libc/machine/h8300/reg_memset.S: Likewise.
5278 * libc/machine/h8300/setjmp.S: Likewise.
5279 * libc/machine/h8300/strcmp.S: Likewise.
5280
5281 2003-06-24 Richard Sandiford <rsandifo@redhat.com>
5282
5283 * libc/sys/h8300hms/crt0.S (_start): Fix register sizes in call
5284 to atexit().
5285
5286 2003-06-20 Jeff Johnston <jjohnstn@redhat.com>
5287
5288 * configure.host (iq2000): Add tabs.
5289
5290 2003-06-20 Jeff Johnston <jjohnstn@redhat.com>
5291
5292 * libc/include/sys/reent.h (_REENT_INIT_PTR): Fix macros
5293 to handle latest on_exit change.
5294 * libc/sys/linux/Makefile.am: Remove special compilation
5295 for malloc.c and mcheck.c.
5296 * libc/sys/linux/Makefile.in: Regenerated.
5297 * libc/sys/linux/mntent.c: Add definition of _LIBC flag
5298 after including <features.h>.
5299 * libc/sys/linux/mcheck.c: Ditto.
5300 * libc/sys/linux/malloc.c: Ditto plus define _GNU_SOURCE
5301 for <features.h>.
5302 * libc/sys/linux/intl/Makefile.am: Remove -D_LIBC and
5303 add -DNOT_IN_libc to C flags.
5304 * libc/sys/linux/intl/Makefile.in: Regenerated.
5305 * libc/sys/linux/intl/config.h: Add definition of _LIBC.
5306 * libc/sys/linux/linuxthreads/semaphore.h: Include
5307 <bits/pthreadtypes.h>.
5308 * libc/sys/linux/sys/dirent.h: Define _LIBC and NOT_IN_libc after
5309 including <features.h>.
5310 * libc/sys/linux/sys/lock.h: Ditto.
5311
5312 2003-06-11 Nick Clifton <nickc@redhat.com>
5313
5314 * libc/reent/reent.c (reclaim_reent): Fix typo in code to free
5315 _on_exit_args_ptr.
5316
5317 2003-06-10 Stan Cox <scox@redhat.com>
5318 Anthony Green <green@redhat.com>
5319
5320 * configure.host: Add iq2000 support.
5321 * newlib/libc/include/machine/ieeefp.h: Ditto.
5322 * newlib/libc/include/machine/setjmp.h: Ditto.
5323 * libc/machine/iq2000, libc/machine/iq2000/setjmp.S,
5324 libc/machine/iq2000/aclocal.m4, libc/machine/iq2000/configure,
5325 libc/machine/iq2000/configure.in, libc/machine/iq2000/Makefile.am,
5326 libc/machine/iq2000/Makefile.in: New files.
5327
5328 2003-06-10 Richard Sandiford <rsandifo@redhat.com>
5329
5330 * libc/sys/h8300hms/setarch.h: New file.
5331 * libc/sys/h8300hms/close.S, libc/sys/h8300hms/fstat.S,
5332 libc/sys/h8300hms/lseek.S, libc/sys/h8300hms/open.S,
5333 libc/sys/h8300hms/read.S, libc/sys/h8300hms/stat.S,
5334 libc/sys/h8300hms/write.S, libc/sys/h8300hms/crt0.S: Use it.
5335
5336 2003-06-06 Jeff Johnston <jjohnstn@redhat.com>
5337
5338 * libc/argz/argz_add.c: Change to use _DEFUN macro for function
5339 definition.
5340 * libc/argz/argz_add_sep.c: Ditto.
5341 * libc/argz/argz_append.c libc/argz/argz_count.c: Ditto.
5342 * libc/argz/argz_create.c libc/argz/argz_create_sep.c: Ditto.
5343 * libc/argz/argz_delete.c libc/argz/argz_extract.c: Ditto.
5344 * libc/argz/argz_insert.c libc/argz/argz_next.c: Ditto.
5345 * libc/argz/argz_replace.c libc/argz/argz_stringify.c: Ditto.
5346 * libc/argz/envz_add.c libc/argz/envz_entry.c: Ditto.
5347 * libc/argz/envz_get.c libc/argz/envz_merge.c: Ditto.
5348 * libc/argz/envz_remove.c libc/argz/envz_strip.c: Ditto.
5349 * libc/locale/nl_langinfo.c libc/misc/ffs.c: Ditto.
5350 * libc/posix/closedir.c libc/posix/creat.c: Ditto.
5351 * libc/posix/execl.c libc/posix/execle.c: Ditto.
5352 * libc/posix/execlp.c libc/posix/execve.c: Ditto.
5353 * libc/posix/isatty.c libc/posix/opendir.c: Ditto.
5354 * libc/posix/popen.c libc/posix/readdir.c: Ditto.
5355 * libc/posix/readdir_r.c libc/posix/rewinddir.c: Ditto.
5356 * libc/posix/scandir.c libc/posix/seekdir.c: Ditto.
5357 * libc/posix/telldir.c libc/search/hcreate.c: Ditto.
5358 * libc/search/tdelete.c libc/search/tdestroy.c: Ditto.
5359 * libc/search/tfind.c libc/search/tsearch.c: Ditto.
5360 * libc/search/twalk.c libc/signal/signal.c: Ditto.
5361
5362 2003-06-05 Nick Clifton <nickc@redhat.com>
5363
5364 * libc/include/sys/reent.h (struct _on_exit_args): New
5365 structure containing fields used by the on_exit() function.
5366 (struct _atexit): Include struct _on_exit_args. For
5367 _REENT_SMALL do his via a pointer that is initialised when
5368 needed.
5369 * libc/reent/reent.c (_reclaim_reent): Free the _on_exit_args
5370 structure, if one has been allocated.
5371 * libc/stdlib/atexit.c (atexit): Update indirection to
5372 _fntypes field.
5373 * libc/stdlib/on_exit.c (on_exit): Indirect via the
5374 _on_exit_args structure. For _REENT_SMALL, allocate a
5375 structure if one does not exist.
5376 * libc/stdlib/exit.c (exit): Indirect via the _on_exit_args
5377 structure.
5378
5379 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
5380
5381 * libc/sys/linux/net/Makefile.am: Remove extraneous markers.
5382 * libc/sys/linux/net/Makefile.in: Regenerated.
5383
5384 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
5385
5386 * libc/reent/execr.c: Use _DEFUN macro for function declaration.
5387 * libc/reent/fcntlr.c: Ditto.
5388 * libc/reent/fstat64r.c: Ditto.
5389 * libc/reent/linkr.c: Ditto.
5390 * libc/reent/lseek64r.c: Ditto.
5391 * libc/reent/lseekr.c: Ditto.
5392 * libc/reent/openr.c: Ditto.
5393 * libc/reent/readr.c: Ditto.
5394 * libc/reent/reent.c: Ditto.
5395 * libc/reent/sbrkr.c: Ditto.
5396 * libc/reent/signalr.c: Ditto.
5397 * libc/reent/signgam.c: Ditto.
5398 * libc/reent/statr.c: Ditto.
5399 * libc/reent/timer.c: Ditto.
5400 * libc/reent/unlinkr.c: Ditto.
5401 * libc/reent/writer.c: Ditto.
5402 * libc/syscalls/sysclose.c: Ditto.
5403 * libc/syscalls/sysexecve.c: Ditto.
5404 * libc/syscalls/sysfcntl.c: Ditto.
5405 * libc/syscalls/sysfork.c: Ditto.
5406 * libc/syscalls/sysfstat.c: Ditto.
5407 * libc/syscalls/sysgetpid.c: Ditto.
5408 * libc/syscalls/sysgettod.c: Ditto.
5409 * libc/syscalls/syskill.c: Ditto.
5410 * libc/syscalls/syslink.c: Ditto.
5411 * libc/syscalls/syslseek.c: Ditto.
5412 * libc/syscalls/sysopen.c: Ditto.
5413 * libc/syscalls/sysread.c: Ditto.
5414 * libc/syscalls/syssbrk.c: Ditto.
5415 * libc/syscalls/sysstat.c: Ditto.
5416 * libc/syscalls/systimes.c: Ditto.
5417 * libc/syscalls/sysunlink.c: Ditto.
5418 * libc/syscalls/syswait.c: Ditto.
5419 * libc/syscalls/syswrite.c: Ditto.
5420
5421 2003-06-03 Till Straumann <strauman@SLAC.Stanford.EDU>
5422
5423 * libc/time/tzset_r.c: Change local variables that are
5424 set via sscanf using the %h format specifier to be unsigned short
5425 instead of int.
5426
5427 2003-05-30 Kelley Cook <kelleycook@wideopenwest.com>
5428
5429 * configure.host: Allow i[34567]86 variant.
5430 * configure.in: Likewise.
5431 * README: Likewise to the docs.
5432 * configure: Regenerated.
5433 * Makefile.in: Ditto.
5434
5435 2003-05-28 Jeff Johnston <jjohnstn@redhat.com>
5436 Tom Fitzsimmons <fitzsim@redhat.com>
5437
5438 * configure.in: Add iconvdata support for x86 linux.
5439 * configure: Regenerated.
5440 * libc/sys/linux/Makefile.am: Add EL/IX level 3 network, dynamic
5441 library, iconv, and linuxthreads support.
5442 * libc/sys/linux/configure.in: Ditto.
5443 * libc/sys/linux/Makefile.in: Regenerated.
5444 * libc/sys/linux/configure: Ditto.
5445 * iconvdata/EUC-JP.irreversible: New file.
5446 * iconvdata/Makefile.am: Ditto.
5447 * iconvdata/Makefile.in: Ditto.
5448 * iconvdata/SJIS.irreversible: Ditto.
5449 * iconvdata/aclocal.m4: Ditto.
5450 * iconvdata/configure: Ditto.
5451 * iconvdata/configure.in: Ditto.
5452 * iconvdata/dummy.c: Ditto.
5453 * iconvdata/euc-jp.c: Ditto.
5454 * iconvdata/gconv-modules: Ditto.
5455 * iconvdata/jis0201.c: Ditto.
5456 * iconvdata/jis0201.h: Ditto.
5457 * iconvdata/jis0208.c: Ditto.
5458 * iconvdata/jis0208.h: Ditto.
5459 * iconvdata/jis0212.c: Ditto.
5460 * iconvdata/jis0212.h: Ditto.
5461 * iconvdata/sjis.c: Ditto.
5462 * libc/include/errno.h: Protect definition of error_t.
5463 * libc/sys/linux/gethostid.c: New file.
5464 * libc/sys/linux/sethostid.c: Ditto.
5465 * libc/sys/linux/dl/Makefile.am: Ditto.
5466 * libc/sys/linux/dl/Makefile.in: Ditto.
5467 * libc/sys/linux/dl/abi-tag.h: Ditto.
5468 * libc/sys/linux/dl/atomicity.h: Ditto.
5469 * libc/sys/linux/dl/dl-addr.c: Ditto.
5470 * libc/sys/linux/dl/dl-cache.c: Ditto.
5471 * libc/sys/linux/dl/dl-cache.h: Ditto.
5472 * libc/sys/linux/dl/dl-close.c: Ditto.
5473 * libc/sys/linux/dl/dl-debug.c: Ditto.
5474 * libc/sys/linux/dl/dl-deps.c: Ditto.
5475 * libc/sys/linux/dl/dl-dst.h: Ditto.
5476 * libc/sys/linux/dl/dl-error.c: Ditto.
5477 * libc/sys/linux/dl/dl-fini.c: Ditto.
5478 * libc/sys/linux/dl/dl-init.c: Ditto.
5479 * libc/sys/linux/dl/dl-iteratephdr.c: Ditto.
5480 * libc/sys/linux/dl/dl-libc.c: Ditto.
5481 * libc/sys/linux/dl/dl-librecon.h: Ditto.
5482 * libc/sys/linux/dl/dl-load.c: Ditto.
5483 * libc/sys/linux/dl/dl-lookup.c: Ditto.
5484 * libc/sys/linux/dl/dl-lookupcfg.h: Ditto.
5485 * libc/sys/linux/dl/dl-minimal.c: Ditto.
5486 * libc/sys/linux/dl/dl-misc.c: Ditto.
5487 * libc/sys/linux/dl/dl-object.c: Ditto.
5488 * libc/sys/linux/dl/dl-open.c: Ditto.
5489 * libc/sys/linux/dl/dl-osinfo.h: Ditto.
5490 * libc/sys/linux/dl/dl-profile.c: Ditto.
5491 * libc/sys/linux/dl/dl-profstub.c: Ditto.
5492 * libc/sys/linux/dl/dl-reloc.c: Ditto.
5493 * libc/sys/linux/dl/dl-runtime.c: Ditto.
5494 * libc/sys/linux/dl/dl-support.c: Ditto.
5495 * libc/sys/linux/dl/dl-sym.c: Ditto.
5496 * libc/sys/linux/dl/dl-version.c: Ditto.
5497 * libc/sys/linux/dl/dlfcn.h: Ditto.
5498 * libc/sys/linux/dl/do-lookup.h: Ditto.
5499 * libc/sys/linux/dl/do-rel.h: Ditto.
5500 * libc/sys/linux/dl/dynamic-link.h: Ditto.
5501 * libc/sys/linux/dl/kernel-features.h: Ditto.
5502 * libc/sys/linux/dl/ldsodefs.h: Ditto.
5503 * libc/sys/linux/dl/libintl.h: Ditto.
5504 * libc/sys/linux/dl/trusted-dirs.h: Ditto.
5505 * libc/sys/linux/dl/unsecvars.h: Ditto.
5506 * libc/sys/linux/iconv/Makefile.am: Ditto.
5507 * libc/sys/linux/iconv/Makefile.in: Ditto.
5508 * libc/sys/linux/iconv/categories.def: Ditto.
5509 * libc/sys/linux/iconv/dummy-repertoire.c: Ditto.
5510 * libc/sys/linux/iconv/gconv.c: Ditto.
5511 * libc/sys/linux/iconv/gconv_builtin.c: Ditto.
5512 * libc/sys/linux/iconv/gconv_builtin.h: Ditto.
5513 * libc/sys/linux/iconv/gconv_cache.c: Ditto.
5514 * libc/sys/linux/iconv/gconv_charset.h: Ditto.
5515 * libc/sys/linux/iconv/gconv_close.c: Ditto.
5516 * libc/sys/linux/iconv/gconv_conf.c: Ditto.
5517 * libc/sys/linux/iconv/gconv_db.c: Ditto.
5518 * libc/sys/linux/iconv/gconv_dl.c: Ditto.
5519 * libc/sys/linux/iconv/gconv_int.h: Ditto.
5520 * libc/sys/linux/iconv/gconv_open.c: Ditto.
5521 * libc/sys/linux/iconv/gconv_simple.c: Ditto.
5522 * libc/sys/linux/iconv/gconv_trans.c: Ditto.
5523 * libc/sys/linux/iconv/hash-string.h: Ditto.
5524 * libc/sys/linux/iconv/iconv.c: Ditto.
5525 * libc/sys/linux/iconv/iconv.h: Ditto.
5526 * libc/sys/linux/iconv/iconv_charmap.c: Ditto.
5527 * libc/sys/linux/iconv/iconv_close.c: Ditto.
5528 * libc/sys/linux/iconv/iconv_open.c: Ditto.
5529 * libc/sys/linux/iconv/iconvconfig.c: Ditto.
5530 * libc/sys/linux/iconv/iconvconfig.h: Ditto.
5531 * libc/sys/linux/iconv/loadinfo.h: Ditto.
5532 * libc/sys/linux/iconv/localeinfo.h: Ditto.
5533 * libc/sys/linux/iconv/loop.c: Ditto.
5534 * libc/sys/linux/iconv/skeleton.c: Ditto.
5535 * libc/sys/linux/iconv/strtab.c: Ditto.
5536 * libc/sys/linux/include/dl-hash.h: Ditto.
5537 * libc/sys/linux/include/dlfcn.h: Ditto.
5538 * libc/sys/linux/include/fnmatch.h: Ditto.
5539 * libc/sys/linux/include/gconv.h: Ditto.
5540 * libc/sys/linux/include/glob.h: Ditto.
5541 * libc/sys/linux/include/hesiod.h: Ditto.
5542 * libc/sys/linux/include/ifaddrs.h: Ditto.
5543 * libc/sys/linux/include/libc_private.h: Ditto.
5544 * libc/sys/linux/include/link.h: Ditto.
5545 * libc/sys/linux/include/namespace.h: Ditto.
5546 * libc/sys/linux/include/netconfig.h: Ditto.
5547 * libc/sys/linux/include/netdb.h: Ditto.
5548 * libc/sys/linux/include/nsswitch.h: Ditto.
5549 * libc/sys/linux/include/regex.h: Ditto.
5550 * libc/sys/linux/include/resolv.h: Ditto.
5551 * libc/sys/linux/include/rune.h: Ditto.
5552 * libc/sys/linux/include/runetype.h: Ditto.
5553 * libc/sys/linux/include/semaphore.h: Ditto.
5554 * libc/sys/linux/include/setlocale.h: Ditto.
5555 * libc/sys/linux/include/un-namespace.h: Ditto.
5556 * libc/sys/linux/include/wordexp.h: Ditto.
5557 * libc/sys/linux/include/arpa/ftp.h: Ditto.
5558 * libc/sys/linux/include/arpa/inet.h: Ditto.
5559 * libc/sys/linux/include/arpa/nameser.h: Ditto.
5560 * libc/sys/linux/include/arpa/nameser_compat.h: Ditto.
5561 * libc/sys/linux/include/arpa/telnet.h: Ditto.
5562 * libc/sys/linux/include/arpa/tftp.h: Ditto.
5563 * libc/sys/linux/include/net/bpf.h: Ditto.
5564 * libc/sys/linux/include/net/bpf_compat.h: Ditto.
5565 * libc/sys/linux/include/net/bpfdesc.h: Ditto.
5566 * libc/sys/linux/include/net/bridge.h: Ditto.
5567 * libc/sys/linux/include/net/ethernet.h: Ditto.
5568 * libc/sys/linux/include/net/fddi.h: Ditto.
5569 * libc/sys/linux/include/net/if.h: Ditto.
5570 * libc/sys/linux/include/net/if_arc.h: Ditto.
5571 * libc/sys/linux/include/net/if_arp.h: Ditto.
5572 * libc/sys/linux/include/net/if_atm.h: Ditto.
5573 * libc/sys/linux/include/net/if_dl.h: Ditto.
5574 * libc/sys/linux/include/net/if_gif.h: Ditto.
5575 * libc/sys/linux/include/net/if_ieee80211.h: Ditto.
5576 * libc/sys/linux/include/net/if_llc.h: Ditto.
5577 * libc/sys/linux/include/net/if_media.h: Ditto.
5578 * libc/sys/linux/include/net/if_mib.h: Ditto.
5579 * libc/sys/linux/include/net/if_ppp.h: Ditto.
5580 * libc/sys/linux/include/net/if_pppvar.h: Ditto.
5581 * libc/sys/linux/include/net/if_slvar.h: Ditto.
5582 * libc/sys/linux/include/net/if_sppp.h: Ditto.
5583 * libc/sys/linux/include/net/if_stf.h: Ditto.
5584 * libc/sys/linux/include/net/if_tap.h: Ditto.
5585 * libc/sys/linux/include/net/if_tapvar.h: Ditto.
5586 * libc/sys/linux/include/net/if_tun.h: Ditto.
5587 * libc/sys/linux/include/net/if_tunvar.h: Ditto.
5588 * libc/sys/linux/include/net/if_types.h: Ditto.
5589 * libc/sys/linux/include/net/if_var.h: Ditto.
5590 * libc/sys/linux/include/net/if_vlan_var.h: Ditto.
5591 * libc/sys/linux/include/net/intrq.h: Ditto.
5592 * libc/sys/linux/include/net/iso88025.h: Ditto.
5593 * libc/sys/linux/include/net/net_osdep.h: Ditto.
5594 * libc/sys/linux/include/net/netisr.h: Ditto.
5595 * libc/sys/linux/include/net/pfil.h: Ditto.
5596 * libc/sys/linux/include/net/pfkeyv2.h: Ditto.
5597 * libc/sys/linux/include/net/ppp_comp.h: Ditto.
5598 * libc/sys/linux/include/net/ppp_defs.h: Ditto.
5599 * libc/sys/linux/include/net/radix.h: Ditto.
5600 * libc/sys/linux/include/net/raw_cb.h: Ditto.
5601 * libc/sys/linux/include/net/route.h: Ditto.
5602 * libc/sys/linux/include/net/slcompress.h: Ditto.
5603 * libc/sys/linux/include/net/slip.h: Ditto.
5604 * libc/sys/linux/include/net/zlib.h: Ditto.
5605 * libc/sys/linux/include/netinet/icmp6.h: Ditto.
5606 * libc/sys/linux/include/netinet/icmp_var.h: Ditto.
5607 * libc/sys/linux/include/netinet/if_atm.h: Ditto.
5608 * libc/sys/linux/include/netinet/if_ether.h: Ditto.
5609 * libc/sys/linux/include/netinet/igmp.h: Ditto.
5610 * libc/sys/linux/include/netinet/igmp_var.h: Ditto.
5611 * libc/sys/linux/include/netinet/in.h: Ditto.
5612 * libc/sys/linux/include/netinet/in_gif.h: Ditto.
5613 * libc/sys/linux/include/netinet/in_pcb.h: Ditto.
5614 * libc/sys/linux/include/netinet/in_systm.h: Ditto.
5615 * libc/sys/linux/include/netinet/in_var.h: Ditto.
5616 * libc/sys/linux/include/netinet/ip.h: Ditto.
5617 * libc/sys/linux/include/netinet/ip6.h: Ditto.
5618 * libc/sys/linux/include/netinet/ip_dummynet.h: Ditto.
5619 * libc/sys/linux/include/netinet/ip_ecn.h: Ditto.
5620 * libc/sys/linux/include/netinet/ip_encap.h: Ditto.
5621 * libc/sys/linux/include/netinet/ip_flow.h: Ditto.
5622 * libc/sys/linux/include/netinet/ip_fw.h: Ditto.
5623 * libc/sys/linux/include/netinet/ip_icmp.h: Ditto.
5624 * libc/sys/linux/include/netinet/ip_mroute.h: Ditto.
5625 * libc/sys/linux/include/netinet/ip_var.h: Ditto.
5626 * libc/sys/linux/include/netinet/ipprotosw.h: Ditto.
5627 * libc/sys/linux/include/netinet/tcp.h: Ditto.
5628 * libc/sys/linux/include/netinet/tcp_debug.h: Ditto.
5629 * libc/sys/linux/include/netinet/tcp_fsm.h: Ditto.
5630 * libc/sys/linux/include/netinet/tcp_seq.h: Ditto.
5631 * libc/sys/linux/include/netinet/tcp_timer.h: Ditto.
5632 * libc/sys/linux/include/netinet/tcp_var.h: Ditto.
5633 * libc/sys/linux/include/netinet/tcpip.h: Ditto.
5634 * libc/sys/linux/include/netinet/udp.h: Ditto.
5635 * libc/sys/linux/include/netinet/udp_var.h: Ditto.
5636 * libc/sys/linux/include/netinet6/ah.h: Ditto.
5637 * libc/sys/linux/include/netinet6/ah6.h: Ditto.
5638 * libc/sys/linux/include/netinet6/esp.h: Ditto.
5639 * libc/sys/linux/include/netinet6/esp6.h: Ditto.
5640 * libc/sys/linux/include/netinet6/esp_rijndael.h: Ditto.
5641 * libc/sys/linux/include/netinet6/icmp6.h: Ditto.
5642 * libc/sys/linux/include/netinet6/in6.h: Ditto.
5643 * libc/sys/linux/include/netinet6/in6_gif.h: Ditto.
5644 * libc/sys/linux/include/netinet6/in6_ifattach.h: Ditto.
5645 * libc/sys/linux/include/netinet6/in6_pcb.h: Ditto.
5646 * libc/sys/linux/include/netinet6/in6_prefix.h: Ditto.
5647 * libc/sys/linux/include/netinet6/in6_var.h: Ditto.
5648 * libc/sys/linux/include/netinet6/ip6.h: Ditto.
5649 * libc/sys/linux/include/netinet6/ip6_ecn.h: Ditto.
5650 * libc/sys/linux/include/netinet6/ip6_fw.h: Ditto.
5651 * libc/sys/linux/include/netinet6/ip6_mroute.h: Ditto.
5652 * libc/sys/linux/include/netinet6/ip6_var.h: Ditto.
5653 * libc/sys/linux/include/netinet6/ip6protosw.h: Ditto.
5654 * libc/sys/linux/include/netinet6/ipcomp.h: Ditto.
5655 * libc/sys/linux/include/netinet6/ipcomp6.h: Ditto.
5656 * libc/sys/linux/include/netinet6/ipsec.h: Ditto.
5657 * libc/sys/linux/include/netinet6/ipsec6.h: Ditto.
5658 * libc/sys/linux/include/netinet6/mld6_var.h: Ditto.
5659 * libc/sys/linux/include/netinet6/nd6.h: Ditto.
5660 * libc/sys/linux/include/netinet6/pim6.h: Ditto.
5661 * libc/sys/linux/include/netinet6/pim6_var.h: Ditto.
5662 * libc/sys/linux/include/netinet6/raw_ip6.h: Ditto.
5663 * libc/sys/linux/include/netinet6/scope6_var.h: Ditto.
5664 * libc/sys/linux/include/netinet6/tcp6_var.h: Ditto.
5665 * libc/sys/linux/include/netinet6/udp6_var.h: Ditto.
5666 * libc/sys/linux/include/netns/idp.h: Ditto.
5667 * libc/sys/linux/include/netns/idp_var.h: Ditto.
5668 * libc/sys/linux/include/netns/ns.h: Ditto.
5669 * libc/sys/linux/include/netns/ns_error.h: Ditto.
5670 * libc/sys/linux/include/netns/ns_if.h: Ditto.
5671 * libc/sys/linux/include/netns/ns_pcb.h: Ditto.
5672 * libc/sys/linux/include/netns/sp.h: Ditto.
5673 * libc/sys/linux/include/netns/spidp.h: Ditto.
5674 * libc/sys/linux/include/netns/spp_debug.h: Ditto.
5675 * libc/sys/linux/include/netns/spp_timer.h: Ditto.
5676 * libc/sys/linux/include/netns/spp_var.h: Ditto.
5677 * libc/sys/linux/include/rpc/Makefile: Ditto.
5678 * libc/sys/linux/include/rpc/auth.h: Ditto.
5679 * libc/sys/linux/include/rpc/auth_des.h: Ditto.
5680 * libc/sys/linux/include/rpc/auth_kerb.h: Ditto.
5681 * libc/sys/linux/include/rpc/auth_unix.h: Ditto.
5682 * libc/sys/linux/include/rpc/clnt.h: Ditto.
5683 * libc/sys/linux/include/rpc/clnt_soc.h: Ditto.
5684 * libc/sys/linux/include/rpc/clnt_stat.h: Ditto.
5685 * libc/sys/linux/include/rpc/des.h: Ditto.
5686 * libc/sys/linux/include/rpc/des_crypt.h: Ditto.
5687 * libc/sys/linux/include/rpc/nettype.h: Ditto.
5688 * libc/sys/linux/include/rpc/pmap_clnt.h: Ditto.
5689 * libc/sys/linux/include/rpc/pmap_prot.h: Ditto.
5690 * libc/sys/linux/include/rpc/pmap_rmt.h: Ditto.
5691 * libc/sys/linux/include/rpc/raw.h: Ditto.
5692 * libc/sys/linux/include/rpc/rpc.h: Ditto.
5693 * libc/sys/linux/include/rpc/rpc_com.h: Ditto.
5694 * libc/sys/linux/include/rpc/rpc_msg.h: Ditto.
5695 * libc/sys/linux/include/rpc/rpcb_clnt.h: Ditto.
5696 * libc/sys/linux/include/rpc/rpcb_prot.h: Ditto.
5697 * libc/sys/linux/include/rpc/rpcb_prot.x: Ditto.
5698 * libc/sys/linux/include/rpc/rpcent.h: Ditto.
5699 * libc/sys/linux/include/rpc/svc.h: Ditto.
5700 * libc/sys/linux/include/rpc/svc_auth.h: Ditto.
5701 * libc/sys/linux/include/rpc/svc_dg.h: Ditto.
5702 * libc/sys/linux/include/rpc/svc_soc.h: Ditto.
5703 * libc/sys/linux/include/rpc/types.h: Ditto.
5704 * libc/sys/linux/include/rpc/xdr.h: Ditto.
5705 * libc/sys/linux/intl/Makefile.am: Ditto.
5706 * libc/sys/linux/intl/Makefile.in: Ditto.
5707 * libc/sys/linux/intl/bindtextdom.c: Ditto.
5708 * libc/sys/linux/intl/catgets.c: Ditto.
5709 * libc/sys/linux/intl/catgetsinfo.h: Ditto.
5710 * libc/sys/linux/intl/config.h: Ditto.
5711 * libc/sys/linux/intl/dcgettext.c: Ditto.
5712 * libc/sys/linux/intl/dcigettext.c: Ditto.
5713 * libc/sys/linux/intl/dcngettext.c: Ditto.
5714 * libc/sys/linux/intl/dgettext.c: Ditto.
5715 * libc/sys/linux/intl/dngettext.c: Ditto.
5716 * libc/sys/linux/intl/explodename.c: Ditto.
5717 * libc/sys/linux/intl/finddomain.c: Ditto.
5718 * libc/sys/linux/intl/gettext.c: Ditto.
5719 * libc/sys/linux/intl/gettext.h: Ditto.
5720 * libc/sys/linux/intl/gettextP.h: Ditto.
5721 * libc/sys/linux/intl/hash-string.h: Ditto.
5722 * libc/sys/linux/intl/l10nflist.c: Ditto.
5723 * libc/sys/linux/intl/loadinfo.h: Ditto.
5724 * libc/sys/linux/intl/loadmsgcat.c: Ditto.
5725 * libc/sys/linux/intl/locale.alias: Ditto.
5726 * libc/sys/linux/intl/localealias.c: Ditto.
5727 * libc/sys/linux/intl/ngettext.c: Ditto.
5728 * libc/sys/linux/intl/open_catalog.c: Ditto.
5729 * libc/sys/linux/intl/plural.c: Ditto.
5730 * libc/sys/linux/intl/plural.y: Ditto.
5731 * libc/sys/linux/intl/stpcpy.c: Ditto.
5732 * libc/sys/linux/intl/textdomain.c: Ditto.
5733 * libc/sys/linux/linuxthreads/LICENSE: Ditto.
5734 * libc/sys/linux/linuxthreads/Makefile.am: Ditto.
5735 * libc/sys/linux/linuxthreads/Makefile.in: Ditto.
5736 * libc/sys/linux/linuxthreads/aclocal.m4: Ditto.
5737 * libc/sys/linux/linuxthreads/attr.c: Ditto.
5738 * libc/sys/linux/linuxthreads/barrier.c: Ditto.
5739 * libc/sys/linux/linuxthreads/bp-sym.h: Ditto.
5740 * libc/sys/linux/linuxthreads/cancel.c: Ditto.
5741 * libc/sys/linux/linuxthreads/condvar.c: Ditto.
5742 * libc/sys/linux/linuxthreads/config.h: Ditto.
5743 * libc/sys/linux/linuxthreads/configure: Ditto.
5744 * libc/sys/linux/linuxthreads/configure.in: Ditto.
5745 * libc/sys/linux/linuxthreads/defs.awk: Ditto.
5746 * libc/sys/linux/linuxthreads/ecmutex.c: Ditto.
5747 * libc/sys/linux/linuxthreads/events.c: Ditto.
5748 * libc/sys/linux/linuxthreads/getcpuclockid.c: Ditto.
5749 * libc/sys/linux/linuxthreads/getreent.c: Ditto.
5750 * libc/sys/linux/linuxthreads/internals.h: Ditto.
5751 * libc/sys/linux/linuxthreads/join.c: Ditto.
5752 * libc/sys/linux/linuxthreads/joinrace.c: Ditto.
5753 * libc/sys/linux/linuxthreads/kernel-features.h: Ditto.
5754 * libc/sys/linux/linuxthreads/libc-internal.h: Ditto.
5755 * libc/sys/linux/linuxthreads/libc-symbols.h: Ditto.
5756 * libc/sys/linux/linuxthreads/linuxthreads.texi: Ditto.
5757 * libc/sys/linux/linuxthreads/lockfile.c: Ditto.
5758 * libc/sys/linux/linuxthreads/manager.c: Ditto.
5759 * libc/sys/linux/linuxthreads/mq_notify.c: Ditto.
5760 * libc/sys/linux/linuxthreads/mutex.c: Ditto.
5761 * libc/sys/linux/linuxthreads/no-tsd.c: Ditto.
5762 * libc/sys/linux/linuxthreads/oldsemaphore.c: Ditto.
5763 * libc/sys/linux/linuxthreads/posix-timer.h: Ditto.
5764 * libc/sys/linux/linuxthreads/prio.c: Ditto.
5765 * libc/sys/linux/linuxthreads/proc_service.h: Ditto.
5766 * libc/sys/linux/linuxthreads/pt-machine.c: Ditto.
5767 * libc/sys/linux/linuxthreads/ptclock_gettime.c: Ditto.
5768 * libc/sys/linux/linuxthreads/ptclock_settime.c: Ditto.
5769 * libc/sys/linux/linuxthreads/ptfork.c: Ditto.
5770 * libc/sys/linux/linuxthreads/pthread.c: Ditto.
5771 * libc/sys/linux/linuxthreads/ptlongjmp.c: Ditto.
5772 * libc/sys/linux/linuxthreads/queue.h: Ditto.
5773 * libc/sys/linux/linuxthreads/reent.c: Ditto.
5774 * libc/sys/linux/linuxthreads/reqsyscalls.c: Ditto.
5775 * libc/sys/linux/linuxthreads/restart.h: Ditto.
5776 * libc/sys/linux/linuxthreads/rwlock.c: Ditto.
5777 * libc/sys/linux/linuxthreads/semaphore.c: Ditto.
5778 * libc/sys/linux/linuxthreads/semaphore.h: Ditto.
5779 * libc/sys/linux/linuxthreads/shlib-compat.h: Ditto.
5780 * libc/sys/linux/linuxthreads/signals.c: Ditto.
5781 * libc/sys/linux/linuxthreads/specific.c: Ditto.
5782 * libc/sys/linux/linuxthreads/spinlock.c: Ditto.
5783 * libc/sys/linux/linuxthreads/spinlock.h: Ditto.
5784 * libc/sys/linux/linuxthreads/sysctl.c: Ditto.
5785 * libc/sys/linux/linuxthreads/td_init.c: Ditto.
5786 * libc/sys/linux/linuxthreads/td_log.c: Ditto.
5787 * libc/sys/linux/linuxthreads/td_symbol_list.c: Ditto.
5788 * libc/sys/linux/linuxthreads/td_ta_clear_event.c: Ditto.
5789 * libc/sys/linux/linuxthreads/td_ta_delete.c: Ditto.
5790 * libc/sys/linux/linuxthreads/td_ta_enable_stats.c: Ditto.
5791 * libc/sys/linux/linuxthreads/td_ta_event_addr.c: Ditto.
5792 * libc/sys/linux/linuxthreads/td_ta_event_getmsg.c: Ditto.
5793 * libc/sys/linux/linuxthreads/td_ta_get_nthreads.c: Ditto.
5794 * libc/sys/linux/linuxthreads/td_ta_get_ph.c: Ditto.
5795 * libc/sys/linux/linuxthreads/td_ta_get_stats.c: Ditto.
5796 * libc/sys/linux/linuxthreads/td_ta_map_id2thr.c: Ditto.
5797 * libc/sys/linux/linuxthreads/td_ta_map_lwp2thr.c: Ditto.
5798 * libc/sys/linux/linuxthreads/td_ta_new.c: Ditto.
5799 * libc/sys/linux/linuxthreads/td_ta_reset_stats.c: Ditto.
5800 * libc/sys/linux/linuxthreads/td_ta_set_event.c: Ditto.
5801 * libc/sys/linux/linuxthreads/td_ta_setconcurrency.c: Ditto.
5802 * libc/sys/linux/linuxthreads/td_ta_thr_iter.c: Ditto.
5803 * libc/sys/linux/linuxthreads/td_ta_tsd_iter.c: Ditto.
5804 * libc/sys/linux/linuxthreads/td_thr_clear_event.c: Ditto.
5805 * libc/sys/linux/linuxthreads/td_thr_dbresume.c: Ditto.
5806 * libc/sys/linux/linuxthreads/td_thr_dbsuspend.c: Ditto.
5807 * libc/sys/linux/linuxthreads/td_thr_event_enable.c: Ditto.
5808 * libc/sys/linux/linuxthreads/td_thr_event_getmsg.c: Ditto.
5809 * libc/sys/linux/linuxthreads/td_thr_get_info.c: Ditto.
5810 * libc/sys/linux/linuxthreads/td_thr_getfpregs.c: Ditto.
5811 * libc/sys/linux/linuxthreads/td_thr_getgregs.c: Ditto.
5812 * libc/sys/linux/linuxthreads/td_thr_getxregs.c: Ditto.
5813 * libc/sys/linux/linuxthreads/td_thr_getxregsize.c: Ditto.
5814 * libc/sys/linux/linuxthreads/td_thr_set_event.c: Ditto.
5815 * libc/sys/linux/linuxthreads/td_thr_setfpregs.c: Ditto.
5816 * libc/sys/linux/linuxthreads/td_thr_setgregs.c: Ditto.
5817 * libc/sys/linux/linuxthreads/td_thr_setprio.c: Ditto.
5818 * libc/sys/linux/linuxthreads/td_thr_setsigpending.c: Ditto.
5819 * libc/sys/linux/linuxthreads/td_thr_setxregs.c: Ditto.
5820 * libc/sys/linux/linuxthreads/td_thr_sigsetmask.c: Ditto.
5821 * libc/sys/linux/linuxthreads/td_thr_tsd.c: Ditto.
5822 * libc/sys/linux/linuxthreads/td_thr_validate.c: Ditto.
5823 * libc/sys/linux/linuxthreads/testrtsig.h: Ditto.
5824 * libc/sys/linux/linuxthreads/thread_db.h: Ditto.
5825 * libc/sys/linux/linuxthreads/thread_dbP.h: Ditto.
5826 * libc/sys/linux/linuxthreads/timer_create.c: Ditto.
5827 * libc/sys/linux/linuxthreads/timer_delete.c: Ditto.
5828 * libc/sys/linux/linuxthreads/timer_getoverr.c: Ditto.
5829 * libc/sys/linux/linuxthreads/timer_gettime.c: Ditto.
5830 * libc/sys/linux/linuxthreads/timer_routines.c: Ditto.
5831 * libc/sys/linux/linuxthreads/timer_settime.c: Ditto.
5832 * libc/sys/linux/linuxthreads/tst-cancel.c: Ditto.
5833 * libc/sys/linux/linuxthreads/tst-context.c: Ditto.
5834 * libc/sys/linux/linuxthreads/tststack.c: Ditto.
5835 * libc/sys/linux/linuxthreads/unload.c: Ditto.
5836 * libc/sys/linux/linuxthreads/weaks.c: Ditto.
5837 * libc/sys/linux/linuxthreads/wrapsyscall.c: Ditto.
5838 * libc/sys/linux/linuxthreads/bits/initspin.h: Ditto.
5839 * libc/sys/linux/linuxthreads/bits/libc-lock.h: Ditto.
5840 * libc/sys/linux/linuxthreads/bits/libc-tsd.h: Ditto.
5841 * libc/sys/linux/linuxthreads/bits/local_lim.h: Ditto.
5842 * libc/sys/linux/linuxthreads/bits/posix_opt.h: Ditto.
5843 * libc/sys/linux/linuxthreads/bits/pthreadtypes.h: Ditto.
5844 * libc/sys/linux/linuxthreads/bits/sigthread.h: Ditto.
5845 * libc/sys/linux/linuxthreads/machine/Makefile.am: Ditto.
5846 * libc/sys/linux/linuxthreads/machine/Makefile.in: Ditto.
5847 * libc/sys/linux/linuxthreads/machine/aclocal.m4: Ditto.
5848 * libc/sys/linux/linuxthreads/machine/configure: Ditto.
5849 * libc/sys/linux/linuxthreads/machine/configure.in: Ditto.
5850 * libc/sys/linux/linuxthreads/machine/generic/generic-sysd: Ditto.ep.h
5851 * libc/sys/linux/linuxthreads/machine/i386/Makefile.am: Ditto.
5852 * libc/sys/linux/linuxthreads/machine/i386/Makefile.in: Ditto.
5853 * libc/sys/linux/linuxthreads/machine/i386/aclocal.m4: Ditto.
5854 * libc/sys/linux/linuxthreads/machine/i386/bp-asm.h: Ditto.
5855 * libc/sys/linux/linuxthreads/machine/i386/clone.S: Ditto.
5856 * libc/sys/linux/linuxthreads/machine/i386/configure: Ditto.
5857 * libc/sys/linux/linuxthreads/machine/i386/configure.in: Ditto.
5858 * libc/sys/linux/linuxthreads/machine/i386/i386-sysdep.S: Ditto.
5859 * libc/sys/linux/linuxthreads/machine/i386/i386-sysdep.h: Ditto.
5860 * libc/sys/linux/linuxthreads/machine/i386/pspinlock.c: Ditto.
5861 * libc/sys/linux/linuxthreads/machine/i386/pt-machine.h: Ditto.
5862 * libc/sys/linux/linuxthreads/machine/i386/sigcontextinfo.h: Ditto.
5863 * libc/sys/linux/linuxthreads/machine/i386/stackinfo.h: Ditto.
5864 * libc/sys/linux/linuxthreads/machine/i386/sysdep.S: Ditto.
5865 * libc/sys/linux/linuxthreads/machine/i386/sysdep.h: Ditto.
5866 * libc/sys/linux/linuxthreads/machine/i386/useldt.h: Ditto.
5867 * libc/sys/linux/machine/i386/dl-machine.h: Ditto.
5868 * libc/sys/linux/net/Makefile.am: Ditto.
5869 * libc/sys/linux/net/Makefile.in: Ditto.
5870 * libc/sys/linux/net/addr2ascii.3: Ditto.
5871 * libc/sys/linux/net/addr2ascii.c: Ditto.
5872 * libc/sys/linux/net/ascii2addr.c: Ditto.
5873 * libc/sys/linux/net/base64.c: Ditto.
5874 * libc/sys/linux/net/bindresvport.c: Ditto.
5875 * libc/sys/linux/net/byteorder.3: Ditto.
5876 * libc/sys/linux/net/ether_addr.c: Ditto.
5877 * libc/sys/linux/net/ethers.3: Ditto.
5878 * libc/sys/linux/net/getaddrinfo.3: Ditto.
5879 * libc/sys/linux/net/getaddrinfo.c: Ditto.
5880 * libc/sys/linux/net/gethostbydns.c: Ditto.
5881 * libc/sys/linux/net/gethostbyht.c: Ditto.
5882 * libc/sys/linux/net/gethostbyname.3: Ditto.
5883 * libc/sys/linux/net/gethostbynis.c: Ditto.
5884 * libc/sys/linux/net/gethostnamadr.c: Ditto.
5885 * libc/sys/linux/net/getifaddrs.3: Ditto.
5886 * libc/sys/linux/net/getifaddrs.c: Ditto.
5887 * libc/sys/linux/net/getipnodebyname.3: Ditto.
5888 * libc/sys/linux/net/getnameinfo.3: Ditto.
5889 * libc/sys/linux/net/getnameinfo.c: Ditto.
5890 * libc/sys/linux/net/getnetbydns.c: Ditto.
5891 * libc/sys/linux/net/getnetbyht.c: Ditto.
5892 * libc/sys/linux/net/getnetbynis.c: Ditto.
5893 * libc/sys/linux/net/getnetent.3: Ditto.
5894 * libc/sys/linux/net/getnetnamadr.c: Ditto.
5895 * libc/sys/linux/net/getproto.c: Ditto.
5896 * libc/sys/linux/net/getprotoent.3: Ditto.
5897 * libc/sys/linux/net/getprotoent.c: Ditto.
5898 * libc/sys/linux/net/getprotoname.c: Ditto.
5899 * libc/sys/linux/net/getservbyname.c: Ditto.
5900 * libc/sys/linux/net/getservbyport.c: Ditto.
5901 * libc/sys/linux/net/getservent.3: Ditto.
5902 * libc/sys/linux/net/getservent.c: Ditto.
5903 * libc/sys/linux/net/herror.c: Ditto.
5904 * libc/sys/linux/net/hesiod.3: Ditto.
5905 * libc/sys/linux/net/hesiod.c: Ditto.
5906 * libc/sys/linux/net/if_indextoname.3: Ditto.
5907 * libc/sys/linux/net/ifname.c: Ditto.
5908 * libc/sys/linux/net/inet.3: Ditto.
5909 * libc/sys/linux/net/inet6_option_s: Ditto.pace.3
5910 * libc/sys/linux/net/inet6_rthdr_space.3: Ditto.
5911 * libc/sys/linux/net/inet_addr.c: Ditto.
5912 * libc/sys/linux/net/inet_lnaof.c: Ditto.
5913 * libc/sys/linux/net/inet_makeaddr.c: Ditto.
5914 * libc/sys/linux/net/inet_net.3: Ditto.
5915 * libc/sys/linux/net/inet_net_ntop.c: Ditto.
5916 * libc/sys/linux/net/inet_net_pton.c: Ditto.
5917 * libc/sys/linux/net/inet_neta.c: Ditto.
5918 * libc/sys/linux/net/inet_netof.c: Ditto.
5919 * libc/sys/linux/net/inet_network.c: Ditto.
5920 * libc/sys/linux/net/inet_ntoa.c: Ditto.
5921 * libc/sys/linux/net/inet_ntop.c: Ditto.
5922 * libc/sys/linux/net/inet_pton.c: Ditto.
5923 * libc/sys/linux/net/innetgr-stub.c: Ditto.
5924 * libc/sys/linux/net/ip6opt.c: Ditto.
5925 * libc/sys/linux/net/iso_addr.3: Ditto.
5926 * libc/sys/linux/net/iso_addr.c: Ditto.
5927 * libc/sys/linux/net/issetugid-stub.c: Ditto.
5928 * libc/sys/linux/net/linkaddr.3: Ditto.
5929 * libc/sys/linux/net/linkaddr.c: Ditto.
5930 * libc/sys/linux/net/map_v4v6.c: Ditto.
5931 * libc/sys/linux/net/name6.c: Ditto.
5932 * libc/sys/linux/net/namespace.h: Ditto.
5933 * libc/sys/linux/net/ns.3: Ditto.
5934 * libc/sys/linux/net/ns_addr.c: Ditto.
5935 * libc/sys/linux/net/ns_name.c: Ditto.
5936 * libc/sys/linux/net/ns_netint.c: Ditto.
5937 * libc/sys/linux/net/ns_ntoa.c: Ditto.
5938 * libc/sys/linux/net/ns_parse.c: Ditto.
5939 * libc/sys/linux/net/ns_print.c: Ditto.
5940 * libc/sys/linux/net/ns_ttl.c: Ditto.
5941 * libc/sys/linux/net/nsap_addr.c: Ditto.
5942 * libc/sys/linux/net/nsdispatch.3: Ditto.
5943 * libc/sys/linux/net/nsdispatch.c: Ditto.
5944 * libc/sys/linux/net/nslexer.c: Ditto.
5945 * libc/sys/linux/net/nslexer.l: Ditto.
5946 * libc/sys/linux/net/nsparser.c: Ditto.
5947 * libc/sys/linux/net/nsparser.h: Ditto.
5948 * libc/sys/linux/net/nsparser.y: Ditto.
5949 * libc/sys/linux/net/rcmd.3: Ditto.
5950 * libc/sys/linux/net/rcmd.c: Ditto.
5951 * libc/sys/linux/net/rcmdsh.3: Ditto.
5952 * libc/sys/linux/net/rcmdsh.c: Ditto.
5953 * libc/sys/linux/net/recv.c: Ditto.
5954 * libc/sys/linux/net/res_comp.c: Ditto.
5955 * libc/sys/linux/net/res_config.h: Ditto.
5956 * libc/sys/linux/net/res_data.c: Ditto.
5957 * libc/sys/linux/net/res_debug.c: Ditto.
5958 * libc/sys/linux/net/res_init.c: Ditto.
5959 * libc/sys/linux/net/res_mkquery.c: Ditto.
5960 * libc/sys/linux/net/res_mkupdate.c: Ditto.
5961 * libc/sys/linux/net/res_query.c: Ditto.
5962 * libc/sys/linux/net/res_send.c: Ditto.
5963 * libc/sys/linux/net/res_update.c: Ditto.
5964 * libc/sys/linux/net/resolver.3: Ditto.
5965 * libc/sys/linux/net/rthdr.c: Ditto.
5966 * libc/sys/linux/net/send.c: Ditto.
5967 * libc/sys/linux/net/un-namespace.h: Ditto.
5968 * libc/sys/linux/net/vars.c: Ditto.
5969 * libc/sys/linux/stdlib/COPYRIGHT: Ditto.
5970 * libc/sys/linux/stdlib/Makefile.am: Ditto.
5971 * libc/sys/linux/stdlib/Makefile.in: Ditto.
5972 * libc/sys/linux/stdlib/cclass.h: Ditto.
5973 * libc/sys/linux/stdlib/cname.h: Ditto.
5974 * libc/sys/linux/stdlib/collate.c: Ditto.
5975 * libc/sys/linux/stdlib/collate.h: Ditto.
5976 * libc/sys/linux/stdlib/collcmp.c: Ditto.
5977 * libc/sys/linux/stdlib/engine.c: Ditto.
5978 * libc/sys/linux/stdlib/fnmatch.3: Ditto.
5979 * libc/sys/linux/stdlib/fnmatch.c: Ditto.
5980 * libc/sys/linux/stdlib/glob.3: Ditto.
5981 * libc/sys/linux/stdlib/glob.c: Ditto.
5982 * libc/sys/linux/stdlib/reallocf.c: Ditto.
5983 * libc/sys/linux/stdlib/regcomp.c: Ditto.
5984 * libc/sys/linux/stdlib/regerror.c: Ditto.
5985 * libc/sys/linux/stdlib/regex.3: Ditto.
5986 * libc/sys/linux/stdlib/regex2.h: Ditto.
5987 * libc/sys/linux/stdlib/regexec.c: Ditto.
5988 * libc/sys/linux/stdlib/regfree.c: Ditto.
5989 * libc/sys/linux/stdlib/utils.h: Ditto.
5990 * libc/sys/linux/stdlib/wordexp.c: Ditto.
5991 * libc/sys/linux/stdlib/wordfree.c: Ditto.
5992 * libc/sys/linux/sys/dlfcn.h: Ditto.
5993 * libc/sys/linux/sys/elfclass.h: Ditto.
5994 * libc/sys/linux/sys/event.h: Ditto.
5995 * libc/sys/linux/sys/ioccom.h: Ditto.
5996 * libc/sys/linux/sys/libc-tsd.h: Ditto.
5997 * libc/sys/linux/sys/link.h: Ditto.
5998 * libc/sys/linux/sys/lock.h: Ditto.
5999 * libc/sys/linux/sys/param.h: Ditto.
6000 * libc/sys/linux/sys/socket.h: Ditto.
6001 * libc/sys/linux/sys/sockio.h: Ditto.
6002
6003 2003-05-28 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
6004
6005 * newlib/libc/machine/h8300/memcpy.S: Use .h8300hn and .h8300sn for
6006 normal mode
6007 * newlib/libc/machine/h8300/memset.S: Likewise
6008 * newlib/lib/machine/h8300/reg_memcpy.S: Likewise
6009 * newlib/lib/machine/h8300/reg_memset.S: Likewise
6010 * newlib/lib/machine/h8300/setjmp.S: Likewise
6011 * newlib/lib/machine/h8300/strcmp.S: Likewise
6012 * newlib/lib/sys/h8300hms/crt0.S: Likewise
6013
6014 2003-05-13 Corinna Vinschen <corinna@vinschen.de>
6015
6016 * libc/ctype/ctype_.c: Remove checks for deprecated __CYGWIN32__.
6017 * libc/include/stdio.h: Ditto.
6018 * libc/include/sys/config.h: Ditto.
6019 * libc/stdio/mktemp.c: Ditto.
6020
6021 2003-05-13 Corinna Vinschen <corinna@vinschen.de>
6022
6023 * libc/locale/ldpart.c (__part_load_locale): Substitute
6024 __CYGWIN_USE_BIG_TYPES__ by __USE_INTERNAL_STAT64.
6025 * libc/search/hash.c (__hash_open): Ditto.
6026 (init_hash): Ditto.
6027 * libc/stdio/fseek.c (fseek): Ditto.
6028 * libc/stdio/makebuf.c (__smakebuf): Ditto.
6029 * libc/stdio/mktemp.c (_gettemp): Ditto.
6030
6031 2003-05-12 Corinna Vinschen <corinna@vinschen.de>
6032
6033 * libc/include/stdio.h: Change one __CYGWIN__ to __CYGWIN32__.
6034
6035 2003-05-12 Corinna Vinschen <corinna@vinschen.de>
6036
6037 * configure.host: Accomodate removing the libc/sys/cygwin dir.
6038 * libc/locale/ldpart.c (__part_load_locale): Use 64 bit stat call
6039 if __CYGWIN_USE_BIG_TYPES__ is set.
6040 * libc/search/hash.c (__hash_open): Ditto.
6041 (init_hash): Ditto.
6042 * libc/stdio/fseek.c (fseek): Ditto.
6043 * libc/stdio/makebuf.c (__smakebuf): Ditto.
6044 * libc/stdio/mktemp.c (_gettemp): Ditto.
6045 * libc/sys/cygwin/Makefile.am: Remove.
6046 * libc/sys/cygwin/Makefile.in: Remove.
6047 * libc/sys/cygwin/aclocal.m4: Remove.
6048 * libc/sys/cygwin/configure: Remove.
6049 * libc/sys/cygwin/configure.in: Remove.
6050 * libc/sys/cygwin/crt0.c: Move to winsup/cygwin directory.
6051 * libc/sys/cygwin/sys/dirent.h: Move to winsup/cygwin/include/sys
6052 directory.
6053 * libc/sys/cygwin/sys/param.h: Ditto.
6054 * libc/sys/cygwin/sys/utime.h: Ditto.
6055 * libc/sys/cygwin/sys/utmp.h: Ditto.
6056
6057 2003-05-11 Corinna Vinschen <corinna@vinschen.de>
6058
6059 * libc/include/sys/types.h: Don't define key_t for Cygwin.
6060
6061 2003-05-10 Christopher Faylor <cgf@redhat.com>
6062
6063 * libc/sys/cygwin/sys/dirent.h (struct dirent): Accommodate (slightly)
6064 64 bit inodes.
6065
6066 2003-05-09 Corinna Vinschen <corinna@vinschen.de>
6067
6068 * libc/include/sys/config.h: Remove all Cygwin specific configuration.
6069 Include cygwin/config.h instead.
6070
6071 2003-04-16 Jeff Johnston <jjohnstn@redhat.com>
6072
6073 * newlib/libc/machine/powerpc (ato*fix*.c,strto*fix*.c): Shield
6074 all code with #ifdef __SPE__ test.
6075 * newlib/libc/machine/powerpc (simdldtoa.c, ufix64toa.c): Ditto.
6076
6077 2003-04-15 Chris January <chris@atomice.net>
6078
6079 * newlib/libc/include/sys/unistd.h: add declaration for gethostid on
6080 Cygwin.
6081
6082 2003-04-09 J"orn Rennecke <joern.rennecke@superh.com>
6083
6084 * libc/machine/sh/memset.S: Avoid clobbering volatile
6085 objects following a tiny to-be-set array in the same quadword.
6086
6087 2001-04-09 Corinna Vinschen <corinna@vinschen.de>
6088
6089 * libc/include/wchar.h: Add definitions for wcswidth and wcwidth.
6090 * libc/string/Makefile.am: Add wcswidth.c and wcwidth.c
6091 * libc/string/Makefile.in: Regenerated.
6092 * libc/string/wcswidth.c: New file.
6093 * libc/string/wcwidth.c: New file.
6094 * libc/string/wcstrings.tex: Add wcswidth and wcwidth.
6095
6096 Thu Apr 3 14:01:16 2003 J"orn Rennecke <joern.rennecke@superh.com>
6097
6098 * libc/machine/sh/memset.S: Fix problem with alloco region
6099 exceeding destination region for length >= 88 bytes, start
6100 & 0x16 == 0, end & 0x1f == 18.
6101
6102 2001-04-03 Corinna Vinschen <corinna@vinschen.de>
6103
6104 * libc/string/wcscoll.c: Fix comment.
6105
6106 2001-04-02 Corinna Vinschen <corinna@vinschen.de>
6107
6108 * libc/include/wchar.h: Add definition for wcscoll.
6109 * libc/string/Makefile.am: Add wcscoll.c.
6110 * libc/string/Makefile.in: Regenerated.
6111 * libc/string/wcscoll.c: New file.
6112 * libc/string/wcstrings.tex: Add wcscoll.
6113
6114 2003-04-01 Corinna Vinschen <corinna@vinschen.de>
6115
6116 * libc/stdio/sscanf.c: Update flags description.
6117 * libc/stdio/vfscanf.c: Add CHAR flag value to denote 8 bit target
6118 type.
6119 (__svfscanf_r): Add 'hh' and 'll' handling.
6120
6121 2003-04-01 Corinna Vinschen <corinna@vinschen.de>
6122
6123 * libc/sys/cygwin/sys/dirent.h (struct DIR): Change type of
6124 __d_position member to _off_t.
6125
6126 2003-03-20 Jeff Johnston <jjohnstn@redhat.com>
6127
6128 * libc/stdio/vfscanf.c (__svfscanf_r): For floating point conversion,
6129 count all characters used to create number against maximum width.
6130 * libc/machine/powerpc/vfscanf.c (__svfscanf_r): Ditto.
6131
6132 2003-03-18 D.Venkatasubramanian <dvenkat@noida.hcltech.com>
6133
6134 * libc/include/sys/h8300hms/crt0.S[__SIMULATOR__]: Add commandline
6135 support.
6136 * configure.host (h8300*-*-*): Added comment regarding -D__SIMULATOR__
6137 flag to support simulator only extensions.
6138
6139 2003-03-17 Bob Cassels <bcassels@abinitio.com>
6140
6141 * libc/string/wcschr.c: (wcschr): Look for character first,
6142 then for end of string, so you can do wcschr(x, '\0').
6143
6144 2003-03-10 Corinna Vinschen <corinna@vinschen.de>
6145
6146 * libc/include/stdio.h: Declare fgetpos, fsetpos, fseeko and ftello
6147 with internal (_fpos_t and _off_t) datatypes when compiling newlib.
6148 * libc/include/sys/unistd.h: Declare _lseek using _off_t.
6149 * libc/reent/lseekr.c (_lseek_r): Use _off_t instead of off_t.
6150 * libc/stdio/fseeko.c (fseeko): Ditto.
6151 * libc/stdio/ftello.c (ftello): Ditto.
6152 * libc/stdio/stdio.c (__swrite): Ditto.
6153 (__sseek): Ditto.
6154 * libc/stdio/fgetpos.c (fgetpos): Use _fpos_t instead of fpos_t.
6155 * libc/stdio/fseek.c (fseek): Ditto.
6156 * libc/stdio/fsetpos.c (fsetpos): Ditto.
6157 * libc/stdio/ftell.c (ftell): Ditto.
6158 * libc/stdio/local.h: Declare __sseek using _off_t.
6159
6160 2003-03-09 Corinna Vinschen <corinna@vinschen.de>
6161
6162 * libc/reent/lseekr.c (lseek_r): Use _off_t instead of off_t.
6163
6164 2003-03-09 Corinna Vinschen <corinna@vinschen.de>
6165
6166 * libc/include/sys/config.h: Define __CYGWIN_USE_BIG_TYPES__ for
6167 Cygwin.
6168
6169 2003-03-09 Corinna Vinschen <corinna@vinschen.de>
6170
6171 * libc/include/pwd.h: Add guards to avoid type clashes when compiling
6172 Cygwin.
6173 * libc/include/sys/stat.h: Ditto.
6174 * libc/include/sys/unistd.h: Ditto.
6175 * libc/sys/cygwin/sys/dirent.h: Ditto.
6176
6177 2003-03-07 Christopher Faylor <cgf@redhat.com>
6178
6179 * libc/include/sys/unistd.h: Guard getopt.h call to force only
6180 declaration of getopt and avoid getopt_long declaration.
6181 * libc/sys/cygwin/include/unistd.h: Remove.
6182
6183 2003-03-07 Corinna Vinschen <corinna@vinschen.de>
6184
6185 * configure.host: Define stdio64_dir for Cygwin.
6186 * libc/include/stdio.h: Change definition of fpos_t to fulfill
6187 Cygwin 64bit file access requirements.
6188 Drop definition of f*64() functions when compiled for Cygwin.
6189 * libc/include/sys/config.h: Define __LARGE64_FILES for Cygwin.
6190 * libc/reent/lseek64r.c: Use _off64_t instead of off64_t.
6191 * libc/stdio64/local64.h: Use _fpos64_t instead of fpos64_t.
6192
6193 2003-03-07 Jeff Johnston <jjohnstn@redhat.com>
6194
6195 * libc/include/sys/reent.h: Remove extraneous _sig_func
6196 declaration.
6197
6198 2003-02-25 D.Venkatasubramanian <dvenkat@noida.hcltech.com>
6199
6200 * libc/sys/h8300hms/Makefile.am: Add support for new files.
6201 * libc/sys/h8300hms/Makefile.in: Regenerated.
6202 * libc/sys/h8300hms/close.S: New file.
6203 * libc/sys/h8300hms/fstat.S: Ditto.
6204 * libc/sys/h8300hms/lseek.S: Ditto.
6205 * libc/sys/h8300hms/open.S: Ditto.
6206 * libc/sys/h8300hms/stat.S: Ditto.
6207 * libc/sys/h8300hms/read.S: New file to replace read.c.
6208 * libc/sys/h8300hms/read.c: Removed.
6209 * libc/sys/h8300hms/syscalls.c: Removed functions _open,
6210 _lseek, _close, _stat, _fstat.
6211 * libc/sys/h8300hms/write.S: New file to replace write.c.
6212 * libc/sys/h8300hms/write.c: Removed.
6213
6214 2003-02-20 Nick Clifton <nickc@redhat.com>
6215
6216 * Add support for Cirrus Maverick ARM co-processor:
6217
6218 2000-09-13 Aldy Hernandez <aldyh@redhat.com>
6219
6220 * libc/include/machine/ieeefp.h: Set IEEE_BIG_ENDIAN or
6221 IEEE_LITTLE_ENDIAN depending on endian mode (cirrus).
6222
6223 2000-08-11 Aldy Hernandez <aldyh@redhat.com>
6224
6225 * configure.host: set sys_dir, syscall_dir, and
6226 newlib_cflags for ep9312 host.
6227
6228 * configure.host: Restore alpha sorting of entries in case
6229 statements.
6230
6231 2003-02-19 Jeff Johnston <jjohnstn@redhat.com>
6232
6233 * libc/stdlib/mallocr.c (unlink): Revert 02/18 fix.
6234
6235 2003-02-18 Christian Groessler <chris@groessler.org>
6236
6237 * libc/machine/z8k/setjmp.S (_setjmp / _longjmp): Fix to
6238 support z8001 segmented mode.
6239
6240 2003-02-18 Earnie Boyd <earnie@users.sf.net>
6241
6242 * libc/stdlib/mallocr.c (unlink): Don't assign a value to a pointer
6243 with a NULL value.
6244
6245 2003-02-10 Christopher Faylor <cgf@redhat.com>
6246
6247 * libc/include/sys/types.h: Don't define __MS_types__ for Cygwin.
6248 Don't define some types under cygwin.
6249
6250 2003-02-07 Jeff Johnston <jjohnstn@redhat.com>
6251
6252 * acinclude.m4 (--disable-newlib-supplied-syscalls): New configuration
6253 option to allow disabling of syscalls being supplied in newlib.
6254 * aclocal.m4: Regenerated.
6255 * configure: Ditto.
6256 * configure.host: Add support of new configuration option and add
6257 -D__NO_SYSCALLS__ if newlib supplied syscalls are disabled.
6258 * doc/aclocal.m4: Regenerated.
6259 * doc/configure: Ditto.
6260 * libc/*aclocal.m4: Ditto.
6261 * libc/*configure: Ditto.
6262 * libm/*aclocal.m4: Ditto.
6263 * libm/*configure: Ditto.
6264 * libc/sys/arm/Makefile.am: Don't build syscalls.o if new option
6265 is disabled.
6266 * libc/sys/arm/Makefile.in: Regenerated.
6267
6268 2003-02-05 Jonathan Larmour <jifl@eCosCentric.com>
6269
6270 * libc/stdio/vsprintf.c (vsprintf, _vsprintf_r): Set _file fd to
6271 -1 to be sure it cannot later match a valid file fd causing
6272 isatty() to return 1.
6273 * libc/stdio/asprintf.c (asprintf, _asprintf_r): Ditto.
6274 * libc/stdio/sprintf.c (sprintf, _sprintf_r): Ditto.
6275 * libc/stdio/vasprintf.c (vasprintf, _vasprintf_r): Ditto.
6276
6277 2003-02-03 Jeff Johnston <jjohnstn@redhat.com>
6278
6279 * libc/stdlib/ldtoa.c (_ldtoa_r): Fix code to allocate the format
6280 buffer based on the precision, after we have processed the input value
6281 in a local buffer and know its relative magnitude.
6282
6283 2003-01-31 Michael Snyder <msnyder@redhat.com>
6284
6285 * libc/sys/h8300hms/_exit.c (_exit, __exit): Slip a magic cookie
6286 into registers r1 and r2, so that the simulator can distinguish
6287 this trap from a breakpoint trap. Copied from libgloss.
6288
6289 2003-01-31 Michael Snyder <msnyder@redhat.com>
6290
6291 * libc/sys/h8300hms/crt0.S (_start): Change local label
6292 from .loop to .Loop, so that ld and gdb will ignore it.
6293
6294 2003-01-29 Jason Tishler <jason@tishler.net>
6295
6296 * libc/include/time.h: Declare nanosleep() under Cygwin.
6297
6298 2003-01-24 Nick Clifton <nickc@redhat.com>
6299
6300 * Add sh2e support:
6301
6302 2002-04-02 Alexandre Oliva <aoliva@redhat.com>
6303
6304 * libc/machine/sh/asm.h: Added __SH2E__ next to __SH3E__.
6305 * libc/machine/sh/setjmp.S: Likewise.
6306 * libc/include/machine/ieeefp.h: Likewise.
6307
6308 2003-01-24 Corinna Vinschen <corinna@vinschen.de>
6309
6310 * libc/include/sys/unistd.h: Add setregid and setreuid declarations
6311 for Cygwin.
6312
6313 2003-01-21 Anita Kulkarni <anitak@kpit.com>
6314
6315 * libc/time/difftime.c : Typecast the result to double.
6316
6317 2003-01-20 Christopher Faylor <cgf@redhat.com>
6318
6319 * libc/include/sys/unistd.h: Add rresvport declaration for cygwin.
6320
6321 2003-01-18 Nick Clifton <nickc@redhat.com>
6322
6323 * libc/include/machine/ieeefp.h : Define __IEEE_BIG_ENDIAN,
6324 __SMALL_BITFIELDS and _DOUBLE_IS_32BITS for IP2K.
6325
6326 2003-01-16 Joel Sherrill <joel@OARcorp.com>
6327
6328 * libc/sys/rtems/include/limits.h, libc/sys/rtems/sys/param.h,
6329 libc/sys/rtems/sys/syslimits.h: Update to be in sync with what
6330 constants are defined in each file in the shared versions in
6331 libc/include.
6332 * libc/sys/rtems/crt0.c: Define extra symbols on SH and HP-PA to
6333 autoconf can link programs.
6334 * libc/include/machine/types.h: Explicitly specify signed on
6335 intXX_t types to ensure they are signed.
6336
6337 2003-01-14 Christopher Faylor <cgf@redhat.com>
6338
6339 * libc/time/strftime.c (strftime): Add '%h' and '%l, %k' GNU
6340 extensions.
6341
6342 2003-01-08 Richard Sandiford <rsandifo@redhat.com>
6343
6344 * configure.host (mips64vr-elf, mips64vrel-elf): New config.
6345
6346 2003-01-07 Charles Wilson <cwilson@ece.gatech.edu>
6347
6348 * libc/stdio/sprintf.c: fix typo
6349 * libc/stdio/vfprintf.c: fix typo
6350
6351 2003-01-07 Jeff Johnston <jjohnstn@redhat.com>
6352
6353 * configure.host: Support long double I/O for x86-linux.
6354 * libc/stdlib/ldtoa.c (_ldtoa_r): Fix code to allocate a buffer
6355 large enough to hold formatted result.
6356 * libc/machine/powerpc/simdldtoa.c (_simdldtoa_r): Ditto.
6357
6358 2003-01-06 Charles Wilson <cwilson@ece.gatech.edu>
6359
6360 * Makefile.am: Add vasprintf.
6361 * Makefile.in: Regenerated.
6362
6363 2003-01-06 Charles Wilson <cwilson@ece.gatech.edu>
6364
6365 * asprintf.c (_asprintf_r): insure both declarations
6366 are the same.
6367
6368 2002-12-28 Christopher Faylor <cgf@redhat.com>
6369
6370 * libc/include/sys/unistd.h: Under cygwin, just include getopt.h rather
6371 than defining getopt directly.
6372
6373 2002-12-20 Jeff Johnston <jjohnstn@redhat.com>
6374
6375 * NEWS: Update with 1.11.0 info.
6376 * README: Ditto.
6377 * acinclude.m4: Change version number to 1.11.0.
6378 * aclocal.m4: Regenerated.
6379 * configure: Ditto.
6380 * doc/aclocal.m4: Ditto.
6381 * doc/configure: Ditto.
6382 * libc/*/aclocal.m4: Ditto.
6383 * libc/*/configure: Ditto.
6384 * libc/libc.texinfo: Ditto.
6385 * libm/*/aclocal.m4: Ditto.
6386 * libm/*/configure: Ditto.
6387 * libm/libm.texinfo: Ditto.
6388 * libc/sys/linux/shared.ld: Add VERS_1.11.
6389
6390 2002-12-20 Jeff Johnston <jjohnstn@redhat.com>
6391
6392 * libc/machine/i386/f_atan2.S: Change copyright from Cygnus
6393 Solutions to Red Hat Inc.
6394 * libc/machine/i386/f_atan2f.S: Ditto.
6395 * libc/machine/i386/f_exp.c: Ditto.
6396 * libc/machine/i386/f_expf.c: Ditto.
6397 * libc/machine/i386/f_frexp.S: Ditto.
6398 * libc/machine/i386/f_frexpf.S: Ditto.
6399 * libc/machine/i386/f_ldexp.S: Ditto.
6400 * libc/machine/i386/f_ldexpf.S: Ditto.
6401 * libc/machine/i386/f_log.S: Ditto.
6402 * libc/machine/i386/f_log10.S: Ditto.
6403 * libc/machine/i386/f_log10f.S: Ditto.
6404 * libc/machine/i386/f_logf.S: Ditto.
6405 * libc/machine/i386/f_pow.c: Ditto.
6406 * libc/machine/i386/f_powf.c: Ditto.
6407 * libc/machine/i386/f_tan.S: Ditto.
6408 * libc/machine/i386/f_tanf.S: Ditto.
6409 * libc/machine/i386/memchr.S: Ditto.
6410 * libc/machine/i386/memcmp.S: Ditto.
6411 * libc/machine/i386/memcpy.S: Ditto.
6412 * libc/machine/i386/memmove.S: Ditto.
6413 * libc/machine/i386/memset.S: Ditto.
6414 * libc/machine/i386/strchr.S: Ditto.
6415 * libc/machine/i386/strlen.S: Ditto.
6416 * libm/machine/i386/f_atan2.S: Ditto.
6417 * libm/machine/i386/f_atan2f.S: Ditto.
6418 * libm/machine/i386/f_exp.c: Ditto.
6419 * libm/machine/i386/f_expf.c: Ditto.
6420 * libm/machine/i386/f_frexp.S: Ditto.
6421 * libm/machine/i386/f_frexpf.S: Ditto.
6422 * libm/machine/i386/f_ldexp.S: Ditto.
6423 * libm/machine/i386/f_ldexpf.S: Ditto.
6424 * libm/machine/i386/f_log.S: Ditto.
6425 * libm/machine/i386/f_log10.S: Ditto.
6426 * libm/machine/i386/f_log10f.S: Ditto.
6427 * libm/machine/i386/f_logf.S: Ditto.
6428 * libm/machine/i386/f_pow.c: Ditto.
6429 * libm/machine/i386/f_powf.c: Ditto.
6430 * libm/machine/i386/f_tan.S: Ditto.
6431 * libm/machine/i386/f_tanf.S: Ditto.
6432
6433 2002-12-20 Jeff Johnston <jjohnstn@redhat.com>
6434
6435 * libc/stdlib/environ.c: Update license to Red Hat.
6436 * libc/machine/hppa/setjmp.S: Ditto.
6437 * libm/test/Makefile.in: Ditto.
6438
6439 2002-12-19 Jeff Johnston <jjohnstn@redhat.com>
6440
6441 * configure.host: Remove references to go32.
6442 * libc/sys/go32/*: Removed.
6443
6444 2002-12-16 Kazu Hirata <kazu@cs.umass.edu>
6445
6446 * libc/include/sys/config.h: Change setting of INT_MAX
6447 and UINT_MAX, to use __INT_MAX__ for __H8300__, __H8300H__,
6448 __H8300S__. Also consolidate flag settings for these
6449 platforms.
6450
6451 2002-12-10 Joel Sherrill <joel@OARcorp.com>
6452
6453 * libc/include/machine/setjmp.h: Make sure _JBLEN is defined
6454 for i386-rtems targets.
6455
6456 2002-12-06 Jeff Johnston <jjohnstn@redhat.com>
6457
6458 * libc/include/stdlib.h (strtof): New prototype (from C99).
6459 (strtodf): Changed from prototype to macro which redefines
6460 to strtof.
6461 * libc/stdlib/atof.c: Change documentation to refer to strtof
6462 instead of strtodf.
6463 * libc/stdlib/atoff.c (atoff): Change to call strtof instead of
6464 strtodf.
6465 * libc/stdlib/strtod.c (strtodf): Renamed to strtof.
6466 (strtof): New function.
6467 * libm/test/convert.c (test_strtodf): Renamed to test_strtof which
6468 calls strtof.
6469
6470 2002-11-27 Christopher Faylor <cgf@redhat.com>
6471
6472 * libc/string/memset.c (memset): Fix comment.
6473
6474 2002-11-26 Christopher Faylor <cgf@redhat.com>
6475
6476 * libc/string/memset.c (memset): Move initialization of 'd' earlier in
6477 function.
6478
6479 2002-11-25 Christopher Faylor <cgf@redhat.com>
6480
6481 * libc/string/memset.c (memset): Minor optimization: Use new 'd'
6482 variable, introduced below, everywhere.
6483
6484 2002-11-25 Kazu Hirata <kazu@cs.umass.edu>
6485
6486 * libc/string/memset.c (memset): Make it safe even if
6487 sizeof (int) = 2.
6488
6489 2002-11-22 Joe Buehler <jbuehler@hekimian.com>
6490
6491 * configure.in: Change check for libc/include in ${CC} to
6492 use an intermediate value so as to work with different shells.
6493 * configure: Regenerated.
6494 * Makefile.in: Ditto.
6495
6496 2002-11-22 Vijay L. Khuspe <vijayk1@kpit.com>
6497
6498 * libc/sys/h8300hms/read.c: Add support for normal mode
6499 architecture.
6500
6501 2002-11-20 Ryo Tsuruta <ryo@kitanet.ne.jp>
6502
6503 * libc/machine/h8300/setjmp.S (setjmp, longjmp): Combine common
6504 code for __H8300H__ and __H8300S__. Also return 32-bit return code
6505 when -mint32 is used.
6506
6507 2002-11-18 Nick Clifton <nickc@redhat.com>
6508
6509 * libc/sys/arm/crt0.S: Add NULL to end of argv array.
6510
6511 2002-11-14 Jeff Johnston <jjohnstn@redhat.com>
6512
6513 * testsuite/lib/passfail.exp (newlib_pass_fail): Changed to
6514 only issue one pass/fail message for a compile/link/execute.
6515 * testsuite/newlib.elix/elix.exp: New file.
6516 * testsuite/newlib.elix/tmmap.c: Ditto.
6517
6518 2002-11-06 Christopher Faylor <cgf@redhat.com>
6519
6520 * libc/stdlib/malign.c: Don't compile if MALLOC_PROVIDED.
6521 * libc/stdlib/mlock.c: Ditto.
6522 * libc/stdlib/msize.c: Ditto.
6523 * libc/stdlib/msize.c: Ditto.
6524 * libc/stdlib/mtrim.c: Ditto.
6525 * libc/stdlib/valloc.c: Ditto.
6526
6527 2002-11-12 Jeff Johnston <jjohnstn@redhat.com>
6528
6529 * libc/stdlib/ldtoa.c (e64toe): When checking the exponent
6530 for inf/nan, make sure that the check ignores the sign bit.
6531
6532 2002-11-07 Joel Sherrill <joel@OARcorp.com>
6533
6534 * libc/sys/rtems/machine: New directory.
6535 * libc/sys/rtems/machine/limits.h, libc/sys/rtems/machine/param.h,
6536 libc/sys/rtems/sys/param.h, libc/sys/rtems/sys/syslimits.h,
6537 libc/sys/rtems/sys/utime.h: New files added to make *-rtems newlib
6538 targets more BSD like when installed without requiring files to
6539 be overwritten at install point when RTEMS itself is installed.
6540 * Makefile.am: Pick up system dependent machine .h files such as
6541 might be found on a BSD-ish system.
6542 * Makefile.in: Regenerate.
6543 * libc/include/machine/types.h: When on an RTEMS target, define a
6544 few BSD flavor types.
6545
6546 2002-11-06 Sergey Okhapkin <sos@prospect.com.ru>
6547
6548 * include/utmp.h: Define WTMP_FILE. Define and use UT_IDLEN.
6549
6550 2002-11-06 Kazuhiro Fujieda <fujieda@jaist.ac.jp>
6551
6552 * libc/include/wchar.h: Use _{BEGIN,END}_STD_C instead of extern "C".
6553 * libc/include/wctype.h: Ditto.
6554
6555 2002-11-04 Jeff Johnston <jjohnstn@redhat.com>
6556
6557 * libc/include/wchar.h: Add extern "C" specifier if C++.
6558 * libc/include/wctype.h: Ditto.
6559
6560 2002-10-18 Jeff Johnston <jjohnstn@redhat.com>
6561
6562 * testsuite/newlib.wctype/tiswctype.c: New test case.
6563 * testsuite/newlib.wctype/twctrans.c: Ditto.
6564
6565 2002-10-18 Jeff Johnston <jjohnstn@redhat.com>
6566
6567 * libc/sys/linux/machine/i386/include/endian.h: New file.
6568 * libc/sys/linux/machine/i386/include/param.h: Ditto.
6569
6570 2002-10-18 Jeff Johnston <jjohnstn@redhat.com>
6571
6572 * libm/machine/i386/aclocal.m4: Regenerated.
6573 * libm/machine/i386/configure: Ditto.
6574
6575 2002-10-18 Jeff Johnston <jjohnstn@redhat.com>
6576
6577 * testsuite/include/check.h: New header file to use with
6578 test cases.
6579 * testsuite/lib/newlib.exp: Add testsuite/include directory
6580 to list of header files to use.
6581 * testsuite/newlib.wctype/twctype.c: New test case for iswctype fns.
6582 * testsuite/newlib.wctype/wctype.exp: New file.
6583
6584 2002-10-11 Graham Stott <graham.stott@btinternet.com>
6585 Richard Sandiford <rsandifo@redhat.com>
6586
6587 * libc/include/sys/config.h (SIZE_T_SMALLER_THAN_LONG): Undefine.
6588 * libc/stdlib/mallocr.c (long_sub_size_t): Define in a way that
6589 doesn't require the SIZE_T_SMALLER_THAN_LONG macro.
6590
6591 2002-10-07 Joel Sherrill <joel@OARcorp.com>
6592
6593 * libc/sys/rtems/crt0.c: Add even more symbols so gcc() can link
6594 dummy programs.
6595
6596 2002-10-07 Joel Sherrill <joel@OARcorp.com>
6597
6598 * libc/include/pthread.h: Define PTHREAD_CANCELED.
6599
6600 2002-10-07 Joel Sherrill <joel@OARcorp.com>
6601
6602 * libc/machine/hppa/DEFS.h, libc/machine/hppa/pcc_prefix.s,
6603 libc/machine/hppa/setjmp.S, libc/machine/hppa/DEFS.h: Make this
6604 compile with current GNU tools.
6605
6606 2002-10-07 Jeff Johnston <jjohnstn@redhat.com>
6607
6608 * Makefile.am: Add EXTRA_DIRS to allow future dependencies on
6609 the build library.
6610 * configure.in: Ditto.
6611 * Makefile.in: Regenerated.
6612 * configure: Ditto.
6613 * libc/sys/linux/Makefile.am: Add EXTRA_SUBDIRS and EXTRA_SUBLIBS
6614 for specifying configured libraries/directories.
6615 * libc/sys/linux/configure.in: Ditto.
6616 * libc/sys/linux/Makefile.in: Regenerated.
6617 * libc/sys/linux/configure: Ditto.
6618
6619 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
6620
6621 * libc/include/reent.h: Update documentation at start of file.
6622
6623 2002-09-27 Jim Wilson <wilson@redhat.com>
6624
6625 * libc/sys/sysnecv850/crt0.S (start): Delete v850 code for initializing
6626 the ctbp register.
6627
6628 2002-09-27 Jeff Johnston <jjohnstn@redhat.com>
6629
6630 * libc/ctype/jp2uc.c: Change to use multiple arrays in jp2uc.h.
6631 Also convert to EUCJP before using arrays. For values not in
6632 the conversion arrays, return WEOF.
6633 * libc/ctype/jp2uc.h: Change from one array to a number of
6634 arrays to account for the fact that the originating table
6635 is not contiguous for the input values since some are invalid.
6636
6637 2002-09-24 Jeff Johnston <jjohnstn@redhat.com>
6638
6639 * libc/time/ctime.c: Fix prototype documentation.
6640
6641 2002-09-24 Corinna Vinschen <corinna@vinschen.de>
6642
6643 * libc/include/sys/errno.h: Add EOVERFLOW.
6644
6645 2002-09-20 Jeff Johnston <jjohnstn@redhat.com>
6646
6647 * libc/include/wctype.h: New file.
6648
6649 2002-09-20 Jeff Johnston <jjohnstn@redhat.com>
6650
6651 * libc/ctype/Makefile.am: Add new files.
6652 * libc/ctype/Makefile.in: Regenerated.
6653 * libc/ctype/ctype.tex: Add new iswxxxx, towxxxx, wctype,
6654 and wctrans functions to documentation index.
6655 * libc/ctype/iswalnum.c: New file.
6656 * libc/ctype/iswalpha.c: Ditto.
6657 * libc/ctype/iswblank.c: Ditto.
6658 * libc/ctype/iswcntrl.c: Ditto.
6659 * libc/ctype/iswctype.c: Ditto.
6660 * libc/ctype/iswdigit.c: Ditto.
6661 * libc/ctype/iswgraph.c: Ditto.
6662 * libc/ctype/iswlower.c: Ditto.
6663 * libc/ctype/iswprint.c: Ditto.
6664 * libc/ctype/iswpunct.c: Ditto.
6665 * libc/ctype/iswspace.c: Ditto.
6666 * libc/ctype/iswupper.c: Ditto.
6667 * libc/ctype/iswxdigit.c: Ditto.
6668 * libc/ctype/jp2uc.c: Ditto.
6669 * libc/ctype/jp2uc.h: Ditto.
6670 * libc/ctype/local.h: Ditto.
6671 * libc/ctype/towctrans.c: Ditto.
6672 * libc/ctype/towlower.c: Ditto.
6673 * libc/ctype/towupper.c: Ditto.
6674 * libc/ctype/utf8alpha.h: Ditto.
6675 * libc/ctype/utf8print.h: Ditto.
6676 * libc/ctype/utf8punct.h: Ditto.
6677 * libc/ctype/wctrans.c: Ditto.
6678 * libc/ctype/wctype.c: Ditto.
6679 * libc/locale/locale.c (__lc_ctype): New external array to
6680 replace static lc_ctype array.
6681 * libc/stdlib/mbtowc_r.c: Use __lc_ctype to check current lc_ctype
6682 rather than reentrancy structure's _current_locale field.
6683 * libc/stdlib/wctomb_r.c: Ditto.
6684
6685 2002-09-20 Jeff Johnston <jjohnstn@redhat.com>
6686
6687 * configure.host: Minor comment and formatting changes.
6688 * libc/Makefile.am: Add libc_la_DEPENDENCIES.
6689 * libc/Makefile.in: Regenerated.
6690 * libc/include/sys/config.h: Minor format change.
6691
6692 2002-09-19 Jeff Johnston <jjohnstn@redhat.com>
6693
6694 * libc/syscalls/sysfcntl.c (fcntl): Fix typo in preprocessor
6695 statement comment.
6696
6697 2002-09-19 Jeff Johnston <jjohnstn@redhat.com>
6698
6699 * libc/posix/opendir.c (opendir): Change code to check
6700 for HAVE_FCNTL before calling fcntl.
6701 * libc/search/hash.c (hash_open): Ditto.
6702 * libc/search/hash_page.c (open_tmp): Ditto.
6703 * libc/reent/Makefile.am: Add fcntlr.c.
6704 * libc/reent/Makefile.in: Regenerated.
6705 * libc/reent/fcntlr.c: New file.
6706 * libc/stdio/fdopen.c (_fdopen_r): Change to call _fcntl_r
6707 instead of _fcntl when HAVE_FCNTL flag is set.
6708 * libc/syscalls/sysfcntl.c (fcntl): Check for HAVE_FCNTL flag
6709 to see if _fcntl or _fcntl_r should be called. If flag is not
6710 set, default to ENOSYS stub.
6711
6712 2002-09-16 Jeff Johnston <jjohnstn@redhat.com>
6713
6714 * libc/include/wchar.h (mbstate_t): Change protective flag to
6715 be _MBSTATE_T.
6716 * libc/include/sys/_types.h (_mbstate_t): Remove protective flag.
6717 [__CYGWIN__]: Remove special code that defines mbstate_t and WEOF
6718 for Cygwin.
6719 * libc/sys/linux/sys/_types.h (_mbstate_t): Remove protective flag.
6720
6721 2002-09-11 Jeff Johnston <jjohnstn@redhat.com>
6722
6723 * acinclude.m4 (enable-newlib-mb): Change check to
6724 default newlib_mb variable to empty string rather than "no".
6725 * configure.host: Remove hard-coding of -DMB_CAPABLE for
6726 x86-linux and Cygwin. Add code to check for newlib_mb
6727 being unset in which case set to "yes" for x86-linux and
6728 Cygwin. Change check for newlib_mb being "yes" to allow
6729 for an empty string.
6730 * configure.in (_MB_LEN_MAX): New AC_DEFINE.
6731 * newlib.hin (_MB_LEN_MAX): New define to configure.
6732 * aclocal.m4: Regenerated.
6733 * configure: Ditto.
6734 * libc/include/limits.h: New file.
6735 * libc/sys/linux/include/limits.h: Ditto.
6736 * doc/aclocal.m4 doc/configure libc/aclocal.m4
6737 libc/configure libc/machine/aclocal.m4
6738 libc/machine/configure libc/machine/a29k/aclocal.m4
6739 libc/machine/a29k/configure libc/machine/arm/aclocal.m4
6740 libc/machine/arm/configure libc/machine/d10v/aclocal.m4
6741 libc/machine/d10v/configure libc/machine/d30v/aclocal.m4
6742 libc/machine/d30v/configure libc/machine/fr30/aclocal.m4
6743 libc/machine/fr30/configure libc/machine/frv/aclocal.m4
6744 libc/machine/frv/configure libc/machine/h8300/aclocal.m4
6745 libc/machine/h8300/configure libc/machine/h8500/aclocal.m4
6746 libc/machine/h8500/configure libc/machine/hppa/aclocal.m4
6747 libc/machine/hppa/configure libc/machine/i386/aclocal.m4
6748 libc/machine/i386/configure libc/machine/i960/aclocal.m4
6749 libc/machine/i960/configure libc/machine/m32r/aclocal.m4
6750 libc/machine/m32r/configure libc/machine/m68hc11/aclocal.m4
6751 libc/machine/m68hc11/configure libc/machine/m68k/aclocal.m4
6752 libc/machine/m68k/configure libc/machine/m88k/aclocal.m4
6753 libc/machine/m88k/configure libc/machine/mips/aclocal.m4
6754 libc/machine/mips/configure libc/machine/mn10200/aclocal.m4
6755 libc/machine/mn10200/configure libc/machine/mn10300/aclocal.m4
6756 libc/machine/mn10300/configure libc/machine/necv70/aclocal.m4
6757 libc/machine/necv70/configure libc/machine/powerpc/aclocal.m4
6758 libc/machine/powerpc/configure libc/machine/sh/aclocal.m4
6759 libc/machine/sh/configure libc/machine/sparc/aclocal.m4
6760 libc/machine/sparc/configure libc/machine/tic80/aclocal.m4
6761 libc/machine/tic80/configure libc/machine/v850/aclocal.m4
6762 libc/machine/v850/configure libc/machine/w65/aclocal.m4
6763 libc/machine/w65/configure libc/machine/xscale/aclocal.m4
6764 libc/machine/xscale/configure
6765 libc/machine/xstormy16/aclocal.m4
6766 libc/machine/xstormy16/configure libc/machine/z8k/aclocal.m4
6767 libc/machine/z8k/configure libc/sys/aclocal.m4
6768 libc/sys/configure libc/sys/a29khif/aclocal.m4
6769 libc/sys/a29khif/configure libc/sys/arc/aclocal.m4
6770 libc/sys/arc/configure libc/sys/arm/aclocal.m4
6771 libc/sys/arm/configure libc/sys/cygwin/aclocal.m4
6772 libc/sys/cygwin/configure libc/sys/d10v/aclocal.m4
6773 libc/sys/d10v/configure libc/sys/decstation/aclocal.m4
6774 libc/sys/decstation/configure libc/sys/go32/aclocal.m4
6775 libc/sys/go32/configure libc/sys/h8300hms/aclocal.m4
6776 libc/sys/h8300hms/configure libc/sys/h8500hms/aclocal.m4
6777 libc/sys/h8500hms/configure libc/sys/idt/aclocal.m4
6778 libc/sys/idt/configure libc/sys/linux/aclocal.m4
6779 libc/sys/linux/configure
6780 libc/sys/linux/machine/aclocal.m4
6781 libc/sys/linux/machine/configure
6782 libc/sys/linux/machine/i386/aclocal.m4
6783 libc/sys/linux/machine/i386/configure
6784 libc/sys/m88kbug/aclocal.m4 libc/sys/m88kbug/configure
6785 libc/sys/mmixware/aclocal.m4 libc/sys/mmixware/configure
6786 libc/sys/netware/aclocal.m4 libc/sys/netware/configure
6787 libc/sys/rtems/aclocal.m4 libc/sys/rtems/configure
6788 libc/sys/sh/aclocal.m4 libc/sys/sh/configure
6789 libc/sys/sparc64/aclocal.m4 libc/sys/sparc64/configure
6790 libc/sys/sun4/aclocal.m4 libc/sys/sun4/configure
6791 libc/sys/sysmec/aclocal.m4 libc/sys/sysmec/configure
6792 libc/sys/sysnec810/aclocal.m4 libc/sys/sysnec810/configure
6793 libc/sys/sysnecv850/aclocal.m4 libc/sys/sysnecv850/configure
6794 libc/sys/sysvi386/aclocal.m4 libc/sys/sysvi386/configure
6795 libc/sys/sysvnecv70/aclocal.m4 libc/sys/sysvnecv70/configure
6796 libc/sys/tic80/aclocal.m4 libc/sys/tic80/configure
6797 libc/sys/w65/aclocal.m4 libc/sys/w65/configure
6798 libc/sys/z8ksim/aclocal.m4 libc/sys/z8ksim/configure
6799 libm/aclocal.m4 libm/configure: Regenerated.
6800
6801 2002-09-09 Jeff Johnston <jjohnstn@redhat.com>
6802
6803 * libc/sys/linux/machine/i386/crt0.c (_start): Remove
6804 code that clears the .bss section.
6805
6806 2002-09-09 Jeff Johnston <jjohnstn@redhat.com>
6807
6808 * libc/include/sys/_types.h (_mbstate_t): Changed to use
6809 unsigned char internally.
6810 * libc/sys/linux/sys/_types.h: Ditto.
6811 * libc/include/sys/reent.h
6812 * libc/stdlib/mblen.c (mblen): Use function-specific state
6813 value from default reentrancy structure.
6814 * libc/stdlib/mblen_r.c (_mblen_r): If return code from
6815 _mbtowc_r is less than 0, reset state __count value and
6816 return -1.
6817 * libc/stdlib/mbrlen.c (mbrlen): If the input state pointer
6818 is NULL, use the function-specific pointer provided in the
6819 default reentrancy structure.
6820 * libc/stdlib/mbrtowc.c: Add reentrant form of function.
6821 If input state pointer is NULL, use function-specific area
6822 provided in reentrancy structure.
6823 * libc/stdlib/mbsrtowcs.c: Ditto.
6824 * libc/stdlib/wcrtomb.c: Ditto.
6825 * libc/stdlib/wcsrtombs.c: Ditto.
6826 * libc/stdlib/mbstowcs.c: Reformat.
6827 * libc/stdlib/wcstombs.c: Ditto.
6828 * libc/stdlib/mbstowcs_r.c (_mbstowcs_r): If an error occurs,
6829 reset the state's __count value and return -1.
6830 * libc/stdlib/mbtowc.c: Ditto.
6831 * libc/stdlib/mbtowc_r.c (_mbtowc_r): Add restartable functionality.
6832 If number of bytes is used up before completing a valid multibyte
6833 character, return -2 and save the state.
6834 * libc/stdlib/wctomb_r.c (_wctomb_r): Define __state as __count
6835 and change some __count references to __state for clarity.
6836
6837 2002-09-06 Jeff Johnston <jjohnstn@redhat.com>
6838
6839 * libc/include/sys/config.h (MB_LEN_MAX): Removed as this
6840 is defined by <limits.h>.
6841
6842 2002-09-05 Kazuhiro Fujieda <fujieda@jaist.ac.jp>
6843
6844 * libc/include/wchar.h (WCHAR_MAX): Only define if not already
6845 defined.
6846
6847 2002-09-04 Kazuhiro Fujieda <fujieda@jaist.ac.jp>
6848
6849 * libc/include/sys/config.h: Define accordingly __WCHAR_MAX__.
6850 * libc/include/wchar.h: Define WCHAR_MIN as 0 and WCHAR_MAX as
6851 __WCHAR_MAX__ or 0x7fffffffu.
6852 * libc/string/wcscmp.c: Delete wrong and unnecessary type cast.
6853 * libc/string/wcsncmp.c: Ditto.
6854
6855 2002-09-03 Jeff Johnston <jjohnstn@redhat.com>
6856
6857 * libc/string/wcschr.c: Add include of <stddef.h>.
6858 * libc/string/wcspbrk.c: Ditto.
6859 * libc/string/wcsrchr.c: Ditto.
6860 * libc/string/wcsstr.c: Ditto.
6861
6862 2002-09-03 Jeff Johnston <jjohnstn@redhat.com>
6863
6864 * libc/include/sys/_types.h (_flock_t): Added.
6865 * libc/include/sys/lock.h (__lock_try_acquire): New interface.
6866 (__lock_try_acquire_recursive): Ditto.
6867 * libc/include/sys/reent.h (__sFILE, __sFILE64): Add new
6868 _lock field.
6869 * libc/stdio/findfp.c (std)[!__SINGLE_THREAD__]: Initialize _lock
6870 field.
6871 * libc/stdio/fopen.c (_fopen_r)[!__SINGLE_THREAD__]: Ditto.
6872 * libc/stdio64/fopen64.c (_fopen64_r)[!__SINGLE_THREAD__]: Ditto.
6873 * libc/sys/linux/include/time.h (struct timespec): Moved from
6874 <sys/types.h> and added check for __need_timespec flag so type
6875 can be defined by itself.
6876 * libc/sys/linux/sys/_types.h (_flock_t): New type.
6877 * libc/sys/linux/sys/types.h (struct timespec): Moved to
6878 <time.h>.
6879
6880 2002-08-29 Thomas Fitzsimmons <fitzsim@redhat.com>
6881
6882 * libc/sys/linux/argp: New directory.
6883 * libc/sys/linux/getopt.c: New file.
6884 * libc/sys/linux/getopt1.c: New file.
6885 * libc/sys/linux/getoptlong.c: Remove file.
6886 * libc/sys/linux/include/argp.h: New file.
6887 * libc/sys/linux/Makefile.am: Define argp_dir and ARGP_LIB,
6888 based on ELIX level.
6889 (SUBDIRS): Add argp_dir.
6890 (SUBLIBS): Add ARGP_LIB.
6891 (ELIX_2_OBJS): Add getopt.$(oext), getopt1.$(oext), remove
6892 getopt_long.$(oext).
6893 * libc/sys/linux/configure.in (AC_OUTPUT): Add argp/Makefile.
6894
6895 2002-08-29 Jeff Johnston <jjohnstn@redhat.com>
6896
6897 * libc/libc.texinfo: Add node reference to wide-character strings.
6898 * libc/string/wcstrings.tex: New file.
6899 * libc/string/strtok_r.c: Remove outdated advertising clause.
6900 * libc/string/Makefile.am (doc): Add wide-character string
6901 chapter to documentation.
6902 * libc/string/Makefile.in: Regenerated.
6903
6904 2002-08-29 Kazuhiro Fujieda <fujieda@jaist.ac.jp>
6905
6906 * libc/include/wchar.h: Define NULL. Define WEOF more general
6907 way. Declare functions in newlib manner.
6908 * libc/stdlib/Makefile.am: Delete wmem*.c
6909 * libc/stdlib/Makefile.in: Regenerated.
6910 * libc/stdlib/wmemchr.c: Delete.
6911 * libc/stdlib/wmemcmp.c: Ditto.
6912 * libc/stdlib/wmemcpy.c: Ditto.
6913 * libc/stdlib/wmemmove.c: Ditto.
6914 * libc/stdlib/wmemset.c: Ditto.
6915 * libc/string/Makefile.am: Add wmem*.c and wcs*.c.
6916 * libc/string/Makefile.in: Regenerated.
6917 * libc/string/wcscat.c: New file derived from the NetBSD C Library.
6918 * libc/string/wcschr.c: Ditto.
6919 * libc/string/wcscmp.c: Ditto.
6920 * libc/string/wcscpy.c: Ditto.
6921 * libc/string/wcscspn.c: Ditto.
6922 * libc/string/wcslcat.c: Ditto.
6923 * libc/string/wcslcpy.c: Ditto.
6924 * libc/string/wcslen.c: Ditto.
6925 * libc/string/wcsncat.c: Ditto.
6926 * libc/string/wcsncmp.c: Ditto.
6927 * libc/string/wcsncpy.c: Ditto.
6928 * libc/string/wcspbrk.c: Ditto.
6929 * libc/string/wcsrchr.c: Ditto.
6930 * libc/string/wcsspn.c: Ditto.
6931 * libc/string/wcsstr.c: Ditto.
6932 * libc/string/wmemchr.c: Ditto.
6933 * libc/string/wmemcmp.c: Ditto.
6934 * libc/string/wmemcpy.c: Ditto.
6935 * libc/string/wmemmove.c: Ditto.
6936 * libc/string/wmemset.c: Ditto.
6937
6938 2002-08-29 Jeff Johnston <jjohnstn@redhat.com>
6939
6940 * libc/locale/locale.c (_setlocale_r)[MB_CAPABLE]: Fix so
6941 default locale "" is accepted for LC_CTYPE or LC_MESSAGES
6942 and is treated as if "C" was specified.
6943
6944 2002-08-28 Jeff Johnston <jjohnstn@redhat.com>
6945
6946 * Makefile.am (install-data-local): Move install of build
6947 newlib.h after installing headers in libc/include so as to
6948 overwrite default newlib.h.
6949 * Makefile.in: Regenerated.
6950
6951 2002-08-28 Jeff Johnston <jjohnstn@redhat.com>
6952
6953 * libc/include/newlib.h: New file for tools that use newlib
6954 headers but don't build newlib first (e.g. gcc).
6955
6956 2002-08-28 Jeff Johnston <jjohnstn@redhat.com>
6957
6958 * libc/stdlib/wmemchr.c: Explicitly include <_ansi.h>.
6959 * libc/stdlib/wmemcmp.c: Ditto.
6960 * libc/stdlib/wmemcpy.c: Ditto.
6961 * libc/stdlib/wmemmove.c: Ditto.
6962 * libc/stdlib/wmemset.c: Ditto.
6963
6964 2002-08-27 Egor Duda <deo@logos-m.ru>
6965
6966 * libc/stdlib/wmemchr.c: New file.
6967 * libc/stdlib/wmemcmp.c: Ditto.
6968 * libc/stdlib/wmemcpy.c: Ditto.
6969 * libc/stdlib/wmemmove.c: Ditto.
6970 * libc/stdlib/wmemset.c: Ditto.
6971 * libc/stdlib/Makefile.am (GENERAL_SOURCES): Add new files.
6972 * configure.host: Default -DMB_CAPABLE for cygwin.
6973 * libc/include/wchar.h: Declare wmemchr(), wmemcmp(), wmemcpy(),
6974 wmemmove() and wmemset(). Add include of <_ansi.h>.
6975 * libc/stdlib/Makefile.in: Regenerate.
6976
6977 2002-08-27 Jeff Johnston <jjohnstn@redhat.com>
6978
6979 * configure.host: Remove _ELIX_LEVEL flag setting.
6980 * Makefile.am(stmp-targ-include): Copy newlib.h to targ-include.
6981 (install-data-local): Install newlib.h.
6982 * Makefile.in: Regenerated.
6983 * aclocal.m4: Ditto.
6984 * configure: Ditto.
6985 * configure.in: Add AM_CONFIG_HEADER to generate newlib.h based on
6986 newlib.hin. Add AC_DEFINE_UNQUOTED entries for _ELIX_LEVEL
6987 and _NEWLIB_VERSION to fill in newlib.h header file entries.
6988 In AC_OUTPUT statement, unset ac_file so multilib support does
6989 not use last ac_file temporary used in newlib.h configuration.
6990 * libc/include/_ansi.h: Include <newlib.h>.
6991 * newlib.hin: New template file for newlib.h.
6992 * stamp-h.in: New file.
6993
6994 2002-08-26 Wu Yongwei <adah@netstd.com>
6995
6996 * time.h (timezonevar): Change "#if" to "#ifdef".
6997
6998 2002-08-26 Jeff Johnston <jjohnstn@redhat.com>
6999
7000 * Makefile.am(LIBC_OBJECTLISTS): Add STDIO64_OBJECTLIST.
7001 * Makefile.in: Regenerated.
7002 * acinclude.m4: Add support for --enable-newlib-elix-level option.
7003 * aclocal.m4: Regenerated.
7004 * configure: Ditto.
7005 * configure.host: Add code to define _ELIX_LEVEL if
7006 --enable-newlib-elix-level option is used.
7007 * configure.in:
7008 * libc/aclocal.m4: Regenerated.
7009 * libc/configure: Ditto.
7010 * libc/argz/Makefile.am: Add EL/IX level checking.
7011 * libc/argz/Makefile.in: Regenerated.
7012 * libc/argz/dummy.c: New file.
7013 * libc/ctype/Makefile.am: Add EL/IX level checking.
7014 * libc/ctype/Makefile.in: Regenerated.
7015 * libc/locale/Makefile.am: Add EL/IX level checking.
7016 * libc/locale/Makefile.in: Regenerated.
7017 * libc/posix/Makefile.am: Add EL/IX level checking.
7018 * libc/posix/Makefile.in: Regenerated.
7019 * libc/posix/telldir.c: Add EL/IX level checking.
7020 * libc/reent/Makefile.am: Ditto.
7021 * libc/reent/fstat64r.c: Ditto.
7022 * libc/reent/lseek64r.c: Ditto.
7023 * libc/reent/open64r.c: Ditto.
7024 * libc/reent/Makefile.in: Regenerated.
7025 * libc/search/Makefile.am: Add EL/IX level checking.
7026 * libc/search/Makefile.in: Regenerated.
7027 * libc/stdio/Makefile.am: Add EL/IX level checking.
7028 * libc/stdio/Makefile.in: Regenerated.
7029 * libc/stdio64/Makefile.am: Add EL/IX level checking.
7030 * libc/stdio64/Makefile.in: Regenerated.
7031 * libc/stdio64/dummy.c: New file.
7032 * libc/stdio64/fgetpos64.c: Fix so _LARGE64_FILES macro is checked
7033 after first include.
7034 * libc/stdio64/fopen64.c: Ditto.
7035 * libc/stdio64/freopen64.c: Ditto.
7036 * libc/stdio64/fseeko64.c: Ditto.
7037 * libc/stdio64/fsetpos64.c: Ditto.
7038 * libc/stdio64/ftello64.c: Ditto.
7039 * libc/stdio64/tmpfile64.c: Ditto.
7040 * libc/stdlib/Makefile.am: Add EL/IX level checking.
7041 * libc/stdlib/Makefile.in: Regenerated.
7042 * libc/stdlib/mstats.c: Add EL/IX level checking.
7043 * libc/string/Makefile.am: Ditto.
7044 * libc/string/Makefile.in: Regenerated.
7045 * libc/sys/linux/Makefile.am: Add EL/IX level checking.
7046 * libc/sys/linux/Makefile.in: Regenerated.
7047 * libc/sys/linux/aclocal.m4: Ditto.
7048 * libc/sys/linux/configure: Ditto.
7049 * libc/sys/linux/aio.c: Add EL/IX level checking.
7050 * libc/sys/linux/ftok.c: Ditto.
7051 * libc/sys/linux/getdate.c: Ditto.
7052 * libc/sys/linux/ids.c: Ditto.
7053 * libc/sys/linux/inode.c: Ditto.
7054 * libc/sys/linux/io.c: Ditto.
7055 * libc/sys/linux/process.c: Ditto.
7056 * libc/sys/linux/resource.c: Ditto.
7057 * libc/sys/linux/sched.c: Ditto.
7058 * libc/sys/linux/sig.c: Ditto.
7059 * libc/sys/linux/termios.c: Ditto.
7060 * libc/sys/linux/wait.c: Ditto plus add __waitpid and
7061 __libc___waitpid weak aliases.
7062 * libc/sys/linux/machine/i386/syscall.h: Add new _base macros
7063 that generate the code for a syscall, but do not create a
7064 weak alias.
7065 * libc/syscalls/Makefile.am: Add EL/IX level checking.
7066 * libc/syscalls/Makefile.in: Regenerated.
7067 * libc/time/tzset_r.c: Change to replace strdup with equivalent
7068 functionality.
7069 * libc/unix/Makefile.am: Add EL/IX level checking.
7070 * libc/unix/Makefile.in: Regenerated.
7071
7072 2002-08-26 Christopher Faylor <cgf@redhat.com>
7073
7074 * libc/include/malloc.h: On cygwin, define malloc _r functions as
7075 wrapper macros to standard malloc functions.
7076 * libc/include/stdlib.h: Ditto.
7077 * configure.host: Always define MALLOC_PROVIDED on cygwin.
7078
7079 2002-08-22 Thomas Fitzsimmons <fitzsim@redhat.com>
7080
7081 * libc/include/langinfo.h: New file.
7082 * libc/include/wchar.h: Likewise.
7083 * libc/include/sys/syslimits.h: Likewise.
7084 * libc/locale/fix_grouping.c: Likewise.
7085 * libc/locale/ldpart.c: Likewise.
7086 * libc/locale/ldpart.h: Likewise.
7087 * libc/locale/lmessages.c: Likewise.
7088 * libc/locale/lmessages.h: Likewise.
7089 * libc/locale/lmonetary.c: Likewise.
7090 * libc/locale/lmonetary.h: Likewise.
7091 * libc/locale/lnumeric.c: Likewise.
7092 * libc/locale/lnumeric.h: Likewise.
7093 * libc/locale/nl_langinfo.3: Likewise.
7094 * libc/locale/nl_langinfo.c: Likewise.
7095 * libc/locale/timelocal.c: Likewise.
7096 * libc/locale/timelocal.h: Likewise.
7097 * libc/stdlib/btowc.c: Likewise.
7098 * libc/stdlib/mbrlen.c: Likewise.
7099 * libc/stdlib/mbrtowc.c: Likewise.
7100 * libc/stdlib/mbsinit.c: Likewise.
7101 * libc/stdlib/mbsrtowcs.c: Likewise.
7102 * libc/stdlib/wcrtomb.c: Likewise.
7103 * libc/stdlib/wcsrtombs.c: Likewise.
7104 * libc/stdlib/wctob.c: Likewise.
7105 * libc/sys/linux/prof-freq.c: Likewise.
7106 * libc/sys/linux/profile.c: Likewise.
7107 * libc/sys/linux/machine/i386/dl-procinfo.c: Likewise.
7108 * libc/sys/linux/machine/i386/dl-procinfo.h: Likewise.
7109 * libc/include/stdlib.h: Change re-entrant functions to take
7110 mbstate_t pointers.
7111 * libc/include/sys/_types.h: Define _mbstate_t.
7112 * libc/include/sys/config.h (MB_LEN_MAX): New macro.
7113 * libc/include/sys/errno.h (EILSEQ): New error code.
7114 * libc/include/sys/reent.h: Include wchar.h. Change reentrant
7115 structure to use mbstate_t.
7116 * libc/locale/Makefile.am (LIB_SOURCES): Add new files.
7117 * libc/machine/powerpc/vfprintf.c: Use mbstate_t.
7118 * libc/machine/powerpc/vfscanf.c: Likewise.
7119 * libc/stdio/getdelim.c: Reallocate buffer only when necessary.
7120 * libc/stdio/vfprintf.c: Likewise.
7121 * libc/stdio/vfscanf.c: Likewise.
7122 * libc/stdlib/Makefile.am (LIB_SOURCES): Add new files.
7123 * libc/stdlib/mblen.c: Use mbstate_t.
7124 * libc/stdlib/mblen_r.c: Likewise.
7125 * libc/stdlib/mbstowcs.c: Likewise.
7126 * libc/stdlib/mbstowcs_r.c: Likewise.
7127 * libc/stdlib/mbtowc.c: Likewise.
7128 * libc/stdlib/mbtowc_r.c: Likewise.
7129 * libc/stdlib/wcstombs.c: Likewise.
7130 * libc/stdlib/wcstombs_r.c: Likewise.
7131 * libc/stdlib/wctomb_r.c: Likewise.
7132 * libc/sys/linux/Makefile.am (LIB_SOURCES): Add prof-freq.c and
7133 profile.c.
7134 * libc/sys/linux/machine/i386/Makefile.am (LIB_SOURCES): Add
7135 dl-procinfo.c.
7136 * libc/sys/linux/sys/errno.h (EILSEQ): New error code.
7137 * libc/sys/linux/sys/types.h (off_t): Define type.
7138 * testsuite/newlib.locale/UTF-8.c: Change locale name from UTF-8
7139 to C-UTF-8.
7140 * testsuite/newlib.locale/UTF-8.exp: Likewise.
7141
7142 2002-08-20 Casper S. Hornstrup <chorns@users.sourceforge.net>
7143
7144 * libc/stdlib/mallocr.c: #include windows.h on Win32.
7145 (AlignPage): Continue macro on next line.
7146
7147 2002-08-19 Jeff Johnston <jjohnstn@redhat.com>
7148
7149 * libc/sys/linux/include/pthread.h: New file.
7150
7151 2002-08-19 Jeff Johnston <jjohnstn@redhat.com>
7152
7153 * libc/include/sys/types.h: Support __need_inttypes macro
7154 that only sets the __intxx and __uintxx types.
7155 * libc/machine/powerpc/Makefile.am: Add stdlib to include directories
7156 to get mprec.h.
7157 * libc/machine/powerpc/Makefile.in: Regenerated.
7158 * libc/machine/powerpc/vfprintf.c: Fix state variable type.
7159 * libc/machine/powerpc/vfscanf.c: Fix state variable type. Remove
7160 redundant fixed-point conversion prototypes.
7161 * libc/machine/powerpc/machine/stdlib.h[__SPE__]: Include <sys/types.h>
7162 after setting __need_inttypes.
7163
7164 2002-08-18 Christopher Faylor <cgf@redhat.com>
7165
7166 * libc/include/sys/unistd.h: Add getsid declaration for cygwin.
7167
7168 2002-08-17 Jeff Johnston <jjohnstn@redhat.com>
7169
7170 * libc/include/sys/config.h[__PPC__][__SPE__]: Set
7171 _LONG_DOUBLE to double.
7172
7173 2002-08-17 Jeff Johnston <jjohnstn@redhat.com>
7174
7175 * configure.host: Add powerpc*-*-eabispe* configuration.
7176 * libc/machine/powerpc/atosfix16.c: New fixed-point conversion file.
7177 * libc/machine/powerpc/atosfix32.c: Ditto.
7178 * libc/machine/powerpc/atosfix64.c: Ditto.
7179 * libc/machine/powerpc/atoufix16.c: Ditto.
7180 * libc/machine/powerpc/atoufix32.c: Ditto.
7181 * libc/machine/powerpc/atoufix64.c: Ditto.
7182 * libc/machine/powerpc/fix64.h: Ditto.
7183 * libc/machine/powerpc/simdldtoa.c: Ditto.
7184 * libc/machine/powerpc/strtosfix16.c: Ditto.
7185 * libc/machine/powerpc/strtosfix32.c: Ditto.
7186 * libc/machine/powerpc/strtosfix64.c: Ditto.
7187 * libc/machine/powerpc/strtoufix16.c: Ditto.
7188 * libc/machine/powerpc/strtoufix32.c: Ditto.
7189 * libc/machine/powerpc/strtoufix64.c: Ditto.
7190 * libc/machine/powerpc/ufix64toa.c: Ditto.
7191 * libc/machine/powerpc/configure.in: Add check for
7192 powerpc*-eabispe and add fixed-point conversion functions.
7193 * libc/machine/powerpc/configure: Regenerated.
7194 * libc/machine/powerpc/vfprintf.c[__SPE__]: Add support for
7195 %r and %R format specifiers which handle fixed-point data.
7196 * libc/machine/powerpc/vfscanf.c[__SPE__]: Ditto.
7197 * libc/machine/powerpc/machine/stdlib.h[__SPE__]: Add fixed-point
7198 function prototypes.
7199
7200 2002-08-17 Jeff Johnston <jjohnstn@redhat.com>
7201
7202 * Makefile.am: Move cmath stuff into libc/sys/linux.
7203 * Makefile.in: Regenerated.
7204 * configure.host: Default -DMB_CAPABLE for x86-linux.
7205 * libc/include/reent.h: Define _sbrk to take signed int argument.
7206 * libc/include/sys/unistd.h: Ditto for _sbrk_r and sbrk.
7207 * libc/locale/locale.c[MB_CAPABLE]: Add LC_MESSAGES support and
7208 make locale name checking more efficient. Also allow "C-ISO-8859-1"
7209 locale for LC_CTYPE and LC_MESSAGES.
7210 * libc/reent/sbrkr.c: Change prototype to take ptrdiff_t.
7211 * libc/sys/linux/brk.c: Change sbrk prototype.
7212 * libc/sys/linux/include/time.h: Remove Cygwin stuff and
7213 include <sys/features.h>.
7214 (CLOCK_THREAD_CPUTIME): Renamed to CLOCK_THREAD_CPUTIME_ID.
7215 (CLOCK_PROCESS_CPUTIME): Renamed to CLOCK_PROCESS_CPUTIME_ID.
7216 * libc/sys/linux/sys/cdefs.h: Replace with glibc sys/cdefs.h
7217 with a few local additions.
7218 * libc/sys/linux/sys/features.h: New file.
7219 * libc/sys/linux/sys/unistd.h: Change _sbrk_r and sbrk prototypes
7220 to take signed argument.
7221 * libc/syscalls/syssbrk.c: Change sbrk, _sbrk_r, and _sbrk
7222 prototypes to take signed size argument.
7223
7224 2002-08-16 Thomas Fitzsimmons <fitzsim@redhat.com>
7225
7226 * libc/sys/linux/cmath: New directory.
7227 * libc/sys/linux/include/cmathcalls.h: New file.
7228 * libc/sys/linux/include/complex.h: New file.
7229 * libc/sys/linux/machine/i386/huge_val.h: New file
7230 * libm/math/w_sincos.c: New file
7231 * libm/math/wf_sincos.c: New file
7232 * libm/mathfp/s_sincos.c: New file
7233 * libm/mathfp/sf_sincos.c: New file
7234 * Makefile.am (LIBC_OBJECTLISTS): Add cmath/objectlist.awk.in.
7235 * libc/include/math.h: Add sincos and sincosf declarations.
7236 * libc/sys/linux/Makefile.am (SUBDIRS): Add cmath.
7237 (SUBLIBS): Likewise.
7238 * libc/sys/linux/configure.in (AC_OUTPUT): Add cmath.
7239 * libm/math/Makefile.am (src): Add w_sincos.c.
7240 (fsrc): Add wf_sincos.c.
7241 * libm/mathfp/Makefile.am (src): Add s_sincos.c
7242 (fsrc): Add sf_sincos.c.
7243
7244 2002-08-12 Jeff Johnston <jjohnstn@redhat.com>
7245
7246 * libc/sys/linux/machine/i386/crt0.c (__bss_start,_end):
7247 Declare as extern chars and use the address operator to
7248 properly use values set in linker script.
7249
7250 2002-08-09 Jason Tishler <jason@tishler.net>
7251
7252 * libc/stdlib/mallocr.c: Include <limits.h>.
7253 (request2size): Change macro to do
7254 unsigned long comparisons and avoid signed overflow.
7255 (mALLOc): Add overflow check for the number of bytes to allocate.
7256 (rEALLOc): Ditto.
7257
7258 2002-08-09 Jeff Johnston <jjohnstn@redhat.com>
7259
7260 * configure.host: Add check for --enable-newlib-io-pos-args
7261 and define WANT_IO_POS_ARGS flag if enabled. Define
7262 the flag by default for x86-linux configurations.
7263 * configure.in: Add support for --enable-newlib-io-pos-args.
7264 * libc/configure.in: Ditto.
7265 * configure: Regenerated.
7266 * libc/configure: Ditto.
7267 * libc/stdio/Makefile.am: Specify -fshort-enums for compiling
7268 vfprintf.c and vfiprintf.c.
7269 * libc/stdio/Makefile.in: Regenerated.
7270 * libc/stdio/vfprintf.c: Add positional argument support that
7271 is enabled by compiling with -DWANT_IO_POS_ARGS.
7272
7273 2002-08-07 Richard Sandiford <rsandifo@redhat.com>
7274
7275 * libc/include/machine/setjmp.h: For mips, define _JBLEN based
7276 based on __mips_soft_float rather than __mips64.
7277 * libc/machine/mips/setjmp.S: Provide hard and soft float versions
7278 of both 32-bit and 64-bit code.
7279
7280 2002-08-04 Christopher Faylor <cgf@redhat.com>
7281
7282 * libc/stdio/popen.c (popen): Allow "rb", "rt", "wb", and "wt"
7283 arguments for popen to match similar functionality in fopen.
7284
7285 2002-07-29 Pierre Humblet <pierre.humblet@ieee.org>
7286
7287 * libc/include/sys/unistd.h: Add setgroups prototype for Cygwin.
7288
7289 2002-07-29 Jeff Johnston <jjohnstn@redhat.com>
7290
7291 * libc/sys/linux/Makefile.am: Add aio64.c.
7292 * libc/sys/linux/Makefile.in: Regenerated.
7293 * libc/sys/linux/aio.c (aio_init): ENOSYS stub added.
7294 * libc/sys/linux/aio64.c: New file.
7295
7296 2002-07-26 Jeff Johnston <jjohnstn@redhat.com>
7297
7298 * libc/include/sys/param.h (MAX, MIN): Added macros.
7299 * libc/sys/linux/Makefile.am: Add new files.
7300 * libc/sys/linux/Makefile.in: Regenerated.
7301 * libc/sys/linux/sys/stat.h: Add *stat64 prototypes.
7302 * libc/sys/linux/inode.c (fchdir): Added syscall.
7303 * libc/sys/linux/ftw.c: New file.
7304 * libc/sys/linux/ftw64.c: Ditto.
7305 * libc/sys/linux/getwd.c: Ditto.
7306 * libc/sys/linux/scandir64.c: Ditto.
7307 * libc/sys/linux/strverscmp.c: Ditto.
7308 * libc/sys/linux/versionsort.c: Ditto.
7309 * libc/sys/linux/versionsort64.c: Ditto.
7310
7311 2002-07-26 Jeff Johnston <jjohnstn@redhat.com>
7312
7313 * libc/string/strings.tex: Fix typo for memccpy.
7314
7315 2002-07-25 Jeff Johnston <jjohnstn@redhat.com>
7316
7317 * libc/sys/linux/io64.c (truncate64, ftruncate64): Added.
7318 * libc/sys/linux/sys/types.h (off64_t): Definition added.
7319
7320 2002-07-25 Jeff Johnston <jjohnstn@redhat.com>
7321
7322 * libc/sys/linux/Makefile.am: Add fclean.c.
7323 * libc/sys/linux/Makefile.in: Regenerated.
7324 * libc/sys/linux/fclean.c: New file.
7325
7326 2002-07-25 Jeff Johnston <jjohnstn@redhat.com>
7327
7328 * libc/sys/linux/Makefile.am: Add confstr.c.
7329 * libc/sys/linux/Makefile.in: Regenerated.
7330 * libc/sys/linux/confstr.c: New file.
7331 * libc/sys/linux/confstr.h: Ditto.
7332 * libc/sys/linux/sys/unistd.h: Include <features.h> and
7333 <bits/environments.h>.
7334
7335 2002-07-25 Jeff Johnston <jjohnstn@redhat.com>
7336
7337 * libc/sys/linux/config.h (__set_errno): Macro definition removed.
7338 * libc/sys/linux/fpathconf.c (__set_errno): Ditto.
7339 * libc/sys/linux/libc-internal.h (__set_errno): Ditto.
7340 * libc/sys/linux/pathconf.c (__set_errno): Ditto.
7341 * libc/sys/linux/ttyname_r.c (__set_errno): Ditto.
7342 * libc/sys/linux/sys/errno.h (__set_errno): Macro definition added.
7343
7344 2002-07-24 Jeff Johnston <jjohnstn@redhat.com>
7345
7346 * libc/sys/linux/Makefile.am: Add new files.
7347 * libc/sys/linux/Makefile.in: Regenerated.
7348 * libc/sys/linux/fstab.c: New file.
7349 * libc/sys/linux/fstatvfs.c: Ditto.
7350 * libc/sys/linux/fstatvfs64.c: Ditto.
7351 * libc/sys/linux/internal_statvfs.c: Ditto.
7352 * libc/sys/linux/mntent.c: Ditto.
7353 * libc/sys/linux/mntent_r.c: Ditto.
7354 * libc/sys/linux/statvfs.c: Ditto.
7355 * libc/sys/linux/statvfs64.c: Ditto.
7356 * libc/sys/linux/include/paths.h: Ditto.
7357 * libc/sys/linux/inode.c (statfs, fstatfs): New syscalls
7358 with double-underscore weak-aliases.
7359 * libc/sys/linux/sys/stat.h: Add *stat64 prototypes.
7360
7361 2002-07-24 Jeff Johnston <jjohnstn@redhat.com>
7362
7363 * libc/include/signal.h (SIG_IGN, SIG_DFL, SIG_ERR): Change
7364 to use _sig_func_ptr type casted constants.
7365 (_sig_func_ptr): Typedef moved to sys/signal.h.
7366 * libc/include/sys/signal.h (_sig_func_ptr): Typedef added.
7367 For __rtems, use POSIX definition, otherwise default to ANSI.
7368 * libc/sys/linux/sys/signal.h (_sig_func_ptr): Typedef added.
7369
7370 2002-07-24 Stephane Carrez <stcarrez@nerim.fr>
7371
7372 * configure.host: Recognize m6811-elf and m6812-elf targets.
7373 * libc/include/machine/setjmp.h (_JBLEN): Define for 68hc11/68hc12.
7374 * libc/include/machine/ieeefp.h (__IEEE_BIG_ENDIAN): Define for 68HC11.
7375 (_DOUBLE_IS_32BITS): Define when compiling with -fshort-double.
7376 * libc/include/sys/config.h (INT_MAX, UINT_MAX): Define
7377 according to __INT_MAX__.
7378 (_POINTER_INT): Define to short.
7379 * libc/machine/m68hc11/Makefile.am: New file.
7380 * libc/machine/m68hc11/Makefile.in: New file.
7381 * libc/machine/m68hc11/configure.in: New file.
7382 * libc/machine/m68hc11/configure: New file.
7383 * libc/machine/m68hc11/aclocal.m4: New file.
7384 * libc/machine/m68hc11/setjmp.S: New file.
7385
7386 2002-07-23 Jeff Johnston <jjohnstn@redhat.com>
7387
7388 * libc/include/string.h: Add mempcpy, strndup, and _strndup_r
7389 prototypes.
7390 * libc/stdlib/Makefile.am: Remove strdup.c and strdup_r.c.
7391 * libc/stdlib/Makefile.in: Regenerated.
7392 * libc/stdlib/strdup.c: Removed.
7393 * libc/stdlib/strdup_r.c: Removed.
7394 * libc/string/Makefile.am: Add strdup.c, strdup_r.c, memccpy.c,
7395 mempcpy.c, strndup.c, and strndup_r.c.
7396 * libc/string/Makefile.in: Regenerated.
7397 * libc/string/memccpy.c: New file.
7398 * libc/string/mempcpy.c: Ditto.
7399 * libc/string/strndup.c: Ditto.
7400 * libc/string/strndup_r.c: Ditto.
7401 * libc/string/strdup.c: New file moved from stdlib.
7402 * libc/string/strdup_r.c: Ditto.
7403 * libc/string/strings.tex: Add memccpy and mempcpy documentation.
7404
7405 2002-07-23 Jeff Johnston <jjohnstn@redhat.com>
7406
7407 * libc/include/stdio.h: Move fcloseall prototype within
7408 #ifndef _REENT_ONLY section.
7409 * libc/sys/linux/Makefile.am: Add new files.
7410 * libc/sys/linux/Makefile.in: Regenerated.
7411 * libc/sys/linux/sys/stdio.h: Add ctermid prototype.
7412 * libc/sys/linux/sys/unistd.h: Add ttyname_r prototype.
7413 * libc/sys/linux/sys/types.h: Add ino64_t type.
7414 * libc/sys/linux/ctermid.c: New file.
7415 * libc/sys/linux/ttyname_r.c: Ditto.
7416 * libc/sys/linux/readdir64.c: Ditto.
7417
7418 2002-07-22 Jeff Johnston <jjohnstn@redhat.com>
7419
7420 * libc/include/stdio.h (fcloseall, _fcloseall_r): Added prototypes.
7421 * libc/stdio/Makefile.am: Added fcloseall.c support.
7422 * libc/stdio/Makefile.in: Regenerated.
7423 * libc/stdio/fcloseall.c: New file.
7424 * libc/stdio64/Makefile.am: Remove missing .def references.
7425 * libc/stdio64/Makefile.in: Regenerated.
7426
7427 2002-07-22 Jeff Johnston <jjohnstn@redhat.com>
7428
7429 * libc/machine/powerpc/time.c: Removed..renamed to times.c.
7430 * libc/machine/powerpc/times.c: New file.
7431 * libc/machine/powerpc/Makefile.am: Change time.c to times.c.
7432 * libc/machine/powerpc/Makefile.in: Regenerated.
7433
7434 2002-07-22 Aldy Hernandez <aldyh@redhat.com>
7435
7436 * libc/machine/powerpc/time.c: New file.
7437 * libc/machine/powerpc/Makefile.am (lib_a_SOURCES): Add
7438 time.c.
7439 * libc/machine/powerpc/Makefile.in: Regenerated.
7440
7441 2002-07-22 Thomas Fitzsimmons <fitzsim@redhat.com>
7442
7443 * libc/libc.texinfo: Change copyright notices to Red Hat from
7444 Cygnus.
7445 * libm/libm.texinfo: Likewise.
7446 * README: Change docs URL to
7447 http://sources.redhat.com/newlib/docs.html.
7448
7449 2002-07-19 Jeff Johnston <jjohnstn@redhat.com>
7450
7451 * libc/sys/linux/Makefile.am: Add pathconf.c and fpathconf.c.
7452 * libc/sys/linux/Makefile.in: Regenerated.
7453 * libc/sys/linux/inode.c: Add chmod, fchmod, and chown syscalls.
7454 * libc/sys/linux/io.c: Add ftruncate syscall.
7455 * libc/sys/linux/fpathconf.c: New file.
7456 * libc/sys/linux/pathconf.c: Ditto.
7457 * libc/sys/linux/linux_fsinfo.h: Ditto.
7458 * libc/sys/linux/sys/unistd.h: Ditto.
7459
7460 2002-07-19 Jeff Johnston <jjohnstn@redhat.com>
7461
7462 * libc/stdio64/Makefile.am: Remove missing files.
7463 * libc/stdio64/Makefile.in: Regenerated.
7464
7465 2002-07-19 Jeff Johnston <jjohnstn@redhat.com>
7466
7467 * libc/include/sys/config.h[__i386__][__linux__]: Define
7468 _LARGE64FILE_SOURCE to 1.
7469 * libc/sys/linux/Makefile.am: Add getrlimit64.c and setrlimit64.c.
7470 * libc/sys/linux/Makefile.in: Regenerated.
7471 * libc/sys/linux/resource.c: Add __getrlimit and __setrlimit aliases.
7472 * libc/sys/linux/sys/linux_time.h: Protect struct timeval definition.
7473 * libc/sys/linux/sys/resource.h: Include <bits/resource.h> instead
7474 of <linux/resource.h>.
7475 * libc/sys/linux/getrlimit64.c: New file.
7476 * libc/sys/linux/setrlimit64.c: Ditto.
7477
7478 2002-07-19 Thomas Fitzsimmons <fitzsim@redhat.com>
7479
7480 * libc/argz/argz_replace.c: Include buf_findstr.h.
7481 * libc/argz/buf_findstr.c: Likewise.
7482 * libc/argz/envz_entry.c: Include buf_findstr.h. Cast return
7483 value to (char *).
7484 * libc/argz/envz_get.c: Likewise.
7485 * libc/include/sys/unistd.h: Add getopt and getsubopt declarations.
7486 * libc/stdlib/Makefile.am (LIB_SOURCES): Add getsubopt.c.
7487 * libc/stdlib/getsubopt.3: New file.
7488 * libc/stdlib/getsubopt.c: New file.
7489 * libc/sys/linux/machine/i386/socketcall.h (__sockcall_base):
7490 Change esp to ebp.
7491
7492 2002-07-17 Jeff Johnston <jjohnstn@redhat.com>
7493
7494 * configure.host(stdio64_dir): New setting that is used to
7495 enable building of new stdio64 directory.
7496 * libc/Makefile.am[HAVE_STDIO64_DIR]: Add support for
7497 large files.
7498 (stmp-stdio64,stdio64.texi): New targets to optionally add in
7499 stdio64 info to info files.
7500 * libc/Makefile.in: Regenerated.
7501 * libc/configure: Ditto.
7502 * libc/configure.in: Add configuration variables that are set
7503 when stdio64 is selected as subdir in configure.host.
7504 * libc/libc.texinfo: Add optional menu item for Stdio64, based
7505 on whether STDIO64 flag is set or not.
7506 * libc/sys.tex: Add optional stdio64 syscalls based on whether
7507 STDIO64 flag is set or not.
7508 * libc/include/reent.h[__LARGE64_FILES]: Add new stdio64
7509 _r sycall routines.
7510 * libc/include/stdio.h[__LARGE64_FILES]: Add new stdio64 prototypes.
7511 (FILE): Typedef'd to __FILE instead of struct __sFILE directly.
7512 (__SL64): New file flag indicating file is opened via fopen64.
7513 * libc/include/sys/_types.h(_off64_t): Added.
7514 * libc/include/sys/config.h: For x86-linux, define __LARGE64_FILES.
7515 * libc/include/sys/reent.h(struct __sFILE64): New file structure
7516 for 64-bit offset large file support.
7517 (__FILE): New intermediate type either set to struct __sFILE64 or
7518 struct __sFILE, depending on whether __LARGE64_FILES is set or not.
7519 * libc/reent/Makefile.am[HAVE_STDIO64_DIR]: Add new files.
7520 * libc/reent/Makefile.in: Regenerated.
7521 * libc/reent/fstat64r.c: New file.
7522 * libc/reent/lseek64r.c: Ditto.
7523 * libc/reent/open64r.c: Ditto.
7524 * libc/reent/reent.tex: Optionally add stdio64 reentrant syscalls
7525 based on whether STDIO64 flag is set.
7526 * libc/stdio/stdio.tex: Add blank line.
7527 * libc/stdio64/Makefile.am: New file.
7528 * libc/stdio64/Makefile.in: Ditto.
7529 * libc/stdio64/fgetpos64.c: Ditto.
7530 * libc/stdio64/fopen64.: Ditto.
7531 * libc/stdio64/freopen64.c: Ditto.
7532 * libc/stdio64/fseeko64.c: Ditto.
7533 * libc/stdio64/fsetpos64.c: Ditto.
7534 * libc/stdio64/ftello64.c: Ditto.
7535 * libc/stdio64/local64.h: Ditto.
7536 * libc/stdio64/stdio64.c: Ditto.
7537 * libc/stdio64/stdio64.tex: Ditto.
7538 * libc/stdio64/tmpfile64.c: Ditto.
7539 * libc/sys/linux/io64.c: Add weak aliases for lseek64, fstat64, and
7540 open64.
7541
7542 2002-07-16 Jeff Johnston <jjohnstn@redhat.com>
7543
7544 * libc/Makefile.am (stmp-extra): New target to set makeinfo flag
7545 if LIBC_EXTRA_LIB is present.
7546 * libc/Makefile.in: Regenerated.
7547 * libc/libc.texinfo: Add blank line.
7548 * libc/argz/Makefile.am: Add doc support.
7549 * libc/search/Makefile.am: Ditto.
7550 * libc/argz/Makefile.in: Regenerated.
7551 * libc/search/Makefile.in: Ditto.
7552 * libc/misc/misc.tex: Add ffs function.
7553 * libc/stdio/ftell.c: Fix missing doc delimeter in description.
7554
7555 2002-07-15 Jeff Johnston <jjohnstn@redhat.com>
7556
7557 * libc/include/sys/config.h[__H8300__]: Replace __SMALL_BITFIELDS
7558 definition that was removed in error.
7559
7560 2002-07-15 Jeff Johnston <jjohnstn@redhat.com>
7561
7562 * libc/include/machine/ieeefp.h: Change to only define
7563 floating point defines (e.g one of __IEEE_BIG_ENDIAN or
7564 __IEEE_LITTLE_ENDIAN must be defined for each platform).
7565 * libc/include/sys/config.h: Include <machine/ieeefp.h> and
7566 remove redundant floating point definitions.
7567
7568 2002-07-15 Jeff Johnston <jjohnstn@redhat.com>
7569
7570 * libc/sys/linux/callocr.c: Fix so code references
7571 calloc.
7572
7573 2002-07-15 Jeff Johnston <jjohnstn@redhat.com>
7574
7575 * libc/sys/linux/Makefile.am: Add new files.
7576 * libc/sys/linux/Makefile.in: Regenerated.
7577 * libc/sys/linux/bp-sym.h: Moved to include directory.
7578 * libc/sys/linux/mmap.c: Add weak aliases: __mmap, __munmap, __mremap.
7579 * libc/sys/linux/inode.c: Set _LIBC to 1.
7580 * libc/sys/linux/mq_close.c: Ditto.
7581 * libc/sys/linux/mq_getattr.c: Ditto.
7582 * libc/sys/linux/mq_open.c: Ditto.
7583 * libc/sys/linux/mq_receive.c: Ditto.
7584 * libc/sys/linux/mq_send.c: Ditto.
7585 * libc/sys/linux/mq_setattr.c: Ditto.
7586 * libc/sys/linux/mq_unlink.c: Ditto.
7587 * libc/sys/linux/calloc.c: New file.
7588 * libc/sys/linux/callocr.c: Ditto.
7589 * libc/sys/linux/cfreer.c: Ditto.
7590 * libc/sys/linux/config.h: Ditto.
7591 * libc/sys/linux/free.c: Ditto.
7592 * libc/sys/linux/freer.c: Ditto.
7593 * libc/sys/linux/msize.c: Ditto.
7594 * libc/sys/linux/msizer.c: Ditto.
7595 * libc/sys/linux/mstats.c: Ditto.
7596 * libc/sys/linux/mtrim.c: Ditto.
7597 * libc/sys/linux/mtrimr.c: Ditto.
7598 * libc/sys/linux/pvallocr.c: Ditto.
7599 * libc/sys/linux/realloc.c: Ditto.
7600 * libc/sys/linux/reallocr.c: Ditto.
7601 * libc/sys/linux/thread-m.h: Ditto.
7602 * libc/sys/linux/vallocr.c: Ditto.
7603 * libc/sys/linux/bp-checks.h: Ditto.
7604 * libc/sys/linux/libc-symbols.h: Ditto.
7605 * libc/sys/linux/libc-tsd.h: Ditto.
7606 * libc/sys/linux/libintl.h: Ditto.
7607 * libc/sys/linux/malign.c: Ditto.
7608 * libc/sys/linux/malignr.c: Ditto.
7609 * libc/sys/linux/mallinfor.c: Ditto.
7610 * libc/sys/linux/malloc.c: Ditto.
7611 * libc/sys/linux/mallocr.c: Ditto.
7612 * libc/sys/linux/malloptr.c: Ditto.
7613 * libc/sys/linux/mallstatsr.c: Ditto.
7614 * libc/sys/linux/mcheck.c: Ditto.
7615 * libc/sys/linux/mhooks.h: Ditto.
7616 * libc/sys/linux/include/bp-sym.h: Ditto.
7617 * libc/sys/linux/include/malloc.h: Ditto.
7618 * libc/sys/linux/include/mcheck.h: Ditto.
7619 * libc/sys/linux/linuxthreads/machine/i386/Makefile.am: Remove
7620 getpagesize.c.
7621 * libc/sys/linux/linuxthreads/machine/i386/Makefile.in: Regenerated.
7622 * libc/sys/linux/linuxthreads/machine/i386/getpagesize.c: Moved.
7623 * libc/sys/linux/machine/i386/getpagesize.c: New file.
7624 * libc/sys/linux/machine/i386/Makefile.am: Add getpagesize.c.
7625 * libc/sys/linux/machine/i386/Makefile.in: Regenerated.
7626 * libc/sys/linux/machine/i386/sysdep.h: New file.
7627 * libc/sys/linux/machine/i386/weakalias.h: Add weak_function support.
7628 * libc/sys/linux/sys/dirent.h: Set _LIBC to 1.
7629 * libc/sys/linux/sys/lock.h: Include <machine/weakalias.h>.
7630
7631 2002-07-12 Jeff Johnston <jjohnstn@redhat.com>
7632
7633 * libc/sys/linux/include/mqueue.h: Change to use <bits/siginfo.h>
7634 instead of <asm/siginfo.h>.
7635 * libc/sys/linux/sys/signal.h: Change to include various linux
7636 <bits/xxx.h> header files, rather than <linux/signal.h> so as
7637 to work with multiple releases of glibc header files.
7638
7639 2002-07-11 Chris Demetriou <cgd@broadcom.com>
7640
7641 * testsuite/newlib.search/hsearchtest.c: New file to test
7642 newlib/libc/search.
7643 * testsuite/newlib.search/hsearchtest.exp: Likewise.
7644
7645 2002-07-10 Florian Schrack <florian.schrack@freenet.de>
7646
7647 * libc/sys/mmixware/read.c: Use SYS_Fgets syscall if dealing with
7648 a terminal.
7649 * libc/sys/mmixware/sys/syscall.h (SYS_Fgets): Definition added.
7650
7651 2002-07-08 Jeff Johnston <jjohnstn@redhat.com>
7652
7653 * libc/include/math.h (MAXFLOAT): Added.
7654
7655 Mon Jul 8 13:55:23 2002 J"orn Rennecke <joern.rennecke@superh.com>
7656
7657 * libc/machine/sh/Makefile.am (lib_a_SOURCES):
7658 Make strcmp.S unconditional.
7659 * libc/machine/sh/Makefile.in: Regenerate.
7660 * libc/machine/sh/asm.h (DELAYED_BRANCHES, SL): Also for __SH5__ .
7661 * strcmp.S (strcmp): Add SHmedia variant. Use different registers
7662 for SHcompact.
7663
7664 2002-07-04 Jeff Johnston <jjohnstn@redhat.com>
7665
7666 * libc/sys/linux/inode.c: Fix utime prototype and add _LIBC
7667 define before including <sys/lock.h>.
7668
7669 2002-07-04 Jeff Johnston <jjohnstn@redhat.com>
7670
7671 * libc/include/utime.h: Add include of <_ansi.h>.
7672 * libc/sys/linux/Makefile.am: Add utimes.c.
7673 * libc/sys/linux/Makefile.in: Regenerated.
7674 * libc/sys/linux/inode.c(__umask): New static routine.
7675 (umask): Written to use __umask and attempt to thread lock.
7676 (getumask): New function written to use __umask and thread lock.
7677 * libc/sys/linux/utimes.c: New file.
7678 * libc/sys/linux/sys/time.h: Fix utimes prototype.
7679 * libc/sys/linux/sys/utime.h: New file.
7680
7681 2002-07-04 Thomas Fitzsimmons <fitzsim@redhat.com>
7682
7683 * libtool.m4: New file.
7684 * libc/sys/linux/process.c: Implement vfork in terms of fork,
7685 rather than as a syscall.
7686
7687 2002-07-04 Jeff Johnston <jjohnstn@redhat.com>
7688
7689 * libc/include/stdio.h: Add new prototypes.
7690 * libc/stdio/Makefile.am: Add fseeko.c and ftello.c.
7691 * libc/stdio/Makefile.in: Regenerated.
7692 * libc/stdio/fseek.c: Add fseeko documentation.
7693 * libc/stdio/ftell.c: Add ftello documentation.
7694 * libc/stdio/fseeko.c: New file.
7695 * libc/stdio/ftello.c: New file.
7696
7697 2002-07-04 Jeff Johnston <jjohnstn@redhat.com>
7698
7699 * libc/stdio/Makefile.am: Add asprintf.c and vasprintf.c.
7700 * libc/stdio/Makefile.in: Regenerated.
7701 * libc/stdio/asprintf.c: New file.
7702 * libc/stdio/vasprintf.c: Ditto.
7703 * libc/stdio/fvwrite.c: Add code to dynamically reallocate
7704 the buffer for asprintf support.
7705 * libc/stdio/sprintf.c: Add asprintf documentation.
7706 * libc/stdio/vfprintf.c: Add vasprintf documentation.
7707 * libc/include/stdio.h: Add new prototypes.
7708
7709 2002-07-02 Thomas Fitzsimmons <fitzsim@redhat.com>
7710
7711 * libc/search/hcreate.c: Remove advertising clause from license.
7712 * libc/search/hcreate_r.c: Likewise.
7713
7714 2002-07-02 Chris Demetriou <cgd@broadcom.com>
7715
7716 * libc/include/sys/config.h (__IEEE_LITTLE_ENDIAN)
7717 (__IEEE_BIG_ENDIAN): Define appropriately for MIPS.
7718 Check that one of them is defined and error out if not.
7719 Add any platforms defined in <machine/ieeefp.h> that are missing.
7720 * libc/search/hash.h (DB_BYTE_ORDER, DB_BIG_ENDIAN)
7721 (DB_LITTLE_ENDIAN): New defines.
7722 * libc/search/hash.c: Replace all incorrect checks for
7723 _IEEE_LITTLE_ENDIAN with tests of BYTE_ORDER, and all uses of
7724 BYTE_ORDER, LITTLE_ENDIAN, and BIG_ENDIAN with DB_* versions.
7725 * libc/search/hash_page.c: Likewise.
7726
7727 2002-06-28 Thomas Fitzsimmons <fitzsim@redhat.com>
7728
7729 * libm/mathfp/sf_pow.c (powf): Change k from int to float.
7730
7731 2002-06-27 Benjamin Kosnik <bkoz@redhat.com>
7732
7733 * libc/include/stdio.h: Untangle, add _BEGIN_STD_C and _END_STD_C.
7734 * libc/include/time.h: Same.
7735 * libc/include/string.h: Same.
7736 * libc/include/stdlib.h: Same.
7737 * libc/include/signal.h: Same.
7738 * libc/include/setjmp.h: Same.
7739 * libc/include/math.h: Same.
7740 * libc/include/locale.h: Same.
7741 * libc/include/ctype.h: Same.
7742 * libc/include/machine/setjmp.h: Same.
7743 * libc/include/_ansi.h (_BEGIN_STD_C): Add.
7744 (_END_STD_C): Add.
7745
7746 2002-06-27 Jeff Johnston <jjohnstn@redhat.com>
7747
7748 * libc/include/sys/_types.h: Define _ssize_t as int if int is
7749 32-bits, otherwise define it as long.
7750 * libc/include/sys/types.h: Include <_ansi.h> and <sys/_types.h>
7751 and define ssize_t as _ssize_t.
7752 * libc/reent/readr.c: Change return type to _ssize_t.
7753 * libc/reent/writer.c: Ditto.
7754 * libc/sys/linux/Makefile.am: Add aio.c.
7755 * libc/sys/linux/Makefile.in: Regenerated.
7756 * libc/sys/linux/aio.c: New file.
7757 * libc/sys/linux/sys/cdefs.h: Add __restrict_arr definition.
7758 * libm/common/fdlibm.h: Undef __P before defining it.
7759
7760 2002-06-27 Thomas Fitzsimmons <fitzsim@redhat.com>
7761
7762 * libm/mathfp/s_pow.c (pow): Fix checks on variable k. Add
7763 exponent_is_even_int variable. Handle case where x is
7764 negative, and y is an odd integer.
7765 * libm/mathfp/sf_pow.c (powf): Likewise.
7766
7767 * libm/mathfp/er_lgamma.c: Remove __kernel references.
7768 * libm/mathfp/erf_lgamma.c: Likewise.
7769 * libm/mathfp/s_tgamma.c: Likewise.
7770 * libm/mathfp/sf_tgamma.c: Likewise.
7771
7772 2002-06-27 Jeff Johnston <jjohnstn@redhat.com>
7773
7774 * libc/sys/linux/Makefile.am: Add new clock routines.
7775 * libc/sys/linux/Makefile.in: Regenerated.
7776 * libc/sys/linux/clock_getres.c: New file.
7777 * libc/sys/linux/clock_gettime.c: Ditto.
7778 * libc/sys/linux/clock_settime.c: Ditto.
7779 * libc/sys/linux/hp-timing.h: Ditto.
7780 * libc/sys/linux/libc-internal.h: Ditto.
7781 * libc/sys/linux/sysconf.c: Fix typo.
7782 * libc/sys/linux/include/time.h: Add include of <sys/linux_time.h>.
7783 * libc/sys/linux/machine/hp-timing.h: New file.
7784 * libc/sys/linux/machine/i386/Makefile.am: Add new files.
7785 * libc/sys/linux/machine/i386/Makefile.in: Regenerated.
7786 * libc/sys/linux/machine/i386/get_clockfreq.c: New file.
7787 * libc/sys/linux/machine/i386/hp-timing.c: Ditto.
7788 * libc/sys/linux/machine/i386/hp-timing.h: Ditto.
7789 * libc/sys/linux/sys/linux_time.h: New file.
7790 * libc/sys/linux/sys/time.h: Remove include of <linux/time.h> and
7791 replace with <sys/linux_time.h>.
7792
7793 Wed Jun 26 16:33:25 2002 J"orn Rennecke <joern.rennecke@superh.com>
7794
7795 * libc/sys/sh/crt0.S: Remove vestigial .section directive.
7796
7797 2002-06-25 Jeff Johnston <jjohnstn@redhat.com>
7798
7799 * libc/sys/linux/Makefile.am: Consolidate additional items under
7800 ADD_OBJS.
7801 * libc/sys/linux/Makefile.in: Regenerated.
7802
7803 2002-06-25 Jeff Johnston <jjohnstn@redhat.com>
7804
7805 * libc/sys/linux/sethostname.c: New file.
7806 * libc/sys/linux/Makefile.am: Add sethostname.c support.
7807 * libc/sys/linux/Makefile.in: Regenerated.
7808
7809 2002-06-24 Thomas Fitzsimmons <fitzsim@redhat.com>
7810
7811 * libc/search/db_local.h: New file.
7812 * libc/include/db.h: Remove.
7813 * libc/search/Makefile.am (LIB_SOURCES): Add db_local.h.
7814 * libc/search/hash.c (MIN,MAX): Add macros. Change <db.h> to
7815 "db_local.h".
7816 * libc/search/hash_bigkey.c: Likewise.
7817 * libc/search/hash_buf.c: Likewise.
7818 * libc/search/hash_func.c: Likewise.
7819 * libc/search/hash_log2.c: Likewise.
7820 * libc/search/hash_page.c: Likewise.
7821
7822 2002-06-24 J"orn Rennecke <joern.rennecke@superh.com>
7823
7824 * libc/machine/sh/strlen.S: New file.
7825 * libc/machine/sh/Makefile.am (lib_a_SOURCES): Add rule for it.
7826 * libc/machine/sh/Makefile.am: Regenerate.
7827
7828 2002-06-24 Jeff Johnston <jjohnstn@redhat.com>
7829
7830 * libc/sys/linux/gethostname.c: Change name to __gethostname and
7831 add gethostname alias.
7832
7833 2002-06-24 Jeff Johnston <jjohnstn@redhat.com>
7834
7835 * libc/include/math.h: Remove <sys/types.h>.
7836 (__dmath): Use __ULong instead of __uint32_t.
7837 * libc/include/sys/reent.h: If long or int is not 32-bits,
7838 include <sys/types.h> to get definitions for __int32_t and __uint32_t.
7839 * libc/stdlib/mprec.h: Include <sys/types.h> to get integer defs.
7840 * libm/common/fdlibm.h: Ditto.
7841
7842 2002-06-24 Thomas Fitzsimmons <fitzsim@redhat.com>
7843
7844 * libc/include/ndbm.h: Remove.
7845 * libc/search/ndbm.c: Remove.
7846
7847 2002-06-24 WATANABE Hirofumi <eban@os.rim.or.jp>
7848
7849 * libc/stdio/fseek.c (fseek): Fix braces.
7850
7851 2002-06-21 Corinna Vinschen <corinna@vinschen.de>
7852
7853 * libc/time/strftime.c (strftime): Add %e format specifier.
7854
7855 2002-06-21 Thomas Fitzsimmons <fitzsim@redhat.com>
7856
7857 * libc/search/hash.h (LITTLE_ENDIAN, BIG_ENDIAN): Define if not
7858 previously defined.
7859
7860 2002-06-21 Richard Earnshaw (rearnsha@arm.com)
7861
7862 * libc/sys/arm/sys/param.h (BIG_ENDIAN, LITTLE_ENDIAN): Define.
7863 (BYTE_ORDER): Define as appropriate for the target.
7864
7865 2002-06-21 Jeff Johnston <jjohnstn@redhat.com>
7866
7867 * libc/include/sys/config.h[__linux__]: Set _READ_WRITE_RETURN_TYPE
7868 to _ssize_t.
7869 * libc/sys/linux/io.c (read, write): Change to return ssize_t.
7870
7871 2002-06-21 Jeff Johnston <jjohnstn@redhat.com>
7872
7873 * libc/include/stdio.h (__getline, __getdelim): New prototypes.
7874 * libc/include/time.h [HAVE_GETDATE](getdate, getdate_r): Ditto.
7875 [HAVE_GETDATE](getdate_err): New error code.
7876 * libc/stdio/Makefile.am: Add support for getline.c and getdelim.c.
7877 * libc/stdio/Makefile.in: Regenerated.
7878 * libc/stdio/getdelim.c: New file.
7879 * libc/stdio/getline.c: Ditto.
7880 * libc/sys/linux/Makefile.am: Add support for getdate.c, getdate_err.c
7881 and ntp_gettime.c. Also add AM_CFLAGS to point to libc/stdio.
7882 * libc/sys/linux/Makefile.in: Regenerated.
7883 * libc/sys/linux/getdate.c: New file.
7884 * libc/sys/linux/getdate_err.c: Ditto.
7885 * libc/sys/linux/ntp_gettime.c: Ditto.
7886 * libc/sys/linux/time.c (adjtimex, ntp_adjtime): New functions.
7887 * libc/sys/linux/sys/stdio.h (getline, getdelim): New macros.
7888
7889 2002-06-21 Jeff Johnston <jjohnstn@redhat.com>
7890
7891 * libc/include/math.h: Add <sys/types.h> to get _uint32_t definition.
7892 * libc/include/machine/types.h: Skip __off_t, __pid_t, and
7893 __loff_t definitions if special _HAVE_SYSTYPES macro defined.
7894 * libc/include/sys/config.h: Removed _uint*, _int* definitions.
7895 * libc/include/sys/param.h: Remove i386 case which is handled
7896 by default case.
7897 (BIG_ENDIAN, LITTLE_ENDIAN): Protect
7898 definitions in case they are already defined.
7899 (BYTE_ORDER): Add default case using _IEEE_BIG_ENDIAN and
7900 _IEEE_LITTLE_ENDIAN flags.
7901 * libc/include/sys/reent.h: Change __uint32_t references to
7902 use _ULong instead.
7903 (_REENT_GETDATE_REENT_P): New macro.
7904 * libc/include/sys/types.h (__int16_t, __uint16_t): Added.
7905 (__int32_t, __uint32_t, __int64_t, __uint64_t): Ditto.
7906 * libc/search/hash.h: Add default setting of BYTE_ORDER,
7907 LITTLE_ENDIAN, and BIG_ENDIAN, if not already defined.
7908 * libc/sys/linux/sys/types.h: Include <sys/_types.h>. Define
7909 ssize_t based on _ssize_t. Remove __socklen_t, __uintptr_t,
7910 pid_t, off_t, loff_t, caddr_t, and daddr_t type
7911 definitions which are done by subsequent glibc headers.
7912 Add macro definitions to prevent subsequent header files from
7913 defining pid_t, off_t, ssize_t, and key_t. Move uintptr_t and
7914 intptr_t to after glibc definitions of types they are based on.
7915
7916 2002-06-21 Jeff Johnston <jjohnstn@redhat.com>
7917
7918 * libc/include/errno.h: Protect from multiple inclusion.
7919
7920 2002-06-21 Nick Clifton <nickc@cambridge.redhat.com>
7921
7922 * libc/sys/arm/swi.h (ADP_Stopped_RunTimeError): Set correct value.
7923
7924 2002-06-20 Thomas Fitzsimmons <fitzsim@redhat.com>
7925
7926 * Makefile.am (LIB_OBJECTLISTS): Add
7927 libc/search/objectlist.awk.in.
7928 * libc/Makefile.am (SUBDIRS): Add search.
7929 (SUBLIBS): Add search/libsearch.la.
7930 * libc/configure.in (AC_OUTPUT): Add search/Makefile.
7931 * libc/search: New directory.
7932 * libc/search/Makefile.am: New file.
7933 * libc/search/extern.h: New file.
7934 * libc/search/hash.c: New file.
7935 * libc/search/hash.h: New file.
7936 * libc/search/hash_bigkey.c: New file.
7937 * libc/search/hash_buf.c: New file.
7938 * libc/search/hash_func.c: New file.
7939 * libc/search/hash_log2.c: New file.
7940 * libc/search/hash_page.c: New file.
7941 * libc/search/hcreate.3: New file.
7942 * libc/search/hcreate.c: New file.
7943 * libc/search/hcreate_r.c: New file.
7944 * libc/search/ndbm.c: New file.
7945 * libc/search/page.h: New file.
7946 * libc/search/tdelete.c: New file.
7947 * libc/search/tdestroy.c: New file.
7948 * libc/search/tfind.c: New file.
7949 * libc/search/tsearch.3: New file.
7950 * libc/search/tsearch.c: New file.
7951 * libc/search/twalk.c: New file.
7952 * libc/include/db.h: New file.
7953 * libc/include/ndbm.h: New file.
7954 * libc/include/search.h: New file.
7955 * libc/include/sys/queue.h: New file.
7956 * libc/include/sys/cdefs.h: New file.
7957 * libc/include/sys/param.h
7958 [__IEEE_LITTLE_ENDIAN,__IEEE_BIG_ENDIAN]: Set BYTE_ORDER to
7959 LITTLE_ENDIAN or BIG_ENDIAN.
7960 * libc/include/sys/errno.h (EFTYPE): New macro.
7961 * libc/search/bsearch.c: Move from libc/stdlib.
7962 * libc/search/qsort.c: Likewise.
7963 * libc/stdlib/Makefile.am (LIB_SOURCES): Remove bsearch.c and
7964 qsort.c.
7965 (CHEWOUT_FILES): Remove bsearch.def and qsort.def.
7966 * libc/stdlib/stdlib.tex: Remove references to bsearch and qsort.
7967
7968 2002-06-19 Jeff Johnston <jjohnstn@redhat.com>
7969
7970 * libc/sys/linux/Makefile.am: Add support for message queue routines,
7971 ipc routines, and ftok.
7972 * libc/sys/linux/Makefile.in: Regenerated.
7973 * libc/sys/linux/ftok.c: New file.
7974 * libc/sys/linux/ipc.c: Ditto.
7975 * libc/sys/linux/mq_close.c: Ditto.
7976 * libc/sys/linux/mq_getattr.c: Ditto.
7977 * libc/sys/linux/mq_notify.c: Ditto.
7978 * libc/sys/linux/mq_open.c: Ditto.
7979 * libc/sys/linux/mq_receive.c: Ditto.
7980 * libc/sys/linux/mq_send.c: Ditto.
7981 * libc/sys/linux/mq_setattr.c: Ditto.
7982 * libc/sys/linux/mq_unlink.c: Ditto.
7983 * libc/sys/linux/mqlocal.h: Ditto.
7984 * libc/sys/linux/include/mqueue.h: Ditto.
7985 * libc/sys/linux/sys/types.h: Define __gid_t_defined and
7986 __uid_t_defined.
7987
7988 2002-06-19 J"orn Rennecke <joern.rennecke@superh.com>
7989
7990 * libm/common/sf_lround.c (round): Change name to: (lround).
7991 * libm/common/sf_remquo.c (remquo): Pass all arguemnts to
7992 remquof.
7993
7994 2002-06-18 Thomas Fitzsimmons <fitzsim@redhat.com>
7995
7996 * testsuite/lib/passfail.exp (newlib_pass_fail_all): New
7997 procedure.
7998 (newlib_pass_fail): Change to compile and run only one file.
7999 * testsuite/newlib.locale/locale.exp: Use new
8000 newlib_pass_fail_all procedure.
8001 * testsuite/newlib.string/string.exp: Likewise.
8002
8003 2002-06-18 Dave Brolley <brolley@redhat.com>
8004
8005 From Catherine Moore, Michael Meissner, Richard Sandiford:
8006 * libc/include/machine/setjmp.h (_JBLEN): Define for __frv__.
8007 (_JBTYPE): Ditto.
8008 * libc/include/sys/config.h (__IEEE_BIG_ENDIAN): Ditto.
8009 (__ATTRIBUTE_IMPURE_PTR__): Ditto.
8010 * libc/include/machine/ieeefp.h (__IEEE_BIG_ENDIAN): Ditto.
8011 * configure.host: Support frv-*-*.
8012 * libc/machine/frv/Makefile.am: New file.
8013 * libc/machine/frv/configure.in: New file.
8014 * libc/machine/frv/setjmp.S: New file.
8015
8016 2002-06-18 Thomas Fitzsimmons <fitzsim@redhat.com>
8017
8018 * libc/include/ctype.h: Remove isblank macro.
8019
8020 * libc/ctype/Makefile.am (LIB_SOURCES): Add isblank.c.
8021 * libc/ctype/isblank.c: New file.
8022 * libc/include/ctype.h [!__STRICT_ANSI__]: Add isblank
8023 declaration. Add isblank macro.
8024
8025 2002-06-18 Jeff Johnston <jjohnstn@redhat.com>
8026
8027 * testsuite/newlib.stdlib/atexit.c: New file.
8028 * testsuite/newlib.stdlib/atexit.exp: Ditto.
8029 * testsuite/newlib.string/tstring.c: Change default start size
8030 to something more reasonable for embedded platforms.
8031
8032 2002-06-14 Thomas Fitzsimmons <fitzsim@redhat.com>
8033
8034 * libc/sys/linux/sys/errno.h (EFTYPE): Add macro.
8035
8036 * libc/argz: New directory.
8037 * libc/argz/*: New files.
8038 * libc/argz/argz_add.c: New file.
8039 * libc/argz/argz_add_sep.c: New file.
8040 * libc/argz/argz_append.c: New file.
8041 * libc/argz/argz_count.c: New file.
8042 * libc/argz/argz_create.c: New file.
8043 * libc/argz/argz_create_sep.c: New file.
8044 * libc/argz/argz_delete.c: New file.
8045 * libc/argz/argz_extract.c: New file.
8046 * libc/argz/argz_insert.c: New file.
8047 * libc/argz/argz_next.c: New file.
8048 * libc/argz/argz_replace.c: New file.
8049 * libc/argz/argz_stringify.c: New file.
8050 * libc/argz/buf_findstr.c: New file.
8051 * libc/argz/envz_add.c: New file.
8052 * libc/argz/envz_entry.c: New file.
8053 * libc/argz/envz_get.c: New file.
8054 * libc/argz/envz_merge.c: New file.
8055 * libc/argz/envz_remove.c: New file.
8056 * libc/argz/envz_strip.c: New file.
8057 * libc/include/argz.h: New file.
8058 * libc/include/envz.h: New file.
8059 * Makefile.am (LIBC_OBJECTLISTS): Add
8060 libc/argz/objectlist.awk.in.
8061 * libc/Makefile.am (SUBDIRS): Add argz.
8062 (SUBLIBS): Add argz/libargz.la.
8063 * libc/configure.in (AC_OUTPUT): Add argz/Makefile.
8064 * libc/include/errno.h: Add error_t typedef.
8065
8066 2002-06-13 Jeff Johnston <jjohnstn@redhat.com>
8067
8068 * libc/include/stdlib.h: Add _Exit prototype.
8069 * libc/stdlib/Makefile.am: Add _Exit.c support.
8070 * libc/stdlib/Makefile.in: Ditto.
8071 * libc/stdlib/_Exit.c: New file.
8072
8073 2002-06-13 Stephen L. Moshier <steve@moshier.net>
8074
8075 * libm/math/e_pow.c (__ieee754_pow): Fix case whereby
8076 x is close to -1.0 and y is very large to use ax (absolute value)
8077 instead of x.
8078 * libm/math/ef_pow.c (__ieee754_powf): Ditto.
8079
8080 Thu Jun 13 19:23:40 2002 J"orn Rennecke <joern.rennecke@superh.com>
8081
8082 * libc/machine/sh/strcpy.S (strcpy, __SHMEDIA__ code):
8083 Fix clobbering bytes before destination if src and dst have same
8084 non-zero misalignment.
8085
8086 * libc/machine/sh/memset.S (memset, __SHMEDIA__ code):
8087 Fixed bug in writing end of set region.
8088
8089 2002-06-10 Christopher Faylor <cgf@redhat.com>
8090
8091 * libc/include/process.h: Remove cygwin-only sexec* declarations. Fix
8092 spawnve declaration.
8093
8094 2002-06-06 Thomas Fitzsimmons <fitzsim@redhat.com>
8095
8096 * libm/common/s_fdim.c: New file.
8097 * libm/common/s_fma.c: Likewise.
8098 * libm/common/s_fmax.c: Likewise.
8099 * libm/common/s_fmin.c: Likewise.
8100 * libm/common/s_fpclassify.c: Likewise.
8101 * libm/common/s_lrint.c: Likewise.
8102 * libm/common/s_lround.c: Likewise.
8103 * libm/common/s_nearbyint.c: Likewise.
8104 * libm/common/s_remquo.c: Likewise.
8105 * libm/common/s_round.c: Likewise.
8106 * libm/common/s_scalbln.c: Likewise.
8107 * libm/common/s_signbit.c: Likewise.
8108 * libm/common/s_trunc.c: Likewise.
8109 * libm/common/sf_fdim.c: Likewise.
8110 * libm/common/sf_fma.c: Likewise.
8111 * libm/common/sf_fmax.c: Likewise.
8112 * libm/common/sf_fmin.c: Likewise.
8113 * libm/common/sf_lrint.c: Likewise.
8114 * libm/common/sf_lround.c: Likewise.
8115 * libm/common/sf_nearbyint.c: Likewise.
8116 * libm/common/sf_remquo.c: Likewise.
8117 * libm/common/sf_round.c: Likewise.
8118 * libm/common/sf_scalbln.c: Likewise.
8119 * libm/common/sf_trunc.c: Likewise.
8120 * libm/math/w_exp2.c: Likewise.
8121 * libm/math/w_tgamma.c: Likewise.
8122 * libm/math/wf_exp2.c: Likewise.
8123 * libm/math/wf_tgamma.c: Likewise.
8124 * libm/mathfp/s_exp2.c: Likewise.
8125 * libm/mathfp/s_tgamma.c: Likewise.
8126 * libm/mathfp/sf_exp2.c: Likewise.
8127 * libm/mathfp/sf_tgamma.c: Likewise.
8128 * libm/math/er_gamma.c: Fix return value.
8129 * libm/math/erf_gamma.c: Likewise.
8130 * libm/mathfp/er_gamma.c: Likewise.
8131 * libm/mathfp/erf_gamma.c: Likewise.
8132 * libc/include/math.h (!__STRICT_ANSI__): Include ISOC99-specific
8133 declarations and macros.
8134 Regenerated all Makefile.in, aclocal.m4 and configure files to
8135 use new libtool macros in top-level libtool.m4
8136
8137 2002-06-05 Jeff Johnston <jjohnstn@redhat.com>
8138
8139 * libc/include/string.h[__linux__]: Add strsignal prototype.
8140 * libc/include/sys/lock.h: New file with default locking support.
8141 * libc/include/sys/reent.h: Add signal buffer support for strsignal
8142 and psignal.
8143 * libc/posix/Makefile.am: Add support for readdir_r.c.
8144 * libc/posix/Makefile.in: Regenerated.
8145 * libc/posix/closedir.c: Add locking support and hash table cleanup.
8146 * libc/posix/opendir.c: Add lock support.
8147 * libc/posix/readdir.c: Ditto.
8148 * libc/posix/rewinddir.c: Ditto.
8149 * libc/posix/scandir.c: Ditto.
8150 * libc/posix/seekdir.c: Ditto.
8151 * libc/posix/telldir.c: Ditto plus add _cleanupdir routine to
8152 clean up leftover hash table entries.
8153 * libc/posix/readdir_r.c: New file.
8154 * libc/sys/linux/Makefile.am: Add psignal.c and strsignal.c support.
8155 * libc/sys/linux/Makefile.in: Regenerated.
8156 * libc/sys/linux/sys/dirent.h: Add dd_lock to DIR structure.
8157 * libc/sys/linux/sys/signal.h: Add psignal prototype.
8158 * libc/sys/linux/psignal.c: New file.
8159 * libc/sys/linux/strsignal.c: Ditto.
8160
8161 2002-06-03 Corinna Vinschen <corinna@vinschen.de>
8162
8163 * libc/include/sys/types.h: Don't define dev_t when compiling for
8164 Cygwin.
8165
8166 2002-05-31 Jeff Johnston <jjohnstn@redhat.com>
8167
8168 * libc/sys/linux/Makefile.am: Add sig.c and sigaction.c. Also
8169 make siglist.inc dependent on sig.c instead of signal.c.
8170 * libc/sys/linux/Makefile.in: Regenerated.
8171 * libc/sys/linux/sig.c: Rename from signal.c and change code to
8172 use NSIG instead of _NSIG.
8173 * libc/sys/linux/sigaction.c: New file.
8174 * libc/sys/linux/signal.c: Changed to be linux signal() function
8175 so as to override regular newlib default signal.c.
8176 * libc/sys/linux/machine/i386/Makefile.am: Remove sigset.c.
8177 * libc/sys/linux/machine/i386/Makefile.in: Regenerated.
8178 * libc/sys/linux/machine/i386/sigset.c: Moved to linux main directory.
8179 * libc/sys/linux/sigset.c: Moved from machine/i386 directory.
8180 * libc/sys/linux/sys/signal.h: Redefine NSIG to _NSIG and override
8181 default linux sigset_t typedef by defining it equal to __sigset_t.
8182 * libc/unix/sigset.c: Add check so code isn't compiled on systems
8183 with a sigset_t that isn't implemented with a single int.
8184
8185 2002-05-30 Jeff Johnston <jjohnstn@redhat.com>
8186
8187 * libc/sys/linux/Makefile.am: Add support for new files.
8188 * libc/sys/linux/Makefile.in: Regenerated.
8189 * libc/sys/linux/ids.c: Add __getuid weak alias for getuid.
8190 * libc/sys/linux/signal.c: Change to use real-time syscalls for
8191 sigsuspend, sigprocmask, and sigpending. Also remove sigaction as
8192 it is in a separate file now.
8193 * libc/sys/linux/machine/i386/Makefile.am
8194 * libc/sys/linux/machine/i386/Makefile.in
8195 * libc/sys/linux/sys/signal.h: Add include of <bits/signum.h>.
8196 * libc/sys/linux/sigaction.c: New file.
8197 * libc/sys/linux/sigqueue.c: Ditto.
8198 * libc/sys/linux/sigwait.c: Ditto.
8199 * libc/sys/linux/machine/i386/sigaction.c: Ditto.
8200 * libc/sys/linux/kernel_sigaction.h: Ditto.
8201
8202 2002-05-28 Jeff Johnston <jjohnstn@redhat.com>
8203
8204 * libc/sys/linux/Makefile.am: Add support for cfspeed.c and
8205 tcsendbrk.c.
8206 * libc/sys/linux/Makefile.in: Regenerated.
8207 * libc/sys/linux/termios.c: Add tcflow(), tcflush(),
8208 tcgetpgrp(), and tcsetpgrp() functions.
8209 * libc/sys/linux/sys/termios.h: Add include of machine/termios.h
8210 to get __MAX_BAUD rate.
8211 * libc/sys/linux/machine/i386/include/termios.h: New file.
8212 * libc/include/machine/termios.h: Ditto.
8213 * libc/sys/linux/cfspeed.c: Ditto.
8214 * libc/sys/linux/tcsendbrk.c: Ditto.
8215
8216 2002-05-24 Jeff Johnston <jjohnstn@redhat.com>
8217
8218 * libc/include/string.h: Add strnlen and strerror_r prototypes.
8219 * libc/string/Makefile.am: Add strnlen.c and strerror_r.c support.
8220 * libc/string/Makefile.in: Regenerated.
8221 * libc/string/strerror_r.c: New file.
8222 * libc/string/strnlen.c: New file.
8223 * libc/sys/linux/Makefile.am: Add rename.c.
8224 * libc/sys/linux/Makefile.in: Regenerated.
8225 * libc/sys/linux/rename.c: New file to override default rename.
8226
8227 2002-05-24 Thomas Fitzsimmons <fitzsim@redhat.com>
8228
8229 * libc/sys/linux/sys/cdefs.h: Add __weak_reference macros.
8230 * libc/sys/linux/sys/time.h: Add conversion macros.
8231 * libc/sys/linux/sys/types.h: Add FD_ macros. Include <bits/types.h>.
8232 * libc/sys/linux/ids.c: Add setresuid and syslog syscalls.
8233 * libc/sys/linux/gethostname.c: New file.
8234 * libc/sys/linux/seteuid.c: New file.
8235 * libc/sys/linux/sysctl.c: New file.
8236
8237 2002-05-23 Jeff Johnston <jjohnstn@redhat.com>
8238
8239 * libc/string/Makefile.am: Add support for strsep.c.
8240 * libc/string/Makefile.in: Regenerated.
8241 * libc/string/strsep.c: New file.
8242 * libc/string/strtok.c: Change to call __strtok_r service routine.
8243 * libc/string/strtok_r.c: Add __strtok_r routine which takes
8244 additional flag parameter regarding whether to skip leading delimeters.
8245 Change strtok_r to call __strtok_r.
8246
8247 2002-05-23 Gareth Pearce <tilps@hotmail.com>
8248
8249 * libc/stdio/Makefile.am: Modify to add setbuffer.c and setlinebuf.c.
8250 * libc/stdio/Makefile.in: Regenerated.
8251 * libc/stdio/setbuffer.c: New file.
8252 * libc/stdio/setlinebuf.c: New file.
8253
8254 2002-05-23 Jeff Johnston <jjohnstn@redhat.com>
8255
8256 * libc/sys/linux/Makefile.am: Add resource.c.
8257 * libc/sys/linux/Makefile.in: Regenerated.
8258 * libc/sys/linux/resource.c: New file.
8259 * libc/sys/linux/time.c: Add settimeofday, getitimer, and setitimer.
8260 * libc/sys/linux/machine/i386/Makefile.am: Remove syscalls.c.
8261 * libc/sys/linux/machine/i386/Makefile.in: Regenerated.
8262 * libc/sys/linux/machine/i386/syscalls.c: Removed as functions
8263 are now found in libc/sys/linux/resource.c.
8264
8265 2002-05-23 Jeff Johnston <jjohnstn@redhat.com>
8266
8267 * libc/include/string.h (bcmp, bcopy, bzero): Change prototypes
8268 to use void * pointers and comply with Single Unix spec.
8269 * libc/string/bcmp.c: Change to use void * instead of char *.
8270 * libc/string/bcopy.c: Ditto.
8271 * libc/string/bzero.c: Ditto.
8272
8273 2002-05-22 Jeff Johnston <jjohnstn@redhat.com>
8274
8275 * libc/sys/linux/shm_open.c: New file.
8276 * libc/sys/linux/shm_unlink.c: Ditto.
8277 * libc/sys/linux/Makefile.am: Add support for shm_open.c and
8278 shm_unlink.c.
8279 * libc/sys/linux/Makefile.in: Regenerated.
8280 * libc/sys/linux/sys/types.h: Add some additional checks to see
8281 if clock_t or time_t is already defined.
8282
8283 2002-05-22 Jeff Johnston <jjohnstn@redhat.com>
8284
8285 * Makefile.am: Don't pass $toollibdir down directly in
8286 AM_MAKEFLAGS as it causes all multilibs to use the same toollibdir.
8287 Pass it under the name: top_toollibdir.
8288 * Makefile.in: Regenerated.
8289
8290 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
8291
8292 * libc/include/sys/types.h: Revert previous patch.
8293
8294 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
8295
8296 * libc/include/sys/types.h: Include cygwin/types.h always under
8297 Cygwin, not only if _POSIX_THREADS is defined.
8298
8299 2002-05-21 Dhananjay Deshpande <dhananjayd@kpit.com>
8300
8301 * configure.host: Specify sys_dir=h8300hms for h8300-*-coff* target.
8302
8303 2002-05-17 Jeff Johnston <jjohnstn@redhat.com>
8304
8305 * Makefile.am: Copy and install headers from sys/machine/include
8306 directory. Also pass $toollibdir to lower-level directories.
8307 * Makefile.in: Regenerated.
8308 * libc/include/stdio.h[!_REENT_ONLY]: Change stdin, stdout, and
8309 stderr to use _REENT macro instead of _impure_ptr directly.
8310 * libc/include/sys/config.h[__i386__][__linux__]: Define
8311 __DYNAMIC_REENT__.
8312 * libc/include/sys/reent.h[!_REENT_ONLY]: Change _REENT macro to be
8313 call to __getreent() function if !__SINGLE_THREAD__ and
8314 __DYNAMIC_REENT__ is set.
8315 * libc/reent/Makefile.am: Add support for getreent.c.
8316 * libc/reent/Makefile.in: Regenerated.
8317 * libc/string/strerror.c: Add check if EOPNOTSUPP and ENOTSUP are same.
8318 * libc/sys/linux/Makefile.am: Add support for new files.
8319 * libc/sys/linux/configure.in: Add $EXTRA_DIRS variable.
8320 * libc/sys/linux/Makefile.in: Regenerated.
8321 * libc/sys/linux/configure: Ditto.
8322 * libc/sys/linux/io.c: Add poll syscall. Also weak-alias
8323 __close, __read, __write, __poll, __open, __lseek, __fcntl from
8324 their __libc_ counterparts.
8325 * libc/sys/linux/io64.c: Add __libc_ prefix to lseek64 and open64
8326 and weak-alias to regular names.
8327 * libc/sys/linux/pread64.c: Rename to __libc_pread64 and weak-alias
8328 to pread64 and __pread64.
8329 * libc/sys/linux/process.c: Weak_alias __libc_getpid to __getpid.
8330 * libc/sys/linux/pwrite64.c: Rename to __libc_pwrite64 and
8331 weak-alias to pwrite64.
8332 * libc/sys/linux/sched.c: Weak-alias __libc_sched_getparam,
8333 __libc_sched_getscheduler, __libc_sched_get_priority_max,
8334 __libc_sched_get_priority_min, and __libc_sched_setschedule to
8335 name with __ instead of __libc_.
8336 * libc/sys/linux/siglongjmp.c: Include <machine/weakalias.h>.
8337 Rename siglongjmp to __libc_siglongjmp and weak-alias to siglongjmp.
8338 Call __libc_longjmp instead of longjmp, from __libc_siglongjmp.
8339 * libc/sys/linux/signal.c: Rename raise to __libc_raise and weak-alias
8340 to raise.
8341 * libc/sys/linux/socket.c: Weak-alias __libc_connect to __connect and
8342 __libc_send to __send.
8343 * libc/sys/linux/time.c: Weak-alias __libc_gettimeofday to
8344 __gettimeofday.
8345 * libc/sys/linux/wait.c: Rename wait to __libc_wait and weak-alias
8346 it to wait. Rename wait3 to __libc_wait3 and weak-alias it to wait3.
8347 * libc/sys/linux/include/setjmp.h: Use __jmp_buf in sigjmp_buf
8348 type and typedef __jmp_buf to jmp_buf.
8349 * libc/sys/linux/machine/i386/Makefile.am: Add syscalls.c and
8350 setjmp.S.
8351 * libc/sys/linux/machine/i386/Makefile.in: Regenerated.
8352 * libc/sys/linux/machine/i386/crt0.c: Add support to clear .bss
8353 section.
8354 * libc/sys/linux/machine/i386/socketcall.h: Change to use __libc_
8355 prefix for function macros and then use weak_alias() to regular names.
8356 * libc/sys/linux/machine/i386/syscall.h: Ditto.
8357 * libc/sys/linux/sys/errno.h: Define EOPNOTSUP to be ENOTSUP.
8358 * libc/sys/linux/sys/stdio.h: Define _flockfile and _funlockfile
8359 to be flockfile() and funlockfile() respectively.
8360 * libc/sys/linux/sys/types.h
8361 * libc/reent/getreent.c: New file.
8362 * libc/sys/linux/flockfile.c: Ditto.
8363 * libc/sys/linux/funlockfile.c: Ditto.
8364 * libc/sys/linux/getreent.c: Ditto.
8365 * libc/sys/linux/pread.c: Ditto.
8366 * libc/sys/linux/pwrite.c: Ditto.
8367 * libc/sys/linux/raise.c: Ditto.
8368 * libc/sys/linux/system.c: Ditto.
8369 * libc/sys/linux/tcdrain.c: Ditto.
8370 * libc/sys/linux/machine/i386/i386mach.h: Ditto.
8371 * libc/sys/linux/machine/i386/setjmp.S: Ditto.
8372 * libc/sys/linux/machine/i386/syscalls.c: Ditto.
8373 * libc/sys/linux/machine/i386/weakalias.h: Ditto.
8374 * libc/sys/linux/machine/i386/include/setjmp.h: Ditto.
8375
8376 2002-05-14 Dhananjay Deshpande <dhananjayd@kpit.com>
8377
8378 * newlib/libc/sys/h8300hms/Makeile.am (lib_a_SOURCES): Add read.c.
8379 * newlib/libc/sys/h8300hms/read.c: New file. Magic trap 0xC8 for sim.
8380 * newlib/libc/sys/h8300hms/syscalls.c: Move _read() to read.c.
8381 * newlib/libs/sys/h8300hms/sys/syscall.h: New file.
8382
8383 Thu May 16 17:24:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
8384
8385 * libc/machine/sh/strcpy.S (strcpy): Replace LITTLE_ENDIAN with
8386 __LITTLE_ENDIAN__. make sure r0 has right value at first loop
8387 exit point.
8388
8389 2002-05-15 Thomas Fitzsimmons <fitzsim@redhat.com>
8390
8391 * testsuite/lib/newlib.exp: Add newlib_include_flags to compile
8392 options when testing natively on i[3456]86-*-linux.
8393
8394 * testsuite/lib/checkoutput.exp (newlib_check_output): Output
8395 only one pass or fail per test file. Trim \r's from output
8396 values received from test programs. Remove support for named
8397 tests.
8398 * testsuite/newlib.locale/UTF-8.exp: Update to support new
8399 newlib_check_output behaviour.
8400 * testsuite/newlib.locale/UTF-8.c: Likewise.
8401
8402 2002-05-15 Jeff Johnston <jjohnstn@redhat.com>
8403
8404 * libc/include/stdlib.h: Add on_exit prototype.
8405 * libc/include/sys/reent.h (struct _atexit): Add argument array
8406 and bits to track type of exit routine to support both on_exit
8407 and atexit.
8408 (_REENT_INIT_PTR): Add missing fields that won't be zeroed out
8409 by default and change the setting of the atexit structure.
8410 (_REENT_INIT)[!_REENT_SMALL]: Remove extraneous end brace.
8411 * libc/stdlib/on_exit.c: New file.
8412 * libc/stdlib/Makefile.am: Add support for on_exit.
8413 * libc/stdlib/Makefile.in: Regenerated.
8414 * libc/stdlib/atexit.c: Change to initialize types field.
8415 * libc/stdlib/exit.c: Change to look at types field for each
8416 exit routine and either call an atexit-style or an on_exit-style
8417 routine accordingly.
8418
8419 2002-05-13 Jeff Johnston <jjohnstn@redhat.com>
8420
8421 * libc/machine/powerpc/vfprintf.c(__VFPRINTF_R)[__ALTIVEC__]: Don't
8422 allow v specifier with n or L specifiers. For vector c format,
8423 move tmp declaration to the top.
8424
8425 2002-05-13 Jeff Johnston <jjohnstn@redhat.com>
8426
8427 * libc/machine/powerpc/vfprintf.c(__VFPRINTF_R)[__ALTIVEC__]: Restore
8428 the original format specifier when looping for vectors to compensate
8429 for any changes made in vector %g format processing.
8430 Also add syntax checking for various invalid scenarios
8431 involving vector format extensions.
8432 * libc/machine/powerpc/vfscanf.c(__VFSCANF_R)[__ALTIVEC__]: Fix
8433 return code setting for vector formats. Also treat vector
8434 separator mismatch as a match error instead of an input error.
8435 Perform some syntax checking for vector formats.
8436
8437 2002-05-10 Mark Bradshaw <bradshaw@staff.crosswalk.com>
8438
8439 * libc/include/string.h (!__STRICT_ANSI__): Add strlcat and strlcpy.
8440 * libc/string/Makefile.am: Add strlcat.c and strlcpy.c.
8441 * libc/string/strlcat.c: New file.
8442 * libc/string/strlcpy.c: New file.
8443
8444 2002-05-10 Jeff Johnston <jjohnstn@redhat.com>
8445
8446 * libc/string/strchr.c: Fix comment typo.
8447
8448 2002-05-08 Thomas Fitzsimmons <fitzsim@redhat.com>
8449
8450 * acinclude.m4: Add support for --enable-newlib-multithread.
8451 * configure.host (newlib_cflags): Add -D__SINGLE_THREAD__ if
8452 --enable-newlib-multithread=no.
8453
8454 * libc/stdio/getc_u.c: New file.
8455 * libc/stdio/getchar_u.c: New file.
8456 * libc/stdio/putc_u.c: New file.
8457 * libc/stdio/putchar_u.c: New file.
8458 * libc/include/stdio.h: Add declarations for getc_unlocked,
8459 getchar_unlocked, putc_unlocked and putchar_unlocked.
8460 * libc/stdio/Makefile.am (LIB_SOURCES): Add new files.
8461 (CHEWOUT_FILES): Add new files' .def's.
8462 * libc/stdio/putchar.c (_putchar_r): Replace __sputc with putc.
8463
8464 Wed May 8 17:47:35 2002 J"orn Rennecke <joern.rennecke@superh.com>
8465
8466 * libc/machine/sh/memset.S (memset, __SHMEDIA__ code):
8467 Also handle as single quad word when destination ends at last
8468 byte of first quad word. Fix byte selection in single quad code.
8469
8470 2002-05-07 Thomas Fitzsimmons <fitzsim@redhat.com>
8471
8472 * libc/include/sys/stdio.h: New file.
8473 * libc/sys/linux/sys/stdio.h: New file.
8474 * libc/include/stdio.h: Add declarations for flockfile,
8475 ftrylockfile, and funlockfile. Include <sys/stdio.h>.
8476 * libc/stdio/clearerr.c: Add file locking.
8477 * libc/stdio/fclose.c: Likewise.
8478 * libc/stdio/feof.c: Likewise.
8479 * libc/stdio/ferror.c: Likewise.
8480 * libc/stdio/fflush.c: Likewise.
8481 * libc/stdio/fgetc.c: Likewise.
8482 * libc/stdio/fgetpos.c: Likewise.
8483 * libc/stdio/fgets.c: Likewise.
8484 * libc/stdio/fileno.c: Likewise.
8485 * libc/stdio/fputc.c: Likewise.
8486 * libc/stdio/fputs.c: Likewise.
8487 * libc/stdio/fread.c: Likewise.
8488 * libc/stdio/freopen.c: Likewise.
8489 * libc/stdio/fseek.c: Likewise.
8490 * libc/stdio/ftell.c: Likewise.
8491 * libc/stdio/fwrite.c: Likewise.
8492 * libc/stdio/getc.c: Likewise.
8493 * libc/stdio/putc.c: Likewise.
8494 * libc/stdio/setvbuf.c: Likewise.
8495 * libc/stdio/ungetc.c: Likewise.
8496 * libc/stdio/vfprintf.c: Likewise.
8497
8498 2002-05-06 Jeff Johnston <jjohnstn@redhat.com>
8499
8500 * libc/machine/powerpc/vfprintf.c[__ALTIVEC__]: Add vector
8501 support for 'p' format. Fix code to print bytes for vector
8502 integer formats that do not specify 'h' or 'l'.
8503 * libc/machine/powerpc/vfscanf.c[__ALTIVEC__]: Add vector support
8504 for 'p' specifier. Fix code to scan 16 bytes for vector integer
8505 formats that do not specify 'h' or 'l'.
8506
8507 * libc/include/stdlib.h (a64l, l64a, _l64a_r): Added prototypes.
8508
8509 2002-05-06 Nick Clifton <nickc@cambridge.redhat.com>
8510
8511 * libc/sys/arm/syscalls.c (_rename): Add parameter names.
8512 (_sbrk): Add cast of return value.
8513
8514 2002-05-06 Jeff Johnston <jjohnstn@redhat.com>
8515
8516 * libc/include/sys/reent.h (_l64a_buf): New reentrant area.
8517 (_REENT_L64A_BUF): New macro for accessing area.
8518 * libc/stdlib/Makefile.am: Add a64l.c and l64a.c.
8519 * libc/stdlib/Makefile.in: Regenerated.
8520 * libc/stdlib/a64l.c: New file.
8521 * libc/stdlib/l64a.c: New file.
8522
8523 2002-05-06 Jeff Johnston <jjohnstn@redhat.com>
8524
8525 * libc/unix/pread.c: Fix typo for _pread_r.
8526 * libc/unix/pwrite.c: Fix type for _pwrite_r.
8527 * libc/sys/linux/pread64.c: Fix typo for read syscall.
8528 * libc/sys/linux/pwrite64.c: Fix typo for write syscall.
8529
8530 2002-05-03 Christopher Faylor <cgf@redhat.com>
8531
8532 * libc/include/sys/unistd.h: Define getdomainname under cygwin.
8533
8534 2002-05-03 Thomas Fitzsimmons <fitzsim@redhat.com>
8535
8536 * configure.in (CC_FOR_NEWLIB): Change -isystem's to -I's.
8537
8538 2002-05-01 Christopher Faylor <cgf@redhat.com>
8539
8540 * utmp.h: Define more UNIX constants.
8541
8542 2002-05-01 Thomas Fitzsimmons <fitzsim@redhat.com>
8543
8544 * Makefile.am: Add support for checking multilibs.
8545
8546 * libc/Makefile.am (SUBLIBS): Add LIBC_EXTRA_LIB.
8547 (SUBDEFS): Add LIBC_EXTRA_DEF.
8548 * libc/configure.in (LIBC_EXTRA_LIB): New variable.
8549 (LIBC_EXTRA_DEF): Likewise.
8550 (extra_dir): Likewise.
8551 * libc/machine/xscale/machine: New directory.
8552 * libc/machine/xscale/machine/profile.h: New file.
8553
8554 * Makefile.am (site.exp): Remove newlib_cflags. Add
8555 multibuildtop.
8556 * testsuite/newlib.locale/UTF-8.c: Change fprintf's to printf's.
8557 * testsuite/lib/flags.exp: New file.
8558 * testsuite/lib/newlib.exp: Load flags.exp.
8559 (newlib_target_compile): Remove libgloss directory references.
8560 (newlib_init): Remove newlib_cflags references.
8561
8562 2002-04-30 Thomas Fitzsimmons <fitzsim@redhat.com>
8563
8564 * testsuite/lib/newlib.exp (newlib_target_compile): Change
8565 method of finding libgloss_target_dir.
8566
8567 * Makefile.am (site.exp): Change host_alias, host_triplet,
8568 target_alias, target_triplet to refer to gcc's host and target
8569 variables (newlib's build and host variables).
8570 * testsuite/lib/newlib.exp (newlib_init): Change build
8571 references to host references, host references to target
8572 references to reflect Makefile.am changes.
8573 (newlib_target_compile): Likewise.
8574 (newlib_finish): Likewise.
8575
8576 2002-04-29 Jeff Johnston <jjohnstn@redhat.com>
8577
8578 * libc/sys/linux/io64.c (fstat64, lstat64): New syscalls added.
8579
8580 2002-04-29 Jonathan Larmour <jlarmour@redhat.com>
8581
8582 * libc/sys/arm/syscalls.c (_rename): New function. Just a stub.
8583 (_system): New function. Ditto.
8584 * libc/stdlib/system.c (_system_r): Call _system if HAVE_SYSTEM.
8585 * configure.host: define HAVE_SYSTEM and HAVE_RENAME for xscale
8586 targets.
8587
8588 2002-04-29 Jeff Johnston <jjohnstn@redhat.com>
8589
8590 * libc/include/sys/unistd.h (pread, pwrite): Added prototypes.
8591 * libc/unix/Makefile.am: Add pread.c and pwrite.c.
8592 * libc/sys/linux/Makefile.am: Add pread64.c and pwrite64.c.
8593 * libc/sys/linux/Makefile.in: Regenerated.
8594 * libc/unix/Makefile.in: Ditto.
8595 * libc/sys/linux/pread64.c: New file.
8596 * libc/sys/linux/pwrite64.c: Ditto.
8597 * libc/unix/pread.c: Ditto.
8598 * libc/unix/pwrite.c: Ditto.
8599
8600 2002-04-26 Jeff Johnston <jjohnstn@redhat.com>
8601
8602 * libc/sys/linux/Makefile.am: Add io64.c.
8603 * libc/sys/linux/Makefile.in: Regenerated.
8604 * libc/sys/linux/io.c(mkfifo, fsync, fdatasync): Added syscalls.
8605 * libc/sys/linux/signal.c (sigwaitinfo, sigtimedwait): Ditto.
8606 * libc/sys/linux/io64.c: New file.
8607
8608 2002-04-26 Jeff Johnston <jjohnstn@redhat.com>
8609
8610 * configure.in (CC_FOR_NEWLIB): New variable that
8611 bases on $(CC) and adds targ-include and libc/include as
8612 -isystem directives if they are not already part of $(CC).
8613 * Makefile.am (AM_MAKEFLAGS): Change setting of CC to equal
8614 $(CC_FOR_NEWLIB).
8615 * configure: Regenerated.
8616 * Makefile.in: Ditto.
8617
8618 2002-04-25 Jeff Johnston <jjohnstn@redhat.com>
8619
8620 * libc/sys/linux/Makefile.am: Add support for sched.c.
8621 * libc/sys/linux/Makefile.in: Regenerated.
8622 * libc/sys/linux/sched.c: New file.
8623 * libc/sys/linux/sys/types.h: Add struct timespec.
8624
8625 2002-04-25 Thomas Fitzsimmons <fitzsim@redhat.com>
8626
8627 * configure.in (CC_FOR_BUILD): Set to gcc whether
8628 cross-compiling or not.
8629 (CC): Add -isystem's for targ-include and libc/include when they
8630 do not already appear in CC.
8631
8632 2002-04-24 Thomas Fitzsimmons <fitzsim@redhat.com>
8633
8634 * Makefile.am (check-DEJAGNU): New target.
8635 (site.exp): Likewise.
8636 * acinclude.m4 (NEWLIB_CONFIGURE): Replace AC_CANONICAL_HOST
8637 with AC_CANONICAL_SYSTEM. Remove AC_CANONICAL_BUILD.
8638 * libc/locale/locale.c (_setlocale_r): Add UTF-8 support.
8639 * libc/stdlib/mbtowc_r.c (_mbtowc_r): Likewise.
8640 * libc/stdlib/wctomb_r.c (_wctomb_r): Likewise.
8641 * testsuite: New directory.
8642 * testsuite/config: Likewise.
8643 * testsuite/lib: Likewise.
8644 * testsuite/newlib.locale: Likewise.
8645 * testsuite/newlib.string: Likewise.
8646 * testsuite/config/default.exp: New file.
8647 * testsuite/lib/checkoutput.exp: New file.
8648 * testsuite/lib/newlib.exp: New file.
8649 * testsuite/lib/passfail.exp: New file.
8650 * testsuite/newlib.locale/UTF-8.c: New file.
8651 * testsuite/newlib.locale/UTF-8.exp: New file.
8652 * testsuite/newlib.locale/locale.exp: New file.
8653 * testsuite/newlib.string/string.exp: New file.
8654 * testsuite/newlib.string/tstring.c: New file.
8655
8656 2002-04-23 Jeff Johnston <jjohnstn@redhat.com>
8657
8658 * libc/include/machine/types.h (__pid_t, __off_t, __loff_t): Added.
8659 * libc/sys/linux/Makefile.am: Add support for mmap.c.
8660 * libc/sys/linux/Makefile.in: Regenerated.
8661 * libc/sys/linux/mmap.c: New file.
8662 * libc/sys/linux/machine/i386/syscall.h: Add _syscall6 macro.
8663 * libc/sys/linux/sys/types.h (pid_t, off_t, loff_t): Added.
8664
8665 2002-04-22 Thomas Fitzsimmons <fitzsim@redhat.com>
8666
8667 * acinclude.m4 (newlib_cflags): Remove include directories that
8668 are already specified in the top-level configure.in's FLAGS_FOR_TARGET.
8669
8670 2002-04-19 Bill Siegmund <ctc-dsl@pacbell.net>
8671
8672 * libc/machine/xscale/memchr.c: Don't use multi-line strings.
8673 * libc/machine/xscale/memcmp.c: Ditto.
8674 * libc/machine/xscale/memcpy.c: Ditto.
8675 * libc/machine/xscale/memmove.c: Ditto.
8676 * libc/machine/xscale/memset.c: Ditto.
8677 * libc/machine/xscale/strchr.c: Ditto.
8678 * libc/machine/xscale/strcmp.c: Ditto.
8679 * libc/machine/xscale/strcpy.c: Ditto.
8680 * libc/machine/xscale/strlen.c: Ditto.
8681
8682 2002-04-19 Alexandre Oliva <aoliva@redhat.com>
8683
8684 * libc/include/sys/config.h: Remove include of <limits.h>.
8685 (__INT_MAX__, __LONG_MAX__): Define like GCC's limits.h would
8686 define INT_MAX and LONG_MAX. Use them in tests.
8687
8688 2002-04-19 Jeff Johnston <jjohnstn@redhat.com>
8689
8690 * configure.host: Add support for powerpc-eabialtivec*.
8691 * libc/include/malloc.h: Add include of <machine/malloc.h>.
8692 * libc/include/stdlib.h: Add include of <machine/stdlib.h>.
8693 * libc/include/machine/malloc.h: New file.
8694 * libc/include/machine/stdlib.h: Ditto.
8695 * libc/include/machine/setjmp.h: Add support for powerpc altivec.
8696 * libc/machine/powerpc/Makefile.am: Add conditional objects and
8697 sources based on configuration.
8698 * libc/machine/powerpc/Makefile.in: Regenerated.
8699 * libc/machine/powerpc/configure: Ditto.
8700 * libc/machine/powerpc/configure.in: Add check for
8701 powerpc-eabialtivec* in which case add in additional source files.
8702 * libc/machine/powerpc/setjmp.S: Add altivec support.
8703 * libc/machine/powerpc/vec_calloc.c: New file.
8704 * libc/machine/powerpc/vec_free.c: Ditto.
8705 * libc/machine/powerpc/vec_malloc.c: Ditto.
8706 * libc/machine/powerpc/vec_mallocr.c: Ditto.
8707 * libc/machine/powerpc/vec_realloc.c: Ditto.
8708 * libc/machine/powerpc/machine/malloc.h: Ditto.
8709 * libc/machine/powerpc/machine/stdlib.h: Ditto.
8710 * libc/machine/powerpc/vfprintf.c: New file that is vfprintf.c
8711 with added altivec format specifiers.
8712 * libc/machine/powerpc/vfscanf.c: New file that is vfscanf.c with
8713 added altivec format specifiers.
8714
8715 2002-04-19 Joel Sherrill <joel@OARcorp.com>
8716
8717 * libs/sys/rtems/crt0.c: Satisfy gcc's references to libc functions
8718 while autoconf is trying to link main(){}.
8719
8720 2002-04-17 Jeff Johnston <jjohnstn@redhat.com>
8721
8722 * libc/sys/linux/signal.c: Remove include of <bits/sigset.h>.
8723 * libc/sys/linux/sys/signal.h: Add include of <bits/sigset.h>.
8724
8725 2002-04-17 Jeff Johnston <jjohnstn@redhat.com>
8726
8727 * libc/time/time.tex: Add tzset info.
8728
8729 2002-04-17 Jeff Johnston <jjohnstn@redhat.com>
8730
8731 * libc/include/time.h (tzset, _tzset_r): Added prototypes.
8732 (strptime): Moved prototype to be within !__STRICT_ANSI__.
8733 (_tzname, _daylight, _timezone): No long __CYGWIN__ only.
8734 (tzname): Defined for all platforms.
8735 (daylight, timezone): Defined only for CYGWIN.
8736 * libc/sys/linux/machine/i386/crt0.c: Add call to tzset() after
8737 environment set up.
8738 * libc/stdlib/setenv_r.c (_setenv_r): Call tzset() if the TZ
8739 environment variable is set.
8740 * libc/time/Makefile.am: Add support for tzset.c, tzlock.c, and
8741 tzset_r.c.
8742 * libc/time/Makefile.in: Regenerated.
8743 * libc/time/gmtime.c (gmtime): Changed to call gmtime_r.
8744 * libc/time/gmtime_r.c (gmtime_r): Changed to call _mktm_r.
8745 * libc/time/lcltime_r.c (lcltime_r): Ditto.
8746 * libc/time/local.h: New local header file.
8747 * libc/time/mktime.c (mktime): Add timezone support.
8748 * libc/time/mktm_r.c: New file which is the common engine
8749 for gmtime_r and lcltime_r. This code has timezone support.
8750 * libc/time/strftime.c (strftime): Add %Z timezone support.
8751 * libc/time/tzlock.c: New file containing timezone lock stubs.
8752 * libc/time/tzset.c: New file containing tzset() routine.
8753 * libc/time/tzset_r.c: New file containing _tzset_r and
8754 internal routine for calculating timezone changes for specified year.
8755
8756 2002-04-17 Thomas Fitzsimmons <fitzsim@redhat.com>
8757
8758 * configure.in (CRT0_DIR): Set to libc/.
8759 (CRT1_DIR): Set to ${crt1_dir}/ if crt1_dir is non-empty.
8760 * Makefile.am: Change all occurrences of $(CRT0_DIR)/$(CRT0) to
8761 $(CRT0_DIR)$(CRT0) to prevent make warnings. Likewise for
8762 $(CRT1_DIR)/$(CRT1).
8763 * libc/machine/xstormy16/Makefile.in: Regenerated.
8764 * libc/machine/xstormy16/aclocal.m4: Regenerated.
8765 * libc/machine/xstormy16/configure: Regenerated.
8766
8767 2002-04-13 Alexandre Oliva <aoliva@redhat.com>
8768
8769 * libc/stdlib/mallocr.c (malloc_extend_top): If correction sbrk
8770 fails, don't bail out, and try to correct next time.
8771
8772 * libc/include/sys/config.h: Include limits.h.
8773
8774 2002-04-12 Eric Norum <eric.norum@usask.com>
8775
8776 * libc/sys/rtems/crt0.c (rtems_gxx_mutex_init): Dummy
8777 routine to allow autoconf to determine that building executables
8778 for rtems works.
8779 (rtems_gxx_mutex_lock, rtems_gxx_mutex_unlock): Ditto.
8780 (rtems_gxx_mutex_once): Ditto.
8781
8782 2002-04-09 Tom Rix <trix@redhat.com>
8783
8784 * libc/include/sys/reent.h (_REENT_INIT_PTR): Fix typo.
8785
8786 2002-04-09 Mark Bradshaw <bradshaw@staff.crosswalk.com>
8787
8788 * libc/include/time.h: Fix strptime declaration.
8789 * libc/time/Makefile.am: Add strptime.c.
8790 * libc/time/Makefile.in: Regenerated.
8791 * libc/time/strptime.c: New file.
8792
8793 2002-04-08 Jeff Johnston <jjohnstn@redhat.com>
8794
8795 * libc/sys/linux/include/setjmp.h: Add sigjmp_buf type,
8796 siglongjmp prototype, and sigsetjmp macro definition.
8797 * libc/sys/linux/siglongjmp.c: New file.
8798 * libc/sys/linux/Makefile.am: Add support for siglongjmp.
8799 * libc/sys/linux/Makefile.in: Regenerated.
8800
8801 2002-04-04 Jeff Johnston <jjohnstn@redhat.com>
8802
8803 * Makefile.am: Add support for installing crt1.o if one exists.
8804 * configure.host: Specify crt1.o for linux.
8805 * configure.in: Expose CRT1 and CRT1_DIR for Makefile.am to use.
8806 * Makefile.in: Regenerated.
8807 * configure: Ditto.
8808 * libc/include/sys/unistd.h (_SC_STREAM_MAX, _SC_PRIORITY_SCHEDULING):
8809 Added for non-Cygwin, non-RTEMS configurations.
8810 * libc/sys/linux/Makefile.am: Add support for crt1 and sysconf.
8811 * libc/sys/linux/Makefile.in: Regenerated.
8812 * libc/sys/linux/crt1.c: New empty file to override one defaulted
8813 by gcc. This fixes problem with reconfiguring linux newlib build.
8814 * libc/sys/linux/sysconf.c: New file.
8815
8816 2002-04-03 Jeff Johnston <jjohnstn@redhat.com>
8817
8818 * configure.host: Add support for machine subdirectory of
8819 sys subdirectory.
8820 * configure.in: Add check for sys machine subdirectory.
8821 * Makefile.am: Ditto.
8822 * configure: Regenerated.
8823 * Makefile.in: Ditto.
8824 * libc/sys/linux/crt0.c: Moved to machine/i386 directory.
8825 * libc/sys/linux/sys/syscall.h: Ditto.
8826 * libc/sys/linux/sleep.c: New file.
8827 * libc/sys/linux/socket.c: Ditto.
8828 * libc/sys/linux/sockops.h: Ditto.
8829 * libc/sys/linux/stack.c: Ditto.
8830 * libc/sys/linux/usleep.c: Ditto.
8831 * libc/sys/linux/machine/Makefile.am: Ditto.
8832 * libc/sys/linux/machine/Makefile.in: Ditto.
8833 * libc/sys/linux/machine/aclocal.m4: Ditto.
8834 * libc/sys/linux/machine/configure: Ditto.
8835 * libc/sys/linux/machine/configure.in: Ditto.
8836 * libc/sys/linux/machine/i386/Makefile.am: Ditto.
8837 * libc/sys/linux/machine/i386/Makefile.in: Ditto.
8838 * libc/sys/linux/machine/i386/aclocal.m4: Ditto.
8839 * libc/sys/linux/machine/i386/configure: Ditto.
8840 * libc/sys/linux/machine/i386/configure.in: Ditto.
8841 * libc/sys/linux/machine/i386/crt0.c: Ditto.
8842 * libc/sys/linux/machine/i386/sigset.c: Ditto.
8843 * libc/sys/linux/machine/i386/sigstack.h: Ditto.
8844 * libc/sys/linux/machine/i386/socketcall.h: Ditto.
8845 * libc/sys/linux/machine/i386/syscall.h: Ditto.
8846 * libc/sys/linux/sys/select.h: Ditto.
8847 * libc/sys/linux/configure.in: Add support for machine directory.
8848 * libc/sys/linux/Makefile.am: Ditto plus add new files above.
8849 * libc/sys/linux/Makefile.in: Regenerated.
8850 * libc/sys/linux/configure: Ditto.
8851 * libc/sys/linux/brk.c: Use machine/syscall.h instead of sys/syscall.h.
8852 * libc/sys/linux/inode.c: Ditto.
8853 * libc/sys/linux/linux.c: Ditto.
8854 * libc/sys/linux/process.c: Ditto.
8855 * libc/sys/linux/systat.c: Ditto.
8856 * libc/sys/linux/time.c: Ditto.
8857 * libc/sys/linux/wait.c: Ditto.
8858 * libc/sys/linux/ids.c: Change header plus add setfsgid/setfsuid.
8859 * libc/sys/linux/io.c: Change header plus add readv/writev.
8860 * libc/sys/linux/signal.c: Change header plus change sigsuspend to
8861 use __sigsuspend syscall.
8862 * libc/sys/linux/select.c: Change header plus change select to
8863 use _newselect syscall.
8864 * libc/sys/linux/sys/cdefs.h: Add a number of standard definitions
8865 used by glibc header files.
8866 * libc/sys/linux/sys/types.h: Add __socklen_t and __useconds_t
8867 types.
8868
8869 2002-04-01 Jeff Johnston <jjohnstn@redhat.com>
8870
8871 * libc/include/sys/reent.h (_REENT_INIT_PTR): New macro for
8872 initializing a struct _reent that has been dynamically allocated.
8873 (_REENT_CHECK_MISC): New macro that checks _misc struct for
8874 _REENT_SMALL and does nothing otherwise.
8875 (_REENT_STRTOK_LAST): New macro for reentrant strtok.
8876 (_REENT_MBLEN_STATE): New macro for reentrant mblen.
8877 (_REENT_MBTOWC_STATE): New macro for reentrant mbtowc.
8878 (_REENT_WCTOMB_STATE): New macro for reentrant wctomb.
8879 [_REENT_SMALL](struct _misc_reent): New structure containing
8880 miscellaneous reentrant areas needed by newlib.
8881 [_REENT_SMALL](struct _reent): Add _misc pointer.
8882 [_REENT_SMALL](_REENT_INIT_MISC): New macro.
8883 * libc/string/strtok (strtok): Change to use _REENT_CHECK_MISC
8884 and _REENT_STRTOK_LAST macros.
8885 * libc/stdlib/mblen (mblen): Change to use _REENT_CHECK_MISC
8886 and _REENT_MBLEN_STATE macros.
8887 * libc/stdlib/mbtowc (mbtowc): Change to use _REENT_CHECK_MISC
8888 and _REENT_MBTOWC_STATE macros.
8889 * libc/stdlib/wctomb (wctomb): Change to use _REENT_CHECK_MISC
8890 and _REENT_WCTOMB_STATE macros.
8891
8892 2002-04-01 Till Straumann <strauman@SLAC.Stanford.EDU>
8893
8894 * libc/stdlib/getenv_r.c (_findenv_r): Add missing ENV_UNLOCK.
8895
8896 Wed Mar 27 07:34:44 2002 Jason Tishler <jason@tishler.net>
8897
8898 * libc/include/sys/features.h (_POSIX_SEMAPHORES): New Cygwin define.
8899
8900 Tue Mar 26 17:17:10 2002 J"orn Rennecke <joern.rennecke@superh.com>
8901
8902 * libc/machine/sh/memcpy.S (Large): Fix alignment rounding.
8903 Store high part of leading bytes too.
8904
8905 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
8906
8907 * libm/math/ef_hypot.c: Increase scale factor to 68.
8908
8909 2002-03-13 Alexandre Oliva <aoliva@redhat.com>
8910
8911 * libc/machine/mips/strlen.c (strlen) [__mips16]: Fix off-by-two
8912 error.
8913
8914 2002-03-12 Jeff Johnston <jjohnstn@redhat.com>
8915
8916 * libc/sys/go32/access.c: Change license to relaxed license
8917 used in identical file throughout newlib/libgloss.
8918
8919 2002-03-12 Richard Earnshaw <rearnsha@arm.com>
8920
8921 * libc/sys/arm/access.c: New file.
8922 * libc/sys/arm/Makefile.am (lib_a_SOURCES): Add access.c.
8923 * libc/sys/arm/Makefile.in: Regenerate.
8924 * libc/sys/arm/syscalls.c (_stat): New function.
8925
8926 2002-03-11 Michael Meissner <meissner@redhat.com>
8927
8928 * libc/machine/mips/Makefile.am (lib_a_SOURCES): Add Mips specific
8929 variants strlen.c, strcmp.c, strncpy.c, memset.c and memcpy.c.
8930 * libc/machine/mips/Makefile.in: Regenerate.
8931 * libc/machine/mips/memcpy.c: New file, optimized for MIPS.
8932 * libc/machine/mips/memset.c: Dito.
8933 * libc/machine/mips/strcmp.c: Dito.
8934 * libc/machine/mips/strlen.c: Dito.
8935 * libc/machine/mips/strncmp.c: Dito.
8936
8937 2002-03-06 Jeff Johnston <jjohnstn@redhat.com>
8938
8939 * libc/machine/i386/Makefile.am: Add $(oext) for setjmp
8940 object so it works for shared library or statici library.
8941 2002-04-17 Jeff Johnston <jjohnstn@redhat.com>
8942
8943 * libc/include/time.h (tzset, _tzset_r): Added prototypes.
8944 (strptime): Moved prototype to be within !__STRICT_ANSI__.
8945 (_tzname, _daylight, _timezone): No long __CYGWIN__ only.
8946 (tzname): Defined for all platforms.
8947 (daylight, timezone): Defined only for CYGWIN.
8948 * libc/sys/linux/machine/i386/crt0.c: Add call to tzset() after
8949 environment set up.
8950 * libc/stdlib/setenv_r.c (_setenv_r): Call tzset() if the TZ
8951 environment variable is set.
8952 * libc/time/Makefile.am: Add support for tzset.c, tzlock.c, and
8953 tzset_r.c.
8954 * libc/time/Makefile.in: Regenerated.
8955 * libc/time/gmtime.c (gmtime): Changed to call gmtime_r.
8956 * libc/time/gmtime_r.c (gmtime_r): Changed to call _mktm_r.
8957 * libc/time/lcltime_r.c (lcltime_r): Ditto.
8958 * libc/time/local.h: New local header file.
8959 * libc/time/mktime.c (mktime): Add timezone support.
8960 * libc/time/mktm_r.c: New file which is the common engine
8961 for gmtime_r and lcltime_r. This code has timezone support.
8962 * libc/time/strftime.c (strftime): Add %Z timezone support.
8963 * libc/time/tzlock.c: New file containing timezone lock stubs.
8964 * libc/time/tzset.c: New file containing tzset() routine.
8965 * libc/time/tzset_r.c: New file containing _tzset_r and
8966 internal routine for calculating timezone changes for specified year.
8967
8968 2002-04-17 Thomas Fitzsimmons <fitzsim@redhat.com>
8969
8970 * configure.in (CRT0_DIR): Set to libc/.
8971 (CRT1_DIR): Set to ${crt1_dir}/ if crt1_dir is non-empty.
8972 * Makefile.am: Change all occurrences of $(CRT0_DIR)/$(CRT0) to
8973 $(CRT0_DIR)$(CRT0) to prevent make warnings. Likewise for
8974 $(CRT1_DIR)/$(CRT1).
8975 * libc/machine/xstormy16/Makefile.in: Regenerated.
8976 * libc/machine/xstormy16/aclocal.m4: Regenerated.
8977 * libc/machine/xstormy16/configure: Regenerated.
8978
8979 2002-04-13 Alexandre Oliva <aoliva@redhat.com>
8980
8981 * libc/stdlib/mallocr.c (malloc_extend_top): If correction sbrk
8982 fails, don't bail out, and try to correct next time.
8983
8984 * libc/include/sys/config.h: Include limits.h.
8985
8986 2002-04-12 Eric Norum <eric.norum@usask.com>
8987
8988 * libc/sys/rtems/crt0.c (rtems_gxx_mutex_init): Dummy
8989 routine to allow autoconf to determine that building executables
8990 for rtems works.
8991 (rtems_gxx_mutex_lock, rtems_gxx_mutex_unlock): Ditto.
8992 (rtems_gxx_mutex_once): Ditto.
8993
8994 2002-04-09 Tom Rix <trix@redhat.com>
8995
8996 * libc/include/sys/reent.h (_REENT_INIT_PTR): Fix typo.
8997
8998 2002-04-09 Mark Bradshaw <bradshaw@staff.crosswalk.com>
8999
9000 * libc/include/time.h: Fix strptime declaration.
9001 * libc/time/Makefile.am: Add strptime.c.
9002 * libc/time/Makefile.in: Regenerated.
9003 * libc/time/strptime.c: New file.
9004
9005 2002-04-08 Jeff Johnston <jjohnstn@redhat.com>
9006
9007 * libc/sys/linux/include/setjmp.h: Add sigjmp_buf type,
9008 siglongjmp prototype, and sigsetjmp macro definition.
9009 * libc/sys/linux/siglongjmp.c: New file.
9010 * libc/sys/linux/Makefile.am: Add support for siglongjmp.
9011 * libc/sys/linux/Makefile.in: Regenerated.
9012
9013 2002-04-04 Jeff Johnston <jjohnstn@redhat.com>
9014
9015 * Makefile.am: Add support for installing crt1.o if one exists.
9016 * configure.host: Specify crt1.o for linux.
9017 * configure.in: Expose CRT1 and CRT1_DIR for Makefile.am to use.
9018 * Makefile.in: Regenerated.
9019 * configure: Ditto.
9020 * libc/include/sys/unistd.h (_SC_STREAM_MAX, _SC_PRIORITY_SCHEDULING):
9021 Added for non-Cygwin, non-RTEMS configurations.
9022 * libc/sys/linux/Makefile.am: Add support for crt1 and sysconf.
9023 * libc/sys/linux/Makefile.in: Regenerated.
9024 * libc/sys/linux/crt1.c: New empty file to override one defaulted
9025 by gcc. This fixes problem with reconfiguring linux newlib build.
9026 * libc/sys/linux/sysconf.c: New file.
9027
9028 2002-04-03 Jeff Johnston <jjohnstn@redhat.com>
9029
9030 * configure.host: Add support for machine subdirectory of
9031 sys subdirectory.
9032 * configure.in: Add check for sys machine subdirectory.
9033 * Makefile.am: Ditto.
9034 * configure: Regenerated.
9035 * Makefile.in: Ditto.
9036 * libc/sys/linux/crt0.c: Moved to machine/i386 directory.
9037 * libc/sys/linux/sys/syscall.h: Ditto.
9038 * libc/sys/linux/sleep.c: New file.
9039 * libc/sys/linux/socket.c: Ditto.
9040 * libc/sys/linux/sockops.h: Ditto.
9041 * libc/sys/linux/stack.c: Ditto.
9042 * libc/sys/linux/usleep.c: Ditto.
9043 * libc/sys/linux/machine/Makefile.am: Ditto.
9044 * libc/sys/linux/machine/Makefile.in: Ditto.
9045 * libc/sys/linux/machine/aclocal.m4: Ditto.
9046 * libc/sys/linux/machine/configure: Ditto.
9047 * libc/sys/linux/machine/configure.in: Ditto.
9048 * libc/sys/linux/machine/i386/Makefile.am: Ditto.
9049 * libc/sys/linux/machine/i386/Makefile.in: Ditto.
9050 * libc/sys/linux/machine/i386/aclocal.m4: Ditto.
9051 * libc/sys/linux/machine/i386/configure: Ditto.
9052 * libc/sys/linux/machine/i386/configure.in: Ditto.
9053 * libc/sys/linux/machine/i386/crt0.c: Ditto.
9054 * libc/sys/linux/machine/i386/sigset.c: Ditto.
9055 * libc/sys/linux/machine/i386/sigstack.h: Ditto.
9056 * libc/sys/linux/machine/i386/socketcall.h: Ditto.
9057 * libc/sys/linux/machine/i386/syscall.h: Ditto.
9058 * libc/sys/linux/sys/select.h: Ditto.
9059 * libc/sys/linux/configure.in: Add support for machine directory.
9060 * libc/sys/linux/Makefile.am: Ditto plus add new files above.
9061 * libc/sys/linux/Makefile.in: Regenerated.
9062 * libc/sys/linux/configure: Ditto.
9063 * libc/sys/linux/brk.c: Use machine/syscall.h instead of sys/syscall.h.
9064 * libc/sys/linux/inode.c: Ditto.
9065 * libc/sys/linux/linux.c: Ditto.
9066 * libc/sys/linux/process.c: Ditto.
9067 * libc/sys/linux/systat.c: Ditto.
9068 * libc/sys/linux/time.c: Ditto.
9069 * libc/sys/linux/wait.c: Ditto.
9070 * libc/sys/linux/ids.c: Change header plus add setfsgid/setfsuid.
9071 * libc/sys/linux/io.c: Change header plus add readv/writev.
9072 * libc/sys/linux/signal.c: Change header plus change sigsuspend to
9073 use __sigsuspend syscall.
9074 * libc/sys/linux/select.c: Change header plus change select to
9075 use _newselect syscall.
9076 * libc/sys/linux/sys/cdefs.h: Add a number of standard definitions
9077 used by glibc header files.
9078 * libc/sys/linux/sys/types.h: Add __socklen_t and __useconds_t
9079 types.
9080
9081 2002-04-01 Jeff Johnston <jjohnstn@redhat.com>
9082
9083 * libc/include/sys/reent.h (_REENT_INIT_PTR): New macro for
9084 initializing a struct _reent that has been dynamically allocated.
9085 (_REENT_CHECK_MISC): New macro that checks _misc struct for
9086 _REENT_SMALL and does nothing otherwise.
9087 (_REENT_STRTOK_LAST): New macro for reentrant strtok.
9088 (_REENT_MBLEN_STATE): New macro for reentrant mblen.
9089 (_REENT_MBTOWC_STATE): New macro for reentrant mbtowc.
9090 (_REENT_WCTOMB_STATE): New macro for reentrant wctomb.
9091 [_REENT_SMALL](struct _misc_reent): New structure containing
9092 miscellaneous reentrant areas needed by newlib.
9093 [_REENT_SMALL](struct _reent): Add _misc pointer.
9094 [_REENT_SMALL](_REENT_INIT_MISC): New macro.
9095 * libc/string/strtok (strtok): Change to use _REENT_CHECK_MISC
9096 and _REENT_STRTOK_LAST macros.
9097 * libc/stdlib/mblen (mblen): Change to use _REENT_CHECK_MISC
9098 and _REENT_MBLEN_STATE macros.
9099 * libc/stdlib/mbtowc (mbtowc): Change to use _REENT_CHECK_MISC
9100 and _REENT_MBTOWC_STATE macros.
9101 * libc/stdlib/wctomb (wctomb): Change to use _REENT_CHECK_MISC
9102 and _REENT_WCTOMB_STATE macros.
9103
9104 2002-04-01 Till Straumann <strauman@SLAC.Stanford.EDU>
9105
9106 * libc/stdlib/getenv_r.c (_findenv_r): Add missing ENV_UNLOCK.
9107
9108 Wed Mar 27 07:34:44 2002 Jason Tishler <jason@tishler.net>
9109
9110 * libc/include/sys/features.h (_POSIX_SEMAPHORES): New Cygwin define.
9111
9112 Tue Mar 26 17:17:10 2002 J"orn Rennecke <joern.rennecke@superh.com>
9113
9114 * libc/machine/sh/memcpy.S (Large): Fix alignment rounding.
9115 Store high part of leading bytes too.
9116
9117 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
9118
9119 * libm/math/ef_hypot.c: Increase scale factor to 68.
9120
9121 2002-03-13 Alexandre Oliva <aoliva@redhat.com>
9122
9123 * libc/machine/mips/strlen.c (strlen) [__mips16]: Fix off-by-two
9124 error.
9125
9126 2002-03-12 Jeff Johnston <jjohnstn@redhat.com>
9127
9128 * libc/sys/go32/access.c: Change license to relaxed license
9129 used in identical file throughout newlib/libgloss.
9130
9131 2002-03-12 Richard Earnshaw <rearnsha@arm.com>
9132
9133 * libc/sys/arm/access.c: New file.
9134 * libc/sys/arm/Makefile.am (lib_a_SOURCES): Add access.c.
9135 * libc/sys/arm/Makefile.in: Regenerate.
9136 * libc/sys/arm/syscalls.c (_stat): New function.
9137
9138 2002-03-11 Michael Meissner <meissner@redhat.com>
9139
9140 * libc/machine/mips/Makefile.am (lib_a_SOURCES): Add Mips specific
9141 variants strlen.c, strcmp.c, strncpy.c, memset.c and memcpy.c.
9142 * libc/machine/mips/Makefile.in: Regenerate.
9143 * libc/machine/mips/memcpy.c: New file, optimized for MIPS.
9144 * libc/machine/mips/memset.c: Dito.
9145 * libc/machine/mips/strcmp.c: Dito.
9146 * libc/machine/mips/strlen.c: Dito.
9147 * libc/machine/mips/strncmp.c: Dito.
9148
9149 2002-03-06 Jeff Johnston <jjohnstn@redhat.com>
9150
9151 * libc/machine/i386/Makefile.am: Add $(oext) for setjmp
9152 object so it works for shared library or statici library.
9153 * libc/machine/i386/Makefile.in: Regenerated.
9154
9155 Wed Mar 6 10:24:26 2002 J"orn Rennecke <joern.rennecke@superh.com>
9156
9157 * libc/machine/sh/Makefile.am (lib_a_SOURCES, SH64 case):
9158 Add memcpy.S, memset.S and strcpy.S.
9159 * libc/machine/sh/Makefile.in: Regenerate.
9160 * libc/machine/sh/asm.h (_ENTRY): Set SH5 alignment to 8 bytes.
9161 (SHHI, SHLO): Define.
9162 * libc/machine/sh/memset.S: Add code for SH5.
9163 * libc/machine/sh/memset.S: Likewise.
9164 * libc/machine/sh/strcpy.S: Likewise.
9165
9166 2002-02-27 Jeff Johnston <jjohnstn@redhat.com>
9167
9168 * configure.host: Add check for --disable-newlib-io-float
9169 configuration option and add -DNO_FLOATING_POINT to newlib cflags
9170 if appropriate.
9171 * acinclude.m4: Added --disable-newlib-io-float option.
9172 * aclocal.m4: Regenerated.
9173 * configure: Ditto.
9174 * doc/aclocal.m4 doc/configure libc/aclocal.m4 libc/configure
9175 * libc/*/aclocal.m4 libc/*/configure
9176 * libm/*/aclocal.m4 libm/*/configure: Ditto.
9177 * libc/stdio/vfprintf.c [!INTEGER_ONLY]: Only set FLOATING_POINT
9178 if NO_FLOATING_POINT flag is not defined.
9179
9180 2002-02-25 Jeff Johnston <jjohnstn@redhat.com>
9181
9182 * libc/include/sys/config.h: Add __extension__ in front of
9183 long long references.
9184
9185 2002-02-23 Corinna Vinschen <corinna@vinschen.de>
9186
9187 * libc/include/sys/stat.h (_fstat): Don't declare when compiling Cygwin.
9188 (_stat): Ditto.
9189
9190 2002-02-23 Corinna Vinschen <corinna@vinschen.de>
9191
9192 * libc/sys/cygwin/sys/dirent.h (struct __DIR): Use __off32_t instead
9193 of off_t.
9194
9195 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
9196
9197 * libc/machine/xscale/strchr.c (strchr): Add 'r1' to the list of
9198 clobbered registers.
9199
9200 2002-02-19 Thomas Fitzsimmons <fitzsim@redhat.com>
9201
9202 * configure.host (newlib_cflags): When host is in m68* add
9203 -DCOMPACT_CTYPE.
9204
9205 2002-02-15 Jeff Johnston <jjohnstn@redhat.com>
9206
9207 * libc/include/sys/config.h: Add definitions for
9208 __int16_t, __uint16_t, __int64_t, and __uint64_t.
9209
9210 2002-02-12 Hans-Peter Nilsson <hp@bitrange.com>
9211
9212 * libc/sys/mmixware/link.c: New.
9213 * libc/sys/mmixware/sys/syscall.h (TRAP1i, I3f): Make asm
9214 volatile.
9215 * libc/sys/mmixware/times.c (_times): Renamed from times.
9216 * libc/sys/mmixware/open.c (_open): Attempt to handle O_APPEND
9217 properly by reading previous contents, not through BinaryReadWrite.
9218 * libc/sys/mmixware/Makefile.am (lib_a_SOURCES): Add link.c
9219 * libc/sys/mmixware/Makefile.in: Regenerate.
9220
9221 2002-02-10 Corinna Vinschen <corinna@vinschen.de>
9222
9223 * libc/include/grp.h: Don't declare group functions when compiling
9224 Cygwin.
9225
9226 2002-02-09 Corinna Vinschen <corinna@vinschen.de>
9227
9228 * libc/include/grp.h: Include Cygwin specific header.
9229 * libc/include/sys/stat.h: Ditto. Don't define `struct stat'
9230 when compiling for Cygwin.
9231 * libc/include/sys/types.h: Don't define off_t, uid_t
9232 and gid_t when compiling for Cygwin.
9233
9234 2002-02-08 matthew green <mrg@redhat.com>
9235
9236 * libc/include/sys/reent.h (_REENT_CHECK_EMERGENCY): Allocate
9237 _REENT_EMERGENCY_SIZE, not sizeof(char *).
9238
9239 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
9240
9241 Contribute sh64-elf.
9242 2001-03-13 Alexandre Oliva <aoliva@redhat.com>
9243 * configure.host (newlib_cflags) [sh*-*-*]: Enable long long
9244 support in printf.
9245 2001-01-29 Alexandre Oliva <aoliva@redhat.com>
9246 * libc/machine/sh/setjmp.S [SH5]: Switch to SHmedia mode before
9247 any labels.
9248 2001-01-24 Alexandre Oliva <aoliva@redhat.com>
9249 * libc/sys/sh/trap.S (___trap34) [SH5]: Don't trash r2.
9250 2000-12-16 Alexandre Oliva <aoliva@redhat.com>
9251 * libc/machine/sh/configure.in: Rework conditionals.
9252 * libc/machine/sh/Makefile.am: Likewise.
9253 * libc/machine/sh/configure, libc/machine/sh/Makefile.in: Rebuilt.
9254 2000-12-01 Alexandre Oliva <aoliva@redhat.com>
9255 * configure.host: Match `sh*'.
9256 * libc/include/machine/setjmp.h: Define for SH5.
9257 * libc/machine/sh/configure.in: Detect SH5.
9258 * libc/machine/sh/configure: Rebuilt.
9259 * libc/machine/sh/Makefile.am: Use only setjmp.S for SH5.
9260 * libc/machine/sh/Makefile.in: Rebuilt.
9261 * libc/machine/sh/asm.h: Adjust for SH5.
9262 * libc/machine/sh/setjmp.S: Implement in SHmedia.
9263 * libc/sys/sh/crt0.S: Likewise.
9264 * libc/sys/sh/trap.S: Likewise.
9265
9266 2002-02-07 Jeff Johnston <jjohnstn@redhat.com>
9267
9268 * libc/machine/i386/Makefile.am: (mach_add_src): Remove.
9269 (mach_add_obj): Conditionally set to setjmp.o or nothing.
9270 (LIB_SOURCES): Remove $(mach_add_src).
9271 (lib_a_LIBADD, lib_a_DEPENDENCIES): Add and set to $(mach_add_src).
9272 (lib_la_LIBADD, lib_la_DEPENDENCIES): Ditto.
9273 * libc/machine/i386/Makefile.in: Regenerate.
9274
9275 2002-02-05 Manik Raina <manik@cisco.com>
9276
9277 * libc/misc/dprintf.c (parse_number): #if 0 unused function.
9278 * libc/stdlib/ldtoa.c (_ldcheck): Remove unused local variables
9279 s, p, k, and outstr.
9280 * libc/stdlib/dtoa.c (_dtoa_r): Initialize mlo.
9281
9282 2002-02-04 Jeff Johnston <jjohnstn@redhat.com>
9283
9284 * libc/include/sys/reent.h [(!_REENT_SMALL]: Add
9285 _REENT_CHECK_EMERGENCY macro.
9286
9287 2002-02-03 matthew green <mrg@redhat.com>
9288
9289 * libc/reent/signgam.c (__signgam): Fix error in previous.
9290
9291 2002-02-02 matthew green <mrg@redhat.com>
9292
9293 * libc/include/sys/config.h (_REENT_SMALL): Define for Xstormy16.
9294
9295 * libc/reent/reent.c (_reclaim_reent): Clean for _REENT_SMALL case.
9296 * libc/reent/reent.tex: Add blurb about _REENT_SMALL.
9297 * libc/include/sys/reent.h (struct _reent): Completely new version
9298 for _REENT_SMALL.
9299 (_REENT_INIT): New defines, different defintion depending on _REENT_SMALL.
9300 (_REENT_CHECK, _REENT_CHECK_TM): Likewise.
9301 (_REENT_CHECK_ASCTIME_BUF, _REENT_INIT_RAND48): Likewise.
9302 (_REENT_CHECK_RAND48, _REENT_INIT_MP, _REENT_CHECK_MP): Likewise.
9303 (_REENT_CHECK_EMERGENCY, _REENT_SIGNGAM, _REENT_RAND_NEXT): Likewise.
9304 (_REENT_RAND48_SEED, _REENT_RAND48_MULT, _REENT_RAND48_ADD): Likewise.
9305 (_REENT_MP_RESULT, _REENT_MP_RESULT_K, _REENT_MP_P5S): Likewise.
9306 (_REENT_MP_FREELIST, _REENT_ASCTIME_BUF, _REENT_TM): Likewise.
9307 (_REENT_EMERGENCY): Likewise.
9308
9309 * libc/include/sys/reent.h (struct __sFILE_fake): New struct, same as
9310 the start of the real __sFILE, used for stdin, stdout and stderr until
9311 they are setup properly.
9312 (struct __sFILE): Move location of _data in _REENT_SMALL case.
9313 * libc/stdio/findfp.c (__sinit): Rearrange for _REENT_SMALL case by
9314 allocated stdin, stdout and stderr.
9315 * libc/stdio/getchar.c (_getchar_r): Call _REENT_SMALL_CHECK_INIT().
9316 * libc/stdio/iprintf.c (iprintf, _iprintf_r): Likewise.
9317 * libc/stdio/perror.c (_perror_r): Likewise.
9318 * libc/stdio/printf.c (printf, _printf_r): Likewise.
9319 * libc/stdio/putchar.c (_putchar_r): Likewise.
9320 * libc/stdio/puts.c (_puts_r): Likewise.
9321 * libc/stdio/scanf.c (scanf, _scanf_r): Likewise.
9322 * libc/stdio/vprintf.c (vprintf): Likewise.
9323 * libc/stdio/vscanf.c (vscanf, _vscanf_r): Likewise.
9324
9325 * libc/stdio/tmpnam.c (_tmpnam_r): Use _REENT_EMERGENCY().
9326
9327 * libc/reent/reent.c (_wrapup_reent): Adjust for _REENT_SMALL atexit.
9328 * libc/include/sys/reent.h (_atexit): Limit atexit() entries to 32
9329 for _REENT_SMALL.
9330 * libc/stdlib/atexit.c (atexit): Rearrange for _REENT_SMALL case.
9331 * libc/stdlib/exit.c (exit): Rearrange for _REENT_SMALL case.
9332
9333 * libc/include/sys/reent.h (struct _rand48): Keep _rand_next if
9334 _REENT_SMALL.
9335 * libc/stdlib/drand48.c (_drand48_r): Call _REENT_CHECK_RAND48().
9336 * libc/stdlib/lcong48.c (_lcong48_r): Likewise.
9337 * libc/stdlib/lrand48.c (_lrand48_r): Likewise.
9338 * libc/stdlib/mrand48.c (_mrand48_r): Likewise.
9339 * libc/stdlib/rand48.c (__dorand48): Likewise.
9340 * libc/stdlib/seed48.c (_seed48_r): Likewise.
9341 * libc/stdlib/srand48.c (_srand48_r): Likewise.
9342 * libc/stdlib/rand48.h (__rand48_seed, __rand48_mult, __rand48_add): Define
9343 as _REENT_RAND48_SEED(), _REENT_RAND48_MULT() and _REENT_RAND48_ADD().
9344 * libc/stdlib/dtoa.c (_dtoa_r): Call _REENT_CHECK_MP(). Use
9345 _REENT_MP_RESULT() and _REENT_MP_RESULT_K().
9346 * libc/stdlib/ldtoa.c (_ldtoa_r): Likewise.
9347 * libc/stdlib/rand.c (srand): Use _REENT_RAND_NEXT().
9348 * libc/stdlib/rand.c (rand): Likewise.
9349
9350 * libc/stdlib/mallocr.c (malloc_stats): Call _REENT_SMALL_CHECK_INIT().
9351 * libc/stdlib/mstats.c (_mstats_r): Call _REENT_SMALL_CHECK_INIT().
9352
9353 * libc/stdlib/mprec.c (Balloc): Call _REENT_CHECK_MP. Use
9354 _REENT_MP_FREELIST() and _REENT_MP_P5S.
9355 * libc/include/sys/reent.h (struct _mprec): New structure.
9356
9357 * libc/include/sys/reent.h (struct _reent): Rename _strtok_last to
9358 _unused_strtok_last.
9359 * libc/string/strtok.c (strtok): Use a local static variable.
9360
9361 * libc/include/sys/reent.h (_REENT_ASCTIME_SIZE): New define.
9362 (_REENT_EMERGENCY_SIZE): Likewise.
9363 * libc/time/asctime.c (asctime): Call _REENT_CHECK_ASCTIME_BUF(). Use
9364 _REENT_ASCTIME_BUF().
9365 * libc/time/lcltime.c (localtime): Call _REENT_CHECK_TM(). Use
9366 _REENT_TM().
9367
9368 * libc/include/math.h (__singam_r): Use _REENT_SIGNGAM().
9369 * libc/reent/signgam.c (__signgam): Use _REENT_SIGNGAM().
9370 * libm/math/w_gamma.c (gamma): Use _REENT_SIGNGAM().
9371 * libm/math/w_lgamma.c (lgamma): Use _REENT_SIGNGAM().
9372 * libm/math/wf_gamma.c (gammaf): Use _REENT_SIGNGAM().
9373 * libm/math/wf_lgamma.c (lgammaf): Use _REENT_SIGNGAM().
9374
9375 2002-02-01 Geoffrey Keating <geoffk@redhat.com>
9376
9377 * configure.host (xstormy16): Don't use the generic malloc.
9378 * libc/machine/xstormy16/Makefile.am: Build tiny-malloc.
9379 * libc/machine/xstormy16/Makefile.in: Regenerate.
9380 * libc/machine/xstormy16/mallocr.c: New file.
9381 * libc/machine/xstormy16/tiny-malloc.c: New file.
9382
9383 2002-01-28 Thomas Fitzsimmons <fitzsim@redhat.com>
9384
9385 * libc/include/sys/signal.h [__CYGWIN__]: Issue error message
9386 when _CYGWIN_TYPES_H is not defined.
9387
9388 2002-01-24 Thomas Fitzsimmons <fitzsim@redhat.com>
9389
9390 * libc/include/sys/signal.h: Revert 2002-01-23 change.
9391
9392 2002-01-23 Thomas Fitzsimmons <fitzsim@redhat.com>
9393
9394 * libc/include/sys/signal.h: Remove pthread_kill declaration
9395 when __CYGWIN__ is defined.
9396
9397 2002-01-18 Mark Bradshaw <bradshaw@staff.crosswalk.com>
9398
9399 * libc/include/time.h: Add prototype for strptime for Cygwin.
9400
9401 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
9402
9403 * libc/machine/xscale/memset.c (memset): Fix bug when len == 1 and
9404 dst was not word aligned.
9405
9406 * libc/sys/arm/syscalls.c (_sbrk): Return -1 rather than aborting
9407 if too much memory is requested.
9408
9409 2002-01-11 Jeff Johnston <jjohnstn@redhat.com>
9410
9411 * libc/stdio/vfscanf.c (__svfscanf_r): Change loop that
9412 reads blanks from the input file to break if EOF reached
9413 rather than end processing.
9414
9415 2002-01-07 Jeff Johnston <jjohnstn@redhat.com>
9416
9417 * MAINTAINERS: Change e-mail addresses to refer to redhat domain.
9418
9419 2002-01-07 Alan Matsuoka <alanm@redhat.com>
9420
9421 * libc/include/machine/ieeefp.h: Configure d10v doubles to
9422 be 32 bits if __DOUBLE__ == 32 otherwise doubles are 64 bits.
9423 libc/include/sys/config.h: Ditto.
9424
9425 2001-12-28 Corinna Vinschen <corinna@vinschen.de>
9426
9427 * libc/sys/cygwin/sys/utmp.h: Add definition of UTMP_FILE.
9428
9429 2001-12-22 Geoffrey Keating <geoffk@redhat.com>
9430 Catherine Moore <clm@redhat.com>
9431 Richard Henderson <rth@redhat.com>
9432 Corinna Vinschen <vinschen@redhat.com>
9433
9434 * configure.host: Add support for xstormy16.
9435 * libc/include/machine/ieeefp.h: Add support for xstormy16.
9436 * libc/include/machine/setjmp.h: Add support for xstormy16.
9437 * libc/include/sys/config.h: Add support for xstormy16.
9438 * libc/machine/xstormy16/Makefile.am: New file.
9439 * libc/machine/xstormy16/Makefile.in: New file.
9440 * libc/machine/xstormy16/aclocal.m4: New file.
9441 * libc/machine/xstormy16/configure: New file.
9442 * libc/machine/xstormy16/configure.in: New file.
9443 * libc/machine/xstormy16/setjmp.S: New file.
9444
9445 2001-12-19 Thomas Fitzsimmons <fitzsim@redhat.com>
9446
9447 * libm/machine/configure.in (HAVE_LIBM_MACHINE_DIR): New conditional.
9448 * libm/machine/Makefile.am [HAVE_LIBM_MACHINE_DIR] (LIBM_MACHLIB): New variable.
9449
9450 2001-12-19 Corinna Vinschen <corinna@vinschen.de>
9451
9452 * libm/machine/Makefile.am: Change rules to create correct lib.a.
9453 * libm/machine/Makefile.in: Regenerated through automake.
9454
9455 2001-12-18 Thomas Fitzsimmons <fitzsim@redhat.com>
9456
9457 * Makefile.am (DOCDIR): Force to empty string when doc
9458 directory is not present.
9459
9460 2001-12-18 Thomas Fitzsimmons <fitzsim@redhat.com>
9461
9462 * libc/machine/i386/f_*: Move to libm/machine/i386.
9463
9464 2001-12-18 Joel Sherrill <joel@OARcorp.com>
9465
9466 * libm/machine/Makefile.am: Add dummy doc stub so
9467 "make info" works.
9468
9469 2001-12-17 Joel Sherrill <joel@OARcorp.com>
9470
9471 * libc/include/sys/types.h (ino_t): RTEMS uses long also.
9472
9473 2001-12-17 Thomas Fitzsimmons <fitzsim@redhat.com>
9474
9475 * libc/stdlib/Makefile.am (LIB_COMPILE): Change to equal
9476 $(COMPILE) rather than $(CC).
9477 * libc/stdio/Makefile.am (LIB_COMPILE): Likewise.
9478 (vfprintf.$(oext)): Remove $(INCLUDES), made redundant by
9479 $(LIB_COMPILE) change.
9480 (vfiprintf.$(oext)): Likewise.
9481
9482 2001-12-17 Corinna Vinschen <vinschen@redhat.de>
9483
9484 * libc/sys/cygwin/include/unistd.h: Add __UNISTD_GETOPT_ to allow
9485 conditionalized including of getopt stuff.
9486
9487 2001-12-14 Thomas Fitzsimmons <fitzsim@redhat.com>
9488
9489 * libc/stdio/Makefile.am (vfprintf.$(oext)): Add $(INCLUDES) to
9490 compile line.
9491 (vfiprintf.$(oext)): Likewise.
9492
9493 2001-12-13 Thomas Fitzsimmons <fitzsim@redhat.com>
9494
9495 * Makefile.shared: New file.
9496 * libc/sys/linux/shared.ld: New file.
9497 * libm/machine/*: New files.
9498 * libm/machine/i386/*: New files.
9499 * Makefile.am: Add libtool support. Change math and mathfp
9500 references to variables.
9501 * configure.host: Add variables for libtool support. Add
9502 libm_machine_dir variable.
9503 * configure.in: Add objectlist variables, for libtool
9504 support. Add CC_FOR_BUILD tests.
9505 * libc/Makefile.am: Add libtool support. Change crt0.o
9506 reference to be a variable reference.
9507 * libc/configure.in: Add libtool support. Change sublib
9508 names to be lib${subdir}.la when using libtool.
9509 * libc/ctype/Makefile.am: Add libtool support.
9510 * libc/errno/Makefile.am: Likewise.
9511 * libc/locale/Makefile.am: Likewise.
9512 * libc/machine/Makefile.am: Likewise.
9513 * libc/machine/configure.in: Likewise.
9514 * libc/machine/i386/Makefile.am: Likewise.
9515 * libc/machine/i386/configure.in: Likewise.
9516 * libc/misc/Makefile.am: Likewise.
9517 * libc/posix/Makefile.am: Likewise.
9518 * libc/reent/Makefile.am: Likewise.
9519 * libc/signal/Makefile.am: Likewise.
9520 * libc/stdio/Makefile.am: Likewise.
9521 * libc/stdlib/Makefile.am: Likewise.
9522 * libc/string/Makefile.am: Likewise.
9523 * libc/sys/Makefile.am: Likewise.
9524 * libc/sys/configure.in: Likewise.
9525 * libc/sys/linux/Makefile.am: Add libtool support. Change
9526 awk reference to a variable reference. Change signal.h
9527 reference to a variable reference.
9528 * libc/sys/linux/configure.in: Add libtool support.
9529 * libc/syscalls/Makefile.am: Likewise.
9530 * libc/time/Makefile.am: Likewise.
9531 * libc/unix/Makefile.am: Likewise.
9532 * libm/Makefile.am: Add libtool support. Change math and
9533 mathfp references to variables.
9534 * libm/configure.in: Add libtool support. Add
9535 LIBM_MACHINE_LIB variable.
9536 * libm/common/Makefile.am: Add libtool support.
9537 * libm/math/Makefile.am: Likewise.
9538 * libm/mathfp/Makefile.am: Likewise.
9539 Regenerate all Makefile.in, aclocal.m4, and configure.
9540
9541 2001-12-13 Anita Kulkarni <anitak@kpit.com>
9542
9543 * libc/sys/sh/crt0.S: Remove stack symbol definition 0xdeaddead.
9544
9545 2001-12-06 John Peacock <jpeacock@rowman.com>
9546
9547 * libc/include/sys/unistd.h: Correct ualarm declaration.
9548
9549 2001-12-05 Nick Clifton <nickc@cambridge.redhat.com>
9550
9551 * libc/sys/arm/crt0.S: For __USES_INITFINI__ preserve the argument
9552 vector before calling the initialisation functions.
9553
9554 2001-11-29 Christopher Faylor <cgf@redhat.com>
9555
9556 * libc/include/dirent.h: Protect against multiple inclusion.
9557
9558 2001-11-27 Christopher Faylor <cgf@redhat.com>
9559
9560 * libc/include/sys/types.h: Define useconds_t.
9561 * libc/include/sys/ulimit.h: Declare ualarm.
9562
9563 2001-11-21 Christopher Faylor <cgf@redhat.com>
9564
9565 * libc/sys/cygwin/sys/dirent.h (DIR): Add another internal element.
9566
9567 2001-11-19 Hans-Peter Nilsson <hp@bitrange.com>
9568
9569 * libc/sys/mmixware/*: Tweak license header in all source files.
9570
9571 2001-11-12 Corinna Vinschen <vinschen@redhat.com>
9572
9573 * libc/include/alloca.h: Move libc/sys/linux/include/alloca.h
9574 to here. Rearrange for general inclusion by stdlib.h.
9575 * libc/include/stdlib.h: Include <alloca.h> if __STRICT_ANSI__
9576 isn't defined.
9577 * libc/sys/linux/include/alloca.h: Move to libc/include.
9578
9579 2001-11-12 Anthony Green <green@redhat.com>
9580
9581 * libc/sys/arm/crt0.S (__stack_base__): New symbol.
9582
9583 2001-11-13 Hans-Peter Nilsson <hp@bitrange.com>
9584
9585 * libc/sys/mmixware/*: Correct spacing in all source files.
9586 * libc/sys/mmixware/syscall.h: Move misplaced file...
9587 * libc/sys/mmixware/sys/syscall.h: ...here.
9588
9589 2001-11-12 Hans-Peter Nilsson <hp@bitrange.com>
9590
9591 * libc/include/machine/ieeefp.h: Add support for mmix target.
9592 * libc/include/machine/setjmp.h: Ditto.
9593 * configure.host: Ditto.
9594 * libc/sys/mmixware/Makefile.am, libc/sys/mmixware/_exit.c,
9595 libc/sys/mmixware/access.c, libc/sys/mmixware/aclocal.m4,
9596 libc/sys/mmixware/chmod.c, libc/sys/mmixware/chown.c,
9597 libc/sys/mmixware/close.c, libc/sys/mmixware/configure.in,
9598 libc/sys/mmixware/creat.c, libc/sys/mmixware/crt0.c,
9599 libc/sys/mmixware/execv.c, libc/sys/mmixware/execve.c,
9600 libc/sys/mmixware/fork.c, libc/sys/mmixware/fstat.c,
9601 libc/sys/mmixware/getpid.c, libc/sys/mmixware/gettime.c,
9602 libc/sys/mmixware/isatty.c, libc/sys/mmixware/kill.c,
9603 libc/sys/mmixware/lseek.c, libc/sys/mmixware/open.c,
9604 libc/sys/mmixware/pipe.c, libc/sys/mmixware/read.c,
9605 libc/sys/mmixware/sbrk.c, libc/sys/mmixware/setjmp.S,
9606 libc/sys/mmixware/stat.c, libc/sys/mmixware/sys/syscall.h,
9607 libc/sys/mmixware/time.c, libc/sys/mmixware/times.c,
9608 libc/sys/mmixware/unlink.c, libc/sys/mmixware/utime.c,
9609 libc/sys/mmixware/wait.c, libc/sys/mmixware/write.c: New files.
9610 * libc/sys/mmixware/configure, libc/sys/mmixware/Makefile.in,
9611 libc/sys/mmixware/aclocal.m4: Generate.
9612
9613 2001-11-05 Corinna Vinschen <corinna@vinschen.de>
9614
9615 * libc/include/sys/unistd.h: Add prototypes for endusershell(),
9616 getusershell(), iruserok(), revoke(), ruserok() and setusershell()
9617 when __CYGWIN__ is defined.
9618 * libc/sys/cygwin/sys/utmp.h: Add prototypes for login_tty() and
9619 logwtmp().
9620
9621 2001-11-01 Arati Dikey <aratidikey@hotmail.com>
9622
9623 * libm/mathfp/sf_isinf.c (isinff): Change to use _DEFUN macro.
9624 [_DOUBLE_IS_32BITS](isinf): New function that calls isinff.
9625 * libm/mathfp/sf_isnan.c (isnanf): Change to use _DEFUN macro.
9626 [_DOUBLE_IS_32BITS](isnan): New function that calls isnanf.
9627
9628 2001-10-24 Christopher Faylor <cgf@redhat.com>
9629
9630 * libc/stdio/fseek.c: Reset pointer to buffer base
9631 when forced to seek outside of current buffer contents.
9632 This prevents the code from erroneously thinking there is
9633 anything in the current buffer.
9634
9635 2001-10-22 Geoffrey Keating <geoffk@redhat.com>
9636
9637 * libc/include/math.h: The C++ standard adds the single-precision
9638 versions of the elementary functions.
9639
9640 2001-10-22 Christopher Faylor <cgf@redhat.com>
9641
9642 * libc/posix/execvp.c: Remove obsolete CYGWIN32 considerations
9643 throughout.
9644 * signal.h: Change comment to reflect __CYGWIN__ rather than __CYGWIN32__.
9645 * popen.c (popen): Use __CYGWIN_ rather than __CYGWIN32__.
9646 * system.c (_system_r): Ditto.
9647
9648 2001-10-17 Corinna Vinschen <corinna@vinschen.de>
9649
9650 * libc/include/sys/unistd.h: Add prototype for fchdir() when
9651 __CYGWIN__ or __rtems__ is defined.
9652
9653 2001-10-01 Charles Wilson <cwilson@ece.gatech.edu>
9654
9655 * libc/include/stdlib.h: add declarations for
9656 _strtoull_r, _strtoll_r, strtoull, and strtoll.
9657 * libc/stdio/local.h: remove declarations of
9658 __strtoull_r and __strtoll_r.
9659 * libc/stdio/vfscanf.c(__svfscanf_r): call
9660 _strtoull_r instead of __strtoull_r. Ditto
9661 _strtoll_r vs. __strtoll_r.
9662 * libc/stdlib/Makefile.am: add new files to
9663 .c list and .def list
9664 * libc/stdlib/Makefile.in: regenerate
9665 * libc/stdlib/strtoll_r.c: rename __strtoll_r
9666 as _strtoll_r
9667 * libc/stdlib/strtoull_r.c: rename __strtoull_r
9668 as _strtoull_r
9669 * libc/stdlib/strtoull.c: new file
9670 * libc/stdlib/strtoll.c: new file
9671
9672 Mon Sep 17 17:29:47 2001 Christopher Faylor <cgf@cygnus.com>
9673
9674 * libc/include/process.h: Add getpid() declaration.
9675
9676 2001-09-14 Nick Clifton <nickc@cambridge.redhat.com>
9677
9678 * libc/sys/arm/crt0.S: Add calls to _init and _fini (via atexit)
9679 for new style arm/elf ctor/dtor handling.
9680 Minor formatting tidy up.
9681
9682 2001-09-13 Jeff Johnston <jjohnstn@redhat.com>
9683
9684 * libc/stdlib/Makefile.am: Add support to build strtoll_r.c
9685 and strtoull_r.c.
9686 * libc/stdlib/Makefile.in: Regenerated.
9687 * libc/stdlib/strtoll_r.c: New file.
9688 * libc/stdlib/strtoull_r.c: New file.
9689 * libc/stdio/local.h: Add prototypes for long long string
9690 conversion routines.
9691 * libc/stdio/vfscanf.c (__svfscanf_r): Add optional long long support
9692 tied to %L integer conversion specifier.
9693
9694 Thu Sep 13 08:49:49 2001 Jason Tishler <jason@tishler.net>
9695
9696 * strftime.c (strftime): Fix "%W" implementation to properly handle
9697 Mondays too.
9698
9699 2001-09-07 Jeff Law <law@redhat.com>
9700
9701 * libc/sys/h8300hms/crt0.S: For H8/300H and H8/S, load address of
9702 __fini with "mov.l" instead of "mov.w".
9703
9704 2001-09-05 Corinna Vinschen <corinna@vinschen.de>
9705
9706 * libc/sys/cygwin/include/unistd.h: New file, wrapping sys/unistd.h
9707 and getopt.h.
9708
9709 2001-09-04 Jason Merrill <jason_merrill@redhat.com>
9710
9711 * libc/sys/h8300hms/crt0.S: Support ELF initialization.
9712
9713 2001-09-03 Corinna Vinschen <corinna@vinschen.de>
9714
9715 * libc/sys/cygwin/sys/dirent.h (struct dirent): Add version number
9716 field.
9717 (__DIRENT_VERSION): New define.
9718
9719 2001-09-03 Corinna Vinschen <corinna@vinschen.de>
9720
9721 * libc/sys/cygwin/sys/dirent.h (struct dirent): Add `d_fd' member.
9722 Shrink __d_reserved accordingly to keep structure size.
9723 (dirfd): Declare external.
9724
9725 2001-08-29 Joel Sherrill <joel@OARcorp.com>
9726
9727 * libc/include/sys/unistd.h: Prototype chroot() for RTEMS.
9728
9729 2001-08-29 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
9730
9731 * libc/machine/i386/f_atan2.S, libc/machine/i386/f_atan2f.S,
9732 libc/machine/i386/f_exp.c, libc/machine/i386/f_expf.c,
9733 libc/machine/i386/f_frexp.S, libc/machine/i386/f_frexpf.S,
9734 libc/machine/i386/f_ldexp.S, libc/machine/i386/f_ldexpf.S,
9735 libc/machine/i386/f_log.S, libc/machine/i386/f_log10.S,
9736 libc/machine/i386/f_log10f.S, libc/machine/i386/f_logf.S,
9737 libc/machine/i386/f_pow.c, libc/machine/i386/f_powf.c,
9738 libc/machine/i386/f_tan.S, libc/machine/i386/f_tanf.S:
9739 Add conditional compilation to avoid HW FPU instructions
9740 when compiled for soft-float.
9741
9742 2001-08-29 Jeff Johnston <jjohnstn@redhat.com>
9743
9744 * Makefile.am: Add check for ln failing when creating libg.a
9745 so that cp gets used as a backup.
9746 * Makefile.in: Regenerated.
9747
9748 2001-08-29 Jeff Johnston <jjohnstn@redhat.com>
9749
9750 * libc/include/sys/reent.h: Add include of <sys/_types.h>.
9751 No longer include time.h. Add struct __tm to use for
9752 _localtime_buf in the reentrant structure. Add a
9753 _NULL definition to use in initializing the reentrant struct.
9754 * libc/include/sys/config.h: For CYGWIN32 and RTEMS, change
9755 the _READ_WRITE_RETURN_TYPE to _ssize_t which is found in
9756 <sys/_types.h>.
9757 * libc/include/sys/unistd.h: Include <sys/_types.h>.
9758 * libc/time/lcltime.c (localtime): Cast the reentrant struct
9759 _localtime_buf to be struct tm *.
9760
9761 Wed Aug 29 14:17:38 2001 J"orn Rennecke <amylaar@redhat.com>
9762
9763 * configure.host (h8300-*-elf*, h8500-*-elf*): New cases.
9764 * libc/sys/h8300hms/crt1.c (__main): Don't reference __ctors /
9765 __ctors_end.
9766 * libc/sys/h8300hms/syscalls.c: Include errno.h.
9767 (_unlink): New stub function.
9768
9769 Sat Aug 25 22:22:25 2001 Christopher Faylor <cgf@cygnus.com>
9770
9771 * libc/include/sys/errno.h: Add a cautionary comment.
9772
9773 2001-08-21 Jeff Johnston <jjohnstn@redhat.com>
9774
9775 * libc/stdlib/mallocr.c [!defined(MALLOC_ALIGNMENT)]: Add conditional
9776 for SIZE_SZ so that alignment ends up a minimum of 8.
9777
9778 Mon Aug 13 22:26:01 2001 Christopher Faylor <cgf@cygnus.com>
9779
9780 * libc/include/machine/setjmp.h: Protect sigsetjmp/siglongjmp macro
9781 arguments.
9782
9783 * libc/include/sys/errno.h: Declare sys_errlist and sys_nerr, under
9784 Cygwin.
9785
9786 2001-08-13 Jeff Johnston <jjohnstn@redhat.com>
9787
9788 * libc/include/malloc.h (M_MXFAST, M_NLBLKS, M_GRAIN, M_KEEP): New
9789 macro constants for mallopt options.
9790 (M_TRIM_THRESHOLD, M_TOP_PAD, M_MMAP_THRESHOLD, M_MMAP_MAX): Ditto.
9791
9792 2001-08-02 Jeff Johnston <jjohnstn@redhat.com>
9793
9794 * libc/include/stdio.h (BUFSIZ): Define to __BUFSIZ__ if provided,
9795 otherwise default.
9796
9797 2001-07-12 Aldy Hernandez <aldyh@redhat.com>
9798
9799 * libc/machine/mips/setjmp.S: Allow mips16 and mips64 to coexist.
9800
9801 2001-06-27 Nick Clifton <nickc@cambridge.redhat.com>
9802
9803 * libc/include/machine/ieeefp.h (__IEEE_BYTES_LITTLE_ENDIAN):
9804 Define for little endian ARMs.
9805
9806 * libc/stdlib/mprec.h (Storeinc): Use little endian version if
9807 __IEEE_BYTES_LITTLE_ENDIAN is defined.
9808
9809 2001-06-11 Danny Smith <dannysmith@users.sourceforge.net>
9810
9811 * /libc/include/ctype.h (is* and to* macros): Do not define if C++.
9812
9813 2001-06-11 Egor Duda <deo@logos-m.ru>
9814
9815 * libc/ctype/ctype_.c: When compiled with gcc on platforms
9816 with signed char, make _ctype_[-128] ... _ctype[-1] refer to
9817 initialized memory region. Platform can define COMPACT_CTYPE
9818 to avoid allocation of the additional 128 bytes of data.
9819 Add pointer to _ctype_ array. Always initialize all _ctype_
9820 array elements.
9821
9822 2001-06-08 Jonathan Larmour <jlarmour@redhat.com>
9823
9824 * libc/stdlib/mbtowc_r.c (_mbtowc_r): Avoid dereferencing
9825 NULL pointer.
9826
9827 2001-05-28 Nick Clifton <nickc@cambridge.redhat.com>
9828
9829 * libc/stdio/vfprintf.c (_VFPRINTF_R): Handle printf ("%#.0o",0)
9830
9831 2001-05-25 Nick Clifton <nickc@cambridge.redhat.com>
9832
9833 * libc/machine/xscale/memcmp.c: Fix bug when both pointers have
9834 matching, non-word alignment, and the length is <= 4 but more than
9835 enough to move them over a word boundary.
9836 Add comments explaining what each instruction does.
9837
9838 Mon May 7 20:39:25 2001 Christopher Faylor <cgf@cygnus.com>
9839
9840 * libc/include/sys/stat.h: Revert March 3, Cygwin change.
9841 * libc/include/sys/unistd.h: Ditto.
9842
9843 2001-05-04 Earnie Boyd <earnie@users.sourceforge.net>
9844
9845 * libc/string/strrchr.c: Use strchr for the speed improvements.
9846
9847 2001-05-01 Jeff Johnston <jjohnstn@redhat.com>
9848
9849 * libc/stdio/findfp (__sinit)[HAVE_FCNTL]: For platforms that have
9850 real file systems, let __smakebuf() determine if line buffering
9851 should be used for stdout.
9852
9853 2001-04-27 Jeff Johnston <jjohnstn@redhat.com>
9854
9855 * libc/stdio/vfscanf.c (__svfscanf_r): Initialize new_exp local var.
9856
9857 2001-04-27 Jeff Johnston <jjohnstn@redhat.com>
9858
9859 * libc/include/stdlib.h: Add prototype for _strtod_r.
9860
9861 2001-04-24 Charles Wilson <cwilson@ece.gatech.edu
9862
9863 * libc/stdio/vprintf.c (vprintf): fix signature to use _DEFUN
9864 * libc/stdio/vprintf.c (_vprintf_r): new function
9865 * libc/stdio/vsnprintf.c (vsnprintf): fix signature to use _DEFUN
9866 * libc/stdio/vsnprintf.c (_vsnprintf_r): fix signature to use
9867 _DEFUN, and call _vfprintf_r, not vfprintf.
9868 * libc/stdio/vsprintf.c (vsprintf.c): fix signature to use _DEFUN
9869 * libc/stdio/vsprintf.c (_vsprintf_r): fix signature to use
9870 _DEFUN, and call _vfprintf_r, not vfprintf.
9871
9872 2001-04-22 Earnie Boyd <earnie@users.sourceforge.net>
9873
9874 * libc/include/sys/unistd.h [X_OK]: Use better protection against
9875 Cygwin X_OK definitions in sys/file.h.
9876
9877 Fri Apr 20 23:17:51 2001 Christopher Faylor <cgf@cygnus.com>
9878
9879 * libc/include/sys/time.h: Define timercmp and other macros for
9880 __CYGWIN__, too.
9881
9882 2001-04-20 Jeff Johnston <jjohnstn@redhat.com>
9883
9884 * acinclude.m4: Added --enable-malloc-debugging configure flag.
9885 * configure.host: For Cygwin specify -DMALLOC_PROVIDED if
9886 --enable-malloc-debugging selected.
9887 * aclocal.m4 configure: Regenerated.
9888 libm/aclocal.m4 libm/configure: Ditto.
9889 * libc/aclocal.m4 libc/configure: Ditto.
9890 * libc/machine/aclocal.m4 libc/machine/configure: Ditto.
9891 * libc/machine/*/aclocal.m4 libc/machine/*/configure: Ditto.
9892 * libc/sys/aclocal.m4 libc/sys/configure: Ditto.
9893 * libc/sys/*/aclocal.m4 libc/sys/*/configure: Ditto.
9894 * doc/aclocal.m4 doc/configure: Ditto.
9895
9896 2001-04-20 Jeff Johnston <jjohnstn@redhat.com>
9897
9898 * libc/include/stdio.h[!_REENT_ONLY]: Moved various functions together
9899 into one list.
9900 [!__STRICT_ANSI__]: Moved non-ANSI I/O functions in this list.
9901 (vfscanf, vscanf, vsscanf, _vfscanf_r, _vscanf_r, _vsscanf_r): New
9902 function prototypes.
9903 (_fscanf_r, _sscanf_r): Ditto.
9904 * libc/include/stdlib.h: Added _strtod_r prototype.
9905 * libc/stdio/Makefile.am: Add new v*scanf functions.
9906 * libc/stdio/Makefile.in: Regenerate.
9907 * libc/stdio/fscanf.c: Reorganized so HAVE_STDC only affects prototype
9908 and code is shared. Added reentrant _fscanf_r which calls __svfscanf_r.
9909 * libc/stdio/scanf.c: Changed to call __svfscanf_r.
9910 * libc/stdio/sscanf.c: Changed documentation to add reentrant routines.
9911 (sscanf): Changed to call __svfscanf_r with _REENT argument.
9912 (_sscanf_r): New routine.
9913 * libc/stdio/local.h: Removed __svfscanf prototype and replaced it
9914 with __svfscanf_r prototype.
9915 * libc/stdio/vfscanf.c (vfscanf, _vfscanf_r: New
9916 routines.
9917 (__svfscanf_r): Reentrant version of __svfscanf which takes reetrancy
9918 structure as argument as calls reentrant versions of helper functions
9919 (e.g. _strtol_r, _strtoul_r). Also replaced calls to atol and atof
9920 to _strtol_r and _strtod_r respectively.
9921 * libc/stdio/vfscanf.c: Also changed __svfscanf to call __svfscanf_r.
9922 * libc/stdlib/strtod.c (strtod): Changed to call _strtod_r with
9923 _REENT argument.
9924 * libc/stdio/vscanf.c: New file.
9925 * libc/stdio/vsscanf.c: Ditto.
9926
9927 2001-04-19 Robert Collins <rbtcollins@hotmail.com>
9928
9929 * include/time.h[__CYGWIN__]: Define tzname to _tzname if not defined.
9930 Define daylight to _daylight if it is not defined
9931 Prepare a variable export of timezone based on timezonevariable.
9932 (Cannot be used with the timezone() function.)
9933
9934 2001-04-17 Stephen L. Moshier <moshier@moshier.ne.mediaone.net>
9935
9936 * newlib/libm/math/ef_asin.c (pio2_hi, pio2_lo, pio4_hi):
9937 Correct the numerical values.
9938
9939 2001-04-13 Robert Collins <rbtcollins@hotmail.com>
9940
9941 * libc/include/sys/unistd.h: Add pthread_atfork (Cygwin only).
9942
9943 Thu Apr 12 23:11:00 2001 Corinna Vinschen <corinna@vinschen.de>
9944
9945 * libc/include/sys/errno.h: Add ECASECLASH to indicate case clash
9946 on case insensitve file systems.
9947
9948 2001-04-12 Robert Collins <rbtcollins@hotmail.com>
9949
9950 * libc/include/sys/features.h: Add appropriate defines for Cygwin
9951 pthread support.
9952 * libc/include/sys/signal.h: Remove unneeded __CYGWIN__ protection.
9953 * libc/include/sys/types.h: Protect __CYGWIN__ from the rtems pthreads
9954 types. Include <cygwin/types.h> for the cygwin specific typedefs.
9955
9956 2001-04-04 Richard Sandiford <rsandifo@redhat.com>
9957
9958 * libc/include/machine/ieeefp.h: Comment about new configuration
9959 macros _FLT_LARGEST_EXPONENT_IS_NORMAL and _FLT_NO_DENORMALS.
9960 * libm/common/fdlib.h: Define new macros for testing floats.
9961 * libm/common/sf_*: Use them.
9962 * libm/math/ef_*: Likewise.
9963 * libm/math/sf_*: Likewise.
9964
9965 2001-03-29 Jeff Johnston <jjohnstn@redhat.com>
9966
9967 * libc/sys/arm/setjmp.S: Added .code 16 specifier for thumb-mode
9968 prolog to by-pass possible assembler error.
9969
9970 2001-03-21 Egor Duda <deo@logos-m.ru>
9971
9972 Allow building internal stubs for non-reentrant syscalls
9973 if target provides its own malloc
9974 * libc/reent/reent.c (errno): Move definition here.
9975 * libc/reent/sbrkr.c: From here.
9976
9977 2001-03-20 Danny Smith <dannysmith@users.sourceforge.net>
9978
9979 * libc/include/sys/types.h (BSD int typedefs): Guard with
9980 _BSDTYPES_DEFINED rather than _WINSOCK_H.
9981 (fd_set): Add !defined __USE_W32_SOCKETS to guard; define
9982 _SYS_TYPES_FD_SET.
9983 * libc/include/sys/unistd.h (gethostname): Don't declare if defined
9984 (_WINSOCK_H) || defined (__USE_W32_SOCKETS).
9985
9986 Sat Mar 17 18:30:00 2001 Corinna Vinschen <corinna@vinschen.de>
9987
9988 * libc/include/sys/unistd.h: Add _PC_POSIX_PERMISSONS and
9989 _PC_POSIX_SECURITY constants for Cygwin.
9990
9991 Wed Mar 14 9:34:00 2001 Corinna Vinschen <corinna@vinschen.de>
9992
9993 * libc/sys/cygwin/crt0.c: Add copyright hint.
9994 * libc/sys/cygwin/sys/dirent.h: Ditto.
9995 * libc/sys/cygwin/sys/param.h: Ditto.
9996 * libc/sys/cygwin/sys/utime.h: Ditto.
9997 * libc/sys/cygwin/sys/utmp.h: Ditto.
9998
9999 2001-03-13 Alexandre Oliva <aoliva@redhat.com>
10000
10001 * libc/stdio/vfprintf.c (QUADINT) [_NO_LONGLONG]: Make it
10002 equivalent to LONGINT.
10003
10004 2001-03-08 Richard Sandiford <rsandifo@redhat.com>
10005
10006 * (libc/include/machine/setjmp.h): Use 23 long long ints for a
10007 jmpbuf on MIPS64 targets.
10008 * (libc/machine/mips/setjmp.S): Add MIPS64 version.
10009
10010 Wed Mar 7 16:02:07 2001 Christopher Faylor <cgf@cygnus.com>
10011
10012 * libc/include/sys/config.h: Use ssize_t for Cygwin read/write
10013 declarations.
10014
10015 Mon Mar 5 21:48:54 2001 J"orn Rennecke <amylaar@redhat.com>
10016
10017 * libc/include/sys/config.h (_READ_WRITE_RETURN_TYPE): Define.
10018 For RTEMS, define to be ssize_t. Default to int if not defined.
10019 * libc/stdio/sscanf.c (eofread): Return _READ_WRITE_RETURN_TYPE.
10020 * libc/stdio/stdio.c (__sread, __swrite): Likewise.
10021 * libc/stdio/local.h (__sread, __swrite): Likewise.
10022 * libc/include/sys/reent.h (_read, _write): Likewise.
10023 * libc/include/sys/unistd.h (read, write, _read, _write): Likewise.
10024 * libc/syscalls/sysread.c (read): Likewise.
10025 * libc/syscalls/syswrite.c (write): Likewise.
10026
10027 2001-03-05 Jeff Johnston <jjohnstn@redhat.com>
10028
10029 * libc/time/mktime.c: Add L suffix to _SEC_IN_xxxx constants.
10030
10031 Sat Mar 3 00:34:14 2001 Christopher Faylor <cgf@cygnus.com>
10032
10033 * libc/include/sys/stat.h: Use special defines for executable stat bits
10034 when compiling for Cygwin.
10035 * libc/include/sys/unistd.h: Use special define for X_OK when compiling
10036 for Cygwin.
10037
10038 2001-03-02 Jeff Johnston <jjohnstn@redhat.com>
10039
10040 * libc/string/strtok.c: Add #undef of __STRICT_ANSI__ so prototype
10041 of strtok_r is always defined.
10042
10043 2001-03-02 Jeff Johnston <jjohnstn@redhat.com>
10044
10045 * libc/include/machine/ansi.h: New dummy header file.
10046
10047 2001-02-22 Jeff Johnston <jjohnstn@redhat.com>
10048
10049 * libc/include/machine/setjmp-dj.h: With DJ Delorie's permission,
10050 changed the copyright information to allow free modification of the
10051 file with no reference to "copying.dj".
10052 * libc/include/sys/stat-dj.h: Ditto.
10053 * libc/machine/i386/setjmp.S: Ditto.
10054 * libc/sys/h8300hms/sys/file.h: Ditto.
10055 * libc/sys/sysmec/access.c: Ditto.
10056 * libc/sys/sysnecv850/access.c: Ditto.
10057 * libc/stdio/mktemp.c: Fixed typo for the word copyright.
10058 * libc/stdlib/getenv_r.c: Ditto.
10059 * libc/stdlib/putenv_r.c: Ditto.
10060 * libc/stdlib/setenv_r.c: Ditto.
10061 * libc/stdlib/getenv.c: Removed DJ reference since any possible
10062 modifications will now be in the _r version of this file.
10063 * libc/stdlib/putenv.c: Ditto.
10064 * libc/stdlib/setenv.c: Ditto.
10065 * libc/sys/go32/copying.dj: Removed DJ's address which is no longer
10066 valid. Added a reference to DJ's web page that contains his address.
10067 * libc/sys/go32/*.s: Removed references to DJ's old address.
10068 * libc/sys/go32/*.c: Ditto.
10069 * libc/sys/go32/*.h: Ditto.
10070 * libc/sys/go32/*.S: Ditto.
10071 * libc/sys/go32/sys/*.h: Ditto.
10072
10073 2001-02-21 Jeff Johnston <jjohnstn@redhat.com>
10074
10075 * libc/stdio/fdopen.c (fdopen): Protect calls to _fcntl() with
10076 HAVE_FCNTL flag check.
10077 * configure.host: Define HAVE_FCNTL for Cygwin, go32, RTEMS, sparc64,
10078 powerpcle, x86 netware, x86 sco, x86 Linux and Vxworks.
10079
10080 Thu Feb 15 01:39:51 2001 Christopher Faylor <cgf@cygnus.com>
10081
10082 * libc/include/sys/signal.h: Always include sys/types.h under Cygwin.
10083
10084 2001-02-14 Kazuhiro Fujieda <fujieda@jaist.ac.jp>
10085
10086 * libc/include/stdlib.h: Add declarations of rand48 functions and
10087 their reentrant versions.
10088 * libc/include/sys/reent.h: Move macros from rand48.h. Add
10089 struct _rand48 for shared parameters of rand48 functions.
10090 (struct _reent): Add a variable _r48 of struct _rand48.
10091 (_REENT_INIT): Add _r48 initialization.
10092 * libc/stdlib/Makefile.am (lib_a_SOURCES): Add rand48 functions.
10093 (CHEWOUT_FILES): Add rand48.def.
10094 * libc/stdlib/Makefile.am: Add dependencies for rand48 functions.
10095 * libc/stdlib/Makefile.in: Regenerated.
10096 * libc/stdlib/drand48.c (drand48, _drand48_r): Derived from the
10097 NetBSD C library.
10098 * libc/stdlib/erand48.c (erand48, _erand48_r): Ditto.
10099 * libc/stdlib/jrand48.c (jrand48, _jrand48_r): Ditto.
10100 * libc/stdlib/lcong48.c (lcong48, _lcong48_r): Ditto.
10101 * libc/stdlib/lrand48.c (lrand48, _lrand48_r): Ditto.
10102 * libc/stdlib/mrand48.c (mrand48, _mrand48_r): Ditto.
10103 * libc/stdlib/nrand48.c (nrand48, _nrand48_r): Ditto.
10104 * libc/stdlib/seed48.c (seed48, _seed48_r): Ditto.
10105 * libc/stdlib/srand48.c (srand48, _srand48_r): Ditto.
10106 * libc/stdlib/rand48.c (__dorand48): Ditto.
10107 * libc/stdlib/rand48.h: Ditto, and modify declarations of global
10108 parameters into macros referring them in the reentrant structure.
10109
10110 2001-02-12 Jeff Johnston <jjohnstn@redhat.com>
10111
10112 * libc/include/sys/stat.h: Add mknod for Cygwin now that
10113 Cygwin definition has correct prototype.
10114
10115 2001-02-08 Jeff Johnston <jjohnstn@redhat.com>
10116
10117 * libc/include/sys/stat.h: Must revert change for mknod
10118 for CYGWIN until winsup/cygwin/syscalls.cc changes mknod
10119 prototype.
10120
10121 2001-02-08 Jeff Johnston <jjohnstn@redhat.com>
10122
10123 * libc/include/stdio.h: Revert putw prototype.
10124
10125 2001-02-08 Edward M. Lee <tailbert@yahoo.com>
10126
10127 * libc/include/grp.h: add prototype for initgroups.
10128 * libc/include/stdio.h: fix prototype for putw.
10129 * libc/include/sys/signal.h: add prototype for killpg.
10130 * libc/include/sys/stat.h: enable mknod/lstat for CYGWIN.
10131 * libc/include/sys/unistd.h: add prototypes for getpgid, setpgrp,
10132 vhangup and remove duplicate sysconf prototype.
10133
10134 2001-02-07 Jeff Johnston <jjohnstn@redhat.com>
10135
10136 * libc/sys/rtems/sys/types.h: Removed.
10137
10138 2001-02-05 Charles Wilson <cwilson@ece.gatech.edu>
10139
10140 * libc/include/locale.h: add LC_MESSAGES definition
10141
10142 2001-02-01 Alexandre Oliva <aoliva@redhat.com>
10143
10144 * libc/sys/sh/sys/syscall.h (SYS_get_argc, SYS_get_argN_len,
10145 SYS_get_argN):
10146 * libc/sys/sh/syscalls.c (__setup_argv_for_main,
10147 __setup_argv_and_call_main): New.
10148
10149 2001-01-31 Jeff Johnston <jjohnstn@redhat.com>
10150
10151 * libc/include/stdio.h (FILENAME_MAX): Changed to use __FILENAME_MAX__
10152 if defined.
10153 (FOPEN_MAX): Changed to use __FOPEN_MAX__ if defined.
10154 (L_tmpnam): Changed to use __L_tmpnam__ if defined.
10155 * libc/include/sys/config.h: Changed to set __FILENAME_MAX__
10156 appropriately for Cygwin and RTEMS so not to exceed PATH_MAX.
10157
10158 Mon Jan 29 23:03:06 2001 Christopher Faylor <cgf@cygnus.com>
10159
10160 * libc/stdlib/mallocr.c: Undefine windows preprocessor variables when
10161 compiling under Cygwin.
10162
10163 2001-01-29 Jeff Johnston <jjohnstn@redhat.com>
10164
10165 * libc/include/math.h (signgam): Change to errno-like solution
10166 using a function to return the address of the real signgam.
10167 * libc/reent/signgam.c: New file containing __signgam().
10168 * libc/reent/Makefile.am: Added signgam.c to list of files.
10169 * libc/reent/Makefile.in: Regenerated.
10170
10171 2001-01-25 Alexandre Oliva <aoliva@redhat.com>
10172
10173 * libc/sys/sh/syscalls.c (_times): New.
10174
10175 * configure.host (sh*-*-*): Add -DHAVE_GETTIMEOFDAY to newlib_cflags.
10176 * libc/sys/sh/syscalls.c (_gettimeofday): New.
10177
10178 2001-01-23 Jeff Johnston <jjohnstn@redhat.com>
10179
10180 * libc/include/math.h (signgam): Regress previous fix as
10181 it does not handle programs with extern int signgam in them.
10182
10183 2001-01-23 Jeff Johnston <jjohnstn@redhat.com>
10184
10185 * libc/include/math.h (signgam): Changed to a macro refering to
10186 its location in the reentrant structure.
10187
10188 2001-01-23 Jeff Johnston <jjohnstn@redhat.com>
10189
10190 * libc/stdio/vfprintf.c (_VFPRINTF_R): Modification to fix
10191 that suppressed . for %.0f, 0.1. Check now looks if there
10192 are padding zeroes (expt) in addition to any digits (ndig) to
10193 print.
10194
10195 2001-01-18 Jeff Johnston <jjohnstn@redhat.com>
10196
10197 * libc/sys/arc/Makefile.am: New file.
10198 * libc/sys/arc/Makefile.in: Ditto.
10199 * libc/sys/arc/aclocal.m4: Ditto.
10200 * libc/sys/arc/configure: Ditto.
10201 * libc/sys/arc/configure.in: Ditto.
10202 * libc/sys/arc/crt0.S: Ditto.
10203 * libc/sys/arc/isatty.c: Ditto.
10204 * libc/sys/arc/mem-layout.c: Ditto.
10205 * libc/sys/arc/sbrk.c: Ditto.
10206 * libc/sys/arc/syscalls.c: Ditto.
10207 * libc/sys/arc/sys/syscall.h: Ditto.
10208
10209 Wed Jan 17 23:20:56 2001 Christopher Faylor <cgf@cygnus.com>
10210
10211 * libc/include/sys/unistd.h: Use correct declaration for setdtablesize.
10212
10213 Fri Jan 12 00:34:31 2001 Christopher Faylor <cgf@cygnus.com>
10214
10215 * libc/include/sys/signal.h: Add some SA_* defines for Cygwin.
10216
10217 Thu Jan 11 20:42:06 2001 Earnie Boyd <earnie_boyd@yahoo.com>
10218
10219 * libc/include/sys/features.h: __CYGWIN__ preferred over __CYGWIN32__
10220
10221 2001-01-09 Nick Clifton <nickc@redhat.com>
10222
10223 * configure.host (v859): Remove unsupported compiler options.
10224
10225 Fri Jan 5 19:57:00 EST 2001 Aaron J. Grier <aaron@frye.com>
10226
10227 * src/newlib/configure.host (*-*-rtems*): add printf long long
10228 support for RTEMS.
10229
10230 2000-12-19 Graham Stott <grahams@redhat.com>
10231
10232 * libc/machine/xscale/memcmp.c (memcmp): Add clobber for "lr".
10233
10234 Wed Dec 14 Jeff Johnston <jjohnstn@redhat.com>
10235
10236 * configure.host: Turn on long double I/O for Cygwin.
10237
10238 Wed Dec 14 Jeff Johnston <jjohnstn@redhat.com>
10239
10240 * MAINTAINERS: Removed Ranjith.
10241 * NEWS: Updated for 1.9.0.
10242 * README: Updated.
10243 * acinclude.m4: Updated to release 1.9.0.
10244 * aclocal.m4 configure
10245 doc/aclocal.m4 doc/configure libc/aclocal.m4 libc/configure
10246 libc/machine/aclocal.m4 libc/machine/configure
10247 libc/machine/a29k/aclocal.m4 libc/machine/a29k/configure
10248 libc/machine/arm/aclocal.m4 libc/machine/arm/configure
10249 libc/machine/d10v/aclocal.m4 libc/machine/d10v/configure
10250 libc/machine/d30v/aclocal.m4 libc/machine/d30v/configure
10251 libc/machine/fr30/aclocal.m4 libc/machine/fr30/configure
10252 libc/machine/h8300/aclocal.m4 libc/machine/h8300/configure
10253 libc/machine/h8500/aclocal.m4 libc/machine/h8500/configure
10254 libc/machine/hppa/aclocal.m4 libc/machine/hppa/configure
10255 libc/machine/i386/aclocal.m4 libc/machine/i386/configure
10256 libc/machine/i960/aclocal.m4 libc/machine/i960/configure
10257 libc/machine/m32r/aclocal.m4 libc/machine/m32r/configure
10258 libc/machine/m68k/aclocal.m4 libc/machine/m68k/configure
10259 libc/machine/m88k/aclocal.m4 libc/machine/m88k/configure
10260 libc/machine/mips/aclocal.m4 libc/machine/mips/configure
10261 libc/machine/mn10200/aclocal.m4 libc/machine/mn10200/configure
10262 libc/machine/mn10300/aclocal.m4 libc/machine/mn10300/configure
10263 libc/machine/necv70/aclocal.m4 libc/machine/necv70/configure
10264 libc/machine/powerpc/aclocal.m4 libc/machine/powerpc/configure
10265 libc/machine/sh/aclocal.m4 libc/machine/sh/configure
10266 libc/machine/sparc/aclocal.m4 libc/machine/sparc/configure
10267 libc/machine/tic80/aclocal.m4 libc/machine/tic80/configure
10268 libc/machine/v850/aclocal.m4 libc/machine/v850/configure
10269 libc/machine/w65/aclocal.m4 libc/machine/w65/configure
10270 libc/machine/xscale/aclocal.m4 libc/machine/xscale/configure
10271 libc/machine/z8k/aclocal.m4 libc/machine/z8k/configure
10272 libc/sys/aclocal.m4 libc/sys/configure
10273 libc/sys/a29khif/aclocal.m4 libc/sys/a29khif/configure
10274 libc/sys/arm/aclocal.m4 libc/sys/arm/configure
10275 libc/sys/cygwin/aclocal.m4 libc/sys/cygwin/configure
10276 libc/sys/d10v/aclocal.m4 libc/sys/d10v/configure
10277 libc/sys/decstation/aclocal.m4 libc/sys/decstation/configure
10278 libc/sys/go32/aclocal.m4 libc/sys/go32/configure
10279 libc/sys/h8300hms/aclocal.m4 libc/sys/h8300hms/configure
10280 libc/sys/h8500hms/aclocal.m4 libc/sys/h8500hms/configure
10281 libc/sys/linux/aclocal.m4 libc/sys/linux/configure
10282 libc/sys/m88kbug/aclocal.m4 libc/sys/m88kbug/configure
10283 libc/sys/netware/aclocal.m4 libc/sys/netware/configure
10284 libc/sys/rtems/aclocal.m4 libc/sys/rtems/configure
10285 libc/sys/sh/aclocal.m4 libc/sys/sh/configure
10286 libc/sys/sparc64/aclocal.m4 libc/sys/sparc64/configure
10287 libc/sys/sun4/aclocal.m4 libc/sys/sun4/configure
10288 libc/sys/sysmec/aclocal.m4 libc/sys/sysmec/configure
10289 libc/sys/sysnec810/aclocal.m4 libc/sys/sysnec810/configure
10290 libc/sys/sysnecv850/aclocal.m4 libc/sys/sysnecv850/configure
10291 libc/sys/sysvi386/aclocal.m4 libc/sys/sysvi386/configure
10292 libc/sys/sysvnecv70/aclocal.m4 libc/sys/sysvnecv70/configure
10293 libc/sys/tic80/aclocal.m4 libc/sys/tic80/configure
10294 libc/sys/w65/aclocal.m4 libc/sys/w65/configure
10295 libc/sys/z8ksim/aclocal.m4 libc/sys/z8ksim/configure
10296 libm/aclocal.m4 libm/configure: Regenerated.
10297
10298 Wed Dec 13 11:52:00 2000 Corinna Vinschen <vinschen@cygnus.com>
10299
10300 * libc/include/sys/unistd.h: Add declarations for `chroot' and `getwd'
10301 when __CYGWIN__ is defined.
10302
10303 2000-12-13 Jeff Johnston <jjohnstn@redhat.com>
10304
10305 * libc/stdlib/ldtoa.c (_ldcheck): New routine
10306 that categorizes a long double as NaN, Infinity, or other.
10307 * libc/stdio/vfprintf.c [WANT_IO_LONG_DBL](_VFPRINTF_R): Removed
10308 isinfl and isnanl static routines which were i386-specific. Changed
10309 calls to the two removed routines to a single _ldcheck call.
10310 * libc/stdio/vfieeefp.h (ldieee): Fixed missing semi-colons.
10311
10312 2000-12-13 Jeff Johnston <jjohnstn@redhat.com>
10313
10314 * Makefile.am: Fixed install-data-local target to use
10315 $(mkinstalldirs) for the installed header files to ensure
10316 the directories exist before copying.
10317 * Makefile.in: Regenerated.
10318
10319 2000-12-12 Jeff Johnston <jjohnstn@redhat.com>
10320
10321 * libc/include/sys/unistd.h: Restored Cygwin _SC
10322 constants and moved new constants appropriately
10323 so Cygwin will build.
10324
10325 2000-12-11 Joel Sherrill <joel@OARcorp.com>
10326
10327 * Merge RTEMS specific .h files into main libc/include.
10328 * libc/sys/rtems/include/signal.h: Removed.
10329 * libc/sys/rtems/include/time.h: Removed.
10330 * libc/sys/rtems/sys/features.h: Removed.
10331 * libc/sys/rtems/sys/sched.h: Removed.
10332 * libc/sys/rtems/sys/siginfo.h: Removed.
10333 * libc/sys/rtems/sys/signal.h: Removed.
10334 * libc/sys/rtems/sys/time.h: Removed.
10335 * libc/sys/rtems/sys/times.h: Removed.
10336 definitions for time_t and clock_t since these are
10337 no longer in time.h.
10338 * libc/include/pthread.h: New file.
10339 * libc/include/sys/sched.h: New file.
10340 * libc/include/sys/features.h: New file.
10341 * libc/include/time.h: Removed duplicate definition of clock_t
10342 and time_t, get them from <sys/types.h> instead. Add prototypes
10343 for POSIX clock and timer functionality.
10344 * libc/sys/linux/sys/types.h: Changed to include
10345 * libc/include/machine/types.h: Add _CLOCKID_T_ and _TIMER_T_.
10346 * libc/include/sys/signal.h: Add more complete set of POSIX
10347 signal functionality including real-time and threaded signals.
10348 * libc/include/sys/types.h: Add clock_t, time_t, struct
10349 timespec, and struct itimerspec. Centralizing these makes
10350 things cleaner. RTEMS uses 64-bit dev_t.
10351 Added numerous primitive definitions
10352 for pthreads including macros, pthread_attr_t,
10353 pthread_mutexattr_t, pthread_condattr_t, pthread_key_t,
10354 pthread_once_t, and pthread_t.
10355 * libc/include/sys/unistd.h: Added getlogin_r() prototype.
10356 If RTEMS follow POSIX on read(), write() and sbrk() prototype.
10357 Feature flags removed and moved to new file <sys/features.h>.
10358 Full set of POSIX sysconf() constants
10359
10360 2000-12-08 Werner Almesberger <Werner.Almesberger@epfl.ch>
10361
10362 * configure.host: Added x86 linux target.
10363 * libc/unix/getpass.c (_PATH_PASSWD, _PASSWORD_LEN): Default
10364 definitions provided if not already defined.
10365 * libc/sys/linux/crt0.c: New file.
10366 * libc/sys/linux/Makefile.am: Ditto.
10367 * libc/sys/linux/Makefile.in: Ditto.
10368 * libc/sys/linux/aclocal.m4: Ditto.
10369 * libc/sys/linux/brk.c: Ditto.
10370 * libc/sys/linux/configure: Ditto.
10371 * libc/sys/linux/configure.in: Ditto.
10372 * libc/sys/linux/getoptlong.c: Ditto.
10373 * libc/sys/linux/ids.c: Ditto.
10374 * libc/sys/linux/inode.c: Ditto.
10375 * libc/sys/linux/io.c: Ditto.
10376 * libc/sys/linux/linux.c: Ditto.
10377 * libc/sys/linux/process.c: Ditto.
10378 * libc/sys/linux/realpath.c: Ditto.
10379 * libc/sys/linux/select.c: Ditto.
10380 * libc/sys/linux/signal.c: Ditto.
10381 * libc/sys/linux/systat.c: Ditto.
10382 * libc/sys/linux/termios.c: Ditto.
10383 * libc/sys/linux/time.c: Ditto.
10384 * libc/sys/linux/wait.c: Ditto.
10385 * libc/sys/linux/include/alloca.h: Ditto.
10386 * libc/sys/linux/include/getopt.h: Ditto.
10387 * libc/sys/linux/include/stdint.h: Ditto.
10388 * libc/sys/linux/include/unistd.h: Ditto.
10389 * libc/sys/linux/sys/cdefs.h: Ditto.
10390 * libc/sys/linux/sys/dirent.h: Ditto.
10391 * libc/sys/linux/sys/errno.h: Ditto.
10392 * libc/sys/linux/sys/fcntl.h: Ditto.
10393 * libc/sys/linux/sys/file.h: Ditto.
10394 * libc/sys/linux/sys/ioctl.h: Ditto.
10395 * libc/sys/linux/sys/resource.h: Ditto.
10396 * libc/sys/linux/sys/signal.h: Ditto.
10397 * libc/sys/linux/sys/stat.h: Ditto.
10398 * libc/sys/linux/sys/syscall.h: Ditto.
10399 * libc/sys/linux/sys/termios.h: Ditto.
10400 * libc/sys/linux/sys/time.h: Ditto.
10401 * libc/sys/linux/sys/types.h: Ditto.
10402 * libc/sys/linux/sys/utmp.h: Ditto.
10403 * libc/sys/linux/sys/utsname.h: Ditto.
10404 * libc/sys/linux/sys/wait.h: Ditto.
10405
10406 2000-12-08 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
10407
10408 * Makefile.am: $(INSTALL), $(INSTALL_DATA), and $(INSTALL_PROGRAM)
10409 can be a relative path to $(top_srcdir)/install.sh so ensure the
10410 autoconf detected settings are properly passed recursively.
10411 Similarly, add AM_MAKEFLAGS to FLAGS_TO_PASS so they also get passed
10412 properly to subdirectories.
10413 * Makefile.in: Regenerated.
10414
10415 2000-12-07 Jay Kulpinski <jskulpin@eng01.gdds.com>
10416
10417 * libc/stdio/vfprintf.c: Minor modification to avoid requiring
10418 a floating point register unless really printing a floating
10419 point number.
10420
10421 2000-12-07 Jeff Johnston <jjohnstn@redhat.com>
10422
10423 * libc/stdlib/ldtoa.c: Removed include of alloca.h.
10424 Also removed \r's.
10425 (asctoeg): Replaced alloca call with stack array and malloc
10426 when storage exceeds reasonable limit.
10427 (e53toe): Fixed einfin calls missing ldp parameter.
10428 (eiisinf): Hide behind check for LDBL_MANT_DIG == 64.
10429
10430 2000-12-06 Jeff Johnston <jjohnstn@redhat.com>
10431
10432
10433 * libc/stdio/vfscanf.c: Fix typo for _NO_LONGDBL macro.
10434
10435 2000-12-06 Jeff Johnston <jjohnstn@redhat.com>
10436
10437 * libc/stdlib/Makefile.am: Added ldtoa.c to list of sources.
10438 * libc/stdlib/Makefile.in: Regenerated.
10439 * libc/stdio/floatio.h: Added suitable MAXEXP for long double.
10440 * libc/stdio/vfieeefp.h: Added long double bit structures.
10441 * libc/stdio/vfprintf.c[WANT_IO_LONG_DBL]: Added long double support.
10442 [WANT_IO_LONG_DBL](isinfl, isnanl): New static long double routines.
10443 (exponent): Changed expbuf to reasonable maximum instead of MAXEXP.
10444 * libc/stdio/vfscanf.c[WANT_IO_LONG_DBL]: Added long double support.
10445 * libc/stdlib/ldtoa.c: New file containing _ldtoa_r and
10446 _strtold routines used for conversions between character
10447 and long double.
10448
10449 Wed Dec 6 12:01:00 2000 Corinna Vinschen <vinschen@cygnus.com>
10450
10451 * libc/include/stdlib.h: Add declarations for `mkstemp' and `mktemp'.
10452
10453 2000-12-04 Joel Sherrill <joel@OARcorp.com>
10454
10455 * libc/include/machine/time.h: RTEMS systems can configure clock
10456 tick rate so use sysconf() to ask.
10457
10458 2000-12-04 Joel Sherrill <joel@OARcorp.com>
10459
10460 * libc/include/sys/times.h: Add reference to POSIX standard.
10461
10462 2000-12-04 Joel Sherrill <joel@OARcorp.com>
10463
10464 * libc/include/sys/time.h: Added BSD timer manipulation macros
10465 used by RTEMS code.
10466
10467 2000-12-04 Joel Sherrill <joel@OARcorp.com>
10468
10469 * libc/sys/rtems/crt0.c: Add stubs for functions implicitly
10470 referenced by code generated by gcc 2.8.1.
10471 (a29k): Add stubs for V_SPILL, V_FILL, V_BSD_OS, V_EPI_OS to
10472 satisfy gcc.
10473
10474 2000-12-04 Joel Sherrill <joel@OARcorp.com>
10475
10476 * libc/stdlib/system.c: Avoid compiling do_system() for RTEMS.
10477
10478 2000-12-04 Joel Sherrill <joel@OARcorp.com>
10479
10480 * libc/include/ieeefp.h: Added entries for OpenCores CPUs.
10481
10482 2000-12-04 Joel Sherrill <joel@OARcorp.com>
10483
10484 * configure.host (or16, or32): New entries for OpenCores
10485 OpenRisc CPUs.
10486 (*-*-rtems*): Add -DNO_EXEC.
10487
10488 2000-12-04 Keith Outwater <vac4050@cae597.rsc.raytheon.com>
10489
10490 * libc/include/sys/errno.h: Added comments on many error numbers.
10491 * libc/string/strerror.c: Added some more strings.
10492
10493 2000-11-30 Jeff Johnston <jjohnstn@redhat.com>
10494
10495 * libc/sys/sh/syscalls.c (_link): New stub.
10496
10497 2000-11-29 Nick Clifton <nickc@redhat.com>
10498
10499 * configure.host: Add xscale target.
10500 * libc/machine/xscale: New directory.
10501 * libc/machine/xscale/Makefile.am: New file.
10502 * libc/machine/xscale/Makefile.in: New file.
10503 * libc/machine/xscale/aclocal.m4: New file.
10504 * libc/machine/xscale/configure: New file.
10505 * libc/machine/xscale/configure.in: New file.
10506 * libc/machine/xscale/memchr.S: New file.
10507 * libc/machine/xscale/memcmp.S: New file.
10508 * libc/machine/xscale/memcpy.S: New file.
10509 * libc/machine/xscale/memmove.S: New file.
10510 * libc/machine/xscale/memset.S: New file.
10511 * libc/machine/xscale/strchr.S: New file.
10512 * libc/machine/xscale/strcmp.S: New file.
10513 * libc/machine/xscale/strcpy.S: New file.
10514 * libc/machine/xscale/strlen.S: New file.
10515
10516 Sat Nov 25 11:24:00 2000 Corinna Vinschen <vinschen@cygnus.com>
10517
10518 * libc/include/sys/types.h: Change i to `__i' in FD_ZERO macro to
10519 avoid compiler warnings.
10520
10521 2000-11-22 Michael Meissner <meissner@redhat.com>
10522
10523 * libc/posix/execl.c (execl): Don't reference environ directly,
10524 reference it only via a static pointer to avoid problems with some
10525 shared library systems and with different uses of small data where
10526 the user specifies his own version of environ.
10527 * libc/posix/execv.c (execv): Ditto.
10528 * libc/stdlib/getenv_r.c (_findenv_r): Ditto.
10529 * libc/stdlib/setenv_r.c (_setenv_r,_unsetenv_r): Ditto.
10530 * libc/stdlib/system.c (system, !cygwin32 case): Ditto.
10531
10532 * libc/stdlib/getenv.c (environ): Delete unused reference to
10533 environ.
10534
10535 * libc/stdlib/getenv_r.c: Make initial comment friendlier to emacs
10536 colorization.
10537 * libc/stdlib/system.c: Ditto.
10538
10539 Tue Nov 21 20:32:21 2000 Christopher Faylor <cgf@cygnus.com>
10540
10541 * libc/sys/cygwin/sys/dirent.h: Change definition to avoid necessity of
10542 including windows headers.
10543
10544 2000-11-20 Jeff Johnston <jjohnstn@redhat.com>
10545
10546 * libc/include/sys/unistd.h: Removed definition of MAXNAMLEN.
10547 * libc/include/dirent.h: Added definition of MAXNAMLEN if
10548 not defined by sys/dirent.h.
10549 * libc/posix/execvp.c: Added include of dirent.h to get
10550 MAXNAMLEN value which used to be in unistd.h.
10551
10552 Mon Nov 6 12:56:00 2000 Corinna Vinschen <vinschen@cygnus.com>
10553
10554 * libc/include/sys/types.h: Change type of i to `size_t' in
10555 FD_ZERO macro to avoid compiler warnings.
10556
10557 Sun Oct 29 20:06:41 2000 Christopher Faylor <cgf@cygnus.com>
10558
10559 * libc/include/stdlib.h: Avoid declaring cfree under Cygwin.
10560 * libc/include/malloc.h: Ditto. Also remove obsolete declaration.
10561
10562 Tue Oct 24 20:16:00 2000 Corinna Vinschen <vinschen@cygnus.com>
10563
10564 * libc/include/sys/unistd.h: Add defines for sysconf values
10565 _SC_NPROCESSORS_CONF, _SC_NPROCESSORS_ONLN, _SC_PHYS_PAGES and
10566 _SC_AVPHYS_PAGES.
10567
10568 Mon Oct 9 20:26:33 2000 Christopher Faylor <cgf@cygnus.com>
10569
10570 * libc/include/sys/unistd.h: Add getdtablesize and setdtablesize
10571 declarations for __CYGWIN__.
10572
10573 2000-09-19 Geoffrey Keating <geoffk@cygnus.com>
10574
10575 * libc/signal/signal.c (__sigtramp_r): ISO C requires
10576 case labels to be integral constant expressions, so
10577 use an if/else tree instead.
10578 (_raise_r): Likewise.
10579
10580 2000-09-13 Jeff Johnston <jjohnstn@redhat.com>
10581
10582 * libc/machine/v850/setjmp.S: Fixed tab problems caused by
10583 clipping patch from e-mail reader.
10584
10585 2000-09-13 Will Cohen <wcohen@redhat.com>
10586
10587 * libc/machine/v850/setjmp.S (_setjmp): Save r1 rather than r0.
10588 Added return value 0.
10589 (_longjmp): Allow longjmp to return value of second argument
10590 passed to it.
10591
10592 2000-09-06 Jeff Johnston <jjohnstn@redhat.com>
10593
10594 * libc/include/sys/types.h (FD_ZERO): Remove call to bzero and
10595 inline code to prevent having to include another header file.
10596
10597 Wed Sep 6 15:06:40 2000 Christopher Faylor <cgf@cygnus.com>
10598
10599 * Makefile.am: Fix space vs. tab problem in install-data-local.
10600 * Makefile.in: Regenerate.
10601
10602 Wed Sep 6 13:49:51 2000 Christopher Faylor <cgf@cygnus.com>
10603
10604 * libc/include/_ansi.h (_EXFUN): Define specially for __CYGWIN__.
10605 (_EXPARM): New macro for defining a function parameter.
10606 * libc/include/stdlib.h: Use _EXPARM.
10607 * libc/stdlib/mallocr.c: Don't build cfree for Cygwin.
10608
10609 2000-09-05 Manfred Hollstein <manfredh@redhat.com>
10610
10611 * Makefile.am (install-data-local): Use optional $(DESTDIR) where
10612 required, as documented in the gnu coding standards.
10613 * Makefile.in: Regenerate.
10614
10615 2000-09-05 Jeff Johnston <jjohnstn@redhat.com>
10616
10617 * libc/include/fcntl.h (_FNDELAY): Changed to be _FNONBLOCK to
10618 make O_NDELAY and O_NONBLOCK have the same value.
10619
10620 2000-08-30 Kazu Hirata <kazu@hxi.com>
10621
10622 * libc/sys/h8300hms/crt0.S: Optimize for both speed and code size.
10623
10624 2000-08-30 Werner Almesberger <Werner.Almesberger@epfl.ch>
10625
10626 * libc/posix/execve.c: included unistd.h for "_execve" prototype.
10627 * libc/misc/unctrl.c libc/sys/sysvi386/crt0.c (sccsid): changed
10628 "#ifndef lint" to "#if defined(LIBC_SCCS) && !defined(lint)" like
10629 everywhere else.
10630
10631 2000-08-30 Geoffrey Keating <geoffk@cygnus.com>
10632
10633 * libc/string/swab.c: Specify that it's defined in <unistd.h>.
10634 * libc/include/string.h: Don't include <sys/types.h>,
10635 as it causes really bad namespace pollution. Don't declare
10636 swab(), it is properly declared in unistd.h.
10637
10638 2000-08-29 Werner Almesberger <Werner.Almesberger@epfl.ch>
10639
10640 * libc/unix/getpwent.c (getpwnam, getpwuid, getpwent): removed
10641 (broken) support for non-existent /etc/passwd field "comment".
10642
10643 2000-08-27 Werner Almesberger <Werner.Almesberger@epfl.ch>
10644
10645 * libc/posix/scandir.c (DIRSIZ, scandir): use struct dirent.d_namlen
10646 only if _DIRENT_HAVE_D_NAMLEN is defined.
10647 (alphasort): aligned prototype with
10648 libc/sys/cygwin/sys/dirent.h and simplified function body.
10649 * libc/posix/telldir.c (telldir): changed "telldir" prototype to
10650 long telldir (DIR *) as mentioned in annex B of POSIX.1
10651
10652 2000-08-27 Werner Almesberger <Werner.Almesberger@epfl.ch>
10653
10654 * libc/machine/i386/i386mach.h: added SOTYPE_FUNCTION to set type
10655 of global entry points if _I386MACH_NEED_SOTYPE_FUNCTION is defined;
10656 Added __CLI and __STI macros (controlled via
10657 _I386MACH_ALLOW_HW_INTERRUPTS macro).
10658 * libc/machine/i386/f_atan2.S libc/machine/i386/f_atan2f.S
10659 libc/machine/i386/f_frexp.S libc/machine/i386/f_frexpf.S
10660 libc/machine/i386/f_ldexp.S libc/machine/i386/f_ldexpf.S
10661 libc/machine/i386/f_log.S libc/machine/i386/f_log10.S
10662 libc/machine/i386/f_log10f.S libc/machine/i386/f_logf.S
10663 libc/machine/i386/f_tan.S libc/machine/i386/f_tanf.S
10664 libc/machine/i386/memchr.S libc/machine/i386/memcmp.S
10665 libc/machine/i386/memcpy.S libc/machine/i386/memmove.S
10666 libc/machine/i386/memset.S libc/machine/i386/setjmp.S
10667 libc/machine/i386/strchr.S libc/machine/i386/strlen.S:
10668 (that's libc/machine/i386/*.S) added SOTYPE_FUNCTION(symbol)
10669 for all global entry points.
10670 * libc/machine/i386/setjmp.S: removed code replicated in
10671 libc/machine/i386/i386mach.h and included i386mach.h instead;
10672 Use __CLI and __STI instead of cli and sti.
10673
10674 2000-08-25 DJ Delorie <dj@redhat.com>
10675
10676 * libc/include/sys/unistd.h (environ): this one isn't from the
10677 DLL, no __IMPORT
10678
10679 Fri Aug 25 13:37:11 2000 Christopher Faylor <cgf@cygnus.com>
10680
10681 * libc/stdlib/system.c (do_system): Eliminate explicit declaration of
10682 environ when compiling under cygwin since it is already declared in
10683 unistd.h.
10684
10685 2000-08-23 Werner Almesberger <Werner.Almesberger@epfl.ch>
10686
10687 * libc/stdlib/mprec.c (ulp, b2d, d2b): changed a few expressions
10688 like x << y-z to the equivalent x << (y-z).
10689 (d2b): changed if statements with assignment to perform the
10690 assignment prior to the if check.
10691 * libc/reent/reent.c: included stdlib.h for "_free_r" prototype.
10692 * libc/unix/getpass.c (getpass): moved "echo" assignment out of if.
10693 * libc/unix/ttyname.c: included string.h for "strcpy" prototype.
10694 * libc/unix/getcwd.c (ISDOT): added parentheses to clarify && and ||
10695 precedence.
10696 * libc/include/sys/unistd.h: added "vfork" prototype (for popen.c).
10697 Added "_execve" prototype (for execl.c, execle.c, execv.c, and
10698 execve.c).
10699 * libc/posix/popen.c (popen): added parentheses to clarify && and ||
10700 precedence.
10701 * libm/math/e_cosh.c (__ieee754_cosh): changed parentheses to
10702 clarify && and || precendence (and to remove pascalism).
10703 * libm/math/e_sinh.c (__ieee754_sinh): Ditto.
10704 * libm/math/s_infconst.c: added another pair of braces to all
10705 initializers for __infinity (need three: for __infinity[1] array,
10706 for union __dmath, and for i[2]).
10707
10708 2000-08-23 Werner Almesberger <Werner.Almesberger@epfl.ch>
10709
10710 * libc/stdlib/abort.c: changed description: uses "raise" instead of
10711 "getpid" and "kill"; added: uses "write" and "_exit".
10712 Also included unistd.h for "_exit" prototype.
10713 * libc/stdlib/system.c: included unistd.h for "execve" prototype,
10714 reent.h for "_fork_r" and "_wait_r" prototypes.
10715 (do_system): changed extern char *environ[] to POSIX-friendly
10716 extern char **environ.
10717 * libc/stdlib/wctomb_r.c: included string.h for "strlen" and "strcmp"
10718 prototypes.
10719 * libc/stdlib/remove.c: included reent.h for "_unlink_r" prototype.
10720 * libc/reent/execr.c: included sys/wait.h for "wait" prototype.
10721 * libc/reent/fstatr.c: included sys/stat.h for "fstat" prototype.
10722 * libc/reent/openr.c: included fcntl.h for "open" prototype.
10723 * libc/reent/signalr.c: included signal.h for "kill" prototype,
10724 unistd.h for "getpid" prototype.
10725 * libc/reent/statr.c: included sys/stat.h for "stat" prototype.
10726 * libc/reent/timer.c: included sys/time.h for "gettimeofday" prototype.
10727 * libc/unix/getut.c (utmpname): removed local, incorrect "strdup"
10728 prototype. Also included stdlib.h for "abort", string.h for
10729 "strdup" and "strncmp" prototypes.
10730 * libc/unix/getlogin.c: included string.h for "strncmp", "memset", and
10731 "strncpy", unistd.h for "read" and "close" prototypes.
10732 * libc/posix/execvp.c: included string.h for "strchr", "strlen", and
10733 "strcat" prototypes.
10734
10735 2000-08-23 Werner Almesberger <Wernen Almesberger@epfl.ch>
10736
10737 * libc/stdio/stdio.c (__swrite): declare "oldmode" only if it's
10738 used later (ifdef __SCLE)
10739 * libc/stdio/vfscanf.c (__svfscanf): declare "state" only if it's
10740 used later (ifdef MB_CAPABLE)
10741 * libc/string/memset.c (memset): removed unused variables "count"
10742 and "unaligned_addr"
10743 * libc/locale/locale.c (_setlocale_r): declare "lc_ctype" and
10744 "last_lc_ctype" only of they're used later (ifdef MB_CAPABLE)
10745 * libc/unix/getpwent.c (getpwnam): removed unused variables "uid"
10746 and "gid"
10747
10748 2000-08-23 Werner Almesberger <Werner.Almesberger@epfl.ch>
10749
10750 * libc/stdlib/envlock.c: changed documented "__env_lock" and
10751 "__env_unlock" prototype from "void *" or "char *" to
10752 "struct _reent *" to match real function. Also added include
10753 of envlock.h.
10754 * libc/stdlib/mlock.c: changed documented "__malloc_lock" and
10755 "__malloc_unlock" prototype from "void *" or "char *" to
10756 "struct _reent *" to match real function.
10757 * libc/stdlib/envlock.h: added "__env_lock" and "__env_unlock"
10758 prototypes (for getenv_r.c and setenv_r.c).
10759
10760 2000-08-22 Werner Almesberger <Werner.Almesberger@epfl.ch>
10761
10762 * libc/unix/getut.c (utmpname): added _CONST to reflect common use
10763 and prototype in cygwin's utmp.h
10764
10765 2000-08-16 Eric Fifer <efifer@sanwaint.com>
10766
10767 * libc/stdio/vfprintf.c (_vfprintf_r): suppress . with "%.0f", 0.1
10768
10769 2000-08-09 Nick Clifton <nickc@cygnus.com>
10770
10771 * libc/sys/arm/setjmp.S: Recode to clean up function prologues and
10772 epilogue and to allow the functions to be used in a Thumb based
10773 toolchain.
10774
10775 2000-08-08 Jeff Johnston <jjohnstn@redhat.com>
10776
10777 * libc/stdio/snprintf.c (snprintf, _snprintf_r): Fixed code
10778 so size of 0 results in nothing being written to string.
10779 Also fixed code so that when size is non-zero, there is only
10780 a maximum of size - 1 characters written to the array and
10781 a nul terminator is appended at the end.
10782 * libc/stdio/vsnprintf.c (vsnprintf, _vsnprintf_r): Ditto.
10783
10784 2000-08-01 DJ Delorie <dj@redhat.com>
10785
10786 * libc/include/sys/config.h: define __IMPORT appropriately
10787 * libc/include/ctype.h (_ctype_): use __IMPORT
10788 * libc/include/math.h (__infinity, signam, _LIB_VERSION): ditto
10789 * libc/include/math.h (__mb_cur_max): ditto
10790 * libc/include/time.h (_timezone, _daylight, _tzname): ditto
10791 * libc/include/unctrl.h (__unctrl, __unctrllen): ditto
10792 * libc/include/errno.h (_sys_errlist, _sys_nerr): ditto
10793 * libc/include/unistd.h (environ): ditto
10794
10795 2000-07-28 Michael Meissner <meissner@redhat.com>
10796
10797 * libc/include/math.h (__infinity): Declare as an array without
10798 bounds to get around small data support. Rewrite Cygwin support
10799 to be more general.
10800 * libm/math/s_infconst.c (__infinity): Ditto.
10801 * libm/mathfp/s_infconst.c (__infinity): Ditto.
10802
10803 Thu Jul 27 10:46:01 2000 Christopher Faylor <cgf@cygnus.com>
10804
10805 * libc/include/math.h: Use appropriate dll import linkage for
10806 __infinity under Cygwin.
10807
10808 2000-07-13 DJ Delorie <dj@cygnus.com>
10809
10810 * libc/stdio/vfprintf.c: pad 0.0 correctly with %e
10811
10812 Wed Jun 28 14:08:00 2000 Keith Walker <keith.walker@arm.com>
10813
10814 * libc/sys/arm/crt0.S (.LC30): Added missing length parameter
10815 to argument list for AngelSWI_Reason_GetCmdLine.
10816
10817 Tue Jun 27 15:49:00 2000 Marek Michalkiewicz <marekm@linux.org.pl>
10818
10819 * configure.host: Add support for AVR target.
10820 * libc/include/machine/ieeefp.h: Likewise.
10821 * libc/include/sys/config.h: Likewise.
10822
10823 Thu Jun 22 18:35:00 2000 Ranjith Kumaran <ranjith@cygnus.com>
10824
10825 * README: Newlib 1.8.2 must be built in a separate directory
10826 than the sources.
10827
10828 Tue Jun 20 14:30:00 2000 Jeff Johnston <jjohnstn@cygnus.com>
10829
10830 * libc/include/sys/reent.h (_rand_next): Added __extension__
10831 qualifier as long long type is not strict ANSI.
10832 * libc/stdlib/rand.c (rand): Added __extension__ qualifier
10833 to long long constant.
10834
10835 Fri Jun 16 23:02:00 2000 Corinna Vinschen <corinna@vinschen.de>
10836
10837 * libc/include/sys/unistd.h: Add prototypes for `seteuid' and
10838 `setegid' provided by Cygwin.
10839
10840 Thu Jun 15 0:21:00 2000 Corinna Vinschen <corinna@vinschen.de>
10841
10842 * libc/stdio/fdopen.c: Take explicit given bin/textmode into
10843 account for Cygwin.
10844
10845 Fri Jun 9 14:28:00 2000 Jeff Johnston <jjohnstn@cygnus.com>
10846
10847 * libc/include/sys/reent.h (_rand_next): Changed to
10848 unsigned long long and moved to end of _reent struct in _new union.
10849 (_REENT_INIT): Changed to move _rand_next initialization.
10850 * libc/stdlib/rand.c (rand): Changed to use unsigned long long
10851 linear congruential algorithm that is used by DJGPP.
10852
10853 Thu Jun 8 21:18:00 2000 Ranjith Kumaran <ranjith@cygnus.com>
10854
10855 * libc/include/stdlib.h: Set RAND_MAX to __RAND_MAX.
10856 * libc/include/sys/config.h: Define __RAND_MAX.
10857
10858 Thu Jun 8 17:54:00 2000 Jeff Johnston <jjohnstn@cygnus.com>
10859
10860 * libc/stdlib/rand_r.c: New algorithm that meets minimal
10861 standard.
10862
10863 Fri Jun 2 23:02:11 2000 Christopher Faylor <cgf@cygnus.com>
10864
10865 * libc/include/string.h: Work around problem with strsignal and gdb.
10866
10867 Tue May 30 13:13:01 2000 Christopher Faylor <cgf@cygnus.com>
10868
10869 * libc/include/ctype.h: __CYGWIN32__ -> __CYGWIN__
10870 * libc/include/malloc.h: Ditto.
10871 * libc/include/process.h: Ditto.
10872 * libc/include/stdio.h: Ditto.
10873 * libc/include/stdlib.h: Ditto.
10874 * libc/include/time.h: Ditto.
10875 * libc/include/machine/setjmp.h: Ditto.
10876 * libc/include/sys/errno.h: Ditto.
10877 * libc/include/sys/signal.h: Ditto.
10878 * libc/include/sys/stat.h: Ditto.
10879 * libc/include/sys/time.h: Ditto.
10880 * libc/include/sys/unistd.h: Ditto.
10881 * libc/include/string.h: Ditto. strsignal should return a const char *.
10882
10883 2000-05-26 Marek Michalkiewicz <marekm@linux.org.pl>
10884
10885 * libm/common/s_expm1.c (expm1): Add curly braces, avoid warnings.
10886 * libm/common/s_log1p.c (log1p): Likewise.
10887 * libm/common/s_scalbn.c (scalbn): Likewise.
10888 * libm/math/e_log.c: Likewise.
10889 * libm/math/e_asin.c: Likewise.
10890 * libm/math/ef_asin.c: Likewise.
10891 * libm/math/e_j0.c (pzero, qzero): Remove redundant test.
10892 * libm/math/e_j1.c (pone, qone): Likewise.
10893 * libm/math/ef_j0.c (pzerof, qzerof): Likewise.
10894 * libm/math/ef_j1.c (ponef, qonef): Likewise.
10895 * libm/mathfp/e_j0.c (pzero, qzero): Likewise.
10896 * libm/mathfp/e_j1.c (pone, qone): Likewise.
10897 * libm/mathfp/ef_j0.c (pzerof, qzerof): Likewise.
10898 * libm/mathfp/ef_j1.c (ponef, qonef): Likewise.
10899
10900 2000-05-19 DJ Delorie <dj@cygnus.com>
10901
10902 * libc/stdio/stdio.c (__stextmode): new, see if file is text mode
10903 (__sread): always read in binary mode
10904 (__swrite): always write in binary mode
10905 * libc/include/stdio.h: no getc/putc macros for cygwin; causes
10906 compatibility issues with different dll versions
10907 * libc/stdio/fopen.c: use __stextmode
10908 * libc/stdio/fdopen.c: ditto
10909 * libc/stdio/freopen.c: ditto
10910 * libc/stdio/findfp.c: set up __SCLE for std{in,out,err}
10911 * libc/stdio/local.h: declare __stextmode
10912
10913 2000-05-18 DJ Delorie <dj@cygnus.com>
10914
10915 * libc/stdio/fgets.c (fgets): perform CRLF conversions if __SCLE
10916
10917 Mon May 15 18:54:00 2000 Jeff Johnston <jjohnstn@cygnus.com>
10918
10919 * libc/include/ctype.h: Changed tolower and toupper macros
10920 to use __extension__ to prevent pedantic warnings.
10921
10922 Mon May 15 14:26:00 2000 Joel Sherrill <joel@oarcorp.com>
10923
10924 * libc/sys/rtems/sys/time.h: Add macros for manipulating timeval
10925 structures.
10926
10927 Wed May 10 19:24:53 2000 Jim Wilson <wilson@cygnus.com>
10928
10929 * libc/include/machine/ieeefp.h: Add ia64 support.
10930 * configure.host: Likewise.
10931
10932 Wed May 10 13:52:24 2000 Egor Duda <deo@logos-m.ru>
10933
10934 * libc/time/asctime_r.c (asctime_r): Change output format. Day of
10935 month is now padded with space, not zero. This now conforms to
10936 ANSI standard.
10937
10938 Wed May 03 17:57:00 2000 Corinna Vinschen <corinna@vinschen.de>
10939
10940 * libc/include/sys/errno.h: Add define for ENOSHARE ("No such
10941 host or network path") used by cygwin. Add some comments.
10942
10943 Tue May 02 23:45:48 2000 DJ Delorie <dj@cygnus.com>
10944
10945 * libc/include/stdio.h (FILE): define __SCLE for "convert line
10946 endings" for Cygwin.
10947 (__sgetc): convert line endings if needed
10948 (__sputc): ditto
10949 * libc/stdio/fdopen.c (_fdopen_r): Remember if we opened in text mode
10950 * libc/stdio/fopen.c (_fopen_r): ditto
10951 * libc/stdio/freopen.c (freopen): ditto
10952 * libc/stdio/fread.c (fread): perform CRLF conversions if __SCLE
10953 * libc/stdio/fvwrite.c (__sfvwrite): ditto
10954
10955 Thu Apr 27 07:45:48 2000 Alexandre Oliva <aoliva@cygnus.com>
10956
10957 * libc/machine/mn10300/setjmp.S (setjmp, longjmp): Use
10958 post-increment when it is worth it, spacewise.
10959
10960 Mon Apr 17 12:46:00 2000 Marek Michalkiewicz <marekm@linux.org.pl>
10961
10962 * libc/signal/signal.c (_signal_r) : Removed unused local variable temp.
10963 * libc/stdio/findfp.c (std): Added declaration of flags and file.
10964 * libc/stdio/mktemp.c (_gettemp, _mkstemp_r, mkstemp): Added int
10965 return type.
10966 * libc/stdio/putchar.c (putchar): Added return statement.
10967 * libc/stdio/refill.c (lflush): Added correct parentheses.
10968 * libc/stdio/vfprintf.c (_VFPRINTF_R): Ditto.
10969 * libc/stdio/vfscanf.c (__svfscanf): Changed sprintf call which
10970 prints long value to use l qualifier.
10971 * libc/stdlib/dtoa.c (_dtoa_r): Added parentheses to remove warning
10972 messages and initialized local values: ilim, ilim1, and spec_case.
10973 * libc/stdlib/ecvtbuf.c (print_e): Removed unused variable dp.
10974 * libc/stdlib/mbctype.h (_issjis1, _issjis2): Added parentheses.
10975 * libc/stdlib/mprec.c: Ditto.
10976 * libc/stdlib/setenv_r.c: Ditto.
10977 * libc/stdlib/strtod.c: Ditto.
10978 * libc/stdlib/strtol.c: Ditto.
10979 * libc/stdlib/strtoul.c: Ditto.
10980 * libm/common/sf_expm1.c: Added curly braces to if else clauses.
10981 * libm/common/sf_log1p.c: Ditto.
10982 * libm/common/sf_scalbn.c: Ditto.
10983 * libm/math/ef_log.c: Ditto.
10984
10985 Sun Apr 16 12:45:00 2000 Corinna Vinschen <corinna@vinschen.de>
10986
10987 * libc/posix/execvp.c (execvp): Check path for
10988 trailing slash.
10989
10990 Fri Mar 31 20:39:00 2000 Corinna Vinschen <corinna@vinschen.de>
10991
10992 * libc/include/sys/unistd.h: Add prototypes for
10993 fchmod, fchown, lchown.
10994
10995 Fri Mar 24 15:34:00 2000 Jeff Johnston <jjohnstn@cygnus.com>
10996
10997 * acinclude.m4: Changed release to 1.8.2.
10998 * aclocal.m4 configure doc/aclocal.m4 doc/configure
10999 libc/aclocal.m4 libc/configure libc/machine/aclocal.m4
11000 libc/machine/configure libc/machine/a29k/aclocal.m4
11001 libc/machine/a29k/configure libc/machine/arm/aclocal.m4
11002 libc/machine/arm/configure libc/machine/d10v/aclocal.m4
11003 libc/machine/d10v/configure libc/machine/d30v/aclocal.m4
11004 libc/machine/d30v/configure libc/machine/fr30/aclocal.m4
11005 libc/machine/fr30/configure libc/machine/h8300/aclocal.m4
11006 libc/machine/h8300/configure libc/machine/h8500/aclocal.m4
11007 libc/machine/h8500/configure libc/machine/hppa/aclocal.m4
11008 libc/machine/hppa/configure libc/machine/i386/aclocal.m4
11009 libc/machine/i386/configure libc/machine/i960/aclocal.m4
11010 libc/machine/i960/configure libc/machine/m32r/aclocal.m4
11011 libc/machine/m32r/configure libc/machine/m68k/aclocal.m4
11012 libc/machine/m68k/configure libc/machine/m88k/aclocal.m4
11013 libc/machine/m88k/configure libc/machine/mips/aclocal.m4
11014 libc/machine/mips/configure libc/machine/mn10200/aclocal.m4
11015 libc/machine/mn10200/configure libc/machine/mn10300/aclocal.m4
11016 libc/machine/mn10300/configure libc/machine/necv70/aclocal.m4
11017 libc/machine/necv70/configure libc/machine/powerpc/aclocal.m4
11018 libc/machine/powerpc/configure libc/machine/sh/aclocal.m4
11019 libc/machine/sh/configure libc/machine/sparc/aclocal.m4
11020 libc/machine/sparc/configure libc/machine/tic80/aclocal.m4
11021 libc/machine/tic80/configure libc/machine/v850/aclocal.m4
11022 libc/machine/v850/configure libc/machine/w65/aclocal.m4
11023 libc/machine/w65/configure libc/machine/z8k/aclocal.m4
11024 libc/machine/z8k/configure libc/sys/aclocal.m4
11025 libc/sys/aclocal.m4 libc/sys/configure
11026 libc/sys/a29khif/aclocal.m4 libc/sys/a29khif/configure
11027 libc/sys/arm/aclocal.m4 libc/sys/arm/configure
11028 libc/sys/cygwin/aclocal.m4 libc/sys/cygwin/configure
11029 libc/sys/d10v/aclocal.m4 libc/sys/d10v/configure
11030 libc/sys/decstation/aclocal.m4 libc/sys/decstation/configure
11031 libc/sys/go32/aclocal.m4 libc/sys/go32/configure
11032 libc/sys/h8300hms/aclocal.m4 libc/sys/h8300hms/configure
11033 libc/sys/h8500hms/aclocal.m4 libc/sys/h8500hms/configure
11034 libc/sys/m88kbug/aclocal.m4 libc/sys/m88kbug/configure
11035 libc/sys/netware/aclocal.m4 libc/sys/netware/configure
11036 libc/sys/rtems/aclocal.m4 libc/sys/rtems/configure
11037 libc/sys/sh/aclocal.m4 libc/sys/sh/configure
11038 libc/sys/sparc64/aclocal.m4 libc/sys/sparc64/configure
11039 libc/sys/sun4/aclocal.m4 libc/sys/sun4/configure
11040 libc/sys/sysmec/aclocal.m4 libc/sys/sysmec/configure
11041 libc/sys/sysnec810/aclocal.m4 libc/sys/sysnec810/configure
11042 libc/sys/sysnecv850/aclocal.m4 libc/sys/sysnecv850/configure
11043 libc/sys/sysvi386/aclocal.m4 libc/sys/sysvi386/configure
11044 libc/sys/sysvnecv70/aclocal.m4 libc/sys/sysvnecv70/configure
11045 libc/sys/tic80/aclocal.m4 libc/sys/tic80/configure
11046 libc/sys/w65/aclocal.m4 libc/sys/w65/configure
11047 libc/sys/z8ksim/aclocal.m4 libc/sys/z8ksim/configure
11048 libm/aclocal.m4 libm/configure: Regenerated.
11049
11050 2000-03-24 Nick Clifton <nickc@cygnus.com>
11051
11052 * libc/sys/arm/syscalls.c: Fix compile time warnings.
11053 (do_AngelSWI): Add "cc" to list o registers clobbered.
11054
11055 Thu Mar 22 14:57:00 2000 Fernando Nasser <fnasser@redhat.com>
11056
11057 * libc/sys/arm/syscalls.c (do_AngelSWI): Prevent registers with valid
11058 information to be clobbered by an Angel C library support syscall.
11059
11060 Tue Mar 21 19:08:00 2000 Jeff Johnston <jjohnstn@cygnus.com>
11061
11062 * libc/stdlib/envlock.c: Fixed comment typo.
11063
11064 Fri Mar 17 15:37:00 2000 Jeff Johnston <jjohnstn@cygnus.com>
11065
11066 * libc/stdio/vfscanf.c (__svfscanf): Fixed floating point
11067 code to update nread as each character is processed instead
11068 of using buffer contents which throw away leading zeroes.
11069
11070 Mon Mar 13 15:22:00 2000 Sergei Organov <osv@javad.ru>
11071
11072 * libm/mathfp/sf_sqrt.c: Change _DOUBLE_IS_32BITS sqrt call to sqrtf.
11073
11074 Fri Mar 10 16:09:20 2000 Jeff Johnston <jjohnstn@cygnus.com>
11075
11076 * libc/include/string.h: Include <sys/types.h>.
11077
11078 Fri Mar 10 14:53:50 2000 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
11079
11080 * libc/stdio/putw.c (putw): Return 0 on success, to be compliant
11081 with XSH5, not SVID.
11082
11083 Thu Mar 9 17:20:41 2000 Jeff Johnston <jjohnstn@cygnus.com>
11084
11085 * libc/include/string.h: Changed last argument back to ssize_t
11086 to make it compatible with XPG4 definition which is
11087 defined in <unistd.h>. There is a conflict in the SVID 3
11088 and XPG4 definitions and newlib will settle with XPG4.
11089 * libc/string/swab.c: Ditto.
11090
11091 Wed Mar 8 17:11:41 2000 Jeff Johnston <jjohnstn@cygnus.com>
11092
11093 * libc/include/string.h: Changed last argument to size_t.
11094 * libc/string/swab.c: Changed last argument to size_t.
11095
11096 Wed Mar 8 00:46:41 2000 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
11097
11098 * libc/reent/Makefile.am (lib_a_SOURCES): Added unlinkr.c.
11099 (CHEWOUT_FILES): Added unlinkr.def.
11100 * libc/reent/Makefile.in: Rebuilt.
11101 * libc/sys.tex: Include unlinkr.def.
11102 * libc/reent/linkr.c (_unlink_r): Moved to...
11103 * libc/reent/unlinkr.c: ... new file.
11104
11105 Wed Mar 8 00:43:07 2000 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
11106
11107 * libc/string/Makefile.am (lib_a_SOURCES): Added swab.c.
11108 (CHEWOUT_FILES): Added swab.def.
11109 * libc/string/Makefile.in: Rebuilt.
11110 * libc/string/string.tex: Include swab.def.
11111 * libc/include/string.h (swab): Declare.
11112 * libc/string/swab.c: New file.
11113
11114 Wed Mar 8 00:38:35 2000 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
11115
11116 * libc/stdio/Makefile.am (lib_a_SOURCES): Added getw.c and putw.c.
11117 (CHEWOUT_FILES): Added getw.def and putw.def.
11118 * libc/stdio/Makefile.in: Rebuilt.
11119 * libc/stdio/stdio.tex: Include getw.def and putw.def.
11120 * libc/stdio/getw.c: New file.
11121 * libc/stdio/putw.c: New file.
11122
11123 Fri Feb 25 14:50:50 2000 Jeff Johnston <jjohnstn@cygnus.com>
11124
11125 * libc/stdio/flags.c (__sflags): Added check that mode[1]
11126 is non-null before looking at mode[2].
11127
11128 Thu Feb 24 11:43:00 2000 Ran Cabell <rcabell@norfolk.infi.net>
11129
11130 * libm/mathfp/sf_atan2.c: Fix atan2 typo for _DOUBLE_IS_32_BITS.
11131 * libm/mathfp/sf_atan.c: Ditto.
11132
11133 Thu Feb 24 11:39:00 2000 Joel Sherrill <joel@OARcorp.com>
11134
11135 * libc/include/sys/stat.h: Add RTEMS prototype for lstat.
11136
11137 Tue Feb 22 14:37:00 2000 Ran Cabell <rcabell@norfolk.infi.net>
11138
11139 * libm/mathfp/sf_exp.c: Corrected _DOUBLE_IS_32_BITS to be
11140 _DOUBLE_IS_32BITS.
11141
11142 Mon Feb 21 11:43:50 2000 Jeff Johnston <jjohnstn@cygnus.com>
11143
11144 * libc/stdio/vfprintf.c (VFPRINTF): Added CHECK_INIT
11145 call prior to calling _VFPRINTF_R so reentrant data area is set.
11146 (_VFPRINTF_R): Removed now extraneous CHECK_INIT call.
11147
11148 Thu Feb 17 01:42:50 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
11149
11150 * libc/stdio/vfscanf.c (limits.h): #include.
11151 (MAX_LONG_LEN): #define.
11152 (__svfscanf): Handle floating point numbers with arbitrary amounts
11153 of leading zeroes.
11154
11155 2000-02-15 Nick Clifton <nickc@cygnus.com>
11156
11157 * libc/sys/arm/syscalls.c (_fstat): Initialise all fields to
11158 zero. Set the blocksize to 1024/
11159
11160 Thu Jan 20 18:57:00 2000 Fernando Nasser <fnasser@redhat.com>
11161
11162 * setvbuf.c (setvbuf): Set size to BUFSIZ when passed a zero size
11163 with line buffering.
11164
11165 Mon Jan 10 18:43:00 2000 Jeff Johnston <jjohnstn@cygnus.com>
11166
11167 * acinclude.m4: Changed include directory for winsup headers.
11168 * aclocal.m4 configure libc/aclocal.m4
11169 libc/configure libc/ctype/Makefile.in libc/errno/Makefile.in
11170 libc/locale/Makefile.in libc/machine/aclocal.m4
11171 libc/machine/configure libc/machine/a29k/aclocal.m4
11172 libc/machine/a29k/configure libc/machine/arm/aclocal.m4
11173 libc/machine/arm/configure libc/machine/d10v/aclocal.m4
11174 libc/machine/d10v/configure libc/machine/d30v/aclocal.m4
11175 libc/machine/d30v/configure libc/machine/fr30/aclocal.m4
11176 libc/machine/fr30/configure
11177 libc/machine/h8300/aclocal.m4
11178 libc/machine/h8300/configure libc/machine/h8500/aclocal.m4
11179 libc/machine/h8500/configure libc/machine/hppa/aclocal.m4
11180 libc/machine/hppa/configure libc/machine/i386/aclocal.m4
11181 libc/machine/i386/configure libc/machine/i960/aclocal.m4
11182 libc/machine/i960/configure libc/machine/m32r/aclocal.m4
11183 libc/machine/m32r/configure libc/machine/m68k/aclocal.m4
11184 libc/machine/m68k/configure libc/machine/m88k/aclocal.m4
11185 libc/machine/m88k/configure libc/machine/mips/aclocal.m4
11186 libc/machine/mips/configure libc/machine/mn10200/aclocal.m4
11187 libc/machine/mn10200/configure libc/machine/mn10300/aclocal.m4
11188 libc/machine/mn10300/configure libc/machine/necv70/aclocal.m4
11189 libc/machine/necv70/configure libc/machine/powerpc/aclocal.m4
11190 libc/machine/powerpc/configure
11191 libc/machine/sh/aclocal.m4
11192 libc/machine/sh/configure libc/machine/sparc/aclocal.m4
11193 libc/machine/sparc/configure
11194 libc/machine/tic80/aclocal.m4 libc/machine/tic80/configure
11195 libc/machine/v850/aclocal.m4 libc/machine/v850/configure
11196 libc/machine/w65/aclocal.m4 libc/machine/w65/configure
11197 libc/machine/z8k/aclocal.m4 libc/machine/z8k/configure
11198 libc/misc/Makefile.in libc/posix/Makefile.in
11199 libc/reent/Makefile.in
11200 libc/signal/Makefile.in
11201 libc/string/Makefile.in libc/sys/aclocal.m4 libc/sys/configure
11202 libc/sys/a29khif/aclocal.m4 libc/sys/a29khif/configure
11203 libc/sys/arm/Makefile.in libc/sys/arm/aclocal.m4
11204 libc/sys/arm/configure libc/sys/cygwin/aclocal.m4
11205 libc/sys/cygwin/configure libc/sys/d10v/Makefile.in
11206 libc/sys/d10v/aclocal.m4 libc/sys/d10v/configure
11207 libc/sys/decstation/aclocal.m4 libc/sys/decstation/configure
11208 libc/sys/go32/aclocal.m4 libc/sys/go32/configure
11209 libc/sys/h8300hms/aclocal.m4 libc/sys/h8300hms/configure
11210 libc/sys/h8500hms/aclocal.m4 libc/sys/h8500hms/configure
11211 libc/sys/m88kbug/aclocal.m4 libc/sys/m88kbug/configure
11212 libc/sys/netware/aclocal.m4 libc/sys/netware/configure
11213 libc/sys/rtems/aclocal.m4 libc/sys/rtems/configure
11214 libc/sys/sh/Makefile.in libc/sys/sh/aclocal.m4
11215 libc/sys/sh/configure libc/sys/sparc64/aclocal.m4
11216 libc/sys/sparc64/configure libc/sys/sun4/aclocal.m4
11217 libc/sys/sun4/configure libc/sys/sysmec/aclocal.m4
11218 libc/sys/sysmec/configure libc/sys/sysnec810/aclocal.m4
11219 libc/sys/sysnec810/configure libc/sys/sysnecv850/aclocal.m4
11220 libc/sys/sysnecv850/configure libc/sys/sysvi386/aclocal.m4
11221 libc/sys/sysvi386/configure libc/sys/sysvnecv70/aclocal.m4
11222 libc/sys/sysvnecv70/configure libc/sys/tic80/aclocal.m4
11223 libc/sys/tic80/configure libc/sys/w65/aclocal.m4
11224 libc/sys/w65/configure libc/sys/z8ksim/aclocal.m4
11225 libc/sys/z8ksim/configure libc/syscalls/Makefile.in
11226 libc/time/Makefile.in libc/unix/Makefile.in libm/aclocal.m4
11227 libm/configure: Regenerated.
11228
11229 Mon Jan 10 18:43:46 2000 Jeff Johnston <jjohnstn@cygnus.com>
11230
11231 * libc/stdlib/putenv_r.c (_putenv_r): New file.
11232 * libc/stdlib/strdup_r.c (_strdup_r): New file.
11233 * libc/include/string.h: Added _strdup_r.
11234 * libc/stdlib/putenv.c: Added call to reentrant version.
11235 * libc/stdlib/strdup.c: Ditto.
11236 * libc/stdlib/Makefile.am: Added _putenv_r and _unsetenv_r.
11237 * libc/include/stdlib.h: Ditto.
11238 * libc/stdlib/Makefile.in: Regenerated.
11239 * libc/string/Makefile.in: Regenerated.
11240 * libc/stdlib/setenv.c: Added reentrant version of unsetenv.
11241 * libc/stdlib/setenv_r.c: Added unsetenv_r and changed memory
11242 management calls to reentrant versions.
11243 * libc/stdlib/wcstombs.c: Added #ifndef _REENT_ONLY wrapper.
11244 * libc/stdlib/wctomb.c: Ditto.
11245 * libc/stdlib/mblen.c: Ditto.
11246 * libc/stdlib/mbstowcs.c: Ditto.
11247 * libc/stdlib/mbtowc.c: Ditto.
11248 * libc/stdlib/getenv.c: Ditto.
11249 * libc/reent/reent.tex: Added references to _putenv_r, _setenv_r,
11250 and _strdup_r.
11251
11252 Thu Jan 6 15:33:46 2000 Christopher Faylor <cgf@cygnus.com>
11253
11254 patch from Corinna Vinschen <corinna@vinschen.de>
11255 * libc/sys/cygwin/sys/param.h: Define NGROUP_MAX as 16.
11256
11257 Mon Jan 03 14:36:00 2000 Sergei Organov <osv@javad.ru>
11258
11259 * libm/mathfp/s_atangent.c: Fix exponent calculation.
11260 * libm/mathfp/s_ldexp.c: Ditto.
11261 * libm/mathfp/sf_atangent.c: Ditto.
11262 * libm/mathfp/sf_ldexp.c: Ditto.
11263
11264 Tue Dec 14 5:42:00 1999 Ranjith Kumaran <ranjith@cygnus.com>
11265
11266 * libc/machine/i960/setjmp.S: fix typo leaving .link_pix uncommented
11267 * libc/include/locale.h: define NULL to be 0.
11268
11269 Tue Dec 7 15:41:45 1999 Jim Wilson <wilson@cygnus.com>
11270
11271 * libc/sys/sh/syscalls.c (stack_ptr): Move definition before first
11272 function.
11273
11274 Wed Dec 1 17:39:29 1999 Jeffrey A Law (law@cygnus.com)
11275
11276 * libc/machine/mn10300/setjmp.S: Handle am33.
11277
11278 1999-11-26 Nick Clifton <nickc@cygnus.com>
11279
11280 * libc/sys/arm/syscalls.c: Add function prototypes.
11281 (stack_ptr): Move declaration before function definitions.
11282
11283 Sat Nov 20 17:13:00 1999 Ranjith Kumaran <ranjith@cygnus.com>
11284
11285 * NEWS: Updated version information.
11286 * README: Ditto.
11287
11288 Tue Nov 09 12:19:21 1999 Jeff Johnston <jjohnstn@cygnus.com>
11289
11290 * libc/machine/i386/strchr.S: Fixed alignment test.
11291
11292 Thu Oct 28 05:30:46 1999 Andrew Cagney <cagney@makita.cygnus.com>
11293
11294 * libc/sys/d10v/crt0.S (_start): Construct a real stack frame.
11295
11296 Thu Oct 28 15:29:11 1999 Andrew Cagney <cagney@b1.cygnus.com>
11297
11298 * libc/sys/d10v/crt0.S (_start): Initialize both SPI and SPU
11299 ensuring that there is space between the two.
11300
11301 Thu Oct 14 13:39:21 1999 Christopher Faylor <cgf@cygnus.com>
11302
11303 * libc/stdio/flags.c: Conditionalize check for 't' for cygwin case
11304 only.
11305
11306 1999-10-08 Vadim Egorov <egorovv@1c.ru>
11307
11308 * libc/include/stdlib.h: add ptsname, grantpt, unlockpt to cygwin
11309 section
11310
11311 Sat Oct 2 02:02:00 MEST 1999 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
11312
11313 * libc/machine/sh/asm.h: Added __SH4_SINGLE__ to DELAYED_BRANCHES
11314 * libc/machine/sh/memcpy.S: Fix line wrapping in SL macro
11315
11316 Fri Oct 1 13:17:59 CDT 1999 <joel@OARcorp.com>
11317 * libc/include/grp.h: Added getgrnam_r and getgrgid_r prototypes
11318 per POSIX 1003.1b.
11319 * libc/include/pwd.h: Added getpwnam_r and getpwuid_r prototypes
11320 per POSIX 1003.1b.
11321
11322 1999-09-13 DJ Delorie <dj@cygnus.com>
11323
11324 * libc/stdio/mktemp.c (_gettemp): on cygwin, check for EACCESS
11325 also.
11326
11327 Thu Sep 9 15:31:00 1999 Jeff Johnston <jjohnstn@cygnus.com>
11328
11329 * setvbuf.c (setvbuf): When mallocing a buffer of size BUFSIZ,
11330 also note BUFSIZ as its size.
11331
11332 Tue Sep 7 17:15:00 1999 Joel Sherrill <joel@OARcorp.com>
11333
11334 * configure.host: Corrected feature defines for RTEMS.
11335 * libc/include/sys/stat.h: Added protototype for RTEMS mknod.
11336 * libc/include/sys/stat.h: mkfifo() should take const path arg.
11337 * libc/include/sys/unistd.h: pathconf() should take const path arg.
11338 Enabled usleep(), ftruncate(), and truncate() prototypes for RTEMS.
11339 Added defines for _POSIX_JOB_CONTROL, _POSIX_SAVED_IDS, and
11340 _POSIX_VERSION for RTEMS. Added defines for _PC_ASYNC_IO,
11341 _PC_PRIO_IO, and _PC_SYNC_IO.
11342 * libc/machine/m68k/Makefile.am: Added strcpy.c and strlen.c.
11343 * libc/machine/m68k/Makefile.in: Regenerated.
11344 * libc/machine/m68k/strcpy.c: New file.
11345 * libc/machine/m68k/strlen.c: New file.
11346 * libc/stdio/tmpnam.c: Always make the returned name usable.
11347 * libc/sys/rtems/crt0.c: New version that passes all autoconf tests.
11348 * libc/sys/rtems/sys/dirent.h: New file.
11349 * libc/sys/rtems/sys/types.h: Added dev_t.
11350
11351 Tue Sep 7 17:15:00 1999 Jay Kulpinski <jskulpin@eng01.gdds.com>
11352
11353 * libc/stdlib/mprec.c: Fixed unitialized variable problem.
11354
11355 Fri Sep 3 12:35:20 1999 Jeff Johnston <jjohnstn@cygnus.com>
11356
11357 * libc/stdio/ftell.c (ftell): Backing off Joern's fix and
11358 my patch.
11359
11360 Thu Sep 2 22:05:20 1999 Christopher Faylor <cgf@cygnus.com>
11361
11362 patch from Jeff Johnston <jjohnstn@cygnus.com>
11363 * libc/stdio/ftell.c (ftell): Avoid using buffer position when the
11364 buffer is not in a useful state.
11365
11366 1999-09-01 Nick Clifton <nickc@cygnus.com>
11367
11368 * libc/sys/arm/syscalls.c (_link): Add stub.
11369
11370 Fri Aug 27 23:09:09 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
11371
11372 * ftell.c (ftell): Use actual position within buffer for text mode.
11373 * findfp.c (std): Initialize ptr->_bf._size.
11374
11375 Wed Aug 18 18:48:02 1999 Christopher Faylor <cgf@cygnus.com>
11376
11377 * libc/include/sys/unistd.h: Add nice() declaration.
11378
11379 1999-08-09 Nick Clifton <nickc@cygnus.com>
11380
11381 * libc/sys/arm/crt0.S (change_mode): Rename to __change_mode and
11382 declare as a thumb function so that the disassembler will see the
11383 mode change.
11384
11385 Thu Aug 5 17:37:00 1999 Ranjith Kumaran <ranjith@cygnus.com>
11386
11387 * libc/reent/reent.tex: Updated list of reentrant functions.
11388
11389 1999-07-09 Michael Meissner <meissner@cygnus.com>
11390
11391 * libc/include/stdlib.h (_findenv{,_r}): Add prototypes.
11392
11393 Tue Jul 6 10:46:24 1999 Jeff Johnston <jjohnstn@cygnus.com>
11394
11395 * libc/stdio/sprintf.c: Moved snprintf and _snprintf_r to
11396 separate file.
11397 * libc/stdio/snprintf.c: New file.
11398 * libc/stdio/vsprintf.c: Moved vsnprintf and _vsnprintf_r to
11399 separate file.
11400 * libc/stdio/vsnprintf.c: New file.
11401 * libc/stdio/Makefile.am: Added snprintf.c and vsnprintf.c.
11402 * libc/stdio/Makefile.in: Regenerated.
11403
11404 Mon Jul 5 14:43:24 1999 Christopher Faylor <cgf@cygnus.com>
11405
11406 Patch submitted by Egor Duda <deo@logos-m.ru>:
11407 * libc/include/stdio.h: Add declarations for *nprintf.
11408 * libc/stdio/sprintf.c (snprintf): New function.
11409 (_snprintf_r): New function.
11410 * libc/stdio/vsprintf.c (vsnprintf): New function.
11411 (_vnsprintf_r): New function.
11412
11413 Wed Jun 30 16:36:27 1999 Jeff Johnston <jjohnstn@cygnus.com>
11414
11415 * libc/Makefile.am (stmp-targetdep): Remove extraneous blank.
11416 * libm/Makefile.am (stmp-targetdep): Ditto.
11417 * libc/Makefile.in: Regenerated.
11418 * libm/Makefile.in: Ditto.
11419
11420 Fri Jun 25 10:49:27 1999 Jeff Johnston <jjohnstn@cygnus.com>
11421
11422 * libc/Makefile.am (stmp-targetdep): Ignore "." in SUBDIRS.
11423 * libm/Makefile.am (stmp-targetdep): Ditto.
11424 * libc/Makefile.in: Regenerated.
11425 * libm/Makefile.in: Ditto.
11426
11427 Thu June 03 16:25:00 1999 Jeff Johnston <jjohnstn@cygnus.com>
11428
11429 * Makefile.am: Removed dependencies on all-recursive and added "."
11430 to the SUBDIRS list to prevent infinite recursion from occurring.
11431 Also removed any references to EXTRA_DATA.
11432 * libc/Makefile.am: Ditto.
11433 * libc/machine/Makefile.am: Ditto.
11434 * libc/machine/i386/Makefile.am: Ditto.
11435 * libm/Makefile.am: Ditto.
11436 * libc/sys/Makefile.am: Ditto.
11437 * Makefile.in: Regenerated.
11438 * aclocal.m4: Ditto.
11439 * configure: Ditto.
11440 * doc/Makefile.in: Ditto.
11441 * doc/aclocal.m4: Ditto.
11442 * doc/configure: Ditto.
11443 * libc/Makefile.in: Ditto.
11444 * libc/aclocal.m4: Ditto.
11445 * libc/configure: Ditto.
11446 * libc/machine/Makefile.in: Ditto.
11447 * libc/machine/aclocal.m4: Ditto.
11448 * libc/machine/configure: Ditto.
11449 * libc/machine/mn10300/Makefile.in: Ditto.
11450 * libc/machine/mn10300/aclocal.m4: Ditto.
11451 * libc/machine/mn10300/configure: Ditto.
11452 * libc/sys/Makefile.in: Ditto.
11453 * libc/sys/aclocal.m4: Ditto.
11454 * libc/sys/configure: Ditto.
11455 * libm/Makefile.in: Ditto.
11456 * libm/aclocal.m4: Ditto.
11457 * libm/configure: Ditto.
11458
11459 Thu June 03 16:20:00 1999 Ranjith Kumaran <ranjith@cygnus.com>
11460
11461 * libc/include/stdlib/stdlib.tex: Add link to env_lock.
11462
11463 Fri May 28 17:09:00 1999 Ranjith Kumaran <ranjith@cygnus.com>
11464
11465 * libc/include/stdlib.h: Add reentrant routines.
11466 * libc/stdlib/Makefile.am: Add reentrant routines.
11467 * libc/stdlib/Makefile.in: Ditto.
11468 * libc/stdlib/envlock.c: New file.
11469 * libc/stdlib/envlock.h: New file.
11470 * libc/stdlib/getenv.c: Modify to call reentrant routine.
11471 * libc/stdlib/getenv_r.c: New file.
11472 * libc/stdlib/mblen.c: Modify to call reentrant routine.
11473 * libc/stdlib/mblen_r.c: New file.
11474 * libc/stdlib/setenv.c: Modify to call reentrant routine.
11475 * libc/stdlib/setenv_r.c: New file.
11476 * libc/stdlib/stdlib.tex: Add reentrant routines.
11477
11478 Mon May 17 22:01:38 1999 Christopher Faylor <cgf@cygnus.com>
11479
11480 * libc/include/sys/types.h: Define __MS_types__ whenever
11481 cygwin or win32.
11482
11483 Sun May 16 16:02:41 1999 Christopher Faylor <cgf@cygnus.com>
11484
11485 * libc/include/machine/ieeefp.h: Always default to little
11486 endian if Windows, regardless of architecture.
11487 * libc/include/machine/sethmp.h: Define JBLEN if CYGWIN
11488 regardless of architecture.
11489
11490 Mon May 3 11:49:18 1999 Geoffrey Noer <noer@cygnus.com>
11491
11492 * libc/include/machine/setjmp.h: Accept CYGWIN define, even if
11493 _WIN32 isn't defined.
11494
11495 Mon May 3 11:41:51 1999 Jeff Johnston <jjohnstn@cygnus.com>
11496
11497 * libm/common/s_rint.c (rint): Add volatile qualifier for
11498 intermediate value w.
11499 * libm/common/sf_rint.c (rintf): Ditto.
11500
11501 Thu Apr 29 20:34:27 1999 Jeff Johnston <jjohnstn@cygnus.com>
11502
11503 * libc/sys/arm/syscalls.c (remap_handle): Added check to
11504 ensure that std streams are initialized before being referenced.
11505
11506 1999-04-27 Jason Molenda (jsm@bugshack.cygnus.com)
11507
11508 * README: Update reference to newlib@cygnus.com new
11509 newlib@sourceware.cygnus.com address.
11510
11511 Mon Apr 26 18:17:33 1999 Geoffrey Noer <noer@cygnus.com>
11512
11513 * libc/include/sys/types.h: Define MS_types if CYGWIN is defined.
11514 * libc/include/sys/fcntl.h: Define _O_BINARY et al if CYGWIN is
11515 defined, even if _WIN32 isn't defined.
11516
11517 Sat Apr 24 19:59:55 1999 Christopher Faylor <cgf@cygnus.com>
11518
11519 * libc/include/sys/fcntl.h: Correct _O_CREATE to _O_CREAT.
11520
11521 Wed Apr 21 18:01:00 1999 Ranjith Kumaran <ranjith@cygnus.com>
11522
11523 * libc/include/sys/reent.h: Change Long and ULong to __Long and
11524 __ULong.
11525 * libc/stdlib/dtoa.c: Ditto.
11526 * libc/stdlib/mprec.c: Ditto.
11527 * libc/stdlib/mprec.h: Ditto.
11528 * libc/stdlib/strtod.c: Ditto.
11529
11530 1999-04-21 Nick Clifton <nickc@cygnus.com>
11531
11532 * configure.host (mcore): Remove mcore machine directory.
11533
11534 1999-04-18 Nick Clifton <nickc@cygnus.com>
11535
11536 * libc/include/machine/ieeefp.h: Add support for mcore target.
11537 * libc/include/machine/setjmp.h: Add support for mcore target.
11538 * configure.host: Add support for mcore target.
11539
11540 1999-04-13 Mark Salter <msalter@cygnus.com>
11541
11542 * libc/sys/arm/libcfunc.c: Moved isatty to syscall.c
11543 * libc/sys/arm/syscalls.c: Added isatty.
11544
11545 Wed Apr 07 16:06:04 1999 Jeff Johnston <jjohnstn@cygnus.com>
11546
11547 * libc/stdlib/ecvtbuf.c (fcvtbuf): Fixed code to properly
11548 insert zeroes after significant digits.
11549
11550 Wed Mar 17 22:06:04 1999 Jeff Johnston <jjohnstn@cygnus.com>
11551
11552 * libc/stdio/vfprintf.c (cvt): Changed floating point
11553 cvt routine to use union used by dtoa to properly determine
11554 if the sign bit is on or not.
11555 * libc/stdio/vfieeefp.h: New file
11556
11557 Wed Mar 17 17:35:04 1999 Jeff Johnston <jjohnstn@cygnus.com>
11558
11559 * aclocal.m4: Regenerated.
11560 * configure: Regenerated.
11561
11562 Wed Mar 17 16:35:04 1999 Jeff Johnston <jjohnstn@cygnus.com>
11563
11564 * libc/machine/i386/Makefile.am (lib_a_SOURCES): Added missing
11565 f_tanf reference.
11566 * libc/machine/i386/Makefile.in: Regenerated.
11567
11568 Tue Mar 16 14:56:36 1999 Jeff Johnston <jjohnstn@cygnus.com>
11569
11570 * acinclude.m4: Changed to work with new automake.
11571 * configure: Regenerated.
11572 * libc/machine/i386/aclocal.m4: Regenerated.
11573 * libc/machine/i386/configure: Regenerated.
11574
11575 Tue Mar 16 13:55:36 1999 Corinna Vinschen <corinna.vinschen@cityweb.de>
11576
11577 * libc/sys/cygwin/sys/dirent.h: Add additional prototypes
11578 for telldir() and seekdir(). Rename unused structure element
11579 for use with these two routines.
11580
11581 Fri Mar 12 19:11:58 1999 Jeff Johnston <jjohnstn@cygnus.com>
11582
11583 * libc/time/mktime.c (validate_structure): Multiple fixes to
11584 code to handle cases where input fields are outside valid ranges.
11585 * libc/stdlib/div.c (div): Modified invalid rounding check.
11586 * libc/stdlib/ldiv.c (ldiv): Ditto.
11587
11588 Thu Mar 11 21:32:13 1999 Jeff Johnston <jjohnstn@cygnus.com>
11589
11590 * libc/machine/i386/memcpy.S: Performance rewrite.
11591 * libc/machine/i386/memmove.S: Ditto.
11592 * libc/machine/i386/i386mach.h: Added more register definitions.
11593 * libc/include/math.h: Include <machine/fastmath.h> if -ffast-math
11594 option used.
11595 * libc/include/machine/fastmath.h: Add definitions for x86
11596 fast-math routines.
11597
11598 Wed Mar 10 17:56:00 1999 Ranjith Kumaran <ranjith@cygnus.com>
11599
11600 * libc/stdlib/strtod.c: Change from unsigned long to ULong.
11601
11602 Tue Mar 9 14:31:58 1999 Geoffrey Noer <noer@cygnus.com>
11603
11604 Adjust newlib headers for new Cygwin Win32 API header files:
11605 * libc/include/sys/time.h: Check _WINSOCK_H rather than
11606 _GNU_H_WINDOWS32_SOCKETS.
11607 * libc/include/sys/types.h: Ditto.
11608
11609 Tue Mar 09 15:55:00 1999 Ranjith Kumaran <ranjith@cygnus.com>
11610
11611 *include/sys/reent.h: Add checks for size of Bigint element Long.
11612 *libc/dtoa.c: Change routines to use generic Long type.
11613 *libc/mprec.c: Change routines to use generic Long type.
11614 *libc/mprec.h: Change routines to use generic Long type.
11615
11616 Tue Mar 02 18:07:49 1999 Ranjith Kumaran <ranjith@cygnus.com>
11617
11618 * libc/Makefile.am: Add .def files.
11619 * libc/Makefile.in: Regenerate.
11620 * libc/e_acosh.c: Documentation update.
11621 * libc/e_atanh.c: Documentation update.
11622 * libc/e_hypot.c: Documentation update.
11623 * libc/e_remainder.c: Documentation update.
11624 * libc/er_lgamma.c: Documentation update.
11625 * libc/mathfp.tex: Documentation update.
11626 * libc/s_acos.c: Documentation update.
11627 * libc/s_atan.c: Documentation update.
11628 * libc/s_atan2.c: Documentation update.
11629 * libc/s_cosh.c: Documentation update.
11630 * libc/s_fmod.c: Documentation update.
11631 * libc/s_isnan.c: Documentation update.
11632 * libc/s_log10.c: Documentation update.
11633 * libc/s_pow.c: Documentation update.
11634 * libc/w_jn.c: Documentation update.
11635
11636 Sun Feb 28 23:18:49 1999 Geoffrey Noer <noer@cygnus.com>
11637
11638 * aclocal.m4: Regenerate.
11639 * configure: Regenerate.
11640
11641 Tue Feb 23 13:57:26 1999 Jeff Johnston <jjohnstn@cygnus.com>
11642
11643 * libc/machine/mn10300/setjmp.S (_longjmp): Fixed longjmp
11644 to return 1 if user specified return code is 0.
11645 * libc/machine/mn10200/setjmp.S (_longjmp): Ditto.
11646
11647 Thu Feb 18 11:13:28 1999 Jeff Johnston <jjohnstn@cygnus.com>
11648
11649 * libc/machine/mn10200/setjmp.S (_setjmp/_longjmp): Fixed setjmp
11650 to save the return address. Fixed longjmp to return to the original
11651 calling address of setjmp and to return the user specified return code
11652 rather than default to 1.
11653 * libc/machine/mn10300/setjmp.S (_setjmp/_longjmp): Ditto.
11654
11655 Mon Feb 15 17:48:17 1999 Jeff Johnston <jjohnstn@cygnus.com>
11656
11657 * libc/stdlib/mprec.h (mult): Define mult to be _multiply instead of _mult.
11658
11659 1999-02-10 Nick Clifton <nickc@cygnus.com>
11660
11661 * libc/sys/arm/syscalls.c (initialise_monitor_handles): Make block
11662 volatile so that its assignments will not be discarded.
11663
11664 Wed Feb 10 17:19:40 1999 Jeff Johnston <jjohnstn@cygnus.com>
11665
11666 * libc/include/_ansi.h: Corrected _STRICT_ANSI reference to
11667 be __STRICT_ANSI__ which is generated by compiler.
11668 * libc/include/ctype.h: Ditto.
11669 * libc/include/math.h: Ditto.
11670 * libc/include/stdio.h: Ditto.
11671 * libc/include/stdlib.h: Ditto.
11672 * libc/include/string.h: Ditto.
11673 * libc/include/sys/signal.h: Ditto.
11674
11675 1999-02-08 Nick Clifton <nickc@cygnus.com>
11676
11677 * configure.host: Add support for StrongARM target.
11678
11679 Fri Feb 5 11:13:14 1999 Jeff Johnston <jjohnstn@cygnus.com>
11680
11681 * libc/string/strncpy.c (strncpy): Removed redundant code
11682 that was copying bytes if data unaligned.
11683
11684 1999-02-02 Brendan Kehoe <brendan@cygnus.com>
11685
11686 * libc/stdlib/Makefile.{am,in} (CHEWOUT_FILES): Add mblen.def,
11687 mbstowcs.def, and wcstombs.def.
11688
11689 Sat Jan 30 02:36:33 1999 Christopher Faylor <cgf@cygnus.com>
11690
11691 * libc/include/sys/errno.h: Add Cygwin errno.
11692 * libc/stdio/flags.c: Don't default to O_TEXT if no other flag
11693 is specified.
11694
11695 1999-01-29 Nick Clifton <nickc@cygnus.com>
11696
11697 * libc/sys/arm/syscalls.c: Move C library functions into seperate
11698 file.
11699
11700 * libc/sys/arm/libcfunc.c: New file containing C library functions
11701 from syscalls.c
11702
11703 * libc/sys/arm/Makefile.am (lib_a_SOURCES): Add libcfuncs.c
11704 * libc/sys/arm/Makefile.in (lib_a_SOURCES): Regenerate.
11705
11706
11707 1999-01-27 Michael Meissner <meissner@cygnus.com>
11708
11709 * libc/include/machine/setjmp.h (D30V _JBLEN/_JBTYPE): Use double
11710 type, and cut size in half so that the jmp_buf array is guaranteed
11711 to be aligned on a 64-bit boundary.
11712
11713 Mon Jan 25 12:05:38 1999 Jeff Johnston <jjohnstn@cygnus.com>
11714
11715 * libc/string/strings.tex: Added information about
11716 strcasecmp and strncasecmp.
11717 * libc/stdlib/stdlib.tex: Added missing information
11718 about mblen, mbstowcs, and wcstombs.
11719 * libc/string/strchr.c: Changed how mask is built to use
11720 shift operators so register will be used instead of storage.
11721
11722 1999-01-22 DJ Delorie <dj@cygnus.com>
11723
11724 * libc/include/stdlib.h: don't use dllimport if we're building
11725 newlib, since it's inside cygwin.dll
11726
11727 Fri Jan 22 14:57:18 1999 Christopher Faylor <cgf@cygnus.com>
11728
11729 * libc/ctype/ctype_.c: Need to use __declspec(dllexport) for
11730 _ctype_ under cygwin.
11731
11732 Fri Jan 22 09:50:19 1999 Christopher Faylor <cgf@cygnus.com>
11733
11734 * include/stdlib.h: Fix typo from previous checkin.
11735
11736 Thu Jan 21 22:42:21 1999 Christopher Faylor <cgf@cygnus.com>
11737
11738 * include/ctype.h: Use __declspec(dllimport) method for exporting
11739 variable from cygwin DLL.
11740 * include/time.h: Ditto.
11741 * sys/errno.h: Ditto.
11742 * include/stdlib.h: Export __mb_cur_max from cygwin DLL.
11743 * libc/locale/locale.c: Use __declspec(dllexport) method for
11744 exporting variable from cygwin DLL.
11745
11746 Sat Jan 16 13:29:54 1999 Christopher Faylor <cgf@cygnus.com>
11747
11748 * libc/stdio/setvbuf.c: Always clean up when _IONBF or possible
11749 access of bogus pointer will result in SIGSEGV.
11750
11751 1999-01-07 Nick Clifton <nickc@cygnus.com>
11752
11753 * libc/sys/arm/setjmp.S: Use C macros to cope with the possibility
11754 of an underscore prefix to function names.
11755
11756 Fri Jan 8 19:00:07 1999 Jeff Johnston <jjohnstn@cygnus.com>
11757
11758 * libc/machine/i386/i386mach.h (__REG_PREFIX__): Create new
11759 define __REG_PREFIX__ instead of using __REGISTER_PREFIX__.
11760
11761 1998-12-31 Michael Meissner <meissner@cygnus.com>
11762
11763 * libc/machine/i386/i386mach.h (__REGISTER_PREFIX__): Only define
11764 to `%' if not already defined.
11765
11766 1998-12-30 Michael Meissner <meissner@cygnus.com>
11767
11768 * libc/stdio/tmpnam.c (_tempnam_r): Make directory and prefix
11769 arguments const char *, not char *.
11770 * libc/include/stdio.h (_tempnam_r): Ditto.
11771
11772 * libc/include/sys/reent.h (struct _reent): The _sig_func type
11773 points to a function taking an integer, not void.
11774
11775 Tue Dec 29 14:35:53 1998 Christopher Faylor <cgf@cygnus.com>
11776
11777 * configure.host: Add a define for Cygwin builds.
11778 * libc/include/ctype.h: Don't use dll imported variables in newlib.
11779
11780 Mon Dec 28 09:19:56 1998 Christopher Faylor <cgf@cygnus.com>
11781
11782 * libc/include/ctype.h: Define _ctype_ as dll imported variable
11783 for use with Cygwin.
11784 * libc/include/sys/errno.h: Define _sys_errlist and _sys_nerr as
11785 dll imported variables for use with Cygwin.
11786 * libc/ctype/ctype_.c: Undefine _ctype_ in case it has been defined
11787 as a dll imported variable for Cygwin.
11788
11789 Sat Dec 26 00:13:53 1998 Christopher Faylor <cgf@cygnus.com>
11790
11791 * libc/include/sys/unistd.h: Add proto for getpass.
11792
11793 Fri Dec 18 19:28:19 1998 Geoffrey Noer <noer@cygnus.com>
11794
11795 * libc/sys/cygwin/sys/dirent.h: add protos for scandir and
11796 alphasort.
11797
11798 Fri Dec 18 16:33:25 1998 Geoffrey Noer <noer@cygnus.com>
11799
11800 * libc/posix/execvp.c (execvp): call cygwin_posix_path_list_p,
11801 not posix_path_list_p.
11802
11803 1998-12-15 Nick Clifton <nickc@cygnus.com>
11804
11805 * libc/string/memchr.c: Treat 'c' argument as an unsigned byte not
11806 a signed int.
11807
11808 1998-12-13 Nick Clifton <nickc@cygnus.com>
11809
11810 * libc/include/machine/setjmp.h (_JBLEN): Set to 10.
11811
11812 1998-12-12 Nick Clifton <nickc@cygnus.com>
11813
11814 * libc/machine/fr30/setjmp.S: New file, supplied by Mark Slater
11815 <msalter@cygnus.com>
11816 * libc/machine/fr30/Makefile.am: Add build of setjmp.S
11817 * libc/machine/fr30/Makefile.in: Regenerated.
11818
11819 1998-12-11 Nick Clifton <nickc@cygnus.com>
11820
11821 * configure.host: Remove use of libc/sys for FR30 port.
11822 * libc/sys/fr30: Remove directory (replaced by libgloss).
11823
11824 1998-12-10 Ken Raeburn <raeburn@cygnus.com>
11825
11826 * libc/string/strcat.c (ALIGNED): Sense of result was reversed.
11827 * libc/string/strncat.c (ALIGNED): Ditto.
11828
11829 Wed Dec 9 14:37:57 1998 Geoffrey Noer <noer@cygnus.com>
11830
11831 * libc/include/sys/time.h: include sys/types.h
11832
11833 Tue Dec 8 15:53:18 1998 Jeff Johnston <jjohnstn@cygnus.com>
11834
11835 * libc/machine/i386/memcmp.S (memcmp): Fix for unequal
11836 comparison found when checking word at a time.
11837
11838 1998-12-04 Nick Clifton <nickc@cygnus.com>
11839
11840 * libc/sys/fr30/crt0.s (_start): Initialise frame pointer.
11841
11842 1998-12-03 Nick Clifton <nickc@cygnus.com>
11843
11844 * libc/sys/fr30/syscalls.c (_times): New function stub.
11845
11846 Thu Dec 3 15:59:19 1998 Jeff Johnston <jjohnstn@cygnus.com>
11847
11848 * configure.host (mach_add_setjmp): Replaced mach_add_objs
11849 with mach_add_setjmp flag which indicates if setjmp should
11850 be added to the machine directory objects.
11851 * acinclude.m4: Removed reference to mach_add_objs.
11852 * aclocal.m4: Regenerated.
11853 * Makefile.in: Regenerated.
11854 * configure: Regenerated.
11855 * libc/aclocal.m4: Regenerated.
11856 * libc/Makefile.in: Regenerated.
11857 * libc/configure: Regenerated.
11858 * libc/machine/aclocal.m4: Regenerated.
11859 * libc/machine/Makefile.in: Regenerated.
11860 * libc/machine/configure: Regenerated.
11861 * libc/machine/i386/aclocal.m4: Regenerated.
11862 * libc/machine/i386/Makefile.am: Altered to selectively add
11863 setjmp.S to the src files list.
11864 * libc/machine/i386/Makefile.in: Regenerated.
11865 * libc/machine/i386/configure.in: Altered to test mach_add_setjmp.
11866 * libc/machine/i386/configure: Regenerated.
11867
11868 1998-12-02 Nick Clifton <nickc@cygnus.com>
11869
11870 * libc/sys/fr30/crt0.s (_start): Fix function names.
11871
11872 * libc/machine/fr30: New directory
11873 * libc/machine/fr30/Makefile.am: New file.
11874 * libc/machine/fr30/Makefile.in: New generated file.
11875 * libc/machine/fr30/configure.in: New file.
11876 * libc/machine/fr30/configure: New generated file.
11877 * libc/machine/fr30/aclocal.m4: New generated file.
11878 * libc/sys/fr30/Makefile.am: New file.
11879 * libc/sys/fr30/Makefile.in: New generated file.
11880 * libc/sys/fr30/configure.in: New file.
11881 * libc/sys/fr30/configure: New generated file.
11882 * libc/sys/fr30/syscalls.c: New file.
11883
11884 Tue Dec 1 16:28:56 1998 Geoffrey Noer <noer@cygnus.com>
11885
11886 * libc/sys/cygwin/sys/utmp.h: new file, moved from winsup/include.
11887
11888 1998-12-01 Ken Raeburn <raeburn@cygnus.com>
11889
11890 * libc/time/strftime.c (strftime): Also handle %y for years before
11891 1900.
11892
11893 Tue Dec 1 13:26:07 1998 Christopher Faylor <cgf@cygnus.com>
11894
11895 * libc/string/strcasecmp.c (strcasecmp): Adhere to standard
11896 UNIX convention. Perform tolower on characters before comparing
11897 them rather than use toupper.
11898 * libc/string/strncasecmp.c (strncasecmp): Ditto.
11899
11900 Mon Nov 30 16:24:19 1998 Jeff Johnston <jjohnstn@cygnus.com>
11901
11902 * configure.host: Added using i386 machine directory
11903 for all x86 cross-compiler and configuring
11904 which added object files to use via new "mach_add_objs" variable.
11905 * configure: Regenerated.
11906 * libc/configure: Regenerated.
11907 * libc/Makefile.in: Regenerated.
11908 * libc/aclocal.m4: Regenerated.
11909 * libc/ctype/Makefile.in: Regenerated.
11910 * libc/errno/Makefile.in: Regenerated.
11911 * libc/locale/Makefile.in: Regenerated.
11912 * libc/machine/Makefile.in: Regenerated.
11913 * libc/machine/aclocal.m4: Regenerated.
11914 * libc/machine/configure: Regenerated.
11915 * libc/posix/Makefile.in: Regenerated.
11916 * libc/reent/Makefile.in: Regenerated.
11917 * libc/signal/Makefile.in: Regenerated.
11918 * libc/stdio/Makefile.in: Regenerated.
11919 * libc/stdlib/Makefile.in: Regenerated.
11920 * libc/string/Makefile.in: Regenerated.
11921 * libc/string/memmove.c: Optimized code to use memcpy
11922 logic when performing a non-destructive copy.
11923 * libc/string/strncmp.c: Altered code to allow building
11924 optimized for size or speed.
11925 * libc/syscalls/Makefile.in: Regenerated.
11926 * libc/time/Makefile.in: Regenerated.
11927 * libc/unix/Makefile.in: Regenerated.
11928 * libc/machine/i386/Makefile.am: Added new files and reference
11929 to "mach_add_objs" to indicate optional object files.
11930 * libc/machine/i386/Makefile.in: Regenerated.
11931 * libc/machine/i386/aclocal.m4: Regenerated.
11932 * libc/machine/i386/configure: Regenerated.
11933 * libc/machine/i386/memchr.S: New file that implements
11934 function in Intel assembler.
11935 * libc/machine/i386/memcmp.S: ditto.
11936 * libc/machine/i386/memcpy.S: ditto.
11937 * libc/machine/i386/memmove.S: ditto.
11938 * libc/machine/i386/memset.S: ditto.
11939 * libc/machine/i386/strchr.S: ditto.
11940 * libc/machine/i386/strlen.S: ditto.
11941 * libc/machine/i386/f_atan2.S: New file that implements
11942 fast version of math function to be used by compiler when
11943 --ffast_math compile option is used.
11944 * libc/machine/i386/f_atan2f.S: ditto.
11945 * libc/machine/i386/f_exp.c: ditto.
11946 * libc/machine/i386/f_expf.c: ditto.
11947 * libc/machine/i386/f_frexp.S: ditto.
11948 * libc/machine/i386/f_frexpf.S: ditto.
11949 * libc/machine/i386/f_ldexp.S: ditto.
11950 * libc/machine/i386/f_ldexpf.S: ditto.
11951 * libc/machine/i386/f_log.S: ditto.
11952 * libc/machine/i386/f_logf.S: ditto.
11953 * libc/machine/i386/f_log10.S: ditto.
11954 * libc/machine/i386/f_log10f.S: ditto.
11955 * libc/machine/i386/f_math.h: New file.
11956 * libc/machine/i386/f_pow.c: ditto.
11957 * libc/machine/i386/f_powf.S: ditto.
11958 * libc/machine/i386/f_tan.S: ditto.
11959 * libc/machine/i386/f_tan.S: ditto.
11960 * libc/machine/i386/i386mach.h: New file.
11961
11962 Mon Nov 30 13:02:17 1998 Christopher Faylor <cgf@cygnus.com>
11963
11964 patch from Mumit Khan <khan@xraylith.wisc.edu>
11965 * libc/include/stdio.h (tempnam): Add prototype.
11966 * libc/stdio/tmpnam.c (_tempnam_r): Handle NULL prefix.
11967 (tempnam): Adhere to prototype.
11968
11969 Thu Nov 26 00:21:32 1998 Christopher Faylor <cgf@cygnus.com>
11970
11971 * Makefile.am: Add default for AR_FLAGS.
11972 * Makefile.in: Regenerate.
11973
11974 Tue Nov 24 18:48:56 1998 Geoffrey Noer <noer@cygnus.com>
11975
11976 * libc/include/time.h: move __cplusplus wrapper after includes
11977 * libc/include/sys/time.h: ditto. If Cygwin, include
11978 sys/select.h.
11979 * libc/include/sys/types.h: lose "32" in comment about Cygwin.
11980
11981 1998-11-23 Ken Raeburn <raeburn@cygnus.com>
11982
11983 * libc/time/strftime.c (strftime): Handle %y after year 2000.
11984
11985 Wed Nov 18 12:22:41 1998 Nick Clifton <nickc@cygnus.com>
11986
11987 * libc/sys/fr30/crt0.s (_start): Switch over to using int #9 as
11988 abnormnal end-of-crt0 marker.
11989
11990 Tue Nov 17 16:27:58 1998 Nick Clifton <nickc@cygnus.com>
11991
11992 * libc/sys/fr30/crt0.s: New file/directory.
11993 * libc/include/machine/setjmp.h: Add FR30 target.
11994 * libc/include/machine/ieeefp.h: Add FR30 target.
11995 * configure.host: Add FR30 target.
11996
11997 Mon Nov 16 23:15:00 1998 Ranjith Kumaran <ranjith@cygnus.com>
11998
11999 * libm/math: Files that are duplicated in common directory removed.
12000 * libm/math/fdlibm.h: Removed.
12001 * libm/math/s_cbrt.c: Removed.
12002 * libm/math/s_copysign.c: Removed.
12003 * libm/math/s_expm1.c: Removed.
12004 * libm/math/s_finite.c: Removed.
12005 * libm/math/s_ilogb.c: Removed.
12006 * libm/math/s_infinity.c: Removed.
12007 * libm/math/s_lib_ver.c: Removed.
12008 * libm/math/s_log1p.c: Removed.
12009 * libm/math/s_logb.c: Removed.
12010 * libm/math/s_matherr.c: Removed.
12011 * libm/math/s_modf.c: Removed.
12012 * libm/math/s_nan.c: Removed.
12013 * libm/math/s_nextafter.c: Removed.
12014 * libm/math/s_rint.c: Removed.
12015 * libm/math/s_scalbn.c: Removed.
12016 * libm/math/sf_cbrt.c: Removed.
12017 * libm/math/sf_copysign.c: Removed.
12018 * libm/math/sf_expm1.c: Removed.
12019 * libm/math/sf_finite.c: Removed.
12020 * libm/math/sf_ilogb.c: Removed.
12021 * libm/math/sf_infinity.c: Removed.
12022 * libm/math/sf_log1p.c: Removed.
12023 * libm/math/sf_logb.c: Removed.
12024 * libm/math/sf_modf.c: Removed.
12025 * libm/math/sf_nan.c: Removed.
12026 * libm/math/sf_nextafter.c: Removed.
12027 * libm/math/sf_rint.c: Removed.
12028 * libm/math/sf_scalbn.c: Removed.
12029 * libm/math/Makefile.am: Removed references to deleted files (above).
12030 * libm/math/Makefile.in: Regenerated.
12031 * libm/Makefile.am: Added common directory to math.
12032 * libm/Makefile.in: Regenerated.
12033
12034 Mon Nov 2 23:12:00 1998 Ranjith Kumaran <ranjith@cygnus.com>
12035
12036 * libm/mathfp: Add non-ANSI functions.
12037 * libm/mathfp/e_acosh.c acosh(): New file.
12038 * libm/mathfp/e_atanh.c atanh(): New file.
12039 * libm/mathfp/e_hypot.c hypot(): New file.
12040 * libm/mathfp/e_j0.c j0(): New file.
12041 * libm/mathfp/e_j1.c j1(): New file.
12042 * libm/mathfp/e_remainder.c remainder(): New file.
12043 * libm/mathfp/e_scalb.c scalb(): New file.
12044 * libm/mathfp/ef_acosh.c acoshf(): New file.
12045 * libm/mathfp/ef_atanh.c atanhf(): New file.
12046 * libm/mathfp/ef_hypot.c hypotf(): New file.
12047 * libm/mathfp/ef_j0.c j0f(): New file.
12048 * libm/mathfp/ef_j1.c j1f(): New file.
12049 * libm/mathfp/ef_remainder.c remainderf(): New file.
12050 * libm/mathfp/ef_scalb.c scalbf(): New file.
12051 * libm/mathfp/er_gamma.c gamma_r: New file.
12052 * libm/mathfp/er_lgamma.c lgamma_r(): New file.
12053 * libm/mathfp/erf_gamma.c gamma_rf(): New file.
12054 * libm/mathfp/erf_lgamma.c lgamma_rf(): New file.
12055 * libm/mathfp/w_cabs.c cabs(): New file.
12056 * libm/mathfp/w_drem.c drem(): New file.
12057 * libm/mathfp/w_jn.c jn(): New file.
12058 * libm/mathfp/wf_cabs.c cabsf(): New file.
12059 * libm/mathfp/wf_drem.c dremf(): New file.
12060 * libm/mathfp/wf_jn.c jnf(): New file.
12061
12062 Mon Nov 2 16:43:18 1998 Geoffrey Noer <noer@cygnus.com>
12063
12064 * libc/sys/cygwin32: remove directory and contents
12065 * libc/sys/cygwin: and add back, losing the "32".
12066 * configure.host: check for cygwin* instead of cygwin32.
12067 * acinclude.m4: ditto.
12068 * aclocal.m4: regenerate with aclocal
12069 * configure: regenerate with autoconf
12070
12071 Tue Oct 20 17:28:28 1998 Geoffrey Noer <noer@cygnus.com>
12072
12073 * libc/stdio/tmpnam.c (_tempnam_r): not enough memory allocated
12074 for length
12075
12076 Tue Oct 20 18:49:05 1998 Jeff Johnston <jjohnstn@cygnus.com>
12077
12078 * libc/include/sys/reent.h (struct _reent): Added variables _rand_next, _strtok_last,
12079 _asctime_buf, _localtime_buf and _gamma_signgam to struct reent
12080 to make rand/srand, strtok, asctime, localtime, w_gamma,
12081 w_lgamma, wf_gamma, and wf_lgamma reentrant. Included
12082 time.h to bring in struct tm definition.
12083 * libc/stdlib/rand.c (rand, srand): Don't emit functions 'rand' and 'srand' if
12084 '_REENT_ONLY' is set. Used variable '_rand_next' from struct reent.
12085 * libc/stdlib/strtok.c (strtok): Used variable '_strtok_last' from struct reent
12086 instead of static variable.
12087 * libc/stdlib/asctime.c (asctime): Used variable '_asctime_buf' from
12088 struct reent instead of static variable.
12089 * libc/stdlib/lcltime.c (localtime): Used variable '_localtime_buf' from
12090 struct reent instead of static variable.
12091 * libm/math/Makefile.am: Removed s_signgam.o.
12092 * libm/math/Makefile.in: Regenerated.
12093 * libm/math/w_gamma.c (gamma): Used variable '_gamma_signgam' from
12094 struct reent instead of global variable 'signgam'.
12095 * libm/math/w_lgamma.c (lgamma): Likewise.
12096 * libm/math/wf_gamma.c (gammaf): Likewise.
12097 * libm/math/wf_lgamma.c (lgammaf): Likewise.
12098 * libm/math/s_signgam.c: Removed.
12099 * libc/include/unctrl.h: Defined arrays __unctrl and __unctrllen
12100 to be const.
12101 * libc/misc/unctrl.c: Defined arrays __unctrl and __unctrllen
12102 to be const.
12103 * libc/reent/Makefile.am: Added dependence for impure.o on impure.c and
12104 libc/include/reent.h.
12105 * libc/reent/Makefile.in: Regenerated.
12106 * libc/stdio/vfprintf.c (_vfprintf_r): Defined arrays 'blanks' and 'zeroes'
12107 to be const.
12108 * libc/stdlib/mbtowc_r.c (_mbtowc_r): Defined arrays 'JIS_state_table' and
12109 'JIS_action_table' to be const.
12110 * libm/math/s_lib_ver.c: define variable _LIB_VERSION to be const.
12111
12112 Mon Oct 12 00:26:33 1998 Christopher Faylor <cgf@cygnus.com>
12113
12114 * acinclude.m4: $with_target_subdir should default to '.'
12115 or confusion results when configuring in same directory as sources.
12116 * Regenerate all aclocal.m4 and configure files.
12117
12118 Fri Oct 9 16:27:36 1998 Jeff Johnston <jjohnstn@cygnus.com>
12119
12120 * libc/stdlib/mallocr.c: Added 16 byte alignment support which
12121 can be set by defining MALLOC_ALIGNMENT=16. Also added support
12122 for platforms where sizeof(size_t) < sizeof(long) via
12123 SIZE_T_SMALLER_THAN_LONG macro.
12124
12125 Wed Oct 7 14:02:40 1998 Jeff Johnston <jjohnstn@cygnus.com>
12126
12127 * libc/include/time.h (CLOCKS_PER_SEC): Change CLOCKS_PER_SEC
12128 to refer to _CLOCKS_PER_SEC_ and added including <machine/time.h>
12129 which sets _CLOCKS_PER_SEC_ for selected machines.
12130 * libc/include/machine/time.h: New file.
12131
12132 Tue Oct 6 16:08:05 1998 Jeff Johnston <jjohnstn@cygnus.com>
12133
12134 * libc/syscalls/sysexecve.c: New file.
12135 * libc/syscalls/sysgettod.c: New file.
12136 * libc/syscalls/systimes.c: New file.
12137 * libc/syscalls/Makefile.am: Added new objects.
12138 * libc/syscalls/Makefile.in: Regenerated.
12139 * libc/include/_syslist.h (_execve): Moved define in file.
12140 * libc/include/reent.h: Added _execve_r declaration.
12141 * libc/Makefile.in: Regenerated.
12142 * libc/ctype/Makefile.in: Regenerated.
12143 * libc/errno/Makefile.in: Regenerated.
12144 * libc/locale/Makefile.in: Regenerated.
12145 * libc/machine/Makefile.in: Regenerated.
12146 * libc/misc/Makefile.in: Regenerated.
12147 * libc/posix/Makefile.in: Regenerated.
12148 * libc/reent/Makefile.in: Regenerated.
12149 * libc/reent/execr.c (_execve_r): Added _execve_r function.
12150 * libc/signal/Makefile.in: Regenerated.
12151 * libc/stdio/Makefile.in: Regenerated.
12152 * libc/time/Makefile.in: Regenerated.
12153 * libc/unix/Makefile.in: Regenerated.
12154 * libm/mathfp/Makefile.in: Regenerated.
12155
12156 Tue Oct 6 14:14:05 1998 Jeff Johnston <jjohnstn@cygnus.com>
12157
12158 * libc/string/Makefile.in: Regenerated.
12159 * libc/string/memchr.c (memchr): Moved code to reduce object size.
12160 * libc/string/memcpy.c (memcpy): Ditto.
12161 * libc/string/memcmp.c (memcmp): Ditto.
12162 * libc/string/memset.c (memset): Ditto.
12163 * libc/string/strchr.c (strchr): Ditto.
12164 * libc/string/strcmp.c (strcmp): Ditto.
12165 * libc/string/strcpy.c (strcpy): Ditto.
12166 * libc/string/strlen.c (strlen): Ditto.
12167
12168 Tue Oct 6 13:58:05 1998 Jeff Johnston <jjohnstn@cygnus.com>
12169
12170 * libm/acinclude.m4: Removed since newlib/acinclude.m4 can be used
12171 to generate aclocal.m4.
12172 * libm/Makefile.in: Regenerated.
12173 * libm/aclocal.m4: Regenerated.
12174 * libm/configure: Regenerated.
12175 * libm/math/Makefile.in: Regenerated.
12176 * libm/mathfp/Makefile.in: Regenerated.
12177
12178 1998-09-25 Mark Salter <msalter@cygnus.com>
12179
12180 * libc/include/machine/setjmp.h: Fixed test for mn10300 and mn10200
12181 by adding leading and trailing underscores to symbol names.
12182
12183 Tue Sep 22 15:33:41 1998 Christopher Faylor <cgf@cygnus.com>
12184
12185 * Makefile.in: Add default for AR_FLAGS.
12186
12187 Tue Sep 22 15:02:49 1998 Christopher Faylor <cgf@cygnus.com>
12188
12189 patch from ian@airs.com (Ian Taylor):
12190 * acinclude.m4: Run AC_CANONICAL_BUILD explicitly before
12191 NEWLIB_CONFIGURE so AC_CANONICAL_HOST will be run before it
12192 is needed for detecting the build machine. Required for
12193 cygwin native builds.
12194
12195 * Regenerate all aclocal.m4 and configure files.
12196
12197 Mon Sep 21 14:44:16 1998 Nick Clifton <nickc@cygnus.com>
12198
12199 * libc/sys/arm/crt0.S: Prepend a period to all local labels that
12200 used to start with LC.
12201
12202 Thu Sep 17 18:18:11 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
12203
12204 * libc/machine/sh/setjmp.S (setjmp): Handle __SH4* like __SH3E__ .
12205 (longjmp): Likewise.
12206
12207 Thu Sep 17 16:25:33 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
12208
12209 * libc/machine/sh/memset.S (memset): Move copy from r4 to r4 before
12210 the test for small number of bytes.
12211
12212 Thu Sep 10 11:40:00 1998 Ranjith Kumaran <ranjith@cygnus.com>
12213
12214 * Makefile.am: Add --enable-newlib-hw-fp check. This builds the new
12215 math library that uses floating point algorithms instead of the old
12216 libm.
12217 * Makefile.in: Regenerate with automake version 1.3b.
12218 * configure: Rebuild.
12219 * libm/Makefile.in: Regenerate with automake version 1.3b.
12220 * libm/aclocal.m4: Regenerate.
12221 * libm/configure: Rebuild.
12222 * libm/configure.in: Add newlib_hw_fp definition and mathfp directory.
12223 * libm/acinclude.m4: Define macros for configure.in.
12224 * libm/config.h.in: Generate.
12225 * libm/mathfp/Makefile.am: New file.
12226 * libm/mathfp/Makefile.in: Generate.
12227 * libm/mathfp/s_acos.c (acos): New file.
12228 * libm/mathfp/s_asin.c (asin): New file.
12229 * libm/mathfp/s_asine.c (asine): New file.
12230 * libm/mathfp/s_atan.c (atan): New file.
12231 * libm/mathfp/s_atan2.c (atan2): New file.
12232 * libm/mathfp/s_atangent.c (atangent): New file.
12233 * libm/mathfp/s_ceil.c (ceil): New file.
12234 * libm/mathfp/s_copysign.c (copysign): New file.
12235 * libm/mathfp/s_cos.c (cos): New file.
12236 * libm/mathfp/s_cosh.c (cosh): New file.
12237 * libm/mathfp/s_exp.c (exp): New file.
12238 * libm/mathfp/s_fabs.c (fabs): New file.
12239 * libm/mathfp/s_finite.c (finite): New file.
12240 * libm/mathfp/s_floor.c (floor): New file.
12241 * libm/mathfp/s_fmod.c (fmod): New file.
12242 * libm/mathfp/s_frexp.c (frexp): New file.
12243 * libm/mathfp/s_infconst.c: New file.
12244 * libm/mathfp/s_isinf (isinf).c: New file.
12245 * libm/mathfp/s_isnan.c (isnan): New file.
12246 * libm/mathfp/s_ispos.c (ispos): New file.
12247 * libm/mathfp/s_ldexp.c (ldexp): New file.
12248 * libm/mathfp/s_log.c (log): New file.
12249 * libm/mathfp/s_log10.c (log10): New file.
12250 * libm/mathfp/s_logarithm.c (logarithm): New file.
12251 * libm/mathfp/s_mathcnst.c: New file.
12252 * libm/mathfp/s_modf (modf).c: New file.
12253 * libm/mathfp/s_numtest.c (numtest): New file.
12254 * libm/mathfp/s_pow.c (pow): New file.
12255 * libm/mathfp/s_scalbn.c (scalbn): New file.
12256 * libm/mathfp/s_sin (sin).c: New file.
12257 * libm/mathfp/s_sine.c (sine): New file.
12258 * libm/mathfp/s_sineh.c (sineh): New file.
12259 * libm/mathfp/s_sinf.c (sinf): New file.
12260 * libm/mathfp/s_sinh.c (sinh): New file.
12261 * libm/mathfp/s_sqrt.c (sqrt): New file.
12262 * libm/mathfp/s_tan.c (tan): New file.
12263 * libm/mathfp/s_tanh.c (tanh): New file.
12264 * libm/mathfp/sf_acos.c (acosf): New file.
12265 * libm/mathfp/sf_asin.c (asinf): New file.
12266 * libm/mathfp/sf_asine.c (asinef): New file.
12267 * libm/mathfp/sf_atan.c (atanf): New file.
12268 * libm/mathfp/sf_atan2.c (atan2f): New file.
12269 * libm/mathfp/sf_atangent.c (atangent): New file.
12270 * libm/mathfp/sf_ceil.c (ceilf): New file.
12271 * libm/mathfp/sf_copysign.c (copysignf): New file.
12272 * libm/mathfp/sf_cos.c (cosf): New file.
12273 * libm/mathfp/sf_cosh.c (coshf): New file.
12274 * libm/mathfp/sf_exp.c (expf): New file.
12275 * libm/mathfp/sf_fabs.c (fabsf): New file.
12276 * libm/mathfp/sf_finite.c (finitef): New file.
12277 * libm/mathfp/sf_floor.c (floorf): New file.
12278 * libm/mathfp/sf_fmod.c (fmodf): New file.
12279 * libm/mathfp/sf_frexp.c (frexpf): New file.
12280 * libm/mathfp/sf_isinf.c (isinff): New file.
12281 * libm/mathfp/sf_isnan.c (isnanf): New file.
12282 * libm/mathfp/sf_ispos.c (isposf): New file.
12283 * libm/mathfp/sf_ldexp.c (ldexpf): New file.
12284 * libm/mathfp/sf_log.c (logf): New file.
12285 * libm/mathfp/sf_log10.c (log10f): New file.
12286 * libm/mathfp/sf_logarithm.c (logarithmf): New file.
12287 * libm/mathfp/sf_modf.c (modff): New file.
12288 * libm/mathfp/sf_numtest.c (numtestf): New file.
12289 * libm/mathfp/sf_pow.c (powf): New file.
12290 * libm/mathfp/sf_scalbn.c (scalbnf): New file.
12291 * libm/mathfp/sf_sin.c (sinf): New file.
12292 * libm/mathfp/sf_sine.c (sinef): New file.
12293 * libm/mathfp/sf_sineh.c (sinehf): New file.
12294 * libm/mathfp/sf_sinh.c (sinhf): New file.
12295 * libm/mathfp/sf_sqrt.c (sqrtf): New file.
12296 * libm/mathfp/sf_tan.c (tanf): New file.
12297 * libm/mathfp/sf_tanh.c (tanhf): New file.
12298 * libm/mathfp/zmath.h: New file.
12299
12300 Wed Sep 2 02:49:03 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
12301
12302 * libc/machine/sh/strcmp.S (L_char_loop): Re-load r0 at loop
12303 exit if it has been overwritten by pre-fetching in delay slot.
12304
12305 1998-09-01 Michael Meissner <meissner@cygnus.com>
12306
12307 * Makefile.am (tooldir): Add in host_alias, so that multilib
12308 libraries are installed in the directory the compiler looks in.
12309 * Makefile.in: Regenerate.
12310
12311 * libc/stdlib/Makefile.in: Regenerate with automake version 1.3b.
12312
12313 Mon Aug 31 11:39:31 1998 Jeff Johnston <jjohnstn@cygnus.com>
12314
12315 * libc/machine/mn10300/memcpy.S (_memcpy): Move alignment test
12316 ahead of test for number of bytes being moved.
12317
12318 Thu Aug 27 14:07:53 1998 Christopher Faylor <cgf@cygnus.com>
12319
12320 * libc/include/sys/unistd.h: Nothing special needed for
12321 _exit under cygwin.
12322
12323 Wed Aug 26 15:05:21 1998 Nick Clifton <nickc@cygnus.com>
12324
12325 * libc/sys/arm/syscalls.c (_sbrk): Rename '_end' to 'end' to
12326 conform to user label naming conventions.
12327
12328 Mon Aug 24 14:46:19 1998 Geoffrey Noer <noer@cygnus.com>
12329
12330 * libc/sys/cygwin32/sys/utime.h: variable names in
12331 protos should start with two leading underscores
12332 * libc/include/string.h: ditto
12333 * libc/include/sys/signal.h: ditto
12334 * libc/include/sys/stat.h: ditto
12335 * libc/include/sys/time.h: ditto
12336 * libc/include/sys/unistd.h: ditto
12337 * libc/include/ctype.h: ditto
12338 * libc/include/stdlib.h: ditto
12339 * libc/include/sys/reent.h: struct _atexit function ptr takes a
12340 void, same with _sig_func.
12341
12342 Fri Aug 21 14:44:14 1998 Jeff Johnston <jjohnstn@cygnus.com>
12343
12344 * libc/stdlib/mbtowc_r.c (_mbtowc_r): Added preprocessor checks
12345 for MB_CAPABLE to reduce code size when newlib is not configured
12346 with --enable-newlib-mb.
12347 * libc/stdlib/Makefile.am: Specified -fshort-enums when building
12348 mbtowc_r.o to minimize size.
12349 * libc/stdlib/Makefile.in: Rebuild.
12350
12351 Wed Aug 19 16:20:13 1998 Jim Wilson <wilson@cygnus.com>
12352
12353 * libc/sys/sparc64/Makefile.am (.S_r.o, .c_r.o): Change -DREENTRANT
12354 to -DREENT.
12355 * libc/sys/sparc64/Makefile.in: Rebuild.
12356
12357 Tue Aug 18 22:38:29 1998 Ian Lance Taylor <ian@cygnus.com>
12358
12359 * Makefile.am (MAKEOVERRIDES): Define.
12360 * Makefile.in: Rebuild.
12361
12362 Tue Aug 18 12:38:47 1998 Jim Wilson <wilson@cygnus.com>
12363
12364 * libc/sys/sparc64/sys/stat.h (stat): Add const.
12365
12366 Mon Aug 17 22:27:06 1998 Ian Lance Taylor <ian@cygnus.com>
12367
12368 * acinclude.m4 (NEWLIB_CONFIGURE): Use top_builddir in
12369 newlib_cflags when looking for targ-include.
12370 * */aclocal.m4, */configure: Rebuild.
12371
12372 Fri Jul 31 10:57:42 1998 Catherine Moore <clm@cygnus.com>
12373
12374 * libc/sys/arm/syscalls.c (_sbrk): Change "__end__"
12375 to "_end".
12376
12377 Wed Jul 29 00:02:01 1998 Mark Alexander <marka@cygnus.com>
12378
12379 * libc/include/sys/config.h: Define __IEEE_LITTLE_ENDIAN
12380 on SPARCs with little-endian data.
12381 * libc/include/machine/ieeefp.h: Ditto.
12382
12383 Wed Jul 22 18:00:10 1998 Ian Lance Taylor <ian@cygnus.com>
12384
12385 * acinclude.m4: Handle a relative srcdir correctly when setting
12386 newlib_cflags.
12387 * */aclocal.m4, */configure: Rebuild.
12388
12389 Wed Jul 22 17:11:33 1998 Jeff Johnston <jjohnstn@cygnus.com>
12390
12391 * libm/math/wrf_lgamma.c (lgammaf_r): Initialize exc.err to 0 and
12392 also set exc.arg1, exc.arg2 appropriately in case matherr is supplied.
12393 * libm/math/wrf_gamma.c (gammaf_r): ditto
12394 * libm/math/wr_lgamma.c (lgamma_r): ditto
12395 * libm/math/wr_gamma.c (gamma_r): ditto
12396 * libm/math/wf_sqrt.c (sqrtf): ditto
12397 * libm/math/wf_sinh.c (sinhf): ditto
12398 * libm/math/wf_scalb.c (scalbf): ditto
12399 * libm/math/wf_remainder.c (remainderf): ditto
12400 * libm/math/wf_pow.c (powf): ditto
12401 * libm/math/wf_log10.c (log10f): ditto
12402 * libm/math/wf_log.c (logf): ditto
12403 * libm/math/wf_lgamma.c (lgammaf): ditto
12404 * libm/math/wf_jn.c (jnf, ynf): ditto
12405 * libm/math/wf_j1.c (j1f, y1f): ditto
12406 * libm/math/wf_j0.c (j0f, y0f): ditto
12407 * libm/math/wf_hypot.c (hypotf): ditto
12408 * libm/math/wf_gamma.c (gammaf): ditto
12409 * libm/math/wf_fmod.c (fmodf): ditto
12410 * libm/math/wf_exp.c (expf): ditto
12411 * libm/math/wf_cosh.c (coshf): ditto
12412 * libm/math/wf_atanh.c (atanhf): ditto
12413 * libm/math/wf_atan2f.c (atan2f): ditto
12414 * libm/math/wf_asin.c (asinf): ditto
12415 * libm/math/wf_acosh.c (acoshf): ditto
12416 * libm/math/wf_acos.c (acosf): ditto
12417 * libm/math/w_sqrt.c (sqrt): ditto
12418 * libm/math/w_sinh.c (sinh): ditto
12419 * libm/math/w_scalb.c (scalb): ditto
12420 * libm/math/w_remainder.c (remainder): ditto
12421 * libm/math/w_pow.c (pow): ditto
12422 * libm/math/w_log10.c (log10): ditto
12423 * libm/math/w_log.c (log): ditto
12424 * libm/math/w_lgamma.c (lgamma): ditto
12425 * libm/math/w_jn.c (jn, yn): ditto
12426 * libm/math/w_j1.c (j1, y1): ditto
12427 * libm/math/w_j0.c (j0, y0): ditto
12428 * libm/math/w_hypot.c (hypot): ditto
12429 * libm/math/w_gamma.c (gamma): ditto
12430 * libm/math/w_fmod.c (fmod): ditto
12431 * libm/math/w_exp.c (exp): ditto
12432 * libm/math/w_cosh.c (cosh): ditto
12433 * libm/math/w_atanh.c (atanh): ditto
12434 * libm/math/w_atan2f.c (atan2): ditto
12435 * libm/math/w_asin.c (asin): ditto
12436 * libm/math/w_acosh.c (acosh): ditto
12437 * libm/math/w_acos.c (acos): ditto
12438
12439 Tue Jul 21 12:34:54 1998 Ian Lance Taylor <ian@cygnus.com>
12440
12441 * libm/math/Makefile.am (src): Add w_cabs.c and w_drem.c.
12442 (fsrc): Add wf_cabs.c and wf_drem.c.
12443 * libm/math/Makefile.in: Rebuild.
12444
12445 * Makefile.am (AM_MAKEFLAGS): Add CFLAGS_FOR_BUILD. Remove some
12446 unused directory variables. Remove duplicate CFLAGS.
12447 * Makefile.in: Rebuild.
12448
12449 * doc/Makefile.am ($(MKDOC)): Don't use $(CFLAGS) when building
12450 with $(CC_FOR_BUILD).
12451 (makedoc.o): Likewise.
12452 * doc/Makefile.in: Rebuild.
12453
12454 * libc/sys/cygwin32/Makefile.am (EXTRA_LIBRARIES): Define, to
12455 force a definition of COMPILE.
12456 (libfoo_a_SOURCES): Define.
12457 * libc/sys/cygwin32/Makefile.in: Rebuild.
12458 * libc/sys/tic80/Makefile.am (EXTRA_LIBRARIES): Define, to
12459 force a definition of COMPILE.
12460 (libfoo_a_SOURCES): Define.
12461 * libc/sys/tic80/Makefile.in: Rebuild.
12462
12463 Mon Jul 20 20:49:24 1998 Christopher Faylor <cgf@cygnus.com>
12464
12465 * libc/include/sys/fcntl.h: Add O_NOINHERIT, Win32-specific
12466 flag.
12467
12468 Fri Jul 17 16:13:16 1998 Ian Lance Taylor <ian@cygnus.com>
12469
12470 * Build using autoconf and automake. Added many Makefile.am and
12471 configure.in files, plus generated files. Old configure.in files
12472 and all old Makefile.in files completely replaced. Removed
12473 host/any. Added acinclude.m4 and configure.host.
12474
12475 Sat Jul 11 18:14:49 1998 Felix Lee <flee@cygnus.com>
12476
12477 * libc/stdio/vfprintf.c: enable long long support, sometimes.
12478 * configure.in (*-*-cygwin32): add -DWANT_PRINTF_LONG_LONG.
12479
12480 Tue Jul 7 01:51:55 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
12481
12482 * libc/machine/sh/strcmp.S, libc/machine/sh/strcpy.S: New files.
12483 * libc/machine/sh/Makefile.in: Add rules for new files.
12484
12485 Tue Jul 7 01:40:55 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
12486
12487 * libc/machine/sh/asm.h (SL, DELAYED_BRANCHES): Define.
12488 * libc/machine/sh/memset.S (memset): Remove uses of dt; shorten code.
12489 * libc/machine/sh/memcpy.S (SL, DELAYED_BRANCHES): Don't define.
12490
12491 Thu Jul 2 10:33:16 1998 Nick Clifton <nickc@cygnus.com>
12492
12493 * libc/sys/arm/syscalls.c (_exit): Add comment, noting that exit
12494 code is ignored.
12495
12496 Wed Jun 24 13:56:54 1998 Jeff Johnston <jjohnstn@cygnus.com>
12497
12498 * libc/stdio/tmpnam.c (_tmpnam_r): Changed routine to use
12499 internal static buffer when s is NULL, as prescribed by ANSI.
12500
12501 1998-06-22 Vladimir N. Makarov <vmakarov@cygnus.com>
12502
12503 * libc/sys/h8300hms/Makefile.in (OFILES): malloc.o has been
12504 removed.
12505 * libc/sys/h8300hms/malloc.c: has been removed. Now malloc.c from
12506 libc/stdlib will be used for h8300hms.
12507
12508 Thu Jun 18 16:56:05 1998 Jeff Johnston <jjohnstn@cygnus.com>
12509
12510 * libc/machine/mn10300/strlen.S (_strlen): New optimized assembler
12511 version that can be built either for speed or size.
12512 * libc/machine/mn10300/memset.S (_memset): ditto
12513 * libc/machine/mn10300/memchr.S (_memchr): ditto
12514 * libc/machine/mn10300/memcpy.S (_memcpy): ditto
12515 * libc/machine/mn10300/memcmp.S (_memcmp): ditto
12516 * libc/machine/mn10300/strchr.S (_strchr): ditto
12517 * libc/machine/mn10300/strcmp.S (_strcmp): ditto
12518 * libc/machine/mn10300/strcpy.S (_strcpy): ditto
12519 * libc/machine/mn10300/Makefile.in: Added entries for
12520 memchr.o, memcmp.o, memcpy.o, memset.o, strchr.o,
12521 strcmp.o, strcpy.o, and strlen.o.
12522
12523 Wed Jun 17 12:50:26 1998 Mark Alexander <marka@cygnus.com>
12524
12525 * configure.in: Don't use libc/sys/sysmec for MN10200; it's
12526 been replaced with libgloss/mn10200.
12527
12528 Fri Jun 12 14:34:39 1998 Michael Meissner <meissner@cygnus.com>
12529
12530 * libc/string/strchr.c (strchr): Make s a constant pointer to
12531 avoid warning.
12532
12533 Tue Jun 9 16:29:30 1998 Jason Molenda (crash@bugshack.cygnus.com)
12534
12535 * configure.in (target == arm* or thumb*): Define ARM_RDI_MONITOR
12536 instead of ARM_RDP_MONITOR (sys/libc/arm/crt0.S to assume Angel
12537 board SWIs instead of Demon board SWIs).
12538
12539 Thu Jun 4 12:16:46 1998 Michael Meissner <meissner@cygnus.com>
12540
12541 * libc/string/strncat.c (strncat): Make -Os act the same as
12542 PREFER_SIZE_OVER_SPEED being defined.
12543
12544 Wed Jun 3 17:52:33 1998 Michael Meissner <meissner@cygnus.com>
12545
12546 * libc/string/memchr.c (memchr): Make -Os act the same as
12547 PREFER_SIZE_OVER_SPEED being defined.
12548 * libc/string/memcmp.c (memcmp): Ditto.
12549 * libc/string/memcpy.c (memcpy): Ditto.
12550 * libc/string/memset.c (memset): Ditto.
12551 * libc/string/strcat.c (strcat): Ditto.
12552 * libc/string/strchr.c (strchr): Ditto.
12553 * libc/string/strcmp.c (strcmp): Ditto.
12554 * libc/string/strcpy.c (strcpy): Ditto.
12555 * libc/string/strlen.c (strlen): Ditto.
12556 * libc/string/strncat.c (strncat): Ditto.
12557 * libc/string/strncmp.c (strncmp): Ditto.
12558 * libc/string/strncpy.c (strncpy): Ditto.
12559
12560 Mon Jun 1 15:25:07 1998 Geoffrey Noer <noer@cygnus.com>
12561
12562 * libc/include/sys/itimer.h: remove
12563 * libc/include/sys/time.h: itimer stuff should be here
12564
12565 Mon Jun 1 16:31:29 1998 Jeff Johnston <jjohnstn@cygnus.com>
12566
12567 * libc/stdio/vfprintf.c (cvt): Changed code to look at sign
12568 bit instead of comparing to 0 so -0.0 can be printed correctly.
12569
12570 Sat May 30 09:33:51 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
12571
12572 * libc/stdlib/mprec.c (b2d): Inilialize d in non-VAX case too.
12573
12574 Fri May 29 22:25:10 1998 Geoffrey Noer <noer@cygnus.com>
12575
12576 * libc/include/sys/unistd.h: fix sync() proto
12577 * libc/include/sys/fcntl.h: remove _close which is already
12578 defined in unistd.h.
12579 * libc/include/sys/time.h: add getitimer proto
12580
12581 Fri May 29 16:10:28 1998 Geoffrey Noer <noer@cygnus.com>
12582
12583 * libc/string/strchr.c: convert arg to unsigned char
12584 * libc/include/stdlib.h: add protos for random, srandom
12585 * libc/include/sys/stat.h: add lstat proto
12586 * libc/include/sys/time.h: add setitimer proto
12587 * libc/include/sys/unistd.h: add readlink, symlink protos
12588 * libc/include/process.h: instead of including windows.h and using
12589 HANDLEs in sexec protos, just use void *s. Need to include
12590 sys/types.h.
12591
12592 Fri May 29 03:04:29 1998 Geoffrey Noer <noer@cygnus.com>
12593
12594 * libc/include/sys/fcntl.h: add _close proto for Cygwin32
12595
12596 Thu May 28 16:34:21 1998 Geoffrey Noer <noer@cygnus.com>
12597
12598 * libc/include/process.h: add secure exec protos
12599
12600 Wed May 27 13:54:51 1998 Jeffrey A Law (law@cygnus.com)
12601
12602 * libc/stdlib/dtoa.c (_dtoa_r): Use "double_union" for variables
12603 which are accessed as both doubles and integers.
12604 * libc/stdlib/mprec.c (ulp, b2d, ratio): Likewise.
12605 * libc/stdlib/strtod.c (_strtod_r): Likewise.
12606 * libc/stdlib/mprec.h: Add "union double_union" and change
12607 word0/word1 macros to use it.
12608
12609 Tue May 26 18:04:21 1998 Geoffrey Noer <noer@cygnus.com>
12610
12611 * libc/include/sys/signal.h: add __cplusplus wrapper
12612
12613 Tue May 26 15:10:22 1998 Geoffrey Noer <noer@cygnus.com>
12614
12615 * libc/include/sys/utime.h: new generic file that gets replaced by
12616 libc/sys/SYSDIR/sys/utime.h on systems that support the utime
12617 function.
12618 * sys/cygwin32/sys/utime.h: use _EXFUN in utime proto
12619 * libc/include/time.h: remove duplicate utime proto
12620 * libc/include/utime.h: add comment
12621
12622 Sun May 24 23:56:20 1998 Christopher Faylor <cgf@cygnus.com>
12623
12624 * libc/include/sys/time.h: Add missing include to
12625 allow use of _EXFUN. Remove times function that is
12626 already defined in times.h.
12627
12628 Sun May 24 01:32:14 1998 Christopher Faylor <cgf@cygnus.com>
12629
12630 * libc/include/time.h: Fix typo in tzset.
12631
12632 Fri May 22 17:00:48 1998 Geoffrey Noer <noer@cygnus.com>
12633
12634 * libc/include/sys/time.h: add missing Cygwin32 function protos
12635 * libc/include/sys/unistd.h: ditto
12636 * libc/include/time.h: ditto
12637
12638 Wed May 20 20:35:11 1998 Geoffrey Noer <noer@cygnus.com>
12639
12640 * libc/sys/cygwin32/sys/param.h: add protected NULL def, remove
12641 FIXME.
12642 * libc/include/sys/types.h: add a new __MS_types__ section
12643 to define vm_offset_t, vm_size_t, int32_t et al, register_t,
12644 __BIT_TYPES_DEFINED__.
12645
12646 Wed May 20 18:49:21 1998 Geoffrey Noer <noer@cygnus.com>
12647
12648 * libc/sys/cygwin32/sys/param.h: move here from winsup/include/sys
12649 since it overrides the one in libc/include/sys. Also, start
12650 including types.h.
12651
12652 Wed May 20 14:45:40 1998 Geoffrey Noer <noer@cygnus.com>
12653
12654 * libm/math/Makefile.in: add s_signgam.o to obj list
12655
12656 Tue May 19 11:57:11 1998 Jeff Johnston <jjohnstn@cygnus.com>
12657
12658 * libc/include/sys/reent.h (_REENT_INIT): Initialize current locale to "C".
12659
12660 Mon May 18 22:36:12 1998 Christopher Faylor <cgf@cygnus.com>
12661
12662 * libc/include/sys/signal.h: cygwin32 exports sig{empty,add}set,
12663 so don't use defines.
12664
12665 Mon May 18 19:01:02 1998 Michael Meissner <meissner@cygnus.com>
12666
12667 * libc/sys/d10v/crt0.S: Use correct stab for 16-bit ints.
12668
12669 Sun May 17 18:40:32 1998 Frank Ch. Eigler <fche@cygnus.com>
12670
12671 * libc/stdlib/mbtowc_r.c (_mbtowc_r): Accept a NULL
12672 _current_locale as default locale.
12673
12674 Sat May 16 21:59:59 1998 Bob Manson <manson@charmed.cygnus.com>
12675
12676 * libc/stdlib/mallocr.c (mALLOc): Add explicit tests for
12677 insufficient space in a chunk.
12678
12679 Tue May 12 14:41:01 1998 Jeff Johnston <jjohnstn@cygnus.com>
12680
12681 * configure.in (links): Added check for --enable-newlib-mb configure
12682 option which defines the MB_CAPABLE macro.
12683 * libc/locale/locale.c (_setlocale_r): Added support for setting
12684 LC_CTYPE to "C-JIS", "C-SJIS" or "C-EUCJP", when MB_CAPABLE is
12685 defined.
12686 * libc/stdlib/mbtowc_r.c (_mbtowc_r): New function _mbtowc_r that
12687 implements mbtowc() with multibyte support for JIS, SJIS, and EUC-JP.
12688 * libc/stdlib/wctomb_r.c (_wctomb_r): New function _wctomb_r that
12689 implements wctomb() with multibyte support for JIS, SJIS, and EUC-JP.
12690 * libc/stdlib/mbstowcs_r.c (_mbstowcs_r): New function _mbstowcs_r that
12691 implements mbstowcs() with multibyte support for JIS, SJIS, and EUC-JP.
12692 * libc/stdlib/wcstombs_r.c (_wcstombs_r): New function _wcstomb_r that implements
12693 wcstombs() with multibyte support for JIS, SJIS, and EUC-JP.
12694 * libc/stdlib/Makefile.in: Added new multibyte
12695 routines: _mbtowc_r(), _wctomb_r(), _mbstowcs_r(), and _wcstombs_r().
12696 * libc/include/stdlib.h: Added declarations of _mbtowc_r(), _wctomb_r(),
12697 _mbstowcs_r(), and _wcstombs_r().
12698 * libc/stdlib/mbctype.h: New internal header file that contains macros to test
12699 for JIS, SJIS, and EUC-JP characters.
12700 * libc/stdlib/mblen.c (mblen): Added code to call _mbtowc_r() if
12701 MB_CAPABLE defined.
12702 * libc/stdlib/mbtowc.c (mbtowc): Added code to call _mbtowc_r() if
12703 MB_CAPABLE defined.
12704 * libc/stdlib/wctomb.c (wctomb): Added code to call _wctomb_r() if
12705 MB_CAPABLE defined.
12706 * libc/stdlib/mbstowcs.c (mbstowcs): Added code to call _mbstowcs_r()
12707 if MB_CAPABLE defined.
12708 * libc/stdlib/wcstombs.c (wcstombs): Added code to call _wcstombs_r()
12709 if MB_CAPABLE defined.
12710 * libc/stdio/vfscanf.c (__svfscanf): Added multibyte tolerance
12711 to the format string processing when MB_CAPABLE.
12712 * libc/stdio/vfprintf.c (_VFPRINTF_R): Changed mbtowc() call to
12713 call _mbtowc_r().
12714
12715 Tue May 5 16:07:23 1998 Nick Clifton <nickc@cygnus.com>
12716
12717 The following modifications are courtesy of Anthony Thompson,
12718 athompson@cambridge.arm.com:
12719 * libc/sys/arm/syscalls.c: Initialise and track stdin/out/err for
12720 boith RDI and RDP monitors.
12721 * libc/sys/arm/crt0.S: Call initialise_monitor_handles() for both
12722 RDI and RDP monitors.
12723
12724 Wed Apr 29 15:22:15 1998 Jeff Johnston <jjohnstn@cygnus.com>
12725
12726 * configure.in (links): Added -DHAVE_GETTIMEOFDAY for arm and thumb.
12727 * libc/sys/arm/syscalls.c (_gettimeofday _times): Added functions.
12728 (_swiopen): Fixed open flags to treat write with append as just append.
12729 (_swilseek): Fixed lseek support to properly handle offsets from SEEK_END.
12730 * libc/sys/arm/sys/param.h: New file to override param.h for ARM.
12731
12732 Fri Apr 24 18:00:09 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
12733
12734 * libc/machine/sh/memcpy.S (L_odddst, big endian version):
12735 When needing to transfer an initial 2-byte-word, store as
12736 two single bytes.
12737
12738 Wed Apr 22 17:56:03 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
12739
12740 * libc/sys/sh/crt0.S (start): Handle __SH4_SINGLE_ONLY__ like
12741 __SH3E__ .
12742 * libc/machine/sh/memcpy.S (DELAYED_BRANCHES, SL): Likewise.
12743 * libc/include/machine/ieeefp.h (_DOUBLE_IS_32BITS): Likewise.
12744
12745 Wed Apr 22 12:28:03 1998 Michael Meissner <meissner@cygnus.com>
12746
12747 * configure.in (target_cflags): If --enable-target-optspace, use
12748 -Os to compile newlib rather than -O2. Default to using -Os for
12749 d10v, d30v and m32r if --{enable,disable}-target-optspace is not
12750 used.
12751
12752 Tue Apr 21 23:13:34 1998 Geoffrey Noer <noer@cygnus.com>
12753
12754 * libc/include/machine/setjmp.h: change sigsetjmp and
12755 siglongjmp definitions to use an array instead of a struct
12756 for __CYGWIN32__
12757
12758 Tue Apr 14 11:47:47 1998 Doug Evans <devans@canuck.cygnus.com>
12759
12760 * libc/reent/impure.c (__ATTRIBUTE_IMPURE_DATA__): Fix spelling.
12761
12762 Mon Apr 6 15:05:08 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
12763
12764 * libc/string/strxfrm.c: fix to get correct return value
12765
12766 Wed Apr 1 16:09:05 1998 Nick Clifton <nickc@cygnus.com>
12767
12768 * libc/sys/arm/crt0.S: Set top of RAM to be 0x800000 for PE
12769 builds. Make mode change labels global so that they will be seen
12770 by the debugger.
12771
12772 Wed Mar 18 09:45:10 1998 Nick Clifton <nickc@cygnus.com>
12773
12774 * configure.in (links): Do not use ARM debiugging protocols for PE
12775 builds.
12776
12777 * libc/sys/arm/syscalls.c (_sbrk): Add "_sbrk: " to error
12778 message.
12779
12780 Fri Mar 13 11:24:34 1998 Jeff Johnston <jjohnstn@cygnus.com>
12781
12782 * libc/stdio/findfp.c (__sinit): Made stdout default to
12783 line buffered mode as defined by ANSI.
12784
12785 Tue Mar 10 11:41:26 1997 Bob Manson <manson@charmed.cygnus.com>
12786
12787 * libc/include/sys/itimer.h: New file.
12788
12789 * libc/signal/signal.c (__sigtramp_r,__sigtramp): New functions.
12790
12791 Mon Mar 9 14:19:26 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
12792
12793 * libc/machine/sh/memcpy.S: (_memcpy): Fix for execute/memcpy-1.c
12794 failure.
12795
12796 Fri Feb 27 13:56:10 1998 Michael Meissner <meissner@cygnus.com>
12797
12798 * libc/machine/d30v/setjmp.S (longjmp): Fix order of parallel
12799 insns.
12800
12801 Wed Feb 25 09:29:54 1998 Nick Clifton <nickc@cygnus.com>
12802
12803 * libc/sys/arm/syscalls.c (_open): Add varags to conform to prototype.
12804
12805 Tue Feb 24 18:00:13 1998 Michael Meissner <meissner@cygnus.com>
12806
12807 * libc/machine/d30v/{setjmp.S,Makefile.in}: New files for D30V
12808 support.
12809
12810 * libc/include/machine/setjmp.h: Add D30V support.
12811
12812 * configure.in (d30v-*): Add d30v machine directory.
12813
12814 Mon Feb 23 09:32:58 1998 Mark Alexander <marka@cygnus.com>
12815
12816 * configure.in: Don't use libc/sys/sysmec for MN10300; it's
12817 been replaced with libgloss/mn10300.
12818
12819 Sat Feb 21 17:44:43 1998 Geoffrey Noer <noer@cygnus.com>
12820
12821 * libc/stdlib/mallocr.c: remove __malloc_copy routine now that
12822 it is no longer needed.
12823
12824 Thu Feb 19 16:15:10 1998 Geoffrey Noer <noer@cygnus.com>
12825
12826 * libc/include/sys/signal.h: add sigpause proto for Cygwin32
12827
12828 Wed Feb 18 23:51:08 1998 Geoffrey Noer <noer@cygnus.com>
12829
12830 * libc/stdio/fdopen.c (fdopen): Make all writes go to the end of
12831 the file when O_APPEND is set, wherever the EOF happens to be at
12832 that time.
12833
12834 Wed Feb 18 23:25:02 1998 Geoffrey Noer <noer@cygnus.com>
12835
12836 patch from cgf@bbc.com (Christopher Faylor):
12837 * libc/stdio/freopen.c (freopen): Conform to standard UNIX
12838 convention of closing fp prior to attempting to open the file
12839 argument. This allows correct operation when reopening
12840 stdin/stdout/stderr. Replaces last freopen.c patch.
12841
12842 Wed Feb 18 16:27:40 1998 Geoffrey Noer <noer@cygnus.com>
12843
12844 patch from cgf@bbc.com (Christopher Faylor):
12845 * libc/stdio/freopen.c: freopen was not preserving the fd
12846 of the stream being operated on. This confuses programs that
12847 expect that the handles for stdout and stderr will be 1 and 2.
12848
12849 Mon Feb 16 23:34:07 1998 Andrew Cagney <cagney@b1.cygnus.com>
12850
12851 * libc/sys/d10v/crt0.S (_start): Set PSW{SW} - select SPU.
12852
12853 Thu Feb 12 15:09:20 1998 Ranjith Kumaran <ranjith@cygnus.com>
12854
12855 * libc/sys/go32/longjmp.S: Fix longjmp to not return 0.
12856
12857 Wed Feb 11 17:50:45 1998 Jeff Johnston <jjohnstn@cygnus.com>
12858
12859 * libc/machine/powerpc/setjmp.S (setjmp, longjmp): Alignment code
12860 altered to not use a branch. Also added hint that last
12861 bclr in longjmp will likely result in branch.
12862
12863
12864 Mon Feb 9 03:44:02 1998 Geoffrey Noer <noer@cygnus.com>
12865
12866 * libc/sys/cygwin32/crt0.c: add missing args to main() extern
12867
12868 Fri Feb 6 16:32:32 1998 Nick Clifton <nickc@cygnus.com>
12869
12870 * libc/sys/sysnecv850/crt0.S (_start): Initialise _ctbp even for
12871 v850 builds.
12872
12873 * configure.in: Add -msmall-sld to target_cflags for v850 builds.
12874
12875 Wed Feb 4 16:56:20 1998 Jeff Johnston <jjohnstn@cygnus.com>
12876
12877 * libc/machine/powerpc/setjmp.S (longjmp): Fixed code
12878 that loads FR14 to specify offset of 8 rather than 4
12879 so it loads from offset 96 (where setjmp stored it).
12880
12881 Tue Feb 3 18:08:34 1998 Jeff Johnston <jjohnstn@cygnus.com>
12882
12883 * libc/machine/sh/memcpy.S: (_memcpy): Update to
12884 latest version supplied by customer.
12885 * libc/machine/sh/memset.S (_memset): Ditto.
12886
12887 Mon Feb 2 16:20:39 1998 Nick Clifton <nickc@cygnus.com>
12888
12889 * libc/sys/sysnecv850/Makefile.in (OFILES): Add link.o (for
12890 PR14730).
12891
12892 Mon Feb 2 15:13:26 1998 Geoffrey Noer <noer@cygnus.com>
12893
12894 * libc/include/string.h: remove redefinition of ffs
12895
12896 Wed Jan 28 13:30:14 1998 Geoffrey Noer <noer@cygnus.com>
12897
12898 * libc/include/sys/signal.h: include _ansi.h so _EXFUN is
12899 defined
12900
12901 Wed Jan 28 10:38:34 1998 Jeff Johnston <jjohnstn@cygnus.com>
12902
12903 * libc/machine/tic80/setjmp.S: Adding _setjmp to allow
12904 TI Libraries to link to libc.a
12905
12906 Sat Jan 24 10:15:56 1998 Michael Meissner <meissner@cygnus.com>
12907
12908 * libc/include/sys/fcntl.h (_open,_fcntl): Add prototypes.
12909 * libc/include/sys/stat.h (_{,f}stat): Ditto.
12910 * libc/include/sys/wait.h (_wait): Ditto.
12911 * libc/include/sys/unistd.h (_close,_fork,_getpid): Ditto.
12912 (_link,_lseek,_read,_sbrk,_unlink,_write): Ditto.
12913
12914 Fri Jan 23 11:32:10 1998 Michael Meissner <meissner@cygnus.com>
12915
12916 * libc/machine/d10v/setjmp.S: Change to new ABI. Add simple
12917 minded stabs so function name shows up when running the simulator
12918 with -t.
12919 * libc/sys/d10v/{crt0,trap}.S: Ditto.
12920
12921 Thu Jan 22 15:57:14 1998 Fred Fish <fnf@cygnus.com>
12922
12923 * libc/sys/d10v/trap.S: Change syscalls to use trap 15.
12924 * libc/sys/d10v/crt0.S: Use R6 where we used to use R2.
12925 Use R5 where we used to use R3.
12926
12927 Wed Jan 21 14:22:23 1998 Bill Moyer <billm@cygnus.com>
12928
12929 * libc/stdlib/getopt.c (getopt): replaced __progname
12930 with nargv[0] to improve portability to imbedded systems.
12931
12932 Thu Jan 15 12:32:38 1998 Nick Clifton <nickc@cygnus.com>
12933
12934 * libc/sys/arm/syscalls.c (initialise_angel_handles): Applied
12935 patch supplied by Tont.Thompson@arm.com to fix the creation of the
12936 stdout file.
12937
12938 Wed Jan 14 13:00:19 1998 Ian Lance Taylor <ian@cygnus.com>
12939
12940 * libc/stdio/tmpnam.c (worker): Generate a different file name
12941 each time.
12942
12943 * libc/posix/popen.c (popen): If __CYGWIN32__, and execing /bin/sh
12944 fails, try an execlp for sh.
12945
12946 * host/any (INCLUDES): If target_os is cygwin32, then add a -I
12947 option for the winsup include directory.
12948
12949 Wed Jan 7 17:02:58 1998 Nick Clifton <nickc@cygnus.com>
12950
12951 * libc/sys/arm/syscalls.c: Applied patches for Angel based remote
12952 debugging interface from Tony.Thompson@arm.com.
12953
12954 * libc/sys/arm/crt0.S (_mainCRTStartup): ditto.
12955 * libc/sys/arm/swi.h: ditto.
12956
12957 Tue Jan 6 14:15:10 1998 Geoffrey Noer <noer@cygnus.com>
12958
12959 * libc/sys/cygwin32/sys/dirent.h: add __d_dirhash field to
12960 DIR struct used for readdir hashes.
12961
12962 Thu Jan 1 11:22:22 1998 Jeffrey A Law (law@cygnus.com)
12963
12964 * libc/string/strchr.c: Use "unsigned chars" as necessary.
12965
12966 Wed Dec 31 04:25:30 1997 Jeffrey A Law (law@cygnus.com)
12967
12968 * libc/stdlib/mallocr.c (idx2binblock): Don't lose on 16bit
12969 integer targets.
12970
12971 Sat Dec 13 15:11:06 1997 Ian Lance Taylor <ian@cygnus.com>
12972
12973 * libc/stdlib/mallocr.c (__malloc_copy): New function, compiled if
12974 INTERNAL_NEWLIB and __CYGWIN32__ and DEFINE_MALLOC.
12975 * libc/include/malloc.h: Add extern "C" if __cplusplus.
12976 (__malloc_copy): Declare.
12977
12978 Wed Dec 10 12:15:54 1997 Ian Lance Taylor <ian@cygnus.com>
12979
12980 * libc/stdlib/mallocr.c: If INTERNAL_NEWLIB, include
12981 <sys/config.h>.
12982 (POINTER_UINT): Define.
12983 (DEFAULT_TRIM_THRESHOLD): Mark constants as long.
12984 (MALLOC_ALIGNMENT): Don't define if already defined.
12985 (malloc_extend_top): Cast pointers to POINTER_UINT, not unsigned
12986 long.
12987
12988 Tue Dec 9 19:23:42 1997 Michael Meissner <meissner@cygnus.com>
12989
12990 * libc/string/memset.c (memset): Fiddle with code so that the long
12991 value being stored is not a stack value. Unroll storing longs 4
12992 times.
12993
12994 Tue Dec 9 14:13:18 1997 Jeff Johnston <jjohnstn@cygnus.com>
12995
12996 * Reduce code size for libm modules.
12997 * libm/math/w_sqrt.c (sqrt): Remove call to kernel_standard
12998 and simply move code into sqrt.
12999 * libm/math/wrf_lgamma.c (lgammaf_r): Likewise.
13000 * libm/math/wr_lgamma.c (lgamma_r): Likewise.
13001 * libm/math/wrf_gamma.c (gammaf_r): Likewise.
13002 * libm/math/wr_gamma.c (gamma_r): Likewise.
13003 * libm/math/wf_sinh.c (sinfh): Likewise.
13004 * libm/math/w_sinh.c (sinh): Likewise.
13005 * libm/math/wf_scalb.c (scalbf): Likewise.
13006 * libm/math/w_scalb.c (scalb): Likewise.
13007 * libm/math/wf_remainder.c (remainderf): Likewise.
13008 * libm/math/w_remainder.c (remainder): Likewise.
13009 * libm/math/wf_pow.c (powf): Likewise.
13010 * libm/math/w_pow.c (pow): Likewise.
13011 * libm/math/wf_log10.c (log10f): Likewise.
13012 * libm/math/w_log10.c (log10): Likewise.
13013 * libm/math/wf_log.c (logf): Likewise.
13014 * libm/math/w_log.c (log): Likewise.
13015 * libm/math/w_lgamma.c (lgamma): Likewise.
13016 * libm/math/wf_lgamma.c (lgammaf): Likewise.
13017 * libm/math/wf_jn.c (jnf): Likewise.
13018 * libm/math/w_jn.c (jn): Likewise.
13019 * libm/math/wf_j1.c (j1f): Likewise.
13020 * libm/math/w_j1.c (j1): Likewise.
13021 * libm/math/wf_j0.c (j0f): Likewise.
13022 * libm/math/w_j0.c (j0): Likewise.
13023 * libm/math/wf_hypot.c (hypotf): Likewise.
13024 * libm/math/w_hypot.c (hypot): Likewise.
13025 * libm/math/wf_gamma.c (gammaf): Likewise.
13026 * libm/math/w_gamma.c (gamma): Likewise.
13027 * libm/math/wf_fmod.c (fmodf): Likewise.
13028 * libm/math/w_fmod.c (fmod): Likewise.
13029 * libm/math/wf_exp.c (expf): Likewise.
13030 * libm/math/w_exp.c (exp): Likewise.
13031 * libm/math/wf_cosh.c (coshf): Likewise.
13032 * libm/math/w_cosh.c (cosh): Likewise.
13033 * libm/math/wf_atanh.c (atanhf): Likewise.
13034 * libm/math/w_atanh.c (atanh): Likewise.
13035 * libm/math/wf_atan2.c (atan2f): Likewise.
13036 * libm/math/w_atan2.c (atan2): Likewise.
13037 * libm/math/wf_asin.c (asinf): Likewise.
13038 * libm/math/w_asin.c (asin): Likewise.
13039 * libm/math/wf_acosh.c (acoshf): Likewise.
13040 * libm/math/w_acosh.c (acosh): Likewise.
13041 * libm/math/wf_acos.c (asocf): Likewise.
13042 * libm/math/w_acos.c (acos): Likewise.
13043 * libm/math/wf_sqrt.c (sqrtf): Likewise.
13044 * libm/math/k_standard.c (_k_standard): Don't require SVID behavior
13045 for embedded systems.
13046
13047 Mon Dec 8 12:12:58 1997 Ian Lance Taylor <ian@cygnus.com>
13048
13049 * libc/stdlib/mallocr.c (malloc_extend_top): Add patch from Doug
13050 Lea in case of a foreign sbrk.
13051
13052 Fri Dec 5 23:27:28 1997 Ian Lance Taylor <ian@cygnus.com>
13053
13054 Incorporate Doug Lea's malloc:
13055 * libc/stdlib/mallocr.c: Completely replaced.
13056 * libc/stdlib/malloc.c: Document malloc_usable_size and memalign.
13057 (realloc): Remove.
13058 * libc/stdlib/calloc.c (calloc): Just call _calloc_r.
13059 * libc/stdlib/mstats.c: Document mallinfo, malloc_stats, and
13060 mallopt.
13061 (mallinfo, malloc_stats, mallopt): New functions.
13062 (_mstats_r): Just call _malloc_stats_r.
13063 * libc/stdlib/malign.c: New file.
13064 * libc/stdlib/mlock.c: New file.
13065 * libc/stdlib/msize.c: New file.
13066 * libc/stdlib/mtrim.c: New file.
13067 * libc/stdlib/realloc.c: New file.
13068 * libc/stdlib/valloc.c: New file.
13069 * libc/stdlib/malloc.h: Remove.
13070 * libc/stdlib/callocr.c: Remove.
13071 * libc/stdlib/Makefile.in (OFILES): Add cfreer.o, freer.o,
13072 malign.o, malignr.o, mallinfor.o, malloptr.o, mallstatsr.o,
13073 mlock.o, msize.o, msizer.o, mtrim.o, pvallocr.o, realloc.o,
13074 reallocr.o, valloc.o, vallocr.o.
13075 (CHEWOUT_FILES): Add mlock.def, mstats.def.
13076 (MALLOC_CFLAGS): New variable.
13077 (mallocr.o): New target, build from mallocr.c.
13078 (freer.o, reallocr.o, callocr.o, cfreer.o, malignr.o): Likewise.
13079 (vallocr.o, pvallocr.o, mallinfor.o, mallstatsr.o): Likewise.
13080 (msizer.o, malloptr.o): Likewise.
13081 (malign.o, mlock.o, msize.o, mtrim.o, realloc.o): New targets.
13082 (valloc.o): New target.
13083 * libc/stdlib/stdlib.tex: Include mlock.def and mstats.def.
13084 * libc/include/malloc.h: Declare struct mallinfo, and new
13085 routines.
13086 * libc/include/stdlib.h (cfree): Correct declaration.
13087
13088 Tue Dec 2 10:12:16 1997 Nick Clifton <nickc@cygnus.com>
13089
13090 * libc/include/machine/setjmp.h: Add support for Thumb target.
13091
13092 * libc/include/machine/ieeefp.h: Add support for Thumb target.
13093
13094 * configure.in (links): Add support for Thumb target.
13095
13096 Wed Nov 26 09:56:17 1997 Nick Clifton <nickc@cygnus.com>
13097
13098 * libc/sys/arm/setjmp.S: Updated with version from branch.
13099
13100 Thu Nov 20 01:21:43 1997 Geoffrey Noer <noer@cygnus.com>
13101
13102 * libc/include/stdio.h: add POSIX-required define L_ctermid
13103 for ctermid
13104
13105 Wed Nov 19 16:11:40 1997 Michael Meissner <meissner@cygnus.com>
13106
13107 * configure.in (d30v-*-*): Define ABORT_MESSAGE, SMALL_MEMORY, in
13108 addition to MISSING_SYSCALL_NAMES.
13109
13110 Mon Nov 17 20:05:05 1997 J"orn Rennecke <amylaar@cygnus.co.uk>
13111
13112 * libc/include/sys/config.h: (UINT_MAX, for D10V): Make unsigned.
13113
13114 Mon Nov 10 22:26:55 1997 Geoffrey Noer <noer@cygnus.com>
13115
13116 * libc/include/string.h: change strsignal proto to return
13117 a char *. This eliminates compile problems in gdb resulting
13118 from gdb's definition of strsignal in defs.h.
13119
13120 Mon Nov 10 17:11:08 1997 Geoffrey Noer <noer@cygnus.com>
13121
13122 * libc/sys/cygwin32/sys/utime.h: new (moved here from
13123 winsup/include) so as not to conflict with the one in
13124 libc/include.
13125 * libc/include/string.h: add protos for strsignal, strtosigno
13126
13127 Mon Nov 10 13:49:54 1997 Michael Meissner <meissner@cygnus.com>
13128
13129 * libc/include/sys/config.h: Define __IEEE_BIG_ENDIAN if d30v.
13130
13131 * configure.in (d30v-*-*): Add configuration.
13132
13133 Thu Oct 30 14:01:23 1997 Nick Clifton <nickc@cygnus.com>
13134
13135 * configure.in (links): Add -DARM_RD[P|I]_MONITOR to target_cflags
13136 to select which kind of debug monitor is in use for an ARM target.
13137
13138 * libc/sys/arm/crt0.S: New version: Supports Thumb startups and
13139 Angel and Demon debug monitors. Part of this code was supplied by
13140 Tony Thompson at ARM: athompso@arm.com.
13141
13142 Fri Oct 24 18:57:05 1997 Jeffrey A Law (law@cygnus.com)
13143
13144 * strncat.c (strncat): Don't call strncpy; strncay has the wrong
13145 semantics when the count is greater than the length of the second
13146 source string.
13147
13148 Thu Oct 23 01:37:41 1997 Geoffrey Noer <noer@cygnus.com>
13149
13150 * libc/include/sys/signal.h: reorder CYGWIN32 signal numbers
13151 * libc/include/sys/unistd.h: add protos for usleep, truncate,
13152 truncate and ftruncate take off_t, not size_t
13153
13154 Tue Oct 21 18:42:00 1997 Jim Wilson <wilson@cygnus.com>
13155
13156 * libc/string/strcat.c (strcat): Add missing comment end.
13157 * libc/string/strncat.c (strncat): Likewise.
13158
13159 Tue Oct 21 17:23:34 1997 Nick Clifton <nickc@cygnus.com>
13160
13161 * configure.in (links): Define PREFER_SIZE_OVER_SPEED for v850
13162 targets.
13163 * libc/string/{memchr.c, memcmp.c, memcpy.c}: Add space
13164 optimised version which is selected if PREFER_SIZE_OVER_SPEED is
13165 defined.
13166 * libc/string/{memset.c, strcat.c, strchr.c}: Likewise.
13167 * libc/string/{strcmp.c, strcpy.c, strlen.c}: Likewise.
13168 * libc/string/{strncat.c, strncmp.c, strncpy.c}: Likewise.
13169
13170 Mon Oct 13 15:12:35 1997 Ian Lance Taylor <ian@cygnus.com>
13171
13172 * libc/include/sys/param.h (BIG_ENDIAN): Define if __i386__.
13173 (LITTLE_ENDIAN, BYTE_ORDER): Likewise.
13174
13175 Thu Oct 9 13:54:44 1997 Doug Evans <dje@canuck.cygnus.com>
13176
13177 * libc/machine/i386/setjmp.S: New file.
13178 * libc/machine/i386/Makefile.in: Delete COPYOFILES.
13179 (OFILES): Add setjmp.o.
13180 (setjmp.o): Add rule for.
13181 * configure.in: Don't set machine_dir for *-*-{go32,sco*,cygwin32}.
13182
13183 Tue Oct 7 14:01:29 1997 Bill Moyer (billm@cygnus.com)
13184 Jeffrey A Law (law@cygnus.com)
13185
13186 * libc/string/{memchr.c, memcmp.c, memcpy.c}: Reimplement to run faster.
13187 * libc/string/{memset.c, strcat.c, strchr.c}: Likewise.
13188 * libc/string/{strcmp.c, strcpy.c, strlen.c}: Likewise.
13189 * libc/string/{strncat.c, strncmp.c, strncpy.c}: Likewise.
13190
13191 Mon Oct 6 14:07:59 1997 Nick Clifton <nickc@cygnus.com>
13192
13193 * libc/sys/sysnecv850/Makefile.in (crt0.o trap.o): Explicit
13194 rules.
13195
13196 * libc/include/sys/config.h: Use __v850 to select v850
13197 endianness.
13198
13199 * libc/include/machine/setjmp.h: Use __v850 to select v850 jump
13200 buffer size.
13201
13202 * libc/include/machine/ieeefp.h: Use __v850 to select v850
13203 endianness.
13204
13205 Thu Sep 25 14:11:37 1997 Geoffrey Noer <noer@cygnus.com>
13206
13207 * libc/stdlib/setenv.c: change unsetenv definition to match
13208 style of setenv (with _DEFUN). The string should be a const.
13209 * libc/include/stdlib.h: unsetenv proto should return void.
13210
13211 Tue Sep 23 18:17:20 1997 Geoffrey Noer <noer@cygnus.com>
13212
13213 * libc/include/stdlib.h: define unsetenv proto for __CYGWIN32__
13214
13215 Thu Sep 18 12:50:15 1997 Angela Marie Thomas (angela@cygnus.com)
13216
13217 * libc/stdio/glue.h: remove.
13218 * libc/stdio/findfp.c, libc/stdio/fwalk.c: remove #include "glue.h"
13219 * libc/stdio/Makefile.in: remove glue.h dependencies
13220
13221 Wed Sep 17 17:42:27 1997 Nick Clifton <nickc@cygnus.com>
13222
13223 * libc/sys/sysnecv850/crt0.S: Created V850e version.
13224
13225 Tue Sep 9 10:40:57 1997 Doug Evans <dje@canuck.cygnus.com>
13226
13227 * configure.in (target_cpu): Add `arc'.
13228
13229 Tue Sep 9 10:40:42 1997 Joel Sherrill <joel@OARcorp.com>
13230
13231 * newlib/configure.in (*-*-rtems*): Add -DSIGNAL_PROVIDED and
13232 -DREENTRANT_SYSCALLS_PROVIDED to the target_cflags.
13233 * newlib/libc/include/sys/errno.h: Add ENOTSUP.
13234 * newlib/libc/reent/reent.c: Add _wrapup_reent.
13235 * newlib/libc/sys/rtems/sys/types.h: Avoid redefinitions for go32.
13236
13237 Sun Sep 7 16:41:41 1997 Gavin Koch <gavin@cygnus.com>
13238
13239 * libc/machine/mips/setjmp.S: Handle mips16 builds.
13240
13241 Thu Aug 21 20:05:38 1997 Ian Lance Taylor <ian@cygnus.com>
13242
13243 * libc/include/stdio.h (siprintf): Declare.
13244
13245 Mon Aug 18 11:19:13 1997 Nick Clifton <nickc@cygnus.com>
13246
13247 * libc/sys/sysnecv850/Makefile.in (.c.o): Add rule that includes
13248 TARGET_CFLAGS and NEWLIB_FLAGS.
13249
13250 Mon Aug 18 11:15:43 1997 Nick Clifton <nickc@cygnus.com>
13251
13252 * configure.in (links): Add support for v850ea target.
13253
13254 Mon Aug 18 11:15:43 1997 Nick Clifton <nickc@cygnus.com>
13255
13256 * configure.in (links): Add support for v850e target.
13257
13258 Wed Aug 13 19:16:54 1997 Nick Clifton <nickc@cygnus.com>
13259
13260 * libc/sys/sysnecv850/crt0.S: Remove initial setting of r0 to 0.
13261
13262 Mon Aug 11 15:49:54 1997 Doug Evans <dje@canuck.cygnus.com>
13263
13264 * configure.in (arc-*-*): Add support for.
13265 * libc/include/machine/ieeefp.h (__arc__): Add support for the ARC.
13266
13267 Fri Jul 25 17:37:41 1997 J"orn Rennecke <amylaar@cygnus.co.uk>
13268
13269 * libc/sys/sh/crt0.S (start): Add fpscr initialization for SH4.
13270
13271 Thu Jul 24 18:32:17 1997 Geoffrey Noer <noer@cygnus.com>
13272
13273 * libc/stdlib/bsearch.c (bsearch): remove last unneeded
13274 comparison which accesses invalid memory when the key is
13275 larger than the last member of the array.
13276 * libc/include/machine/setjmp.h: add sigsetjmp, siglongjmp
13277 for CYGWIN32
13278 * libc/include/sys/unistd.h: add _POSIX defines for CYGWIN32
13279
13280 Tue Jul 22 16:03:06 1997 Ian Lance Taylor <ian@cygnus.com>
13281
13282 * libc/include/stdlib.h (realpath): Declare if __CYGWIN32__ and
13283 not _STRICT_ANSI.
13284
13285 Thu Jul 10 15:11:52 1997 Doug Evans <dje@canuck.cygnus.com>
13286
13287 * libm/math/k_standard.c (__kernel_standard): Call fflush(stdout)
13288 ifndef _USE_WRITE, instead of ifdef _USE_WRITE.
13289
13290 Thu Jul 10 16:00:09 1997 Mike Meissner <meissner@cygnus.com>
13291
13292 * libc/machine/tic80/setjmp.S (setjmp,longjmp): Use ld.d and st.d
13293 to load/store memory.
13294
13295 Mon Jul 7 17:38:17 1997 Ian Lance Taylor <ian@cygnus.com>
13296
13297 * libc/include/sys/fcntl.h: Define _O_* symbols with leading
13298 underscores if _WIN32.
13299
13300 Wed Jul 2 10:07:20 1997 Doug Evans <dje@canuck.cygnus.com>
13301
13302 * libm/math/k_standard.c (__kernel_standard): Delete reentrancy
13303 support ifdef _USE_WRITE missed in last change.
13304 From Anders Blomdell <anders.blomdell@control.lth.se>.
13305
13306 Wed Jun 25 10:18:49 1997 Doug Evans <dje@canuck.cygnus.com>
13307
13308 * libc/stdio/tmpnam.c (worker): Handle _open_r being stubbed out.
13309 (_tmpnam_r, _tempnam_r): Update.
13310
13311 Wed Jun 25 00:16:55 1997 Mark Alexander <marka@cygnus.com>
13312
13313 * libc/machine/sparc/setjmp.S: New file.
13314 * libc/machine/sparc/Makefile.in: Add setjmp.
13315 * libc/include/machine/setjmp.h: Increase jmpbuf size for sparc.
13316
13317 Tue Jun 24 23:27:38 1997 Mark Alexander <marka@cygnus.com>
13318
13319 * libc/include/machine/setjmp.h: Use __TIC80__ instead of __tic80__.
13320
13321 Tue Jun 24 14:53:40 1997 Doug Evans <dje@canuck.cygnus.com>
13322
13323 From Joel Sherrill <joel@oarcorp.com>.
13324 * libc/stdlib/getenv.c (_findenv): Avoid dereferencing null `environ'.
13325
13326 Add rtems support. From Joel Sherrill <joel@oarcorp.com>.
13327 * configure.in: Recognize *-*-rtems*.
13328 * libc/sys/rtems/{Makefile.in,crt0.c,dummysys.c}: New files.
13329 * libc/sys/rtems/sys/{features.h,sched.h,siginfo.h,signal.h,
13330 time.h,times.h,types.h}: New files.
13331 * libc/sys/rtems/include/{limits.h,signal.h,time.h}. New files.
13332
13333 Fri Jun 20 11:13:16 1997 Geoffrey Noer <noer@cygnus.com>
13334
13335 patch from sos@prospect.com.ru (Sergey Okhapkin):
13336 * include/sys/wait.h: correct operator precidence bug
13337 in WIFSIGNALED
13338
13339 Wed Jun 18 22:08:27 1997 Geoffrey Noer <noer@cygnus.com>
13340
13341 * libc/include/stdlib.h: remove unsetenv proto since it conflicts
13342 with newlib's unsetenv function
13343 * libc/sys/cygwin32/sys: new directory for includes
13344 * libc/sys/cygwin32/sys/dirent.h: move cygwin32's dirent.h
13345 here from winsup/include/sys
13346
13347 Mon Jun 16 21:02:22 1997 Geoffrey Noer <noer@cygnus.com>
13348
13349 * libc/include/sys/unistd.h: _exit should only be
13350 labelled noreturn when not __CYGWIN32__
13351 * libc/include/stdlib.h: for __CYGWIN32__, add proto for unsetenv
13352 * libc/include/sys/signal.h: add SIGIO to _WIN32 list and
13353 increment NSIG
13354
13355 Thu Jun 12 18:52:41 1997 Ian Lance Taylor <ian@cygnus.com>
13356
13357 * libc/include/sys/time.h: Only define timeval and timezone if
13358 _GNU_H_WINDOWS32_SOCKETS is not defined.
13359 * libc/include/sys/stat.h: If _WIN32, define _S_IFMT, etc.
13360
13361 Wed Jun 11 09:46:26 1997 Jeffrey A Law (law@cygnus.com)
13362
13363 * libc/machine/mn10200/setjmp.S: Implement setjmp/longjmp
13364 * libc/machine/mn10300/setjmp.S: Likewise.
13365
13366 * libc/sys/sysmec/crt0.S: Use "call" instead of "calls" for
13367 the mn10300 (more relaxing opportunities).
13368
13369 Tue Jun 10 17:24:45 1997 Mike Meissner <meissner@cygnus.com>
13370
13371 * configure.in (powerpc*-*-{eabi,elf,linux,rtems,sysv,solaris}):
13372 Build libraries with -mstrict-align.
13373
13374 Fri Jun 6 14:07:59 1997 Ian Lance Taylor <ian@cygnus.com>
13375
13376 * libc/string/strlwr.c: New file.
13377 * libc/string/strupr.c: New file.
13378 * libc/include/string.h: Declare strlwr and strupr.
13379 * libc/string/Makefile.in (OFILES): Add strlwr.o and strupr.o.
13380 (CHEWOUT_FILES): Add strlwr.def and strupr.def.
13381 (strlwr.o, strupr.o): New targets.
13382 * libc/string/strings.tex: Include strlwr and strupr docs.
13383
13384 * libc/include/sys/types.h: Don't define u_char, et. al., if
13385 _GNU_H_WINDOWS32_SOCKETS is defined. Likewise for fd_set,
13386 et. al. Make FD_SETSIZE default 64 rather than 60. Define
13387 _types_fd_set rather than fd_set, and define fd_set as a macro.
13388
13389 * libc/include/malloc.h: New file.
13390
13391 * libc/include/string.h: Define strcmpi, stricmp, strncmpi, and
13392 strnicmp if they are not already defined.
13393
13394 * libc/include/time.h: If __CYGWIN32__, declare tzset and define
13395 _timezone, _daylight, and _tzname.
13396
13397 Wed Jun 4 12:51:16 1997 Doug Evans <dje@canuck.cygnus.com>
13398
13399 * configure.in: Sort all configuration tables.
13400
13401 From Joel Sherrill <joel@oarcorp.com>
13402 * Makefile.in (stmp-targ-include): Copy $(sys_dir)/include/*.h.
13403
13404 Tue Jun 3 14:47:46 1997 Ian Lance Taylor <ian@cygnus.com>
13405
13406 * libc/include/sys/signal.h: Don't include <sys/types.h>. Just
13407 use int when declaring kill.
13408
13409 * libc/include/sys/timeb.h: New file.
13410
13411 Mon Jun 2 12:06:58 1997 Geoffrey Noer <noer@cirdan.cygnus.com>
13412
13413 * libc/include/sys/time.h: add itimer support for Cygwin32
13414
13415 Mon May 19 11:56:46 1997 Mike Meissner <meissner@cygnus.com>
13416
13417 * libc/stdlib/abort.c (abort): If ABORT_MESSAGE is defined, write
13418 out a message that abort was called to stderr.
13419
13420 Fri May 16 15:02:59 1997 Bob Manson <manson@charmed.cygnus.com>
13421
13422 * libc/sys/sysmec/fstat.c (_fstat): Set st_blksize to 4096
13423 so that libio doesn't freak.
13424
13425 * libc/sys/sysmec/sbrk.c (_sbrk): The argument is a size_t, not
13426 int.
13427
13428 * libc/stdlib/mallocr.c (_morecore_r): Use size_t for
13429 memory sizes, not int.
13430
13431 Wed May 14 21:16:58 1997 Bob Manson <manson@charmed.cygnus.com>
13432
13433 * libm/math/ef_hypot.c: Use long constants where
13434 appropriate.
13435 * libm/math/ef_sqrt.c: Ditto.
13436
13437 * libc/sys/sysmec/times.c(_times): Change to times.
13438
13439 * libc/sys/sysmec/read.c(_read): The third argument is
13440 size_t.
13441 * libc/sys/sysmec/write.c (_write): Ditto.
13442
13443 * libc/sys/sysmec/lseek.c: Include unistd.h for off_t.
13444 (_lseek): It's off_t for the second argument.
13445
13446 Wed May 14 15:23:36 1997 Mike Meissner <meissner@cygnus.com>
13447
13448 * libc/include/sys/config.h (__IEEE_LITTLE_ENDIAN): Define here,
13449 as well as machine/ieeefp.h.
13450
13451 Thu May 8 15:47:25 1997 Geoffrey Noer <noer@cygnus.com>
13452
13453 * libc/include/sys/signal.h: add signal protos for winsup
13454 functions (when __CYGWIN32__), include types.h
13455 * libc/include/sys/types.h: Change __go32_types__ internal
13456 define to __MS_types__ since it's used for more than just
13457 GO32 configs. Define this if GO32, __MSDOS__, or _WIN32 are
13458 defined.
13459 * libc/include/sys/unistd.h: add ftruncate proto for
13460 winsup functions (when __CYGWIN32__)
13461
13462 Fri Apr 25 10:10:16 1997 Doug Evans <dje@canuck.cygnus.com>
13463
13464 * libc/sys/h8300hms/sbrk.c (stack_ptr): Add definition.
13465
13466 Thu Apr 24 15:46:51 1997 Mike Stump <mrs@cygnus.com>
13467
13468 * libc/include/machine/setjmp.h: Add tic80 support.
13469 * libc/machine/tic80/setjmp.S: Likewise.
13470
13471 Tue Apr 22 16:54:40 1997 Geoffrey Noer <noer@pizza.cygnus.com>
13472
13473 * libc/sys/cygwin32/crt0.c: Add reference to main() so we can
13474 link programs from libraries only (such as in the X11
13475 distribution)
13476
13477 Mon Apr 21 15:02:12 1997 Fred Fish <fnf@cygnus.com>
13478
13479 * libc/sys/arm/syscalls.c (signal): Remove stub, signal()
13480 supplied elsewhere in newlib.
13481
13482 Mon Apr 14 16:25:55 1997 Ian Lance Taylor <ian@cygnus.com>
13483
13484 * Makefile.in (INSTALL): Change install.sh to install-sh.
13485
13486 Fri Apr 11 17:04:02 1997 Jason Molenda (crash@godzilla.cygnus.co.jp)
13487
13488 * README: update WWW address for on-line documentation.
13489
13490 Wed Apr 9 00:38:13 1997 Geoffrey Noer <noer@cygnus.com>
13491
13492 * libc/include/sys/signal.h: for _WIN32, define SIGCONT and
13493 increment NSIG
13494
13495 Mon Apr 7 23:54:00 1997 Jeffrey A Law (law@cygnus.com)
13496
13497 * libc/sys/sysmec/crt0.S: Update for new calling conventions on the
13498 mn10300.
13499 * libc/sys/sysmec/trap.S: Don't compare a register to itself.
13500
13501 Tue Mar 25 08:47:43 1997 Jeffrey A Law (law@cygnus.com)
13502
13503 * libc/sys/arm/syscalls.c: Fix/add stack/heap collision detection.
13504 * libc/sys/d10v/syscalls.c: Likewise.
13505 * libc/sys/h8300hms/sbrk.c: Likewise.
13506 * libc/sys/h8500hms/syscalls.c: Likewise.
13507 * libc/sys/m88kbug/syscalls.c: Likewise.
13508 * libc/sys/sh/syscalls.c: Likewise.
13509 * libc/sys/sysmec/sbrk.c: Likewise.
13510 * libc/sys/sysnecv850/sbrk.c: Likewise.
13511 * libc/sys/w65/syscalls.c: Likewise.
13512 * libc/sys.tex: Update sbrk sample code to include stack/heap collision.
13513
13514 Tue Mar 18 14:14:34 1997 Jeffrey A Law (law@cygnus.com)
13515
13516 * libc/sys/sysmec/trap.S: Use "syscall" to trigger an
13517 emulated syscall instead of "trap".
13518
13519 Fri Mar 14 11:26:13 1997 Michael Meissner <meissner@cygnus.com>
13520
13521 * libc/sys/d10v/trap.S (__trap0): Use trap 15 for system calls,
13522 not trap 0.
13523
13524 Sun Mar 9 23:27:04 1997 Doug Evans <dje@seba.cygnus.com>
13525
13526 * configure.in (m32r-*-*): Add -msdata=sdata to target_cflags.
13527
13528 Sat Mar 8 09:05:01 1997 Fred Fish <fnf@cygnus.com>
13529
13530 * libc/machine/arm/Makefile.in: Fix comment, is for "arm"
13531 not "sh".
13532 * libc/machine/m32r/Makefile.in: Fix comment, is for "m32r"
13533 not "d10v".
13534 * libc/sys/tic80/crt0.c: New file for TIc80.
13535 * libc/sys/tic80/Makefile.in: New file for TIc80.
13536 * libc/machine/tic80/Makefile.in: New file for TIc80.
13537
13538 Wed Mar 5 11:32:12 1997 J.T. Conklin <jtc@cygnus.com>
13539
13540 * libc/machine/sh/memcpy.S: New file.
13541 * libc/machine/sh/memset.S: New file.
13542 * libc/machine/sh/Makefile.in (OFILES): Add memcpy.o and memset.o
13543
13544 Thu Feb 27 16:27:55 1997 Fred Fish <fnf@cygnus.com>
13545
13546 * libc/include/machine/ieeefp.h (_IEEE_LITTLE_ENDIAN): Define
13547 for TIc80.
13548
13549 Wed Feb 26 13:43:39 1997 Jeffrey A Law (law@cygnus.com)
13550
13551 * libc/sys/sysmec/crt0.S: Handle new calling conventions for
13552 the mn10200.
13553
13554 Wed Feb 26 07:11:03 1997 Michael Meissner <meissner@cygnus.com>
13555
13556 * libc/machine/powerpc/setjmp.S (longjmp): Correct return status
13557 (patch from andrew@pogo.WV.TEK.COM).
13558
13559 Fri Feb 14 11:49:28 1997 Doug Evans <dje@canuck.cygnus.com>
13560
13561 * libc/machine/m32r/setjmp.S (setjmp): Save r12.
13562 (longjmp): Restore r12. Fix code that handles returning 1 if passed 0.
13563
13564 Mon Feb 10 10:02:34 1997 Fred Fish <fnf@cygnus.com>
13565
13566 * configure.in: Add cases for "tic80" to set machine_dir,
13567 sys_dir, and syscall_dir.
13568
13569 Sun Feb 2 17:57:15 1997 Geoffrey Noer <noer@cygnus.com>
13570
13571 * libc/sys/cygwin32/crt0.c: initialize floating pt registers
13572
13573 Wed Jan 29 15:57:38 1997 Geoffrey Noer <noer@cygnus.com>
13574
13575 * libc/include/math.h: avoid conflicts with ANSI C++ <exception>
13576
13577 Mon Jan 27 12:50:01 1997 Doug Evans <dje@seba.cygnus.com>
13578
13579 * libc/machine/m32r/setjmp.S: Use proper comment delimiter.
13580 Use proper constant prefix.
13581
13582 Fri Jan 24 10:59:04 1997 Jeffrey A Law (law@cygnus.com)
13583
13584 * libc/sys/sysmec/*.c: Don't cast args to syscall to integers,
13585 that loses on the mn10200 where ints and pointers are different
13586 sizes.
13587
13588 Tue Jan 14 13:29:55 PST 1997 Jeremy Allison <jra@cygnus.com>
13589
13590 * configure.in: Added -DSIGNAL_PROVIDED to cygwin32
13591 target as signal is provided in winsup.
13592
13593 Tue Jan 14 11:10:13 1997 Jeremy Allison <jra@cygnus.com>
13594
13595 * libc/include/sys/process.h: Corrected const definitions
13596 in spawn functions. Added cwait.
13597
13598 Thu Jan 2 12:22:41 1997 Jeffrey A Law (law@cygnus.com)
13599
13600 * libc/include/machine/ieeefp.h: mn10200 uses 16bit ints and 32bit
13601 doubles.
13602 * libc/include/sys/config.h: Similarly.
13603
13604 Tue Dec 31 18:36:14 1996 Michael Meissner <meissner@tiktok.cygnus.com>
13605
13606 * configure.in (sparc-sun-sunos*): Add -DSIGNAL_PROVIDED to the
13607 target_cflags.
13608 (i[3456]86-*-sco*): Ditto.
13609
13610 * libc/signal/Makefile.in (OFILES): Add signal.o.
13611 (CFILES): Add signal.c.
13612
13613 * libc/signal/raise.c (_raise_r): Only compile code if
13614 SIGNAL_PROVIDED is defined.
13615
13616 * libc/signal/signal.c: Redo whole file so that it works with
13617 current newlib. Use _kill_r if no signal handler provided.
13618
13619 * libc/sys/{go32,sparc64,sysmec}/Makefile.in: Delete raise and
13620 signal stubs.
13621 * libc/sys/sysvnecv70/Makefile.in: Ditto.
13622 * libc/sys/sysnecv850/Makefile.in: Ditto.
13623
13624 * libc/sys/{go32,sparc64}/signal.c: Delete, stub no longer used.
13625 * libc/sys/sysmec/{raise,signal}.c: Ditto.
13626 * libc/sys/sysvnecv70/signal.s: Ditto.
13627 * libc/sys/sysnecv850/raise.c: Ditto.
13628
13629 * libc/sys/sysnecv850/kill.c (_kill): Encode signal # so that
13630 simulator and debugger can tell the difference between a signal
13631 being raised and an exit system call.
13632
13633 * NEWS: Document software signals being provided.
13634
13635 Mon Dec 23 11:54:19 1996 Michael Meissner <meissner@tiktok.cygnus.com>
13636
13637 * libc/reent/impure.c (_REENT_ATTR): Delete in favor of
13638 __ATTRIBUTE_IMPURE_PTR__. Move PowerPC definition to
13639 include/sys/config.h.
13640 (impure_data): Use __ATTRIBUTE_IMPURE_DATA__ for attributes.
13641 Change from 'inpure_data'.
13642 (_impure_ptr): Use __ATTRIBUTE_IMPURE_PTR__ for attributes. Use
13643 &impure_data, not &inpure_data.
13644
13645 * libc/include/sys/config.h (__ATTRIBUTE_IMPURE_PTR__): If PowerPC
13646 and and System V ABI, define so that _impure_ptr lives in the
13647 .sdata section.
13648
13649 Sun Dec 22 23:33:05 1996 Michael Meissner <meissner@tiktok.cygnus.com>
13650
13651 * libc/include/sys/reent.h (__ATTRIBUTE_IMPURE_PTR__): Define as
13652 nothing if not defined.
13653 (_impure_ptr): Use __ATTRIBUTRE_IMPURE_PTR__, so a machine can set
13654 its attributes.
13655
13656 * libc/include/sys/config.h (__ATTRIBUTE_IMPURE_PTR__):
13657
13658 Wed Dec 18 10:12:04 1996 Jeffrey A Law (law@cygnus.com)
13659
13660 * libc/sys/sysmec/crt0.S: Fix mn10200 stuff.
13661 * libc/sys/sysmec/trap.s: Handle mn10200 too.
13662 * libc/machine/mn10200/setjmp.S: Fix mn10200 stuff.
13663
13664 Mon Dec 16 10:05:36 1996 Jeffrey A Law (law@cygnus.com)
13665
13666 * libc/sys/sysmec/crt0.S: Handle mn10200 too.
13667
13668 Fri Dec 13 11:05:20 1996 Jeremy Allison <jra@cygnus.com>
13669
13670 * libc/include/sys/errno.h: Added net errno's.
13671
13672 Wed Dec 11 16:24:25 1996 Michael Meissner <meissner@tiktok.cygnus.com>
13673
13674 * libc/misc/ffs.c: New file to support ffs function for GCC test
13675 gcc.c-torture/execute/960909-1.c.
13676
13677 * libc/misc/Makefile.in ({O,CHEWOUT_}FILES): Add ffs.
13678
13679 Sat Dec 7 10:12:37 1996 Jeffrey A Law (law@cygnus.com)
13680
13681 * libc/sys/sysmec/crt0.S: Handle underscore prefix.
13682 * libc/sys/sysmec/trap.S: Likewise.
13683
13684 Fri Dec 6 15:08:49 1996 Jim Wilson <wilson@cygnus.com>
13685
13686 * configure.in (mips*vr4300*-*-*): Delete use of sys/vr4300.
13687 * libc/sys/vr4300/{Makefile.in,crt0.S,syscalls.c}: Delete.
13688
13689 Wed Dec 4 16:25:27 1996 Jeffrey A Law (law@cygnus.com)
13690
13691 * libc/sys/sysmec/signal.c: Dummy file.
13692 * libc/sys/sysmec/Makefile.in: Build it.
13693
13694 Wed Nov 27 13:10:18 1996 Ian Lance Taylor <ian@cygnus.com>
13695
13696 * libc/machine/mips/machine/regdef.h: Define pc as $pc for
13697 mips16.
13698
13699 Mon Nov 25 09:58:28 1996 Jeffrey A Law (law@cygnus.com)
13700
13701 * libc/sys/sysmec/{crt0.S,trap0.S}: Actually try to implement
13702 c-startup and simulator traps.
13703
13704
13705 * libc/sys/sysmec/crt0.S: Remove bogus '_' symbol prefixing
13706 * libc/sys/sysmec/trap0.S: Likewise.
13707
13708 Sat Nov 23 09:01:03 1996 Michael Meissner <meissner@tiktok.cygnus.com>
13709
13710 * libc/stdlib/mallocr.c (ROUND_TO): If SMALL_MEMORY, set to 0x7 to
13711 round to double word alignment.
13712 (_morecore_r): Combine rounding up pointers to both ROUND_TO and 8
13713 byte alignment.
13714
13715 * libc/include/sys/config.h (__IEEE_BIG_ENDIAN): Define if d10v.
13716
13717 * libc/sys/d10v/syscalls.c (_sbrk): Add better checks for running
13718 out of memory.
13719
13720 Mon Nov 18 13:08:26 1996 Jeffrey A Law (law@cygnus.com)
13721
13722 * configure.in: Handle mn10200 and mn10300.
13723 * libc/include/machine/{ieeefp.h,setjmp.h}: Likewise.
13724 * libc/include/sys/config.h: Likewise.
13725 * libc/sys/sysmec: New directory for mec stuff.
13726 * libc/machine/mn10300: New directory for mn10300 stuff.
13727 * libc/machine/mn10200: Similarly for mn10200 stuff.
13728
13729 Fri Nov 15 16:41:41 1996 Doug Evans <dje@canuck.cygnus.com>
13730
13731 * libc/sys/arm/crt0.S: Use .text, not .section .text.
13732 * libc/sys/arm/syscalls.c: Rewrite to set errno properly.
13733
13734 * libc/include/sys/types.h (_ST_INT32): New macro, local to file.
13735 (nlink_t): Change type from unsigned int to unsigned short.
13736 (mode_t): Ensure size is 32 bits even if int is 16.
13737 * libc/include/sys/stat.h (st_nlink): Change type to nlink_t.
13738 (st_spare[123]): Change type from int to long.
13739
13740 Fri Nov 15 11:41:50 1996 Michael Meissner <meissner@tiktok.cygnus.com>
13741
13742 * libc/sys/d10v/syscalls.c (_sbrk): Align initial heap_end to 8
13743 byte boundary.
13744
13745 * configure.in (d10v*): Define SMALL_MEMORY.
13746
13747 Mon Nov 11 10:30:44 1996 Michael Meissner <meissner@tiktok.cygnus.com>
13748
13749 * configure.in (powerpc*-{eabi,elf,linux,rtem,sysv,solaris}*): Add
13750 -mrelocatable-lib and -mno-eabi flags.
13751
13752 Mon Nov 11 09:01:39 1996 Jeffrey A Law (law@cygnus.com)
13753
13754 * libc/machine/h8300/memcpy.S: Fix comments to reflect reality.
13755 Fix handling of mis-aligned source operand when both the
13756 destination & length are properly aligned.
13757
13758 Wed Oct 30 09:41:11 1996 Jeffrey A Law (law@cygnus.com)
13759
13760 * libc/sys/sysnecv850/Makefile.in (OFILES): Add
13761 times.o, time.o and gettime.o
13762 * libc/sys/sysnecv850/{time.c, times.c, gettime.c}: New files.
13763 * libc/sys/sysnecv850/sys/syscall.h: Add SYS_times and
13764 SYS_gettimeofday.
13765
13766 Tue Oct 29 13:40:09 1996 Jeffrey A Law (law@cygnus.com)
13767
13768 * libc/sys/sysnecv850/Makefile.in (OFILES): Add access.o
13769 * libc/sys/sysnecv850/access.c: New file.
13770
13771 Mon Oct 21 19:47:02 1996 Ian Lance Taylor <ian@cygnus.com>
13772
13773 * libc/sys/vr4300/Makefile.in (clean): Remove $(OFILES).
13774
13775 * libc/stdlib/mprec.h (word0, word1): Use __uint32_t, not unsigned
13776 long.
13777
13778 Mon Oct 21 14:43:07 1996 Jeffrey A Law (law@cygnus.com)
13779
13780 * libc/sys/sysnecv850/crt0.S: Initialize ep and gp registers.
13781
13782 Thu Oct 17 11:47:16 1996 Doug Evans <dje@seba.cygnus.com>
13783
13784 * libc/include/machine/{ieeefp.h,setjmp.h}: Add m32r support.
13785 * libc/include/sys/config.h: Add m32r support.
13786
13787 Wed Oct 16 23:08:05 1996 Jeffrey A Law (law@cygnus.com)
13788
13789 * libc/sys/sysnecv850/v850.ld: Remove. It doesn't belong
13790 here.
13791
13792 Wed Oct 16 21:18:07 1996 Mark Alexander <marka@cygnus.com>
13793
13794 * libc/include/machine/setjmp.h: Add D10v support.
13795
13796 Tue Oct 15 22:28:26 1996 Jeffrey A Law (law@cygnus.com)
13797
13798 * configure.in: Configure the "libc/syscalls" directory for
13799 the v850.
13800
13801 * libc/sys/sysnecv850/{close.c, execve.c, fork.c}: Add missing '_'.
13802 * libc/sys/sysnecv850/{fstat.c, getpid.c, kill.c}: Likewise.
13803 * libc/sys/sysnecv850/{lseek.c, open.c, read.c}: Likewise.
13804 * libc/sys/sysnecv850/{sbrk.c, stat.c, unlink.c}: Likewise.
13805 * libc/sys/sysnecv850/{wait.c, write.c}: Likewise.
13806
13807 Tue Oct 15 16:24:39 1996 Stu Grossman (grossman@critters.cygnus.com)
13808
13809 * libc/sys/sysnecv850/crt0.S (start): Allocate spill space on
13810 stack for args for main and other routines. Zero out args for
13811 main.
13812
13813 * libc/sys/sysnecv850/v850.ld: New. Linker script to layout memory
13814 correctly.
13815
13816 Tue Oct 15 11:51:42 1996 Michael Meissner <meissner@tiktok.cygnus.com>
13817
13818 * libc/stdio/findfp.c (std): Remove extraneous ';' after
13819 function.
13820
13821 * libc/sys/d10v/sys/syscall.h (SYS_kill): Add.
13822
13823 * libc/sys/d10v/{syscalls.c,trap.S} (_kill,_getpid): Make these
13824 real system calls now.
13825
13826 * libc/stdio/setvbuf (setvbuf): Cast pointers to _POINTER_INT
13827 before casting them to int.
13828 * libc/stdio/tmpnam.c (_tempnam_r): Ditto.
13829
13830 * libc/stdlib/mallocr.c (_morecore_r): Use _POINTER_INT when
13831 aligning pointer.
13832 * libc/string/memset.c (memset): Ditto.
13833
13834 * libc/stdio/vfscanf.c (__svfscanf): When converting to pointer,
13835 first convert ints to _POINTER_INT to eliminate GCC warning.
13836
13837 * libc/stdio/vfprintf.c (_vfprintf_r): Use _POINTER_INT when
13838 processing %p.
13839
13840 * libm/math/ef_scalb.c (__ieee754_scalbf): Cut down range to 32000
13841 from 65000 if ints are only 16 bits.
13842
13843 * libm/math/sf_scalbn.c (scalbnf): Cut down overflow test to 30000
13844 from 50000 if ints are only 16 bits.
13845
13846 * libc/include/sys/config.h (_POINTER_INT): New macro, to give an
13847 int type that is the same size as a pointer.
13848
13849 * libc/misc/dprintf.c (__dprintf): Use _POINTER_INT when
13850 processing %p.
13851 (get_number): Explicitly cast number to long before shifting by 16
13852 or 24, in case ints are short.
13853
13854 * libc/include/sys/config.h (_POINTER_INT): Define as short.
13855
13856 Wed Oct 9 16:54:32 1996 Jeremy Allison <jra@cygnus.com>
13857
13858 * libc/string.h: Added ffs, removed swab.
13859 * libc/sys/errno.h: Added EOPNOTSUPP.
13860 * libc/sys/unistd.h: Added swab.
13861
13862 Thu Oct 3 17:08:50 1996 Jeremy Allison <jra@cygnus.com>
13863
13864 * libc/include/sys/stat.h: Added fchmod.
13865 * libc/include/sys/unistd.h: Added fsync.
13866
13867 Tue Oct 1 17:34:08 1996 Jeremy Allison <jra@cygnus.com>
13868
13869 * libc/include/sys/errno.h: Added defines for EPFNOSUPPORT (96)
13870 and ECONNRESET (104) for cygwin32.
13871
13872 Tue Oct 1 16:24:05 1996 Gavin Koch <gavin@cygnus.com>
13873
13874 * libc/sys/sysnecv850/_exit.c: added _do_dtors to
13875 do the static destructors.
13876
13877 Mon Sep 30 15:59:05 1996 Stu Grossman (grossman@critters.cygnus.com)
13878
13879 * libc/sys/sysnecv850/trap.S: Change I/O to use trap 31.
13880
13881 Mon Sep 30 12:02:50 1996 Doug Evans <dje@canuck.cygnus.com>
13882
13883 * libc/machine/m32r/{Makefile.in,setjmp.S}: New files.
13884 * configure.in: Recognize m32r-*-*.
13885
13886 Mon Sep 30 00:34:41 1996 James G. Smith <jsmith@cygnus.co.uk>
13887
13888 * libc/sys/arm/trap.S (__rt_stkovf_split_big,
13889 __rt_stkovf_split_small): Added default software stack overflow
13890 handlers, which just call SWI_Exit.
13891 * libc/sys/arm/crt0.S (_mainCRTStartup): Simple software stack
13892 limit initialisation.
13893
13894 Fri Sep 27 13:08:03 1996 Mark Alexander <marka@cygnus.com>
13895
13896 * libc/sys/d10v/{trap.S,sys/syscall.h}: Add time() function.
13897
13898 Fri Sep 27 12:32:00 1996 Jeremy Allison <jra@cygnus.com>
13899
13900 * libc/include/sys/types.h: Added ssize_t definition.
13901
13902 Wed Sep 25 14:52:18 1996 Michael Meissner <meissner@tiktok.cygnus.com>
13903
13904 * libc/machine/d10v/setjmp.S: Use ';' for comments.
13905 * libc/sys/d10v/{crt0.S,trap.S}: Ditto.
13906
13907 * libc/machine/d10v/setjmp.S (longjmp): Use exef0t || instead of
13908 branch around a single ldi instruction.
13909
13910 * libc/sys/d10v/crt0.S (_start): Use auto-increment to zero bss.
13911 Call exit, instead of just issuing a stop instruction.
13912
13913 Sun Sep 22 17:26:55 1996 Michael Meissner <meissner@tiktok.cygnus.com>
13914
13915 * libc/sys/d10v/{trap.S,syscalls.c}: Add -mint32 support.
13916
13917 Fri Sep 20 13:23:12 1996 Michael Meissner <meissner@tiktok.cygnus.com>
13918
13919 * libc/stdlib/mprec.h: Explicitly declare all large constants as
13920 longs, and then cast them to __uint32_t.
13921
13922 * libc/include/sys/config.h: Protect against multiple inclusions.
13923
13924 Tue Sep 17 13:10:33 1996 Mark Alexander <marka@cygnus.com>
13925
13926 * configure.in (d10v*): Set syscall_dir.
13927
13928 Sun Sep 15 10:41:59 1996 Mark Alexander <marka@cygnus.com>
13929
13930 * libc/sys/d10v/crt0.S: Set stack pointer.
13931
13932 Thu Sep 12 13:02:38 1996 Mark Alexander <marka@cygnus.com>
13933
13934 * libc/sys/d10v/{trap.S, syscalls.c}: Rewrite most system calls
13935 in assembly for efficiency. Change calling convention to allow
13936 long ints to be returned.
13937
13938 Wed Sep 11 10:28:18 1996 Michael Meissner <meissner@tiktok.cygnus.com>
13939
13940 * libc/machine/v850/Makefile.in (setjmp.o): Fix dependency.
13941
13942 Thu Sep 5 19:23:06 1996 Doug Evans <dje@canuck.cygnus.com>
13943
13944 * libc/posix/execvp.c (execvp): Don't search PATH if file has '/'.
13945 Handle empty entries in $PATH.
13946
13947 Tue Sep 03 18:15:02 1996 Mark Alexander <marka@cygnus.com>
13948
13949 * libc/machine/d10v/setjmp.S: Make it really work.
13950
13951 Tue Sep 3 12:16:26 1996 Ian Lance Taylor <ian@cygnus.com>
13952
13953 * libc/sys/sh/crt0.S: If __ELF__, use ELF section attributes for
13954 the .stack section.
13955
13956 Tue Sep 3 10:08:45 1996 Jeffrey A Law (law@cygnus.com)
13957
13958 * sys/sysnecv850/sys/file.h: Remove.
13959 * sys/sysnecv850/sys/syscall.h: New file.
13960 * sys/sysnecv850/{misc.c,syscalls.c,malloc.c}: Deleted.
13961 * sys/sysnecv850/{chmod.c, chown.c, close.c, creat.c} New files.
13962 * sys/sysnecv850/{execv.c, execve.c, fork.c, fstat.c} New files.
13963 * sys/sysnecv850/{getpid.c, isatty.c, kill.c, lseek.c} New files.
13964 * sys/sysnecv850/{open.c, pipe.c, raise.c, read.c} New files.
13965 * sys/sysnecv850/{stat.c, unlink.c, utime.c, wait.c} New files.
13966 * sys/sysnec850/trap.S: New file.
13967 * sys/sysnecv850/{_exit.c, write.c}: Use new TRAP0 mechanism for
13968 syscalls.
13969 * sys/sysnecv850/crt0.S: Use cmp/bl, not tst/bz.
13970 * sys/sysnec850/sbrk.c: New version.
13971
13972 Sun Sep 1 20:08:27 1996 Jeffrey A Law (law@cygnus.com)
13973
13974 * sys/sysnecv850/crt0.S: Fix order of comparison args. Loop
13975 as long as r6 is less than r7.
13976
13977 Sun Sep 1 13:54:19 1996 Ian Lance Taylor <ian@cygnus.com>
13978
13979 * Makefile.in (mostlyclean): Separate from clean target. Don't
13980 remove *.a or targ-include.
13981 * libc/machine/sparc/Makefile.in (mostlyclean): New target.
13982
13983 Sun Sep 1 11:35:26 1996 Michael Meissner <meissner@tiktok.cygnus.com>
13984
13985 * libc/include/machine/ieeefp.h (_DOUBLE_IS_32BITS): Define for
13986 d10v.
13987 (__SMALL_BITFIELDS): Ditto.
13988
13989 * libc/include/sys/config.h (_DOUBLE_IS_32BITS): Define for d10v.
13990
13991 Sat Aug 31 16:42:36 1996 Jeffrey A Law (law@cygnus.com)
13992
13993 * libc/sys/sysnecv850/misc.c (raise, getpid, kill): Remove '_'
13994 prefix.
13995
13996 * libc/sys/sysnecv850/sbrk.c (sbrk): Remove '_' prefix.
13997 * libc/sys/sysnecv850/syscalls.c (read, lseek, close): Likewise.
13998 * libc/sys/sysnecv850/syscalls.c (fstat, open, close): Likewise.
13999 * libc/sys/sysnecv850/write.c (write): Likewise.
14000
14001 * libc/sys/sysnecv850/crt0.S: Don't try to zero out an empty
14002 .bss.
14003
14004 Fri Aug 30 11:18:45 1996 Michael Meissner <meissner@tiktok.cygnus.com>
14005
14006 * libc/include/sys/config.h: Define INT_MAX, UINT_MAX
14007 appropriately for D10V, depending on -mint16/-mint32.
14008
14009 Thu Aug 29 16:09:37 1996 Mark Alexander <marka@cygnus.com>
14010
14011 * configure.in: Add cases for D10V.
14012
14013 Thu Aug 29 17:03:23 1996 Michael Meissner <meissner@tiktok.cygnus.com>
14014
14015 * configure.in (i[345]86-*-*): Recognize i686 for pentium pro.
14016
14017 Wed Aug 28 21:05:52 1996 Jeffrey A Law (law@cygnus.com)
14018
14019 * libc/include/machine/ieeefp.h: Fix typo.
14020
14021 Wed Aug 28 19:47:55 1996 Mark Alexander <marka@cygnus.com>
14022
14023 * libc/sys/d10v: New directory for D10V stuff.
14024 * libc/include/machine/ieeefp.h: Add D10V defines.
14025
14026 Mon Aug 26 13:34:58 1996 Doug Evans <dje@canuck.cygnus.com>
14027
14028 * libc/include/sys/errno.h: Add winsup/include/sys/errno.h values:
14029 ELOOP, ENOBUFS, EAFNOSUPPORT, EPROTOTYPE, ENOTSOCK, ENOPROTOOPT,
14030 ESHUTDOWN, ECONNREFUSED, EADDRINUSE, ECONNABORTED, EWOULDBLOCK.
14031 * libc/string/strerror.c (strerror): Add them.
14032
14033 Thu Aug 22 16:38:19 1996 Jeffrey A Law (law@cygnus.com)
14034
14035 * libc/sys/sysnecv850: New directory for v850 stuff.
14036
14037 * libc/machine/v850: New directory for v850 stuff.
14038 * libc/machine/v850/setjmp.S: setjmp/longjmp support.
14039
14040 * configure.in: Add support for the v850.
14041
14042 * libc/include/machine/ieeefp.h: Add v850 defines.
14043 * libc/include/machine/setjmp.h: Likewise.
14044 * libc/include/sys/config.h: Add v850 defines.
14045
14046 Sat Aug 17 04:06:36 1996 Geoffrey Noer <noer@cygnus.com>
14047
14048 * libc/include/machine/ieeefp.h
14049 * libc/include/machine/setjmp.h
14050 * libc/include/sys/fcntl.h
14051 * libc/include/sys/signal.h
14052 * libc/include/sys/types.h
14053 * libc/stdlib/system.c:
14054 Fix preprocessor defines to match new scheme (_WIN32 for WIN32
14055 API availability, __CYGWIN32__ for cygwin32 environment specific).
14056
14057 Thu Aug 15 17:09:21 1996 Geoffrey Noer <noer@cygnus.com>
14058
14059 * libc/include/stdlib.h: add multibyte character functions. Add
14060 __eprintf for assert.
14061
14062 Thu Aug 15 11:15:40 1996 Michael Meissner <meissner@tiktok.cygnus.com>
14063
14064 * libc/stdlib/malloc.h (MALLOC_ALIGNMENT): Use either pointer
14065 arithmetic or __alignof__ to properly get the alignment, instead
14066 of hardwiring it to 4.
14067
14068 Wed Aug 14 23:43:28 1996 Geoffrey Noer <noer@cygnus.com>
14069
14070 * libc/stdio/fseek.c: add fflush call to adjust seek offset
14071 on append stream (fix from NetBSD sources), adjust curoff offset
14072 for ungetc's benefit.
14073 * libc/stdio/ftell.c: adjust curoff offset for ungetc's benefit.
14074 * libc/stdio/rewind.c: replace code with up to date NetBSD
14075 code to undo hacks made to work around above problem of not
14076 having fflush call mentioned above
14077
14078 Fri Aug 2 18:28:07 1996 J.T. Conklin <jtc@rtl.cygnus.com>
14079
14080 * libc/reent/{closer.c, execr.c, fstatr.c, linkr.c, lseekr.c,
14081 openr.c, readr.c, sbrkr.c, signalr.c, statr.c, timer.c, writer.c}:
14082 Partially revert last changes. The thread specific errno is set
14083 iff if the underlying syscall fails and the global errno is not
14084 zero.
14085
14086 Fri Jul 19 11:41:52 1996 J.T. Conklin <jtc@rtl.cygnus.com>
14087
14088 * libc/reent/filer.c: Removed files, all functions have split out
14089 into their own files.
14090 * libc/reent/{closer.c, lseekr.c, openr.c, readr.c, writer.c}:
14091 New files containing functions formally in filer.c
14092 * libc/reent/Makefile.in: Updated for above change.
14093
14094 * libc/reent/execr.c (_fork_r, _wait_r): Set errno if underlying
14095 syscall fails, not if errno is changed.
14096 * libc/reent/filer.c (_open_r, _close_r, _lseek_r, _read_r,
14097 _write_r): Likewise.
14098 * libc/reent/fstatr.c (_fstat_r): Likewise.
14099 * libc/reent/linkr.c (_link_r, _unlink_r): Likewise.
14100 * libc/reent/sbrkr.c (_sbrk_r): Likewise.
14101 * libc/reent/signalr.c (_kill_r): Likewise.
14102 * libc/reent/statr.c (_stat_r): Likewise.
14103 * libc/reent/timer.c (_gettimeofday_r): Likewise.
14104
14105 * libc/reent/{execr.c, filer.c, fstatr.c, linkr.c, sbrkr.c,
14106 signalr.c, statr.c, timer.c} (errno): declare extern rather
14107 than as a common.
14108
14109 * libc/stdio/vfprintf.c (__sbprintf): Use the VFPRINTF macro
14110 instead of calling vfprintf so that i*printf will not require
14111 floating point support code.
14112
14113 Mon Jul 15 16:50:59 1996 Doug Evans <dje@canuck.cygnus.com>
14114
14115 * libc/posix/execvp.c (execvp): Use posix_path_list_p to determine
14116 path delimiter.
14117 * libc/include/sys/unistd.h (_SC_PATH_RULES): Delete.
14118 (_PATH_RULES_{UNKNOWN,WIN32,POSIX}): Delete.
14119
14120 Thu Jul 11 14:34:14 1996 Geoffrey Noer <noer@cygnus.com>
14121
14122 * libc/include/signal.h: _sig_func_ptr function takes an int
14123 * libc/include/sys/signal.h: sa_handler function takes an int
14124
14125 Tue Jul 9 21:22:32 1996 Jeffrey A Law (law@cygnus.com)
14126
14127 * libc/include/machine/ieeefp.h: Simplify H8/S support.
14128 * libc/include/sys/config.h: Add missing H8/S conditional.
14129
14130 Sun Jun 30 12:05:46 1996 Doug Evans <dje@canuck.cygnus.com>
14131
14132 * libc/include/sys/unistd.h (MAXPATHLEN): Add cygwin32 value.
14133
14134 Wed Jun 26 09:57:54 1996 Jeffrey A Law (law@cygnus.com)
14135
14136 * libc/include/machine/setjmp.h: Handle H8/S.
14137 * libc/include/machine/ieeefp.h: Likewise.
14138 * libc/include/sys/config.h: Likewise.
14139 * libc/machine/h8300/{defines.h, memcpy.S, memset.S}: Likewise.
14140 * libc/machine/h8300/{reg_memcpy.S, reg_memset.S}: Likewise.
14141 * libc/machine/h8300/{strcmp.S, setjmp.S}: Likewise.
14142 * libc/sys/h8300hms/crt0.S: Likewise.
14143
14144 Tue Jun 25 23:15:45 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
14145
14146 * Makefile.in (datadir): Set to $(prefix)/share.
14147 (oldincludedir, docdir): Removed.
14148 * doc/Makefile.in (datadir): Set to $(prefix)/share.
14149 (oldincludedir, docdir): Removed.
14150 * libc/Makefile.in (datadir): Set to $(prefix)/share.
14151 (oldincludedir, docdir): Removed.
14152 * libm/Makefile.in (datadir): Set to $(prefix)/share.
14153 (oldincludedir, docdir): Removed.
14154
14155 Fri Jun 21 19:24:41 1996 Ian Lance Taylor <ian@cygnus.com>
14156
14157 * libc/include/sys/reent.h (_REENT_INIT): Update for change to
14158 _reent struct.
14159
14160 Wed Jun 19 14:00:09 1996 Doug Evans <dje@canuck.cygnus.com>
14161
14162 * libc/posix/execvp.c: Delete _WIN32 support. For __CYGWIN32__
14163 fetch current path rules with sysconf and handler posix/win32
14164 appropriately.
14165
14166 * libc/include/sys/unistd.h (_PATH_RULES{,_POSIX,_WIN32}): Define.
14167
14168 * libc/include/process.h: Prepend '_' to P_{WAIT,NOWAIT,OVERLAY}.
14169 (WAIT_CHILD): Always define.
14170
14171 Sat Jun 15 17:50:42 1996 Ian Lance Taylor <ian@cygnus.com>
14172
14173 * libc/stdlib/eprintf.c: New file.
14174 * libc/stdlib/Makefile.in (OFILES): Add eprintf.o.
14175 (eprintf.o): New target.
14176
14177 Thu Jun 13 16:44:32 1996 Doug Evans <dje@canuck.cygnus.com>
14178
14179 * libc/sys/cygwin32/crt0.c (__cygwin_crt0_bp): New global.
14180 (mainCRTStartup): Do int3 if __cygwin_crt0_bp non-zero.
14181
14182 Thu Jun 13 17:45:17 1996 Mike Meissner <meissner@rtl.cygnus.com>
14183
14184 * libc/include/machine/ieeefp.h: Add support for AIX and Windows
14185 NT in PowerPC endianess cases.
14186
14187 Tue Jun 11 12:26:28 1996 Michael Meissner <meissner@tiktok.cygnus.com>
14188
14189 * libc/include/machine/ieeefp.h: Clean up PowerPC endianess.
14190
14191 Thu Jun 6 11:34:20 1996 Michael Meissner <meissner@tiktok.cygnus.com>
14192
14193 * libc/string/strtok.c: Fix doc typo.
14194
14195 Mon Jun 3 11:30:00 1996 J.T. Conklin <jtc@rtl.cygnus.com>
14196
14197 * libc/include/sys/reent.h (struct _reent): Removed _asctime,
14198 _next, _scanpoint, _signgam fields.
14199
14200 * libc/include/stdlib.h (rand_r): Added new declaration.
14201 (_rand_r, _srand_r): Removed declarations.
14202 * libc/stdlib/rand.c (_rand_r, _srand_r): Removed, these functions
14203 have been made obsolete by rand_r.
14204 * libc/stdlib/rand_r.c: New file, rand_r function as specified
14205 by POSIX.1c.
14206
14207 * libc/string/strtok.c: Update documentation to describe
14208 strtok_r().
14209
14210 Sat Jun 1 23:50:39 1996 Michael Meissner <meissner@cygnus.com>
14211
14212 * libc/include/sys/stat.h (stat structure): Use the expanded stat
14213 structure on Solaris, and PowerPC systems even though __svr4__ is
14214 defined.
14215
14216 Tue May 28 13:02:42 1996 Doug Evans <dje@canuck.cygnus.com>
14217
14218 * libc/sys/go32/sys/errno.h (ENOSYS,ESPIPE): Keep values <= 255.
14219
14220 Fri May 17 10:34:44 1996 Ian Lance Taylor <ian@cygnus.com>
14221
14222 * host/any: Use ../.. rather than .. to get to the main build
14223 directory. This matches the current layout of the build
14224 directory.
14225
14226 Wed May 15 15:52:27 1996 Jeffrey A Law (law@cygnus.com)
14227
14228 * libc/machine/h8300/__main.S: Delete. No longer needed.
14229 * libc/machine/h8300/Makefile.in: Corresponding changes.
14230 * libc/sys/h8300hms/crt1.c: New file.
14231 * libc/sys/h8300hms/Makefile.in: Corresponding changes.
14232 * libc/sys/h8300hms/crt0.s: Call __main.
14233
14234 * libc/sys/h8300hms/crt0.S: Use temporary label names
14235 for branch targets.
14236
14237 Mon May 13 14:26:30 1996 Doug Evans <dje@canuck.cygnus.com>
14238
14239 * libc/stdio/fopen.c (_fopen_r): Fix arguments to fseek.
14240
14241 Fri May 3 16:38:23 1996 Michael Meissner <meissner@tiktok.cygnus.com>
14242
14243 * libc/reent/impure.c (_impure_ptr): Force the impure pointer into
14244 .sdata on the PowerPC so that we can link newlib with code
14245 compiled with -msdata.
14246
14247 Mon Apr 29 21:38:02 1996 Doug Evans <dje@canuck.cygnus.com>
14248
14249 * libc/sys/arm/syscalls.c (_sbrk): Rename end to __end__.
14250
14251 Thu Apr 25 06:38:59 1996 Michael Meissner <meissner@cygnus.com>
14252
14253 * libc/sys/cygwin32/crt0.c (mainCRTStartup): On PowerPC, set the
14254 exception handler to __cygwin_exception_handler.
14255
14256 Tue Apr 23 15:14:20 1996 Ian Lance Taylor <ian@cygnus.com>
14257
14258 * libc/include/machine/setjmp.h: Check _AM29K, not ___AM29K__.
14259
14260 Sun Apr 21 12:11:51 1996 Doug Evans <dje@blues.cygnus.com>
14261
14262 * libm/math/Makefile.in ({w,wf}_cabs.o,{w,wf}_drem.o): Add rule for
14263 SunOS VPATH.
14264 * libc/stdlib/Makefile.in (atoff.o,atol.o,mblen.o,mbstowcs.o,
14265 wcstombs.o): Likewise.
14266
14267 Thu Apr 18 12:37:01 1996 Doug Evans <dje@canuck.cygnus.com>
14268
14269 * libc/stdlib/environ.c (initial_env): New static local.
14270 (environ): Point to `initial_env'.
14271
14272 * libc/include/machine/setjmp.h: Clean up.
14273 (__H8300H__,__PPC__): Define _JBTYPE.
14274 (__arm__): Provide entry for.
14275 (sigjmp_buf): Delete.
14276 (jmp_buf): Use _JBTYPE if defined, otherwise int.
14277
14278 Thu Apr 18 12:10:52 1996 Jeffrey A Law (law@cygnus.com)
14279
14280 * libc/machine/h8300/strcmp.S: Sign extend the result to
14281 32bits so we don't lose with -mint32.
14282
14283 Sun Apr 14 19:59:52 1996 Doug Evans <dje@canuck.cygnus.com>
14284
14285 * libc/sys/go32/sys/errno.h: New file.
14286 * libc/sys/go32/Makefile.in (stat.o): Depend on stat.c.
14287 * libc/sys/go32/gerrno.s (syscall_error): Call __errno to get
14288 errno's address (make compatible with rest of newlib).
14289 * libc/sys/go32/stat.c (fixinode): Set errno upon failure.
14290 * libc/string/strerror.c (strerror): Surround each case with #ifdef.
14291
14292 Thu Mar 28 13:44:42 1996 Doug Evans <dje@canuck.cygnus.com>
14293
14294 * libc/machine/sparc/{scan.c,shuffle.c}: New files.
14295 * libc/machine/sparc/Makefile.in: Build them.
14296 * libc/machine/sparc/machine/sparclet.h: New file.
14297
14298 Mon Mar 25 15:29:14 1996 J.T. Conklin <jtc@rtl.cygnus.com>
14299
14300 * libc/machine/sh/asm.h: New file.
14301 * libc/machine/sh/setjmp.S: Only save clobbered registers. Added
14302 support for SH3e's FP registers. Use asm.h.
14303
14304 Mon Mar 25 11:59:23 1996 Jeffrey A Law (law@cygnus.com)
14305
14306 * libc/stdio/vfprintf.c (cvt): Accept a reent structure
14307 as first argument. Call _dtoa_r and pass the reent structure
14308 instead of calling __dtoa.
14309
14310 Fri Mar 22 13:59:37 1996 Jeffrey A Law (law@cygnus.com)
14311
14312 * libc/include/sys/config.h: Define DOUBLE_IS_32BITS for
14313 the h8300, h8500, and others. Add comments for some rather
14314 dubious code.
14315
14316 Thu Mar 14 18:04:43 1996 Ian Lance Taylor <ian@cygnus.com>
14317
14318 * Makefile.in (check): Check that testsuite exists before cd.
14319
14320 Tue Mar 12 11:46:47 1996 Michael Meissner <meissner@tiktok.cygnus.com>
14321
14322 * libc/include/string.h (strsep): Correct prototype.
14323
14324 Mon Mar 11 09:55:19 1996 Doug Evans <dje@charmed.cygnus.com>
14325
14326 * libc/sys/h8300/_exit.c (_exit,__exit): Set r0 to 0 before `sleep'.
14327 * libc/sys/h8300/misc.c (_kill): Set r0 to indicate abort and `sleep'.
14328 * libc/sys/h8300/crt0.S (_start): Call exit instead of `sleep'.
14329
14330 Wed Mar 6 11:51:55 1996 Doug Evans <dje@charmed.cygnus.com>
14331
14332 * libc/posix/{creat.c,isatty.c}: New files.
14333 * libc/posix/Makefile.in (OFILES): Add creat.o, isatty.o.
14334
14335 * libc/sys/sparc64/crt0.S (environ): Delete.
14336 (.LHaveBias): Renamed from HaveBias.
14337
14338 Thu Feb 15 10:48:37 1996 Doug Evans <dje@charmed.cygnus.com>
14339
14340 * libc/stdlib/mallocr.c (etext): Move decl inside ifdef WARN_VLIMIT.
14341 (_morecore_r): Delete SBRK_IS_ALLOC support.
14342
14343 Tue Feb 13 09:44:09 1996 Michael Meissner <meissner@tiktok.cygnus.com>
14344
14345 * libc/sys/cygwin32/Makefile.in (lib.a): Make lib.a with a dummy
14346 module rather than touch, so we don't get warning messages when
14347 all of the libraries are combined into libc.a.
14348
14349 Tue Feb 13 06:32:07 1996 Doug Evans <dje@charmed.cygnus.com>
14350
14351 * libc/sys/sparclite/{Makefile.in,crt0.s}: Deleted.
14352 crt0.s replaced by version in libgloss.
14353
14354 Mon Feb 5 15:17:51 1996 J.T. Conklin <jtc@rtl.cygnus.com>
14355
14356 * libc/reent/Makefile.in (OFILES): Add impure.o.
14357 * libc/reent/impure.o: New file, define initial reentrancy struct.
14358 * libc/reent/reent.c: Remove above definition.
14359
14360 * libm/math/sf_asinh.c: Fix typo.
14361
14362 * Makefile.in (MATHOBJS_IN_LIBC): Removed sr_ldexp.o and
14363 srf_ldexp.o.
14364
14365 * libm/libm.texinfo: Change documentation to reflect changes
14366 in reentrancy model.
14367 * libm/math/w_gamma.c: Likewise.
14368
14369 Wed Jan 31 18:49:45 1996 Steve Chamberlain <sac@slash.cygnus.com>
14370
14371 * configure.in (*-*-cygwin32): New.
14372 (*-*-win32): Deleted.
14373 * libc/sys/win32 renamed libc/sys/cygwin32.
14374
14375 Tue Jan 30 22:09:03 1996 Michael Meissner <meissner@tiktok.cygnus.com>
14376
14377 * libc/include/sys/file.h: New include file.
14378
14379 Fri Jan 26 15:52:54 1996 Steve Chamberlain <sac@slash.cygnus.com>
14380
14381 * libc/include/machine/setjmp.h: Increase size of PPC jmp_buf.
14382
14383 Tue Jan 23 17:49:16 1996 Steve Chamberlain <sac@slash.cygnus.com>
14384
14385 * libc/include/sys/wait.h (WIFSIGNALED): Fix.
14386
14387 Tue Jan 16 09:28:10 1996 Michael Meissner <meissner@tiktok.cygnus.com>
14388
14389 * doc/makedoc.c (realloc): Declare at file scope.
14390 (catchar): Not here.
14391
14392 Wed Dec 27 15:45:23 1995 Doug Evans <dje@canuck.cygnus.com>
14393
14394 * Makefile.in (VERSION): Update to 1.7.0.
14395 * {libc,libm}/Makefile.in (VERSION): Likewise.
14396 * configure.in: Minor clean up of multilib stuff.
14397
14398 From David Johnson <davidj@ICSI.Berkeley.EDU>
14399 * {libc,libm}/Makefile.in (lib[cm].a): Delete library first.
14400
14401 * libc/stdlib/environ.c: New file.
14402 * libc/stdlib/Makefile.in (OFILES): Build it.
14403 * libc/sys/h8500hms/crt0.c (environ): Deleted.
14404 * libc/sys/m88kbug/crt0.c (environ): Deleted.
14405 * libc/sys/z8ksim/crt0.c (environ): Deleted.
14406 * libc/sys/netware/environ.c: Deleted.
14407
14408 Tue Dec 19 15:24:46 1995 Kim Knuttila <krk@cygnus.com>
14409
14410 * configure.in (links): set sys_dir, posix_dir, syscall_dir
14411
14412 Wed Dec 13 04:16:25 1995 Michael Meissner <meissner@wogglebug.tiac.net>
14413
14414 * doc/makedoc.c (init_string_with_size,nextword): Move malloc
14415 declaration out to external scope and declare it PTR, not char *.
14416
14417 Mon Dec 11 17:35:12 1995 steve chamberlain <sac@slash.cygnus.com>
14418
14419 * libc/include/sys/unistd.h (getpagesize): New declaration.
14420 (_SC_PAGESIZE): New definition.
14421 * libc/include/time.h (CLK_TCK): Defined as CLOCKS_PER_SEC.
14422 * libc/configure.in (i[345]86-*-win32): Remove -DNO_FORK.
14423
14424 Fri Dec 1 16:48:46 1995 James G. Smith <jsmith@cygnus.co.uk>
14425
14426 * libc/sys/vr4300/syscalls.c (sbrk): Fixed memory
14427 addressing. System call returns size, not (last address + 1).
14428
14429 Thu Nov 30 15:05:26 1995 J.T. Conklin <jtc@rtl.cygnus.com>
14430
14431 * libm/math/*.c: Removed _foo_r() reentrancy API.
14432 * libc/include/math.h: Removed _foo_r prototypes and macros.
14433
14434 * libm/math/*.c: On systems with IEEE single precision "doubles"
14435 move foo() -> foof() wrapper code from the files that implement
14436 the standard IEEE double precision functions to the files that
14437 implement IEEE single precision functions. (ie. On those systems
14438 sin is moved from s_sin.c to sf_sin.c). There should eventually
14439 be use of a C extension (like gcc's alias attribute) so that the
14440 wrappers are not needed at all.
14441
14442 * libc/sys/sysnec810/sbrk.c: Cast &end to char * to get around
14443 strict NEC V810 compiler.
14444 * libc/misc/dprintf.c (getnumber): Cast char * to unsigned char *
14445 for same reason.
14446
14447 Wed Nov 29 14:25:05 1995 J.T. Conklin <jtc@rtl.cygnus.com>
14448
14449 * libc/stdlib/strtol.c (_strtol_r): Replaced with implementation
14450 from NetBSD C library.
14451 * libc/stdlib/strtoul.c (_strtoul_r): Likewise.
14452
14453 * libc/stdlib/assert.c (__assert): Renamed from __assertfail
14454 and adapted from implementation I wrote for NetBSD C library.
14455 The difference is __assert doesn't take a format argument,
14456 so that there won't be multiple copies of the same string
14457 constant in the executable if assertions are enabled in
14458 more than one source module.
14459 * libc/include/assert.h (assert): Changed to call __assert.
14460
14461 Tue Nov 28 16:54:26 1995 J.T. Conklin <jtc@rtl.cygnus.com>
14462
14463 * libc/stdlib/strtod.c (_strtod_r): Changed to not assign to
14464 word1 on systems with 32 bit doubles.
14465 * libc/stdlib/qsort.c (qsort): Cast some void *'s to char *'s
14466 so that we can do arithmetic on them.
14467 * libc/misc/dprintf.c: Changed to support stdarg.h for ANSI
14468 compilers.
14469
14470 Tue Nov 28 16:03:32 1995 Doug Evans <dje@canuck.cygnus.com>
14471
14472 * libc/sys/arm/crt0.S: Zero bss.
14473
14474 Fri Nov 24 16:09:23 1995 Doug Evans <dje@deneb.cygnus.com>
14475
14476 * libc/include/unctrl.h: New file.
14477 * libc/misc/{Makefile.in,dprintf.c,unctrl.c,misc.tex}: New files.
14478 * configure.in (subdirs): Add libc/misc.
14479 * libc/Makefile.in (SUBDIRS): Add misc.
14480 (SUBLIBS): Add misc/lib.a.
14481
14482 * libc/include/sys/reent.h (struct _reent): Make __sf last member.
14483
14484 Wed Nov 22 19:49:47 1995 Doug Evans <dje@deneb.cygnus.com>
14485
14486 * libc/stdio/vfprintf.c (__sbprintf): Init fake._data.
14487 (_vfprintf_r): Call CHECK_INIT.
14488
14489 Tue Nov 14 02:52:12 1995 Doug Evans <dje@canuck.cygnus.com>
14490
14491 * Makefile.in (MULTITOP): Delete.
14492 (MULTISRCTOP, MULTIBUILDTOP): Add.
14493 * configure.in: Delete call to cfg-ml-com.in. Call config-ml.in
14494 instead of cfg-ml-pos.in.
14495
14496 Wed Nov 8 01:24:08 1995 James G. Smith <jsmith@pasanda.cygnus.co.uk>
14497
14498 * libc/sys/vr4300/syscalls.c: Added clean version of sbrk().
14499 * libc/sys/vr4300/crt0.S: Cleaned up. Added check for FPU
14500 presence.
14501
14502 Thu Nov 2 22:25:06 1995 Michael Meissner <meissner@tiktok.cygnus.com>
14503
14504 * libc/string/strtok.c: Include string.h to pick up strtok_r
14505 prototype.
14506
14507 Wed Nov 1 18:54:11 1995 Jason Molenda (crash@phydeaux.cygnus.com)
14508
14509 * libc/string/strtok.c: include <_ansi.h>.
14510 * libc/time/asctime_r.c: `reresult' -> `result'.
14511
14512 Wed Nov 1 14:35:52 1995 J.T. Conklin <jtc@rtl.cygnus.com>
14513
14514 * libc/time/{ctime.c, gmtime.c, lcltime.c}: Wrap functions
14515 in #ifndef _REENT_ONLY ... #endif conditional.
14516
14517 * libc/include/string.h (_strtok_r): Remove declaration.
14518 * libc/include/time.h (_asctime_r): Remove declaration.
14519 * libc/string/strtok.c (_strtok_r): Removed.
14520 * libc/time/asctime.c (_asctime_r): Removed.
14521
14522 * libc/string/Makefile.in (OFILES): Add new object.
14523 * libc/string/strtok_r.c: New file. strtok_r function as
14524 specified by POSIX.1c, adapted from strtok implementation
14525 from NetBSD C library.
14526 * libc/string/strtok.c (strtok): Reimplemented in terms of
14527 strtok_r.
14528
14529 * libc/time/Makefile.in (OFILES): Add new objects.
14530 * libc/time/{asctime_r.c, ctime_r.c, gmtime_r.c, lcltime_r.c}:
14531 New files, reentrant time functions specified by POSIX.1c.
14532 * libc/time/{asctime.c, ctime.c, gmtime.c, lcltime.c}: Non-
14533 reentrant time functions re-written in terms of reentrant
14534 functions.
14535 * libc/time/lcltime.c: Renamed from localtime.c
14536
14537 * libc/include/time.h: Add prototypes for asctime_r, ctime_r,
14538 gmtime_r, and localtime_r.
14539
14540 Sat Oct 28 14:34:31 1995 steve chamberlain <sac@slash.cygnus.com>
14541
14542 * libc/sys/win32/crt0.c (mainCRTStartup): Call cygwin_crt0.
14543 * libc/include/sys/unistd.h (getlogin): Revert change of
14544 Oct 19.
14545 * libc/include/sys/signal.h (sigprocmask): Change prototype
14546 so it compiles with c++.
14547
14548 Wed Oct 25 15:43:18 1995 Michael Meissner <meissner@cygnus.com>
14549
14550 * libc/include/machine/setjmp.h (PowerPC _JBLEN): Consider it a
14551 PowerPC if __PPC__ is defined. Bump jump_buf length to 62 ints,
14552 to give some room in case we need to align the jmp_buf.
14553
14554 * libc/machine/powerpc/setjmp.S (setjmp, longjmp): Rewrite to use
14555 the new ppc-asm.h include file the compiler provides to specify
14556 function prologue/epilogue. Eliminate saves of the xer and ctr
14557 registers, which are volatile. Before starting to save registers,
14558 align to 8 byte boundary.
14559
14560 Mon Oct 23 11:20:51 1995 James G. Smith <jsmith@pasanda.cygnus.co.uk>
14561
14562 * libc/sys/vr4300/syscalls.c: Added empty kill() function,
14563 referenced by standard libraries.
14564
14565 Thu Oct 19 21:39:47 1995 Fred Fish <fnf@cygnus.com>
14566
14567 * libc/unix/Makefile.in, libc/string/Makefile.in,
14568 libc/stdio/Makefile.in, libc/reent/Makefile.in,
14569 libc/posix/Makefile.in:
14570 Remove tabs from otherwise empty line. Confuses some
14571 older non-GNU versions of "make".
14572
14573 Thu Oct 19 16:32:17 1995 steve chamberlain <sac@slash.cygnus.com>
14574
14575 * libc/sys/unistd.h (getlogin): Returns const char *.
14576
14577 Wed Oct 18 12:57:50 1995 steve chamberlain <sac@slash.cygnus.com>
14578
14579 * libc/include/fcntl.h (O_BINARY, O_TEXT): New.
14580 * libc/include/errno.h: Moved into and include...
14581 * libc/include/sys/errno.h: New file.
14582 * libc/include/sys/wait.h: New file.
14583 * libc/stdio/rename.c (_rename_r): Use _rename system call if available.
14584 * libc/sys/win32/*: Moved out.
14585 * libc/sys/win32/crt0.c: Rewritten to cope with shared library.
14586 * configure.in (i[345]86-*-win32): HAVE_RENAME
14587
14588 Wed Oct 18 09:58:27 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
14589
14590 * libc/unix/sigset.c (sigemptyset, sigaddset): Prefix #undef to
14591 avoid macro expansion for these two names.
14592
14593 Tue Oct 17 08:45:33 1995 Doug Evans <dje@canuck.cygnus.com>
14594
14595 * libc/machine/h8500/psi.S: r6 renamed to fp.
14596
14597 Sun Oct 15 12:58:10 1995 Michael Meissner <meissner@wogglebug.tiac.net>
14598
14599 * configure.in (powerpc*): No longer need to define
14600 NO_LONGLONG_POINTERS to supress warnings.
14601
14602 Sat Oct 14 12:55:08 1995 Jim Wilson <wilson@chestnut.cygnus.com>
14603
14604 * libc/reent/reent.c (_reclaim_reent): Call cleanup indirectly
14605 through PTR instead of directly.
14606
14607 * libc/sys/sh/crt0.S: Clean up formatting. Delete unused
14608 non-standard constructor support.
14609
14610 Thu Oct 12 11:39:42 1995 J.T. Conklin <jtc@rtl.cygnus.com>
14611
14612 * libc/stdlib/dtoa.c (_dtoa_r): Set result pointer to the
14613 address of the Bigint instead of the address of its _x field,
14614 as the size the result buffer was calculated accordingly.
14615 Fix from Jim Wilson <wilson@chestnut@cygnus.com>.
14616
14617 * libc/stdlib/{div.c, ldiv.c}: Replaced with implementation
14618 from NetBSD C library. No longer special cases division by
14619 zero (which needs to be done by the application anyway), but
14620 it doesn't need to call abs() (or labs()) four times either.
14621
14622 * libc/stdlib/qsort.c: Replaced with implementation from
14623 NetBSD C library.
14624
14625 Tue Oct 10 14:01:10 1995 J.T. Conklin <jtc@rtl.cygnus.com>
14626
14627 * libc/stdio/vfprintf.c: Replaced with implementation from
14628 NetBSD C library (which is derived from the 4.4BSD C library).
14629 * libc/stdio/cvt.c: Removed.
14630 * libc/stdio/Makefile: Updated.
14631
14632 Tue Oct 10 12:15:23 1995 steve chamberlain <sac@slash.cygnus.com>
14633
14634 * libc/sys/win32/syscalls.c (rename): New.
14635 * libc/sys/win32/include/winkernel.h (MoveFileExA): New.
14636
14637 Fri Oct 6 12:18:43 1995 Jim Wilson <wilson@chestnut.cygnus.com>
14638
14639 * libc/machine/sh/Makefile.in (setjmp.o): Depend on setjmp.S.
14640 * libc/machine/sh/setjmp.S: Rename from setjmp.s.
14641
14642 * libc/sys/sh/Makefile.in (OFILES, all): Delete setjmp.o.
14643 (setjmp.o): Delete rule to build setjmp.o.
14644 * libc/sys/sh/setjmp.S: Delete file.
14645
14646 Fri Oct 6 11:19:05 1995 J.T. Conklin <jtc@rtl.cygnus.com>
14647
14648 * libc/stdlib/mprec.c (d2b): Added support for _DOUBLE_IS_32BITS.
14649 * libc/stdlib/mprec.h: Fixed constants used for IEEE single float
14650 format. Added #defines to map d2b, i2b, low0bits, lshift, mult,
14651 pow5mult and s2b to identifiers with leading underscores.
14652 * libc/stdlib/Makefile.in: Add mprec.h as a dependency to dtoa.o,
14653 ecvtbuf.o, mprec.o and strtod.o. Sort dependencies.
14654
14655 Thu Oct 5 17:27:30 1995 steve chamberlain <sac@slash.cygnus.com>
14656
14657 * libc/sys/posix/popen.c (sys/types.h): Include.
14658
14659 Thu Oct 5 16:33:01 1995 Doug Evans <dje@canuck.cygnus.com>
14660
14661 * libc/sys/win32/syscalls.h (fhandler): New struct.
14662 (__lookup_fhandler, __lookup_fhandler_hook): Declare.
14663 (__fhandler_normal): Declare.
14664 (hinfo): New member op_handlers.
14665 * libc/sys/win32/syscalls.c (__read): Don't validate fd.
14666 (__write): Likewise.
14667 (_read, _write, _open, _close, _lseek): Validate fd here.
14668 Move file type specific stuff to foo_normal.
14669 (read_normal, write_normal, open_normal, close_normal, lseek_normal):
14670 New functions.
14671 (__lookup_fhandler): New function.
14672 (__lookup_fhandler_hook, __fhandler_normal): New variables.
14673
14674 From anders.blomdell@control.lth.se (Anders Blomdell)
14675 * libc/sys/win32/crt0.c (vfork_init): Unset __FD_TABLE__.
14676 Don't touch standard handles.
14677 * libc/sys/win32/spawn.c (_spawn): Use STARTF_USESTDHANDLES.
14678 (_execve): Only create __FD_TABLE__ if necessary.
14679 * libc/sys/win32/include/winkernel.h (STARTF_*): Define.
14680
14681 Thu Oct 5 14:25:14 1995 steve chamberlain <sac@slash.cygnus.com>
14682
14683 * libc/sys/win32/sys/termios.h (FLUSHO): New.
14684 * libc/sys/win32/include/win*.h: Moved a load of prototypes around.
14685 * libc/sys/win32/pipe.c (_fctnl): Ignore F_SETFL without errors.
14686 * libc/sys/win32/exception.c (ehandler3): set strace when a signal
14687 without a handler is received.
14688 * libc/sys/win32/Makefile.in: Remove --nodelete.
14689 * libc/sys/win32/resouce.c (gettimeofday): New.
14690 * libc/sys/win32/syscalls.c (path_to_real_path): New.
14691 * libc/sys/win32/syscalls.h (include/wincon.h): Don't include.
14692
14693 Wed Oct 4 13:10:35 1995 Doug Evans <dje@canuck.cygnus.com>
14694
14695 * libc/sys/win32/dirsearch.c (opendir): stat real path name.
14696 Don't append "/*" to search pattern if trailing '/' already there,
14697 append "*".
14698 * libc/sys/win32/spawn.c (_spawn): CreateProcess doesn't seem to
14699 like /'s, convert them to \'s. Handle //<drive>/ path names.
14700 Add space for quoted \'s in arg string. Print translated prog name
14701 and original prog name.
14702 (_execve): Handle parent doing exec a teensy bit better.
14703 * libc/sys/win32/syscalls.h (__path_to_real_path): Update prototype.
14704 * libc/sys/win32/syscalls.c (__path_to_real_path): Don't assume
14705 path needs conversion, handle both cases. Delete `const' from result.
14706 (hash_path_name): New function.
14707 (_open): Call it.
14708 (_stat): Likewise. Fill in more fields for directories.
14709 * libc/sys/win32/wait.c (_wait): Explicitly pass -1 to waitpid.
14710 (wait_for_any): Fix trace message.
14711 (waitpid): Explicitly test for intpid == 0.
14712
14713 From anders.blomdell@control.lth.se (Anders Blomdell)
14714 * libc/sys/win32/spawn.c (__vfork_get_empty_entry): zero fill result
14715 so `next' is valid.
14716
14717 Sat Sep 30 15:00:15 1995 Jason Molenda (crash@phyeaux.cygnus.com)
14718
14719 * libc/sys/win32/spawn.c (_spawn): Make quoting rules more
14720 complicated.
14721
14722 Sat Sep 30 10:25:57 1995 Jason Molenda (crash@phydeaux.cygnus.com)
14723
14724 * libc/include/_ansi.h: set _HAVE_STDC if __STDC__ is defined
14725 at all, not just == 1.
14726 * libm/math/wf_acos.c (acosf): check for _HAVE_STDC, not __STDC__.
14727
14728 Sat Sep 30 04:30:09 1995 Jason Molenda (crash@phydeaux.cygnus.com)
14729
14730 * libc/sys/win32/include/winbase.h: include <wintypes.h> and <winnt.h>
14731 * libc/sys/win32/include/wintypes.h: include <winnt.h>
14732 * libc/sys/win32/include/winnt.h: avoid multiple inclusion of this
14733 file.
14734
14735 Fri Sep 29 01:49:17 1995 steve chamberlain <sac@slash.cygnus.com>
14736
14737 * libc/sys/syscalls.c (getcwd): Fix off by one error.
14738
14739 * libc/sys/signal.c (sleep): Fill it in.
14740 * libc/sys/termios.c (tcflush): Use PurgeComm
14741 (tcsetattr): Set some more of the bits.
14742 * libc/sys/include/winkernel.h: Add PurgeComm and Sleep.
14743
14744 Fri Sep 29 04:33:53 1995 Doug Evans <dje@deneb.cygnus.com>
14745
14746 * libc/sys/arm/crt0.S (fp): Initialize to 0.
14747 Conditionally include .idata$3 stuff ifdef __pe__.
14748
14749 Fri Sep 29 01:49:17 1995 steve chamberlain <sac@slash.cygnus.com>
14750
14751 * libc/sys/win32/crt0.c (hmap_init): Call __init_hinfo.
14752 * libc/sys/win32/pipe.c (pipe): Ditto.
14753 * libc/sys/win32/syscalls.c (__read): Use new vtime and vmin fields.
14754 * libc/sys/win32/syscalls.h (hinfo): vtime, vmin are new.
14755 * libc/sys/win32/termios.c (tcsetattr): Init new fields.
14756 (tcgetattr): Contents are new.
14757 * libc/sys/win32/include/winkernel.h (DCB): New.
14758 (GetCommState, SetCommState): New.
14759
14760 Thu Sep 28 16:29:09 1995 Doug Evans <dje@deneb.cygnus.com>
14761
14762 * libc/sys/arm/crt0.S (_start): Define.
14763
14764 Thu Sep 28 12:26:45 1995 steve chamberlain <sac@slash.cygnus.com>
14765
14766 * libc/sys/arm/crt0.S: Move stack to top of RAM on PIE board.
14767 * libc/sys/arm/syscalls.c (_read, _write): Use the SWI properly.
14768
14769 * libc/sys/win32/sysconf.c: New
14770 * libc/sys/win32/sys/winadvapi.h: New
14771 * libc/sys/win32/syscalls.h (hinfo): Added timeout_len, w_binary, r_binary.
14772 * libc/sys/win32/crt0.c (hmap_init): Initialize new fields.
14773 * libc/sys/win32/pipe.c (pipe): Ditto.
14774 * libc/sys/win32/signal.c (_raise): New.
14775 (_kill): Moved from spawn.c
14776 * libc/sys/win32/spawn.c (kill): Moved to signal.c
14777 * libc/sys/win32/syscalls.c (__read): Use new fields.
14778 (_open): Ditto.
14779 * libc/sys/win32/termios.c (tcflush, tcsetattr, tcgetattr): Fill in.
14780 * libc/sys/win32/exceptions.c (__stack_trace): Keep going for longer.
14781 * libc/include/sys/unistd.h (rmdir): Takes const path.
14782 * libc/include/sys/stat.h (mkdir): Takes const path.
14783 * libc/include/sys/signal.h (SIGTTOU, SIGTTIN): New for win32.
14784
14785 Thu Sep 28 10:11:27 1995 Doug Evans <dje@canuck.cygnus.com>
14786
14787 * libc/sys/win32/spawn.c (_spawn): Fix quoting.
14788
14789 Add support for specifying paths as //<drive>/foo/bar.
14790 * libc/sys/win32/syscalls.h (__path_needs_conversion_p): Declare.
14791 (__path_to_real_path): Declare.
14792 (PATH_TO_REAL_PATH): New macro.
14793 * libc/sys/win32/syscalls.c (__win32_pid_to_posix_pid): Minor cleanup.
14794 (__path_needs_conversion_p, __path_to_real_path): New functions.
14795 (_open): Fix test for error return from CreateFileA.
14796 Handle new path syntax.
14797 (_link, mkdir, rmdir, getcwd, chdir, stat): Handle new path syntax.
14798 * libc/sys/win32/dirsearch.c (opendir): Likewise.
14799
14800 Wed Sep 27 16:36:46 1995 steve chamberlain <sac@slash.cygnus.com>
14801
14802 * libc/sys/win32/include/*.h: Reorganized
14803 * libc/sys/win32/include/WINREADME: New.
14804 * libc/sys/win32/Makefile.in (DLLS): Build version.a.
14805 * libc/sys/win32/*.c: Fix for new include scheme.
14806 * libc/sys/win32/crt0.c (__this_uinfo_buf, __this_uinfo): New.
14807 * libc/sys/win32/getlogin.c (getlogin): Use uinfo.
14808 * libc/sys/win32/passwd.c (*): Fix.
14809 * libc/sys/win32/syscalls.c (get[e|][g|u]id): Use passwd info.
14810 (_stat): Get directory owner and permissions right.
14811 * libc/sys/win32/syscalls.h (uinfo): New.
14812 * libc/sys/win32/version.def: Remove leading underscores.
14813
14814 Tue Sep 26 18:18:47 1995 Jason Molenda (crash@phydeaux.cygnus.com)
14815
14816 * libc/sys/win32/key.c: include "include/wincon.h".
14817
14818 Tue Sep 26 07:21:48 1995 steve chamberlain <sac@slash.cygnus.com>
14819
14820 * libc/sys/win32/{key, stubs}.c: New.
14821 * libc/sys/win32/Makefile: Adjust to cope.
14822 * libc/sys/win32/crt0.c (vfork_init_first): Cope with -ve pids.
14823 (environ_init): Change env names to upper case.
14824 * libc/sys/win32/dirsearch.c (readdir): Don't fill in inode number.
14825 * libc/sys/win32/passwd.c (*): Fill in the functions.
14826 * libc/sys/win32/pipe.c (_fcntl): F_GETFL returns O_RDWR.
14827 * libc/sys/win32/spawn.c (_spawn): Cope with -ve pids.
14828 * libc/sys/win32/syscalls.c (__win32_pid_to_posix_pid): New function.
14829 (_open): Initialze hmap->execable_p too.
14830 * libc/sys/win32/syscalls.c (getuid, getgid, geteuid, getegid): Return from macros.
14831 (_fstat): Fill in permissions.
14832 * libc/sys/win32/syscalls.h (hinfo): Add execable_p.
14833
14834 Fri Sep 22 13:47:27 1995 Doug Evans <dje@canuck.cygnus.com>
14835
14836 * configure.in (cfg-ml-com.in invocation): Use ${with_multilib_top}
14837 if defined.
14838 (cfg-ml-pos.in invocation): Likewise.
14839
14840 Fri Sep 22 11:43:44 1995 J.T. Conklin <jtc@rtl.cygnus.com>
14841
14842 * Makefile.in (MATHOBJS_IN_LIBC): Added s_isinf.o, sf_isinf.o,
14843 s_isnan.o and sf_isnan.o.
14844
14845 Wed Sep 20 14:50:19 1995 Ian Lance Taylor <ian@cygnus.com>
14846
14847 * All Makefile.in files: added maintainer-clean target as a
14848 synonym for realclean.
14849
14850 Wed Sep 20 11:02:50 1995 Jeff Law (law@snake.cs.utah.edu)
14851
14852 * libc/include/machine/setjmp.h: Add hppa support.
14853 * libc/machine/hppa/setjmp.S: New file with setjmp/longjmp
14854 support.
14855 * libc/machine/hppa/Makefile.in: Related changes.
14856
14857 Tue Sep 19 12:09:01 1995 J.T. Conklin <jtc@blues.cygnus.com>
14858
14859 * configure.in (machine_dir): Don't set for v810-*-*.
14860
14861 Fri Sep 15 20:22:08 1995 Jason Molenda (crash@phydeaux.cygnus.com)
14862
14863 * libc/sys/win32/crt0.c (passover): Change to handle MKS quoting
14864 conventions correctly.
14865
14866 Thu Sep 14 13:37:22 1995 J.T. Conklin <jtc@blues.cygnus.com>
14867
14868 * libc/stdio/puts.c: Update documentation of return value to match
14869 ANSI standard.
14870
14871 Thu Sep 14 01:52:37 1995 Doug Evans <dje@canuck.cygnus.com>
14872
14873 Fix file descriptor inheritance.
14874 * libc/sys/win32/syscalls.h (CHILD_P): Define again.
14875 (NOT_OPEN_FD): Fix.
14876 * libc/sys/win32/spawn.c (vfork0): Only create inheritable handle if
14877 close-on-exec flag not set. Initialize child's entire fd table.
14878 * libc/sys/win32/syscalls.c (_open): Only create inheritable handle if
14879 CHILD_P.
14880 * libc/sys/win32/pipe.c (pipe): Only create new handle as inheritable
14881 if CHILD_P. Initialize entire hmap entry.
14882 (dup): Only create new handle as inheritable if CHILD_P.
14883 (dup2): Likewise. Properly initialize hmap entry.
14884
14885 * libc/sys/win32/spawn.c (_execve): Don't pass _P_SEARCH_PATH to
14886 _spawn.
14887 (_exit): Use CHILD_P.
14888 * libc/sys/win32/syscalls.c (_fstat): Fix call to memset.
14889 (_stat): Likewise.
14890
14891 Mon Sep 11 23:09:39 1995 Jason Molenda (crash@phydeaux.cygnus.com)
14892
14893 * libc/sys/win32/crt0.c (passover): fix up the state table.
14894 * libc/posix/popen.c: Added.
14895 * libc/posix/Makefile.in: compile popen.c.
14896
14897 Mon Sep 11 11:43:38 1995 J.T. Conklin <jtc@cygnus.com>
14898
14899 * libc/include/machine/ieeefp.h: On the h8/300, h8/300h and
14900 h8/500 define _DOUBLE_IS_32BITS.
14901
14902 Sat Sep 9 17:55:54 1995 Doug Evans <dje@canuck.cygnus.com>
14903
14904 Get vfork/exec/spawn/cwait/wait working again.
14905 * libc/sys/win32/syscalls.h (VFORK_NEWBORN_PSEUDO_PID): Define.
14906 (procinfo): New member vfork_level.
14907 * libc/sys/win32/crt0.c (__vfork_next_pid): Delete.
14908 (vfork_init_first): Use GetCurrentProcessId to get pid.
14909 Initialize vfork_level.
14910 (vfork_init): Delete __PID__.
14911 (environ_init): New function. Undo patch of Aug 19, Posix says
14912 environment variables are case sensitive.
14913 (mainCRTStartup): Call it.
14914 * libc/sys/win32/spawn.c (__vfork_next_pid): Delete.
14915 (my_longjump: Make static.
14916 (_spawn): New argument `h'. Delete setting of __PID__.
14917 Delete local `idx'. Look for chars that need quotes, rather than
14918 ones that don't. Set handle of created process in `h'.
14919 Result is process id if created task.
14920 (allocate_spawn_entry): New function.
14921 (spawnvp, spawnv): Call it. Store handle and pid in procinfo entry.
14922 (_execve): Set __FD_TABLE__ before spawning child.
14923 Scan our fd table when passing fds, not our parent's.
14924 Store handle and pid in procinfo entry.
14925 (vfork0): Ensure strace message always printed.
14926 Set child pid to VFORK_NEWBORN_PSEUDO_PID.
14927 (vfork): Don't clobber result of vfork0.
14928 * libc/sys/win32/wait.c (cwait): Fix non-error result (is pid).
14929 (wait_for_any): Ignore processes in state FORK_STATE_VFORK_0.
14930
14931 * libc/sys/win32/syscalls.h (procinfo): New members `handle_valid_p'
14932 and `exit_code'.
14933 * libc/sys/win32/spawn.c (allocate_spawn_entry): Initialize them.
14934 (vfork0): Likewise. Distinguish children, grandchildren, etc. by
14935 adding vfork level to pseudo-pid.
14936 (vfork1): If not root, set state back to FORK_STATE_VFORK_0.
14937 (spawnvp, spawnv, _execve): Set handle_valid_p if success.
14938 (_exit): If child, set exit code.
14939 (__vfork_record_death): Only close process handle if valid.
14940 * libc/sys/win32/wait.c (wait_for_single): Watch for children that
14941 didn't exec.
14942 (wait_for_any): Likewise. Start scan after root entry.
14943
14944 Fri Sep 8 18:48:02 1995 Jason Molenda (crash@phydeaux.cygnus.com)
14945
14946 * libc/include/sys/types.h (off_t): off_t back to 32 bits.
14947 * libc/include/sys/_types.h (_off_t): _off_t back to 32 bits.
14948 * libc/sys/win32/syscalls.c (_fstat): st_size is lower 32-bits
14949 of actual file length.
14950
14951 * libc/sys/win32/sys/wait.h: include <sys/types.h>.
14952 * libc/include/paths.h: _PATH_BSHELL added.
14953 * libc/include/sys/unistd.h: define STDIN_FILENO, STDOUT_FILENO,
14954 and STDERR_FILENO.
14955
14956 Thu Sep 7 21:02:22 1995 Jason Molenda (crash@phydeaux.cygnus.com)
14957
14958 * libc/include/ar.h: Added.
14959 * libc/include/sys/types.h: ino_t goes back to 32-bits.
14960 * libc/sys/win32/syscalls.h (hinfo): added .namehash field.
14961 * libc/sys/win32/syscalls.c (_open): compute .namehash based
14962 on filename.
14963 (_fstat): use .namehash for inode number of the fd.
14964
14965 Thu Sep 7 12:57:19 1995 steve chamberlain <sac@slash.cygnus.com>
14966
14967 * libc/sys/win32/{console,ioctl,pipe,spawn,syscalls,wait}.? (*):
14968 Change hinfo to __this_procinfo.
14969 * libc/sys/win32/crt0.c: Remove procinfo_list.
14970
14971 Wed Sep 6 18:38:26 1995 Jason Molenda (crash@phydeaux.cygnus.com)
14972
14973 * libc/include/sys/types.h (ino_t): Define ino_t correctly for
14974 win32 environment.
14975
14976 Wed Sep 6 18:09:29 1995 Jason Molenda (crash@phydeaux.cygnus.com)
14977
14978 * libc/sys/win32/include/grp.h: Removed.
14979 * libc/sys/include/grp.h: Added.
14980 * libc/sys/win32/grp.c: Include <grp.h>.
14981
14982 Wed Sep 6 16:52:48 1995 steve chamberlain <sac@slash.cygnus.com>
14983
14984 * libc/include/sys/signal.h (__need_MAX_SIGNALS): Removed.
14985 (sigset_t, sigaction, SIG_SETMASK, SIG_BLOCK, SIG_UNBLOCK):
14986 Defined for all but strict ANSI.
14987 * libc/include/sys/reent.h (__need_MAX_SIGNALS): Removed.
14988 * libc/include/machine/setjmp.h: Get win32 _JBLEN right.
14989 * libc/signal/signal.c (_signal_r): Changed from using
14990 _MAX_SIGNALS to NSIG.
14991 * libc/sys/win32/crt0.c (__current_pid, __parent_hmap, __child_hmap,
14992 __hmap): Deleted.
14993 (__strace, __vfork_next_pid): New.
14994 (__exe_suffix): Default to 1.
14995 (passover, table): Understand quoted arguments.
14996 (vfork_init_first): New.
14997 (vfork_init): Initialize new process structure.
14998 (mainCRTStartup): Pass environ to main.
14999 * exceptions.c (__sig_mask): New
15000 (ehandler3): Ignore signals in mask.
15001 (really_exit): Remove CHILD_P test.
15002 * pipe.c (pipe, dup, dup2): Use new process and file structure.
15003 * resource.c (getrusage): Ditto.
15004 * signal.c (sigprocmask): New.
15005 * spawn.c (*): Rewritten.
15006 * syscalls.c (*): Use new process and file structure.
15007 (find_unused_handle): New.
15008 * syscalls.h (MAX_HANDLES): Deleted.
15009 (hinfo): Removed child_created_p.
15010 (MAX_CHILDREN): Deleted.
15011 (vfork_jmp_info, procinfo): New.
15012 * wait.c (*): Mostly new.
15013 * sys/strace.h (_STRACE_PARANOID): New.
15014 * sys/param.h: New file.
15015
15016 Wed Sep 6 17:03:53 1995 Jason Molenda (crash@phydeaux.cygnus.com)
15017
15018 * libc/include/sys/stat.h: add S_BLKSIZE.
15019 * libc/include/sys/_types.h: _off_t is a 64-bit type under win32.
15020 * libc/include/sys/types.h: define off_t and ino_t to be 64 bit
15021 types under win32.
15022 (mode_t): add a #else to avoid multiple definitons.
15023
15024 * libc/sys/win32/Makefile.in: add grp.c.
15025 * libc/sys/win32/grp.c: include grp.h correctly.
15026 * libc/sys/win32/syscalls.c (_fstat): set almost all of the fields
15027 of the st structure with real information.
15028 * libc/sys/win32 (dirent): d_ino is of type ino_t.
15029
15030 Wed Sep 6 10:41:34 1995 Doug Evans <dje@canuck.cygnus.com>
15031
15032 * libc/include/sys/types.h (mode_t): Correct for svr4 sparc's
15033 and (maybe) sparc64.
15034 (nlink_t): Provide typedef.
15035
15036 Tue Sep 5 18:46:05 1995 Jason Molenda (crash@phydeaux.cygnus.com)
15037
15038 * libc/sys/win32/grp.c: New file.
15039 * libc/sys/win32/include/grp.h: New file.
15040
15041 Tue Sep 5 13:47:27 1995 J.T. Conklin <jtc@rtl.cygnus.com>
15042
15043 * libc/include/machine/ieeefp.h: Added whitespace to make this
15044 file easier to maintain.
15045 On the sh, define either __IEEE_BIG_ENDIAN or __IEEE_LITTLE_ENDIAN
15046 depending on the value of __LITTLE_ENDIAN__.
15047 On the sh3e, define _DOUBLE_IS_32BITS.
15048
15049 Fri Sep 1 15:35:18 1995 James G. Smith <jsmith@beauty.cygnus.com>
15050
15051 * libc/sys/vr4300/syscalls.c: Added missing support
15052 routines. _raise() and getpid().
15053
15054 Fri Sep 1 14:12:48 1995 James G. Smith <jsmith@rtl.cygnus.com>
15055
15056 * configure.in (mips*vr4300*-*-elf): Fixed silly mistake
15057
15058 Fri Sep 1 08:42:11 1995 James G. Smith <jsmith@beauty.cygnus.com>
15059
15060 * configure.in (mips*vr4300*-idt-*) Add support for RISQ monitor
15061 and VR4300 processor.
15062 * libc/sys/vr4300: Add directory.
15063 * libc/sys/vr4300/{Makefile.in, crt0.S, syscalls.c}: Add SIM
15064 monitor run-time support.
15065
15066 Thu Aug 31 09:16:52 1995 J.T. Conklin <jtc@rtl.cygnus.com>
15067
15068 * libc/stdlib/Makefile.in (CHEWOUT_FILES): Removed atol.def.
15069 * libc/stdlib/stdlib.tex: Don't include atol.def.
15070
15071 Wed Aug 30 20:38:28 1995 Jason Molenda (crash@phydeaux.cygnus.com)
15072
15073 * libc/sys/win32/uname.c (uname): hardcode processor as `i386'.
15074
15075 Wed Aug 30 10:48:08 1995 steve chamberlain <sac@slash.cygnus.com>
15076
15077 * libc/ctype/Makefile.in: Fill in _to* dependencies.
15078
15079 Tue Aug 29 17:14:29 1995 steve chamberlain <sac@slash.cygnus.com>
15080
15081 * libc/sys/win32/{dirsearch.c,sys/dirent.h}: Fix namespace problems.
15082 * libc/sys/win32/sys/dirent.h (struct dirent): Added d_ino.
15083 * libc/sys/win32/strace.c (__sys_printf): Increase size of buffer.
15084 * libc/sys/win32/smallprint.c (__small_vsprintf): Remove debug.
15085 * libc/sys/win32/dirsearch.c (readdir): Set d_ino.
15086
15087 Tue Aug 29 19:00:09 1995 Jason Molenda (crash@phydeaux.cygnus.com)
15088
15089 * libc/stdlib/atol.c (atol): DEFUN -> _DEFUN.
15090
15091 Tue Aug 29 16:08:09 1995 J.T. Conklin <jtc@rtl.cygnus.com>
15092
15093 * libc/stdlib/Makefile.in (OFILES): Added atoff.o and atol.o.
15094 * libc/stdlib/atoff.c: New file.
15095 * libc/stdlib/atof.c (atoff): Moved to atoff.c.
15096 * libc/stdlib/atoi.c (atol): Removed.
15097 * libc/stdlib/atol.c: Removed duplicate documentation.
15098
15099 * libc/include/ctype.h (_tolower, _toupper): Moved inside
15100 #ifndef _STRICT_ANSI conditional.
15101 * libc/ctype/Makefile.in (OFILES): Added _tolower.o and _toupper.o
15102 * libc/ctype/_tolower.c: New file.
15103 * libc/ctype/_toupper.c: New file.
15104 * libc/ctype/tolower.c (_tolower): Moved to _tolower.c.
15105 * libc/ctype/toupper.c (_toupper): Moved to _toupper.c.
15106 * libc/ctype/toascii.c (_toascii): Removed.
15107
15108 Tue Aug 29 12:17:32 1995 Doug Evans <dje@canuck.cygnus.com>
15109
15110 * libc/sys/sparc64/sys/types.h: Deleted.
15111
15112 Mon Aug 28 22:06:08 1995 Jason Molenda (crash@phydeaux.cygnus.com)
15113
15114 * libc/sys/win32/uname.c (uname): change `Windows/NT' to `Windows_NT'
15115 and recognize Windows_95 systems.
15116
15117 Mon Aug 28 19:50:54 1995 Jason Molenda (crash@phydeaux.cygnus.com)
15118
15119 * libc/sys/win32/crt0.c (vfork_init, hmap_init): standard I/O fds
15120 and passed fds should be opened in text mode.
15121
15122 Mon Aug 28 18:51:22 1995 Jason Molenda (crash@phydeaux.cygnus.com)
15123
15124 * libc/sys/win32/crt0.c (vfork_init): mark passed fds as used
15125 in __hmap, set to binary mode by default.
15126
15127 Tue Aug 22 14:12:37 1995 J.T. Conklin <jtc@rtl.cygnus.com>
15128
15129 * libc/sys/sh/syscalls.c: Updated all functions to call __trap34.
15130 * libc/sys/sh/trap.S (__trap34): Renamed from __trap3. Use trap
15131 vector 34.
15132
15133 Sat Aug 19 18:25:37 1995 steve chamberlain <sac@slash.cygnus.com>
15134
15135 * Makefile.in (install): Install all libraries found in the
15136 top level. If there's a sys/<type>/include directory,
15137 install those headers into include.
15138
15139 * libc/sys/win32/kernel.def351: Delete
15140 * libc/sys/win32/{comctl32.def, comdlg32.def, ctl3d32.def,
15141 glaux.def, glu32.def, largeint.def, libc.def, libcmt.def,
15142 lz32.def, mgmtapi.def, mpr.def, msacm32.def, msvcrt.def,
15143 nddeapi.def, netapi32.def, odbc32.def, odbccp32.def, oldnames.def,
15144 ole32.def, oleaut32.def, opengl32.def, rasapi32.def, rpcndr.def,
15145 rpcns4.def, rpcrt4.def, scrnsave.def, shell32.def, snmp.def,
15146 uuid.def, vdmdbg.def, version.def, vfw32.def, win32spl.def,
15147 winmm.def, winspool.def, winstrm.def, wsock32.def}: New.
15148
15149 * libc/sys/win32/Makefile.in: Update for new files and new dlltool options.
15150 * libc/sys/win32/crt0.c: Force all env names to upper case.
15151 * libc/sys/win32/sys/win*.h -> libc/sys/win32/include
15152 * libc/sys/win32/*.c: Headers have moved.
15153 * libs/sys/win32/*.[ch]: Test for open_p rather than BAD_HANDLE,
15154 __vfork_child_idx is now __vfork_child_ptr.
15155
15156 * posix/execvp (execvp): Don't crash if no PATH envname.
15157
15158 Fri Aug 18 12:22:59 1995 J.T. Conklin <jtc@rtl.cygnus.com>
15159
15160 * libc/include/sys/reent.h (_Bigint): Removed _reclaim field.
15161 * libc/reent/reent.c (_reclaim_reent): Free Bigint's by going
15162 through the _freelist instead of through the _reclaim list.
15163 * libc/stdlib/mprec.c (_Balloc): Don't put new node on _reclaim list.
15164 * libc/stdlib/mprec.c (_Bcopy): Make like version in master dtoa.c
15165 sources.
15166
15167 Thu Aug 17 11:03:27 1995 J.T. Conklin <jtc@rtl.cygnus.com>
15168
15169 * libc/machine/h8500/setjmp.S: New file.
15170 * libc/include/machine/setjmp.h: Updated for H8/500.
15171
15172 Wed Aug 16 16:19:11 1995 steve chamberlain <sac@slash.cygnus.com>
15173
15174 * libc/sys/win32/syscalls.c (_open): More stracing.
15175 (_stat): Open the file in O_BINARY.
15176
15177 Wed Aug 16 15:49:01 1995 J.T. Conklin <jtc@rtl.cygnus.com>
15178
15179 * libc/machine/h8300/setjmp.S: New file.
15180 * libc/include/machine/setjmp.h: Updated for H8/300 and H8/300H.
15181
15182 Tue Aug 15 10:31:09 1995 Doug Evans <dje@canuck.cygnus.com>
15183
15184 * libc/sys/win32/crt0.c (__exe_suffix): New global.
15185 (mainCRTStartup): Set __exe_suffix from LIBC_EXE_SUFFIX.
15186 * libc/sys/win32/spawn.c (_spawn): Add .exe suffix based on
15187 __exe_suffix. Free fd_tab after setting env variable.
15188 (spawnv,_execve): Update.
15189 * libc/sys/win32/syscalls.h (__exe_suffix): Declare.
15190 * libc/sys/win32/smallprint.c (puts,putn): New (static) functions.
15191 (__small_vfprintf): New function.
15192 * libc/sys/win32/strace.c (__sys_printf): Call __small_vfprintf.
15193 * libc/sys/win32/wait.c (cwait): Validate argument.
15194
15195 * libc/sys/win32/syscalls.c (queue_file_deletion): Add trace message.
15196 (process_deletion_queue): Likewise.
15197
15198 * libc/sys/win32/Makefile.in (lib.a): Don't call $(RANLIB).
15199
15200 Mon Aug 14 10:14:10 1995 steve chamberlain <sac@slash.cygnus.com>
15201
15202 * libc/sys/win32: Copyrights and gratuitous indenting.
15203
15204 Mon Aug 14 01:32:58 1995 Doug Evans <dje@canuck.cygnus.com>
15205
15206 * libc/sys/win32/syscalls.c (queue_file_deletion): Finish.
15207 (process_deletion_queue): Likewise.
15208 (__close_all_files): New function.
15209 (_close): Only queue file deletion if really a file.
15210 * libc/sys/win32/spawn.c (_spawn): Only ensure .exe suffix if
15211 _P_APPEND_EXE.
15212 (_exit): Call __close_all_files.
15213
15214 * libc/stdlib/system.c: #include <errno.h>.
15215 (_system_r): Fix results in -DNO_EXEC case.
15216
15217 * libc/sys/win32/sys/dirent.h (DIR): New member __d_dirname.
15218 Reorganize structure.
15219 * libc/sys/win32/dirsearch.c (opendir): Use stat to determine
15220 if argument is valid. Save directory name in DIR. malloc space
15221 for dirent struct separately.
15222 * libc/sys/win32/syscalls.c (stat): Fix test for directory.
15223
15224 * libc/include/errno.h (ENAMETOOLONG): Define.
15225 * libc/string/strerror.c (strerror): Reword ENFILE.
15226 Add ENOSYS, ENMFILE, ENOTEMPTY, ENAMETOOLONG.
15227
15228 Sun Aug 13 22:42:25 1995 Doug Evans <dje@canuck.cygnus.com>
15229
15230 * libc/sys/win32/crt0.c (__progname): New global.
15231 (mainCRTStartup): Support strace=bitmask,filename.
15232 * libc/sys/win32/dirsearch.c (all fns): Add trace messages.
15233 * libc/sys/win32/syscalls.c (_write): Print parent trace message
15234 if error.
15235 (getcwd): Handle len too small. Convert '\\' to '/'.
15236 * libc/sys/win32/sys/fcntl.h (O_RDWR): = O_RDONLY|O_WRONLY.
15237 Add prototypes for open, creat, fcntl.
15238 (O_APPEND): Change value to conform to Microsoft's value.
15239 * libc/sys/win32/sys/strace.h (_STRACE): Protect in do/while.
15240
15241 * libc/stdlib/getopt.c: New file.
15242 * libc/stdlib/Makefile.in: Build it.
15243
15244 Sat Aug 12 12:17:14 1995 Doug Evans <dje@canuck.cygnus.com>
15245
15246 * libc/posix/execvp.c (execvp): Watch for DOS drives ifdef _WIN32.
15247 Fix scanning of $PATH.
15248 * libc/posix/exec*.c: Call _execve, not execve.
15249 * libc/posix/execve.c: New file.
15250 * libc/posix/Makefile.in (OFILES): Add execve.o.
15251
15252 * libc/sys/win32/sys/strace.h (_STRACE_ALL, _STRACE_UHOH,
15253 _STRACE_STARTUP, _STRACE_SYSCALL): More bit masks of things to trace.
15254 (_STRACE): If level==0, always print. Handle new bit mask scheme.
15255 * libc/sys/win32/crt0.c: Update _STRACE calls.
15256 * libc/sys/win32/{pipe.c,resource.c,spawn.c,syscalls.c,wait.c}: Ditto.
15257
15258 * libc/sys/win32/smallprint.c (rn): Fix digit list.
15259
15260 * libc/sys/win32/syscalls.c (__really_exit): Move from here,
15261 * libc/sys/win32/exceptions.c (really_exit): to here. Avoid recursion.
15262 * libc/sys/win32/spawn.c (spawnvp): Pass `prog' as image name.
15263 Print __seterrno trace message first.
15264 (_execve): Renamed from execve.
15265 (vfork): Update __strace usage.
15266 (__vfork_child_pid): Deleted.
15267 (__vfork_children, __vfork_child_idx): New globals.
15268 (_spawnvp): New function.
15269 (spawnvp, spawnv, _execve): Call _spawnvp.
15270 (init_child): Record child in __vfork_children.
15271 (__vfork_get_entry, __vfork_record_death): New functions.
15272 * libc/sys/win32/crt0.c (mainCRTStartup): Initialize __vfork_children.
15273 * libc/sys/win32/kernel32.def (WaitForMultipleObjects): Define.
15274 * libc/sys/win32/syscalls.h (CHILD_P): New macro. All files updated.
15275 (MAX_CHILDREN, CHILD_INTERIM_PID): Define.
15276 (children): New typedef.
15277 (__vfork_children,__vfork_child_idx): Declare.
15278 (__vfork_get_entry,__vfork_record_death): Declare.
15279 * libc/sys/win32/wait.c (wait_for_single,wait_for_any): New functions.
15280 (waitpid): Handle pid == -1.
15281 * libc/sys/win32/sys/wintypes.h (WaitForMultipleObjects): Declare.
15282 * configure.in (i386-win32): Add -DNO_FORK.
15283 * libc/syscalls/sysfork.c (fork): Don't define for NO_FORK.
15284 * libc/reent/execr.c (_fork_r): Likewise.
15285 * libc/stdlib/system.c (do_system): New function.
15286 If WIN32, try to get shell path from $SH_PATH, use vfork.
15287 (_system_r): Return 1 for (s == NULL) if WIN32 or unix,
15288 otherwise return 0.
15289
15290 Sat Aug 12 11:08:00 1995 steve chamberlain <sac@slash.cygnus.com>
15291
15292 * libc/stdlib/{mallocr.c, mstats.c}: Move mstats from mallocr to mstats.c.
15293 * libc/sys/win32/fcntl.h: Don't include self.
15294 * libc/sys/win32/sys/strace.h (_STRACE_WM, _strace_wm): New.
15295 * libc/sys/win32/sys/winbase.h: (GetUserName) New.
15296 * libc/sys/win32/sys/wincon.h (HANDLER_ROUTINE): Define correctly.
15297 * libc/sys/win32/sys/wintypes.h (GetFileType, GetCurrentProcess, CloseHandle,
15298 SetFilePointer, CreateFileA, GetFileInformationByHandle, GetStdHandle):
15299 Correct prototypes.
15300 * libc/sys/win32/strace.c: New file.
15301 * libc/sys/win32/smallprint.c: New file.
15302 * libc/sys/win32/crt0.c (func): Delete.
15303 (mainCRTStartup): Fix alloca usage. Set handles explictly.
15304 * libc/sys/win32/dirsearch.c: Clean up handle usage, fix calls to __seterrno.
15305 * libc/sys/win32/exceptions.c: Lint.
15306 * libc/sys/win32/{ioctl.c, pipe.c, resource.c, spawn.c, cwait.c, syscalls.c}:
15307 Clean up handle usage.
15308 * libc/sys/win32/syscalls.c (__sys_printf): Moved into strace.c
15309 (open.c): Default file type is text.
15310 * libc/sys/win32/uname.c (uname): Use __small_sprintf.
15311 * libc/sys/win32/advapi32.def: New
15312
15313 Fri Aug 11 17:11:52 1995 Doug Evans <dje@canuck.cygnus.com>
15314
15315 * configure.in (posix_dir, libc_posix_lib): New variables.
15316 Define LIBC_POSIX_LIB in makefile to be $libc_posix_lib.
15317 (i[345]86-*-win32): Define posix_dir.
15318 Delete -DNO_EXEC. Define -DHAVE_OPENDIR.
15319 (if unix_dir): Fix typo.
15320 * libc/posix/{Makefile.in,closedir,opendir,readdir,rewinddir,
15321 scandir,seekdir,telldir}: New files.
15322 * libc/posix/{execl.c,execle.c,execlp.c,execv.c,execvp.c}: Move here
15323 from libc/unix.
15324 * libc/Makefile.in (LIBC_POSIX_LIB): Define.
15325 (SUBDIRS): Add posix.
15326 (SUBLIBS): Add $(LIBC_POSIX_LIB).
15327
15328 * libc/include/sys/signal.h (SIGCHLD): Add for _WIN32.
15329 (NSIG): Increase to 21.
15330 * libc/include/sys/unistd.h (pid_t): Move from here,
15331 * libc/include/sys/types.h (pid_t): to here.
15332
15333 * libc/sys/win32/syscalls.h: #include "sys/strace.h".
15334 (__ptrace): Delete.
15335 (hinfo): New members close_exec_p, child_created_p.
15336 (struct exception_list): Define.
15337 (__hmap): Redefine as pointer to table.
15338 (__parent_hmap, __child_hmap): New globals.
15339 (__set_errno, __really_exit): Declare.
15340 (__vfork_child_pid): Declare.
15341 * libc/sys/win32/crt0.c (__strace, __trace_file): New global.
15342 (__orig_stdin, __orig_stdout, __orig_stderr): New globals.
15343 (__parent_hmap, __child_hmap): New globals.
15344 (__hmap): Redefine as pointer to active map.
15345 (__get_console): New function.
15346 (mainCRTStartup): Change leading '=' in environ vars to '!'.
15347 (env __FD_TABLE__): Watch for this and initialize our fd/handle
15348 mapping table from it if defined.
15349 (argv, envp): Dump if __strace >= 4.
15350 (main): Call here.
15351 * libc/sys/win32/exceptions.c (myp): Redefine.
15352 (__syscalls_b): Delete.
15353 (__stack_trace): New function.
15354 (ehandler3): Update to use _STRACE. Print stack trace.
15355 Call __really_exit instead of exit.
15356 (init_exceptions): Delete args argc,argv. New arg mine.
15357 * libc/sys/win32/kernel32.def (CreatePipe, DuplicateHandle, FindClose,
15358 FindFirstFileA, FindNextFileA, GetComputerNameA,
15359 GetEnvironmentVariableA, ReadFile, SetEnvironmentVariableA): Define.
15360 * libc/sys/win32/signal.c (signal): Validate arg.
15361 (alarm, sleep): Define as stubs for now.
15362 * libc/sys/win32/syscalls.c (all fns): Update to use _STRACE.
15363 (__syscalls_b, errno): Delete.
15364 (__vfork_child_pid, __vfork_jmp_buf): New globals.
15365 (__seterrno): Handle more errors.
15366 (__sys_printf): Renamed from _ptrace.
15367 (__really_exit): New function.
15368 (queue_file_deletion, process_deletion_queue): New functions.
15369 (__resume_parent): New function.
15370 (_unlink): Handle trying to delete open file.
15371 (__totime_t): Renamed from totime_t.
15372 (setsid, __read, __write): New functions.
15373 (cwait, spawnvp, R, D, getrusage, _execve, _fork, _wait): Delete.
15374 * libc/sys/win32/{dirsearch.c,getlogin.c,misc.c,resource.c,passwd.c,
15375 times.c,spawn.c,pipe.c,wait.c,termios.c,ioctl.c,uname.c}: New files.
15376 * libc/sys/win32/console.c: Update to new definition of __hmap.
15377 * libc/sys/win32/Makefile.in: Build new files.
15378 * libc/sys/win32/sys/{dirent.h,winerror.h,wait.h,termios.h}: New files.
15379 * libc/sys/win32/sys/{ioctl.h,utsname.h}: New files.
15380 * libc/sys/win32/sys/strace.h: Renamed from ptrace.h.
15381 * libc/sys/win32/sys/wintypes.h (GetCurrentDirectoryA): Fix prototype.
15382
15383 Thu Aug 10 16:32:52 1995 Doug Evans <dje@canuck.cygnus.com>
15384
15385 * libc/sys/h8500hms/misc.c (kill): Handle SIGABRT.
15386
15387 Thu Aug 10 12:07:38 1995 J.T. Conklin <jtc@rtl.cygnus.com>
15388
15389 * libc/stdlib/{dtoa.c, strtod.c}: Merged assorted changes that
15390 have been made to the master dtoa.c sources (from netlib.att.com)
15391 since they were integrated into newlib in early 1992. Fixes
15392 problems with storage leaks and handling of numbers with very
15393 negative exponents.
15394
15395 Wed Aug 9 14:18:39 1995 J.T. Conklin <jtc@rtl.cygnus.com>
15396
15397 * Makefile.in (all): set rootpre and srcrootpre before calling
15398 sub-makes.
15399
15400 Tue Aug 8 17:20:45 1995 steve chamberlain <sac@slash.cygnus.com>
15401
15402 * libc/sys/win32/crt0.c: Change __hmap usage.
15403 * libc/sys/win32/exceptions.c: Use _ptrace call.
15404 * libc/sys/win32/syscalls.c: Use _ptrace call.
15405 (read, write): Cope with DOS style CRLF when in TEXT mode.
15406 * libc/sys/win32/syscalls.h: Declare hinfo struct.
15407 * libc/sys/win32/user32.def: Get DefWindowProc arg list right.
15408 * libc/sys/win32/sys/fcntl.h, ptrace.h: New.
15409 * libc/sys/win32/sys/windows.h: Fill in rest of messages.
15410 * libc/sys/win32/sys/wintypes.h: Fix attribute syntax.
15411
15412 Mon Aug 7 13:04:54 1995 J.T. Conklin <jtc@rtl.cygnus.com>
15413
15414 * libc/include/math.h (cabs, cabsf, drem, dremf): New declarations.
15415
15416 * libm/math/{w_cabs.c, wf_cabs.c, w_drem.c, wf_drem.c}: New files,
15417 wrappers for hypot() and remainder() for BSD libm compatibility.
15418 These are public domain implementations written by me for the
15419 NetBSD libm some time ago. Note cabs() is required by ucbtest.
15420 * libm/math/Makefile.in (obj): Added w_cabs.o and w_drem.o.
15421 (fobj): Added wf_cabs.o and wf_drem.o.
15422
15423 Thu Aug 3 08:13:05 1995 J.T. Conklin <jtc@rtl.cygnus.com>
15424
15425 * libc/sys/h8500hms/misc.c: New file.
15426 * libc/sys/h8500hms/Makefile.in (OFILES): Add misc.o.
15427
15428 Wed Aug 2 16:46:27 1995 J.T. Conklin <jtc@rtl.cygnus.com>
15429
15430 * libc/time/localtime.c (localtime): Fix problem with leap year
15431 handling. Stole algorithm from Arthur David Olson's tz code.
15432
15433 Mon Jul 31 10:21:54 1995 steve chamberlain <sac@slash.cygnus.com>
15434
15435 * configure.in: (z8k-*sim): Renamed z8k-*-coff.
15436
15437 * libc/sys/z8ksim/glue.c (_getpid, _kill): New
15438 (_exit): Use argument.
15439
15440 Fri Jul 28 15:17:04 1995 Doug Evans <dje@canuck.cygnus.com>
15441
15442 * libc/sys/win32/sys/winbase.h (_WINBASE_H): Define.
15443
15444 Wed Jul 26 16:24:19 1995 steve chamberlain <sac@slash.cygnus.com>
15445
15446 * libc/sys/sh/trap.S (perrno): Align correctly. (pr 7532)
15447
15448 Mon Jul 24 13:42:52 1995 J.T. Conklin <jtc@rtl.cygnus.com>
15449
15450 * configure.in (sparc*): Add -DMALLOC_ALIGNMENT=8 to
15451 target_cflags.
15452
15453 Mon Jul 24 11:42:07 1995 steve chamberlain <sac@slash.cygnus.com>
15454
15455 * libc/sys/win32/crt0.c (mainCRTStartup): Look for
15456 ptrace with case insensitivity
15457 * libc/sys/win32/{user32.def, gdi32.def, exceptions.c, screen.c,
15458 sys/winbase.h, sys/windows.h, sys/wintypes.h, sys/winuser.h}:
15459 New files.
15460
15461 Fri Jul 21 11:22:26 1995 Doug Evans <dje@canuck.cygnus.com>
15462
15463 * Makefile.in: Multilib support moved to ../cfg-ml-{com,pos}.in.
15464 (MULTITOP, MULTIDIRS, MULTISUBDIR, MULTIDO, MULTICLEAN): New variables.
15465 (all, install, *clean): Use new multilib support.
15466 * configure.in: Multilib support moved to ../cfg-ml-{com,pos}.in.
15467
15468 Fri Jul 21 07:11:42 1995 steve chamberlain <sac@slash.cygnus.com>
15469
15470 * libc/include/sys/signal.h (__WIN32__): New.
15471
15472 * configure.in (i386-*-win32): Remobe SBRK_IS_ALLOC.
15473
15474 * libc/stdlib/mprec.c (Balloc): Fix trampling problem.
15475 (ulp, b2d): Handle 32 bit doubles.
15476 * libc/stdlib/mprec.h: Handle 32 bit doubles.
15477 * libc/stdlib/strtod.c (_strtod_r): Ditto.
15478
15479 Fri Jul 14 08:24:58 1995 steve chamberlain <sac@slash.cygnus.com>
15480
15481 from medp@primag.co.uk:
15482 * libc/stdio/setvbuf.c (setvbuf): Fix line buffering on
15483 dynamically allocated buffers.
15484
15485 Thu Jul 20 10:11:03 1995 Fred Fish <fnf@fishbowl>
15486
15487 * libc/include/sys/unistd.h (_exit): Add _ATTRIBUTE ((noreturn)).
15488 * libc/stdlib/exit.c (unistd.h): Include to pick up _exit() declaration.
15489
15490 Thu Jul 20 10:16:25 1995 Michael Meissner <meissner@tiktok.cygnus.com>
15491
15492 * configure.in (powerpc): Fix previous fix.
15493
15494 Wed Jul 19 14:08:55 1995 Michael Meissner <meissner@tiktok.cygnus.com>
15495
15496 * configure.in (powerpc-*eabiaix*): Update PowerPC multilib
15497 directories for this target.
15498
15499 Wed Jul 19 00:34:30 1995 Jeffrey A. Law <law@rtl.cygnus.com>
15500
15501 * configure.in (hppa): Add machine_dir definition.
15502 * libc/machine/hppa: New directory with PA specific implementations
15503 of the basic memory/string functions.
15504
15505 Tue Jul 18 21:16:00 1995 Michael Meissner <meissner@tiktok.cygnus.com>
15506
15507 * configure.in: Update current PowerPC multilib directories.
15508 Split big and little endian configurations.
15509
15510 Tue Jul 18 11:55:33 1995 Ian Lance Taylor <ian@cygnus.com>
15511
15512 * configure.in: Add --enable-single-float option to configure to
15513 control use of MIPS single-float directories. Default to yes.
15514
15515 * Makefile.in (all): Don't recurse into multilib directory if it
15516 does not exist.
15517
15518 Mon Jul 17 15:51:30 1995 J.T. Conklin <jtc@rtl.cygnus.com>
15519
15520 * libc/sys/sh/syscalls.c: Fix typo.
15521
15522 Mon Jul 3 14:38:52 1995 Steve Chamberlain <sac@slash.cygnus.com>
15523
15524 * Makefile.in, libc/Makefile.in, libc/sys/Makefile.in:
15525 Pass down DLLTOOL.
15526 * libc/include/process.h: Define WAIT_CHILD.
15527 * libc/include/types.h: Get sizes right for win32.
15528 * configure.in (i386-*-pe): Becomes i386-win32.
15529 * libc/sys/win32/{crt0.c, kernel32.def, longjmp.c, setjmp.c, syscalls.c
15530 wintypes.h,sys/file.h,sys/resource.h}: Second pass.
15531 * libc/stdlib/mallocr.c: Don't round up memory block if SBRK_IS_ALLOC
15532 is defined.
15533
15534 Wed Jun 28 18:34:54 1995 Steve Chamberlain <sac@slash.cygnus.com>
15535
15536 * configure.in (i[345]86-*-pe): New target (NT).
15537 * host/any: DLLTOOL new.
15538 * libc/sys/win32/{crt0.c, kernel32.def, longjmp.c, setjmp.c, syscalls.c
15539 wintypes.h,sys/file.h,sys/resource.h}: Preliminary support for
15540 WIN32 (just enough to cross host the comp-tools).
15541
15542 Thu Jun 22 11:45:18 1995 Doug Evans <dje@canuck.cygnus.com>
15543
15544 * libc/machine/h8300/{cmpsi.S,ucmpsi.S,divhi3.S,mulhi3.S,mulsi3.S}:
15545 Deleted. These files live in gcc/config/h8300/lib1funcs.asm now.
15546
15547 Mon Jun 19 11:40:40 1995 Doug Evans <dje@canuck.cygnus.com>
15548
15549 * libc/include/machine/ieeefp.h (arm): Change to always be
15550 __IEEE_BIG_ENDIAN (even on little endian ARM's).
15551
15552 Thu Jun 8 14:22:28 1995 Steve Chamberlain <sac@slash.cygnus.com>
15553
15554 * libc/sys/crt0.S: Initialze sp, and call exit after main.
15555 * libc/sys/syscalls.c (abort): New.
15556 * configure.in (arm): Define ABORT_PROVIDED.
15557
15558 Wed Jun 7 14:04:35 1995 J.T. Conklin <jtc@rtl.cygnus.com>
15559
15560 * configure.in (powerpc): Define multidirs.
15561
15562 Mon Jun 5 16:10:13 1995 Doug Evans <dje@canuck.cygnus.com>
15563
15564 * libc/sys/arm/crt0.S: Add __USER_LABEL_PREFIX__ support.
15565
15566 Thu Jun 1 10:51:47 1995 Sean Eric Fagan <sef@cygnus.com>
15567
15568 * configure.in (sparclite): Delete target_cflags. Define multidirs.
15569
15570 Wed May 24 14:23:25 1995 Steve Chamberlain <sac@slash.cygnus.com>
15571
15572 * configure.in, libc/include/machine/ieeefp.h: Modified
15573 for arm:
15574 libc/machine/arm/*, libc/sys/arm/*: New
15575
15576 Tue May 23 13:53:07 1995 J.T. Conklin <jtc@rtl.cygnus.com>
15577
15578 * libc/include/machine/ieeefp.h: Use __PPC__ instead of
15579 __powerpc__ when determining endianness.
15580
15581 Wed May 10 07:55:56 1995 J.T. Conklin <jtc@rtl.cygnus.com>
15582
15583 * configure.in (m68*): Add multidir for the m68332.
15584
15585 * host/any (CC): Fix typo in last change.
15586
15587 Fri Apr 14 22:20:31 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
15588
15589 * libc/include/sys/config.h: Test __m68k__ instead of __m68000__
15590 when determining endianness.
15591 * libc/include/machine/ieeefp.h: Ditto.
15592 * libc/machine/m68k/setjmp.S: Use '&' instead of '#' for immediate
15593 operands.
15594
15595 Fri Apr 14 14:14:29 1995 Doug Evans <dje@chestnut.cygnus.com>
15596
15597 * libc/include/errno.h (ENOTEMPTY): Define.
15598
15599 Thu Apr 6 12:21:20 1995 J.T. Conklin <jtc@rtl.cygnus.com>
15600
15601 * configure.in (sparc-sun-sunos*): Add -DMALLOC_ALIGNMENT=8 to
15602 target_cflags.
15603
15604 * libc/sys/sun4/Makefile.in (COPYOFILES): Added rem.o, multiply.o,
15605 and umultiply.o.
15606
15607 * libc/stdio/tmpnam.c (worker): Unconditionally increment count
15608 instead of only when open succeeds. ANSI requires that multiple
15609 calls to tmpnam() result in different files.
15610
15611 * libc/sys/sun4/Makefile.in (COPYRENAMEOFILES): New macro, list of
15612 objects pulled in from /lib/libc.a that must be renamed before
15613 being pulled into newlib. /lib/libc.a's div.o conflicted with
15614 newlib's file with the same name.
15615
15616 * libc/stdlib/ldiv.c (ldiv): Call labs() instead of abs().
15617
15618 * host/any (CC, AS, AR, RANLIB): Changed so that executables in
15619 the build tree will only be used if the executables are present
15620 (instead of just the Makefiles).
15621
15622 * libc/include/stdlib.h (mblen, mbtowc, wctomb, mbstowcs,
15623 wcstombs): Define.
15624 * libc/stdlib/{mblen.c, mbstowcs.c, wcstombs.c}: New files, null
15625 versions of these functions that I orignally wrote for the
15626 NetBSD C library.
15627 * libc/stdlib/{mbtowc.c, wctomb.c}: Replaced functions with
15628 versions I wrote for NetBSD.
15629
15630 Wed Mar 29 12:42:42 1995 Kung Hsu <kung@mexican.cygnus.com>
15631
15632 * libc/sys/sparclite/Makefile.in: add crt0.s and make info.
15633 * libc/sys/sparclite/crt0.s: ditto.
15634
15635 Tue Mar 28 20:28:03 1995 Rob Savoye <rob@rtl.cygnus.com>
15636
15637 * configure.in: Add soft-float for proelf.
15638
15639 Mon Mar 27 12:07:56 1995 Steve Chamberlain <sac@bang.hack.com>
15640
15641 * libc/stdlib/mprec.h (Bcopy): Copy the right number
15642 of bytes.
15643
15644 Mon Mar 27 11:24:22 1995 Doug Evans <dje@chestnut.cygnus.com>
15645
15646 * Makefile.in (all): Depend on `force'.
15647 * configure.in (syscall_dir): Renamed from fake_sys_dir.
15648 (libc_syscall_lib): Renamed from libc_fake_sys_lib.
15649 (LIBC_SYSCALL_LIB): Renamed from LIBC_FAKE_SYS_LIB.
15650 * libc/Makefile.in: Likewise.
15651 * libc/include/reent.h: Update syscall references.
15652 (_fcntl_r): Add prototype.
15653 * libc/syscalls/*.c #include <reent.h>.
15654 (*) Call reentrant version if REENTRANT_SYSCALLS_PROVIDED.
15655
15656 Mon Mar 20 16:57:39 1995 Doug Evans <dje@deneb.cygnus.com>
15657
15658 * libc/include/sys/stat-dj.h (S_ISBLK): Define.
15659 (S_ISCHR, S_ISDIR, S_ISFIFO, S_ISREG): Define.
15660 * libc/include/sys/stat.h (stat-dj.h): Include ifdef MSDOS.
15661 (time.h, sys/types.h): Always include (even if MSDOS).
15662 (stat): Fix prototype.
15663
15664 Fri Mar 10 11:30:38 1995 Ian Lance Taylor <ian@cygnus.com>
15665
15666 * configure.in (i[345]86-*-go32): Compile with -DNO_EXEC.
15667
15668 Mon Feb 27 18:00:39 1995 Jim Wilson <wilson@chestnut.cygnus.com>
15669
15670 * libc/machine/h8500/psi.S (EXTPSIHI_RN_SN): Ifdef out.
15671
15672 Mon Feb 13 16:10:03 1995 Ian Lance Taylor <ian@cygnus.com>
15673
15674 * libc/include/regdef.h: New file.
15675 * libc/machine/mips/machine/regdef.h: New file.
15676
15677 Mon Feb 6 15:24:29 1995 Doug Evans <dje@canuck.cygnus.com>
15678
15679 * libc/sys/sparc64/sys/fcntl.h (open): Add ellipsis.
15680
15681 Fri Jan 27 13:52:10 1995 Steve Chamberlain <sac@splat>
15682
15683 * libc/sys/sh/crt0.S: Pass main's return to exit.
15684 * libc/sys/sh/trap.S: Put errno in the right place.
15685
15686 Tue Jan 24 18:57:56 1995 Ian Lance Taylor <ian@sanguine.cygnus.com>
15687
15688 * libm/math/e_rem_pio2.c (__ieee754_rem_pio2): Integrate change
15689 from fdlibm 5.2: handle |x| < 3pi/4 more efficiently.
15690 * libm/math/ef_rem_pio2.c: Likewise.
15691 * libm/math/e_log10.c: Remove unused static one.
15692 * libm/math/ef_log10.c: Likewise.
15693 * libm/math/s_frexp.c: Likewise.
15694 * libm/math/sf_frexp.c: Likewise.
15695
15696 Sun Jan 22 21:26:14 1995 Steve Chamberlain <sac@splat>
15697
15698 * libc/sys/go32/Makefile.in, clock.S, dir.c, setjmp.S, stat.c,
15699 longjmp.S: Upgraded.
15700 * libc/sys/go32/sys/setjmp.h: Upgraded.
15701 * libc/sys/go32/sys/go32.h, dpmi.h: New files.
15702
15703 Fri Jan 20 18:33:18 1995 Ian Lance Taylor <ian@sanguine.cygnus.com>
15704
15705 * configure.in: Add many entries to multidirs for mips targets.
15706
15707 Wed Jan 18 10:19:25 1995 J.T. Conklin <jtc@rtl.cygnus.com>
15708
15709 * libm/math/e_jn.c (__ieee754_yn): Integrate change from fdlibm
15710 5.2 which fixes bug where jn(-1,x) is three times larger than
15711 the actual answer.
15712 * libm/math/ef_jn.c (__ieee754_ynf): Likewise.
15713
15714 Sun Jan 15 21:48:58 1995 Steve Chamberlain <sac@splat>
15715
15716 * libc/sys/w65/sys/syscalls.h: New file
15717 * libc/include/machine/ieeefp.h: W65 support.
15718 * libc/include/sys/config.h: Ditto.
15719 * libc/machine/w65/Makefile.in, cmpsi, divsi3, lshrhi.s, mulsi3.c,
15720 sdivhi3.s, smulhi3.s, udivhi3.s, umodhi3.s: New files.
15721 * libc/sys/w65/Makefile.in, crt0.c, syscalls.c, trap.c: New files.
15722
15723 Wed Jan 11 15:59:01 1995 Ian Lance Taylor <ian@sanguine.cygnus.com>
15724
15725 * libc/sys/Makefile.in (lib.a, crt0.o): Depend upon subs.
15726
15727 Tue Jan 3 15:57:03 1995 Rob Savoye <rob@darkstar.cygnus.com>
15728
15729 * Makefile.in, configure.in: Remove any references to the old
15730 "stub" dir.
15731
15732 Thu Dec 22 10:42:08 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
15733
15734 * libc/syscalls/sysopen.c: Write _HAVE_STDC version of open, which
15735 uses ... in prototype.
15736
15737
15738 Wed Nov 30 08:39:42 1994 Ian Lance Taylor <ian@rtl.cygnus.com>
15739
15740 * libc/sys/a29khif/sys/libconfig.h: Remove.
15741 * libc/sys/go32/sys/libconfig.h: Remove.
15742 * libc/sys/sun4/sys/libconfig.h: Remove.
15743 * libc/sys/sysvi386/sys/libconfig.h: Remove.
15744 * libc/sys/sysvnecv70/sys/libconfig.h: Remove.
15745 * libc/sys/sparc64/sys/libconfig.h: Remove.
15746
15747 * libc/include/_ansi.h (_FLOAT_ARG, _FLOAT_RET): Don't define.
15748 * libc/include/sys/config.h (_FLOAT_ARG, _FLOAT_RET): Likewise.
15749 * libc/include/math.h: Change all uses of _FLOAT_RET and
15750 _FLOAT_ARG to float.
15751 * libm/test/math.c: Likewise.
15752 * testsuite/libm.sac/math.c: Likewise.
15753 * testsuite/libm.sac/working/math.c: Likewise.
15754
15755 Wed Nov 23 22:39:28 1994 Steve Chamberlain (sac@jonny.cygnus.com)
15756
15757 * libc/sys/sh/trap.s,crt0.s,setjmp.s: Renamed with .S so that
15758 gcc calls gas with endian option.
15759 * configure.in (sh): Build little endian version too.
15760
15761 Wed Nov 16 18:21:45 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
15762
15763 * configure.in: Configure big and little endian versions for MIPS
15764 targets.
15765
15766 Sat Nov 12 21:12:51 1994 Doug Evans <dje@canuck.cygnus.com>
15767
15768 * libc/include/limits.h: Deleted.
15769 * libc/include/machine/limits.h: Deleted.
15770
15771 Thu Nov 10 15:32:44 1994 Rob Savoye <rob@rtl.cygnus.com>
15772
15773 * ChangeLog: Remove stub directory. This has all been rewritten
15774 and moved to devo/libgloss.
15775
15776 Thu Sep 29 18:31:04 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
15777
15778 * Makefile.in (dvi): Add to info target, use $@ in sub make.
15779 (docs): Merge into info target.
15780 * libm/Makefile.in (dvi): Add $(srcdir).
15781 * libm/math/Makefile.in (chobjs): Remove underscores from file
15782 names. Texinfo doesn't like them.
15783 (wacos.def, ...): Add explicit targets for all .def files.
15784 * libm/math/math.tex: Remove underscores from @include file names.
15785 * doc/Makefile.in (dvi): Add dummy target.
15786 * testsuite/Makefile.in (dvi): Add dummy target.
15787
15788 Mon Sep 26 21:17:46 1994 Doug Evans (dje@canuck.cygnus.com)
15789
15790 * Makefile.in (VERSION): Define. For net newlib releases.
15791
15792 Thu Sep 22 19:01:26 1994 Doug Evans (dje@canuck.cygnus.com)
15793
15794 * README: New file.
15795
15796 Mon Sep 19 16:35:23 1994 Jim Wilson (wilson@sphagnum.cygnus.com)
15797
15798 * libc/stdlib/ecvtbuf.c (_gcvt): Undo last change.
15799
15800 Mon Sep 19 11:44:23 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
15801
15802 * libc/stdlib/setenv.c (_findenv): Declare.
15803
15804 * libc/include/sys/fcntl.h: Fix declarations of open, creat, and
15805 fcntl to not use _EXFUN, and change string parameters to open and
15806 creat to be ``const char *''.
15807 * libc/sys/sparc64/sys/fcntl.h: Likewise.
15808 * libc/sys/sparc64/creat.c (creat): Make PATH const.
15809 * libc/syscalls/sysopen.c: Include <fcntl.h>.
15810 (open) Make _FILE const.
15811 * libc/sys/z8ksim/glue.c (_open): Make BUF const.
15812 (_creat): Make PATH const.
15813 * libc/sys/h8300hms/syscalls.c (_open): Make PATH const.
15814 * libc/sys/h8500hms/syscalls.c (_open): Likewise.
15815 * libc/sys/m88kbug/syscalls.c (open): Likewise.
15816 * libc/sys/sh/syscalls.c (_open): Likewise.
15817 * stub/shared/glue.c (open): Make BUF const.
15818 * stub/ex93x/syscalls.c (open): Make FILENAME const.
15819
15820 Thu Sep 8 16:39:12 1994 Steve Chamberlain (sac@jonny.cygnus.com)
15821
15822 * libc/include/errno.h: Add ENMFILE
15823 * libc/include/sys/config.h: Support Z8000.
15824 * libc/include/sys/signal.h: New signals for go32.
15825 * libc/machine/h8500/psi.S (__addpsir0r0): New function
15826 * libc/machine/h8500/cmpsi.S (__ucmppsi2): New function
15827 * libc/machine/sh/sdivsi3.s (__sdivsi3): Rewritten.
15828 * libc/stdlib/mallocr.c (_morecore_r): Minimum chunk
15829 size is variable, depending upon CHUNK_POWER.
15830 * libc/sys/go32/*.c: Upgrade to new go32 stuff.
15831
15832 Sun Sep 4 17:42:43 1994 Jim Wilson (wilson@sphagnum.cygnus.com)
15833
15834 * libc/stdlib/ecvtbuf.c (_gcvt): Output '-' for negative numbers.
15835
15836 Fri Sep 2 10:56:01 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
15837
15838 * libc/include/_ansi.h (_PARAMS): Don't define if already defined.
15839
15840 Wed Aug 24 11:11:03 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
15841
15842 * configure.in: Change i[34]86 to i[345]86.
15843
15844 * libc/include/math.h: Don't define HUGE_VAL if it is already
15845 defined.
15846
15847 Wed Aug 17 15:18:02 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
15848
15849 * testsuite/libm.sac/test_erfc.c: Correct some result values.
15850 * testsuite/libm.sac/test_gammaf.c: Likewise.
15851 * testsuite/libm.sac/test_sin.c: Likewise.
15852 * testsuite/libm.sac/test_tanh.c: Likewise.
15853
15854 Tue Aug 16 16:12:53 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
15855
15856 * libc/include/machine/ieeefp.h: Don't try set endianness if it is
15857 already set. Define typedefs __int32_t and __uint32_t.
15858 * libc/include/math.h: Include <machine/ieeefp.h>.
15859 (union __dmath): Use __uint32_t.
15860 * libm/math/fdlibm.h, libm/math/*.c: Use __int32_t and __uint32_t
15861 instead of int and unsigned int.
15862
15863 Thu Aug 11 15:16:09 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
15864
15865 Replace the math library with the SunPRO fdlibm package.
15866 * libm/math: Completely changed all files.
15867 * libm/ieeefp: Remove contents and directory.
15868 * libm/Makefile.in (LIBM_FP_LIB): Remove.
15869 (SUBDIRS): Just set to math/lib.a.
15870 * libm/libm.texinfo: Updated for new library.
15871 * libc/include/math.h: Extensive changes for new math library.
15872 * libc/include/ieeefp.h (isnanf, isinff, finitef): Change argument
15873 from _FLOAT_ARG to float.
15874 (maxpowtwo, maxpowtwof): Don't declare.
15875 * configure.in (fp_dir): Removed; was always ieeefp anyhow.
15876 (libm_fp_lib): Removed.
15877 * Makefile.in (MATHOBJS_IN_LIBC): Updated with new file names.
15878 * testsuite/libm.paranoia/Makefile.in (check): Correct --srcdir
15879 argument to ${RUNTEST}.
15880 * testsuite/libm.sac/Makefile.in (LOCAL_CFLAGS): Define.
15881 (.c.o): New rule.
15882 (RUNTESTFLAGS): Set CC and CFLAGS.
15883 (TESTS): Remove test_log2 and test_log2f.
15884 (${TESTS}): Pass ${LOCAL_CFLAGS}, not ${CFLAGS}.
15885 * testsuite/libm.sac/math.c (run_vector_1): Use float, not
15886 _FLOAT_ARG, for single precision argument type.
15887 * testsuite/libm.sac/sac.exp: Treat an error in bit 63 as an
15888 expected failure. Close the input pipe.
15889 * testsuite/libm.sac/test.c (test_sok, test_iok, test_scok):
15890 Correct misspelling of inaccurate.
15891 (test_mok): Use ``inaccurate'', not ``wrong''.
15892 * testsuite/libm.sac/{test_acos.c, test_acosh.c, test_asin.c,
15893 test_asinh.c, test_atan.c, test_atanh.c, test_ceil.c,
15894 test_ceilf.c, test_cos.c, test_cosh.c, test_erf.c, test_erf.c,
15895 test_fabs.c, test_floor.c, test_floorf.c, test_fmod.c,
15896 test_fmodf.c, test_gamma.c, test_log1p.c, test_log1pf.c,
15897 test_yn.c): Correct many result values. Many are still wrong.
15898
15899 * libc/stdlib/ecvtbuf.c (print_e): If _dtoa_r sets decpt to 9999,
15900 just copy the string.
15901 (_gcvt): Always return the buffer.
15902
15903 Tue Aug 9 13:43:23 1994 J.T. Conklin (jtc@phishhead.cygnus.com)
15904
15905 * bcopy.c: fixed documentation, bcopy was not specified by ANSI.
15906
15907 Wed Aug 3 05:39:41 1994 D. V. Henkel-Wallace (gumby@cygnus.com)
15908
15909 * libc/include/sys/reent.h: (struct _Bigint): add _reclaim
15910 structure.
15911 (struct _reent): add _p5s, _cvtlen, _cvtbuf.
15912 (_reclaim_reent): declare new entry point.
15913 * libc/reent/reent.c (cleanup_glue, _reclaim_reent): new
15914 functions.
15915
15916 * libc/stdlib/mprec.c (Balloc): Keep track of every struct bigint
15917 ever allocated, so that we can later reclaim them all.
15918 (pow5mult): make reentrant.
15919
15920 * libc/stdlib/ecvtbuf.c (fcvtbuf, ecvtbuf): extend these functions
15921 so that when given NULL as a buffer, return a pointer to static
15922 space in the rent structure. This is not documented behaviour;
15923 it's only to support ecvt and fcvt, which aren't ANSI anyway.
15924 * libc/stdlib/efgcvt.c (fcvt, ecvt) Use new functionality (and
15925 therefore become reentrant).
15926
15927 * libc/stdlib/dtoastub.c: remove spurious inclusion of mprec.h.
15928
15929 Mon Aug 1 16:52:24 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
15930
15931 * libc/include/machine/ieeefp.h: Check _AM29K, not ___AM29K__.
15932
15933 Thu Jul 28 15:40:21 1994 J.T. Conklin (jtc@phishhead.cygnus.com)
15934
15935 * Makefile.in: Make link to libg.a after libc.a; this is needed
15936 for the testsuites to build executables when everything comes
15937 from the tree.
15938
15939 Mon Jun 27 17:14:29 1994 Bill Cox (bill@rtl.cygnus.com)
15940
15941 * libc/Makefile.in: Add a VERSION variable so we can keep track.
15942 * libm/Makefile.in: Add a VERSION variable so we can keep track.
15943
15944 Wed Jun 22 10:26:00 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
15945
15946 * libc/include/stdio.h: Use __VALIST, not va_list.
15947
15948 Tue May 17 15:43:28 1994 Bill Cox (bill@rtl.cygnus.com)
15949
15950 * testsuite/config/unix-libm.exp, testsuite/lib/libm.exp,
15951 testsuite/libm.sac/execute.exp:
15952 Replace error proc calls with perror calls.
15953
15954 Wed May 11 09:25:28 1994 Doug Evans (dje@canuck.cygnus.com)
15955
15956 * libc/include/*.h: #include "_ansi.h" instead of <_ansi.h>.
15957 * libc/include/time.h: #define NULL as 0L.
15958
15959 Mon May 9 18:41:20 1994 Doug Evans (dje@canuck.cygnus.com)
15960
15961 * host/any (INCLUDES): Delete -I of gcc/include, gcc -B takes
15962 care of it.
15963
15964 Mon May 9 18:39:39 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
15965
15966 * libc/include/sys/signal.h: Check for __GO32__, not __i386__ and
15967 not __unix__.
15968
15969 Sat May 7 17:07:36 1994 Steve Chamberlain (sac@cygnus.com)
15970
15971 * configure.in (TARGET_CFLAGS): Set -O2 as default.
15972 (z8k-*-*): Use syscalls fake sys dir.
15973 * libc/sys/z8k/glue.c: Rename syscalls.
15974 * libc/sys/go32/Makefile.in: Use new routines.
15975 * libc/machine/Makefile.in: Fix typo in ln stuff.
15976
15977 Thu May 5 13:47:48 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
15978
15979 * Makefile.in (libm.a, crt0.o): Use cp if ln fails.
15980 * libc/Makefile.in (crt0.o): Likewise.
15981 * libc/machine/Makefile.in (lib.a): Likewise.
15982 * libc/sys/Makefile.in (lib.a, crt0.o): Likewise.
15983
15984 All Makefile.in files: Added mostlyclean, realclean and distclean
15985 targets.
15986
15987 * Makefile.in: Don't bother to unexport XTRAFLAGS or
15988 XTRAFLAGS_FOR_TARGET, since they are no longer passed down from
15989 the top level Makefile.
15990
15991 Tue Apr 26 15:10:34 1994 Doug Evans (dje@canuck.cygnus.com)
15992
15993 * libc/sys/sparc64/sys/stat.h: New file.
15994 * libc/sys/sparc64/sys/time.h: New file.
15995 * libc/sys/sparc64/sys/types.h: New file.
15996
15997 Fri Apr 22 12:58:24 1994 Stan Shebs (shebs@andros.cygnus.com)
15998
15999 * stub/ex93x/crt0.s (start): Add code to clear bss.
16000
16001 Wed Apr 13 10:34:58 1994 Doug Evans (dje@canuck.cygnus.com)
16002
16003 * libc/include/sys/types.h (time_t): Properly protect inside
16004 #ifndef __time_t_defined.
16005
16006 * libc/stdio/fileno.c: New file.
16007 * libc/stdio/Makefile.in (OFILES, CHEWOUT_FILES): Add fileno.
16008 (fileno.o): Add dependency.
16009 * libc/include/stdio.h (__sgetc): Rename never to _never.
16010 (fileno macro): Disable, needs to do CHECK_INIT first.
16011
16012 Mon Apr 11 17:37:09 1994 Bill Cox (bill@rtl.cygnus.com)
16013
16014 * testsuite/Makefile.in (EXPECT, RUNTEST): Set these for the check
16015 goal.
16016
16017 * testsuite/Makefile.in (check): Set TCL_LIBRARY for runtest.
16018 * testsuite/libm.paranoia/Makefile.in (check): Set TCL_LIBRARY for
16019 runtest.
16020 * testsuite/libm.sac/Makefile.in (check): Set TCL_LIBRARY for
16021 runtest.
16022
16023 Sat Apr 9 16:18:09 1994 Doug Evans (dje@cygnus.com)
16024
16025 * libc/sys/sparc64/sys/fcntl.h: New file, define solaris versions
16026 of the various constants.
16027
16028 Thu Apr 7 21:19:07 1994 Mark Eichin (eichin@cygnus.com)
16029
16030 * libc/include/math.h: #ifndef __math_68881 around things which
16031 conflict with the (gcc-provided) inline functions in
16032 gcc/ginclude/math-68881.h.
16033
16034 Thu Apr 7 02:50:43 1994 Doug Evans (dje@cygnus.com)
16035
16036 * libc/include/_syslist.h (_gettimeofday): Define.
16037 (_times): Ditto.
16038 * libc/include/reent.h: #include <machine/types.h> to get _CLOCK_T_.
16039 (struct tms, timeval, timezone): Declare.
16040 (_gettimeofday_r, _times_r): Declare.
16041 * libc/include/time.h (_CLOCK_T_): Don't #undef. Remove
16042 #ifdef _CLOCK_T_ surrounding definition of clock_t.
16043 (time_t): Add multiple definition protection, __time_t_defined.
16044 * libc/include/sys/time.h: Don't #include <time.h>.
16045 Always define struct timezone (remove #ifndef _TIME_H_).
16046 * libc/include/sys/times.h (_CLOCK_T_): Don't #undef. Remove
16047 #ifdef _CLOCK_T_ surrounding definition of clock_t.
16048 * libc/reent/Makefile.in (OFILES): Add timer.o.
16049 (CHEWOUT_FILES): Add timer.def. Add timer.o/timer.c dependence.
16050 * libc/reent/timer.c: New file.
16051 * libc/time/clock.c: #include <reent.h>.
16052 (clock): Call _times_r instead of times.
16053 * libc/time/time.c (HAVE_GETTIMEOFDAY): Renamed from
16054 HAVE_GET_TIME_OF_DAY.
16055 Add comment regarding supporting OS routine(s) required (for docs).
16056 #include <reent.h>.
16057 (time): Call _gettimeofday_r instead of gettimeofday.
16058 * libc/time/asctime.c: Fix comment regarding supporting OS routines.
16059 * libc/time/ctime.c: Ditto.
16060 * libc/time/strftime.c: Ditto.
16061 * libc/sys/sparc64/Makefile.in (TEMPLATE_SFILES): Remove gettimeofday.
16062 (TEMPLATE_SFILES_R): Define here. Also define times.
16063 Add times_r.o/times.S dependence.
16064 (time2.c, junk.c): Deleted.
16065 * libc/sys/sparc64/time2.c: Deleted.
16066 * configure.in (sparc64-*-*): Define HAVE_GETTIMEOFDAY.
16067
16068 * libc/stdio/mktemp.c (_getpid_r): Renamed from _getpid.
16069 * libc/stdio/tmpnam.c (_getpid_r): Ditto.
16070 * libc/sys/sparc64/junk.c: Deleted.
16071
16072 Mon Mar 21 16:51:03 1994 Doug Evans (dje@canuck.cygnus.com)
16073
16074 * libc/sys/sparc64/Makefile.in: Add times syscall.
16075 * libc/sys/sparc64/crt0.S: Handle stack bias at run time so we can
16076 be used with and without it. Add comment clarifying Medium/Anywhere
16077 model requirements.
16078 * libc/sys/sparc64/sigsetjmp.S (setjmp, longjmp): Add svr4 support.
16079 * libc/sys/sparc64/sys/syscall.h (SYS_times): Define for sunos4
16080 even if obsolete.
16081
16082 Sun Mar 20 15:51:47 1994 Doug Evans (dje@cygnus.com)
16083
16084 * configure.in (target_cflags): Move init.
16085 (sparc64-*-*): Define HAVE_BLKSIZE.
16086
16087 Wed Mar 9 10:44:52 1994 Doug Evans (dje@canuck.cygnus.com)
16088
16089 * libc/include/sys/_types.h: New file.
16090 * libc/include/reent.h: #include it.
16091 Add comment describing REENTRANT_SYSCALLS_PROVIDED and
16092 MISSING_SYSCALL_NAMES.
16093 Sort syscalls.
16094 * libc/include/_syslist.h: Remove _raise.
16095 * libc/reent/signalr.c: New file.
16096 * libc/reent/Makefile.in: Compile it.
16097 * libc/signal/signal.c: Only use ifdef SIMULATED_SIGNALS.
16098 Add doc for raise and _raise_r.
16099 * libc/signal/raise.c: Only use ifndef SIMULATED_SIGNALS.
16100 (raise): Call _raise_r.
16101 (_raise_r): Call _getpid_r and _kill_r.
16102 * libc/stdlib/abort.c: Remove inclusion of stdio.h and _syslist.h.
16103 (abort): Loop forever calling raise and _exit.
16104
16105 Mon Mar 7 14:40:08 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
16106
16107 * configure.in: Remove extraneous echo.
16108
16109 Thu Mar 3 12:14:22 1994 Doug Evans (dje@canuck.cygnus.com)
16110
16111 * libc/sys/sparc64/sys/dirent.h (MAXNAMLEN): #undef to avoid
16112 collision with unistd.h, and fix for svr4.
16113
16114 Wed Mar 2 13:55:25 1994 Doug Evans (dje@canuck.cygnus.com)
16115
16116 * libc/stdio/local.h (_llicvt): Declare.
16117 (CVT_BUF_SIZE): Define (and buffer size from 512 to 128).
16118 * libc/stdio/cvt.c: Include "local.h" to get CVT_BUF_SIZE.
16119 (_llicvt): Define.
16120 (_sicvt): Fix function header (`value' is short).
16121 * libc/stdio/vfprintf.c (_vfprintf_r): Use CVT_BUF_SIZE.
16122 Add printing of long long's support.
16123 Add printing of 8 byte pointer support.
16124
16125 Fri Feb 11 21:52:11 1994 Steve Chamberlain (sac@sphagnum.cygnus.com)
16126
16127 * libc/sys/sh/syscalls.c (pipe, execv, wait, fork, utime, chown,
16128 stat, chmod): New hooks.
16129 (sbrk): Abort if stack and heap collide.
16130 * libc/machine/sh/udivsi3, libc/machine/sh/sdivsi3 Modified to
16131 shortcut when given small args.
16132 * libc/machine/sh/setjmp.s: Rewritten.
16133 * libc/machine/sh/strcmp.s (strcmp): New function takes advantage
16134 of cmp/str instruction.
16135
16136 Wed Feb 9 15:12:35 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
16137
16138 * configure.in: Accept powerpc* as a CPU type, using fp_dir ieeefp
16139 and machine_dir powerpc.
16140 * libc/include/machine/setjmp.h, libc/include/machine/ieeefp.h:
16141 Add cases for __powerpc__.
16142 * libc/machine/powerpc/Makefile.in, libc/machine/powerpc/setjmp.S:
16143 New files.
16144
16145 * libc/include/stdio.h (_iprintf_r): Declare correctly.
16146
16147 Thu Jan 27 10:36:27 1994 Steve Chamberlain (sac@cygnus.com)
16148
16149 * libc/stdlib/callocr.c: New file with _calloc_r in it.
16150 * libc/stdlib/calloc.c (calloc_r): Now in callocr.c
16151
16152 Thu Jan 20 15:14:37 1994 Doug Evans (dje@canuck.cygnus.com)
16153
16154 * libc/stdlib/ecvtbuf.c (print_f): Remove local "done".
16155 (print_e): More comments to describe args, etc.
16156 "type" arg may now be 'g' or 'G' for %g/G format --> remove
16157 trailing blanks.
16158 (_gcvt): Remove locals decpt, sign, end, p, done.
16159 More comments for print_e invocation.
16160 Pass "type" to print_e as is (g/G).
16161
16162 Wed Jan 19 16:34:18 1994 Rob Savoye (rob@darkstar.cygnus.com)
16163
16164 * stub/shared/m68k-crt0.S: Changed so it compiles (and runs) on a
16165 stock m68000.
16166
16167 Mon Jan 17 15:41:53 1994 Doug Evans (dje@canuck.cygnus.com)
16168
16169 * libc/stdlib/mallocr.c (_morecore_r): Fix aligning of pointer so it
16170 works with any sized pointer, including ones bigger than ints and
16171 longs.
16172
16173 Thu Jan 6 14:53:21 1994 Doug Evans (dje@canuck.cygnus.com)
16174
16175 * libc/sys/sparc64/{time2.c,utime.S,utime2.c}: New files.
16176
16177 Sat Dec 11 16:17:20 1993 Steve Chamberlain (sac@thepub.cygnus.com)
16178
16179 * libc/include/stdlib.h (_calloc_r): Add prototype.
16180 * libc/machine/h8500/negsi2.c: New file.
16181 * libc/machine/h8500/divsi3.c: Prevent overflow when dividing v
16182 large unsigned numbers.
16183 * libc/machine/h8500/cmpsi.c: Add cmppsi.
16184 * libc/stdlib/mallocr.c (morecore_r): Fix aligning pointers so it
16185 works when sizeof(size_t) != sizeof(char *).
16186 * libc/stdlib/mprec.c (Balloc): Call calloc rather than malloc to
16187 get play area
16188 * libc/stdlib/mprec.h: Define Just_16 if generating for z8000.
16189
16190 Mon Dec 6 15:59:53 1993 Doug Evans (dje@rtl.cygnus.com)
16191
16192 * libc/include/assert.h (assert): Handle -traditional.
16193
16194 Tue Nov 16 15:49:24 1993 Mark Eichin (eichin@cygnus.com)
16195
16196 * Makefile.in: added ; after every "fi" and "done" that wasn't at
16197 the end of a line (ie. anything before a backslash continuation)
16198 so that bash handles them.
16199
16200 Tue Nov 16 12:31:57 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
16201
16202 * libc/sys/go32/lstat.s: new file, copied from stat.s and renamed
16203 stat to lstat
16204
16205 Mon Nov 15 15:50:43 1993 Steve Chamberlain (sac@jonny.cygnus.com)
16206
16207 * libc/sys/sh/crt0.s, libc/sys/sh/trap.s,
16208 libc/machine/sh/sdivsi3.s, libc/machine/sh/setjmp.s,
16209 libc/machine/sh/udivsi3.s: Use new calling convention.
16210
16211 Mon Nov 15 15:25:38 1993 Mark Eichin (eichin@cygnus.com)
16212
16213 * libc/include/sys/unistd.h, libc/include/sys/stat.h: ANSI-fy
16214 chmod, access, chdir, chown by making _path const. Also fix _amode
16215 param of access.
16216
16217 Fri Nov 12 20:25:28 1993 Mark Eichin (eichin@cygnus.com)
16218
16219 * libc/sys/a29khif/_tmpnam.s (_tmpnam): renamed function to
16220 _khif_tmpnam, because it doesn't comply with ANSI but may be
16221 useful anyway. Real tmpnam was already in libc/stdio, and was
16222 colliding with this one (pr 2176.)
16223 * libc/sys/a29khif/stubs.s (tmpnam): removed tmpnam. This file is
16224 the wrong idea anyhow.
16225
16226 Mon Nov 8 07:50:16 1993 Doug Evans (dje@canuck.cygnus.com)
16227
16228 * configure.in: Remove h8300h, we have multilib now.
16229
16230 Fri Nov 5 12:37:27 1993 Mark Eichin (eichin@cygnus.com)
16231
16232 * libc/string/strcasecmp.c, libc/string/strncasecmp.c: new
16233 functions, to get preference over the ones in libiberty (since we
16234 provide correct declarations in <string.h>.
16235 * libc/string/Makefile.in: add support for strncasecmp,
16236 strcasecmp.
16237
16238 Fri Nov 5 09:05:45 1993 D. V. Henkel-Wallace (gumby@blues.cygnus.com)
16239
16240 * Change netware config not to look for cpu explicitly.
16241
16242 Thu Nov 4 14:21:25 1993 Doug Evans (dje@canuck.cygnus.com)
16243
16244 * libc/sys/sparc64/{creat.c,junk.c}: New files.
16245 * libc/sys/sparc64/Makefile.in: Add dependencies.
16246
16247 Wed Nov 3 10:42:49 1993 Doug Evans (dje@canuck.cygnus.com)
16248
16249 * configure.in: Clean up v9 a bit, new "os" aoutv8.
16250
16251 Tue Nov 2 10:00:44 1993 D. V. Henkel-Wallace (gumby@cygnus.com)
16252
16253 * libc/include/sys/reent.h: make structure smaller by allocating
16254 some stuff when needed.
16255 * libc/signal/signal.c: allocate as needed
16256 * libc/stdio/findfp.c,stdio/local.h: ditto
16257 * libc/stdlib/mprec.c: ditto
16258
16259 * libc/time/localtime.c: don't return a dangling stack ptr.
16260
16261 Wed Sep 29 20:42:34 1993 Rob Savoye (rob@darkstar.cygnus.com)
16262
16263 * stub/mvme135/crt0.S, stub/mvme135/glue.c: Moved to stub/generic.
16264
16265 Wed Sep 29 16:27:49 1993 K. Richard Pixley (rich@sendai.cygnus.com)
16266
16267 * libc/include/stdio.h (__sputc): comment out static inline which
16268 confuses coff toolchains.
16269
16270 Thu Sep 2 16:31:36 1993 Mark Eichin (eichin@cygnus.com)
16271
16272 * libc/sys/a29khif/{_close.s, _fstat.s, _lseek.s, _sbrk.s,
16273 _write.s, getpid.c, kill.c, read.s}:
16274 * libc/sys/a29khif/stubs.s: eliminated stubs that already go
16275 through the syscalls directory.
16276
16277 Fri Oct 29 13:59:58 1993 Jeffrey Wheat (cassidy@cygnus.com)
16278
16279 * configure.in: fixed double quote gotcha.
16280
16281 Wed Oct 27 15:27:09 1993 Rob Savoye (rob@darkstar.cygnus.com)
16282
16283 * stub/ex931: stub library for sparclite board.
16284 * stub/idp: Renamed from mc68ec. Added contructor table
16285 stuff to linker script.
16286 * stub/mvme135: Renamed from m68kmvme. Added contructor table
16287 stuff to linker script.
16288
16289 Tue Oct 26 17:01:23 1993 K. Richard Pixley (rich@sendai.cygnus.com)
16290
16291 * configure.in: Configure testsuites only if they exist.
16292
16293 Tue Oct 26 12:37:11 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
16294
16295 * configure.in: Don't set machine_dir for i386 until there is
16296 something in libc/machine/i386 to compile. For i[34]86-*-netware*
16297 use sys/netware, don't use signal, define NO_EXEC, ABORT_PROVIDED,
16298 CLOCK_PROVIDED and MALLOC_PROVIDED.
16299
16300 * libc/sys/netware: New directory. Contains simplistic and
16301 probably incorrect stubs for NetWare. Should be enough to load
16302 the library.
16303 * libc/sys/netware/crt0.c, libc/sys/netware/environ.c,
16304 libc/sys/netware/getpid.c, libc/sys/netware/link.c: New NetWare
16305 stub files.
16306
16307 * libc/reent/execr.c: Don't use if NO_EXEC is defined.
16308 * libc/reent/sbrkr.c: Don't use if MALLOC_PROVIDED is defined.
16309 * libc/stdlib/abort.c: Don't use if ABORT_PROVIDED is defined.
16310 * libc/time/clock.c: Don't use if CLOCK_PROVIDED is defined.
16311
16312 Mon Oct 25 16:48:08 1993 Roland H. Pesch (pesch@cygnus.com)
16313
16314 * testsuite/Makefile.in: add "docs" dummy target for consistency
16315 with rest of newlib; turn "info" and "install-info" into dummy
16316 targets, since they wouldn't have worked. (Depended on
16317 nonexistent "doc" subdir.)
16318
16319 Fri Oct 22 20:37:32 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
16320
16321 * configure.in: handle mips* instead of mips
16322
16323 Thu Oct 21 08:57:24 1993 Ian Lance Taylor (ian@cygnus.com)
16324
16325 * libc/include/sys/dirent.h: New file. If it is not overridden by
16326 a version of libc/sys/*/sys/dirent.h, it includes the next
16327 <dirent.h> file in case there is one lurking somewhere.
16328
16329 Fri Oct 15 14:17:40 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
16330
16331 * libc/stdlib/strtoul.c (_strtoul_r): Several changes for ANSI
16332 compliance, namely: Accept a minus sign. Consider a single 0 with
16333 a radix of 0 as being a conversion. Determine overflow correctly.
16334 If an overflow occurs, set *ptr to the end of the number, not the
16335 middle.
16336 * lib/stdlib/strtol.c (_strtol_r): Determine overflow correctly.
16337
16338 Thu Oct 14 21:49:52 1993 Doug Evans (dje@canuck.cygnus.com)
16339
16340 * libc/machine/h8300/divsi3.S (divmodsi4): Fix h8300h case.
16341
16342 Fri Oct 1 17:17:34 1993 Doug Evans (dje@canuck.cygnus.com)
16343
16344 * Makefile.in (INSTALL): Use $srcrootpre.
16345 (crt0.o): Replace $< with $(CRT0_DIR)/$(CRT0), Sun make
16346 can't handle it.
16347 * libc/Makefile.in (crt0.o): Spell out $<, Sun make can't handle
16348 it.
16349 * libc/sys/Makefile.in (crt0.o, lib.a): Ditto.
16350 * stub/Makefile.in (crt0.o, TARGETLIB): Ditto.
16351 * libc/sys/sparc64/Makefile.in (isatty.o): Sun VPATH lossage.
16352 * libm/math/Makefile.in (matherr.o): Ditto.
16353
16354 Thu Sep 30 11:09:17 1993 Steve Chamberlain (sac@phydeaux.cygnus.com)
16355
16356 * configure.in: Build multidirs for z8k.
16357 * libc/include/stdlib.h (_strtoul_r): add prototype.
16358 * libc/include/machine/limits.h: Get INT_MIN right for all the z8k family.
16359 * libc/include/machine/setjmp.h: Add for z8k.
16360 * libc/machine/z8k/{mulsi.o, udivsi3.o, umodsi3.o, modsi3.o} obsolete.
16361 * libc/sys/z8ksim/glue.c: tidy up.
16362
16363 Mon Sep 20 14:04:46 1993 Doug Evans (dje@canuck.cygnus.com)
16364
16365 * libc/unix/{execl.c execle.c execlp.c execv.c execvp.c}:
16366 New files. Requires execve system call.
16367 * libc/unix/Makefile.in: Use them.
16368 * libc/sys/sparc64/{execl.c execle.c execlp.c execv.c execvp.c}:
16369 Deleted, moved to libc/unix.
16370 * libc/sys/sparc64/Makefile.in: Remove them.
16371
16372 Mon Sep 20 10:38:32 1993 Doug Evans (dje@canuck.cygnus.com)
16373
16374 * libc/sys/sparc64/{template.S template_r.S}: New files.
16375 * libc/sys/sparc64/Makefile.in: Build source for trivial syscalls
16376 from templates.
16377 * libc/sys/sparc64/{chdir.S chmod.S close.S dup.S fcntl.S
16378 fork.S fstat.S lseek.S link.S mkdir.S open.S pipe.S read.S rmdir.S
16379 umask.S unlink.S wait4.S write.S}: Removed, now built from
16380 templates.
16381
16382 Sun Sep 19 14:52:57 1993 Doug Evans (dje@canuck.cygnus.com)
16383
16384 * libc/time/time.c: #include <_ansi.h>.
16385
16386 Sun Sep 19 13:43:25 1993 Doug Evans (dje@canuck.cygnus.com)
16387
16388 * configure.in (sparc64-*-*): Remove -D__SIZE_TYPE__.
16389
16390 Mon Sep 13 13:52:16 1993 K. Richard Pixley (rich@sendai.cygnus.com)
16391
16392 * configure.in: match m8* rather than m88k so that m88110 is
16393 recognized as well.
16394
16395 Tue Sep 7 12:19:32 1993 Doug Evans (dje@canuck.cygnus.com)
16396
16397 * libc/sys/h8300hms/{Makefile.in, _exit.c, misc.c}:
16398 Renamed exit.c to _exit.c to avoid collision with stdlib/exit.c.
16399 misc.c: New file.
16400
16401 * configure.in: Add multilib support to h8300.
16402
16403 Mon Sep 6 14:07:06 1993 Doug Evans (dje@canuck.cygnus.com)
16404
16405 * libc/stdlib/abort.c (abort): Remove _VOLATILE from return type.
16406 * libc/include/_ansi.h (_ATTRIBUTE): New macro for __attribute__.
16407 * libc/include/stdlib.h (exit, abort): Add noreturn attribute.
16408
16409 Mon Sep 6 14:24:18 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
16410
16411 * configure.in: Corrected multidirs for sparc target.
16412
16413 Mon Aug 30 15:56:44 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
16414
16415 Support for building newlib multiple times with different
16416 compilation flags.
16417 * configure.in: Only configure doc at top level. Set multidirs
16418 when appropriate for target, unless not at top level. If
16419 multidirs is set, independently configure each subdirectory.
16420 Adjust TOP, MULTIDIRS and MULTISUBDIR appropriately in Makefile.
16421 * Makefile.in (MULTIDIRS, MULTISUBDIR): New variables,
16422 automagically set by configure.in.
16423 (all): If MULTIDIRS is set, build multiple copies of libraries.
16424 (install): If MULTIDIRS is set, install multiple copies of
16425 libraries. Install in $(tooldir)/lib/$(MULTISUBDIR). If
16426 MULTISUBDIR is set, don't bother to install header files.
16427 * host/any (INCLUDES, CHEW): Use $(SRCTOP) rather than $(TOP) from
16428 ${srcrootpre}.
16429 * stub/configure.in: Set MULTISUBDIR appropriately.
16430 * stub/Makefile.in (install): Install in
16431 $(tooldir)/lib/$(MULTISUBDIR).
16432 * All Makefile.in files: Define SRCTOP as well as TOP.
16433
16434 Mon Aug 30 10:34:24 1993 Doug Evans (dje@canuck.cygnus.com)
16435
16436 * libc/machine/h8300/{mulhi3.S, divhi3.S}: Comment out if h8300h.
16437 * libc/machine/h8300/{mulsi3.S, divsi3.S}: Add h8300h support.
16438
16439 Thu Aug 26 19:38:12 1993 Doug Evans (dje@canuck.cygnus.com)
16440
16441 * libc/sys/h8300hms/exit.c (_exit): New function.
16442
16443 Wed Aug 25 16:31:48 1993 K. Richard Pixley (rich@sendai.cygnus.com)
16444
16445 * configure.in: recognize m88110.
16446
16447 Fri Aug 20 16:46:23 1993 K. Richard Pixley (rich@sendai.cygnus.com)
16448
16449 * libc/sys/m88kbug/crt0.c: pretty up, remove extraneous comments,
16450 prototype main and call with args.
16451
16452 Fri Jul 30 16:52:47 1993 K. Richard Pixley (rich@cygnus.com)
16453
16454 First real try at system traps for m88k-bug.
16455 * libc/sys/m88kbug/syscalls.c: many changes. Convert from stubs
16456 to real trap calls.
16457 * libc/sys/m88kbug/sys/systraps.h: new file.
16458
16459 Tue Jul 27 16:31:16 1993 K. Richard Pixley (rich@sendai.cygnus.com)
16460
16461 Patches to fix info building when target does not use sys
16462 directory.
16463 * libc/Makefile.in (targetdep.tex): add sys.tex separately.
16464 * libc/sys.tex, libc/sys/sys.tex: moved from libc/sys/sys.tex to
16465 libc/sys.tex.
16466 * libc/sys/Makefile.in (doc): do nothing.
16467
16468 Mon Jul 26 17:08:11 1993 K. Richard Pixley (rich@sendai.cygnus.com)
16469
16470 * libc/Makefile.in (CRT0): new macro.
16471 (all): depend on $(CRT0) rather than crt0.o.
16472
16473 * configure.in: fix libc_sys_dir -> libc_sys_lib thinko.
16474 do not default crt0, instead, set crt0 and crt0_dir based on
16475 sys_dir and stub_dir.
16476
16477 * Makefile.in (CRT0_DIR): new macro.
16478 (all): depend on $(CRT0) rather than crt0.o which may not exist.
16479 (crt0.o): depend on $(CRT0_DIR)/$(CRT0) rather than simply
16480 $(CRT0).
16481 ($(CRT0)): recur by cd'ing into $(CRT0_DIR).
16482
16483 Sun Jul 25 17:51:51 MDT 1993 Jeffrey Wheat (cassidy@cygnus.com)
16484
16485 * testsuite/lib/libm.exp:
16486 added code to support compiling and linking of tests for
16487 libm.sac (paranoia to be added next) and processing the
16488 pass or failure of the tests.
16489
16490 * testsuite/config/unix-libm.exp:
16491 platform specific proc's for dealing with compiler, linker
16492 and the way we execute and process the test results.
16493
16494 * testsuite/libm.sac/execute.exp:
16495 generic framework for the sac tests. the config and lib
16496 expect code for specific platforms tie it all together.
16497
16498 * testsuite/libm.sac/test_is.c:
16499 changed the output of the test to be consistant with the
16500 other tests. parsing of pass nad fail messages is now fixed.
16501
16502 Fri Jul 23 19:20:07 1993 Per Bothner (bothner@kalessin)
16503
16504 * libc/include/{assert.h, ctype.h, dirent.h, errno.h, fastmath.h,
16505 locale.h, math.h, pwd.h, reent.h, setjmp.h, signal.h, stdio.h,
16506 stdlib.h, string.h, termios.h, time.h, utime.h, utmp.h}: For C++:
16507 #ifdef __cplusplus, surround by extern ""C { ... }.
16508 * libc/include/assert.h: Do *not* protect assert.h against
16509 multiple inclusion! Also, #undef it before #define, to allow
16510 redefinition.
16511 * libc/include/stdio.h (getlogin, cuserid): Removed. These
16512 should be only in unistd.h.
16513
16514 * libc/include/sys/{fcntl.h, reent.h, stat.h, time.h, times.h,
16515 unistd.h}: For C++: #ifdef __cplusplus, surround by extern ""C {
16516 ... }.
16517
16518 Fri Jul 23 10:15:33 1993 Doug Evans (dje@canuck.cygnus.com)
16519
16520 * libc/machine/sparc/Makefile.in: Must create a library, even
16521 if empty.
16522
16523 Wed Jul 21 16:00:37 1993 K. Richard Pixley (rich@sendai.cygnus.com)
16524
16525 * configure.in: set machine_dir for m88k. edit crt0 definition
16526 into makefiles.
16527
16528 * Makefile.in, libc/Makefile.in (crt0): pull up from lower directories.
16529
16530 * libc/Makefile.in (all): also build crt0.o.
16531
16532 * libc/machine/i386/Makefile.in, libc/machine/sparc/Makefile.in,
16533 libc/machine/z8k/Makefile.in, libm/Makefile.in (clean): no need
16534 to remove CRT0.
16535
16536 * libc/machine/m88k/Makefile.in (TOP, TARGETLIB): removed.
16537 (all): reworked to build in place.
16538 (clean): remove lib.a
16539 (Makefile): remove redundant ./, call $(SHELL) rather than sh.
16540
16541 * libc/sys/m88kbug/crt0.c (start): renamed to _start.
16542 (_start): key off edata rather than _start_bss.
16543
16544 Wed Jul 21 14:29:47 1993 david d `zoo' zuhn (zoo@cygnus.com)
16545
16546 * libc/include/sys/unistd.h, libc/include/reent.h,
16547 libc/reent/sbrkr.c: change sbrk to return void* instead of char*.
16548
16549 Tue Jul 20 13:19:18 1993 K. Richard Pixley (rich@sendai.cygnus.com)
16550
16551 * libm/Makefile.in, libc/Makefile.in ($(SUBDIRS)): dollar escape a dollar sign.
16552
16553 * Makefile.in (libc.a): break into two rules, one for libc.a and
16554 one for libc/libc.a. Force subdirs current before rebuilding
16555 library.
16556 (libm.a): break into two rules, one for libm.a and one for
16557 libm/libm.a. Force subdirs current before rebuilding library.
16558
16559 * libc/Makefile.in (SUBLIBS): fix typo.
16560
16561 * libc/sys/Makefile.in (all): force descent into subdirs, then
16562 rebuild library iff out of of date.
16563
16564 Fri Jul 16 17:47:57 1993 K. Richard Pixley (rich@sendai.cygnus.com)
16565
16566 Rework so that library is built and then finished rather than
16567 being built on each invocation of make.
16568
16569 * host/any (machine_dir, sys_dir, signal_dir): these are not
16570 shared and have been moved to their associated Makefile.in's.
16571 (AR_FLAGS): switch to qc which is faster.
16572 * configure.in: no longer assign machine_dir for m88k. set
16573 stub_dir, stub_lib, & crt0 for m68k*-unknown-{aout,coff}. If
16574 stub_dir set, then add to configdirs. add comment about silly
16575 configuration.
16576 (configdirs): drop stub. It will be added only
16577 when needed.
16578 (libm_fp_lib, libc_unix_lib, libc_signal_lib, libc_machine_lib,
16579 libc_sys_dir, fake_sys_dir, libc_fake_sys_lib, stub_dir,
16580 stub_lib, crt0): new variables for tailoring lower level
16581 makefiles. Assign accordingly and edit into makefiles.
16582 * libm/Makefile.in: updated copyright.
16583 (TARGETLIB): removed.
16584 (FLAGS_TO_PASS): removed TARGETLIB, machine_dir, sys_dir.
16585 (SUBDIRS): removed TARGETDEP_DIRS.
16586 (LIBM_FP_LIB, SUBLIBS): new macros.
16587 (all): reworked.
16588 (force): new target to force rebuilds.
16589 (Makefile): call $(SHELL) rather than sh. drop redundant ./
16590 * libc/sys/a29khif/Makefile.in, libc/sys/decstation/Makefile.in,
16591 libc/sys/go32/Makefile.in, libc/sys/h8300hms/Makefile.in,
16592 libc/sys/h8500hms/Makefile.in, libc/sys/m88kbug/Makefile.in,
16593 libc/sys/sh/Makefile.in, libc/sys/sparc64/Makefile.in,
16594 libc/sys/sun4/Makefile.in, libc/sys/sysvi386/Makefile.in,
16595 libc/sys/sysvnecv70/Makefile.in, libc/sys/z8ksim/Makefile.in,
16596 stub/m68kmvme/Makefile.in: updated copyright.
16597 (TARGETLIB, TARGETCRT0, CRT0): macros removed.
16598 (all): reworked. made this the default rule.
16599 (clean): also remove lib.a.
16600 (Makefile): call $(SHELL) rather than sh. drop redundant ./
16601 * stub/Makefile.in: updated copyright.
16602 (TARGETLIB, TARGETCRT0, CRT0, TOP): removed.
16603 (stub_lib): new macro.
16604 (FLAGS_TO_PASS): removed TARGETLIB, stub_dir, TARGETCRT0. Added
16605 RANLIB.
16606 (all): reworked.
16607 (clean, install): assume stub_dir exists.
16608 (Makefile): depend on configure.in. call $(SHELL) rather than
16609 sh. drop redundant ./
16610 * stub/configure.in (stublib): new macro, assign it, edit it into
16611 makefiles.
16612 * Makefile, libc/Makefile.in, doc/Makefile.in, libc/sys/Makefile.in:
16613 updated copyright.
16614 (all): reworked.
16615 (Makefile): call $(SHELL) rather than sh. drop redundant ./
16616 * libc/Makefile.in (TARGETCRT0): removed.
16617 (FLAGS_TO_PASS): dropped TARGETLIB, machine_dir, sys_dir,
16618 TARGETCRT0.
16619 (SUBDIRS): drop TARGETDEP_DIRS.
16620 (LIBC_SIGNAL_LIB, LIBC_SYS_LIB, LIBC_MACHINE_LIB, LIBC_UNIX_LIB,
16621 LIBC_FAKE_SYS_LIB, SUBLIBS): new macros for configuration.
16622 (force): new target to force rebuilds.
16623 * libc/sys/Makefile.in (TARGETCRT0, sys_dir): removed.
16624 (FLAGS_TO_PASS): TARGETLIB, machine_dir, sys_dir, TARGETCRT0
16625 removed.
16626 (clean): assume sys_dir always exists.
16627 * libm/test/Makefile.in (Makefile): call $(SHELL) rather than sh.
16628 drop redundant ./
16629 * libc/ctype/Makefile.in, libc/errno/Makefile.in,
16630 libc/locale/Makefile.in, libc/machine/Makefile.in,
16631 libc/machine/a29k/Makefile.in, libc/machine/h8300/Makefile.in,
16632 libc/machine/h8500/Makefile.in, libc/machine/i386/Makefile.in,
16633 libc/machine/i960/Makefile.in, libc/machine/m68k/Makefile.in,
16634 libc/machine/mips/Makefile.in, libc/machine/necv70/Makefile.in,
16635 libc/machine/sh/Makefile.in, libc/machine/sparc/Makefile.in,
16636 libc/machine/z8k/Makefile.in, libc/reent/Makefile.in,
16637 libc/signal/Makefile.in, libc/stdio/Makefile.in,
16638 libc/stdlib/Makefile.in, libc/string/Makefile.in,
16639 libc/sys/Makefile.in, libc/syscalls/Makefile.in,
16640 libc/time/Makefile.in, libc/unix/Makefile.in,
16641 libm/ieeefp/Makefile.in, libm/math/Makefile.in: updated copyright.
16642 (TARGETLIB): removed.
16643 (all): reworked.
16644 (clean): also remove lib.a.
16645 (Makefile): call $(SHELL) rather than sh. drop redundant ./
16646 * Makefile.in: (machine_dir, sys_dir, stub_dir, stub_lib, CRT0):
16647 new macros.
16648 (SUBDIRS): moved to follow frag inclusion, change stub to
16649 stub_dir.
16650 (FLAGS_TO_PASS): removed machine_dir, sys_dir, signal_dir which
16651 are now set in the libc Makefile.
16652 * libc/machine/Makefile.in (TARGETCRT0, machine_dir): removed.
16653 (FLAGS_TO_PASS): removed TARGETLIB, machine_dir, sys_dir,
16654 TARGETCRT0.
16655 (force): new target to force rebuilds.
16656 * stub/configure.in: determine and set stub_lib for for Makefile.
16657
16658 Thu Jul 15 12:01:27 1993 Doug Evans (dje@canuck.cygnus.com)
16659
16660 * libc/sys/h8300hms/Makefile.in: Make `all' the default target.
16661 crt0.s renamed to crt0.S.
16662 * libc/sys/h8300hms/crt0.S: Add h8/300h support.
16663
16664 * libc/machine/h8300/Makefile.in: Make `all' the default target.
16665 * libc/machine/h8300/{cmpsi.S,ucmpsi.S}: #ifdef out entire file if
16666 h8300h.
16667 * libc/machine/h8300/defines.h: Add macros to handle pointers for
16668 h8300 (16 bits) and h8300h (32 bits).
16669 * libc/machine/h8300/{divsi3.S,mulsi3.S,memcpy.S,memset.S,
16670 reg_memcpy.S,reg_memset.S,strcmp.S}: Add h8300h support.
16671
16672 Thu Jul 15 10:13:29 1993 Ian Lance Taylor (ian@cygnus.com)
16673
16674 * libc/machine/m88k/setjmp.S, Makefile.in: New files; a simple
16675 implementation of setjmp and longjmp for the m88k.
16676 * libc/include/machine/setjmp.h: Added __m88000__ case.
16677
16678 Wed Jul 14 10:10:30 1993 Doug Evans (dje@canuck.cygnus.com)
16679
16680 * configure.in: Recognize h8300h as variant of h8300.
16681
16682 Tue Jul 13 12:24:11 1993 Steve Chamberlain (sac@phydeaux.cygnus.com)
16683
16684 * libc/include/sys/unistd.h (read, write): get prototypes right.
16685 (sbrk): New prototype.
16686 * libc/reent/sbrkr.c (sbrkr): Use correct sbrk prototype.
16687 * libc/stdio/local.h: Include unistd.h.
16688 * libc/machine/h8300/syscalls.c: Names have changed.
16689
16690 Mon Jul 12 18:08:42 1993 K. Richard Pixley (rich@cygnus.com)
16691
16692 * configure.in: add sys_dir assignment for m88k-bug.
16693
16694 Thu Jul 8 09:16:21 1993 Doug Evans (dje@canuck.cygnus.com)
16695
16696 * libc/sys/sparc64/sys/syscallasm.h: New macros to handle either
16697 a.out or elf.
16698 * libc/sys/sparc64: all *.S files: Use new macros.
16699 * libc/sys/sparc64/isatty.c: New file.
16700 * libc/sys/sparc64/Makefile.in: Stop using /lib/libc.a for
16701 functions beyond what newlib provides.
16702
16703 Thu Jul 8 09:11:28 1993 Doug Evans (dje@canuck.cygnus.com)
16704
16705 * libc/include/sys/stat.h: Move st_atime so not doubly defined for
16706 svr4.
16707
16708 Thu Jul 8 09:09:16 1993 Doug Evans (dje@canuck.cygnus.com)
16709
16710 * libc/include/machine/ieeefp.h: Add support for h8/300h.
16711
16712 Fri Jul 2 10:11:20 1993 K. Richard Pixley (rich@cygnus.com)
16713
16714 * configure.in: add m88k.
16715 * libc/include/machine/ieeefp.h: add case for m88k. Also add
16716 sanity check so no one else need ever chase what I did to find
16717 this.
16718
16719 * libm/math/Makefile.in (FAKEC): added atanf.c log1pf.c scalbnf.c.
16720
16721 Fri Jul 2 09:15:21 1993 Ian Lance Taylor (ian@cygnus.com)
16722
16723 * doc/makedoc.c: Include <ctype.h>.
16724
16725 Wed Jun 30 09:35:06 1993 Doug Evans (dje@canuck.cygnus.com)
16726
16727 * libc/Makefile.in (FLAGS_TO_PASS): Add TARGET_ASFLAGS.
16728 * libc/sys/Makefile.in (FLAGS_TO_PASS): Add TARGET_ASFLAGS.
16729 * libc/machine/Makefile.in (FLAGS_TO_PASS): Add TARGET_ASFLAGS.
16730
16731 * libm/test/Makefile.in (all): Link with ../../lib[cm].a.
16732
16733 Sun Jun 27 17:05:20 1993 Doug Evans (dje@sphagnum.cygnus.com)
16734
16735 * libc/include/errno.h (ENOSYS): Added.
16736
16737 * libc/unix/getpwd.c (getcwd): Fix typo (_up -> up).
16738
16739 Mon Jun 21 09:03:32 1993 Steve Chamberlain (sac@phydeaux.cygnus.com)
16740
16741 * libc/stdio/fflush.c (fflush): Check for reent struct
16742 initialization.
16743 * libc/stdio/fdopen.c (fdopen): Avoid namespace conflict.
16744
16745 Fri Jun 18 16:06:05 1993 Mark Eichin (eichin@rtl.cygnus.com)
16746
16747 * libc/stdlib/dtoastub.c: new file -- move user callable "dtoa"
16748 out of dtoa.c so it doesn't pollute the namespace.
16749 * libc/include/_syslist.h: new file -- mappings from _function to
16750 function, for systems where we can't win (by default, all of them,
16751 until we start updating system calls.)
16752 * libc/syscalls: new directory -- stubs for exporting _function
16753 names as unmodified function names.
16754 * libc/configure.in: add MISSING_SYSCALL_NAMES to enable
16755 _syslist.h on all platforms by default, but put hooks in for
16756 fake_sys_dir so we can include it when we've renamed the system
16757 calls.
16758 * libc/reent/execr.c libc/reent/filer.c libc/reent/fstatr.c
16759 libc/reent/linkr.c libc/reent/sbrkr.c libc/reent/statr.c
16760 libc/signal/raise.c libc/signal/signal.c libc/stdio/fdopen.c
16761 libc/stdio/mktemp.c libc/stdio/tmpnam.c libc/stdlib/abort.c
16762 libc/stdlib/system.c libc/unix/getcwd.c libc/unix/getlogin.c
16763 libc/unix/getpass.c libc/unix/getut.c libc/unix/ttyname.c: change
16764 non ANSI functions to call _function.
16765
16766 Wed Jun 9 09:48:26 1993 Ian Lance Taylor (ian@cygnus.com)
16767
16768 * libc/stdlib/strtoul.c (_strtoul_r): Handle leading 0 correctly
16769 when base 16 is specified. Don't accept non-digits if radix > 10.
16770
16771 Thu Jun 3 10:01:15 1993 Doug Evans (dje@canuck.cygnus.com)
16772
16773 * libc/include/math.h: Rename xxx_r fns to _xxx_r.
16774
16775 Wed Jun 2 16:54:16 1993 Jim Wilson (wilson@sphagnum.cygnus.com)
16776
16777 * libc/include/sys/stat.h: Surround text after #endif with
16778 comments.
16779
16780 Wed Jun 2 12:47:32 1993 Ian Lance Taylor (ian@cygnus.com)
16781
16782 * libc/stdlib/mallocr.c: If MALLOC_PROVIDED is defined, just make
16783 _malloc_r, _realloc_r, and free_r call the corresponding
16784 non-reentrant functions.
16785
16786 * libm/math/modf.c (modf): We now take the address of ipart, so
16787 don't make it a register variable.
16788
16789 Tue Jun 1 18:25:54 1993 Doug Evans (dje@canuck.cygnus.com)
16790
16791 * libm/math/*: Rename all xxx_r fns to _xxx_r.
16792
16793 Wed May 26 22:06:35 1993 Roland H. Pesch (pesch@cygnus.com)
16794
16795 * libc/libc.texinfo and embedded docn throughout: formatting
16796 improvements, minor rephrasing for clarity, and improved
16797 reentrancy docn.
16798
16799 Sun May 23 17:29:49 1993 Steve Chamberlain (sac@thepub.cygnus.com)
16800
16801 * libm/ieeefp/infinity.c (maxpowtwof): Fix initialzation bug.
16802
16803 * libc/stdio/cvt.c (_licvt): Print the right value on machines
16804 where sizeof(int) != sizeof(long).
16805
16806 Fri May 21 22:09:32 1993 Roland H. Pesch (pesch@fowanton.cygnus.com)
16807
16808 * libc/reent/execr.c, libc/reent/filer.c, libc/reent/linkr.c,
16809 libc/reent/sbrkr.c, libc/reent/statr.c, libc/stdio/tmpnam.c,
16810 libc/stdlib/atol.c, libc/stdlib/rand.c, libc/string/strpbrk.c,
16811 libc/string/strspn.c, libm/ieeefp/isnan.c, libm/math/bessel.c,
16812 libm/math/matherr.c: changes for better docn formatting (info).
16813
16814 * libc/libc.texinfo, libc/ctype/ctype.tex, libc/locale/locale/tex,
16815 libc/reent/reent.tex, libc/signal/signal.tex,
16816 libc/stdio/stdio.tex, libc/stdlib/stdlib.tex,
16817 libc/string/strings.tex, libc/sys/sys.tex, libc/time/time.tex,
16818 libm/libm.texinfo, libm/ieeefp/ieeefp.tex, libm/math/math.tex: use
16819 makeinfo node defaulting to get better Info file node structure.
16820 (Requires recent sac change to doc/makedoc.c and doc/doc.str.)
16821 Also include a few formerly missing sections (subroutines).
16822
16823 * doc/doc.str: delete fossil expansion for "func"
16824
16825 * default.menu, no-signal.menu: delete.
16826
16827 * Makefile.in, libc/Makefile.in, configure.in, host/any: simplify
16828 method used to adjust doc for missing "signals" chapter when
16829 signal_dir is empty.
16830
16831 Thu May 20 21:38:37 MDT 1993 Jeffrey Wheat (cassidy@cygnus.com)
16832
16833 * configure.in: added testsuite/libm.sac
16834
16835 Wed May 19 14:52:34 1993 Doug Evans (dje@thepub.cygnus.com)
16836
16837 * libc/sys/sparc64/crt0.S: Set %g4 to 0 (to test Medium/Anywhere
16838 code model).
16839
16840 Tue May 18 13:17:21 1993 Ian Lance Taylor (ian@cygnus.com)
16841
16842 * libm/Makefile.in: Use $(MAKE) rather than make, and define
16843 MAKEOVERRIDES to be empty.
16844
16845 Mon May 17 08:42:44 1993 Ian Lance Taylor (ian@cygnus.com)
16846
16847 * configure.in: Don't build mips-*-* with -msoft-float, since that
16848 makes it incompatible with hard floating point.
16849
16850 Mon May 17 00:03:35 MDT 1993 Jeffrey Wheat (cassidy@cygnus.com)
16851
16852 * Makefile.in: added recursive 'make check'
16853
16854 Thu May 13 16:24:18 MDT 1993 Jeffrey Wheat (cassidy@cygnus.com)
16855
16856 * configure.in: added ./testsuite ./testsuite/libm.paranoia
16857 * ./testsuite/Makefile.in: created
16858 * ./testsuite/libm.paranoia: paranoia tests added
16859
16860 Thu May 13 10:30:24 1993 Ian Lance Taylor (ian@cygnus.com)
16861
16862 * configure.in: For mips-*-* set machine_dir to mips.
16863
16864 * libc/machine/mips: New directory.
16865 * libc/machine/mips/Makefile.in: New file.
16866 * libc/machine/mips/setjmp.S: New file; simplistic MIPS version of
16867 setjmp and longjmp.
16868 * libc/include/machine/setjmp.h: Added __mips__ case.
16869
16870 * libc/machine/lmips: Removed unused and useless directory.
16871
16872 Mon May 3 10:22:31 1993 Ian Lance Taylor (ian@cygnus.com)
16873
16874 * configure.in: Accept i486-*-sco* as well as i386-*-sco*.
16875
16876 Thu Apr 15 15:16:44 1993 Doug Evans (dje@canuck.cygnus.com)
16877
16878 * libc/sys/sparc64/crt0.S: Add comment (%g1 contains atexit arg at
16879 start up).
16880
16881 Fri Apr 9 13:32:26 1993 Ian Lance Taylor (ian@cygnus.com)
16882
16883 * libc/include/machine/setjmp-dj.h: Use _SETJMP_DJ_H rather than
16884 SETJMP_H.
16885
16886 Thu Apr 8 10:07:18 1993 Doug Evans (dje@canuck.cygnus.com)
16887
16888 * libm/test/convert.c: structure member errno -> errno_val.
16889 Must include <errno.h> to use errno, it's a macro now.
16890 * libm/test/math.c: Ditto.
16891 * libm/test/math2.c: Include errno.h.
16892 * libm/test/string.c: Ditto.
16893 * libm/test/test.h: structure member errno -> errno_val.
16894 Remove extern int errno decl.
16895
16896 Thu Apr 8 07:56:33 1993 Ian Lance Taylor (ian@cygnus.com)
16897
16898 * libc/stdio/Makefile.in: Added dependencies on local header
16899 files.
16900 * libc/stdio/std.h, libc/stdio/vfprintf.h: Removed unused header
16901 files.
16902
16903 Wed Apr 7 16:19:32 1993 Ian Lance Taylor (ian@cygnus.com)
16904
16905 * libc/include/machine/ieeefp.h: Added __MIPSEB__ case.
16906
16907 Wed Apr 7 10:55:21 1993 Doug Evans (dje@canuck.cygnus.com)
16908
16909 * libc/stdio/siprintf.c libc/stdio/sscanf.c libc/stdio/vsprintf.c:
16910 Initialize _data.
16911
16912 * libc/stdio/vfprintf.c: No need to declare _icvt, _licvt, _sicvt.
16913 * libc/stdio/local.h: Add prototype for _licvt.
16914
16915 * libc/stdio/ungetc.c (__submore): Use _malloc_r,_realloc_r
16916 instead of malloc,reealloc.
16917
16918 * libc/stdlib/local.h: New file.
16919 * libc/stdlib/efgcvt.c: #include local.h.
16920 (gcvt): Fix call to _gcvt.
16921 * libc/stdlib/ecvtbuf.c: #include local.h.
16922
16923 * libc/stdlib/Makefile.in: new files mallocr.c mstats.c.
16924 * libc/stdlib/mallocr.c mstats.c malloc.h: New files.
16925 * libc/stdlib/malloc.c: main routines moved to mallocr.c.
16926
16927 * libc/stdlib/atexit.c: moved global data to struct _reent.
16928 * libc/stdlib/exit.c: use struct _atexit in struct _reent.
16929
16930 * libc/reent/reent.c (inpure_data): _REENT_INIT macro modified.
16931
16932 Wed Apr 7 09:41:50 1993 Doug Evans (dje@canuck.cygnus.com)
16933
16934 * libc/include/sys/reent.h: Stuff required by ANSI headers moved
16935 here from ../reent.h.
16936
16937 Tue Apr 6 12:56:01 1993 Ian Lance Taylor (ian@cygnus.com)
16938
16939 * Makefile.in (MATHOBJS_IN_LIBC): List of object files which
16940 should be provided in both libc.a and libm.a.
16941 (libc.a): Depend on targ-include and libm.a. Copy
16942 $(MATHOBJS_IN_LIBC) from libm.a to libc.a.
16943 (libm.a): Depend on targ-include.
16944 * configure.in (subdirs): Removed libc/math.
16945
16946 Mon Apr 5 10:18:16 1993 Steve Chamberlain (sac@thepub.cygnus.com)
16947
16948 * libm/ieeefp/infinity.c (maxpowtwo): Fix initialization bug.
16949
16950 Sat Apr 3 11:06:07 1993 Doug Evans (dje@canuck.cygnus.com)
16951
16952 * libc/include/{errno.h, math.h, stdio.h, stdlib.h}: Use
16953 sys/reent.h instead of reent.h.
16954 * libc/include/reent.h: Split into two parts: stuff needed by ANSI
16955 headers moved to sys/reent.h.
16956 * libc/include/signal.h: _MAX_SIGNALS moved to sys/signal.h.
16957 * libc/include/sys/signal.h: Define _MAX_SIGNALS if
16958 __need__MAX_SIGNALS defined.
16959 * libc/include/stdio.h: struct __sFILE moved to sys/reent.h.
16960 std{in,out,err} refer to new _std{in,out,err} members.
16961
16962 Fri Apr 2 11:27:12 1993 Doug Evans (dje@canuck.cygnus.com)
16963
16964 * libc/include/sys/signal.h: #define _SYS_SIGNAL_H for general
16965 case.
16966
16967 Fri Apr 2 09:41:10 1993 Doug Evans (dje@canuck.cygnus.com)
16968
16969 * libc/sys/sparc64/execve.S (execve): Insert nop in delay slot,
16970 rather than whatever macro seterrno() has.
16971
16972 Thu Apr 1 16:47:08 1993 Doug Evans (dje@canuck.cygnus.com)
16973
16974 * libc/locale/locale.c: Reentrant routines _r_xxx renamed to
16975 _xxx_r. struct reent_struct renamed to struct _reent for ANSI.
16976
16977 * libc/include/machine/fastmath.h: Use _HAVE_STDC instead of
16978 __STDC__.
16979
16980 * libc/reent/{execr.c, filer.c, fstatr.c, linkr.c, reent.c,
16981 reent.tex, sbrkr.c, statr.c}: _r_xxx reentrant routines renamed to
16982 _xxx_r. struct reent_struct renamed to struct _reent for ANSI.
16983
16984 * libc/signal/signal.c: Reentrant routines _r_xxx renamed to
16985 _xxx_r. struct reent_struct renamed to struct _reent for ANSI.
16986
16987 * libc/stdio/{fclose.c, fdopen.c, findfp.c, fiprintf.c, flags.c,
16988 fopen.c, fprintf.c, freopen.c, fscanf.c, fseek.c, ftell.c,
16989 fwalk.c, getchar.c, gets.c, iprintf.c, local.h, makebuf.c,
16990 mktemp.c, perror.c, printf.c, putchar.c, puts.c, refill.c,
16991 remove.c, rename.c, scanf.c, setvbuf.c, siprintf.c, sprintf.c,
16992 sscanf.c, stdio.c, tmpfile.c, tmpnam.c, vfprintf.c, vfprintf.h,
16993 vfscanf.c, vprintf.c, vsprintf.c}: Reentrant routines _r_xxx
16994 renamed to _xxx_r. struct reent_struct renamed to struct _reent
16995 for ANSI. structure members given leading "_" for ANSI. Use
16996 _HAVE_STDC instead of __STDC__ and _HAVE_STDARG.
16997
16998 * libc/stdlib/{__adjust.c, calloc.c, dtoa.c, ecvtbuf.c, malloc.c,
16999 mprec.c, mprec.h, rand.c, std.h, strtod.c, strtol.c, strtoul.c,
17000 system.c}: Reentrant routines _r_xxx renamed to _xxx_r. struct
17001 reent_struct renamed to struct _reent for ANSI.
17002 Structure members given leading "_" for ANSI.
17003 _CONST --> const in prototypes.
17004 Use _HAVE_STDC instead of __STDC__.
17005
17006 * libc/string/strtok.c: Reentrant routines _r_xxx renamed to
17007 _xxx_r.
17008 struct reent_struct renamed to struct _reent for ANSI.
17009 Structure members given leading "_" for ANSI.
17010
17011 * libc/time/asctime.c: Reentrant routines _r_xxx renamed to
17012 _xxx_r.
17013 struct reent_struct renamed to struct _reent for ANSI.
17014
17015 * libm/math/{acos.h, acosh.h, asin.c, asinh.h, atanh.h, bessel.h,
17016 cbrt.h, cosh.h, erf.c, erf.h, error.c, exp.c, fmod.c, frexp.h,
17017 gamma.h, hypot.h, ldexp.c, log.h, log10.c, log1p.c log2.c,
17018 mathimpl.h, pow.c, remainder.c, sincos.c, sinh.h, sqrt.h, tan.c,
17019 tanh.h}: struct reent_struct renamed to struct _reent for ANSI.
17020
17021 * libc/include/{_ansi.h, ctype.h, math.h, reent.h, locale.h,
17022 signal.h, stdio.h, stdlib.h, string.h, time.h}:
17023 Use _HAVE_STDC instead of __STDC__ and _HAVE_STDARG.
17024 #ifndef _STRICT_ANSI non-ANSI routines.
17025 Reentrant routines renamed from _r_xxx to _xxx_r.
17026 No need to use _STRICT_ANSI on _xxx_r reentrant routines.
17027 Use _STRICT_ANSI instead of __STRICT_ANSI, _ANSI_SOURCE, etc.
17028 Clean up namespace (structure members have leading "_").
17029 struct reent_struct renamed to struct _reent for ANSI compliance.
17030 _CONST --> const in function prototypes.
17031
17032 * libc/include/string.h: Add NULL and size_t.
17033
17034 * libc/sys/sparc64/Makefile.in: New syscall routines for link,
17035 unlink, wait, wait4. Reentrant syscall routines close, fork,
17036 fstat, link, lseek, open, read, sbrk, stat, unlink, wait, wait4,
17037 write.
17038 * libc/sys/sparc64/cerror.S (cerror_r): New routine.
17039 * libc/sys/sparc64/{close.S, fork.S, fstat.S, link.S, lseek.S,
17040 open.S, read.S, sbrk.S, stat.S, unlink.S, wait.S, wait4.S,
17041 write.S}: Define reentrant versions.
17042 * libc/sys/sparc64/sys/syscallasm.h (defsyscall_r): New macro for
17043 reentrant syscalls.
17044
17045 * libc/sys/sparc64/crt0.S (start): Fix initialization of environ.
17046
17047 * libc/include/stdlib.h (RAND_MAX): Fix value.
17048
17049 Thu Apr 1 12:28:30 1993 Ian Lance Taylor (ian@cygnus.com)
17050
17051 * libc/sys/a29khif/_main.c: Removed unnecessary file.
17052 * libc/sys/a29khif/Makefile.in (OFILES): Removed _main.c, moved
17053 VPATH support targets after all: target.
17054
17055 * stub/mvme135/mvme.S: Renamed exceptionhandler to
17056 exceptionHandler, which is what mvme135-stub.c expects.
17057
17058 Wed Mar 31 17:42:03 1993 Doug Evans (dje@cygnus.com)
17059
17060 * libc/stdio/tmpnam.c (worker): Fix test for _r_open() failure.
17061
17062 * libc/unix/getpass.c (getpass): Use stdin,stderr instead of
17063 def_stdin/def_stderr (latter removed from stdio.h to make it ANSI
17064 compliant).
17065
17066 Tue Mar 30 09:58:21 1993 Doug Evans (dje@canuck.cygnus.com)
17067
17068 * libc/reent/execr.c (_r_wait): Re-order args to make reent_struct
17069 first.
17070 libc/reent/filer.c (_r_open, _r_close, _r_lseek, _r_read,
17071 _r_write): Ditto.
17072 libc/reent/fstatr.c (_r_fstat): Ditto.
17073 libc/reent/linkr.c (_r_link, _r_unlink): Ditto.
17074 libc/reent/sbrkr.c (_r_sbrk): Ditto.
17075 libc/reent/statr.c (_r_stat): Ditto.
17076
17077 * libc/stdio/fopen.c (_r_fopen): Re-order args to _r_open.
17078 * libc/stdio/freopen.c (freopen): Ditto for _r_open, _r_free.
17079 * libc/stdio/fseek.c (fseek): Ditto for _r_fseek.
17080 * libc/stdio/makebuf.c (__smakebuf): Ditto for _r_fstat.
17081 * libc/stdio/mktemp.c (_gettemp): Ditto for _r_stat, _r_open.
17082 * libc/stdio/remove.c (_r_remove): Ditto for _r_unlink.
17083 * libc/stdio/rename.c (_r_rename): Ditto for _r_link, _r_unlink.
17084 * libc/stdio/stdio.c (__sread): Ditto for _r_read.
17085 (__swrite): Ditto for _r_lseek, _r_write.
17086 (__sseek): Ditto for _r_lseek.
17087 (__close): Ditto for _r_close.
17088 * libc/stdio/tmpnam.c (worker): Ditto for _r_open, _r_close.
17089
17090 * libc/stdlib/malloc.c (_r_morecore): Re-order args to _r_sbrk.
17091 * libc/stdlib/system.c (_r_system): Ditto for _r_wait.
17092
17093 * libc/include/reent.h: Re-order arguments to _r_xxx syscall fns
17094 to make reent_struct the first argument (and thus consistent with
17095 the rest of newlib).
17096
17097 * stub/mvme135/mvme135-stub.c (initializeRemcomErrorFrame): Remove
17098 reference to __STDC__.
17099
17100 Mon Mar 29 12:34:32 1993 Doug Evans (dje@canuck.cygnus.com)
17101
17102 * libc/stdlib/exit.c (exit): Use _REENT->__cleanup instead of
17103 global __cleanup.
17104
17105 Wed Mar 24 11:54:35 1993 Doug Evans (dje@canuck.cygnus.com)
17106
17107 * libc/stdio/freopen.c (freopen): Ensure stdio is initialized
17108 first.
17109 libc/stdio/fclose.c (fclose): Ditto.
17110
17111 Tue Mar 23 01:26:52 1993 Doug Evans (dje@rtl.cygnus.com)
17112
17113 * Run through indent and rename reentrant routines for ANSI.
17114 libc/stdio/{clearerr.c cvt.c fclose.c fdopen.c feof.c ferror.c
17115 fflush.c fgetc.c fgetpos.c fgets.c findfp.c fiprintf.c flags.c
17116 fopen.c fprintf.c fputc.c fputs.c fread.c freopen.c fscanf.c
17117 fseek.c fsetpos.c ftell.c fvwrite.c fwalk.c fwrite.c getc.c
17118 getchar.c gets.c iprintf.c makebuf.c mktemp.c perror.c printf.c
17119 putc.c putchar.c puts.c refill.c remove.c rename.c rewind.c rget.c
17120 scanf.c setbuf.c setvbuf.c siprintf.c sprintf.c sscanf.c stdio.c
17121 tmpfile.c tmpnam.c ungetc.c vfprintf.c vfscanf.c vprintf.c
17122 vsprintf.c wbuf.c wsetup.c local.h}
17123
17124 * libc/locale/locale.c: Reformat and rename for ANSI, GNU style.
17125
17126 * Run through indent and rename xxx_r fns to _r_xxx for ANSI.
17127 libc/stdlib/{__adjust.c __exp10.c __ten_mu.c abort.c abs.c
17128 assert.c atexit.c atof.c atoi.c atol.c bsearch.c calloc.c div.c
17129 dtoa.c ecvtbuf.c efgcvt.c exit.c getenv.c labs.c ldiv.c malloc.c
17130 mbtowc.c mprec.c putenv.c qsort.c rand.c setenv.c strdup.c
17131 strtod.c strtol.c strtoul.c system.c wctomb.c mprec.h}
17132
17133 * Run through indent.
17134 libc/string/{bcmp.c bcopy.c bzero.c index.c memchr.c memcmp.c
17135 memcpy.c memmove.c memset.c rindex.c strcat.c strchr.c strcmp.c
17136 strcoll.c strcpy.c strcspn.c strerror.c strlen.c strncat.c
17137 strncmp.c strncpy.c strpbrk.c strrchr.c strspn.c strstr.c strtok.c
17138 strxfrm.c}
17139
17140 * libc/time/{asctime.c clock.c ctime.c difftime.c gmtime.c
17141 localtime.c mktime.c strftime.c time.c}:
17142 Run through indent and rename xxx_r (reentrant) fns to _r_xxx for ANSI.
17143
17144 * Reformatting + renaming (for ANSI, GNU style, consistency).
17145 libc/include/{_ansi.h, assert.h, ctype.h, errno.h, fastmath.h,
17146 ieeefp.h, locale.h, math.h, paths.h, pwd.h, reent.h, setjmp.h,
17147 signal.h, stdio.h, stdlib.h, string.h, time.h, unistd.h}
17148
17149 Fri Mar 19 11:28:01 1993 Doug Evans (dje@cygnus.com)
17150
17151 * libc/include/stdio.h (stdin_r): Fix.
17152
17153 Fri Mar 19 09:43:48 1993 Ian Lance Taylor (ian@cygnus.com)
17154
17155 * Makefile.in: Unexport some variables to keep GNU make from
17156 putting them in the environment and using up needed ARG_MAX space
17157 (a hack is used to let this work with older makes as well).
17158
17159 Tue Mar 16 15:11:08 1993 Ian Lance Taylor (ian@cygnus.com)
17160
17161 * Makefile.in: Use $(MAKE) rather than make.
17162 (MAKEOVERRIDES): Define to be empty.
17163 (FLAGS_TO_PASS): Don't pass down LD (it's not used).
17164 (libc.a, libm.a): Depend on targ-include.
17165 * host/any (LD): Don't define.
17166 (INCLUDES): Use targ-include.
17167 * stub/Makefile.in (MAKEOVERRIDES): Define to be empty.
17168 (FLAGS_TO_PASS): Don't pass down LD (it's not used).
17169 * libc/Makefile.in: Use $(MAKE) rather than make.
17170 (MAKEOVERRIDES): Define to be empty.
17171 (FLAGS_TO_PASS): Don't pass LD (it's not used).
17172 (all): Rewrote to be slightly smaller.
17173 * libc/machine/Makefile.in, libc/sys/Makefile.in (MAKEOVERRIDES):
17174 Define to be empty.
17175 (FLAGS_TO_PASS): Don't pass LD (it's not used).
17176 * libm/Makefile.in (FLAGS_TO_PASS): Don't pass LD (it's not used).
17177
17178 Mon Mar 15 08:45:41 1993 Ian Lance Taylor (ian@cygnus.com)
17179
17180 * libc/sys/go32/gerrno.s: Renamed from errno.s to avoid conflict
17181 with errno/errno.c.
17182
17183 Fri Mar 12 09:46:54 1993 Ian Lance Taylor (ian@cygnus.com)
17184
17185 * Changes for reentrancy.
17186 libc/stdio/fdopen.c, libc/stdio/freopen.c, libc/stdio/perror.c:
17187 Use ptr->_errno, not errno.
17188 libc/stdio/mktemp.c (mkstemp_r, mktemp_r): New functions.
17189 libc/stdio/remove.c (remove_r): New function.
17190 libc/stdio/rename.c (rename_r): New function.
17191 libc/stdio/fopen.c, libc/stdio/freopen.c, libc/stdio/fseek.c,
17192 libc/stdio/makebuf.c, libc/stdio/mktemp.c, libc/stdio/remove.c,
17193 libc/stdio/rename.c, libc/stdio/stdio.c, libc/stdio/tmpnam.c: Use
17194 reentrant versions of system calls.
17195 libc/stdio/gets.c: Call getchar_f, not nonexistent getchar_r.
17196 libc/stdio/scanf.c: Use stdin_r, not nonexistent stdin_n.
17197 libc/stdio/tmpfile.c: Use tmpnam_f, not nonexistent tmpnam_r.
17198 libc/stdio/findfp.c: Include <string.h>.
17199 libc/stdio/fread.c, libc/stdio/rget.c, libc/stdio/scanf.c: Include
17200 "local.h".
17201 libc/stdio/wbuf.c: Include "fvwrite.h"
17202
17203 * libc/stdlib/{dtoa.c, ecvtbuf.c, mprec.c, strtod.c}: Include
17204 <string.h>.
17205 libc/stdlib/malloc.c: Call sbrk_r rather than sbrk.
17206 (NULL): Don't define if already defined.
17207 libc/stdlib/system.c: Call reentrant versions of system calls.
17208 (system_r): New function.
17209
17210 * Changes for reentrancy.
17211 libc/include/_ansi.h (_PARAMS): New macro.
17212 libc/include/errno.h: Define errno as a macro that calls __errno.
17213 (__errno_r): New macro for reentrant code.
17214 libc/include/math.h: Include reent.h. Declare many reentrant
17215 functions.
17216 (signgam): Now a macro, not a variable.
17217 (struct exception): Added err field.
17218 libc/include/reent.h: Don't declare __sglue. Added function
17219 declarations.
17220 (struct reent_struct): Moved errno to beginning. Added _signgam.
17221 libc/include/stdio.h, libc/include/stdlib.h: Added function
17222 declarations.
17223
17224 * More reentrancy hacking.
17225 libc/errno/errno.c (__errno): New function.
17226 libc/reent/execr.c, libc/reent/filer.c, libc/reent/fstatr.c,
17227 libc/reent/linkr.c, libc/reent/sbrkr.c, libc/reent/statr.c: New
17228 files.
17229
17230 * Added many new reentrant functions to libm/math/*.
17231 libm/math/error.c (__matherror): Added reent_struct pointer
17232 argument. Changed all callers.
17233 libm/math/gamma.c (signgam): Removed. Set ptr->_signgam, instead.
17234 libm/math/exp.h, libm/math/pow.h, libm/math/sincos.h,
17235 libm/math/tan.h: Removed obsolete unused header files.
17236
17237 * libc/sys/a29khif/stubs.s: Use register lr0, not v0.
17238
17239 * libc/sys/sun/Makefile.in (COPYOFILES): Don't pull in errno.o.
17240
17241 Mon Mar 8 16:43:43 1993 Steve Chamberlain (sac@thepub.cygnus.com)
17242
17243 * libc/sys/a29khif/stubs.s: clobber safe register, and fill all
17244 delay slots.
17245
17246 Tue Mar 2 14:47:00 1993 Jeffrey Osier (jeffrey@fowanton.cygnus.com)
17247
17248 * libc/libc.texinfo: comment out reentrancy chapter (duh)
17249
17250 Tue Mar 2 14:34:16 1993 Jeffrey Osier (jeffrey@fowanton.cygnus.com)
17251
17252 * libc/reent/reent.tex: New file. (text from
17253 newlib/libc/libc.texinfo)
17254 * libc/stdio/tmpnam.c: fixed doc typo
17255 * libc/stdlib/rand.c: fixed doc typo
17256
17257 Tue Mar 2 14:34:16 1993 Jeffrey Osier (jeffrey@fowanton.cygnus.com)
17258
17259 * libc/reent/reent.tex: New file. (text from
17260 newlib/libc/libc.texinfo)
17261
17262 Fri Feb 26 12:20:54 1993 Steve Chamberlain (sac@thepub.cygnus.com)
17263
17264 support for reentrancy
17265 * libc/reent/reent.c, libc/reent/Makefile.in, libc/reent/reent.c:
17266 new files
17267 * libc/errno/errno.c, libc/include/ieeefp.h,
17268 libc/include/locale.h, libc/include/reent.h,
17269 libc/include/signal.h, libc/include/stdio.h,
17270 libc/include/stdlib.h, libc/include/string.h, libc/include/time.h,
17271 libc/signal/signal.c libc/stdio/cvt.c, libc/stdio/fclose.c,
17272 libc/stdio/fdopen.c, libc/stdio/fflush.c, libc/stdio/fgets.c,
17273 libc/stdio/findfp.c, libc/stdio/flags.c, libc/stdio/fopen.c,
17274 libc/stdio/fputc.c, libc/stdio/freopen.c, libc/stdio/fseek.c,
17275 libc/stdio/ftell.c, libc/stdio/fwalk.c, libc/stdio/getchar.c,
17276 libc/stdio/gets.c, libc/stdio/glue.h, libc/stdio/iprintf.c,
17277 libc/stdio/local.h, libc/stdio/makebuf.c, libc/stdio/perror.c,
17278 libc/stdio/printf.c, libc/stdio/putchar.c, libc/stdio/puts.c,
17279 libc/stdio/refill.c, libc/stdio/scanf.c, libc/stdio/setvbuf.c,
17280 libc/stdio/sprintf.c, libc/stdio/tmpfile.c, libc/stdio/tmpnam.c,
17281 libc/stdio/ungetc.c, libc/stdio/vfprintf.c, libc/stdio/vfprintf.h,
17282 libc/stdio/vfscanf.c, libc/stdio/vprintf.c, libc/stdio/wsetup.c,
17283 libc/stdlib/__adjust.c, libc/stdlib/__exp10.c,
17284 libc/stdlib/assert.c, libc/stdlib/atexit.c, libc/stdlib/atol.c,
17285 libc/stdlib/dtoa.c, libc/stdlib/ecvtbuf.c, libc/stdlib/malloc.c,
17286 libc/stdlib/mprec.c, libc/stdlib/mprec.h, libc/stdlib/rand.c,
17287 libc/stdlib/setenv.c, libc/stdlib/std.h, libc/stdlib/strtod.c,
17288 libc/stdlib/strtol.c, libc/stdlib/strtoul.c, libc/string/strtok.c,
17289 libc/time/asctime.c, libc/time/localtime.c, libc/time/mktime.c,
17290 libc/time/strftime.c: modify to provide reentracy.
17291
17292 new routines:
17293 strtok_r, asctime_r, fdopen_r, _cleanup_r, fopen_r, iprintf_r,
17294 perror_r, printf_r, putchar_r, puts_r, scanf_r, sprintf_r,
17295 tmpfile_r, vfiprintf_r, vfprintf_r, strtod_r, dtoa_r, rand_r,
17296 srand_r, strtoul_r,strtol_r, free_r, malloc_r, morecore_r,
17297 mstats_r, realloc_r, localeconv_r, setlocale_r
17298
17299 Wed Feb 17 20:17:15 1993 Mark Eichin (eichin@cygnus.com)
17300
17301 * libc/include/machine/ieeefp.h, libc/include/machine/setjmp.h,
17302 libc/include/sys/config.h, libc/include/sys/signal.h,
17303 libc/include/sys/stat.h, libc/include/sys/types.h: For compiler
17304 provided macros (such as m68000), use the ansi version
17305 (__m68000__) so that the library can be used with code compiled
17306 -ansi. In particular, m68000, mc68000, _AM29K, i386, MIPSEL, unix,
17307 and sparc.
17308
17309 Wed Feb 17 13:01:34 1993 Jim Wilson (wilson@sphagnum.cygnus.com)
17310
17311 * configure.in (sparc*): Don't set -fsoft-float for sparc
17312 configurations. Do set -fsoft-float for sparclite configurations.
17313
17314 Fri Feb 12 16:25:52 1993 Roland H. Pesch (pesch@fowanton.cygnus.com)
17315
17316 * default.menu, no-signal.menu: alternate forms of libc main menu
17317 (in newlib rather than newlib/libc due to configuration restrictions)
17318
17319 * configure.in: select one of the two menus above, link to
17320 libc.menu
17321
17322 * libc/libc.texinfo: include menu from separate file
17323
17324 Fri Feb 12 12:50:06 1993 Ian Lance Taylor (ian@cygnus.com)
17325
17326 * Makefile.in (FLAGS_TO_PASS): Put INSTALL back in.
17327 (info): Split long shell command in half.
17328 * libc/Makefile.in (info, targetdep.tex): Don't pass everything to
17329 sub-makes, just CHEW and TARGETDOC.
17330 (targetdep.tex): Removed now special handling of sys and machine
17331 subdirectories, made obsolete some time ago.
17332 * libc/machine/Makefile.in (doc): Don't pass everything to
17333 sub-make, just CHEW and TARGETDOC.
17334 (Makefile): New target.
17335 * libc/sys/Makefile.in (Makefile): New target.
17336
17337 Thu Feb 11 15:25:15 1993 Ian Lance Taylor (ian@cygnus.com)
17338
17339 * Makefile.in (here and most subdirectories): Only pass down CHEW
17340 and TARGETDOC when making info, not for other targets.
17341
17342 * Makefile.in (here and most subdirectories), host/any: Use $(AR)
17343 $(AR_FLAGS) rather than $(ARUPDATE).
17344
17345 Wed Feb 10 11:57:52 1993 Ian Lance Taylor (ian@cygnus.com)
17346
17347 * Try to reduce command line length:
17348 * Makefile.in (FLAGS_TO_PASS): don't pass down exec_prefix,
17349 CC_FOR_BUILD, CFLAGS_FOR_BUILD, INSTALL or CHEW.
17350 (info, docs): pass CC_FOR_BUILD and CFLAGS_FOR_BUILD to doc.
17351 (info): Pass CHEW to other subdirs.
17352
17353 Tue Feb 9 14:01:42 1993 Mark Eichin (eichin@cygnus.com)
17354
17355 * configure.in: add signal_dir, like unix_dir, but by default it
17356 is set to "signal" so that a29khif can turn it off (since a29khif
17357 has raise() as part of machine-specific signal.s.)
17358
17359 Fri Jan 15 12:09:50 1993 Steve Chamberlain (sac@thepub.cygnus.com)
17360
17361 * libc/sys/config.h, libc/machine/ieeefp.h: add Z8000 support
17362 * libc/stdio/Makefile.in: pass CFLAGS so vfiprintf.c gets built
17363 correctly.
17364 * libc/stdio/fdopen.c, libc/stdio/fgets.c, libc/stdio/fscanf.c,
17365 libc/stdio/vfprintf: type lint.
17366 * libc/sys/z8ksim/crt0.c (start): Z8001/Z8002 independent
17367 initialzation code.
17368 * libc/sys/z8ksim/glue.c: Z8001/Z8002 clean system calls.
17369
17370 Tue Dec 29 10:15:33 1992 Ian Lance Taylor (ian@cygnus.com)
17371
17372 * stub/mvme135/mvme135-asm.S: new file.
17373 stub/mvme135mvme135-stub.c: moved all assembler routines into
17374 mvme135-asm.S.
17375 stub/mvme135/Makefile.in: build mvme135-stub.o.
17376
17377 Mon Dec 28 12:40:43 1992 Ian Lance Taylor (ian@cygnus.com)
17378
17379 * Makefile.in: don't pass down $(CPP); use $(CC) -E in
17380 sub-Makefiles instead, to try to avoid line length limitations.
17381
17382 Mon Dec 21 18:36:13 1992 Per Bothner (bothner@rtl.cygnus.com)
17383
17384 * libc/include/unistd.h (read, write): Use void* instead of
17385 char*.
17386
17387 Thu Dec 17 13:49:46 1992 Mark Eichin (eichin@cygnus.com)
17388
17389 * stub/go32/resetpc: sample script to send a reset packet to the
17390 stub
17391
17392 * stub/go32/I386STUB.C: new file, gdb/i386stub.c modified for the
17393 DOS environment, which compiles with Turbo C.
17394
17395 * stub/go32/DSER32.LNK: new file, linker commands for serial
17396 remote stub.
17397
17398 * stub/go32/CONTROL.C: turn off debug_mode, add CYGNUS tag line to
17399 start up message to identify version; call set_debug_traps.
17400
17401 * stub/go32/DEBUG.C: turn off debug_mode (so stub doesn't need any
17402 keyboard interaction); call handle_exception() in go_til_stop,
17403 rather than return, so that the remote stub gets control.
17404
17405 * stub/go32/MAKEFILE: fixed to actually use DOS commands (del and
17406 rename, rather than mv), set flags that work with current Turbo C,
17407 including using the /3 flag; also, add commands to build dser32.
17408
17409 * stub/go32/DEBUG32.LNK, stub/go32/GO32.LNK: fix paths to match
17410 default Turbo C installation (\tc rather than \usr)
17411
17412 * stub/go32/MONO.C (printf): current Turbo C uses "..." instead of
17413 "&..."
17414
17415 Mon Dec 14 09:37:33 1992 Steve Chamberlain (sac@thepub.cygnus.com)
17416
17417 * libc/include/math.h: added _DOUBLE_IS_32BITS checks
17418
17419 Thu Nov 12 22:31:04 1992 Steve Chamberlain (sac@thepub.cygnus.com)
17420
17421 * libc/stdio/cvt.c (licvt): new function to convert ints when
17422 sizeof(int) != sizeof(long).
17423
17424 * libc/include/stdio.h: added prototype for iprintf.
17425 * libc/include/machine/limits.h machine/ieeefp.h: z8k stuff
17426
17427 Tue Nov 10 12:18:12 1992 Ian Lance Taylor (ian@cygnus.com)
17428
17429 * libc/machine/m68k/setjmp.S: use __USER_LABEL_PREFIX__ and
17430 __REGISTER_PREFIX__.
17431
17432 Mon Nov 2 13:50:14 1992 Ian Lance Taylor (ian@cygnus.com)
17433
17434 * libc/sys/m68kbare: moved into stub directory.
17435
17436 Mon Nov 2 13:40:42 1992 Ian Lance Taylor (ian@cygnus.com)
17437
17438 * configure.in, Makefile.in: created new directory stub, to hold
17439 sample code for specific targets.
17440
17441 Wed Oct 28 02:19:55 1992 Mark Eichin (eichin@cygnus.com)
17442
17443 * restored libc/sys/go32/sys/fcntl.h, to override incorrect values
17444 in the unified libc/include/sys/fcntl.h.
17445
17446 Wed Oct 21 13:55:58 1992 Doug Evans (dje@rtl.cygnus.com)
17447
17448 * libc/stdlib/ecvtbuf.c: (print_f,_gcvt): printf("%f", 0.01)
17449 printed .01, not 0.01.
17450
17451 Mon Oct 19 11:05:55 1992 Ian Lance Taylor (ian@cygnus.com)
17452
17453 * configure.in: compile with -m68000 for m68* targets.
17454
17455 Sun Oct 18 05:29:05 1992 Mark Eichin (eichin@cygnus.com)
17456
17457 * libm/math/remainder.c (remainder): document the svr4 and sunos
17458 references used to construct the function.
17459
17460 Sat Oct 17 21:46:16 1992 Mark Eichin (eichin@cygnus.com)
17461
17462 * libm/math/remainder.c (rint, remainder): fix old typos.
17463 * libm/math/Makefile.in: actually build remainder.c (functions
17464 rint and remainder, from SysVr4 Programmer's Guide floor(3m) man
17465 page.)
17466
17467 Thu Oct 15 07:48:05 1992 Ian Lance Taylor (ian@cygnus.com)
17468
17469 * libc/string/bcopy.c: BSD version works on overlapping strings,
17470 so ours should too.
17471
17472 * libc/stdlib/system.c: always invoke /bin/sh, not getenv
17473 ("SHELL").
17474
17475 Wed Oct 14 11:07:11 1992 Ian Lance Taylor (ian@cygnus.com)
17476
17477 * Makefile.in (docs): new target.
17478
17479 Wed Oct 14 07:44:25 1992 Ian Lance Taylor (ian@cygnus.com)
17480
17481 * libc/include/sys/times.h: define clock_t as required by POSIX.
17482 libc/include/time.h: protect clock_t from multiple definitions.
17483
17484 Wed Oct 7 11:02:21 1992 Mark Eichin (eichin at tweedledumber.cygnus.com)
17485
17486 * libm/math/sqrt.h (sqrt): actually, the final version of fp-bit
17487 does not need more than the original three iterations to get
17488 within 1 ulp. (Paranoia tests for rounding to better than that,
17489 but further iterations *don't* help, only more subtle changes
17490 can.)
17491
17492 Tue Oct 6 09:22:12 1992 Ian Lance Taylor (ian@cygnus.com)
17493
17494 * libc/sys/vxworks68, libc/sys/vxworks960: removed, since they
17495 were doing nothing useful.
17496
17497 Tue Oct 6 08:48:13 1992 Ian Lance Taylor (ian@cygnus.com)
17498
17499 * configure.in: define MALLOC_PROVIDED for vxworks targets;
17500 removed sys_dir settings of vxworks68 and vxworks960.
17501 host/any: don't pass -nostdinc to gcc, since newlib no longer
17502 provides all required header files.
17503
17504 * libc/stdlib/malloc.c: only compile this file if MALLOC_PROVIDED
17505 is not defined; this provides a hook for VxWorks.
17506
17507 Mon Oct 5 03:44:57 1992 Mark Eichin (eichin at tweedledumber.cygnus.com)
17508
17509 * libc/stdio/setvbuf.c (setvbuf): while ANSI does say to malloc a
17510 buffer if buf is NULL, don't do it here -- it is already being
17511 done by makebuf elsewhere in stdio.
17512
17513 Fri Oct 2 13:12:07 1992 Ian Lance Taylor (ian@cygnus.com)
17514
17515 * libc/sys/a29khif/Makefile.in: assemble Steve's list of stubs so
17516 that C programs can call functions without using initial
17517 underscores.
17518
17519 Thu Oct 1 09:37:47 1992 Ian Lance Taylor (ian@cygnus.com)
17520
17521 * libc/stdlib/abort.c (abort): call exit, in case kill returns.
17522
17523 Wed Sep 30 08:22:18 1992 Ian Lance Taylor (ian@cygnus.com)
17524
17525 * configure.in: set TARGET_CFLAGS for certain CPU types to
17526 -msoft-float.
17527
17528 Tue Sep 29 21:09:32 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
17529
17530 * libc/sys/m68kbare/glue.c: use <_ansi.h> instead of <ansidecl.h>
17531
17532 Mon Sep 28 14:58:44 1992 Ian Lance Taylor (ian@cygnus.com)
17533
17534 * configure.in: added sys_dir m68kbare for m68k*-unknown-aout and
17535 m68k*-unknown-coff.
17536
17537 Fri Sep 25 08:33:21 1992 Ian Lance Taylor (ian@cygnus.com)
17538
17539 * libc/include/stdio.h: define __need___va_list before including
17540 <stdarg.h>, to avoid defining va_arg, et. al.
17541
17542 Tue Sep 22 13:47:00 1992 Ian Lance Taylor (ian@cygnus.com)
17543
17544 * libc/sys/Makefile.in: handle the case of an empty $(sys_dir)
17545 (don't cd to the user's home directory).
17546
17547 * libc/Makefile.in: replaced all instances of $(MAKE) with make.
17548 In general this is the wrong thing to do, but I can't get around
17549 GNU make's insistence on passing command line arguments any other
17550 way.
17551
17552 Tue Sep 22 10:12:44 1992 Ian Lance Taylor (ian@cygnus.com)
17553
17554 * configure.in: always configure the libc/sys directory, since it
17555 now provides a required documentation file.
17556
17557 * Makefile.in: replaced all instances of $(MAKE) with make. In
17558 general this is the wrong thing to do, but I can't get around GNU
17559 make's insistence on passing command line arguments any other way.
17560
17561 Mon Sep 21 22:42:26 1992 Ian Lance Taylor (ian@tweedledumbest.cygnus.com)
17562
17563 * libc/stdlib/ecvtbuf.c (_gcvt): string for 0 was not null
17564 terminated.
17565
17566 * libc/stdio/local.h: include <stdarg.h> to define va_list.
17567 libc/stdio/vsprintf.c: include <stdarg.h> rather than <varargs.h>.
17568
17569 * libc/include/float.h, libc/include/stdarg.h,
17570 libc/include/stddef.h, libc/include/varargs.h: removed; use gcc
17571 versions instead.
17572 libc/include/stdio.h: get size_t from <stddef.h>, and va_list from
17573 <stdarg.h>, not from <machine/types.h>. Protect definition of
17574 NULL.
17575 libc/include/time.h: get size_t from stddef.h. Protect definition
17576 of NULL.
17577 libc/include/machine/limits.h: override gcc <limits.h> by defining
17578 _LIMITS_H___. Don't define CLK_TCK. Copied in gcc <limits.h> to
17579 get correct INT_MIN and LONG_LONG values.
17580 libc/include/machine/types.h: don't define ptrdiff_t, wchar_t,
17581 size_t or va_list at all; they're now gotten from stddef.h
17582 instead.
17583 libc/include/machine/varargs.h: removed; use gcc version instead.
17584 libc/include/sys/types.h: explicitly include <machine/types.h>.
17585
17586 * libm/math/sqrt.h: using the fp-bit routines appears to require
17587 more iterations.
17588
17589 * Makefile.in, host/any: let system include files override machine
17590 include files.
17591
17592 Sat Sep 19 21:10:06 1992 Mark Eichin (eichin at tweedledumber.cygnus.com)
17593
17594 * libc/include/machine/types.h: allow __*_TYPE__ from cpp to
17595 override _*_T_ definitions defaulted here.
17596
17597 Tue Sep 15 11:14:46 1992 Ian Lance Taylor (ian@cygnus.com)
17598
17599 * Makefile.in (install): install the include files in
17600 $(tooldir)/include, not $(exec_prefix)/include.
17601
17602 Fri Sep 11 15:48:43 1992 Ian Lance Taylor (ian@cygnus.com)
17603
17604 * Makefile.in (install): fixed typo, and changed install to not
17605 force rebuild of libc.a and libm.a.
17606
17607 Thu Sep 10 10:46:09 1992 Ian Lance Taylor (ian@cygnus.com)
17608
17609 * libc/sys/a29khif/*: Changed all .include's to include
17610 sys/sysmac.h, not plain sysmac.h. The header files live in sys so
17611 that they will be installed for the user.
17612
17613 * Makefile.in (all): create targ-include, a directory holding the
17614 machine and system specific header files during the build.
17615 (install): fixed installation of machine and system specific
17616 header files.
17617
17618 * Makefile.in: fixed comment.
17619 host/any: change .s.o rule to use $(AS) rather than $(CC), so that
17620 we can pass $(INCLUDES) to it.
17621
17622 Thu Sep 10 10:13:13 1992 Ian Lance Taylor (ian@cygnus.com)
17623
17624 * libc/include/sys/param.h: new generic file, which may be
17625 overridden for specific systems.
17626
17627 * libc/include/sys/signal.h: define all ANSI signal names, and
17628 NSIG (which is not ANSI) for a29k.
17629
17630 Tue Sep 8 09:04:30 1992 Ian Lance Taylor (ian@cygnus.com)
17631
17632 * Makefile.in: don't pass down arguments the lower level makes
17633 will not need.
17634 * libc/Makefile.in: recurse directly, rather than using subdir_do,
17635 in hopes of avoiding argument length limits.
17636 * libm/Makefile.in: recurse directly, rather using subdir_do, in
17637 hopes of avoiding argument length limits.
17638
17639 Tue Sep 8 08:27:22 1992 Ian Lance Taylor (ian@cygnus.com)
17640
17641 * libc/include/sys/fcntl.h: include <sys/types.h> to ensure that
17642 mode_t is defined.
17643
17644 Mon Sep 7 14:02:07 1992 Ian Lance Taylor (ian@cygnus.com)
17645
17646 * Fixed make info and make install-info for newlib, changing most
17647 Makefile.in and several *.tex files. Moved doc directory from
17648 libc to top level.
17649
17650 * libc/time/mktime.c (_DAYS_IN_MONTH): actually, not const.
17651 Should be rewritten.
17652
17653 * libc/string/strings.tex: renamed node index to node index
17654 function, so that it does not conflict with the top level index
17655 node.
17656
17657 * libc/include/sys/config.h: define __IEEE_BIG_ENDIAN for h8300.
17658
17659 Fri Sep 4 02:34:06 1992 Ian Lance Taylor (ian@cygnus.com)
17660
17661 * Overhauled general configuration for newlib. Eliminated all
17662 target dependent Makefile fragments. Create libraries in newlib
17663 rather than newlib/libc and newlib/libm. Use CC, et. al., rather
17664 than CROSS_CC, et. al. Broke make docs; will fix later.
17665
17666 * libc/time/localtime.c (_DAYS_IN_MONTH): actually, not const.
17667 Should be rewritten.
17668
17669 Tue Sep 1 15:21:14 1992 Ian Lance Taylor (ian@cygnus.com)
17670
17671 * libc/configure.in: cleaned up somewhat; switch on ${target}
17672 rather than ${target_alias}.
17673 * libm/configure.in: cleaned up somewhat; switch on ${target}
17674 rather than ${target_alias}.
17675
17676 * libc/ctype/ctype_.c: marked _ctype_ array _CONST.
17677 * libc/include/ctype.h: marked _ctype_ as _CONST.
17678
17679 * libc/locale/locale.c (lconv, localeconv): marked static lconv as
17680 _CONST.
17681
17682 * libc/stdio/cvt.c, libc/stdio/findfp.c (__sfmoreglue),
17683 libc/stdio/vfscanf.c (__svfscanf): made static variables const.
17684 libc/stdio/gets.c (gets): removed non-ANSI warning message.
17685 libc/stdio/tmpnam.c (tmpnam): removed unneeded filename variable.
17686
17687 * libc/stdlib/mprec.h, libc/stdlib/mprec.c (pow5mult, tens,
17688 bigtens, tinytens): marked arrays _CONST.
17689 libc/stdlib/qsort.c (swap): if __GNUC__, use _builtin_alloca
17690 rather than a static variable.
17691
17692 * libc/time/asctime.c (asctime), libc/time/localtime.c
17693 (_DAYS_IN_MONTH), libc/time/mktime.c (_DAYS_IN_MONTH,
17694 _DAYS_BEFORE_MONTH), libc/time/strftime.c (dname_len, dname,
17695 mname_len, mname): Marked static arrays _CONST.
17696
17697 * libm/math/gamma.h: made local variables non-static.
17698
17699 * libm/math/acos.h, libm/math/bessel.c, libm/math/erf.c,
17700 libm/math/exp.c, libm/math/gamma.h: marked static arrays as
17701 _CONST.
17702
17703 * libm/math/constants.c: removed file, because the constants it
17704 defined were never referenced.
17705 libm/math/Makefile.in: removed references to constants.c.
17706 libm/math/mathimpl.h: removed declarations of constants.
17707
17708 Wed Aug 26 21:09:06 1992 Ian Lance Taylor (ian@cygnus.com)
17709
17710 * libc/include/machine/varargs.h: only call __builtin_saveregs if
17711 it is sensibly defined in libgcc2. Checks preprocessor defines,
17712 which is not a good solution.
17713
17714 * libm/sqrt.c: sqrt(Infinity) should not be a domain error.
17715
17716 * libm/frexp.c: handle denormalized numbers as arguments.
17717
17718 * libm/math/Makefile.in: added some dependencies for .c files
17719 which include local .h files.
17720
17721 Mon Aug 24 12:57:58 1992 Ian Lance Taylor (ian@cygnus.com)
17722
17723 * libc/configure.in: set target_alias for OSE*. Replace
17724 target_makefile_frag if it is blank.
17725
17726 * libc/Makefile.in: make sure everything is passed to subsidiary
17727 makes; create all directories when installing.
17728
17729 * libm/ieeefp/Makefile.in, libm/math/Makefile.in: use
17730 CROSS_ARUPDATE instead of AR.
17731
17732 * libm/configure.in: set target_alias for OSE*. Replace
17733 target_makefile_frag if it is blank.
17734
17735 * libm/Makefile.in: make sure everything is passed to subsidiary
17736 makes; create all directories when installing.
17737
17738 Thu Aug 20 15:11:51 1992 Mark Eichin (eichin@cygnus.com)
17739
17740 * add following change from libc copy.
17741
17742 Wed Aug 19 18:54:49 1992 Roland H. Pesch (pesch@fowanton.cygnus.com)
17743
17744 * libc/libc.texinfo: make copyright disclaimers appear on back of
17745 title page; make format of same slightly less ugly; avoid using
17746 underbars in section headings (avoids nasty texinfo bug in table
17747 of contents).
17748
17749 * libc/ctype/tolower.c, libc/ctype/toupper.c: (doc changes in
17750 comments only) avoid using underbars in section headings
17751
17752 * libc/ieeefp/ieeefp.tex: include doc from fpsticky, infinity,
17753 isnan ieeefp/fpmask.c, ieeefp/fpround.c, ieeefp/fpsticky.c (doc
17754 changes in comments only): shorten headings ieeefp/infinity.c,
17755 ieeefp/isnan.c: (doc, comments only) more informative headings
17756
17757 * libc/math/bessel.c: (doc, comments only) shorten heading
17758
17759 * libc/stdlib/efgcvt.c, libc/stdlib/mbtowc.c, libc/stdlib/wctomb.c
17760 (doc, comments only) shorten headings
17761
17762 * libc/time/localtime.c (doc, comments only): shorten headings
17763
17764 * libm/ieeefp/ieeefp.tex: include doc from fpsticky, infinity,
17765 isnan
17766 libm/ieeefp/fpmask.c, libm/ieeefp/fpround.c,
17767 libm/ieeefp/fpsticky.c (doc changes in comments only): shorten
17768 headings
17769 libm/ieeefp/infinity.c, libm/ieeefp/isnan.c: (doc, comments
17770 only) more informative headings
17771 * libm/math/bessel.c: (doc, comments only) shorten heading
17772
17773 Wed Aug 19 07:06:37 1992 Mark Eichin (eichin at tweedledumber.cygnus.com)
17774
17775 * .../Makefile.in: use CROSS_ARUPDATE consistently.
17776 * config/*.mt: define CROSS_AR as well as CROSS_ARUPDATE
17777 * config/*.mt: define CROSS_CPP based on CROSS_CC, not /lib/cpp.
17778 * .../Makefile.in: get rid of .c.o rule - if TOP is correctly
17779 defined, the one from the .mt file will be correct.
17780 * libc/include/machine, libc/include/sys: created, and populated
17781 with common files from machine/*/machine. ifdefs were used for
17782 most, typically by handling exceptions first and then filling in
17783 defaults. Files with D.J. Delorie copyright #included rather than
17784 copied. Most files in include/sys really were the same in the
17785 original.
17786 * libc/include/...: cleaned up use of _EXFUN.
17787 * libc/stdlib/mprec.c: mprec.h doesn't get installed, so include
17788 it with double quotes, not angles.
17789
17790 Mon Aug 10 11:43:20 1992 Ian Lance Taylor (ian@dumbest.cygnus.com)
17791
17792 * libc/Makefile.in: always create installation directories.
17793
17794 Sun Aug 9 22:45:48 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
17795
17796 * libc/configure.in: handle host properly (using canonical
17797 triples), better error message for the case of target not found
17798
17799 Thu May 28 01:56:37 1992 Michael Tiemann (tiemann@rtl.cygnus.com)
17800
17801 * libc/Makefile.in (insincdir): Ensure this directory exists
17802 before attempting installation.
17803
17804 Fri May 1 18:16:42 1992 Steve Chamberlain (sac@thepub.cygnus.com)
17805
17806 * libc/stdlib/assert.c: now calls abort like it should
17807 * libc/sys/a29khif: many many patches for 29khif work
17808 * libc/machine/i386: gnulib2 expanded there.
17809
17810 Tue Apr 28 19:08:37 1992 Steve Chamberlain (sac@thepub.cygnus.com)
17811
17812 Added accurate fp conversion routines to stdlib, moved dcvt from
17813 stdio to stdlib and called it ecvtbuf:
17814 * libc/stdlib/mprec.c, mprec.h: new files for multiprec arithmetic
17815 * libc/stdlib/Makefile.in, efgcvt.c, strtod.c: modified to use new
17816 routines
17817 * libc/libc.texinfo: Modifed to include the copyright info from
17818 the mprec files
17819 * libc/stdlib/efgcvt.c: now xref to ecvtbuf in stdlib.
17820 * libc/test/ : many vector which tested for the implementation
17821 defined returns of strange conversion requests have been updated
17822 to relflect the new implementation
17823
17824 Mon Apr 27 13:41:33 1992 Roland H. Pesch (pesch@fowanton.cygnus.com)
17825
17826 * libc/libc.texinfo: new chapter on variable arg lists
17827 (stdarg.h/varargs.h)
17828 * libc/libc.texinfo: new title
17829 * libc/time/gmtime.c, libc/time/localtime./c, libc/time/mktime.c:
17830 (doc only) shorter headings for better formatting.
17831
17832 Fri Apr 24 11:26:48 1992 Roland H. Pesch (pesch@fowanton.cygnus.com)
17833
17834 * libc/libc.texinfo: three more info menu entries
17835 * libc/locale/locale.tex: new chapter
17836 * libc/locale/locale.c: new doc for setlocale, localeconv
17837 * libc/locale/Makefile.in: use new locale doc
17838 * libc/signal/signal.tex: new chapter
17839 * libc/signal/raise.c, libc/signal/signal.c: new doc
17840 * libc/signal/Makefile.in: use new doc
17841 * libc/time/time.tex: new chapter
17842 * libc/time/asctime.c libc/time/clock.c libc/time/ctime.c
17843 libc/time/difftime.c libc/time/gmtime.c libc/time/localtime.c
17844 libc/time/mktime.c libc/time/strftime.c libc/time/time.c: new doc
17845 * libc/time/Makefile.in: use new doc
17846
17847 Tue Apr 21 14:48:50 1992 Steve Chamberlain (sac@thepub.cygnus.com)
17848
17849 * libm/math/log1p.c: split to use the new function way of float
17850 function definition. math/log1p.h deleted
17851 * libm/math/scalb.c: obsolete and deleted
17852 * libm/math/scalbn.c: created from part log1p.c
17853 * libm/math/Makefile.in: know about log1p and scalbn
17854
17855 Tue Apr 21 12:32:21 1992 Roland H. Pesch (pesch@fowanton.cygnus.com)
17856
17857 * libc/ctype/isupper.c: revise doc;
17858 libc/ctype/ctype.tex: use doc from isupper.c
17859
17860 * libc/string/bzero.c: new doc
17861
17862 Mon Apr 20 14:19:42 1992 Roland H. Pesch (pesch@fowanton.cygnus.com)
17863
17864 * libc/stdlib/system.c, libc/stdlib/exit.c, libc/stdlib/abort.c:
17865 new doc
17866 * libc/stdlib/Makefile.in: extract new doc
17867 * libc/stdlib/stdlib.tex: use new doc
17868
17869 * libc/string/strerror.c: expanded doc.
17870
17871 * libc/stdio/Makefile.in: extract doc from more files
17872 * libc/stdio/fopen.c, libc/stdio/perror.c, libc/stdio/remove.c,
17873 libc/stdio/rename.c, libc/stdio/rewind.c, libc/stdio/setbuf.c,
17874 libc/stdio/setvbuf.c, libc/stdio/sprintf.c, libc/stdio/tmpfile.c,
17875 libc/stdio/tmpnam.c, libc/stdio/vfprintf.c, libc/stdio/vprintf.c,
17876 libc/stdio/vsprintf.c: new doc
17877 * libc/stdio/stdio.tex: use new doc
17878
17879 Mon Apr 20 09:38:17 1992 Steve Chamberlain (sac@thepub.cygnus.com)
17880
17881 * libc/config/ebmon29k: added CROSS_CPP rule and other fixes
17882 * libc/include/ieeefp.h: fixed ansi conflict with isnanf, isinff,
17883 finitef functions.
17884 * libc/sys/a29khif/sys/*.h: ansidecl.h was renamed to _ansi.h some
17885 time ago.
17886
17887 * libc/stdio/stdio.h: added P_tmpdir for /tmp (SVID thing)
17888 * libc/stdio/setbuf.c: added ansi style definition.
17889 * libc/stdio/setvbuf.c: added ansi definition, now mallocs own
17890 buffer if none provided.
17891 * libc/stdio/tmpfile.c: lint
17892 * libc/stdio/tmpnam.c (worker): created. (tmpnam): mallocs buffer
17893 rather than using static, also make sure file isn't already
17894 present. Uses P_tmpdir. (tempnam): rewritten to use new
17895 subroutine, and uses P_tmpdir.
17896 * libc/stdio/siprintf.c: created
17897
17898 Mon Apr 13 09:12:58 1992 Steve Chamberlain (sac@thepub.cygnus.com)
17899
17900 Release 1.03 for NEC, major mods. Main differences from release
17901 1.02::
17902
17903 More tests in test/:
17904 * jn_vec.c, jnf_vec.c, yn_vec.c, ynf_vec.c, log2_vec.c,
17905 log2f_vec.c, atan2_vec.c, atan2f_vec.c: new test vectors.
17906 * test_ieee.c: tests for ieee flags & masks - get/set rounding,
17907 get/set mask, get/set sticky and get/set roundtoi. Tests
17908 that setting the bits changes the way arithmetic is done.
17909 * string.c: added test to make sure memcmp does it with unsigned
17910 chars.
17911 * test.c: cleaned up and removed lint.
17912 * sprint_vec, sprint_ivec.c, convert.c, conv_vec.c, iconf_vec.c,
17913 dvec.c: tests for string to value conversions, sprintf, scanf,
17914 atof, atoff, strtod, strtodf, atoi, atol, strtol, ecvtbuf, ecvt,
17915 ecvtf, fcvtbuf, fcvt, fcvtf, gcvt, gcvtf. Some attention paid to
17916 rounding in sprintf too.
17917 * test_is.c: tests for isalnum, isalpha, isascii, iscntrl,
17918 isdigit, isgraph, islower, isprint, ispunct, isspace, isupper,
17919 isxdigit, toascii, tolower, toupper, _tolower, _toupper in macro
17920 and function form.
17921 * math2.c: test for frexp, frexpf, ldexp, ldexpf, modf modff, pow,
17922 powf
17923
17924 In the library:
17925 * libc/stdlib/div.c, libc/stdlib/ldiv.c, libc/stdlib/strtod.c,
17926 libc/stdlib/strtol.c, libc/stdlib/stroul.c, libc/stdlib/abs.c,
17927 libc/stdlib/bsearch.c, libc/stdlib/calloc.c, libc/stdlib/getenv.c,
17928 libc/stdlib/labs.c, libc/stdlib/malloc.c: new documentation
17929 * libc/stdlib/efgcvt.c: rewritten to use new _dcvt routines rather
17930 than sprintf.
17931 * libc/stdio/dcvt.c: rewritten to make more useful elsewhere.
17932 * Method of producting float versions of double functions has
17933 changed, functions will be modified gradually. So far:
17934 libm/math/exp.c, libm/math/pow.c, libm/math/modf.c,
17935 libm/math/sincos.c, libm/math/fmod.c, libm/math/tan.c have been
17936 altered
17937 * libc/string/memcmp.c: now uses unsigned chars
17938 * libc/string/bcmp.c, libc/string/strcpy.c,
17939 libc/stsring/strxfrm.c: fixed doc
17940 * libc/sys/sysvnecv70.tex: fix example of sbrk code
17941 \f
17942 Local Variables:
17943 version-control: never
17944 End:
This page took 1.027796 seconds and 6 git commands to generate.